@loopstack/loopstack-studio 0.25.0 → 0.25.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/_rolldown/runtime.js +20 -0
- package/dist/api/auth.js +4 -2
- package/dist/api/client.js +9 -7
- package/dist/api/config.js +4 -2
- package/dist/api/dashboard.js +4 -2
- package/dist/api/documents.js +4 -2
- package/dist/api/index.js +21 -19
- package/dist/api/processor.js +4 -2
- package/dist/api/secrets.js +4 -2
- package/dist/api/workflows.js +4 -2
- package/dist/api/workspaces.js +4 -2
- package/dist/app/EnvironmentEmbedRoot.js +24 -31
- package/dist/components/ai-elements/code-block.js +53 -71
- package/dist/components/ai-elements/message.js +41 -82
- package/dist/components/ai-elements/prompt-input.js +162 -253
- package/dist/components/ai-elements/reasoning.js +78 -116
- package/dist/components/ai-elements/shimmer.js +23 -35
- package/dist/components/ai-elements/sources.js +29 -58
- package/dist/components/data-table/ConfirmDialog.js +14 -30
- package/dist/components/data-table/DataList.js +138 -198
- package/dist/components/data-table/DataTable.js +168 -234
- package/dist/components/data-table/DataTableBatchAction.js +18 -27
- package/dist/components/data-table/DataTableFilters.js +53 -78
- package/dist/components/data-table/DataTablePagination.js +72 -104
- package/dist/components/data-table/DataTableToolbar.js +53 -65
- package/dist/components/dynamic-form/ArrayController.js +85 -103
- package/dist/components/dynamic-form/CodeContent.js +28 -36
- package/dist/components/dynamic-form/Form.js +43 -56
- package/dist/components/dynamic-form/FormBody.js +12 -10
- package/dist/components/dynamic-form/FormElement.js +31 -41
- package/dist/components/dynamic-form/FormElementHeader.js +12 -20
- package/dist/components/dynamic-form/InputController.js +36 -38
- package/dist/components/dynamic-form/MarkdownContent.js +53 -74
- package/dist/components/dynamic-form/MermaidDiagram.js +22 -24
- package/dist/components/dynamic-form/ObjectController.js +24 -32
- package/dist/components/dynamic-form/fields/BaseFieldWrapper.js +35 -47
- package/dist/components/dynamic-form/fields/CheckboxField.js +39 -48
- package/dist/components/dynamic-form/fields/CodeViewField.js +42 -50
- package/dist/components/dynamic-form/fields/InputField.js +62 -90
- package/dist/components/dynamic-form/fields/MarkdownViewField.js +16 -19
- package/dist/components/dynamic-form/fields/RadioField.js +46 -62
- package/dist/components/dynamic-form/fields/SelectField.js +40 -58
- package/dist/components/dynamic-form/fields/SliderField.js +94 -100
- package/dist/components/dynamic-form/fields/SwitchField.js +42 -61
- package/dist/components/dynamic-form/fields/TextareaField.js +53 -72
- package/dist/components/dynamic-form/fields/utils/text-validation-utils.js +4 -2
- package/dist/components/dynamic-form/hooks/useArrayDefaultValue.js +6 -5
- package/dist/components/dynamic-form/hooks/useFieldConfig.js +19 -20
- package/dist/components/dynamic-form/hooks/useMergeParentKey.js +4 -2
- package/dist/components/dynamic-form/hooks/useSortPropertyNames.js +4 -2
- package/dist/components/feedback/ErrorAlert.js +11 -17
- package/dist/components/feedback/ErrorBoundary.js +16 -14
- package/dist/components/feedback/ErrorSnackbar.js +13 -30
- package/dist/components/feedback/LoadingCentered.js +15 -28
- package/dist/components/feedback/Snackbar.js +43 -44
- package/dist/components/feedback/index.js +5 -5
- package/dist/components/index.js +47 -47
- package/dist/components/layout/MainLayout.js +17 -25
- package/dist/components/layout/StudioSidebar.js +132 -202
- package/dist/components/lists/CustomListView.js +49 -74
- package/dist/components/lists/ListView.js +66 -102
- package/dist/components/loopstack-elements/link.js +65 -104
- package/dist/components/loopstack-elements/tool.js +70 -142
- package/dist/components/messages/CompletionMessagePaper.js +53 -85
- package/dist/components/page/PageBreadcrumbs.js +64 -83
- package/dist/components/ui/DiscordLogo.js +16 -22
- package/dist/components/ui/GoogleLogo.js +40 -44
- package/dist/components/ui/accordion.js +31 -52
- package/dist/components/ui/alert-dialog.js +59 -109
- package/dist/components/ui/alert.js +22 -36
- package/dist/components/ui/avatar.js +21 -35
- package/dist/components/ui/badge.js +13 -17
- package/dist/components/ui/breadcrumb.js +46 -82
- package/dist/components/ui/button-group.js +5 -5
- package/dist/components/ui/button.js +17 -21
- package/dist/components/ui/card.js +40 -74
- package/dist/components/ui/checkbox.js +17 -23
- package/dist/components/ui/collapsible.js +17 -25
- package/dist/components/ui/command.js +1 -2
- package/dist/components/ui/context-menu.js +32 -52
- package/dist/components/ui/dialog.js +62 -107
- package/dist/components/ui/drawer.js +54 -99
- package/dist/components/ui/dropdown-menu.js +91 -159
- package/dist/components/ui/hover-card.js +1 -2
- package/dist/components/ui/input-group.js +36 -56
- package/dist/components/ui/input.js +11 -15
- package/dist/components/ui/label.js +11 -15
- package/dist/components/ui/popover.js +25 -38
- package/dist/components/ui/radio-group.js +22 -33
- package/dist/components/ui/scroll-area.js +28 -43
- package/dist/components/ui/select.js +73 -134
- package/dist/components/ui/separator.js +13 -17
- package/dist/components/ui/sheet.js +60 -105
- package/dist/components/ui/sidebar.js +269 -451
- package/dist/components/ui/skeleton.js +10 -14
- package/dist/components/ui/slider.js +17 -15
- package/dist/components/ui/switch.js +15 -21
- package/dist/components/ui/table.js +46 -85
- package/dist/components/ui/tabs.js +26 -45
- package/dist/components/ui/textarea.js +10 -14
- package/dist/components/ui/tooltip.js +26 -41
- package/dist/components/ui-widgets/UiActions.js +30 -37
- package/dist/components/ui-widgets/UiWidget.js +34 -46
- package/dist/components/ui-widgets/widgets/AiPromptInput.js +28 -42
- package/dist/components/ui-widgets/widgets/ButtonFullWidth.js +16 -21
- package/dist/components/ui-widgets/widgets/SandboxRun.js +19 -26
- package/dist/components/ui-widgets/widgets/SubmitButton.js +15 -20
- package/dist/events/api-client-events.js +4 -2
- package/dist/events/sse-client-events.js +4 -2
- package/dist/features/code-explorer/CodeExplorer.js +1 -2
- package/dist/features/code-explorer/components/CodeExplorerTree.js +2 -2
- package/dist/features/code-explorer/components/CodeExplorerTreeNode.js +31 -29
- package/dist/features/code-explorer/components/FileContentViewer.js +108 -148
- package/dist/features/code-explorer/components/FileTabsBar.js +1 -2
- package/dist/features/code-explorer/components/FileTabsBarBase.js +134 -169
- package/dist/features/code-explorer/index.js +1 -1
- package/dist/features/code-explorer/providers/CodeExplorerProvider.js +4 -4
- package/dist/features/code-explorer/utils/fileIcons.js +41 -39
- package/dist/features/dashboard/Dashboard.js +79 -121
- package/dist/features/dashboard/RunItem.js +50 -68
- package/dist/features/dashboard/RunList.js +17 -28
- package/dist/features/debug/components/ConfigFlowViewer.js +49 -67
- package/dist/features/debug/components/WorkflowDebugHeader.js +30 -46
- package/dist/features/debug/components/WorkflowDebugLegend.js +56 -68
- package/dist/features/debug/components/WorkflowFlowViewer.js +76 -96
- package/dist/features/debug/components/workflow-flow/StateNode.js +73 -102
- package/dist/features/debug/components/workflow-flow/WorkflowGraph.js +35 -40
- package/dist/features/debug/components/workflow-flow/WorkflowTransitionEdge.js +61 -94
- package/dist/features/debug/index.js +3 -3
- package/dist/features/debug/lib/edge-paths.js +33 -31
- package/dist/features/debug/lib/flow-utils.js +147 -145
- package/dist/features/documents/DocumentRenderer.js +73 -77
- package/dist/features/documents/components/DocumentItem.js +21 -24
- package/dist/features/documents/components/DocumentList.js +39 -45
- package/dist/features/documents/components/DocumentMetadataPills.js +44 -59
- package/dist/features/documents/document-details/DocumentDetails.js +298 -413
- package/dist/features/documents/document-details/PromptDetails.js +105 -142
- package/dist/features/documents/index.js +4 -4
- package/dist/features/documents/renderers/AiMessage.js +39 -48
- package/dist/features/documents/renderers/AiMessageContent.js +108 -164
- package/dist/features/documents/renderers/ChoicesRenderer.js +77 -89
- package/dist/features/documents/renderers/ClaudeMessage.js +74 -91
- package/dist/features/documents/renderers/ConfirmPromptRenderer.js +44 -53
- package/dist/features/documents/renderers/DocumentDebugRenderer.js +26 -30
- package/dist/features/documents/renderers/DocumentFormRenderer.js +69 -85
- package/dist/features/documents/renderers/DocumentMessageRenderer.js +10 -9
- package/dist/features/documents/renderers/ErrorMessageRenderer.js +11 -13
- package/dist/features/documents/renderers/LinkMessageRenderer.js +15 -14
- package/dist/features/documents/renderers/MarkdownMessageRenderer.js +8 -10
- package/dist/features/documents/renderers/PlainMessageRenderer.js +7 -9
- package/dist/features/documents/renderers/SecretInputRenderer.js +37 -35
- package/dist/features/documents/renderers/TextPromptRenderer.js +45 -54
- package/dist/features/documents/renderers/useDocumentTransition.js +9 -7
- package/dist/features/health/LocalHealthCheck.js +54 -53
- package/dist/features/health/index.js +1 -1
- package/dist/features/oauth/OAuthCallbackPage.js +2 -2
- package/dist/features/oauth/OAuthPromptRenderer.js +148 -197
- package/dist/features/oauth/index.js +2 -2
- package/dist/features/oauth/useOAuthPopup.js +52 -71
- package/dist/features/runs/Runs.js +145 -187
- package/dist/features/workbench/Workbench.js +72 -98
- package/dist/features/workbench/WorkflowItem.js +49 -68
- package/dist/features/workbench/WorkflowList.js +51 -66
- package/dist/features/workbench/components/NewRunDialog.js +212 -309
- package/dist/features/workbench/components/RemoteFileTabsBar.js +18 -17
- package/dist/features/workbench/components/RemoteFileTree.js +54 -85
- package/dist/features/workbench/components/WorkbenchFilesPanel.js +52 -63
- package/dist/features/workbench/components/WorkbenchFloatingPanel.js +34 -51
- package/dist/features/workbench/components/WorkbenchFlowPanel.js +35 -44
- package/dist/features/workbench/components/WorkbenchIconSidebar.js +50 -68
- package/dist/features/workbench/components/WorkbenchPreviewPanel.js +51 -49
- package/dist/features/workbench/components/WorkbenchSecretsPanel.js +143 -172
- package/dist/features/workbench/components/WorkbenchSettingsModal.js +49 -60
- package/dist/features/workbench/components/WorkflowForms.js +17 -23
- package/dist/features/workbench/components/WorkflowHistoryItem.js +96 -122
- package/dist/features/workbench/components/WorkflowHistoryList.js +31 -54
- package/dist/features/workbench/components/buttons/WorkflowButtons.js +70 -99
- package/dist/features/workbench/hooks/useAutoScrollBottom.js +21 -25
- package/dist/features/workbench/hooks/useScrollToListItem.js +20 -21
- package/dist/features/workbench/hooks/useWorkflowData.js +31 -44
- package/dist/features/workbench/hooks/useWorkflowListState.js +13 -12
- package/dist/features/workbench/index.js +7 -7
- package/dist/features/workbench/providers/RemoteFileExplorerProvider.js +123 -138
- package/dist/features/workbench/providers/ScrollProvider.js +15 -19
- package/dist/features/workbench/providers/WorkbenchLayoutProvider.js +76 -75
- package/dist/features/workspaces/Workspaces.js +161 -226
- package/dist/features/workspaces/components/CreateWorkspace.js +137 -194
- package/dist/features/workspaces/components/EnvironmentSlotSelector.js +27 -25
- package/dist/features/workspaces/components/ExecutionTimeline.js +143 -185
- package/dist/features/workspaces/components/NewWorkflowRunDialog.js +18 -26
- package/dist/features/workspaces/components/WorkflowRunForm.js +85 -133
- package/dist/features/workspaces/components/WorkspaceHomePage.js +59 -80
- package/dist/features/workspaces/components/workflow-form/ArgumentsView.js +52 -69
- package/dist/features/workspaces/components/workflow-form/HeaderSection.js +27 -41
- package/dist/features/workspaces/components/workflow-form/SelectionView.js +64 -103
- package/dist/features/workspaces/index.js +3 -3
- package/dist/frontend/studio/node_modules/lodash/_Symbol.js +9 -0
- package/dist/frontend/studio/node_modules/lodash/_baseGetTag.js +15 -0
- package/dist/frontend/studio/node_modules/lodash/_baseTrim.js +13 -0
- package/dist/frontend/studio/node_modules/lodash/_freeGlobal.js +8 -0
- package/dist/frontend/studio/node_modules/lodash/_getRawTag.js +19 -0
- package/dist/frontend/studio/node_modules/lodash/_objectToString.js +12 -0
- package/dist/frontend/studio/node_modules/lodash/_root.js +10 -0
- package/dist/frontend/studio/node_modules/lodash/_trimmedEndIndex.js +13 -0
- package/dist/{node_modules → frontend/studio/node_modules}/lodash/debounce.js +10 -8
- package/dist/frontend/studio/node_modules/lodash/isObject.js +12 -0
- package/dist/frontend/studio/node_modules/lodash/isObjectLike.js +11 -0
- package/dist/frontend/studio/node_modules/lodash/isSymbol.js +14 -0
- package/dist/frontend/studio/node_modules/lodash/now.js +12 -0
- package/dist/frontend/studio/node_modules/lodash/toNumber.js +24 -0
- package/dist/hooks/index.js +6 -6
- package/dist/hooks/query-keys.js +33 -31
- package/dist/hooks/use-mobile.js +12 -11
- package/dist/hooks/useApi.js +16 -14
- package/dist/hooks/useAuth.js +38 -53
- package/dist/hooks/useConfig.js +26 -37
- package/dist/hooks/useDashboard.js +12 -15
- package/dist/hooks/useDebounce.js +12 -11
- package/dist/hooks/useDocuments.js +23 -35
- package/dist/hooks/useFiles.js +1 -2
- package/dist/hooks/useProcessor.js +14 -17
- package/dist/hooks/useSecrets.js +45 -64
- package/dist/hooks/useWorkflows.js +109 -161
- package/dist/hooks/useWorkspaces.js +83 -123
- package/dist/index.d.ts +0 -1304
- package/dist/index.js +80 -80
- package/dist/lib/requireParam.js +4 -2
- package/dist/lib/utils.js +7 -5
- package/dist/loopstack-studio.css +1 -1
- package/dist/node_modules/@braintree/sanitize-url/dist/constants.js +6 -4
- package/dist/node_modules/@braintree/sanitize-url/dist/index.js +8 -6
- package/dist/node_modules/@chevrotain/gast/lib/src/helpers.js +19 -20
- package/dist/node_modules/@chevrotain/gast/lib/src/model.js +87 -88
- package/dist/node_modules/@chevrotain/gast/lib/src/visitor.js +16 -13
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/api.js +2 -2
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/base-regexp-visitor.js +4 -2
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/character-classes.js +36 -34
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/regexp-parser.js +138 -110
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/utils.js +13 -11
- package/dist/node_modules/@chevrotain/utils/lib/src/print.js +5 -3
- package/dist/node_modules/@chevrotain/utils/lib/src/timer.js +4 -2
- package/dist/node_modules/@chevrotain/utils/lib/src/to-fast-properties.js +4 -2
- package/dist/node_modules/@dagrejs/dagre/dist/dagre.esm.js +1812 -1913
- package/dist/node_modules/@iconify/utils/lib/customisations/defaults.js +8 -6
- package/dist/node_modules/@iconify/utils/lib/icon/defaults.js +10 -8
- package/dist/node_modules/@iconify/utils/lib/icon/merge.js +8 -6
- package/dist/node_modules/@iconify/utils/lib/icon/name.js +8 -6
- package/dist/node_modules/@iconify/utils/lib/icon/transformations.js +4 -2
- package/dist/node_modules/@iconify/utils/lib/icon-set/get-icon.js +12 -10
- package/dist/node_modules/@iconify/utils/lib/icon-set/tree.js +4 -2
- package/dist/node_modules/@iconify/utils/lib/svg/build.js +20 -18
- package/dist/node_modules/@iconify/utils/lib/svg/defs.js +8 -6
- package/dist/node_modules/@iconify/utils/lib/svg/html.js +4 -2
- package/dist/node_modules/@iconify/utils/lib/svg/id.js +10 -8
- package/dist/node_modules/@iconify/utils/lib/svg/size.js +7 -5
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/architecture-YZFGNWBL.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-2KRD3SAO.js +26 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-67CJDMHE.js +26 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-7N4EOEYR.js +38 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-AA7GKIK3.js +33 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-CIAEETIT.js +26 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-FOC6F5B3.js +26 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-K5T4RW27.js +1208 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-KGLVRYIC.js +26 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-LIHQZDEY.js +67 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-ORNJ4GCN.js +34 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/gitGraph-7Q5UKJZL.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-OMHHGYJF.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-4T2RLAQJ.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-ZZUOXDRM.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-PYXPWWZC.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treeView-SZITEDCU.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-W4RFUUIX.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/wardley-RL74JXVD.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/mermaid-parser.core.js +59 -45
- package/dist/node_modules/@shikijs/core/dist/index.js +583 -1119
- package/dist/node_modules/@shikijs/engine-oniguruma/dist/index.js +163 -148
- package/dist/node_modules/@shikijs/engine-oniguruma/dist/wasm-inlined.js +4 -2
- package/dist/node_modules/@shikijs/langs/dist/abap.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/actionscript-3.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/ada.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/angular-expression.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/angular-html.js +15 -13
- package/dist/node_modules/@shikijs/langs/dist/angular-inline-style.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/angular-inline-template.js +9 -7
- package/dist/node_modules/@shikijs/langs/dist/angular-let-declaration.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/angular-template-blocks.js +9 -7
- package/dist/node_modules/@shikijs/langs/dist/angular-template.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/angular-ts.js +17 -15
- package/dist/node_modules/@shikijs/langs/dist/apache.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/apex.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/apl.js +15 -13
- package/dist/node_modules/@shikijs/langs/dist/applescript.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/ara.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/asciidoc.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/asm.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/astro.js +17 -15
- package/dist/node_modules/@shikijs/langs/dist/awk.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/ballerina.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/bat.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/beancount.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/berry.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/bibtex.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/bicep.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/bird2.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/blade.js +19 -17
- package/dist/node_modules/@shikijs/langs/dist/bsl.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/c.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/c3.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/cadence.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/cairo.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/clarity.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/clojure.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/cmake.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/cobol.js +9 -7
- package/dist/node_modules/@shikijs/langs/dist/codeowners.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/codeql.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/coffee.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/common-lisp.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/coq.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/cpp-macro.js +11 -9
- package/dist/node_modules/@shikijs/langs/dist/cpp.js +13 -11
- package/dist/node_modules/@shikijs/langs/dist/crystal.js +17 -15
- package/dist/node_modules/@shikijs/langs/dist/csharp.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/css.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/csv.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/cue.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/cypher.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/d.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/dart.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/dax.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/desktop.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/diff.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/docker.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/dotenv.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/dream-maker.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/edge.js +11 -9
- package/dist/node_modules/@shikijs/langs/dist/elixir.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/elm.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/emacs-lisp.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/erb.js +9 -7
- package/dist/node_modules/@shikijs/langs/dist/erlang.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/es-tag-css.js +11 -9
- package/dist/node_modules/@shikijs/langs/dist/es-tag-glsl.js +11 -9
- package/dist/node_modules/@shikijs/langs/dist/es-tag-html.js +11 -9
- package/dist/node_modules/@shikijs/langs/dist/es-tag-sql.js +9 -7
- package/dist/node_modules/@shikijs/langs/dist/es-tag-xml.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/fennel.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/fish.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/fluent.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/fortran-fixed-form.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/fortran-free-form.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/fsharp.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/gdresource.js +9 -7
- package/dist/node_modules/@shikijs/langs/dist/gdscript.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/gdshader.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/genie.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/gherkin.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/git-commit.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/git-rebase.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/gleam.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/glimmer-js.js +13 -11
- package/dist/node_modules/@shikijs/langs/dist/glimmer-ts.js +13 -11
- package/dist/node_modules/@shikijs/langs/dist/glsl.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/gn.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/gnuplot.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/go.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/graphql.js +13 -11
- package/dist/node_modules/@shikijs/langs/dist/groovy.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/hack.js +9 -7
- package/dist/node_modules/@shikijs/langs/dist/haml.js +9 -7
- package/dist/node_modules/@shikijs/langs/dist/handlebars.js +13 -11
- package/dist/node_modules/@shikijs/langs/dist/haskell.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/haxe.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/hcl.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/hjson.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/hlsl.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/html-derivative.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/html.js +9 -7
- package/dist/node_modules/@shikijs/langs/dist/http.js +13 -11
- package/dist/node_modules/@shikijs/langs/dist/hurl.js +11 -9
- package/dist/node_modules/@shikijs/langs/dist/hxml.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/hy.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/imba.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/ini.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/java.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/javascript.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/jinja-html.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/jinja.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/jison.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/json.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/json5.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/jsonc.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/jsonl.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/jsonnet.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/jssm.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/jsx.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/julia.js +15 -13
- package/dist/node_modules/@shikijs/langs/dist/just.js +17 -15
- package/dist/node_modules/@shikijs/langs/dist/kdl.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/kotlin.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/kusto.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/latex.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/lean.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/less.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/liquid.js +13 -11
- package/dist/node_modules/@shikijs/langs/dist/llvm.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/log.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/logo.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/lua.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/luau.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/make.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/markdown-nix.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/markdown-vue.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/markdown.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/marko.js +13 -11
- package/dist/node_modules/@shikijs/langs/dist/matlab.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/mdc.js +11 -9
- package/dist/node_modules/@shikijs/langs/dist/mdx.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/mermaid.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/mipsasm.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/mojo.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/moonbit.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/move.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/narrat.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/nextflow-groovy.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/nextflow.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/nginx.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/nim.js +19 -17
- package/dist/node_modules/@shikijs/langs/dist/nix.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/nushell.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/objective-c.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/objective-cpp.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/ocaml.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/odin.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/openscad.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/pascal.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/perl.js +15 -13
- package/dist/node_modules/@shikijs/langs/dist/php.js +17 -15
- package/dist/node_modules/@shikijs/langs/dist/pkl.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/plsql.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/po.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/polar.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/postcss.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/powerquery.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/powershell.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/prisma.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/prolog.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/proto.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/pug.js +11 -9
- package/dist/node_modules/@shikijs/langs/dist/puppet.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/purescript.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/python.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/qml.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/qmldir.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/qss.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/r.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/racket.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/raku.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/razor.js +9 -7
- package/dist/node_modules/@shikijs/langs/dist/reg.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/regexp.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/rel.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/riscv.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/ron.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/rosmsg.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/rst.js +21 -19
- package/dist/node_modules/@shikijs/langs/dist/ruby.js +29 -27
- package/dist/node_modules/@shikijs/langs/dist/rust.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/sas.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/sass.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/scala.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/scheme.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/scss.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/sdbl.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/shaderlab.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/shellscript.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/shellsession.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/smalltalk.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/solidity.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/soy.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/sparql.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/splunk.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/sql.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/ssh-config.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/stata.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/stylus.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/surrealql.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/svelte.js +13 -11
- package/dist/node_modules/@shikijs/langs/dist/swift.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/system-verilog.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/systemd.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/talonscript.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/tasl.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/tcl.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/templ.js +11 -9
- package/dist/node_modules/@shikijs/langs/dist/terraform.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/tex.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/toml.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/ts-tags.js +17 -15
- package/dist/node_modules/@shikijs/langs/dist/tsv.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/tsx.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/turtle.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/twig.js +17 -15
- package/dist/node_modules/@shikijs/langs/dist/typescript.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/typespec.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/typst.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/v.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/vala.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/vb.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/verilog.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/vhdl.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/viml.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/vue-directives.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/vue-html.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/vue-interpolations.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/vue-sfc-style-variable-injection.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/vue-vine.js +17 -15
- package/dist/node_modules/@shikijs/langs/dist/vue.js +25 -23
- package/dist/node_modules/@shikijs/langs/dist/vyper.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/wasm.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/wenyan.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/wgsl.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/wikitext.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/wit.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/wolfram.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/xml.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/xsl.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/yaml.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/zenscript.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/zig.js +3 -2
- package/dist/node_modules/@shikijs/primitive/dist/index.js +540 -0
- package/dist/node_modules/@shikijs/themes/dist/andromeeda.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/aurora-x.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/ayu-dark.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/ayu-light.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/ayu-mirage.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/catppuccin-frappe.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/catppuccin-latte.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/catppuccin-macchiato.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/catppuccin-mocha.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/dark-plus.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/dracula-soft.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/dracula.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/everforest-dark.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/everforest-light.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/github-dark-default.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/github-dark-dimmed.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/github-dark-high-contrast.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/github-dark.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/github-light-default.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/github-light-high-contrast.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/github-light.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-hard.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-medium.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-soft.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-hard.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-medium.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-soft.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/horizon-bright.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/horizon.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/houston.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/kanagawa-dragon.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/kanagawa-lotus.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/kanagawa-wave.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/laserwave.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/light-plus.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/material-theme-darker.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/material-theme-lighter.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/material-theme-ocean.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/material-theme-palenight.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/material-theme.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/min-dark.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/min-light.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/monokai.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/night-owl-light.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/night-owl.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/nord.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/one-dark-pro.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/one-light.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/plastic.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/poimandres.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/red.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/rose-pine-dawn.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/rose-pine-moon.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/rose-pine.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/slack-dark.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/slack-ochin.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/snazzy-light.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/solarized-dark.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/solarized-light.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/synthwave-84.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/tokyo-night.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/vesper.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/vitesse-black.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/vitesse-dark.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/vitesse-light.js +4 -2
- package/dist/node_modules/@shikijs/types/dist/index.js +4 -2
- package/dist/node_modules/@shikijs/vscode-textmate/dist/index.js +949 -947
- package/dist/node_modules/@ungap/structured-clone/esm/deserialize.js +30 -30
- package/dist/node_modules/@ungap/structured-clone/esm/index.js +6 -4
- package/dist/node_modules/@ungap/structured-clone/esm/serialize.js +64 -64
- package/dist/node_modules/@upsetjs/venn.js/build/venn.esm.js +905 -0
- package/dist/node_modules/@xyflow/react/dist/esm/index.js +904 -901
- package/dist/node_modules/@xyflow/system/dist/esm/index.js +1226 -1222
- package/dist/node_modules/bail/index.js +4 -2
- package/dist/node_modules/ccount/index.js +4 -2
- package/dist/node_modules/character-entities-html4/index.js +4 -2
- package/dist/node_modules/character-entities-legacy/index.js +4 -2
- package/dist/node_modules/chevrotain/lib/src/api.js +10 -10
- package/dist/node_modules/chevrotain/lib/src/lang/lang_extensions.js +6 -4
- package/dist/node_modules/chevrotain/lib/src/parse/constants.js +4 -2
- package/dist/node_modules/chevrotain/lib/src/parse/cst/cst.js +11 -9
- package/dist/node_modules/chevrotain/lib/src/parse/cst/cst_visitor.js +38 -45
- package/dist/node_modules/chevrotain/lib/src/parse/errors_public.js +35 -36
- package/dist/node_modules/chevrotain/lib/src/parse/exceptions_public.js +26 -25
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/checks.js +204 -226
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/first.js +18 -18
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/follow.js +20 -19
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_resolver_public.js +14 -13
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/interpreter.js +195 -200
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/keys.js +5 -4
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/llk_lookahead.js +28 -28
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/lookahead.js +165 -170
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/resolver.js +17 -17
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/rest.js +50 -50
- package/dist/node_modules/chevrotain/lib/src/parse/parser/parser.js +76 -83
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/error_handler.js +21 -21
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/gast_recorder.js +117 -121
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/lexer_adapter.js +12 -6
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/looksahead.js +51 -51
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.js +15 -14
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.js +81 -80
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.js +229 -217
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recoverable.js +87 -86
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/tree_builder.js +36 -44
- package/dist/node_modules/chevrotain/lib/src/parse/parser/utils/apply_mixins.js +4 -2
- package/dist/node_modules/chevrotain/lib/src/scan/lexer.js +287 -309
- package/dist/node_modules/chevrotain/lib/src/scan/lexer_errors_public.js +4 -2
- package/dist/node_modules/chevrotain/lib/src/scan/lexer_public.js +115 -126
- package/dist/node_modules/chevrotain/lib/src/scan/reg_exp.js +73 -70
- package/dist/node_modules/chevrotain/lib/src/scan/reg_exp_parser.js +12 -10
- package/dist/node_modules/chevrotain/lib/src/scan/tokens.js +45 -54
- package/dist/node_modules/chevrotain/lib/src/scan/tokens_public.js +29 -30
- package/dist/node_modules/chevrotain-allstar/lib/all-star-lookahead.js +242 -240
- package/dist/node_modules/chevrotain-allstar/lib/atn.js +134 -133
- package/dist/node_modules/chevrotain-allstar/lib/dfa.js +11 -10
- package/dist/node_modules/chevrotain-allstar/lib/index.js +1 -1
- package/dist/node_modules/classcat/index.js +5 -3
- package/dist/node_modules/comma-separated-tokens/index.js +5 -3
- package/dist/node_modules/cose-base/cose-base.js +21 -21
- package/dist/node_modules/cytoscape/dist/cytoscape.esm.js +7935 -7935
- package/dist/node_modules/cytoscape-cose-bilkent/cytoscape-cose-bilkent.js +8 -6
- package/dist/node_modules/cytoscape-fcose/cytoscape-fcose.js +8 -6
- package/dist/node_modules/cytoscape-fcose/node_modules/cose-base/cose-base.js +20 -20
- package/dist/node_modules/cytoscape-fcose/node_modules/layout-base/layout-base.js +6 -4
- package/dist/node_modules/d3/src/index.js +95 -95
- package/dist/node_modules/d3-array/src/ascending.js +4 -2
- package/dist/node_modules/d3-array/src/bisect.js +8 -8
- package/dist/node_modules/d3-array/src/bisector.js +8 -6
- package/dist/node_modules/d3-array/src/descending.js +4 -2
- package/dist/node_modules/d3-array/src/max.js +4 -2
- package/dist/node_modules/d3-array/src/min.js +4 -2
- package/dist/node_modules/d3-array/src/number.js +4 -2
- package/dist/node_modules/d3-array/src/range.js +4 -2
- package/dist/node_modules/d3-array/src/ticks.js +13 -11
- package/dist/node_modules/d3-axis/src/axis.js +48 -46
- package/dist/node_modules/d3-axis/src/identity.js +4 -2
- package/dist/node_modules/d3-brush/src/brush.js +6 -4
- package/dist/node_modules/d3-color/src/color.js +86 -84
- package/dist/node_modules/d3-color/src/define.js +5 -3
- package/dist/node_modules/d3-color/src/lab.js +45 -43
- package/dist/node_modules/d3-color/src/math.js +4 -2
- package/dist/node_modules/d3-dispatch/src/dispatch.js +18 -17
- package/dist/node_modules/d3-drag/src/constant.js +4 -2
- package/dist/node_modules/d3-drag/src/drag.js +77 -75
- package/dist/node_modules/d3-drag/src/event.js +5 -3
- package/dist/node_modules/d3-drag/src/nodrag.js +11 -9
- package/dist/node_modules/d3-drag/src/noevent.js +6 -4
- package/dist/node_modules/d3-ease/src/cubic.js +4 -2
- package/dist/node_modules/d3-format/src/defaultLocale.js +8 -6
- package/dist/node_modules/d3-format/src/exponent.js +6 -4
- package/dist/node_modules/d3-format/src/formatDecimal.js +5 -3
- package/dist/node_modules/d3-format/src/formatGroup.js +4 -2
- package/dist/node_modules/d3-format/src/formatNumerals.js +4 -2
- package/dist/node_modules/d3-format/src/formatPrefixAuto.js +10 -8
- package/dist/node_modules/d3-format/src/formatRounded.js +6 -4
- package/dist/node_modules/d3-format/src/formatSpecifier.js +10 -8
- package/dist/node_modules/d3-format/src/formatTrim.js +4 -2
- package/dist/node_modules/d3-format/src/formatTypes.js +15 -13
- package/dist/node_modules/d3-format/src/identity.js +4 -2
- package/dist/node_modules/d3-format/src/locale.js +33 -31
- package/dist/node_modules/d3-format/src/precisionFixed.js +6 -4
- package/dist/node_modules/d3-format/src/precisionPrefix.js +6 -4
- package/dist/node_modules/d3-format/src/precisionRound.js +6 -4
- package/dist/node_modules/d3-hierarchy/src/accessors.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/constant.js +5 -3
- package/dist/node_modules/d3-hierarchy/src/hierarchy/ancestors.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/hierarchy/count.js +6 -4
- package/dist/node_modules/d3-hierarchy/src/hierarchy/descendants.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/hierarchy/each.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/hierarchy/eachAfter.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/hierarchy/eachBefore.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/hierarchy/find.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/hierarchy/index.js +46 -44
- package/dist/node_modules/d3-hierarchy/src/hierarchy/iterator.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/hierarchy/leaves.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/hierarchy/links.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/hierarchy/path.js +6 -4
- package/dist/node_modules/d3-hierarchy/src/hierarchy/sort.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/hierarchy/sum.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/treemap/dice.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/treemap/index.js +16 -14
- package/dist/node_modules/d3-hierarchy/src/treemap/round.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/treemap/slice.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/treemap/squarify.js +11 -9
- package/dist/node_modules/d3-interpolate/src/array.js +6 -4
- package/dist/node_modules/d3-interpolate/src/basis.js +6 -4
- package/dist/node_modules/d3-interpolate/src/basisClosed.js +6 -4
- package/dist/node_modules/d3-interpolate/src/color.js +19 -17
- package/dist/node_modules/d3-interpolate/src/constant.js +4 -2
- package/dist/node_modules/d3-interpolate/src/date.js +4 -2
- package/dist/node_modules/d3-interpolate/src/hcl.js +8 -6
- package/dist/node_modules/d3-interpolate/src/number.js +4 -2
- package/dist/node_modules/d3-interpolate/src/numberArray.js +5 -3
- package/dist/node_modules/d3-interpolate/src/object.js +6 -4
- package/dist/node_modules/d3-interpolate/src/rgb.js +11 -9
- package/dist/node_modules/d3-interpolate/src/round.js +4 -2
- package/dist/node_modules/d3-interpolate/src/string.js +16 -14
- package/dist/node_modules/d3-interpolate/src/transform/decompose.js +7 -5
- package/dist/node_modules/d3-interpolate/src/transform/index.js +13 -11
- package/dist/node_modules/d3-interpolate/src/transform/parse.js +10 -8
- package/dist/node_modules/d3-interpolate/src/value.js +14 -12
- package/dist/node_modules/d3-interpolate/src/zoom.js +13 -11
- package/dist/node_modules/d3-path/src/path.js +16 -14
- package/dist/node_modules/d3-sankey/node_modules/d3-array/src/max.js +4 -2
- package/dist/node_modules/d3-sankey/node_modules/d3-array/src/min.js +4 -2
- package/dist/node_modules/d3-sankey/node_modules/d3-array/src/sum.js +4 -2
- package/dist/node_modules/d3-sankey/node_modules/d3-path/src/path.js +13 -12
- package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/array.js +4 -2
- package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/constant.js +4 -2
- package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/link/index.js +19 -17
- package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/point.js +5 -3
- package/dist/node_modules/d3-sankey/src/align.js +12 -10
- package/dist/node_modules/d3-sankey/src/constant.js +4 -2
- package/dist/node_modules/d3-sankey/src/sankey.js +170 -168
- package/dist/node_modules/d3-sankey/src/sankeyLinkHorizontal.js +8 -6
- package/dist/node_modules/d3-scale/src/band.js +11 -9
- package/dist/node_modules/d3-scale/src/constant.js +4 -2
- package/dist/node_modules/d3-scale/src/continuous.js +49 -47
- package/dist/node_modules/d3-scale/src/init.js +4 -2
- package/dist/node_modules/d3-scale/src/linear.js +15 -13
- package/dist/node_modules/d3-scale/src/nice.js +4 -2
- package/dist/node_modules/d3-scale/src/number.js +4 -2
- package/dist/node_modules/d3-scale/src/ordinal.js +18 -16
- package/dist/node_modules/d3-scale/src/tickFormat.js +16 -14
- package/dist/node_modules/d3-scale/src/time.js +36 -34
- package/dist/node_modules/d3-scale-chromatic/src/categorical/Tableau10.js +5 -3
- package/dist/node_modules/d3-scale-chromatic/src/colors.js +4 -2
- package/dist/node_modules/d3-selection/src/array.js +4 -2
- package/dist/node_modules/d3-selection/src/constant.js +4 -2
- package/dist/node_modules/d3-selection/src/creator.js +12 -10
- package/dist/node_modules/d3-selection/src/matcher.js +5 -3
- package/dist/node_modules/d3-selection/src/namespace.js +7 -5
- package/dist/node_modules/d3-selection/src/namespaces.js +5 -3
- package/dist/node_modules/d3-selection/src/pointer.js +6 -4
- package/dist/node_modules/d3-selection/src/select.js +6 -4
- package/dist/node_modules/d3-selection/src/selection/append.js +6 -4
- package/dist/node_modules/d3-selection/src/selection/attr.js +19 -17
- package/dist/node_modules/d3-selection/src/selection/call.js +4 -2
- package/dist/node_modules/d3-selection/src/selection/classed.js +25 -23
- package/dist/node_modules/d3-selection/src/selection/clone.js +7 -5
- package/dist/node_modules/d3-selection/src/selection/data.js +18 -16
- package/dist/node_modules/d3-selection/src/selection/datum.js +4 -2
- package/dist/node_modules/d3-selection/src/selection/dispatch.js +12 -10
- package/dist/node_modules/d3-selection/src/selection/each.js +4 -2
- package/dist/node_modules/d3-selection/src/selection/empty.js +4 -2
- package/dist/node_modules/d3-selection/src/selection/enter.js +13 -11
- package/dist/node_modules/d3-selection/src/selection/exit.js +7 -5
- package/dist/node_modules/d3-selection/src/selection/filter.js +8 -6
- package/dist/node_modules/d3-selection/src/selection/html.js +8 -6
- package/dist/node_modules/d3-selection/src/selection/index.js +80 -79
- package/dist/node_modules/d3-selection/src/selection/insert.js +8 -6
- package/dist/node_modules/d3-selection/src/selection/iterator.js +4 -2
- package/dist/node_modules/d3-selection/src/selection/join.js +4 -2
- package/dist/node_modules/d3-selection/src/selection/lower.js +6 -4
- package/dist/node_modules/d3-selection/src/selection/merge.js +6 -4
- package/dist/node_modules/d3-selection/src/selection/node.js +4 -2
- package/dist/node_modules/d3-selection/src/selection/nodes.js +4 -2
- package/dist/node_modules/d3-selection/src/selection/on.js +11 -9
- package/dist/node_modules/d3-selection/src/selection/order.js +4 -2
- package/dist/node_modules/d3-selection/src/selection/property.js +8 -6
- package/dist/node_modules/d3-selection/src/selection/raise.js +6 -4
- package/dist/node_modules/d3-selection/src/selection/remove.js +6 -4
- package/dist/node_modules/d3-selection/src/selection/select.js +8 -6
- package/dist/node_modules/d3-selection/src/selection/selectAll.js +11 -9
- package/dist/node_modules/d3-selection/src/selection/selectChild.js +10 -8
- package/dist/node_modules/d3-selection/src/selection/selectChildren.js +10 -8
- package/dist/node_modules/d3-selection/src/selection/size.js +4 -2
- package/dist/node_modules/d3-selection/src/selection/sort.js +8 -6
- package/dist/node_modules/d3-selection/src/selection/sparse.js +4 -2
- package/dist/node_modules/d3-selection/src/selection/style.js +14 -12
- package/dist/node_modules/d3-selection/src/selection/text.js +8 -6
- package/dist/node_modules/d3-selection/src/selector.js +6 -4
- package/dist/node_modules/d3-selection/src/selectorAll.js +6 -4
- package/dist/node_modules/d3-selection/src/sourceEvent.js +4 -2
- package/dist/node_modules/d3-selection/src/window.js +4 -2
- package/dist/node_modules/d3-shape/src/arc.js +38 -36
- package/dist/node_modules/d3-shape/src/array.js +3 -2
- package/dist/node_modules/d3-shape/src/constant.js +4 -2
- package/dist/node_modules/d3-shape/src/curve/basis.js +10 -8
- package/dist/node_modules/d3-shape/src/curve/basisClosed.js +18 -16
- package/dist/node_modules/d3-shape/src/curve/basisOpen.js +9 -7
- package/dist/node_modules/d3-shape/src/curve/bump.js +15 -13
- package/dist/node_modules/d3-shape/src/curve/bundle.js +9 -7
- package/dist/node_modules/d3-shape/src/curve/cardinal.js +10 -8
- package/dist/node_modules/d3-shape/src/curve/cardinalClosed.js +12 -10
- package/dist/node_modules/d3-shape/src/curve/cardinalOpen.js +9 -7
- package/dist/node_modules/d3-shape/src/curve/catmullRom.js +19 -17
- package/dist/node_modules/d3-shape/src/curve/catmullRomClosed.js +13 -11
- package/dist/node_modules/d3-shape/src/curve/catmullRomOpen.js +10 -8
- package/dist/node_modules/d3-shape/src/curve/linear.js +7 -5
- package/dist/node_modules/d3-shape/src/curve/linearClosed.js +12 -10
- package/dist/node_modules/d3-shape/src/curve/monotone.js +23 -21
- package/dist/node_modules/d3-shape/src/curve/natural.js +9 -7
- package/dist/node_modules/d3-shape/src/curve/step.js +19 -17
- package/dist/node_modules/d3-shape/src/descending.js +4 -2
- package/dist/node_modules/d3-shape/src/identity.js +4 -2
- package/dist/node_modules/d3-shape/src/line.js +19 -17
- package/dist/node_modules/d3-shape/src/math.js +8 -6
- package/dist/node_modules/d3-shape/src/noop.js +4 -2
- package/dist/node_modules/d3-shape/src/path.js +6 -4
- package/dist/node_modules/d3-shape/src/pie.js +15 -13
- package/dist/node_modules/d3-shape/src/point.js +5 -3
- package/dist/node_modules/d3-time/src/day.js +17 -15
- package/dist/node_modules/d3-time/src/duration.js +4 -2
- package/dist/node_modules/d3-time/src/hour.js +16 -14
- package/dist/node_modules/d3-time/src/interval.js +7 -5
- package/dist/node_modules/d3-time/src/millisecond.js +7 -5
- package/dist/node_modules/d3-time/src/minute.js +16 -14
- package/dist/node_modules/d3-time/src/month.js +14 -12
- package/dist/node_modules/d3-time/src/second.js +9 -7
- package/dist/node_modules/d3-time/src/ticks.js +66 -64
- package/dist/node_modules/d3-time/src/week.js +21 -19
- package/dist/node_modules/d3-time/src/year.js +10 -8
- package/dist/node_modules/d3-time-format/src/defaultLocale.js +8 -6
- package/dist/node_modules/d3-time-format/src/locale.js +346 -344
- package/dist/node_modules/d3-timer/src/timeout.js +6 -4
- package/dist/node_modules/d3-timer/src/timer.js +33 -31
- package/dist/node_modules/d3-transition/src/index.js +2 -2
- package/dist/node_modules/d3-transition/src/interrupt.js +4 -3
- package/dist/node_modules/d3-transition/src/selection/index.js +5 -4
- package/dist/node_modules/d3-transition/src/selection/interrupt.js +6 -4
- package/dist/node_modules/d3-transition/src/selection/transition.js +16 -14
- package/dist/node_modules/d3-transition/src/transition/attr.js +28 -26
- package/dist/node_modules/d3-transition/src/transition/attrTween.js +13 -11
- package/dist/node_modules/d3-transition/src/transition/delay.js +11 -9
- package/dist/node_modules/d3-transition/src/transition/duration.js +11 -9
- package/dist/node_modules/d3-transition/src/transition/ease.js +8 -6
- package/dist/node_modules/d3-transition/src/transition/easeVarying.js +8 -6
- package/dist/node_modules/d3-transition/src/transition/end.js +6 -4
- package/dist/node_modules/d3-transition/src/transition/filter.js +8 -6
- package/dist/node_modules/d3-transition/src/transition/index.js +63 -61
- package/dist/node_modules/d3-transition/src/transition/interpolate.js +9 -7
- package/dist/node_modules/d3-transition/src/transition/merge.js +6 -4
- package/dist/node_modules/d3-transition/src/transition/on.js +9 -7
- package/dist/node_modules/d3-transition/src/transition/remove.js +6 -4
- package/dist/node_modules/d3-transition/src/transition/schedule.js +20 -18
- package/dist/node_modules/d3-transition/src/transition/select.js +10 -8
- package/dist/node_modules/d3-transition/src/transition/selectAll.js +10 -8
- package/dist/node_modules/d3-transition/src/transition/selection.js +7 -5
- package/dist/node_modules/d3-transition/src/transition/style.js +21 -19
- package/dist/node_modules/d3-transition/src/transition/styleTween.js +8 -6
- package/dist/node_modules/d3-transition/src/transition/text.js +8 -6
- package/dist/node_modules/d3-transition/src/transition/textTween.js +8 -6
- package/dist/node_modules/d3-transition/src/transition/transition.js +10 -8
- package/dist/node_modules/d3-transition/src/transition/tween.js +14 -12
- package/dist/node_modules/d3-zoom/src/constant.js +4 -2
- package/dist/node_modules/d3-zoom/src/event.js +4 -2
- package/dist/node_modules/d3-zoom/src/index.js +2 -2
- package/dist/node_modules/d3-zoom/src/noevent.js +5 -3
- package/dist/node_modules/d3-zoom/src/transform.js +12 -10
- package/dist/node_modules/d3-zoom/src/zoom.js +116 -114
- package/dist/node_modules/dagre-d3-es/src/dagre/acyclic.js +14 -12
- package/dist/node_modules/dagre-d3-es/src/dagre/add-border-segments.js +11 -9
- package/dist/node_modules/dagre-d3-es/src/dagre/coordinate-system.js +36 -34
- package/dist/node_modules/dagre-d3-es/src/dagre/data/list.js +9 -7
- package/dist/node_modules/dagre-d3-es/src/dagre/greedy-fas.js +51 -49
- package/dist/node_modules/dagre-d3-es/src/dagre/index.js +2 -2
- package/dist/node_modules/dagre-d3-es/src/dagre/layout.js +165 -163
- package/dist/node_modules/dagre-d3-es/src/dagre/nesting-graph.js +45 -43
- package/dist/node_modules/dagre-d3-es/src/dagre/normalize.js +12 -10
- package/dist/node_modules/dagre-d3-es/src/dagre/order/add-subgraph-constraints.js +6 -4
- package/dist/node_modules/dagre-d3-es/src/dagre/order/barycenter.js +8 -6
- package/dist/node_modules/dagre-d3-es/src/dagre/order/build-layer-graph.js +14 -12
- package/dist/node_modules/dagre-d3-es/src/dagre/order/cross-count.js +22 -20
- package/dist/node_modules/dagre-d3-es/src/dagre/order/index.js +36 -34
- package/dist/node_modules/dagre-d3-es/src/dagre/order/init-order.js +16 -14
- package/dist/node_modules/dagre-d3-es/src/dagre/order/resolve-conflicts.js +32 -30
- package/dist/node_modules/dagre-d3-es/src/dagre/order/sort-subgraph.js +30 -28
- package/dist/node_modules/dagre-d3-es/src/dagre/order/sort.js +20 -18
- package/dist/node_modules/dagre-d3-es/src/dagre/parent-dummy-chains.js +12 -10
- package/dist/node_modules/dagre-d3-es/src/dagre/position/bk.js +150 -148
- package/dist/node_modules/dagre-d3-es/src/dagre/position/index.js +20 -18
- package/dist/node_modules/dagre-d3-es/src/dagre/rank/feasible-tree.js +19 -17
- package/dist/node_modules/dagre-d3-es/src/dagre/rank/index.js +16 -14
- package/dist/node_modules/dagre-d3-es/src/dagre/rank/network-simplex.js +64 -63
- package/dist/node_modules/dagre-d3-es/src/dagre/rank/util.js +15 -13
- package/dist/node_modules/dagre-d3-es/src/dagre/util.js +84 -82
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/dfs.js +15 -13
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/dijkstra.js +3 -2
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/floyd-warshall.js +3 -2
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/index.js +3 -3
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/postorder.js +6 -4
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/preorder.js +6 -4
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/topsort.js +13 -11
- package/dist/node_modules/dagre-d3-es/src/graphlib/graph.js +131 -129
- package/dist/node_modules/dagre-d3-es/src/graphlib/index.js +1 -1
- package/dist/node_modules/dagre-d3-es/src/graphlib/json.js +23 -21
- package/dist/node_modules/dayjs/dayjs.min.js +6 -4
- package/dist/node_modules/dayjs/plugin/advancedFormat.js +6 -4
- package/dist/node_modules/dayjs/plugin/customParseFormat.js +6 -4
- package/dist/node_modules/dayjs/plugin/duration.js +6 -4
- package/dist/node_modules/dayjs/plugin/isoWeek.js +6 -4
- package/dist/node_modules/decode-named-character-reference/index.dom.js +7 -5
- package/dist/node_modules/devlop/lib/default.js +4 -2
- package/dist/node_modules/dompurify/dist/purify.es.js +203 -201
- package/dist/node_modules/entities/dist/esm/decode-codepoint.js +6 -4
- package/dist/node_modules/entities/dist/esm/decode.js +87 -85
- package/dist/node_modules/entities/dist/esm/generated/decode-data-html.js +4 -2
- package/dist/node_modules/estree-util-is-identifier-name/lib/index.js +6 -4
- package/dist/node_modules/extend/index.js +9 -6
- package/dist/node_modules/hast-util-from-dom/lib/index.js +32 -30
- package/dist/node_modules/hast-util-from-html-isomorphic/lib/browser.js +10 -8
- package/dist/node_modules/hast-util-from-parse5/lib/index.js +82 -80
- package/dist/node_modules/hast-util-is-element/lib/index.js +17 -15
- package/dist/node_modules/hast-util-parse-selector/lib/index.js +7 -5
- package/dist/node_modules/hast-util-raw/lib/index.js +136 -134
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/doctype.js +23 -21
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/error-codes.js +5 -3
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/foreign-content.js +89 -89
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/html.js +250 -249
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/token.js +6 -4
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/unicode.js +14 -14
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/index.js +4 -4
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/formatting-element-list.js +17 -15
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/index.js +1497 -1495
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/open-element-stack.js +148 -146
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/serializer/index.js +20 -19
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/index.js +800 -798
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/preprocessor.js +33 -31
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tree-adapters/default.js +10 -8
- package/dist/node_modules/hast-util-sanitize/lib/index.js +106 -104
- package/dist/node_modules/hast-util-sanitize/lib/schema.js +12 -11
- package/dist/node_modules/hast-util-to-html/lib/handle/comment.js +9 -7
- package/dist/node_modules/hast-util-to-html/lib/handle/doctype.js +4 -2
- package/dist/node_modules/hast-util-to-html/lib/handle/element.js +25 -23
- package/dist/node_modules/hast-util-to-html/lib/handle/index.js +22 -21
- package/dist/node_modules/hast-util-to-html/lib/handle/raw.js +6 -4
- package/dist/node_modules/hast-util-to-html/lib/handle/root.js +4 -2
- package/dist/node_modules/hast-util-to-html/lib/handle/text.js +7 -5
- package/dist/node_modules/hast-util-to-html/lib/index.js +38 -36
- package/dist/node_modules/hast-util-to-html/lib/omission/closing.js +70 -68
- package/dist/node_modules/hast-util-to-html/lib/omission/omission.js +6 -4
- package/dist/node_modules/hast-util-to-html/lib/omission/opening.js +32 -30
- package/dist/node_modules/hast-util-to-html/lib/omission/util/siblings.js +10 -9
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +192 -190
- package/dist/node_modules/hast-util-to-parse5/lib/index.js +71 -69
- package/dist/node_modules/hast-util-to-text/lib/index.js +61 -59
- package/dist/node_modules/hast-util-whitespace/lib/index.js +8 -6
- package/dist/node_modules/hastscript/lib/create-h.js +26 -24
- package/dist/node_modules/hastscript/lib/index.js +7 -5
- package/dist/node_modules/hastscript/lib/svg-case-sensitive-tag-names.js +4 -2
- package/dist/node_modules/html-url-attributes/lib/index.js +4 -2
- package/dist/node_modules/html-void-elements/index.js +4 -2
- package/dist/node_modules/inline-style-parser/cjs/index.js +6 -4
- package/dist/node_modules/internmap/src/index.js +22 -20
- package/dist/node_modules/katex/dist/katex.js +2914 -2873
- package/dist/node_modules/khroma/dist/channels/index.js +23 -21
- package/dist/node_modules/khroma/dist/channels/reusable.js +5 -3
- package/dist/node_modules/khroma/dist/channels/type.js +7 -5
- package/dist/node_modules/khroma/dist/color/hex.js +10 -8
- package/dist/node_modules/khroma/dist/color/hsl.js +19 -17
- package/dist/node_modules/khroma/dist/color/index.js +17 -15
- package/dist/node_modules/khroma/dist/color/keyword.js +10 -8
- package/dist/node_modules/khroma/dist/color/rgb.js +14 -12
- package/dist/node_modules/khroma/dist/constants.js +7 -5
- package/dist/node_modules/khroma/dist/methods/adjust.js +8 -6
- package/dist/node_modules/khroma/dist/methods/adjust_channel.js +8 -6
- package/dist/node_modules/khroma/dist/methods/change.js +9 -7
- package/dist/node_modules/khroma/dist/methods/channel.js +6 -4
- package/dist/node_modules/khroma/dist/methods/darken.js +5 -3
- package/dist/node_modules/khroma/dist/methods/invert.js +8 -6
- package/dist/node_modules/khroma/dist/methods/is_dark.js +5 -3
- package/dist/node_modules/khroma/dist/methods/is_light.js +5 -3
- package/dist/node_modules/khroma/dist/methods/lighten.js +5 -3
- package/dist/node_modules/khroma/dist/methods/luminance.js +8 -6
- package/dist/node_modules/khroma/dist/methods/mix.js +8 -6
- package/dist/node_modules/khroma/dist/methods/rgba.js +15 -13
- package/dist/node_modules/khroma/dist/methods/transparentize.js +5 -0
- package/dist/node_modules/khroma/dist/utils/channel.js +8 -6
- package/dist/node_modules/khroma/dist/utils/index.js +10 -8
- package/dist/node_modules/khroma/dist/utils/lang.js +4 -2
- package/dist/node_modules/khroma/dist/utils/unit.js +4 -2
- package/dist/node_modules/langium/lib/default-module.js +66 -64
- package/dist/node_modules/langium/lib/dependency-injection.js +37 -39
- package/dist/node_modules/langium/lib/documentation/comment-provider.js +7 -5
- package/dist/node_modules/langium/lib/documentation/documentation-provider.js +8 -6
- package/dist/node_modules/langium/lib/documentation/jsdoc.js +204 -202
- package/dist/node_modules/langium/lib/languages/generated/ast.js +343 -534
- package/dist/node_modules/langium/lib/languages/grammar-config.js +10 -8
- package/dist/node_modules/langium/lib/parser/async-parser.js +4 -76
- package/dist/node_modules/langium/lib/parser/completion-parser-builder.js +8 -6
- package/dist/node_modules/langium/lib/parser/cst-node-builder.js +56 -54
- package/dist/node_modules/langium/lib/parser/langium-parser-builder.js +9 -7
- package/dist/node_modules/langium/lib/parser/langium-parser.js +190 -188
- package/dist/node_modules/langium/lib/parser/lexer.js +25 -25
- package/dist/node_modules/langium/lib/parser/parser-builder-base.js +204 -203
- package/dist/node_modules/langium/lib/parser/token-builder.js +32 -30
- package/dist/node_modules/langium/lib/parser/value-converter.js +17 -15
- package/dist/node_modules/langium/lib/references/linker.js +104 -103
- package/dist/node_modules/langium/lib/references/name-provider.js +9 -7
- package/dist/node_modules/langium/lib/references/references.js +53 -51
- package/dist/node_modules/langium/lib/references/scope-computation.js +14 -12
- package/dist/node_modules/langium/lib/references/scope-provider.js +13 -11
- package/dist/node_modules/langium/lib/references/scope.js +27 -56
- package/dist/node_modules/langium/lib/serializer/hydrator.js +71 -69
- package/dist/node_modules/langium/lib/serializer/json-serializer.js +23 -21
- package/dist/node_modules/langium/lib/service-registry.js +7 -5
- package/dist/node_modules/langium/lib/syntax-tree.js +33 -31
- package/dist/node_modules/langium/lib/utils/ast-utils.js +77 -112
- package/dist/node_modules/langium/lib/utils/caching.js +33 -42
- package/dist/node_modules/langium/lib/utils/cancellation.js +7 -5
- package/dist/node_modules/langium/lib/utils/collections.js +35 -33
- package/dist/node_modules/langium/lib/utils/cst-utils.js +46 -161
- package/dist/node_modules/langium/lib/utils/disposable.js +5 -3
- package/dist/node_modules/langium/lib/utils/errors.js +8 -9
- package/dist/node_modules/langium/lib/utils/event.js +7 -5
- package/dist/node_modules/langium/lib/utils/grammar-loader.js +16 -14
- package/dist/node_modules/langium/lib/utils/grammar-utils.js +172 -249
- package/dist/node_modules/langium/lib/utils/promise-utils.js +18 -19
- package/dist/node_modules/langium/lib/utils/regexp-utils.js +53 -76
- package/dist/node_modules/langium/lib/utils/stream.js +155 -153
- package/dist/node_modules/langium/lib/utils/uri-utils.js +14 -12
- package/dist/node_modules/langium/lib/validation/document-validator.js +104 -103
- package/dist/node_modules/langium/lib/validation/validation-registry.js +15 -14
- package/dist/node_modules/langium/lib/workspace/ast-descriptions.js +19 -17
- package/dist/node_modules/langium/lib/workspace/ast-node-locator.js +4 -2
- package/dist/node_modules/langium/lib/workspace/configuration.js +7 -5
- package/dist/node_modules/langium/lib/workspace/document-builder.js +131 -134
- package/dist/node_modules/langium/lib/workspace/documents.js +85 -83
- package/dist/node_modules/langium/lib/workspace/file-system-provider.js +5 -4
- package/dist/node_modules/langium/lib/workspace/index-manager.js +16 -14
- package/dist/node_modules/langium/lib/workspace/workspace-lock.js +11 -9
- package/dist/node_modules/langium/lib/workspace/workspace-manager.js +35 -33
- package/dist/node_modules/layout-base/layout-base.js +6 -4
- package/dist/node_modules/lodash-es/_DataView.js +6 -4
- package/dist/node_modules/lodash-es/_Hash.js +14 -13
- package/dist/node_modules/lodash-es/_ListCache.js +14 -13
- package/dist/node_modules/lodash-es/_Map.js +6 -4
- package/dist/node_modules/lodash-es/_MapCache.js +14 -13
- package/dist/node_modules/lodash-es/_Promise.js +6 -4
- package/dist/node_modules/lodash-es/_Set.js +6 -4
- package/dist/node_modules/lodash-es/_SetCache.js +10 -9
- package/dist/node_modules/lodash-es/_Stack.js +12 -11
- package/dist/node_modules/lodash-es/_Symbol.js +5 -3
- package/dist/node_modules/lodash-es/_Uint8Array.js +5 -3
- package/dist/node_modules/lodash-es/_WeakMap.js +6 -4
- package/dist/node_modules/lodash-es/_apply.js +4 -3
- package/dist/node_modules/lodash-es/_arrayEach.js +4 -3
- package/dist/node_modules/lodash-es/_arrayFilter.js +4 -3
- package/dist/node_modules/lodash-es/_arrayIncludes.js +6 -5
- package/dist/node_modules/lodash-es/_arrayIncludesWith.js +4 -3
- package/dist/node_modules/lodash-es/_arrayLikeKeys.js +13 -12
- package/dist/node_modules/lodash-es/_arrayMap.js +4 -3
- package/dist/node_modules/lodash-es/_arrayPush.js +4 -3
- package/dist/node_modules/lodash-es/_arrayReduce.js +4 -3
- package/dist/node_modules/lodash-es/_arraySome.js +4 -3
- package/dist/node_modules/lodash-es/_asciiSize.js +5 -3
- package/dist/node_modules/lodash-es/_assignMergeValue.js +7 -6
- package/dist/node_modules/lodash-es/_assignValue.js +8 -7
- package/dist/node_modules/lodash-es/_assocIndexOf.js +6 -5
- package/dist/node_modules/lodash-es/_baseAssign.js +7 -6
- package/dist/node_modules/lodash-es/_baseAssignIn.js +7 -6
- package/dist/node_modules/lodash-es/_baseAssignValue.js +6 -5
- package/dist/node_modules/lodash-es/_baseClone.js +51 -50
- package/dist/node_modules/lodash-es/_baseCreate.js +7 -5
- package/dist/node_modules/lodash-es/_baseEach.js +6 -4
- package/dist/node_modules/lodash-es/_baseExtremum.js +6 -5
- package/dist/node_modules/lodash-es/_baseFilter.js +6 -5
- package/dist/node_modules/lodash-es/_baseFindIndex.js +4 -3
- package/dist/node_modules/lodash-es/_baseFlatten.js +8 -7
- package/dist/node_modules/lodash-es/_baseFor.js +5 -3
- package/dist/node_modules/lodash-es/_baseForOwn.js +7 -6
- package/dist/node_modules/lodash-es/_baseGet.js +8 -7
- package/dist/node_modules/lodash-es/_baseGetAllKeys.js +7 -6
- package/dist/node_modules/lodash-es/_baseGetTag.js +9 -8
- package/dist/node_modules/lodash-es/_baseGt.js +4 -3
- package/dist/node_modules/lodash-es/_baseHas.js +6 -5
- package/dist/node_modules/lodash-es/_baseHasIn.js +4 -3
- package/dist/node_modules/lodash-es/_baseIndexOf.js +8 -7
- package/dist/node_modules/lodash-es/_baseIsArguments.js +8 -7
- package/dist/node_modules/lodash-es/_baseIsEqual.js +7 -6
- package/dist/node_modules/lodash-es/_baseIsEqualDeep.js +23 -22
- package/dist/node_modules/lodash-es/_baseIsMap.js +8 -7
- package/dist/node_modules/lodash-es/_baseIsMatch.js +9 -8
- package/dist/node_modules/lodash-es/_baseIsNaN.js +4 -3
- package/dist/node_modules/lodash-es/_baseIsNative.js +10 -9
- package/dist/node_modules/lodash-es/_baseIsSet.js +8 -7
- package/dist/node_modules/lodash-es/_baseIsTypedArray.js +10 -9
- package/dist/node_modules/lodash-es/_baseIteratee.js +10 -9
- package/dist/node_modules/lodash-es/_baseKeys.js +9 -8
- package/dist/node_modules/lodash-es/_baseKeysIn.js +11 -10
- package/dist/node_modules/lodash-es/_baseLt.js +4 -3
- package/dist/node_modules/lodash-es/_baseMap.js +8 -7
- package/dist/node_modules/lodash-es/_baseMatches.js +10 -9
- package/dist/node_modules/lodash-es/_baseMatchesProperty.js +15 -14
- package/dist/node_modules/lodash-es/_baseMerge.js +16 -15
- package/dist/node_modules/lodash-es/_baseMergeDeep.js +24 -23
- package/dist/node_modules/lodash-es/_baseOrderBy.js +23 -22
- package/dist/node_modules/lodash-es/_basePick.js +8 -7
- package/dist/node_modules/lodash-es/_basePickBy.js +9 -8
- package/dist/node_modules/lodash-es/_baseProperty.js +4 -3
- package/dist/node_modules/lodash-es/_basePropertyDeep.js +6 -5
- package/dist/node_modules/lodash-es/_baseRange.js +6 -5
- package/dist/node_modules/lodash-es/_baseReduce.js +4 -3
- package/dist/node_modules/lodash-es/_baseRest.js +8 -7
- package/dist/node_modules/lodash-es/_baseSet.js +14 -13
- package/dist/node_modules/lodash-es/_baseSetToString.js +10 -8
- package/dist/node_modules/lodash-es/_baseSortBy.js +4 -3
- package/dist/node_modules/lodash-es/_baseTimes.js +4 -3
- package/dist/node_modules/lodash-es/_baseToString.js +13 -12
- package/dist/node_modules/lodash-es/_baseTrim.js +7 -6
- package/dist/node_modules/lodash-es/_baseUnary.js +4 -3
- package/dist/node_modules/lodash-es/_baseUniq.js +17 -16
- package/dist/node_modules/lodash-es/_baseValues.js +6 -5
- package/dist/node_modules/lodash-es/_baseZipObject.js +4 -3
- package/dist/node_modules/lodash-es/_cacheHas.js +4 -3
- package/dist/node_modules/lodash-es/_castFunction.js +6 -5
- package/dist/node_modules/lodash-es/_castPath.js +9 -8
- package/dist/node_modules/lodash-es/_cloneArrayBuffer.js +6 -5
- package/dist/node_modules/lodash-es/_cloneBuffer.js +9 -8
- package/dist/node_modules/lodash-es/_cloneDataView.js +6 -5
- package/dist/node_modules/lodash-es/_cloneRegExp.js +6 -5
- package/dist/node_modules/lodash-es/_cloneSymbol.js +7 -6
- package/dist/node_modules/lodash-es/_cloneTypedArray.js +6 -5
- package/dist/node_modules/lodash-es/_compareAscending.js +6 -5
- package/dist/node_modules/lodash-es/_compareMultiple.js +6 -5
- package/dist/node_modules/lodash-es/_copyArray.js +4 -3
- package/dist/node_modules/lodash-es/_copyObject.js +7 -6
- package/dist/node_modules/lodash-es/_copySymbols.js +7 -6
- package/dist/node_modules/lodash-es/_copySymbolsIn.js +7 -6
- package/dist/node_modules/lodash-es/_coreJsData.js +5 -3
- package/dist/node_modules/lodash-es/_createAssigner.js +8 -7
- package/dist/node_modules/lodash-es/_createBaseEach.js +6 -5
- package/dist/node_modules/lodash-es/_createBaseFor.js +4 -3
- package/dist/node_modules/lodash-es/_createFind.js +10 -9
- package/dist/node_modules/lodash-es/_createRange.js +8 -7
- package/dist/node_modules/lodash-es/_createSet.js +9 -7
- package/dist/node_modules/lodash-es/_defineProperty.js +6 -4
- package/dist/node_modules/lodash-es/_equalArrays.js +12 -11
- package/dist/node_modules/lodash-es/_equalByTag.js +29 -28
- package/dist/node_modules/lodash-es/_equalObjects.js +9 -8
- package/dist/node_modules/lodash-es/_flatRest.js +8 -7
- package/dist/node_modules/lodash-es/_freeGlobal.js +4 -2
- package/dist/node_modules/lodash-es/_getAllKeys.js +8 -7
- package/dist/node_modules/lodash-es/_getAllKeysIn.js +8 -7
- package/dist/node_modules/lodash-es/_getMapData.js +6 -5
- package/dist/node_modules/lodash-es/_getMatchData.js +8 -7
- package/dist/node_modules/lodash-es/_getNative.js +8 -7
- package/dist/node_modules/lodash-es/_getPrototype.js +5 -3
- package/dist/node_modules/lodash-es/_getRawTag.js +10 -9
- package/dist/node_modules/lodash-es/_getSymbols.js +9 -7
- package/dist/node_modules/lodash-es/_getSymbolsIn.js +10 -8
- package/dist/node_modules/lodash-es/_getTag.js +21 -19
- package/dist/node_modules/lodash-es/_getValue.js +4 -3
- package/dist/node_modules/lodash-es/_hasPath.js +13 -12
- package/dist/node_modules/lodash-es/_hasUnicode.js +6 -5
- package/dist/node_modules/lodash-es/_hashClear.js +6 -5
- package/dist/node_modules/lodash-es/_hashDelete.js +5 -4
- package/dist/node_modules/lodash-es/_hashGet.js +9 -8
- package/dist/node_modules/lodash-es/_hashHas.js +7 -6
- package/dist/node_modules/lodash-es/_hashSet.js +7 -6
- package/dist/node_modules/lodash-es/_initCloneArray.js +6 -5
- package/dist/node_modules/lodash-es/_initCloneByTag.js +29 -28
- package/dist/node_modules/lodash-es/_initCloneObject.js +8 -7
- package/dist/node_modules/lodash-es/_isFlattenable.js +9 -8
- package/dist/node_modules/lodash-es/_isIndex.js +6 -5
- package/dist/node_modules/lodash-es/_isIterateeCall.js +10 -9
- package/dist/node_modules/lodash-es/_isKey.js +9 -8
- package/dist/node_modules/lodash-es/_isKeyable.js +4 -3
- package/dist/node_modules/lodash-es/_isMasked.js +9 -8
- package/dist/node_modules/lodash-es/_isPrototype.js +6 -5
- package/dist/node_modules/lodash-es/_isStrictComparable.js +6 -5
- package/dist/node_modules/lodash-es/_listCacheClear.js +4 -3
- package/dist/node_modules/lodash-es/_listCacheDelete.js +8 -7
- package/dist/node_modules/lodash-es/_listCacheGet.js +6 -5
- package/dist/node_modules/lodash-es/_listCacheHas.js +6 -5
- package/dist/node_modules/lodash-es/_listCacheSet.js +6 -5
- package/dist/node_modules/lodash-es/_mapCacheClear.js +10 -9
- package/dist/node_modules/lodash-es/_mapCacheDelete.js +7 -6
- package/dist/node_modules/lodash-es/_mapCacheGet.js +6 -5
- package/dist/node_modules/lodash-es/_mapCacheHas.js +6 -5
- package/dist/node_modules/lodash-es/_mapCacheSet.js +6 -5
- package/dist/node_modules/lodash-es/_mapToArray.js +4 -3
- package/dist/node_modules/lodash-es/_matchesStrictComparable.js +4 -3
- package/dist/node_modules/lodash-es/_memoizeCapped.js +8 -7
- package/dist/node_modules/lodash-es/_nativeCreate.js +5 -3
- package/dist/node_modules/lodash-es/_nativeKeys.js +5 -3
- package/dist/node_modules/lodash-es/_nativeKeysIn.js +4 -3
- package/dist/node_modules/lodash-es/_nodeUtil.js +6 -4
- package/dist/node_modules/lodash-es/_objectToString.js +6 -5
- package/dist/node_modules/lodash-es/_overArg.js +4 -3
- package/dist/node_modules/lodash-es/_overRest.js +9 -8
- package/dist/node_modules/lodash-es/_root.js +5 -3
- package/dist/node_modules/lodash-es/_safeGet.js +4 -3
- package/dist/node_modules/lodash-es/_setCacheAdd.js +6 -5
- package/dist/node_modules/lodash-es/_setCacheHas.js +4 -3
- package/dist/node_modules/lodash-es/_setToArray.js +4 -3
- package/dist/node_modules/lodash-es/_setToString.js +6 -4
- package/dist/node_modules/lodash-es/_shortOut.js +7 -6
- package/dist/node_modules/lodash-es/_stackClear.js +6 -5
- package/dist/node_modules/lodash-es/_stackDelete.js +4 -3
- package/dist/node_modules/lodash-es/_stackGet.js +4 -3
- package/dist/node_modules/lodash-es/_stackHas.js +4 -3
- package/dist/node_modules/lodash-es/_stackSet.js +11 -10
- package/dist/node_modules/lodash-es/_strictIndexOf.js +4 -3
- package/dist/node_modules/lodash-es/_stringSize.js +8 -7
- package/dist/node_modules/lodash-es/_stringToPath.js +7 -5
- package/dist/node_modules/lodash-es/_toKey.js +8 -7
- package/dist/node_modules/lodash-es/_toSource.js +8 -7
- package/dist/node_modules/lodash-es/_trimmedEndIndex.js +6 -5
- package/dist/node_modules/lodash-es/_unicodeSize.js +17 -16
- package/dist/node_modules/lodash-es/clone.js +7 -6
- package/dist/node_modules/lodash-es/cloneDeep.js +7 -6
- package/dist/node_modules/lodash-es/constant.js +4 -3
- package/dist/node_modules/lodash-es/defaults.js +13 -11
- package/dist/node_modules/lodash-es/eq.js +4 -3
- package/dist/node_modules/lodash-es/filter.js +9 -8
- package/dist/node_modules/lodash-es/find.js +6 -4
- package/dist/node_modules/lodash-es/findIndex.js +10 -9
- package/dist/node_modules/lodash-es/flatMap.js +7 -6
- package/dist/node_modules/lodash-es/flatten.js +6 -5
- package/dist/node_modules/lodash-es/forEach.js +9 -8
- package/dist/node_modules/lodash-es/forIn.js +8 -7
- package/dist/node_modules/lodash-es/forOwn.js +7 -6
- package/dist/node_modules/lodash-es/get.js +6 -5
- package/dist/node_modules/lodash-es/has.js +7 -6
- package/dist/node_modules/lodash-es/hasIn.js +7 -6
- package/dist/node_modules/lodash-es/identity.js +4 -3
- package/dist/node_modules/lodash-es/isArguments.js +8 -6
- package/dist/node_modules/lodash-es/isArray.js +4 -2
- package/dist/node_modules/lodash-es/isArrayLike.js +7 -6
- package/dist/node_modules/lodash-es/isArrayLikeObject.js +7 -6
- package/dist/node_modules/lodash-es/isBuffer.js +6 -4
- package/dist/node_modules/lodash-es/isEmpty.js +18 -17
- package/dist/node_modules/lodash-es/isFunction.js +10 -9
- package/dist/node_modules/lodash-es/isLength.js +6 -5
- package/dist/node_modules/lodash-es/isMap.js +7 -5
- package/dist/node_modules/lodash-es/isObject.js +4 -3
- package/dist/node_modules/lodash-es/isObjectLike.js +4 -3
- package/dist/node_modules/lodash-es/isPlainObject.js +13 -12
- package/dist/node_modules/lodash-es/isSet.js +7 -5
- package/dist/node_modules/lodash-es/isString.js +9 -8
- package/dist/node_modules/lodash-es/isSymbol.js +8 -7
- package/dist/node_modules/lodash-es/isTypedArray.js +7 -5
- package/dist/node_modules/lodash-es/isUndefined.js +4 -3
- package/dist/node_modules/lodash-es/keys.js +8 -7
- package/dist/node_modules/lodash-es/keysIn.js +8 -7
- package/dist/node_modules/lodash-es/last.js +4 -3
- package/dist/node_modules/lodash-es/map.js +9 -8
- package/dist/node_modules/lodash-es/mapValues.js +9 -8
- package/dist/node_modules/lodash-es/max.js +8 -7
- package/dist/node_modules/lodash-es/memoize.js +9 -8
- package/dist/node_modules/lodash-es/merge.js +7 -5
- package/dist/node_modules/lodash-es/min.js +8 -7
- package/dist/node_modules/lodash-es/minBy.js +8 -7
- package/dist/node_modules/lodash-es/noop.js +4 -3
- package/dist/node_modules/lodash-es/now.js +6 -4
- package/dist/node_modules/lodash-es/pick.js +7 -5
- package/dist/node_modules/lodash-es/property.js +9 -8
- package/dist/node_modules/lodash-es/range.js +5 -3
- package/dist/node_modules/lodash-es/reduce.js +11 -10
- package/dist/node_modules/lodash-es/size.js +13 -12
- package/dist/node_modules/lodash-es/sortBy.js +9 -7
- package/dist/node_modules/lodash-es/stubArray.js +4 -3
- package/dist/node_modules/lodash-es/stubFalse.js +4 -3
- package/dist/node_modules/lodash-es/toFinite.js +7 -6
- package/dist/node_modules/lodash-es/toInteger.js +6 -5
- package/dist/node_modules/lodash-es/toNumber.js +14 -13
- package/dist/node_modules/lodash-es/toPlainObject.js +7 -6
- package/dist/node_modules/lodash-es/toString.js +6 -5
- package/dist/node_modules/lodash-es/union.js +9 -7
- package/dist/node_modules/lodash-es/uniqBy.js +7 -6
- package/dist/node_modules/lodash-es/uniqueId.js +8 -7
- package/dist/node_modules/lodash-es/values.js +7 -6
- package/dist/node_modules/lodash-es/zipObject.js +7 -6
- package/dist/node_modules/longest-streak/index.js +4 -2
- package/dist/node_modules/markdown-table/index.js +11 -9
- package/dist/node_modules/marked/lib/marked.esm.js +687 -685
- package/dist/node_modules/mdast-util-find-and-replace/lib/index.js +14 -12
- package/dist/node_modules/mdast-util-find-and-replace/node_modules/escape-string-regexp/index.js +4 -2
- package/dist/node_modules/mdast-util-from-markdown/lib/index.js +182 -180
- package/dist/node_modules/mdast-util-gfm/lib/index.js +20 -18
- package/dist/node_modules/mdast-util-gfm-autolink-literal/lib/index.js +69 -67
- package/dist/node_modules/mdast-util-gfm-footnote/lib/index.js +47 -45
- package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.js +15 -13
- package/dist/node_modules/mdast-util-gfm-table/lib/index.js +30 -28
- package/dist/node_modules/mdast-util-gfm-task-list-item/lib/index.js +16 -14
- package/dist/node_modules/mdast-util-math/lib/index.js +15 -13
- package/dist/node_modules/mdast-util-phrasing/lib/index.js +5 -3
- package/dist/node_modules/mdast-util-to-hast/lib/footer.js +11 -9
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/break.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/delete.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js +6 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/heading.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/html.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js +8 -6
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/image.js +6 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/index.js +55 -53
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js +8 -6
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/link.js +6 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/list-item.js +15 -13
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/list.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/root.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/strong.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-row.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table.js +6 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.js +6 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/index.js +8 -6
- package/dist/node_modules/mdast-util-to-hast/lib/revert.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/state.js +61 -59
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js +6 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.js +6 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.js +18 -16
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/definition.js +6 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js +14 -12
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.js +8 -6
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/html.js +6 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js +6 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/image.js +8 -6
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/index.js +43 -41
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js +7 -5
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js +6 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.js +11 -9
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/list-item.js +7 -5
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/list.js +12 -10
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js +4 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.js +6 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.js +14 -12
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.js +4 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js +7 -5
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js +4 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js +6 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js +4 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js +4 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-fence.js +4 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js +4 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-quote.js +4 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js +4 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule.js +4 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-strong.js +4 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js +4 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-info.js +6 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js +4 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js +8 -7
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js +6 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js +6 -4
- package/dist/node_modules/mdast-util-to-string/lib/index.js +14 -12
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/architectureDiagram-Q4EWVU46.js +695 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-DXYQGD6D.js +3038 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{c4Diagram-YG6GDRKO.js → c4Diagram-AHTNJAMY.js} +581 -573
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-336JU56O.js +49 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-426QAEUC.js +11 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-4BX2VUAB.js +6 -4
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-B4BG7PRW.js → chunk-4TB4RGXK.js} +590 -444
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-55IACEB6.js +7 -5
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-5FUZZQ4R.js +3640 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-5PVQY5BW.js +342 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-AGHRB4JF.js +22 -20
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-BSJP7CBP.js +82 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-EDXVE4YY.js +25 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ENJZ2VHE.js +570 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-FMBD7UC4.js +5 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ICPOFSXX.js +2348 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-OYMX7WX6.js +2014 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-QZHKN3VN.js +8 -4
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-U2HBQHQK.js +274 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-X2U36JSP.js +67 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-XPW4576I.js +1146 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-YZCP3GAM.js +62 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ZZ45TVLE.js +32 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-6PBFFD2Q.js +29 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-HSJHXN6E.js +29 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/cose-bilkent-S5V4N54A.js +116 -114
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/dagre-KV5264BT.js +265 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-5BDNPKRD.js +101 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-G4DWMVQ6.js +284 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-MMDJMWI5.js +213 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-TYMM5635.js +133 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{erDiagram-Q2GNP2WA.js → erDiagram-SMLLAGMA.js} +549 -445
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{flowDiagram-NV44I4VS.js → flowDiagram-DWJPFMVM.js} +1366 -1345
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-T4ZO3ILL.js +1720 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-UUTBAWPF.js +730 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/infoDiagram-42DDH7IO.js +19 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ishikawaDiagram-UXIWVN3A.js +718 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/journeyDiagram-VCZTEJTY.js +885 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{kanban-definition-3W4ZIXB7.js → kanban-definition-6JOO6SKY.js} +124 -118
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{mindmap-definition-VGOIOE7T.js → mindmap-definition-QFDTVHPH.js} +172 -122
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/pieDiagram-DEJITSTG.js +119 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{quadrantDiagram-AYHSOK5B.js → quadrantDiagram-34T5L4WZ.js} +279 -273
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{requirementDiagram-UZGBJVZJ.js → requirementDiagram-MS252O5E.js} +100 -66
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sankeyDiagram-XADWPNL6.js +529 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-FGHM5R23.js +4159 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-FHFEXIEX.js +222 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-QKLJ7IA2.js +27 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-GMOUNBTQ.js +1073 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/vennDiagram-DHZGUBPP.js +961 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/wardleyDiagram-NUSXRM2D.js +578 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/xychartDiagram-5P7HB3ND.js +2000 -0
- package/dist/node_modules/mermaid/dist/mermaid.core.js +492 -445
- package/dist/node_modules/micromark/lib/constructs.js +80 -79
- package/dist/node_modules/micromark/lib/create-tokenizer.js +14 -12
- package/dist/node_modules/micromark/lib/initialize/content.js +9 -7
- package/dist/node_modules/micromark/lib/initialize/document.js +15 -14
- package/dist/node_modules/micromark/lib/initialize/flow.js +9 -7
- package/dist/node_modules/micromark/lib/initialize/text.js +8 -6
- package/dist/node_modules/micromark/lib/parse.js +20 -18
- package/dist/node_modules/micromark/lib/postprocess.js +6 -4
- package/dist/node_modules/micromark/lib/preprocess.js +6 -4
- package/dist/node_modules/micromark-core-commonmark/lib/attention.js +20 -18
- package/dist/node_modules/micromark-core-commonmark/lib/autolink.js +17 -15
- package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js +11 -9
- package/dist/node_modules/micromark-core-commonmark/lib/block-quote.js +15 -13
- package/dist/node_modules/micromark-core-commonmark/lib/character-escape.js +8 -6
- package/dist/node_modules/micromark-core-commonmark/lib/character-reference.js +16 -14
- package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.js +22 -21
- package/dist/node_modules/micromark-core-commonmark/lib/code-indented.js +16 -15
- package/dist/node_modules/micromark-core-commonmark/lib/code-text.js +13 -11
- package/dist/node_modules/micromark-core-commonmark/lib/content.js +18 -17
- package/dist/node_modules/micromark-core-commonmark/lib/definition.js +30 -29
- package/dist/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +8 -6
- package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.js +15 -13
- package/dist/node_modules/micromark-core-commonmark/lib/html-flow.js +68 -67
- package/dist/node_modules/micromark-core-commonmark/lib/html-text.js +66 -64
- package/dist/node_modules/micromark-core-commonmark/lib/label-end.js +112 -111
- package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.js +8 -6
- package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.js +8 -6
- package/dist/node_modules/micromark-core-commonmark/lib/line-ending.js +8 -6
- package/dist/node_modules/micromark-core-commonmark/lib/list.js +32 -31
- package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.js +12 -10
- package/dist/node_modules/micromark-core-commonmark/lib/thematic-break.js +11 -9
- package/dist/node_modules/micromark-extension-gfm/index.js +16 -14
- package/dist/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js +122 -120
- package/dist/node_modules/micromark-extension-gfm-footnote/lib/syntax.js +33 -31
- package/dist/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js +11 -9
- package/dist/node_modules/micromark-extension-gfm-table/lib/edit-map.js +6 -4
- package/dist/node_modules/micromark-extension-gfm-table/lib/infer.js +4 -2
- package/dist/node_modules/micromark-extension-gfm-table/lib/syntax.js +36 -34
- package/dist/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js +20 -18
- package/dist/node_modules/micromark-extension-math/lib/math-flow.js +21 -20
- package/dist/node_modules/micromark-extension-math/lib/math-text.js +11 -9
- package/dist/node_modules/micromark-extension-math/lib/syntax.js +8 -6
- package/dist/node_modules/micromark-factory-destination/index.js +10 -8
- package/dist/node_modules/micromark-factory-label/index.js +7 -5
- package/dist/node_modules/micromark-factory-space/index.js +7 -5
- package/dist/node_modules/micromark-factory-title/index.js +8 -6
- package/dist/node_modules/micromark-factory-whitespace/index.js +7 -5
- package/dist/node_modules/micromark-util-character/index.js +14 -12
- package/dist/node_modules/micromark-util-chunked/index.js +6 -4
- package/dist/node_modules/micromark-util-classify-character/index.js +7 -5
- package/dist/node_modules/micromark-util-combine-extensions/index.js +13 -11
- package/dist/node_modules/micromark-util-decode-numeric-character-reference/index.js +4 -2
- package/dist/node_modules/micromark-util-decode-string/index.js +11 -9
- package/dist/node_modules/micromark-util-html-tag-name/index.js +4 -2
- package/dist/node_modules/micromark-util-normalize-identifier/index.js +4 -2
- package/dist/node_modules/micromark-util-resolve-all/index.js +4 -2
- package/dist/node_modules/micromark-util-sanitize-uri/index.js +6 -4
- package/dist/node_modules/micromark-util-subtokenize/index.js +10 -8
- package/dist/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +10 -8
- package/dist/node_modules/motion/dist/es/react.js +2 -2
- package/dist/node_modules/nanoid/index.browser.js +6 -4
- package/dist/node_modules/nanoid/url-alphabet/index.js +4 -2
- package/dist/node_modules/property-information/index.js +25 -23
- package/dist/node_modules/property-information/lib/aria.js +41 -39
- package/dist/node_modules/property-information/lib/find.js +18 -16
- package/dist/node_modules/property-information/lib/hast-to-react.js +4 -2
- package/dist/node_modules/property-information/lib/html.js +96 -94
- package/dist/node_modules/property-information/lib/normalize.js +4 -2
- package/dist/node_modules/property-information/lib/svg.js +79 -77
- package/dist/node_modules/property-information/lib/util/case-insensitive-transform.js +6 -4
- package/dist/node_modules/property-information/lib/util/case-sensitive-transform.js +4 -2
- package/dist/node_modules/property-information/lib/util/create.js +10 -8
- package/dist/node_modules/property-information/lib/util/defined-info.js +13 -11
- package/dist/node_modules/property-information/lib/util/info.js +5 -3
- package/dist/node_modules/property-information/lib/util/merge.js +6 -4
- package/dist/node_modules/property-information/lib/util/schema.js +5 -3
- package/dist/node_modules/property-information/lib/util/types.js +15 -14
- package/dist/node_modules/property-information/lib/xlink.js +5 -3
- package/dist/node_modules/property-information/lib/xml.js +5 -3
- package/dist/node_modules/property-information/lib/xmlns.js +7 -5
- package/dist/node_modules/rehype-harden/dist/index.js +47 -45
- package/dist/node_modules/rehype-katex/lib/index.js +25 -23
- package/dist/node_modules/rehype-raw/lib/index.js +6 -4
- package/dist/node_modules/rehype-sanitize/lib/index.js +6 -4
- package/dist/node_modules/remark-gfm/lib/index.js +9 -7
- package/dist/node_modules/remark-math/lib/index.js +9 -7
- package/dist/node_modules/remark-parse/lib/index.js +6 -4
- package/dist/node_modules/remark-rehype/lib/index.js +7 -5
- package/dist/node_modules/remend/dist/index.js +368 -297
- package/dist/node_modules/roughjs/bundled/rough.esm.js +877 -875
- package/dist/node_modules/shiki/dist/bundle-full.js +13 -11
- package/dist/node_modules/shiki/dist/chunk-CtajNgzt.js +17 -0
- package/dist/node_modules/shiki/dist/engine-oniguruma.js +7 -0
- package/dist/node_modules/shiki/dist/{langs.js → langs-bundle-full-DfKZStlK.js} +8 -6
- package/dist/node_modules/shiki/dist/themes.js +6 -4
- package/dist/node_modules/shiki/dist/wasm.js +2 -2
- package/dist/node_modules/space-separated-tokens/index.js +5 -3
- package/dist/node_modules/streamdown/dist/chunk-BO2N2NFS.js +2500 -0
- package/dist/node_modules/streamdown/dist/highlighted-body-OFNGDK62.js +37 -0
- package/dist/node_modules/streamdown/dist/index.js +1 -1
- package/dist/node_modules/streamdown/dist/mermaid-GHXKKRXX.js +3 -0
- package/dist/node_modules/streamdown/node_modules/marked/lib/marked.esm.js +701 -699
- package/dist/node_modules/stringify-entities/lib/constant/dangerous.js +4 -2
- package/dist/node_modules/stringify-entities/lib/core.js +18 -16
- package/dist/node_modules/stringify-entities/lib/index.js +7 -5
- package/dist/node_modules/stringify-entities/lib/util/format-smart.js +10 -8
- package/dist/node_modules/stringify-entities/lib/util/to-decimal.js +6 -4
- package/dist/node_modules/stringify-entities/lib/util/to-hexadecimal.js +6 -4
- package/dist/node_modules/stringify-entities/lib/util/to-named.js +14 -12
- package/dist/node_modules/style-to-js/cjs/index.js +9 -7
- package/dist/node_modules/style-to-js/cjs/utilities.js +6 -4
- package/dist/node_modules/style-to-object/cjs/index.js +8 -6
- package/dist/node_modules/stylis/src/Enum.js +4 -2
- package/dist/node_modules/stylis/src/Parser.js +38 -36
- package/dist/node_modules/stylis/src/Serializer.js +17 -15
- package/dist/node_modules/stylis/src/Tokenizer.js +53 -51
- package/dist/node_modules/stylis/src/Utility.js +17 -15
- package/dist/node_modules/trim-lines/index.js +10 -8
- package/dist/node_modules/trough/lib/index.js +6 -4
- package/dist/node_modules/ts-dedent/esm/index.js +4 -2
- package/dist/node_modules/unified/lib/callable-instance.js +4 -2
- package/dist/node_modules/unified/lib/index.js +102 -101
- package/dist/node_modules/unified/node_modules/is-plain-obj/index.js +4 -2
- package/dist/node_modules/unist-util-find-after/lib/index.js +6 -4
- package/dist/node_modules/unist-util-is/lib/index.js +31 -29
- package/dist/node_modules/unist-util-position/lib/index.js +7 -5
- package/dist/node_modules/unist-util-stringify-position/lib/index.js +10 -8
- package/dist/node_modules/unist-util-visit/lib/index.js +6 -4
- package/dist/node_modules/unist-util-visit-parents/lib/color.js +4 -2
- package/dist/node_modules/unist-util-visit-parents/lib/index.js +21 -20
- package/dist/node_modules/uuid/dist/esm-browser/native.js +3 -2
- package/dist/node_modules/uuid/dist/esm-browser/rng.js +8 -6
- package/dist/node_modules/uuid/dist/esm-browser/stringify.js +7 -5
- package/dist/node_modules/uuid/dist/esm-browser/v4.js +10 -9
- package/dist/node_modules/vaul/dist/index.js +276 -274
- package/dist/node_modules/vfile/lib/index.js +44 -42
- package/dist/node_modules/vfile/lib/minpath.browser.js +22 -20
- package/dist/node_modules/vfile/lib/minproc.browser.js +5 -3
- package/dist/node_modules/vfile/lib/minurl.browser.js +8 -6
- package/dist/node_modules/vfile/lib/minurl.shared.js +4 -2
- package/dist/node_modules/vfile-location/lib/index.js +7 -5
- package/dist/node_modules/vfile-message/lib/index.js +7 -5
- package/dist/node_modules/vscode-jsonrpc/browser.js +8 -6
- package/dist/node_modules/vscode-jsonrpc/lib/browser/main.js +11 -9
- package/dist/node_modules/vscode-jsonrpc/lib/browser/ril.js +8 -6
- package/dist/node_modules/vscode-jsonrpc/lib/common/api.js +28 -26
- package/dist/node_modules/vscode-jsonrpc/lib/common/cancellation.js +17 -15
- package/dist/node_modules/vscode-jsonrpc/lib/common/connection.js +13 -11
- package/dist/node_modules/vscode-jsonrpc/lib/common/disposable.js +6 -4
- package/dist/node_modules/vscode-jsonrpc/lib/common/events.js +8 -6
- package/dist/node_modules/vscode-jsonrpc/lib/common/is.js +6 -4
- package/dist/node_modules/vscode-jsonrpc/lib/common/linkedMap.js +6 -4
- package/dist/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js +6 -4
- package/dist/node_modules/vscode-jsonrpc/lib/common/messageReader.js +11 -9
- package/dist/node_modules/vscode-jsonrpc/lib/common/messageWriter.js +31 -29
- package/dist/node_modules/vscode-jsonrpc/lib/common/messages.js +8 -6
- package/dist/node_modules/vscode-jsonrpc/lib/common/ral.js +6 -4
- package/dist/node_modules/vscode-jsonrpc/lib/common/semaphore.js +8 -6
- package/dist/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/browser/main.js +10 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/api.js +23 -21
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/connection.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/messages.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js +14 -12
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.js +55 -53
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.js +10 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js +12 -10
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js +6 -4
- package/dist/node_modules/vscode-languageserver-textdocument/lib/esm/main.js +21 -19
- package/dist/node_modules/vscode-languageserver-types/lib/esm/main.js +849 -847
- package/dist/node_modules/vscode-uri/lib/esm/index.js +6 -4
- package/dist/node_modules/web-namespaces/index.js +4 -2
- package/dist/node_modules/zwitch/index.js +7 -5
- package/dist/packages/contracts/dist/enums/index.js +14 -12
- package/dist/packages/contracts/dist/enums/registry.enum.js +6 -4
- package/dist/packages/contracts/dist/enums/sort-order.enum.js +6 -4
- package/dist/packages/contracts/dist/enums/user-type.enum.js +6 -4
- package/dist/packages/contracts/dist/enums/workflow-state.enum.js +6 -4
- package/dist/pages/DashboardPage.js +55 -99
- package/dist/pages/DebugPage.js +12 -17
- package/dist/pages/DebugWorkflowDetailsPage.js +91 -119
- package/dist/pages/DebugWorkflowsPage.js +39 -37
- package/dist/pages/EmbedWorkbenchPage.js +48 -62
- package/dist/pages/PreviewWorkbenchPage.js +243 -324
- package/dist/pages/RunsListPage.js +44 -61
- package/dist/pages/RunsPage.js +31 -48
- package/dist/pages/StudioLandingPage.js +97 -132
- package/dist/pages/WorkbenchPage.js +56 -86
- package/dist/pages/WorkflowDebugPage.js +74 -110
- package/dist/pages/WorkspacePage.js +72 -115
- package/dist/pages/WorkspaceRunsPage.js +43 -70
- package/dist/pages/WorkspacesPage.js +24 -35
- package/dist/providers/ComponentOverridesProvider.js +9 -12
- package/dist/providers/InvalidationEventsProvider.js +33 -35
- package/dist/providers/QueryProvider.js +14 -18
- package/dist/providers/SseProvider.js +28 -29
- package/dist/providers/StudioProvider.js +14 -19
- package/dist/routing/LocalRouter.js +6 -9
- package/dist/services/createApiClient.js +7 -5
- package/dist/services/eventEmitter.js +3 -2
- package/dist/services/index.js +2 -2
- package/dist/types/ai.types.js +7 -5
- package/package.json +33 -33
- package/dist/_virtual/rolldown_runtime.js +0 -20
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/architecture-7HQA4BMR.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-4F5CHEZ2.js +0 -23
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-B2363JML.js +0 -60
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-FRFDVMJY.js +0 -23
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-PL6DKKU2.js +0 -28
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-SJTYNZTY.js +0 -23
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-TCCFYFTB.js +0 -787
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-TQ3KTPDO.js +0 -23
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-UMXZTB3W.js +0 -30
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/gitGraph-G5XIXVHT.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-VBDWY6EO.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-DYOGHKS2.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-VRWISCQL.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-ZZBFDIW7.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-GDKQZRPO.js +0 -3
- package/dist/node_modules/@ungap/structured-clone/esm/types.js +0 -2
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/context_assist.js +0 -16
- package/dist/node_modules/langium/lib/index.js +0 -182
- package/dist/node_modules/langium/lib/parser/indentation-aware.js +0 -141
- package/dist/node_modules/langium/lib/utils/index.js +0 -53
- package/dist/node_modules/langium/lib/workspace/profiler.js +0 -89
- package/dist/node_modules/lodash/_Symbol.js +0 -7
- package/dist/node_modules/lodash/_baseGetTag.js +0 -13
- package/dist/node_modules/lodash/_baseTrim.js +0 -11
- package/dist/node_modules/lodash/_freeGlobal.js +0 -6
- package/dist/node_modules/lodash/_getRawTag.js +0 -17
- package/dist/node_modules/lodash/_objectToString.js +0 -10
- package/dist/node_modules/lodash/_root.js +0 -8
- package/dist/node_modules/lodash/_trimmedEndIndex.js +0 -11
- package/dist/node_modules/lodash/isObject.js +0 -10
- package/dist/node_modules/lodash/isObjectLike.js +0 -9
- package/dist/node_modules/lodash/isSymbol.js +0 -12
- package/dist/node_modules/lodash/now.js +0 -10
- package/dist/node_modules/lodash/toNumber.js +0 -22
- package/dist/node_modules/lodash-es/_arrayAggregator.js +0 -9
- package/dist/node_modules/lodash-es/_arrayEvery.js +0 -6
- package/dist/node_modules/lodash-es/_baseAggregator.js +0 -8
- package/dist/node_modules/lodash-es/_baseDifference.js +0 -22
- package/dist/node_modules/lodash-es/_baseEvery.js +0 -9
- package/dist/node_modules/lodash-es/_baseIsRegExp.js +0 -8
- package/dist/node_modules/lodash-es/_baseSlice.js +0 -8
- package/dist/node_modules/lodash-es/_baseSome.js +0 -9
- package/dist/node_modules/lodash-es/_createAggregator.js +0 -12
- package/dist/node_modules/lodash-es/assign.js +0 -14
- package/dist/node_modules/lodash-es/compact.js +0 -9
- package/dist/node_modules/lodash-es/difference.js +0 -8
- package/dist/node_modules/lodash-es/drop.js +0 -8
- package/dist/node_modules/lodash-es/dropRight.js +0 -8
- package/dist/node_modules/lodash-es/every.js +0 -11
- package/dist/node_modules/lodash-es/groupBy.js +0 -6
- package/dist/node_modules/lodash-es/head.js +0 -5
- package/dist/node_modules/lodash-es/includes.js +0 -13
- package/dist/node_modules/lodash-es/indexOf.js +0 -11
- package/dist/node_modules/lodash-es/isRegExp.js +0 -5
- package/dist/node_modules/lodash-es/negate.js +0 -16
- package/dist/node_modules/lodash-es/pickBy.js +0 -15
- package/dist/node_modules/lodash-es/reject.js +0 -10
- package/dist/node_modules/lodash-es/some.js +0 -11
- package/dist/node_modules/lodash-es/uniq.js +0 -6
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/architectureDiagram-VXUJARFQ.js +0 -673
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-VD42YOAC.js +0 -3010
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ABZYJK2D.js +0 -1547
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ATLVNIR6.js +0 -65
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-CVBHYZKI.js +0 -10
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-DI55MBZ5.js +0 -1994
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-DR5Q36YT.js +0 -135
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-EXTU4WIE.js +0 -9
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-HN2XXSSU.js +0 -74
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-JA3XYJ7Z.js +0 -247
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-JZLCHNYA.js +0 -3516
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-MI3HLSF2.js +0 -1140
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-N4CR4FBY.js +0 -39
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-QN33PNHL.js +0 -23
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-QXUST7PY.js +0 -497
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-S3R3BYOJ.js +0 -338
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-TZMSLE5B.js +0 -55
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-2ON5EDUG.js +0 -26
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-WZHVMYZB.js +0 -26
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/dagre-6UL2VRFP.js +0 -263
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-PSM6KHXK.js +0 -283
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-QEK2KX5R.js +0 -211
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-S2PKOQOG.js +0 -129
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-JELNMOA3.js +0 -1688
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-V2S2FVAM.js +0 -621
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/infoDiagram-HS3SLOUP.js +0 -18
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/journeyDiagram-XKPGCS4Q.js +0 -883
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/pieDiagram-ADFJNKIX.js +0 -117
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sankeyDiagram-TZEHDZUN.js +0 -519
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-WL72ISMW.js +0 -3560
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-FKZM4ZOC.js +0 -220
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-4FDKWEC3.js +0 -25
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-IT6M3QCI.js +0 -833
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/xychartDiagram-PRI3JC2R.js +0 -1975
- package/dist/node_modules/streamdown/dist/chunk-RLXIAIE6.js +0 -2189
- package/dist/node_modules/streamdown/dist/highlighted-body-B3W2YXNL.js +0 -33
- package/dist/node_modules/streamdown/dist/mermaid-3ZIDBTTL.js +0 -3
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
1
|
+
import e from "../../../../d3-selection/src/select.js";
|
|
2
|
+
import t from "../../../../d3-selection/src/pointer.js";
|
|
3
|
+
import n from "../../../../d3-drag/src/drag.js";
|
|
4
|
+
import r from "../../../../d3-interpolate/src/value.js";
|
|
5
|
+
import i from "../../../../d3-interpolate/src/zoom.js";
|
|
6
|
+
import a, { identity as o } from "../../../../d3-zoom/src/transform.js";
|
|
7
|
+
import s from "../../../../d3-zoom/src/zoom.js";
|
|
8
8
|
import "../../../../d3-zoom/src/index.js";
|
|
9
|
-
|
|
9
|
+
//#region ../../node_modules/@xyflow/system/dist/esm/index.js
|
|
10
|
+
var c = {
|
|
10
11
|
error001: () => "[React Flow]: Seems like you have not used zustand provider as an ancestor. Help: https://reactflow.dev/error#001",
|
|
11
12
|
error002: () => "It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",
|
|
12
13
|
error003: (e) => `Node type "${e}" not found. Using fallback type "default".`,
|
|
@@ -15,21 +16,21 @@ var errorMessages = {
|
|
|
15
16
|
error006: () => "Can't create edge. An edge needs a source and a target.",
|
|
16
17
|
error007: (e) => `The old edge with id=${e} does not exist.`,
|
|
17
18
|
error009: (e) => `Marker type "${e}" doesn't exist.`,
|
|
18
|
-
error008: (e, { id:
|
|
19
|
+
error008: (e, { id: t, sourceHandle: n, targetHandle: r }) => `Couldn't create edge for ${e} handle id: "${e === "source" ? n : r}", edge id: ${t}.`,
|
|
19
20
|
error010: () => "Handle: No node id found. Make sure to only use a Handle inside a custom Node.",
|
|
20
21
|
error011: (e) => `Edge type "${e}" not found. Using fallback type "default".`,
|
|
21
22
|
error012: (e) => `Node with id "${e}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`,
|
|
22
23
|
error013: (e = "react") => `It seems that you haven't loaded the styles. Please import '@xyflow/${e}/dist/style.css' or base.css to make sure everything is working properly.`,
|
|
23
24
|
error014: () => "useNodeConnections: No node ID found. Call useNodeConnections inside a custom Node or provide a node ID.",
|
|
24
25
|
error015: () => "It seems that you are trying to drag a node that is not initialized. Please use onNodesChange as explained in the docs."
|
|
25
|
-
},
|
|
26
|
+
}, l = [[-Infinity, -Infinity], [Infinity, Infinity]], u = [
|
|
26
27
|
"Enter",
|
|
27
28
|
" ",
|
|
28
29
|
"Escape"
|
|
29
|
-
],
|
|
30
|
+
], d = {
|
|
30
31
|
"node.a11yDescription.default": "Press enter or space to select a node. Press delete to remove it and escape to cancel.",
|
|
31
32
|
"node.a11yDescription.keyboardDisabled": "Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.",
|
|
32
|
-
"node.a11yDescription.ariaLiveMessage": ({ direction: e, x:
|
|
33
|
+
"node.a11yDescription.ariaLiveMessage": ({ direction: e, x: t, y: n }) => `Moved selected node ${e}. New position, x: ${t}, y: ${n}`,
|
|
33
34
|
"edge.a11yDescription.default": "Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.",
|
|
34
35
|
"controls.ariaLabel": "Control Panel",
|
|
35
36
|
"controls.zoomIn.ariaLabel": "Zoom In",
|
|
@@ -38,19 +39,19 @@ var errorMessages = {
|
|
|
38
39
|
"controls.interactive.ariaLabel": "Toggle Interactivity",
|
|
39
40
|
"minimap.ariaLabel": "Mini Map",
|
|
40
41
|
"handle.ariaLabel": "Handle"
|
|
41
|
-
},
|
|
42
|
+
}, f;
|
|
42
43
|
(function(e) {
|
|
43
44
|
e.Strict = "strict", e.Loose = "loose";
|
|
44
|
-
})(
|
|
45
|
-
var
|
|
45
|
+
})(f ||= {});
|
|
46
|
+
var p;
|
|
46
47
|
(function(e) {
|
|
47
48
|
e.Free = "free", e.Vertical = "vertical", e.Horizontal = "horizontal";
|
|
48
|
-
})(
|
|
49
|
-
var
|
|
49
|
+
})(p ||= {});
|
|
50
|
+
var m;
|
|
50
51
|
(function(e) {
|
|
51
52
|
e.Partial = "partial", e.Full = "full";
|
|
52
|
-
})(
|
|
53
|
-
var
|
|
53
|
+
})(m ||= {});
|
|
54
|
+
var h = {
|
|
54
55
|
inProgress: !1,
|
|
55
56
|
isValid: null,
|
|
56
57
|
from: null,
|
|
@@ -62,41 +63,41 @@ var initialConnection = {
|
|
|
62
63
|
toPosition: null,
|
|
63
64
|
toNode: null,
|
|
64
65
|
pointer: null
|
|
65
|
-
},
|
|
66
|
+
}, g;
|
|
66
67
|
(function(e) {
|
|
67
68
|
e.Bezier = "default", e.Straight = "straight", e.Step = "step", e.SmoothStep = "smoothstep", e.SimpleBezier = "simplebezier";
|
|
68
|
-
})(
|
|
69
|
-
var
|
|
69
|
+
})(g ||= {});
|
|
70
|
+
var _;
|
|
70
71
|
(function(e) {
|
|
71
72
|
e.Arrow = "arrow", e.ArrowClosed = "arrowclosed";
|
|
72
|
-
})(
|
|
73
|
-
var
|
|
73
|
+
})(_ ||= {});
|
|
74
|
+
var v;
|
|
74
75
|
(function(e) {
|
|
75
76
|
e.Left = "left", e.Top = "top", e.Right = "right", e.Bottom = "bottom";
|
|
76
|
-
})(
|
|
77
|
-
var
|
|
78
|
-
[
|
|
79
|
-
[
|
|
80
|
-
[
|
|
81
|
-
[
|
|
77
|
+
})(v ||= {});
|
|
78
|
+
var y = {
|
|
79
|
+
[v.Left]: v.Right,
|
|
80
|
+
[v.Right]: v.Left,
|
|
81
|
+
[v.Top]: v.Bottom,
|
|
82
|
+
[v.Bottom]: v.Top
|
|
82
83
|
};
|
|
83
|
-
function
|
|
84
|
+
function b(e) {
|
|
84
85
|
return e === null ? null : e ? "valid" : "invalid";
|
|
85
86
|
}
|
|
86
|
-
var
|
|
87
|
-
let { width:
|
|
87
|
+
var x = (e) => "id" in e && "source" in e && "target" in e, S = (e) => "id" in e && "position" in e && !("source" in e) && !("target" in e), C = (e) => "id" in e && "internals" in e && !("source" in e) && !("target" in e), w = (e, t = [0, 0]) => {
|
|
88
|
+
let { width: n, height: r } = J(e), i = e.origin ?? t, a = n * i[0], o = r * i[1];
|
|
88
89
|
return {
|
|
89
|
-
x: e.position.x -
|
|
90
|
-
y: e.position.y -
|
|
90
|
+
x: e.position.x - a,
|
|
91
|
+
y: e.position.y - o
|
|
91
92
|
};
|
|
92
|
-
},
|
|
93
|
+
}, T = (e, t = { nodeOrigin: [0, 0] }) => (process.env.NODE_ENV === "development" && !t.nodeLookup && console.warn("Please use `getNodesBounds` from `useReactFlow`/`useSvelteFlow` hook to ensure correct values for sub flows. If not possible, you have to provide a nodeLookup to support sub flows."), e.length === 0 ? {
|
|
93
94
|
x: 0,
|
|
94
95
|
y: 0,
|
|
95
96
|
width: 0,
|
|
96
97
|
height: 0
|
|
97
|
-
} :
|
|
98
|
-
let
|
|
99
|
-
return
|
|
98
|
+
} : R(e.reduce((e, n) => {
|
|
99
|
+
let r = typeof n == "string", i = !t.nodeLookup && !r ? n : void 0;
|
|
100
|
+
return t.nodeLookup && (i = r ? t.nodeLookup.get(n) : C(n) ? n : t.nodeLookup.get(n.id)), te(e, i ? ne(i, t.nodeOrigin) : {
|
|
100
101
|
x: 0,
|
|
101
102
|
y: 0,
|
|
102
103
|
x2: 0,
|
|
@@ -107,201 +108,201 @@ var isEdgeBase = (e) => "id" in e && "source" in e && "target" in e, isNodeBase
|
|
|
107
108
|
y: Infinity,
|
|
108
109
|
x2: -Infinity,
|
|
109
110
|
y2: -Infinity
|
|
110
|
-
}))),
|
|
111
|
-
let
|
|
111
|
+
}))), E = (e, t = {}) => {
|
|
112
|
+
let n = {
|
|
112
113
|
x: Infinity,
|
|
113
114
|
y: Infinity,
|
|
114
115
|
x2: -Infinity,
|
|
115
116
|
y2: -Infinity
|
|
116
|
-
},
|
|
117
|
+
}, r = !1;
|
|
117
118
|
return e.forEach((e) => {
|
|
118
|
-
(
|
|
119
|
-
}),
|
|
119
|
+
(t.filter === void 0 || t.filter(e)) && (n = te(n, ne(e)), r = !0);
|
|
120
|
+
}), r ? R(n) : {
|
|
120
121
|
x: 0,
|
|
121
122
|
y: 0,
|
|
122
123
|
width: 0,
|
|
123
124
|
height: 0
|
|
124
125
|
};
|
|
125
|
-
},
|
|
126
|
+
}, D = (e, t, [n, r, i] = [
|
|
126
127
|
0,
|
|
127
128
|
0,
|
|
128
129
|
1
|
|
129
|
-
],
|
|
130
|
-
let
|
|
131
|
-
...
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
130
|
+
], a = !1, o = !1) => {
|
|
131
|
+
let s = {
|
|
132
|
+
...re(t, [
|
|
133
|
+
n,
|
|
134
|
+
r,
|
|
135
|
+
i
|
|
135
136
|
]),
|
|
136
|
-
width:
|
|
137
|
-
height:
|
|
138
|
-
},
|
|
139
|
-
for (let
|
|
140
|
-
let { measured: e, selectable:
|
|
141
|
-
if (
|
|
142
|
-
let
|
|
143
|
-
(!
|
|
137
|
+
width: t.width / i,
|
|
138
|
+
height: t.height / i
|
|
139
|
+
}, c = [];
|
|
140
|
+
for (let t of e.values()) {
|
|
141
|
+
let { measured: e, selectable: n = !0, hidden: r = !1 } = t;
|
|
142
|
+
if (o && !n || r) continue;
|
|
143
|
+
let i = e.width ?? t.width ?? t.initialWidth ?? null, l = e.height ?? t.height ?? t.initialHeight ?? null, u = V(s, z(t)), d = (i ?? 0) * (l ?? 0), f = a && u > 0;
|
|
144
|
+
(!t.internals.handleBounds || f || u >= d || t.dragging) && c.push(t);
|
|
144
145
|
}
|
|
145
|
-
return
|
|
146
|
-
},
|
|
147
|
-
let
|
|
146
|
+
return c;
|
|
147
|
+
}, O = (e, t) => {
|
|
148
|
+
let n = /* @__PURE__ */ new Set();
|
|
148
149
|
return e.forEach((e) => {
|
|
149
|
-
|
|
150
|
-
}),
|
|
150
|
+
n.add(e.id);
|
|
151
|
+
}), t.filter((e) => n.has(e.source) || n.has(e.target));
|
|
151
152
|
};
|
|
152
|
-
function
|
|
153
|
-
let
|
|
153
|
+
function k(e, t) {
|
|
154
|
+
let n = /* @__PURE__ */ new Map(), r = t?.nodes ? new Set(t.nodes.map((e) => e.id)) : null;
|
|
154
155
|
return e.forEach((e) => {
|
|
155
|
-
e.measured.width && e.measured.height && (
|
|
156
|
-
}),
|
|
156
|
+
e.measured.width && e.measured.height && (t?.includeHiddenNodes || !e.hidden) && (!r || r.has(e.id)) && n.set(e.id, e);
|
|
157
|
+
}), n;
|
|
157
158
|
}
|
|
158
|
-
async function
|
|
159
|
+
async function A({ nodes: e, width: t, height: n, panZoom: r, minZoom: i, maxZoom: a }, o) {
|
|
159
160
|
if (e.size === 0) return Promise.resolve(!0);
|
|
160
|
-
let
|
|
161
|
-
return await
|
|
162
|
-
duration:
|
|
163
|
-
ease:
|
|
164
|
-
interpolate:
|
|
161
|
+
let s = se(E(k(e, o)), t, n, o?.minZoom ?? i, o?.maxZoom ?? a, o?.padding ?? .1);
|
|
162
|
+
return await r.setViewport(s, {
|
|
163
|
+
duration: o?.duration,
|
|
164
|
+
ease: o?.ease,
|
|
165
|
+
interpolate: o?.interpolate
|
|
165
166
|
}), Promise.resolve(!0);
|
|
166
167
|
}
|
|
167
|
-
function
|
|
168
|
-
let
|
|
168
|
+
function j({ nodeId: e, nextPosition: t, nodeLookup: n, nodeOrigin: r = [0, 0], nodeExtent: i, onError: a }) {
|
|
169
|
+
let o = n.get(e), s = o.parentId ? n.get(o.parentId) : void 0, { x: l, y: u } = s ? s.internals.positionAbsolute : {
|
|
169
170
|
x: 0,
|
|
170
171
|
y: 0
|
|
171
|
-
},
|
|
172
|
-
if (
|
|
172
|
+
}, d = o.origin ?? r, f = o.extent || i;
|
|
173
|
+
if (o.extent === "parent" && !o.expandParent) if (!s) a?.("005", c.error005());
|
|
173
174
|
else {
|
|
174
|
-
let e =
|
|
175
|
-
e &&
|
|
175
|
+
let e = s.measured.width, t = s.measured.height;
|
|
176
|
+
e && t && (f = [[l, u], [l + e, u + t]]);
|
|
176
177
|
}
|
|
177
|
-
else
|
|
178
|
-
let
|
|
179
|
-
return (
|
|
178
|
+
else s && q(o.extent) && (f = [[o.extent[0][0] + l, o.extent[0][1] + u], [o.extent[1][0] + l, o.extent[1][1] + u]]);
|
|
179
|
+
let p = q(f) ? P(t, f, o.measured) : t;
|
|
180
|
+
return (o.measured.width === void 0 || o.measured.height === void 0) && a?.("015", c.error015()), {
|
|
180
181
|
position: {
|
|
181
|
-
x:
|
|
182
|
-
y:
|
|
182
|
+
x: p.x - l + (o.measured.width ?? 0) * d[0],
|
|
183
|
+
y: p.y - u + (o.measured.height ?? 0) * d[1]
|
|
183
184
|
},
|
|
184
|
-
positionAbsolute:
|
|
185
|
+
positionAbsolute: p
|
|
185
186
|
};
|
|
186
187
|
}
|
|
187
|
-
async function
|
|
188
|
-
let
|
|
189
|
-
for (let e of
|
|
188
|
+
async function M({ nodesToRemove: e = [], edgesToRemove: t = [], nodes: n, edges: r, onBeforeDelete: i }) {
|
|
189
|
+
let a = new Set(e.map((e) => e.id)), o = [];
|
|
190
|
+
for (let e of n) {
|
|
190
191
|
if (e.deletable === !1) continue;
|
|
191
|
-
let
|
|
192
|
-
(
|
|
192
|
+
let t = a.has(e.id), n = !t && e.parentId && o.find((t) => t.id === e.parentId);
|
|
193
|
+
(t || n) && o.push(e);
|
|
193
194
|
}
|
|
194
|
-
let
|
|
195
|
-
for (let e of
|
|
196
|
-
if (!
|
|
197
|
-
edges:
|
|
198
|
-
nodes:
|
|
195
|
+
let s = new Set(t.map((e) => e.id)), c = r.filter((e) => e.deletable !== !1), l = O(o, c);
|
|
196
|
+
for (let e of c) s.has(e.id) && !l.find((t) => t.id === e.id) && l.push(e);
|
|
197
|
+
if (!i) return {
|
|
198
|
+
edges: l,
|
|
199
|
+
nodes: o
|
|
199
200
|
};
|
|
200
|
-
let
|
|
201
|
-
nodes:
|
|
202
|
-
edges:
|
|
201
|
+
let u = await i({
|
|
202
|
+
nodes: o,
|
|
203
|
+
edges: l
|
|
203
204
|
});
|
|
204
|
-
return typeof
|
|
205
|
-
edges:
|
|
206
|
-
nodes:
|
|
205
|
+
return typeof u == "boolean" ? u ? {
|
|
206
|
+
edges: l,
|
|
207
|
+
nodes: o
|
|
207
208
|
} : {
|
|
208
209
|
edges: [],
|
|
209
210
|
nodes: []
|
|
210
|
-
} :
|
|
211
|
+
} : u;
|
|
211
212
|
}
|
|
212
|
-
var
|
|
213
|
+
var N = (e, t = 0, n = 1) => Math.min(Math.max(e, t), n), P = (e = {
|
|
213
214
|
x: 0,
|
|
214
215
|
y: 0
|
|
215
|
-
},
|
|
216
|
-
x:
|
|
217
|
-
y:
|
|
216
|
+
}, t, n) => ({
|
|
217
|
+
x: N(e.x, t[0][0], t[1][0] - (n?.width ?? 0)),
|
|
218
|
+
y: N(e.y, t[0][1], t[1][1] - (n?.height ?? 0))
|
|
218
219
|
});
|
|
219
|
-
function
|
|
220
|
-
let { width:
|
|
221
|
-
return
|
|
222
|
-
}
|
|
223
|
-
var
|
|
224
|
-
x: Math.min(e.x,
|
|
225
|
-
y: Math.min(e.y,
|
|
226
|
-
x2: Math.max(e.x2,
|
|
227
|
-
y2: Math.max(e.y2,
|
|
228
|
-
}),
|
|
220
|
+
function F(e, t, n) {
|
|
221
|
+
let { width: r, height: i } = J(n), { x: a, y: o } = n.internals.positionAbsolute;
|
|
222
|
+
return P(e, [[a, o], [a + r, o + i]], t);
|
|
223
|
+
}
|
|
224
|
+
var I = (e, t, n) => e < t ? N(Math.abs(e - t), 1, t) / t : e > n ? -N(Math.abs(e - n), 1, t) / t : 0, ee = (e, t, n = 15, r = 40) => [I(e.x, r, t.width - r) * n, I(e.y, r, t.height - r) * n], te = (e, t) => ({
|
|
225
|
+
x: Math.min(e.x, t.x),
|
|
226
|
+
y: Math.min(e.y, t.y),
|
|
227
|
+
x2: Math.max(e.x2, t.x2),
|
|
228
|
+
y2: Math.max(e.y2, t.y2)
|
|
229
|
+
}), L = ({ x: e, y: t, width: n, height: r }) => ({
|
|
229
230
|
x: e,
|
|
230
|
-
y:
|
|
231
|
-
x2: e +
|
|
232
|
-
y2:
|
|
233
|
-
}),
|
|
231
|
+
y: t,
|
|
232
|
+
x2: e + n,
|
|
233
|
+
y2: t + r
|
|
234
|
+
}), R = ({ x: e, y: t, x2: n, y2: r }) => ({
|
|
234
235
|
x: e,
|
|
235
|
-
y:
|
|
236
|
-
width:
|
|
237
|
-
height:
|
|
238
|
-
}),
|
|
239
|
-
let { x:
|
|
236
|
+
y: t,
|
|
237
|
+
width: n - e,
|
|
238
|
+
height: r - t
|
|
239
|
+
}), z = (e, t = [0, 0]) => {
|
|
240
|
+
let { x: n, y: r } = C(e) ? e.internals.positionAbsolute : w(e, t);
|
|
240
241
|
return {
|
|
241
|
-
x:
|
|
242
|
-
y:
|
|
242
|
+
x: n,
|
|
243
|
+
y: r,
|
|
243
244
|
width: e.measured?.width ?? e.width ?? e.initialWidth ?? 0,
|
|
244
245
|
height: e.measured?.height ?? e.height ?? e.initialHeight ?? 0
|
|
245
246
|
};
|
|
246
|
-
},
|
|
247
|
-
let { x:
|
|
247
|
+
}, ne = (e, t = [0, 0]) => {
|
|
248
|
+
let { x: n, y: r } = C(e) ? e.internals.positionAbsolute : w(e, t);
|
|
248
249
|
return {
|
|
249
|
-
x:
|
|
250
|
-
y:
|
|
251
|
-
x2:
|
|
252
|
-
y2:
|
|
250
|
+
x: n,
|
|
251
|
+
y: r,
|
|
252
|
+
x2: n + (e.measured?.width ?? e.width ?? e.initialWidth ?? 0),
|
|
253
|
+
y2: r + (e.measured?.height ?? e.height ?? e.initialHeight ?? 0)
|
|
253
254
|
};
|
|
254
|
-
},
|
|
255
|
-
let
|
|
256
|
-
return Math.ceil(
|
|
257
|
-
},
|
|
258
|
-
process.env.NODE_ENV === "development" && console.warn(`[React Flow]: ${
|
|
259
|
-
},
|
|
260
|
-
x:
|
|
261
|
-
y:
|
|
262
|
-
}),
|
|
263
|
-
let
|
|
264
|
-
x: (e -
|
|
265
|
-
y: (
|
|
255
|
+
}, B = (e, t) => R(te(L(e), L(t))), V = (e, t) => {
|
|
256
|
+
let n = Math.max(0, Math.min(e.x + e.width, t.x + t.width) - Math.max(e.x, t.x)), r = Math.max(0, Math.min(e.y + e.height, t.y + t.height) - Math.max(e.y, t.y));
|
|
257
|
+
return Math.ceil(n * r);
|
|
258
|
+
}, H = (e) => U(e.width) && U(e.height) && U(e.x) && U(e.y), U = (e) => !isNaN(e) && isFinite(e), W = (e, t) => {
|
|
259
|
+
process.env.NODE_ENV === "development" && console.warn(`[React Flow]: ${t} Help: https://reactflow.dev/error#${e}`);
|
|
260
|
+
}, G = (e, t = [1, 1]) => ({
|
|
261
|
+
x: t[0] * Math.round(e.x / t[0]),
|
|
262
|
+
y: t[1] * Math.round(e.y / t[1])
|
|
263
|
+
}), re = ({ x: e, y: t }, [n, r, i], a = !1, o = [1, 1]) => {
|
|
264
|
+
let s = {
|
|
265
|
+
x: (e - n) / i,
|
|
266
|
+
y: (t - r) / i
|
|
266
267
|
};
|
|
267
|
-
return
|
|
268
|
-
},
|
|
269
|
-
x: e *
|
|
270
|
-
y:
|
|
268
|
+
return a ? G(s, o) : s;
|
|
269
|
+
}, ie = ({ x: e, y: t }, [n, r, i]) => ({
|
|
270
|
+
x: e * i + n,
|
|
271
|
+
y: t * i + r
|
|
271
272
|
});
|
|
272
|
-
function
|
|
273
|
-
if (typeof e == "number") return Math.floor((
|
|
273
|
+
function K(e, t) {
|
|
274
|
+
if (typeof e == "number") return Math.floor((t - t / (1 + e)) * .5);
|
|
274
275
|
if (typeof e == "string" && e.endsWith("px")) {
|
|
275
|
-
let
|
|
276
|
-
if (!Number.isNaN(
|
|
276
|
+
let t = parseFloat(e);
|
|
277
|
+
if (!Number.isNaN(t)) return Math.floor(t);
|
|
277
278
|
}
|
|
278
279
|
if (typeof e == "string" && e.endsWith("%")) {
|
|
279
|
-
let
|
|
280
|
-
if (!Number.isNaN(
|
|
280
|
+
let n = parseFloat(e);
|
|
281
|
+
if (!Number.isNaN(n)) return Math.floor(t * n * .01);
|
|
281
282
|
}
|
|
282
283
|
return console.error(`[React Flow] The padding value "${e}" is invalid. Please provide a number or a string with a valid unit (px or %).`), 0;
|
|
283
284
|
}
|
|
284
|
-
function
|
|
285
|
+
function ae(e, t, n) {
|
|
285
286
|
if (typeof e == "string" || typeof e == "number") {
|
|
286
|
-
let
|
|
287
|
+
let r = K(e, n), i = K(e, t);
|
|
287
288
|
return {
|
|
288
|
-
top:
|
|
289
|
-
right:
|
|
290
|
-
bottom:
|
|
291
|
-
left:
|
|
292
|
-
x:
|
|
293
|
-
y:
|
|
289
|
+
top: r,
|
|
290
|
+
right: i,
|
|
291
|
+
bottom: r,
|
|
292
|
+
left: i,
|
|
293
|
+
x: i * 2,
|
|
294
|
+
y: r * 2
|
|
294
295
|
};
|
|
295
296
|
}
|
|
296
297
|
if (typeof e == "object") {
|
|
297
|
-
let
|
|
298
|
+
let r = K(e.top ?? e.y ?? 0, n), i = K(e.bottom ?? e.y ?? 0, n), a = K(e.left ?? e.x ?? 0, t), o = K(e.right ?? e.x ?? 0, t);
|
|
298
299
|
return {
|
|
299
|
-
top:
|
|
300
|
-
right:
|
|
301
|
-
bottom:
|
|
302
|
-
left:
|
|
303
|
-
x:
|
|
304
|
-
y:
|
|
300
|
+
top: r,
|
|
301
|
+
right: o,
|
|
302
|
+
bottom: i,
|
|
303
|
+
left: a,
|
|
304
|
+
x: a + o,
|
|
305
|
+
y: r + i
|
|
305
306
|
};
|
|
306
307
|
}
|
|
307
308
|
return {
|
|
@@ -313,1195 +314,1197 @@ function parsePaddings(e, s, c) {
|
|
|
313
314
|
y: 0
|
|
314
315
|
};
|
|
315
316
|
}
|
|
316
|
-
function
|
|
317
|
-
let { x:
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
]), { x:
|
|
317
|
+
function oe(e, t, n, r, i, a) {
|
|
318
|
+
let { x: o, y: s } = ie(e, [
|
|
319
|
+
t,
|
|
320
|
+
n,
|
|
321
|
+
r
|
|
322
|
+
]), { x: c, y: l } = ie({
|
|
322
323
|
x: e.x + e.width,
|
|
323
324
|
y: e.y + e.height
|
|
324
325
|
}, [
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
]),
|
|
326
|
+
t,
|
|
327
|
+
n,
|
|
328
|
+
r
|
|
329
|
+
]), u = i - c, d = a - l;
|
|
329
330
|
return {
|
|
330
|
-
left: Math.floor(
|
|
331
|
-
top: Math.floor(
|
|
332
|
-
right: Math.floor(
|
|
333
|
-
bottom: Math.floor(
|
|
331
|
+
left: Math.floor(o),
|
|
332
|
+
top: Math.floor(s),
|
|
333
|
+
right: Math.floor(u),
|
|
334
|
+
bottom: Math.floor(d)
|
|
334
335
|
};
|
|
335
336
|
}
|
|
336
|
-
var
|
|
337
|
-
let
|
|
338
|
-
left: Math.min(
|
|
339
|
-
top: Math.min(
|
|
340
|
-
right: Math.min(
|
|
341
|
-
bottom: Math.min(
|
|
337
|
+
var se = (e, t, n, r, i, a) => {
|
|
338
|
+
let o = ae(a, t, n), s = (t - o.x) / e.width, c = (n - o.y) / e.height, l = N(Math.min(s, c), r, i), u = e.x + e.width / 2, d = e.y + e.height / 2, f = t / 2 - u * l, p = n / 2 - d * l, m = oe(e, f, p, l, t, n), h = {
|
|
339
|
+
left: Math.min(m.left - o.left, 0),
|
|
340
|
+
top: Math.min(m.top - o.top, 0),
|
|
341
|
+
right: Math.min(m.right - o.right, 0),
|
|
342
|
+
bottom: Math.min(m.bottom - o.bottom, 0)
|
|
342
343
|
};
|
|
343
344
|
return {
|
|
344
|
-
x:
|
|
345
|
-
y:
|
|
346
|
-
zoom:
|
|
345
|
+
x: f - h.left + h.right,
|
|
346
|
+
y: p - h.top + h.bottom,
|
|
347
|
+
zoom: l
|
|
347
348
|
};
|
|
348
|
-
},
|
|
349
|
-
function
|
|
349
|
+
}, ce = () => typeof navigator < "u" && navigator?.userAgent?.indexOf("Mac") >= 0;
|
|
350
|
+
function q(e) {
|
|
350
351
|
return e != null && e !== "parent";
|
|
351
352
|
}
|
|
352
|
-
function
|
|
353
|
+
function J(e) {
|
|
353
354
|
return {
|
|
354
355
|
width: e.measured?.width ?? e.width ?? e.initialWidth ?? 0,
|
|
355
356
|
height: e.measured?.height ?? e.height ?? e.initialHeight ?? 0
|
|
356
357
|
};
|
|
357
358
|
}
|
|
358
|
-
function
|
|
359
|
+
function le(e) {
|
|
359
360
|
return (e.measured?.width ?? e.width ?? e.initialWidth) !== void 0 && (e.measured?.height ?? e.height ?? e.initialHeight) !== void 0;
|
|
360
361
|
}
|
|
361
|
-
function
|
|
362
|
+
function ue(e, t = {
|
|
362
363
|
width: 0,
|
|
363
364
|
height: 0
|
|
364
|
-
},
|
|
365
|
-
let
|
|
366
|
-
if (
|
|
367
|
-
let e =
|
|
368
|
-
|
|
365
|
+
}, n, r, i) {
|
|
366
|
+
let a = { ...e }, o = r.get(n);
|
|
367
|
+
if (o) {
|
|
368
|
+
let e = o.origin || i;
|
|
369
|
+
a.x += o.internals.positionAbsolute.x - (t.width ?? 0) * e[0], a.y += o.internals.positionAbsolute.y - (t.height ?? 0) * e[1];
|
|
369
370
|
}
|
|
370
|
-
return
|
|
371
|
+
return a;
|
|
371
372
|
}
|
|
372
|
-
function
|
|
373
|
-
if (e.size !==
|
|
374
|
-
for (let
|
|
373
|
+
function de(e, t) {
|
|
374
|
+
if (e.size !== t.size) return !1;
|
|
375
|
+
for (let n of e) if (!t.has(n)) return !1;
|
|
375
376
|
return !0;
|
|
376
377
|
}
|
|
377
|
-
function
|
|
378
|
-
let e,
|
|
378
|
+
function fe() {
|
|
379
|
+
let e, t;
|
|
379
380
|
return {
|
|
380
|
-
promise: new Promise((
|
|
381
|
-
e =
|
|
381
|
+
promise: new Promise((n, r) => {
|
|
382
|
+
e = n, t = r;
|
|
382
383
|
}),
|
|
383
384
|
resolve: e,
|
|
384
|
-
reject:
|
|
385
|
+
reject: t
|
|
385
386
|
};
|
|
386
387
|
}
|
|
387
|
-
function
|
|
388
|
+
function pe(e) {
|
|
388
389
|
return {
|
|
389
|
-
...
|
|
390
|
+
...d,
|
|
390
391
|
...e || {}
|
|
391
392
|
};
|
|
392
393
|
}
|
|
393
|
-
function
|
|
394
|
-
let { x:
|
|
395
|
-
x:
|
|
396
|
-
y:
|
|
397
|
-
},
|
|
394
|
+
function me(e, { snapGrid: t = [0, 0], snapToGrid: n = !1, transform: r, containerBounds: i }) {
|
|
395
|
+
let { x: a, y: o } = Y(e), s = re({
|
|
396
|
+
x: a - (i?.left ?? 0),
|
|
397
|
+
y: o - (i?.top ?? 0)
|
|
398
|
+
}, r), { x: c, y: l } = n ? G(s, t) : s;
|
|
398
399
|
return {
|
|
399
|
-
xSnapped:
|
|
400
|
-
ySnapped:
|
|
401
|
-
...
|
|
400
|
+
xSnapped: c,
|
|
401
|
+
ySnapped: l,
|
|
402
|
+
...s
|
|
402
403
|
};
|
|
403
404
|
}
|
|
404
|
-
var
|
|
405
|
+
var he = (e) => ({
|
|
405
406
|
width: e.offsetWidth,
|
|
406
407
|
height: e.offsetHeight
|
|
407
|
-
}),
|
|
408
|
+
}), ge = (e) => e?.getRootNode?.() || window?.document, _e = [
|
|
408
409
|
"INPUT",
|
|
409
410
|
"SELECT",
|
|
410
411
|
"TEXTAREA"
|
|
411
412
|
];
|
|
412
|
-
function
|
|
413
|
-
let
|
|
414
|
-
return
|
|
413
|
+
function ve(e) {
|
|
414
|
+
let t = e.composedPath?.()?.[0] || e.target;
|
|
415
|
+
return t?.nodeType === 1 ? _e.includes(t.nodeName) || t.hasAttribute("contenteditable") || !!t.closest(".nokey") : !1;
|
|
415
416
|
}
|
|
416
|
-
var
|
|
417
|
-
let
|
|
417
|
+
var ye = (e) => "clientX" in e, Y = (e, t) => {
|
|
418
|
+
let n = ye(e), r = n ? e.clientX : e.touches?.[0].clientX, i = n ? e.clientY : e.touches?.[0].clientY;
|
|
418
419
|
return {
|
|
419
|
-
x:
|
|
420
|
-
y:
|
|
420
|
+
x: r - (t?.left ?? 0),
|
|
421
|
+
y: i - (t?.top ?? 0)
|
|
421
422
|
};
|
|
422
|
-
},
|
|
423
|
-
let
|
|
424
|
-
return !
|
|
425
|
-
let
|
|
423
|
+
}, be = (e, t, n, r, i) => {
|
|
424
|
+
let a = t.querySelectorAll(`.${e}`);
|
|
425
|
+
return !a || !a.length ? null : Array.from(a).map((t) => {
|
|
426
|
+
let a = t.getBoundingClientRect();
|
|
426
427
|
return {
|
|
427
|
-
id:
|
|
428
|
+
id: t.getAttribute("data-handleid"),
|
|
428
429
|
type: e,
|
|
429
|
-
nodeId:
|
|
430
|
-
position:
|
|
431
|
-
x: (
|
|
432
|
-
y: (
|
|
433
|
-
...
|
|
430
|
+
nodeId: i,
|
|
431
|
+
position: t.getAttribute("data-handlepos"),
|
|
432
|
+
x: (a.left - n.left) / r,
|
|
433
|
+
y: (a.top - n.top) / r,
|
|
434
|
+
...he(t)
|
|
434
435
|
};
|
|
435
436
|
});
|
|
436
437
|
};
|
|
437
|
-
function
|
|
438
|
-
let
|
|
438
|
+
function xe({ sourceX: e, sourceY: t, targetX: n, targetY: r, sourceControlX: i, sourceControlY: a, targetControlX: o, targetControlY: s }) {
|
|
439
|
+
let c = e * .125 + i * .375 + o * .375 + n * .125, l = t * .125 + a * .375 + s * .375 + r * .125;
|
|
439
440
|
return [
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
Math.abs(
|
|
443
|
-
Math.abs(
|
|
441
|
+
c,
|
|
442
|
+
l,
|
|
443
|
+
Math.abs(c - e),
|
|
444
|
+
Math.abs(l - t)
|
|
444
445
|
];
|
|
445
446
|
}
|
|
446
|
-
function
|
|
447
|
-
return e >= 0 ? .5 * e :
|
|
447
|
+
function Se(e, t) {
|
|
448
|
+
return e >= 0 ? .5 * e : t * 25 * Math.sqrt(-e);
|
|
448
449
|
}
|
|
449
|
-
function
|
|
450
|
+
function Ce({ pos: e, x1: t, y1: n, x2: r, y2: i, c: a }) {
|
|
450
451
|
switch (e) {
|
|
451
|
-
case
|
|
452
|
-
case
|
|
453
|
-
case
|
|
454
|
-
case
|
|
452
|
+
case v.Left: return [t - Se(t - r, a), n];
|
|
453
|
+
case v.Right: return [t + Se(r - t, a), n];
|
|
454
|
+
case v.Top: return [t, n - Se(n - i, a)];
|
|
455
|
+
case v.Bottom: return [t, n + Se(i - n, a)];
|
|
455
456
|
}
|
|
456
457
|
}
|
|
457
|
-
function
|
|
458
|
-
let [
|
|
459
|
-
pos:
|
|
458
|
+
function we({ sourceX: e, sourceY: t, sourcePosition: n = v.Bottom, targetX: r, targetY: i, targetPosition: a = v.Top, curvature: o = .25 }) {
|
|
459
|
+
let [s, c] = Ce({
|
|
460
|
+
pos: n,
|
|
460
461
|
x1: e,
|
|
461
|
-
y1:
|
|
462
|
-
x2:
|
|
463
|
-
y2:
|
|
464
|
-
c:
|
|
465
|
-
}), [
|
|
466
|
-
pos:
|
|
467
|
-
x1:
|
|
468
|
-
y1:
|
|
462
|
+
y1: t,
|
|
463
|
+
x2: r,
|
|
464
|
+
y2: i,
|
|
465
|
+
c: o
|
|
466
|
+
}), [l, u] = Ce({
|
|
467
|
+
pos: a,
|
|
468
|
+
x1: r,
|
|
469
|
+
y1: i,
|
|
469
470
|
x2: e,
|
|
470
|
-
y2:
|
|
471
|
-
c:
|
|
472
|
-
}), [
|
|
471
|
+
y2: t,
|
|
472
|
+
c: o
|
|
473
|
+
}), [d, f, p, m] = xe({
|
|
473
474
|
sourceX: e,
|
|
474
|
-
sourceY:
|
|
475
|
-
targetX:
|
|
476
|
-
targetY:
|
|
477
|
-
sourceControlX:
|
|
478
|
-
sourceControlY:
|
|
479
|
-
targetControlX:
|
|
480
|
-
targetControlY:
|
|
475
|
+
sourceY: t,
|
|
476
|
+
targetX: r,
|
|
477
|
+
targetY: i,
|
|
478
|
+
sourceControlX: s,
|
|
479
|
+
sourceControlY: c,
|
|
480
|
+
targetControlX: l,
|
|
481
|
+
targetControlY: u
|
|
481
482
|
});
|
|
482
483
|
return [
|
|
483
|
-
`M${e},${
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
484
|
+
`M${e},${t} C${s},${c} ${l},${u} ${r},${i}`,
|
|
485
|
+
d,
|
|
486
|
+
f,
|
|
487
|
+
p,
|
|
488
|
+
m
|
|
488
489
|
];
|
|
489
490
|
}
|
|
490
|
-
function
|
|
491
|
-
let
|
|
491
|
+
function Te({ sourceX: e, sourceY: t, targetX: n, targetY: r }) {
|
|
492
|
+
let i = Math.abs(n - e) / 2, a = n < e ? n + i : n - i, o = Math.abs(r - t) / 2;
|
|
492
493
|
return [
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
494
|
+
a,
|
|
495
|
+
r < t ? r + o : r - o,
|
|
496
|
+
i,
|
|
497
|
+
o
|
|
497
498
|
];
|
|
498
499
|
}
|
|
499
|
-
function
|
|
500
|
-
return
|
|
501
|
-
}
|
|
502
|
-
function
|
|
503
|
-
let
|
|
504
|
-
return
|
|
505
|
-
x: -
|
|
506
|
-
y: -
|
|
507
|
-
width:
|
|
508
|
-
height:
|
|
509
|
-
},
|
|
510
|
-
}
|
|
511
|
-
var
|
|
512
|
-
if (!e.source || !e.target) return
|
|
513
|
-
let
|
|
514
|
-
return
|
|
500
|
+
function Ee({ sourceNode: e, targetNode: t, selected: n = !1, zIndex: r = 0, elevateOnSelect: i = !1, zIndexMode: a = "basic" }) {
|
|
501
|
+
return a === "manual" ? r : (i && n ? r + 1e3 : r) + Math.max(e.parentId || i && e.selected ? e.internals.z : 0, t.parentId || i && t.selected ? t.internals.z : 0);
|
|
502
|
+
}
|
|
503
|
+
function De({ sourceNode: e, targetNode: t, width: n, height: r, transform: i }) {
|
|
504
|
+
let a = te(ne(e), ne(t));
|
|
505
|
+
return a.x === a.x2 && (a.x2 += 1), a.y === a.y2 && (a.y2 += 1), V({
|
|
506
|
+
x: -i[0] / i[2],
|
|
507
|
+
y: -i[1] / i[2],
|
|
508
|
+
width: n / i[2],
|
|
509
|
+
height: r / i[2]
|
|
510
|
+
}, R(a)) > 0;
|
|
511
|
+
}
|
|
512
|
+
var Oe = ({ source: e, sourceHandle: t, target: n, targetHandle: r }) => `xy-edge__${e}${t || ""}-${n}${r || ""}`, ke = (e, t) => t.some((t) => t.source === e.source && t.target === e.target && (t.sourceHandle === e.sourceHandle || !t.sourceHandle && !e.sourceHandle) && (t.targetHandle === e.targetHandle || !t.targetHandle && !e.targetHandle)), Ae = (e, t, n = {}) => {
|
|
513
|
+
if (!e.source || !e.target) return W("006", c.error006()), t;
|
|
514
|
+
let r = n.getEdgeId || Oe, i;
|
|
515
|
+
return i = x(e) ? { ...e } : {
|
|
515
516
|
...e,
|
|
516
|
-
id:
|
|
517
|
-
},
|
|
517
|
+
id: r(e)
|
|
518
|
+
}, ke(i, t) ? t : (i.sourceHandle === null && delete i.sourceHandle, i.targetHandle === null && delete i.targetHandle, t.concat(i));
|
|
518
519
|
};
|
|
519
|
-
function
|
|
520
|
-
let [
|
|
520
|
+
function je({ sourceX: e, sourceY: t, targetX: n, targetY: r }) {
|
|
521
|
+
let [i, a, o, s] = Te({
|
|
521
522
|
sourceX: e,
|
|
522
|
-
sourceY:
|
|
523
|
-
targetX:
|
|
524
|
-
targetY:
|
|
523
|
+
sourceY: t,
|
|
524
|
+
targetX: n,
|
|
525
|
+
targetY: r
|
|
525
526
|
});
|
|
526
527
|
return [
|
|
527
|
-
`M ${e},${
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
528
|
+
`M ${e},${t}L ${n},${r}`,
|
|
529
|
+
i,
|
|
530
|
+
a,
|
|
531
|
+
o,
|
|
532
|
+
s
|
|
532
533
|
];
|
|
533
534
|
}
|
|
534
|
-
var
|
|
535
|
-
[
|
|
535
|
+
var Me = {
|
|
536
|
+
[v.Left]: {
|
|
536
537
|
x: -1,
|
|
537
538
|
y: 0
|
|
538
539
|
},
|
|
539
|
-
[
|
|
540
|
+
[v.Right]: {
|
|
540
541
|
x: 1,
|
|
541
542
|
y: 0
|
|
542
543
|
},
|
|
543
|
-
[
|
|
544
|
+
[v.Top]: {
|
|
544
545
|
x: 0,
|
|
545
546
|
y: -1
|
|
546
547
|
},
|
|
547
|
-
[
|
|
548
|
+
[v.Bottom]: {
|
|
548
549
|
x: 0,
|
|
549
550
|
y: 1
|
|
550
551
|
}
|
|
551
|
-
},
|
|
552
|
+
}, Ne = ({ source: e, sourcePosition: t = v.Bottom, target: n }) => t === v.Left || t === v.Right ? e.x < n.x ? {
|
|
552
553
|
x: 1,
|
|
553
554
|
y: 0
|
|
554
555
|
} : {
|
|
555
556
|
x: -1,
|
|
556
557
|
y: 0
|
|
557
|
-
} : e.y <
|
|
558
|
+
} : e.y < n.y ? {
|
|
558
559
|
x: 0,
|
|
559
560
|
y: 1
|
|
560
561
|
} : {
|
|
561
562
|
x: 0,
|
|
562
563
|
y: -1
|
|
563
|
-
},
|
|
564
|
-
function
|
|
565
|
-
let
|
|
566
|
-
x: e.x +
|
|
567
|
-
y: e.y +
|
|
568
|
-
},
|
|
569
|
-
x:
|
|
570
|
-
y:
|
|
571
|
-
},
|
|
572
|
-
source:
|
|
573
|
-
sourcePosition:
|
|
574
|
-
target:
|
|
575
|
-
}),
|
|
564
|
+
}, Pe = (e, t) => Math.sqrt((t.x - e.x) ** 2 + (t.y - e.y) ** 2);
|
|
565
|
+
function Fe({ source: e, sourcePosition: t = v.Bottom, target: n, targetPosition: r = v.Top, center: i, offset: a, stepPosition: o }) {
|
|
566
|
+
let s = Me[t], c = Me[r], l = {
|
|
567
|
+
x: e.x + s.x * a,
|
|
568
|
+
y: e.y + s.y * a
|
|
569
|
+
}, u = {
|
|
570
|
+
x: n.x + c.x * a,
|
|
571
|
+
y: n.y + c.y * a
|
|
572
|
+
}, d = Ne({
|
|
573
|
+
source: l,
|
|
574
|
+
sourcePosition: t,
|
|
575
|
+
target: u
|
|
576
|
+
}), f = d.x === 0 ? "y" : "x", p = d[f], m = [], h, g, _ = {
|
|
576
577
|
x: 0,
|
|
577
578
|
y: 0
|
|
578
|
-
},
|
|
579
|
+
}, y = {
|
|
579
580
|
x: 0,
|
|
580
581
|
y: 0
|
|
581
|
-
}, [, ,
|
|
582
|
+
}, [, , b, x] = Te({
|
|
582
583
|
sourceX: e.x,
|
|
583
584
|
sourceY: e.y,
|
|
584
|
-
targetX:
|
|
585
|
-
targetY:
|
|
585
|
+
targetX: n.x,
|
|
586
|
+
targetY: n.y
|
|
586
587
|
});
|
|
587
|
-
if (
|
|
588
|
-
|
|
588
|
+
if (s[f] * c[f] === -1) {
|
|
589
|
+
f === "x" ? (h = i.x ?? l.x + (u.x - l.x) * o, g = i.y ?? (l.y + u.y) / 2) : (h = i.x ?? (l.x + u.x) / 2, g = i.y ?? l.y + (u.y - l.y) * o);
|
|
589
590
|
let e = [{
|
|
590
|
-
x,
|
|
591
|
-
y:
|
|
591
|
+
x: h,
|
|
592
|
+
y: l.y
|
|
592
593
|
}, {
|
|
593
|
-
x,
|
|
594
|
-
y:
|
|
595
|
-
}],
|
|
596
|
-
x:
|
|
597
|
-
y:
|
|
594
|
+
x: h,
|
|
595
|
+
y: u.y
|
|
596
|
+
}], t = [{
|
|
597
|
+
x: l.x,
|
|
598
|
+
y: g
|
|
598
599
|
}, {
|
|
599
|
-
x:
|
|
600
|
-
y:
|
|
600
|
+
x: u.x,
|
|
601
|
+
y: g
|
|
601
602
|
}];
|
|
602
|
-
|
|
603
|
+
m = s[f] === p ? f === "x" ? e : t : f === "x" ? t : e;
|
|
603
604
|
} else {
|
|
604
|
-
let
|
|
605
|
-
x:
|
|
606
|
-
y:
|
|
607
|
-
}],
|
|
608
|
-
x:
|
|
609
|
-
y:
|
|
605
|
+
let i = [{
|
|
606
|
+
x: l.x,
|
|
607
|
+
y: u.y
|
|
608
|
+
}], o = [{
|
|
609
|
+
x: u.x,
|
|
610
|
+
y: l.y
|
|
610
611
|
}];
|
|
611
|
-
if (
|
|
612
|
-
let
|
|
613
|
-
if (
|
|
614
|
-
let
|
|
615
|
-
|
|
612
|
+
if (m = f === "x" ? s.x === p ? o : i : s.y === p ? i : o, t === r) {
|
|
613
|
+
let t = Math.abs(e[f] - n[f]);
|
|
614
|
+
if (t <= a) {
|
|
615
|
+
let r = Math.min(a - 1, a - t);
|
|
616
|
+
s[f] === p ? _[f] = (l[f] > e[f] ? -1 : 1) * r : y[f] = (u[f] > n[f] ? -1 : 1) * r;
|
|
616
617
|
}
|
|
617
618
|
}
|
|
618
|
-
if (
|
|
619
|
-
let e =
|
|
620
|
-
(
|
|
619
|
+
if (t !== r) {
|
|
620
|
+
let e = f === "x" ? "y" : "x", t = s[f] === c[e], n = l[e] > u[e], r = l[e] < u[e];
|
|
621
|
+
(s[f] === 1 && (!t && n || t && r) || s[f] !== 1 && (!t && r || t && n)) && (m = f === "x" ? i : o);
|
|
621
622
|
}
|
|
622
|
-
let
|
|
623
|
-
x:
|
|
624
|
-
y:
|
|
625
|
-
},
|
|
626
|
-
x:
|
|
627
|
-
y:
|
|
623
|
+
let d = {
|
|
624
|
+
x: l.x + _.x,
|
|
625
|
+
y: l.y + _.y
|
|
626
|
+
}, v = {
|
|
627
|
+
x: u.x + y.x,
|
|
628
|
+
y: u.y + y.y
|
|
628
629
|
};
|
|
629
|
-
Math.max(Math.abs(
|
|
630
|
+
Math.max(Math.abs(d.x - m[0].x), Math.abs(v.x - m[0].x)) >= Math.max(Math.abs(d.y - m[0].y), Math.abs(v.y - m[0].y)) ? (h = (d.x + v.x) / 2, g = m[0].y) : (h = m[0].x, g = (d.y + v.y) / 2);
|
|
630
631
|
}
|
|
632
|
+
let S = {
|
|
633
|
+
x: l.x + _.x,
|
|
634
|
+
y: l.y + _.y
|
|
635
|
+
}, C = {
|
|
636
|
+
x: u.x + y.x,
|
|
637
|
+
y: u.y + y.y
|
|
638
|
+
};
|
|
631
639
|
return [
|
|
632
640
|
[
|
|
633
641
|
e,
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
...b,
|
|
639
|
-
{
|
|
640
|
-
x: g.x + T.x,
|
|
641
|
-
y: g.y + T.y
|
|
642
|
-
},
|
|
643
|
-
c
|
|
642
|
+
...S.x !== m[0].x || S.y !== m[0].y ? [S] : [],
|
|
643
|
+
...m,
|
|
644
|
+
...C.x !== m[m.length - 1].x || C.y !== m[m.length - 1].y ? [C] : [],
|
|
645
|
+
n
|
|
644
646
|
],
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
647
|
+
h,
|
|
648
|
+
g,
|
|
649
|
+
b,
|
|
650
|
+
x
|
|
649
651
|
];
|
|
650
652
|
}
|
|
651
|
-
function
|
|
652
|
-
let
|
|
653
|
-
if (e.x ===
|
|
654
|
-
if (e.y ===
|
|
655
|
-
let
|
|
656
|
-
return `L ${
|
|
653
|
+
function Ie(e, t, n, r) {
|
|
654
|
+
let i = Math.min(Pe(e, t) / 2, Pe(t, n) / 2, r), { x: a, y: o } = t;
|
|
655
|
+
if (e.x === a && a === n.x || e.y === o && o === n.y) return `L${a} ${o}`;
|
|
656
|
+
if (e.y === o) {
|
|
657
|
+
let t = e.x < n.x ? -1 : 1, r = e.y < n.y ? 1 : -1;
|
|
658
|
+
return `L ${a + i * t},${o}Q ${a},${o} ${a},${o + i * r}`;
|
|
657
659
|
}
|
|
658
|
-
let
|
|
659
|
-
return `L ${
|
|
660
|
+
let s = e.x < n.x ? 1 : -1;
|
|
661
|
+
return `L ${a},${o + i * (e.y < n.y ? -1 : 1)}Q ${a},${o} ${a + i * s},${o}`;
|
|
660
662
|
}
|
|
661
|
-
function
|
|
662
|
-
let [
|
|
663
|
+
function Le({ sourceX: e, sourceY: t, sourcePosition: n = v.Bottom, targetX: r, targetY: i, targetPosition: a = v.Top, borderRadius: o = 5, centerX: s, centerY: c, offset: l = 20, stepPosition: u = .5 }) {
|
|
664
|
+
let [d, f, p, m, h] = Fe({
|
|
663
665
|
source: {
|
|
664
666
|
x: e,
|
|
665
|
-
y:
|
|
667
|
+
y: t
|
|
666
668
|
},
|
|
667
|
-
sourcePosition:
|
|
669
|
+
sourcePosition: n,
|
|
668
670
|
target: {
|
|
669
|
-
x:
|
|
670
|
-
y:
|
|
671
|
+
x: r,
|
|
672
|
+
y: i
|
|
671
673
|
},
|
|
672
|
-
targetPosition:
|
|
674
|
+
targetPosition: a,
|
|
673
675
|
center: {
|
|
674
|
-
x:
|
|
675
|
-
y:
|
|
676
|
+
x: s,
|
|
677
|
+
y: c
|
|
676
678
|
},
|
|
677
|
-
offset:
|
|
678
|
-
stepPosition:
|
|
679
|
-
})
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
b,
|
|
688
|
-
x
|
|
679
|
+
offset: l,
|
|
680
|
+
stepPosition: u
|
|
681
|
+
}), g = `M${d[0].x} ${d[0].y}`;
|
|
682
|
+
for (let e = 1; e < d.length - 1; e++) g += Ie(d[e - 1], d[e], d[e + 1], o);
|
|
683
|
+
return g += `L${d[d.length - 1].x} ${d[d.length - 1].y}`, [
|
|
684
|
+
g,
|
|
685
|
+
f,
|
|
686
|
+
p,
|
|
687
|
+
m,
|
|
688
|
+
h
|
|
689
689
|
];
|
|
690
690
|
}
|
|
691
|
-
function
|
|
691
|
+
function Re(e) {
|
|
692
692
|
return e && !!(e.internals.handleBounds || e.handles?.length) && !!(e.measured.width || e.width || e.initialWidth);
|
|
693
693
|
}
|
|
694
|
-
function
|
|
695
|
-
let { sourceNode:
|
|
696
|
-
if (!
|
|
697
|
-
let
|
|
698
|
-
if (!
|
|
694
|
+
function ze(e) {
|
|
695
|
+
let { sourceNode: t, targetNode: n } = e;
|
|
696
|
+
if (!Re(t) || !Re(n)) return null;
|
|
697
|
+
let r = t.internals.handleBounds || Be(t.handles), i = n.internals.handleBounds || Be(n.handles), a = Ve(r?.source ?? [], e.sourceHandle), o = Ve(e.connectionMode === f.Strict ? i?.target ?? [] : (i?.target ?? []).concat(i?.source ?? []), e.targetHandle);
|
|
698
|
+
if (!a || !o) return e.onError?.("008", c.error008(a ? "target" : "source", {
|
|
699
699
|
id: e.id,
|
|
700
700
|
sourceHandle: e.sourceHandle,
|
|
701
701
|
targetHandle: e.targetHandle
|
|
702
702
|
})), null;
|
|
703
|
-
let
|
|
703
|
+
let s = a?.position || v.Bottom, l = o?.position || v.Top, u = X(t, a, s), d = X(n, o, l);
|
|
704
704
|
return {
|
|
705
|
-
sourceX:
|
|
706
|
-
sourceY:
|
|
707
|
-
targetX:
|
|
708
|
-
targetY:
|
|
709
|
-
sourcePosition:
|
|
710
|
-
targetPosition:
|
|
705
|
+
sourceX: u.x,
|
|
706
|
+
sourceY: u.y,
|
|
707
|
+
targetX: d.x,
|
|
708
|
+
targetY: d.y,
|
|
709
|
+
sourcePosition: s,
|
|
710
|
+
targetPosition: l
|
|
711
711
|
};
|
|
712
712
|
}
|
|
713
|
-
function
|
|
713
|
+
function Be(e) {
|
|
714
714
|
if (!e) return null;
|
|
715
|
-
let
|
|
716
|
-
for (let
|
|
715
|
+
let t = [], n = [];
|
|
716
|
+
for (let r of e) r.width = r.width ?? 1, r.height = r.height ?? 1, r.type === "source" ? t.push(r) : r.type === "target" && n.push(r);
|
|
717
717
|
return {
|
|
718
|
-
source:
|
|
719
|
-
target:
|
|
718
|
+
source: t,
|
|
719
|
+
target: n
|
|
720
720
|
};
|
|
721
721
|
}
|
|
722
|
-
function
|
|
723
|
-
let
|
|
724
|
-
if (
|
|
725
|
-
x:
|
|
726
|
-
y:
|
|
722
|
+
function X(e, t, n = v.Left, r = !1) {
|
|
723
|
+
let i = (t?.x ?? 0) + e.internals.positionAbsolute.x, a = (t?.y ?? 0) + e.internals.positionAbsolute.y, { width: o, height: s } = t ?? J(e);
|
|
724
|
+
if (r) return {
|
|
725
|
+
x: i + o / 2,
|
|
726
|
+
y: a + s / 2
|
|
727
727
|
};
|
|
728
|
-
switch (
|
|
729
|
-
case
|
|
730
|
-
x:
|
|
731
|
-
y:
|
|
728
|
+
switch (t?.position ?? n) {
|
|
729
|
+
case v.Top: return {
|
|
730
|
+
x: i + o / 2,
|
|
731
|
+
y: a
|
|
732
732
|
};
|
|
733
|
-
case
|
|
734
|
-
x:
|
|
735
|
-
y:
|
|
733
|
+
case v.Right: return {
|
|
734
|
+
x: i + o,
|
|
735
|
+
y: a + s / 2
|
|
736
736
|
};
|
|
737
|
-
case
|
|
738
|
-
x:
|
|
739
|
-
y:
|
|
737
|
+
case v.Bottom: return {
|
|
738
|
+
x: i + o / 2,
|
|
739
|
+
y: a + s
|
|
740
740
|
};
|
|
741
|
-
case
|
|
742
|
-
x:
|
|
743
|
-
y:
|
|
741
|
+
case v.Left: return {
|
|
742
|
+
x: i,
|
|
743
|
+
y: a + s / 2
|
|
744
744
|
};
|
|
745
745
|
}
|
|
746
746
|
}
|
|
747
|
-
function
|
|
748
|
-
return e && (
|
|
749
|
-
}
|
|
750
|
-
function
|
|
751
|
-
return e ? typeof e == "string" ? e : `${
|
|
752
|
-
}
|
|
753
|
-
function
|
|
754
|
-
let
|
|
755
|
-
return e.reduce((e,
|
|
756
|
-
if (
|
|
757
|
-
let
|
|
758
|
-
|
|
759
|
-
id:
|
|
760
|
-
color:
|
|
761
|
-
...
|
|
762
|
-
}),
|
|
747
|
+
function Ve(e, t) {
|
|
748
|
+
return e && (t ? e.find((e) => e.id === t) : e[0]) || null;
|
|
749
|
+
}
|
|
750
|
+
function He(e, t) {
|
|
751
|
+
return e ? typeof e == "string" ? e : `${t ? `${t}__` : ""}${Object.keys(e).sort().map((t) => `${t}=${e[t]}`).join("&")}` : "";
|
|
752
|
+
}
|
|
753
|
+
function Ue(e, { id: t, defaultColor: n, defaultMarkerStart: r, defaultMarkerEnd: i }) {
|
|
754
|
+
let a = /* @__PURE__ */ new Set();
|
|
755
|
+
return e.reduce((e, o) => ([o.markerStart || r, o.markerEnd || i].forEach((r) => {
|
|
756
|
+
if (r && typeof r == "object") {
|
|
757
|
+
let i = He(r, t);
|
|
758
|
+
a.has(i) || (e.push({
|
|
759
|
+
id: i,
|
|
760
|
+
color: r.color || n,
|
|
761
|
+
...r
|
|
762
|
+
}), a.add(i));
|
|
763
763
|
}
|
|
764
|
-
}), e), []).sort((e,
|
|
764
|
+
}), e), []).sort((e, t) => e.id.localeCompare(t.id));
|
|
765
765
|
}
|
|
766
|
-
var
|
|
766
|
+
var We = 1e3, Ge = 10, Ke = {
|
|
767
767
|
nodeOrigin: [0, 0],
|
|
768
|
-
nodeExtent:
|
|
768
|
+
nodeExtent: l,
|
|
769
769
|
elevateNodesOnSelect: !0,
|
|
770
770
|
zIndexMode: "basic",
|
|
771
771
|
defaults: {}
|
|
772
|
-
},
|
|
773
|
-
...
|
|
772
|
+
}, qe = {
|
|
773
|
+
...Ke,
|
|
774
774
|
checkEquality: !0
|
|
775
775
|
};
|
|
776
|
-
function
|
|
777
|
-
let
|
|
778
|
-
for (let e in
|
|
779
|
-
return
|
|
780
|
-
}
|
|
781
|
-
function
|
|
782
|
-
let
|
|
783
|
-
for (let
|
|
776
|
+
function Je(e, t) {
|
|
777
|
+
let n = { ...e };
|
|
778
|
+
for (let e in t) t[e] !== void 0 && (n[e] = t[e]);
|
|
779
|
+
return n;
|
|
780
|
+
}
|
|
781
|
+
function Ye(e, t, n) {
|
|
782
|
+
let r = Je(Ke, n);
|
|
783
|
+
for (let n of e.values()) if (n.parentId) et(n, e, t, r);
|
|
784
784
|
else {
|
|
785
|
-
let e =
|
|
786
|
-
|
|
785
|
+
let e = P(w(n, r.nodeOrigin), q(n.extent) ? n.extent : r.nodeExtent, J(n));
|
|
786
|
+
n.internals.positionAbsolute = e;
|
|
787
787
|
}
|
|
788
788
|
}
|
|
789
|
-
function
|
|
790
|
-
if (!e.handles) return e.measured ?
|
|
791
|
-
let
|
|
792
|
-
for (let
|
|
793
|
-
let
|
|
794
|
-
id:
|
|
795
|
-
width:
|
|
796
|
-
height:
|
|
789
|
+
function Xe(e, t) {
|
|
790
|
+
if (!e.handles) return e.measured ? t?.internals.handleBounds : void 0;
|
|
791
|
+
let n = [], r = [];
|
|
792
|
+
for (let t of e.handles) {
|
|
793
|
+
let i = {
|
|
794
|
+
id: t.id,
|
|
795
|
+
width: t.width ?? 1,
|
|
796
|
+
height: t.height ?? 1,
|
|
797
797
|
nodeId: e.id,
|
|
798
|
-
x:
|
|
799
|
-
y:
|
|
800
|
-
position:
|
|
801
|
-
type:
|
|
798
|
+
x: t.x,
|
|
799
|
+
y: t.y,
|
|
800
|
+
position: t.position,
|
|
801
|
+
type: t.type
|
|
802
802
|
};
|
|
803
|
-
|
|
803
|
+
t.type === "source" ? n.push(i) : t.type === "target" && r.push(i);
|
|
804
804
|
}
|
|
805
805
|
return {
|
|
806
|
-
source:
|
|
807
|
-
target:
|
|
806
|
+
source: n,
|
|
807
|
+
target: r
|
|
808
808
|
};
|
|
809
809
|
}
|
|
810
|
-
function
|
|
810
|
+
function Ze(e) {
|
|
811
811
|
return e === "manual";
|
|
812
812
|
}
|
|
813
|
-
function
|
|
814
|
-
let
|
|
815
|
-
|
|
816
|
-
for (let
|
|
817
|
-
let e =
|
|
818
|
-
if (
|
|
813
|
+
function Qe(e, t, n, r = {}) {
|
|
814
|
+
let i = Je(qe, r), a = { i: 0 }, o = new Map(t), s = i?.elevateNodesOnSelect && !Ze(i.zIndexMode) ? We : 0, c = e.length > 0, l = !1;
|
|
815
|
+
t.clear(), n.clear();
|
|
816
|
+
for (let u of e) {
|
|
817
|
+
let e = o.get(u.id);
|
|
818
|
+
if (i.checkEquality && u === e?.internals.userNode) t.set(u.id, e);
|
|
819
819
|
else {
|
|
820
|
-
let
|
|
820
|
+
let n = P(w(u, i.nodeOrigin), q(u.extent) ? u.extent : i.nodeExtent, J(u));
|
|
821
821
|
e = {
|
|
822
|
-
...
|
|
823
|
-
...
|
|
822
|
+
...i.defaults,
|
|
823
|
+
...u,
|
|
824
824
|
measured: {
|
|
825
|
-
width:
|
|
826
|
-
height:
|
|
825
|
+
width: u.measured?.width,
|
|
826
|
+
height: u.measured?.height
|
|
827
827
|
},
|
|
828
828
|
internals: {
|
|
829
|
-
positionAbsolute:
|
|
830
|
-
handleBounds:
|
|
831
|
-
z:
|
|
832
|
-
userNode:
|
|
829
|
+
positionAbsolute: n,
|
|
830
|
+
handleBounds: Xe(u, e),
|
|
831
|
+
z: tt(u, s, i.zIndexMode),
|
|
832
|
+
userNode: u
|
|
833
833
|
}
|
|
834
|
-
},
|
|
834
|
+
}, t.set(u.id, e);
|
|
835
835
|
}
|
|
836
|
-
(e.measured === void 0 || e.measured.width === void 0 || e.measured.height === void 0) && !e.hidden && (
|
|
836
|
+
(e.measured === void 0 || e.measured.width === void 0 || e.measured.height === void 0) && !e.hidden && (c = !1), u.parentId && et(e, t, n, r, a), l ||= u.selected ?? !1;
|
|
837
837
|
}
|
|
838
|
-
return
|
|
838
|
+
return {
|
|
839
|
+
nodesInitialized: c,
|
|
840
|
+
hasSelectedNodes: l
|
|
841
|
+
};
|
|
839
842
|
}
|
|
840
|
-
function
|
|
843
|
+
function $e(e, t) {
|
|
841
844
|
if (!e.parentId) return;
|
|
842
|
-
let
|
|
843
|
-
|
|
845
|
+
let n = t.get(e.parentId);
|
|
846
|
+
n ? n.set(e.id, e) : t.set(e.parentId, new Map([[e.id, e]]));
|
|
844
847
|
}
|
|
845
|
-
function
|
|
846
|
-
let { elevateNodesOnSelect:
|
|
847
|
-
if (!
|
|
848
|
-
console.warn(`Parent node ${
|
|
848
|
+
function et(e, t, n, r, i) {
|
|
849
|
+
let { elevateNodesOnSelect: a, nodeOrigin: o, nodeExtent: s, zIndexMode: c } = Je(Ke, r), l = e.parentId, u = t.get(l);
|
|
850
|
+
if (!u) {
|
|
851
|
+
console.warn(`Parent node ${l} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);
|
|
849
852
|
return;
|
|
850
853
|
}
|
|
851
|
-
|
|
852
|
-
let { x:
|
|
853
|
-
(
|
|
854
|
+
$e(e, n), i && !u.parentId && u.internals.rootParentIndex === void 0 && c === "auto" && (u.internals.rootParentIndex = ++i.i, u.internals.z = u.internals.z + i.i * Ge), i && u.internals.rootParentIndex !== void 0 && (i.i = u.internals.rootParentIndex);
|
|
855
|
+
let { x: d, y: f, z: p } = nt(e, u, o, s, a && !Ze(c) ? We : 0, c), { positionAbsolute: m } = e.internals, h = d !== m.x || f !== m.y;
|
|
856
|
+
(h || p !== e.internals.z) && t.set(e.id, {
|
|
854
857
|
...e,
|
|
855
858
|
internals: {
|
|
856
859
|
...e.internals,
|
|
857
|
-
positionAbsolute:
|
|
858
|
-
x:
|
|
859
|
-
y:
|
|
860
|
-
} :
|
|
861
|
-
z:
|
|
860
|
+
positionAbsolute: h ? {
|
|
861
|
+
x: d,
|
|
862
|
+
y: f
|
|
863
|
+
} : m,
|
|
864
|
+
z: p
|
|
862
865
|
}
|
|
863
866
|
});
|
|
864
867
|
}
|
|
865
|
-
function
|
|
866
|
-
let
|
|
867
|
-
return
|
|
868
|
-
}
|
|
869
|
-
function
|
|
870
|
-
let { x:
|
|
871
|
-
x:
|
|
872
|
-
y:
|
|
873
|
-
},
|
|
874
|
-
e.extent === "parent" && (
|
|
875
|
-
let
|
|
868
|
+
function tt(e, t, n) {
|
|
869
|
+
let r = U(e.zIndex) ? e.zIndex : 0;
|
|
870
|
+
return Ze(n) ? r : r + (e.selected ? t : 0);
|
|
871
|
+
}
|
|
872
|
+
function nt(e, t, n, r, i, a) {
|
|
873
|
+
let { x: o, y: s } = t.internals.positionAbsolute, c = J(e), l = w(e, n), u = q(e.extent) ? P(l, e.extent, c) : l, d = P({
|
|
874
|
+
x: o + u.x,
|
|
875
|
+
y: s + u.y
|
|
876
|
+
}, r, c);
|
|
877
|
+
e.extent === "parent" && (d = F(d, c, t));
|
|
878
|
+
let f = tt(e, i, a), p = t.internals.z ?? 0;
|
|
876
879
|
return {
|
|
877
|
-
x:
|
|
878
|
-
y:
|
|
879
|
-
z:
|
|
880
|
+
x: d.x,
|
|
881
|
+
y: d.y,
|
|
882
|
+
z: p >= f ? p + 1 : f
|
|
880
883
|
};
|
|
881
884
|
}
|
|
882
|
-
function
|
|
883
|
-
let
|
|
884
|
-
for (let
|
|
885
|
-
let e =
|
|
885
|
+
function rt(e, t, n, r = [0, 0]) {
|
|
886
|
+
let i = [], a = /* @__PURE__ */ new Map();
|
|
887
|
+
for (let n of e) {
|
|
888
|
+
let e = t.get(n.parentId);
|
|
886
889
|
if (!e) continue;
|
|
887
|
-
let
|
|
888
|
-
|
|
889
|
-
expandedRect:
|
|
890
|
+
let r = B(a.get(n.parentId)?.expandedRect ?? z(e), n.rect);
|
|
891
|
+
a.set(n.parentId, {
|
|
892
|
+
expandedRect: r,
|
|
890
893
|
parent: e
|
|
891
894
|
});
|
|
892
895
|
}
|
|
893
|
-
return
|
|
894
|
-
let
|
|
895
|
-
(
|
|
896
|
-
id:
|
|
896
|
+
return a.size > 0 && a.forEach(({ expandedRect: t, parent: a }, o) => {
|
|
897
|
+
let s = a.internals.positionAbsolute, c = J(a), l = a.origin ?? r, u = t.x < s.x ? Math.round(Math.abs(s.x - t.x)) : 0, d = t.y < s.y ? Math.round(Math.abs(s.y - t.y)) : 0, f = Math.max(c.width, Math.round(t.width)), p = Math.max(c.height, Math.round(t.height)), m = (f - c.width) * l[0], h = (p - c.height) * l[1];
|
|
898
|
+
(u > 0 || d > 0 || m || h) && (i.push({
|
|
899
|
+
id: o,
|
|
897
900
|
type: "position",
|
|
898
901
|
position: {
|
|
899
|
-
x:
|
|
900
|
-
y:
|
|
902
|
+
x: a.position.x - u + m,
|
|
903
|
+
y: a.position.y - d + h
|
|
901
904
|
}
|
|
902
|
-
}),
|
|
903
|
-
e.some((e) => e.id ===
|
|
904
|
-
id:
|
|
905
|
+
}), n.get(o)?.forEach((t) => {
|
|
906
|
+
e.some((e) => e.id === t.id) || i.push({
|
|
907
|
+
id: t.id,
|
|
905
908
|
type: "position",
|
|
906
909
|
position: {
|
|
907
|
-
x:
|
|
908
|
-
y:
|
|
910
|
+
x: t.position.x + u,
|
|
911
|
+
y: t.position.y + d
|
|
909
912
|
}
|
|
910
913
|
});
|
|
911
|
-
})), (
|
|
912
|
-
id:
|
|
914
|
+
})), (c.width < t.width || c.height < t.height || u || d) && i.push({
|
|
915
|
+
id: o,
|
|
913
916
|
type: "dimensions",
|
|
914
917
|
setAttributes: !0,
|
|
915
918
|
dimensions: {
|
|
916
|
-
width:
|
|
917
|
-
height:
|
|
919
|
+
width: f + (u ? l[0] * u - m : 0),
|
|
920
|
+
height: p + (d ? l[1] * d - h : 0)
|
|
918
921
|
}
|
|
919
922
|
});
|
|
920
|
-
}),
|
|
923
|
+
}), i;
|
|
921
924
|
}
|
|
922
|
-
function
|
|
923
|
-
let
|
|
924
|
-
if (!
|
|
925
|
+
function it(e, t, n, r, i, a, o) {
|
|
926
|
+
let s = r?.querySelector(".xyflow__viewport"), c = !1;
|
|
927
|
+
if (!s) return {
|
|
925
928
|
changes: [],
|
|
926
|
-
updatedInternals:
|
|
929
|
+
updatedInternals: c
|
|
927
930
|
};
|
|
928
|
-
let
|
|
929
|
-
for (let
|
|
930
|
-
let e =
|
|
931
|
+
let l = [], u = window.getComputedStyle(s), { m22: d } = new window.DOMMatrixReadOnly(u.transform), f = [];
|
|
932
|
+
for (let r of e.values()) {
|
|
933
|
+
let e = t.get(r.id);
|
|
931
934
|
if (!e) continue;
|
|
932
935
|
if (e.hidden) {
|
|
933
|
-
|
|
936
|
+
t.set(e.id, {
|
|
934
937
|
...e,
|
|
935
938
|
internals: {
|
|
936
939
|
...e.internals,
|
|
937
940
|
handleBounds: void 0
|
|
938
941
|
}
|
|
939
|
-
}),
|
|
942
|
+
}), c = !0;
|
|
940
943
|
continue;
|
|
941
944
|
}
|
|
942
|
-
let
|
|
943
|
-
if (
|
|
944
|
-
let
|
|
945
|
-
e.parentId && e.extent === "parent" ?
|
|
946
|
-
let
|
|
945
|
+
let s = he(r.nodeElement), u = e.measured.width !== s.width || e.measured.height !== s.height;
|
|
946
|
+
if (s.width && s.height && (u || !e.internals.handleBounds || r.force)) {
|
|
947
|
+
let p = r.nodeElement.getBoundingClientRect(), m = q(e.extent) ? e.extent : a, { positionAbsolute: h } = e.internals;
|
|
948
|
+
e.parentId && e.extent === "parent" ? h = F(h, s, t.get(e.parentId)) : m && (h = P(h, m, s));
|
|
949
|
+
let g = {
|
|
947
950
|
...e,
|
|
948
|
-
measured:
|
|
951
|
+
measured: s,
|
|
949
952
|
internals: {
|
|
950
953
|
...e.internals,
|
|
951
|
-
positionAbsolute:
|
|
954
|
+
positionAbsolute: h,
|
|
952
955
|
handleBounds: {
|
|
953
|
-
source:
|
|
954
|
-
target:
|
|
956
|
+
source: be("source", r.nodeElement, p, d, e.id),
|
|
957
|
+
target: be("target", r.nodeElement, p, d, e.id)
|
|
955
958
|
}
|
|
956
959
|
}
|
|
957
960
|
};
|
|
958
|
-
|
|
959
|
-
nodeOrigin:
|
|
960
|
-
zIndexMode:
|
|
961
|
-
}),
|
|
961
|
+
t.set(e.id, g), e.parentId && et(g, t, n, {
|
|
962
|
+
nodeOrigin: i,
|
|
963
|
+
zIndexMode: o
|
|
964
|
+
}), c = !0, u && (l.push({
|
|
962
965
|
id: e.id,
|
|
963
966
|
type: "dimensions",
|
|
964
|
-
dimensions:
|
|
965
|
-
}), e.expandParent && e.parentId &&
|
|
967
|
+
dimensions: s
|
|
968
|
+
}), e.expandParent && e.parentId && f.push({
|
|
966
969
|
id: e.id,
|
|
967
970
|
parentId: e.parentId,
|
|
968
|
-
rect:
|
|
971
|
+
rect: z(g, i)
|
|
969
972
|
}));
|
|
970
973
|
}
|
|
971
974
|
}
|
|
972
|
-
if (
|
|
973
|
-
let e =
|
|
974
|
-
|
|
975
|
+
if (f.length > 0) {
|
|
976
|
+
let e = rt(f, t, n, i);
|
|
977
|
+
l.push(...e);
|
|
975
978
|
}
|
|
976
979
|
return {
|
|
977
|
-
changes:
|
|
978
|
-
updatedInternals:
|
|
980
|
+
changes: l,
|
|
981
|
+
updatedInternals: c
|
|
979
982
|
};
|
|
980
983
|
}
|
|
981
|
-
async function
|
|
982
|
-
if (!
|
|
983
|
-
let
|
|
984
|
-
x:
|
|
985
|
-
y:
|
|
986
|
-
zoom:
|
|
987
|
-
}, [[0, 0], [
|
|
988
|
-
return Promise.resolve(
|
|
989
|
-
}
|
|
990
|
-
function
|
|
991
|
-
let
|
|
992
|
-
|
|
993
|
-
let
|
|
994
|
-
if (
|
|
995
|
-
|
|
996
|
-
let
|
|
997
|
-
|
|
984
|
+
async function at({ delta: e, panZoom: t, transform: n, translateExtent: r, width: i, height: a }) {
|
|
985
|
+
if (!t || !e.x && !e.y) return Promise.resolve(!1);
|
|
986
|
+
let o = await t.setViewportConstrained({
|
|
987
|
+
x: n[0] + e.x,
|
|
988
|
+
y: n[1] + e.y,
|
|
989
|
+
zoom: n[2]
|
|
990
|
+
}, [[0, 0], [i, a]], r), s = !!o && (o.x !== n[0] || o.y !== n[1] || o.k !== n[2]);
|
|
991
|
+
return Promise.resolve(s);
|
|
992
|
+
}
|
|
993
|
+
function ot(e, t, n, r, i, a) {
|
|
994
|
+
let o = i, s = r.get(o) || /* @__PURE__ */ new Map();
|
|
995
|
+
r.set(o, s.set(n, t)), o = `${i}-${e}`;
|
|
996
|
+
let c = r.get(o) || /* @__PURE__ */ new Map();
|
|
997
|
+
if (r.set(o, c.set(n, t)), a) {
|
|
998
|
+
o = `${i}-${e}-${a}`;
|
|
999
|
+
let s = r.get(o) || /* @__PURE__ */ new Map();
|
|
1000
|
+
r.set(o, s.set(n, t));
|
|
998
1001
|
}
|
|
999
1002
|
}
|
|
1000
|
-
function
|
|
1001
|
-
e.clear(),
|
|
1002
|
-
for (let
|
|
1003
|
-
let { source:
|
|
1004
|
-
edgeId:
|
|
1005
|
-
source:
|
|
1006
|
-
target:
|
|
1007
|
-
sourceHandle:
|
|
1008
|
-
targetHandle:
|
|
1009
|
-
},
|
|
1010
|
-
|
|
1003
|
+
function st(e, t, n) {
|
|
1004
|
+
e.clear(), t.clear();
|
|
1005
|
+
for (let r of n) {
|
|
1006
|
+
let { source: n, target: i, sourceHandle: a = null, targetHandle: o = null } = r, s = {
|
|
1007
|
+
edgeId: r.id,
|
|
1008
|
+
source: n,
|
|
1009
|
+
target: i,
|
|
1010
|
+
sourceHandle: a,
|
|
1011
|
+
targetHandle: o
|
|
1012
|
+
}, c = `${n}-${a}--${i}-${o}`;
|
|
1013
|
+
ot("source", s, `${i}-${o}--${n}-${a}`, e, n, a), ot("target", s, c, e, i, o), t.set(r.id, r);
|
|
1011
1014
|
}
|
|
1012
1015
|
}
|
|
1013
|
-
function
|
|
1016
|
+
function ct(e, t) {
|
|
1014
1017
|
if (!e.parentId) return !1;
|
|
1015
|
-
let
|
|
1016
|
-
return
|
|
1018
|
+
let n = t.get(e.parentId);
|
|
1019
|
+
return n ? n.selected ? !0 : ct(n, t) : !1;
|
|
1017
1020
|
}
|
|
1018
|
-
function
|
|
1019
|
-
let
|
|
1021
|
+
function lt(e, t, n) {
|
|
1022
|
+
let r = e;
|
|
1020
1023
|
do {
|
|
1021
|
-
if (
|
|
1022
|
-
if (
|
|
1023
|
-
|
|
1024
|
-
} while (
|
|
1024
|
+
if (r?.matches?.(t)) return !0;
|
|
1025
|
+
if (r === n) return !1;
|
|
1026
|
+
r = r?.parentElement;
|
|
1027
|
+
} while (r);
|
|
1025
1028
|
return !1;
|
|
1026
1029
|
}
|
|
1027
|
-
function
|
|
1028
|
-
let
|
|
1029
|
-
for (let [
|
|
1030
|
-
let
|
|
1031
|
-
|
|
1032
|
-
id:
|
|
1033
|
-
position:
|
|
1030
|
+
function ut(e, t, n, r) {
|
|
1031
|
+
let i = /* @__PURE__ */ new Map();
|
|
1032
|
+
for (let [a, o] of e) if ((o.selected || o.id === r) && (!o.parentId || !ct(o, e)) && (o.draggable || t && o.draggable === void 0)) {
|
|
1033
|
+
let t = e.get(a);
|
|
1034
|
+
t && i.set(a, {
|
|
1035
|
+
id: a,
|
|
1036
|
+
position: t.position || {
|
|
1034
1037
|
x: 0,
|
|
1035
1038
|
y: 0
|
|
1036
1039
|
},
|
|
1037
1040
|
distance: {
|
|
1038
|
-
x:
|
|
1039
|
-
y:
|
|
1041
|
+
x: n.x - t.internals.positionAbsolute.x,
|
|
1042
|
+
y: n.y - t.internals.positionAbsolute.y
|
|
1040
1043
|
},
|
|
1041
|
-
extent:
|
|
1042
|
-
parentId:
|
|
1043
|
-
origin:
|
|
1044
|
-
expandParent:
|
|
1045
|
-
internals: { positionAbsolute:
|
|
1044
|
+
extent: t.extent,
|
|
1045
|
+
parentId: t.parentId,
|
|
1046
|
+
origin: t.origin,
|
|
1047
|
+
expandParent: t.expandParent,
|
|
1048
|
+
internals: { positionAbsolute: t.internals.positionAbsolute || {
|
|
1046
1049
|
x: 0,
|
|
1047
1050
|
y: 0
|
|
1048
1051
|
} },
|
|
1049
1052
|
measured: {
|
|
1050
|
-
width:
|
|
1051
|
-
height:
|
|
1053
|
+
width: t.measured.width ?? 0,
|
|
1054
|
+
height: t.measured.height ?? 0
|
|
1052
1055
|
}
|
|
1053
1056
|
});
|
|
1054
1057
|
}
|
|
1055
|
-
return
|
|
1056
|
-
}
|
|
1057
|
-
function
|
|
1058
|
-
let
|
|
1059
|
-
for (let [e,
|
|
1060
|
-
let
|
|
1061
|
-
|
|
1062
|
-
...
|
|
1063
|
-
position:
|
|
1064
|
-
dragging:
|
|
1058
|
+
return i;
|
|
1059
|
+
}
|
|
1060
|
+
function dt({ nodeId: e, dragItems: t, nodeLookup: n, dragging: r = !0 }) {
|
|
1061
|
+
let i = [];
|
|
1062
|
+
for (let [e, a] of t) {
|
|
1063
|
+
let t = n.get(e)?.internals.userNode;
|
|
1064
|
+
t && i.push({
|
|
1065
|
+
...t,
|
|
1066
|
+
position: a.position,
|
|
1067
|
+
dragging: r
|
|
1065
1068
|
});
|
|
1066
1069
|
}
|
|
1067
|
-
if (!e) return [
|
|
1068
|
-
let
|
|
1069
|
-
return [
|
|
1070
|
-
...
|
|
1071
|
-
position:
|
|
1072
|
-
dragging:
|
|
1073
|
-
} :
|
|
1074
|
-
}
|
|
1075
|
-
function
|
|
1076
|
-
let
|
|
1077
|
-
if (!
|
|
1078
|
-
let
|
|
1079
|
-
x:
|
|
1080
|
-
y:
|
|
1081
|
-
},
|
|
1070
|
+
if (!e) return [i[0], i];
|
|
1071
|
+
let a = n.get(e)?.internals.userNode;
|
|
1072
|
+
return [a ? {
|
|
1073
|
+
...a,
|
|
1074
|
+
position: t.get(e)?.position || a.position,
|
|
1075
|
+
dragging: r
|
|
1076
|
+
} : i[0], i];
|
|
1077
|
+
}
|
|
1078
|
+
function ft({ dragItems: e, snapGrid: t, x: n, y: r }) {
|
|
1079
|
+
let i = e.values().next().value;
|
|
1080
|
+
if (!i) return null;
|
|
1081
|
+
let a = {
|
|
1082
|
+
x: n - i.distance.x,
|
|
1083
|
+
y: r - i.distance.y
|
|
1084
|
+
}, o = G(a, t);
|
|
1082
1085
|
return {
|
|
1083
|
-
x:
|
|
1084
|
-
y:
|
|
1086
|
+
x: o.x - a.x,
|
|
1087
|
+
y: o.y - a.y
|
|
1085
1088
|
};
|
|
1086
1089
|
}
|
|
1087
|
-
function
|
|
1088
|
-
let
|
|
1090
|
+
function pt({ onNodeMouseDown: t, getStoreItems: r, onDragStart: i, onDrag: a, onDragStop: o }) {
|
|
1091
|
+
let s = {
|
|
1089
1092
|
x: null,
|
|
1090
1093
|
y: null
|
|
1091
|
-
},
|
|
1094
|
+
}, c = 0, l = /* @__PURE__ */ new Map(), u = !1, d = {
|
|
1092
1095
|
x: 0,
|
|
1093
1096
|
y: 0
|
|
1094
|
-
},
|
|
1095
|
-
function
|
|
1096
|
-
|
|
1097
|
-
function
|
|
1098
|
-
let { nodeLookup:
|
|
1099
|
-
|
|
1097
|
+
}, f = null, p = !1, m = null, h = !1, g = !1, _ = null;
|
|
1098
|
+
function v({ noDragClassName: v, handleSelector: y, domNode: b, isSelectable: x, nodeId: S, nodeClickDistance: C = 0 }) {
|
|
1099
|
+
m = e(b);
|
|
1100
|
+
function w({ x: e, y: t }) {
|
|
1101
|
+
let { nodeLookup: n, nodeExtent: i, snapGrid: o, snapToGrid: c, nodeOrigin: u, onNodeDrag: d, onSelectionDrag: f, onError: p, updateNodePositions: m } = r();
|
|
1102
|
+
s = {
|
|
1100
1103
|
x: e,
|
|
1101
|
-
y:
|
|
1104
|
+
y: t
|
|
1102
1105
|
};
|
|
1103
|
-
let
|
|
1104
|
-
dragItems:
|
|
1105
|
-
snapGrid:
|
|
1106
|
+
let h = !1, v = l.size > 1, y = v && i ? L(E(l)) : null, b = v && c ? ft({
|
|
1107
|
+
dragItems: l,
|
|
1108
|
+
snapGrid: o,
|
|
1106
1109
|
x: e,
|
|
1107
|
-
y:
|
|
1110
|
+
y: t
|
|
1108
1111
|
}) : null;
|
|
1109
|
-
for (let [
|
|
1110
|
-
if (!
|
|
1111
|
-
let
|
|
1112
|
-
x: e -
|
|
1113
|
-
y:
|
|
1112
|
+
for (let [r, a] of l) {
|
|
1113
|
+
if (!n.has(r)) continue;
|
|
1114
|
+
let s = {
|
|
1115
|
+
x: e - a.distance.x,
|
|
1116
|
+
y: t - a.distance.y
|
|
1114
1117
|
};
|
|
1115
|
-
|
|
1116
|
-
x: Math.round(
|
|
1117
|
-
y: Math.round(
|
|
1118
|
-
} :
|
|
1119
|
-
let
|
|
1120
|
-
if (
|
|
1121
|
-
let { positionAbsolute: e } =
|
|
1122
|
-
|
|
1118
|
+
c && (s = b ? {
|
|
1119
|
+
x: Math.round(s.x + b.x),
|
|
1120
|
+
y: Math.round(s.y + b.y)
|
|
1121
|
+
} : G(s, o));
|
|
1122
|
+
let l = null;
|
|
1123
|
+
if (v && i && !a.extent && y) {
|
|
1124
|
+
let { positionAbsolute: e } = a.internals, t = e.x - y.x + i[0][0], n = e.x + a.measured.width - y.x2 + i[1][0], r = e.y - y.y + i[0][1], o = e.y + a.measured.height - y.y2 + i[1][1];
|
|
1125
|
+
l = [[t, r], [n, o]];
|
|
1123
1126
|
}
|
|
1124
|
-
let { position:
|
|
1125
|
-
nodeId:
|
|
1126
|
-
nextPosition:
|
|
1127
|
-
nodeLookup:
|
|
1128
|
-
nodeExtent:
|
|
1129
|
-
nodeOrigin:
|
|
1130
|
-
onError:
|
|
1127
|
+
let { position: d, positionAbsolute: f } = j({
|
|
1128
|
+
nodeId: r,
|
|
1129
|
+
nextPosition: s,
|
|
1130
|
+
nodeLookup: n,
|
|
1131
|
+
nodeExtent: l || i,
|
|
1132
|
+
nodeOrigin: u,
|
|
1133
|
+
onError: p
|
|
1131
1134
|
});
|
|
1132
|
-
|
|
1135
|
+
h = h || a.position.x !== d.x || a.position.y !== d.y, a.position = d, a.internals.positionAbsolute = f;
|
|
1133
1136
|
}
|
|
1134
|
-
if (
|
|
1135
|
-
let [e,
|
|
1136
|
-
nodeId:
|
|
1137
|
-
dragItems:
|
|
1138
|
-
nodeLookup:
|
|
1137
|
+
if (g ||= h, h && (m(l, !0), _ && (a || d || !S && f))) {
|
|
1138
|
+
let [e, t] = dt({
|
|
1139
|
+
nodeId: S,
|
|
1140
|
+
dragItems: l,
|
|
1141
|
+
nodeLookup: n
|
|
1139
1142
|
});
|
|
1140
|
-
|
|
1143
|
+
a?.(_, l, e, t), d?.(_, e, t), S || f?.(_, t);
|
|
1141
1144
|
}
|
|
1142
1145
|
}
|
|
1143
|
-
async function
|
|
1144
|
-
if (!
|
|
1145
|
-
let { transform: e, panBy:
|
|
1146
|
-
if (!
|
|
1147
|
-
|
|
1146
|
+
async function T() {
|
|
1147
|
+
if (!f) return;
|
|
1148
|
+
let { transform: e, panBy: t, autoPanSpeed: n, autoPanOnNodeDrag: i } = r();
|
|
1149
|
+
if (!i) {
|
|
1150
|
+
u = !1, cancelAnimationFrame(c);
|
|
1148
1151
|
return;
|
|
1149
1152
|
}
|
|
1150
|
-
let [
|
|
1151
|
-
(
|
|
1152
|
-
x:
|
|
1153
|
-
y:
|
|
1154
|
-
}) &&
|
|
1153
|
+
let [a, o] = ee(d, f, n);
|
|
1154
|
+
(a !== 0 || o !== 0) && (s.x = (s.x ?? 0) - a / e[2], s.y = (s.y ?? 0) - o / e[2], await t({
|
|
1155
|
+
x: a,
|
|
1156
|
+
y: o
|
|
1157
|
+
}) && w(s)), c = requestAnimationFrame(T);
|
|
1155
1158
|
}
|
|
1156
|
-
function
|
|
1157
|
-
let { nodeLookup:
|
|
1158
|
-
|
|
1159
|
-
let
|
|
1160
|
-
transform:
|
|
1161
|
-
snapGrid:
|
|
1162
|
-
snapToGrid:
|
|
1163
|
-
containerBounds:
|
|
1159
|
+
function D(e) {
|
|
1160
|
+
let { nodeLookup: n, multiSelectionActive: a, nodesDraggable: o, transform: c, snapGrid: u, snapToGrid: d, selectNodesOnDrag: m, onNodeDragStart: h, onSelectionDragStart: g, unselectNodesAndEdges: _ } = r();
|
|
1161
|
+
p = !0, (!m || !x) && !a && S && (n.get(S)?.selected || _()), x && m && S && t?.(S);
|
|
1162
|
+
let v = me(e.sourceEvent, {
|
|
1163
|
+
transform: c,
|
|
1164
|
+
snapGrid: u,
|
|
1165
|
+
snapToGrid: d,
|
|
1166
|
+
containerBounds: f
|
|
1164
1167
|
});
|
|
1165
|
-
if (
|
|
1166
|
-
let [
|
|
1167
|
-
nodeId:
|
|
1168
|
-
dragItems:
|
|
1169
|
-
nodeLookup:
|
|
1168
|
+
if (s = v, l = ut(n, o, v, S), l.size > 0 && (i || h || !S && g)) {
|
|
1169
|
+
let [t, r] = dt({
|
|
1170
|
+
nodeId: S,
|
|
1171
|
+
dragItems: l,
|
|
1172
|
+
nodeLookup: n
|
|
1170
1173
|
});
|
|
1171
|
-
|
|
1174
|
+
i?.(e.sourceEvent, l, t, r), h?.(e.sourceEvent, t, r), S || g?.(e.sourceEvent, r);
|
|
1172
1175
|
}
|
|
1173
1176
|
}
|
|
1174
|
-
let
|
|
1175
|
-
let { domNode:
|
|
1176
|
-
|
|
1177
|
-
transform:
|
|
1178
|
-
snapGrid:
|
|
1179
|
-
snapToGrid:
|
|
1180
|
-
containerBounds:
|
|
1181
|
-
}),
|
|
1177
|
+
let O = n().clickDistance(C).on("start", (e) => {
|
|
1178
|
+
let { domNode: t, nodeDragThreshold: n, transform: i, snapGrid: a, snapToGrid: o } = r();
|
|
1179
|
+
f = t?.getBoundingClientRect() || null, h = !1, g = !1, _ = e.sourceEvent, n === 0 && D(e), s = me(e.sourceEvent, {
|
|
1180
|
+
transform: i,
|
|
1181
|
+
snapGrid: a,
|
|
1182
|
+
snapToGrid: o,
|
|
1183
|
+
containerBounds: f
|
|
1184
|
+
}), d = Y(e.sourceEvent, f);
|
|
1182
1185
|
}).on("drag", (e) => {
|
|
1183
|
-
let { autoPanOnNodeDrag:
|
|
1184
|
-
transform:
|
|
1185
|
-
snapGrid:
|
|
1186
|
-
snapToGrid:
|
|
1187
|
-
containerBounds:
|
|
1186
|
+
let { autoPanOnNodeDrag: t, transform: n, snapGrid: i, snapToGrid: a, nodeDragThreshold: o, nodeLookup: c } = r(), m = me(e.sourceEvent, {
|
|
1187
|
+
transform: n,
|
|
1188
|
+
snapGrid: i,
|
|
1189
|
+
snapToGrid: a,
|
|
1190
|
+
containerBounds: f
|
|
1188
1191
|
});
|
|
1189
|
-
if (
|
|
1190
|
-
if (!
|
|
1191
|
-
let
|
|
1192
|
-
Math.sqrt(
|
|
1192
|
+
if (_ = e.sourceEvent, (e.sourceEvent.type === "touchmove" && e.sourceEvent.touches.length > 1 || S && !c.has(S)) && (h = !0), !h) {
|
|
1193
|
+
if (!u && t && p && (u = !0, T()), !p) {
|
|
1194
|
+
let t = Y(e.sourceEvent, f), n = t.x - d.x, r = t.y - d.y;
|
|
1195
|
+
Math.sqrt(n * n + r * r) > o && D(e);
|
|
1193
1196
|
}
|
|
1194
|
-
(
|
|
1197
|
+
(s.x !== m.xSnapped || s.y !== m.ySnapped) && l && p && (d = Y(e.sourceEvent, f), w(m));
|
|
1195
1198
|
}
|
|
1196
1199
|
}).on("end", (e) => {
|
|
1197
|
-
if (!(!
|
|
1198
|
-
let { nodeLookup:
|
|
1199
|
-
if (
|
|
1200
|
-
let [
|
|
1201
|
-
nodeId:
|
|
1202
|
-
dragItems:
|
|
1203
|
-
nodeLookup:
|
|
1200
|
+
if (!(!p || h) && (u = !1, p = !1, cancelAnimationFrame(c), l.size > 0)) {
|
|
1201
|
+
let { nodeLookup: t, updateNodePositions: n, onNodeDragStop: i, onSelectionDragStop: a } = r();
|
|
1202
|
+
if (g &&= (n(l, !1), !1), o || i || !S && a) {
|
|
1203
|
+
let [n, r] = dt({
|
|
1204
|
+
nodeId: S,
|
|
1205
|
+
dragItems: l,
|
|
1206
|
+
nodeLookup: t,
|
|
1204
1207
|
dragging: !1
|
|
1205
1208
|
});
|
|
1206
|
-
|
|
1209
|
+
o?.(e.sourceEvent, l, n, r), i?.(e.sourceEvent, n, r), S || a?.(e.sourceEvent, r);
|
|
1207
1210
|
}
|
|
1208
1211
|
}
|
|
1209
1212
|
}).filter((e) => {
|
|
1210
|
-
let
|
|
1211
|
-
return !e.button && (!
|
|
1213
|
+
let t = e.target;
|
|
1214
|
+
return !e.button && (!v || !lt(t, `.${v}`, b)) && (!y || lt(t, y, b));
|
|
1212
1215
|
});
|
|
1213
|
-
|
|
1216
|
+
m.call(O);
|
|
1214
1217
|
}
|
|
1215
|
-
function
|
|
1216
|
-
|
|
1218
|
+
function y() {
|
|
1219
|
+
m?.on(".drag", null);
|
|
1217
1220
|
}
|
|
1218
1221
|
return {
|
|
1219
|
-
update:
|
|
1220
|
-
destroy:
|
|
1222
|
+
update: v,
|
|
1223
|
+
destroy: y
|
|
1221
1224
|
};
|
|
1222
1225
|
}
|
|
1223
|
-
function
|
|
1224
|
-
let
|
|
1225
|
-
x: e.x -
|
|
1226
|
-
y: e.y -
|
|
1227
|
-
width:
|
|
1228
|
-
height:
|
|
1226
|
+
function mt(e, t, n) {
|
|
1227
|
+
let r = [], i = {
|
|
1228
|
+
x: e.x - n,
|
|
1229
|
+
y: e.y - n,
|
|
1230
|
+
width: n * 2,
|
|
1231
|
+
height: n * 2
|
|
1229
1232
|
};
|
|
1230
|
-
for (let e of
|
|
1231
|
-
return
|
|
1232
|
-
}
|
|
1233
|
-
var
|
|
1234
|
-
function
|
|
1235
|
-
let
|
|
1236
|
-
for (let
|
|
1237
|
-
let
|
|
1238
|
-
for (let
|
|
1239
|
-
if (
|
|
1240
|
-
let { x:
|
|
1241
|
-
|
|
1242
|
-
...
|
|
1243
|
-
x:
|
|
1244
|
-
y:
|
|
1245
|
-
}],
|
|
1246
|
-
...
|
|
1247
|
-
x:
|
|
1248
|
-
y:
|
|
1233
|
+
for (let e of t.values()) V(i, z(e)) > 0 && r.push(e);
|
|
1234
|
+
return r;
|
|
1235
|
+
}
|
|
1236
|
+
var ht = 250;
|
|
1237
|
+
function gt(e, t, n, r) {
|
|
1238
|
+
let i = [], a = Infinity, o = mt(e, n, t + ht);
|
|
1239
|
+
for (let n of o) {
|
|
1240
|
+
let o = [...n.internals.handleBounds?.source ?? [], ...n.internals.handleBounds?.target ?? []];
|
|
1241
|
+
for (let s of o) {
|
|
1242
|
+
if (r.nodeId === s.nodeId && r.type === s.type && r.id === s.id) continue;
|
|
1243
|
+
let { x: o, y: c } = X(n, s, s.position, !0), l = Math.sqrt((o - e.x) ** 2 + (c - e.y) ** 2);
|
|
1244
|
+
l > t || (l < a ? (i = [{
|
|
1245
|
+
...s,
|
|
1246
|
+
x: o,
|
|
1247
|
+
y: c
|
|
1248
|
+
}], a = l) : l === a && i.push({
|
|
1249
|
+
...s,
|
|
1250
|
+
x: o,
|
|
1251
|
+
y: c
|
|
1249
1252
|
}));
|
|
1250
1253
|
}
|
|
1251
1254
|
}
|
|
1252
|
-
if (!
|
|
1253
|
-
if (
|
|
1254
|
-
let e =
|
|
1255
|
-
return
|
|
1255
|
+
if (!i.length) return null;
|
|
1256
|
+
if (i.length > 1) {
|
|
1257
|
+
let e = r.type === "source" ? "target" : "source";
|
|
1258
|
+
return i.find((t) => t.type === e) ?? i[0];
|
|
1256
1259
|
}
|
|
1257
|
-
return
|
|
1258
|
-
}
|
|
1259
|
-
function
|
|
1260
|
-
let
|
|
1261
|
-
if (!
|
|
1262
|
-
let
|
|
1263
|
-
return
|
|
1264
|
-
...
|
|
1265
|
-
...
|
|
1266
|
-
} :
|
|
1267
|
-
}
|
|
1268
|
-
function
|
|
1269
|
-
return e || (
|
|
1270
|
-
}
|
|
1271
|
-
function
|
|
1272
|
-
let
|
|
1273
|
-
return
|
|
1274
|
-
}
|
|
1275
|
-
var
|
|
1276
|
-
function
|
|
1277
|
-
let
|
|
1278
|
-
if (!
|
|
1279
|
-
let
|
|
1280
|
-
if (!
|
|
1281
|
-
let
|
|
1282
|
-
function
|
|
1283
|
-
if (!
|
|
1284
|
-
let [e,
|
|
1285
|
-
|
|
1260
|
+
return i[0];
|
|
1261
|
+
}
|
|
1262
|
+
function _t(e, t, n, r, i, a = !1) {
|
|
1263
|
+
let o = r.get(e);
|
|
1264
|
+
if (!o) return null;
|
|
1265
|
+
let s = i === "strict" ? o.internals.handleBounds?.[t] : [...o.internals.handleBounds?.source ?? [], ...o.internals.handleBounds?.target ?? []], c = (n ? s?.find((e) => e.id === n) : s?.[0]) ?? null;
|
|
1266
|
+
return c && a ? {
|
|
1267
|
+
...c,
|
|
1268
|
+
...X(o, c, c.position, !0)
|
|
1269
|
+
} : c;
|
|
1270
|
+
}
|
|
1271
|
+
function vt(e, t) {
|
|
1272
|
+
return e || (t?.classList.contains("target") ? "target" : t?.classList.contains("source") ? "source" : null);
|
|
1273
|
+
}
|
|
1274
|
+
function yt(e, t) {
|
|
1275
|
+
let n = null;
|
|
1276
|
+
return t ? n = !0 : e && !t && (n = !1), n;
|
|
1277
|
+
}
|
|
1278
|
+
var bt = () => !0;
|
|
1279
|
+
function xt(e, { connectionMode: t, connectionRadius: n, handleId: r, nodeId: i, edgeUpdaterType: a, isTarget: o, domNode: s, nodeLookup: c, lib: l, autoPanOnConnect: u, flowId: d, panBy: f, cancelConnection: p, onConnectStart: m, onConnect: h, onConnectEnd: g, isValidConnection: _ = bt, onReconnectEnd: b, updateConnection: x, getTransform: S, getFromHandle: C, autoPanSpeed: w, dragThreshold: T = 1, handleDomNode: E }) {
|
|
1280
|
+
let D = ge(e.target), O = 0, k, { x: A, y: j } = Y(e), M = vt(a, E), N = s?.getBoundingClientRect(), P = !1;
|
|
1281
|
+
if (!N || !M) return;
|
|
1282
|
+
let F = _t(i, M, r, c, t);
|
|
1283
|
+
if (!F) return;
|
|
1284
|
+
let I = Y(e, N), te = !1, L = null, R = !1, z = null;
|
|
1285
|
+
function ne() {
|
|
1286
|
+
if (!u || !N) return;
|
|
1287
|
+
let [e, t] = ee(I, N, w);
|
|
1288
|
+
f({
|
|
1286
1289
|
x: e,
|
|
1287
|
-
y:
|
|
1288
|
-
}),
|
|
1290
|
+
y: t
|
|
1291
|
+
}), O = requestAnimationFrame(ne);
|
|
1289
1292
|
}
|
|
1290
|
-
let
|
|
1291
|
-
...
|
|
1292
|
-
nodeId:
|
|
1293
|
-
type:
|
|
1294
|
-
position:
|
|
1295
|
-
},
|
|
1293
|
+
let B = {
|
|
1294
|
+
...F,
|
|
1295
|
+
nodeId: i,
|
|
1296
|
+
type: M,
|
|
1297
|
+
position: F.position
|
|
1298
|
+
}, V = c.get(i), H = {
|
|
1296
1299
|
inProgress: !0,
|
|
1297
1300
|
isValid: null,
|
|
1298
|
-
from:
|
|
1299
|
-
fromHandle:
|
|
1300
|
-
fromPosition:
|
|
1301
|
-
fromNode:
|
|
1302
|
-
to:
|
|
1301
|
+
from: X(V, B, v.Left, !0),
|
|
1302
|
+
fromHandle: B,
|
|
1303
|
+
fromPosition: B.position,
|
|
1304
|
+
fromNode: V,
|
|
1305
|
+
to: I,
|
|
1303
1306
|
toHandle: null,
|
|
1304
|
-
toPosition:
|
|
1307
|
+
toPosition: y[B.position],
|
|
1305
1308
|
toNode: null,
|
|
1306
|
-
pointer:
|
|
1309
|
+
pointer: I
|
|
1307
1310
|
};
|
|
1308
|
-
function
|
|
1309
|
-
|
|
1310
|
-
nodeId:
|
|
1311
|
-
handleId:
|
|
1312
|
-
handleType:
|
|
1311
|
+
function U() {
|
|
1312
|
+
P = !0, x(H), m?.(e, {
|
|
1313
|
+
nodeId: i,
|
|
1314
|
+
handleId: r,
|
|
1315
|
+
handleType: M
|
|
1313
1316
|
});
|
|
1314
1317
|
}
|
|
1315
|
-
|
|
1316
|
-
function
|
|
1317
|
-
if (!
|
|
1318
|
-
let { x:
|
|
1319
|
-
if (!(
|
|
1320
|
-
|
|
1318
|
+
T === 0 && U();
|
|
1319
|
+
function W(e) {
|
|
1320
|
+
if (!P) {
|
|
1321
|
+
let { x: t, y: n } = Y(e), r = t - A, i = n - j;
|
|
1322
|
+
if (!(r * r + i * i > T * T)) return;
|
|
1323
|
+
U();
|
|
1321
1324
|
}
|
|
1322
|
-
if (!
|
|
1323
|
-
|
|
1325
|
+
if (!C() || !B) {
|
|
1326
|
+
G(e);
|
|
1324
1327
|
return;
|
|
1325
1328
|
}
|
|
1326
|
-
let
|
|
1327
|
-
|
|
1328
|
-
let
|
|
1329
|
-
handle:
|
|
1330
|
-
connectionMode:
|
|
1331
|
-
fromNodeId:
|
|
1332
|
-
fromHandleId:
|
|
1333
|
-
fromType:
|
|
1334
|
-
isValidConnection:
|
|
1335
|
-
doc:
|
|
1336
|
-
lib:
|
|
1337
|
-
flowId:
|
|
1338
|
-
nodeLookup:
|
|
1329
|
+
let a = S();
|
|
1330
|
+
I = Y(e, N), k = gt(re(I, a, !1, [1, 1]), n, c, B), te ||= (ne(), !0);
|
|
1331
|
+
let s = St(e, {
|
|
1332
|
+
handle: k,
|
|
1333
|
+
connectionMode: t,
|
|
1334
|
+
fromNodeId: i,
|
|
1335
|
+
fromHandleId: r,
|
|
1336
|
+
fromType: o ? "target" : "source",
|
|
1337
|
+
isValidConnection: _,
|
|
1338
|
+
doc: D,
|
|
1339
|
+
lib: l,
|
|
1340
|
+
flowId: d,
|
|
1341
|
+
nodeLookup: c
|
|
1339
1342
|
});
|
|
1340
|
-
|
|
1341
|
-
let
|
|
1342
|
-
...
|
|
1343
|
-
from:
|
|
1344
|
-
isValid:
|
|
1345
|
-
to:
|
|
1346
|
-
x:
|
|
1347
|
-
y:
|
|
1348
|
-
},
|
|
1349
|
-
toHandle:
|
|
1350
|
-
toPosition:
|
|
1351
|
-
toNode:
|
|
1352
|
-
pointer:
|
|
1343
|
+
z = s.handleDomNode, L = s.connection, R = yt(!!k, s.isValid);
|
|
1344
|
+
let u = c.get(i), f = u ? X(u, B, v.Left, !0) : H.from, p = {
|
|
1345
|
+
...H,
|
|
1346
|
+
from: f,
|
|
1347
|
+
isValid: R,
|
|
1348
|
+
to: s.toHandle && R ? ie({
|
|
1349
|
+
x: s.toHandle.x,
|
|
1350
|
+
y: s.toHandle.y
|
|
1351
|
+
}, a) : I,
|
|
1352
|
+
toHandle: s.toHandle,
|
|
1353
|
+
toPosition: R && s.toHandle ? s.toHandle.position : y[B.position],
|
|
1354
|
+
toNode: s.toHandle ? c.get(s.toHandle.nodeId) : null,
|
|
1355
|
+
pointer: I
|
|
1353
1356
|
};
|
|
1354
|
-
|
|
1357
|
+
x(p), H = p;
|
|
1355
1358
|
}
|
|
1356
|
-
function
|
|
1359
|
+
function G(e) {
|
|
1357
1360
|
if (!("touches" in e && e.touches.length > 0)) {
|
|
1358
|
-
if (
|
|
1359
|
-
(
|
|
1360
|
-
let { inProgress:
|
|
1361
|
-
...
|
|
1362
|
-
toPosition:
|
|
1361
|
+
if (P) {
|
|
1362
|
+
(k || z) && L && R && h?.(L);
|
|
1363
|
+
let { inProgress: t, ...n } = H, r = {
|
|
1364
|
+
...n,
|
|
1365
|
+
toPosition: H.toHandle ? H.toPosition : null
|
|
1363
1366
|
};
|
|
1364
|
-
|
|
1367
|
+
g?.(e, r), a && b?.(e, r);
|
|
1365
1368
|
}
|
|
1366
|
-
|
|
1369
|
+
p(), cancelAnimationFrame(O), te = !1, R = !1, L = null, z = null, D.removeEventListener("mousemove", W), D.removeEventListener("mouseup", G), D.removeEventListener("touchmove", W), D.removeEventListener("touchend", G);
|
|
1367
1370
|
}
|
|
1368
1371
|
}
|
|
1369
|
-
|
|
1372
|
+
D.addEventListener("mousemove", W), D.addEventListener("mouseup", G), D.addEventListener("touchmove", W), D.addEventListener("touchend", G);
|
|
1370
1373
|
}
|
|
1371
|
-
function
|
|
1372
|
-
let
|
|
1373
|
-
handleDomNode:
|
|
1374
|
+
function St(e, { handle: t, connectionMode: n, fromNodeId: r, fromHandleId: i, fromType: a, doc: o, lib: s, flowId: c, isValidConnection: l = bt, nodeLookup: u }) {
|
|
1375
|
+
let d = a === "target", p = t ? o.querySelector(`.${s}-flow__handle[data-id="${c}-${t?.nodeId}-${t?.id}-${t?.type}"]`) : null, { x: m, y: h } = Y(e), g = o.elementFromPoint(m, h), _ = g?.classList.contains(`${s}-flow__handle`) ? g : p, v = {
|
|
1376
|
+
handleDomNode: _,
|
|
1374
1377
|
isValid: !1,
|
|
1375
1378
|
connection: null,
|
|
1376
1379
|
toHandle: null
|
|
1377
1380
|
};
|
|
1378
|
-
if (
|
|
1379
|
-
let e =
|
|
1380
|
-
if (!
|
|
1381
|
-
let
|
|
1382
|
-
source:
|
|
1383
|
-
sourceHandle:
|
|
1384
|
-
target:
|
|
1385
|
-
targetHandle:
|
|
1381
|
+
if (_) {
|
|
1382
|
+
let e = vt(void 0, _), t = _.getAttribute("data-nodeid"), a = _.getAttribute("data-handleid"), o = _.classList.contains("connectable"), s = _.classList.contains("connectableend");
|
|
1383
|
+
if (!t || !e) return v;
|
|
1384
|
+
let c = {
|
|
1385
|
+
source: d ? t : r,
|
|
1386
|
+
sourceHandle: d ? a : i,
|
|
1387
|
+
target: d ? r : t,
|
|
1388
|
+
targetHandle: d ? i : a
|
|
1386
1389
|
};
|
|
1387
|
-
|
|
1390
|
+
v.connection = c, v.isValid = o && s && (n === f.Strict ? d && e === "source" || !d && e === "target" : t !== r || a !== i) && l(c), v.toHandle = _t(t, e, a, u, n, !0);
|
|
1388
1391
|
}
|
|
1389
|
-
return
|
|
1392
|
+
return v;
|
|
1390
1393
|
}
|
|
1391
|
-
var
|
|
1392
|
-
onPointerDown,
|
|
1393
|
-
isValid:
|
|
1394
|
+
var Ct = {
|
|
1395
|
+
onPointerDown: xt,
|
|
1396
|
+
isValid: St
|
|
1394
1397
|
};
|
|
1395
|
-
function
|
|
1396
|
-
let
|
|
1397
|
-
function
|
|
1398
|
-
let
|
|
1399
|
-
if (e.sourceEvent.type !== "wheel" || !
|
|
1400
|
-
let
|
|
1401
|
-
|
|
1402
|
-
},
|
|
1403
|
-
(e.sourceEvent.type === "mousedown" || e.sourceEvent.type === "touchstart") && (
|
|
1404
|
-
}).on("zoom",
|
|
1405
|
-
let
|
|
1406
|
-
if (
|
|
1407
|
-
let
|
|
1408
|
-
|
|
1409
|
-
let
|
|
1410
|
-
x:
|
|
1411
|
-
y:
|
|
1412
|
-
},
|
|
1413
|
-
|
|
1414
|
-
x:
|
|
1415
|
-
y:
|
|
1416
|
-
zoom:
|
|
1417
|
-
},
|
|
1418
|
-
} : null).on("zoom.wheel",
|
|
1419
|
-
|
|
1398
|
+
function wt({ domNode: n, panZoom: r, getTransform: i, getViewScale: a }) {
|
|
1399
|
+
let o = e(n);
|
|
1400
|
+
function c({ translateExtent: e, width: t, height: n, zoomStep: c = 1, pannable: l = !0, zoomable: u = !0, inversePan: d = !1 }) {
|
|
1401
|
+
let f = (e) => {
|
|
1402
|
+
if (e.sourceEvent.type !== "wheel" || !r) return;
|
|
1403
|
+
let t = i(), n = e.sourceEvent.ctrlKey && ce() ? 10 : 1, a = -e.sourceEvent.deltaY * (e.sourceEvent.deltaMode === 1 ? .05 : e.sourceEvent.deltaMode ? 1 : .002) * c, o = t[2] * 2 ** (a * n);
|
|
1404
|
+
r.scaleTo(o);
|
|
1405
|
+
}, p = [0, 0], m = s().on("start", (e) => {
|
|
1406
|
+
(e.sourceEvent.type === "mousedown" || e.sourceEvent.type === "touchstart") && (p = [e.sourceEvent.clientX ?? e.sourceEvent.touches[0].clientX, e.sourceEvent.clientY ?? e.sourceEvent.touches[0].clientY]);
|
|
1407
|
+
}).on("zoom", l ? (o) => {
|
|
1408
|
+
let s = i();
|
|
1409
|
+
if (o.sourceEvent.type !== "mousemove" && o.sourceEvent.type !== "touchmove" || !r) return;
|
|
1410
|
+
let c = [o.sourceEvent.clientX ?? o.sourceEvent.touches[0].clientX, o.sourceEvent.clientY ?? o.sourceEvent.touches[0].clientY], l = [c[0] - p[0], c[1] - p[1]];
|
|
1411
|
+
p = c;
|
|
1412
|
+
let u = a() * Math.max(s[2], Math.log(s[2])) * (d ? -1 : 1), f = {
|
|
1413
|
+
x: s[0] - l[0] * u,
|
|
1414
|
+
y: s[1] - l[1] * u
|
|
1415
|
+
}, m = [[0, 0], [t, n]];
|
|
1416
|
+
r.setViewportConstrained({
|
|
1417
|
+
x: f.x,
|
|
1418
|
+
y: f.y,
|
|
1419
|
+
zoom: s[2]
|
|
1420
|
+
}, m, e);
|
|
1421
|
+
} : null).on("zoom.wheel", u ? f : null);
|
|
1422
|
+
o.call(m, {});
|
|
1420
1423
|
}
|
|
1421
|
-
function
|
|
1422
|
-
|
|
1424
|
+
function l() {
|
|
1425
|
+
o.on("zoom", null);
|
|
1423
1426
|
}
|
|
1424
1427
|
return {
|
|
1425
|
-
update:
|
|
1426
|
-
destroy:
|
|
1427
|
-
pointer:
|
|
1428
|
+
update: c,
|
|
1429
|
+
destroy: l,
|
|
1430
|
+
pointer: t
|
|
1428
1431
|
};
|
|
1429
1432
|
}
|
|
1430
|
-
var
|
|
1433
|
+
var Tt = (e) => ({
|
|
1431
1434
|
x: e.x,
|
|
1432
1435
|
y: e.y,
|
|
1433
1436
|
zoom: e.k
|
|
1434
|
-
}),
|
|
1435
|
-
let
|
|
1436
|
-
return
|
|
1437
|
-
},
|
|
1438
|
-
let
|
|
1439
|
-
return -e.deltaY * (e.deltaMode === 1 ? .05 : e.deltaMode ? 1 : .002) *
|
|
1437
|
+
}), Et = ({ x: e, y: t, zoom: n }) => o.translate(e, t).scale(n), Z = (e, t) => e.target.closest(`.${t}`), Dt = (e, t) => t === 2 && Array.isArray(e) && e.includes(2), Ot = (e) => ((e *= 2) <= 1 ? e * e * e : (e -= 2) * e * e + 2) / 2, kt = (e, t = 0, n = Ot, r = () => {}) => {
|
|
1438
|
+
let i = typeof t == "number" && t > 0;
|
|
1439
|
+
return i || r(), i ? e.transition().duration(t).ease(n).on("end", r) : e;
|
|
1440
|
+
}, At = (e) => {
|
|
1441
|
+
let t = e.ctrlKey && ce() ? 10 : 1;
|
|
1442
|
+
return -e.deltaY * (e.deltaMode === 1 ? .05 : e.deltaMode ? 1 : .002) * t;
|
|
1440
1443
|
};
|
|
1441
|
-
function
|
|
1442
|
-
return (
|
|
1443
|
-
if (
|
|
1444
|
-
|
|
1445
|
-
let
|
|
1446
|
-
if (
|
|
1447
|
-
let e =
|
|
1448
|
-
|
|
1444
|
+
function jt({ zoomPanValues: e, noWheelClassName: n, d3Selection: r, d3Zoom: i, panOnScrollMode: a, panOnScrollSpeed: o, zoomOnPinch: s, onPanZoomStart: c, onPanZoom: l, onPanZoomEnd: u }) {
|
|
1445
|
+
return (d) => {
|
|
1446
|
+
if (Z(d, n)) return d.ctrlKey && d.preventDefault(), !1;
|
|
1447
|
+
d.preventDefault(), d.stopImmediatePropagation();
|
|
1448
|
+
let f = r.property("__zoom").k || 1;
|
|
1449
|
+
if (d.ctrlKey && s) {
|
|
1450
|
+
let e = t(d), n = f * 2 ** At(d);
|
|
1451
|
+
i.scaleTo(r, n, e, d);
|
|
1449
1452
|
return;
|
|
1450
1453
|
}
|
|
1451
|
-
let
|
|
1452
|
-
!
|
|
1453
|
-
let
|
|
1454
|
-
clearTimeout(e.panScrollTimeout), e.isPanScrolling ? (
|
|
1455
|
-
|
|
1456
|
-
}, 150)) : (e.isPanScrolling = !0,
|
|
1454
|
+
let m = d.deltaMode === 1 ? 20 : 1, h = a === p.Vertical ? 0 : d.deltaX * m, g = a === p.Horizontal ? 0 : d.deltaY * m;
|
|
1455
|
+
!ce() && d.shiftKey && a !== p.Vertical && (h = d.deltaY * m, g = 0), i.translateBy(r, -(h / f) * o, -(g / f) * o, { internal: !0 });
|
|
1456
|
+
let _ = Tt(r.property("__zoom"));
|
|
1457
|
+
clearTimeout(e.panScrollTimeout), e.isPanScrolling ? (l?.(d, _), e.panScrollTimeout = setTimeout(() => {
|
|
1458
|
+
u?.(d, _), e.isPanScrolling = !1;
|
|
1459
|
+
}, 150)) : (e.isPanScrolling = !0, c?.(d, _));
|
|
1457
1460
|
};
|
|
1458
1461
|
}
|
|
1459
|
-
function
|
|
1460
|
-
return function(
|
|
1461
|
-
let
|
|
1462
|
-
if (
|
|
1463
|
-
|
|
1462
|
+
function Mt({ noWheelClassName: e, preventScrolling: t, d3ZoomHandler: n }) {
|
|
1463
|
+
return function(r, i) {
|
|
1464
|
+
let a = r.type === "wheel", o = !t && a && !r.ctrlKey, s = Z(r, e);
|
|
1465
|
+
if (r.ctrlKey && a && s && r.preventDefault(), o || s) return null;
|
|
1466
|
+
r.preventDefault(), n.call(this, r, i);
|
|
1464
1467
|
};
|
|
1465
1468
|
}
|
|
1466
|
-
function
|
|
1467
|
-
return (
|
|
1468
|
-
if (
|
|
1469
|
-
let
|
|
1470
|
-
e.mouseButton =
|
|
1469
|
+
function Nt({ zoomPanValues: e, onDraggingChange: t, onPanZoomStart: n }) {
|
|
1470
|
+
return (r) => {
|
|
1471
|
+
if (r.sourceEvent?.internal) return;
|
|
1472
|
+
let i = Tt(r.transform);
|
|
1473
|
+
e.mouseButton = r.sourceEvent?.button || 0, e.isZoomingOrPanning = !0, e.prevViewport = i, r.sourceEvent?.type === "mousedown" && t(!0), n && n?.(r.sourceEvent, i);
|
|
1471
1474
|
};
|
|
1472
1475
|
}
|
|
1473
|
-
function
|
|
1474
|
-
return (
|
|
1475
|
-
e.usedRightMouseButton = !!(
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
]),
|
|
1476
|
+
function Pt({ zoomPanValues: e, panOnDrag: t, onPaneContextMenu: n, onTransformChange: r, onPanZoom: i }) {
|
|
1477
|
+
return (a) => {
|
|
1478
|
+
e.usedRightMouseButton = !!(n && Dt(t, e.mouseButton ?? 0)), a.sourceEvent?.sync || r([
|
|
1479
|
+
a.transform.x,
|
|
1480
|
+
a.transform.y,
|
|
1481
|
+
a.transform.k
|
|
1482
|
+
]), i && !a.sourceEvent?.internal && i?.(a.sourceEvent, Tt(a.transform));
|
|
1480
1483
|
};
|
|
1481
1484
|
}
|
|
1482
|
-
function
|
|
1483
|
-
return (
|
|
1484
|
-
if (!
|
|
1485
|
-
let
|
|
1486
|
-
e.prevViewport =
|
|
1487
|
-
|
|
1488
|
-
},
|
|
1485
|
+
function Ft({ zoomPanValues: e, panOnDrag: t, panOnScroll: n, onDraggingChange: r, onPanZoomEnd: i, onPaneContextMenu: a }) {
|
|
1486
|
+
return (o) => {
|
|
1487
|
+
if (!o.sourceEvent?.internal && (e.isZoomingOrPanning = !1, a && Dt(t, e.mouseButton ?? 0) && !e.usedRightMouseButton && o.sourceEvent && a(o.sourceEvent), e.usedRightMouseButton = !1, r(!1), i)) {
|
|
1488
|
+
let t = Tt(o.transform);
|
|
1489
|
+
e.prevViewport = t, clearTimeout(e.timerId), e.timerId = setTimeout(() => {
|
|
1490
|
+
i?.(o.sourceEvent, t);
|
|
1491
|
+
}, n ? 150 : 0);
|
|
1489
1492
|
}
|
|
1490
1493
|
};
|
|
1491
1494
|
}
|
|
1492
|
-
function
|
|
1493
|
-
return (
|
|
1494
|
-
let
|
|
1495
|
-
if (
|
|
1496
|
-
if (!
|
|
1497
|
-
if (!
|
|
1498
|
-
if (!
|
|
1499
|
-
let
|
|
1500
|
-
return (!
|
|
1495
|
+
function It({ zoomActivationKeyPressed: e, zoomOnScroll: t, zoomOnPinch: n, panOnDrag: r, panOnScroll: i, zoomOnDoubleClick: a, userSelectionActive: o, noWheelClassName: s, noPanClassName: c, lib: l, connectionInProgress: u }) {
|
|
1496
|
+
return (d) => {
|
|
1497
|
+
let f = e || t, p = n && d.ctrlKey, m = d.type === "wheel";
|
|
1498
|
+
if (d.button === 1 && d.type === "mousedown" && (Z(d, `${l}-flow__node`) || Z(d, `${l}-flow__edge`))) return !0;
|
|
1499
|
+
if (!r && !f && !i && !a && !n || o || u && !m || Z(d, s) && m || Z(d, c) && (!m || i && m && !e) || !n && d.ctrlKey && m) return !1;
|
|
1500
|
+
if (!n && d.type === "touchstart" && d.touches?.length > 1) return d.preventDefault(), !1;
|
|
1501
|
+
if (!f && !i && !p && m || !r && (d.type === "mousedown" || d.type === "touchstart") || Array.isArray(r) && !r.includes(d.button) && d.type === "mousedown") return !1;
|
|
1502
|
+
let h = Array.isArray(r) && r.includes(d.button) || !d.button || d.button <= 1;
|
|
1503
|
+
return (!d.ctrlKey || m) && h;
|
|
1501
1504
|
};
|
|
1502
1505
|
}
|
|
1503
|
-
function
|
|
1504
|
-
let
|
|
1506
|
+
function Lt({ domNode: t, minZoom: n, maxZoom: o, translateExtent: c, viewport: l, onPanZoom: u, onPanZoomStart: d, onPanZoomEnd: f, onDraggingChange: p }) {
|
|
1507
|
+
let m = {
|
|
1505
1508
|
isZoomingOrPanning: !1,
|
|
1506
1509
|
usedRightMouseButton: !1,
|
|
1507
1510
|
prevViewport: {
|
|
@@ -1513,98 +1516,98 @@ function XYPanZoom({ domNode: s, minZoom: c, maxZoom: f, translateExtent: m, vie
|
|
|
1513
1516
|
timerId: void 0,
|
|
1514
1517
|
panScrollTimeout: void 0,
|
|
1515
1518
|
isPanScrolling: !1
|
|
1516
|
-
},
|
|
1517
|
-
|
|
1518
|
-
x:
|
|
1519
|
-
y:
|
|
1520
|
-
zoom:
|
|
1521
|
-
}, [[0, 0], [
|
|
1522
|
-
let
|
|
1523
|
-
|
|
1524
|
-
function
|
|
1525
|
-
return
|
|
1526
|
-
|
|
1519
|
+
}, h = t.getBoundingClientRect(), g = s().scaleExtent([n, o]).translateExtent(c), _ = e(t).call(g);
|
|
1520
|
+
C({
|
|
1521
|
+
x: l.x,
|
|
1522
|
+
y: l.y,
|
|
1523
|
+
zoom: N(l.zoom, n, o)
|
|
1524
|
+
}, [[0, 0], [h.width, h.height]], c);
|
|
1525
|
+
let v = _.on("wheel.zoom"), y = _.on("dblclick.zoom");
|
|
1526
|
+
g.wheelDelta(At);
|
|
1527
|
+
function b(e, t) {
|
|
1528
|
+
return _ ? new Promise((n) => {
|
|
1529
|
+
g?.interpolate(t?.interpolate === "linear" ? r : i).transform(kt(_, t?.duration, t?.ease, () => n(!0)), e);
|
|
1527
1530
|
}) : Promise.resolve(!1);
|
|
1528
1531
|
}
|
|
1529
|
-
function
|
|
1530
|
-
|
|
1531
|
-
let
|
|
1532
|
-
|
|
1533
|
-
let
|
|
1534
|
-
zoomPanValues:
|
|
1532
|
+
function x({ noWheelClassName: e, noPanClassName: t, onPaneContextMenu: n, userSelectionActive: r, panOnScroll: i, panOnDrag: a, panOnScrollMode: o, panOnScrollSpeed: s, preventScrolling: c, zoomOnPinch: l, zoomOnScroll: h, zoomOnDoubleClick: b, zoomActivationKeyPressed: x, lib: C, onTransformChange: w, connectionInProgress: T, paneClickDistance: E, selectionOnDrag: D }) {
|
|
1533
|
+
r && !m.isZoomingOrPanning && S();
|
|
1534
|
+
let O = i && !x && !r;
|
|
1535
|
+
g.clickDistance(D ? Infinity : !U(E) || E < 0 ? 0 : E);
|
|
1536
|
+
let k = O ? jt({
|
|
1537
|
+
zoomPanValues: m,
|
|
1535
1538
|
noWheelClassName: e,
|
|
1536
|
-
d3Selection:
|
|
1537
|
-
d3Zoom:
|
|
1538
|
-
panOnScrollMode:
|
|
1539
|
-
panOnScrollSpeed:
|
|
1540
|
-
zoomOnPinch:
|
|
1541
|
-
onPanZoomStart:
|
|
1542
|
-
onPanZoom:
|
|
1543
|
-
onPanZoomEnd:
|
|
1544
|
-
}) :
|
|
1539
|
+
d3Selection: _,
|
|
1540
|
+
d3Zoom: g,
|
|
1541
|
+
panOnScrollMode: o,
|
|
1542
|
+
panOnScrollSpeed: s,
|
|
1543
|
+
zoomOnPinch: l,
|
|
1544
|
+
onPanZoomStart: d,
|
|
1545
|
+
onPanZoom: u,
|
|
1546
|
+
onPanZoomEnd: f
|
|
1547
|
+
}) : Mt({
|
|
1545
1548
|
noWheelClassName: e,
|
|
1546
|
-
preventScrolling:
|
|
1547
|
-
d3ZoomHandler:
|
|
1549
|
+
preventScrolling: c,
|
|
1550
|
+
d3ZoomHandler: v
|
|
1548
1551
|
});
|
|
1549
|
-
if (
|
|
1550
|
-
let e =
|
|
1551
|
-
zoomPanValues:
|
|
1552
|
-
onDraggingChange:
|
|
1553
|
-
onPanZoomStart:
|
|
1552
|
+
if (_.on("wheel.zoom", k, { passive: !1 }), !r) {
|
|
1553
|
+
let e = Nt({
|
|
1554
|
+
zoomPanValues: m,
|
|
1555
|
+
onDraggingChange: p,
|
|
1556
|
+
onPanZoomStart: d
|
|
1554
1557
|
});
|
|
1555
|
-
|
|
1556
|
-
let
|
|
1557
|
-
zoomPanValues:
|
|
1558
|
-
panOnDrag:
|
|
1559
|
-
onPaneContextMenu: !!
|
|
1560
|
-
onPanZoom:
|
|
1561
|
-
onTransformChange:
|
|
1558
|
+
g.on("start", e);
|
|
1559
|
+
let t = Pt({
|
|
1560
|
+
zoomPanValues: m,
|
|
1561
|
+
panOnDrag: a,
|
|
1562
|
+
onPaneContextMenu: !!n,
|
|
1563
|
+
onPanZoom: u,
|
|
1564
|
+
onTransformChange: w
|
|
1562
1565
|
});
|
|
1563
|
-
|
|
1564
|
-
let
|
|
1565
|
-
zoomPanValues:
|
|
1566
|
-
panOnDrag:
|
|
1567
|
-
panOnScroll:
|
|
1568
|
-
onPaneContextMenu:
|
|
1569
|
-
onPanZoomEnd:
|
|
1570
|
-
onDraggingChange:
|
|
1566
|
+
g.on("zoom", t);
|
|
1567
|
+
let r = Ft({
|
|
1568
|
+
zoomPanValues: m,
|
|
1569
|
+
panOnDrag: a,
|
|
1570
|
+
panOnScroll: i,
|
|
1571
|
+
onPaneContextMenu: n,
|
|
1572
|
+
onPanZoomEnd: f,
|
|
1573
|
+
onDraggingChange: p
|
|
1571
1574
|
});
|
|
1572
|
-
|
|
1575
|
+
g.on("end", r);
|
|
1573
1576
|
}
|
|
1574
|
-
let
|
|
1575
|
-
zoomActivationKeyPressed:
|
|
1576
|
-
panOnDrag:
|
|
1577
|
-
zoomOnScroll:
|
|
1578
|
-
panOnScroll:
|
|
1579
|
-
zoomOnDoubleClick:
|
|
1580
|
-
zoomOnPinch:
|
|
1581
|
-
userSelectionActive:
|
|
1582
|
-
noPanClassName:
|
|
1577
|
+
let A = It({
|
|
1578
|
+
zoomActivationKeyPressed: x,
|
|
1579
|
+
panOnDrag: a,
|
|
1580
|
+
zoomOnScroll: h,
|
|
1581
|
+
panOnScroll: i,
|
|
1582
|
+
zoomOnDoubleClick: b,
|
|
1583
|
+
zoomOnPinch: l,
|
|
1584
|
+
userSelectionActive: r,
|
|
1585
|
+
noPanClassName: t,
|
|
1583
1586
|
noWheelClassName: e,
|
|
1584
|
-
lib:
|
|
1585
|
-
connectionInProgress:
|
|
1587
|
+
lib: C,
|
|
1588
|
+
connectionInProgress: T
|
|
1586
1589
|
});
|
|
1587
|
-
|
|
1590
|
+
g.filter(A), b ? _.on("dblclick.zoom", y) : _.on("dblclick.zoom", null);
|
|
1588
1591
|
}
|
|
1589
|
-
function
|
|
1590
|
-
|
|
1592
|
+
function S() {
|
|
1593
|
+
g.on("zoom", null);
|
|
1591
1594
|
}
|
|
1592
|
-
async function
|
|
1593
|
-
let
|
|
1594
|
-
return
|
|
1595
|
+
async function C(e, t, n) {
|
|
1596
|
+
let r = Et(e), i = g?.constrain()(r, t, n);
|
|
1597
|
+
return i && await b(i), new Promise((e) => e(i));
|
|
1595
1598
|
}
|
|
1596
|
-
async function
|
|
1597
|
-
let
|
|
1598
|
-
return await
|
|
1599
|
+
async function w(e, t) {
|
|
1600
|
+
let n = Et(e);
|
|
1601
|
+
return await b(n, t), new Promise((e) => e(n));
|
|
1599
1602
|
}
|
|
1600
|
-
function
|
|
1601
|
-
if (
|
|
1602
|
-
let
|
|
1603
|
-
(
|
|
1603
|
+
function T(e) {
|
|
1604
|
+
if (_) {
|
|
1605
|
+
let t = Et(e), n = _.property("__zoom");
|
|
1606
|
+
(n.k !== e.zoom || n.x !== e.x || n.y !== e.y) && g?.transform(_, t, null, { sync: !0 });
|
|
1604
1607
|
}
|
|
1605
1608
|
}
|
|
1606
|
-
function
|
|
1607
|
-
let e =
|
|
1609
|
+
function E() {
|
|
1610
|
+
let e = _ ? a(_.node()) : {
|
|
1608
1611
|
x: 0,
|
|
1609
1612
|
y: 0,
|
|
1610
1613
|
k: 1
|
|
@@ -1615,49 +1618,49 @@ function XYPanZoom({ domNode: s, minZoom: c, maxZoom: f, translateExtent: m, vie
|
|
|
1615
1618
|
zoom: e.k
|
|
1616
1619
|
};
|
|
1617
1620
|
}
|
|
1618
|
-
function
|
|
1619
|
-
return
|
|
1620
|
-
|
|
1621
|
+
function D(e, t) {
|
|
1622
|
+
return _ ? new Promise((n) => {
|
|
1623
|
+
g?.interpolate(t?.interpolate === "linear" ? r : i).scaleTo(kt(_, t?.duration, t?.ease, () => n(!0)), e);
|
|
1621
1624
|
}) : Promise.resolve(!1);
|
|
1622
1625
|
}
|
|
1623
|
-
function
|
|
1624
|
-
return
|
|
1625
|
-
|
|
1626
|
+
function O(e, t) {
|
|
1627
|
+
return _ ? new Promise((n) => {
|
|
1628
|
+
g?.interpolate(t?.interpolate === "linear" ? r : i).scaleBy(kt(_, t?.duration, t?.ease, () => n(!0)), e);
|
|
1626
1629
|
}) : Promise.resolve(!1);
|
|
1627
1630
|
}
|
|
1628
|
-
function
|
|
1629
|
-
|
|
1631
|
+
function k(e) {
|
|
1632
|
+
g?.scaleExtent(e);
|
|
1630
1633
|
}
|
|
1631
|
-
function
|
|
1632
|
-
|
|
1634
|
+
function A(e) {
|
|
1635
|
+
g?.translateExtent(e);
|
|
1633
1636
|
}
|
|
1634
|
-
function
|
|
1635
|
-
let
|
|
1636
|
-
|
|
1637
|
+
function j(e) {
|
|
1638
|
+
let t = !U(e) || e < 0 ? 0 : e;
|
|
1639
|
+
g?.clickDistance(t);
|
|
1637
1640
|
}
|
|
1638
1641
|
return {
|
|
1639
|
-
update:
|
|
1640
|
-
destroy:
|
|
1641
|
-
setViewport:
|
|
1642
|
-
setViewportConstrained:
|
|
1643
|
-
getViewport:
|
|
1644
|
-
scaleTo:
|
|
1645
|
-
scaleBy:
|
|
1646
|
-
setScaleExtent:
|
|
1647
|
-
setTranslateExtent:
|
|
1648
|
-
syncViewport:
|
|
1649
|
-
setClickDistance:
|
|
1642
|
+
update: x,
|
|
1643
|
+
destroy: S,
|
|
1644
|
+
setViewport: w,
|
|
1645
|
+
setViewportConstrained: C,
|
|
1646
|
+
getViewport: E,
|
|
1647
|
+
scaleTo: D,
|
|
1648
|
+
scaleBy: O,
|
|
1649
|
+
setScaleExtent: k,
|
|
1650
|
+
setTranslateExtent: A,
|
|
1651
|
+
syncViewport: T,
|
|
1652
|
+
setClickDistance: j
|
|
1650
1653
|
};
|
|
1651
1654
|
}
|
|
1652
|
-
var
|
|
1655
|
+
var Rt;
|
|
1653
1656
|
(function(e) {
|
|
1654
1657
|
e.Line = "line", e.Handle = "handle";
|
|
1655
|
-
})(
|
|
1656
|
-
function
|
|
1657
|
-
let
|
|
1658
|
-
return
|
|
1658
|
+
})(Rt ||= {});
|
|
1659
|
+
function zt({ width: e, prevWidth: t, height: n, prevHeight: r, affectsX: i, affectsY: a }) {
|
|
1660
|
+
let o = e - t, s = n - r, c = [o > 0 ? 1 : o < 0 ? -1 : 0, s > 0 ? 1 : s < 0 ? -1 : 0];
|
|
1661
|
+
return o && i && (c[0] *= -1), s && a && (c[1] *= -1), c;
|
|
1659
1662
|
}
|
|
1660
|
-
function
|
|
1663
|
+
function Bt(e) {
|
|
1661
1664
|
return {
|
|
1662
1665
|
isHorizontal: e.includes("right") || e.includes("left"),
|
|
1663
1666
|
isVertical: e.includes("bottom") || e.includes("top"),
|
|
@@ -1665,82 +1668,82 @@ function getControlDirection(e) {
|
|
|
1665
1668
|
affectsY: e.includes("top")
|
|
1666
1669
|
};
|
|
1667
1670
|
}
|
|
1668
|
-
function
|
|
1669
|
-
return Math.max(0,
|
|
1671
|
+
function Q(e, t) {
|
|
1672
|
+
return Math.max(0, t - e);
|
|
1670
1673
|
}
|
|
1671
|
-
function
|
|
1672
|
-
return Math.max(0, e -
|
|
1674
|
+
function $(e, t) {
|
|
1675
|
+
return Math.max(0, e - t);
|
|
1673
1676
|
}
|
|
1674
|
-
function
|
|
1675
|
-
return Math.max(0,
|
|
1677
|
+
function Vt(e, t, n) {
|
|
1678
|
+
return Math.max(0, t - e, e - n);
|
|
1676
1679
|
}
|
|
1677
|
-
function
|
|
1678
|
-
return e ? !
|
|
1680
|
+
function Ht(e, t) {
|
|
1681
|
+
return e ? !t : t;
|
|
1679
1682
|
}
|
|
1680
|
-
function
|
|
1681
|
-
let { affectsX:
|
|
1682
|
-
if (
|
|
1683
|
-
let e = 0,
|
|
1684
|
-
|
|
1683
|
+
function Ut(e, t, n, r, i, a, o, s) {
|
|
1684
|
+
let { affectsX: c, affectsY: l } = t, { isHorizontal: u, isVertical: d } = t, f = u && d, { xSnapped: p, ySnapped: m } = n, { minWidth: h, maxWidth: g, minHeight: _, maxHeight: v } = r, { x: y, y: b, width: x, height: S, aspectRatio: C } = e, w = Math.floor(u ? p - e.pointerX : 0), T = Math.floor(d ? m - e.pointerY : 0), E = x + (c ? -w : w), D = S + (l ? -T : T), O = -a[0] * x, k = -a[1] * S, A = Vt(E, h, g), j = Vt(D, _, v);
|
|
1685
|
+
if (o) {
|
|
1686
|
+
let e = 0, t = 0;
|
|
1687
|
+
c && w < 0 ? e = Q(y + w + O, o[0][0]) : !c && w > 0 && (e = $(y + E + O, o[1][0])), l && T < 0 ? t = Q(b + T + k, o[0][1]) : !l && T > 0 && (t = $(b + D + k, o[1][1])), A = Math.max(A, e), j = Math.max(j, t);
|
|
1685
1688
|
}
|
|
1686
|
-
if (
|
|
1687
|
-
let e = 0,
|
|
1688
|
-
|
|
1689
|
+
if (s) {
|
|
1690
|
+
let e = 0, t = 0;
|
|
1691
|
+
c && w > 0 ? e = $(y + w, s[0][0]) : !c && w < 0 && (e = Q(y + E, s[1][0])), l && T > 0 ? t = $(b + T, s[0][1]) : !l && T < 0 && (t = Q(b + D, s[1][1])), A = Math.max(A, e), j = Math.max(j, t);
|
|
1689
1692
|
}
|
|
1690
|
-
if (
|
|
1691
|
-
if (
|
|
1692
|
-
let e =
|
|
1693
|
-
if (
|
|
1693
|
+
if (i) {
|
|
1694
|
+
if (u) {
|
|
1695
|
+
let e = Vt(E / C, _, v) * C;
|
|
1696
|
+
if (A = Math.max(A, e), o) {
|
|
1694
1697
|
let e = 0;
|
|
1695
|
-
e = !
|
|
1698
|
+
e = !c && !l || c && !l && f ? $(b + k + E / C, o[1][1]) * C : Q(b + k + (c ? w : -w) / C, o[0][1]) * C, A = Math.max(A, e);
|
|
1696
1699
|
}
|
|
1697
|
-
if (
|
|
1700
|
+
if (s) {
|
|
1698
1701
|
let e = 0;
|
|
1699
|
-
e = !
|
|
1702
|
+
e = !c && !l || c && !l && f ? Q(b + E / C, s[1][1]) * C : $(b + (c ? w : -w) / C, s[0][1]) * C, A = Math.max(A, e);
|
|
1700
1703
|
}
|
|
1701
1704
|
}
|
|
1702
|
-
if (
|
|
1703
|
-
let e =
|
|
1704
|
-
if (
|
|
1705
|
+
if (d) {
|
|
1706
|
+
let e = Vt(D * C, h, g) / C;
|
|
1707
|
+
if (j = Math.max(j, e), o) {
|
|
1705
1708
|
let e = 0;
|
|
1706
|
-
e = !
|
|
1709
|
+
e = !c && !l || l && !c && f ? $(y + D * C + O, o[1][0]) / C : Q(y + (l ? T : -T) * C + O, o[0][0]) / C, j = Math.max(j, e);
|
|
1707
1710
|
}
|
|
1708
|
-
if (
|
|
1711
|
+
if (s) {
|
|
1709
1712
|
let e = 0;
|
|
1710
|
-
e = !
|
|
1713
|
+
e = !c && !l || l && !c && f ? Q(y + D * C, s[1][0]) / C : $(y + (l ? T : -T) * C, s[0][0]) / C, j = Math.max(j, e);
|
|
1711
1714
|
}
|
|
1712
1715
|
}
|
|
1713
1716
|
}
|
|
1714
|
-
|
|
1715
|
-
let
|
|
1717
|
+
T += T < 0 ? j : -j, w += w < 0 ? A : -A, i && (f ? E > D * C ? T = (Ht(c, l) ? -w : w) / C : w = (Ht(c, l) ? -T : T) * C : u ? (T = w / C, l = c) : (w = T * C, c = l));
|
|
1718
|
+
let M = c ? y + w : y, N = l ? b + T : b;
|
|
1716
1719
|
return {
|
|
1717
|
-
width:
|
|
1718
|
-
height:
|
|
1719
|
-
x:
|
|
1720
|
-
y:
|
|
1720
|
+
width: x + (c ? -w : w),
|
|
1721
|
+
height: S + (l ? -T : T),
|
|
1722
|
+
x: a[0] * w * (c ? -1 : 1) + M,
|
|
1723
|
+
y: a[1] * T * (l ? -1 : 1) + N
|
|
1721
1724
|
};
|
|
1722
1725
|
}
|
|
1723
|
-
var
|
|
1726
|
+
var Wt = {
|
|
1724
1727
|
width: 0,
|
|
1725
1728
|
height: 0,
|
|
1726
1729
|
x: 0,
|
|
1727
1730
|
y: 0
|
|
1728
|
-
},
|
|
1729
|
-
...
|
|
1731
|
+
}, Gt = {
|
|
1732
|
+
...Wt,
|
|
1730
1733
|
pointerX: 0,
|
|
1731
1734
|
pointerY: 0,
|
|
1732
1735
|
aspectRatio: 1
|
|
1733
1736
|
};
|
|
1734
|
-
function
|
|
1737
|
+
function Kt(e) {
|
|
1735
1738
|
return [[0, 0], [e.measured.width, e.measured.height]];
|
|
1736
1739
|
}
|
|
1737
|
-
function
|
|
1738
|
-
let
|
|
1739
|
-
return [[
|
|
1740
|
+
function qt(e, t, n) {
|
|
1741
|
+
let r = t.position.x + e.position.x, i = t.position.y + e.position.y, a = e.measured.width ?? 0, o = e.measured.height ?? 0, s = n[0] * a, c = n[1] * o;
|
|
1742
|
+
return [[r - s, i - c], [r + a - s, i + o - c]];
|
|
1740
1743
|
}
|
|
1741
|
-
function
|
|
1742
|
-
let
|
|
1743
|
-
controlDirection:
|
|
1744
|
+
function Jt({ domNode: t, nodeId: r, getStoreItems: i, onChange: a, onEnd: o }) {
|
|
1745
|
+
let s = e(t), c = {
|
|
1746
|
+
controlDirection: Bt("bottom-right"),
|
|
1744
1747
|
boundaries: {
|
|
1745
1748
|
minWidth: 0,
|
|
1746
1749
|
minHeight: 0,
|
|
@@ -1750,90 +1753,91 @@ function XYResizer({ domNode: s, nodeId: l, getStoreItems: u, onChange: d, onEnd
|
|
|
1750
1753
|
resizeDirection: void 0,
|
|
1751
1754
|
keepAspectRatio: !1
|
|
1752
1755
|
};
|
|
1753
|
-
function
|
|
1754
|
-
let
|
|
1755
|
-
|
|
1756
|
-
boundaries:
|
|
1757
|
-
resizeDirection:
|
|
1758
|
-
keepAspectRatio:
|
|
1759
|
-
controlDirection:
|
|
1756
|
+
function l({ controlPosition: e, boundaries: t, keepAspectRatio: l, resizeDirection: u, onResizeStart: d, onResize: f, onResizeEnd: p, shouldResize: m }) {
|
|
1757
|
+
let h = { ...Wt }, g = { ...Gt };
|
|
1758
|
+
c = {
|
|
1759
|
+
boundaries: t,
|
|
1760
|
+
resizeDirection: u,
|
|
1761
|
+
keepAspectRatio: l,
|
|
1762
|
+
controlDirection: Bt(e)
|
|
1760
1763
|
};
|
|
1761
|
-
let
|
|
1762
|
-
let { nodeLookup:
|
|
1763
|
-
if (
|
|
1764
|
-
|
|
1765
|
-
let { xSnapped:
|
|
1766
|
-
transform:
|
|
1767
|
-
snapGrid:
|
|
1768
|
-
snapToGrid:
|
|
1769
|
-
containerBounds:
|
|
1764
|
+
let _, v = null, y = [], b, x, S, C = !1, w = n().on("start", (e) => {
|
|
1765
|
+
let { nodeLookup: t, transform: n, snapGrid: a, snapToGrid: o, nodeOrigin: s, paneDomNode: c } = i();
|
|
1766
|
+
if (_ = t.get(r), !_) return;
|
|
1767
|
+
v = c?.getBoundingClientRect() ?? null;
|
|
1768
|
+
let { xSnapped: l, ySnapped: u } = me(e.sourceEvent, {
|
|
1769
|
+
transform: n,
|
|
1770
|
+
snapGrid: a,
|
|
1771
|
+
snapToGrid: o,
|
|
1772
|
+
containerBounds: v
|
|
1770
1773
|
});
|
|
1771
|
-
|
|
1772
|
-
width:
|
|
1773
|
-
height:
|
|
1774
|
-
x:
|
|
1775
|
-
y:
|
|
1776
|
-
},
|
|
1777
|
-
...
|
|
1778
|
-
pointerX:
|
|
1779
|
-
pointerY:
|
|
1780
|
-
aspectRatio:
|
|
1781
|
-
},
|
|
1782
|
-
for (let [e,
|
|
1774
|
+
h = {
|
|
1775
|
+
width: _.measured.width ?? 0,
|
|
1776
|
+
height: _.measured.height ?? 0,
|
|
1777
|
+
x: _.position.x ?? 0,
|
|
1778
|
+
y: _.position.y ?? 0
|
|
1779
|
+
}, g = {
|
|
1780
|
+
...h,
|
|
1781
|
+
pointerX: l,
|
|
1782
|
+
pointerY: u,
|
|
1783
|
+
aspectRatio: h.width / h.height
|
|
1784
|
+
}, b = void 0, _.parentId && (_.extent === "parent" || _.expandParent) && (b = t.get(_.parentId), x = b && _.extent === "parent" ? Kt(b) : void 0), y = [], S = void 0;
|
|
1785
|
+
for (let [e, n] of t) if (n.parentId === r && (y.push({
|
|
1783
1786
|
id: e,
|
|
1784
|
-
position: { ...
|
|
1785
|
-
extent:
|
|
1786
|
-
}),
|
|
1787
|
-
let e =
|
|
1788
|
-
|
|
1787
|
+
position: { ...n.position },
|
|
1788
|
+
extent: n.extent
|
|
1789
|
+
}), n.extent === "parent" || n.expandParent)) {
|
|
1790
|
+
let e = qt(n, _, n.origin ?? s);
|
|
1791
|
+
S = S ? [[Math.min(e[0][0], S[0][0]), Math.min(e[0][1], S[0][1])], [Math.max(e[1][0], S[1][0]), Math.max(e[1][1], S[1][1])]] : e;
|
|
1789
1792
|
}
|
|
1790
|
-
|
|
1793
|
+
d?.(e, { ...h });
|
|
1791
1794
|
}).on("drag", (e) => {
|
|
1792
|
-
let { transform:
|
|
1793
|
-
transform:
|
|
1794
|
-
snapGrid:
|
|
1795
|
-
snapToGrid:
|
|
1796
|
-
containerBounds:
|
|
1797
|
-
}),
|
|
1798
|
-
if (!
|
|
1799
|
-
let { x:
|
|
1800
|
-
if (!
|
|
1801
|
-
if ((
|
|
1802
|
-
let e =
|
|
1803
|
-
for (let
|
|
1804
|
-
x:
|
|
1805
|
-
y:
|
|
1806
|
-
},
|
|
1795
|
+
let { transform: t, snapGrid: n, snapToGrid: r, nodeOrigin: o } = i(), s = me(e.sourceEvent, {
|
|
1796
|
+
transform: t,
|
|
1797
|
+
snapGrid: n,
|
|
1798
|
+
snapToGrid: r,
|
|
1799
|
+
containerBounds: v
|
|
1800
|
+
}), l = [];
|
|
1801
|
+
if (!_) return;
|
|
1802
|
+
let { x: u, y: d, width: p, height: w } = h, T = {}, E = _.origin ?? o, { width: D, height: O, x: k, y: A } = Ut(g, c.controlDirection, s, c.boundaries, c.keepAspectRatio, E, x, S), j = D !== p, M = O !== w, N = k !== u && j, P = A !== d && M;
|
|
1803
|
+
if (!N && !P && !j && !M) return;
|
|
1804
|
+
if ((N || P || E[0] === 1 || E[1] === 1) && (T.x = N ? k : h.x, T.y = P ? A : h.y, h.x = T.x, h.y = T.y, y.length > 0)) {
|
|
1805
|
+
let e = k - u, t = A - d;
|
|
1806
|
+
for (let n of y) n.position = {
|
|
1807
|
+
x: n.position.x - e + E[0] * (D - p),
|
|
1808
|
+
y: n.position.y - t + E[1] * (O - w)
|
|
1809
|
+
}, l.push(n);
|
|
1807
1810
|
}
|
|
1808
|
-
if ((
|
|
1809
|
-
let e =
|
|
1810
|
-
|
|
1811
|
-
let
|
|
1812
|
-
|
|
1811
|
+
if ((j || M) && (T.width = j && (!c.resizeDirection || c.resizeDirection === "horizontal") ? D : h.width, T.height = M && (!c.resizeDirection || c.resizeDirection === "vertical") ? O : h.height, h.width = T.width, h.height = T.height), b && _.expandParent) {
|
|
1812
|
+
let e = E[0] * (T.width ?? 0);
|
|
1813
|
+
T.x && T.x < e && (h.x = e, g.x -= T.x - e);
|
|
1814
|
+
let t = E[1] * (T.height ?? 0);
|
|
1815
|
+
T.y && T.y < t && (h.y = t, g.y -= T.y - t);
|
|
1813
1816
|
}
|
|
1814
|
-
let
|
|
1815
|
-
width:
|
|
1816
|
-
prevWidth:
|
|
1817
|
-
height:
|
|
1818
|
-
prevHeight:
|
|
1819
|
-
affectsX:
|
|
1820
|
-
affectsY:
|
|
1821
|
-
}),
|
|
1822
|
-
...
|
|
1823
|
-
direction:
|
|
1817
|
+
let F = zt({
|
|
1818
|
+
width: h.width,
|
|
1819
|
+
prevWidth: p,
|
|
1820
|
+
height: h.height,
|
|
1821
|
+
prevHeight: w,
|
|
1822
|
+
affectsX: c.controlDirection.affectsX,
|
|
1823
|
+
affectsY: c.controlDirection.affectsY
|
|
1824
|
+
}), I = {
|
|
1825
|
+
...h,
|
|
1826
|
+
direction: F
|
|
1824
1827
|
};
|
|
1825
|
-
|
|
1828
|
+
m?.(e, I) !== !1 && (C = !0, f?.(e, I), a(T, l));
|
|
1826
1829
|
}).on("end", (e) => {
|
|
1827
|
-
|
|
1830
|
+
C &&= (p?.(e, { ...h }), o?.({ ...h }), !1);
|
|
1828
1831
|
});
|
|
1829
|
-
|
|
1832
|
+
s.call(w);
|
|
1830
1833
|
}
|
|
1831
|
-
function
|
|
1832
|
-
|
|
1834
|
+
function u() {
|
|
1835
|
+
s.on(".drag", null);
|
|
1833
1836
|
}
|
|
1834
1837
|
return {
|
|
1835
|
-
update:
|
|
1836
|
-
destroy:
|
|
1838
|
+
update: l,
|
|
1839
|
+
destroy: u
|
|
1837
1840
|
};
|
|
1838
1841
|
}
|
|
1839
|
-
|
|
1842
|
+
//#endregion
|
|
1843
|
+
export { g as ConnectionLineType, f as ConnectionMode, _ as MarkerType, p as PanOnScrollMode, v as Position, Rt as ResizeControlVariant, m as SelectionMode, pt as XYDrag, Ct as XYHandle, wt as XYMinimap, Lt as XYPanZoom, Jt as XYResizer, Ae as addEdge, Qe as adoptUserNodes, de as areSetsEqual, j as calculateNodePosition, Ue as createMarkerIds, d as defaultAriaLabelConfig, W as devWarn, u as elementSelectionKeys, c as errorMessages, ue as evaluateAbsolutePosition, A as fitViewport, xe as getBezierEdgeCenter, we as getBezierPath, B as getBoundsOfRects, O as getConnectedEdges, b as getConnectionStatus, he as getDimensions, Te as getEdgeCenter, ze as getEdgePosition, M as getElementsToRemove, Ee as getElevatedEdgeZIndex, Y as getEventPosition, X as getHandlePosition, ge as getHostForElement, E as getInternalNodesBounds, He as getMarkerId, J as getNodeDimensions, T as getNodesBounds, D as getNodesInside, V as getOverlappingArea, Le as getSmoothStepPath, je as getStraightPath, se as getViewportForBounds, rt as handleExpandParent, l as infiniteExtent, h as initialConnection, x as isEdgeBase, De as isEdgeVisible, ve as isInputDOMNode, ce as isMacOs, ye as isMouseEvent, S as isNodeBase, U as isNumeric, H as isRectObject, pe as mergeAriaLabelConfig, le as nodeHasDimensions, z as nodeToRect, at as panBy, re as pointToRendererPoint, ie as rendererPointToPoint, G as snapPosition, Ye as updateAbsolutePositions, st as updateConnectionLookup, it as updateNodeInternals, fe as withResolvers };
|