@sme.up/ketchup2 2.7.0 → 2.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (288) hide show
  1. package/dist/abnfDiagram-VCTEODGH-DwAVRNNu.js +89 -0
  2. package/dist/{arc-CVbkjF8U.js → arc-DXfwi1YX.js} +8 -6
  3. package/dist/architecture-7GRP2DOG-BsytjMto.js +3 -0
  4. package/dist/{architectureDiagram-3BPJPVTR-B6VZAtZU.js → architectureDiagram-5GKGNRK7-N1aPr2hw.js} +636 -540
  5. package/dist/assets/svg/functions.svg +1 -0
  6. package/dist/basic-components/autocomplete/autocomplete.d.ts.map +1 -1
  7. package/dist/basic-components/button-list/button-list-types.d.ts +2 -1
  8. package/dist/basic-components/button-list/button-list-types.d.ts.map +1 -1
  9. package/dist/basic-components/button-list/button-list.d.ts.map +1 -1
  10. package/dist/basic-components/cell/cell-types.d.ts +5 -0
  11. package/dist/basic-components/cell/cell-types.d.ts.map +1 -1
  12. package/dist/basic-components/cell/cell.d.ts.map +1 -1
  13. package/dist/basic-components/checkbox/checkbox-types.d.ts +5 -0
  14. package/dist/basic-components/checkbox/checkbox-types.d.ts.map +1 -1
  15. package/dist/basic-components/chips/chips-types.d.ts +15 -1
  16. package/dist/basic-components/chips/chips-types.d.ts.map +1 -1
  17. package/dist/basic-components/chips/chips.d.ts.map +1 -1
  18. package/dist/basic-components/chips-input/chips-input-types.d.ts +5 -0
  19. package/dist/basic-components/chips-input/chips-input-types.d.ts.map +1 -1
  20. package/dist/basic-components/chips-input/chips-input.d.ts.map +1 -1
  21. package/dist/basic-components/file-upload/file-upload-hook.d.ts.map +1 -1
  22. package/dist/basic-components/list/list.d.ts.map +1 -1
  23. package/dist/basic-components/multiple-autocomplete/multiple-autocomplete-types.d.ts +5 -0
  24. package/dist/basic-components/multiple-autocomplete/multiple-autocomplete-types.d.ts.map +1 -1
  25. package/dist/basic-components/multiple-autocomplete/multiple-autocomplete.d.ts.map +1 -1
  26. package/dist/basic-components/multiple-select/multiple-select-types.d.ts +5 -0
  27. package/dist/basic-components/multiple-select/multiple-select-types.d.ts.map +1 -1
  28. package/dist/basic-components/multiple-select/multiple-select.d.ts.map +1 -1
  29. package/dist/basic-components/select/select.d.ts.map +1 -1
  30. package/dist/blockDiagram-I7D4REHJ-Cu18ws5-.js +1922 -0
  31. package/dist/{c4Diagram-AAUBKEIU-CdT8VCbo.js → c4Diagram-7LVT6UL2-B-uBy_NE.js} +899 -850
  32. package/dist/{channel-C-LAmObA.js → channel-CuEby436.js} +1 -1
  33. package/dist/chunk-2E4U76K2-ComA5SPA.js +348 -0
  34. package/dist/{chunk-QZHKN3VN-lYfzaOt9.js → chunk-2Q5K7J3B-kzxEEeTu.js} +2 -2
  35. package/dist/{chunk-3OPIFGDE-Bs2mXISw.js → chunk-4HAMMTFA-CZgIgrp_.js} +1667 -1145
  36. package/dist/{chunk-FMBD7UC4-BURT0llY.js → chunk-5VM5RSS4-Cr17nBXp.js} +2 -2
  37. package/dist/{chunk-5ZQYHXKU-B_nOC8-n.js → chunk-75Z2AOVW-Drsj7a97.js} +106 -136
  38. package/dist/chunk-CLGD4ZFX-CLGio9rD.js +14 -0
  39. package/dist/{chunk-CSCIHK7Q-BEk3YcEH.js → chunk-DU6HZSFF-waeanndy.js} +1005 -768
  40. package/dist/{chunk-ND2GUHAM-Ca12h-m9.js → chunk-F27PBJKO-jIrOJO87.js} +18 -17
  41. package/dist/{chunk-NNHCCRGN-BB1q5NkR.js → chunk-FOHPRMQF-LRqOLsSw.js} +5518 -4708
  42. package/dist/{chunk-O5CBEL6O-DbWeP4Au.js → chunk-GMAD6QVW-D80II4AD.js} +486 -520
  43. package/dist/chunk-GVQU2GXP-DP3t_9Rl.js +37 -0
  44. package/dist/{chunk-AQP2D5EJ-vJ_pitKp.js → chunk-IMKFNOWR-8ItzAAcf.js} +336 -318
  45. package/dist/{chunk-4BX2VUAB-zglw1T4d.js → chunk-JWPE2WC7-Ccb0QaC8.js} +2 -2
  46. package/dist/chunk-L3NEJ4N5-qPot4t6M.js +245 -0
  47. package/dist/chunk-LNGE3PJU-CtYcu9x8.js +1521 -0
  48. package/dist/{chunk-KSCS5N6A-BemQomLE.js → chunk-OSK3NFVY-CQhPF3Mc.js} +310 -198
  49. package/dist/chunk-P2QGCYS3-BUeNZ170.js +67 -0
  50. package/dist/chunk-POPQ4Y6H-CU9oz17Z.js +26 -0
  51. package/dist/chunk-PWAF6VOD-D37VoZ8H.js +275 -0
  52. package/dist/{flowDiagram-I6XJVG4X-DnsxKD0w.js → chunk-SHT3W25Y-Cri27Jke.js} +581 -543
  53. package/dist/chunk-SVP7TREG-CyJlOPau.js +490 -0
  54. package/dist/{chunk-727SXJPM-CDeV7mmg.js → chunk-TICWLB2K-Cw2iT_VD.js} +191 -185
  55. package/dist/{chunk-LZXEDZCA-J9irjuVP.js → chunk-TLUHSLCS-BdsLNXjt.js} +35 -25
  56. package/dist/chunk-XXDRQBXY-C1ZEFXGu.js +9 -0
  57. package/dist/chunk-Y2CYZVJY-i11wjrBe.js +12 -0
  58. package/dist/classDiagram-ZZMXUADV-L32jCfMj.js +30 -0
  59. package/dist/classDiagram-v2-VYDZK3BY-BsnrDCgX.js +30 -0
  60. package/dist/components/activity-timeline/activity-timeline-types.d.ts +46 -0
  61. package/dist/components/activity-timeline/activity-timeline-types.d.ts.map +1 -0
  62. package/dist/components/activity-timeline/activity-timeline.d.ts +4 -0
  63. package/dist/components/activity-timeline/activity-timeline.d.ts.map +1 -0
  64. package/dist/components/app-bar/app-bar.d.ts.map +1 -1
  65. package/dist/components/breadcrumbs/breadcrumbs.d.ts.map +1 -1
  66. package/dist/components/chat/chat.d.ts.map +1 -1
  67. package/dist/components/data-table/assets/data-table-row-actions-collapsed.d.ts +12 -0
  68. package/dist/components/data-table/assets/data-table-row-actions-collapsed.d.ts.map +1 -0
  69. package/dist/components/data-table/assets/data-table-row-actions.d.ts +11 -0
  70. package/dist/components/data-table/assets/data-table-row-actions.d.ts.map +1 -0
  71. package/dist/components/data-table/data-table-types.d.ts +52 -1
  72. package/dist/components/data-table/data-table-types.d.ts.map +1 -1
  73. package/dist/components/data-table/data-table.d.ts.map +1 -1
  74. package/dist/components/data-table/header/Header.d.ts.map +1 -1
  75. package/dist/components/data-table/header/header-types.d.ts +7 -1
  76. package/dist/components/data-table/header/header-types.d.ts.map +1 -1
  77. package/dist/components/echarts/echarts-graph.d.ts.map +1 -1
  78. package/dist/components/scaffold/context/scaffold-provider.d.ts.map +1 -1
  79. package/dist/components/tab-bar/tab-bar-assets.d.ts +1 -0
  80. package/dist/components/tab-bar/tab-bar-assets.d.ts.map +1 -1
  81. package/dist/components/tab-bar/tab-bar.d.ts.map +1 -1
  82. package/dist/components/tooltip/tooltip.d.ts.map +1 -1
  83. package/dist/components/workflow-designer/workflow-designer-metadata-panel.d.ts +14 -0
  84. package/dist/components/workflow-designer/workflow-designer-metadata-panel.d.ts.map +1 -0
  85. package/dist/components/workflow-designer/workflow-designer-types.d.ts +40 -7
  86. package/dist/components/workflow-designer/workflow-designer-types.d.ts.map +1 -1
  87. package/dist/components/workflow-designer/workflow-designer-utils.d.ts +80 -1
  88. package/dist/components/workflow-designer/workflow-designer-utils.d.ts.map +1 -1
  89. package/dist/components/workflow-designer/workflow-designer-utils.test.d.ts +2 -0
  90. package/dist/components/workflow-designer/workflow-designer-utils.test.d.ts.map +1 -0
  91. package/dist/components/workflow-designer/workflow-designer.d.ts +4 -3
  92. package/dist/components/workflow-designer/workflow-designer.d.ts.map +1 -1
  93. package/dist/{cose-bilkent-S5V4N54A-BhA3VnPW.js → cose-bilkent-JH36ORCC-Qs_Z6zBZ.js} +87 -83
  94. package/dist/cynefin-OW5HDTMX-BJXlKro0.js +3 -0
  95. package/dist/cynefinDiagram-5FMLGOSQ-3Ha1hdlV.js +355 -0
  96. package/dist/{cytoscape.esm-BU21wl3m.js → cytoscape.esm-C5TvPYYm.js} +2749 -2701
  97. package/dist/{dagre-3-RnF0EK.js → dagre-D5csT9sx.js} +144 -146
  98. package/dist/dagre-GXQ25YYZ-Bg7xf6xn.js +425 -0
  99. package/dist/{defaultLocale-DnzPsei5.js → defaultLocale-N-0uLSyg.js} +1 -4
  100. package/dist/diagram-S7CK7UJ4-BuDHTdHA.js +301 -0
  101. package/dist/{diagram-2AECGRRQ-23vM90dy.js → diagram-UQ7AKVKN-uvzJGj43.js} +82 -81
  102. package/dist/{diagram-KO2AKTUF-BEnEQF6b.js → diagram-VSXAHHWV-CrQQCs-B.js} +66 -65
  103. package/dist/{diagram-OG6HWLK6-Cfbv6mIH.js → diagram-VX7I27RA-BNmG1sig.js} +92 -89
  104. package/dist/{diagram-LMA3HP47-OWxAHrmz.js → diagram-Z3DM3KII-B6BrLhP0.js} +21 -20
  105. package/dist/{dist-Btd8EZyy.js → dist-CsrMlyO_.js} +2 -3
  106. package/dist/ebnfDiagram-PWID7BFC-DMx8xAFO.js +100 -0
  107. package/dist/erDiagram-RLTQ6QDP-bkJ9nzVK.js +1966 -0
  108. package/dist/eventmodeling-NTZA5JFV-Cj-VH7yh.js +3 -0
  109. package/dist/flowDiagram-HODETNUW-BIvD7-ts.js +17 -0
  110. package/dist/functional-components/multiple-field/multiple-field-types.d.ts +2 -0
  111. package/dist/functional-components/multiple-field/multiple-field-types.d.ts.map +1 -1
  112. package/dist/functional-components/multiple-field/multiple-field.d.ts.map +1 -1
  113. package/dist/functional-components/row/row-types.d.ts +5 -0
  114. package/dist/functional-components/row/row-types.d.ts.map +1 -1
  115. package/dist/functional-components/row/row.d.ts.map +1 -1
  116. package/dist/functional-components/timeline-engine/components/gantt/gantt-assets.d.ts +3 -1
  117. package/dist/functional-components/timeline-engine/components/gantt/gantt-assets.d.ts.map +1 -1
  118. package/dist/functional-components/timeline-engine/timeline-engine-utils.d.ts.map +1 -1
  119. package/dist/functional-components/tree-picker/tree-picker-types.d.ts +42 -0
  120. package/dist/functional-components/tree-picker/tree-picker-types.d.ts.map +1 -0
  121. package/dist/functional-components/tree-picker/tree-picker.d.ts +3 -0
  122. package/dist/functional-components/tree-picker/tree-picker.d.ts.map +1 -0
  123. package/dist/{ganttDiagram-6RSMTGT7-CwbJqdwB.js → ganttDiagram-EL5Y4UJY-CL-ywzz_.js} +703 -710
  124. package/dist/gitGraph-4MIJSDKK-C9JGDovl.js +3 -0
  125. package/dist/{gitGraphDiagram-PVQCEYII-mL2WiT98.js → gitGraphDiagram-WWUBYQGX-aXhNDG6P.js} +156 -151
  126. package/dist/{graphlib-VMWSbyYi.js → graphlib-XW-Jr8pF.js} +5 -5
  127. package/dist/index.d.ts +4 -1
  128. package/dist/index.d.ts.map +1 -1
  129. package/dist/info-A6RAGUB7-CmZJKEaW.js +3 -0
  130. package/dist/infoDiagram-27XIBGKW-Je4heBlk.js +20 -0
  131. package/dist/{init-MwSGRDIl.js → init-CsQUQz36.js} +1 -3
  132. package/dist/{ishikawaDiagram-YF4QCWOH-DGOgWzve.js → ishikawaDiagram-5VMMS53U-DK7HlH95.js} +142 -141
  133. package/dist/{journeyDiagram-JHISSGLW-CHVTMdrq.js → journeyDiagram-3NMN7TZE-CpuYEKcB.js} +192 -191
  134. package/dist/{kanban-definition-UN3LZRKU-upKA3b5x.js → kanban-definition-UXKFOSKX-aK8uKmyY.js} +149 -146
  135. package/dist/{katex-D-2KeLwt.js → katex-CT2p8LXT.js} +1627 -1650
  136. package/dist/ketchup2.css +1 -1
  137. package/dist/ketchup2.es.js +34744 -32755
  138. package/dist/{line-DIhSUgmA.js → line-DTqYMLoX.js} +2 -2
  139. package/dist/{linear-DUAteVwl.js → linear-CXc5xaa6.js} +8 -9
  140. package/dist/locale/en/translation.json.d.ts +16 -0
  141. package/dist/locale/it/translation.json.d.ts +16 -0
  142. package/dist/mermaid-parser.core-BwVmI_Rq.js +638 -0
  143. package/dist/{mindmap-definition-RKZ34NQL-C3YkCJDi.js → mindmap-definition-YA3MSWOX-ZMYcmi9J.js} +170 -170
  144. package/dist/{ordinal-D_ZgubzR.js → ordinal-BubEveRk.js} +1 -1
  145. package/dist/packet-AYTQ26CC-B3tgRshR.js +3 -0
  146. package/dist/{path-DGNPZRdx.js → path-CnWkkRiY.js} +10 -11
  147. package/dist/pegDiagram-XKGWAZYB-DsfILwZN.js +94 -0
  148. package/dist/pie-WAS4IAKB-BRiI8kbI.js +3 -0
  149. package/dist/pieDiagram-E7YTZNPT-DcSLcLdd.js +203 -0
  150. package/dist/{quadrantDiagram-W4KKPZXB-C2oA-eGZ.js → quadrantDiagram-AXDQQJYC-DSx3teop.js} +300 -300
  151. package/dist/radar-RG4KPBEZ-ASOMQXFw.js +3 -0
  152. package/dist/railroad-74A4TZTK-oS840SLr.js +3 -0
  153. package/dist/railroad-abnf-HS5TGJTU-nnQAkZY2.js +3 -0
  154. package/dist/railroad-ebnf-LZEXJU2U-DBQIOba3.js +3 -0
  155. package/dist/railroad-peg-WCYAUIDC-fBPN2TVb.js +3 -0
  156. package/dist/railroadDiagram-O6MQD6OU-jOZRtNDi.js +76 -0
  157. package/dist/{requirementDiagram-4Y6WPE33-BEGryahw.js → requirementDiagram-BXWQKSXE-D14hkkez.js} +176 -173
  158. package/dist/{rough.esm-rcMoXTJj.js → rough.esm-DXYGHN3m.js} +60 -51
  159. package/dist/{sankeyDiagram-5OEKKPKP-VPzKV4zM.js → sankeyDiagram-P5KCCOFB-C0jmknYo.js} +123 -120
  160. package/dist/{sequenceDiagram-3UESZ5HK-Bc30_Cm2.js → sequenceDiagram-WJ2MYXX4-C00egnMz.js} +714 -722
  161. package/dist/sizeCapture-INFHLROL-CHXIsPO_.js +46 -0
  162. package/dist/{src-DjDATEq3.js → src-DQoflmwT.js} +499 -509
  163. package/dist/stateDiagram-D77RDMKH-YfzmviNY.js +220 -0
  164. package/dist/stateDiagram-v2-MP3YSRHH-B6Hzx8T0.js +30 -0
  165. package/dist/swimlanes-42K2YHIH-CJcMmxXf.js +4979 -0
  166. package/dist/swimlanesDiagram-VR7AAH4N-DirvhGBA.js +31 -0
  167. package/dist/{timeline-definition-PNZ67QCA-1z911Ume.js → timeline-definition-24CTP7MA-D2xfYuSV.js} +220 -219
  168. package/dist/treeView-Q6P3EWNA-BmvB2b-_.js +3 -0
  169. package/dist/treemap-WGGIJYW6-Cjjk75wA.js +3 -0
  170. package/dist/types/translation.d.ts +17 -1
  171. package/dist/types/translation.d.ts.map +1 -1
  172. package/dist/utils/data-structures.d.ts +2 -1
  173. package/dist/utils/data-structures.d.ts.map +1 -1
  174. package/dist/{v4-BK7K-jy_.js → v4-DIjJgmR0.js} +1 -1
  175. package/dist/{vennDiagram-CIIHVFJN-BiLcQ0SR.js → vennDiagram-4TSXK5OY-C4XLgus_.js} +332 -310
  176. package/dist/wardley-WFR3VGLG-BamDiE0x.js +3 -0
  177. package/dist/{wardleyDiagram-YWT4CUSO-Bq-BejOl.js → wardleyDiagram-VM6X3IG4-DFoKuS9s.js} +156 -155
  178. package/dist/{xychartDiagram-2RQKCTM6-B13zquXC.js → xychartDiagram-S5SC5T6Z-BzKKgVBe.js} +740 -574
  179. package/package.json +41 -38
  180. package/dist/arc-w3BipdfE.cjs +0 -1
  181. package/dist/architecture-7EHR7CIX-Bzeobe9Y.cjs +0 -1
  182. package/dist/architecture-7EHR7CIX-C8NPmR2w.js +0 -3
  183. package/dist/architectureDiagram-3BPJPVTR-DlnXl9d5.cjs +0 -36
  184. package/dist/array-DZSRzHA_.cjs +0 -1
  185. package/dist/blockDiagram-GPEHLZMM-BohmRoCC.js +0 -3157
  186. package/dist/blockDiagram-GPEHLZMM-rfyR2Ffl.cjs +0 -132
  187. package/dist/c4Diagram-AAUBKEIU-Du1vqJYZ.cjs +0 -10
  188. package/dist/channel-DJpMBAs-.cjs +0 -1
  189. package/dist/chunk-2J33WTMH-BMqA-riF.js +0 -25
  190. package/dist/chunk-2J33WTMH-BQs9SXq8.cjs +0 -1
  191. package/dist/chunk-3OPIFGDE-Bk_ByTBh.cjs +0 -62
  192. package/dist/chunk-4BX2VUAB-C8VW0QW0.cjs +0 -1
  193. package/dist/chunk-55IACEB6-CNxnI3nm.cjs +0 -1
  194. package/dist/chunk-55IACEB6-CmKDx-YO.js +0 -8
  195. package/dist/chunk-5ZQYHXKU-DMrStm4M.cjs +0 -2
  196. package/dist/chunk-727SXJPM-Dj8nsm0O.cjs +0 -206
  197. package/dist/chunk-AQP2D5EJ-CYuEYK6i.cjs +0 -231
  198. package/dist/chunk-BSJP7CBP-CSCICPww.cjs +0 -1
  199. package/dist/chunk-BSJP7CBP-YsQACkyC.js +0 -82
  200. package/dist/chunk-CSCIHK7Q-BAdl6GW-.cjs +0 -124
  201. package/dist/chunk-FMBD7UC4-BIKI8zae.cjs +0 -15
  202. package/dist/chunk-KSCS5N6A-DsN7gJEf.cjs +0 -10
  203. package/dist/chunk-L5ZTLDWV-BQCNoMVG.js +0 -32
  204. package/dist/chunk-L5ZTLDWV-BbLRyKcx.cjs +0 -1
  205. package/dist/chunk-LZXEDZCA-rjLYyX5U.cjs +0 -1
  206. package/dist/chunk-ND2GUHAM-1o9Sjy2_.cjs +0 -1
  207. package/dist/chunk-NNHCCRGN-qV8bfiMQ.cjs +0 -159
  208. package/dist/chunk-NZK2D7GU-CPxdSJTy.js +0 -67
  209. package/dist/chunk-NZK2D7GU-CRneGIrP.cjs +0 -1
  210. package/dist/chunk-O5CBEL6O-Cd4Z5Dy9.cjs +0 -70
  211. package/dist/chunk-QZHKN3VN-ZJ4hLUIw.cjs +0 -1
  212. package/dist/chunk-WU5MYG2G-DuCEb9G-.js +0 -9
  213. package/dist/chunk-WU5MYG2G-ExiaHFbF.cjs +0 -1
  214. package/dist/chunk-XPW4576I-BybfDrup.cjs +0 -32
  215. package/dist/chunk-XPW4576I-D3DQ47oC.js +0 -1146
  216. package/dist/classDiagram-4FO5ZUOK-CRX1QumH.js +0 -29
  217. package/dist/classDiagram-4FO5ZUOK-yTAlLFG2.cjs +0 -1
  218. package/dist/classDiagram-v2-Q7XG4LA2-oM01mYfB.js +0 -29
  219. package/dist/classDiagram-v2-Q7XG4LA2-yTAlLFG2.cjs +0 -1
  220. package/dist/cose-bilkent-S5V4N54A-D7fhWOP4.cjs +0 -1
  221. package/dist/cytoscape.esm-CElDUMAx.cjs +0 -321
  222. package/dist/dagre-B2BBwKNb.cjs +0 -1
  223. package/dist/dagre-BM42HDAG-DfpR5Mml.js +0 -297
  224. package/dist/dagre-BM42HDAG-kORxgFz_.cjs +0 -4
  225. package/dist/defaultLocale-u9yUoUmE.cjs +0 -1
  226. package/dist/diagram-2AECGRRQ-B0IEGKjr.cjs +0 -43
  227. package/dist/diagram-5GNKFQAL-BEY9x4us.js +0 -101
  228. package/dist/diagram-5GNKFQAL-vb6e35PR.cjs +0 -10
  229. package/dist/diagram-KO2AKTUF-9V_zu-2x.cjs +0 -3
  230. package/dist/diagram-LMA3HP47-BN_geiB9.cjs +0 -24
  231. package/dist/diagram-OG6HWLK6-6OnEK9-6.cjs +0 -24
  232. package/dist/dist-D8RD2QWc.cjs +0 -1
  233. package/dist/erDiagram-TEJ5UH35-6OEXIM6m.js +0 -1700
  234. package/dist/erDiagram-TEJ5UH35-CzsOt0l4.cjs +0 -85
  235. package/dist/eventmodeling-FCH6USID-Cued7Lz2.cjs +0 -1
  236. package/dist/eventmodeling-FCH6USID-mCB8hc7X.js +0 -3
  237. package/dist/flowDiagram-I6XJVG4X-DR1CMtZZ.cjs +0 -162
  238. package/dist/ganttDiagram-6RSMTGT7-C5t5_mjf.cjs +0 -292
  239. package/dist/gitGraph-WXDBUCRP-B23gOjfP.js +0 -3
  240. package/dist/gitGraph-WXDBUCRP-Bi-Y5dA7.cjs +0 -1
  241. package/dist/gitGraphDiagram-PVQCEYII-CLdgm7yJ.cjs +0 -106
  242. package/dist/graphlib-CkkG5MuS.cjs +0 -1
  243. package/dist/info-J43DQDTF-DC3N8SoX.js +0 -3
  244. package/dist/info-J43DQDTF-jRjlWVKj.cjs +0 -1
  245. package/dist/infoDiagram-5YYISTIA-BIM8xaiE.js +0 -19
  246. package/dist/infoDiagram-5YYISTIA-CbnHgs-I.cjs +0 -2
  247. package/dist/init-07zIhv_j.cjs +0 -1
  248. package/dist/ishikawaDiagram-YF4QCWOH-DAWMXD1l.cjs +0 -70
  249. package/dist/journeyDiagram-JHISSGLW-DfnmJPLn.cjs +0 -139
  250. package/dist/kanban-definition-UN3LZRKU-CbeoJJE7.cjs +0 -89
  251. package/dist/katex-CkiTumqg.cjs +0 -257
  252. package/dist/ketchup2.cjs.js +0 -485
  253. package/dist/line-CzwncDY3.cjs +0 -1
  254. package/dist/linear-1lpO_WlJ.cjs +0 -1
  255. package/dist/mermaid-parser.core-ADyJ_PY4.cjs +0 -3
  256. package/dist/mermaid-parser.core-D6xVjl2t.js +0 -373
  257. package/dist/mindmap-definition-RKZ34NQL-C8cZ7xN-.cjs +0 -96
  258. package/dist/ordinal-CUPR-p0T.cjs +0 -1
  259. package/dist/packet-YPE3B663-CGZxZ1Z0.cjs +0 -1
  260. package/dist/packet-YPE3B663-D2JW2EUF.js +0 -3
  261. package/dist/path-Kklx0M1v.cjs +0 -1
  262. package/dist/pie-LRSECV5Y-BHyd33ZA.js +0 -3
  263. package/dist/pie-LRSECV5Y-Ca_qbHEv.cjs +0 -1
  264. package/dist/pieDiagram-4H26LBE5-BvhguaHn.js +0 -165
  265. package/dist/pieDiagram-4H26LBE5-DpDrJBQK.cjs +0 -30
  266. package/dist/quadrantDiagram-W4KKPZXB-hWSN7YfD.cjs +0 -7
  267. package/dist/radar-GUYGQ44K-BpJWFTCm.js +0 -3
  268. package/dist/radar-GUYGQ44K-CYqWSxO_.cjs +0 -1
  269. package/dist/requirementDiagram-4Y6WPE33-GmjmsbiY.cjs +0 -84
  270. package/dist/rough.esm-r0QOSzHM.cjs +0 -1
  271. package/dist/sankeyDiagram-5OEKKPKP-DbGAx-Bm.cjs +0 -40
  272. package/dist/sequenceDiagram-3UESZ5HK-D85rpewi.cjs +0 -162
  273. package/dist/src-DEmZ9bFr.cjs +0 -1
  274. package/dist/stateDiagram-AJRCARHV-Bg4Y3HPa.cjs +0 -1
  275. package/dist/stateDiagram-AJRCARHV-wqjltbKb.js +0 -217
  276. package/dist/stateDiagram-v2-BHNVJYJU-Cgrf5tQC.js +0 -27
  277. package/dist/stateDiagram-v2-BHNVJYJU-D_Tzn4WM.cjs +0 -1
  278. package/dist/timeline-definition-PNZ67QCA-Dpu3hfhP.cjs +0 -120
  279. package/dist/treeView-BLDUP644-C9tQMbiq.js +0 -3
  280. package/dist/treeView-BLDUP644-DKh9BcaT.cjs +0 -1
  281. package/dist/treemap-LRROVOQU-2aferAph.cjs +0 -1
  282. package/dist/treemap-LRROVOQU-CBv3oGC3.js +0 -3
  283. package/dist/v4-Dyp-SQ1c.cjs +0 -1
  284. package/dist/vennDiagram-CIIHVFJN-BLBDqWTG.cjs +0 -34
  285. package/dist/wardley-L42UT6IY-CIM0_V5T.js +0 -3
  286. package/dist/wardley-L42UT6IY-DjjjOB8T.cjs +0 -1
  287. package/dist/wardleyDiagram-YWT4CUSO-dzyAWKiV.cjs +0 -78
  288. package/dist/xychartDiagram-2RQKCTM6-DA3O42Dk.cjs +0 -7
@@ -1,15 +1,17 @@
1
- import { g as e, h as t } from "./src-DjDATEq3.js";
2
- import { H as n, K as r, U as i, a, s as o, v as s, w as c, x as l, y as u } from "./chunk-CSCIHK7Q-BEk3YcEH.js";
3
- import { g as d, s as f } from "./chunk-5ZQYHXKU-B_nOC8-n.js";
4
- import { r as p } from "./chunk-LZXEDZCA-J9irjuVP.js";
5
- import { t as m } from "./chunk-55IACEB6-CmKDx-YO.js";
6
- import { t as h } from "./chunk-2J33WTMH-BMqA-riF.js";
7
- //#region node_modules/mermaid/dist/chunks/mermaid.core/chunk-AQP2D5EJ.mjs
8
- var g = (function() {
9
- var e = /* @__PURE__ */ t(function(e, t, n, r) {
1
+ import { m as e, p as t } from "./src-DQoflmwT.js";
2
+ import { H as n, K as r, U as i, a, ot as o, s, v as c, w as l, x as u, y as d } from "./chunk-DU6HZSFF-waeanndy.js";
3
+ import { n as f } from "./chunk-Y2CYZVJY-i11wjrBe.js";
4
+ import { g as p, s as m } from "./chunk-75Z2AOVW-Drsj7a97.js";
5
+ import { r as h } from "./chunk-TLUHSLCS-BdsLNXjt.js";
6
+ import { t as g } from "./chunk-F27PBJKO-jIrOJO87.js";
7
+ import { t as _ } from "./chunk-XXDRQBXY-C1ZEFXGu.js";
8
+ import { t as v } from "./chunk-POPQ4Y6H-CU9oz17Z.js";
9
+ //#region node_modules/mermaid/dist/chunks/mermaid.core/chunk-IMKFNOWR.mjs
10
+ var y = (function() {
11
+ var e = /* @__PURE__ */ f(function(e, t, n, r) {
10
12
  for (n ||= {}, r = e.length; r--; n[e[r]] = t);
11
13
  return n;
12
- }, "o"), n = [1, 2], r = [1, 3], i = [1, 4], a = [2, 4], o = [1, 9], s = [1, 11], c = [1, 16], l = [1, 17], u = [1, 18], d = [1, 19], f = [1, 33], p = [1, 20], m = [1, 21], h = [1, 22], g = [1, 23], _ = [1, 24], v = [1, 26], y = [1, 27], b = [1, 28], x = [1, 29], S = [1, 30], C = [1, 31], w = [1, 32], T = [1, 35], E = [1, 36], D = [1, 37], O = [1, 38], k = [1, 34], A = [
14
+ }, "o"), t = [1, 2], n = [1, 3], r = [1, 4], i = [2, 4], a = [1, 9], o = [1, 11], s = [1, 16], c = [1, 17], l = [1, 18], u = [1, 19], d = [1, 33], p = [1, 20], m = [1, 21], h = [1, 22], g = [1, 23], _ = [1, 24], v = [1, 26], y = [1, 27], b = [1, 28], x = [1, 29], S = [1, 30], C = [1, 31], w = [1, 32], T = [1, 35], E = [1, 36], D = [1, 37], O = [1, 38], k = [1, 34], A = [
13
15
  1,
14
16
  4,
15
17
  5,
@@ -94,7 +96,7 @@ var g = (function() {
94
96
  54,
95
97
  57
96
98
  ], N = {
97
- trace: /* @__PURE__ */ t(function() {}, "trace"),
99
+ trace: /* @__PURE__ */ f(function() {}, "trace"),
98
100
  yy: {},
99
101
  symbols_: {
100
102
  error: 2,
@@ -261,7 +263,7 @@ var g = (function() {
261
263
  [30, 1],
262
264
  [30, 1]
263
265
  ],
264
- performAction: /* @__PURE__ */ t(function(e, t, n, r, i, a, o) {
266
+ performAction: /* @__PURE__ */ f(function(e, t, n, r, i, a, o) {
265
267
  var s = a.length - 1;
266
268
  switch (i) {
267
269
  case 3: return r.setRootDoc(a[s]), a[s];
@@ -457,36 +459,34 @@ var g = (function() {
457
459
  description: ""
458
460
  };
459
461
  break;
460
- case 47:
461
- this.$ = {
462
- stmt: "state",
463
- id: a[s - 2].trim(),
464
- classes: [a[s].trim()],
465
- type: "default",
466
- description: ""
467
- };
468
- break;
462
+ case 47: this.$ = {
463
+ stmt: "state",
464
+ id: a[s - 2].trim(),
465
+ classes: [a[s].trim()],
466
+ type: "default",
467
+ description: ""
468
+ };
469
469
  }
470
470
  }, "anonymous"),
471
471
  table: [
472
472
  {
473
473
  3: 1,
474
- 4: n,
475
- 5: r,
476
- 6: i
474
+ 4: t,
475
+ 5: n,
476
+ 6: r
477
477
  },
478
478
  { 1: [3] },
479
479
  {
480
480
  3: 5,
481
- 4: n,
482
- 5: r,
483
- 6: i
481
+ 4: t,
482
+ 5: n,
483
+ 6: r
484
484
  },
485
485
  {
486
486
  3: 6,
487
- 4: n,
488
- 5: r,
489
- 6: i
487
+ 4: t,
488
+ 5: n,
489
+ 6: r
490
490
  },
491
491
  e([
492
492
  1,
@@ -514,24 +514,24 @@ var g = (function() {
514
514
  53,
515
515
  54,
516
516
  57
517
- ], a, { 7: 7 }),
517
+ ], i, { 7: 7 }),
518
518
  { 1: [2, 1] },
519
519
  { 1: [2, 2] },
520
520
  {
521
521
  1: [2, 3],
522
- 4: o,
523
- 5: s,
522
+ 4: a,
523
+ 5: o,
524
524
  8: 8,
525
525
  9: 10,
526
526
  10: 12,
527
527
  11: 13,
528
528
  12: 14,
529
529
  13: 15,
530
- 16: c,
531
- 17: l,
532
- 19: u,
533
- 22: d,
534
- 24: f,
530
+ 16: s,
531
+ 17: c,
532
+ 19: l,
533
+ 22: u,
534
+ 24: d,
535
535
  25: p,
536
536
  26: m,
537
537
  27: h,
@@ -558,11 +558,11 @@ var g = (function() {
558
558
  11: 13,
559
559
  12: 14,
560
560
  13: 15,
561
- 16: c,
562
- 17: l,
563
- 19: u,
564
- 22: d,
565
- 24: f,
561
+ 16: s,
562
+ 17: c,
563
+ 19: l,
564
+ 22: u,
565
+ 24: d,
566
566
  25: p,
567
567
  26: m,
568
568
  27: h,
@@ -611,7 +611,7 @@ var g = (function() {
611
611
  e(A, [2, 31]),
612
612
  {
613
613
  13: 51,
614
- 24: f,
614
+ 24: d,
615
615
  57: k
616
616
  },
617
617
  {
@@ -630,11 +630,11 @@ var g = (function() {
630
630
  e(A, [2, 13]),
631
631
  {
632
632
  13: 58,
633
- 24: f,
633
+ 24: d,
634
634
  57: k
635
635
  },
636
636
  e(A, [2, 17]),
637
- e(M, a, { 7: 59 }),
637
+ e(M, i, { 7: 59 }),
638
638
  { 24: [1, 60] },
639
639
  { 24: [1, 61] },
640
640
  { 23: [1, 62] },
@@ -654,20 +654,20 @@ var g = (function() {
654
654
  { 24: [1, 70] },
655
655
  e(A, [2, 14], { 14: [1, 71] }),
656
656
  {
657
- 4: o,
658
- 5: s,
657
+ 4: a,
658
+ 5: o,
659
659
  8: 8,
660
660
  9: 10,
661
661
  10: 12,
662
662
  11: 13,
663
663
  12: 14,
664
664
  13: 15,
665
- 16: c,
666
- 17: l,
667
- 19: u,
665
+ 16: s,
666
+ 17: c,
667
+ 19: l,
668
668
  21: [1, 72],
669
- 22: d,
670
- 24: f,
669
+ 22: u,
670
+ 24: d,
671
671
  25: p,
672
672
  26: m,
673
673
  27: h,
@@ -700,26 +700,26 @@ var g = (function() {
700
700
  e(j, [2, 47]),
701
701
  e(A, [2, 15]),
702
702
  e(A, [2, 19]),
703
- e(M, a, { 7: 78 }),
703
+ e(M, i, { 7: 78 }),
704
704
  e(A, [2, 26]),
705
705
  e(A, [2, 27]),
706
706
  { 5: [1, 79] },
707
707
  { 5: [1, 80] },
708
708
  {
709
- 4: o,
710
- 5: s,
709
+ 4: a,
710
+ 5: o,
711
711
  8: 8,
712
712
  9: 10,
713
713
  10: 12,
714
714
  11: 13,
715
715
  12: 14,
716
716
  13: 15,
717
- 16: c,
718
- 17: l,
719
- 19: u,
717
+ 16: s,
718
+ 17: c,
719
+ 19: l,
720
720
  21: [1, 81],
721
- 22: d,
722
- 24: f,
721
+ 22: u,
722
+ 24: d,
723
723
  25: p,
724
724
  26: m,
725
725
  27: h,
@@ -749,35 +749,35 @@ var g = (function() {
749
749
  47: [2, 48],
750
750
  48: [2, 49]
751
751
  },
752
- parseError: /* @__PURE__ */ t(function(e, t) {
752
+ parseError: /* @__PURE__ */ f(function(e, t) {
753
753
  if (t.recoverable) this.trace(e);
754
754
  else {
755
755
  var n = Error(e);
756
756
  throw n.hash = t, n;
757
757
  }
758
758
  }, "parseError"),
759
- parse: /* @__PURE__ */ t(function(e) {
760
- var n = this, r = [0], i = [], a = [null], o = [], s = this.table, c = "", l = 0, u = 0, d = 0, f = 2, p = 1, m = o.slice.call(arguments, 1), h = Object.create(this.lexer), g = { yy: {} };
759
+ parse: /* @__PURE__ */ f(function(e) {
760
+ var t = this, n = [0], r = [], i = [null], a = [], o = this.table, s = "", c = 0, l = 0, u = 0, d = 2, p = 1, m = a.slice.call(arguments, 1), h = Object.create(this.lexer), g = { yy: {} };
761
761
  for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
762
762
  h.setInput(e, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
763
763
  var v = h.yylloc;
764
- o.push(v);
764
+ a.push(v);
765
765
  var y = h.options && h.options.ranges;
766
- typeof g.yy.parseError == "function" ? this.parseError = g.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
766
+ this.parseError = typeof g.yy.parseError == "function" ? g.yy.parseError : Object.getPrototypeOf(this).parseError;
767
767
  function b(e) {
768
- r.length -= 2 * e, a.length -= e, o.length -= e;
768
+ n.length -= 2 * e, i.length -= e, a.length -= e;
769
769
  }
770
- t(b, "popStack");
770
+ f(b, "popStack");
771
771
  function x() {
772
- var e = i.pop() || h.lex() || p;
773
- return typeof e != "number" && (e instanceof Array && (i = e, e = i.pop()), e = n.symbols_[e] || e), e;
772
+ var e = r.pop() || h.lex() || p;
773
+ return typeof e != "number" && (e instanceof Array && (r = e, e = r.pop()), e = t.symbols_[e] || e), e;
774
774
  }
775
- t(x, "lex");
775
+ f(x, "lex");
776
776
  for (var S, C, w, T, E, D = {}, O, k, A, j;;) {
777
- if (w = r[r.length - 1], this.defaultActions[w] ? T = this.defaultActions[w] : (S ??= x(), T = s[w] && s[w][S]), T === void 0 || !T.length || !T[0]) {
777
+ if (w = n[n.length - 1], this.defaultActions[w] ? T = this.defaultActions[w] : (S ??= x(), T = o[w] && o[w][S]), T === void 0 || !T.length || !T[0]) {
778
778
  var M = "";
779
- for (O in j = [], s[w]) this.terminals_[O] && O > f && j.push("'" + this.terminals_[O] + "'");
780
- M = h.showPosition ? "Parse error on line " + (l + 1) + ":\n" + h.showPosition() + "\nExpecting " + j.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : "Parse error on line " + (l + 1) + ": Unexpected " + (S == p ? "end of input" : "'" + (this.terminals_[S] || S) + "'"), this.parseError(M, {
779
+ for (O in j = [], o[w]) this.terminals_[O] && O > d && j.push("'" + this.terminals_[O] + "'");
780
+ M = h.showPosition ? "Parse error on line " + (c + 1) + ":\n" + h.showPosition() + "\nExpecting " + j.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : "Parse error on line " + (c + 1) + ": Unexpected " + (S == p ? "end of input" : "'" + (this.terminals_[S] || S) + "'"), this.parseError(M, {
781
781
  text: h.match,
782
782
  token: this.terminals_[S] || S,
783
783
  line: h.yylineno,
@@ -788,24 +788,24 @@ var g = (function() {
788
788
  if (T[0] instanceof Array && T.length > 1) throw Error("Parse Error: multiple actions possible at state: " + w + ", token: " + S);
789
789
  switch (T[0]) {
790
790
  case 1:
791
- r.push(S), a.push(h.yytext), o.push(h.yylloc), r.push(T[1]), S = null, C ? (S = C, C = null) : (u = h.yyleng, c = h.yytext, l = h.yylineno, v = h.yylloc, d > 0 && d--);
791
+ n.push(S), i.push(h.yytext), a.push(h.yylloc), n.push(T[1]), S = null, C ? (S = C, C = null) : (l = h.yyleng, s = h.yytext, c = h.yylineno, v = h.yylloc, u > 0 && u--);
792
792
  break;
793
793
  case 2:
794
- if (k = this.productions_[T[1]][1], D.$ = a[a.length - k], D._$ = {
795
- first_line: o[o.length - (k || 1)].first_line,
796
- last_line: o[o.length - 1].last_line,
797
- first_column: o[o.length - (k || 1)].first_column,
798
- last_column: o[o.length - 1].last_column
799
- }, y && (D._$.range = [o[o.length - (k || 1)].range[0], o[o.length - 1].range[1]]), E = this.performAction.apply(D, [
800
- c,
801
- u,
794
+ if (k = this.productions_[T[1]][1], D.$ = i[i.length - k], D._$ = {
795
+ first_line: a[a.length - (k || 1)].first_line,
796
+ last_line: a[a.length - 1].last_line,
797
+ first_column: a[a.length - (k || 1)].first_column,
798
+ last_column: a[a.length - 1].last_column
799
+ }, y && (D._$.range = [a[a.length - (k || 1)].range[0], a[a.length - 1].range[1]]), E = this.performAction.apply(D, [
800
+ s,
802
801
  l,
802
+ c,
803
803
  g.yy,
804
804
  T[1],
805
- a,
806
- o
805
+ i,
806
+ a
807
807
  ].concat(m)), E !== void 0) return E;
808
- k && (r = r.slice(0, -1 * k * 2), a = a.slice(0, -1 * k), o = o.slice(0, -1 * k)), r.push(this.productions_[T[1]][0]), a.push(D.$), o.push(D._$), A = s[r[r.length - 2]][r[r.length - 1]], r.push(A);
808
+ k && (n = n.slice(0, -1 * k * 2), i = i.slice(0, -1 * k), a = a.slice(0, -1 * k)), n.push(this.productions_[T[1]][0]), i.push(D.$), a.push(D._$), A = o[n[n.length - 2]][n[n.length - 1]], n.push(A);
809
809
  break;
810
810
  case 3: return !0;
811
811
  }
@@ -816,11 +816,11 @@ var g = (function() {
816
816
  N.lexer = /* @__PURE__ */ (function() {
817
817
  return {
818
818
  EOF: 1,
819
- parseError: /* @__PURE__ */ t(function(e, t) {
819
+ parseError: /* @__PURE__ */ f(function(e, t) {
820
820
  if (this.yy.parser) this.yy.parser.parseError(e, t);
821
821
  else throw Error(e);
822
822
  }, "parseError"),
823
- setInput: /* @__PURE__ */ t(function(e, t) {
823
+ setInput: /* @__PURE__ */ f(function(e, t) {
824
824
  return this.yy = t || this.yy || {}, this._input = e, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
825
825
  first_line: 1,
826
826
  first_column: 0,
@@ -828,11 +828,11 @@ var g = (function() {
828
828
  last_column: 0
829
829
  }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
830
830
  }, "setInput"),
831
- input: /* @__PURE__ */ t(function() {
831
+ input: /* @__PURE__ */ f(function() {
832
832
  var e = this._input[0];
833
833
  return this.yytext += e, this.yyleng++, this.offset++, this.match += e, this.matched += e, e.match(/(?:\r\n?|\n).*/g) ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), e;
834
834
  }, "input"),
835
- unput: /* @__PURE__ */ t(function(e) {
835
+ unput: /* @__PURE__ */ f(function(e) {
836
836
  var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
837
837
  this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
838
838
  var r = this.match.split(/(?:\r\n?|\n)/g);
@@ -845,10 +845,10 @@ var g = (function() {
845
845
  last_column: n ? (n.length === r.length ? this.yylloc.first_column : 0) + r[r.length - n.length].length - n[0].length : this.yylloc.first_column - t
846
846
  }, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
847
847
  }, "unput"),
848
- more: /* @__PURE__ */ t(function() {
848
+ more: /* @__PURE__ */ f(function() {
849
849
  return this._more = !0, this;
850
850
  }, "more"),
851
- reject: /* @__PURE__ */ t(function() {
851
+ reject: /* @__PURE__ */ f(function() {
852
852
  if (this.options.backtrack_lexer) this._backtrack = !0;
853
853
  else return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n" + this.showPosition(), {
854
854
  text: "",
@@ -857,22 +857,22 @@ var g = (function() {
857
857
  });
858
858
  return this;
859
859
  }, "reject"),
860
- less: /* @__PURE__ */ t(function(e) {
860
+ less: /* @__PURE__ */ f(function(e) {
861
861
  this.unput(this.match.slice(e));
862
862
  }, "less"),
863
- pastInput: /* @__PURE__ */ t(function() {
863
+ pastInput: /* @__PURE__ */ f(function() {
864
864
  var e = this.matched.substr(0, this.matched.length - this.match.length);
865
865
  return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
866
866
  }, "pastInput"),
867
- upcomingInput: /* @__PURE__ */ t(function() {
867
+ upcomingInput: /* @__PURE__ */ f(function() {
868
868
  var e = this.match;
869
869
  return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
870
870
  }, "upcomingInput"),
871
- showPosition: /* @__PURE__ */ t(function() {
871
+ showPosition: /* @__PURE__ */ f(function() {
872
872
  var e = this.pastInput(), t = Array(e.length + 1).join("-");
873
873
  return e + this.upcomingInput() + "\n" + t + "^";
874
874
  }, "showPosition"),
875
- test_match: /* @__PURE__ */ t(function(e, t) {
875
+ test_match: /* @__PURE__ */ f(function(e, t) {
876
876
  var n, r, i;
877
877
  if (this.options.backtrack_lexer && (i = {
878
878
  yylineno: this.yylineno,
@@ -905,7 +905,7 @@ var g = (function() {
905
905
  }
906
906
  return !1;
907
907
  }, "test_match"),
908
- next: /* @__PURE__ */ t(function() {
908
+ next: /* @__PURE__ */ f(function() {
909
909
  if (this.done) return this.EOF;
910
910
  this._input || (this.done = !0);
911
911
  var e, t, n, r;
@@ -916,48 +916,50 @@ var g = (function() {
916
916
  if (this._backtrack) {
917
917
  t = !1;
918
918
  continue;
919
- } else return !1;
920
- } else if (!this.options.flex) break;
919
+ }
920
+ return !1;
921
+ }
922
+ if (!this.options.flex) break;
921
923
  }
922
- return t ? (e = this.test_match(t, i[r]), e === !1 ? !1 : e) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
924
+ return t ? (e = this.test_match(t, i[r]), e !== !1 && e) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
923
925
  text: "",
924
926
  token: null,
925
927
  line: this.yylineno
926
928
  });
927
929
  }, "next"),
928
- lex: /* @__PURE__ */ t(function() {
930
+ lex: /* @__PURE__ */ f(function() {
929
931
  return this.next() || this.lex();
930
932
  }, "lex"),
931
- begin: /* @__PURE__ */ t(function(e) {
933
+ begin: /* @__PURE__ */ f(function(e) {
932
934
  this.conditionStack.push(e);
933
935
  }, "begin"),
934
- popState: /* @__PURE__ */ t(function() {
936
+ popState: /* @__PURE__ */ f(function() {
935
937
  return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
936
938
  }, "popState"),
937
- _currentRules: /* @__PURE__ */ t(function() {
939
+ _currentRules: /* @__PURE__ */ f(function() {
938
940
  return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
939
941
  }, "_currentRules"),
940
- topState: /* @__PURE__ */ t(function(e) {
942
+ topState: /* @__PURE__ */ f(function(e) {
941
943
  return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
942
944
  }, "topState"),
943
- pushState: /* @__PURE__ */ t(function(e) {
945
+ pushState: /* @__PURE__ */ f(function(e) {
944
946
  this.begin(e);
945
947
  }, "pushState"),
946
- stateStackSize: /* @__PURE__ */ t(function() {
948
+ stateStackSize: /* @__PURE__ */ f(function() {
947
949
  return this.conditionStack.length;
948
950
  }, "stateStackSize"),
949
951
  options: { "case-insensitive": !0 },
950
- performAction: /* @__PURE__ */ t(function(e, n, r, i) {
951
- function a() {
952
- let t = n.yytext.indexOf("%%");
953
- if (t === 0) return !1;
954
- if (t > 0) {
955
- let r = n.yytext.slice(0, t), i = n.yytext.slice(t);
956
- i && e.lexer.unput(i), n.yytext = r;
952
+ performAction: /* @__PURE__ */ f(function(e, t, n, r) {
953
+ function i() {
954
+ let n = t.yytext.indexOf("%%");
955
+ if (n === 0) return !1;
956
+ if (n > 0) {
957
+ let r = t.yytext.slice(0, n), i = t.yytext.slice(n);
958
+ i && e.lexer.unput(i), t.yytext = r;
957
959
  }
958
960
  return !0;
959
961
  }
960
- switch (t(a, "processId"), r) {
962
+ switch (f(i, "processId"), n) {
961
963
  case 0: return 38;
962
964
  case 1: return 40;
963
965
  case 2: return 39;
@@ -1005,12 +1007,12 @@ var g = (function() {
1005
1007
  case 36:
1006
1008
  this.pushState("STATE");
1007
1009
  break;
1008
- case 37: return this.popState(), n.yytext = n.yytext.slice(0, -8).trim(), 25;
1009
- case 38: return this.popState(), n.yytext = n.yytext.slice(0, -8).trim(), 26;
1010
- case 39: return this.popState(), n.yytext = n.yytext.slice(0, -10).trim(), 27;
1011
- case 40: return this.popState(), n.yytext = n.yytext.slice(0, -8).trim(), 25;
1012
- case 41: return this.popState(), n.yytext = n.yytext.slice(0, -8).trim(), 26;
1013
- case 42: return this.popState(), n.yytext = n.yytext.slice(0, -10).trim(), 27;
1010
+ case 37: return this.popState(), t.yytext = t.yytext.slice(0, -8).trim(), 25;
1011
+ case 38: return this.popState(), t.yytext = t.yytext.slice(0, -8).trim(), 26;
1012
+ case 39: return this.popState(), t.yytext = t.yytext.slice(0, -10).trim(), 27;
1013
+ case 40: return this.popState(), t.yytext = t.yytext.slice(0, -8).trim(), 25;
1014
+ case 41: return this.popState(), t.yytext = t.yytext.slice(0, -8).trim(), 26;
1015
+ case 42: return this.popState(), t.yytext = t.yytext.slice(0, -10).trim(), 27;
1014
1016
  case 43: return 51;
1015
1017
  case 44: return 52;
1016
1018
  case 45: return 53;
@@ -1019,42 +1021,43 @@ var g = (function() {
1019
1021
  this.pushState("STATE_STRING");
1020
1022
  break;
1021
1023
  case 48: return this.pushState("STATE_ID"), "AS";
1022
- case 49: return a() ? (this.popState(), "ID") : void 0;
1024
+ case 49: return i() ? (this.popState(), "ID") : void 0;
1023
1025
  case 50:
1024
1026
  this.popState();
1025
1027
  break;
1026
1028
  case 51: return "STATE_DESCR";
1027
- case 52: return 19;
1028
- case 53:
1029
+ case 52: throw Error("Error: State name must be a single word. Found: \"" + t.yytext.trim() + "\"");
1030
+ case 53: return 19;
1031
+ case 54:
1029
1032
  this.popState();
1030
1033
  break;
1031
- case 54: return this.popState(), this.pushState("struct"), 20;
1032
- case 55: return this.popState(), 21;
1033
- case 56: break;
1034
- case 57: return this.begin("NOTE"), 29;
1035
- case 58: return this.popState(), this.pushState("NOTE_ID"), 59;
1036
- case 59: return this.popState(), this.pushState("NOTE_ID"), 60;
1037
- case 60:
1034
+ case 55: return this.popState(), this.pushState("struct"), 20;
1035
+ case 56: return this.popState(), 21;
1036
+ case 57: break;
1037
+ case 58: return this.begin("NOTE"), 29;
1038
+ case 59: return this.popState(), this.pushState("NOTE_ID"), 59;
1039
+ case 60: return this.popState(), this.pushState("NOTE_ID"), 60;
1040
+ case 61:
1038
1041
  this.popState(), this.pushState("FLOATING_NOTE");
1039
1042
  break;
1040
- case 61: return this.popState(), this.pushState("FLOATING_NOTE_ID"), "AS";
1041
- case 62: break;
1042
- case 63: return "NOTE_TEXT";
1043
- case 64: return a() ? (this.popState(), "ID") : void 0;
1044
- case 65: return a() ? (this.popState(), this.pushState("NOTE_TEXT"), 24) : void 0;
1045
- case 66: return this.popState(), n.yytext = n.yytext.substr(2).trim(), 31;
1046
- case 67: return this.popState(), n.yytext = n.yytext.slice(0, -8).trim(), 31;
1047
- case 68: return 6;
1043
+ case 62: return this.popState(), this.pushState("FLOATING_NOTE_ID"), "AS";
1044
+ case 63: break;
1045
+ case 64: return "NOTE_TEXT";
1046
+ case 65: return i() ? (this.popState(), "ID") : void 0;
1047
+ case 66: return i() ? (this.popState(), this.pushState("NOTE_TEXT"), 24) : void 0;
1048
+ case 67: return this.popState(), t.yytext = t.yytext.substr(2).trim(), 31;
1049
+ case 68: return this.popState(), t.yytext = t.yytext.slice(0, -8).trim(), 31;
1048
1050
  case 69: return 6;
1049
- case 70: return 16;
1050
- case 71: return 57;
1051
- case 72: return a() ? 24 : void 0;
1052
- case 73: return n.yytext = n.yytext.trim(), 14;
1053
- case 74: return 15;
1054
- case 75: return 28;
1055
- case 76: return 58;
1056
- case 77: return 5;
1057
- case 78: return "INVALID";
1051
+ case 70: return 6;
1052
+ case 71: return 16;
1053
+ case 72: return 57;
1054
+ case 73: return i() ? 24 : void 0;
1055
+ case 74: return t.yytext = t.yytext.trim(), 14;
1056
+ case 75: return 15;
1057
+ case 76: return 28;
1058
+ case 77: return 58;
1059
+ case 78: return 5;
1060
+ case 79: return "INVALID";
1058
1061
  }
1059
1062
  }, "anonymous"),
1060
1063
  rules: [
@@ -1110,6 +1113,7 @@ var g = (function() {
1110
1113
  /^(?:[^\n\{]*)/i,
1111
1114
  /^(?:["])/i,
1112
1115
  /^(?:[^"]*)/i,
1116
+ /^(?:\w+\s+\w+.*?\{)/i,
1113
1117
  /^(?:[^\n\s\{]+)/i,
1114
1118
  /^(?:\n)/i,
1115
1119
  /^(?:\{)/i,
@@ -1160,43 +1164,43 @@ var g = (function() {
1160
1164
  44,
1161
1165
  45,
1162
1166
  46,
1163
- 55,
1164
1167
  56,
1165
1168
  57,
1166
- 71,
1169
+ 58,
1167
1170
  72,
1168
1171
  73,
1169
1172
  74,
1170
1173
  75,
1171
- 76
1174
+ 76,
1175
+ 77
1172
1176
  ],
1173
1177
  inclusive: !1
1174
1178
  },
1175
1179
  FLOATING_NOTE_ID: {
1176
- rules: [64],
1180
+ rules: [65],
1177
1181
  inclusive: !1
1178
1182
  },
1179
1183
  FLOATING_NOTE: {
1180
1184
  rules: [
1181
- 61,
1182
1185
  62,
1183
- 63
1186
+ 63,
1187
+ 64
1184
1188
  ],
1185
1189
  inclusive: !1
1186
1190
  },
1187
1191
  NOTE_TEXT: {
1188
- rules: [66, 67],
1192
+ rules: [67, 68],
1189
1193
  inclusive: !1
1190
1194
  },
1191
1195
  NOTE_ID: {
1192
- rules: [65],
1196
+ rules: [66],
1193
1197
  inclusive: !1
1194
1198
  },
1195
1199
  NOTE: {
1196
1200
  rules: [
1197
- 58,
1198
1201
  59,
1199
- 60
1202
+ 60,
1203
+ 61
1200
1204
  ],
1201
1205
  inclusive: !1
1202
1206
  },
@@ -1284,7 +1288,8 @@ var g = (function() {
1284
1288
  48,
1285
1289
  52,
1286
1290
  53,
1287
- 54
1291
+ 54,
1292
+ 55
1288
1293
  ],
1289
1294
  inclusive: !1
1290
1295
  },
@@ -1319,18 +1324,18 @@ var g = (function() {
1319
1324
  30,
1320
1325
  33,
1321
1326
  36,
1322
- 54,
1323
- 57,
1324
- 68,
1327
+ 55,
1328
+ 58,
1325
1329
  69,
1326
1330
  70,
1327
1331
  71,
1328
1332
  72,
1329
1333
  73,
1330
1334
  74,
1331
- 76,
1335
+ 75,
1332
1336
  77,
1333
- 78
1337
+ 78,
1338
+ 79
1334
1339
  ],
1335
1340
  inclusive: !0
1336
1341
  }
@@ -1340,100 +1345,99 @@ var g = (function() {
1340
1345
  function P() {
1341
1346
  this.yy = {};
1342
1347
  }
1343
- return t(P, "Parser"), P.prototype = N, N.Parser = P, new P();
1348
+ return f(P, "Parser"), P.prototype = N, N.Parser = P, new P();
1344
1349
  })();
1345
- g.parser = g;
1346
- var _ = g, v = "TB", y = "TB", b = "dir", x = "state", S = "root", C = "relation", w = "classDef", T = "style", E = "applyClass", D = "default", O = "divider", k = "fill:none", A = "fill: #333", j = "c", M = "markdown", N = "normal", P = "rect", F = "rectWithTitle", ee = "stateStart", te = "stateEnd", I = "divider", L = "roundedWithTitle", ne = "note", re = "noteGroup", R = "statediagram", ie = `${R}-state`, ae = "transition", oe = "note", se = `${ae} note-edge`, ce = `${R}-${oe}`, le = `${R}-cluster`, ue = `${R}-cluster-alt`, z = "parent", B = "note", de = "state", V = "----", fe = `${V}${B}`, H = `${V}${z}`, U = /* @__PURE__ */ t((e, t = y) => {
1350
+ y.parser = y;
1351
+ var b = y, x = "TB", S = "TB", C = "dir", w = "state", T = "root", E = "relation", D = "classDef", O = "style", k = "applyClass", A = "default", j = "divider", M = "fill:none", N = "fill: #333", P = "c", ee = "markdown", F = "normal", I = "rect", L = "rectWithTitle", te = "stateStart", ne = "stateEnd", R = "divider", re = "roundedWithTitle", ie = "note", ae = "noteGroup", z = "statediagram", oe = `${z}-state`, B = "transition", se = "note", ce = `${B} note-edge`, le = `${z}-${se}`, ue = `${z}-cluster`, de = `${z}-cluster-alt`, V = "parent", H = "note", fe = "state", U = "----", pe = `${U}${H}`, W = `${U}${V}`, G = /* @__PURE__ */ f((e, t = S) => {
1347
1352
  if (!e.doc) return t;
1348
1353
  let n = t;
1349
1354
  for (let t of e.doc) t.stmt === "dir" && (n = t.value);
1350
1355
  return n;
1351
- }, "getDir"), pe = {
1352
- getClasses: /* @__PURE__ */ t(function(e, t) {
1356
+ }, "getDir"), me = {
1357
+ getClasses: /* @__PURE__ */ f(function(e, t) {
1353
1358
  return t.db.getClasses();
1354
1359
  }, "getClasses"),
1355
- draw: /* @__PURE__ */ t(async function(t, n, r, i) {
1360
+ draw: /* @__PURE__ */ f(async function(t, n, r, i) {
1356
1361
  e.info("REF0:"), e.info("Drawing state diagram (v2)", n);
1357
- let { securityLevel: a, state: o, layout: s } = l();
1362
+ let { securityLevel: a, state: o, layout: s } = u();
1358
1363
  i.db.extract(i.db.getRootDocV2());
1359
- let c = i.db.getData(), u = m(n, a);
1360
- c.type = i.type, c.layoutAlgorithm = s, c.nodeSpacing = o?.nodeSpacing || 50, c.rankSpacing = o?.rankSpacing || 50, l().look === "neo" ? c.markers = ["barbNeo"] : c.markers = ["barb"], c.diagramId = n, await p(c, u);
1364
+ let c = i.db.getData(), l = _(n, a);
1365
+ c.type = i.type, c.layoutAlgorithm = s, c.nodeSpacing = o?.nodeSpacing || 50, c.rankSpacing = o?.rankSpacing || 50, c.markers = u().look === "neo" ? ["barbNeo"] : ["barb"], c.diagramId = n, await h(c, l);
1361
1366
  try {
1362
1367
  (typeof i.db.getLinks == "function" ? i.db.getLinks() : /* @__PURE__ */ new Map()).forEach((t, n) => {
1363
- let r = typeof n == "string" ? n : typeof n?.id == "string" ? n.id : "";
1368
+ let r = typeof n == "string" ? n : typeof n?.id == "string" ? n.id : "", i = c.nodes.find((e) => e.id === r);
1364
1369
  if (!r) {
1365
1370
  e.warn("⚠️ Invalid or missing stateId from key:", JSON.stringify(n));
1366
1371
  return;
1367
1372
  }
1368
- let i = u.node()?.querySelectorAll("g"), a;
1369
- if (i?.forEach((e) => {
1370
- e.textContent?.trim() === r && (a = e);
1371
- }), !a) {
1373
+ let a = l.node()?.querySelectorAll("g.node, g.rough-node"), o;
1374
+ if (a?.forEach((e) => {
1375
+ let t = e.textContent?.trim();
1376
+ (e.id === i?.domId || t === r) && (o = e);
1377
+ }), !o) {
1372
1378
  e.warn("⚠️ Could not find node matching text:", r);
1373
1379
  return;
1374
1380
  }
1375
- let o = a.parentNode;
1376
- if (!o) {
1381
+ let s = o.parentNode;
1382
+ if (!s) {
1377
1383
  e.warn("⚠️ Node has no parent, cannot wrap:", r);
1378
1384
  return;
1379
1385
  }
1380
- let s = document.createElementNS("http://www.w3.org/2000/svg", "a"), c = t.url.replace(/^"+|"+$/g, "");
1381
- if (s.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", c), s.setAttribute("target", "_blank"), t.tooltip) {
1386
+ let u = document.createElementNS("http://www.w3.org/2000/svg", "a"), d = t.url.replace(/^"+|"+$/g, "");
1387
+ if (u.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", d), u.setAttribute("target", "_blank"), t.tooltip) {
1382
1388
  let e = t.tooltip.replace(/^"+|"+$/g, "");
1383
- s.setAttribute("title", e);
1389
+ u.setAttribute("title", e), o.setAttribute("title", e);
1384
1390
  }
1385
- o.replaceChild(s, a), s.appendChild(a), e.info("🔗 Wrapped node in <a> tag for:", r, t.url);
1391
+ s.replaceChild(u, o), u.appendChild(o), e.info("🔗 Wrapped node in <a> tag for:", r, t.url);
1386
1392
  });
1387
1393
  } catch (t) {
1388
1394
  e.error("❌ Error injecting clickable links:", t);
1389
1395
  }
1390
- d.insertTitle(u, "statediagramTitleText", o?.titleTopMargin ?? 25, i.db.getDiagramTitle()), h(u, 8, R, o?.useMaxWidth ?? !0);
1396
+ p.insertTitle(l, "statediagramTitleText", o?.titleTopMargin ?? 25, i.db.getDiagramTitle()), v(l, 8, z, o?.useMaxWidth ?? !0);
1391
1397
  }, "draw"),
1392
- getDir: U
1393
- }, W = /* @__PURE__ */ new Map(), G = 0;
1394
- function K(e = "", t = 0, n = "", r = V) {
1395
- return `${de}-${e}${n !== null && n.length > 0 ? `${r}${n}` : ""}-${t}`;
1398
+ getDir: G
1399
+ }, K = /* @__PURE__ */ new Map(), q = 0;
1400
+ function J(e = "", t = 0, n = "", r = U) {
1401
+ return `${fe}-${e}${n !== null && n.length > 0 ? `${r}${n}` : ""}-${t}`;
1396
1402
  }
1397
- t(K, "stateDomId");
1398
- var me = /* @__PURE__ */ t((t, n, r, i, a, s, c, u) => {
1403
+ f(J, "stateDomId");
1404
+ var he = /* @__PURE__ */ f((t, n, r, i, a, o, c, l) => {
1399
1405
  e.trace("items", n), n.forEach((e) => {
1400
1406
  switch (e.stmt) {
1401
- case x:
1402
- X(t, e, r, i, a, s, c, u);
1403
- break;
1404
- case D:
1405
- X(t, e, r, i, a, s, c, u);
1407
+ case w:
1408
+ Z(t, e, r, i, a, o, c, l);
1406
1409
  break;
1407
- case C:
1408
- {
1409
- X(t, e.state1, r, i, a, s, c, u), X(t, e.state2, r, i, a, s, c, u);
1410
- let n = c === "neo", d = {
1411
- id: "edge" + G,
1412
- start: e.state1.id,
1413
- end: e.state2.id,
1414
- arrowhead: "normal",
1415
- arrowTypeEnd: n ? "arrow_barb_neo" : "arrow_barb",
1416
- style: k,
1417
- labelStyle: "",
1418
- label: o.sanitizeText(e.description ?? "", l()),
1419
- arrowheadStyle: A,
1420
- labelpos: j,
1421
- labelType: M,
1422
- thickness: N,
1423
- classes: ae,
1424
- look: c
1425
- };
1426
- a.push(d), G++;
1427
- }
1410
+ case A:
1411
+ Z(t, e, r, i, a, o, c, l);
1428
1412
  break;
1413
+ case E: {
1414
+ Z(t, e.state1, r, i, a, o, c, l), Z(t, e.state2, r, i, a, o, c, l);
1415
+ let n = c === "neo", d = {
1416
+ id: "edge" + q,
1417
+ start: e.state1.id,
1418
+ end: e.state2.id,
1419
+ arrowhead: "normal",
1420
+ arrowTypeEnd: n ? "arrow_barb_neo" : "arrow_barb",
1421
+ style: M,
1422
+ labelStyle: "",
1423
+ label: s.sanitizeText(e.description ?? "", u()),
1424
+ arrowheadStyle: N,
1425
+ labelpos: P,
1426
+ labelType: ee,
1427
+ thickness: F,
1428
+ classes: B,
1429
+ look: c
1430
+ };
1431
+ a.push(d), q++;
1432
+ }
1429
1433
  }
1430
1434
  });
1431
- }, "setupDoc"), q = /* @__PURE__ */ t((e, t = y) => {
1435
+ }, "setupDoc"), ge = /* @__PURE__ */ f((e, t = S) => {
1432
1436
  let n = t;
1433
1437
  if (e.doc) for (let t of e.doc) t.stmt === "dir" && (n = t.value);
1434
1438
  return n;
1435
1439
  }, "getDir");
1436
- function J(e, t, n) {
1440
+ function Y(e, t, n) {
1437
1441
  if (!t.id || t.id === "</join></fork>" || t.id === "</choice>") return;
1438
1442
  t.cssClasses && (Array.isArray(t.cssCompiledStyles) || (t.cssCompiledStyles = []), t.cssClasses.split(" ").forEach((e) => {
1439
1443
  let r = n.get(e);
@@ -1442,77 +1446,77 @@ function J(e, t, n) {
1442
1446
  let r = e.find((e) => e.id === t.id);
1443
1447
  r ? Object.assign(r, t) : e.push(t);
1444
1448
  }
1445
- t(J, "insertOrUpdateNode");
1446
- function Y(e) {
1449
+ f(Y, "insertOrUpdateNode");
1450
+ function X(e) {
1447
1451
  return e?.classes?.join(" ") ?? "";
1448
1452
  }
1449
- t(Y, "getClassesFromDbInfo");
1450
- function he(e) {
1453
+ f(X, "getClassesFromDbInfo");
1454
+ function _e(e) {
1451
1455
  return e?.styles ?? [];
1452
1456
  }
1453
- t(he, "getStylesFromDbInfo");
1454
- var X = /* @__PURE__ */ t((t, n, r, i, a, s, c, u) => {
1455
- let d = n.id, f = r.get(d), p = Y(f), m = he(f), h = l();
1457
+ f(_e, "getStylesFromDbInfo");
1458
+ var Z = /* @__PURE__ */ f((t, n, r, i, a, o, c, l) => {
1459
+ let d = n.id, f = r.get(d), p = X(f), m = _e(f), h = u();
1456
1460
  if (e.info("dataFetcher parsedItem", n, f, m), d !== "root") {
1457
- let r = P;
1458
- n.start === !0 ? r = ee : n.start === !1 && (r = te), n.type !== D && (r = n.type), W.get(d) || W.set(d, {
1461
+ let r = I;
1462
+ n.start === !0 ? r = te : n.start === !1 && (r = ne), n.type !== A && (r = n.type), K.get(d) || K.set(d, {
1459
1463
  id: d,
1460
1464
  shape: r,
1461
- description: o.sanitizeText(d, h),
1462
- cssClasses: `${p} ${ie}`,
1465
+ description: s.sanitizeText(d, h),
1466
+ cssClasses: `${p} ${oe}`,
1463
1467
  cssStyles: m
1464
1468
  });
1465
- let l = W.get(d);
1466
- n.description && (Array.isArray(l.description) ? (l.shape = F, l.description.push(n.description)) : l.description?.length && l.description.length > 0 ? (l.shape = F, l.description === d ? l.description = [n.description] : l.description = [l.description, n.description]) : (l.shape = P, l.description = n.description), l.description = o.sanitizeTextOrArray(l.description, h)), l.description?.length === 1 && l.shape === F && (l.type === "group" ? l.shape = L : l.shape = P), !l.type && n.doc && (e.info("Setting cluster for XCX", d, q(n)), l.type = "group", l.isGroup = !0, l.dir = q(n), l.shape = n.type === O ? I : L, l.cssClasses = `${l.cssClasses} ${le} ${s ? ue : ""}`);
1469
+ let u = K.get(d);
1470
+ n.description && (Array.isArray(u.description) ? (u.shape = L, u.description.push(n.description)) : u.description?.length && u.description.length > 0 ? (u.shape = L, u.description = u.description === d ? [n.description] : [u.description, n.description]) : (u.shape = I, u.description = n.description), u.description = s.sanitizeTextOrArray(u.description, h)), u.description?.length === 1 && u.shape === L && (u.shape = u.type === "group" ? re : I), !u.type && n.doc && (e.info("Setting cluster for XCX", d, ge(n)), u.type = "group", u.isGroup = !0, u.dir = ge(n), u.shape = n.type === j ? R : re, u.cssClasses = `${u.cssClasses} ${ue} ${o ? de : ""}`);
1467
1471
  let f = {
1468
1472
  labelStyle: "",
1469
- shape: l.shape,
1470
- label: l.description,
1471
- cssClasses: l.cssClasses,
1473
+ shape: u.shape,
1474
+ label: u.description,
1475
+ cssClasses: u.cssClasses,
1472
1476
  cssCompiledStyles: [],
1473
- cssStyles: l.cssStyles,
1477
+ cssStyles: u.cssStyles,
1474
1478
  id: d,
1475
- dir: l.dir,
1476
- domId: K(d, G),
1477
- type: l.type,
1478
- isGroup: l.type === "group",
1479
+ dir: u.dir,
1480
+ domId: J(d, q),
1481
+ type: u.type,
1482
+ isGroup: u.type === "group",
1479
1483
  padding: 8,
1480
1484
  rx: 10,
1481
1485
  ry: 10,
1482
1486
  look: c,
1483
1487
  labelType: "markdown"
1484
1488
  };
1485
- if (f.shape === I && (f.label = ""), t && t.id !== "root" && (e.trace("Setting node ", d, " to be child of its parent ", t.id), f.parentId = t.id), f.centerLabel = !0, n.note) {
1489
+ if (f.shape === R && (f.label = ""), t && t.id !== "root" && (e.trace("Setting node ", d, " to be child of its parent ", t.id), f.parentId = t.id), f.centerLabel = !0, n.note) {
1486
1490
  let e = {
1487
1491
  labelStyle: "",
1488
- shape: ne,
1492
+ shape: ie,
1489
1493
  label: n.note.text,
1490
1494
  labelType: "markdown",
1491
- cssClasses: ce,
1495
+ cssClasses: le,
1492
1496
  cssStyles: [],
1493
1497
  cssCompiledStyles: [],
1494
- id: d + fe + "-" + G,
1495
- domId: K(d, G, B),
1496
- type: l.type,
1497
- isGroup: l.type === "group",
1498
+ id: d + pe + "-" + q,
1499
+ domId: J(d, q, H),
1500
+ type: u.type,
1501
+ isGroup: u.type === "group",
1498
1502
  padding: h.flowchart?.padding,
1499
1503
  look: c,
1500
1504
  position: n.note.position
1501
- }, t = d + H, r = {
1505
+ }, t = d + W, r = {
1502
1506
  labelStyle: "",
1503
- shape: re,
1507
+ shape: ae,
1504
1508
  label: n.note.text,
1505
- cssClasses: l.cssClasses,
1509
+ cssClasses: u.cssClasses,
1506
1510
  cssStyles: [],
1507
- id: d + H,
1508
- domId: K(d, G, z),
1511
+ id: d + W,
1512
+ domId: J(d, q, V),
1509
1513
  type: "group",
1510
1514
  isGroup: !0,
1511
1515
  padding: 16,
1512
1516
  look: c,
1513
1517
  position: n.note.position
1514
1518
  };
1515
- G++, r.id = t, e.parentId = t, J(i, r, u), J(i, e, u), J(i, f, u);
1519
+ q++, r.id = t, e.parentId = t, Y(i, r, l), Y(i, e, l), Y(i, f, l);
1516
1520
  let o = d, s = e.id;
1517
1521
  n.note.position === "left of" && (o = e.id, s = d), a.push({
1518
1522
  id: o + "-" + s,
@@ -1520,21 +1524,21 @@ var X = /* @__PURE__ */ t((t, n, r, i, a, s, c, u) => {
1520
1524
  end: s,
1521
1525
  arrowhead: "none",
1522
1526
  arrowTypeEnd: "",
1523
- style: k,
1527
+ style: M,
1524
1528
  labelStyle: "",
1525
- classes: se,
1526
- arrowheadStyle: A,
1527
- labelpos: j,
1528
- labelType: M,
1529
- thickness: N,
1529
+ classes: ce,
1530
+ arrowheadStyle: N,
1531
+ labelpos: P,
1532
+ labelType: ee,
1533
+ thickness: F,
1530
1534
  look: c
1531
1535
  });
1532
- } else J(i, f, u);
1536
+ } else Y(i, f, l);
1533
1537
  }
1534
- n.doc && (e.trace("Adding nodes children "), me(n, n.doc, r, i, a, !s, c, u));
1535
- }, "dataFetcher"), ge = /* @__PURE__ */ t(() => {
1536
- W.clear(), G = 0;
1537
- }, "reset"), Z = {
1538
+ n.doc && (e.trace("Adding nodes children "), he(n, n.doc, r, i, a, !o, c, l));
1539
+ }, "dataFetcher"), ve = /* @__PURE__ */ f(() => {
1540
+ K.clear(), q = 0;
1541
+ }, "reset"), Q = {
1538
1542
  START_NODE: "[*]",
1539
1543
  START_TYPE: "start",
1540
1544
  END_NODE: "[*]",
@@ -1543,16 +1547,16 @@ var X = /* @__PURE__ */ t((t, n, r, i, a, s, c, u) => {
1543
1547
  FILL_KEYWORD: "fill",
1544
1548
  BG_FILL: "bgFill",
1545
1549
  STYLECLASS_SEP: ","
1546
- }, _e = /* @__PURE__ */ t(() => /* @__PURE__ */ new Map(), "newClassesList"), Q = /* @__PURE__ */ t(() => ({
1550
+ }, ye = /* @__PURE__ */ f(() => /* @__PURE__ */ new Map(), "newClassesList"), be = /* @__PURE__ */ f(() => ({
1547
1551
  relations: [],
1548
1552
  states: /* @__PURE__ */ new Map(),
1549
1553
  documents: {}
1550
- }), "newDoc"), $ = /* @__PURE__ */ t((e) => JSON.parse(JSON.stringify(e)), "clone"), ve = class {
1554
+ }), "newDoc"), $ = /* @__PURE__ */ f((e) => JSON.parse(JSON.stringify(e)), "clone"), xe = class {
1551
1555
  constructor(e) {
1552
- this.version = e, this.nodes = [], this.edges = [], this.rootDoc = [], this.classes = _e(), this.documents = { root: Q() }, this.currentDocument = this.documents.root, this.startEndCount = 0, this.dividerCnt = 0, this.links = /* @__PURE__ */ new Map(), this.getAccTitle = u, this.setAccTitle = i, this.getAccDescription = s, this.setAccDescription = n, this.setDiagramTitle = r, this.getDiagramTitle = c, this.clear(), this.setRootDoc = this.setRootDoc.bind(this), this.getDividerId = this.getDividerId.bind(this), this.setDirection = this.setDirection.bind(this), this.trimColon = this.trimColon.bind(this);
1556
+ this.version = e, this.nodes = [], this.edges = [], this.rootDoc = [], this.classes = ye(), this.documents = { root: be() }, this.currentDocument = this.documents.root, this.startEndCount = 0, this.dividerCnt = 0, this.links = /* @__PURE__ */ new Map(), this.funs = [], this.getAccTitle = d, this.setAccTitle = i, this.getAccDescription = c, this.setAccDescription = n, this.setDiagramTitle = r, this.getDiagramTitle = l, this.clear(), this.setRootDoc = this.setRootDoc.bind(this), this.getDividerId = this.getDividerId.bind(this), this.setDirection = this.setDirection.bind(this), this.trimColon = this.trimColon.bind(this), this.bindFunctions = this.bindFunctions.bind(this);
1553
1557
  }
1554
1558
  static {
1555
- t(this, "StateDB");
1559
+ f(this, "StateDB");
1556
1560
  }
1557
1561
  static {
1558
1562
  this.relationType = {
@@ -1565,27 +1569,25 @@ var X = /* @__PURE__ */ t((t, n, r, i, a, s, c, u) => {
1565
1569
  extract(e) {
1566
1570
  this.clear(!0);
1567
1571
  for (let t of Array.isArray(e) ? e : e.doc) switch (t.stmt) {
1568
- case x:
1572
+ case w:
1569
1573
  this.addState(t.id.trim(), t.type, t.doc, t.description, t.note);
1570
1574
  break;
1571
- case C:
1575
+ case E:
1572
1576
  this.addRelation(t.state1, t.state2, t.description);
1573
1577
  break;
1574
- case w:
1578
+ case D:
1575
1579
  this.addStyleClass(t.id.trim(), t.classes);
1576
1580
  break;
1577
- case T:
1581
+ case O:
1578
1582
  this.handleStyleDef(t);
1579
1583
  break;
1580
- case E:
1584
+ case k:
1581
1585
  this.setCssClass(t.id.trim(), t.styleClass);
1582
1586
  break;
1583
- case "click":
1584
- this.addLink(t.id, t.url, t.tooltip);
1585
- break;
1587
+ case "click": this.addLink(t.id, t.url, t.tooltip);
1586
1588
  }
1587
- let t = this.getStates(), n = l();
1588
- ge(), X(void 0, this.getRootDocV2(), t, this.nodes, this.edges, !0, n.look, this.classes);
1589
+ let t = this.getStates(), n = u();
1590
+ ve(), Z(void 0, this.getRootDocV2(), t, this.nodes, this.edges, !0, n.look, this.classes);
1589
1591
  for (let e of this.nodes) if (Array.isArray(e.label)) {
1590
1592
  if (e.description = e.label.slice(1), e.isGroup && e.description.length > 0) throw Error(`Group nodes can only have label. Remove the additional description for node [${e.id}]`);
1591
1593
  e.label = e.label[0];
@@ -1606,20 +1608,20 @@ var X = /* @__PURE__ */ t((t, n, r, i, a, s, c, u) => {
1606
1608
  e.info("Setting root doc", t), this.rootDoc = t, this.version === 1 ? this.extract(t) : this.extract(this.getRootDocV2());
1607
1609
  }
1608
1610
  docTranslator(e, t, n) {
1609
- if (t.stmt === C) {
1611
+ if (t.stmt === E) {
1610
1612
  this.docTranslator(e, t.state1, !0), this.docTranslator(e, t.state2, !1);
1611
1613
  return;
1612
1614
  }
1613
- if (t.stmt === x && (t.id === Z.START_NODE ? (t.id = e.id + (n ? "_start" : "_end"), t.start = n) : t.id = t.id.trim()), t.stmt !== S && t.stmt !== x || !t.doc) return;
1615
+ if (t.stmt === w && (t.id === Q.START_NODE ? (t.id = e.id + (n ? "_start" : "_end"), t.start = n) : t.id = t.id.trim()), t.stmt !== T && t.stmt !== w || !t.doc) return;
1614
1616
  let r = [], i = [];
1615
- for (let e of t.doc) if (e.type === O) {
1617
+ for (let e of t.doc) if (e.type === j) {
1616
1618
  let t = $(e);
1617
1619
  t.doc = $(i), r.push(t), i = [];
1618
1620
  } else i.push(e);
1619
1621
  if (r.length > 0 && i.length > 0) {
1620
1622
  let e = {
1621
- stmt: x,
1622
- id: f(),
1623
+ stmt: w,
1624
+ id: m(),
1623
1625
  type: "divider",
1624
1626
  doc: $(i)
1625
1627
  };
@@ -1629,21 +1631,21 @@ var X = /* @__PURE__ */ t((t, n, r, i, a, s, c, u) => {
1629
1631
  }
1630
1632
  getRootDocV2() {
1631
1633
  return this.docTranslator({
1632
- id: S,
1633
- stmt: S
1634
+ id: T,
1635
+ stmt: T
1634
1636
  }, {
1635
- id: S,
1636
- stmt: S,
1637
+ id: T,
1638
+ stmt: T,
1637
1639
  doc: this.rootDoc
1638
1640
  }, !0), {
1639
- id: S,
1641
+ id: T,
1640
1642
  doc: this.rootDoc
1641
1643
  };
1642
1644
  }
1643
- addState(t, n = D, r = void 0, i = void 0, a = void 0, s = void 0, c = void 0, u = void 0) {
1645
+ addState(t, n = A, r = void 0, i = void 0, a = void 0, o = void 0, c = void 0, l = void 0) {
1644
1646
  let d = t?.trim();
1645
1647
  if (!this.currentDocument.states.has(d)) e.info("Adding state ", d, i), this.currentDocument.states.set(d, {
1646
- stmt: x,
1648
+ stmt: w,
1647
1649
  id: d,
1648
1650
  descriptions: [],
1649
1651
  type: n,
@@ -1661,12 +1663,12 @@ var X = /* @__PURE__ */ t((t, n, r, i, a, s, c, u) => {
1661
1663
  if (i && (e.info("Setting state description", d, i), (Array.isArray(i) ? i : [i]).forEach((e) => this.addDescription(d, e.trim()))), a) {
1662
1664
  let e = this.currentDocument.states.get(d);
1663
1665
  if (!e) throw Error(`State not found: ${d}`);
1664
- e.note = a, e.note.text = o.sanitizeText(e.note.text, l());
1666
+ e.note = a, e.note.text = s.sanitizeText(e.note.text, u());
1665
1667
  }
1666
- s && (e.info("Setting state classes", d, s), (Array.isArray(s) ? s : [s]).forEach((e) => this.setCssClass(d, e.trim()))), c && (e.info("Setting state styles", d, c), (Array.isArray(c) ? c : [c]).forEach((e) => this.setStyle(d, e.trim()))), u && (e.info("Setting state styles", d, c), (Array.isArray(u) ? u : [u]).forEach((e) => this.setTextStyle(d, e.trim())));
1668
+ o && (e.info("Setting state classes", d, o), (Array.isArray(o) ? o : [o]).forEach((e) => this.setCssClass(d, e.trim()))), c && (e.info("Setting state styles", d, c), (Array.isArray(c) ? c : [c]).forEach((e) => this.setStyle(d, e.trim()))), l && (e.info("Setting state styles", d, c), (Array.isArray(l) ? l : [l]).forEach((e) => this.setTextStyle(d, e.trim())));
1667
1669
  }
1668
1670
  clear(e) {
1669
- this.nodes = [], this.edges = [], this.documents = { root: Q() }, this.currentDocument = this.documents.root, this.startEndCount = 0, this.classes = _e(), e || (this.links = /* @__PURE__ */ new Map(), a());
1671
+ this.nodes = [], this.edges = [], this.funs = [this.setupToolTips.bind(this)], this.documents = { root: be() }, this.currentDocument = this.documents.root, this.startEndCount = 0, this.classes = ye(), e || (this.links = /* @__PURE__ */ new Map(), a());
1670
1672
  }
1671
1673
  getState(e) {
1672
1674
  return this.currentDocument.states.get(e);
@@ -1690,39 +1692,39 @@ var X = /* @__PURE__ */ t((t, n, r, i, a, s, c, u) => {
1690
1692
  return this.links;
1691
1693
  }
1692
1694
  startIdIfNeeded(e = "") {
1693
- return e === Z.START_NODE ? (this.startEndCount++, `${Z.START_TYPE}${this.startEndCount}`) : e;
1695
+ return e === Q.START_NODE ? (this.startEndCount++, `${Q.START_TYPE}${this.startEndCount}`) : e;
1694
1696
  }
1695
- startTypeIfNeeded(e = "", t = D) {
1696
- return e === Z.START_NODE ? Z.START_TYPE : t;
1697
+ startTypeIfNeeded(e = "", t = A) {
1698
+ return e === Q.START_NODE ? Q.START_TYPE : t;
1697
1699
  }
1698
1700
  endIdIfNeeded(e = "") {
1699
- return e === Z.END_NODE ? (this.startEndCount++, `${Z.END_TYPE}${this.startEndCount}`) : e;
1701
+ return e === Q.END_NODE ? (this.startEndCount++, `${Q.END_TYPE}${this.startEndCount}`) : e;
1700
1702
  }
1701
- endTypeIfNeeded(e = "", t = D) {
1702
- return e === Z.END_NODE ? Z.END_TYPE : t;
1703
+ endTypeIfNeeded(e = "", t = A) {
1704
+ return e === Q.END_NODE ? Q.END_TYPE : t;
1703
1705
  }
1704
1706
  addRelationObjs(e, t, n = "") {
1705
- let r = this.startIdIfNeeded(e.id.trim()), i = this.startTypeIfNeeded(e.id.trim(), e.type), a = this.startIdIfNeeded(t.id.trim()), s = this.startTypeIfNeeded(t.id.trim(), t.type);
1706
- this.addState(r, i, e.doc, e.description, e.note, e.classes, e.styles, e.textStyles), this.addState(a, s, t.doc, t.description, t.note, t.classes, t.styles, t.textStyles), this.currentDocument.relations.push({
1707
+ let r = this.startIdIfNeeded(e.id.trim()), i = this.startTypeIfNeeded(e.id.trim(), e.type), a = this.startIdIfNeeded(t.id.trim()), o = this.startTypeIfNeeded(t.id.trim(), t.type);
1708
+ this.addState(r, i, e.doc, e.description, e.note, e.classes, e.styles, e.textStyles), this.addState(a, o, t.doc, t.description, t.note, t.classes, t.styles, t.textStyles), this.currentDocument.relations.push({
1707
1709
  id1: r,
1708
1710
  id2: a,
1709
- relationTitle: o.sanitizeText(n, l())
1711
+ relationTitle: s.sanitizeText(n, u())
1710
1712
  });
1711
1713
  }
1712
1714
  addRelation(e, t, n) {
1713
1715
  if (typeof e == "object" && typeof t == "object") this.addRelationObjs(e, t, n);
1714
1716
  else if (typeof e == "string" && typeof t == "string") {
1715
- let r = this.startIdIfNeeded(e.trim()), i = this.startTypeIfNeeded(e), a = this.endIdIfNeeded(t.trim()), s = this.endTypeIfNeeded(t);
1716
- this.addState(r, i), this.addState(a, s), this.currentDocument.relations.push({
1717
+ let r = this.startIdIfNeeded(e.trim()), i = this.startTypeIfNeeded(e), a = this.endIdIfNeeded(t.trim()), o = this.endTypeIfNeeded(t);
1718
+ this.addState(r, i), this.addState(a, o), this.currentDocument.relations.push({
1717
1719
  id1: r,
1718
1720
  id2: a,
1719
- relationTitle: n ? o.sanitizeText(n, l()) : void 0
1721
+ relationTitle: n ? s.sanitizeText(n, u()) : void 0
1720
1722
  });
1721
1723
  }
1722
1724
  }
1723
1725
  addDescription(e, t) {
1724
1726
  let n = this.currentDocument.states.get(e), r = t.startsWith(":") ? t.replace(":", "").trim() : t;
1725
- n?.descriptions?.push(o.sanitizeText(r, l()));
1727
+ n?.descriptions?.push(s.sanitizeText(r, u()));
1726
1728
  }
1727
1729
  cleanupLabel(e) {
1728
1730
  return e.startsWith(":") ? e.slice(2).trim() : e.trim();
@@ -1737,10 +1739,10 @@ var X = /* @__PURE__ */ t((t, n, r, i, a, s, c, u) => {
1737
1739
  textStyles: []
1738
1740
  });
1739
1741
  let n = this.classes.get(e);
1740
- t && n && t.split(Z.STYLECLASS_SEP).forEach((e) => {
1742
+ t && n && t.split(Q.STYLECLASS_SEP).forEach((e) => {
1741
1743
  let t = e.replace(/([^;]*);/, "$1").trim();
1742
- if (RegExp(Z.COLOR_KEYWORD).exec(e)) {
1743
- let e = t.replace(Z.FILL_KEYWORD, Z.BG_FILL).replace(Z.COLOR_KEYWORD, Z.FILL_KEYWORD);
1744
+ if (RegExp(Q.COLOR_KEYWORD).exec(e)) {
1745
+ let e = t.replace(Q.FILL_KEYWORD, Q.BG_FILL).replace(Q.COLOR_KEYWORD, Q.FILL_KEYWORD);
1744
1746
  n.textStyles.push(e);
1745
1747
  }
1746
1748
  n.styles.push(t);
@@ -1749,6 +1751,17 @@ var X = /* @__PURE__ */ t((t, n, r, i, a, s, c, u) => {
1749
1751
  getClasses() {
1750
1752
  return this.classes;
1751
1753
  }
1754
+ setupToolTips(e) {
1755
+ let n = g();
1756
+ t(e).select("svg").selectAll("g.node, g.rough-node").on("mouseover", (e) => {
1757
+ let r = t(e.currentTarget), i = r.attr("title");
1758
+ if (i === null) return;
1759
+ let a = e.currentTarget?.getBoundingClientRect();
1760
+ n.transition().duration(200).style("opacity", ".9"), n.style("left", window.scrollX + a.left + (a.right - a.left) / 2 + "px").style("top", window.scrollY + a.bottom + "px"), n.html(o.sanitize(i)), r.classed("hover", !0);
1761
+ }).on("mouseout", (e) => {
1762
+ n.transition().duration(500).style("opacity", 0), t(e.currentTarget).classed("hover", !1);
1763
+ });
1764
+ }
1752
1765
  setCssClass(e, t) {
1753
1766
  e.split(",").forEach((e) => {
1754
1767
  let n = this.getState(e);
@@ -1765,16 +1778,21 @@ var X = /* @__PURE__ */ t((t, n, r, i, a, s, c, u) => {
1765
1778
  setTextStyle(e, t) {
1766
1779
  this.getState(e)?.textStyles?.push(t);
1767
1780
  }
1781
+ bindFunctions(e) {
1782
+ this.funs.forEach((t) => {
1783
+ t(e);
1784
+ });
1785
+ }
1768
1786
  getDirectionStatement() {
1769
- return this.rootDoc.find((e) => e.stmt === b);
1787
+ return this.rootDoc.find((e) => e.stmt === C);
1770
1788
  }
1771
1789
  getDirection() {
1772
- return this.getDirectionStatement()?.value ?? v;
1790
+ return this.getDirectionStatement()?.value ?? x;
1773
1791
  }
1774
1792
  setDirection(e) {
1775
1793
  let t = this.getDirectionStatement();
1776
1794
  t ? t.value = e : this.rootDoc.unshift({
1777
- stmt: b,
1795
+ stmt: C,
1778
1796
  value: e
1779
1797
  });
1780
1798
  }
@@ -1782,19 +1800,19 @@ var X = /* @__PURE__ */ t((t, n, r, i, a, s, c, u) => {
1782
1800
  return e.startsWith(":") ? e.slice(1).trim() : e.trim();
1783
1801
  }
1784
1802
  getData() {
1785
- let e = l();
1803
+ let e = u();
1786
1804
  return {
1787
1805
  nodes: this.nodes,
1788
1806
  edges: this.edges,
1789
1807
  other: {},
1790
1808
  config: e,
1791
- direction: U(this.getRootDocV2())
1809
+ direction: G(this.getRootDocV2())
1792
1810
  };
1793
1811
  }
1794
1812
  getConfig() {
1795
- return l().state;
1813
+ return u().state;
1796
1814
  }
1797
- }, ye = /* @__PURE__ */ t((e) => `
1815
+ }, Se = /* @__PURE__ */ f((e) => `
1798
1816
  defs [id$="-barbEnd"] {
1799
1817
  fill: ${e.transitionColor};
1800
1818
  stroke: ${e.transitionColor};
@@ -2021,4 +2039,4 @@ g.stateGroup line {
2021
2039
  }
2022
2040
  `, "getStyles");
2023
2041
  //#endregion
2024
- export { ye as i, _ as n, pe as r, ve as t };
2042
+ export { Se as i, b as n, me as r, xe as t };