@loopstack/loopstack-studio 0.24.0 → 0.25.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/_rolldown/runtime.js +20 -0
- package/dist/api/auth.js +4 -2
- package/dist/api/client.js +9 -7
- package/dist/api/config.js +7 -5
- package/dist/api/dashboard.js +4 -2
- package/dist/api/documents.js +4 -2
- package/dist/api/index.js +21 -23
- package/dist/api/processor.js +5 -3
- package/dist/api/secrets.js +4 -2
- package/dist/api/workflows.js +11 -3
- package/dist/api/workspaces.js +4 -2
- package/dist/app/EnvironmentEmbedRoot.js +24 -31
- package/dist/components/ai-elements/code-block.js +53 -71
- package/dist/components/ai-elements/message.js +41 -82
- package/dist/components/ai-elements/prompt-input.js +162 -253
- package/dist/components/ai-elements/reasoning.js +78 -116
- package/dist/components/ai-elements/shimmer.js +23 -35
- package/dist/components/ai-elements/sources.js +29 -58
- package/dist/components/data-table/ConfirmDialog.js +14 -30
- package/dist/components/data-table/DataList.js +138 -198
- package/dist/components/data-table/DataTable.js +168 -234
- package/dist/components/data-table/DataTableBatchAction.js +18 -27
- package/dist/components/data-table/DataTableFilters.js +53 -78
- package/dist/components/data-table/DataTablePagination.js +72 -104
- package/dist/components/data-table/DataTableToolbar.js +53 -65
- package/dist/components/dynamic-form/ArrayController.js +85 -103
- package/dist/components/dynamic-form/CodeContent.js +28 -36
- package/dist/components/dynamic-form/Form.js +43 -56
- package/dist/components/dynamic-form/FormBody.js +12 -10
- package/dist/components/dynamic-form/FormElement.js +31 -41
- package/dist/components/dynamic-form/FormElementHeader.js +12 -20
- package/dist/components/dynamic-form/InputController.js +36 -38
- package/dist/components/dynamic-form/MarkdownContent.js +53 -74
- package/dist/components/dynamic-form/MermaidDiagram.js +22 -24
- package/dist/components/dynamic-form/ObjectController.js +24 -32
- package/dist/components/dynamic-form/fields/BaseFieldWrapper.js +35 -47
- package/dist/components/dynamic-form/fields/CheckboxField.js +39 -48
- package/dist/components/dynamic-form/fields/CodeViewField.js +42 -50
- package/dist/components/dynamic-form/fields/InputField.js +62 -90
- package/dist/components/dynamic-form/fields/MarkdownViewField.js +16 -19
- package/dist/components/dynamic-form/fields/RadioField.js +46 -62
- package/dist/components/dynamic-form/fields/SelectField.js +40 -58
- package/dist/components/dynamic-form/fields/SliderField.js +94 -100
- package/dist/components/dynamic-form/fields/SwitchField.js +42 -61
- package/dist/components/dynamic-form/fields/TextareaField.js +53 -72
- package/dist/components/dynamic-form/fields/utils/text-validation-utils.js +4 -2
- package/dist/components/dynamic-form/hooks/useArrayDefaultValue.js +6 -5
- package/dist/components/dynamic-form/hooks/useFieldConfig.js +19 -20
- package/dist/components/dynamic-form/hooks/useMergeParentKey.js +4 -2
- package/dist/components/dynamic-form/hooks/useSortPropertyNames.js +4 -2
- package/dist/components/feedback/ErrorAlert.js +11 -17
- package/dist/components/feedback/ErrorBoundary.js +16 -14
- package/dist/components/feedback/ErrorSnackbar.js +13 -30
- package/dist/components/feedback/LoadingCentered.js +15 -28
- package/dist/components/feedback/Snackbar.js +43 -44
- package/dist/components/feedback/index.js +5 -5
- package/dist/components/index.js +47 -47
- package/dist/components/layout/MainLayout.js +17 -25
- package/dist/components/layout/StudioSidebar.js +132 -202
- package/dist/components/lists/CustomListView.js +49 -74
- package/dist/components/lists/ListView.js +66 -102
- package/dist/components/loopstack-elements/link.js +71 -109
- package/dist/components/loopstack-elements/tool.js +99 -0
- package/dist/components/messages/CompletionMessagePaper.js +53 -85
- package/dist/components/page/PageBreadcrumbs.js +64 -83
- package/dist/components/ui/DiscordLogo.js +16 -22
- package/dist/components/ui/GoogleLogo.js +40 -44
- package/dist/components/ui/accordion.js +31 -52
- package/dist/components/ui/alert-dialog.js +59 -109
- package/dist/components/ui/alert.js +22 -36
- package/dist/components/ui/avatar.js +21 -35
- package/dist/components/ui/badge.js +13 -17
- package/dist/components/ui/breadcrumb.js +46 -82
- package/dist/components/ui/button-group.js +5 -5
- package/dist/components/ui/button.js +17 -21
- package/dist/components/ui/card.js +40 -74
- package/dist/components/ui/checkbox.js +17 -23
- package/dist/components/ui/collapsible.js +17 -25
- package/dist/components/ui/command.js +1 -2
- package/dist/components/ui/context-menu.js +32 -52
- package/dist/components/ui/dialog.js +62 -107
- package/dist/components/ui/drawer.js +54 -99
- package/dist/components/ui/dropdown-menu.js +91 -159
- package/dist/components/ui/hover-card.js +1 -2
- package/dist/components/ui/input-group.js +36 -56
- package/dist/components/ui/input.js +11 -15
- package/dist/components/ui/label.js +11 -15
- package/dist/components/ui/popover.js +25 -38
- package/dist/components/ui/radio-group.js +22 -33
- package/dist/components/ui/scroll-area.js +28 -43
- package/dist/components/ui/select.js +73 -134
- package/dist/components/ui/separator.js +13 -17
- package/dist/components/ui/sheet.js +60 -105
- package/dist/components/ui/sidebar.js +269 -451
- package/dist/components/ui/skeleton.js +10 -14
- package/dist/components/ui/slider.js +17 -15
- package/dist/components/ui/switch.js +15 -21
- package/dist/components/ui/table.js +46 -85
- package/dist/components/ui/tabs.js +26 -45
- package/dist/components/ui/textarea.js +10 -14
- package/dist/components/ui/tooltip.js +26 -41
- package/dist/components/ui-widgets/UiActions.js +30 -31
- package/dist/components/ui-widgets/UiWidget.js +34 -55
- package/dist/components/ui-widgets/widgets/AiPromptInput.js +28 -42
- package/dist/components/ui-widgets/widgets/ButtonFullWidth.js +16 -19
- package/dist/components/ui-widgets/widgets/SandboxRun.js +19 -26
- package/dist/components/ui-widgets/widgets/SubmitButton.js +15 -18
- package/dist/events/api-client-events.js +4 -2
- package/dist/events/sse-client-events.js +4 -2
- package/dist/features/code-explorer/CodeExplorer.js +1 -2
- package/dist/features/code-explorer/components/CodeExplorerTree.js +2 -2
- package/dist/features/code-explorer/components/CodeExplorerTreeNode.js +31 -29
- package/dist/features/code-explorer/components/FileContentViewer.js +120 -185
- package/dist/features/code-explorer/components/FileTabsBar.js +1 -2
- package/dist/features/code-explorer/components/FileTabsBarBase.js +134 -169
- package/dist/features/code-explorer/index.js +1 -1
- package/dist/features/code-explorer/providers/CodeExplorerProvider.js +4 -4
- package/dist/features/code-explorer/utils/fileIcons.js +41 -39
- package/dist/features/dashboard/Dashboard.js +79 -121
- package/dist/features/dashboard/RunItem.js +50 -68
- package/dist/features/dashboard/RunList.js +17 -28
- package/dist/features/debug/components/ConfigFlowViewer.js +49 -67
- package/dist/features/debug/components/WorkflowDebugHeader.js +32 -0
- package/dist/features/debug/components/WorkflowDebugLegend.js +56 -0
- package/dist/features/debug/components/WorkflowFlowViewer.js +90 -0
- package/dist/features/debug/components/workflow-flow/StateNode.js +82 -0
- package/dist/features/debug/components/workflow-flow/WorkflowGraph.js +41 -0
- package/dist/features/debug/components/workflow-flow/WorkflowTransitionEdge.js +64 -0
- package/dist/features/debug/index.js +3 -3
- package/dist/features/debug/lib/edge-paths.js +33 -31
- package/dist/features/debug/lib/flow-utils.js +156 -162
- package/dist/features/documents/DocumentRenderer.js +77 -45
- package/dist/features/documents/components/DocumentItem.js +21 -24
- package/dist/features/documents/components/DocumentList.js +39 -42
- package/dist/features/documents/components/DocumentMetadataPills.js +44 -59
- package/dist/features/documents/document-details/DocumentDetails.js +298 -413
- package/dist/features/documents/document-details/PromptDetails.js +105 -142
- package/dist/features/documents/index.js +4 -4
- package/dist/features/documents/renderers/AiMessage.js +39 -48
- package/dist/features/documents/renderers/AiMessageContent.js +108 -164
- package/dist/features/documents/renderers/ChoicesRenderer.js +80 -0
- package/dist/features/documents/renderers/ClaudeMessage.js +74 -91
- package/dist/features/documents/renderers/ConfirmPromptRenderer.js +47 -0
- package/dist/features/documents/renderers/DocumentDebugRenderer.js +26 -30
- package/dist/features/documents/renderers/DocumentFormRenderer.js +80 -72
- package/dist/features/documents/renderers/DocumentMessageRenderer.js +10 -9
- package/dist/features/documents/renderers/ErrorMessageRenderer.js +11 -13
- package/dist/features/documents/renderers/LinkMessageRenderer.js +15 -16
- package/dist/features/documents/renderers/MarkdownMessageRenderer.js +8 -10
- package/dist/features/documents/renderers/PlainMessageRenderer.js +7 -9
- package/dist/features/documents/renderers/SecretInputRenderer.js +89 -0
- package/dist/features/documents/renderers/TextPromptRenderer.js +48 -0
- package/dist/features/documents/renderers/useDocumentTransition.js +32 -0
- package/dist/features/health/LocalHealthCheck.js +54 -53
- package/dist/features/health/index.js +1 -1
- package/dist/features/oauth/OAuthCallbackPage.js +2 -2
- package/dist/features/oauth/OAuthPromptRenderer.js +135 -184
- package/dist/features/oauth/index.js +2 -2
- package/dist/features/oauth/useOAuthPopup.js +52 -71
- package/dist/features/runs/Runs.js +145 -187
- package/dist/features/workbench/Workbench.js +72 -98
- package/dist/features/workbench/WorkflowItem.js +49 -67
- package/dist/features/workbench/WorkflowList.js +50 -82
- package/dist/features/workbench/components/NewRunDialog.js +214 -311
- package/dist/features/workbench/components/RemoteFileTabsBar.js +18 -17
- package/dist/features/workbench/components/RemoteFileTree.js +54 -85
- package/dist/features/workbench/components/WorkbenchFilesPanel.js +52 -63
- package/dist/features/workbench/components/WorkbenchFloatingPanel.js +34 -90
- package/dist/features/workbench/components/WorkbenchFlowPanel.js +35 -46
- package/dist/features/workbench/components/WorkbenchIconSidebar.js +50 -80
- package/dist/features/workbench/components/WorkbenchPreviewPanel.js +52 -50
- package/dist/features/workbench/components/WorkbenchSecretsPanel.js +143 -172
- package/dist/features/workbench/components/WorkbenchSettingsModal.js +50 -86
- package/dist/features/workbench/components/WorkflowForms.js +17 -22
- package/dist/features/workbench/components/WorkflowHistoryItem.js +96 -143
- package/dist/features/workbench/components/WorkflowHistoryList.js +33 -0
- package/dist/features/workbench/components/buttons/WorkflowButtons.js +70 -97
- package/dist/features/workbench/hooks/useAutoScrollBottom.js +21 -25
- package/dist/features/workbench/hooks/useScrollToListItem.js +20 -21
- package/dist/features/workbench/hooks/useWorkflowData.js +32 -45
- package/dist/features/workbench/hooks/useWorkflowListState.js +13 -49
- package/dist/features/workbench/index.js +7 -8
- package/dist/features/workbench/providers/RemoteFileExplorerProvider.js +123 -138
- package/dist/features/workbench/providers/ScrollProvider.js +16 -20
- package/dist/features/workbench/providers/WorkbenchLayoutProvider.js +76 -75
- package/dist/features/workspaces/Workspaces.js +161 -226
- package/dist/features/workspaces/components/CreateWorkspace.js +137 -194
- package/dist/features/workspaces/components/EnvironmentSlotSelector.js +27 -25
- package/dist/features/workspaces/components/ExecutionTimeline.js +144 -185
- package/dist/features/workspaces/components/NewWorkflowRunDialog.js +23 -0
- package/dist/features/workspaces/components/WorkflowRunForm.js +104 -0
- package/dist/features/workspaces/components/WorkspaceHomePage.js +60 -81
- package/dist/features/workspaces/components/workflow-form/ArgumentsView.js +58 -0
- package/dist/features/workspaces/components/workflow-form/HeaderSection.js +29 -0
- package/dist/features/workspaces/components/workflow-form/SelectionView.js +66 -0
- package/dist/features/workspaces/index.js +3 -3
- package/dist/frontend/studio/node_modules/lodash/_Symbol.js +9 -0
- package/dist/frontend/studio/node_modules/lodash/_baseGetTag.js +15 -0
- package/dist/frontend/studio/node_modules/lodash/_baseTrim.js +13 -0
- package/dist/frontend/studio/node_modules/lodash/_freeGlobal.js +8 -0
- package/dist/frontend/studio/node_modules/lodash/_getRawTag.js +19 -0
- package/dist/frontend/studio/node_modules/lodash/_objectToString.js +12 -0
- package/dist/frontend/studio/node_modules/lodash/_root.js +10 -0
- package/dist/frontend/studio/node_modules/lodash/_trimmedEndIndex.js +13 -0
- package/dist/{node_modules → frontend/studio/node_modules}/lodash/debounce.js +10 -8
- package/dist/frontend/studio/node_modules/lodash/isObject.js +12 -0
- package/dist/frontend/studio/node_modules/lodash/isObjectLike.js +11 -0
- package/dist/frontend/studio/node_modules/lodash/isSymbol.js +14 -0
- package/dist/frontend/studio/node_modules/lodash/now.js +12 -0
- package/dist/frontend/studio/node_modules/lodash/toNumber.js +24 -0
- package/dist/hooks/index.js +6 -6
- package/dist/hooks/query-keys.js +39 -78
- package/dist/hooks/use-mobile.js +12 -11
- package/dist/hooks/useApi.js +16 -14
- package/dist/hooks/useAuth.js +38 -53
- package/dist/hooks/useConfig.js +26 -37
- package/dist/hooks/useDashboard.js +12 -15
- package/dist/hooks/useDebounce.js +12 -11
- package/dist/hooks/useDocuments.js +23 -35
- package/dist/hooks/useFiles.js +1 -2
- package/dist/hooks/useProcessor.js +14 -17
- package/dist/hooks/useSecrets.js +45 -64
- package/dist/hooks/useWorkflows.js +113 -78
- package/dist/hooks/useWorkspaces.js +83 -123
- package/dist/index.d.ts +0 -1305
- package/dist/index.js +80 -80
- package/dist/lib/requireParam.js +4 -2
- package/dist/lib/utils.js +7 -5
- package/dist/loopstack-studio.css +1 -1
- package/dist/node_modules/@braintree/sanitize-url/dist/constants.js +6 -4
- package/dist/node_modules/@braintree/sanitize-url/dist/index.js +8 -6
- package/dist/node_modules/@chevrotain/gast/lib/src/helpers.js +19 -20
- package/dist/node_modules/@chevrotain/gast/lib/src/model.js +87 -88
- package/dist/node_modules/@chevrotain/gast/lib/src/visitor.js +16 -13
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/api.js +2 -2
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/base-regexp-visitor.js +4 -2
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/character-classes.js +36 -34
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/regexp-parser.js +138 -110
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/utils.js +13 -11
- package/dist/node_modules/@chevrotain/utils/lib/src/print.js +5 -3
- package/dist/node_modules/@chevrotain/utils/lib/src/timer.js +4 -2
- package/dist/node_modules/@chevrotain/utils/lib/src/to-fast-properties.js +4 -2
- package/dist/node_modules/@dagrejs/dagre/dist/dagre.esm.js +1812 -1913
- package/dist/node_modules/@iconify/utils/lib/customisations/defaults.js +8 -6
- package/dist/node_modules/@iconify/utils/lib/icon/defaults.js +10 -8
- package/dist/node_modules/@iconify/utils/lib/icon/merge.js +8 -6
- package/dist/node_modules/@iconify/utils/lib/icon/name.js +8 -6
- package/dist/node_modules/@iconify/utils/lib/icon/transformations.js +4 -2
- package/dist/node_modules/@iconify/utils/lib/icon-set/get-icon.js +12 -10
- package/dist/node_modules/@iconify/utils/lib/icon-set/tree.js +4 -2
- package/dist/node_modules/@iconify/utils/lib/svg/build.js +20 -18
- package/dist/node_modules/@iconify/utils/lib/svg/defs.js +8 -6
- package/dist/node_modules/@iconify/utils/lib/svg/html.js +4 -2
- package/dist/node_modules/@iconify/utils/lib/svg/id.js +10 -8
- package/dist/node_modules/@iconify/utils/lib/svg/size.js +7 -5
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/architecture-YZFGNWBL.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-2KRD3SAO.js +26 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-67CJDMHE.js +26 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-7N4EOEYR.js +38 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-AA7GKIK3.js +33 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-CIAEETIT.js +26 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-FOC6F5B3.js +26 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-K5T4RW27.js +1208 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-KGLVRYIC.js +26 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-LIHQZDEY.js +67 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-ORNJ4GCN.js +34 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/gitGraph-7Q5UKJZL.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-OMHHGYJF.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-4T2RLAQJ.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-ZZUOXDRM.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-PYXPWWZC.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treeView-SZITEDCU.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-W4RFUUIX.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/wardley-RL74JXVD.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/mermaid-parser.core.js +59 -45
- package/dist/node_modules/@shikijs/core/dist/index.js +583 -1119
- package/dist/node_modules/@shikijs/engine-oniguruma/dist/index.js +163 -148
- package/dist/node_modules/@shikijs/engine-oniguruma/dist/wasm-inlined.js +4 -2
- package/dist/node_modules/@shikijs/langs/dist/abap.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/actionscript-3.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/ada.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/angular-expression.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/angular-html.js +15 -13
- package/dist/node_modules/@shikijs/langs/dist/angular-inline-style.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/angular-inline-template.js +9 -7
- package/dist/node_modules/@shikijs/langs/dist/angular-let-declaration.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/angular-template-blocks.js +9 -7
- package/dist/node_modules/@shikijs/langs/dist/angular-template.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/angular-ts.js +17 -15
- package/dist/node_modules/@shikijs/langs/dist/apache.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/apex.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/apl.js +15 -13
- package/dist/node_modules/@shikijs/langs/dist/applescript.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/ara.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/asciidoc.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/asm.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/astro.js +17 -15
- package/dist/node_modules/@shikijs/langs/dist/awk.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/ballerina.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/bat.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/beancount.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/berry.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/bibtex.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/bicep.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/bird2.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/blade.js +19 -17
- package/dist/node_modules/@shikijs/langs/dist/bsl.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/c.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/c3.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/cadence.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/cairo.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/clarity.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/clojure.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/cmake.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/cobol.js +9 -7
- package/dist/node_modules/@shikijs/langs/dist/codeowners.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/codeql.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/coffee.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/common-lisp.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/coq.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/cpp-macro.js +11 -9
- package/dist/node_modules/@shikijs/langs/dist/cpp.js +13 -11
- package/dist/node_modules/@shikijs/langs/dist/crystal.js +17 -15
- package/dist/node_modules/@shikijs/langs/dist/csharp.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/css.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/csv.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/cue.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/cypher.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/d.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/dart.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/dax.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/desktop.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/diff.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/docker.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/dotenv.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/dream-maker.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/edge.js +11 -9
- package/dist/node_modules/@shikijs/langs/dist/elixir.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/elm.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/emacs-lisp.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/erb.js +9 -7
- package/dist/node_modules/@shikijs/langs/dist/erlang.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/es-tag-css.js +11 -9
- package/dist/node_modules/@shikijs/langs/dist/es-tag-glsl.js +11 -9
- package/dist/node_modules/@shikijs/langs/dist/es-tag-html.js +11 -9
- package/dist/node_modules/@shikijs/langs/dist/es-tag-sql.js +9 -7
- package/dist/node_modules/@shikijs/langs/dist/es-tag-xml.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/fennel.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/fish.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/fluent.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/fortran-fixed-form.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/fortran-free-form.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/fsharp.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/gdresource.js +9 -7
- package/dist/node_modules/@shikijs/langs/dist/gdscript.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/gdshader.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/genie.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/gherkin.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/git-commit.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/git-rebase.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/gleam.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/glimmer-js.js +13 -11
- package/dist/node_modules/@shikijs/langs/dist/glimmer-ts.js +13 -11
- package/dist/node_modules/@shikijs/langs/dist/glsl.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/gn.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/gnuplot.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/go.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/graphql.js +13 -11
- package/dist/node_modules/@shikijs/langs/dist/groovy.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/hack.js +9 -7
- package/dist/node_modules/@shikijs/langs/dist/haml.js +9 -7
- package/dist/node_modules/@shikijs/langs/dist/handlebars.js +13 -11
- package/dist/node_modules/@shikijs/langs/dist/haskell.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/haxe.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/hcl.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/hjson.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/hlsl.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/html-derivative.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/html.js +9 -7
- package/dist/node_modules/@shikijs/langs/dist/http.js +13 -11
- package/dist/node_modules/@shikijs/langs/dist/hurl.js +11 -9
- package/dist/node_modules/@shikijs/langs/dist/hxml.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/hy.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/imba.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/ini.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/java.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/javascript.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/jinja-html.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/jinja.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/jison.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/json.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/json5.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/jsonc.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/jsonl.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/jsonnet.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/jssm.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/jsx.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/julia.js +15 -13
- package/dist/node_modules/@shikijs/langs/dist/just.js +17 -15
- package/dist/node_modules/@shikijs/langs/dist/kdl.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/kotlin.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/kusto.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/latex.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/lean.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/less.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/liquid.js +13 -11
- package/dist/node_modules/@shikijs/langs/dist/llvm.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/log.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/logo.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/lua.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/luau.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/make.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/markdown-nix.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/markdown-vue.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/markdown.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/marko.js +13 -11
- package/dist/node_modules/@shikijs/langs/dist/matlab.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/mdc.js +11 -9
- package/dist/node_modules/@shikijs/langs/dist/mdx.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/mermaid.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/mipsasm.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/mojo.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/moonbit.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/move.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/narrat.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/nextflow-groovy.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/nextflow.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/nginx.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/nim.js +19 -17
- package/dist/node_modules/@shikijs/langs/dist/nix.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/nushell.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/objective-c.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/objective-cpp.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/ocaml.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/odin.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/openscad.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/pascal.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/perl.js +15 -13
- package/dist/node_modules/@shikijs/langs/dist/php.js +17 -15
- package/dist/node_modules/@shikijs/langs/dist/pkl.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/plsql.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/po.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/polar.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/postcss.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/powerquery.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/powershell.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/prisma.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/prolog.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/proto.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/pug.js +11 -9
- package/dist/node_modules/@shikijs/langs/dist/puppet.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/purescript.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/python.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/qml.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/qmldir.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/qss.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/r.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/racket.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/raku.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/razor.js +9 -7
- package/dist/node_modules/@shikijs/langs/dist/reg.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/regexp.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/rel.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/riscv.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/ron.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/rosmsg.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/rst.js +21 -19
- package/dist/node_modules/@shikijs/langs/dist/ruby.js +29 -27
- package/dist/node_modules/@shikijs/langs/dist/rust.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/sas.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/sass.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/scala.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/scheme.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/scss.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/sdbl.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/shaderlab.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/shellscript.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/shellsession.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/smalltalk.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/solidity.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/soy.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/sparql.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/splunk.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/sql.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/ssh-config.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/stata.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/stylus.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/surrealql.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/svelte.js +13 -11
- package/dist/node_modules/@shikijs/langs/dist/swift.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/system-verilog.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/systemd.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/talonscript.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/tasl.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/tcl.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/templ.js +11 -9
- package/dist/node_modules/@shikijs/langs/dist/terraform.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/tex.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/toml.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/ts-tags.js +17 -15
- package/dist/node_modules/@shikijs/langs/dist/tsv.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/tsx.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/turtle.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/twig.js +17 -15
- package/dist/node_modules/@shikijs/langs/dist/typescript.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/typespec.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/typst.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/v.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/vala.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/vb.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/verilog.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/vhdl.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/viml.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/vue-directives.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/vue-html.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/vue-interpolations.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/vue-sfc-style-variable-injection.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/vue-vine.js +17 -15
- package/dist/node_modules/@shikijs/langs/dist/vue.js +25 -23
- package/dist/node_modules/@shikijs/langs/dist/vyper.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/wasm.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/wenyan.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/wgsl.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/wikitext.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/wit.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/wolfram.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/xml.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/xsl.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/yaml.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/zenscript.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/zig.js +3 -2
- package/dist/node_modules/@shikijs/primitive/dist/index.js +540 -0
- package/dist/node_modules/@shikijs/themes/dist/andromeeda.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/aurora-x.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/ayu-dark.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/ayu-light.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/ayu-mirage.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/catppuccin-frappe.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/catppuccin-latte.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/catppuccin-macchiato.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/catppuccin-mocha.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/dark-plus.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/dracula-soft.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/dracula.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/everforest-dark.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/everforest-light.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/github-dark-default.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/github-dark-dimmed.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/github-dark-high-contrast.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/github-dark.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/github-light-default.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/github-light-high-contrast.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/github-light.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-hard.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-medium.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-soft.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-hard.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-medium.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-soft.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/horizon-bright.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/horizon.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/houston.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/kanagawa-dragon.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/kanagawa-lotus.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/kanagawa-wave.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/laserwave.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/light-plus.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/material-theme-darker.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/material-theme-lighter.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/material-theme-ocean.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/material-theme-palenight.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/material-theme.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/min-dark.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/min-light.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/monokai.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/night-owl-light.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/night-owl.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/nord.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/one-dark-pro.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/one-light.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/plastic.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/poimandres.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/red.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/rose-pine-dawn.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/rose-pine-moon.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/rose-pine.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/slack-dark.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/slack-ochin.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/snazzy-light.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/solarized-dark.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/solarized-light.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/synthwave-84.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/tokyo-night.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/vesper.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/vitesse-black.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/vitesse-dark.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/vitesse-light.js +4 -2
- package/dist/node_modules/@shikijs/types/dist/index.js +4 -2
- package/dist/node_modules/@shikijs/vscode-textmate/dist/index.js +949 -947
- package/dist/node_modules/@ungap/structured-clone/esm/deserialize.js +30 -30
- package/dist/node_modules/@ungap/structured-clone/esm/index.js +6 -4
- package/dist/node_modules/@ungap/structured-clone/esm/serialize.js +64 -64
- package/dist/node_modules/@upsetjs/venn.js/build/venn.esm.js +905 -0
- package/dist/node_modules/@xyflow/react/dist/esm/index.js +904 -901
- package/dist/node_modules/@xyflow/system/dist/esm/index.js +1226 -1222
- package/dist/node_modules/bail/index.js +4 -2
- package/dist/node_modules/ccount/index.js +4 -2
- package/dist/node_modules/character-entities-html4/index.js +4 -2
- package/dist/node_modules/character-entities-legacy/index.js +4 -2
- package/dist/node_modules/chevrotain/lib/src/api.js +10 -10
- package/dist/node_modules/chevrotain/lib/src/lang/lang_extensions.js +6 -4
- package/dist/node_modules/chevrotain/lib/src/parse/constants.js +4 -2
- package/dist/node_modules/chevrotain/lib/src/parse/cst/cst.js +11 -9
- package/dist/node_modules/chevrotain/lib/src/parse/cst/cst_visitor.js +38 -45
- package/dist/node_modules/chevrotain/lib/src/parse/errors_public.js +35 -36
- package/dist/node_modules/chevrotain/lib/src/parse/exceptions_public.js +26 -25
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/checks.js +204 -226
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/first.js +18 -18
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/follow.js +20 -19
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_resolver_public.js +14 -13
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/interpreter.js +195 -200
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/keys.js +5 -4
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/llk_lookahead.js +28 -28
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/lookahead.js +165 -170
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/resolver.js +17 -17
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/rest.js +50 -50
- package/dist/node_modules/chevrotain/lib/src/parse/parser/parser.js +76 -83
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/error_handler.js +21 -21
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/gast_recorder.js +117 -121
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/lexer_adapter.js +12 -6
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/looksahead.js +51 -51
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.js +15 -14
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.js +81 -80
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.js +229 -217
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recoverable.js +87 -86
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/tree_builder.js +36 -44
- package/dist/node_modules/chevrotain/lib/src/parse/parser/utils/apply_mixins.js +4 -2
- package/dist/node_modules/chevrotain/lib/src/scan/lexer.js +287 -309
- package/dist/node_modules/chevrotain/lib/src/scan/lexer_errors_public.js +4 -2
- package/dist/node_modules/chevrotain/lib/src/scan/lexer_public.js +115 -126
- package/dist/node_modules/chevrotain/lib/src/scan/reg_exp.js +73 -70
- package/dist/node_modules/chevrotain/lib/src/scan/reg_exp_parser.js +12 -10
- package/dist/node_modules/chevrotain/lib/src/scan/tokens.js +45 -54
- package/dist/node_modules/chevrotain/lib/src/scan/tokens_public.js +29 -30
- package/dist/node_modules/chevrotain-allstar/lib/all-star-lookahead.js +242 -240
- package/dist/node_modules/chevrotain-allstar/lib/atn.js +134 -133
- package/dist/node_modules/chevrotain-allstar/lib/dfa.js +11 -10
- package/dist/node_modules/chevrotain-allstar/lib/index.js +1 -1
- package/dist/node_modules/classcat/index.js +5 -3
- package/dist/node_modules/comma-separated-tokens/index.js +5 -3
- package/dist/node_modules/cose-base/cose-base.js +21 -21
- package/dist/node_modules/cytoscape/dist/cytoscape.esm.js +7935 -7935
- package/dist/node_modules/cytoscape-cose-bilkent/cytoscape-cose-bilkent.js +8 -6
- package/dist/node_modules/cytoscape-fcose/cytoscape-fcose.js +8 -6
- package/dist/node_modules/cytoscape-fcose/node_modules/cose-base/cose-base.js +20 -20
- package/dist/node_modules/cytoscape-fcose/node_modules/layout-base/layout-base.js +6 -4
- package/dist/node_modules/d3/src/index.js +95 -95
- package/dist/node_modules/d3-array/src/ascending.js +4 -2
- package/dist/node_modules/d3-array/src/bisect.js +8 -8
- package/dist/node_modules/d3-array/src/bisector.js +8 -6
- package/dist/node_modules/d3-array/src/descending.js +4 -2
- package/dist/node_modules/d3-array/src/max.js +4 -2
- package/dist/node_modules/d3-array/src/min.js +4 -2
- package/dist/node_modules/d3-array/src/number.js +4 -2
- package/dist/node_modules/d3-array/src/range.js +4 -2
- package/dist/node_modules/d3-array/src/ticks.js +13 -11
- package/dist/node_modules/d3-axis/src/axis.js +48 -46
- package/dist/node_modules/d3-axis/src/identity.js +4 -2
- package/dist/node_modules/d3-brush/src/brush.js +6 -4
- package/dist/node_modules/d3-color/src/color.js +86 -84
- package/dist/node_modules/d3-color/src/define.js +5 -3
- package/dist/node_modules/d3-color/src/lab.js +45 -43
- package/dist/node_modules/d3-color/src/math.js +4 -2
- package/dist/node_modules/d3-dispatch/src/dispatch.js +18 -17
- package/dist/node_modules/d3-drag/src/constant.js +4 -2
- package/dist/node_modules/d3-drag/src/drag.js +77 -75
- package/dist/node_modules/d3-drag/src/event.js +5 -3
- package/dist/node_modules/d3-drag/src/nodrag.js +11 -9
- package/dist/node_modules/d3-drag/src/noevent.js +6 -4
- package/dist/node_modules/d3-ease/src/cubic.js +4 -2
- package/dist/node_modules/d3-format/src/defaultLocale.js +8 -6
- package/dist/node_modules/d3-format/src/exponent.js +6 -4
- package/dist/node_modules/d3-format/src/formatDecimal.js +5 -3
- package/dist/node_modules/d3-format/src/formatGroup.js +4 -2
- package/dist/node_modules/d3-format/src/formatNumerals.js +4 -2
- package/dist/node_modules/d3-format/src/formatPrefixAuto.js +10 -8
- package/dist/node_modules/d3-format/src/formatRounded.js +6 -4
- package/dist/node_modules/d3-format/src/formatSpecifier.js +10 -8
- package/dist/node_modules/d3-format/src/formatTrim.js +4 -2
- package/dist/node_modules/d3-format/src/formatTypes.js +15 -13
- package/dist/node_modules/d3-format/src/identity.js +4 -2
- package/dist/node_modules/d3-format/src/locale.js +33 -31
- package/dist/node_modules/d3-format/src/precisionFixed.js +6 -4
- package/dist/node_modules/d3-format/src/precisionPrefix.js +6 -4
- package/dist/node_modules/d3-format/src/precisionRound.js +6 -4
- package/dist/node_modules/d3-hierarchy/src/accessors.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/constant.js +5 -3
- package/dist/node_modules/d3-hierarchy/src/hierarchy/ancestors.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/hierarchy/count.js +6 -4
- package/dist/node_modules/d3-hierarchy/src/hierarchy/descendants.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/hierarchy/each.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/hierarchy/eachAfter.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/hierarchy/eachBefore.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/hierarchy/find.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/hierarchy/index.js +46 -44
- package/dist/node_modules/d3-hierarchy/src/hierarchy/iterator.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/hierarchy/leaves.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/hierarchy/links.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/hierarchy/path.js +6 -4
- package/dist/node_modules/d3-hierarchy/src/hierarchy/sort.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/hierarchy/sum.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/treemap/dice.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/treemap/index.js +16 -14
- package/dist/node_modules/d3-hierarchy/src/treemap/round.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/treemap/slice.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/treemap/squarify.js +11 -9
- package/dist/node_modules/d3-interpolate/src/array.js +6 -4
- package/dist/node_modules/d3-interpolate/src/basis.js +6 -4
- package/dist/node_modules/d3-interpolate/src/basisClosed.js +6 -4
- package/dist/node_modules/d3-interpolate/src/color.js +19 -17
- package/dist/node_modules/d3-interpolate/src/constant.js +4 -2
- package/dist/node_modules/d3-interpolate/src/date.js +4 -2
- package/dist/node_modules/d3-interpolate/src/hcl.js +8 -6
- package/dist/node_modules/d3-interpolate/src/number.js +4 -2
- package/dist/node_modules/d3-interpolate/src/numberArray.js +5 -3
- package/dist/node_modules/d3-interpolate/src/object.js +6 -4
- package/dist/node_modules/d3-interpolate/src/rgb.js +11 -9
- package/dist/node_modules/d3-interpolate/src/round.js +4 -2
- package/dist/node_modules/d3-interpolate/src/string.js +16 -14
- package/dist/node_modules/d3-interpolate/src/transform/decompose.js +7 -5
- package/dist/node_modules/d3-interpolate/src/transform/index.js +13 -11
- package/dist/node_modules/d3-interpolate/src/transform/parse.js +10 -8
- package/dist/node_modules/d3-interpolate/src/value.js +14 -12
- package/dist/node_modules/d3-interpolate/src/zoom.js +13 -11
- package/dist/node_modules/d3-path/src/path.js +16 -14
- package/dist/node_modules/d3-sankey/node_modules/d3-array/src/max.js +4 -2
- package/dist/node_modules/d3-sankey/node_modules/d3-array/src/min.js +4 -2
- package/dist/node_modules/d3-sankey/node_modules/d3-array/src/sum.js +4 -2
- package/dist/node_modules/d3-sankey/node_modules/d3-path/src/path.js +13 -12
- package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/array.js +4 -2
- package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/constant.js +4 -2
- package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/link/index.js +19 -17
- package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/point.js +5 -3
- package/dist/node_modules/d3-sankey/src/align.js +12 -10
- package/dist/node_modules/d3-sankey/src/constant.js +4 -2
- package/dist/node_modules/d3-sankey/src/sankey.js +170 -168
- package/dist/node_modules/d3-sankey/src/sankeyLinkHorizontal.js +8 -6
- package/dist/node_modules/d3-scale/src/band.js +11 -9
- package/dist/node_modules/d3-scale/src/constant.js +4 -2
- package/dist/node_modules/d3-scale/src/continuous.js +49 -47
- package/dist/node_modules/d3-scale/src/init.js +4 -2
- package/dist/node_modules/d3-scale/src/linear.js +15 -13
- package/dist/node_modules/d3-scale/src/nice.js +4 -2
- package/dist/node_modules/d3-scale/src/number.js +4 -2
- package/dist/node_modules/d3-scale/src/ordinal.js +18 -16
- package/dist/node_modules/d3-scale/src/tickFormat.js +16 -14
- package/dist/node_modules/d3-scale/src/time.js +36 -34
- package/dist/node_modules/d3-scale-chromatic/src/categorical/Tableau10.js +5 -3
- package/dist/node_modules/d3-scale-chromatic/src/colors.js +4 -2
- package/dist/node_modules/d3-selection/src/array.js +4 -2
- package/dist/node_modules/d3-selection/src/constant.js +4 -2
- package/dist/node_modules/d3-selection/src/creator.js +12 -10
- package/dist/node_modules/d3-selection/src/matcher.js +5 -3
- package/dist/node_modules/d3-selection/src/namespace.js +7 -5
- package/dist/node_modules/d3-selection/src/namespaces.js +5 -3
- package/dist/node_modules/d3-selection/src/pointer.js +6 -4
- package/dist/node_modules/d3-selection/src/select.js +6 -4
- package/dist/node_modules/d3-selection/src/selection/append.js +6 -4
- package/dist/node_modules/d3-selection/src/selection/attr.js +19 -17
- package/dist/node_modules/d3-selection/src/selection/call.js +4 -2
- package/dist/node_modules/d3-selection/src/selection/classed.js +25 -23
- package/dist/node_modules/d3-selection/src/selection/clone.js +7 -5
- package/dist/node_modules/d3-selection/src/selection/data.js +18 -16
- package/dist/node_modules/d3-selection/src/selection/datum.js +4 -2
- package/dist/node_modules/d3-selection/src/selection/dispatch.js +12 -10
- package/dist/node_modules/d3-selection/src/selection/each.js +4 -2
- package/dist/node_modules/d3-selection/src/selection/empty.js +4 -2
- package/dist/node_modules/d3-selection/src/selection/enter.js +13 -11
- package/dist/node_modules/d3-selection/src/selection/exit.js +7 -5
- package/dist/node_modules/d3-selection/src/selection/filter.js +8 -6
- package/dist/node_modules/d3-selection/src/selection/html.js +8 -6
- package/dist/node_modules/d3-selection/src/selection/index.js +80 -79
- package/dist/node_modules/d3-selection/src/selection/insert.js +8 -6
- package/dist/node_modules/d3-selection/src/selection/iterator.js +4 -2
- package/dist/node_modules/d3-selection/src/selection/join.js +4 -2
- package/dist/node_modules/d3-selection/src/selection/lower.js +6 -4
- package/dist/node_modules/d3-selection/src/selection/merge.js +6 -4
- package/dist/node_modules/d3-selection/src/selection/node.js +4 -2
- package/dist/node_modules/d3-selection/src/selection/nodes.js +4 -2
- package/dist/node_modules/d3-selection/src/selection/on.js +11 -9
- package/dist/node_modules/d3-selection/src/selection/order.js +4 -2
- package/dist/node_modules/d3-selection/src/selection/property.js +8 -6
- package/dist/node_modules/d3-selection/src/selection/raise.js +6 -4
- package/dist/node_modules/d3-selection/src/selection/remove.js +6 -4
- package/dist/node_modules/d3-selection/src/selection/select.js +8 -6
- package/dist/node_modules/d3-selection/src/selection/selectAll.js +11 -9
- package/dist/node_modules/d3-selection/src/selection/selectChild.js +10 -8
- package/dist/node_modules/d3-selection/src/selection/selectChildren.js +10 -8
- package/dist/node_modules/d3-selection/src/selection/size.js +4 -2
- package/dist/node_modules/d3-selection/src/selection/sort.js +8 -6
- package/dist/node_modules/d3-selection/src/selection/sparse.js +4 -2
- package/dist/node_modules/d3-selection/src/selection/style.js +14 -12
- package/dist/node_modules/d3-selection/src/selection/text.js +8 -6
- package/dist/node_modules/d3-selection/src/selector.js +6 -4
- package/dist/node_modules/d3-selection/src/selectorAll.js +6 -4
- package/dist/node_modules/d3-selection/src/sourceEvent.js +4 -2
- package/dist/node_modules/d3-selection/src/window.js +4 -2
- package/dist/node_modules/d3-shape/src/arc.js +38 -36
- package/dist/node_modules/d3-shape/src/array.js +3 -2
- package/dist/node_modules/d3-shape/src/constant.js +4 -2
- package/dist/node_modules/d3-shape/src/curve/basis.js +10 -8
- package/dist/node_modules/d3-shape/src/curve/basisClosed.js +18 -16
- package/dist/node_modules/d3-shape/src/curve/basisOpen.js +9 -7
- package/dist/node_modules/d3-shape/src/curve/bump.js +15 -13
- package/dist/node_modules/d3-shape/src/curve/bundle.js +9 -7
- package/dist/node_modules/d3-shape/src/curve/cardinal.js +10 -8
- package/dist/node_modules/d3-shape/src/curve/cardinalClosed.js +12 -10
- package/dist/node_modules/d3-shape/src/curve/cardinalOpen.js +9 -7
- package/dist/node_modules/d3-shape/src/curve/catmullRom.js +19 -17
- package/dist/node_modules/d3-shape/src/curve/catmullRomClosed.js +13 -11
- package/dist/node_modules/d3-shape/src/curve/catmullRomOpen.js +10 -8
- package/dist/node_modules/d3-shape/src/curve/linear.js +7 -5
- package/dist/node_modules/d3-shape/src/curve/linearClosed.js +12 -10
- package/dist/node_modules/d3-shape/src/curve/monotone.js +23 -21
- package/dist/node_modules/d3-shape/src/curve/natural.js +9 -7
- package/dist/node_modules/d3-shape/src/curve/step.js +19 -17
- package/dist/node_modules/d3-shape/src/descending.js +4 -2
- package/dist/node_modules/d3-shape/src/identity.js +4 -2
- package/dist/node_modules/d3-shape/src/line.js +19 -17
- package/dist/node_modules/d3-shape/src/math.js +8 -6
- package/dist/node_modules/d3-shape/src/noop.js +4 -2
- package/dist/node_modules/d3-shape/src/path.js +6 -4
- package/dist/node_modules/d3-shape/src/pie.js +15 -13
- package/dist/node_modules/d3-shape/src/point.js +5 -3
- package/dist/node_modules/d3-time/src/day.js +17 -15
- package/dist/node_modules/d3-time/src/duration.js +4 -2
- package/dist/node_modules/d3-time/src/hour.js +16 -14
- package/dist/node_modules/d3-time/src/interval.js +7 -5
- package/dist/node_modules/d3-time/src/millisecond.js +7 -5
- package/dist/node_modules/d3-time/src/minute.js +16 -14
- package/dist/node_modules/d3-time/src/month.js +14 -12
- package/dist/node_modules/d3-time/src/second.js +9 -7
- package/dist/node_modules/d3-time/src/ticks.js +66 -64
- package/dist/node_modules/d3-time/src/week.js +21 -19
- package/dist/node_modules/d3-time/src/year.js +10 -8
- package/dist/node_modules/d3-time-format/src/defaultLocale.js +8 -6
- package/dist/node_modules/d3-time-format/src/locale.js +346 -344
- package/dist/node_modules/d3-timer/src/timeout.js +6 -4
- package/dist/node_modules/d3-timer/src/timer.js +33 -31
- package/dist/node_modules/d3-transition/src/index.js +2 -2
- package/dist/node_modules/d3-transition/src/interrupt.js +4 -3
- package/dist/node_modules/d3-transition/src/selection/index.js +5 -4
- package/dist/node_modules/d3-transition/src/selection/interrupt.js +6 -4
- package/dist/node_modules/d3-transition/src/selection/transition.js +16 -14
- package/dist/node_modules/d3-transition/src/transition/attr.js +28 -26
- package/dist/node_modules/d3-transition/src/transition/attrTween.js +13 -11
- package/dist/node_modules/d3-transition/src/transition/delay.js +11 -9
- package/dist/node_modules/d3-transition/src/transition/duration.js +11 -9
- package/dist/node_modules/d3-transition/src/transition/ease.js +8 -6
- package/dist/node_modules/d3-transition/src/transition/easeVarying.js +8 -6
- package/dist/node_modules/d3-transition/src/transition/end.js +6 -4
- package/dist/node_modules/d3-transition/src/transition/filter.js +8 -6
- package/dist/node_modules/d3-transition/src/transition/index.js +63 -61
- package/dist/node_modules/d3-transition/src/transition/interpolate.js +9 -7
- package/dist/node_modules/d3-transition/src/transition/merge.js +6 -4
- package/dist/node_modules/d3-transition/src/transition/on.js +9 -7
- package/dist/node_modules/d3-transition/src/transition/remove.js +6 -4
- package/dist/node_modules/d3-transition/src/transition/schedule.js +20 -18
- package/dist/node_modules/d3-transition/src/transition/select.js +10 -8
- package/dist/node_modules/d3-transition/src/transition/selectAll.js +10 -8
- package/dist/node_modules/d3-transition/src/transition/selection.js +7 -5
- package/dist/node_modules/d3-transition/src/transition/style.js +21 -19
- package/dist/node_modules/d3-transition/src/transition/styleTween.js +8 -6
- package/dist/node_modules/d3-transition/src/transition/text.js +8 -6
- package/dist/node_modules/d3-transition/src/transition/textTween.js +8 -6
- package/dist/node_modules/d3-transition/src/transition/transition.js +10 -8
- package/dist/node_modules/d3-transition/src/transition/tween.js +14 -12
- package/dist/node_modules/d3-zoom/src/constant.js +4 -2
- package/dist/node_modules/d3-zoom/src/event.js +4 -2
- package/dist/node_modules/d3-zoom/src/index.js +2 -2
- package/dist/node_modules/d3-zoom/src/noevent.js +5 -3
- package/dist/node_modules/d3-zoom/src/transform.js +12 -10
- package/dist/node_modules/d3-zoom/src/zoom.js +116 -114
- package/dist/node_modules/dagre-d3-es/src/dagre/acyclic.js +14 -12
- package/dist/node_modules/dagre-d3-es/src/dagre/add-border-segments.js +11 -9
- package/dist/node_modules/dagre-d3-es/src/dagre/coordinate-system.js +36 -34
- package/dist/node_modules/dagre-d3-es/src/dagre/data/list.js +9 -7
- package/dist/node_modules/dagre-d3-es/src/dagre/greedy-fas.js +51 -49
- package/dist/node_modules/dagre-d3-es/src/dagre/index.js +2 -2
- package/dist/node_modules/dagre-d3-es/src/dagre/layout.js +165 -163
- package/dist/node_modules/dagre-d3-es/src/dagre/nesting-graph.js +45 -43
- package/dist/node_modules/dagre-d3-es/src/dagre/normalize.js +12 -10
- package/dist/node_modules/dagre-d3-es/src/dagre/order/add-subgraph-constraints.js +6 -4
- package/dist/node_modules/dagre-d3-es/src/dagre/order/barycenter.js +8 -6
- package/dist/node_modules/dagre-d3-es/src/dagre/order/build-layer-graph.js +14 -12
- package/dist/node_modules/dagre-d3-es/src/dagre/order/cross-count.js +22 -20
- package/dist/node_modules/dagre-d3-es/src/dagre/order/index.js +36 -34
- package/dist/node_modules/dagre-d3-es/src/dagre/order/init-order.js +16 -14
- package/dist/node_modules/dagre-d3-es/src/dagre/order/resolve-conflicts.js +32 -30
- package/dist/node_modules/dagre-d3-es/src/dagre/order/sort-subgraph.js +30 -28
- package/dist/node_modules/dagre-d3-es/src/dagre/order/sort.js +20 -18
- package/dist/node_modules/dagre-d3-es/src/dagre/parent-dummy-chains.js +12 -10
- package/dist/node_modules/dagre-d3-es/src/dagre/position/bk.js +150 -148
- package/dist/node_modules/dagre-d3-es/src/dagre/position/index.js +20 -18
- package/dist/node_modules/dagre-d3-es/src/dagre/rank/feasible-tree.js +19 -17
- package/dist/node_modules/dagre-d3-es/src/dagre/rank/index.js +16 -14
- package/dist/node_modules/dagre-d3-es/src/dagre/rank/network-simplex.js +64 -63
- package/dist/node_modules/dagre-d3-es/src/dagre/rank/util.js +15 -13
- package/dist/node_modules/dagre-d3-es/src/dagre/util.js +84 -82
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/dfs.js +15 -13
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/dijkstra.js +3 -2
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/floyd-warshall.js +3 -2
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/index.js +3 -3
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/postorder.js +6 -4
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/preorder.js +6 -4
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/topsort.js +13 -11
- package/dist/node_modules/dagre-d3-es/src/graphlib/graph.js +131 -129
- package/dist/node_modules/dagre-d3-es/src/graphlib/index.js +1 -1
- package/dist/node_modules/dagre-d3-es/src/graphlib/json.js +23 -21
- package/dist/node_modules/dayjs/dayjs.min.js +6 -4
- package/dist/node_modules/dayjs/plugin/advancedFormat.js +6 -4
- package/dist/node_modules/dayjs/plugin/customParseFormat.js +6 -4
- package/dist/node_modules/dayjs/plugin/duration.js +6 -4
- package/dist/node_modules/dayjs/plugin/isoWeek.js +6 -4
- package/dist/node_modules/decode-named-character-reference/index.dom.js +7 -5
- package/dist/node_modules/devlop/lib/default.js +4 -2
- package/dist/node_modules/dompurify/dist/purify.es.js +203 -201
- package/dist/node_modules/entities/dist/esm/decode-codepoint.js +6 -4
- package/dist/node_modules/entities/dist/esm/decode.js +87 -85
- package/dist/node_modules/entities/dist/esm/generated/decode-data-html.js +4 -2
- package/dist/node_modules/estree-util-is-identifier-name/lib/index.js +6 -4
- package/dist/node_modules/extend/index.js +9 -6
- package/dist/node_modules/hast-util-from-dom/lib/index.js +32 -30
- package/dist/node_modules/hast-util-from-html-isomorphic/lib/browser.js +10 -8
- package/dist/node_modules/hast-util-from-parse5/lib/index.js +82 -80
- package/dist/node_modules/hast-util-is-element/lib/index.js +17 -15
- package/dist/node_modules/hast-util-parse-selector/lib/index.js +7 -5
- package/dist/node_modules/hast-util-raw/lib/index.js +136 -134
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/doctype.js +23 -21
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/error-codes.js +5 -3
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/foreign-content.js +89 -89
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/html.js +250 -249
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/token.js +6 -4
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/unicode.js +14 -14
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/index.js +4 -4
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/formatting-element-list.js +17 -15
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/index.js +1497 -1495
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/open-element-stack.js +148 -146
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/serializer/index.js +20 -19
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/index.js +800 -798
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/preprocessor.js +33 -31
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tree-adapters/default.js +10 -8
- package/dist/node_modules/hast-util-sanitize/lib/index.js +106 -104
- package/dist/node_modules/hast-util-sanitize/lib/schema.js +12 -11
- package/dist/node_modules/hast-util-to-html/lib/handle/comment.js +9 -7
- package/dist/node_modules/hast-util-to-html/lib/handle/doctype.js +4 -2
- package/dist/node_modules/hast-util-to-html/lib/handle/element.js +25 -23
- package/dist/node_modules/hast-util-to-html/lib/handle/index.js +22 -21
- package/dist/node_modules/hast-util-to-html/lib/handle/raw.js +6 -4
- package/dist/node_modules/hast-util-to-html/lib/handle/root.js +4 -2
- package/dist/node_modules/hast-util-to-html/lib/handle/text.js +7 -5
- package/dist/node_modules/hast-util-to-html/lib/index.js +38 -36
- package/dist/node_modules/hast-util-to-html/lib/omission/closing.js +70 -68
- package/dist/node_modules/hast-util-to-html/lib/omission/omission.js +6 -4
- package/dist/node_modules/hast-util-to-html/lib/omission/opening.js +32 -30
- package/dist/node_modules/hast-util-to-html/lib/omission/util/siblings.js +10 -9
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +192 -190
- package/dist/node_modules/hast-util-to-parse5/lib/index.js +71 -69
- package/dist/node_modules/hast-util-to-text/lib/index.js +61 -59
- package/dist/node_modules/hast-util-whitespace/lib/index.js +8 -6
- package/dist/node_modules/hastscript/lib/create-h.js +26 -24
- package/dist/node_modules/hastscript/lib/index.js +7 -5
- package/dist/node_modules/hastscript/lib/svg-case-sensitive-tag-names.js +4 -2
- package/dist/node_modules/html-url-attributes/lib/index.js +4 -2
- package/dist/node_modules/html-void-elements/index.js +4 -2
- package/dist/node_modules/inline-style-parser/cjs/index.js +6 -4
- package/dist/node_modules/internmap/src/index.js +22 -20
- package/dist/node_modules/katex/dist/katex.js +2914 -2873
- package/dist/node_modules/khroma/dist/channels/index.js +23 -21
- package/dist/node_modules/khroma/dist/channels/reusable.js +5 -3
- package/dist/node_modules/khroma/dist/channels/type.js +7 -5
- package/dist/node_modules/khroma/dist/color/hex.js +10 -8
- package/dist/node_modules/khroma/dist/color/hsl.js +19 -17
- package/dist/node_modules/khroma/dist/color/index.js +17 -15
- package/dist/node_modules/khroma/dist/color/keyword.js +10 -8
- package/dist/node_modules/khroma/dist/color/rgb.js +14 -12
- package/dist/node_modules/khroma/dist/constants.js +7 -5
- package/dist/node_modules/khroma/dist/methods/adjust.js +8 -6
- package/dist/node_modules/khroma/dist/methods/adjust_channel.js +8 -6
- package/dist/node_modules/khroma/dist/methods/change.js +9 -7
- package/dist/node_modules/khroma/dist/methods/channel.js +6 -4
- package/dist/node_modules/khroma/dist/methods/darken.js +5 -3
- package/dist/node_modules/khroma/dist/methods/invert.js +8 -6
- package/dist/node_modules/khroma/dist/methods/is_dark.js +5 -3
- package/dist/node_modules/khroma/dist/methods/is_light.js +5 -3
- package/dist/node_modules/khroma/dist/methods/lighten.js +5 -3
- package/dist/node_modules/khroma/dist/methods/luminance.js +8 -6
- package/dist/node_modules/khroma/dist/methods/mix.js +8 -6
- package/dist/node_modules/khroma/dist/methods/rgba.js +15 -13
- package/dist/node_modules/khroma/dist/methods/transparentize.js +5 -0
- package/dist/node_modules/khroma/dist/utils/channel.js +8 -6
- package/dist/node_modules/khroma/dist/utils/index.js +10 -8
- package/dist/node_modules/khroma/dist/utils/lang.js +4 -2
- package/dist/node_modules/khroma/dist/utils/unit.js +4 -2
- package/dist/node_modules/langium/lib/default-module.js +66 -64
- package/dist/node_modules/langium/lib/dependency-injection.js +37 -39
- package/dist/node_modules/langium/lib/documentation/comment-provider.js +7 -5
- package/dist/node_modules/langium/lib/documentation/documentation-provider.js +8 -6
- package/dist/node_modules/langium/lib/documentation/jsdoc.js +204 -202
- package/dist/node_modules/langium/lib/languages/generated/ast.js +343 -534
- package/dist/node_modules/langium/lib/languages/grammar-config.js +10 -8
- package/dist/node_modules/langium/lib/parser/async-parser.js +4 -76
- package/dist/node_modules/langium/lib/parser/completion-parser-builder.js +8 -6
- package/dist/node_modules/langium/lib/parser/cst-node-builder.js +56 -54
- package/dist/node_modules/langium/lib/parser/langium-parser-builder.js +9 -7
- package/dist/node_modules/langium/lib/parser/langium-parser.js +190 -188
- package/dist/node_modules/langium/lib/parser/lexer.js +25 -25
- package/dist/node_modules/langium/lib/parser/parser-builder-base.js +204 -203
- package/dist/node_modules/langium/lib/parser/token-builder.js +32 -30
- package/dist/node_modules/langium/lib/parser/value-converter.js +17 -15
- package/dist/node_modules/langium/lib/references/linker.js +104 -103
- package/dist/node_modules/langium/lib/references/name-provider.js +9 -7
- package/dist/node_modules/langium/lib/references/references.js +53 -51
- package/dist/node_modules/langium/lib/references/scope-computation.js +14 -12
- package/dist/node_modules/langium/lib/references/scope-provider.js +13 -11
- package/dist/node_modules/langium/lib/references/scope.js +27 -56
- package/dist/node_modules/langium/lib/serializer/hydrator.js +71 -69
- package/dist/node_modules/langium/lib/serializer/json-serializer.js +23 -21
- package/dist/node_modules/langium/lib/service-registry.js +7 -5
- package/dist/node_modules/langium/lib/syntax-tree.js +33 -31
- package/dist/node_modules/langium/lib/utils/ast-utils.js +77 -112
- package/dist/node_modules/langium/lib/utils/caching.js +33 -42
- package/dist/node_modules/langium/lib/utils/cancellation.js +7 -5
- package/dist/node_modules/langium/lib/utils/collections.js +35 -33
- package/dist/node_modules/langium/lib/utils/cst-utils.js +46 -161
- package/dist/node_modules/langium/lib/utils/disposable.js +5 -3
- package/dist/node_modules/langium/lib/utils/errors.js +8 -9
- package/dist/node_modules/langium/lib/utils/event.js +7 -5
- package/dist/node_modules/langium/lib/utils/grammar-loader.js +16 -14
- package/dist/node_modules/langium/lib/utils/grammar-utils.js +172 -249
- package/dist/node_modules/langium/lib/utils/promise-utils.js +18 -19
- package/dist/node_modules/langium/lib/utils/regexp-utils.js +53 -76
- package/dist/node_modules/langium/lib/utils/stream.js +155 -153
- package/dist/node_modules/langium/lib/utils/uri-utils.js +14 -12
- package/dist/node_modules/langium/lib/validation/document-validator.js +104 -103
- package/dist/node_modules/langium/lib/validation/validation-registry.js +15 -14
- package/dist/node_modules/langium/lib/workspace/ast-descriptions.js +19 -17
- package/dist/node_modules/langium/lib/workspace/ast-node-locator.js +4 -2
- package/dist/node_modules/langium/lib/workspace/configuration.js +7 -5
- package/dist/node_modules/langium/lib/workspace/document-builder.js +131 -134
- package/dist/node_modules/langium/lib/workspace/documents.js +85 -83
- package/dist/node_modules/langium/lib/workspace/file-system-provider.js +5 -4
- package/dist/node_modules/langium/lib/workspace/index-manager.js +16 -14
- package/dist/node_modules/langium/lib/workspace/workspace-lock.js +11 -9
- package/dist/node_modules/langium/lib/workspace/workspace-manager.js +35 -33
- package/dist/node_modules/layout-base/layout-base.js +6 -4
- package/dist/node_modules/lodash-es/_DataView.js +6 -4
- package/dist/node_modules/lodash-es/_Hash.js +14 -13
- package/dist/node_modules/lodash-es/_ListCache.js +14 -13
- package/dist/node_modules/lodash-es/_Map.js +6 -4
- package/dist/node_modules/lodash-es/_MapCache.js +14 -13
- package/dist/node_modules/lodash-es/_Promise.js +6 -4
- package/dist/node_modules/lodash-es/_Set.js +6 -4
- package/dist/node_modules/lodash-es/_SetCache.js +10 -9
- package/dist/node_modules/lodash-es/_Stack.js +12 -11
- package/dist/node_modules/lodash-es/_Symbol.js +5 -3
- package/dist/node_modules/lodash-es/_Uint8Array.js +5 -3
- package/dist/node_modules/lodash-es/_WeakMap.js +6 -4
- package/dist/node_modules/lodash-es/_apply.js +4 -3
- package/dist/node_modules/lodash-es/_arrayEach.js +4 -3
- package/dist/node_modules/lodash-es/_arrayFilter.js +4 -3
- package/dist/node_modules/lodash-es/_arrayIncludes.js +6 -5
- package/dist/node_modules/lodash-es/_arrayIncludesWith.js +4 -3
- package/dist/node_modules/lodash-es/_arrayLikeKeys.js +13 -12
- package/dist/node_modules/lodash-es/_arrayMap.js +4 -3
- package/dist/node_modules/lodash-es/_arrayPush.js +4 -3
- package/dist/node_modules/lodash-es/_arrayReduce.js +4 -3
- package/dist/node_modules/lodash-es/_arraySome.js +4 -3
- package/dist/node_modules/lodash-es/_asciiSize.js +5 -3
- package/dist/node_modules/lodash-es/_assignMergeValue.js +7 -6
- package/dist/node_modules/lodash-es/_assignValue.js +8 -7
- package/dist/node_modules/lodash-es/_assocIndexOf.js +6 -5
- package/dist/node_modules/lodash-es/_baseAssign.js +7 -6
- package/dist/node_modules/lodash-es/_baseAssignIn.js +7 -6
- package/dist/node_modules/lodash-es/_baseAssignValue.js +6 -5
- package/dist/node_modules/lodash-es/_baseClone.js +51 -50
- package/dist/node_modules/lodash-es/_baseCreate.js +7 -5
- package/dist/node_modules/lodash-es/_baseEach.js +6 -4
- package/dist/node_modules/lodash-es/_baseExtremum.js +6 -5
- package/dist/node_modules/lodash-es/_baseFilter.js +6 -5
- package/dist/node_modules/lodash-es/_baseFindIndex.js +4 -3
- package/dist/node_modules/lodash-es/_baseFlatten.js +8 -7
- package/dist/node_modules/lodash-es/_baseFor.js +5 -3
- package/dist/node_modules/lodash-es/_baseForOwn.js +7 -6
- package/dist/node_modules/lodash-es/_baseGet.js +8 -7
- package/dist/node_modules/lodash-es/_baseGetAllKeys.js +7 -6
- package/dist/node_modules/lodash-es/_baseGetTag.js +9 -8
- package/dist/node_modules/lodash-es/_baseGt.js +4 -3
- package/dist/node_modules/lodash-es/_baseHas.js +6 -5
- package/dist/node_modules/lodash-es/_baseHasIn.js +4 -3
- package/dist/node_modules/lodash-es/_baseIndexOf.js +8 -7
- package/dist/node_modules/lodash-es/_baseIsArguments.js +8 -7
- package/dist/node_modules/lodash-es/_baseIsEqual.js +7 -6
- package/dist/node_modules/lodash-es/_baseIsEqualDeep.js +23 -22
- package/dist/node_modules/lodash-es/_baseIsMap.js +8 -7
- package/dist/node_modules/lodash-es/_baseIsMatch.js +9 -8
- package/dist/node_modules/lodash-es/_baseIsNaN.js +4 -3
- package/dist/node_modules/lodash-es/_baseIsNative.js +10 -9
- package/dist/node_modules/lodash-es/_baseIsSet.js +8 -7
- package/dist/node_modules/lodash-es/_baseIsTypedArray.js +10 -9
- package/dist/node_modules/lodash-es/_baseIteratee.js +10 -9
- package/dist/node_modules/lodash-es/_baseKeys.js +9 -8
- package/dist/node_modules/lodash-es/_baseKeysIn.js +11 -10
- package/dist/node_modules/lodash-es/_baseLt.js +4 -3
- package/dist/node_modules/lodash-es/_baseMap.js +8 -7
- package/dist/node_modules/lodash-es/_baseMatches.js +10 -9
- package/dist/node_modules/lodash-es/_baseMatchesProperty.js +15 -14
- package/dist/node_modules/lodash-es/_baseMerge.js +16 -15
- package/dist/node_modules/lodash-es/_baseMergeDeep.js +24 -23
- package/dist/node_modules/lodash-es/_baseOrderBy.js +23 -22
- package/dist/node_modules/lodash-es/_basePick.js +8 -7
- package/dist/node_modules/lodash-es/_basePickBy.js +9 -8
- package/dist/node_modules/lodash-es/_baseProperty.js +4 -3
- package/dist/node_modules/lodash-es/_basePropertyDeep.js +6 -5
- package/dist/node_modules/lodash-es/_baseRange.js +6 -5
- package/dist/node_modules/lodash-es/_baseReduce.js +4 -3
- package/dist/node_modules/lodash-es/_baseRest.js +8 -7
- package/dist/node_modules/lodash-es/_baseSet.js +14 -13
- package/dist/node_modules/lodash-es/_baseSetToString.js +10 -8
- package/dist/node_modules/lodash-es/_baseSortBy.js +4 -3
- package/dist/node_modules/lodash-es/_baseTimes.js +4 -3
- package/dist/node_modules/lodash-es/_baseToString.js +13 -12
- package/dist/node_modules/lodash-es/_baseTrim.js +7 -6
- package/dist/node_modules/lodash-es/_baseUnary.js +4 -3
- package/dist/node_modules/lodash-es/_baseUniq.js +17 -16
- package/dist/node_modules/lodash-es/_baseValues.js +6 -5
- package/dist/node_modules/lodash-es/_baseZipObject.js +4 -3
- package/dist/node_modules/lodash-es/_cacheHas.js +4 -3
- package/dist/node_modules/lodash-es/_castFunction.js +6 -5
- package/dist/node_modules/lodash-es/_castPath.js +9 -8
- package/dist/node_modules/lodash-es/_cloneArrayBuffer.js +6 -5
- package/dist/node_modules/lodash-es/_cloneBuffer.js +9 -8
- package/dist/node_modules/lodash-es/_cloneDataView.js +6 -5
- package/dist/node_modules/lodash-es/_cloneRegExp.js +6 -5
- package/dist/node_modules/lodash-es/_cloneSymbol.js +7 -6
- package/dist/node_modules/lodash-es/_cloneTypedArray.js +6 -5
- package/dist/node_modules/lodash-es/_compareAscending.js +6 -5
- package/dist/node_modules/lodash-es/_compareMultiple.js +6 -5
- package/dist/node_modules/lodash-es/_copyArray.js +4 -3
- package/dist/node_modules/lodash-es/_copyObject.js +7 -6
- package/dist/node_modules/lodash-es/_copySymbols.js +7 -6
- package/dist/node_modules/lodash-es/_copySymbolsIn.js +7 -6
- package/dist/node_modules/lodash-es/_coreJsData.js +5 -3
- package/dist/node_modules/lodash-es/_createAssigner.js +8 -7
- package/dist/node_modules/lodash-es/_createBaseEach.js +6 -5
- package/dist/node_modules/lodash-es/_createBaseFor.js +4 -3
- package/dist/node_modules/lodash-es/_createFind.js +10 -9
- package/dist/node_modules/lodash-es/_createRange.js +8 -7
- package/dist/node_modules/lodash-es/_createSet.js +9 -7
- package/dist/node_modules/lodash-es/_defineProperty.js +6 -4
- package/dist/node_modules/lodash-es/_equalArrays.js +12 -11
- package/dist/node_modules/lodash-es/_equalByTag.js +29 -28
- package/dist/node_modules/lodash-es/_equalObjects.js +9 -8
- package/dist/node_modules/lodash-es/_flatRest.js +8 -7
- package/dist/node_modules/lodash-es/_freeGlobal.js +4 -2
- package/dist/node_modules/lodash-es/_getAllKeys.js +8 -7
- package/dist/node_modules/lodash-es/_getAllKeysIn.js +8 -7
- package/dist/node_modules/lodash-es/_getMapData.js +6 -5
- package/dist/node_modules/lodash-es/_getMatchData.js +8 -7
- package/dist/node_modules/lodash-es/_getNative.js +8 -7
- package/dist/node_modules/lodash-es/_getPrototype.js +5 -3
- package/dist/node_modules/lodash-es/_getRawTag.js +10 -9
- package/dist/node_modules/lodash-es/_getSymbols.js +9 -7
- package/dist/node_modules/lodash-es/_getSymbolsIn.js +10 -8
- package/dist/node_modules/lodash-es/_getTag.js +21 -19
- package/dist/node_modules/lodash-es/_getValue.js +4 -3
- package/dist/node_modules/lodash-es/_hasPath.js +13 -12
- package/dist/node_modules/lodash-es/_hasUnicode.js +6 -5
- package/dist/node_modules/lodash-es/_hashClear.js +6 -5
- package/dist/node_modules/lodash-es/_hashDelete.js +5 -4
- package/dist/node_modules/lodash-es/_hashGet.js +9 -8
- package/dist/node_modules/lodash-es/_hashHas.js +7 -6
- package/dist/node_modules/lodash-es/_hashSet.js +7 -6
- package/dist/node_modules/lodash-es/_initCloneArray.js +6 -5
- package/dist/node_modules/lodash-es/_initCloneByTag.js +29 -28
- package/dist/node_modules/lodash-es/_initCloneObject.js +8 -7
- package/dist/node_modules/lodash-es/_isFlattenable.js +9 -8
- package/dist/node_modules/lodash-es/_isIndex.js +6 -5
- package/dist/node_modules/lodash-es/_isIterateeCall.js +10 -9
- package/dist/node_modules/lodash-es/_isKey.js +9 -8
- package/dist/node_modules/lodash-es/_isKeyable.js +4 -3
- package/dist/node_modules/lodash-es/_isMasked.js +9 -8
- package/dist/node_modules/lodash-es/_isPrototype.js +6 -5
- package/dist/node_modules/lodash-es/_isStrictComparable.js +6 -5
- package/dist/node_modules/lodash-es/_listCacheClear.js +4 -3
- package/dist/node_modules/lodash-es/_listCacheDelete.js +8 -7
- package/dist/node_modules/lodash-es/_listCacheGet.js +6 -5
- package/dist/node_modules/lodash-es/_listCacheHas.js +6 -5
- package/dist/node_modules/lodash-es/_listCacheSet.js +6 -5
- package/dist/node_modules/lodash-es/_mapCacheClear.js +10 -9
- package/dist/node_modules/lodash-es/_mapCacheDelete.js +7 -6
- package/dist/node_modules/lodash-es/_mapCacheGet.js +6 -5
- package/dist/node_modules/lodash-es/_mapCacheHas.js +6 -5
- package/dist/node_modules/lodash-es/_mapCacheSet.js +6 -5
- package/dist/node_modules/lodash-es/_mapToArray.js +4 -3
- package/dist/node_modules/lodash-es/_matchesStrictComparable.js +4 -3
- package/dist/node_modules/lodash-es/_memoizeCapped.js +8 -7
- package/dist/node_modules/lodash-es/_nativeCreate.js +5 -3
- package/dist/node_modules/lodash-es/_nativeKeys.js +5 -3
- package/dist/node_modules/lodash-es/_nativeKeysIn.js +4 -3
- package/dist/node_modules/lodash-es/_nodeUtil.js +6 -4
- package/dist/node_modules/lodash-es/_objectToString.js +6 -5
- package/dist/node_modules/lodash-es/_overArg.js +4 -3
- package/dist/node_modules/lodash-es/_overRest.js +9 -8
- package/dist/node_modules/lodash-es/_root.js +5 -3
- package/dist/node_modules/lodash-es/_safeGet.js +4 -3
- package/dist/node_modules/lodash-es/_setCacheAdd.js +6 -5
- package/dist/node_modules/lodash-es/_setCacheHas.js +4 -3
- package/dist/node_modules/lodash-es/_setToArray.js +4 -3
- package/dist/node_modules/lodash-es/_setToString.js +6 -4
- package/dist/node_modules/lodash-es/_shortOut.js +7 -6
- package/dist/node_modules/lodash-es/_stackClear.js +6 -5
- package/dist/node_modules/lodash-es/_stackDelete.js +4 -3
- package/dist/node_modules/lodash-es/_stackGet.js +4 -3
- package/dist/node_modules/lodash-es/_stackHas.js +4 -3
- package/dist/node_modules/lodash-es/_stackSet.js +11 -10
- package/dist/node_modules/lodash-es/_strictIndexOf.js +4 -3
- package/dist/node_modules/lodash-es/_stringSize.js +8 -7
- package/dist/node_modules/lodash-es/_stringToPath.js +7 -5
- package/dist/node_modules/lodash-es/_toKey.js +8 -7
- package/dist/node_modules/lodash-es/_toSource.js +8 -7
- package/dist/node_modules/lodash-es/_trimmedEndIndex.js +6 -5
- package/dist/node_modules/lodash-es/_unicodeSize.js +17 -16
- package/dist/node_modules/lodash-es/clone.js +7 -6
- package/dist/node_modules/lodash-es/cloneDeep.js +7 -6
- package/dist/node_modules/lodash-es/constant.js +4 -3
- package/dist/node_modules/lodash-es/defaults.js +13 -11
- package/dist/node_modules/lodash-es/eq.js +4 -3
- package/dist/node_modules/lodash-es/filter.js +9 -8
- package/dist/node_modules/lodash-es/find.js +6 -4
- package/dist/node_modules/lodash-es/findIndex.js +10 -9
- package/dist/node_modules/lodash-es/flatMap.js +7 -6
- package/dist/node_modules/lodash-es/flatten.js +6 -5
- package/dist/node_modules/lodash-es/forEach.js +9 -8
- package/dist/node_modules/lodash-es/forIn.js +8 -7
- package/dist/node_modules/lodash-es/forOwn.js +7 -6
- package/dist/node_modules/lodash-es/get.js +6 -5
- package/dist/node_modules/lodash-es/has.js +7 -6
- package/dist/node_modules/lodash-es/hasIn.js +7 -6
- package/dist/node_modules/lodash-es/identity.js +4 -3
- package/dist/node_modules/lodash-es/isArguments.js +8 -6
- package/dist/node_modules/lodash-es/isArray.js +4 -2
- package/dist/node_modules/lodash-es/isArrayLike.js +7 -6
- package/dist/node_modules/lodash-es/isArrayLikeObject.js +7 -6
- package/dist/node_modules/lodash-es/isBuffer.js +6 -4
- package/dist/node_modules/lodash-es/isEmpty.js +18 -17
- package/dist/node_modules/lodash-es/isFunction.js +10 -9
- package/dist/node_modules/lodash-es/isLength.js +6 -5
- package/dist/node_modules/lodash-es/isMap.js +7 -5
- package/dist/node_modules/lodash-es/isObject.js +4 -3
- package/dist/node_modules/lodash-es/isObjectLike.js +4 -3
- package/dist/node_modules/lodash-es/isPlainObject.js +13 -12
- package/dist/node_modules/lodash-es/isSet.js +7 -5
- package/dist/node_modules/lodash-es/isString.js +9 -8
- package/dist/node_modules/lodash-es/isSymbol.js +8 -7
- package/dist/node_modules/lodash-es/isTypedArray.js +7 -5
- package/dist/node_modules/lodash-es/isUndefined.js +4 -3
- package/dist/node_modules/lodash-es/keys.js +8 -7
- package/dist/node_modules/lodash-es/keysIn.js +8 -7
- package/dist/node_modules/lodash-es/last.js +4 -3
- package/dist/node_modules/lodash-es/map.js +9 -8
- package/dist/node_modules/lodash-es/mapValues.js +9 -8
- package/dist/node_modules/lodash-es/max.js +8 -7
- package/dist/node_modules/lodash-es/memoize.js +9 -8
- package/dist/node_modules/lodash-es/merge.js +7 -5
- package/dist/node_modules/lodash-es/min.js +8 -7
- package/dist/node_modules/lodash-es/minBy.js +8 -7
- package/dist/node_modules/lodash-es/noop.js +4 -3
- package/dist/node_modules/lodash-es/now.js +6 -4
- package/dist/node_modules/lodash-es/pick.js +7 -5
- package/dist/node_modules/lodash-es/property.js +9 -8
- package/dist/node_modules/lodash-es/range.js +5 -3
- package/dist/node_modules/lodash-es/reduce.js +11 -10
- package/dist/node_modules/lodash-es/size.js +13 -12
- package/dist/node_modules/lodash-es/sortBy.js +9 -7
- package/dist/node_modules/lodash-es/stubArray.js +4 -3
- package/dist/node_modules/lodash-es/stubFalse.js +4 -3
- package/dist/node_modules/lodash-es/toFinite.js +7 -6
- package/dist/node_modules/lodash-es/toInteger.js +6 -5
- package/dist/node_modules/lodash-es/toNumber.js +14 -13
- package/dist/node_modules/lodash-es/toPlainObject.js +7 -6
- package/dist/node_modules/lodash-es/toString.js +6 -5
- package/dist/node_modules/lodash-es/union.js +9 -7
- package/dist/node_modules/lodash-es/uniqBy.js +7 -6
- package/dist/node_modules/lodash-es/uniqueId.js +8 -7
- package/dist/node_modules/lodash-es/values.js +7 -6
- package/dist/node_modules/lodash-es/zipObject.js +7 -6
- package/dist/node_modules/longest-streak/index.js +4 -2
- package/dist/node_modules/markdown-table/index.js +11 -9
- package/dist/node_modules/marked/lib/marked.esm.js +687 -685
- package/dist/node_modules/mdast-util-find-and-replace/lib/index.js +14 -12
- package/dist/node_modules/mdast-util-find-and-replace/node_modules/escape-string-regexp/index.js +4 -2
- package/dist/node_modules/mdast-util-from-markdown/lib/index.js +182 -180
- package/dist/node_modules/mdast-util-gfm/lib/index.js +20 -18
- package/dist/node_modules/mdast-util-gfm-autolink-literal/lib/index.js +69 -67
- package/dist/node_modules/mdast-util-gfm-footnote/lib/index.js +47 -45
- package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.js +15 -13
- package/dist/node_modules/mdast-util-gfm-table/lib/index.js +30 -28
- package/dist/node_modules/mdast-util-gfm-task-list-item/lib/index.js +16 -14
- package/dist/node_modules/mdast-util-math/lib/index.js +15 -13
- package/dist/node_modules/mdast-util-phrasing/lib/index.js +5 -3
- package/dist/node_modules/mdast-util-to-hast/lib/footer.js +11 -9
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/break.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/delete.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js +6 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/heading.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/html.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js +8 -6
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/image.js +6 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/index.js +55 -53
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js +8 -6
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/link.js +6 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/list-item.js +15 -13
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/list.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/root.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/strong.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-row.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table.js +6 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.js +6 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/index.js +8 -6
- package/dist/node_modules/mdast-util-to-hast/lib/revert.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/state.js +61 -59
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js +6 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.js +6 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.js +18 -16
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/definition.js +6 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js +14 -12
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.js +8 -6
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/html.js +6 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js +6 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/image.js +8 -6
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/index.js +43 -41
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js +7 -5
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js +6 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.js +11 -9
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/list-item.js +7 -5
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/list.js +12 -10
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js +4 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.js +6 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.js +14 -12
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.js +4 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js +7 -5
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js +4 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js +6 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js +4 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js +4 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-fence.js +4 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js +4 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-quote.js +4 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js +4 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule.js +4 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-strong.js +4 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js +4 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-info.js +6 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js +4 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js +8 -7
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js +6 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js +6 -4
- package/dist/node_modules/mdast-util-to-string/lib/index.js +14 -12
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/architectureDiagram-Q4EWVU46.js +695 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-DXYQGD6D.js +3038 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{c4Diagram-YG6GDRKO.js → c4Diagram-AHTNJAMY.js} +581 -573
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-336JU56O.js +49 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-426QAEUC.js +11 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-4BX2VUAB.js +6 -4
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-B4BG7PRW.js → chunk-4TB4RGXK.js} +590 -444
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-55IACEB6.js +7 -5
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-5FUZZQ4R.js +3640 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-5PVQY5BW.js +342 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-AGHRB4JF.js +22 -20
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-BSJP7CBP.js +82 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-EDXVE4YY.js +25 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ENJZ2VHE.js +570 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-FMBD7UC4.js +5 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ICPOFSXX.js +2348 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-OYMX7WX6.js +2014 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-QZHKN3VN.js +8 -4
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-U2HBQHQK.js +274 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-X2U36JSP.js +67 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-XPW4576I.js +1146 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-YZCP3GAM.js +62 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ZZ45TVLE.js +32 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-6PBFFD2Q.js +29 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-HSJHXN6E.js +29 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/cose-bilkent-S5V4N54A.js +116 -114
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/dagre-KV5264BT.js +265 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-5BDNPKRD.js +101 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-G4DWMVQ6.js +284 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-MMDJMWI5.js +213 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-TYMM5635.js +133 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{erDiagram-Q2GNP2WA.js → erDiagram-SMLLAGMA.js} +549 -445
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{flowDiagram-NV44I4VS.js → flowDiagram-DWJPFMVM.js} +1366 -1345
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-T4ZO3ILL.js +1720 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-UUTBAWPF.js +730 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/infoDiagram-42DDH7IO.js +19 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ishikawaDiagram-UXIWVN3A.js +718 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/journeyDiagram-VCZTEJTY.js +885 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{kanban-definition-3W4ZIXB7.js → kanban-definition-6JOO6SKY.js} +124 -118
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{mindmap-definition-VGOIOE7T.js → mindmap-definition-QFDTVHPH.js} +172 -122
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/pieDiagram-DEJITSTG.js +119 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{quadrantDiagram-AYHSOK5B.js → quadrantDiagram-34T5L4WZ.js} +279 -273
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{requirementDiagram-UZGBJVZJ.js → requirementDiagram-MS252O5E.js} +100 -66
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sankeyDiagram-XADWPNL6.js +529 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-FGHM5R23.js +4159 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-FHFEXIEX.js +222 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-QKLJ7IA2.js +27 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-GMOUNBTQ.js +1073 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/vennDiagram-DHZGUBPP.js +961 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/wardleyDiagram-NUSXRM2D.js +578 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/xychartDiagram-5P7HB3ND.js +2000 -0
- package/dist/node_modules/mermaid/dist/mermaid.core.js +492 -445
- package/dist/node_modules/micromark/lib/constructs.js +80 -79
- package/dist/node_modules/micromark/lib/create-tokenizer.js +14 -12
- package/dist/node_modules/micromark/lib/initialize/content.js +9 -7
- package/dist/node_modules/micromark/lib/initialize/document.js +15 -14
- package/dist/node_modules/micromark/lib/initialize/flow.js +9 -7
- package/dist/node_modules/micromark/lib/initialize/text.js +8 -6
- package/dist/node_modules/micromark/lib/parse.js +20 -18
- package/dist/node_modules/micromark/lib/postprocess.js +6 -4
- package/dist/node_modules/micromark/lib/preprocess.js +6 -4
- package/dist/node_modules/micromark-core-commonmark/lib/attention.js +20 -18
- package/dist/node_modules/micromark-core-commonmark/lib/autolink.js +17 -15
- package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js +11 -9
- package/dist/node_modules/micromark-core-commonmark/lib/block-quote.js +15 -13
- package/dist/node_modules/micromark-core-commonmark/lib/character-escape.js +8 -6
- package/dist/node_modules/micromark-core-commonmark/lib/character-reference.js +16 -14
- package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.js +22 -21
- package/dist/node_modules/micromark-core-commonmark/lib/code-indented.js +16 -15
- package/dist/node_modules/micromark-core-commonmark/lib/code-text.js +13 -11
- package/dist/node_modules/micromark-core-commonmark/lib/content.js +18 -17
- package/dist/node_modules/micromark-core-commonmark/lib/definition.js +30 -29
- package/dist/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +8 -6
- package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.js +15 -13
- package/dist/node_modules/micromark-core-commonmark/lib/html-flow.js +68 -67
- package/dist/node_modules/micromark-core-commonmark/lib/html-text.js +66 -64
- package/dist/node_modules/micromark-core-commonmark/lib/label-end.js +112 -111
- package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.js +8 -6
- package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.js +8 -6
- package/dist/node_modules/micromark-core-commonmark/lib/line-ending.js +8 -6
- package/dist/node_modules/micromark-core-commonmark/lib/list.js +32 -31
- package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.js +12 -10
- package/dist/node_modules/micromark-core-commonmark/lib/thematic-break.js +11 -9
- package/dist/node_modules/micromark-extension-gfm/index.js +16 -14
- package/dist/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js +122 -120
- package/dist/node_modules/micromark-extension-gfm-footnote/lib/syntax.js +33 -31
- package/dist/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js +11 -9
- package/dist/node_modules/micromark-extension-gfm-table/lib/edit-map.js +6 -4
- package/dist/node_modules/micromark-extension-gfm-table/lib/infer.js +4 -2
- package/dist/node_modules/micromark-extension-gfm-table/lib/syntax.js +36 -34
- package/dist/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js +20 -18
- package/dist/node_modules/micromark-extension-math/lib/math-flow.js +21 -20
- package/dist/node_modules/micromark-extension-math/lib/math-text.js +11 -9
- package/dist/node_modules/micromark-extension-math/lib/syntax.js +8 -6
- package/dist/node_modules/micromark-factory-destination/index.js +10 -8
- package/dist/node_modules/micromark-factory-label/index.js +7 -5
- package/dist/node_modules/micromark-factory-space/index.js +7 -5
- package/dist/node_modules/micromark-factory-title/index.js +8 -6
- package/dist/node_modules/micromark-factory-whitespace/index.js +7 -5
- package/dist/node_modules/micromark-util-character/index.js +14 -12
- package/dist/node_modules/micromark-util-chunked/index.js +6 -4
- package/dist/node_modules/micromark-util-classify-character/index.js +7 -5
- package/dist/node_modules/micromark-util-combine-extensions/index.js +13 -11
- package/dist/node_modules/micromark-util-decode-numeric-character-reference/index.js +4 -2
- package/dist/node_modules/micromark-util-decode-string/index.js +11 -9
- package/dist/node_modules/micromark-util-html-tag-name/index.js +4 -2
- package/dist/node_modules/micromark-util-normalize-identifier/index.js +4 -2
- package/dist/node_modules/micromark-util-resolve-all/index.js +4 -2
- package/dist/node_modules/micromark-util-sanitize-uri/index.js +6 -4
- package/dist/node_modules/micromark-util-subtokenize/index.js +10 -8
- package/dist/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +10 -8
- package/dist/node_modules/motion/dist/es/react.js +2 -2
- package/dist/node_modules/nanoid/index.browser.js +6 -4
- package/dist/node_modules/nanoid/url-alphabet/index.js +4 -2
- package/dist/node_modules/property-information/index.js +25 -23
- package/dist/node_modules/property-information/lib/aria.js +41 -39
- package/dist/node_modules/property-information/lib/find.js +18 -16
- package/dist/node_modules/property-information/lib/hast-to-react.js +4 -2
- package/dist/node_modules/property-information/lib/html.js +96 -94
- package/dist/node_modules/property-information/lib/normalize.js +4 -2
- package/dist/node_modules/property-information/lib/svg.js +79 -77
- package/dist/node_modules/property-information/lib/util/case-insensitive-transform.js +6 -4
- package/dist/node_modules/property-information/lib/util/case-sensitive-transform.js +4 -2
- package/dist/node_modules/property-information/lib/util/create.js +10 -8
- package/dist/node_modules/property-information/lib/util/defined-info.js +13 -11
- package/dist/node_modules/property-information/lib/util/info.js +5 -3
- package/dist/node_modules/property-information/lib/util/merge.js +6 -4
- package/dist/node_modules/property-information/lib/util/schema.js +5 -3
- package/dist/node_modules/property-information/lib/util/types.js +15 -14
- package/dist/node_modules/property-information/lib/xlink.js +5 -3
- package/dist/node_modules/property-information/lib/xml.js +5 -3
- package/dist/node_modules/property-information/lib/xmlns.js +7 -5
- package/dist/node_modules/rehype-harden/dist/index.js +47 -45
- package/dist/node_modules/rehype-katex/lib/index.js +25 -23
- package/dist/node_modules/rehype-raw/lib/index.js +6 -4
- package/dist/node_modules/rehype-sanitize/lib/index.js +6 -4
- package/dist/node_modules/remark-gfm/lib/index.js +9 -7
- package/dist/node_modules/remark-math/lib/index.js +9 -7
- package/dist/node_modules/remark-parse/lib/index.js +6 -4
- package/dist/node_modules/remark-rehype/lib/index.js +7 -5
- package/dist/node_modules/remend/dist/index.js +368 -297
- package/dist/node_modules/roughjs/bundled/rough.esm.js +877 -875
- package/dist/node_modules/shiki/dist/bundle-full.js +13 -11
- package/dist/node_modules/shiki/dist/chunk-CtajNgzt.js +17 -0
- package/dist/node_modules/shiki/dist/engine-oniguruma.js +7 -0
- package/dist/node_modules/shiki/dist/{langs.js → langs-bundle-full-DfKZStlK.js} +8 -6
- package/dist/node_modules/shiki/dist/themes.js +6 -4
- package/dist/node_modules/shiki/dist/wasm.js +2 -2
- package/dist/node_modules/space-separated-tokens/index.js +5 -3
- package/dist/node_modules/streamdown/dist/chunk-BO2N2NFS.js +2500 -0
- package/dist/node_modules/streamdown/dist/highlighted-body-OFNGDK62.js +37 -0
- package/dist/node_modules/streamdown/dist/index.js +1 -1
- package/dist/node_modules/streamdown/dist/mermaid-GHXKKRXX.js +3 -0
- package/dist/node_modules/streamdown/node_modules/marked/lib/marked.esm.js +701 -699
- package/dist/node_modules/stringify-entities/lib/constant/dangerous.js +4 -2
- package/dist/node_modules/stringify-entities/lib/core.js +18 -16
- package/dist/node_modules/stringify-entities/lib/index.js +7 -5
- package/dist/node_modules/stringify-entities/lib/util/format-smart.js +10 -8
- package/dist/node_modules/stringify-entities/lib/util/to-decimal.js +6 -4
- package/dist/node_modules/stringify-entities/lib/util/to-hexadecimal.js +6 -4
- package/dist/node_modules/stringify-entities/lib/util/to-named.js +14 -12
- package/dist/node_modules/style-to-js/cjs/index.js +9 -7
- package/dist/node_modules/style-to-js/cjs/utilities.js +6 -4
- package/dist/node_modules/style-to-object/cjs/index.js +8 -6
- package/dist/node_modules/stylis/src/Enum.js +4 -2
- package/dist/node_modules/stylis/src/Parser.js +38 -36
- package/dist/node_modules/stylis/src/Serializer.js +17 -15
- package/dist/node_modules/stylis/src/Tokenizer.js +53 -51
- package/dist/node_modules/stylis/src/Utility.js +17 -15
- package/dist/node_modules/trim-lines/index.js +10 -8
- package/dist/node_modules/trough/lib/index.js +6 -4
- package/dist/node_modules/ts-dedent/esm/index.js +4 -2
- package/dist/node_modules/unified/lib/callable-instance.js +4 -2
- package/dist/node_modules/unified/lib/index.js +102 -101
- package/dist/node_modules/unified/node_modules/is-plain-obj/index.js +4 -2
- package/dist/node_modules/unist-util-find-after/lib/index.js +6 -4
- package/dist/node_modules/unist-util-is/lib/index.js +31 -29
- package/dist/node_modules/unist-util-position/lib/index.js +7 -5
- package/dist/node_modules/unist-util-stringify-position/lib/index.js +10 -8
- package/dist/node_modules/unist-util-visit/lib/index.js +6 -4
- package/dist/node_modules/unist-util-visit-parents/lib/color.js +4 -2
- package/dist/node_modules/unist-util-visit-parents/lib/index.js +21 -20
- package/dist/node_modules/uuid/dist/esm-browser/native.js +3 -2
- package/dist/node_modules/uuid/dist/esm-browser/rng.js +8 -6
- package/dist/node_modules/uuid/dist/esm-browser/stringify.js +7 -5
- package/dist/node_modules/uuid/dist/esm-browser/v4.js +10 -9
- package/dist/node_modules/vaul/dist/index.js +276 -274
- package/dist/node_modules/vfile/lib/index.js +44 -42
- package/dist/node_modules/vfile/lib/minpath.browser.js +22 -20
- package/dist/node_modules/vfile/lib/minproc.browser.js +5 -3
- package/dist/node_modules/vfile/lib/minurl.browser.js +8 -6
- package/dist/node_modules/vfile/lib/minurl.shared.js +4 -2
- package/dist/node_modules/vfile-location/lib/index.js +7 -5
- package/dist/node_modules/vfile-message/lib/index.js +7 -5
- package/dist/node_modules/vscode-jsonrpc/browser.js +8 -6
- package/dist/node_modules/vscode-jsonrpc/lib/browser/main.js +11 -9
- package/dist/node_modules/vscode-jsonrpc/lib/browser/ril.js +8 -6
- package/dist/node_modules/vscode-jsonrpc/lib/common/api.js +28 -26
- package/dist/node_modules/vscode-jsonrpc/lib/common/cancellation.js +17 -15
- package/dist/node_modules/vscode-jsonrpc/lib/common/connection.js +13 -11
- package/dist/node_modules/vscode-jsonrpc/lib/common/disposable.js +6 -4
- package/dist/node_modules/vscode-jsonrpc/lib/common/events.js +8 -6
- package/dist/node_modules/vscode-jsonrpc/lib/common/is.js +6 -4
- package/dist/node_modules/vscode-jsonrpc/lib/common/linkedMap.js +6 -4
- package/dist/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js +6 -4
- package/dist/node_modules/vscode-jsonrpc/lib/common/messageReader.js +11 -9
- package/dist/node_modules/vscode-jsonrpc/lib/common/messageWriter.js +31 -29
- package/dist/node_modules/vscode-jsonrpc/lib/common/messages.js +8 -6
- package/dist/node_modules/vscode-jsonrpc/lib/common/ral.js +6 -4
- package/dist/node_modules/vscode-jsonrpc/lib/common/semaphore.js +8 -6
- package/dist/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/browser/main.js +10 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/api.js +23 -21
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/connection.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/messages.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js +14 -12
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.js +55 -53
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.js +10 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js +12 -10
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js +6 -4
- package/dist/node_modules/vscode-languageserver-textdocument/lib/esm/main.js +21 -19
- package/dist/node_modules/vscode-languageserver-types/lib/esm/main.js +849 -847
- package/dist/node_modules/vscode-uri/lib/esm/index.js +6 -4
- package/dist/node_modules/web-namespaces/index.js +4 -2
- package/dist/node_modules/zwitch/index.js +7 -5
- package/dist/packages/contracts/dist/enums/index.js +21 -20
- package/dist/packages/contracts/dist/enums/registry.enum.js +6 -4
- package/dist/packages/contracts/dist/enums/sort-order.enum.js +6 -4
- package/dist/packages/contracts/dist/enums/user-type.enum.js +6 -4
- package/dist/packages/contracts/dist/enums/workflow-state.enum.js +7 -5
- package/dist/pages/DashboardPage.js +55 -99
- package/dist/pages/DebugPage.js +12 -17
- package/dist/pages/DebugWorkflowDetailsPage.js +91 -119
- package/dist/pages/DebugWorkflowsPage.js +44 -42
- package/dist/pages/EmbedWorkbenchPage.js +49 -73
- package/dist/pages/PreviewWorkbenchPage.js +242 -448
- package/dist/pages/RunsListPage.js +44 -61
- package/dist/pages/RunsPage.js +31 -48
- package/dist/pages/StudioLandingPage.js +97 -132
- package/dist/pages/WorkbenchPage.js +56 -86
- package/dist/pages/WorkflowDebugPage.js +78 -0
- package/dist/pages/WorkspacePage.js +72 -113
- package/dist/pages/WorkspaceRunsPage.js +43 -70
- package/dist/pages/WorkspacesPage.js +24 -35
- package/dist/providers/ComponentOverridesProvider.js +9 -12
- package/dist/providers/InvalidationEventsProvider.js +33 -35
- package/dist/providers/QueryProvider.js +14 -18
- package/dist/providers/SseProvider.js +28 -30
- package/dist/providers/StudioProvider.js +14 -19
- package/dist/routing/LocalRouter.js +20 -26
- package/dist/services/createApiClient.js +7 -5
- package/dist/services/eventEmitter.js +3 -2
- package/dist/services/index.js +2 -2
- package/dist/types/ai.types.js +7 -5
- package/package.json +33 -33
- package/dist/_virtual/rolldown_runtime.js +0 -20
- package/dist/api/namespaces.js +0 -7
- package/dist/api/pipelines.js +0 -13
- package/dist/components/ai-elements/tool.js +0 -158
- package/dist/components/ui-widgets/widgets/SecretInput.js +0 -42
- package/dist/features/debug/components/PipelineDebugHeader.js +0 -48
- package/dist/features/debug/components/PipelineDebugLegend.js +0 -68
- package/dist/features/debug/components/PipelineFlowViewer.js +0 -110
- package/dist/features/debug/components/pipeline-flow/StateNode.js +0 -111
- package/dist/features/debug/components/pipeline-flow/WorkflowGraph.js +0 -41
- package/dist/features/debug/components/pipeline-flow/WorkflowTransitionEdge.js +0 -97
- package/dist/features/workbench/NavigationItems.js +0 -52
- package/dist/features/workbench/WorkbenchNavigation.js +0 -38
- package/dist/features/workbench/components/NavigationItem.js +0 -68
- package/dist/features/workbench/components/PipelineHistoryList.js +0 -56
- package/dist/features/workbench/hooks/useIntersectionObserver.js +0 -44
- package/dist/features/workspaces/components/NewPipelineRunDialog.js +0 -31
- package/dist/features/workspaces/components/PipelineForm.js +0 -152
- package/dist/features/workspaces/components/pipeline-form/ArgumentsView.js +0 -75
- package/dist/features/workspaces/components/pipeline-form/HeaderSection.js +0 -43
- package/dist/features/workspaces/components/pipeline-form/SelectionView.js +0 -105
- package/dist/hooks/useNamespaceTree.js +0 -27
- package/dist/hooks/useNamespaces.js +0 -25
- package/dist/hooks/usePipelines.js +0 -161
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/architecture-7HQA4BMR.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-4F5CHEZ2.js +0 -23
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-B2363JML.js +0 -60
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-FRFDVMJY.js +0 -23
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-PL6DKKU2.js +0 -28
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-SJTYNZTY.js +0 -23
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-TCCFYFTB.js +0 -787
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-TQ3KTPDO.js +0 -23
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-UMXZTB3W.js +0 -30
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/gitGraph-G5XIXVHT.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-VBDWY6EO.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-DYOGHKS2.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-VRWISCQL.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-ZZBFDIW7.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-GDKQZRPO.js +0 -3
- package/dist/node_modules/@ungap/structured-clone/esm/types.js +0 -2
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/context_assist.js +0 -16
- package/dist/node_modules/langium/lib/index.js +0 -182
- package/dist/node_modules/langium/lib/parser/indentation-aware.js +0 -141
- package/dist/node_modules/langium/lib/utils/index.js +0 -53
- package/dist/node_modules/langium/lib/workspace/profiler.js +0 -89
- package/dist/node_modules/lodash/_Symbol.js +0 -7
- package/dist/node_modules/lodash/_baseGetTag.js +0 -13
- package/dist/node_modules/lodash/_baseTrim.js +0 -11
- package/dist/node_modules/lodash/_freeGlobal.js +0 -6
- package/dist/node_modules/lodash/_getRawTag.js +0 -17
- package/dist/node_modules/lodash/_objectToString.js +0 -10
- package/dist/node_modules/lodash/_root.js +0 -8
- package/dist/node_modules/lodash/_trimmedEndIndex.js +0 -11
- package/dist/node_modules/lodash/isObject.js +0 -10
- package/dist/node_modules/lodash/isObjectLike.js +0 -9
- package/dist/node_modules/lodash/isSymbol.js +0 -12
- package/dist/node_modules/lodash/now.js +0 -10
- package/dist/node_modules/lodash/toNumber.js +0 -22
- package/dist/node_modules/lodash-es/_arrayAggregator.js +0 -9
- package/dist/node_modules/lodash-es/_arrayEvery.js +0 -6
- package/dist/node_modules/lodash-es/_baseAggregator.js +0 -8
- package/dist/node_modules/lodash-es/_baseDifference.js +0 -22
- package/dist/node_modules/lodash-es/_baseEvery.js +0 -9
- package/dist/node_modules/lodash-es/_baseIsRegExp.js +0 -8
- package/dist/node_modules/lodash-es/_baseSlice.js +0 -8
- package/dist/node_modules/lodash-es/_baseSome.js +0 -9
- package/dist/node_modules/lodash-es/_createAggregator.js +0 -12
- package/dist/node_modules/lodash-es/assign.js +0 -14
- package/dist/node_modules/lodash-es/compact.js +0 -9
- package/dist/node_modules/lodash-es/difference.js +0 -8
- package/dist/node_modules/lodash-es/drop.js +0 -8
- package/dist/node_modules/lodash-es/dropRight.js +0 -8
- package/dist/node_modules/lodash-es/every.js +0 -11
- package/dist/node_modules/lodash-es/groupBy.js +0 -6
- package/dist/node_modules/lodash-es/head.js +0 -5
- package/dist/node_modules/lodash-es/includes.js +0 -13
- package/dist/node_modules/lodash-es/indexOf.js +0 -11
- package/dist/node_modules/lodash-es/isRegExp.js +0 -5
- package/dist/node_modules/lodash-es/negate.js +0 -16
- package/dist/node_modules/lodash-es/pickBy.js +0 -15
- package/dist/node_modules/lodash-es/reject.js +0 -10
- package/dist/node_modules/lodash-es/some.js +0 -11
- package/dist/node_modules/lodash-es/uniq.js +0 -6
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/architectureDiagram-VXUJARFQ.js +0 -673
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-VD42YOAC.js +0 -3010
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ABZYJK2D.js +0 -1547
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ATLVNIR6.js +0 -65
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-CVBHYZKI.js +0 -10
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-DI55MBZ5.js +0 -1994
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-DR5Q36YT.js +0 -135
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-EXTU4WIE.js +0 -9
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-HN2XXSSU.js +0 -74
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-JA3XYJ7Z.js +0 -247
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-JZLCHNYA.js +0 -3516
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-MI3HLSF2.js +0 -1140
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-N4CR4FBY.js +0 -39
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-QN33PNHL.js +0 -23
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-QXUST7PY.js +0 -497
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-S3R3BYOJ.js +0 -338
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-TZMSLE5B.js +0 -55
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-2ON5EDUG.js +0 -26
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-WZHVMYZB.js +0 -26
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/dagre-6UL2VRFP.js +0 -263
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-PSM6KHXK.js +0 -283
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-QEK2KX5R.js +0 -211
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-S2PKOQOG.js +0 -129
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-JELNMOA3.js +0 -1688
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-V2S2FVAM.js +0 -621
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/infoDiagram-HS3SLOUP.js +0 -18
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/journeyDiagram-XKPGCS4Q.js +0 -883
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/pieDiagram-ADFJNKIX.js +0 -117
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sankeyDiagram-TZEHDZUN.js +0 -519
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-WL72ISMW.js +0 -3560
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-FKZM4ZOC.js +0 -220
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-4FDKWEC3.js +0 -25
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-IT6M3QCI.js +0 -833
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/xychartDiagram-PRI3JC2R.js +0 -1975
- package/dist/node_modules/streamdown/dist/chunk-RLXIAIE6.js +0 -2189
- package/dist/node_modules/streamdown/dist/highlighted-body-B3W2YXNL.js +0 -33
- package/dist/node_modules/streamdown/dist/mermaid-3ZIDBTTL.js +0 -3
- package/dist/packages/contracts/dist/enums/pipeline-state.js +0 -10
- package/dist/pages/PipelineDebugPage.js +0 -115
|
@@ -1,199 +1,200 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
//#region ../../node_modules/roughjs/bundled/rough.esm.js
|
|
2
|
+
function e(e, t, n) {
|
|
3
|
+
if (e && e.length) {
|
|
4
|
+
let [r, i] = t, a = Math.PI / 180 * n, o = Math.cos(a), s = Math.sin(a);
|
|
5
|
+
for (let t of e) {
|
|
6
|
+
let [e, n] = t;
|
|
7
|
+
t[0] = (e - r) * o - (n - i) * s + r, t[1] = (e - r) * s + (n - i) * o + i;
|
|
7
8
|
}
|
|
8
9
|
}
|
|
9
10
|
}
|
|
10
|
-
function e
|
|
11
|
-
return
|
|
11
|
+
function t(e, t) {
|
|
12
|
+
return e[0] === t[0] && e[1] === t[1];
|
|
12
13
|
}
|
|
13
|
-
function
|
|
14
|
-
let
|
|
15
|
-
if (
|
|
16
|
-
let
|
|
17
|
-
let
|
|
18
|
-
for (let
|
|
19
|
-
let
|
|
20
|
-
e
|
|
14
|
+
function n(n, r, i, a = 1) {
|
|
15
|
+
let o = i, s = Math.max(r, .1), c = n[0] && n[0][0] && typeof n[0][0] == "number" ? [n] : n, l = [0, 0];
|
|
16
|
+
if (o) for (let t of c) e(t, l, o);
|
|
17
|
+
let u = function(e, n, r) {
|
|
18
|
+
let i = [];
|
|
19
|
+
for (let n of e) {
|
|
20
|
+
let e = [...n];
|
|
21
|
+
t(e[0], e[e.length - 1]) || e.push([e[0][0], e[0][1]]), e.length > 2 && i.push(e);
|
|
21
22
|
}
|
|
22
|
-
let
|
|
23
|
-
|
|
24
|
-
let
|
|
25
|
-
for (let
|
|
26
|
-
let
|
|
27
|
-
if (
|
|
28
|
-
let
|
|
29
|
-
|
|
30
|
-
ymin:
|
|
31
|
-
ymax: Math.max(
|
|
32
|
-
x:
|
|
33
|
-
islope: (
|
|
23
|
+
let a = [];
|
|
24
|
+
n = Math.max(n, .1);
|
|
25
|
+
let o = [];
|
|
26
|
+
for (let e of i) for (let t = 0; t < e.length - 1; t++) {
|
|
27
|
+
let n = e[t], r = e[t + 1];
|
|
28
|
+
if (n[1] !== r[1]) {
|
|
29
|
+
let e = Math.min(n[1], r[1]);
|
|
30
|
+
o.push({
|
|
31
|
+
ymin: e,
|
|
32
|
+
ymax: Math.max(n[1], r[1]),
|
|
33
|
+
x: e === n[1] ? n[0] : r[0],
|
|
34
|
+
islope: (r[0] - n[0]) / (r[1] - n[1])
|
|
34
35
|
});
|
|
35
36
|
}
|
|
36
37
|
}
|
|
37
|
-
if (
|
|
38
|
-
let
|
|
39
|
-
for (;
|
|
40
|
-
if (
|
|
41
|
-
let
|
|
42
|
-
for (let
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
s:
|
|
46
|
-
edge:
|
|
38
|
+
if (o.sort(((e, t) => e.ymin < t.ymin ? -1 : e.ymin > t.ymin ? 1 : e.x < t.x ? -1 : e.x > t.x ? 1 : e.ymax === t.ymax ? 0 : (e.ymax - t.ymax) / Math.abs(e.ymax - t.ymax))), !o.length) return a;
|
|
39
|
+
let s = [], c = o[0].ymin, l = 0;
|
|
40
|
+
for (; s.length || o.length;) {
|
|
41
|
+
if (o.length) {
|
|
42
|
+
let e = -1;
|
|
43
|
+
for (let t = 0; t < o.length && !(o[t].ymin > c); t++) e = t;
|
|
44
|
+
o.splice(0, e + 1).forEach(((e) => {
|
|
45
|
+
s.push({
|
|
46
|
+
s: c,
|
|
47
|
+
edge: e
|
|
47
48
|
});
|
|
48
49
|
}));
|
|
49
50
|
}
|
|
50
|
-
if (
|
|
51
|
-
let
|
|
52
|
-
if (
|
|
53
|
-
let
|
|
54
|
-
|
|
51
|
+
if (s = s.filter(((e) => !(e.edge.ymax <= c))), s.sort(((e, t) => e.edge.x === t.edge.x ? 0 : (e.edge.x - t.edge.x) / Math.abs(e.edge.x - t.edge.x))), (r !== 1 || l % n == 0) && s.length > 1) for (let e = 0; e < s.length; e += 2) {
|
|
52
|
+
let t = e + 1;
|
|
53
|
+
if (t >= s.length) break;
|
|
54
|
+
let n = s[e].edge, r = s[t].edge;
|
|
55
|
+
a.push([[Math.round(n.x), c], [Math.round(r.x), c]]);
|
|
55
56
|
}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
})),
|
|
57
|
+
c += r, s.forEach(((e) => {
|
|
58
|
+
e.edge.x = e.edge.x + r * e.edge.islope;
|
|
59
|
+
})), l++;
|
|
59
60
|
}
|
|
60
|
-
return
|
|
61
|
-
}(
|
|
62
|
-
if (
|
|
63
|
-
for (let
|
|
64
|
-
(function(
|
|
65
|
-
let
|
|
66
|
-
|
|
67
|
-
})(
|
|
68
|
-
}
|
|
69
|
-
return
|
|
61
|
+
return a;
|
|
62
|
+
}(c, s, a);
|
|
63
|
+
if (o) {
|
|
64
|
+
for (let t of c) e(t, l, -o);
|
|
65
|
+
(function(t, n, r) {
|
|
66
|
+
let i = [];
|
|
67
|
+
t.forEach(((e) => i.push(...e))), e(i, n, r);
|
|
68
|
+
})(u, l, -o);
|
|
69
|
+
}
|
|
70
|
+
return u;
|
|
70
71
|
}
|
|
71
|
-
function
|
|
72
|
-
let
|
|
73
|
-
|
|
74
|
-
let
|
|
75
|
-
return
|
|
72
|
+
function r(e, t) {
|
|
73
|
+
let r = t.hachureAngle + 90, i = t.hachureGap;
|
|
74
|
+
i < 0 && (i = 4 * t.strokeWidth), i = Math.round(Math.max(i, .1));
|
|
75
|
+
let a = 1;
|
|
76
|
+
return t.roughness >= 1 && (t.randomizer?.next() || Math.random()) > .7 && (a = i), n(e, i, r, a || 1);
|
|
76
77
|
}
|
|
77
|
-
var
|
|
78
|
-
constructor(
|
|
79
|
-
this.helper =
|
|
78
|
+
var i = class {
|
|
79
|
+
constructor(e) {
|
|
80
|
+
this.helper = e;
|
|
80
81
|
}
|
|
81
|
-
fillPolygons(
|
|
82
|
-
return this._fillPolygons(
|
|
82
|
+
fillPolygons(e, t) {
|
|
83
|
+
return this._fillPolygons(e, t);
|
|
83
84
|
}
|
|
84
|
-
_fillPolygons(
|
|
85
|
-
let
|
|
85
|
+
_fillPolygons(e, t) {
|
|
86
|
+
let n = r(e, t);
|
|
86
87
|
return {
|
|
87
88
|
type: "fillSketch",
|
|
88
|
-
ops: this.renderLines(
|
|
89
|
+
ops: this.renderLines(n, t)
|
|
89
90
|
};
|
|
90
91
|
}
|
|
91
|
-
renderLines(
|
|
92
|
-
let
|
|
93
|
-
for (let
|
|
94
|
-
return
|
|
92
|
+
renderLines(e, t) {
|
|
93
|
+
let n = [];
|
|
94
|
+
for (let r of e) n.push(...this.helper.doubleLineOps(r[0][0], r[0][1], r[1][0], r[1][1], t));
|
|
95
|
+
return n;
|
|
95
96
|
}
|
|
96
97
|
};
|
|
97
|
-
function a(
|
|
98
|
-
let
|
|
99
|
-
return Math.sqrt((
|
|
98
|
+
function a(e) {
|
|
99
|
+
let t = e[0], n = e[1];
|
|
100
|
+
return Math.sqrt((t[0] - n[0]) ** 2 + (t[1] - n[1]) ** 2);
|
|
100
101
|
}
|
|
101
|
-
var
|
|
102
|
-
fillPolygons(
|
|
103
|
-
let
|
|
104
|
-
|
|
105
|
-
let
|
|
106
|
-
for (let [
|
|
102
|
+
var o = class extends i {
|
|
103
|
+
fillPolygons(e, t) {
|
|
104
|
+
let n = t.hachureGap;
|
|
105
|
+
n < 0 && (n = 4 * t.strokeWidth), n = Math.max(n, .1);
|
|
106
|
+
let i = r(e, Object.assign({}, t, { hachureGap: n })), o = Math.PI / 180 * t.hachureAngle, s = [], c = .5 * n * Math.cos(o), l = .5 * n * Math.sin(o);
|
|
107
|
+
for (let [e, t] of i) a([e, t]) && s.push([[e[0] - c, e[1] + l], [...t]], [[e[0] + c, e[1] - l], [...t]]);
|
|
107
108
|
return {
|
|
108
109
|
type: "fillSketch",
|
|
109
|
-
ops: this.renderLines(
|
|
110
|
+
ops: this.renderLines(s, t)
|
|
110
111
|
};
|
|
111
112
|
}
|
|
112
|
-
},
|
|
113
|
-
fillPolygons(
|
|
114
|
-
let
|
|
115
|
-
return
|
|
116
|
-
}
|
|
117
|
-
},
|
|
118
|
-
constructor(
|
|
119
|
-
this.helper =
|
|
120
|
-
}
|
|
121
|
-
fillPolygons(
|
|
122
|
-
let
|
|
123
|
-
return this.dotsOnLines(
|
|
124
|
-
}
|
|
125
|
-
dotsOnLines(
|
|
126
|
-
let
|
|
127
|
-
|
|
128
|
-
let
|
|
129
|
-
|
|
130
|
-
let
|
|
131
|
-
for (let
|
|
132
|
-
let
|
|
133
|
-
for (let
|
|
134
|
-
let
|
|
135
|
-
|
|
113
|
+
}, s = class extends i {
|
|
114
|
+
fillPolygons(e, t) {
|
|
115
|
+
let n = this._fillPolygons(e, t), r = Object.assign({}, t, { hachureAngle: t.hachureAngle + 90 }), i = this._fillPolygons(e, r);
|
|
116
|
+
return n.ops = n.ops.concat(i.ops), n;
|
|
117
|
+
}
|
|
118
|
+
}, c = class {
|
|
119
|
+
constructor(e) {
|
|
120
|
+
this.helper = e;
|
|
121
|
+
}
|
|
122
|
+
fillPolygons(e, t) {
|
|
123
|
+
let n = r(e, t = Object.assign({}, t, { hachureAngle: 0 }));
|
|
124
|
+
return this.dotsOnLines(n, t);
|
|
125
|
+
}
|
|
126
|
+
dotsOnLines(e, t) {
|
|
127
|
+
let n = [], r = t.hachureGap;
|
|
128
|
+
r < 0 && (r = 4 * t.strokeWidth), r = Math.max(r, .1);
|
|
129
|
+
let i = t.fillWeight;
|
|
130
|
+
i < 0 && (i = t.strokeWidth / 2);
|
|
131
|
+
let o = r / 4;
|
|
132
|
+
for (let s of e) {
|
|
133
|
+
let e = a(s), c = e / r, l = Math.ceil(c) - 1, u = e - l * r, d = (s[0][0] + s[1][0]) / 2 - r / 4, f = Math.min(s[0][1], s[1][1]);
|
|
134
|
+
for (let e = 0; e < l; e++) {
|
|
135
|
+
let a = f + u + e * r, s = d - o + 2 * Math.random() * o, c = a - o + 2 * Math.random() * o, l = this.helper.ellipse(s, c, i, i, t);
|
|
136
|
+
n.push(...l.ops);
|
|
136
137
|
}
|
|
137
138
|
}
|
|
138
139
|
return {
|
|
139
140
|
type: "fillSketch",
|
|
140
|
-
ops:
|
|
141
|
+
ops: n
|
|
141
142
|
};
|
|
142
143
|
}
|
|
143
|
-
},
|
|
144
|
-
constructor(
|
|
145
|
-
this.helper =
|
|
144
|
+
}, l = class {
|
|
145
|
+
constructor(e) {
|
|
146
|
+
this.helper = e;
|
|
146
147
|
}
|
|
147
|
-
fillPolygons(
|
|
148
|
-
let
|
|
148
|
+
fillPolygons(e, t) {
|
|
149
|
+
let n = r(e, t);
|
|
149
150
|
return {
|
|
150
151
|
type: "fillSketch",
|
|
151
|
-
ops: this.dashedLine(
|
|
152
|
+
ops: this.dashedLine(n, t)
|
|
152
153
|
};
|
|
153
154
|
}
|
|
154
|
-
dashedLine(
|
|
155
|
-
let
|
|
156
|
-
return
|
|
157
|
-
let
|
|
158
|
-
|
|
159
|
-
let
|
|
160
|
-
for (let
|
|
161
|
-
let
|
|
162
|
-
|
|
155
|
+
dashedLine(e, t) {
|
|
156
|
+
let n = t.dashOffset < 0 ? t.hachureGap < 0 ? 4 * t.strokeWidth : t.hachureGap : t.dashOffset, r = t.dashGap < 0 ? t.hachureGap < 0 ? 4 * t.strokeWidth : t.hachureGap : t.dashGap, i = [];
|
|
157
|
+
return e.forEach(((e) => {
|
|
158
|
+
let o = a(e), s = Math.floor(o / (n + r)), c = (o + r - s * (n + r)) / 2, l = e[0], u = e[1];
|
|
159
|
+
l[0] > u[0] && (l = e[1], u = e[0]);
|
|
160
|
+
let d = Math.atan((u[1] - l[1]) / (u[0] - l[0]));
|
|
161
|
+
for (let e = 0; e < s; e++) {
|
|
162
|
+
let a = e * (n + r), o = a + n, s = [l[0] + a * Math.cos(d) + c * Math.cos(d), l[1] + a * Math.sin(d) + c * Math.sin(d)], u = [l[0] + o * Math.cos(d) + c * Math.cos(d), l[1] + o * Math.sin(d) + c * Math.sin(d)];
|
|
163
|
+
i.push(...this.helper.doubleLineOps(s[0], s[1], u[0], u[1], t));
|
|
163
164
|
}
|
|
164
|
-
})),
|
|
165
|
+
})), i;
|
|
165
166
|
}
|
|
166
|
-
},
|
|
167
|
-
constructor(
|
|
168
|
-
this.helper =
|
|
167
|
+
}, u = class {
|
|
168
|
+
constructor(e) {
|
|
169
|
+
this.helper = e;
|
|
169
170
|
}
|
|
170
|
-
fillPolygons(
|
|
171
|
-
let
|
|
171
|
+
fillPolygons(e, t) {
|
|
172
|
+
let n = t.hachureGap < 0 ? 4 * t.strokeWidth : t.hachureGap, i = t.zigzagOffset < 0 ? n : t.zigzagOffset, a = r(e, t = Object.assign({}, t, { hachureGap: n + i }));
|
|
172
173
|
return {
|
|
173
174
|
type: "fillSketch",
|
|
174
|
-
ops: this.zigzagLines(
|
|
175
|
+
ops: this.zigzagLines(a, i, t)
|
|
175
176
|
};
|
|
176
177
|
}
|
|
177
|
-
zigzagLines(
|
|
178
|
-
let
|
|
179
|
-
return
|
|
180
|
-
let
|
|
181
|
-
|
|
182
|
-
let
|
|
183
|
-
for (let
|
|
184
|
-
let
|
|
185
|
-
|
|
178
|
+
zigzagLines(e, t, n) {
|
|
179
|
+
let r = [];
|
|
180
|
+
return e.forEach(((e) => {
|
|
181
|
+
let i = a(e), o = Math.round(i / (2 * t)), s = e[0], c = e[1];
|
|
182
|
+
s[0] > c[0] && (s = e[1], c = e[0]);
|
|
183
|
+
let l = Math.atan((c[1] - s[1]) / (c[0] - s[0]));
|
|
184
|
+
for (let e = 0; e < o; e++) {
|
|
185
|
+
let i = 2 * e * t, a = 2 * (e + 1) * t, o = Math.sqrt(2 * t ** 2), c = [s[0] + i * Math.cos(l), s[1] + i * Math.sin(l)], u = [s[0] + a * Math.cos(l), s[1] + a * Math.sin(l)], d = [c[0] + o * Math.cos(l + Math.PI / 4), c[1] + o * Math.sin(l + Math.PI / 4)];
|
|
186
|
+
r.push(...this.helper.doubleLineOps(c[0], c[1], d[0], d[1], n), ...this.helper.doubleLineOps(d[0], d[1], u[0], u[1], n));
|
|
186
187
|
}
|
|
187
|
-
})),
|
|
188
|
+
})), r;
|
|
188
189
|
}
|
|
189
|
-
},
|
|
190
|
-
constructor(
|
|
191
|
-
this.seed =
|
|
190
|
+
}, d = {}, f = class {
|
|
191
|
+
constructor(e) {
|
|
192
|
+
this.seed = e;
|
|
192
193
|
}
|
|
193
194
|
next() {
|
|
194
195
|
return this.seed ? (2 ** 31 - 1 & (this.seed = Math.imul(48271, this.seed))) / 2 ** 31 : Math.random();
|
|
195
196
|
}
|
|
196
|
-
},
|
|
197
|
+
}, p = 0, m = 1, h = 2, g = {
|
|
197
198
|
A: 7,
|
|
198
199
|
a: 7,
|
|
199
200
|
C: 6,
|
|
@@ -215,404 +216,404 @@ var h = class extends o {
|
|
|
215
216
|
Z: 0,
|
|
216
217
|
z: 0
|
|
217
218
|
};
|
|
218
|
-
function
|
|
219
|
-
return
|
|
219
|
+
function _(e, t) {
|
|
220
|
+
return e.type === t;
|
|
220
221
|
}
|
|
221
|
-
function
|
|
222
|
-
let
|
|
223
|
-
let
|
|
224
|
-
for (;
|
|
225
|
-
else if (
|
|
226
|
-
type:
|
|
222
|
+
function v(e) {
|
|
223
|
+
let t = [], n = function(e) {
|
|
224
|
+
let t = [];
|
|
225
|
+
for (; e !== "";) if (e.match(/^([ \t\r\n,]+)/)) e = e.substr(RegExp.$1.length);
|
|
226
|
+
else if (e.match(/^([aAcChHlLmMqQsStTvVzZ])/)) t[t.length] = {
|
|
227
|
+
type: p,
|
|
227
228
|
text: RegExp.$1
|
|
228
|
-
},
|
|
229
|
+
}, e = e.substr(RegExp.$1.length);
|
|
229
230
|
else {
|
|
230
|
-
if (!
|
|
231
|
-
|
|
232
|
-
type:
|
|
231
|
+
if (!e.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/)) return [];
|
|
232
|
+
t[t.length] = {
|
|
233
|
+
type: m,
|
|
233
234
|
text: `${parseFloat(RegExp.$1)}`
|
|
234
|
-
},
|
|
235
|
+
}, e = e.substr(RegExp.$1.length);
|
|
235
236
|
}
|
|
236
|
-
return
|
|
237
|
-
type:
|
|
237
|
+
return t[t.length] = {
|
|
238
|
+
type: h,
|
|
238
239
|
text: ""
|
|
239
|
-
},
|
|
240
|
-
}(
|
|
241
|
-
for (; !
|
|
242
|
-
let
|
|
243
|
-
if (
|
|
244
|
-
if (
|
|
245
|
-
|
|
246
|
-
} else
|
|
247
|
-
if (!(
|
|
248
|
-
for (let
|
|
249
|
-
let
|
|
250
|
-
if (!
|
|
251
|
-
|
|
240
|
+
}, t;
|
|
241
|
+
}(e), r = "BOD", i = 0, a = n[i];
|
|
242
|
+
for (; !_(a, h);) {
|
|
243
|
+
let o = 0, s = [];
|
|
244
|
+
if (r === "BOD") {
|
|
245
|
+
if (a.text !== "M" && a.text !== "m") return v("M0,0" + e);
|
|
246
|
+
i++, o = g[a.text], r = a.text;
|
|
247
|
+
} else _(a, m) ? o = g[r] : (i++, o = g[a.text], r = a.text);
|
|
248
|
+
if (!(i + o < n.length)) throw Error("Path data ended short");
|
|
249
|
+
for (let e = i; e < i + o; e++) {
|
|
250
|
+
let t = n[e];
|
|
251
|
+
if (!_(t, m)) throw Error("Param not a number: " + r + "," + t.text);
|
|
252
|
+
s[s.length] = +t.text;
|
|
252
253
|
}
|
|
253
|
-
if (typeof
|
|
254
|
+
if (typeof g[r] != "number") throw Error("Bad segment: " + r);
|
|
254
255
|
{
|
|
255
|
-
let
|
|
256
|
-
key:
|
|
257
|
-
data:
|
|
256
|
+
let e = {
|
|
257
|
+
key: r,
|
|
258
|
+
data: s
|
|
258
259
|
};
|
|
259
|
-
|
|
260
|
+
t.push(e), i += o, a = n[i], r === "M" && (r = "L"), r === "m" && (r = "l");
|
|
260
261
|
}
|
|
261
262
|
}
|
|
262
|
-
return
|
|
263
|
+
return t;
|
|
263
264
|
}
|
|
264
|
-
function y(
|
|
265
|
-
let
|
|
266
|
-
for (let { key:
|
|
265
|
+
function y(e) {
|
|
266
|
+
let t = 0, n = 0, r = 0, i = 0, a = [];
|
|
267
|
+
for (let { key: o, data: s } of e) switch (o) {
|
|
267
268
|
case "M":
|
|
268
|
-
|
|
269
|
+
a.push({
|
|
269
270
|
key: "M",
|
|
270
|
-
data: [...
|
|
271
|
-
}), [
|
|
271
|
+
data: [...s]
|
|
272
|
+
}), [t, n] = s, [r, i] = s;
|
|
272
273
|
break;
|
|
273
274
|
case "m":
|
|
274
|
-
|
|
275
|
+
t += s[0], n += s[1], a.push({
|
|
275
276
|
key: "M",
|
|
276
|
-
data: [
|
|
277
|
-
}),
|
|
277
|
+
data: [t, n]
|
|
278
|
+
}), r = t, i = n;
|
|
278
279
|
break;
|
|
279
280
|
case "L":
|
|
280
|
-
|
|
281
|
+
a.push({
|
|
281
282
|
key: "L",
|
|
282
|
-
data: [...
|
|
283
|
-
}), [
|
|
283
|
+
data: [...s]
|
|
284
|
+
}), [t, n] = s;
|
|
284
285
|
break;
|
|
285
286
|
case "l":
|
|
286
|
-
|
|
287
|
+
t += s[0], n += s[1], a.push({
|
|
287
288
|
key: "L",
|
|
288
|
-
data: [
|
|
289
|
+
data: [t, n]
|
|
289
290
|
});
|
|
290
291
|
break;
|
|
291
292
|
case "C":
|
|
292
|
-
|
|
293
|
+
a.push({
|
|
293
294
|
key: "C",
|
|
294
|
-
data: [...
|
|
295
|
-
}),
|
|
295
|
+
data: [...s]
|
|
296
|
+
}), t = s[4], n = s[5];
|
|
296
297
|
break;
|
|
297
298
|
case "c": {
|
|
298
|
-
let
|
|
299
|
-
|
|
299
|
+
let e = s.map(((e, r) => r % 2 ? e + n : e + t));
|
|
300
|
+
a.push({
|
|
300
301
|
key: "C",
|
|
301
|
-
data:
|
|
302
|
-
}),
|
|
302
|
+
data: e
|
|
303
|
+
}), t = e[4], n = e[5];
|
|
303
304
|
break;
|
|
304
305
|
}
|
|
305
306
|
case "Q":
|
|
306
|
-
|
|
307
|
+
a.push({
|
|
307
308
|
key: "Q",
|
|
308
|
-
data: [...
|
|
309
|
-
}),
|
|
309
|
+
data: [...s]
|
|
310
|
+
}), t = s[2], n = s[3];
|
|
310
311
|
break;
|
|
311
312
|
case "q": {
|
|
312
|
-
let
|
|
313
|
-
|
|
313
|
+
let e = s.map(((e, r) => r % 2 ? e + n : e + t));
|
|
314
|
+
a.push({
|
|
314
315
|
key: "Q",
|
|
315
|
-
data:
|
|
316
|
-
}),
|
|
316
|
+
data: e
|
|
317
|
+
}), t = e[2], n = e[3];
|
|
317
318
|
break;
|
|
318
319
|
}
|
|
319
320
|
case "A":
|
|
320
|
-
|
|
321
|
+
a.push({
|
|
321
322
|
key: "A",
|
|
322
|
-
data: [...
|
|
323
|
-
}),
|
|
323
|
+
data: [...s]
|
|
324
|
+
}), t = s[5], n = s[6];
|
|
324
325
|
break;
|
|
325
326
|
case "a":
|
|
326
|
-
|
|
327
|
+
t += s[5], n += s[6], a.push({
|
|
327
328
|
key: "A",
|
|
328
329
|
data: [
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
330
|
+
s[0],
|
|
331
|
+
s[1],
|
|
332
|
+
s[2],
|
|
333
|
+
s[3],
|
|
334
|
+
s[4],
|
|
335
|
+
t,
|
|
336
|
+
n
|
|
336
337
|
]
|
|
337
338
|
});
|
|
338
339
|
break;
|
|
339
340
|
case "H":
|
|
340
|
-
|
|
341
|
+
a.push({
|
|
341
342
|
key: "H",
|
|
342
|
-
data: [...
|
|
343
|
-
}),
|
|
343
|
+
data: [...s]
|
|
344
|
+
}), t = s[0];
|
|
344
345
|
break;
|
|
345
346
|
case "h":
|
|
346
|
-
|
|
347
|
+
t += s[0], a.push({
|
|
347
348
|
key: "H",
|
|
348
|
-
data: [
|
|
349
|
+
data: [t]
|
|
349
350
|
});
|
|
350
351
|
break;
|
|
351
352
|
case "V":
|
|
352
|
-
|
|
353
|
+
a.push({
|
|
353
354
|
key: "V",
|
|
354
|
-
data: [...
|
|
355
|
-
}),
|
|
355
|
+
data: [...s]
|
|
356
|
+
}), n = s[0];
|
|
356
357
|
break;
|
|
357
358
|
case "v":
|
|
358
|
-
|
|
359
|
+
n += s[0], a.push({
|
|
359
360
|
key: "V",
|
|
360
|
-
data: [
|
|
361
|
+
data: [n]
|
|
361
362
|
});
|
|
362
363
|
break;
|
|
363
364
|
case "S":
|
|
364
|
-
|
|
365
|
+
a.push({
|
|
365
366
|
key: "S",
|
|
366
|
-
data: [...
|
|
367
|
-
}),
|
|
367
|
+
data: [...s]
|
|
368
|
+
}), t = s[2], n = s[3];
|
|
368
369
|
break;
|
|
369
370
|
case "s": {
|
|
370
|
-
let
|
|
371
|
-
|
|
371
|
+
let e = s.map(((e, r) => r % 2 ? e + n : e + t));
|
|
372
|
+
a.push({
|
|
372
373
|
key: "S",
|
|
373
|
-
data:
|
|
374
|
-
}),
|
|
374
|
+
data: e
|
|
375
|
+
}), t = e[2], n = e[3];
|
|
375
376
|
break;
|
|
376
377
|
}
|
|
377
378
|
case "T":
|
|
378
|
-
|
|
379
|
+
a.push({
|
|
379
380
|
key: "T",
|
|
380
|
-
data: [...
|
|
381
|
-
}),
|
|
381
|
+
data: [...s]
|
|
382
|
+
}), t = s[0], n = s[1];
|
|
382
383
|
break;
|
|
383
384
|
case "t":
|
|
384
|
-
|
|
385
|
+
t += s[0], n += s[1], a.push({
|
|
385
386
|
key: "T",
|
|
386
|
-
data: [
|
|
387
|
+
data: [t, n]
|
|
387
388
|
});
|
|
388
389
|
break;
|
|
389
390
|
case "Z":
|
|
390
|
-
case "z":
|
|
391
|
+
case "z": a.push({
|
|
391
392
|
key: "Z",
|
|
392
393
|
data: []
|
|
393
|
-
}),
|
|
394
|
+
}), t = r, n = i;
|
|
394
395
|
}
|
|
395
|
-
return
|
|
396
|
+
return a;
|
|
396
397
|
}
|
|
397
|
-
function
|
|
398
|
-
let
|
|
399
|
-
for (let { key:
|
|
400
|
-
switch (
|
|
398
|
+
function b(e) {
|
|
399
|
+
let t = [], n = "", r = 0, i = 0, a = 0, o = 0, s = 0, c = 0;
|
|
400
|
+
for (let { key: l, data: u } of e) {
|
|
401
|
+
switch (l) {
|
|
401
402
|
case "M":
|
|
402
|
-
|
|
403
|
+
t.push({
|
|
403
404
|
key: "M",
|
|
404
|
-
data: [...
|
|
405
|
-
}), [
|
|
405
|
+
data: [...u]
|
|
406
|
+
}), [r, i] = u, [a, o] = u;
|
|
406
407
|
break;
|
|
407
408
|
case "C":
|
|
408
|
-
|
|
409
|
+
t.push({
|
|
409
410
|
key: "C",
|
|
410
|
-
data: [...
|
|
411
|
-
}),
|
|
411
|
+
data: [...u]
|
|
412
|
+
}), r = u[4], i = u[5], s = u[2], c = u[3];
|
|
412
413
|
break;
|
|
413
414
|
case "L":
|
|
414
|
-
|
|
415
|
+
t.push({
|
|
415
416
|
key: "L",
|
|
416
|
-
data: [...
|
|
417
|
-
}), [
|
|
417
|
+
data: [...u]
|
|
418
|
+
}), [r, i] = u;
|
|
418
419
|
break;
|
|
419
420
|
case "H":
|
|
420
|
-
|
|
421
|
+
r = u[0], t.push({
|
|
421
422
|
key: "L",
|
|
422
|
-
data: [
|
|
423
|
+
data: [r, i]
|
|
423
424
|
});
|
|
424
425
|
break;
|
|
425
426
|
case "V":
|
|
426
|
-
|
|
427
|
+
i = u[0], t.push({
|
|
427
428
|
key: "L",
|
|
428
|
-
data: [
|
|
429
|
+
data: [r, i]
|
|
429
430
|
});
|
|
430
431
|
break;
|
|
431
432
|
case "S": {
|
|
432
|
-
let
|
|
433
|
-
|
|
433
|
+
let e = 0, a = 0;
|
|
434
|
+
n === "C" || n === "S" ? (e = r + (r - s), a = i + (i - c)) : (e = r, a = i), t.push({
|
|
434
435
|
key: "C",
|
|
435
436
|
data: [
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
...
|
|
437
|
+
e,
|
|
438
|
+
a,
|
|
439
|
+
...u
|
|
439
440
|
]
|
|
440
|
-
}),
|
|
441
|
+
}), s = u[0], c = u[1], r = u[2], i = u[3];
|
|
441
442
|
break;
|
|
442
443
|
}
|
|
443
444
|
case "T": {
|
|
444
|
-
let [
|
|
445
|
-
|
|
446
|
-
let
|
|
447
|
-
|
|
445
|
+
let [e, a] = u, o = 0, l = 0;
|
|
446
|
+
n === "Q" || n === "T" ? (o = r + (r - s), l = i + (i - c)) : (o = r, l = i);
|
|
447
|
+
let d = r + 2 * (o - r) / 3, f = i + 2 * (l - i) / 3, p = e + 2 * (o - e) / 3, m = a + 2 * (l - a) / 3;
|
|
448
|
+
t.push({
|
|
448
449
|
key: "C",
|
|
449
450
|
data: [
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
451
|
+
d,
|
|
452
|
+
f,
|
|
453
|
+
p,
|
|
454
|
+
m,
|
|
455
|
+
e,
|
|
456
|
+
a
|
|
456
457
|
]
|
|
457
|
-
}),
|
|
458
|
+
}), s = o, c = l, r = e, i = a;
|
|
458
459
|
break;
|
|
459
460
|
}
|
|
460
461
|
case "Q": {
|
|
461
|
-
let [
|
|
462
|
-
|
|
462
|
+
let [e, n, a, o] = u, l = r + 2 * (e - r) / 3, d = i + 2 * (n - i) / 3, f = a + 2 * (e - a) / 3, p = o + 2 * (n - o) / 3;
|
|
463
|
+
t.push({
|
|
463
464
|
key: "C",
|
|
464
465
|
data: [
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
466
|
+
l,
|
|
467
|
+
d,
|
|
468
|
+
f,
|
|
469
|
+
p,
|
|
470
|
+
a,
|
|
471
|
+
o
|
|
471
472
|
]
|
|
472
|
-
}),
|
|
473
|
+
}), s = e, c = n, r = a, i = o;
|
|
473
474
|
break;
|
|
474
475
|
}
|
|
475
476
|
case "A": {
|
|
476
|
-
let
|
|
477
|
-
|
|
477
|
+
let e = Math.abs(u[0]), n = Math.abs(u[1]), a = u[2], o = u[3], s = u[4], c = u[5], l = u[6];
|
|
478
|
+
e === 0 || n === 0 ? (t.push({
|
|
478
479
|
key: "C",
|
|
479
480
|
data: [
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
481
|
+
r,
|
|
482
|
+
i,
|
|
483
|
+
c,
|
|
484
|
+
l,
|
|
485
|
+
c,
|
|
486
|
+
l
|
|
486
487
|
]
|
|
487
|
-
}),
|
|
488
|
-
|
|
488
|
+
}), r = c, i = l) : (r !== c || i !== l) && (S(r, i, c, l, e, n, a, o, s).forEach((function(e) {
|
|
489
|
+
t.push({
|
|
489
490
|
key: "C",
|
|
490
|
-
data:
|
|
491
|
+
data: e
|
|
491
492
|
});
|
|
492
|
-
})),
|
|
493
|
+
})), r = c, i = l);
|
|
493
494
|
break;
|
|
494
495
|
}
|
|
495
|
-
case "Z":
|
|
496
|
+
case "Z": t.push({
|
|
496
497
|
key: "Z",
|
|
497
498
|
data: []
|
|
498
|
-
}),
|
|
499
|
+
}), r = a, i = o;
|
|
499
500
|
}
|
|
500
|
-
|
|
501
|
+
n = l;
|
|
501
502
|
}
|
|
502
|
-
return
|
|
503
|
+
return t;
|
|
503
504
|
}
|
|
504
|
-
function
|
|
505
|
-
return [
|
|
505
|
+
function x(e, t, n) {
|
|
506
|
+
return [e * Math.cos(n) - t * Math.sin(n), e * Math.sin(n) + t * Math.cos(n)];
|
|
506
507
|
}
|
|
507
|
-
function
|
|
508
|
-
let
|
|
509
|
-
var
|
|
510
|
-
let
|
|
511
|
-
if (
|
|
508
|
+
function S(e, t, n, r, i, a, o, s, c, l) {
|
|
509
|
+
let u = (d = o, Math.PI * d / 180);
|
|
510
|
+
var d;
|
|
511
|
+
let f = [], p = 0, m = 0, h = 0, g = 0;
|
|
512
|
+
if (l) [p, m, h, g] = l;
|
|
512
513
|
else {
|
|
513
|
-
[
|
|
514
|
-
let
|
|
515
|
-
|
|
516
|
-
let
|
|
517
|
-
|
|
518
|
-
}
|
|
519
|
-
let
|
|
520
|
-
if (Math.abs(
|
|
521
|
-
let
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
514
|
+
[e, t] = x(e, t, -u), [n, r] = x(n, r, -u);
|
|
515
|
+
let o = (e - n) / 2, l = (t - r) / 2, d = o * o / (i * i) + l * l / (a * a);
|
|
516
|
+
d > 1 && (d = Math.sqrt(d), i *= d, a *= d);
|
|
517
|
+
let f = i * i, _ = a * a, v = f * _ - f * l * l - _ * o * o, y = f * l * l + _ * o * o, b = (s === c ? -1 : 1) * Math.sqrt(Math.abs(v / y));
|
|
518
|
+
h = b * i * l / a + (e + n) / 2, g = b * -a * o / i + (t + r) / 2, p = Math.asin(parseFloat(((t - g) / a).toFixed(9))), m = Math.asin(parseFloat(((r - g) / a).toFixed(9))), e < h && (p = Math.PI - p), n < h && (m = Math.PI - m), p < 0 && (p = 2 * Math.PI + p), m < 0 && (m = 2 * Math.PI + m), c && p > m && (p -= 2 * Math.PI), !c && m > p && (m -= 2 * Math.PI);
|
|
519
|
+
}
|
|
520
|
+
let _ = m - p;
|
|
521
|
+
if (Math.abs(_) > 120 * Math.PI / 180) {
|
|
522
|
+
let e = m, t = n, s = r;
|
|
523
|
+
m = c && m > p ? p + 120 * Math.PI / 180 * 1 : p + 120 * Math.PI / 180 * -1, f = S(n = h + i * Math.cos(m), r = g + a * Math.sin(m), t, s, i, a, o, 0, c, [
|
|
524
|
+
m,
|
|
525
|
+
e,
|
|
526
|
+
h,
|
|
527
|
+
g
|
|
527
528
|
]);
|
|
528
529
|
}
|
|
529
|
-
|
|
530
|
-
let
|
|
531
|
-
if (
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
].concat(
|
|
530
|
+
_ = m - p;
|
|
531
|
+
let v = Math.cos(p), y = Math.sin(p), b = Math.cos(m), C = Math.sin(m), w = Math.tan(_ / 4), T = 4 / 3 * i * w, E = 4 / 3 * a * w, D = [e, t], O = [e + T * y, t - E * v], k = [n + T * C, r - E * b], A = [n, r];
|
|
532
|
+
if (O[0] = 2 * D[0] - O[0], O[1] = 2 * D[1] - O[1], l) return [
|
|
533
|
+
O,
|
|
534
|
+
k,
|
|
535
|
+
A
|
|
536
|
+
].concat(f);
|
|
536
537
|
{
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
].concat(
|
|
542
|
-
let
|
|
543
|
-
for (let
|
|
544
|
-
let
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
538
|
+
f = [
|
|
539
|
+
O,
|
|
540
|
+
k,
|
|
541
|
+
A
|
|
542
|
+
].concat(f);
|
|
543
|
+
let e = [];
|
|
544
|
+
for (let t = 0; t < f.length; t += 3) {
|
|
545
|
+
let n = x(f[t][0], f[t][1], u), r = x(f[t + 1][0], f[t + 1][1], u), i = x(f[t + 2][0], f[t + 2][1], u);
|
|
546
|
+
e.push([
|
|
547
|
+
n[0],
|
|
548
|
+
n[1],
|
|
549
|
+
r[0],
|
|
550
|
+
r[1],
|
|
551
|
+
i[0],
|
|
552
|
+
i[1]
|
|
552
553
|
]);
|
|
553
554
|
}
|
|
554
|
-
return
|
|
555
|
+
return e;
|
|
555
556
|
}
|
|
556
557
|
}
|
|
557
|
-
var
|
|
558
|
-
randOffset: function(
|
|
559
|
-
return
|
|
558
|
+
var C = {
|
|
559
|
+
randOffset: function(e, t) {
|
|
560
|
+
return L(e, t);
|
|
560
561
|
},
|
|
561
|
-
randOffsetWithRange: function(
|
|
562
|
-
return
|
|
562
|
+
randOffsetWithRange: function(e, t, n) {
|
|
563
|
+
return I(e, t, n);
|
|
563
564
|
},
|
|
564
|
-
ellipse: function(
|
|
565
|
-
return
|
|
565
|
+
ellipse: function(e, t, n, r, i) {
|
|
566
|
+
return k(e, t, i, O(n, r, i)).opset;
|
|
566
567
|
},
|
|
567
|
-
doubleLineOps: function(
|
|
568
|
-
return
|
|
568
|
+
doubleLineOps: function(e, t, n, r, i) {
|
|
569
|
+
return R(e, t, n, r, i, !0);
|
|
569
570
|
}
|
|
570
571
|
};
|
|
571
|
-
function
|
|
572
|
+
function w(e, t, n, r, i) {
|
|
572
573
|
return {
|
|
573
574
|
type: "path",
|
|
574
|
-
ops:
|
|
575
|
+
ops: R(e, t, n, r, i)
|
|
575
576
|
};
|
|
576
577
|
}
|
|
577
|
-
function
|
|
578
|
-
let
|
|
579
|
-
if (
|
|
580
|
-
let
|
|
581
|
-
for (let
|
|
582
|
-
return
|
|
578
|
+
function T(e, t, n) {
|
|
579
|
+
let r = (e || []).length;
|
|
580
|
+
if (r > 2) {
|
|
581
|
+
let i = [];
|
|
582
|
+
for (let t = 0; t < r - 1; t++) i.push(...R(e[t][0], e[t][1], e[t + 1][0], e[t + 1][1], n));
|
|
583
|
+
return t && i.push(...R(e[r - 1][0], e[r - 1][1], e[0][0], e[0][1], n)), {
|
|
583
584
|
type: "path",
|
|
584
|
-
ops:
|
|
585
|
+
ops: i
|
|
585
586
|
};
|
|
586
587
|
}
|
|
587
|
-
return
|
|
588
|
+
return r === 2 ? w(e[0][0], e[0][1], e[1][0], e[1][1], n) : {
|
|
588
589
|
type: "path",
|
|
589
590
|
ops: []
|
|
590
591
|
};
|
|
591
592
|
}
|
|
592
|
-
function
|
|
593
|
-
return function(
|
|
594
|
-
return
|
|
593
|
+
function E(e, t, n, r, i) {
|
|
594
|
+
return function(e, t) {
|
|
595
|
+
return T(e, !0, t);
|
|
595
596
|
}([
|
|
596
|
-
[
|
|
597
|
-
[
|
|
598
|
-
[
|
|
599
|
-
[
|
|
600
|
-
],
|
|
597
|
+
[e, t],
|
|
598
|
+
[e + n, t],
|
|
599
|
+
[e + n, t + r],
|
|
600
|
+
[e, t + r]
|
|
601
|
+
], i);
|
|
601
602
|
}
|
|
602
|
-
function
|
|
603
|
-
if (
|
|
604
|
-
let
|
|
605
|
-
for (let
|
|
606
|
-
let
|
|
607
|
-
if (
|
|
608
|
-
let
|
|
609
|
-
for (let
|
|
610
|
-
for (let
|
|
603
|
+
function D(e, t) {
|
|
604
|
+
if (e.length) {
|
|
605
|
+
let n = typeof e[0][0] == "number" ? [e] : e, r = B(n[0], 1 * (1 + .2 * t.roughness), t), i = t.disableMultiStroke ? [] : B(n[0], 1.5 * (1 + .22 * t.roughness), P(t));
|
|
606
|
+
for (let e = 1; e < n.length; e++) {
|
|
607
|
+
let a = n[e];
|
|
608
|
+
if (a.length) {
|
|
609
|
+
let e = B(a, 1 * (1 + .2 * t.roughness), t), n = t.disableMultiStroke ? [] : B(a, 1.5 * (1 + .22 * t.roughness), P(t));
|
|
610
|
+
for (let t of e) t.op !== "move" && r.push(t);
|
|
611
|
+
for (let e of n) e.op !== "move" && i.push(e);
|
|
611
612
|
}
|
|
612
613
|
}
|
|
613
614
|
return {
|
|
614
615
|
type: "path",
|
|
615
|
-
ops:
|
|
616
|
+
ops: r.concat(i)
|
|
616
617
|
};
|
|
617
618
|
}
|
|
618
619
|
return {
|
|
@@ -620,352 +621,352 @@ function L(ee, Me) {
|
|
|
620
621
|
ops: []
|
|
621
622
|
};
|
|
622
623
|
}
|
|
623
|
-
function
|
|
624
|
-
let
|
|
625
|
-
return
|
|
626
|
-
increment:
|
|
627
|
-
rx:
|
|
628
|
-
ry:
|
|
624
|
+
function O(e, t, n) {
|
|
625
|
+
let r = Math.sqrt(2 * Math.PI * Math.sqrt(((e / 2) ** 2 + (t / 2) ** 2) / 2)), i = Math.ceil(Math.max(n.curveStepCount, n.curveStepCount / Math.sqrt(200) * r)), a = 2 * Math.PI / i, o = Math.abs(e / 2), s = Math.abs(t / 2), c = 1 - n.curveFitting;
|
|
626
|
+
return o += L(o * c, n), s += L(s * c, n), {
|
|
627
|
+
increment: a,
|
|
628
|
+
rx: o,
|
|
629
|
+
ry: s
|
|
629
630
|
};
|
|
630
631
|
}
|
|
631
|
-
function
|
|
632
|
-
let [
|
|
633
|
-
if (!
|
|
634
|
-
let [
|
|
635
|
-
|
|
632
|
+
function k(e, t, n, r) {
|
|
633
|
+
let [i, a] = H(r.increment, e, t, r.rx, r.ry, 1, r.increment * I(.1, I(.4, 1, n), n), n), o = V(i, null, n);
|
|
634
|
+
if (!n.disableMultiStroke && n.roughness !== 0) {
|
|
635
|
+
let [i] = H(r.increment, e, t, r.rx, r.ry, 1.5, 0, n), a = V(i, null, n);
|
|
636
|
+
o = o.concat(a);
|
|
636
637
|
}
|
|
637
638
|
return {
|
|
638
|
-
estimatedPoints:
|
|
639
|
+
estimatedPoints: a,
|
|
639
640
|
opset: {
|
|
640
641
|
type: "path",
|
|
641
|
-
ops:
|
|
642
|
+
ops: o
|
|
642
643
|
}
|
|
643
644
|
};
|
|
644
645
|
}
|
|
645
|
-
function A(
|
|
646
|
-
let
|
|
647
|
-
|
|
648
|
-
let
|
|
649
|
-
for (;
|
|
650
|
-
|
|
651
|
-
let
|
|
652
|
-
if (!
|
|
653
|
-
let
|
|
654
|
-
|
|
655
|
-
}
|
|
656
|
-
return
|
|
646
|
+
function A(e, t, n, r, i, a, o, s, c) {
|
|
647
|
+
let l = e, u = t, d = Math.abs(n / 2), f = Math.abs(r / 2);
|
|
648
|
+
d += L(.01 * d, c), f += L(.01 * f, c);
|
|
649
|
+
let p = i, m = a;
|
|
650
|
+
for (; p < 0;) p += 2 * Math.PI, m += 2 * Math.PI;
|
|
651
|
+
m - p > 2 * Math.PI && (p = 0, m = 2 * Math.PI);
|
|
652
|
+
let h = 2 * Math.PI / c.curveStepCount, g = Math.min(h / 2, (m - p) / 2), _ = U(g, l, u, d, f, p, m, 1, c);
|
|
653
|
+
if (!c.disableMultiStroke) {
|
|
654
|
+
let e = U(g, l, u, d, f, p, m, 1.5, c);
|
|
655
|
+
_.push(...e);
|
|
656
|
+
}
|
|
657
|
+
return o && (s ? _.push(...R(l, u, l + d * Math.cos(p), u + f * Math.sin(p), c), ...R(l, u, l + d * Math.cos(m), u + f * Math.sin(m), c)) : _.push({
|
|
657
658
|
op: "lineTo",
|
|
658
|
-
data: [
|
|
659
|
+
data: [l, u]
|
|
659
660
|
}, {
|
|
660
661
|
op: "lineTo",
|
|
661
|
-
data: [
|
|
662
|
+
data: [l + d * Math.cos(p), u + f * Math.sin(p)]
|
|
662
663
|
})), {
|
|
663
664
|
type: "path",
|
|
664
|
-
ops:
|
|
665
|
+
ops: _
|
|
665
666
|
};
|
|
666
667
|
}
|
|
667
|
-
function
|
|
668
|
-
let
|
|
669
|
-
for (let { key:
|
|
668
|
+
function j(e, t) {
|
|
669
|
+
let n = b(y(v(e))), r = [], i = [0, 0], a = [0, 0];
|
|
670
|
+
for (let { key: e, data: o } of n) switch (e) {
|
|
670
671
|
case "M":
|
|
671
|
-
|
|
672
|
+
a = [o[0], o[1]], i = [o[0], o[1]];
|
|
672
673
|
break;
|
|
673
674
|
case "L":
|
|
674
|
-
|
|
675
|
+
r.push(...R(a[0], a[1], o[0], o[1], t)), a = [o[0], o[1]];
|
|
675
676
|
break;
|
|
676
677
|
case "C": {
|
|
677
|
-
let [
|
|
678
|
-
|
|
678
|
+
let [e, n, i, s, c, l] = o;
|
|
679
|
+
r.push(...ee(e, n, i, s, c, l, a, t)), a = [c, l];
|
|
679
680
|
break;
|
|
680
681
|
}
|
|
681
|
-
case "Z":
|
|
682
|
+
case "Z": r.push(...R(a[0], a[1], i[0], i[1], t)), a = [i[0], i[1]];
|
|
682
683
|
}
|
|
683
684
|
return {
|
|
684
685
|
type: "path",
|
|
685
|
-
ops:
|
|
686
|
+
ops: r
|
|
686
687
|
};
|
|
687
688
|
}
|
|
688
|
-
function
|
|
689
|
-
let
|
|
690
|
-
for (let
|
|
691
|
-
let
|
|
692
|
-
if (
|
|
693
|
-
|
|
689
|
+
function M(e, t) {
|
|
690
|
+
let n = [];
|
|
691
|
+
for (let r of e) if (r.length) {
|
|
692
|
+
let e = t.maxRandomnessOffset || 0, i = r.length;
|
|
693
|
+
if (i > 2) {
|
|
694
|
+
n.push({
|
|
694
695
|
op: "move",
|
|
695
|
-
data: [
|
|
696
|
+
data: [r[0][0] + L(e, t), r[0][1] + L(e, t)]
|
|
696
697
|
});
|
|
697
|
-
for (let
|
|
698
|
+
for (let a = 1; a < i; a++) n.push({
|
|
698
699
|
op: "lineTo",
|
|
699
|
-
data: [
|
|
700
|
+
data: [r[a][0] + L(e, t), r[a][1] + L(e, t)]
|
|
700
701
|
});
|
|
701
702
|
}
|
|
702
703
|
}
|
|
703
704
|
return {
|
|
704
705
|
type: "fillPath",
|
|
705
|
-
ops:
|
|
706
|
+
ops: n
|
|
706
707
|
};
|
|
707
708
|
}
|
|
708
|
-
function
|
|
709
|
-
return function(
|
|
710
|
-
let
|
|
711
|
-
if (!
|
|
709
|
+
function N(e, t) {
|
|
710
|
+
return function(e, t) {
|
|
711
|
+
let n = e.fillStyle || "hachure";
|
|
712
|
+
if (!d[n]) switch (n) {
|
|
712
713
|
case "zigzag":
|
|
713
|
-
|
|
714
|
+
d[n] || (d[n] = new o(t));
|
|
714
715
|
break;
|
|
715
716
|
case "cross-hatch":
|
|
716
|
-
|
|
717
|
+
d[n] || (d[n] = new s(t));
|
|
717
718
|
break;
|
|
718
719
|
case "dots":
|
|
719
|
-
|
|
720
|
+
d[n] || (d[n] = new c(t));
|
|
720
721
|
break;
|
|
721
722
|
case "dashed":
|
|
722
|
-
|
|
723
|
+
d[n] || (d[n] = new l(t));
|
|
723
724
|
break;
|
|
724
725
|
case "zigzag-line":
|
|
725
|
-
|
|
726
|
+
d[n] || (d[n] = new u(t));
|
|
726
727
|
break;
|
|
727
|
-
default:
|
|
728
|
+
default: n = "hachure", d[n] || (d[n] = new i(t));
|
|
728
729
|
}
|
|
729
|
-
return
|
|
730
|
-
}(
|
|
730
|
+
return d[n];
|
|
731
|
+
}(t, C).fillPolygons(e, t);
|
|
731
732
|
}
|
|
732
|
-
function
|
|
733
|
-
let
|
|
734
|
-
return
|
|
733
|
+
function P(e) {
|
|
734
|
+
let t = Object.assign({}, e);
|
|
735
|
+
return t.randomizer = void 0, e.seed && (t.seed = e.seed + 1), t;
|
|
735
736
|
}
|
|
736
|
-
function
|
|
737
|
-
return
|
|
737
|
+
function F(e) {
|
|
738
|
+
return e.randomizer ||= new f(e.seed || 0), e.randomizer.next();
|
|
738
739
|
}
|
|
739
|
-
function
|
|
740
|
-
return
|
|
740
|
+
function I(e, t, n, r = 1) {
|
|
741
|
+
return n.roughness * r * (F(n) * (t - e) + e);
|
|
741
742
|
}
|
|
742
|
-
function
|
|
743
|
-
return
|
|
743
|
+
function L(e, t, n = 1) {
|
|
744
|
+
return I(-e, e, t, n);
|
|
744
745
|
}
|
|
745
|
-
function
|
|
746
|
-
let
|
|
747
|
-
if (
|
|
748
|
-
let
|
|
749
|
-
return
|
|
746
|
+
function R(e, t, n, r, i, a = !1) {
|
|
747
|
+
let o = a ? i.disableMultiStrokeFill : i.disableMultiStroke, s = z(e, t, n, r, i, !0, !1);
|
|
748
|
+
if (o) return s;
|
|
749
|
+
let c = z(e, t, n, r, i, !0, !0);
|
|
750
|
+
return s.concat(c);
|
|
750
751
|
}
|
|
751
|
-
function
|
|
752
|
-
let
|
|
753
|
-
|
|
754
|
-
let
|
|
755
|
-
|
|
756
|
-
let
|
|
757
|
-
|
|
758
|
-
let
|
|
759
|
-
return
|
|
752
|
+
function z(e, t, n, r, i, a, o) {
|
|
753
|
+
let s = (e - n) ** 2 + (t - r) ** 2, c = Math.sqrt(s), l = 1;
|
|
754
|
+
l = c < 200 ? 1 : c > 500 ? .4 : -.0016668 * c + 1.233334;
|
|
755
|
+
let u = i.maxRandomnessOffset || 0;
|
|
756
|
+
u * u * 100 > s && (u = c / 10);
|
|
757
|
+
let d = u / 2, f = .2 + .2 * F(i), p = i.bowing * i.maxRandomnessOffset * (r - t) / 200, m = i.bowing * i.maxRandomnessOffset * (e - n) / 200;
|
|
758
|
+
p = L(p, i, l), m = L(m, i, l);
|
|
759
|
+
let h = [], g = () => L(d, i, l), _ = () => L(u, i, l), v = i.preserveVertices;
|
|
760
|
+
return a && (o ? h.push({
|
|
760
761
|
op: "move",
|
|
761
|
-
data: [
|
|
762
|
-
}) :
|
|
762
|
+
data: [e + (v ? 0 : g()), t + (v ? 0 : g())]
|
|
763
|
+
}) : h.push({
|
|
763
764
|
op: "move",
|
|
764
|
-
data: [
|
|
765
|
-
})),
|
|
765
|
+
data: [e + (v ? 0 : L(u, i, l)), t + (v ? 0 : L(u, i, l))]
|
|
766
|
+
})), o ? h.push({
|
|
766
767
|
op: "bcurveTo",
|
|
767
768
|
data: [
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
769
|
+
p + e + (n - e) * f + g(),
|
|
770
|
+
m + t + (r - t) * f + g(),
|
|
771
|
+
p + e + 2 * (n - e) * f + g(),
|
|
772
|
+
m + t + 2 * (r - t) * f + g(),
|
|
773
|
+
n + (v ? 0 : g()),
|
|
774
|
+
r + (v ? 0 : g())
|
|
774
775
|
]
|
|
775
|
-
}) :
|
|
776
|
+
}) : h.push({
|
|
776
777
|
op: "bcurveTo",
|
|
777
778
|
data: [
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
779
|
+
p + e + (n - e) * f + _(),
|
|
780
|
+
m + t + (r - t) * f + _(),
|
|
781
|
+
p + e + 2 * (n - e) * f + _(),
|
|
782
|
+
m + t + 2 * (r - t) * f + _(),
|
|
783
|
+
n + (v ? 0 : _()),
|
|
784
|
+
r + (v ? 0 : _())
|
|
784
785
|
]
|
|
785
|
-
}),
|
|
786
|
+
}), h;
|
|
786
787
|
}
|
|
787
|
-
function
|
|
788
|
-
if (!
|
|
789
|
-
let
|
|
790
|
-
|
|
791
|
-
for (let
|
|
792
|
-
return
|
|
788
|
+
function B(e, t, n) {
|
|
789
|
+
if (!e.length) return [];
|
|
790
|
+
let r = [];
|
|
791
|
+
r.push([e[0][0] + L(t, n), e[0][1] + L(t, n)]), r.push([e[0][0] + L(t, n), e[0][1] + L(t, n)]);
|
|
792
|
+
for (let i = 1; i < e.length; i++) r.push([e[i][0] + L(t, n), e[i][1] + L(t, n)]), i === e.length - 1 && r.push([e[i][0] + L(t, n), e[i][1] + L(t, n)]);
|
|
793
|
+
return V(r, null, n);
|
|
793
794
|
}
|
|
794
|
-
function
|
|
795
|
-
let
|
|
796
|
-
if (
|
|
797
|
-
let
|
|
798
|
-
|
|
795
|
+
function V(e, t, n) {
|
|
796
|
+
let r = e.length, i = [];
|
|
797
|
+
if (r > 3) {
|
|
798
|
+
let a = [], o = 1 - n.curveTightness;
|
|
799
|
+
i.push({
|
|
799
800
|
op: "move",
|
|
800
|
-
data: [
|
|
801
|
+
data: [e[1][0], e[1][1]]
|
|
801
802
|
});
|
|
802
|
-
for (let
|
|
803
|
-
let
|
|
804
|
-
|
|
803
|
+
for (let t = 1; t + 2 < r; t++) {
|
|
804
|
+
let n = e[t];
|
|
805
|
+
a[0] = [n[0], n[1]], a[1] = [n[0] + (o * e[t + 1][0] - o * e[t - 1][0]) / 6, n[1] + (o * e[t + 1][1] - o * e[t - 1][1]) / 6], a[2] = [e[t + 1][0] + (o * e[t][0] - o * e[t + 2][0]) / 6, e[t + 1][1] + (o * e[t][1] - o * e[t + 2][1]) / 6], a[3] = [e[t + 1][0], e[t + 1][1]], i.push({
|
|
805
806
|
op: "bcurveTo",
|
|
806
807
|
data: [
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
808
|
+
a[1][0],
|
|
809
|
+
a[1][1],
|
|
810
|
+
a[2][0],
|
|
811
|
+
a[2][1],
|
|
812
|
+
a[3][0],
|
|
813
|
+
a[3][1]
|
|
813
814
|
]
|
|
814
815
|
});
|
|
815
816
|
}
|
|
816
|
-
if (
|
|
817
|
-
let
|
|
818
|
-
|
|
817
|
+
if (t && t.length === 2) {
|
|
818
|
+
let e = n.maxRandomnessOffset;
|
|
819
|
+
i.push({
|
|
819
820
|
op: "lineTo",
|
|
820
|
-
data: [
|
|
821
|
+
data: [t[0] + L(e, n), t[1] + L(e, n)]
|
|
821
822
|
});
|
|
822
823
|
}
|
|
823
|
-
} else
|
|
824
|
+
} else r === 3 ? (i.push({
|
|
824
825
|
op: "move",
|
|
825
|
-
data: [
|
|
826
|
-
}),
|
|
826
|
+
data: [e[1][0], e[1][1]]
|
|
827
|
+
}), i.push({
|
|
827
828
|
op: "bcurveTo",
|
|
828
829
|
data: [
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
830
|
+
e[1][0],
|
|
831
|
+
e[1][1],
|
|
832
|
+
e[2][0],
|
|
833
|
+
e[2][1],
|
|
834
|
+
e[2][0],
|
|
835
|
+
e[2][1]
|
|
835
836
|
]
|
|
836
|
-
})) :
|
|
837
|
-
return
|
|
837
|
+
})) : r === 2 && i.push(...z(e[0][0], e[0][1], e[1][0], e[1][1], n, !0, !0));
|
|
838
|
+
return i;
|
|
838
839
|
}
|
|
839
|
-
function
|
|
840
|
-
let
|
|
841
|
-
if (
|
|
842
|
-
|
|
843
|
-
for (let
|
|
844
|
-
let
|
|
845
|
-
|
|
840
|
+
function H(e, t, n, r, i, a, o, s) {
|
|
841
|
+
let c = [], l = [];
|
|
842
|
+
if (s.roughness === 0) {
|
|
843
|
+
e /= 4, l.push([t + r * Math.cos(-e), n + i * Math.sin(-e)]);
|
|
844
|
+
for (let a = 0; a <= 2 * Math.PI; a += e) {
|
|
845
|
+
let e = [t + r * Math.cos(a), n + i * Math.sin(a)];
|
|
846
|
+
c.push(e), l.push(e);
|
|
846
847
|
}
|
|
847
|
-
|
|
848
|
+
l.push([t + r * Math.cos(0), n + i * Math.sin(0)]), l.push([t + r * Math.cos(e), n + i * Math.sin(e)]);
|
|
848
849
|
} else {
|
|
849
|
-
let
|
|
850
|
-
|
|
851
|
-
let
|
|
852
|
-
for (let
|
|
853
|
-
let
|
|
854
|
-
|
|
850
|
+
let u = L(.5, s) - Math.PI / 2;
|
|
851
|
+
l.push([L(a, s) + t + .9 * r * Math.cos(u - e), L(a, s) + n + .9 * i * Math.sin(u - e)]);
|
|
852
|
+
let d = 2 * Math.PI + u - .01;
|
|
853
|
+
for (let o = u; o < d; o += e) {
|
|
854
|
+
let e = [L(a, s) + t + r * Math.cos(o), L(a, s) + n + i * Math.sin(o)];
|
|
855
|
+
c.push(e), l.push(e);
|
|
855
856
|
}
|
|
856
|
-
|
|
857
|
+
l.push([L(a, s) + t + r * Math.cos(u + 2 * Math.PI + .5 * o), L(a, s) + n + i * Math.sin(u + 2 * Math.PI + .5 * o)]), l.push([L(a, s) + t + .98 * r * Math.cos(u + o), L(a, s) + n + .98 * i * Math.sin(u + o)]), l.push([L(a, s) + t + .9 * r * Math.cos(u + .5 * o), L(a, s) + n + .9 * i * Math.sin(u + .5 * o)]);
|
|
857
858
|
}
|
|
858
|
-
return [
|
|
859
|
+
return [l, c];
|
|
859
860
|
}
|
|
860
|
-
function
|
|
861
|
-
let
|
|
862
|
-
|
|
863
|
-
for (let
|
|
864
|
-
return
|
|
861
|
+
function U(e, t, n, r, i, a, o, s, c) {
|
|
862
|
+
let l = a + L(.1, c), u = [];
|
|
863
|
+
u.push([L(s, c) + t + .9 * r * Math.cos(l - e), L(s, c) + n + .9 * i * Math.sin(l - e)]);
|
|
864
|
+
for (let a = l; a <= o; a += e) u.push([L(s, c) + t + r * Math.cos(a), L(s, c) + n + i * Math.sin(a)]);
|
|
865
|
+
return u.push([t + r * Math.cos(o), n + i * Math.sin(o)]), u.push([t + r * Math.cos(o), n + i * Math.sin(o)]), V(u, null, c);
|
|
865
866
|
}
|
|
866
|
-
function
|
|
867
|
-
let
|
|
868
|
-
for (let
|
|
867
|
+
function ee(e, t, n, r, i, a, o, s) {
|
|
868
|
+
let c = [], l = [s.maxRandomnessOffset || 1, (s.maxRandomnessOffset || 1) + .3], u = [0, 0], d = s.disableMultiStroke ? 1 : 2, f = s.preserveVertices;
|
|
869
|
+
for (let p = 0; p < d; p++) p === 0 ? c.push({
|
|
869
870
|
op: "move",
|
|
870
|
-
data: [
|
|
871
|
-
}) :
|
|
871
|
+
data: [o[0], o[1]]
|
|
872
|
+
}) : c.push({
|
|
872
873
|
op: "move",
|
|
873
|
-
data: [
|
|
874
|
-
}),
|
|
874
|
+
data: [o[0] + (f ? 0 : L(l[0], s)), o[1] + (f ? 0 : L(l[0], s))]
|
|
875
|
+
}), u = f ? [i, a] : [i + L(l[p], s), a + L(l[p], s)], c.push({
|
|
875
876
|
op: "bcurveTo",
|
|
876
877
|
data: [
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
878
|
+
e + L(l[p], s),
|
|
879
|
+
t + L(l[p], s),
|
|
880
|
+
n + L(l[p], s),
|
|
881
|
+
r + L(l[p], s),
|
|
882
|
+
u[0],
|
|
883
|
+
u[1]
|
|
883
884
|
]
|
|
884
885
|
});
|
|
885
|
-
return
|
|
886
|
+
return c;
|
|
886
887
|
}
|
|
887
|
-
function
|
|
888
|
-
return [...
|
|
888
|
+
function W(e) {
|
|
889
|
+
return [...e];
|
|
889
890
|
}
|
|
890
|
-
function
|
|
891
|
-
let
|
|
892
|
-
if (
|
|
893
|
-
let
|
|
894
|
-
if (
|
|
891
|
+
function G(e, t = 0) {
|
|
892
|
+
let n = e.length;
|
|
893
|
+
if (n < 3) throw Error("A curve must have at least three points.");
|
|
894
|
+
let r = [];
|
|
895
|
+
if (n === 3) r.push(W(e[0]), W(e[1]), W(e[2]), W(e[2]));
|
|
895
896
|
else {
|
|
896
|
-
let
|
|
897
|
-
|
|
898
|
-
for (let
|
|
899
|
-
let
|
|
900
|
-
|
|
901
|
-
for (let
|
|
902
|
-
let
|
|
903
|
-
|
|
897
|
+
let n = [];
|
|
898
|
+
n.push(e[0], e[0]);
|
|
899
|
+
for (let t = 1; t < e.length; t++) n.push(e[t]), t === e.length - 1 && n.push(e[t]);
|
|
900
|
+
let i = [], a = 1 - t;
|
|
901
|
+
r.push(W(n[0]));
|
|
902
|
+
for (let e = 1; e + 2 < n.length; e++) {
|
|
903
|
+
let t = n[e];
|
|
904
|
+
i[0] = [t[0], t[1]], i[1] = [t[0] + (a * n[e + 1][0] - a * n[e - 1][0]) / 6, t[1] + (a * n[e + 1][1] - a * n[e - 1][1]) / 6], i[2] = [n[e + 1][0] + (a * n[e][0] - a * n[e + 2][0]) / 6, n[e + 1][1] + (a * n[e][1] - a * n[e + 2][1]) / 6], i[3] = [n[e + 1][0], n[e + 1][1]], r.push(i[1], i[2], i[3]);
|
|
904
905
|
}
|
|
905
906
|
}
|
|
906
|
-
return
|
|
907
|
+
return r;
|
|
907
908
|
}
|
|
908
|
-
function
|
|
909
|
-
return (
|
|
909
|
+
function K(e, t) {
|
|
910
|
+
return (e[0] - t[0]) ** 2 + (e[1] - t[1]) ** 2;
|
|
910
911
|
}
|
|
911
|
-
function
|
|
912
|
-
let
|
|
913
|
-
if (
|
|
914
|
-
let
|
|
915
|
-
return
|
|
912
|
+
function te(e, t, n) {
|
|
913
|
+
let r = K(t, n);
|
|
914
|
+
if (r === 0) return K(e, t);
|
|
915
|
+
let i = ((e[0] - t[0]) * (n[0] - t[0]) + (e[1] - t[1]) * (n[1] - t[1])) / r;
|
|
916
|
+
return i = Math.max(0, Math.min(1, i)), K(e, q(t, n, i));
|
|
916
917
|
}
|
|
917
|
-
function
|
|
918
|
-
return [
|
|
918
|
+
function q(e, t, n) {
|
|
919
|
+
return [e[0] + (t[0] - e[0]) * n, e[1] + (t[1] - e[1]) * n];
|
|
919
920
|
}
|
|
920
|
-
function
|
|
921
|
-
let
|
|
922
|
-
if (function(
|
|
923
|
-
let
|
|
924
|
-
|
|
925
|
-
let
|
|
926
|
-
|
|
927
|
-
let
|
|
928
|
-
|
|
929
|
-
let
|
|
930
|
-
return
|
|
931
|
-
}(
|
|
932
|
-
let
|
|
933
|
-
|
|
921
|
+
function J(e, t, n, r) {
|
|
922
|
+
let i = r || [];
|
|
923
|
+
if (function(e, t) {
|
|
924
|
+
let n = e[t + 0], r = e[t + 1], i = e[t + 2], a = e[t + 3], o = 3 * r[0] - 2 * n[0] - a[0];
|
|
925
|
+
o *= o;
|
|
926
|
+
let s = 3 * r[1] - 2 * n[1] - a[1];
|
|
927
|
+
s *= s;
|
|
928
|
+
let c = 3 * i[0] - 2 * a[0] - n[0];
|
|
929
|
+
c *= c;
|
|
930
|
+
let l = 3 * i[1] - 2 * a[1] - n[1];
|
|
931
|
+
return l *= l, o < c && (o = c), s < l && (s = l), o + s;
|
|
932
|
+
}(e, t) < n) {
|
|
933
|
+
let n = e[t + 0];
|
|
934
|
+
i.length ? (a = i[i.length - 1], o = n, Math.sqrt(K(a, o))) > 1 && i.push(n) : i.push(n), i.push(e[t + 3]);
|
|
934
935
|
} else {
|
|
935
|
-
let
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
], 0,
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
], 0,
|
|
947
|
-
}
|
|
948
|
-
var
|
|
949
|
-
return
|
|
936
|
+
let r = .5, a = e[t + 0], o = e[t + 1], s = e[t + 2], c = e[t + 3], l = q(a, o, r), u = q(o, s, r), d = q(s, c, r), f = q(l, u, r), p = q(u, d, r), m = q(f, p, r);
|
|
937
|
+
J([
|
|
938
|
+
a,
|
|
939
|
+
l,
|
|
940
|
+
f,
|
|
941
|
+
m
|
|
942
|
+
], 0, n, i), J([
|
|
943
|
+
m,
|
|
944
|
+
p,
|
|
945
|
+
d,
|
|
946
|
+
c
|
|
947
|
+
], 0, n, i);
|
|
948
|
+
}
|
|
949
|
+
var a, o;
|
|
950
|
+
return i;
|
|
950
951
|
}
|
|
951
|
-
function
|
|
952
|
-
return
|
|
952
|
+
function ne(e, t) {
|
|
953
|
+
return Y(e, 0, e.length, t);
|
|
953
954
|
}
|
|
954
|
-
function
|
|
955
|
-
let
|
|
956
|
-
for (let
|
|
957
|
-
let
|
|
958
|
-
|
|
955
|
+
function Y(e, t, n, r, i) {
|
|
956
|
+
let a = i || [], o = e[t], s = e[n - 1], c = 0, l = 1;
|
|
957
|
+
for (let r = t + 1; r < n - 1; ++r) {
|
|
958
|
+
let t = te(e[r], o, s);
|
|
959
|
+
t > c && (c = t, l = r);
|
|
959
960
|
}
|
|
960
|
-
return Math.sqrt(
|
|
961
|
+
return Math.sqrt(c) > r ? (Y(e, t, l + 1, r, a), Y(e, l, n, r, a)) : (a.length || a.push(o), a.push(s)), a;
|
|
961
962
|
}
|
|
962
|
-
function
|
|
963
|
-
let
|
|
964
|
-
for (let
|
|
965
|
-
return
|
|
963
|
+
function X(e, t = .15, n) {
|
|
964
|
+
let r = [], i = (e.length - 1) / 3;
|
|
965
|
+
for (let n = 0; n < i; n++) J(e, 3 * n, t, r);
|
|
966
|
+
return n && n > 0 ? Y(r, 0, r.length, n) : r;
|
|
966
967
|
}
|
|
967
|
-
var
|
|
968
|
-
constructor(
|
|
968
|
+
var Z = "none", Q = class {
|
|
969
|
+
constructor(e) {
|
|
969
970
|
this.defaultOptions = {
|
|
970
971
|
maxRandomnessOffset: 2,
|
|
971
972
|
roughness: 1,
|
|
@@ -987,245 +988,245 @@ var tt = "none", et = class {
|
|
|
987
988
|
disableMultiStrokeFill: !1,
|
|
988
989
|
preserveVertices: !1,
|
|
989
990
|
fillShapeRoughnessGain: .8
|
|
990
|
-
}, this.config =
|
|
991
|
+
}, this.config = e || {}, this.config.options && (this.defaultOptions = this._o(this.config.options));
|
|
991
992
|
}
|
|
992
993
|
static newSeed() {
|
|
993
994
|
return Math.floor(Math.random() * 2 ** 31);
|
|
994
995
|
}
|
|
995
|
-
_o(
|
|
996
|
-
return
|
|
996
|
+
_o(e) {
|
|
997
|
+
return e ? Object.assign({}, this.defaultOptions, e) : this.defaultOptions;
|
|
997
998
|
}
|
|
998
|
-
_d(
|
|
999
|
+
_d(e, t, n) {
|
|
999
1000
|
return {
|
|
1000
|
-
shape:
|
|
1001
|
-
sets:
|
|
1002
|
-
options:
|
|
1001
|
+
shape: e,
|
|
1002
|
+
sets: t || [],
|
|
1003
|
+
options: n || this.defaultOptions
|
|
1003
1004
|
};
|
|
1004
1005
|
}
|
|
1005
|
-
line(
|
|
1006
|
-
let
|
|
1007
|
-
return this._d("line", [
|
|
1008
|
-
}
|
|
1009
|
-
rectangle(
|
|
1010
|
-
let
|
|
1011
|
-
if (
|
|
1012
|
-
let
|
|
1013
|
-
[
|
|
1014
|
-
[
|
|
1015
|
-
[
|
|
1016
|
-
[
|
|
1006
|
+
line(e, t, n, r, i) {
|
|
1007
|
+
let a = this._o(i);
|
|
1008
|
+
return this._d("line", [w(e, t, n, r, a)], a);
|
|
1009
|
+
}
|
|
1010
|
+
rectangle(e, t, n, r, i) {
|
|
1011
|
+
let a = this._o(i), o = [], s = E(e, t, n, r, a);
|
|
1012
|
+
if (a.fill) {
|
|
1013
|
+
let i = [
|
|
1014
|
+
[e, t],
|
|
1015
|
+
[e + n, t],
|
|
1016
|
+
[e + n, t + r],
|
|
1017
|
+
[e, t + r]
|
|
1017
1018
|
];
|
|
1018
|
-
|
|
1019
|
+
a.fillStyle === "solid" ? o.push(M([i], a)) : o.push(N([i], a));
|
|
1019
1020
|
}
|
|
1020
|
-
return
|
|
1021
|
-
}
|
|
1022
|
-
ellipse(
|
|
1023
|
-
let
|
|
1024
|
-
if (
|
|
1025
|
-
let
|
|
1026
|
-
|
|
1027
|
-
} else
|
|
1028
|
-
return
|
|
1029
|
-
}
|
|
1030
|
-
circle(
|
|
1031
|
-
let
|
|
1032
|
-
return
|
|
1033
|
-
}
|
|
1034
|
-
linearPath(
|
|
1035
|
-
let
|
|
1036
|
-
return this._d("linearPath", [
|
|
1037
|
-
}
|
|
1038
|
-
arc(
|
|
1039
|
-
let
|
|
1040
|
-
if (
|
|
1041
|
-
let
|
|
1042
|
-
|
|
1043
|
-
let
|
|
1044
|
-
|
|
1045
|
-
} else
|
|
1046
|
-
let
|
|
1047
|
-
|
|
1048
|
-
let
|
|
1049
|
-
for (;
|
|
1050
|
-
|
|
1051
|
-
let
|
|
1052
|
-
for (let
|
|
1053
|
-
return
|
|
1054
|
-
}(
|
|
1055
|
-
return
|
|
1056
|
-
}
|
|
1057
|
-
curve(
|
|
1058
|
-
let
|
|
1059
|
-
if (
|
|
1060
|
-
let
|
|
1021
|
+
return a.stroke !== Z && o.push(s), this._d("rectangle", o, a);
|
|
1022
|
+
}
|
|
1023
|
+
ellipse(e, t, n, r, i) {
|
|
1024
|
+
let a = this._o(i), o = [], s = O(n, r, a), c = k(e, t, a, s);
|
|
1025
|
+
if (a.fill) if (a.fillStyle === "solid") {
|
|
1026
|
+
let n = k(e, t, a, s).opset;
|
|
1027
|
+
n.type = "fillPath", o.push(n);
|
|
1028
|
+
} else o.push(N([c.estimatedPoints], a));
|
|
1029
|
+
return a.stroke !== Z && o.push(c.opset), this._d("ellipse", o, a);
|
|
1030
|
+
}
|
|
1031
|
+
circle(e, t, n, r) {
|
|
1032
|
+
let i = this.ellipse(e, t, n, n, r);
|
|
1033
|
+
return i.shape = "circle", i;
|
|
1034
|
+
}
|
|
1035
|
+
linearPath(e, t) {
|
|
1036
|
+
let n = this._o(t);
|
|
1037
|
+
return this._d("linearPath", [T(e, !1, n)], n);
|
|
1038
|
+
}
|
|
1039
|
+
arc(e, t, n, r, i, a, o = !1, s) {
|
|
1040
|
+
let c = this._o(s), l = [], u = A(e, t, n, r, i, a, o, !0, c);
|
|
1041
|
+
if (o && c.fill) if (c.fillStyle === "solid") {
|
|
1042
|
+
let o = Object.assign({}, c);
|
|
1043
|
+
o.disableMultiStroke = !0;
|
|
1044
|
+
let s = A(e, t, n, r, i, a, !0, !1, o);
|
|
1045
|
+
s.type = "fillPath", l.push(s);
|
|
1046
|
+
} else l.push(function(e, t, n, r, i, a, o) {
|
|
1047
|
+
let s = e, c = t, l = Math.abs(n / 2), u = Math.abs(r / 2);
|
|
1048
|
+
l += L(.01 * l, o), u += L(.01 * u, o);
|
|
1049
|
+
let d = i, f = a;
|
|
1050
|
+
for (; d < 0;) d += 2 * Math.PI, f += 2 * Math.PI;
|
|
1051
|
+
f - d > 2 * Math.PI && (d = 0, f = 2 * Math.PI);
|
|
1052
|
+
let p = (f - d) / o.curveStepCount, m = [];
|
|
1053
|
+
for (let e = d; e <= f; e += p) m.push([s + l * Math.cos(e), c + u * Math.sin(e)]);
|
|
1054
|
+
return m.push([s + l * Math.cos(f), c + u * Math.sin(f)]), m.push([s, c]), N([m], o);
|
|
1055
|
+
}(e, t, n, r, i, a, c));
|
|
1056
|
+
return c.stroke !== Z && l.push(u), this._d("arc", l, c);
|
|
1057
|
+
}
|
|
1058
|
+
curve(e, t) {
|
|
1059
|
+
let n = this._o(t), r = [], i = D(e, n);
|
|
1060
|
+
if (n.fill && n.fill !== Z) if (n.fillStyle === "solid") {
|
|
1061
|
+
let t = D(e, Object.assign(Object.assign({}, n), {
|
|
1061
1062
|
disableMultiStroke: !0,
|
|
1062
|
-
roughness:
|
|
1063
|
+
roughness: n.roughness ? n.roughness + n.fillShapeRoughnessGain : 0
|
|
1063
1064
|
}));
|
|
1064
|
-
|
|
1065
|
+
r.push({
|
|
1065
1066
|
type: "fillPath",
|
|
1066
|
-
ops: this._mergedShape(
|
|
1067
|
+
ops: this._mergedShape(t.ops)
|
|
1067
1068
|
});
|
|
1068
1069
|
} else {
|
|
1069
|
-
let
|
|
1070
|
-
if (
|
|
1071
|
-
let
|
|
1072
|
-
for (let
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
]), 10, (1 +
|
|
1070
|
+
let t = [], i = e;
|
|
1071
|
+
if (i.length) {
|
|
1072
|
+
let e = typeof i[0][0] == "number" ? [i] : i;
|
|
1073
|
+
for (let r of e) r.length < 3 ? t.push(...r) : r.length === 3 ? t.push(...X(G([
|
|
1074
|
+
r[0],
|
|
1075
|
+
r[0],
|
|
1076
|
+
r[1],
|
|
1077
|
+
r[2]
|
|
1078
|
+
]), 10, (1 + n.roughness) / 2)) : t.push(...X(G(r), 10, (1 + n.roughness) / 2));
|
|
1078
1079
|
}
|
|
1079
|
-
|
|
1080
|
+
t.length && r.push(N([t], n));
|
|
1080
1081
|
}
|
|
1081
|
-
return
|
|
1082
|
-
}
|
|
1083
|
-
polygon(
|
|
1084
|
-
let
|
|
1085
|
-
return
|
|
1086
|
-
}
|
|
1087
|
-
path(
|
|
1088
|
-
let
|
|
1089
|
-
if (!
|
|
1090
|
-
|
|
1091
|
-
let
|
|
1092
|
-
let
|
|
1093
|
-
|
|
1094
|
-
},
|
|
1095
|
-
|
|
1082
|
+
return n.stroke !== Z && r.push(i), this._d("curve", r, n);
|
|
1083
|
+
}
|
|
1084
|
+
polygon(e, t) {
|
|
1085
|
+
let n = this._o(t), r = [], i = T(e, !0, n);
|
|
1086
|
+
return n.fill && (n.fillStyle === "solid" ? r.push(M([e], n)) : r.push(N([e], n))), n.stroke !== Z && r.push(i), this._d("polygon", r, n);
|
|
1087
|
+
}
|
|
1088
|
+
path(e, t) {
|
|
1089
|
+
let n = this._o(t), r = [];
|
|
1090
|
+
if (!e) return this._d("path", r, n);
|
|
1091
|
+
e = (e || "").replace(/\n/g, " ").replace(/(-\s)/g, "-").replace("/(ss)/g", " ");
|
|
1092
|
+
let i = n.fill && n.fill !== "transparent" && n.fill !== Z, a = n.stroke !== Z, o = !!(n.simplification && n.simplification < 1), s = function(e, t, n) {
|
|
1093
|
+
let r = b(y(v(e))), i = [], a = [], o = [0, 0], s = [], c = () => {
|
|
1094
|
+
s.length >= 4 && a.push(...X(s, t)), s = [];
|
|
1095
|
+
}, l = () => {
|
|
1096
|
+
c(), a.length && (i.push(a), a = []);
|
|
1096
1097
|
};
|
|
1097
|
-
for (let { key:
|
|
1098
|
+
for (let { key: e, data: t } of r) switch (e) {
|
|
1098
1099
|
case "M":
|
|
1099
|
-
|
|
1100
|
+
l(), o = [t[0], t[1]], a.push(o);
|
|
1100
1101
|
break;
|
|
1101
1102
|
case "L":
|
|
1102
|
-
|
|
1103
|
+
c(), a.push([t[0], t[1]]);
|
|
1103
1104
|
break;
|
|
1104
1105
|
case "C":
|
|
1105
|
-
if (!
|
|
1106
|
-
let
|
|
1107
|
-
|
|
1106
|
+
if (!s.length) {
|
|
1107
|
+
let e = a.length ? a[a.length - 1] : o;
|
|
1108
|
+
s.push([e[0], e[1]]);
|
|
1108
1109
|
}
|
|
1109
|
-
|
|
1110
|
+
s.push([t[0], t[1]]), s.push([t[2], t[3]]), s.push([t[4], t[5]]);
|
|
1110
1111
|
break;
|
|
1111
|
-
case "Z":
|
|
1112
|
+
case "Z": c(), a.push([o[0], o[1]]);
|
|
1112
1113
|
}
|
|
1113
|
-
if (
|
|
1114
|
-
let
|
|
1115
|
-
for (let
|
|
1116
|
-
let
|
|
1117
|
-
|
|
1114
|
+
if (l(), !n) return i;
|
|
1115
|
+
let u = [];
|
|
1116
|
+
for (let e of i) {
|
|
1117
|
+
let t = ne(e, n);
|
|
1118
|
+
t.length && u.push(t);
|
|
1118
1119
|
}
|
|
1119
|
-
return
|
|
1120
|
-
}(
|
|
1121
|
-
if (
|
|
1122
|
-
let
|
|
1120
|
+
return u;
|
|
1121
|
+
}(e, 1, o ? 4 - 4 * (n.simplification || 1) : (1 + n.roughness) / 2), c = j(e, n);
|
|
1122
|
+
if (i) if (n.fillStyle === "solid") if (s.length === 1) {
|
|
1123
|
+
let t = j(e, Object.assign(Object.assign({}, n), {
|
|
1123
1124
|
disableMultiStroke: !0,
|
|
1124
|
-
roughness:
|
|
1125
|
+
roughness: n.roughness ? n.roughness + n.fillShapeRoughnessGain : 0
|
|
1125
1126
|
}));
|
|
1126
|
-
|
|
1127
|
+
r.push({
|
|
1127
1128
|
type: "fillPath",
|
|
1128
|
-
ops: this._mergedShape(
|
|
1129
|
+
ops: this._mergedShape(t.ops)
|
|
1129
1130
|
});
|
|
1130
|
-
} else
|
|
1131
|
-
else
|
|
1132
|
-
return
|
|
1133
|
-
|
|
1134
|
-
})) :
|
|
1135
|
-
}
|
|
1136
|
-
opsToPath(
|
|
1137
|
-
let
|
|
1138
|
-
for (let
|
|
1139
|
-
let
|
|
1140
|
-
switch (
|
|
1131
|
+
} else r.push(M(s, n));
|
|
1132
|
+
else r.push(N(s, n));
|
|
1133
|
+
return a && (o ? s.forEach(((e) => {
|
|
1134
|
+
r.push(T(e, !1, n));
|
|
1135
|
+
})) : r.push(c)), this._d("path", r, n);
|
|
1136
|
+
}
|
|
1137
|
+
opsToPath(e, t) {
|
|
1138
|
+
let n = "";
|
|
1139
|
+
for (let r of e.ops) {
|
|
1140
|
+
let e = typeof t == "number" && t >= 0 ? r.data.map(((e) => +e.toFixed(t))) : r.data;
|
|
1141
|
+
switch (r.op) {
|
|
1141
1142
|
case "move":
|
|
1142
|
-
|
|
1143
|
+
n += `M${e[0]} ${e[1]} `;
|
|
1143
1144
|
break;
|
|
1144
1145
|
case "bcurveTo":
|
|
1145
|
-
|
|
1146
|
+
n += `C${e[0]} ${e[1]}, ${e[2]} ${e[3]}, ${e[4]} ${e[5]} `;
|
|
1146
1147
|
break;
|
|
1147
|
-
case "lineTo":
|
|
1148
|
+
case "lineTo": n += `L${e[0]} ${e[1]} `;
|
|
1148
1149
|
}
|
|
1149
1150
|
}
|
|
1150
|
-
return
|
|
1151
|
+
return n.trim();
|
|
1151
1152
|
}
|
|
1152
|
-
toPaths(
|
|
1153
|
-
let
|
|
1154
|
-
for (let
|
|
1155
|
-
let
|
|
1156
|
-
switch (
|
|
1153
|
+
toPaths(e) {
|
|
1154
|
+
let t = e.sets || [], n = e.options || this.defaultOptions, r = [];
|
|
1155
|
+
for (let e of t) {
|
|
1156
|
+
let t = null;
|
|
1157
|
+
switch (e.type) {
|
|
1157
1158
|
case "path":
|
|
1158
|
-
|
|
1159
|
-
d: this.opsToPath(
|
|
1160
|
-
stroke:
|
|
1161
|
-
strokeWidth:
|
|
1162
|
-
fill:
|
|
1159
|
+
t = {
|
|
1160
|
+
d: this.opsToPath(e),
|
|
1161
|
+
stroke: n.stroke,
|
|
1162
|
+
strokeWidth: n.strokeWidth,
|
|
1163
|
+
fill: Z
|
|
1163
1164
|
};
|
|
1164
1165
|
break;
|
|
1165
1166
|
case "fillPath":
|
|
1166
|
-
|
|
1167
|
-
d: this.opsToPath(
|
|
1168
|
-
stroke:
|
|
1167
|
+
t = {
|
|
1168
|
+
d: this.opsToPath(e),
|
|
1169
|
+
stroke: Z,
|
|
1169
1170
|
strokeWidth: 0,
|
|
1170
|
-
fill:
|
|
1171
|
+
fill: n.fill || Z
|
|
1171
1172
|
};
|
|
1172
1173
|
break;
|
|
1173
|
-
case "fillSketch":
|
|
1174
|
+
case "fillSketch": t = this.fillSketch(e, n);
|
|
1174
1175
|
}
|
|
1175
|
-
|
|
1176
|
+
t && r.push(t);
|
|
1176
1177
|
}
|
|
1177
|
-
return
|
|
1178
|
-
}
|
|
1179
|
-
fillSketch(
|
|
1180
|
-
let
|
|
1181
|
-
return
|
|
1182
|
-
d: this.opsToPath(
|
|
1183
|
-
stroke:
|
|
1184
|
-
strokeWidth:
|
|
1185
|
-
fill:
|
|
1178
|
+
return r;
|
|
1179
|
+
}
|
|
1180
|
+
fillSketch(e, t) {
|
|
1181
|
+
let n = t.fillWeight;
|
|
1182
|
+
return n < 0 && (n = t.strokeWidth / 2), {
|
|
1183
|
+
d: this.opsToPath(e),
|
|
1184
|
+
stroke: t.fill || Z,
|
|
1185
|
+
strokeWidth: n,
|
|
1186
|
+
fill: Z
|
|
1186
1187
|
};
|
|
1187
1188
|
}
|
|
1188
|
-
_mergedShape(
|
|
1189
|
-
return
|
|
1189
|
+
_mergedShape(e) {
|
|
1190
|
+
return e.filter(((e, t) => t === 0 || e.op !== "move"));
|
|
1190
1191
|
}
|
|
1191
|
-
},
|
|
1192
|
-
constructor(
|
|
1193
|
-
this.canvas =
|
|
1192
|
+
}, re = class {
|
|
1193
|
+
constructor(e, t) {
|
|
1194
|
+
this.canvas = e, this.ctx = this.canvas.getContext("2d"), this.gen = new Q(t);
|
|
1194
1195
|
}
|
|
1195
|
-
draw(
|
|
1196
|
-
let
|
|
1197
|
-
for (let
|
|
1196
|
+
draw(e) {
|
|
1197
|
+
let t = e.sets || [], n = e.options || this.getDefaultOptions(), r = this.ctx, i = e.options.fixedDecimalPlaceDigits;
|
|
1198
|
+
for (let a of t) switch (a.type) {
|
|
1198
1199
|
case "path":
|
|
1199
|
-
|
|
1200
|
+
r.save(), r.strokeStyle = n.stroke === "none" ? "transparent" : n.stroke, r.lineWidth = n.strokeWidth, n.strokeLineDash && r.setLineDash(n.strokeLineDash), n.strokeLineDashOffset && (r.lineDashOffset = n.strokeLineDashOffset), this._drawToContext(r, a, i), r.restore();
|
|
1200
1201
|
break;
|
|
1201
1202
|
case "fillPath": {
|
|
1202
|
-
|
|
1203
|
-
let
|
|
1204
|
-
this._drawToContext(
|
|
1203
|
+
r.save(), r.fillStyle = n.fill || "";
|
|
1204
|
+
let t = e.shape === "curve" || e.shape === "polygon" || e.shape === "path" ? "evenodd" : "nonzero";
|
|
1205
|
+
this._drawToContext(r, a, i, t), r.restore();
|
|
1205
1206
|
break;
|
|
1206
1207
|
}
|
|
1207
|
-
case "fillSketch": this.fillSketch(
|
|
1208
|
+
case "fillSketch": this.fillSketch(r, a, n);
|
|
1208
1209
|
}
|
|
1209
1210
|
}
|
|
1210
|
-
fillSketch(
|
|
1211
|
-
let
|
|
1212
|
-
|
|
1211
|
+
fillSketch(e, t, n) {
|
|
1212
|
+
let r = n.fillWeight;
|
|
1213
|
+
r < 0 && (r = n.strokeWidth / 2), e.save(), n.fillLineDash && e.setLineDash(n.fillLineDash), n.fillLineDashOffset && (e.lineDashOffset = n.fillLineDashOffset), e.strokeStyle = n.fill || "", e.lineWidth = r, this._drawToContext(e, t, n.fixedDecimalPlaceDigits), e.restore();
|
|
1213
1214
|
}
|
|
1214
|
-
_drawToContext(
|
|
1215
|
-
|
|
1216
|
-
for (let
|
|
1217
|
-
let
|
|
1218
|
-
switch (
|
|
1215
|
+
_drawToContext(e, t, n, r = "nonzero") {
|
|
1216
|
+
e.beginPath();
|
|
1217
|
+
for (let r of t.ops) {
|
|
1218
|
+
let t = typeof n == "number" && n >= 0 ? r.data.map(((e) => +e.toFixed(n))) : r.data;
|
|
1219
|
+
switch (r.op) {
|
|
1219
1220
|
case "move":
|
|
1220
|
-
|
|
1221
|
+
e.moveTo(t[0], t[1]);
|
|
1221
1222
|
break;
|
|
1222
1223
|
case "bcurveTo":
|
|
1223
|
-
|
|
1224
|
+
e.bezierCurveTo(t[0], t[1], t[2], t[3], t[4], t[5]);
|
|
1224
1225
|
break;
|
|
1225
|
-
case "lineTo":
|
|
1226
|
+
case "lineTo": e.lineTo(t[0], t[1]);
|
|
1226
1227
|
}
|
|
1227
1228
|
}
|
|
1228
|
-
|
|
1229
|
+
t.type === "fillPath" ? e.fill(r) : e.stroke();
|
|
1229
1230
|
}
|
|
1230
1231
|
get generator() {
|
|
1231
1232
|
return this.gen;
|
|
@@ -1233,68 +1234,68 @@ var tt = "none", et = class {
|
|
|
1233
1234
|
getDefaultOptions() {
|
|
1234
1235
|
return this.gen.defaultOptions;
|
|
1235
1236
|
}
|
|
1236
|
-
line(
|
|
1237
|
-
let
|
|
1238
|
-
return this.draw(
|
|
1237
|
+
line(e, t, n, r, i) {
|
|
1238
|
+
let a = this.gen.line(e, t, n, r, i);
|
|
1239
|
+
return this.draw(a), a;
|
|
1239
1240
|
}
|
|
1240
|
-
rectangle(
|
|
1241
|
-
let
|
|
1242
|
-
return this.draw(
|
|
1241
|
+
rectangle(e, t, n, r, i) {
|
|
1242
|
+
let a = this.gen.rectangle(e, t, n, r, i);
|
|
1243
|
+
return this.draw(a), a;
|
|
1243
1244
|
}
|
|
1244
|
-
ellipse(
|
|
1245
|
-
let
|
|
1246
|
-
return this.draw(
|
|
1245
|
+
ellipse(e, t, n, r, i) {
|
|
1246
|
+
let a = this.gen.ellipse(e, t, n, r, i);
|
|
1247
|
+
return this.draw(a), a;
|
|
1247
1248
|
}
|
|
1248
|
-
circle(
|
|
1249
|
-
let
|
|
1250
|
-
return this.draw(
|
|
1249
|
+
circle(e, t, n, r) {
|
|
1250
|
+
let i = this.gen.circle(e, t, n, r);
|
|
1251
|
+
return this.draw(i), i;
|
|
1251
1252
|
}
|
|
1252
|
-
linearPath(
|
|
1253
|
-
let
|
|
1254
|
-
return this.draw(
|
|
1253
|
+
linearPath(e, t) {
|
|
1254
|
+
let n = this.gen.linearPath(e, t);
|
|
1255
|
+
return this.draw(n), n;
|
|
1255
1256
|
}
|
|
1256
|
-
polygon(
|
|
1257
|
-
let
|
|
1258
|
-
return this.draw(
|
|
1257
|
+
polygon(e, t) {
|
|
1258
|
+
let n = this.gen.polygon(e, t);
|
|
1259
|
+
return this.draw(n), n;
|
|
1259
1260
|
}
|
|
1260
|
-
arc(
|
|
1261
|
-
let
|
|
1262
|
-
return this.draw(
|
|
1261
|
+
arc(e, t, n, r, i, a, o = !1, s) {
|
|
1262
|
+
let c = this.gen.arc(e, t, n, r, i, a, o, s);
|
|
1263
|
+
return this.draw(c), c;
|
|
1263
1264
|
}
|
|
1264
|
-
curve(
|
|
1265
|
-
let
|
|
1266
|
-
return this.draw(
|
|
1265
|
+
curve(e, t) {
|
|
1266
|
+
let n = this.gen.curve(e, t);
|
|
1267
|
+
return this.draw(n), n;
|
|
1267
1268
|
}
|
|
1268
|
-
path(
|
|
1269
|
-
let
|
|
1270
|
-
return this.draw(
|
|
1269
|
+
path(e, t) {
|
|
1270
|
+
let n = this.gen.path(e, t);
|
|
1271
|
+
return this.draw(n), n;
|
|
1271
1272
|
}
|
|
1272
|
-
},
|
|
1273
|
-
constructor(
|
|
1274
|
-
this.svg =
|
|
1273
|
+
}, $ = "http://www.w3.org/2000/svg", ie = class {
|
|
1274
|
+
constructor(e, t) {
|
|
1275
|
+
this.svg = e, this.gen = new Q(t);
|
|
1275
1276
|
}
|
|
1276
|
-
draw(
|
|
1277
|
-
let
|
|
1278
|
-
for (let
|
|
1279
|
-
let
|
|
1280
|
-
switch (
|
|
1277
|
+
draw(e) {
|
|
1278
|
+
let t = e.sets || [], n = e.options || this.getDefaultOptions(), r = this.svg.ownerDocument || window.document, i = r.createElementNS($, "g"), a = e.options.fixedDecimalPlaceDigits;
|
|
1279
|
+
for (let o of t) {
|
|
1280
|
+
let t = null;
|
|
1281
|
+
switch (o.type) {
|
|
1281
1282
|
case "path":
|
|
1282
|
-
|
|
1283
|
+
t = r.createElementNS($, "path"), t.setAttribute("d", this.opsToPath(o, a)), t.setAttribute("stroke", n.stroke), t.setAttribute("stroke-width", n.strokeWidth + ""), t.setAttribute("fill", "none"), n.strokeLineDash && t.setAttribute("stroke-dasharray", n.strokeLineDash.join(" ").trim()), n.strokeLineDashOffset && t.setAttribute("stroke-dashoffset", `${n.strokeLineDashOffset}`);
|
|
1283
1284
|
break;
|
|
1284
1285
|
case "fillPath":
|
|
1285
|
-
|
|
1286
|
+
t = r.createElementNS($, "path"), t.setAttribute("d", this.opsToPath(o, a)), t.setAttribute("stroke", "none"), t.setAttribute("stroke-width", "0"), t.setAttribute("fill", n.fill || ""), e.shape !== "curve" && e.shape !== "polygon" || t.setAttribute("fill-rule", "evenodd");
|
|
1286
1287
|
break;
|
|
1287
|
-
case "fillSketch":
|
|
1288
|
+
case "fillSketch": t = this.fillSketch(r, o, n);
|
|
1288
1289
|
}
|
|
1289
|
-
|
|
1290
|
+
t && i.appendChild(t);
|
|
1290
1291
|
}
|
|
1291
|
-
return
|
|
1292
|
+
return i;
|
|
1292
1293
|
}
|
|
1293
|
-
fillSketch(
|
|
1294
|
-
let
|
|
1295
|
-
|
|
1296
|
-
let
|
|
1297
|
-
return
|
|
1294
|
+
fillSketch(e, t, n) {
|
|
1295
|
+
let r = n.fillWeight;
|
|
1296
|
+
r < 0 && (r = n.strokeWidth / 2);
|
|
1297
|
+
let i = e.createElementNS($, "path");
|
|
1298
|
+
return i.setAttribute("d", this.opsToPath(t, n.fixedDecimalPlaceDigits)), i.setAttribute("stroke", n.fill || ""), i.setAttribute("stroke-width", r + ""), i.setAttribute("fill", "none"), n.fillLineDash && i.setAttribute("stroke-dasharray", n.fillLineDash.join(" ").trim()), n.fillLineDashOffset && i.setAttribute("stroke-dashoffset", `${n.fillLineDashOffset}`), i;
|
|
1298
1299
|
}
|
|
1299
1300
|
get generator() {
|
|
1300
1301
|
return this.gen;
|
|
@@ -1302,49 +1303,50 @@ var tt = "none", et = class {
|
|
|
1302
1303
|
getDefaultOptions() {
|
|
1303
1304
|
return this.gen.defaultOptions;
|
|
1304
1305
|
}
|
|
1305
|
-
opsToPath(
|
|
1306
|
-
return this.gen.opsToPath(
|
|
1306
|
+
opsToPath(e, t) {
|
|
1307
|
+
return this.gen.opsToPath(e, t);
|
|
1307
1308
|
}
|
|
1308
|
-
line(
|
|
1309
|
-
let
|
|
1310
|
-
return this.draw(
|
|
1309
|
+
line(e, t, n, r, i) {
|
|
1310
|
+
let a = this.gen.line(e, t, n, r, i);
|
|
1311
|
+
return this.draw(a);
|
|
1311
1312
|
}
|
|
1312
|
-
rectangle(
|
|
1313
|
-
let
|
|
1314
|
-
return this.draw(
|
|
1313
|
+
rectangle(e, t, n, r, i) {
|
|
1314
|
+
let a = this.gen.rectangle(e, t, n, r, i);
|
|
1315
|
+
return this.draw(a);
|
|
1315
1316
|
}
|
|
1316
|
-
ellipse(
|
|
1317
|
-
let
|
|
1318
|
-
return this.draw(
|
|
1317
|
+
ellipse(e, t, n, r, i) {
|
|
1318
|
+
let a = this.gen.ellipse(e, t, n, r, i);
|
|
1319
|
+
return this.draw(a);
|
|
1319
1320
|
}
|
|
1320
|
-
circle(
|
|
1321
|
-
let
|
|
1322
|
-
return this.draw(
|
|
1321
|
+
circle(e, t, n, r) {
|
|
1322
|
+
let i = this.gen.circle(e, t, n, r);
|
|
1323
|
+
return this.draw(i);
|
|
1323
1324
|
}
|
|
1324
|
-
linearPath(
|
|
1325
|
-
let
|
|
1326
|
-
return this.draw(
|
|
1325
|
+
linearPath(e, t) {
|
|
1326
|
+
let n = this.gen.linearPath(e, t);
|
|
1327
|
+
return this.draw(n);
|
|
1327
1328
|
}
|
|
1328
|
-
polygon(
|
|
1329
|
-
let
|
|
1330
|
-
return this.draw(
|
|
1329
|
+
polygon(e, t) {
|
|
1330
|
+
let n = this.gen.polygon(e, t);
|
|
1331
|
+
return this.draw(n);
|
|
1331
1332
|
}
|
|
1332
|
-
arc(
|
|
1333
|
-
let
|
|
1334
|
-
return this.draw(
|
|
1333
|
+
arc(e, t, n, r, i, a, o = !1, s) {
|
|
1334
|
+
let c = this.gen.arc(e, t, n, r, i, a, o, s);
|
|
1335
|
+
return this.draw(c);
|
|
1335
1336
|
}
|
|
1336
|
-
curve(
|
|
1337
|
-
let
|
|
1338
|
-
return this.draw(
|
|
1337
|
+
curve(e, t) {
|
|
1338
|
+
let n = this.gen.curve(e, t);
|
|
1339
|
+
return this.draw(n);
|
|
1339
1340
|
}
|
|
1340
|
-
path(
|
|
1341
|
-
let
|
|
1342
|
-
return this.draw(
|
|
1341
|
+
path(e, t) {
|
|
1342
|
+
let n = this.gen.path(e, t);
|
|
1343
|
+
return this.draw(n);
|
|
1343
1344
|
}
|
|
1344
|
-
},
|
|
1345
|
-
canvas: (
|
|
1346
|
-
svg: (
|
|
1347
|
-
generator: (
|
|
1348
|
-
newSeed: () =>
|
|
1345
|
+
}, ae = {
|
|
1346
|
+
canvas: (e, t) => new re(e, t),
|
|
1347
|
+
svg: (e, t) => new ie(e, t),
|
|
1348
|
+
generator: (e) => new Q(e),
|
|
1349
|
+
newSeed: () => Q.newSeed()
|
|
1349
1350
|
};
|
|
1350
|
-
|
|
1351
|
+
//#endregion
|
|
1352
|
+
export { ae as at };
|