@loopstack/loopstack-studio 0.25.1 → 0.25.2
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 +2 -4
- package/dist/api/client.js +7 -9
- package/dist/api/config.js +2 -4
- package/dist/api/dashboard.js +2 -4
- package/dist/api/documents.js +2 -4
- package/dist/api/index.js +19 -21
- package/dist/api/processor.js +2 -4
- package/dist/api/secrets.js +2 -4
- package/dist/api/workflows.js +2 -4
- package/dist/api/workspaces.js +2 -4
- package/dist/app/EnvironmentEmbedRoot.js +31 -24
- package/dist/components/ai-elements/code-block.js +71 -53
- package/dist/components/ai-elements/message.js +82 -41
- package/dist/components/ai-elements/prompt-input.js +253 -162
- package/dist/components/ai-elements/reasoning.js +116 -78
- package/dist/components/ai-elements/shimmer.js +35 -23
- package/dist/components/ai-elements/sources.js +58 -29
- package/dist/components/data-table/ConfirmDialog.js +30 -14
- package/dist/components/data-table/DataList.js +198 -138
- package/dist/components/data-table/DataTable.js +234 -168
- package/dist/components/data-table/DataTableBatchAction.js +27 -18
- package/dist/components/data-table/DataTableFilters.js +78 -53
- package/dist/components/data-table/DataTablePagination.js +104 -72
- package/dist/components/data-table/DataTableToolbar.js +65 -53
- package/dist/components/dynamic-form/ArrayController.js +103 -85
- package/dist/components/dynamic-form/CodeContent.js +36 -28
- package/dist/components/dynamic-form/Form.js +56 -43
- package/dist/components/dynamic-form/FormBody.js +10 -12
- package/dist/components/dynamic-form/FormElement.js +41 -31
- package/dist/components/dynamic-form/FormElementHeader.js +20 -12
- package/dist/components/dynamic-form/InputController.js +38 -36
- package/dist/components/dynamic-form/MarkdownContent.js +74 -53
- package/dist/components/dynamic-form/MermaidDiagram.js +24 -22
- package/dist/components/dynamic-form/ObjectController.js +32 -24
- package/dist/components/dynamic-form/fields/BaseFieldWrapper.js +47 -35
- package/dist/components/dynamic-form/fields/CheckboxField.js +48 -39
- package/dist/components/dynamic-form/fields/CodeViewField.js +50 -42
- package/dist/components/dynamic-form/fields/InputField.js +90 -62
- package/dist/components/dynamic-form/fields/MarkdownViewField.js +19 -16
- package/dist/components/dynamic-form/fields/RadioField.js +62 -46
- package/dist/components/dynamic-form/fields/SelectField.js +58 -40
- package/dist/components/dynamic-form/fields/SliderField.js +100 -94
- package/dist/components/dynamic-form/fields/SwitchField.js +61 -42
- package/dist/components/dynamic-form/fields/TextareaField.js +72 -53
- package/dist/components/dynamic-form/fields/utils/text-validation-utils.js +2 -4
- package/dist/components/dynamic-form/hooks/useArrayDefaultValue.js +5 -6
- package/dist/components/dynamic-form/hooks/useFieldConfig.js +20 -19
- package/dist/components/dynamic-form/hooks/useMergeParentKey.js +2 -4
- package/dist/components/dynamic-form/hooks/useSortPropertyNames.js +2 -4
- package/dist/components/feedback/ErrorAlert.js +17 -11
- package/dist/components/feedback/ErrorBoundary.js +14 -16
- package/dist/components/feedback/ErrorSnackbar.js +30 -13
- package/dist/components/feedback/LoadingCentered.js +28 -15
- package/dist/components/feedback/Snackbar.js +44 -43
- package/dist/components/feedback/index.js +5 -5
- package/dist/components/index.js +47 -47
- package/dist/components/layout/MainLayout.js +25 -17
- package/dist/components/layout/StudioSidebar.js +202 -132
- package/dist/components/lists/CustomListView.js +74 -49
- package/dist/components/lists/ListView.js +102 -66
- package/dist/components/loopstack-elements/link.js +104 -65
- package/dist/components/loopstack-elements/tool.js +142 -70
- package/dist/components/messages/CompletionMessagePaper.js +85 -53
- package/dist/components/page/PageBreadcrumbs.js +83 -64
- package/dist/components/ui/DiscordLogo.js +22 -16
- package/dist/components/ui/GoogleLogo.js +44 -40
- package/dist/components/ui/accordion.js +52 -31
- package/dist/components/ui/alert-dialog.js +109 -59
- package/dist/components/ui/alert.js +36 -22
- package/dist/components/ui/avatar.js +35 -21
- package/dist/components/ui/badge.js +17 -13
- package/dist/components/ui/breadcrumb.js +82 -46
- package/dist/components/ui/button-group.js +5 -5
- package/dist/components/ui/button.js +21 -17
- package/dist/components/ui/card.js +74 -40
- package/dist/components/ui/checkbox.js +23 -17
- package/dist/components/ui/collapsible.js +25 -17
- package/dist/components/ui/command.js +2 -1
- package/dist/components/ui/context-menu.js +52 -32
- package/dist/components/ui/dialog.js +107 -62
- package/dist/components/ui/drawer.js +99 -54
- package/dist/components/ui/dropdown-menu.js +159 -91
- package/dist/components/ui/hover-card.js +2 -1
- package/dist/components/ui/input-group.js +56 -36
- package/dist/components/ui/input.js +15 -11
- package/dist/components/ui/label.js +15 -11
- package/dist/components/ui/popover.js +38 -25
- package/dist/components/ui/radio-group.js +33 -22
- package/dist/components/ui/scroll-area.js +43 -28
- package/dist/components/ui/select.js +134 -73
- package/dist/components/ui/separator.js +17 -13
- package/dist/components/ui/sheet.js +105 -60
- package/dist/components/ui/sidebar.js +451 -269
- package/dist/components/ui/skeleton.js +14 -10
- package/dist/components/ui/slider.js +15 -17
- package/dist/components/ui/switch.js +21 -15
- package/dist/components/ui/table.js +85 -46
- package/dist/components/ui/tabs.js +45 -26
- package/dist/components/ui/textarea.js +14 -10
- package/dist/components/ui/tooltip.js +41 -26
- package/dist/components/ui-widgets/UiActions.js +37 -30
- package/dist/components/ui-widgets/UiWidget.js +46 -34
- package/dist/components/ui-widgets/widgets/AiPromptInput.js +42 -28
- package/dist/components/ui-widgets/widgets/ButtonFullWidth.js +21 -16
- package/dist/components/ui-widgets/widgets/SandboxRun.js +26 -19
- package/dist/components/ui-widgets/widgets/SubmitButton.js +20 -15
- package/dist/events/api-client-events.js +2 -4
- package/dist/events/sse-client-events.js +2 -4
- package/dist/features/code-explorer/CodeExplorer.js +2 -1
- package/dist/features/code-explorer/components/CodeExplorerTree.js +2 -2
- package/dist/features/code-explorer/components/CodeExplorerTreeNode.js +29 -31
- package/dist/features/code-explorer/components/FileContentViewer.js +148 -108
- package/dist/features/code-explorer/components/FileTabsBar.js +2 -1
- package/dist/features/code-explorer/components/FileTabsBarBase.js +169 -134
- 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 +39 -41
- package/dist/features/dashboard/Dashboard.js +121 -79
- package/dist/features/dashboard/RunItem.js +68 -50
- package/dist/features/dashboard/RunList.js +28 -17
- package/dist/features/debug/components/ConfigFlowViewer.js +67 -49
- package/dist/features/debug/components/WorkflowDebugHeader.js +46 -30
- package/dist/features/debug/components/WorkflowDebugLegend.js +68 -56
- package/dist/features/debug/components/WorkflowFlowViewer.js +96 -76
- package/dist/features/debug/components/workflow-flow/StateNode.js +102 -73
- package/dist/features/debug/components/workflow-flow/WorkflowGraph.js +40 -35
- package/dist/features/debug/components/workflow-flow/WorkflowTransitionEdge.js +94 -61
- package/dist/features/debug/index.js +3 -3
- package/dist/features/debug/lib/edge-paths.js +31 -33
- package/dist/features/debug/lib/flow-utils.js +145 -147
- package/dist/features/documents/DocumentRenderer.js +77 -73
- package/dist/features/documents/components/DocumentItem.js +24 -21
- package/dist/features/documents/components/DocumentList.js +45 -39
- package/dist/features/documents/components/DocumentMetadataPills.js +59 -44
- package/dist/features/documents/document-details/DocumentDetails.js +413 -298
- package/dist/features/documents/document-details/PromptDetails.js +142 -105
- package/dist/features/documents/index.js +4 -4
- package/dist/features/documents/renderers/AiMessage.js +48 -39
- package/dist/features/documents/renderers/AiMessageContent.js +164 -108
- package/dist/features/documents/renderers/ChoicesRenderer.js +89 -77
- package/dist/features/documents/renderers/ClaudeMessage.js +91 -74
- package/dist/features/documents/renderers/ConfirmPromptRenderer.js +53 -44
- package/dist/features/documents/renderers/DocumentDebugRenderer.js +30 -26
- package/dist/features/documents/renderers/DocumentFormRenderer.js +85 -69
- package/dist/features/documents/renderers/DocumentMessageRenderer.js +9 -10
- package/dist/features/documents/renderers/ErrorMessageRenderer.js +13 -11
- package/dist/features/documents/renderers/LinkMessageRenderer.js +14 -15
- package/dist/features/documents/renderers/MarkdownMessageRenderer.js +10 -8
- package/dist/features/documents/renderers/PlainMessageRenderer.js +9 -7
- package/dist/features/documents/renderers/SecretInputRenderer.js +35 -37
- package/dist/features/documents/renderers/TextPromptRenderer.js +54 -45
- package/dist/features/documents/renderers/useDocumentTransition.js +7 -9
- package/dist/features/health/LocalHealthCheck.js +53 -54
- package/dist/features/health/index.js +1 -1
- package/dist/features/oauth/OAuthCallbackPage.js +2 -2
- package/dist/features/oauth/OAuthPromptRenderer.js +197 -148
- package/dist/features/oauth/index.js +2 -2
- package/dist/features/oauth/useOAuthPopup.js +71 -52
- package/dist/features/runs/Runs.js +187 -145
- package/dist/features/workbench/Workbench.js +98 -72
- package/dist/features/workbench/WorkflowItem.js +68 -49
- package/dist/features/workbench/WorkflowList.js +66 -51
- package/dist/features/workbench/components/NewRunDialog.js +309 -212
- package/dist/features/workbench/components/RemoteFileTabsBar.js +17 -18
- package/dist/features/workbench/components/RemoteFileTree.js +85 -54
- package/dist/features/workbench/components/WorkbenchFilesPanel.js +63 -52
- package/dist/features/workbench/components/WorkbenchFloatingPanel.js +51 -34
- package/dist/features/workbench/components/WorkbenchFlowPanel.js +44 -35
- package/dist/features/workbench/components/WorkbenchIconSidebar.js +68 -50
- package/dist/features/workbench/components/WorkbenchPreviewPanel.js +49 -51
- package/dist/features/workbench/components/WorkbenchSecretsPanel.js +172 -143
- package/dist/features/workbench/components/WorkbenchSettingsModal.js +60 -49
- package/dist/features/workbench/components/WorkflowForms.js +23 -17
- package/dist/features/workbench/components/WorkflowHistoryItem.js +122 -96
- package/dist/features/workbench/components/WorkflowHistoryList.js +54 -31
- package/dist/features/workbench/components/buttons/WorkflowButtons.js +99 -70
- package/dist/features/workbench/hooks/useAutoScrollBottom.js +25 -21
- package/dist/features/workbench/hooks/useScrollToListItem.js +21 -20
- package/dist/features/workbench/hooks/useWorkflowData.js +44 -31
- package/dist/features/workbench/hooks/useWorkflowListState.js +12 -13
- package/dist/features/workbench/index.js +7 -7
- package/dist/features/workbench/providers/RemoteFileExplorerProvider.js +138 -123
- package/dist/features/workbench/providers/ScrollProvider.js +19 -15
- package/dist/features/workbench/providers/WorkbenchLayoutProvider.js +75 -76
- package/dist/features/workspaces/Workspaces.js +226 -161
- package/dist/features/workspaces/components/CreateWorkspace.js +194 -137
- package/dist/features/workspaces/components/EnvironmentSlotSelector.js +25 -27
- package/dist/features/workspaces/components/ExecutionTimeline.js +185 -143
- package/dist/features/workspaces/components/NewWorkflowRunDialog.js +26 -18
- package/dist/features/workspaces/components/WorkflowRunForm.js +133 -85
- package/dist/features/workspaces/components/WorkspaceHomePage.js +80 -59
- package/dist/features/workspaces/components/workflow-form/ArgumentsView.js +69 -52
- package/dist/features/workspaces/components/workflow-form/HeaderSection.js +41 -27
- package/dist/features/workspaces/components/workflow-form/SelectionView.js +103 -64
- package/dist/features/workspaces/index.js +3 -3
- package/dist/hooks/index.js +6 -6
- package/dist/hooks/query-keys.js +31 -33
- package/dist/hooks/use-mobile.js +11 -12
- package/dist/hooks/useApi.js +14 -16
- package/dist/hooks/useAuth.js +53 -38
- package/dist/hooks/useConfig.js +37 -26
- package/dist/hooks/useDashboard.js +15 -12
- package/dist/hooks/useDebounce.js +11 -12
- package/dist/hooks/useDocuments.js +35 -23
- package/dist/hooks/useFiles.js +2 -1
- package/dist/hooks/useProcessor.js +17 -14
- package/dist/hooks/useSecrets.js +64 -45
- package/dist/hooks/useWorkflows.js +161 -109
- package/dist/hooks/useWorkspaces.js +123 -83
- package/dist/index.d.ts +1304 -0
- package/dist/index.js +80 -80
- package/dist/lib/requireParam.js +2 -4
- package/dist/lib/utils.js +5 -7
- package/dist/node_modules/@braintree/sanitize-url/dist/constants.js +4 -6
- package/dist/node_modules/@braintree/sanitize-url/dist/index.js +6 -8
- package/dist/node_modules/@chevrotain/gast/lib/src/helpers.js +17 -19
- package/dist/node_modules/@chevrotain/gast/lib/src/model.js +71 -73
- package/dist/node_modules/@chevrotain/gast/lib/src/visitor.js +13 -16
- 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 +2 -4
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/character-classes.js +34 -36
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/regexp-parser.js +110 -138
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/utils.js +11 -13
- package/dist/node_modules/@chevrotain/utils/lib/src/print.js +3 -5
- package/dist/node_modules/@chevrotain/utils/lib/src/timer.js +2 -4
- package/dist/node_modules/@chevrotain/utils/lib/src/to-fast-properties.js +2 -4
- package/dist/node_modules/@dagrejs/dagre/dist/dagre.esm.js +1913 -1812
- package/dist/node_modules/@iconify/utils/lib/customisations/defaults.js +6 -8
- package/dist/node_modules/@iconify/utils/lib/icon/defaults.js +8 -10
- package/dist/node_modules/@iconify/utils/lib/icon/merge.js +6 -8
- package/dist/node_modules/@iconify/utils/lib/icon/name.js +6 -8
- package/dist/node_modules/@iconify/utils/lib/icon/transformations.js +2 -4
- package/dist/node_modules/@iconify/utils/lib/icon-set/get-icon.js +10 -12
- package/dist/node_modules/@iconify/utils/lib/icon-set/tree.js +2 -4
- package/dist/node_modules/@iconify/utils/lib/svg/build.js +18 -20
- package/dist/node_modules/@iconify/utils/lib/svg/defs.js +6 -8
- package/dist/node_modules/@iconify/utils/lib/svg/html.js +2 -4
- package/dist/node_modules/@iconify/utils/lib/svg/id.js +8 -10
- package/dist/node_modules/@iconify/utils/lib/svg/size.js +5 -7
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/architecture-YZFGNWBL.js +2 -2
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-2KRD3SAO.js +17 -20
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-67CJDMHE.js +17 -20
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-7N4EOEYR.js +23 -28
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-AA7GKIK3.js +21 -26
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-CIAEETIT.js +17 -20
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-FOC6F5B3.js +17 -20
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-K5T4RW27.js +425 -436
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-KGLVRYIC.js +17 -20
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-LIHQZDEY.js +38 -45
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-ORNJ4GCN.js +22 -27
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/gitGraph-7Q5UKJZL.js +2 -2
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-OMHHGYJF.js +2 -2
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-4T2RLAQJ.js +2 -2
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-ZZUOXDRM.js +2 -2
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-PYXPWWZC.js +2 -2
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treeView-SZITEDCU.js +2 -2
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-W4RFUUIX.js +2 -2
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/wardley-RL74JXVD.js +2 -2
- package/dist/node_modules/@mermaid-js/parser/dist/mermaid-parser.core.js +52 -56
- package/dist/node_modules/@shikijs/core/dist/index.js +1119 -583
- package/dist/node_modules/@shikijs/engine-oniguruma/dist/index.js +148 -163
- package/dist/node_modules/@shikijs/engine-oniguruma/dist/wasm-inlined.js +2 -4
- package/dist/node_modules/@shikijs/langs/dist/abap.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/actionscript-3.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/ada.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/angular-expression.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/angular-html.js +13 -15
- package/dist/node_modules/@shikijs/langs/dist/angular-inline-style.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/angular-inline-template.js +7 -9
- package/dist/node_modules/@shikijs/langs/dist/angular-let-declaration.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/angular-template-blocks.js +7 -9
- package/dist/node_modules/@shikijs/langs/dist/angular-template.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/angular-ts.js +15 -17
- package/dist/node_modules/@shikijs/langs/dist/apache.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/apex.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/apl.js +13 -15
- package/dist/node_modules/@shikijs/langs/dist/applescript.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/ara.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/asciidoc.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/asm.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/astro.js +15 -17
- package/dist/node_modules/@shikijs/langs/dist/awk.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/ballerina.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/bat.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/beancount.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/berry.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/bibtex.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/bicep.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/bird2.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/blade.js +17 -19
- package/dist/node_modules/@shikijs/langs/dist/bsl.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/c.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/c3.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/cadence.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/cairo.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/clarity.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/clojure.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/cmake.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/cobol.js +7 -9
- package/dist/node_modules/@shikijs/langs/dist/codeowners.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/codeql.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/coffee.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/common-lisp.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/coq.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/cpp-macro.js +9 -11
- package/dist/node_modules/@shikijs/langs/dist/cpp.js +11 -13
- package/dist/node_modules/@shikijs/langs/dist/crystal.js +15 -17
- package/dist/node_modules/@shikijs/langs/dist/csharp.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/css.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/csv.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/cue.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/cypher.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/d.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/dart.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/dax.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/desktop.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/diff.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/docker.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/dotenv.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/dream-maker.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/edge.js +9 -11
- package/dist/node_modules/@shikijs/langs/dist/elixir.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/elm.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/emacs-lisp.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/erb.js +7 -9
- package/dist/node_modules/@shikijs/langs/dist/erlang.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/es-tag-css.js +9 -11
- package/dist/node_modules/@shikijs/langs/dist/es-tag-glsl.js +9 -11
- package/dist/node_modules/@shikijs/langs/dist/es-tag-html.js +9 -11
- package/dist/node_modules/@shikijs/langs/dist/es-tag-sql.js +7 -9
- package/dist/node_modules/@shikijs/langs/dist/es-tag-xml.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/fennel.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/fish.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/fluent.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/fortran-fixed-form.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/fortran-free-form.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/fsharp.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/gdresource.js +7 -9
- package/dist/node_modules/@shikijs/langs/dist/gdscript.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/gdshader.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/genie.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/gherkin.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/git-commit.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/git-rebase.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/gleam.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/glimmer-js.js +11 -13
- package/dist/node_modules/@shikijs/langs/dist/glimmer-ts.js +11 -13
- package/dist/node_modules/@shikijs/langs/dist/glsl.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/gn.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/gnuplot.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/go.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/graphql.js +11 -13
- package/dist/node_modules/@shikijs/langs/dist/groovy.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/hack.js +7 -9
- package/dist/node_modules/@shikijs/langs/dist/haml.js +7 -9
- package/dist/node_modules/@shikijs/langs/dist/handlebars.js +11 -13
- package/dist/node_modules/@shikijs/langs/dist/haskell.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/haxe.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/hcl.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/hjson.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/hlsl.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/html-derivative.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/html.js +7 -9
- package/dist/node_modules/@shikijs/langs/dist/http.js +11 -13
- package/dist/node_modules/@shikijs/langs/dist/hurl.js +9 -11
- package/dist/node_modules/@shikijs/langs/dist/hxml.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/hy.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/imba.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/ini.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/java.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/javascript.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/jinja-html.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/jinja.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/jison.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/json.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/json5.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/jsonc.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/jsonl.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/jsonnet.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/jssm.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/jsx.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/julia.js +13 -15
- package/dist/node_modules/@shikijs/langs/dist/just.js +15 -17
- package/dist/node_modules/@shikijs/langs/dist/kdl.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/kotlin.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/kusto.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/latex.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/lean.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/less.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/liquid.js +11 -13
- package/dist/node_modules/@shikijs/langs/dist/llvm.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/log.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/logo.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/lua.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/luau.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/make.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/markdown-nix.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/markdown-vue.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/markdown.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/marko.js +11 -13
- package/dist/node_modules/@shikijs/langs/dist/matlab.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/mdc.js +9 -11
- package/dist/node_modules/@shikijs/langs/dist/mdx.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/mermaid.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/mipsasm.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/mojo.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/moonbit.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/move.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/narrat.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/nextflow-groovy.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/nextflow.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/nginx.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/nim.js +17 -19
- package/dist/node_modules/@shikijs/langs/dist/nix.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/nushell.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/objective-c.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/objective-cpp.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/ocaml.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/odin.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/openscad.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/pascal.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/perl.js +13 -15
- package/dist/node_modules/@shikijs/langs/dist/php.js +15 -17
- package/dist/node_modules/@shikijs/langs/dist/pkl.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/plsql.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/po.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/polar.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/postcss.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/powerquery.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/powershell.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/prisma.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/prolog.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/proto.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/pug.js +9 -11
- package/dist/node_modules/@shikijs/langs/dist/puppet.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/purescript.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/python.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/qml.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/qmldir.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/qss.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/r.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/racket.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/raku.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/razor.js +7 -9
- package/dist/node_modules/@shikijs/langs/dist/reg.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/regexp.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/rel.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/riscv.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/ron.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/rosmsg.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/rst.js +19 -21
- package/dist/node_modules/@shikijs/langs/dist/ruby.js +27 -29
- package/dist/node_modules/@shikijs/langs/dist/rust.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/sas.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/sass.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/scala.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/scheme.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/scss.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/sdbl.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/shaderlab.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/shellscript.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/shellsession.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/smalltalk.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/solidity.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/soy.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/sparql.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/splunk.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/sql.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/ssh-config.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/stata.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/stylus.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/surrealql.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/svelte.js +11 -13
- package/dist/node_modules/@shikijs/langs/dist/swift.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/system-verilog.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/systemd.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/talonscript.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/tasl.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/tcl.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/templ.js +9 -11
- package/dist/node_modules/@shikijs/langs/dist/terraform.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/tex.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/toml.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/ts-tags.js +15 -17
- package/dist/node_modules/@shikijs/langs/dist/tsv.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/tsx.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/turtle.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/twig.js +15 -17
- package/dist/node_modules/@shikijs/langs/dist/typescript.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/typespec.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/typst.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/v.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/vala.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/vb.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/verilog.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/vhdl.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/viml.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/vue-directives.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/vue-html.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/vue-interpolations.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/vue-sfc-style-variable-injection.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/vue-vine.js +15 -17
- package/dist/node_modules/@shikijs/langs/dist/vue.js +23 -25
- package/dist/node_modules/@shikijs/langs/dist/vyper.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/wasm.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/wenyan.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/wgsl.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/wikitext.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/wit.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/wolfram.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/xml.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/xsl.js +3 -5
- package/dist/node_modules/@shikijs/langs/dist/yaml.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/zenscript.js +2 -3
- package/dist/node_modules/@shikijs/langs/dist/zig.js +2 -3
- package/dist/node_modules/@shikijs/themes/dist/andromeeda.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/aurora-x.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/ayu-dark.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/ayu-light.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/ayu-mirage.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/catppuccin-frappe.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/catppuccin-latte.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/catppuccin-macchiato.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/catppuccin-mocha.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/dark-plus.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/dracula-soft.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/dracula.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/everforest-dark.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/everforest-light.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/github-dark-default.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/github-dark-dimmed.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/github-dark-high-contrast.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/github-dark.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/github-light-default.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/github-light-high-contrast.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/github-light.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-hard.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-medium.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-soft.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-hard.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-medium.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-soft.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/horizon-bright.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/horizon.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/houston.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/kanagawa-dragon.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/kanagawa-lotus.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/kanagawa-wave.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/laserwave.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/light-plus.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/material-theme-darker.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/material-theme-lighter.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/material-theme-ocean.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/material-theme-palenight.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/material-theme.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/min-dark.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/min-light.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/monokai.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/night-owl-light.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/night-owl.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/nord.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/one-dark-pro.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/one-light.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/plastic.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/poimandres.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/red.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/rose-pine-dawn.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/rose-pine-moon.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/rose-pine.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/slack-dark.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/slack-ochin.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/snazzy-light.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/solarized-dark.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/solarized-light.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/synthwave-84.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/tokyo-night.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/vesper.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/vitesse-black.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/vitesse-dark.js +2 -4
- package/dist/node_modules/@shikijs/themes/dist/vitesse-light.js +2 -4
- package/dist/node_modules/@shikijs/types/dist/index.js +2 -4
- package/dist/node_modules/@shikijs/vscode-textmate/dist/index.js +947 -949
- package/dist/node_modules/@ungap/structured-clone/esm/deserialize.js +30 -30
- package/dist/node_modules/@ungap/structured-clone/esm/index.js +4 -6
- package/dist/node_modules/@ungap/structured-clone/esm/serialize.js +64 -64
- package/dist/node_modules/@ungap/structured-clone/esm/types.js +2 -0
- package/dist/node_modules/@upsetjs/venn.js/build/venn.esm.js +693 -695
- package/dist/node_modules/@xyflow/react/dist/esm/index.js +881 -883
- package/dist/node_modules/@xyflow/system/dist/esm/index.js +1221 -1223
- package/dist/node_modules/bail/index.js +2 -4
- package/dist/node_modules/ccount/index.js +2 -4
- package/dist/node_modules/character-entities-html4/index.js +2 -4
- package/dist/node_modules/character-entities-legacy/index.js +2 -4
- package/dist/node_modules/chevrotain/lib/src/api.js +10 -10
- package/dist/node_modules/chevrotain/lib/src/lang/lang_extensions.js +4 -6
- package/dist/node_modules/chevrotain/lib/src/parse/constants.js +2 -4
- package/dist/node_modules/chevrotain/lib/src/parse/cst/cst.js +9 -11
- package/dist/node_modules/chevrotain/lib/src/parse/cst/cst_visitor.js +15 -17
- package/dist/node_modules/chevrotain/lib/src/parse/errors_public.js +17 -19
- package/dist/node_modules/chevrotain/lib/src/parse/exceptions_public.js +24 -26
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/checks.js +201 -203
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/first.js +16 -18
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/follow.js +17 -19
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_resolver_public.js +12 -14
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/interpreter.js +140 -142
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/keys.js +4 -5
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/llk_lookahead.js +25 -27
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/lookahead.js +149 -151
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/resolver.js +14 -16
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/rest.js +38 -40
- package/dist/node_modules/chevrotain/lib/src/parse/parser/parser.js +64 -65
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/error_handler.js +11 -13
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/gast_recorder.js +101 -103
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/lexer_adapter.js +5 -7
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/looksahead.js +45 -47
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.js +6 -8
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.js +73 -75
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.js +180 -182
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recoverable.js +23 -24
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/tree_builder.js +26 -28
- package/dist/node_modules/chevrotain/lib/src/parse/parser/utils/apply_mixins.js +2 -4
- package/dist/node_modules/chevrotain/lib/src/scan/lexer.js +246 -246
- package/dist/node_modules/chevrotain/lib/src/scan/lexer_errors_public.js +2 -4
- package/dist/node_modules/chevrotain/lib/src/scan/lexer_public.js +31 -33
- package/dist/node_modules/chevrotain/lib/src/scan/reg_exp.js +64 -67
- package/dist/node_modules/chevrotain/lib/src/scan/reg_exp_parser.js +10 -12
- package/dist/node_modules/chevrotain/lib/src/scan/tokens.js +35 -36
- package/dist/node_modules/chevrotain/lib/src/scan/tokens_public.js +26 -28
- package/dist/node_modules/chevrotain-allstar/lib/all-star-lookahead.js +240 -242
- package/dist/node_modules/chevrotain-allstar/lib/atn.js +133 -134
- package/dist/node_modules/chevrotain-allstar/lib/dfa.js +10 -11
- package/dist/node_modules/chevrotain-allstar/lib/index.js +1 -1
- package/dist/node_modules/classcat/index.js +3 -5
- package/dist/node_modules/comma-separated-tokens/index.js +3 -5
- package/dist/node_modules/cose-base/cose-base.js +21 -21
- package/dist/node_modules/cytoscape/dist/cytoscape.esm.js +7940 -7937
- package/dist/node_modules/cytoscape-cose-bilkent/cytoscape-cose-bilkent.js +6 -8
- package/dist/node_modules/cytoscape-fcose/cytoscape-fcose.js +6 -8
- 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 +4 -6
- package/dist/node_modules/d3/src/index.js +95 -95
- package/dist/node_modules/d3-array/src/ascending.js +2 -4
- package/dist/node_modules/d3-array/src/bisect.js +8 -8
- package/dist/node_modules/d3-array/src/bisector.js +6 -8
- package/dist/node_modules/d3-array/src/descending.js +2 -4
- package/dist/node_modules/d3-array/src/max.js +2 -4
- package/dist/node_modules/d3-array/src/min.js +2 -4
- package/dist/node_modules/d3-array/src/number.js +2 -4
- package/dist/node_modules/d3-array/src/range.js +2 -4
- package/dist/node_modules/d3-array/src/ticks.js +11 -13
- package/dist/node_modules/d3-axis/src/axis.js +46 -48
- package/dist/node_modules/d3-axis/src/identity.js +2 -4
- package/dist/node_modules/d3-brush/src/brush.js +4 -6
- package/dist/node_modules/d3-color/src/color.js +84 -86
- package/dist/node_modules/d3-color/src/define.js +3 -5
- package/dist/node_modules/d3-color/src/lab.js +43 -45
- package/dist/node_modules/d3-color/src/math.js +2 -4
- package/dist/node_modules/d3-dispatch/src/dispatch.js +17 -18
- package/dist/node_modules/d3-drag/src/constant.js +2 -4
- package/dist/node_modules/d3-drag/src/drag.js +75 -77
- package/dist/node_modules/d3-drag/src/event.js +3 -5
- package/dist/node_modules/d3-drag/src/nodrag.js +9 -11
- package/dist/node_modules/d3-drag/src/noevent.js +4 -6
- package/dist/node_modules/d3-ease/src/cubic.js +2 -4
- package/dist/node_modules/d3-format/src/defaultLocale.js +6 -8
- package/dist/node_modules/d3-format/src/exponent.js +4 -6
- package/dist/node_modules/d3-format/src/formatDecimal.js +3 -5
- package/dist/node_modules/d3-format/src/formatGroup.js +2 -4
- package/dist/node_modules/d3-format/src/formatNumerals.js +2 -4
- package/dist/node_modules/d3-format/src/formatPrefixAuto.js +8 -10
- package/dist/node_modules/d3-format/src/formatRounded.js +4 -6
- package/dist/node_modules/d3-format/src/formatSpecifier.js +8 -10
- package/dist/node_modules/d3-format/src/formatTrim.js +2 -4
- package/dist/node_modules/d3-format/src/formatTypes.js +13 -15
- package/dist/node_modules/d3-format/src/identity.js +2 -4
- package/dist/node_modules/d3-format/src/locale.js +31 -33
- package/dist/node_modules/d3-format/src/precisionFixed.js +4 -6
- package/dist/node_modules/d3-format/src/precisionPrefix.js +4 -6
- package/dist/node_modules/d3-format/src/precisionRound.js +4 -6
- package/dist/node_modules/d3-hierarchy/src/accessors.js +2 -4
- package/dist/node_modules/d3-hierarchy/src/constant.js +3 -5
- package/dist/node_modules/d3-hierarchy/src/hierarchy/ancestors.js +2 -4
- package/dist/node_modules/d3-hierarchy/src/hierarchy/count.js +4 -6
- package/dist/node_modules/d3-hierarchy/src/hierarchy/descendants.js +2 -4
- package/dist/node_modules/d3-hierarchy/src/hierarchy/each.js +2 -4
- package/dist/node_modules/d3-hierarchy/src/hierarchy/eachAfter.js +2 -4
- package/dist/node_modules/d3-hierarchy/src/hierarchy/eachBefore.js +2 -4
- package/dist/node_modules/d3-hierarchy/src/hierarchy/find.js +2 -4
- package/dist/node_modules/d3-hierarchy/src/hierarchy/index.js +44 -46
- package/dist/node_modules/d3-hierarchy/src/hierarchy/iterator.js +2 -4
- package/dist/node_modules/d3-hierarchy/src/hierarchy/leaves.js +2 -4
- package/dist/node_modules/d3-hierarchy/src/hierarchy/links.js +2 -4
- package/dist/node_modules/d3-hierarchy/src/hierarchy/path.js +4 -6
- package/dist/node_modules/d3-hierarchy/src/hierarchy/sort.js +2 -4
- package/dist/node_modules/d3-hierarchy/src/hierarchy/sum.js +2 -4
- package/dist/node_modules/d3-hierarchy/src/treemap/dice.js +2 -4
- package/dist/node_modules/d3-hierarchy/src/treemap/index.js +14 -16
- package/dist/node_modules/d3-hierarchy/src/treemap/round.js +2 -4
- package/dist/node_modules/d3-hierarchy/src/treemap/slice.js +2 -4
- package/dist/node_modules/d3-hierarchy/src/treemap/squarify.js +9 -11
- package/dist/node_modules/d3-interpolate/src/array.js +4 -6
- package/dist/node_modules/d3-interpolate/src/basis.js +4 -6
- package/dist/node_modules/d3-interpolate/src/basisClosed.js +4 -6
- package/dist/node_modules/d3-interpolate/src/color.js +17 -19
- package/dist/node_modules/d3-interpolate/src/constant.js +2 -4
- package/dist/node_modules/d3-interpolate/src/date.js +2 -4
- package/dist/node_modules/d3-interpolate/src/hcl.js +6 -8
- package/dist/node_modules/d3-interpolate/src/number.js +2 -4
- package/dist/node_modules/d3-interpolate/src/numberArray.js +3 -5
- package/dist/node_modules/d3-interpolate/src/object.js +4 -6
- package/dist/node_modules/d3-interpolate/src/rgb.js +9 -11
- package/dist/node_modules/d3-interpolate/src/round.js +2 -4
- package/dist/node_modules/d3-interpolate/src/string.js +14 -16
- package/dist/node_modules/d3-interpolate/src/transform/decompose.js +5 -7
- package/dist/node_modules/d3-interpolate/src/transform/index.js +11 -13
- package/dist/node_modules/d3-interpolate/src/transform/parse.js +8 -10
- package/dist/node_modules/d3-interpolate/src/value.js +12 -14
- package/dist/node_modules/d3-interpolate/src/zoom.js +11 -13
- package/dist/node_modules/d3-path/src/path.js +14 -16
- package/dist/node_modules/d3-sankey/node_modules/d3-array/src/max.js +2 -4
- package/dist/node_modules/d3-sankey/node_modules/d3-array/src/min.js +2 -4
- package/dist/node_modules/d3-sankey/node_modules/d3-array/src/sum.js +2 -4
- package/dist/node_modules/d3-sankey/node_modules/d3-path/src/path.js +12 -13
- package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/array.js +2 -4
- package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/constant.js +2 -4
- package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/link/index.js +17 -19
- package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/point.js +3 -5
- package/dist/node_modules/d3-sankey/src/align.js +10 -12
- package/dist/node_modules/d3-sankey/src/constant.js +2 -4
- package/dist/node_modules/d3-sankey/src/sankey.js +168 -170
- package/dist/node_modules/d3-sankey/src/sankeyLinkHorizontal.js +6 -8
- package/dist/node_modules/d3-scale/src/band.js +9 -11
- package/dist/node_modules/d3-scale/src/constant.js +2 -4
- package/dist/node_modules/d3-scale/src/continuous.js +47 -49
- package/dist/node_modules/d3-scale/src/init.js +2 -4
- package/dist/node_modules/d3-scale/src/linear.js +13 -15
- package/dist/node_modules/d3-scale/src/nice.js +2 -4
- package/dist/node_modules/d3-scale/src/number.js +2 -4
- package/dist/node_modules/d3-scale/src/ordinal.js +16 -18
- package/dist/node_modules/d3-scale/src/tickFormat.js +14 -16
- package/dist/node_modules/d3-scale/src/time.js +34 -36
- package/dist/node_modules/d3-scale-chromatic/src/categorical/Tableau10.js +3 -5
- package/dist/node_modules/d3-scale-chromatic/src/colors.js +2 -4
- package/dist/node_modules/d3-selection/src/array.js +2 -4
- package/dist/node_modules/d3-selection/src/constant.js +2 -4
- package/dist/node_modules/d3-selection/src/creator.js +10 -12
- package/dist/node_modules/d3-selection/src/matcher.js +3 -5
- package/dist/node_modules/d3-selection/src/namespace.js +5 -7
- package/dist/node_modules/d3-selection/src/namespaces.js +3 -5
- package/dist/node_modules/d3-selection/src/pointer.js +4 -6
- package/dist/node_modules/d3-selection/src/select.js +4 -6
- package/dist/node_modules/d3-selection/src/selection/append.js +4 -6
- package/dist/node_modules/d3-selection/src/selection/attr.js +17 -19
- package/dist/node_modules/d3-selection/src/selection/call.js +2 -4
- package/dist/node_modules/d3-selection/src/selection/classed.js +23 -25
- package/dist/node_modules/d3-selection/src/selection/clone.js +5 -7
- package/dist/node_modules/d3-selection/src/selection/data.js +16 -18
- package/dist/node_modules/d3-selection/src/selection/datum.js +2 -4
- package/dist/node_modules/d3-selection/src/selection/dispatch.js +10 -12
- package/dist/node_modules/d3-selection/src/selection/each.js +2 -4
- package/dist/node_modules/d3-selection/src/selection/empty.js +2 -4
- package/dist/node_modules/d3-selection/src/selection/enter.js +11 -13
- package/dist/node_modules/d3-selection/src/selection/exit.js +5 -7
- package/dist/node_modules/d3-selection/src/selection/filter.js +6 -8
- package/dist/node_modules/d3-selection/src/selection/html.js +6 -8
- package/dist/node_modules/d3-selection/src/selection/index.js +79 -80
- package/dist/node_modules/d3-selection/src/selection/insert.js +6 -8
- package/dist/node_modules/d3-selection/src/selection/iterator.js +2 -4
- package/dist/node_modules/d3-selection/src/selection/join.js +2 -4
- package/dist/node_modules/d3-selection/src/selection/lower.js +4 -6
- package/dist/node_modules/d3-selection/src/selection/merge.js +4 -6
- package/dist/node_modules/d3-selection/src/selection/node.js +2 -4
- package/dist/node_modules/d3-selection/src/selection/nodes.js +2 -4
- package/dist/node_modules/d3-selection/src/selection/on.js +9 -11
- package/dist/node_modules/d3-selection/src/selection/order.js +2 -4
- package/dist/node_modules/d3-selection/src/selection/property.js +6 -8
- package/dist/node_modules/d3-selection/src/selection/raise.js +4 -6
- package/dist/node_modules/d3-selection/src/selection/remove.js +4 -6
- package/dist/node_modules/d3-selection/src/selection/select.js +6 -8
- package/dist/node_modules/d3-selection/src/selection/selectAll.js +9 -11
- package/dist/node_modules/d3-selection/src/selection/selectChild.js +8 -10
- package/dist/node_modules/d3-selection/src/selection/selectChildren.js +8 -10
- package/dist/node_modules/d3-selection/src/selection/size.js +2 -4
- package/dist/node_modules/d3-selection/src/selection/sort.js +6 -8
- package/dist/node_modules/d3-selection/src/selection/sparse.js +2 -4
- package/dist/node_modules/d3-selection/src/selection/style.js +12 -14
- package/dist/node_modules/d3-selection/src/selection/text.js +6 -8
- package/dist/node_modules/d3-selection/src/selector.js +4 -6
- package/dist/node_modules/d3-selection/src/selectorAll.js +4 -6
- package/dist/node_modules/d3-selection/src/sourceEvent.js +2 -4
- package/dist/node_modules/d3-selection/src/window.js +2 -4
- package/dist/node_modules/d3-shape/src/arc.js +36 -38
- package/dist/node_modules/d3-shape/src/array.js +2 -3
- package/dist/node_modules/d3-shape/src/constant.js +2 -4
- package/dist/node_modules/d3-shape/src/curve/basis.js +8 -10
- package/dist/node_modules/d3-shape/src/curve/basisClosed.js +16 -18
- package/dist/node_modules/d3-shape/src/curve/basisOpen.js +7 -9
- package/dist/node_modules/d3-shape/src/curve/bump.js +13 -15
- package/dist/node_modules/d3-shape/src/curve/bundle.js +7 -9
- package/dist/node_modules/d3-shape/src/curve/cardinal.js +8 -10
- package/dist/node_modules/d3-shape/src/curve/cardinalClosed.js +10 -12
- package/dist/node_modules/d3-shape/src/curve/cardinalOpen.js +7 -9
- package/dist/node_modules/d3-shape/src/curve/catmullRom.js +17 -19
- package/dist/node_modules/d3-shape/src/curve/catmullRomClosed.js +11 -13
- package/dist/node_modules/d3-shape/src/curve/catmullRomOpen.js +8 -10
- package/dist/node_modules/d3-shape/src/curve/linear.js +5 -7
- package/dist/node_modules/d3-shape/src/curve/linearClosed.js +10 -12
- package/dist/node_modules/d3-shape/src/curve/monotone.js +21 -23
- package/dist/node_modules/d3-shape/src/curve/natural.js +7 -9
- package/dist/node_modules/d3-shape/src/curve/step.js +17 -19
- package/dist/node_modules/d3-shape/src/descending.js +2 -4
- package/dist/node_modules/d3-shape/src/identity.js +2 -4
- package/dist/node_modules/d3-shape/src/line.js +17 -19
- package/dist/node_modules/d3-shape/src/math.js +6 -8
- package/dist/node_modules/d3-shape/src/noop.js +2 -4
- package/dist/node_modules/d3-shape/src/path.js +4 -6
- package/dist/node_modules/d3-shape/src/pie.js +13 -15
- package/dist/node_modules/d3-shape/src/point.js +3 -5
- package/dist/node_modules/d3-time/src/day.js +15 -17
- package/dist/node_modules/d3-time/src/duration.js +2 -4
- package/dist/node_modules/d3-time/src/hour.js +14 -16
- package/dist/node_modules/d3-time/src/interval.js +5 -7
- package/dist/node_modules/d3-time/src/millisecond.js +5 -7
- package/dist/node_modules/d3-time/src/minute.js +14 -16
- package/dist/node_modules/d3-time/src/month.js +12 -14
- package/dist/node_modules/d3-time/src/second.js +7 -9
- package/dist/node_modules/d3-time/src/ticks.js +64 -66
- package/dist/node_modules/d3-time/src/week.js +19 -21
- package/dist/node_modules/d3-time/src/year.js +8 -10
- package/dist/node_modules/d3-time-format/src/defaultLocale.js +6 -8
- package/dist/node_modules/d3-time-format/src/locale.js +344 -346
- package/dist/node_modules/d3-timer/src/timeout.js +4 -6
- package/dist/node_modules/d3-timer/src/timer.js +31 -33
- package/dist/node_modules/d3-transition/src/index.js +2 -2
- package/dist/node_modules/d3-transition/src/interrupt.js +3 -4
- package/dist/node_modules/d3-transition/src/selection/index.js +4 -5
- package/dist/node_modules/d3-transition/src/selection/interrupt.js +4 -6
- package/dist/node_modules/d3-transition/src/selection/transition.js +14 -16
- package/dist/node_modules/d3-transition/src/transition/attr.js +26 -28
- package/dist/node_modules/d3-transition/src/transition/attrTween.js +11 -13
- package/dist/node_modules/d3-transition/src/transition/delay.js +9 -11
- package/dist/node_modules/d3-transition/src/transition/duration.js +9 -11
- package/dist/node_modules/d3-transition/src/transition/ease.js +6 -8
- package/dist/node_modules/d3-transition/src/transition/easeVarying.js +6 -8
- package/dist/node_modules/d3-transition/src/transition/end.js +4 -6
- package/dist/node_modules/d3-transition/src/transition/filter.js +6 -8
- package/dist/node_modules/d3-transition/src/transition/index.js +61 -63
- package/dist/node_modules/d3-transition/src/transition/interpolate.js +7 -9
- package/dist/node_modules/d3-transition/src/transition/merge.js +4 -6
- package/dist/node_modules/d3-transition/src/transition/on.js +7 -9
- package/dist/node_modules/d3-transition/src/transition/remove.js +4 -6
- package/dist/node_modules/d3-transition/src/transition/schedule.js +18 -20
- package/dist/node_modules/d3-transition/src/transition/select.js +8 -10
- package/dist/node_modules/d3-transition/src/transition/selectAll.js +8 -10
- package/dist/node_modules/d3-transition/src/transition/selection.js +5 -7
- package/dist/node_modules/d3-transition/src/transition/style.js +19 -21
- package/dist/node_modules/d3-transition/src/transition/styleTween.js +6 -8
- package/dist/node_modules/d3-transition/src/transition/text.js +6 -8
- package/dist/node_modules/d3-transition/src/transition/textTween.js +6 -8
- package/dist/node_modules/d3-transition/src/transition/transition.js +8 -10
- package/dist/node_modules/d3-transition/src/transition/tween.js +12 -14
- package/dist/node_modules/d3-zoom/src/constant.js +2 -4
- package/dist/node_modules/d3-zoom/src/event.js +2 -4
- package/dist/node_modules/d3-zoom/src/index.js +2 -2
- package/dist/node_modules/d3-zoom/src/noevent.js +3 -5
- package/dist/node_modules/d3-zoom/src/transform.js +10 -12
- package/dist/node_modules/d3-zoom/src/zoom.js +114 -116
- package/dist/node_modules/dagre-d3-es/src/dagre/acyclic.js +12 -14
- package/dist/node_modules/dagre-d3-es/src/dagre/add-border-segments.js +9 -11
- package/dist/node_modules/dagre-d3-es/src/dagre/coordinate-system.js +34 -36
- package/dist/node_modules/dagre-d3-es/src/dagre/data/list.js +7 -9
- package/dist/node_modules/dagre-d3-es/src/dagre/greedy-fas.js +49 -51
- package/dist/node_modules/dagre-d3-es/src/dagre/index.js +2 -2
- package/dist/node_modules/dagre-d3-es/src/dagre/layout.js +163 -165
- package/dist/node_modules/dagre-d3-es/src/dagre/nesting-graph.js +43 -45
- package/dist/node_modules/dagre-d3-es/src/dagre/normalize.js +10 -12
- package/dist/node_modules/dagre-d3-es/src/dagre/order/add-subgraph-constraints.js +4 -6
- package/dist/node_modules/dagre-d3-es/src/dagre/order/barycenter.js +6 -8
- package/dist/node_modules/dagre-d3-es/src/dagre/order/build-layer-graph.js +12 -14
- package/dist/node_modules/dagre-d3-es/src/dagre/order/cross-count.js +20 -22
- package/dist/node_modules/dagre-d3-es/src/dagre/order/index.js +34 -36
- package/dist/node_modules/dagre-d3-es/src/dagre/order/init-order.js +13 -15
- package/dist/node_modules/dagre-d3-es/src/dagre/order/resolve-conflicts.js +30 -32
- package/dist/node_modules/dagre-d3-es/src/dagre/order/sort-subgraph.js +28 -30
- package/dist/node_modules/dagre-d3-es/src/dagre/order/sort.js +18 -20
- package/dist/node_modules/dagre-d3-es/src/dagre/parent-dummy-chains.js +10 -12
- package/dist/node_modules/dagre-d3-es/src/dagre/position/bk.js +148 -150
- package/dist/node_modules/dagre-d3-es/src/dagre/position/index.js +18 -20
- package/dist/node_modules/dagre-d3-es/src/dagre/rank/feasible-tree.js +17 -19
- package/dist/node_modules/dagre-d3-es/src/dagre/rank/index.js +14 -16
- package/dist/node_modules/dagre-d3-es/src/dagre/rank/network-simplex.js +63 -64
- package/dist/node_modules/dagre-d3-es/src/dagre/rank/util.js +8 -10
- package/dist/node_modules/dagre-d3-es/src/dagre/util.js +82 -84
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/dfs.js +13 -15
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/dijkstra.js +2 -3
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/floyd-warshall.js +2 -3
- 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 +4 -6
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/preorder.js +4 -6
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/topsort.js +11 -13
- package/dist/node_modules/dagre-d3-es/src/graphlib/graph.js +129 -131
- package/dist/node_modules/dagre-d3-es/src/graphlib/index.js +1 -1
- package/dist/node_modules/dagre-d3-es/src/graphlib/json.js +16 -18
- package/dist/node_modules/dayjs/dayjs.min.js +4 -6
- package/dist/node_modules/dayjs/plugin/advancedFormat.js +4 -6
- package/dist/node_modules/dayjs/plugin/customParseFormat.js +4 -6
- package/dist/node_modules/dayjs/plugin/duration.js +4 -6
- package/dist/node_modules/dayjs/plugin/isoWeek.js +4 -6
- package/dist/node_modules/decode-named-character-reference/index.dom.js +5 -7
- package/dist/node_modules/devlop/lib/default.js +2 -4
- package/dist/node_modules/dompurify/dist/purify.es.js +180 -182
- package/dist/node_modules/entities/dist/esm/decode-codepoint.js +4 -6
- package/dist/node_modules/entities/dist/esm/decode.js +85 -87
- package/dist/node_modules/entities/dist/esm/generated/decode-data-html.js +2 -4
- package/dist/node_modules/estree-util-is-identifier-name/lib/index.js +4 -6
- package/dist/node_modules/extend/index.js +6 -9
- package/dist/node_modules/hast-util-from-dom/lib/index.js +30 -32
- package/dist/node_modules/hast-util-from-html-isomorphic/lib/browser.js +8 -10
- package/dist/node_modules/hast-util-from-parse5/lib/index.js +80 -82
- package/dist/node_modules/hast-util-is-element/lib/index.js +15 -17
- package/dist/node_modules/hast-util-parse-selector/lib/index.js +5 -7
- package/dist/node_modules/hast-util-raw/lib/index.js +134 -136
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/doctype.js +21 -23
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/error-codes.js +3 -5
- 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 +249 -250
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/token.js +4 -6
- 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 +15 -17
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/index.js +1495 -1497
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/open-element-stack.js +146 -148
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/serializer/index.js +19 -20
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/index.js +798 -800
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/preprocessor.js +31 -33
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tree-adapters/default.js +8 -10
- package/dist/node_modules/hast-util-sanitize/lib/index.js +104 -106
- package/dist/node_modules/hast-util-sanitize/lib/schema.js +11 -12
- package/dist/node_modules/hast-util-to-html/lib/handle/comment.js +7 -9
- package/dist/node_modules/hast-util-to-html/lib/handle/doctype.js +2 -4
- package/dist/node_modules/hast-util-to-html/lib/handle/element.js +23 -25
- package/dist/node_modules/hast-util-to-html/lib/handle/index.js +21 -22
- package/dist/node_modules/hast-util-to-html/lib/handle/raw.js +4 -6
- package/dist/node_modules/hast-util-to-html/lib/handle/root.js +2 -4
- package/dist/node_modules/hast-util-to-html/lib/handle/text.js +5 -7
- package/dist/node_modules/hast-util-to-html/lib/index.js +36 -38
- package/dist/node_modules/hast-util-to-html/lib/omission/closing.js +68 -70
- package/dist/node_modules/hast-util-to-html/lib/omission/omission.js +4 -6
- package/dist/node_modules/hast-util-to-html/lib/omission/opening.js +30 -32
- package/dist/node_modules/hast-util-to-html/lib/omission/util/siblings.js +9 -10
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +190 -192
- package/dist/node_modules/hast-util-to-parse5/lib/index.js +69 -71
- package/dist/node_modules/hast-util-to-text/lib/index.js +59 -61
- package/dist/node_modules/hast-util-whitespace/lib/index.js +6 -8
- package/dist/node_modules/hastscript/lib/create-h.js +24 -26
- package/dist/node_modules/hastscript/lib/index.js +5 -7
- package/dist/node_modules/hastscript/lib/svg-case-sensitive-tag-names.js +2 -4
- package/dist/node_modules/html-url-attributes/lib/index.js +2 -4
- package/dist/node_modules/html-void-elements/index.js +2 -4
- package/dist/node_modules/inline-style-parser/cjs/index.js +4 -6
- package/dist/node_modules/internmap/src/index.js +20 -22
- package/dist/node_modules/katex/dist/katex.js +2307 -2301
- package/dist/node_modules/khroma/dist/channels/index.js +21 -23
- package/dist/node_modules/khroma/dist/channels/reusable.js +3 -5
- package/dist/node_modules/khroma/dist/channels/type.js +5 -7
- package/dist/node_modules/khroma/dist/color/hex.js +8 -10
- package/dist/node_modules/khroma/dist/color/hsl.js +17 -19
- package/dist/node_modules/khroma/dist/color/index.js +15 -17
- package/dist/node_modules/khroma/dist/color/keyword.js +8 -10
- package/dist/node_modules/khroma/dist/color/rgb.js +12 -14
- package/dist/node_modules/khroma/dist/constants.js +5 -7
- package/dist/node_modules/khroma/dist/methods/adjust.js +6 -8
- package/dist/node_modules/khroma/dist/methods/adjust_channel.js +6 -8
- package/dist/node_modules/khroma/dist/methods/change.js +7 -9
- package/dist/node_modules/khroma/dist/methods/channel.js +4 -6
- package/dist/node_modules/khroma/dist/methods/darken.js +3 -5
- package/dist/node_modules/khroma/dist/methods/invert.js +6 -8
- package/dist/node_modules/khroma/dist/methods/is_dark.js +3 -5
- package/dist/node_modules/khroma/dist/methods/is_light.js +3 -5
- package/dist/node_modules/khroma/dist/methods/lighten.js +3 -5
- package/dist/node_modules/khroma/dist/methods/luminance.js +6 -8
- package/dist/node_modules/khroma/dist/methods/mix.js +6 -8
- package/dist/node_modules/khroma/dist/methods/rgba.js +13 -15
- package/dist/node_modules/khroma/dist/methods/transparentize.js +3 -5
- package/dist/node_modules/khroma/dist/utils/channel.js +6 -8
- package/dist/node_modules/khroma/dist/utils/index.js +8 -10
- package/dist/node_modules/khroma/dist/utils/lang.js +2 -4
- package/dist/node_modules/khroma/dist/utils/unit.js +2 -4
- package/dist/node_modules/langium/lib/default-module.js +64 -66
- package/dist/node_modules/langium/lib/dependency-injection.js +39 -37
- package/dist/node_modules/langium/lib/documentation/comment-provider.js +5 -7
- package/dist/node_modules/langium/lib/documentation/documentation-provider.js +6 -8
- package/dist/node_modules/langium/lib/documentation/jsdoc.js +202 -204
- package/dist/node_modules/langium/lib/index.js +182 -0
- package/dist/node_modules/langium/lib/languages/generated/ast.js +534 -343
- package/dist/node_modules/langium/lib/languages/grammar-config.js +8 -10
- package/dist/node_modules/langium/lib/parser/async-parser.js +76 -4
- package/dist/node_modules/langium/lib/parser/completion-parser-builder.js +6 -8
- package/dist/node_modules/langium/lib/parser/cst-node-builder.js +54 -56
- package/dist/node_modules/langium/lib/parser/indentation-aware.js +141 -0
- package/dist/node_modules/langium/lib/parser/langium-parser-builder.js +7 -9
- package/dist/node_modules/langium/lib/parser/langium-parser.js +188 -190
- package/dist/node_modules/langium/lib/parser/lexer.js +25 -25
- package/dist/node_modules/langium/lib/parser/parser-builder-base.js +203 -204
- package/dist/node_modules/langium/lib/parser/token-builder.js +30 -32
- package/dist/node_modules/langium/lib/parser/value-converter.js +15 -17
- package/dist/node_modules/langium/lib/references/linker.js +103 -104
- package/dist/node_modules/langium/lib/references/name-provider.js +7 -9
- package/dist/node_modules/langium/lib/references/references.js +51 -53
- package/dist/node_modules/langium/lib/references/scope-computation.js +12 -14
- package/dist/node_modules/langium/lib/references/scope-provider.js +11 -13
- package/dist/node_modules/langium/lib/references/scope.js +56 -27
- package/dist/node_modules/langium/lib/serializer/hydrator.js +69 -71
- package/dist/node_modules/langium/lib/serializer/json-serializer.js +21 -23
- package/dist/node_modules/langium/lib/service-registry.js +5 -7
- package/dist/node_modules/langium/lib/syntax-tree.js +31 -33
- package/dist/node_modules/langium/lib/utils/ast-utils.js +112 -77
- package/dist/node_modules/langium/lib/utils/caching.js +42 -33
- package/dist/node_modules/langium/lib/utils/cancellation.js +5 -7
- package/dist/node_modules/langium/lib/utils/collections.js +33 -35
- package/dist/node_modules/langium/lib/utils/cst-utils.js +161 -46
- package/dist/node_modules/langium/lib/utils/disposable.js +3 -5
- package/dist/node_modules/langium/lib/utils/errors.js +9 -8
- package/dist/node_modules/langium/lib/utils/event.js +5 -7
- package/dist/node_modules/langium/lib/utils/grammar-loader.js +14 -16
- package/dist/node_modules/langium/lib/utils/grammar-utils.js +249 -172
- package/dist/node_modules/langium/lib/utils/index.js +53 -0
- package/dist/node_modules/langium/lib/utils/promise-utils.js +19 -18
- package/dist/node_modules/langium/lib/utils/regexp-utils.js +76 -53
- package/dist/node_modules/langium/lib/utils/stream.js +153 -155
- package/dist/node_modules/langium/lib/utils/uri-utils.js +12 -14
- package/dist/node_modules/langium/lib/validation/document-validator.js +103 -104
- package/dist/node_modules/langium/lib/validation/validation-registry.js +14 -15
- package/dist/node_modules/langium/lib/workspace/ast-descriptions.js +17 -19
- package/dist/node_modules/langium/lib/workspace/ast-node-locator.js +2 -4
- package/dist/node_modules/langium/lib/workspace/configuration.js +5 -7
- package/dist/node_modules/langium/lib/workspace/document-builder.js +134 -131
- package/dist/node_modules/langium/lib/workspace/documents.js +83 -85
- package/dist/node_modules/langium/lib/workspace/file-system-provider.js +4 -5
- package/dist/node_modules/langium/lib/workspace/index-manager.js +14 -16
- package/dist/node_modules/langium/lib/workspace/profiler.js +89 -0
- package/dist/node_modules/langium/lib/workspace/workspace-lock.js +9 -11
- package/dist/node_modules/langium/lib/workspace/workspace-manager.js +33 -35
- package/dist/node_modules/layout-base/layout-base.js +4 -6
- package/dist/node_modules/lodash/_Symbol.js +7 -0
- package/dist/node_modules/lodash/_baseGetTag.js +13 -0
- package/dist/node_modules/lodash/_baseTrim.js +11 -0
- package/dist/node_modules/lodash/_freeGlobal.js +6 -0
- package/dist/node_modules/lodash/_getRawTag.js +17 -0
- package/dist/node_modules/lodash/_objectToString.js +10 -0
- package/dist/node_modules/lodash/_root.js +8 -0
- package/dist/node_modules/lodash/_trimmedEndIndex.js +11 -0
- package/dist/{frontend/studio/node_modules → node_modules}/lodash/debounce.js +8 -10
- package/dist/node_modules/lodash/isObject.js +10 -0
- package/dist/node_modules/lodash/isObjectLike.js +9 -0
- package/dist/node_modules/lodash/isSymbol.js +12 -0
- package/dist/node_modules/lodash/now.js +10 -0
- package/dist/node_modules/lodash/toNumber.js +22 -0
- package/dist/node_modules/lodash-es/_DataView.js +4 -6
- package/dist/node_modules/lodash-es/_Hash.js +13 -14
- package/dist/node_modules/lodash-es/_ListCache.js +13 -14
- package/dist/node_modules/lodash-es/_Map.js +4 -6
- package/dist/node_modules/lodash-es/_MapCache.js +13 -14
- package/dist/node_modules/lodash-es/_Promise.js +4 -6
- package/dist/node_modules/lodash-es/_Set.js +4 -6
- package/dist/node_modules/lodash-es/_SetCache.js +9 -10
- package/dist/node_modules/lodash-es/_Stack.js +11 -12
- package/dist/node_modules/lodash-es/_Symbol.js +3 -5
- package/dist/node_modules/lodash-es/_Uint8Array.js +3 -5
- package/dist/node_modules/lodash-es/_WeakMap.js +4 -6
- package/dist/node_modules/lodash-es/_apply.js +3 -4
- package/dist/node_modules/lodash-es/_arrayEach.js +3 -4
- package/dist/node_modules/lodash-es/_arrayFilter.js +3 -4
- package/dist/node_modules/lodash-es/_arrayIncludes.js +5 -6
- package/dist/node_modules/lodash-es/_arrayIncludesWith.js +3 -4
- package/dist/node_modules/lodash-es/_arrayLikeKeys.js +12 -13
- package/dist/node_modules/lodash-es/_arrayMap.js +3 -4
- package/dist/node_modules/lodash-es/_arrayPush.js +3 -4
- package/dist/node_modules/lodash-es/_arrayReduce.js +3 -4
- package/dist/node_modules/lodash-es/_arraySome.js +3 -4
- package/dist/node_modules/lodash-es/_asciiSize.js +3 -5
- package/dist/node_modules/lodash-es/_assignMergeValue.js +6 -7
- package/dist/node_modules/lodash-es/_assignValue.js +7 -8
- package/dist/node_modules/lodash-es/_assocIndexOf.js +5 -6
- package/dist/node_modules/lodash-es/_baseAssign.js +6 -7
- package/dist/node_modules/lodash-es/_baseAssignIn.js +6 -7
- package/dist/node_modules/lodash-es/_baseAssignValue.js +5 -6
- package/dist/node_modules/lodash-es/_baseClone.js +50 -51
- package/dist/node_modules/lodash-es/_baseCreate.js +5 -7
- package/dist/node_modules/lodash-es/_baseEach.js +4 -6
- package/dist/node_modules/lodash-es/_baseExtremum.js +5 -6
- package/dist/node_modules/lodash-es/_baseFilter.js +5 -6
- package/dist/node_modules/lodash-es/_baseFindIndex.js +3 -4
- package/dist/node_modules/lodash-es/_baseFlatten.js +7 -8
- package/dist/node_modules/lodash-es/_baseFor.js +3 -5
- package/dist/node_modules/lodash-es/_baseForOwn.js +6 -7
- package/dist/node_modules/lodash-es/_baseGet.js +7 -8
- package/dist/node_modules/lodash-es/_baseGetAllKeys.js +6 -7
- package/dist/node_modules/lodash-es/_baseGetTag.js +8 -9
- package/dist/node_modules/lodash-es/_baseGt.js +3 -4
- package/dist/node_modules/lodash-es/_baseHas.js +5 -6
- package/dist/node_modules/lodash-es/_baseHasIn.js +3 -4
- package/dist/node_modules/lodash-es/_baseIndexOf.js +7 -8
- package/dist/node_modules/lodash-es/_baseIsArguments.js +7 -8
- package/dist/node_modules/lodash-es/_baseIsEqual.js +6 -7
- package/dist/node_modules/lodash-es/_baseIsEqualDeep.js +22 -23
- package/dist/node_modules/lodash-es/_baseIsMap.js +7 -8
- package/dist/node_modules/lodash-es/_baseIsMatch.js +8 -9
- package/dist/node_modules/lodash-es/_baseIsNaN.js +3 -4
- package/dist/node_modules/lodash-es/_baseIsNative.js +9 -10
- package/dist/node_modules/lodash-es/_baseIsSet.js +7 -8
- package/dist/node_modules/lodash-es/_baseIsTypedArray.js +9 -10
- package/dist/node_modules/lodash-es/_baseIteratee.js +9 -10
- package/dist/node_modules/lodash-es/_baseKeys.js +8 -9
- package/dist/node_modules/lodash-es/_baseKeysIn.js +10 -11
- package/dist/node_modules/lodash-es/_baseLt.js +3 -4
- package/dist/node_modules/lodash-es/_baseMap.js +7 -8
- package/dist/node_modules/lodash-es/_baseMatches.js +9 -10
- package/dist/node_modules/lodash-es/_baseMatchesProperty.js +14 -15
- package/dist/node_modules/lodash-es/_baseMerge.js +15 -16
- package/dist/node_modules/lodash-es/_baseMergeDeep.js +23 -24
- package/dist/node_modules/lodash-es/_baseOrderBy.js +22 -23
- package/dist/node_modules/lodash-es/_basePick.js +7 -8
- package/dist/node_modules/lodash-es/_basePickBy.js +8 -9
- package/dist/node_modules/lodash-es/_baseProperty.js +3 -4
- package/dist/node_modules/lodash-es/_basePropertyDeep.js +5 -6
- package/dist/node_modules/lodash-es/_baseRange.js +5 -6
- package/dist/node_modules/lodash-es/_baseReduce.js +3 -4
- package/dist/node_modules/lodash-es/_baseRest.js +7 -8
- package/dist/node_modules/lodash-es/_baseSet.js +13 -14
- package/dist/node_modules/lodash-es/_baseSetToString.js +8 -10
- package/dist/node_modules/lodash-es/_baseSortBy.js +3 -4
- package/dist/node_modules/lodash-es/_baseTimes.js +3 -4
- package/dist/node_modules/lodash-es/_baseToString.js +12 -13
- package/dist/node_modules/lodash-es/_baseTrim.js +6 -7
- package/dist/node_modules/lodash-es/_baseUnary.js +3 -4
- package/dist/node_modules/lodash-es/_baseUniq.js +16 -17
- package/dist/node_modules/lodash-es/_baseValues.js +5 -6
- package/dist/node_modules/lodash-es/_baseZipObject.js +3 -4
- package/dist/node_modules/lodash-es/_cacheHas.js +3 -4
- package/dist/node_modules/lodash-es/_castFunction.js +5 -6
- package/dist/node_modules/lodash-es/_castPath.js +8 -9
- package/dist/node_modules/lodash-es/_cloneArrayBuffer.js +5 -6
- package/dist/node_modules/lodash-es/_cloneBuffer.js +8 -9
- package/dist/node_modules/lodash-es/_cloneDataView.js +5 -6
- package/dist/node_modules/lodash-es/_cloneRegExp.js +5 -6
- package/dist/node_modules/lodash-es/_cloneSymbol.js +6 -7
- package/dist/node_modules/lodash-es/_cloneTypedArray.js +5 -6
- package/dist/node_modules/lodash-es/_compareAscending.js +5 -6
- package/dist/node_modules/lodash-es/_compareMultiple.js +5 -6
- package/dist/node_modules/lodash-es/_copyArray.js +3 -4
- package/dist/node_modules/lodash-es/_copyObject.js +6 -7
- package/dist/node_modules/lodash-es/_copySymbols.js +6 -7
- package/dist/node_modules/lodash-es/_copySymbolsIn.js +6 -7
- package/dist/node_modules/lodash-es/_coreJsData.js +3 -5
- package/dist/node_modules/lodash-es/_createAssigner.js +7 -8
- package/dist/node_modules/lodash-es/_createBaseEach.js +5 -6
- package/dist/node_modules/lodash-es/_createBaseFor.js +3 -4
- package/dist/node_modules/lodash-es/_createFind.js +9 -10
- package/dist/node_modules/lodash-es/_createRange.js +7 -8
- package/dist/node_modules/lodash-es/_createSet.js +7 -9
- package/dist/node_modules/lodash-es/_defineProperty.js +4 -6
- package/dist/node_modules/lodash-es/_equalArrays.js +11 -12
- package/dist/node_modules/lodash-es/_equalByTag.js +28 -29
- package/dist/node_modules/lodash-es/_equalObjects.js +8 -9
- package/dist/node_modules/lodash-es/_flatRest.js +7 -8
- package/dist/node_modules/lodash-es/_freeGlobal.js +2 -4
- package/dist/node_modules/lodash-es/_getAllKeys.js +7 -8
- package/dist/node_modules/lodash-es/_getAllKeysIn.js +7 -8
- package/dist/node_modules/lodash-es/_getMapData.js +5 -6
- package/dist/node_modules/lodash-es/_getMatchData.js +7 -8
- package/dist/node_modules/lodash-es/_getNative.js +7 -8
- package/dist/node_modules/lodash-es/_getPrototype.js +3 -5
- package/dist/node_modules/lodash-es/_getRawTag.js +9 -10
- package/dist/node_modules/lodash-es/_getSymbols.js +7 -9
- package/dist/node_modules/lodash-es/_getSymbolsIn.js +8 -10
- package/dist/node_modules/lodash-es/_getTag.js +19 -21
- package/dist/node_modules/lodash-es/_getValue.js +3 -4
- package/dist/node_modules/lodash-es/_hasPath.js +12 -13
- package/dist/node_modules/lodash-es/_hasUnicode.js +5 -6
- package/dist/node_modules/lodash-es/_hashClear.js +5 -6
- package/dist/node_modules/lodash-es/_hashDelete.js +4 -5
- package/dist/node_modules/lodash-es/_hashGet.js +8 -9
- package/dist/node_modules/lodash-es/_hashHas.js +6 -7
- package/dist/node_modules/lodash-es/_hashSet.js +6 -7
- package/dist/node_modules/lodash-es/_initCloneArray.js +5 -6
- package/dist/node_modules/lodash-es/_initCloneByTag.js +28 -29
- package/dist/node_modules/lodash-es/_initCloneObject.js +7 -8
- package/dist/node_modules/lodash-es/_isFlattenable.js +8 -9
- package/dist/node_modules/lodash-es/_isIndex.js +5 -6
- package/dist/node_modules/lodash-es/_isIterateeCall.js +9 -10
- package/dist/node_modules/lodash-es/_isKey.js +8 -9
- package/dist/node_modules/lodash-es/_isKeyable.js +3 -4
- package/dist/node_modules/lodash-es/_isMasked.js +8 -9
- package/dist/node_modules/lodash-es/_isPrototype.js +5 -6
- package/dist/node_modules/lodash-es/_isStrictComparable.js +5 -6
- package/dist/node_modules/lodash-es/_listCacheClear.js +3 -4
- package/dist/node_modules/lodash-es/_listCacheDelete.js +7 -8
- package/dist/node_modules/lodash-es/_listCacheGet.js +5 -6
- package/dist/node_modules/lodash-es/_listCacheHas.js +5 -6
- package/dist/node_modules/lodash-es/_listCacheSet.js +5 -6
- package/dist/node_modules/lodash-es/_mapCacheClear.js +9 -10
- package/dist/node_modules/lodash-es/_mapCacheDelete.js +6 -7
- package/dist/node_modules/lodash-es/_mapCacheGet.js +5 -6
- package/dist/node_modules/lodash-es/_mapCacheHas.js +5 -6
- package/dist/node_modules/lodash-es/_mapCacheSet.js +5 -6
- package/dist/node_modules/lodash-es/_mapToArray.js +3 -4
- package/dist/node_modules/lodash-es/_matchesStrictComparable.js +3 -4
- package/dist/node_modules/lodash-es/_memoizeCapped.js +7 -8
- package/dist/node_modules/lodash-es/_nativeCreate.js +3 -5
- package/dist/node_modules/lodash-es/_nativeKeys.js +3 -5
- package/dist/node_modules/lodash-es/_nativeKeysIn.js +3 -4
- package/dist/node_modules/lodash-es/_nodeUtil.js +4 -6
- package/dist/node_modules/lodash-es/_objectToString.js +5 -6
- package/dist/node_modules/lodash-es/_overArg.js +3 -4
- package/dist/node_modules/lodash-es/_overRest.js +8 -9
- package/dist/node_modules/lodash-es/_root.js +3 -5
- package/dist/node_modules/lodash-es/_safeGet.js +3 -4
- package/dist/node_modules/lodash-es/_setCacheAdd.js +5 -6
- package/dist/node_modules/lodash-es/_setCacheHas.js +3 -4
- package/dist/node_modules/lodash-es/_setToArray.js +3 -4
- package/dist/node_modules/lodash-es/_setToString.js +4 -6
- package/dist/node_modules/lodash-es/_shortOut.js +6 -7
- package/dist/node_modules/lodash-es/_stackClear.js +5 -6
- package/dist/node_modules/lodash-es/_stackDelete.js +3 -4
- package/dist/node_modules/lodash-es/_stackGet.js +3 -4
- package/dist/node_modules/lodash-es/_stackHas.js +3 -4
- package/dist/node_modules/lodash-es/_stackSet.js +10 -11
- package/dist/node_modules/lodash-es/_strictIndexOf.js +3 -4
- package/dist/node_modules/lodash-es/_stringSize.js +7 -8
- package/dist/node_modules/lodash-es/_stringToPath.js +5 -7
- package/dist/node_modules/lodash-es/_toKey.js +7 -8
- package/dist/node_modules/lodash-es/_toSource.js +7 -8
- package/dist/node_modules/lodash-es/_trimmedEndIndex.js +5 -6
- package/dist/node_modules/lodash-es/_unicodeSize.js +16 -17
- package/dist/node_modules/lodash-es/clone.js +6 -7
- package/dist/node_modules/lodash-es/cloneDeep.js +6 -7
- package/dist/node_modules/lodash-es/constant.js +3 -4
- package/dist/node_modules/lodash-es/defaults.js +11 -13
- package/dist/node_modules/lodash-es/eq.js +3 -4
- package/dist/node_modules/lodash-es/filter.js +8 -9
- package/dist/node_modules/lodash-es/find.js +4 -6
- package/dist/node_modules/lodash-es/findIndex.js +9 -10
- package/dist/node_modules/lodash-es/flatMap.js +6 -7
- package/dist/node_modules/lodash-es/flatten.js +5 -6
- package/dist/node_modules/lodash-es/forEach.js +8 -9
- package/dist/node_modules/lodash-es/forIn.js +7 -8
- package/dist/node_modules/lodash-es/forOwn.js +6 -7
- package/dist/node_modules/lodash-es/get.js +5 -6
- package/dist/node_modules/lodash-es/has.js +6 -7
- package/dist/node_modules/lodash-es/hasIn.js +6 -7
- package/dist/node_modules/lodash-es/identity.js +3 -4
- package/dist/node_modules/lodash-es/isArguments.js +6 -8
- package/dist/node_modules/lodash-es/isArray.js +2 -4
- package/dist/node_modules/lodash-es/isArrayLike.js +6 -7
- package/dist/node_modules/lodash-es/isArrayLikeObject.js +6 -7
- package/dist/node_modules/lodash-es/isBuffer.js +4 -6
- package/dist/node_modules/lodash-es/isEmpty.js +17 -18
- package/dist/node_modules/lodash-es/isFunction.js +9 -10
- package/dist/node_modules/lodash-es/isLength.js +5 -6
- package/dist/node_modules/lodash-es/isMap.js +5 -7
- package/dist/node_modules/lodash-es/isObject.js +3 -4
- package/dist/node_modules/lodash-es/isObjectLike.js +3 -4
- package/dist/node_modules/lodash-es/isPlainObject.js +12 -13
- package/dist/node_modules/lodash-es/isSet.js +5 -7
- package/dist/node_modules/lodash-es/isString.js +8 -9
- package/dist/node_modules/lodash-es/isSymbol.js +7 -8
- package/dist/node_modules/lodash-es/isTypedArray.js +5 -7
- package/dist/node_modules/lodash-es/isUndefined.js +3 -4
- package/dist/node_modules/lodash-es/keys.js +7 -8
- package/dist/node_modules/lodash-es/keysIn.js +7 -8
- package/dist/node_modules/lodash-es/last.js +3 -4
- package/dist/node_modules/lodash-es/map.js +8 -9
- package/dist/node_modules/lodash-es/mapValues.js +8 -9
- package/dist/node_modules/lodash-es/max.js +7 -8
- package/dist/node_modules/lodash-es/memoize.js +8 -9
- package/dist/node_modules/lodash-es/merge.js +5 -7
- package/dist/node_modules/lodash-es/min.js +7 -8
- package/dist/node_modules/lodash-es/minBy.js +7 -8
- package/dist/node_modules/lodash-es/noop.js +3 -4
- package/dist/node_modules/lodash-es/now.js +4 -6
- package/dist/node_modules/lodash-es/pick.js +5 -7
- package/dist/node_modules/lodash-es/property.js +8 -9
- package/dist/node_modules/lodash-es/range.js +3 -5
- package/dist/node_modules/lodash-es/reduce.js +10 -11
- package/dist/node_modules/lodash-es/size.js +12 -13
- package/dist/node_modules/lodash-es/sortBy.js +7 -9
- package/dist/node_modules/lodash-es/stubArray.js +3 -4
- package/dist/node_modules/lodash-es/stubFalse.js +3 -4
- package/dist/node_modules/lodash-es/toFinite.js +6 -7
- package/dist/node_modules/lodash-es/toInteger.js +5 -6
- package/dist/node_modules/lodash-es/toNumber.js +13 -14
- package/dist/node_modules/lodash-es/toPlainObject.js +6 -7
- package/dist/node_modules/lodash-es/toString.js +5 -6
- package/dist/node_modules/lodash-es/union.js +7 -9
- package/dist/node_modules/lodash-es/uniqBy.js +6 -7
- package/dist/node_modules/lodash-es/uniqueId.js +7 -8
- package/dist/node_modules/lodash-es/values.js +6 -7
- package/dist/node_modules/lodash-es/zipObject.js +6 -7
- package/dist/node_modules/longest-streak/index.js +2 -4
- package/dist/node_modules/markdown-table/index.js +9 -11
- package/dist/node_modules/marked/lib/marked.esm.js +685 -687
- package/dist/node_modules/mdast-util-find-and-replace/lib/index.js +12 -14
- package/dist/node_modules/mdast-util-find-and-replace/node_modules/escape-string-regexp/index.js +2 -4
- package/dist/node_modules/mdast-util-from-markdown/lib/index.js +180 -182
- package/dist/node_modules/mdast-util-gfm/lib/index.js +18 -20
- package/dist/node_modules/mdast-util-gfm-autolink-literal/lib/index.js +67 -69
- package/dist/node_modules/mdast-util-gfm-footnote/lib/index.js +45 -47
- package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.js +13 -15
- package/dist/node_modules/mdast-util-gfm-table/lib/index.js +28 -30
- package/dist/node_modules/mdast-util-gfm-task-list-item/lib/index.js +14 -16
- package/dist/node_modules/mdast-util-math/lib/index.js +13 -15
- package/dist/node_modules/mdast-util-phrasing/lib/index.js +3 -5
- package/dist/node_modules/mdast-util-to-hast/lib/footer.js +9 -11
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js +2 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/break.js +2 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.js +2 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/delete.js +2 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js +2 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js +4 -6
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/heading.js +2 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/html.js +2 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js +6 -8
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/image.js +4 -6
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/index.js +53 -55
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js +2 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js +6 -8
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/link.js +4 -6
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/list-item.js +13 -15
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/list.js +2 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js +2 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/root.js +2 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/strong.js +2 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js +2 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-row.js +2 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table.js +4 -6
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.js +4 -6
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js +2 -4
- package/dist/node_modules/mdast-util-to-hast/lib/index.js +6 -8
- package/dist/node_modules/mdast-util-to-hast/lib/revert.js +2 -4
- package/dist/node_modules/mdast-util-to-hast/lib/state.js +59 -61
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js +4 -6
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.js +4 -6
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.js +16 -18
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/definition.js +4 -6
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js +12 -14
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.js +6 -8
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/html.js +4 -6
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js +4 -6
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/image.js +6 -8
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/index.js +41 -43
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js +5 -7
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js +4 -6
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.js +9 -11
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/list-item.js +5 -7
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/list.js +10 -12
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js +2 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.js +4 -6
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.js +12 -14
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.js +2 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js +5 -7
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js +2 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js +4 -6
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js +2 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js +2 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-fence.js +2 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js +2 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-quote.js +2 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js +2 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule.js +2 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-strong.js +2 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js +2 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-info.js +4 -6
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js +2 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js +7 -8
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js +4 -6
- package/dist/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js +4 -6
- package/dist/node_modules/mdast-util-to-string/lib/index.js +12 -14
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/architectureDiagram-Q4EWVU46.js +374 -378
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-DXYQGD6D.js +1347 -1349
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-AHTNJAMY.js +549 -555
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-336JU56O.js +38 -40
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-426QAEUC.js +7 -9
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-4BX2VUAB.js +4 -6
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-4TB4RGXK.js +198 -204
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-55IACEB6.js +5 -7
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-5FUZZQ4R.js +2345 -2347
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-5PVQY5BW.js +253 -257
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-AGHRB4JF.js +20 -22
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-BSJP7CBP.js +35 -37
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-EDXVE4YY.js +15 -17
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ENJZ2VHE.js +344 -346
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-FMBD7UC4.js +3 -5
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ICPOFSXX.js +718 -746
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-OYMX7WX6.js +588 -594
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-QZHKN3VN.js +4 -8
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-U2HBQHQK.js +204 -206
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-X2U36JSP.js +37 -39
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-XPW4576I.js +891 -893
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-YZCP3GAM.js +37 -39
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ZZ45TVLE.js +13 -15
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-6PBFFD2Q.js +9 -11
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-HSJHXN6E.js +9 -11
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/cose-bilkent-S5V4N54A.js +114 -116
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/dagre-KV5264BT.js +188 -190
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-5BDNPKRD.js +70 -72
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-G4DWMVQ6.js +185 -189
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-MMDJMWI5.js +154 -156
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-TYMM5635.js +72 -76
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/erDiagram-SMLLAGMA.js +75 -79
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/flowDiagram-DWJPFMVM.js +896 -900
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-T4ZO3ILL.js +685 -687
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-UUTBAWPF.js +569 -571
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/infoDiagram-42DDH7IO.js +15 -17
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ishikawaDiagram-UXIWVN3A.js +304 -308
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/journeyDiagram-VCZTEJTY.js +377 -379
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/kanban-definition-6JOO6SKY.js +114 -116
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/mindmap-definition-QFDTVHPH.js +87 -91
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/pieDiagram-DEJITSTG.js +94 -96
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/quadrantDiagram-34T5L4WZ.js +273 -279
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/requirementDiagram-MS252O5E.js +59 -63
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sankeyDiagram-XADWPNL6.js +202 -212
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-FGHM5R23.js +564 -568
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-FHFEXIEX.js +155 -157
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-QKLJ7IA2.js +9 -11
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-GMOUNBTQ.js +559 -561
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/vennDiagram-DHZGUBPP.js +370 -372
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/wardleyDiagram-NUSXRM2D.js +450 -454
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/xychartDiagram-5P7HB3ND.js +658 -680
- package/dist/node_modules/mermaid/dist/mermaid.core.js +430 -434
- package/dist/node_modules/micromark/lib/constructs.js +79 -80
- package/dist/node_modules/micromark/lib/create-tokenizer.js +12 -14
- package/dist/node_modules/micromark/lib/initialize/content.js +7 -9
- package/dist/node_modules/micromark/lib/initialize/document.js +14 -15
- package/dist/node_modules/micromark/lib/initialize/flow.js +7 -9
- package/dist/node_modules/micromark/lib/initialize/text.js +6 -8
- package/dist/node_modules/micromark/lib/parse.js +18 -20
- package/dist/node_modules/micromark/lib/postprocess.js +4 -6
- package/dist/node_modules/micromark/lib/preprocess.js +4 -6
- package/dist/node_modules/micromark-core-commonmark/lib/attention.js +18 -20
- package/dist/node_modules/micromark-core-commonmark/lib/autolink.js +15 -17
- package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js +9 -11
- package/dist/node_modules/micromark-core-commonmark/lib/block-quote.js +13 -15
- package/dist/node_modules/micromark-core-commonmark/lib/character-escape.js +6 -8
- package/dist/node_modules/micromark-core-commonmark/lib/character-reference.js +14 -16
- package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.js +21 -22
- package/dist/node_modules/micromark-core-commonmark/lib/code-indented.js +15 -16
- package/dist/node_modules/micromark-core-commonmark/lib/code-text.js +11 -13
- package/dist/node_modules/micromark-core-commonmark/lib/content.js +17 -18
- package/dist/node_modules/micromark-core-commonmark/lib/definition.js +29 -30
- package/dist/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +6 -8
- package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.js +13 -15
- package/dist/node_modules/micromark-core-commonmark/lib/html-flow.js +67 -68
- package/dist/node_modules/micromark-core-commonmark/lib/html-text.js +64 -66
- package/dist/node_modules/micromark-core-commonmark/lib/label-end.js +111 -112
- package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.js +6 -8
- package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.js +6 -8
- package/dist/node_modules/micromark-core-commonmark/lib/line-ending.js +6 -8
- package/dist/node_modules/micromark-core-commonmark/lib/list.js +31 -32
- package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.js +10 -12
- package/dist/node_modules/micromark-core-commonmark/lib/thematic-break.js +9 -11
- package/dist/node_modules/micromark-extension-gfm/index.js +14 -16
- package/dist/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js +120 -122
- package/dist/node_modules/micromark-extension-gfm-footnote/lib/syntax.js +31 -33
- package/dist/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js +9 -11
- package/dist/node_modules/micromark-extension-gfm-table/lib/edit-map.js +4 -6
- package/dist/node_modules/micromark-extension-gfm-table/lib/infer.js +2 -4
- package/dist/node_modules/micromark-extension-gfm-table/lib/syntax.js +34 -36
- package/dist/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js +18 -20
- package/dist/node_modules/micromark-extension-math/lib/math-flow.js +20 -21
- package/dist/node_modules/micromark-extension-math/lib/math-text.js +9 -11
- package/dist/node_modules/micromark-extension-math/lib/syntax.js +6 -8
- package/dist/node_modules/micromark-factory-destination/index.js +8 -10
- package/dist/node_modules/micromark-factory-label/index.js +5 -7
- package/dist/node_modules/micromark-factory-space/index.js +5 -7
- package/dist/node_modules/micromark-factory-title/index.js +6 -8
- package/dist/node_modules/micromark-factory-whitespace/index.js +5 -7
- package/dist/node_modules/micromark-util-character/index.js +12 -14
- package/dist/node_modules/micromark-util-chunked/index.js +4 -6
- package/dist/node_modules/micromark-util-classify-character/index.js +5 -7
- package/dist/node_modules/micromark-util-combine-extensions/index.js +11 -13
- package/dist/node_modules/micromark-util-decode-numeric-character-reference/index.js +2 -4
- package/dist/node_modules/micromark-util-decode-string/index.js +9 -11
- package/dist/node_modules/micromark-util-html-tag-name/index.js +2 -4
- package/dist/node_modules/micromark-util-normalize-identifier/index.js +2 -4
- package/dist/node_modules/micromark-util-resolve-all/index.js +2 -4
- package/dist/node_modules/micromark-util-sanitize-uri/index.js +4 -6
- package/dist/node_modules/micromark-util-subtokenize/index.js +8 -10
- package/dist/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +8 -10
- package/dist/node_modules/motion/dist/es/react.js +2 -2
- package/dist/node_modules/nanoid/index.browser.js +4 -6
- package/dist/node_modules/nanoid/url-alphabet/index.js +2 -4
- package/dist/node_modules/property-information/index.js +23 -25
- package/dist/node_modules/property-information/lib/aria.js +39 -41
- package/dist/node_modules/property-information/lib/find.js +16 -18
- package/dist/node_modules/property-information/lib/hast-to-react.js +2 -4
- package/dist/node_modules/property-information/lib/html.js +94 -96
- package/dist/node_modules/property-information/lib/normalize.js +2 -4
- package/dist/node_modules/property-information/lib/svg.js +77 -79
- package/dist/node_modules/property-information/lib/util/case-insensitive-transform.js +4 -6
- package/dist/node_modules/property-information/lib/util/case-sensitive-transform.js +2 -4
- package/dist/node_modules/property-information/lib/util/create.js +8 -10
- package/dist/node_modules/property-information/lib/util/defined-info.js +11 -13
- package/dist/node_modules/property-information/lib/util/info.js +3 -5
- package/dist/node_modules/property-information/lib/util/merge.js +4 -6
- package/dist/node_modules/property-information/lib/util/schema.js +3 -5
- package/dist/node_modules/property-information/lib/util/types.js +14 -15
- package/dist/node_modules/property-information/lib/xlink.js +3 -5
- package/dist/node_modules/property-information/lib/xml.js +3 -5
- package/dist/node_modules/property-information/lib/xmlns.js +5 -7
- package/dist/node_modules/rehype-harden/dist/index.js +45 -47
- package/dist/node_modules/rehype-katex/lib/index.js +23 -25
- package/dist/node_modules/rehype-raw/lib/index.js +4 -6
- package/dist/node_modules/rehype-sanitize/lib/index.js +4 -6
- package/dist/node_modules/remark-gfm/lib/index.js +7 -9
- package/dist/node_modules/remark-math/lib/index.js +7 -9
- package/dist/node_modules/remark-parse/lib/index.js +4 -6
- package/dist/node_modules/remark-rehype/lib/index.js +5 -7
- package/dist/node_modules/remend/dist/index.js +324 -326
- package/dist/node_modules/roughjs/bundled/rough.esm.js +875 -877
- package/dist/node_modules/shiki/dist/bundle-full.js +11 -13
- package/dist/node_modules/shiki/dist/{langs-bundle-full-DfKZStlK.js → langs.js} +6 -8
- package/dist/node_modules/shiki/dist/themes.js +4 -6
- package/dist/node_modules/shiki/dist/wasm.js +2 -2
- package/dist/node_modules/space-separated-tokens/index.js +3 -5
- package/dist/node_modules/streamdown/dist/chunk-BO2N2NFS.js +699 -701
- package/dist/node_modules/streamdown/dist/highlighted-body-OFNGDK62.js +8 -10
- package/dist/node_modules/streamdown/dist/index.js +1 -1
- package/dist/node_modules/streamdown/dist/mermaid-GHXKKRXX.js +2 -2
- package/dist/node_modules/streamdown/node_modules/marked/lib/marked.esm.js +712 -709
- package/dist/node_modules/stringify-entities/lib/constant/dangerous.js +2 -4
- package/dist/node_modules/stringify-entities/lib/core.js +16 -18
- package/dist/node_modules/stringify-entities/lib/index.js +5 -7
- package/dist/node_modules/stringify-entities/lib/util/format-smart.js +8 -10
- package/dist/node_modules/stringify-entities/lib/util/to-decimal.js +4 -6
- package/dist/node_modules/stringify-entities/lib/util/to-hexadecimal.js +4 -6
- package/dist/node_modules/stringify-entities/lib/util/to-named.js +12 -14
- package/dist/node_modules/style-to-js/cjs/index.js +7 -9
- package/dist/node_modules/style-to-js/cjs/utilities.js +4 -6
- package/dist/node_modules/style-to-object/cjs/index.js +6 -8
- package/dist/node_modules/stylis/src/Enum.js +2 -4
- package/dist/node_modules/stylis/src/Parser.js +36 -38
- package/dist/node_modules/stylis/src/Serializer.js +15 -17
- package/dist/node_modules/stylis/src/Tokenizer.js +51 -53
- package/dist/node_modules/stylis/src/Utility.js +15 -17
- package/dist/node_modules/trim-lines/index.js +8 -10
- package/dist/node_modules/trough/lib/index.js +4 -6
- package/dist/node_modules/ts-dedent/esm/index.js +2 -4
- package/dist/node_modules/unified/lib/callable-instance.js +2 -4
- package/dist/node_modules/unified/lib/index.js +101 -102
- package/dist/node_modules/unified/node_modules/is-plain-obj/index.js +2 -4
- package/dist/node_modules/unist-util-find-after/lib/index.js +4 -6
- package/dist/node_modules/unist-util-is/lib/index.js +29 -31
- package/dist/node_modules/unist-util-position/lib/index.js +5 -7
- package/dist/node_modules/unist-util-stringify-position/lib/index.js +8 -10
- package/dist/node_modules/unist-util-visit/lib/index.js +4 -6
- package/dist/node_modules/unist-util-visit-parents/lib/color.js +2 -4
- package/dist/node_modules/unist-util-visit-parents/lib/index.js +20 -21
- package/dist/node_modules/uuid/dist/esm-browser/native.js +2 -3
- package/dist/node_modules/uuid/dist/esm-browser/rng.js +6 -8
- package/dist/node_modules/uuid/dist/esm-browser/stringify.js +5 -7
- package/dist/node_modules/uuid/dist/esm-browser/v4.js +9 -10
- package/dist/node_modules/vaul/dist/index.js +274 -276
- package/dist/node_modules/vfile/lib/index.js +42 -44
- package/dist/node_modules/vfile/lib/minpath.browser.js +20 -22
- package/dist/node_modules/vfile/lib/minproc.browser.js +3 -5
- package/dist/node_modules/vfile/lib/minurl.browser.js +6 -8
- package/dist/node_modules/vfile/lib/minurl.shared.js +2 -4
- package/dist/node_modules/vfile-location/lib/index.js +5 -7
- package/dist/node_modules/vfile-message/lib/index.js +5 -7
- package/dist/node_modules/vscode-jsonrpc/browser.js +6 -8
- package/dist/node_modules/vscode-jsonrpc/lib/browser/main.js +9 -11
- package/dist/node_modules/vscode-jsonrpc/lib/browser/ril.js +6 -8
- package/dist/node_modules/vscode-jsonrpc/lib/common/api.js +26 -28
- package/dist/node_modules/vscode-jsonrpc/lib/common/cancellation.js +15 -17
- package/dist/node_modules/vscode-jsonrpc/lib/common/connection.js +11 -13
- package/dist/node_modules/vscode-jsonrpc/lib/common/disposable.js +4 -6
- package/dist/node_modules/vscode-jsonrpc/lib/common/events.js +6 -8
- package/dist/node_modules/vscode-jsonrpc/lib/common/is.js +4 -6
- package/dist/node_modules/vscode-jsonrpc/lib/common/linkedMap.js +4 -6
- package/dist/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js +4 -6
- package/dist/node_modules/vscode-jsonrpc/lib/common/messageReader.js +9 -11
- package/dist/node_modules/vscode-jsonrpc/lib/common/messageWriter.js +29 -31
- package/dist/node_modules/vscode-jsonrpc/lib/common/messages.js +6 -8
- package/dist/node_modules/vscode-jsonrpc/lib/common/ral.js +4 -6
- package/dist/node_modules/vscode-jsonrpc/lib/common/semaphore.js +6 -8
- package/dist/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/browser/main.js +8 -10
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/api.js +21 -23
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/connection.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/messages.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js +12 -14
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.js +53 -55
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.js +8 -10
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js +10 -12
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js +6 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js +4 -6
- package/dist/node_modules/vscode-languageserver-textdocument/lib/esm/main.js +19 -21
- package/dist/node_modules/vscode-languageserver-types/lib/esm/main.js +847 -849
- package/dist/node_modules/vscode-uri/lib/esm/index.js +4 -6
- package/dist/node_modules/web-namespaces/index.js +2 -4
- package/dist/node_modules/zwitch/index.js +5 -7
- package/dist/packages/contracts/dist/enums/index.js +12 -14
- package/dist/packages/contracts/dist/enums/registry.enum.js +4 -6
- package/dist/packages/contracts/dist/enums/sort-order.enum.js +4 -6
- package/dist/packages/contracts/dist/enums/user-type.enum.js +4 -6
- package/dist/packages/contracts/dist/enums/workflow-state.enum.js +4 -6
- package/dist/pages/DashboardPage.js +99 -55
- package/dist/pages/DebugPage.js +17 -12
- package/dist/pages/DebugWorkflowDetailsPage.js +119 -91
- package/dist/pages/DebugWorkflowsPage.js +37 -39
- package/dist/pages/EmbedWorkbenchPage.js +62 -48
- package/dist/pages/PreviewWorkbenchPage.js +324 -243
- package/dist/pages/RunsListPage.js +61 -44
- package/dist/pages/RunsPage.js +48 -31
- package/dist/pages/StudioLandingPage.js +132 -97
- package/dist/pages/WorkbenchPage.js +86 -56
- package/dist/pages/WorkflowDebugPage.js +110 -74
- package/dist/pages/WorkspacePage.js +115 -72
- package/dist/pages/WorkspaceRunsPage.js +70 -43
- package/dist/pages/WorkspacesPage.js +35 -24
- package/dist/providers/ComponentOverridesProvider.js +12 -9
- package/dist/providers/InvalidationEventsProvider.js +35 -33
- package/dist/providers/QueryProvider.js +18 -14
- package/dist/providers/SseProvider.js +29 -28
- package/dist/providers/StudioProvider.js +19 -14
- package/dist/routing/LocalRouter.js +9 -6
- package/dist/services/createApiClient.js +5 -7
- package/dist/services/eventEmitter.js +2 -3
- package/dist/services/index.js +2 -2
- package/dist/types/ai.types.js +5 -7
- package/package.json +33 -33
- package/dist/_virtual/_rolldown/runtime.js +0 -20
- package/dist/frontend/studio/node_modules/lodash/_Symbol.js +0 -9
- package/dist/frontend/studio/node_modules/lodash/_baseGetTag.js +0 -15
- package/dist/frontend/studio/node_modules/lodash/_baseTrim.js +0 -13
- package/dist/frontend/studio/node_modules/lodash/_freeGlobal.js +0 -8
- package/dist/frontend/studio/node_modules/lodash/_getRawTag.js +0 -19
- package/dist/frontend/studio/node_modules/lodash/_objectToString.js +0 -12
- package/dist/frontend/studio/node_modules/lodash/_root.js +0 -10
- package/dist/frontend/studio/node_modules/lodash/_trimmedEndIndex.js +0 -13
- package/dist/frontend/studio/node_modules/lodash/isObject.js +0 -12
- package/dist/frontend/studio/node_modules/lodash/isObjectLike.js +0 -11
- package/dist/frontend/studio/node_modules/lodash/isSymbol.js +0 -14
- package/dist/frontend/studio/node_modules/lodash/now.js +0 -12
- package/dist/frontend/studio/node_modules/lodash/toNumber.js +0 -24
- package/dist/node_modules/@shikijs/primitive/dist/index.js +0 -540
- package/dist/node_modules/shiki/dist/chunk-CtajNgzt.js +0 -17
- package/dist/node_modules/shiki/dist/engine-oniguruma.js +0 -7
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import { __name
|
|
2
|
-
import { assignWithDepth_default
|
|
3
|
-
import
|
|
1
|
+
import { __name, log } from "./chunk-AGHRB4JF.js";
|
|
2
|
+
import { assignWithDepth_default, calculateMathMLDimensions, clear, common_default, configureSvgSize, getAccDescription, getAccTitle, getConfig, getConfig2, getDiagramTitle, getUrl, hasKatex, renderKatexSanitized, sanitizeText, setAccDescription, setAccTitle, setConfig2, setDiagramTitle } from "./chunk-ICPOFSXX.js";
|
|
3
|
+
import select_default from "../../../../d3-selection/src/select.js";
|
|
4
4
|
import "../../../../d3/src/index.js";
|
|
5
|
-
import { JSON_SCHEMA
|
|
6
|
-
import { require_dist
|
|
7
|
-
import { parseFontSize
|
|
8
|
-
import { drawBackgroundRect
|
|
9
|
-
import { ImperativeState
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
var t = /* @__PURE__ */ e(function(e, t, n, r) {
|
|
5
|
+
import { JSON_SCHEMA, load } from "./chunk-XPW4576I.js";
|
|
6
|
+
import { require_dist } from "../../../../@braintree/sanitize-url/dist/index.js";
|
|
7
|
+
import { ZERO_WIDTH_SPACE, parseFontSize, utils_default } from "./chunk-5PVQY5BW.js";
|
|
8
|
+
import { drawBackgroundRect, drawEmbeddedImage, drawImage, drawRect, getNoteRect, getTextObj } from "./chunk-YZCP3GAM.js";
|
|
9
|
+
import { ImperativeState } from "./chunk-QZHKN3VN.js";
|
|
10
|
+
var import_dist = require_dist(), parser = (function() {
|
|
11
|
+
var t = /* @__PURE__ */ __name(function(e, t, n, r) {
|
|
13
12
|
for (n ||= {}, r = e.length; r--; n[e[r]] = t);
|
|
14
13
|
return n;
|
|
15
14
|
}, "o"), n = [1, 2], r = [1, 3], i = [1, 4], a = [2, 4], o = [1, 9], s = [1, 11], c = [1, 12], l = [1, 14], u = [1, 15], d = [1, 17], f = [1, 18], p = [1, 19], m = [1, 25], h = [1, 26], g = [1, 27], _ = [1, 28], v = [1, 29], y = [1, 30], b = [1, 31], x = [1, 32], S = [1, 33], C = [1, 34], w = [1, 35], T = [1, 36], E = [1, 37], D = [1, 38], O = [1, 39], k = [1, 40], A = [1, 42], j = [1, 43], M = [1, 44], N = [1, 45], P = [1, 46], F = [1, 47], I = [
|
|
@@ -48,14 +47,14 @@ var N = C(), P = (function() {
|
|
|
48
47
|
63,
|
|
49
48
|
64,
|
|
50
49
|
73
|
|
51
|
-
], L = [1, 74],
|
|
50
|
+
], L = [1, 74], R = [1, 80], z = [1, 81], B = [1, 82], V = [1, 83], Be = [1, 84], Ve = [1, 85], He = [1, 86], Ue = [1, 87], We = [1, 88], Ge = [1, 89], Ke = [1, 90], qe = [1, 91], Je = [1, 92], Ye = [1, 93], H = [1, 94], U = [1, 95], W = [1, 96], Xe = [1, 97], Ze = [1, 98], Qe = [1, 99], $e = [1, 100], et = [1, 101], G = [1, 102], tt = [1, 103], nt = [1, 104], rt = [1, 105], it = [2, 78], K = [
|
|
52
51
|
4,
|
|
53
52
|
5,
|
|
54
53
|
17,
|
|
55
54
|
51,
|
|
56
55
|
53,
|
|
57
56
|
54
|
|
58
|
-
],
|
|
57
|
+
], q = [
|
|
59
58
|
4,
|
|
60
59
|
5,
|
|
61
60
|
10,
|
|
@@ -87,7 +86,7 @@ var N = C(), P = (function() {
|
|
|
87
86
|
63,
|
|
88
87
|
64,
|
|
89
88
|
73
|
|
90
|
-
],
|
|
89
|
+
], at = [
|
|
91
90
|
4,
|
|
92
91
|
5,
|
|
93
92
|
10,
|
|
@@ -120,7 +119,7 @@ var N = C(), P = (function() {
|
|
|
120
119
|
63,
|
|
121
120
|
64,
|
|
122
121
|
73
|
|
123
|
-
],
|
|
122
|
+
], J = [
|
|
124
123
|
4,
|
|
125
124
|
5,
|
|
126
125
|
10,
|
|
@@ -153,7 +152,7 @@ var N = C(), P = (function() {
|
|
|
153
152
|
63,
|
|
154
153
|
64,
|
|
155
154
|
73
|
|
156
|
-
],
|
|
155
|
+
], ot = [
|
|
157
156
|
4,
|
|
158
157
|
5,
|
|
159
158
|
10,
|
|
@@ -186,13 +185,13 @@ var N = C(), P = (function() {
|
|
|
186
185
|
63,
|
|
187
186
|
64,
|
|
188
187
|
73
|
|
189
|
-
],
|
|
188
|
+
], Y = [5, 52], X = [
|
|
190
189
|
70,
|
|
191
190
|
71,
|
|
192
191
|
72,
|
|
193
192
|
73
|
|
194
|
-
],
|
|
195
|
-
trace: /* @__PURE__ */
|
|
193
|
+
], Z = [1, 151], Q = {
|
|
194
|
+
trace: /* @__PURE__ */ __name(function() {}, "trace"),
|
|
196
195
|
yy: {},
|
|
197
196
|
symbols_: {
|
|
198
197
|
error: 2,
|
|
@@ -490,7 +489,7 @@ var N = C(), P = (function() {
|
|
|
490
489
|
[69, 1],
|
|
491
490
|
[58, 1]
|
|
492
491
|
],
|
|
493
|
-
performAction: /* @__PURE__ */
|
|
492
|
+
performAction: /* @__PURE__ */ __name(function(e, t, n, r, i, a, o) {
|
|
494
493
|
var s = a.length - 1;
|
|
495
494
|
switch (i) {
|
|
496
495
|
case 3: return r.apply(a[s]), a[s];
|
|
@@ -1181,32 +1180,32 @@ var N = C(), P = (function() {
|
|
|
1181
1180
|
{
|
|
1182
1181
|
69: 78,
|
|
1183
1182
|
72: [1, 79],
|
|
1184
|
-
78:
|
|
1185
|
-
79:
|
|
1186
|
-
80:
|
|
1187
|
-
81:
|
|
1188
|
-
82:
|
|
1189
|
-
83:
|
|
1190
|
-
84:
|
|
1191
|
-
85:
|
|
1192
|
-
86:
|
|
1193
|
-
87:
|
|
1194
|
-
88:
|
|
1195
|
-
89:
|
|
1196
|
-
90:
|
|
1197
|
-
91:
|
|
1198
|
-
92:
|
|
1199
|
-
93:
|
|
1200
|
-
94:
|
|
1201
|
-
95:
|
|
1202
|
-
96:
|
|
1203
|
-
97:
|
|
1204
|
-
98:
|
|
1205
|
-
99:
|
|
1206
|
-
100:
|
|
1207
|
-
101:
|
|
1208
|
-
102:
|
|
1209
|
-
103:
|
|
1183
|
+
78: R,
|
|
1184
|
+
79: z,
|
|
1185
|
+
80: B,
|
|
1186
|
+
81: V,
|
|
1187
|
+
82: Be,
|
|
1188
|
+
83: Ve,
|
|
1189
|
+
84: He,
|
|
1190
|
+
85: Ue,
|
|
1191
|
+
86: We,
|
|
1192
|
+
87: Ge,
|
|
1193
|
+
88: Ke,
|
|
1194
|
+
89: qe,
|
|
1195
|
+
90: Je,
|
|
1196
|
+
91: Ye,
|
|
1197
|
+
92: H,
|
|
1198
|
+
93: U,
|
|
1199
|
+
94: W,
|
|
1200
|
+
95: Xe,
|
|
1201
|
+
96: Ze,
|
|
1202
|
+
97: Qe,
|
|
1203
|
+
98: $e,
|
|
1204
|
+
99: et,
|
|
1205
|
+
100: G,
|
|
1206
|
+
101: tt,
|
|
1207
|
+
102: nt,
|
|
1208
|
+
103: rt
|
|
1210
1209
|
},
|
|
1211
1210
|
{
|
|
1212
1211
|
57: 106,
|
|
@@ -1261,10 +1260,10 @@ var N = C(), P = (function() {
|
|
|
1261
1260
|
102,
|
|
1262
1261
|
103,
|
|
1263
1262
|
104
|
|
1264
|
-
],
|
|
1263
|
+
], it),
|
|
1265
1264
|
t(I, [2, 6]),
|
|
1266
1265
|
t(I, [2, 16]),
|
|
1267
|
-
t(
|
|
1266
|
+
t(K, [2, 10], { 11: 114 }),
|
|
1268
1267
|
t(I, [2, 18]),
|
|
1269
1268
|
{
|
|
1270
1269
|
5: [1, 116],
|
|
@@ -1281,26 +1280,26 @@ var N = C(), P = (function() {
|
|
|
1281
1280
|
t(I, [2, 29]),
|
|
1282
1281
|
t(I, [2, 32]),
|
|
1283
1282
|
t(I, [2, 33]),
|
|
1284
|
-
t(
|
|
1285
|
-
t(
|
|
1286
|
-
t(
|
|
1287
|
-
t(
|
|
1283
|
+
t(q, a, { 7: 120 }),
|
|
1284
|
+
t(q, a, { 7: 121 }),
|
|
1285
|
+
t(q, a, { 7: 122 }),
|
|
1286
|
+
t(at, a, {
|
|
1288
1287
|
41: 123,
|
|
1289
1288
|
7: 124
|
|
1290
1289
|
}),
|
|
1291
|
-
t(
|
|
1290
|
+
t(J, a, {
|
|
1292
1291
|
43: 125,
|
|
1293
1292
|
7: 126
|
|
1294
1293
|
}),
|
|
1295
|
-
t(
|
|
1294
|
+
t(J, a, {
|
|
1296
1295
|
7: 126,
|
|
1297
1296
|
43: 127
|
|
1298
1297
|
}),
|
|
1299
|
-
t(
|
|
1298
|
+
t(ot, a, {
|
|
1300
1299
|
46: 128,
|
|
1301
1300
|
7: 129
|
|
1302
1301
|
}),
|
|
1303
|
-
t(
|
|
1302
|
+
t(q, a, { 7: 130 }),
|
|
1304
1303
|
{
|
|
1305
1304
|
5: [1, 132],
|
|
1306
1305
|
52: [1, 131]
|
|
@@ -1309,7 +1308,7 @@ var N = C(), P = (function() {
|
|
|
1309
1308
|
5: [1, 134],
|
|
1310
1309
|
52: [1, 133]
|
|
1311
1310
|
},
|
|
1312
|
-
t(
|
|
1311
|
+
t(Y, it, {
|
|
1313
1312
|
74: 135,
|
|
1314
1313
|
75: [1, 136]
|
|
1315
1314
|
}),
|
|
@@ -1331,59 +1330,59 @@ var N = C(), P = (function() {
|
|
|
1331
1330
|
},
|
|
1332
1331
|
{
|
|
1333
1332
|
69: 146,
|
|
1334
|
-
78:
|
|
1335
|
-
79:
|
|
1336
|
-
80:
|
|
1337
|
-
81:
|
|
1338
|
-
82:
|
|
1339
|
-
83:
|
|
1340
|
-
84:
|
|
1341
|
-
85:
|
|
1342
|
-
86:
|
|
1343
|
-
87:
|
|
1344
|
-
88:
|
|
1345
|
-
89:
|
|
1346
|
-
90:
|
|
1347
|
-
91:
|
|
1348
|
-
92:
|
|
1349
|
-
93:
|
|
1350
|
-
94:
|
|
1351
|
-
95:
|
|
1352
|
-
96:
|
|
1353
|
-
97:
|
|
1354
|
-
98:
|
|
1355
|
-
99:
|
|
1356
|
-
100:
|
|
1357
|
-
101:
|
|
1358
|
-
102:
|
|
1359
|
-
103:
|
|
1333
|
+
78: R,
|
|
1334
|
+
79: z,
|
|
1335
|
+
80: B,
|
|
1336
|
+
81: V,
|
|
1337
|
+
82: Be,
|
|
1338
|
+
83: Ve,
|
|
1339
|
+
84: He,
|
|
1340
|
+
85: Ue,
|
|
1341
|
+
86: We,
|
|
1342
|
+
87: Ge,
|
|
1343
|
+
88: Ke,
|
|
1344
|
+
89: qe,
|
|
1345
|
+
90: Je,
|
|
1346
|
+
91: Ye,
|
|
1347
|
+
92: H,
|
|
1348
|
+
93: U,
|
|
1349
|
+
94: W,
|
|
1350
|
+
95: Xe,
|
|
1351
|
+
96: Ze,
|
|
1352
|
+
97: Qe,
|
|
1353
|
+
98: $e,
|
|
1354
|
+
99: et,
|
|
1355
|
+
100: G,
|
|
1356
|
+
101: tt,
|
|
1357
|
+
102: nt,
|
|
1358
|
+
103: rt
|
|
1360
1359
|
},
|
|
1361
|
-
t(
|
|
1362
|
-
t(
|
|
1363
|
-
t(
|
|
1364
|
-
t(
|
|
1365
|
-
t(
|
|
1366
|
-
t(
|
|
1367
|
-
t(
|
|
1368
|
-
t(
|
|
1369
|
-
t(
|
|
1370
|
-
t(
|
|
1371
|
-
t(
|
|
1372
|
-
t(
|
|
1373
|
-
t(
|
|
1374
|
-
t(
|
|
1375
|
-
t(
|
|
1376
|
-
t(
|
|
1377
|
-
t(
|
|
1378
|
-
t(
|
|
1379
|
-
t(
|
|
1380
|
-
t(
|
|
1381
|
-
t(
|
|
1382
|
-
t(
|
|
1383
|
-
t(
|
|
1384
|
-
t(
|
|
1385
|
-
t(
|
|
1386
|
-
t(
|
|
1360
|
+
t(X, [2, 79]),
|
|
1361
|
+
t(X, [2, 80]),
|
|
1362
|
+
t(X, [2, 81]),
|
|
1363
|
+
t(X, [2, 82]),
|
|
1364
|
+
t(X, [2, 83]),
|
|
1365
|
+
t(X, [2, 84]),
|
|
1366
|
+
t(X, [2, 85]),
|
|
1367
|
+
t(X, [2, 86]),
|
|
1368
|
+
t(X, [2, 87]),
|
|
1369
|
+
t(X, [2, 88]),
|
|
1370
|
+
t(X, [2, 89]),
|
|
1371
|
+
t(X, [2, 90]),
|
|
1372
|
+
t(X, [2, 91]),
|
|
1373
|
+
t(X, [2, 92]),
|
|
1374
|
+
t(X, [2, 93]),
|
|
1375
|
+
t(X, [2, 94]),
|
|
1376
|
+
t(X, [2, 95]),
|
|
1377
|
+
t(X, [2, 96]),
|
|
1378
|
+
t(X, [2, 97]),
|
|
1379
|
+
t(X, [2, 98]),
|
|
1380
|
+
t(X, [2, 99]),
|
|
1381
|
+
t(X, [2, 100]),
|
|
1382
|
+
t(X, [2, 101]),
|
|
1383
|
+
t(X, [2, 102]),
|
|
1384
|
+
t(X, [2, 103]),
|
|
1385
|
+
t(X, [2, 104]),
|
|
1387
1386
|
{
|
|
1388
1387
|
23: 147,
|
|
1389
1388
|
73: F
|
|
@@ -1397,19 +1396,19 @@ var N = C(), P = (function() {
|
|
|
1397
1396
|
{ 73: [2, 69] },
|
|
1398
1397
|
{
|
|
1399
1398
|
58: 150,
|
|
1400
|
-
104:
|
|
1399
|
+
104: Z
|
|
1401
1400
|
},
|
|
1402
1401
|
{
|
|
1403
1402
|
58: 152,
|
|
1404
|
-
104:
|
|
1403
|
+
104: Z
|
|
1405
1404
|
},
|
|
1406
1405
|
{
|
|
1407
1406
|
58: 153,
|
|
1408
|
-
104:
|
|
1407
|
+
104: Z
|
|
1409
1408
|
},
|
|
1410
1409
|
{
|
|
1411
1410
|
58: 154,
|
|
1412
|
-
104:
|
|
1411
|
+
104: Z
|
|
1413
1412
|
},
|
|
1414
1413
|
{
|
|
1415
1414
|
4: [1, 157],
|
|
@@ -1738,7 +1737,7 @@ var N = C(), P = (function() {
|
|
|
1738
1737
|
t(I, [2, 50]),
|
|
1739
1738
|
{ 16: [1, 173] },
|
|
1740
1739
|
t(I, [2, 55]),
|
|
1741
|
-
t(
|
|
1740
|
+
t(Y, [2, 76]),
|
|
1742
1741
|
{ 76: [1, 174] },
|
|
1743
1742
|
{ 16: [1, 175] },
|
|
1744
1743
|
t(I, [2, 52]),
|
|
@@ -1759,7 +1758,7 @@ var N = C(), P = (function() {
|
|
|
1759
1758
|
},
|
|
1760
1759
|
{
|
|
1761
1760
|
58: 180,
|
|
1762
|
-
104:
|
|
1761
|
+
104: Z
|
|
1763
1762
|
},
|
|
1764
1763
|
{
|
|
1765
1764
|
23: 181,
|
|
@@ -1768,11 +1767,11 @@ var N = C(), P = (function() {
|
|
|
1768
1767
|
},
|
|
1769
1768
|
{
|
|
1770
1769
|
58: 183,
|
|
1771
|
-
104:
|
|
1770
|
+
104: Z
|
|
1772
1771
|
},
|
|
1773
1772
|
{
|
|
1774
1773
|
58: 184,
|
|
1775
|
-
104:
|
|
1774
|
+
104: Z
|
|
1776
1775
|
},
|
|
1777
1776
|
{
|
|
1778
1777
|
66: [1, 185],
|
|
@@ -1784,15 +1783,15 @@ var N = C(), P = (function() {
|
|
|
1784
1783
|
{ 5: [2, 62] },
|
|
1785
1784
|
{ 5: [2, 63] },
|
|
1786
1785
|
t(I, [2, 17]),
|
|
1787
|
-
t(
|
|
1786
|
+
t(K, [2, 11]),
|
|
1788
1787
|
{
|
|
1789
1788
|
13: 186,
|
|
1790
1789
|
51: D,
|
|
1791
1790
|
53: O,
|
|
1792
1791
|
54: k
|
|
1793
1792
|
},
|
|
1794
|
-
t(
|
|
1795
|
-
t(
|
|
1793
|
+
t(K, [2, 13]),
|
|
1794
|
+
t(K, [2, 14]),
|
|
1796
1795
|
t(I, [2, 19]),
|
|
1797
1796
|
t(I, [2, 35]),
|
|
1798
1797
|
t(I, [2, 36]),
|
|
@@ -1812,20 +1811,20 @@ var N = C(), P = (function() {
|
|
|
1812
1811
|
{ 5: [1, 194] },
|
|
1813
1812
|
{
|
|
1814
1813
|
58: 195,
|
|
1815
|
-
104:
|
|
1814
|
+
104: Z
|
|
1816
1815
|
},
|
|
1817
1816
|
{
|
|
1818
1817
|
58: 196,
|
|
1819
|
-
104:
|
|
1818
|
+
104: Z
|
|
1820
1819
|
},
|
|
1821
1820
|
{
|
|
1822
1821
|
58: 197,
|
|
1823
|
-
104:
|
|
1822
|
+
104: Z
|
|
1824
1823
|
},
|
|
1825
1824
|
{ 5: [2, 75] },
|
|
1826
1825
|
{
|
|
1827
1826
|
58: 198,
|
|
1828
|
-
104:
|
|
1827
|
+
104: Z
|
|
1829
1828
|
},
|
|
1830
1829
|
{
|
|
1831
1830
|
23: 199,
|
|
@@ -1837,22 +1836,22 @@ var N = C(), P = (function() {
|
|
|
1837
1836
|
23: 200,
|
|
1838
1837
|
73: F
|
|
1839
1838
|
},
|
|
1840
|
-
t(
|
|
1841
|
-
t(
|
|
1839
|
+
t(K, [2, 12]),
|
|
1840
|
+
t(at, a, {
|
|
1842
1841
|
7: 124,
|
|
1843
1842
|
41: 201
|
|
1844
1843
|
}),
|
|
1845
|
-
t(
|
|
1844
|
+
t(J, a, {
|
|
1846
1845
|
7: 126,
|
|
1847
1846
|
43: 202
|
|
1848
1847
|
}),
|
|
1849
|
-
t(
|
|
1848
|
+
t(ot, a, {
|
|
1850
1849
|
7: 129,
|
|
1851
1850
|
46: 203
|
|
1852
1851
|
}),
|
|
1853
1852
|
t(I, [2, 49]),
|
|
1854
1853
|
t(I, [2, 54]),
|
|
1855
|
-
t(
|
|
1854
|
+
t(Y, [2, 77]),
|
|
1856
1855
|
t(I, [2, 51]),
|
|
1857
1856
|
t(I, [2, 56]),
|
|
1858
1857
|
{ 5: [2, 70] },
|
|
@@ -1861,7 +1860,7 @@ var N = C(), P = (function() {
|
|
|
1861
1860
|
{ 5: [2, 73] },
|
|
1862
1861
|
{
|
|
1863
1862
|
58: 204,
|
|
1864
|
-
104:
|
|
1863
|
+
104: Z
|
|
1865
1864
|
},
|
|
1866
1865
|
{ 104: [2, 66] },
|
|
1867
1866
|
{ 17: [2, 48] },
|
|
@@ -1892,14 +1891,14 @@ var N = C(), P = (function() {
|
|
|
1892
1891
|
203: [2, 44],
|
|
1893
1892
|
204: [2, 74]
|
|
1894
1893
|
},
|
|
1895
|
-
parseError: /* @__PURE__ */
|
|
1894
|
+
parseError: /* @__PURE__ */ __name(function(e, t) {
|
|
1896
1895
|
if (t.recoverable) this.trace(e);
|
|
1897
1896
|
else {
|
|
1898
1897
|
var n = Error(e);
|
|
1899
1898
|
throw n.hash = t, n;
|
|
1900
1899
|
}
|
|
1901
1900
|
}, "parseError"),
|
|
1902
|
-
parse: /* @__PURE__ */
|
|
1901
|
+
parse: /* @__PURE__ */ __name(function(t) {
|
|
1903
1902
|
var n = this, r = [0], i = [], a = [null], o = [], s = this.table, c = "", l = 0, u = 0, d = 0, f = 2, p = 1, m = o.slice.call(arguments, 1), h = Object.create(this.lexer), g = { yy: {} };
|
|
1904
1903
|
for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
|
|
1905
1904
|
h.setInput(t, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
|
|
@@ -1910,12 +1909,12 @@ var N = C(), P = (function() {
|
|
|
1910
1909
|
function b(e) {
|
|
1911
1910
|
r.length -= 2 * e, a.length -= e, o.length -= e;
|
|
1912
1911
|
}
|
|
1913
|
-
|
|
1912
|
+
__name(b, "popStack");
|
|
1914
1913
|
function x() {
|
|
1915
1914
|
var e = i.pop() || h.lex() || p;
|
|
1916
1915
|
return typeof e != "number" && (e instanceof Array && (i = e, e = i.pop()), e = n.symbols_[e] || e), e;
|
|
1917
1916
|
}
|
|
1918
|
-
|
|
1917
|
+
__name(x, "lex");
|
|
1919
1918
|
for (var S, C, w, T, E, D = {}, O, k, A, j;;) {
|
|
1920
1919
|
if (w = r[r.length - 1], this.defaultActions[w] ? T = this.defaultActions[w] : (S ??= x(), T = s[w] && s[w][S]), T === void 0 || !T.length || !T[0]) {
|
|
1921
1920
|
var M = "";
|
|
@@ -1956,14 +1955,14 @@ var N = C(), P = (function() {
|
|
|
1956
1955
|
return !0;
|
|
1957
1956
|
}, "parse")
|
|
1958
1957
|
};
|
|
1959
|
-
|
|
1958
|
+
Q.lexer = /* @__PURE__ */ (function() {
|
|
1960
1959
|
return {
|
|
1961
1960
|
EOF: 1,
|
|
1962
|
-
parseError: /* @__PURE__ */
|
|
1961
|
+
parseError: /* @__PURE__ */ __name(function(e, t) {
|
|
1963
1962
|
if (this.yy.parser) this.yy.parser.parseError(e, t);
|
|
1964
1963
|
else throw Error(e);
|
|
1965
1964
|
}, "parseError"),
|
|
1966
|
-
setInput: /* @__PURE__ */
|
|
1965
|
+
setInput: /* @__PURE__ */ __name(function(e, t) {
|
|
1967
1966
|
return this.yy = t || this.yy || {}, this._input = e, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
|
1968
1967
|
first_line: 1,
|
|
1969
1968
|
first_column: 0,
|
|
@@ -1971,11 +1970,11 @@ var N = C(), P = (function() {
|
|
|
1971
1970
|
last_column: 0
|
|
1972
1971
|
}, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
|
|
1973
1972
|
}, "setInput"),
|
|
1974
|
-
input: /* @__PURE__ */
|
|
1973
|
+
input: /* @__PURE__ */ __name(function() {
|
|
1975
1974
|
var e = this._input[0];
|
|
1976
1975
|
return this.yytext += e, this.yyleng++, this.offset++, this.match += e, this.matched += e, e.match(/(?:\r\n?|\n).*/g) ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), e;
|
|
1977
1976
|
}, "input"),
|
|
1978
|
-
unput: /* @__PURE__ */
|
|
1977
|
+
unput: /* @__PURE__ */ __name(function(e) {
|
|
1979
1978
|
var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
|
|
1980
1979
|
this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
|
|
1981
1980
|
var r = this.match.split(/(?:\r\n?|\n)/g);
|
|
@@ -1988,10 +1987,10 @@ var N = C(), P = (function() {
|
|
|
1988
1987
|
last_column: n ? (n.length === r.length ? this.yylloc.first_column : 0) + r[r.length - n.length].length - n[0].length : this.yylloc.first_column - t
|
|
1989
1988
|
}, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
|
|
1990
1989
|
}, "unput"),
|
|
1991
|
-
more: /* @__PURE__ */
|
|
1990
|
+
more: /* @__PURE__ */ __name(function() {
|
|
1992
1991
|
return this._more = !0, this;
|
|
1993
1992
|
}, "more"),
|
|
1994
|
-
reject: /* @__PURE__ */
|
|
1993
|
+
reject: /* @__PURE__ */ __name(function() {
|
|
1995
1994
|
if (this.options.backtrack_lexer) this._backtrack = !0;
|
|
1996
1995
|
else return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n" + this.showPosition(), {
|
|
1997
1996
|
text: "",
|
|
@@ -2000,22 +1999,22 @@ var N = C(), P = (function() {
|
|
|
2000
1999
|
});
|
|
2001
2000
|
return this;
|
|
2002
2001
|
}, "reject"),
|
|
2003
|
-
less: /* @__PURE__ */
|
|
2002
|
+
less: /* @__PURE__ */ __name(function(e) {
|
|
2004
2003
|
this.unput(this.match.slice(e));
|
|
2005
2004
|
}, "less"),
|
|
2006
|
-
pastInput: /* @__PURE__ */
|
|
2005
|
+
pastInput: /* @__PURE__ */ __name(function() {
|
|
2007
2006
|
var e = this.matched.substr(0, this.matched.length - this.match.length);
|
|
2008
2007
|
return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
|
|
2009
2008
|
}, "pastInput"),
|
|
2010
|
-
upcomingInput: /* @__PURE__ */
|
|
2009
|
+
upcomingInput: /* @__PURE__ */ __name(function() {
|
|
2011
2010
|
var e = this.match;
|
|
2012
2011
|
return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
2013
2012
|
}, "upcomingInput"),
|
|
2014
|
-
showPosition: /* @__PURE__ */
|
|
2013
|
+
showPosition: /* @__PURE__ */ __name(function() {
|
|
2015
2014
|
var e = this.pastInput(), t = Array(e.length + 1).join("-");
|
|
2016
2015
|
return e + this.upcomingInput() + "\n" + t + "^";
|
|
2017
2016
|
}, "showPosition"),
|
|
2018
|
-
test_match: /* @__PURE__ */
|
|
2017
|
+
test_match: /* @__PURE__ */ __name(function(e, t) {
|
|
2019
2018
|
var n, r, i;
|
|
2020
2019
|
if (this.options.backtrack_lexer && (i = {
|
|
2021
2020
|
yylineno: this.yylineno,
|
|
@@ -2048,7 +2047,7 @@ var N = C(), P = (function() {
|
|
|
2048
2047
|
}
|
|
2049
2048
|
return !1;
|
|
2050
2049
|
}, "test_match"),
|
|
2051
|
-
next: /* @__PURE__ */
|
|
2050
|
+
next: /* @__PURE__ */ __name(function() {
|
|
2052
2051
|
if (this.done) return this.EOF;
|
|
2053
2052
|
this._input || (this.done = !0);
|
|
2054
2053
|
var e, t, n, r;
|
|
@@ -2068,29 +2067,29 @@ var N = C(), P = (function() {
|
|
|
2068
2067
|
line: this.yylineno
|
|
2069
2068
|
});
|
|
2070
2069
|
}, "next"),
|
|
2071
|
-
lex: /* @__PURE__ */
|
|
2070
|
+
lex: /* @__PURE__ */ __name(function() {
|
|
2072
2071
|
return this.next() || this.lex();
|
|
2073
2072
|
}, "lex"),
|
|
2074
|
-
begin: /* @__PURE__ */
|
|
2073
|
+
begin: /* @__PURE__ */ __name(function(e) {
|
|
2075
2074
|
this.conditionStack.push(e);
|
|
2076
2075
|
}, "begin"),
|
|
2077
|
-
popState: /* @__PURE__ */
|
|
2076
|
+
popState: /* @__PURE__ */ __name(function() {
|
|
2078
2077
|
return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
2079
2078
|
}, "popState"),
|
|
2080
|
-
_currentRules: /* @__PURE__ */
|
|
2079
|
+
_currentRules: /* @__PURE__ */ __name(function() {
|
|
2081
2080
|
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
2082
2081
|
}, "_currentRules"),
|
|
2083
|
-
topState: /* @__PURE__ */
|
|
2082
|
+
topState: /* @__PURE__ */ __name(function(e) {
|
|
2084
2083
|
return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
|
|
2085
2084
|
}, "topState"),
|
|
2086
|
-
pushState: /* @__PURE__ */
|
|
2085
|
+
pushState: /* @__PURE__ */ __name(function(e) {
|
|
2087
2086
|
this.begin(e);
|
|
2088
2087
|
}, "pushState"),
|
|
2089
|
-
stateStackSize: /* @__PURE__ */
|
|
2088
|
+
stateStackSize: /* @__PURE__ */ __name(function() {
|
|
2090
2089
|
return this.conditionStack.length;
|
|
2091
2090
|
}, "stateStackSize"),
|
|
2092
2091
|
options: { "case-insensitive": !0 },
|
|
2093
|
-
performAction: /* @__PURE__ */
|
|
2092
|
+
performAction: /* @__PURE__ */ __name(function(e, t, n, r) {
|
|
2094
2093
|
switch (n) {
|
|
2095
2094
|
case 0: return 5;
|
|
2096
2095
|
case 1: break;
|
|
@@ -2428,13 +2427,13 @@ var N = C(), P = (function() {
|
|
|
2428
2427
|
}
|
|
2429
2428
|
};
|
|
2430
2429
|
})();
|
|
2431
|
-
function
|
|
2430
|
+
function $() {
|
|
2432
2431
|
this.yy = {};
|
|
2433
2432
|
}
|
|
2434
|
-
return
|
|
2433
|
+
return __name($, "Parser"), $.prototype = Q, Q.Parser = $, new $();
|
|
2435
2434
|
})();
|
|
2436
|
-
|
|
2437
|
-
var
|
|
2435
|
+
parser.parser = parser;
|
|
2436
|
+
var sequenceDiagram_default = parser, LINETYPE = {
|
|
2438
2437
|
SOLID: 0,
|
|
2439
2438
|
DOTTED: 1,
|
|
2440
2439
|
NOTE: 2,
|
|
@@ -2486,14 +2485,14 @@ var F = P, I = {
|
|
|
2486
2485
|
CENTRAL_CONNECTION: 59,
|
|
2487
2486
|
CENTRAL_CONNECTION_REVERSE: 60,
|
|
2488
2487
|
CENTRAL_CONNECTION_DUAL: 61
|
|
2489
|
-
},
|
|
2488
|
+
}, ARROWTYPE = {
|
|
2490
2489
|
FILLED: 0,
|
|
2491
2490
|
OPEN: 1
|
|
2492
|
-
},
|
|
2491
|
+
}, PLACEMENT = {
|
|
2493
2492
|
LEFTOF: 0,
|
|
2494
2493
|
RIGHTOF: 1,
|
|
2495
2494
|
OVER: 2
|
|
2496
|
-
},
|
|
2495
|
+
}, PARTICIPANT_TYPE = {
|
|
2497
2496
|
ACTOR: "actor",
|
|
2498
2497
|
BOUNDARY: "boundary",
|
|
2499
2498
|
COLLECTIONS: "collections",
|
|
@@ -2502,9 +2501,9 @@ var F = P, I = {
|
|
|
2502
2501
|
ENTITY: "entity",
|
|
2503
2502
|
PARTICIPANT: "participant",
|
|
2504
2503
|
QUEUE: "queue"
|
|
2505
|
-
},
|
|
2504
|
+
}, SequenceDB = class {
|
|
2506
2505
|
constructor() {
|
|
2507
|
-
this.state = new
|
|
2506
|
+
this.state = new ImperativeState(() => ({
|
|
2508
2507
|
prevActor: void 0,
|
|
2509
2508
|
actors: /* @__PURE__ */ new Map(),
|
|
2510
2509
|
createdActors: /* @__PURE__ */ new Map(),
|
|
@@ -2517,11 +2516,9 @@ var F = P, I = {
|
|
|
2517
2516
|
currentBox: void 0,
|
|
2518
2517
|
lastCreated: void 0,
|
|
2519
2518
|
lastDestroyed: void 0
|
|
2520
|
-
})), this.setAccTitle =
|
|
2521
|
-
}
|
|
2522
|
-
static {
|
|
2523
|
-
e(this, "SequenceDB");
|
|
2519
|
+
})), this.setAccTitle = setAccTitle, this.setAccDescription = setAccDescription, this.setDiagramTitle = setDiagramTitle, this.getAccTitle = getAccTitle, this.getAccDescription = getAccDescription, this.getDiagramTitle = getDiagramTitle, this.apply = this.apply.bind(this), this.parseBoxData = this.parseBoxData.bind(this), this.parseMessage = this.parseMessage.bind(this), this.clear(), this.setWrap(getConfig2().wrap), this.LINETYPE = LINETYPE, this.ARROWTYPE = ARROWTYPE, this.PLACEMENT = PLACEMENT;
|
|
2524
2520
|
}
|
|
2521
|
+
static #e = __name(this, "SequenceDB");
|
|
2525
2522
|
addBox(e) {
|
|
2526
2523
|
this.state.records.boxes.push({
|
|
2527
2524
|
name: e.text,
|
|
@@ -2534,7 +2531,7 @@ var F = P, I = {
|
|
|
2534
2531
|
let a = this.state.records.currentBox, o;
|
|
2535
2532
|
if (i !== void 0) {
|
|
2536
2533
|
let e;
|
|
2537
|
-
e = i.includes("\n") ? i + "\n" : "{\n" + i + "\n}", o =
|
|
2534
|
+
e = i.includes("\n") ? i + "\n" : "{\n" + i + "\n}", o = load(e, { schema: JSON_SCHEMA });
|
|
2538
2535
|
}
|
|
2539
2536
|
r = o?.type ?? r, o?.alias && (!n || n.text === t) && (n = {
|
|
2540
2537
|
text: o.alias,
|
|
@@ -2661,17 +2658,17 @@ var F = P, I = {
|
|
|
2661
2658
|
};
|
|
2662
2659
|
}
|
|
2663
2660
|
autoWrap() {
|
|
2664
|
-
return this.state.records.wrapEnabled === void 0 ?
|
|
2661
|
+
return this.state.records.wrapEnabled === void 0 ? getConfig2().sequence?.wrap ?? !1 : this.state.records.wrapEnabled;
|
|
2665
2662
|
}
|
|
2666
2663
|
clear() {
|
|
2667
|
-
this.state.reset(),
|
|
2664
|
+
this.state.reset(), clear();
|
|
2668
2665
|
}
|
|
2669
2666
|
parseMessage(e) {
|
|
2670
2667
|
let n = e.trim(), { wrap: r, cleanedText: i } = this.extractWrap(n), a = {
|
|
2671
2668
|
text: i,
|
|
2672
2669
|
wrap: r
|
|
2673
2670
|
};
|
|
2674
|
-
return
|
|
2671
|
+
return log.debug(`parseMessage: ${JSON.stringify(a)}`), a;
|
|
2675
2672
|
}
|
|
2676
2673
|
parseBoxData(e) {
|
|
2677
2674
|
let t = /^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(e), n = t?.[1] ? t[1].trim() : "transparent", r = t?.[2] ? t[2].trim() : void 0;
|
|
@@ -2682,7 +2679,7 @@ var F = P, I = {
|
|
|
2682
2679
|
}
|
|
2683
2680
|
let { wrap: i, cleanedText: a } = this.extractWrap(r);
|
|
2684
2681
|
return {
|
|
2685
|
-
text: a ?
|
|
2682
|
+
text: a ? sanitizeText(a, getConfig2()) : void 0,
|
|
2686
2683
|
color: n,
|
|
2687
2684
|
wrap: i
|
|
2688
2685
|
};
|
|
@@ -2707,23 +2704,23 @@ var F = P, I = {
|
|
|
2707
2704
|
addLinks(e, n) {
|
|
2708
2705
|
let r = this.getActor(e);
|
|
2709
2706
|
try {
|
|
2710
|
-
let e =
|
|
2707
|
+
let e = sanitizeText(n.text, getConfig2());
|
|
2711
2708
|
e = e.replace(/=/g, "="), e = e.replace(/&/g, "&");
|
|
2712
2709
|
let t = JSON.parse(e);
|
|
2713
2710
|
this.insertLinks(r, t);
|
|
2714
2711
|
} catch (e) {
|
|
2715
|
-
|
|
2712
|
+
log.error("error while parsing actor link text", e);
|
|
2716
2713
|
}
|
|
2717
2714
|
}
|
|
2718
2715
|
addALink(e, n) {
|
|
2719
2716
|
let r = this.getActor(e);
|
|
2720
2717
|
try {
|
|
2721
|
-
let e = {}, t =
|
|
2718
|
+
let e = {}, t = sanitizeText(n.text, getConfig2()), i = t.indexOf("@");
|
|
2722
2719
|
t = t.replace(/=/g, "="), t = t.replace(/&/g, "&");
|
|
2723
2720
|
let a = t.slice(0, i - 1).trim();
|
|
2724
2721
|
e[a] = t.slice(i + 1).trim(), this.insertLinks(r, e);
|
|
2725
2722
|
} catch (e) {
|
|
2726
|
-
|
|
2723
|
+
log.error("error while parsing actor link text", e);
|
|
2727
2724
|
}
|
|
2728
2725
|
}
|
|
2729
2726
|
insertLinks(e, t) {
|
|
@@ -2733,10 +2730,10 @@ var F = P, I = {
|
|
|
2733
2730
|
addProperties(e, n) {
|
|
2734
2731
|
let r = this.getActor(e);
|
|
2735
2732
|
try {
|
|
2736
|
-
let e =
|
|
2733
|
+
let e = sanitizeText(n.text, getConfig2()), t = JSON.parse(e);
|
|
2737
2734
|
this.insertProperties(r, t);
|
|
2738
2735
|
} catch (e) {
|
|
2739
|
-
|
|
2736
|
+
log.error("error while parsing actor properties text", e);
|
|
2740
2737
|
}
|
|
2741
2738
|
}
|
|
2742
2739
|
insertProperties(e, t) {
|
|
@@ -2752,7 +2749,7 @@ var F = P, I = {
|
|
|
2752
2749
|
let e = i.innerHTML, t = JSON.parse(e);
|
|
2753
2750
|
t.properties && this.insertProperties(r, t.properties), t.links && this.insertLinks(r, t.links);
|
|
2754
2751
|
} catch (e) {
|
|
2755
|
-
|
|
2752
|
+
log.error("error while parsing actor details text", e);
|
|
2756
2753
|
}
|
|
2757
2754
|
}
|
|
2758
2755
|
getActorProperty(e, t) {
|
|
@@ -2858,7 +2855,7 @@ var F = P, I = {
|
|
|
2858
2855
|
this.addSignal(void 0, void 0, void 0, e.signalType);
|
|
2859
2856
|
break;
|
|
2860
2857
|
case "setAccTitle":
|
|
2861
|
-
|
|
2858
|
+
setAccTitle(e.text);
|
|
2862
2859
|
break;
|
|
2863
2860
|
case "parStart":
|
|
2864
2861
|
this.addSignal(void 0, void 0, e.parText, e.signalType);
|
|
@@ -2887,10 +2884,10 @@ var F = P, I = {
|
|
|
2887
2884
|
}
|
|
2888
2885
|
}
|
|
2889
2886
|
getConfig() {
|
|
2890
|
-
return
|
|
2887
|
+
return getConfig2().sequence;
|
|
2891
2888
|
}
|
|
2892
|
-
},
|
|
2893
|
-
let t = e.dropShadow ?? "none", { look: n } =
|
|
2889
|
+
}, styles_default = /* @__PURE__ */ __name((e) => {
|
|
2890
|
+
let t = e.dropShadow ?? "none", { look: n } = getConfig2();
|
|
2894
2891
|
return `.actor {
|
|
2895
2892
|
stroke: ${e.actorBorder};
|
|
2896
2893
|
fill: ${e.actorBkg};
|
|
@@ -3026,10 +3023,10 @@ var F = P, I = {
|
|
|
3026
3023
|
stroke: ${e.nodeBorder};
|
|
3027
3024
|
}
|
|
3028
3025
|
`;
|
|
3029
|
-
}, "getStyles"),
|
|
3030
|
-
let n =
|
|
3031
|
-
return
|
|
3032
|
-
}, "drawRect"),
|
|
3026
|
+
}, "getStyles"), ACTOR_TYPE_WIDTH = 36, TOP_ACTOR_CLASS = "actor-top", BOTTOM_ACTOR_CLASS = "actor-bottom", ACTOR_BOX_CLASS = "actor-box", ACTOR_MAN_FIGURE_CLASS = "actor-man", COLOR_THEMES = /* @__PURE__ */ new Set(["redux-color", "redux-dark-color"]), drawRect2 = /* @__PURE__ */ __name(function(e, t) {
|
|
3027
|
+
let n = drawRect(e, t);
|
|
3028
|
+
return getConfig().look === "neo" && n.attr("data-look", "neo"), n;
|
|
3029
|
+
}, "drawRect"), drawPopup = /* @__PURE__ */ __name(function(e, t, n, r, i) {
|
|
3033
3030
|
if (t.links === void 0 || t.links === null || Object.keys(t.links).length === 0) return {
|
|
3034
3031
|
height: 0,
|
|
3035
3032
|
width: 0
|
|
@@ -3045,18 +3042,18 @@ var F = P, I = {
|
|
|
3045
3042
|
if (f.attr("class", "actorPopupMenuPanel" + u), f.attr("x", s.x), f.attr("y", s.height), f.attr("fill", s.fill), f.attr("stroke", s.stroke), f.attr("width", d), f.attr("height", s.height), f.attr("rx", s.rx), f.attr("ry", s.ry), a != null) {
|
|
3046
3043
|
var p = 20;
|
|
3047
3044
|
for (let e in a) {
|
|
3048
|
-
var m = l.append("a"), h = (0,
|
|
3049
|
-
m.attr("xlink:href", h), m.attr("target", "_blank"),
|
|
3045
|
+
var m = l.append("a"), h = (0, import_dist.sanitizeUrl)(a[e]);
|
|
3046
|
+
m.attr("xlink:href", h), m.attr("target", "_blank"), _drawMenuItemTextCandidateFunc(r)(e, m, s.x + 10, s.height + p, d, 20, { class: "actor" }, r), p += 30;
|
|
3050
3047
|
}
|
|
3051
3048
|
}
|
|
3052
3049
|
return f.attr("height", p), {
|
|
3053
3050
|
height: s.height + p,
|
|
3054
3051
|
width: d
|
|
3055
3052
|
};
|
|
3056
|
-
}, "drawPopup"),
|
|
3053
|
+
}, "drawPopup"), popupMenuToggle = /* @__PURE__ */ __name(function(e) {
|
|
3057
3054
|
return "var pu = document.getElementById('" + e + "'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }";
|
|
3058
|
-
}, "popupMenuToggle"),
|
|
3059
|
-
let r = e.append("foreignObject"), i = await
|
|
3055
|
+
}, "popupMenuToggle"), drawKatex = /* @__PURE__ */ __name(async function(e, t, n = null) {
|
|
3056
|
+
let r = e.append("foreignObject"), i = await renderKatexSanitized(t.text, getConfig()), a = r.append("xhtml:div").attr("style", "width: fit-content;").attr("xmlns", "http://www.w3.org/1999/xhtml").html(i).node().getBoundingClientRect();
|
|
3060
3057
|
if (r.attr("height", Math.round(a.height)).attr("width", Math.round(a.width)), t.class === "noteText") {
|
|
3061
3058
|
let n = e.node().firstChild;
|
|
3062
3059
|
n.setAttribute("height", a.height + 2 * t.textMargin);
|
|
@@ -3071,20 +3068,20 @@ var F = P, I = {
|
|
|
3071
3068
|
r.attr("x", Math.round(e + Math.abs(e - i) / 2 - a.width / 2)), t.class === "loopText" ? r.attr("y", Math.round(o)) : r.attr("y", Math.round(o - a.height));
|
|
3072
3069
|
}
|
|
3073
3070
|
return [r];
|
|
3074
|
-
}, "drawKatex"),
|
|
3075
|
-
let r = 0, i = 0, o = n.text.split(
|
|
3071
|
+
}, "drawKatex"), drawText = /* @__PURE__ */ __name(function(t, n) {
|
|
3072
|
+
let r = 0, i = 0, o = n.text.split(common_default.lineBreakRegex), [s, c] = parseFontSize(n.fontSize), l = [], u = 0, d = /* @__PURE__ */ __name(() => n.y, "yfunc");
|
|
3076
3073
|
if (n.valign !== void 0 && n.textMargin !== void 0 && n.textMargin > 0) switch (n.valign) {
|
|
3077
3074
|
case "top":
|
|
3078
3075
|
case "start":
|
|
3079
|
-
d = /* @__PURE__ */
|
|
3076
|
+
d = /* @__PURE__ */ __name(() => Math.round(n.y + n.textMargin), "yfunc");
|
|
3080
3077
|
break;
|
|
3081
3078
|
case "middle":
|
|
3082
3079
|
case "center":
|
|
3083
|
-
d = /* @__PURE__ */
|
|
3080
|
+
d = /* @__PURE__ */ __name(() => Math.round(n.y + (r + i + n.textMargin) / 2), "yfunc");
|
|
3084
3081
|
break;
|
|
3085
3082
|
case "bottom":
|
|
3086
3083
|
case "end":
|
|
3087
|
-
d = /* @__PURE__ */
|
|
3084
|
+
d = /* @__PURE__ */ __name(() => Math.round(n.y + (r + i + 2 * n.textMargin) - n.textMargin), "yfunc");
|
|
3088
3085
|
break;
|
|
3089
3086
|
}
|
|
3090
3087
|
if (n.anchor !== void 0 && n.textMargin !== void 0 && n.width !== void 0) switch (n.anchor) {
|
|
@@ -3113,68 +3110,68 @@ var F = P, I = {
|
|
|
3113
3110
|
n.valign !== void 0 && n.textMargin !== void 0 && n.textMargin > 0 && (i += (o._groups || o)[0][0].getBBox().height, r = i), l.push(o);
|
|
3114
3111
|
}
|
|
3115
3112
|
return l;
|
|
3116
|
-
}, "drawText"),
|
|
3113
|
+
}, "drawText"), drawLabel = /* @__PURE__ */ __name(function(t, n) {
|
|
3117
3114
|
function r(e, t, n, r, i) {
|
|
3118
3115
|
return e + "," + t + " " + (e + n) + "," + t + " " + (e + n) + "," + (t + r - i) + " " + (e + n - i * 1.2) + "," + (t + r) + " " + e + "," + (t + r);
|
|
3119
3116
|
}
|
|
3120
|
-
|
|
3117
|
+
__name(r, "genPoints");
|
|
3121
3118
|
let i = t.append("polygon");
|
|
3122
|
-
return i.attr("points", r(n.x, n.y, n.width, n.height, 7)), i.attr("class", "labelBox"), n.y += n.height / 2,
|
|
3123
|
-
}, "drawLabel"),
|
|
3119
|
+
return i.attr("points", r(n.x, n.y, n.width, n.height, 7)), i.attr("class", "labelBox"), n.y += n.height / 2, drawText(t, n), i;
|
|
3120
|
+
}, "drawLabel"), actorCnt = -1, fixLifeLineHeights = /* @__PURE__ */ __name((e, t, n, r) => {
|
|
3124
3121
|
e.select && n.forEach((n) => {
|
|
3125
3122
|
let i = t.get(n), a = e.select("#actor" + i.actorCnt);
|
|
3126
3123
|
!r.mirrorActors && i.stopy ? a.attr("y2", i.stopy + i.height / 2) : r.mirrorActors && a.attr("y2", i.stopy);
|
|
3127
3124
|
});
|
|
3128
|
-
}, "fixLifeLineHeights"),
|
|
3125
|
+
}, "fixLifeLineHeights"), drawActorTypeParticipant = /* @__PURE__ */ __name(function(e, t, n, r, i) {
|
|
3129
3126
|
let a = r ? t.stopy : t.starty, o = t.x + t.width / 2, s = a + t.height, { look: c, theme: l, themeVariables: u } = n, { bkgColorArray: d, borderColorArray: f } = u, m = e.append("g").lower();
|
|
3130
3127
|
var h = m;
|
|
3131
|
-
r || (
|
|
3132
|
-
let g =
|
|
3128
|
+
r || (actorCnt++, Object.keys(t.links || {}).length && !n.forceMenus && h.attr("onclick", popupMenuToggle(`actor${actorCnt}_popup`)).attr("cursor", "pointer"), h.append("line").attr("id", "actor" + actorCnt).attr("x1", o).attr("y1", s).attr("x2", o).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), h = m.append("g"), t.actorCnt = actorCnt, t.links != null && h.attr("id", "root-" + actorCnt), c === "neo" && h.attr("data-look", "neo"));
|
|
3129
|
+
let g = getNoteRect();
|
|
3133
3130
|
var _ = "actor";
|
|
3134
|
-
t.properties?.class ? _ = t.properties.class : g.fill = "#eaeaea", r ? _ += ` ${
|
|
3135
|
-
let v =
|
|
3136
|
-
if (
|
|
3131
|
+
t.properties?.class ? _ = t.properties.class : g.fill = "#eaeaea", r ? _ += ` ${BOTTOM_ACTOR_CLASS}` : _ += ` ${TOP_ACTOR_CLASS}`, g.x = t.x, g.y = a, g.width = t.width, g.height = t.height, g.class = _, g.rx = 3, g.ry = 3, g.name = t.name, c === "neo" && (g.rx = 6, g.ry = 6);
|
|
3132
|
+
let v = drawRect2(h, g), y = i.get(t.name) ?? 0;
|
|
3133
|
+
if (COLOR_THEMES.has(l) && (v.style("stroke", f[y % f.length]), v.style("fill", d[y % f.length])), c === "neo" && v.attr("filter", "url(#drop-shadow)"), t.rectData = g, t.properties?.icon) {
|
|
3137
3134
|
let e = t.properties.icon.trim();
|
|
3138
|
-
e.charAt(0) === "@" ?
|
|
3135
|
+
e.charAt(0) === "@" ? drawEmbeddedImage(h, g.x + g.width - 20, g.y + 10, e.substr(1)) : drawImage(h, g.x + g.width - 20, g.y + 10, e);
|
|
3139
3136
|
}
|
|
3140
|
-
r || (h.attr("data-et", "participant"), h.attr("data-type", "participant"), h.attr("data-id", t.name)),
|
|
3137
|
+
r || (h.attr("data-et", "participant"), h.attr("data-type", "participant"), h.attr("data-id", t.name)), _drawTextCandidateFunc(n, hasKatex(t.description))(t.description, h, g.x, g.y, g.width, g.height, { class: `actor ${ACTOR_BOX_CLASS}` }, n);
|
|
3141
3138
|
let b = t.height;
|
|
3142
3139
|
if (v.node) {
|
|
3143
3140
|
let e = v.node().getBBox();
|
|
3144
3141
|
t.height = e.height, b = e.height;
|
|
3145
3142
|
}
|
|
3146
3143
|
return b;
|
|
3147
|
-
}, "drawActorTypeParticipant"),
|
|
3144
|
+
}, "drawActorTypeParticipant"), drawActorTypeCollections = /* @__PURE__ */ __name(function(e, t, n, r, i) {
|
|
3148
3145
|
let a = r ? t.stopy : t.starty, o = t.x + t.width / 2, s = a + t.height, { look: c, theme: l, themeVariables: u } = n, { bkgColorArray: d, borderColorArray: f } = u, m = e.append("g").lower();
|
|
3149
3146
|
var h = m;
|
|
3150
|
-
r || (
|
|
3151
|
-
let g =
|
|
3147
|
+
r || (actorCnt++, Object.keys(t.links || {}).length && !n.forceMenus && h.attr("onclick", popupMenuToggle(`actor${actorCnt}_popup`)).attr("cursor", "pointer"), h.append("line").attr("id", "actor" + actorCnt).attr("x1", o).attr("y1", s).attr("x2", o).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), h = m.append("g"), t.actorCnt = actorCnt, t.links != null && h.attr("id", "root-" + actorCnt), c === "neo" && h.attr("data-look", "neo"));
|
|
3148
|
+
let g = getNoteRect();
|
|
3152
3149
|
var _ = "actor";
|
|
3153
|
-
t.properties?.class ? _ = t.properties.class : g.fill = "#eaeaea", r ? _ += ` ${
|
|
3150
|
+
t.properties?.class ? _ = t.properties.class : g.fill = "#eaeaea", r ? _ += ` ${BOTTOM_ACTOR_CLASS}` : _ += ` ${TOP_ACTOR_CLASS}`, g.x = t.x, g.y = a, g.width = t.width, g.height = t.height, g.class = _, g.name = t.name;
|
|
3154
3151
|
let v = {
|
|
3155
3152
|
...g,
|
|
3156
3153
|
x: g.x + -6,
|
|
3157
3154
|
y: g.y + 6,
|
|
3158
3155
|
class: "actor"
|
|
3159
|
-
}, y =
|
|
3156
|
+
}, y = drawRect2(h, g), b = drawRect2(h, v);
|
|
3160
3157
|
t.rectData = g, c === "neo" && h.attr("filter", "url(#drop-shadow)");
|
|
3161
3158
|
let x = i.get(t.name) ?? 0;
|
|
3162
|
-
if (
|
|
3159
|
+
if (COLOR_THEMES.has(l) && (y.style("stroke", f[x % f.length]), y.style("fill", d[x % f.length]), b.style("stroke", f[x % f.length]), b.style("fill", d[x % f.length])), t.properties?.icon) {
|
|
3163
3160
|
let e = t.properties.icon.trim();
|
|
3164
|
-
e.charAt(0) === "@" ?
|
|
3161
|
+
e.charAt(0) === "@" ? drawEmbeddedImage(h, g.x + g.width - 20, g.y + 10, e.substr(1)) : drawImage(h, g.x + g.width - 20, g.y + 10, e);
|
|
3165
3162
|
}
|
|
3166
|
-
|
|
3163
|
+
_drawTextCandidateFunc(n, hasKatex(t.description))(t.description, h, g.x - 6, g.y + 6, g.width, g.height, { class: `actor ${ACTOR_BOX_CLASS}` }, n);
|
|
3167
3164
|
let S = t.height;
|
|
3168
3165
|
if (y.node) {
|
|
3169
3166
|
let e = y.node().getBBox();
|
|
3170
3167
|
t.height = e.height, S = e.height;
|
|
3171
3168
|
}
|
|
3172
3169
|
return r || (h.attr("data-et", "participant"), h.attr("data-type", "collections"), h.attr("data-id", t.name)), S;
|
|
3173
|
-
}, "drawActorTypeCollections"),
|
|
3170
|
+
}, "drawActorTypeCollections"), drawActorTypeQueue = /* @__PURE__ */ __name(function(e, t, n, r, i) {
|
|
3174
3171
|
let a = r ? t.stopy : t.starty, o = t.x + t.width / 2, s = a + t.height, { look: c, theme: l, themeVariables: u } = n, { bkgColorArray: d, borderColorArray: f } = u, m = e.append("g").lower(), h = m;
|
|
3175
|
-
r || (
|
|
3176
|
-
let g =
|
|
3177
|
-
t.properties?.class ? _ = t.properties.class : g.fill = "#eaeaea", r ? _ += ` ${
|
|
3172
|
+
r || (actorCnt++, Object.keys(t.links || {}).length && !n.forceMenus && h.attr("onclick", popupMenuToggle(`actor${actorCnt}_popup`)).attr("cursor", "pointer"), h.append("line").attr("id", "actor" + actorCnt).attr("x1", o).attr("y1", s).attr("x2", o).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), h = m.append("g"), t.actorCnt = actorCnt, t.links != null && h.attr("id", "root-" + actorCnt), c === "neo" && h.attr("data-look", "neo"));
|
|
3173
|
+
let g = getNoteRect(), _ = "actor";
|
|
3174
|
+
t.properties?.class ? _ = t.properties.class : g.fill = "#eaeaea", r ? _ += ` ${BOTTOM_ACTOR_CLASS}` : _ += ` ${TOP_ACTOR_CLASS}`, h.attr("class", _), g.x = t.x, g.y = a, g.width = t.width, g.height = t.height, g.name = t.name;
|
|
3178
3175
|
let v = g.height / 2, y = v / (2.5 + g.height / 50), b = h.append("g"), x = h.append("g"), S = `M ${g.x},${g.y + v}
|
|
3179
3176
|
a ${y},${v} 0 0 0 0,${g.height}
|
|
3180
3177
|
h ${g.width - 2 * y}
|
|
@@ -3184,42 +3181,42 @@ var F = P, I = {
|
|
|
3184
3181
|
b.append("path").attr("d", S), x.append("path").attr("d", `M ${g.x},${g.y + v}
|
|
3185
3182
|
a ${y},${v} 0 0 0 0,${g.height}`), b.attr("transform", `translate(${y}, ${-(g.height / 2)})`), x.attr("transform", `translate(${g.width - y}, ${-g.height / 2})`), t.rectData = g, c === "neo" && b.attr("filter", "url(#drop-shadow)");
|
|
3186
3183
|
let C = i.get(t.name) ?? 0;
|
|
3187
|
-
if (
|
|
3184
|
+
if (COLOR_THEMES.has(l) && (b.style("stroke", f[C % f.length]), b.style("fill", d[C % f.length]), x.style("stroke", f[C % f.length]), x.style("fill", d[C % f.length])), t.properties?.icon) {
|
|
3188
3185
|
let e = t.properties.icon.trim(), n = g.x + g.width - 20, r = g.y + 10;
|
|
3189
|
-
e.charAt(0) === "@" ?
|
|
3186
|
+
e.charAt(0) === "@" ? drawEmbeddedImage(h, n, r, e.substr(1)) : drawImage(h, n, r, e);
|
|
3190
3187
|
}
|
|
3191
|
-
|
|
3188
|
+
_drawTextCandidateFunc(n, hasKatex(t.description))(t.description, h, g.x, g.y, g.width, g.height, { class: `actor ${ACTOR_BOX_CLASS}` }, n);
|
|
3192
3189
|
let w = t.height, T = b.select("path:last-child");
|
|
3193
3190
|
if (T.node()) {
|
|
3194
3191
|
let e = T.node().getBBox();
|
|
3195
3192
|
t.height = e.height, w = e.height;
|
|
3196
3193
|
}
|
|
3197
3194
|
return r || (h.attr("data-et", "participant"), h.attr("data-type", "queue"), h.attr("data-id", t.name)), w;
|
|
3198
|
-
}, "drawActorTypeQueue"),
|
|
3195
|
+
}, "drawActorTypeQueue"), drawActorTypeControl = /* @__PURE__ */ __name(function(e, t, n, r, i, a) {
|
|
3199
3196
|
let o = r ? t.stopy : t.starty, s = t.x + t.width / 2, c = o + 75, { look: l, theme: u, themeVariables: d } = n, { bkgColorArray: f, borderColorArray: m, actorBorder: h, actorBkg: g } = d, _ = e.append("g").lower();
|
|
3200
|
-
r || (
|
|
3201
|
-
let v = e.append("g"), y =
|
|
3202
|
-
r ? y += ` ${
|
|
3203
|
-
let b =
|
|
3197
|
+
r || (actorCnt++, _.append("line").attr("id", "actor" + actorCnt).attr("x1", s).attr("y1", c).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), t.actorCnt = actorCnt);
|
|
3198
|
+
let v = e.append("g"), y = ACTOR_MAN_FIGURE_CLASS;
|
|
3199
|
+
r ? y += ` ${BOTTOM_ACTOR_CLASS}` : y += ` ${TOP_ACTOR_CLASS}`, v.attr("class", y), v.attr("name", t.name);
|
|
3200
|
+
let b = getNoteRect();
|
|
3204
3201
|
b.x = t.x, b.y = o, b.fill = "#eaeaea", b.width = t.width, b.height = t.height, b.class = "actor";
|
|
3205
3202
|
let x = t.x + t.width / 2, S = o + 32;
|
|
3206
3203
|
v.append("defs").append("marker").attr("id", i + "-filled-head-control").attr("refX", 11).attr("refY", 5.8).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "172.5").attr("stroke-width", 1.2).append("path").attr("d", "M 14.4 5.6 L 7.2 10.4 L 8.8 5.6 L 7.2 0.8 Z"), v.append("circle").attr("cx", x).attr("cy", S).attr("r", 22).attr("filter", `${l === "neo" ? "url(#drop-shadow)" : ""}`), v.append("line").attr("marker-end", "url(#" + i + "-filled-head-control)").attr("transform", `translate(${x}, ${S - 22})`);
|
|
3207
3204
|
let C = a.get(t.name) ?? 0;
|
|
3208
|
-
return
|
|
3209
|
-
}, "drawActorTypeControl"),
|
|
3205
|
+
return COLOR_THEMES.has(u) ? (v.style("stroke", m[C % m.length]), v.style("fill", f[C % m.length])) : (v.style("stroke", h), v.style("fill", g)), t.height = v.node().getBBox().height + 2 * (n?.sequence?.labelBoxHeight ?? 0), _drawTextCandidateFunc(n, hasKatex(t.description))(t.description, v, b.x, b.y + 22 + (r ? 5 : 12), b.width, b.height, { class: `actor ${ACTOR_MAN_FIGURE_CLASS}` }, n), r || (v.attr("data-et", "participant"), v.attr("data-type", "control"), v.attr("data-id", t.name)), t.height;
|
|
3206
|
+
}, "drawActorTypeControl"), drawActorTypeEntity = /* @__PURE__ */ __name(function(e, t, n, r, i) {
|
|
3210
3207
|
let a = r ? t.stopy : t.starty, o = t.x + t.width / 2, s = a + 75, { look: c, theme: l, themeVariables: u } = n, { bkgColorArray: d, borderColorArray: f } = u, m = e.append("g").lower(), h = e.append("g"), g = "actor";
|
|
3211
|
-
r ? g += ` ${
|
|
3212
|
-
let _ =
|
|
3208
|
+
r ? g += ` ${BOTTOM_ACTOR_CLASS}` : g += ` ${TOP_ACTOR_CLASS}`, h.attr("class", g), h.attr("name", t.name);
|
|
3209
|
+
let _ = getNoteRect();
|
|
3213
3210
|
_.x = t.x, _.y = a, _.fill = "#eaeaea", _.width = t.width, _.height = t.height, _.class = "actor";
|
|
3214
3211
|
let v = t.x + t.width / 2, y = a + (r ? 10 : 25);
|
|
3215
3212
|
h.append("circle").attr("cx", v).attr("cy", y).attr("r", 22).attr("width", t.width).attr("height", t.height), h.append("line").attr("x1", v - 22).attr("x2", v + 22).attr("y1", y + 22).attr("y2", y + 22).attr("stroke-width", 2), c === "neo" && h.attr("filter", "url(#drop-shadow)");
|
|
3216
3213
|
let b = i.get(t.name) ?? 0;
|
|
3217
|
-
return
|
|
3218
|
-
}, "drawActorTypeEntity"),
|
|
3214
|
+
return COLOR_THEMES.has(l) && (h.style("stroke", f[b % f.length]), h.style("fill", d[b % f.length])), t.height = h.node().getBBox().height + (n?.sequence?.labelBoxHeight ?? 0), r || (actorCnt++, m.append("line").attr("id", "actor" + actorCnt).attr("x1", o).attr("y1", s).attr("x2", o).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), t.actorCnt = actorCnt), _drawTextCandidateFunc(n, hasKatex(t.description))(t.description, h, _.x, _.y + (r ? 15 : 30), _.width, _.height, { class: `actor ${ACTOR_MAN_FIGURE_CLASS}` }, n), r ? h.attr("transform", "translate(0, 22)") : (h.attr("transform", `translate(0, ${22 / 2 - 5})`), h.attr("data-et", "participant"), h.attr("data-type", "entity"), h.attr("data-id", t.name)), t.height;
|
|
3215
|
+
}, "drawActorTypeEntity"), drawActorTypeDatabase = /* @__PURE__ */ __name(function(e, t, n, r, i) {
|
|
3219
3216
|
let a = r ? t.stopy : t.starty, o = t.x + t.width / 2, s = a + t.height + 2 * n.boxTextMargin, { theme: c, themeVariables: l, look: u } = n, { bkgColorArray: d, borderColorArray: f, actorBorder: m } = l, h = e.append("g").lower(), g = h;
|
|
3220
|
-
r || (
|
|
3221
|
-
let _ =
|
|
3222
|
-
t.properties?.class ? v = t.properties.class : _.fill = "#eaeaea", r ? v += ` ${
|
|
3217
|
+
r || (actorCnt++, Object.keys(t.links || {}).length && !n.forceMenus && g.attr("onclick", popupMenuToggle(`actor${actorCnt}_popup`)).attr("cursor", "pointer"), g.append("line").attr("id", "actor" + actorCnt).attr("x1", o).attr("y1", s).attr("x2", o).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), g = h.append("g"), t.actorCnt = actorCnt, t.links != null && g.attr("id", "root-" + actorCnt), u === "neo" && g.attr("data-look", "neo"));
|
|
3218
|
+
let _ = getNoteRect(), v = "actor";
|
|
3219
|
+
t.properties?.class ? v = t.properties.class : _.fill = "#eaeaea", r ? v += ` ${BOTTOM_ACTOR_CLASS}` : v += ` ${TOP_ACTOR_CLASS}`, _.x = t.x, _.y = a, _.width = t.width, _.height = t.height, _.class = v, _.name = t.name, _.x = t.x, _.y = a;
|
|
3223
3220
|
let y = _.width / 3, b = _.width / 3, x = y / 2, S = x / (2.5 + y / 50), C = g.append("g");
|
|
3224
3221
|
C.attr("class", v);
|
|
3225
3222
|
let w = `
|
|
@@ -3232,91 +3229,91 @@ var F = P, I = {
|
|
|
3232
3229
|
`;
|
|
3233
3230
|
C.append("path").attr("d", w), u === "neo" && C.attr("filter", "url(#drop-shadow)");
|
|
3234
3231
|
let T = i.get(t.name) ?? 0;
|
|
3235
|
-
|
|
3232
|
+
COLOR_THEMES.has(c) ? (C.style("stroke", f[T % f.length]), C.style("fill", d[T % f.length])) : C.style("stroke", m), C.attr("transform", `translate(${y}, ${S})`), t.rectData = _, _drawTextCandidateFunc(n, hasKatex(t.description))(t.description, g, _.x, _.y + 35, _.width, _.height, { class: `actor ${ACTOR_BOX_CLASS}` }, n);
|
|
3236
3233
|
let E = C.select("path:last-child");
|
|
3237
3234
|
return E.node() && (t.height = E.node().getBBox().height + (n.sequence.labelBoxHeight ?? 0)), r || (g.attr("data-et", "participant"), g.attr("data-type", "database"), g.attr("data-id", t.name)), t.height;
|
|
3238
|
-
}, "drawActorTypeDatabase"),
|
|
3235
|
+
}, "drawActorTypeDatabase"), drawActorTypeBoundary = /* @__PURE__ */ __name(function(e, t, n, r, i) {
|
|
3239
3236
|
let a = r ? t.stopy : t.starty, o = t.x + t.width / 2, s = a + 80, c = e.append("g").lower(), { look: l, theme: u, themeVariables: d } = n, { bkgColorArray: f, borderColorArray: m, actorBorder: h } = d;
|
|
3240
|
-
r || (
|
|
3241
|
-
let g = e.append("g"), _ =
|
|
3242
|
-
r ? _ += ` ${
|
|
3243
|
-
let v =
|
|
3244
|
-
v.x = t.x, v.y = a, v.fill = "#eaeaea", v.width = t.width, v.height = t.height, v.class = "actor", g.append("line").attr("id", "actor-man-torso" +
|
|
3237
|
+
r || (actorCnt++, c.append("line").attr("id", "actor" + actorCnt).attr("x1", o).attr("y1", s).attr("x2", o).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), t.actorCnt = actorCnt);
|
|
3238
|
+
let g = e.append("g"), _ = ACTOR_MAN_FIGURE_CLASS;
|
|
3239
|
+
r ? _ += ` ${BOTTOM_ACTOR_CLASS}` : _ += ` ${TOP_ACTOR_CLASS}`, g.attr("class", _), g.attr("name", t.name);
|
|
3240
|
+
let v = getNoteRect();
|
|
3241
|
+
v.x = t.x, v.y = a, v.fill = "#eaeaea", v.width = t.width, v.height = t.height, v.class = "actor", g.append("line").attr("id", "actor-man-torso" + actorCnt).attr("x1", t.x + t.width / 2 - 22 * 2.5).attr("y1", a + 12).attr("x2", t.x + t.width / 2 - 15).attr("y2", a + 12), g.append("line").attr("id", "actor-man-arms" + actorCnt).attr("x1", t.x + t.width / 2 - 22 * 2.5).attr("y1", a + 2).attr("x2", t.x + t.width / 2 - 22 * 2.5).attr("y2", a + 22), g.append("circle").attr("cx", t.x + t.width / 2).attr("cy", a + 12).attr("r", 22), l === "neo" && g.attr("filter", "url(#drop-shadow)");
|
|
3245
3242
|
let y = i.get(t.name) ?? 0;
|
|
3246
|
-
return
|
|
3247
|
-
}, "drawActorTypeBoundary"),
|
|
3243
|
+
return COLOR_THEMES.has(u) ? (g.style("stroke", m[y % m.length]), g.style("fill", f[y % m.length])) : g.style("stroke", h), t.height = g.node().getBBox().height + (n.sequence.labelBoxHeight ?? 0), _drawTextCandidateFunc(n, hasKatex(t.description))(t.description, g, v.x, v.y + 15, v.width, v.height, { class: `actor ${ACTOR_MAN_FIGURE_CLASS}` }, n), g.attr("transform", "translate(0,21)"), r || (g.attr("data-et", "participant"), g.attr("data-type", "boundary"), g.attr("data-id", t.name)), t.height;
|
|
3244
|
+
}, "drawActorTypeBoundary"), drawActorTypeActor = /* @__PURE__ */ __name(function(e, t, n, r, i) {
|
|
3248
3245
|
let a = r ? t.stopy : t.starty, o = t.x + t.width / 2, s = a + 80, { look: c, theme: l, themeVariables: u } = n, { bkgColorArray: d, borderColorArray: f, actorBorder: m } = u, h = e.append("g").lower();
|
|
3249
|
-
r || (
|
|
3250
|
-
let g = e.append("g"), _ =
|
|
3251
|
-
r ? _ += ` ${
|
|
3246
|
+
r || (actorCnt++, h.append("line").attr("id", "actor" + actorCnt).attr("x1", o).attr("y1", s).attr("x2", o).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), t.actorCnt = actorCnt);
|
|
3247
|
+
let g = e.append("g"), _ = ACTOR_MAN_FIGURE_CLASS;
|
|
3248
|
+
r ? _ += ` ${BOTTOM_ACTOR_CLASS}` : _ += ` ${TOP_ACTOR_CLASS}`, g.attr("class", _), g.attr("name", t.name), r || g.attr("data-et", "participant").attr("data-type", "actor").attr("data-id", t.name);
|
|
3252
3249
|
let v = c === "neo" ? .5 : 1, y = c === "neo" ? a + (1 - v) * 30 : a;
|
|
3253
|
-
g.append("line").attr("id", "actor-man-torso" +
|
|
3250
|
+
g.append("line").attr("id", "actor-man-torso" + actorCnt).attr("x1", o).attr("y1", y + 25 * v).attr("x2", o).attr("y2", y + 45 * v), g.append("line").attr("id", "actor-man-arms" + actorCnt).attr("x1", o - ACTOR_TYPE_WIDTH / 2 * v).attr("y1", y + 33 * v).attr("x2", o + ACTOR_TYPE_WIDTH / 2 * v).attr("y2", y + 33 * v), g.append("line").attr("x1", o - ACTOR_TYPE_WIDTH / 2 * v).attr("y1", y + 60 * v).attr("x2", o).attr("y2", y + 45 * v), g.append("line").attr("x1", o).attr("y1", y + 45 * v).attr("x2", o + (ACTOR_TYPE_WIDTH / 2 - 2) * v).attr("y2", y + 60 * v);
|
|
3254
3251
|
let b = g.append("circle");
|
|
3255
3252
|
b.attr("cx", t.x + t.width / 2), b.attr("cy", y + 10 * v), b.attr("r", 15 * v), b.attr("width", t.width * v), b.attr("height", t.height * v), t.height = g.node().getBBox().height;
|
|
3256
|
-
let x =
|
|
3253
|
+
let x = getNoteRect();
|
|
3257
3254
|
x.x = t.x, x.y = y, x.fill = "#eaeaea", x.width = t.width, x.height = t.height / v, x.class = "actor", x.rx = 3, x.ry = 3;
|
|
3258
3255
|
let S = i.get(t.name) ?? 0;
|
|
3259
|
-
return
|
|
3260
|
-
}, "drawActorTypeActor"),
|
|
3256
|
+
return COLOR_THEMES.has(l) ? (g.style("stroke", f[S % f.length]), g.style("fill", d[S % f.length])) : g.style("stroke", m), _drawTextCandidateFunc(n, hasKatex(t.description))(t.description, g, x.x, y + 35 * v - (c === "neo" ? 10 : 0), x.width, x.height, { class: `actor ${ACTOR_MAN_FIGURE_CLASS}` }, n), t.height;
|
|
3257
|
+
}, "drawActorTypeActor"), drawActor = /* @__PURE__ */ __name(async function(e, t, n, r, i, a, o) {
|
|
3261
3258
|
let s = o ?? new Map([...a.db.getActors().values()].map((e, t) => [e.name, t]));
|
|
3262
3259
|
switch (t.type) {
|
|
3263
|
-
case "actor": return await
|
|
3264
|
-
case "participant": return await
|
|
3265
|
-
case "boundary": return await
|
|
3266
|
-
case "control": return await
|
|
3267
|
-
case "entity": return await
|
|
3268
|
-
case "database": return await
|
|
3269
|
-
case "collections": return await
|
|
3270
|
-
case "queue": return await
|
|
3260
|
+
case "actor": return await drawActorTypeActor(e, t, n, r, s);
|
|
3261
|
+
case "participant": return await drawActorTypeParticipant(e, t, n, r, s);
|
|
3262
|
+
case "boundary": return await drawActorTypeBoundary(e, t, n, r, s);
|
|
3263
|
+
case "control": return await drawActorTypeControl(e, t, n, r, i, s);
|
|
3264
|
+
case "entity": return await drawActorTypeEntity(e, t, n, r, s);
|
|
3265
|
+
case "database": return await drawActorTypeDatabase(e, t, n, r, s);
|
|
3266
|
+
case "collections": return await drawActorTypeCollections(e, t, n, r, s);
|
|
3267
|
+
case "queue": return await drawActorTypeQueue(e, t, n, r, s);
|
|
3271
3268
|
}
|
|
3272
|
-
}, "drawActor"),
|
|
3269
|
+
}, "drawActor"), drawBox = /* @__PURE__ */ __name(function(e, t, n) {
|
|
3273
3270
|
let r = e.append("g");
|
|
3274
|
-
|
|
3275
|
-
}, "drawBox"),
|
|
3271
|
+
drawBackgroundRect2(r, t), t.name && _drawTextCandidateFunc(n)(t.name, r, t.x, t.y + n.boxTextMargin + (t.textMaxHeight || 0) / 2, t.width, 0, { class: "text" }, n), r.lower();
|
|
3272
|
+
}, "drawBox"), anchorElement = /* @__PURE__ */ __name(function(e) {
|
|
3276
3273
|
return e.append("g");
|
|
3277
|
-
}, "anchorElement"),
|
|
3278
|
-
let { theme: s, themeVariables: c } = r, { bkgColorArray: l, borderColorArray: u, mainBkg: d } = c, f =
|
|
3274
|
+
}, "anchorElement"), drawActivation = /* @__PURE__ */ __name(function(e, t, n, r, i, a, o) {
|
|
3275
|
+
let { theme: s, themeVariables: c } = r, { bkgColorArray: l, borderColorArray: u, mainBkg: d } = c, f = getNoteRect(), p = t.anchored, m = t.actor;
|
|
3279
3276
|
f.x = t.startx, f.y = t.starty, f.class = "activation" + i % 3, f.width = t.stopx - t.startx, f.height = n - t.starty;
|
|
3280
|
-
let h =
|
|
3281
|
-
|
|
3282
|
-
}, "drawActivation"),
|
|
3283
|
-
let { boxMargin: o, boxTextMargin: s, labelBoxHeight: c, labelBoxWidth: l, messageFontFamily: u, messageFontSize: d, messageFontWeight: f } = i, m = t.append("g").attr("data-et", "control-structure").attr("data-id", "i" + a.id), h = /* @__PURE__ */
|
|
3277
|
+
let h = drawRect2(p, f), g = (o ?? new Map([...a.db.getActors().values()].map((e, t) => [e.name, t]))).get(m) ?? 0;
|
|
3278
|
+
COLOR_THEMES.has(s) && (h.style("stroke", u[g % u.length]), h.style("fill", l[g % u.length] ?? d));
|
|
3279
|
+
}, "drawActivation"), drawLoop = /* @__PURE__ */ __name(async function(t, n, r, i, a) {
|
|
3280
|
+
let { boxMargin: o, boxTextMargin: s, labelBoxHeight: c, labelBoxWidth: l, messageFontFamily: u, messageFontSize: d, messageFontWeight: f } = i, m = t.append("g").attr("data-et", "control-structure").attr("data-id", "i" + a.id), h = /* @__PURE__ */ __name(function(e, t, n, r) {
|
|
3284
3281
|
return m.append("line").attr("x1", e).attr("y1", t).attr("x2", n).attr("y2", r).attr("class", "loopLine");
|
|
3285
3282
|
}, "drawLoopLine");
|
|
3286
3283
|
h(n.startx, n.starty, n.stopx, n.starty), h(n.stopx, n.starty, n.stopx, n.stopy), h(n.startx, n.stopy, n.stopx, n.stopy), h(n.startx, n.starty, n.startx, n.stopy), n.sections !== void 0 && n.sections.forEach(function(e) {
|
|
3287
3284
|
h(n.startx, e.y, n.stopx, e.y).style("stroke-dasharray", "3, 3");
|
|
3288
3285
|
});
|
|
3289
|
-
let g =
|
|
3290
|
-
g.text = r, g.x = n.startx, g.y = n.starty, g.fontFamily = u, g.fontSize = d, g.fontWeight = f, g.anchor = "middle", g.valign = "middle", g.tspan = !1, g.width = Math.max(l ?? 0, 50), g.height = c + (i.look === "neo" ? 15 : 0) || 20, g.textMargin = s, g.class = "labelText",
|
|
3291
|
-
let _ =
|
|
3286
|
+
let g = getTextObj();
|
|
3287
|
+
g.text = r, g.x = n.startx, g.y = n.starty, g.fontFamily = u, g.fontSize = d, g.fontWeight = f, g.anchor = "middle", g.valign = "middle", g.tspan = !1, g.width = Math.max(l ?? 0, 50), g.height = c + (i.look === "neo" ? 15 : 0) || 20, g.textMargin = s, g.class = "labelText", drawLabel(m, g), g = getTextObj2(), g.text = n.title, g.x = n.startx + l / 2 + (n.stopx - n.startx) / 2, g.y = n.starty + o + s, g.anchor = "middle", g.valign = "middle", g.textMargin = s, g.class = "loopText", g.fontFamily = u, g.fontSize = d, g.fontWeight = f, g.wrap = !0;
|
|
3288
|
+
let _ = hasKatex(g.text) ? await drawKatex(m, g, n) : drawText(m, g);
|
|
3292
3289
|
if (n.sectionTitles !== void 0) {
|
|
3293
3290
|
for (let [e, t] of Object.entries(n.sectionTitles)) if (t.message) {
|
|
3294
|
-
g.text = t.message, g.x = n.startx + (n.stopx - n.startx) / 2, g.y = n.sections[e].y + o + s, g.class = "loopText", g.anchor = "middle", g.valign = "middle", g.tspan = !1, g.fontFamily = u, g.fontSize = d, g.fontWeight = f, g.wrap = n.wrap,
|
|
3291
|
+
g.text = t.message, g.x = n.startx + (n.stopx - n.startx) / 2, g.y = n.sections[e].y + o + s, g.class = "loopText", g.anchor = "middle", g.valign = "middle", g.tspan = !1, g.fontFamily = u, g.fontSize = d, g.fontWeight = f, g.wrap = n.wrap, hasKatex(g.text) ? (n.starty = n.sections[e].y, await drawKatex(m, g, n)) : drawText(m, g);
|
|
3295
3292
|
let r = Math.round(_.map((e) => (e._groups || e)[0][0].getBBox().height).reduce((e, t) => e + t));
|
|
3296
3293
|
n.sections[e].height += r - (o + s);
|
|
3297
3294
|
}
|
|
3298
3295
|
}
|
|
3299
3296
|
return n.height = Math.round(n.stopy - n.starty), m;
|
|
3300
|
-
}, "drawLoop"),
|
|
3301
|
-
|
|
3302
|
-
}, "drawBackgroundRect"),
|
|
3297
|
+
}, "drawLoop"), drawBackgroundRect2 = /* @__PURE__ */ __name(function(e, t) {
|
|
3298
|
+
drawBackgroundRect(e, t);
|
|
3299
|
+
}, "drawBackgroundRect"), insertDatabaseIcon = /* @__PURE__ */ __name(function(e, t) {
|
|
3303
3300
|
e.append("defs").append("symbol").attr("id", t + "-database").attr("fill-rule", "evenodd").attr("clip-rule", "evenodd").append("path").attr("transform", "scale(.5)").attr("d", "M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z");
|
|
3304
|
-
}, "insertDatabaseIcon"),
|
|
3301
|
+
}, "insertDatabaseIcon"), insertComputerIcon = /* @__PURE__ */ __name(function(e, t) {
|
|
3305
3302
|
e.append("defs").append("symbol").attr("id", t + "-computer").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr("d", "M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z");
|
|
3306
|
-
}, "insertComputerIcon"),
|
|
3303
|
+
}, "insertComputerIcon"), insertClockIcon = /* @__PURE__ */ __name(function(e, t) {
|
|
3307
3304
|
e.append("defs").append("symbol").attr("id", t + "-clock").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr("d", "M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z");
|
|
3308
|
-
}, "insertClockIcon"),
|
|
3305
|
+
}, "insertClockIcon"), insertArrowHead = /* @__PURE__ */ __name(function(e, t) {
|
|
3309
3306
|
e.append("defs").append("marker").attr("id", t + "-arrowhead").attr("refX", 7.9).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto-start-reverse").append("path").attr("d", "M -1 0 L 10 5 L 0 10 z");
|
|
3310
|
-
}, "insertArrowHead"),
|
|
3307
|
+
}, "insertArrowHead"), insertArrowFilledHead = /* @__PURE__ */ __name(function(e, t) {
|
|
3311
3308
|
e.append("defs").append("marker").attr("id", t + "-filled-head").attr("refX", 15.5).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z");
|
|
3312
|
-
}, "insertArrowFilledHead"),
|
|
3309
|
+
}, "insertArrowFilledHead"), insertSequenceNumber = /* @__PURE__ */ __name(function(e, t) {
|
|
3313
3310
|
e.append("defs").append("marker").attr("id", t + "-sequencenumber").attr("refX", 15).attr("refY", 15).attr("markerWidth", 60).attr("markerHeight", 40).attr("orient", "auto").append("circle").attr("cx", 15).attr("cy", 15).attr("r", 6);
|
|
3314
|
-
}, "insertSequenceNumber"),
|
|
3311
|
+
}, "insertSequenceNumber"), insertArrowCrossHead = /* @__PURE__ */ __name(function(e, t) {
|
|
3315
3312
|
e.append("defs").append("marker").attr("id", t + "-crosshead").attr("markerWidth", 15).attr("markerHeight", 8).attr("orient", "auto").attr("refX", 4).attr("refY", 4.5).append("path").attr("fill", "none").attr("stroke", "#000000").style("stroke-dasharray", "0, 0").attr("stroke-width", "1pt").attr("d", "M 1,2 L 6,7 M 6,2 L 1,7");
|
|
3316
|
-
}, "insertArrowCrossHead"),
|
|
3313
|
+
}, "insertArrowCrossHead"), insertDropShadow = /* @__PURE__ */ __name(function(e, t) {
|
|
3317
3314
|
let { theme: n } = t;
|
|
3318
3315
|
e.append("defs").append("filter").attr("id", "drop-shadow").attr("height", "130%").attr("width", "130%").append("feDropShadow").attr("dx", "4").attr("dy", "4").attr("stdDeviation", 0).attr("flood-opacity", "0.06").attr("flood-color", `${n === "redux" || n === "redux-color" ? "#000000" : "#FFFFFF"}`);
|
|
3319
|
-
}, "insertDropShadow"),
|
|
3316
|
+
}, "insertDropShadow"), getTextObj2 = /* @__PURE__ */ __name(function() {
|
|
3320
3317
|
return {
|
|
3321
3318
|
x: 0,
|
|
3322
3319
|
y: 0,
|
|
@@ -3331,7 +3328,7 @@ var F = P, I = {
|
|
|
3331
3328
|
tspan: !0,
|
|
3332
3329
|
valign: void 0
|
|
3333
3330
|
};
|
|
3334
|
-
}, "getTextObj"),
|
|
3331
|
+
}, "getTextObj"), getNoteRect2 = /* @__PURE__ */ __name(function() {
|
|
3335
3332
|
return {
|
|
3336
3333
|
x: 0,
|
|
3337
3334
|
y: 0,
|
|
@@ -3343,95 +3340,95 @@ var F = P, I = {
|
|
|
3343
3340
|
rx: 0,
|
|
3344
3341
|
ry: 0
|
|
3345
3342
|
};
|
|
3346
|
-
}, "getNoteRect"),
|
|
3343
|
+
}, "getNoteRect"), _drawTextCandidateFunc = /* @__PURE__ */ (function() {
|
|
3347
3344
|
function t(e, t, n, r, i, a, o) {
|
|
3348
3345
|
s(t.append("text").attr("x", n + i / 2).attr("y", r + a / 2 + 5).style("text-anchor", "middle").text(e), o);
|
|
3349
3346
|
}
|
|
3350
|
-
|
|
3347
|
+
__name(t, "byText");
|
|
3351
3348
|
function n(e, t, n, r, i, o, c, l) {
|
|
3352
|
-
let { actorFontSize: u, actorFontFamily: d, actorFontWeight: f } = l, [p, m] =
|
|
3349
|
+
let { actorFontSize: u, actorFontFamily: d, actorFontWeight: f } = l, [p, m] = parseFontSize(u), h = e.split(common_default.lineBreakRegex);
|
|
3353
3350
|
for (let e = 0; e < h.length; e++) {
|
|
3354
3351
|
let a = e * p - p * (h.length - 1) / 2, l = t.append("text").attr("x", n + i / 2).attr("y", r).style("text-anchor", "middle").style("font-size", m).style("font-weight", f).style("font-family", d);
|
|
3355
3352
|
l.append("tspan").attr("x", n + i / 2).attr("dy", a).text(h[e]), l.attr("y", r + o / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), s(l, c);
|
|
3356
3353
|
}
|
|
3357
3354
|
}
|
|
3358
|
-
|
|
3355
|
+
__name(n, "byTspan");
|
|
3359
3356
|
function i(e, t, r, i, a, o, c, l) {
|
|
3360
3357
|
let u = t.append("switch"), d = u.append("foreignObject").attr("x", r).attr("y", i).attr("width", a).attr("height", o).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
|
|
3361
3358
|
d.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(e), n(e, u, r, i, a, o, c, l), s(d, c);
|
|
3362
3359
|
}
|
|
3363
|
-
|
|
3360
|
+
__name(i, "byFo");
|
|
3364
3361
|
async function o(e, t, i, a, o, c, u, d) {
|
|
3365
|
-
let f = await
|
|
3366
|
-
h.append("div").style("text-align", "center").style("vertical-align", "middle").html(await
|
|
3362
|
+
let f = await calculateMathMLDimensions(e, getConfig()), p = t.append("switch"), h = p.append("foreignObject").attr("x", i + o / 2 - f.width / 2).attr("y", a + c / 2 - f.height / 2).attr("width", f.width).attr("height", f.height).append("xhtml:div").style("height", "100%").style("width", "100%");
|
|
3363
|
+
h.append("div").style("text-align", "center").style("vertical-align", "middle").html(await renderKatexSanitized(e, getConfig())), n(e, p, i, a, o, c, u, d), s(h, u);
|
|
3367
3364
|
}
|
|
3368
|
-
|
|
3365
|
+
__name(o, "byKatex");
|
|
3369
3366
|
function s(e, t) {
|
|
3370
3367
|
for (let n in t) t.hasOwnProperty(n) && e.attr(n, t[n]);
|
|
3371
3368
|
}
|
|
3372
|
-
return
|
|
3369
|
+
return __name(s, "_setTextAttrs"), function(e, r = !1) {
|
|
3373
3370
|
return r ? o : e.textPlacement === "fo" ? i : e.textPlacement === "old" ? t : n;
|
|
3374
3371
|
};
|
|
3375
|
-
})(),
|
|
3372
|
+
})(), _drawMenuItemTextCandidateFunc = /* @__PURE__ */ (function() {
|
|
3376
3373
|
function t(e, t, n, r, a, o, s) {
|
|
3377
3374
|
i(t.append("text").attr("x", n).attr("y", r).style("text-anchor", "start").text(e), s);
|
|
3378
3375
|
}
|
|
3379
|
-
|
|
3376
|
+
__name(t, "byText");
|
|
3380
3377
|
function n(e, t, n, r, o, s, c, l) {
|
|
3381
|
-
let { actorFontSize: u, actorFontFamily: d, actorFontWeight: f } = l, p = e.split(
|
|
3378
|
+
let { actorFontSize: u, actorFontFamily: d, actorFontWeight: f } = l, p = e.split(common_default.lineBreakRegex);
|
|
3382
3379
|
for (let e = 0; e < p.length; e++) {
|
|
3383
3380
|
let a = e * u - u * (p.length - 1) / 2, o = t.append("text").attr("x", n).attr("y", r).style("text-anchor", "start").style("font-size", u).style("font-weight", f).style("font-family", d);
|
|
3384
3381
|
o.append("tspan").attr("x", n).attr("dy", a).text(p[e]), o.attr("y", r + s / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), i(o, c);
|
|
3385
3382
|
}
|
|
3386
3383
|
}
|
|
3387
|
-
|
|
3384
|
+
__name(n, "byTspan");
|
|
3388
3385
|
function r(e, t, r, a, o, s, c, l) {
|
|
3389
3386
|
let u = t.append("switch"), d = u.append("foreignObject").attr("x", r).attr("y", a).attr("width", o).attr("height", s).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
|
|
3390
3387
|
d.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(e), n(e, u, r, a, o, s, c, l), i(d, c);
|
|
3391
3388
|
}
|
|
3392
|
-
|
|
3389
|
+
__name(r, "byFo");
|
|
3393
3390
|
function i(e, t) {
|
|
3394
3391
|
for (let n in t) t.hasOwnProperty(n) && e.attr(n, t[n]);
|
|
3395
3392
|
}
|
|
3396
|
-
return
|
|
3393
|
+
return __name(i, "_setTextAttrs"), function(e) {
|
|
3397
3394
|
return e.textPlacement === "fo" ? r : e.textPlacement === "old" ? t : n;
|
|
3398
3395
|
};
|
|
3399
|
-
})(),
|
|
3400
|
-
drawRect:
|
|
3401
|
-
drawText
|
|
3402
|
-
drawLabel
|
|
3403
|
-
drawActor
|
|
3404
|
-
drawBox
|
|
3405
|
-
drawPopup
|
|
3406
|
-
anchorElement
|
|
3407
|
-
drawActivation
|
|
3408
|
-
drawLoop
|
|
3409
|
-
drawBackgroundRect:
|
|
3410
|
-
insertArrowHead
|
|
3411
|
-
insertArrowFilledHead
|
|
3412
|
-
insertSequenceNumber
|
|
3413
|
-
insertArrowCrossHead
|
|
3414
|
-
insertDatabaseIcon
|
|
3415
|
-
insertComputerIcon
|
|
3416
|
-
insertClockIcon
|
|
3417
|
-
getTextObj:
|
|
3418
|
-
getNoteRect:
|
|
3419
|
-
fixLifeLineHeights
|
|
3420
|
-
sanitizeUrl:
|
|
3421
|
-
insertDropShadow
|
|
3422
|
-
insertSolidTopArrowHead: /* @__PURE__ */
|
|
3396
|
+
})(), svgDraw_default = {
|
|
3397
|
+
drawRect: drawRect2,
|
|
3398
|
+
drawText,
|
|
3399
|
+
drawLabel,
|
|
3400
|
+
drawActor,
|
|
3401
|
+
drawBox,
|
|
3402
|
+
drawPopup,
|
|
3403
|
+
anchorElement,
|
|
3404
|
+
drawActivation,
|
|
3405
|
+
drawLoop,
|
|
3406
|
+
drawBackgroundRect: drawBackgroundRect2,
|
|
3407
|
+
insertArrowHead,
|
|
3408
|
+
insertArrowFilledHead,
|
|
3409
|
+
insertSequenceNumber,
|
|
3410
|
+
insertArrowCrossHead,
|
|
3411
|
+
insertDatabaseIcon,
|
|
3412
|
+
insertComputerIcon,
|
|
3413
|
+
insertClockIcon,
|
|
3414
|
+
getTextObj: getTextObj2,
|
|
3415
|
+
getNoteRect: getNoteRect2,
|
|
3416
|
+
fixLifeLineHeights,
|
|
3417
|
+
sanitizeUrl: import_dist.sanitizeUrl,
|
|
3418
|
+
insertDropShadow,
|
|
3419
|
+
insertSolidTopArrowHead: /* @__PURE__ */ __name(function(e, t) {
|
|
3423
3420
|
e.append("defs").append("marker").attr("id", t + "-solidTopArrowHead").attr("refX", 7.9).attr("refY", 7.25).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto-start-reverse").append("path").attr("d", "M 0 0 L 10 8 L 0 8 z");
|
|
3424
3421
|
}, "insertSolidTopArrowHead"),
|
|
3425
|
-
insertSolidBottomArrowHead: /* @__PURE__ */
|
|
3422
|
+
insertSolidBottomArrowHead: /* @__PURE__ */ __name(function(e, t) {
|
|
3426
3423
|
e.append("defs").append("marker").attr("id", t + "-solidBottomArrowHead").attr("refX", 7.9).attr("refY", .75).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto-start-reverse").append("path").attr("d", "M 0 0 L 10 0 L 0 8 z");
|
|
3427
3424
|
}, "insertSolidBottomArrowHead"),
|
|
3428
|
-
insertStickTopArrowHead: /* @__PURE__ */
|
|
3425
|
+
insertStickTopArrowHead: /* @__PURE__ */ __name(function(e, t) {
|
|
3429
3426
|
e.append("defs").append("marker").attr("id", t + "-stickTopArrowHead").attr("refX", 7.5).attr("refY", 7).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto-start-reverse").append("path").attr("d", "M 0 0 L 7 7").attr("stroke", "black").attr("stroke-width", 1.5).attr("fill", "none");
|
|
3430
3427
|
}, "insertStickTopArrowHead"),
|
|
3431
|
-
insertStickBottomArrowHead: /* @__PURE__ */
|
|
3428
|
+
insertStickBottomArrowHead: /* @__PURE__ */ __name(function(e, t) {
|
|
3432
3429
|
e.append("defs").append("marker").attr("id", t + "-stickBottomArrowHead").attr("refX", 7.5).attr("refY", 0).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto-start-reverse").append("path").attr("d", "M 0 7 L 7 0").attr("stroke", "black").attr("stroke-width", 1.5).attr("fill", "none");
|
|
3433
3430
|
}, "insertStickBottomArrowHead")
|
|
3434
|
-
},
|
|
3431
|
+
}, conf = {}, bounds = {
|
|
3435
3432
|
data: {
|
|
3436
3433
|
startx: void 0,
|
|
3437
3434
|
stopx: void 0,
|
|
@@ -3442,37 +3439,37 @@ var F = P, I = {
|
|
|
3442
3439
|
sequenceItems: [],
|
|
3443
3440
|
activations: [],
|
|
3444
3441
|
models: {
|
|
3445
|
-
getHeight: /* @__PURE__ */
|
|
3442
|
+
getHeight: /* @__PURE__ */ __name(function() {
|
|
3446
3443
|
return Math.max.apply(null, this.actors.length === 0 ? [0] : this.actors.map((e) => e.height || 0)) + (this.loops.length === 0 ? 0 : this.loops.map((e) => e.height || 0).reduce((e, t) => e + t)) + (this.messages.length === 0 ? 0 : this.messages.map((e) => e.height || 0).reduce((e, t) => e + t)) + (this.notes.length === 0 ? 0 : this.notes.map((e) => e.height || 0).reduce((e, t) => e + t));
|
|
3447
3444
|
}, "getHeight"),
|
|
3448
|
-
clear: /* @__PURE__ */
|
|
3445
|
+
clear: /* @__PURE__ */ __name(function() {
|
|
3449
3446
|
this.actors = [], this.boxes = [], this.loops = [], this.messages = [], this.notes = [];
|
|
3450
3447
|
}, "clear"),
|
|
3451
|
-
addBox: /* @__PURE__ */
|
|
3448
|
+
addBox: /* @__PURE__ */ __name(function(e) {
|
|
3452
3449
|
this.boxes.push(e);
|
|
3453
3450
|
}, "addBox"),
|
|
3454
|
-
addActor: /* @__PURE__ */
|
|
3451
|
+
addActor: /* @__PURE__ */ __name(function(e) {
|
|
3455
3452
|
this.actors.push(e);
|
|
3456
3453
|
}, "addActor"),
|
|
3457
|
-
addLoop: /* @__PURE__ */
|
|
3454
|
+
addLoop: /* @__PURE__ */ __name(function(e) {
|
|
3458
3455
|
this.loops.push(e);
|
|
3459
3456
|
}, "addLoop"),
|
|
3460
|
-
addMessage: /* @__PURE__ */
|
|
3457
|
+
addMessage: /* @__PURE__ */ __name(function(e) {
|
|
3461
3458
|
this.messages.push(e);
|
|
3462
3459
|
}, "addMessage"),
|
|
3463
|
-
addNote: /* @__PURE__ */
|
|
3460
|
+
addNote: /* @__PURE__ */ __name(function(e) {
|
|
3464
3461
|
this.notes.push(e);
|
|
3465
3462
|
}, "addNote"),
|
|
3466
|
-
lastActor: /* @__PURE__ */
|
|
3463
|
+
lastActor: /* @__PURE__ */ __name(function() {
|
|
3467
3464
|
return this.actors[this.actors.length - 1];
|
|
3468
3465
|
}, "lastActor"),
|
|
3469
|
-
lastLoop: /* @__PURE__ */
|
|
3466
|
+
lastLoop: /* @__PURE__ */ __name(function() {
|
|
3470
3467
|
return this.loops[this.loops.length - 1];
|
|
3471
3468
|
}, "lastLoop"),
|
|
3472
|
-
lastMessage: /* @__PURE__ */
|
|
3469
|
+
lastMessage: /* @__PURE__ */ __name(function() {
|
|
3473
3470
|
return this.messages[this.messages.length - 1];
|
|
3474
3471
|
}, "lastMessage"),
|
|
3475
|
-
lastNote: /* @__PURE__ */
|
|
3472
|
+
lastNote: /* @__PURE__ */ __name(function() {
|
|
3476
3473
|
return this.notes[this.notes.length - 1];
|
|
3477
3474
|
}, "lastNote"),
|
|
3478
3475
|
actors: [],
|
|
@@ -3481,50 +3478,50 @@ var F = P, I = {
|
|
|
3481
3478
|
messages: [],
|
|
3482
3479
|
notes: []
|
|
3483
3480
|
},
|
|
3484
|
-
init: /* @__PURE__ */
|
|
3481
|
+
init: /* @__PURE__ */ __name(function() {
|
|
3485
3482
|
this.sequenceItems = [], this.activations = [], this.models.clear(), this.data = {
|
|
3486
3483
|
startx: void 0,
|
|
3487
3484
|
stopx: void 0,
|
|
3488
3485
|
starty: void 0,
|
|
3489
3486
|
stopy: void 0
|
|
3490
|
-
}, this.verticalPos = 0,
|
|
3487
|
+
}, this.verticalPos = 0, setConf(getConfig2());
|
|
3491
3488
|
}, "init"),
|
|
3492
|
-
updateVal: /* @__PURE__ */
|
|
3489
|
+
updateVal: /* @__PURE__ */ __name(function(e, t, n, r) {
|
|
3493
3490
|
e[t] === void 0 ? e[t] = n : e[t] = r(n, e[t]);
|
|
3494
3491
|
}, "updateVal"),
|
|
3495
|
-
updateBounds: /* @__PURE__ */
|
|
3492
|
+
updateBounds: /* @__PURE__ */ __name(function(t, n, r, i) {
|
|
3496
3493
|
let a = this, o = 0;
|
|
3497
3494
|
function s(s) {
|
|
3498
|
-
return /* @__PURE__ */
|
|
3495
|
+
return /* @__PURE__ */ __name(function(e) {
|
|
3499
3496
|
o++;
|
|
3500
3497
|
let c = a.sequenceItems.length - o + 1;
|
|
3501
|
-
a.updateVal(e, "starty", n - c *
|
|
3498
|
+
a.updateVal(e, "starty", n - c * conf.boxMargin, Math.min), a.updateVal(e, "stopy", i + c * conf.boxMargin, Math.max), a.updateVal(bounds.data, "startx", t - c * conf.boxMargin, Math.min), a.updateVal(bounds.data, "stopx", r + c * conf.boxMargin, Math.max), s !== "activation" && (a.updateVal(e, "startx", t - c * conf.boxMargin, Math.min), a.updateVal(e, "stopx", r + c * conf.boxMargin, Math.max), a.updateVal(bounds.data, "starty", n - c * conf.boxMargin, Math.min), a.updateVal(bounds.data, "stopy", i + c * conf.boxMargin, Math.max));
|
|
3502
3499
|
}, "updateItemBounds");
|
|
3503
3500
|
}
|
|
3504
|
-
|
|
3501
|
+
__name(s, "updateFn"), this.sequenceItems.forEach(s()), this.activations.forEach(s("activation"));
|
|
3505
3502
|
}, "updateBounds"),
|
|
3506
|
-
insert: /* @__PURE__ */
|
|
3507
|
-
let i =
|
|
3508
|
-
this.updateVal(
|
|
3503
|
+
insert: /* @__PURE__ */ __name(function(e, t, n, r) {
|
|
3504
|
+
let i = common_default.getMin(e, n), o = common_default.getMax(e, n), s = common_default.getMin(t, r), c = common_default.getMax(t, r);
|
|
3505
|
+
this.updateVal(bounds.data, "startx", i, Math.min), this.updateVal(bounds.data, "starty", s, Math.min), this.updateVal(bounds.data, "stopx", o, Math.max), this.updateVal(bounds.data, "stopy", c, Math.max), this.updateBounds(i, s, o, c);
|
|
3509
3506
|
}, "insert"),
|
|
3510
|
-
newActivation: /* @__PURE__ */
|
|
3511
|
-
let r = n.get(e.from), i =
|
|
3507
|
+
newActivation: /* @__PURE__ */ __name(function(e, t, n) {
|
|
3508
|
+
let r = n.get(e.from), i = actorActivations(e.from).length || 0, a = r.x + r.width / 2 + (i - 1) * conf.activationWidth / 2;
|
|
3512
3509
|
this.activations.push({
|
|
3513
3510
|
startx: a,
|
|
3514
3511
|
starty: this.verticalPos + 2,
|
|
3515
|
-
stopx: a +
|
|
3512
|
+
stopx: a + conf.activationWidth,
|
|
3516
3513
|
stopy: void 0,
|
|
3517
3514
|
actor: e.from,
|
|
3518
|
-
anchored:
|
|
3515
|
+
anchored: svgDraw_default.anchorElement(t)
|
|
3519
3516
|
});
|
|
3520
3517
|
}, "newActivation"),
|
|
3521
|
-
endActivation: /* @__PURE__ */
|
|
3518
|
+
endActivation: /* @__PURE__ */ __name(function(e) {
|
|
3522
3519
|
let t = this.activations.map(function(e) {
|
|
3523
3520
|
return e.actor;
|
|
3524
3521
|
}).lastIndexOf(e.from);
|
|
3525
3522
|
return this.activations.splice(t, 1)[0];
|
|
3526
3523
|
}, "endActivation"),
|
|
3527
|
-
createLoop: /* @__PURE__ */
|
|
3524
|
+
createLoop: /* @__PURE__ */ __name(function(e = {
|
|
3528
3525
|
message: void 0,
|
|
3529
3526
|
wrap: !1,
|
|
3530
3527
|
width: void 0
|
|
@@ -3541,59 +3538,59 @@ var F = P, I = {
|
|
|
3541
3538
|
fill: t
|
|
3542
3539
|
};
|
|
3543
3540
|
}, "createLoop"),
|
|
3544
|
-
newLoop: /* @__PURE__ */
|
|
3541
|
+
newLoop: /* @__PURE__ */ __name(function(e = {
|
|
3545
3542
|
message: void 0,
|
|
3546
3543
|
wrap: !1,
|
|
3547
3544
|
width: void 0
|
|
3548
3545
|
}, t) {
|
|
3549
3546
|
this.sequenceItems.push(this.createLoop(e, t));
|
|
3550
3547
|
}, "newLoop"),
|
|
3551
|
-
endLoop: /* @__PURE__ */
|
|
3548
|
+
endLoop: /* @__PURE__ */ __name(function() {
|
|
3552
3549
|
return this.sequenceItems.pop();
|
|
3553
3550
|
}, "endLoop"),
|
|
3554
|
-
isLoopOverlap: /* @__PURE__ */
|
|
3551
|
+
isLoopOverlap: /* @__PURE__ */ __name(function() {
|
|
3555
3552
|
return this.sequenceItems.length ? this.sequenceItems[this.sequenceItems.length - 1].overlap : !1;
|
|
3556
3553
|
}, "isLoopOverlap"),
|
|
3557
|
-
addSectionToLoop: /* @__PURE__ */
|
|
3554
|
+
addSectionToLoop: /* @__PURE__ */ __name(function(e) {
|
|
3558
3555
|
let t = this.sequenceItems.pop();
|
|
3559
3556
|
t.sections = t.sections || [], t.sectionTitles = t.sectionTitles || [], t.sections.push({
|
|
3560
|
-
y:
|
|
3557
|
+
y: bounds.getVerticalPos(),
|
|
3561
3558
|
height: 0
|
|
3562
3559
|
}), t.sectionTitles.push(e), this.sequenceItems.push(t);
|
|
3563
3560
|
}, "addSectionToLoop"),
|
|
3564
|
-
saveVerticalPos: /* @__PURE__ */
|
|
3561
|
+
saveVerticalPos: /* @__PURE__ */ __name(function() {
|
|
3565
3562
|
this.isLoopOverlap() && (this.savedVerticalPos = this.verticalPos);
|
|
3566
3563
|
}, "saveVerticalPos"),
|
|
3567
|
-
resetVerticalPos: /* @__PURE__ */
|
|
3564
|
+
resetVerticalPos: /* @__PURE__ */ __name(function() {
|
|
3568
3565
|
this.isLoopOverlap() && (this.verticalPos = this.savedVerticalPos);
|
|
3569
3566
|
}, "resetVerticalPos"),
|
|
3570
|
-
bumpVerticalPos: /* @__PURE__ */
|
|
3571
|
-
this.verticalPos += e, this.data.stopy =
|
|
3567
|
+
bumpVerticalPos: /* @__PURE__ */ __name(function(e) {
|
|
3568
|
+
this.verticalPos += e, this.data.stopy = common_default.getMax(this.data.stopy, this.verticalPos);
|
|
3572
3569
|
}, "bumpVerticalPos"),
|
|
3573
|
-
getVerticalPos: /* @__PURE__ */
|
|
3570
|
+
getVerticalPos: /* @__PURE__ */ __name(function() {
|
|
3574
3571
|
return this.verticalPos;
|
|
3575
3572
|
}, "getVerticalPos"),
|
|
3576
|
-
getBounds: /* @__PURE__ */
|
|
3573
|
+
getBounds: /* @__PURE__ */ __name(function() {
|
|
3577
3574
|
return {
|
|
3578
3575
|
bounds: this.data,
|
|
3579
3576
|
models: this.models
|
|
3580
3577
|
};
|
|
3581
3578
|
}, "getBounds")
|
|
3582
|
-
},
|
|
3583
|
-
|
|
3584
|
-
let r =
|
|
3585
|
-
r.x = t.startx, r.y = t.starty, r.width = t.width ||
|
|
3579
|
+
}, drawNote = /* @__PURE__ */ __name(async function(e, t, n) {
|
|
3580
|
+
bounds.bumpVerticalPos(conf.boxMargin), t.height = conf.boxMargin, t.starty = bounds.getVerticalPos();
|
|
3581
|
+
let r = getNoteRect();
|
|
3582
|
+
r.x = t.startx, r.y = t.starty, r.width = t.width || conf.width, r.class = "note";
|
|
3586
3583
|
let i = e.append("g");
|
|
3587
3584
|
i.attr("data-et", "note"), i.attr("data-id", "i" + n);
|
|
3588
|
-
let a =
|
|
3589
|
-
o.x = t.startx, o.y = t.starty, o.width = r.width, o.dy = "1em", o.text = t.message, o.class = "noteText", o.fontFamily =
|
|
3590
|
-
let s =
|
|
3591
|
-
a.attr("height", c + 2 *
|
|
3592
|
-
}, "drawNote"),
|
|
3593
|
-
let c = i.db.getActors(), l = c.get(n.from), u = c.get(n.to), d = r.sequenceVisible, f = l.x + l.width / 2, p = u.x + u.width / 2, m = f <= p, h =
|
|
3585
|
+
let a = svgDraw_default.drawRect(i, r), o = getTextObj();
|
|
3586
|
+
o.x = t.startx, o.y = t.starty, o.width = r.width, o.dy = "1em", o.text = t.message, o.class = "noteText", o.fontFamily = conf.noteFontFamily, o.fontSize = conf.noteFontSize, o.fontWeight = conf.noteFontWeight, o.anchor = conf.noteAlign, o.textMargin = conf.noteMargin, o.valign = "center";
|
|
3587
|
+
let s = hasKatex(o.text) ? await drawKatex(i, o) : drawText(i, o), c = Math.round(s.map((e) => (e._groups || e)[0][0].getBBox().height).reduce((e, t) => e + t));
|
|
3588
|
+
a.attr("height", c + 2 * conf.noteMargin), t.height += c + 2 * conf.noteMargin, bounds.bumpVerticalPos(c + 2 * conf.noteMargin), t.stopy = t.starty + c + 2 * conf.noteMargin, t.stopx = t.startx + r.width, bounds.insert(t.startx, t.starty, t.stopx, t.stopy), bounds.models.addNote(t);
|
|
3589
|
+
}, "drawNote"), drawCentralConnection = /* @__PURE__ */ __name(function(t, n, r, i, a, o, s) {
|
|
3590
|
+
let c = i.db.getActors(), l = c.get(n.from), u = c.get(n.to), d = r.sequenceVisible, f = l.x + l.width / 2, p = u.x + u.width / 2, m = f <= p, h = isReverseArrowType(n, i), g = t.append("g"), _ = 16.5, v = /* @__PURE__ */ __name((e, t) => {
|
|
3594
3591
|
let n = e ? _ : -_;
|
|
3595
3592
|
return t ? -n : n;
|
|
3596
|
-
}, "getCircleOffset"), y = /* @__PURE__ */
|
|
3593
|
+
}, "getCircleOffset"), y = /* @__PURE__ */ __name((e) => {
|
|
3597
3594
|
g.append("circle").attr("cx", e).attr("cy", s).attr("r", 5).attr("width", 10).attr("height", 10);
|
|
3598
3595
|
}, "drawCircle"), { CENTRAL_CONNECTION: b, CENTRAL_CONNECTION_REVERSE: x, CENTRAL_CONNECTION_DUAL: S } = i.db.LINETYPE;
|
|
3599
3596
|
if (d) switch (n.centralConnection) {
|
|
@@ -3618,247 +3615,247 @@ var F = P, I = {
|
|
|
3618
3615
|
y(f), y(p);
|
|
3619
3616
|
break;
|
|
3620
3617
|
}
|
|
3621
|
-
}, "drawCentralConnection"),
|
|
3618
|
+
}, "drawCentralConnection"), messageFont = /* @__PURE__ */ __name((e) => ({
|
|
3622
3619
|
fontFamily: e.messageFontFamily,
|
|
3623
3620
|
fontSize: e.messageFontSize,
|
|
3624
3621
|
fontWeight: e.messageFontWeight
|
|
3625
|
-
}), "messageFont"),
|
|
3622
|
+
}), "messageFont"), noteFont = /* @__PURE__ */ __name((e) => ({
|
|
3626
3623
|
fontFamily: e.noteFontFamily,
|
|
3627
3624
|
fontSize: e.noteFontSize,
|
|
3628
3625
|
fontWeight: e.noteFontWeight
|
|
3629
|
-
}), "noteFont"),
|
|
3626
|
+
}), "noteFont"), actorFont = /* @__PURE__ */ __name((e) => ({
|
|
3630
3627
|
fontFamily: e.actorFontFamily,
|
|
3631
3628
|
fontSize: e.actorFontSize,
|
|
3632
3629
|
fontWeight: e.actorFontWeight
|
|
3633
3630
|
}), "actorFont");
|
|
3634
|
-
async function
|
|
3635
|
-
|
|
3636
|
-
let { startx: n, stopx: i, message: o } = t, s =
|
|
3631
|
+
async function boundMessage(e, t) {
|
|
3632
|
+
bounds.bumpVerticalPos(10);
|
|
3633
|
+
let { startx: n, stopx: i, message: o } = t, s = common_default.splitBreaks(o).length, c = hasKatex(o), l = c ? await calculateMathMLDimensions(o, getConfig2()) : utils_default.calculateTextDimensions(o, messageFont(conf));
|
|
3637
3634
|
if (!c) {
|
|
3638
3635
|
let e = l.height / s;
|
|
3639
|
-
t.height += e,
|
|
3636
|
+
t.height += e, bounds.bumpVerticalPos(e);
|
|
3640
3637
|
}
|
|
3641
3638
|
let d, f = l.height - 10, m = l.width;
|
|
3642
3639
|
if (n === i) {
|
|
3643
|
-
d =
|
|
3644
|
-
let e =
|
|
3645
|
-
|
|
3646
|
-
} else f +=
|
|
3647
|
-
return
|
|
3640
|
+
d = bounds.getVerticalPos() + f, conf.rightAngles || (f += conf.boxMargin, d = bounds.getVerticalPos() + f), f += 30;
|
|
3641
|
+
let e = common_default.getMax(m / 2, conf.width / 2);
|
|
3642
|
+
bounds.insert(n - e, bounds.getVerticalPos() - 10 + f, i + e, bounds.getVerticalPos() + 30 + f);
|
|
3643
|
+
} else f += conf.boxMargin, d = bounds.getVerticalPos() + f, bounds.insert(n, d - 10, i, d);
|
|
3644
|
+
return bounds.bumpVerticalPos(f), t.height += f, t.stopy = t.starty + t.height, bounds.insert(t.fromBounds, t.starty, t.toBounds, t.stopy), d;
|
|
3648
3645
|
}
|
|
3649
|
-
|
|
3650
|
-
var
|
|
3651
|
-
let { startx: s, stopx: c, starty: l, message: u, type: d, sequenceIndex: m, sequenceVisible: h } = t, g =
|
|
3652
|
-
_.x = s, _.y = l + 10, _.width = c - s, _.class = "messageText", _.dy = "1em", _.text = u, _.fontFamily =
|
|
3646
|
+
__name(boundMessage, "boundMessage");
|
|
3647
|
+
var drawMessage = /* @__PURE__ */ __name(async function(e, t, n, r, i, o) {
|
|
3648
|
+
let { startx: s, stopx: c, starty: l, message: u, type: d, sequenceIndex: m, sequenceVisible: h } = t, g = utils_default.calculateTextDimensions(u, messageFont(conf)), _ = getTextObj();
|
|
3649
|
+
_.x = s, _.y = l + 10, _.width = c - s, _.class = "messageText", _.dy = "1em", _.text = u, _.fontFamily = conf.messageFontFamily, _.fontSize = conf.messageFontSize, _.fontWeight = conf.messageFontWeight, _.anchor = conf.messageAlign, _.valign = "center", _.textMargin = conf.wrapPadding, _.tspan = !1, hasKatex(_.text) ? await drawKatex(e, _, {
|
|
3653
3650
|
startx: s,
|
|
3654
3651
|
stopx: c,
|
|
3655
3652
|
starty: n
|
|
3656
|
-
}) :
|
|
3653
|
+
}) : drawText(e, _);
|
|
3657
3654
|
let v = g.width, y;
|
|
3658
3655
|
if (s === c) {
|
|
3659
|
-
let o = h ||
|
|
3660
|
-
y =
|
|
3661
|
-
} else y = e.append("line"), y.attr("x1", s), y.attr("y1", n), y.attr("x2", c), y.attr("y2", n),
|
|
3656
|
+
let o = h || conf.showSequenceNumbers, l = isReverseArrowType(i, r), u = isBidirectionalArrowType(i, r), d = s + (o && (l || u) ? 10 : 0);
|
|
3657
|
+
y = conf.rightAngles ? e.append("path").attr("d", `M ${d},${n} H ${s + common_default.getMax(conf.width / 2, v / 2)} V ${n + 25} H ${s}`) : e.append("path").attr("d", "M " + d + "," + n + " C " + (d + 60) + "," + (n - 10) + " " + (s + 60) + "," + (n + 30) + " " + s + "," + (n + 20)), hasCentralConnection(i, r) && drawCentralConnection(e, i, t, r, s, c, n);
|
|
3658
|
+
} else y = e.append("line"), y.attr("x1", s), y.attr("y1", n), y.attr("x2", c), y.attr("y2", n), hasCentralConnection(i, r) && drawCentralConnection(e, i, t, r, s, c, n);
|
|
3662
3659
|
d === r.db.LINETYPE.DOTTED || d === r.db.LINETYPE.DOTTED_CROSS || d === r.db.LINETYPE.DOTTED_POINT || d === r.db.LINETYPE.DOTTED_OPEN || d === r.db.LINETYPE.BIDIRECTIONAL_DOTTED || d === r.db.LINETYPE.SOLID_TOP_DOTTED || d === r.db.LINETYPE.SOLID_BOTTOM_DOTTED || d === r.db.LINETYPE.STICK_TOP_DOTTED || d === r.db.LINETYPE.STICK_BOTTOM_DOTTED || d === r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED || d === r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED || d === r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED || d === r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED ? (y.style("stroke-dasharray", "3, 3"), y.attr("class", "messageLine1")) : y.attr("class", "messageLine0"), y.attr("data-et", "message"), y.attr("data-id", "i" + t.id), y.attr("data-from", t.from), y.attr("data-to", t.to);
|
|
3663
3660
|
let b = "";
|
|
3664
|
-
if (
|
|
3665
|
-
let a = d === r.db.LINETYPE.BIDIRECTIONAL_SOLID || d === r.db.LINETYPE.BIDIRECTIONAL_DOTTED, l = d === r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE || d === r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED || d === r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE || d === r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED || d === r.db.LINETYPE.STICK_ARROW_TOP_REVERSE || d === r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED || d === r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE || d === r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED, u =
|
|
3661
|
+
if (conf.arrowMarkerAbsolute && (b = getUrl(!0)), y.attr("stroke-width", 2), y.attr("stroke", "none"), y.style("fill", "none"), (d === r.db.LINETYPE.SOLID_TOP || d === r.db.LINETYPE.SOLID_TOP_DOTTED) && y.attr("marker-end", "url(" + b + "#" + o + "-solidTopArrowHead)"), (d === r.db.LINETYPE.SOLID_BOTTOM || d === r.db.LINETYPE.SOLID_BOTTOM_DOTTED) && y.attr("marker-end", "url(" + b + "#" + o + "-solidBottomArrowHead)"), (d === r.db.LINETYPE.STICK_TOP || d === r.db.LINETYPE.STICK_TOP_DOTTED) && y.attr("marker-end", "url(" + b + "#" + o + "-stickTopArrowHead)"), (d === r.db.LINETYPE.STICK_BOTTOM || d === r.db.LINETYPE.STICK_BOTTOM_DOTTED) && y.attr("marker-end", "url(" + b + "#" + o + "-stickBottomArrowHead)"), (d === r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE || d === r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED) && y.attr("marker-start", "url(" + b + "#" + o + "-solidBottomArrowHead)"), (d === r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE || d === r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED) && y.attr("marker-start", "url(" + b + "#" + o + "-solidTopArrowHead)"), (d === r.db.LINETYPE.STICK_ARROW_TOP_REVERSE || d === r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED) && y.attr("marker-start", "url(" + b + "#" + o + "-stickBottomArrowHead)"), (d === r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE || d === r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED) && y.attr("marker-start", "url(" + b + "#" + o + "-stickTopArrowHead)"), (d === r.db.LINETYPE.SOLID || d === r.db.LINETYPE.DOTTED) && y.attr("marker-end", "url(" + b + "#" + o + "-arrowhead)"), (d === r.db.LINETYPE.BIDIRECTIONAL_SOLID || d === r.db.LINETYPE.BIDIRECTIONAL_DOTTED) && (y.attr("marker-start", "url(" + b + "#" + o + "-arrowhead)"), y.attr("marker-end", "url(" + b + "#" + o + "-arrowhead)")), (d === r.db.LINETYPE.SOLID_POINT || d === r.db.LINETYPE.DOTTED_POINT) && y.attr("marker-end", "url(" + b + "#" + o + "-filled-head)"), (d === r.db.LINETYPE.SOLID_CROSS || d === r.db.LINETYPE.DOTTED_CROSS) && y.attr("marker-end", "url(" + b + "#" + o + "-crosshead)"), h || conf.showSequenceNumbers) {
|
|
3662
|
+
let a = d === r.db.LINETYPE.BIDIRECTIONAL_SOLID || d === r.db.LINETYPE.BIDIRECTIONAL_DOTTED, l = d === r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE || d === r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED || d === r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE || d === r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED || d === r.db.LINETYPE.STICK_ARROW_TOP_REVERSE || d === r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED || d === r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE || d === r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED, u = hasCentralConnection(i, r), f = s, p = c;
|
|
3666
3663
|
a ? (s < c ? f = s + 12 : (f = s - 6 + (u ? -5 : 0), f += i?.centralConnection === r.db.LINETYPE.CENTRAL_CONNECTION_DUAL || i?.centralConnection === r.db.LINETYPE.CENTRAL_CONNECTION_REVERSE ? -7.5 : 0), y.attr("x1", f)) : l ? (c > s ? p = c - 12 : (p = c - 6, f += i?.centralConnection === r.db.LINETYPE.CENTRAL_CONNECTION_DUAL || i?.centralConnection === r.db.LINETYPE.CENTRAL_CONNECTION_REVERSE ? -7.5 : 0), p += u ? 15 : 0, y.attr("x2", p), y.attr("x1", f)) : y.attr("x1", s + 6);
|
|
3667
3664
|
let h = 0, g = s === c, _ = s <= c;
|
|
3668
3665
|
h = g ? t.fromBounds + 1 : l ? _ ? t.toBounds - 1 : t.fromBounds + 1 : _ ? t.fromBounds + 1 : t.toBounds - 1, e.append("line").attr("x1", h).attr("y1", n).attr("x2", h).attr("y2", n).attr("stroke-width", 0).attr("marker-start", "url(" + b + "#" + o + "-sequencenumber)"), e.append("text").attr("x", h).attr("y", n + 4).attr("font-family", "sans-serif").attr("font-size", "12px").attr("text-anchor", "middle").attr("class", "sequenceNumber").text(m);
|
|
3669
3666
|
}
|
|
3670
|
-
}, "drawMessage"),
|
|
3667
|
+
}, "drawMessage"), addActorRenderingData = /* @__PURE__ */ __name(function(e, t, n, r, i, o, s) {
|
|
3671
3668
|
let c = 0, l = 0, u, d = 0;
|
|
3672
3669
|
for (let e of r) {
|
|
3673
3670
|
let r = t.get(e), o = r.box;
|
|
3674
|
-
u && u != o && (s ||
|
|
3671
|
+
u && u != o && (s || bounds.models.addBox(u), l += conf.boxMargin + u.margin), o && o != u && (s || (o.x = c + l, o.y = i), l += o.margin), r.width = common_default.getMax(r.width || conf.width, conf.width), r.height = common_default.getMax(r.height || conf.height, conf.height), r.margin = r.margin || conf.actorMargin, d = common_default.getMax(d, r.height), n.get(r.name) && (l += r.width / 2), r.x = c + l, r.starty = bounds.getVerticalPos(), bounds.insert(r.x, i, r.x + r.width, r.height), c += r.width + l, r.box && (r.box.width = c + o.margin - r.box.x), l = r.margin, u = r.box, bounds.models.addActor(r);
|
|
3675
3672
|
}
|
|
3676
|
-
u && !s &&
|
|
3677
|
-
}, "addActorRenderingData"),
|
|
3673
|
+
u && !s && bounds.models.addBox(u), bounds.bumpVerticalPos(d);
|
|
3674
|
+
}, "addActorRenderingData"), drawActors = /* @__PURE__ */ __name(async function(e, t, n, r, i, o, s) {
|
|
3678
3675
|
if (r) {
|
|
3679
3676
|
let r = 0;
|
|
3680
|
-
|
|
3677
|
+
bounds.bumpVerticalPos(conf.boxMargin * 2);
|
|
3681
3678
|
for (let c of n) {
|
|
3682
3679
|
let n = t.get(c);
|
|
3683
|
-
n.stopy ||=
|
|
3684
|
-
let l = await
|
|
3685
|
-
r =
|
|
3680
|
+
n.stopy ||= bounds.getVerticalPos();
|
|
3681
|
+
let l = await svgDraw_default.drawActor(e, n, conf, !0, i, o, s);
|
|
3682
|
+
r = common_default.getMax(r, l);
|
|
3686
3683
|
}
|
|
3687
|
-
|
|
3684
|
+
bounds.bumpVerticalPos(r + conf.boxMargin);
|
|
3688
3685
|
} else for (let r of n) {
|
|
3689
3686
|
let n = t.get(r);
|
|
3690
|
-
await
|
|
3687
|
+
await svgDraw_default.drawActor(e, n, conf, !1, i, o, s);
|
|
3691
3688
|
}
|
|
3692
|
-
}, "drawActors"),
|
|
3689
|
+
}, "drawActors"), drawActorsPopup = /* @__PURE__ */ __name(function(e, t, n, r) {
|
|
3693
3690
|
let i = 0, a = 0;
|
|
3694
3691
|
for (let o of n) {
|
|
3695
|
-
let n = t.get(o), s =
|
|
3692
|
+
let n = t.get(o), s = getRequiredPopupWidth(n), c = svgDraw_default.drawPopup(e, n, s, conf, conf.forceMenus, r);
|
|
3696
3693
|
c.height > i && (i = c.height), c.width + n.x > a && (a = c.width + n.x);
|
|
3697
3694
|
}
|
|
3698
3695
|
return {
|
|
3699
3696
|
maxHeight: i,
|
|
3700
3697
|
maxWidth: a
|
|
3701
3698
|
};
|
|
3702
|
-
}, "drawActorsPopup"),
|
|
3703
|
-
|
|
3704
|
-
}, "setConf"),
|
|
3705
|
-
return
|
|
3699
|
+
}, "drawActorsPopup"), setConf = /* @__PURE__ */ __name(function(e) {
|
|
3700
|
+
assignWithDepth_default(conf, e), e.fontFamily && (conf.actorFontFamily = conf.noteFontFamily = conf.messageFontFamily = e.fontFamily), e.fontSize && (conf.actorFontSize = conf.noteFontSize = conf.messageFontSize = e.fontSize), e.fontWeight && (conf.actorFontWeight = conf.noteFontWeight = conf.messageFontWeight = e.fontWeight);
|
|
3701
|
+
}, "setConf"), actorActivations = /* @__PURE__ */ __name(function(e) {
|
|
3702
|
+
return bounds.activations.filter(function(t) {
|
|
3706
3703
|
return t.actor === e;
|
|
3707
3704
|
});
|
|
3708
|
-
}, "actorActivations"),
|
|
3709
|
-
let n = t.get(e), r =
|
|
3705
|
+
}, "actorActivations"), activationBounds = /* @__PURE__ */ __name(function(e, t) {
|
|
3706
|
+
let n = t.get(e), r = actorActivations(e);
|
|
3710
3707
|
return [r.reduce(function(e, t) {
|
|
3711
|
-
return
|
|
3708
|
+
return common_default.getMin(e, t.startx);
|
|
3712
3709
|
}, n.x + n.width / 2 - 1), r.reduce(function(e, t) {
|
|
3713
|
-
return
|
|
3710
|
+
return common_default.getMax(e, t.stopx);
|
|
3714
3711
|
}, n.x + n.width / 2 + 1)];
|
|
3715
3712
|
}, "activationBounds");
|
|
3716
|
-
function
|
|
3717
|
-
|
|
3713
|
+
function adjustLoopHeightForWrap(e, n, r, i, o) {
|
|
3714
|
+
bounds.bumpVerticalPos(r);
|
|
3718
3715
|
let s = i;
|
|
3719
3716
|
if (n.id && n.message && e[n.id]) {
|
|
3720
|
-
let r = e[n.id].width, o =
|
|
3721
|
-
n.message =
|
|
3722
|
-
let c =
|
|
3723
|
-
s = i + l,
|
|
3717
|
+
let r = e[n.id].width, o = messageFont(conf);
|
|
3718
|
+
n.message = utils_default.wrapLabel(`[${n.message}]`, r - 2 * conf.wrapPadding, o), n.width = r, n.wrap = !0;
|
|
3719
|
+
let c = utils_default.calculateTextDimensions(n.message, o), l = common_default.getMax(c.height, conf.labelBoxHeight);
|
|
3720
|
+
s = i + l, log.debug(`${l} - ${n.message}`);
|
|
3724
3721
|
}
|
|
3725
|
-
o(n),
|
|
3722
|
+
o(n), bounds.bumpVerticalPos(s);
|
|
3726
3723
|
}
|
|
3727
|
-
|
|
3728
|
-
function
|
|
3724
|
+
__name(adjustLoopHeightForWrap, "adjustLoopHeightForWrap");
|
|
3725
|
+
function adjustCreatedDestroyedData(t, n, r, i, a, o, s) {
|
|
3729
3726
|
function c(e, r) {
|
|
3730
|
-
e.x < a.get(t.from).x ? (
|
|
3727
|
+
e.x < a.get(t.from).x ? (bounds.insert(n.stopx - r, n.starty, n.startx, n.stopy + e.height / 2 + conf.noteMargin), n.stopx += r) : (bounds.insert(n.startx, n.starty, n.stopx + r, n.stopy + e.height / 2 + conf.noteMargin), n.stopx -= r);
|
|
3731
3728
|
}
|
|
3732
|
-
|
|
3729
|
+
__name(c, "receiverAdjustment");
|
|
3733
3730
|
function l(e, r) {
|
|
3734
|
-
e.x < a.get(t.to).x ? (
|
|
3731
|
+
e.x < a.get(t.to).x ? (bounds.insert(n.startx - r, n.starty, n.stopx, n.stopy + e.height / 2 + conf.noteMargin), n.startx += r) : (bounds.insert(n.stopx, n.starty, n.startx + r, n.stopy + e.height / 2 + conf.noteMargin), n.startx -= r);
|
|
3735
3732
|
}
|
|
3736
|
-
|
|
3733
|
+
__name(l, "senderAdjustment");
|
|
3737
3734
|
let u = [
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
|
|
3741
|
-
|
|
3735
|
+
PARTICIPANT_TYPE.ACTOR,
|
|
3736
|
+
PARTICIPANT_TYPE.CONTROL,
|
|
3737
|
+
PARTICIPANT_TYPE.ENTITY,
|
|
3738
|
+
PARTICIPANT_TYPE.DATABASE
|
|
3742
3739
|
];
|
|
3743
3740
|
if (o.get(t.to) == i) {
|
|
3744
3741
|
let e = a.get(t.to);
|
|
3745
|
-
c(e, u.includes(e.type) ?
|
|
3742
|
+
c(e, u.includes(e.type) ? ACTOR_TYPE_WIDTH / 2 + 3 : e.width / 2 + 3), e.starty = r - e.height / 2, bounds.bumpVerticalPos(e.height / 2);
|
|
3746
3743
|
} else if (s.get(t.from) == i) {
|
|
3747
3744
|
let e = a.get(t.from);
|
|
3748
|
-
|
|
3745
|
+
conf.mirrorActors && l(e, u.includes(e.type) ? ACTOR_TYPE_WIDTH / 2 : e.width / 2), e.stopy = r - e.height / 2, bounds.bumpVerticalPos(e.height / 2);
|
|
3749
3746
|
} else if (s.get(t.to) == i) {
|
|
3750
3747
|
let e = a.get(t.to);
|
|
3751
|
-
|
|
3748
|
+
conf.mirrorActors && c(e, u.includes(e.type) ? ACTOR_TYPE_WIDTH / 2 + 3 : e.width / 2 + 3), e.stopy = r - e.height / 2, bounds.bumpVerticalPos(e.height / 2);
|
|
3752
3749
|
}
|
|
3753
3750
|
}
|
|
3754
|
-
|
|
3755
|
-
var
|
|
3756
|
-
let { securityLevel: s, sequence: c, look: l } =
|
|
3757
|
-
|
|
3751
|
+
__name(adjustCreatedDestroyedData, "adjustCreatedDestroyedData");
|
|
3752
|
+
var draw = /* @__PURE__ */ __name(async function(n, r, i, a) {
|
|
3753
|
+
let { securityLevel: s, sequence: c, look: l } = getConfig2();
|
|
3754
|
+
conf = c;
|
|
3758
3755
|
let d;
|
|
3759
|
-
s === "sandbox" && (d =
|
|
3760
|
-
let f =
|
|
3761
|
-
|
|
3762
|
-
let m = s === "sandbox" ? f.select(`[id="${r}"]`) :
|
|
3763
|
-
if (
|
|
3756
|
+
s === "sandbox" && (d = select_default("#i" + r));
|
|
3757
|
+
let f = select_default(s === "sandbox" ? d.nodes()[0].contentDocument.body : "body"), p = s === "sandbox" ? d.nodes()[0].contentDocument : document;
|
|
3758
|
+
bounds.init(), log.debug(a.db);
|
|
3759
|
+
let m = s === "sandbox" ? f.select(`[id="${r}"]`) : select_default(`[id="${r}"]`), h = a.db.getActors(), g = a.db.getCreatedActors(), _ = a.db.getDestroyedActors(), v = a.db.getBoxes(), y = a.db.getActorKeys(), x = a.db.getMessages(), S = a.db.getDiagramTitle(), C = a.db.hasAtLeastOneBox(), w = a.db.hasAtLeastOneBoxWithTitle(), T = await getMaxMessageWidthPerActor(h, x, a);
|
|
3760
|
+
if (conf.height = await calculateActorMargins(h, T, v), svgDraw_default.insertComputerIcon(m, r), svgDraw_default.insertDatabaseIcon(m, r), svgDraw_default.insertClockIcon(m, r), C && (bounds.bumpVerticalPos(conf.boxMargin), w && bounds.bumpVerticalPos(v[0].textMaxHeight)), conf.hideUnusedParticipants === !0) {
|
|
3764
3761
|
let e = /* @__PURE__ */ new Set();
|
|
3765
3762
|
x.forEach((t) => {
|
|
3766
3763
|
e.add(t.from), e.add(t.to);
|
|
3767
3764
|
}), y = y.filter((t) => e.has(t));
|
|
3768
3765
|
}
|
|
3769
3766
|
let E = new Map(y.map((e, t) => [h.get(e)?.name ?? e, t]));
|
|
3770
|
-
|
|
3771
|
-
let D = await
|
|
3772
|
-
|
|
3767
|
+
addActorRenderingData(m, h, g, y, 0, x, !1);
|
|
3768
|
+
let D = await calculateLoopBounds(x, h, T, a);
|
|
3769
|
+
svgDraw_default.insertArrowHead(m, r), svgDraw_default.insertArrowCrossHead(m, r), svgDraw_default.insertArrowFilledHead(m, r), svgDraw_default.insertSequenceNumber(m, r), svgDraw_default.insertSolidTopArrowHead(m, r), svgDraw_default.insertSolidBottomArrowHead(m, r), svgDraw_default.insertStickTopArrowHead(m, r), svgDraw_default.insertStickBottomArrowHead(m, r), l === "neo" && svgDraw_default.insertDropShadow(m, conf);
|
|
3773
3770
|
function O(e, t) {
|
|
3774
|
-
let n =
|
|
3775
|
-
n.starty + 18 > t && (n.starty = t - 6, t += 12),
|
|
3771
|
+
let n = bounds.endActivation(e);
|
|
3772
|
+
n.starty + 18 > t && (n.starty = t - 6, t += 12), svgDraw_default.drawActivation(m, n, t, conf, actorActivations(e.from).length, a, E), bounds.insert(n.startx, t - 10, n.stopx, t);
|
|
3776
3773
|
}
|
|
3777
|
-
|
|
3774
|
+
__name(O, "activeEnd");
|
|
3778
3775
|
let k = 1, A = 1, j = [], M = [], N = 0;
|
|
3779
3776
|
for (let e of x) {
|
|
3780
3777
|
let n, r, i;
|
|
3781
3778
|
switch (e.type) {
|
|
3782
3779
|
case a.db.LINETYPE.NOTE:
|
|
3783
|
-
|
|
3780
|
+
bounds.resetVerticalPos(), r = e.noteModel, await drawNote(m, r, e.id);
|
|
3784
3781
|
break;
|
|
3785
3782
|
case a.db.LINETYPE.ACTIVE_START:
|
|
3786
|
-
|
|
3783
|
+
bounds.newActivation(e, m, h);
|
|
3787
3784
|
break;
|
|
3788
3785
|
case a.db.LINETYPE.CENTRAL_CONNECTION:
|
|
3789
|
-
|
|
3786
|
+
bounds.newActivation(e, m, h);
|
|
3790
3787
|
break;
|
|
3791
3788
|
case a.db.LINETYPE.CENTRAL_CONNECTION_REVERSE:
|
|
3792
|
-
|
|
3789
|
+
bounds.newActivation(e, m, h);
|
|
3793
3790
|
break;
|
|
3794
3791
|
case a.db.LINETYPE.ACTIVE_END:
|
|
3795
|
-
O(e,
|
|
3792
|
+
O(e, bounds.getVerticalPos());
|
|
3796
3793
|
break;
|
|
3797
3794
|
case a.db.LINETYPE.LOOP_START:
|
|
3798
|
-
|
|
3795
|
+
adjustLoopHeightForWrap(D, e, conf.boxMargin, conf.boxMargin + conf.boxTextMargin, (e) => bounds.newLoop(e));
|
|
3799
3796
|
break;
|
|
3800
3797
|
case a.db.LINETYPE.LOOP_END:
|
|
3801
|
-
n =
|
|
3798
|
+
n = bounds.endLoop(), await svgDraw_default.drawLoop(m, n, "loop", conf, e), bounds.bumpVerticalPos(n.stopy - bounds.getVerticalPos()), bounds.models.addLoop(n);
|
|
3802
3799
|
break;
|
|
3803
3800
|
case a.db.LINETYPE.RECT_START:
|
|
3804
|
-
|
|
3801
|
+
adjustLoopHeightForWrap(D, e, conf.boxMargin, conf.boxMargin, (e) => bounds.newLoop(void 0, e.message));
|
|
3805
3802
|
break;
|
|
3806
3803
|
case a.db.LINETYPE.RECT_END:
|
|
3807
|
-
n =
|
|
3804
|
+
n = bounds.endLoop(), M.push(n), bounds.models.addLoop(n), bounds.bumpVerticalPos(n.stopy - bounds.getVerticalPos());
|
|
3808
3805
|
break;
|
|
3809
3806
|
case a.db.LINETYPE.OPT_START:
|
|
3810
|
-
|
|
3807
|
+
adjustLoopHeightForWrap(D, e, conf.boxMargin, conf.boxMargin + conf.boxTextMargin, (e) => bounds.newLoop(e));
|
|
3811
3808
|
break;
|
|
3812
3809
|
case a.db.LINETYPE.OPT_END:
|
|
3813
|
-
n =
|
|
3810
|
+
n = bounds.endLoop(), await svgDraw_default.drawLoop(m, n, "opt", conf, e), bounds.bumpVerticalPos(n.stopy - bounds.getVerticalPos()), bounds.models.addLoop(n);
|
|
3814
3811
|
break;
|
|
3815
3812
|
case a.db.LINETYPE.ALT_START:
|
|
3816
|
-
|
|
3813
|
+
adjustLoopHeightForWrap(D, e, conf.boxMargin, conf.boxMargin + conf.boxTextMargin, (e) => bounds.newLoop(e));
|
|
3817
3814
|
break;
|
|
3818
3815
|
case a.db.LINETYPE.ALT_ELSE:
|
|
3819
|
-
|
|
3816
|
+
adjustLoopHeightForWrap(D, e, conf.boxMargin + conf.boxTextMargin, conf.boxMargin, (e) => bounds.addSectionToLoop(e));
|
|
3820
3817
|
break;
|
|
3821
3818
|
case a.db.LINETYPE.ALT_END:
|
|
3822
|
-
n =
|
|
3819
|
+
n = bounds.endLoop(), await svgDraw_default.drawLoop(m, n, "alt", conf, e), bounds.bumpVerticalPos(n.stopy - bounds.getVerticalPos()), bounds.models.addLoop(n);
|
|
3823
3820
|
break;
|
|
3824
3821
|
case a.db.LINETYPE.PAR_START:
|
|
3825
3822
|
case a.db.LINETYPE.PAR_OVER_START:
|
|
3826
|
-
|
|
3823
|
+
adjustLoopHeightForWrap(D, e, conf.boxMargin, conf.boxMargin + conf.boxTextMargin, (e) => bounds.newLoop(e)), bounds.saveVerticalPos();
|
|
3827
3824
|
break;
|
|
3828
3825
|
case a.db.LINETYPE.PAR_AND:
|
|
3829
|
-
|
|
3826
|
+
adjustLoopHeightForWrap(D, e, conf.boxMargin + conf.boxTextMargin, conf.boxMargin, (e) => bounds.addSectionToLoop(e));
|
|
3830
3827
|
break;
|
|
3831
3828
|
case a.db.LINETYPE.PAR_END:
|
|
3832
|
-
n =
|
|
3829
|
+
n = bounds.endLoop(), await svgDraw_default.drawLoop(m, n, "par", conf, e), bounds.bumpVerticalPos(n.stopy - bounds.getVerticalPos()), bounds.models.addLoop(n);
|
|
3833
3830
|
break;
|
|
3834
3831
|
case a.db.LINETYPE.AUTONUMBER:
|
|
3835
3832
|
k = e.message.start || k, A = e.message.step || A, e.message.visible ? a.db.enableSequenceNumbers() : a.db.disableSequenceNumbers();
|
|
3836
3833
|
break;
|
|
3837
3834
|
case a.db.LINETYPE.CRITICAL_START:
|
|
3838
|
-
|
|
3835
|
+
adjustLoopHeightForWrap(D, e, conf.boxMargin, conf.boxMargin + conf.boxTextMargin, (e) => bounds.newLoop(e));
|
|
3839
3836
|
break;
|
|
3840
3837
|
case a.db.LINETYPE.CRITICAL_OPTION:
|
|
3841
|
-
|
|
3838
|
+
adjustLoopHeightForWrap(D, e, conf.boxMargin + conf.boxTextMargin, conf.boxMargin, (e) => bounds.addSectionToLoop(e));
|
|
3842
3839
|
break;
|
|
3843
3840
|
case a.db.LINETYPE.CRITICAL_END:
|
|
3844
|
-
n =
|
|
3841
|
+
n = bounds.endLoop(), await svgDraw_default.drawLoop(m, n, "critical", conf, e), bounds.bumpVerticalPos(n.stopy - bounds.getVerticalPos()), bounds.models.addLoop(n);
|
|
3845
3842
|
break;
|
|
3846
3843
|
case a.db.LINETYPE.BREAK_START:
|
|
3847
|
-
|
|
3844
|
+
adjustLoopHeightForWrap(D, e, conf.boxMargin, conf.boxMargin + conf.boxTextMargin, (e) => bounds.newLoop(e));
|
|
3848
3845
|
break;
|
|
3849
3846
|
case a.db.LINETYPE.BREAK_END:
|
|
3850
|
-
n =
|
|
3847
|
+
n = bounds.endLoop(), await svgDraw_default.drawLoop(m, n, "break", conf, e), bounds.bumpVerticalPos(n.stopy - bounds.getVerticalPos()), bounds.models.addLoop(n);
|
|
3851
3848
|
break;
|
|
3852
3849
|
default: try {
|
|
3853
|
-
i = e.msgModel, i.starty =
|
|
3854
|
-
let t = await
|
|
3855
|
-
|
|
3850
|
+
i = e.msgModel, i.starty = bounds.getVerticalPos(), i.sequenceIndex = k, i.sequenceVisible = a.db.showSequenceNumbers(), i.id = e.id, i.from = e.from, i.to = e.to;
|
|
3851
|
+
let t = await boundMessage(m, i);
|
|
3852
|
+
adjustCreatedDestroyedData(e, i, t, N, h, g, _), j.push({
|
|
3856
3853
|
messageModel: i,
|
|
3857
3854
|
lineStartY: t,
|
|
3858
3855
|
msg: e
|
|
3859
|
-
}),
|
|
3856
|
+
}), bounds.models.addMessage(i);
|
|
3860
3857
|
} catch (e) {
|
|
3861
|
-
|
|
3858
|
+
log.error("error while drawing message", e);
|
|
3862
3859
|
}
|
|
3863
3860
|
}
|
|
3864
3861
|
[
|
|
@@ -3890,84 +3887,84 @@ var Ke = /* @__PURE__ */ e(async function(n, r, i, a) {
|
|
|
3890
3887
|
a.db.LINETYPE.BIDIRECTIONAL_DOTTED
|
|
3891
3888
|
].includes(e.type) && (k += A), N++;
|
|
3892
3889
|
}
|
|
3893
|
-
|
|
3894
|
-
for (let e of j) await
|
|
3895
|
-
|
|
3896
|
-
for (let e of
|
|
3897
|
-
e.height =
|
|
3898
|
-
let t =
|
|
3899
|
-
e.startx = e.x - t, e.starty = e.y - t * .25, e.stopx = e.startx + e.width + 2 * t, e.stopy = e.starty + e.height + t * .75, e.stroke = "rgb(0,0,0, 0.5)",
|
|
3890
|
+
log.debug("createdActors", g), log.debug("destroyedActors", _), await drawActors(m, h, y, !1, r, a, E);
|
|
3891
|
+
for (let e of j) await drawMessage(m, e.messageModel, e.lineStartY, a, e.msg, r);
|
|
3892
|
+
conf.mirrorActors && await drawActors(m, h, y, !0, r, a, E), M.forEach((e) => svgDraw_default.drawBackgroundRect(m, e)), fixLifeLineHeights(m, h, y, conf);
|
|
3893
|
+
for (let e of bounds.models.boxes) {
|
|
3894
|
+
e.height = bounds.getVerticalPos() - e.y, bounds.insert(e.x, e.y, e.x + e.width, e.height);
|
|
3895
|
+
let t = conf.boxMargin * 2;
|
|
3896
|
+
e.startx = e.x - t, e.starty = e.y - t * .25, e.stopx = e.startx + e.width + 2 * t, e.stopy = e.starty + e.height + t * .75, e.stroke = "rgb(0,0,0, 0.5)", svgDraw_default.drawBox(m, e, conf);
|
|
3900
3897
|
}
|
|
3901
|
-
C &&
|
|
3902
|
-
let P =
|
|
3898
|
+
C && bounds.bumpVerticalPos(conf.boxMargin);
|
|
3899
|
+
let P = drawActorsPopup(m, h, y, p), { bounds: F } = bounds.getBounds();
|
|
3903
3900
|
F.startx === void 0 && (F.startx = 0), F.starty === void 0 && (F.starty = 0), F.stopx === void 0 && (F.stopx = 0), F.stopy === void 0 && (F.stopy = 0);
|
|
3904
3901
|
let I = F.stopy - F.starty;
|
|
3905
3902
|
I < P.maxHeight && (I = P.maxHeight);
|
|
3906
|
-
let L = I + 2 *
|
|
3907
|
-
|
|
3908
|
-
let
|
|
3909
|
-
|
|
3910
|
-
let
|
|
3911
|
-
S && m.append("text").text(S).attr("x", (F.stopx - F.startx) / 2 - 2 *
|
|
3912
|
-
let
|
|
3913
|
-
m.attr("viewBox", F.startx -
|
|
3903
|
+
let L = I + 2 * conf.diagramMarginY;
|
|
3904
|
+
conf.mirrorActors && (L = L - conf.boxMargin + conf.bottomMarginAdj);
|
|
3905
|
+
let R = F.stopx - F.startx;
|
|
3906
|
+
R < P.maxWidth && (R = P.maxWidth);
|
|
3907
|
+
let z = R + 2 * conf.diagramMarginX;
|
|
3908
|
+
S && m.append("text").text(S).attr("x", (F.stopx - F.startx) / 2 - 2 * conf.diagramMarginX).attr("y", -25), configureSvgSize(m, L, z, conf.useMaxWidth);
|
|
3909
|
+
let B = S ? 40 : 0, V = h.size && l === "neo" ? 30 : 0;
|
|
3910
|
+
m.attr("viewBox", F.startx - conf.diagramMarginX + " -" + (conf.diagramMarginY + B) + " " + z + " " + (L + B + V)), log.debug("models:", bounds.models);
|
|
3914
3911
|
}, "draw");
|
|
3915
|
-
async function
|
|
3912
|
+
async function getMaxMessageWidthPerActor(e, n, i) {
|
|
3916
3913
|
let o = {};
|
|
3917
3914
|
for (let t of n) if (e.get(t.to) && e.get(t.from)) {
|
|
3918
3915
|
let n = e.get(t.to);
|
|
3919
3916
|
if (t.placement === i.db.PLACEMENT.LEFTOF && !n.prevActor || t.placement === i.db.PLACEMENT.RIGHTOF && !n.nextActor) continue;
|
|
3920
|
-
let s = t.placement !== void 0, c = !s, l = s ?
|
|
3921
|
-
c && t.from === n.nextActor ? o[t.to] =
|
|
3917
|
+
let s = t.placement !== void 0, c = !s, l = s ? noteFont(conf) : messageFont(conf), d = t.wrap ? utils_default.wrapLabel(t.message, conf.width - 2 * conf.wrapPadding, l) : t.message, f = (hasKatex(d) ? await calculateMathMLDimensions(t.message, getConfig2()) : utils_default.calculateTextDimensions(d, l)).width + 2 * conf.wrapPadding;
|
|
3918
|
+
c && t.from === n.nextActor ? o[t.to] = common_default.getMax(o[t.to] || 0, f) : c && t.from === n.prevActor ? o[t.from] = common_default.getMax(o[t.from] || 0, f) : c && t.from === t.to ? (o[t.from] = common_default.getMax(o[t.from] || 0, f / 2), o[t.to] = common_default.getMax(o[t.to] || 0, f / 2)) : t.placement === i.db.PLACEMENT.RIGHTOF ? o[t.from] = common_default.getMax(o[t.from] || 0, f) : t.placement === i.db.PLACEMENT.LEFTOF ? o[n.prevActor] = common_default.getMax(o[n.prevActor] || 0, f) : t.placement === i.db.PLACEMENT.OVER && (n.prevActor && (o[n.prevActor] = common_default.getMax(o[n.prevActor] || 0, f / 2)), n.nextActor && (o[t.from] = common_default.getMax(o[t.from] || 0, f / 2)));
|
|
3922
3919
|
}
|
|
3923
|
-
return
|
|
3920
|
+
return log.debug("maxMessageWidthPerActor:", o), o;
|
|
3924
3921
|
}
|
|
3925
|
-
|
|
3926
|
-
var
|
|
3927
|
-
let t = 0, n =
|
|
3922
|
+
__name(getMaxMessageWidthPerActor, "getMaxMessageWidthPerActor");
|
|
3923
|
+
var getRequiredPopupWidth = /* @__PURE__ */ __name(function(e) {
|
|
3924
|
+
let t = 0, n = actorFont(conf);
|
|
3928
3925
|
for (let r in e.links) {
|
|
3929
|
-
let e =
|
|
3926
|
+
let e = utils_default.calculateTextDimensions(r, n).width + 2 * conf.wrapPadding + 2 * conf.boxMargin;
|
|
3930
3927
|
t < e && (t = e);
|
|
3931
3928
|
}
|
|
3932
3929
|
return t;
|
|
3933
3930
|
}, "getRequiredPopupWidth");
|
|
3934
|
-
async function
|
|
3931
|
+
async function calculateActorMargins(e, t, n) {
|
|
3935
3932
|
let i = 0;
|
|
3936
3933
|
for (let t of e.keys()) {
|
|
3937
3934
|
let n = e.get(t);
|
|
3938
|
-
n.wrap && (n.description =
|
|
3939
|
-
let o =
|
|
3940
|
-
n.width = n.wrap ?
|
|
3935
|
+
n.wrap && (n.description = utils_default.wrapLabel(n.description, conf.width - 2 * conf.wrapPadding, actorFont(conf)));
|
|
3936
|
+
let o = hasKatex(n.description) ? await calculateMathMLDimensions(n.description, getConfig2()) : utils_default.calculateTextDimensions(n.description, actorFont(conf));
|
|
3937
|
+
n.width = n.wrap ? conf.width : common_default.getMax(conf.width, o.width + 2 * conf.wrapPadding), n.height = n.wrap ? common_default.getMax(o.height, conf.height) : conf.height, i = common_default.getMax(i, n.height);
|
|
3941
3938
|
}
|
|
3942
3939
|
for (let n in t) {
|
|
3943
3940
|
let r = e.get(n);
|
|
3944
3941
|
if (!r) continue;
|
|
3945
3942
|
let i = e.get(r.nextActor);
|
|
3946
3943
|
if (!i) {
|
|
3947
|
-
let e = t[n] +
|
|
3948
|
-
r.margin =
|
|
3944
|
+
let e = t[n] + conf.actorMargin - r.width / 2;
|
|
3945
|
+
r.margin = common_default.getMax(e, conf.actorMargin);
|
|
3949
3946
|
continue;
|
|
3950
3947
|
}
|
|
3951
|
-
let o = t[n] +
|
|
3952
|
-
r.margin =
|
|
3948
|
+
let o = t[n] + conf.actorMargin - r.width / 2 - i.width / 2;
|
|
3949
|
+
r.margin = common_default.getMax(o, conf.actorMargin);
|
|
3953
3950
|
}
|
|
3954
3951
|
let o = 0;
|
|
3955
3952
|
return n.forEach((t) => {
|
|
3956
|
-
let n =
|
|
3957
|
-
r += i, r -= 2 *
|
|
3958
|
-
let s =
|
|
3959
|
-
o =
|
|
3960
|
-
let c =
|
|
3961
|
-
if (t.margin =
|
|
3953
|
+
let n = messageFont(conf), r = t.actorKeys.reduce((t, n) => t += e.get(n).width + (e.get(n).margin || 0), 0), i = conf.boxMargin * 8;
|
|
3954
|
+
r += i, r -= 2 * conf.boxTextMargin, t.wrap && (t.name = utils_default.wrapLabel(t.name, r - 2 * conf.wrapPadding, n));
|
|
3955
|
+
let s = utils_default.calculateTextDimensions(t.name, n);
|
|
3956
|
+
o = common_default.getMax(s.height, o);
|
|
3957
|
+
let c = common_default.getMax(r, s.width + 2 * conf.wrapPadding);
|
|
3958
|
+
if (t.margin = conf.boxTextMargin, r < c) {
|
|
3962
3959
|
let e = (c - r) / 2;
|
|
3963
3960
|
t.margin += e;
|
|
3964
3961
|
}
|
|
3965
|
-
}), n.forEach((e) => e.textMaxHeight = o),
|
|
3962
|
+
}), n.forEach((e) => e.textMaxHeight = o), common_default.getMax(i, conf.height);
|
|
3966
3963
|
}
|
|
3967
|
-
|
|
3968
|
-
var
|
|
3969
|
-
let o = n.get(e.from), s = n.get(e.to), c = o.x, l = s.x, d = e.wrap && e.message, f =
|
|
3970
|
-
width: d ?
|
|
3964
|
+
__name(calculateActorMargins, "calculateActorMargins");
|
|
3965
|
+
var buildNoteModel = /* @__PURE__ */ __name(async function(e, n, i) {
|
|
3966
|
+
let o = n.get(e.from), s = n.get(e.to), c = o.x, l = s.x, d = e.wrap && e.message, f = hasKatex(e.message) ? await calculateMathMLDimensions(e.message, getConfig2()) : utils_default.calculateTextDimensions(d ? utils_default.wrapLabel(e.message, conf.width, noteFont(conf)) : e.message, noteFont(conf)), m = {
|
|
3967
|
+
width: d ? conf.width : common_default.getMax(conf.width, f.width + 2 * conf.noteMargin),
|
|
3971
3968
|
height: 0,
|
|
3972
3969
|
startx: o.x,
|
|
3973
3970
|
stopx: 0,
|
|
@@ -3975,18 +3972,18 @@ var Xe = /* @__PURE__ */ e(async function(e, n, i) {
|
|
|
3975
3972
|
stopy: 0,
|
|
3976
3973
|
message: e.message
|
|
3977
3974
|
};
|
|
3978
|
-
return e.placement === i.db.PLACEMENT.RIGHTOF ? (m.width = d ?
|
|
3979
|
-
}, "buildNoteModel"),
|
|
3975
|
+
return e.placement === i.db.PLACEMENT.RIGHTOF ? (m.width = d ? common_default.getMax(conf.width, f.width) : common_default.getMax(o.width / 2 + s.width / 2, f.width + 2 * conf.noteMargin), m.startx = c + (o.width + conf.actorMargin) / 2) : e.placement === i.db.PLACEMENT.LEFTOF ? (m.width = d ? common_default.getMax(conf.width, f.width + 2 * conf.noteMargin) : common_default.getMax(o.width / 2 + s.width / 2, f.width + 2 * conf.noteMargin), m.startx = c - m.width + (o.width - conf.actorMargin) / 2) : e.to === e.from ? (f = utils_default.calculateTextDimensions(d ? utils_default.wrapLabel(e.message, common_default.getMax(conf.width, o.width), noteFont(conf)) : e.message, noteFont(conf)), m.width = d ? common_default.getMax(conf.width, o.width) : common_default.getMax(o.width, conf.width, f.width + 2 * conf.noteMargin), m.startx = c + (o.width - m.width) / 2) : (m.width = Math.abs(c + o.width / 2 - (l + s.width / 2)) + conf.actorMargin, m.startx = c < l ? c + o.width / 2 - conf.actorMargin / 2 : l + s.width / 2 - conf.actorMargin / 2), d && (m.message = utils_default.wrapLabel(e.message, m.width - 2 * conf.wrapPadding, noteFont(conf))), log.debug(`NM:[${m.startx},${m.stopx},${m.starty},${m.stopy}:${m.width},${m.height}=${e.message}]`), m;
|
|
3976
|
+
}, "buildNoteModel"), CENTRAL_CONNECTION_BASE_OFFSET = 4, CENTRAL_CONNECTION_BIDIRECTIONAL_OFFSET = 6, hasCentralConnection = /* @__PURE__ */ __name(function(e, t) {
|
|
3980
3977
|
let { CENTRAL_CONNECTION: n, CENTRAL_CONNECTION_REVERSE: r, CENTRAL_CONNECTION_DUAL: i } = t.db.LINETYPE;
|
|
3981
3978
|
return [
|
|
3982
3979
|
n,
|
|
3983
3980
|
r,
|
|
3984
3981
|
i
|
|
3985
3982
|
].includes(e.centralConnection);
|
|
3986
|
-
}, "hasCentralConnection"),
|
|
3983
|
+
}, "hasCentralConnection"), calculateCentralConnectionOffset = /* @__PURE__ */ __name(function(e, t, n) {
|
|
3987
3984
|
let { CENTRAL_CONNECTION_REVERSE: r, CENTRAL_CONNECTION_DUAL: i, BIDIRECTIONAL_SOLID: a, BIDIRECTIONAL_DOTTED: o } = t.db.LINETYPE, s = 0;
|
|
3988
|
-
return (e.centralConnection === r || e.centralConnection === i) && (s +=
|
|
3989
|
-
}, "calculateCentralConnectionOffset"),
|
|
3985
|
+
return (e.centralConnection === r || e.centralConnection === i) && (s += CENTRAL_CONNECTION_BASE_OFFSET), (e.centralConnection === r || e.centralConnection === i) && (e.type === a || e.type === o) && (s += n ? 0 : -CENTRAL_CONNECTION_BIDIRECTIONAL_OFFSET), s;
|
|
3986
|
+
}, "calculateCentralConnectionOffset"), isReverseArrowType = /* @__PURE__ */ __name(function(e, t) {
|
|
3990
3987
|
let { SOLID_ARROW_TOP_REVERSE: n, SOLID_ARROW_TOP_REVERSE_DOTTED: r, SOLID_ARROW_BOTTOM_REVERSE: i, SOLID_ARROW_BOTTOM_REVERSE_DOTTED: a, STICK_ARROW_TOP_REVERSE: o, STICK_ARROW_TOP_REVERSE_DOTTED: s, STICK_ARROW_BOTTOM_REVERSE: c, STICK_ARROW_BOTTOM_REVERSE_DOTTED: l } = t.db.LINETYPE;
|
|
3991
3988
|
return [
|
|
3992
3989
|
n,
|
|
@@ -3998,11 +3995,11 @@ var Xe = /* @__PURE__ */ e(async function(e, n, i) {
|
|
|
3998
3995
|
c,
|
|
3999
3996
|
l
|
|
4000
3997
|
].includes(e.type);
|
|
4001
|
-
}, "isReverseArrowType"),
|
|
3998
|
+
}, "isReverseArrowType"), isBidirectionalArrowType = /* @__PURE__ */ __name(function(e, t) {
|
|
4002
3999
|
let { BIDIRECTIONAL_SOLID: n, BIDIRECTIONAL_DOTTED: r } = t.db.LINETYPE;
|
|
4003
4000
|
return [n, r].includes(e.type);
|
|
4004
|
-
}, "isBidirectionalArrowType"),
|
|
4005
|
-
let { look: i } =
|
|
4001
|
+
}, "isBidirectionalArrowType"), buildMessageModel = /* @__PURE__ */ __name(function(t, n, r) {
|
|
4002
|
+
let { look: i } = getConfig2();
|
|
4006
4003
|
if (![
|
|
4007
4004
|
r.db.LINETYPE.SOLID_OPEN,
|
|
4008
4005
|
r.db.LINETYPE.DOTTED_OPEN,
|
|
@@ -4031,10 +4028,10 @@ var Xe = /* @__PURE__ */ e(async function(e, n, i) {
|
|
|
4031
4028
|
r.db.LINETYPE.BIDIRECTIONAL_SOLID,
|
|
4032
4029
|
r.db.LINETYPE.BIDIRECTIONAL_DOTTED
|
|
4033
4030
|
].includes(t.type)) return {};
|
|
4034
|
-
let [o, s] =
|
|
4035
|
-
i === "neo" && (t.type !== r.db.LINETYPE.SOLID_OPEN && (p += d ? -3 : 3), (t.type === r.db.LINETYPE.BIDIRECTIONAL_SOLID || t.type === r.db.LINETYPE.BIDIRECTIONAL_DOTTED) && (f += d ? 3 : -3)), f +=
|
|
4036
|
-
let m = Math.abs(c - l) > 2, h = /* @__PURE__ */
|
|
4037
|
-
t.from === t.to ? p = f : (t.activate && !m && (p += h(
|
|
4031
|
+
let [o, s] = activationBounds(t.from, n), [c, l] = activationBounds(t.to, n), d = o <= c, f = d ? s : o, p = d ? c : l;
|
|
4032
|
+
i === "neo" && (t.type !== r.db.LINETYPE.SOLID_OPEN && (p += d ? -3 : 3), (t.type === r.db.LINETYPE.BIDIRECTIONAL_SOLID || t.type === r.db.LINETYPE.BIDIRECTIONAL_DOTTED) && (f += d ? 3 : -3)), f += calculateCentralConnectionOffset(t, r, d);
|
|
4033
|
+
let m = Math.abs(c - l) > 2, h = /* @__PURE__ */ __name((e) => d ? -e : e, "adjustValue");
|
|
4034
|
+
t.from === t.to ? p = f : (t.activate && !m && (p += h(conf.activationWidth / 2 - 1)), [
|
|
4038
4035
|
r.db.LINETYPE.SOLID_OPEN,
|
|
4039
4036
|
r.db.LINETYPE.DOTTED_OPEN,
|
|
4040
4037
|
r.db.LINETYPE.STICK_TOP,
|
|
@@ -4063,10 +4060,10 @@ var Xe = /* @__PURE__ */ e(async function(e, n, i) {
|
|
|
4063
4060
|
c,
|
|
4064
4061
|
l
|
|
4065
4062
|
], _ = Math.abs(f - p);
|
|
4066
|
-
t.wrap && t.message && (t.message =
|
|
4067
|
-
let v =
|
|
4063
|
+
t.wrap && t.message && (t.message = utils_default.wrapLabel(t.message, common_default.getMax(_ + 2 * conf.wrapPadding, conf.width), messageFont(conf)));
|
|
4064
|
+
let v = utils_default.calculateTextDimensions(t.message, messageFont(conf));
|
|
4068
4065
|
return {
|
|
4069
|
-
width:
|
|
4066
|
+
width: common_default.getMax(t.wrap ? 0 : v.width + 2 * conf.wrapPadding, _ + 2 * conf.wrapPadding, conf.width),
|
|
4070
4067
|
height: 0,
|
|
4071
4068
|
startx: f,
|
|
4072
4069
|
stopx: p,
|
|
@@ -4078,7 +4075,7 @@ var Xe = /* @__PURE__ */ e(async function(e, n, i) {
|
|
|
4078
4075
|
fromBounds: Math.min.apply(null, g),
|
|
4079
4076
|
toBounds: Math.max.apply(null, g)
|
|
4080
4077
|
};
|
|
4081
|
-
}, "buildMessageModel"),
|
|
4078
|
+
}, "buildMessageModel"), calculateLoopBounds = /* @__PURE__ */ __name(async function(e, n, r, i) {
|
|
4082
4079
|
let o = {}, s = [], c, l, u;
|
|
4083
4080
|
for (let t of e) {
|
|
4084
4081
|
switch (t.type) {
|
|
@@ -4112,48 +4109,47 @@ var Xe = /* @__PURE__ */ e(async function(e, n, i) {
|
|
|
4112
4109
|
break;
|
|
4113
4110
|
case i.db.LINETYPE.ACTIVE_START:
|
|
4114
4111
|
{
|
|
4115
|
-
let e = n.get(t.from ? t.from : t.to.actor), r =
|
|
4112
|
+
let e = n.get(t.from ? t.from : t.to.actor), r = actorActivations(t.from ? t.from : t.to.actor).length, i = e.x + e.width / 2 + (r - 1) * conf.activationWidth / 2, a = {
|
|
4116
4113
|
startx: i,
|
|
4117
|
-
stopx: i +
|
|
4114
|
+
stopx: i + conf.activationWidth,
|
|
4118
4115
|
actor: t.from,
|
|
4119
4116
|
enabled: !0
|
|
4120
4117
|
};
|
|
4121
|
-
|
|
4118
|
+
bounds.activations.push(a);
|
|
4122
4119
|
}
|
|
4123
4120
|
break;
|
|
4124
4121
|
case i.db.LINETYPE.ACTIVE_END:
|
|
4125
4122
|
{
|
|
4126
|
-
let e =
|
|
4127
|
-
|
|
4123
|
+
let e = bounds.activations.map((e) => e.actor).lastIndexOf(t.from);
|
|
4124
|
+
bounds.activations.splice(e, 1).splice(0, 1);
|
|
4128
4125
|
}
|
|
4129
4126
|
break;
|
|
4130
4127
|
}
|
|
4131
|
-
t.placement === void 0 ? (u =
|
|
4128
|
+
t.placement === void 0 ? (u = buildMessageModel(t, n, i), t.msgModel = u, u.startx && u.stopx && s.length > 0 && s.forEach((e) => {
|
|
4132
4129
|
if (c = e, u.startx === u.stopx) {
|
|
4133
4130
|
let e = n.get(t.from), r = n.get(t.to);
|
|
4134
|
-
c.from =
|
|
4135
|
-
} else c.from =
|
|
4136
|
-
})) : (l = await
|
|
4137
|
-
c = e, c.from =
|
|
4131
|
+
c.from = common_default.getMin(e.x - u.width / 2, e.x - e.width / 2, c.from), c.to = common_default.getMax(r.x + u.width / 2, r.x + e.width / 2, c.to), c.width = common_default.getMax(c.width, Math.abs(c.to - c.from)) - conf.labelBoxWidth;
|
|
4132
|
+
} else c.from = common_default.getMin(u.startx, c.from), c.to = common_default.getMax(u.stopx, c.to), c.width = common_default.getMax(c.width, u.width) - conf.labelBoxWidth;
|
|
4133
|
+
})) : (l = await buildNoteModel(t, n, i), t.noteModel = l, s.forEach((e) => {
|
|
4134
|
+
c = e, c.from = common_default.getMin(c.from, l.startx), c.to = common_default.getMax(c.to, l.startx + l.width), c.width = common_default.getMax(c.width, Math.abs(c.from - c.to)) - conf.labelBoxWidth;
|
|
4138
4135
|
}));
|
|
4139
4136
|
}
|
|
4140
|
-
return
|
|
4141
|
-
}, "calculateLoopBounds"),
|
|
4142
|
-
parser:
|
|
4137
|
+
return bounds.activations = [], log.debug("Loop type widths:", o), o;
|
|
4138
|
+
}, "calculateLoopBounds"), diagram = {
|
|
4139
|
+
parser: sequenceDiagram_default,
|
|
4143
4140
|
get db() {
|
|
4144
|
-
return new
|
|
4141
|
+
return new SequenceDB();
|
|
4145
4142
|
},
|
|
4146
4143
|
renderer: {
|
|
4147
|
-
bounds
|
|
4148
|
-
drawActors
|
|
4149
|
-
drawActorsPopup
|
|
4150
|
-
setConf
|
|
4151
|
-
draw
|
|
4144
|
+
bounds,
|
|
4145
|
+
drawActors,
|
|
4146
|
+
drawActorsPopup,
|
|
4147
|
+
setConf,
|
|
4148
|
+
draw
|
|
4152
4149
|
},
|
|
4153
|
-
styles:
|
|
4154
|
-
init: /* @__PURE__ */
|
|
4155
|
-
e.sequence ||= {}, e.wrap && (e.sequence.wrap = e.wrap,
|
|
4150
|
+
styles: styles_default,
|
|
4151
|
+
init: /* @__PURE__ */ __name((e) => {
|
|
4152
|
+
e.sequence ||= {}, e.wrap && (e.sequence.wrap = e.wrap, setConfig2({ sequence: { wrap: e.wrap } }));
|
|
4156
4153
|
}, "init")
|
|
4157
4154
|
};
|
|
4158
|
-
|
|
4159
|
-
export { at as diagram };
|
|
4155
|
+
export { diagram };
|