@loopstack/loopstack-studio 0.25.0 → 0.25.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/_rolldown/runtime.js +20 -0
- package/dist/api/auth.js +4 -2
- package/dist/api/client.js +9 -7
- package/dist/api/config.js +4 -2
- package/dist/api/dashboard.js +4 -2
- package/dist/api/documents.js +4 -2
- package/dist/api/index.js +21 -19
- package/dist/api/processor.js +4 -2
- package/dist/api/secrets.js +4 -2
- package/dist/api/workflows.js +4 -2
- package/dist/api/workspaces.js +4 -2
- package/dist/app/EnvironmentEmbedRoot.js +24 -31
- package/dist/components/ai-elements/code-block.js +53 -71
- package/dist/components/ai-elements/message.js +41 -82
- package/dist/components/ai-elements/prompt-input.js +162 -253
- package/dist/components/ai-elements/reasoning.js +78 -116
- package/dist/components/ai-elements/shimmer.js +23 -35
- package/dist/components/ai-elements/sources.js +29 -58
- package/dist/components/data-table/ConfirmDialog.js +14 -30
- package/dist/components/data-table/DataList.js +138 -198
- package/dist/components/data-table/DataTable.js +168 -234
- package/dist/components/data-table/DataTableBatchAction.js +18 -27
- package/dist/components/data-table/DataTableFilters.js +53 -78
- package/dist/components/data-table/DataTablePagination.js +72 -104
- package/dist/components/data-table/DataTableToolbar.js +53 -65
- package/dist/components/dynamic-form/ArrayController.js +85 -103
- package/dist/components/dynamic-form/CodeContent.js +28 -36
- package/dist/components/dynamic-form/Form.js +43 -56
- package/dist/components/dynamic-form/FormBody.js +12 -10
- package/dist/components/dynamic-form/FormElement.js +31 -41
- package/dist/components/dynamic-form/FormElementHeader.js +12 -20
- package/dist/components/dynamic-form/InputController.js +36 -38
- package/dist/components/dynamic-form/MarkdownContent.js +53 -74
- package/dist/components/dynamic-form/MermaidDiagram.js +22 -24
- package/dist/components/dynamic-form/ObjectController.js +24 -32
- package/dist/components/dynamic-form/fields/BaseFieldWrapper.js +35 -47
- package/dist/components/dynamic-form/fields/CheckboxField.js +39 -48
- package/dist/components/dynamic-form/fields/CodeViewField.js +42 -50
- package/dist/components/dynamic-form/fields/InputField.js +62 -90
- package/dist/components/dynamic-form/fields/MarkdownViewField.js +16 -19
- package/dist/components/dynamic-form/fields/RadioField.js +46 -62
- package/dist/components/dynamic-form/fields/SelectField.js +40 -58
- package/dist/components/dynamic-form/fields/SliderField.js +94 -100
- package/dist/components/dynamic-form/fields/SwitchField.js +42 -61
- package/dist/components/dynamic-form/fields/TextareaField.js +53 -72
- package/dist/components/dynamic-form/fields/utils/text-validation-utils.js +4 -2
- package/dist/components/dynamic-form/hooks/useArrayDefaultValue.js +6 -5
- package/dist/components/dynamic-form/hooks/useFieldConfig.js +19 -20
- package/dist/components/dynamic-form/hooks/useMergeParentKey.js +4 -2
- package/dist/components/dynamic-form/hooks/useSortPropertyNames.js +4 -2
- package/dist/components/feedback/ErrorAlert.js +11 -17
- package/dist/components/feedback/ErrorBoundary.js +16 -14
- package/dist/components/feedback/ErrorSnackbar.js +13 -30
- package/dist/components/feedback/LoadingCentered.js +15 -28
- package/dist/components/feedback/Snackbar.js +43 -44
- package/dist/components/feedback/index.js +5 -5
- package/dist/components/index.js +47 -47
- package/dist/components/layout/MainLayout.js +17 -25
- package/dist/components/layout/StudioSidebar.js +132 -202
- package/dist/components/lists/CustomListView.js +49 -74
- package/dist/components/lists/ListView.js +66 -102
- package/dist/components/loopstack-elements/link.js +65 -104
- package/dist/components/loopstack-elements/tool.js +70 -142
- package/dist/components/messages/CompletionMessagePaper.js +53 -85
- package/dist/components/page/PageBreadcrumbs.js +64 -83
- package/dist/components/ui/DiscordLogo.js +16 -22
- package/dist/components/ui/GoogleLogo.js +40 -44
- package/dist/components/ui/accordion.js +31 -52
- package/dist/components/ui/alert-dialog.js +59 -109
- package/dist/components/ui/alert.js +22 -36
- package/dist/components/ui/avatar.js +21 -35
- package/dist/components/ui/badge.js +13 -17
- package/dist/components/ui/breadcrumb.js +46 -82
- package/dist/components/ui/button-group.js +5 -5
- package/dist/components/ui/button.js +17 -21
- package/dist/components/ui/card.js +40 -74
- package/dist/components/ui/checkbox.js +17 -23
- package/dist/components/ui/collapsible.js +17 -25
- package/dist/components/ui/command.js +1 -2
- package/dist/components/ui/context-menu.js +32 -52
- package/dist/components/ui/dialog.js +62 -107
- package/dist/components/ui/drawer.js +54 -99
- package/dist/components/ui/dropdown-menu.js +91 -159
- package/dist/components/ui/hover-card.js +1 -2
- package/dist/components/ui/input-group.js +36 -56
- package/dist/components/ui/input.js +11 -15
- package/dist/components/ui/label.js +11 -15
- package/dist/components/ui/popover.js +25 -38
- package/dist/components/ui/radio-group.js +22 -33
- package/dist/components/ui/scroll-area.js +28 -43
- package/dist/components/ui/select.js +73 -134
- package/dist/components/ui/separator.js +13 -17
- package/dist/components/ui/sheet.js +60 -105
- package/dist/components/ui/sidebar.js +269 -451
- package/dist/components/ui/skeleton.js +10 -14
- package/dist/components/ui/slider.js +17 -15
- package/dist/components/ui/switch.js +15 -21
- package/dist/components/ui/table.js +46 -85
- package/dist/components/ui/tabs.js +26 -45
- package/dist/components/ui/textarea.js +10 -14
- package/dist/components/ui/tooltip.js +26 -41
- package/dist/components/ui-widgets/UiActions.js +30 -37
- package/dist/components/ui-widgets/UiWidget.js +34 -46
- package/dist/components/ui-widgets/widgets/AiPromptInput.js +28 -42
- package/dist/components/ui-widgets/widgets/ButtonFullWidth.js +16 -21
- package/dist/components/ui-widgets/widgets/SandboxRun.js +19 -26
- package/dist/components/ui-widgets/widgets/SubmitButton.js +15 -20
- package/dist/events/api-client-events.js +4 -2
- package/dist/events/sse-client-events.js +4 -2
- package/dist/features/code-explorer/CodeExplorer.js +1 -2
- package/dist/features/code-explorer/components/CodeExplorerTree.js +2 -2
- package/dist/features/code-explorer/components/CodeExplorerTreeNode.js +31 -29
- package/dist/features/code-explorer/components/FileContentViewer.js +108 -148
- package/dist/features/code-explorer/components/FileTabsBar.js +1 -2
- package/dist/features/code-explorer/components/FileTabsBarBase.js +134 -169
- package/dist/features/code-explorer/index.js +1 -1
- package/dist/features/code-explorer/providers/CodeExplorerProvider.js +4 -4
- package/dist/features/code-explorer/utils/fileIcons.js +41 -39
- package/dist/features/dashboard/Dashboard.js +79 -121
- package/dist/features/dashboard/RunItem.js +50 -68
- package/dist/features/dashboard/RunList.js +17 -28
- package/dist/features/debug/components/ConfigFlowViewer.js +49 -67
- package/dist/features/debug/components/WorkflowDebugHeader.js +30 -46
- package/dist/features/debug/components/WorkflowDebugLegend.js +56 -68
- package/dist/features/debug/components/WorkflowFlowViewer.js +76 -96
- package/dist/features/debug/components/workflow-flow/StateNode.js +73 -102
- package/dist/features/debug/components/workflow-flow/WorkflowGraph.js +35 -40
- package/dist/features/debug/components/workflow-flow/WorkflowTransitionEdge.js +61 -94
- package/dist/features/debug/index.js +3 -3
- package/dist/features/debug/lib/edge-paths.js +33 -31
- package/dist/features/debug/lib/flow-utils.js +147 -145
- package/dist/features/documents/DocumentRenderer.js +73 -77
- package/dist/features/documents/components/DocumentItem.js +21 -24
- package/dist/features/documents/components/DocumentList.js +39 -45
- package/dist/features/documents/components/DocumentMetadataPills.js +44 -59
- package/dist/features/documents/document-details/DocumentDetails.js +298 -413
- package/dist/features/documents/document-details/PromptDetails.js +105 -142
- package/dist/features/documents/index.js +4 -4
- package/dist/features/documents/renderers/AiMessage.js +39 -48
- package/dist/features/documents/renderers/AiMessageContent.js +108 -164
- package/dist/features/documents/renderers/ChoicesRenderer.js +77 -89
- package/dist/features/documents/renderers/ClaudeMessage.js +74 -91
- package/dist/features/documents/renderers/ConfirmPromptRenderer.js +44 -53
- package/dist/features/documents/renderers/DocumentDebugRenderer.js +26 -30
- package/dist/features/documents/renderers/DocumentFormRenderer.js +69 -85
- package/dist/features/documents/renderers/DocumentMessageRenderer.js +10 -9
- package/dist/features/documents/renderers/ErrorMessageRenderer.js +11 -13
- package/dist/features/documents/renderers/LinkMessageRenderer.js +15 -14
- package/dist/features/documents/renderers/MarkdownMessageRenderer.js +8 -10
- package/dist/features/documents/renderers/PlainMessageRenderer.js +7 -9
- package/dist/features/documents/renderers/SecretInputRenderer.js +37 -35
- package/dist/features/documents/renderers/TextPromptRenderer.js +45 -54
- package/dist/features/documents/renderers/useDocumentTransition.js +9 -7
- package/dist/features/health/LocalHealthCheck.js +54 -53
- package/dist/features/health/index.js +1 -1
- package/dist/features/oauth/OAuthCallbackPage.js +2 -2
- package/dist/features/oauth/OAuthPromptRenderer.js +148 -197
- package/dist/features/oauth/index.js +2 -2
- package/dist/features/oauth/useOAuthPopup.js +52 -71
- package/dist/features/runs/Runs.js +145 -187
- package/dist/features/workbench/Workbench.js +72 -98
- package/dist/features/workbench/WorkflowItem.js +49 -68
- package/dist/features/workbench/WorkflowList.js +51 -66
- package/dist/features/workbench/components/NewRunDialog.js +212 -309
- package/dist/features/workbench/components/RemoteFileTabsBar.js +18 -17
- package/dist/features/workbench/components/RemoteFileTree.js +54 -85
- package/dist/features/workbench/components/WorkbenchFilesPanel.js +52 -63
- package/dist/features/workbench/components/WorkbenchFloatingPanel.js +34 -51
- package/dist/features/workbench/components/WorkbenchFlowPanel.js +35 -44
- package/dist/features/workbench/components/WorkbenchIconSidebar.js +50 -68
- package/dist/features/workbench/components/WorkbenchPreviewPanel.js +51 -49
- package/dist/features/workbench/components/WorkbenchSecretsPanel.js +143 -172
- package/dist/features/workbench/components/WorkbenchSettingsModal.js +49 -60
- package/dist/features/workbench/components/WorkflowForms.js +17 -23
- package/dist/features/workbench/components/WorkflowHistoryItem.js +96 -122
- package/dist/features/workbench/components/WorkflowHistoryList.js +31 -54
- package/dist/features/workbench/components/buttons/WorkflowButtons.js +70 -99
- package/dist/features/workbench/hooks/useAutoScrollBottom.js +21 -25
- package/dist/features/workbench/hooks/useScrollToListItem.js +20 -21
- package/dist/features/workbench/hooks/useWorkflowData.js +31 -44
- package/dist/features/workbench/hooks/useWorkflowListState.js +13 -12
- package/dist/features/workbench/index.js +7 -7
- package/dist/features/workbench/providers/RemoteFileExplorerProvider.js +123 -138
- package/dist/features/workbench/providers/ScrollProvider.js +15 -19
- package/dist/features/workbench/providers/WorkbenchLayoutProvider.js +76 -75
- package/dist/features/workspaces/Workspaces.js +161 -226
- package/dist/features/workspaces/components/CreateWorkspace.js +137 -194
- package/dist/features/workspaces/components/EnvironmentSlotSelector.js +27 -25
- package/dist/features/workspaces/components/ExecutionTimeline.js +143 -185
- package/dist/features/workspaces/components/NewWorkflowRunDialog.js +18 -26
- package/dist/features/workspaces/components/WorkflowRunForm.js +85 -133
- package/dist/features/workspaces/components/WorkspaceHomePage.js +59 -80
- package/dist/features/workspaces/components/workflow-form/ArgumentsView.js +52 -69
- package/dist/features/workspaces/components/workflow-form/HeaderSection.js +27 -41
- package/dist/features/workspaces/components/workflow-form/SelectionView.js +64 -103
- package/dist/features/workspaces/index.js +3 -3
- package/dist/frontend/studio/node_modules/lodash/_Symbol.js +9 -0
- package/dist/frontend/studio/node_modules/lodash/_baseGetTag.js +15 -0
- package/dist/frontend/studio/node_modules/lodash/_baseTrim.js +13 -0
- package/dist/frontend/studio/node_modules/lodash/_freeGlobal.js +8 -0
- package/dist/frontend/studio/node_modules/lodash/_getRawTag.js +19 -0
- package/dist/frontend/studio/node_modules/lodash/_objectToString.js +12 -0
- package/dist/frontend/studio/node_modules/lodash/_root.js +10 -0
- package/dist/frontend/studio/node_modules/lodash/_trimmedEndIndex.js +13 -0
- package/dist/{node_modules → frontend/studio/node_modules}/lodash/debounce.js +10 -8
- package/dist/frontend/studio/node_modules/lodash/isObject.js +12 -0
- package/dist/frontend/studio/node_modules/lodash/isObjectLike.js +11 -0
- package/dist/frontend/studio/node_modules/lodash/isSymbol.js +14 -0
- package/dist/frontend/studio/node_modules/lodash/now.js +12 -0
- package/dist/frontend/studio/node_modules/lodash/toNumber.js +24 -0
- package/dist/hooks/index.js +6 -6
- package/dist/hooks/query-keys.js +33 -31
- package/dist/hooks/use-mobile.js +12 -11
- package/dist/hooks/useApi.js +16 -14
- package/dist/hooks/useAuth.js +38 -53
- package/dist/hooks/useConfig.js +26 -37
- package/dist/hooks/useDashboard.js +12 -15
- package/dist/hooks/useDebounce.js +12 -11
- package/dist/hooks/useDocuments.js +23 -35
- package/dist/hooks/useFiles.js +1 -2
- package/dist/hooks/useProcessor.js +14 -17
- package/dist/hooks/useSecrets.js +45 -64
- package/dist/hooks/useWorkflows.js +109 -161
- package/dist/hooks/useWorkspaces.js +83 -123
- package/dist/index.d.ts +0 -1304
- package/dist/index.js +80 -80
- package/dist/lib/requireParam.js +4 -2
- package/dist/lib/utils.js +7 -5
- package/dist/loopstack-studio.css +1 -1
- package/dist/node_modules/@braintree/sanitize-url/dist/constants.js +6 -4
- package/dist/node_modules/@braintree/sanitize-url/dist/index.js +8 -6
- package/dist/node_modules/@chevrotain/gast/lib/src/helpers.js +19 -20
- package/dist/node_modules/@chevrotain/gast/lib/src/model.js +87 -88
- package/dist/node_modules/@chevrotain/gast/lib/src/visitor.js +16 -13
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/api.js +2 -2
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/base-regexp-visitor.js +4 -2
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/character-classes.js +36 -34
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/regexp-parser.js +138 -110
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/utils.js +13 -11
- package/dist/node_modules/@chevrotain/utils/lib/src/print.js +5 -3
- package/dist/node_modules/@chevrotain/utils/lib/src/timer.js +4 -2
- package/dist/node_modules/@chevrotain/utils/lib/src/to-fast-properties.js +4 -2
- package/dist/node_modules/@dagrejs/dagre/dist/dagre.esm.js +1812 -1913
- package/dist/node_modules/@iconify/utils/lib/customisations/defaults.js +8 -6
- package/dist/node_modules/@iconify/utils/lib/icon/defaults.js +10 -8
- package/dist/node_modules/@iconify/utils/lib/icon/merge.js +8 -6
- package/dist/node_modules/@iconify/utils/lib/icon/name.js +8 -6
- package/dist/node_modules/@iconify/utils/lib/icon/transformations.js +4 -2
- package/dist/node_modules/@iconify/utils/lib/icon-set/get-icon.js +12 -10
- package/dist/node_modules/@iconify/utils/lib/icon-set/tree.js +4 -2
- package/dist/node_modules/@iconify/utils/lib/svg/build.js +20 -18
- package/dist/node_modules/@iconify/utils/lib/svg/defs.js +8 -6
- package/dist/node_modules/@iconify/utils/lib/svg/html.js +4 -2
- package/dist/node_modules/@iconify/utils/lib/svg/id.js +10 -8
- package/dist/node_modules/@iconify/utils/lib/svg/size.js +7 -5
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/architecture-YZFGNWBL.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-2KRD3SAO.js +26 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-67CJDMHE.js +26 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-7N4EOEYR.js +38 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-AA7GKIK3.js +33 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-CIAEETIT.js +26 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-FOC6F5B3.js +26 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-K5T4RW27.js +1208 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-KGLVRYIC.js +26 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-LIHQZDEY.js +67 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-ORNJ4GCN.js +34 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/gitGraph-7Q5UKJZL.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-OMHHGYJF.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-4T2RLAQJ.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-ZZUOXDRM.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-PYXPWWZC.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treeView-SZITEDCU.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-W4RFUUIX.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/wardley-RL74JXVD.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/mermaid-parser.core.js +59 -45
- package/dist/node_modules/@shikijs/core/dist/index.js +583 -1119
- package/dist/node_modules/@shikijs/engine-oniguruma/dist/index.js +163 -148
- package/dist/node_modules/@shikijs/engine-oniguruma/dist/wasm-inlined.js +4 -2
- package/dist/node_modules/@shikijs/langs/dist/abap.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/actionscript-3.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/ada.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/angular-expression.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/angular-html.js +15 -13
- package/dist/node_modules/@shikijs/langs/dist/angular-inline-style.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/angular-inline-template.js +9 -7
- package/dist/node_modules/@shikijs/langs/dist/angular-let-declaration.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/angular-template-blocks.js +9 -7
- package/dist/node_modules/@shikijs/langs/dist/angular-template.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/angular-ts.js +17 -15
- package/dist/node_modules/@shikijs/langs/dist/apache.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/apex.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/apl.js +15 -13
- package/dist/node_modules/@shikijs/langs/dist/applescript.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/ara.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/asciidoc.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/asm.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/astro.js +17 -15
- package/dist/node_modules/@shikijs/langs/dist/awk.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/ballerina.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/bat.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/beancount.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/berry.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/bibtex.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/bicep.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/bird2.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/blade.js +19 -17
- package/dist/node_modules/@shikijs/langs/dist/bsl.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/c.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/c3.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/cadence.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/cairo.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/clarity.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/clojure.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/cmake.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/cobol.js +9 -7
- package/dist/node_modules/@shikijs/langs/dist/codeowners.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/codeql.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/coffee.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/common-lisp.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/coq.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/cpp-macro.js +11 -9
- package/dist/node_modules/@shikijs/langs/dist/cpp.js +13 -11
- package/dist/node_modules/@shikijs/langs/dist/crystal.js +17 -15
- package/dist/node_modules/@shikijs/langs/dist/csharp.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/css.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/csv.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/cue.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/cypher.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/d.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/dart.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/dax.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/desktop.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/diff.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/docker.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/dotenv.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/dream-maker.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/edge.js +11 -9
- package/dist/node_modules/@shikijs/langs/dist/elixir.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/elm.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/emacs-lisp.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/erb.js +9 -7
- package/dist/node_modules/@shikijs/langs/dist/erlang.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/es-tag-css.js +11 -9
- package/dist/node_modules/@shikijs/langs/dist/es-tag-glsl.js +11 -9
- package/dist/node_modules/@shikijs/langs/dist/es-tag-html.js +11 -9
- package/dist/node_modules/@shikijs/langs/dist/es-tag-sql.js +9 -7
- package/dist/node_modules/@shikijs/langs/dist/es-tag-xml.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/fennel.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/fish.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/fluent.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/fortran-fixed-form.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/fortran-free-form.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/fsharp.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/gdresource.js +9 -7
- package/dist/node_modules/@shikijs/langs/dist/gdscript.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/gdshader.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/genie.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/gherkin.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/git-commit.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/git-rebase.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/gleam.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/glimmer-js.js +13 -11
- package/dist/node_modules/@shikijs/langs/dist/glimmer-ts.js +13 -11
- package/dist/node_modules/@shikijs/langs/dist/glsl.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/gn.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/gnuplot.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/go.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/graphql.js +13 -11
- package/dist/node_modules/@shikijs/langs/dist/groovy.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/hack.js +9 -7
- package/dist/node_modules/@shikijs/langs/dist/haml.js +9 -7
- package/dist/node_modules/@shikijs/langs/dist/handlebars.js +13 -11
- package/dist/node_modules/@shikijs/langs/dist/haskell.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/haxe.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/hcl.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/hjson.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/hlsl.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/html-derivative.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/html.js +9 -7
- package/dist/node_modules/@shikijs/langs/dist/http.js +13 -11
- package/dist/node_modules/@shikijs/langs/dist/hurl.js +11 -9
- package/dist/node_modules/@shikijs/langs/dist/hxml.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/hy.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/imba.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/ini.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/java.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/javascript.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/jinja-html.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/jinja.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/jison.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/json.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/json5.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/jsonc.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/jsonl.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/jsonnet.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/jssm.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/jsx.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/julia.js +15 -13
- package/dist/node_modules/@shikijs/langs/dist/just.js +17 -15
- package/dist/node_modules/@shikijs/langs/dist/kdl.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/kotlin.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/kusto.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/latex.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/lean.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/less.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/liquid.js +13 -11
- package/dist/node_modules/@shikijs/langs/dist/llvm.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/log.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/logo.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/lua.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/luau.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/make.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/markdown-nix.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/markdown-vue.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/markdown.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/marko.js +13 -11
- package/dist/node_modules/@shikijs/langs/dist/matlab.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/mdc.js +11 -9
- package/dist/node_modules/@shikijs/langs/dist/mdx.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/mermaid.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/mipsasm.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/mojo.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/moonbit.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/move.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/narrat.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/nextflow-groovy.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/nextflow.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/nginx.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/nim.js +19 -17
- package/dist/node_modules/@shikijs/langs/dist/nix.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/nushell.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/objective-c.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/objective-cpp.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/ocaml.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/odin.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/openscad.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/pascal.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/perl.js +15 -13
- package/dist/node_modules/@shikijs/langs/dist/php.js +17 -15
- package/dist/node_modules/@shikijs/langs/dist/pkl.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/plsql.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/po.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/polar.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/postcss.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/powerquery.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/powershell.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/prisma.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/prolog.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/proto.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/pug.js +11 -9
- package/dist/node_modules/@shikijs/langs/dist/puppet.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/purescript.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/python.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/qml.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/qmldir.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/qss.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/r.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/racket.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/raku.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/razor.js +9 -7
- package/dist/node_modules/@shikijs/langs/dist/reg.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/regexp.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/rel.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/riscv.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/ron.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/rosmsg.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/rst.js +21 -19
- package/dist/node_modules/@shikijs/langs/dist/ruby.js +29 -27
- package/dist/node_modules/@shikijs/langs/dist/rust.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/sas.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/sass.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/scala.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/scheme.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/scss.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/sdbl.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/shaderlab.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/shellscript.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/shellsession.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/smalltalk.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/solidity.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/soy.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/sparql.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/splunk.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/sql.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/ssh-config.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/stata.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/stylus.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/surrealql.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/svelte.js +13 -11
- package/dist/node_modules/@shikijs/langs/dist/swift.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/system-verilog.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/systemd.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/talonscript.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/tasl.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/tcl.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/templ.js +11 -9
- package/dist/node_modules/@shikijs/langs/dist/terraform.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/tex.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/toml.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/ts-tags.js +17 -15
- package/dist/node_modules/@shikijs/langs/dist/tsv.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/tsx.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/turtle.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/twig.js +17 -15
- package/dist/node_modules/@shikijs/langs/dist/typescript.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/typespec.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/typst.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/v.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/vala.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/vb.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/verilog.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/vhdl.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/viml.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/vue-directives.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/vue-html.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/vue-interpolations.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/vue-sfc-style-variable-injection.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/vue-vine.js +17 -15
- package/dist/node_modules/@shikijs/langs/dist/vue.js +25 -23
- package/dist/node_modules/@shikijs/langs/dist/vyper.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/wasm.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/wenyan.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/wgsl.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/wikitext.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/wit.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/wolfram.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/xml.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/xsl.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/yaml.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/zenscript.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/zig.js +3 -2
- package/dist/node_modules/@shikijs/primitive/dist/index.js +540 -0
- package/dist/node_modules/@shikijs/themes/dist/andromeeda.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/aurora-x.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/ayu-dark.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/ayu-light.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/ayu-mirage.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/catppuccin-frappe.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/catppuccin-latte.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/catppuccin-macchiato.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/catppuccin-mocha.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/dark-plus.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/dracula-soft.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/dracula.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/everforest-dark.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/everforest-light.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/github-dark-default.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/github-dark-dimmed.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/github-dark-high-contrast.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/github-dark.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/github-light-default.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/github-light-high-contrast.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/github-light.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-hard.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-medium.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-soft.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-hard.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-medium.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-soft.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/horizon-bright.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/horizon.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/houston.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/kanagawa-dragon.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/kanagawa-lotus.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/kanagawa-wave.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/laserwave.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/light-plus.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/material-theme-darker.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/material-theme-lighter.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/material-theme-ocean.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/material-theme-palenight.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/material-theme.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/min-dark.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/min-light.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/monokai.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/night-owl-light.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/night-owl.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/nord.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/one-dark-pro.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/one-light.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/plastic.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/poimandres.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/red.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/rose-pine-dawn.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/rose-pine-moon.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/rose-pine.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/slack-dark.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/slack-ochin.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/snazzy-light.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/solarized-dark.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/solarized-light.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/synthwave-84.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/tokyo-night.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/vesper.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/vitesse-black.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/vitesse-dark.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/vitesse-light.js +4 -2
- package/dist/node_modules/@shikijs/types/dist/index.js +4 -2
- package/dist/node_modules/@shikijs/vscode-textmate/dist/index.js +949 -947
- package/dist/node_modules/@ungap/structured-clone/esm/deserialize.js +30 -30
- package/dist/node_modules/@ungap/structured-clone/esm/index.js +6 -4
- package/dist/node_modules/@ungap/structured-clone/esm/serialize.js +64 -64
- package/dist/node_modules/@upsetjs/venn.js/build/venn.esm.js +905 -0
- package/dist/node_modules/@xyflow/react/dist/esm/index.js +904 -901
- package/dist/node_modules/@xyflow/system/dist/esm/index.js +1226 -1222
- package/dist/node_modules/bail/index.js +4 -2
- package/dist/node_modules/ccount/index.js +4 -2
- package/dist/node_modules/character-entities-html4/index.js +4 -2
- package/dist/node_modules/character-entities-legacy/index.js +4 -2
- package/dist/node_modules/chevrotain/lib/src/api.js +10 -10
- package/dist/node_modules/chevrotain/lib/src/lang/lang_extensions.js +6 -4
- package/dist/node_modules/chevrotain/lib/src/parse/constants.js +4 -2
- package/dist/node_modules/chevrotain/lib/src/parse/cst/cst.js +11 -9
- package/dist/node_modules/chevrotain/lib/src/parse/cst/cst_visitor.js +38 -45
- package/dist/node_modules/chevrotain/lib/src/parse/errors_public.js +35 -36
- package/dist/node_modules/chevrotain/lib/src/parse/exceptions_public.js +26 -25
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/checks.js +204 -226
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/first.js +18 -18
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/follow.js +20 -19
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_resolver_public.js +14 -13
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/interpreter.js +195 -200
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/keys.js +5 -4
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/llk_lookahead.js +28 -28
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/lookahead.js +165 -170
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/resolver.js +17 -17
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/rest.js +50 -50
- package/dist/node_modules/chevrotain/lib/src/parse/parser/parser.js +76 -83
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/error_handler.js +21 -21
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/gast_recorder.js +117 -121
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/lexer_adapter.js +12 -6
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/looksahead.js +51 -51
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.js +15 -14
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.js +81 -80
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.js +229 -217
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recoverable.js +87 -86
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/tree_builder.js +36 -44
- package/dist/node_modules/chevrotain/lib/src/parse/parser/utils/apply_mixins.js +4 -2
- package/dist/node_modules/chevrotain/lib/src/scan/lexer.js +287 -309
- package/dist/node_modules/chevrotain/lib/src/scan/lexer_errors_public.js +4 -2
- package/dist/node_modules/chevrotain/lib/src/scan/lexer_public.js +115 -126
- package/dist/node_modules/chevrotain/lib/src/scan/reg_exp.js +73 -70
- package/dist/node_modules/chevrotain/lib/src/scan/reg_exp_parser.js +12 -10
- package/dist/node_modules/chevrotain/lib/src/scan/tokens.js +45 -54
- package/dist/node_modules/chevrotain/lib/src/scan/tokens_public.js +29 -30
- package/dist/node_modules/chevrotain-allstar/lib/all-star-lookahead.js +242 -240
- package/dist/node_modules/chevrotain-allstar/lib/atn.js +134 -133
- package/dist/node_modules/chevrotain-allstar/lib/dfa.js +11 -10
- package/dist/node_modules/chevrotain-allstar/lib/index.js +1 -1
- package/dist/node_modules/classcat/index.js +5 -3
- package/dist/node_modules/comma-separated-tokens/index.js +5 -3
- package/dist/node_modules/cose-base/cose-base.js +21 -21
- package/dist/node_modules/cytoscape/dist/cytoscape.esm.js +7935 -7935
- package/dist/node_modules/cytoscape-cose-bilkent/cytoscape-cose-bilkent.js +8 -6
- package/dist/node_modules/cytoscape-fcose/cytoscape-fcose.js +8 -6
- package/dist/node_modules/cytoscape-fcose/node_modules/cose-base/cose-base.js +20 -20
- package/dist/node_modules/cytoscape-fcose/node_modules/layout-base/layout-base.js +6 -4
- package/dist/node_modules/d3/src/index.js +95 -95
- package/dist/node_modules/d3-array/src/ascending.js +4 -2
- package/dist/node_modules/d3-array/src/bisect.js +8 -8
- package/dist/node_modules/d3-array/src/bisector.js +8 -6
- package/dist/node_modules/d3-array/src/descending.js +4 -2
- package/dist/node_modules/d3-array/src/max.js +4 -2
- package/dist/node_modules/d3-array/src/min.js +4 -2
- package/dist/node_modules/d3-array/src/number.js +4 -2
- package/dist/node_modules/d3-array/src/range.js +4 -2
- package/dist/node_modules/d3-array/src/ticks.js +13 -11
- package/dist/node_modules/d3-axis/src/axis.js +48 -46
- package/dist/node_modules/d3-axis/src/identity.js +4 -2
- package/dist/node_modules/d3-brush/src/brush.js +6 -4
- package/dist/node_modules/d3-color/src/color.js +86 -84
- package/dist/node_modules/d3-color/src/define.js +5 -3
- package/dist/node_modules/d3-color/src/lab.js +45 -43
- package/dist/node_modules/d3-color/src/math.js +4 -2
- package/dist/node_modules/d3-dispatch/src/dispatch.js +18 -17
- package/dist/node_modules/d3-drag/src/constant.js +4 -2
- package/dist/node_modules/d3-drag/src/drag.js +77 -75
- package/dist/node_modules/d3-drag/src/event.js +5 -3
- package/dist/node_modules/d3-drag/src/nodrag.js +11 -9
- package/dist/node_modules/d3-drag/src/noevent.js +6 -4
- package/dist/node_modules/d3-ease/src/cubic.js +4 -2
- package/dist/node_modules/d3-format/src/defaultLocale.js +8 -6
- package/dist/node_modules/d3-format/src/exponent.js +6 -4
- package/dist/node_modules/d3-format/src/formatDecimal.js +5 -3
- package/dist/node_modules/d3-format/src/formatGroup.js +4 -2
- package/dist/node_modules/d3-format/src/formatNumerals.js +4 -2
- package/dist/node_modules/d3-format/src/formatPrefixAuto.js +10 -8
- package/dist/node_modules/d3-format/src/formatRounded.js +6 -4
- package/dist/node_modules/d3-format/src/formatSpecifier.js +10 -8
- package/dist/node_modules/d3-format/src/formatTrim.js +4 -2
- package/dist/node_modules/d3-format/src/formatTypes.js +15 -13
- package/dist/node_modules/d3-format/src/identity.js +4 -2
- package/dist/node_modules/d3-format/src/locale.js +33 -31
- package/dist/node_modules/d3-format/src/precisionFixed.js +6 -4
- package/dist/node_modules/d3-format/src/precisionPrefix.js +6 -4
- package/dist/node_modules/d3-format/src/precisionRound.js +6 -4
- package/dist/node_modules/d3-hierarchy/src/accessors.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/constant.js +5 -3
- package/dist/node_modules/d3-hierarchy/src/hierarchy/ancestors.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/hierarchy/count.js +6 -4
- package/dist/node_modules/d3-hierarchy/src/hierarchy/descendants.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/hierarchy/each.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/hierarchy/eachAfter.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/hierarchy/eachBefore.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/hierarchy/find.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/hierarchy/index.js +46 -44
- package/dist/node_modules/d3-hierarchy/src/hierarchy/iterator.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/hierarchy/leaves.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/hierarchy/links.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/hierarchy/path.js +6 -4
- package/dist/node_modules/d3-hierarchy/src/hierarchy/sort.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/hierarchy/sum.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/treemap/dice.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/treemap/index.js +16 -14
- package/dist/node_modules/d3-hierarchy/src/treemap/round.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/treemap/slice.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/treemap/squarify.js +11 -9
- package/dist/node_modules/d3-interpolate/src/array.js +6 -4
- package/dist/node_modules/d3-interpolate/src/basis.js +6 -4
- package/dist/node_modules/d3-interpolate/src/basisClosed.js +6 -4
- package/dist/node_modules/d3-interpolate/src/color.js +19 -17
- package/dist/node_modules/d3-interpolate/src/constant.js +4 -2
- package/dist/node_modules/d3-interpolate/src/date.js +4 -2
- package/dist/node_modules/d3-interpolate/src/hcl.js +8 -6
- package/dist/node_modules/d3-interpolate/src/number.js +4 -2
- package/dist/node_modules/d3-interpolate/src/numberArray.js +5 -3
- package/dist/node_modules/d3-interpolate/src/object.js +6 -4
- package/dist/node_modules/d3-interpolate/src/rgb.js +11 -9
- package/dist/node_modules/d3-interpolate/src/round.js +4 -2
- package/dist/node_modules/d3-interpolate/src/string.js +16 -14
- package/dist/node_modules/d3-interpolate/src/transform/decompose.js +7 -5
- package/dist/node_modules/d3-interpolate/src/transform/index.js +13 -11
- package/dist/node_modules/d3-interpolate/src/transform/parse.js +10 -8
- package/dist/node_modules/d3-interpolate/src/value.js +14 -12
- package/dist/node_modules/d3-interpolate/src/zoom.js +13 -11
- package/dist/node_modules/d3-path/src/path.js +16 -14
- package/dist/node_modules/d3-sankey/node_modules/d3-array/src/max.js +4 -2
- package/dist/node_modules/d3-sankey/node_modules/d3-array/src/min.js +4 -2
- package/dist/node_modules/d3-sankey/node_modules/d3-array/src/sum.js +4 -2
- package/dist/node_modules/d3-sankey/node_modules/d3-path/src/path.js +13 -12
- package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/array.js +4 -2
- package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/constant.js +4 -2
- package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/link/index.js +19 -17
- package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/point.js +5 -3
- package/dist/node_modules/d3-sankey/src/align.js +12 -10
- package/dist/node_modules/d3-sankey/src/constant.js +4 -2
- package/dist/node_modules/d3-sankey/src/sankey.js +170 -168
- package/dist/node_modules/d3-sankey/src/sankeyLinkHorizontal.js +8 -6
- package/dist/node_modules/d3-scale/src/band.js +11 -9
- package/dist/node_modules/d3-scale/src/constant.js +4 -2
- package/dist/node_modules/d3-scale/src/continuous.js +49 -47
- package/dist/node_modules/d3-scale/src/init.js +4 -2
- package/dist/node_modules/d3-scale/src/linear.js +15 -13
- package/dist/node_modules/d3-scale/src/nice.js +4 -2
- package/dist/node_modules/d3-scale/src/number.js +4 -2
- package/dist/node_modules/d3-scale/src/ordinal.js +18 -16
- package/dist/node_modules/d3-scale/src/tickFormat.js +16 -14
- package/dist/node_modules/d3-scale/src/time.js +36 -34
- package/dist/node_modules/d3-scale-chromatic/src/categorical/Tableau10.js +5 -3
- package/dist/node_modules/d3-scale-chromatic/src/colors.js +4 -2
- package/dist/node_modules/d3-selection/src/array.js +4 -2
- package/dist/node_modules/d3-selection/src/constant.js +4 -2
- package/dist/node_modules/d3-selection/src/creator.js +12 -10
- package/dist/node_modules/d3-selection/src/matcher.js +5 -3
- package/dist/node_modules/d3-selection/src/namespace.js +7 -5
- package/dist/node_modules/d3-selection/src/namespaces.js +5 -3
- package/dist/node_modules/d3-selection/src/pointer.js +6 -4
- package/dist/node_modules/d3-selection/src/select.js +6 -4
- package/dist/node_modules/d3-selection/src/selection/append.js +6 -4
- package/dist/node_modules/d3-selection/src/selection/attr.js +19 -17
- package/dist/node_modules/d3-selection/src/selection/call.js +4 -2
- package/dist/node_modules/d3-selection/src/selection/classed.js +25 -23
- package/dist/node_modules/d3-selection/src/selection/clone.js +7 -5
- package/dist/node_modules/d3-selection/src/selection/data.js +18 -16
- package/dist/node_modules/d3-selection/src/selection/datum.js +4 -2
- package/dist/node_modules/d3-selection/src/selection/dispatch.js +12 -10
- package/dist/node_modules/d3-selection/src/selection/each.js +4 -2
- package/dist/node_modules/d3-selection/src/selection/empty.js +4 -2
- package/dist/node_modules/d3-selection/src/selection/enter.js +13 -11
- package/dist/node_modules/d3-selection/src/selection/exit.js +7 -5
- package/dist/node_modules/d3-selection/src/selection/filter.js +8 -6
- package/dist/node_modules/d3-selection/src/selection/html.js +8 -6
- package/dist/node_modules/d3-selection/src/selection/index.js +80 -79
- package/dist/node_modules/d3-selection/src/selection/insert.js +8 -6
- package/dist/node_modules/d3-selection/src/selection/iterator.js +4 -2
- package/dist/node_modules/d3-selection/src/selection/join.js +4 -2
- package/dist/node_modules/d3-selection/src/selection/lower.js +6 -4
- package/dist/node_modules/d3-selection/src/selection/merge.js +6 -4
- package/dist/node_modules/d3-selection/src/selection/node.js +4 -2
- package/dist/node_modules/d3-selection/src/selection/nodes.js +4 -2
- package/dist/node_modules/d3-selection/src/selection/on.js +11 -9
- package/dist/node_modules/d3-selection/src/selection/order.js +4 -2
- package/dist/node_modules/d3-selection/src/selection/property.js +8 -6
- package/dist/node_modules/d3-selection/src/selection/raise.js +6 -4
- package/dist/node_modules/d3-selection/src/selection/remove.js +6 -4
- package/dist/node_modules/d3-selection/src/selection/select.js +8 -6
- package/dist/node_modules/d3-selection/src/selection/selectAll.js +11 -9
- package/dist/node_modules/d3-selection/src/selection/selectChild.js +10 -8
- package/dist/node_modules/d3-selection/src/selection/selectChildren.js +10 -8
- package/dist/node_modules/d3-selection/src/selection/size.js +4 -2
- package/dist/node_modules/d3-selection/src/selection/sort.js +8 -6
- package/dist/node_modules/d3-selection/src/selection/sparse.js +4 -2
- package/dist/node_modules/d3-selection/src/selection/style.js +14 -12
- package/dist/node_modules/d3-selection/src/selection/text.js +8 -6
- package/dist/node_modules/d3-selection/src/selector.js +6 -4
- package/dist/node_modules/d3-selection/src/selectorAll.js +6 -4
- package/dist/node_modules/d3-selection/src/sourceEvent.js +4 -2
- package/dist/node_modules/d3-selection/src/window.js +4 -2
- package/dist/node_modules/d3-shape/src/arc.js +38 -36
- package/dist/node_modules/d3-shape/src/array.js +3 -2
- package/dist/node_modules/d3-shape/src/constant.js +4 -2
- package/dist/node_modules/d3-shape/src/curve/basis.js +10 -8
- package/dist/node_modules/d3-shape/src/curve/basisClosed.js +18 -16
- package/dist/node_modules/d3-shape/src/curve/basisOpen.js +9 -7
- package/dist/node_modules/d3-shape/src/curve/bump.js +15 -13
- package/dist/node_modules/d3-shape/src/curve/bundle.js +9 -7
- package/dist/node_modules/d3-shape/src/curve/cardinal.js +10 -8
- package/dist/node_modules/d3-shape/src/curve/cardinalClosed.js +12 -10
- package/dist/node_modules/d3-shape/src/curve/cardinalOpen.js +9 -7
- package/dist/node_modules/d3-shape/src/curve/catmullRom.js +19 -17
- package/dist/node_modules/d3-shape/src/curve/catmullRomClosed.js +13 -11
- package/dist/node_modules/d3-shape/src/curve/catmullRomOpen.js +10 -8
- package/dist/node_modules/d3-shape/src/curve/linear.js +7 -5
- package/dist/node_modules/d3-shape/src/curve/linearClosed.js +12 -10
- package/dist/node_modules/d3-shape/src/curve/monotone.js +23 -21
- package/dist/node_modules/d3-shape/src/curve/natural.js +9 -7
- package/dist/node_modules/d3-shape/src/curve/step.js +19 -17
- package/dist/node_modules/d3-shape/src/descending.js +4 -2
- package/dist/node_modules/d3-shape/src/identity.js +4 -2
- package/dist/node_modules/d3-shape/src/line.js +19 -17
- package/dist/node_modules/d3-shape/src/math.js +8 -6
- package/dist/node_modules/d3-shape/src/noop.js +4 -2
- package/dist/node_modules/d3-shape/src/path.js +6 -4
- package/dist/node_modules/d3-shape/src/pie.js +15 -13
- package/dist/node_modules/d3-shape/src/point.js +5 -3
- package/dist/node_modules/d3-time/src/day.js +17 -15
- package/dist/node_modules/d3-time/src/duration.js +4 -2
- package/dist/node_modules/d3-time/src/hour.js +16 -14
- package/dist/node_modules/d3-time/src/interval.js +7 -5
- package/dist/node_modules/d3-time/src/millisecond.js +7 -5
- package/dist/node_modules/d3-time/src/minute.js +16 -14
- package/dist/node_modules/d3-time/src/month.js +14 -12
- package/dist/node_modules/d3-time/src/second.js +9 -7
- package/dist/node_modules/d3-time/src/ticks.js +66 -64
- package/dist/node_modules/d3-time/src/week.js +21 -19
- package/dist/node_modules/d3-time/src/year.js +10 -8
- package/dist/node_modules/d3-time-format/src/defaultLocale.js +8 -6
- package/dist/node_modules/d3-time-format/src/locale.js +346 -344
- package/dist/node_modules/d3-timer/src/timeout.js +6 -4
- package/dist/node_modules/d3-timer/src/timer.js +33 -31
- package/dist/node_modules/d3-transition/src/index.js +2 -2
- package/dist/node_modules/d3-transition/src/interrupt.js +4 -3
- package/dist/node_modules/d3-transition/src/selection/index.js +5 -4
- package/dist/node_modules/d3-transition/src/selection/interrupt.js +6 -4
- package/dist/node_modules/d3-transition/src/selection/transition.js +16 -14
- package/dist/node_modules/d3-transition/src/transition/attr.js +28 -26
- package/dist/node_modules/d3-transition/src/transition/attrTween.js +13 -11
- package/dist/node_modules/d3-transition/src/transition/delay.js +11 -9
- package/dist/node_modules/d3-transition/src/transition/duration.js +11 -9
- package/dist/node_modules/d3-transition/src/transition/ease.js +8 -6
- package/dist/node_modules/d3-transition/src/transition/easeVarying.js +8 -6
- package/dist/node_modules/d3-transition/src/transition/end.js +6 -4
- package/dist/node_modules/d3-transition/src/transition/filter.js +8 -6
- package/dist/node_modules/d3-transition/src/transition/index.js +63 -61
- package/dist/node_modules/d3-transition/src/transition/interpolate.js +9 -7
- package/dist/node_modules/d3-transition/src/transition/merge.js +6 -4
- package/dist/node_modules/d3-transition/src/transition/on.js +9 -7
- package/dist/node_modules/d3-transition/src/transition/remove.js +6 -4
- package/dist/node_modules/d3-transition/src/transition/schedule.js +20 -18
- package/dist/node_modules/d3-transition/src/transition/select.js +10 -8
- package/dist/node_modules/d3-transition/src/transition/selectAll.js +10 -8
- package/dist/node_modules/d3-transition/src/transition/selection.js +7 -5
- package/dist/node_modules/d3-transition/src/transition/style.js +21 -19
- package/dist/node_modules/d3-transition/src/transition/styleTween.js +8 -6
- package/dist/node_modules/d3-transition/src/transition/text.js +8 -6
- package/dist/node_modules/d3-transition/src/transition/textTween.js +8 -6
- package/dist/node_modules/d3-transition/src/transition/transition.js +10 -8
- package/dist/node_modules/d3-transition/src/transition/tween.js +14 -12
- package/dist/node_modules/d3-zoom/src/constant.js +4 -2
- package/dist/node_modules/d3-zoom/src/event.js +4 -2
- package/dist/node_modules/d3-zoom/src/index.js +2 -2
- package/dist/node_modules/d3-zoom/src/noevent.js +5 -3
- package/dist/node_modules/d3-zoom/src/transform.js +12 -10
- package/dist/node_modules/d3-zoom/src/zoom.js +116 -114
- package/dist/node_modules/dagre-d3-es/src/dagre/acyclic.js +14 -12
- package/dist/node_modules/dagre-d3-es/src/dagre/add-border-segments.js +11 -9
- package/dist/node_modules/dagre-d3-es/src/dagre/coordinate-system.js +36 -34
- package/dist/node_modules/dagre-d3-es/src/dagre/data/list.js +9 -7
- package/dist/node_modules/dagre-d3-es/src/dagre/greedy-fas.js +51 -49
- package/dist/node_modules/dagre-d3-es/src/dagre/index.js +2 -2
- package/dist/node_modules/dagre-d3-es/src/dagre/layout.js +165 -163
- package/dist/node_modules/dagre-d3-es/src/dagre/nesting-graph.js +45 -43
- package/dist/node_modules/dagre-d3-es/src/dagre/normalize.js +12 -10
- package/dist/node_modules/dagre-d3-es/src/dagre/order/add-subgraph-constraints.js +6 -4
- package/dist/node_modules/dagre-d3-es/src/dagre/order/barycenter.js +8 -6
- package/dist/node_modules/dagre-d3-es/src/dagre/order/build-layer-graph.js +14 -12
- package/dist/node_modules/dagre-d3-es/src/dagre/order/cross-count.js +22 -20
- package/dist/node_modules/dagre-d3-es/src/dagre/order/index.js +36 -34
- package/dist/node_modules/dagre-d3-es/src/dagre/order/init-order.js +16 -14
- package/dist/node_modules/dagre-d3-es/src/dagre/order/resolve-conflicts.js +32 -30
- package/dist/node_modules/dagre-d3-es/src/dagre/order/sort-subgraph.js +30 -28
- package/dist/node_modules/dagre-d3-es/src/dagre/order/sort.js +20 -18
- package/dist/node_modules/dagre-d3-es/src/dagre/parent-dummy-chains.js +12 -10
- package/dist/node_modules/dagre-d3-es/src/dagre/position/bk.js +150 -148
- package/dist/node_modules/dagre-d3-es/src/dagre/position/index.js +20 -18
- package/dist/node_modules/dagre-d3-es/src/dagre/rank/feasible-tree.js +19 -17
- package/dist/node_modules/dagre-d3-es/src/dagre/rank/index.js +16 -14
- package/dist/node_modules/dagre-d3-es/src/dagre/rank/network-simplex.js +64 -63
- package/dist/node_modules/dagre-d3-es/src/dagre/rank/util.js +15 -13
- package/dist/node_modules/dagre-d3-es/src/dagre/util.js +84 -82
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/dfs.js +15 -13
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/dijkstra.js +3 -2
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/floyd-warshall.js +3 -2
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/index.js +3 -3
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/postorder.js +6 -4
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/preorder.js +6 -4
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/topsort.js +13 -11
- package/dist/node_modules/dagre-d3-es/src/graphlib/graph.js +131 -129
- package/dist/node_modules/dagre-d3-es/src/graphlib/index.js +1 -1
- package/dist/node_modules/dagre-d3-es/src/graphlib/json.js +23 -21
- package/dist/node_modules/dayjs/dayjs.min.js +6 -4
- package/dist/node_modules/dayjs/plugin/advancedFormat.js +6 -4
- package/dist/node_modules/dayjs/plugin/customParseFormat.js +6 -4
- package/dist/node_modules/dayjs/plugin/duration.js +6 -4
- package/dist/node_modules/dayjs/plugin/isoWeek.js +6 -4
- package/dist/node_modules/decode-named-character-reference/index.dom.js +7 -5
- package/dist/node_modules/devlop/lib/default.js +4 -2
- package/dist/node_modules/dompurify/dist/purify.es.js +203 -201
- package/dist/node_modules/entities/dist/esm/decode-codepoint.js +6 -4
- package/dist/node_modules/entities/dist/esm/decode.js +87 -85
- package/dist/node_modules/entities/dist/esm/generated/decode-data-html.js +4 -2
- package/dist/node_modules/estree-util-is-identifier-name/lib/index.js +6 -4
- package/dist/node_modules/extend/index.js +9 -6
- package/dist/node_modules/hast-util-from-dom/lib/index.js +32 -30
- package/dist/node_modules/hast-util-from-html-isomorphic/lib/browser.js +10 -8
- package/dist/node_modules/hast-util-from-parse5/lib/index.js +82 -80
- package/dist/node_modules/hast-util-is-element/lib/index.js +17 -15
- package/dist/node_modules/hast-util-parse-selector/lib/index.js +7 -5
- package/dist/node_modules/hast-util-raw/lib/index.js +136 -134
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/doctype.js +23 -21
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/error-codes.js +5 -3
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/foreign-content.js +89 -89
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/html.js +250 -249
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/token.js +6 -4
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/unicode.js +14 -14
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/index.js +4 -4
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/formatting-element-list.js +17 -15
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/index.js +1497 -1495
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/open-element-stack.js +148 -146
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/serializer/index.js +20 -19
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/index.js +800 -798
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/preprocessor.js +33 -31
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tree-adapters/default.js +10 -8
- package/dist/node_modules/hast-util-sanitize/lib/index.js +106 -104
- package/dist/node_modules/hast-util-sanitize/lib/schema.js +12 -11
- package/dist/node_modules/hast-util-to-html/lib/handle/comment.js +9 -7
- package/dist/node_modules/hast-util-to-html/lib/handle/doctype.js +4 -2
- package/dist/node_modules/hast-util-to-html/lib/handle/element.js +25 -23
- package/dist/node_modules/hast-util-to-html/lib/handle/index.js +22 -21
- package/dist/node_modules/hast-util-to-html/lib/handle/raw.js +6 -4
- package/dist/node_modules/hast-util-to-html/lib/handle/root.js +4 -2
- package/dist/node_modules/hast-util-to-html/lib/handle/text.js +7 -5
- package/dist/node_modules/hast-util-to-html/lib/index.js +38 -36
- package/dist/node_modules/hast-util-to-html/lib/omission/closing.js +70 -68
- package/dist/node_modules/hast-util-to-html/lib/omission/omission.js +6 -4
- package/dist/node_modules/hast-util-to-html/lib/omission/opening.js +32 -30
- package/dist/node_modules/hast-util-to-html/lib/omission/util/siblings.js +10 -9
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +192 -190
- package/dist/node_modules/hast-util-to-parse5/lib/index.js +71 -69
- package/dist/node_modules/hast-util-to-text/lib/index.js +61 -59
- package/dist/node_modules/hast-util-whitespace/lib/index.js +8 -6
- package/dist/node_modules/hastscript/lib/create-h.js +26 -24
- package/dist/node_modules/hastscript/lib/index.js +7 -5
- package/dist/node_modules/hastscript/lib/svg-case-sensitive-tag-names.js +4 -2
- package/dist/node_modules/html-url-attributes/lib/index.js +4 -2
- package/dist/node_modules/html-void-elements/index.js +4 -2
- package/dist/node_modules/inline-style-parser/cjs/index.js +6 -4
- package/dist/node_modules/internmap/src/index.js +22 -20
- package/dist/node_modules/katex/dist/katex.js +2914 -2873
- package/dist/node_modules/khroma/dist/channels/index.js +23 -21
- package/dist/node_modules/khroma/dist/channels/reusable.js +5 -3
- package/dist/node_modules/khroma/dist/channels/type.js +7 -5
- package/dist/node_modules/khroma/dist/color/hex.js +10 -8
- package/dist/node_modules/khroma/dist/color/hsl.js +19 -17
- package/dist/node_modules/khroma/dist/color/index.js +17 -15
- package/dist/node_modules/khroma/dist/color/keyword.js +10 -8
- package/dist/node_modules/khroma/dist/color/rgb.js +14 -12
- package/dist/node_modules/khroma/dist/constants.js +7 -5
- package/dist/node_modules/khroma/dist/methods/adjust.js +8 -6
- package/dist/node_modules/khroma/dist/methods/adjust_channel.js +8 -6
- package/dist/node_modules/khroma/dist/methods/change.js +9 -7
- package/dist/node_modules/khroma/dist/methods/channel.js +6 -4
- package/dist/node_modules/khroma/dist/methods/darken.js +5 -3
- package/dist/node_modules/khroma/dist/methods/invert.js +8 -6
- package/dist/node_modules/khroma/dist/methods/is_dark.js +5 -3
- package/dist/node_modules/khroma/dist/methods/is_light.js +5 -3
- package/dist/node_modules/khroma/dist/methods/lighten.js +5 -3
- package/dist/node_modules/khroma/dist/methods/luminance.js +8 -6
- package/dist/node_modules/khroma/dist/methods/mix.js +8 -6
- package/dist/node_modules/khroma/dist/methods/rgba.js +15 -13
- package/dist/node_modules/khroma/dist/methods/transparentize.js +5 -0
- package/dist/node_modules/khroma/dist/utils/channel.js +8 -6
- package/dist/node_modules/khroma/dist/utils/index.js +10 -8
- package/dist/node_modules/khroma/dist/utils/lang.js +4 -2
- package/dist/node_modules/khroma/dist/utils/unit.js +4 -2
- package/dist/node_modules/langium/lib/default-module.js +66 -64
- package/dist/node_modules/langium/lib/dependency-injection.js +37 -39
- package/dist/node_modules/langium/lib/documentation/comment-provider.js +7 -5
- package/dist/node_modules/langium/lib/documentation/documentation-provider.js +8 -6
- package/dist/node_modules/langium/lib/documentation/jsdoc.js +204 -202
- package/dist/node_modules/langium/lib/languages/generated/ast.js +343 -534
- package/dist/node_modules/langium/lib/languages/grammar-config.js +10 -8
- package/dist/node_modules/langium/lib/parser/async-parser.js +4 -76
- package/dist/node_modules/langium/lib/parser/completion-parser-builder.js +8 -6
- package/dist/node_modules/langium/lib/parser/cst-node-builder.js +56 -54
- package/dist/node_modules/langium/lib/parser/langium-parser-builder.js +9 -7
- package/dist/node_modules/langium/lib/parser/langium-parser.js +190 -188
- package/dist/node_modules/langium/lib/parser/lexer.js +25 -25
- package/dist/node_modules/langium/lib/parser/parser-builder-base.js +204 -203
- package/dist/node_modules/langium/lib/parser/token-builder.js +32 -30
- package/dist/node_modules/langium/lib/parser/value-converter.js +17 -15
- package/dist/node_modules/langium/lib/references/linker.js +104 -103
- package/dist/node_modules/langium/lib/references/name-provider.js +9 -7
- package/dist/node_modules/langium/lib/references/references.js +53 -51
- package/dist/node_modules/langium/lib/references/scope-computation.js +14 -12
- package/dist/node_modules/langium/lib/references/scope-provider.js +13 -11
- package/dist/node_modules/langium/lib/references/scope.js +27 -56
- package/dist/node_modules/langium/lib/serializer/hydrator.js +71 -69
- package/dist/node_modules/langium/lib/serializer/json-serializer.js +23 -21
- package/dist/node_modules/langium/lib/service-registry.js +7 -5
- package/dist/node_modules/langium/lib/syntax-tree.js +33 -31
- package/dist/node_modules/langium/lib/utils/ast-utils.js +77 -112
- package/dist/node_modules/langium/lib/utils/caching.js +33 -42
- package/dist/node_modules/langium/lib/utils/cancellation.js +7 -5
- package/dist/node_modules/langium/lib/utils/collections.js +35 -33
- package/dist/node_modules/langium/lib/utils/cst-utils.js +46 -161
- package/dist/node_modules/langium/lib/utils/disposable.js +5 -3
- package/dist/node_modules/langium/lib/utils/errors.js +8 -9
- package/dist/node_modules/langium/lib/utils/event.js +7 -5
- package/dist/node_modules/langium/lib/utils/grammar-loader.js +16 -14
- package/dist/node_modules/langium/lib/utils/grammar-utils.js +172 -249
- package/dist/node_modules/langium/lib/utils/promise-utils.js +18 -19
- package/dist/node_modules/langium/lib/utils/regexp-utils.js +53 -76
- package/dist/node_modules/langium/lib/utils/stream.js +155 -153
- package/dist/node_modules/langium/lib/utils/uri-utils.js +14 -12
- package/dist/node_modules/langium/lib/validation/document-validator.js +104 -103
- package/dist/node_modules/langium/lib/validation/validation-registry.js +15 -14
- package/dist/node_modules/langium/lib/workspace/ast-descriptions.js +19 -17
- package/dist/node_modules/langium/lib/workspace/ast-node-locator.js +4 -2
- package/dist/node_modules/langium/lib/workspace/configuration.js +7 -5
- package/dist/node_modules/langium/lib/workspace/document-builder.js +131 -134
- package/dist/node_modules/langium/lib/workspace/documents.js +85 -83
- package/dist/node_modules/langium/lib/workspace/file-system-provider.js +5 -4
- package/dist/node_modules/langium/lib/workspace/index-manager.js +16 -14
- package/dist/node_modules/langium/lib/workspace/workspace-lock.js +11 -9
- package/dist/node_modules/langium/lib/workspace/workspace-manager.js +35 -33
- package/dist/node_modules/layout-base/layout-base.js +6 -4
- package/dist/node_modules/lodash-es/_DataView.js +6 -4
- package/dist/node_modules/lodash-es/_Hash.js +14 -13
- package/dist/node_modules/lodash-es/_ListCache.js +14 -13
- package/dist/node_modules/lodash-es/_Map.js +6 -4
- package/dist/node_modules/lodash-es/_MapCache.js +14 -13
- package/dist/node_modules/lodash-es/_Promise.js +6 -4
- package/dist/node_modules/lodash-es/_Set.js +6 -4
- package/dist/node_modules/lodash-es/_SetCache.js +10 -9
- package/dist/node_modules/lodash-es/_Stack.js +12 -11
- package/dist/node_modules/lodash-es/_Symbol.js +5 -3
- package/dist/node_modules/lodash-es/_Uint8Array.js +5 -3
- package/dist/node_modules/lodash-es/_WeakMap.js +6 -4
- package/dist/node_modules/lodash-es/_apply.js +4 -3
- package/dist/node_modules/lodash-es/_arrayEach.js +4 -3
- package/dist/node_modules/lodash-es/_arrayFilter.js +4 -3
- package/dist/node_modules/lodash-es/_arrayIncludes.js +6 -5
- package/dist/node_modules/lodash-es/_arrayIncludesWith.js +4 -3
- package/dist/node_modules/lodash-es/_arrayLikeKeys.js +13 -12
- package/dist/node_modules/lodash-es/_arrayMap.js +4 -3
- package/dist/node_modules/lodash-es/_arrayPush.js +4 -3
- package/dist/node_modules/lodash-es/_arrayReduce.js +4 -3
- package/dist/node_modules/lodash-es/_arraySome.js +4 -3
- package/dist/node_modules/lodash-es/_asciiSize.js +5 -3
- package/dist/node_modules/lodash-es/_assignMergeValue.js +7 -6
- package/dist/node_modules/lodash-es/_assignValue.js +8 -7
- package/dist/node_modules/lodash-es/_assocIndexOf.js +6 -5
- package/dist/node_modules/lodash-es/_baseAssign.js +7 -6
- package/dist/node_modules/lodash-es/_baseAssignIn.js +7 -6
- package/dist/node_modules/lodash-es/_baseAssignValue.js +6 -5
- package/dist/node_modules/lodash-es/_baseClone.js +51 -50
- package/dist/node_modules/lodash-es/_baseCreate.js +7 -5
- package/dist/node_modules/lodash-es/_baseEach.js +6 -4
- package/dist/node_modules/lodash-es/_baseExtremum.js +6 -5
- package/dist/node_modules/lodash-es/_baseFilter.js +6 -5
- package/dist/node_modules/lodash-es/_baseFindIndex.js +4 -3
- package/dist/node_modules/lodash-es/_baseFlatten.js +8 -7
- package/dist/node_modules/lodash-es/_baseFor.js +5 -3
- package/dist/node_modules/lodash-es/_baseForOwn.js +7 -6
- package/dist/node_modules/lodash-es/_baseGet.js +8 -7
- package/dist/node_modules/lodash-es/_baseGetAllKeys.js +7 -6
- package/dist/node_modules/lodash-es/_baseGetTag.js +9 -8
- package/dist/node_modules/lodash-es/_baseGt.js +4 -3
- package/dist/node_modules/lodash-es/_baseHas.js +6 -5
- package/dist/node_modules/lodash-es/_baseHasIn.js +4 -3
- package/dist/node_modules/lodash-es/_baseIndexOf.js +8 -7
- package/dist/node_modules/lodash-es/_baseIsArguments.js +8 -7
- package/dist/node_modules/lodash-es/_baseIsEqual.js +7 -6
- package/dist/node_modules/lodash-es/_baseIsEqualDeep.js +23 -22
- package/dist/node_modules/lodash-es/_baseIsMap.js +8 -7
- package/dist/node_modules/lodash-es/_baseIsMatch.js +9 -8
- package/dist/node_modules/lodash-es/_baseIsNaN.js +4 -3
- package/dist/node_modules/lodash-es/_baseIsNative.js +10 -9
- package/dist/node_modules/lodash-es/_baseIsSet.js +8 -7
- package/dist/node_modules/lodash-es/_baseIsTypedArray.js +10 -9
- package/dist/node_modules/lodash-es/_baseIteratee.js +10 -9
- package/dist/node_modules/lodash-es/_baseKeys.js +9 -8
- package/dist/node_modules/lodash-es/_baseKeysIn.js +11 -10
- package/dist/node_modules/lodash-es/_baseLt.js +4 -3
- package/dist/node_modules/lodash-es/_baseMap.js +8 -7
- package/dist/node_modules/lodash-es/_baseMatches.js +10 -9
- package/dist/node_modules/lodash-es/_baseMatchesProperty.js +15 -14
- package/dist/node_modules/lodash-es/_baseMerge.js +16 -15
- package/dist/node_modules/lodash-es/_baseMergeDeep.js +24 -23
- package/dist/node_modules/lodash-es/_baseOrderBy.js +23 -22
- package/dist/node_modules/lodash-es/_basePick.js +8 -7
- package/dist/node_modules/lodash-es/_basePickBy.js +9 -8
- package/dist/node_modules/lodash-es/_baseProperty.js +4 -3
- package/dist/node_modules/lodash-es/_basePropertyDeep.js +6 -5
- package/dist/node_modules/lodash-es/_baseRange.js +6 -5
- package/dist/node_modules/lodash-es/_baseReduce.js +4 -3
- package/dist/node_modules/lodash-es/_baseRest.js +8 -7
- package/dist/node_modules/lodash-es/_baseSet.js +14 -13
- package/dist/node_modules/lodash-es/_baseSetToString.js +10 -8
- package/dist/node_modules/lodash-es/_baseSortBy.js +4 -3
- package/dist/node_modules/lodash-es/_baseTimes.js +4 -3
- package/dist/node_modules/lodash-es/_baseToString.js +13 -12
- package/dist/node_modules/lodash-es/_baseTrim.js +7 -6
- package/dist/node_modules/lodash-es/_baseUnary.js +4 -3
- package/dist/node_modules/lodash-es/_baseUniq.js +17 -16
- package/dist/node_modules/lodash-es/_baseValues.js +6 -5
- package/dist/node_modules/lodash-es/_baseZipObject.js +4 -3
- package/dist/node_modules/lodash-es/_cacheHas.js +4 -3
- package/dist/node_modules/lodash-es/_castFunction.js +6 -5
- package/dist/node_modules/lodash-es/_castPath.js +9 -8
- package/dist/node_modules/lodash-es/_cloneArrayBuffer.js +6 -5
- package/dist/node_modules/lodash-es/_cloneBuffer.js +9 -8
- package/dist/node_modules/lodash-es/_cloneDataView.js +6 -5
- package/dist/node_modules/lodash-es/_cloneRegExp.js +6 -5
- package/dist/node_modules/lodash-es/_cloneSymbol.js +7 -6
- package/dist/node_modules/lodash-es/_cloneTypedArray.js +6 -5
- package/dist/node_modules/lodash-es/_compareAscending.js +6 -5
- package/dist/node_modules/lodash-es/_compareMultiple.js +6 -5
- package/dist/node_modules/lodash-es/_copyArray.js +4 -3
- package/dist/node_modules/lodash-es/_copyObject.js +7 -6
- package/dist/node_modules/lodash-es/_copySymbols.js +7 -6
- package/dist/node_modules/lodash-es/_copySymbolsIn.js +7 -6
- package/dist/node_modules/lodash-es/_coreJsData.js +5 -3
- package/dist/node_modules/lodash-es/_createAssigner.js +8 -7
- package/dist/node_modules/lodash-es/_createBaseEach.js +6 -5
- package/dist/node_modules/lodash-es/_createBaseFor.js +4 -3
- package/dist/node_modules/lodash-es/_createFind.js +10 -9
- package/dist/node_modules/lodash-es/_createRange.js +8 -7
- package/dist/node_modules/lodash-es/_createSet.js +9 -7
- package/dist/node_modules/lodash-es/_defineProperty.js +6 -4
- package/dist/node_modules/lodash-es/_equalArrays.js +12 -11
- package/dist/node_modules/lodash-es/_equalByTag.js +29 -28
- package/dist/node_modules/lodash-es/_equalObjects.js +9 -8
- package/dist/node_modules/lodash-es/_flatRest.js +8 -7
- package/dist/node_modules/lodash-es/_freeGlobal.js +4 -2
- package/dist/node_modules/lodash-es/_getAllKeys.js +8 -7
- package/dist/node_modules/lodash-es/_getAllKeysIn.js +8 -7
- package/dist/node_modules/lodash-es/_getMapData.js +6 -5
- package/dist/node_modules/lodash-es/_getMatchData.js +8 -7
- package/dist/node_modules/lodash-es/_getNative.js +8 -7
- package/dist/node_modules/lodash-es/_getPrototype.js +5 -3
- package/dist/node_modules/lodash-es/_getRawTag.js +10 -9
- package/dist/node_modules/lodash-es/_getSymbols.js +9 -7
- package/dist/node_modules/lodash-es/_getSymbolsIn.js +10 -8
- package/dist/node_modules/lodash-es/_getTag.js +21 -19
- package/dist/node_modules/lodash-es/_getValue.js +4 -3
- package/dist/node_modules/lodash-es/_hasPath.js +13 -12
- package/dist/node_modules/lodash-es/_hasUnicode.js +6 -5
- package/dist/node_modules/lodash-es/_hashClear.js +6 -5
- package/dist/node_modules/lodash-es/_hashDelete.js +5 -4
- package/dist/node_modules/lodash-es/_hashGet.js +9 -8
- package/dist/node_modules/lodash-es/_hashHas.js +7 -6
- package/dist/node_modules/lodash-es/_hashSet.js +7 -6
- package/dist/node_modules/lodash-es/_initCloneArray.js +6 -5
- package/dist/node_modules/lodash-es/_initCloneByTag.js +29 -28
- package/dist/node_modules/lodash-es/_initCloneObject.js +8 -7
- package/dist/node_modules/lodash-es/_isFlattenable.js +9 -8
- package/dist/node_modules/lodash-es/_isIndex.js +6 -5
- package/dist/node_modules/lodash-es/_isIterateeCall.js +10 -9
- package/dist/node_modules/lodash-es/_isKey.js +9 -8
- package/dist/node_modules/lodash-es/_isKeyable.js +4 -3
- package/dist/node_modules/lodash-es/_isMasked.js +9 -8
- package/dist/node_modules/lodash-es/_isPrototype.js +6 -5
- package/dist/node_modules/lodash-es/_isStrictComparable.js +6 -5
- package/dist/node_modules/lodash-es/_listCacheClear.js +4 -3
- package/dist/node_modules/lodash-es/_listCacheDelete.js +8 -7
- package/dist/node_modules/lodash-es/_listCacheGet.js +6 -5
- package/dist/node_modules/lodash-es/_listCacheHas.js +6 -5
- package/dist/node_modules/lodash-es/_listCacheSet.js +6 -5
- package/dist/node_modules/lodash-es/_mapCacheClear.js +10 -9
- package/dist/node_modules/lodash-es/_mapCacheDelete.js +7 -6
- package/dist/node_modules/lodash-es/_mapCacheGet.js +6 -5
- package/dist/node_modules/lodash-es/_mapCacheHas.js +6 -5
- package/dist/node_modules/lodash-es/_mapCacheSet.js +6 -5
- package/dist/node_modules/lodash-es/_mapToArray.js +4 -3
- package/dist/node_modules/lodash-es/_matchesStrictComparable.js +4 -3
- package/dist/node_modules/lodash-es/_memoizeCapped.js +8 -7
- package/dist/node_modules/lodash-es/_nativeCreate.js +5 -3
- package/dist/node_modules/lodash-es/_nativeKeys.js +5 -3
- package/dist/node_modules/lodash-es/_nativeKeysIn.js +4 -3
- package/dist/node_modules/lodash-es/_nodeUtil.js +6 -4
- package/dist/node_modules/lodash-es/_objectToString.js +6 -5
- package/dist/node_modules/lodash-es/_overArg.js +4 -3
- package/dist/node_modules/lodash-es/_overRest.js +9 -8
- package/dist/node_modules/lodash-es/_root.js +5 -3
- package/dist/node_modules/lodash-es/_safeGet.js +4 -3
- package/dist/node_modules/lodash-es/_setCacheAdd.js +6 -5
- package/dist/node_modules/lodash-es/_setCacheHas.js +4 -3
- package/dist/node_modules/lodash-es/_setToArray.js +4 -3
- package/dist/node_modules/lodash-es/_setToString.js +6 -4
- package/dist/node_modules/lodash-es/_shortOut.js +7 -6
- package/dist/node_modules/lodash-es/_stackClear.js +6 -5
- package/dist/node_modules/lodash-es/_stackDelete.js +4 -3
- package/dist/node_modules/lodash-es/_stackGet.js +4 -3
- package/dist/node_modules/lodash-es/_stackHas.js +4 -3
- package/dist/node_modules/lodash-es/_stackSet.js +11 -10
- package/dist/node_modules/lodash-es/_strictIndexOf.js +4 -3
- package/dist/node_modules/lodash-es/_stringSize.js +8 -7
- package/dist/node_modules/lodash-es/_stringToPath.js +7 -5
- package/dist/node_modules/lodash-es/_toKey.js +8 -7
- package/dist/node_modules/lodash-es/_toSource.js +8 -7
- package/dist/node_modules/lodash-es/_trimmedEndIndex.js +6 -5
- package/dist/node_modules/lodash-es/_unicodeSize.js +17 -16
- package/dist/node_modules/lodash-es/clone.js +7 -6
- package/dist/node_modules/lodash-es/cloneDeep.js +7 -6
- package/dist/node_modules/lodash-es/constant.js +4 -3
- package/dist/node_modules/lodash-es/defaults.js +13 -11
- package/dist/node_modules/lodash-es/eq.js +4 -3
- package/dist/node_modules/lodash-es/filter.js +9 -8
- package/dist/node_modules/lodash-es/find.js +6 -4
- package/dist/node_modules/lodash-es/findIndex.js +10 -9
- package/dist/node_modules/lodash-es/flatMap.js +7 -6
- package/dist/node_modules/lodash-es/flatten.js +6 -5
- package/dist/node_modules/lodash-es/forEach.js +9 -8
- package/dist/node_modules/lodash-es/forIn.js +8 -7
- package/dist/node_modules/lodash-es/forOwn.js +7 -6
- package/dist/node_modules/lodash-es/get.js +6 -5
- package/dist/node_modules/lodash-es/has.js +7 -6
- package/dist/node_modules/lodash-es/hasIn.js +7 -6
- package/dist/node_modules/lodash-es/identity.js +4 -3
- package/dist/node_modules/lodash-es/isArguments.js +8 -6
- package/dist/node_modules/lodash-es/isArray.js +4 -2
- package/dist/node_modules/lodash-es/isArrayLike.js +7 -6
- package/dist/node_modules/lodash-es/isArrayLikeObject.js +7 -6
- package/dist/node_modules/lodash-es/isBuffer.js +6 -4
- package/dist/node_modules/lodash-es/isEmpty.js +18 -17
- package/dist/node_modules/lodash-es/isFunction.js +10 -9
- package/dist/node_modules/lodash-es/isLength.js +6 -5
- package/dist/node_modules/lodash-es/isMap.js +7 -5
- package/dist/node_modules/lodash-es/isObject.js +4 -3
- package/dist/node_modules/lodash-es/isObjectLike.js +4 -3
- package/dist/node_modules/lodash-es/isPlainObject.js +13 -12
- package/dist/node_modules/lodash-es/isSet.js +7 -5
- package/dist/node_modules/lodash-es/isString.js +9 -8
- package/dist/node_modules/lodash-es/isSymbol.js +8 -7
- package/dist/node_modules/lodash-es/isTypedArray.js +7 -5
- package/dist/node_modules/lodash-es/isUndefined.js +4 -3
- package/dist/node_modules/lodash-es/keys.js +8 -7
- package/dist/node_modules/lodash-es/keysIn.js +8 -7
- package/dist/node_modules/lodash-es/last.js +4 -3
- package/dist/node_modules/lodash-es/map.js +9 -8
- package/dist/node_modules/lodash-es/mapValues.js +9 -8
- package/dist/node_modules/lodash-es/max.js +8 -7
- package/dist/node_modules/lodash-es/memoize.js +9 -8
- package/dist/node_modules/lodash-es/merge.js +7 -5
- package/dist/node_modules/lodash-es/min.js +8 -7
- package/dist/node_modules/lodash-es/minBy.js +8 -7
- package/dist/node_modules/lodash-es/noop.js +4 -3
- package/dist/node_modules/lodash-es/now.js +6 -4
- package/dist/node_modules/lodash-es/pick.js +7 -5
- package/dist/node_modules/lodash-es/property.js +9 -8
- package/dist/node_modules/lodash-es/range.js +5 -3
- package/dist/node_modules/lodash-es/reduce.js +11 -10
- package/dist/node_modules/lodash-es/size.js +13 -12
- package/dist/node_modules/lodash-es/sortBy.js +9 -7
- package/dist/node_modules/lodash-es/stubArray.js +4 -3
- package/dist/node_modules/lodash-es/stubFalse.js +4 -3
- package/dist/node_modules/lodash-es/toFinite.js +7 -6
- package/dist/node_modules/lodash-es/toInteger.js +6 -5
- package/dist/node_modules/lodash-es/toNumber.js +14 -13
- package/dist/node_modules/lodash-es/toPlainObject.js +7 -6
- package/dist/node_modules/lodash-es/toString.js +6 -5
- package/dist/node_modules/lodash-es/union.js +9 -7
- package/dist/node_modules/lodash-es/uniqBy.js +7 -6
- package/dist/node_modules/lodash-es/uniqueId.js +8 -7
- package/dist/node_modules/lodash-es/values.js +7 -6
- package/dist/node_modules/lodash-es/zipObject.js +7 -6
- package/dist/node_modules/longest-streak/index.js +4 -2
- package/dist/node_modules/markdown-table/index.js +11 -9
- package/dist/node_modules/marked/lib/marked.esm.js +687 -685
- package/dist/node_modules/mdast-util-find-and-replace/lib/index.js +14 -12
- package/dist/node_modules/mdast-util-find-and-replace/node_modules/escape-string-regexp/index.js +4 -2
- package/dist/node_modules/mdast-util-from-markdown/lib/index.js +182 -180
- package/dist/node_modules/mdast-util-gfm/lib/index.js +20 -18
- package/dist/node_modules/mdast-util-gfm-autolink-literal/lib/index.js +69 -67
- package/dist/node_modules/mdast-util-gfm-footnote/lib/index.js +47 -45
- package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.js +15 -13
- package/dist/node_modules/mdast-util-gfm-table/lib/index.js +30 -28
- package/dist/node_modules/mdast-util-gfm-task-list-item/lib/index.js +16 -14
- package/dist/node_modules/mdast-util-math/lib/index.js +15 -13
- package/dist/node_modules/mdast-util-phrasing/lib/index.js +5 -3
- package/dist/node_modules/mdast-util-to-hast/lib/footer.js +11 -9
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/break.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/delete.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js +6 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/heading.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/html.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js +8 -6
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/image.js +6 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/index.js +55 -53
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js +8 -6
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/link.js +6 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/list-item.js +15 -13
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/list.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/root.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/strong.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-row.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table.js +6 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.js +6 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/index.js +8 -6
- package/dist/node_modules/mdast-util-to-hast/lib/revert.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/state.js +61 -59
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js +6 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.js +6 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.js +18 -16
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/definition.js +6 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js +14 -12
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.js +8 -6
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/html.js +6 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js +6 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/image.js +8 -6
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/index.js +43 -41
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js +7 -5
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js +6 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.js +11 -9
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/list-item.js +7 -5
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/list.js +12 -10
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js +4 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.js +6 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.js +14 -12
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.js +4 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js +7 -5
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js +4 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js +6 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js +4 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js +4 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-fence.js +4 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js +4 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-quote.js +4 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js +4 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule.js +4 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-strong.js +4 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js +4 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-info.js +6 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js +4 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js +8 -7
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js +6 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js +6 -4
- package/dist/node_modules/mdast-util-to-string/lib/index.js +14 -12
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/architectureDiagram-Q4EWVU46.js +695 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-DXYQGD6D.js +3038 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{c4Diagram-YG6GDRKO.js → c4Diagram-AHTNJAMY.js} +581 -573
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-336JU56O.js +49 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-426QAEUC.js +11 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-4BX2VUAB.js +6 -4
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-B4BG7PRW.js → chunk-4TB4RGXK.js} +590 -444
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-55IACEB6.js +7 -5
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-5FUZZQ4R.js +3640 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-5PVQY5BW.js +342 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-AGHRB4JF.js +22 -20
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-BSJP7CBP.js +82 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-EDXVE4YY.js +25 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ENJZ2VHE.js +570 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-FMBD7UC4.js +5 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ICPOFSXX.js +2348 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-OYMX7WX6.js +2014 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-QZHKN3VN.js +8 -4
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-U2HBQHQK.js +274 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-X2U36JSP.js +67 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-XPW4576I.js +1146 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-YZCP3GAM.js +62 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ZZ45TVLE.js +32 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-6PBFFD2Q.js +29 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-HSJHXN6E.js +29 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/cose-bilkent-S5V4N54A.js +116 -114
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/dagre-KV5264BT.js +265 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-5BDNPKRD.js +101 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-G4DWMVQ6.js +284 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-MMDJMWI5.js +213 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-TYMM5635.js +133 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{erDiagram-Q2GNP2WA.js → erDiagram-SMLLAGMA.js} +549 -445
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{flowDiagram-NV44I4VS.js → flowDiagram-DWJPFMVM.js} +1366 -1345
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-T4ZO3ILL.js +1720 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-UUTBAWPF.js +730 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/infoDiagram-42DDH7IO.js +19 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ishikawaDiagram-UXIWVN3A.js +718 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/journeyDiagram-VCZTEJTY.js +885 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{kanban-definition-3W4ZIXB7.js → kanban-definition-6JOO6SKY.js} +124 -118
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{mindmap-definition-VGOIOE7T.js → mindmap-definition-QFDTVHPH.js} +172 -122
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/pieDiagram-DEJITSTG.js +119 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{quadrantDiagram-AYHSOK5B.js → quadrantDiagram-34T5L4WZ.js} +279 -273
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{requirementDiagram-UZGBJVZJ.js → requirementDiagram-MS252O5E.js} +100 -66
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sankeyDiagram-XADWPNL6.js +529 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-FGHM5R23.js +4159 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-FHFEXIEX.js +222 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-QKLJ7IA2.js +27 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-GMOUNBTQ.js +1073 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/vennDiagram-DHZGUBPP.js +961 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/wardleyDiagram-NUSXRM2D.js +578 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/xychartDiagram-5P7HB3ND.js +2000 -0
- package/dist/node_modules/mermaid/dist/mermaid.core.js +492 -445
- package/dist/node_modules/micromark/lib/constructs.js +80 -79
- package/dist/node_modules/micromark/lib/create-tokenizer.js +14 -12
- package/dist/node_modules/micromark/lib/initialize/content.js +9 -7
- package/dist/node_modules/micromark/lib/initialize/document.js +15 -14
- package/dist/node_modules/micromark/lib/initialize/flow.js +9 -7
- package/dist/node_modules/micromark/lib/initialize/text.js +8 -6
- package/dist/node_modules/micromark/lib/parse.js +20 -18
- package/dist/node_modules/micromark/lib/postprocess.js +6 -4
- package/dist/node_modules/micromark/lib/preprocess.js +6 -4
- package/dist/node_modules/micromark-core-commonmark/lib/attention.js +20 -18
- package/dist/node_modules/micromark-core-commonmark/lib/autolink.js +17 -15
- package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js +11 -9
- package/dist/node_modules/micromark-core-commonmark/lib/block-quote.js +15 -13
- package/dist/node_modules/micromark-core-commonmark/lib/character-escape.js +8 -6
- package/dist/node_modules/micromark-core-commonmark/lib/character-reference.js +16 -14
- package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.js +22 -21
- package/dist/node_modules/micromark-core-commonmark/lib/code-indented.js +16 -15
- package/dist/node_modules/micromark-core-commonmark/lib/code-text.js +13 -11
- package/dist/node_modules/micromark-core-commonmark/lib/content.js +18 -17
- package/dist/node_modules/micromark-core-commonmark/lib/definition.js +30 -29
- package/dist/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +8 -6
- package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.js +15 -13
- package/dist/node_modules/micromark-core-commonmark/lib/html-flow.js +68 -67
- package/dist/node_modules/micromark-core-commonmark/lib/html-text.js +66 -64
- package/dist/node_modules/micromark-core-commonmark/lib/label-end.js +112 -111
- package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.js +8 -6
- package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.js +8 -6
- package/dist/node_modules/micromark-core-commonmark/lib/line-ending.js +8 -6
- package/dist/node_modules/micromark-core-commonmark/lib/list.js +32 -31
- package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.js +12 -10
- package/dist/node_modules/micromark-core-commonmark/lib/thematic-break.js +11 -9
- package/dist/node_modules/micromark-extension-gfm/index.js +16 -14
- package/dist/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js +122 -120
- package/dist/node_modules/micromark-extension-gfm-footnote/lib/syntax.js +33 -31
- package/dist/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js +11 -9
- package/dist/node_modules/micromark-extension-gfm-table/lib/edit-map.js +6 -4
- package/dist/node_modules/micromark-extension-gfm-table/lib/infer.js +4 -2
- package/dist/node_modules/micromark-extension-gfm-table/lib/syntax.js +36 -34
- package/dist/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js +20 -18
- package/dist/node_modules/micromark-extension-math/lib/math-flow.js +21 -20
- package/dist/node_modules/micromark-extension-math/lib/math-text.js +11 -9
- package/dist/node_modules/micromark-extension-math/lib/syntax.js +8 -6
- package/dist/node_modules/micromark-factory-destination/index.js +10 -8
- package/dist/node_modules/micromark-factory-label/index.js +7 -5
- package/dist/node_modules/micromark-factory-space/index.js +7 -5
- package/dist/node_modules/micromark-factory-title/index.js +8 -6
- package/dist/node_modules/micromark-factory-whitespace/index.js +7 -5
- package/dist/node_modules/micromark-util-character/index.js +14 -12
- package/dist/node_modules/micromark-util-chunked/index.js +6 -4
- package/dist/node_modules/micromark-util-classify-character/index.js +7 -5
- package/dist/node_modules/micromark-util-combine-extensions/index.js +13 -11
- package/dist/node_modules/micromark-util-decode-numeric-character-reference/index.js +4 -2
- package/dist/node_modules/micromark-util-decode-string/index.js +11 -9
- package/dist/node_modules/micromark-util-html-tag-name/index.js +4 -2
- package/dist/node_modules/micromark-util-normalize-identifier/index.js +4 -2
- package/dist/node_modules/micromark-util-resolve-all/index.js +4 -2
- package/dist/node_modules/micromark-util-sanitize-uri/index.js +6 -4
- package/dist/node_modules/micromark-util-subtokenize/index.js +10 -8
- package/dist/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +10 -8
- package/dist/node_modules/motion/dist/es/react.js +2 -2
- package/dist/node_modules/nanoid/index.browser.js +6 -4
- package/dist/node_modules/nanoid/url-alphabet/index.js +4 -2
- package/dist/node_modules/property-information/index.js +25 -23
- package/dist/node_modules/property-information/lib/aria.js +41 -39
- package/dist/node_modules/property-information/lib/find.js +18 -16
- package/dist/node_modules/property-information/lib/hast-to-react.js +4 -2
- package/dist/node_modules/property-information/lib/html.js +96 -94
- package/dist/node_modules/property-information/lib/normalize.js +4 -2
- package/dist/node_modules/property-information/lib/svg.js +79 -77
- package/dist/node_modules/property-information/lib/util/case-insensitive-transform.js +6 -4
- package/dist/node_modules/property-information/lib/util/case-sensitive-transform.js +4 -2
- package/dist/node_modules/property-information/lib/util/create.js +10 -8
- package/dist/node_modules/property-information/lib/util/defined-info.js +13 -11
- package/dist/node_modules/property-information/lib/util/info.js +5 -3
- package/dist/node_modules/property-information/lib/util/merge.js +6 -4
- package/dist/node_modules/property-information/lib/util/schema.js +5 -3
- package/dist/node_modules/property-information/lib/util/types.js +15 -14
- package/dist/node_modules/property-information/lib/xlink.js +5 -3
- package/dist/node_modules/property-information/lib/xml.js +5 -3
- package/dist/node_modules/property-information/lib/xmlns.js +7 -5
- package/dist/node_modules/rehype-harden/dist/index.js +47 -45
- package/dist/node_modules/rehype-katex/lib/index.js +25 -23
- package/dist/node_modules/rehype-raw/lib/index.js +6 -4
- package/dist/node_modules/rehype-sanitize/lib/index.js +6 -4
- package/dist/node_modules/remark-gfm/lib/index.js +9 -7
- package/dist/node_modules/remark-math/lib/index.js +9 -7
- package/dist/node_modules/remark-parse/lib/index.js +6 -4
- package/dist/node_modules/remark-rehype/lib/index.js +7 -5
- package/dist/node_modules/remend/dist/index.js +368 -297
- package/dist/node_modules/roughjs/bundled/rough.esm.js +877 -875
- package/dist/node_modules/shiki/dist/bundle-full.js +13 -11
- package/dist/node_modules/shiki/dist/chunk-CtajNgzt.js +17 -0
- package/dist/node_modules/shiki/dist/engine-oniguruma.js +7 -0
- package/dist/node_modules/shiki/dist/{langs.js → langs-bundle-full-DfKZStlK.js} +8 -6
- package/dist/node_modules/shiki/dist/themes.js +6 -4
- package/dist/node_modules/shiki/dist/wasm.js +2 -2
- package/dist/node_modules/space-separated-tokens/index.js +5 -3
- package/dist/node_modules/streamdown/dist/chunk-BO2N2NFS.js +2500 -0
- package/dist/node_modules/streamdown/dist/highlighted-body-OFNGDK62.js +37 -0
- package/dist/node_modules/streamdown/dist/index.js +1 -1
- package/dist/node_modules/streamdown/dist/mermaid-GHXKKRXX.js +3 -0
- package/dist/node_modules/streamdown/node_modules/marked/lib/marked.esm.js +701 -699
- package/dist/node_modules/stringify-entities/lib/constant/dangerous.js +4 -2
- package/dist/node_modules/stringify-entities/lib/core.js +18 -16
- package/dist/node_modules/stringify-entities/lib/index.js +7 -5
- package/dist/node_modules/stringify-entities/lib/util/format-smart.js +10 -8
- package/dist/node_modules/stringify-entities/lib/util/to-decimal.js +6 -4
- package/dist/node_modules/stringify-entities/lib/util/to-hexadecimal.js +6 -4
- package/dist/node_modules/stringify-entities/lib/util/to-named.js +14 -12
- package/dist/node_modules/style-to-js/cjs/index.js +9 -7
- package/dist/node_modules/style-to-js/cjs/utilities.js +6 -4
- package/dist/node_modules/style-to-object/cjs/index.js +8 -6
- package/dist/node_modules/stylis/src/Enum.js +4 -2
- package/dist/node_modules/stylis/src/Parser.js +38 -36
- package/dist/node_modules/stylis/src/Serializer.js +17 -15
- package/dist/node_modules/stylis/src/Tokenizer.js +53 -51
- package/dist/node_modules/stylis/src/Utility.js +17 -15
- package/dist/node_modules/trim-lines/index.js +10 -8
- package/dist/node_modules/trough/lib/index.js +6 -4
- package/dist/node_modules/ts-dedent/esm/index.js +4 -2
- package/dist/node_modules/unified/lib/callable-instance.js +4 -2
- package/dist/node_modules/unified/lib/index.js +102 -101
- package/dist/node_modules/unified/node_modules/is-plain-obj/index.js +4 -2
- package/dist/node_modules/unist-util-find-after/lib/index.js +6 -4
- package/dist/node_modules/unist-util-is/lib/index.js +31 -29
- package/dist/node_modules/unist-util-position/lib/index.js +7 -5
- package/dist/node_modules/unist-util-stringify-position/lib/index.js +10 -8
- package/dist/node_modules/unist-util-visit/lib/index.js +6 -4
- package/dist/node_modules/unist-util-visit-parents/lib/color.js +4 -2
- package/dist/node_modules/unist-util-visit-parents/lib/index.js +21 -20
- package/dist/node_modules/uuid/dist/esm-browser/native.js +3 -2
- package/dist/node_modules/uuid/dist/esm-browser/rng.js +8 -6
- package/dist/node_modules/uuid/dist/esm-browser/stringify.js +7 -5
- package/dist/node_modules/uuid/dist/esm-browser/v4.js +10 -9
- package/dist/node_modules/vaul/dist/index.js +276 -274
- package/dist/node_modules/vfile/lib/index.js +44 -42
- package/dist/node_modules/vfile/lib/minpath.browser.js +22 -20
- package/dist/node_modules/vfile/lib/minproc.browser.js +5 -3
- package/dist/node_modules/vfile/lib/minurl.browser.js +8 -6
- package/dist/node_modules/vfile/lib/minurl.shared.js +4 -2
- package/dist/node_modules/vfile-location/lib/index.js +7 -5
- package/dist/node_modules/vfile-message/lib/index.js +7 -5
- package/dist/node_modules/vscode-jsonrpc/browser.js +8 -6
- package/dist/node_modules/vscode-jsonrpc/lib/browser/main.js +11 -9
- package/dist/node_modules/vscode-jsonrpc/lib/browser/ril.js +8 -6
- package/dist/node_modules/vscode-jsonrpc/lib/common/api.js +28 -26
- package/dist/node_modules/vscode-jsonrpc/lib/common/cancellation.js +17 -15
- package/dist/node_modules/vscode-jsonrpc/lib/common/connection.js +13 -11
- package/dist/node_modules/vscode-jsonrpc/lib/common/disposable.js +6 -4
- package/dist/node_modules/vscode-jsonrpc/lib/common/events.js +8 -6
- package/dist/node_modules/vscode-jsonrpc/lib/common/is.js +6 -4
- package/dist/node_modules/vscode-jsonrpc/lib/common/linkedMap.js +6 -4
- package/dist/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js +6 -4
- package/dist/node_modules/vscode-jsonrpc/lib/common/messageReader.js +11 -9
- package/dist/node_modules/vscode-jsonrpc/lib/common/messageWriter.js +31 -29
- package/dist/node_modules/vscode-jsonrpc/lib/common/messages.js +8 -6
- package/dist/node_modules/vscode-jsonrpc/lib/common/ral.js +6 -4
- package/dist/node_modules/vscode-jsonrpc/lib/common/semaphore.js +8 -6
- package/dist/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/browser/main.js +10 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/api.js +23 -21
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/connection.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/messages.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js +14 -12
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.js +55 -53
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.js +10 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js +12 -10
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js +6 -4
- package/dist/node_modules/vscode-languageserver-textdocument/lib/esm/main.js +21 -19
- package/dist/node_modules/vscode-languageserver-types/lib/esm/main.js +849 -847
- package/dist/node_modules/vscode-uri/lib/esm/index.js +6 -4
- package/dist/node_modules/web-namespaces/index.js +4 -2
- package/dist/node_modules/zwitch/index.js +7 -5
- package/dist/packages/contracts/dist/enums/index.js +14 -12
- package/dist/packages/contracts/dist/enums/registry.enum.js +6 -4
- package/dist/packages/contracts/dist/enums/sort-order.enum.js +6 -4
- package/dist/packages/contracts/dist/enums/user-type.enum.js +6 -4
- package/dist/packages/contracts/dist/enums/workflow-state.enum.js +6 -4
- package/dist/pages/DashboardPage.js +55 -99
- package/dist/pages/DebugPage.js +12 -17
- package/dist/pages/DebugWorkflowDetailsPage.js +91 -119
- package/dist/pages/DebugWorkflowsPage.js +39 -37
- package/dist/pages/EmbedWorkbenchPage.js +48 -62
- package/dist/pages/PreviewWorkbenchPage.js +243 -324
- package/dist/pages/RunsListPage.js +44 -61
- package/dist/pages/RunsPage.js +31 -48
- package/dist/pages/StudioLandingPage.js +97 -132
- package/dist/pages/WorkbenchPage.js +56 -86
- package/dist/pages/WorkflowDebugPage.js +74 -110
- package/dist/pages/WorkspacePage.js +72 -115
- package/dist/pages/WorkspaceRunsPage.js +43 -70
- package/dist/pages/WorkspacesPage.js +24 -35
- package/dist/providers/ComponentOverridesProvider.js +9 -12
- package/dist/providers/InvalidationEventsProvider.js +33 -35
- package/dist/providers/QueryProvider.js +14 -18
- package/dist/providers/SseProvider.js +28 -29
- package/dist/providers/StudioProvider.js +14 -19
- package/dist/routing/LocalRouter.js +6 -9
- package/dist/services/createApiClient.js +7 -5
- package/dist/services/eventEmitter.js +3 -2
- package/dist/services/index.js +2 -2
- package/dist/types/ai.types.js +7 -5
- package/package.json +33 -33
- package/dist/_virtual/rolldown_runtime.js +0 -20
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/architecture-7HQA4BMR.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-4F5CHEZ2.js +0 -23
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-B2363JML.js +0 -60
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-FRFDVMJY.js +0 -23
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-PL6DKKU2.js +0 -28
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-SJTYNZTY.js +0 -23
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-TCCFYFTB.js +0 -787
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-TQ3KTPDO.js +0 -23
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-UMXZTB3W.js +0 -30
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/gitGraph-G5XIXVHT.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-VBDWY6EO.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-DYOGHKS2.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-VRWISCQL.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-ZZBFDIW7.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-GDKQZRPO.js +0 -3
- package/dist/node_modules/@ungap/structured-clone/esm/types.js +0 -2
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/context_assist.js +0 -16
- package/dist/node_modules/langium/lib/index.js +0 -182
- package/dist/node_modules/langium/lib/parser/indentation-aware.js +0 -141
- package/dist/node_modules/langium/lib/utils/index.js +0 -53
- package/dist/node_modules/langium/lib/workspace/profiler.js +0 -89
- package/dist/node_modules/lodash/_Symbol.js +0 -7
- package/dist/node_modules/lodash/_baseGetTag.js +0 -13
- package/dist/node_modules/lodash/_baseTrim.js +0 -11
- package/dist/node_modules/lodash/_freeGlobal.js +0 -6
- package/dist/node_modules/lodash/_getRawTag.js +0 -17
- package/dist/node_modules/lodash/_objectToString.js +0 -10
- package/dist/node_modules/lodash/_root.js +0 -8
- package/dist/node_modules/lodash/_trimmedEndIndex.js +0 -11
- package/dist/node_modules/lodash/isObject.js +0 -10
- package/dist/node_modules/lodash/isObjectLike.js +0 -9
- package/dist/node_modules/lodash/isSymbol.js +0 -12
- package/dist/node_modules/lodash/now.js +0 -10
- package/dist/node_modules/lodash/toNumber.js +0 -22
- package/dist/node_modules/lodash-es/_arrayAggregator.js +0 -9
- package/dist/node_modules/lodash-es/_arrayEvery.js +0 -6
- package/dist/node_modules/lodash-es/_baseAggregator.js +0 -8
- package/dist/node_modules/lodash-es/_baseDifference.js +0 -22
- package/dist/node_modules/lodash-es/_baseEvery.js +0 -9
- package/dist/node_modules/lodash-es/_baseIsRegExp.js +0 -8
- package/dist/node_modules/lodash-es/_baseSlice.js +0 -8
- package/dist/node_modules/lodash-es/_baseSome.js +0 -9
- package/dist/node_modules/lodash-es/_createAggregator.js +0 -12
- package/dist/node_modules/lodash-es/assign.js +0 -14
- package/dist/node_modules/lodash-es/compact.js +0 -9
- package/dist/node_modules/lodash-es/difference.js +0 -8
- package/dist/node_modules/lodash-es/drop.js +0 -8
- package/dist/node_modules/lodash-es/dropRight.js +0 -8
- package/dist/node_modules/lodash-es/every.js +0 -11
- package/dist/node_modules/lodash-es/groupBy.js +0 -6
- package/dist/node_modules/lodash-es/head.js +0 -5
- package/dist/node_modules/lodash-es/includes.js +0 -13
- package/dist/node_modules/lodash-es/indexOf.js +0 -11
- package/dist/node_modules/lodash-es/isRegExp.js +0 -5
- package/dist/node_modules/lodash-es/negate.js +0 -16
- package/dist/node_modules/lodash-es/pickBy.js +0 -15
- package/dist/node_modules/lodash-es/reject.js +0 -10
- package/dist/node_modules/lodash-es/some.js +0 -11
- package/dist/node_modules/lodash-es/uniq.js +0 -6
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/architectureDiagram-VXUJARFQ.js +0 -673
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-VD42YOAC.js +0 -3010
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ABZYJK2D.js +0 -1547
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ATLVNIR6.js +0 -65
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-CVBHYZKI.js +0 -10
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-DI55MBZ5.js +0 -1994
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-DR5Q36YT.js +0 -135
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-EXTU4WIE.js +0 -9
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-HN2XXSSU.js +0 -74
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-JA3XYJ7Z.js +0 -247
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-JZLCHNYA.js +0 -3516
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-MI3HLSF2.js +0 -1140
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-N4CR4FBY.js +0 -39
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-QN33PNHL.js +0 -23
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-QXUST7PY.js +0 -497
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-S3R3BYOJ.js +0 -338
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-TZMSLE5B.js +0 -55
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-2ON5EDUG.js +0 -26
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-WZHVMYZB.js +0 -26
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/dagre-6UL2VRFP.js +0 -263
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-PSM6KHXK.js +0 -283
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-QEK2KX5R.js +0 -211
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-S2PKOQOG.js +0 -129
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-JELNMOA3.js +0 -1688
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-V2S2FVAM.js +0 -621
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/infoDiagram-HS3SLOUP.js +0 -18
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/journeyDiagram-XKPGCS4Q.js +0 -883
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/pieDiagram-ADFJNKIX.js +0 -117
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sankeyDiagram-TZEHDZUN.js +0 -519
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-WL72ISMW.js +0 -3560
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-FKZM4ZOC.js +0 -220
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-4FDKWEC3.js +0 -25
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-IT6M3QCI.js +0 -833
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/xychartDiagram-PRI3JC2R.js +0 -1975
- package/dist/node_modules/streamdown/dist/chunk-RLXIAIE6.js +0 -2189
- package/dist/node_modules/streamdown/dist/highlighted-body-B3W2YXNL.js +0 -33
- package/dist/node_modules/streamdown/dist/mermaid-3ZIDBTTL.js +0 -3
|
@@ -1,625 +1,626 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
//#region ../../node_modules/@shikijs/vscode-textmate/dist/index.js
|
|
2
|
+
function e(e) {
|
|
3
|
+
return t(e);
|
|
3
4
|
}
|
|
4
|
-
function
|
|
5
|
-
return Array.isArray(
|
|
5
|
+
function t(e) {
|
|
6
|
+
return Array.isArray(e) ? n(e) : e instanceof RegExp ? e : typeof e == "object" ? r(e) : e;
|
|
6
7
|
}
|
|
7
|
-
function
|
|
8
|
-
let
|
|
9
|
-
for (let
|
|
10
|
-
return
|
|
8
|
+
function n(e) {
|
|
9
|
+
let n = [];
|
|
10
|
+
for (let r = 0, i = e.length; r < i; r++) n[r] = t(e[r]);
|
|
11
|
+
return n;
|
|
11
12
|
}
|
|
12
|
-
function
|
|
13
|
-
let
|
|
14
|
-
for (let
|
|
15
|
-
return
|
|
13
|
+
function r(e) {
|
|
14
|
+
let n = {};
|
|
15
|
+
for (let r in e) n[r] = t(e[r]);
|
|
16
|
+
return n;
|
|
16
17
|
}
|
|
17
|
-
function
|
|
18
|
-
return
|
|
19
|
-
for (let
|
|
20
|
-
}),
|
|
18
|
+
function i(e, ...t) {
|
|
19
|
+
return t.forEach((t) => {
|
|
20
|
+
for (let n in t) e[n] = t[n];
|
|
21
|
+
}), e;
|
|
21
22
|
}
|
|
22
|
-
function
|
|
23
|
-
let
|
|
24
|
-
return
|
|
23
|
+
function a(e) {
|
|
24
|
+
let t = ~e.lastIndexOf("/") || ~e.lastIndexOf("\\");
|
|
25
|
+
return t === 0 ? e : ~t === e.length - 1 ? a(e.substring(0, e.length - 1)) : e.substr(~t + 1);
|
|
25
26
|
}
|
|
26
|
-
var
|
|
27
|
-
static hasCaptures(
|
|
28
|
-
return
|
|
29
|
-
}
|
|
30
|
-
static replaceCaptures(
|
|
31
|
-
return
|
|
32
|
-
let
|
|
33
|
-
if (
|
|
34
|
-
let
|
|
35
|
-
for (;
|
|
36
|
-
switch (
|
|
37
|
-
case "downcase": return
|
|
38
|
-
case "upcase": return
|
|
39
|
-
default: return
|
|
27
|
+
var o = /\$(\d+)|\${(\d+):\/(downcase|upcase)}/g, s = class {
|
|
28
|
+
static hasCaptures(e) {
|
|
29
|
+
return e === null ? !1 : (o.lastIndex = 0, o.test(e));
|
|
30
|
+
}
|
|
31
|
+
static replaceCaptures(e, t, n) {
|
|
32
|
+
return e.replace(o, (e, r, i, a) => {
|
|
33
|
+
let o = n[parseInt(r || i, 10)];
|
|
34
|
+
if (o) {
|
|
35
|
+
let e = t.substring(o.start, o.end);
|
|
36
|
+
for (; e[0] === ".";) e = e.substring(1);
|
|
37
|
+
switch (a) {
|
|
38
|
+
case "downcase": return e.toLowerCase();
|
|
39
|
+
case "upcase": return e.toUpperCase();
|
|
40
|
+
default: return e;
|
|
40
41
|
}
|
|
41
|
-
} else return
|
|
42
|
+
} else return e;
|
|
42
43
|
});
|
|
43
44
|
}
|
|
44
45
|
};
|
|
45
|
-
function
|
|
46
|
-
return
|
|
46
|
+
function c(e, t) {
|
|
47
|
+
return e < t ? -1 : +(e > t);
|
|
47
48
|
}
|
|
48
|
-
function
|
|
49
|
-
if (
|
|
50
|
-
if (!
|
|
51
|
-
if (!
|
|
52
|
-
let
|
|
53
|
-
if (
|
|
54
|
-
for (let
|
|
55
|
-
let
|
|
56
|
-
if (
|
|
49
|
+
function l(e, t) {
|
|
50
|
+
if (e === null && t === null) return 0;
|
|
51
|
+
if (!e) return -1;
|
|
52
|
+
if (!t) return 1;
|
|
53
|
+
let n = e.length, r = t.length;
|
|
54
|
+
if (n === r) {
|
|
55
|
+
for (let r = 0; r < n; r++) {
|
|
56
|
+
let n = c(e[r], t[r]);
|
|
57
|
+
if (n !== 0) return n;
|
|
57
58
|
}
|
|
58
59
|
return 0;
|
|
59
60
|
}
|
|
60
|
-
return
|
|
61
|
+
return n - r;
|
|
61
62
|
}
|
|
62
|
-
function
|
|
63
|
-
return !!(/^#[0-9a-f]{6}$/i.test(
|
|
63
|
+
function u(e) {
|
|
64
|
+
return !!(/^#[0-9a-f]{6}$/i.test(e) || /^#[0-9a-f]{8}$/i.test(e) || /^#[0-9a-f]{3}$/i.test(e) || /^#[0-9a-f]{4}$/i.test(e));
|
|
64
65
|
}
|
|
65
|
-
function
|
|
66
|
-
return
|
|
66
|
+
function d(e) {
|
|
67
|
+
return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g, "\\$&");
|
|
67
68
|
}
|
|
68
|
-
var
|
|
69
|
-
constructor(
|
|
70
|
-
this.fn =
|
|
69
|
+
var f = class {
|
|
70
|
+
constructor(e) {
|
|
71
|
+
this.fn = e;
|
|
71
72
|
}
|
|
72
73
|
cache = /* @__PURE__ */ new Map();
|
|
73
|
-
get(
|
|
74
|
-
if (this.cache.has(
|
|
75
|
-
let
|
|
76
|
-
return this.cache.set(
|
|
74
|
+
get(e) {
|
|
75
|
+
if (this.cache.has(e)) return this.cache.get(e);
|
|
76
|
+
let t = this.fn(e);
|
|
77
|
+
return this.cache.set(e, t), t;
|
|
77
78
|
}
|
|
78
|
-
},
|
|
79
|
-
constructor(
|
|
80
|
-
this._colorMap =
|
|
79
|
+
}, p = class {
|
|
80
|
+
constructor(e, t, n) {
|
|
81
|
+
this._colorMap = e, this._defaults = t, this._root = n;
|
|
81
82
|
}
|
|
82
|
-
static createFromRawTheme(
|
|
83
|
-
return this.createFromParsedTheme(
|
|
83
|
+
static createFromRawTheme(e, t) {
|
|
84
|
+
return this.createFromParsedTheme(ee(e), t);
|
|
84
85
|
}
|
|
85
|
-
static createFromParsedTheme(
|
|
86
|
-
return
|
|
86
|
+
static createFromParsedTheme(e, t) {
|
|
87
|
+
return ne(e, t);
|
|
87
88
|
}
|
|
88
|
-
_cachedMatchRoot = new
|
|
89
|
+
_cachedMatchRoot = new f((e) => this._root.match(e));
|
|
89
90
|
getColorMap() {
|
|
90
91
|
return this._colorMap.getColorMap();
|
|
91
92
|
}
|
|
92
93
|
getDefaults() {
|
|
93
94
|
return this._defaults;
|
|
94
95
|
}
|
|
95
|
-
match(
|
|
96
|
-
if (
|
|
97
|
-
let
|
|
98
|
-
return
|
|
96
|
+
match(e) {
|
|
97
|
+
if (e === null) return this._defaults;
|
|
98
|
+
let t = e.scopeName, n = this._cachedMatchRoot.get(t).find((t) => h(e.parent, t.parentScopes));
|
|
99
|
+
return n ? new _(n.fontStyle, n.foreground, n.background) : null;
|
|
99
100
|
}
|
|
100
|
-
},
|
|
101
|
-
constructor(
|
|
102
|
-
this.parent =
|
|
101
|
+
}, m = class e {
|
|
102
|
+
constructor(e, t) {
|
|
103
|
+
this.parent = e, this.scopeName = t;
|
|
103
104
|
}
|
|
104
|
-
static push(
|
|
105
|
-
for (let
|
|
106
|
-
return
|
|
105
|
+
static push(t, n) {
|
|
106
|
+
for (let r of n) t = new e(t, r);
|
|
107
|
+
return t;
|
|
107
108
|
}
|
|
108
|
-
static from(...
|
|
109
|
-
let
|
|
110
|
-
for (let
|
|
111
|
-
return
|
|
109
|
+
static from(...t) {
|
|
110
|
+
let n = null;
|
|
111
|
+
for (let r = 0; r < t.length; r++) n = new e(n, t[r]);
|
|
112
|
+
return n;
|
|
112
113
|
}
|
|
113
|
-
push(
|
|
114
|
-
return new
|
|
114
|
+
push(t) {
|
|
115
|
+
return new e(this, t);
|
|
115
116
|
}
|
|
116
117
|
getSegments() {
|
|
117
|
-
let
|
|
118
|
-
for (;
|
|
119
|
-
return
|
|
118
|
+
let e = this, t = [];
|
|
119
|
+
for (; e;) t.push(e.scopeName), e = e.parent;
|
|
120
|
+
return t.reverse(), t;
|
|
120
121
|
}
|
|
121
122
|
toString() {
|
|
122
123
|
return this.getSegments().join(" ");
|
|
123
124
|
}
|
|
124
|
-
extends(
|
|
125
|
-
return this ===
|
|
125
|
+
extends(e) {
|
|
126
|
+
return this === e ? !0 : this.parent === null ? !1 : this.parent.extends(e);
|
|
126
127
|
}
|
|
127
|
-
getExtensionIfDefined(
|
|
128
|
-
let
|
|
129
|
-
for (;
|
|
130
|
-
return
|
|
128
|
+
getExtensionIfDefined(e) {
|
|
129
|
+
let t = [], n = this;
|
|
130
|
+
for (; n && n !== e;) t.push(n.scopeName), n = n.parent;
|
|
131
|
+
return n === e ? t.reverse() : void 0;
|
|
131
132
|
}
|
|
132
133
|
};
|
|
133
|
-
function
|
|
134
|
-
if (
|
|
135
|
-
for (let
|
|
136
|
-
let
|
|
137
|
-
if (
|
|
138
|
-
if (
|
|
139
|
-
|
|
134
|
+
function h(e, t) {
|
|
135
|
+
if (t.length === 0) return !0;
|
|
136
|
+
for (let n = 0; n < t.length; n++) {
|
|
137
|
+
let r = t[n], i = !1;
|
|
138
|
+
if (r === ">") {
|
|
139
|
+
if (n === t.length - 1) return !1;
|
|
140
|
+
r = t[++n], i = !0;
|
|
140
141
|
}
|
|
141
|
-
for (;
|
|
142
|
-
if (
|
|
143
|
-
|
|
142
|
+
for (; e && !g(e.scopeName, r);) {
|
|
143
|
+
if (i) return !1;
|
|
144
|
+
e = e.parent;
|
|
144
145
|
}
|
|
145
|
-
if (!
|
|
146
|
-
|
|
146
|
+
if (!e) return !1;
|
|
147
|
+
e = e.parent;
|
|
147
148
|
}
|
|
148
149
|
return !0;
|
|
149
150
|
}
|
|
150
|
-
function
|
|
151
|
-
return
|
|
151
|
+
function g(e, t) {
|
|
152
|
+
return t === e || e.startsWith(t) && e[t.length] === ".";
|
|
152
153
|
}
|
|
153
|
-
var
|
|
154
|
-
constructor(
|
|
155
|
-
this.fontStyle =
|
|
154
|
+
var _ = class {
|
|
155
|
+
constructor(e, t, n) {
|
|
156
|
+
this.fontStyle = e, this.foregroundId = t, this.backgroundId = n;
|
|
156
157
|
}
|
|
157
158
|
};
|
|
158
|
-
function
|
|
159
|
-
if (!
|
|
160
|
-
let
|
|
161
|
-
for (let
|
|
162
|
-
let
|
|
163
|
-
if (!
|
|
164
|
-
let
|
|
165
|
-
if (typeof
|
|
166
|
-
let
|
|
167
|
-
|
|
168
|
-
} else
|
|
169
|
-
let
|
|
170
|
-
if (typeof
|
|
171
|
-
|
|
172
|
-
let
|
|
173
|
-
for (let
|
|
159
|
+
function ee(e) {
|
|
160
|
+
if (!e || !e.settings || !Array.isArray(e.settings)) return [];
|
|
161
|
+
let t = e.settings, n = [], r = 0;
|
|
162
|
+
for (let e = 0, i = t.length; e < i; e++) {
|
|
163
|
+
let i = t[e];
|
|
164
|
+
if (!i.settings) continue;
|
|
165
|
+
let a;
|
|
166
|
+
if (typeof i.scope == "string") {
|
|
167
|
+
let e = i.scope;
|
|
168
|
+
e = e.replace(/^[,]+/, ""), e = e.replace(/[,]+$/, ""), a = e.split(",");
|
|
169
|
+
} else a = Array.isArray(i.scope) ? i.scope : [""];
|
|
170
|
+
let o = -1;
|
|
171
|
+
if (typeof i.settings.fontStyle == "string") {
|
|
172
|
+
o = 0;
|
|
173
|
+
let e = i.settings.fontStyle.split(" ");
|
|
174
|
+
for (let t = 0, n = e.length; t < n; t++) switch (e[t]) {
|
|
174
175
|
case "italic":
|
|
175
|
-
|
|
176
|
+
o |= 1;
|
|
176
177
|
break;
|
|
177
178
|
case "bold":
|
|
178
|
-
|
|
179
|
+
o |= 2;
|
|
179
180
|
break;
|
|
180
181
|
case "underline":
|
|
181
|
-
|
|
182
|
+
o |= 4;
|
|
182
183
|
break;
|
|
183
184
|
case "strikethrough":
|
|
184
|
-
|
|
185
|
+
o |= 8;
|
|
185
186
|
break;
|
|
186
187
|
}
|
|
187
188
|
}
|
|
188
|
-
let
|
|
189
|
-
typeof
|
|
190
|
-
let
|
|
191
|
-
typeof
|
|
192
|
-
for (let
|
|
193
|
-
let
|
|
194
|
-
|
|
189
|
+
let s = null;
|
|
190
|
+
typeof i.settings.foreground == "string" && u(i.settings.foreground) && (s = i.settings.foreground);
|
|
191
|
+
let c = null;
|
|
192
|
+
typeof i.settings.background == "string" && u(i.settings.background) && (c = i.settings.background);
|
|
193
|
+
for (let t = 0, i = a.length; t < i; t++) {
|
|
194
|
+
let i = a[t].trim().split(" "), l = i[i.length - 1], u = null;
|
|
195
|
+
i.length > 1 && (u = i.slice(0, i.length - 1), u.reverse()), n[r++] = new te(l, u, e, o, s, c);
|
|
195
196
|
}
|
|
196
197
|
}
|
|
197
|
-
return
|
|
198
|
+
return n;
|
|
198
199
|
}
|
|
199
|
-
var
|
|
200
|
-
constructor(
|
|
201
|
-
this.scope =
|
|
202
|
-
}
|
|
203
|
-
},
|
|
204
|
-
function
|
|
205
|
-
|
|
206
|
-
let
|
|
207
|
-
return
|
|
200
|
+
var te = class {
|
|
201
|
+
constructor(e, t, n, r, i, a) {
|
|
202
|
+
this.scope = e, this.parentScopes = t, this.index = n, this.fontStyle = r, this.foreground = i, this.background = a;
|
|
203
|
+
}
|
|
204
|
+
}, v = /* @__PURE__ */ ((e) => (e[e.NotSet = -1] = "NotSet", e[e.None = 0] = "None", e[e.Italic = 1] = "Italic", e[e.Bold = 2] = "Bold", e[e.Underline = 4] = "Underline", e[e.Strikethrough = 8] = "Strikethrough", e))(v || {});
|
|
205
|
+
function ne(e, t) {
|
|
206
|
+
e.sort((e, t) => {
|
|
207
|
+
let n = c(e.scope, t.scope);
|
|
208
|
+
return n !== 0 || (n = l(e.parentScopes, t.parentScopes), n !== 0) ? n : e.index - t.index;
|
|
208
209
|
});
|
|
209
|
-
let
|
|
210
|
-
for (;
|
|
211
|
-
let
|
|
212
|
-
|
|
210
|
+
let n = 0, r = "#000000", i = "#ffffff";
|
|
211
|
+
for (; e.length >= 1 && e[0].scope === "";) {
|
|
212
|
+
let t = e.shift();
|
|
213
|
+
t.fontStyle !== -1 && (n = t.fontStyle), t.foreground !== null && (r = t.foreground), t.background !== null && (i = t.background);
|
|
213
214
|
}
|
|
214
|
-
let
|
|
215
|
-
for (let
|
|
216
|
-
let
|
|
217
|
-
|
|
215
|
+
let a = new re(t), o = new _(n, a.getId(r), a.getId(i)), s = new ae(new y(0, null, -1, 0, 0), []);
|
|
216
|
+
for (let t = 0, n = e.length; t < n; t++) {
|
|
217
|
+
let n = e[t];
|
|
218
|
+
s.insert(0, n.scope, n.parentScopes, n.fontStyle, a.getId(n.foreground), a.getId(n.background));
|
|
218
219
|
}
|
|
219
|
-
return new
|
|
220
|
+
return new p(a, o, s);
|
|
220
221
|
}
|
|
221
|
-
var
|
|
222
|
+
var re = class {
|
|
222
223
|
_isFrozen;
|
|
223
224
|
_lastColorId;
|
|
224
225
|
_id2color;
|
|
225
226
|
_color2id;
|
|
226
|
-
constructor(
|
|
227
|
-
if (this._lastColorId = 0, this._id2color = [], this._color2id = /* @__PURE__ */ Object.create(null), Array.isArray(
|
|
227
|
+
constructor(e) {
|
|
228
|
+
if (this._lastColorId = 0, this._id2color = [], this._color2id = /* @__PURE__ */ Object.create(null), Array.isArray(e)) {
|
|
228
229
|
this._isFrozen = !0;
|
|
229
|
-
for (let
|
|
230
|
+
for (let t = 0, n = e.length; t < n; t++) this._color2id[e[t]] = t, this._id2color[t] = e[t];
|
|
230
231
|
} else this._isFrozen = !1;
|
|
231
232
|
}
|
|
232
|
-
getId(
|
|
233
|
-
if (
|
|
234
|
-
|
|
235
|
-
let
|
|
236
|
-
if (
|
|
237
|
-
if (this._isFrozen) throw Error(`Missing color in color map - ${
|
|
238
|
-
return
|
|
233
|
+
getId(e) {
|
|
234
|
+
if (e === null) return 0;
|
|
235
|
+
e = e.toUpperCase();
|
|
236
|
+
let t = this._color2id[e];
|
|
237
|
+
if (t) return t;
|
|
238
|
+
if (this._isFrozen) throw Error(`Missing color in color map - ${e}`);
|
|
239
|
+
return t = ++this._lastColorId, this._color2id[e] = t, this._id2color[t] = e, t;
|
|
239
240
|
}
|
|
240
241
|
getColorMap() {
|
|
241
242
|
return this._id2color.slice(0);
|
|
242
243
|
}
|
|
243
|
-
},
|
|
244
|
+
}, ie = Object.freeze([]), y = class e {
|
|
244
245
|
scopeDepth;
|
|
245
246
|
parentScopes;
|
|
246
247
|
fontStyle;
|
|
247
248
|
foreground;
|
|
248
249
|
background;
|
|
249
|
-
constructor(
|
|
250
|
-
this.scopeDepth =
|
|
250
|
+
constructor(e, t, n, r, i) {
|
|
251
|
+
this.scopeDepth = e, this.parentScopes = t || ie, this.fontStyle = n, this.foreground = r, this.background = i;
|
|
251
252
|
}
|
|
252
253
|
clone() {
|
|
253
|
-
return new
|
|
254
|
+
return new e(this.scopeDepth, this.parentScopes, this.fontStyle, this.foreground, this.background);
|
|
254
255
|
}
|
|
255
|
-
static cloneArr(
|
|
256
|
-
let
|
|
257
|
-
for (let
|
|
258
|
-
return
|
|
256
|
+
static cloneArr(e) {
|
|
257
|
+
let t = [];
|
|
258
|
+
for (let n = 0, r = e.length; n < r; n++) t[n] = e[n].clone();
|
|
259
|
+
return t;
|
|
259
260
|
}
|
|
260
|
-
acceptOverwrite(
|
|
261
|
-
this.scopeDepth >
|
|
261
|
+
acceptOverwrite(e, t, n, r) {
|
|
262
|
+
this.scopeDepth > e ? console.log("how did this happen?") : this.scopeDepth = e, t !== -1 && (this.fontStyle = t), n !== 0 && (this.foreground = n), r !== 0 && (this.background = r);
|
|
262
263
|
}
|
|
263
|
-
},
|
|
264
|
-
constructor(
|
|
265
|
-
this._mainRule =
|
|
264
|
+
}, ae = class e {
|
|
265
|
+
constructor(e, t = [], n = {}) {
|
|
266
|
+
this._mainRule = e, this._children = n, this._rulesWithParentScopes = t;
|
|
266
267
|
}
|
|
267
268
|
_rulesWithParentScopes;
|
|
268
|
-
static _cmpBySpecificity(
|
|
269
|
-
if (
|
|
270
|
-
let
|
|
271
|
-
for (;
|
|
272
|
-
let
|
|
273
|
-
if (
|
|
274
|
-
|
|
269
|
+
static _cmpBySpecificity(e, t) {
|
|
270
|
+
if (e.scopeDepth !== t.scopeDepth) return t.scopeDepth - e.scopeDepth;
|
|
271
|
+
let n = 0, r = 0;
|
|
272
|
+
for (; e.parentScopes[n] === ">" && n++, t.parentScopes[r] === ">" && r++, !(n >= e.parentScopes.length || r >= t.parentScopes.length);) {
|
|
273
|
+
let i = t.parentScopes[r].length - e.parentScopes[n].length;
|
|
274
|
+
if (i !== 0) return i;
|
|
275
|
+
n++, r++;
|
|
275
276
|
}
|
|
276
|
-
return
|
|
277
|
+
return t.parentScopes.length - e.parentScopes.length;
|
|
277
278
|
}
|
|
278
|
-
match(
|
|
279
|
-
if (
|
|
280
|
-
let
|
|
281
|
-
if (
|
|
279
|
+
match(t) {
|
|
280
|
+
if (t !== "") {
|
|
281
|
+
let e = t.indexOf("."), n, r;
|
|
282
|
+
if (e === -1 ? (n = t, r = "") : (n = t.substring(0, e), r = t.substring(e + 1)), this._children.hasOwnProperty(n)) return this._children[n].match(r);
|
|
282
283
|
}
|
|
283
|
-
let
|
|
284
|
-
return
|
|
284
|
+
let n = this._rulesWithParentScopes.concat(this._mainRule);
|
|
285
|
+
return n.sort(e._cmpBySpecificity), n;
|
|
285
286
|
}
|
|
286
|
-
insert(
|
|
287
|
-
if (
|
|
288
|
-
this._doInsertHere(
|
|
287
|
+
insert(t, n, r, i, a, o) {
|
|
288
|
+
if (n === "") {
|
|
289
|
+
this._doInsertHere(t, r, i, a, o);
|
|
289
290
|
return;
|
|
290
291
|
}
|
|
291
|
-
let
|
|
292
|
-
|
|
293
|
-
let
|
|
294
|
-
this._children.hasOwnProperty(
|
|
295
|
-
}
|
|
296
|
-
_doInsertHere(
|
|
297
|
-
if (
|
|
298
|
-
this._mainRule.acceptOverwrite(
|
|
292
|
+
let s = n.indexOf("."), c, l;
|
|
293
|
+
s === -1 ? (c = n, l = "") : (c = n.substring(0, s), l = n.substring(s + 1));
|
|
294
|
+
let u;
|
|
295
|
+
this._children.hasOwnProperty(c) ? u = this._children[c] : (u = new e(this._mainRule.clone(), y.cloneArr(this._rulesWithParentScopes)), this._children[c] = u), u.insert(t + 1, l, r, i, a, o);
|
|
296
|
+
}
|
|
297
|
+
_doInsertHere(e, t, n, r, i) {
|
|
298
|
+
if (t === null) {
|
|
299
|
+
this._mainRule.acceptOverwrite(e, n, r, i);
|
|
299
300
|
return;
|
|
300
301
|
}
|
|
301
|
-
for (let
|
|
302
|
-
let
|
|
303
|
-
if (
|
|
304
|
-
|
|
302
|
+
for (let a = 0, o = this._rulesWithParentScopes.length; a < o; a++) {
|
|
303
|
+
let o = this._rulesWithParentScopes[a];
|
|
304
|
+
if (l(o.parentScopes, t) === 0) {
|
|
305
|
+
o.acceptOverwrite(e, n, r, i);
|
|
305
306
|
return;
|
|
306
307
|
}
|
|
307
308
|
}
|
|
308
|
-
|
|
309
|
+
n === -1 && (n = this._mainRule.fontStyle), r === 0 && (r = this._mainRule.foreground), i === 0 && (i = this._mainRule.background), this._rulesWithParentScopes.push(new y(e, t, n, r, i));
|
|
309
310
|
}
|
|
310
|
-
},
|
|
311
|
-
static toBinaryStr(
|
|
312
|
-
return
|
|
311
|
+
}, b = class e {
|
|
312
|
+
static toBinaryStr(e) {
|
|
313
|
+
return e.toString(2).padStart(32, "0");
|
|
313
314
|
}
|
|
314
|
-
static print(
|
|
315
|
-
let
|
|
315
|
+
static print(t) {
|
|
316
|
+
let n = e.getLanguageId(t), r = e.getTokenType(t), i = e.getFontStyle(t), a = e.getForeground(t), o = e.getBackground(t);
|
|
316
317
|
console.log({
|
|
317
|
-
languageId:
|
|
318
|
-
tokenType:
|
|
319
|
-
fontStyle:
|
|
320
|
-
foreground:
|
|
321
|
-
background:
|
|
318
|
+
languageId: n,
|
|
319
|
+
tokenType: r,
|
|
320
|
+
fontStyle: i,
|
|
321
|
+
foreground: a,
|
|
322
|
+
background: o
|
|
322
323
|
});
|
|
323
324
|
}
|
|
324
|
-
static getLanguageId(
|
|
325
|
-
return (
|
|
325
|
+
static getLanguageId(e) {
|
|
326
|
+
return (e & 255) >>> 0;
|
|
326
327
|
}
|
|
327
|
-
static getTokenType(
|
|
328
|
-
return (
|
|
328
|
+
static getTokenType(e) {
|
|
329
|
+
return (e & 768) >>> 8;
|
|
329
330
|
}
|
|
330
|
-
static containsBalancedBrackets(
|
|
331
|
-
return (
|
|
331
|
+
static containsBalancedBrackets(e) {
|
|
332
|
+
return (e & 1024) != 0;
|
|
332
333
|
}
|
|
333
|
-
static getFontStyle(
|
|
334
|
-
return (
|
|
334
|
+
static getFontStyle(e) {
|
|
335
|
+
return (e & 30720) >>> 11;
|
|
335
336
|
}
|
|
336
|
-
static getForeground(
|
|
337
|
-
return (
|
|
337
|
+
static getForeground(e) {
|
|
338
|
+
return (e & 16744448) >>> 15;
|
|
338
339
|
}
|
|
339
|
-
static getBackground(
|
|
340
|
-
return (
|
|
340
|
+
static getBackground(e) {
|
|
341
|
+
return (e & 4278190080) >>> 24;
|
|
341
342
|
}
|
|
342
|
-
static set(
|
|
343
|
-
let
|
|
344
|
-
return
|
|
343
|
+
static set(t, n, r, i, a, o, s) {
|
|
344
|
+
let c = e.getLanguageId(t), l = e.getTokenType(t), u = +!!e.containsBalancedBrackets(t), d = e.getFontStyle(t), f = e.getForeground(t), p = e.getBackground(t);
|
|
345
|
+
return n !== 0 && (c = n), r !== 8 && (l = se(r)), i !== null && (u = +!!i), a !== -1 && (d = a), o !== 0 && (f = o), s !== 0 && (p = s), (c << 0 | l << 8 | u << 10 | d << 11 | f << 15 | p << 24) >>> 0;
|
|
345
346
|
}
|
|
346
347
|
};
|
|
347
|
-
function
|
|
348
|
-
return
|
|
348
|
+
function oe(e) {
|
|
349
|
+
return e;
|
|
349
350
|
}
|
|
350
|
-
function
|
|
351
|
-
return
|
|
351
|
+
function se(e) {
|
|
352
|
+
return e;
|
|
352
353
|
}
|
|
353
|
-
function
|
|
354
|
-
let
|
|
355
|
-
for (;
|
|
356
|
-
let
|
|
357
|
-
if (
|
|
358
|
-
switch (
|
|
354
|
+
function x(e, t) {
|
|
355
|
+
let n = [], r = ce(e), i = r.next();
|
|
356
|
+
for (; i !== null;) {
|
|
357
|
+
let e = 0;
|
|
358
|
+
if (i.length === 2 && i.charAt(1) === ":") {
|
|
359
|
+
switch (i.charAt(0)) {
|
|
359
360
|
case "R":
|
|
360
|
-
|
|
361
|
+
e = 1;
|
|
361
362
|
break;
|
|
362
363
|
case "L":
|
|
363
|
-
|
|
364
|
+
e = -1;
|
|
364
365
|
break;
|
|
365
|
-
default: console.log(`Unknown priority ${
|
|
366
|
+
default: console.log(`Unknown priority ${i} in scope selector`);
|
|
366
367
|
}
|
|
367
|
-
|
|
368
|
+
i = r.next();
|
|
368
369
|
}
|
|
369
|
-
let
|
|
370
|
-
if (
|
|
371
|
-
matcher:
|
|
372
|
-
priority:
|
|
373
|
-
}),
|
|
374
|
-
|
|
375
|
-
}
|
|
376
|
-
return
|
|
377
|
-
function
|
|
378
|
-
if (
|
|
379
|
-
|
|
380
|
-
let
|
|
381
|
-
return (
|
|
370
|
+
let t = o();
|
|
371
|
+
if (n.push({
|
|
372
|
+
matcher: t,
|
|
373
|
+
priority: e
|
|
374
|
+
}), i !== ",") break;
|
|
375
|
+
i = r.next();
|
|
376
|
+
}
|
|
377
|
+
return n;
|
|
378
|
+
function a() {
|
|
379
|
+
if (i === "-") {
|
|
380
|
+
i = r.next();
|
|
381
|
+
let e = a();
|
|
382
|
+
return (t) => !!e && !e(t);
|
|
382
383
|
}
|
|
383
|
-
if (
|
|
384
|
-
|
|
385
|
-
let
|
|
386
|
-
return
|
|
384
|
+
if (i === "(") {
|
|
385
|
+
i = r.next();
|
|
386
|
+
let e = s();
|
|
387
|
+
return i === ")" && (i = r.next()), e;
|
|
387
388
|
}
|
|
388
|
-
if (
|
|
389
|
-
let
|
|
389
|
+
if (S(i)) {
|
|
390
|
+
let e = [];
|
|
390
391
|
do
|
|
391
|
-
|
|
392
|
-
while (
|
|
393
|
-
return (
|
|
392
|
+
e.push(i), i = r.next();
|
|
393
|
+
while (S(i));
|
|
394
|
+
return (n) => t(e, n);
|
|
394
395
|
}
|
|
395
396
|
return null;
|
|
396
397
|
}
|
|
397
|
-
function
|
|
398
|
-
let
|
|
399
|
-
for (;
|
|
400
|
-
return (
|
|
398
|
+
function o() {
|
|
399
|
+
let e = [], t = a();
|
|
400
|
+
for (; t;) e.push(t), t = a();
|
|
401
|
+
return (t) => e.every((e) => e(t));
|
|
401
402
|
}
|
|
402
|
-
function
|
|
403
|
-
let
|
|
404
|
-
for (;
|
|
403
|
+
function s() {
|
|
404
|
+
let e = [], t = o();
|
|
405
|
+
for (; t && (e.push(t), i === "|" || i === ",");) {
|
|
405
406
|
do
|
|
406
|
-
|
|
407
|
-
while (
|
|
408
|
-
|
|
407
|
+
i = r.next();
|
|
408
|
+
while (i === "|" || i === ",");
|
|
409
|
+
t = o();
|
|
409
410
|
}
|
|
410
|
-
return (
|
|
411
|
+
return (t) => e.some((e) => e(t));
|
|
411
412
|
}
|
|
412
413
|
}
|
|
413
|
-
function
|
|
414
|
-
return !!
|
|
414
|
+
function S(e) {
|
|
415
|
+
return !!e && !!e.match(/[\w\.:]+/);
|
|
415
416
|
}
|
|
416
|
-
function
|
|
417
|
-
let
|
|
417
|
+
function ce(e) {
|
|
418
|
+
let t = /([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g, n = t.exec(e);
|
|
418
419
|
return { next: () => {
|
|
419
|
-
if (!
|
|
420
|
-
let
|
|
421
|
-
return
|
|
420
|
+
if (!n) return null;
|
|
421
|
+
let r = n[0];
|
|
422
|
+
return n = t.exec(e), r;
|
|
422
423
|
} };
|
|
423
424
|
}
|
|
424
|
-
function
|
|
425
|
-
typeof
|
|
425
|
+
function C(e) {
|
|
426
|
+
typeof e.dispose == "function" && e.dispose();
|
|
426
427
|
}
|
|
427
|
-
var
|
|
428
|
-
constructor(
|
|
429
|
-
this.scopeName =
|
|
428
|
+
var w = class {
|
|
429
|
+
constructor(e) {
|
|
430
|
+
this.scopeName = e;
|
|
430
431
|
}
|
|
431
432
|
toKey() {
|
|
432
433
|
return this.scopeName;
|
|
433
434
|
}
|
|
434
|
-
},
|
|
435
|
-
constructor(
|
|
436
|
-
this.scopeName =
|
|
435
|
+
}, le = class {
|
|
436
|
+
constructor(e, t) {
|
|
437
|
+
this.scopeName = e, this.ruleName = t;
|
|
437
438
|
}
|
|
438
439
|
toKey() {
|
|
439
440
|
return `${this.scopeName}#${this.ruleName}`;
|
|
440
441
|
}
|
|
441
|
-
},
|
|
442
|
+
}, ue = class {
|
|
442
443
|
_references = [];
|
|
443
444
|
_seenReferenceKeys = /* @__PURE__ */ new Set();
|
|
444
445
|
get references() {
|
|
445
446
|
return this._references;
|
|
446
447
|
}
|
|
447
448
|
visitedRule = /* @__PURE__ */ new Set();
|
|
448
|
-
add(
|
|
449
|
-
let
|
|
450
|
-
this._seenReferenceKeys.has(
|
|
449
|
+
add(e) {
|
|
450
|
+
let t = e.toKey();
|
|
451
|
+
this._seenReferenceKeys.has(t) || (this._seenReferenceKeys.add(t), this._references.push(e));
|
|
451
452
|
}
|
|
452
|
-
},
|
|
453
|
-
constructor(
|
|
454
|
-
this.repo =
|
|
453
|
+
}, de = class {
|
|
454
|
+
constructor(e, t) {
|
|
455
|
+
this.repo = e, this.initialScopeName = t, this.seenFullScopeRequests.add(this.initialScopeName), this.Q = [new w(this.initialScopeName)];
|
|
455
456
|
}
|
|
456
457
|
seenFullScopeRequests = /* @__PURE__ */ new Set();
|
|
457
458
|
seenPartialScopeRequests = /* @__PURE__ */ new Set();
|
|
458
459
|
Q;
|
|
459
460
|
processQueue() {
|
|
460
|
-
let
|
|
461
|
+
let e = this.Q;
|
|
461
462
|
this.Q = [];
|
|
462
|
-
let
|
|
463
|
-
for (let
|
|
464
|
-
for (let
|
|
465
|
-
if (this.seenFullScopeRequests.has(
|
|
466
|
-
this.seenFullScopeRequests.add(
|
|
463
|
+
let t = new ue();
|
|
464
|
+
for (let n of e) fe(n, this.initialScopeName, this.repo, t);
|
|
465
|
+
for (let e of t.references) if (e instanceof w) {
|
|
466
|
+
if (this.seenFullScopeRequests.has(e.scopeName)) continue;
|
|
467
|
+
this.seenFullScopeRequests.add(e.scopeName), this.Q.push(e);
|
|
467
468
|
} else {
|
|
468
|
-
if (this.seenFullScopeRequests.has(
|
|
469
|
-
this.seenPartialScopeRequests.add(
|
|
469
|
+
if (this.seenFullScopeRequests.has(e.scopeName) || this.seenPartialScopeRequests.has(e.toKey())) continue;
|
|
470
|
+
this.seenPartialScopeRequests.add(e.toKey()), this.Q.push(e);
|
|
470
471
|
}
|
|
471
472
|
}
|
|
472
473
|
};
|
|
473
|
-
function
|
|
474
|
-
let
|
|
475
|
-
if (!
|
|
476
|
-
if (
|
|
474
|
+
function fe(e, t, n, r) {
|
|
475
|
+
let i = n.lookup(e.scopeName);
|
|
476
|
+
if (!i) {
|
|
477
|
+
if (e.scopeName === t) throw Error(`No grammar provided for <${t}>`);
|
|
477
478
|
return;
|
|
478
479
|
}
|
|
479
|
-
let
|
|
480
|
-
|
|
481
|
-
baseGrammar:
|
|
482
|
-
selfGrammar:
|
|
483
|
-
},
|
|
484
|
-
baseGrammar:
|
|
485
|
-
selfGrammar:
|
|
486
|
-
repository:
|
|
487
|
-
},
|
|
488
|
-
let
|
|
489
|
-
if (
|
|
480
|
+
let a = n.lookup(t);
|
|
481
|
+
e instanceof w ? E({
|
|
482
|
+
baseGrammar: a,
|
|
483
|
+
selfGrammar: i
|
|
484
|
+
}, r) : T(e.ruleName, {
|
|
485
|
+
baseGrammar: a,
|
|
486
|
+
selfGrammar: i,
|
|
487
|
+
repository: i.repository
|
|
488
|
+
}, r);
|
|
489
|
+
let o = n.injections(e.scopeName);
|
|
490
|
+
if (o) for (let e of o) r.add(new w(e));
|
|
490
491
|
}
|
|
491
|
-
function
|
|
492
|
-
if (
|
|
493
|
-
let
|
|
494
|
-
|
|
492
|
+
function T(e, t, n) {
|
|
493
|
+
if (t.repository && t.repository[e]) {
|
|
494
|
+
let r = t.repository[e];
|
|
495
|
+
D([r], t, n);
|
|
495
496
|
}
|
|
496
497
|
}
|
|
497
|
-
function
|
|
498
|
-
|
|
499
|
-
...
|
|
500
|
-
repository:
|
|
501
|
-
},
|
|
502
|
-
...
|
|
503
|
-
repository:
|
|
504
|
-
},
|
|
498
|
+
function E(e, t) {
|
|
499
|
+
e.selfGrammar.patterns && Array.isArray(e.selfGrammar.patterns) && D(e.selfGrammar.patterns, {
|
|
500
|
+
...e,
|
|
501
|
+
repository: e.selfGrammar.repository
|
|
502
|
+
}, t), e.selfGrammar.injections && D(Object.values(e.selfGrammar.injections), {
|
|
503
|
+
...e,
|
|
504
|
+
repository: e.selfGrammar.repository
|
|
505
|
+
}, t);
|
|
505
506
|
}
|
|
506
|
-
function
|
|
507
|
-
for (let
|
|
508
|
-
if (
|
|
509
|
-
|
|
510
|
-
let
|
|
511
|
-
Array.isArray(
|
|
512
|
-
...
|
|
513
|
-
repository:
|
|
514
|
-
},
|
|
515
|
-
let
|
|
516
|
-
if (!
|
|
517
|
-
let
|
|
518
|
-
switch (
|
|
507
|
+
function D(e, t, n) {
|
|
508
|
+
for (let r of e) {
|
|
509
|
+
if (n.visitedRule.has(r)) continue;
|
|
510
|
+
n.visitedRule.add(r);
|
|
511
|
+
let e = r.repository ? i({}, t.repository, r.repository) : t.repository;
|
|
512
|
+
Array.isArray(r.patterns) && D(r.patterns, {
|
|
513
|
+
...t,
|
|
514
|
+
repository: e
|
|
515
|
+
}, n);
|
|
516
|
+
let a = r.include;
|
|
517
|
+
if (!a) continue;
|
|
518
|
+
let o = O(a);
|
|
519
|
+
switch (o.kind) {
|
|
519
520
|
case 0:
|
|
520
|
-
|
|
521
|
-
...
|
|
522
|
-
selfGrammar:
|
|
523
|
-
},
|
|
521
|
+
E({
|
|
522
|
+
...t,
|
|
523
|
+
selfGrammar: t.baseGrammar
|
|
524
|
+
}, n);
|
|
524
525
|
break;
|
|
525
526
|
case 1:
|
|
526
|
-
|
|
527
|
+
E(t, n);
|
|
527
528
|
break;
|
|
528
529
|
case 2:
|
|
529
|
-
|
|
530
|
-
...
|
|
531
|
-
repository:
|
|
532
|
-
},
|
|
530
|
+
T(o.ruleName, {
|
|
531
|
+
...t,
|
|
532
|
+
repository: e
|
|
533
|
+
}, n);
|
|
533
534
|
break;
|
|
534
535
|
case 3:
|
|
535
536
|
case 4:
|
|
536
|
-
let
|
|
537
|
-
if (
|
|
538
|
-
let
|
|
539
|
-
baseGrammar:
|
|
540
|
-
selfGrammar:
|
|
541
|
-
repository:
|
|
537
|
+
let r = o.scopeName === t.selfGrammar.scopeName ? t.selfGrammar : o.scopeName === t.baseGrammar.scopeName ? t.baseGrammar : void 0;
|
|
538
|
+
if (r) {
|
|
539
|
+
let i = {
|
|
540
|
+
baseGrammar: t.baseGrammar,
|
|
541
|
+
selfGrammar: r,
|
|
542
|
+
repository: e
|
|
542
543
|
};
|
|
543
|
-
|
|
544
|
-
} else
|
|
544
|
+
o.kind === 4 ? T(o.ruleName, i, n) : E(i, n);
|
|
545
|
+
} else o.kind === 4 ? n.add(new le(o.scopeName, o.ruleName)) : n.add(new w(o.scopeName));
|
|
545
546
|
break;
|
|
546
547
|
}
|
|
547
548
|
}
|
|
548
549
|
}
|
|
549
|
-
var
|
|
550
|
+
var pe = class {
|
|
550
551
|
kind = 0;
|
|
551
|
-
},
|
|
552
|
+
}, me = class {
|
|
552
553
|
kind = 1;
|
|
553
|
-
},
|
|
554
|
-
constructor(
|
|
555
|
-
this.ruleName =
|
|
554
|
+
}, he = class {
|
|
555
|
+
constructor(e) {
|
|
556
|
+
this.ruleName = e;
|
|
556
557
|
}
|
|
557
558
|
kind = 2;
|
|
558
|
-
},
|
|
559
|
-
constructor(
|
|
560
|
-
this.scopeName =
|
|
559
|
+
}, ge = class {
|
|
560
|
+
constructor(e) {
|
|
561
|
+
this.scopeName = e;
|
|
561
562
|
}
|
|
562
563
|
kind = 3;
|
|
563
|
-
},
|
|
564
|
-
constructor(
|
|
565
|
-
this.scopeName =
|
|
564
|
+
}, _e = class {
|
|
565
|
+
constructor(e, t) {
|
|
566
|
+
this.scopeName = e, this.ruleName = t;
|
|
566
567
|
}
|
|
567
568
|
kind = 4;
|
|
568
569
|
};
|
|
569
|
-
function
|
|
570
|
-
if (
|
|
571
|
-
if (
|
|
572
|
-
let
|
|
573
|
-
return
|
|
570
|
+
function O(e) {
|
|
571
|
+
if (e === "$base") return new pe();
|
|
572
|
+
if (e === "$self") return new me();
|
|
573
|
+
let t = e.indexOf("#");
|
|
574
|
+
return t === -1 ? new ge(e) : t === 0 ? new he(e.substring(1)) : new _e(e.substring(0, t), e.substring(t + 1));
|
|
574
575
|
}
|
|
575
|
-
var
|
|
576
|
-
function
|
|
577
|
-
return
|
|
576
|
+
var ve = /\\(\d+)/, k = /\\(\d+)/g, ye = -1, A = -2;
|
|
577
|
+
function j(e) {
|
|
578
|
+
return e;
|
|
578
579
|
}
|
|
579
|
-
function
|
|
580
|
-
return
|
|
580
|
+
function M(e) {
|
|
581
|
+
return e;
|
|
581
582
|
}
|
|
582
|
-
var
|
|
583
|
+
var N = class {
|
|
583
584
|
$location;
|
|
584
585
|
id;
|
|
585
586
|
_nameIsCapturing;
|
|
586
587
|
_name;
|
|
587
588
|
_contentNameIsCapturing;
|
|
588
589
|
_contentName;
|
|
589
|
-
constructor(
|
|
590
|
-
this.$location =
|
|
590
|
+
constructor(e, t, n, r) {
|
|
591
|
+
this.$location = e, this.id = t, this._name = n || null, this._nameIsCapturing = s.hasCaptures(this._name), this._contentName = r || null, this._contentNameIsCapturing = s.hasCaptures(this._contentName);
|
|
591
592
|
}
|
|
592
593
|
get debugName() {
|
|
593
|
-
let
|
|
594
|
-
return `${this.constructor.name}#${this.id} @ ${
|
|
594
|
+
let e = this.$location ? `${a(this.$location.filename)}:${this.$location.line}` : "unknown";
|
|
595
|
+
return `${this.constructor.name}#${this.id} @ ${e}`;
|
|
595
596
|
}
|
|
596
|
-
getName(
|
|
597
|
-
return !this._nameIsCapturing || this._name === null ||
|
|
597
|
+
getName(e, t) {
|
|
598
|
+
return !this._nameIsCapturing || this._name === null || e === null || t === null ? this._name : s.replaceCaptures(this._name, e, t);
|
|
598
599
|
}
|
|
599
|
-
getContentName(
|
|
600
|
-
return !this._contentNameIsCapturing || this._contentName === null ? this._contentName :
|
|
600
|
+
getContentName(e, t) {
|
|
601
|
+
return !this._contentNameIsCapturing || this._contentName === null ? this._contentName : s.replaceCaptures(this._contentName, e, t);
|
|
601
602
|
}
|
|
602
|
-
},
|
|
603
|
+
}, be = class extends N {
|
|
603
604
|
retokenizeCapturedWithRuleId;
|
|
604
|
-
constructor(
|
|
605
|
-
super(
|
|
605
|
+
constructor(e, t, n, r, i) {
|
|
606
|
+
super(e, t, n, r), this.retokenizeCapturedWithRuleId = i;
|
|
606
607
|
}
|
|
607
608
|
dispose() {}
|
|
608
|
-
collectPatterns(
|
|
609
|
+
collectPatterns(e, t) {
|
|
609
610
|
throw Error("Not supported!");
|
|
610
611
|
}
|
|
611
|
-
compile(
|
|
612
|
+
compile(e, t) {
|
|
612
613
|
throw Error("Not supported!");
|
|
613
614
|
}
|
|
614
|
-
compileAG(
|
|
615
|
+
compileAG(e, t, n, r) {
|
|
615
616
|
throw Error("Not supported!");
|
|
616
617
|
}
|
|
617
|
-
},
|
|
618
|
+
}, xe = class extends N {
|
|
618
619
|
_match;
|
|
619
620
|
captures;
|
|
620
621
|
_cachedCompiledPatterns;
|
|
621
|
-
constructor(
|
|
622
|
-
super(
|
|
622
|
+
constructor(e, t, n, r, i) {
|
|
623
|
+
super(e, t, n, null), this._match = new R(r, this.id), this.captures = i, this._cachedCompiledPatterns = null;
|
|
623
624
|
}
|
|
624
625
|
dispose() {
|
|
625
626
|
this._cachedCompiledPatterns &&= (this._cachedCompiledPatterns.dispose(), null);
|
|
@@ -627,41 +628,41 @@ var Rule = class {
|
|
|
627
628
|
get debugMatchRegExp() {
|
|
628
629
|
return `${this._match.source}`;
|
|
629
630
|
}
|
|
630
|
-
collectPatterns(
|
|
631
|
-
|
|
631
|
+
collectPatterns(e, t) {
|
|
632
|
+
t.push(this._match);
|
|
632
633
|
}
|
|
633
|
-
compile(
|
|
634
|
-
return this._getCachedCompiledPatterns(
|
|
634
|
+
compile(e, t) {
|
|
635
|
+
return this._getCachedCompiledPatterns(e).compile(e);
|
|
635
636
|
}
|
|
636
|
-
compileAG(
|
|
637
|
-
return this._getCachedCompiledPatterns(
|
|
637
|
+
compileAG(e, t, n, r) {
|
|
638
|
+
return this._getCachedCompiledPatterns(e).compileAG(e, n, r);
|
|
638
639
|
}
|
|
639
|
-
_getCachedCompiledPatterns(
|
|
640
|
-
return this._cachedCompiledPatterns || (this._cachedCompiledPatterns = new
|
|
640
|
+
_getCachedCompiledPatterns(e) {
|
|
641
|
+
return this._cachedCompiledPatterns || (this._cachedCompiledPatterns = new z(), this.collectPatterns(e, this._cachedCompiledPatterns)), this._cachedCompiledPatterns;
|
|
641
642
|
}
|
|
642
|
-
},
|
|
643
|
+
}, P = class extends N {
|
|
643
644
|
hasMissingPatterns;
|
|
644
645
|
patterns;
|
|
645
646
|
_cachedCompiledPatterns;
|
|
646
|
-
constructor(
|
|
647
|
-
super(
|
|
647
|
+
constructor(e, t, n, r, i) {
|
|
648
|
+
super(e, t, n, r), this.patterns = i.patterns, this.hasMissingPatterns = i.hasMissingPatterns, this._cachedCompiledPatterns = null;
|
|
648
649
|
}
|
|
649
650
|
dispose() {
|
|
650
651
|
this._cachedCompiledPatterns &&= (this._cachedCompiledPatterns.dispose(), null);
|
|
651
652
|
}
|
|
652
|
-
collectPatterns(
|
|
653
|
-
for (let
|
|
653
|
+
collectPatterns(e, t) {
|
|
654
|
+
for (let n of this.patterns) e.getRule(n).collectPatterns(e, t);
|
|
654
655
|
}
|
|
655
|
-
compile(
|
|
656
|
-
return this._getCachedCompiledPatterns(
|
|
656
|
+
compile(e, t) {
|
|
657
|
+
return this._getCachedCompiledPatterns(e).compile(e);
|
|
657
658
|
}
|
|
658
|
-
compileAG(
|
|
659
|
-
return this._getCachedCompiledPatterns(
|
|
659
|
+
compileAG(e, t, n, r) {
|
|
660
|
+
return this._getCachedCompiledPatterns(e).compileAG(e, n, r);
|
|
660
661
|
}
|
|
661
|
-
_getCachedCompiledPatterns(
|
|
662
|
-
return this._cachedCompiledPatterns || (this._cachedCompiledPatterns = new
|
|
662
|
+
_getCachedCompiledPatterns(e) {
|
|
663
|
+
return this._cachedCompiledPatterns || (this._cachedCompiledPatterns = new z(), this.collectPatterns(e, this._cachedCompiledPatterns)), this._cachedCompiledPatterns;
|
|
663
664
|
}
|
|
664
|
-
},
|
|
665
|
+
}, F = class extends N {
|
|
665
666
|
_begin;
|
|
666
667
|
beginCaptures;
|
|
667
668
|
_end;
|
|
@@ -671,8 +672,8 @@ var Rule = class {
|
|
|
671
672
|
hasMissingPatterns;
|
|
672
673
|
patterns;
|
|
673
674
|
_cachedCompiledPatterns;
|
|
674
|
-
constructor(
|
|
675
|
-
super(
|
|
675
|
+
constructor(e, t, n, r, i, a, o, s, c, l) {
|
|
676
|
+
super(e, t, n, r), this._begin = new R(i, this.id), this.beginCaptures = a, this._end = new R(o || "", -1), this.endHasBackReferences = this._end.hasBackReferences, this.endCaptures = s, this.applyEndPatternLast = c || !1, this.patterns = l.patterns, this.hasMissingPatterns = l.hasMissingPatterns, this._cachedCompiledPatterns = null;
|
|
676
677
|
}
|
|
677
678
|
dispose() {
|
|
678
679
|
this._cachedCompiledPatterns &&= (this._cachedCompiledPatterns.dispose(), null);
|
|
@@ -683,27 +684,27 @@ var Rule = class {
|
|
|
683
684
|
get debugEndRegExp() {
|
|
684
685
|
return `${this._end.source}`;
|
|
685
686
|
}
|
|
686
|
-
getEndWithResolvedBackReferences(
|
|
687
|
-
return this._end.resolveBackReferences(
|
|
687
|
+
getEndWithResolvedBackReferences(e, t) {
|
|
688
|
+
return this._end.resolveBackReferences(e, t);
|
|
688
689
|
}
|
|
689
|
-
collectPatterns(
|
|
690
|
-
|
|
690
|
+
collectPatterns(e, t) {
|
|
691
|
+
t.push(this._begin);
|
|
691
692
|
}
|
|
692
|
-
compile(
|
|
693
|
-
return this._getCachedCompiledPatterns(
|
|
693
|
+
compile(e, t) {
|
|
694
|
+
return this._getCachedCompiledPatterns(e, t).compile(e);
|
|
694
695
|
}
|
|
695
|
-
compileAG(
|
|
696
|
-
return this._getCachedCompiledPatterns(
|
|
696
|
+
compileAG(e, t, n, r) {
|
|
697
|
+
return this._getCachedCompiledPatterns(e, t).compileAG(e, n, r);
|
|
697
698
|
}
|
|
698
|
-
_getCachedCompiledPatterns(
|
|
699
|
+
_getCachedCompiledPatterns(e, t) {
|
|
699
700
|
if (!this._cachedCompiledPatterns) {
|
|
700
|
-
this._cachedCompiledPatterns = new
|
|
701
|
-
for (let
|
|
701
|
+
this._cachedCompiledPatterns = new z();
|
|
702
|
+
for (let t of this.patterns) e.getRule(t).collectPatterns(e, this._cachedCompiledPatterns);
|
|
702
703
|
this.applyEndPatternLast ? this._cachedCompiledPatterns.push(this._end.hasBackReferences ? this._end.clone() : this._end) : this._cachedCompiledPatterns.unshift(this._end.hasBackReferences ? this._end.clone() : this._end);
|
|
703
704
|
}
|
|
704
|
-
return this._end.hasBackReferences && (this.applyEndPatternLast ? this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length() - 1,
|
|
705
|
+
return this._end.hasBackReferences && (this.applyEndPatternLast ? this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length() - 1, t) : this._cachedCompiledPatterns.setSource(0, t)), this._cachedCompiledPatterns;
|
|
705
706
|
}
|
|
706
|
-
},
|
|
707
|
+
}, I = class extends N {
|
|
707
708
|
_begin;
|
|
708
709
|
beginCaptures;
|
|
709
710
|
whileCaptures;
|
|
@@ -713,8 +714,8 @@ var Rule = class {
|
|
|
713
714
|
patterns;
|
|
714
715
|
_cachedCompiledPatterns;
|
|
715
716
|
_cachedCompiledWhilePatterns;
|
|
716
|
-
constructor(
|
|
717
|
-
super(
|
|
717
|
+
constructor(e, t, n, r, i, a, o, s, c) {
|
|
718
|
+
super(e, t, n, r), this._begin = new R(i, this.id), this.beginCaptures = a, this.whileCaptures = s, this._while = new R(o, A), this.whileHasBackReferences = this._while.hasBackReferences, this.patterns = c.patterns, this.hasMissingPatterns = c.hasMissingPatterns, this._cachedCompiledPatterns = null, this._cachedCompiledWhilePatterns = null;
|
|
718
719
|
}
|
|
719
720
|
dispose() {
|
|
720
721
|
this._cachedCompiledPatterns &&= (this._cachedCompiledPatterns.dispose(), null), this._cachedCompiledWhilePatterns &&= (this._cachedCompiledWhilePatterns.dispose(), null);
|
|
@@ -725,146 +726,146 @@ var Rule = class {
|
|
|
725
726
|
get debugWhileRegExp() {
|
|
726
727
|
return `${this._while.source}`;
|
|
727
728
|
}
|
|
728
|
-
getWhileWithResolvedBackReferences(
|
|
729
|
-
return this._while.resolveBackReferences(
|
|
729
|
+
getWhileWithResolvedBackReferences(e, t) {
|
|
730
|
+
return this._while.resolveBackReferences(e, t);
|
|
730
731
|
}
|
|
731
|
-
collectPatterns(
|
|
732
|
-
|
|
732
|
+
collectPatterns(e, t) {
|
|
733
|
+
t.push(this._begin);
|
|
733
734
|
}
|
|
734
|
-
compile(
|
|
735
|
-
return this._getCachedCompiledPatterns(
|
|
735
|
+
compile(e, t) {
|
|
736
|
+
return this._getCachedCompiledPatterns(e).compile(e);
|
|
736
737
|
}
|
|
737
|
-
compileAG(
|
|
738
|
-
return this._getCachedCompiledPatterns(
|
|
738
|
+
compileAG(e, t, n, r) {
|
|
739
|
+
return this._getCachedCompiledPatterns(e).compileAG(e, n, r);
|
|
739
740
|
}
|
|
740
|
-
_getCachedCompiledPatterns(
|
|
741
|
+
_getCachedCompiledPatterns(e) {
|
|
741
742
|
if (!this._cachedCompiledPatterns) {
|
|
742
|
-
this._cachedCompiledPatterns = new
|
|
743
|
-
for (let
|
|
743
|
+
this._cachedCompiledPatterns = new z();
|
|
744
|
+
for (let t of this.patterns) e.getRule(t).collectPatterns(e, this._cachedCompiledPatterns);
|
|
744
745
|
}
|
|
745
746
|
return this._cachedCompiledPatterns;
|
|
746
747
|
}
|
|
747
|
-
compileWhile(
|
|
748
|
-
return this._getCachedCompiledWhilePatterns(
|
|
748
|
+
compileWhile(e, t) {
|
|
749
|
+
return this._getCachedCompiledWhilePatterns(e, t).compile(e);
|
|
749
750
|
}
|
|
750
|
-
compileWhileAG(
|
|
751
|
-
return this._getCachedCompiledWhilePatterns(
|
|
751
|
+
compileWhileAG(e, t, n, r) {
|
|
752
|
+
return this._getCachedCompiledWhilePatterns(e, t).compileAG(e, n, r);
|
|
752
753
|
}
|
|
753
|
-
_getCachedCompiledWhilePatterns(
|
|
754
|
-
return this._cachedCompiledWhilePatterns || (this._cachedCompiledWhilePatterns = new
|
|
754
|
+
_getCachedCompiledWhilePatterns(e, t) {
|
|
755
|
+
return this._cachedCompiledWhilePatterns || (this._cachedCompiledWhilePatterns = new z(), this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences ? this._while.clone() : this._while)), this._while.hasBackReferences && this._cachedCompiledWhilePatterns.setSource(0, t || ""), this._cachedCompiledWhilePatterns;
|
|
755
756
|
}
|
|
756
|
-
},
|
|
757
|
-
static createCaptureRule(
|
|
758
|
-
return
|
|
757
|
+
}, L = class e {
|
|
758
|
+
static createCaptureRule(e, t, n, r, i) {
|
|
759
|
+
return e.registerRule((e) => new be(t, e, n, r, i));
|
|
759
760
|
}
|
|
760
|
-
static getCompiledRuleId(
|
|
761
|
-
return
|
|
762
|
-
if (
|
|
763
|
-
if (
|
|
764
|
-
|
|
765
|
-
let
|
|
766
|
-
return
|
|
761
|
+
static getCompiledRuleId(t, n, r) {
|
|
762
|
+
return t.id || n.registerRule((a) => {
|
|
763
|
+
if (t.id = a, t.match) return new xe(t.$vscodeTextmateLocation, t.id, t.name, t.match, e._compileCaptures(t.captures, n, r));
|
|
764
|
+
if (t.begin === void 0) {
|
|
765
|
+
t.repository && (r = i({}, r, t.repository));
|
|
766
|
+
let a = t.patterns;
|
|
767
|
+
return a === void 0 && t.include && (a = [{ include: t.include }]), new P(t.$vscodeTextmateLocation, t.id, t.name, t.contentName, e._compilePatterns(a, n, r));
|
|
767
768
|
}
|
|
768
|
-
return
|
|
769
|
-
}),
|
|
770
|
-
}
|
|
771
|
-
static _compileCaptures(
|
|
772
|
-
let
|
|
773
|
-
if (
|
|
774
|
-
let
|
|
775
|
-
for (let
|
|
776
|
-
if (
|
|
777
|
-
let
|
|
778
|
-
|
|
769
|
+
return t.while ? new I(t.$vscodeTextmateLocation, t.id, t.name, t.contentName, t.begin, e._compileCaptures(t.beginCaptures || t.captures, n, r), t.while, e._compileCaptures(t.whileCaptures || t.captures, n, r), e._compilePatterns(t.patterns, n, r)) : new F(t.$vscodeTextmateLocation, t.id, t.name, t.contentName, t.begin, e._compileCaptures(t.beginCaptures || t.captures, n, r), t.end, e._compileCaptures(t.endCaptures || t.captures, n, r), t.applyEndPatternLast, e._compilePatterns(t.patterns, n, r));
|
|
770
|
+
}), t.id;
|
|
771
|
+
}
|
|
772
|
+
static _compileCaptures(t, n, r) {
|
|
773
|
+
let i = [];
|
|
774
|
+
if (t) {
|
|
775
|
+
let a = 0;
|
|
776
|
+
for (let e in t) {
|
|
777
|
+
if (e === "$vscodeTextmateLocation") continue;
|
|
778
|
+
let t = parseInt(e, 10);
|
|
779
|
+
t > a && (a = t);
|
|
779
780
|
}
|
|
780
|
-
for (let
|
|
781
|
-
for (let
|
|
782
|
-
if (
|
|
783
|
-
let
|
|
784
|
-
|
|
781
|
+
for (let e = 0; e <= a; e++) i[e] = null;
|
|
782
|
+
for (let a in t) {
|
|
783
|
+
if (a === "$vscodeTextmateLocation") continue;
|
|
784
|
+
let o = parseInt(a, 10), s = 0;
|
|
785
|
+
t[a].patterns && (s = e.getCompiledRuleId(t[a], n, r)), i[o] = e.createCaptureRule(n, t[a].$vscodeTextmateLocation, t[a].name, t[a].contentName, s);
|
|
785
786
|
}
|
|
786
787
|
}
|
|
787
|
-
return
|
|
788
|
-
}
|
|
789
|
-
static _compilePatterns(
|
|
790
|
-
let
|
|
791
|
-
if (
|
|
792
|
-
let
|
|
793
|
-
if (
|
|
794
|
-
let
|
|
795
|
-
switch (
|
|
788
|
+
return i;
|
|
789
|
+
}
|
|
790
|
+
static _compilePatterns(t, n, r) {
|
|
791
|
+
let i = [];
|
|
792
|
+
if (t) for (let a = 0, o = t.length; a < o; a++) {
|
|
793
|
+
let o = t[a], s = -1;
|
|
794
|
+
if (o.include) {
|
|
795
|
+
let t = O(o.include);
|
|
796
|
+
switch (t.kind) {
|
|
796
797
|
case 0:
|
|
797
798
|
case 1:
|
|
798
|
-
|
|
799
|
+
s = e.getCompiledRuleId(r[o.include], n, r);
|
|
799
800
|
break;
|
|
800
801
|
case 2:
|
|
801
|
-
let
|
|
802
|
-
|
|
802
|
+
let i = r[t.ruleName];
|
|
803
|
+
i && (s = e.getCompiledRuleId(i, n, r));
|
|
803
804
|
break;
|
|
804
805
|
case 3:
|
|
805
806
|
case 4:
|
|
806
|
-
let
|
|
807
|
-
if (
|
|
808
|
-
let
|
|
809
|
-
|
|
810
|
-
} else
|
|
807
|
+
let a = t.scopeName, c = t.kind === 4 ? t.ruleName : null, l = n.getExternalGrammar(a, r);
|
|
808
|
+
if (l) if (c) {
|
|
809
|
+
let t = l.repository[c];
|
|
810
|
+
t && (s = e.getCompiledRuleId(t, n, l.repository));
|
|
811
|
+
} else s = e.getCompiledRuleId(l.repository.$self, n, l.repository);
|
|
811
812
|
break;
|
|
812
813
|
}
|
|
813
|
-
} else
|
|
814
|
-
if (
|
|
815
|
-
let
|
|
816
|
-
if ((
|
|
817
|
-
|
|
814
|
+
} else s = e.getCompiledRuleId(o, n, r);
|
|
815
|
+
if (s !== -1) {
|
|
816
|
+
let e = n.getRule(s), t = !1;
|
|
817
|
+
if ((e instanceof P || e instanceof F || e instanceof I) && e.hasMissingPatterns && e.patterns.length === 0 && (t = !0), t) continue;
|
|
818
|
+
i.push(s);
|
|
818
819
|
}
|
|
819
820
|
}
|
|
820
821
|
return {
|
|
821
|
-
patterns:
|
|
822
|
-
hasMissingPatterns: (
|
|
822
|
+
patterns: i,
|
|
823
|
+
hasMissingPatterns: (t ? t.length : 0) !== i.length
|
|
823
824
|
};
|
|
824
825
|
}
|
|
825
|
-
},
|
|
826
|
+
}, R = class e {
|
|
826
827
|
source;
|
|
827
828
|
ruleId;
|
|
828
829
|
hasAnchor;
|
|
829
830
|
hasBackReferences;
|
|
830
831
|
_anchorCache;
|
|
831
|
-
constructor(
|
|
832
|
-
if (
|
|
833
|
-
let
|
|
834
|
-
for (let
|
|
835
|
-
let
|
|
836
|
-
|
|
832
|
+
constructor(e, t) {
|
|
833
|
+
if (e && typeof e == "string") {
|
|
834
|
+
let t = e.length, n = 0, r = [], i = !1;
|
|
835
|
+
for (let a = 0; a < t; a++) if (e.charAt(a) === "\\" && a + 1 < t) {
|
|
836
|
+
let t = e.charAt(a + 1);
|
|
837
|
+
t === "z" ? (r.push(e.substring(n, a)), r.push("$(?!\\n)(?<!\\n)"), n = a + 2) : (t === "A" || t === "G") && (i = !0), a++;
|
|
837
838
|
}
|
|
838
|
-
this.hasAnchor =
|
|
839
|
-
} else this.hasAnchor = !1, this.source =
|
|
840
|
-
this.hasAnchor ? this._anchorCache = this._buildAnchorCache() : this._anchorCache = null, this.ruleId =
|
|
839
|
+
this.hasAnchor = i, n === 0 ? this.source = e : (r.push(e.substring(n, t)), this.source = r.join(""));
|
|
840
|
+
} else this.hasAnchor = !1, this.source = e;
|
|
841
|
+
this.hasAnchor ? this._anchorCache = this._buildAnchorCache() : this._anchorCache = null, this.ruleId = t, typeof this.source == "string" ? this.hasBackReferences = ve.test(this.source) : this.hasBackReferences = !1;
|
|
841
842
|
}
|
|
842
843
|
clone() {
|
|
843
|
-
return new
|
|
844
|
+
return new e(this.source, this.ruleId);
|
|
844
845
|
}
|
|
845
|
-
setSource(
|
|
846
|
-
this.source !==
|
|
846
|
+
setSource(e) {
|
|
847
|
+
this.source !== e && (this.source = e, this.hasAnchor && (this._anchorCache = this._buildAnchorCache()));
|
|
847
848
|
}
|
|
848
|
-
resolveBackReferences(
|
|
849
|
+
resolveBackReferences(e, t) {
|
|
849
850
|
if (typeof this.source != "string") throw Error("This method should only be called if the source is a string");
|
|
850
|
-
let
|
|
851
|
-
return
|
|
851
|
+
let n = t.map((t) => e.substring(t.start, t.end));
|
|
852
|
+
return k.lastIndex = 0, this.source.replace(k, (e, t) => d(n[parseInt(t, 10)] || ""));
|
|
852
853
|
}
|
|
853
854
|
_buildAnchorCache() {
|
|
854
855
|
if (typeof this.source != "string") throw Error("This method should only be called if the source is a string");
|
|
855
|
-
let
|
|
856
|
-
for (
|
|
856
|
+
let e = [], t = [], n = [], r = [], i, a, o, s;
|
|
857
|
+
for (i = 0, a = this.source.length; i < a; i++) o = this.source.charAt(i), e[i] = o, t[i] = o, n[i] = o, r[i] = o, o === "\\" && i + 1 < a && (s = this.source.charAt(i + 1), s === "A" ? (e[i + 1] = "", t[i + 1] = "", n[i + 1] = "A", r[i + 1] = "A") : s === "G" ? (e[i + 1] = "", t[i + 1] = "G", n[i + 1] = "", r[i + 1] = "G") : (e[i + 1] = s, t[i + 1] = s, n[i + 1] = s, r[i + 1] = s), i++);
|
|
857
858
|
return {
|
|
858
|
-
A0_G0:
|
|
859
|
-
A0_G1:
|
|
860
|
-
A1_G0:
|
|
861
|
-
A1_G1:
|
|
859
|
+
A0_G0: e.join(""),
|
|
860
|
+
A0_G1: t.join(""),
|
|
861
|
+
A1_G0: n.join(""),
|
|
862
|
+
A1_G1: r.join("")
|
|
862
863
|
};
|
|
863
864
|
}
|
|
864
|
-
resolveAnchors(
|
|
865
|
-
return !this.hasAnchor || !this._anchorCache || typeof this.source != "string" ? this.source :
|
|
865
|
+
resolveAnchors(e, t) {
|
|
866
|
+
return !this.hasAnchor || !this._anchorCache || typeof this.source != "string" ? this.source : e ? t ? this._anchorCache.A1_G1 : this._anchorCache.A1_G0 : t ? this._anchorCache.A0_G1 : this._anchorCache.A0_G0;
|
|
866
867
|
}
|
|
867
|
-
},
|
|
868
|
+
}, z = class {
|
|
868
869
|
_items;
|
|
869
870
|
_hasAnchors;
|
|
870
871
|
_cached;
|
|
@@ -883,72 +884,72 @@ var Rule = class {
|
|
|
883
884
|
_disposeCaches() {
|
|
884
885
|
this._cached &&= (this._cached.dispose(), null), this._anchorCache.A0_G0 && (this._anchorCache.A0_G0.dispose(), this._anchorCache.A0_G0 = null), this._anchorCache.A0_G1 && (this._anchorCache.A0_G1.dispose(), this._anchorCache.A0_G1 = null), this._anchorCache.A1_G0 && (this._anchorCache.A1_G0.dispose(), this._anchorCache.A1_G0 = null), this._anchorCache.A1_G1 && (this._anchorCache.A1_G1.dispose(), this._anchorCache.A1_G1 = null);
|
|
885
886
|
}
|
|
886
|
-
push(
|
|
887
|
-
this._items.push(
|
|
887
|
+
push(e) {
|
|
888
|
+
this._items.push(e), this._hasAnchors = this._hasAnchors || e.hasAnchor;
|
|
888
889
|
}
|
|
889
|
-
unshift(
|
|
890
|
-
this._items.unshift(
|
|
890
|
+
unshift(e) {
|
|
891
|
+
this._items.unshift(e), this._hasAnchors = this._hasAnchors || e.hasAnchor;
|
|
891
892
|
}
|
|
892
893
|
length() {
|
|
893
894
|
return this._items.length;
|
|
894
895
|
}
|
|
895
|
-
setSource(
|
|
896
|
-
this._items[
|
|
896
|
+
setSource(e, t) {
|
|
897
|
+
this._items[e].source !== t && (this._disposeCaches(), this._items[e].setSource(t));
|
|
897
898
|
}
|
|
898
|
-
compile(
|
|
899
|
-
return this._cached ||= new
|
|
899
|
+
compile(e) {
|
|
900
|
+
return this._cached ||= new B(e, this._items.map((e) => e.source), this._items.map((e) => e.ruleId)), this._cached;
|
|
900
901
|
}
|
|
901
|
-
compileAG(
|
|
902
|
-
return this._hasAnchors ?
|
|
902
|
+
compileAG(e, t, n) {
|
|
903
|
+
return this._hasAnchors ? t ? n ? (this._anchorCache.A1_G1 || (this._anchorCache.A1_G1 = this._resolveAnchors(e, t, n)), this._anchorCache.A1_G1) : (this._anchorCache.A1_G0 || (this._anchorCache.A1_G0 = this._resolveAnchors(e, t, n)), this._anchorCache.A1_G0) : n ? (this._anchorCache.A0_G1 || (this._anchorCache.A0_G1 = this._resolveAnchors(e, t, n)), this._anchorCache.A0_G1) : (this._anchorCache.A0_G0 || (this._anchorCache.A0_G0 = this._resolveAnchors(e, t, n)), this._anchorCache.A0_G0) : this.compile(e);
|
|
903
904
|
}
|
|
904
|
-
_resolveAnchors(
|
|
905
|
-
return new
|
|
905
|
+
_resolveAnchors(e, t, n) {
|
|
906
|
+
return new B(e, this._items.map((e) => e.resolveAnchors(t, n)), this._items.map((e) => e.ruleId));
|
|
906
907
|
}
|
|
907
|
-
},
|
|
908
|
-
constructor(
|
|
909
|
-
this.regExps =
|
|
908
|
+
}, B = class {
|
|
909
|
+
constructor(e, t, n) {
|
|
910
|
+
this.regExps = t, this.rules = n, this.scanner = e.createOnigScanner(t);
|
|
910
911
|
}
|
|
911
912
|
scanner;
|
|
912
913
|
dispose() {
|
|
913
914
|
typeof this.scanner.dispose == "function" && this.scanner.dispose();
|
|
914
915
|
}
|
|
915
916
|
toString() {
|
|
916
|
-
let
|
|
917
|
-
for (let
|
|
918
|
-
return
|
|
919
|
-
}
|
|
920
|
-
findNextMatchSync(
|
|
921
|
-
let
|
|
922
|
-
return
|
|
923
|
-
ruleId: this.rules[
|
|
924
|
-
captureIndices:
|
|
917
|
+
let e = [];
|
|
918
|
+
for (let t = 0, n = this.rules.length; t < n; t++) e.push(" - " + this.rules[t] + ": " + this.regExps[t]);
|
|
919
|
+
return e.join("\n");
|
|
920
|
+
}
|
|
921
|
+
findNextMatchSync(e, t, n) {
|
|
922
|
+
let r = this.scanner.findNextMatchSync(e, t, n);
|
|
923
|
+
return r ? {
|
|
924
|
+
ruleId: this.rules[r.index],
|
|
925
|
+
captureIndices: r.captureIndices
|
|
925
926
|
} : null;
|
|
926
927
|
}
|
|
927
|
-
},
|
|
928
|
-
constructor(
|
|
929
|
-
this.languageId =
|
|
928
|
+
}, V = class {
|
|
929
|
+
constructor(e, t) {
|
|
930
|
+
this.languageId = e, this.tokenType = t;
|
|
930
931
|
}
|
|
931
|
-
},
|
|
932
|
+
}, Se = class e {
|
|
932
933
|
_defaultAttributes;
|
|
933
934
|
_embeddedLanguagesMatcher;
|
|
934
|
-
constructor(
|
|
935
|
-
this._defaultAttributes = new
|
|
935
|
+
constructor(e, t) {
|
|
936
|
+
this._defaultAttributes = new V(e, 8), this._embeddedLanguagesMatcher = new Ce(Object.entries(t || {}));
|
|
936
937
|
}
|
|
937
938
|
getDefaultAttributes() {
|
|
938
939
|
return this._defaultAttributes;
|
|
939
940
|
}
|
|
940
|
-
getBasicScopeAttributes(
|
|
941
|
-
return
|
|
941
|
+
getBasicScopeAttributes(t) {
|
|
942
|
+
return t === null ? e._NULL_SCOPE_METADATA : this._getBasicScopeAttributes.get(t);
|
|
942
943
|
}
|
|
943
|
-
static _NULL_SCOPE_METADATA = new
|
|
944
|
-
_getBasicScopeAttributes = new
|
|
945
|
-
_scopeToLanguage(
|
|
946
|
-
return this._embeddedLanguagesMatcher.match(
|
|
944
|
+
static _NULL_SCOPE_METADATA = new V(0, 0);
|
|
945
|
+
_getBasicScopeAttributes = new f((e) => new V(this._scopeToLanguage(e), this._toStandardTokenType(e)));
|
|
946
|
+
_scopeToLanguage(e) {
|
|
947
|
+
return this._embeddedLanguagesMatcher.match(e) || 0;
|
|
947
948
|
}
|
|
948
|
-
_toStandardTokenType(
|
|
949
|
-
let
|
|
950
|
-
if (!
|
|
951
|
-
switch (
|
|
949
|
+
_toStandardTokenType(t) {
|
|
950
|
+
let n = t.match(e.STANDARD_TOKEN_TYPE_REGEXP);
|
|
951
|
+
if (!n) return 8;
|
|
952
|
+
switch (n[1]) {
|
|
952
953
|
case "comment": return 1;
|
|
953
954
|
case "string": return 2;
|
|
954
955
|
case "regex": return 3;
|
|
@@ -957,231 +958,231 @@ var Rule = class {
|
|
|
957
958
|
throw Error("Unexpected match for standard token type!");
|
|
958
959
|
}
|
|
959
960
|
static STANDARD_TOKEN_TYPE_REGEXP = /\b(comment|string|regex|meta\.embedded)\b/;
|
|
960
|
-
},
|
|
961
|
+
}, Ce = class {
|
|
961
962
|
values;
|
|
962
963
|
scopesRegExp;
|
|
963
|
-
constructor(
|
|
964
|
-
if (
|
|
964
|
+
constructor(e) {
|
|
965
|
+
if (e.length === 0) this.values = null, this.scopesRegExp = null;
|
|
965
966
|
else {
|
|
966
|
-
this.values = new Map(
|
|
967
|
-
let
|
|
968
|
-
|
|
967
|
+
this.values = new Map(e);
|
|
968
|
+
let t = e.map(([e, t]) => d(e));
|
|
969
|
+
t.sort(), t.reverse(), this.scopesRegExp = RegExp(`^((${t.join(")|(")}))($|\\.)`, "");
|
|
969
970
|
}
|
|
970
971
|
}
|
|
971
|
-
match(
|
|
972
|
+
match(e) {
|
|
972
973
|
if (!this.scopesRegExp) return;
|
|
973
|
-
let
|
|
974
|
-
if (
|
|
974
|
+
let t = e.match(this.scopesRegExp);
|
|
975
|
+
if (t) return this.values.get(t[1]);
|
|
975
976
|
}
|
|
976
977
|
};
|
|
977
978
|
typeof process < "u" && process.env.VSCODE_TEXTMATE_DEBUG;
|
|
978
|
-
var
|
|
979
|
-
constructor(
|
|
980
|
-
this.stack =
|
|
979
|
+
var H = !1, U = class {
|
|
980
|
+
constructor(e, t) {
|
|
981
|
+
this.stack = e, this.stoppedEarly = t;
|
|
981
982
|
}
|
|
982
983
|
};
|
|
983
|
-
function
|
|
984
|
-
let
|
|
985
|
-
if (
|
|
986
|
-
let
|
|
987
|
-
|
|
988
|
-
}
|
|
989
|
-
let
|
|
990
|
-
for (; !
|
|
991
|
-
if (
|
|
992
|
-
|
|
993
|
-
}
|
|
994
|
-
return new
|
|
995
|
-
function
|
|
996
|
-
let
|
|
997
|
-
if (!
|
|
998
|
-
|
|
984
|
+
function W(e, t, n, r, i, a, o, s) {
|
|
985
|
+
let c = t.content.length, l = !1, u = -1;
|
|
986
|
+
if (o) {
|
|
987
|
+
let o = G(e, t, n, r, i, a);
|
|
988
|
+
i = o.stack, r = o.linePos, n = o.isFirstLine, u = o.anchorPosition;
|
|
989
|
+
}
|
|
990
|
+
let d = Date.now();
|
|
991
|
+
for (; !l;) {
|
|
992
|
+
if (s !== 0 && Date.now() - d > s) return new U(i, !0);
|
|
993
|
+
f();
|
|
994
|
+
}
|
|
995
|
+
return new U(i, !1);
|
|
996
|
+
function f() {
|
|
997
|
+
let o = we(e, t, n, r, i, u);
|
|
998
|
+
if (!o) {
|
|
999
|
+
a.produce(i, c), l = !0;
|
|
999
1000
|
return;
|
|
1000
1001
|
}
|
|
1001
|
-
let
|
|
1002
|
-
if (
|
|
1003
|
-
let
|
|
1004
|
-
|
|
1005
|
-
let
|
|
1006
|
-
if (
|
|
1007
|
-
|
|
1002
|
+
let s = o.captureIndices, d = o.matchedRuleId, f = s && s.length > 0 ? s[0].end > r : !1;
|
|
1003
|
+
if (d === ye) {
|
|
1004
|
+
let o = i.getRule(e);
|
|
1005
|
+
a.produce(i, s[0].start), i = i.withContentNameScopesList(i.nameScopesList), J(e, t, n, i, a, o.endCaptures, s), a.produce(i, s[0].end);
|
|
1006
|
+
let d = i;
|
|
1007
|
+
if (i = i.parent, u = d.getAnchorPos(), !f && d.getEnterPos() === r) {
|
|
1008
|
+
i = d, a.produce(i, c), l = !0;
|
|
1008
1009
|
return;
|
|
1009
1010
|
}
|
|
1010
1011
|
} else {
|
|
1011
|
-
let
|
|
1012
|
-
|
|
1013
|
-
let
|
|
1014
|
-
if (
|
|
1015
|
-
let
|
|
1016
|
-
|
|
1017
|
-
let
|
|
1018
|
-
if (
|
|
1019
|
-
|
|
1012
|
+
let o = e.getRule(d);
|
|
1013
|
+
a.produce(i, s[0].start);
|
|
1014
|
+
let p = i, m = o.getName(t.content, s), h = i.contentNameScopesList.pushAttributed(m, e);
|
|
1015
|
+
if (i = i.push(d, r, u, s[0].end === c, null, h, h), o instanceof F) {
|
|
1016
|
+
let r = o;
|
|
1017
|
+
J(e, t, n, i, a, r.beginCaptures, s), a.produce(i, s[0].end), u = s[0].end;
|
|
1018
|
+
let d = r.getContentName(t.content, s), m = h.pushAttributed(d, e);
|
|
1019
|
+
if (i = i.withContentNameScopesList(m), r.endHasBackReferences && (i = i.withEndRule(r.getEndWithResolvedBackReferences(t.content, s))), !f && p.hasSameRuleAs(i)) {
|
|
1020
|
+
i = i.pop(), a.produce(i, c), l = !0;
|
|
1020
1021
|
return;
|
|
1021
1022
|
}
|
|
1022
|
-
} else if (
|
|
1023
|
-
let
|
|
1024
|
-
|
|
1025
|
-
let
|
|
1026
|
-
if (
|
|
1027
|
-
|
|
1023
|
+
} else if (o instanceof I) {
|
|
1024
|
+
let r = o;
|
|
1025
|
+
J(e, t, n, i, a, r.beginCaptures, s), a.produce(i, s[0].end), u = s[0].end;
|
|
1026
|
+
let d = r.getContentName(t.content, s), m = h.pushAttributed(d, e);
|
|
1027
|
+
if (i = i.withContentNameScopesList(m), r.whileHasBackReferences && (i = i.withEndRule(r.getWhileWithResolvedBackReferences(t.content, s))), !f && p.hasSameRuleAs(i)) {
|
|
1028
|
+
i = i.pop(), a.produce(i, c), l = !0;
|
|
1028
1029
|
return;
|
|
1029
1030
|
}
|
|
1030
|
-
} else if (
|
|
1031
|
-
|
|
1031
|
+
} else if (J(e, t, n, i, a, o.captures, s), a.produce(i, s[0].end), i = i.pop(), !f) {
|
|
1032
|
+
i = i.safePop(), a.produce(i, c), l = !0;
|
|
1032
1033
|
return;
|
|
1033
1034
|
}
|
|
1034
1035
|
}
|
|
1035
|
-
|
|
1036
|
+
s[0].end > r && (r = s[0].end, n = !1);
|
|
1036
1037
|
}
|
|
1037
1038
|
}
|
|
1038
|
-
function
|
|
1039
|
-
let
|
|
1040
|
-
for (let
|
|
1041
|
-
let
|
|
1042
|
-
|
|
1043
|
-
rule:
|
|
1044
|
-
stack:
|
|
1039
|
+
function G(e, t, n, r, i, a) {
|
|
1040
|
+
let o = i.beginRuleCapturedEOL ? 0 : -1, s = [];
|
|
1041
|
+
for (let t = i; t; t = t.pop()) {
|
|
1042
|
+
let n = t.getRule(e);
|
|
1043
|
+
n instanceof I && s.push({
|
|
1044
|
+
rule: n,
|
|
1045
|
+
stack: t
|
|
1045
1046
|
});
|
|
1046
1047
|
}
|
|
1047
|
-
for (let
|
|
1048
|
-
let { ruleScanner:
|
|
1049
|
-
if (
|
|
1050
|
-
if (
|
|
1051
|
-
|
|
1048
|
+
for (let c = s.pop(); c; c = s.pop()) {
|
|
1049
|
+
let { ruleScanner: s, findOptions: l } = De(c.rule, e, c.stack.endRule, n, r === o), u = s.findNextMatchSync(t, r, l);
|
|
1050
|
+
if (u) {
|
|
1051
|
+
if (u.ruleId !== A) {
|
|
1052
|
+
i = c.stack.pop();
|
|
1052
1053
|
break;
|
|
1053
1054
|
}
|
|
1054
|
-
|
|
1055
|
+
u.captureIndices && u.captureIndices.length && (a.produce(c.stack, u.captureIndices[0].start), J(e, t, n, c.stack, a, c.rule.whileCaptures, u.captureIndices), a.produce(c.stack, u.captureIndices[0].end), o = u.captureIndices[0].end, u.captureIndices[0].end > r && (r = u.captureIndices[0].end, n = !1));
|
|
1055
1056
|
} else {
|
|
1056
|
-
|
|
1057
|
+
i = c.stack.pop();
|
|
1057
1058
|
break;
|
|
1058
1059
|
}
|
|
1059
1060
|
}
|
|
1060
1061
|
return {
|
|
1061
|
-
stack:
|
|
1062
|
-
linePos:
|
|
1063
|
-
anchorPosition:
|
|
1064
|
-
isFirstLine:
|
|
1062
|
+
stack: i,
|
|
1063
|
+
linePos: r,
|
|
1064
|
+
anchorPosition: o,
|
|
1065
|
+
isFirstLine: n
|
|
1065
1066
|
};
|
|
1066
1067
|
}
|
|
1067
|
-
function
|
|
1068
|
-
let
|
|
1069
|
-
if (
|
|
1070
|
-
let
|
|
1071
|
-
if (!
|
|
1072
|
-
if (!
|
|
1073
|
-
let
|
|
1074
|
-
return
|
|
1068
|
+
function we(e, t, n, r, i, a) {
|
|
1069
|
+
let o = Te(e, t, n, r, i, a), s = e.getInjections();
|
|
1070
|
+
if (s.length === 0) return o;
|
|
1071
|
+
let c = Ee(s, e, t, n, r, i, a);
|
|
1072
|
+
if (!c) return o;
|
|
1073
|
+
if (!o) return c;
|
|
1074
|
+
let l = o.captureIndices[0].start, u = c.captureIndices[0].start;
|
|
1075
|
+
return u < l || c.priorityMatch && u === l ? c : o;
|
|
1075
1076
|
}
|
|
1076
|
-
function
|
|
1077
|
-
let { ruleScanner:
|
|
1078
|
-
return
|
|
1079
|
-
captureIndices:
|
|
1080
|
-
matchedRuleId:
|
|
1077
|
+
function Te(e, t, n, r, i, a) {
|
|
1078
|
+
let { ruleScanner: o, findOptions: s } = K(i.getRule(e), e, i.endRule, n, r === a), c = o.findNextMatchSync(t, r, s);
|
|
1079
|
+
return c ? {
|
|
1080
|
+
captureIndices: c.captureIndices,
|
|
1081
|
+
matchedRuleId: c.ruleId
|
|
1081
1082
|
} : null;
|
|
1082
1083
|
}
|
|
1083
|
-
function
|
|
1084
|
-
let
|
|
1085
|
-
for (let
|
|
1086
|
-
let
|
|
1087
|
-
if (!
|
|
1088
|
-
let { ruleScanner:
|
|
1089
|
-
if (!
|
|
1090
|
-
let
|
|
1091
|
-
if (!(
|
|
1092
|
-
}
|
|
1093
|
-
return
|
|
1094
|
-
priorityMatch:
|
|
1095
|
-
captureIndices:
|
|
1096
|
-
matchedRuleId:
|
|
1084
|
+
function Ee(e, t, n, r, i, a, o) {
|
|
1085
|
+
let s = Number.MAX_VALUE, c = null, l, u = 0, d = a.contentNameScopesList.getScopeNames();
|
|
1086
|
+
for (let a = 0, f = e.length; a < f; a++) {
|
|
1087
|
+
let f = e[a];
|
|
1088
|
+
if (!f.matcher(d)) continue;
|
|
1089
|
+
let { ruleScanner: p, findOptions: m } = K(t.getRule(f.ruleId), t, null, r, i === o), h = p.findNextMatchSync(n, i, m);
|
|
1090
|
+
if (!h) continue;
|
|
1091
|
+
let g = h.captureIndices[0].start;
|
|
1092
|
+
if (!(g >= s) && (s = g, c = h.captureIndices, l = h.ruleId, u = f.priority, s === i)) break;
|
|
1093
|
+
}
|
|
1094
|
+
return c ? {
|
|
1095
|
+
priorityMatch: u === -1,
|
|
1096
|
+
captureIndices: c,
|
|
1097
|
+
matchedRuleId: l
|
|
1097
1098
|
} : null;
|
|
1098
1099
|
}
|
|
1099
|
-
function
|
|
1100
|
-
return
|
|
1101
|
-
ruleScanner:
|
|
1102
|
-
findOptions:
|
|
1100
|
+
function K(e, t, n, r, i) {
|
|
1101
|
+
return H ? {
|
|
1102
|
+
ruleScanner: e.compile(t, n),
|
|
1103
|
+
findOptions: q(r, i)
|
|
1103
1104
|
} : {
|
|
1104
|
-
ruleScanner:
|
|
1105
|
+
ruleScanner: e.compileAG(t, n, r, i),
|
|
1105
1106
|
findOptions: 0
|
|
1106
1107
|
};
|
|
1107
1108
|
}
|
|
1108
|
-
function
|
|
1109
|
-
return
|
|
1110
|
-
ruleScanner:
|
|
1111
|
-
findOptions:
|
|
1109
|
+
function De(e, t, n, r, i) {
|
|
1110
|
+
return H ? {
|
|
1111
|
+
ruleScanner: e.compileWhile(t, n),
|
|
1112
|
+
findOptions: q(r, i)
|
|
1112
1113
|
} : {
|
|
1113
|
-
ruleScanner:
|
|
1114
|
+
ruleScanner: e.compileWhileAG(t, n, r, i),
|
|
1114
1115
|
findOptions: 0
|
|
1115
1116
|
};
|
|
1116
1117
|
}
|
|
1117
|
-
function
|
|
1118
|
-
let
|
|
1119
|
-
return
|
|
1118
|
+
function q(e, t) {
|
|
1119
|
+
let n = 0;
|
|
1120
|
+
return e || (n |= 1), t || (n |= 4), n;
|
|
1120
1121
|
}
|
|
1121
|
-
function
|
|
1122
|
-
if (
|
|
1123
|
-
let
|
|
1124
|
-
for (let
|
|
1125
|
-
let
|
|
1126
|
-
if (
|
|
1127
|
-
let
|
|
1128
|
-
if (
|
|
1129
|
-
if (
|
|
1130
|
-
for (;
|
|
1131
|
-
if (
|
|
1132
|
-
let
|
|
1133
|
-
|
|
1122
|
+
function J(e, t, n, r, i, a, o) {
|
|
1123
|
+
if (a.length === 0) return;
|
|
1124
|
+
let s = t.content, c = Math.min(a.length, o.length), l = [], u = o[0].end;
|
|
1125
|
+
for (let t = 0; t < c; t++) {
|
|
1126
|
+
let c = a[t];
|
|
1127
|
+
if (c === null) continue;
|
|
1128
|
+
let d = o[t];
|
|
1129
|
+
if (d.length === 0) continue;
|
|
1130
|
+
if (d.start > u) break;
|
|
1131
|
+
for (; l.length > 0 && l[l.length - 1].endPos <= d.start;) i.produceFromScopes(l[l.length - 1].scopes, l[l.length - 1].endPos), l.pop();
|
|
1132
|
+
if (l.length > 0 ? i.produceFromScopes(l[l.length - 1].scopes, d.start) : i.produce(r, d.start), c.retokenizeCapturedWithRuleId) {
|
|
1133
|
+
let t = c.getName(s, o), a = r.contentNameScopesList.pushAttributed(t, e), l = c.getContentName(s, o), u = a.pushAttributed(l, e), f = r.push(c.retokenizeCapturedWithRuleId, d.start, -1, !1, null, a, u), p = e.createOnigString(s.substring(0, d.end));
|
|
1134
|
+
W(e, p, n && d.start === 0, d.start, f, i, !1, 0), C(p);
|
|
1134
1135
|
continue;
|
|
1135
1136
|
}
|
|
1136
|
-
let
|
|
1137
|
-
if (
|
|
1138
|
-
let
|
|
1139
|
-
|
|
1137
|
+
let f = c.getName(s, o);
|
|
1138
|
+
if (f !== null) {
|
|
1139
|
+
let t = (l.length > 0 ? l[l.length - 1].scopes : r.contentNameScopesList).pushAttributed(f, e);
|
|
1140
|
+
l.push(new Oe(t, d.end));
|
|
1140
1141
|
}
|
|
1141
1142
|
}
|
|
1142
|
-
for (;
|
|
1143
|
+
for (; l.length > 0;) i.produceFromScopes(l[l.length - 1].scopes, l[l.length - 1].endPos), l.pop();
|
|
1143
1144
|
}
|
|
1144
|
-
var
|
|
1145
|
+
var Oe = class {
|
|
1145
1146
|
scopes;
|
|
1146
1147
|
endPos;
|
|
1147
|
-
constructor(
|
|
1148
|
-
this.scopes =
|
|
1148
|
+
constructor(e, t) {
|
|
1149
|
+
this.scopes = e, this.endPos = t;
|
|
1149
1150
|
}
|
|
1150
1151
|
};
|
|
1151
|
-
function
|
|
1152
|
-
return new
|
|
1152
|
+
function ke(e, t, n, r, i, a, o, s) {
|
|
1153
|
+
return new je(e, t, n, r, i, a, o, s);
|
|
1153
1154
|
}
|
|
1154
|
-
function
|
|
1155
|
-
let
|
|
1156
|
-
for (let
|
|
1157
|
-
debugSelector:
|
|
1158
|
-
matcher:
|
|
1159
|
-
ruleId:
|
|
1160
|
-
grammar:
|
|
1161
|
-
priority:
|
|
1155
|
+
function Y(e, t, n, r, i) {
|
|
1156
|
+
let a = x(t, X), o = L.getCompiledRuleId(n, r, i.repository);
|
|
1157
|
+
for (let n of a) e.push({
|
|
1158
|
+
debugSelector: t,
|
|
1159
|
+
matcher: n.matcher,
|
|
1160
|
+
ruleId: o,
|
|
1161
|
+
grammar: i,
|
|
1162
|
+
priority: n.priority
|
|
1162
1163
|
});
|
|
1163
1164
|
}
|
|
1164
|
-
function
|
|
1165
|
-
if (
|
|
1166
|
-
let
|
|
1167
|
-
return
|
|
1168
|
-
for (let
|
|
1165
|
+
function X(e, t) {
|
|
1166
|
+
if (t.length < e.length) return !1;
|
|
1167
|
+
let n = 0;
|
|
1168
|
+
return e.every((e) => {
|
|
1169
|
+
for (let r = n; r < t.length; r++) if (Ae(t[r], e)) return n = r + 1, !0;
|
|
1169
1170
|
return !1;
|
|
1170
1171
|
});
|
|
1171
1172
|
}
|
|
1172
|
-
function
|
|
1173
|
-
if (!
|
|
1174
|
-
if (
|
|
1175
|
-
let
|
|
1176
|
-
return
|
|
1173
|
+
function Ae(e, t) {
|
|
1174
|
+
if (!e) return !1;
|
|
1175
|
+
if (e === t) return !0;
|
|
1176
|
+
let n = t.length;
|
|
1177
|
+
return e.length > n && e.substr(0, n) === t && e[n] === ".";
|
|
1177
1178
|
}
|
|
1178
|
-
var
|
|
1179
|
-
constructor(
|
|
1180
|
-
if (this._rootScopeName =
|
|
1181
|
-
let
|
|
1182
|
-
for (let
|
|
1183
|
-
matcher:
|
|
1184
|
-
type:
|
|
1179
|
+
var je = class {
|
|
1180
|
+
constructor(e, t, n, r, i, a, o, s) {
|
|
1181
|
+
if (this._rootScopeName = e, this.balancedBracketSelectors = a, this._onigLib = s, this._basicScopeAttributesProvider = new Se(n, r), this._rootId = -1, this._lastRuleId = 0, this._ruleId2desc = [null], this._includedGrammars = {}, this._grammarRepository = o, this._grammar = Z(t, null), this._injections = null, this._tokenTypeMatchers = [], i) for (let e of Object.keys(i)) {
|
|
1182
|
+
let t = x(e, X);
|
|
1183
|
+
for (let n of t) this._tokenTypeMatchers.push({
|
|
1184
|
+
matcher: n.matcher,
|
|
1185
|
+
type: i[e]
|
|
1185
1186
|
});
|
|
1186
1187
|
}
|
|
1187
1188
|
}
|
|
@@ -1198,109 +1199,109 @@ var Grammar = class {
|
|
|
1198
1199
|
return this._grammarRepository;
|
|
1199
1200
|
}
|
|
1200
1201
|
dispose() {
|
|
1201
|
-
for (let
|
|
1202
|
+
for (let e of this._ruleId2desc) e && e.dispose();
|
|
1202
1203
|
}
|
|
1203
|
-
createOnigScanner(
|
|
1204
|
-
return this._onigLib.createOnigScanner(
|
|
1204
|
+
createOnigScanner(e) {
|
|
1205
|
+
return this._onigLib.createOnigScanner(e);
|
|
1205
1206
|
}
|
|
1206
|
-
createOnigString(
|
|
1207
|
-
return this._onigLib.createOnigString(
|
|
1207
|
+
createOnigString(e) {
|
|
1208
|
+
return this._onigLib.createOnigString(e);
|
|
1208
1209
|
}
|
|
1209
|
-
getMetadataForScope(
|
|
1210
|
-
return this._basicScopeAttributesProvider.getBasicScopeAttributes(
|
|
1210
|
+
getMetadataForScope(e) {
|
|
1211
|
+
return this._basicScopeAttributesProvider.getBasicScopeAttributes(e);
|
|
1211
1212
|
}
|
|
1212
1213
|
_collectInjections() {
|
|
1213
|
-
let
|
|
1214
|
-
lookup: (
|
|
1215
|
-
injections: (
|
|
1216
|
-
},
|
|
1217
|
-
if (
|
|
1218
|
-
let
|
|
1219
|
-
if (
|
|
1220
|
-
let
|
|
1221
|
-
|
|
1222
|
-
let
|
|
1223
|
-
if (
|
|
1224
|
-
let
|
|
1225
|
-
|
|
1214
|
+
let e = {
|
|
1215
|
+
lookup: (e) => e === this._rootScopeName ? this._grammar : this.getExternalGrammar(e),
|
|
1216
|
+
injections: (e) => this._grammarRepository.injections(e)
|
|
1217
|
+
}, t = [], n = this._rootScopeName, r = e.lookup(n);
|
|
1218
|
+
if (r) {
|
|
1219
|
+
let e = r.injections;
|
|
1220
|
+
if (e) for (let n in e) Y(t, n, e[n], this, r);
|
|
1221
|
+
let i = this._grammarRepository.injections(n);
|
|
1222
|
+
i && i.forEach((e) => {
|
|
1223
|
+
let n = this.getExternalGrammar(e);
|
|
1224
|
+
if (n) {
|
|
1225
|
+
let e = n.injectionSelector;
|
|
1226
|
+
e && Y(t, e, n, this, n);
|
|
1226
1227
|
}
|
|
1227
1228
|
});
|
|
1228
1229
|
}
|
|
1229
|
-
return
|
|
1230
|
+
return t.sort((e, t) => e.priority - t.priority), t;
|
|
1230
1231
|
}
|
|
1231
1232
|
getInjections() {
|
|
1232
1233
|
return this._injections === null && (this._injections = this._collectInjections()), this._injections;
|
|
1233
1234
|
}
|
|
1234
|
-
registerRule(
|
|
1235
|
-
let
|
|
1236
|
-
return this._ruleId2desc[
|
|
1235
|
+
registerRule(e) {
|
|
1236
|
+
let t = ++this._lastRuleId, n = e(j(t));
|
|
1237
|
+
return this._ruleId2desc[t] = n, n;
|
|
1237
1238
|
}
|
|
1238
|
-
getRule(
|
|
1239
|
-
return this._ruleId2desc[
|
|
1239
|
+
getRule(e) {
|
|
1240
|
+
return this._ruleId2desc[M(e)];
|
|
1240
1241
|
}
|
|
1241
|
-
getExternalGrammar(
|
|
1242
|
-
if (this._includedGrammars[
|
|
1242
|
+
getExternalGrammar(e, t) {
|
|
1243
|
+
if (this._includedGrammars[e]) return this._includedGrammars[e];
|
|
1243
1244
|
if (this._grammarRepository) {
|
|
1244
|
-
let
|
|
1245
|
-
if (
|
|
1245
|
+
let n = this._grammarRepository.lookup(e);
|
|
1246
|
+
if (n) return this._includedGrammars[e] = Z(n, t && t.$base), this._includedGrammars[e];
|
|
1246
1247
|
}
|
|
1247
1248
|
}
|
|
1248
|
-
tokenizeLine(
|
|
1249
|
-
let
|
|
1249
|
+
tokenizeLine(e, t, n = 0) {
|
|
1250
|
+
let r = this._tokenize(e, t, !1, n);
|
|
1250
1251
|
return {
|
|
1251
|
-
tokens:
|
|
1252
|
-
ruleStack:
|
|
1253
|
-
stoppedEarly:
|
|
1252
|
+
tokens: r.lineTokens.getResult(r.ruleStack, r.lineLength),
|
|
1253
|
+
ruleStack: r.ruleStack,
|
|
1254
|
+
stoppedEarly: r.stoppedEarly
|
|
1254
1255
|
};
|
|
1255
1256
|
}
|
|
1256
|
-
tokenizeLine2(
|
|
1257
|
-
let
|
|
1257
|
+
tokenizeLine2(e, t, n = 0) {
|
|
1258
|
+
let r = this._tokenize(e, t, !0, n);
|
|
1258
1259
|
return {
|
|
1259
|
-
tokens:
|
|
1260
|
-
ruleStack:
|
|
1261
|
-
stoppedEarly:
|
|
1260
|
+
tokens: r.lineTokens.getBinaryResult(r.ruleStack, r.lineLength),
|
|
1261
|
+
ruleStack: r.ruleStack,
|
|
1262
|
+
stoppedEarly: r.stoppedEarly
|
|
1262
1263
|
};
|
|
1263
1264
|
}
|
|
1264
|
-
_tokenize(
|
|
1265
|
-
this._rootId === -1 && (this._rootId =
|
|
1266
|
-
let
|
|
1267
|
-
if (!
|
|
1268
|
-
|
|
1269
|
-
let
|
|
1270
|
-
|
|
1271
|
-
} else
|
|
1272
|
-
|
|
1273
|
-
let
|
|
1274
|
-
return
|
|
1275
|
-
lineLength:
|
|
1276
|
-
lineTokens:
|
|
1277
|
-
ruleStack:
|
|
1278
|
-
stoppedEarly:
|
|
1265
|
+
_tokenize(e, t, n, r) {
|
|
1266
|
+
this._rootId === -1 && (this._rootId = L.getCompiledRuleId(this._grammar.repository.$self, this, this._grammar.repository), this.getInjections());
|
|
1267
|
+
let i;
|
|
1268
|
+
if (!t || t === $.NULL) {
|
|
1269
|
+
i = !0;
|
|
1270
|
+
let e = this._basicScopeAttributesProvider.getDefaultAttributes(), n = this.themeProvider.getDefaults(), r = b.set(0, e.languageId, e.tokenType, null, n.fontStyle, n.foregroundId, n.backgroundId), a = this.getRule(this._rootId).getName(null, null), o;
|
|
1271
|
+
o = a ? Q.createRootAndLookUpScopeName(a, r, this) : Q.createRoot("unknown", r), t = new $(null, this._rootId, -1, -1, !1, null, o, o);
|
|
1272
|
+
} else i = !1, t.reset();
|
|
1273
|
+
e += "\n";
|
|
1274
|
+
let a = this.createOnigString(e), o = a.content.length, s = new Ne(n, e, this._tokenTypeMatchers, this.balancedBracketSelectors), c = W(this, a, i, 0, t, s, !0, r);
|
|
1275
|
+
return C(a), {
|
|
1276
|
+
lineLength: o,
|
|
1277
|
+
lineTokens: s,
|
|
1278
|
+
ruleStack: c.stack,
|
|
1279
|
+
stoppedEarly: c.stoppedEarly
|
|
1279
1280
|
};
|
|
1280
1281
|
}
|
|
1281
1282
|
};
|
|
1282
|
-
function
|
|
1283
|
-
return
|
|
1284
|
-
$vscodeTextmateLocation:
|
|
1285
|
-
patterns:
|
|
1286
|
-
name:
|
|
1287
|
-
},
|
|
1283
|
+
function Z(t, n) {
|
|
1284
|
+
return t = e(t), t.repository = t.repository || {}, t.repository.$self = {
|
|
1285
|
+
$vscodeTextmateLocation: t.$vscodeTextmateLocation,
|
|
1286
|
+
patterns: t.patterns,
|
|
1287
|
+
name: t.scopeName
|
|
1288
|
+
}, t.repository.$base = n || t.repository.$self, t;
|
|
1288
1289
|
}
|
|
1289
|
-
var
|
|
1290
|
-
constructor(
|
|
1291
|
-
this.parent =
|
|
1290
|
+
var Q = class e {
|
|
1291
|
+
constructor(e, t, n) {
|
|
1292
|
+
this.parent = e, this.scopePath = t, this.tokenAttributes = n;
|
|
1292
1293
|
}
|
|
1293
|
-
static fromExtension(
|
|
1294
|
-
let
|
|
1295
|
-
for (let
|
|
1296
|
-
return
|
|
1294
|
+
static fromExtension(t, n) {
|
|
1295
|
+
let r = t, i = t?.scopePath ?? null;
|
|
1296
|
+
for (let t of n) i = m.push(i, t.scopeNames), r = new e(r, i, t.encodedTokenAttributes);
|
|
1297
|
+
return r;
|
|
1297
1298
|
}
|
|
1298
|
-
static createRoot(
|
|
1299
|
-
return new
|
|
1299
|
+
static createRoot(t, n) {
|
|
1300
|
+
return new e(null, new m(null, t), n);
|
|
1300
1301
|
}
|
|
1301
|
-
static createRootAndLookUpScopeName(
|
|
1302
|
-
let
|
|
1303
|
-
return new
|
|
1302
|
+
static createRootAndLookUpScopeName(t, n, r) {
|
|
1303
|
+
let i = r.getMetadataForScope(t), a = new m(null, t), o = r.themeProvider.themeMatch(a);
|
|
1304
|
+
return new e(null, a, e.mergeAttributes(n, i, o));
|
|
1304
1305
|
}
|
|
1305
1306
|
get scopeName() {
|
|
1306
1307
|
return this.scopePath.scopeName;
|
|
@@ -1308,72 +1309,72 @@ var AttributedScopeStack = class l {
|
|
|
1308
1309
|
toString() {
|
|
1309
1310
|
return this.getScopeNames().join(" ");
|
|
1310
1311
|
}
|
|
1311
|
-
equals(
|
|
1312
|
-
return
|
|
1312
|
+
equals(t) {
|
|
1313
|
+
return e.equals(this, t);
|
|
1313
1314
|
}
|
|
1314
|
-
static equals(
|
|
1315
|
+
static equals(e, t) {
|
|
1315
1316
|
do {
|
|
1316
|
-
if (
|
|
1317
|
-
if (!
|
|
1318
|
-
|
|
1317
|
+
if (e === t || !e && !t) return !0;
|
|
1318
|
+
if (!e || !t || e.scopeName !== t.scopeName || e.tokenAttributes !== t.tokenAttributes) return !1;
|
|
1319
|
+
e = e.parent, t = t.parent;
|
|
1319
1320
|
} while (!0);
|
|
1320
1321
|
}
|
|
1321
|
-
static mergeAttributes(
|
|
1322
|
-
let
|
|
1323
|
-
return
|
|
1322
|
+
static mergeAttributes(e, t, n) {
|
|
1323
|
+
let r = -1, i = 0, a = 0;
|
|
1324
|
+
return n !== null && (r = n.fontStyle, i = n.foregroundId, a = n.backgroundId), b.set(e, t.languageId, t.tokenType, null, r, i, a);
|
|
1324
1325
|
}
|
|
1325
|
-
pushAttributed(
|
|
1326
|
-
if (
|
|
1327
|
-
if (
|
|
1328
|
-
let
|
|
1329
|
-
for (let
|
|
1330
|
-
return
|
|
1326
|
+
pushAttributed(t, n) {
|
|
1327
|
+
if (t === null) return this;
|
|
1328
|
+
if (t.indexOf(" ") === -1) return e._pushAttributed(this, t, n);
|
|
1329
|
+
let r = t.split(/ /g), i = this;
|
|
1330
|
+
for (let t of r) i = e._pushAttributed(i, t, n);
|
|
1331
|
+
return i;
|
|
1331
1332
|
}
|
|
1332
|
-
static _pushAttributed(
|
|
1333
|
-
let
|
|
1334
|
-
return new
|
|
1333
|
+
static _pushAttributed(t, n, r) {
|
|
1334
|
+
let i = r.getMetadataForScope(n), a = t.scopePath.push(n), o = r.themeProvider.themeMatch(a);
|
|
1335
|
+
return new e(t, a, e.mergeAttributes(t.tokenAttributes, i, o));
|
|
1335
1336
|
}
|
|
1336
1337
|
getScopeNames() {
|
|
1337
1338
|
return this.scopePath.getSegments();
|
|
1338
1339
|
}
|
|
1339
|
-
getExtensionIfDefined(
|
|
1340
|
-
let
|
|
1341
|
-
for (;
|
|
1342
|
-
encodedTokenAttributes:
|
|
1343
|
-
scopeNames:
|
|
1344
|
-
}),
|
|
1345
|
-
return
|
|
1340
|
+
getExtensionIfDefined(e) {
|
|
1341
|
+
let t = [], n = this;
|
|
1342
|
+
for (; n && n !== e;) t.push({
|
|
1343
|
+
encodedTokenAttributes: n.tokenAttributes,
|
|
1344
|
+
scopeNames: n.scopePath.getExtensionIfDefined(n.parent?.scopePath ?? null)
|
|
1345
|
+
}), n = n.parent;
|
|
1346
|
+
return n === e ? t.reverse() : void 0;
|
|
1346
1347
|
}
|
|
1347
|
-
},
|
|
1348
|
-
constructor(
|
|
1349
|
-
this.parent =
|
|
1348
|
+
}, $ = class e {
|
|
1349
|
+
constructor(e, t, n, r, i, a, o, s) {
|
|
1350
|
+
this.parent = e, this.ruleId = t, this.beginRuleCapturedEOL = i, this.endRule = a, this.nameScopesList = o, this.contentNameScopesList = s, this.depth = this.parent ? this.parent.depth + 1 : 1, this._enterPos = n, this._anchorPos = r;
|
|
1350
1351
|
}
|
|
1351
1352
|
_stackElementBrand = void 0;
|
|
1352
|
-
static NULL = new
|
|
1353
|
+
static NULL = new e(null, 0, 0, 0, !1, null, null, null);
|
|
1353
1354
|
_enterPos;
|
|
1354
1355
|
_anchorPos;
|
|
1355
1356
|
depth;
|
|
1356
|
-
equals(
|
|
1357
|
-
return
|
|
1357
|
+
equals(t) {
|
|
1358
|
+
return t === null ? !1 : e._equals(this, t);
|
|
1358
1359
|
}
|
|
1359
|
-
static _equals(
|
|
1360
|
-
return
|
|
1360
|
+
static _equals(e, t) {
|
|
1361
|
+
return e === t ? !0 : this._structuralEquals(e, t) ? Q.equals(e.contentNameScopesList, t.contentNameScopesList) : !1;
|
|
1361
1362
|
}
|
|
1362
|
-
static _structuralEquals(
|
|
1363
|
+
static _structuralEquals(e, t) {
|
|
1363
1364
|
do {
|
|
1364
|
-
if (
|
|
1365
|
-
if (!
|
|
1366
|
-
|
|
1365
|
+
if (e === t || !e && !t) return !0;
|
|
1366
|
+
if (!e || !t || e.depth !== t.depth || e.ruleId !== t.ruleId || e.endRule !== t.endRule) return !1;
|
|
1367
|
+
e = e.parent, t = t.parent;
|
|
1367
1368
|
} while (!0);
|
|
1368
1369
|
}
|
|
1369
1370
|
clone() {
|
|
1370
1371
|
return this;
|
|
1371
1372
|
}
|
|
1372
|
-
static _reset(
|
|
1373
|
-
for (;
|
|
1373
|
+
static _reset(e) {
|
|
1374
|
+
for (; e;) e._enterPos = -1, e._anchorPos = -1, e = e.parent;
|
|
1374
1375
|
}
|
|
1375
1376
|
reset() {
|
|
1376
|
-
|
|
1377
|
+
e._reset(this);
|
|
1377
1378
|
}
|
|
1378
1379
|
pop() {
|
|
1379
1380
|
return this.parent;
|
|
@@ -1381,8 +1382,8 @@ var AttributedScopeStack = class l {
|
|
|
1381
1382
|
safePop() {
|
|
1382
1383
|
return this.parent ? this.parent : this;
|
|
1383
1384
|
}
|
|
1384
|
-
push(
|
|
1385
|
-
return new
|
|
1385
|
+
push(t, n, r, i, a, o, s) {
|
|
1386
|
+
return new e(this, t, n, r, i, a, o, s);
|
|
1386
1387
|
}
|
|
1387
1388
|
getEnterPos() {
|
|
1388
1389
|
return this._enterPos;
|
|
@@ -1390,49 +1391,49 @@ var AttributedScopeStack = class l {
|
|
|
1390
1391
|
getAnchorPos() {
|
|
1391
1392
|
return this._anchorPos;
|
|
1392
1393
|
}
|
|
1393
|
-
getRule(
|
|
1394
|
-
return
|
|
1394
|
+
getRule(e) {
|
|
1395
|
+
return e.getRule(this.ruleId);
|
|
1395
1396
|
}
|
|
1396
1397
|
toString() {
|
|
1397
|
-
let
|
|
1398
|
-
return this._writeString(
|
|
1398
|
+
let e = [];
|
|
1399
|
+
return this._writeString(e, 0), "[" + e.join(",") + "]";
|
|
1399
1400
|
}
|
|
1400
|
-
_writeString(
|
|
1401
|
-
return this.parent && (
|
|
1401
|
+
_writeString(e, t) {
|
|
1402
|
+
return this.parent && (t = this.parent._writeString(e, t)), e[t++] = `(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`, t;
|
|
1402
1403
|
}
|
|
1403
|
-
withContentNameScopesList(
|
|
1404
|
-
return this.contentNameScopesList ===
|
|
1404
|
+
withContentNameScopesList(e) {
|
|
1405
|
+
return this.contentNameScopesList === e ? this : this.parent.push(this.ruleId, this._enterPos, this._anchorPos, this.beginRuleCapturedEOL, this.endRule, this.nameScopesList, e);
|
|
1405
1406
|
}
|
|
1406
|
-
withEndRule(
|
|
1407
|
-
return this.endRule ===
|
|
1407
|
+
withEndRule(t) {
|
|
1408
|
+
return this.endRule === t ? this : new e(this.parent, this.ruleId, this._enterPos, this._anchorPos, this.beginRuleCapturedEOL, t, this.nameScopesList, this.contentNameScopesList);
|
|
1408
1409
|
}
|
|
1409
|
-
hasSameRuleAs(
|
|
1410
|
-
let
|
|
1411
|
-
for (;
|
|
1412
|
-
if (
|
|
1413
|
-
|
|
1410
|
+
hasSameRuleAs(e) {
|
|
1411
|
+
let t = this;
|
|
1412
|
+
for (; t && t._enterPos === e._enterPos;) {
|
|
1413
|
+
if (t.ruleId === e.ruleId) return !0;
|
|
1414
|
+
t = t.parent;
|
|
1414
1415
|
}
|
|
1415
1416
|
return !1;
|
|
1416
1417
|
}
|
|
1417
1418
|
toStateStackFrame() {
|
|
1418
1419
|
return {
|
|
1419
|
-
ruleId:
|
|
1420
|
+
ruleId: M(this.ruleId),
|
|
1420
1421
|
beginRuleCapturedEOL: this.beginRuleCapturedEOL,
|
|
1421
1422
|
endRule: this.endRule,
|
|
1422
1423
|
nameScopesList: this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList ?? null) ?? [],
|
|
1423
1424
|
contentNameScopesList: this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList) ?? []
|
|
1424
1425
|
};
|
|
1425
1426
|
}
|
|
1426
|
-
static pushFrame(
|
|
1427
|
-
let
|
|
1428
|
-
return new
|
|
1427
|
+
static pushFrame(t, n) {
|
|
1428
|
+
let r = Q.fromExtension(t?.nameScopesList ?? null, n.nameScopesList);
|
|
1429
|
+
return new e(t, j(n.ruleId), n.enterPos ?? -1, n.anchorPos ?? -1, n.beginRuleCapturedEOL, n.endRule, r, Q.fromExtension(r, n.contentNameScopesList));
|
|
1429
1430
|
}
|
|
1430
|
-
},
|
|
1431
|
+
}, Me = class {
|
|
1431
1432
|
balancedBracketScopes;
|
|
1432
1433
|
unbalancedBracketScopes;
|
|
1433
1434
|
allowAny = !1;
|
|
1434
|
-
constructor(
|
|
1435
|
-
this.balancedBracketScopes =
|
|
1435
|
+
constructor(e, t) {
|
|
1436
|
+
this.balancedBracketScopes = e.flatMap((e) => e === "*" ? (this.allowAny = !0, []) : x(e, X).map((e) => e.matcher)), this.unbalancedBracketScopes = t.flatMap((e) => x(e, X).map((e) => e.matcher));
|
|
1436
1437
|
}
|
|
1437
1438
|
get matchesAlways() {
|
|
1438
1439
|
return this.allowAny && this.unbalancedBracketScopes.length === 0;
|
|
@@ -1440,14 +1441,14 @@ var AttributedScopeStack = class l {
|
|
|
1440
1441
|
get matchesNever() {
|
|
1441
1442
|
return this.balancedBracketScopes.length === 0 && !this.allowAny;
|
|
1442
1443
|
}
|
|
1443
|
-
match(
|
|
1444
|
-
for (let
|
|
1445
|
-
for (let
|
|
1444
|
+
match(e) {
|
|
1445
|
+
for (let t of this.unbalancedBracketScopes) if (t(e)) return !1;
|
|
1446
|
+
for (let t of this.balancedBracketScopes) if (t(e)) return !0;
|
|
1446
1447
|
return this.allowAny;
|
|
1447
1448
|
}
|
|
1448
|
-
},
|
|
1449
|
-
constructor(
|
|
1450
|
-
this.balancedBracketSelectors =
|
|
1449
|
+
}, Ne = class {
|
|
1450
|
+
constructor(e, t, n, r) {
|
|
1451
|
+
this.balancedBracketSelectors = r, this._emitBinaryTokens = e, this._tokenTypeOverrides = n, this._lineText = null, this._tokens = [], this._binaryTokens = [], this._lastTokenEndIndex = 0;
|
|
1451
1452
|
}
|
|
1452
1453
|
_emitBinaryTokens;
|
|
1453
1454
|
_lineText;
|
|
@@ -1455,126 +1456,127 @@ var AttributedScopeStack = class l {
|
|
|
1455
1456
|
_binaryTokens;
|
|
1456
1457
|
_lastTokenEndIndex;
|
|
1457
1458
|
_tokenTypeOverrides;
|
|
1458
|
-
produce(
|
|
1459
|
-
this.produceFromScopes(
|
|
1459
|
+
produce(e, t) {
|
|
1460
|
+
this.produceFromScopes(e.contentNameScopesList, t);
|
|
1460
1461
|
}
|
|
1461
|
-
produceFromScopes(
|
|
1462
|
-
if (this._lastTokenEndIndex >=
|
|
1462
|
+
produceFromScopes(e, t) {
|
|
1463
|
+
if (this._lastTokenEndIndex >= t) return;
|
|
1463
1464
|
if (this._emitBinaryTokens) {
|
|
1464
|
-
let
|
|
1465
|
-
if (this.balancedBracketSelectors?.matchesAlways && (
|
|
1466
|
-
let
|
|
1467
|
-
for (let
|
|
1468
|
-
this.balancedBracketSelectors && (
|
|
1465
|
+
let n = e?.tokenAttributes ?? 0, r = !1;
|
|
1466
|
+
if (this.balancedBracketSelectors?.matchesAlways && (r = !0), this._tokenTypeOverrides.length > 0 || this.balancedBracketSelectors && !this.balancedBracketSelectors.matchesAlways && !this.balancedBracketSelectors.matchesNever) {
|
|
1467
|
+
let t = e?.getScopeNames() ?? [];
|
|
1468
|
+
for (let e of this._tokenTypeOverrides) e.matcher(t) && (n = b.set(n, 0, oe(e.type), null, -1, 0, 0));
|
|
1469
|
+
this.balancedBracketSelectors && (r = this.balancedBracketSelectors.match(t));
|
|
1469
1470
|
}
|
|
1470
|
-
if (
|
|
1471
|
-
this._lastTokenEndIndex =
|
|
1471
|
+
if (r && (n = b.set(n, 0, 8, r, -1, 0, 0)), this._binaryTokens.length > 0 && this._binaryTokens[this._binaryTokens.length - 1] === n) {
|
|
1472
|
+
this._lastTokenEndIndex = t;
|
|
1472
1473
|
return;
|
|
1473
1474
|
}
|
|
1474
|
-
this._binaryTokens.push(this._lastTokenEndIndex), this._binaryTokens.push(
|
|
1475
|
+
this._binaryTokens.push(this._lastTokenEndIndex), this._binaryTokens.push(n), this._lastTokenEndIndex = t;
|
|
1475
1476
|
return;
|
|
1476
1477
|
}
|
|
1477
|
-
let
|
|
1478
|
+
let n = e?.getScopeNames() ?? [];
|
|
1478
1479
|
this._tokens.push({
|
|
1479
1480
|
startIndex: this._lastTokenEndIndex,
|
|
1480
|
-
endIndex:
|
|
1481
|
-
scopes:
|
|
1482
|
-
}), this._lastTokenEndIndex =
|
|
1481
|
+
endIndex: t,
|
|
1482
|
+
scopes: n
|
|
1483
|
+
}), this._lastTokenEndIndex = t;
|
|
1483
1484
|
}
|
|
1484
|
-
getResult(
|
|
1485
|
-
return this._tokens.length > 0 && this._tokens[this._tokens.length - 1].startIndex ===
|
|
1485
|
+
getResult(e, t) {
|
|
1486
|
+
return this._tokens.length > 0 && this._tokens[this._tokens.length - 1].startIndex === t - 1 && this._tokens.pop(), this._tokens.length === 0 && (this._lastTokenEndIndex = -1, this.produce(e, t), this._tokens[this._tokens.length - 1].startIndex = 0), this._tokens;
|
|
1486
1487
|
}
|
|
1487
|
-
getBinaryResult(
|
|
1488
|
-
this._binaryTokens.length > 0 && this._binaryTokens[this._binaryTokens.length - 2] ===
|
|
1489
|
-
let
|
|
1490
|
-
for (let
|
|
1491
|
-
return
|
|
1488
|
+
getBinaryResult(e, t) {
|
|
1489
|
+
this._binaryTokens.length > 0 && this._binaryTokens[this._binaryTokens.length - 2] === t - 1 && (this._binaryTokens.pop(), this._binaryTokens.pop()), this._binaryTokens.length === 0 && (this._lastTokenEndIndex = -1, this.produce(e, t), this._binaryTokens[this._binaryTokens.length - 2] = 0);
|
|
1490
|
+
let n = new Uint32Array(this._binaryTokens.length);
|
|
1491
|
+
for (let e = 0, t = this._binaryTokens.length; e < t; e++) n[e] = this._binaryTokens[e];
|
|
1492
|
+
return n;
|
|
1492
1493
|
}
|
|
1493
|
-
},
|
|
1494
|
-
constructor(
|
|
1495
|
-
this._onigLib =
|
|
1494
|
+
}, Pe = class {
|
|
1495
|
+
constructor(e, t) {
|
|
1496
|
+
this._onigLib = t, this._theme = e;
|
|
1496
1497
|
}
|
|
1497
1498
|
_grammars = /* @__PURE__ */ new Map();
|
|
1498
1499
|
_rawGrammars = /* @__PURE__ */ new Map();
|
|
1499
1500
|
_injectionGrammars = /* @__PURE__ */ new Map();
|
|
1500
1501
|
_theme;
|
|
1501
1502
|
dispose() {
|
|
1502
|
-
for (let
|
|
1503
|
+
for (let e of this._grammars.values()) e.dispose();
|
|
1503
1504
|
}
|
|
1504
|
-
setTheme(
|
|
1505
|
-
this._theme =
|
|
1505
|
+
setTheme(e) {
|
|
1506
|
+
this._theme = e;
|
|
1506
1507
|
}
|
|
1507
1508
|
getColorMap() {
|
|
1508
1509
|
return this._theme.getColorMap();
|
|
1509
1510
|
}
|
|
1510
|
-
addGrammar(
|
|
1511
|
-
this._rawGrammars.set(
|
|
1511
|
+
addGrammar(e, t) {
|
|
1512
|
+
this._rawGrammars.set(e.scopeName, e), t && this._injectionGrammars.set(e.scopeName, t);
|
|
1512
1513
|
}
|
|
1513
|
-
lookup(
|
|
1514
|
-
return this._rawGrammars.get(
|
|
1514
|
+
lookup(e) {
|
|
1515
|
+
return this._rawGrammars.get(e);
|
|
1515
1516
|
}
|
|
1516
|
-
injections(
|
|
1517
|
-
return this._injectionGrammars.get(
|
|
1517
|
+
injections(e) {
|
|
1518
|
+
return this._injectionGrammars.get(e);
|
|
1518
1519
|
}
|
|
1519
1520
|
getDefaults() {
|
|
1520
1521
|
return this._theme.getDefaults();
|
|
1521
1522
|
}
|
|
1522
|
-
themeMatch(
|
|
1523
|
-
return this._theme.match(
|
|
1523
|
+
themeMatch(e) {
|
|
1524
|
+
return this._theme.match(e);
|
|
1524
1525
|
}
|
|
1525
|
-
grammarForScopeName(
|
|
1526
|
-
if (!this._grammars.has(
|
|
1527
|
-
let
|
|
1528
|
-
if (!
|
|
1529
|
-
this._grammars.set(
|
|
1526
|
+
grammarForScopeName(e, t, n, r, i) {
|
|
1527
|
+
if (!this._grammars.has(e)) {
|
|
1528
|
+
let a = this._rawGrammars.get(e);
|
|
1529
|
+
if (!a) return null;
|
|
1530
|
+
this._grammars.set(e, ke(e, a, t, n, r, i, this, this._onigLib));
|
|
1530
1531
|
}
|
|
1531
|
-
return this._grammars.get(
|
|
1532
|
+
return this._grammars.get(e);
|
|
1532
1533
|
}
|
|
1533
|
-
},
|
|
1534
|
+
}, Fe = class {
|
|
1534
1535
|
_options;
|
|
1535
1536
|
_syncRegistry;
|
|
1536
1537
|
_ensureGrammarCache;
|
|
1537
|
-
constructor(
|
|
1538
|
-
this._options =
|
|
1538
|
+
constructor(e) {
|
|
1539
|
+
this._options = e, this._syncRegistry = new Pe(p.createFromRawTheme(e.theme, e.colorMap), e.onigLib), this._ensureGrammarCache = /* @__PURE__ */ new Map();
|
|
1539
1540
|
}
|
|
1540
1541
|
dispose() {
|
|
1541
1542
|
this._syncRegistry.dispose();
|
|
1542
1543
|
}
|
|
1543
|
-
setTheme(
|
|
1544
|
-
this._syncRegistry.setTheme(
|
|
1544
|
+
setTheme(e, t) {
|
|
1545
|
+
this._syncRegistry.setTheme(p.createFromRawTheme(e, t));
|
|
1545
1546
|
}
|
|
1546
1547
|
getColorMap() {
|
|
1547
1548
|
return this._syncRegistry.getColorMap();
|
|
1548
1549
|
}
|
|
1549
|
-
loadGrammarWithEmbeddedLanguages(
|
|
1550
|
-
return this.loadGrammarWithConfiguration(
|
|
1550
|
+
loadGrammarWithEmbeddedLanguages(e, t, n) {
|
|
1551
|
+
return this.loadGrammarWithConfiguration(e, t, { embeddedLanguages: n });
|
|
1551
1552
|
}
|
|
1552
|
-
loadGrammarWithConfiguration(
|
|
1553
|
-
return this._loadGrammar(
|
|
1553
|
+
loadGrammarWithConfiguration(e, t, n) {
|
|
1554
|
+
return this._loadGrammar(e, t, n.embeddedLanguages, n.tokenTypes, new Me(n.balancedBracketSelectors || [], n.unbalancedBracketSelectors || []));
|
|
1554
1555
|
}
|
|
1555
|
-
loadGrammar(
|
|
1556
|
-
return this._loadGrammar(
|
|
1556
|
+
loadGrammar(e) {
|
|
1557
|
+
return this._loadGrammar(e, 0, null, null, null);
|
|
1557
1558
|
}
|
|
1558
|
-
_loadGrammar(
|
|
1559
|
-
let
|
|
1560
|
-
for (;
|
|
1561
|
-
return this._grammarForScopeName(
|
|
1559
|
+
_loadGrammar(e, t, n, r, i) {
|
|
1560
|
+
let a = new de(this._syncRegistry, e);
|
|
1561
|
+
for (; a.Q.length > 0;) a.Q.map((e) => this._loadSingleGrammar(e.scopeName)), a.processQueue();
|
|
1562
|
+
return this._grammarForScopeName(e, t, n, r, i);
|
|
1562
1563
|
}
|
|
1563
|
-
_loadSingleGrammar(
|
|
1564
|
-
this._ensureGrammarCache.has(
|
|
1564
|
+
_loadSingleGrammar(e) {
|
|
1565
|
+
this._ensureGrammarCache.has(e) || (this._doLoadSingleGrammar(e), this._ensureGrammarCache.set(e, !0));
|
|
1565
1566
|
}
|
|
1566
|
-
_doLoadSingleGrammar(
|
|
1567
|
-
let
|
|
1568
|
-
if (
|
|
1569
|
-
let
|
|
1570
|
-
this._syncRegistry.addGrammar(
|
|
1567
|
+
_doLoadSingleGrammar(e) {
|
|
1568
|
+
let t = this._options.loadGrammar(e);
|
|
1569
|
+
if (t) {
|
|
1570
|
+
let n = typeof this._options.getInjections == "function" ? this._options.getInjections(e) : void 0;
|
|
1571
|
+
this._syncRegistry.addGrammar(t, n);
|
|
1571
1572
|
}
|
|
1572
1573
|
}
|
|
1573
|
-
addGrammar(
|
|
1574
|
-
return this._syncRegistry.addGrammar(
|
|
1574
|
+
addGrammar(e, t = [], n = 0, r = null) {
|
|
1575
|
+
return this._syncRegistry.addGrammar(e, t), this._grammarForScopeName(e.scopeName, n, r);
|
|
1575
1576
|
}
|
|
1576
|
-
_grammarForScopeName(
|
|
1577
|
-
return this._syncRegistry.grammarForScopeName(
|
|
1577
|
+
_grammarForScopeName(e, t = 0, n = null, r = null, i = null) {
|
|
1578
|
+
return this._syncRegistry.grammarForScopeName(e, t, n, r, i);
|
|
1578
1579
|
}
|
|
1579
|
-
},
|
|
1580
|
-
|
|
1580
|
+
}, Ie = $.NULL;
|
|
1581
|
+
//#endregion
|
|
1582
|
+
export { b as EncodedTokenMetadata, v as FontStyle, Ie as INITIAL, Fe as Registry, p as Theme };
|