@sme.up/ketchup2 2.10.0 → 2.11.0

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 (323) hide show
  1. package/dist/{abnfDiagram-VCTEODGH-jIDWUpNo.js → abnfDiagram-WEYOIA3C-BGzUWx_N.js} +18 -18
  2. package/dist/{arc-DXfwi1YX.js → arc-Cde31fHX.js} +1 -1
  3. package/dist/architecture-WOLXFQ4H-CjGAyYHf.js +2 -0
  4. package/dist/{architectureDiagram-5GKGNRK7-C1xA1c3c.js → architectureDiagram-ZHVYKT53-DH-D4G0y.js} +138 -153
  5. package/dist/assets/svg/magnify-minus.svg +1 -0
  6. package/dist/assets/svg/magnify-plus.svg +1 -0
  7. package/dist/basic-components/button-group/button-group.d.ts.map +1 -1
  8. package/dist/basic-components/cell/cell-types.d.ts +8 -0
  9. package/dist/basic-components/cell/cell-types.d.ts.map +1 -1
  10. package/dist/basic-components/cell/cell.d.ts.map +1 -1
  11. package/dist/basic-components/checkbox/checkbox.d.ts.map +1 -1
  12. package/dist/basic-components/chips/chips-types.d.ts +13 -0
  13. package/dist/basic-components/chips/chips-types.d.ts.map +1 -1
  14. package/dist/basic-components/chips/chips.d.ts.map +1 -1
  15. package/dist/basic-components/date-picker/date-picker-types.d.ts +4 -0
  16. package/dist/basic-components/date-picker/date-picker-types.d.ts.map +1 -1
  17. package/dist/basic-components/image-cell/image-cell.d.ts.map +1 -1
  18. package/dist/basic-components/input-number/input-number.d.ts.map +1 -1
  19. package/dist/basic-components/radio/radio.d.ts.map +1 -1
  20. package/dist/basic-components/slider/slider.d.ts.map +1 -1
  21. package/dist/basic-components/text/text.d.ts.map +1 -1
  22. package/dist/basic-components/textarea/textarea-types.d.ts +2 -2
  23. package/dist/basic-components/textarea/textarea.d.ts.map +1 -1
  24. package/dist/basic-components/textfield/textfield-types.d.ts +7 -2
  25. package/dist/basic-components/textfield/textfield-types.d.ts.map +1 -1
  26. package/dist/basic-components/textfield/textfield.d.ts.map +1 -1
  27. package/dist/basic-components/typography/typography.d.ts.map +1 -1
  28. package/dist/{blockDiagram-I7D4REHJ-C0hlmHW8.js → blockDiagram-RJAE7QA3-hRpbCaPL.js} +329 -316
  29. package/dist/{c4Diagram-7LVT6UL2-DwTMAxzR.js → c4Diagram-XDPPPE54-Bkqvkv8O.js} +350 -340
  30. package/dist/channel-CcHUzwZl.js +5 -0
  31. package/dist/{chunk-SVP7TREG-f53BROgh.js → chunk-2E7WHVMD-DSYBrngB.js} +77 -77
  32. package/dist/chunk-4EMNKR2T-CndbTVTA.js +236 -0
  33. package/dist/{chunk-F27PBJKO-DPhiW07t.js → chunk-55XCU76K-B1HtPImz.js} +16 -16
  34. package/dist/{chunk-75Z2AOVW-CLjRECiG.js → chunk-7S6XSTFO-CN6S2H1-.js} +304 -305
  35. package/dist/{chunk-GMAD6QVW-Cnp61Cie.js → chunk-AQDTSKZB-DuUha9al.js} +386 -433
  36. package/dist/{chunk-DU6HZSFF-D9v_2L4Z.js → chunk-DSNLSHJZ-B1A8wsiA.js} +1078 -984
  37. package/dist/chunk-DUW6YSOI-BdOla2G8.js +10 -0
  38. package/dist/chunk-EJLWFMJV-Cu6XnLfk.js +75 -0
  39. package/dist/chunk-HAGFOTED-IzyIoLzD.js +4487 -0
  40. package/dist/chunk-HNE4Q36P-7zVKLE_b.js +363 -0
  41. package/dist/chunk-J5ZVWO5B-CYzz6Pq8.js +12 -0
  42. package/dist/{chunk-LNGE3PJU-CtYcu9x8.js → chunk-LNGE3PJU-ByFTjlja.js} +15 -19
  43. package/dist/chunk-NGNAAXSQ-Tr--SG_c.js +19832 -0
  44. package/dist/{chunk-SHT3W25Y-aBBFlrSX.js → chunk-NQOKRVIF-CEJ-prlJ.js} +483 -414
  45. package/dist/chunk-OYAV6JZA-Cypx4hYu.js +14 -0
  46. package/dist/{chunk-P2QGCYS3-667SFjNY.js → chunk-UHW7PFBP-CoHGQVjo.js} +6 -6
  47. package/dist/chunk-VQ5W62QI-BSDHmyws.js +26 -0
  48. package/dist/{chunk-OSK3NFVY-qg1q5TTI.js → chunk-WQQL4CDK-BJE6isq-.js} +312 -288
  49. package/dist/chunk-XXDRQBXY-CU-dbs05.js +9 -0
  50. package/dist/{chunk-PWAF6VOD-z0rQy52m.js → chunk-YZO67HFG-Bcmpw0dX.js} +28 -28
  51. package/dist/{chunk-GVQU2GXP-BJ9OHC7T.js → chunk-ZAUX2LTX-Bu7BRVL6.js} +14 -14
  52. package/dist/chunk-ZCHMQSOR-BA1QQ4D6.js +354 -0
  53. package/dist/{chunk-TICWLB2K-DzrOz9kL.js → classDiagram-v2-4MYWR3UA-Bnh650R8.js} +333 -293
  54. package/dist/components/app-bar/app-bar-utils.d.ts.map +1 -1
  55. package/dist/components/calendar/calendar-available-height.d.ts +14 -0
  56. package/dist/components/calendar/calendar-available-height.d.ts.map +1 -0
  57. package/dist/components/calendar/calendar-types.d.ts +20 -8
  58. package/dist/components/calendar/calendar-types.d.ts.map +1 -1
  59. package/dist/components/calendar/calendar-utils.d.ts +94 -37
  60. package/dist/components/calendar/calendar-utils.d.ts.map +1 -1
  61. package/dist/components/calendar/calendar.d.ts.map +1 -1
  62. package/dist/components/calendar/views/calendar-event-text.d.ts +14 -3
  63. package/dist/components/calendar/views/calendar-event-text.d.ts.map +1 -1
  64. package/dist/components/calendar/views/calendar-month-grid.d.ts +4 -4
  65. package/dist/components/calendar/views/calendar-month-grid.d.ts.map +1 -1
  66. package/dist/components/calendar/views/calendar-more-events.d.ts +1 -1
  67. package/dist/components/calendar/views/calendar-more-events.d.ts.map +1 -1
  68. package/dist/components/calendar/views/calendar-time-grid.d.ts +4 -0
  69. package/dist/components/calendar/views/calendar-time-grid.d.ts.map +1 -1
  70. package/dist/components/data-table/assets/data-table-row-actions.d.ts +1 -1
  71. package/dist/components/data-table/cell-actions/cell-actions-types.d.ts +12 -0
  72. package/dist/components/data-table/cell-actions/cell-actions-types.d.ts.map +1 -0
  73. package/dist/components/data-table/cell-actions/cell-actions-utils.d.ts +29 -0
  74. package/dist/components/data-table/cell-actions/cell-actions-utils.d.ts.map +1 -0
  75. package/dist/components/data-table/cell-actions/cell-actions-utils.test.d.ts +2 -0
  76. package/dist/components/data-table/cell-actions/cell-actions-utils.test.d.ts.map +1 -0
  77. package/dist/components/data-table/cell-actions/cell-actions.d.ts +6 -0
  78. package/dist/components/data-table/cell-actions/cell-actions.d.ts.map +1 -0
  79. package/dist/components/data-table/column-menu/column-menu-types.d.ts +32 -0
  80. package/dist/components/data-table/column-menu/column-menu-types.d.ts.map +1 -0
  81. package/dist/components/data-table/column-menu/column-menu.d.ts +11 -0
  82. package/dist/components/data-table/column-menu/column-menu.d.ts.map +1 -0
  83. package/dist/components/data-table/columns/columns-utils.d.ts +11 -2
  84. package/dist/components/data-table/columns/columns-utils.d.ts.map +1 -1
  85. package/dist/components/data-table/columns/useColumnWidths.d.ts +24 -1
  86. package/dist/components/data-table/columns/useColumnWidths.d.ts.map +1 -1
  87. package/dist/components/data-table/data-table-types.d.ts +191 -38
  88. package/dist/components/data-table/data-table-types.d.ts.map +1 -1
  89. package/dist/components/data-table/data-table.d.ts.map +1 -1
  90. package/dist/components/data-table/filtering/data-table-filter-utils.d.ts +19 -2
  91. package/dist/components/data-table/filtering/data-table-filter-utils.d.ts.map +1 -1
  92. package/dist/components/data-table/fixed/fixed-utils.d.ts +6 -0
  93. package/dist/components/data-table/fixed/fixed-utils.d.ts.map +1 -1
  94. package/dist/components/data-table/footer/footer-types.d.ts +22 -8
  95. package/dist/components/data-table/footer/footer-types.d.ts.map +1 -1
  96. package/dist/components/data-table/footer/footer.d.ts.map +1 -1
  97. package/dist/components/data-table/group-row/group-row-types.d.ts +29 -1
  98. package/dist/components/data-table/group-row/group-row-types.d.ts.map +1 -1
  99. package/dist/components/data-table/group-row/group-row.d.ts.map +1 -1
  100. package/dist/components/data-table/grouping/buildFlatGroupedRows.d.ts +11 -5
  101. package/dist/components/data-table/grouping/buildFlatGroupedRows.d.ts.map +1 -1
  102. package/dist/components/data-table/grouping/datatable-groups-utils.d.ts +11 -1
  103. package/dist/components/data-table/grouping/datatable-groups-utils.d.ts.map +1 -1
  104. package/dist/components/data-table/grouping/group-expansion.d.ts +16 -0
  105. package/dist/components/data-table/grouping/group-expansion.d.ts.map +1 -0
  106. package/dist/components/data-table/grouping/grouping-types.d.ts +9 -0
  107. package/dist/components/data-table/grouping/grouping-types.d.ts.map +1 -1
  108. package/dist/components/data-table/header/Header.d.ts.map +1 -1
  109. package/dist/components/data-table/header/header-toolbar/header-toolbar-types.d.ts +44 -0
  110. package/dist/components/data-table/header/header-toolbar/header-toolbar-types.d.ts.map +1 -0
  111. package/dist/components/data-table/header/header-toolbar/header-toolbar.d.ts +8 -0
  112. package/dist/components/data-table/header/header-toolbar/header-toolbar.d.ts.map +1 -0
  113. package/dist/components/data-table/header/header-types.d.ts +32 -21
  114. package/dist/components/data-table/header/header-types.d.ts.map +1 -1
  115. package/dist/components/data-table/load-more-row/load-more-row.d.ts +8 -0
  116. package/dist/components/data-table/load-more-row/load-more-row.d.ts.map +1 -0
  117. package/dist/components/data-table/load-more-row/load-more-types.d.ts +11 -0
  118. package/dist/components/data-table/load-more-row/load-more-types.d.ts.map +1 -0
  119. package/dist/components/data-table/sorting/buildDftSort.d.ts +16 -0
  120. package/dist/components/data-table/sorting/buildDftSort.d.ts.map +1 -0
  121. package/dist/components/data-table/sorting/buildDftSort.test.d.ts +2 -0
  122. package/dist/components/data-table/sorting/buildDftSort.test.d.ts.map +1 -0
  123. package/dist/components/data-table/sorting/parseDftSort.d.ts +4 -4
  124. package/dist/components/data-table/sorting/parseDftSort.d.ts.map +1 -1
  125. package/dist/components/data-table/sorting/sortTable-utils.d.ts +10 -0
  126. package/dist/components/data-table/sorting/sortTable-utils.d.ts.map +1 -1
  127. package/dist/components/data-table/sorting/useSortableTable.d.ts +10 -4
  128. package/dist/components/data-table/sorting/useSortableTable.d.ts.map +1 -1
  129. package/dist/components/data-table/state/datatable-state.d.ts +14 -7
  130. package/dist/components/data-table/state/datatable-state.d.ts.map +1 -1
  131. package/dist/components/data-table/stories/data-table-story-meta.d.ts +7 -0
  132. package/dist/components/data-table/stories/data-table-story-meta.d.ts.map +1 -0
  133. package/dist/components/data-table/useDataTableImperativeHandle.d.ts +23 -0
  134. package/dist/components/data-table/useDataTableImperativeHandle.d.ts.map +1 -0
  135. package/dist/components/data-table/useDataTableShortcuts.d.ts +19 -0
  136. package/dist/components/data-table/useDataTableShortcuts.d.ts.map +1 -0
  137. package/dist/components/echarts-graph/builders/echarts-graph-builders.d.ts.map +1 -1
  138. package/dist/components/echarts-graph/data/echarts-graph-data.d.ts +1 -1
  139. package/dist/components/echarts-graph/data/echarts-graph-data.d.ts.map +1 -1
  140. package/dist/components/echarts-graph/data/echarts-graph-tree.d.ts +12 -0
  141. package/dist/components/echarts-graph/data/echarts-graph-tree.d.ts.map +1 -0
  142. package/dist/components/echarts-graph/data/echarts-graph-tree.test.d.ts +2 -0
  143. package/dist/components/echarts-graph/data/echarts-graph-tree.test.d.ts.map +1 -0
  144. package/dist/components/echarts-graph/echarts-graph-canvas.d.ts +34 -0
  145. package/dist/components/echarts-graph/echarts-graph-canvas.d.ts.map +1 -0
  146. package/dist/components/echarts-graph/echarts-graph-from-table.d.ts +13 -0
  147. package/dist/components/echarts-graph/echarts-graph-from-table.d.ts.map +1 -0
  148. package/dist/components/echarts-graph/echarts-graph-from-tree.d.ts +12 -0
  149. package/dist/components/echarts-graph/echarts-graph-from-tree.d.ts.map +1 -0
  150. package/dist/components/echarts-graph/echarts-graph-hooks.d.ts +16 -0
  151. package/dist/components/echarts-graph/echarts-graph-hooks.d.ts.map +1 -0
  152. package/dist/components/echarts-graph/echarts-graph-types.d.ts +24 -5
  153. package/dist/components/echarts-graph/echarts-graph-types.d.ts.map +1 -1
  154. package/dist/components/echarts-graph/echarts-graph.d.ts +10 -7
  155. package/dist/components/echarts-graph/echarts-graph.d.ts.map +1 -1
  156. package/dist/components/input-panel/input-panel-types.d.ts +7 -1
  157. package/dist/components/input-panel/input-panel-types.d.ts.map +1 -1
  158. package/dist/components/input-panel/input-panel.d.ts.map +1 -1
  159. package/dist/components/json-form/document-adapter.test.d.ts +2 -0
  160. package/dist/components/json-form/document-adapter.test.d.ts.map +1 -0
  161. package/dist/components/json-form/expression-evaluator.test.d.ts +2 -0
  162. package/dist/components/json-form/expression-evaluator.test.d.ts.map +1 -0
  163. package/dist/components/json-form/model/document-adapter.d.ts +54 -0
  164. package/dist/components/json-form/model/document-adapter.d.ts.map +1 -0
  165. package/dist/components/json-form/model/json-form-ajv.d.ts +12 -0
  166. package/dist/components/json-form/model/json-form-ajv.d.ts.map +1 -0
  167. package/dist/components/json-form/model/json-pointer.d.ts +20 -0
  168. package/dist/components/json-form/model/json-pointer.d.ts.map +1 -0
  169. package/dist/components/json-form/model/native-json-types.d.ts +5 -0
  170. package/dist/components/json-form/model/native-json-types.d.ts.map +1 -0
  171. package/dist/components/json-form/model/shape-event-support.d.ts +10 -0
  172. package/dist/components/json-form/model/shape-event-support.d.ts.map +1 -0
  173. package/dist/components/json-form/rule-controller.test.d.ts +2 -0
  174. package/dist/components/json-form/rule-controller.test.d.ts.map +1 -0
  175. package/dist/components/json-form/rules/expression-evaluator.d.ts +58 -0
  176. package/dist/components/json-form/rules/expression-evaluator.d.ts.map +1 -0
  177. package/dist/components/json-form/rules/rule-controller.d.ts +50 -0
  178. package/dist/components/json-form/rules/rule-controller.d.ts.map +1 -0
  179. package/dist/components/pdf/assets/pdf-fixtures.d.ts +6 -0
  180. package/dist/components/pdf/assets/pdf-fixtures.d.ts.map +1 -0
  181. package/dist/components/pdf/pdf-types.d.ts +17 -2
  182. package/dist/components/pdf/pdf-types.d.ts.map +1 -1
  183. package/dist/components/pdf/pdf-utils.d.ts +30 -1
  184. package/dist/components/pdf/pdf-utils.d.ts.map +1 -1
  185. package/dist/components/pdf/pdf.d.ts.map +1 -1
  186. package/dist/components/tab-bar/tab-bar.d.ts.map +1 -1
  187. package/dist/components/toolbar/toolbar-nodes/toolbar-plain-node.d.ts.map +1 -1
  188. package/dist/context/test-utils.d.ts.map +1 -1
  189. package/dist/{cose-bilkent-JH36ORCC-Qs_Z6zBZ.js → cose-bilkent-JH36ORCC-DYLyHByQ.js} +77 -89
  190. package/dist/cynefin-EF2NZ3EQ-DZ1CSrfW.js +2 -0
  191. package/dist/{cynefinDiagram-5FMLGOSQ-3SByb22K.js → cynefinDiagram-WF24UDRP-bU_4r-FZ.js} +64 -64
  192. package/dist/{cytoscape.esm-C5TvPYYm.js → cytoscape.esm-BvXLQ91B.js} +412 -513
  193. package/dist/dagre-NK4GIZVX-B72HOuil.js +2352 -0
  194. package/dist/{diagram-VX7I27RA-DX39g4aO.js → diagram-CBK3MWTC-B-q-tUxd.js} +80 -80
  195. package/dist/diagram-I5XIIV2D-CMzniFEf.js +134 -0
  196. package/dist/{diagram-S7CK7UJ4-IhyDbKSO.js → diagram-ODIL2UCW-CrlDp0MP.js} +46 -54
  197. package/dist/{diagram-VSXAHHWV-CdX3XaQX.js → diagram-PFBEJUXE-hnrdzEe4.js} +136 -121
  198. package/dist/{diagram-UQ7AKVKN-CPDZJAkA.js → diagram-RJA3I4VV-DZW7CxE5.js} +43 -43
  199. package/dist/diagram-TYUNFSNR-cRJNHRy2.js +5069 -0
  200. package/dist/{dist-CsrMlyO_.js → dist-Bj7IMbKd.js} +1 -1
  201. package/dist/{ebnfDiagram-PWID7BFC-D0cmYo-k.js → ebnfDiagram-V4P3TTPT-Bm7KtfLA.js} +17 -17
  202. package/dist/echarts-C7ehbnCk.js +15485 -0
  203. package/dist/elk-QONTBCTQ-gWOTRRj4.js +47505 -0
  204. package/dist/{erDiagram-RLTQ6QDP-C-nlwQZa.js → erDiagram-KYQIGQAA-WZEbQwWz.js} +150 -146
  205. package/dist/eventmodeling-K75KTNOO-CEn7YBG4.js +2 -0
  206. package/dist/flowDiagram-IUGLLWBU-CRV2Bl2C.js +16 -0
  207. package/dist/functional-components/filter-group/filter-builder-operators.d.ts +15 -0
  208. package/dist/functional-components/filter-group/filter-builder-operators.d.ts.map +1 -0
  209. package/dist/functional-components/filter-group/filter-builder.d.ts +15 -1
  210. package/dist/functional-components/filter-group/filter-builder.d.ts.map +1 -1
  211. package/dist/functional-components/group-bar/group-bar-types.d.ts +16 -0
  212. package/dist/functional-components/group-bar/group-bar-types.d.ts.map +1 -1
  213. package/dist/functional-components/group-bar/group-bar.d.ts.map +1 -1
  214. package/dist/functional-components/helper-text/helper-text-types.d.ts +1 -1
  215. package/dist/functional-components/row/row-types.d.ts +27 -1
  216. package/dist/functional-components/row/row-types.d.ts.map +1 -1
  217. package/dist/functional-components/row/row.d.ts.map +1 -1
  218. package/dist/functional-components/tree-picker/tree-picker-types.d.ts +5 -0
  219. package/dist/functional-components/tree-picker/tree-picker-types.d.ts.map +1 -1
  220. package/dist/{ganttDiagram-EL5Y4UJY-qQkBgEV6.js → ganttDiagram-R7GPNTJY-DFRGfQMr.js} +314 -310
  221. package/dist/gitGraph-VSP46ZUC-BSTikFaE.js +2 -0
  222. package/dist/{gitGraphDiagram-WWUBYQGX-D8cZBZXB.js → gitGraphDiagram-PDYL7XHY-nvoob8Ca.js} +250 -250
  223. package/dist/hooks/useVirtualListScroll.d.ts +7 -2
  224. package/dist/hooks/useVirtualListScroll.d.ts.map +1 -1
  225. package/dist/index.d.ts +2 -5
  226. package/dist/index.d.ts.map +1 -1
  227. package/dist/info-OHQRW6UA-BGb3N889.js +2 -0
  228. package/dist/infoDiagram-MVDRKAX5-BqO_morw.js +20 -0
  229. package/dist/installCanvasRenderer-CgRxxRBg.js +29799 -0
  230. package/dist/{ishikawaDiagram-5VMMS53U-B0RvuZyG.js → ishikawaDiagram-HPEHV2GE-BE3amLYE.js} +27 -29
  231. package/dist/{journeyDiagram-3NMN7TZE-Dh8_Vc4e.js → journeyDiagram-BOSHW7O7-DE8ndsCi.js} +111 -111
  232. package/dist/{kanban-definition-UXKFOSKX-C99A4PsR.js → kanban-definition-FNSA4HC5-D72kc4EN.js} +135 -135
  233. package/dist/{katex-CT2p8LXT.js → katex-CDhNh-ZQ.js} +919 -1040
  234. package/dist/ketchup2.css +1 -1
  235. package/dist/ketchup2.es.js +25049 -70453
  236. package/dist/{line-CkNoVxEr.js → line-ltPB6XbC.js} +1 -1
  237. package/dist/{linear-CXc5xaa6.js → linear-i6_MPSGL.js} +2 -3
  238. package/dist/locale/en/translation.json.d.ts +36 -5
  239. package/dist/locale/it/translation.json.d.ts +36 -5
  240. package/dist/{mermaid-parser.core-BwVmI_Rq.js → mermaid-parser.core-zUi7tSl-.js} +166 -172
  241. package/dist/{mindmap-definition-YA3MSWOX-D0ULN6M8.js → mindmap-definition-6OY57UG3-hH6Avsg4.js} +148 -145
  242. package/dist/packet-JDAUHWVQ-CKZoNg5j.js +2 -0
  243. package/dist/{pegDiagram-XKGWAZYB-BThnA3Uk.js → pegDiagram-ECIUJNBX-D3xLhrRh.js} +19 -19
  244. package/dist/pie-XZMESJXO-BnbWY8rE.js +2 -0
  245. package/dist/{pieDiagram-E7YTZNPT-CJ4LPitY.js → pieDiagram-GNMPY74T-Bd_UXypi.js} +39 -39
  246. package/dist/{quadrantDiagram-AXDQQJYC-nEwzg95_.js → quadrantDiagram-D57K4MC3-BAwweqT8.js} +149 -149
  247. package/dist/radar-ABXABTNO-D5CEmFBx.js +2 -0
  248. package/dist/railroad-I3PHUGI6-CxMiYaMH.js +2 -0
  249. package/dist/railroad-abnf-LNEFI6M7-C69KxGa-.js +2 -0
  250. package/dist/railroad-ebnf-DWYD2UWJ-D5Xd566k.js +2 -0
  251. package/dist/railroad-peg-JR7BVNR7-CD0OiqcS.js +2 -0
  252. package/dist/{railroadDiagram-O6MQD6OU-D_9gvx5m.js → railroadDiagram-Y72NRBL7-CPUbPgYX.js} +14 -14
  253. package/dist/{requirementDiagram-BXWQKSXE-BU3gTMjQ.js → requirementDiagram-EQYSW5RA-BXstYS3w.js} +97 -93
  254. package/dist/rolldown-runtime-5HNE8Q1r.js +23 -0
  255. package/dist/{sankeyDiagram-P5KCCOFB-BmNN-6y3.js → sankeyDiagram-SY24JHO5-Du-toJmg.js} +64 -64
  256. package/dist/{sequenceDiagram-WJ2MYXX4-QYJxbuz_.js → sequenceDiagram-BLEHNHQU-BNNnerZ-.js} +953 -868
  257. package/dist/{sizeCapture-INFHLROL-CHXIsPO_.js → sizeCapture-INFHLROL-DujrpAYz.js} +1 -1
  258. package/dist/{src-DQoflmwT.js → src-CY9Rz0Sf.js} +545 -566
  259. package/dist/{chunk-IMKFNOWR-yyUcHorm.js → stateDiagram-v2-A6IESKWZ-CfjPf8h7.js} +364 -267
  260. package/dist/{swimlanes-42K2YHIH-DkMzBkx7.js → swimlanes-B3ENRKFQ-Dumwq89C.js} +1356 -1590
  261. package/dist/swimlanesDiagram-AYQRV4AK-Boz_Azx7.js +28 -0
  262. package/dist/{timeline-definition-24CTP7MA-AvgVPsM_.js → timeline-definition-JXYKGLGB-ClzmRQCu.js} +354 -350
  263. package/dist/treeView-D4JQ5SDB-C3ue8DID.js +2 -0
  264. package/dist/treemap-SAJKECNS-BWis-Wpv.js +2 -0
  265. package/dist/types/data-structures.d.ts +11 -0
  266. package/dist/types/data-structures.d.ts.map +1 -1
  267. package/dist/types/global.d.ts +7 -2
  268. package/dist/types/global.d.ts.map +1 -1
  269. package/dist/types/translation.d.ts +35 -5
  270. package/dist/types/translation.d.ts.map +1 -1
  271. package/dist/usecaseDiagram-WPOLBNNX-ruZhXlYQ.js +7175 -0
  272. package/dist/utils/object-styles.d.ts +12 -0
  273. package/dist/utils/object-styles.d.ts.map +1 -0
  274. package/dist/utils/object-styles.test.d.ts +2 -0
  275. package/dist/utils/object-styles.test.d.ts.map +1 -0
  276. package/dist/utils/totals/totals-registry.d.ts +17 -0
  277. package/dist/utils/totals/totals-registry.d.ts.map +1 -0
  278. package/dist/utils/totals/totals-utils.d.ts +70 -7
  279. package/dist/utils/totals/totals-utils.d.ts.map +1 -1
  280. package/dist/utils/wrapper-types/list.d.ts.map +1 -1
  281. package/dist/{vennDiagram-4TSXK5OY-DBz_EnfL.js → vennDiagram-Q3Y3IDCW-L9GmqfCz.js} +118 -118
  282. package/dist/wardley-7MLQ67FV-DC0ayJCO.js +2 -0
  283. package/dist/{wardleyDiagram-VM6X3IG4-D4U_E7xl.js → wardleyDiagram-IVAIDKWA-Dz5K-UqN.js} +126 -126
  284. package/dist/{xychartDiagram-S5SC5T6Z-aHqeFP13.js → xychartDiagram-4URNHDU4-C2xwRx5F.js} +141 -137
  285. package/package.json +5 -3
  286. package/dist/architecture-7GRP2DOG-BsytjMto.js +0 -3
  287. package/dist/channel-BD0NTdCR.js +0 -5
  288. package/dist/chunk-2E4U76K2-CMCSmJ5_.js +0 -348
  289. package/dist/chunk-4HAMMTFA-DBtV-sHy.js +0 -4188
  290. package/dist/chunk-CLGD4ZFX-DdntjE3C.js +0 -14
  291. package/dist/chunk-FOHPRMQF-LRqOLsSw.js +0 -21456
  292. package/dist/chunk-L3NEJ4N5-Dd1FmxFn.js +0 -245
  293. package/dist/chunk-POPQ4Y6H-YFNrkrJW.js +0 -26
  294. package/dist/chunk-TLUHSLCS-Drk6ApJR.js +0 -59
  295. package/dist/chunk-XXDRQBXY-C1ZEFXGu.js +0 -9
  296. package/dist/classDiagram-ZZMXUADV-CaI6YU6r.js +0 -30
  297. package/dist/classDiagram-v2-VYDZK3BY-ClCVTcLo.js +0 -30
  298. package/dist/components/echart-graph-from-tree/echart-graph-from-tree-types.d.ts +0 -14
  299. package/dist/components/echart-graph-from-tree/echart-graph-from-tree-types.d.ts.map +0 -1
  300. package/dist/components/echart-graph-from-tree/echart-graph-from-tree.d.ts +0 -11
  301. package/dist/components/echart-graph-from-tree/echart-graph-from-tree.d.ts.map +0 -1
  302. package/dist/cynefin-OW5HDTMX-BJXlKro0.js +0 -3
  303. package/dist/dagre-D5csT9sx.js +0 -1934
  304. package/dist/dagre-GXQ25YYZ--Qf92cTs.js +0 -425
  305. package/dist/diagram-Z3DM3KII-DECfAI1l.js +0 -134
  306. package/dist/eventmodeling-NTZA5JFV-Cj-VH7yh.js +0 -3
  307. package/dist/flowDiagram-HODETNUW-LRjksS-j.js +0 -17
  308. package/dist/gitGraph-4MIJSDKK-C9JGDovl.js +0 -3
  309. package/dist/info-A6RAGUB7-CmZJKEaW.js +0 -3
  310. package/dist/infoDiagram-27XIBGKW-DXO97_PJ.js +0 -20
  311. package/dist/packet-AYTQ26CC-B3tgRshR.js +0 -3
  312. package/dist/pie-WAS4IAKB-BRiI8kbI.js +0 -3
  313. package/dist/radar-RG4KPBEZ-ASOMQXFw.js +0 -3
  314. package/dist/railroad-74A4TZTK-oS840SLr.js +0 -3
  315. package/dist/railroad-abnf-HS5TGJTU-nnQAkZY2.js +0 -3
  316. package/dist/railroad-ebnf-LZEXJU2U-DBQIOba3.js +0 -3
  317. package/dist/railroad-peg-WCYAUIDC-fBPN2TVb.js +0 -3
  318. package/dist/stateDiagram-D77RDMKH-0Jasv70t.js +0 -220
  319. package/dist/stateDiagram-v2-MP3YSRHH-JMSv8IGL.js +0 -30
  320. package/dist/swimlanesDiagram-VR7AAH4N-DtnUyaK5.js +0 -31
  321. package/dist/treeView-Q6P3EWNA-BmvB2b-_.js +0 -3
  322. package/dist/treemap-WGGIJYW6-Cjjk75wA.js +0 -3
  323. package/dist/wardley-WFR3VGLG-BamDiE0x.js +0 -3
@@ -1,17 +1,25 @@
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-D9v_2L4Z.js";
3
- import { n as f } from "./chunk-Y2CYZVJY-i11wjrBe.js";
4
- import { g as p, s as m } from "./chunk-75Z2AOVW-CLjRECiG.js";
5
- import { r as h } from "./chunk-TLUHSLCS-Drk6ApJR.js";
6
- import { t as g } from "./chunk-F27PBJKO-DPhiW07t.js";
7
- import { t as _ } from "./chunk-XXDRQBXY-C1ZEFXGu.js";
8
- import { t as v } from "./chunk-POPQ4Y6H-YFNrkrJW.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) {
1
+ import { C as e, H as t, U as n, _ as r, a as i, b as a, q as o, s, st as c, v as l } from "./chunk-DSNLSHJZ-B1A8wsiA.js";
2
+ import { n as u } from "./chunk-Y2CYZVJY-i11wjrBe.js";
3
+ import { m as d, p as f } from "./src-CY9Rz0Sf.js";
4
+ import { _ as p, s as m } from "./chunk-7S6XSTFO-CN6S2H1-.js";
5
+ import "./chunk-UHW7PFBP-CoHGQVjo.js";
6
+ import "./chunk-YZO67HFG-Bcmpw0dX.js";
7
+ import "./chunk-AQDTSKZB-DuUha9al.js";
8
+ import { a as h, i as g, o as _, r as v } from "./chunk-J5ZVWO5B-CYzz6Pq8.js";
9
+ import "./chunk-HAGFOTED-IzyIoLzD.js";
10
+ import "./chunk-ZAUX2LTX-Bu7BRVL6.js";
11
+ import "./chunk-HNE4Q36P-7zVKLE_b.js";
12
+ import "./chunk-WQQL4CDK-BJE6isq-.js";
13
+ import { r as y, t as b } from "./chunk-EJLWFMJV-Cu6XnLfk.js";
14
+ import { t as x } from "./chunk-55XCU76K-B1HtPImz.js";
15
+ import { t as S } from "./chunk-XXDRQBXY-CU-dbs05.js";
16
+ import { t as C } from "./chunk-VQ5W62QI-BSDHmyws.js";
17
+ //#region node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-A6IESKWZ.mjs
18
+ var w = (function() {
19
+ var e = /* @__PURE__ */ u(function(e, t, n, r) {
12
20
  for (n ||= {}, r = e.length; r--; n[e[r]] = t);
13
21
  return n;
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 = [
22
+ }, "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], 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 = [
15
23
  1,
16
24
  4,
17
25
  5,
@@ -96,7 +104,7 @@ var y = (function() {
96
104
  54,
97
105
  57
98
106
  ], N = {
99
- trace: /* @__PURE__ */ f(function() {}, "trace"),
107
+ trace: /* @__PURE__ */ u(function() {}, "trace"),
100
108
  yy: {},
101
109
  symbols_: {
102
110
  error: 2,
@@ -263,7 +271,7 @@ var y = (function() {
263
271
  [30, 1],
264
272
  [30, 1]
265
273
  ],
266
- performAction: /* @__PURE__ */ f(function(e, t, n, r, i, a, o) {
274
+ performAction: /* @__PURE__ */ u(function(e, t, n, r, i, a, o) {
267
275
  var s = a.length - 1;
268
276
  switch (i) {
269
277
  case 3: return r.setRootDoc(a[s]), a[s];
@@ -530,8 +538,8 @@ var y = (function() {
530
538
  16: s,
531
539
  17: c,
532
540
  19: l,
533
- 22: u,
534
- 24: d,
541
+ 22: d,
542
+ 24: f,
535
543
  25: p,
536
544
  26: m,
537
545
  27: h,
@@ -561,8 +569,8 @@ var y = (function() {
561
569
  16: s,
562
570
  17: c,
563
571
  19: l,
564
- 22: u,
565
- 24: d,
572
+ 22: d,
573
+ 24: f,
566
574
  25: p,
567
575
  26: m,
568
576
  27: h,
@@ -611,7 +619,7 @@ var y = (function() {
611
619
  e(A, [2, 31]),
612
620
  {
613
621
  13: 51,
614
- 24: d,
622
+ 24: f,
615
623
  57: k
616
624
  },
617
625
  {
@@ -630,7 +638,7 @@ var y = (function() {
630
638
  e(A, [2, 13]),
631
639
  {
632
640
  13: 58,
633
- 24: d,
641
+ 24: f,
634
642
  57: k
635
643
  },
636
644
  e(A, [2, 17]),
@@ -666,8 +674,8 @@ var y = (function() {
666
674
  17: c,
667
675
  19: l,
668
676
  21: [1, 72],
669
- 22: u,
670
- 24: d,
677
+ 22: d,
678
+ 24: f,
671
679
  25: p,
672
680
  26: m,
673
681
  27: h,
@@ -718,8 +726,8 @@ var y = (function() {
718
726
  17: c,
719
727
  19: l,
720
728
  21: [1, 81],
721
- 22: u,
722
- 24: d,
729
+ 22: d,
730
+ 24: f,
723
731
  25: p,
724
732
  26: m,
725
733
  27: h,
@@ -749,15 +757,15 @@ var y = (function() {
749
757
  47: [2, 48],
750
758
  48: [2, 49]
751
759
  },
752
- parseError: /* @__PURE__ */ f(function(e, t) {
760
+ parseError: /* @__PURE__ */ u(function(e, t) {
753
761
  if (t.recoverable) this.trace(e);
754
762
  else {
755
763
  var n = Error(e);
756
764
  throw n.hash = t, n;
757
765
  }
758
766
  }, "parseError"),
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: {} };
767
+ parse: /* @__PURE__ */ u(function(e) {
768
+ var t = this, n = [0], r = [], i = [null], a = [], o = this.table, s = "", c = 0, l = 0, d = 0, f = 2, p = 1, m = a.slice.call(arguments, 1), h = Object.create(this.lexer), g = { yy: {} };
761
769
  for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
762
770
  h.setInput(e, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
763
771
  var v = h.yylloc;
@@ -767,16 +775,16 @@ var y = (function() {
767
775
  function b(e) {
768
776
  n.length -= 2 * e, i.length -= e, a.length -= e;
769
777
  }
770
- f(b, "popStack");
778
+ u(b, "popStack");
771
779
  function x() {
772
780
  var e = r.pop() || h.lex() || p;
773
781
  return typeof e != "number" && (e instanceof Array && (r = e, e = r.pop()), e = t.symbols_[e] || e), e;
774
782
  }
775
- f(x, "lex");
783
+ u(x, "lex");
776
784
  for (var S, C, w, T, E, D = {}, O, k, A, j;;) {
777
785
  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
786
  var M = "";
779
- for (O in j = [], o[w]) this.terminals_[O] && O > d && j.push("'" + this.terminals_[O] + "'");
787
+ for (O in j = [], o[w]) this.terminals_[O] && O > f && j.push("'" + this.terminals_[O] + "'");
780
788
  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
789
  text: h.match,
782
790
  token: this.terminals_[S] || S,
@@ -788,7 +796,7 @@ var y = (function() {
788
796
  if (T[0] instanceof Array && T.length > 1) throw Error("Parse Error: multiple actions possible at state: " + w + ", token: " + S);
789
797
  switch (T[0]) {
790
798
  case 1:
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--);
799
+ 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, d > 0 && d--);
792
800
  break;
793
801
  case 2:
794
802
  if (k = this.productions_[T[1]][1], D.$ = i[i.length - k], D._$ = {
@@ -816,11 +824,11 @@ var y = (function() {
816
824
  N.lexer = /* @__PURE__ */ (function() {
817
825
  return {
818
826
  EOF: 1,
819
- parseError: /* @__PURE__ */ f(function(e, t) {
827
+ parseError: /* @__PURE__ */ u(function(e, t) {
820
828
  if (this.yy.parser) this.yy.parser.parseError(e, t);
821
829
  else throw Error(e);
822
830
  }, "parseError"),
823
- setInput: /* @__PURE__ */ f(function(e, t) {
831
+ setInput: /* @__PURE__ */ u(function(e, t) {
824
832
  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
833
  first_line: 1,
826
834
  first_column: 0,
@@ -828,11 +836,11 @@ var y = (function() {
828
836
  last_column: 0
829
837
  }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
830
838
  }, "setInput"),
831
- input: /* @__PURE__ */ f(function() {
839
+ input: /* @__PURE__ */ u(function() {
832
840
  var e = this._input[0];
833
841
  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
842
  }, "input"),
835
- unput: /* @__PURE__ */ f(function(e) {
843
+ unput: /* @__PURE__ */ u(function(e) {
836
844
  var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
837
845
  this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
838
846
  var r = this.match.split(/(?:\r\n?|\n)/g);
@@ -845,10 +853,10 @@ var y = (function() {
845
853
  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
854
  }, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
847
855
  }, "unput"),
848
- more: /* @__PURE__ */ f(function() {
856
+ more: /* @__PURE__ */ u(function() {
849
857
  return this._more = !0, this;
850
858
  }, "more"),
851
- reject: /* @__PURE__ */ f(function() {
859
+ reject: /* @__PURE__ */ u(function() {
852
860
  if (this.options.backtrack_lexer) this._backtrack = !0;
853
861
  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
862
  text: "",
@@ -857,22 +865,22 @@ var y = (function() {
857
865
  });
858
866
  return this;
859
867
  }, "reject"),
860
- less: /* @__PURE__ */ f(function(e) {
868
+ less: /* @__PURE__ */ u(function(e) {
861
869
  this.unput(this.match.slice(e));
862
870
  }, "less"),
863
- pastInput: /* @__PURE__ */ f(function() {
871
+ pastInput: /* @__PURE__ */ u(function() {
864
872
  var e = this.matched.substr(0, this.matched.length - this.match.length);
865
873
  return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
866
874
  }, "pastInput"),
867
- upcomingInput: /* @__PURE__ */ f(function() {
875
+ upcomingInput: /* @__PURE__ */ u(function() {
868
876
  var e = this.match;
869
877
  return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
870
878
  }, "upcomingInput"),
871
- showPosition: /* @__PURE__ */ f(function() {
879
+ showPosition: /* @__PURE__ */ u(function() {
872
880
  var e = this.pastInput(), t = Array(e.length + 1).join("-");
873
881
  return e + this.upcomingInput() + "\n" + t + "^";
874
882
  }, "showPosition"),
875
- test_match: /* @__PURE__ */ f(function(e, t) {
883
+ test_match: /* @__PURE__ */ u(function(e, t) {
876
884
  var n, r, i;
877
885
  if (this.options.backtrack_lexer && (i = {
878
886
  yylineno: this.yylineno,
@@ -905,7 +913,7 @@ var y = (function() {
905
913
  }
906
914
  return !1;
907
915
  }, "test_match"),
908
- next: /* @__PURE__ */ f(function() {
916
+ next: /* @__PURE__ */ u(function() {
909
917
  if (this.done) return this.EOF;
910
918
  this._input || (this.done = !0);
911
919
  var e, t, n, r;
@@ -927,29 +935,29 @@ var y = (function() {
927
935
  line: this.yylineno
928
936
  });
929
937
  }, "next"),
930
- lex: /* @__PURE__ */ f(function() {
938
+ lex: /* @__PURE__ */ u(function() {
931
939
  return this.next() || this.lex();
932
940
  }, "lex"),
933
- begin: /* @__PURE__ */ f(function(e) {
941
+ begin: /* @__PURE__ */ u(function(e) {
934
942
  this.conditionStack.push(e);
935
943
  }, "begin"),
936
- popState: /* @__PURE__ */ f(function() {
944
+ popState: /* @__PURE__ */ u(function() {
937
945
  return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
938
946
  }, "popState"),
939
- _currentRules: /* @__PURE__ */ f(function() {
947
+ _currentRules: /* @__PURE__ */ u(function() {
940
948
  return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
941
949
  }, "_currentRules"),
942
- topState: /* @__PURE__ */ f(function(e) {
950
+ topState: /* @__PURE__ */ u(function(e) {
943
951
  return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
944
952
  }, "topState"),
945
- pushState: /* @__PURE__ */ f(function(e) {
953
+ pushState: /* @__PURE__ */ u(function(e) {
946
954
  this.begin(e);
947
955
  }, "pushState"),
948
- stateStackSize: /* @__PURE__ */ f(function() {
956
+ stateStackSize: /* @__PURE__ */ u(function() {
949
957
  return this.conditionStack.length;
950
958
  }, "stateStackSize"),
951
959
  options: { "case-insensitive": !0 },
952
- performAction: /* @__PURE__ */ f(function(e, t, n, r) {
960
+ performAction: /* @__PURE__ */ u(function(e, t, n, r) {
953
961
  function i() {
954
962
  let n = t.yytext.indexOf("%%");
955
963
  if (n === 0) return !1;
@@ -959,7 +967,7 @@ var y = (function() {
959
967
  }
960
968
  return !0;
961
969
  }
962
- switch (f(i, "processId"), n) {
970
+ switch (u(i, "processId"), n) {
963
971
  case 0: return 38;
964
972
  case 1: return 40;
965
973
  case 2: return 39;
@@ -1345,99 +1353,58 @@ var y = (function() {
1345
1353
  function P() {
1346
1354
  this.yy = {};
1347
1355
  }
1348
- return f(P, "Parser"), P.prototype = N, N.Parser = P, new P();
1356
+ return u(P, "Parser"), P.prototype = N, N.Parser = P, new P();
1349
1357
  })();
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) => {
1352
- if (!e.doc) return t;
1353
- let n = t;
1354
- for (let t of e.doc) t.stmt === "dir" && (n = t.value);
1355
- return n;
1356
- }, "getDir"), me = {
1357
- getClasses: /* @__PURE__ */ f(function(e, t) {
1358
- return t.db.getClasses();
1359
- }, "getClasses"),
1360
- draw: /* @__PURE__ */ f(async function(t, n, r, i) {
1361
- e.info("REF0:"), e.info("Drawing state diagram (v2)", n);
1362
- let { securityLevel: a, state: o, layout: s } = u();
1363
- i.db.extract(i.db.getRootDocV2());
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);
1366
- try {
1367
- (typeof i.db.getLinks == "function" ? i.db.getLinks() : /* @__PURE__ */ new Map()).forEach((t, n) => {
1368
- let r = typeof n == "string" ? n : typeof n?.id == "string" ? n.id : "", i = c.nodes.find((e) => e.id === r);
1369
- if (!r) {
1370
- e.warn("⚠️ Invalid or missing stateId from key:", JSON.stringify(n));
1371
- return;
1372
- }
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) {
1378
- e.warn("⚠️ Could not find node matching text:", r);
1379
- return;
1380
- }
1381
- let s = o.parentNode;
1382
- if (!s) {
1383
- e.warn("⚠️ Node has no parent, cannot wrap:", r);
1384
- return;
1385
- }
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) {
1388
- let e = t.tooltip.replace(/^"+|"+$/g, "");
1389
- u.setAttribute("title", e), o.setAttribute("title", e);
1390
- }
1391
- s.replaceChild(u, o), u.appendChild(o), e.info("🔗 Wrapped node in <a> tag for:", r, t.url);
1392
- });
1393
- } catch (t) {
1394
- e.error("❌ Error injecting clickable links:", t);
1395
- }
1396
- p.insertTitle(l, "statediagramTitleText", o?.titleTopMargin ?? 25, i.db.getDiagramTitle()), v(l, 8, z, o?.useMaxWidth ?? !0);
1397
- }, "draw"),
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}`;
1358
+ w.parser = w;
1359
+ var T = w, E = "TB", D = "TB", O = "dir", k = "state", A = "root", j = "relation", M = "classDef", N = "style", P = "applyClass", F = "default", ee = "divider", te = "fill:none", ne = "fill: #333", re = "c", ie = "markdown", ae = "normal", I = "rect", L = "rectWithTitle", oe = "stateStart", se = "stateEnd", R = "divider", ce = "roundedWithTitle", le = "note", ue = "noteGroup", z = "statediagram", de = `${z}-state`, B = "transition", fe = "note", pe = `${B} note-edge`, me = `${z}-${fe}`, he = `${z}-cluster`, ge = `${z}-cluster-alt`, V = "parent", H = "note", _e = "state", U = "----", ve = `${U}${H}`, ye = `${U}${V}`, W = /* @__PURE__ */ new Map(), G = 0, be = 0, K = /* @__PURE__ */ new Map(), xe = /* @__PURE__ */ u((e, t, n, r) => {
1360
+ if (e === R && n?.id !== void 0 && K.has(n.id)) {
1361
+ let e = K.get(n.id);
1362
+ return K.set(t, e), e;
1363
+ }
1364
+ let i = be++, a = r ? void 0 : i;
1365
+ return K.set(t, a), a;
1366
+ }, "colorSlotFor");
1367
+ function q(e = "", t = 0, n = "", r = U) {
1368
+ return `${_e}-${e}${n !== null && n.length > 0 ? `${r}${n}` : ""}-${t}`;
1402
1369
  }
1403
- f(J, "stateDomId");
1404
- var he = /* @__PURE__ */ f((t, n, r, i, a, o, c, l) => {
1405
- e.trace("items", n), n.forEach((e) => {
1406
- switch (e.stmt) {
1407
- case w:
1408
- Z(t, e, r, i, a, o, c, l);
1370
+ u(q, "stateDomId");
1371
+ var Se = /* @__PURE__ */ u((e, t, n, r, i, o, c, l) => {
1372
+ d.trace("items", t), t.forEach((t) => {
1373
+ switch (t.stmt) {
1374
+ case k:
1375
+ X(e, t, n, r, i, o, c, l);
1409
1376
  break;
1410
- case A:
1411
- Z(t, e, r, i, a, o, c, l);
1377
+ case F:
1378
+ X(e, t, n, r, i, o, c, l);
1412
1379
  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,
1380
+ case j: {
1381
+ X(e, t.state1, n, r, i, o, c, l), X(e, t.state2, n, r, i, o, c, l);
1382
+ let u = c === "neo", d = {
1383
+ id: "edge" + G,
1384
+ start: t.state1.id,
1385
+ end: t.state2.id,
1419
1386
  arrowhead: "normal",
1420
- arrowTypeEnd: n ? "arrow_barb_neo" : "arrow_barb",
1421
- style: M,
1387
+ arrowTypeEnd: u ? "arrow_barb_neo" : "arrow_barb",
1388
+ style: te,
1422
1389
  labelStyle: "",
1423
- label: s.sanitizeText(e.description ?? "", u()),
1424
- arrowheadStyle: N,
1425
- labelpos: P,
1426
- labelType: ee,
1427
- thickness: F,
1390
+ label: s.sanitizeText(t.description ?? "", a()),
1391
+ arrowheadStyle: ne,
1392
+ labelpos: re,
1393
+ labelType: ie,
1394
+ thickness: ae,
1428
1395
  classes: B,
1429
1396
  look: c
1430
1397
  };
1431
- a.push(d), q++;
1398
+ i.push(d), G++;
1432
1399
  }
1433
1400
  }
1434
1401
  });
1435
- }, "setupDoc"), ge = /* @__PURE__ */ f((e, t = S) => {
1402
+ }, "setupDoc"), Ce = /* @__PURE__ */ u((e, t = D) => {
1436
1403
  let n = t;
1437
1404
  if (e.doc) for (let t of e.doc) t.stmt === "dir" && (n = t.value);
1438
1405
  return n;
1439
1406
  }, "getDir");
1440
- function Y(e, t, n) {
1407
+ function J(e, t, n) {
1441
1408
  if (!t.id || t.id === "</join></fork>" || t.id === "</choice>") return;
1442
1409
  t.cssClasses && (Array.isArray(t.cssCompiledStyles) || (t.cssCompiledStyles = []), t.cssClasses.split(" ").forEach((e) => {
1443
1410
  let r = n.get(e);
@@ -1446,99 +1413,149 @@ function Y(e, t, n) {
1446
1413
  let r = e.find((e) => e.id === t.id);
1447
1414
  r ? Object.assign(r, t) : e.push(t);
1448
1415
  }
1449
- f(Y, "insertOrUpdateNode");
1450
- function X(e) {
1416
+ u(J, "insertOrUpdateNode");
1417
+ function we(e) {
1451
1418
  return e?.classes?.join(" ") ?? "";
1452
1419
  }
1453
- f(X, "getClassesFromDbInfo");
1454
- function _e(e) {
1420
+ u(we, "getClassesFromDbInfo");
1421
+ function Y(e) {
1455
1422
  return e?.styles ?? [];
1456
1423
  }
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();
1460
- if (e.info("dataFetcher parsedItem", n, f, m), d !== "root") {
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, {
1463
- id: d,
1464
- shape: r,
1465
- description: s.sanitizeText(d, h),
1466
- cssClasses: `${p} ${oe}`,
1424
+ u(Y, "getStylesFromDbInfo");
1425
+ var X = /* @__PURE__ */ u((e, t, n, r, i, o, c, l) => {
1426
+ let u = t.id, f = n.get(u), p = we(f), m = Y(f), h = a(), g = p.trim() !== "" || m.length > 0;
1427
+ if (d.info("dataFetcher parsedItem", t, f, m), u !== "root") {
1428
+ let n = I;
1429
+ t.start === !0 ? n = oe : t.start === !1 && (n = se), t.type !== F && (n = t.type), W.get(u) || W.set(u, {
1430
+ id: u,
1431
+ shape: n,
1432
+ description: s.sanitizeText(u, h),
1433
+ cssClasses: `${p} ${de}`,
1467
1434
  cssStyles: m
1468
1435
  });
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 : ""}`);
1436
+ let a = W.get(u);
1437
+ t.description && (Array.isArray(a.description) ? (a.shape = L, a.description.push(t.description)) : a.description?.length && a.description.length > 0 ? (a.shape = L, a.description = a.description === u ? [t.description] : [a.description, t.description]) : (a.shape = I, a.description = t.description), a.description = s.sanitizeTextOrArray(a.description, h)), a.description?.length === 1 && a.shape === L && (a.shape = a.type === "group" ? ce : I), !a.type && t.doc && (d.info("Setting cluster for XCX", u, Ce(t)), a.type = "group", a.isGroup = !0, a.dir = Ce(t), a.shape = t.type === ee ? R : ce, a.colorIndex = xe(a.shape, u, e, g), a.cssClasses = `${a.cssClasses} ${he} ${o ? ge : ""}`);
1471
1438
  let f = {
1472
1439
  labelStyle: "",
1473
- shape: u.shape,
1474
- label: u.description,
1475
- cssClasses: u.cssClasses,
1440
+ shape: a.shape,
1441
+ label: a.description,
1442
+ cssClasses: a.cssClasses,
1476
1443
  cssCompiledStyles: [],
1477
- cssStyles: u.cssStyles,
1478
- id: d,
1479
- dir: u.dir,
1480
- domId: J(d, q),
1481
- type: u.type,
1482
- isGroup: u.type === "group",
1444
+ cssStyles: a.cssStyles,
1445
+ id: u,
1446
+ dir: a.dir,
1447
+ domId: q(u, G),
1448
+ type: a.type,
1449
+ isGroup: a.type === "group",
1450
+ colorIndex: a.colorIndex,
1483
1451
  padding: 8,
1484
1452
  rx: 10,
1485
1453
  ry: 10,
1486
1454
  look: c,
1487
1455
  labelType: "markdown"
1488
1456
  };
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) {
1457
+ if (f.shape === R && (f.label = ""), e && e.id !== "root" && (d.trace("Setting node ", u, " to be child of its parent ", e.id), f.parentId = e.id), f.centerLabel = !0, t.note) {
1490
1458
  let e = {
1491
1459
  labelStyle: "",
1492
- shape: ie,
1493
- label: n.note.text,
1460
+ shape: le,
1461
+ label: t.note.text,
1494
1462
  labelType: "markdown",
1495
- cssClasses: le,
1463
+ cssClasses: me,
1496
1464
  cssStyles: [],
1497
1465
  cssCompiledStyles: [],
1498
- id: d + pe + "-" + q,
1499
- domId: J(d, q, H),
1500
- type: u.type,
1501
- isGroup: u.type === "group",
1466
+ id: u + ve + "-" + G,
1467
+ domId: q(u, G, H),
1468
+ type: "node",
1469
+ isGroup: !1,
1502
1470
  padding: h.flowchart?.padding,
1503
1471
  look: c,
1504
- position: n.note.position
1505
- }, t = d + W, r = {
1472
+ position: t.note.position
1473
+ }, n = u + ye, o = {
1506
1474
  labelStyle: "",
1507
- shape: ae,
1508
- label: n.note.text,
1509
- cssClasses: u.cssClasses,
1475
+ shape: ue,
1476
+ label: t.note.text,
1477
+ cssClasses: a.cssClasses,
1510
1478
  cssStyles: [],
1511
- id: d + W,
1512
- domId: J(d, q, V),
1479
+ id: u + ye,
1480
+ domId: q(u, G, V),
1513
1481
  type: "group",
1514
1482
  isGroup: !0,
1515
1483
  padding: 16,
1516
1484
  look: c,
1517
- position: n.note.position
1485
+ position: t.note.position
1518
1486
  };
1519
- q++, r.id = t, e.parentId = t, Y(i, r, l), Y(i, e, l), Y(i, f, l);
1520
- let o = d, s = e.id;
1521
- n.note.position === "left of" && (o = e.id, s = d), a.push({
1522
- id: o + "-" + s,
1523
- start: o,
1524
- end: s,
1487
+ G++, o.id = n, e.parentId = n, J(r, o, l), J(r, e, l), J(r, f, l);
1488
+ let s = u, d = e.id;
1489
+ t.note.position === "left of" && (s = e.id, d = u), i.push({
1490
+ id: s + "-" + d,
1491
+ start: s,
1492
+ end: d,
1525
1493
  arrowhead: "none",
1526
1494
  arrowTypeEnd: "",
1527
- style: M,
1495
+ style: te,
1528
1496
  labelStyle: "",
1529
- classes: ce,
1530
- arrowheadStyle: N,
1531
- labelpos: P,
1532
- labelType: ee,
1533
- thickness: F,
1497
+ classes: pe,
1498
+ pattern: "dashed",
1499
+ arrowheadStyle: ne,
1500
+ labelpos: re,
1501
+ labelType: ie,
1502
+ thickness: ae,
1534
1503
  look: c
1535
1504
  });
1536
- } else Y(i, f, l);
1505
+ } else J(r, f, l);
1537
1506
  }
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 = {
1507
+ t.doc && (d.trace("Adding nodes children "), Se(t, t.doc, n, r, i, !o, c, l));
1508
+ }, "dataFetcher"), Te = /* @__PURE__ */ u(() => {
1509
+ W.clear(), G = 0, be = 0, K.clear();
1510
+ }, "reset"), Ee = /* @__PURE__ */ u((e, t = D) => {
1511
+ if (!e.doc) return t;
1512
+ let n = t;
1513
+ for (let t of e.doc) t.stmt === "dir" && (n = t.value);
1514
+ return n;
1515
+ }, "getDir"), De = {
1516
+ getClasses: /* @__PURE__ */ u(function(e, t) {
1517
+ return t.db.getClasses();
1518
+ }, "getClasses"),
1519
+ draw: /* @__PURE__ */ u(async function(e, t, n, r) {
1520
+ d.info("REF0:"), d.info("Drawing state diagram (v2)", t);
1521
+ let { securityLevel: i, state: o, layout: s } = a();
1522
+ r.db.extract(r.db.getRootDocV2());
1523
+ let c = r.db.getData(), l = S(t, i);
1524
+ c.type = r.type, c.layoutAlgorithm = b(s), c.nodeSpacing = o?.nodeSpacing || 50, c.rankSpacing = o?.rankSpacing || 50, c.markers = a().look === "neo" ? ["barbNeo"] : ["barb"], c.diagramId = t, await y(c, l);
1525
+ try {
1526
+ (typeof r.db.getLinks == "function" ? r.db.getLinks() : /* @__PURE__ */ new Map()).forEach((e, t) => {
1527
+ let n = typeof t == "string" ? t : typeof t?.id == "string" ? t.id : "", r = c.nodes.find((e) => e.id === n);
1528
+ if (!n) {
1529
+ d.warn("⚠️ Invalid or missing stateId from key:", JSON.stringify(t));
1530
+ return;
1531
+ }
1532
+ let i = l.node()?.querySelectorAll("g.node, g.rough-node"), a;
1533
+ if (i?.forEach((e) => {
1534
+ let t = e.textContent?.trim();
1535
+ (e.id === r?.domId || t === n) && (a = e);
1536
+ }), !a) {
1537
+ d.warn("⚠️ Could not find node matching text:", n);
1538
+ return;
1539
+ }
1540
+ let o = a.parentNode;
1541
+ if (!o) {
1542
+ d.warn("⚠️ Node has no parent, cannot wrap:", n);
1543
+ return;
1544
+ }
1545
+ let s = document.createElementNS("http://www.w3.org/2000/svg", "a"), u = e.url.replace(/^"+|"+$/g, "");
1546
+ if (s.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", u), s.setAttribute("target", "_blank"), e.tooltip) {
1547
+ let t = e.tooltip.replace(/^"+|"+$/g, "");
1548
+ s.setAttribute("title", t), a.setAttribute("title", t);
1549
+ }
1550
+ o.replaceChild(s, a), s.appendChild(a), d.info("🔗 Wrapped node in <a> tag for:", n, e.url);
1551
+ });
1552
+ } catch (e) {
1553
+ d.error("❌ Error injecting clickable links:", e);
1554
+ }
1555
+ p.insertTitle(l, "statediagramTitleText", o?.titleTopMargin ?? 25, r.db.getDiagramTitle()), C(l, 8, z, o?.useMaxWidth ?? !0);
1556
+ }, "draw"),
1557
+ getDir: Ee
1558
+ }, Z = {
1542
1559
  START_NODE: "[*]",
1543
1560
  START_TYPE: "start",
1544
1561
  END_NODE: "[*]",
@@ -1547,16 +1564,16 @@ var Z = /* @__PURE__ */ f((t, n, r, i, a, o, c, l) => {
1547
1564
  FILL_KEYWORD: "fill",
1548
1565
  BG_FILL: "bgFill",
1549
1566
  STYLECLASS_SEP: ","
1550
- }, ye = /* @__PURE__ */ f(() => /* @__PURE__ */ new Map(), "newClassesList"), be = /* @__PURE__ */ f(() => ({
1567
+ }, Oe = /* @__PURE__ */ u(() => /* @__PURE__ */ new Map(), "newClassesList"), Q = /* @__PURE__ */ u(() => ({
1551
1568
  relations: [],
1552
1569
  states: /* @__PURE__ */ new Map(),
1553
1570
  documents: {}
1554
- }), "newDoc"), $ = /* @__PURE__ */ f((e) => JSON.parse(JSON.stringify(e)), "clone"), xe = class {
1555
- constructor(e) {
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);
1571
+ }), "newDoc"), $ = /* @__PURE__ */ u((e) => JSON.parse(JSON.stringify(e)), "clone"), ke = class {
1572
+ constructor(i) {
1573
+ this.version = i, this.nodes = [], this.edges = [], this.rootDoc = [], this.classes = Oe(), this.documents = { root: Q() }, this.currentDocument = this.documents.root, this.startEndCount = 0, this.dividerCnt = 0, this.links = /* @__PURE__ */ new Map(), this.funs = [], this.getAccTitle = l, this.setAccTitle = n, this.getAccDescription = r, this.setAccDescription = t, this.setDiagramTitle = o, this.getDiagramTitle = e, 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);
1557
1574
  }
1558
1575
  static {
1559
- f(this, "StateDB");
1576
+ u(this, "StateDB");
1560
1577
  }
1561
1578
  static {
1562
1579
  this.relationType = {
@@ -1569,25 +1586,25 @@ var Z = /* @__PURE__ */ f((t, n, r, i, a, o, c, l) => {
1569
1586
  extract(e) {
1570
1587
  this.clear(!0);
1571
1588
  for (let t of Array.isArray(e) ? e : e.doc) switch (t.stmt) {
1572
- case w:
1589
+ case k:
1573
1590
  this.addState(t.id.trim(), t.type, t.doc, t.description, t.note);
1574
1591
  break;
1575
- case E:
1592
+ case j:
1576
1593
  this.addRelation(t.state1, t.state2, t.description);
1577
1594
  break;
1578
- case D:
1595
+ case M:
1579
1596
  this.addStyleClass(t.id.trim(), t.classes);
1580
1597
  break;
1581
- case O:
1598
+ case N:
1582
1599
  this.handleStyleDef(t);
1583
1600
  break;
1584
- case k:
1601
+ case P:
1585
1602
  this.setCssClass(t.id.trim(), t.styleClass);
1586
1603
  break;
1587
1604
  case "click": this.addLink(t.id, t.url, t.tooltip);
1588
1605
  }
1589
- let t = this.getStates(), n = u();
1590
- ve(), Z(void 0, this.getRootDocV2(), t, this.nodes, this.edges, !0, n.look, this.classes);
1606
+ let t = this.getStates(), n = a();
1607
+ Te(), X(void 0, this.getRootDocV2(), t, this.nodes, this.edges, !0, n.look, this.classes);
1591
1608
  for (let e of this.nodes) if (Array.isArray(e.label)) {
1592
1609
  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}]`);
1593
1610
  e.label = e.label[0];
@@ -1604,23 +1621,23 @@ var Z = /* @__PURE__ */ f((t, n, r, i, a, o, c, l) => {
1604
1621
  t && (t.styles = n.map((e) => e.replace(/;/g, "")?.trim()));
1605
1622
  }
1606
1623
  }
1607
- setRootDoc(t) {
1608
- e.info("Setting root doc", t), this.rootDoc = t, this.version === 1 ? this.extract(t) : this.extract(this.getRootDocV2());
1624
+ setRootDoc(e) {
1625
+ d.info("Setting root doc", e), this.rootDoc = e, this.version === 1 ? this.extract(e) : this.extract(this.getRootDocV2());
1609
1626
  }
1610
1627
  docTranslator(e, t, n) {
1611
- if (t.stmt === E) {
1628
+ if (t.stmt === j) {
1612
1629
  this.docTranslator(e, t.state1, !0), this.docTranslator(e, t.state2, !1);
1613
1630
  return;
1614
1631
  }
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;
1632
+ if (t.stmt === k && (t.id === Z.START_NODE ? (t.id = e.id + (n ? "_start" : "_end"), t.start = n) : t.id = t.id.trim()), t.stmt !== A && t.stmt !== k || !t.doc) return;
1616
1633
  let r = [], i = [];
1617
- for (let e of t.doc) if (e.type === j) {
1634
+ for (let e of t.doc) if (e.type === ee) {
1618
1635
  let t = $(e);
1619
1636
  t.doc = $(i), r.push(t), i = [];
1620
1637
  } else i.push(e);
1621
1638
  if (r.length > 0 && i.length > 0) {
1622
1639
  let e = {
1623
- stmt: w,
1640
+ stmt: k,
1624
1641
  id: m(),
1625
1642
  type: "divider",
1626
1643
  doc: $(i)
@@ -1631,44 +1648,44 @@ var Z = /* @__PURE__ */ f((t, n, r, i, a, o, c, l) => {
1631
1648
  }
1632
1649
  getRootDocV2() {
1633
1650
  return this.docTranslator({
1634
- id: T,
1635
- stmt: T
1651
+ id: A,
1652
+ stmt: A
1636
1653
  }, {
1637
- id: T,
1638
- stmt: T,
1654
+ id: A,
1655
+ stmt: A,
1639
1656
  doc: this.rootDoc
1640
1657
  }, !0), {
1641
- id: T,
1658
+ id: A,
1642
1659
  doc: this.rootDoc
1643
1660
  };
1644
1661
  }
1645
- addState(t, n = A, r = void 0, i = void 0, a = void 0, o = void 0, c = void 0, l = void 0) {
1646
- let d = t?.trim();
1647
- if (!this.currentDocument.states.has(d)) e.info("Adding state ", d, i), this.currentDocument.states.set(d, {
1648
- stmt: w,
1649
- id: d,
1662
+ addState(e, t = F, n = void 0, r = void 0, i = void 0, o = void 0, c = void 0, l = void 0) {
1663
+ let u = e?.trim();
1664
+ if (!this.currentDocument.states.has(u)) d.info("Adding state ", u, r), this.currentDocument.states.set(u, {
1665
+ stmt: k,
1666
+ id: u,
1650
1667
  descriptions: [],
1651
- type: n,
1652
- doc: r,
1653
- note: a,
1668
+ type: t,
1669
+ doc: n,
1670
+ note: i,
1654
1671
  classes: [],
1655
1672
  styles: [],
1656
1673
  textStyles: []
1657
1674
  });
1658
1675
  else {
1659
- let e = this.currentDocument.states.get(d);
1660
- if (!e) throw Error(`State not found: ${d}`);
1661
- e.doc ||= r, e.type ||= n;
1676
+ let e = this.currentDocument.states.get(u);
1677
+ if (!e) throw Error(`State not found: ${u}`);
1678
+ e.doc ||= n, e.type ||= t;
1662
1679
  }
1663
- if (i && (e.info("Setting state description", d, i), (Array.isArray(i) ? i : [i]).forEach((e) => this.addDescription(d, e.trim()))), a) {
1664
- let e = this.currentDocument.states.get(d);
1665
- if (!e) throw Error(`State not found: ${d}`);
1666
- e.note = a, e.note.text = s.sanitizeText(e.note.text, u());
1680
+ if (r && (d.info("Setting state description", u, r), (Array.isArray(r) ? r : [r]).forEach((e) => this.addDescription(u, e.trim()))), i) {
1681
+ let e = this.currentDocument.states.get(u);
1682
+ if (!e) throw Error(`State not found: ${u}`);
1683
+ e.note = i, e.note.text = s.sanitizeText(e.note.text, a());
1667
1684
  }
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())));
1685
+ o && (d.info("Setting state classes", u, o), (Array.isArray(o) ? o : [o]).forEach((e) => this.setCssClass(u, e.trim()))), c && (d.info("Setting state styles", u, c), (Array.isArray(c) ? c : [c]).forEach((e) => this.setStyle(u, e.trim()))), l && (d.info("Setting state styles", u, c), (Array.isArray(l) ? l : [l]).forEach((e) => this.setTextStyle(u, e.trim())));
1669
1686
  }
1670
1687
  clear(e) {
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());
1688
+ this.nodes = [], this.edges = [], this.funs = [this.setupToolTips.bind(this)], this.documents = { root: Q() }, this.currentDocument = this.documents.root, this.startEndCount = 0, this.classes = Oe(), e || (this.links = /* @__PURE__ */ new Map(), i());
1672
1689
  }
1673
1690
  getState(e) {
1674
1691
  return this.currentDocument.states.get(e);
@@ -1677,54 +1694,54 @@ var Z = /* @__PURE__ */ f((t, n, r, i, a, o, c, l) => {
1677
1694
  return this.currentDocument.states;
1678
1695
  }
1679
1696
  logDocuments() {
1680
- e.info("Documents = ", this.documents);
1697
+ d.info("Documents = ", this.documents);
1681
1698
  }
1682
1699
  getRelations() {
1683
1700
  return this.currentDocument.relations;
1684
1701
  }
1685
- addLink(t, n, r) {
1686
- this.links.set(t, {
1687
- url: n,
1688
- tooltip: r
1689
- }), e.warn("Adding link", t, n, r);
1702
+ addLink(e, t, n) {
1703
+ this.links.set(e, {
1704
+ url: t,
1705
+ tooltip: n
1706
+ }), d.warn("Adding link", e, t, n);
1690
1707
  }
1691
1708
  getLinks() {
1692
1709
  return this.links;
1693
1710
  }
1694
1711
  startIdIfNeeded(e = "") {
1695
- return e === Q.START_NODE ? (this.startEndCount++, `${Q.START_TYPE}${this.startEndCount}`) : e;
1712
+ return e === Z.START_NODE ? (this.startEndCount++, `${Z.START_TYPE}${this.startEndCount}`) : e;
1696
1713
  }
1697
- startTypeIfNeeded(e = "", t = A) {
1698
- return e === Q.START_NODE ? Q.START_TYPE : t;
1714
+ startTypeIfNeeded(e = "", t = F) {
1715
+ return e === Z.START_NODE ? Z.START_TYPE : t;
1699
1716
  }
1700
1717
  endIdIfNeeded(e = "") {
1701
- return e === Q.END_NODE ? (this.startEndCount++, `${Q.END_TYPE}${this.startEndCount}`) : e;
1718
+ return e === Z.END_NODE ? (this.startEndCount++, `${Z.END_TYPE}${this.startEndCount}`) : e;
1702
1719
  }
1703
- endTypeIfNeeded(e = "", t = A) {
1704
- return e === Q.END_NODE ? Q.END_TYPE : t;
1720
+ endTypeIfNeeded(e = "", t = F) {
1721
+ return e === Z.END_NODE ? Z.END_TYPE : t;
1705
1722
  }
1706
1723
  addRelationObjs(e, t, n = "") {
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({
1724
+ let r = this.startIdIfNeeded(e.id.trim()), i = this.startTypeIfNeeded(e.id.trim(), e.type), o = this.startIdIfNeeded(t.id.trim()), c = this.startTypeIfNeeded(t.id.trim(), t.type);
1725
+ this.addState(r, i, e.doc, e.description, e.note, e.classes, e.styles, e.textStyles), this.addState(o, c, t.doc, t.description, t.note, t.classes, t.styles, t.textStyles), this.currentDocument.relations.push({
1709
1726
  id1: r,
1710
- id2: a,
1711
- relationTitle: s.sanitizeText(n, u())
1727
+ id2: o,
1728
+ relationTitle: s.sanitizeText(n, a())
1712
1729
  });
1713
1730
  }
1714
1731
  addRelation(e, t, n) {
1715
1732
  if (typeof e == "object" && typeof t == "object") this.addRelationObjs(e, t, n);
1716
1733
  else if (typeof e == "string" && typeof t == "string") {
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({
1734
+ let r = this.startIdIfNeeded(e.trim()), i = this.startTypeIfNeeded(e), o = this.endIdIfNeeded(t.trim()), c = this.endTypeIfNeeded(t);
1735
+ this.addState(r, i), this.addState(o, c), this.currentDocument.relations.push({
1719
1736
  id1: r,
1720
- id2: a,
1721
- relationTitle: n ? s.sanitizeText(n, u()) : void 0
1737
+ id2: o,
1738
+ relationTitle: n ? s.sanitizeText(n, a()) : void 0
1722
1739
  });
1723
1740
  }
1724
1741
  }
1725
1742
  addDescription(e, t) {
1726
1743
  let n = this.currentDocument.states.get(e), r = t.startsWith(":") ? t.replace(":", "").trim() : t;
1727
- n?.descriptions?.push(s.sanitizeText(r, u()));
1744
+ n?.descriptions?.push(s.sanitizeText(r, a()));
1728
1745
  }
1729
1746
  cleanupLabel(e) {
1730
1747
  return e.startsWith(":") ? e.slice(2).trim() : e.trim();
@@ -1739,10 +1756,10 @@ var Z = /* @__PURE__ */ f((t, n, r, i, a, o, c, l) => {
1739
1756
  textStyles: []
1740
1757
  });
1741
1758
  let n = this.classes.get(e);
1742
- t && n && t.split(Q.STYLECLASS_SEP).forEach((e) => {
1759
+ t && n && t.split(Z.STYLECLASS_SEP).forEach((e) => {
1743
1760
  let t = e.replace(/([^;]*);/, "$1").trim();
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);
1761
+ if (RegExp(Z.COLOR_KEYWORD).exec(e)) {
1762
+ let e = t.replace(Z.FILL_KEYWORD, Z.BG_FILL).replace(Z.COLOR_KEYWORD, Z.FILL_KEYWORD);
1746
1763
  n.textStyles.push(e);
1747
1764
  }
1748
1765
  n.styles.push(t);
@@ -1752,14 +1769,14 @@ var Z = /* @__PURE__ */ f((t, n, r, i, a, o, c, l) => {
1752
1769
  return this.classes;
1753
1770
  }
1754
1771
  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);
1772
+ let t = x();
1773
+ f(e).select("svg").selectAll("g.node, g.rough-node").on("mouseover", (e) => {
1774
+ let n = f(e.currentTarget), r = n.attr("title");
1775
+ if (r === null) return;
1776
+ let i = e.currentTarget?.getBoundingClientRect();
1777
+ t.transition().duration(200).style("opacity", ".9"), t.style("left", window.scrollX + i.left + (i.right - i.left) / 2 + "px").style("top", window.scrollY + i.bottom + "px"), t.html(c.sanitize(r)), n.classed("hover", !0);
1761
1778
  }).on("mouseout", (e) => {
1762
- n.transition().duration(500).style("opacity", 0), t(e.currentTarget).classed("hover", !1);
1779
+ t.transition().duration(500).style("opacity", 0), f(e.currentTarget).classed("hover", !1);
1763
1780
  });
1764
1781
  }
1765
1782
  setCssClass(e, t) {
@@ -1784,15 +1801,15 @@ var Z = /* @__PURE__ */ f((t, n, r, i, a, o, c, l) => {
1784
1801
  });
1785
1802
  }
1786
1803
  getDirectionStatement() {
1787
- return this.rootDoc.find((e) => e.stmt === C);
1804
+ return this.rootDoc.find((e) => e.stmt === O);
1788
1805
  }
1789
1806
  getDirection() {
1790
- return this.getDirectionStatement()?.value ?? x;
1807
+ return this.getDirectionStatement()?.value ?? E;
1791
1808
  }
1792
1809
  setDirection(e) {
1793
1810
  let t = this.getDirectionStatement();
1794
1811
  t ? t.value = e : this.rootDoc.unshift({
1795
- stmt: C,
1812
+ stmt: O,
1796
1813
  value: e
1797
1814
  });
1798
1815
  }
@@ -1800,19 +1817,95 @@ var Z = /* @__PURE__ */ f((t, n, r, i, a, o, c, l) => {
1800
1817
  return e.startsWith(":") ? e.slice(1).trim() : e.trim();
1801
1818
  }
1802
1819
  getData() {
1803
- let e = u();
1820
+ let e = a();
1821
+ for (let t of this.nodes) t.wrappingWidth ??= e.state?.wrappingWidth, t.isGroup || (t.minWidth ??= e.state?.minNodeWidth);
1804
1822
  return {
1805
1823
  nodes: this.nodes,
1806
1824
  edges: this.edges,
1807
1825
  other: {},
1808
1826
  config: e,
1809
- direction: G(this.getRootDocV2())
1827
+ direction: Ee(this.getRootDocV2())
1810
1828
  };
1811
1829
  }
1812
1830
  getConfig() {
1813
- return u().state;
1831
+ return a().state;
1832
+ }
1833
+ }, Ae = /* @__PURE__ */ u((e) => {
1834
+ let { theme: t, bkgColorArray: n, borderColorArray: r } = e;
1835
+ if (!g(t, r)) return "";
1836
+ let i = _(e.look), a = v(n), o = "";
1837
+ for (let e = 0; e < h(r); e++) {
1838
+ let t = r[e], s = a ? `fill: ${n[e % n.length]};` : "", c = `[data-look="${i}"][data-color-id="color-${e}"]`;
1839
+ o += `
1840
+
1841
+ /* The title strip: \`rect.outer\` spans the whole composite and \`rect.inner\` covers
1842
+ the body, so what stays visible of \`outer\` is the band behind the label. */
1843
+ ${c}.statediagram-cluster rect.outer {
1844
+ stroke: ${t};
1845
+ ${s}
1846
+ }
1847
+
1848
+ ${c}.statediagram-cluster rect.inner {
1849
+ stroke: ${t};
1850
+ }
1851
+
1852
+ /* Concurrency regions. Siblings of one composite share a slot, so a divided composite
1853
+ reads as one thing split into parts rather than as several composites. */
1854
+ ${c}.statediagram-cluster rect.divider {
1855
+ stroke: ${t};
1856
+ ${s}
1857
+ }
1858
+
1859
+ /* handDrawn draws the same container as roughjs shapes rather than plain rects, so it
1860
+ needs its own rules. \`roundedWithTitle\` and \`divider\` name those groups \`outer\`,
1861
+ \`inner\` and \`divider\` to match the classic branch, which is what lets these
1862
+ discriminate -- a bare \`.statediagram-cluster path\` rule reached the body as well and
1863
+ tinted the whole composite, losing \`compositeBackground\` and diverging from what
1864
+ classic and neo do.
1865
+
1866
+ roughjs emits two paths per shape and marks them: the filled shape carries
1867
+ \`stroke="none"\` and the sketched outline carries \`fill="none"\`. Splitting on that is
1868
+ what keeps \`fill\` off the outline -- a rough outline is open squiggles, not a closed
1869
+ region, so filling it produces smears -- and keeps \`stroke\` off the fill shape, which
1870
+ would otherwise gain an edge it was drawn without. */
1871
+ ${c}.statediagram-cluster .outer path[stroke='none'] {
1872
+ ${s}
1873
+ }
1874
+
1875
+ ${c}.statediagram-cluster .outer path[fill='none'] {
1876
+ stroke: ${t};
1877
+ }
1878
+
1879
+ /* No \`.inner\` rule on purpose. The body shape is left entirely alone under handDrawn,
1880
+ where a rect's \`inner\` counterpart cannot be recoloured safely: roughjs draws a
1881
+ hachure fill as *stroked* lines, so its fill paths carry \`fill="none"\` exactly like
1882
+ the outline and no selector separates them. An \`.inner\` stroke rule therefore
1883
+ repainted the hatching of every alt composite in the palette colour instead of
1884
+ leaving it on \`altBackground\`. The container still reads as palette-coloured: the
1885
+ \`outer\` shape spans the whole composite, so its outline already frames the body. */
1886
+
1887
+ /* Regions split the same way, which is why \`divider\` fills solid rather than taking
1888
+ roughjs's default hachure -- see the note on that call. Hatched, both of its paths
1889
+ carried \`fill="none"\` and these two rules degenerated: the tint matched nothing and
1890
+ the border rule repainted the hatching. */
1891
+ ${c}.statediagram-cluster .divider path[stroke='none'] {
1892
+ ${s}
1893
+ }
1894
+
1895
+ ${c}.statediagram-cluster .divider path[fill='none'] {
1896
+ stroke: ${t};
1897
+ }
1898
+ `;
1814
1899
  }
1815
- }, Se = /* @__PURE__ */ f((e) => `
1900
+ return o;
1901
+ }, "genColor"), je = {
1902
+ parser: T,
1903
+ get db() {
1904
+ return new ke(2);
1905
+ },
1906
+ renderer: De,
1907
+ styles: /* @__PURE__ */ u((e) => `
1908
+ ${Ae(e)}
1816
1909
  defs [id$="-barbEnd"] {
1817
1910
  fill: ${e.transitionColor};
1818
1911
  stroke: ${e.transitionColor};
@@ -2037,6 +2130,10 @@ g.stateGroup line {
2037
2130
  ry: ${e.radius}px;
2038
2131
  filter: ${e.dropShadow ? e.dropShadow.replace("url(#drop-shadow)", `url(${e.svgId}-drop-shadow)`) : "none"}
2039
2132
  }
2040
- `, "getStyles");
2133
+ `, "getStyles"),
2134
+ init: /* @__PURE__ */ u((e) => {
2135
+ e.state ||= {}, e.state.arrowMarkerAbsolute = e.arrowMarkerAbsolute;
2136
+ }, "init")
2137
+ };
2041
2138
  //#endregion
2042
- export { Se as i, b as n, me as r, xe as t };
2139
+ export { je as diagram };