@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,2500 @@
1
+ "use client";
2
+ import { SKIP as e, visitParents as t } from "../../unist-util-visit-parents/lib/index.js";
3
+ import { visit as n } from "../../unist-util-visit/lib/index.js";
4
+ import r from "../../remark-gfm/lib/index.js";
5
+ import { harden as i } from "../../rehype-harden/dist/index.js";
6
+ import a from "../../rehype-raw/lib/index.js";
7
+ import { defaultSchema as o } from "../../hast-util-sanitize/lib/schema.js";
8
+ import s from "../../rehype-sanitize/lib/index.js";
9
+ import { $e as c } from "../../remend/dist/index.js";
10
+ import { toJsxRuntime as l } from "../../hast-util-to-jsx-runtime/lib/index.js";
11
+ import { urlAttributes as u } from "../../html-url-attributes/lib/index.js";
12
+ import d from "../../remark-parse/lib/index.js";
13
+ import f from "../../remark-rehype/lib/index.js";
14
+ import { unified as p } from "../../unified/lib/index.js";
15
+ import { x as m } from "../node_modules/marked/lib/marked.esm.js";
16
+ import { Suspense as h, cloneElement as g, createContext as _, createElement as v, isValidElement as y, lazy as b, memo as x, useCallback as S, useContext as C, useEffect as w, useId as ee, useMemo as T, useRef as E, useState as D, useTransition as te } from "react";
17
+ import { Fragment as O, jsx as k, jsxs as A } from "react/jsx-runtime";
18
+ import { clsx as j } from "clsx";
19
+ import { twMerge as M } from "tailwind-merge";
20
+ import { createPortal as N } from "react-dom";
21
+ //#region ../../node_modules/streamdown/dist/chunk-BO2N2NFS.js
22
+ var P = 300, F = "300px", ne = 500;
23
+ function re(e = {}) {
24
+ let { immediate: t = !1, debounceDelay: n = P, rootMargin: r = F, idleTimeout: i = ne } = e, [a, o] = D(!1), s = E(null), c = E(null), l = E(null), u = T(() => (e) => {
25
+ let t = Date.now();
26
+ return window.setTimeout(() => {
27
+ e({
28
+ didTimeout: !1,
29
+ timeRemaining: () => Math.max(0, 50 - (Date.now() - t))
30
+ });
31
+ }, 1);
32
+ }, []), d = T(() => typeof window < "u" && window.requestIdleCallback ? (e, t) => window.requestIdleCallback(e, t) : u, [u]), f = T(() => typeof window < "u" && window.cancelIdleCallback ? (e) => window.cancelIdleCallback(e) : (e) => {
33
+ clearTimeout(e);
34
+ }, []);
35
+ return w(() => {
36
+ if (t) {
37
+ o(!0);
38
+ return;
39
+ }
40
+ let e = s.current;
41
+ if (!e) return;
42
+ c.current &&= (clearTimeout(c.current), null), l.current &&= (f(l.current), null);
43
+ let a = () => {
44
+ c.current &&= (clearTimeout(c.current), null), l.current &&= (f(l.current), null);
45
+ }, u = (e) => {
46
+ l.current = d((t) => {
47
+ t.timeRemaining() > 0 || t.didTimeout ? (o(!0), e.disconnect()) : l.current = d(() => {
48
+ o(!0), e.disconnect();
49
+ }, { timeout: i / 2 });
50
+ }, { timeout: i });
51
+ }, p = (e) => {
52
+ a(), c.current = window.setTimeout(() => {
53
+ var t;
54
+ let n = e.takeRecords();
55
+ (n.length === 0 || (t = n.at(-1)?.isIntersecting) != null && t) && u(e);
56
+ }, n);
57
+ }, m = (e, t) => {
58
+ e.isIntersecting ? p(t) : a();
59
+ }, h = new IntersectionObserver((e) => {
60
+ for (let t of e) m(t, h);
61
+ }, {
62
+ rootMargin: r,
63
+ threshold: 0
64
+ });
65
+ return h.observe(e), () => {
66
+ c.current && clearTimeout(c.current), l.current && f(l.current), h.disconnect();
67
+ };
68
+ }, [
69
+ t,
70
+ n,
71
+ r,
72
+ i,
73
+ f,
74
+ d
75
+ ]), {
76
+ shouldRender: a,
77
+ containerRef: s
78
+ };
79
+ }
80
+ var ie = /\s/, ae = /^\s+$/, oe = new Set([
81
+ "code",
82
+ "pre",
83
+ "svg",
84
+ "math",
85
+ "annotation"
86
+ ]), I = (e) => typeof e == "object" && !!e && "type" in e && e.type === "element", se = (e) => e.some((e) => I(e) && oe.has(e.tagName)), L = (e) => {
87
+ let t = [], n = "", r = !1;
88
+ for (let i of e) {
89
+ let e = ie.test(i);
90
+ e !== r && n && (t.push(n), n = ""), n += i, r = e;
91
+ }
92
+ return n && t.push(n), t;
93
+ }, ce = (e) => {
94
+ let t = [], n = "";
95
+ for (let r of e) ie.test(r) ? n += r : (n &&= (t.push(n), ""), t.push(r));
96
+ return n && t.push(n), t;
97
+ }, R = (e, t, n, r, i, a) => {
98
+ let o = `--sd-animation:sd-${t};--sd-duration:${i ? 0 : n}ms;--sd-easing:${r}`;
99
+ return a && (o += `;--sd-delay:${a}ms`), {
100
+ type: "element",
101
+ tagName: "span",
102
+ properties: {
103
+ "data-sd-animate": !0,
104
+ style: o
105
+ },
106
+ children: [{
107
+ type: "text",
108
+ value: e
109
+ }]
110
+ };
111
+ }, z = (t, n, r, i, a) => {
112
+ let o = n.at(-1);
113
+ if (!(o && "children" in o)) return;
114
+ if (se(n)) return e;
115
+ let s = o, c = s.children.indexOf(t);
116
+ if (c === -1) return;
117
+ let l = t.value;
118
+ if (!l.trim()) {
119
+ a.count += l.length;
120
+ return;
121
+ }
122
+ let u = r.sep === "char" ? ce(l) : L(l), d = i.prevContentLength, f = u.map((e) => {
123
+ let t = a.count;
124
+ if (a.count += e.length, ae.test(e)) return {
125
+ type: "text",
126
+ value: e
127
+ };
128
+ let n = d > 0 && t < d, i = n ? 0 : a.newIndex++ * r.stagger;
129
+ return R(e, r.animation, r.duration, r.easing, n, i);
130
+ });
131
+ return s.children.splice(c, 1, ...f), c + f.length;
132
+ }, B = 0;
133
+ function le(e) {
134
+ let n = {
135
+ animation: e?.animation ?? "fadeIn",
136
+ duration: e?.duration ?? 150,
137
+ easing: e?.easing ?? "ease",
138
+ sep: e?.sep ?? "word",
139
+ stagger: e?.stagger ?? 40
140
+ }, r = {
141
+ prevContentLength: 0,
142
+ lastRenderCharCount: 0
143
+ }, i = B++, a = () => (e) => {
144
+ let i = {
145
+ count: 0,
146
+ newIndex: 0
147
+ };
148
+ t(e, "text", (e, t) => z(e, t, n, r, i)), r.lastRenderCharCount = i.count, r.prevContentLength = 0;
149
+ };
150
+ return Object.defineProperty(a, "name", { value: `rehypeAnimate$${i}` }), {
151
+ name: "animate",
152
+ type: "animate",
153
+ rehypePlugin: a,
154
+ setPrevContentLength(e) {
155
+ r.prevContentLength = e;
156
+ },
157
+ getLastRenderCharCount() {
158
+ let e = r.lastRenderCharCount;
159
+ return r.lastRenderCharCount = 0, e;
160
+ }
161
+ };
162
+ }
163
+ le();
164
+ var ue = _(!1), de = () => C(ue), V = (...e) => M(j(e)), fe = (e, t) => {
165
+ if (!e || !t) return t;
166
+ let n = `${e}:`;
167
+ return t.split(/\s+/).filter(Boolean).map((t) => t.startsWith(n) ? t : `${e}:${t}`).join(" ");
168
+ }, pe = (e) => e ? (...t) => fe(e, M(j(t))) : V, H = (e, t, n) => {
169
+ let r = typeof t == "string" && n.startsWith("text/csv") ? "" : "", i = typeof t == "string" ? new Blob([r + t], { type: n }) : t, a = URL.createObjectURL(i), o = document.createElement("a");
170
+ o.href = a, o.download = e, document.body.appendChild(o), o.click(), document.body.removeChild(o), URL.revokeObjectURL(a);
171
+ }, me = _(V), U = () => C(me), W = V("block", "before:content-[counter(line)]", "before:inline-block", "before:[counter-increment:line]", "before:w-6", "before:mr-4", "before:text-[13px]", "before:text-right", "before:text-muted-foreground/50", "before:font-mono", "before:select-none"), he = (e) => {
172
+ let t = {};
173
+ for (let n of e.split(";")) {
174
+ let e = n.indexOf(":");
175
+ if (e > 0) {
176
+ let r = n.slice(0, e).trim(), i = n.slice(e + 1).trim();
177
+ r && i && (t[r] = i);
178
+ }
179
+ }
180
+ return t;
181
+ }, G = x(({ children: e, result: t, language: n, className: r, startLine: i, lineNumbers: a = !0, ...o }) => {
182
+ let s = U(), c = T(() => s(W), [s]), l = T(() => {
183
+ let e = {};
184
+ return t.bg && (e["--sdm-bg"] = t.bg), t.fg && (e["--sdm-fg"] = t.fg), t.rootStyle && Object.assign(e, he(t.rootStyle)), e;
185
+ }, [
186
+ t.bg,
187
+ t.fg,
188
+ t.rootStyle
189
+ ]);
190
+ return k("div", {
191
+ className: s(r, "overflow-x-auto rounded-md border border-border bg-background p-4 text-sm"),
192
+ "data-language": n,
193
+ "data-streamdown": "code-block-body",
194
+ ...o,
195
+ children: k("pre", {
196
+ className: s(r, "bg-[var(--sdm-bg,inherit]", "dark:bg-[var(--shiki-dark-bg,var(--sdm-bg,inherit)]"),
197
+ style: l,
198
+ children: k("code", {
199
+ className: a ? s("[counter-increment:line_0] [counter-reset:line]") : void 0,
200
+ style: a && i && i > 1 ? { counterReset: `line ${i - 1}` } : void 0,
201
+ children: t.tokens.map((e, t) => k("span", {
202
+ className: a ? c : void 0,
203
+ children: e.length === 0 || e.length === 1 && e[0].content === "" ? "\n" : e.map((e, t) => {
204
+ let n = {}, r = !!e.bgColor;
205
+ if (e.color && (n["--sdm-c"] = e.color), e.bgColor && (n["--sdm-tbg"] = e.bgColor), e.htmlStyle) for (let [t, i] of Object.entries(e.htmlStyle)) t === "color" ? n["--sdm-c"] = i : t === "background-color" ? (n["--sdm-tbg"] = i, r = !0) : n[t] = i;
206
+ return k("span", {
207
+ className: s("text-[var(--sdm-c,inherit)]", "dark:text-[var(--shiki-dark,var(--sdm-c,inherit))]", r && "bg-[var(--sdm-tbg)]", r && "dark:bg-[var(--shiki-dark-bg,var(--sdm-tbg))]"),
208
+ style: n,
209
+ ...e.htmlAttrs,
210
+ children: e.content
211
+ }, t);
212
+ })
213
+ }, t))
214
+ })
215
+ })
216
+ });
217
+ }, (e, t) => e.result === t.result && e.language === t.language && e.className === t.className && e.startLine === t.startLine && e.lineNumbers === t.lineNumbers), K = ({ className: e, language: t, style: n, isIncomplete: r, ...i }) => k("div", {
218
+ className: U()("my-4 flex w-full flex-col gap-2 rounded-xl border border-border bg-sidebar p-2", e),
219
+ "data-incomplete": r || void 0,
220
+ "data-language": t,
221
+ "data-streamdown": "code-block",
222
+ style: {
223
+ contentVisibility: "auto",
224
+ containIntrinsicSize: "auto 200px",
225
+ ...n
226
+ },
227
+ ...i
228
+ }), ge = _({ code: "" }), _e = () => C(ge), q = ({ language: e }) => {
229
+ let t = U();
230
+ return k("div", {
231
+ className: t("flex h-8 items-center text-muted-foreground text-xs"),
232
+ "data-language": e,
233
+ "data-streamdown": "code-block-header",
234
+ children: k("span", {
235
+ className: t("ml-1 font-mono lowercase"),
236
+ children: e
237
+ })
238
+ });
239
+ }, ve = (e) => {
240
+ let t = e.length;
241
+ for (; t > 0 && e[t - 1] === "\n";) t--;
242
+ return e.slice(0, t);
243
+ }, ye = b(() => import("./highlighted-body-OFNGDK62.js").then((e) => ({ default: e.HighlightedCodeBlockBody }))), be = ({ code: e, language: t, className: n, children: r, isIncomplete: i = !1, startLine: a, lineNumbers: o, ...s }) => {
244
+ let c = U(), l = T(() => ve(e), [e]), u = T(() => ({
245
+ bg: "transparent",
246
+ fg: "inherit",
247
+ tokens: l.split("\n").map((e) => [{
248
+ content: e,
249
+ color: "inherit",
250
+ bgColor: "transparent",
251
+ htmlStyle: {},
252
+ offset: 0
253
+ }])
254
+ }), [l]);
255
+ return k(ge.Provider, {
256
+ value: { code: e },
257
+ children: A(K, {
258
+ isIncomplete: i,
259
+ language: t,
260
+ children: [
261
+ k(q, { language: t }),
262
+ r ? k("div", {
263
+ className: c("pointer-events-none sticky top-2 z-10 -mt-10 flex h-8 items-center justify-end"),
264
+ children: k("div", {
265
+ className: c("pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur"),
266
+ "data-streamdown": "code-block-actions",
267
+ children: r
268
+ })
269
+ }) : null,
270
+ k(h, {
271
+ fallback: k(G, {
272
+ className: n,
273
+ language: t,
274
+ lineNumbers: o,
275
+ result: u,
276
+ startLine: a,
277
+ ...s
278
+ }),
279
+ children: k(ye, {
280
+ className: n,
281
+ code: l,
282
+ language: t,
283
+ lineNumbers: o,
284
+ raw: u,
285
+ startLine: a,
286
+ ...s
287
+ })
288
+ })
289
+ ]
290
+ })
291
+ });
292
+ }, J = {
293
+ CheckIcon: (e) => k("svg", {
294
+ color: "currentColor",
295
+ height: 16,
296
+ strokeLinejoin: "round",
297
+ viewBox: "0 0 16 16",
298
+ width: 16,
299
+ ...e,
300
+ children: k("path", {
301
+ clipRule: "evenodd",
302
+ d: "M15.5607 3.99999L15.0303 4.53032L6.23744 13.3232C5.55403 14.0066 4.44599 14.0066 3.76257 13.3232L4.2929 12.7929L3.76257 13.3232L0.969676 10.5303L0.439346 9.99999L1.50001 8.93933L2.03034 9.46966L4.82323 12.2626C4.92086 12.3602 5.07915 12.3602 5.17678 12.2626L13.9697 3.46966L14.5 2.93933L15.5607 3.99999Z",
303
+ fill: "currentColor",
304
+ fillRule: "evenodd"
305
+ })
306
+ }),
307
+ CopyIcon: (e) => k("svg", {
308
+ color: "currentColor",
309
+ height: 16,
310
+ strokeLinejoin: "round",
311
+ viewBox: "0 0 16 16",
312
+ width: 16,
313
+ ...e,
314
+ children: k("path", {
315
+ clipRule: "evenodd",
316
+ d: "M2.75 0.5C1.7835 0.5 1 1.2835 1 2.25V9.75C1 10.7165 1.7835 11.5 2.75 11.5H3.75H4.5V10H3.75H2.75C2.61193 10 2.5 9.88807 2.5 9.75V2.25C2.5 2.11193 2.61193 2 2.75 2H8.25C8.38807 2 8.5 2.11193 8.5 2.25V3H10V2.25C10 1.2835 9.2165 0.5 8.25 0.5H2.75ZM7.75 4.5C6.7835 4.5 6 5.2835 6 6.25V13.75C6 14.7165 6.7835 15.5 7.75 15.5H13.25C14.2165 15.5 15 14.7165 15 13.75V6.25C15 5.2835 14.2165 4.5 13.25 4.5H7.75ZM7.5 6.25C7.5 6.11193 7.61193 6 7.75 6H13.25C13.3881 6 13.5 6.11193 13.5 6.25V13.75C13.5 13.8881 13.3881 14 13.25 14H7.75C7.61193 14 7.5 13.8881 7.5 13.75V6.25Z",
317
+ fill: "currentColor",
318
+ fillRule: "evenodd"
319
+ })
320
+ }),
321
+ DownloadIcon: (e) => k("svg", {
322
+ color: "currentColor",
323
+ height: 16,
324
+ strokeLinejoin: "round",
325
+ viewBox: "0 0 16 16",
326
+ width: 16,
327
+ ...e,
328
+ children: k("path", {
329
+ clipRule: "evenodd",
330
+ d: "M8.75 1V1.75V8.68934L10.7197 6.71967L11.25 6.18934L12.3107 7.25L11.7803 7.78033L8.70711 10.8536C8.31658 11.2441 7.68342 11.2441 7.29289 10.8536L4.21967 7.78033L3.68934 7.25L4.75 6.18934L5.28033 6.71967L7.25 8.68934V1.75V1H8.75ZM13.5 9.25V13.5H2.5V9.25V8.5H1V9.25V14C1 14.5523 1.44771 15 2 15H14C14.5523 15 15 14.5523 15 14V9.25V8.5H13.5V9.25Z",
331
+ fill: "currentColor",
332
+ fillRule: "evenodd"
333
+ })
334
+ }),
335
+ ExternalLinkIcon: (e) => k("svg", {
336
+ color: "currentColor",
337
+ height: 16,
338
+ strokeLinejoin: "round",
339
+ viewBox: "0 0 16 16",
340
+ width: 16,
341
+ ...e,
342
+ children: k("path", {
343
+ clipRule: "evenodd",
344
+ d: "M13.5 10.25V13.25C13.5 13.3881 13.3881 13.5 13.25 13.5H2.75C2.61193 13.5 2.5 13.3881 2.5 13.25L2.5 2.75C2.5 2.61193 2.61193 2.5 2.75 2.5H5.75H6.5V1H5.75H2.75C1.7835 1 1 1.7835 1 2.75V13.25C1 14.2165 1.7835 15 2.75 15H13.25C14.2165 15 15 14.2165 15 13.25V10.25V9.5H13.5V10.25ZM9 1H9.75H14.2495C14.6637 1 14.9995 1.33579 14.9995 1.75V6.25V7H13.4995V6.25V3.56066L8.53033 8.52978L8 9.06011L6.93934 7.99945L7.46967 7.46912L12.4388 2.5H9.75H9V1Z",
345
+ fill: "currentColor",
346
+ fillRule: "evenodd"
347
+ })
348
+ }),
349
+ Loader2Icon: (e) => A("svg", {
350
+ color: "currentColor",
351
+ height: 16,
352
+ strokeLinejoin: "round",
353
+ viewBox: "0 0 16 16",
354
+ width: 16,
355
+ ...e,
356
+ children: [
357
+ k("path", {
358
+ d: "M8 0V4",
359
+ stroke: "currentColor",
360
+ strokeWidth: "1.5"
361
+ }),
362
+ k("path", {
363
+ d: "M8 16V12",
364
+ opacity: "0.5",
365
+ stroke: "currentColor",
366
+ strokeWidth: "1.5"
367
+ }),
368
+ k("path", {
369
+ d: "M3.29773 1.52783L5.64887 4.7639",
370
+ opacity: "0.9",
371
+ stroke: "currentColor",
372
+ strokeWidth: "1.5"
373
+ }),
374
+ k("path", {
375
+ d: "M12.7023 1.52783L10.3511 4.7639",
376
+ opacity: "0.1",
377
+ stroke: "currentColor",
378
+ strokeWidth: "1.5"
379
+ }),
380
+ k("path", {
381
+ d: "M12.7023 14.472L10.3511 11.236",
382
+ opacity: "0.4",
383
+ stroke: "currentColor",
384
+ strokeWidth: "1.5"
385
+ }),
386
+ k("path", {
387
+ d: "M3.29773 14.472L5.64887 11.236",
388
+ opacity: "0.6",
389
+ stroke: "currentColor",
390
+ strokeWidth: "1.5"
391
+ }),
392
+ k("path", {
393
+ d: "M15.6085 5.52783L11.8043 6.7639",
394
+ opacity: "0.2",
395
+ stroke: "currentColor",
396
+ strokeWidth: "1.5"
397
+ }),
398
+ k("path", {
399
+ d: "M0.391602 10.472L4.19583 9.23598",
400
+ opacity: "0.7",
401
+ stroke: "currentColor",
402
+ strokeWidth: "1.5"
403
+ }),
404
+ k("path", {
405
+ d: "M15.6085 10.4722L11.8043 9.2361",
406
+ opacity: "0.3",
407
+ stroke: "currentColor",
408
+ strokeWidth: "1.5"
409
+ }),
410
+ k("path", {
411
+ d: "M0.391602 5.52783L4.19583 6.7639",
412
+ opacity: "0.8",
413
+ stroke: "currentColor",
414
+ strokeWidth: "1.5"
415
+ })
416
+ ]
417
+ }),
418
+ Maximize2Icon: (e) => k("svg", {
419
+ color: "currentColor",
420
+ height: 16,
421
+ strokeLinejoin: "round",
422
+ viewBox: "0 0 16 16",
423
+ width: 16,
424
+ ...e,
425
+ children: k("path", {
426
+ clipRule: "evenodd",
427
+ d: "M1 5.25V6H2.5V5.25V2.5H5.25H6V1H5.25H2C1.44772 1 1 1.44772 1 2V5.25ZM5.25 14.9994H6V13.4994H5.25H2.5V10.7494V9.99939H1V10.7494V13.9994C1 14.5517 1.44772 14.9994 2 14.9994H5.25ZM15 10V10.75V14C15 14.5523 14.5523 15 14 15H10.75H10V13.5H10.75H13.5V10.75V10H15ZM10.75 1H10V2.5H10.75H13.5V5.25V6H15V5.25V2C15 1.44772 14.5523 1 14 1H10.75Z",
428
+ fill: "currentColor",
429
+ fillRule: "evenodd"
430
+ })
431
+ }),
432
+ RotateCcwIcon: (e) => k("svg", {
433
+ color: "currentColor",
434
+ height: 16,
435
+ strokeLinejoin: "round",
436
+ viewBox: "0 0 16 16",
437
+ width: 16,
438
+ ...e,
439
+ children: k("path", {
440
+ clipRule: "evenodd",
441
+ d: "M13.5 8C13.5 4.96643 11.0257 2.5 7.96452 2.5C5.42843 2.5 3.29365 4.19393 2.63724 6.5H5.25H6V8H5.25H0.75C0.335787 8 0 7.66421 0 7.25V2.75V2H1.5V2.75V5.23347C2.57851 2.74164 5.06835 1 7.96452 1C11.8461 1 15 4.13001 15 8C15 11.87 11.8461 15 7.96452 15C5.62368 15 3.54872 13.8617 2.27046 12.1122L1.828 11.5066L3.03915 10.6217L3.48161 11.2273C4.48831 12.6051 6.12055 13.5 7.96452 13.5C11.0257 13.5 13.5 11.0336 13.5 8Z",
442
+ fill: "currentColor",
443
+ fillRule: "evenodd"
444
+ })
445
+ }),
446
+ XIcon: (e) => k("svg", {
447
+ color: "currentColor",
448
+ height: 16,
449
+ strokeLinejoin: "round",
450
+ viewBox: "0 0 16 16",
451
+ width: 16,
452
+ ...e,
453
+ children: k("path", {
454
+ clipRule: "evenodd",
455
+ d: "M12.4697 13.5303L13 14.0607L14.0607 13L13.5303 12.4697L9.06065 7.99999L13.5303 3.53032L14.0607 2.99999L13 1.93933L12.4697 2.46966L7.99999 6.93933L3.53032 2.46966L2.99999 1.93933L1.93933 2.99999L2.46966 3.53032L6.93933 7.99999L2.46966 12.4697L1.93933 13L2.99999 14.0607L3.53032 13.5303L7.99999 9.06065L12.4697 13.5303Z",
456
+ fill: "currentColor",
457
+ fillRule: "evenodd"
458
+ })
459
+ }),
460
+ ZoomInIcon: (e) => k("svg", {
461
+ color: "currentColor",
462
+ height: 16,
463
+ strokeLinejoin: "round",
464
+ viewBox: "0 0 16 16",
465
+ width: 16,
466
+ ...e,
467
+ children: k("path", {
468
+ clipRule: "evenodd",
469
+ d: "M1.5 6.5C1.5 3.73858 3.73858 1.5 6.5 1.5C9.26142 1.5 11.5 3.73858 11.5 6.5C11.5 9.26142 9.26142 11.5 6.5 11.5C3.73858 11.5 1.5 9.26142 1.5 6.5ZM6.5 0C2.91015 0 0 2.91015 0 6.5C0 10.0899 2.91015 13 6.5 13C8.02469 13 9.42677 12.475 10.5353 11.596L13.9697 15.0303L14.5 15.5607L15.5607 14.5L15.0303 13.9697L11.596 10.5353C12.475 9.42677 13 8.02469 13 6.5C13 2.91015 10.0899 0 6.5 0ZM4.125 5.875H4.75H5.875V4.75V4.125H7.125V4.75V5.875H8.25H8.875V7.125H8.25H7.125V8.25V8.875H5.875V8.25V7.125H4.75H4.125V5.875Z",
470
+ fill: "currentColor",
471
+ fillRule: "evenodd"
472
+ })
473
+ }),
474
+ ZoomOutIcon: (e) => k("svg", {
475
+ color: "currentColor",
476
+ height: 16,
477
+ strokeLinejoin: "round",
478
+ viewBox: "0 0 16 16",
479
+ width: 16,
480
+ ...e,
481
+ children: k("path", {
482
+ clipRule: "evenodd",
483
+ d: "M1.5 6.5C1.5 3.73858 3.73858 1.5 6.5 1.5C9.26142 1.5 11.5 3.73858 11.5 6.5C11.5 9.26142 9.26142 11.5 6.5 11.5C3.73858 11.5 1.5 9.26142 1.5 6.5ZM6.5 0C2.91015 0 0 2.91015 0 6.5C0 10.0899 2.91015 13 6.5 13C8.02469 13 9.42677 12.475 10.5353 11.596L13.9697 15.0303L14.5 15.5607L15.5607 14.5L15.0303 13.9697L11.596 10.5353C12.475 9.42677 13 8.02469 13 6.5C13 2.91015 10.0899 0 6.5 0ZM4.125 5.875H4.75H8.25H8.875V7.125H8.25H4.75H4.125V5.875Z",
484
+ fill: "currentColor",
485
+ fillRule: "evenodd"
486
+ })
487
+ })
488
+ }, xe = _(J), Se = (e, t) => {
489
+ if (e === t) return !0;
490
+ if (!(e && t)) return e === t;
491
+ let n = Object.keys(e), r = Object.keys(t);
492
+ return n.length === r.length ? n.every((n) => e[n] === t[n]) : !1;
493
+ }, Ce = ({ icons: e, children: t }) => {
494
+ let n = E(e), r = E(e ? {
495
+ ...J,
496
+ ...e
497
+ } : J);
498
+ Se(n.current, e) || (n.current = e, r.current = e ? {
499
+ ...J,
500
+ ...e
501
+ } : J);
502
+ let i = r.current;
503
+ return k(xe.Provider, {
504
+ value: i,
505
+ children: t
506
+ });
507
+ }, Y = () => C(xe), we = {
508
+ copyCode: "Copy Code",
509
+ downloadFile: "Download file",
510
+ downloadDiagram: "Download diagram",
511
+ downloadDiagramAsSvg: "Download diagram as SVG",
512
+ downloadDiagramAsPng: "Download diagram as PNG",
513
+ downloadDiagramAsMmd: "Download diagram as MMD",
514
+ viewFullscreen: "View fullscreen",
515
+ exitFullscreen: "Exit fullscreen",
516
+ mermaidFormatSvg: "SVG",
517
+ mermaidFormatPng: "PNG",
518
+ mermaidFormatMmd: "MMD",
519
+ copyTable: "Copy table",
520
+ copyTableAsMarkdown: "Copy table as Markdown",
521
+ copyTableAsCsv: "Copy table as CSV",
522
+ copyTableAsTsv: "Copy table as TSV",
523
+ downloadTable: "Download table",
524
+ downloadTableAsCsv: "Download table as CSV",
525
+ downloadTableAsMarkdown: "Download table as Markdown",
526
+ tableFormatMarkdown: "Markdown",
527
+ tableFormatCsv: "CSV",
528
+ tableFormatTsv: "TSV",
529
+ imageNotAvailable: "Image not available",
530
+ downloadImage: "Download image",
531
+ openExternalLink: "Open external link?",
532
+ externalLinkWarning: "You're about to visit an external website.",
533
+ close: "Close",
534
+ copyLink: "Copy link",
535
+ copied: "Copied",
536
+ openLink: "Open link"
537
+ }, Te = _(we), X = () => C(Te), Ee = ({ onCopy: e, onError: t, timeout: n = 2e3, children: r, className: i, code: a, ...o }) => {
538
+ let s = U(), [c, l] = D(!1), u = E(0), { code: d } = _e(), { isAnimating: f } = C($), p = X(), m = a ?? d, h = async () => {
539
+ var r;
540
+ if (typeof window > "u" || !((r = navigator == null ? void 0 : navigator.clipboard) != null && r.writeText)) {
541
+ t?.(/* @__PURE__ */ Error("Clipboard API not available"));
542
+ return;
543
+ }
544
+ try {
545
+ c || (await navigator.clipboard.writeText(m), l(!0), e?.(), u.current = window.setTimeout(() => l(!1), n));
546
+ } catch (e) {
547
+ t?.(e);
548
+ }
549
+ };
550
+ w(() => () => {
551
+ window.clearTimeout(u.current);
552
+ }, []);
553
+ let g = Y(), _ = c ? g.CheckIcon : g.CopyIcon;
554
+ return k("button", {
555
+ className: s("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50", i),
556
+ "data-streamdown": "code-block-copy-button",
557
+ disabled: f,
558
+ onClick: h,
559
+ title: p.copyCode,
560
+ type: "button",
561
+ ...o,
562
+ children: r ?? k(_, { size: 14 })
563
+ });
564
+ }, De = {
565
+ "1c": "1c",
566
+ "1c-query": "1cq",
567
+ abap: "abap",
568
+ "actionscript-3": "as",
569
+ ada: "ada",
570
+ adoc: "adoc",
571
+ "angular-html": "html",
572
+ "angular-ts": "ts",
573
+ apache: "conf",
574
+ apex: "cls",
575
+ apl: "apl",
576
+ applescript: "applescript",
577
+ ara: "ara",
578
+ asciidoc: "adoc",
579
+ asm: "asm",
580
+ astro: "astro",
581
+ awk: "awk",
582
+ ballerina: "bal",
583
+ bash: "sh",
584
+ bat: "bat",
585
+ batch: "bat",
586
+ be: "be",
587
+ beancount: "beancount",
588
+ berry: "berry",
589
+ bibtex: "bib",
590
+ bicep: "bicep",
591
+ blade: "blade.php",
592
+ bsl: "bsl",
593
+ c: "c",
594
+ "c#": "cs",
595
+ "c++": "cpp",
596
+ cadence: "cdc",
597
+ cairo: "cairo",
598
+ cdc: "cdc",
599
+ clarity: "clar",
600
+ clj: "clj",
601
+ clojure: "clj",
602
+ "closure-templates": "soy",
603
+ cmake: "cmake",
604
+ cmd: "cmd",
605
+ cobol: "cob",
606
+ codeowners: "CODEOWNERS",
607
+ codeql: "ql",
608
+ coffee: "coffee",
609
+ coffeescript: "coffee",
610
+ "common-lisp": "lisp",
611
+ console: "sh",
612
+ coq: "v",
613
+ cpp: "cpp",
614
+ cql: "cql",
615
+ crystal: "cr",
616
+ cs: "cs",
617
+ csharp: "cs",
618
+ css: "css",
619
+ csv: "csv",
620
+ cue: "cue",
621
+ cypher: "cql",
622
+ d: "d",
623
+ dart: "dart",
624
+ dax: "dax",
625
+ desktop: "desktop",
626
+ diff: "diff",
627
+ docker: "dockerfile",
628
+ dockerfile: "dockerfile",
629
+ dotenv: "env",
630
+ "dream-maker": "dm",
631
+ edge: "edge",
632
+ elisp: "el",
633
+ elixir: "ex",
634
+ elm: "elm",
635
+ "emacs-lisp": "el",
636
+ erb: "erb",
637
+ erl: "erl",
638
+ erlang: "erl",
639
+ f: "f",
640
+ "f#": "fs",
641
+ f03: "f03",
642
+ f08: "f08",
643
+ f18: "f18",
644
+ f77: "f77",
645
+ f90: "f90",
646
+ f95: "f95",
647
+ fennel: "fnl",
648
+ fish: "fish",
649
+ fluent: "ftl",
650
+ for: "for",
651
+ "fortran-fixed-form": "f",
652
+ "fortran-free-form": "f90",
653
+ fs: "fs",
654
+ fsharp: "fs",
655
+ fsl: "fsl",
656
+ ftl: "ftl",
657
+ gdresource: "tres",
658
+ gdscript: "gd",
659
+ gdshader: "gdshader",
660
+ genie: "gs",
661
+ gherkin: "feature",
662
+ "git-commit": "gitcommit",
663
+ "git-rebase": "gitrebase",
664
+ gjs: "js",
665
+ gleam: "gleam",
666
+ "glimmer-js": "js",
667
+ "glimmer-ts": "ts",
668
+ glsl: "glsl",
669
+ gnuplot: "plt",
670
+ go: "go",
671
+ gql: "gql",
672
+ graphql: "graphql",
673
+ groovy: "groovy",
674
+ gts: "gts",
675
+ hack: "hack",
676
+ haml: "haml",
677
+ handlebars: "hbs",
678
+ haskell: "hs",
679
+ haxe: "hx",
680
+ hbs: "hbs",
681
+ hcl: "hcl",
682
+ hjson: "hjson",
683
+ hlsl: "hlsl",
684
+ hs: "hs",
685
+ html: "html",
686
+ "html-derivative": "html",
687
+ http: "http",
688
+ hxml: "hxml",
689
+ hy: "hy",
690
+ imba: "imba",
691
+ ini: "ini",
692
+ jade: "jade",
693
+ java: "java",
694
+ javascript: "js",
695
+ jinja: "jinja",
696
+ jison: "jison",
697
+ jl: "jl",
698
+ js: "js",
699
+ json: "json",
700
+ json5: "json5",
701
+ jsonc: "jsonc",
702
+ jsonl: "jsonl",
703
+ jsonnet: "jsonnet",
704
+ jssm: "jssm",
705
+ jsx: "jsx",
706
+ julia: "jl",
707
+ kotlin: "kt",
708
+ kql: "kql",
709
+ kt: "kt",
710
+ kts: "kts",
711
+ kusto: "kql",
712
+ latex: "tex",
713
+ lean: "lean",
714
+ lean4: "lean",
715
+ less: "less",
716
+ liquid: "liquid",
717
+ lisp: "lisp",
718
+ lit: "lit",
719
+ llvm: "ll",
720
+ log: "log",
721
+ logo: "logo",
722
+ lua: "lua",
723
+ luau: "luau",
724
+ make: "mak",
725
+ makefile: "mak",
726
+ markdown: "md",
727
+ marko: "marko",
728
+ matlab: "m",
729
+ md: "md",
730
+ mdc: "mdc",
731
+ mdx: "mdx",
732
+ mediawiki: "wiki",
733
+ mermaid: "mmd",
734
+ mips: "s",
735
+ mipsasm: "s",
736
+ mmd: "mmd",
737
+ mojo: "mojo",
738
+ move: "move",
739
+ nar: "nar",
740
+ narrat: "narrat",
741
+ nextflow: "nf",
742
+ nf: "nf",
743
+ nginx: "conf",
744
+ nim: "nim",
745
+ nix: "nix",
746
+ nu: "nu",
747
+ nushell: "nu",
748
+ objc: "m",
749
+ "objective-c": "m",
750
+ "objective-cpp": "mm",
751
+ ocaml: "ml",
752
+ pascal: "pas",
753
+ perl: "pl",
754
+ perl6: "p6",
755
+ php: "php",
756
+ plsql: "pls",
757
+ po: "po",
758
+ polar: "polar",
759
+ postcss: "pcss",
760
+ pot: "pot",
761
+ potx: "potx",
762
+ powerquery: "pq",
763
+ powershell: "ps1",
764
+ prisma: "prisma",
765
+ prolog: "pl",
766
+ properties: "properties",
767
+ proto: "proto",
768
+ protobuf: "proto",
769
+ ps: "ps",
770
+ ps1: "ps1",
771
+ pug: "pug",
772
+ puppet: "pp",
773
+ purescript: "purs",
774
+ py: "py",
775
+ python: "py",
776
+ ql: "ql",
777
+ qml: "qml",
778
+ qmldir: "qmldir",
779
+ qss: "qss",
780
+ r: "r",
781
+ racket: "rkt",
782
+ raku: "raku",
783
+ razor: "cshtml",
784
+ rb: "rb",
785
+ reg: "reg",
786
+ regex: "regex",
787
+ regexp: "regexp",
788
+ rel: "rel",
789
+ riscv: "s",
790
+ rs: "rs",
791
+ rst: "rst",
792
+ ruby: "rb",
793
+ rust: "rs",
794
+ sas: "sas",
795
+ sass: "sass",
796
+ scala: "scala",
797
+ scheme: "scm",
798
+ scss: "scss",
799
+ sdbl: "sdbl",
800
+ sh: "sh",
801
+ shader: "shader",
802
+ shaderlab: "shader",
803
+ shell: "sh",
804
+ shellscript: "sh",
805
+ shellsession: "sh",
806
+ smalltalk: "st",
807
+ solidity: "sol",
808
+ soy: "soy",
809
+ sparql: "rq",
810
+ spl: "spl",
811
+ splunk: "spl",
812
+ sql: "sql",
813
+ "ssh-config": "config",
814
+ stata: "do",
815
+ styl: "styl",
816
+ stylus: "styl",
817
+ svelte: "svelte",
818
+ swift: "swift",
819
+ "system-verilog": "sv",
820
+ systemd: "service",
821
+ talon: "talon",
822
+ talonscript: "talon",
823
+ tasl: "tasl",
824
+ tcl: "tcl",
825
+ templ: "templ",
826
+ terraform: "tf",
827
+ tex: "tex",
828
+ tf: "tf",
829
+ tfvars: "tfvars",
830
+ toml: "toml",
831
+ ts: "ts",
832
+ "ts-tags": "ts",
833
+ tsp: "tsp",
834
+ tsv: "tsv",
835
+ tsx: "tsx",
836
+ turtle: "ttl",
837
+ twig: "twig",
838
+ typ: "typ",
839
+ typescript: "ts",
840
+ typespec: "tsp",
841
+ typst: "typ",
842
+ v: "v",
843
+ vala: "vala",
844
+ vb: "vb",
845
+ verilog: "v",
846
+ vhdl: "vhdl",
847
+ vim: "vim",
848
+ viml: "vim",
849
+ vimscript: "vim",
850
+ vue: "vue",
851
+ "vue-html": "html",
852
+ "vue-vine": "vine",
853
+ vy: "vy",
854
+ vyper: "vy",
855
+ wasm: "wasm",
856
+ wenyan: "wy",
857
+ wgsl: "wgsl",
858
+ wiki: "wiki",
859
+ wikitext: "wiki",
860
+ wit: "wit",
861
+ wl: "wl",
862
+ wolfram: "wl",
863
+ xml: "xml",
864
+ xsl: "xsl",
865
+ yaml: "yaml",
866
+ yml: "yml",
867
+ zenscript: "zs",
868
+ zig: "zig",
869
+ zsh: "zsh",
870
+ 文言: "wy"
871
+ }, Oe = ({ onDownload: e, onError: t, language: n, children: r, className: i, code: a, ...o }) => {
872
+ let s = U(), { code: c } = _e(), { isAnimating: l } = C($), u = X(), d = Y(), f = a ?? c, p = `file.${n && n in De ? De[n] : "txt"}`;
873
+ return k("button", {
874
+ className: s("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50", i),
875
+ "data-streamdown": "code-block-download-button",
876
+ disabled: l,
877
+ onClick: () => {
878
+ try {
879
+ H(p, f, "text/plain"), e?.();
880
+ } catch (e) {
881
+ t?.(e);
882
+ }
883
+ },
884
+ title: u.downloadFile,
885
+ type: "button",
886
+ ...o,
887
+ children: r ?? k(d.DownloadIcon, { size: 14 })
888
+ });
889
+ }, ke = () => {
890
+ let { Loader2Icon: e } = Y(), t = U();
891
+ return A("div", {
892
+ className: t("w-full divide-y divide-border overflow-hidden rounded-xl border border-border"),
893
+ children: [k("div", { className: t("h-[46px] w-full bg-muted/80") }), k("div", {
894
+ className: t("flex w-full items-center justify-center p-4"),
895
+ children: k(e, { className: t("size-4 animate-spin") })
896
+ })]
897
+ });
898
+ }, Ae = /\.[^/.]+$/, je = ({ node: e, className: t, src: n, alt: r, onLoad: i, onError: a, ...o }) => {
899
+ let { DownloadIcon: s } = Y(), c = U(), l = E(null), [u, d] = D(!1), [f, p] = D(!1), m = X(), h = o.width != null || o.height != null, g = (u || h) && !f, _ = f && !h;
900
+ w(() => {
901
+ let e = l.current;
902
+ if (e != null && e.complete) {
903
+ let t = e.naturalWidth > 0;
904
+ d(t), p(!t);
905
+ }
906
+ }, []);
907
+ let v = S((e) => {
908
+ d(!0), p(!1), i?.(e);
909
+ }, [i]), y = S((e) => {
910
+ d(!1), p(!0), a?.(e);
911
+ }, [a]), b = async () => {
912
+ if (n) try {
913
+ let e = await (await fetch(n)).blob(), t = new URL(n, window.location.origin).pathname.split("/").pop() || "", i = t.split(".").pop(), a = t.includes(".") && i !== void 0 && i.length <= 4, o = "";
914
+ if (a) o = t;
915
+ else {
916
+ let n = e.type, i = "png";
917
+ n.includes("jpeg") || n.includes("jpg") ? i = "jpg" : n.includes("png") ? i = "png" : n.includes("svg") ? i = "svg" : n.includes("gif") ? i = "gif" : n.includes("webp") && (i = "webp"), o = `${(r || t || "image").replace(Ae, "")}.${i}`;
918
+ }
919
+ H(o, e, e.type);
920
+ } catch {
921
+ window.open(n, "_blank");
922
+ }
923
+ };
924
+ return n ? A("div", {
925
+ className: c("group relative my-4 inline-block"),
926
+ "data-streamdown": "image-wrapper",
927
+ children: [
928
+ k("img", {
929
+ alt: r,
930
+ className: c("max-w-full rounded-lg", _ && "hidden", t),
931
+ "data-streamdown": "image",
932
+ onError: y,
933
+ onLoad: v,
934
+ ref: l,
935
+ src: n,
936
+ ...o
937
+ }),
938
+ _ && k("span", {
939
+ className: c("text-muted-foreground text-xs italic"),
940
+ "data-streamdown": "image-fallback",
941
+ children: m.imageNotAvailable
942
+ }),
943
+ k("div", { className: c("pointer-events-none absolute inset-0 hidden rounded-lg bg-black/10 group-hover:block") }),
944
+ g && k("button", {
945
+ className: c("absolute right-2 bottom-2 flex h-8 w-8 cursor-pointer items-center justify-center rounded-md border border-border bg-background/90 shadow-sm backdrop-blur-sm transition-all duration-200 hover:bg-background", "opacity-0 group-hover:opacity-100"),
946
+ onClick: b,
947
+ title: m.downloadImage,
948
+ type: "button",
949
+ children: k(s, { size: 14 })
950
+ })
951
+ ]
952
+ }) : null;
953
+ }, Z = 0, Me = () => {
954
+ Z += 1, Z === 1 && (document.body.style.overflow = "hidden");
955
+ }, Ne = () => {
956
+ Z = Math.max(0, Z - 1), Z === 0 && (document.body.style.overflow = "");
957
+ }, Pe = ({ url: e, isOpen: t, onClose: n, onConfirm: r }) => {
958
+ let { CheckIcon: i, CopyIcon: a, ExternalLinkIcon: o, XIcon: s } = Y(), c = U(), [l, u] = D(!1), d = X(), f = S(async () => {
959
+ try {
960
+ await navigator.clipboard.writeText(e), u(!0), setTimeout(() => u(!1), 2e3);
961
+ } catch {}
962
+ }, [e]), p = S(() => {
963
+ r(), n();
964
+ }, [r, n]);
965
+ return w(() => {
966
+ if (t) {
967
+ Me();
968
+ let e = (e) => {
969
+ e.key === "Escape" && n();
970
+ };
971
+ return document.addEventListener("keydown", e), () => {
972
+ document.removeEventListener("keydown", e), Ne();
973
+ };
974
+ }
975
+ }, [t, n]), t ? k("div", {
976
+ className: c("fixed inset-0 z-50 flex items-center justify-center bg-background/50 backdrop-blur-sm"),
977
+ "data-streamdown": "link-safety-modal",
978
+ onClick: n,
979
+ onKeyDown: (e) => {
980
+ e.key === "Escape" && n();
981
+ },
982
+ role: "button",
983
+ tabIndex: 0,
984
+ children: A("div", {
985
+ className: c("relative mx-4 flex w-full max-w-md flex-col gap-4 rounded-xl border bg-background p-6 shadow-lg"),
986
+ onClick: (e) => e.stopPropagation(),
987
+ onKeyDown: (e) => e.stopPropagation(),
988
+ role: "presentation",
989
+ children: [
990
+ k("button", {
991
+ className: c("absolute top-4 right-4 rounded-md p-1 text-muted-foreground transition-all hover:bg-muted hover:text-foreground"),
992
+ onClick: n,
993
+ title: d.close,
994
+ type: "button",
995
+ children: k(s, { size: 16 })
996
+ }),
997
+ A("div", {
998
+ className: c("flex flex-col gap-2"),
999
+ children: [A("div", {
1000
+ className: c("flex items-center gap-2 font-semibold text-lg"),
1001
+ children: [k(o, { size: 20 }), k("span", { children: d.openExternalLink })]
1002
+ }), k("p", {
1003
+ className: c("text-muted-foreground text-sm"),
1004
+ children: d.externalLinkWarning
1005
+ })]
1006
+ }),
1007
+ k("div", {
1008
+ className: c("break-all rounded-md bg-muted p-3 font-mono text-sm", e.length > 100 && "max-h-32 overflow-y-auto"),
1009
+ children: e
1010
+ }),
1011
+ A("div", {
1012
+ className: c("flex gap-2"),
1013
+ children: [k("button", {
1014
+ className: c("flex flex-1 items-center justify-center gap-2 rounded-md border bg-background px-4 py-2 font-medium text-sm transition-all hover:bg-muted"),
1015
+ onClick: f,
1016
+ type: "button",
1017
+ children: l ? A(O, { children: [k(i, { size: 14 }), k("span", { children: d.copied })] }) : A(O, { children: [k(a, { size: 14 }), k("span", { children: d.copyLink })] })
1018
+ }), A("button", {
1019
+ className: c("flex flex-1 items-center justify-center gap-2 rounded-md bg-primary px-4 py-2 font-medium text-primary-foreground text-sm transition-all hover:bg-primary/90"),
1020
+ onClick: p,
1021
+ type: "button",
1022
+ children: [k(o, { size: 14 }), k("span", { children: d.openLink })]
1023
+ })]
1024
+ })
1025
+ ]
1026
+ })
1027
+ }) : null;
1028
+ }, Fe = _(null), Ie = () => C(Fe), Le = () => Ie()?.code ?? null, Re = () => Ie()?.mermaid ?? null, ze = (e) => {
1029
+ var t;
1030
+ let n = Ie();
1031
+ return n != null && n.renderers && e && (t = n.renderers.find((t) => Array.isArray(t.language) ? t.language.includes(e) : t.language === e)) != null ? t : null;
1032
+ }, Be = (e, t) => new Promise((t, n) => {
1033
+ let r = "data:image/svg+xml;base64," + btoa(unescape(encodeURIComponent(e))), i = new Image();
1034
+ i.crossOrigin = "anonymous", i.onload = () => {
1035
+ let e = document.createElement("canvas"), r = i.width * 5, a = i.height * 5;
1036
+ e.width = r, e.height = a;
1037
+ let o = e.getContext("2d");
1038
+ if (!o) {
1039
+ n(/* @__PURE__ */ Error("Failed to create 2D canvas context for PNG export"));
1040
+ return;
1041
+ }
1042
+ o.drawImage(i, 0, 0, r, a), e.toBlob((e) => {
1043
+ if (!e) {
1044
+ n(/* @__PURE__ */ Error("Failed to create PNG blob"));
1045
+ return;
1046
+ }
1047
+ t(e);
1048
+ }, "image/png");
1049
+ }, i.onerror = () => n(/* @__PURE__ */ Error("Failed to load SVG image")), i.src = r;
1050
+ }), Ve = ({ chart: e, children: t, className: n, onDownload: r, config: i, onError: a }) => {
1051
+ let o = U(), [s, c] = D(!1), l = E(null), { isAnimating: u } = C($), d = Y(), f = Re(), p = X(), m = async (t) => {
1052
+ try {
1053
+ if (t === "mmd") {
1054
+ H("diagram.mmd", e, "text/plain"), c(!1), r?.(t);
1055
+ return;
1056
+ }
1057
+ if (!f) {
1058
+ a?.(/* @__PURE__ */ Error("Mermaid plugin not available"));
1059
+ return;
1060
+ }
1061
+ let n = f.getMermaid(i), o = e.split("").reduce((e, t) => (e << 5) - e + t.charCodeAt(0) | 0, 0), s = `mermaid-${Math.abs(o)}-${Date.now()}-${Math.random().toString(36).substring(2, 9)}`, { svg: l } = await n.render(s, e);
1062
+ if (!l) {
1063
+ a?.(/* @__PURE__ */ Error("SVG not found. Please wait for the diagram to render."));
1064
+ return;
1065
+ }
1066
+ if (t === "svg") {
1067
+ H("diagram.svg", l, "image/svg+xml"), c(!1), r?.(t);
1068
+ return;
1069
+ }
1070
+ if (t === "png") {
1071
+ H("diagram.png", await Be(l), "image/png"), r?.(t), c(!1);
1072
+ return;
1073
+ }
1074
+ } catch (e) {
1075
+ a?.(e);
1076
+ }
1077
+ };
1078
+ return w(() => {
1079
+ let e = (e) => {
1080
+ let t = e.composedPath();
1081
+ l.current && !t.includes(l.current) && c(!1);
1082
+ };
1083
+ return document.addEventListener("mousedown", e), () => {
1084
+ document.removeEventListener("mousedown", e);
1085
+ };
1086
+ }, []), A("div", {
1087
+ className: o("relative"),
1088
+ ref: l,
1089
+ children: [k("button", {
1090
+ className: o("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50", n),
1091
+ disabled: u,
1092
+ onClick: () => c(!s),
1093
+ title: p.downloadDiagram,
1094
+ type: "button",
1095
+ children: t ?? k(d.DownloadIcon, { size: 14 })
1096
+ }), s ? A("div", {
1097
+ className: o("absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg"),
1098
+ children: [
1099
+ k("button", {
1100
+ className: o("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),
1101
+ onClick: () => m("svg"),
1102
+ title: p.downloadDiagramAsSvg,
1103
+ type: "button",
1104
+ children: p.mermaidFormatSvg
1105
+ }),
1106
+ k("button", {
1107
+ className: o("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),
1108
+ onClick: () => m("png"),
1109
+ title: p.downloadDiagramAsPng,
1110
+ type: "button",
1111
+ children: p.mermaidFormatPng
1112
+ }),
1113
+ k("button", {
1114
+ className: o("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),
1115
+ onClick: () => m("mmd"),
1116
+ title: p.downloadDiagramAsMmd,
1117
+ type: "button",
1118
+ children: p.mermaidFormatMmd
1119
+ })
1120
+ ]
1121
+ }) : null]
1122
+ });
1123
+ }, He = ({ chart: e, config: t, onFullscreen: n, onExit: r, className: i, ...a }) => {
1124
+ let { Maximize2Icon: o, XIcon: s } = Y(), c = U(), [l, u] = D(!1), { isAnimating: d, controls: f } = C($), p = X(), m = (() => {
1125
+ if (typeof f == "boolean") return f;
1126
+ let e = f.mermaid;
1127
+ return e === !1 ? !1 : e === !0 || e === void 0 ? !0 : e.panZoom !== !1;
1128
+ })(), h = () => {
1129
+ u(!l);
1130
+ };
1131
+ return w(() => {
1132
+ if (l) {
1133
+ Me();
1134
+ let e = (e) => {
1135
+ e.key === "Escape" && u(!1);
1136
+ };
1137
+ return document.addEventListener("keydown", e), () => {
1138
+ document.removeEventListener("keydown", e), Ne();
1139
+ };
1140
+ }
1141
+ }, [l]), w(() => {
1142
+ l ? n?.() : r && r();
1143
+ }, [
1144
+ l,
1145
+ n,
1146
+ r
1147
+ ]), A(O, { children: [k("button", {
1148
+ className: c("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50", i),
1149
+ disabled: d,
1150
+ onClick: h,
1151
+ title: p.viewFullscreen,
1152
+ type: "button",
1153
+ ...a,
1154
+ children: k(o, { size: 14 })
1155
+ }), l ? N(A("div", {
1156
+ className: c("fixed inset-0 z-50 flex items-center justify-center bg-background/95 backdrop-blur-sm"),
1157
+ onClick: h,
1158
+ onKeyDown: (e) => {
1159
+ e.key === "Escape" && h();
1160
+ },
1161
+ role: "button",
1162
+ tabIndex: 0,
1163
+ children: [k("button", {
1164
+ className: c("absolute top-4 right-4 z-10 rounded-md p-2 text-muted-foreground transition-all hover:bg-muted hover:text-foreground"),
1165
+ onClick: h,
1166
+ title: p.exitFullscreen,
1167
+ type: "button",
1168
+ children: k(s, { size: 20 })
1169
+ }), k("div", {
1170
+ className: c("flex size-full items-center justify-center p-4"),
1171
+ onClick: (e) => e.stopPropagation(),
1172
+ onKeyDown: (e) => e.stopPropagation(),
1173
+ role: "presentation",
1174
+ children: k(Pn, {
1175
+ chart: e,
1176
+ className: c("size-full [&_svg]:h-auto [&_svg]:w-auto"),
1177
+ config: t,
1178
+ fullscreen: !0,
1179
+ showControls: m
1180
+ })
1181
+ })]
1182
+ }), document.body) : null] });
1183
+ }, Ue = (e) => {
1184
+ let t = [], n = [], r = e.querySelectorAll("thead th");
1185
+ for (let e of r) t.push(e.textContent?.trim() || "");
1186
+ let i = e.querySelectorAll("tbody tr");
1187
+ for (let e of i) {
1188
+ let t = [], r = e.querySelectorAll("td");
1189
+ for (let e of r) t.push(e.textContent?.trim() || "");
1190
+ n.push(t);
1191
+ }
1192
+ return {
1193
+ headers: t,
1194
+ rows: n
1195
+ };
1196
+ }, We = (e) => {
1197
+ let { headers: t, rows: n } = e, r = (e) => {
1198
+ let t = !1, n = !1;
1199
+ for (let r of e) {
1200
+ if (r === "\"") {
1201
+ t = !0, n = !0;
1202
+ break;
1203
+ }
1204
+ (r === "," || r === "\n") && (t = !0);
1205
+ }
1206
+ return t ? n ? `"${e.replace(/"/g, "\"\"")}"` : `"${e}"` : e;
1207
+ }, i = t.length > 0 ? n.length + 1 : n.length, a = Array(i), o = 0;
1208
+ t.length > 0 && (a[o] = t.map(r).join(","), o += 1);
1209
+ for (let e of n) a[o] = e.map(r).join(","), o += 1;
1210
+ return a.join("\n");
1211
+ }, Ge = (e) => {
1212
+ let { headers: t, rows: n } = e, r = (e) => {
1213
+ let t = !1;
1214
+ for (let n of e) if (n === " " || n === "\n" || n === "\r") {
1215
+ t = !0;
1216
+ break;
1217
+ }
1218
+ if (!t) return e;
1219
+ let n = [];
1220
+ for (let t of e) t === " " ? n.push("\\t") : t === "\n" ? n.push("\\n") : t === "\r" ? n.push("\\r") : n.push(t);
1221
+ return n.join("");
1222
+ }, i = t.length > 0 ? n.length + 1 : n.length, a = Array(i), o = 0;
1223
+ t.length > 0 && (a[o] = t.map(r).join(" "), o += 1);
1224
+ for (let e of n) a[o] = e.map(r).join(" "), o += 1;
1225
+ return a.join("\n");
1226
+ }, Ke = (e) => {
1227
+ let t = !1;
1228
+ for (let n of e) if (n === "\\" || n === "|") {
1229
+ t = !0;
1230
+ break;
1231
+ }
1232
+ if (!t) return e;
1233
+ let n = [];
1234
+ for (let t of e) t === "\\" ? n.push("\\\\") : t === "|" ? n.push("\\|") : n.push(t);
1235
+ return n.join("");
1236
+ }, qe = (e) => {
1237
+ let { headers: t, rows: n } = e;
1238
+ if (t.length === 0) return "";
1239
+ let r = Array(n.length + 2), i = 0;
1240
+ r[i] = `| ${t.map((e) => Ke(e)).join(" | ")} |`, i += 1;
1241
+ let a = Array(t.length);
1242
+ for (let e = 0; e < t.length; e += 1) a[e] = "---";
1243
+ r[i] = `| ${a.join(" | ")} |`, i += 1;
1244
+ for (let e of n) if (e.length < t.length) {
1245
+ let n = Array(t.length);
1246
+ for (let r = 0; r < t.length; r += 1) n[r] = r < e.length ? Ke(e[r]) : "";
1247
+ r[i] = `| ${n.join(" | ")} |`, i += 1;
1248
+ } else r[i] = `| ${e.map((e) => Ke(e)).join(" | ")} |`, i += 1;
1249
+ return r.join("\n");
1250
+ }, Je = ({ children: e, className: t, onCopy: n, onError: r, timeout: i = 2e3 }) => {
1251
+ let a = U(), [o, s] = D(!1), [c, l] = D(!1), u = E(null), d = E(0), { isAnimating: f } = C($), p = X(), m = async (e) => {
1252
+ var t;
1253
+ if (typeof window > "u" || !((t = navigator == null ? void 0 : navigator.clipboard) != null && t.write)) {
1254
+ r?.(/* @__PURE__ */ Error("Clipboard API not available"));
1255
+ return;
1256
+ }
1257
+ try {
1258
+ let t = (u.current?.closest("[data-streamdown=\"table-wrapper\"]"))?.querySelector("table");
1259
+ if (!t) {
1260
+ r?.(/* @__PURE__ */ Error("Table not found"));
1261
+ return;
1262
+ }
1263
+ let a = Ue(t), o = ({
1264
+ csv: We,
1265
+ tsv: Ge,
1266
+ md: qe
1267
+ }[e] || qe)(a), c = new ClipboardItem({
1268
+ "text/plain": new Blob([o], { type: "text/plain" }),
1269
+ "text/html": new Blob([t.outerHTML], { type: "text/html" })
1270
+ });
1271
+ await navigator.clipboard.write([c]), l(!0), s(!1), n?.(e), d.current = window.setTimeout(() => l(!1), i);
1272
+ } catch (e) {
1273
+ r?.(e);
1274
+ }
1275
+ };
1276
+ w(() => {
1277
+ let e = (e) => {
1278
+ let t = e.composedPath();
1279
+ u.current && !t.includes(u.current) && s(!1);
1280
+ };
1281
+ return document.addEventListener("mousedown", e), () => {
1282
+ document.removeEventListener("mousedown", e), window.clearTimeout(d.current);
1283
+ };
1284
+ }, []);
1285
+ let h = Y(), g = c ? h.CheckIcon : h.CopyIcon;
1286
+ return A("div", {
1287
+ className: a("relative"),
1288
+ ref: u,
1289
+ children: [k("button", {
1290
+ className: a("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50", t),
1291
+ disabled: f,
1292
+ onClick: () => s(!o),
1293
+ title: p.copyTable,
1294
+ type: "button",
1295
+ children: e ?? k(g, {
1296
+ height: 14,
1297
+ width: 14
1298
+ })
1299
+ }), o ? A("div", {
1300
+ className: a("absolute top-full right-0 z-20 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg"),
1301
+ children: [
1302
+ k("button", {
1303
+ className: a("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),
1304
+ onClick: () => m("md"),
1305
+ title: p.copyTableAsMarkdown,
1306
+ type: "button",
1307
+ children: p.tableFormatMarkdown
1308
+ }),
1309
+ k("button", {
1310
+ className: a("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),
1311
+ onClick: () => m("csv"),
1312
+ title: p.copyTableAsCsv,
1313
+ type: "button",
1314
+ children: p.tableFormatCsv
1315
+ }),
1316
+ k("button", {
1317
+ className: a("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),
1318
+ onClick: () => m("tsv"),
1319
+ title: p.copyTableAsTsv,
1320
+ type: "button",
1321
+ children: p.tableFormatTsv
1322
+ })
1323
+ ]
1324
+ }) : null]
1325
+ });
1326
+ }, Ye = ({ children: e, className: t, onDownload: n, onError: r }) => {
1327
+ let i = U(), [a, o] = D(!1), s = E(null), { isAnimating: c } = C($), l = X(), u = Y(), d = (e) => {
1328
+ try {
1329
+ let t = (s.current?.closest("[data-streamdown=\"table-wrapper\"]"))?.querySelector("table");
1330
+ if (!t) {
1331
+ r?.(/* @__PURE__ */ Error("Table not found"));
1332
+ return;
1333
+ }
1334
+ let i = Ue(t), a = e === "csv" ? We(i) : qe(i);
1335
+ H(`table.${e === "csv" ? "csv" : "md"}`, a, e === "csv" ? "text/csv" : "text/markdown"), o(!1), n?.(e);
1336
+ } catch (e) {
1337
+ r?.(e);
1338
+ }
1339
+ };
1340
+ return w(() => {
1341
+ let e = (e) => {
1342
+ let t = e.composedPath();
1343
+ s.current && !t.includes(s.current) && o(!1);
1344
+ };
1345
+ return document.addEventListener("mousedown", e), () => {
1346
+ document.removeEventListener("mousedown", e);
1347
+ };
1348
+ }, []), A("div", {
1349
+ className: i("relative"),
1350
+ ref: s,
1351
+ children: [k("button", {
1352
+ className: i("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50", t),
1353
+ disabled: c,
1354
+ onClick: () => o(!a),
1355
+ title: l.downloadTable,
1356
+ type: "button",
1357
+ children: e ?? k(u.DownloadIcon, { size: 14 })
1358
+ }), a ? A("div", {
1359
+ className: i("absolute top-full right-0 z-20 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg"),
1360
+ children: [k("button", {
1361
+ className: i("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),
1362
+ onClick: () => d("csv"),
1363
+ title: l.downloadTableAsCsv,
1364
+ type: "button",
1365
+ children: l.tableFormatCsv
1366
+ }), k("button", {
1367
+ className: i("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),
1368
+ onClick: () => d("markdown"),
1369
+ title: l.downloadTableAsMarkdown,
1370
+ type: "button",
1371
+ children: l.tableFormatMarkdown
1372
+ })]
1373
+ }) : null]
1374
+ });
1375
+ }, Xe = ({ children: e, className: t, showCopy: n = !0, showDownload: r = !0 }) => {
1376
+ let { Maximize2Icon: i, XIcon: a } = Y(), o = U(), [s, c] = D(!1), { isAnimating: l } = C($), u = X(), d = () => {
1377
+ c(!0);
1378
+ }, f = () => {
1379
+ c(!1);
1380
+ };
1381
+ return w(() => {
1382
+ if (s) {
1383
+ Me();
1384
+ let e = (e) => {
1385
+ e.key === "Escape" && c(!1);
1386
+ };
1387
+ return document.addEventListener("keydown", e), () => {
1388
+ document.removeEventListener("keydown", e), Ne();
1389
+ };
1390
+ }
1391
+ }, [s]), A(O, { children: [k("button", {
1392
+ className: o("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50", t),
1393
+ disabled: l,
1394
+ onClick: d,
1395
+ title: u.viewFullscreen,
1396
+ type: "button",
1397
+ children: k(i, { size: 14 })
1398
+ }), s ? N(k("div", {
1399
+ "aria-label": u.viewFullscreen,
1400
+ "aria-modal": "true",
1401
+ className: o("fixed inset-0 z-50 flex flex-col bg-background"),
1402
+ "data-streamdown": "table-fullscreen",
1403
+ onClick: f,
1404
+ onKeyDown: (e) => {
1405
+ e.key === "Escape" && f();
1406
+ },
1407
+ role: "dialog",
1408
+ children: A("div", {
1409
+ className: o("flex h-full flex-col"),
1410
+ onClick: (e) => e.stopPropagation(),
1411
+ onKeyDown: (e) => e.stopPropagation(),
1412
+ role: "presentation",
1413
+ children: [A("div", {
1414
+ className: o("flex items-center justify-end gap-1 p-4"),
1415
+ children: [
1416
+ n ? k(Je, {}) : null,
1417
+ r ? k(Ye, {}) : null,
1418
+ k("button", {
1419
+ className: o("rounded-md p-1 text-muted-foreground transition-all hover:bg-muted hover:text-foreground"),
1420
+ onClick: f,
1421
+ title: u.exitFullscreen,
1422
+ type: "button",
1423
+ children: k(a, { size: 20 })
1424
+ })
1425
+ ]
1426
+ }), k("div", {
1427
+ className: o("flex-1 overflow-auto p-4 pt-0 [&_thead]:sticky [&_thead]:top-0 [&_thead]:z-10"),
1428
+ children: k("table", {
1429
+ className: o("w-full border-collapse border border-border"),
1430
+ "data-streamdown": "table",
1431
+ children: e
1432
+ })
1433
+ })]
1434
+ })
1435
+ }), document.body) : null] });
1436
+ }, Ze = ({ children: e, className: t, showControls: n, showCopy: r = !0, showDownload: i = !0, showFullscreen: a = !0, ...o }) => {
1437
+ let s = U(), c = n && r, l = n && i, u = n && a, d = c || l || u;
1438
+ return A("div", {
1439
+ className: s("my-4 flex flex-col gap-2 rounded-lg border border-border bg-sidebar p-2"),
1440
+ "data-streamdown": "table-wrapper",
1441
+ children: [d ? A("div", {
1442
+ className: s("flex items-center justify-end gap-1"),
1443
+ children: [
1444
+ c ? k(Je, {}) : null,
1445
+ l ? k(Ye, {}) : null,
1446
+ u ? k(Xe, {
1447
+ showCopy: c,
1448
+ showDownload: l,
1449
+ children: e
1450
+ }) : null
1451
+ ]
1452
+ }) : null, k("div", {
1453
+ className: s("border-collapse overflow-x-auto overflow-y-auto rounded-md border border-border bg-background"),
1454
+ children: k("table", {
1455
+ className: s("w-full divide-y divide-border", t),
1456
+ "data-streamdown": "table",
1457
+ ...o,
1458
+ children: e
1459
+ })
1460
+ })]
1461
+ });
1462
+ }, Qe = /startLine=(\d+)/, $e = /\bnoLineNumbers\b/, et = b(() => import("./mermaid-GHXKKRXX.js").then((e) => ({ default: e.Mermaid }))), tt = /language-([^\s]+)/;
1463
+ function nt(e, t) {
1464
+ if (!(e != null && e.position || t != null && t.position)) return !0;
1465
+ if (!(e != null && e.position && t != null && t.position)) return !1;
1466
+ let n = e.position.start, r = t.position.start, i = e.position.end, a = t.position.end;
1467
+ return n?.line === r?.line && n?.column === r?.column && i?.line === a?.line && i?.column === a?.column;
1468
+ }
1469
+ function Q(e, t) {
1470
+ return e.className === t.className && nt(e.node, t.node);
1471
+ }
1472
+ var rt = (e, t) => typeof e == "boolean" ? e : e[t] !== !1, it = (e, t) => {
1473
+ if (typeof e == "boolean") return e;
1474
+ let n = e.table;
1475
+ return n === !1 ? !1 : n === !0 || n === void 0 ? !0 : n[t] !== !1;
1476
+ }, at = (e, t) => {
1477
+ if (typeof e == "boolean") return e;
1478
+ let n = e.code;
1479
+ return n === !1 ? !1 : n === !0 || n === void 0 ? !0 : n[t] !== !1;
1480
+ }, ot = (e, t) => {
1481
+ if (typeof e == "boolean") return e;
1482
+ let n = e.mermaid;
1483
+ return n === !1 ? !1 : n === !0 || n === void 0 ? !0 : n[t] !== !1;
1484
+ }, st = x(({ children: e, className: t, node: n, ...r }) => k("ol", {
1485
+ className: U()("list-inside list-decimal whitespace-normal [li_&]:pl-6", t),
1486
+ "data-streamdown": "ordered-list",
1487
+ ...r,
1488
+ children: e
1489
+ }), (e, t) => Q(e, t));
1490
+ st.displayName = "MarkdownOl";
1491
+ var ct = x(({ children: e, className: t, node: n, ...r }) => k("li", {
1492
+ className: U()("py-1 [&>p]:inline", t),
1493
+ "data-streamdown": "list-item",
1494
+ ...r,
1495
+ children: e
1496
+ }), (e, t) => e.className === t.className && nt(e.node, t.node));
1497
+ ct.displayName = "MarkdownLi";
1498
+ var lt = x(({ children: e, className: t, node: n, ...r }) => k("ul", {
1499
+ className: U()("list-inside list-disc whitespace-normal [li_&]:pl-6", t),
1500
+ "data-streamdown": "unordered-list",
1501
+ ...r,
1502
+ children: e
1503
+ }), (e, t) => Q(e, t));
1504
+ lt.displayName = "MarkdownUl";
1505
+ var ut = x(({ className: e, node: t, ...n }) => k("hr", {
1506
+ className: U()("my-6 border-border", e),
1507
+ "data-streamdown": "horizontal-rule",
1508
+ ...n
1509
+ }), (e, t) => Q(e, t));
1510
+ ut.displayName = "MarkdownHr";
1511
+ var dt = x(({ children: e, className: t, node: n, ...r }) => k("span", {
1512
+ className: U()("font-semibold", t),
1513
+ "data-streamdown": "strong",
1514
+ ...r,
1515
+ children: e
1516
+ }), (e, t) => Q(e, t));
1517
+ dt.displayName = "MarkdownStrong";
1518
+ var ft = x(({ children: e, className: t, href: n, node: r, ...i }) => {
1519
+ let a = U(), { linkSafety: o } = C($), [s, c] = D(!1), l = n === "streamdown:incomplete-link", u = S(async (e) => {
1520
+ if (!(!(o != null && o.enabled && n) || l)) {
1521
+ if (e.preventDefault(), o.onLinkCheck && await o.onLinkCheck(n)) {
1522
+ window.open(n, "_blank", "noreferrer");
1523
+ return;
1524
+ }
1525
+ c(!0);
1526
+ }
1527
+ }, [
1528
+ o,
1529
+ n,
1530
+ l
1531
+ ]), d = S(() => {
1532
+ n && window.open(n, "_blank", "noreferrer");
1533
+ }, [n]), f = S(() => {
1534
+ c(!1);
1535
+ }, []), p = {
1536
+ url: n ?? "",
1537
+ isOpen: s,
1538
+ onClose: f,
1539
+ onConfirm: d
1540
+ };
1541
+ return o != null && o.enabled && n ? A(O, { children: [k("button", {
1542
+ className: a("wrap-anywhere appearance-none text-left font-medium text-primary underline", t),
1543
+ "data-incomplete": l,
1544
+ "data-streamdown": "link",
1545
+ onClick: u,
1546
+ type: "button",
1547
+ children: e
1548
+ }), o.renderModal ? o.renderModal(p) : k(Pe, { ...p })] }) : k("a", {
1549
+ className: a("wrap-anywhere font-medium text-primary underline", t),
1550
+ "data-incomplete": l,
1551
+ "data-streamdown": "link",
1552
+ href: n,
1553
+ rel: "noreferrer",
1554
+ target: "_blank",
1555
+ ...i,
1556
+ children: e
1557
+ });
1558
+ }, (e, t) => Q(e, t) && e.href === t.href);
1559
+ ft.displayName = "MarkdownA";
1560
+ var pt = x(({ children: e, className: t, node: n, ...r }) => k("h1", {
1561
+ className: U()("mt-6 mb-2 font-semibold text-3xl", t),
1562
+ "data-streamdown": "heading-1",
1563
+ ...r,
1564
+ children: e
1565
+ }), (e, t) => Q(e, t));
1566
+ pt.displayName = "MarkdownH1";
1567
+ var mt = x(({ children: e, className: t, node: n, ...r }) => k("h2", {
1568
+ className: U()("mt-6 mb-2 font-semibold text-2xl", t),
1569
+ "data-streamdown": "heading-2",
1570
+ ...r,
1571
+ children: e
1572
+ }), (e, t) => Q(e, t));
1573
+ mt.displayName = "MarkdownH2";
1574
+ var ht = x(({ children: e, className: t, node: n, ...r }) => k("h3", {
1575
+ className: U()("mt-6 mb-2 font-semibold text-xl", t),
1576
+ "data-streamdown": "heading-3",
1577
+ ...r,
1578
+ children: e
1579
+ }), (e, t) => Q(e, t));
1580
+ ht.displayName = "MarkdownH3";
1581
+ var gt = x(({ children: e, className: t, node: n, ...r }) => k("h4", {
1582
+ className: U()("mt-6 mb-2 font-semibold text-lg", t),
1583
+ "data-streamdown": "heading-4",
1584
+ ...r,
1585
+ children: e
1586
+ }), (e, t) => Q(e, t));
1587
+ gt.displayName = "MarkdownH4";
1588
+ var _t = x(({ children: e, className: t, node: n, ...r }) => k("h5", {
1589
+ className: U()("mt-6 mb-2 font-semibold text-base", t),
1590
+ "data-streamdown": "heading-5",
1591
+ ...r,
1592
+ children: e
1593
+ }), (e, t) => Q(e, t));
1594
+ _t.displayName = "MarkdownH5";
1595
+ var vt = x(({ children: e, className: t, node: n, ...r }) => k("h6", {
1596
+ className: U()("mt-6 mb-2 font-semibold text-sm", t),
1597
+ "data-streamdown": "heading-6",
1598
+ ...r,
1599
+ children: e
1600
+ }), (e, t) => Q(e, t));
1601
+ vt.displayName = "MarkdownH6";
1602
+ var yt = x(({ children: e, className: t, node: n, ...r }) => {
1603
+ let { controls: i } = C($);
1604
+ return k(Ze, {
1605
+ className: t,
1606
+ showControls: rt(i, "table"),
1607
+ showCopy: it(i, "copy"),
1608
+ showDownload: it(i, "download"),
1609
+ showFullscreen: it(i, "fullscreen"),
1610
+ ...r,
1611
+ children: e
1612
+ });
1613
+ }, (e, t) => Q(e, t));
1614
+ yt.displayName = "MarkdownTable";
1615
+ var bt = x(({ children: e, className: t, node: n, ...r }) => k("thead", {
1616
+ className: U()("bg-muted/80", t),
1617
+ "data-streamdown": "table-header",
1618
+ ...r,
1619
+ children: e
1620
+ }), (e, t) => Q(e, t));
1621
+ bt.displayName = "MarkdownThead";
1622
+ var xt = x(({ children: e, className: t, node: n, ...r }) => k("tbody", {
1623
+ className: U()("divide-y divide-border", t),
1624
+ "data-streamdown": "table-body",
1625
+ ...r,
1626
+ children: e
1627
+ }), (e, t) => Q(e, t));
1628
+ xt.displayName = "MarkdownTbody";
1629
+ var St = x(({ children: e, className: t, node: n, ...r }) => k("tr", {
1630
+ className: U()("border-border", t),
1631
+ "data-streamdown": "table-row",
1632
+ ...r,
1633
+ children: e
1634
+ }), (e, t) => Q(e, t));
1635
+ St.displayName = "MarkdownTr";
1636
+ var Ct = x(({ children: e, className: t, node: n, ...r }) => k("th", {
1637
+ className: U()("whitespace-nowrap px-4 py-2 text-left font-semibold text-sm", t),
1638
+ "data-streamdown": "table-header-cell",
1639
+ ...r,
1640
+ children: e
1641
+ }), (e, t) => Q(e, t));
1642
+ Ct.displayName = "MarkdownTh";
1643
+ var wt = x(({ children: e, className: t, node: n, ...r }) => k("td", {
1644
+ className: U()("px-4 py-2 text-sm", t),
1645
+ "data-streamdown": "table-cell",
1646
+ ...r,
1647
+ children: e
1648
+ }), (e, t) => Q(e, t));
1649
+ wt.displayName = "MarkdownTd";
1650
+ var Tt = x(({ children: e, className: t, node: n, ...r }) => k("blockquote", {
1651
+ className: U()("my-4 border-muted-foreground/30 border-l-4 pl-4 text-muted-foreground italic", t),
1652
+ "data-streamdown": "blockquote",
1653
+ ...r,
1654
+ children: e
1655
+ }), (e, t) => Q(e, t));
1656
+ Tt.displayName = "MarkdownBlockquote";
1657
+ var Et = x(({ children: e, className: t, node: n, ...r }) => k("sup", {
1658
+ className: U()("text-sm", t),
1659
+ "data-streamdown": "superscript",
1660
+ ...r,
1661
+ children: e
1662
+ }), (e, t) => Q(e, t));
1663
+ Et.displayName = "MarkdownSup";
1664
+ var Dt = x(({ children: e, className: t, node: n, ...r }) => k("sub", {
1665
+ className: U()("text-sm", t),
1666
+ "data-streamdown": "subscript",
1667
+ ...r,
1668
+ children: e
1669
+ }), (e, t) => Q(e, t));
1670
+ Dt.displayName = "MarkdownSub";
1671
+ var Ot = x(({ children: e, className: t, node: n, ...r }) => {
1672
+ if ("data-footnotes" in r) {
1673
+ let n = (e) => {
1674
+ if (!y(e)) return !1;
1675
+ let t = Array.isArray(e.props.children) ? e.props.children : [e.props.children], n = !1, r = !1;
1676
+ for (let e of t) if (e) {
1677
+ if (typeof e == "string") e.trim() !== "" && (n = !0);
1678
+ else if (y(e)) if (e.props?.["data-footnote-backref"] !== void 0) r = !0;
1679
+ else {
1680
+ let t = Array.isArray(e.props.children) ? e.props.children : [e.props.children];
1681
+ for (let e of t) {
1682
+ if (typeof e == "string" && e.trim() !== "") {
1683
+ n = !0;
1684
+ break;
1685
+ }
1686
+ if (y(e) && e.props?.["data-footnote-backref"] === void 0) {
1687
+ n = !0;
1688
+ break;
1689
+ }
1690
+ }
1691
+ }
1692
+ }
1693
+ return r && !n;
1694
+ }, i = Array.isArray(e) ? e.map((e) => {
1695
+ if (!y(e)) return e;
1696
+ if (e.type === st) {
1697
+ let t = (Array.isArray(e.props.children) ? e.props.children : [e.props.children]).filter((e) => !n(e));
1698
+ return t.length === 0 ? null : {
1699
+ ...e,
1700
+ props: {
1701
+ ...e.props,
1702
+ children: t
1703
+ }
1704
+ };
1705
+ }
1706
+ return e;
1707
+ }) : e;
1708
+ return (Array.isArray(i) ? i.some((e) => e !== null) : i !== null) ? k("section", {
1709
+ className: t,
1710
+ ...r,
1711
+ children: i
1712
+ }) : null;
1713
+ }
1714
+ return k("section", {
1715
+ className: t,
1716
+ ...r,
1717
+ children: e
1718
+ });
1719
+ }, (e, t) => Q(e, t));
1720
+ Ot.displayName = "MarkdownSection";
1721
+ var kt = x(({ node: e, className: t, children: n, ...r }) => {
1722
+ let i = U(), a = !("data-block" in r), { mermaid: o, controls: s, lineNumbers: c } = C($), l = Re(), u = de(), d = (t?.match(tt))?.at(1) ?? "", f = ze(d);
1723
+ if (a) return k("code", {
1724
+ className: i("rounded bg-muted px-1.5 py-0.5 font-mono text-sm", t),
1725
+ "data-streamdown": "inline-code",
1726
+ ...r,
1727
+ children: n
1728
+ });
1729
+ let p = e?.properties?.metastring, m = p?.match(Qe), g = m ? Number.parseInt(m[1], 10) : void 0, _ = g !== void 0 && g >= 1 ? g : void 0, v = !(p && $e.test(p)) && c !== !1, b = "";
1730
+ if (y(n) && n.props && typeof n.props == "object" && "children" in n.props && typeof n.props.children == "string" ? b = n.props.children : typeof n == "string" && (b = n), f) {
1731
+ let e = f.component;
1732
+ return k(h, {
1733
+ fallback: k(ke, {}),
1734
+ children: k(e, {
1735
+ code: b,
1736
+ isIncomplete: u,
1737
+ language: d,
1738
+ meta: p
1739
+ })
1740
+ });
1741
+ }
1742
+ if (d === "mermaid" && l) {
1743
+ let e = rt(s, "mermaid"), n = ot(s, "download"), r = ot(s, "copy"), a = ot(s, "fullscreen"), c = ot(s, "panZoom"), l = e && (n || r || a);
1744
+ return k(h, {
1745
+ fallback: k(ke, {}),
1746
+ children: A("div", {
1747
+ className: i("group relative my-4 flex w-full flex-col gap-2 rounded-xl border border-border bg-sidebar p-2", t),
1748
+ "data-streamdown": "mermaid-block",
1749
+ children: [
1750
+ k("div", {
1751
+ className: i("flex h-8 items-center text-muted-foreground text-xs"),
1752
+ children: k("span", {
1753
+ className: i("ml-1 font-mono lowercase"),
1754
+ children: "mermaid"
1755
+ })
1756
+ }),
1757
+ l ? k("div", {
1758
+ className: i("pointer-events-none sticky top-2 z-10 -mt-10 flex h-8 items-center justify-end"),
1759
+ children: A("div", {
1760
+ className: i("pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur"),
1761
+ "data-streamdown": "mermaid-block-actions",
1762
+ children: [
1763
+ n ? k(Ve, {
1764
+ chart: b,
1765
+ config: o?.config
1766
+ }) : null,
1767
+ r ? k(Ee, { code: b }) : null,
1768
+ a ? k(He, {
1769
+ chart: b,
1770
+ config: o?.config
1771
+ }) : null
1772
+ ]
1773
+ })
1774
+ }) : null,
1775
+ k("div", {
1776
+ className: i("rounded-md border border-border bg-background"),
1777
+ children: k(et, {
1778
+ chart: b,
1779
+ config: o?.config,
1780
+ showControls: c
1781
+ })
1782
+ })
1783
+ ]
1784
+ })
1785
+ });
1786
+ }
1787
+ let x = rt(s, "code"), S = at(s, "download"), w = at(s, "copy");
1788
+ return k(be, {
1789
+ className: t,
1790
+ code: b,
1791
+ isIncomplete: u,
1792
+ language: d,
1793
+ lineNumbers: v,
1794
+ startLine: _,
1795
+ children: x ? A(O, { children: [S ? k(Oe, {
1796
+ code: b,
1797
+ language: d
1798
+ }) : null, w ? k(Ee, {}) : null] }) : null
1799
+ });
1800
+ }, (e, t) => e.className === t.className && nt(e.node, t.node));
1801
+ kt.displayName = "MarkdownCode";
1802
+ var At = x(je, (e, t) => e.className === t.className && nt(e.node, t.node));
1803
+ At.displayName = "MarkdownImg";
1804
+ var jt = x(({ children: e, node: t, ...n }) => {
1805
+ let r = (Array.isArray(e) ? e : [e]).filter((e) => e != null && e !== "");
1806
+ if (r.length === 1 && y(r[0])) {
1807
+ let t = r[0].props.node?.tagName;
1808
+ if (t === "img" || t === "code" && "data-block" in r[0].props) return k(O, { children: e });
1809
+ }
1810
+ return k("p", {
1811
+ ...n,
1812
+ children: e
1813
+ });
1814
+ }, (e, t) => Q(e, t));
1815
+ jt.displayName = "MarkdownParagraph";
1816
+ var Mt = {
1817
+ ol: st,
1818
+ li: ct,
1819
+ ul: lt,
1820
+ hr: ut,
1821
+ strong: dt,
1822
+ a: ft,
1823
+ h1: pt,
1824
+ h2: mt,
1825
+ h3: ht,
1826
+ h4: gt,
1827
+ h5: _t,
1828
+ h6: vt,
1829
+ table: yt,
1830
+ thead: bt,
1831
+ tbody: xt,
1832
+ tr: St,
1833
+ th: Ct,
1834
+ td: wt,
1835
+ blockquote: Tt,
1836
+ code: kt,
1837
+ img: At,
1838
+ pre: ({ children: e }) => y(e) ? g(e, { "data-block": "true" }) : e,
1839
+ sup: Et,
1840
+ sub: Dt,
1841
+ p: jt,
1842
+ section: Ot
1843
+ }, Nt = /[\u0590-\u08FF\uFB1D-\uFDFF\uFE70-\uFEFF]/, Pt = /\p{L}/u;
1844
+ function Ft(e) {
1845
+ let t = e.replace(/^#{1,6}\s+/gm, "").replace(/(\*{1,3}|_{1,3})/g, "").replace(/`[^`]*`/g, "").replace(/\[([^\]]*)\]\([^)]*\)/g, "$1").replace(/^[\s>*\-+\d.]+/gm, "");
1846
+ for (let e of t) {
1847
+ if (Nt.test(e)) return "rtl";
1848
+ if (Pt.test(e)) return "ltr";
1849
+ }
1850
+ return "ltr";
1851
+ }
1852
+ var It = /^[ \t]{0,3}(`{3,}|~{3,})/, Lt = /^\|?[ \t]*:?-{1,}:?[ \t]*(\|[ \t]*:?-{1,}:?[ \t]*)*\|?$/, Rt = (e) => {
1853
+ let t = e.split("\n"), n = null, r = 0;
1854
+ for (let e of t) {
1855
+ let t = It.exec(e);
1856
+ if (n === null) {
1857
+ if (t) {
1858
+ let e = t[1];
1859
+ n = e[0], r = e.length;
1860
+ }
1861
+ } else if (t) {
1862
+ let e = t[1], i = e[0], a = e.length;
1863
+ i === n && a >= r && (n = null, r = 0);
1864
+ }
1865
+ }
1866
+ return n !== null;
1867
+ }, zt = (e) => {
1868
+ let t = e.split("\n");
1869
+ for (let e of t) {
1870
+ let t = e.trim();
1871
+ if (t.length > 0 && t.includes("|") && Lt.test(t)) return !0;
1872
+ }
1873
+ return !1;
1874
+ }, Bt = () => (e) => {
1875
+ n(e, "html", (e, t, n) => {
1876
+ !n || typeof t != "number" || (n.children[t] = {
1877
+ type: "text",
1878
+ value: e.value
1879
+ });
1880
+ });
1881
+ }, Vt = [], Ht = { allowDangerousHtml: !0 }, Ut = /* @__PURE__ */ new WeakMap(), Wt = new class {
1882
+ constructor() {
1883
+ this.cache = /* @__PURE__ */ new Map(), this.keyCache = /* @__PURE__ */ new WeakMap(), this.maxSize = 100;
1884
+ }
1885
+ generateCacheKey(e) {
1886
+ let t = this.keyCache.get(e);
1887
+ if (t) return t;
1888
+ let n = e.rehypePlugins, r = e.remarkPlugins, i = e.remarkRehypeOptions;
1889
+ if (!(n || r || i)) {
1890
+ let t = "default";
1891
+ return this.keyCache.set(e, t), t;
1892
+ }
1893
+ let a = (e) => {
1894
+ if (!e || e.length === 0) return "";
1895
+ let t = "";
1896
+ for (let n = 0; n < e.length; n += 1) {
1897
+ let r = e[n];
1898
+ if (n > 0 && (t += ","), Array.isArray(r)) {
1899
+ let [e, n] = r;
1900
+ if (typeof e == "function") {
1901
+ let n = Ut.get(e);
1902
+ n || (n = e.name, Ut.set(e, n)), t += n;
1903
+ } else t += String(e);
1904
+ t += ":", t += JSON.stringify(n);
1905
+ } else if (typeof r == "function") {
1906
+ let e = Ut.get(r);
1907
+ e || (e = r.name, Ut.set(r, e)), t += e;
1908
+ } else t += String(r);
1909
+ }
1910
+ return t;
1911
+ }, o = a(n), s = `${a(r)}::${o}::${i ? JSON.stringify(i) : ""}`;
1912
+ return this.keyCache.set(e, s), s;
1913
+ }
1914
+ get(e) {
1915
+ let t = this.generateCacheKey(e), n = this.cache.get(t);
1916
+ return n && (this.cache.delete(t), this.cache.set(t, n)), n;
1917
+ }
1918
+ set(e, t) {
1919
+ let n = this.generateCacheKey(e);
1920
+ if (this.cache.size >= this.maxSize) {
1921
+ let e = this.cache.keys().next().value;
1922
+ e && this.cache.delete(e);
1923
+ }
1924
+ this.cache.set(n, t);
1925
+ }
1926
+ clear() {
1927
+ this.cache.clear();
1928
+ }
1929
+ }(), Gt = (e) => {
1930
+ let t = Kt(e), n = e.children || "";
1931
+ return $t(t.runSync(t.parse(n), n), e);
1932
+ }, Kt = (e) => {
1933
+ let t = Wt.get(e);
1934
+ if (t) return t;
1935
+ let n = Jt(e);
1936
+ return Wt.set(e, n), n;
1937
+ }, qt = (e) => e.some((e) => Array.isArray(e) ? e[0] === a : e === a), Jt = (e) => {
1938
+ let t = e.rehypePlugins || Vt, n = e.remarkPlugins || Vt, r = qt(t) ? n : [...n, Bt], i = e.remarkRehypeOptions ? {
1939
+ ...Ht,
1940
+ ...e.remarkRehypeOptions
1941
+ } : Ht;
1942
+ return p().use(d).use(r).use(f, i).use(t);
1943
+ }, Yt = (e) => e, Xt = (e, t, n, r) => {
1944
+ n ? e.children.splice(t, 1) : e.children[t] = {
1945
+ type: "text",
1946
+ value: r
1947
+ };
1948
+ }, Zt = (e, t) => {
1949
+ for (let n in u) if (Object.hasOwn(u, n) && Object.hasOwn(e.properties, n)) {
1950
+ let r = e.properties[n], i = u[n];
1951
+ (i === null || i.includes(e.tagName)) && (e.properties[n] = t(String(r || ""), n, e) ?? void 0);
1952
+ }
1953
+ }, Qt = (e, t, n, r, i, a) => {
1954
+ let o = !1;
1955
+ return r ? o = !r.includes(e.tagName) : i && (o = i.includes(e.tagName)), !o && a && typeof t == "number" && (o = !a(e, t, n)), o;
1956
+ }, $t = (e, t) => {
1957
+ let { allowElement: r, allowedElements: i, disallowedElements: a, skipHtml: o, unwrapDisallowed: s, urlTransform: c } = t;
1958
+ if (r || i || a || o || c) {
1959
+ let t = c || Yt;
1960
+ n(e, (e, n, c) => {
1961
+ if (e.type === "raw" && c && typeof n == "number") return Xt(c, n, o, e.value), n;
1962
+ if (e.type === "element" && (Zt(e, t), Qt(e, n, c, i, a, r) && c && typeof n == "number")) return s && e.children ? c.children.splice(n, 1, ...e.children) : c.children.splice(n, 1), n;
1963
+ });
1964
+ }
1965
+ return l(e, {
1966
+ Fragment: O,
1967
+ components: t.components,
1968
+ ignoreInvalidStyle: !0,
1969
+ jsx: k,
1970
+ jsxs: A,
1971
+ passKeys: !0,
1972
+ passNode: !0
1973
+ });
1974
+ }, en = /\[\^[\w-]{1,200}\](?!:)/, tn = /\[\^[\w-]{1,200}\]:/, nn = /<(\w+)[\s>]/, rn = new Set([
1975
+ "area",
1976
+ "base",
1977
+ "br",
1978
+ "col",
1979
+ "embed",
1980
+ "hr",
1981
+ "img",
1982
+ "input",
1983
+ "link",
1984
+ "meta",
1985
+ "param",
1986
+ "source",
1987
+ "track",
1988
+ "wbr"
1989
+ ]), an = /* @__PURE__ */ new Map(), on = /* @__PURE__ */ new Map(), sn = (e) => {
1990
+ let t = e.toLowerCase(), n = an.get(t);
1991
+ if (n) return n;
1992
+ let r = RegExp(`<${t}(?=[\\s>/])[^>]*>`, "gi");
1993
+ return an.set(t, r), r;
1994
+ }, cn = (e) => {
1995
+ let t = e.toLowerCase(), n = on.get(t);
1996
+ if (n) return n;
1997
+ let r = RegExp(`</${t}(?=[\\s>])[^>]*>`, "gi");
1998
+ return on.set(t, r), r;
1999
+ }, ln = (e, t) => {
2000
+ if (rn.has(t.toLowerCase())) return 0;
2001
+ let n = e.match(sn(t));
2002
+ if (!n) return 0;
2003
+ let r = 0;
2004
+ for (let e of n) e.trimEnd().endsWith("/>") || (r += 1);
2005
+ return r;
2006
+ }, un = (e, t) => {
2007
+ let n = e.match(cn(t));
2008
+ return n ? n.length : 0;
2009
+ }, dn = (e) => {
2010
+ let t = 0;
2011
+ for (let n = 0; n < e.length - 1; n += 1) e[n] === "$" && e[n + 1] === "$" && (t += 1, n += 1);
2012
+ return t;
2013
+ }, fn = (e) => {
2014
+ let t = en.test(e), n = tn.test(e);
2015
+ if (t || n) return [e];
2016
+ let r = m.lex(e, { gfm: !0 }), i = [], a = [], o = !1;
2017
+ for (let e of r) {
2018
+ let t = e.raw, n = i.length;
2019
+ if (a.length > 0) {
2020
+ i[n - 1] += t;
2021
+ let e = a.at(-1), r = ln(t, e), o = un(t, e);
2022
+ for (let t = 0; t < r; t += 1) a.push(e);
2023
+ for (let t = 0; t < o; t += 1) a.length > 0 && a.at(-1) === e && a.pop();
2024
+ continue;
2025
+ }
2026
+ if (e.type === "html" && e.block) {
2027
+ let e = t.match(nn);
2028
+ if (e) {
2029
+ let n = e[1];
2030
+ ln(t, n) > un(t, n) && a.push(n);
2031
+ }
2032
+ }
2033
+ if (n > 0 && !o) {
2034
+ let e = i[n - 1];
2035
+ if (dn(e) % 2 == 1) {
2036
+ i[n - 1] = e + t;
2037
+ continue;
2038
+ }
2039
+ }
2040
+ i.push(t), e.type !== "space" && (o = e.type === "code");
2041
+ }
2042
+ return i;
2043
+ }, pn = (e, t) => {
2044
+ if (!t.length) return e;
2045
+ let n = e;
2046
+ for (let e of t) {
2047
+ let t = RegExp(`(<${e}(?=[\\s>/])[^>]*>)([\\s\\S]*?)(</${e}\\s*>)`, "gi");
2048
+ n = n.replace(t, (e, t, n, r) => {
2049
+ if (!n.includes("\n\n")) return t + n + r;
2050
+ let i = n.replace(/\n\n/g, "\n<!---->\n");
2051
+ return `${t}${(i.startsWith("\n") ? "" : "\n") + i + (i.endsWith("\n") ? "" : "\n")}${r}
2052
+
2053
+ `;
2054
+ });
2055
+ }
2056
+ return n;
2057
+ }, mn = /([\\`*_~[\]|])/g, hn = (e) => e.replace(mn, "\\$1"), gn = (e, t) => {
2058
+ if (!t.length) return e;
2059
+ let n = e;
2060
+ for (let e of t) {
2061
+ let t = RegExp(`(<${e}(?=[\\s>/])[^>]*>)([\\s\\S]*?)(</${e}\\s*>)`, "gi");
2062
+ n = n.replace(t, (e, t, n, r) => t + hn(n).replace(/\n\n/g, "&#10;&#10;") + r);
2063
+ }
2064
+ return n;
2065
+ }, _n = (e) => e.type === "text" ? e.value : "children" in e && Array.isArray(e.children) ? e.children.map(_n).join("") : "", vn = (e) => (t) => {
2066
+ if (!e || e.length === 0) return;
2067
+ let r = new Set(e.map((e) => e.toLowerCase()));
2068
+ n(t, "element", (e) => {
2069
+ if (r.has(e.tagName.toLowerCase())) {
2070
+ let t = _n(e);
2071
+ e.children = t ? [{
2072
+ type: "text",
2073
+ value: t
2074
+ }] : [];
2075
+ }
2076
+ });
2077
+ }, yn = () => (e) => {
2078
+ n(e, "code", (e) => {
2079
+ e.meta && (e.data = e.data ?? {}, e.data.hProperties = {
2080
+ ...e.data.hProperties ?? {},
2081
+ metastring: e.meta
2082
+ });
2083
+ });
2084
+ }, bn = /^[ \t]*<[\w!/?-]/, xn = /(^|\n)[ \t]{4,}(?=<[\w!/?-])/g, Sn = (e) => typeof e != "string" || e.length === 0 || !bn.test(e) ? e : e.replace(xn, "$1"), Cn = {
2085
+ ...o,
2086
+ protocols: {
2087
+ ...o.protocols,
2088
+ href: [...o.protocols?.href ?? [], "tel"]
2089
+ },
2090
+ attributes: {
2091
+ ...o.attributes,
2092
+ code: [...o.attributes?.code ?? [], "metastring"]
2093
+ }
2094
+ }, wn = {
2095
+ raw: a,
2096
+ sanitize: [s, Cn],
2097
+ harden: [i, {
2098
+ allowedImagePrefixes: ["*"],
2099
+ allowedLinkPrefixes: ["*"],
2100
+ allowedProtocols: ["*"],
2101
+ defaultOrigin: void 0,
2102
+ allowDataImages: !0
2103
+ }]
2104
+ }, Tn = {
2105
+ gfm: [r, {}],
2106
+ codeMeta: yn
2107
+ }, En = Object.values(wn), Dn = Object.values(Tn), On = {
2108
+ block: " ▋",
2109
+ circle: " ●"
2110
+ }, kn = ["github-light", "github-dark"], An = { enabled: !0 }, $ = _({
2111
+ shikiTheme: kn,
2112
+ controls: !0,
2113
+ isAnimating: !1,
2114
+ lineNumbers: !0,
2115
+ mode: "streaming",
2116
+ mermaid: void 0,
2117
+ linkSafety: An
2118
+ }), jn = x(({ content: e, shouldParseIncompleteMarkdown: t, shouldNormalizeHtmlIndentation: n, index: r, isIncomplete: i, dir: a, animatePlugin: o, ...s }) => {
2119
+ if (o) {
2120
+ let e = o.getLastRenderCharCount();
2121
+ o.setPrevContentLength(e);
2122
+ }
2123
+ let c = typeof e == "string" && n ? Sn(e) : e, l = k(Gt, {
2124
+ ...s,
2125
+ children: c
2126
+ });
2127
+ return k(ue.Provider, {
2128
+ value: i,
2129
+ children: a ? k("div", {
2130
+ dir: a,
2131
+ style: { display: "contents" },
2132
+ children: l
2133
+ }) : l
2134
+ });
2135
+ }, (e, t) => {
2136
+ if (e.content !== t.content || e.shouldNormalizeHtmlIndentation !== t.shouldNormalizeHtmlIndentation || e.index !== t.index || e.isIncomplete !== t.isIncomplete || e.dir !== t.dir) return !1;
2137
+ if (e.components !== t.components) {
2138
+ let n = Object.keys(e.components || {}), r = Object.keys(t.components || {});
2139
+ if (n.length !== r.length || n.some((n) => e.components?.[n] !== t.components?.[n])) return !1;
2140
+ }
2141
+ return !(e.rehypePlugins !== t.rehypePlugins || e.remarkPlugins !== t.remarkPlugins);
2142
+ });
2143
+ jn.displayName = "Block";
2144
+ var Mn = x(({ children: e, mode: t = "streaming", dir: n, parseIncompleteMarkdown: r = !0, normalizeHtmlIndentation: i = !1, components: a, rehypePlugins: o = En, remarkPlugins: l = Dn, className: u, shikiTheme: d = kn, mermaid: f, controls: p = !0, isAnimating: m = !1, animated: h, BlockComponent: g = jn, parseMarkdownIntoBlocksFn: _ = fn, caret: y, plugins: b, remend: x, linkSafety: S = An, lineNumbers: C = !0, allowedTags: O, literalTagContent: j, translations: M, icons: N, prefix: P, onAnimationStart: F, onAnimationEnd: ne, ...re }) => {
2145
+ let ie = ee(), [ae, oe] = te(), I = T(() => pe(P), [P]), se = E(null), L = E(F), ce = E(ne);
2146
+ L.current = F, ce.current = ne, w(() => {
2147
+ var e, n, r;
2148
+ if (t === "static") return;
2149
+ let i = se.current;
2150
+ if (se.current = m, i === null) {
2151
+ m && ((e = L.current) == null || e.call(L));
2152
+ return;
2153
+ }
2154
+ m && !i ? (n = L.current) == null || n.call(L) : !m && i && ((r = ce.current) == null || r.call(ce));
2155
+ }, [m, t]);
2156
+ let R = T(() => O ? Object.keys(O) : [], [O]), z = T(() => {
2157
+ if (typeof e != "string") return "";
2158
+ let n = t === "streaming" && r ? c(e, x) : e;
2159
+ return j && j.length > 0 && (n = gn(n, j)), R.length > 0 && (n = pn(n, R)), n;
2160
+ }, [
2161
+ e,
2162
+ t,
2163
+ r,
2164
+ x,
2165
+ R,
2166
+ j
2167
+ ]), B = T(() => _(z), [z, _]), [ue, de] = D(B);
2168
+ w(() => {
2169
+ t === "streaming" && !W ? oe(() => {
2170
+ de(B);
2171
+ }) : de(B);
2172
+ }, [B, t]);
2173
+ let V = t === "streaming" ? ue : B, fe = T(() => n === "auto" ? V.map(Ft) : void 0, [V, n]), H = T(() => V.map((e, t) => `${ie}-${t}`), [V.length, ie]), U = T(() => h === !0 ? "true" : h ? JSON.stringify(h) : "", [h]), W = T(() => U ? U === "true" ? le() : le(h) : null, [U]), he = T(() => ({
2174
+ shikiTheme: (b?.code)?.getThemes() ?? d,
2175
+ controls: p,
2176
+ isAnimating: m,
2177
+ lineNumbers: C,
2178
+ mode: t,
2179
+ mermaid: f,
2180
+ linkSafety: S
2181
+ }), [
2182
+ d,
2183
+ p,
2184
+ m,
2185
+ C,
2186
+ t,
2187
+ f,
2188
+ S,
2189
+ b?.code
2190
+ ]), G = T(() => ({
2191
+ ...we,
2192
+ ...M
2193
+ }), [T(() => M ? JSON.stringify(M) : "", [M])]), K = T(() => {
2194
+ let { inlineCode: e, ...t } = a ?? {}, n = {
2195
+ ...Mt,
2196
+ ...t
2197
+ };
2198
+ if (e) {
2199
+ let t = n.code;
2200
+ n.code = (n) => "data-block" in n ? t ? v(t, n) : null : v(e, n);
2201
+ }
2202
+ return n;
2203
+ }, [a]), ge = T(() => {
2204
+ let e = [];
2205
+ return b != null && b.cjk && (e = [...e, ...b.cjk.remarkPluginsBefore]), e = [...e, ...l], b != null && b.cjk && (e = [...e, ...b.cjk.remarkPluginsAfter]), b != null && b.math && (e = [...e, b.math.remarkPlugin]), e;
2206
+ }, [
2207
+ l,
2208
+ b?.math,
2209
+ b?.cjk
2210
+ ]), _e = T(() => {
2211
+ let e = o;
2212
+ if (O && Object.keys(O).length > 0 && o === En) {
2213
+ let t = {
2214
+ ...Cn,
2215
+ tagNames: [...Cn.tagNames ?? [], ...Object.keys(O)],
2216
+ attributes: {
2217
+ ...Cn.attributes,
2218
+ ...O
2219
+ }
2220
+ };
2221
+ e = [
2222
+ wn.raw,
2223
+ [s, t],
2224
+ wn.harden
2225
+ ];
2226
+ }
2227
+ return j && j.length > 0 && (e = [...e, [vn, j]]), b != null && b.math && (e = [...e, b.math.rehypePlugin]), W && m && (e = [...e, W.rehypePlugin]), e;
2228
+ }, [
2229
+ o,
2230
+ b?.math,
2231
+ W,
2232
+ m,
2233
+ O,
2234
+ j
2235
+ ]), q = T(() => {
2236
+ if (!m || V.length === 0) return !1;
2237
+ let e = V.at(-1);
2238
+ return Rt(e) || zt(e);
2239
+ }, [m, V]), ve = T(() => y && m && !q ? { "--streamdown-caret": `"${On[y]}"` } : void 0, [
2240
+ y,
2241
+ m,
2242
+ q
2243
+ ]);
2244
+ return t === "static" ? k(Te.Provider, {
2245
+ value: G,
2246
+ children: k(Fe.Provider, {
2247
+ value: b ?? null,
2248
+ children: k($.Provider, {
2249
+ value: he,
2250
+ children: k(Ce, {
2251
+ icons: N,
2252
+ children: k(me.Provider, {
2253
+ value: I,
2254
+ children: k("div", {
2255
+ className: I("space-y-4 whitespace-normal [&>*:first-child]:mt-0 [&>*:last-child]:mb-0", u),
2256
+ dir: n === "auto" ? Ft(z) : n,
2257
+ children: k(Gt, {
2258
+ components: K,
2259
+ rehypePlugins: _e,
2260
+ remarkPlugins: ge,
2261
+ ...re,
2262
+ children: z
2263
+ })
2264
+ })
2265
+ })
2266
+ })
2267
+ })
2268
+ })
2269
+ }) : k(Te.Provider, {
2270
+ value: G,
2271
+ children: k(Fe.Provider, {
2272
+ value: b ?? null,
2273
+ children: k($.Provider, {
2274
+ value: he,
2275
+ children: k(Ce, {
2276
+ icons: N,
2277
+ children: k(me.Provider, {
2278
+ value: I,
2279
+ children: A("div", {
2280
+ className: I("space-y-4 whitespace-normal [&>*:first-child]:mt-0 [&>*:last-child]:mb-0", y && !q ? "[&>*:last-child]:after:inline [&>*:last-child]:after:align-baseline [&>*:last-child]:after:content-[var(--streamdown-caret)]" : null, u),
2281
+ style: ve,
2282
+ children: [V.length === 0 && y && m && k("span", {}), V.map((e, t) => {
2283
+ let a = t === V.length - 1, o = m && a && Rt(e);
2284
+ return k(g, {
2285
+ animatePlugin: W,
2286
+ components: K,
2287
+ content: e,
2288
+ dir: fe?.[t] ?? (n === "auto" ? void 0 : n),
2289
+ index: t,
2290
+ isIncomplete: o,
2291
+ rehypePlugins: _e,
2292
+ remarkPlugins: ge,
2293
+ shouldNormalizeHtmlIndentation: i,
2294
+ shouldParseIncompleteMarkdown: r,
2295
+ ...re
2296
+ }, H[t]);
2297
+ })]
2298
+ })
2299
+ })
2300
+ })
2301
+ })
2302
+ })
2303
+ });
2304
+ }, (e, t) => e.children === t.children && e.shikiTheme === t.shikiTheme && e.isAnimating === t.isAnimating && e.animated === t.animated && e.mode === t.mode && e.plugins === t.plugins && e.className === t.className && e.linkSafety === t.linkSafety && e.lineNumbers === t.lineNumbers && e.normalizeHtmlIndentation === t.normalizeHtmlIndentation && e.literalTagContent === t.literalTagContent && JSON.stringify(e.translations) === JSON.stringify(t.translations) && e.prefix === t.prefix && e.dir === t.dir);
2305
+ Mn.displayName = "Streamdown";
2306
+ var Nn = ({ children: e, className: t, minZoom: n = .5, maxZoom: r = 3, zoomStep: i = .1, showControls: a = !0, initialZoom: o = 1, fullscreen: s = !1 }) => {
2307
+ let { RotateCcwIcon: c, ZoomInIcon: l, ZoomOutIcon: u } = Y(), d = U(), f = E(null), p = E(null), [m, h] = D(o), [g, _] = D({
2308
+ x: 0,
2309
+ y: 0
2310
+ }), [v, y] = D(!1), [b, x] = D({
2311
+ x: 0,
2312
+ y: 0
2313
+ }), [C, ee] = D({
2314
+ x: 0,
2315
+ y: 0
2316
+ }), T = S((e) => {
2317
+ h((t) => Math.max(n, Math.min(r, t + e)));
2318
+ }, [n, r]), te = S(() => {
2319
+ T(i);
2320
+ }, [T, i]), O = S(() => {
2321
+ T(-i);
2322
+ }, [T, i]), j = S(() => {
2323
+ h(o), _({
2324
+ x: 0,
2325
+ y: 0
2326
+ });
2327
+ }, [o]), M = S((e) => {
2328
+ e.preventDefault(), T(e.deltaY > 0 ? -i : i);
2329
+ }, [T, i]), N = S((e) => {
2330
+ if (e.button !== 0 || e.isPrimary === !1) return;
2331
+ y(!0), x({
2332
+ x: e.clientX,
2333
+ y: e.clientY
2334
+ }), ee(g);
2335
+ let t = e.currentTarget;
2336
+ t instanceof HTMLElement && t.setPointerCapture(e.pointerId);
2337
+ }, [g]), P = S((e) => {
2338
+ if (!v) return;
2339
+ e.preventDefault();
2340
+ let t = e.clientX - b.x, n = e.clientY - b.y;
2341
+ _({
2342
+ x: C.x + t,
2343
+ y: C.y + n
2344
+ });
2345
+ }, [
2346
+ v,
2347
+ b,
2348
+ C
2349
+ ]), F = S((e) => {
2350
+ y(!1);
2351
+ let t = e.currentTarget;
2352
+ t instanceof HTMLElement && t.releasePointerCapture(e.pointerId);
2353
+ }, []);
2354
+ return w(() => {
2355
+ let e = f.current;
2356
+ if (e) return e.addEventListener("wheel", M, { passive: !1 }), () => {
2357
+ e.removeEventListener("wheel", M);
2358
+ };
2359
+ }, [M]), w(() => {
2360
+ let e = p.current;
2361
+ if (e && v) return document.body.style.userSelect = "none", e.addEventListener("pointermove", P, { passive: !1 }), e.addEventListener("pointerup", F), e.addEventListener("pointercancel", F), () => {
2362
+ document.body.style.userSelect = "", e.removeEventListener("pointermove", P), e.removeEventListener("pointerup", F), e.removeEventListener("pointercancel", F);
2363
+ };
2364
+ }, [
2365
+ v,
2366
+ P,
2367
+ F
2368
+ ]), A("div", {
2369
+ className: d("relative flex flex-col", s ? "h-full w-full" : "min-h-28 w-full", t),
2370
+ ref: f,
2371
+ style: { cursor: v ? "grabbing" : "grab" },
2372
+ children: [a ? A("div", {
2373
+ className: d("absolute z-10 flex flex-col gap-1 rounded-md border border-border bg-background/80 p-1 supports-[backdrop-filter]:bg-background/70 supports-[backdrop-filter]:backdrop-blur-sm", s ? "bottom-4 left-4" : "bottom-2 left-2"),
2374
+ children: [
2375
+ k("button", {
2376
+ className: d("flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50"),
2377
+ disabled: m >= r,
2378
+ onClick: te,
2379
+ title: "Zoom in",
2380
+ type: "button",
2381
+ children: k(l, { size: 16 })
2382
+ }),
2383
+ k("button", {
2384
+ className: d("flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50"),
2385
+ disabled: m <= n,
2386
+ onClick: O,
2387
+ title: "Zoom out",
2388
+ type: "button",
2389
+ children: k(u, { size: 16 })
2390
+ }),
2391
+ k("button", {
2392
+ className: d("flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground"),
2393
+ onClick: j,
2394
+ title: "Reset zoom and pan",
2395
+ type: "button",
2396
+ children: k(c, { size: 16 })
2397
+ })
2398
+ ]
2399
+ }) : null, k("div", {
2400
+ className: d("flex-1 origin-center transition-transform duration-150 ease-out", s ? "flex h-full w-full items-center justify-center" : "flex w-full items-center justify-center"),
2401
+ onPointerDown: N,
2402
+ ref: p,
2403
+ role: "application",
2404
+ style: {
2405
+ transform: `translate(${g.x}px, ${g.y}px) scale(${m})`,
2406
+ transformOrigin: "center center",
2407
+ touchAction: "none",
2408
+ willChange: "transform"
2409
+ },
2410
+ children: e
2411
+ })]
2412
+ });
2413
+ }, Pn = ({ chart: e, className: t, config: n, fullscreen: r = !1, showControls: i = !0 }) => {
2414
+ let a = U(), [o, s] = D(null), [c, l] = D(!1), [u, d] = D(""), [f, p] = D(""), [m, h] = D(0), { mermaid: g } = C($), _ = Re(), v = g?.errorComponent, { shouldRender: y, containerRef: b } = re({ immediate: r });
2415
+ if (w(() => {
2416
+ if (y) {
2417
+ if (!_) {
2418
+ s("Mermaid plugin not available. Please add the mermaid plugin to enable diagram rendering.");
2419
+ return;
2420
+ }
2421
+ (async () => {
2422
+ try {
2423
+ s(null), l(!0);
2424
+ let t = _.getMermaid(n), r = e.split("").reduce((e, t) => (e << 5) - e + t.charCodeAt(0) | 0, 0), i = `mermaid-${Math.abs(r)}-${Date.now()}-${Math.random().toString(36).substring(2, 9)}`, { svg: a } = await t.render(i, e);
2425
+ d(a), p(a);
2426
+ } catch (e) {
2427
+ f || u || s(e instanceof Error ? e.message : "Failed to render Mermaid chart");
2428
+ } finally {
2429
+ l(!1);
2430
+ }
2431
+ })();
2432
+ }
2433
+ }, [
2434
+ e,
2435
+ n,
2436
+ m,
2437
+ y,
2438
+ _
2439
+ ]), !(y || u || f)) return k("div", {
2440
+ className: a("my-4 min-h-[200px]", t),
2441
+ ref: b
2442
+ });
2443
+ if (c && !u && !f) return k("div", {
2444
+ className: a("my-4 flex justify-center p-4", t),
2445
+ ref: b,
2446
+ children: A("div", {
2447
+ className: a("flex items-center space-x-2 text-muted-foreground"),
2448
+ children: [k("div", { className: a("h-4 w-4 animate-spin rounded-full border-current border-b-2") }), k("span", {
2449
+ className: a("text-sm"),
2450
+ children: "Loading diagram..."
2451
+ })]
2452
+ })
2453
+ });
2454
+ if (o && !u && !f) return v ? k("div", {
2455
+ ref: b,
2456
+ children: k(v, {
2457
+ chart: e,
2458
+ error: o,
2459
+ retry: () => h((e) => e + 1)
2460
+ })
2461
+ }) : A("div", {
2462
+ className: a("rounded-md bg-red-50 p-4", t),
2463
+ ref: b,
2464
+ children: [A("p", {
2465
+ className: a("font-mono text-red-700 text-sm"),
2466
+ children: ["Mermaid Error: ", o]
2467
+ }), A("details", {
2468
+ className: a("mt-2"),
2469
+ children: [k("summary", {
2470
+ className: a("cursor-pointer text-red-600 text-xs"),
2471
+ children: "Show Code"
2472
+ }), k("pre", {
2473
+ className: a("mt-2 overflow-x-auto rounded bg-red-100 p-2 text-red-800 text-xs"),
2474
+ children: e
2475
+ })]
2476
+ })]
2477
+ });
2478
+ let x = u || f;
2479
+ return k("div", {
2480
+ className: a("size-full", t),
2481
+ "data-streamdown": "mermaid",
2482
+ ref: b,
2483
+ children: k(Nn, {
2484
+ className: a(r ? "size-full overflow-hidden" : "overflow-hidden", t),
2485
+ fullscreen: r,
2486
+ maxZoom: 3,
2487
+ minZoom: .5,
2488
+ showControls: i,
2489
+ zoomStep: .1,
2490
+ children: k("div", {
2491
+ "aria-label": "Mermaid chart",
2492
+ className: a("flex justify-center", r ? "size-full items-center" : null),
2493
+ dangerouslySetInnerHTML: { __html: x },
2494
+ role: "img"
2495
+ })
2496
+ })
2497
+ });
2498
+ };
2499
+ //#endregion
2500
+ export { Ft as $e, Ee as Ae, G as At, we as De, Sn as Js, Tn as Ks, Le as Li, ke as Oe, Ye as Pe, Mn as Qs, $ as R, Je as Te, jn as Tn, le as be, Ge as dt, Oe as it, Ke as je, fn as kt, We as ne, Yt as on, K as ot, Pn as po, qe as re, q as rt, be as st, de as tt, Ue as ue, wn as xt };