@sme.up/ketchup2 2.0.0 → 2.2.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 (460) hide show
  1. package/dist/arc-CqG9Hxdf.cjs +1 -0
  2. package/dist/arc-Klgb378K.js +80 -0
  3. package/dist/architecture-YZFGNWBL-BRqToLcm.js +3 -0
  4. package/dist/architecture-YZFGNWBL-BTOWQWD9.cjs +1 -0
  5. package/dist/architectureDiagram-Q4EWVU46-CX_6DnSJ.cjs +36 -0
  6. package/dist/architectureDiagram-Q4EWVU46-CnzjcVBn.js +4057 -0
  7. package/dist/array-D8NZ46Ht.js +6 -0
  8. package/dist/array-Dxz0O8Q3.cjs +1 -0
  9. package/dist/assets/buttonListAssets.d.ts +8 -0
  10. package/dist/assets/buttonListAssets.d.ts.map +1 -1
  11. package/dist/assets/imageListAssets.d.ts +3 -1
  12. package/dist/assets/imageListAssets.d.ts.map +1 -1
  13. package/dist/basic-components/autocomplete/autocomplete.d.ts.map +1 -1
  14. package/dist/basic-components/button/button-types.d.ts +4 -0
  15. package/dist/basic-components/button/button-types.d.ts.map +1 -1
  16. package/dist/basic-components/button-dropdown/button-dropdown-types.d.ts +16 -0
  17. package/dist/basic-components/button-dropdown/button-dropdown-types.d.ts.map +1 -0
  18. package/dist/basic-components/button-dropdown/button-dropdown.d.ts +4 -0
  19. package/dist/basic-components/button-dropdown/button-dropdown.d.ts.map +1 -0
  20. package/dist/basic-components/button-list/button-list-types.d.ts +6 -0
  21. package/dist/basic-components/button-list/button-list-types.d.ts.map +1 -1
  22. package/dist/basic-components/button-list/button-list.d.ts.map +1 -1
  23. package/dist/basic-components/cell/cell-utils.d.ts +11 -4
  24. package/dist/basic-components/cell/cell-utils.d.ts.map +1 -1
  25. package/dist/basic-components/cell/cell.d.ts.map +1 -1
  26. package/dist/basic-components/image/image.d.ts.map +1 -1
  27. package/dist/basic-components/image-cell/image-cell-types.d.ts +12 -3
  28. package/dist/basic-components/image-cell/image-cell-types.d.ts.map +1 -1
  29. package/dist/basic-components/image-cell/image-cell.d.ts.map +1 -1
  30. package/dist/basic-components/list/list-types.d.ts +0 -1
  31. package/dist/basic-components/list/list-types.d.ts.map +1 -1
  32. package/dist/basic-components/list/list.d.ts.map +1 -1
  33. package/dist/basic-components/notification/notification.assets.d.ts.map +1 -1
  34. package/dist/basic-components/select/select.d.ts.map +1 -1
  35. package/dist/basic-components/text/text.d.ts.map +1 -1
  36. package/dist/basic-components/text-editor/text-editor-utils.d.ts.map +1 -1
  37. package/dist/basic-components/textfield/textfield.d.ts.map +1 -1
  38. package/dist/blockDiagram-DXYQGD6D-B0NvV2Ph.js +3033 -0
  39. package/dist/blockDiagram-DXYQGD6D-D6DypQdM.cjs +132 -0
  40. package/dist/c4Diagram-AHTNJAMY-DPijI3_r.js +2961 -0
  41. package/dist/c4Diagram-AHTNJAMY-Dgwv-e5O.cjs +10 -0
  42. package/dist/channel-CRWct3-i.js +5 -0
  43. package/dist/channel-DkTvdPpU.cjs +1 -0
  44. package/dist/chunk-2KRD3SAO-Ca3zDQyj.js +23 -0
  45. package/dist/chunk-2KRD3SAO-oZrIWZvV.cjs +1 -0
  46. package/dist/chunk-336JU56O-DQhIGd25.cjs +1 -0
  47. package/dist/chunk-336JU56O-DkZvWJVe.js +49 -0
  48. package/dist/chunk-426QAEUC-CDXJVpQr.js +9 -0
  49. package/dist/chunk-426QAEUC-CqN26l3E.cjs +1 -0
  50. package/dist/chunk-4BX2VUAB-BW54-JWg.js +8 -0
  51. package/dist/chunk-4BX2VUAB-Qba52sxc.cjs +1 -0
  52. package/dist/chunk-4TB4RGXK-B0SIkKDf.cjs +206 -0
  53. package/dist/chunk-4TB4RGXK-D2LRzcEP.js +3253 -0
  54. package/dist/chunk-55IACEB6-Bu3k0Yz5.js +8 -0
  55. package/dist/chunk-55IACEB6-DPatBzu7.cjs +1 -0
  56. package/dist/chunk-5FUZZQ4R-Cj5KbGC7.cjs +62 -0
  57. package/dist/chunk-5FUZZQ4R-D3C0F0Tr.js +3638 -0
  58. package/dist/chunk-5PVQY5BW-DEPZKGvb.cjs +2 -0
  59. package/dist/chunk-5PVQY5BW-Dn8n6moB.js +1299 -0
  60. package/dist/chunk-67CJDMHE-2Qg7i1xJ.cjs +1 -0
  61. package/dist/chunk-67CJDMHE-YMBkJcAO.js +23 -0
  62. package/dist/chunk-7N4EOEYR-C-GuhRgW.js +35 -0
  63. package/dist/chunk-7N4EOEYR-jNBQwvHx.cjs +1 -0
  64. package/dist/chunk-AA7GKIK3-B_ZB6dou.js +30 -0
  65. package/dist/chunk-AA7GKIK3-dqnTmnvO.cjs +1 -0
  66. package/dist/chunk-BSJP7CBP-CFzYPvgr.cjs +1 -0
  67. package/dist/chunk-BSJP7CBP-oNTXVRA7.js +82 -0
  68. package/dist/chunk-CIAEETIT-ClHUj0Su.cjs +1 -0
  69. package/dist/chunk-CIAEETIT-XlxsAz-4.js +23 -0
  70. package/dist/chunk-D-IZpNpi.cjs +1 -0
  71. package/dist/chunk-EDXVE4YY-1dwNWzc7.cjs +1 -0
  72. package/dist/chunk-EDXVE4YY-CGNVB686.js +25 -0
  73. package/dist/chunk-ENJZ2VHE-BAWfx0nA.cjs +10 -0
  74. package/dist/chunk-ENJZ2VHE-CZ7BvL2h.js +560 -0
  75. package/dist/{chunk-FMBD7UC4-C1wIcaJH.js → chunk-FMBD7UC4-CS9_r76V.cjs} +2 -6
  76. package/dist/chunk-FMBD7UC4-RRSc9jqt.js +5 -0
  77. package/dist/chunk-FOC6F5B3-DcZs851j.cjs +1 -0
  78. package/dist/chunk-FOC6F5B3-E9n6-juB.js +23 -0
  79. package/dist/chunk-ICPOFSXX-fQJ5ufMR.js +3320 -0
  80. package/dist/chunk-ICPOFSXX-hY6BIZ4Y.cjs +122 -0
  81. package/dist/chunk-K5T4RW27-BzDQkjC7.cjs +94 -0
  82. package/dist/chunk-K5T4RW27-DY7TOEqa.js +16070 -0
  83. package/dist/chunk-KGLVRYIC-5OJpfQCj.js +23 -0
  84. package/dist/chunk-KGLVRYIC-DnbIkai8.cjs +1 -0
  85. package/dist/chunk-LIHQZDEY-59I4-LWb.js +64 -0
  86. package/dist/chunk-LIHQZDEY-CrogR3nT.cjs +1 -0
  87. package/dist/chunk-ORNJ4GCN-CcrEtiCn.cjs +1 -0
  88. package/dist/chunk-ORNJ4GCN-CwkOSFbS.js +31 -0
  89. package/dist/chunk-OYMX7WX6-CrK-lehh.cjs +231 -0
  90. package/dist/chunk-OYMX7WX6-DJkGVCqi.js +2014 -0
  91. package/dist/chunk-QZHKN3VN-Bx8I6l3c.js +15 -0
  92. package/dist/chunk-QZHKN3VN-CSMKL2rB.cjs +1 -0
  93. package/dist/chunk-U2HBQHQK-CJ77uizk.cjs +70 -0
  94. package/dist/chunk-U2HBQHQK-Ceyeq0IV.js +1879 -0
  95. package/dist/chunk-WQLz0Won.js +20 -0
  96. package/dist/chunk-X2U36JSP-CtXjVqek.cjs +1 -0
  97. package/dist/chunk-X2U36JSP-VxRY65ea.js +67 -0
  98. package/dist/chunk-XPW4576I-BcWkx-AL.js +1146 -0
  99. package/dist/chunk-XPW4576I-D8Pp6a3j.cjs +32 -0
  100. package/dist/chunk-YZCP3GAM-D6P3SWmL.js +60 -0
  101. package/dist/chunk-YZCP3GAM-qxaNo0r8.cjs +1 -0
  102. package/dist/chunk-ZZ45TVLE-BfSqZnT4.cjs +1 -0
  103. package/dist/chunk-ZZ45TVLE-X2jolXSO.js +32 -0
  104. package/dist/classDiagram-6PBFFD2Q-BT4_JTnP.cjs +1 -0
  105. package/dist/classDiagram-6PBFFD2Q-Dgaxt4wI.js +29 -0
  106. package/dist/classDiagram-v2-HSJHXN6E-CWhiK6nm.js +29 -0
  107. package/dist/classDiagram-v2-HSJHXN6E-DkBLzgTv.cjs +1 -0
  108. package/dist/clone-CQQwPjME.cjs +1 -0
  109. package/dist/clone-Dwbh_blD.js +8 -0
  110. package/dist/components/drawer/drawer-types.d.ts +4 -0
  111. package/dist/components/drawer/drawer-types.d.ts.map +1 -1
  112. package/dist/components/image-list/components/image-list-command-panel.d.ts +15 -0
  113. package/dist/components/image-list/components/image-list-command-panel.d.ts.map +1 -0
  114. package/dist/components/image-list/components/image-list-command-trigger.d.ts +16 -0
  115. package/dist/components/image-list/components/image-list-command-trigger.d.ts.map +1 -0
  116. package/dist/components/image-list/components/image-list-filter-picker.d.ts +14 -0
  117. package/dist/components/image-list/components/image-list-filter-picker.d.ts.map +1 -0
  118. package/dist/components/image-list/components/image-list-h-strip.d.ts.map +1 -1
  119. package/dist/components/image-list/components/image-list-json-viewer.d.ts +11 -0
  120. package/dist/components/image-list/components/image-list-json-viewer.d.ts.map +1 -0
  121. package/dist/components/image-list/components/image-list-menu.d.ts.map +1 -1
  122. package/dist/components/image-list/components/image-list-navigation-picker.d.ts +6 -2
  123. package/dist/components/image-list/components/image-list-navigation-picker.d.ts.map +1 -1
  124. package/dist/components/image-list/components/image-list-sort-picker.d.ts +14 -0
  125. package/dist/components/image-list/components/image-list-sort-picker.d.ts.map +1 -0
  126. package/dist/components/image-list/components/image-list-v-strip.d.ts.map +1 -1
  127. package/dist/components/image-list/components/items/image-list-card-item.d.ts +5 -0
  128. package/dist/components/image-list/components/items/image-list-card-item.d.ts.map +1 -0
  129. package/dist/components/image-list/components/items/image-list-folder-item.d.ts.map +1 -1
  130. package/dist/components/image-list/components/items/image-list-item.d.ts.map +1 -1
  131. package/dist/components/image-list/components/menu-nav-item.d.ts.map +1 -1
  132. package/dist/components/image-list/components/navigation-modes/image-list-catalog.d.ts.map +1 -1
  133. package/dist/components/image-list/components/navigation-modes/image-list-explorer.d.ts.map +1 -1
  134. package/dist/components/image-list/components/navigation-modes/image-list-tree.d.ts.map +1 -1
  135. package/dist/components/image-list/components/strip-item.d.ts.map +1 -1
  136. package/dist/components/image-list/hooks/useCommandPickers.d.ts +13 -0
  137. package/dist/components/image-list/hooks/useCommandPickers.d.ts.map +1 -0
  138. package/dist/components/image-list/image-list-column-utils.d.ts +9 -0
  139. package/dist/components/image-list/image-list-column-utils.d.ts.map +1 -0
  140. package/dist/components/image-list/image-list-context.d.ts +5 -2
  141. package/dist/components/image-list/image-list-context.d.ts.map +1 -1
  142. package/dist/components/image-list/image-list-debug-utils.d.ts +13 -0
  143. package/dist/components/image-list/image-list-debug-utils.d.ts.map +1 -0
  144. package/dist/components/image-list/image-list-filter-context.d.ts +9 -0
  145. package/dist/components/image-list/image-list-filter-context.d.ts.map +1 -0
  146. package/dist/components/image-list/image-list-filter-utils.d.ts +12 -0
  147. package/dist/components/image-list/image-list-filter-utils.d.ts.map +1 -0
  148. package/dist/components/image-list/image-list-sort-context.d.ts +9 -0
  149. package/dist/components/image-list/image-list-sort-context.d.ts.map +1 -0
  150. package/dist/components/image-list/image-list-sort-utils.d.ts +13 -0
  151. package/dist/components/image-list/image-list-sort-utils.d.ts.map +1 -0
  152. package/dist/components/image-list/image-list-state-context.d.ts +5 -0
  153. package/dist/components/image-list/image-list-state-context.d.ts.map +1 -0
  154. package/dist/components/image-list/image-list-types.d.ts +45 -2
  155. package/dist/components/image-list/image-list-types.d.ts.map +1 -1
  156. package/dist/components/image-list/image-list-utils.d.ts +24 -1
  157. package/dist/components/image-list/image-list-utils.d.ts.map +1 -1
  158. package/dist/components/image-list/image-list.d.ts +1 -1
  159. package/dist/components/image-list/image-list.d.ts.map +1 -1
  160. package/dist/components/planner/planner-assets.d.ts +1 -1
  161. package/dist/components/planner/planner-assets.d.ts.map +1 -1
  162. package/dist/components/planner/planner-types.d.ts +1 -1
  163. package/dist/components/planner/planner-types.d.ts.map +1 -1
  164. package/dist/components/planner/planner-utils.d.ts +6 -5
  165. package/dist/components/planner/planner-utils.d.ts.map +1 -1
  166. package/dist/components/planner/planner.d.ts.map +1 -1
  167. package/dist/components/scaffold/context/scaffold-provider.d.ts.map +1 -1
  168. package/dist/components/scaffold/scaffold-types.d.ts +1 -0
  169. package/dist/components/scaffold/scaffold-types.d.ts.map +1 -1
  170. package/dist/components/timeline/timeline-types.d.ts +6 -2
  171. package/dist/components/timeline/timeline-types.d.ts.map +1 -1
  172. package/dist/components/timeline/timeline.d.ts.map +1 -1
  173. package/dist/components/toolbar/toolbar.d.ts.map +1 -1
  174. package/dist/components/tooltip/tooltip.d.ts.map +1 -1
  175. package/dist/cose-bilkent-S5V4N54A-B30Rh9DR.js +2250 -0
  176. package/dist/cose-bilkent-S5V4N54A-Bhdp-wcb.cjs +1 -0
  177. package/dist/cytoscape.esm-CPjF_mSK.js +18100 -0
  178. package/dist/cytoscape.esm-CrBwLFXE.cjs +321 -0
  179. package/dist/dagre-BcwvU6ZF.cjs +1 -0
  180. package/dist/dagre-D17h-Z-U.js +1606 -0
  181. package/dist/dagre-KV5264BT-BnEKAAAn.js +293 -0
  182. package/dist/dagre-KV5264BT-DRbiLA37.cjs +4 -0
  183. package/dist/defaultLocale-Dcyuaxxg.js +201 -0
  184. package/dist/defaultLocale-DtzyZW63.cjs +1 -0
  185. package/dist/diagram-5BDNPKRD-B_Fa4dpl.js +101 -0
  186. package/dist/diagram-5BDNPKRD-CPN8m2Hl.cjs +10 -0
  187. package/dist/diagram-G4DWMVQ6-VpXkNb67.cjs +24 -0
  188. package/dist/diagram-G4DWMVQ6-iYV58Drq.js +524 -0
  189. package/dist/diagram-MMDJMWI5-DGk_PUo9.cjs +43 -0
  190. package/dist/diagram-MMDJMWI5-DUpEI5ug.js +213 -0
  191. package/dist/diagram-TYMM5635-BH_-vSv9.cjs +24 -0
  192. package/dist/diagram-TYMM5635-DHHPZ5ZJ.js +133 -0
  193. package/dist/dist-BgvMZbfo.cjs +1 -0
  194. package/dist/dist-DL30VIBI.js +60 -0
  195. package/dist/erDiagram-SMLLAGMA-C8FM7wbJ.js +1700 -0
  196. package/dist/erDiagram-SMLLAGMA-vuYEmfFA.cjs +85 -0
  197. package/dist/flatten-BE1bWL-7.js +40 -0
  198. package/dist/flatten-DxvYSoR8.cjs +1 -0
  199. package/dist/flowDiagram-DWJPFMVM-BGtX2gw0.js +4145 -0
  200. package/dist/flowDiagram-DWJPFMVM-DWuKiJeo.cjs +162 -0
  201. package/dist/functional-components/action/action-types.d.ts +32 -2
  202. package/dist/functional-components/action/action-types.d.ts.map +1 -1
  203. package/dist/functional-components/action/action-utils.d.ts +13 -1
  204. package/dist/functional-components/action/action-utils.d.ts.map +1 -1
  205. package/dist/functional-components/action/action.d.ts.map +1 -1
  206. package/dist/functional-components/action-list/action-list.d.ts.map +1 -1
  207. package/dist/functional-components/action-list/dual-list/dual-list.d.ts.map +1 -1
  208. package/dist/functional-components/timeline-engine/components/gantt/bar/gantt-bar.d.ts +18 -0
  209. package/dist/functional-components/timeline-engine/components/gantt/bar/gantt-bar.d.ts.map +1 -0
  210. package/dist/functional-components/{gantt → timeline-engine/components/gantt}/gantt-assets.d.ts +2 -0
  211. package/dist/functional-components/timeline-engine/components/gantt/gantt-assets.d.ts.map +1 -0
  212. package/dist/functional-components/{gantt → timeline-engine/components/gantt}/gantt.d.ts +3 -3
  213. package/dist/functional-components/timeline-engine/components/gantt/gantt.d.ts.map +1 -0
  214. package/dist/functional-components/{gantt → timeline-engine/components/gantt}/grid/gantt-grid.d.ts +3 -5
  215. package/dist/functional-components/timeline-engine/components/gantt/grid/gantt-grid.d.ts.map +1 -0
  216. package/dist/functional-components/timeline-engine/components/gantt/header/gantt-header.d.ts.map +1 -0
  217. package/dist/functional-components/timeline-engine/components/gantt/today-indicator/gantt-today-indicator.d.ts.map +1 -0
  218. package/dist/functional-components/{gantt → timeline-engine/components/gantt}/types/gantt-types.d.ts +27 -6
  219. package/dist/functional-components/timeline-engine/components/gantt/types/gantt-types.d.ts.map +1 -0
  220. package/dist/functional-components/timeline-engine/components/task-list/task-list-types.d.ts +27 -0
  221. package/dist/functional-components/timeline-engine/components/task-list/task-list-types.d.ts.map +1 -0
  222. package/dist/functional-components/{task-list → timeline-engine/components/task-list}/task-list-utils.d.ts +4 -4
  223. package/dist/functional-components/timeline-engine/components/task-list/task-list-utils.d.ts.map +1 -0
  224. package/dist/functional-components/timeline-engine/components/task-list/task-list.d.ts.map +1 -0
  225. package/dist/functional-components/timeline-engine/timeline-engine-types.d.ts +24 -0
  226. package/dist/functional-components/timeline-engine/timeline-engine-types.d.ts.map +1 -0
  227. package/dist/functional-components/timeline-engine/timeline-engine-utils.d.ts +119 -0
  228. package/dist/functional-components/timeline-engine/timeline-engine-utils.d.ts.map +1 -0
  229. package/dist/functional-components/timeline-engine/timeline-engine-utils.test.d.ts +2 -0
  230. package/dist/functional-components/timeline-engine/timeline-engine-utils.test.d.ts.map +1 -0
  231. package/dist/functional-components/timeline-engine/timeline-engine.d.ts +8 -0
  232. package/dist/functional-components/timeline-engine/timeline-engine.d.ts.map +1 -0
  233. package/dist/ganttDiagram-T4ZO3ILL-C25CnBTv.cjs +292 -0
  234. package/dist/ganttDiagram-T4ZO3ILL-PY1BUp5b.js +3077 -0
  235. package/dist/gitGraph-7Q5UKJZL-DZea3ltD.cjs +1 -0
  236. package/dist/gitGraph-7Q5UKJZL-sjlqDwJ_.js +3 -0
  237. package/dist/gitGraphDiagram-UUTBAWPF-0lCBo9nK.cjs +106 -0
  238. package/dist/gitGraphDiagram-UUTBAWPF-CDIW9-sX.js +728 -0
  239. package/dist/graphlib-CdgJ32J_.cjs +1 -0
  240. package/dist/graphlib-DbQkSsC8.js +373 -0
  241. package/dist/hooks/useClickOutside.d.ts.map +1 -1
  242. package/dist/hooks/useFocusTrap.d.ts.map +1 -1
  243. package/dist/hooks/useGanttMath.d.ts +1 -1
  244. package/dist/hooks/useGanttMath.d.ts.map +1 -1
  245. package/dist/hooks/useVirtualListScroll.d.ts.map +1 -1
  246. package/dist/identity-KQSjemTb.cjs +1 -0
  247. package/dist/identity-g0dsMjx7.js +393 -0
  248. package/dist/info-OMHHGYJF-Bk0VWVNW.js +3 -0
  249. package/dist/info-OMHHGYJF-C8QtwF0k.cjs +1 -0
  250. package/dist/infoDiagram-42DDH7IO-CQLxpytS.js +19 -0
  251. package/dist/infoDiagram-42DDH7IO-Da__a_a_.cjs +2 -0
  252. package/dist/init-B2MubQrj.cjs +1 -0
  253. package/dist/init-BO60vQHJ.js +15 -0
  254. package/dist/isEmpty-CA3kJuev.cjs +1 -0
  255. package/dist/isEmpty-RwX-oIQS.js +35 -0
  256. package/dist/ishikawaDiagram-UXIWVN3A-BblrAmns.js +718 -0
  257. package/dist/ishikawaDiagram-UXIWVN3A-BfkF39Xv.cjs +70 -0
  258. package/dist/journeyDiagram-VCZTEJTY-CCOZ1XFK.js +883 -0
  259. package/dist/journeyDiagram-VCZTEJTY-UwcVOFtb.cjs +139 -0
  260. package/dist/kanban-definition-6JOO6SKY-BWwfbdd6.js +973 -0
  261. package/dist/kanban-definition-6JOO6SKY-Coxpi43B.cjs +89 -0
  262. package/dist/katex-Du5WiYIy.js +22000 -0
  263. package/dist/katex-SAH56fvc.cjs +257 -0
  264. package/dist/ketchup2.cjs.js +197 -1
  265. package/dist/ketchup2.css +2 -1
  266. package/dist/ketchup2.es.js +132798 -52
  267. package/dist/line-C7oijaT4.cjs +1 -0
  268. package/dist/line-CrxZdHmO.js +34 -0
  269. package/dist/linear-BsPvNLJv.js +289 -0
  270. package/dist/linear-CxHa1DsM.cjs +1 -0
  271. package/dist/mermaid-parser.core-CERDf-UG.js +69 -0
  272. package/dist/mermaid-parser.core-DHpvGOZR.cjs +3 -0
  273. package/dist/mindmap-definition-QFDTVHPH--xULjpFZ.cjs +96 -0
  274. package/dist/mindmap-definition-QFDTVHPH-dYQoMeA6.js +978 -0
  275. package/dist/ordinal-C-VoL0XF.js +65 -0
  276. package/dist/ordinal-Civr0hZL.cjs +1 -0
  277. package/dist/packet-4T2RLAQJ-X0BMsNFj.js +3 -0
  278. package/dist/packet-4T2RLAQJ-lvmQnXPI.cjs +1 -0
  279. package/dist/path-Civic7PQ.cjs +1 -0
  280. package/dist/path-CvfwEr8y.js +85 -0
  281. package/dist/pie-ZZUOXDRM-CJ_fU5k1.js +3 -0
  282. package/dist/pie-ZZUOXDRM-Dp4APKqR.cjs +1 -0
  283. package/dist/pieDiagram-DEJITSTG-7we8s9eC.cjs +30 -0
  284. package/dist/pieDiagram-DEJITSTG-Dj5pX4fC.js +165 -0
  285. package/dist/quadrantDiagram-34T5L4WZ-B3BFuPYQ.cjs +7 -0
  286. package/dist/quadrantDiagram-34T5L4WZ-BKNOJBiR.js +1974 -0
  287. package/dist/radar-PYXPWWZC-BHWJy_E1.cjs +1 -0
  288. package/dist/radar-PYXPWWZC-DgZIW9Ah.js +3 -0
  289. package/dist/reduce-B7WW9rkU.cjs +1 -0
  290. package/dist/reduce-DNnkcf3M.js +532 -0
  291. package/dist/requirementDiagram-MS252O5E-BemsEy3Y.cjs +84 -0
  292. package/dist/requirementDiagram-MS252O5E-r3eZu57d.js +2221 -0
  293. package/dist/rough.esm-1mqTSjCt.js +1352 -0
  294. package/dist/rough.esm-BLKo1fIQ.cjs +1 -0
  295. package/dist/sankeyDiagram-XADWPNL6-B9YCkPHh.cjs +10 -0
  296. package/dist/sankeyDiagram-XADWPNL6-ErTVVewH.js +920 -0
  297. package/dist/sequenceDiagram-FGHM5R23-BmqbzzHY.js +4157 -0
  298. package/dist/sequenceDiagram-FGHM5R23-CBpQL6X2.cjs +157 -0
  299. package/dist/src-BQiFKP24.js +2146 -0
  300. package/dist/src-DFxq-N5I.cjs +1 -0
  301. package/dist/stateDiagram-FHFEXIEX-CL9LE-W1.js +217 -0
  302. package/dist/stateDiagram-FHFEXIEX-Cju5Z2VS.cjs +1 -0
  303. package/dist/stateDiagram-v2-QKLJ7IA2-BHoytfGp.js +27 -0
  304. package/dist/stateDiagram-v2-QKLJ7IA2-DO1H6Vqa.cjs +1 -0
  305. package/dist/timeline-definition-GMOUNBTQ-BeTHmikc.cjs +120 -0
  306. package/dist/timeline-definition-GMOUNBTQ-DgcI7XnE.js +1068 -0
  307. package/dist/treeView-SZITEDCU-CT5vX0q9.cjs +1 -0
  308. package/dist/treeView-SZITEDCU-Df3xzFtO.js +3 -0
  309. package/dist/treemap-W4RFUUIX-Bk_jVZ7D.cjs +1 -0
  310. package/dist/treemap-W4RFUUIX-ClUtdSdn.js +3 -0
  311. package/dist/types/data-structures.d.ts +9 -1
  312. package/dist/types/data-structures.d.ts.map +1 -1
  313. package/dist/utils/data-structures.d.ts +2 -0
  314. package/dist/utils/data-structures.d.ts.map +1 -1
  315. package/dist/utils/style.d.ts +13 -2
  316. package/dist/utils/style.d.ts.map +1 -1
  317. package/dist/utils/translation.d.ts.map +1 -1
  318. package/dist/v4-6yr83DbP.cjs +1 -0
  319. package/dist/v4-BR71w5_q.js +33 -0
  320. package/dist/vennDiagram-DHZGUBPP-7tx3VVDU.js +1858 -0
  321. package/dist/vennDiagram-DHZGUBPP-C16dnMoe.cjs +34 -0
  322. package/dist/wardley-RL74JXVD-BtHQbnUy.js +3 -0
  323. package/dist/wardley-RL74JXVD-y8RO5Iqv.cjs +1 -0
  324. package/dist/wardleyDiagram-NUSXRM2D-DGKU7A2U.js +578 -0
  325. package/dist/wardleyDiagram-NUSXRM2D-DY51LHBa.cjs +20 -0
  326. package/dist/xychartDiagram-5P7HB3ND--7RYyckP.js +2044 -0
  327. package/dist/xychartDiagram-5P7HB3ND-Cj0HUNew.cjs +7 -0
  328. package/package.json +31 -31
  329. package/dist/_basePickBy-CPekwY_Z.js +0 -151
  330. package/dist/_basePickBy-DDhgLyLp.cjs +0 -1
  331. package/dist/_baseUniq-CAhfZr5S.js +0 -614
  332. package/dist/_baseUniq-bLb2QO_4.cjs +0 -1
  333. package/dist/arc-CnmUepZA.cjs +0 -1
  334. package/dist/arc-Md6Ds0JZ.js +0 -83
  335. package/dist/architecture-7HQA4BMR-DLImbuCr.js +0 -6
  336. package/dist/architecture-7HQA4BMR-zD1jCFXs.cjs +0 -1
  337. package/dist/architectureDiagram-VXUJARFQ-BkTy7RJA.js +0 -4661
  338. package/dist/architectureDiagram-VXUJARFQ-Vl-ya9R6.cjs +0 -36
  339. package/dist/blockDiagram-VD42YOAC-C9AJNM79.js +0 -2256
  340. package/dist/blockDiagram-VD42YOAC-D_EmYywD.cjs +0 -122
  341. package/dist/c4Diagram-YG6GDRKO-BfwBYulK.cjs +0 -10
  342. package/dist/c4Diagram-YG6GDRKO-YW-l-SYp.js +0 -1580
  343. package/dist/channel-BGeX_R6w.cjs +0 -1
  344. package/dist/channel-lqmaHMPZ.js +0 -5
  345. package/dist/chunk-4BX2VUAB-C6nahV0u.cjs +0 -1
  346. package/dist/chunk-4BX2VUAB-UMbIiF-V.js +0 -8
  347. package/dist/chunk-55IACEB6-CH_wWg2p.js +0 -8
  348. package/dist/chunk-55IACEB6-Cxt8uWHb.cjs +0 -1
  349. package/dist/chunk-B4BG7PRW-CTNZzNh0.js +0 -1375
  350. package/dist/chunk-B4BG7PRW-ekpXKNa3.cjs +0 -165
  351. package/dist/chunk-DI55MBZ5-BrLh6Fue.js +0 -1370
  352. package/dist/chunk-DI55MBZ5-TYqUGYGr.cjs +0 -220
  353. package/dist/chunk-FMBD7UC4-D0Nmh8EL.cjs +0 -15
  354. package/dist/chunk-QN33PNHL-B91UelWj.js +0 -19
  355. package/dist/chunk-QN33PNHL-KGNgU1-8.cjs +0 -1
  356. package/dist/chunk-QZHKN3VN-IV7jnz-R.js +0 -15
  357. package/dist/chunk-QZHKN3VN-ajuovO9B.cjs +0 -1
  358. package/dist/chunk-TZMSLE5B-Bkf7U79o.cjs +0 -1
  359. package/dist/chunk-TZMSLE5B-DArsm2Pn.js +0 -64
  360. package/dist/classDiagram-2ON5EDUG-C0_Gqd5k.js +0 -16
  361. package/dist/classDiagram-2ON5EDUG-Cnous8-m.cjs +0 -1
  362. package/dist/classDiagram-v2-WZHVMYZB-C0_Gqd5k.js +0 -16
  363. package/dist/classDiagram-v2-WZHVMYZB-Cnous8-m.cjs +0 -1
  364. package/dist/clone-B_MxWhab.js +0 -8
  365. package/dist/clone-D6gFD6F-.cjs +0 -1
  366. package/dist/cose-bilkent-S5V4N54A-DHZ_jZYH.js +0 -2608
  367. package/dist/cose-bilkent-S5V4N54A-Da7jSuau.cjs +0 -1
  368. package/dist/cytoscape.esm-CNUX3VTg.cjs +0 -321
  369. package/dist/cytoscape.esm-Cvf3sx9F.js +0 -18704
  370. package/dist/dagre-6UL2VRFP-CI2ww-SU.js +0 -444
  371. package/dist/dagre-6UL2VRFP-qOR4yAIQ.cjs +0 -4
  372. package/dist/defaultLocale-D7EN2tov.js +0 -171
  373. package/dist/defaultLocale-DIVzfLaQ.cjs +0 -1
  374. package/dist/diagram-PSM6KHXK-1g8345m3.js +0 -531
  375. package/dist/diagram-PSM6KHXK-DHWL3g5V.cjs +0 -24
  376. package/dist/diagram-QEK2KX5R-B-VP4dVY.js +0 -217
  377. package/dist/diagram-QEK2KX5R-DDWbMmAv.cjs +0 -43
  378. package/dist/diagram-S2PKOQOG-BbSGqLET.js +0 -142
  379. package/dist/diagram-S2PKOQOG-Djw9RGNh.cjs +0 -24
  380. package/dist/erDiagram-Q2GNP2WA-CxY1P4hJ.js +0 -841
  381. package/dist/erDiagram-Q2GNP2WA-Pw9i-eBN.cjs +0 -60
  382. package/dist/flowDiagram-NV44I4VS-BOr3T0H8.js +0 -1620
  383. package/dist/flowDiagram-NV44I4VS-D9VKU1cV.cjs +0 -162
  384. package/dist/functional-components/gantt/bar/gantt-bar.d.ts +0 -17
  385. package/dist/functional-components/gantt/bar/gantt-bar.d.ts.map +0 -1
  386. package/dist/functional-components/gantt/gantt-assets.d.ts.map +0 -1
  387. package/dist/functional-components/gantt/gantt.d.ts.map +0 -1
  388. package/dist/functional-components/gantt/grid/gantt-grid.d.ts.map +0 -1
  389. package/dist/functional-components/gantt/header/gantt-header.d.ts.map +0 -1
  390. package/dist/functional-components/gantt/today-indicator/gantt-today-indicator.d.ts.map +0 -1
  391. package/dist/functional-components/gantt/types/gantt-types.d.ts.map +0 -1
  392. package/dist/functional-components/task-list/task-list-types.d.ts +0 -22
  393. package/dist/functional-components/task-list/task-list-types.d.ts.map +0 -1
  394. package/dist/functional-components/task-list/task-list-utils.d.ts.map +0 -1
  395. package/dist/functional-components/task-list/task-list.d.ts.map +0 -1
  396. package/dist/ganttDiagram-JELNMOA3-B4T6J11z.js +0 -2670
  397. package/dist/ganttDiagram-JELNMOA3-C4Y4VT0h.cjs +0 -267
  398. package/dist/gitGraph-G5XIXVHT-C5QaeLIs.cjs +0 -1
  399. package/dist/gitGraph-G5XIXVHT-bOZ2ppp1.js +0 -6
  400. package/dist/gitGraphDiagram-V2S2FVAM-CteUW9ML.js +0 -699
  401. package/dist/gitGraphDiagram-V2S2FVAM-D_v6ae_z.cjs +0 -65
  402. package/dist/graph-BBPk5jyk.cjs +0 -1
  403. package/dist/graph-h6vsxKyr.js +0 -247
  404. package/dist/hooks/usePlannerSync.d.ts +0 -11
  405. package/dist/hooks/usePlannerSync.d.ts.map +0 -1
  406. package/dist/index-CYQM-t1d.cjs +0 -390
  407. package/dist/index-FiV1b00w.js +0 -133122
  408. package/dist/info-VBDWY6EO-BEIYBsnB.cjs +0 -1
  409. package/dist/info-VBDWY6EO-BQAW_660.js +0 -6
  410. package/dist/infoDiagram-HS3SLOUP-DMalb3kC.js +0 -24
  411. package/dist/infoDiagram-HS3SLOUP-Tepm6ygN.cjs +0 -2
  412. package/dist/init-CHZsXQcr.cjs +0 -1
  413. package/dist/init-DjUOC4st.js +0 -16
  414. package/dist/journeyDiagram-XKPGCS4Q-CzePcKne.cjs +0 -139
  415. package/dist/journeyDiagram-XKPGCS4Q-D0u-RLFV.js +0 -834
  416. package/dist/kanban-definition-3W4ZIXB7-BSCzAsMJ.js +0 -719
  417. package/dist/kanban-definition-3W4ZIXB7-DdbH9sci.cjs +0 -89
  418. package/dist/katex-C2g-EhzP.cjs +0 -261
  419. package/dist/katex-CUSbq6rG.js +0 -11692
  420. package/dist/layout-6z7-eUnZ.js +0 -1335
  421. package/dist/layout-DbcrMh5B.cjs +0 -1
  422. package/dist/linear-BKevCbhh.js +0 -259
  423. package/dist/linear-C7uVEtWW.cjs +0 -1
  424. package/dist/mermaid-parser.core-Cwy51n_e.js +0 -17907
  425. package/dist/mermaid-parser.core-DQ2yhapR.cjs +0 -160
  426. package/dist/mindmap-definition-VGOIOE7T-CcEisj0R.cjs +0 -68
  427. package/dist/mindmap-definition-VGOIOE7T-xp6GmSIx.js +0 -758
  428. package/dist/ordinal-B6-f3MAq.js +0 -61
  429. package/dist/ordinal-CagbB1m8.cjs +0 -1
  430. package/dist/packet-DYOGHKS2-BGgwnMhM.js +0 -6
  431. package/dist/packet-DYOGHKS2-BWg8qxI8.cjs +0 -1
  432. package/dist/pie-VRWISCQL-DhM8CUW4.cjs +0 -1
  433. package/dist/pie-VRWISCQL-DrWIWm7W.js +0 -6
  434. package/dist/pieDiagram-ADFJNKIX-BdvacM-Z.cjs +0 -30
  435. package/dist/pieDiagram-ADFJNKIX-D6Fa7W_r.js +0 -161
  436. package/dist/quadrantDiagram-AYHSOK5B-CHMoSBvg.js +0 -1022
  437. package/dist/quadrantDiagram-AYHSOK5B-ddq5zZEg.cjs +0 -7
  438. package/dist/radar-ZZBFDIW7-CPvW4Njh.js +0 -6
  439. package/dist/radar-ZZBFDIW7-YJK72BlV.cjs +0 -1
  440. package/dist/requirementDiagram-UZGBJVZJ-Cr9HnGVO.js +0 -850
  441. package/dist/requirementDiagram-UZGBJVZJ-NdpzVbnf.cjs +0 -64
  442. package/dist/sankeyDiagram-TZEHDZUN-3f19WwKd.js +0 -810
  443. package/dist/sankeyDiagram-TZEHDZUN-D2Hzq4Kr.cjs +0 -10
  444. package/dist/sequenceDiagram-WL72ISMW-Cu-7V--6.js +0 -2511
  445. package/dist/sequenceDiagram-WL72ISMW-Nk6vhSK9.cjs +0 -145
  446. package/dist/stateDiagram-FKZM4ZOC-BSnDKUaW.cjs +0 -1
  447. package/dist/stateDiagram-FKZM4ZOC-BleTIniP.js +0 -263
  448. package/dist/stateDiagram-v2-4FDKWEC3-7EjW078x.js +0 -16
  449. package/dist/stateDiagram-v2-4FDKWEC3-BJPzO53y.cjs +0 -1
  450. package/dist/timeline-definition-IT6M3QCI-CFTjPpKy.js +0 -795
  451. package/dist/timeline-definition-IT6M3QCI-CfaGtuF2.cjs +0 -61
  452. package/dist/treemap-GDKQZRPO-CtDdEOaj.cjs +0 -1
  453. package/dist/treemap-GDKQZRPO-DlODAdQ2.js +0 -6
  454. package/dist/utils/wbs-utils.d.ts +0 -143
  455. package/dist/utils/wbs-utils.d.ts.map +0 -1
  456. package/dist/xychartDiagram-PRI3JC2R-mShGv2CD.cjs +0 -7
  457. package/dist/xychartDiagram-PRI3JC2R-vEJER5zT.js +0 -1340
  458. /package/dist/functional-components/{gantt → timeline-engine/components/gantt}/header/gantt-header.d.ts +0 -0
  459. /package/dist/functional-components/{gantt → timeline-engine/components/gantt}/today-indicator/gantt-today-indicator.d.ts +0 -0
  460. /package/dist/functional-components/{task-list → timeline-engine/components/task-list}/task-list.d.ts +0 -0
@@ -0,0 +1,2014 @@
1
+ import { B as e, C as t, V as n, W as r, _ as i, a, b as o, s, v as c } from "./chunk-ICPOFSXX-fQJ5ufMR.js";
2
+ import { g as l, h as u } from "./src-BQiFKP24.js";
3
+ import { h as d, o as f } from "./chunk-5PVQY5BW-Dn8n6moB.js";
4
+ import { r as p } from "./chunk-336JU56O-DkZvWJVe.js";
5
+ import { t as m } from "./chunk-55IACEB6-Bu3k0Yz5.js";
6
+ import { t as h } from "./chunk-EDXVE4YY-CGNVB686.js";
7
+ //#region node_modules/mermaid/dist/chunks/mermaid.core/chunk-OYMX7WX6.mjs
8
+ var g = (function() {
9
+ var e = /* @__PURE__ */ u(function(e, t, n, r) {
10
+ for (n ||= {}, r = e.length; r--; n[e[r]] = t);
11
+ return n;
12
+ }, "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 = [
13
+ 1,
14
+ 4,
15
+ 5,
16
+ 16,
17
+ 17,
18
+ 19,
19
+ 21,
20
+ 22,
21
+ 24,
22
+ 25,
23
+ 26,
24
+ 27,
25
+ 28,
26
+ 29,
27
+ 33,
28
+ 35,
29
+ 37,
30
+ 38,
31
+ 41,
32
+ 45,
33
+ 48,
34
+ 51,
35
+ 52,
36
+ 53,
37
+ 54,
38
+ 57
39
+ ], j = [
40
+ 1,
41
+ 4,
42
+ 5,
43
+ 14,
44
+ 15,
45
+ 16,
46
+ 17,
47
+ 19,
48
+ 21,
49
+ 22,
50
+ 24,
51
+ 25,
52
+ 26,
53
+ 27,
54
+ 28,
55
+ 29,
56
+ 33,
57
+ 35,
58
+ 37,
59
+ 38,
60
+ 39,
61
+ 40,
62
+ 41,
63
+ 45,
64
+ 48,
65
+ 51,
66
+ 52,
67
+ 53,
68
+ 54,
69
+ 57
70
+ ], M = [
71
+ 4,
72
+ 5,
73
+ 16,
74
+ 17,
75
+ 19,
76
+ 21,
77
+ 22,
78
+ 24,
79
+ 25,
80
+ 26,
81
+ 27,
82
+ 28,
83
+ 29,
84
+ 33,
85
+ 35,
86
+ 37,
87
+ 38,
88
+ 41,
89
+ 45,
90
+ 48,
91
+ 51,
92
+ 52,
93
+ 53,
94
+ 54,
95
+ 57
96
+ ], N = {
97
+ trace: /* @__PURE__ */ u(function() {}, "trace"),
98
+ yy: {},
99
+ symbols_: {
100
+ error: 2,
101
+ start: 3,
102
+ SPACE: 4,
103
+ NL: 5,
104
+ SD: 6,
105
+ document: 7,
106
+ line: 8,
107
+ statement: 9,
108
+ classDefStatement: 10,
109
+ styleStatement: 11,
110
+ cssClassStatement: 12,
111
+ idStatement: 13,
112
+ DESCR: 14,
113
+ "-->": 15,
114
+ HIDE_EMPTY: 16,
115
+ scale: 17,
116
+ WIDTH: 18,
117
+ COMPOSIT_STATE: 19,
118
+ STRUCT_START: 20,
119
+ STRUCT_STOP: 21,
120
+ STATE_DESCR: 22,
121
+ AS: 23,
122
+ ID: 24,
123
+ FORK: 25,
124
+ JOIN: 26,
125
+ CHOICE: 27,
126
+ CONCURRENT: 28,
127
+ note: 29,
128
+ notePosition: 30,
129
+ NOTE_TEXT: 31,
130
+ direction: 32,
131
+ acc_title: 33,
132
+ acc_title_value: 34,
133
+ acc_descr: 35,
134
+ acc_descr_value: 36,
135
+ acc_descr_multiline_value: 37,
136
+ CLICK: 38,
137
+ STRING: 39,
138
+ HREF: 40,
139
+ classDef: 41,
140
+ CLASSDEF_ID: 42,
141
+ CLASSDEF_STYLEOPTS: 43,
142
+ DEFAULT: 44,
143
+ style: 45,
144
+ STYLE_IDS: 46,
145
+ STYLEDEF_STYLEOPTS: 47,
146
+ class: 48,
147
+ CLASSENTITY_IDS: 49,
148
+ STYLECLASS: 50,
149
+ direction_tb: 51,
150
+ direction_bt: 52,
151
+ direction_rl: 53,
152
+ direction_lr: 54,
153
+ eol: 55,
154
+ ";": 56,
155
+ EDGE_STATE: 57,
156
+ STYLE_SEPARATOR: 58,
157
+ left_of: 59,
158
+ right_of: 60,
159
+ $accept: 0,
160
+ $end: 1
161
+ },
162
+ terminals_: {
163
+ 2: "error",
164
+ 4: "SPACE",
165
+ 5: "NL",
166
+ 6: "SD",
167
+ 14: "DESCR",
168
+ 15: "-->",
169
+ 16: "HIDE_EMPTY",
170
+ 17: "scale",
171
+ 18: "WIDTH",
172
+ 19: "COMPOSIT_STATE",
173
+ 20: "STRUCT_START",
174
+ 21: "STRUCT_STOP",
175
+ 22: "STATE_DESCR",
176
+ 23: "AS",
177
+ 24: "ID",
178
+ 25: "FORK",
179
+ 26: "JOIN",
180
+ 27: "CHOICE",
181
+ 28: "CONCURRENT",
182
+ 29: "note",
183
+ 31: "NOTE_TEXT",
184
+ 33: "acc_title",
185
+ 34: "acc_title_value",
186
+ 35: "acc_descr",
187
+ 36: "acc_descr_value",
188
+ 37: "acc_descr_multiline_value",
189
+ 38: "CLICK",
190
+ 39: "STRING",
191
+ 40: "HREF",
192
+ 41: "classDef",
193
+ 42: "CLASSDEF_ID",
194
+ 43: "CLASSDEF_STYLEOPTS",
195
+ 44: "DEFAULT",
196
+ 45: "style",
197
+ 46: "STYLE_IDS",
198
+ 47: "STYLEDEF_STYLEOPTS",
199
+ 48: "class",
200
+ 49: "CLASSENTITY_IDS",
201
+ 50: "STYLECLASS",
202
+ 51: "direction_tb",
203
+ 52: "direction_bt",
204
+ 53: "direction_rl",
205
+ 54: "direction_lr",
206
+ 56: ";",
207
+ 57: "EDGE_STATE",
208
+ 58: "STYLE_SEPARATOR",
209
+ 59: "left_of",
210
+ 60: "right_of"
211
+ },
212
+ productions_: [
213
+ 0,
214
+ [3, 2],
215
+ [3, 2],
216
+ [3, 2],
217
+ [7, 0],
218
+ [7, 2],
219
+ [8, 2],
220
+ [8, 1],
221
+ [8, 1],
222
+ [9, 1],
223
+ [9, 1],
224
+ [9, 1],
225
+ [9, 1],
226
+ [9, 2],
227
+ [9, 3],
228
+ [9, 4],
229
+ [9, 1],
230
+ [9, 2],
231
+ [9, 1],
232
+ [9, 4],
233
+ [9, 3],
234
+ [9, 6],
235
+ [9, 1],
236
+ [9, 1],
237
+ [9, 1],
238
+ [9, 1],
239
+ [9, 4],
240
+ [9, 4],
241
+ [9, 1],
242
+ [9, 2],
243
+ [9, 2],
244
+ [9, 1],
245
+ [9, 5],
246
+ [9, 5],
247
+ [10, 3],
248
+ [10, 3],
249
+ [11, 3],
250
+ [12, 3],
251
+ [32, 1],
252
+ [32, 1],
253
+ [32, 1],
254
+ [32, 1],
255
+ [55, 1],
256
+ [55, 1],
257
+ [13, 1],
258
+ [13, 1],
259
+ [13, 3],
260
+ [13, 3],
261
+ [30, 1],
262
+ [30, 1]
263
+ ],
264
+ performAction: /* @__PURE__ */ u(function(e, t, n, r, i, a, o) {
265
+ var s = a.length - 1;
266
+ switch (i) {
267
+ case 3: return r.setRootDoc(a[s]), a[s];
268
+ case 4:
269
+ this.$ = [];
270
+ break;
271
+ case 5:
272
+ a[s] != "nl" && (a[s - 1].push(a[s]), this.$ = a[s - 1]);
273
+ break;
274
+ case 6:
275
+ case 7:
276
+ this.$ = a[s];
277
+ break;
278
+ case 8:
279
+ this.$ = "nl";
280
+ break;
281
+ case 12:
282
+ this.$ = a[s];
283
+ break;
284
+ case 13:
285
+ let e = a[s - 1];
286
+ e.description = r.trimColon(a[s]), this.$ = e;
287
+ break;
288
+ case 14:
289
+ this.$ = {
290
+ stmt: "relation",
291
+ state1: a[s - 2],
292
+ state2: a[s]
293
+ };
294
+ break;
295
+ case 15:
296
+ let t = r.trimColon(a[s]);
297
+ this.$ = {
298
+ stmt: "relation",
299
+ state1: a[s - 3],
300
+ state2: a[s - 1],
301
+ description: t
302
+ };
303
+ break;
304
+ case 19:
305
+ this.$ = {
306
+ stmt: "state",
307
+ id: a[s - 3],
308
+ type: "default",
309
+ description: "",
310
+ doc: a[s - 1]
311
+ };
312
+ break;
313
+ case 20:
314
+ var c = a[s], l = a[s - 2].trim();
315
+ if (a[s].match(":")) {
316
+ var u = a[s].split(":");
317
+ c = u[0], l = [l, u[1]];
318
+ }
319
+ this.$ = {
320
+ stmt: "state",
321
+ id: c,
322
+ type: "default",
323
+ description: l
324
+ };
325
+ break;
326
+ case 21:
327
+ this.$ = {
328
+ stmt: "state",
329
+ id: a[s - 3],
330
+ type: "default",
331
+ description: a[s - 5],
332
+ doc: a[s - 1]
333
+ };
334
+ break;
335
+ case 22:
336
+ this.$ = {
337
+ stmt: "state",
338
+ id: a[s],
339
+ type: "fork"
340
+ };
341
+ break;
342
+ case 23:
343
+ this.$ = {
344
+ stmt: "state",
345
+ id: a[s],
346
+ type: "join"
347
+ };
348
+ break;
349
+ case 24:
350
+ this.$ = {
351
+ stmt: "state",
352
+ id: a[s],
353
+ type: "choice"
354
+ };
355
+ break;
356
+ case 25:
357
+ this.$ = {
358
+ stmt: "state",
359
+ id: r.getDividerId(),
360
+ type: "divider"
361
+ };
362
+ break;
363
+ case 26:
364
+ this.$ = {
365
+ stmt: "state",
366
+ id: a[s - 1].trim(),
367
+ note: {
368
+ position: a[s - 2].trim(),
369
+ text: a[s].trim()
370
+ }
371
+ };
372
+ break;
373
+ case 29:
374
+ this.$ = a[s].trim(), r.setAccTitle(this.$);
375
+ break;
376
+ case 30:
377
+ case 31:
378
+ this.$ = a[s].trim(), r.setAccDescription(this.$);
379
+ break;
380
+ case 32:
381
+ this.$ = {
382
+ stmt: "click",
383
+ id: a[s - 3],
384
+ url: a[s - 2],
385
+ tooltip: a[s - 1]
386
+ };
387
+ break;
388
+ case 33:
389
+ this.$ = {
390
+ stmt: "click",
391
+ id: a[s - 3],
392
+ url: a[s - 1],
393
+ tooltip: ""
394
+ };
395
+ break;
396
+ case 34:
397
+ case 35:
398
+ this.$ = {
399
+ stmt: "classDef",
400
+ id: a[s - 1].trim(),
401
+ classes: a[s].trim()
402
+ };
403
+ break;
404
+ case 36:
405
+ this.$ = {
406
+ stmt: "style",
407
+ id: a[s - 1].trim(),
408
+ styleClass: a[s].trim()
409
+ };
410
+ break;
411
+ case 37:
412
+ this.$ = {
413
+ stmt: "applyClass",
414
+ id: a[s - 1].trim(),
415
+ styleClass: a[s].trim()
416
+ };
417
+ break;
418
+ case 38:
419
+ r.setDirection("TB"), this.$ = {
420
+ stmt: "dir",
421
+ value: "TB"
422
+ };
423
+ break;
424
+ case 39:
425
+ r.setDirection("BT"), this.$ = {
426
+ stmt: "dir",
427
+ value: "BT"
428
+ };
429
+ break;
430
+ case 40:
431
+ r.setDirection("RL"), this.$ = {
432
+ stmt: "dir",
433
+ value: "RL"
434
+ };
435
+ break;
436
+ case 41:
437
+ r.setDirection("LR"), this.$ = {
438
+ stmt: "dir",
439
+ value: "LR"
440
+ };
441
+ break;
442
+ case 44:
443
+ case 45:
444
+ this.$ = {
445
+ stmt: "state",
446
+ id: a[s].trim(),
447
+ type: "default",
448
+ description: ""
449
+ };
450
+ break;
451
+ case 46:
452
+ this.$ = {
453
+ stmt: "state",
454
+ id: a[s - 2].trim(),
455
+ classes: [a[s].trim()],
456
+ type: "default",
457
+ description: ""
458
+ };
459
+ 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;
469
+ }
470
+ }, "anonymous"),
471
+ table: [
472
+ {
473
+ 3: 1,
474
+ 4: t,
475
+ 5: n,
476
+ 6: r
477
+ },
478
+ { 1: [3] },
479
+ {
480
+ 3: 5,
481
+ 4: t,
482
+ 5: n,
483
+ 6: r
484
+ },
485
+ {
486
+ 3: 6,
487
+ 4: t,
488
+ 5: n,
489
+ 6: r
490
+ },
491
+ e([
492
+ 1,
493
+ 4,
494
+ 5,
495
+ 16,
496
+ 17,
497
+ 19,
498
+ 22,
499
+ 24,
500
+ 25,
501
+ 26,
502
+ 27,
503
+ 28,
504
+ 29,
505
+ 33,
506
+ 35,
507
+ 37,
508
+ 38,
509
+ 41,
510
+ 45,
511
+ 48,
512
+ 51,
513
+ 52,
514
+ 53,
515
+ 54,
516
+ 57
517
+ ], i, { 7: 7 }),
518
+ { 1: [2, 1] },
519
+ { 1: [2, 2] },
520
+ {
521
+ 1: [2, 3],
522
+ 4: a,
523
+ 5: o,
524
+ 8: 8,
525
+ 9: 10,
526
+ 10: 12,
527
+ 11: 13,
528
+ 12: 14,
529
+ 13: 15,
530
+ 16: s,
531
+ 17: c,
532
+ 19: l,
533
+ 22: d,
534
+ 24: f,
535
+ 25: p,
536
+ 26: m,
537
+ 27: h,
538
+ 28: g,
539
+ 29: _,
540
+ 32: 25,
541
+ 33: v,
542
+ 35: y,
543
+ 37: b,
544
+ 38: x,
545
+ 41: S,
546
+ 45: C,
547
+ 48: w,
548
+ 51: T,
549
+ 52: E,
550
+ 53: D,
551
+ 54: O,
552
+ 57: k
553
+ },
554
+ e(A, [2, 5]),
555
+ {
556
+ 9: 39,
557
+ 10: 12,
558
+ 11: 13,
559
+ 12: 14,
560
+ 13: 15,
561
+ 16: s,
562
+ 17: c,
563
+ 19: l,
564
+ 22: d,
565
+ 24: f,
566
+ 25: p,
567
+ 26: m,
568
+ 27: h,
569
+ 28: g,
570
+ 29: _,
571
+ 32: 25,
572
+ 33: v,
573
+ 35: y,
574
+ 37: b,
575
+ 38: x,
576
+ 41: S,
577
+ 45: C,
578
+ 48: w,
579
+ 51: T,
580
+ 52: E,
581
+ 53: D,
582
+ 54: O,
583
+ 57: k
584
+ },
585
+ e(A, [2, 7]),
586
+ e(A, [2, 8]),
587
+ e(A, [2, 9]),
588
+ e(A, [2, 10]),
589
+ e(A, [2, 11]),
590
+ e(A, [2, 12], {
591
+ 14: [1, 40],
592
+ 15: [1, 41]
593
+ }),
594
+ e(A, [2, 16]),
595
+ { 18: [1, 42] },
596
+ e(A, [2, 18], { 20: [1, 43] }),
597
+ { 23: [1, 44] },
598
+ e(A, [2, 22]),
599
+ e(A, [2, 23]),
600
+ e(A, [2, 24]),
601
+ e(A, [2, 25]),
602
+ {
603
+ 30: 45,
604
+ 31: [1, 46],
605
+ 59: [1, 47],
606
+ 60: [1, 48]
607
+ },
608
+ e(A, [2, 28]),
609
+ { 34: [1, 49] },
610
+ { 36: [1, 50] },
611
+ e(A, [2, 31]),
612
+ {
613
+ 13: 51,
614
+ 24: f,
615
+ 57: k
616
+ },
617
+ {
618
+ 42: [1, 52],
619
+ 44: [1, 53]
620
+ },
621
+ { 46: [1, 54] },
622
+ { 49: [1, 55] },
623
+ e(j, [2, 44], { 58: [1, 56] }),
624
+ e(j, [2, 45], { 58: [1, 57] }),
625
+ e(A, [2, 38]),
626
+ e(A, [2, 39]),
627
+ e(A, [2, 40]),
628
+ e(A, [2, 41]),
629
+ e(A, [2, 6]),
630
+ e(A, [2, 13]),
631
+ {
632
+ 13: 58,
633
+ 24: f,
634
+ 57: k
635
+ },
636
+ e(A, [2, 17]),
637
+ e(M, i, { 7: 59 }),
638
+ { 24: [1, 60] },
639
+ { 24: [1, 61] },
640
+ { 23: [1, 62] },
641
+ { 24: [2, 48] },
642
+ { 24: [2, 49] },
643
+ e(A, [2, 29]),
644
+ e(A, [2, 30]),
645
+ {
646
+ 39: [1, 63],
647
+ 40: [1, 64]
648
+ },
649
+ { 43: [1, 65] },
650
+ { 43: [1, 66] },
651
+ { 47: [1, 67] },
652
+ { 50: [1, 68] },
653
+ { 24: [1, 69] },
654
+ { 24: [1, 70] },
655
+ e(A, [2, 14], { 14: [1, 71] }),
656
+ {
657
+ 4: a,
658
+ 5: o,
659
+ 8: 8,
660
+ 9: 10,
661
+ 10: 12,
662
+ 11: 13,
663
+ 12: 14,
664
+ 13: 15,
665
+ 16: s,
666
+ 17: c,
667
+ 19: l,
668
+ 21: [1, 72],
669
+ 22: d,
670
+ 24: f,
671
+ 25: p,
672
+ 26: m,
673
+ 27: h,
674
+ 28: g,
675
+ 29: _,
676
+ 32: 25,
677
+ 33: v,
678
+ 35: y,
679
+ 37: b,
680
+ 38: x,
681
+ 41: S,
682
+ 45: C,
683
+ 48: w,
684
+ 51: T,
685
+ 52: E,
686
+ 53: D,
687
+ 54: O,
688
+ 57: k
689
+ },
690
+ e(A, [2, 20], { 20: [1, 73] }),
691
+ { 31: [1, 74] },
692
+ { 24: [1, 75] },
693
+ { 39: [1, 76] },
694
+ { 39: [1, 77] },
695
+ e(A, [2, 34]),
696
+ e(A, [2, 35]),
697
+ e(A, [2, 36]),
698
+ e(A, [2, 37]),
699
+ e(j, [2, 46]),
700
+ e(j, [2, 47]),
701
+ e(A, [2, 15]),
702
+ e(A, [2, 19]),
703
+ e(M, i, { 7: 78 }),
704
+ e(A, [2, 26]),
705
+ e(A, [2, 27]),
706
+ { 5: [1, 79] },
707
+ { 5: [1, 80] },
708
+ {
709
+ 4: a,
710
+ 5: o,
711
+ 8: 8,
712
+ 9: 10,
713
+ 10: 12,
714
+ 11: 13,
715
+ 12: 14,
716
+ 13: 15,
717
+ 16: s,
718
+ 17: c,
719
+ 19: l,
720
+ 21: [1, 81],
721
+ 22: d,
722
+ 24: f,
723
+ 25: p,
724
+ 26: m,
725
+ 27: h,
726
+ 28: g,
727
+ 29: _,
728
+ 32: 25,
729
+ 33: v,
730
+ 35: y,
731
+ 37: b,
732
+ 38: x,
733
+ 41: S,
734
+ 45: C,
735
+ 48: w,
736
+ 51: T,
737
+ 52: E,
738
+ 53: D,
739
+ 54: O,
740
+ 57: k
741
+ },
742
+ e(A, [2, 32]),
743
+ e(A, [2, 33]),
744
+ e(A, [2, 21])
745
+ ],
746
+ defaultActions: {
747
+ 5: [2, 1],
748
+ 6: [2, 2],
749
+ 47: [2, 48],
750
+ 48: [2, 49]
751
+ },
752
+ parseError: /* @__PURE__ */ u(function(e, t) {
753
+ if (t.recoverable) this.trace(e);
754
+ else {
755
+ var n = Error(e);
756
+ throw n.hash = t, n;
757
+ }
758
+ }, "parseError"),
759
+ parse: /* @__PURE__ */ u(function(e) {
760
+ 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
+ for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
762
+ h.setInput(e, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
763
+ var v = h.yylloc;
764
+ a.push(v);
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;
767
+ function b(e) {
768
+ n.length -= 2 * e, i.length -= e, a.length -= e;
769
+ }
770
+ u(b, "popStack");
771
+ function x() {
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
+ }
775
+ u(x, "lex");
776
+ for (var S, C, w, T, E, D = {}, O, k, A, j;;) {
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
+ var M = "";
779
+ for (O in j = [], o[w]) this.terminals_[O] && O > f && 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
+ text: h.match,
782
+ token: this.terminals_[S] || S,
783
+ line: h.yylineno,
784
+ loc: v,
785
+ expected: j
786
+ });
787
+ }
788
+ if (T[0] instanceof Array && T.length > 1) throw Error("Parse Error: multiple actions possible at state: " + w + ", token: " + S);
789
+ switch (T[0]) {
790
+ 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, d > 0 && d--);
792
+ break;
793
+ case 2:
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,
801
+ l,
802
+ c,
803
+ g.yy,
804
+ T[1],
805
+ i,
806
+ a
807
+ ].concat(m)), E !== void 0) return E;
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
+ break;
810
+ case 3: return !0;
811
+ }
812
+ }
813
+ return !0;
814
+ }, "parse")
815
+ };
816
+ N.lexer = /* @__PURE__ */ (function() {
817
+ return {
818
+ EOF: 1,
819
+ parseError: /* @__PURE__ */ u(function(e, t) {
820
+ if (this.yy.parser) this.yy.parser.parseError(e, t);
821
+ else throw Error(e);
822
+ }, "parseError"),
823
+ setInput: /* @__PURE__ */ u(function(e, t) {
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
+ first_line: 1,
826
+ first_column: 0,
827
+ last_line: 1,
828
+ last_column: 0
829
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
830
+ }, "setInput"),
831
+ input: /* @__PURE__ */ u(function() {
832
+ var e = this._input[0];
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
+ }, "input"),
835
+ unput: /* @__PURE__ */ u(function(e) {
836
+ var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
837
+ this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
838
+ var r = this.match.split(/(?:\r\n?|\n)/g);
839
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), n.length - 1 && (this.yylineno -= n.length - 1);
840
+ var i = this.yylloc.range;
841
+ return this.yylloc = {
842
+ first_line: this.yylloc.first_line,
843
+ last_line: this.yylineno + 1,
844
+ first_column: this.yylloc.first_column,
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
+ }, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
847
+ }, "unput"),
848
+ more: /* @__PURE__ */ u(function() {
849
+ return this._more = !0, this;
850
+ }, "more"),
851
+ reject: /* @__PURE__ */ u(function() {
852
+ if (this.options.backtrack_lexer) this._backtrack = !0;
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
+ text: "",
855
+ token: null,
856
+ line: this.yylineno
857
+ });
858
+ return this;
859
+ }, "reject"),
860
+ less: /* @__PURE__ */ u(function(e) {
861
+ this.unput(this.match.slice(e));
862
+ }, "less"),
863
+ pastInput: /* @__PURE__ */ u(function() {
864
+ var e = this.matched.substr(0, this.matched.length - this.match.length);
865
+ return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
866
+ }, "pastInput"),
867
+ upcomingInput: /* @__PURE__ */ u(function() {
868
+ var e = this.match;
869
+ return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
870
+ }, "upcomingInput"),
871
+ showPosition: /* @__PURE__ */ u(function() {
872
+ var e = this.pastInput(), t = Array(e.length + 1).join("-");
873
+ return e + this.upcomingInput() + "\n" + t + "^";
874
+ }, "showPosition"),
875
+ test_match: /* @__PURE__ */ u(function(e, t) {
876
+ var n, r, i;
877
+ if (this.options.backtrack_lexer && (i = {
878
+ yylineno: this.yylineno,
879
+ yylloc: {
880
+ first_line: this.yylloc.first_line,
881
+ last_line: this.last_line,
882
+ first_column: this.yylloc.first_column,
883
+ last_column: this.yylloc.last_column
884
+ },
885
+ yytext: this.yytext,
886
+ match: this.match,
887
+ matches: this.matches,
888
+ matched: this.matched,
889
+ yyleng: this.yyleng,
890
+ offset: this.offset,
891
+ _more: this._more,
892
+ _input: this._input,
893
+ yy: this.yy,
894
+ conditionStack: this.conditionStack.slice(0),
895
+ done: this.done
896
+ }, this.options.ranges && (i.yylloc.range = this.yylloc.range.slice(0))), r = e[0].match(/(?:\r\n?|\n).*/g), r && (this.yylineno += r.length), this.yylloc = {
897
+ first_line: this.yylloc.last_line,
898
+ last_line: this.yylineno + 1,
899
+ first_column: this.yylloc.last_column,
900
+ last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
901
+ }, this.yytext += e[0], this.match += e[0], this.matches = e, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(e[0].length), this.matched += e[0], n = this.performAction.call(this, this.yy, this, t, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), n) return n;
902
+ if (this._backtrack) {
903
+ for (var a in i) this[a] = i[a];
904
+ return !1;
905
+ }
906
+ return !1;
907
+ }, "test_match"),
908
+ next: /* @__PURE__ */ u(function() {
909
+ if (this.done) return this.EOF;
910
+ this._input || (this.done = !0);
911
+ var e, t, n, r;
912
+ this._more || (this.yytext = "", this.match = "");
913
+ for (var i = this._currentRules(), a = 0; a < i.length; a++) if (n = this._input.match(this.rules[i[a]]), n && (!t || n[0].length > t[0].length)) {
914
+ if (t = n, r = a, this.options.backtrack_lexer) {
915
+ if (e = this.test_match(n, i[a]), e !== !1) return e;
916
+ if (this._backtrack) {
917
+ t = !1;
918
+ continue;
919
+ } else return !1;
920
+ } else if (!this.options.flex) break;
921
+ }
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(), {
923
+ text: "",
924
+ token: null,
925
+ line: this.yylineno
926
+ });
927
+ }, "next"),
928
+ lex: /* @__PURE__ */ u(function() {
929
+ return this.next() || this.lex();
930
+ }, "lex"),
931
+ begin: /* @__PURE__ */ u(function(e) {
932
+ this.conditionStack.push(e);
933
+ }, "begin"),
934
+ popState: /* @__PURE__ */ u(function() {
935
+ return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
936
+ }, "popState"),
937
+ _currentRules: /* @__PURE__ */ u(function() {
938
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
939
+ }, "_currentRules"),
940
+ topState: /* @__PURE__ */ u(function(e) {
941
+ return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
942
+ }, "topState"),
943
+ pushState: /* @__PURE__ */ u(function(e) {
944
+ this.begin(e);
945
+ }, "pushState"),
946
+ stateStackSize: /* @__PURE__ */ u(function() {
947
+ return this.conditionStack.length;
948
+ }, "stateStackSize"),
949
+ options: { "case-insensitive": !0 },
950
+ performAction: /* @__PURE__ */ u(function(e, t, n, r) {
951
+ switch (n) {
952
+ case 0: return 38;
953
+ case 1: return 40;
954
+ case 2: return 39;
955
+ case 3: return 44;
956
+ case 4: return 51;
957
+ case 5: return 52;
958
+ case 6: return 53;
959
+ case 7: return 54;
960
+ case 8: break;
961
+ case 9: break;
962
+ case 10: return 5;
963
+ case 11: break;
964
+ case 12: break;
965
+ case 13: break;
966
+ case 14: break;
967
+ case 15: return this.pushState("SCALE"), 17;
968
+ case 16: return 18;
969
+ case 17:
970
+ this.popState();
971
+ break;
972
+ case 18: return this.begin("acc_title"), 33;
973
+ case 19: return this.popState(), "acc_title_value";
974
+ case 20: return this.begin("acc_descr"), 35;
975
+ case 21: return this.popState(), "acc_descr_value";
976
+ case 22:
977
+ this.begin("acc_descr_multiline");
978
+ break;
979
+ case 23:
980
+ this.popState();
981
+ break;
982
+ case 24: return "acc_descr_multiline_value";
983
+ case 25: return this.pushState("CLASSDEF"), 41;
984
+ case 26: return this.popState(), this.pushState("CLASSDEFID"), "DEFAULT_CLASSDEF_ID";
985
+ case 27: return this.popState(), this.pushState("CLASSDEFID"), 42;
986
+ case 28: return this.popState(), 43;
987
+ case 29: return this.pushState("CLASS"), 48;
988
+ case 30: return this.popState(), this.pushState("CLASS_STYLE"), 49;
989
+ case 31: return this.popState(), 50;
990
+ case 32: return this.pushState("STYLE"), 45;
991
+ case 33: return this.popState(), this.pushState("STYLEDEF_STYLES"), 46;
992
+ case 34: return this.popState(), 47;
993
+ case 35: return this.pushState("SCALE"), 17;
994
+ case 36: return 18;
995
+ case 37:
996
+ this.popState();
997
+ break;
998
+ case 38:
999
+ this.pushState("STATE");
1000
+ break;
1001
+ case 39: return this.popState(), t.yytext = t.yytext.slice(0, -8).trim(), 25;
1002
+ case 40: return this.popState(), t.yytext = t.yytext.slice(0, -8).trim(), 26;
1003
+ case 41: return this.popState(), t.yytext = t.yytext.slice(0, -10).trim(), 27;
1004
+ case 42: return this.popState(), t.yytext = t.yytext.slice(0, -8).trim(), 25;
1005
+ case 43: return this.popState(), t.yytext = t.yytext.slice(0, -8).trim(), 26;
1006
+ case 44: return this.popState(), t.yytext = t.yytext.slice(0, -10).trim(), 27;
1007
+ case 45: return 51;
1008
+ case 46: return 52;
1009
+ case 47: return 53;
1010
+ case 48: return 54;
1011
+ case 49:
1012
+ this.pushState("STATE_STRING");
1013
+ break;
1014
+ case 50: return this.pushState("STATE_ID"), "AS";
1015
+ case 51: return this.popState(), "ID";
1016
+ case 52:
1017
+ this.popState();
1018
+ break;
1019
+ case 53: return "STATE_DESCR";
1020
+ case 54: return 19;
1021
+ case 55:
1022
+ this.popState();
1023
+ break;
1024
+ case 56: return this.popState(), this.pushState("struct"), 20;
1025
+ case 57: break;
1026
+ case 58: return this.popState(), 21;
1027
+ case 59: break;
1028
+ case 60: return this.begin("NOTE"), 29;
1029
+ case 61: return this.popState(), this.pushState("NOTE_ID"), 59;
1030
+ case 62: return this.popState(), this.pushState("NOTE_ID"), 60;
1031
+ case 63:
1032
+ this.popState(), this.pushState("FLOATING_NOTE");
1033
+ break;
1034
+ case 64: return this.popState(), this.pushState("FLOATING_NOTE_ID"), "AS";
1035
+ case 65: break;
1036
+ case 66: return "NOTE_TEXT";
1037
+ case 67: return this.popState(), "ID";
1038
+ case 68: return this.popState(), this.pushState("NOTE_TEXT"), 24;
1039
+ case 69: return this.popState(), t.yytext = t.yytext.substr(2).trim(), 31;
1040
+ case 70: return this.popState(), t.yytext = t.yytext.slice(0, -8).trim(), 31;
1041
+ case 71: return 6;
1042
+ case 72: return 6;
1043
+ case 73: return 16;
1044
+ case 74: return 57;
1045
+ case 75: return 24;
1046
+ case 76: return t.yytext = t.yytext.trim(), 14;
1047
+ case 77: return 15;
1048
+ case 78: return 28;
1049
+ case 79: return 58;
1050
+ case 80: return 5;
1051
+ case 81: return "INVALID";
1052
+ }
1053
+ }, "anonymous"),
1054
+ rules: [
1055
+ /^(?:click\b)/i,
1056
+ /^(?:href\b)/i,
1057
+ /^(?:"[^"]*")/i,
1058
+ /^(?:default\b)/i,
1059
+ /^(?:.*direction\s+TB[^\n]*)/i,
1060
+ /^(?:.*direction\s+BT[^\n]*)/i,
1061
+ /^(?:.*direction\s+RL[^\n]*)/i,
1062
+ /^(?:.*direction\s+LR[^\n]*)/i,
1063
+ /^(?:%%(?!\{)[^\n]*)/i,
1064
+ /^(?:[^\}]%%[^\n]*)/i,
1065
+ /^(?:[\n]+)/i,
1066
+ /^(?:[\s]+)/i,
1067
+ /^(?:((?!\n)\s)+)/i,
1068
+ /^(?:#[^\n]*)/i,
1069
+ /^(?:%[^\n]*)/i,
1070
+ /^(?:scale\s+)/i,
1071
+ /^(?:\d+)/i,
1072
+ /^(?:\s+width\b)/i,
1073
+ /^(?:accTitle\s*:\s*)/i,
1074
+ /^(?:(?!\n||)*[^\n]*)/i,
1075
+ /^(?:accDescr\s*:\s*)/i,
1076
+ /^(?:(?!\n||)*[^\n]*)/i,
1077
+ /^(?:accDescr\s*\{\s*)/i,
1078
+ /^(?:[\}])/i,
1079
+ /^(?:[^\}]*)/i,
1080
+ /^(?:classDef\s+)/i,
1081
+ /^(?:DEFAULT\s+)/i,
1082
+ /^(?:\w+\s+)/i,
1083
+ /^(?:[^\n]*)/i,
1084
+ /^(?:class\s+)/i,
1085
+ /^(?:(\w+)+((,\s*\w+)*))/i,
1086
+ /^(?:[^\n]*)/i,
1087
+ /^(?:style\s+)/i,
1088
+ /^(?:[\w,]+\s+)/i,
1089
+ /^(?:[^\n]*)/i,
1090
+ /^(?:scale\s+)/i,
1091
+ /^(?:\d+)/i,
1092
+ /^(?:\s+width\b)/i,
1093
+ /^(?:state\s+)/i,
1094
+ /^(?:.*<<fork>>)/i,
1095
+ /^(?:.*<<join>>)/i,
1096
+ /^(?:.*<<choice>>)/i,
1097
+ /^(?:.*\[\[fork\]\])/i,
1098
+ /^(?:.*\[\[join\]\])/i,
1099
+ /^(?:.*\[\[choice\]\])/i,
1100
+ /^(?:.*direction\s+TB[^\n]*)/i,
1101
+ /^(?:.*direction\s+BT[^\n]*)/i,
1102
+ /^(?:.*direction\s+RL[^\n]*)/i,
1103
+ /^(?:.*direction\s+LR[^\n]*)/i,
1104
+ /^(?:["])/i,
1105
+ /^(?:\s*as\s+)/i,
1106
+ /^(?:[^\n\{]*)/i,
1107
+ /^(?:["])/i,
1108
+ /^(?:[^"]*)/i,
1109
+ /^(?:[^\n\s\{]+)/i,
1110
+ /^(?:\n)/i,
1111
+ /^(?:\{)/i,
1112
+ /^(?:%%(?!\{)[^\n]*)/i,
1113
+ /^(?:\})/i,
1114
+ /^(?:[\n])/i,
1115
+ /^(?:note\s+)/i,
1116
+ /^(?:left of\b)/i,
1117
+ /^(?:right of\b)/i,
1118
+ /^(?:")/i,
1119
+ /^(?:\s*as\s*)/i,
1120
+ /^(?:["])/i,
1121
+ /^(?:[^"]*)/i,
1122
+ /^(?:[^\n]*)/i,
1123
+ /^(?:\s*[^:\n\s\-]+)/i,
1124
+ /^(?:\s*:[^:\n;]+)/i,
1125
+ /^(?:[\s\S]*?end note\b)/i,
1126
+ /^(?:stateDiagram\s+)/i,
1127
+ /^(?:stateDiagram-v2\s+)/i,
1128
+ /^(?:hide empty description\b)/i,
1129
+ /^(?:\[\*\])/i,
1130
+ /^(?:[^:\n\s\-\{]+)/i,
1131
+ /^(?:\s*:(?:[^:\n;]|:[^:\n;])+)/i,
1132
+ /^(?:-->)/i,
1133
+ /^(?:--)/i,
1134
+ /^(?::::)/i,
1135
+ /^(?:$)/i,
1136
+ /^(?:.)/i
1137
+ ],
1138
+ conditions: {
1139
+ LINE: {
1140
+ rules: [12, 13],
1141
+ inclusive: !1
1142
+ },
1143
+ struct: {
1144
+ rules: [
1145
+ 12,
1146
+ 13,
1147
+ 25,
1148
+ 29,
1149
+ 32,
1150
+ 38,
1151
+ 45,
1152
+ 46,
1153
+ 47,
1154
+ 48,
1155
+ 57,
1156
+ 58,
1157
+ 59,
1158
+ 60,
1159
+ 74,
1160
+ 75,
1161
+ 76,
1162
+ 77,
1163
+ 78,
1164
+ 79
1165
+ ],
1166
+ inclusive: !1
1167
+ },
1168
+ FLOATING_NOTE_ID: {
1169
+ rules: [67],
1170
+ inclusive: !1
1171
+ },
1172
+ FLOATING_NOTE: {
1173
+ rules: [
1174
+ 64,
1175
+ 65,
1176
+ 66
1177
+ ],
1178
+ inclusive: !1
1179
+ },
1180
+ NOTE_TEXT: {
1181
+ rules: [69, 70],
1182
+ inclusive: !1
1183
+ },
1184
+ NOTE_ID: {
1185
+ rules: [68],
1186
+ inclusive: !1
1187
+ },
1188
+ NOTE: {
1189
+ rules: [
1190
+ 61,
1191
+ 62,
1192
+ 63
1193
+ ],
1194
+ inclusive: !1
1195
+ },
1196
+ STYLEDEF_STYLEOPTS: {
1197
+ rules: [],
1198
+ inclusive: !1
1199
+ },
1200
+ STYLEDEF_STYLES: {
1201
+ rules: [34],
1202
+ inclusive: !1
1203
+ },
1204
+ STYLE_IDS: {
1205
+ rules: [],
1206
+ inclusive: !1
1207
+ },
1208
+ STYLE: {
1209
+ rules: [33],
1210
+ inclusive: !1
1211
+ },
1212
+ CLASS_STYLE: {
1213
+ rules: [31],
1214
+ inclusive: !1
1215
+ },
1216
+ CLASS: {
1217
+ rules: [30],
1218
+ inclusive: !1
1219
+ },
1220
+ CLASSDEFID: {
1221
+ rules: [28],
1222
+ inclusive: !1
1223
+ },
1224
+ CLASSDEF: {
1225
+ rules: [26, 27],
1226
+ inclusive: !1
1227
+ },
1228
+ acc_descr_multiline: {
1229
+ rules: [23, 24],
1230
+ inclusive: !1
1231
+ },
1232
+ acc_descr: {
1233
+ rules: [21],
1234
+ inclusive: !1
1235
+ },
1236
+ acc_title: {
1237
+ rules: [19],
1238
+ inclusive: !1
1239
+ },
1240
+ SCALE: {
1241
+ rules: [
1242
+ 16,
1243
+ 17,
1244
+ 36,
1245
+ 37
1246
+ ],
1247
+ inclusive: !1
1248
+ },
1249
+ ALIAS: {
1250
+ rules: [],
1251
+ inclusive: !1
1252
+ },
1253
+ STATE_ID: {
1254
+ rules: [51],
1255
+ inclusive: !1
1256
+ },
1257
+ STATE_STRING: {
1258
+ rules: [52, 53],
1259
+ inclusive: !1
1260
+ },
1261
+ FORK_STATE: {
1262
+ rules: [],
1263
+ inclusive: !1
1264
+ },
1265
+ STATE: {
1266
+ rules: [
1267
+ 12,
1268
+ 13,
1269
+ 39,
1270
+ 40,
1271
+ 41,
1272
+ 42,
1273
+ 43,
1274
+ 44,
1275
+ 49,
1276
+ 50,
1277
+ 54,
1278
+ 55,
1279
+ 56
1280
+ ],
1281
+ inclusive: !1
1282
+ },
1283
+ ID: {
1284
+ rules: [12, 13],
1285
+ inclusive: !1
1286
+ },
1287
+ INITIAL: {
1288
+ rules: [
1289
+ 0,
1290
+ 1,
1291
+ 2,
1292
+ 3,
1293
+ 4,
1294
+ 5,
1295
+ 6,
1296
+ 7,
1297
+ 8,
1298
+ 9,
1299
+ 10,
1300
+ 11,
1301
+ 13,
1302
+ 14,
1303
+ 15,
1304
+ 18,
1305
+ 20,
1306
+ 22,
1307
+ 25,
1308
+ 29,
1309
+ 32,
1310
+ 35,
1311
+ 38,
1312
+ 56,
1313
+ 60,
1314
+ 71,
1315
+ 72,
1316
+ 73,
1317
+ 74,
1318
+ 75,
1319
+ 76,
1320
+ 77,
1321
+ 79,
1322
+ 80,
1323
+ 81
1324
+ ],
1325
+ inclusive: !0
1326
+ }
1327
+ }
1328
+ };
1329
+ })();
1330
+ function P() {
1331
+ this.yy = {};
1332
+ }
1333
+ return u(P, "Parser"), P.prototype = N, N.Parser = P, new P();
1334
+ })();
1335
+ g.parser = g;
1336
+ 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__ */ u((e, t = y) => {
1337
+ if (!e.doc) return t;
1338
+ let n = t;
1339
+ for (let t of e.doc) t.stmt === "dir" && (n = t.value);
1340
+ return n;
1341
+ }, "getDir"), pe = {
1342
+ getClasses: /* @__PURE__ */ u(function(e, t) {
1343
+ return t.db.getClasses();
1344
+ }, "getClasses"),
1345
+ draw: /* @__PURE__ */ u(async function(e, t, n, r) {
1346
+ l.info("REF0:"), l.info("Drawing state diagram (v2)", t);
1347
+ let { securityLevel: i, state: a, layout: s } = o();
1348
+ r.db.extract(r.db.getRootDocV2());
1349
+ let c = r.db.getData(), u = m(t, i);
1350
+ c.type = r.type, c.layoutAlgorithm = s, c.nodeSpacing = a?.nodeSpacing || 50, c.rankSpacing = a?.rankSpacing || 50, o().look === "neo" ? c.markers = ["barbNeo"] : c.markers = ["barb"], c.diagramId = t, await p(c, u);
1351
+ try {
1352
+ (typeof r.db.getLinks == "function" ? r.db.getLinks() : /* @__PURE__ */ new Map()).forEach((e, t) => {
1353
+ let n = typeof t == "string" ? t : typeof t?.id == "string" ? t.id : "";
1354
+ if (!n) {
1355
+ l.warn("⚠️ Invalid or missing stateId from key:", JSON.stringify(t));
1356
+ return;
1357
+ }
1358
+ let r = u.node()?.querySelectorAll("g"), i;
1359
+ if (r?.forEach((e) => {
1360
+ e.textContent?.trim() === n && (i = e);
1361
+ }), !i) {
1362
+ l.warn("⚠️ Could not find node matching text:", n);
1363
+ return;
1364
+ }
1365
+ let a = i.parentNode;
1366
+ if (!a) {
1367
+ l.warn("⚠️ Node has no parent, cannot wrap:", n);
1368
+ return;
1369
+ }
1370
+ let o = document.createElementNS("http://www.w3.org/2000/svg", "a"), s = e.url.replace(/^"+|"+$/g, "");
1371
+ if (o.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", s), o.setAttribute("target", "_blank"), e.tooltip) {
1372
+ let t = e.tooltip.replace(/^"+|"+$/g, "");
1373
+ o.setAttribute("title", t);
1374
+ }
1375
+ a.replaceChild(o, i), o.appendChild(i), l.info("🔗 Wrapped node in <a> tag for:", n, e.url);
1376
+ });
1377
+ } catch (e) {
1378
+ l.error("❌ Error injecting clickable links:", e);
1379
+ }
1380
+ d.insertTitle(u, "statediagramTitleText", a?.titleTopMargin ?? 25, r.db.getDiagramTitle()), h(u, 8, R, a?.useMaxWidth ?? !0);
1381
+ }, "draw"),
1382
+ getDir: U
1383
+ }, W = /* @__PURE__ */ new Map(), G = 0;
1384
+ function K(e = "", t = 0, n = "", r = V) {
1385
+ return `${de}-${e}${n !== null && n.length > 0 ? `${r}${n}` : ""}-${t}`;
1386
+ }
1387
+ u(K, "stateDomId");
1388
+ var me = /* @__PURE__ */ u((e, t, n, r, i, a, c, u) => {
1389
+ l.trace("items", t), t.forEach((t) => {
1390
+ switch (t.stmt) {
1391
+ case x:
1392
+ X(e, t, n, r, i, a, c, u);
1393
+ break;
1394
+ case D:
1395
+ X(e, t, n, r, i, a, c, u);
1396
+ break;
1397
+ case C:
1398
+ {
1399
+ X(e, t.state1, n, r, i, a, c, u), X(e, t.state2, n, r, i, a, c, u);
1400
+ let l = c === "neo", d = {
1401
+ id: "edge" + G,
1402
+ start: t.state1.id,
1403
+ end: t.state2.id,
1404
+ arrowhead: "normal",
1405
+ arrowTypeEnd: l ? "arrow_barb_neo" : "arrow_barb",
1406
+ style: k,
1407
+ labelStyle: "",
1408
+ label: s.sanitizeText(t.description ?? "", o()),
1409
+ arrowheadStyle: A,
1410
+ labelpos: j,
1411
+ labelType: M,
1412
+ thickness: N,
1413
+ classes: ae,
1414
+ look: c
1415
+ };
1416
+ i.push(d), G++;
1417
+ }
1418
+ break;
1419
+ }
1420
+ });
1421
+ }, "setupDoc"), q = /* @__PURE__ */ u((e, t = y) => {
1422
+ let n = t;
1423
+ if (e.doc) for (let t of e.doc) t.stmt === "dir" && (n = t.value);
1424
+ return n;
1425
+ }, "getDir");
1426
+ function J(e, t, n) {
1427
+ if (!t.id || t.id === "</join></fork>" || t.id === "</choice>") return;
1428
+ t.cssClasses && (Array.isArray(t.cssCompiledStyles) || (t.cssCompiledStyles = []), t.cssClasses.split(" ").forEach((e) => {
1429
+ let r = n.get(e);
1430
+ r && (t.cssCompiledStyles = [...t.cssCompiledStyles ?? [], ...r.styles]);
1431
+ }));
1432
+ let r = e.find((e) => e.id === t.id);
1433
+ r ? Object.assign(r, t) : e.push(t);
1434
+ }
1435
+ u(J, "insertOrUpdateNode");
1436
+ function Y(e) {
1437
+ return e?.classes?.join(" ") ?? "";
1438
+ }
1439
+ u(Y, "getClassesFromDbInfo");
1440
+ function he(e) {
1441
+ return e?.styles ?? [];
1442
+ }
1443
+ u(he, "getStylesFromDbInfo");
1444
+ var X = /* @__PURE__ */ u((e, t, n, r, i, a, c, u) => {
1445
+ let d = t.id, f = n.get(d), p = Y(f), m = he(f), h = o();
1446
+ if (l.info("dataFetcher parsedItem", t, f, m), d !== "root") {
1447
+ let n = P;
1448
+ t.start === !0 ? n = ee : t.start === !1 && (n = te), t.type !== D && (n = t.type), W.get(d) || W.set(d, {
1449
+ id: d,
1450
+ shape: n,
1451
+ description: s.sanitizeText(d, h),
1452
+ cssClasses: `${p} ${ie}`,
1453
+ cssStyles: m
1454
+ });
1455
+ let o = W.get(d);
1456
+ t.description && (Array.isArray(o.description) ? (o.shape = F, o.description.push(t.description)) : o.description?.length && o.description.length > 0 ? (o.shape = F, o.description === d ? o.description = [t.description] : o.description = [o.description, t.description]) : (o.shape = P, o.description = t.description), o.description = s.sanitizeTextOrArray(o.description, h)), o.description?.length === 1 && o.shape === F && (o.type === "group" ? o.shape = L : o.shape = P), !o.type && t.doc && (l.info("Setting cluster for XCX", d, q(t)), o.type = "group", o.isGroup = !0, o.dir = q(t), o.shape = t.type === O ? I : L, o.cssClasses = `${o.cssClasses} ${le} ${a ? ue : ""}`);
1457
+ let f = {
1458
+ labelStyle: "",
1459
+ shape: o.shape,
1460
+ label: o.description,
1461
+ cssClasses: o.cssClasses,
1462
+ cssCompiledStyles: [],
1463
+ cssStyles: o.cssStyles,
1464
+ id: d,
1465
+ dir: o.dir,
1466
+ domId: K(d, G),
1467
+ type: o.type,
1468
+ isGroup: o.type === "group",
1469
+ padding: 8,
1470
+ rx: 10,
1471
+ ry: 10,
1472
+ look: c,
1473
+ labelType: "markdown"
1474
+ };
1475
+ if (f.shape === I && (f.label = ""), e && e.id !== "root" && (l.trace("Setting node ", d, " to be child of its parent ", e.id), f.parentId = e.id), f.centerLabel = !0, t.note) {
1476
+ let e = {
1477
+ labelStyle: "",
1478
+ shape: ne,
1479
+ label: t.note.text,
1480
+ labelType: "markdown",
1481
+ cssClasses: ce,
1482
+ cssStyles: [],
1483
+ cssCompiledStyles: [],
1484
+ id: d + fe + "-" + G,
1485
+ domId: K(d, G, B),
1486
+ type: o.type,
1487
+ isGroup: o.type === "group",
1488
+ padding: h.flowchart?.padding,
1489
+ look: c,
1490
+ position: t.note.position
1491
+ }, n = d + H, a = {
1492
+ labelStyle: "",
1493
+ shape: re,
1494
+ label: t.note.text,
1495
+ cssClasses: o.cssClasses,
1496
+ cssStyles: [],
1497
+ id: d + H,
1498
+ domId: K(d, G, z),
1499
+ type: "group",
1500
+ isGroup: !0,
1501
+ padding: 16,
1502
+ look: c,
1503
+ position: t.note.position
1504
+ };
1505
+ G++, a.id = n, e.parentId = n, J(r, a, u), J(r, e, u), J(r, f, u);
1506
+ let s = d, l = e.id;
1507
+ t.note.position === "left of" && (s = e.id, l = d), i.push({
1508
+ id: s + "-" + l,
1509
+ start: s,
1510
+ end: l,
1511
+ arrowhead: "none",
1512
+ arrowTypeEnd: "",
1513
+ style: k,
1514
+ labelStyle: "",
1515
+ classes: se,
1516
+ arrowheadStyle: A,
1517
+ labelpos: j,
1518
+ labelType: M,
1519
+ thickness: N,
1520
+ look: c
1521
+ });
1522
+ } else J(r, f, u);
1523
+ }
1524
+ t.doc && (l.trace("Adding nodes children "), me(t, t.doc, n, r, i, !a, c, u));
1525
+ }, "dataFetcher"), ge = /* @__PURE__ */ u(() => {
1526
+ W.clear(), G = 0;
1527
+ }, "reset"), Z = {
1528
+ START_NODE: "[*]",
1529
+ START_TYPE: "start",
1530
+ END_NODE: "[*]",
1531
+ END_TYPE: "end",
1532
+ COLOR_KEYWORD: "color",
1533
+ FILL_KEYWORD: "fill",
1534
+ BG_FILL: "bgFill",
1535
+ STYLECLASS_SEP: ","
1536
+ }, _e = /* @__PURE__ */ u(() => /* @__PURE__ */ new Map(), "newClassesList"), Q = /* @__PURE__ */ u(() => ({
1537
+ relations: [],
1538
+ states: /* @__PURE__ */ new Map(),
1539
+ documents: {}
1540
+ }), "newDoc"), $ = /* @__PURE__ */ u((e) => JSON.parse(JSON.stringify(e)), "clone"), ve = class {
1541
+ constructor(a) {
1542
+ this.version = a, 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 = c, this.setAccTitle = n, this.getAccDescription = i, this.setAccDescription = e, this.setDiagramTitle = r, this.getDiagramTitle = t, 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);
1543
+ }
1544
+ static {
1545
+ u(this, "StateDB");
1546
+ }
1547
+ static {
1548
+ this.relationType = {
1549
+ AGGREGATION: 0,
1550
+ EXTENSION: 1,
1551
+ COMPOSITION: 2,
1552
+ DEPENDENCY: 3
1553
+ };
1554
+ }
1555
+ extract(e) {
1556
+ this.clear(!0);
1557
+ for (let t of Array.isArray(e) ? e : e.doc) switch (t.stmt) {
1558
+ case x:
1559
+ this.addState(t.id.trim(), t.type, t.doc, t.description, t.note);
1560
+ break;
1561
+ case C:
1562
+ this.addRelation(t.state1, t.state2, t.description);
1563
+ break;
1564
+ case w:
1565
+ this.addStyleClass(t.id.trim(), t.classes);
1566
+ break;
1567
+ case T:
1568
+ this.handleStyleDef(t);
1569
+ break;
1570
+ case E:
1571
+ this.setCssClass(t.id.trim(), t.styleClass);
1572
+ break;
1573
+ case "click":
1574
+ this.addLink(t.id, t.url, t.tooltip);
1575
+ break;
1576
+ }
1577
+ let t = this.getStates(), n = o();
1578
+ ge(), X(void 0, this.getRootDocV2(), t, this.nodes, this.edges, !0, n.look, this.classes);
1579
+ for (let e of this.nodes) if (Array.isArray(e.label)) {
1580
+ 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}]`);
1581
+ e.label = e.label[0];
1582
+ }
1583
+ }
1584
+ handleStyleDef(e) {
1585
+ let t = e.id.trim().split(","), n = e.styleClass.split(",");
1586
+ for (let e of t) {
1587
+ let t = this.getState(e);
1588
+ if (!t) {
1589
+ let n = e.trim();
1590
+ this.addState(n), t = this.getState(n);
1591
+ }
1592
+ t && (t.styles = n.map((e) => e.replace(/;/g, "")?.trim()));
1593
+ }
1594
+ }
1595
+ setRootDoc(e) {
1596
+ l.info("Setting root doc", e), this.rootDoc = e, this.version === 1 ? this.extract(e) : this.extract(this.getRootDocV2());
1597
+ }
1598
+ docTranslator(e, t, n) {
1599
+ if (t.stmt === C) {
1600
+ this.docTranslator(e, t.state1, !0), this.docTranslator(e, t.state2, !1);
1601
+ return;
1602
+ }
1603
+ 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;
1604
+ let r = [], i = [];
1605
+ for (let e of t.doc) if (e.type === O) {
1606
+ let t = $(e);
1607
+ t.doc = $(i), r.push(t), i = [];
1608
+ } else i.push(e);
1609
+ if (r.length > 0 && i.length > 0) {
1610
+ let e = {
1611
+ stmt: x,
1612
+ id: f(),
1613
+ type: "divider",
1614
+ doc: $(i)
1615
+ };
1616
+ r.push($(e)), t.doc = r;
1617
+ }
1618
+ t.doc.forEach((e) => this.docTranslator(t, e, !0));
1619
+ }
1620
+ getRootDocV2() {
1621
+ return this.docTranslator({
1622
+ id: S,
1623
+ stmt: S
1624
+ }, {
1625
+ id: S,
1626
+ stmt: S,
1627
+ doc: this.rootDoc
1628
+ }, !0), {
1629
+ id: S,
1630
+ doc: this.rootDoc
1631
+ };
1632
+ }
1633
+ addState(e, t = D, n = void 0, r = void 0, i = void 0, a = void 0, c = void 0, u = void 0) {
1634
+ let d = e?.trim();
1635
+ if (!this.currentDocument.states.has(d)) l.info("Adding state ", d, r), this.currentDocument.states.set(d, {
1636
+ stmt: x,
1637
+ id: d,
1638
+ descriptions: [],
1639
+ type: t,
1640
+ doc: n,
1641
+ note: i,
1642
+ classes: [],
1643
+ styles: [],
1644
+ textStyles: []
1645
+ });
1646
+ else {
1647
+ let e = this.currentDocument.states.get(d);
1648
+ if (!e) throw Error(`State not found: ${d}`);
1649
+ e.doc ||= n, e.type ||= t;
1650
+ }
1651
+ if (r && (l.info("Setting state description", d, r), (Array.isArray(r) ? r : [r]).forEach((e) => this.addDescription(d, e.trim()))), i) {
1652
+ let e = this.currentDocument.states.get(d);
1653
+ if (!e) throw Error(`State not found: ${d}`);
1654
+ e.note = i, e.note.text = s.sanitizeText(e.note.text, o());
1655
+ }
1656
+ a && (l.info("Setting state classes", d, a), (Array.isArray(a) ? a : [a]).forEach((e) => this.setCssClass(d, e.trim()))), c && (l.info("Setting state styles", d, c), (Array.isArray(c) ? c : [c]).forEach((e) => this.setStyle(d, e.trim()))), u && (l.info("Setting state styles", d, c), (Array.isArray(u) ? u : [u]).forEach((e) => this.setTextStyle(d, e.trim())));
1657
+ }
1658
+ clear(e) {
1659
+ 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());
1660
+ }
1661
+ getState(e) {
1662
+ return this.currentDocument.states.get(e);
1663
+ }
1664
+ getStates() {
1665
+ return this.currentDocument.states;
1666
+ }
1667
+ logDocuments() {
1668
+ l.info("Documents = ", this.documents);
1669
+ }
1670
+ getRelations() {
1671
+ return this.currentDocument.relations;
1672
+ }
1673
+ addLink(e, t, n) {
1674
+ this.links.set(e, {
1675
+ url: t,
1676
+ tooltip: n
1677
+ }), l.warn("Adding link", e, t, n);
1678
+ }
1679
+ getLinks() {
1680
+ return this.links;
1681
+ }
1682
+ startIdIfNeeded(e = "") {
1683
+ return e === Z.START_NODE ? (this.startEndCount++, `${Z.START_TYPE}${this.startEndCount}`) : e;
1684
+ }
1685
+ startTypeIfNeeded(e = "", t = D) {
1686
+ return e === Z.START_NODE ? Z.START_TYPE : t;
1687
+ }
1688
+ endIdIfNeeded(e = "") {
1689
+ return e === Z.END_NODE ? (this.startEndCount++, `${Z.END_TYPE}${this.startEndCount}`) : e;
1690
+ }
1691
+ endTypeIfNeeded(e = "", t = D) {
1692
+ return e === Z.END_NODE ? Z.END_TYPE : t;
1693
+ }
1694
+ addRelationObjs(e, t, n = "") {
1695
+ let r = this.startIdIfNeeded(e.id.trim()), i = this.startTypeIfNeeded(e.id.trim(), e.type), a = this.startIdIfNeeded(t.id.trim()), c = this.startTypeIfNeeded(t.id.trim(), t.type);
1696
+ this.addState(r, i, e.doc, e.description, e.note, e.classes, e.styles, e.textStyles), this.addState(a, c, t.doc, t.description, t.note, t.classes, t.styles, t.textStyles), this.currentDocument.relations.push({
1697
+ id1: r,
1698
+ id2: a,
1699
+ relationTitle: s.sanitizeText(n, o())
1700
+ });
1701
+ }
1702
+ addRelation(e, t, n) {
1703
+ if (typeof e == "object" && typeof t == "object") this.addRelationObjs(e, t, n);
1704
+ else if (typeof e == "string" && typeof t == "string") {
1705
+ let r = this.startIdIfNeeded(e.trim()), i = this.startTypeIfNeeded(e), a = this.endIdIfNeeded(t.trim()), c = this.endTypeIfNeeded(t);
1706
+ this.addState(r, i), this.addState(a, c), this.currentDocument.relations.push({
1707
+ id1: r,
1708
+ id2: a,
1709
+ relationTitle: n ? s.sanitizeText(n, o()) : void 0
1710
+ });
1711
+ }
1712
+ }
1713
+ addDescription(e, t) {
1714
+ let n = this.currentDocument.states.get(e), r = t.startsWith(":") ? t.replace(":", "").trim() : t;
1715
+ n?.descriptions?.push(s.sanitizeText(r, o()));
1716
+ }
1717
+ cleanupLabel(e) {
1718
+ return e.startsWith(":") ? e.slice(2).trim() : e.trim();
1719
+ }
1720
+ getDividerId() {
1721
+ return this.dividerCnt++, `divider-id-${this.dividerCnt}`;
1722
+ }
1723
+ addStyleClass(e, t = "") {
1724
+ this.classes.has(e) || this.classes.set(e, {
1725
+ id: e,
1726
+ styles: [],
1727
+ textStyles: []
1728
+ });
1729
+ let n = this.classes.get(e);
1730
+ t && n && t.split(Z.STYLECLASS_SEP).forEach((e) => {
1731
+ let t = e.replace(/([^;]*);/, "$1").trim();
1732
+ if (RegExp(Z.COLOR_KEYWORD).exec(e)) {
1733
+ let e = t.replace(Z.FILL_KEYWORD, Z.BG_FILL).replace(Z.COLOR_KEYWORD, Z.FILL_KEYWORD);
1734
+ n.textStyles.push(e);
1735
+ }
1736
+ n.styles.push(t);
1737
+ });
1738
+ }
1739
+ getClasses() {
1740
+ return this.classes;
1741
+ }
1742
+ setCssClass(e, t) {
1743
+ e.split(",").forEach((e) => {
1744
+ let n = this.getState(e);
1745
+ if (!n) {
1746
+ let t = e.trim();
1747
+ this.addState(t), n = this.getState(t);
1748
+ }
1749
+ n?.classes?.push(t);
1750
+ });
1751
+ }
1752
+ setStyle(e, t) {
1753
+ this.getState(e)?.styles?.push(t);
1754
+ }
1755
+ setTextStyle(e, t) {
1756
+ this.getState(e)?.textStyles?.push(t);
1757
+ }
1758
+ getDirectionStatement() {
1759
+ return this.rootDoc.find((e) => e.stmt === b);
1760
+ }
1761
+ getDirection() {
1762
+ return this.getDirectionStatement()?.value ?? v;
1763
+ }
1764
+ setDirection(e) {
1765
+ let t = this.getDirectionStatement();
1766
+ t ? t.value = e : this.rootDoc.unshift({
1767
+ stmt: b,
1768
+ value: e
1769
+ });
1770
+ }
1771
+ trimColon(e) {
1772
+ return e.startsWith(":") ? e.slice(1).trim() : e.trim();
1773
+ }
1774
+ getData() {
1775
+ let e = o();
1776
+ return {
1777
+ nodes: this.nodes,
1778
+ edges: this.edges,
1779
+ other: {},
1780
+ config: e,
1781
+ direction: U(this.getRootDocV2())
1782
+ };
1783
+ }
1784
+ getConfig() {
1785
+ return o().state;
1786
+ }
1787
+ }, ye = /* @__PURE__ */ u((e) => `
1788
+ defs [id$="-barbEnd"] {
1789
+ fill: ${e.transitionColor};
1790
+ stroke: ${e.transitionColor};
1791
+ }
1792
+ g.stateGroup text {
1793
+ fill: ${e.nodeBorder};
1794
+ stroke: none;
1795
+ font-size: 10px;
1796
+ }
1797
+ g.stateGroup text {
1798
+ fill: ${e.textColor};
1799
+ stroke: none;
1800
+ font-size: 10px;
1801
+
1802
+ }
1803
+ g.stateGroup .state-title {
1804
+ font-weight: bolder;
1805
+ fill: ${e.stateLabelColor};
1806
+ }
1807
+
1808
+ g.stateGroup rect {
1809
+ fill: ${e.mainBkg};
1810
+ stroke: ${e.nodeBorder};
1811
+ }
1812
+
1813
+ g.stateGroup line {
1814
+ stroke: ${e.lineColor};
1815
+ stroke-width: ${e.strokeWidth || 1};
1816
+ }
1817
+
1818
+ .transition {
1819
+ stroke: ${e.transitionColor};
1820
+ stroke-width: ${e.strokeWidth || 1};
1821
+ fill: none;
1822
+ }
1823
+
1824
+ .stateGroup .composit {
1825
+ fill: ${e.background};
1826
+ border-bottom: 1px
1827
+ }
1828
+
1829
+ .stateGroup .alt-composit {
1830
+ fill: #e0e0e0;
1831
+ border-bottom: 1px
1832
+ }
1833
+
1834
+ .state-note {
1835
+ stroke: ${e.noteBorderColor};
1836
+ fill: ${e.noteBkgColor};
1837
+
1838
+ text {
1839
+ fill: ${e.noteTextColor};
1840
+ stroke: none;
1841
+ font-size: 10px;
1842
+ }
1843
+ }
1844
+
1845
+ .stateLabel .box {
1846
+ stroke: none;
1847
+ stroke-width: 0;
1848
+ fill: ${e.mainBkg};
1849
+ opacity: 0.5;
1850
+ }
1851
+
1852
+ .edgeLabel .label rect {
1853
+ fill: ${e.labelBackgroundColor};
1854
+ opacity: 0.5;
1855
+ }
1856
+ .edgeLabel {
1857
+ background-color: ${e.edgeLabelBackground};
1858
+ p {
1859
+ background-color: ${e.edgeLabelBackground};
1860
+ }
1861
+ rect {
1862
+ opacity: 0.5;
1863
+ background-color: ${e.edgeLabelBackground};
1864
+ fill: ${e.edgeLabelBackground};
1865
+ }
1866
+ text-align: center;
1867
+ }
1868
+ .edgeLabel .label text {
1869
+ fill: ${e.transitionLabelColor || e.tertiaryTextColor};
1870
+ }
1871
+ .label div .edgeLabel {
1872
+ color: ${e.transitionLabelColor || e.tertiaryTextColor};
1873
+ }
1874
+
1875
+ .stateLabel text {
1876
+ fill: ${e.stateLabelColor};
1877
+ font-size: 10px;
1878
+ font-weight: bold;
1879
+ }
1880
+
1881
+ .node circle.state-start {
1882
+ fill: ${e.specialStateColor};
1883
+ stroke: ${e.specialStateColor};
1884
+ }
1885
+
1886
+ .node .fork-join {
1887
+ fill: ${e.specialStateColor};
1888
+ stroke: ${e.specialStateColor};
1889
+ }
1890
+
1891
+ .node circle.state-end {
1892
+ fill: ${e.innerEndBackground};
1893
+ stroke: ${e.background};
1894
+ stroke-width: 1.5
1895
+ }
1896
+ .end-state-inner {
1897
+ fill: ${e.compositeBackground || e.background};
1898
+ // stroke: ${e.background};
1899
+ stroke-width: 1.5
1900
+ }
1901
+
1902
+ .node rect {
1903
+ fill: ${e.stateBkg || e.mainBkg};
1904
+ stroke: ${e.stateBorder || e.nodeBorder};
1905
+ stroke-width: ${e.strokeWidth || 1}px;
1906
+ }
1907
+ .node polygon {
1908
+ fill: ${e.mainBkg};
1909
+ stroke: ${e.stateBorder || e.nodeBorder};;
1910
+ stroke-width: ${e.strokeWidth || 1}px;
1911
+ }
1912
+ [id$="-barbEnd"] {
1913
+ fill: ${e.lineColor};
1914
+ }
1915
+
1916
+ .statediagram-cluster rect {
1917
+ fill: ${e.compositeTitleBackground};
1918
+ stroke: ${e.stateBorder || e.nodeBorder};
1919
+ stroke-width: ${e.strokeWidth || 1}px;
1920
+ }
1921
+
1922
+ .cluster-label, .nodeLabel {
1923
+ color: ${e.stateLabelColor};
1924
+ // line-height: 1;
1925
+ }
1926
+
1927
+ .statediagram-cluster rect.outer {
1928
+ rx: 5px;
1929
+ ry: 5px;
1930
+ }
1931
+ .statediagram-state .divider {
1932
+ stroke: ${e.stateBorder || e.nodeBorder};
1933
+ }
1934
+
1935
+ .statediagram-state .title-state {
1936
+ rx: 5px;
1937
+ ry: 5px;
1938
+ }
1939
+ .statediagram-cluster.statediagram-cluster .inner {
1940
+ fill: ${e.compositeBackground || e.background};
1941
+ }
1942
+ .statediagram-cluster.statediagram-cluster-alt .inner {
1943
+ fill: ${e.altBackground ? e.altBackground : "#efefef"};
1944
+ }
1945
+
1946
+ .statediagram-cluster .inner {
1947
+ rx:0;
1948
+ ry:0;
1949
+ }
1950
+
1951
+ .statediagram-state rect.basic {
1952
+ rx: 5px;
1953
+ ry: 5px;
1954
+ }
1955
+ .statediagram-state rect.divider {
1956
+ stroke-dasharray: 10,10;
1957
+ fill: ${e.altBackground ? e.altBackground : "#efefef"};
1958
+ }
1959
+
1960
+ .note-edge {
1961
+ stroke-dasharray: 5;
1962
+ }
1963
+
1964
+ .statediagram-note rect {
1965
+ fill: ${e.noteBkgColor};
1966
+ stroke: ${e.noteBorderColor};
1967
+ stroke-width: 1px;
1968
+ rx: 0;
1969
+ ry: 0;
1970
+ }
1971
+ .statediagram-note rect {
1972
+ fill: ${e.noteBkgColor};
1973
+ stroke: ${e.noteBorderColor};
1974
+ stroke-width: 1px;
1975
+ rx: 0;
1976
+ ry: 0;
1977
+ }
1978
+
1979
+ .statediagram-note text {
1980
+ fill: ${e.noteTextColor};
1981
+ }
1982
+
1983
+ .statediagram-note .nodeLabel {
1984
+ color: ${e.noteTextColor};
1985
+ }
1986
+ .statediagram .edgeLabel {
1987
+ color: red; // ${e.noteTextColor};
1988
+ }
1989
+
1990
+ [id$="-dependencyStart"], [id$="-dependencyEnd"] {
1991
+ fill: ${e.lineColor};
1992
+ stroke: ${e.lineColor};
1993
+ stroke-width: ${e.strokeWidth || 1};
1994
+ }
1995
+
1996
+ .statediagramTitleText {
1997
+ text-anchor: middle;
1998
+ font-size: 18px;
1999
+ fill: ${e.textColor};
2000
+ }
2001
+
2002
+ [data-look="neo"].statediagram-cluster rect {
2003
+ fill: ${e.mainBkg};
2004
+ stroke: ${e.useGradient ? "url(" + e.svgId + "-gradient)" : e.stateBorder || e.nodeBorder};
2005
+ stroke-width: ${e.strokeWidth ?? 1};
2006
+ }
2007
+ [data-look="neo"].statediagram-cluster rect.outer {
2008
+ rx: ${e.radius}px;
2009
+ ry: ${e.radius}px;
2010
+ filter: ${e.dropShadow ? e.dropShadow.replace("url(#drop-shadow)", `url(${e.svgId}-drop-shadow)`) : "none"}
2011
+ }
2012
+ `, "getStyles");
2013
+ //#endregion
2014
+ export { ye as i, _ as n, pe as r, ve as t };