@leanspec/ui 0.2.23 → 0.2.24

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 (867) hide show
  1. package/README.md +1 -1
  2. package/dist/_baseUniq-0KC2LwTU.js +477 -0
  3. package/dist/arc-BF3pCZeb.js +83 -0
  4. package/dist/architecture-U656AL7Q-Dvz3aEBf.js +5 -0
  5. package/dist/architectureDiagram-VXUJARFQ-DUvgrr6M.js +4661 -0
  6. package/dist/assets/_baseUniq-zaVu3d-8.js +1 -0
  7. package/dist/assets/angular-html-CU67Zn6k.js +1 -0
  8. package/dist/assets/angular-ts-BwZT4LLn.js +1 -0
  9. package/dist/assets/apl-dKokRX4l.js +1 -0
  10. package/dist/assets/arc-CNsbs1Hc.js +1 -0
  11. package/dist/assets/architectureDiagram-VXUJARFQ-CNRNXzWH.js +36 -0
  12. package/dist/assets/astro-CbQHKStN.js +1 -0
  13. package/dist/assets/blade-D4QpJJKB.js +1 -0
  14. package/dist/assets/blockDiagram-VD42YOAC-B-z5fhLO.js +122 -0
  15. package/dist/assets/bsl-BO_Y6i37.js +1 -0
  16. package/dist/assets/c4Diagram-YG6GDRKO-D1wRy3rn.js +10 -0
  17. package/dist/assets/cairo-KRGpt6FW.js +1 -0
  18. package/dist/assets/channel-C1utiKyQ.js +1 -0
  19. package/dist/assets/chunk-4BX2VUAB-Ju0iuf5T.js +1 -0
  20. package/dist/assets/chunk-55IACEB6-BOKBDX1b.js +1 -0
  21. package/dist/assets/chunk-B4BG7PRW-DsLx2FWG.js +165 -0
  22. package/dist/assets/chunk-DI55MBZ5-DVZlU9hx.js +220 -0
  23. package/dist/assets/chunk-FMBD7UC4-DcibvRDC.js +15 -0
  24. package/dist/assets/chunk-QN33PNHL-CNdyoS13.js +1 -0
  25. package/dist/assets/chunk-QZHKN3VN-B6wDkRFR.js +1 -0
  26. package/dist/assets/chunk-TZMSLE5B-DiRAl639.js +1 -0
  27. package/dist/assets/classDiagram-2ON5EDUG-DHe9K9aJ.js +1 -0
  28. package/dist/assets/classDiagram-v2-WZHVMYZB-DHe9K9aJ.js +1 -0
  29. package/dist/assets/clone-BP5MKGQF.js +1 -0
  30. package/dist/assets/cobol-nwyudZeR.js +1 -0
  31. package/dist/assets/code-block-37QAKDTI-D0bYQ3tc.js +2 -0
  32. package/dist/assets/coffee-Ch7k5sss.js +1 -0
  33. package/dist/assets/cose-bilkent-S5V4N54A-C7eFSjsi.js +1 -0
  34. package/dist/assets/cpp-CofmeUqb.js +1 -0
  35. package/dist/assets/crystal-tKQVLTB8.js +1 -0
  36. package/dist/assets/csv-fuZLfV_i.js +1 -0
  37. package/dist/assets/dagre-6UL2VRFP-Chm9A17M.js +4 -0
  38. package/dist/assets/diagram-PSM6KHXK-CCbDlCx9.js +24 -0
  39. package/dist/assets/diagram-QEK2KX5R-Dtd49XA6.js +43 -0
  40. package/dist/assets/diagram-S2PKOQOG-0K2p7g5b.js +24 -0
  41. package/dist/assets/edge-BkV0erSs.js +1 -0
  42. package/dist/assets/elixir-CDX3lj18.js +1 -0
  43. package/dist/assets/elm-DbKCFpqz.js +1 -0
  44. package/dist/assets/erDiagram-Q2GNP2WA-jqGcgMyf.js +60 -0
  45. package/dist/assets/erb-BOJIQeun.js +1 -0
  46. package/dist/assets/erlang-DsQrWhSR.js +1 -0
  47. package/dist/assets/flowDiagram-NV44I4VS-Dq-5nSyY.js +162 -0
  48. package/dist/assets/fortran-fixed-form-CkoXwp7k.js +1 -0
  49. package/dist/assets/fsharp-CXgrBDvD.js +1 -0
  50. package/dist/assets/ganttDiagram-JELNMOA3-I2WySoN5.js +267 -0
  51. package/dist/assets/gdresource-B7Tvp0Sc.js +1 -0
  52. package/dist/assets/git-commit-F4YmCXRG.js +1 -0
  53. package/dist/assets/git-rebase-r7XF79zn.js +1 -0
  54. package/dist/assets/gitGraphDiagram-NY62KEGX-B-rqrf_i.js +65 -0
  55. package/dist/assets/glimmer-js-Rg0-pVw9.js +1 -0
  56. package/dist/assets/glimmer-ts-U6CK756n.js +1 -0
  57. package/dist/assets/glsl-DplSGwfg.js +1 -0
  58. package/dist/assets/graph-BXq8Vy6g.js +1 -0
  59. package/dist/assets/graphql-ChdNCCLP.js +1 -0
  60. package/dist/assets/hack-CaT9iCJl.js +1 -0
  61. package/dist/assets/haml-B8DHNrY2.js +1 -0
  62. package/dist/assets/handlebars-BL8al0AC.js +1 -0
  63. package/dist/assets/html-GMplVEZG.js +1 -0
  64. package/dist/assets/html-derivative-BFtXZ54Q.js +1 -0
  65. package/dist/assets/http-jrhK8wxY.js +1 -0
  66. package/dist/assets/hurl-irOxFIW8.js +1 -0
  67. package/dist/assets/hxml-Bvhsp5Yf.js +1 -0
  68. package/dist/assets/index-CiNlAQ9U.js +2224 -0
  69. package/dist/assets/index-CzAbEYUe.css +1 -0
  70. package/dist/assets/infoDiagram-WHAUD3N6-C7RcpAsC.js +2 -0
  71. package/dist/assets/jinja-4LBKfQ-Z.js +1 -0
  72. package/dist/assets/jison-wvAkD_A8.js +1 -0
  73. package/dist/assets/journeyDiagram-XKPGCS4Q-CzPy13x7.js +139 -0
  74. package/dist/assets/julia-CxzCAyBv.js +1 -0
  75. package/dist/assets/kanban-definition-3W4ZIXB7-BwjszvCG.js +89 -0
  76. package/dist/assets/kdl-DV7GczEv.js +1 -0
  77. package/dist/assets/latex-B4uzh10-.js +1 -0
  78. package/dist/assets/layout-tBkKcjOH.js +1 -0
  79. package/dist/assets/liquid-DYVedYrR.js +1 -0
  80. package/dist/assets/lua-BbnMAYS6.js +1 -0
  81. package/dist/assets/marko-DZsq8hO1.js +1 -0
  82. package/dist/assets/mdc-DUICxH0z.js +1 -0
  83. package/dist/assets/min-L_dIkaz8.js +1 -0
  84. package/dist/assets/mindmap-definition-VGOIOE7T-Dv_R0Kzs.js +68 -0
  85. package/dist/assets/nginx-DknmC5AR.js +1 -0
  86. package/dist/assets/nim-CVrawwO9.js +1 -0
  87. package/dist/assets/perl-C0TMdlhV.js +1 -0
  88. package/dist/assets/php-CDn_0X-4.js +1 -0
  89. package/dist/assets/pieDiagram-ADFJNKIX-DBdEQqzX.js +30 -0
  90. package/dist/assets/pug-CGlum2m_.js +1 -0
  91. package/dist/assets/qml-3beO22l8.js +1 -0
  92. package/dist/assets/quadrantDiagram-AYHSOK5B-DSe0t1Vr.js +7 -0
  93. package/dist/assets/razor-C1TweQQi.js +1 -0
  94. package/dist/assets/requirementDiagram-UZGBJVZJ-DINdLdJg.js +64 -0
  95. package/dist/assets/rst-B0xPkSld.js +1 -0
  96. package/dist/assets/ruby-BvKwtOVI.js +1 -0
  97. package/dist/assets/sankeyDiagram-TZEHDZUN-ByLK18cs.js +10 -0
  98. package/dist/assets/sas-cz2c8ADy.js +1 -0
  99. package/dist/assets/scss-OYdSNvt2.js +1 -0
  100. package/dist/assets/sequenceDiagram-WL72ISMW-BtwZoEF6.js +145 -0
  101. package/dist/assets/shaderlab-Dg9Lc6iA.js +1 -0
  102. package/dist/assets/shellsession-BADoaaVG.js +1 -0
  103. package/dist/assets/soy-Brmx7dQM.js +1 -0
  104. package/dist/assets/sparql-rVzFXLq3.js +1 -0
  105. package/dist/assets/stata-BH5u7GGu.js +1 -0
  106. package/dist/assets/stateDiagram-FKZM4ZOC-B_dGGh5t.js +1 -0
  107. package/dist/assets/stateDiagram-v2-4FDKWEC3-lqWWS4Yz.js +1 -0
  108. package/dist/assets/svelte-zxCyuUbr.js +1 -0
  109. package/dist/assets/talonscript-CkByrt1z.js +1 -0
  110. package/dist/assets/templ-W15q3VgB.js +1 -0
  111. package/dist/assets/tex-CvyZ59Mk.js +1 -0
  112. package/dist/assets/timeline-definition-IT6M3QCI-BKq8fAVj.js +61 -0
  113. package/dist/assets/treemap-KMMF4GRG-DpzypmYP.js +128 -0
  114. package/dist/assets/ts-tags-zn1MmPIZ.js +1 -0
  115. package/dist/assets/twig-CO9l9SDP.js +1 -0
  116. package/dist/assets/vue-DN_0RTcg.js +1 -0
  117. package/dist/assets/vue-html-AaS7Mt5G.js +1 -0
  118. package/dist/assets/vue-vine-CQOfvN7w.js +1 -0
  119. package/dist/assets/xml-sdJ4AIDG.js +1 -0
  120. package/dist/assets/xsl-CtQFsRM5.js +1 -0
  121. package/dist/assets/xychartDiagram-PRI3JC2R-B2nRsBEy.js +7 -0
  122. package/dist/blockDiagram-VD42YOAC-C5CukG0j.js +2256 -0
  123. package/dist/c4Diagram-YG6GDRKO-D700bLUP.js +1580 -0
  124. package/dist/channel-Cti7M2bZ.js +5 -0
  125. package/dist/chunk-4BX2VUAB-CgLsIbqb.js +8 -0
  126. package/dist/chunk-55IACEB6-BlgtjLk2.js +8 -0
  127. package/dist/chunk-B4BG7PRW-B0F1XFJz.js +1375 -0
  128. package/dist/chunk-DI55MBZ5-DHtjqtxd.js +1370 -0
  129. package/dist/chunk-FMBD7UC4-d2R18kU3.js +19 -0
  130. package/dist/chunk-QN33PNHL-hc_HFHv7.js +19 -0
  131. package/dist/chunk-QZHKN3VN-DFrM02dn.js +15 -0
  132. package/dist/chunk-TZMSLE5B-BKKjuHyU.js +64 -0
  133. package/dist/classDiagram-2ON5EDUG-CWBGyk3O.js +16 -0
  134. package/dist/classDiagram-v2-WZHVMYZB-CWBGyk3O.js +16 -0
  135. package/dist/clone-C-SjnjM3.js +8 -0
  136. package/dist/cose-bilkent-S5V4N54A-DP3AP0OF.js +2608 -0
  137. package/dist/cytoscape.esm-Cvf3sx9F.js +18704 -0
  138. package/dist/dagre-6UL2VRFP-D9e9iL9P.js +443 -0
  139. package/dist/defaultLocale-D7EN2tov.js +171 -0
  140. package/dist/diagram-PSM6KHXK-BpO0cxRG.js +531 -0
  141. package/dist/diagram-QEK2KX5R-CSMfjuPl.js +217 -0
  142. package/dist/diagram-S2PKOQOG-Csx2ehrH.js +142 -0
  143. package/dist/erDiagram-Q2GNP2WA-X4t9tzNA.js +841 -0
  144. package/dist/flowDiagram-NV44I4VS-JVEdioX6.js +1620 -0
  145. package/dist/ganttDiagram-JELNMOA3-BksGSOHP.js +2671 -0
  146. package/dist/gitGraph-F6HP7TQM-OK0kClD7.js +5 -0
  147. package/dist/gitGraphDiagram-NY62KEGX-BRpBdTVE.js +699 -0
  148. package/dist/graph-Czb_7a7B.js +381 -0
  149. package/dist/icons/runners/amp.svg +6 -0
  150. package/dist/icons/runners/antigravity.svg +2 -0
  151. package/dist/icons/runners/claude.svg +1 -0
  152. package/dist/icons/runners/codex.svg +1 -0
  153. package/dist/icons/runners/copilot.svg +1 -0
  154. package/dist/icons/runners/cursor.svg +1 -0
  155. package/dist/icons/runners/droid.svg +8 -0
  156. package/dist/icons/runners/gemini.svg +1 -0
  157. package/dist/icons/runners/kiro.svg +11 -0
  158. package/dist/icons/runners/opencode.svg +1 -0
  159. package/dist/icons/runners/windsurf.svg +1 -0
  160. package/dist/index-iCTLJvaV.js +67305 -0
  161. package/dist/index.html +2 -2
  162. package/dist/info-NVLQJR56-BY80xctL.js +5 -0
  163. package/dist/infoDiagram-WHAUD3N6-DWuyY_dJ.js +24 -0
  164. package/dist/init-DjUOC4st.js +16 -0
  165. package/dist/journeyDiagram-XKPGCS4Q-CrnINICH.js +834 -0
  166. package/dist/kanban-definition-3W4ZIXB7-64OgHBcl.js +719 -0
  167. package/dist/katex-r9TeExgs.js +11690 -0
  168. package/dist/layout-Bx4_X9_k.js +1441 -0
  169. package/dist/lib/App.d.ts +2 -0
  170. package/dist/lib/components/badge-config.d.ts +13 -0
  171. package/dist/lib/components/chat/chat-container.d.ts +16 -0
  172. package/dist/lib/components/chat/chat-history.d.ts +1 -0
  173. package/dist/lib/components/chat/chat-input.d.ts +8 -0
  174. package/dist/lib/components/chat/chat-message.d.ts +7 -0
  175. package/dist/lib/components/chat/chat-sidebar.d.ts +1 -0
  176. package/dist/lib/components/chat/enhanced-model-selector.d.ts +13 -0
  177. package/dist/lib/components/chat/index.d.ts +6 -0
  178. package/dist/lib/components/chat/inline-model-selector.d.ts +18 -0
  179. package/dist/lib/components/chat/model-picker.d.ts +13 -0
  180. package/dist/lib/components/chat/resize-handle.d.ts +9 -0
  181. package/dist/lib/components/chat/thinking-indicator.d.ts +4 -0
  182. package/dist/lib/components/chat/tool-result-registry.d.ts +6 -0
  183. package/dist/lib/components/chat/tool-result-utils.d.ts +12 -0
  184. package/dist/lib/components/context/context-client.d.ts +6 -0
  185. package/dist/lib/components/context/context-file-detail.d.ts +8 -0
  186. package/dist/lib/components/dashboard/activity-item.d.ts +9 -0
  187. package/dist/lib/components/dashboard/dashboard-client.d.ts +11 -0
  188. package/dist/lib/components/dashboard/spec-list-item.d.ts +8 -0
  189. package/dist/lib/components/dashboard/stat-card.d.ts +12 -0
  190. package/dist/lib/components/dependencies/constants.d.ts +7 -0
  191. package/dist/lib/components/dependencies/spec-node-types.d.ts +3 -0
  192. package/dist/lib/components/dependencies/spec-node.d.ts +4 -0
  193. package/dist/lib/components/dependencies/spec-sidebar.d.ts +8 -0
  194. package/dist/lib/components/dependencies/types.d.ts +31 -0
  195. package/dist/lib/components/dependencies/utils.d.ts +23 -0
  196. package/dist/lib/components/language-switcher.d.ts +1 -0
  197. package/dist/lib/components/layout.d.ts +13 -0
  198. package/dist/lib/components/library/ai-elements/agent.d.ts +26 -0
  199. package/dist/lib/components/library/ai-elements/artifact.d.ts +23 -0
  200. package/dist/lib/components/library/ai-elements/attachments.d.ts +54 -0
  201. package/dist/lib/components/library/ai-elements/audio-player.d.ts +29 -0
  202. package/dist/lib/components/library/ai-elements/canvas.d.ts +7 -0
  203. package/dist/lib/components/library/ai-elements/chain-of-thought.d.ts +29 -0
  204. package/dist/lib/components/library/ai-elements/checkpoint.d.ts +11 -0
  205. package/dist/lib/components/library/ai-elements/code-block.d.ts +47 -0
  206. package/dist/lib/components/library/ai-elements/commit.d.ts +64 -0
  207. package/dist/lib/components/library/ai-elements/confirmation.d.ts +49 -0
  208. package/dist/lib/components/library/ai-elements/connection.d.ts +2 -0
  209. package/dist/lib/components/library/ai-elements/context.d.ts +32 -0
  210. package/dist/lib/components/library/ai-elements/controls.d.ts +4 -0
  211. package/dist/lib/components/library/ai-elements/conversation.d.ts +15 -0
  212. package/dist/lib/components/library/ai-elements/edge.d.ts +5 -0
  213. package/dist/lib/components/library/ai-elements/environment-variables.d.ts +38 -0
  214. package/dist/lib/components/library/ai-elements/file-tree.d.ts +26 -0
  215. package/dist/lib/components/library/ai-elements/image.d.ts +6 -0
  216. package/dist/lib/components/library/ai-elements/index.d.ts +56 -0
  217. package/dist/lib/components/library/ai-elements/inline-citation.d.ts +38 -0
  218. package/dist/lib/components/library/ai-elements/loader.d.ts +5 -0
  219. package/dist/lib/components/library/ai-elements/message.d.ts +41 -0
  220. package/dist/lib/components/library/ai-elements/mic-selector.d.ts +45 -0
  221. package/dist/lib/components/library/ai-elements/model-selector.d.ts +35 -0
  222. package/dist/lib/components/library/ai-elements/node.d.ts +21 -0
  223. package/dist/lib/components/library/ai-elements/open-in-chat.d.ts +28 -0
  224. package/dist/lib/components/library/ai-elements/package-info.d.ts +29 -0
  225. package/dist/lib/components/library/ai-elements/panel.d.ts +5 -0
  226. package/dist/lib/components/library/ai-elements/persona.d.ts +48 -0
  227. package/dist/lib/components/library/ai-elements/plan.d.ts +25 -0
  228. package/dist/lib/components/library/ai-elements/prompt-input.d.ts +136 -0
  229. package/dist/lib/components/library/ai-elements/queue.d.ts +61 -0
  230. package/dist/lib/components/library/ai-elements/reasoning.d.ts +26 -0
  231. package/dist/lib/components/library/ai-elements/runner-logo.d.ts +33 -0
  232. package/dist/lib/components/library/ai-elements/sandbox.d.ts +24 -0
  233. package/dist/lib/components/library/ai-elements/schema-display.d.ts +55 -0
  234. package/dist/lib/components/library/ai-elements/shimmer.d.ts +9 -0
  235. package/dist/lib/components/library/ai-elements/snippet.d.ts +18 -0
  236. package/dist/lib/components/library/ai-elements/sources.d.ts +12 -0
  237. package/dist/lib/components/library/ai-elements/speech-input.d.ts +58 -0
  238. package/dist/lib/components/library/ai-elements/stack-trace.d.ts +37 -0
  239. package/dist/lib/components/library/ai-elements/suggestion.d.ts +10 -0
  240. package/dist/lib/components/library/ai-elements/task.d.ts +14 -0
  241. package/dist/lib/components/library/ai-elements/terminal.d.ts +27 -0
  242. package/dist/lib/components/library/ai-elements/test-results.d.ts +58 -0
  243. package/dist/lib/components/library/ai-elements/tool-duration.d.ts +12 -0
  244. package/dist/lib/components/library/ai-elements/tool-icon-registry.d.ts +26 -0
  245. package/dist/lib/components/library/ai-elements/tool-input-ui-view.d.ts +10 -0
  246. package/dist/lib/components/library/ai-elements/tool.d.ts +41 -0
  247. package/dist/lib/components/library/ai-elements/toolbar.d.ts +5 -0
  248. package/dist/lib/components/library/ai-elements/transcription.d.ts +16 -0
  249. package/dist/lib/components/library/ai-elements/voice-selector.d.ts +63 -0
  250. package/dist/lib/components/library/ai-elements/web-preview.d.ts +34 -0
  251. package/dist/lib/components/library/graph/dependency-graph.d.ts +26 -0
  252. package/dist/lib/components/library/graph/index.d.ts +2 -0
  253. package/dist/lib/components/library/hierarchy/hierarchy-tree.d.ts +23 -0
  254. package/dist/lib/components/library/hierarchy/index.d.ts +1 -0
  255. package/dist/lib/components/library/index.d.ts +10 -0
  256. package/dist/lib/components/library/layout/empty-state.d.ts +25 -0
  257. package/dist/lib/components/library/layout/index.d.ts +2 -0
  258. package/dist/lib/components/library/layout/loading-skeletons.d.ts +76 -0
  259. package/dist/lib/components/library/navigation/back-to-top.d.ts +15 -0
  260. package/dist/lib/components/library/navigation/index.d.ts +2 -0
  261. package/dist/lib/components/library/navigation/theme-toggle.d.ts +25 -0
  262. package/dist/lib/components/library/project/index.d.ts +4 -0
  263. package/dist/lib/components/library/project/project-avatar.d.ts +17 -0
  264. package/dist/lib/components/library/project/project-card.d.ts +41 -0
  265. package/dist/lib/components/library/project/project-dialog.d.ts +21 -0
  266. package/dist/lib/components/library/project/project-switcher.d.ts +27 -0
  267. package/dist/lib/components/library/search/filter-select.d.ts +27 -0
  268. package/dist/lib/components/library/search/index.d.ts +3 -0
  269. package/dist/lib/components/library/search/search-input.d.ts +22 -0
  270. package/dist/lib/components/library/search/search-results.d.ts +8 -0
  271. package/dist/lib/components/library/spec/index.d.ts +9 -0
  272. package/dist/lib/components/library/spec/priority-badge.d.ts +18 -0
  273. package/dist/lib/components/library/spec/priority-editor.d.ts +11 -0
  274. package/dist/lib/components/library/spec/spec-card.d.ts +16 -0
  275. package/dist/lib/components/library/spec/spec-metadata.d.ts +35 -0
  276. package/dist/lib/components/library/spec/spec-timeline.d.ts +21 -0
  277. package/dist/lib/components/library/spec/status-badge.d.ts +18 -0
  278. package/dist/lib/components/library/spec/status-editor.d.ts +11 -0
  279. package/dist/lib/components/library/spec/tag-badge.d.ts +29 -0
  280. package/dist/lib/components/library/spec/tags-editor.d.ts +23 -0
  281. package/dist/lib/components/library/stats/index.d.ts +3 -0
  282. package/dist/lib/components/library/stats/progress-bar.d.ts +19 -0
  283. package/dist/lib/components/library/stats/stats-card.d.ts +22 -0
  284. package/dist/lib/components/library/stats/stats-overview.d.ts +35 -0
  285. package/dist/lib/components/library/ui/accordion.d.ts +7 -0
  286. package/dist/lib/components/library/ui/alert.d.ts +8 -0
  287. package/dist/lib/components/library/ui/avatar.d.ts +15 -0
  288. package/dist/lib/components/library/ui/badge.d.ts +9 -0
  289. package/dist/lib/components/library/ui/button-group.d.ts +11 -0
  290. package/dist/lib/components/library/ui/button.d.ts +11 -0
  291. package/dist/lib/components/library/ui/card.d.ts +9 -0
  292. package/dist/lib/components/library/ui/carousel.d.ts +18 -0
  293. package/dist/lib/components/library/ui/collapsible.d.ts +5 -0
  294. package/dist/lib/components/library/ui/command.d.ts +80 -0
  295. package/dist/lib/components/library/ui/dialog.d.ts +19 -0
  296. package/dist/lib/components/library/ui/dropdown-menu.d.ts +27 -0
  297. package/dist/lib/components/library/ui/hover-card.d.ts +6 -0
  298. package/dist/lib/components/library/ui/index.d.ts +25 -0
  299. package/dist/lib/components/library/ui/input-group.d.ts +16 -0
  300. package/dist/lib/components/library/ui/input.d.ts +4 -0
  301. package/dist/lib/components/library/ui/popover.d.ts +7 -0
  302. package/dist/lib/components/library/ui/progress.d.ts +4 -0
  303. package/dist/lib/components/library/ui/scroll-area.d.ts +5 -0
  304. package/dist/lib/components/library/ui/select.d.ts +24 -0
  305. package/dist/lib/components/library/ui/separator.d.ts +5 -0
  306. package/dist/lib/components/library/ui/skeleton.d.ts +5 -0
  307. package/dist/lib/components/library/ui/switch.d.ts +4 -0
  308. package/dist/lib/components/library/ui/tabs.d.ts +7 -0
  309. package/dist/lib/components/library/ui/textarea.d.ts +3 -0
  310. package/dist/lib/components/library/ui/tooltip.d.ts +7 -0
  311. package/dist/lib/components/machine-switcher.d.ts +1 -0
  312. package/dist/lib/components/main-sidebar.d.ts +6 -0
  313. package/dist/lib/components/mermaid-diagram.d.ts +6 -0
  314. package/dist/lib/components/metadata-editors/priority-editor.d.ts +11 -0
  315. package/dist/lib/components/metadata-editors/status-editor.d.ts +11 -0
  316. package/dist/lib/components/metadata-editors/tags-editor.d.ts +12 -0
  317. package/dist/lib/components/metrics/token-progress-bar.d.ts +9 -0
  318. package/dist/lib/components/minimal-layout.d.ts +9 -0
  319. package/dist/lib/components/navigation.d.ts +9 -0
  320. package/dist/lib/components/priority-badge.d.ts +10 -0
  321. package/dist/lib/components/project-switcher.d.ts +10 -0
  322. package/dist/lib/components/projects/create-project-dialog.d.ts +6 -0
  323. package/dist/lib/components/projects/directory-picker.d.ts +9 -0
  324. package/dist/lib/components/quick-search.d.ts +1 -0
  325. package/dist/lib/components/relationships/relationship-section.d.ts +17 -0
  326. package/dist/lib/components/relationships/relationships-editor.d.ts +11 -0
  327. package/dist/lib/components/relationships/spec-search-picker.d.ts +11 -0
  328. package/dist/lib/components/root-redirect.d.ts +6 -0
  329. package/dist/lib/components/sessions/session-card.d.ts +7 -0
  330. package/dist/lib/components/sessions/session-create-dialog.d.ts +14 -0
  331. package/dist/lib/components/sessions/session-create-form.d.ts +7 -0
  332. package/dist/lib/components/sessions/session-logs-panel.d.ts +6 -0
  333. package/dist/lib/components/sessions/sessions-drawer.d.ts +1 -0
  334. package/dist/lib/components/settings/appearance-settings-tab.d.ts +1 -0
  335. package/dist/lib/components/settings/models-settings-tab.d.ts +1 -0
  336. package/dist/lib/components/settings/runner-settings-tab.d.ts +1 -0
  337. package/dist/lib/components/shared/back-to-top.d.ts +1 -0
  338. package/dist/lib/components/shared/color-picker.d.ts +7 -0
  339. package/dist/lib/components/shared/empty-state.d.ts +12 -0
  340. package/dist/lib/components/shared/error-boundary.d.ts +14 -0
  341. package/dist/lib/components/shared/markdown/enhanced-code-block.d.ts +7 -0
  342. package/dist/lib/components/shared/markdown/enhanced-table.d.ts +4 -0
  343. package/dist/lib/components/shared/markdown/index.d.ts +4 -0
  344. package/dist/lib/components/shared/markdown/markdown-components.d.ts +27 -0
  345. package/dist/lib/components/shared/markdown/utils.d.ts +3 -0
  346. package/dist/lib/components/shared/page-container.d.ts +10 -0
  347. package/dist/lib/components/shared/page-header.d.ts +8 -0
  348. package/dist/lib/components/shared/page-transition.d.ts +7 -0
  349. package/dist/lib/components/shared/project-avatar.d.ts +10 -0
  350. package/dist/lib/components/shared/search-filter-bar.d.ts +36 -0
  351. package/dist/lib/components/shared/sidebar-link.d.ts +14 -0
  352. package/dist/lib/components/shared/skeletons.d.ts +8 -0
  353. package/dist/lib/components/spec-detail/editable-metadata.d.ts +7 -0
  354. package/dist/lib/components/spec-detail/markdown-renderer.d.ts +9 -0
  355. package/dist/lib/components/spec-detail/session-panel.d.ts +6 -0
  356. package/dist/lib/components/spec-detail/table-of-contents.d.ts +6 -0
  357. package/dist/lib/components/spec-detail-layout.context.d.ts +5 -0
  358. package/dist/lib/components/spec-detail-layout.d.ts +1 -0
  359. package/dist/lib/components/specs/board-view.d.ts +15 -0
  360. package/dist/lib/components/specs/hierarchy-list.d.ts +15 -0
  361. package/dist/lib/components/specs/list-view.d.ts +16 -0
  362. package/dist/lib/components/specs/specs-filters.d.ts +30 -0
  363. package/dist/lib/components/specs/token-details-dialog.d.ts +10 -0
  364. package/dist/lib/components/specs/validation-dialog.d.ts +10 -0
  365. package/dist/lib/components/specs-nav-sidebar.d.ts +6 -0
  366. package/dist/lib/components/status-badge.d.ts +10 -0
  367. package/dist/lib/components/theme-toggle.d.ts +1 -0
  368. package/dist/lib/components/token-badge.d.ts +9 -0
  369. package/dist/lib/components/token-progress-bar.d.ts +8 -0
  370. package/dist/lib/components/tooltip.d.ts +1 -0
  371. package/dist/lib/components/umbrella-badge.d.ts +7 -0
  372. package/dist/lib/components/validation-badge.d.ts +12 -0
  373. package/dist/lib/components/wide-mode-toggle.d.ts +1 -0
  374. package/dist/lib/contexts/ChatContext.d.ts +25 -0
  375. package/dist/lib/contexts/KeyboardShortcutsContext.d.ts +23 -0
  376. package/dist/lib/contexts/ToastContext.d.ts +15 -0
  377. package/dist/lib/contexts/index.d.ts +3 -0
  378. package/dist/lib/hooks/index.d.ts +3 -0
  379. package/dist/lib/hooks/use-debounce.d.ts +8 -0
  380. package/dist/lib/hooks/use-local-storage.d.ts +4 -0
  381. package/dist/lib/hooks/use-media-query.d.ts +1 -0
  382. package/dist/lib/hooks/use-spec-sync.d.ts +12 -0
  383. package/dist/lib/hooks/useAutoTitle.d.ts +8 -0
  384. package/dist/lib/hooks/useChatConfigQuery.d.ts +44 -0
  385. package/dist/lib/hooks/useChatQuery.d.ts +23 -0
  386. package/dist/lib/hooks/useKeyboardShortcuts.d.ts +10 -0
  387. package/dist/lib/hooks/useModelsQuery.d.ts +22 -0
  388. package/dist/lib/hooks/useProjectQuery.d.ts +211 -0
  389. package/dist/lib/hooks/useProjectScopedStorage.d.ts +12 -0
  390. package/dist/lib/hooks/useSessionsQuery.d.ts +29 -0
  391. package/dist/lib/hooks/useSpecActionDialogs.d.ts +14 -0
  392. package/dist/lib/hooks/useSpecsQuery.d.ts +44 -0
  393. package/dist/lib/hooks/useSpecsSSE.d.ts +1 -0
  394. package/dist/lib/index.d.ts +2 -0
  395. package/dist/lib/index.js +567 -0
  396. package/dist/lib/layouts/SettingsLayout.d.ts +1 -0
  397. package/dist/lib/lib/api.d.ts +135 -0
  398. package/dist/lib/lib/backend-adapter/core.d.ts +135 -0
  399. package/dist/lib/lib/backend-adapter/http.d.ts +126 -0
  400. package/dist/lib/lib/backend-adapter/index.d.ts +10 -0
  401. package/dist/lib/lib/backend-adapter/tauri.d.ts +121 -0
  402. package/dist/lib/lib/badge-config.d.ts +20 -0
  403. package/dist/lib/lib/chat-api.d.ts +38 -0
  404. package/dist/lib/lib/color-utils.d.ts +20 -0
  405. package/dist/lib/lib/date-utils.d.ts +16 -0
  406. package/dist/lib/lib/hierarchy.d.ts +17 -0
  407. package/dist/lib/lib/i18n.d.ts +2 -0
  408. package/dist/lib/lib/index.d.ts +5 -0
  409. package/dist/lib/lib/markdown-utils.d.ts +9 -0
  410. package/dist/lib/lib/project-scoped-storage.d.ts +31 -0
  411. package/dist/lib/lib/project-store-sync.d.ts +12 -0
  412. package/dist/lib/lib/query-client.d.ts +2 -0
  413. package/dist/lib/lib/session-utils.d.ts +8 -0
  414. package/dist/lib/lib/storage.d.ts +20 -0
  415. package/dist/lib/lib/sub-spec-utils.d.ts +17 -0
  416. package/dist/lib/lib/token-utils.d.ts +14 -0
  417. package/dist/lib/lib/use-chat.d.ts +41 -0
  418. package/dist/lib/lib/use-models-registry.d.ts +28 -0
  419. package/dist/lib/lib/utils.d.ts +8 -0
  420. package/dist/lib/library.d.ts +4 -0
  421. package/dist/lib/locales/en/common.json.d.ts +1422 -0
  422. package/dist/lib/locales/en/errors.json.d.ts +22 -0
  423. package/dist/lib/locales/en/help.json.d.ts +11 -0
  424. package/dist/lib/locales/zh-CN/common.json.d.ts +1421 -0
  425. package/dist/lib/locales/zh-CN/errors.json.d.ts +22 -0
  426. package/dist/lib/locales/zh-CN/help.json.d.ts +11 -0
  427. package/dist/lib/main.d.ts +0 -0
  428. package/dist/lib/pages/ChatSettingsPage.d.ts +1 -0
  429. package/dist/lib/pages/ContextPage.d.ts +6 -0
  430. package/dist/lib/pages/DashboardPage.d.ts +1 -0
  431. package/dist/lib/pages/DependenciesPage.d.ts +1 -0
  432. package/dist/lib/pages/MachinesPage.d.ts +1 -0
  433. package/dist/lib/pages/ProjectsPage.d.ts +1 -0
  434. package/dist/lib/pages/SessionDetailPage.d.ts +1 -0
  435. package/dist/lib/pages/SessionsPage.d.ts +1 -0
  436. package/dist/lib/pages/SettingsPage.d.ts +1 -0
  437. package/dist/lib/pages/SpecDetailPage.d.ts +1 -0
  438. package/dist/lib/pages/SpecsPage.d.ts +1 -0
  439. package/dist/lib/pages/StatsPage.d.ts +1 -0
  440. package/dist/lib/pages/settings/AppearanceSettingsPage.d.ts +1 -0
  441. package/dist/lib/pages/settings/ModelsSettingsPage.d.ts +1 -0
  442. package/dist/lib/pages/settings/RunnersSettingsPage.d.ts +1 -0
  443. package/dist/lib/router/projectRoutes.d.ts +9 -0
  444. package/dist/lib/router.d.ts +12 -0
  445. package/dist/lib/stores/chat-preferences.d.ts +28 -0
  446. package/dist/lib/stores/display.d.ts +19 -0
  447. package/dist/lib/stores/layout.d.ts +34 -0
  448. package/dist/lib/stores/machine.d.ts +16 -0
  449. package/dist/lib/stores/search.d.ts +19 -0
  450. package/dist/lib/stores/sessions-ui.d.ts +12 -0
  451. package/dist/lib/stores/settings-filters.d.ts +69 -0
  452. package/dist/lib/stores/specs-preferences.d.ts +57 -0
  453. package/dist/lib/stores/theme.d.ts +9 -0
  454. package/dist/lib/types/api.d.ts +294 -0
  455. package/dist/lib/types/chat-config.d.ts +29 -0
  456. package/dist/lib/types/index.d.ts +1 -0
  457. package/dist/lib/types/models-registry.d.ts +65 -0
  458. package/dist/lib/types/specs.d.ts +170 -0
  459. package/dist/linear-D6e8ml0A.js +259 -0
  460. package/dist/logo-dark-bg-dev.svg +28 -0
  461. package/dist/logo-dev.svg +25 -0
  462. package/dist/logo-with-bg-dev.svg +28 -0
  463. package/dist/mermaid-parser.core-CJoVqMU2.js +14177 -0
  464. package/dist/min-D0H_bVmw.js +38 -0
  465. package/dist/mindmap-definition-VGOIOE7T-c7LG-I9l.js +784 -0
  466. package/dist/ordinal-B6-f3MAq.js +61 -0
  467. package/dist/packet-BFZMPI3H-Xg1qsh9M.js +5 -0
  468. package/dist/pie-7BOR55EZ-DTOFOZjt.js +5 -0
  469. package/dist/pieDiagram-ADFJNKIX-Dq5FSMbe.js +161 -0
  470. package/dist/quadrantDiagram-AYHSOK5B-CSC6AaCS.js +1022 -0
  471. package/dist/radar-NHE76QYJ-C6sDWiPq.js +5 -0
  472. package/dist/requirementDiagram-UZGBJVZJ-B1VMLqi1.js +850 -0
  473. package/dist/sankeyDiagram-TZEHDZUN-5yhAl98J.js +810 -0
  474. package/dist/sequenceDiagram-WL72ISMW-BdRUPrKR.js +2511 -0
  475. package/dist/stateDiagram-FKZM4ZOC-ieQQjJqa.js +263 -0
  476. package/dist/stateDiagram-v2-4FDKWEC3-CMJV60i9.js +16 -0
  477. package/dist/timeline-definition-IT6M3QCI-CgpuLO53.js +795 -0
  478. package/dist/treemap-KMMF4GRG-C-mDpIlT.js +5 -0
  479. package/dist/ui.css +1 -0
  480. package/dist/xychartDiagram-PRI3JC2R-CQmC0pjv.js +1340 -0
  481. package/package.json +17 -7
  482. package/src/index.css +615 -0
  483. package/dist/assets/_baseUniq-C4bkXOdh-BJ3-SRjw.js +0 -1
  484. package/dist/assets/_baseUniq-DuAmhUI0.js +0 -1
  485. package/dist/assets/angular-html-DPB4Rf0C-BGgsGAY9.js +0 -1
  486. package/dist/assets/angular-ts-CTOR2ofC-k8fsuEIJ.js +0 -1
  487. package/dist/assets/apl-CjNiDgad-CT4Sbzkr.js +0 -1
  488. package/dist/assets/arc-DFohBtPV-Cpx6wOGp.js +0 -1
  489. package/dist/assets/arc-DlFrPohT.js +0 -1
  490. package/dist/assets/architectureDiagram-VXUJARFQ-DieXp-qW.js +0 -36
  491. package/dist/assets/architectureDiagram-VXUJARFQ-_R9_zrc5-D59ZHzYq.js +0 -36
  492. package/dist/assets/astro-CFFExE8Q-HUi9-hH-.js +0 -1
  493. package/dist/assets/blade-D0HyNvCw-B6w5bG5s.js +0 -1
  494. package/dist/assets/blockDiagram-VD42YOAC-CiyHYW6w-D8Afi1Q2.js +0 -122
  495. package/dist/assets/blockDiagram-VD42YOAC-Cr1Ymz-c.js +0 -122
  496. package/dist/assets/bsl-NkNNwerW-COH_2WFP.js +0 -1
  497. package/dist/assets/c4Diagram-YG6GDRKO-D9NuNc3r-Cre6pw7Q.js +0 -10
  498. package/dist/assets/c4Diagram-YG6GDRKO-w76CB7zN.js +0 -10
  499. package/dist/assets/cairo-DM6WF2e3-DtzH3ucv.js +0 -1
  500. package/dist/assets/channel-C9MJ1fN1.js +0 -1
  501. package/dist/assets/channel-mhjF1lKa-DRGKdmbU.js +0 -1
  502. package/dist/assets/chunk-4BX2VUAB-C4VXUg_9.js +0 -1
  503. package/dist/assets/chunk-4BX2VUAB-D4Zhvat9-CJ2cQFgO.js +0 -1
  504. package/dist/assets/chunk-55IACEB6-C_MzxCLx-DeYSk-O4.js +0 -1
  505. package/dist/assets/chunk-55IACEB6-DUEMD_vX.js +0 -1
  506. package/dist/assets/chunk-B4BG7PRW-DlwRLtQb.js +0 -165
  507. package/dist/assets/chunk-B4BG7PRW-Q8H7OQ1o-CGrle4fB.js +0 -165
  508. package/dist/assets/chunk-DI55MBZ5-DqvoeGRX.js +0 -220
  509. package/dist/assets/chunk-DI55MBZ5-qwPYmgAw-BDnXruql.js +0 -220
  510. package/dist/assets/chunk-FMBD7UC4-DhXvRHU3-Ck_6Dma3.js +0 -15
  511. package/dist/assets/chunk-FMBD7UC4-eFjHw5gB.js +0 -15
  512. package/dist/assets/chunk-QN33PNHL-CLwAcvO2-CC8RVa2u.js +0 -1
  513. package/dist/assets/chunk-QN33PNHL-CXXtNr0q.js +0 -1
  514. package/dist/assets/chunk-QZHKN3VN-3tLb49S_-7wBVjYM3.js +0 -1
  515. package/dist/assets/chunk-QZHKN3VN-HkJTS77T.js +0 -1
  516. package/dist/assets/chunk-TZMSLE5B-CC9IwurK.js +0 -1
  517. package/dist/assets/chunk-TZMSLE5B-DfaYobmr-uCvXwJUe.js +0 -1
  518. package/dist/assets/classDiagram-2ON5EDUG-Dl5mwgLk.js +0 -1
  519. package/dist/assets/classDiagram-2ON5EDUG-xB0RyXwt-B4jZvvsf.js +0 -1
  520. package/dist/assets/classDiagram-v2-WZHVMYZB-Dl5mwgLk.js +0 -1
  521. package/dist/assets/classDiagram-v2-WZHVMYZB-xB0RyXwt-B4jZvvsf.js +0 -1
  522. package/dist/assets/clone-B-ElcgAC.js +0 -1
  523. package/dist/assets/clone-DqT6If4_-aVfgI0F6.js +0 -1
  524. package/dist/assets/cobol-HihOMwht-CEH5cA2t.js +0 -1
  525. package/dist/assets/code-block-37QAKDTI-CWOOD74I-DcBaZRtr.js +0 -2
  526. package/dist/assets/coffee-DGBR_nr_-BGq2hPi0.js +0 -1
  527. package/dist/assets/cose-bilkent-S5V4N54A-BYenyErH.js +0 -1
  528. package/dist/assets/cose-bilkent-S5V4N54A-DBS7wwrE-CwpmLGLG.js +0 -1
  529. package/dist/assets/cpp-Cj177cuW-CX9fafSh.js +0 -1
  530. package/dist/assets/crystal-CRJyc4G--DiK3qIky.js +0 -1
  531. package/dist/assets/csv-CmYOceLb-Co7V7EpZ.js +0 -1
  532. package/dist/assets/cytoscape.esm-Cvf3sx9F-DgU3JdRZ.js +0 -321
  533. package/dist/assets/dagre-6UL2VRFP-DC4sfLGs.js +0 -4
  534. package/dist/assets/dagre-6UL2VRFP-Lv6cE2gX-BtLPrZf0.js +0 -4
  535. package/dist/assets/defaultLocale-D7EN2tov-DTlwZUNI.js +0 -1
  536. package/dist/assets/diagram-PSM6KHXK-8QKT-Vki-CYrLTehq.js +0 -24
  537. package/dist/assets/diagram-PSM6KHXK-DSaG1dLc.js +0 -24
  538. package/dist/assets/diagram-QEK2KX5R-Bqh-tlSV-BSsdJ6p7.js +0 -43
  539. package/dist/assets/diagram-QEK2KX5R-z8D6ilji.js +0 -43
  540. package/dist/assets/diagram-S2PKOQOG-Csj0p-s--BSyJI4Aq.js +0 -24
  541. package/dist/assets/diagram-S2PKOQOG-gFoeY1VL.js +0 -24
  542. package/dist/assets/edge-BYQkOzbF-DYO1BWoQ.js +0 -1
  543. package/dist/assets/elixir-Dh036GMp-Bmki-TVL.js +0 -1
  544. package/dist/assets/elm-BtNbw_Cd-Bp18OckW.js +0 -1
  545. package/dist/assets/erDiagram-Q2GNP2WA-oZvzX2B_.js +0 -60
  546. package/dist/assets/erDiagram-Q2GNP2WA-sDpapMNP-BlW75l-5.js +0 -60
  547. package/dist/assets/erb-CS4zioBv-CIsDXqOo.js +0 -1
  548. package/dist/assets/erlang-DNcDT8Hi-BWqZUIhL.js +0 -1
  549. package/dist/assets/flowDiagram-NV44I4VS-CitCGiJE-2Yn6xqge.js +0 -162
  550. package/dist/assets/flowDiagram-NV44I4VS-DNfZjFHv.js +0 -162
  551. package/dist/assets/fortran-fixed-form-B67KFkXH-D1ymqiEx.js +0 -1
  552. package/dist/assets/fsharp-CYOiIVNx-C_zLmMdw.js +0 -1
  553. package/dist/assets/ganttDiagram-JELNMOA3-CI7qwp_G.js +0 -267
  554. package/dist/assets/ganttDiagram-JELNMOA3-DAaUYzNs-CqERSUiR.js +0 -267
  555. package/dist/assets/gdresource-BwtMIoBm-DAu1Gww7.js +0 -1
  556. package/dist/assets/git-commit-Bd32YZ0K-DKnZnecv.js +0 -1
  557. package/dist/assets/git-rebase-ZWUFO_T4-PODeWoq4.js +0 -1
  558. package/dist/assets/gitGraphDiagram-NY62KEGX-CTRy4vBb.js +0 -65
  559. package/dist/assets/gitGraphDiagram-NY62KEGX-lj732X3H-CLhZmLfE.js +0 -65
  560. package/dist/assets/glimmer-js-DkxNrfPT-CYvKIGv7.js +0 -1
  561. package/dist/assets/glimmer-ts-D6YZEmK_-BwkeDeeu.js +0 -1
  562. package/dist/assets/glsl-CkUcVZNK-Bf0UjSP5.js +0 -1
  563. package/dist/assets/graph-Bg_3T7Ud-8p9G4Jrq.js +0 -1
  564. package/dist/assets/graph-C_DQAJXv.js +0 -1
  565. package/dist/assets/graphql-CBu2ehBn-Cr253Gy9.js +0 -1
  566. package/dist/assets/hack-ItRNKiEb-Dz4s7CVj.js +0 -1
  567. package/dist/assets/haml-NZLVzu_R-C8mKtd0e.js +0 -1
  568. package/dist/assets/handlebars-mxStpSE7-B5GnhLue.js +0 -1
  569. package/dist/assets/html-B50bmoVb-Cb86E5ej.js +0 -1
  570. package/dist/assets/html-derivative-C6bxFbFW-Iy97gZi_.js +0 -1
  571. package/dist/assets/http-DLvAkeD--BNfsu0Nw.js +0 -1
  572. package/dist/assets/hurl-CgkFN90t-RkzLjdXO.js +0 -1
  573. package/dist/assets/hxml-GbqSQCLa-MyDbT556.js +0 -1
  574. package/dist/assets/index-BA4_7VkX.css +0 -1
  575. package/dist/assets/index-BzhKcNOt.js +0 -2548
  576. package/dist/assets/infoDiagram-WHAUD3N6-BbjOpAi3-DFq7Zumb.js +0 -2
  577. package/dist/assets/infoDiagram-WHAUD3N6-BjgZuatx.js +0 -2
  578. package/dist/assets/init-DjUOC4st-DHuO7-vr.js +0 -1
  579. package/dist/assets/jinja-CFW5uAwY-CRnS6Ysd.js +0 -1
  580. package/dist/assets/jison-DdreslRX-C_aDQymB.js +0 -1
  581. package/dist/assets/journeyDiagram-XKPGCS4Q-Cx34P8cj-Cuc55qMS.js +0 -139
  582. package/dist/assets/journeyDiagram-XKPGCS4Q-JTQBV6RS.js +0 -139
  583. package/dist/assets/julia-CZiKXNNP-DuHOepf6.js +0 -1
  584. package/dist/assets/kanban-definition-3W4ZIXB7-BP3ykzKL-BccB0ADl.js +0 -89
  585. package/dist/assets/kanban-definition-3W4ZIXB7-CB7Cc0I4.js +0 -89
  586. package/dist/assets/katex-XbL3y5x-.js +0 -261
  587. package/dist/assets/kdl-BNOv9TC3-U6gkEhfw.js +0 -1
  588. package/dist/assets/latex-DLWszopg-CIi2Hdhz.js +0 -1
  589. package/dist/assets/layout-BDWTKgn6.js +0 -1
  590. package/dist/assets/layout-Bft_7Aja-CYwoLCqB.js +0 -1
  591. package/dist/assets/linear-BDIyMYXP-Va3gUrsu.js +0 -1
  592. package/dist/assets/liquid-CHzkx3jT-zQly3uxw.js +0 -1
  593. package/dist/assets/lua-kX5WP_P5-BiSz3S93.js +0 -1
  594. package/dist/assets/marko-Ns9BYtDO-BWXOr_MP.js +0 -1
  595. package/dist/assets/mdc-uaivvctV-DArzT8kn.js +0 -1
  596. package/dist/assets/min-CzDI_uFs.js +0 -1
  597. package/dist/assets/min-g4o2CnuX-D41MdeNm.js +0 -1
  598. package/dist/assets/mindmap-definition-VGOIOE7T-BFemN0Et.js +0 -68
  599. package/dist/assets/mindmap-definition-VGOIOE7T-CteUNe1z-BgC77XEX.js +0 -68
  600. package/dist/assets/nginx-5vhPAEw3-DWisHew1.js +0 -1
  601. package/dist/assets/nim-QAjRdh9w-DCY1hsTS.js +0 -1
  602. package/dist/assets/ordinal-B6-f3MAq-Pc8f3NoK.js +0 -1
  603. package/dist/assets/perl-DkVrgJBg-BOYFiEPK.js +0 -1
  604. package/dist/assets/php-j2zCzTEz-D4sqbyu8.js +0 -1
  605. package/dist/assets/pieDiagram-ADFJNKIX-2fKAK3CV.js +0 -30
  606. package/dist/assets/pieDiagram-ADFJNKIX-COS6mtim-2rnhimKu.js +0 -30
  607. package/dist/assets/pug-XOw9Q1Ho-ibTSJqKJ.js +0 -1
  608. package/dist/assets/qml-rTNXsquU-ChczqDSS.js +0 -1
  609. package/dist/assets/quadrantDiagram-AYHSOK5B-Del1ofYi.js +0 -7
  610. package/dist/assets/quadrantDiagram-AYHSOK5B-DmRa7VCS-D5jPyfOD.js +0 -7
  611. package/dist/assets/razor-C5CyrFEt-BEqhH4vI.js +0 -1
  612. package/dist/assets/requirementDiagram-UZGBJVZJ-CcQIz-20-DYIFGLWB.js +0 -64
  613. package/dist/assets/requirementDiagram-UZGBJVZJ-aYICY3Ph.js +0 -64
  614. package/dist/assets/rst-CcbeA9zE-DJw32adD.js +0 -1
  615. package/dist/assets/ruby-DMPw6uKF-che4axXI.js +0 -1
  616. package/dist/assets/sankeyDiagram-TZEHDZUN-CSxXWX7b.js +0 -10
  617. package/dist/assets/sankeyDiagram-TZEHDZUN-CpcshR0Z-Ds6_Y4XZ.js +0 -10
  618. package/dist/assets/sas-fpEvgATw-BHxbuS_h.js +0 -1
  619. package/dist/assets/scss-B1FaCqwR-D5j8Lzl0.js +0 -1
  620. package/dist/assets/sequenceDiagram-WL72ISMW-B1iDbV8x-Ba6xj9am.js +0 -145
  621. package/dist/assets/sequenceDiagram-WL72ISMW-_zLrGWf3.js +0 -145
  622. package/dist/assets/shaderlab-Cr62-Wb4-DBlXx3uy.js +0 -1
  623. package/dist/assets/shellsession-DiDJNQdy-DyhC3EVy.js +0 -1
  624. package/dist/assets/soy-C1-6njHa-gzSMiW6X.js +0 -1
  625. package/dist/assets/sparql-B0KWFEri-hRQCfo7w.js +0 -1
  626. package/dist/assets/stata-B8c5fTjX-C93OJGXX.js +0 -1
  627. package/dist/assets/stateDiagram-FKZM4ZOC-DIutB6RS-BM8RqJKW.js +0 -1
  628. package/dist/assets/stateDiagram-FKZM4ZOC-DOd4P3H-.js +0 -1
  629. package/dist/assets/stateDiagram-v2-4FDKWEC3-BKEaZomO-8zJq3ge5.js +0 -1
  630. package/dist/assets/stateDiagram-v2-4FDKWEC3-nRAFnllC.js +0 -1
  631. package/dist/assets/svelte-CYf4HR3U-CATdMkt-.js +0 -1
  632. package/dist/assets/talonscript-CFF3LF_O-Cc6Jm0TJ.js +0 -1
  633. package/dist/assets/templ-peLZIM2D-BFctp3GS.js +0 -1
  634. package/dist/assets/tex-BvKThJ8p-DLMkzFBl.js +0 -1
  635. package/dist/assets/timeline-definition-IT6M3QCI-BKxuM11p.js +0 -61
  636. package/dist/assets/timeline-definition-IT6M3QCI-D1yY4TSO-DoVTwDMg.js +0 -61
  637. package/dist/assets/treemap-KMMF4GRG-ByJ02xk5.js +0 -128
  638. package/dist/assets/treemap-KMMF4GRG-KtkxYt13-CZA1d7fY.js +0 -128
  639. package/dist/assets/ts-tags-ioVe2PKw-KHYt7rNi.js +0 -1
  640. package/dist/assets/twig-CcRLVyUg-C7btHcUR.js +0 -1
  641. package/dist/assets/vue-DXEmyXn9-Bb3W6Xr4.js +0 -1
  642. package/dist/assets/vue-html-j9xNEdu3-CHybns-J.js +0 -1
  643. package/dist/assets/vue-vine-D41-N99t-CQUxmJgq.js +0 -1
  644. package/dist/assets/xml-C2J0sS9M-wPCL2nsB.js +0 -1
  645. package/dist/assets/xsl-BmSZphgC-CVyS_1ZI.js +0 -1
  646. package/dist/assets/xychartDiagram-PRI3JC2R-CGA3Bi-e.js +0 -7
  647. package/dist/assets/xychartDiagram-PRI3JC2R-a_g9ptTp-BX4uGx-D.js +0 -7
  648. /package/dist/assets/{abap-Y8Dl9g_6-BdImnpbu.js → abap-BdImnpbu.js} +0 -0
  649. /package/dist/assets/{actionscript-3-DZzbMeqX-CfeIJUat.js → actionscript-3-CfeIJUat.js} +0 -0
  650. /package/dist/assets/{ada-vP6ak0IW-bCR0ucgS.js → ada-bCR0ucgS.js} +0 -0
  651. /package/dist/assets/{andromeeda-BIpZ7gaU-C-Jbm3Hp.js → andromeeda-C-Jbm3Hp.js} +0 -0
  652. /package/dist/assets/{apache-BUjz-sD2-Pmp26Uib.js → apache-Pmp26Uib.js} +0 -0
  653. /package/dist/assets/{apex-OyTfjCYK-D8_7TLub.js → apex-D8_7TLub.js} +0 -0
  654. /package/dist/assets/{applescript-BPx7YFFu-Co6uUVPk.js → applescript-Co6uUVPk.js} +0 -0
  655. /package/dist/assets/{ara-Z2fSOxSw-BRHolxvo.js → ara-BRHolxvo.js} +0 -0
  656. /package/dist/assets/{asciidoc-B-pCoB3G-Dv7Oe6Be.js → asciidoc-Dv7Oe6Be.js} +0 -0
  657. /package/dist/assets/{asm-BTWLY5ym-D_Q5rh1f.js → asm-D_Q5rh1f.js} +0 -0
  658. /package/dist/assets/{aurora-x-BwoVEUWZ-D-2ljcwZ.js → aurora-x-D-2ljcwZ.js} +0 -0
  659. /package/dist/assets/{awk-Fb0P9dkn-DMzUqQB5.js → awk-DMzUqQB5.js} +0 -0
  660. /package/dist/assets/{ayu-dark-DG7aLdHp-CmMr59Fi.js → ayu-dark-CmMr59Fi.js} +0 -0
  661. /package/dist/assets/{ballerina-oZK-YekG-BFfxhgS-.js → ballerina-BFfxhgS-.js} +0 -0
  662. /package/dist/assets/{bat-0FvbqU9S-BkioyH1T.js → bat-BkioyH1T.js} +0 -0
  663. /package/dist/assets/{beancount-DqJEb89h-k_qm7-4y.js → beancount-k_qm7-4y.js} +0 -0
  664. /package/dist/assets/{berry-DODBq_Ff-uYugtg8r.js → berry-uYugtg8r.js} +0 -0
  665. /package/dist/assets/{bibtex-EULQRLY5-CHM0blh-.js → bibtex-CHM0blh-.js} +0 -0
  666. /package/dist/assets/{bicep-BorU73w0-Bmn6On1c.js → bicep-Bmn6On1c.js} +0 -0
  667. /package/dist/assets/{c-eeMepfLm-BIGW1oBm.js → c-BIGW1oBm.js} +0 -0
  668. /package/dist/assets/{c3-Bt581sCe-VCDPK7BO.js → c3-VCDPK7BO.js} +0 -0
  669. /package/dist/assets/{cadence-02UX7mW8-Bv_4Rxtq.js → cadence-Bv_4Rxtq.js} +0 -0
  670. /package/dist/assets/{catppuccin-frappe-D3cH2rXe-DFWUc33u.js → catppuccin-frappe-DFWUc33u.js} +0 -0
  671. /package/dist/assets/{catppuccin-latte-C0LRGUW4-C9dUb6Cb.js → catppuccin-latte-C9dUb6Cb.js} +0 -0
  672. /package/dist/assets/{catppuccin-macchiato-c5wQ11TT-DQyhUUbL.js → catppuccin-macchiato-DQyhUUbL.js} +0 -0
  673. /package/dist/assets/{catppuccin-mocha-WMD6Qvya-D87Tk5Gz.js → catppuccin-mocha-D87Tk5Gz.js} +0 -0
  674. /package/dist/assets/{clarity-PKm5CwqM-D53aC0YG.js → clarity-D53aC0YG.js} +0 -0
  675. /package/dist/assets/{clojure-CXJfHrL3-P80f7IUj.js → clojure-P80f7IUj.js} +0 -0
  676. /package/dist/assets/{cmake-BJz8BOTU-D1j8_8rp.js → cmake-D1j8_8rp.js} +0 -0
  677. /package/dist/assets/{codeowners-Bt9yU6NX-Bp6g37R7.js → codeowners-Bp6g37R7.js} +0 -0
  678. /package/dist/assets/{codeql-DHkodjjI-DsOJ9woJ.js → codeql-DsOJ9woJ.js} +0 -0
  679. /package/dist/assets/{common-lisp-EVqT9Zhp-Cg-RD9OK.js → common-lisp-Cg-RD9OK.js} +0 -0
  680. /package/dist/assets/{coq-B0L9upzn-DkFqJrB1.js → coq-DkFqJrB1.js} +0 -0
  681. /package/dist/assets/{csharp-C7yUs7-w-K5feNrxe.js → csharp-K5feNrxe.js} +0 -0
  682. /package/dist/assets/{css-CECN5uSL-DPfMkruS.js → css-DPfMkruS.js} +0 -0
  683. /package/dist/assets/{cue-ZzumE7IT-D82EKSYY.js → cue-D82EKSYY.js} +0 -0
  684. /package/dist/assets/{cypher-jpdmjtA6-COkxafJQ.js → cypher-COkxafJQ.js} +0 -0
  685. /package/dist/assets/{d-CBagWSwH-85-TOEBH.js → d-85-TOEBH.js} +0 -0
  686. /package/dist/assets/{dark-plus-pUHDTVV0-C3mMm8J8.js → dark-plus-C3mMm8J8.js} +0 -0
  687. /package/dist/assets/{dart-6ObCrKr9-CF10PKvl.js → dart-CF10PKvl.js} +0 -0
  688. /package/dist/assets/{dax-CcDT-8dH-CEL-wOlO.js → dax-CEL-wOlO.js} +0 -0
  689. /package/dist/assets/{desktop-B93p9R9O-BmXAJ9_W.js → desktop-BmXAJ9_W.js} +0 -0
  690. /package/dist/assets/{diff-BxzP2J8R-D97Zzqfu.js → diff-D97Zzqfu.js} +0 -0
  691. /package/dist/assets/{docker-CsHqm9tx-BcOcwvcX.js → docker-BcOcwvcX.js} +0 -0
  692. /package/dist/assets/{dotenv-BMjVjUL1-Da5cRb03.js → dotenv-Da5cRb03.js} +0 -0
  693. /package/dist/assets/{dracula-BtZx2Kac-BzJJZx-M.js → dracula-BzJJZx-M.js} +0 -0
  694. /package/dist/assets/{dracula-soft-BKa-aqBv-BXkSAIEj.js → dracula-soft-BXkSAIEj.js} +0 -0
  695. /package/dist/assets/{dream-maker-PAx17jaB-BtqSS_iP.js → dream-maker-BtqSS_iP.js} +0 -0
  696. /package/dist/assets/{emacs-lisp-Cfxdx5D--C9XAeP06.js → emacs-lisp-C9XAeP06.js} +0 -0
  697. /package/dist/assets/{everforest-dark-DMCBqXCK-BgDCqdQA.js → everforest-dark-BgDCqdQA.js} +0 -0
  698. /package/dist/assets/{everforest-light-BbXl82Em-C8M2exoo.js → everforest-light-C8M2exoo.js} +0 -0
  699. /package/dist/assets/{fennel-N4WcXuKx-BYunw83y.js → fennel-BYunw83y.js} +0 -0
  700. /package/dist/assets/{fish-BTDEUgqH-BvzEVeQv.js → fish-BvzEVeQv.js} +0 -0
  701. /package/dist/assets/{fluent-BMXUxfv1-C4IJs8-o.js → fluent-C4IJs8-o.js} +0 -0
  702. /package/dist/assets/{fortran-free-form-CwqYvCLJ-BxgE0vQu.js → fortran-free-form-BxgE0vQu.js} +0 -0
  703. /package/dist/assets/{gdscript-BifyeYhI-DTMYz4Jt.js → gdscript-DTMYz4Jt.js} +0 -0
  704. /package/dist/assets/{gdshader-Bk8fF6yr-DkwncUOv.js → gdshader-DkwncUOv.js} +0 -0
  705. /package/dist/assets/{genie-DzUvd7U9-D0YGMca9.js → genie-D0YGMca9.js} +0 -0
  706. /package/dist/assets/{gherkin-DHRaV0YP-DyxjwDmM.js → gherkin-DyxjwDmM.js} +0 -0
  707. /package/dist/assets/{github-dark-DenFmJkN-DHJKELXO.js → github-dark-DHJKELXO.js} +0 -0
  708. /package/dist/assets/{github-dark-default-BJPUVz4H-Cuk6v7N8.js → github-dark-default-Cuk6v7N8.js} +0 -0
  709. /package/dist/assets/{github-dark-dimmed-DUshB20C-DH5Ifo-i.js → github-dark-dimmed-DH5Ifo-i.js} +0 -0
  710. /package/dist/assets/{github-dark-high-contrast-D3aGCnF8-E3gJ1_iC.js → github-dark-high-contrast-E3gJ1_iC.js} +0 -0
  711. /package/dist/assets/{github-light-JYsPkUQd-DAi9KRSo.js → github-light-DAi9KRSo.js} +0 -0
  712. /package/dist/assets/{github-light-default-D99KPAby-D7oLnXFd.js → github-light-default-D7oLnXFd.js} +0 -0
  713. /package/dist/assets/{github-light-high-contrast-BbmZE-Mp-BfjtVDDH.js → github-light-high-contrast-BfjtVDDH.js} +0 -0
  714. /package/dist/assets/{gleam-Bv284lvN-BspZqrRM.js → gleam-BspZqrRM.js} +0 -0
  715. /package/dist/assets/{gn-XtJxiLa4-n2N0HUVH.js → gn-n2N0HUVH.js} +0 -0
  716. /package/dist/assets/{gnuplot-yPG9-sE_-DdkO51Og.js → gnuplot-DdkO51Og.js} +0 -0
  717. /package/dist/assets/{go-ChxJuLYK-Dn2_MT6a.js → go-Dn2_MT6a.js} +0 -0
  718. /package/dist/assets/{groovy-CJQTphOW-gcz8RCvz.js → groovy-gcz8RCvz.js} +0 -0
  719. /package/dist/assets/{gruvbox-dark-hard-C5HOtKIh-CFHQjOhq.js → gruvbox-dark-hard-CFHQjOhq.js} +0 -0
  720. /package/dist/assets/{gruvbox-dark-medium-FVgwJHuz-GsRaNv29.js → gruvbox-dark-medium-GsRaNv29.js} +0 -0
  721. /package/dist/assets/{gruvbox-dark-soft-B46F314v-CVdnzihN.js → gruvbox-dark-soft-CVdnzihN.js} +0 -0
  722. /package/dist/assets/{gruvbox-light-hard-CJD38wDZ-CH1njM8p.js → gruvbox-light-hard-CH1njM8p.js} +0 -0
  723. /package/dist/assets/{gruvbox-light-medium-BlIhMYTA-DRw_LuNl.js → gruvbox-light-medium-DRw_LuNl.js} +0 -0
  724. /package/dist/assets/{gruvbox-light-soft-DoPHyLVZ-hJgmCMqR.js → gruvbox-light-soft-hJgmCMqR.js} +0 -0
  725. /package/dist/assets/{haskell-WeIwNIP6-Df6bDoY_.js → haskell-Df6bDoY_.js} +0 -0
  726. /package/dist/assets/{haxe-TztHsm5T-CzTSHFRz.js → haxe-CzTSHFRz.js} +0 -0
  727. /package/dist/assets/{hcl-D438OF-I-BWvSN4gD.js → hcl-BWvSN4gD.js} +0 -0
  728. /package/dist/assets/{hjson-DYBUbqOl-D5-asLiD.js → hjson-D5-asLiD.js} +0 -0
  729. /package/dist/assets/{hlsl-Bk8TCZNL-D3lLCCz7.js → hlsl-D3lLCCz7.js} +0 -0
  730. /package/dist/assets/{houston-BDYrDoDW-DnULxvSX.js → houston-DnULxvSX.js} +0 -0
  731. /package/dist/assets/{hy-Brt5EZ7--DFXneXwc.js → hy-DFXneXwc.js} +0 -0
  732. /package/dist/assets/{imba-CimUv-Uh-DGztddWO.js → imba-DGztddWO.js} +0 -0
  733. /package/dist/assets/{ini-BZIuRIvJ-BEwlwnbL.js → ini-BEwlwnbL.js} +0 -0
  734. /package/dist/assets/{java-DY6VlHhP-CylS5w8V.js → java-CylS5w8V.js} +0 -0
  735. /package/dist/assets/{javascript-C25yR2R2-wDzz0qaB.js → javascript-wDzz0qaB.js} +0 -0
  736. /package/dist/assets/{json-DxJze_jm-Cp-IABpG.js → json-Cp-IABpG.js} +0 -0
  737. /package/dist/assets/{json5-BT4Fjg39-C9tS-k6U.js → json5-C9tS-k6U.js} +0 -0
  738. /package/dist/assets/{jsonc-CHjZD8gR-Des-eS-w.js → jsonc-Des-eS-w.js} +0 -0
  739. /package/dist/assets/{jsonl-BGuvDmy9-DcaNXYhu.js → jsonl-DcaNXYhu.js} +0 -0
  740. /package/dist/assets/{jsonnet-Bx2cfsXg-DFQXde-d.js → jsonnet-DFQXde-d.js} +0 -0
  741. /package/dist/assets/{jssm-BcADi6EI-C2t-YnRu.js → jssm-C2t-YnRu.js} +0 -0
  742. /package/dist/assets/{jsx-BtKADgXT-g9-lgVsj.js → jsx-g9-lgVsj.js} +0 -0
  743. /package/dist/assets/{kanagawa-dragon-CiKur4Hl-CkXjmgJE.js → kanagawa-dragon-CkXjmgJE.js} +0 -0
  744. /package/dist/assets/{kanagawa-lotus-BKu-smKu-CfQXZHmo.js → kanagawa-lotus-CfQXZHmo.js} +0 -0
  745. /package/dist/assets/{kanagawa-wave-CQwozSzG-DWedfzmr.js → kanagawa-wave-DWedfzmr.js} +0 -0
  746. /package/dist/assets/{kotlin-ByBMgTeR-BdnUsdx6.js → kotlin-BdnUsdx6.js} +0 -0
  747. /package/dist/assets/{kusto-DH_XitHS-DZf3V79B.js → kusto-DZf3V79B.js} +0 -0
  748. /package/dist/assets/{laserwave-6a00oqik-DUszq2jm.js → laserwave-DUszq2jm.js} +0 -0
  749. /package/dist/assets/{lean-BnVxaZxY-BZvkOJ9d.js → lean-BZvkOJ9d.js} +0 -0
  750. /package/dist/assets/{less-B1GLI2Di-B1dDrJ26.js → less-B1dDrJ26.js} +0 -0
  751. /package/dist/assets/{light-plus-CZuVqSLX-B7mTdjB0.js → light-plus-B7mTdjB0.js} +0 -0
  752. /package/dist/assets/{llvm-co1rIKs3-BtvRca6l.js → llvm-BtvRca6l.js} +0 -0
  753. /package/dist/assets/{log-Al8wyEFV-2UxHyX5q.js → log-2UxHyX5q.js} +0 -0
  754. /package/dist/assets/{logo-DBa4JDzV-BtOb2qkB.js → logo-BtOb2qkB.js} +0 -0
  755. /package/dist/assets/{luau-UQyhudEE-C-HG3fhB.js → luau-C-HG3fhB.js} +0 -0
  756. /package/dist/assets/{make-CsMclxtr-CHLpvVh8.js → make-CHLpvVh8.js} +0 -0
  757. /package/dist/assets/{markdown-CrScaQ96-Cvjx9yec.js → markdown-Cvjx9yec.js} +0 -0
  758. /package/dist/assets/{material-theme-D6KBX41T-D5KoaKCx.js → material-theme-D5KoaKCx.js} +0 -0
  759. /package/dist/assets/{material-theme-darker-CkRroheE-BfHTSMKl.js → material-theme-darker-BfHTSMKl.js} +0 -0
  760. /package/dist/assets/{material-theme-lighter-BUBw43Yz-B0m2ddpp.js → material-theme-lighter-B0m2ddpp.js} +0 -0
  761. /package/dist/assets/{material-theme-ocean-ClGX14Ja-CyktbL80.js → material-theme-ocean-CyktbL80.js} +0 -0
  762. /package/dist/assets/{material-theme-palenight-C1RVm8K1-Csfq5Kiy.js → material-theme-palenight-Csfq5Kiy.js} +0 -0
  763. /package/dist/assets/{matlab-BOAaUVP0-D7o27uSR.js → matlab-D7o27uSR.js} +0 -0
  764. /package/dist/assets/{mdx-BOhZZUJ8-Cmh6b_Ma.js → mdx-Cmh6b_Ma.js} +0 -0
  765. /package/dist/assets/{mermaid-C3rz4dYh-mWjccvbQ.js → mermaid-mWjccvbQ.js} +0 -0
  766. /package/dist/assets/{min-dark-C7ak0t6c-CafNBF8u.js → min-dark-CafNBF8u.js} +0 -0
  767. /package/dist/assets/{min-light-CKFxVcPp-CTRr51gU.js → min-light-CTRr51gU.js} +0 -0
  768. /package/dist/assets/{mipsasm-CTx18fBl-CKIfxQSi.js → mipsasm-CKIfxQSi.js} +0 -0
  769. /package/dist/assets/{mojo-CgKe2b8g-B93PlW-d.js → mojo-B93PlW-d.js} +0 -0
  770. /package/dist/assets/{monokai-C1KBYcO0-D4h5O-jR.js → monokai-D4h5O-jR.js} +0 -0
  771. /package/dist/assets/{moonbit-NVPuhMCm-Ba13S78F.js → moonbit-Ba13S78F.js} +0 -0
  772. /package/dist/assets/{move-F-dICmj2-Bu9oaDYs.js → move-Bu9oaDYs.js} +0 -0
  773. /package/dist/assets/{narrat-DmhDCBs--DRg8JJMk.js → narrat-DRg8JJMk.js} +0 -0
  774. /package/dist/assets/{nextflow-DmSVRGjG-BrzmwbiE.js → nextflow-BrzmwbiE.js} +0 -0
  775. /package/dist/assets/{night-owl-Bm2rzalh-C39BiMTA.js → night-owl-C39BiMTA.js} +0 -0
  776. /package/dist/assets/{nix-fTRXMGic-CwoSXNpI.js → nix-CwoSXNpI.js} +0 -0
  777. /package/dist/assets/{nord-CC5OiUXg-Ddv68eIx.js → nord-Ddv68eIx.js} +0 -0
  778. /package/dist/assets/{nushell-D8j3dhT--C-sUppwS.js → nushell-C-sUppwS.js} +0 -0
  779. /package/dist/assets/{objective-c-Itk8tzmv-DXmwc3jG.js → objective-c-DXmwc3jG.js} +0 -0
  780. /package/dist/assets/{objective-cpp-DGt5UKRO-CLxacb5B.js → objective-cpp-CLxacb5B.js} +0 -0
  781. /package/dist/assets/{ocaml-eSVK32Eg-C0hk2d4L.js → ocaml-C0hk2d4L.js} +0 -0
  782. /package/dist/assets/{one-dark-pro-DTA3VF0_-DVMEJ2y_.js → one-dark-pro-DVMEJ2y_.js} +0 -0
  783. /package/dist/assets/{one-light-D9sNaUtq-PoHY5YXO.js → one-light-PoHY5YXO.js} +0 -0
  784. /package/dist/assets/{openscad-Sp5uZ6f2-C4EeE6gA.js → openscad-C4EeE6gA.js} +0 -0
  785. /package/dist/assets/{pascal-xy8pJNns-D93ZcfNL.js → pascal-D93ZcfNL.js} +0 -0
  786. /package/dist/assets/{pkl-C-zSNmaA-u5AG7uiY.js → pkl-u5AG7uiY.js} +0 -0
  787. /package/dist/assets/{plastic-CSTz3KZp-3e1v2bzS.js → plastic-3e1v2bzS.js} +0 -0
  788. /package/dist/assets/{plsql-pVbGZfOv-ChMvpjG-.js → plsql-ChMvpjG-.js} +0 -0
  789. /package/dist/assets/{po-BNfHvqmm-BTJTHyun.js → po-BTJTHyun.js} +0 -0
  790. /package/dist/assets/{poimandres-C-VADXHD-CS3Unz2-.js → poimandres-CS3Unz2-.js} +0 -0
  791. /package/dist/assets/{polar-CAZahv3u-C0HS_06l.js → polar-C0HS_06l.js} +0 -0
  792. /package/dist/assets/{postcss-05aHdL-n-CXtECtnM.js → postcss-CXtECtnM.js} +0 -0
  793. /package/dist/assets/{powerquery-DI9HkTvs-CEu0bR-o.js → powerquery-CEu0bR-o.js} +0 -0
  794. /package/dist/assets/{powershell-Clc4ydu--Dpen1YoG.js → powershell-Dpen1YoG.js} +0 -0
  795. /package/dist/assets/{prisma-FZjmVtSl-Dd19v3D-.js → prisma-Dd19v3D-.js} +0 -0
  796. /package/dist/assets/{prolog-C5-yg4TO-CbFg5uaA.js → prolog-CbFg5uaA.js} +0 -0
  797. /package/dist/assets/{proto-C7QgialS-C7zT0LnQ.js → proto-C7zT0LnQ.js} +0 -0
  798. /package/dist/assets/{puppet-CUJHmnxV-BMWR74SV.js → puppet-BMWR74SV.js} +0 -0
  799. /package/dist/assets/{purescript-rUfGld-4-CklMAg4u.js → purescript-CklMAg4u.js} +0 -0
  800. /package/dist/assets/{python-BFNSHbwJ-B6aJPvgy.js → python-B6aJPvgy.js} +0 -0
  801. /package/dist/assets/{qmldir-BInDYbpo-C8lEn-DE.js → qmldir-C8lEn-DE.js} +0 -0
  802. /package/dist/assets/{qss-AeJTysr_-IeuSbFQv.js → qss-IeuSbFQv.js} +0 -0
  803. /package/dist/assets/{r-CSmzDPi7-Dspwwk_N.js → r-Dspwwk_N.js} +0 -0
  804. /package/dist/assets/{racket-B83wSAja-BqYA7rlc.js → racket-BqYA7rlc.js} +0 -0
  805. /package/dist/assets/{raku-nEQ4ZJJ7-DXvB9xmW.js → raku-DXvB9xmW.js} +0 -0
  806. /package/dist/assets/{red-7y8PH7HH-bN70gL4F.js → red-bN70gL4F.js} +0 -0
  807. /package/dist/assets/{reg-m_s_Kiip-C-SQnVFl.js → reg-C-SQnVFl.js} +0 -0
  808. /package/dist/assets/{regexp-BazyLpPg-CDVJQ6XC.js → regexp-CDVJQ6XC.js} +0 -0
  809. /package/dist/assets/{rel-BcRfyd6Q-C3B-1QV4.js → rel-C3B-1QV4.js} +0 -0
  810. /package/dist/assets/{riscv-Ce8MAQLP-BM1_JUlF.js → riscv-BM1_JUlF.js} +0 -0
  811. /package/dist/assets/{rose-pine-dawn-BulJcPZT-DHQR4-dF.js → rose-pine-dawn-DHQR4-dF.js} +0 -0
  812. /package/dist/assets/{rose-pine-moon-j6jiXKV8-D4_iv3hh.js → rose-pine-moon-D4_iv3hh.js} +0 -0
  813. /package/dist/assets/{rose-pine-BKc3yVeu-qdsjHGoJ.js → rose-pine-qdsjHGoJ.js} +0 -0
  814. /package/dist/assets/{rosmsg-Cz0w1km8-BJDFO7_C.js → rosmsg-BJDFO7_C.js} +0 -0
  815. /package/dist/assets/{rust-CLzF9zIN-B1yitclQ.js → rust-B1yitclQ.js} +0 -0
  816. /package/dist/assets/{sass-DxHp5rTx-Cj5Yp3dK.js → sass-Cj5Yp3dK.js} +0 -0
  817. /package/dist/assets/{scala-D4grkFkl-C151Ov-r.js → scala-C151Ov-r.js} +0 -0
  818. /package/dist/assets/{scheme-BCRWuEm4-C98Dy4si.js → scheme-C98Dy4si.js} +0 -0
  819. /package/dist/assets/{sdbl-B7T8abf4-DVxCFoDh.js → sdbl-DVxCFoDh.js} +0 -0
  820. /package/dist/assets/{shellscript-InADTalH-Yzrsuije.js → shellscript-Yzrsuije.js} +0 -0
  821. /package/dist/assets/{slack-dark-i7wN4OET-BthQWCQV.js → slack-dark-BthQWCQV.js} +0 -0
  822. /package/dist/assets/{slack-ochin-ndHf0LoP-DqwNpetd.js → slack-ochin-DqwNpetd.js} +0 -0
  823. /package/dist/assets/{smalltalk-BlI1_OkM-BERRCDM3.js → smalltalk-BERRCDM3.js} +0 -0
  824. /package/dist/assets/{snazzy-light-BlSJXAu4-Bw305WKR.js → snazzy-light-Bw305WKR.js} +0 -0
  825. /package/dist/assets/{solarized-dark-UTmkh7lw-DXbdFlpD.js → solarized-dark-DXbdFlpD.js} +0 -0
  826. /package/dist/assets/{solarized-light-BheCkDPT-L9t79GZl.js → solarized-light-L9t79GZl.js} +0 -0
  827. /package/dist/assets/{solidity-DUWnFhS6-rGO070M0.js → solidity-rGO070M0.js} +0 -0
  828. /package/dist/assets/{splunk-CRXR8A9s-BtCnVYZw.js → splunk-BtCnVYZw.js} +0 -0
  829. /package/dist/assets/{sql-Cn_v3PB0-BLtJtn59.js → sql-BLtJtn59.js} +0 -0
  830. /package/dist/assets/{ssh-config-DP-hNVbF-_ykCGR6B.js → ssh-config-_ykCGR6B.js} +0 -0
  831. /package/dist/assets/{stylus-CyKEU1Ej-BEDo0Tqx.js → stylus-BEDo0Tqx.js} +0 -0
  832. /package/dist/assets/{swift-9UzSvamq-Dg5xB15N.js → swift-Dg5xB15N.js} +0 -0
  833. /package/dist/assets/{synthwave-84-NU3C_KFZ-CbfX1IO0.js → synthwave-84-CbfX1IO0.js} +0 -0
  834. /package/dist/assets/{system-verilog-BCm7smPJ-CnnmHF94.js → system-verilog-CnnmHF94.js} +0 -0
  835. /package/dist/assets/{systemd-C-4qm6XH-4A_iFExJ.js → systemd-4A_iFExJ.js} +0 -0
  836. /package/dist/assets/{tasl-Cg_WBUAe-QIJgUcNo.js → tasl-QIJgUcNo.js} +0 -0
  837. /package/dist/assets/{tcl-DN7buRTF-dwOrl1Do.js → tcl-dwOrl1Do.js} +0 -0
  838. /package/dist/assets/{terraform-DGvcn9zM-BETggiCN.js → terraform-BETggiCN.js} +0 -0
  839. /package/dist/assets/{tokyo-night-DP4TmcQl-hegEt444.js → tokyo-night-hegEt444.js} +0 -0
  840. /package/dist/assets/{toml-DY62mUL_-vGWfd6FD.js → toml-vGWfd6FD.js} +0 -0
  841. /package/dist/assets/{tsv-BtvSkaG0-B_m7g4N7.js → tsv-B_m7g4N7.js} +0 -0
  842. /package/dist/assets/{tsx-B8rCNbgL-COt5Ahok.js → tsx-COt5Ahok.js} +0 -0
  843. /package/dist/assets/{turtle-_H59FV7D-BsS91CYL.js → turtle-BsS91CYL.js} +0 -0
  844. /package/dist/assets/{typescript-RycA9KXf-BPQ3VLAy.js → typescript-BPQ3VLAy.js} +0 -0
  845. /package/dist/assets/{typespec-DWqp-kUU-BGHnOYBU.js → typespec-BGHnOYBU.js} +0 -0
  846. /package/dist/assets/{typst-D_1QKWns-DHCkPAjA.js → typst-DHCkPAjA.js} +0 -0
  847. /package/dist/assets/{v-BPCNiyYe-BcVCzyr7.js → v-BcVCzyr7.js} +0 -0
  848. /package/dist/assets/{vala-uxaPR7d1-CsfeWuGM.js → vala-CsfeWuGM.js} +0 -0
  849. /package/dist/assets/{vb-D8_c5-KN-D17OF-Vu.js → vb-D17OF-Vu.js} +0 -0
  850. /package/dist/assets/{verilog-B-bybjPF-BQ8w6xss.js → verilog-BQ8w6xss.js} +0 -0
  851. /package/dist/assets/{vesper-BckBta1U-DU1UobuO.js → vesper-DU1UobuO.js} +0 -0
  852. /package/dist/assets/{vhdl-CUlNa8ac-CeAyd5Ju.js → vhdl-CeAyd5Ju.js} +0 -0
  853. /package/dist/assets/{viml-DsfA-sWm-CJc9bBzg.js → viml-CJc9bBzg.js} +0 -0
  854. /package/dist/assets/{vitesse-black-BoGvW84i-Bkuqu6BP.js → vitesse-black-Bkuqu6BP.js} +0 -0
  855. /package/dist/assets/{vitesse-dark-Cym-eLtO-D0r3Knsf.js → vitesse-dark-D0r3Knsf.js} +0 -0
  856. /package/dist/assets/{vitesse-light-CcmG315c-CVO1_9PV.js → vitesse-light-CVO1_9PV.js} +0 -0
  857. /package/dist/assets/{vyper-CPQuu50u-CDx5xZoG.js → vyper-CDx5xZoG.js} +0 -0
  858. /package/dist/assets/{wasm-DQxwEHae-CG6Dc4jp.js → wasm-CG6Dc4jp.js} +0 -0
  859. /package/dist/assets/{wasm-BBXxrAl7-MzD3tlZU.js → wasm-MzD3tlZU.js} +0 -0
  860. /package/dist/assets/{wenyan-pbVjoM9_-BV7otONQ.js → wenyan-BV7otONQ.js} +0 -0
  861. /package/dist/assets/{wgsl-DY4iK1q1-Dx-B1_4e.js → wgsl-Dx-B1_4e.js} +0 -0
  862. /package/dist/assets/{wikitext-Z-MoUasO-BhOHFoWU.js → wikitext-BhOHFoWU.js} +0 -0
  863. /package/dist/assets/{wit-CQMQOlTg-5i3qLPDT.js → wit-5i3qLPDT.js} +0 -0
  864. /package/dist/assets/{wolfram-Dz4KXISs-lXgVvXCa.js → wolfram-lXgVvXCa.js} +0 -0
  865. /package/dist/assets/{yaml-DaO7k5B1-Buea-lGh.js → yaml-Buea-lGh.js} +0 -0
  866. /package/dist/assets/{zenscript-CxBjpf9c-DVFEvuxE.js → zenscript-DVFEvuxE.js} +0 -0
  867. /package/dist/assets/{zig-Vm0PO9wB-VOosw3JB.js → zig-VOosw3JB.js} +0 -0
@@ -0,0 +1,2256 @@
1
+ import { g as oe } from "./chunk-FMBD7UC4-d2R18kU3.js";
2
+ import { _ as d, E as rt, d as O, e as he, l as L, y as de, A as ge, c as R, ai as ue, R as pe, S as fe, O as xe, aj as j, ak as Wt, al as ye, u as $, k as be, am as we, an as xt, i as yt, ao as me } from "./index-iCTLJvaV.js";
3
+ import { c as Le } from "./clone-C-SjnjM3.js";
4
+ import { G as Se } from "./graph-Czb_7a7B.js";
5
+ import { c as ke } from "./channel-Cti7M2bZ.js";
6
+ var bt = (function() {
7
+ var e = /* @__PURE__ */ d(function(D, y, g, f) {
8
+ for (g = g || {}, f = D.length; f--; g[D[f]] = y) ;
9
+ return g;
10
+ }, "o"), t = [1, 15], a = [1, 7], i = [1, 13], l = [1, 14], s = [1, 19], r = [1, 16], n = [1, 17], c = [1, 18], u = [8, 30], o = [8, 10, 21, 28, 29, 30, 31, 39, 43, 46], x = [1, 23], w = [1, 24], b = [8, 10, 15, 16, 21, 28, 29, 30, 31, 39, 43, 46], S = [8, 10, 15, 16, 21, 27, 28, 29, 30, 31, 39, 43, 46], v = [1, 49], k = {
11
+ trace: /* @__PURE__ */ d(function() {
12
+ }, "trace"),
13
+ yy: {},
14
+ symbols_: { error: 2, spaceLines: 3, SPACELINE: 4, NL: 5, separator: 6, SPACE: 7, EOF: 8, start: 9, BLOCK_DIAGRAM_KEY: 10, document: 11, stop: 12, statement: 13, link: 14, LINK: 15, START_LINK: 16, LINK_LABEL: 17, STR: 18, nodeStatement: 19, columnsStatement: 20, SPACE_BLOCK: 21, blockStatement: 22, classDefStatement: 23, cssClassStatement: 24, styleStatement: 25, node: 26, SIZE: 27, COLUMNS: 28, "id-block": 29, end: 30, NODE_ID: 31, nodeShapeNLabel: 32, dirList: 33, DIR: 34, NODE_DSTART: 35, NODE_DEND: 36, BLOCK_ARROW_START: 37, BLOCK_ARROW_END: 38, classDef: 39, CLASSDEF_ID: 40, CLASSDEF_STYLEOPTS: 41, DEFAULT: 42, class: 43, CLASSENTITY_IDS: 44, STYLECLASS: 45, style: 46, STYLE_ENTITY_IDS: 47, STYLE_DEFINITION_DATA: 48, $accept: 0, $end: 1 },
15
+ terminals_: { 2: "error", 4: "SPACELINE", 5: "NL", 7: "SPACE", 8: "EOF", 10: "BLOCK_DIAGRAM_KEY", 15: "LINK", 16: "START_LINK", 17: "LINK_LABEL", 18: "STR", 21: "SPACE_BLOCK", 27: "SIZE", 28: "COLUMNS", 29: "id-block", 30: "end", 31: "NODE_ID", 34: "DIR", 35: "NODE_DSTART", 36: "NODE_DEND", 37: "BLOCK_ARROW_START", 38: "BLOCK_ARROW_END", 39: "classDef", 40: "CLASSDEF_ID", 41: "CLASSDEF_STYLEOPTS", 42: "DEFAULT", 43: "class", 44: "CLASSENTITY_IDS", 45: "STYLECLASS", 46: "style", 47: "STYLE_ENTITY_IDS", 48: "STYLE_DEFINITION_DATA" },
16
+ productions_: [0, [3, 1], [3, 2], [3, 2], [6, 1], [6, 1], [6, 1], [9, 3], [12, 1], [12, 1], [12, 2], [12, 2], [11, 1], [11, 2], [14, 1], [14, 4], [13, 1], [13, 1], [13, 1], [13, 1], [13, 1], [13, 1], [13, 1], [19, 3], [19, 2], [19, 1], [20, 1], [22, 4], [22, 3], [26, 1], [26, 2], [33, 1], [33, 2], [32, 3], [32, 4], [23, 3], [23, 3], [24, 3], [25, 3]],
17
+ performAction: /* @__PURE__ */ d(function(y, g, f, m, E, h, W) {
18
+ var p = h.length - 1;
19
+ switch (E) {
20
+ case 4:
21
+ m.getLogger().debug("Rule: separator (NL) ");
22
+ break;
23
+ case 5:
24
+ m.getLogger().debug("Rule: separator (Space) ");
25
+ break;
26
+ case 6:
27
+ m.getLogger().debug("Rule: separator (EOF) ");
28
+ break;
29
+ case 7:
30
+ m.getLogger().debug("Rule: hierarchy: ", h[p - 1]), m.setHierarchy(h[p - 1]);
31
+ break;
32
+ case 8:
33
+ m.getLogger().debug("Stop NL ");
34
+ break;
35
+ case 9:
36
+ m.getLogger().debug("Stop EOF ");
37
+ break;
38
+ case 10:
39
+ m.getLogger().debug("Stop NL2 ");
40
+ break;
41
+ case 11:
42
+ m.getLogger().debug("Stop EOF2 ");
43
+ break;
44
+ case 12:
45
+ m.getLogger().debug("Rule: statement: ", h[p]), typeof h[p].length == "number" ? this.$ = h[p] : this.$ = [h[p]];
46
+ break;
47
+ case 13:
48
+ m.getLogger().debug("Rule: statement #2: ", h[p - 1]), this.$ = [h[p - 1]].concat(h[p]);
49
+ break;
50
+ case 14:
51
+ m.getLogger().debug("Rule: link: ", h[p], y), this.$ = { edgeTypeStr: h[p], label: "" };
52
+ break;
53
+ case 15:
54
+ m.getLogger().debug("Rule: LABEL link: ", h[p - 3], h[p - 1], h[p]), this.$ = { edgeTypeStr: h[p], label: h[p - 1] };
55
+ break;
56
+ case 18:
57
+ const I = parseInt(h[p]), Z = m.generateId();
58
+ this.$ = { id: Z, type: "space", label: "", width: I, children: [] };
59
+ break;
60
+ case 23:
61
+ m.getLogger().debug("Rule: (nodeStatement link node) ", h[p - 2], h[p - 1], h[p], " typestr: ", h[p - 1].edgeTypeStr);
62
+ const V = m.edgeStrToEdgeData(h[p - 1].edgeTypeStr);
63
+ this.$ = [
64
+ { id: h[p - 2].id, label: h[p - 2].label, type: h[p - 2].type, directions: h[p - 2].directions },
65
+ { id: h[p - 2].id + "-" + h[p].id, start: h[p - 2].id, end: h[p].id, label: h[p - 1].label, type: "edge", directions: h[p].directions, arrowTypeEnd: V, arrowTypeStart: "arrow_open" },
66
+ { id: h[p].id, label: h[p].label, type: m.typeStr2Type(h[p].typeStr), directions: h[p].directions }
67
+ ];
68
+ break;
69
+ case 24:
70
+ m.getLogger().debug("Rule: nodeStatement (abc88 node size) ", h[p - 1], h[p]), this.$ = { id: h[p - 1].id, label: h[p - 1].label, type: m.typeStr2Type(h[p - 1].typeStr), directions: h[p - 1].directions, widthInColumns: parseInt(h[p], 10) };
71
+ break;
72
+ case 25:
73
+ m.getLogger().debug("Rule: nodeStatement (node) ", h[p]), this.$ = { id: h[p].id, label: h[p].label, type: m.typeStr2Type(h[p].typeStr), directions: h[p].directions, widthInColumns: 1 };
74
+ break;
75
+ case 26:
76
+ m.getLogger().debug("APA123", this ? this : "na"), m.getLogger().debug("COLUMNS: ", h[p]), this.$ = { type: "column-setting", columns: h[p] === "auto" ? -1 : parseInt(h[p]) };
77
+ break;
78
+ case 27:
79
+ m.getLogger().debug("Rule: id-block statement : ", h[p - 2], h[p - 1]), m.generateId(), this.$ = { ...h[p - 2], type: "composite", children: h[p - 1] };
80
+ break;
81
+ case 28:
82
+ m.getLogger().debug("Rule: blockStatement : ", h[p - 2], h[p - 1], h[p]);
83
+ const at = m.generateId();
84
+ this.$ = { id: at, type: "composite", label: "", children: h[p - 1] };
85
+ break;
86
+ case 29:
87
+ m.getLogger().debug("Rule: node (NODE_ID separator): ", h[p]), this.$ = { id: h[p] };
88
+ break;
89
+ case 30:
90
+ m.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ", h[p - 1], h[p]), this.$ = { id: h[p - 1], label: h[p].label, typeStr: h[p].typeStr, directions: h[p].directions };
91
+ break;
92
+ case 31:
93
+ m.getLogger().debug("Rule: dirList: ", h[p]), this.$ = [h[p]];
94
+ break;
95
+ case 32:
96
+ m.getLogger().debug("Rule: dirList: ", h[p - 1], h[p]), this.$ = [h[p - 1]].concat(h[p]);
97
+ break;
98
+ case 33:
99
+ m.getLogger().debug("Rule: nodeShapeNLabel: ", h[p - 2], h[p - 1], h[p]), this.$ = { typeStr: h[p - 2] + h[p], label: h[p - 1] };
100
+ break;
101
+ case 34:
102
+ m.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ", h[p - 3], h[p - 2], " #3:", h[p - 1], h[p]), this.$ = { typeStr: h[p - 3] + h[p], label: h[p - 2], directions: h[p - 1] };
103
+ break;
104
+ case 35:
105
+ case 36:
106
+ this.$ = { type: "classDef", id: h[p - 1].trim(), css: h[p].trim() };
107
+ break;
108
+ case 37:
109
+ this.$ = { type: "applyClass", id: h[p - 1].trim(), styleClass: h[p].trim() };
110
+ break;
111
+ case 38:
112
+ this.$ = { type: "applyStyles", id: h[p - 1].trim(), stylesStr: h[p].trim() };
113
+ break;
114
+ }
115
+ }, "anonymous"),
116
+ table: [{ 9: 1, 10: [1, 2] }, { 1: [3] }, { 10: t, 11: 3, 13: 4, 19: 5, 20: 6, 21: a, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 28: i, 29: l, 31: s, 39: r, 43: n, 46: c }, { 8: [1, 20] }, e(u, [2, 12], { 13: 4, 19: 5, 20: 6, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 11: 21, 10: t, 21: a, 28: i, 29: l, 31: s, 39: r, 43: n, 46: c }), e(o, [2, 16], { 14: 22, 15: x, 16: w }), e(o, [2, 17]), e(o, [2, 18]), e(o, [2, 19]), e(o, [2, 20]), e(o, [2, 21]), e(o, [2, 22]), e(b, [2, 25], { 27: [1, 25] }), e(o, [2, 26]), { 19: 26, 26: 12, 31: s }, { 10: t, 11: 27, 13: 4, 19: 5, 20: 6, 21: a, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 28: i, 29: l, 31: s, 39: r, 43: n, 46: c }, { 40: [1, 28], 42: [1, 29] }, { 44: [1, 30] }, { 47: [1, 31] }, e(S, [2, 29], { 32: 32, 35: [1, 33], 37: [1, 34] }), { 1: [2, 7] }, e(u, [2, 13]), { 26: 35, 31: s }, { 31: [2, 14] }, { 17: [1, 36] }, e(b, [2, 24]), { 10: t, 11: 37, 13: 4, 14: 22, 15: x, 16: w, 19: 5, 20: 6, 21: a, 22: 8, 23: 9, 24: 10, 25: 11, 26: 12, 28: i, 29: l, 31: s, 39: r, 43: n, 46: c }, { 30: [1, 38] }, { 41: [1, 39] }, { 41: [1, 40] }, { 45: [1, 41] }, { 48: [1, 42] }, e(S, [2, 30]), { 18: [1, 43] }, { 18: [1, 44] }, e(b, [2, 23]), { 18: [1, 45] }, { 30: [1, 46] }, e(o, [2, 28]), e(o, [2, 35]), e(o, [2, 36]), e(o, [2, 37]), e(o, [2, 38]), { 36: [1, 47] }, { 33: 48, 34: v }, { 15: [1, 50] }, e(o, [2, 27]), e(S, [2, 33]), { 38: [1, 51] }, { 33: 52, 34: v, 38: [2, 31] }, { 31: [2, 15] }, e(S, [2, 34]), { 38: [2, 32] }],
117
+ defaultActions: { 20: [2, 7], 23: [2, 14], 50: [2, 15], 52: [2, 32] },
118
+ parseError: /* @__PURE__ */ d(function(y, g) {
119
+ if (g.recoverable)
120
+ this.trace(y);
121
+ else {
122
+ var f = new Error(y);
123
+ throw f.hash = g, f;
124
+ }
125
+ }, "parseError"),
126
+ parse: /* @__PURE__ */ d(function(y) {
127
+ var g = this, f = [0], m = [], E = [null], h = [], W = this.table, p = "", I = 0, Z = 0, V = 2, at = 1, ne = h.slice.call(arguments, 1), z = Object.create(this.lexer), q = { yy: {} };
128
+ for (var gt in this.yy)
129
+ Object.prototype.hasOwnProperty.call(this.yy, gt) && (q.yy[gt] = this.yy[gt]);
130
+ z.setInput(y, q.yy), q.yy.lexer = z, q.yy.parser = this, typeof z.yylloc > "u" && (z.yylloc = {});
131
+ var ut = z.yylloc;
132
+ h.push(ut);
133
+ var le = z.options && z.options.ranges;
134
+ typeof q.yy.parseError == "function" ? this.parseError = q.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
135
+ function ce(P) {
136
+ f.length = f.length - 2 * P, E.length = E.length - P, h.length = h.length - P;
137
+ }
138
+ d(ce, "popStack");
139
+ function Nt() {
140
+ var P;
141
+ return P = m.pop() || z.lex() || at, typeof P != "number" && (P instanceof Array && (m = P, P = m.pop()), P = g.symbols_[P] || P), P;
142
+ }
143
+ d(Nt, "lex");
144
+ for (var F, J, H, pt, Q = {}, st, G, Tt, it; ; ) {
145
+ if (J = f[f.length - 1], this.defaultActions[J] ? H = this.defaultActions[J] : ((F === null || typeof F > "u") && (F = Nt()), H = W[J] && W[J][F]), typeof H > "u" || !H.length || !H[0]) {
146
+ var ft = "";
147
+ it = [];
148
+ for (st in W[J])
149
+ this.terminals_[st] && st > V && it.push("'" + this.terminals_[st] + "'");
150
+ z.showPosition ? ft = "Parse error on line " + (I + 1) + `:
151
+ ` + z.showPosition() + `
152
+ Expecting ` + it.join(", ") + ", got '" + (this.terminals_[F] || F) + "'" : ft = "Parse error on line " + (I + 1) + ": Unexpected " + (F == at ? "end of input" : "'" + (this.terminals_[F] || F) + "'"), this.parseError(ft, {
153
+ text: z.match,
154
+ token: this.terminals_[F] || F,
155
+ line: z.yylineno,
156
+ loc: ut,
157
+ expected: it
158
+ });
159
+ }
160
+ if (H[0] instanceof Array && H.length > 1)
161
+ throw new Error("Parse Error: multiple actions possible at state: " + J + ", token: " + F);
162
+ switch (H[0]) {
163
+ case 1:
164
+ f.push(F), E.push(z.yytext), h.push(z.yylloc), f.push(H[1]), F = null, Z = z.yyleng, p = z.yytext, I = z.yylineno, ut = z.yylloc;
165
+ break;
166
+ case 2:
167
+ if (G = this.productions_[H[1]][1], Q.$ = E[E.length - G], Q._$ = {
168
+ first_line: h[h.length - (G || 1)].first_line,
169
+ last_line: h[h.length - 1].last_line,
170
+ first_column: h[h.length - (G || 1)].first_column,
171
+ last_column: h[h.length - 1].last_column
172
+ }, le && (Q._$.range = [
173
+ h[h.length - (G || 1)].range[0],
174
+ h[h.length - 1].range[1]
175
+ ]), pt = this.performAction.apply(Q, [
176
+ p,
177
+ Z,
178
+ I,
179
+ q.yy,
180
+ H[1],
181
+ E,
182
+ h
183
+ ].concat(ne)), typeof pt < "u")
184
+ return pt;
185
+ G && (f = f.slice(0, -1 * G * 2), E = E.slice(0, -1 * G), h = h.slice(0, -1 * G)), f.push(this.productions_[H[1]][0]), E.push(Q.$), h.push(Q._$), Tt = W[f[f.length - 2]][f[f.length - 1]], f.push(Tt);
186
+ break;
187
+ case 3:
188
+ return !0;
189
+ }
190
+ }
191
+ return !0;
192
+ }, "parse")
193
+ }, B = /* @__PURE__ */ (function() {
194
+ var D = {
195
+ EOF: 1,
196
+ parseError: /* @__PURE__ */ d(function(g, f) {
197
+ if (this.yy.parser)
198
+ this.yy.parser.parseError(g, f);
199
+ else
200
+ throw new Error(g);
201
+ }, "parseError"),
202
+ // resets the lexer, sets new input
203
+ setInput: /* @__PURE__ */ d(function(y, g) {
204
+ return this.yy = g || this.yy || {}, this._input = y, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
205
+ first_line: 1,
206
+ first_column: 0,
207
+ last_line: 1,
208
+ last_column: 0
209
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
210
+ }, "setInput"),
211
+ // consumes and returns one char from the input
212
+ input: /* @__PURE__ */ d(function() {
213
+ var y = this._input[0];
214
+ this.yytext += y, this.yyleng++, this.offset++, this.match += y, this.matched += y;
215
+ var g = y.match(/(?:\r\n?|\n).*/g);
216
+ return g ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), y;
217
+ }, "input"),
218
+ // unshifts one char (or a string) into the input
219
+ unput: /* @__PURE__ */ d(function(y) {
220
+ var g = y.length, f = y.split(/(?:\r\n?|\n)/g);
221
+ this._input = y + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - g), this.offset -= g;
222
+ var m = this.match.split(/(?:\r\n?|\n)/g);
223
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), f.length - 1 && (this.yylineno -= f.length - 1);
224
+ var E = this.yylloc.range;
225
+ return this.yylloc = {
226
+ first_line: this.yylloc.first_line,
227
+ last_line: this.yylineno + 1,
228
+ first_column: this.yylloc.first_column,
229
+ last_column: f ? (f.length === m.length ? this.yylloc.first_column : 0) + m[m.length - f.length].length - f[0].length : this.yylloc.first_column - g
230
+ }, this.options.ranges && (this.yylloc.range = [E[0], E[0] + this.yyleng - g]), this.yyleng = this.yytext.length, this;
231
+ }, "unput"),
232
+ // When called from action, caches matched text and appends it on next action
233
+ more: /* @__PURE__ */ d(function() {
234
+ return this._more = !0, this;
235
+ }, "more"),
236
+ // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
237
+ reject: /* @__PURE__ */ d(function() {
238
+ if (this.options.backtrack_lexer)
239
+ this._backtrack = !0;
240
+ else
241
+ return this.parseError("Lexical error on line " + (this.yylineno + 1) + `. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
242
+ ` + this.showPosition(), {
243
+ text: "",
244
+ token: null,
245
+ line: this.yylineno
246
+ });
247
+ return this;
248
+ }, "reject"),
249
+ // retain first n characters of the match
250
+ less: /* @__PURE__ */ d(function(y) {
251
+ this.unput(this.match.slice(y));
252
+ }, "less"),
253
+ // displays already matched input, i.e. for error messages
254
+ pastInput: /* @__PURE__ */ d(function() {
255
+ var y = this.matched.substr(0, this.matched.length - this.match.length);
256
+ return (y.length > 20 ? "..." : "") + y.substr(-20).replace(/\n/g, "");
257
+ }, "pastInput"),
258
+ // displays upcoming input, i.e. for error messages
259
+ upcomingInput: /* @__PURE__ */ d(function() {
260
+ var y = this.match;
261
+ return y.length < 20 && (y += this._input.substr(0, 20 - y.length)), (y.substr(0, 20) + (y.length > 20 ? "..." : "")).replace(/\n/g, "");
262
+ }, "upcomingInput"),
263
+ // displays the character position where the lexing error occurred, i.e. for error messages
264
+ showPosition: /* @__PURE__ */ d(function() {
265
+ var y = this.pastInput(), g = new Array(y.length + 1).join("-");
266
+ return y + this.upcomingInput() + `
267
+ ` + g + "^";
268
+ }, "showPosition"),
269
+ // test the lexed token: return FALSE when not a match, otherwise return token
270
+ test_match: /* @__PURE__ */ d(function(y, g) {
271
+ var f, m, E;
272
+ if (this.options.backtrack_lexer && (E = {
273
+ yylineno: this.yylineno,
274
+ yylloc: {
275
+ first_line: this.yylloc.first_line,
276
+ last_line: this.last_line,
277
+ first_column: this.yylloc.first_column,
278
+ last_column: this.yylloc.last_column
279
+ },
280
+ yytext: this.yytext,
281
+ match: this.match,
282
+ matches: this.matches,
283
+ matched: this.matched,
284
+ yyleng: this.yyleng,
285
+ offset: this.offset,
286
+ _more: this._more,
287
+ _input: this._input,
288
+ yy: this.yy,
289
+ conditionStack: this.conditionStack.slice(0),
290
+ done: this.done
291
+ }, this.options.ranges && (E.yylloc.range = this.yylloc.range.slice(0))), m = y[0].match(/(?:\r\n?|\n).*/g), m && (this.yylineno += m.length), this.yylloc = {
292
+ first_line: this.yylloc.last_line,
293
+ last_line: this.yylineno + 1,
294
+ first_column: this.yylloc.last_column,
295
+ last_column: m ? m[m.length - 1].length - m[m.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + y[0].length
296
+ }, this.yytext += y[0], this.match += y[0], this.matches = y, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(y[0].length), this.matched += y[0], f = this.performAction.call(this, this.yy, this, g, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), f)
297
+ return f;
298
+ if (this._backtrack) {
299
+ for (var h in E)
300
+ this[h] = E[h];
301
+ return !1;
302
+ }
303
+ return !1;
304
+ }, "test_match"),
305
+ // return next match in input
306
+ next: /* @__PURE__ */ d(function() {
307
+ if (this.done)
308
+ return this.EOF;
309
+ this._input || (this.done = !0);
310
+ var y, g, f, m;
311
+ this._more || (this.yytext = "", this.match = "");
312
+ for (var E = this._currentRules(), h = 0; h < E.length; h++)
313
+ if (f = this._input.match(this.rules[E[h]]), f && (!g || f[0].length > g[0].length)) {
314
+ if (g = f, m = h, this.options.backtrack_lexer) {
315
+ if (y = this.test_match(f, E[h]), y !== !1)
316
+ return y;
317
+ if (this._backtrack) {
318
+ g = !1;
319
+ continue;
320
+ } else
321
+ return !1;
322
+ } else if (!this.options.flex)
323
+ break;
324
+ }
325
+ return g ? (y = this.test_match(g, E[m]), y !== !1 ? y : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
326
+ ` + this.showPosition(), {
327
+ text: "",
328
+ token: null,
329
+ line: this.yylineno
330
+ });
331
+ }, "next"),
332
+ // return next match that has a token
333
+ lex: /* @__PURE__ */ d(function() {
334
+ var g = this.next();
335
+ return g || this.lex();
336
+ }, "lex"),
337
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
338
+ begin: /* @__PURE__ */ d(function(g) {
339
+ this.conditionStack.push(g);
340
+ }, "begin"),
341
+ // pop the previously active lexer condition state off the condition stack
342
+ popState: /* @__PURE__ */ d(function() {
343
+ var g = this.conditionStack.length - 1;
344
+ return g > 0 ? this.conditionStack.pop() : this.conditionStack[0];
345
+ }, "popState"),
346
+ // produce the lexer rule set which is active for the currently active lexer condition state
347
+ _currentRules: /* @__PURE__ */ d(function() {
348
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
349
+ }, "_currentRules"),
350
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
351
+ topState: /* @__PURE__ */ d(function(g) {
352
+ return g = this.conditionStack.length - 1 - Math.abs(g || 0), g >= 0 ? this.conditionStack[g] : "INITIAL";
353
+ }, "topState"),
354
+ // alias for begin(condition)
355
+ pushState: /* @__PURE__ */ d(function(g) {
356
+ this.begin(g);
357
+ }, "pushState"),
358
+ // return the number of states currently on the stack
359
+ stateStackSize: /* @__PURE__ */ d(function() {
360
+ return this.conditionStack.length;
361
+ }, "stateStackSize"),
362
+ options: {},
363
+ performAction: /* @__PURE__ */ d(function(g, f, m, E) {
364
+ switch (m) {
365
+ case 0:
366
+ return g.getLogger().debug("Found block-beta"), 10;
367
+ case 1:
368
+ return g.getLogger().debug("Found id-block"), 29;
369
+ case 2:
370
+ return g.getLogger().debug("Found block"), 10;
371
+ case 3:
372
+ g.getLogger().debug(".", f.yytext);
373
+ break;
374
+ case 4:
375
+ g.getLogger().debug("_", f.yytext);
376
+ break;
377
+ case 5:
378
+ return 5;
379
+ case 6:
380
+ return f.yytext = -1, 28;
381
+ case 7:
382
+ return f.yytext = f.yytext.replace(/columns\s+/, ""), g.getLogger().debug("COLUMNS (LEX)", f.yytext), 28;
383
+ case 8:
384
+ this.pushState("md_string");
385
+ break;
386
+ case 9:
387
+ return "MD_STR";
388
+ case 10:
389
+ this.popState();
390
+ break;
391
+ case 11:
392
+ this.pushState("string");
393
+ break;
394
+ case 12:
395
+ g.getLogger().debug("LEX: POPPING STR:", f.yytext), this.popState();
396
+ break;
397
+ case 13:
398
+ return g.getLogger().debug("LEX: STR end:", f.yytext), "STR";
399
+ case 14:
400
+ return f.yytext = f.yytext.replace(/space\:/, ""), g.getLogger().debug("SPACE NUM (LEX)", f.yytext), 21;
401
+ case 15:
402
+ return f.yytext = "1", g.getLogger().debug("COLUMNS (LEX)", f.yytext), 21;
403
+ case 16:
404
+ return 42;
405
+ case 17:
406
+ return "LINKSTYLE";
407
+ case 18:
408
+ return "INTERPOLATE";
409
+ case 19:
410
+ return this.pushState("CLASSDEF"), 39;
411
+ case 20:
412
+ return this.popState(), this.pushState("CLASSDEFID"), "DEFAULT_CLASSDEF_ID";
413
+ case 21:
414
+ return this.popState(), this.pushState("CLASSDEFID"), 40;
415
+ case 22:
416
+ return this.popState(), 41;
417
+ case 23:
418
+ return this.pushState("CLASS"), 43;
419
+ case 24:
420
+ return this.popState(), this.pushState("CLASS_STYLE"), 44;
421
+ case 25:
422
+ return this.popState(), 45;
423
+ case 26:
424
+ return this.pushState("STYLE_STMNT"), 46;
425
+ case 27:
426
+ return this.popState(), this.pushState("STYLE_DEFINITION"), 47;
427
+ case 28:
428
+ return this.popState(), 48;
429
+ case 29:
430
+ return this.pushState("acc_title"), "acc_title";
431
+ case 30:
432
+ return this.popState(), "acc_title_value";
433
+ case 31:
434
+ return this.pushState("acc_descr"), "acc_descr";
435
+ case 32:
436
+ return this.popState(), "acc_descr_value";
437
+ case 33:
438
+ this.pushState("acc_descr_multiline");
439
+ break;
440
+ case 34:
441
+ this.popState();
442
+ break;
443
+ case 35:
444
+ return "acc_descr_multiline_value";
445
+ case 36:
446
+ return 30;
447
+ case 37:
448
+ return this.popState(), g.getLogger().debug("Lex: (("), "NODE_DEND";
449
+ case 38:
450
+ return this.popState(), g.getLogger().debug("Lex: (("), "NODE_DEND";
451
+ case 39:
452
+ return this.popState(), g.getLogger().debug("Lex: ))"), "NODE_DEND";
453
+ case 40:
454
+ return this.popState(), g.getLogger().debug("Lex: (("), "NODE_DEND";
455
+ case 41:
456
+ return this.popState(), g.getLogger().debug("Lex: (("), "NODE_DEND";
457
+ case 42:
458
+ return this.popState(), g.getLogger().debug("Lex: (-"), "NODE_DEND";
459
+ case 43:
460
+ return this.popState(), g.getLogger().debug("Lex: -)"), "NODE_DEND";
461
+ case 44:
462
+ return this.popState(), g.getLogger().debug("Lex: (("), "NODE_DEND";
463
+ case 45:
464
+ return this.popState(), g.getLogger().debug("Lex: ]]"), "NODE_DEND";
465
+ case 46:
466
+ return this.popState(), g.getLogger().debug("Lex: ("), "NODE_DEND";
467
+ case 47:
468
+ return this.popState(), g.getLogger().debug("Lex: ])"), "NODE_DEND";
469
+ case 48:
470
+ return this.popState(), g.getLogger().debug("Lex: /]"), "NODE_DEND";
471
+ case 49:
472
+ return this.popState(), g.getLogger().debug("Lex: /]"), "NODE_DEND";
473
+ case 50:
474
+ return this.popState(), g.getLogger().debug("Lex: )]"), "NODE_DEND";
475
+ case 51:
476
+ return this.popState(), g.getLogger().debug("Lex: )"), "NODE_DEND";
477
+ case 52:
478
+ return this.popState(), g.getLogger().debug("Lex: ]>"), "NODE_DEND";
479
+ case 53:
480
+ return this.popState(), g.getLogger().debug("Lex: ]"), "NODE_DEND";
481
+ case 54:
482
+ return g.getLogger().debug("Lexa: -)"), this.pushState("NODE"), 35;
483
+ case 55:
484
+ return g.getLogger().debug("Lexa: (-"), this.pushState("NODE"), 35;
485
+ case 56:
486
+ return g.getLogger().debug("Lexa: ))"), this.pushState("NODE"), 35;
487
+ case 57:
488
+ return g.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35;
489
+ case 58:
490
+ return g.getLogger().debug("Lex: ((("), this.pushState("NODE"), 35;
491
+ case 59:
492
+ return g.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35;
493
+ case 60:
494
+ return g.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35;
495
+ case 61:
496
+ return g.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35;
497
+ case 62:
498
+ return g.getLogger().debug("Lexc: >"), this.pushState("NODE"), 35;
499
+ case 63:
500
+ return g.getLogger().debug("Lexa: (["), this.pushState("NODE"), 35;
501
+ case 64:
502
+ return g.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35;
503
+ case 65:
504
+ return this.pushState("NODE"), 35;
505
+ case 66:
506
+ return this.pushState("NODE"), 35;
507
+ case 67:
508
+ return this.pushState("NODE"), 35;
509
+ case 68:
510
+ return this.pushState("NODE"), 35;
511
+ case 69:
512
+ return this.pushState("NODE"), 35;
513
+ case 70:
514
+ return this.pushState("NODE"), 35;
515
+ case 71:
516
+ return this.pushState("NODE"), 35;
517
+ case 72:
518
+ return g.getLogger().debug("Lexa: ["), this.pushState("NODE"), 35;
519
+ case 73:
520
+ return this.pushState("BLOCK_ARROW"), g.getLogger().debug("LEX ARR START"), 37;
521
+ case 74:
522
+ return g.getLogger().debug("Lex: NODE_ID", f.yytext), 31;
523
+ case 75:
524
+ return g.getLogger().debug("Lex: EOF", f.yytext), 8;
525
+ case 76:
526
+ this.pushState("md_string");
527
+ break;
528
+ case 77:
529
+ this.pushState("md_string");
530
+ break;
531
+ case 78:
532
+ return "NODE_DESCR";
533
+ case 79:
534
+ this.popState();
535
+ break;
536
+ case 80:
537
+ g.getLogger().debug("Lex: Starting string"), this.pushState("string");
538
+ break;
539
+ case 81:
540
+ g.getLogger().debug("LEX ARR: Starting string"), this.pushState("string");
541
+ break;
542
+ case 82:
543
+ return g.getLogger().debug("LEX: NODE_DESCR:", f.yytext), "NODE_DESCR";
544
+ case 83:
545
+ g.getLogger().debug("LEX POPPING"), this.popState();
546
+ break;
547
+ case 84:
548
+ g.getLogger().debug("Lex: =>BAE"), this.pushState("ARROW_DIR");
549
+ break;
550
+ case 85:
551
+ return f.yytext = f.yytext.replace(/^,\s*/, ""), g.getLogger().debug("Lex (right): dir:", f.yytext), "DIR";
552
+ case 86:
553
+ return f.yytext = f.yytext.replace(/^,\s*/, ""), g.getLogger().debug("Lex (left):", f.yytext), "DIR";
554
+ case 87:
555
+ return f.yytext = f.yytext.replace(/^,\s*/, ""), g.getLogger().debug("Lex (x):", f.yytext), "DIR";
556
+ case 88:
557
+ return f.yytext = f.yytext.replace(/^,\s*/, ""), g.getLogger().debug("Lex (y):", f.yytext), "DIR";
558
+ case 89:
559
+ return f.yytext = f.yytext.replace(/^,\s*/, ""), g.getLogger().debug("Lex (up):", f.yytext), "DIR";
560
+ case 90:
561
+ return f.yytext = f.yytext.replace(/^,\s*/, ""), g.getLogger().debug("Lex (down):", f.yytext), "DIR";
562
+ case 91:
563
+ return f.yytext = "]>", g.getLogger().debug("Lex (ARROW_DIR end):", f.yytext), this.popState(), this.popState(), "BLOCK_ARROW_END";
564
+ case 92:
565
+ return g.getLogger().debug("Lex: LINK", "#" + f.yytext + "#"), 15;
566
+ case 93:
567
+ return g.getLogger().debug("Lex: LINK", f.yytext), 15;
568
+ case 94:
569
+ return g.getLogger().debug("Lex: LINK", f.yytext), 15;
570
+ case 95:
571
+ return g.getLogger().debug("Lex: LINK", f.yytext), 15;
572
+ case 96:
573
+ return g.getLogger().debug("Lex: START_LINK", f.yytext), this.pushState("LLABEL"), 16;
574
+ case 97:
575
+ return g.getLogger().debug("Lex: START_LINK", f.yytext), this.pushState("LLABEL"), 16;
576
+ case 98:
577
+ return g.getLogger().debug("Lex: START_LINK", f.yytext), this.pushState("LLABEL"), 16;
578
+ case 99:
579
+ this.pushState("md_string");
580
+ break;
581
+ case 100:
582
+ return g.getLogger().debug("Lex: Starting string"), this.pushState("string"), "LINK_LABEL";
583
+ case 101:
584
+ return this.popState(), g.getLogger().debug("Lex: LINK", "#" + f.yytext + "#"), 15;
585
+ case 102:
586
+ return this.popState(), g.getLogger().debug("Lex: LINK", f.yytext), 15;
587
+ case 103:
588
+ return this.popState(), g.getLogger().debug("Lex: LINK", f.yytext), 15;
589
+ case 104:
590
+ return g.getLogger().debug("Lex: COLON", f.yytext), f.yytext = f.yytext.slice(1), 27;
591
+ }
592
+ }, "anonymous"),
593
+ rules: [/^(?:block-beta\b)/, /^(?:block:)/, /^(?:block\b)/, /^(?:[\s]+)/, /^(?:[\n]+)/, /^(?:((\u000D\u000A)|(\u000A)))/, /^(?:columns\s+auto\b)/, /^(?:columns\s+[\d]+)/, /^(?:["][`])/, /^(?:[^`"]+)/, /^(?:[`]["])/, /^(?:["])/, /^(?:["])/, /^(?:[^"]*)/, /^(?:space[:]\d+)/, /^(?:space\b)/, /^(?:default\b)/, /^(?:linkStyle\b)/, /^(?:interpolate\b)/, /^(?:classDef\s+)/, /^(?:DEFAULT\s+)/, /^(?:\w+\s+)/, /^(?:[^\n]*)/, /^(?:class\s+)/, /^(?:(\w+)+((,\s*\w+)*))/, /^(?:[^\n]*)/, /^(?:style\s+)/, /^(?:(\w+)+((,\s*\w+)*))/, /^(?:[^\n]*)/, /^(?:accTitle\s*:\s*)/, /^(?:(?!\n||)*[^\n]*)/, /^(?:accDescr\s*:\s*)/, /^(?:(?!\n||)*[^\n]*)/, /^(?:accDescr\s*\{\s*)/, /^(?:[\}])/, /^(?:[^\}]*)/, /^(?:end\b\s*)/, /^(?:\(\(\()/, /^(?:\)\)\))/, /^(?:[\)]\))/, /^(?:\}\})/, /^(?:\})/, /^(?:\(-)/, /^(?:-\))/, /^(?:\(\()/, /^(?:\]\])/, /^(?:\()/, /^(?:\]\))/, /^(?:\\\])/, /^(?:\/\])/, /^(?:\)\])/, /^(?:[\)])/, /^(?:\]>)/, /^(?:[\]])/, /^(?:-\))/, /^(?:\(-)/, /^(?:\)\))/, /^(?:\))/, /^(?:\(\(\()/, /^(?:\(\()/, /^(?:\{\{)/, /^(?:\{)/, /^(?:>)/, /^(?:\(\[)/, /^(?:\()/, /^(?:\[\[)/, /^(?:\[\|)/, /^(?:\[\()/, /^(?:\)\)\))/, /^(?:\[\\)/, /^(?:\[\/)/, /^(?:\[\\)/, /^(?:\[)/, /^(?:<\[)/, /^(?:[^\(\[\n\-\)\{\}\s\<\>:]+)/, /^(?:$)/, /^(?:["][`])/, /^(?:["][`])/, /^(?:[^`"]+)/, /^(?:[`]["])/, /^(?:["])/, /^(?:["])/, /^(?:[^"]+)/, /^(?:["])/, /^(?:\]>\s*\()/, /^(?:,?\s*right\s*)/, /^(?:,?\s*left\s*)/, /^(?:,?\s*x\s*)/, /^(?:,?\s*y\s*)/, /^(?:,?\s*up\s*)/, /^(?:,?\s*down\s*)/, /^(?:\)\s*)/, /^(?:\s*[xo<]?--+[-xo>]\s*)/, /^(?:\s*[xo<]?==+[=xo>]\s*)/, /^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/, /^(?:\s*~~[\~]+\s*)/, /^(?:\s*[xo<]?--\s*)/, /^(?:\s*[xo<]?==\s*)/, /^(?:\s*[xo<]?-\.\s*)/, /^(?:["][`])/, /^(?:["])/, /^(?:\s*[xo<]?--+[-xo>]\s*)/, /^(?:\s*[xo<]?==+[=xo>]\s*)/, /^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/, /^(?::\d+)/],
594
+ conditions: { STYLE_DEFINITION: { rules: [28], inclusive: !1 }, STYLE_STMNT: { rules: [27], inclusive: !1 }, CLASSDEFID: { rules: [22], inclusive: !1 }, CLASSDEF: { rules: [20, 21], inclusive: !1 }, CLASS_STYLE: { rules: [25], inclusive: !1 }, CLASS: { rules: [24], inclusive: !1 }, LLABEL: { rules: [99, 100, 101, 102, 103], inclusive: !1 }, ARROW_DIR: { rules: [85, 86, 87, 88, 89, 90, 91], inclusive: !1 }, BLOCK_ARROW: { rules: [76, 81, 84], inclusive: !1 }, NODE: { rules: [37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 77, 80], inclusive: !1 }, md_string: { rules: [9, 10, 78, 79], inclusive: !1 }, space: { rules: [], inclusive: !1 }, string: { rules: [12, 13, 82, 83], inclusive: !1 }, acc_descr_multiline: { rules: [34, 35], inclusive: !1 }, acc_descr: { rules: [32], inclusive: !1 }, acc_title: { rules: [30], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 3, 4, 5, 6, 7, 8, 11, 14, 15, 16, 17, 18, 19, 23, 26, 29, 31, 33, 36, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 92, 93, 94, 95, 96, 97, 98, 104], inclusive: !0 } }
595
+ };
596
+ return D;
597
+ })();
598
+ k.lexer = B;
599
+ function _() {
600
+ this.yy = {};
601
+ }
602
+ return d(_, "Parser"), _.prototype = k, k.Parser = _, new _();
603
+ })();
604
+ bt.parser = bt;
605
+ var ve = bt, X = /* @__PURE__ */ new Map(), kt = [], wt = /* @__PURE__ */ new Map(), Bt = "color", Ct = "fill", Ee = "bgFill", Pt = ",", _e = R(), ct = /* @__PURE__ */ new Map(), De = /* @__PURE__ */ d((e) => be.sanitizeText(e, _e), "sanitizeText"), Ne = /* @__PURE__ */ d(function(e, t = "") {
606
+ let a = ct.get(e);
607
+ a || (a = { id: e, styles: [], textStyles: [] }, ct.set(e, a)), t?.split(Pt).forEach((i) => {
608
+ const l = i.replace(/([^;]*);/, "$1").trim();
609
+ if (RegExp(Bt).exec(i)) {
610
+ const r = l.replace(Ct, Ee).replace(Bt, Ct);
611
+ a.textStyles.push(r);
612
+ }
613
+ a.styles.push(l);
614
+ });
615
+ }, "addStyleClass"), Te = /* @__PURE__ */ d(function(e, t = "") {
616
+ const a = X.get(e);
617
+ t != null && (a.styles = t.split(Pt));
618
+ }, "addStyle2Node"), Be = /* @__PURE__ */ d(function(e, t) {
619
+ e.split(",").forEach(function(a) {
620
+ let i = X.get(a);
621
+ if (i === void 0) {
622
+ const l = a.trim();
623
+ i = { id: l, type: "na", children: [] }, X.set(l, i);
624
+ }
625
+ i.classes || (i.classes = []), i.classes.push(t);
626
+ });
627
+ }, "setCssClass"), Yt = /* @__PURE__ */ d((e, t) => {
628
+ const a = e.flat(), i = [], s = a.find((r) => r?.type === "column-setting")?.columns ?? -1;
629
+ for (const r of a) {
630
+ if (typeof s == "number" && s > 0 && r.type !== "column-setting" && typeof r.widthInColumns == "number" && r.widthInColumns > s && L.warn(
631
+ `Block ${r.id} width ${r.widthInColumns} exceeds configured column width ${s}`
632
+ ), r.label && (r.label = De(r.label)), r.type === "classDef") {
633
+ Ne(r.id, r.css);
634
+ continue;
635
+ }
636
+ if (r.type === "applyClass") {
637
+ Be(r.id, r?.styleClass ?? "");
638
+ continue;
639
+ }
640
+ if (r.type === "applyStyles") {
641
+ r?.stylesStr && Te(r.id, r?.stylesStr);
642
+ continue;
643
+ }
644
+ if (r.type === "column-setting")
645
+ t.columns = r.columns ?? -1;
646
+ else if (r.type === "edge") {
647
+ const n = (wt.get(r.id) ?? 0) + 1;
648
+ wt.set(r.id, n), r.id = n + "-" + r.id, kt.push(r);
649
+ } else {
650
+ r.label || (r.type === "composite" ? r.label = "" : r.label = r.id);
651
+ const n = X.get(r.id);
652
+ if (n === void 0 ? X.set(r.id, r) : (r.type !== "na" && (n.type = r.type), r.label !== r.id && (n.label = r.label)), r.children && Yt(r.children, r), r.type === "space") {
653
+ const c = r.width ?? 1;
654
+ for (let u = 0; u < c; u++) {
655
+ const o = Le(r);
656
+ o.id = o.id + "-" + u, X.set(o.id, o), i.push(o);
657
+ }
658
+ } else n === void 0 && i.push(r);
659
+ }
660
+ }
661
+ t.children = i;
662
+ }, "populateBlockDatabase"), vt = [], et = { id: "root", type: "composite", children: [], columns: -1 }, Ce = /* @__PURE__ */ d(() => {
663
+ L.debug("Clear called"), de(), et = { id: "root", type: "composite", children: [], columns: -1 }, X = /* @__PURE__ */ new Map([["root", et]]), vt = [], ct = /* @__PURE__ */ new Map(), kt = [], wt = /* @__PURE__ */ new Map();
664
+ }, "clear");
665
+ function Ht(e) {
666
+ switch (L.debug("typeStr2Type", e), e) {
667
+ case "[]":
668
+ return "square";
669
+ case "()":
670
+ return L.debug("we have a round"), "round";
671
+ case "(())":
672
+ return "circle";
673
+ case ">]":
674
+ return "rect_left_inv_arrow";
675
+ case "{}":
676
+ return "diamond";
677
+ case "{{}}":
678
+ return "hexagon";
679
+ case "([])":
680
+ return "stadium";
681
+ case "[[]]":
682
+ return "subroutine";
683
+ case "[()]":
684
+ return "cylinder";
685
+ case "((()))":
686
+ return "doublecircle";
687
+ case "[//]":
688
+ return "lean_right";
689
+ case "[\\\\]":
690
+ return "lean_left";
691
+ case "[/\\]":
692
+ return "trapezoid";
693
+ case "[\\/]":
694
+ return "inv_trapezoid";
695
+ case "<[]>":
696
+ return "block_arrow";
697
+ default:
698
+ return "na";
699
+ }
700
+ }
701
+ d(Ht, "typeStr2Type");
702
+ function Kt(e) {
703
+ return L.debug("typeStr2Type", e), e === "==" ? "thick" : "normal";
704
+ }
705
+ d(Kt, "edgeTypeStr2Type");
706
+ function Xt(e) {
707
+ switch (e.replace(/^[\s-]+|[\s-]+$/g, "")) {
708
+ case "x":
709
+ return "arrow_cross";
710
+ case "o":
711
+ return "arrow_circle";
712
+ case ">":
713
+ return "arrow_point";
714
+ default:
715
+ return "";
716
+ }
717
+ }
718
+ d(Xt, "edgeStrToEdgeData");
719
+ var It = 0, Ie = /* @__PURE__ */ d(() => (It++, "id-" + Math.random().toString(36).substr(2, 12) + "-" + It), "generateId"), Oe = /* @__PURE__ */ d((e) => {
720
+ et.children = e, Yt(e, et), vt = et.children;
721
+ }, "setHierarchy"), Re = /* @__PURE__ */ d((e) => {
722
+ const t = X.get(e);
723
+ return t ? t.columns ? t.columns : t.children ? t.children.length : -1 : -1;
724
+ }, "getColumns"), ze = /* @__PURE__ */ d(() => [...X.values()], "getBlocksFlat"), Ae = /* @__PURE__ */ d(() => vt || [], "getBlocks"), Me = /* @__PURE__ */ d(() => kt, "getEdges"), Fe = /* @__PURE__ */ d((e) => X.get(e), "getBlock"), We = /* @__PURE__ */ d((e) => {
725
+ X.set(e.id, e);
726
+ }, "setBlock"), Pe = /* @__PURE__ */ d(() => L, "getLogger"), Ye = /* @__PURE__ */ d(function() {
727
+ return ct;
728
+ }, "getClasses"), He = {
729
+ getConfig: /* @__PURE__ */ d(() => rt().block, "getConfig"),
730
+ typeStr2Type: Ht,
731
+ edgeTypeStr2Type: Kt,
732
+ edgeStrToEdgeData: Xt,
733
+ getLogger: Pe,
734
+ getBlocksFlat: ze,
735
+ getBlocks: Ae,
736
+ getEdges: Me,
737
+ setHierarchy: Oe,
738
+ getBlock: Fe,
739
+ setBlock: We,
740
+ getColumns: Re,
741
+ getClasses: Ye,
742
+ clear: Ce,
743
+ generateId: Ie
744
+ }, Ke = He, nt = /* @__PURE__ */ d((e, t) => {
745
+ const a = ke, i = a(e, "r"), l = a(e, "g"), s = a(e, "b");
746
+ return ge(i, l, s, t);
747
+ }, "fade"), Xe = /* @__PURE__ */ d((e) => `.label {
748
+ font-family: ${e.fontFamily};
749
+ color: ${e.nodeTextColor || e.textColor};
750
+ }
751
+ .cluster-label text {
752
+ fill: ${e.titleColor};
753
+ }
754
+ .cluster-label span,p {
755
+ color: ${e.titleColor};
756
+ }
757
+
758
+
759
+
760
+ .label text,span,p {
761
+ fill: ${e.nodeTextColor || e.textColor};
762
+ color: ${e.nodeTextColor || e.textColor};
763
+ }
764
+
765
+ .node rect,
766
+ .node circle,
767
+ .node ellipse,
768
+ .node polygon,
769
+ .node path {
770
+ fill: ${e.mainBkg};
771
+ stroke: ${e.nodeBorder};
772
+ stroke-width: 1px;
773
+ }
774
+ .flowchart-label text {
775
+ text-anchor: middle;
776
+ }
777
+ // .flowchart-label .text-outer-tspan {
778
+ // text-anchor: middle;
779
+ // }
780
+ // .flowchart-label .text-inner-tspan {
781
+ // text-anchor: start;
782
+ // }
783
+
784
+ .node .label {
785
+ text-align: center;
786
+ }
787
+ .node.clickable {
788
+ cursor: pointer;
789
+ }
790
+
791
+ .arrowheadPath {
792
+ fill: ${e.arrowheadColor};
793
+ }
794
+
795
+ .edgePath .path {
796
+ stroke: ${e.lineColor};
797
+ stroke-width: 2.0px;
798
+ }
799
+
800
+ .flowchart-link {
801
+ stroke: ${e.lineColor};
802
+ fill: none;
803
+ }
804
+
805
+ .edgeLabel {
806
+ background-color: ${e.edgeLabelBackground};
807
+ rect {
808
+ opacity: 0.5;
809
+ background-color: ${e.edgeLabelBackground};
810
+ fill: ${e.edgeLabelBackground};
811
+ }
812
+ text-align: center;
813
+ }
814
+
815
+ /* For html labels only */
816
+ .labelBkg {
817
+ background-color: ${nt(e.edgeLabelBackground, 0.5)};
818
+ // background-color:
819
+ }
820
+
821
+ .node .cluster {
822
+ // fill: ${nt(e.mainBkg, 0.5)};
823
+ fill: ${nt(e.clusterBkg, 0.5)};
824
+ stroke: ${nt(e.clusterBorder, 0.2)};
825
+ box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
826
+ stroke-width: 1px;
827
+ }
828
+
829
+ .cluster text {
830
+ fill: ${e.titleColor};
831
+ }
832
+
833
+ .cluster span,p {
834
+ color: ${e.titleColor};
835
+ }
836
+ /* .cluster div {
837
+ color: ${e.titleColor};
838
+ } */
839
+
840
+ div.mermaidTooltip {
841
+ position: absolute;
842
+ text-align: center;
843
+ max-width: 200px;
844
+ padding: 2px;
845
+ font-family: ${e.fontFamily};
846
+ font-size: 12px;
847
+ background: ${e.tertiaryColor};
848
+ border: 1px solid ${e.border2};
849
+ border-radius: 2px;
850
+ pointer-events: none;
851
+ z-index: 100;
852
+ }
853
+
854
+ .flowchartTitleText {
855
+ text-anchor: middle;
856
+ font-size: 18px;
857
+ fill: ${e.textColor};
858
+ }
859
+ ${oe()}
860
+ `, "getStyles"), Ue = Xe, je = /* @__PURE__ */ d((e, t, a, i) => {
861
+ t.forEach((l) => {
862
+ rr[l](e, a, i);
863
+ });
864
+ }, "insertMarkers"), Ve = /* @__PURE__ */ d((e, t, a) => {
865
+ L.trace("Making markers for ", a), e.append("defs").append("marker").attr("id", a + "_" + t + "-extensionStart").attr("class", "marker extension " + t).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 1,7 L18,13 V 1 Z"), e.append("defs").append("marker").attr("id", a + "_" + t + "-extensionEnd").attr("class", "marker extension " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 1,1 V 13 L18,7 Z");
866
+ }, "extension"), Ge = /* @__PURE__ */ d((e, t, a) => {
867
+ e.append("defs").append("marker").attr("id", a + "_" + t + "-compositionStart").attr("class", "marker composition " + t).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", a + "_" + t + "-compositionEnd").attr("class", "marker composition " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
868
+ }, "composition"), Ze = /* @__PURE__ */ d((e, t, a) => {
869
+ e.append("defs").append("marker").attr("id", a + "_" + t + "-aggregationStart").attr("class", "marker aggregation " + t).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", a + "_" + t + "-aggregationEnd").attr("class", "marker aggregation " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
870
+ }, "aggregation"), qe = /* @__PURE__ */ d((e, t, a) => {
871
+ e.append("defs").append("marker").attr("id", a + "_" + t + "-dependencyStart").attr("class", "marker dependency " + t).attr("refX", 6).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 5,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", a + "_" + t + "-dependencyEnd").attr("class", "marker dependency " + t).attr("refX", 13).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z");
872
+ }, "dependency"), Je = /* @__PURE__ */ d((e, t, a) => {
873
+ e.append("defs").append("marker").attr("id", a + "_" + t + "-lollipopStart").attr("class", "marker lollipop " + t).attr("refX", 13).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("stroke", "black").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6), e.append("defs").append("marker").attr("id", a + "_" + t + "-lollipopEnd").attr("class", "marker lollipop " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("stroke", "black").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6);
874
+ }, "lollipop"), Qe = /* @__PURE__ */ d((e, t, a) => {
875
+ e.append("marker").attr("id", a + "_" + t + "-pointEnd").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", 6).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 0 0 L 10 5 L 0 10 z").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", a + "_" + t + "-pointStart").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", 4.5).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 0 5 L 10 10 L 10 0 z").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0");
876
+ }, "point"), $e = /* @__PURE__ */ d((e, t, a) => {
877
+ e.append("marker").attr("id", a + "_" + t + "-circleEnd").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", 11).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", a + "_" + t + "-circleStart").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", -1).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0");
878
+ }, "circle"), tr = /* @__PURE__ */ d((e, t, a) => {
879
+ e.append("marker").attr("id", a + "_" + t + "-crossEnd").attr("class", "marker cross " + t).attr("viewBox", "0 0 11 11").attr("refX", 12).attr("refY", 5.2).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("path").attr("d", "M 1,1 l 9,9 M 10,1 l -9,9").attr("class", "arrowMarkerPath").style("stroke-width", 2).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", a + "_" + t + "-crossStart").attr("class", "marker cross " + t).attr("viewBox", "0 0 11 11").attr("refX", -1).attr("refY", 5.2).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("path").attr("d", "M 1,1 l 9,9 M 10,1 l -9,9").attr("class", "arrowMarkerPath").style("stroke-width", 2).style("stroke-dasharray", "1,0");
880
+ }, "cross"), er = /* @__PURE__ */ d((e, t, a) => {
881
+ e.append("defs").append("marker").attr("id", a + "_" + t + "-barbEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 14).attr("markerUnits", "strokeWidth").attr("orient", "auto").append("path").attr("d", "M 19,7 L9,13 L14,7 L9,1 Z");
882
+ }, "barb"), rr = {
883
+ extension: Ve,
884
+ composition: Ge,
885
+ aggregation: Ze,
886
+ dependency: qe,
887
+ lollipop: Je,
888
+ point: Qe,
889
+ circle: $e,
890
+ cross: tr,
891
+ barb: er
892
+ }, ar = je, C = R()?.block?.padding ?? 8;
893
+ function Ut(e, t) {
894
+ if (e === 0 || !Number.isInteger(e))
895
+ throw new Error("Columns must be an integer !== 0.");
896
+ if (t < 0 || !Number.isInteger(t))
897
+ throw new Error("Position must be a non-negative integer." + t);
898
+ if (e < 0)
899
+ return { px: t, py: 0 };
900
+ if (e === 1)
901
+ return { px: 0, py: t };
902
+ const a = t % e, i = Math.floor(t / e);
903
+ return { px: a, py: i };
904
+ }
905
+ d(Ut, "calculateBlockPosition");
906
+ var sr = /* @__PURE__ */ d((e) => {
907
+ let t = 0, a = 0;
908
+ for (const i of e.children) {
909
+ const { width: l, height: s, x: r, y: n } = i.size ?? { width: 0, height: 0, x: 0, y: 0 };
910
+ L.debug(
911
+ "getMaxChildSize abc95 child:",
912
+ i.id,
913
+ "width:",
914
+ l,
915
+ "height:",
916
+ s,
917
+ "x:",
918
+ r,
919
+ "y:",
920
+ n,
921
+ i.type
922
+ ), i.type !== "space" && (l > t && (t = l / (e.widthInColumns ?? 1)), s > a && (a = s));
923
+ }
924
+ return { width: t, height: a };
925
+ }, "getMaxChildSize");
926
+ function ot(e, t, a = 0, i = 0) {
927
+ L.debug(
928
+ "setBlockSizes abc95 (start)",
929
+ e.id,
930
+ e?.size?.x,
931
+ "block width =",
932
+ e?.size,
933
+ "siblingWidth",
934
+ a
935
+ ), e?.size?.width || (e.size = {
936
+ width: a,
937
+ height: i,
938
+ x: 0,
939
+ y: 0
940
+ });
941
+ let l = 0, s = 0;
942
+ if (e.children?.length > 0) {
943
+ for (const b of e.children)
944
+ ot(b, t);
945
+ const r = sr(e);
946
+ l = r.width, s = r.height, L.debug("setBlockSizes abc95 maxWidth of", e.id, ":s children is ", l, s);
947
+ for (const b of e.children)
948
+ b.size && (L.debug(
949
+ `abc95 Setting size of children of ${e.id} id=${b.id} ${l} ${s} ${JSON.stringify(b.size)}`
950
+ ), b.size.width = l * (b.widthInColumns ?? 1) + C * ((b.widthInColumns ?? 1) - 1), b.size.height = s, b.size.x = 0, b.size.y = 0, L.debug(
951
+ `abc95 updating size of ${e.id} children child:${b.id} maxWidth:${l} maxHeight:${s}`
952
+ ));
953
+ for (const b of e.children)
954
+ ot(b, t, l, s);
955
+ const n = e.columns ?? -1;
956
+ let c = 0;
957
+ for (const b of e.children)
958
+ c += b.widthInColumns ?? 1;
959
+ let u = e.children.length;
960
+ n > 0 && n < c && (u = n);
961
+ const o = Math.ceil(c / u);
962
+ let x = u * (l + C) + C, w = o * (s + C) + C;
963
+ if (x < a) {
964
+ L.debug(
965
+ `Detected to small sibling: abc95 ${e.id} siblingWidth ${a} siblingHeight ${i} width ${x}`
966
+ ), x = a, w = i;
967
+ const b = (a - u * C - C) / u, S = (i - o * C - C) / o;
968
+ L.debug("Size indata abc88", e.id, "childWidth", b, "maxWidth", l), L.debug("Size indata abc88", e.id, "childHeight", S, "maxHeight", s), L.debug("Size indata abc88 xSize", u, "padding", C);
969
+ for (const v of e.children)
970
+ v.size && (v.size.width = b, v.size.height = S, v.size.x = 0, v.size.y = 0);
971
+ }
972
+ if (L.debug(
973
+ `abc95 (finale calc) ${e.id} xSize ${u} ySize ${o} columns ${n}${e.children.length} width=${Math.max(x, e.size?.width || 0)}`
974
+ ), x < (e?.size?.width || 0)) {
975
+ x = e?.size?.width || 0;
976
+ const b = n > 0 ? Math.min(e.children.length, n) : e.children.length;
977
+ if (b > 0) {
978
+ const S = (x - b * C - C) / b;
979
+ L.debug("abc95 (growing to fit) width", e.id, x, e.size?.width, S);
980
+ for (const v of e.children)
981
+ v.size && (v.size.width = S);
982
+ }
983
+ }
984
+ e.size = {
985
+ width: x,
986
+ height: w,
987
+ x: 0,
988
+ y: 0
989
+ };
990
+ }
991
+ L.debug(
992
+ "setBlockSizes abc94 (done)",
993
+ e.id,
994
+ e?.size?.x,
995
+ e?.size?.width,
996
+ e?.size?.y,
997
+ e?.size?.height
998
+ );
999
+ }
1000
+ d(ot, "setBlockSizes");
1001
+ function Et(e, t) {
1002
+ L.debug(
1003
+ `abc85 layout blocks (=>layoutBlocks) ${e.id} x: ${e?.size?.x} y: ${e?.size?.y} width: ${e?.size?.width}`
1004
+ );
1005
+ const a = e.columns ?? -1;
1006
+ if (L.debug("layoutBlocks columns abc95", e.id, "=>", a, e), e.children && // find max width of children
1007
+ e.children.length > 0) {
1008
+ const i = e?.children[0]?.size?.width ?? 0, l = e.children.length * i + (e.children.length - 1) * C;
1009
+ L.debug("widthOfChildren 88", l, "posX");
1010
+ let s = 0;
1011
+ L.debug("abc91 block?.size?.x", e.id, e?.size?.x);
1012
+ let r = e?.size?.x ? e?.size?.x + (-e?.size?.width / 2 || 0) : -C, n = 0;
1013
+ for (const c of e.children) {
1014
+ const u = e;
1015
+ if (!c.size)
1016
+ continue;
1017
+ const { width: o, height: x } = c.size, { px: w, py: b } = Ut(a, s);
1018
+ if (b != n && (n = b, r = e?.size?.x ? e?.size?.x + (-e?.size?.width / 2 || 0) : -C, L.debug("New row in layout for block", e.id, " and child ", c.id, n)), L.debug(
1019
+ `abc89 layout blocks (child) id: ${c.id} Pos: ${s} (px, py) ${w},${b} (${u?.size?.x},${u?.size?.y}) parent: ${u.id} width: ${o}${C}`
1020
+ ), u.size) {
1021
+ const v = o / 2;
1022
+ c.size.x = r + C + v, L.debug(
1023
+ `abc91 layout blocks (calc) px, pyid:${c.id} startingPos=X${r} new startingPosX${c.size.x} ${v} padding=${C} width=${o} halfWidth=${v} => x:${c.size.x} y:${c.size.y} ${c.widthInColumns} (width * (child?.w || 1)) / 2 ${o * (c?.widthInColumns ?? 1) / 2}`
1024
+ ), r = c.size.x + v, c.size.y = u.size.y - u.size.height / 2 + b * (x + C) + x / 2 + C, L.debug(
1025
+ `abc88 layout blocks (calc) px, pyid:${c.id}startingPosX${r}${C}${v}=>x:${c.size.x}y:${c.size.y}${c.widthInColumns}(width * (child?.w || 1)) / 2${o * (c?.widthInColumns ?? 1) / 2}`
1026
+ );
1027
+ }
1028
+ c.children && Et(c);
1029
+ let S = c?.widthInColumns ?? 1;
1030
+ a > 0 && (S = Math.min(S, a - s % a)), s += S, L.debug("abc88 columnsPos", c, s);
1031
+ }
1032
+ }
1033
+ L.debug(
1034
+ `layout blocks (<==layoutBlocks) ${e.id} x: ${e?.size?.x} y: ${e?.size?.y} width: ${e?.size?.width}`
1035
+ );
1036
+ }
1037
+ d(Et, "layoutBlocks");
1038
+ function _t(e, { minX: t, minY: a, maxX: i, maxY: l } = { minX: 0, minY: 0, maxX: 0, maxY: 0 }) {
1039
+ if (e.size && e.id !== "root") {
1040
+ const { x: s, y: r, width: n, height: c } = e.size;
1041
+ s - n / 2 < t && (t = s - n / 2), r - c / 2 < a && (a = r - c / 2), s + n / 2 > i && (i = s + n / 2), r + c / 2 > l && (l = r + c / 2);
1042
+ }
1043
+ if (e.children)
1044
+ for (const s of e.children)
1045
+ ({ minX: t, minY: a, maxX: i, maxY: l } = _t(s, { minX: t, minY: a, maxX: i, maxY: l }));
1046
+ return { minX: t, minY: a, maxX: i, maxY: l };
1047
+ }
1048
+ d(_t, "findBounds");
1049
+ function jt(e) {
1050
+ const t = e.getBlock("root");
1051
+ if (!t)
1052
+ return;
1053
+ ot(t, e, 0, 0), Et(t), L.debug("getBlocks", JSON.stringify(t, null, 2));
1054
+ const { minX: a, minY: i, maxX: l, maxY: s } = _t(t), r = s - i, n = l - a;
1055
+ return { x: a, y: i, width: n, height: r };
1056
+ }
1057
+ d(jt, "layout");
1058
+ function mt(e, t) {
1059
+ t && e.attr("style", t);
1060
+ }
1061
+ d(mt, "applyStyle");
1062
+ function Vt(e, t) {
1063
+ const a = O(document.createElementNS("http://www.w3.org/2000/svg", "foreignObject")), i = a.append("xhtml:div"), l = e.label, s = e.isNode ? "nodeLabel" : "edgeLabel", r = i.append("span");
1064
+ return r.html(yt(l, t)), mt(r, e.labelStyle), r.attr("class", s), mt(i, e.labelStyle), i.style("display", "inline-block"), i.style("white-space", "nowrap"), i.attr("xmlns", "http://www.w3.org/1999/xhtml"), a.node();
1065
+ }
1066
+ d(Vt, "addHtmlLabel");
1067
+ var ir = /* @__PURE__ */ d(async (e, t, a, i) => {
1068
+ let l = e || "";
1069
+ typeof l == "object" && (l = l[0]);
1070
+ const s = R();
1071
+ if (j(s.flowchart.htmlLabels)) {
1072
+ l = l.replace(/\\n|\n/g, "<br />"), L.debug("vertexText" + l);
1073
+ const r = await we(xt(l)), n = {
1074
+ isNode: i,
1075
+ label: r,
1076
+ labelStyle: t.replace("fill:", "color:")
1077
+ };
1078
+ return Vt(n, s);
1079
+ } else {
1080
+ const r = document.createElementNS("http://www.w3.org/2000/svg", "text");
1081
+ r.setAttribute("style", t.replace("color:", "fill:"));
1082
+ let n = [];
1083
+ typeof l == "string" ? n = l.split(/\\n|\n|<br\s*\/?>/gi) : Array.isArray(l) ? n = l : n = [];
1084
+ for (const c of n) {
1085
+ const u = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
1086
+ u.setAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:space", "preserve"), u.setAttribute("dy", "1em"), u.setAttribute("x", "0"), a ? u.setAttribute("class", "title-row") : u.setAttribute("class", "row"), u.textContent = c.trim(), r.appendChild(u);
1087
+ }
1088
+ return r;
1089
+ }
1090
+ }, "createLabel"), K = ir, nr = /* @__PURE__ */ d((e, t, a, i, l) => {
1091
+ t.arrowTypeStart && Ot(e, "start", t.arrowTypeStart, a, i, l), t.arrowTypeEnd && Ot(e, "end", t.arrowTypeEnd, a, i, l);
1092
+ }, "addEdgeMarkers"), lr = {
1093
+ arrow_cross: "cross",
1094
+ arrow_point: "point",
1095
+ arrow_barb: "barb",
1096
+ arrow_circle: "circle",
1097
+ aggregation: "aggregation",
1098
+ extension: "extension",
1099
+ composition: "composition",
1100
+ dependency: "dependency",
1101
+ lollipop: "lollipop"
1102
+ }, Ot = /* @__PURE__ */ d((e, t, a, i, l, s) => {
1103
+ const r = lr[a];
1104
+ if (!r) {
1105
+ L.warn(`Unknown arrow type: ${a}`);
1106
+ return;
1107
+ }
1108
+ const n = t === "start" ? "Start" : "End";
1109
+ e.attr(`marker-${t}`, `url(${i}#${l}_${s}-${r}${n})`);
1110
+ }, "addEdgeMarker"), Lt = {}, M = {}, cr = /* @__PURE__ */ d(async (e, t) => {
1111
+ const a = R(), i = j(a.flowchart.htmlLabels), l = t.labelType === "markdown" ? Wt(
1112
+ e,
1113
+ t.label,
1114
+ {
1115
+ style: t.labelStyle,
1116
+ useHtmlLabels: i,
1117
+ addSvgBackground: !0
1118
+ },
1119
+ a
1120
+ ) : await K(t.label, t.labelStyle), s = e.insert("g").attr("class", "edgeLabel"), r = s.insert("g").attr("class", "label");
1121
+ r.node().appendChild(l);
1122
+ let n = l.getBBox();
1123
+ if (i) {
1124
+ const u = l.children[0], o = O(l);
1125
+ n = u.getBoundingClientRect(), o.attr("width", n.width), o.attr("height", n.height);
1126
+ }
1127
+ r.attr("transform", "translate(" + -n.width / 2 + ", " + -n.height / 2 + ")"), Lt[t.id] = s, t.width = n.width, t.height = n.height;
1128
+ let c;
1129
+ if (t.startLabelLeft) {
1130
+ const u = await K(t.startLabelLeft, t.labelStyle), o = e.insert("g").attr("class", "edgeTerminals"), x = o.insert("g").attr("class", "inner");
1131
+ c = x.node().appendChild(u);
1132
+ const w = u.getBBox();
1133
+ x.attr("transform", "translate(" + -w.width / 2 + ", " + -w.height / 2 + ")"), M[t.id] || (M[t.id] = {}), M[t.id].startLeft = o, tt(c, t.startLabelLeft);
1134
+ }
1135
+ if (t.startLabelRight) {
1136
+ const u = await K(t.startLabelRight, t.labelStyle), o = e.insert("g").attr("class", "edgeTerminals"), x = o.insert("g").attr("class", "inner");
1137
+ c = o.node().appendChild(u), x.node().appendChild(u);
1138
+ const w = u.getBBox();
1139
+ x.attr("transform", "translate(" + -w.width / 2 + ", " + -w.height / 2 + ")"), M[t.id] || (M[t.id] = {}), M[t.id].startRight = o, tt(c, t.startLabelRight);
1140
+ }
1141
+ if (t.endLabelLeft) {
1142
+ const u = await K(t.endLabelLeft, t.labelStyle), o = e.insert("g").attr("class", "edgeTerminals"), x = o.insert("g").attr("class", "inner");
1143
+ c = x.node().appendChild(u);
1144
+ const w = u.getBBox();
1145
+ x.attr("transform", "translate(" + -w.width / 2 + ", " + -w.height / 2 + ")"), o.node().appendChild(u), M[t.id] || (M[t.id] = {}), M[t.id].endLeft = o, tt(c, t.endLabelLeft);
1146
+ }
1147
+ if (t.endLabelRight) {
1148
+ const u = await K(t.endLabelRight, t.labelStyle), o = e.insert("g").attr("class", "edgeTerminals"), x = o.insert("g").attr("class", "inner");
1149
+ c = x.node().appendChild(u);
1150
+ const w = u.getBBox();
1151
+ x.attr("transform", "translate(" + -w.width / 2 + ", " + -w.height / 2 + ")"), o.node().appendChild(u), M[t.id] || (M[t.id] = {}), M[t.id].endRight = o, tt(c, t.endLabelRight);
1152
+ }
1153
+ return l;
1154
+ }, "insertEdgeLabel");
1155
+ function tt(e, t) {
1156
+ R().flowchart.htmlLabels && e && (e.style.width = t.length * 9 + "px", e.style.height = "12px");
1157
+ }
1158
+ d(tt, "setTerminalWidth");
1159
+ var or = /* @__PURE__ */ d((e, t) => {
1160
+ L.debug("Moving label abc88 ", e.id, e.label, Lt[e.id], t);
1161
+ let a = t.updatedPath ? t.updatedPath : t.originalPath;
1162
+ const i = R(), { subGraphTitleTotalMargin: l } = ye(i);
1163
+ if (e.label) {
1164
+ const s = Lt[e.id];
1165
+ let r = e.x, n = e.y;
1166
+ if (a) {
1167
+ const c = $.calcLabelPosition(a);
1168
+ L.debug(
1169
+ "Moving label " + e.label + " from (",
1170
+ r,
1171
+ ",",
1172
+ n,
1173
+ ") to (",
1174
+ c.x,
1175
+ ",",
1176
+ c.y,
1177
+ ") abc88"
1178
+ ), t.updatedPath && (r = c.x, n = c.y);
1179
+ }
1180
+ s.attr("transform", `translate(${r}, ${n + l / 2})`);
1181
+ }
1182
+ if (e.startLabelLeft) {
1183
+ const s = M[e.id].startLeft;
1184
+ let r = e.x, n = e.y;
1185
+ if (a) {
1186
+ const c = $.calcTerminalLabelPosition(e.arrowTypeStart ? 10 : 0, "start_left", a);
1187
+ r = c.x, n = c.y;
1188
+ }
1189
+ s.attr("transform", `translate(${r}, ${n})`);
1190
+ }
1191
+ if (e.startLabelRight) {
1192
+ const s = M[e.id].startRight;
1193
+ let r = e.x, n = e.y;
1194
+ if (a) {
1195
+ const c = $.calcTerminalLabelPosition(
1196
+ e.arrowTypeStart ? 10 : 0,
1197
+ "start_right",
1198
+ a
1199
+ );
1200
+ r = c.x, n = c.y;
1201
+ }
1202
+ s.attr("transform", `translate(${r}, ${n})`);
1203
+ }
1204
+ if (e.endLabelLeft) {
1205
+ const s = M[e.id].endLeft;
1206
+ let r = e.x, n = e.y;
1207
+ if (a) {
1208
+ const c = $.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_left", a);
1209
+ r = c.x, n = c.y;
1210
+ }
1211
+ s.attr("transform", `translate(${r}, ${n})`);
1212
+ }
1213
+ if (e.endLabelRight) {
1214
+ const s = M[e.id].endRight;
1215
+ let r = e.x, n = e.y;
1216
+ if (a) {
1217
+ const c = $.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_right", a);
1218
+ r = c.x, n = c.y;
1219
+ }
1220
+ s.attr("transform", `translate(${r}, ${n})`);
1221
+ }
1222
+ }, "positionEdgeLabel"), hr = /* @__PURE__ */ d((e, t) => {
1223
+ const a = e.x, i = e.y, l = Math.abs(t.x - a), s = Math.abs(t.y - i), r = e.width / 2, n = e.height / 2;
1224
+ return l >= r || s >= n;
1225
+ }, "outsideNode"), dr = /* @__PURE__ */ d((e, t, a) => {
1226
+ L.debug(`intersection calc abc89:
1227
+ outsidePoint: ${JSON.stringify(t)}
1228
+ insidePoint : ${JSON.stringify(a)}
1229
+ node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);
1230
+ const i = e.x, l = e.y, s = Math.abs(i - a.x), r = e.width / 2;
1231
+ let n = a.x < t.x ? r - s : r + s;
1232
+ const c = e.height / 2, u = Math.abs(t.y - a.y), o = Math.abs(t.x - a.x);
1233
+ if (Math.abs(l - t.y) * r > Math.abs(i - t.x) * c) {
1234
+ let x = a.y < t.y ? t.y - c - l : l - c - t.y;
1235
+ n = o * x / u;
1236
+ const w = {
1237
+ x: a.x < t.x ? a.x + n : a.x - o + n,
1238
+ y: a.y < t.y ? a.y + u - x : a.y - u + x
1239
+ };
1240
+ return n === 0 && (w.x = t.x, w.y = t.y), o === 0 && (w.x = t.x), u === 0 && (w.y = t.y), L.debug(`abc89 topp/bott calc, Q ${u}, q ${x}, R ${o}, r ${n}`, w), w;
1241
+ } else {
1242
+ a.x < t.x ? n = t.x - r - i : n = i - r - t.x;
1243
+ let x = u * n / o, w = a.x < t.x ? a.x + o - n : a.x - o + n, b = a.y < t.y ? a.y + x : a.y - x;
1244
+ return L.debug(`sides calc abc89, Q ${u}, q ${x}, R ${o}, r ${n}`, { _x: w, _y: b }), n === 0 && (w = t.x, b = t.y), o === 0 && (w = t.x), u === 0 && (b = t.y), { x: w, y: b };
1245
+ }
1246
+ }, "intersection"), Rt = /* @__PURE__ */ d((e, t) => {
1247
+ L.debug("abc88 cutPathAtIntersect", e, t);
1248
+ let a = [], i = e[0], l = !1;
1249
+ return e.forEach((s) => {
1250
+ if (!hr(t, s) && !l) {
1251
+ const r = dr(t, i, s);
1252
+ let n = !1;
1253
+ a.forEach((c) => {
1254
+ n = n || c.x === r.x && c.y === r.y;
1255
+ }), a.some((c) => c.x === r.x && c.y === r.y) || a.push(r), l = !0;
1256
+ } else
1257
+ i = s, l || a.push(s);
1258
+ }), a;
1259
+ }, "cutPathAtIntersect"), gr = /* @__PURE__ */ d(function(e, t, a, i, l, s, r) {
1260
+ let n = a.points;
1261
+ L.debug("abc88 InsertEdge: edge=", a, "e=", t);
1262
+ let c = !1;
1263
+ const u = s.node(t.v);
1264
+ var o = s.node(t.w);
1265
+ o?.intersect && u?.intersect && (n = n.slice(1, a.points.length - 1), n.unshift(u.intersect(n[0])), n.push(o.intersect(n[n.length - 1]))), a.toCluster && (L.debug("to cluster abc88", i[a.toCluster]), n = Rt(a.points, i[a.toCluster].node), c = !0), a.fromCluster && (L.debug("from cluster abc88", i[a.fromCluster]), n = Rt(n.reverse(), i[a.fromCluster].node).reverse(), c = !0);
1266
+ const x = n.filter((y) => !Number.isNaN(y.y));
1267
+ let w = fe;
1268
+ a.curve && (l === "graph" || l === "flowchart") && (w = a.curve);
1269
+ const { x: b, y: S } = ue(a), v = pe().x(b).y(S).curve(w);
1270
+ let k;
1271
+ switch (a.thickness) {
1272
+ case "normal":
1273
+ k = "edge-thickness-normal";
1274
+ break;
1275
+ case "thick":
1276
+ k = "edge-thickness-thick";
1277
+ break;
1278
+ case "invisible":
1279
+ k = "edge-thickness-thick";
1280
+ break;
1281
+ default:
1282
+ k = "";
1283
+ }
1284
+ switch (a.pattern) {
1285
+ case "solid":
1286
+ k += " edge-pattern-solid";
1287
+ break;
1288
+ case "dotted":
1289
+ k += " edge-pattern-dotted";
1290
+ break;
1291
+ case "dashed":
1292
+ k += " edge-pattern-dashed";
1293
+ break;
1294
+ }
1295
+ const B = e.append("path").attr("d", v(x)).attr("id", a.id).attr("class", " " + k + (a.classes ? " " + a.classes : "")).attr("style", a.style);
1296
+ let _ = "";
1297
+ (R().flowchart.arrowMarkerAbsolute || R().state.arrowMarkerAbsolute) && (_ = xe(!0)), nr(B, a, _, r, l);
1298
+ let D = {};
1299
+ return c && (D.updatedPath = n), D.originalPath = a.points, D;
1300
+ }, "insertEdge"), ur = /* @__PURE__ */ d((e) => {
1301
+ const t = /* @__PURE__ */ new Set();
1302
+ for (const a of e)
1303
+ switch (a) {
1304
+ case "x":
1305
+ t.add("right"), t.add("left");
1306
+ break;
1307
+ case "y":
1308
+ t.add("up"), t.add("down");
1309
+ break;
1310
+ default:
1311
+ t.add(a);
1312
+ break;
1313
+ }
1314
+ return t;
1315
+ }, "expandAndDeduplicateDirections"), pr = /* @__PURE__ */ d((e, t, a) => {
1316
+ const i = ur(e), l = 2, s = t.height + 2 * a.padding, r = s / l, n = t.width + 2 * r + a.padding, c = a.padding / 2;
1317
+ return i.has("right") && i.has("left") && i.has("up") && i.has("down") ? [
1318
+ // Bottom
1319
+ { x: 0, y: 0 },
1320
+ { x: r, y: 0 },
1321
+ { x: n / 2, y: 2 * c },
1322
+ { x: n - r, y: 0 },
1323
+ { x: n, y: 0 },
1324
+ // Right
1325
+ { x: n, y: -s / 3 },
1326
+ { x: n + 2 * c, y: -s / 2 },
1327
+ { x: n, y: -2 * s / 3 },
1328
+ { x: n, y: -s },
1329
+ // Top
1330
+ { x: n - r, y: -s },
1331
+ { x: n / 2, y: -s - 2 * c },
1332
+ { x: r, y: -s },
1333
+ // Left
1334
+ { x: 0, y: -s },
1335
+ { x: 0, y: -2 * s / 3 },
1336
+ { x: -2 * c, y: -s / 2 },
1337
+ { x: 0, y: -s / 3 }
1338
+ ] : i.has("right") && i.has("left") && i.has("up") ? [
1339
+ { x: r, y: 0 },
1340
+ { x: n - r, y: 0 },
1341
+ { x: n, y: -s / 2 },
1342
+ { x: n - r, y: -s },
1343
+ { x: r, y: -s },
1344
+ { x: 0, y: -s / 2 }
1345
+ ] : i.has("right") && i.has("left") && i.has("down") ? [
1346
+ { x: 0, y: 0 },
1347
+ { x: r, y: -s },
1348
+ { x: n - r, y: -s },
1349
+ { x: n, y: 0 }
1350
+ ] : i.has("right") && i.has("up") && i.has("down") ? [
1351
+ { x: 0, y: 0 },
1352
+ { x: n, y: -r },
1353
+ { x: n, y: -s + r },
1354
+ { x: 0, y: -s }
1355
+ ] : i.has("left") && i.has("up") && i.has("down") ? [
1356
+ { x: n, y: 0 },
1357
+ { x: 0, y: -r },
1358
+ { x: 0, y: -s + r },
1359
+ { x: n, y: -s }
1360
+ ] : i.has("right") && i.has("left") ? [
1361
+ { x: r, y: 0 },
1362
+ { x: r, y: -c },
1363
+ { x: n - r, y: -c },
1364
+ { x: n - r, y: 0 },
1365
+ { x: n, y: -s / 2 },
1366
+ { x: n - r, y: -s },
1367
+ { x: n - r, y: -s + c },
1368
+ { x: r, y: -s + c },
1369
+ { x: r, y: -s },
1370
+ { x: 0, y: -s / 2 }
1371
+ ] : i.has("up") && i.has("down") ? [
1372
+ // Bottom center
1373
+ { x: n / 2, y: 0 },
1374
+ // Left pont of bottom arrow
1375
+ { x: 0, y: -c },
1376
+ { x: r, y: -c },
1377
+ // Left top over vertical section
1378
+ { x: r, y: -s + c },
1379
+ { x: 0, y: -s + c },
1380
+ // Top of arrow
1381
+ { x: n / 2, y: -s },
1382
+ { x: n, y: -s + c },
1383
+ // Top of right vertical bar
1384
+ { x: n - r, y: -s + c },
1385
+ { x: n - r, y: -c },
1386
+ { x: n, y: -c }
1387
+ ] : i.has("right") && i.has("up") ? [
1388
+ { x: 0, y: 0 },
1389
+ { x: n, y: -r },
1390
+ { x: 0, y: -s }
1391
+ ] : i.has("right") && i.has("down") ? [
1392
+ { x: 0, y: 0 },
1393
+ { x: n, y: 0 },
1394
+ { x: 0, y: -s }
1395
+ ] : i.has("left") && i.has("up") ? [
1396
+ { x: n, y: 0 },
1397
+ { x: 0, y: -r },
1398
+ { x: n, y: -s }
1399
+ ] : i.has("left") && i.has("down") ? [
1400
+ { x: n, y: 0 },
1401
+ { x: 0, y: 0 },
1402
+ { x: n, y: -s }
1403
+ ] : i.has("right") ? [
1404
+ { x: r, y: -c },
1405
+ { x: r, y: -c },
1406
+ { x: n - r, y: -c },
1407
+ { x: n - r, y: 0 },
1408
+ { x: n, y: -s / 2 },
1409
+ { x: n - r, y: -s },
1410
+ { x: n - r, y: -s + c },
1411
+ // top left corner of arrow
1412
+ { x: r, y: -s + c },
1413
+ { x: r, y: -s + c }
1414
+ ] : i.has("left") ? [
1415
+ { x: r, y: 0 },
1416
+ { x: r, y: -c },
1417
+ // Two points, the right corners
1418
+ { x: n - r, y: -c },
1419
+ { x: n - r, y: -s + c },
1420
+ { x: r, y: -s + c },
1421
+ { x: r, y: -s },
1422
+ { x: 0, y: -s / 2 }
1423
+ ] : i.has("up") ? [
1424
+ // Bottom center
1425
+ { x: r, y: -c },
1426
+ // Left top over vertical section
1427
+ { x: r, y: -s + c },
1428
+ { x: 0, y: -s + c },
1429
+ // Top of arrow
1430
+ { x: n / 2, y: -s },
1431
+ { x: n, y: -s + c },
1432
+ // Top of right vertical bar
1433
+ { x: n - r, y: -s + c },
1434
+ { x: n - r, y: -c }
1435
+ ] : i.has("down") ? [
1436
+ // Bottom center
1437
+ { x: n / 2, y: 0 },
1438
+ // Left pont of bottom arrow
1439
+ { x: 0, y: -c },
1440
+ { x: r, y: -c },
1441
+ // Left top over vertical section
1442
+ { x: r, y: -s + c },
1443
+ { x: n - r, y: -s + c },
1444
+ { x: n - r, y: -c },
1445
+ { x: n, y: -c }
1446
+ ] : [{ x: 0, y: 0 }];
1447
+ }, "getArrowPoints");
1448
+ function Gt(e, t) {
1449
+ return e.intersect(t);
1450
+ }
1451
+ d(Gt, "intersectNode");
1452
+ var fr = Gt;
1453
+ function Zt(e, t, a, i) {
1454
+ var l = e.x, s = e.y, r = l - i.x, n = s - i.y, c = Math.sqrt(t * t * n * n + a * a * r * r), u = Math.abs(t * a * r / c);
1455
+ i.x < l && (u = -u);
1456
+ var o = Math.abs(t * a * n / c);
1457
+ return i.y < s && (o = -o), { x: l + u, y: s + o };
1458
+ }
1459
+ d(Zt, "intersectEllipse");
1460
+ var qt = Zt;
1461
+ function Jt(e, t, a) {
1462
+ return qt(e, t, t, a);
1463
+ }
1464
+ d(Jt, "intersectCircle");
1465
+ var xr = Jt;
1466
+ function Qt(e, t, a, i) {
1467
+ var l, s, r, n, c, u, o, x, w, b, S, v, k, B, _;
1468
+ if (l = t.y - e.y, r = e.x - t.x, c = t.x * e.y - e.x * t.y, w = l * a.x + r * a.y + c, b = l * i.x + r * i.y + c, !(w !== 0 && b !== 0 && St(w, b)) && (s = i.y - a.y, n = a.x - i.x, u = i.x * a.y - a.x * i.y, o = s * e.x + n * e.y + u, x = s * t.x + n * t.y + u, !(o !== 0 && x !== 0 && St(o, x)) && (S = l * n - s * r, S !== 0)))
1469
+ return v = Math.abs(S / 2), k = r * u - n * c, B = k < 0 ? (k - v) / S : (k + v) / S, k = s * c - l * u, _ = k < 0 ? (k - v) / S : (k + v) / S, { x: B, y: _ };
1470
+ }
1471
+ d(Qt, "intersectLine");
1472
+ function St(e, t) {
1473
+ return e * t > 0;
1474
+ }
1475
+ d(St, "sameSign");
1476
+ var yr = Qt, br = $t;
1477
+ function $t(e, t, a) {
1478
+ var i = e.x, l = e.y, s = [], r = Number.POSITIVE_INFINITY, n = Number.POSITIVE_INFINITY;
1479
+ typeof t.forEach == "function" ? t.forEach(function(S) {
1480
+ r = Math.min(r, S.x), n = Math.min(n, S.y);
1481
+ }) : (r = Math.min(r, t.x), n = Math.min(n, t.y));
1482
+ for (var c = i - e.width / 2 - r, u = l - e.height / 2 - n, o = 0; o < t.length; o++) {
1483
+ var x = t[o], w = t[o < t.length - 1 ? o + 1 : 0], b = yr(
1484
+ e,
1485
+ a,
1486
+ { x: c + x.x, y: u + x.y },
1487
+ { x: c + w.x, y: u + w.y }
1488
+ );
1489
+ b && s.push(b);
1490
+ }
1491
+ return s.length ? (s.length > 1 && s.sort(function(S, v) {
1492
+ var k = S.x - a.x, B = S.y - a.y, _ = Math.sqrt(k * k + B * B), D = v.x - a.x, y = v.y - a.y, g = Math.sqrt(D * D + y * y);
1493
+ return _ < g ? -1 : _ === g ? 0 : 1;
1494
+ }), s[0]) : e;
1495
+ }
1496
+ d($t, "intersectPolygon");
1497
+ var wr = /* @__PURE__ */ d((e, t) => {
1498
+ var a = e.x, i = e.y, l = t.x - a, s = t.y - i, r = e.width / 2, n = e.height / 2, c, u;
1499
+ return Math.abs(s) * r > Math.abs(l) * n ? (s < 0 && (n = -n), c = s === 0 ? 0 : n * l / s, u = n) : (l < 0 && (r = -r), c = r, u = l === 0 ? 0 : r * s / l), { x: a + c, y: i + u };
1500
+ }, "intersectRect"), mr = wr, N = {
1501
+ node: fr,
1502
+ circle: xr,
1503
+ ellipse: qt,
1504
+ polygon: br,
1505
+ rect: mr
1506
+ }, A = /* @__PURE__ */ d(async (e, t, a, i) => {
1507
+ const l = R();
1508
+ let s;
1509
+ const r = t.useHtmlLabels || j(l.flowchart.htmlLabels);
1510
+ a ? s = a : s = "node default";
1511
+ const n = e.insert("g").attr("class", s).attr("id", t.domId || t.id), c = n.insert("g").attr("class", "label").attr("style", t.labelStyle);
1512
+ let u;
1513
+ t.labelText === void 0 ? u = "" : u = typeof t.labelText == "string" ? t.labelText : t.labelText[0];
1514
+ const o = c.node();
1515
+ let x;
1516
+ t.labelType === "markdown" ? x = Wt(
1517
+ c,
1518
+ yt(xt(u), l),
1519
+ {
1520
+ useHtmlLabels: r,
1521
+ width: t.width || l.flowchart.wrappingWidth,
1522
+ classes: "markdown-node-label"
1523
+ },
1524
+ l
1525
+ ) : x = o.appendChild(
1526
+ await K(
1527
+ yt(xt(u), l),
1528
+ t.labelStyle,
1529
+ !1,
1530
+ i
1531
+ )
1532
+ );
1533
+ let w = x.getBBox();
1534
+ const b = t.padding / 2;
1535
+ if (j(l.flowchart.htmlLabels)) {
1536
+ const S = x.children[0], v = O(x), k = S.getElementsByTagName("img");
1537
+ if (k) {
1538
+ const B = u.replace(/<img[^>]*>/g, "").trim() === "";
1539
+ await Promise.all(
1540
+ [...k].map(
1541
+ (_) => new Promise((D) => {
1542
+ function y() {
1543
+ if (_.style.display = "flex", _.style.flexDirection = "column", B) {
1544
+ const g = l.fontSize ? l.fontSize : window.getComputedStyle(document.body).fontSize, m = parseInt(g, 10) * 5 + "px";
1545
+ _.style.minWidth = m, _.style.maxWidth = m;
1546
+ } else
1547
+ _.style.width = "100%";
1548
+ D(_);
1549
+ }
1550
+ d(y, "setupImage"), setTimeout(() => {
1551
+ _.complete && y();
1552
+ }), _.addEventListener("error", y), _.addEventListener("load", y);
1553
+ })
1554
+ )
1555
+ );
1556
+ }
1557
+ w = S.getBoundingClientRect(), v.attr("width", w.width), v.attr("height", w.height);
1558
+ }
1559
+ return r ? c.attr("transform", "translate(" + -w.width / 2 + ", " + -w.height / 2 + ")") : c.attr("transform", "translate(0, " + -w.height / 2 + ")"), t.centerLabel && c.attr("transform", "translate(" + -w.width / 2 + ", " + -w.height / 2 + ")"), c.insert("rect", ":first-child"), { shapeSvg: n, bbox: w, halfPadding: b, label: c };
1560
+ }, "labelHelper"), T = /* @__PURE__ */ d((e, t) => {
1561
+ const a = t.node().getBBox();
1562
+ e.width = a.width, e.height = a.height;
1563
+ }, "updateNodeBounds");
1564
+ function U(e, t, a, i) {
1565
+ return e.insert("polygon", ":first-child").attr(
1566
+ "points",
1567
+ i.map(function(l) {
1568
+ return l.x + "," + l.y;
1569
+ }).join(" ")
1570
+ ).attr("class", "label-container").attr("transform", "translate(" + -t / 2 + "," + a / 2 + ")");
1571
+ }
1572
+ d(U, "insertPolygonShape");
1573
+ var Lr = /* @__PURE__ */ d(async (e, t) => {
1574
+ t.useHtmlLabels || R().flowchart.htmlLabels || (t.centerLabel = !0);
1575
+ const { shapeSvg: i, bbox: l, halfPadding: s } = await A(
1576
+ e,
1577
+ t,
1578
+ "node " + t.classes,
1579
+ !0
1580
+ );
1581
+ L.info("Classes = ", t.classes);
1582
+ const r = i.insert("rect", ":first-child");
1583
+ return r.attr("rx", t.rx).attr("ry", t.ry).attr("x", -l.width / 2 - s).attr("y", -l.height / 2 - s).attr("width", l.width + t.padding).attr("height", l.height + t.padding), T(t, r), t.intersect = function(n) {
1584
+ return N.rect(t, n);
1585
+ }, i;
1586
+ }, "note"), Sr = Lr, zt = /* @__PURE__ */ d((e) => e ? " " + e : "", "formatClass"), Y = /* @__PURE__ */ d((e, t) => `${t || "node default"}${zt(e.classes)} ${zt(
1587
+ e.class
1588
+ )}`, "getClassesFromNode"), At = /* @__PURE__ */ d(async (e, t) => {
1589
+ const { shapeSvg: a, bbox: i } = await A(
1590
+ e,
1591
+ t,
1592
+ Y(t, void 0),
1593
+ !0
1594
+ ), l = i.width + t.padding, s = i.height + t.padding, r = l + s, n = [
1595
+ { x: r / 2, y: 0 },
1596
+ { x: r, y: -r / 2 },
1597
+ { x: r / 2, y: -r },
1598
+ { x: 0, y: -r / 2 }
1599
+ ];
1600
+ L.info("Question main (Circle)");
1601
+ const c = U(a, r, r, n);
1602
+ return c.attr("style", t.style), T(t, c), t.intersect = function(u) {
1603
+ return L.warn("Intersect called"), N.polygon(t, n, u);
1604
+ }, a;
1605
+ }, "question"), kr = /* @__PURE__ */ d((e, t) => {
1606
+ const a = e.insert("g").attr("class", "node default").attr("id", t.domId || t.id), i = 28, l = [
1607
+ { x: 0, y: i / 2 },
1608
+ { x: i / 2, y: 0 },
1609
+ { x: 0, y: -i / 2 },
1610
+ { x: -i / 2, y: 0 }
1611
+ ];
1612
+ return a.insert("polygon", ":first-child").attr(
1613
+ "points",
1614
+ l.map(function(r) {
1615
+ return r.x + "," + r.y;
1616
+ }).join(" ")
1617
+ ).attr("class", "state-start").attr("r", 7).attr("width", 28).attr("height", 28), t.width = 28, t.height = 28, t.intersect = function(r) {
1618
+ return N.circle(t, 14, r);
1619
+ }, a;
1620
+ }, "choice"), vr = /* @__PURE__ */ d(async (e, t) => {
1621
+ const { shapeSvg: a, bbox: i } = await A(
1622
+ e,
1623
+ t,
1624
+ Y(t, void 0),
1625
+ !0
1626
+ ), l = 4, s = i.height + t.padding, r = s / l, n = i.width + 2 * r + t.padding, c = [
1627
+ { x: r, y: 0 },
1628
+ { x: n - r, y: 0 },
1629
+ { x: n, y: -s / 2 },
1630
+ { x: n - r, y: -s },
1631
+ { x: r, y: -s },
1632
+ { x: 0, y: -s / 2 }
1633
+ ], u = U(a, n, s, c);
1634
+ return u.attr("style", t.style), T(t, u), t.intersect = function(o) {
1635
+ return N.polygon(t, c, o);
1636
+ }, a;
1637
+ }, "hexagon"), Er = /* @__PURE__ */ d(async (e, t) => {
1638
+ const { shapeSvg: a, bbox: i } = await A(e, t, void 0, !0), l = 2, s = i.height + 2 * t.padding, r = s / l, n = i.width + 2 * r + t.padding, c = pr(t.directions, i, t), u = U(a, n, s, c);
1639
+ return u.attr("style", t.style), T(t, u), t.intersect = function(o) {
1640
+ return N.polygon(t, c, o);
1641
+ }, a;
1642
+ }, "block_arrow"), _r = /* @__PURE__ */ d(async (e, t) => {
1643
+ const { shapeSvg: a, bbox: i } = await A(
1644
+ e,
1645
+ t,
1646
+ Y(t, void 0),
1647
+ !0
1648
+ ), l = i.width + t.padding, s = i.height + t.padding, r = [
1649
+ { x: -s / 2, y: 0 },
1650
+ { x: l, y: 0 },
1651
+ { x: l, y: -s },
1652
+ { x: -s / 2, y: -s },
1653
+ { x: 0, y: -s / 2 }
1654
+ ];
1655
+ return U(a, l, s, r).attr("style", t.style), t.width = l + s, t.height = s, t.intersect = function(c) {
1656
+ return N.polygon(t, r, c);
1657
+ }, a;
1658
+ }, "rect_left_inv_arrow"), Dr = /* @__PURE__ */ d(async (e, t) => {
1659
+ const { shapeSvg: a, bbox: i } = await A(e, t, Y(t), !0), l = i.width + t.padding, s = i.height + t.padding, r = [
1660
+ { x: -2 * s / 6, y: 0 },
1661
+ { x: l - s / 6, y: 0 },
1662
+ { x: l + 2 * s / 6, y: -s },
1663
+ { x: s / 6, y: -s }
1664
+ ], n = U(a, l, s, r);
1665
+ return n.attr("style", t.style), T(t, n), t.intersect = function(c) {
1666
+ return N.polygon(t, r, c);
1667
+ }, a;
1668
+ }, "lean_right"), Nr = /* @__PURE__ */ d(async (e, t) => {
1669
+ const { shapeSvg: a, bbox: i } = await A(
1670
+ e,
1671
+ t,
1672
+ Y(t, void 0),
1673
+ !0
1674
+ ), l = i.width + t.padding, s = i.height + t.padding, r = [
1675
+ { x: 2 * s / 6, y: 0 },
1676
+ { x: l + s / 6, y: 0 },
1677
+ { x: l - 2 * s / 6, y: -s },
1678
+ { x: -s / 6, y: -s }
1679
+ ], n = U(a, l, s, r);
1680
+ return n.attr("style", t.style), T(t, n), t.intersect = function(c) {
1681
+ return N.polygon(t, r, c);
1682
+ }, a;
1683
+ }, "lean_left"), Tr = /* @__PURE__ */ d(async (e, t) => {
1684
+ const { shapeSvg: a, bbox: i } = await A(
1685
+ e,
1686
+ t,
1687
+ Y(t, void 0),
1688
+ !0
1689
+ ), l = i.width + t.padding, s = i.height + t.padding, r = [
1690
+ { x: -2 * s / 6, y: 0 },
1691
+ { x: l + 2 * s / 6, y: 0 },
1692
+ { x: l - s / 6, y: -s },
1693
+ { x: s / 6, y: -s }
1694
+ ], n = U(a, l, s, r);
1695
+ return n.attr("style", t.style), T(t, n), t.intersect = function(c) {
1696
+ return N.polygon(t, r, c);
1697
+ }, a;
1698
+ }, "trapezoid"), Br = /* @__PURE__ */ d(async (e, t) => {
1699
+ const { shapeSvg: a, bbox: i } = await A(
1700
+ e,
1701
+ t,
1702
+ Y(t, void 0),
1703
+ !0
1704
+ ), l = i.width + t.padding, s = i.height + t.padding, r = [
1705
+ { x: s / 6, y: 0 },
1706
+ { x: l - s / 6, y: 0 },
1707
+ { x: l + 2 * s / 6, y: -s },
1708
+ { x: -2 * s / 6, y: -s }
1709
+ ], n = U(a, l, s, r);
1710
+ return n.attr("style", t.style), T(t, n), t.intersect = function(c) {
1711
+ return N.polygon(t, r, c);
1712
+ }, a;
1713
+ }, "inv_trapezoid"), Cr = /* @__PURE__ */ d(async (e, t) => {
1714
+ const { shapeSvg: a, bbox: i } = await A(
1715
+ e,
1716
+ t,
1717
+ Y(t, void 0),
1718
+ !0
1719
+ ), l = i.width + t.padding, s = i.height + t.padding, r = [
1720
+ { x: 0, y: 0 },
1721
+ { x: l + s / 2, y: 0 },
1722
+ { x: l, y: -s / 2 },
1723
+ { x: l + s / 2, y: -s },
1724
+ { x: 0, y: -s }
1725
+ ], n = U(a, l, s, r);
1726
+ return n.attr("style", t.style), T(t, n), t.intersect = function(c) {
1727
+ return N.polygon(t, r, c);
1728
+ }, a;
1729
+ }, "rect_right_inv_arrow"), Ir = /* @__PURE__ */ d(async (e, t) => {
1730
+ const { shapeSvg: a, bbox: i } = await A(
1731
+ e,
1732
+ t,
1733
+ Y(t, void 0),
1734
+ !0
1735
+ ), l = i.width + t.padding, s = l / 2, r = s / (2.5 + l / 50), n = i.height + r + t.padding, c = "M 0," + r + " a " + s + "," + r + " 0,0,0 " + l + " 0 a " + s + "," + r + " 0,0,0 " + -l + " 0 l 0," + n + " a " + s + "," + r + " 0,0,0 " + l + " 0 l 0," + -n, u = a.attr("label-offset-y", r).insert("path", ":first-child").attr("style", t.style).attr("d", c).attr("transform", "translate(" + -l / 2 + "," + -(n / 2 + r) + ")");
1736
+ return T(t, u), t.intersect = function(o) {
1737
+ const x = N.rect(t, o), w = x.x - t.x;
1738
+ if (s != 0 && (Math.abs(w) < t.width / 2 || Math.abs(w) == t.width / 2 && Math.abs(x.y - t.y) > t.height / 2 - r)) {
1739
+ let b = r * r * (1 - w * w / (s * s));
1740
+ b != 0 && (b = Math.sqrt(b)), b = r - b, o.y - t.y > 0 && (b = -b), x.y += b;
1741
+ }
1742
+ return x;
1743
+ }, a;
1744
+ }, "cylinder"), Or = /* @__PURE__ */ d(async (e, t) => {
1745
+ const { shapeSvg: a, bbox: i, halfPadding: l } = await A(
1746
+ e,
1747
+ t,
1748
+ "node " + t.classes + " " + t.class,
1749
+ !0
1750
+ ), s = a.insert("rect", ":first-child"), r = t.positioned ? t.width : i.width + t.padding, n = t.positioned ? t.height : i.height + t.padding, c = t.positioned ? -r / 2 : -i.width / 2 - l, u = t.positioned ? -n / 2 : -i.height / 2 - l;
1751
+ if (s.attr("class", "basic label-container").attr("style", t.style).attr("rx", t.rx).attr("ry", t.ry).attr("x", c).attr("y", u).attr("width", r).attr("height", n), t.props) {
1752
+ const o = new Set(Object.keys(t.props));
1753
+ t.props.borders && (ht(s, t.props.borders, r, n), o.delete("borders")), o.forEach((x) => {
1754
+ L.warn(`Unknown node property ${x}`);
1755
+ });
1756
+ }
1757
+ return T(t, s), t.intersect = function(o) {
1758
+ return N.rect(t, o);
1759
+ }, a;
1760
+ }, "rect"), Rr = /* @__PURE__ */ d(async (e, t) => {
1761
+ const { shapeSvg: a, bbox: i, halfPadding: l } = await A(
1762
+ e,
1763
+ t,
1764
+ "node " + t.classes,
1765
+ !0
1766
+ ), s = a.insert("rect", ":first-child"), r = t.positioned ? t.width : i.width + t.padding, n = t.positioned ? t.height : i.height + t.padding, c = t.positioned ? -r / 2 : -i.width / 2 - l, u = t.positioned ? -n / 2 : -i.height / 2 - l;
1767
+ if (s.attr("class", "basic cluster composite label-container").attr("style", t.style).attr("rx", t.rx).attr("ry", t.ry).attr("x", c).attr("y", u).attr("width", r).attr("height", n), t.props) {
1768
+ const o = new Set(Object.keys(t.props));
1769
+ t.props.borders && (ht(s, t.props.borders, r, n), o.delete("borders")), o.forEach((x) => {
1770
+ L.warn(`Unknown node property ${x}`);
1771
+ });
1772
+ }
1773
+ return T(t, s), t.intersect = function(o) {
1774
+ return N.rect(t, o);
1775
+ }, a;
1776
+ }, "composite"), zr = /* @__PURE__ */ d(async (e, t) => {
1777
+ const { shapeSvg: a } = await A(e, t, "label", !0);
1778
+ L.trace("Classes = ", t.class);
1779
+ const i = a.insert("rect", ":first-child"), l = 0, s = 0;
1780
+ if (i.attr("width", l).attr("height", s), a.attr("class", "label edgeLabel"), t.props) {
1781
+ const r = new Set(Object.keys(t.props));
1782
+ t.props.borders && (ht(i, t.props.borders, l, s), r.delete("borders")), r.forEach((n) => {
1783
+ L.warn(`Unknown node property ${n}`);
1784
+ });
1785
+ }
1786
+ return T(t, i), t.intersect = function(r) {
1787
+ return N.rect(t, r);
1788
+ }, a;
1789
+ }, "labelRect");
1790
+ function ht(e, t, a, i) {
1791
+ const l = [], s = /* @__PURE__ */ d((n) => {
1792
+ l.push(n, 0);
1793
+ }, "addBorder"), r = /* @__PURE__ */ d((n) => {
1794
+ l.push(0, n);
1795
+ }, "skipBorder");
1796
+ t.includes("t") ? (L.debug("add top border"), s(a)) : r(a), t.includes("r") ? (L.debug("add right border"), s(i)) : r(i), t.includes("b") ? (L.debug("add bottom border"), s(a)) : r(a), t.includes("l") ? (L.debug("add left border"), s(i)) : r(i), e.attr("stroke-dasharray", l.join(" "));
1797
+ }
1798
+ d(ht, "applyNodePropertyBorders");
1799
+ var Ar = /* @__PURE__ */ d(async (e, t) => {
1800
+ let a;
1801
+ t.classes ? a = "node " + t.classes : a = "node default";
1802
+ const i = e.insert("g").attr("class", a).attr("id", t.domId || t.id), l = i.insert("rect", ":first-child"), s = i.insert("line"), r = i.insert("g").attr("class", "label"), n = t.labelText.flat ? t.labelText.flat() : t.labelText;
1803
+ let c = "";
1804
+ typeof n == "object" ? c = n[0] : c = n, L.info("Label text abc79", c, n, typeof n == "object");
1805
+ const u = r.node().appendChild(await K(c, t.labelStyle, !0, !0));
1806
+ let o = { width: 0, height: 0 };
1807
+ if (j(R().flowchart.htmlLabels)) {
1808
+ const v = u.children[0], k = O(u);
1809
+ o = v.getBoundingClientRect(), k.attr("width", o.width), k.attr("height", o.height);
1810
+ }
1811
+ L.info("Text 2", n);
1812
+ const x = n.slice(1, n.length);
1813
+ let w = u.getBBox();
1814
+ const b = r.node().appendChild(
1815
+ await K(
1816
+ x.join ? x.join("<br/>") : x,
1817
+ t.labelStyle,
1818
+ !0,
1819
+ !0
1820
+ )
1821
+ );
1822
+ if (j(R().flowchart.htmlLabels)) {
1823
+ const v = b.children[0], k = O(b);
1824
+ o = v.getBoundingClientRect(), k.attr("width", o.width), k.attr("height", o.height);
1825
+ }
1826
+ const S = t.padding / 2;
1827
+ return O(b).attr(
1828
+ "transform",
1829
+ "translate( " + // (titleBox.width - bbox.width) / 2 +
1830
+ (o.width > w.width ? 0 : (w.width - o.width) / 2) + ", " + (w.height + S + 5) + ")"
1831
+ ), O(u).attr(
1832
+ "transform",
1833
+ "translate( " + // (titleBox.width - bbox.width) / 2 +
1834
+ (o.width < w.width ? 0 : -(w.width - o.width) / 2) + ", 0)"
1835
+ ), o = r.node().getBBox(), r.attr(
1836
+ "transform",
1837
+ "translate(" + -o.width / 2 + ", " + (-o.height / 2 - S + 3) + ")"
1838
+ ), l.attr("class", "outer title-state").attr("x", -o.width / 2 - S).attr("y", -o.height / 2 - S).attr("width", o.width + t.padding).attr("height", o.height + t.padding), s.attr("class", "divider").attr("x1", -o.width / 2 - S).attr("x2", o.width / 2 + S).attr("y1", -o.height / 2 - S + w.height + S).attr("y2", -o.height / 2 - S + w.height + S), T(t, l), t.intersect = function(v) {
1839
+ return N.rect(t, v);
1840
+ }, i;
1841
+ }, "rectWithTitle"), Mr = /* @__PURE__ */ d(async (e, t) => {
1842
+ const { shapeSvg: a, bbox: i } = await A(
1843
+ e,
1844
+ t,
1845
+ Y(t, void 0),
1846
+ !0
1847
+ ), l = i.height + t.padding, s = i.width + l / 4 + t.padding, r = a.insert("rect", ":first-child").attr("style", t.style).attr("rx", l / 2).attr("ry", l / 2).attr("x", -s / 2).attr("y", -l / 2).attr("width", s).attr("height", l);
1848
+ return T(t, r), t.intersect = function(n) {
1849
+ return N.rect(t, n);
1850
+ }, a;
1851
+ }, "stadium"), Fr = /* @__PURE__ */ d(async (e, t) => {
1852
+ const { shapeSvg: a, bbox: i, halfPadding: l } = await A(
1853
+ e,
1854
+ t,
1855
+ Y(t, void 0),
1856
+ !0
1857
+ ), s = a.insert("circle", ":first-child");
1858
+ return s.attr("style", t.style).attr("rx", t.rx).attr("ry", t.ry).attr("r", i.width / 2 + l).attr("width", i.width + t.padding).attr("height", i.height + t.padding), L.info("Circle main"), T(t, s), t.intersect = function(r) {
1859
+ return L.info("Circle intersect", t, i.width / 2 + l, r), N.circle(t, i.width / 2 + l, r);
1860
+ }, a;
1861
+ }, "circle"), Wr = /* @__PURE__ */ d(async (e, t) => {
1862
+ const { shapeSvg: a, bbox: i, halfPadding: l } = await A(
1863
+ e,
1864
+ t,
1865
+ Y(t, void 0),
1866
+ !0
1867
+ ), s = 5, r = a.insert("g", ":first-child"), n = r.insert("circle"), c = r.insert("circle");
1868
+ return r.attr("class", t.class), n.attr("style", t.style).attr("rx", t.rx).attr("ry", t.ry).attr("r", i.width / 2 + l + s).attr("width", i.width + t.padding + s * 2).attr("height", i.height + t.padding + s * 2), c.attr("style", t.style).attr("rx", t.rx).attr("ry", t.ry).attr("r", i.width / 2 + l).attr("width", i.width + t.padding).attr("height", i.height + t.padding), L.info("DoubleCircle main"), T(t, n), t.intersect = function(u) {
1869
+ return L.info("DoubleCircle intersect", t, i.width / 2 + l + s, u), N.circle(t, i.width / 2 + l + s, u);
1870
+ }, a;
1871
+ }, "doublecircle"), Pr = /* @__PURE__ */ d(async (e, t) => {
1872
+ const { shapeSvg: a, bbox: i } = await A(
1873
+ e,
1874
+ t,
1875
+ Y(t, void 0),
1876
+ !0
1877
+ ), l = i.width + t.padding, s = i.height + t.padding, r = [
1878
+ { x: 0, y: 0 },
1879
+ { x: l, y: 0 },
1880
+ { x: l, y: -s },
1881
+ { x: 0, y: -s },
1882
+ { x: 0, y: 0 },
1883
+ { x: -8, y: 0 },
1884
+ { x: l + 8, y: 0 },
1885
+ { x: l + 8, y: -s },
1886
+ { x: -8, y: -s },
1887
+ { x: -8, y: 0 }
1888
+ ], n = U(a, l, s, r);
1889
+ return n.attr("style", t.style), T(t, n), t.intersect = function(c) {
1890
+ return N.polygon(t, r, c);
1891
+ }, a;
1892
+ }, "subroutine"), Yr = /* @__PURE__ */ d((e, t) => {
1893
+ const a = e.insert("g").attr("class", "node default").attr("id", t.domId || t.id), i = a.insert("circle", ":first-child");
1894
+ return i.attr("class", "state-start").attr("r", 7).attr("width", 14).attr("height", 14), T(t, i), t.intersect = function(l) {
1895
+ return N.circle(t, 7, l);
1896
+ }, a;
1897
+ }, "start"), Mt = /* @__PURE__ */ d((e, t, a) => {
1898
+ const i = e.insert("g").attr("class", "node default").attr("id", t.domId || t.id);
1899
+ let l = 70, s = 10;
1900
+ a === "LR" && (l = 10, s = 70);
1901
+ const r = i.append("rect").attr("x", -1 * l / 2).attr("y", -1 * s / 2).attr("width", l).attr("height", s).attr("class", "fork-join");
1902
+ return T(t, r), t.height = t.height + t.padding / 2, t.width = t.width + t.padding / 2, t.intersect = function(n) {
1903
+ return N.rect(t, n);
1904
+ }, i;
1905
+ }, "forkJoin"), Hr = /* @__PURE__ */ d((e, t) => {
1906
+ const a = e.insert("g").attr("class", "node default").attr("id", t.domId || t.id), i = a.insert("circle", ":first-child"), l = a.insert("circle", ":first-child");
1907
+ return l.attr("class", "state-start").attr("r", 7).attr("width", 14).attr("height", 14), i.attr("class", "state-end").attr("r", 5).attr("width", 10).attr("height", 10), T(t, l), t.intersect = function(s) {
1908
+ return N.circle(t, 7, s);
1909
+ }, a;
1910
+ }, "end"), Kr = /* @__PURE__ */ d(async (e, t) => {
1911
+ const a = t.padding / 2, i = 4, l = 8;
1912
+ let s;
1913
+ t.classes ? s = "node " + t.classes : s = "node default";
1914
+ const r = e.insert("g").attr("class", s).attr("id", t.domId || t.id), n = r.insert("rect", ":first-child"), c = r.insert("line"), u = r.insert("line");
1915
+ let o = 0, x = i;
1916
+ const w = r.insert("g").attr("class", "label");
1917
+ let b = 0;
1918
+ const S = t.classData.annotations?.[0], v = t.classData.annotations[0] ? "«" + t.classData.annotations[0] + "»" : "", k = w.node().appendChild(await K(v, t.labelStyle, !0, !0));
1919
+ let B = k.getBBox();
1920
+ if (j(R().flowchart.htmlLabels)) {
1921
+ const E = k.children[0], h = O(k);
1922
+ B = E.getBoundingClientRect(), h.attr("width", B.width), h.attr("height", B.height);
1923
+ }
1924
+ t.classData.annotations[0] && (x += B.height + i, o += B.width);
1925
+ let _ = t.classData.label;
1926
+ t.classData.type !== void 0 && t.classData.type !== "" && (R().flowchart.htmlLabels ? _ += "&lt;" + t.classData.type + "&gt;" : _ += "<" + t.classData.type + ">");
1927
+ const D = w.node().appendChild(await K(_, t.labelStyle, !0, !0));
1928
+ O(D).attr("class", "classTitle");
1929
+ let y = D.getBBox();
1930
+ if (j(R().flowchart.htmlLabels)) {
1931
+ const E = D.children[0], h = O(D);
1932
+ y = E.getBoundingClientRect(), h.attr("width", y.width), h.attr("height", y.height);
1933
+ }
1934
+ x += y.height + i, y.width > o && (o = y.width);
1935
+ const g = [];
1936
+ t.classData.members.forEach(async (E) => {
1937
+ const h = E.getDisplayDetails();
1938
+ let W = h.displayText;
1939
+ R().flowchart.htmlLabels && (W = W.replace(/</g, "&lt;").replace(/>/g, "&gt;"));
1940
+ const p = w.node().appendChild(
1941
+ await K(
1942
+ W,
1943
+ h.cssStyle ? h.cssStyle : t.labelStyle,
1944
+ !0,
1945
+ !0
1946
+ )
1947
+ );
1948
+ let I = p.getBBox();
1949
+ if (j(R().flowchart.htmlLabels)) {
1950
+ const Z = p.children[0], V = O(p);
1951
+ I = Z.getBoundingClientRect(), V.attr("width", I.width), V.attr("height", I.height);
1952
+ }
1953
+ I.width > o && (o = I.width), x += I.height + i, g.push(p);
1954
+ }), x += l;
1955
+ const f = [];
1956
+ if (t.classData.methods.forEach(async (E) => {
1957
+ const h = E.getDisplayDetails();
1958
+ let W = h.displayText;
1959
+ R().flowchart.htmlLabels && (W = W.replace(/</g, "&lt;").replace(/>/g, "&gt;"));
1960
+ const p = w.node().appendChild(
1961
+ await K(
1962
+ W,
1963
+ h.cssStyle ? h.cssStyle : t.labelStyle,
1964
+ !0,
1965
+ !0
1966
+ )
1967
+ );
1968
+ let I = p.getBBox();
1969
+ if (j(R().flowchart.htmlLabels)) {
1970
+ const Z = p.children[0], V = O(p);
1971
+ I = Z.getBoundingClientRect(), V.attr("width", I.width), V.attr("height", I.height);
1972
+ }
1973
+ I.width > o && (o = I.width), x += I.height + i, f.push(p);
1974
+ }), x += l, S) {
1975
+ let E = (o - B.width) / 2;
1976
+ O(k).attr(
1977
+ "transform",
1978
+ "translate( " + (-1 * o / 2 + E) + ", " + -1 * x / 2 + ")"
1979
+ ), b = B.height + i;
1980
+ }
1981
+ let m = (o - y.width) / 2;
1982
+ return O(D).attr(
1983
+ "transform",
1984
+ "translate( " + (-1 * o / 2 + m) + ", " + (-1 * x / 2 + b) + ")"
1985
+ ), b += y.height + i, c.attr("class", "divider").attr("x1", -o / 2 - a).attr("x2", o / 2 + a).attr("y1", -x / 2 - a + l + b).attr("y2", -x / 2 - a + l + b), b += l, g.forEach((E) => {
1986
+ O(E).attr(
1987
+ "transform",
1988
+ "translate( " + -o / 2 + ", " + (-1 * x / 2 + b + l / 2) + ")"
1989
+ );
1990
+ const h = E?.getBBox();
1991
+ b += (h?.height ?? 0) + i;
1992
+ }), b += l, u.attr("class", "divider").attr("x1", -o / 2 - a).attr("x2", o / 2 + a).attr("y1", -x / 2 - a + l + b).attr("y2", -x / 2 - a + l + b), b += l, f.forEach((E) => {
1993
+ O(E).attr(
1994
+ "transform",
1995
+ "translate( " + -o / 2 + ", " + (-1 * x / 2 + b) + ")"
1996
+ );
1997
+ const h = E?.getBBox();
1998
+ b += (h?.height ?? 0) + i;
1999
+ }), n.attr("style", t.style).attr("class", "outer title-state").attr("x", -o / 2 - a).attr("y", -(x / 2) - a).attr("width", o + t.padding).attr("height", x + t.padding), T(t, n), t.intersect = function(E) {
2000
+ return N.rect(t, E);
2001
+ }, r;
2002
+ }, "class_box"), Ft = {
2003
+ rhombus: At,
2004
+ composite: Rr,
2005
+ question: At,
2006
+ rect: Or,
2007
+ labelRect: zr,
2008
+ rectWithTitle: Ar,
2009
+ choice: kr,
2010
+ circle: Fr,
2011
+ doublecircle: Wr,
2012
+ stadium: Mr,
2013
+ hexagon: vr,
2014
+ block_arrow: Er,
2015
+ rect_left_inv_arrow: _r,
2016
+ lean_right: Dr,
2017
+ lean_left: Nr,
2018
+ trapezoid: Tr,
2019
+ inv_trapezoid: Br,
2020
+ rect_right_inv_arrow: Cr,
2021
+ cylinder: Ir,
2022
+ start: Yr,
2023
+ end: Hr,
2024
+ note: Sr,
2025
+ subroutine: Pr,
2026
+ fork: Mt,
2027
+ join: Mt,
2028
+ class_box: Kr
2029
+ }, lt = {}, te = /* @__PURE__ */ d(async (e, t, a) => {
2030
+ let i, l;
2031
+ if (t.link) {
2032
+ let s;
2033
+ R().securityLevel === "sandbox" ? s = "_top" : t.linkTarget && (s = t.linkTarget || "_blank"), i = e.insert("svg:a").attr("xlink:href", t.link).attr("target", s), l = await Ft[t.shape](i, t, a);
2034
+ } else
2035
+ l = await Ft[t.shape](e, t, a), i = l;
2036
+ return t.tooltip && l.attr("title", t.tooltip), t.class && l.attr("class", "node default " + t.class), lt[t.id] = i, t.haveCallback && lt[t.id].attr("class", lt[t.id].attr("class") + " clickable"), i;
2037
+ }, "insertNode"), Xr = /* @__PURE__ */ d((e) => {
2038
+ const t = lt[e.id];
2039
+ L.trace(
2040
+ "Transforming node",
2041
+ e.diff,
2042
+ e,
2043
+ "translate(" + (e.x - e.width / 2 - 5) + ", " + e.width / 2 + ")"
2044
+ );
2045
+ const a = 8, i = e.diff || 0;
2046
+ return e.clusterNode ? t.attr(
2047
+ "transform",
2048
+ "translate(" + (e.x + i - e.width / 2) + ", " + (e.y - e.height / 2 - a) + ")"
2049
+ ) : t.attr("transform", "translate(" + e.x + ", " + e.y + ")"), i;
2050
+ }, "positionNode");
2051
+ function Dt(e, t, a = !1) {
2052
+ const i = e;
2053
+ let l = "default";
2054
+ (i?.classes?.length || 0) > 0 && (l = (i?.classes ?? []).join(" ")), l = l + " flowchart-label";
2055
+ let s = 0, r = "", n;
2056
+ switch (i.type) {
2057
+ case "round":
2058
+ s = 5, r = "rect";
2059
+ break;
2060
+ case "composite":
2061
+ s = 0, r = "composite", n = 0;
2062
+ break;
2063
+ case "square":
2064
+ r = "rect";
2065
+ break;
2066
+ case "diamond":
2067
+ r = "question";
2068
+ break;
2069
+ case "hexagon":
2070
+ r = "hexagon";
2071
+ break;
2072
+ case "block_arrow":
2073
+ r = "block_arrow";
2074
+ break;
2075
+ case "odd":
2076
+ r = "rect_left_inv_arrow";
2077
+ break;
2078
+ case "lean_right":
2079
+ r = "lean_right";
2080
+ break;
2081
+ case "lean_left":
2082
+ r = "lean_left";
2083
+ break;
2084
+ case "trapezoid":
2085
+ r = "trapezoid";
2086
+ break;
2087
+ case "inv_trapezoid":
2088
+ r = "inv_trapezoid";
2089
+ break;
2090
+ case "rect_left_inv_arrow":
2091
+ r = "rect_left_inv_arrow";
2092
+ break;
2093
+ case "circle":
2094
+ r = "circle";
2095
+ break;
2096
+ case "ellipse":
2097
+ r = "ellipse";
2098
+ break;
2099
+ case "stadium":
2100
+ r = "stadium";
2101
+ break;
2102
+ case "subroutine":
2103
+ r = "subroutine";
2104
+ break;
2105
+ case "cylinder":
2106
+ r = "cylinder";
2107
+ break;
2108
+ case "group":
2109
+ r = "rect";
2110
+ break;
2111
+ case "doublecircle":
2112
+ r = "doublecircle";
2113
+ break;
2114
+ default:
2115
+ r = "rect";
2116
+ }
2117
+ const c = me(i?.styles ?? []), u = i.label, o = i.size ?? { width: 0, height: 0, x: 0, y: 0 };
2118
+ return {
2119
+ labelStyle: c.labelStyle,
2120
+ shape: r,
2121
+ labelText: u,
2122
+ rx: s,
2123
+ ry: s,
2124
+ class: l,
2125
+ style: c.style,
2126
+ id: i.id,
2127
+ directions: i.directions,
2128
+ width: o.width,
2129
+ height: o.height,
2130
+ x: o.x,
2131
+ y: o.y,
2132
+ positioned: a,
2133
+ intersect: void 0,
2134
+ type: i.type,
2135
+ padding: n ?? rt()?.block?.padding ?? 0
2136
+ };
2137
+ }
2138
+ d(Dt, "getNodeFromBlock");
2139
+ async function ee(e, t, a) {
2140
+ const i = Dt(t, a, !1);
2141
+ if (i.type === "group")
2142
+ return;
2143
+ const l = rt(), s = await te(e, i, { config: l }), r = s.node().getBBox(), n = a.getBlock(i.id);
2144
+ n.size = { width: r.width, height: r.height, x: 0, y: 0, node: s }, a.setBlock(n), s.remove();
2145
+ }
2146
+ d(ee, "calculateBlockSize");
2147
+ async function re(e, t, a) {
2148
+ const i = Dt(t, a, !0);
2149
+ if (a.getBlock(i.id).type !== "space") {
2150
+ const s = rt();
2151
+ await te(e, i, { config: s }), t.intersect = i?.intersect, Xr(i);
2152
+ }
2153
+ }
2154
+ d(re, "insertBlockPositioned");
2155
+ async function dt(e, t, a, i) {
2156
+ for (const l of t)
2157
+ await i(e, l, a), l.children && await dt(e, l.children, a, i);
2158
+ }
2159
+ d(dt, "performOperations");
2160
+ async function ae(e, t, a) {
2161
+ await dt(e, t, a, ee);
2162
+ }
2163
+ d(ae, "calculateBlockSizes");
2164
+ async function se(e, t, a) {
2165
+ await dt(e, t, a, re);
2166
+ }
2167
+ d(se, "insertBlocks");
2168
+ async function ie(e, t, a, i, l) {
2169
+ const s = new Se({
2170
+ multigraph: !0,
2171
+ compound: !0
2172
+ });
2173
+ s.setGraph({
2174
+ rankdir: "TB",
2175
+ nodesep: 10,
2176
+ ranksep: 10,
2177
+ marginx: 8,
2178
+ marginy: 8
2179
+ });
2180
+ for (const r of a)
2181
+ r.size && s.setNode(r.id, {
2182
+ width: r.size.width,
2183
+ height: r.size.height,
2184
+ intersect: r.intersect
2185
+ });
2186
+ for (const r of t)
2187
+ if (r.start && r.end) {
2188
+ const n = i.getBlock(r.start), c = i.getBlock(r.end);
2189
+ if (n?.size && c?.size) {
2190
+ const u = n.size, o = c.size, x = [
2191
+ { x: u.x, y: u.y },
2192
+ { x: u.x + (o.x - u.x) / 2, y: u.y + (o.y - u.y) / 2 },
2193
+ { x: o.x, y: o.y }
2194
+ ];
2195
+ gr(
2196
+ e,
2197
+ { v: r.start, w: r.end, name: r.id },
2198
+ {
2199
+ ...r,
2200
+ arrowTypeEnd: r.arrowTypeEnd,
2201
+ arrowTypeStart: r.arrowTypeStart,
2202
+ points: x,
2203
+ classes: "edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"
2204
+ },
2205
+ void 0,
2206
+ "block",
2207
+ s,
2208
+ l
2209
+ ), r.label && (await cr(e, {
2210
+ ...r,
2211
+ label: r.label,
2212
+ labelStyle: "stroke: #333; stroke-width: 1.5px;fill:none;",
2213
+ arrowTypeEnd: r.arrowTypeEnd,
2214
+ arrowTypeStart: r.arrowTypeStart,
2215
+ points: x,
2216
+ classes: "edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"
2217
+ }), or(
2218
+ { ...r, x: x[1].x, y: x[1].y },
2219
+ {
2220
+ originalPath: x
2221
+ }
2222
+ ));
2223
+ }
2224
+ }
2225
+ }
2226
+ d(ie, "insertEdges");
2227
+ var Ur = /* @__PURE__ */ d(function(e, t) {
2228
+ return t.db.getClasses();
2229
+ }, "getClasses"), jr = /* @__PURE__ */ d(async function(e, t, a, i) {
2230
+ const { securityLevel: l, block: s } = rt(), r = i.db;
2231
+ let n;
2232
+ l === "sandbox" && (n = O("#i" + t));
2233
+ const c = l === "sandbox" ? O(n.nodes()[0].contentDocument.body) : O("body"), u = l === "sandbox" ? c.select(`[id="${t}"]`) : O(`[id="${t}"]`);
2234
+ ar(u, ["point", "circle", "cross"], i.type, t);
2235
+ const x = r.getBlocks(), w = r.getBlocksFlat(), b = r.getEdges(), S = u.insert("g").attr("class", "block");
2236
+ await ae(S, x, r);
2237
+ const v = jt(r);
2238
+ if (await se(S, x, r), await ie(S, b, w, r, t), v) {
2239
+ const k = v, B = Math.max(1, Math.round(0.125 * (k.width / k.height))), _ = k.height + B + 10, D = k.width + 10, { useMaxWidth: y } = s;
2240
+ he(u, _, D, !!y), L.debug("Here Bounds", v, k), u.attr(
2241
+ "viewBox",
2242
+ `${k.x - 5} ${k.y - 5} ${k.width + 10} ${k.height + 10}`
2243
+ );
2244
+ }
2245
+ }, "draw"), Vr = {
2246
+ draw: jr,
2247
+ getClasses: Ur
2248
+ }, $r = {
2249
+ parser: ve,
2250
+ db: Ke,
2251
+ renderer: Vr,
2252
+ styles: Ue
2253
+ };
2254
+ export {
2255
+ $r as diagram
2256
+ };