@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.
Files changed (1771) hide show
  1. package/dist/_virtual/_rolldown/runtime.js +20 -0
  2. package/dist/api/auth.js +4 -2
  3. package/dist/api/client.js +9 -7
  4. package/dist/api/config.js +7 -5
  5. package/dist/api/dashboard.js +4 -2
  6. package/dist/api/documents.js +4 -2
  7. package/dist/api/index.js +21 -23
  8. package/dist/api/processor.js +5 -3
  9. package/dist/api/secrets.js +4 -2
  10. package/dist/api/workflows.js +11 -3
  11. package/dist/api/workspaces.js +4 -2
  12. package/dist/app/EnvironmentEmbedRoot.js +24 -31
  13. package/dist/components/ai-elements/code-block.js +53 -71
  14. package/dist/components/ai-elements/message.js +41 -82
  15. package/dist/components/ai-elements/prompt-input.js +162 -253
  16. package/dist/components/ai-elements/reasoning.js +78 -116
  17. package/dist/components/ai-elements/shimmer.js +23 -35
  18. package/dist/components/ai-elements/sources.js +29 -58
  19. package/dist/components/data-table/ConfirmDialog.js +14 -30
  20. package/dist/components/data-table/DataList.js +138 -198
  21. package/dist/components/data-table/DataTable.js +168 -234
  22. package/dist/components/data-table/DataTableBatchAction.js +18 -27
  23. package/dist/components/data-table/DataTableFilters.js +53 -78
  24. package/dist/components/data-table/DataTablePagination.js +72 -104
  25. package/dist/components/data-table/DataTableToolbar.js +53 -65
  26. package/dist/components/dynamic-form/ArrayController.js +85 -103
  27. package/dist/components/dynamic-form/CodeContent.js +28 -36
  28. package/dist/components/dynamic-form/Form.js +43 -56
  29. package/dist/components/dynamic-form/FormBody.js +12 -10
  30. package/dist/components/dynamic-form/FormElement.js +31 -41
  31. package/dist/components/dynamic-form/FormElementHeader.js +12 -20
  32. package/dist/components/dynamic-form/InputController.js +36 -38
  33. package/dist/components/dynamic-form/MarkdownContent.js +53 -74
  34. package/dist/components/dynamic-form/MermaidDiagram.js +22 -24
  35. package/dist/components/dynamic-form/ObjectController.js +24 -32
  36. package/dist/components/dynamic-form/fields/BaseFieldWrapper.js +35 -47
  37. package/dist/components/dynamic-form/fields/CheckboxField.js +39 -48
  38. package/dist/components/dynamic-form/fields/CodeViewField.js +42 -50
  39. package/dist/components/dynamic-form/fields/InputField.js +62 -90
  40. package/dist/components/dynamic-form/fields/MarkdownViewField.js +16 -19
  41. package/dist/components/dynamic-form/fields/RadioField.js +46 -62
  42. package/dist/components/dynamic-form/fields/SelectField.js +40 -58
  43. package/dist/components/dynamic-form/fields/SliderField.js +94 -100
  44. package/dist/components/dynamic-form/fields/SwitchField.js +42 -61
  45. package/dist/components/dynamic-form/fields/TextareaField.js +53 -72
  46. package/dist/components/dynamic-form/fields/utils/text-validation-utils.js +4 -2
  47. package/dist/components/dynamic-form/hooks/useArrayDefaultValue.js +6 -5
  48. package/dist/components/dynamic-form/hooks/useFieldConfig.js +19 -20
  49. package/dist/components/dynamic-form/hooks/useMergeParentKey.js +4 -2
  50. package/dist/components/dynamic-form/hooks/useSortPropertyNames.js +4 -2
  51. package/dist/components/feedback/ErrorAlert.js +11 -17
  52. package/dist/components/feedback/ErrorBoundary.js +16 -14
  53. package/dist/components/feedback/ErrorSnackbar.js +13 -30
  54. package/dist/components/feedback/LoadingCentered.js +15 -28
  55. package/dist/components/feedback/Snackbar.js +43 -44
  56. package/dist/components/feedback/index.js +5 -5
  57. package/dist/components/index.js +47 -47
  58. package/dist/components/layout/MainLayout.js +17 -25
  59. package/dist/components/layout/StudioSidebar.js +132 -202
  60. package/dist/components/lists/CustomListView.js +49 -74
  61. package/dist/components/lists/ListView.js +66 -102
  62. package/dist/components/loopstack-elements/link.js +71 -109
  63. package/dist/components/loopstack-elements/tool.js +99 -0
  64. package/dist/components/messages/CompletionMessagePaper.js +53 -85
  65. package/dist/components/page/PageBreadcrumbs.js +64 -83
  66. package/dist/components/ui/DiscordLogo.js +16 -22
  67. package/dist/components/ui/GoogleLogo.js +40 -44
  68. package/dist/components/ui/accordion.js +31 -52
  69. package/dist/components/ui/alert-dialog.js +59 -109
  70. package/dist/components/ui/alert.js +22 -36
  71. package/dist/components/ui/avatar.js +21 -35
  72. package/dist/components/ui/badge.js +13 -17
  73. package/dist/components/ui/breadcrumb.js +46 -82
  74. package/dist/components/ui/button-group.js +5 -5
  75. package/dist/components/ui/button.js +17 -21
  76. package/dist/components/ui/card.js +40 -74
  77. package/dist/components/ui/checkbox.js +17 -23
  78. package/dist/components/ui/collapsible.js +17 -25
  79. package/dist/components/ui/command.js +1 -2
  80. package/dist/components/ui/context-menu.js +32 -52
  81. package/dist/components/ui/dialog.js +62 -107
  82. package/dist/components/ui/drawer.js +54 -99
  83. package/dist/components/ui/dropdown-menu.js +91 -159
  84. package/dist/components/ui/hover-card.js +1 -2
  85. package/dist/components/ui/input-group.js +36 -56
  86. package/dist/components/ui/input.js +11 -15
  87. package/dist/components/ui/label.js +11 -15
  88. package/dist/components/ui/popover.js +25 -38
  89. package/dist/components/ui/radio-group.js +22 -33
  90. package/dist/components/ui/scroll-area.js +28 -43
  91. package/dist/components/ui/select.js +73 -134
  92. package/dist/components/ui/separator.js +13 -17
  93. package/dist/components/ui/sheet.js +60 -105
  94. package/dist/components/ui/sidebar.js +269 -451
  95. package/dist/components/ui/skeleton.js +10 -14
  96. package/dist/components/ui/slider.js +17 -15
  97. package/dist/components/ui/switch.js +15 -21
  98. package/dist/components/ui/table.js +46 -85
  99. package/dist/components/ui/tabs.js +26 -45
  100. package/dist/components/ui/textarea.js +10 -14
  101. package/dist/components/ui/tooltip.js +26 -41
  102. package/dist/components/ui-widgets/UiActions.js +30 -31
  103. package/dist/components/ui-widgets/UiWidget.js +34 -55
  104. package/dist/components/ui-widgets/widgets/AiPromptInput.js +28 -42
  105. package/dist/components/ui-widgets/widgets/ButtonFullWidth.js +16 -19
  106. package/dist/components/ui-widgets/widgets/SandboxRun.js +19 -26
  107. package/dist/components/ui-widgets/widgets/SubmitButton.js +15 -18
  108. package/dist/events/api-client-events.js +4 -2
  109. package/dist/events/sse-client-events.js +4 -2
  110. package/dist/features/code-explorer/CodeExplorer.js +1 -2
  111. package/dist/features/code-explorer/components/CodeExplorerTree.js +2 -2
  112. package/dist/features/code-explorer/components/CodeExplorerTreeNode.js +31 -29
  113. package/dist/features/code-explorer/components/FileContentViewer.js +120 -185
  114. package/dist/features/code-explorer/components/FileTabsBar.js +1 -2
  115. package/dist/features/code-explorer/components/FileTabsBarBase.js +134 -169
  116. package/dist/features/code-explorer/index.js +1 -1
  117. package/dist/features/code-explorer/providers/CodeExplorerProvider.js +4 -4
  118. package/dist/features/code-explorer/utils/fileIcons.js +41 -39
  119. package/dist/features/dashboard/Dashboard.js +79 -121
  120. package/dist/features/dashboard/RunItem.js +50 -68
  121. package/dist/features/dashboard/RunList.js +17 -28
  122. package/dist/features/debug/components/ConfigFlowViewer.js +49 -67
  123. package/dist/features/debug/components/WorkflowDebugHeader.js +32 -0
  124. package/dist/features/debug/components/WorkflowDebugLegend.js +56 -0
  125. package/dist/features/debug/components/WorkflowFlowViewer.js +90 -0
  126. package/dist/features/debug/components/workflow-flow/StateNode.js +82 -0
  127. package/dist/features/debug/components/workflow-flow/WorkflowGraph.js +41 -0
  128. package/dist/features/debug/components/workflow-flow/WorkflowTransitionEdge.js +64 -0
  129. package/dist/features/debug/index.js +3 -3
  130. package/dist/features/debug/lib/edge-paths.js +33 -31
  131. package/dist/features/debug/lib/flow-utils.js +156 -162
  132. package/dist/features/documents/DocumentRenderer.js +77 -45
  133. package/dist/features/documents/components/DocumentItem.js +21 -24
  134. package/dist/features/documents/components/DocumentList.js +39 -42
  135. package/dist/features/documents/components/DocumentMetadataPills.js +44 -59
  136. package/dist/features/documents/document-details/DocumentDetails.js +298 -413
  137. package/dist/features/documents/document-details/PromptDetails.js +105 -142
  138. package/dist/features/documents/index.js +4 -4
  139. package/dist/features/documents/renderers/AiMessage.js +39 -48
  140. package/dist/features/documents/renderers/AiMessageContent.js +108 -164
  141. package/dist/features/documents/renderers/ChoicesRenderer.js +80 -0
  142. package/dist/features/documents/renderers/ClaudeMessage.js +74 -91
  143. package/dist/features/documents/renderers/ConfirmPromptRenderer.js +47 -0
  144. package/dist/features/documents/renderers/DocumentDebugRenderer.js +26 -30
  145. package/dist/features/documents/renderers/DocumentFormRenderer.js +80 -72
  146. package/dist/features/documents/renderers/DocumentMessageRenderer.js +10 -9
  147. package/dist/features/documents/renderers/ErrorMessageRenderer.js +11 -13
  148. package/dist/features/documents/renderers/LinkMessageRenderer.js +15 -16
  149. package/dist/features/documents/renderers/MarkdownMessageRenderer.js +8 -10
  150. package/dist/features/documents/renderers/PlainMessageRenderer.js +7 -9
  151. package/dist/features/documents/renderers/SecretInputRenderer.js +89 -0
  152. package/dist/features/documents/renderers/TextPromptRenderer.js +48 -0
  153. package/dist/features/documents/renderers/useDocumentTransition.js +32 -0
  154. package/dist/features/health/LocalHealthCheck.js +54 -53
  155. package/dist/features/health/index.js +1 -1
  156. package/dist/features/oauth/OAuthCallbackPage.js +2 -2
  157. package/dist/features/oauth/OAuthPromptRenderer.js +135 -184
  158. package/dist/features/oauth/index.js +2 -2
  159. package/dist/features/oauth/useOAuthPopup.js +52 -71
  160. package/dist/features/runs/Runs.js +145 -187
  161. package/dist/features/workbench/Workbench.js +72 -98
  162. package/dist/features/workbench/WorkflowItem.js +49 -67
  163. package/dist/features/workbench/WorkflowList.js +50 -82
  164. package/dist/features/workbench/components/NewRunDialog.js +214 -311
  165. package/dist/features/workbench/components/RemoteFileTabsBar.js +18 -17
  166. package/dist/features/workbench/components/RemoteFileTree.js +54 -85
  167. package/dist/features/workbench/components/WorkbenchFilesPanel.js +52 -63
  168. package/dist/features/workbench/components/WorkbenchFloatingPanel.js +34 -90
  169. package/dist/features/workbench/components/WorkbenchFlowPanel.js +35 -46
  170. package/dist/features/workbench/components/WorkbenchIconSidebar.js +50 -80
  171. package/dist/features/workbench/components/WorkbenchPreviewPanel.js +52 -50
  172. package/dist/features/workbench/components/WorkbenchSecretsPanel.js +143 -172
  173. package/dist/features/workbench/components/WorkbenchSettingsModal.js +50 -86
  174. package/dist/features/workbench/components/WorkflowForms.js +17 -22
  175. package/dist/features/workbench/components/WorkflowHistoryItem.js +96 -143
  176. package/dist/features/workbench/components/WorkflowHistoryList.js +33 -0
  177. package/dist/features/workbench/components/buttons/WorkflowButtons.js +70 -97
  178. package/dist/features/workbench/hooks/useAutoScrollBottom.js +21 -25
  179. package/dist/features/workbench/hooks/useScrollToListItem.js +20 -21
  180. package/dist/features/workbench/hooks/useWorkflowData.js +32 -45
  181. package/dist/features/workbench/hooks/useWorkflowListState.js +13 -49
  182. package/dist/features/workbench/index.js +7 -8
  183. package/dist/features/workbench/providers/RemoteFileExplorerProvider.js +123 -138
  184. package/dist/features/workbench/providers/ScrollProvider.js +16 -20
  185. package/dist/features/workbench/providers/WorkbenchLayoutProvider.js +76 -75
  186. package/dist/features/workspaces/Workspaces.js +161 -226
  187. package/dist/features/workspaces/components/CreateWorkspace.js +137 -194
  188. package/dist/features/workspaces/components/EnvironmentSlotSelector.js +27 -25
  189. package/dist/features/workspaces/components/ExecutionTimeline.js +144 -185
  190. package/dist/features/workspaces/components/NewWorkflowRunDialog.js +23 -0
  191. package/dist/features/workspaces/components/WorkflowRunForm.js +104 -0
  192. package/dist/features/workspaces/components/WorkspaceHomePage.js +60 -81
  193. package/dist/features/workspaces/components/workflow-form/ArgumentsView.js +58 -0
  194. package/dist/features/workspaces/components/workflow-form/HeaderSection.js +29 -0
  195. package/dist/features/workspaces/components/workflow-form/SelectionView.js +66 -0
  196. package/dist/features/workspaces/index.js +3 -3
  197. package/dist/frontend/studio/node_modules/lodash/_Symbol.js +9 -0
  198. package/dist/frontend/studio/node_modules/lodash/_baseGetTag.js +15 -0
  199. package/dist/frontend/studio/node_modules/lodash/_baseTrim.js +13 -0
  200. package/dist/frontend/studio/node_modules/lodash/_freeGlobal.js +8 -0
  201. package/dist/frontend/studio/node_modules/lodash/_getRawTag.js +19 -0
  202. package/dist/frontend/studio/node_modules/lodash/_objectToString.js +12 -0
  203. package/dist/frontend/studio/node_modules/lodash/_root.js +10 -0
  204. package/dist/frontend/studio/node_modules/lodash/_trimmedEndIndex.js +13 -0
  205. package/dist/{node_modules → frontend/studio/node_modules}/lodash/debounce.js +10 -8
  206. package/dist/frontend/studio/node_modules/lodash/isObject.js +12 -0
  207. package/dist/frontend/studio/node_modules/lodash/isObjectLike.js +11 -0
  208. package/dist/frontend/studio/node_modules/lodash/isSymbol.js +14 -0
  209. package/dist/frontend/studio/node_modules/lodash/now.js +12 -0
  210. package/dist/frontend/studio/node_modules/lodash/toNumber.js +24 -0
  211. package/dist/hooks/index.js +6 -6
  212. package/dist/hooks/query-keys.js +39 -78
  213. package/dist/hooks/use-mobile.js +12 -11
  214. package/dist/hooks/useApi.js +16 -14
  215. package/dist/hooks/useAuth.js +38 -53
  216. package/dist/hooks/useConfig.js +26 -37
  217. package/dist/hooks/useDashboard.js +12 -15
  218. package/dist/hooks/useDebounce.js +12 -11
  219. package/dist/hooks/useDocuments.js +23 -35
  220. package/dist/hooks/useFiles.js +1 -2
  221. package/dist/hooks/useProcessor.js +14 -17
  222. package/dist/hooks/useSecrets.js +45 -64
  223. package/dist/hooks/useWorkflows.js +113 -78
  224. package/dist/hooks/useWorkspaces.js +83 -123
  225. package/dist/index.d.ts +0 -1305
  226. package/dist/index.js +80 -80
  227. package/dist/lib/requireParam.js +4 -2
  228. package/dist/lib/utils.js +7 -5
  229. package/dist/loopstack-studio.css +1 -1
  230. package/dist/node_modules/@braintree/sanitize-url/dist/constants.js +6 -4
  231. package/dist/node_modules/@braintree/sanitize-url/dist/index.js +8 -6
  232. package/dist/node_modules/@chevrotain/gast/lib/src/helpers.js +19 -20
  233. package/dist/node_modules/@chevrotain/gast/lib/src/model.js +87 -88
  234. package/dist/node_modules/@chevrotain/gast/lib/src/visitor.js +16 -13
  235. package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/api.js +2 -2
  236. package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/base-regexp-visitor.js +4 -2
  237. package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/character-classes.js +36 -34
  238. package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/regexp-parser.js +138 -110
  239. package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/utils.js +13 -11
  240. package/dist/node_modules/@chevrotain/utils/lib/src/print.js +5 -3
  241. package/dist/node_modules/@chevrotain/utils/lib/src/timer.js +4 -2
  242. package/dist/node_modules/@chevrotain/utils/lib/src/to-fast-properties.js +4 -2
  243. package/dist/node_modules/@dagrejs/dagre/dist/dagre.esm.js +1812 -1913
  244. package/dist/node_modules/@iconify/utils/lib/customisations/defaults.js +8 -6
  245. package/dist/node_modules/@iconify/utils/lib/icon/defaults.js +10 -8
  246. package/dist/node_modules/@iconify/utils/lib/icon/merge.js +8 -6
  247. package/dist/node_modules/@iconify/utils/lib/icon/name.js +8 -6
  248. package/dist/node_modules/@iconify/utils/lib/icon/transformations.js +4 -2
  249. package/dist/node_modules/@iconify/utils/lib/icon-set/get-icon.js +12 -10
  250. package/dist/node_modules/@iconify/utils/lib/icon-set/tree.js +4 -2
  251. package/dist/node_modules/@iconify/utils/lib/svg/build.js +20 -18
  252. package/dist/node_modules/@iconify/utils/lib/svg/defs.js +8 -6
  253. package/dist/node_modules/@iconify/utils/lib/svg/html.js +4 -2
  254. package/dist/node_modules/@iconify/utils/lib/svg/id.js +10 -8
  255. package/dist/node_modules/@iconify/utils/lib/svg/size.js +7 -5
  256. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/architecture-YZFGNWBL.js +3 -0
  257. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-2KRD3SAO.js +26 -0
  258. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-67CJDMHE.js +26 -0
  259. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-7N4EOEYR.js +38 -0
  260. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-AA7GKIK3.js +33 -0
  261. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-CIAEETIT.js +26 -0
  262. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-FOC6F5B3.js +26 -0
  263. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-K5T4RW27.js +1208 -0
  264. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-KGLVRYIC.js +26 -0
  265. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-LIHQZDEY.js +67 -0
  266. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-ORNJ4GCN.js +34 -0
  267. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/gitGraph-7Q5UKJZL.js +3 -0
  268. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-OMHHGYJF.js +3 -0
  269. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-4T2RLAQJ.js +3 -0
  270. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-ZZUOXDRM.js +3 -0
  271. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-PYXPWWZC.js +3 -0
  272. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treeView-SZITEDCU.js +3 -0
  273. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-W4RFUUIX.js +3 -0
  274. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/wardley-RL74JXVD.js +3 -0
  275. package/dist/node_modules/@mermaid-js/parser/dist/mermaid-parser.core.js +59 -45
  276. package/dist/node_modules/@shikijs/core/dist/index.js +583 -1119
  277. package/dist/node_modules/@shikijs/engine-oniguruma/dist/index.js +163 -148
  278. package/dist/node_modules/@shikijs/engine-oniguruma/dist/wasm-inlined.js +4 -2
  279. package/dist/node_modules/@shikijs/langs/dist/abap.js +3 -2
  280. package/dist/node_modules/@shikijs/langs/dist/actionscript-3.js +3 -2
  281. package/dist/node_modules/@shikijs/langs/dist/ada.js +3 -2
  282. package/dist/node_modules/@shikijs/langs/dist/angular-expression.js +3 -2
  283. package/dist/node_modules/@shikijs/langs/dist/angular-html.js +15 -13
  284. package/dist/node_modules/@shikijs/langs/dist/angular-inline-style.js +5 -3
  285. package/dist/node_modules/@shikijs/langs/dist/angular-inline-template.js +9 -7
  286. package/dist/node_modules/@shikijs/langs/dist/angular-let-declaration.js +5 -3
  287. package/dist/node_modules/@shikijs/langs/dist/angular-template-blocks.js +9 -7
  288. package/dist/node_modules/@shikijs/langs/dist/angular-template.js +5 -3
  289. package/dist/node_modules/@shikijs/langs/dist/angular-ts.js +17 -15
  290. package/dist/node_modules/@shikijs/langs/dist/apache.js +3 -2
  291. package/dist/node_modules/@shikijs/langs/dist/apex.js +3 -2
  292. package/dist/node_modules/@shikijs/langs/dist/apl.js +15 -13
  293. package/dist/node_modules/@shikijs/langs/dist/applescript.js +3 -2
  294. package/dist/node_modules/@shikijs/langs/dist/ara.js +3 -2
  295. package/dist/node_modules/@shikijs/langs/dist/asciidoc.js +3 -2
  296. package/dist/node_modules/@shikijs/langs/dist/asm.js +3 -2
  297. package/dist/node_modules/@shikijs/langs/dist/astro.js +17 -15
  298. package/dist/node_modules/@shikijs/langs/dist/awk.js +3 -2
  299. package/dist/node_modules/@shikijs/langs/dist/ballerina.js +3 -2
  300. package/dist/node_modules/@shikijs/langs/dist/bat.js +3 -2
  301. package/dist/node_modules/@shikijs/langs/dist/beancount.js +3 -2
  302. package/dist/node_modules/@shikijs/langs/dist/berry.js +3 -2
  303. package/dist/node_modules/@shikijs/langs/dist/bibtex.js +3 -2
  304. package/dist/node_modules/@shikijs/langs/dist/bicep.js +3 -2
  305. package/dist/node_modules/@shikijs/langs/dist/bird2.js +3 -2
  306. package/dist/node_modules/@shikijs/langs/dist/blade.js +19 -17
  307. package/dist/node_modules/@shikijs/langs/dist/bsl.js +5 -3
  308. package/dist/node_modules/@shikijs/langs/dist/c.js +3 -2
  309. package/dist/node_modules/@shikijs/langs/dist/c3.js +3 -2
  310. package/dist/node_modules/@shikijs/langs/dist/cadence.js +3 -2
  311. package/dist/node_modules/@shikijs/langs/dist/cairo.js +5 -3
  312. package/dist/node_modules/@shikijs/langs/dist/clarity.js +3 -2
  313. package/dist/node_modules/@shikijs/langs/dist/clojure.js +3 -2
  314. package/dist/node_modules/@shikijs/langs/dist/cmake.js +3 -2
  315. package/dist/node_modules/@shikijs/langs/dist/cobol.js +9 -7
  316. package/dist/node_modules/@shikijs/langs/dist/codeowners.js +3 -2
  317. package/dist/node_modules/@shikijs/langs/dist/codeql.js +3 -2
  318. package/dist/node_modules/@shikijs/langs/dist/coffee.js +5 -3
  319. package/dist/node_modules/@shikijs/langs/dist/common-lisp.js +3 -2
  320. package/dist/node_modules/@shikijs/langs/dist/coq.js +3 -2
  321. package/dist/node_modules/@shikijs/langs/dist/cpp-macro.js +11 -9
  322. package/dist/node_modules/@shikijs/langs/dist/cpp.js +13 -11
  323. package/dist/node_modules/@shikijs/langs/dist/crystal.js +17 -15
  324. package/dist/node_modules/@shikijs/langs/dist/csharp.js +3 -2
  325. package/dist/node_modules/@shikijs/langs/dist/css.js +3 -2
  326. package/dist/node_modules/@shikijs/langs/dist/csv.js +3 -2
  327. package/dist/node_modules/@shikijs/langs/dist/cue.js +3 -2
  328. package/dist/node_modules/@shikijs/langs/dist/cypher.js +3 -2
  329. package/dist/node_modules/@shikijs/langs/dist/d.js +3 -2
  330. package/dist/node_modules/@shikijs/langs/dist/dart.js +3 -2
  331. package/dist/node_modules/@shikijs/langs/dist/dax.js +3 -2
  332. package/dist/node_modules/@shikijs/langs/dist/desktop.js +3 -2
  333. package/dist/node_modules/@shikijs/langs/dist/diff.js +3 -2
  334. package/dist/node_modules/@shikijs/langs/dist/docker.js +3 -2
  335. package/dist/node_modules/@shikijs/langs/dist/dotenv.js +3 -2
  336. package/dist/node_modules/@shikijs/langs/dist/dream-maker.js +3 -2
  337. package/dist/node_modules/@shikijs/langs/dist/edge.js +11 -9
  338. package/dist/node_modules/@shikijs/langs/dist/elixir.js +5 -3
  339. package/dist/node_modules/@shikijs/langs/dist/elm.js +5 -3
  340. package/dist/node_modules/@shikijs/langs/dist/emacs-lisp.js +3 -2
  341. package/dist/node_modules/@shikijs/langs/dist/erb.js +9 -7
  342. package/dist/node_modules/@shikijs/langs/dist/erlang.js +5 -3
  343. package/dist/node_modules/@shikijs/langs/dist/es-tag-css.js +11 -9
  344. package/dist/node_modules/@shikijs/langs/dist/es-tag-glsl.js +11 -9
  345. package/dist/node_modules/@shikijs/langs/dist/es-tag-html.js +11 -9
  346. package/dist/node_modules/@shikijs/langs/dist/es-tag-sql.js +9 -7
  347. package/dist/node_modules/@shikijs/langs/dist/es-tag-xml.js +5 -3
  348. package/dist/node_modules/@shikijs/langs/dist/fennel.js +3 -2
  349. package/dist/node_modules/@shikijs/langs/dist/fish.js +3 -2
  350. package/dist/node_modules/@shikijs/langs/dist/fluent.js +3 -2
  351. package/dist/node_modules/@shikijs/langs/dist/fortran-fixed-form.js +5 -3
  352. package/dist/node_modules/@shikijs/langs/dist/fortran-free-form.js +3 -2
  353. package/dist/node_modules/@shikijs/langs/dist/fsharp.js +5 -3
  354. package/dist/node_modules/@shikijs/langs/dist/gdresource.js +9 -7
  355. package/dist/node_modules/@shikijs/langs/dist/gdscript.js +3 -2
  356. package/dist/node_modules/@shikijs/langs/dist/gdshader.js +3 -2
  357. package/dist/node_modules/@shikijs/langs/dist/genie.js +3 -2
  358. package/dist/node_modules/@shikijs/langs/dist/gherkin.js +3 -2
  359. package/dist/node_modules/@shikijs/langs/dist/git-commit.js +5 -3
  360. package/dist/node_modules/@shikijs/langs/dist/git-rebase.js +5 -3
  361. package/dist/node_modules/@shikijs/langs/dist/gleam.js +3 -2
  362. package/dist/node_modules/@shikijs/langs/dist/glimmer-js.js +13 -11
  363. package/dist/node_modules/@shikijs/langs/dist/glimmer-ts.js +13 -11
  364. package/dist/node_modules/@shikijs/langs/dist/glsl.js +5 -3
  365. package/dist/node_modules/@shikijs/langs/dist/gn.js +3 -2
  366. package/dist/node_modules/@shikijs/langs/dist/gnuplot.js +3 -2
  367. package/dist/node_modules/@shikijs/langs/dist/go.js +3 -2
  368. package/dist/node_modules/@shikijs/langs/dist/graphql.js +13 -11
  369. package/dist/node_modules/@shikijs/langs/dist/groovy.js +3 -2
  370. package/dist/node_modules/@shikijs/langs/dist/hack.js +9 -7
  371. package/dist/node_modules/@shikijs/langs/dist/haml.js +9 -7
  372. package/dist/node_modules/@shikijs/langs/dist/handlebars.js +13 -11
  373. package/dist/node_modules/@shikijs/langs/dist/haskell.js +3 -2
  374. package/dist/node_modules/@shikijs/langs/dist/haxe.js +3 -2
  375. package/dist/node_modules/@shikijs/langs/dist/hcl.js +3 -2
  376. package/dist/node_modules/@shikijs/langs/dist/hjson.js +3 -2
  377. package/dist/node_modules/@shikijs/langs/dist/hlsl.js +3 -2
  378. package/dist/node_modules/@shikijs/langs/dist/html-derivative.js +5 -3
  379. package/dist/node_modules/@shikijs/langs/dist/html.js +9 -7
  380. package/dist/node_modules/@shikijs/langs/dist/http.js +13 -11
  381. package/dist/node_modules/@shikijs/langs/dist/hurl.js +11 -9
  382. package/dist/node_modules/@shikijs/langs/dist/hxml.js +5 -3
  383. package/dist/node_modules/@shikijs/langs/dist/hy.js +3 -2
  384. package/dist/node_modules/@shikijs/langs/dist/imba.js +3 -2
  385. package/dist/node_modules/@shikijs/langs/dist/ini.js +3 -2
  386. package/dist/node_modules/@shikijs/langs/dist/java.js +3 -2
  387. package/dist/node_modules/@shikijs/langs/dist/javascript.js +3 -2
  388. package/dist/node_modules/@shikijs/langs/dist/jinja-html.js +5 -3
  389. package/dist/node_modules/@shikijs/langs/dist/jinja.js +5 -3
  390. package/dist/node_modules/@shikijs/langs/dist/jison.js +5 -3
  391. package/dist/node_modules/@shikijs/langs/dist/json.js +3 -2
  392. package/dist/node_modules/@shikijs/langs/dist/json5.js +3 -2
  393. package/dist/node_modules/@shikijs/langs/dist/jsonc.js +3 -2
  394. package/dist/node_modules/@shikijs/langs/dist/jsonl.js +3 -2
  395. package/dist/node_modules/@shikijs/langs/dist/jsonnet.js +3 -2
  396. package/dist/node_modules/@shikijs/langs/dist/jssm.js +3 -2
  397. package/dist/node_modules/@shikijs/langs/dist/jsx.js +3 -2
  398. package/dist/node_modules/@shikijs/langs/dist/julia.js +15 -13
  399. package/dist/node_modules/@shikijs/langs/dist/just.js +17 -15
  400. package/dist/node_modules/@shikijs/langs/dist/kdl.js +3 -2
  401. package/dist/node_modules/@shikijs/langs/dist/kotlin.js +3 -2
  402. package/dist/node_modules/@shikijs/langs/dist/kusto.js +3 -2
  403. package/dist/node_modules/@shikijs/langs/dist/latex.js +5 -3
  404. package/dist/node_modules/@shikijs/langs/dist/lean.js +3 -2
  405. package/dist/node_modules/@shikijs/langs/dist/less.js +3 -2
  406. package/dist/node_modules/@shikijs/langs/dist/liquid.js +13 -11
  407. package/dist/node_modules/@shikijs/langs/dist/llvm.js +3 -2
  408. package/dist/node_modules/@shikijs/langs/dist/log.js +3 -2
  409. package/dist/node_modules/@shikijs/langs/dist/logo.js +3 -2
  410. package/dist/node_modules/@shikijs/langs/dist/lua.js +5 -3
  411. package/dist/node_modules/@shikijs/langs/dist/luau.js +3 -2
  412. package/dist/node_modules/@shikijs/langs/dist/make.js +3 -2
  413. package/dist/node_modules/@shikijs/langs/dist/markdown-nix.js +3 -2
  414. package/dist/node_modules/@shikijs/langs/dist/markdown-vue.js +3 -2
  415. package/dist/node_modules/@shikijs/langs/dist/markdown.js +3 -2
  416. package/dist/node_modules/@shikijs/langs/dist/marko.js +13 -11
  417. package/dist/node_modules/@shikijs/langs/dist/matlab.js +3 -2
  418. package/dist/node_modules/@shikijs/langs/dist/mdc.js +11 -9
  419. package/dist/node_modules/@shikijs/langs/dist/mdx.js +3 -2
  420. package/dist/node_modules/@shikijs/langs/dist/mermaid.js +3 -2
  421. package/dist/node_modules/@shikijs/langs/dist/mipsasm.js +3 -2
  422. package/dist/node_modules/@shikijs/langs/dist/mojo.js +3 -2
  423. package/dist/node_modules/@shikijs/langs/dist/moonbit.js +3 -2
  424. package/dist/node_modules/@shikijs/langs/dist/move.js +3 -2
  425. package/dist/node_modules/@shikijs/langs/dist/narrat.js +3 -2
  426. package/dist/node_modules/@shikijs/langs/dist/nextflow-groovy.js +3 -2
  427. package/dist/node_modules/@shikijs/langs/dist/nextflow.js +5 -3
  428. package/dist/node_modules/@shikijs/langs/dist/nginx.js +5 -3
  429. package/dist/node_modules/@shikijs/langs/dist/nim.js +19 -17
  430. package/dist/node_modules/@shikijs/langs/dist/nix.js +5 -3
  431. package/dist/node_modules/@shikijs/langs/dist/nushell.js +3 -2
  432. package/dist/node_modules/@shikijs/langs/dist/objective-c.js +3 -2
  433. package/dist/node_modules/@shikijs/langs/dist/objective-cpp.js +3 -2
  434. package/dist/node_modules/@shikijs/langs/dist/ocaml.js +3 -2
  435. package/dist/node_modules/@shikijs/langs/dist/odin.js +3 -2
  436. package/dist/node_modules/@shikijs/langs/dist/openscad.js +3 -2
  437. package/dist/node_modules/@shikijs/langs/dist/pascal.js +3 -2
  438. package/dist/node_modules/@shikijs/langs/dist/perl.js +15 -13
  439. package/dist/node_modules/@shikijs/langs/dist/php.js +17 -15
  440. package/dist/node_modules/@shikijs/langs/dist/pkl.js +3 -2
  441. package/dist/node_modules/@shikijs/langs/dist/plsql.js +3 -2
  442. package/dist/node_modules/@shikijs/langs/dist/po.js +3 -2
  443. package/dist/node_modules/@shikijs/langs/dist/polar.js +3 -2
  444. package/dist/node_modules/@shikijs/langs/dist/postcss.js +3 -2
  445. package/dist/node_modules/@shikijs/langs/dist/powerquery.js +3 -2
  446. package/dist/node_modules/@shikijs/langs/dist/powershell.js +3 -2
  447. package/dist/node_modules/@shikijs/langs/dist/prisma.js +3 -2
  448. package/dist/node_modules/@shikijs/langs/dist/prolog.js +3 -2
  449. package/dist/node_modules/@shikijs/langs/dist/proto.js +3 -2
  450. package/dist/node_modules/@shikijs/langs/dist/pug.js +11 -9
  451. package/dist/node_modules/@shikijs/langs/dist/puppet.js +3 -2
  452. package/dist/node_modules/@shikijs/langs/dist/purescript.js +3 -2
  453. package/dist/node_modules/@shikijs/langs/dist/python.js +3 -2
  454. package/dist/node_modules/@shikijs/langs/dist/qml.js +5 -3
  455. package/dist/node_modules/@shikijs/langs/dist/qmldir.js +3 -2
  456. package/dist/node_modules/@shikijs/langs/dist/qss.js +3 -2
  457. package/dist/node_modules/@shikijs/langs/dist/r.js +3 -2
  458. package/dist/node_modules/@shikijs/langs/dist/racket.js +3 -2
  459. package/dist/node_modules/@shikijs/langs/dist/raku.js +3 -2
  460. package/dist/node_modules/@shikijs/langs/dist/razor.js +9 -7
  461. package/dist/node_modules/@shikijs/langs/dist/reg.js +3 -2
  462. package/dist/node_modules/@shikijs/langs/dist/regexp.js +3 -2
  463. package/dist/node_modules/@shikijs/langs/dist/rel.js +3 -2
  464. package/dist/node_modules/@shikijs/langs/dist/riscv.js +3 -2
  465. package/dist/node_modules/@shikijs/langs/dist/ron.js +3 -2
  466. package/dist/node_modules/@shikijs/langs/dist/rosmsg.js +3 -2
  467. package/dist/node_modules/@shikijs/langs/dist/rst.js +21 -19
  468. package/dist/node_modules/@shikijs/langs/dist/ruby.js +29 -27
  469. package/dist/node_modules/@shikijs/langs/dist/rust.js +3 -2
  470. package/dist/node_modules/@shikijs/langs/dist/sas.js +5 -3
  471. package/dist/node_modules/@shikijs/langs/dist/sass.js +3 -2
  472. package/dist/node_modules/@shikijs/langs/dist/scala.js +3 -2
  473. package/dist/node_modules/@shikijs/langs/dist/scheme.js +3 -2
  474. package/dist/node_modules/@shikijs/langs/dist/scss.js +5 -3
  475. package/dist/node_modules/@shikijs/langs/dist/sdbl.js +3 -2
  476. package/dist/node_modules/@shikijs/langs/dist/shaderlab.js +5 -3
  477. package/dist/node_modules/@shikijs/langs/dist/shellscript.js +3 -2
  478. package/dist/node_modules/@shikijs/langs/dist/shellsession.js +5 -3
  479. package/dist/node_modules/@shikijs/langs/dist/smalltalk.js +3 -2
  480. package/dist/node_modules/@shikijs/langs/dist/solidity.js +3 -2
  481. package/dist/node_modules/@shikijs/langs/dist/soy.js +5 -3
  482. package/dist/node_modules/@shikijs/langs/dist/sparql.js +5 -3
  483. package/dist/node_modules/@shikijs/langs/dist/splunk.js +3 -2
  484. package/dist/node_modules/@shikijs/langs/dist/sql.js +3 -2
  485. package/dist/node_modules/@shikijs/langs/dist/ssh-config.js +3 -2
  486. package/dist/node_modules/@shikijs/langs/dist/stata.js +5 -3
  487. package/dist/node_modules/@shikijs/langs/dist/stylus.js +3 -2
  488. package/dist/node_modules/@shikijs/langs/dist/surrealql.js +5 -3
  489. package/dist/node_modules/@shikijs/langs/dist/svelte.js +13 -11
  490. package/dist/node_modules/@shikijs/langs/dist/swift.js +3 -2
  491. package/dist/node_modules/@shikijs/langs/dist/system-verilog.js +3 -2
  492. package/dist/node_modules/@shikijs/langs/dist/systemd.js +3 -2
  493. package/dist/node_modules/@shikijs/langs/dist/talonscript.js +3 -2
  494. package/dist/node_modules/@shikijs/langs/dist/tasl.js +3 -2
  495. package/dist/node_modules/@shikijs/langs/dist/tcl.js +3 -2
  496. package/dist/node_modules/@shikijs/langs/dist/templ.js +11 -9
  497. package/dist/node_modules/@shikijs/langs/dist/terraform.js +3 -2
  498. package/dist/node_modules/@shikijs/langs/dist/tex.js +5 -3
  499. package/dist/node_modules/@shikijs/langs/dist/toml.js +3 -2
  500. package/dist/node_modules/@shikijs/langs/dist/ts-tags.js +17 -15
  501. package/dist/node_modules/@shikijs/langs/dist/tsv.js +3 -2
  502. package/dist/node_modules/@shikijs/langs/dist/tsx.js +3 -2
  503. package/dist/node_modules/@shikijs/langs/dist/turtle.js +3 -2
  504. package/dist/node_modules/@shikijs/langs/dist/twig.js +17 -15
  505. package/dist/node_modules/@shikijs/langs/dist/typescript.js +3 -2
  506. package/dist/node_modules/@shikijs/langs/dist/typespec.js +3 -2
  507. package/dist/node_modules/@shikijs/langs/dist/typst.js +3 -2
  508. package/dist/node_modules/@shikijs/langs/dist/v.js +3 -2
  509. package/dist/node_modules/@shikijs/langs/dist/vala.js +3 -2
  510. package/dist/node_modules/@shikijs/langs/dist/vb.js +3 -2
  511. package/dist/node_modules/@shikijs/langs/dist/verilog.js +3 -2
  512. package/dist/node_modules/@shikijs/langs/dist/vhdl.js +3 -2
  513. package/dist/node_modules/@shikijs/langs/dist/viml.js +3 -2
  514. package/dist/node_modules/@shikijs/langs/dist/vue-directives.js +3 -2
  515. package/dist/node_modules/@shikijs/langs/dist/vue-html.js +5 -3
  516. package/dist/node_modules/@shikijs/langs/dist/vue-interpolations.js +3 -2
  517. package/dist/node_modules/@shikijs/langs/dist/vue-sfc-style-variable-injection.js +5 -3
  518. package/dist/node_modules/@shikijs/langs/dist/vue-vine.js +17 -15
  519. package/dist/node_modules/@shikijs/langs/dist/vue.js +25 -23
  520. package/dist/node_modules/@shikijs/langs/dist/vyper.js +3 -2
  521. package/dist/node_modules/@shikijs/langs/dist/wasm.js +3 -2
  522. package/dist/node_modules/@shikijs/langs/dist/wenyan.js +3 -2
  523. package/dist/node_modules/@shikijs/langs/dist/wgsl.js +3 -2
  524. package/dist/node_modules/@shikijs/langs/dist/wikitext.js +3 -2
  525. package/dist/node_modules/@shikijs/langs/dist/wit.js +3 -2
  526. package/dist/node_modules/@shikijs/langs/dist/wolfram.js +3 -2
  527. package/dist/node_modules/@shikijs/langs/dist/xml.js +5 -3
  528. package/dist/node_modules/@shikijs/langs/dist/xsl.js +5 -3
  529. package/dist/node_modules/@shikijs/langs/dist/yaml.js +3 -2
  530. package/dist/node_modules/@shikijs/langs/dist/zenscript.js +3 -2
  531. package/dist/node_modules/@shikijs/langs/dist/zig.js +3 -2
  532. package/dist/node_modules/@shikijs/primitive/dist/index.js +540 -0
  533. package/dist/node_modules/@shikijs/themes/dist/andromeeda.js +4 -2
  534. package/dist/node_modules/@shikijs/themes/dist/aurora-x.js +4 -2
  535. package/dist/node_modules/@shikijs/themes/dist/ayu-dark.js +4 -2
  536. package/dist/node_modules/@shikijs/themes/dist/ayu-light.js +4 -2
  537. package/dist/node_modules/@shikijs/themes/dist/ayu-mirage.js +4 -2
  538. package/dist/node_modules/@shikijs/themes/dist/catppuccin-frappe.js +4 -2
  539. package/dist/node_modules/@shikijs/themes/dist/catppuccin-latte.js +4 -2
  540. package/dist/node_modules/@shikijs/themes/dist/catppuccin-macchiato.js +4 -2
  541. package/dist/node_modules/@shikijs/themes/dist/catppuccin-mocha.js +4 -2
  542. package/dist/node_modules/@shikijs/themes/dist/dark-plus.js +4 -2
  543. package/dist/node_modules/@shikijs/themes/dist/dracula-soft.js +4 -2
  544. package/dist/node_modules/@shikijs/themes/dist/dracula.js +4 -2
  545. package/dist/node_modules/@shikijs/themes/dist/everforest-dark.js +4 -2
  546. package/dist/node_modules/@shikijs/themes/dist/everforest-light.js +4 -2
  547. package/dist/node_modules/@shikijs/themes/dist/github-dark-default.js +4 -2
  548. package/dist/node_modules/@shikijs/themes/dist/github-dark-dimmed.js +4 -2
  549. package/dist/node_modules/@shikijs/themes/dist/github-dark-high-contrast.js +4 -2
  550. package/dist/node_modules/@shikijs/themes/dist/github-dark.js +4 -2
  551. package/dist/node_modules/@shikijs/themes/dist/github-light-default.js +4 -2
  552. package/dist/node_modules/@shikijs/themes/dist/github-light-high-contrast.js +4 -2
  553. package/dist/node_modules/@shikijs/themes/dist/github-light.js +4 -2
  554. package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-hard.js +4 -2
  555. package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-medium.js +4 -2
  556. package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-soft.js +4 -2
  557. package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-hard.js +4 -2
  558. package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-medium.js +4 -2
  559. package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-soft.js +4 -2
  560. package/dist/node_modules/@shikijs/themes/dist/horizon-bright.js +4 -2
  561. package/dist/node_modules/@shikijs/themes/dist/horizon.js +4 -2
  562. package/dist/node_modules/@shikijs/themes/dist/houston.js +4 -2
  563. package/dist/node_modules/@shikijs/themes/dist/kanagawa-dragon.js +4 -2
  564. package/dist/node_modules/@shikijs/themes/dist/kanagawa-lotus.js +4 -2
  565. package/dist/node_modules/@shikijs/themes/dist/kanagawa-wave.js +4 -2
  566. package/dist/node_modules/@shikijs/themes/dist/laserwave.js +4 -2
  567. package/dist/node_modules/@shikijs/themes/dist/light-plus.js +4 -2
  568. package/dist/node_modules/@shikijs/themes/dist/material-theme-darker.js +4 -2
  569. package/dist/node_modules/@shikijs/themes/dist/material-theme-lighter.js +4 -2
  570. package/dist/node_modules/@shikijs/themes/dist/material-theme-ocean.js +4 -2
  571. package/dist/node_modules/@shikijs/themes/dist/material-theme-palenight.js +4 -2
  572. package/dist/node_modules/@shikijs/themes/dist/material-theme.js +4 -2
  573. package/dist/node_modules/@shikijs/themes/dist/min-dark.js +4 -2
  574. package/dist/node_modules/@shikijs/themes/dist/min-light.js +4 -2
  575. package/dist/node_modules/@shikijs/themes/dist/monokai.js +4 -2
  576. package/dist/node_modules/@shikijs/themes/dist/night-owl-light.js +4 -2
  577. package/dist/node_modules/@shikijs/themes/dist/night-owl.js +4 -2
  578. package/dist/node_modules/@shikijs/themes/dist/nord.js +4 -2
  579. package/dist/node_modules/@shikijs/themes/dist/one-dark-pro.js +4 -2
  580. package/dist/node_modules/@shikijs/themes/dist/one-light.js +4 -2
  581. package/dist/node_modules/@shikijs/themes/dist/plastic.js +4 -2
  582. package/dist/node_modules/@shikijs/themes/dist/poimandres.js +4 -2
  583. package/dist/node_modules/@shikijs/themes/dist/red.js +4 -2
  584. package/dist/node_modules/@shikijs/themes/dist/rose-pine-dawn.js +4 -2
  585. package/dist/node_modules/@shikijs/themes/dist/rose-pine-moon.js +4 -2
  586. package/dist/node_modules/@shikijs/themes/dist/rose-pine.js +4 -2
  587. package/dist/node_modules/@shikijs/themes/dist/slack-dark.js +4 -2
  588. package/dist/node_modules/@shikijs/themes/dist/slack-ochin.js +4 -2
  589. package/dist/node_modules/@shikijs/themes/dist/snazzy-light.js +4 -2
  590. package/dist/node_modules/@shikijs/themes/dist/solarized-dark.js +4 -2
  591. package/dist/node_modules/@shikijs/themes/dist/solarized-light.js +4 -2
  592. package/dist/node_modules/@shikijs/themes/dist/synthwave-84.js +4 -2
  593. package/dist/node_modules/@shikijs/themes/dist/tokyo-night.js +4 -2
  594. package/dist/node_modules/@shikijs/themes/dist/vesper.js +4 -2
  595. package/dist/node_modules/@shikijs/themes/dist/vitesse-black.js +4 -2
  596. package/dist/node_modules/@shikijs/themes/dist/vitesse-dark.js +4 -2
  597. package/dist/node_modules/@shikijs/themes/dist/vitesse-light.js +4 -2
  598. package/dist/node_modules/@shikijs/types/dist/index.js +4 -2
  599. package/dist/node_modules/@shikijs/vscode-textmate/dist/index.js +949 -947
  600. package/dist/node_modules/@ungap/structured-clone/esm/deserialize.js +30 -30
  601. package/dist/node_modules/@ungap/structured-clone/esm/index.js +6 -4
  602. package/dist/node_modules/@ungap/structured-clone/esm/serialize.js +64 -64
  603. package/dist/node_modules/@upsetjs/venn.js/build/venn.esm.js +905 -0
  604. package/dist/node_modules/@xyflow/react/dist/esm/index.js +904 -901
  605. package/dist/node_modules/@xyflow/system/dist/esm/index.js +1226 -1222
  606. package/dist/node_modules/bail/index.js +4 -2
  607. package/dist/node_modules/ccount/index.js +4 -2
  608. package/dist/node_modules/character-entities-html4/index.js +4 -2
  609. package/dist/node_modules/character-entities-legacy/index.js +4 -2
  610. package/dist/node_modules/chevrotain/lib/src/api.js +10 -10
  611. package/dist/node_modules/chevrotain/lib/src/lang/lang_extensions.js +6 -4
  612. package/dist/node_modules/chevrotain/lib/src/parse/constants.js +4 -2
  613. package/dist/node_modules/chevrotain/lib/src/parse/cst/cst.js +11 -9
  614. package/dist/node_modules/chevrotain/lib/src/parse/cst/cst_visitor.js +38 -45
  615. package/dist/node_modules/chevrotain/lib/src/parse/errors_public.js +35 -36
  616. package/dist/node_modules/chevrotain/lib/src/parse/exceptions_public.js +26 -25
  617. package/dist/node_modules/chevrotain/lib/src/parse/grammar/checks.js +204 -226
  618. package/dist/node_modules/chevrotain/lib/src/parse/grammar/first.js +18 -18
  619. package/dist/node_modules/chevrotain/lib/src/parse/grammar/follow.js +20 -19
  620. package/dist/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_resolver_public.js +14 -13
  621. package/dist/node_modules/chevrotain/lib/src/parse/grammar/interpreter.js +195 -200
  622. package/dist/node_modules/chevrotain/lib/src/parse/grammar/keys.js +5 -4
  623. package/dist/node_modules/chevrotain/lib/src/parse/grammar/llk_lookahead.js +28 -28
  624. package/dist/node_modules/chevrotain/lib/src/parse/grammar/lookahead.js +165 -170
  625. package/dist/node_modules/chevrotain/lib/src/parse/grammar/resolver.js +17 -17
  626. package/dist/node_modules/chevrotain/lib/src/parse/grammar/rest.js +50 -50
  627. package/dist/node_modules/chevrotain/lib/src/parse/parser/parser.js +76 -83
  628. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/error_handler.js +21 -21
  629. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/gast_recorder.js +117 -121
  630. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/lexer_adapter.js +12 -6
  631. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/looksahead.js +51 -51
  632. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.js +15 -14
  633. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.js +81 -80
  634. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.js +229 -217
  635. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recoverable.js +87 -86
  636. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/tree_builder.js +36 -44
  637. package/dist/node_modules/chevrotain/lib/src/parse/parser/utils/apply_mixins.js +4 -2
  638. package/dist/node_modules/chevrotain/lib/src/scan/lexer.js +287 -309
  639. package/dist/node_modules/chevrotain/lib/src/scan/lexer_errors_public.js +4 -2
  640. package/dist/node_modules/chevrotain/lib/src/scan/lexer_public.js +115 -126
  641. package/dist/node_modules/chevrotain/lib/src/scan/reg_exp.js +73 -70
  642. package/dist/node_modules/chevrotain/lib/src/scan/reg_exp_parser.js +12 -10
  643. package/dist/node_modules/chevrotain/lib/src/scan/tokens.js +45 -54
  644. package/dist/node_modules/chevrotain/lib/src/scan/tokens_public.js +29 -30
  645. package/dist/node_modules/chevrotain-allstar/lib/all-star-lookahead.js +242 -240
  646. package/dist/node_modules/chevrotain-allstar/lib/atn.js +134 -133
  647. package/dist/node_modules/chevrotain-allstar/lib/dfa.js +11 -10
  648. package/dist/node_modules/chevrotain-allstar/lib/index.js +1 -1
  649. package/dist/node_modules/classcat/index.js +5 -3
  650. package/dist/node_modules/comma-separated-tokens/index.js +5 -3
  651. package/dist/node_modules/cose-base/cose-base.js +21 -21
  652. package/dist/node_modules/cytoscape/dist/cytoscape.esm.js +7935 -7935
  653. package/dist/node_modules/cytoscape-cose-bilkent/cytoscape-cose-bilkent.js +8 -6
  654. package/dist/node_modules/cytoscape-fcose/cytoscape-fcose.js +8 -6
  655. package/dist/node_modules/cytoscape-fcose/node_modules/cose-base/cose-base.js +20 -20
  656. package/dist/node_modules/cytoscape-fcose/node_modules/layout-base/layout-base.js +6 -4
  657. package/dist/node_modules/d3/src/index.js +95 -95
  658. package/dist/node_modules/d3-array/src/ascending.js +4 -2
  659. package/dist/node_modules/d3-array/src/bisect.js +8 -8
  660. package/dist/node_modules/d3-array/src/bisector.js +8 -6
  661. package/dist/node_modules/d3-array/src/descending.js +4 -2
  662. package/dist/node_modules/d3-array/src/max.js +4 -2
  663. package/dist/node_modules/d3-array/src/min.js +4 -2
  664. package/dist/node_modules/d3-array/src/number.js +4 -2
  665. package/dist/node_modules/d3-array/src/range.js +4 -2
  666. package/dist/node_modules/d3-array/src/ticks.js +13 -11
  667. package/dist/node_modules/d3-axis/src/axis.js +48 -46
  668. package/dist/node_modules/d3-axis/src/identity.js +4 -2
  669. package/dist/node_modules/d3-brush/src/brush.js +6 -4
  670. package/dist/node_modules/d3-color/src/color.js +86 -84
  671. package/dist/node_modules/d3-color/src/define.js +5 -3
  672. package/dist/node_modules/d3-color/src/lab.js +45 -43
  673. package/dist/node_modules/d3-color/src/math.js +4 -2
  674. package/dist/node_modules/d3-dispatch/src/dispatch.js +18 -17
  675. package/dist/node_modules/d3-drag/src/constant.js +4 -2
  676. package/dist/node_modules/d3-drag/src/drag.js +77 -75
  677. package/dist/node_modules/d3-drag/src/event.js +5 -3
  678. package/dist/node_modules/d3-drag/src/nodrag.js +11 -9
  679. package/dist/node_modules/d3-drag/src/noevent.js +6 -4
  680. package/dist/node_modules/d3-ease/src/cubic.js +4 -2
  681. package/dist/node_modules/d3-format/src/defaultLocale.js +8 -6
  682. package/dist/node_modules/d3-format/src/exponent.js +6 -4
  683. package/dist/node_modules/d3-format/src/formatDecimal.js +5 -3
  684. package/dist/node_modules/d3-format/src/formatGroup.js +4 -2
  685. package/dist/node_modules/d3-format/src/formatNumerals.js +4 -2
  686. package/dist/node_modules/d3-format/src/formatPrefixAuto.js +10 -8
  687. package/dist/node_modules/d3-format/src/formatRounded.js +6 -4
  688. package/dist/node_modules/d3-format/src/formatSpecifier.js +10 -8
  689. package/dist/node_modules/d3-format/src/formatTrim.js +4 -2
  690. package/dist/node_modules/d3-format/src/formatTypes.js +15 -13
  691. package/dist/node_modules/d3-format/src/identity.js +4 -2
  692. package/dist/node_modules/d3-format/src/locale.js +33 -31
  693. package/dist/node_modules/d3-format/src/precisionFixed.js +6 -4
  694. package/dist/node_modules/d3-format/src/precisionPrefix.js +6 -4
  695. package/dist/node_modules/d3-format/src/precisionRound.js +6 -4
  696. package/dist/node_modules/d3-hierarchy/src/accessors.js +4 -2
  697. package/dist/node_modules/d3-hierarchy/src/constant.js +5 -3
  698. package/dist/node_modules/d3-hierarchy/src/hierarchy/ancestors.js +4 -2
  699. package/dist/node_modules/d3-hierarchy/src/hierarchy/count.js +6 -4
  700. package/dist/node_modules/d3-hierarchy/src/hierarchy/descendants.js +4 -2
  701. package/dist/node_modules/d3-hierarchy/src/hierarchy/each.js +4 -2
  702. package/dist/node_modules/d3-hierarchy/src/hierarchy/eachAfter.js +4 -2
  703. package/dist/node_modules/d3-hierarchy/src/hierarchy/eachBefore.js +4 -2
  704. package/dist/node_modules/d3-hierarchy/src/hierarchy/find.js +4 -2
  705. package/dist/node_modules/d3-hierarchy/src/hierarchy/index.js +46 -44
  706. package/dist/node_modules/d3-hierarchy/src/hierarchy/iterator.js +4 -2
  707. package/dist/node_modules/d3-hierarchy/src/hierarchy/leaves.js +4 -2
  708. package/dist/node_modules/d3-hierarchy/src/hierarchy/links.js +4 -2
  709. package/dist/node_modules/d3-hierarchy/src/hierarchy/path.js +6 -4
  710. package/dist/node_modules/d3-hierarchy/src/hierarchy/sort.js +4 -2
  711. package/dist/node_modules/d3-hierarchy/src/hierarchy/sum.js +4 -2
  712. package/dist/node_modules/d3-hierarchy/src/treemap/dice.js +4 -2
  713. package/dist/node_modules/d3-hierarchy/src/treemap/index.js +16 -14
  714. package/dist/node_modules/d3-hierarchy/src/treemap/round.js +4 -2
  715. package/dist/node_modules/d3-hierarchy/src/treemap/slice.js +4 -2
  716. package/dist/node_modules/d3-hierarchy/src/treemap/squarify.js +11 -9
  717. package/dist/node_modules/d3-interpolate/src/array.js +6 -4
  718. package/dist/node_modules/d3-interpolate/src/basis.js +6 -4
  719. package/dist/node_modules/d3-interpolate/src/basisClosed.js +6 -4
  720. package/dist/node_modules/d3-interpolate/src/color.js +19 -17
  721. package/dist/node_modules/d3-interpolate/src/constant.js +4 -2
  722. package/dist/node_modules/d3-interpolate/src/date.js +4 -2
  723. package/dist/node_modules/d3-interpolate/src/hcl.js +8 -6
  724. package/dist/node_modules/d3-interpolate/src/number.js +4 -2
  725. package/dist/node_modules/d3-interpolate/src/numberArray.js +5 -3
  726. package/dist/node_modules/d3-interpolate/src/object.js +6 -4
  727. package/dist/node_modules/d3-interpolate/src/rgb.js +11 -9
  728. package/dist/node_modules/d3-interpolate/src/round.js +4 -2
  729. package/dist/node_modules/d3-interpolate/src/string.js +16 -14
  730. package/dist/node_modules/d3-interpolate/src/transform/decompose.js +7 -5
  731. package/dist/node_modules/d3-interpolate/src/transform/index.js +13 -11
  732. package/dist/node_modules/d3-interpolate/src/transform/parse.js +10 -8
  733. package/dist/node_modules/d3-interpolate/src/value.js +14 -12
  734. package/dist/node_modules/d3-interpolate/src/zoom.js +13 -11
  735. package/dist/node_modules/d3-path/src/path.js +16 -14
  736. package/dist/node_modules/d3-sankey/node_modules/d3-array/src/max.js +4 -2
  737. package/dist/node_modules/d3-sankey/node_modules/d3-array/src/min.js +4 -2
  738. package/dist/node_modules/d3-sankey/node_modules/d3-array/src/sum.js +4 -2
  739. package/dist/node_modules/d3-sankey/node_modules/d3-path/src/path.js +13 -12
  740. package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/array.js +4 -2
  741. package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/constant.js +4 -2
  742. package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/link/index.js +19 -17
  743. package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/point.js +5 -3
  744. package/dist/node_modules/d3-sankey/src/align.js +12 -10
  745. package/dist/node_modules/d3-sankey/src/constant.js +4 -2
  746. package/dist/node_modules/d3-sankey/src/sankey.js +170 -168
  747. package/dist/node_modules/d3-sankey/src/sankeyLinkHorizontal.js +8 -6
  748. package/dist/node_modules/d3-scale/src/band.js +11 -9
  749. package/dist/node_modules/d3-scale/src/constant.js +4 -2
  750. package/dist/node_modules/d3-scale/src/continuous.js +49 -47
  751. package/dist/node_modules/d3-scale/src/init.js +4 -2
  752. package/dist/node_modules/d3-scale/src/linear.js +15 -13
  753. package/dist/node_modules/d3-scale/src/nice.js +4 -2
  754. package/dist/node_modules/d3-scale/src/number.js +4 -2
  755. package/dist/node_modules/d3-scale/src/ordinal.js +18 -16
  756. package/dist/node_modules/d3-scale/src/tickFormat.js +16 -14
  757. package/dist/node_modules/d3-scale/src/time.js +36 -34
  758. package/dist/node_modules/d3-scale-chromatic/src/categorical/Tableau10.js +5 -3
  759. package/dist/node_modules/d3-scale-chromatic/src/colors.js +4 -2
  760. package/dist/node_modules/d3-selection/src/array.js +4 -2
  761. package/dist/node_modules/d3-selection/src/constant.js +4 -2
  762. package/dist/node_modules/d3-selection/src/creator.js +12 -10
  763. package/dist/node_modules/d3-selection/src/matcher.js +5 -3
  764. package/dist/node_modules/d3-selection/src/namespace.js +7 -5
  765. package/dist/node_modules/d3-selection/src/namespaces.js +5 -3
  766. package/dist/node_modules/d3-selection/src/pointer.js +6 -4
  767. package/dist/node_modules/d3-selection/src/select.js +6 -4
  768. package/dist/node_modules/d3-selection/src/selection/append.js +6 -4
  769. package/dist/node_modules/d3-selection/src/selection/attr.js +19 -17
  770. package/dist/node_modules/d3-selection/src/selection/call.js +4 -2
  771. package/dist/node_modules/d3-selection/src/selection/classed.js +25 -23
  772. package/dist/node_modules/d3-selection/src/selection/clone.js +7 -5
  773. package/dist/node_modules/d3-selection/src/selection/data.js +18 -16
  774. package/dist/node_modules/d3-selection/src/selection/datum.js +4 -2
  775. package/dist/node_modules/d3-selection/src/selection/dispatch.js +12 -10
  776. package/dist/node_modules/d3-selection/src/selection/each.js +4 -2
  777. package/dist/node_modules/d3-selection/src/selection/empty.js +4 -2
  778. package/dist/node_modules/d3-selection/src/selection/enter.js +13 -11
  779. package/dist/node_modules/d3-selection/src/selection/exit.js +7 -5
  780. package/dist/node_modules/d3-selection/src/selection/filter.js +8 -6
  781. package/dist/node_modules/d3-selection/src/selection/html.js +8 -6
  782. package/dist/node_modules/d3-selection/src/selection/index.js +80 -79
  783. package/dist/node_modules/d3-selection/src/selection/insert.js +8 -6
  784. package/dist/node_modules/d3-selection/src/selection/iterator.js +4 -2
  785. package/dist/node_modules/d3-selection/src/selection/join.js +4 -2
  786. package/dist/node_modules/d3-selection/src/selection/lower.js +6 -4
  787. package/dist/node_modules/d3-selection/src/selection/merge.js +6 -4
  788. package/dist/node_modules/d3-selection/src/selection/node.js +4 -2
  789. package/dist/node_modules/d3-selection/src/selection/nodes.js +4 -2
  790. package/dist/node_modules/d3-selection/src/selection/on.js +11 -9
  791. package/dist/node_modules/d3-selection/src/selection/order.js +4 -2
  792. package/dist/node_modules/d3-selection/src/selection/property.js +8 -6
  793. package/dist/node_modules/d3-selection/src/selection/raise.js +6 -4
  794. package/dist/node_modules/d3-selection/src/selection/remove.js +6 -4
  795. package/dist/node_modules/d3-selection/src/selection/select.js +8 -6
  796. package/dist/node_modules/d3-selection/src/selection/selectAll.js +11 -9
  797. package/dist/node_modules/d3-selection/src/selection/selectChild.js +10 -8
  798. package/dist/node_modules/d3-selection/src/selection/selectChildren.js +10 -8
  799. package/dist/node_modules/d3-selection/src/selection/size.js +4 -2
  800. package/dist/node_modules/d3-selection/src/selection/sort.js +8 -6
  801. package/dist/node_modules/d3-selection/src/selection/sparse.js +4 -2
  802. package/dist/node_modules/d3-selection/src/selection/style.js +14 -12
  803. package/dist/node_modules/d3-selection/src/selection/text.js +8 -6
  804. package/dist/node_modules/d3-selection/src/selector.js +6 -4
  805. package/dist/node_modules/d3-selection/src/selectorAll.js +6 -4
  806. package/dist/node_modules/d3-selection/src/sourceEvent.js +4 -2
  807. package/dist/node_modules/d3-selection/src/window.js +4 -2
  808. package/dist/node_modules/d3-shape/src/arc.js +38 -36
  809. package/dist/node_modules/d3-shape/src/array.js +3 -2
  810. package/dist/node_modules/d3-shape/src/constant.js +4 -2
  811. package/dist/node_modules/d3-shape/src/curve/basis.js +10 -8
  812. package/dist/node_modules/d3-shape/src/curve/basisClosed.js +18 -16
  813. package/dist/node_modules/d3-shape/src/curve/basisOpen.js +9 -7
  814. package/dist/node_modules/d3-shape/src/curve/bump.js +15 -13
  815. package/dist/node_modules/d3-shape/src/curve/bundle.js +9 -7
  816. package/dist/node_modules/d3-shape/src/curve/cardinal.js +10 -8
  817. package/dist/node_modules/d3-shape/src/curve/cardinalClosed.js +12 -10
  818. package/dist/node_modules/d3-shape/src/curve/cardinalOpen.js +9 -7
  819. package/dist/node_modules/d3-shape/src/curve/catmullRom.js +19 -17
  820. package/dist/node_modules/d3-shape/src/curve/catmullRomClosed.js +13 -11
  821. package/dist/node_modules/d3-shape/src/curve/catmullRomOpen.js +10 -8
  822. package/dist/node_modules/d3-shape/src/curve/linear.js +7 -5
  823. package/dist/node_modules/d3-shape/src/curve/linearClosed.js +12 -10
  824. package/dist/node_modules/d3-shape/src/curve/monotone.js +23 -21
  825. package/dist/node_modules/d3-shape/src/curve/natural.js +9 -7
  826. package/dist/node_modules/d3-shape/src/curve/step.js +19 -17
  827. package/dist/node_modules/d3-shape/src/descending.js +4 -2
  828. package/dist/node_modules/d3-shape/src/identity.js +4 -2
  829. package/dist/node_modules/d3-shape/src/line.js +19 -17
  830. package/dist/node_modules/d3-shape/src/math.js +8 -6
  831. package/dist/node_modules/d3-shape/src/noop.js +4 -2
  832. package/dist/node_modules/d3-shape/src/path.js +6 -4
  833. package/dist/node_modules/d3-shape/src/pie.js +15 -13
  834. package/dist/node_modules/d3-shape/src/point.js +5 -3
  835. package/dist/node_modules/d3-time/src/day.js +17 -15
  836. package/dist/node_modules/d3-time/src/duration.js +4 -2
  837. package/dist/node_modules/d3-time/src/hour.js +16 -14
  838. package/dist/node_modules/d3-time/src/interval.js +7 -5
  839. package/dist/node_modules/d3-time/src/millisecond.js +7 -5
  840. package/dist/node_modules/d3-time/src/minute.js +16 -14
  841. package/dist/node_modules/d3-time/src/month.js +14 -12
  842. package/dist/node_modules/d3-time/src/second.js +9 -7
  843. package/dist/node_modules/d3-time/src/ticks.js +66 -64
  844. package/dist/node_modules/d3-time/src/week.js +21 -19
  845. package/dist/node_modules/d3-time/src/year.js +10 -8
  846. package/dist/node_modules/d3-time-format/src/defaultLocale.js +8 -6
  847. package/dist/node_modules/d3-time-format/src/locale.js +346 -344
  848. package/dist/node_modules/d3-timer/src/timeout.js +6 -4
  849. package/dist/node_modules/d3-timer/src/timer.js +33 -31
  850. package/dist/node_modules/d3-transition/src/index.js +2 -2
  851. package/dist/node_modules/d3-transition/src/interrupt.js +4 -3
  852. package/dist/node_modules/d3-transition/src/selection/index.js +5 -4
  853. package/dist/node_modules/d3-transition/src/selection/interrupt.js +6 -4
  854. package/dist/node_modules/d3-transition/src/selection/transition.js +16 -14
  855. package/dist/node_modules/d3-transition/src/transition/attr.js +28 -26
  856. package/dist/node_modules/d3-transition/src/transition/attrTween.js +13 -11
  857. package/dist/node_modules/d3-transition/src/transition/delay.js +11 -9
  858. package/dist/node_modules/d3-transition/src/transition/duration.js +11 -9
  859. package/dist/node_modules/d3-transition/src/transition/ease.js +8 -6
  860. package/dist/node_modules/d3-transition/src/transition/easeVarying.js +8 -6
  861. package/dist/node_modules/d3-transition/src/transition/end.js +6 -4
  862. package/dist/node_modules/d3-transition/src/transition/filter.js +8 -6
  863. package/dist/node_modules/d3-transition/src/transition/index.js +63 -61
  864. package/dist/node_modules/d3-transition/src/transition/interpolate.js +9 -7
  865. package/dist/node_modules/d3-transition/src/transition/merge.js +6 -4
  866. package/dist/node_modules/d3-transition/src/transition/on.js +9 -7
  867. package/dist/node_modules/d3-transition/src/transition/remove.js +6 -4
  868. package/dist/node_modules/d3-transition/src/transition/schedule.js +20 -18
  869. package/dist/node_modules/d3-transition/src/transition/select.js +10 -8
  870. package/dist/node_modules/d3-transition/src/transition/selectAll.js +10 -8
  871. package/dist/node_modules/d3-transition/src/transition/selection.js +7 -5
  872. package/dist/node_modules/d3-transition/src/transition/style.js +21 -19
  873. package/dist/node_modules/d3-transition/src/transition/styleTween.js +8 -6
  874. package/dist/node_modules/d3-transition/src/transition/text.js +8 -6
  875. package/dist/node_modules/d3-transition/src/transition/textTween.js +8 -6
  876. package/dist/node_modules/d3-transition/src/transition/transition.js +10 -8
  877. package/dist/node_modules/d3-transition/src/transition/tween.js +14 -12
  878. package/dist/node_modules/d3-zoom/src/constant.js +4 -2
  879. package/dist/node_modules/d3-zoom/src/event.js +4 -2
  880. package/dist/node_modules/d3-zoom/src/index.js +2 -2
  881. package/dist/node_modules/d3-zoom/src/noevent.js +5 -3
  882. package/dist/node_modules/d3-zoom/src/transform.js +12 -10
  883. package/dist/node_modules/d3-zoom/src/zoom.js +116 -114
  884. package/dist/node_modules/dagre-d3-es/src/dagre/acyclic.js +14 -12
  885. package/dist/node_modules/dagre-d3-es/src/dagre/add-border-segments.js +11 -9
  886. package/dist/node_modules/dagre-d3-es/src/dagre/coordinate-system.js +36 -34
  887. package/dist/node_modules/dagre-d3-es/src/dagre/data/list.js +9 -7
  888. package/dist/node_modules/dagre-d3-es/src/dagre/greedy-fas.js +51 -49
  889. package/dist/node_modules/dagre-d3-es/src/dagre/index.js +2 -2
  890. package/dist/node_modules/dagre-d3-es/src/dagre/layout.js +165 -163
  891. package/dist/node_modules/dagre-d3-es/src/dagre/nesting-graph.js +45 -43
  892. package/dist/node_modules/dagre-d3-es/src/dagre/normalize.js +12 -10
  893. package/dist/node_modules/dagre-d3-es/src/dagre/order/add-subgraph-constraints.js +6 -4
  894. package/dist/node_modules/dagre-d3-es/src/dagre/order/barycenter.js +8 -6
  895. package/dist/node_modules/dagre-d3-es/src/dagre/order/build-layer-graph.js +14 -12
  896. package/dist/node_modules/dagre-d3-es/src/dagre/order/cross-count.js +22 -20
  897. package/dist/node_modules/dagre-d3-es/src/dagre/order/index.js +36 -34
  898. package/dist/node_modules/dagre-d3-es/src/dagre/order/init-order.js +16 -14
  899. package/dist/node_modules/dagre-d3-es/src/dagre/order/resolve-conflicts.js +32 -30
  900. package/dist/node_modules/dagre-d3-es/src/dagre/order/sort-subgraph.js +30 -28
  901. package/dist/node_modules/dagre-d3-es/src/dagre/order/sort.js +20 -18
  902. package/dist/node_modules/dagre-d3-es/src/dagre/parent-dummy-chains.js +12 -10
  903. package/dist/node_modules/dagre-d3-es/src/dagre/position/bk.js +150 -148
  904. package/dist/node_modules/dagre-d3-es/src/dagre/position/index.js +20 -18
  905. package/dist/node_modules/dagre-d3-es/src/dagre/rank/feasible-tree.js +19 -17
  906. package/dist/node_modules/dagre-d3-es/src/dagre/rank/index.js +16 -14
  907. package/dist/node_modules/dagre-d3-es/src/dagre/rank/network-simplex.js +64 -63
  908. package/dist/node_modules/dagre-d3-es/src/dagre/rank/util.js +15 -13
  909. package/dist/node_modules/dagre-d3-es/src/dagre/util.js +84 -82
  910. package/dist/node_modules/dagre-d3-es/src/graphlib/alg/dfs.js +15 -13
  911. package/dist/node_modules/dagre-d3-es/src/graphlib/alg/dijkstra.js +3 -2
  912. package/dist/node_modules/dagre-d3-es/src/graphlib/alg/floyd-warshall.js +3 -2
  913. package/dist/node_modules/dagre-d3-es/src/graphlib/alg/index.js +3 -3
  914. package/dist/node_modules/dagre-d3-es/src/graphlib/alg/postorder.js +6 -4
  915. package/dist/node_modules/dagre-d3-es/src/graphlib/alg/preorder.js +6 -4
  916. package/dist/node_modules/dagre-d3-es/src/graphlib/alg/topsort.js +13 -11
  917. package/dist/node_modules/dagre-d3-es/src/graphlib/graph.js +131 -129
  918. package/dist/node_modules/dagre-d3-es/src/graphlib/index.js +1 -1
  919. package/dist/node_modules/dagre-d3-es/src/graphlib/json.js +23 -21
  920. package/dist/node_modules/dayjs/dayjs.min.js +6 -4
  921. package/dist/node_modules/dayjs/plugin/advancedFormat.js +6 -4
  922. package/dist/node_modules/dayjs/plugin/customParseFormat.js +6 -4
  923. package/dist/node_modules/dayjs/plugin/duration.js +6 -4
  924. package/dist/node_modules/dayjs/plugin/isoWeek.js +6 -4
  925. package/dist/node_modules/decode-named-character-reference/index.dom.js +7 -5
  926. package/dist/node_modules/devlop/lib/default.js +4 -2
  927. package/dist/node_modules/dompurify/dist/purify.es.js +203 -201
  928. package/dist/node_modules/entities/dist/esm/decode-codepoint.js +6 -4
  929. package/dist/node_modules/entities/dist/esm/decode.js +87 -85
  930. package/dist/node_modules/entities/dist/esm/generated/decode-data-html.js +4 -2
  931. package/dist/node_modules/estree-util-is-identifier-name/lib/index.js +6 -4
  932. package/dist/node_modules/extend/index.js +9 -6
  933. package/dist/node_modules/hast-util-from-dom/lib/index.js +32 -30
  934. package/dist/node_modules/hast-util-from-html-isomorphic/lib/browser.js +10 -8
  935. package/dist/node_modules/hast-util-from-parse5/lib/index.js +82 -80
  936. package/dist/node_modules/hast-util-is-element/lib/index.js +17 -15
  937. package/dist/node_modules/hast-util-parse-selector/lib/index.js +7 -5
  938. package/dist/node_modules/hast-util-raw/lib/index.js +136 -134
  939. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/doctype.js +23 -21
  940. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/error-codes.js +5 -3
  941. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/foreign-content.js +89 -89
  942. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/html.js +250 -249
  943. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/token.js +6 -4
  944. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/unicode.js +14 -14
  945. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/index.js +4 -4
  946. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/formatting-element-list.js +17 -15
  947. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/index.js +1497 -1495
  948. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/open-element-stack.js +148 -146
  949. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/serializer/index.js +20 -19
  950. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/index.js +800 -798
  951. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/preprocessor.js +33 -31
  952. package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tree-adapters/default.js +10 -8
  953. package/dist/node_modules/hast-util-sanitize/lib/index.js +106 -104
  954. package/dist/node_modules/hast-util-sanitize/lib/schema.js +12 -11
  955. package/dist/node_modules/hast-util-to-html/lib/handle/comment.js +9 -7
  956. package/dist/node_modules/hast-util-to-html/lib/handle/doctype.js +4 -2
  957. package/dist/node_modules/hast-util-to-html/lib/handle/element.js +25 -23
  958. package/dist/node_modules/hast-util-to-html/lib/handle/index.js +22 -21
  959. package/dist/node_modules/hast-util-to-html/lib/handle/raw.js +6 -4
  960. package/dist/node_modules/hast-util-to-html/lib/handle/root.js +4 -2
  961. package/dist/node_modules/hast-util-to-html/lib/handle/text.js +7 -5
  962. package/dist/node_modules/hast-util-to-html/lib/index.js +38 -36
  963. package/dist/node_modules/hast-util-to-html/lib/omission/closing.js +70 -68
  964. package/dist/node_modules/hast-util-to-html/lib/omission/omission.js +6 -4
  965. package/dist/node_modules/hast-util-to-html/lib/omission/opening.js +32 -30
  966. package/dist/node_modules/hast-util-to-html/lib/omission/util/siblings.js +10 -9
  967. package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +192 -190
  968. package/dist/node_modules/hast-util-to-parse5/lib/index.js +71 -69
  969. package/dist/node_modules/hast-util-to-text/lib/index.js +61 -59
  970. package/dist/node_modules/hast-util-whitespace/lib/index.js +8 -6
  971. package/dist/node_modules/hastscript/lib/create-h.js +26 -24
  972. package/dist/node_modules/hastscript/lib/index.js +7 -5
  973. package/dist/node_modules/hastscript/lib/svg-case-sensitive-tag-names.js +4 -2
  974. package/dist/node_modules/html-url-attributes/lib/index.js +4 -2
  975. package/dist/node_modules/html-void-elements/index.js +4 -2
  976. package/dist/node_modules/inline-style-parser/cjs/index.js +6 -4
  977. package/dist/node_modules/internmap/src/index.js +22 -20
  978. package/dist/node_modules/katex/dist/katex.js +2914 -2873
  979. package/dist/node_modules/khroma/dist/channels/index.js +23 -21
  980. package/dist/node_modules/khroma/dist/channels/reusable.js +5 -3
  981. package/dist/node_modules/khroma/dist/channels/type.js +7 -5
  982. package/dist/node_modules/khroma/dist/color/hex.js +10 -8
  983. package/dist/node_modules/khroma/dist/color/hsl.js +19 -17
  984. package/dist/node_modules/khroma/dist/color/index.js +17 -15
  985. package/dist/node_modules/khroma/dist/color/keyword.js +10 -8
  986. package/dist/node_modules/khroma/dist/color/rgb.js +14 -12
  987. package/dist/node_modules/khroma/dist/constants.js +7 -5
  988. package/dist/node_modules/khroma/dist/methods/adjust.js +8 -6
  989. package/dist/node_modules/khroma/dist/methods/adjust_channel.js +8 -6
  990. package/dist/node_modules/khroma/dist/methods/change.js +9 -7
  991. package/dist/node_modules/khroma/dist/methods/channel.js +6 -4
  992. package/dist/node_modules/khroma/dist/methods/darken.js +5 -3
  993. package/dist/node_modules/khroma/dist/methods/invert.js +8 -6
  994. package/dist/node_modules/khroma/dist/methods/is_dark.js +5 -3
  995. package/dist/node_modules/khroma/dist/methods/is_light.js +5 -3
  996. package/dist/node_modules/khroma/dist/methods/lighten.js +5 -3
  997. package/dist/node_modules/khroma/dist/methods/luminance.js +8 -6
  998. package/dist/node_modules/khroma/dist/methods/mix.js +8 -6
  999. package/dist/node_modules/khroma/dist/methods/rgba.js +15 -13
  1000. package/dist/node_modules/khroma/dist/methods/transparentize.js +5 -0
  1001. package/dist/node_modules/khroma/dist/utils/channel.js +8 -6
  1002. package/dist/node_modules/khroma/dist/utils/index.js +10 -8
  1003. package/dist/node_modules/khroma/dist/utils/lang.js +4 -2
  1004. package/dist/node_modules/khroma/dist/utils/unit.js +4 -2
  1005. package/dist/node_modules/langium/lib/default-module.js +66 -64
  1006. package/dist/node_modules/langium/lib/dependency-injection.js +37 -39
  1007. package/dist/node_modules/langium/lib/documentation/comment-provider.js +7 -5
  1008. package/dist/node_modules/langium/lib/documentation/documentation-provider.js +8 -6
  1009. package/dist/node_modules/langium/lib/documentation/jsdoc.js +204 -202
  1010. package/dist/node_modules/langium/lib/languages/generated/ast.js +343 -534
  1011. package/dist/node_modules/langium/lib/languages/grammar-config.js +10 -8
  1012. package/dist/node_modules/langium/lib/parser/async-parser.js +4 -76
  1013. package/dist/node_modules/langium/lib/parser/completion-parser-builder.js +8 -6
  1014. package/dist/node_modules/langium/lib/parser/cst-node-builder.js +56 -54
  1015. package/dist/node_modules/langium/lib/parser/langium-parser-builder.js +9 -7
  1016. package/dist/node_modules/langium/lib/parser/langium-parser.js +190 -188
  1017. package/dist/node_modules/langium/lib/parser/lexer.js +25 -25
  1018. package/dist/node_modules/langium/lib/parser/parser-builder-base.js +204 -203
  1019. package/dist/node_modules/langium/lib/parser/token-builder.js +32 -30
  1020. package/dist/node_modules/langium/lib/parser/value-converter.js +17 -15
  1021. package/dist/node_modules/langium/lib/references/linker.js +104 -103
  1022. package/dist/node_modules/langium/lib/references/name-provider.js +9 -7
  1023. package/dist/node_modules/langium/lib/references/references.js +53 -51
  1024. package/dist/node_modules/langium/lib/references/scope-computation.js +14 -12
  1025. package/dist/node_modules/langium/lib/references/scope-provider.js +13 -11
  1026. package/dist/node_modules/langium/lib/references/scope.js +27 -56
  1027. package/dist/node_modules/langium/lib/serializer/hydrator.js +71 -69
  1028. package/dist/node_modules/langium/lib/serializer/json-serializer.js +23 -21
  1029. package/dist/node_modules/langium/lib/service-registry.js +7 -5
  1030. package/dist/node_modules/langium/lib/syntax-tree.js +33 -31
  1031. package/dist/node_modules/langium/lib/utils/ast-utils.js +77 -112
  1032. package/dist/node_modules/langium/lib/utils/caching.js +33 -42
  1033. package/dist/node_modules/langium/lib/utils/cancellation.js +7 -5
  1034. package/dist/node_modules/langium/lib/utils/collections.js +35 -33
  1035. package/dist/node_modules/langium/lib/utils/cst-utils.js +46 -161
  1036. package/dist/node_modules/langium/lib/utils/disposable.js +5 -3
  1037. package/dist/node_modules/langium/lib/utils/errors.js +8 -9
  1038. package/dist/node_modules/langium/lib/utils/event.js +7 -5
  1039. package/dist/node_modules/langium/lib/utils/grammar-loader.js +16 -14
  1040. package/dist/node_modules/langium/lib/utils/grammar-utils.js +172 -249
  1041. package/dist/node_modules/langium/lib/utils/promise-utils.js +18 -19
  1042. package/dist/node_modules/langium/lib/utils/regexp-utils.js +53 -76
  1043. package/dist/node_modules/langium/lib/utils/stream.js +155 -153
  1044. package/dist/node_modules/langium/lib/utils/uri-utils.js +14 -12
  1045. package/dist/node_modules/langium/lib/validation/document-validator.js +104 -103
  1046. package/dist/node_modules/langium/lib/validation/validation-registry.js +15 -14
  1047. package/dist/node_modules/langium/lib/workspace/ast-descriptions.js +19 -17
  1048. package/dist/node_modules/langium/lib/workspace/ast-node-locator.js +4 -2
  1049. package/dist/node_modules/langium/lib/workspace/configuration.js +7 -5
  1050. package/dist/node_modules/langium/lib/workspace/document-builder.js +131 -134
  1051. package/dist/node_modules/langium/lib/workspace/documents.js +85 -83
  1052. package/dist/node_modules/langium/lib/workspace/file-system-provider.js +5 -4
  1053. package/dist/node_modules/langium/lib/workspace/index-manager.js +16 -14
  1054. package/dist/node_modules/langium/lib/workspace/workspace-lock.js +11 -9
  1055. package/dist/node_modules/langium/lib/workspace/workspace-manager.js +35 -33
  1056. package/dist/node_modules/layout-base/layout-base.js +6 -4
  1057. package/dist/node_modules/lodash-es/_DataView.js +6 -4
  1058. package/dist/node_modules/lodash-es/_Hash.js +14 -13
  1059. package/dist/node_modules/lodash-es/_ListCache.js +14 -13
  1060. package/dist/node_modules/lodash-es/_Map.js +6 -4
  1061. package/dist/node_modules/lodash-es/_MapCache.js +14 -13
  1062. package/dist/node_modules/lodash-es/_Promise.js +6 -4
  1063. package/dist/node_modules/lodash-es/_Set.js +6 -4
  1064. package/dist/node_modules/lodash-es/_SetCache.js +10 -9
  1065. package/dist/node_modules/lodash-es/_Stack.js +12 -11
  1066. package/dist/node_modules/lodash-es/_Symbol.js +5 -3
  1067. package/dist/node_modules/lodash-es/_Uint8Array.js +5 -3
  1068. package/dist/node_modules/lodash-es/_WeakMap.js +6 -4
  1069. package/dist/node_modules/lodash-es/_apply.js +4 -3
  1070. package/dist/node_modules/lodash-es/_arrayEach.js +4 -3
  1071. package/dist/node_modules/lodash-es/_arrayFilter.js +4 -3
  1072. package/dist/node_modules/lodash-es/_arrayIncludes.js +6 -5
  1073. package/dist/node_modules/lodash-es/_arrayIncludesWith.js +4 -3
  1074. package/dist/node_modules/lodash-es/_arrayLikeKeys.js +13 -12
  1075. package/dist/node_modules/lodash-es/_arrayMap.js +4 -3
  1076. package/dist/node_modules/lodash-es/_arrayPush.js +4 -3
  1077. package/dist/node_modules/lodash-es/_arrayReduce.js +4 -3
  1078. package/dist/node_modules/lodash-es/_arraySome.js +4 -3
  1079. package/dist/node_modules/lodash-es/_asciiSize.js +5 -3
  1080. package/dist/node_modules/lodash-es/_assignMergeValue.js +7 -6
  1081. package/dist/node_modules/lodash-es/_assignValue.js +8 -7
  1082. package/dist/node_modules/lodash-es/_assocIndexOf.js +6 -5
  1083. package/dist/node_modules/lodash-es/_baseAssign.js +7 -6
  1084. package/dist/node_modules/lodash-es/_baseAssignIn.js +7 -6
  1085. package/dist/node_modules/lodash-es/_baseAssignValue.js +6 -5
  1086. package/dist/node_modules/lodash-es/_baseClone.js +51 -50
  1087. package/dist/node_modules/lodash-es/_baseCreate.js +7 -5
  1088. package/dist/node_modules/lodash-es/_baseEach.js +6 -4
  1089. package/dist/node_modules/lodash-es/_baseExtremum.js +6 -5
  1090. package/dist/node_modules/lodash-es/_baseFilter.js +6 -5
  1091. package/dist/node_modules/lodash-es/_baseFindIndex.js +4 -3
  1092. package/dist/node_modules/lodash-es/_baseFlatten.js +8 -7
  1093. package/dist/node_modules/lodash-es/_baseFor.js +5 -3
  1094. package/dist/node_modules/lodash-es/_baseForOwn.js +7 -6
  1095. package/dist/node_modules/lodash-es/_baseGet.js +8 -7
  1096. package/dist/node_modules/lodash-es/_baseGetAllKeys.js +7 -6
  1097. package/dist/node_modules/lodash-es/_baseGetTag.js +9 -8
  1098. package/dist/node_modules/lodash-es/_baseGt.js +4 -3
  1099. package/dist/node_modules/lodash-es/_baseHas.js +6 -5
  1100. package/dist/node_modules/lodash-es/_baseHasIn.js +4 -3
  1101. package/dist/node_modules/lodash-es/_baseIndexOf.js +8 -7
  1102. package/dist/node_modules/lodash-es/_baseIsArguments.js +8 -7
  1103. package/dist/node_modules/lodash-es/_baseIsEqual.js +7 -6
  1104. package/dist/node_modules/lodash-es/_baseIsEqualDeep.js +23 -22
  1105. package/dist/node_modules/lodash-es/_baseIsMap.js +8 -7
  1106. package/dist/node_modules/lodash-es/_baseIsMatch.js +9 -8
  1107. package/dist/node_modules/lodash-es/_baseIsNaN.js +4 -3
  1108. package/dist/node_modules/lodash-es/_baseIsNative.js +10 -9
  1109. package/dist/node_modules/lodash-es/_baseIsSet.js +8 -7
  1110. package/dist/node_modules/lodash-es/_baseIsTypedArray.js +10 -9
  1111. package/dist/node_modules/lodash-es/_baseIteratee.js +10 -9
  1112. package/dist/node_modules/lodash-es/_baseKeys.js +9 -8
  1113. package/dist/node_modules/lodash-es/_baseKeysIn.js +11 -10
  1114. package/dist/node_modules/lodash-es/_baseLt.js +4 -3
  1115. package/dist/node_modules/lodash-es/_baseMap.js +8 -7
  1116. package/dist/node_modules/lodash-es/_baseMatches.js +10 -9
  1117. package/dist/node_modules/lodash-es/_baseMatchesProperty.js +15 -14
  1118. package/dist/node_modules/lodash-es/_baseMerge.js +16 -15
  1119. package/dist/node_modules/lodash-es/_baseMergeDeep.js +24 -23
  1120. package/dist/node_modules/lodash-es/_baseOrderBy.js +23 -22
  1121. package/dist/node_modules/lodash-es/_basePick.js +8 -7
  1122. package/dist/node_modules/lodash-es/_basePickBy.js +9 -8
  1123. package/dist/node_modules/lodash-es/_baseProperty.js +4 -3
  1124. package/dist/node_modules/lodash-es/_basePropertyDeep.js +6 -5
  1125. package/dist/node_modules/lodash-es/_baseRange.js +6 -5
  1126. package/dist/node_modules/lodash-es/_baseReduce.js +4 -3
  1127. package/dist/node_modules/lodash-es/_baseRest.js +8 -7
  1128. package/dist/node_modules/lodash-es/_baseSet.js +14 -13
  1129. package/dist/node_modules/lodash-es/_baseSetToString.js +10 -8
  1130. package/dist/node_modules/lodash-es/_baseSortBy.js +4 -3
  1131. package/dist/node_modules/lodash-es/_baseTimes.js +4 -3
  1132. package/dist/node_modules/lodash-es/_baseToString.js +13 -12
  1133. package/dist/node_modules/lodash-es/_baseTrim.js +7 -6
  1134. package/dist/node_modules/lodash-es/_baseUnary.js +4 -3
  1135. package/dist/node_modules/lodash-es/_baseUniq.js +17 -16
  1136. package/dist/node_modules/lodash-es/_baseValues.js +6 -5
  1137. package/dist/node_modules/lodash-es/_baseZipObject.js +4 -3
  1138. package/dist/node_modules/lodash-es/_cacheHas.js +4 -3
  1139. package/dist/node_modules/lodash-es/_castFunction.js +6 -5
  1140. package/dist/node_modules/lodash-es/_castPath.js +9 -8
  1141. package/dist/node_modules/lodash-es/_cloneArrayBuffer.js +6 -5
  1142. package/dist/node_modules/lodash-es/_cloneBuffer.js +9 -8
  1143. package/dist/node_modules/lodash-es/_cloneDataView.js +6 -5
  1144. package/dist/node_modules/lodash-es/_cloneRegExp.js +6 -5
  1145. package/dist/node_modules/lodash-es/_cloneSymbol.js +7 -6
  1146. package/dist/node_modules/lodash-es/_cloneTypedArray.js +6 -5
  1147. package/dist/node_modules/lodash-es/_compareAscending.js +6 -5
  1148. package/dist/node_modules/lodash-es/_compareMultiple.js +6 -5
  1149. package/dist/node_modules/lodash-es/_copyArray.js +4 -3
  1150. package/dist/node_modules/lodash-es/_copyObject.js +7 -6
  1151. package/dist/node_modules/lodash-es/_copySymbols.js +7 -6
  1152. package/dist/node_modules/lodash-es/_copySymbolsIn.js +7 -6
  1153. package/dist/node_modules/lodash-es/_coreJsData.js +5 -3
  1154. package/dist/node_modules/lodash-es/_createAssigner.js +8 -7
  1155. package/dist/node_modules/lodash-es/_createBaseEach.js +6 -5
  1156. package/dist/node_modules/lodash-es/_createBaseFor.js +4 -3
  1157. package/dist/node_modules/lodash-es/_createFind.js +10 -9
  1158. package/dist/node_modules/lodash-es/_createRange.js +8 -7
  1159. package/dist/node_modules/lodash-es/_createSet.js +9 -7
  1160. package/dist/node_modules/lodash-es/_defineProperty.js +6 -4
  1161. package/dist/node_modules/lodash-es/_equalArrays.js +12 -11
  1162. package/dist/node_modules/lodash-es/_equalByTag.js +29 -28
  1163. package/dist/node_modules/lodash-es/_equalObjects.js +9 -8
  1164. package/dist/node_modules/lodash-es/_flatRest.js +8 -7
  1165. package/dist/node_modules/lodash-es/_freeGlobal.js +4 -2
  1166. package/dist/node_modules/lodash-es/_getAllKeys.js +8 -7
  1167. package/dist/node_modules/lodash-es/_getAllKeysIn.js +8 -7
  1168. package/dist/node_modules/lodash-es/_getMapData.js +6 -5
  1169. package/dist/node_modules/lodash-es/_getMatchData.js +8 -7
  1170. package/dist/node_modules/lodash-es/_getNative.js +8 -7
  1171. package/dist/node_modules/lodash-es/_getPrototype.js +5 -3
  1172. package/dist/node_modules/lodash-es/_getRawTag.js +10 -9
  1173. package/dist/node_modules/lodash-es/_getSymbols.js +9 -7
  1174. package/dist/node_modules/lodash-es/_getSymbolsIn.js +10 -8
  1175. package/dist/node_modules/lodash-es/_getTag.js +21 -19
  1176. package/dist/node_modules/lodash-es/_getValue.js +4 -3
  1177. package/dist/node_modules/lodash-es/_hasPath.js +13 -12
  1178. package/dist/node_modules/lodash-es/_hasUnicode.js +6 -5
  1179. package/dist/node_modules/lodash-es/_hashClear.js +6 -5
  1180. package/dist/node_modules/lodash-es/_hashDelete.js +5 -4
  1181. package/dist/node_modules/lodash-es/_hashGet.js +9 -8
  1182. package/dist/node_modules/lodash-es/_hashHas.js +7 -6
  1183. package/dist/node_modules/lodash-es/_hashSet.js +7 -6
  1184. package/dist/node_modules/lodash-es/_initCloneArray.js +6 -5
  1185. package/dist/node_modules/lodash-es/_initCloneByTag.js +29 -28
  1186. package/dist/node_modules/lodash-es/_initCloneObject.js +8 -7
  1187. package/dist/node_modules/lodash-es/_isFlattenable.js +9 -8
  1188. package/dist/node_modules/lodash-es/_isIndex.js +6 -5
  1189. package/dist/node_modules/lodash-es/_isIterateeCall.js +10 -9
  1190. package/dist/node_modules/lodash-es/_isKey.js +9 -8
  1191. package/dist/node_modules/lodash-es/_isKeyable.js +4 -3
  1192. package/dist/node_modules/lodash-es/_isMasked.js +9 -8
  1193. package/dist/node_modules/lodash-es/_isPrototype.js +6 -5
  1194. package/dist/node_modules/lodash-es/_isStrictComparable.js +6 -5
  1195. package/dist/node_modules/lodash-es/_listCacheClear.js +4 -3
  1196. package/dist/node_modules/lodash-es/_listCacheDelete.js +8 -7
  1197. package/dist/node_modules/lodash-es/_listCacheGet.js +6 -5
  1198. package/dist/node_modules/lodash-es/_listCacheHas.js +6 -5
  1199. package/dist/node_modules/lodash-es/_listCacheSet.js +6 -5
  1200. package/dist/node_modules/lodash-es/_mapCacheClear.js +10 -9
  1201. package/dist/node_modules/lodash-es/_mapCacheDelete.js +7 -6
  1202. package/dist/node_modules/lodash-es/_mapCacheGet.js +6 -5
  1203. package/dist/node_modules/lodash-es/_mapCacheHas.js +6 -5
  1204. package/dist/node_modules/lodash-es/_mapCacheSet.js +6 -5
  1205. package/dist/node_modules/lodash-es/_mapToArray.js +4 -3
  1206. package/dist/node_modules/lodash-es/_matchesStrictComparable.js +4 -3
  1207. package/dist/node_modules/lodash-es/_memoizeCapped.js +8 -7
  1208. package/dist/node_modules/lodash-es/_nativeCreate.js +5 -3
  1209. package/dist/node_modules/lodash-es/_nativeKeys.js +5 -3
  1210. package/dist/node_modules/lodash-es/_nativeKeysIn.js +4 -3
  1211. package/dist/node_modules/lodash-es/_nodeUtil.js +6 -4
  1212. package/dist/node_modules/lodash-es/_objectToString.js +6 -5
  1213. package/dist/node_modules/lodash-es/_overArg.js +4 -3
  1214. package/dist/node_modules/lodash-es/_overRest.js +9 -8
  1215. package/dist/node_modules/lodash-es/_root.js +5 -3
  1216. package/dist/node_modules/lodash-es/_safeGet.js +4 -3
  1217. package/dist/node_modules/lodash-es/_setCacheAdd.js +6 -5
  1218. package/dist/node_modules/lodash-es/_setCacheHas.js +4 -3
  1219. package/dist/node_modules/lodash-es/_setToArray.js +4 -3
  1220. package/dist/node_modules/lodash-es/_setToString.js +6 -4
  1221. package/dist/node_modules/lodash-es/_shortOut.js +7 -6
  1222. package/dist/node_modules/lodash-es/_stackClear.js +6 -5
  1223. package/dist/node_modules/lodash-es/_stackDelete.js +4 -3
  1224. package/dist/node_modules/lodash-es/_stackGet.js +4 -3
  1225. package/dist/node_modules/lodash-es/_stackHas.js +4 -3
  1226. package/dist/node_modules/lodash-es/_stackSet.js +11 -10
  1227. package/dist/node_modules/lodash-es/_strictIndexOf.js +4 -3
  1228. package/dist/node_modules/lodash-es/_stringSize.js +8 -7
  1229. package/dist/node_modules/lodash-es/_stringToPath.js +7 -5
  1230. package/dist/node_modules/lodash-es/_toKey.js +8 -7
  1231. package/dist/node_modules/lodash-es/_toSource.js +8 -7
  1232. package/dist/node_modules/lodash-es/_trimmedEndIndex.js +6 -5
  1233. package/dist/node_modules/lodash-es/_unicodeSize.js +17 -16
  1234. package/dist/node_modules/lodash-es/clone.js +7 -6
  1235. package/dist/node_modules/lodash-es/cloneDeep.js +7 -6
  1236. package/dist/node_modules/lodash-es/constant.js +4 -3
  1237. package/dist/node_modules/lodash-es/defaults.js +13 -11
  1238. package/dist/node_modules/lodash-es/eq.js +4 -3
  1239. package/dist/node_modules/lodash-es/filter.js +9 -8
  1240. package/dist/node_modules/lodash-es/find.js +6 -4
  1241. package/dist/node_modules/lodash-es/findIndex.js +10 -9
  1242. package/dist/node_modules/lodash-es/flatMap.js +7 -6
  1243. package/dist/node_modules/lodash-es/flatten.js +6 -5
  1244. package/dist/node_modules/lodash-es/forEach.js +9 -8
  1245. package/dist/node_modules/lodash-es/forIn.js +8 -7
  1246. package/dist/node_modules/lodash-es/forOwn.js +7 -6
  1247. package/dist/node_modules/lodash-es/get.js +6 -5
  1248. package/dist/node_modules/lodash-es/has.js +7 -6
  1249. package/dist/node_modules/lodash-es/hasIn.js +7 -6
  1250. package/dist/node_modules/lodash-es/identity.js +4 -3
  1251. package/dist/node_modules/lodash-es/isArguments.js +8 -6
  1252. package/dist/node_modules/lodash-es/isArray.js +4 -2
  1253. package/dist/node_modules/lodash-es/isArrayLike.js +7 -6
  1254. package/dist/node_modules/lodash-es/isArrayLikeObject.js +7 -6
  1255. package/dist/node_modules/lodash-es/isBuffer.js +6 -4
  1256. package/dist/node_modules/lodash-es/isEmpty.js +18 -17
  1257. package/dist/node_modules/lodash-es/isFunction.js +10 -9
  1258. package/dist/node_modules/lodash-es/isLength.js +6 -5
  1259. package/dist/node_modules/lodash-es/isMap.js +7 -5
  1260. package/dist/node_modules/lodash-es/isObject.js +4 -3
  1261. package/dist/node_modules/lodash-es/isObjectLike.js +4 -3
  1262. package/dist/node_modules/lodash-es/isPlainObject.js +13 -12
  1263. package/dist/node_modules/lodash-es/isSet.js +7 -5
  1264. package/dist/node_modules/lodash-es/isString.js +9 -8
  1265. package/dist/node_modules/lodash-es/isSymbol.js +8 -7
  1266. package/dist/node_modules/lodash-es/isTypedArray.js +7 -5
  1267. package/dist/node_modules/lodash-es/isUndefined.js +4 -3
  1268. package/dist/node_modules/lodash-es/keys.js +8 -7
  1269. package/dist/node_modules/lodash-es/keysIn.js +8 -7
  1270. package/dist/node_modules/lodash-es/last.js +4 -3
  1271. package/dist/node_modules/lodash-es/map.js +9 -8
  1272. package/dist/node_modules/lodash-es/mapValues.js +9 -8
  1273. package/dist/node_modules/lodash-es/max.js +8 -7
  1274. package/dist/node_modules/lodash-es/memoize.js +9 -8
  1275. package/dist/node_modules/lodash-es/merge.js +7 -5
  1276. package/dist/node_modules/lodash-es/min.js +8 -7
  1277. package/dist/node_modules/lodash-es/minBy.js +8 -7
  1278. package/dist/node_modules/lodash-es/noop.js +4 -3
  1279. package/dist/node_modules/lodash-es/now.js +6 -4
  1280. package/dist/node_modules/lodash-es/pick.js +7 -5
  1281. package/dist/node_modules/lodash-es/property.js +9 -8
  1282. package/dist/node_modules/lodash-es/range.js +5 -3
  1283. package/dist/node_modules/lodash-es/reduce.js +11 -10
  1284. package/dist/node_modules/lodash-es/size.js +13 -12
  1285. package/dist/node_modules/lodash-es/sortBy.js +9 -7
  1286. package/dist/node_modules/lodash-es/stubArray.js +4 -3
  1287. package/dist/node_modules/lodash-es/stubFalse.js +4 -3
  1288. package/dist/node_modules/lodash-es/toFinite.js +7 -6
  1289. package/dist/node_modules/lodash-es/toInteger.js +6 -5
  1290. package/dist/node_modules/lodash-es/toNumber.js +14 -13
  1291. package/dist/node_modules/lodash-es/toPlainObject.js +7 -6
  1292. package/dist/node_modules/lodash-es/toString.js +6 -5
  1293. package/dist/node_modules/lodash-es/union.js +9 -7
  1294. package/dist/node_modules/lodash-es/uniqBy.js +7 -6
  1295. package/dist/node_modules/lodash-es/uniqueId.js +8 -7
  1296. package/dist/node_modules/lodash-es/values.js +7 -6
  1297. package/dist/node_modules/lodash-es/zipObject.js +7 -6
  1298. package/dist/node_modules/longest-streak/index.js +4 -2
  1299. package/dist/node_modules/markdown-table/index.js +11 -9
  1300. package/dist/node_modules/marked/lib/marked.esm.js +687 -685
  1301. package/dist/node_modules/mdast-util-find-and-replace/lib/index.js +14 -12
  1302. package/dist/node_modules/mdast-util-find-and-replace/node_modules/escape-string-regexp/index.js +4 -2
  1303. package/dist/node_modules/mdast-util-from-markdown/lib/index.js +182 -180
  1304. package/dist/node_modules/mdast-util-gfm/lib/index.js +20 -18
  1305. package/dist/node_modules/mdast-util-gfm-autolink-literal/lib/index.js +69 -67
  1306. package/dist/node_modules/mdast-util-gfm-footnote/lib/index.js +47 -45
  1307. package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.js +15 -13
  1308. package/dist/node_modules/mdast-util-gfm-table/lib/index.js +30 -28
  1309. package/dist/node_modules/mdast-util-gfm-task-list-item/lib/index.js +16 -14
  1310. package/dist/node_modules/mdast-util-math/lib/index.js +15 -13
  1311. package/dist/node_modules/mdast-util-phrasing/lib/index.js +5 -3
  1312. package/dist/node_modules/mdast-util-to-hast/lib/footer.js +11 -9
  1313. package/dist/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js +4 -2
  1314. package/dist/node_modules/mdast-util-to-hast/lib/handlers/break.js +4 -2
  1315. package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.js +4 -2
  1316. package/dist/node_modules/mdast-util-to-hast/lib/handlers/delete.js +4 -2
  1317. package/dist/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js +4 -2
  1318. package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js +6 -4
  1319. package/dist/node_modules/mdast-util-to-hast/lib/handlers/heading.js +4 -2
  1320. package/dist/node_modules/mdast-util-to-hast/lib/handlers/html.js +4 -2
  1321. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js +8 -6
  1322. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image.js +6 -4
  1323. package/dist/node_modules/mdast-util-to-hast/lib/handlers/index.js +55 -53
  1324. package/dist/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js +4 -2
  1325. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js +8 -6
  1326. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link.js +6 -4
  1327. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list-item.js +15 -13
  1328. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list.js +4 -2
  1329. package/dist/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js +4 -2
  1330. package/dist/node_modules/mdast-util-to-hast/lib/handlers/root.js +4 -2
  1331. package/dist/node_modules/mdast-util-to-hast/lib/handlers/strong.js +4 -2
  1332. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js +4 -2
  1333. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-row.js +4 -2
  1334. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table.js +6 -4
  1335. package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.js +6 -4
  1336. package/dist/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js +4 -2
  1337. package/dist/node_modules/mdast-util-to-hast/lib/index.js +8 -6
  1338. package/dist/node_modules/mdast-util-to-hast/lib/revert.js +4 -2
  1339. package/dist/node_modules/mdast-util-to-hast/lib/state.js +61 -59
  1340. package/dist/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js +6 -4
  1341. package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.js +6 -4
  1342. package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.js +18 -16
  1343. package/dist/node_modules/mdast-util-to-markdown/lib/handle/definition.js +6 -4
  1344. package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js +14 -12
  1345. package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.js +8 -6
  1346. package/dist/node_modules/mdast-util-to-markdown/lib/handle/html.js +6 -4
  1347. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js +6 -4
  1348. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image.js +8 -6
  1349. package/dist/node_modules/mdast-util-to-markdown/lib/handle/index.js +43 -41
  1350. package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js +7 -5
  1351. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js +6 -4
  1352. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.js +11 -9
  1353. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list-item.js +7 -5
  1354. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list.js +12 -10
  1355. package/dist/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js +4 -2
  1356. package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.js +6 -4
  1357. package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.js +14 -12
  1358. package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.js +4 -2
  1359. package/dist/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js +7 -5
  1360. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js +4 -2
  1361. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js +6 -4
  1362. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js +4 -2
  1363. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js +4 -2
  1364. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-fence.js +4 -2
  1365. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js +4 -2
  1366. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-quote.js +4 -2
  1367. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js +4 -2
  1368. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule.js +4 -2
  1369. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-strong.js +4 -2
  1370. package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js +4 -2
  1371. package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-info.js +6 -4
  1372. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js +4 -2
  1373. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js +8 -7
  1374. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js +6 -4
  1375. package/dist/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js +6 -4
  1376. package/dist/node_modules/mdast-util-to-string/lib/index.js +14 -12
  1377. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/architectureDiagram-Q4EWVU46.js +695 -0
  1378. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-DXYQGD6D.js +3038 -0
  1379. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{c4Diagram-YG6GDRKO.js → c4Diagram-AHTNJAMY.js} +581 -573
  1380. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-336JU56O.js +49 -0
  1381. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-426QAEUC.js +11 -0
  1382. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-4BX2VUAB.js +6 -4
  1383. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-B4BG7PRW.js → chunk-4TB4RGXK.js} +590 -444
  1384. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-55IACEB6.js +7 -5
  1385. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-5FUZZQ4R.js +3640 -0
  1386. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-5PVQY5BW.js +342 -0
  1387. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-AGHRB4JF.js +22 -20
  1388. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-BSJP7CBP.js +82 -0
  1389. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-EDXVE4YY.js +25 -0
  1390. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ENJZ2VHE.js +570 -0
  1391. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-FMBD7UC4.js +5 -3
  1392. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ICPOFSXX.js +2348 -0
  1393. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-OYMX7WX6.js +2014 -0
  1394. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-QZHKN3VN.js +8 -4
  1395. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-U2HBQHQK.js +274 -0
  1396. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-X2U36JSP.js +67 -0
  1397. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-XPW4576I.js +1146 -0
  1398. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-YZCP3GAM.js +62 -0
  1399. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ZZ45TVLE.js +32 -0
  1400. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-6PBFFD2Q.js +29 -0
  1401. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-HSJHXN6E.js +29 -0
  1402. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/cose-bilkent-S5V4N54A.js +116 -114
  1403. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/dagre-KV5264BT.js +265 -0
  1404. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-5BDNPKRD.js +101 -0
  1405. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-G4DWMVQ6.js +284 -0
  1406. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-MMDJMWI5.js +213 -0
  1407. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-TYMM5635.js +133 -0
  1408. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{erDiagram-Q2GNP2WA.js → erDiagram-SMLLAGMA.js} +549 -445
  1409. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{flowDiagram-NV44I4VS.js → flowDiagram-DWJPFMVM.js} +1366 -1345
  1410. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-T4ZO3ILL.js +1720 -0
  1411. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-UUTBAWPF.js +730 -0
  1412. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/infoDiagram-42DDH7IO.js +19 -0
  1413. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ishikawaDiagram-UXIWVN3A.js +718 -0
  1414. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/journeyDiagram-VCZTEJTY.js +885 -0
  1415. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{kanban-definition-3W4ZIXB7.js → kanban-definition-6JOO6SKY.js} +124 -118
  1416. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{mindmap-definition-VGOIOE7T.js → mindmap-definition-QFDTVHPH.js} +172 -122
  1417. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/pieDiagram-DEJITSTG.js +119 -0
  1418. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{quadrantDiagram-AYHSOK5B.js → quadrantDiagram-34T5L4WZ.js} +279 -273
  1419. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{requirementDiagram-UZGBJVZJ.js → requirementDiagram-MS252O5E.js} +100 -66
  1420. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sankeyDiagram-XADWPNL6.js +529 -0
  1421. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-FGHM5R23.js +4159 -0
  1422. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-FHFEXIEX.js +222 -0
  1423. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-QKLJ7IA2.js +27 -0
  1424. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-GMOUNBTQ.js +1073 -0
  1425. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/vennDiagram-DHZGUBPP.js +961 -0
  1426. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/wardleyDiagram-NUSXRM2D.js +578 -0
  1427. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/xychartDiagram-5P7HB3ND.js +2000 -0
  1428. package/dist/node_modules/mermaid/dist/mermaid.core.js +492 -445
  1429. package/dist/node_modules/micromark/lib/constructs.js +80 -79
  1430. package/dist/node_modules/micromark/lib/create-tokenizer.js +14 -12
  1431. package/dist/node_modules/micromark/lib/initialize/content.js +9 -7
  1432. package/dist/node_modules/micromark/lib/initialize/document.js +15 -14
  1433. package/dist/node_modules/micromark/lib/initialize/flow.js +9 -7
  1434. package/dist/node_modules/micromark/lib/initialize/text.js +8 -6
  1435. package/dist/node_modules/micromark/lib/parse.js +20 -18
  1436. package/dist/node_modules/micromark/lib/postprocess.js +6 -4
  1437. package/dist/node_modules/micromark/lib/preprocess.js +6 -4
  1438. package/dist/node_modules/micromark-core-commonmark/lib/attention.js +20 -18
  1439. package/dist/node_modules/micromark-core-commonmark/lib/autolink.js +17 -15
  1440. package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js +11 -9
  1441. package/dist/node_modules/micromark-core-commonmark/lib/block-quote.js +15 -13
  1442. package/dist/node_modules/micromark-core-commonmark/lib/character-escape.js +8 -6
  1443. package/dist/node_modules/micromark-core-commonmark/lib/character-reference.js +16 -14
  1444. package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.js +22 -21
  1445. package/dist/node_modules/micromark-core-commonmark/lib/code-indented.js +16 -15
  1446. package/dist/node_modules/micromark-core-commonmark/lib/code-text.js +13 -11
  1447. package/dist/node_modules/micromark-core-commonmark/lib/content.js +18 -17
  1448. package/dist/node_modules/micromark-core-commonmark/lib/definition.js +30 -29
  1449. package/dist/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +8 -6
  1450. package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.js +15 -13
  1451. package/dist/node_modules/micromark-core-commonmark/lib/html-flow.js +68 -67
  1452. package/dist/node_modules/micromark-core-commonmark/lib/html-text.js +66 -64
  1453. package/dist/node_modules/micromark-core-commonmark/lib/label-end.js +112 -111
  1454. package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.js +8 -6
  1455. package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.js +8 -6
  1456. package/dist/node_modules/micromark-core-commonmark/lib/line-ending.js +8 -6
  1457. package/dist/node_modules/micromark-core-commonmark/lib/list.js +32 -31
  1458. package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.js +12 -10
  1459. package/dist/node_modules/micromark-core-commonmark/lib/thematic-break.js +11 -9
  1460. package/dist/node_modules/micromark-extension-gfm/index.js +16 -14
  1461. package/dist/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js +122 -120
  1462. package/dist/node_modules/micromark-extension-gfm-footnote/lib/syntax.js +33 -31
  1463. package/dist/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js +11 -9
  1464. package/dist/node_modules/micromark-extension-gfm-table/lib/edit-map.js +6 -4
  1465. package/dist/node_modules/micromark-extension-gfm-table/lib/infer.js +4 -2
  1466. package/dist/node_modules/micromark-extension-gfm-table/lib/syntax.js +36 -34
  1467. package/dist/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js +20 -18
  1468. package/dist/node_modules/micromark-extension-math/lib/math-flow.js +21 -20
  1469. package/dist/node_modules/micromark-extension-math/lib/math-text.js +11 -9
  1470. package/dist/node_modules/micromark-extension-math/lib/syntax.js +8 -6
  1471. package/dist/node_modules/micromark-factory-destination/index.js +10 -8
  1472. package/dist/node_modules/micromark-factory-label/index.js +7 -5
  1473. package/dist/node_modules/micromark-factory-space/index.js +7 -5
  1474. package/dist/node_modules/micromark-factory-title/index.js +8 -6
  1475. package/dist/node_modules/micromark-factory-whitespace/index.js +7 -5
  1476. package/dist/node_modules/micromark-util-character/index.js +14 -12
  1477. package/dist/node_modules/micromark-util-chunked/index.js +6 -4
  1478. package/dist/node_modules/micromark-util-classify-character/index.js +7 -5
  1479. package/dist/node_modules/micromark-util-combine-extensions/index.js +13 -11
  1480. package/dist/node_modules/micromark-util-decode-numeric-character-reference/index.js +4 -2
  1481. package/dist/node_modules/micromark-util-decode-string/index.js +11 -9
  1482. package/dist/node_modules/micromark-util-html-tag-name/index.js +4 -2
  1483. package/dist/node_modules/micromark-util-normalize-identifier/index.js +4 -2
  1484. package/dist/node_modules/micromark-util-resolve-all/index.js +4 -2
  1485. package/dist/node_modules/micromark-util-sanitize-uri/index.js +6 -4
  1486. package/dist/node_modules/micromark-util-subtokenize/index.js +10 -8
  1487. package/dist/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +10 -8
  1488. package/dist/node_modules/motion/dist/es/react.js +2 -2
  1489. package/dist/node_modules/nanoid/index.browser.js +6 -4
  1490. package/dist/node_modules/nanoid/url-alphabet/index.js +4 -2
  1491. package/dist/node_modules/property-information/index.js +25 -23
  1492. package/dist/node_modules/property-information/lib/aria.js +41 -39
  1493. package/dist/node_modules/property-information/lib/find.js +18 -16
  1494. package/dist/node_modules/property-information/lib/hast-to-react.js +4 -2
  1495. package/dist/node_modules/property-information/lib/html.js +96 -94
  1496. package/dist/node_modules/property-information/lib/normalize.js +4 -2
  1497. package/dist/node_modules/property-information/lib/svg.js +79 -77
  1498. package/dist/node_modules/property-information/lib/util/case-insensitive-transform.js +6 -4
  1499. package/dist/node_modules/property-information/lib/util/case-sensitive-transform.js +4 -2
  1500. package/dist/node_modules/property-information/lib/util/create.js +10 -8
  1501. package/dist/node_modules/property-information/lib/util/defined-info.js +13 -11
  1502. package/dist/node_modules/property-information/lib/util/info.js +5 -3
  1503. package/dist/node_modules/property-information/lib/util/merge.js +6 -4
  1504. package/dist/node_modules/property-information/lib/util/schema.js +5 -3
  1505. package/dist/node_modules/property-information/lib/util/types.js +15 -14
  1506. package/dist/node_modules/property-information/lib/xlink.js +5 -3
  1507. package/dist/node_modules/property-information/lib/xml.js +5 -3
  1508. package/dist/node_modules/property-information/lib/xmlns.js +7 -5
  1509. package/dist/node_modules/rehype-harden/dist/index.js +47 -45
  1510. package/dist/node_modules/rehype-katex/lib/index.js +25 -23
  1511. package/dist/node_modules/rehype-raw/lib/index.js +6 -4
  1512. package/dist/node_modules/rehype-sanitize/lib/index.js +6 -4
  1513. package/dist/node_modules/remark-gfm/lib/index.js +9 -7
  1514. package/dist/node_modules/remark-math/lib/index.js +9 -7
  1515. package/dist/node_modules/remark-parse/lib/index.js +6 -4
  1516. package/dist/node_modules/remark-rehype/lib/index.js +7 -5
  1517. package/dist/node_modules/remend/dist/index.js +368 -297
  1518. package/dist/node_modules/roughjs/bundled/rough.esm.js +877 -875
  1519. package/dist/node_modules/shiki/dist/bundle-full.js +13 -11
  1520. package/dist/node_modules/shiki/dist/chunk-CtajNgzt.js +17 -0
  1521. package/dist/node_modules/shiki/dist/engine-oniguruma.js +7 -0
  1522. package/dist/node_modules/shiki/dist/{langs.js → langs-bundle-full-DfKZStlK.js} +8 -6
  1523. package/dist/node_modules/shiki/dist/themes.js +6 -4
  1524. package/dist/node_modules/shiki/dist/wasm.js +2 -2
  1525. package/dist/node_modules/space-separated-tokens/index.js +5 -3
  1526. package/dist/node_modules/streamdown/dist/chunk-BO2N2NFS.js +2500 -0
  1527. package/dist/node_modules/streamdown/dist/highlighted-body-OFNGDK62.js +37 -0
  1528. package/dist/node_modules/streamdown/dist/index.js +1 -1
  1529. package/dist/node_modules/streamdown/dist/mermaid-GHXKKRXX.js +3 -0
  1530. package/dist/node_modules/streamdown/node_modules/marked/lib/marked.esm.js +701 -699
  1531. package/dist/node_modules/stringify-entities/lib/constant/dangerous.js +4 -2
  1532. package/dist/node_modules/stringify-entities/lib/core.js +18 -16
  1533. package/dist/node_modules/stringify-entities/lib/index.js +7 -5
  1534. package/dist/node_modules/stringify-entities/lib/util/format-smart.js +10 -8
  1535. package/dist/node_modules/stringify-entities/lib/util/to-decimal.js +6 -4
  1536. package/dist/node_modules/stringify-entities/lib/util/to-hexadecimal.js +6 -4
  1537. package/dist/node_modules/stringify-entities/lib/util/to-named.js +14 -12
  1538. package/dist/node_modules/style-to-js/cjs/index.js +9 -7
  1539. package/dist/node_modules/style-to-js/cjs/utilities.js +6 -4
  1540. package/dist/node_modules/style-to-object/cjs/index.js +8 -6
  1541. package/dist/node_modules/stylis/src/Enum.js +4 -2
  1542. package/dist/node_modules/stylis/src/Parser.js +38 -36
  1543. package/dist/node_modules/stylis/src/Serializer.js +17 -15
  1544. package/dist/node_modules/stylis/src/Tokenizer.js +53 -51
  1545. package/dist/node_modules/stylis/src/Utility.js +17 -15
  1546. package/dist/node_modules/trim-lines/index.js +10 -8
  1547. package/dist/node_modules/trough/lib/index.js +6 -4
  1548. package/dist/node_modules/ts-dedent/esm/index.js +4 -2
  1549. package/dist/node_modules/unified/lib/callable-instance.js +4 -2
  1550. package/dist/node_modules/unified/lib/index.js +102 -101
  1551. package/dist/node_modules/unified/node_modules/is-plain-obj/index.js +4 -2
  1552. package/dist/node_modules/unist-util-find-after/lib/index.js +6 -4
  1553. package/dist/node_modules/unist-util-is/lib/index.js +31 -29
  1554. package/dist/node_modules/unist-util-position/lib/index.js +7 -5
  1555. package/dist/node_modules/unist-util-stringify-position/lib/index.js +10 -8
  1556. package/dist/node_modules/unist-util-visit/lib/index.js +6 -4
  1557. package/dist/node_modules/unist-util-visit-parents/lib/color.js +4 -2
  1558. package/dist/node_modules/unist-util-visit-parents/lib/index.js +21 -20
  1559. package/dist/node_modules/uuid/dist/esm-browser/native.js +3 -2
  1560. package/dist/node_modules/uuid/dist/esm-browser/rng.js +8 -6
  1561. package/dist/node_modules/uuid/dist/esm-browser/stringify.js +7 -5
  1562. package/dist/node_modules/uuid/dist/esm-browser/v4.js +10 -9
  1563. package/dist/node_modules/vaul/dist/index.js +276 -274
  1564. package/dist/node_modules/vfile/lib/index.js +44 -42
  1565. package/dist/node_modules/vfile/lib/minpath.browser.js +22 -20
  1566. package/dist/node_modules/vfile/lib/minproc.browser.js +5 -3
  1567. package/dist/node_modules/vfile/lib/minurl.browser.js +8 -6
  1568. package/dist/node_modules/vfile/lib/minurl.shared.js +4 -2
  1569. package/dist/node_modules/vfile-location/lib/index.js +7 -5
  1570. package/dist/node_modules/vfile-message/lib/index.js +7 -5
  1571. package/dist/node_modules/vscode-jsonrpc/browser.js +8 -6
  1572. package/dist/node_modules/vscode-jsonrpc/lib/browser/main.js +11 -9
  1573. package/dist/node_modules/vscode-jsonrpc/lib/browser/ril.js +8 -6
  1574. package/dist/node_modules/vscode-jsonrpc/lib/common/api.js +28 -26
  1575. package/dist/node_modules/vscode-jsonrpc/lib/common/cancellation.js +17 -15
  1576. package/dist/node_modules/vscode-jsonrpc/lib/common/connection.js +13 -11
  1577. package/dist/node_modules/vscode-jsonrpc/lib/common/disposable.js +6 -4
  1578. package/dist/node_modules/vscode-jsonrpc/lib/common/events.js +8 -6
  1579. package/dist/node_modules/vscode-jsonrpc/lib/common/is.js +6 -4
  1580. package/dist/node_modules/vscode-jsonrpc/lib/common/linkedMap.js +6 -4
  1581. package/dist/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js +6 -4
  1582. package/dist/node_modules/vscode-jsonrpc/lib/common/messageReader.js +11 -9
  1583. package/dist/node_modules/vscode-jsonrpc/lib/common/messageWriter.js +31 -29
  1584. package/dist/node_modules/vscode-jsonrpc/lib/common/messages.js +8 -6
  1585. package/dist/node_modules/vscode-jsonrpc/lib/common/ral.js +6 -4
  1586. package/dist/node_modules/vscode-jsonrpc/lib/common/semaphore.js +8 -6
  1587. package/dist/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js +8 -6
  1588. package/dist/node_modules/vscode-languageserver-protocol/lib/browser/main.js +10 -8
  1589. package/dist/node_modules/vscode-languageserver-protocol/lib/common/api.js +23 -21
  1590. package/dist/node_modules/vscode-languageserver-protocol/lib/common/connection.js +8 -6
  1591. package/dist/node_modules/vscode-languageserver-protocol/lib/common/messages.js +8 -6
  1592. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js +8 -6
  1593. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js +8 -6
  1594. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js +8 -6
  1595. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js +8 -6
  1596. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js +14 -12
  1597. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js +8 -6
  1598. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js +8 -6
  1599. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js +8 -6
  1600. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js +8 -6
  1601. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.js +8 -6
  1602. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js +8 -6
  1603. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.js +55 -53
  1604. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js +8 -6
  1605. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js +8 -6
  1606. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.js +10 -8
  1607. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js +12 -10
  1608. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js +8 -6
  1609. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js +8 -6
  1610. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js +8 -6
  1611. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js +8 -6
  1612. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js +8 -6
  1613. package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js +8 -6
  1614. package/dist/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js +6 -4
  1615. package/dist/node_modules/vscode-languageserver-textdocument/lib/esm/main.js +21 -19
  1616. package/dist/node_modules/vscode-languageserver-types/lib/esm/main.js +849 -847
  1617. package/dist/node_modules/vscode-uri/lib/esm/index.js +6 -4
  1618. package/dist/node_modules/web-namespaces/index.js +4 -2
  1619. package/dist/node_modules/zwitch/index.js +7 -5
  1620. package/dist/packages/contracts/dist/enums/index.js +21 -20
  1621. package/dist/packages/contracts/dist/enums/registry.enum.js +6 -4
  1622. package/dist/packages/contracts/dist/enums/sort-order.enum.js +6 -4
  1623. package/dist/packages/contracts/dist/enums/user-type.enum.js +6 -4
  1624. package/dist/packages/contracts/dist/enums/workflow-state.enum.js +7 -5
  1625. package/dist/pages/DashboardPage.js +55 -99
  1626. package/dist/pages/DebugPage.js +12 -17
  1627. package/dist/pages/DebugWorkflowDetailsPage.js +91 -119
  1628. package/dist/pages/DebugWorkflowsPage.js +44 -42
  1629. package/dist/pages/EmbedWorkbenchPage.js +49 -73
  1630. package/dist/pages/PreviewWorkbenchPage.js +242 -448
  1631. package/dist/pages/RunsListPage.js +44 -61
  1632. package/dist/pages/RunsPage.js +31 -48
  1633. package/dist/pages/StudioLandingPage.js +97 -132
  1634. package/dist/pages/WorkbenchPage.js +56 -86
  1635. package/dist/pages/WorkflowDebugPage.js +78 -0
  1636. package/dist/pages/WorkspacePage.js +72 -113
  1637. package/dist/pages/WorkspaceRunsPage.js +43 -70
  1638. package/dist/pages/WorkspacesPage.js +24 -35
  1639. package/dist/providers/ComponentOverridesProvider.js +9 -12
  1640. package/dist/providers/InvalidationEventsProvider.js +33 -35
  1641. package/dist/providers/QueryProvider.js +14 -18
  1642. package/dist/providers/SseProvider.js +28 -30
  1643. package/dist/providers/StudioProvider.js +14 -19
  1644. package/dist/routing/LocalRouter.js +20 -26
  1645. package/dist/services/createApiClient.js +7 -5
  1646. package/dist/services/eventEmitter.js +3 -2
  1647. package/dist/services/index.js +2 -2
  1648. package/dist/types/ai.types.js +7 -5
  1649. package/package.json +33 -33
  1650. package/dist/_virtual/rolldown_runtime.js +0 -20
  1651. package/dist/api/namespaces.js +0 -7
  1652. package/dist/api/pipelines.js +0 -13
  1653. package/dist/components/ai-elements/tool.js +0 -158
  1654. package/dist/components/ui-widgets/widgets/SecretInput.js +0 -42
  1655. package/dist/features/debug/components/PipelineDebugHeader.js +0 -48
  1656. package/dist/features/debug/components/PipelineDebugLegend.js +0 -68
  1657. package/dist/features/debug/components/PipelineFlowViewer.js +0 -110
  1658. package/dist/features/debug/components/pipeline-flow/StateNode.js +0 -111
  1659. package/dist/features/debug/components/pipeline-flow/WorkflowGraph.js +0 -41
  1660. package/dist/features/debug/components/pipeline-flow/WorkflowTransitionEdge.js +0 -97
  1661. package/dist/features/workbench/NavigationItems.js +0 -52
  1662. package/dist/features/workbench/WorkbenchNavigation.js +0 -38
  1663. package/dist/features/workbench/components/NavigationItem.js +0 -68
  1664. package/dist/features/workbench/components/PipelineHistoryList.js +0 -56
  1665. package/dist/features/workbench/hooks/useIntersectionObserver.js +0 -44
  1666. package/dist/features/workspaces/components/NewPipelineRunDialog.js +0 -31
  1667. package/dist/features/workspaces/components/PipelineForm.js +0 -152
  1668. package/dist/features/workspaces/components/pipeline-form/ArgumentsView.js +0 -75
  1669. package/dist/features/workspaces/components/pipeline-form/HeaderSection.js +0 -43
  1670. package/dist/features/workspaces/components/pipeline-form/SelectionView.js +0 -105
  1671. package/dist/hooks/useNamespaceTree.js +0 -27
  1672. package/dist/hooks/useNamespaces.js +0 -25
  1673. package/dist/hooks/usePipelines.js +0 -161
  1674. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/architecture-7HQA4BMR.js +0 -3
  1675. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-4F5CHEZ2.js +0 -23
  1676. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-B2363JML.js +0 -60
  1677. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-FRFDVMJY.js +0 -23
  1678. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-PL6DKKU2.js +0 -28
  1679. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-SJTYNZTY.js +0 -23
  1680. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-TCCFYFTB.js +0 -787
  1681. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-TQ3KTPDO.js +0 -23
  1682. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-UMXZTB3W.js +0 -30
  1683. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/gitGraph-G5XIXVHT.js +0 -3
  1684. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-VBDWY6EO.js +0 -3
  1685. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-DYOGHKS2.js +0 -3
  1686. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-VRWISCQL.js +0 -3
  1687. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-ZZBFDIW7.js +0 -3
  1688. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-GDKQZRPO.js +0 -3
  1689. package/dist/node_modules/@ungap/structured-clone/esm/types.js +0 -2
  1690. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/context_assist.js +0 -16
  1691. package/dist/node_modules/langium/lib/index.js +0 -182
  1692. package/dist/node_modules/langium/lib/parser/indentation-aware.js +0 -141
  1693. package/dist/node_modules/langium/lib/utils/index.js +0 -53
  1694. package/dist/node_modules/langium/lib/workspace/profiler.js +0 -89
  1695. package/dist/node_modules/lodash/_Symbol.js +0 -7
  1696. package/dist/node_modules/lodash/_baseGetTag.js +0 -13
  1697. package/dist/node_modules/lodash/_baseTrim.js +0 -11
  1698. package/dist/node_modules/lodash/_freeGlobal.js +0 -6
  1699. package/dist/node_modules/lodash/_getRawTag.js +0 -17
  1700. package/dist/node_modules/lodash/_objectToString.js +0 -10
  1701. package/dist/node_modules/lodash/_root.js +0 -8
  1702. package/dist/node_modules/lodash/_trimmedEndIndex.js +0 -11
  1703. package/dist/node_modules/lodash/isObject.js +0 -10
  1704. package/dist/node_modules/lodash/isObjectLike.js +0 -9
  1705. package/dist/node_modules/lodash/isSymbol.js +0 -12
  1706. package/dist/node_modules/lodash/now.js +0 -10
  1707. package/dist/node_modules/lodash/toNumber.js +0 -22
  1708. package/dist/node_modules/lodash-es/_arrayAggregator.js +0 -9
  1709. package/dist/node_modules/lodash-es/_arrayEvery.js +0 -6
  1710. package/dist/node_modules/lodash-es/_baseAggregator.js +0 -8
  1711. package/dist/node_modules/lodash-es/_baseDifference.js +0 -22
  1712. package/dist/node_modules/lodash-es/_baseEvery.js +0 -9
  1713. package/dist/node_modules/lodash-es/_baseIsRegExp.js +0 -8
  1714. package/dist/node_modules/lodash-es/_baseSlice.js +0 -8
  1715. package/dist/node_modules/lodash-es/_baseSome.js +0 -9
  1716. package/dist/node_modules/lodash-es/_createAggregator.js +0 -12
  1717. package/dist/node_modules/lodash-es/assign.js +0 -14
  1718. package/dist/node_modules/lodash-es/compact.js +0 -9
  1719. package/dist/node_modules/lodash-es/difference.js +0 -8
  1720. package/dist/node_modules/lodash-es/drop.js +0 -8
  1721. package/dist/node_modules/lodash-es/dropRight.js +0 -8
  1722. package/dist/node_modules/lodash-es/every.js +0 -11
  1723. package/dist/node_modules/lodash-es/groupBy.js +0 -6
  1724. package/dist/node_modules/lodash-es/head.js +0 -5
  1725. package/dist/node_modules/lodash-es/includes.js +0 -13
  1726. package/dist/node_modules/lodash-es/indexOf.js +0 -11
  1727. package/dist/node_modules/lodash-es/isRegExp.js +0 -5
  1728. package/dist/node_modules/lodash-es/negate.js +0 -16
  1729. package/dist/node_modules/lodash-es/pickBy.js +0 -15
  1730. package/dist/node_modules/lodash-es/reject.js +0 -10
  1731. package/dist/node_modules/lodash-es/some.js +0 -11
  1732. package/dist/node_modules/lodash-es/uniq.js +0 -6
  1733. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/architectureDiagram-VXUJARFQ.js +0 -673
  1734. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-VD42YOAC.js +0 -3010
  1735. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ABZYJK2D.js +0 -1547
  1736. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ATLVNIR6.js +0 -65
  1737. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-CVBHYZKI.js +0 -10
  1738. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-DI55MBZ5.js +0 -1994
  1739. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-DR5Q36YT.js +0 -135
  1740. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-EXTU4WIE.js +0 -9
  1741. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-HN2XXSSU.js +0 -74
  1742. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-JA3XYJ7Z.js +0 -247
  1743. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-JZLCHNYA.js +0 -3516
  1744. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-MI3HLSF2.js +0 -1140
  1745. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-N4CR4FBY.js +0 -39
  1746. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-QN33PNHL.js +0 -23
  1747. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-QXUST7PY.js +0 -497
  1748. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-S3R3BYOJ.js +0 -338
  1749. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-TZMSLE5B.js +0 -55
  1750. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-2ON5EDUG.js +0 -26
  1751. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-WZHVMYZB.js +0 -26
  1752. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/dagre-6UL2VRFP.js +0 -263
  1753. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-PSM6KHXK.js +0 -283
  1754. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-QEK2KX5R.js +0 -211
  1755. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-S2PKOQOG.js +0 -129
  1756. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-JELNMOA3.js +0 -1688
  1757. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-V2S2FVAM.js +0 -621
  1758. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/infoDiagram-HS3SLOUP.js +0 -18
  1759. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/journeyDiagram-XKPGCS4Q.js +0 -883
  1760. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/pieDiagram-ADFJNKIX.js +0 -117
  1761. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sankeyDiagram-TZEHDZUN.js +0 -519
  1762. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-WL72ISMW.js +0 -3560
  1763. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-FKZM4ZOC.js +0 -220
  1764. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-4FDKWEC3.js +0 -25
  1765. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-IT6M3QCI.js +0 -833
  1766. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/xychartDiagram-PRI3JC2R.js +0 -1975
  1767. package/dist/node_modules/streamdown/dist/chunk-RLXIAIE6.js +0 -2189
  1768. package/dist/node_modules/streamdown/dist/highlighted-body-B3W2YXNL.js +0 -33
  1769. package/dist/node_modules/streamdown/dist/mermaid-3ZIDBTTL.js +0 -3
  1770. package/dist/packages/contracts/dist/enums/pipeline-state.js +0 -10
  1771. package/dist/pages/PipelineDebugPage.js +0 -115
@@ -0,0 +1,4159 @@
1
+ import { __name as e, log as t } from "./chunk-AGHRB4JF.js";
2
+ import { assignWithDepth_default as n, calculateMathMLDimensions as r, clear as i, common_default as a, configureSvgSize as o, getAccDescription as s, getAccTitle as c, getConfig as l, getConfig2 as u, getDiagramTitle as d, getUrl as f, hasKatex as p, renderKatexSanitized as m, sanitizeText as h, setAccDescription as g, setAccTitle as _, setConfig2 as v, setDiagramTitle as y } from "./chunk-ICPOFSXX.js";
3
+ import b from "../../../../d3-selection/src/select.js";
4
+ import "../../../../d3/src/index.js";
5
+ import { JSON_SCHEMA as x, load as S } from "./chunk-XPW4576I.js";
6
+ import { require_dist as C } from "../../../../@braintree/sanitize-url/dist/index.js";
7
+ import { parseFontSize as w, utils_default as T } from "./chunk-5PVQY5BW.js";
8
+ import { drawBackgroundRect as E, drawEmbeddedImage as D, drawImage as O, drawRect as k, getNoteRect as A, getTextObj as j } from "./chunk-YZCP3GAM.js";
9
+ import { ImperativeState as M } from "./chunk-QZHKN3VN.js";
10
+ //#region ../../node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-FGHM5R23.mjs
11
+ var N = C(), P = (function() {
12
+ var t = /* @__PURE__ */ e(function(e, t, n, r) {
13
+ for (n ||= {}, r = e.length; r--; n[e[r]] = t);
14
+ return n;
15
+ }, "o"), n = [1, 2], r = [1, 3], i = [1, 4], a = [2, 4], o = [1, 9], s = [1, 11], c = [1, 12], l = [1, 14], u = [1, 15], d = [1, 17], f = [1, 18], p = [1, 19], m = [1, 25], h = [1, 26], g = [1, 27], _ = [1, 28], v = [1, 29], y = [1, 30], b = [1, 31], x = [1, 32], S = [1, 33], C = [1, 34], w = [1, 35], T = [1, 36], E = [1, 37], D = [1, 38], O = [1, 39], k = [1, 40], A = [1, 42], j = [1, 43], M = [1, 44], N = [1, 45], P = [1, 46], F = [1, 47], I = [
16
+ 1,
17
+ 4,
18
+ 5,
19
+ 10,
20
+ 14,
21
+ 15,
22
+ 17,
23
+ 19,
24
+ 22,
25
+ 24,
26
+ 30,
27
+ 31,
28
+ 32,
29
+ 34,
30
+ 36,
31
+ 37,
32
+ 38,
33
+ 39,
34
+ 40,
35
+ 42,
36
+ 44,
37
+ 45,
38
+ 47,
39
+ 48,
40
+ 49,
41
+ 50,
42
+ 51,
43
+ 53,
44
+ 54,
45
+ 56,
46
+ 61,
47
+ 62,
48
+ 63,
49
+ 64,
50
+ 73
51
+ ], L = [1, 74], ee = [1, 80], R = [1, 81], te = [1, 82], ne = [1, 83], z = [1, 84], B = [1, 85], V = [1, 86], re = [1, 87], H = [1, 88], U = [1, 89], W = [1, 90], ie = [1, 91], ae = [1, 92], oe = [1, 93], G = [1, 94], se = [1, 95], K = [1, 96], ce = [1, 97], le = [1, 98], ue = [1, 99], de = [1, 100], fe = [1, 101], pe = [1, 102], me = [1, 103], he = [1, 104], ge = [1, 105], _e = [2, 78], ve = [
52
+ 4,
53
+ 5,
54
+ 17,
55
+ 51,
56
+ 53,
57
+ 54
58
+ ], ye = [
59
+ 4,
60
+ 5,
61
+ 10,
62
+ 14,
63
+ 15,
64
+ 17,
65
+ 19,
66
+ 22,
67
+ 24,
68
+ 30,
69
+ 31,
70
+ 32,
71
+ 34,
72
+ 36,
73
+ 37,
74
+ 38,
75
+ 39,
76
+ 40,
77
+ 42,
78
+ 44,
79
+ 45,
80
+ 47,
81
+ 51,
82
+ 53,
83
+ 54,
84
+ 56,
85
+ 61,
86
+ 62,
87
+ 63,
88
+ 64,
89
+ 73
90
+ ], be = [
91
+ 4,
92
+ 5,
93
+ 10,
94
+ 14,
95
+ 15,
96
+ 17,
97
+ 19,
98
+ 22,
99
+ 24,
100
+ 30,
101
+ 31,
102
+ 32,
103
+ 34,
104
+ 36,
105
+ 37,
106
+ 38,
107
+ 39,
108
+ 40,
109
+ 42,
110
+ 44,
111
+ 45,
112
+ 47,
113
+ 50,
114
+ 51,
115
+ 53,
116
+ 54,
117
+ 56,
118
+ 61,
119
+ 62,
120
+ 63,
121
+ 64,
122
+ 73
123
+ ], xe = [
124
+ 4,
125
+ 5,
126
+ 10,
127
+ 14,
128
+ 15,
129
+ 17,
130
+ 19,
131
+ 22,
132
+ 24,
133
+ 30,
134
+ 31,
135
+ 32,
136
+ 34,
137
+ 36,
138
+ 37,
139
+ 38,
140
+ 39,
141
+ 40,
142
+ 42,
143
+ 44,
144
+ 45,
145
+ 47,
146
+ 49,
147
+ 51,
148
+ 53,
149
+ 54,
150
+ 56,
151
+ 61,
152
+ 62,
153
+ 63,
154
+ 64,
155
+ 73
156
+ ], Se = [
157
+ 4,
158
+ 5,
159
+ 10,
160
+ 14,
161
+ 15,
162
+ 17,
163
+ 19,
164
+ 22,
165
+ 24,
166
+ 30,
167
+ 31,
168
+ 32,
169
+ 34,
170
+ 36,
171
+ 37,
172
+ 38,
173
+ 39,
174
+ 40,
175
+ 42,
176
+ 44,
177
+ 45,
178
+ 47,
179
+ 48,
180
+ 51,
181
+ 53,
182
+ 54,
183
+ 56,
184
+ 61,
185
+ 62,
186
+ 63,
187
+ 64,
188
+ 73
189
+ ], Ce = [5, 52], q = [
190
+ 70,
191
+ 71,
192
+ 72,
193
+ 73
194
+ ], J = [1, 151], we = {
195
+ trace: /* @__PURE__ */ e(function() {}, "trace"),
196
+ yy: {},
197
+ symbols_: {
198
+ error: 2,
199
+ start: 3,
200
+ SPACE: 4,
201
+ NEWLINE: 5,
202
+ SD: 6,
203
+ document: 7,
204
+ line: 8,
205
+ statement: 9,
206
+ INVALID: 10,
207
+ box_section: 11,
208
+ box_line: 12,
209
+ participant_statement: 13,
210
+ create: 14,
211
+ box: 15,
212
+ restOfLine: 16,
213
+ end: 17,
214
+ signal: 18,
215
+ autonumber: 19,
216
+ NUM: 20,
217
+ off: 21,
218
+ activate: 22,
219
+ actor: 23,
220
+ deactivate: 24,
221
+ note_statement: 25,
222
+ links_statement: 26,
223
+ link_statement: 27,
224
+ properties_statement: 28,
225
+ details_statement: 29,
226
+ title: 30,
227
+ legacy_title: 31,
228
+ acc_title: 32,
229
+ acc_title_value: 33,
230
+ acc_descr: 34,
231
+ acc_descr_value: 35,
232
+ acc_descr_multiline_value: 36,
233
+ loop: 37,
234
+ rect: 38,
235
+ opt: 39,
236
+ alt: 40,
237
+ else_sections: 41,
238
+ par: 42,
239
+ par_sections: 43,
240
+ par_over: 44,
241
+ critical: 45,
242
+ option_sections: 46,
243
+ break: 47,
244
+ option: 48,
245
+ and: 49,
246
+ else: 50,
247
+ participant: 51,
248
+ AS: 52,
249
+ participant_actor: 53,
250
+ destroy: 54,
251
+ actor_with_config: 55,
252
+ note: 56,
253
+ placement: 57,
254
+ text2: 58,
255
+ over: 59,
256
+ actor_pair: 60,
257
+ links: 61,
258
+ link: 62,
259
+ properties: 63,
260
+ details: 64,
261
+ spaceList: 65,
262
+ ",": 66,
263
+ left_of: 67,
264
+ right_of: 68,
265
+ signaltype: 69,
266
+ "+": 70,
267
+ "-": 71,
268
+ "()": 72,
269
+ ACTOR: 73,
270
+ config_object: 74,
271
+ CONFIG_START: 75,
272
+ CONFIG_CONTENT: 76,
273
+ CONFIG_END: 77,
274
+ SOLID_OPEN_ARROW: 78,
275
+ DOTTED_OPEN_ARROW: 79,
276
+ SOLID_ARROW: 80,
277
+ SOLID_ARROW_TOP: 81,
278
+ SOLID_ARROW_BOTTOM: 82,
279
+ STICK_ARROW_TOP: 83,
280
+ STICK_ARROW_BOTTOM: 84,
281
+ SOLID_ARROW_TOP_DOTTED: 85,
282
+ SOLID_ARROW_BOTTOM_DOTTED: 86,
283
+ STICK_ARROW_TOP_DOTTED: 87,
284
+ STICK_ARROW_BOTTOM_DOTTED: 88,
285
+ SOLID_ARROW_TOP_REVERSE: 89,
286
+ SOLID_ARROW_BOTTOM_REVERSE: 90,
287
+ STICK_ARROW_TOP_REVERSE: 91,
288
+ STICK_ARROW_BOTTOM_REVERSE: 92,
289
+ SOLID_ARROW_TOP_REVERSE_DOTTED: 93,
290
+ SOLID_ARROW_BOTTOM_REVERSE_DOTTED: 94,
291
+ STICK_ARROW_TOP_REVERSE_DOTTED: 95,
292
+ STICK_ARROW_BOTTOM_REVERSE_DOTTED: 96,
293
+ BIDIRECTIONAL_SOLID_ARROW: 97,
294
+ DOTTED_ARROW: 98,
295
+ BIDIRECTIONAL_DOTTED_ARROW: 99,
296
+ SOLID_CROSS: 100,
297
+ DOTTED_CROSS: 101,
298
+ SOLID_POINT: 102,
299
+ DOTTED_POINT: 103,
300
+ TXT: 104,
301
+ $accept: 0,
302
+ $end: 1
303
+ },
304
+ terminals_: {
305
+ 2: "error",
306
+ 4: "SPACE",
307
+ 5: "NEWLINE",
308
+ 6: "SD",
309
+ 10: "INVALID",
310
+ 14: "create",
311
+ 15: "box",
312
+ 16: "restOfLine",
313
+ 17: "end",
314
+ 19: "autonumber",
315
+ 20: "NUM",
316
+ 21: "off",
317
+ 22: "activate",
318
+ 24: "deactivate",
319
+ 30: "title",
320
+ 31: "legacy_title",
321
+ 32: "acc_title",
322
+ 33: "acc_title_value",
323
+ 34: "acc_descr",
324
+ 35: "acc_descr_value",
325
+ 36: "acc_descr_multiline_value",
326
+ 37: "loop",
327
+ 38: "rect",
328
+ 39: "opt",
329
+ 40: "alt",
330
+ 42: "par",
331
+ 44: "par_over",
332
+ 45: "critical",
333
+ 47: "break",
334
+ 48: "option",
335
+ 49: "and",
336
+ 50: "else",
337
+ 51: "participant",
338
+ 52: "AS",
339
+ 53: "participant_actor",
340
+ 54: "destroy",
341
+ 56: "note",
342
+ 59: "over",
343
+ 61: "links",
344
+ 62: "link",
345
+ 63: "properties",
346
+ 64: "details",
347
+ 66: ",",
348
+ 67: "left_of",
349
+ 68: "right_of",
350
+ 70: "+",
351
+ 71: "-",
352
+ 72: "()",
353
+ 73: "ACTOR",
354
+ 75: "CONFIG_START",
355
+ 76: "CONFIG_CONTENT",
356
+ 77: "CONFIG_END",
357
+ 78: "SOLID_OPEN_ARROW",
358
+ 79: "DOTTED_OPEN_ARROW",
359
+ 80: "SOLID_ARROW",
360
+ 81: "SOLID_ARROW_TOP",
361
+ 82: "SOLID_ARROW_BOTTOM",
362
+ 83: "STICK_ARROW_TOP",
363
+ 84: "STICK_ARROW_BOTTOM",
364
+ 85: "SOLID_ARROW_TOP_DOTTED",
365
+ 86: "SOLID_ARROW_BOTTOM_DOTTED",
366
+ 87: "STICK_ARROW_TOP_DOTTED",
367
+ 88: "STICK_ARROW_BOTTOM_DOTTED",
368
+ 89: "SOLID_ARROW_TOP_REVERSE",
369
+ 90: "SOLID_ARROW_BOTTOM_REVERSE",
370
+ 91: "STICK_ARROW_TOP_REVERSE",
371
+ 92: "STICK_ARROW_BOTTOM_REVERSE",
372
+ 93: "SOLID_ARROW_TOP_REVERSE_DOTTED",
373
+ 94: "SOLID_ARROW_BOTTOM_REVERSE_DOTTED",
374
+ 95: "STICK_ARROW_TOP_REVERSE_DOTTED",
375
+ 96: "STICK_ARROW_BOTTOM_REVERSE_DOTTED",
376
+ 97: "BIDIRECTIONAL_SOLID_ARROW",
377
+ 98: "DOTTED_ARROW",
378
+ 99: "BIDIRECTIONAL_DOTTED_ARROW",
379
+ 100: "SOLID_CROSS",
380
+ 101: "DOTTED_CROSS",
381
+ 102: "SOLID_POINT",
382
+ 103: "DOTTED_POINT",
383
+ 104: "TXT"
384
+ },
385
+ productions_: [
386
+ 0,
387
+ [3, 2],
388
+ [3, 2],
389
+ [3, 2],
390
+ [7, 0],
391
+ [7, 2],
392
+ [8, 2],
393
+ [8, 1],
394
+ [8, 1],
395
+ [8, 1],
396
+ [11, 0],
397
+ [11, 2],
398
+ [12, 2],
399
+ [12, 1],
400
+ [12, 1],
401
+ [9, 1],
402
+ [9, 2],
403
+ [9, 4],
404
+ [9, 2],
405
+ [9, 4],
406
+ [9, 3],
407
+ [9, 3],
408
+ [9, 2],
409
+ [9, 3],
410
+ [9, 3],
411
+ [9, 2],
412
+ [9, 2],
413
+ [9, 2],
414
+ [9, 2],
415
+ [9, 2],
416
+ [9, 1],
417
+ [9, 1],
418
+ [9, 2],
419
+ [9, 2],
420
+ [9, 1],
421
+ [9, 4],
422
+ [9, 4],
423
+ [9, 4],
424
+ [9, 4],
425
+ [9, 4],
426
+ [9, 4],
427
+ [9, 4],
428
+ [9, 4],
429
+ [46, 1],
430
+ [46, 4],
431
+ [43, 1],
432
+ [43, 4],
433
+ [41, 1],
434
+ [41, 4],
435
+ [13, 5],
436
+ [13, 3],
437
+ [13, 5],
438
+ [13, 3],
439
+ [13, 3],
440
+ [13, 5],
441
+ [13, 3],
442
+ [13, 5],
443
+ [13, 3],
444
+ [25, 4],
445
+ [25, 4],
446
+ [26, 3],
447
+ [27, 3],
448
+ [28, 3],
449
+ [29, 3],
450
+ [65, 2],
451
+ [65, 1],
452
+ [60, 3],
453
+ [60, 1],
454
+ [57, 1],
455
+ [57, 1],
456
+ [18, 5],
457
+ [18, 5],
458
+ [18, 5],
459
+ [18, 5],
460
+ [18, 6],
461
+ [18, 4],
462
+ [55, 2],
463
+ [74, 3],
464
+ [23, 1],
465
+ [69, 1],
466
+ [69, 1],
467
+ [69, 1],
468
+ [69, 1],
469
+ [69, 1],
470
+ [69, 1],
471
+ [69, 1],
472
+ [69, 1],
473
+ [69, 1],
474
+ [69, 1],
475
+ [69, 1],
476
+ [69, 1],
477
+ [69, 1],
478
+ [69, 1],
479
+ [69, 1],
480
+ [69, 1],
481
+ [69, 1],
482
+ [69, 1],
483
+ [69, 1],
484
+ [69, 1],
485
+ [69, 1],
486
+ [69, 1],
487
+ [69, 1],
488
+ [69, 1],
489
+ [69, 1],
490
+ [69, 1],
491
+ [58, 1]
492
+ ],
493
+ performAction: /* @__PURE__ */ e(function(e, t, n, r, i, a, o) {
494
+ var s = a.length - 1;
495
+ switch (i) {
496
+ case 3: return r.apply(a[s]), a[s];
497
+ case 4:
498
+ case 10:
499
+ this.$ = [];
500
+ break;
501
+ case 5:
502
+ case 11:
503
+ a[s - 1].push(a[s]), this.$ = a[s - 1];
504
+ break;
505
+ case 6:
506
+ case 7:
507
+ case 12:
508
+ case 13:
509
+ this.$ = a[s];
510
+ break;
511
+ case 8:
512
+ case 9:
513
+ case 14:
514
+ this.$ = [];
515
+ break;
516
+ case 16:
517
+ a[s].type = "createParticipant", this.$ = a[s];
518
+ break;
519
+ case 17:
520
+ a[s - 1].unshift({
521
+ type: "boxStart",
522
+ boxData: r.parseBoxData(a[s - 2])
523
+ }), a[s - 1].push({
524
+ type: "boxEnd",
525
+ boxText: a[s - 2]
526
+ }), this.$ = a[s - 1];
527
+ break;
528
+ case 19:
529
+ this.$ = {
530
+ type: "sequenceIndex",
531
+ sequenceIndex: Number(a[s - 2]),
532
+ sequenceIndexStep: Number(a[s - 1]),
533
+ sequenceVisible: !0,
534
+ signalType: r.LINETYPE.AUTONUMBER
535
+ };
536
+ break;
537
+ case 20:
538
+ this.$ = {
539
+ type: "sequenceIndex",
540
+ sequenceIndex: Number(a[s - 1]),
541
+ sequenceIndexStep: 1,
542
+ sequenceVisible: !0,
543
+ signalType: r.LINETYPE.AUTONUMBER
544
+ };
545
+ break;
546
+ case 21:
547
+ this.$ = {
548
+ type: "sequenceIndex",
549
+ sequenceVisible: !1,
550
+ signalType: r.LINETYPE.AUTONUMBER
551
+ };
552
+ break;
553
+ case 22:
554
+ this.$ = {
555
+ type: "sequenceIndex",
556
+ sequenceVisible: !0,
557
+ signalType: r.LINETYPE.AUTONUMBER
558
+ };
559
+ break;
560
+ case 23:
561
+ this.$ = {
562
+ type: "activeStart",
563
+ signalType: r.LINETYPE.ACTIVE_START,
564
+ actor: a[s - 1].actor
565
+ };
566
+ break;
567
+ case 24:
568
+ this.$ = {
569
+ type: "activeEnd",
570
+ signalType: r.LINETYPE.ACTIVE_END,
571
+ actor: a[s - 1].actor
572
+ };
573
+ break;
574
+ case 30:
575
+ r.setDiagramTitle(a[s].substring(6)), this.$ = a[s].substring(6);
576
+ break;
577
+ case 31:
578
+ r.setDiagramTitle(a[s].substring(7)), this.$ = a[s].substring(7);
579
+ break;
580
+ case 32:
581
+ this.$ = a[s].trim(), r.setAccTitle(this.$);
582
+ break;
583
+ case 33:
584
+ case 34:
585
+ this.$ = a[s].trim(), r.setAccDescription(this.$);
586
+ break;
587
+ case 35:
588
+ a[s - 1].unshift({
589
+ type: "loopStart",
590
+ loopText: r.parseMessage(a[s - 2]),
591
+ signalType: r.LINETYPE.LOOP_START
592
+ }), a[s - 1].push({
593
+ type: "loopEnd",
594
+ loopText: a[s - 2],
595
+ signalType: r.LINETYPE.LOOP_END
596
+ }), this.$ = a[s - 1];
597
+ break;
598
+ case 36:
599
+ a[s - 1].unshift({
600
+ type: "rectStart",
601
+ color: r.parseMessage(a[s - 2]),
602
+ signalType: r.LINETYPE.RECT_START
603
+ }), a[s - 1].push({
604
+ type: "rectEnd",
605
+ color: r.parseMessage(a[s - 2]),
606
+ signalType: r.LINETYPE.RECT_END
607
+ }), this.$ = a[s - 1];
608
+ break;
609
+ case 37:
610
+ a[s - 1].unshift({
611
+ type: "optStart",
612
+ optText: r.parseMessage(a[s - 2]),
613
+ signalType: r.LINETYPE.OPT_START
614
+ }), a[s - 1].push({
615
+ type: "optEnd",
616
+ optText: r.parseMessage(a[s - 2]),
617
+ signalType: r.LINETYPE.OPT_END
618
+ }), this.$ = a[s - 1];
619
+ break;
620
+ case 38:
621
+ a[s - 1].unshift({
622
+ type: "altStart",
623
+ altText: r.parseMessage(a[s - 2]),
624
+ signalType: r.LINETYPE.ALT_START
625
+ }), a[s - 1].push({
626
+ type: "altEnd",
627
+ signalType: r.LINETYPE.ALT_END
628
+ }), this.$ = a[s - 1];
629
+ break;
630
+ case 39:
631
+ a[s - 1].unshift({
632
+ type: "parStart",
633
+ parText: r.parseMessage(a[s - 2]),
634
+ signalType: r.LINETYPE.PAR_START
635
+ }), a[s - 1].push({
636
+ type: "parEnd",
637
+ signalType: r.LINETYPE.PAR_END
638
+ }), this.$ = a[s - 1];
639
+ break;
640
+ case 40:
641
+ a[s - 1].unshift({
642
+ type: "parStart",
643
+ parText: r.parseMessage(a[s - 2]),
644
+ signalType: r.LINETYPE.PAR_OVER_START
645
+ }), a[s - 1].push({
646
+ type: "parEnd",
647
+ signalType: r.LINETYPE.PAR_END
648
+ }), this.$ = a[s - 1];
649
+ break;
650
+ case 41:
651
+ a[s - 1].unshift({
652
+ type: "criticalStart",
653
+ criticalText: r.parseMessage(a[s - 2]),
654
+ signalType: r.LINETYPE.CRITICAL_START
655
+ }), a[s - 1].push({
656
+ type: "criticalEnd",
657
+ signalType: r.LINETYPE.CRITICAL_END
658
+ }), this.$ = a[s - 1];
659
+ break;
660
+ case 42:
661
+ a[s - 1].unshift({
662
+ type: "breakStart",
663
+ breakText: r.parseMessage(a[s - 2]),
664
+ signalType: r.LINETYPE.BREAK_START
665
+ }), a[s - 1].push({
666
+ type: "breakEnd",
667
+ optText: r.parseMessage(a[s - 2]),
668
+ signalType: r.LINETYPE.BREAK_END
669
+ }), this.$ = a[s - 1];
670
+ break;
671
+ case 44:
672
+ this.$ = a[s - 3].concat([{
673
+ type: "option",
674
+ optionText: r.parseMessage(a[s - 1]),
675
+ signalType: r.LINETYPE.CRITICAL_OPTION
676
+ }, a[s]]);
677
+ break;
678
+ case 46:
679
+ this.$ = a[s - 3].concat([{
680
+ type: "and",
681
+ parText: r.parseMessage(a[s - 1]),
682
+ signalType: r.LINETYPE.PAR_AND
683
+ }, a[s]]);
684
+ break;
685
+ case 48:
686
+ this.$ = a[s - 3].concat([{
687
+ type: "else",
688
+ altText: r.parseMessage(a[s - 1]),
689
+ signalType: r.LINETYPE.ALT_ELSE
690
+ }, a[s]]);
691
+ break;
692
+ case 49:
693
+ a[s - 3].draw = "participant", a[s - 3].type = "addParticipant", a[s - 3].description = r.parseMessage(a[s - 1]), this.$ = a[s - 3];
694
+ break;
695
+ case 50:
696
+ a[s - 1].draw = "participant", a[s - 1].type = "addParticipant", this.$ = a[s - 1];
697
+ break;
698
+ case 51:
699
+ a[s - 3].draw = "actor", a[s - 3].type = "addParticipant", a[s - 3].description = r.parseMessage(a[s - 1]), this.$ = a[s - 3];
700
+ break;
701
+ case 52:
702
+ case 57:
703
+ a[s - 1].draw = "actor", a[s - 1].type = "addParticipant", this.$ = a[s - 1];
704
+ break;
705
+ case 53:
706
+ a[s - 1].type = "destroyParticipant", this.$ = a[s - 1];
707
+ break;
708
+ case 54:
709
+ a[s - 3].draw = "participant", a[s - 3].type = "addParticipant", a[s - 3].description = r.parseMessage(a[s - 1]), this.$ = a[s - 3];
710
+ break;
711
+ case 55:
712
+ a[s - 1].draw = "participant", a[s - 1].type = "addParticipant", this.$ = a[s - 1];
713
+ break;
714
+ case 56:
715
+ a[s - 3].draw = "actor", a[s - 3].type = "addParticipant", a[s - 3].description = r.parseMessage(a[s - 1]), this.$ = a[s - 3];
716
+ break;
717
+ case 58:
718
+ this.$ = [a[s - 1], {
719
+ type: "addNote",
720
+ placement: a[s - 2],
721
+ actor: a[s - 1].actor,
722
+ text: a[s]
723
+ }];
724
+ break;
725
+ case 59:
726
+ a[s - 2] = [].concat(a[s - 1], a[s - 1]).slice(0, 2), a[s - 2][0] = a[s - 2][0].actor, a[s - 2][1] = a[s - 2][1].actor, this.$ = [a[s - 1], {
727
+ type: "addNote",
728
+ placement: r.PLACEMENT.OVER,
729
+ actor: a[s - 2].slice(0, 2),
730
+ text: a[s]
731
+ }];
732
+ break;
733
+ case 60:
734
+ this.$ = [a[s - 1], {
735
+ type: "addLinks",
736
+ actor: a[s - 1].actor,
737
+ text: a[s]
738
+ }];
739
+ break;
740
+ case 61:
741
+ this.$ = [a[s - 1], {
742
+ type: "addALink",
743
+ actor: a[s - 1].actor,
744
+ text: a[s]
745
+ }];
746
+ break;
747
+ case 62:
748
+ this.$ = [a[s - 1], {
749
+ type: "addProperties",
750
+ actor: a[s - 1].actor,
751
+ text: a[s]
752
+ }];
753
+ break;
754
+ case 63:
755
+ this.$ = [a[s - 1], {
756
+ type: "addDetails",
757
+ actor: a[s - 1].actor,
758
+ text: a[s]
759
+ }];
760
+ break;
761
+ case 66:
762
+ this.$ = [a[s - 2], a[s]];
763
+ break;
764
+ case 67:
765
+ this.$ = a[s];
766
+ break;
767
+ case 68:
768
+ this.$ = r.PLACEMENT.LEFTOF;
769
+ break;
770
+ case 69:
771
+ this.$ = r.PLACEMENT.RIGHTOF;
772
+ break;
773
+ case 70:
774
+ this.$ = [
775
+ a[s - 4],
776
+ a[s - 1],
777
+ {
778
+ type: "addMessage",
779
+ from: a[s - 4].actor,
780
+ to: a[s - 1].actor,
781
+ signalType: a[s - 3],
782
+ msg: a[s],
783
+ activate: !0
784
+ },
785
+ {
786
+ type: "activeStart",
787
+ signalType: r.LINETYPE.ACTIVE_START,
788
+ actor: a[s - 1].actor
789
+ }
790
+ ];
791
+ break;
792
+ case 71:
793
+ this.$ = [
794
+ a[s - 4],
795
+ a[s - 1],
796
+ {
797
+ type: "addMessage",
798
+ from: a[s - 4].actor,
799
+ to: a[s - 1].actor,
800
+ signalType: a[s - 3],
801
+ msg: a[s]
802
+ },
803
+ {
804
+ type: "activeEnd",
805
+ signalType: r.LINETYPE.ACTIVE_END,
806
+ actor: a[s - 4].actor
807
+ }
808
+ ];
809
+ break;
810
+ case 72:
811
+ this.$ = [
812
+ a[s - 4],
813
+ a[s - 1],
814
+ {
815
+ type: "addMessage",
816
+ from: a[s - 4].actor,
817
+ to: a[s - 1].actor,
818
+ signalType: a[s - 3],
819
+ msg: a[s],
820
+ activate: !0,
821
+ centralConnection: r.LINETYPE.CENTRAL_CONNECTION
822
+ },
823
+ {
824
+ type: "centralConnection",
825
+ signalType: r.LINETYPE.CENTRAL_CONNECTION,
826
+ actor: a[s - 1].actor
827
+ }
828
+ ];
829
+ break;
830
+ case 73:
831
+ this.$ = [
832
+ a[s - 4],
833
+ a[s - 1],
834
+ {
835
+ type: "addMessage",
836
+ from: a[s - 4].actor,
837
+ to: a[s - 1].actor,
838
+ signalType: a[s - 2],
839
+ msg: a[s],
840
+ activate: !1,
841
+ centralConnection: r.LINETYPE.CENTRAL_CONNECTION_REVERSE
842
+ },
843
+ {
844
+ type: "centralConnectionReverse",
845
+ signalType: r.LINETYPE.CENTRAL_CONNECTION_REVERSE,
846
+ actor: a[s - 4].actor
847
+ }
848
+ ];
849
+ break;
850
+ case 74:
851
+ this.$ = [
852
+ a[s - 5],
853
+ a[s - 1],
854
+ {
855
+ type: "addMessage",
856
+ from: a[s - 5].actor,
857
+ to: a[s - 1].actor,
858
+ signalType: a[s - 3],
859
+ msg: a[s],
860
+ activate: !0,
861
+ centralConnection: r.LINETYPE.CENTRAL_CONNECTION_DUAL
862
+ },
863
+ {
864
+ type: "centralConnection",
865
+ signalType: r.LINETYPE.CENTRAL_CONNECTION,
866
+ actor: a[s - 1].actor
867
+ },
868
+ {
869
+ type: "centralConnectionReverse",
870
+ signalType: r.LINETYPE.CENTRAL_CONNECTION_REVERSE,
871
+ actor: a[s - 5].actor
872
+ }
873
+ ];
874
+ break;
875
+ case 75:
876
+ this.$ = [
877
+ a[s - 3],
878
+ a[s - 1],
879
+ {
880
+ type: "addMessage",
881
+ from: a[s - 3].actor,
882
+ to: a[s - 1].actor,
883
+ signalType: a[s - 2],
884
+ msg: a[s]
885
+ }
886
+ ];
887
+ break;
888
+ case 76:
889
+ this.$ = {
890
+ type: "addParticipant",
891
+ actor: a[s - 1],
892
+ config: a[s]
893
+ };
894
+ break;
895
+ case 77:
896
+ this.$ = a[s - 1].trim();
897
+ break;
898
+ case 78:
899
+ this.$ = {
900
+ type: "addParticipant",
901
+ actor: a[s]
902
+ };
903
+ break;
904
+ case 79:
905
+ this.$ = r.LINETYPE.SOLID_OPEN;
906
+ break;
907
+ case 80:
908
+ this.$ = r.LINETYPE.DOTTED_OPEN;
909
+ break;
910
+ case 81:
911
+ this.$ = r.LINETYPE.SOLID;
912
+ break;
913
+ case 82:
914
+ this.$ = r.LINETYPE.SOLID_TOP;
915
+ break;
916
+ case 83:
917
+ this.$ = r.LINETYPE.SOLID_BOTTOM;
918
+ break;
919
+ case 84:
920
+ this.$ = r.LINETYPE.STICK_TOP;
921
+ break;
922
+ case 85:
923
+ this.$ = r.LINETYPE.STICK_BOTTOM;
924
+ break;
925
+ case 86:
926
+ this.$ = r.LINETYPE.SOLID_TOP_DOTTED;
927
+ break;
928
+ case 87:
929
+ this.$ = r.LINETYPE.SOLID_BOTTOM_DOTTED;
930
+ break;
931
+ case 88:
932
+ this.$ = r.LINETYPE.STICK_TOP_DOTTED;
933
+ break;
934
+ case 89:
935
+ this.$ = r.LINETYPE.STICK_BOTTOM_DOTTED;
936
+ break;
937
+ case 90:
938
+ this.$ = r.LINETYPE.SOLID_ARROW_TOP_REVERSE;
939
+ break;
940
+ case 91:
941
+ this.$ = r.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;
942
+ break;
943
+ case 92:
944
+ this.$ = r.LINETYPE.STICK_ARROW_TOP_REVERSE;
945
+ break;
946
+ case 93:
947
+ this.$ = r.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;
948
+ break;
949
+ case 94:
950
+ this.$ = r.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;
951
+ break;
952
+ case 95:
953
+ this.$ = r.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;
954
+ break;
955
+ case 96:
956
+ this.$ = r.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;
957
+ break;
958
+ case 97:
959
+ this.$ = r.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;
960
+ break;
961
+ case 98:
962
+ this.$ = r.LINETYPE.BIDIRECTIONAL_SOLID;
963
+ break;
964
+ case 99:
965
+ this.$ = r.LINETYPE.DOTTED;
966
+ break;
967
+ case 100:
968
+ this.$ = r.LINETYPE.BIDIRECTIONAL_DOTTED;
969
+ break;
970
+ case 101:
971
+ this.$ = r.LINETYPE.SOLID_CROSS;
972
+ break;
973
+ case 102:
974
+ this.$ = r.LINETYPE.DOTTED_CROSS;
975
+ break;
976
+ case 103:
977
+ this.$ = r.LINETYPE.SOLID_POINT;
978
+ break;
979
+ case 104:
980
+ this.$ = r.LINETYPE.DOTTED_POINT;
981
+ break;
982
+ case 105:
983
+ this.$ = r.parseMessage(a[s].trim().substring(1));
984
+ break;
985
+ }
986
+ }, "anonymous"),
987
+ table: [
988
+ {
989
+ 3: 1,
990
+ 4: n,
991
+ 5: r,
992
+ 6: i
993
+ },
994
+ { 1: [3] },
995
+ {
996
+ 3: 5,
997
+ 4: n,
998
+ 5: r,
999
+ 6: i
1000
+ },
1001
+ {
1002
+ 3: 6,
1003
+ 4: n,
1004
+ 5: r,
1005
+ 6: i
1006
+ },
1007
+ t([
1008
+ 1,
1009
+ 4,
1010
+ 5,
1011
+ 10,
1012
+ 14,
1013
+ 15,
1014
+ 19,
1015
+ 22,
1016
+ 24,
1017
+ 30,
1018
+ 31,
1019
+ 32,
1020
+ 34,
1021
+ 36,
1022
+ 37,
1023
+ 38,
1024
+ 39,
1025
+ 40,
1026
+ 42,
1027
+ 44,
1028
+ 45,
1029
+ 47,
1030
+ 51,
1031
+ 53,
1032
+ 54,
1033
+ 56,
1034
+ 61,
1035
+ 62,
1036
+ 63,
1037
+ 64,
1038
+ 73
1039
+ ], a, { 7: 7 }),
1040
+ { 1: [2, 1] },
1041
+ { 1: [2, 2] },
1042
+ {
1043
+ 1: [2, 3],
1044
+ 4: o,
1045
+ 5: s,
1046
+ 8: 8,
1047
+ 9: 10,
1048
+ 10: c,
1049
+ 13: 13,
1050
+ 14: l,
1051
+ 15: u,
1052
+ 18: 16,
1053
+ 19: d,
1054
+ 22: f,
1055
+ 23: 41,
1056
+ 24: p,
1057
+ 25: 20,
1058
+ 26: 21,
1059
+ 27: 22,
1060
+ 28: 23,
1061
+ 29: 24,
1062
+ 30: m,
1063
+ 31: h,
1064
+ 32: g,
1065
+ 34: _,
1066
+ 36: v,
1067
+ 37: y,
1068
+ 38: b,
1069
+ 39: x,
1070
+ 40: S,
1071
+ 42: C,
1072
+ 44: w,
1073
+ 45: T,
1074
+ 47: E,
1075
+ 51: D,
1076
+ 53: O,
1077
+ 54: k,
1078
+ 56: A,
1079
+ 61: j,
1080
+ 62: M,
1081
+ 63: N,
1082
+ 64: P,
1083
+ 73: F
1084
+ },
1085
+ t(I, [2, 5]),
1086
+ {
1087
+ 9: 48,
1088
+ 13: 13,
1089
+ 14: l,
1090
+ 15: u,
1091
+ 18: 16,
1092
+ 19: d,
1093
+ 22: f,
1094
+ 23: 41,
1095
+ 24: p,
1096
+ 25: 20,
1097
+ 26: 21,
1098
+ 27: 22,
1099
+ 28: 23,
1100
+ 29: 24,
1101
+ 30: m,
1102
+ 31: h,
1103
+ 32: g,
1104
+ 34: _,
1105
+ 36: v,
1106
+ 37: y,
1107
+ 38: b,
1108
+ 39: x,
1109
+ 40: S,
1110
+ 42: C,
1111
+ 44: w,
1112
+ 45: T,
1113
+ 47: E,
1114
+ 51: D,
1115
+ 53: O,
1116
+ 54: k,
1117
+ 56: A,
1118
+ 61: j,
1119
+ 62: M,
1120
+ 63: N,
1121
+ 64: P,
1122
+ 73: F
1123
+ },
1124
+ t(I, [2, 7]),
1125
+ t(I, [2, 8]),
1126
+ t(I, [2, 9]),
1127
+ t(I, [2, 15]),
1128
+ {
1129
+ 13: 49,
1130
+ 51: D,
1131
+ 53: O,
1132
+ 54: k
1133
+ },
1134
+ { 16: [1, 50] },
1135
+ { 5: [1, 51] },
1136
+ {
1137
+ 5: [1, 54],
1138
+ 20: [1, 52],
1139
+ 21: [1, 53]
1140
+ },
1141
+ {
1142
+ 23: 55,
1143
+ 73: F
1144
+ },
1145
+ {
1146
+ 23: 56,
1147
+ 73: F
1148
+ },
1149
+ { 5: [1, 57] },
1150
+ { 5: [1, 58] },
1151
+ { 5: [1, 59] },
1152
+ { 5: [1, 60] },
1153
+ { 5: [1, 61] },
1154
+ t(I, [2, 30]),
1155
+ t(I, [2, 31]),
1156
+ { 33: [1, 62] },
1157
+ { 35: [1, 63] },
1158
+ t(I, [2, 34]),
1159
+ { 16: [1, 64] },
1160
+ { 16: [1, 65] },
1161
+ { 16: [1, 66] },
1162
+ { 16: [1, 67] },
1163
+ { 16: [1, 68] },
1164
+ { 16: [1, 69] },
1165
+ { 16: [1, 70] },
1166
+ { 16: [1, 71] },
1167
+ {
1168
+ 23: 72,
1169
+ 55: 73,
1170
+ 73: L
1171
+ },
1172
+ {
1173
+ 23: 75,
1174
+ 55: 76,
1175
+ 73: L
1176
+ },
1177
+ {
1178
+ 23: 77,
1179
+ 73: F
1180
+ },
1181
+ {
1182
+ 69: 78,
1183
+ 72: [1, 79],
1184
+ 78: ee,
1185
+ 79: R,
1186
+ 80: te,
1187
+ 81: ne,
1188
+ 82: z,
1189
+ 83: B,
1190
+ 84: V,
1191
+ 85: re,
1192
+ 86: H,
1193
+ 87: U,
1194
+ 88: W,
1195
+ 89: ie,
1196
+ 90: ae,
1197
+ 91: oe,
1198
+ 92: G,
1199
+ 93: se,
1200
+ 94: K,
1201
+ 95: ce,
1202
+ 96: le,
1203
+ 97: ue,
1204
+ 98: de,
1205
+ 99: fe,
1206
+ 100: pe,
1207
+ 101: me,
1208
+ 102: he,
1209
+ 103: ge
1210
+ },
1211
+ {
1212
+ 57: 106,
1213
+ 59: [1, 107],
1214
+ 67: [1, 108],
1215
+ 68: [1, 109]
1216
+ },
1217
+ {
1218
+ 23: 110,
1219
+ 73: F
1220
+ },
1221
+ {
1222
+ 23: 111,
1223
+ 73: F
1224
+ },
1225
+ {
1226
+ 23: 112,
1227
+ 73: F
1228
+ },
1229
+ {
1230
+ 23: 113,
1231
+ 73: F
1232
+ },
1233
+ t([
1234
+ 5,
1235
+ 66,
1236
+ 72,
1237
+ 78,
1238
+ 79,
1239
+ 80,
1240
+ 81,
1241
+ 82,
1242
+ 83,
1243
+ 84,
1244
+ 85,
1245
+ 86,
1246
+ 87,
1247
+ 88,
1248
+ 89,
1249
+ 90,
1250
+ 91,
1251
+ 92,
1252
+ 93,
1253
+ 94,
1254
+ 95,
1255
+ 96,
1256
+ 97,
1257
+ 98,
1258
+ 99,
1259
+ 100,
1260
+ 101,
1261
+ 102,
1262
+ 103,
1263
+ 104
1264
+ ], _e),
1265
+ t(I, [2, 6]),
1266
+ t(I, [2, 16]),
1267
+ t(ve, [2, 10], { 11: 114 }),
1268
+ t(I, [2, 18]),
1269
+ {
1270
+ 5: [1, 116],
1271
+ 20: [1, 115]
1272
+ },
1273
+ { 5: [1, 117] },
1274
+ t(I, [2, 22]),
1275
+ { 5: [1, 118] },
1276
+ { 5: [1, 119] },
1277
+ t(I, [2, 25]),
1278
+ t(I, [2, 26]),
1279
+ t(I, [2, 27]),
1280
+ t(I, [2, 28]),
1281
+ t(I, [2, 29]),
1282
+ t(I, [2, 32]),
1283
+ t(I, [2, 33]),
1284
+ t(ye, a, { 7: 120 }),
1285
+ t(ye, a, { 7: 121 }),
1286
+ t(ye, a, { 7: 122 }),
1287
+ t(be, a, {
1288
+ 41: 123,
1289
+ 7: 124
1290
+ }),
1291
+ t(xe, a, {
1292
+ 43: 125,
1293
+ 7: 126
1294
+ }),
1295
+ t(xe, a, {
1296
+ 7: 126,
1297
+ 43: 127
1298
+ }),
1299
+ t(Se, a, {
1300
+ 46: 128,
1301
+ 7: 129
1302
+ }),
1303
+ t(ye, a, { 7: 130 }),
1304
+ {
1305
+ 5: [1, 132],
1306
+ 52: [1, 131]
1307
+ },
1308
+ {
1309
+ 5: [1, 134],
1310
+ 52: [1, 133]
1311
+ },
1312
+ t(Ce, _e, {
1313
+ 74: 135,
1314
+ 75: [1, 136]
1315
+ }),
1316
+ {
1317
+ 5: [1, 138],
1318
+ 52: [1, 137]
1319
+ },
1320
+ {
1321
+ 5: [1, 140],
1322
+ 52: [1, 139]
1323
+ },
1324
+ { 5: [1, 141] },
1325
+ {
1326
+ 23: 145,
1327
+ 70: [1, 142],
1328
+ 71: [1, 143],
1329
+ 72: [1, 144],
1330
+ 73: F
1331
+ },
1332
+ {
1333
+ 69: 146,
1334
+ 78: ee,
1335
+ 79: R,
1336
+ 80: te,
1337
+ 81: ne,
1338
+ 82: z,
1339
+ 83: B,
1340
+ 84: V,
1341
+ 85: re,
1342
+ 86: H,
1343
+ 87: U,
1344
+ 88: W,
1345
+ 89: ie,
1346
+ 90: ae,
1347
+ 91: oe,
1348
+ 92: G,
1349
+ 93: se,
1350
+ 94: K,
1351
+ 95: ce,
1352
+ 96: le,
1353
+ 97: ue,
1354
+ 98: de,
1355
+ 99: fe,
1356
+ 100: pe,
1357
+ 101: me,
1358
+ 102: he,
1359
+ 103: ge
1360
+ },
1361
+ t(q, [2, 79]),
1362
+ t(q, [2, 80]),
1363
+ t(q, [2, 81]),
1364
+ t(q, [2, 82]),
1365
+ t(q, [2, 83]),
1366
+ t(q, [2, 84]),
1367
+ t(q, [2, 85]),
1368
+ t(q, [2, 86]),
1369
+ t(q, [2, 87]),
1370
+ t(q, [2, 88]),
1371
+ t(q, [2, 89]),
1372
+ t(q, [2, 90]),
1373
+ t(q, [2, 91]),
1374
+ t(q, [2, 92]),
1375
+ t(q, [2, 93]),
1376
+ t(q, [2, 94]),
1377
+ t(q, [2, 95]),
1378
+ t(q, [2, 96]),
1379
+ t(q, [2, 97]),
1380
+ t(q, [2, 98]),
1381
+ t(q, [2, 99]),
1382
+ t(q, [2, 100]),
1383
+ t(q, [2, 101]),
1384
+ t(q, [2, 102]),
1385
+ t(q, [2, 103]),
1386
+ t(q, [2, 104]),
1387
+ {
1388
+ 23: 147,
1389
+ 73: F
1390
+ },
1391
+ {
1392
+ 23: 149,
1393
+ 60: 148,
1394
+ 73: F
1395
+ },
1396
+ { 73: [2, 68] },
1397
+ { 73: [2, 69] },
1398
+ {
1399
+ 58: 150,
1400
+ 104: J
1401
+ },
1402
+ {
1403
+ 58: 152,
1404
+ 104: J
1405
+ },
1406
+ {
1407
+ 58: 153,
1408
+ 104: J
1409
+ },
1410
+ {
1411
+ 58: 154,
1412
+ 104: J
1413
+ },
1414
+ {
1415
+ 4: [1, 157],
1416
+ 5: [1, 159],
1417
+ 12: 156,
1418
+ 13: 158,
1419
+ 17: [1, 155],
1420
+ 51: D,
1421
+ 53: O,
1422
+ 54: k
1423
+ },
1424
+ { 5: [1, 160] },
1425
+ t(I, [2, 20]),
1426
+ t(I, [2, 21]),
1427
+ t(I, [2, 23]),
1428
+ t(I, [2, 24]),
1429
+ {
1430
+ 4: o,
1431
+ 5: s,
1432
+ 8: 8,
1433
+ 9: 10,
1434
+ 10: c,
1435
+ 13: 13,
1436
+ 14: l,
1437
+ 15: u,
1438
+ 17: [1, 161],
1439
+ 18: 16,
1440
+ 19: d,
1441
+ 22: f,
1442
+ 23: 41,
1443
+ 24: p,
1444
+ 25: 20,
1445
+ 26: 21,
1446
+ 27: 22,
1447
+ 28: 23,
1448
+ 29: 24,
1449
+ 30: m,
1450
+ 31: h,
1451
+ 32: g,
1452
+ 34: _,
1453
+ 36: v,
1454
+ 37: y,
1455
+ 38: b,
1456
+ 39: x,
1457
+ 40: S,
1458
+ 42: C,
1459
+ 44: w,
1460
+ 45: T,
1461
+ 47: E,
1462
+ 51: D,
1463
+ 53: O,
1464
+ 54: k,
1465
+ 56: A,
1466
+ 61: j,
1467
+ 62: M,
1468
+ 63: N,
1469
+ 64: P,
1470
+ 73: F
1471
+ },
1472
+ {
1473
+ 4: o,
1474
+ 5: s,
1475
+ 8: 8,
1476
+ 9: 10,
1477
+ 10: c,
1478
+ 13: 13,
1479
+ 14: l,
1480
+ 15: u,
1481
+ 17: [1, 162],
1482
+ 18: 16,
1483
+ 19: d,
1484
+ 22: f,
1485
+ 23: 41,
1486
+ 24: p,
1487
+ 25: 20,
1488
+ 26: 21,
1489
+ 27: 22,
1490
+ 28: 23,
1491
+ 29: 24,
1492
+ 30: m,
1493
+ 31: h,
1494
+ 32: g,
1495
+ 34: _,
1496
+ 36: v,
1497
+ 37: y,
1498
+ 38: b,
1499
+ 39: x,
1500
+ 40: S,
1501
+ 42: C,
1502
+ 44: w,
1503
+ 45: T,
1504
+ 47: E,
1505
+ 51: D,
1506
+ 53: O,
1507
+ 54: k,
1508
+ 56: A,
1509
+ 61: j,
1510
+ 62: M,
1511
+ 63: N,
1512
+ 64: P,
1513
+ 73: F
1514
+ },
1515
+ {
1516
+ 4: o,
1517
+ 5: s,
1518
+ 8: 8,
1519
+ 9: 10,
1520
+ 10: c,
1521
+ 13: 13,
1522
+ 14: l,
1523
+ 15: u,
1524
+ 17: [1, 163],
1525
+ 18: 16,
1526
+ 19: d,
1527
+ 22: f,
1528
+ 23: 41,
1529
+ 24: p,
1530
+ 25: 20,
1531
+ 26: 21,
1532
+ 27: 22,
1533
+ 28: 23,
1534
+ 29: 24,
1535
+ 30: m,
1536
+ 31: h,
1537
+ 32: g,
1538
+ 34: _,
1539
+ 36: v,
1540
+ 37: y,
1541
+ 38: b,
1542
+ 39: x,
1543
+ 40: S,
1544
+ 42: C,
1545
+ 44: w,
1546
+ 45: T,
1547
+ 47: E,
1548
+ 51: D,
1549
+ 53: O,
1550
+ 54: k,
1551
+ 56: A,
1552
+ 61: j,
1553
+ 62: M,
1554
+ 63: N,
1555
+ 64: P,
1556
+ 73: F
1557
+ },
1558
+ { 17: [1, 164] },
1559
+ {
1560
+ 4: o,
1561
+ 5: s,
1562
+ 8: 8,
1563
+ 9: 10,
1564
+ 10: c,
1565
+ 13: 13,
1566
+ 14: l,
1567
+ 15: u,
1568
+ 17: [2, 47],
1569
+ 18: 16,
1570
+ 19: d,
1571
+ 22: f,
1572
+ 23: 41,
1573
+ 24: p,
1574
+ 25: 20,
1575
+ 26: 21,
1576
+ 27: 22,
1577
+ 28: 23,
1578
+ 29: 24,
1579
+ 30: m,
1580
+ 31: h,
1581
+ 32: g,
1582
+ 34: _,
1583
+ 36: v,
1584
+ 37: y,
1585
+ 38: b,
1586
+ 39: x,
1587
+ 40: S,
1588
+ 42: C,
1589
+ 44: w,
1590
+ 45: T,
1591
+ 47: E,
1592
+ 50: [1, 165],
1593
+ 51: D,
1594
+ 53: O,
1595
+ 54: k,
1596
+ 56: A,
1597
+ 61: j,
1598
+ 62: M,
1599
+ 63: N,
1600
+ 64: P,
1601
+ 73: F
1602
+ },
1603
+ { 17: [1, 166] },
1604
+ {
1605
+ 4: o,
1606
+ 5: s,
1607
+ 8: 8,
1608
+ 9: 10,
1609
+ 10: c,
1610
+ 13: 13,
1611
+ 14: l,
1612
+ 15: u,
1613
+ 17: [2, 45],
1614
+ 18: 16,
1615
+ 19: d,
1616
+ 22: f,
1617
+ 23: 41,
1618
+ 24: p,
1619
+ 25: 20,
1620
+ 26: 21,
1621
+ 27: 22,
1622
+ 28: 23,
1623
+ 29: 24,
1624
+ 30: m,
1625
+ 31: h,
1626
+ 32: g,
1627
+ 34: _,
1628
+ 36: v,
1629
+ 37: y,
1630
+ 38: b,
1631
+ 39: x,
1632
+ 40: S,
1633
+ 42: C,
1634
+ 44: w,
1635
+ 45: T,
1636
+ 47: E,
1637
+ 49: [1, 167],
1638
+ 51: D,
1639
+ 53: O,
1640
+ 54: k,
1641
+ 56: A,
1642
+ 61: j,
1643
+ 62: M,
1644
+ 63: N,
1645
+ 64: P,
1646
+ 73: F
1647
+ },
1648
+ { 17: [1, 168] },
1649
+ { 17: [1, 169] },
1650
+ {
1651
+ 4: o,
1652
+ 5: s,
1653
+ 8: 8,
1654
+ 9: 10,
1655
+ 10: c,
1656
+ 13: 13,
1657
+ 14: l,
1658
+ 15: u,
1659
+ 17: [2, 43],
1660
+ 18: 16,
1661
+ 19: d,
1662
+ 22: f,
1663
+ 23: 41,
1664
+ 24: p,
1665
+ 25: 20,
1666
+ 26: 21,
1667
+ 27: 22,
1668
+ 28: 23,
1669
+ 29: 24,
1670
+ 30: m,
1671
+ 31: h,
1672
+ 32: g,
1673
+ 34: _,
1674
+ 36: v,
1675
+ 37: y,
1676
+ 38: b,
1677
+ 39: x,
1678
+ 40: S,
1679
+ 42: C,
1680
+ 44: w,
1681
+ 45: T,
1682
+ 47: E,
1683
+ 48: [1, 170],
1684
+ 51: D,
1685
+ 53: O,
1686
+ 54: k,
1687
+ 56: A,
1688
+ 61: j,
1689
+ 62: M,
1690
+ 63: N,
1691
+ 64: P,
1692
+ 73: F
1693
+ },
1694
+ {
1695
+ 4: o,
1696
+ 5: s,
1697
+ 8: 8,
1698
+ 9: 10,
1699
+ 10: c,
1700
+ 13: 13,
1701
+ 14: l,
1702
+ 15: u,
1703
+ 17: [1, 171],
1704
+ 18: 16,
1705
+ 19: d,
1706
+ 22: f,
1707
+ 23: 41,
1708
+ 24: p,
1709
+ 25: 20,
1710
+ 26: 21,
1711
+ 27: 22,
1712
+ 28: 23,
1713
+ 29: 24,
1714
+ 30: m,
1715
+ 31: h,
1716
+ 32: g,
1717
+ 34: _,
1718
+ 36: v,
1719
+ 37: y,
1720
+ 38: b,
1721
+ 39: x,
1722
+ 40: S,
1723
+ 42: C,
1724
+ 44: w,
1725
+ 45: T,
1726
+ 47: E,
1727
+ 51: D,
1728
+ 53: O,
1729
+ 54: k,
1730
+ 56: A,
1731
+ 61: j,
1732
+ 62: M,
1733
+ 63: N,
1734
+ 64: P,
1735
+ 73: F
1736
+ },
1737
+ { 16: [1, 172] },
1738
+ t(I, [2, 50]),
1739
+ { 16: [1, 173] },
1740
+ t(I, [2, 55]),
1741
+ t(Ce, [2, 76]),
1742
+ { 76: [1, 174] },
1743
+ { 16: [1, 175] },
1744
+ t(I, [2, 52]),
1745
+ { 16: [1, 176] },
1746
+ t(I, [2, 57]),
1747
+ t(I, [2, 53]),
1748
+ {
1749
+ 23: 177,
1750
+ 73: F
1751
+ },
1752
+ {
1753
+ 23: 178,
1754
+ 73: F
1755
+ },
1756
+ {
1757
+ 23: 179,
1758
+ 73: F
1759
+ },
1760
+ {
1761
+ 58: 180,
1762
+ 104: J
1763
+ },
1764
+ {
1765
+ 23: 181,
1766
+ 72: [1, 182],
1767
+ 73: F
1768
+ },
1769
+ {
1770
+ 58: 183,
1771
+ 104: J
1772
+ },
1773
+ {
1774
+ 58: 184,
1775
+ 104: J
1776
+ },
1777
+ {
1778
+ 66: [1, 185],
1779
+ 104: [2, 67]
1780
+ },
1781
+ { 5: [2, 60] },
1782
+ { 5: [2, 105] },
1783
+ { 5: [2, 61] },
1784
+ { 5: [2, 62] },
1785
+ { 5: [2, 63] },
1786
+ t(I, [2, 17]),
1787
+ t(ve, [2, 11]),
1788
+ {
1789
+ 13: 186,
1790
+ 51: D,
1791
+ 53: O,
1792
+ 54: k
1793
+ },
1794
+ t(ve, [2, 13]),
1795
+ t(ve, [2, 14]),
1796
+ t(I, [2, 19]),
1797
+ t(I, [2, 35]),
1798
+ t(I, [2, 36]),
1799
+ t(I, [2, 37]),
1800
+ t(I, [2, 38]),
1801
+ { 16: [1, 187] },
1802
+ t(I, [2, 39]),
1803
+ { 16: [1, 188] },
1804
+ t(I, [2, 40]),
1805
+ t(I, [2, 41]),
1806
+ { 16: [1, 189] },
1807
+ t(I, [2, 42]),
1808
+ { 5: [1, 190] },
1809
+ { 5: [1, 191] },
1810
+ { 77: [1, 192] },
1811
+ { 5: [1, 193] },
1812
+ { 5: [1, 194] },
1813
+ {
1814
+ 58: 195,
1815
+ 104: J
1816
+ },
1817
+ {
1818
+ 58: 196,
1819
+ 104: J
1820
+ },
1821
+ {
1822
+ 58: 197,
1823
+ 104: J
1824
+ },
1825
+ { 5: [2, 75] },
1826
+ {
1827
+ 58: 198,
1828
+ 104: J
1829
+ },
1830
+ {
1831
+ 23: 199,
1832
+ 73: F
1833
+ },
1834
+ { 5: [2, 58] },
1835
+ { 5: [2, 59] },
1836
+ {
1837
+ 23: 200,
1838
+ 73: F
1839
+ },
1840
+ t(ve, [2, 12]),
1841
+ t(be, a, {
1842
+ 7: 124,
1843
+ 41: 201
1844
+ }),
1845
+ t(xe, a, {
1846
+ 7: 126,
1847
+ 43: 202
1848
+ }),
1849
+ t(Se, a, {
1850
+ 7: 129,
1851
+ 46: 203
1852
+ }),
1853
+ t(I, [2, 49]),
1854
+ t(I, [2, 54]),
1855
+ t(Ce, [2, 77]),
1856
+ t(I, [2, 51]),
1857
+ t(I, [2, 56]),
1858
+ { 5: [2, 70] },
1859
+ { 5: [2, 71] },
1860
+ { 5: [2, 72] },
1861
+ { 5: [2, 73] },
1862
+ {
1863
+ 58: 204,
1864
+ 104: J
1865
+ },
1866
+ { 104: [2, 66] },
1867
+ { 17: [2, 48] },
1868
+ { 17: [2, 46] },
1869
+ { 17: [2, 44] },
1870
+ { 5: [2, 74] }
1871
+ ],
1872
+ defaultActions: {
1873
+ 5: [2, 1],
1874
+ 6: [2, 2],
1875
+ 108: [2, 68],
1876
+ 109: [2, 69],
1877
+ 150: [2, 60],
1878
+ 151: [2, 105],
1879
+ 152: [2, 61],
1880
+ 153: [2, 62],
1881
+ 154: [2, 63],
1882
+ 180: [2, 75],
1883
+ 183: [2, 58],
1884
+ 184: [2, 59],
1885
+ 195: [2, 70],
1886
+ 196: [2, 71],
1887
+ 197: [2, 72],
1888
+ 198: [2, 73],
1889
+ 200: [2, 66],
1890
+ 201: [2, 48],
1891
+ 202: [2, 46],
1892
+ 203: [2, 44],
1893
+ 204: [2, 74]
1894
+ },
1895
+ parseError: /* @__PURE__ */ e(function(e, t) {
1896
+ if (t.recoverable) this.trace(e);
1897
+ else {
1898
+ var n = Error(e);
1899
+ throw n.hash = t, n;
1900
+ }
1901
+ }, "parseError"),
1902
+ parse: /* @__PURE__ */ e(function(t) {
1903
+ var n = this, r = [0], i = [], a = [null], o = [], s = this.table, c = "", l = 0, u = 0, d = 0, f = 2, p = 1, m = o.slice.call(arguments, 1), h = Object.create(this.lexer), g = { yy: {} };
1904
+ for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
1905
+ h.setInput(t, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
1906
+ var v = h.yylloc;
1907
+ o.push(v);
1908
+ var y = h.options && h.options.ranges;
1909
+ typeof g.yy.parseError == "function" ? this.parseError = g.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
1910
+ function b(e) {
1911
+ r.length -= 2 * e, a.length -= e, o.length -= e;
1912
+ }
1913
+ e(b, "popStack");
1914
+ function x() {
1915
+ var e = i.pop() || h.lex() || p;
1916
+ return typeof e != "number" && (e instanceof Array && (i = e, e = i.pop()), e = n.symbols_[e] || e), e;
1917
+ }
1918
+ e(x, "lex");
1919
+ for (var S, C, w, T, E, D = {}, O, k, A, j;;) {
1920
+ if (w = r[r.length - 1], this.defaultActions[w] ? T = this.defaultActions[w] : (S ??= x(), T = s[w] && s[w][S]), T === void 0 || !T.length || !T[0]) {
1921
+ var M = "";
1922
+ for (O in j = [], s[w]) this.terminals_[O] && O > f && j.push("'" + this.terminals_[O] + "'");
1923
+ M = h.showPosition ? "Parse error on line " + (l + 1) + ":\n" + h.showPosition() + "\nExpecting " + j.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : "Parse error on line " + (l + 1) + ": Unexpected " + (S == p ? "end of input" : "'" + (this.terminals_[S] || S) + "'"), this.parseError(M, {
1924
+ text: h.match,
1925
+ token: this.terminals_[S] || S,
1926
+ line: h.yylineno,
1927
+ loc: v,
1928
+ expected: j
1929
+ });
1930
+ }
1931
+ if (T[0] instanceof Array && T.length > 1) throw Error("Parse Error: multiple actions possible at state: " + w + ", token: " + S);
1932
+ switch (T[0]) {
1933
+ case 1:
1934
+ r.push(S), a.push(h.yytext), o.push(h.yylloc), r.push(T[1]), S = null, C ? (S = C, C = null) : (u = h.yyleng, c = h.yytext, l = h.yylineno, v = h.yylloc, d > 0 && d--);
1935
+ break;
1936
+ case 2:
1937
+ if (k = this.productions_[T[1]][1], D.$ = a[a.length - k], D._$ = {
1938
+ first_line: o[o.length - (k || 1)].first_line,
1939
+ last_line: o[o.length - 1].last_line,
1940
+ first_column: o[o.length - (k || 1)].first_column,
1941
+ last_column: o[o.length - 1].last_column
1942
+ }, y && (D._$.range = [o[o.length - (k || 1)].range[0], o[o.length - 1].range[1]]), E = this.performAction.apply(D, [
1943
+ c,
1944
+ u,
1945
+ l,
1946
+ g.yy,
1947
+ T[1],
1948
+ a,
1949
+ o
1950
+ ].concat(m)), E !== void 0) return E;
1951
+ k && (r = r.slice(0, -1 * k * 2), a = a.slice(0, -1 * k), o = o.slice(0, -1 * k)), r.push(this.productions_[T[1]][0]), a.push(D.$), o.push(D._$), A = s[r[r.length - 2]][r[r.length - 1]], r.push(A);
1952
+ break;
1953
+ case 3: return !0;
1954
+ }
1955
+ }
1956
+ return !0;
1957
+ }, "parse")
1958
+ };
1959
+ we.lexer = /* @__PURE__ */ (function() {
1960
+ return {
1961
+ EOF: 1,
1962
+ parseError: /* @__PURE__ */ e(function(e, t) {
1963
+ if (this.yy.parser) this.yy.parser.parseError(e, t);
1964
+ else throw Error(e);
1965
+ }, "parseError"),
1966
+ setInput: /* @__PURE__ */ e(function(e, t) {
1967
+ return this.yy = t || this.yy || {}, this._input = e, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
1968
+ first_line: 1,
1969
+ first_column: 0,
1970
+ last_line: 1,
1971
+ last_column: 0
1972
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
1973
+ }, "setInput"),
1974
+ input: /* @__PURE__ */ e(function() {
1975
+ var e = this._input[0];
1976
+ return this.yytext += e, this.yyleng++, this.offset++, this.match += e, this.matched += e, e.match(/(?:\r\n?|\n).*/g) ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), e;
1977
+ }, "input"),
1978
+ unput: /* @__PURE__ */ e(function(e) {
1979
+ var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
1980
+ this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
1981
+ var r = this.match.split(/(?:\r\n?|\n)/g);
1982
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), n.length - 1 && (this.yylineno -= n.length - 1);
1983
+ var i = this.yylloc.range;
1984
+ return this.yylloc = {
1985
+ first_line: this.yylloc.first_line,
1986
+ last_line: this.yylineno + 1,
1987
+ first_column: this.yylloc.first_column,
1988
+ last_column: n ? (n.length === r.length ? this.yylloc.first_column : 0) + r[r.length - n.length].length - n[0].length : this.yylloc.first_column - t
1989
+ }, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
1990
+ }, "unput"),
1991
+ more: /* @__PURE__ */ e(function() {
1992
+ return this._more = !0, this;
1993
+ }, "more"),
1994
+ reject: /* @__PURE__ */ e(function() {
1995
+ if (this.options.backtrack_lexer) this._backtrack = !0;
1996
+ else return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n" + this.showPosition(), {
1997
+ text: "",
1998
+ token: null,
1999
+ line: this.yylineno
2000
+ });
2001
+ return this;
2002
+ }, "reject"),
2003
+ less: /* @__PURE__ */ e(function(e) {
2004
+ this.unput(this.match.slice(e));
2005
+ }, "less"),
2006
+ pastInput: /* @__PURE__ */ e(function() {
2007
+ var e = this.matched.substr(0, this.matched.length - this.match.length);
2008
+ return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
2009
+ }, "pastInput"),
2010
+ upcomingInput: /* @__PURE__ */ e(function() {
2011
+ var e = this.match;
2012
+ return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
2013
+ }, "upcomingInput"),
2014
+ showPosition: /* @__PURE__ */ e(function() {
2015
+ var e = this.pastInput(), t = Array(e.length + 1).join("-");
2016
+ return e + this.upcomingInput() + "\n" + t + "^";
2017
+ }, "showPosition"),
2018
+ test_match: /* @__PURE__ */ e(function(e, t) {
2019
+ var n, r, i;
2020
+ if (this.options.backtrack_lexer && (i = {
2021
+ yylineno: this.yylineno,
2022
+ yylloc: {
2023
+ first_line: this.yylloc.first_line,
2024
+ last_line: this.last_line,
2025
+ first_column: this.yylloc.first_column,
2026
+ last_column: this.yylloc.last_column
2027
+ },
2028
+ yytext: this.yytext,
2029
+ match: this.match,
2030
+ matches: this.matches,
2031
+ matched: this.matched,
2032
+ yyleng: this.yyleng,
2033
+ offset: this.offset,
2034
+ _more: this._more,
2035
+ _input: this._input,
2036
+ yy: this.yy,
2037
+ conditionStack: this.conditionStack.slice(0),
2038
+ done: this.done
2039
+ }, this.options.ranges && (i.yylloc.range = this.yylloc.range.slice(0))), r = e[0].match(/(?:\r\n?|\n).*/g), r && (this.yylineno += r.length), this.yylloc = {
2040
+ first_line: this.yylloc.last_line,
2041
+ last_line: this.yylineno + 1,
2042
+ first_column: this.yylloc.last_column,
2043
+ last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
2044
+ }, this.yytext += e[0], this.match += e[0], this.matches = e, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(e[0].length), this.matched += e[0], n = this.performAction.call(this, this.yy, this, t, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), n) return n;
2045
+ if (this._backtrack) {
2046
+ for (var a in i) this[a] = i[a];
2047
+ return !1;
2048
+ }
2049
+ return !1;
2050
+ }, "test_match"),
2051
+ next: /* @__PURE__ */ e(function() {
2052
+ if (this.done) return this.EOF;
2053
+ this._input || (this.done = !0);
2054
+ var e, t, n, r;
2055
+ this._more || (this.yytext = "", this.match = "");
2056
+ for (var i = this._currentRules(), a = 0; a < i.length; a++) if (n = this._input.match(this.rules[i[a]]), n && (!t || n[0].length > t[0].length)) {
2057
+ if (t = n, r = a, this.options.backtrack_lexer) {
2058
+ if (e = this.test_match(n, i[a]), e !== !1) return e;
2059
+ if (this._backtrack) {
2060
+ t = !1;
2061
+ continue;
2062
+ } else return !1;
2063
+ } else if (!this.options.flex) break;
2064
+ }
2065
+ return t ? (e = this.test_match(t, i[r]), e === !1 ? !1 : e) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
2066
+ text: "",
2067
+ token: null,
2068
+ line: this.yylineno
2069
+ });
2070
+ }, "next"),
2071
+ lex: /* @__PURE__ */ e(function() {
2072
+ return this.next() || this.lex();
2073
+ }, "lex"),
2074
+ begin: /* @__PURE__ */ e(function(e) {
2075
+ this.conditionStack.push(e);
2076
+ }, "begin"),
2077
+ popState: /* @__PURE__ */ e(function() {
2078
+ return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
2079
+ }, "popState"),
2080
+ _currentRules: /* @__PURE__ */ e(function() {
2081
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
2082
+ }, "_currentRules"),
2083
+ topState: /* @__PURE__ */ e(function(e) {
2084
+ return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
2085
+ }, "topState"),
2086
+ pushState: /* @__PURE__ */ e(function(e) {
2087
+ this.begin(e);
2088
+ }, "pushState"),
2089
+ stateStackSize: /* @__PURE__ */ e(function() {
2090
+ return this.conditionStack.length;
2091
+ }, "stateStackSize"),
2092
+ options: { "case-insensitive": !0 },
2093
+ performAction: /* @__PURE__ */ e(function(e, t, n, r) {
2094
+ switch (n) {
2095
+ case 0: return 5;
2096
+ case 1: break;
2097
+ case 2: break;
2098
+ case 3: break;
2099
+ case 4: break;
2100
+ case 5: break;
2101
+ case 6: return 20;
2102
+ case 7: return this.begin("CONFIG"), 75;
2103
+ case 8: return 76;
2104
+ case 9: return this.popState(), this.begin("ALIAS"), 77;
2105
+ case 10: return this.popState(), this.popState(), 77;
2106
+ case 11: return t.yytext = t.yytext.trim(), 73;
2107
+ case 12: return t.yytext = t.yytext.trim(), this.begin("ALIAS"), 73;
2108
+ case 13: return t.yytext = t.yytext.trim(), this.popState(), 73;
2109
+ case 14: return this.popState(), 10;
2110
+ case 15: return t.yytext = t.yytext.trim(), this.popState(), 10;
2111
+ case 16: return this.begin("LINE"), 15;
2112
+ case 17: return this.begin("ID"), 51;
2113
+ case 18: return this.begin("ID"), 53;
2114
+ case 19: return 14;
2115
+ case 20: return this.begin("ID"), 54;
2116
+ case 21: return this.popState(), this.popState(), this.begin("LINE"), 52;
2117
+ case 22: return this.popState(), this.popState(), 5;
2118
+ case 23: return this.begin("LINE"), 37;
2119
+ case 24: return this.begin("LINE"), 38;
2120
+ case 25: return this.begin("LINE"), 39;
2121
+ case 26: return this.begin("LINE"), 40;
2122
+ case 27: return this.begin("LINE"), 50;
2123
+ case 28: return this.begin("LINE"), 42;
2124
+ case 29: return this.begin("LINE"), 44;
2125
+ case 30: return this.begin("LINE"), 49;
2126
+ case 31: return this.begin("LINE"), 45;
2127
+ case 32: return this.begin("LINE"), 48;
2128
+ case 33: return this.begin("LINE"), 47;
2129
+ case 34: return this.popState(), 16;
2130
+ case 35: return 17;
2131
+ case 36: return 67;
2132
+ case 37: return 68;
2133
+ case 38: return 61;
2134
+ case 39: return 62;
2135
+ case 40: return 63;
2136
+ case 41: return 64;
2137
+ case 42: return 59;
2138
+ case 43: return 56;
2139
+ case 44: return this.begin("ID"), 22;
2140
+ case 45: return this.begin("ID"), 24;
2141
+ case 46: return 30;
2142
+ case 47: return 31;
2143
+ case 48: return this.begin("acc_title"), 32;
2144
+ case 49: return this.popState(), "acc_title_value";
2145
+ case 50: return this.begin("acc_descr"), 34;
2146
+ case 51: return this.popState(), "acc_descr_value";
2147
+ case 52:
2148
+ this.begin("acc_descr_multiline");
2149
+ break;
2150
+ case 53:
2151
+ this.popState();
2152
+ break;
2153
+ case 54: return "acc_descr_multiline_value";
2154
+ case 55: return 6;
2155
+ case 56: return 19;
2156
+ case 57: return 21;
2157
+ case 58: return 66;
2158
+ case 59: return 5;
2159
+ case 60: return t.yytext = t.yytext.trim(), 73;
2160
+ case 61: return 80;
2161
+ case 62: return 97;
2162
+ case 63: return 98;
2163
+ case 64: return 99;
2164
+ case 65: return 78;
2165
+ case 66: return 79;
2166
+ case 67: return 100;
2167
+ case 68: return 101;
2168
+ case 69: return 102;
2169
+ case 70: return 103;
2170
+ case 71: return 85;
2171
+ case 72: return 86;
2172
+ case 73: return 87;
2173
+ case 74: return 88;
2174
+ case 75: return 93;
2175
+ case 76: return 94;
2176
+ case 77: return 95;
2177
+ case 78: return 96;
2178
+ case 79: return 81;
2179
+ case 80: return 82;
2180
+ case 81: return 83;
2181
+ case 82: return 84;
2182
+ case 83: return 89;
2183
+ case 84: return 90;
2184
+ case 85: return 91;
2185
+ case 86: return 92;
2186
+ case 87: return 104;
2187
+ case 88: return 104;
2188
+ case 89: return 70;
2189
+ case 90: return 71;
2190
+ case 91: return 72;
2191
+ case 92: return 5;
2192
+ case 93: return 10;
2193
+ }
2194
+ }, "anonymous"),
2195
+ rules: [
2196
+ /^(?:[\n]+)/i,
2197
+ /^(?:\s+)/i,
2198
+ /^(?:((?!\n)\s)+)/i,
2199
+ /^(?:#[^\n]*)/i,
2200
+ /^(?:%(?!\{)[^\n]*)/i,
2201
+ /^(?:[^\}]%%[^\n]*)/i,
2202
+ /^(?:[0-9]+(?=[ \n]+))/i,
2203
+ /^(?:@\{)/i,
2204
+ /^(?:[^\}]+)/i,
2205
+ /^(?:\}(?=\s+as\s))/i,
2206
+ /^(?:\})/i,
2207
+ /^(?:[^\<->\->:\n,;@\s]+(?=@\{))/i,
2208
+ /^(?:[^<>:\n,;@\s]+(?=\s+as\s))/i,
2209
+ /^(?:[^<>:\n,;@]+(?=\s*[\n;#]|$))/i,
2210
+ /^(?:[^<>:\n,;@]*<[^\n]*)/i,
2211
+ /^(?:[^\n]+)/i,
2212
+ /^(?:box\b)/i,
2213
+ /^(?:participant\b)/i,
2214
+ /^(?:actor\b)/i,
2215
+ /^(?:create\b)/i,
2216
+ /^(?:destroy\b)/i,
2217
+ /^(?:as\b)/i,
2218
+ /^(?:(?:))/i,
2219
+ /^(?:loop\b)/i,
2220
+ /^(?:rect\b)/i,
2221
+ /^(?:opt\b)/i,
2222
+ /^(?:alt\b)/i,
2223
+ /^(?:else\b)/i,
2224
+ /^(?:par\b)/i,
2225
+ /^(?:par_over\b)/i,
2226
+ /^(?:and\b)/i,
2227
+ /^(?:critical\b)/i,
2228
+ /^(?:option\b)/i,
2229
+ /^(?:break\b)/i,
2230
+ /^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,
2231
+ /^(?:end\b)/i,
2232
+ /^(?:left of\b)/i,
2233
+ /^(?:right of\b)/i,
2234
+ /^(?:links\b)/i,
2235
+ /^(?:link\b)/i,
2236
+ /^(?:properties\b)/i,
2237
+ /^(?:details\b)/i,
2238
+ /^(?:over\b)/i,
2239
+ /^(?:note\b)/i,
2240
+ /^(?:activate\b)/i,
2241
+ /^(?:deactivate\b)/i,
2242
+ /^(?:title\s[^#\n;]+)/i,
2243
+ /^(?:title:\s[^#\n;]+)/i,
2244
+ /^(?:accTitle\s*:\s*)/i,
2245
+ /^(?:(?!\n||)*[^\n]*)/i,
2246
+ /^(?:accDescr\s*:\s*)/i,
2247
+ /^(?:(?!\n||)*[^\n]*)/i,
2248
+ /^(?:accDescr\s*\{\s*)/i,
2249
+ /^(?:[\}])/i,
2250
+ /^(?:[^\}]*)/i,
2251
+ /^(?:sequenceDiagram\b)/i,
2252
+ /^(?:autonumber\b)/i,
2253
+ /^(?:off\b)/i,
2254
+ /^(?:,)/i,
2255
+ /^(?:;)/i,
2256
+ /^(?:[^\/\\\+\()\+<\->\->:\n,;]+((?!(-x|--x|-\)|--\)|-\|\\|-\\|-\/|-\/\/|-\|\/|\/\|-|\\\|-|\/\/-|\\\\-|\/\|-|--\|\\|--|\(\)))[\-]*[^\+<\->\->:\n,;]+)*)/i,
2257
+ /^(?:->>)/i,
2258
+ /^(?:<<->>)/i,
2259
+ /^(?:-->>)/i,
2260
+ /^(?:<<-->>)/i,
2261
+ /^(?:->)/i,
2262
+ /^(?:-->)/i,
2263
+ /^(?:-[x])/i,
2264
+ /^(?:--[x])/i,
2265
+ /^(?:-[\)])/i,
2266
+ /^(?:--[\)])/i,
2267
+ /^(?:--\|\\)/i,
2268
+ /^(?:--\|\/)/i,
2269
+ /^(?:--\\\\)/i,
2270
+ /^(?:--\/\/)/i,
2271
+ /^(?:\/\|--)/i,
2272
+ /^(?:\\\|--)/i,
2273
+ /^(?:\/\/--)/i,
2274
+ /^(?:\\\\--)/i,
2275
+ /^(?:-\|\\)/i,
2276
+ /^(?:-\|\/)/i,
2277
+ /^(?:-\\\\)/i,
2278
+ /^(?:-\/\/)/i,
2279
+ /^(?:\/\|-)/i,
2280
+ /^(?:\\\|-)/i,
2281
+ /^(?:\/\/-)/i,
2282
+ /^(?:\\\\-)/i,
2283
+ /^(?::(?:(?:no)?wrap)?[^#\n;]*)/i,
2284
+ /^(?::)/i,
2285
+ /^(?:\+)/i,
2286
+ /^(?:-)/i,
2287
+ /^(?:\(\))/i,
2288
+ /^(?:$)/i,
2289
+ /^(?:.)/i
2290
+ ],
2291
+ conditions: {
2292
+ acc_descr_multiline: {
2293
+ rules: [53, 54],
2294
+ inclusive: !1
2295
+ },
2296
+ acc_descr: {
2297
+ rules: [51],
2298
+ inclusive: !1
2299
+ },
2300
+ acc_title: {
2301
+ rules: [49],
2302
+ inclusive: !1
2303
+ },
2304
+ ID: {
2305
+ rules: [
2306
+ 2,
2307
+ 3,
2308
+ 7,
2309
+ 11,
2310
+ 12,
2311
+ 13,
2312
+ 14,
2313
+ 15
2314
+ ],
2315
+ inclusive: !1
2316
+ },
2317
+ ALIAS: {
2318
+ rules: [
2319
+ 2,
2320
+ 3,
2321
+ 21,
2322
+ 22
2323
+ ],
2324
+ inclusive: !1
2325
+ },
2326
+ LINE: {
2327
+ rules: [
2328
+ 2,
2329
+ 3,
2330
+ 34
2331
+ ],
2332
+ inclusive: !1
2333
+ },
2334
+ CONFIG: {
2335
+ rules: [
2336
+ 8,
2337
+ 9,
2338
+ 10
2339
+ ],
2340
+ inclusive: !1
2341
+ },
2342
+ CONFIG_DATA: {
2343
+ rules: [],
2344
+ inclusive: !1
2345
+ },
2346
+ INITIAL: {
2347
+ rules: [
2348
+ 0,
2349
+ 1,
2350
+ 3,
2351
+ 4,
2352
+ 5,
2353
+ 6,
2354
+ 16,
2355
+ 17,
2356
+ 18,
2357
+ 19,
2358
+ 20,
2359
+ 23,
2360
+ 24,
2361
+ 25,
2362
+ 26,
2363
+ 27,
2364
+ 28,
2365
+ 29,
2366
+ 30,
2367
+ 31,
2368
+ 32,
2369
+ 33,
2370
+ 35,
2371
+ 36,
2372
+ 37,
2373
+ 38,
2374
+ 39,
2375
+ 40,
2376
+ 41,
2377
+ 42,
2378
+ 43,
2379
+ 44,
2380
+ 45,
2381
+ 46,
2382
+ 47,
2383
+ 48,
2384
+ 50,
2385
+ 52,
2386
+ 55,
2387
+ 56,
2388
+ 57,
2389
+ 58,
2390
+ 59,
2391
+ 60,
2392
+ 61,
2393
+ 62,
2394
+ 63,
2395
+ 64,
2396
+ 65,
2397
+ 66,
2398
+ 67,
2399
+ 68,
2400
+ 69,
2401
+ 70,
2402
+ 71,
2403
+ 72,
2404
+ 73,
2405
+ 74,
2406
+ 75,
2407
+ 76,
2408
+ 77,
2409
+ 78,
2410
+ 79,
2411
+ 80,
2412
+ 81,
2413
+ 82,
2414
+ 83,
2415
+ 84,
2416
+ 85,
2417
+ 86,
2418
+ 87,
2419
+ 88,
2420
+ 89,
2421
+ 90,
2422
+ 91,
2423
+ 92,
2424
+ 93
2425
+ ],
2426
+ inclusive: !0
2427
+ }
2428
+ }
2429
+ };
2430
+ })();
2431
+ function Te() {
2432
+ this.yy = {};
2433
+ }
2434
+ return e(Te, "Parser"), Te.prototype = we, we.Parser = Te, new Te();
2435
+ })();
2436
+ P.parser = P;
2437
+ var F = P, I = {
2438
+ SOLID: 0,
2439
+ DOTTED: 1,
2440
+ NOTE: 2,
2441
+ SOLID_CROSS: 3,
2442
+ DOTTED_CROSS: 4,
2443
+ SOLID_OPEN: 5,
2444
+ DOTTED_OPEN: 6,
2445
+ LOOP_START: 10,
2446
+ LOOP_END: 11,
2447
+ ALT_START: 12,
2448
+ ALT_ELSE: 13,
2449
+ ALT_END: 14,
2450
+ OPT_START: 15,
2451
+ OPT_END: 16,
2452
+ ACTIVE_START: 17,
2453
+ ACTIVE_END: 18,
2454
+ PAR_START: 19,
2455
+ PAR_AND: 20,
2456
+ PAR_END: 21,
2457
+ RECT_START: 22,
2458
+ RECT_END: 23,
2459
+ SOLID_POINT: 24,
2460
+ DOTTED_POINT: 25,
2461
+ AUTONUMBER: 26,
2462
+ CRITICAL_START: 27,
2463
+ CRITICAL_OPTION: 28,
2464
+ CRITICAL_END: 29,
2465
+ BREAK_START: 30,
2466
+ BREAK_END: 31,
2467
+ PAR_OVER_START: 32,
2468
+ BIDIRECTIONAL_SOLID: 33,
2469
+ BIDIRECTIONAL_DOTTED: 34,
2470
+ SOLID_TOP: 41,
2471
+ SOLID_BOTTOM: 42,
2472
+ STICK_TOP: 43,
2473
+ STICK_BOTTOM: 44,
2474
+ SOLID_ARROW_TOP_REVERSE: 45,
2475
+ SOLID_ARROW_BOTTOM_REVERSE: 46,
2476
+ STICK_ARROW_TOP_REVERSE: 47,
2477
+ STICK_ARROW_BOTTOM_REVERSE: 48,
2478
+ SOLID_TOP_DOTTED: 51,
2479
+ SOLID_BOTTOM_DOTTED: 52,
2480
+ STICK_TOP_DOTTED: 53,
2481
+ STICK_BOTTOM_DOTTED: 54,
2482
+ SOLID_ARROW_TOP_REVERSE_DOTTED: 55,
2483
+ SOLID_ARROW_BOTTOM_REVERSE_DOTTED: 56,
2484
+ STICK_ARROW_TOP_REVERSE_DOTTED: 57,
2485
+ STICK_ARROW_BOTTOM_REVERSE_DOTTED: 58,
2486
+ CENTRAL_CONNECTION: 59,
2487
+ CENTRAL_CONNECTION_REVERSE: 60,
2488
+ CENTRAL_CONNECTION_DUAL: 61
2489
+ }, L = {
2490
+ FILLED: 0,
2491
+ OPEN: 1
2492
+ }, ee = {
2493
+ LEFTOF: 0,
2494
+ RIGHTOF: 1,
2495
+ OVER: 2
2496
+ }, R = {
2497
+ ACTOR: "actor",
2498
+ BOUNDARY: "boundary",
2499
+ COLLECTIONS: "collections",
2500
+ CONTROL: "control",
2501
+ DATABASE: "database",
2502
+ ENTITY: "entity",
2503
+ PARTICIPANT: "participant",
2504
+ QUEUE: "queue"
2505
+ }, te = class {
2506
+ constructor() {
2507
+ this.state = new M(() => ({
2508
+ prevActor: void 0,
2509
+ actors: /* @__PURE__ */ new Map(),
2510
+ createdActors: /* @__PURE__ */ new Map(),
2511
+ destroyedActors: /* @__PURE__ */ new Map(),
2512
+ boxes: [],
2513
+ messages: [],
2514
+ notes: [],
2515
+ sequenceNumbersEnabled: !1,
2516
+ wrapEnabled: void 0,
2517
+ currentBox: void 0,
2518
+ lastCreated: void 0,
2519
+ lastDestroyed: void 0
2520
+ })), this.setAccTitle = _, this.setAccDescription = g, this.setDiagramTitle = y, this.getAccTitle = c, this.getAccDescription = s, this.getDiagramTitle = d, this.apply = this.apply.bind(this), this.parseBoxData = this.parseBoxData.bind(this), this.parseMessage = this.parseMessage.bind(this), this.clear(), this.setWrap(u().wrap), this.LINETYPE = I, this.ARROWTYPE = L, this.PLACEMENT = ee;
2521
+ }
2522
+ static {
2523
+ e(this, "SequenceDB");
2524
+ }
2525
+ addBox(e) {
2526
+ this.state.records.boxes.push({
2527
+ name: e.text,
2528
+ wrap: e.wrap ?? this.autoWrap(),
2529
+ fill: e.color,
2530
+ actorKeys: []
2531
+ }), this.state.records.currentBox = this.state.records.boxes.slice(-1)[0];
2532
+ }
2533
+ addActor(e, t, n, r, i) {
2534
+ let a = this.state.records.currentBox, o;
2535
+ if (i !== void 0) {
2536
+ let e;
2537
+ e = i.includes("\n") ? i + "\n" : "{\n" + i + "\n}", o = S(e, { schema: x });
2538
+ }
2539
+ r = o?.type ?? r, o?.alias && (!n || n.text === t) && (n = {
2540
+ text: o.alias,
2541
+ wrap: n?.wrap,
2542
+ type: r
2543
+ });
2544
+ let s = this.state.records.actors.get(e);
2545
+ if (s) {
2546
+ if (this.state.records.currentBox && s.box && this.state.records.currentBox !== s.box) throw Error(`A same participant should only be defined in one Box: ${s.name} can't be in '${s.box.name}' and in '${this.state.records.currentBox.name}' at the same time.`);
2547
+ if (a = s.box ? s.box : this.state.records.currentBox, s.box = a, s && t === s.name && n == null) return;
2548
+ }
2549
+ if (n?.text ?? (n = {
2550
+ text: t,
2551
+ type: r
2552
+ }), (r == null || n.text == null) && (n = {
2553
+ text: t,
2554
+ type: r
2555
+ }), this.state.records.actors.set(e, {
2556
+ box: a,
2557
+ name: t,
2558
+ description: n.text,
2559
+ wrap: n.wrap ?? this.autoWrap(),
2560
+ prevActor: this.state.records.prevActor,
2561
+ links: {},
2562
+ properties: {},
2563
+ actorCnt: null,
2564
+ rectData: null,
2565
+ type: r ?? "participant"
2566
+ }), this.state.records.prevActor) {
2567
+ let t = this.state.records.actors.get(this.state.records.prevActor);
2568
+ t && (t.nextActor = e);
2569
+ }
2570
+ this.state.records.currentBox && this.state.records.currentBox.actorKeys.push(e), this.state.records.prevActor = e;
2571
+ }
2572
+ activationCount(e) {
2573
+ let t, n = 0;
2574
+ if (!e) return 0;
2575
+ for (t = 0; t < this.state.records.messages.length; t++) this.state.records.messages[t].type === this.LINETYPE.ACTIVE_START && this.state.records.messages[t].from === e && n++, this.state.records.messages[t].type === this.LINETYPE.ACTIVE_END && this.state.records.messages[t].from === e && n--;
2576
+ return n;
2577
+ }
2578
+ addMessage(e, t, n, r) {
2579
+ this.state.records.messages.push({
2580
+ id: this.state.records.messages.length.toString(),
2581
+ from: e,
2582
+ to: t,
2583
+ message: n.text,
2584
+ wrap: n.wrap ?? this.autoWrap(),
2585
+ answer: r
2586
+ });
2587
+ }
2588
+ addSignal(e, t, n, r, i = !1, a) {
2589
+ if (r === this.LINETYPE.ACTIVE_END && this.activationCount(e ?? "") < 1) {
2590
+ let t = /* @__PURE__ */ Error("Trying to inactivate an inactive participant (" + e + ")");
2591
+ throw t.hash = {
2592
+ text: "->>-",
2593
+ token: "->>-",
2594
+ line: "1",
2595
+ loc: {
2596
+ first_line: 1,
2597
+ last_line: 1,
2598
+ first_column: 1,
2599
+ last_column: 1
2600
+ },
2601
+ expected: ["'ACTIVE_PARTICIPANT'"]
2602
+ }, t;
2603
+ }
2604
+ return this.state.records.messages.push({
2605
+ id: this.state.records.messages.length.toString(),
2606
+ from: e,
2607
+ to: t,
2608
+ message: n?.text ?? "",
2609
+ wrap: n?.wrap ?? this.autoWrap(),
2610
+ type: r,
2611
+ activate: i,
2612
+ centralConnection: a ?? 0
2613
+ }), !0;
2614
+ }
2615
+ hasAtLeastOneBox() {
2616
+ return this.state.records.boxes.length > 0;
2617
+ }
2618
+ hasAtLeastOneBoxWithTitle() {
2619
+ return this.state.records.boxes.some((e) => e.name);
2620
+ }
2621
+ getMessages() {
2622
+ return this.state.records.messages;
2623
+ }
2624
+ getBoxes() {
2625
+ return this.state.records.boxes;
2626
+ }
2627
+ getActors() {
2628
+ return this.state.records.actors;
2629
+ }
2630
+ getCreatedActors() {
2631
+ return this.state.records.createdActors;
2632
+ }
2633
+ getDestroyedActors() {
2634
+ return this.state.records.destroyedActors;
2635
+ }
2636
+ getActor(e) {
2637
+ return this.state.records.actors.get(e);
2638
+ }
2639
+ getActorKeys() {
2640
+ return [...this.state.records.actors.keys()];
2641
+ }
2642
+ enableSequenceNumbers() {
2643
+ this.state.records.sequenceNumbersEnabled = !0;
2644
+ }
2645
+ disableSequenceNumbers() {
2646
+ this.state.records.sequenceNumbersEnabled = !1;
2647
+ }
2648
+ showSequenceNumbers() {
2649
+ return this.state.records.sequenceNumbersEnabled;
2650
+ }
2651
+ setWrap(e) {
2652
+ this.state.records.wrapEnabled = e;
2653
+ }
2654
+ extractWrap(e) {
2655
+ if (e === void 0) return {};
2656
+ e = e.trim();
2657
+ let t = /^:?wrap:/.exec(e) === null ? /^:?nowrap:/.exec(e) === null ? void 0 : !1 : !0;
2658
+ return {
2659
+ cleanedText: (t === void 0 ? e : e.replace(/^:?(?:no)?wrap:/, "")).trim(),
2660
+ wrap: t
2661
+ };
2662
+ }
2663
+ autoWrap() {
2664
+ return this.state.records.wrapEnabled === void 0 ? u().sequence?.wrap ?? !1 : this.state.records.wrapEnabled;
2665
+ }
2666
+ clear() {
2667
+ this.state.reset(), i();
2668
+ }
2669
+ parseMessage(e) {
2670
+ let n = e.trim(), { wrap: r, cleanedText: i } = this.extractWrap(n), a = {
2671
+ text: i,
2672
+ wrap: r
2673
+ };
2674
+ return t.debug(`parseMessage: ${JSON.stringify(a)}`), a;
2675
+ }
2676
+ parseBoxData(e) {
2677
+ let t = /^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(e), n = t?.[1] ? t[1].trim() : "transparent", r = t?.[2] ? t[2].trim() : void 0;
2678
+ if (window?.CSS) window.CSS.supports("color", n) || (n = "transparent", r = e.trim());
2679
+ else {
2680
+ let t = new Option().style;
2681
+ t.color = n, t.color !== n && (n = "transparent", r = e.trim());
2682
+ }
2683
+ let { wrap: i, cleanedText: a } = this.extractWrap(r);
2684
+ return {
2685
+ text: a ? h(a, u()) : void 0,
2686
+ color: n,
2687
+ wrap: i
2688
+ };
2689
+ }
2690
+ addNote(e, t, n) {
2691
+ let r = {
2692
+ actor: e,
2693
+ placement: t,
2694
+ message: n.text,
2695
+ wrap: n.wrap ?? this.autoWrap()
2696
+ }, i = [].concat(e, e);
2697
+ this.state.records.notes.push(r), this.state.records.messages.push({
2698
+ id: this.state.records.messages.length.toString(),
2699
+ from: i[0],
2700
+ to: i[1],
2701
+ message: n.text,
2702
+ wrap: n.wrap ?? this.autoWrap(),
2703
+ type: this.LINETYPE.NOTE,
2704
+ placement: t
2705
+ });
2706
+ }
2707
+ addLinks(e, n) {
2708
+ let r = this.getActor(e);
2709
+ try {
2710
+ let e = h(n.text, u());
2711
+ e = e.replace(/&equals;/g, "="), e = e.replace(/&amp;/g, "&");
2712
+ let t = JSON.parse(e);
2713
+ this.insertLinks(r, t);
2714
+ } catch (e) {
2715
+ t.error("error while parsing actor link text", e);
2716
+ }
2717
+ }
2718
+ addALink(e, n) {
2719
+ let r = this.getActor(e);
2720
+ try {
2721
+ let e = {}, t = h(n.text, u()), i = t.indexOf("@");
2722
+ t = t.replace(/&equals;/g, "="), t = t.replace(/&amp;/g, "&");
2723
+ let a = t.slice(0, i - 1).trim();
2724
+ e[a] = t.slice(i + 1).trim(), this.insertLinks(r, e);
2725
+ } catch (e) {
2726
+ t.error("error while parsing actor link text", e);
2727
+ }
2728
+ }
2729
+ insertLinks(e, t) {
2730
+ if (e.links == null) e.links = t;
2731
+ else for (let n in t) e.links[n] = t[n];
2732
+ }
2733
+ addProperties(e, n) {
2734
+ let r = this.getActor(e);
2735
+ try {
2736
+ let e = h(n.text, u()), t = JSON.parse(e);
2737
+ this.insertProperties(r, t);
2738
+ } catch (e) {
2739
+ t.error("error while parsing actor properties text", e);
2740
+ }
2741
+ }
2742
+ insertProperties(e, t) {
2743
+ if (e.properties == null) e.properties = t;
2744
+ else for (let n in t) e.properties[n] = t[n];
2745
+ }
2746
+ boxEnd() {
2747
+ this.state.records.currentBox = void 0;
2748
+ }
2749
+ addDetails(e, n) {
2750
+ let r = this.getActor(e), i = document.getElementById(n.text);
2751
+ try {
2752
+ let e = i.innerHTML, t = JSON.parse(e);
2753
+ t.properties && this.insertProperties(r, t.properties), t.links && this.insertLinks(r, t.links);
2754
+ } catch (e) {
2755
+ t.error("error while parsing actor details text", e);
2756
+ }
2757
+ }
2758
+ getActorProperty(e, t) {
2759
+ if (e?.properties !== void 0) return e.properties[t];
2760
+ }
2761
+ apply(e) {
2762
+ if (Array.isArray(e)) e.forEach((e) => {
2763
+ this.apply(e);
2764
+ });
2765
+ else switch (e.type) {
2766
+ case "sequenceIndex":
2767
+ this.state.records.messages.push({
2768
+ id: this.state.records.messages.length.toString(),
2769
+ from: void 0,
2770
+ to: void 0,
2771
+ message: {
2772
+ start: e.sequenceIndex,
2773
+ step: e.sequenceIndexStep,
2774
+ visible: e.sequenceVisible
2775
+ },
2776
+ wrap: !1,
2777
+ type: e.signalType
2778
+ });
2779
+ break;
2780
+ case "addParticipant":
2781
+ this.addActor(e.actor, e.actor, e.description, e.draw, e.config);
2782
+ break;
2783
+ case "createParticipant":
2784
+ if (this.state.records.actors.has(e.actor)) throw Error("It is not possible to have actors with the same id, even if one is destroyed before the next is created. Use 'AS' aliases to simulate the behavior");
2785
+ this.state.records.lastCreated = e.actor, this.addActor(e.actor, e.actor, e.description, e.draw, e.config), this.state.records.createdActors.set(e.actor, this.state.records.messages.length);
2786
+ break;
2787
+ case "destroyParticipant":
2788
+ this.state.records.lastDestroyed = e.actor, this.state.records.destroyedActors.set(e.actor, this.state.records.messages.length);
2789
+ break;
2790
+ case "activeStart":
2791
+ this.addSignal(e.actor, void 0, void 0, e.signalType);
2792
+ break;
2793
+ case "centralConnection":
2794
+ this.addSignal(e.actor, void 0, void 0, e.signalType);
2795
+ break;
2796
+ case "centralConnectionReverse":
2797
+ this.addSignal(e.actor, void 0, void 0, e.signalType);
2798
+ break;
2799
+ case "activeEnd":
2800
+ this.addSignal(e.actor, void 0, void 0, e.signalType);
2801
+ break;
2802
+ case "addNote":
2803
+ this.addNote(e.actor, e.placement, e.text);
2804
+ break;
2805
+ case "addLinks":
2806
+ this.addLinks(e.actor, e.text);
2807
+ break;
2808
+ case "addALink":
2809
+ this.addALink(e.actor, e.text);
2810
+ break;
2811
+ case "addProperties":
2812
+ this.addProperties(e.actor, e.text);
2813
+ break;
2814
+ case "addDetails":
2815
+ this.addDetails(e.actor, e.text);
2816
+ break;
2817
+ case "addMessage":
2818
+ if (this.state.records.lastCreated) {
2819
+ if (e.to !== this.state.records.lastCreated) throw Error("The created participant " + this.state.records.lastCreated.name + " does not have an associated creating message after its declaration. Please check the sequence diagram.");
2820
+ this.state.records.lastCreated = void 0;
2821
+ } else if (this.state.records.lastDestroyed) {
2822
+ if (e.to !== this.state.records.lastDestroyed && e.from !== this.state.records.lastDestroyed) throw Error("The destroyed participant " + this.state.records.lastDestroyed.name + " does not have an associated destroying message after its declaration. Please check the sequence diagram.");
2823
+ this.state.records.lastDestroyed = void 0;
2824
+ }
2825
+ this.addSignal(e.from, e.to, e.msg, e.signalType, e.activate, e.centralConnection);
2826
+ break;
2827
+ case "boxStart":
2828
+ this.addBox(e.boxData);
2829
+ break;
2830
+ case "boxEnd":
2831
+ this.boxEnd();
2832
+ break;
2833
+ case "loopStart":
2834
+ this.addSignal(void 0, void 0, e.loopText, e.signalType);
2835
+ break;
2836
+ case "loopEnd":
2837
+ this.addSignal(void 0, void 0, void 0, e.signalType);
2838
+ break;
2839
+ case "rectStart":
2840
+ this.addSignal(void 0, void 0, e.color, e.signalType);
2841
+ break;
2842
+ case "rectEnd":
2843
+ this.addSignal(void 0, void 0, void 0, e.signalType);
2844
+ break;
2845
+ case "optStart":
2846
+ this.addSignal(void 0, void 0, e.optText, e.signalType);
2847
+ break;
2848
+ case "optEnd":
2849
+ this.addSignal(void 0, void 0, void 0, e.signalType);
2850
+ break;
2851
+ case "altStart":
2852
+ this.addSignal(void 0, void 0, e.altText, e.signalType);
2853
+ break;
2854
+ case "else":
2855
+ this.addSignal(void 0, void 0, e.altText, e.signalType);
2856
+ break;
2857
+ case "altEnd":
2858
+ this.addSignal(void 0, void 0, void 0, e.signalType);
2859
+ break;
2860
+ case "setAccTitle":
2861
+ _(e.text);
2862
+ break;
2863
+ case "parStart":
2864
+ this.addSignal(void 0, void 0, e.parText, e.signalType);
2865
+ break;
2866
+ case "and":
2867
+ this.addSignal(void 0, void 0, e.parText, e.signalType);
2868
+ break;
2869
+ case "parEnd":
2870
+ this.addSignal(void 0, void 0, void 0, e.signalType);
2871
+ break;
2872
+ case "criticalStart":
2873
+ this.addSignal(void 0, void 0, e.criticalText, e.signalType);
2874
+ break;
2875
+ case "option":
2876
+ this.addSignal(void 0, void 0, e.optionText, e.signalType);
2877
+ break;
2878
+ case "criticalEnd":
2879
+ this.addSignal(void 0, void 0, void 0, e.signalType);
2880
+ break;
2881
+ case "breakStart":
2882
+ this.addSignal(void 0, void 0, e.breakText, e.signalType);
2883
+ break;
2884
+ case "breakEnd":
2885
+ this.addSignal(void 0, void 0, void 0, e.signalType);
2886
+ break;
2887
+ }
2888
+ }
2889
+ getConfig() {
2890
+ return u().sequence;
2891
+ }
2892
+ }, ne = /* @__PURE__ */ e((e) => {
2893
+ let t = e.dropShadow ?? "none", { look: n } = u();
2894
+ return `.actor {
2895
+ stroke: ${e.actorBorder};
2896
+ fill: ${e.actorBkg};
2897
+ stroke-width: ${e.strokeWidth ?? 1};
2898
+ }
2899
+
2900
+ rect.actor.outer-path[data-look="neo"] {
2901
+ filter: ${t};
2902
+ }
2903
+
2904
+ rect.note[data-look="neo"] {
2905
+ stroke:${e.noteBorderColor};
2906
+ fill:${e.noteBkgColor};
2907
+ filter: ${t};
2908
+ }
2909
+
2910
+ text.actor > tspan {
2911
+ fill: ${e.actorTextColor};
2912
+ stroke: none;
2913
+ }
2914
+
2915
+ .actor-line {
2916
+ stroke: ${e.actorLineColor};
2917
+ }
2918
+
2919
+ .innerArc {
2920
+ stroke-width: 1.5;
2921
+ stroke-dasharray: none;
2922
+ }
2923
+
2924
+ .messageLine0 {
2925
+ stroke-width: 1.5;
2926
+ stroke-dasharray: none;
2927
+ stroke: ${e.signalColor};
2928
+ }
2929
+
2930
+ .messageLine1 {
2931
+ stroke-width: 1.5;
2932
+ stroke-dasharray: 2, 2;
2933
+ stroke: ${e.signalColor};
2934
+ }
2935
+
2936
+ [id$="-arrowhead"] path {
2937
+ fill: ${e.signalColor};
2938
+ stroke: ${e.signalColor};
2939
+ }
2940
+
2941
+ .sequenceNumber {
2942
+ fill: ${e.sequenceNumberColor};
2943
+ }
2944
+
2945
+ [id$="-sequencenumber"] {
2946
+ fill: ${e.signalColor};
2947
+ }
2948
+
2949
+ [id$="-crosshead"] path {
2950
+ fill: ${e.signalColor};
2951
+ stroke: ${e.signalColor};
2952
+ }
2953
+
2954
+ .messageText {
2955
+ fill: ${e.signalTextColor};
2956
+ stroke: none;
2957
+ }
2958
+
2959
+ .labelBox {
2960
+ stroke: ${e.labelBoxBorderColor};
2961
+ fill: ${e.labelBoxBkgColor};
2962
+ filter: ${n === "neo" ? t : "none"};
2963
+ }
2964
+
2965
+ .labelText, .labelText > tspan {
2966
+ fill: ${e.labelTextColor};
2967
+ stroke: none;
2968
+ }
2969
+
2970
+ .loopText, .loopText > tspan {
2971
+ fill: ${e.loopTextColor};
2972
+ stroke: none;
2973
+ }
2974
+
2975
+ .loopLine {
2976
+ stroke-width: 2px;
2977
+ stroke-dasharray: 2, 2;
2978
+ stroke: ${e.labelBoxBorderColor};
2979
+ fill: ${e.labelBoxBorderColor};
2980
+ }
2981
+
2982
+ .note {
2983
+ //stroke: #decc93;
2984
+ stroke: ${e.noteBorderColor};
2985
+ fill: ${e.noteBkgColor};
2986
+ }
2987
+
2988
+ .noteText, .noteText > tspan {
2989
+ fill: ${e.noteTextColor};
2990
+ stroke: none;
2991
+ ${e.noteFontWeight ? `font-weight: ${e.noteFontWeight};` : ""}
2992
+ }
2993
+
2994
+ .activation0 {
2995
+ fill: ${e.activationBkgColor};
2996
+ stroke: ${e.activationBorderColor};
2997
+ }
2998
+
2999
+ .activation1 {
3000
+ fill: ${e.activationBkgColor};
3001
+ stroke: ${e.activationBorderColor};
3002
+ }
3003
+
3004
+ .activation2 {
3005
+ fill: ${e.activationBkgColor};
3006
+ stroke: ${e.activationBorderColor};
3007
+ }
3008
+
3009
+ .actorPopupMenu {
3010
+ position: absolute;
3011
+ }
3012
+
3013
+ .actorPopupMenuPanel {
3014
+ position: absolute;
3015
+ fill: ${e.actorBkg};
3016
+ box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
3017
+ filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));
3018
+ }
3019
+ .actor-man circle, line {
3020
+ fill: ${e.actorBkg};
3021
+ stroke-width: 2px;
3022
+ }
3023
+
3024
+ g rect.rect {
3025
+ filter: ${t};
3026
+ stroke: ${e.nodeBorder};
3027
+ }
3028
+ `;
3029
+ }, "getStyles"), z = 36, B = "actor-top", V = "actor-bottom", re = "actor-box", H = "actor-man", U = /* @__PURE__ */ new Set(["redux-color", "redux-dark-color"]), W = /* @__PURE__ */ e(function(e, t) {
3030
+ let n = k(e, t);
3031
+ return l().look === "neo" && n.attr("data-look", "neo"), n;
3032
+ }, "drawRect"), ie = /* @__PURE__ */ e(function(e, t, n, r, i) {
3033
+ if (t.links === void 0 || t.links === null || Object.keys(t.links).length === 0) return {
3034
+ height: 0,
3035
+ width: 0
3036
+ };
3037
+ let a = t.links, o = t.actorCnt, s = t.rectData;
3038
+ var c = "none";
3039
+ i && (c = "block !important");
3040
+ let l = e.append("g");
3041
+ l.attr("id", "actor" + o + "_popup"), l.attr("class", "actorPopupMenu"), l.attr("display", c);
3042
+ var u = "";
3043
+ s.class !== void 0 && (u = " " + s.class);
3044
+ let d = s.width > n ? s.width : n, f = l.append("rect");
3045
+ if (f.attr("class", "actorPopupMenuPanel" + u), f.attr("x", s.x), f.attr("y", s.height), f.attr("fill", s.fill), f.attr("stroke", s.stroke), f.attr("width", d), f.attr("height", s.height), f.attr("rx", s.rx), f.attr("ry", s.ry), a != null) {
3046
+ var p = 20;
3047
+ for (let e in a) {
3048
+ var m = l.append("a"), h = (0, N.sanitizeUrl)(a[e]);
3049
+ m.attr("xlink:href", h), m.attr("target", "_blank"), je(r)(e, m, s.x + 10, s.height + p, d, 20, { class: "actor" }, r), p += 30;
3050
+ }
3051
+ }
3052
+ return f.attr("height", p), {
3053
+ height: s.height + p,
3054
+ width: d
3055
+ };
3056
+ }, "drawPopup"), ae = /* @__PURE__ */ e(function(e) {
3057
+ return "var pu = document.getElementById('" + e + "'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }";
3058
+ }, "popupMenuToggle"), oe = /* @__PURE__ */ e(async function(e, t, n = null) {
3059
+ let r = e.append("foreignObject"), i = await m(t.text, l()), a = r.append("xhtml:div").attr("style", "width: fit-content;").attr("xmlns", "http://www.w3.org/1999/xhtml").html(i).node().getBoundingClientRect();
3060
+ if (r.attr("height", Math.round(a.height)).attr("width", Math.round(a.width)), t.class === "noteText") {
3061
+ let n = e.node().firstChild;
3062
+ n.setAttribute("height", a.height + 2 * t.textMargin);
3063
+ let i = n.getBBox();
3064
+ r.attr("x", Math.round(i.x + i.width / 2 - a.width / 2)).attr("y", Math.round(i.y + i.height / 2 - a.height / 2));
3065
+ } else if (n) {
3066
+ let { startx: e, stopx: i, starty: o } = n;
3067
+ if (e > i) {
3068
+ let t = e;
3069
+ e = i, i = t;
3070
+ }
3071
+ r.attr("x", Math.round(e + Math.abs(e - i) / 2 - a.width / 2)), t.class === "loopText" ? r.attr("y", Math.round(o)) : r.attr("y", Math.round(o - a.height));
3072
+ }
3073
+ return [r];
3074
+ }, "drawKatex"), G = /* @__PURE__ */ e(function(t, n) {
3075
+ let r = 0, i = 0, o = n.text.split(a.lineBreakRegex), [s, c] = w(n.fontSize), l = [], u = 0, d = /* @__PURE__ */ e(() => n.y, "yfunc");
3076
+ if (n.valign !== void 0 && n.textMargin !== void 0 && n.textMargin > 0) switch (n.valign) {
3077
+ case "top":
3078
+ case "start":
3079
+ d = /* @__PURE__ */ e(() => Math.round(n.y + n.textMargin), "yfunc");
3080
+ break;
3081
+ case "middle":
3082
+ case "center":
3083
+ d = /* @__PURE__ */ e(() => Math.round(n.y + (r + i + n.textMargin) / 2), "yfunc");
3084
+ break;
3085
+ case "bottom":
3086
+ case "end":
3087
+ d = /* @__PURE__ */ e(() => Math.round(n.y + (r + i + 2 * n.textMargin) - n.textMargin), "yfunc");
3088
+ break;
3089
+ }
3090
+ if (n.anchor !== void 0 && n.textMargin !== void 0 && n.width !== void 0) switch (n.anchor) {
3091
+ case "left":
3092
+ case "start":
3093
+ n.x = Math.round(n.x + n.textMargin), n.anchor = "start", n.dominantBaseline = "middle", n.alignmentBaseline = "middle";
3094
+ break;
3095
+ case "middle":
3096
+ case "center":
3097
+ n.x = Math.round(n.x + n.width / 2), n.anchor = "middle", n.dominantBaseline = "middle", n.alignmentBaseline = "middle";
3098
+ break;
3099
+ case "right":
3100
+ case "end":
3101
+ n.x = Math.round(n.x + n.width - n.textMargin), n.anchor = "end", n.dominantBaseline = "middle", n.alignmentBaseline = "middle";
3102
+ break;
3103
+ }
3104
+ for (let [e, a] of o.entries()) {
3105
+ n.textMargin !== void 0 && n.textMargin === 0 && s !== void 0 && (u = e * s);
3106
+ let o = t.append("text");
3107
+ o.attr("x", n.x), o.attr("y", d()), n.anchor !== void 0 && o.attr("text-anchor", n.anchor).attr("dominant-baseline", n.dominantBaseline).attr("alignment-baseline", n.alignmentBaseline), n.fontFamily !== void 0 && o.style("font-family", n.fontFamily), c !== void 0 && o.style("font-size", c), n.fontWeight !== void 0 && o.style("font-weight", n.fontWeight), n.fill !== void 0 && o.attr("fill", n.fill), n.class !== void 0 && o.attr("class", n.class), n.dy === void 0 ? u !== 0 && o.attr("dy", u) : o.attr("dy", n.dy);
3108
+ let f = a || "​";
3109
+ if (n.tspan) {
3110
+ let e = o.append("tspan");
3111
+ e.attr("x", n.x), n.fill !== void 0 && e.attr("fill", n.fill), e.text(f);
3112
+ } else o.text(f);
3113
+ n.valign !== void 0 && n.textMargin !== void 0 && n.textMargin > 0 && (i += (o._groups || o)[0][0].getBBox().height, r = i), l.push(o);
3114
+ }
3115
+ return l;
3116
+ }, "drawText"), se = /* @__PURE__ */ e(function(t, n) {
3117
+ function r(e, t, n, r, i) {
3118
+ return e + "," + t + " " + (e + n) + "," + t + " " + (e + n) + "," + (t + r - i) + " " + (e + n - i * 1.2) + "," + (t + r) + " " + e + "," + (t + r);
3119
+ }
3120
+ e(r, "genPoints");
3121
+ let i = t.append("polygon");
3122
+ return i.attr("points", r(n.x, n.y, n.width, n.height, 7)), i.attr("class", "labelBox"), n.y += n.height / 2, G(t, n), i;
3123
+ }, "drawLabel"), K = -1, ce = /* @__PURE__ */ e((e, t, n, r) => {
3124
+ e.select && n.forEach((n) => {
3125
+ let i = t.get(n), a = e.select("#actor" + i.actorCnt);
3126
+ !r.mirrorActors && i.stopy ? a.attr("y2", i.stopy + i.height / 2) : r.mirrorActors && a.attr("y2", i.stopy);
3127
+ });
3128
+ }, "fixLifeLineHeights"), le = /* @__PURE__ */ e(function(e, t, n, r, i) {
3129
+ let a = r ? t.stopy : t.starty, o = t.x + t.width / 2, s = a + t.height, { look: c, theme: l, themeVariables: u } = n, { bkgColorArray: d, borderColorArray: f } = u, m = e.append("g").lower();
3130
+ var h = m;
3131
+ r || (K++, Object.keys(t.links || {}).length && !n.forceMenus && h.attr("onclick", ae(`actor${K}_popup`)).attr("cursor", "pointer"), h.append("line").attr("id", "actor" + K).attr("x1", o).attr("y1", s).attr("x2", o).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), h = m.append("g"), t.actorCnt = K, t.links != null && h.attr("id", "root-" + K), c === "neo" && h.attr("data-look", "neo"));
3132
+ let g = A();
3133
+ var _ = "actor";
3134
+ t.properties?.class ? _ = t.properties.class : g.fill = "#eaeaea", r ? _ += ` ${V}` : _ += ` ${B}`, g.x = t.x, g.y = a, g.width = t.width, g.height = t.height, g.class = _, g.rx = 3, g.ry = 3, g.name = t.name, c === "neo" && (g.rx = 6, g.ry = 6);
3135
+ let v = W(h, g), y = i.get(t.name) ?? 0;
3136
+ if (U.has(l) && (v.style("stroke", f[y % f.length]), v.style("fill", d[y % f.length])), c === "neo" && v.attr("filter", "url(#drop-shadow)"), t.rectData = g, t.properties?.icon) {
3137
+ let e = t.properties.icon.trim();
3138
+ e.charAt(0) === "@" ? D(h, g.x + g.width - 20, g.y + 10, e.substr(1)) : O(h, g.x + g.width - 20, g.y + 10, e);
3139
+ }
3140
+ r || (h.attr("data-et", "participant"), h.attr("data-type", "participant"), h.attr("data-id", t.name)), Y(n, p(t.description))(t.description, h, g.x, g.y, g.width, g.height, { class: `actor ${re}` }, n);
3141
+ let b = t.height;
3142
+ if (v.node) {
3143
+ let e = v.node().getBBox();
3144
+ t.height = e.height, b = e.height;
3145
+ }
3146
+ return b;
3147
+ }, "drawActorTypeParticipant"), ue = /* @__PURE__ */ e(function(e, t, n, r, i) {
3148
+ let a = r ? t.stopy : t.starty, o = t.x + t.width / 2, s = a + t.height, { look: c, theme: l, themeVariables: u } = n, { bkgColorArray: d, borderColorArray: f } = u, m = e.append("g").lower();
3149
+ var h = m;
3150
+ r || (K++, Object.keys(t.links || {}).length && !n.forceMenus && h.attr("onclick", ae(`actor${K}_popup`)).attr("cursor", "pointer"), h.append("line").attr("id", "actor" + K).attr("x1", o).attr("y1", s).attr("x2", o).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), h = m.append("g"), t.actorCnt = K, t.links != null && h.attr("id", "root-" + K), c === "neo" && h.attr("data-look", "neo"));
3151
+ let g = A();
3152
+ var _ = "actor";
3153
+ t.properties?.class ? _ = t.properties.class : g.fill = "#eaeaea", r ? _ += ` ${V}` : _ += ` ${B}`, g.x = t.x, g.y = a, g.width = t.width, g.height = t.height, g.class = _, g.name = t.name;
3154
+ let v = {
3155
+ ...g,
3156
+ x: g.x + -6,
3157
+ y: g.y + 6,
3158
+ class: "actor"
3159
+ }, y = W(h, g), b = W(h, v);
3160
+ t.rectData = g, c === "neo" && h.attr("filter", "url(#drop-shadow)");
3161
+ let x = i.get(t.name) ?? 0;
3162
+ if (U.has(l) && (y.style("stroke", f[x % f.length]), y.style("fill", d[x % f.length]), b.style("stroke", f[x % f.length]), b.style("fill", d[x % f.length])), t.properties?.icon) {
3163
+ let e = t.properties.icon.trim();
3164
+ e.charAt(0) === "@" ? D(h, g.x + g.width - 20, g.y + 10, e.substr(1)) : O(h, g.x + g.width - 20, g.y + 10, e);
3165
+ }
3166
+ Y(n, p(t.description))(t.description, h, g.x - 6, g.y + 6, g.width, g.height, { class: `actor ${re}` }, n);
3167
+ let S = t.height;
3168
+ if (y.node) {
3169
+ let e = y.node().getBBox();
3170
+ t.height = e.height, S = e.height;
3171
+ }
3172
+ return r || (h.attr("data-et", "participant"), h.attr("data-type", "collections"), h.attr("data-id", t.name)), S;
3173
+ }, "drawActorTypeCollections"), de = /* @__PURE__ */ e(function(e, t, n, r, i) {
3174
+ let a = r ? t.stopy : t.starty, o = t.x + t.width / 2, s = a + t.height, { look: c, theme: l, themeVariables: u } = n, { bkgColorArray: d, borderColorArray: f } = u, m = e.append("g").lower(), h = m;
3175
+ r || (K++, Object.keys(t.links || {}).length && !n.forceMenus && h.attr("onclick", ae(`actor${K}_popup`)).attr("cursor", "pointer"), h.append("line").attr("id", "actor" + K).attr("x1", o).attr("y1", s).attr("x2", o).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), h = m.append("g"), t.actorCnt = K, t.links != null && h.attr("id", "root-" + K), c === "neo" && h.attr("data-look", "neo"));
3176
+ let g = A(), _ = "actor";
3177
+ t.properties?.class ? _ = t.properties.class : g.fill = "#eaeaea", r ? _ += ` ${V}` : _ += ` ${B}`, h.attr("class", _), g.x = t.x, g.y = a, g.width = t.width, g.height = t.height, g.name = t.name;
3178
+ let v = g.height / 2, y = v / (2.5 + g.height / 50), b = h.append("g"), x = h.append("g"), S = `M ${g.x},${g.y + v}
3179
+ a ${y},${v} 0 0 0 0,${g.height}
3180
+ h ${g.width - 2 * y}
3181
+ a ${y},${v} 0 0 0 0,-${g.height}
3182
+ Z
3183
+ `;
3184
+ b.append("path").attr("d", S), x.append("path").attr("d", `M ${g.x},${g.y + v}
3185
+ a ${y},${v} 0 0 0 0,${g.height}`), b.attr("transform", `translate(${y}, ${-(g.height / 2)})`), x.attr("transform", `translate(${g.width - y}, ${-g.height / 2})`), t.rectData = g, c === "neo" && b.attr("filter", "url(#drop-shadow)");
3186
+ let C = i.get(t.name) ?? 0;
3187
+ if (U.has(l) && (b.style("stroke", f[C % f.length]), b.style("fill", d[C % f.length]), x.style("stroke", f[C % f.length]), x.style("fill", d[C % f.length])), t.properties?.icon) {
3188
+ let e = t.properties.icon.trim(), n = g.x + g.width - 20, r = g.y + 10;
3189
+ e.charAt(0) === "@" ? D(h, n, r, e.substr(1)) : O(h, n, r, e);
3190
+ }
3191
+ Y(n, p(t.description))(t.description, h, g.x, g.y, g.width, g.height, { class: `actor ${re}` }, n);
3192
+ let w = t.height, T = b.select("path:last-child");
3193
+ if (T.node()) {
3194
+ let e = T.node().getBBox();
3195
+ t.height = e.height, w = e.height;
3196
+ }
3197
+ return r || (h.attr("data-et", "participant"), h.attr("data-type", "queue"), h.attr("data-id", t.name)), w;
3198
+ }, "drawActorTypeQueue"), fe = /* @__PURE__ */ e(function(e, t, n, r, i, a) {
3199
+ let o = r ? t.stopy : t.starty, s = t.x + t.width / 2, c = o + 75, { look: l, theme: u, themeVariables: d } = n, { bkgColorArray: f, borderColorArray: m, actorBorder: h, actorBkg: g } = d, _ = e.append("g").lower();
3200
+ r || (K++, _.append("line").attr("id", "actor" + K).attr("x1", s).attr("y1", c).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), t.actorCnt = K);
3201
+ let v = e.append("g"), y = H;
3202
+ r ? y += ` ${V}` : y += ` ${B}`, v.attr("class", y), v.attr("name", t.name);
3203
+ let b = A();
3204
+ b.x = t.x, b.y = o, b.fill = "#eaeaea", b.width = t.width, b.height = t.height, b.class = "actor";
3205
+ let x = t.x + t.width / 2, S = o + 32;
3206
+ v.append("defs").append("marker").attr("id", i + "-filled-head-control").attr("refX", 11).attr("refY", 5.8).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "172.5").attr("stroke-width", 1.2).append("path").attr("d", "M 14.4 5.6 L 7.2 10.4 L 8.8 5.6 L 7.2 0.8 Z"), v.append("circle").attr("cx", x).attr("cy", S).attr("r", 22).attr("filter", `${l === "neo" ? "url(#drop-shadow)" : ""}`), v.append("line").attr("marker-end", "url(#" + i + "-filled-head-control)").attr("transform", `translate(${x}, ${S - 22})`);
3207
+ let C = a.get(t.name) ?? 0;
3208
+ return U.has(u) ? (v.style("stroke", m[C % m.length]), v.style("fill", f[C % m.length])) : (v.style("stroke", h), v.style("fill", g)), t.height = v.node().getBBox().height + 2 * (n?.sequence?.labelBoxHeight ?? 0), Y(n, p(t.description))(t.description, v, b.x, b.y + 22 + (r ? 5 : 12), b.width, b.height, { class: `actor ${H}` }, n), r || (v.attr("data-et", "participant"), v.attr("data-type", "control"), v.attr("data-id", t.name)), t.height;
3209
+ }, "drawActorTypeControl"), pe = /* @__PURE__ */ e(function(e, t, n, r, i) {
3210
+ let a = r ? t.stopy : t.starty, o = t.x + t.width / 2, s = a + 75, { look: c, theme: l, themeVariables: u } = n, { bkgColorArray: d, borderColorArray: f } = u, m = e.append("g").lower(), h = e.append("g"), g = "actor";
3211
+ r ? g += ` ${V}` : g += ` ${B}`, h.attr("class", g), h.attr("name", t.name);
3212
+ let _ = A();
3213
+ _.x = t.x, _.y = a, _.fill = "#eaeaea", _.width = t.width, _.height = t.height, _.class = "actor";
3214
+ let v = t.x + t.width / 2, y = a + (r ? 10 : 25);
3215
+ h.append("circle").attr("cx", v).attr("cy", y).attr("r", 22).attr("width", t.width).attr("height", t.height), h.append("line").attr("x1", v - 22).attr("x2", v + 22).attr("y1", y + 22).attr("y2", y + 22).attr("stroke-width", 2), c === "neo" && h.attr("filter", "url(#drop-shadow)");
3216
+ let b = i.get(t.name) ?? 0;
3217
+ return U.has(l) && (h.style("stroke", f[b % f.length]), h.style("fill", d[b % f.length])), t.height = h.node().getBBox().height + (n?.sequence?.labelBoxHeight ?? 0), r || (K++, m.append("line").attr("id", "actor" + K).attr("x1", o).attr("y1", s).attr("x2", o).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), t.actorCnt = K), Y(n, p(t.description))(t.description, h, _.x, _.y + (r ? 15 : 30), _.width, _.height, { class: `actor ${H}` }, n), r ? h.attr("transform", "translate(0, 22)") : (h.attr("transform", `translate(0, ${22 / 2 - 5})`), h.attr("data-et", "participant"), h.attr("data-type", "entity"), h.attr("data-id", t.name)), t.height;
3218
+ }, "drawActorTypeEntity"), me = /* @__PURE__ */ e(function(e, t, n, r, i) {
3219
+ let a = r ? t.stopy : t.starty, o = t.x + t.width / 2, s = a + t.height + 2 * n.boxTextMargin, { theme: c, themeVariables: l, look: u } = n, { bkgColorArray: d, borderColorArray: f, actorBorder: m } = l, h = e.append("g").lower(), g = h;
3220
+ r || (K++, Object.keys(t.links || {}).length && !n.forceMenus && g.attr("onclick", ae(`actor${K}_popup`)).attr("cursor", "pointer"), g.append("line").attr("id", "actor" + K).attr("x1", o).attr("y1", s).attr("x2", o).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), g = h.append("g"), t.actorCnt = K, t.links != null && g.attr("id", "root-" + K), u === "neo" && g.attr("data-look", "neo"));
3221
+ let _ = A(), v = "actor";
3222
+ t.properties?.class ? v = t.properties.class : _.fill = "#eaeaea", r ? v += ` ${V}` : v += ` ${B}`, _.x = t.x, _.y = a, _.width = t.width, _.height = t.height, _.class = v, _.name = t.name, _.x = t.x, _.y = a;
3223
+ let y = _.width / 3, b = _.width / 3, x = y / 2, S = x / (2.5 + y / 50), C = g.append("g");
3224
+ C.attr("class", v);
3225
+ let w = `
3226
+ M ${_.x},${_.y + S}
3227
+ a ${x},${S} 0 0 0 ${y},0
3228
+ a ${x},${S} 0 0 0 -${y},0
3229
+ l 0,${b - 2 * S}
3230
+ a ${x},${S} 0 0 0 ${y},0
3231
+ l 0,-${b - 2 * S}
3232
+ `;
3233
+ C.append("path").attr("d", w), u === "neo" && C.attr("filter", "url(#drop-shadow)");
3234
+ let T = i.get(t.name) ?? 0;
3235
+ U.has(c) ? (C.style("stroke", f[T % f.length]), C.style("fill", d[T % f.length])) : C.style("stroke", m), C.attr("transform", `translate(${y}, ${S})`), t.rectData = _, Y(n, p(t.description))(t.description, g, _.x, _.y + 35, _.width, _.height, { class: `actor ${re}` }, n);
3236
+ let E = C.select("path:last-child");
3237
+ return E.node() && (t.height = E.node().getBBox().height + (n.sequence.labelBoxHeight ?? 0)), r || (g.attr("data-et", "participant"), g.attr("data-type", "database"), g.attr("data-id", t.name)), t.height;
3238
+ }, "drawActorTypeDatabase"), he = /* @__PURE__ */ e(function(e, t, n, r, i) {
3239
+ let a = r ? t.stopy : t.starty, o = t.x + t.width / 2, s = a + 80, c = e.append("g").lower(), { look: l, theme: u, themeVariables: d } = n, { bkgColorArray: f, borderColorArray: m, actorBorder: h } = d;
3240
+ r || (K++, c.append("line").attr("id", "actor" + K).attr("x1", o).attr("y1", s).attr("x2", o).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), t.actorCnt = K);
3241
+ let g = e.append("g"), _ = H;
3242
+ r ? _ += ` ${V}` : _ += ` ${B}`, g.attr("class", _), g.attr("name", t.name);
3243
+ let v = A();
3244
+ v.x = t.x, v.y = a, v.fill = "#eaeaea", v.width = t.width, v.height = t.height, v.class = "actor", g.append("line").attr("id", "actor-man-torso" + K).attr("x1", t.x + t.width / 2 - 22 * 2.5).attr("y1", a + 12).attr("x2", t.x + t.width / 2 - 15).attr("y2", a + 12), g.append("line").attr("id", "actor-man-arms" + K).attr("x1", t.x + t.width / 2 - 22 * 2.5).attr("y1", a + 2).attr("x2", t.x + t.width / 2 - 22 * 2.5).attr("y2", a + 22), g.append("circle").attr("cx", t.x + t.width / 2).attr("cy", a + 12).attr("r", 22), l === "neo" && g.attr("filter", "url(#drop-shadow)");
3245
+ let y = i.get(t.name) ?? 0;
3246
+ return U.has(u) ? (g.style("stroke", m[y % m.length]), g.style("fill", f[y % m.length])) : g.style("stroke", h), t.height = g.node().getBBox().height + (n.sequence.labelBoxHeight ?? 0), Y(n, p(t.description))(t.description, g, v.x, v.y + 15, v.width, v.height, { class: `actor ${H}` }, n), g.attr("transform", "translate(0,21)"), r || (g.attr("data-et", "participant"), g.attr("data-type", "boundary"), g.attr("data-id", t.name)), t.height;
3247
+ }, "drawActorTypeBoundary"), ge = /* @__PURE__ */ e(function(e, t, n, r, i) {
3248
+ let a = r ? t.stopy : t.starty, o = t.x + t.width / 2, s = a + 80, { look: c, theme: l, themeVariables: u } = n, { bkgColorArray: d, borderColorArray: f, actorBorder: m } = u, h = e.append("g").lower();
3249
+ r || (K++, h.append("line").attr("id", "actor" + K).attr("x1", o).attr("y1", s).attr("x2", o).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), t.actorCnt = K);
3250
+ let g = e.append("g"), _ = H;
3251
+ r ? _ += ` ${V}` : _ += ` ${B}`, g.attr("class", _), g.attr("name", t.name), r || g.attr("data-et", "participant").attr("data-type", "actor").attr("data-id", t.name);
3252
+ let v = c === "neo" ? .5 : 1, y = c === "neo" ? a + (1 - v) * 30 : a;
3253
+ g.append("line").attr("id", "actor-man-torso" + K).attr("x1", o).attr("y1", y + 25 * v).attr("x2", o).attr("y2", y + 45 * v), g.append("line").attr("id", "actor-man-arms" + K).attr("x1", o - z / 2 * v).attr("y1", y + 33 * v).attr("x2", o + z / 2 * v).attr("y2", y + 33 * v), g.append("line").attr("x1", o - z / 2 * v).attr("y1", y + 60 * v).attr("x2", o).attr("y2", y + 45 * v), g.append("line").attr("x1", o).attr("y1", y + 45 * v).attr("x2", o + (z / 2 - 2) * v).attr("y2", y + 60 * v);
3254
+ let b = g.append("circle");
3255
+ b.attr("cx", t.x + t.width / 2), b.attr("cy", y + 10 * v), b.attr("r", 15 * v), b.attr("width", t.width * v), b.attr("height", t.height * v), t.height = g.node().getBBox().height;
3256
+ let x = A();
3257
+ x.x = t.x, x.y = y, x.fill = "#eaeaea", x.width = t.width, x.height = t.height / v, x.class = "actor", x.rx = 3, x.ry = 3;
3258
+ let S = i.get(t.name) ?? 0;
3259
+ return U.has(l) ? (g.style("stroke", f[S % f.length]), g.style("fill", d[S % f.length])) : g.style("stroke", m), Y(n, p(t.description))(t.description, g, x.x, y + 35 * v - (c === "neo" ? 10 : 0), x.width, x.height, { class: `actor ${H}` }, n), t.height;
3260
+ }, "drawActorTypeActor"), _e = /* @__PURE__ */ e(async function(e, t, n, r, i, a, o) {
3261
+ let s = o ?? new Map([...a.db.getActors().values()].map((e, t) => [e.name, t]));
3262
+ switch (t.type) {
3263
+ case "actor": return await ge(e, t, n, r, s);
3264
+ case "participant": return await le(e, t, n, r, s);
3265
+ case "boundary": return await he(e, t, n, r, s);
3266
+ case "control": return await fe(e, t, n, r, i, s);
3267
+ case "entity": return await pe(e, t, n, r, s);
3268
+ case "database": return await me(e, t, n, r, s);
3269
+ case "collections": return await ue(e, t, n, r, s);
3270
+ case "queue": return await de(e, t, n, r, s);
3271
+ }
3272
+ }, "drawActor"), ve = /* @__PURE__ */ e(function(e, t, n) {
3273
+ let r = e.append("g");
3274
+ Se(r, t), t.name && Y(n)(t.name, r, t.x, t.y + n.boxTextMargin + (t.textMaxHeight || 0) / 2, t.width, 0, { class: "text" }, n), r.lower();
3275
+ }, "drawBox"), ye = /* @__PURE__ */ e(function(e) {
3276
+ return e.append("g");
3277
+ }, "anchorElement"), be = /* @__PURE__ */ e(function(e, t, n, r, i, a, o) {
3278
+ let { theme: s, themeVariables: c } = r, { bkgColorArray: l, borderColorArray: u, mainBkg: d } = c, f = A(), p = t.anchored, m = t.actor;
3279
+ f.x = t.startx, f.y = t.starty, f.class = "activation" + i % 3, f.width = t.stopx - t.startx, f.height = n - t.starty;
3280
+ let h = W(p, f), g = (o ?? new Map([...a.db.getActors().values()].map((e, t) => [e.name, t]))).get(m) ?? 0;
3281
+ U.has(s) && (h.style("stroke", u[g % u.length]), h.style("fill", l[g % u.length] ?? d));
3282
+ }, "drawActivation"), xe = /* @__PURE__ */ e(async function(t, n, r, i, a) {
3283
+ let { boxMargin: o, boxTextMargin: s, labelBoxHeight: c, labelBoxWidth: l, messageFontFamily: u, messageFontSize: d, messageFontWeight: f } = i, m = t.append("g").attr("data-et", "control-structure").attr("data-id", "i" + a.id), h = /* @__PURE__ */ e(function(e, t, n, r) {
3284
+ return m.append("line").attr("x1", e).attr("y1", t).attr("x2", n).attr("y2", r).attr("class", "loopLine");
3285
+ }, "drawLoopLine");
3286
+ h(n.startx, n.starty, n.stopx, n.starty), h(n.stopx, n.starty, n.stopx, n.stopy), h(n.startx, n.stopy, n.stopx, n.stopy), h(n.startx, n.starty, n.startx, n.stopy), n.sections !== void 0 && n.sections.forEach(function(e) {
3287
+ h(n.startx, e.y, n.stopx, e.y).style("stroke-dasharray", "3, 3");
3288
+ });
3289
+ let g = j();
3290
+ g.text = r, g.x = n.startx, g.y = n.starty, g.fontFamily = u, g.fontSize = d, g.fontWeight = f, g.anchor = "middle", g.valign = "middle", g.tspan = !1, g.width = Math.max(l ?? 0, 50), g.height = c + (i.look === "neo" ? 15 : 0) || 20, g.textMargin = s, g.class = "labelText", se(m, g), g = ke(), g.text = n.title, g.x = n.startx + l / 2 + (n.stopx - n.startx) / 2, g.y = n.starty + o + s, g.anchor = "middle", g.valign = "middle", g.textMargin = s, g.class = "loopText", g.fontFamily = u, g.fontSize = d, g.fontWeight = f, g.wrap = !0;
3291
+ let _ = p(g.text) ? await oe(m, g, n) : G(m, g);
3292
+ if (n.sectionTitles !== void 0) {
3293
+ for (let [e, t] of Object.entries(n.sectionTitles)) if (t.message) {
3294
+ g.text = t.message, g.x = n.startx + (n.stopx - n.startx) / 2, g.y = n.sections[e].y + o + s, g.class = "loopText", g.anchor = "middle", g.valign = "middle", g.tspan = !1, g.fontFamily = u, g.fontSize = d, g.fontWeight = f, g.wrap = n.wrap, p(g.text) ? (n.starty = n.sections[e].y, await oe(m, g, n)) : G(m, g);
3295
+ let r = Math.round(_.map((e) => (e._groups || e)[0][0].getBBox().height).reduce((e, t) => e + t));
3296
+ n.sections[e].height += r - (o + s);
3297
+ }
3298
+ }
3299
+ return n.height = Math.round(n.stopy - n.starty), m;
3300
+ }, "drawLoop"), Se = /* @__PURE__ */ e(function(e, t) {
3301
+ E(e, t);
3302
+ }, "drawBackgroundRect"), Ce = /* @__PURE__ */ e(function(e, t) {
3303
+ e.append("defs").append("symbol").attr("id", t + "-database").attr("fill-rule", "evenodd").attr("clip-rule", "evenodd").append("path").attr("transform", "scale(.5)").attr("d", "M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z");
3304
+ }, "insertDatabaseIcon"), q = /* @__PURE__ */ e(function(e, t) {
3305
+ e.append("defs").append("symbol").attr("id", t + "-computer").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr("d", "M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z");
3306
+ }, "insertComputerIcon"), J = /* @__PURE__ */ e(function(e, t) {
3307
+ e.append("defs").append("symbol").attr("id", t + "-clock").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr("d", "M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z");
3308
+ }, "insertClockIcon"), we = /* @__PURE__ */ e(function(e, t) {
3309
+ e.append("defs").append("marker").attr("id", t + "-arrowhead").attr("refX", 7.9).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto-start-reverse").append("path").attr("d", "M -1 0 L 10 5 L 0 10 z");
3310
+ }, "insertArrowHead"), Te = /* @__PURE__ */ e(function(e, t) {
3311
+ e.append("defs").append("marker").attr("id", t + "-filled-head").attr("refX", 15.5).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z");
3312
+ }, "insertArrowFilledHead"), Ee = /* @__PURE__ */ e(function(e, t) {
3313
+ e.append("defs").append("marker").attr("id", t + "-sequencenumber").attr("refX", 15).attr("refY", 15).attr("markerWidth", 60).attr("markerHeight", 40).attr("orient", "auto").append("circle").attr("cx", 15).attr("cy", 15).attr("r", 6);
3314
+ }, "insertSequenceNumber"), De = /* @__PURE__ */ e(function(e, t) {
3315
+ e.append("defs").append("marker").attr("id", t + "-crosshead").attr("markerWidth", 15).attr("markerHeight", 8).attr("orient", "auto").attr("refX", 4).attr("refY", 4.5).append("path").attr("fill", "none").attr("stroke", "#000000").style("stroke-dasharray", "0, 0").attr("stroke-width", "1pt").attr("d", "M 1,2 L 6,7 M 6,2 L 1,7");
3316
+ }, "insertArrowCrossHead"), Oe = /* @__PURE__ */ e(function(e, t) {
3317
+ let { theme: n } = t;
3318
+ e.append("defs").append("filter").attr("id", "drop-shadow").attr("height", "130%").attr("width", "130%").append("feDropShadow").attr("dx", "4").attr("dy", "4").attr("stdDeviation", 0).attr("flood-opacity", "0.06").attr("flood-color", `${n === "redux" || n === "redux-color" ? "#000000" : "#FFFFFF"}`);
3319
+ }, "insertDropShadow"), ke = /* @__PURE__ */ e(function() {
3320
+ return {
3321
+ x: 0,
3322
+ y: 0,
3323
+ fill: void 0,
3324
+ anchor: void 0,
3325
+ style: "#666",
3326
+ width: void 0,
3327
+ height: void 0,
3328
+ textMargin: 0,
3329
+ rx: 0,
3330
+ ry: 0,
3331
+ tspan: !0,
3332
+ valign: void 0
3333
+ };
3334
+ }, "getTextObj"), Ae = /* @__PURE__ */ e(function() {
3335
+ return {
3336
+ x: 0,
3337
+ y: 0,
3338
+ fill: "#EDF2AE",
3339
+ stroke: "#666",
3340
+ width: 100,
3341
+ anchor: "start",
3342
+ height: 100,
3343
+ rx: 0,
3344
+ ry: 0
3345
+ };
3346
+ }, "getNoteRect"), Y = /* @__PURE__ */ (function() {
3347
+ function t(e, t, n, r, i, a, o) {
3348
+ s(t.append("text").attr("x", n + i / 2).attr("y", r + a / 2 + 5).style("text-anchor", "middle").text(e), o);
3349
+ }
3350
+ e(t, "byText");
3351
+ function n(e, t, n, r, i, o, c, l) {
3352
+ let { actorFontSize: u, actorFontFamily: d, actorFontWeight: f } = l, [p, m] = w(u), h = e.split(a.lineBreakRegex);
3353
+ for (let e = 0; e < h.length; e++) {
3354
+ let a = e * p - p * (h.length - 1) / 2, l = t.append("text").attr("x", n + i / 2).attr("y", r).style("text-anchor", "middle").style("font-size", m).style("font-weight", f).style("font-family", d);
3355
+ l.append("tspan").attr("x", n + i / 2).attr("dy", a).text(h[e]), l.attr("y", r + o / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), s(l, c);
3356
+ }
3357
+ }
3358
+ e(n, "byTspan");
3359
+ function i(e, t, r, i, a, o, c, l) {
3360
+ let u = t.append("switch"), d = u.append("foreignObject").attr("x", r).attr("y", i).attr("width", a).attr("height", o).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
3361
+ d.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(e), n(e, u, r, i, a, o, c, l), s(d, c);
3362
+ }
3363
+ e(i, "byFo");
3364
+ async function o(e, t, i, a, o, c, u, d) {
3365
+ let f = await r(e, l()), p = t.append("switch"), h = p.append("foreignObject").attr("x", i + o / 2 - f.width / 2).attr("y", a + c / 2 - f.height / 2).attr("width", f.width).attr("height", f.height).append("xhtml:div").style("height", "100%").style("width", "100%");
3366
+ h.append("div").style("text-align", "center").style("vertical-align", "middle").html(await m(e, l())), n(e, p, i, a, o, c, u, d), s(h, u);
3367
+ }
3368
+ e(o, "byKatex");
3369
+ function s(e, t) {
3370
+ for (let n in t) t.hasOwnProperty(n) && e.attr(n, t[n]);
3371
+ }
3372
+ return e(s, "_setTextAttrs"), function(e, r = !1) {
3373
+ return r ? o : e.textPlacement === "fo" ? i : e.textPlacement === "old" ? t : n;
3374
+ };
3375
+ })(), je = /* @__PURE__ */ (function() {
3376
+ function t(e, t, n, r, a, o, s) {
3377
+ i(t.append("text").attr("x", n).attr("y", r).style("text-anchor", "start").text(e), s);
3378
+ }
3379
+ e(t, "byText");
3380
+ function n(e, t, n, r, o, s, c, l) {
3381
+ let { actorFontSize: u, actorFontFamily: d, actorFontWeight: f } = l, p = e.split(a.lineBreakRegex);
3382
+ for (let e = 0; e < p.length; e++) {
3383
+ let a = e * u - u * (p.length - 1) / 2, o = t.append("text").attr("x", n).attr("y", r).style("text-anchor", "start").style("font-size", u).style("font-weight", f).style("font-family", d);
3384
+ o.append("tspan").attr("x", n).attr("dy", a).text(p[e]), o.attr("y", r + s / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), i(o, c);
3385
+ }
3386
+ }
3387
+ e(n, "byTspan");
3388
+ function r(e, t, r, a, o, s, c, l) {
3389
+ let u = t.append("switch"), d = u.append("foreignObject").attr("x", r).attr("y", a).attr("width", o).attr("height", s).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
3390
+ d.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(e), n(e, u, r, a, o, s, c, l), i(d, c);
3391
+ }
3392
+ e(r, "byFo");
3393
+ function i(e, t) {
3394
+ for (let n in t) t.hasOwnProperty(n) && e.attr(n, t[n]);
3395
+ }
3396
+ return e(i, "_setTextAttrs"), function(e) {
3397
+ return e.textPlacement === "fo" ? r : e.textPlacement === "old" ? t : n;
3398
+ };
3399
+ })(), X = {
3400
+ drawRect: W,
3401
+ drawText: G,
3402
+ drawLabel: se,
3403
+ drawActor: _e,
3404
+ drawBox: ve,
3405
+ drawPopup: ie,
3406
+ anchorElement: ye,
3407
+ drawActivation: be,
3408
+ drawLoop: xe,
3409
+ drawBackgroundRect: Se,
3410
+ insertArrowHead: we,
3411
+ insertArrowFilledHead: Te,
3412
+ insertSequenceNumber: Ee,
3413
+ insertArrowCrossHead: De,
3414
+ insertDatabaseIcon: Ce,
3415
+ insertComputerIcon: q,
3416
+ insertClockIcon: J,
3417
+ getTextObj: ke,
3418
+ getNoteRect: Ae,
3419
+ fixLifeLineHeights: ce,
3420
+ sanitizeUrl: N.sanitizeUrl,
3421
+ insertDropShadow: Oe,
3422
+ insertSolidTopArrowHead: /* @__PURE__ */ e(function(e, t) {
3423
+ e.append("defs").append("marker").attr("id", t + "-solidTopArrowHead").attr("refX", 7.9).attr("refY", 7.25).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto-start-reverse").append("path").attr("d", "M 0 0 L 10 8 L 0 8 z");
3424
+ }, "insertSolidTopArrowHead"),
3425
+ insertSolidBottomArrowHead: /* @__PURE__ */ e(function(e, t) {
3426
+ e.append("defs").append("marker").attr("id", t + "-solidBottomArrowHead").attr("refX", 7.9).attr("refY", .75).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto-start-reverse").append("path").attr("d", "M 0 0 L 10 0 L 0 8 z");
3427
+ }, "insertSolidBottomArrowHead"),
3428
+ insertStickTopArrowHead: /* @__PURE__ */ e(function(e, t) {
3429
+ e.append("defs").append("marker").attr("id", t + "-stickTopArrowHead").attr("refX", 7.5).attr("refY", 7).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto-start-reverse").append("path").attr("d", "M 0 0 L 7 7").attr("stroke", "black").attr("stroke-width", 1.5).attr("fill", "none");
3430
+ }, "insertStickTopArrowHead"),
3431
+ insertStickBottomArrowHead: /* @__PURE__ */ e(function(e, t) {
3432
+ e.append("defs").append("marker").attr("id", t + "-stickBottomArrowHead").attr("refX", 7.5).attr("refY", 0).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto-start-reverse").append("path").attr("d", "M 0 7 L 7 0").attr("stroke", "black").attr("stroke-width", 1.5).attr("fill", "none");
3433
+ }, "insertStickBottomArrowHead")
3434
+ }, Z = {}, Q = {
3435
+ data: {
3436
+ startx: void 0,
3437
+ stopx: void 0,
3438
+ starty: void 0,
3439
+ stopy: void 0
3440
+ },
3441
+ verticalPos: 0,
3442
+ sequenceItems: [],
3443
+ activations: [],
3444
+ models: {
3445
+ getHeight: /* @__PURE__ */ e(function() {
3446
+ return Math.max.apply(null, this.actors.length === 0 ? [0] : this.actors.map((e) => e.height || 0)) + (this.loops.length === 0 ? 0 : this.loops.map((e) => e.height || 0).reduce((e, t) => e + t)) + (this.messages.length === 0 ? 0 : this.messages.map((e) => e.height || 0).reduce((e, t) => e + t)) + (this.notes.length === 0 ? 0 : this.notes.map((e) => e.height || 0).reduce((e, t) => e + t));
3447
+ }, "getHeight"),
3448
+ clear: /* @__PURE__ */ e(function() {
3449
+ this.actors = [], this.boxes = [], this.loops = [], this.messages = [], this.notes = [];
3450
+ }, "clear"),
3451
+ addBox: /* @__PURE__ */ e(function(e) {
3452
+ this.boxes.push(e);
3453
+ }, "addBox"),
3454
+ addActor: /* @__PURE__ */ e(function(e) {
3455
+ this.actors.push(e);
3456
+ }, "addActor"),
3457
+ addLoop: /* @__PURE__ */ e(function(e) {
3458
+ this.loops.push(e);
3459
+ }, "addLoop"),
3460
+ addMessage: /* @__PURE__ */ e(function(e) {
3461
+ this.messages.push(e);
3462
+ }, "addMessage"),
3463
+ addNote: /* @__PURE__ */ e(function(e) {
3464
+ this.notes.push(e);
3465
+ }, "addNote"),
3466
+ lastActor: /* @__PURE__ */ e(function() {
3467
+ return this.actors[this.actors.length - 1];
3468
+ }, "lastActor"),
3469
+ lastLoop: /* @__PURE__ */ e(function() {
3470
+ return this.loops[this.loops.length - 1];
3471
+ }, "lastLoop"),
3472
+ lastMessage: /* @__PURE__ */ e(function() {
3473
+ return this.messages[this.messages.length - 1];
3474
+ }, "lastMessage"),
3475
+ lastNote: /* @__PURE__ */ e(function() {
3476
+ return this.notes[this.notes.length - 1];
3477
+ }, "lastNote"),
3478
+ actors: [],
3479
+ boxes: [],
3480
+ loops: [],
3481
+ messages: [],
3482
+ notes: []
3483
+ },
3484
+ init: /* @__PURE__ */ e(function() {
3485
+ this.sequenceItems = [], this.activations = [], this.models.clear(), this.data = {
3486
+ startx: void 0,
3487
+ stopx: void 0,
3488
+ starty: void 0,
3489
+ stopy: void 0
3490
+ }, this.verticalPos = 0, He(u());
3491
+ }, "init"),
3492
+ updateVal: /* @__PURE__ */ e(function(e, t, n, r) {
3493
+ e[t] === void 0 ? e[t] = n : e[t] = r(n, e[t]);
3494
+ }, "updateVal"),
3495
+ updateBounds: /* @__PURE__ */ e(function(t, n, r, i) {
3496
+ let a = this, o = 0;
3497
+ function s(s) {
3498
+ return /* @__PURE__ */ e(function(e) {
3499
+ o++;
3500
+ let c = a.sequenceItems.length - o + 1;
3501
+ a.updateVal(e, "starty", n - c * Z.boxMargin, Math.min), a.updateVal(e, "stopy", i + c * Z.boxMargin, Math.max), a.updateVal(Q.data, "startx", t - c * Z.boxMargin, Math.min), a.updateVal(Q.data, "stopx", r + c * Z.boxMargin, Math.max), s !== "activation" && (a.updateVal(e, "startx", t - c * Z.boxMargin, Math.min), a.updateVal(e, "stopx", r + c * Z.boxMargin, Math.max), a.updateVal(Q.data, "starty", n - c * Z.boxMargin, Math.min), a.updateVal(Q.data, "stopy", i + c * Z.boxMargin, Math.max));
3502
+ }, "updateItemBounds");
3503
+ }
3504
+ e(s, "updateFn"), this.sequenceItems.forEach(s()), this.activations.forEach(s("activation"));
3505
+ }, "updateBounds"),
3506
+ insert: /* @__PURE__ */ e(function(e, t, n, r) {
3507
+ let i = a.getMin(e, n), o = a.getMax(e, n), s = a.getMin(t, r), c = a.getMax(t, r);
3508
+ this.updateVal(Q.data, "startx", i, Math.min), this.updateVal(Q.data, "starty", s, Math.min), this.updateVal(Q.data, "stopx", o, Math.max), this.updateVal(Q.data, "stopy", c, Math.max), this.updateBounds(i, s, o, c);
3509
+ }, "insert"),
3510
+ newActivation: /* @__PURE__ */ e(function(e, t, n) {
3511
+ let r = n.get(e.from), i = Ue(e.from).length || 0, a = r.x + r.width / 2 + (i - 1) * Z.activationWidth / 2;
3512
+ this.activations.push({
3513
+ startx: a,
3514
+ starty: this.verticalPos + 2,
3515
+ stopx: a + Z.activationWidth,
3516
+ stopy: void 0,
3517
+ actor: e.from,
3518
+ anchored: X.anchorElement(t)
3519
+ });
3520
+ }, "newActivation"),
3521
+ endActivation: /* @__PURE__ */ e(function(e) {
3522
+ let t = this.activations.map(function(e) {
3523
+ return e.actor;
3524
+ }).lastIndexOf(e.from);
3525
+ return this.activations.splice(t, 1)[0];
3526
+ }, "endActivation"),
3527
+ createLoop: /* @__PURE__ */ e(function(e = {
3528
+ message: void 0,
3529
+ wrap: !1,
3530
+ width: void 0
3531
+ }, t) {
3532
+ return {
3533
+ startx: void 0,
3534
+ starty: this.verticalPos,
3535
+ stopx: void 0,
3536
+ stopy: void 0,
3537
+ title: e.message,
3538
+ wrap: e.wrap,
3539
+ width: e.width,
3540
+ height: 0,
3541
+ fill: t
3542
+ };
3543
+ }, "createLoop"),
3544
+ newLoop: /* @__PURE__ */ e(function(e = {
3545
+ message: void 0,
3546
+ wrap: !1,
3547
+ width: void 0
3548
+ }, t) {
3549
+ this.sequenceItems.push(this.createLoop(e, t));
3550
+ }, "newLoop"),
3551
+ endLoop: /* @__PURE__ */ e(function() {
3552
+ return this.sequenceItems.pop();
3553
+ }, "endLoop"),
3554
+ isLoopOverlap: /* @__PURE__ */ e(function() {
3555
+ return this.sequenceItems.length ? this.sequenceItems[this.sequenceItems.length - 1].overlap : !1;
3556
+ }, "isLoopOverlap"),
3557
+ addSectionToLoop: /* @__PURE__ */ e(function(e) {
3558
+ let t = this.sequenceItems.pop();
3559
+ t.sections = t.sections || [], t.sectionTitles = t.sectionTitles || [], t.sections.push({
3560
+ y: Q.getVerticalPos(),
3561
+ height: 0
3562
+ }), t.sectionTitles.push(e), this.sequenceItems.push(t);
3563
+ }, "addSectionToLoop"),
3564
+ saveVerticalPos: /* @__PURE__ */ e(function() {
3565
+ this.isLoopOverlap() && (this.savedVerticalPos = this.verticalPos);
3566
+ }, "saveVerticalPos"),
3567
+ resetVerticalPos: /* @__PURE__ */ e(function() {
3568
+ this.isLoopOverlap() && (this.verticalPos = this.savedVerticalPos);
3569
+ }, "resetVerticalPos"),
3570
+ bumpVerticalPos: /* @__PURE__ */ e(function(e) {
3571
+ this.verticalPos += e, this.data.stopy = a.getMax(this.data.stopy, this.verticalPos);
3572
+ }, "bumpVerticalPos"),
3573
+ getVerticalPos: /* @__PURE__ */ e(function() {
3574
+ return this.verticalPos;
3575
+ }, "getVerticalPos"),
3576
+ getBounds: /* @__PURE__ */ e(function() {
3577
+ return {
3578
+ bounds: this.data,
3579
+ models: this.models
3580
+ };
3581
+ }, "getBounds")
3582
+ }, Me = /* @__PURE__ */ e(async function(e, t, n) {
3583
+ Q.bumpVerticalPos(Z.boxMargin), t.height = Z.boxMargin, t.starty = Q.getVerticalPos();
3584
+ let r = A();
3585
+ r.x = t.startx, r.y = t.starty, r.width = t.width || Z.width, r.class = "note";
3586
+ let i = e.append("g");
3587
+ i.attr("data-et", "note"), i.attr("data-id", "i" + n);
3588
+ let a = X.drawRect(i, r), o = j();
3589
+ o.x = t.startx, o.y = t.starty, o.width = r.width, o.dy = "1em", o.text = t.message, o.class = "noteText", o.fontFamily = Z.noteFontFamily, o.fontSize = Z.noteFontSize, o.fontWeight = Z.noteFontWeight, o.anchor = Z.noteAlign, o.textMargin = Z.noteMargin, o.valign = "center";
3590
+ let s = p(o.text) ? await oe(i, o) : G(i, o), c = Math.round(s.map((e) => (e._groups || e)[0][0].getBBox().height).reduce((e, t) => e + t));
3591
+ a.attr("height", c + 2 * Z.noteMargin), t.height += c + 2 * Z.noteMargin, Q.bumpVerticalPos(c + 2 * Z.noteMargin), t.stopy = t.starty + c + 2 * Z.noteMargin, t.stopx = t.startx + r.width, Q.insert(t.startx, t.starty, t.stopx, t.stopy), Q.models.addNote(t);
3592
+ }, "drawNote"), Ne = /* @__PURE__ */ e(function(t, n, r, i, a, o, s) {
3593
+ let c = i.db.getActors(), l = c.get(n.from), u = c.get(n.to), d = r.sequenceVisible, f = l.x + l.width / 2, p = u.x + u.width / 2, m = f <= p, h = tt(n, i), g = t.append("g"), _ = 16.5, v = /* @__PURE__ */ e((e, t) => {
3594
+ let n = e ? _ : -_;
3595
+ return t ? -n : n;
3596
+ }, "getCircleOffset"), y = /* @__PURE__ */ e((e) => {
3597
+ g.append("circle").attr("cx", e).attr("cy", s).attr("r", 5).attr("width", 10).attr("height", 10);
3598
+ }, "drawCircle"), { CENTRAL_CONNECTION: b, CENTRAL_CONNECTION_REVERSE: x, CENTRAL_CONNECTION_DUAL: S } = i.db.LINETYPE;
3599
+ if (d) switch (n.centralConnection) {
3600
+ case b:
3601
+ h && (p += v(m, !0));
3602
+ break;
3603
+ case x:
3604
+ h || (f += v(m, !1));
3605
+ break;
3606
+ case S:
3607
+ h ? p += v(m, !0) : f += v(m, !1);
3608
+ break;
3609
+ }
3610
+ switch (n.centralConnection) {
3611
+ case b:
3612
+ y(p);
3613
+ break;
3614
+ case x:
3615
+ y(f);
3616
+ break;
3617
+ case S:
3618
+ y(f), y(p);
3619
+ break;
3620
+ }
3621
+ }, "drawCentralConnection"), Pe = /* @__PURE__ */ e((e) => ({
3622
+ fontFamily: e.messageFontFamily,
3623
+ fontSize: e.messageFontSize,
3624
+ fontWeight: e.messageFontWeight
3625
+ }), "messageFont"), Fe = /* @__PURE__ */ e((e) => ({
3626
+ fontFamily: e.noteFontFamily,
3627
+ fontSize: e.noteFontSize,
3628
+ fontWeight: e.noteFontWeight
3629
+ }), "noteFont"), Ie = /* @__PURE__ */ e((e) => ({
3630
+ fontFamily: e.actorFontFamily,
3631
+ fontSize: e.actorFontSize,
3632
+ fontWeight: e.actorFontWeight
3633
+ }), "actorFont");
3634
+ async function Le(e, t) {
3635
+ Q.bumpVerticalPos(10);
3636
+ let { startx: n, stopx: i, message: o } = t, s = a.splitBreaks(o).length, c = p(o), l = c ? await r(o, u()) : T.calculateTextDimensions(o, Pe(Z));
3637
+ if (!c) {
3638
+ let e = l.height / s;
3639
+ t.height += e, Q.bumpVerticalPos(e);
3640
+ }
3641
+ let d, f = l.height - 10, m = l.width;
3642
+ if (n === i) {
3643
+ d = Q.getVerticalPos() + f, Z.rightAngles || (f += Z.boxMargin, d = Q.getVerticalPos() + f), f += 30;
3644
+ let e = a.getMax(m / 2, Z.width / 2);
3645
+ Q.insert(n - e, Q.getVerticalPos() - 10 + f, i + e, Q.getVerticalPos() + 30 + f);
3646
+ } else f += Z.boxMargin, d = Q.getVerticalPos() + f, Q.insert(n, d - 10, i, d);
3647
+ return Q.bumpVerticalPos(f), t.height += f, t.stopy = t.starty + t.height, Q.insert(t.fromBounds, t.starty, t.toBounds, t.stopy), d;
3648
+ }
3649
+ e(Le, "boundMessage");
3650
+ var Re = /* @__PURE__ */ e(async function(e, t, n, r, i, o) {
3651
+ let { startx: s, stopx: c, starty: l, message: u, type: d, sequenceIndex: m, sequenceVisible: h } = t, g = T.calculateTextDimensions(u, Pe(Z)), _ = j();
3652
+ _.x = s, _.y = l + 10, _.width = c - s, _.class = "messageText", _.dy = "1em", _.text = u, _.fontFamily = Z.messageFontFamily, _.fontSize = Z.messageFontSize, _.fontWeight = Z.messageFontWeight, _.anchor = Z.messageAlign, _.valign = "center", _.textMargin = Z.wrapPadding, _.tspan = !1, p(_.text) ? await oe(e, _, {
3653
+ startx: s,
3654
+ stopx: c,
3655
+ starty: n
3656
+ }) : G(e, _);
3657
+ let v = g.width, y;
3658
+ if (s === c) {
3659
+ let o = h || Z.showSequenceNumbers, l = tt(i, r), u = nt(i, r), d = s + (o && (l || u) ? 10 : 0);
3660
+ y = Z.rightAngles ? e.append("path").attr("d", `M ${d},${n} H ${s + a.getMax(Z.width / 2, v / 2)} V ${n + 25} H ${s}`) : e.append("path").attr("d", "M " + d + "," + n + " C " + (d + 60) + "," + (n - 10) + " " + (s + 60) + "," + (n + 30) + " " + s + "," + (n + 20)), $e(i, r) && Ne(e, i, t, r, s, c, n);
3661
+ } else y = e.append("line"), y.attr("x1", s), y.attr("y1", n), y.attr("x2", c), y.attr("y2", n), $e(i, r) && Ne(e, i, t, r, s, c, n);
3662
+ d === r.db.LINETYPE.DOTTED || d === r.db.LINETYPE.DOTTED_CROSS || d === r.db.LINETYPE.DOTTED_POINT || d === r.db.LINETYPE.DOTTED_OPEN || d === r.db.LINETYPE.BIDIRECTIONAL_DOTTED || d === r.db.LINETYPE.SOLID_TOP_DOTTED || d === r.db.LINETYPE.SOLID_BOTTOM_DOTTED || d === r.db.LINETYPE.STICK_TOP_DOTTED || d === r.db.LINETYPE.STICK_BOTTOM_DOTTED || d === r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED || d === r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED || d === r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED || d === r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED ? (y.style("stroke-dasharray", "3, 3"), y.attr("class", "messageLine1")) : y.attr("class", "messageLine0"), y.attr("data-et", "message"), y.attr("data-id", "i" + t.id), y.attr("data-from", t.from), y.attr("data-to", t.to);
3663
+ let b = "";
3664
+ if (Z.arrowMarkerAbsolute && (b = f(!0)), y.attr("stroke-width", 2), y.attr("stroke", "none"), y.style("fill", "none"), (d === r.db.LINETYPE.SOLID_TOP || d === r.db.LINETYPE.SOLID_TOP_DOTTED) && y.attr("marker-end", "url(" + b + "#" + o + "-solidTopArrowHead)"), (d === r.db.LINETYPE.SOLID_BOTTOM || d === r.db.LINETYPE.SOLID_BOTTOM_DOTTED) && y.attr("marker-end", "url(" + b + "#" + o + "-solidBottomArrowHead)"), (d === r.db.LINETYPE.STICK_TOP || d === r.db.LINETYPE.STICK_TOP_DOTTED) && y.attr("marker-end", "url(" + b + "#" + o + "-stickTopArrowHead)"), (d === r.db.LINETYPE.STICK_BOTTOM || d === r.db.LINETYPE.STICK_BOTTOM_DOTTED) && y.attr("marker-end", "url(" + b + "#" + o + "-stickBottomArrowHead)"), (d === r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE || d === r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED) && y.attr("marker-start", "url(" + b + "#" + o + "-solidBottomArrowHead)"), (d === r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE || d === r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED) && y.attr("marker-start", "url(" + b + "#" + o + "-solidTopArrowHead)"), (d === r.db.LINETYPE.STICK_ARROW_TOP_REVERSE || d === r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED) && y.attr("marker-start", "url(" + b + "#" + o + "-stickBottomArrowHead)"), (d === r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE || d === r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED) && y.attr("marker-start", "url(" + b + "#" + o + "-stickTopArrowHead)"), (d === r.db.LINETYPE.SOLID || d === r.db.LINETYPE.DOTTED) && y.attr("marker-end", "url(" + b + "#" + o + "-arrowhead)"), (d === r.db.LINETYPE.BIDIRECTIONAL_SOLID || d === r.db.LINETYPE.BIDIRECTIONAL_DOTTED) && (y.attr("marker-start", "url(" + b + "#" + o + "-arrowhead)"), y.attr("marker-end", "url(" + b + "#" + o + "-arrowhead)")), (d === r.db.LINETYPE.SOLID_POINT || d === r.db.LINETYPE.DOTTED_POINT) && y.attr("marker-end", "url(" + b + "#" + o + "-filled-head)"), (d === r.db.LINETYPE.SOLID_CROSS || d === r.db.LINETYPE.DOTTED_CROSS) && y.attr("marker-end", "url(" + b + "#" + o + "-crosshead)"), h || Z.showSequenceNumbers) {
3665
+ let a = d === r.db.LINETYPE.BIDIRECTIONAL_SOLID || d === r.db.LINETYPE.BIDIRECTIONAL_DOTTED, l = d === r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE || d === r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED || d === r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE || d === r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED || d === r.db.LINETYPE.STICK_ARROW_TOP_REVERSE || d === r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED || d === r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE || d === r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED, u = $e(i, r), f = s, p = c;
3666
+ a ? (s < c ? f = s + 12 : (f = s - 6 + (u ? -5 : 0), f += i?.centralConnection === r.db.LINETYPE.CENTRAL_CONNECTION_DUAL || i?.centralConnection === r.db.LINETYPE.CENTRAL_CONNECTION_REVERSE ? -7.5 : 0), y.attr("x1", f)) : l ? (c > s ? p = c - 12 : (p = c - 6, f += i?.centralConnection === r.db.LINETYPE.CENTRAL_CONNECTION_DUAL || i?.centralConnection === r.db.LINETYPE.CENTRAL_CONNECTION_REVERSE ? -7.5 : 0), p += u ? 15 : 0, y.attr("x2", p), y.attr("x1", f)) : y.attr("x1", s + 6);
3667
+ let h = 0, g = s === c, _ = s <= c;
3668
+ h = g ? t.fromBounds + 1 : l ? _ ? t.toBounds - 1 : t.fromBounds + 1 : _ ? t.fromBounds + 1 : t.toBounds - 1, e.append("line").attr("x1", h).attr("y1", n).attr("x2", h).attr("y2", n).attr("stroke-width", 0).attr("marker-start", "url(" + b + "#" + o + "-sequencenumber)"), e.append("text").attr("x", h).attr("y", n + 4).attr("font-family", "sans-serif").attr("font-size", "12px").attr("text-anchor", "middle").attr("class", "sequenceNumber").text(m);
3669
+ }
3670
+ }, "drawMessage"), ze = /* @__PURE__ */ e(function(e, t, n, r, i, o, s) {
3671
+ let c = 0, l = 0, u, d = 0;
3672
+ for (let e of r) {
3673
+ let r = t.get(e), o = r.box;
3674
+ u && u != o && (s || Q.models.addBox(u), l += Z.boxMargin + u.margin), o && o != u && (s || (o.x = c + l, o.y = i), l += o.margin), r.width = a.getMax(r.width || Z.width, Z.width), r.height = a.getMax(r.height || Z.height, Z.height), r.margin = r.margin || Z.actorMargin, d = a.getMax(d, r.height), n.get(r.name) && (l += r.width / 2), r.x = c + l, r.starty = Q.getVerticalPos(), Q.insert(r.x, i, r.x + r.width, r.height), c += r.width + l, r.box && (r.box.width = c + o.margin - r.box.x), l = r.margin, u = r.box, Q.models.addActor(r);
3675
+ }
3676
+ u && !s && Q.models.addBox(u), Q.bumpVerticalPos(d);
3677
+ }, "addActorRenderingData"), Be = /* @__PURE__ */ e(async function(e, t, n, r, i, o, s) {
3678
+ if (r) {
3679
+ let r = 0;
3680
+ Q.bumpVerticalPos(Z.boxMargin * 2);
3681
+ for (let c of n) {
3682
+ let n = t.get(c);
3683
+ n.stopy ||= Q.getVerticalPos();
3684
+ let l = await X.drawActor(e, n, Z, !0, i, o, s);
3685
+ r = a.getMax(r, l);
3686
+ }
3687
+ Q.bumpVerticalPos(r + Z.boxMargin);
3688
+ } else for (let r of n) {
3689
+ let n = t.get(r);
3690
+ await X.drawActor(e, n, Z, !1, i, o, s);
3691
+ }
3692
+ }, "drawActors"), Ve = /* @__PURE__ */ e(function(e, t, n, r) {
3693
+ let i = 0, a = 0;
3694
+ for (let o of n) {
3695
+ let n = t.get(o), s = Je(n), c = X.drawPopup(e, n, s, Z, Z.forceMenus, r);
3696
+ c.height > i && (i = c.height), c.width + n.x > a && (a = c.width + n.x);
3697
+ }
3698
+ return {
3699
+ maxHeight: i,
3700
+ maxWidth: a
3701
+ };
3702
+ }, "drawActorsPopup"), He = /* @__PURE__ */ e(function(e) {
3703
+ n(Z, e), e.fontFamily && (Z.actorFontFamily = Z.noteFontFamily = Z.messageFontFamily = e.fontFamily), e.fontSize && (Z.actorFontSize = Z.noteFontSize = Z.messageFontSize = e.fontSize), e.fontWeight && (Z.actorFontWeight = Z.noteFontWeight = Z.messageFontWeight = e.fontWeight);
3704
+ }, "setConf"), Ue = /* @__PURE__ */ e(function(e) {
3705
+ return Q.activations.filter(function(t) {
3706
+ return t.actor === e;
3707
+ });
3708
+ }, "actorActivations"), We = /* @__PURE__ */ e(function(e, t) {
3709
+ let n = t.get(e), r = Ue(e);
3710
+ return [r.reduce(function(e, t) {
3711
+ return a.getMin(e, t.startx);
3712
+ }, n.x + n.width / 2 - 1), r.reduce(function(e, t) {
3713
+ return a.getMax(e, t.stopx);
3714
+ }, n.x + n.width / 2 + 1)];
3715
+ }, "activationBounds");
3716
+ function $(e, n, r, i, o) {
3717
+ Q.bumpVerticalPos(r);
3718
+ let s = i;
3719
+ if (n.id && n.message && e[n.id]) {
3720
+ let r = e[n.id].width, o = Pe(Z);
3721
+ n.message = T.wrapLabel(`[${n.message}]`, r - 2 * Z.wrapPadding, o), n.width = r, n.wrap = !0;
3722
+ let c = T.calculateTextDimensions(n.message, o), l = a.getMax(c.height, Z.labelBoxHeight);
3723
+ s = i + l, t.debug(`${l} - ${n.message}`);
3724
+ }
3725
+ o(n), Q.bumpVerticalPos(s);
3726
+ }
3727
+ e($, "adjustLoopHeightForWrap");
3728
+ function Ge(t, n, r, i, a, o, s) {
3729
+ function c(e, r) {
3730
+ e.x < a.get(t.from).x ? (Q.insert(n.stopx - r, n.starty, n.startx, n.stopy + e.height / 2 + Z.noteMargin), n.stopx += r) : (Q.insert(n.startx, n.starty, n.stopx + r, n.stopy + e.height / 2 + Z.noteMargin), n.stopx -= r);
3731
+ }
3732
+ e(c, "receiverAdjustment");
3733
+ function l(e, r) {
3734
+ e.x < a.get(t.to).x ? (Q.insert(n.startx - r, n.starty, n.stopx, n.stopy + e.height / 2 + Z.noteMargin), n.startx += r) : (Q.insert(n.stopx, n.starty, n.startx + r, n.stopy + e.height / 2 + Z.noteMargin), n.startx -= r);
3735
+ }
3736
+ e(l, "senderAdjustment");
3737
+ let u = [
3738
+ R.ACTOR,
3739
+ R.CONTROL,
3740
+ R.ENTITY,
3741
+ R.DATABASE
3742
+ ];
3743
+ if (o.get(t.to) == i) {
3744
+ let e = a.get(t.to);
3745
+ c(e, u.includes(e.type) ? z / 2 + 3 : e.width / 2 + 3), e.starty = r - e.height / 2, Q.bumpVerticalPos(e.height / 2);
3746
+ } else if (s.get(t.from) == i) {
3747
+ let e = a.get(t.from);
3748
+ Z.mirrorActors && l(e, u.includes(e.type) ? z / 2 : e.width / 2), e.stopy = r - e.height / 2, Q.bumpVerticalPos(e.height / 2);
3749
+ } else if (s.get(t.to) == i) {
3750
+ let e = a.get(t.to);
3751
+ Z.mirrorActors && c(e, u.includes(e.type) ? z / 2 + 3 : e.width / 2 + 3), e.stopy = r - e.height / 2, Q.bumpVerticalPos(e.height / 2);
3752
+ }
3753
+ }
3754
+ e(Ge, "adjustCreatedDestroyedData");
3755
+ var Ke = /* @__PURE__ */ e(async function(n, r, i, a) {
3756
+ let { securityLevel: s, sequence: c, look: l } = u();
3757
+ Z = c;
3758
+ let d;
3759
+ s === "sandbox" && (d = b("#i" + r));
3760
+ let f = b(s === "sandbox" ? d.nodes()[0].contentDocument.body : "body"), p = s === "sandbox" ? d.nodes()[0].contentDocument : document;
3761
+ Q.init(), t.debug(a.db);
3762
+ let m = s === "sandbox" ? f.select(`[id="${r}"]`) : b(`[id="${r}"]`), h = a.db.getActors(), g = a.db.getCreatedActors(), _ = a.db.getDestroyedActors(), v = a.db.getBoxes(), y = a.db.getActorKeys(), x = a.db.getMessages(), S = a.db.getDiagramTitle(), C = a.db.hasAtLeastOneBox(), w = a.db.hasAtLeastOneBoxWithTitle(), T = await qe(h, x, a);
3763
+ if (Z.height = await Ye(h, T, v), X.insertComputerIcon(m, r), X.insertDatabaseIcon(m, r), X.insertClockIcon(m, r), C && (Q.bumpVerticalPos(Z.boxMargin), w && Q.bumpVerticalPos(v[0].textMaxHeight)), Z.hideUnusedParticipants === !0) {
3764
+ let e = /* @__PURE__ */ new Set();
3765
+ x.forEach((t) => {
3766
+ e.add(t.from), e.add(t.to);
3767
+ }), y = y.filter((t) => e.has(t));
3768
+ }
3769
+ let E = new Map(y.map((e, t) => [h.get(e)?.name ?? e, t]));
3770
+ ze(m, h, g, y, 0, x, !1);
3771
+ let D = await it(x, h, T, a);
3772
+ X.insertArrowHead(m, r), X.insertArrowCrossHead(m, r), X.insertArrowFilledHead(m, r), X.insertSequenceNumber(m, r), X.insertSolidTopArrowHead(m, r), X.insertSolidBottomArrowHead(m, r), X.insertStickTopArrowHead(m, r), X.insertStickBottomArrowHead(m, r), l === "neo" && X.insertDropShadow(m, Z);
3773
+ function O(e, t) {
3774
+ let n = Q.endActivation(e);
3775
+ n.starty + 18 > t && (n.starty = t - 6, t += 12), X.drawActivation(m, n, t, Z, Ue(e.from).length, a, E), Q.insert(n.startx, t - 10, n.stopx, t);
3776
+ }
3777
+ e(O, "activeEnd");
3778
+ let k = 1, A = 1, j = [], M = [], N = 0;
3779
+ for (let e of x) {
3780
+ let n, r, i;
3781
+ switch (e.type) {
3782
+ case a.db.LINETYPE.NOTE:
3783
+ Q.resetVerticalPos(), r = e.noteModel, await Me(m, r, e.id);
3784
+ break;
3785
+ case a.db.LINETYPE.ACTIVE_START:
3786
+ Q.newActivation(e, m, h);
3787
+ break;
3788
+ case a.db.LINETYPE.CENTRAL_CONNECTION:
3789
+ Q.newActivation(e, m, h);
3790
+ break;
3791
+ case a.db.LINETYPE.CENTRAL_CONNECTION_REVERSE:
3792
+ Q.newActivation(e, m, h);
3793
+ break;
3794
+ case a.db.LINETYPE.ACTIVE_END:
3795
+ O(e, Q.getVerticalPos());
3796
+ break;
3797
+ case a.db.LINETYPE.LOOP_START:
3798
+ $(D, e, Z.boxMargin, Z.boxMargin + Z.boxTextMargin, (e) => Q.newLoop(e));
3799
+ break;
3800
+ case a.db.LINETYPE.LOOP_END:
3801
+ n = Q.endLoop(), await X.drawLoop(m, n, "loop", Z, e), Q.bumpVerticalPos(n.stopy - Q.getVerticalPos()), Q.models.addLoop(n);
3802
+ break;
3803
+ case a.db.LINETYPE.RECT_START:
3804
+ $(D, e, Z.boxMargin, Z.boxMargin, (e) => Q.newLoop(void 0, e.message));
3805
+ break;
3806
+ case a.db.LINETYPE.RECT_END:
3807
+ n = Q.endLoop(), M.push(n), Q.models.addLoop(n), Q.bumpVerticalPos(n.stopy - Q.getVerticalPos());
3808
+ break;
3809
+ case a.db.LINETYPE.OPT_START:
3810
+ $(D, e, Z.boxMargin, Z.boxMargin + Z.boxTextMargin, (e) => Q.newLoop(e));
3811
+ break;
3812
+ case a.db.LINETYPE.OPT_END:
3813
+ n = Q.endLoop(), await X.drawLoop(m, n, "opt", Z, e), Q.bumpVerticalPos(n.stopy - Q.getVerticalPos()), Q.models.addLoop(n);
3814
+ break;
3815
+ case a.db.LINETYPE.ALT_START:
3816
+ $(D, e, Z.boxMargin, Z.boxMargin + Z.boxTextMargin, (e) => Q.newLoop(e));
3817
+ break;
3818
+ case a.db.LINETYPE.ALT_ELSE:
3819
+ $(D, e, Z.boxMargin + Z.boxTextMargin, Z.boxMargin, (e) => Q.addSectionToLoop(e));
3820
+ break;
3821
+ case a.db.LINETYPE.ALT_END:
3822
+ n = Q.endLoop(), await X.drawLoop(m, n, "alt", Z, e), Q.bumpVerticalPos(n.stopy - Q.getVerticalPos()), Q.models.addLoop(n);
3823
+ break;
3824
+ case a.db.LINETYPE.PAR_START:
3825
+ case a.db.LINETYPE.PAR_OVER_START:
3826
+ $(D, e, Z.boxMargin, Z.boxMargin + Z.boxTextMargin, (e) => Q.newLoop(e)), Q.saveVerticalPos();
3827
+ break;
3828
+ case a.db.LINETYPE.PAR_AND:
3829
+ $(D, e, Z.boxMargin + Z.boxTextMargin, Z.boxMargin, (e) => Q.addSectionToLoop(e));
3830
+ break;
3831
+ case a.db.LINETYPE.PAR_END:
3832
+ n = Q.endLoop(), await X.drawLoop(m, n, "par", Z, e), Q.bumpVerticalPos(n.stopy - Q.getVerticalPos()), Q.models.addLoop(n);
3833
+ break;
3834
+ case a.db.LINETYPE.AUTONUMBER:
3835
+ k = e.message.start || k, A = e.message.step || A, e.message.visible ? a.db.enableSequenceNumbers() : a.db.disableSequenceNumbers();
3836
+ break;
3837
+ case a.db.LINETYPE.CRITICAL_START:
3838
+ $(D, e, Z.boxMargin, Z.boxMargin + Z.boxTextMargin, (e) => Q.newLoop(e));
3839
+ break;
3840
+ case a.db.LINETYPE.CRITICAL_OPTION:
3841
+ $(D, e, Z.boxMargin + Z.boxTextMargin, Z.boxMargin, (e) => Q.addSectionToLoop(e));
3842
+ break;
3843
+ case a.db.LINETYPE.CRITICAL_END:
3844
+ n = Q.endLoop(), await X.drawLoop(m, n, "critical", Z, e), Q.bumpVerticalPos(n.stopy - Q.getVerticalPos()), Q.models.addLoop(n);
3845
+ break;
3846
+ case a.db.LINETYPE.BREAK_START:
3847
+ $(D, e, Z.boxMargin, Z.boxMargin + Z.boxTextMargin, (e) => Q.newLoop(e));
3848
+ break;
3849
+ case a.db.LINETYPE.BREAK_END:
3850
+ n = Q.endLoop(), await X.drawLoop(m, n, "break", Z, e), Q.bumpVerticalPos(n.stopy - Q.getVerticalPos()), Q.models.addLoop(n);
3851
+ break;
3852
+ default: try {
3853
+ i = e.msgModel, i.starty = Q.getVerticalPos(), i.sequenceIndex = k, i.sequenceVisible = a.db.showSequenceNumbers(), i.id = e.id, i.from = e.from, i.to = e.to;
3854
+ let t = await Le(m, i);
3855
+ Ge(e, i, t, N, h, g, _), j.push({
3856
+ messageModel: i,
3857
+ lineStartY: t,
3858
+ msg: e
3859
+ }), Q.models.addMessage(i);
3860
+ } catch (e) {
3861
+ t.error("error while drawing message", e);
3862
+ }
3863
+ }
3864
+ [
3865
+ a.db.LINETYPE.SOLID_OPEN,
3866
+ a.db.LINETYPE.DOTTED_OPEN,
3867
+ a.db.LINETYPE.SOLID,
3868
+ a.db.LINETYPE.SOLID_TOP,
3869
+ a.db.LINETYPE.SOLID_BOTTOM,
3870
+ a.db.LINETYPE.STICK_TOP,
3871
+ a.db.LINETYPE.STICK_BOTTOM,
3872
+ a.db.LINETYPE.SOLID_TOP_DOTTED,
3873
+ a.db.LINETYPE.SOLID_BOTTOM_DOTTED,
3874
+ a.db.LINETYPE.STICK_TOP_DOTTED,
3875
+ a.db.LINETYPE.STICK_BOTTOM_DOTTED,
3876
+ a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,
3877
+ a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE,
3878
+ a.db.LINETYPE.STICK_ARROW_TOP_REVERSE,
3879
+ a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,
3880
+ a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,
3881
+ a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,
3882
+ a.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,
3883
+ a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,
3884
+ a.db.LINETYPE.DOTTED,
3885
+ a.db.LINETYPE.SOLID_CROSS,
3886
+ a.db.LINETYPE.DOTTED_CROSS,
3887
+ a.db.LINETYPE.SOLID_POINT,
3888
+ a.db.LINETYPE.DOTTED_POINT,
3889
+ a.db.LINETYPE.BIDIRECTIONAL_SOLID,
3890
+ a.db.LINETYPE.BIDIRECTIONAL_DOTTED
3891
+ ].includes(e.type) && (k += A), N++;
3892
+ }
3893
+ t.debug("createdActors", g), t.debug("destroyedActors", _), await Be(m, h, y, !1, r, a, E);
3894
+ for (let e of j) await Re(m, e.messageModel, e.lineStartY, a, e.msg, r);
3895
+ Z.mirrorActors && await Be(m, h, y, !0, r, a, E), M.forEach((e) => X.drawBackgroundRect(m, e)), ce(m, h, y, Z);
3896
+ for (let e of Q.models.boxes) {
3897
+ e.height = Q.getVerticalPos() - e.y, Q.insert(e.x, e.y, e.x + e.width, e.height);
3898
+ let t = Z.boxMargin * 2;
3899
+ e.startx = e.x - t, e.starty = e.y - t * .25, e.stopx = e.startx + e.width + 2 * t, e.stopy = e.starty + e.height + t * .75, e.stroke = "rgb(0,0,0, 0.5)", X.drawBox(m, e, Z);
3900
+ }
3901
+ C && Q.bumpVerticalPos(Z.boxMargin);
3902
+ let P = Ve(m, h, y, p), { bounds: F } = Q.getBounds();
3903
+ F.startx === void 0 && (F.startx = 0), F.starty === void 0 && (F.starty = 0), F.stopx === void 0 && (F.stopx = 0), F.stopy === void 0 && (F.stopy = 0);
3904
+ let I = F.stopy - F.starty;
3905
+ I < P.maxHeight && (I = P.maxHeight);
3906
+ let L = I + 2 * Z.diagramMarginY;
3907
+ Z.mirrorActors && (L = L - Z.boxMargin + Z.bottomMarginAdj);
3908
+ let ee = F.stopx - F.startx;
3909
+ ee < P.maxWidth && (ee = P.maxWidth);
3910
+ let R = ee + 2 * Z.diagramMarginX;
3911
+ S && m.append("text").text(S).attr("x", (F.stopx - F.startx) / 2 - 2 * Z.diagramMarginX).attr("y", -25), o(m, L, R, Z.useMaxWidth);
3912
+ let te = S ? 40 : 0, ne = h.size && l === "neo" ? 30 : 0;
3913
+ m.attr("viewBox", F.startx - Z.diagramMarginX + " -" + (Z.diagramMarginY + te) + " " + R + " " + (L + te + ne)), t.debug("models:", Q.models);
3914
+ }, "draw");
3915
+ async function qe(e, n, i) {
3916
+ let o = {};
3917
+ for (let t of n) if (e.get(t.to) && e.get(t.from)) {
3918
+ let n = e.get(t.to);
3919
+ if (t.placement === i.db.PLACEMENT.LEFTOF && !n.prevActor || t.placement === i.db.PLACEMENT.RIGHTOF && !n.nextActor) continue;
3920
+ let s = t.placement !== void 0, c = !s, l = s ? Fe(Z) : Pe(Z), d = t.wrap ? T.wrapLabel(t.message, Z.width - 2 * Z.wrapPadding, l) : t.message, f = (p(d) ? await r(t.message, u()) : T.calculateTextDimensions(d, l)).width + 2 * Z.wrapPadding;
3921
+ c && t.from === n.nextActor ? o[t.to] = a.getMax(o[t.to] || 0, f) : c && t.from === n.prevActor ? o[t.from] = a.getMax(o[t.from] || 0, f) : c && t.from === t.to ? (o[t.from] = a.getMax(o[t.from] || 0, f / 2), o[t.to] = a.getMax(o[t.to] || 0, f / 2)) : t.placement === i.db.PLACEMENT.RIGHTOF ? o[t.from] = a.getMax(o[t.from] || 0, f) : t.placement === i.db.PLACEMENT.LEFTOF ? o[n.prevActor] = a.getMax(o[n.prevActor] || 0, f) : t.placement === i.db.PLACEMENT.OVER && (n.prevActor && (o[n.prevActor] = a.getMax(o[n.prevActor] || 0, f / 2)), n.nextActor && (o[t.from] = a.getMax(o[t.from] || 0, f / 2)));
3922
+ }
3923
+ return t.debug("maxMessageWidthPerActor:", o), o;
3924
+ }
3925
+ e(qe, "getMaxMessageWidthPerActor");
3926
+ var Je = /* @__PURE__ */ e(function(e) {
3927
+ let t = 0, n = Ie(Z);
3928
+ for (let r in e.links) {
3929
+ let e = T.calculateTextDimensions(r, n).width + 2 * Z.wrapPadding + 2 * Z.boxMargin;
3930
+ t < e && (t = e);
3931
+ }
3932
+ return t;
3933
+ }, "getRequiredPopupWidth");
3934
+ async function Ye(e, t, n) {
3935
+ let i = 0;
3936
+ for (let t of e.keys()) {
3937
+ let n = e.get(t);
3938
+ n.wrap && (n.description = T.wrapLabel(n.description, Z.width - 2 * Z.wrapPadding, Ie(Z)));
3939
+ let o = p(n.description) ? await r(n.description, u()) : T.calculateTextDimensions(n.description, Ie(Z));
3940
+ n.width = n.wrap ? Z.width : a.getMax(Z.width, o.width + 2 * Z.wrapPadding), n.height = n.wrap ? a.getMax(o.height, Z.height) : Z.height, i = a.getMax(i, n.height);
3941
+ }
3942
+ for (let n in t) {
3943
+ let r = e.get(n);
3944
+ if (!r) continue;
3945
+ let i = e.get(r.nextActor);
3946
+ if (!i) {
3947
+ let e = t[n] + Z.actorMargin - r.width / 2;
3948
+ r.margin = a.getMax(e, Z.actorMargin);
3949
+ continue;
3950
+ }
3951
+ let o = t[n] + Z.actorMargin - r.width / 2 - i.width / 2;
3952
+ r.margin = a.getMax(o, Z.actorMargin);
3953
+ }
3954
+ let o = 0;
3955
+ return n.forEach((t) => {
3956
+ let n = Pe(Z), r = t.actorKeys.reduce((t, n) => t += e.get(n).width + (e.get(n).margin || 0), 0), i = Z.boxMargin * 8;
3957
+ r += i, r -= 2 * Z.boxTextMargin, t.wrap && (t.name = T.wrapLabel(t.name, r - 2 * Z.wrapPadding, n));
3958
+ let s = T.calculateTextDimensions(t.name, n);
3959
+ o = a.getMax(s.height, o);
3960
+ let c = a.getMax(r, s.width + 2 * Z.wrapPadding);
3961
+ if (t.margin = Z.boxTextMargin, r < c) {
3962
+ let e = (c - r) / 2;
3963
+ t.margin += e;
3964
+ }
3965
+ }), n.forEach((e) => e.textMaxHeight = o), a.getMax(i, Z.height);
3966
+ }
3967
+ e(Ye, "calculateActorMargins");
3968
+ var Xe = /* @__PURE__ */ e(async function(e, n, i) {
3969
+ let o = n.get(e.from), s = n.get(e.to), c = o.x, l = s.x, d = e.wrap && e.message, f = p(e.message) ? await r(e.message, u()) : T.calculateTextDimensions(d ? T.wrapLabel(e.message, Z.width, Fe(Z)) : e.message, Fe(Z)), m = {
3970
+ width: d ? Z.width : a.getMax(Z.width, f.width + 2 * Z.noteMargin),
3971
+ height: 0,
3972
+ startx: o.x,
3973
+ stopx: 0,
3974
+ starty: 0,
3975
+ stopy: 0,
3976
+ message: e.message
3977
+ };
3978
+ return e.placement === i.db.PLACEMENT.RIGHTOF ? (m.width = d ? a.getMax(Z.width, f.width) : a.getMax(o.width / 2 + s.width / 2, f.width + 2 * Z.noteMargin), m.startx = c + (o.width + Z.actorMargin) / 2) : e.placement === i.db.PLACEMENT.LEFTOF ? (m.width = d ? a.getMax(Z.width, f.width + 2 * Z.noteMargin) : a.getMax(o.width / 2 + s.width / 2, f.width + 2 * Z.noteMargin), m.startx = c - m.width + (o.width - Z.actorMargin) / 2) : e.to === e.from ? (f = T.calculateTextDimensions(d ? T.wrapLabel(e.message, a.getMax(Z.width, o.width), Fe(Z)) : e.message, Fe(Z)), m.width = d ? a.getMax(Z.width, o.width) : a.getMax(o.width, Z.width, f.width + 2 * Z.noteMargin), m.startx = c + (o.width - m.width) / 2) : (m.width = Math.abs(c + o.width / 2 - (l + s.width / 2)) + Z.actorMargin, m.startx = c < l ? c + o.width / 2 - Z.actorMargin / 2 : l + s.width / 2 - Z.actorMargin / 2), d && (m.message = T.wrapLabel(e.message, m.width - 2 * Z.wrapPadding, Fe(Z))), t.debug(`NM:[${m.startx},${m.stopx},${m.starty},${m.stopy}:${m.width},${m.height}=${e.message}]`), m;
3979
+ }, "buildNoteModel"), Ze = 4, Qe = 6, $e = /* @__PURE__ */ e(function(e, t) {
3980
+ let { CENTRAL_CONNECTION: n, CENTRAL_CONNECTION_REVERSE: r, CENTRAL_CONNECTION_DUAL: i } = t.db.LINETYPE;
3981
+ return [
3982
+ n,
3983
+ r,
3984
+ i
3985
+ ].includes(e.centralConnection);
3986
+ }, "hasCentralConnection"), et = /* @__PURE__ */ e(function(e, t, n) {
3987
+ let { CENTRAL_CONNECTION_REVERSE: r, CENTRAL_CONNECTION_DUAL: i, BIDIRECTIONAL_SOLID: a, BIDIRECTIONAL_DOTTED: o } = t.db.LINETYPE, s = 0;
3988
+ return (e.centralConnection === r || e.centralConnection === i) && (s += Ze), (e.centralConnection === r || e.centralConnection === i) && (e.type === a || e.type === o) && (s += n ? 0 : -Qe), s;
3989
+ }, "calculateCentralConnectionOffset"), tt = /* @__PURE__ */ e(function(e, t) {
3990
+ let { SOLID_ARROW_TOP_REVERSE: n, SOLID_ARROW_TOP_REVERSE_DOTTED: r, SOLID_ARROW_BOTTOM_REVERSE: i, SOLID_ARROW_BOTTOM_REVERSE_DOTTED: a, STICK_ARROW_TOP_REVERSE: o, STICK_ARROW_TOP_REVERSE_DOTTED: s, STICK_ARROW_BOTTOM_REVERSE: c, STICK_ARROW_BOTTOM_REVERSE_DOTTED: l } = t.db.LINETYPE;
3991
+ return [
3992
+ n,
3993
+ r,
3994
+ i,
3995
+ a,
3996
+ o,
3997
+ s,
3998
+ c,
3999
+ l
4000
+ ].includes(e.type);
4001
+ }, "isReverseArrowType"), nt = /* @__PURE__ */ e(function(e, t) {
4002
+ let { BIDIRECTIONAL_SOLID: n, BIDIRECTIONAL_DOTTED: r } = t.db.LINETYPE;
4003
+ return [n, r].includes(e.type);
4004
+ }, "isBidirectionalArrowType"), rt = /* @__PURE__ */ e(function(t, n, r) {
4005
+ let { look: i } = u();
4006
+ if (![
4007
+ r.db.LINETYPE.SOLID_OPEN,
4008
+ r.db.LINETYPE.DOTTED_OPEN,
4009
+ r.db.LINETYPE.SOLID,
4010
+ r.db.LINETYPE.SOLID_TOP,
4011
+ r.db.LINETYPE.SOLID_BOTTOM,
4012
+ r.db.LINETYPE.STICK_TOP,
4013
+ r.db.LINETYPE.STICK_BOTTOM,
4014
+ r.db.LINETYPE.SOLID_TOP_DOTTED,
4015
+ r.db.LINETYPE.SOLID_BOTTOM_DOTTED,
4016
+ r.db.LINETYPE.STICK_TOP_DOTTED,
4017
+ r.db.LINETYPE.STICK_BOTTOM_DOTTED,
4018
+ r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,
4019
+ r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE,
4020
+ r.db.LINETYPE.STICK_ARROW_TOP_REVERSE,
4021
+ r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,
4022
+ r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,
4023
+ r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,
4024
+ r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,
4025
+ r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,
4026
+ r.db.LINETYPE.DOTTED,
4027
+ r.db.LINETYPE.SOLID_CROSS,
4028
+ r.db.LINETYPE.DOTTED_CROSS,
4029
+ r.db.LINETYPE.SOLID_POINT,
4030
+ r.db.LINETYPE.DOTTED_POINT,
4031
+ r.db.LINETYPE.BIDIRECTIONAL_SOLID,
4032
+ r.db.LINETYPE.BIDIRECTIONAL_DOTTED
4033
+ ].includes(t.type)) return {};
4034
+ let [o, s] = We(t.from, n), [c, l] = We(t.to, n), d = o <= c, f = d ? s : o, p = d ? c : l;
4035
+ i === "neo" && (t.type !== r.db.LINETYPE.SOLID_OPEN && (p += d ? -3 : 3), (t.type === r.db.LINETYPE.BIDIRECTIONAL_SOLID || t.type === r.db.LINETYPE.BIDIRECTIONAL_DOTTED) && (f += d ? 3 : -3)), f += et(t, r, d);
4036
+ let m = Math.abs(c - l) > 2, h = /* @__PURE__ */ e((e) => d ? -e : e, "adjustValue");
4037
+ t.from === t.to ? p = f : (t.activate && !m && (p += h(Z.activationWidth / 2 - 1)), [
4038
+ r.db.LINETYPE.SOLID_OPEN,
4039
+ r.db.LINETYPE.DOTTED_OPEN,
4040
+ r.db.LINETYPE.STICK_TOP,
4041
+ r.db.LINETYPE.STICK_BOTTOM,
4042
+ r.db.LINETYPE.STICK_TOP_DOTTED,
4043
+ r.db.LINETYPE.STICK_BOTTOM_DOTTED,
4044
+ r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,
4045
+ r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,
4046
+ r.db.LINETYPE.STICK_ARROW_TOP_REVERSE,
4047
+ r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,
4048
+ r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,
4049
+ r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,
4050
+ r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,
4051
+ r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE
4052
+ ].includes(t.type) || (p += h(3)), [
4053
+ r.db.LINETYPE.BIDIRECTIONAL_SOLID,
4054
+ r.db.LINETYPE.BIDIRECTIONAL_DOTTED,
4055
+ r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,
4056
+ r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,
4057
+ r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,
4058
+ r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE
4059
+ ].includes(t.type) && (f -= h(3)));
4060
+ let g = [
4061
+ o,
4062
+ s,
4063
+ c,
4064
+ l
4065
+ ], _ = Math.abs(f - p);
4066
+ t.wrap && t.message && (t.message = T.wrapLabel(t.message, a.getMax(_ + 2 * Z.wrapPadding, Z.width), Pe(Z)));
4067
+ let v = T.calculateTextDimensions(t.message, Pe(Z));
4068
+ return {
4069
+ width: a.getMax(t.wrap ? 0 : v.width + 2 * Z.wrapPadding, _ + 2 * Z.wrapPadding, Z.width),
4070
+ height: 0,
4071
+ startx: f,
4072
+ stopx: p,
4073
+ starty: 0,
4074
+ stopy: 0,
4075
+ message: t.message,
4076
+ type: t.type,
4077
+ wrap: t.wrap,
4078
+ fromBounds: Math.min.apply(null, g),
4079
+ toBounds: Math.max.apply(null, g)
4080
+ };
4081
+ }, "buildMessageModel"), it = /* @__PURE__ */ e(async function(e, n, r, i) {
4082
+ let o = {}, s = [], c, l, u;
4083
+ for (let t of e) {
4084
+ switch (t.type) {
4085
+ case i.db.LINETYPE.LOOP_START:
4086
+ case i.db.LINETYPE.ALT_START:
4087
+ case i.db.LINETYPE.OPT_START:
4088
+ case i.db.LINETYPE.PAR_START:
4089
+ case i.db.LINETYPE.PAR_OVER_START:
4090
+ case i.db.LINETYPE.CRITICAL_START:
4091
+ case i.db.LINETYPE.BREAK_START:
4092
+ s.push({
4093
+ id: t.id,
4094
+ msg: t.message,
4095
+ from: 2 ** 53 - 1,
4096
+ to: -(2 ** 53 - 1),
4097
+ width: 0
4098
+ });
4099
+ break;
4100
+ case i.db.LINETYPE.ALT_ELSE:
4101
+ case i.db.LINETYPE.PAR_AND:
4102
+ case i.db.LINETYPE.CRITICAL_OPTION:
4103
+ t.message && (c = s.pop(), o[c.id] = c, o[t.id] = c, s.push(c));
4104
+ break;
4105
+ case i.db.LINETYPE.LOOP_END:
4106
+ case i.db.LINETYPE.ALT_END:
4107
+ case i.db.LINETYPE.OPT_END:
4108
+ case i.db.LINETYPE.PAR_END:
4109
+ case i.db.LINETYPE.CRITICAL_END:
4110
+ case i.db.LINETYPE.BREAK_END:
4111
+ c = s.pop(), o[c.id] = c;
4112
+ break;
4113
+ case i.db.LINETYPE.ACTIVE_START:
4114
+ {
4115
+ let e = n.get(t.from ? t.from : t.to.actor), r = Ue(t.from ? t.from : t.to.actor).length, i = e.x + e.width / 2 + (r - 1) * Z.activationWidth / 2, a = {
4116
+ startx: i,
4117
+ stopx: i + Z.activationWidth,
4118
+ actor: t.from,
4119
+ enabled: !0
4120
+ };
4121
+ Q.activations.push(a);
4122
+ }
4123
+ break;
4124
+ case i.db.LINETYPE.ACTIVE_END:
4125
+ {
4126
+ let e = Q.activations.map((e) => e.actor).lastIndexOf(t.from);
4127
+ Q.activations.splice(e, 1).splice(0, 1);
4128
+ }
4129
+ break;
4130
+ }
4131
+ t.placement === void 0 ? (u = rt(t, n, i), t.msgModel = u, u.startx && u.stopx && s.length > 0 && s.forEach((e) => {
4132
+ if (c = e, u.startx === u.stopx) {
4133
+ let e = n.get(t.from), r = n.get(t.to);
4134
+ c.from = a.getMin(e.x - u.width / 2, e.x - e.width / 2, c.from), c.to = a.getMax(r.x + u.width / 2, r.x + e.width / 2, c.to), c.width = a.getMax(c.width, Math.abs(c.to - c.from)) - Z.labelBoxWidth;
4135
+ } else c.from = a.getMin(u.startx, c.from), c.to = a.getMax(u.stopx, c.to), c.width = a.getMax(c.width, u.width) - Z.labelBoxWidth;
4136
+ })) : (l = await Xe(t, n, i), t.noteModel = l, s.forEach((e) => {
4137
+ c = e, c.from = a.getMin(c.from, l.startx), c.to = a.getMax(c.to, l.startx + l.width), c.width = a.getMax(c.width, Math.abs(c.from - c.to)) - Z.labelBoxWidth;
4138
+ }));
4139
+ }
4140
+ return Q.activations = [], t.debug("Loop type widths:", o), o;
4141
+ }, "calculateLoopBounds"), at = {
4142
+ parser: F,
4143
+ get db() {
4144
+ return new te();
4145
+ },
4146
+ renderer: {
4147
+ bounds: Q,
4148
+ drawActors: Be,
4149
+ drawActorsPopup: Ve,
4150
+ setConf: He,
4151
+ draw: Ke
4152
+ },
4153
+ styles: ne,
4154
+ init: /* @__PURE__ */ e((e) => {
4155
+ e.sequence ||= {}, e.wrap && (e.sequence.wrap = e.wrap, v({ sequence: { wrap: e.wrap } }));
4156
+ }, "init")
4157
+ };
4158
+ //#endregion
4159
+ export { at as diagram };