"use strict";
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
require("../../../../../../../../node_modules/.pnpm/vue@3.3.4/node_modules/vue/dist/vue.runtime.esm-bundler.js");
const useTargetData_hook = require("../../../hooks/useTargetData.hook.js");
const index = require("../../../../../../../components/Pages/MonacoEditor/index.vue2.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/editor/editor.api.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/basic-languages/abap/abap.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/basic-languages/apex/apex.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/basic-languages/azcli/azcli.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/basic-languages/bat/bat.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/basic-languages/bicep/bicep.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/basic-languages/cameligo/cameligo.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/basic-languages/clojure/clojure.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/basic-languages/coffee/coffee.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/basic-languages/cpp/cpp.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/basic-languages/csharp/csharp.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/basic-languages/csp/csp.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/basic-languages/css/css.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/basic-languages/dart/dart.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/basic-languages/dockerfile/dockerfile.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/basic-languages/ecl/ecl.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/basic-languages/elixir/elixir.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/basic-languages/flow9/flow9.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/basic-languages/fsharp/fsharp.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/basic-languages/freemarker2/freemarker2.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/basic-languages/go/go.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/basic-languages/graphql/graphql.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/basic-languages/handlebars/handlebars.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/basic-languages/hcl/hcl.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/basic-languages/html/html.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/basic-languages/ini/ini.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/basic-languages/java/java.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/basic-languages/javascript/javascript.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/basic-languages/julia/julia.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/basic-languages/kotlin/kotlin.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/basic-languages/less/less.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/basic-languages/lexon/lexon.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/basic-languages/lua/lua.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/basic-languages/liquid/liquid.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/basic-languages/m3/m3.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/basic-languages/markdown/markdown.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/basic-languages/mips/mips.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/basic-languages/msdax/msdax.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/basic-languages/mysql/mysql.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/basic-languages/objective-c/objective-c.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/basic-languages/pascal/pascal.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/basic-languages/pascaligo/pascaligo.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/basic-languages/perl/perl.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/basic-languages/pgsql/pgsql.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/basic-languages/php/php.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/basic-languages/pla/pla.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/basic-languages/postiats/postiats.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/basic-languages/powerquery/powerquery.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/basic-languages/powershell/powershell.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/basic-languages/protobuf/protobuf.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/basic-languages/pug/pug.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/basic-languages/python/python.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/basic-languages/qsharp/qsharp.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/basic-languages/r/r.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/basic-languages/razor/razor.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/basic-languages/redis/redis.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/basic-languages/redshift/redshift.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/basic-languages/restructuredtext/restructuredtext.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/basic-languages/ruby/ruby.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/basic-languages/rust/rust.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/basic-languages/sb/sb.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/basic-languages/scala/scala.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/basic-languages/scheme/scheme.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/basic-languages/scss/scss.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/basic-languages/shell/shell.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/basic-languages/solidity/solidity.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/basic-languages/sophia/sophia.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/basic-languages/sparql/sparql.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/basic-languages/sql/sql.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/basic-languages/st/st.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/basic-languages/swift/swift.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/basic-languages/systemverilog/systemverilog.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/basic-languages/tcl/tcl.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/basic-languages/twig/twig.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/basic-languages/typescript/typescript.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/basic-languages/vb/vb.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/basic-languages/xml/xml.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/basic-languages/yaml/yaml.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/language/css/monaco.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/language/html/monaco.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/language/json/monaco.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/language/typescript/monaco.contribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/editor/browser/coreCommands.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/editor/browser/widget/codeEditorWidget.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/editor/browser/widget/diffEditorWidget.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/base/common/event.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/base/common/lifecycle.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/editor/contrib/anchorSelect/browser/anchorSelect.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/editor/contrib/bracketMatching/browser/bracketMatching.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/editor/contrib/caretOperations/browser/caretOperations.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/editor/contrib/caretOperations/browser/transpose.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/editor/contrib/clipboard/browser/clipboard.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/editor/contrib/codeAction/browser/codeActionContributions.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/editor/contrib/codelens/browser/codelensController.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/editor/contrib/colorPicker/browser/colorContributions.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/editor/contrib/comment/browser/comment.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/editor/contrib/contextmenu/browser/contextmenu.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/editor/contrib/cursorUndo/browser/cursorUndo.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/editor/contrib/dnd/browser/dnd.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/editor/contrib/find/browser/findController.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/editor/contrib/folding/browser/folding.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/editor/contrib/fontZoom/browser/fontZoom.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/editor/contrib/format/browser/formatActions.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/editor/contrib/documentSymbols/browser/documentSymbols.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsContribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/editor/contrib/gotoSymbol/browser/goToCommands.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/editor/contrib/gotoError/browser/gotoError.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/hover.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/editor/contrib/indentation/browser/indentation.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/editor/contrib/inlayHints/browser/inlayHintsContribution.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/editor/contrib/lineSelection/browser/lineSelection.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/editor/contrib/linesOperations/browser/linesOperations.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/editor/contrib/linkedEditing/browser/linkedEditing.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/editor/contrib/links/browser/links.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/editor/contrib/multicursor/browser/multicursor.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/editor/contrib/parameterHints/browser/parameterHints.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/editor/contrib/rename/browser/rename.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/editor/contrib/smartSelect/browser/smartSelect.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/editor/contrib/snippet/browser/snippetController2.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/editor/contrib/suggest/browser/suggestController.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/editor/contrib/tokenization/browser/tokenization.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/editor/contrib/viewportSemanticTokens/browser/viewportSemanticTokens.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/editor/contrib/wordOperations/browser/wordOperations.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/editor/contrib/wordPartOperations/browser/wordPartOperations.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/editor/common/standaloneStrings.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/base/common/codicons.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/base/browser/ui/codicons/codicon/codicon.css.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/base/browser/ui/codicons/codicon/codicon-modifiers.css.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/editor/standalone/browser/accessibilityHelp/accessibilityHelp.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/editor/standalone/browser/iPadShowKeyboard/iPadShowKeyboard.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/editor/standalone/browser/inspectTokens/inspectTokens.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/editor/standalone/browser/quickAccess/standaloneHelpQuickAccess.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/editor/standalone/browser/quickAccess/standaloneGotoLineQuickAccess.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/editor/standalone/browser/quickAccess/standaloneGotoSymbolQuickAccess.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/editor/standalone/browser/quickAccess/standaloneCommandsQuickAccess.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/editor/standalone/browser/referenceSearch/standaloneReferenceSearch.js");
require("../../../../../../../../node_modules/.pnpm/monaco-editor@0.33.0/node_modules/monaco-editor/esm/vs/editor/standalone/browser/toggleHighContrast/toggleHighContrast.js");
require("../../../../../../../../node_modules/.pnpm/vue3-lazyload@0.2.5-beta_a6dezdz3je235ci4e3tu4rayna/node_modules/vue3-lazyload/dist/vue3-lazyload.esm.js");
require("../../../../../../../../node_modules/.pnpm/screenfull@6.0.2/node_modules/screenfull/index.js");
require("../../../../../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_root.js");
require("../../../../../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGetTag.js");
require("../../../../../../../../node_modules/.pnpm/html2canvas@1.4.1/node_modules/html2canvas/dist/html2canvas.esm.js");
const type = require("../../../../../../../utils/type.js");
const cloneDeep = require("../../../../../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/cloneDeep.js");
require("../../../../../../../../node_modules/.pnpm/crypto-js@4.1.1/node_modules/crypto-js/index.js");
require("../../../../../../../enums/pageEnum.js");
require("../../../../../../../router/index.js");
require("../../../../../../../store/modules/designStore/designStore.js");
const plugin = require("../../../../../../../utils/plugin.js");
require("../../../../../../../components/GoLoading/index.js");
require("../../../../../../../components/GoSkeleton/index.vue.js");
const icon = require("../../../../../../../plugins/icon.js");
const http = require("../../../../../../../api/http.js");
const runtimeCore_esmBundler = require("../../../../../../../../node_modules/.pnpm/@vue_runtime-core@3.3.4/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js");
const reactivity_esmBundler = require("../../../../../../../../node_modules/.pnpm/@vue_reactivity@3.3.4/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js");
const _withScopeId = (n) => (runtimeCore_esmBundler.pushScopeId("data-v-394ad52c"), n = n(), runtimeCore_esmBundler.popScopeId(), n);
const _hoisted_1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ runtimeCore_esmBundler.createElementVNode("p", null, [
  /* @__PURE__ */ runtimeCore_esmBundler.createElementVNode("span", { class: "func-keyword" }, "function"),
  /* @__PURE__ */ runtimeCore_esmBundler.createTextVNode("  filter(data, res)  {")
], -1));
const _hoisted_2 = { class: "go-ml-4" };
const _hoisted_3 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ runtimeCore_esmBundler.createElementVNode("p", null, "}", -1));
const _hoisted_4 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ runtimeCore_esmBundler.createElementVNode("span", { class: "func-keyword" }, "function", -1));
const _hoisted_5 = { class: "editor-data-show" };
const _hoisted_6 = { class: "editor-data-show" };
const _hoisted_7 = { class: "editor-data-show" };
const _hoisted_8 = { class: "go-flex-items-center" };
const _sfc_main = /* @__PURE__ */ runtimeCore_esmBundler.defineComponent({
  __name: "index",
  setup(__props) {
    const { DocumentTextIcon } = icon.icon.ionicons5;
    const { FilterIcon, FilterEditIcon } = icon.icon.carbon;
    const { targetData, chartEditStore } = useTargetData_hook.useTargetData();
    reactivity_esmBundler.toRefs(targetData.value.request);
    reactivity_esmBundler.toRefs(chartEditStore.getRequestGlobalConfig);
    const showModal = reactivity_esmBundler.ref(false);
    const filter = reactivity_esmBundler.ref(targetData.value.filter || `return data`);
    const errorFlag = reactivity_esmBundler.ref(false);
    const sourceData = reactivity_esmBundler.ref("");
    const fetchTargetData = async () => {
      try {
        const res = await http.customizeHttp(reactivity_esmBundler.toRaw(targetData.value.request), reactivity_esmBundler.toRaw(chartEditStore.getRequestGlobalConfig));
        if (res) {
          sourceData.value = res;
          return;
        }
        window["$message"].warning("没有拿到返回值，请检查接口！");
      } catch (error) {
        console.error(error);
        window["$message"].warning("数据异常，请检查参数！");
      }
    };
    const filterRes = runtimeCore_esmBundler.computed(() => {
      try {
        const fn = new Function("data", "res", filter.value);
        const response = cloneDeep.default(sourceData.value);
        const res = fn(response == null ? void 0 : response.data, response);
        errorFlag.value = false;
        return type.toString(res);
      } catch (error) {
        errorFlag.value = true;
        return `过滤函数错误，日志：${error}`;
      }
    });
    const addFilter = () => {
      showModal.value = true;
    };
    const delFilter = () => {
      plugin.goDialog({
        message: "是否删除过滤器",
        onPositiveCallback: () => {
          targetData.value.filter = void 0;
        }
      });
    };
    const closeFilter = () => {
      showModal.value = false;
    };
    const saveFilter = () => {
      if (errorFlag.value) {
        window["$message"].error("过滤函数错误，无法进行保存");
        return;
      }
      targetData.value.filter = filter.value;
      closeFilter();
    };
    runtimeCore_esmBundler.watch(
      () => showModal.value,
      (newData) => {
        if (newData) {
          fetchTargetData();
          filter.value = targetData.value.filter || `return data`;
        }
      }
    );
    return (_ctx, _cache) => {
      const _component_n_code = runtimeCore_esmBundler.resolveComponent("n-code");
      const _component_n_icon = runtimeCore_esmBundler.resolveComponent("n-icon");
      const _component_n_button = runtimeCore_esmBundler.resolveComponent("n-button");
      const _component_n_space = runtimeCore_esmBundler.resolveComponent("n-space");
      const _component_n_card = runtimeCore_esmBundler.resolveComponent("n-card");
      const _component_n_text = runtimeCore_esmBundler.resolveComponent("n-text");
      const _component_n_tag = runtimeCore_esmBundler.resolveComponent("n-tag");
      const _component_n_divider = runtimeCore_esmBundler.resolveComponent("n-divider");
      const _component_n_scrollbar = runtimeCore_esmBundler.resolveComponent("n-scrollbar");
      const _component_n_modal = runtimeCore_esmBundler.resolveComponent("n-modal");
      return runtimeCore_esmBundler.openBlock(), runtimeCore_esmBundler.createElementBlock(runtimeCore_esmBundler.Fragment, null, [
        reactivity_esmBundler.unref(targetData).filter ? (runtimeCore_esmBundler.openBlock(), runtimeCore_esmBundler.createBlock(_component_n_card, { key: 0 }, {
          footer: runtimeCore_esmBundler.withCtx(() => [
            runtimeCore_esmBundler.createVNode(_component_n_space, { justify: "end" }, {
              default: runtimeCore_esmBundler.withCtx(() => [
                runtimeCore_esmBundler.createVNode(_component_n_button, {
                  type: "primary",
                  tertiary: "",
                  size: "small",
                  onClick: addFilter
                }, {
                  icon: runtimeCore_esmBundler.withCtx(() => [
                    runtimeCore_esmBundler.createVNode(_component_n_icon, null, {
                      default: runtimeCore_esmBundler.withCtx(() => [
                        runtimeCore_esmBundler.createVNode(reactivity_esmBundler.unref(FilterEditIcon))
                      ]),
                      _: 1
                    })
                  ]),
                  default: runtimeCore_esmBundler.withCtx(() => [
                    runtimeCore_esmBundler.createTextVNode(" 编辑 ")
                  ]),
                  _: 1
                }),
                runtimeCore_esmBundler.createVNode(_component_n_button, {
                  tertiary: "",
                  size: "small",
                  onClick: delFilter
                }, {
                  default: runtimeCore_esmBundler.withCtx(() => [
                    runtimeCore_esmBundler.createTextVNode(" 删除 ")
                  ]),
                  _: 1
                })
              ]),
              _: 1
            })
          ]),
          default: runtimeCore_esmBundler.withCtx(() => [
            _hoisted_1,
            runtimeCore_esmBundler.createElementVNode("div", _hoisted_2, [
              runtimeCore_esmBundler.createVNode(_component_n_code, {
                code: reactivity_esmBundler.unref(targetData).filter,
                language: "typescript"
              }, null, 8, ["code"])
            ]),
            _hoisted_3
          ]),
          _: 1
        })) : (runtimeCore_esmBundler.openBlock(), runtimeCore_esmBundler.createBlock(_component_n_button, {
          key: 1,
          class: "go-ml-3",
          onClick: addFilter
        }, {
          icon: runtimeCore_esmBundler.withCtx(() => [
            runtimeCore_esmBundler.createVNode(_component_n_icon, null, {
              default: runtimeCore_esmBundler.withCtx(() => [
                runtimeCore_esmBundler.createVNode(reactivity_esmBundler.unref(FilterIcon))
              ]),
              _: 1
            })
          ]),
          default: runtimeCore_esmBundler.withCtx(() => [
            runtimeCore_esmBundler.createTextVNode(" 新增过滤器 ")
          ]),
          _: 1
        })),
        runtimeCore_esmBundler.createVNode(_component_n_modal, {
          class: "go-chart-data-monaco-editor",
          show: showModal.value,
          "onUpdate:show": _cache[1] || (_cache[1] = ($event) => showModal.value = $event),
          "mask-closable": false,
          closeOnEsc: false
        }, {
          default: runtimeCore_esmBundler.withCtx(() => [
            runtimeCore_esmBundler.createVNode(_component_n_card, {
              bordered: false,
              role: "dialog",
              size: "small",
              "aria-modal": "true",
              style: { "width": "1200px", "height": "700px" }
            }, {
              header: runtimeCore_esmBundler.withCtx(() => [
                runtimeCore_esmBundler.createVNode(_component_n_space, null, {
                  default: runtimeCore_esmBundler.withCtx(() => [
                    runtimeCore_esmBundler.createVNode(_component_n_text, null, {
                      default: runtimeCore_esmBundler.withCtx(() => [
                        runtimeCore_esmBundler.createTextVNode("过滤器函数编辑器")
                      ]),
                      _: 1
                    })
                  ]),
                  _: 1
                })
              ]),
              "header-extra": runtimeCore_esmBundler.withCtx(() => []),
              action: runtimeCore_esmBundler.withCtx(() => [
                runtimeCore_esmBundler.createVNode(_component_n_space, { justify: "space-between" }, {
                  default: runtimeCore_esmBundler.withCtx(() => [
                    runtimeCore_esmBundler.createElementVNode("div", _hoisted_8, [
                      runtimeCore_esmBundler.createVNode(_component_n_tag, {
                        bordered: false,
                        type: "primary"
                      }, {
                        icon: runtimeCore_esmBundler.withCtx(() => [
                          runtimeCore_esmBundler.createVNode(_component_n_icon, { component: reactivity_esmBundler.unref(DocumentTextIcon) }, null, 8, ["component"])
                        ]),
                        default: runtimeCore_esmBundler.withCtx(() => [
                          runtimeCore_esmBundler.createTextVNode(" 规则 ")
                        ]),
                        _: 1
                      }),
                      runtimeCore_esmBundler.createVNode(_component_n_text, {
                        class: "go-ml-2",
                        depth: "2"
                      }, {
                        default: runtimeCore_esmBundler.withCtx(() => [
                          runtimeCore_esmBundler.createTextVNode("过滤器默认处理接口返回值的「data」字段")
                        ]),
                        _: 1
                      })
                    ]),
                    runtimeCore_esmBundler.createVNode(_component_n_space, null, {
                      default: runtimeCore_esmBundler.withCtx(() => [
                        runtimeCore_esmBundler.createVNode(_component_n_button, {
                          size: "medium",
                          onClick: closeFilter
                        }, {
                          default: runtimeCore_esmBundler.withCtx(() => [
                            runtimeCore_esmBundler.createTextVNode("取消")
                          ]),
                          _: 1
                        }),
                        runtimeCore_esmBundler.createVNode(_component_n_button, {
                          size: "medium",
                          type: "primary",
                          onClick: saveFilter
                        }, {
                          default: runtimeCore_esmBundler.withCtx(() => [
                            runtimeCore_esmBundler.createTextVNode("保存")
                          ]),
                          _: 1
                        })
                      ]),
                      _: 1
                    })
                  ]),
                  _: 1
                })
              ]),
              default: runtimeCore_esmBundler.withCtx(() => [
                runtimeCore_esmBundler.createVNode(_component_n_space, {
                  size: "small",
                  vertical: ""
                }, {
                  default: runtimeCore_esmBundler.withCtx(() => [
                    runtimeCore_esmBundler.createVNode(_component_n_space, { justify: "space-between" }, {
                      default: runtimeCore_esmBundler.withCtx(() => [
                        runtimeCore_esmBundler.createElementVNode("div", null, [
                          runtimeCore_esmBundler.createVNode(_component_n_space, { vertical: "" }, {
                            default: runtimeCore_esmBundler.withCtx(() => [
                              runtimeCore_esmBundler.createVNode(_component_n_tag, { type: "info" }, {
                                default: runtimeCore_esmBundler.withCtx(() => [
                                  _hoisted_4,
                                  runtimeCore_esmBundler.createTextVNode("  filter(data, res)  { ")
                                ]),
                                _: 1
                              }),
                              runtimeCore_esmBundler.createVNode(reactivity_esmBundler.unref(index.default), {
                                modelValue: filter.value,
                                "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => filter.value = $event),
                                width: "660px",
                                height: "500px",
                                language: "javascript"
                              }, null, 8, ["modelValue"]),
                              runtimeCore_esmBundler.createVNode(_component_n_tag, { type: "info" }, {
                                default: runtimeCore_esmBundler.withCtx(() => [
                                  runtimeCore_esmBundler.createTextVNode("}")
                                ]),
                                _: 1
                              })
                            ]),
                            _: 1
                          })
                        ]),
                        runtimeCore_esmBundler.createVNode(_component_n_divider, {
                          vertical: "",
                          style: { "height": "580px" }
                        }),
                        runtimeCore_esmBundler.createVNode(_component_n_scrollbar, { style: { "max-height": "580px" } }, {
                          default: runtimeCore_esmBundler.withCtx(() => [
                            runtimeCore_esmBundler.createVNode(_component_n_space, {
                              size: 15,
                              vertical: ""
                            }, {
                              default: runtimeCore_esmBundler.withCtx(() => [
                                runtimeCore_esmBundler.createElementVNode("div", _hoisted_5, [
                                  runtimeCore_esmBundler.createVNode(_component_n_space, null, {
                                    default: runtimeCore_esmBundler.withCtx(() => {
                                      var _a;
                                      return [
                                        runtimeCore_esmBundler.createVNode(_component_n_text, { depth: "3" }, {
                                          default: runtimeCore_esmBundler.withCtx(() => [
                                            runtimeCore_esmBundler.createTextVNode("默认过滤数据(data)：")
                                          ]),
                                          _: 1
                                        }),
                                        runtimeCore_esmBundler.createVNode(_component_n_code, {
                                          code: reactivity_esmBundler.unref(type.toString)((_a = sourceData.value) == null ? void 0 : _a.data) || "暂无",
                                          language: "json",
                                          "word-wrap": true
                                        }, null, 8, ["code"])
                                      ];
                                    }),
                                    _: 1
                                  })
                                ]),
                                runtimeCore_esmBundler.createElementVNode("div", _hoisted_6, [
                                  runtimeCore_esmBundler.createVNode(_component_n_space, null, {
                                    default: runtimeCore_esmBundler.withCtx(() => [
                                      runtimeCore_esmBundler.createVNode(_component_n_text, { depth: "3" }, {
                                        default: runtimeCore_esmBundler.withCtx(() => [
                                          runtimeCore_esmBundler.createTextVNode("接口返回数据(res)：")
                                        ]),
                                        _: 1
                                      }),
                                      runtimeCore_esmBundler.createVNode(_component_n_code, {
                                        code: reactivity_esmBundler.unref(type.toString)(sourceData.value) || "暂无",
                                        language: "json",
                                        "word-wrap": true
                                      }, null, 8, ["code"])
                                    ]),
                                    _: 1
                                  })
                                ]),
                                runtimeCore_esmBundler.createElementVNode("div", _hoisted_7, [
                                  runtimeCore_esmBundler.createVNode(_component_n_space, null, {
                                    default: runtimeCore_esmBundler.withCtx(() => [
                                      runtimeCore_esmBundler.createVNode(_component_n_text, { depth: "3" }, {
                                        default: runtimeCore_esmBundler.withCtx(() => [
                                          runtimeCore_esmBundler.createTextVNode("过滤器结果：")
                                        ]),
                                        _: 1
                                      }),
                                      runtimeCore_esmBundler.createVNode(_component_n_code, {
                                        code: filterRes.value || "暂无",
                                        language: "json",
                                        "word-wrap": true
                                      }, null, 8, ["code"])
                                    ]),
                                    _: 1
                                  })
                                ])
                              ]),
                              _: 1
                            })
                          ]),
                          _: 1
                        })
                      ]),
                      _: 1
                    })
                  ]),
                  _: 1
                })
              ]),
              _: 1
            })
          ]),
          _: 1
        }, 8, ["show"])
      ], 64);
    };
  }
});
exports.default = _sfc_main;
