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