@loopstack/loopstack-studio 0.24.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 +7 -5
- package/dist/api/dashboard.js +4 -2
- package/dist/api/documents.js +4 -2
- package/dist/api/index.js +21 -23
- package/dist/api/processor.js +5 -3
- package/dist/api/secrets.js +4 -2
- package/dist/api/workflows.js +11 -3
- 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 +71 -109
- package/dist/components/loopstack-elements/tool.js +99 -0
- 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 -31
- package/dist/components/ui-widgets/UiWidget.js +34 -55
- package/dist/components/ui-widgets/widgets/AiPromptInput.js +28 -42
- package/dist/components/ui-widgets/widgets/ButtonFullWidth.js +16 -19
- package/dist/components/ui-widgets/widgets/SandboxRun.js +19 -26
- package/dist/components/ui-widgets/widgets/SubmitButton.js +15 -18
- 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 +120 -185
- 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 +32 -0
- package/dist/features/debug/components/WorkflowDebugLegend.js +56 -0
- package/dist/features/debug/components/WorkflowFlowViewer.js +90 -0
- package/dist/features/debug/components/workflow-flow/StateNode.js +82 -0
- package/dist/features/debug/components/workflow-flow/WorkflowGraph.js +41 -0
- package/dist/features/debug/components/workflow-flow/WorkflowTransitionEdge.js +64 -0
- 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 +156 -162
- package/dist/features/documents/DocumentRenderer.js +77 -45
- package/dist/features/documents/components/DocumentItem.js +21 -24
- package/dist/features/documents/components/DocumentList.js +39 -42
- 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 +80 -0
- package/dist/features/documents/renderers/ClaudeMessage.js +74 -91
- package/dist/features/documents/renderers/ConfirmPromptRenderer.js +47 -0
- package/dist/features/documents/renderers/DocumentDebugRenderer.js +26 -30
- package/dist/features/documents/renderers/DocumentFormRenderer.js +80 -72
- 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 -16
- 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 +89 -0
- package/dist/features/documents/renderers/TextPromptRenderer.js +48 -0
- package/dist/features/documents/renderers/useDocumentTransition.js +32 -0
- 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 +135 -184
- 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 -67
- package/dist/features/workbench/WorkflowList.js +50 -82
- package/dist/features/workbench/components/NewRunDialog.js +214 -311
- 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 -90
- package/dist/features/workbench/components/WorkbenchFlowPanel.js +35 -46
- package/dist/features/workbench/components/WorkbenchIconSidebar.js +50 -80
- package/dist/features/workbench/components/WorkbenchPreviewPanel.js +52 -50
- package/dist/features/workbench/components/WorkbenchSecretsPanel.js +143 -172
- package/dist/features/workbench/components/WorkbenchSettingsModal.js +50 -86
- package/dist/features/workbench/components/WorkflowForms.js +17 -22
- package/dist/features/workbench/components/WorkflowHistoryItem.js +96 -143
- package/dist/features/workbench/components/WorkflowHistoryList.js +33 -0
- package/dist/features/workbench/components/buttons/WorkflowButtons.js +70 -97
- 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 +32 -45
- package/dist/features/workbench/hooks/useWorkflowListState.js +13 -49
- package/dist/features/workbench/index.js +7 -8
- package/dist/features/workbench/providers/RemoteFileExplorerProvider.js +123 -138
- package/dist/features/workbench/providers/ScrollProvider.js +16 -20
- 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 +144 -185
- package/dist/features/workspaces/components/NewWorkflowRunDialog.js +23 -0
- package/dist/features/workspaces/components/WorkflowRunForm.js +104 -0
- package/dist/features/workspaces/components/WorkspaceHomePage.js +60 -81
- package/dist/features/workspaces/components/workflow-form/ArgumentsView.js +58 -0
- package/dist/features/workspaces/components/workflow-form/HeaderSection.js +29 -0
- package/dist/features/workspaces/components/workflow-form/SelectionView.js +66 -0
- 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 +39 -78
- 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 +113 -78
- package/dist/hooks/useWorkspaces.js +83 -123
- package/dist/index.d.ts +0 -1305
- 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 +21 -20
- 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 +7 -5
- 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 +44 -42
- package/dist/pages/EmbedWorkbenchPage.js +49 -73
- package/dist/pages/PreviewWorkbenchPage.js +242 -448
- 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 +78 -0
- package/dist/pages/WorkspacePage.js +72 -113
- 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 -30
- package/dist/providers/StudioProvider.js +14 -19
- package/dist/routing/LocalRouter.js +20 -26
- 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/api/namespaces.js +0 -7
- package/dist/api/pipelines.js +0 -13
- package/dist/components/ai-elements/tool.js +0 -158
- package/dist/components/ui-widgets/widgets/SecretInput.js +0 -42
- package/dist/features/debug/components/PipelineDebugHeader.js +0 -48
- package/dist/features/debug/components/PipelineDebugLegend.js +0 -68
- package/dist/features/debug/components/PipelineFlowViewer.js +0 -110
- package/dist/features/debug/components/pipeline-flow/StateNode.js +0 -111
- package/dist/features/debug/components/pipeline-flow/WorkflowGraph.js +0 -41
- package/dist/features/debug/components/pipeline-flow/WorkflowTransitionEdge.js +0 -97
- package/dist/features/workbench/NavigationItems.js +0 -52
- package/dist/features/workbench/WorkbenchNavigation.js +0 -38
- package/dist/features/workbench/components/NavigationItem.js +0 -68
- package/dist/features/workbench/components/PipelineHistoryList.js +0 -56
- package/dist/features/workbench/hooks/useIntersectionObserver.js +0 -44
- package/dist/features/workspaces/components/NewPipelineRunDialog.js +0 -31
- package/dist/features/workspaces/components/PipelineForm.js +0 -152
- package/dist/features/workspaces/components/pipeline-form/ArgumentsView.js +0 -75
- package/dist/features/workspaces/components/pipeline-form/HeaderSection.js +0 -43
- package/dist/features/workspaces/components/pipeline-form/SelectionView.js +0 -105
- package/dist/hooks/useNamespaceTree.js +0 -27
- package/dist/hooks/useNamespaces.js +0 -25
- package/dist/hooks/usePipelines.js +0 -161
- 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
- package/dist/packages/contracts/dist/enums/pipeline-state.js +0 -10
- package/dist/pages/PipelineDebugPage.js +0 -115
|
@@ -1,348 +1,252 @@
|
|
|
1
|
-
import { ShikiError } from "../../types/dist/index.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
return
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
return !a || [
|
|
20
|
-
"plaintext",
|
|
21
|
-
"txt",
|
|
22
|
-
"text",
|
|
23
|
-
"plain"
|
|
24
|
-
].includes(a);
|
|
25
|
-
}
|
|
26
|
-
function isSpecialLang(a) {
|
|
27
|
-
return a === "ansi" || isPlainLang(a);
|
|
28
|
-
}
|
|
29
|
-
function isNoneTheme(a) {
|
|
30
|
-
return a === "none";
|
|
31
|
-
}
|
|
32
|
-
function isSpecialTheme(a) {
|
|
33
|
-
return isNoneTheme(a);
|
|
34
|
-
}
|
|
35
|
-
function addClassToHast(a, P) {
|
|
36
|
-
if (!P) return a;
|
|
37
|
-
a.properties ||= {}, a.properties.class ||= [], typeof a.properties.class == "string" && (a.properties.class = a.properties.class.split(/\s+/g)), Array.isArray(a.properties.class) || (a.properties.class = []);
|
|
38
|
-
let F = Array.isArray(P) ? P : P.split(/\s+/g);
|
|
39
|
-
for (let P of F) P && !a.properties.class.includes(P) && a.properties.class.push(P);
|
|
40
|
-
return a;
|
|
41
|
-
}
|
|
42
|
-
function splitLines(a, P = !1) {
|
|
43
|
-
if (a.length === 0) return [["", 0]];
|
|
44
|
-
let F = a.split(/(\r?\n)/g), I = 0, L = [];
|
|
45
|
-
for (let a = 0; a < F.length; a += 2) {
|
|
46
|
-
let R = P ? F[a] + (F[a + 1] || "") : F[a];
|
|
47
|
-
L.push([R, I]), I += F[a].length, I += F[a + 1]?.length || 0;
|
|
48
|
-
}
|
|
49
|
-
return L;
|
|
50
|
-
}
|
|
51
|
-
function createPositionConverter(a) {
|
|
52
|
-
let P = splitLines(a, !0).map(([a]) => a);
|
|
53
|
-
function F(F) {
|
|
54
|
-
if (F === a.length) return {
|
|
55
|
-
line: P.length - 1,
|
|
56
|
-
character: P[P.length - 1].length
|
|
1
|
+
import { ShikiError as e } from "../../types/dist/index.js";
|
|
2
|
+
import { FontStyle as t } from "../../vscode-textmate/dist/index.js";
|
|
3
|
+
import { applyColorReplacements as n, codeToTokensBase as r, codeToTokensWithThemes as i, createShikiPrimitiveAsync as a, getLastGrammarState as o, getLastGrammarStateFromMap as s, isNoneTheme as c, isPlainLang as l, isSpecialLang as u, isSpecialTheme as d, resolveColorReplacements as f, setLastGrammarStateToMap as p, splitLines as m } from "../../primitive/dist/index.js";
|
|
4
|
+
import { toHtml as h } from "../../../hast-util-to-html/lib/index.js";
|
|
5
|
+
//#region ../../node_modules/@shikijs/core/dist/index.mjs
|
|
6
|
+
function g(e, t) {
|
|
7
|
+
if (!t) return e;
|
|
8
|
+
e.properties ||= {}, e.properties.class ||= [], typeof e.properties.class == "string" && (e.properties.class = e.properties.class.split(/\s+/g)), Array.isArray(e.properties.class) || (e.properties.class = []);
|
|
9
|
+
let n = Array.isArray(t) ? t : t.split(/\s+/g);
|
|
10
|
+
for (let t of n) t && !e.properties.class.includes(t) && e.properties.class.push(t);
|
|
11
|
+
return e;
|
|
12
|
+
}
|
|
13
|
+
function _(e) {
|
|
14
|
+
let t = m(e, !0).map(([e]) => e);
|
|
15
|
+
function n(n) {
|
|
16
|
+
if (n === e.length) return {
|
|
17
|
+
line: t.length - 1,
|
|
18
|
+
character: t[t.length - 1].length
|
|
57
19
|
};
|
|
58
|
-
let
|
|
59
|
-
for (let
|
|
60
|
-
if (
|
|
61
|
-
|
|
20
|
+
let r = n, i = 0;
|
|
21
|
+
for (let e of t) {
|
|
22
|
+
if (r < e.length) break;
|
|
23
|
+
r -= e.length, i++;
|
|
62
24
|
}
|
|
63
25
|
return {
|
|
64
|
-
line:
|
|
65
|
-
character:
|
|
26
|
+
line: i,
|
|
27
|
+
character: r
|
|
66
28
|
};
|
|
67
29
|
}
|
|
68
|
-
function
|
|
69
|
-
let
|
|
70
|
-
for (let
|
|
71
|
-
return
|
|
30
|
+
function r(e, n) {
|
|
31
|
+
let r = 0;
|
|
32
|
+
for (let n = 0; n < e; n++) r += t[n].length;
|
|
33
|
+
return r += n, r;
|
|
72
34
|
}
|
|
73
35
|
return {
|
|
74
|
-
lines:
|
|
75
|
-
indexToPos:
|
|
76
|
-
posToIndex:
|
|
36
|
+
lines: t,
|
|
37
|
+
indexToPos: n,
|
|
38
|
+
posToIndex: r
|
|
77
39
|
};
|
|
78
40
|
}
|
|
79
|
-
function
|
|
80
|
-
let
|
|
81
|
-
for (let
|
|
82
|
-
let
|
|
83
|
-
|
|
84
|
-
}
|
|
85
|
-
for (let
|
|
86
|
-
let
|
|
87
|
-
|
|
88
|
-
}
|
|
89
|
-
for (let
|
|
90
|
-
let
|
|
91
|
-
|
|
92
|
-
}
|
|
93
|
-
for (let
|
|
94
|
-
let
|
|
95
|
-
|
|
96
|
-
}
|
|
97
|
-
if (!
|
|
98
|
-
let
|
|
99
|
-
return Array.from(
|
|
100
|
-
}
|
|
101
|
-
var
|
|
102
|
-
function
|
|
103
|
-
let
|
|
104
|
-
for (let
|
|
105
|
-
...
|
|
106
|
-
content:
|
|
107
|
-
offset:
|
|
108
|
-
}),
|
|
109
|
-
return
|
|
110
|
-
...
|
|
111
|
-
content:
|
|
112
|
-
offset:
|
|
113
|
-
}),
|
|
114
|
-
}
|
|
115
|
-
function
|
|
116
|
-
let
|
|
117
|
-
return
|
|
118
|
-
let
|
|
119
|
-
return
|
|
120
|
-
})) :
|
|
121
|
-
}
|
|
122
|
-
function
|
|
123
|
-
let
|
|
124
|
-
content:
|
|
125
|
-
explanation:
|
|
126
|
-
offset:
|
|
127
|
-
},
|
|
128
|
-
let
|
|
129
|
-
return
|
|
41
|
+
function v(e, t, n) {
|
|
42
|
+
let r = /* @__PURE__ */ new Set();
|
|
43
|
+
for (let t of e.matchAll(/:?lang=["']([^"']+)["']/g)) {
|
|
44
|
+
let e = t[1].toLowerCase().trim();
|
|
45
|
+
e && r.add(e);
|
|
46
|
+
}
|
|
47
|
+
for (let t of e.matchAll(/(?:```|~~~)([\w-]+)/g)) {
|
|
48
|
+
let e = t[1].toLowerCase().trim();
|
|
49
|
+
e && r.add(e);
|
|
50
|
+
}
|
|
51
|
+
for (let t of e.matchAll(/\\begin\{([\w-]+)\}/g)) {
|
|
52
|
+
let e = t[1].toLowerCase().trim();
|
|
53
|
+
e && r.add(e);
|
|
54
|
+
}
|
|
55
|
+
for (let t of e.matchAll(/<script\s+(?:type|lang)=["']([^"']+)["']/gi)) {
|
|
56
|
+
let e = t[1].toLowerCase().trim(), n = e.includes("/") ? e.split("/").pop() : e;
|
|
57
|
+
n && r.add(n);
|
|
58
|
+
}
|
|
59
|
+
if (!n) return Array.from(r);
|
|
60
|
+
let i = n.getBundledLanguages();
|
|
61
|
+
return Array.from(r).filter((e) => e && i[e]);
|
|
62
|
+
}
|
|
63
|
+
var y = "light-dark()", b = ["color", "background-color"];
|
|
64
|
+
function x(e, t) {
|
|
65
|
+
let n = 0, r = [];
|
|
66
|
+
for (let i of t) i > n && r.push({
|
|
67
|
+
...e,
|
|
68
|
+
content: e.content.slice(n, i),
|
|
69
|
+
offset: e.offset + n
|
|
70
|
+
}), n = i;
|
|
71
|
+
return n < e.content.length && r.push({
|
|
72
|
+
...e,
|
|
73
|
+
content: e.content.slice(n),
|
|
74
|
+
offset: e.offset + n
|
|
75
|
+
}), r;
|
|
76
|
+
}
|
|
77
|
+
function S(e, t) {
|
|
78
|
+
let n = Array.from(t instanceof Set ? t : new Set(t)).sort((e, t) => e - t);
|
|
79
|
+
return n.length ? e.map((e) => e.flatMap((e) => {
|
|
80
|
+
let t = n.filter((t) => e.offset < t && t < e.offset + e.content.length).map((t) => t - e.offset).sort((e, t) => e - t);
|
|
81
|
+
return t.length ? x(e, t) : e;
|
|
82
|
+
})) : e;
|
|
83
|
+
}
|
|
84
|
+
function C(t, n, r, i, a = "css-vars") {
|
|
85
|
+
let o = {
|
|
86
|
+
content: t.content,
|
|
87
|
+
explanation: t.explanation,
|
|
88
|
+
offset: t.offset
|
|
89
|
+
}, s = n.map((e) => w(t.variants[e])), c = new Set(s.flatMap((e) => Object.keys(e))), l = {}, u = (e, t) => {
|
|
90
|
+
let i = t === "color" ? "" : t === "background-color" ? "-bg" : `-${t}`;
|
|
91
|
+
return r + n[e] + (t === "color" ? "" : i);
|
|
130
92
|
};
|
|
131
|
-
return
|
|
132
|
-
for (let
|
|
133
|
-
let
|
|
134
|
-
if (
|
|
135
|
-
let
|
|
136
|
-
if (
|
|
137
|
-
|
|
138
|
-
} else
|
|
139
|
-
else
|
|
93
|
+
return s.forEach((t, r) => {
|
|
94
|
+
for (let o of c) {
|
|
95
|
+
let c = t[o] || "inherit";
|
|
96
|
+
if (r === 0 && i && b.includes(o)) if (i === y && s.length > 1) {
|
|
97
|
+
let t = n.findIndex((e) => e === "light"), i = n.findIndex((e) => e === "dark");
|
|
98
|
+
if (t === -1 || i === -1) throw new e("When using `defaultColor: \"light-dark()\"`, you must provide both `light` and `dark` themes");
|
|
99
|
+
l[o] = `light-dark(${s[t][o] || "inherit"}, ${s[i][o] || "inherit"})`, a === "css-vars" && (l[u(r, o)] = c);
|
|
100
|
+
} else l[o] = c;
|
|
101
|
+
else a === "css-vars" && (l[u(r, o)] = c);
|
|
140
102
|
}
|
|
141
|
-
}),
|
|
142
|
-
}
|
|
143
|
-
function
|
|
144
|
-
let
|
|
145
|
-
if (
|
|
146
|
-
|
|
147
|
-
let
|
|
148
|
-
|
|
149
|
-
}
|
|
150
|
-
return
|
|
151
|
-
}
|
|
152
|
-
function
|
|
153
|
-
return typeof
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
_stacks = {};
|
|
164
|
-
lang;
|
|
165
|
-
get themes() {
|
|
166
|
-
return Object.keys(this._stacks);
|
|
167
|
-
}
|
|
168
|
-
get theme() {
|
|
169
|
-
return this.themes[0];
|
|
170
|
-
}
|
|
171
|
-
get _stack() {
|
|
172
|
-
return this._stacks[this.theme];
|
|
173
|
-
}
|
|
174
|
-
static initial(P, F) {
|
|
175
|
-
return new a(Object.fromEntries(toArray(F).map((a) => [a, INITIAL])), P);
|
|
176
|
-
}
|
|
177
|
-
constructor(...a) {
|
|
178
|
-
if (a.length === 2) {
|
|
179
|
-
let [P, F] = a;
|
|
180
|
-
this.lang = F, this._stacks = P;
|
|
181
|
-
} else {
|
|
182
|
-
let [P, F, I] = a;
|
|
183
|
-
this.lang = F, this._stacks = { [I]: P };
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
getInternalStack(a = this.theme) {
|
|
187
|
-
return this._stacks[a];
|
|
188
|
-
}
|
|
189
|
-
getScopes(a = this.theme) {
|
|
190
|
-
return getScopes(this._stacks[a]);
|
|
191
|
-
}
|
|
192
|
-
toJSON() {
|
|
193
|
-
return {
|
|
194
|
-
lang: this.lang,
|
|
195
|
-
theme: this.theme,
|
|
196
|
-
themes: this.themes,
|
|
197
|
-
scopes: this.getScopes()
|
|
198
|
-
};
|
|
199
|
-
}
|
|
200
|
-
};
|
|
201
|
-
function getScopes(a) {
|
|
202
|
-
let P = [], F = /* @__PURE__ */ new Set();
|
|
203
|
-
function I(a) {
|
|
204
|
-
if (F.has(a)) return;
|
|
205
|
-
F.add(a);
|
|
206
|
-
let L = a?.nameScopesList?.scopeName;
|
|
207
|
-
L && P.push(L), a.parent && I(a.parent);
|
|
208
|
-
}
|
|
209
|
-
return I(a), P;
|
|
210
|
-
}
|
|
211
|
-
function getGrammarStack(P, F) {
|
|
212
|
-
if (!(P instanceof GrammarState)) throw new ShikiError("Invalid grammar state");
|
|
213
|
-
return P.getInternalStack(F);
|
|
214
|
-
}
|
|
215
|
-
function transformerDecorations() {
|
|
216
|
-
let P = /* @__PURE__ */ new WeakMap();
|
|
217
|
-
function F(F) {
|
|
218
|
-
if (!P.has(F.meta)) {
|
|
219
|
-
let I = function(P) {
|
|
220
|
-
if (typeof P == "number") {
|
|
221
|
-
if (P < 0 || P > F.source.length) throw new ShikiError(`Invalid decoration offset: ${P}. Code length: ${F.source.length}`);
|
|
103
|
+
}), o.htmlStyle = l, o;
|
|
104
|
+
}
|
|
105
|
+
function w(e) {
|
|
106
|
+
let n = {};
|
|
107
|
+
if (e.color && (n.color = e.color), e.bgColor && (n["background-color"] = e.bgColor), e.fontStyle) {
|
|
108
|
+
e.fontStyle & t.Italic && (n["font-style"] = "italic"), e.fontStyle & t.Bold && (n["font-weight"] = "bold");
|
|
109
|
+
let r = [];
|
|
110
|
+
e.fontStyle & t.Underline && r.push("underline"), e.fontStyle & t.Strikethrough && r.push("line-through"), r.length && (n["text-decoration"] = r.join(" "));
|
|
111
|
+
}
|
|
112
|
+
return n;
|
|
113
|
+
}
|
|
114
|
+
function T(e) {
|
|
115
|
+
return typeof e == "string" ? e : Object.entries(e).map(([e, t]) => `${e}:${t}`).join(";");
|
|
116
|
+
}
|
|
117
|
+
function E() {
|
|
118
|
+
let t = /* @__PURE__ */ new WeakMap();
|
|
119
|
+
function n(n) {
|
|
120
|
+
if (!t.has(n.meta)) {
|
|
121
|
+
let r = _(n.source);
|
|
122
|
+
function i(t) {
|
|
123
|
+
if (typeof t == "number") {
|
|
124
|
+
if (t < 0 || t > n.source.length) throw new e(`Invalid decoration offset: ${t}. Code length: ${n.source.length}`);
|
|
222
125
|
return {
|
|
223
|
-
...
|
|
224
|
-
offset:
|
|
126
|
+
...r.indexToPos(t),
|
|
127
|
+
offset: t
|
|
225
128
|
};
|
|
226
129
|
} else {
|
|
227
|
-
let
|
|
228
|
-
if (
|
|
229
|
-
let
|
|
230
|
-
if (
|
|
130
|
+
let n = r.lines[t.line];
|
|
131
|
+
if (n === void 0) throw new e(`Invalid decoration position ${JSON.stringify(t)}. Lines length: ${r.lines.length}`);
|
|
132
|
+
let i = t.character;
|
|
133
|
+
if (i < 0 && (i = n.length + i), i < 0 || i > n.length) throw new e(`Invalid decoration position ${JSON.stringify(t)}. Line ${t.line} length: ${n.length}`);
|
|
231
134
|
return {
|
|
232
|
-
...
|
|
233
|
-
character:
|
|
234
|
-
offset:
|
|
135
|
+
...t,
|
|
136
|
+
character: i,
|
|
137
|
+
offset: r.posToIndex(t.line, i)
|
|
235
138
|
};
|
|
236
139
|
}
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
140
|
+
}
|
|
141
|
+
let a = (n.options.decorations || []).map((e) => ({
|
|
142
|
+
...e,
|
|
143
|
+
start: i(e.start),
|
|
144
|
+
end: i(e.end)
|
|
241
145
|
}));
|
|
242
|
-
|
|
243
|
-
decorations:
|
|
244
|
-
converter:
|
|
245
|
-
source:
|
|
146
|
+
D(a), t.set(n.meta, {
|
|
147
|
+
decorations: a,
|
|
148
|
+
converter: r,
|
|
149
|
+
source: n.source
|
|
246
150
|
});
|
|
247
151
|
}
|
|
248
|
-
return
|
|
152
|
+
return t.get(n.meta);
|
|
249
153
|
}
|
|
250
154
|
return {
|
|
251
155
|
name: "shiki:decorations",
|
|
252
|
-
tokens(
|
|
253
|
-
if (this.options.decorations?.length) return
|
|
156
|
+
tokens(e) {
|
|
157
|
+
if (this.options.decorations?.length) return S(e, n(this).decorations.flatMap((e) => [e.start.offset, e.end.offset]));
|
|
254
158
|
},
|
|
255
|
-
code(
|
|
159
|
+
code(t) {
|
|
256
160
|
if (!this.options.decorations?.length) return;
|
|
257
|
-
let
|
|
258
|
-
if (
|
|
259
|
-
function
|
|
260
|
-
let
|
|
261
|
-
if (
|
|
262
|
-
if (
|
|
263
|
-
if (
|
|
264
|
-
let
|
|
265
|
-
if (!
|
|
266
|
-
else if (!
|
|
161
|
+
let r = n(this), i = Array.from(t.children).filter((e) => e.type === "element" && e.tagName === "span");
|
|
162
|
+
if (i.length !== r.converter.lines.length) throw new e(`Number of lines in code element (${i.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);
|
|
163
|
+
function a(t, n, r, a) {
|
|
164
|
+
let o = i[t], c = "", l = -1, u = -1;
|
|
165
|
+
if (n === 0 && (l = 0), r === 0 && (u = 0), r === Infinity && (u = o.children.length), l === -1 || u === -1) for (let e = 0; e < o.children.length; e++) c += O(o.children[e]), l === -1 && c.length === n && (l = e + 1), u === -1 && c.length === r && (u = e + 1);
|
|
166
|
+
if (l === -1) throw new e(`Failed to find start index for decoration ${JSON.stringify(a.start)}`);
|
|
167
|
+
if (u === -1) throw new e(`Failed to find end index for decoration ${JSON.stringify(a.end)}`);
|
|
168
|
+
let d = o.children.slice(l, u);
|
|
169
|
+
if (!a.alwaysWrap && d.length === o.children.length) s(o, a, "line");
|
|
170
|
+
else if (!a.alwaysWrap && d.length === 1 && d[0].type === "element") s(d[0], a, "token");
|
|
267
171
|
else {
|
|
268
|
-
let
|
|
172
|
+
let e = {
|
|
269
173
|
type: "element",
|
|
270
174
|
tagName: "span",
|
|
271
175
|
properties: {},
|
|
272
|
-
children:
|
|
176
|
+
children: d
|
|
273
177
|
};
|
|
274
|
-
|
|
178
|
+
s(e, a, "wrapper"), o.children.splice(l, d.length, e);
|
|
275
179
|
}
|
|
276
180
|
}
|
|
277
|
-
function
|
|
278
|
-
|
|
181
|
+
function o(e, t) {
|
|
182
|
+
i[e] = s(i[e], t, "line");
|
|
279
183
|
}
|
|
280
|
-
function
|
|
281
|
-
let
|
|
282
|
-
return
|
|
283
|
-
...
|
|
284
|
-
...
|
|
285
|
-
class:
|
|
286
|
-
},
|
|
184
|
+
function s(e, t, n) {
|
|
185
|
+
let r = t.properties || {}, i = t.transform || ((e) => e);
|
|
186
|
+
return e.tagName = t.tagName || "span", e.properties = {
|
|
187
|
+
...e.properties,
|
|
188
|
+
...r,
|
|
189
|
+
class: e.properties.class
|
|
190
|
+
}, t.properties?.class && g(e, t.properties.class), e = i(e, n) || e, e;
|
|
287
191
|
}
|
|
288
|
-
let
|
|
289
|
-
for (let
|
|
290
|
-
let { start:
|
|
291
|
-
if (
|
|
292
|
-
else if (
|
|
293
|
-
|
|
294
|
-
for (let
|
|
295
|
-
|
|
192
|
+
let c = [], l = r.decorations.sort((e, t) => t.start.offset - e.start.offset || e.end.offset - t.end.offset);
|
|
193
|
+
for (let e of l) {
|
|
194
|
+
let { start: t, end: n } = e;
|
|
195
|
+
if (t.line === n.line) a(t.line, t.character, n.character, e);
|
|
196
|
+
else if (t.line < n.line) {
|
|
197
|
+
a(t.line, t.character, Infinity, e);
|
|
198
|
+
for (let r = t.line + 1; r < n.line; r++) c.unshift(() => o(r, e));
|
|
199
|
+
a(n.line, 0, n.character, e);
|
|
296
200
|
}
|
|
297
201
|
}
|
|
298
|
-
|
|
202
|
+
c.forEach((e) => e());
|
|
299
203
|
}
|
|
300
204
|
};
|
|
301
205
|
}
|
|
302
|
-
function
|
|
303
|
-
for (let
|
|
304
|
-
let
|
|
305
|
-
if (
|
|
306
|
-
for (let
|
|
307
|
-
let
|
|
308
|
-
if (
|
|
309
|
-
if (
|
|
310
|
-
throw new
|
|
206
|
+
function D(t) {
|
|
207
|
+
for (let n = 0; n < t.length; n++) {
|
|
208
|
+
let r = t[n];
|
|
209
|
+
if (r.start.offset > r.end.offset) throw new e(`Invalid decoration range: ${JSON.stringify(r.start)} - ${JSON.stringify(r.end)}`);
|
|
210
|
+
for (let i = n + 1; i < t.length; i++) {
|
|
211
|
+
let n = t[i], a = r.start.offset <= n.start.offset && n.start.offset < r.end.offset, o = r.start.offset < n.end.offset && n.end.offset <= r.end.offset, s = n.start.offset <= r.start.offset && r.start.offset < n.end.offset, c = n.start.offset < r.end.offset && r.end.offset <= n.end.offset;
|
|
212
|
+
if (a || o || s || c) {
|
|
213
|
+
if (a && o || s && c || s && r.start.offset === r.end.offset || o && n.start.offset === n.end.offset) continue;
|
|
214
|
+
throw new e(`Decorations ${JSON.stringify(r.start)} and ${JSON.stringify(n.start)} intersect.`);
|
|
311
215
|
}
|
|
312
216
|
}
|
|
313
217
|
}
|
|
314
218
|
}
|
|
315
|
-
function
|
|
316
|
-
return
|
|
219
|
+
function O(e) {
|
|
220
|
+
return e.type === "text" ? e.value : e.type === "element" ? e.children.map(O).join("") : "";
|
|
317
221
|
}
|
|
318
|
-
var
|
|
319
|
-
function
|
|
320
|
-
let
|
|
222
|
+
var k = [/* @__PURE__ */ E()];
|
|
223
|
+
function A(e) {
|
|
224
|
+
let t = j(e.transformers || []);
|
|
321
225
|
return [
|
|
322
|
-
...
|
|
323
|
-
...
|
|
324
|
-
...
|
|
325
|
-
...
|
|
226
|
+
...t.pre,
|
|
227
|
+
...t.normal,
|
|
228
|
+
...t.post,
|
|
229
|
+
...k
|
|
326
230
|
];
|
|
327
231
|
}
|
|
328
|
-
function
|
|
329
|
-
let
|
|
330
|
-
for (let
|
|
232
|
+
function j(e) {
|
|
233
|
+
let t = [], n = [], r = [];
|
|
234
|
+
for (let i of e) switch (i.enforce) {
|
|
331
235
|
case "pre":
|
|
332
|
-
|
|
236
|
+
t.push(i);
|
|
333
237
|
break;
|
|
334
238
|
case "post":
|
|
335
|
-
|
|
239
|
+
n.push(i);
|
|
336
240
|
break;
|
|
337
|
-
default:
|
|
241
|
+
default: r.push(i);
|
|
338
242
|
}
|
|
339
243
|
return {
|
|
340
|
-
pre:
|
|
341
|
-
post:
|
|
342
|
-
normal:
|
|
244
|
+
pre: t,
|
|
245
|
+
post: n,
|
|
246
|
+
normal: r
|
|
343
247
|
};
|
|
344
248
|
}
|
|
345
|
-
var
|
|
249
|
+
var M = [
|
|
346
250
|
"black",
|
|
347
251
|
"red",
|
|
348
252
|
"green",
|
|
@@ -359,7 +263,7 @@ var namedColors = [
|
|
|
359
263
|
"brightMagenta",
|
|
360
264
|
"brightCyan",
|
|
361
265
|
"brightWhite"
|
|
362
|
-
],
|
|
266
|
+
], N = {
|
|
363
267
|
1: "bold",
|
|
364
268
|
2: "dim",
|
|
365
269
|
3: "italic",
|
|
@@ -368,125 +272,125 @@ var namedColors = [
|
|
|
368
272
|
8: "hidden",
|
|
369
273
|
9: "strikethrough"
|
|
370
274
|
};
|
|
371
|
-
function
|
|
372
|
-
let
|
|
373
|
-
if (
|
|
374
|
-
let
|
|
375
|
-
if (
|
|
376
|
-
sequence:
|
|
377
|
-
startPosition:
|
|
378
|
-
position:
|
|
275
|
+
function P(e, t) {
|
|
276
|
+
let n = e.indexOf("\x1B", t);
|
|
277
|
+
if (n !== -1 && e[n + 1] === "[") {
|
|
278
|
+
let t = e.indexOf("m", n);
|
|
279
|
+
if (t !== -1) return {
|
|
280
|
+
sequence: e.substring(n + 2, t).split(";"),
|
|
281
|
+
startPosition: n,
|
|
282
|
+
position: t + 1
|
|
379
283
|
};
|
|
380
284
|
}
|
|
381
|
-
return { position:
|
|
285
|
+
return { position: e.length };
|
|
382
286
|
}
|
|
383
|
-
function
|
|
384
|
-
let
|
|
385
|
-
if (
|
|
386
|
-
let
|
|
387
|
-
return
|
|
287
|
+
function F(e) {
|
|
288
|
+
let t = e.shift();
|
|
289
|
+
if (t === "2") {
|
|
290
|
+
let t = e.splice(0, 3).map((e) => Number.parseInt(e));
|
|
291
|
+
return t.length !== 3 || t.some((e) => Number.isNaN(e)) ? void 0 : {
|
|
388
292
|
type: "rgb",
|
|
389
|
-
rgb:
|
|
293
|
+
rgb: t
|
|
390
294
|
};
|
|
391
|
-
} else if (
|
|
392
|
-
let
|
|
393
|
-
if (
|
|
295
|
+
} else if (t === "5") {
|
|
296
|
+
let t = e.shift();
|
|
297
|
+
if (t) return {
|
|
394
298
|
type: "table",
|
|
395
|
-
index: Number(
|
|
299
|
+
index: Number(t)
|
|
396
300
|
};
|
|
397
301
|
}
|
|
398
302
|
}
|
|
399
|
-
function
|
|
400
|
-
let
|
|
401
|
-
for (;
|
|
402
|
-
let
|
|
403
|
-
if (!
|
|
404
|
-
let
|
|
405
|
-
if (!Number.isNaN(
|
|
406
|
-
else if (
|
|
303
|
+
function I(e) {
|
|
304
|
+
let t = [];
|
|
305
|
+
for (; e.length > 0;) {
|
|
306
|
+
let n = e.shift();
|
|
307
|
+
if (!n) continue;
|
|
308
|
+
let r = Number.parseInt(n);
|
|
309
|
+
if (!Number.isNaN(r)) if (r === 0) t.push({ type: "resetAll" });
|
|
310
|
+
else if (r <= 9) N[r] && t.push({
|
|
407
311
|
type: "setDecoration",
|
|
408
|
-
value:
|
|
312
|
+
value: N[r]
|
|
409
313
|
});
|
|
410
|
-
else if (
|
|
411
|
-
let
|
|
412
|
-
|
|
314
|
+
else if (r <= 29) {
|
|
315
|
+
let e = N[r - 20];
|
|
316
|
+
e && (t.push({
|
|
413
317
|
type: "resetDecoration",
|
|
414
|
-
value:
|
|
415
|
-
}),
|
|
318
|
+
value: e
|
|
319
|
+
}), e === "dim" && t.push({
|
|
416
320
|
type: "resetDecoration",
|
|
417
321
|
value: "bold"
|
|
418
322
|
}));
|
|
419
|
-
} else if (
|
|
323
|
+
} else if (r <= 37) t.push({
|
|
420
324
|
type: "setForegroundColor",
|
|
421
325
|
value: {
|
|
422
326
|
type: "named",
|
|
423
|
-
name:
|
|
327
|
+
name: M[r - 30]
|
|
424
328
|
}
|
|
425
329
|
});
|
|
426
|
-
else if (
|
|
427
|
-
let
|
|
428
|
-
|
|
330
|
+
else if (r === 38) {
|
|
331
|
+
let n = F(e);
|
|
332
|
+
n && t.push({
|
|
429
333
|
type: "setForegroundColor",
|
|
430
|
-
value:
|
|
334
|
+
value: n
|
|
431
335
|
});
|
|
432
|
-
} else if (
|
|
433
|
-
else if (
|
|
336
|
+
} else if (r === 39) t.push({ type: "resetForegroundColor" });
|
|
337
|
+
else if (r <= 47) t.push({
|
|
434
338
|
type: "setBackgroundColor",
|
|
435
339
|
value: {
|
|
436
340
|
type: "named",
|
|
437
|
-
name:
|
|
341
|
+
name: M[r - 40]
|
|
438
342
|
}
|
|
439
343
|
});
|
|
440
|
-
else if (
|
|
441
|
-
let
|
|
442
|
-
|
|
344
|
+
else if (r === 48) {
|
|
345
|
+
let n = F(e);
|
|
346
|
+
n && t.push({
|
|
443
347
|
type: "setBackgroundColor",
|
|
444
|
-
value:
|
|
348
|
+
value: n
|
|
445
349
|
});
|
|
446
|
-
} else
|
|
350
|
+
} else r === 49 ? t.push({ type: "resetBackgroundColor" }) : r === 53 ? t.push({
|
|
447
351
|
type: "setDecoration",
|
|
448
352
|
value: "overline"
|
|
449
|
-
}) :
|
|
353
|
+
}) : r === 55 ? t.push({
|
|
450
354
|
type: "resetDecoration",
|
|
451
355
|
value: "overline"
|
|
452
|
-
}) :
|
|
356
|
+
}) : r >= 90 && r <= 97 ? t.push({
|
|
453
357
|
type: "setForegroundColor",
|
|
454
358
|
value: {
|
|
455
359
|
type: "named",
|
|
456
|
-
name:
|
|
360
|
+
name: M[r - 90 + 8]
|
|
457
361
|
}
|
|
458
|
-
}) :
|
|
362
|
+
}) : r >= 100 && r <= 107 && t.push({
|
|
459
363
|
type: "setBackgroundColor",
|
|
460
364
|
value: {
|
|
461
365
|
type: "named",
|
|
462
|
-
name:
|
|
366
|
+
name: M[r - 100 + 8]
|
|
463
367
|
}
|
|
464
368
|
});
|
|
465
369
|
}
|
|
466
|
-
return
|
|
370
|
+
return t;
|
|
467
371
|
}
|
|
468
|
-
function
|
|
469
|
-
let
|
|
470
|
-
return { parse(
|
|
471
|
-
let
|
|
372
|
+
function L() {
|
|
373
|
+
let e = null, t = null, n = /* @__PURE__ */ new Set();
|
|
374
|
+
return { parse(r) {
|
|
375
|
+
let i = [], a = 0;
|
|
472
376
|
do {
|
|
473
|
-
let
|
|
474
|
-
if (
|
|
475
|
-
value:
|
|
476
|
-
foreground:
|
|
477
|
-
background:
|
|
478
|
-
decorations: new Set(
|
|
479
|
-
}),
|
|
480
|
-
let
|
|
481
|
-
for (let
|
|
482
|
-
for (let
|
|
377
|
+
let o = P(r, a), s = o.sequence ? r.substring(a, o.startPosition) : r.substring(a);
|
|
378
|
+
if (s.length > 0 && i.push({
|
|
379
|
+
value: s,
|
|
380
|
+
foreground: e,
|
|
381
|
+
background: t,
|
|
382
|
+
decorations: new Set(n)
|
|
383
|
+
}), o.sequence) {
|
|
384
|
+
let r = I(o.sequence);
|
|
385
|
+
for (let i of r) i.type === "resetAll" ? (e = null, t = null, n.clear()) : i.type === "resetForegroundColor" ? e = null : i.type === "resetBackgroundColor" ? t = null : i.type === "resetDecoration" && n.delete(i.value);
|
|
386
|
+
for (let i of r) i.type === "setForegroundColor" ? e = i.value : i.type === "setBackgroundColor" ? t = i.value : i.type === "setDecoration" && n.add(i.value);
|
|
483
387
|
}
|
|
484
|
-
|
|
485
|
-
} while (
|
|
486
|
-
return
|
|
388
|
+
a = o.position;
|
|
389
|
+
} while (a < r.length);
|
|
390
|
+
return i;
|
|
487
391
|
} };
|
|
488
392
|
}
|
|
489
|
-
var
|
|
393
|
+
var R = {
|
|
490
394
|
black: "#000000",
|
|
491
395
|
red: "#bb0000",
|
|
492
396
|
green: "#00bb00",
|
|
@@ -504,19 +408,19 @@ var defaultNamedColorsMap = {
|
|
|
504
408
|
brightCyan: "#55ffff",
|
|
505
409
|
brightWhite: "#ffffff"
|
|
506
410
|
};
|
|
507
|
-
function
|
|
508
|
-
function
|
|
509
|
-
return
|
|
510
|
-
}
|
|
511
|
-
function
|
|
512
|
-
return `#${
|
|
513
|
-
}
|
|
514
|
-
let
|
|
515
|
-
function
|
|
516
|
-
if (
|
|
517
|
-
|
|
518
|
-
for (let
|
|
519
|
-
let
|
|
411
|
+
function z(e = R) {
|
|
412
|
+
function t(t) {
|
|
413
|
+
return e[t];
|
|
414
|
+
}
|
|
415
|
+
function n(e) {
|
|
416
|
+
return `#${e.map((e) => Math.max(0, Math.min(e, 255)).toString(16).padStart(2, "0")).join("")}`;
|
|
417
|
+
}
|
|
418
|
+
let r;
|
|
419
|
+
function i() {
|
|
420
|
+
if (r) return r;
|
|
421
|
+
r = [];
|
|
422
|
+
for (let e = 0; e < M.length; e++) r.push(t(M[e]));
|
|
423
|
+
let e = [
|
|
520
424
|
0,
|
|
521
425
|
95,
|
|
522
426
|
135,
|
|
@@ -524,32 +428,32 @@ function createColorPalette(a = defaultNamedColorsMap) {
|
|
|
524
428
|
215,
|
|
525
429
|
255
|
|
526
430
|
];
|
|
527
|
-
for (let
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
a
|
|
431
|
+
for (let t = 0; t < 6; t++) for (let i = 0; i < 6; i++) for (let a = 0; a < 6; a++) r.push(n([
|
|
432
|
+
e[t],
|
|
433
|
+
e[i],
|
|
434
|
+
e[a]
|
|
531
435
|
]));
|
|
532
|
-
let
|
|
533
|
-
for (let
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
436
|
+
let i = 8;
|
|
437
|
+
for (let e = 0; e < 24; e++, i += 10) r.push(n([
|
|
438
|
+
i,
|
|
439
|
+
i,
|
|
440
|
+
i
|
|
537
441
|
]));
|
|
538
|
-
return
|
|
442
|
+
return r;
|
|
539
443
|
}
|
|
540
|
-
function
|
|
541
|
-
return
|
|
444
|
+
function a(e) {
|
|
445
|
+
return i()[e];
|
|
542
446
|
}
|
|
543
|
-
function
|
|
544
|
-
switch (
|
|
545
|
-
case "named": return
|
|
546
|
-
case "rgb": return
|
|
547
|
-
case "table": return
|
|
447
|
+
function o(e) {
|
|
448
|
+
switch (e.type) {
|
|
449
|
+
case "named": return t(e.name);
|
|
450
|
+
case "rgb": return n(e.rgb);
|
|
451
|
+
case "table": return a(e.index);
|
|
548
452
|
}
|
|
549
453
|
}
|
|
550
|
-
return { value:
|
|
454
|
+
return { value: o };
|
|
551
455
|
}
|
|
552
|
-
var
|
|
456
|
+
var B = {
|
|
553
457
|
black: "#000000",
|
|
554
458
|
red: "#cd3131",
|
|
555
459
|
green: "#0DBC79",
|
|
@@ -567,854 +471,414 @@ var defaultAnsiColors = {
|
|
|
567
471
|
brightCyan: "#29B8DB",
|
|
568
472
|
brightWhite: "#FFFFFF"
|
|
569
473
|
};
|
|
570
|
-
function
|
|
571
|
-
let
|
|
572
|
-
let
|
|
573
|
-
return [
|
|
574
|
-
}))),
|
|
575
|
-
return
|
|
576
|
-
let
|
|
577
|
-
|
|
578
|
-
let
|
|
579
|
-
return
|
|
580
|
-
content:
|
|
581
|
-
offset:
|
|
582
|
-
color:
|
|
583
|
-
bgColor:
|
|
584
|
-
fontStyle:
|
|
474
|
+
function V(e, r, i) {
|
|
475
|
+
let a = f(e, i), o = m(r), s = z(Object.fromEntries(M.map((t) => {
|
|
476
|
+
let n = `terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`;
|
|
477
|
+
return [t, e.colors?.[n] || B[t]];
|
|
478
|
+
}))), c = L();
|
|
479
|
+
return o.map((r) => c.parse(r[0]).map((i) => {
|
|
480
|
+
let o, c;
|
|
481
|
+
i.decorations.has("reverse") ? (o = i.background ? s.value(i.background) : e.bg, c = i.foreground ? s.value(i.foreground) : e.fg) : (o = i.foreground ? s.value(i.foreground) : e.fg, c = i.background ? s.value(i.background) : void 0), o = n(o, a), c = n(c, a), i.decorations.has("dim") && (o = H(o));
|
|
482
|
+
let l = t.None;
|
|
483
|
+
return i.decorations.has("bold") && (l |= t.Bold), i.decorations.has("italic") && (l |= t.Italic), i.decorations.has("underline") && (l |= t.Underline), i.decorations.has("strikethrough") && (l |= t.Strikethrough), {
|
|
484
|
+
content: i.value,
|
|
485
|
+
offset: r[1],
|
|
486
|
+
color: o,
|
|
487
|
+
bgColor: c,
|
|
488
|
+
fontStyle: l
|
|
585
489
|
};
|
|
586
490
|
}));
|
|
587
491
|
}
|
|
588
|
-
function
|
|
589
|
-
let
|
|
590
|
-
if (
|
|
591
|
-
let
|
|
592
|
-
if (
|
|
593
|
-
let
|
|
594
|
-
return `#${
|
|
595
|
-
} else if (
|
|
596
|
-
else if (
|
|
597
|
-
let
|
|
598
|
-
return `#${
|
|
599
|
-
} else if (
|
|
600
|
-
let
|
|
601
|
-
return `#${
|
|
492
|
+
function H(e) {
|
|
493
|
+
let t = e.match(/#([0-9a-f]{3,8})/i);
|
|
494
|
+
if (t) {
|
|
495
|
+
let e = t[1];
|
|
496
|
+
if (e.length === 8) {
|
|
497
|
+
let t = Math.round(Number.parseInt(e.slice(6, 8), 16) / 2).toString(16).padStart(2, "0");
|
|
498
|
+
return `#${e.slice(0, 6)}${t}`;
|
|
499
|
+
} else if (e.length === 6) return `#${e}80`;
|
|
500
|
+
else if (e.length === 4) {
|
|
501
|
+
let t = e[0], n = e[1], r = e[2], i = e[3];
|
|
502
|
+
return `#${t}${t}${n}${n}${r}${r}${Math.round(Number.parseInt(`${i}${i}`, 16) / 2).toString(16).padStart(2, "0")}`;
|
|
503
|
+
} else if (e.length === 3) {
|
|
504
|
+
let t = e[0], n = e[1], r = e[2];
|
|
505
|
+
return `#${t}${t}${n}${n}${r}${r}80`;
|
|
602
506
|
}
|
|
603
507
|
}
|
|
604
|
-
let
|
|
605
|
-
return
|
|
606
|
-
}
|
|
607
|
-
function
|
|
608
|
-
let { theme:
|
|
609
|
-
if (
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
}
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
}
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
}
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
let H = resolveColorReplacements(L, z), { tokenizeMaxLineLength: U = 0, tokenizeTimeLimit: W = 500 } = z, G = splitLines(a), K = z.grammarState ? getGrammarStack(z.grammarState, L.name) ?? INITIAL : z.grammarContextCode == null ? INITIAL : _tokenizeWithTheme(z.grammarContextCode, F, L, R, {
|
|
636
|
-
...z,
|
|
637
|
-
grammarState: void 0,
|
|
638
|
-
grammarContextCode: void 0
|
|
639
|
-
}).stateStack, q = [], J = [];
|
|
640
|
-
for (let a = 0, I = G.length; a < I; a++) {
|
|
641
|
-
let [I, B] = G[a];
|
|
642
|
-
if (I === "") {
|
|
643
|
-
q = [], J.push([]);
|
|
644
|
-
continue;
|
|
645
|
-
}
|
|
646
|
-
if (U > 0 && I.length >= U) {
|
|
647
|
-
q = [], J.push([{
|
|
648
|
-
content: I,
|
|
649
|
-
offset: B,
|
|
650
|
-
color: "",
|
|
651
|
-
fontStyle: 0
|
|
652
|
-
}]);
|
|
653
|
-
continue;
|
|
654
|
-
}
|
|
655
|
-
let Y, X, Z;
|
|
656
|
-
z.includeExplanation && (Y = F.tokenizeLine(I, K, W), X = Y.tokens, Z = 0);
|
|
657
|
-
let Q = F.tokenizeLine2(I, K, W), $ = Q.tokens.length / 2;
|
|
658
|
-
for (let a = 0; a < $; a++) {
|
|
659
|
-
let F = Q.tokens[2 * a], U = a + 1 < $ ? Q.tokens[2 * a + 2] : I.length;
|
|
660
|
-
if (F === U) continue;
|
|
661
|
-
let W = Q.tokens[2 * a + 1], G = applyColorReplacements(R[EncodedTokenMetadata.getForeground(W)], H), K = EncodedTokenMetadata.getFontStyle(W), J = {
|
|
662
|
-
content: I.substring(F, U),
|
|
663
|
-
offset: B + F,
|
|
664
|
-
color: G,
|
|
665
|
-
fontStyle: K
|
|
666
|
-
};
|
|
667
|
-
if (z.includeExplanation) {
|
|
668
|
-
let a = [];
|
|
669
|
-
if (z.includeExplanation !== "scopeName") for (let P of L.settings) {
|
|
670
|
-
let F;
|
|
671
|
-
switch (typeof P.scope) {
|
|
672
|
-
case "string":
|
|
673
|
-
F = P.scope.split(/,/).map((a) => a.trim());
|
|
674
|
-
break;
|
|
675
|
-
case "object":
|
|
676
|
-
F = P.scope;
|
|
677
|
-
break;
|
|
678
|
-
default: continue;
|
|
679
|
-
}
|
|
680
|
-
a.push({
|
|
681
|
-
settings: P,
|
|
682
|
-
selectors: F.map((a) => a.split(/ /))
|
|
683
|
-
});
|
|
684
|
-
}
|
|
685
|
-
J.explanation = [];
|
|
686
|
-
let P = 0;
|
|
687
|
-
for (; F + P < U;) {
|
|
688
|
-
let F = X[Z], L = I.substring(F.startIndex, F.endIndex);
|
|
689
|
-
P += L.length, J.explanation.push({
|
|
690
|
-
content: L,
|
|
691
|
-
scopes: z.includeExplanation === "scopeName" ? explainThemeScopesNameOnly(F.scopes) : explainThemeScopesFull(a, F.scopes)
|
|
692
|
-
}), Z += 1;
|
|
693
|
-
}
|
|
694
|
-
}
|
|
695
|
-
q.push(J);
|
|
696
|
-
}
|
|
697
|
-
J.push(q), q = [], K = Q.ruleStack;
|
|
698
|
-
}
|
|
508
|
+
let n = e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);
|
|
509
|
+
return n ? `var(${n[1]}-dim)` : e;
|
|
510
|
+
}
|
|
511
|
+
function U(e, t, n = {}) {
|
|
512
|
+
let i = e.resolveLangAlias(n.lang || "text"), { theme: a = e.getLoadedThemes()[0] } = n;
|
|
513
|
+
if (!l(i) && !c(a) && i === "ansi") {
|
|
514
|
+
let { theme: r } = e.setTheme(a);
|
|
515
|
+
return V(r, t, n);
|
|
516
|
+
}
|
|
517
|
+
return r(e, t, n);
|
|
518
|
+
}
|
|
519
|
+
function W(t, r, a) {
|
|
520
|
+
let o, c, l, u, d, m;
|
|
521
|
+
if ("themes" in a) {
|
|
522
|
+
let { defaultColor: n = "light", cssVariablePrefix: h = "--shiki-", colorsRendering: g = "css-vars" } = a, _ = Object.entries(a.themes).filter((e) => e[1]).map((e) => ({
|
|
523
|
+
color: e[0],
|
|
524
|
+
theme: e[1]
|
|
525
|
+
})).sort((e, t) => e.color === n ? -1 : +(t.color === n));
|
|
526
|
+
if (_.length === 0) throw new e("`themes` option must not be empty");
|
|
527
|
+
let v = i(t, r, a, U);
|
|
528
|
+
if (m = s(v), n && y !== n && !_.find((e) => e.color === n)) throw new e(`\`themes\` option must contain the defaultColor key \`${n}\``);
|
|
529
|
+
let b = _.map((e) => t.getTheme(e.theme)), x = _.map((e) => e.color);
|
|
530
|
+
l = v.map((e) => e.map((e) => C(e, x, h, n, g))), m && p(l, m);
|
|
531
|
+
let S = _.map((e) => f(e.theme, a));
|
|
532
|
+
c = G(_, b, S, h, n, "fg", g), o = G(_, b, S, h, n, "bg", g), u = `shiki-themes ${b.map((e) => e.name).join(" ")}`, d = n ? void 0 : [c, o].join(";");
|
|
533
|
+
} else if ("theme" in a) {
|
|
534
|
+
let e = f(a.theme, a);
|
|
535
|
+
l = U(t, r, a);
|
|
536
|
+
let i = t.getTheme(a.theme);
|
|
537
|
+
o = n(i.bg, e), c = n(i.fg, e), u = i.name, m = s(l);
|
|
538
|
+
} else throw new e("Invalid options, either `theme` or `themes` must be provided");
|
|
699
539
|
return {
|
|
700
|
-
tokens:
|
|
701
|
-
|
|
540
|
+
tokens: l,
|
|
541
|
+
fg: c,
|
|
542
|
+
bg: o,
|
|
543
|
+
themeName: u,
|
|
544
|
+
rootStyle: d,
|
|
545
|
+
grammarState: m
|
|
702
546
|
};
|
|
703
547
|
}
|
|
704
|
-
function
|
|
705
|
-
return
|
|
706
|
-
}
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
scopeName: L,
|
|
713
|
-
themeMatches: explainThemeScope(a, L, P.slice(0, I))
|
|
714
|
-
};
|
|
715
|
-
}
|
|
716
|
-
return F;
|
|
717
|
-
}
|
|
718
|
-
function matchesOne(a, P) {
|
|
719
|
-
return a === P || P.substring(0, a.length) === a && P[a.length] === ".";
|
|
720
|
-
}
|
|
721
|
-
function matches(a, P, F) {
|
|
722
|
-
if (!matchesOne(a[a.length - 1], P)) return !1;
|
|
723
|
-
let I = a.length - 2, L = F.length - 1;
|
|
724
|
-
for (; I >= 0 && L >= 0;) matchesOne(a[I], F[L]) && --I, --L;
|
|
725
|
-
return I === -1;
|
|
726
|
-
}
|
|
727
|
-
function explainThemeScope(a, P, F) {
|
|
728
|
-
let I = [];
|
|
729
|
-
for (let { selectors: L, settings: R } of a) for (let a of L) if (matches(a, P, F)) {
|
|
730
|
-
I.push(R);
|
|
731
|
-
break;
|
|
732
|
-
}
|
|
733
|
-
return I;
|
|
734
|
-
}
|
|
735
|
-
function codeToTokensWithThemes(a, P, F) {
|
|
736
|
-
let I = Object.entries(F.themes).filter((a) => a[1]).map((a) => ({
|
|
737
|
-
color: a[0],
|
|
738
|
-
theme: a[1]
|
|
739
|
-
})), L = I.map((I) => {
|
|
740
|
-
let L = codeToTokensBase(a, P, {
|
|
741
|
-
...F,
|
|
742
|
-
theme: I.theme
|
|
743
|
-
});
|
|
744
|
-
return {
|
|
745
|
-
tokens: L,
|
|
746
|
-
state: getLastGrammarStateFromMap(L),
|
|
747
|
-
theme: typeof I.theme == "string" ? I.theme : I.theme.name
|
|
748
|
-
};
|
|
749
|
-
}), R = syncThemesTokenization(...L.map((a) => a.tokens)), z = R[0].map((a, P) => a.map((a, L) => {
|
|
750
|
-
let z = {
|
|
751
|
-
content: a.content,
|
|
752
|
-
variants: {},
|
|
753
|
-
offset: a.offset
|
|
754
|
-
};
|
|
755
|
-
return "includeExplanation" in F && F.includeExplanation && (z.explanation = a.explanation), R.forEach((a, F) => {
|
|
756
|
-
let { content: R, explanation: B, offset: V, ...H } = a[P][L];
|
|
757
|
-
z.variants[I[F].color] = H;
|
|
758
|
-
}), z;
|
|
759
|
-
})), B = L[0].state ? new GrammarState(Object.fromEntries(L.map((a) => [a.theme, a.state?.getInternalStack(a.theme)])), L[0].state.lang) : void 0;
|
|
760
|
-
return B && setLastGrammarStateToMap(z, B), z;
|
|
761
|
-
}
|
|
762
|
-
function syncThemesTokenization(...a) {
|
|
763
|
-
let P = a.map(() => []), F = a.length;
|
|
764
|
-
for (let I = 0; I < a[0].length; I++) {
|
|
765
|
-
let L = a.map((a) => a[I]), R = P.map(() => []);
|
|
766
|
-
P.forEach((a, P) => a.push(R[P]));
|
|
767
|
-
let z = L.map(() => 0), B = L.map((a) => a[0]);
|
|
768
|
-
for (; B.every((a) => a);) {
|
|
769
|
-
let a = Math.min(...B.map((a) => a.content.length));
|
|
770
|
-
for (let P = 0; P < F; P++) {
|
|
771
|
-
let F = B[P];
|
|
772
|
-
F.content.length === a ? (R[P].push(F), z[P] += 1, B[P] = L[P][z[P]]) : (R[P].push({
|
|
773
|
-
...F,
|
|
774
|
-
content: F.content.slice(0, a)
|
|
775
|
-
}), B[P] = {
|
|
776
|
-
...F,
|
|
777
|
-
content: F.content.slice(a),
|
|
778
|
-
offset: F.offset + a
|
|
779
|
-
});
|
|
548
|
+
function G(t, r, i, a, o, s, c) {
|
|
549
|
+
return t.map((l, u) => {
|
|
550
|
+
let d = n(r[u][s], i[u]) || "inherit", f = `${a + l.color}${s === "bg" ? "-bg" : ""}:${d}`;
|
|
551
|
+
if (u === 0 && o) {
|
|
552
|
+
if (o === y && t.length > 1) {
|
|
553
|
+
let a = t.findIndex((e) => e.color === "light"), o = t.findIndex((e) => e.color === "dark");
|
|
554
|
+
if (a === -1 || o === -1) throw new e("When using `defaultColor: \"light-dark()\"`, you must provide both `light` and `dark` themes");
|
|
555
|
+
return `light-dark(${n(r[a][s], i[a]) || "inherit"}, ${n(r[o][s], i[o]) || "inherit"});${f}`;
|
|
780
556
|
}
|
|
557
|
+
return d;
|
|
781
558
|
}
|
|
782
|
-
|
|
783
|
-
|
|
559
|
+
return c === "css-vars" ? f : null;
|
|
560
|
+
}).filter((e) => !!e).join(";");
|
|
784
561
|
}
|
|
785
|
-
function
|
|
786
|
-
let L, R, z, H, U, W;
|
|
787
|
-
if ("themes" in I) {
|
|
788
|
-
let { defaultColor: V = "light", cssVariablePrefix: G = "--shiki-", colorsRendering: K = "css-vars" } = I, q = Object.entries(I.themes).filter((a) => a[1]).map((a) => ({
|
|
789
|
-
color: a[0],
|
|
790
|
-
theme: a[1]
|
|
791
|
-
})).sort((a, P) => a.color === V ? -1 : P.color === V ? 1 : 0);
|
|
792
|
-
if (q.length === 0) throw new ShikiError("`themes` option must not be empty");
|
|
793
|
-
let J = codeToTokensWithThemes(P, F, I);
|
|
794
|
-
if (W = getLastGrammarStateFromMap(J), V && DEFAULT_COLOR_LIGHT_DARK !== V && !q.find((a) => a.color === V)) throw new ShikiError(`\`themes\` option must contain the defaultColor key \`${V}\``);
|
|
795
|
-
let Y = q.map((a) => P.getTheme(a.theme)), X = q.map((a) => a.color);
|
|
796
|
-
z = J.map((a) => a.map((a) => flatTokenVariants(a, X, G, V, K))), W && setLastGrammarStateToMap(z, W);
|
|
797
|
-
let Z = q.map((a) => resolveColorReplacements(a.theme, I));
|
|
798
|
-
R = mapThemeColors(q, Y, Z, G, V, "fg", K), L = mapThemeColors(q, Y, Z, G, V, "bg", K), H = `shiki-themes ${Y.map((a) => a.name).join(" ")}`, U = V ? void 0 : [R, L].join(";");
|
|
799
|
-
} else if ("theme" in I) {
|
|
800
|
-
let a = resolveColorReplacements(I.theme, I);
|
|
801
|
-
z = codeToTokensBase(P, F, I);
|
|
802
|
-
let U = P.getTheme(I.theme);
|
|
803
|
-
L = applyColorReplacements(U.bg, a), R = applyColorReplacements(U.fg, a), H = U.name, W = getLastGrammarStateFromMap(z);
|
|
804
|
-
} else throw new ShikiError("Invalid options, either `theme` or `themes` must be provided");
|
|
805
|
-
return {
|
|
806
|
-
tokens: z,
|
|
807
|
-
fg: R,
|
|
808
|
-
bg: L,
|
|
809
|
-
themeName: H,
|
|
810
|
-
rootStyle: U,
|
|
811
|
-
grammarState: W
|
|
812
|
-
};
|
|
813
|
-
}
|
|
814
|
-
function mapThemeColors(P, F, I, L, R, z, B) {
|
|
815
|
-
return P.map((H, U) => {
|
|
816
|
-
let W = applyColorReplacements(F[U][z], I[U]) || "inherit", G = `${L + H.color}${z === "bg" ? "-bg" : ""}:${W}`;
|
|
817
|
-
if (U === 0 && R) {
|
|
818
|
-
if (R === DEFAULT_COLOR_LIGHT_DARK && P.length > 1) {
|
|
819
|
-
let L = P.findIndex((a) => a.color === "light"), R = P.findIndex((a) => a.color === "dark");
|
|
820
|
-
if (L === -1 || R === -1) throw new ShikiError("When using `defaultColor: \"light-dark()\"`, you must provide both `light` and `dark` themes");
|
|
821
|
-
return `light-dark(${applyColorReplacements(F[L][z], I[L]) || "inherit"}, ${applyColorReplacements(F[R][z], I[R]) || "inherit"});${G}`;
|
|
822
|
-
}
|
|
823
|
-
return W;
|
|
824
|
-
}
|
|
825
|
-
return B === "css-vars" ? G : null;
|
|
826
|
-
}).filter((a) => !!a).join(";");
|
|
827
|
-
}
|
|
828
|
-
function codeToHast(a, P, F, I = {
|
|
562
|
+
function K(e, t, n, r = {
|
|
829
563
|
meta: {},
|
|
830
|
-
options:
|
|
831
|
-
codeToHast: (
|
|
832
|
-
codeToTokens: (
|
|
564
|
+
options: n,
|
|
565
|
+
codeToHast: (t, n) => K(e, t, n),
|
|
566
|
+
codeToTokens: (t, n) => W(e, t, n)
|
|
833
567
|
}) {
|
|
834
|
-
let
|
|
835
|
-
for (let
|
|
836
|
-
let { tokens:
|
|
837
|
-
|
|
838
|
-
let
|
|
839
|
-
...
|
|
568
|
+
let i = t;
|
|
569
|
+
for (let e of A(n)) i = e.preprocess?.call(r, i, n) || i;
|
|
570
|
+
let { tokens: a, fg: o, bg: s, themeName: c, rootStyle: l, grammarState: u } = W(e, i, n), { mergeWhitespaces: d = !0, mergeSameStyleTokens: f = !1 } = n;
|
|
571
|
+
d === !0 ? a = J(a) : d === "never" && (a = Y(a)), f && (a = X(a));
|
|
572
|
+
let p = {
|
|
573
|
+
...r,
|
|
840
574
|
get source() {
|
|
841
|
-
return
|
|
575
|
+
return i;
|
|
842
576
|
}
|
|
843
577
|
};
|
|
844
|
-
for (let
|
|
845
|
-
return
|
|
846
|
-
...
|
|
847
|
-
fg:
|
|
848
|
-
bg:
|
|
849
|
-
themeName:
|
|
850
|
-
rootStyle:
|
|
851
|
-
},
|
|
852
|
-
}
|
|
853
|
-
function
|
|
854
|
-
let
|
|
578
|
+
for (let e of A(n)) a = e.tokens?.call(p, a) || a;
|
|
579
|
+
return q(a, {
|
|
580
|
+
...n,
|
|
581
|
+
fg: o,
|
|
582
|
+
bg: s,
|
|
583
|
+
themeName: c,
|
|
584
|
+
rootStyle: n.rootStyle === !1 ? !1 : n.rootStyle ?? l
|
|
585
|
+
}, p, u);
|
|
586
|
+
}
|
|
587
|
+
function q(e, t, n, r = s(e)) {
|
|
588
|
+
let i = A(t), a = [], o = {
|
|
855
589
|
type: "root",
|
|
856
590
|
children: []
|
|
857
|
-
}, { structure:
|
|
858
|
-
|
|
859
|
-
for (let [
|
|
860
|
-
let
|
|
591
|
+
}, { structure: c = "classic", tabindex: l = "0" } = t, u = { class: `shiki ${t.themeName || ""}` };
|
|
592
|
+
t.rootStyle !== !1 && (t.rootStyle == null ? u.style = `background-color:${t.bg};color:${t.fg}` : u.style = t.rootStyle), l !== !1 && l != null && (u.tabindex = l.toString());
|
|
593
|
+
for (let [e, n] of Object.entries(t.meta || {})) e.startsWith("_") || (u[e] = n);
|
|
594
|
+
let d = {
|
|
861
595
|
type: "element",
|
|
862
596
|
tagName: "pre",
|
|
863
|
-
properties:
|
|
597
|
+
properties: u,
|
|
864
598
|
children: [],
|
|
865
|
-
data:
|
|
866
|
-
},
|
|
599
|
+
data: t.data
|
|
600
|
+
}, f = {
|
|
867
601
|
type: "element",
|
|
868
602
|
tagName: "code",
|
|
869
603
|
properties: {},
|
|
870
|
-
children:
|
|
871
|
-
},
|
|
872
|
-
...
|
|
873
|
-
structure:
|
|
874
|
-
addClassToHast,
|
|
604
|
+
children: a
|
|
605
|
+
}, m = [], h = {
|
|
606
|
+
...n,
|
|
607
|
+
structure: c,
|
|
608
|
+
addClassToHast: g,
|
|
875
609
|
get source() {
|
|
876
|
-
return
|
|
610
|
+
return n.source;
|
|
877
611
|
},
|
|
878
612
|
get tokens() {
|
|
879
|
-
return
|
|
613
|
+
return e;
|
|
880
614
|
},
|
|
881
615
|
get options() {
|
|
882
|
-
return
|
|
616
|
+
return t;
|
|
883
617
|
},
|
|
884
618
|
get root() {
|
|
885
|
-
return
|
|
619
|
+
return o;
|
|
886
620
|
},
|
|
887
621
|
get pre() {
|
|
888
|
-
return
|
|
622
|
+
return d;
|
|
889
623
|
},
|
|
890
624
|
get code() {
|
|
891
|
-
return
|
|
625
|
+
return f;
|
|
892
626
|
},
|
|
893
627
|
get lines() {
|
|
894
|
-
return
|
|
628
|
+
return m;
|
|
895
629
|
}
|
|
896
630
|
};
|
|
897
|
-
if (
|
|
898
|
-
|
|
631
|
+
if (e.forEach((e, t) => {
|
|
632
|
+
t && (c === "inline" ? o.children.push({
|
|
899
633
|
type: "element",
|
|
900
634
|
tagName: "br",
|
|
901
635
|
properties: {},
|
|
902
636
|
children: []
|
|
903
|
-
}) :
|
|
637
|
+
}) : c === "classic" && a.push({
|
|
904
638
|
type: "text",
|
|
905
639
|
value: "\n"
|
|
906
640
|
}));
|
|
907
|
-
let
|
|
641
|
+
let n = {
|
|
908
642
|
type: "element",
|
|
909
643
|
tagName: "span",
|
|
910
644
|
properties: { class: "line" },
|
|
911
645
|
children: []
|
|
912
|
-
},
|
|
913
|
-
for (let
|
|
914
|
-
let
|
|
646
|
+
}, r = 0;
|
|
647
|
+
for (let a of e) {
|
|
648
|
+
let e = {
|
|
915
649
|
type: "element",
|
|
916
650
|
tagName: "span",
|
|
917
|
-
properties: { ...
|
|
651
|
+
properties: { ...a.htmlAttrs },
|
|
918
652
|
children: [{
|
|
919
653
|
type: "text",
|
|
920
|
-
value:
|
|
654
|
+
value: a.content
|
|
921
655
|
}]
|
|
922
|
-
},
|
|
923
|
-
|
|
924
|
-
for (let
|
|
925
|
-
|
|
656
|
+
}, s = T(a.htmlStyle || w(a));
|
|
657
|
+
s && (e.properties.style = s);
|
|
658
|
+
for (let o of i) e = o?.span?.call(h, e, t + 1, r, n, a) || e;
|
|
659
|
+
c === "inline" ? o.children.push(e) : c === "classic" && n.children.push(e), r += a.content.length;
|
|
926
660
|
}
|
|
927
|
-
if (
|
|
928
|
-
for (let
|
|
929
|
-
|
|
930
|
-
} else
|
|
931
|
-
}),
|
|
932
|
-
for (let
|
|
933
|
-
|
|
934
|
-
for (let
|
|
935
|
-
|
|
936
|
-
} else if (
|
|
937
|
-
let
|
|
661
|
+
if (c === "classic") {
|
|
662
|
+
for (let e of i) n = e?.line?.call(h, n, t + 1) || n;
|
|
663
|
+
m.push(n), a.push(n);
|
|
664
|
+
} else c === "inline" && m.push(n);
|
|
665
|
+
}), c === "classic") {
|
|
666
|
+
for (let e of i) f = e?.code?.call(h, f) || f;
|
|
667
|
+
d.children.push(f);
|
|
668
|
+
for (let e of i) d = e?.pre?.call(h, d) || d;
|
|
669
|
+
o.children.push(d);
|
|
670
|
+
} else if (c === "inline") {
|
|
671
|
+
let e = [], t = {
|
|
938
672
|
type: "element",
|
|
939
673
|
tagName: "span",
|
|
940
674
|
properties: { class: "line" },
|
|
941
675
|
children: []
|
|
942
676
|
};
|
|
943
|
-
for (let
|
|
677
|
+
for (let n of o.children) n.type === "element" && n.tagName === "br" ? (e.push(t), t = {
|
|
944
678
|
type: "element",
|
|
945
679
|
tagName: "span",
|
|
946
680
|
properties: { class: "line" },
|
|
947
681
|
children: []
|
|
948
|
-
}) : (
|
|
949
|
-
|
|
950
|
-
let
|
|
682
|
+
}) : (n.type === "element" || n.type === "text") && t.children.push(n);
|
|
683
|
+
e.push(t);
|
|
684
|
+
let n = {
|
|
951
685
|
type: "element",
|
|
952
686
|
tagName: "code",
|
|
953
687
|
properties: {},
|
|
954
|
-
children:
|
|
688
|
+
children: e
|
|
955
689
|
};
|
|
956
|
-
for (let
|
|
957
|
-
|
|
958
|
-
for (let
|
|
959
|
-
|
|
690
|
+
for (let e of i) n = e?.code?.call(h, n) || n;
|
|
691
|
+
o.children = [];
|
|
692
|
+
for (let e = 0; e < n.children.length; e++) {
|
|
693
|
+
e > 0 && o.children.push({
|
|
960
694
|
type: "element",
|
|
961
695
|
tagName: "br",
|
|
962
696
|
properties: {},
|
|
963
697
|
children: []
|
|
964
698
|
});
|
|
965
|
-
let
|
|
966
|
-
|
|
699
|
+
let t = n.children[e];
|
|
700
|
+
t.type === "element" && o.children.push(...t.children);
|
|
967
701
|
}
|
|
968
702
|
}
|
|
969
|
-
let
|
|
970
|
-
for (let
|
|
971
|
-
return
|
|
703
|
+
let _ = o;
|
|
704
|
+
for (let e of i) _ = e?.root?.call(h, _) || _;
|
|
705
|
+
return r && p(_, r), _;
|
|
972
706
|
}
|
|
973
|
-
function
|
|
974
|
-
return
|
|
975
|
-
let
|
|
976
|
-
return
|
|
977
|
-
let
|
|
978
|
-
|
|
979
|
-
...
|
|
980
|
-
offset:
|
|
981
|
-
content:
|
|
982
|
-
}) :
|
|
983
|
-
content:
|
|
984
|
-
offset:
|
|
985
|
-
},
|
|
986
|
-
}),
|
|
707
|
+
function J(e) {
|
|
708
|
+
return e.map((e) => {
|
|
709
|
+
let n = [], r = "", i;
|
|
710
|
+
return e.forEach((a, o) => {
|
|
711
|
+
let s = !(a.fontStyle && (a.fontStyle & t.Underline || a.fontStyle & t.Strikethrough));
|
|
712
|
+
s && a.content.match(/^\s+$/) && e[o + 1] ? (i === void 0 && (i = a.offset), r += a.content) : r ? (s ? n.push({
|
|
713
|
+
...a,
|
|
714
|
+
offset: i,
|
|
715
|
+
content: r + a.content
|
|
716
|
+
}) : n.push({
|
|
717
|
+
content: r,
|
|
718
|
+
offset: i
|
|
719
|
+
}, a), i = void 0, r = "") : n.push(a);
|
|
720
|
+
}), n;
|
|
987
721
|
});
|
|
988
722
|
}
|
|
989
|
-
function
|
|
990
|
-
return
|
|
991
|
-
if (
|
|
992
|
-
let
|
|
993
|
-
if (!
|
|
994
|
-
let [,
|
|
995
|
-
if (!
|
|
996
|
-
let
|
|
997
|
-
...
|
|
998
|
-
offset:
|
|
999
|
-
content:
|
|
723
|
+
function Y(e) {
|
|
724
|
+
return e.map((e) => e.flatMap((e) => {
|
|
725
|
+
if (e.content.match(/^\s+$/)) return e;
|
|
726
|
+
let t = e.content.match(/^(\s*)(.*?)(\s*)$/);
|
|
727
|
+
if (!t) return e;
|
|
728
|
+
let [, n, r, i] = t;
|
|
729
|
+
if (!n && !i) return e;
|
|
730
|
+
let a = [{
|
|
731
|
+
...e,
|
|
732
|
+
offset: e.offset + n.length,
|
|
733
|
+
content: r
|
|
1000
734
|
}];
|
|
1001
|
-
return
|
|
1002
|
-
content:
|
|
1003
|
-
offset:
|
|
1004
|
-
}),
|
|
1005
|
-
content:
|
|
1006
|
-
offset:
|
|
1007
|
-
}),
|
|
735
|
+
return n && a.unshift({
|
|
736
|
+
content: n,
|
|
737
|
+
offset: e.offset
|
|
738
|
+
}), i && a.push({
|
|
739
|
+
content: i,
|
|
740
|
+
offset: e.offset + n.length + r.length
|
|
741
|
+
}), a;
|
|
1008
742
|
}));
|
|
1009
743
|
}
|
|
1010
|
-
function
|
|
1011
|
-
return
|
|
1012
|
-
let
|
|
1013
|
-
for (let
|
|
1014
|
-
if (
|
|
1015
|
-
|
|
744
|
+
function X(e) {
|
|
745
|
+
return e.map((e) => {
|
|
746
|
+
let n = [];
|
|
747
|
+
for (let r of e) {
|
|
748
|
+
if (n.length === 0) {
|
|
749
|
+
n.push({ ...r });
|
|
1016
750
|
continue;
|
|
1017
751
|
}
|
|
1018
|
-
let
|
|
1019
|
-
!
|
|
752
|
+
let e = n[n.length - 1], i = T(e.htmlStyle || w(e)), a = T(r.htmlStyle || w(r)), o = e.fontStyle && (e.fontStyle & t.Underline || e.fontStyle & t.Strikethrough), s = r.fontStyle && (r.fontStyle & t.Underline || r.fontStyle & t.Strikethrough);
|
|
753
|
+
!o && !s && i === a ? e.content += r.content : n.push({ ...r });
|
|
1020
754
|
}
|
|
1021
|
-
return
|
|
755
|
+
return n;
|
|
1022
756
|
});
|
|
1023
757
|
}
|
|
1024
|
-
var
|
|
1025
|
-
function
|
|
1026
|
-
let
|
|
758
|
+
var Z = h;
|
|
759
|
+
function ee(e, t, n) {
|
|
760
|
+
let r = {
|
|
1027
761
|
meta: {},
|
|
1028
|
-
options:
|
|
1029
|
-
codeToHast: (
|
|
1030
|
-
codeToTokens: (
|
|
1031
|
-
},
|
|
1032
|
-
for (let
|
|
1033
|
-
return
|
|
1034
|
-
}
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
dark: "#bbbbbb"
|
|
1038
|
-
}, VSCODE_FALLBACK_EDITOR_BG = {
|
|
1039
|
-
light: "#fffffe",
|
|
1040
|
-
dark: "#1e1e1e"
|
|
1041
|
-
}, RESOLVED_KEY = "__shiki_resolved";
|
|
1042
|
-
function normalizeTheme(a) {
|
|
1043
|
-
if (a?.[RESOLVED_KEY]) return a;
|
|
1044
|
-
let P = { ...a };
|
|
1045
|
-
P.tokenColors && !P.settings && (P.settings = P.tokenColors, delete P.tokenColors), P.type ||= "dark", P.colorReplacements = { ...P.colorReplacements }, P.settings ||= [];
|
|
1046
|
-
let { bg: F, fg: I } = P;
|
|
1047
|
-
if (!F || !I) {
|
|
1048
|
-
let a = P.settings ? P.settings.find((a) => !a.name && !a.scope) : void 0;
|
|
1049
|
-
a?.settings?.foreground && (I = a.settings.foreground), a?.settings?.background && (F = a.settings.background), !I && P?.colors?.["editor.foreground"] && (I = P.colors["editor.foreground"]), !F && P?.colors?.["editor.background"] && (F = P.colors["editor.background"]), I ||= P.type === "light" ? VSCODE_FALLBACK_EDITOR_FG.light : VSCODE_FALLBACK_EDITOR_FG.dark, F ||= P.type === "light" ? VSCODE_FALLBACK_EDITOR_BG.light : VSCODE_FALLBACK_EDITOR_BG.dark, P.fg = I, P.bg = F;
|
|
1050
|
-
}
|
|
1051
|
-
P.settings[0] && P.settings[0].settings && !P.settings[0].scope || P.settings.unshift({ settings: {
|
|
1052
|
-
foreground: P.fg,
|
|
1053
|
-
background: P.bg
|
|
1054
|
-
} });
|
|
1055
|
-
let L = 0, R = /* @__PURE__ */ new Map();
|
|
1056
|
-
function z(a) {
|
|
1057
|
-
if (R.has(a)) return R.get(a);
|
|
1058
|
-
L += 1;
|
|
1059
|
-
let F = `#${L.toString(16).padStart(8, "0").toLowerCase()}`;
|
|
1060
|
-
return P.colorReplacements?.[`#${F}`] ? z(a) : (R.set(a, F), F);
|
|
1061
|
-
}
|
|
1062
|
-
P.settings = P.settings.map((a) => {
|
|
1063
|
-
let F = a.settings?.foreground && !a.settings.foreground.startsWith("#"), I = a.settings?.background && !a.settings.background.startsWith("#");
|
|
1064
|
-
if (!F && !I) return a;
|
|
1065
|
-
let L = {
|
|
1066
|
-
...a,
|
|
1067
|
-
settings: { ...a.settings }
|
|
1068
|
-
};
|
|
1069
|
-
if (F) {
|
|
1070
|
-
let F = z(a.settings.foreground);
|
|
1071
|
-
P.colorReplacements[F] = a.settings.foreground, L.settings.foreground = F;
|
|
1072
|
-
}
|
|
1073
|
-
if (I) {
|
|
1074
|
-
let F = z(a.settings.background);
|
|
1075
|
-
P.colorReplacements[F] = a.settings.background, L.settings.background = F;
|
|
1076
|
-
}
|
|
1077
|
-
return L;
|
|
1078
|
-
});
|
|
1079
|
-
for (let a of Object.keys(P.colors || {})) if ((a === "editor.foreground" || a === "editor.background" || a.startsWith("terminal.ansi")) && !P.colors[a]?.startsWith("#")) {
|
|
1080
|
-
let F = z(P.colors[a]);
|
|
1081
|
-
P.colorReplacements[F] = P.colors[a], P.colors[a] = F;
|
|
1082
|
-
}
|
|
1083
|
-
return Object.defineProperty(P, RESOLVED_KEY, {
|
|
1084
|
-
enumerable: !1,
|
|
1085
|
-
writable: !1,
|
|
1086
|
-
value: !0
|
|
1087
|
-
}), P;
|
|
1088
|
-
}
|
|
1089
|
-
async function resolveLangs(a) {
|
|
1090
|
-
return Array.from(new Set((await Promise.all(a.filter((a) => !isSpecialLang(a)).map(async (a) => await normalizeGetter(a).then((a) => Array.isArray(a) ? a : [a])))).flat()));
|
|
1091
|
-
}
|
|
1092
|
-
async function resolveThemes(a) {
|
|
1093
|
-
return (await Promise.all(a.map(async (a) => isSpecialTheme(a) ? null : normalizeTheme(await normalizeGetter(a))))).filter((a) => !!a);
|
|
1094
|
-
}
|
|
1095
|
-
var _emitDeprecation = 3, _emitError = !1;
|
|
1096
|
-
function warnDeprecated(a, P = 3) {
|
|
1097
|
-
if (_emitDeprecation && !(typeof _emitDeprecation == "number" && P > _emitDeprecation)) {
|
|
1098
|
-
if (_emitError) throw Error(`[SHIKI DEPRECATE]: ${a}`);
|
|
1099
|
-
console.trace(`[SHIKI DEPRECATE]: ${a}`);
|
|
1100
|
-
}
|
|
1101
|
-
}
|
|
1102
|
-
var ShikiError$1 = class extends Error {
|
|
1103
|
-
constructor(a) {
|
|
1104
|
-
super(a), this.name = "ShikiError";
|
|
1105
|
-
}
|
|
1106
|
-
};
|
|
1107
|
-
function resolveLangAlias(a, P) {
|
|
1108
|
-
if (!P) return a;
|
|
1109
|
-
if (P[a]) {
|
|
1110
|
-
let F = /* @__PURE__ */ new Set([a]);
|
|
1111
|
-
for (; P[a];) {
|
|
1112
|
-
if (a = P[a], F.has(a)) throw new ShikiError$1(`Circular alias \`${Array.from(F).join(" -> ")} -> ${a}\``);
|
|
1113
|
-
F.add(a);
|
|
1114
|
-
}
|
|
1115
|
-
}
|
|
1116
|
-
return a;
|
|
1117
|
-
}
|
|
1118
|
-
var Registry$1 = class extends Registry {
|
|
1119
|
-
constructor(a, P, F, I = {}) {
|
|
1120
|
-
super(a), this._resolver = a, this._themes = P, this._langs = F, this._alias = I, this._themes.map((a) => this.loadTheme(a)), this.loadLanguages(this._langs);
|
|
1121
|
-
}
|
|
1122
|
-
_resolvedThemes = /* @__PURE__ */ new Map();
|
|
1123
|
-
_resolvedGrammars = /* @__PURE__ */ new Map();
|
|
1124
|
-
_langMap = /* @__PURE__ */ new Map();
|
|
1125
|
-
_langGraph = /* @__PURE__ */ new Map();
|
|
1126
|
-
_textmateThemeCache = /* @__PURE__ */ new WeakMap();
|
|
1127
|
-
_loadedThemesCache = null;
|
|
1128
|
-
_loadedLanguagesCache = null;
|
|
1129
|
-
getTheme(a) {
|
|
1130
|
-
return typeof a == "string" ? this._resolvedThemes.get(a) : this.loadTheme(a);
|
|
1131
|
-
}
|
|
1132
|
-
loadTheme(a) {
|
|
1133
|
-
let P = normalizeTheme(a);
|
|
1134
|
-
return P.name && (this._resolvedThemes.set(P.name, P), this._loadedThemesCache = null), P;
|
|
1135
|
-
}
|
|
1136
|
-
getLoadedThemes() {
|
|
1137
|
-
return this._loadedThemesCache ||= [...this._resolvedThemes.keys()], this._loadedThemesCache;
|
|
1138
|
-
}
|
|
1139
|
-
setTheme(a) {
|
|
1140
|
-
let P = this._textmateThemeCache.get(a);
|
|
1141
|
-
P || (P = Theme.createFromRawTheme(a), this._textmateThemeCache.set(a, P)), this._syncRegistry.setTheme(P);
|
|
1142
|
-
}
|
|
1143
|
-
getGrammar(a) {
|
|
1144
|
-
return a = resolveLangAlias(a, this._alias), this._resolvedGrammars.get(a);
|
|
1145
|
-
}
|
|
1146
|
-
loadLanguage(a) {
|
|
1147
|
-
if (this.getGrammar(a.name)) return;
|
|
1148
|
-
let P = new Set([...this._langMap.values()].filter((P) => P.embeddedLangsLazy?.includes(a.name)));
|
|
1149
|
-
this._resolver.addLanguage(a);
|
|
1150
|
-
let F = {
|
|
1151
|
-
balancedBracketSelectors: a.balancedBracketSelectors || ["*"],
|
|
1152
|
-
unbalancedBracketSelectors: a.unbalancedBracketSelectors || []
|
|
1153
|
-
};
|
|
1154
|
-
this._syncRegistry._rawGrammars.set(a.scopeName, a);
|
|
1155
|
-
let I = this.loadGrammarWithConfiguration(a.scopeName, 1, F);
|
|
1156
|
-
if (I.name = a.name, this._resolvedGrammars.set(a.name, I), a.aliases && a.aliases.forEach((P) => {
|
|
1157
|
-
this._alias[P] = a.name;
|
|
1158
|
-
}), this._loadedLanguagesCache = null, P.size) for (let a of P) this._resolvedGrammars.delete(a.name), this._loadedLanguagesCache = null, this._syncRegistry?._injectionGrammars?.delete(a.scopeName), this._syncRegistry?._grammars?.delete(a.scopeName), this.loadLanguage(this._langMap.get(a.name));
|
|
1159
|
-
}
|
|
1160
|
-
dispose() {
|
|
1161
|
-
super.dispose(), this._resolvedThemes.clear(), this._resolvedGrammars.clear(), this._langMap.clear(), this._langGraph.clear(), this._loadedThemesCache = null;
|
|
1162
|
-
}
|
|
1163
|
-
loadLanguages(a) {
|
|
1164
|
-
for (let P of a) this.resolveEmbeddedLanguages(P);
|
|
1165
|
-
let P = Array.from(this._langGraph.entries()), F = P.filter(([a, P]) => !P);
|
|
1166
|
-
if (F.length) {
|
|
1167
|
-
let a = P.filter(([a, P]) => P ? (P.embeddedLanguages || P.embeddedLangs)?.some((a) => F.map(([a]) => a).includes(a)) : !1).filter((a) => !F.includes(a));
|
|
1168
|
-
throw new ShikiError$1(`Missing languages ${F.map(([a]) => `\`${a}\``).join(", ")}, required by ${a.map(([a]) => `\`${a}\``).join(", ")}`);
|
|
1169
|
-
}
|
|
1170
|
-
for (let [a, F] of P) this._resolver.addLanguage(F);
|
|
1171
|
-
for (let [a, F] of P) this.loadLanguage(F);
|
|
1172
|
-
}
|
|
1173
|
-
getLoadedLanguages() {
|
|
1174
|
-
return this._loadedLanguagesCache ||= [.../* @__PURE__ */ new Set([...this._resolvedGrammars.keys(), ...Object.keys(this._alias)])], this._loadedLanguagesCache;
|
|
1175
|
-
}
|
|
1176
|
-
resolveEmbeddedLanguages(a) {
|
|
1177
|
-
this._langMap.set(a.name, a), this._langGraph.set(a.name, a);
|
|
1178
|
-
let P = a.embeddedLanguages ?? a.embeddedLangs;
|
|
1179
|
-
if (P) for (let a of P) this._langGraph.set(a, this._langMap.get(a));
|
|
1180
|
-
}
|
|
1181
|
-
}, Resolver = class {
|
|
1182
|
-
_langs = /* @__PURE__ */ new Map();
|
|
1183
|
-
_scopeToLang = /* @__PURE__ */ new Map();
|
|
1184
|
-
_injections = /* @__PURE__ */ new Map();
|
|
1185
|
-
_onigLib;
|
|
1186
|
-
constructor(a, P) {
|
|
1187
|
-
this._onigLib = {
|
|
1188
|
-
createOnigScanner: (P) => a.createScanner(P),
|
|
1189
|
-
createOnigString: (P) => a.createString(P)
|
|
1190
|
-
}, P.forEach((a) => this.addLanguage(a));
|
|
1191
|
-
}
|
|
1192
|
-
get onigLib() {
|
|
1193
|
-
return this._onigLib;
|
|
1194
|
-
}
|
|
1195
|
-
getLangRegistration(a) {
|
|
1196
|
-
return this._langs.get(a);
|
|
1197
|
-
}
|
|
1198
|
-
loadGrammar(a) {
|
|
1199
|
-
return this._scopeToLang.get(a);
|
|
1200
|
-
}
|
|
1201
|
-
addLanguage(a) {
|
|
1202
|
-
this._langs.set(a.name, a), a.aliases && a.aliases.forEach((P) => {
|
|
1203
|
-
this._langs.set(P, a);
|
|
1204
|
-
}), this._scopeToLang.set(a.scopeName, a), a.injectTo && a.injectTo.forEach((P) => {
|
|
1205
|
-
this._injections.get(P) || this._injections.set(P, []), this._injections.get(P).push(a.scopeName);
|
|
1206
|
-
});
|
|
1207
|
-
}
|
|
1208
|
-
getInjections(a) {
|
|
1209
|
-
let P = a.split("."), F = [];
|
|
1210
|
-
for (let a = 1; a <= P.length; a++) {
|
|
1211
|
-
let I = P.slice(0, a).join(".");
|
|
1212
|
-
F = [...F, ...this._injections.get(I) || []];
|
|
1213
|
-
}
|
|
1214
|
-
return F;
|
|
1215
|
-
}
|
|
1216
|
-
}, instancesCount = 0;
|
|
1217
|
-
function createShikiInternalSync(a) {
|
|
1218
|
-
instancesCount += 1, a.warnings !== !1 && instancesCount >= 10 && instancesCount % 10 == 0 && console.warn(`[Shiki] ${instancesCount} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);
|
|
1219
|
-
let P = !1;
|
|
1220
|
-
if (!a.engine) throw new ShikiError$1("`engine` option is required for synchronous mode");
|
|
1221
|
-
let F = (a.langs || []).flat(1), I = (a.themes || []).flat(1).map(normalizeTheme), L = new Registry$1(new Resolver(a.engine, F), I, F, a.langAlias), R;
|
|
1222
|
-
function z(P) {
|
|
1223
|
-
return resolveLangAlias(P, a.langAlias);
|
|
1224
|
-
}
|
|
1225
|
-
function B(a) {
|
|
1226
|
-
Y();
|
|
1227
|
-
let P = L.getGrammar(typeof a == "string" ? a : a.name);
|
|
1228
|
-
if (!P) throw new ShikiError$1(`Language \`${a}\` not found, you may need to load it first`);
|
|
1229
|
-
return P;
|
|
1230
|
-
}
|
|
1231
|
-
function V(a) {
|
|
1232
|
-
if (a === "none") return {
|
|
1233
|
-
bg: "",
|
|
1234
|
-
fg: "",
|
|
1235
|
-
name: "none",
|
|
1236
|
-
settings: [],
|
|
1237
|
-
type: "dark"
|
|
1238
|
-
};
|
|
1239
|
-
Y();
|
|
1240
|
-
let P = L.getTheme(a);
|
|
1241
|
-
if (!P) throw new ShikiError$1(`Theme \`${a}\` not found, you may need to load it first`);
|
|
1242
|
-
return P;
|
|
1243
|
-
}
|
|
1244
|
-
function H(a) {
|
|
1245
|
-
Y();
|
|
1246
|
-
let P = V(a);
|
|
1247
|
-
return R !== a && (L.setTheme(P), R = a), {
|
|
1248
|
-
theme: P,
|
|
1249
|
-
colorMap: L.getColorMap()
|
|
1250
|
-
};
|
|
1251
|
-
}
|
|
1252
|
-
function U() {
|
|
1253
|
-
return Y(), L.getLoadedThemes();
|
|
1254
|
-
}
|
|
1255
|
-
function W() {
|
|
1256
|
-
return Y(), L.getLoadedLanguages();
|
|
1257
|
-
}
|
|
1258
|
-
function G(...a) {
|
|
1259
|
-
Y(), L.loadLanguages(a.flat(1));
|
|
1260
|
-
}
|
|
1261
|
-
async function K(...a) {
|
|
1262
|
-
return G(await resolveLangs(a));
|
|
1263
|
-
}
|
|
1264
|
-
function q(...a) {
|
|
1265
|
-
Y();
|
|
1266
|
-
for (let P of a.flat(1)) L.loadTheme(P);
|
|
1267
|
-
}
|
|
1268
|
-
async function J(...a) {
|
|
1269
|
-
return Y(), q(await resolveThemes(a));
|
|
1270
|
-
}
|
|
1271
|
-
function Y() {
|
|
1272
|
-
if (P) throw new ShikiError$1("Shiki instance has been disposed");
|
|
1273
|
-
}
|
|
1274
|
-
function X() {
|
|
1275
|
-
P || (P = !0, L.dispose(), --instancesCount);
|
|
1276
|
-
}
|
|
1277
|
-
return {
|
|
1278
|
-
setTheme: H,
|
|
1279
|
-
getTheme: V,
|
|
1280
|
-
getLanguage: B,
|
|
1281
|
-
getLoadedThemes: U,
|
|
1282
|
-
getLoadedLanguages: W,
|
|
1283
|
-
resolveLangAlias: z,
|
|
1284
|
-
loadLanguage: K,
|
|
1285
|
-
loadLanguageSync: G,
|
|
1286
|
-
loadTheme: J,
|
|
1287
|
-
loadThemeSync: q,
|
|
1288
|
-
dispose: X,
|
|
1289
|
-
[Symbol.dispose]: X
|
|
1290
|
-
};
|
|
1291
|
-
}
|
|
1292
|
-
async function createShikiInternal(a) {
|
|
1293
|
-
a.engine || warnDeprecated("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");
|
|
1294
|
-
let [P, F, I] = await Promise.all([
|
|
1295
|
-
resolveThemes(a.themes || []),
|
|
1296
|
-
resolveLangs(a.langs || []),
|
|
1297
|
-
a.engine
|
|
1298
|
-
]);
|
|
1299
|
-
return createShikiInternalSync({
|
|
1300
|
-
...a,
|
|
1301
|
-
themes: P,
|
|
1302
|
-
langs: F,
|
|
1303
|
-
engine: I
|
|
1304
|
-
});
|
|
1305
|
-
}
|
|
1306
|
-
async function createHighlighterCore(a) {
|
|
1307
|
-
let P = await createShikiInternal(a);
|
|
762
|
+
options: n,
|
|
763
|
+
codeToHast: (t, n) => K(e, t, n),
|
|
764
|
+
codeToTokens: (t, n) => W(e, t, n)
|
|
765
|
+
}, i = Z(K(e, t, n, r));
|
|
766
|
+
for (let e of A(n)) i = e.postprocess?.call(r, i, n) || i;
|
|
767
|
+
return i;
|
|
768
|
+
}
|
|
769
|
+
async function Q(e) {
|
|
770
|
+
let t = await a(e);
|
|
1308
771
|
return {
|
|
1309
|
-
getLastGrammarState: (...
|
|
1310
|
-
codeToTokensBase: (
|
|
1311
|
-
codeToTokensWithThemes: (
|
|
1312
|
-
codeToTokens: (
|
|
1313
|
-
codeToHast: (
|
|
1314
|
-
codeToHtml: (
|
|
772
|
+
getLastGrammarState: (...e) => o(t, ...e),
|
|
773
|
+
codeToTokensBase: (e, n) => U(t, e, n),
|
|
774
|
+
codeToTokensWithThemes: (e, n) => i(t, e, n),
|
|
775
|
+
codeToTokens: (e, n) => W(t, e, n),
|
|
776
|
+
codeToHast: (e, n) => K(t, e, n),
|
|
777
|
+
codeToHtml: (e, n) => ee(t, e, n),
|
|
1315
778
|
getBundledLanguages: () => ({}),
|
|
1316
779
|
getBundledThemes: () => ({}),
|
|
1317
|
-
...
|
|
1318
|
-
getInternalContext: () =>
|
|
780
|
+
...t,
|
|
781
|
+
getInternalContext: () => t
|
|
1319
782
|
};
|
|
1320
783
|
}
|
|
1321
|
-
function
|
|
1322
|
-
let
|
|
1323
|
-
async function
|
|
1324
|
-
function
|
|
1325
|
-
if (typeof
|
|
1326
|
-
if (
|
|
1327
|
-
let
|
|
1328
|
-
if (!
|
|
1329
|
-
return
|
|
784
|
+
function te(t) {
|
|
785
|
+
let n = t.langs, r = t.themes, i = t.engine;
|
|
786
|
+
async function a(t) {
|
|
787
|
+
function a(r) {
|
|
788
|
+
if (typeof r == "string") {
|
|
789
|
+
if (r = t.langAlias?.[r] || r, u(r)) return [];
|
|
790
|
+
let i = n[r];
|
|
791
|
+
if (!i) throw new e(`Language \`${r}\` is not included in this bundle. You may want to load it from external source.`);
|
|
792
|
+
return i;
|
|
1330
793
|
}
|
|
1331
|
-
return
|
|
794
|
+
return r;
|
|
1332
795
|
}
|
|
1333
|
-
function
|
|
1334
|
-
if (
|
|
1335
|
-
if (typeof
|
|
1336
|
-
let
|
|
1337
|
-
if (!
|
|
1338
|
-
return
|
|
796
|
+
function o(t) {
|
|
797
|
+
if (d(t)) return "none";
|
|
798
|
+
if (typeof t == "string") {
|
|
799
|
+
let n = r[t];
|
|
800
|
+
if (!n) throw new e(`Theme \`${t}\` is not included in this bundle. You may want to load it from external source.`);
|
|
801
|
+
return n;
|
|
1339
802
|
}
|
|
1340
|
-
return
|
|
803
|
+
return t;
|
|
1341
804
|
}
|
|
1342
|
-
let
|
|
1343
|
-
engine:
|
|
1344
|
-
...
|
|
1345
|
-
themes:
|
|
1346
|
-
langs:
|
|
805
|
+
let s = (t.themes ?? []).map((e) => o(e)), c = (t.langs ?? []).map((e) => a(e)), l = await Q({
|
|
806
|
+
engine: t.engine ?? i(),
|
|
807
|
+
...t,
|
|
808
|
+
themes: s,
|
|
809
|
+
langs: c
|
|
1347
810
|
});
|
|
1348
811
|
return {
|
|
1349
|
-
...
|
|
1350
|
-
loadLanguage(...
|
|
1351
|
-
return
|
|
812
|
+
...l,
|
|
813
|
+
loadLanguage(...e) {
|
|
814
|
+
return l.loadLanguage(...e.map(a));
|
|
1352
815
|
},
|
|
1353
|
-
loadTheme(...
|
|
1354
|
-
return
|
|
816
|
+
loadTheme(...e) {
|
|
817
|
+
return l.loadTheme(...e.map(o));
|
|
1355
818
|
},
|
|
1356
819
|
getBundledLanguages() {
|
|
1357
|
-
return
|
|
820
|
+
return n;
|
|
1358
821
|
},
|
|
1359
822
|
getBundledThemes() {
|
|
1360
|
-
return
|
|
823
|
+
return r;
|
|
1361
824
|
}
|
|
1362
825
|
};
|
|
1363
826
|
}
|
|
1364
|
-
return
|
|
827
|
+
return a;
|
|
1365
828
|
}
|
|
1366
|
-
function
|
|
1367
|
-
let
|
|
1368
|
-
async function
|
|
1369
|
-
if (
|
|
1370
|
-
let
|
|
1371
|
-
return await Promise.all([
|
|
829
|
+
function $(e) {
|
|
830
|
+
let t;
|
|
831
|
+
async function n(n = {}) {
|
|
832
|
+
if (t) {
|
|
833
|
+
let e = await t;
|
|
834
|
+
return await Promise.all([e.loadTheme(...n.themes || []), e.loadLanguage(...n.langs || [])]), e;
|
|
1372
835
|
} else {
|
|
1373
|
-
|
|
1374
|
-
...
|
|
836
|
+
t = e({
|
|
837
|
+
...n,
|
|
1375
838
|
themes: [],
|
|
1376
839
|
langs: []
|
|
1377
840
|
});
|
|
1378
|
-
let
|
|
1379
|
-
return await Promise.all([
|
|
841
|
+
let r = await t;
|
|
842
|
+
return await Promise.all([r.loadTheme(...n.themes || []), r.loadLanguage(...n.langs || [])]), r;
|
|
1380
843
|
}
|
|
1381
844
|
}
|
|
1382
|
-
return
|
|
845
|
+
return n;
|
|
1383
846
|
}
|
|
1384
|
-
function
|
|
1385
|
-
let
|
|
1386
|
-
async function
|
|
1387
|
-
let
|
|
1388
|
-
langs: [
|
|
1389
|
-
themes: "theme" in
|
|
1390
|
-
}),
|
|
1391
|
-
return
|
|
847
|
+
function ne(e, t) {
|
|
848
|
+
let n = $(e);
|
|
849
|
+
async function r(e, r) {
|
|
850
|
+
let i = await n({
|
|
851
|
+
langs: [r.lang],
|
|
852
|
+
themes: "theme" in r ? [r.theme] : Object.values(r.themes)
|
|
853
|
+
}), a = await t?.guessEmbeddedLanguages?.(e, r.lang, i);
|
|
854
|
+
return a && await i.loadLanguage(...a), i;
|
|
1392
855
|
}
|
|
1393
856
|
return {
|
|
1394
|
-
getSingletonHighlighter(
|
|
1395
|
-
return
|
|
857
|
+
getSingletonHighlighter(e) {
|
|
858
|
+
return n(e);
|
|
1396
859
|
},
|
|
1397
|
-
async codeToHtml(
|
|
1398
|
-
return (await
|
|
860
|
+
async codeToHtml(e, t) {
|
|
861
|
+
return (await r(e, t)).codeToHtml(e, t);
|
|
1399
862
|
},
|
|
1400
|
-
async codeToHast(
|
|
1401
|
-
return (await
|
|
863
|
+
async codeToHast(e, t) {
|
|
864
|
+
return (await r(e, t)).codeToHast(e, t);
|
|
1402
865
|
},
|
|
1403
|
-
async codeToTokens(
|
|
1404
|
-
return (await
|
|
866
|
+
async codeToTokens(e, t) {
|
|
867
|
+
return (await r(e, t)).codeToTokens(e, t);
|
|
1405
868
|
},
|
|
1406
|
-
async codeToTokensBase(
|
|
1407
|
-
return (await
|
|
869
|
+
async codeToTokensBase(e, t) {
|
|
870
|
+
return (await r(e, t)).codeToTokensBase(e, t);
|
|
1408
871
|
},
|
|
1409
|
-
async codeToTokensWithThemes(
|
|
1410
|
-
return (await
|
|
872
|
+
async codeToTokensWithThemes(e, t) {
|
|
873
|
+
return (await r(e, t)).codeToTokensWithThemes(e, t);
|
|
1411
874
|
},
|
|
1412
|
-
async getLastGrammarState(
|
|
1413
|
-
return (await
|
|
1414
|
-
langs: [
|
|
1415
|
-
themes: [
|
|
1416
|
-
})).getLastGrammarState(
|
|
875
|
+
async getLastGrammarState(e, t) {
|
|
876
|
+
return (await n({
|
|
877
|
+
langs: [t.lang],
|
|
878
|
+
themes: [t.theme]
|
|
879
|
+
})).getLastGrammarState(e, t);
|
|
1417
880
|
}
|
|
1418
881
|
};
|
|
1419
882
|
}
|
|
1420
|
-
|
|
883
|
+
//#endregion
|
|
884
|
+
export { g as addClassToHast, te as createBundledHighlighter, Q as createHighlighterCore, _ as createPositionConverter, ne as createSingletonShorthands, C as flatTokenVariants, w as getTokenStyleObject, v as guessEmbeddedLanguages, Z as hastToHtml, $ as makeSingletonHighlighter, x as splitToken, S as splitTokens, T as stringifyTokenStyle, V as tokenizeAnsiWithTheme, q as tokensToHast, E as transformerDecorations };
|