@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,293 @@
1
+ import { b as e } from "./chunk-ICPOFSXX-fQJ5ufMR.js";
2
+ import { g as t, h as n } from "./src-BQiFKP24.js";
3
+ import "./chunk-5PVQY5BW-Dn8n6moB.js";
4
+ import "./chunk-BSJP7CBP-oNTXVRA7.js";
5
+ import { n as r } from "./chunk-ZZ45TVLE-X2jolXSO.js";
6
+ import "./chunk-X2U36JSP-VxRY65ea.js";
7
+ import "./chunk-U2HBQHQK-Ceyeq0IV.js";
8
+ import { a as i, c as a, i as o, l as s, n as c, t as l, u } from "./chunk-5FUZZQ4R-D3C0F0Tr.js";
9
+ import { a as d, i as f, n as p, r as m, t as h } from "./chunk-ENJZ2VHE-CZ7BvL2h.js";
10
+ import { a as g } from "./flatten-BE1bWL-7.js";
11
+ import { n as _, t as v } from "./graphlib-DbQkSsC8.js";
12
+ import { t as y } from "./clone-Dwbh_blD.js";
13
+ import { t as b } from "./dagre-D17h-Z-U.js";
14
+ //#region node_modules/dagre-d3-es/src/graphlib/json.js
15
+ function x(e) {
16
+ var t = {
17
+ options: {
18
+ directed: e.isDirected(),
19
+ multigraph: e.isMultigraph(),
20
+ compound: e.isCompound()
21
+ },
22
+ nodes: S(e),
23
+ edges: C(e)
24
+ };
25
+ return _(e.graph()) || (t.value = y(e.graph())), t;
26
+ }
27
+ function S(e) {
28
+ return g(e.nodes(), function(t) {
29
+ var n = e.node(t), r = e.parent(t), i = { v: t };
30
+ return _(n) || (i.value = n), _(r) || (i.parent = r), i;
31
+ });
32
+ }
33
+ function C(e) {
34
+ return g(e.edges(), function(t) {
35
+ var n = e.edge(t), r = {
36
+ v: t.v,
37
+ w: t.w
38
+ };
39
+ return _(t.name) || (r.name = t.name), _(n) || (r.value = n), r;
40
+ });
41
+ }
42
+ //#endregion
43
+ //#region node_modules/mermaid/dist/chunks/mermaid.core/dagre-KV5264BT.mjs
44
+ var w = /* @__PURE__ */ new Map(), T = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new Map(), D = /* @__PURE__ */ n(() => {
45
+ T.clear(), E.clear(), w.clear();
46
+ }, "clear"), O = /* @__PURE__ */ n((e, n) => {
47
+ let r = T.get(n) || [];
48
+ return t.trace("In isDescendant", n, " ", e, " = ", r.includes(e)), r.includes(e);
49
+ }, "isDescendant"), k = /* @__PURE__ */ n((e, n) => {
50
+ let r = T.get(n) || [];
51
+ return t.info("Descendants of ", n, " is ", r), t.info("Edge is ", e), e.v === n || e.w === n ? !1 : r ? r.includes(e.v) || O(e.v, n) || O(e.w, n) || r.includes(e.w) : (t.debug("Tilt, ", n, ",not in descendants"), !1);
52
+ }, "edgeInCluster"), A = /* @__PURE__ */ n((e, n, r, i) => {
53
+ t.warn("Copying children of ", e, "root", i, "data", n.node(e), i);
54
+ let a = n.children(e) || [];
55
+ e !== i && a.push(e), t.warn("Copying (nodes) clusterId", e, "nodes", a), a.forEach((a) => {
56
+ if (n.children(a).length > 0) A(a, n, r, i);
57
+ else {
58
+ let o = n.node(a);
59
+ t.info("cp ", a, " to ", i, " with parent ", e), r.setNode(a, o), i !== n.parent(a) && (t.warn("Setting parent", a, n.parent(a)), r.setParent(a, n.parent(a))), e !== i && a !== e ? (t.debug("Setting parent", a, e), r.setParent(a, e)) : (t.info("In copy ", e, "root", i, "data", n.node(e), i), t.debug("Not Setting parent for node=", a, "cluster!==rootId", e !== i, "node!==clusterId", a !== e));
60
+ let s = n.edges(a);
61
+ t.debug("Copying Edges", s), s.forEach((a) => {
62
+ t.info("Edge", a);
63
+ let o = n.edge(a.v, a.w, a.name);
64
+ t.info("Edge data", o, i);
65
+ try {
66
+ k(a, i) ? (t.info("Copying as ", a.v, a.w, o, a.name), r.setEdge(a.v, a.w, o, a.name), t.info("newGraph edges ", r.edges(), r.edge(r.edges()[0]))) : t.info("Skipping copy of edge ", a.v, "-->", a.w, " rootId: ", i, " clusterId:", e);
67
+ } catch (e) {
68
+ t.error(e);
69
+ }
70
+ });
71
+ }
72
+ t.debug("Removing node", a), n.removeNode(a);
73
+ });
74
+ }, "copy"), j = /* @__PURE__ */ n((e, t) => {
75
+ let n = t.children(e), r = [...n];
76
+ for (let i of n) E.set(i, e), r = [...r, ...j(i, t)];
77
+ return r;
78
+ }, "extractDescendants"), M = /* @__PURE__ */ n((e, t, n) => {
79
+ let r = e.edges().filter((e) => e.v === t || e.w === t), i = e.edges().filter((e) => e.v === n || e.w === n), a = r.map((e) => ({
80
+ v: e.v === t ? n : e.v,
81
+ w: e.w === t ? t : e.w
82
+ })), o = i.map((e) => ({
83
+ v: e.v,
84
+ w: e.w
85
+ }));
86
+ return a.filter((e) => o.some((t) => e.v === t.v && e.w === t.w));
87
+ }, "findCommonEdges"), N = /* @__PURE__ */ n((e, n, r) => {
88
+ let i = n.children(e);
89
+ if (t.trace("Searching children of id ", e, i), i.length < 1) return e;
90
+ let a;
91
+ for (let e of i) {
92
+ let t = N(e, n, r), i = M(n, r, t);
93
+ if (t) if (i.length > 0) a = t;
94
+ else return t;
95
+ }
96
+ return a;
97
+ }, "findNonClusterChild"), P = /* @__PURE__ */ n((e) => !w.has(e) || !w.get(e).externalConnections ? e : w.has(e) ? w.get(e).id : e, "getAnchorId"), F = /* @__PURE__ */ n((e, n) => {
98
+ if (!e || n > 10) {
99
+ t.debug("Opting out, no graph ");
100
+ return;
101
+ } else t.debug("Opting in, graph ");
102
+ e.nodes().forEach(function(n) {
103
+ e.children(n).length > 0 && (t.warn("Cluster identified", n, " Replacement id in edges: ", N(n, e, n)), T.set(n, j(n, e)), w.set(n, {
104
+ id: N(n, e, n),
105
+ clusterData: e.node(n)
106
+ }));
107
+ }), e.nodes().forEach(function(n) {
108
+ let r = e.children(n), i = e.edges();
109
+ r.length > 0 ? (t.debug("Cluster identified", n, T), i.forEach((e) => {
110
+ O(e.v, n) ^ O(e.w, n) && (t.warn("Edge: ", e, " leaves cluster ", n), t.warn("Descendants of XXX ", n, ": ", T.get(n)), w.get(n).externalConnections = !0);
111
+ })) : t.debug("Not a cluster ", n, T);
112
+ });
113
+ for (let t of w.keys()) {
114
+ let n = w.get(t).id, r = e.parent(n);
115
+ r !== t && w.has(r) && !w.get(r).externalConnections && (w.get(t).id = r);
116
+ }
117
+ e.edges().forEach(function(n) {
118
+ let r = e.edge(n);
119
+ t.warn("Edge " + n.v + " -> " + n.w + ": " + JSON.stringify(n)), t.warn("Edge " + n.v + " -> " + n.w + ": " + JSON.stringify(e.edge(n)));
120
+ let i = n.v, a = n.w;
121
+ if (t.warn("Fix XXX", w, "ids:", n.v, n.w, "Translating: ", w.get(n.v), " --- ", w.get(n.w)), w.get(n.v) || w.get(n.w)) {
122
+ if (t.warn("Fixing and trying - removing XXX", n.v, n.w, n.name), i = P(n.v), a = P(n.w), e.removeEdge(n.v, n.w, n.name), i !== n.v) {
123
+ let t = e.parent(i);
124
+ w.get(t).externalConnections = !0, r.fromCluster = n.v;
125
+ }
126
+ if (a !== n.w) {
127
+ let t = e.parent(a);
128
+ w.get(t).externalConnections = !0, r.toCluster = n.w;
129
+ }
130
+ t.warn("Fix Replacing with XXX", i, a, n.name), e.setEdge(i, a, r, n.name);
131
+ }
132
+ }), t.warn("Adjusted Graph", x(e)), I(e, 0), t.trace(w);
133
+ }, "adjustClustersAndEdges"), I = /* @__PURE__ */ n((e, n) => {
134
+ if (t.warn("extractor - ", n, x(e), e.children("D")), n > 10) {
135
+ t.error("Bailing out");
136
+ return;
137
+ }
138
+ let r = e.nodes(), i = !1;
139
+ for (let t of r) {
140
+ let n = e.children(t);
141
+ i ||= n.length > 0;
142
+ }
143
+ if (!i) {
144
+ t.debug("Done, no node has children", e.nodes());
145
+ return;
146
+ }
147
+ t.debug("Nodes = ", r, n);
148
+ for (let i of r) if (t.debug("Extracting node", i, w, w.has(i) && !w.get(i).externalConnections, !e.parent(i), e.node(i), e.children("D"), " Depth ", n), !w.has(i)) t.debug("Not a cluster", i, n);
149
+ else if (!w.get(i).externalConnections && e.children(i) && e.children(i).length > 0) {
150
+ t.warn("Cluster without external connections, without a parent and with children", i, n);
151
+ let r = e.graph().rankdir === "TB" ? "LR" : "TB";
152
+ w.get(i)?.clusterData?.dir && (r = w.get(i).clusterData.dir, t.warn("Fixing dir", w.get(i).clusterData.dir, r));
153
+ let a = new v({
154
+ multigraph: !0,
155
+ compound: !0
156
+ }).setGraph({
157
+ rankdir: r,
158
+ nodesep: 50,
159
+ ranksep: 50,
160
+ marginx: 8,
161
+ marginy: 8
162
+ }).setDefaultEdgeLabel(function() {
163
+ return {};
164
+ });
165
+ t.warn("Old graph before copy", x(e)), A(i, e, a, i), e.setNode(i, {
166
+ clusterNode: !0,
167
+ id: i,
168
+ clusterData: w.get(i).clusterData,
169
+ label: w.get(i).label,
170
+ graph: a
171
+ }), t.warn("New graph after copy node: (", i, ")", x(a)), t.debug("Old graph after copy", x(e));
172
+ } else t.warn("Cluster ** ", i, " **not meeting the criteria !externalConnections:", !w.get(i).externalConnections, " no parent: ", !e.parent(i), " children ", e.children(i) && e.children(i).length > 0, e.children("D"), n), t.debug(w);
173
+ r = e.nodes(), t.warn("New list of nodes", r);
174
+ for (let i of r) {
175
+ let r = e.node(i);
176
+ t.warn(" Now next level", i, r), r?.clusterNode && I(r.graph, n + 1);
177
+ }
178
+ }, "extractor"), L = /* @__PURE__ */ n((e, t) => {
179
+ if (t.length === 0) return [];
180
+ let n = Object.assign([], t);
181
+ return t.forEach((t) => {
182
+ let r = L(e, e.children(t));
183
+ n = [...n, ...r];
184
+ }), n;
185
+ }, "sorter"), R = /* @__PURE__ */ n((e) => L(e, e.children()), "sortNodesByHierarchy"), z = /* @__PURE__ */ n(async (e, c, l, f, h, g) => {
186
+ t.warn("Graph in recursive render:XAX", x(c), h);
187
+ let _ = c.graph().rankdir;
188
+ t.trace("Dir in recursive render - dir:", _);
189
+ let v = e.insert("g").attr("class", "root");
190
+ c.nodes() ? t.info("Recursive render XXX", c.nodes()) : t.info("No nodes found for", c), c.edges().length > 0 && t.info("Recursive edges", c.edge(c.edges()[0]));
191
+ let y = v.insert("g").attr("class", "clusters"), S = v.insert("g").attr("class", "edgePaths"), C = v.insert("g").attr("class", "edgeLabels"), T = v.insert("g").attr("class", "nodes");
192
+ await Promise.all(c.nodes().map(async function(e) {
193
+ let n = c.node(e);
194
+ if (h !== void 0) {
195
+ let n = JSON.parse(JSON.stringify(h.clusterData));
196
+ t.trace("Setting data for parent cluster XXX\n Node.id = ", e, "\n data=", n.height, "\nParent cluster", h.height), c.setNode(h.id, n), c.parent(e) || (t.trace("Setting parent", e, h.id), c.setParent(e, h.id, n));
197
+ }
198
+ if (t.info("(Insert) Node XXX" + e + ": " + JSON.stringify(c.node(e))), n?.clusterNode) {
199
+ t.info("Cluster identified XBX", e, n.width, c.node(e));
200
+ let { ranksep: r, nodesep: i } = c.graph();
201
+ n.graph.setGraph({
202
+ ...n.graph.graph(),
203
+ ranksep: r + 25,
204
+ nodesep: i
205
+ });
206
+ let a = await z(T, n.graph, l, f, c.node(e), g), o = a.elem;
207
+ u(n, o), n.diff = a.diff || 0, t.info("New compound node after recursive render XAX", e, "width", n.width, "height", n.height), s(o, n);
208
+ } else c.children(e).length > 0 ? (t.trace("Cluster - the non recursive path XBX", e, n.id, n, n.width, "Graph:", c), t.trace(N(n.id, c)), w.set(n.id, {
209
+ id: N(n.id, c),
210
+ node: n
211
+ })) : (t.trace("Node - the non recursive path XAX", e, T, c.node(e), _), await i(T, c.node(e), {
212
+ config: g,
213
+ dir: _
214
+ }));
215
+ })), await (/* @__PURE__ */ n(async () => {
216
+ let e = c.edges().map(async function(e) {
217
+ let n = c.edge(e.v, e.w, e.name);
218
+ t.info("Edge " + e.v + " -> " + e.w + ": " + JSON.stringify(e)), t.info("Edge " + e.v + " -> " + e.w + ": ", e, " ", JSON.stringify(c.edge(e))), t.info("Fix", w, "ids:", e.v, e.w, "Translating: ", w.get(e.v), w.get(e.w)), await m(C, n);
219
+ });
220
+ await Promise.all(e);
221
+ }, "processEdges"))(), t.info("Graph before layout:", JSON.stringify(x(c))), t.info("############################################# XXX"), t.info("### Layout ### XXX"), t.info("############################################# XXX"), b(c), t.info("Graph after layout:", JSON.stringify(x(c)));
222
+ let E = 0, { subGraphTitleTotalMargin: D } = r(g);
223
+ return await Promise.all(R(c).map(async function(e) {
224
+ let n = c.node(e);
225
+ if (t.info("Position XBX => " + e + ": (" + n.x, "," + n.y, ") width: ", n.width, " height: ", n.height), n?.clusterNode) n.y += D, t.info("A tainted cluster node XBX1", e, n.id, n.width, n.height, n.x, n.y, c.parent(e)), w.get(n.id).node = n, a(n);
226
+ else if (c.children(e).length > 0) {
227
+ t.info("A pure cluster node XBX1", e, n.id, n.x, n.y, n.width, n.height, c.parent(e)), n.height += D, c.node(n.parentId);
228
+ let r = n?.padding / 2 || 0, i = n?.labelBBox?.height || 0, a = i - r || 0;
229
+ t.debug("OffsetY", a, "labelHeight", i, "halfPadding", r), await o(y, n), w.get(n.id).node = n;
230
+ } else {
231
+ let e = c.node(n.parentId);
232
+ n.y += D / 2, t.info("A regular node XBX1 - using the padding", n.id, "parent", n.parentId, n.width, n.height, n.x, n.y, "offsetY", n.offsetY, "parent", e, e?.offsetY, n), a(n);
233
+ }
234
+ })), c.edges().forEach(function(e) {
235
+ let n = c.edge(e);
236
+ t.info("Edge " + e.v + " -> " + e.w + ": " + JSON.stringify(n), n), n.points.forEach((e) => e.y += D / 2), d(n, p(S, n, w, l, c.node(e.v), c.node(e.w), f));
237
+ }), c.nodes().forEach(function(e) {
238
+ let n = c.node(e);
239
+ t.info(e, n.type, n.diff), n.isGroup && (E = n.diff);
240
+ }), t.warn("Returning from recursive render XAX", v, E), {
241
+ elem: v,
242
+ diff: E
243
+ };
244
+ }, "recursiveRender"), B = /* @__PURE__ */ n(async (n, r) => {
245
+ let i = new v({
246
+ multigraph: !0,
247
+ compound: !0
248
+ }).setGraph({
249
+ rankdir: n.direction,
250
+ nodesep: n.config?.nodeSpacing || n.config?.flowchart?.nodeSpacing || n.nodeSpacing,
251
+ ranksep: n.config?.rankSpacing || n.config?.flowchart?.rankSpacing || n.rankSpacing,
252
+ marginx: 8,
253
+ marginy: 8
254
+ }).setDefaultEdgeLabel(function() {
255
+ return {};
256
+ }), a = r.select("g");
257
+ f(a, n.markers, n.type, n.diagramId), c(), h(), l(), D(), n.nodes.forEach((e) => {
258
+ i.setNode(e.id, { ...e }), e.parentId && i.setParent(e.id, e.parentId);
259
+ }), t.debug("Edges:", n.edges), n.edges.forEach((e) => {
260
+ if (e.start === e.end) {
261
+ let t = e.start, n = t + "---" + t + "---1", r = t + "---" + t + "---2", a = i.node(t);
262
+ i.setNode(n, {
263
+ domId: n,
264
+ id: n,
265
+ parentId: a.parentId,
266
+ labelStyle: "",
267
+ label: "",
268
+ padding: 0,
269
+ shape: "labelRect",
270
+ style: "",
271
+ width: 10,
272
+ height: 10
273
+ }), i.setParent(n, a.parentId), i.setNode(r, {
274
+ domId: r,
275
+ id: r,
276
+ parentId: a.parentId,
277
+ labelStyle: "",
278
+ padding: 0,
279
+ shape: "labelRect",
280
+ label: "",
281
+ style: "",
282
+ width: 10,
283
+ height: 10
284
+ }), i.setParent(r, a.parentId);
285
+ let o = structuredClone(e), s = structuredClone(e), c = structuredClone(e);
286
+ o.label = "", o.arrowTypeEnd = "none", o.id = t + "-cyclic-special-1", s.arrowTypeStart = "none", s.arrowTypeEnd = "none", s.id = t + "-cyclic-special-mid", c.label = "", a.isGroup && (o.fromCluster = t, c.toCluster = t), c.id = t + "-cyclic-special-2", c.arrowTypeStart = "none", i.setEdge(t, n, o, t + "-cyclic-special-0"), i.setEdge(n, r, s, t + "-cyclic-special-1"), i.setEdge(r, t, c, t + "-cyc<lic-special-2");
287
+ } else i.setEdge(e.start, e.end, { ...e }, e.id);
288
+ }), t.warn("Graph at first:", JSON.stringify(x(i))), F(i), t.warn("Graph after XAX:", JSON.stringify(x(i)));
289
+ let o = e();
290
+ await z(a, i, n.type, n.diagramId, void 0, o);
291
+ }, "render");
292
+ //#endregion
293
+ export { B as render };
@@ -0,0 +1,4 @@
1
+ require(`./chunk-D-IZpNpi.cjs`);const e=require(`./chunk-ICPOFSXX-hY6BIZ4Y.cjs`),t=require(`./src-DFxq-N5I.cjs`);require(`./chunk-5PVQY5BW-DEPZKGvb.cjs`),require(`./chunk-BSJP7CBP-CFzYPvgr.cjs`);const n=require(`./chunk-ZZ45TVLE-BfSqZnT4.cjs`);require(`./chunk-X2U36JSP-CtXjVqek.cjs`),require(`./chunk-U2HBQHQK-CJ77uizk.cjs`);const r=require(`./chunk-5FUZZQ4R-Cj5KbGC7.cjs`),i=require(`./chunk-ENJZ2VHE-BAWfx0nA.cjs`),a=require(`./flatten-DxvYSoR8.cjs`),o=require(`./graphlib-CdgJ32J_.cjs`),s=require(`./clone-CQQwPjME.cjs`),c=require(`./dagre-BcwvU6ZF.cjs`);function l(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:u(e),edges:d(e)};return o.n(e.graph())||(t.value=s.t(e.graph())),t}function u(e){return a.a(e.nodes(),function(t){var n=e.node(t),r=e.parent(t),i={v:t};return o.n(n)||(i.value=n),o.n(r)||(i.parent=r),i})}function d(e){return a.a(e.edges(),function(t){var n=e.edge(t),r={v:t.v,w:t.w};return o.n(t.name)||(r.name=t.name),o.n(n)||(r.value=n),r})}var f=new Map,p=new Map,m=new Map,h=t.h(()=>{p.clear(),m.clear(),f.clear()},`clear`),g=t.h((e,n)=>{let r=p.get(n)||[];return t.g.trace(`In isDescendant`,n,` `,e,` = `,r.includes(e)),r.includes(e)},`isDescendant`),_=t.h((e,n)=>{let r=p.get(n)||[];return t.g.info(`Descendants of `,n,` is `,r),t.g.info(`Edge is `,e),e.v===n||e.w===n?!1:r?r.includes(e.v)||g(e.v,n)||g(e.w,n)||r.includes(e.w):(t.g.debug(`Tilt, `,n,`,not in descendants`),!1)},`edgeInCluster`),v=t.h((e,n,r,i)=>{t.g.warn(`Copying children of `,e,`root`,i,`data`,n.node(e),i);let a=n.children(e)||[];e!==i&&a.push(e),t.g.warn(`Copying (nodes) clusterId`,e,`nodes`,a),a.forEach(a=>{if(n.children(a).length>0)v(a,n,r,i);else{let o=n.node(a);t.g.info(`cp `,a,` to `,i,` with parent `,e),r.setNode(a,o),i!==n.parent(a)&&(t.g.warn(`Setting parent`,a,n.parent(a)),r.setParent(a,n.parent(a))),e!==i&&a!==e?(t.g.debug(`Setting parent`,a,e),r.setParent(a,e)):(t.g.info(`In copy `,e,`root`,i,`data`,n.node(e),i),t.g.debug(`Not Setting parent for node=`,a,`cluster!==rootId`,e!==i,`node!==clusterId`,a!==e));let s=n.edges(a);t.g.debug(`Copying Edges`,s),s.forEach(a=>{t.g.info(`Edge`,a);let o=n.edge(a.v,a.w,a.name);t.g.info(`Edge data`,o,i);try{_(a,i)?(t.g.info(`Copying as `,a.v,a.w,o,a.name),r.setEdge(a.v,a.w,o,a.name),t.g.info(`newGraph edges `,r.edges(),r.edge(r.edges()[0]))):t.g.info(`Skipping copy of edge `,a.v,`-->`,a.w,` rootId: `,i,` clusterId:`,e)}catch(e){t.g.error(e)}})}t.g.debug(`Removing node`,a),n.removeNode(a)})},`copy`),y=t.h((e,t)=>{let n=t.children(e),r=[...n];for(let i of n)m.set(i,e),r=[...r,...y(i,t)];return r},`extractDescendants`),b=t.h((e,t,n)=>{let r=e.edges().filter(e=>e.v===t||e.w===t),i=e.edges().filter(e=>e.v===n||e.w===n),a=r.map(e=>({v:e.v===t?n:e.v,w:e.w===t?t:e.w})),o=i.map(e=>({v:e.v,w:e.w}));return a.filter(e=>o.some(t=>e.v===t.v&&e.w===t.w))},`findCommonEdges`),x=t.h((e,n,r)=>{let i=n.children(e);if(t.g.trace(`Searching children of id `,e,i),i.length<1)return e;let a;for(let e of i){let t=x(e,n,r),i=b(n,r,t);if(t)if(i.length>0)a=t;else return t}return a},`findNonClusterChild`),S=t.h(e=>!f.has(e)||!f.get(e).externalConnections?e:f.has(e)?f.get(e).id:e,`getAnchorId`),C=t.h((e,n)=>{if(!e||n>10){t.g.debug(`Opting out, no graph `);return}else t.g.debug(`Opting in, graph `);e.nodes().forEach(function(n){e.children(n).length>0&&(t.g.warn(`Cluster identified`,n,` Replacement id in edges: `,x(n,e,n)),p.set(n,y(n,e)),f.set(n,{id:x(n,e,n),clusterData:e.node(n)}))}),e.nodes().forEach(function(n){let r=e.children(n),i=e.edges();r.length>0?(t.g.debug(`Cluster identified`,n,p),i.forEach(e=>{g(e.v,n)^g(e.w,n)&&(t.g.warn(`Edge: `,e,` leaves cluster `,n),t.g.warn(`Descendants of XXX `,n,`: `,p.get(n)),f.get(n).externalConnections=!0)})):t.g.debug(`Not a cluster `,n,p)});for(let t of f.keys()){let n=f.get(t).id,r=e.parent(n);r!==t&&f.has(r)&&!f.get(r).externalConnections&&(f.get(t).id=r)}e.edges().forEach(function(n){let r=e.edge(n);t.g.warn(`Edge `+n.v+` -> `+n.w+`: `+JSON.stringify(n)),t.g.warn(`Edge `+n.v+` -> `+n.w+`: `+JSON.stringify(e.edge(n)));let i=n.v,a=n.w;if(t.g.warn(`Fix XXX`,f,`ids:`,n.v,n.w,`Translating: `,f.get(n.v),` --- `,f.get(n.w)),f.get(n.v)||f.get(n.w)){if(t.g.warn(`Fixing and trying - removing XXX`,n.v,n.w,n.name),i=S(n.v),a=S(n.w),e.removeEdge(n.v,n.w,n.name),i!==n.v){let t=e.parent(i);f.get(t).externalConnections=!0,r.fromCluster=n.v}if(a!==n.w){let t=e.parent(a);f.get(t).externalConnections=!0,r.toCluster=n.w}t.g.warn(`Fix Replacing with XXX`,i,a,n.name),e.setEdge(i,a,r,n.name)}}),t.g.warn(`Adjusted Graph`,l(e)),w(e,0),t.g.trace(f)},`adjustClustersAndEdges`),w=t.h((e,n)=>{if(t.g.warn(`extractor - `,n,l(e),e.children(`D`)),n>10){t.g.error(`Bailing out`);return}let r=e.nodes(),i=!1;for(let t of r){let n=e.children(t);i||=n.length>0}if(!i){t.g.debug(`Done, no node has children`,e.nodes());return}t.g.debug(`Nodes = `,r,n);for(let i of r)if(t.g.debug(`Extracting node`,i,f,f.has(i)&&!f.get(i).externalConnections,!e.parent(i),e.node(i),e.children(`D`),` Depth `,n),!f.has(i))t.g.debug(`Not a cluster`,i,n);else if(!f.get(i).externalConnections&&e.children(i)&&e.children(i).length>0){t.g.warn(`Cluster without external connections, without a parent and with children`,i,n);let r=e.graph().rankdir===`TB`?`LR`:`TB`;f.get(i)?.clusterData?.dir&&(r=f.get(i).clusterData.dir,t.g.warn(`Fixing dir`,f.get(i).clusterData.dir,r));let a=new o.t({multigraph:!0,compound:!0}).setGraph({rankdir:r,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});t.g.warn(`Old graph before copy`,l(e)),v(i,e,a,i),e.setNode(i,{clusterNode:!0,id:i,clusterData:f.get(i).clusterData,label:f.get(i).label,graph:a}),t.g.warn(`New graph after copy node: (`,i,`)`,l(a)),t.g.debug(`Old graph after copy`,l(e))}else t.g.warn(`Cluster ** `,i,` **not meeting the criteria !externalConnections:`,!f.get(i).externalConnections,` no parent: `,!e.parent(i),` children `,e.children(i)&&e.children(i).length>0,e.children(`D`),n),t.g.debug(f);r=e.nodes(),t.g.warn(`New list of nodes`,r);for(let i of r){let r=e.node(i);t.g.warn(` Now next level`,i,r),r?.clusterNode&&w(r.graph,n+1)}},`extractor`),T=t.h((e,t)=>{if(t.length===0)return[];let n=Object.assign([],t);return t.forEach(t=>{let r=T(e,e.children(t));n=[...n,...r]}),n},`sorter`),E=t.h(e=>T(e,e.children()),`sortNodesByHierarchy`),D=t.h(async(e,a,o,s,u,d)=>{t.g.warn(`Graph in recursive render:XAX`,l(a),u);let p=a.graph().rankdir;t.g.trace(`Dir in recursive render - dir:`,p);let m=e.insert(`g`).attr(`class`,`root`);a.nodes()?t.g.info(`Recursive render XXX`,a.nodes()):t.g.info(`No nodes found for`,a),a.edges().length>0&&t.g.info(`Recursive edges`,a.edge(a.edges()[0]));let h=m.insert(`g`).attr(`class`,`clusters`),g=m.insert(`g`).attr(`class`,`edgePaths`),_=m.insert(`g`).attr(`class`,`edgeLabels`),v=m.insert(`g`).attr(`class`,`nodes`);await Promise.all(a.nodes().map(async function(e){let n=a.node(e);if(u!==void 0){let n=JSON.parse(JSON.stringify(u.clusterData));t.g.trace(`Setting data for parent cluster XXX
2
+ Node.id = `,e,`
3
+ data=`,n.height,`
4
+ Parent cluster`,u.height),a.setNode(u.id,n),a.parent(e)||(t.g.trace(`Setting parent`,e,u.id),a.setParent(e,u.id,n))}if(t.g.info(`(Insert) Node XXX`+e+`: `+JSON.stringify(a.node(e))),n?.clusterNode){t.g.info(`Cluster identified XBX`,e,n.width,a.node(e));let{ranksep:i,nodesep:c}=a.graph();n.graph.setGraph({...n.graph.graph(),ranksep:i+25,nodesep:c});let l=await D(v,n.graph,o,s,a.node(e),d),u=l.elem;r.u(n,u),n.diff=l.diff||0,t.g.info(`New compound node after recursive render XAX`,e,`width`,n.width,`height`,n.height),r.l(u,n)}else a.children(e).length>0?(t.g.trace(`Cluster - the non recursive path XBX`,e,n.id,n,n.width,`Graph:`,a),t.g.trace(x(n.id,a)),f.set(n.id,{id:x(n.id,a),node:n})):(t.g.trace(`Node - the non recursive path XAX`,e,v,a.node(e),p),await r.a(v,a.node(e),{config:d,dir:p}))})),await t.h(async()=>{let e=a.edges().map(async function(e){let n=a.edge(e.v,e.w,e.name);t.g.info(`Edge `+e.v+` -> `+e.w+`: `+JSON.stringify(e)),t.g.info(`Edge `+e.v+` -> `+e.w+`: `,e,` `,JSON.stringify(a.edge(e))),t.g.info(`Fix`,f,`ids:`,e.v,e.w,`Translating: `,f.get(e.v),f.get(e.w)),await i.r(_,n)});await Promise.all(e)},`processEdges`)(),t.g.info(`Graph before layout:`,JSON.stringify(l(a))),t.g.info(`############################################# XXX`),t.g.info(`### Layout ### XXX`),t.g.info(`############################################# XXX`),c.t(a),t.g.info(`Graph after layout:`,JSON.stringify(l(a)));let y=0,{subGraphTitleTotalMargin:b}=n.n(d);return await Promise.all(E(a).map(async function(e){let n=a.node(e);if(t.g.info(`Position XBX => `+e+`: (`+n.x,`,`+n.y,`) width: `,n.width,` height: `,n.height),n?.clusterNode)n.y+=b,t.g.info(`A tainted cluster node XBX1`,e,n.id,n.width,n.height,n.x,n.y,a.parent(e)),f.get(n.id).node=n,r.c(n);else if(a.children(e).length>0){t.g.info(`A pure cluster node XBX1`,e,n.id,n.x,n.y,n.width,n.height,a.parent(e)),n.height+=b,a.node(n.parentId);let i=n?.padding/2||0,o=n?.labelBBox?.height||0,s=o-i||0;t.g.debug(`OffsetY`,s,`labelHeight`,o,`halfPadding`,i),await r.i(h,n),f.get(n.id).node=n}else{let e=a.node(n.parentId);n.y+=b/2,t.g.info(`A regular node XBX1 - using the padding`,n.id,`parent`,n.parentId,n.width,n.height,n.x,n.y,`offsetY`,n.offsetY,`parent`,e,e?.offsetY,n),r.c(n)}})),a.edges().forEach(function(e){let n=a.edge(e);t.g.info(`Edge `+e.v+` -> `+e.w+`: `+JSON.stringify(n),n),n.points.forEach(e=>e.y+=b/2),i.a(n,i.n(g,n,f,o,a.node(e.v),a.node(e.w),s))}),a.nodes().forEach(function(e){let n=a.node(e);t.g.info(e,n.type,n.diff),n.isGroup&&(y=n.diff)}),t.g.warn(`Returning from recursive render XAX`,m,y),{elem:m,diff:y}},`recursiveRender`),O=t.h(async(n,a)=>{let s=new o.t({multigraph:!0,compound:!0}).setGraph({rankdir:n.direction,nodesep:n.config?.nodeSpacing||n.config?.flowchart?.nodeSpacing||n.nodeSpacing,ranksep:n.config?.rankSpacing||n.config?.flowchart?.rankSpacing||n.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),c=a.select(`g`);i.i(c,n.markers,n.type,n.diagramId),r.n(),i.t(),r.t(),h(),n.nodes.forEach(e=>{s.setNode(e.id,{...e}),e.parentId&&s.setParent(e.id,e.parentId)}),t.g.debug(`Edges:`,n.edges),n.edges.forEach(e=>{if(e.start===e.end){let t=e.start,n=t+`---`+t+`---1`,r=t+`---`+t+`---2`,i=s.node(t);s.setNode(n,{domId:n,id:n,parentId:i.parentId,labelStyle:``,label:``,padding:0,shape:`labelRect`,style:``,width:10,height:10}),s.setParent(n,i.parentId),s.setNode(r,{domId:r,id:r,parentId:i.parentId,labelStyle:``,padding:0,shape:`labelRect`,label:``,style:``,width:10,height:10}),s.setParent(r,i.parentId);let a=structuredClone(e),o=structuredClone(e),c=structuredClone(e);a.label=``,a.arrowTypeEnd=`none`,a.id=t+`-cyclic-special-1`,o.arrowTypeStart=`none`,o.arrowTypeEnd=`none`,o.id=t+`-cyclic-special-mid`,c.label=``,i.isGroup&&(a.fromCluster=t,c.toCluster=t),c.id=t+`-cyclic-special-2`,c.arrowTypeStart=`none`,s.setEdge(t,n,a,t+`-cyclic-special-0`),s.setEdge(n,r,o,t+`-cyclic-special-1`),s.setEdge(r,t,c,t+`-cyc<lic-special-2`)}else s.setEdge(e.start,e.end,{...e},e.id)}),t.g.warn(`Graph at first:`,JSON.stringify(l(s))),C(s),t.g.warn(`Graph after XAX:`,JSON.stringify(l(s)));let u=e.b();await D(c,s,n.type,n.diagramId,void 0,u)},`render`);exports.render=O;
@@ -0,0 +1,201 @@
1
+ //#region node_modules/d3-format/src/formatDecimal.js
2
+ function e(e) {
3
+ return Math.abs(e = Math.round(e)) >= 1e21 ? e.toLocaleString("en").replace(/,/g, "") : e.toString(10);
4
+ }
5
+ function t(e, t) {
6
+ if (!isFinite(e) || e === 0) return null;
7
+ var n = (e = t ? e.toExponential(t - 1) : e.toExponential()).indexOf("e"), r = e.slice(0, n);
8
+ return [r.length > 1 ? r[0] + r.slice(2) : r, +e.slice(n + 1)];
9
+ }
10
+ //#endregion
11
+ //#region node_modules/d3-format/src/exponent.js
12
+ function n(e) {
13
+ return e = t(Math.abs(e)), e ? e[1] : NaN;
14
+ }
15
+ //#endregion
16
+ //#region node_modules/d3-format/src/formatGroup.js
17
+ function r(e, t) {
18
+ return function(n, r) {
19
+ for (var i = n.length, a = [], o = 0, s = e[0], c = 0; i > 0 && s > 0 && (c + s + 1 > r && (s = Math.max(1, r - c)), a.push(n.substring(i -= s, i + s)), !((c += s + 1) > r));) s = e[o = (o + 1) % e.length];
20
+ return a.reverse().join(t);
21
+ };
22
+ }
23
+ //#endregion
24
+ //#region node_modules/d3-format/src/formatNumerals.js
25
+ function i(e) {
26
+ return function(t) {
27
+ return t.replace(/[0-9]/g, function(t) {
28
+ return e[+t];
29
+ });
30
+ };
31
+ }
32
+ //#endregion
33
+ //#region node_modules/d3-format/src/formatSpecifier.js
34
+ var a = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
35
+ function o(e) {
36
+ if (!(t = a.exec(e))) throw Error("invalid format: " + e);
37
+ var t;
38
+ return new s({
39
+ fill: t[1],
40
+ align: t[2],
41
+ sign: t[3],
42
+ symbol: t[4],
43
+ zero: t[5],
44
+ width: t[6],
45
+ comma: t[7],
46
+ precision: t[8] && t[8].slice(1),
47
+ trim: t[9],
48
+ type: t[10]
49
+ });
50
+ }
51
+ o.prototype = s.prototype;
52
+ function s(e) {
53
+ this.fill = e.fill === void 0 ? " " : e.fill + "", this.align = e.align === void 0 ? ">" : e.align + "", this.sign = e.sign === void 0 ? "-" : e.sign + "", this.symbol = e.symbol === void 0 ? "" : e.symbol + "", this.zero = !!e.zero, this.width = e.width === void 0 ? void 0 : +e.width, this.comma = !!e.comma, this.precision = e.precision === void 0 ? void 0 : +e.precision, this.trim = !!e.trim, this.type = e.type === void 0 ? "" : e.type + "";
54
+ }
55
+ s.prototype.toString = function() {
56
+ return this.fill + this.align + this.sign + this.symbol + (this.zero ? "0" : "") + (this.width === void 0 ? "" : Math.max(1, this.width | 0)) + (this.comma ? "," : "") + (this.precision === void 0 ? "" : "." + Math.max(0, this.precision | 0)) + (this.trim ? "~" : "") + this.type;
57
+ };
58
+ //#endregion
59
+ //#region node_modules/d3-format/src/formatTrim.js
60
+ function c(e) {
61
+ out: for (var t = e.length, n = 1, r = -1, i; n < t; ++n) switch (e[n]) {
62
+ case ".":
63
+ r = i = n;
64
+ break;
65
+ case "0":
66
+ r === 0 && (r = n), i = n;
67
+ break;
68
+ default:
69
+ if (!+e[n]) break out;
70
+ r > 0 && (r = 0);
71
+ break;
72
+ }
73
+ return r > 0 ? e.slice(0, r) + e.slice(i + 1) : e;
74
+ }
75
+ //#endregion
76
+ //#region node_modules/d3-format/src/formatPrefixAuto.js
77
+ var l;
78
+ function u(e, n) {
79
+ var r = t(e, n);
80
+ if (!r) return l = void 0, e.toPrecision(n);
81
+ var i = r[0], a = r[1], o = a - (l = Math.max(-8, Math.min(8, Math.floor(a / 3))) * 3) + 1, s = i.length;
82
+ return o === s ? i : o > s ? i + Array(o - s + 1).join("0") : o > 0 ? i.slice(0, o) + "." + i.slice(o) : "0." + Array(1 - o).join("0") + t(e, Math.max(0, n + o - 1))[0];
83
+ }
84
+ //#endregion
85
+ //#region node_modules/d3-format/src/formatRounded.js
86
+ function d(e, n) {
87
+ var r = t(e, n);
88
+ if (!r) return e + "";
89
+ var i = r[0], a = r[1];
90
+ return a < 0 ? "0." + Array(-a).join("0") + i : i.length > a + 1 ? i.slice(0, a + 1) + "." + i.slice(a + 1) : i + Array(a - i.length + 2).join("0");
91
+ }
92
+ //#endregion
93
+ //#region node_modules/d3-format/src/formatTypes.js
94
+ var f = {
95
+ "%": (e, t) => (e * 100).toFixed(t),
96
+ b: (e) => Math.round(e).toString(2),
97
+ c: (e) => e + "",
98
+ d: e,
99
+ e: (e, t) => e.toExponential(t),
100
+ f: (e, t) => e.toFixed(t),
101
+ g: (e, t) => e.toPrecision(t),
102
+ o: (e) => Math.round(e).toString(8),
103
+ p: (e, t) => d(e * 100, t),
104
+ r: d,
105
+ s: u,
106
+ X: (e) => Math.round(e).toString(16).toUpperCase(),
107
+ x: (e) => Math.round(e).toString(16)
108
+ };
109
+ //#endregion
110
+ //#region node_modules/d3-format/src/identity.js
111
+ function p(e) {
112
+ return e;
113
+ }
114
+ //#endregion
115
+ //#region node_modules/d3-format/src/locale.js
116
+ var m = Array.prototype.map, h = [
117
+ "y",
118
+ "z",
119
+ "a",
120
+ "f",
121
+ "p",
122
+ "n",
123
+ "µ",
124
+ "m",
125
+ "",
126
+ "k",
127
+ "M",
128
+ "G",
129
+ "T",
130
+ "P",
131
+ "E",
132
+ "Z",
133
+ "Y"
134
+ ];
135
+ function g(e) {
136
+ var t = e.grouping === void 0 || e.thousands === void 0 ? p : r(m.call(e.grouping, Number), e.thousands + ""), a = e.currency === void 0 ? "" : e.currency[0] + "", s = e.currency === void 0 ? "" : e.currency[1] + "", u = e.decimal === void 0 ? "." : e.decimal + "", d = e.numerals === void 0 ? p : i(m.call(e.numerals, String)), g = e.percent === void 0 ? "%" : e.percent + "", _ = e.minus === void 0 ? "−" : e.minus + "", v = e.nan === void 0 ? "NaN" : e.nan + "";
137
+ function y(e, n) {
138
+ e = o(e);
139
+ var r = e.fill, i = e.align, p = e.sign, m = e.symbol, y = e.zero, b = e.width, x = e.comma, S = e.precision, C = e.trim, w = e.type;
140
+ w === "n" ? (x = !0, w = "g") : f[w] || (S === void 0 && (S = 12), C = !0, w = "g"), (y || r === "0" && i === "=") && (y = !0, r = "0", i = "=");
141
+ var T = (n && n.prefix !== void 0 ? n.prefix : "") + (m === "$" ? a : m === "#" && /[boxX]/.test(w) ? "0" + w.toLowerCase() : ""), E = (m === "$" ? s : /[%p]/.test(w) ? g : "") + (n && n.suffix !== void 0 ? n.suffix : ""), D = f[w], O = /[defgprs%]/.test(w);
142
+ S = S === void 0 ? 6 : /[gprs]/.test(w) ? Math.max(1, Math.min(21, S)) : Math.max(0, Math.min(20, S));
143
+ function k(e) {
144
+ var n = T, a = E, o, s, f;
145
+ if (w === "c") a = D(e) + a, e = "";
146
+ else {
147
+ e = +e;
148
+ var m = e < 0 || 1 / e < 0;
149
+ if (e = isNaN(e) ? v : D(Math.abs(e), S), C && (e = c(e)), m && +e == 0 && p !== "+" && (m = !1), n = (m ? p === "(" ? p : _ : p === "-" || p === "(" ? "" : p) + n, a = (w === "s" && !isNaN(e) && l !== void 0 ? h[8 + l / 3] : "") + a + (m && p === "(" ? ")" : ""), O) {
150
+ for (o = -1, s = e.length; ++o < s;) if (f = e.charCodeAt(o), 48 > f || f > 57) {
151
+ a = (f === 46 ? u + e.slice(o + 1) : e.slice(o)) + a, e = e.slice(0, o);
152
+ break;
153
+ }
154
+ }
155
+ }
156
+ x && !y && (e = t(e, Infinity));
157
+ var g = n.length + e.length + a.length, k = g < b ? Array(b - g + 1).join(r) : "";
158
+ switch (x && y && (e = t(k + e, k.length ? b - a.length : Infinity), k = ""), i) {
159
+ case "<":
160
+ e = n + e + a + k;
161
+ break;
162
+ case "=":
163
+ e = n + k + e + a;
164
+ break;
165
+ case "^":
166
+ e = k.slice(0, g = k.length >> 1) + n + e + a + k.slice(g);
167
+ break;
168
+ default:
169
+ e = k + n + e + a;
170
+ break;
171
+ }
172
+ return d(e);
173
+ }
174
+ return k.toString = function() {
175
+ return e + "";
176
+ }, k;
177
+ }
178
+ function b(e, t) {
179
+ var r = Math.max(-8, Math.min(8, Math.floor(n(t) / 3))) * 3, i = 10 ** -r, a = y((e = o(e), e.type = "f", e), { suffix: h[8 + r / 3] });
180
+ return function(e) {
181
+ return a(i * e);
182
+ };
183
+ }
184
+ return {
185
+ format: y,
186
+ formatPrefix: b
187
+ };
188
+ }
189
+ //#endregion
190
+ //#region node_modules/d3-format/src/defaultLocale.js
191
+ var _, v, y;
192
+ b({
193
+ thousands: ",",
194
+ grouping: [3],
195
+ currency: ["$", ""]
196
+ });
197
+ function b(e) {
198
+ return _ = g(e), v = _.format, y = _.formatPrefix, _;
199
+ }
200
+ //#endregion
201
+ export { n as i, y as n, o as r, v as t };
@@ -0,0 +1 @@
1
+ function e(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString(`en`).replace(/,/g,``):e.toString(10)}function t(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf(`e`),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function n(e){return e=t(Math.abs(e)),e?e[1]:NaN}function r(e,t){return function(n,r){for(var i=n.length,a=[],o=0,s=e[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),a.push(n.substring(i-=s,i+s)),!((c+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function i(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}var a=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function o(e){if(!(t=a.exec(e)))throw Error(`invalid format: `+e);var t;return new s({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}o.prototype=s.prototype;function s(e){this.fill=e.fill===void 0?` `:e.fill+``,this.align=e.align===void 0?`>`:e.align+``,this.sign=e.sign===void 0?`-`:e.sign+``,this.symbol=e.symbol===void 0?``:e.symbol+``,this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?``:e.type+``}s.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?`0`:``)+(this.width===void 0?``:Math.max(1,this.width|0))+(this.comma?`,`:``)+(this.precision===void 0?``:`.`+Math.max(0,this.precision|0))+(this.trim?`~`:``)+this.type};function c(e){out:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case`.`:r=i=n;break;case`0`:r===0&&(r=n),i=n;break;default:if(!+e[n])break out;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var l;function u(e,n){var r=t(e,n);if(!r)return l=void 0,e.toPrecision(n);var i=r[0],a=r[1],o=a-(l=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,s=i.length;return o===s?i:o>s?i+Array(o-s+1).join(`0`):o>0?i.slice(0,o)+`.`+i.slice(o):`0.`+Array(1-o).join(`0`)+t(e,Math.max(0,n+o-1))[0]}function d(e,n){var r=t(e,n);if(!r)return e+``;var i=r[0],a=r[1];return a<0?`0.`+Array(-a).join(`0`)+i:i.length>a+1?i.slice(0,a+1)+`.`+i.slice(a+1):i+Array(a-i.length+2).join(`0`)}var f={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+``,d:e,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>d(e*100,t),r:d,s:u,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function p(e){return e}var m=Array.prototype.map,h=[`y`,`z`,`a`,`f`,`p`,`n`,`µ`,`m`,``,`k`,`M`,`G`,`T`,`P`,`E`,`Z`,`Y`];function g(e){var t=e.grouping===void 0||e.thousands===void 0?p:r(m.call(e.grouping,Number),e.thousands+``),a=e.currency===void 0?``:e.currency[0]+``,s=e.currency===void 0?``:e.currency[1]+``,u=e.decimal===void 0?`.`:e.decimal+``,d=e.numerals===void 0?p:i(m.call(e.numerals,String)),g=e.percent===void 0?`%`:e.percent+``,_=e.minus===void 0?`−`:e.minus+``,v=e.nan===void 0?`NaN`:e.nan+``;function y(e,n){e=o(e);var r=e.fill,i=e.align,p=e.sign,m=e.symbol,y=e.zero,b=e.width,x=e.comma,S=e.precision,C=e.trim,w=e.type;w===`n`?(x=!0,w=`g`):f[w]||(S===void 0&&(S=12),C=!0,w=`g`),(y||r===`0`&&i===`=`)&&(y=!0,r=`0`,i=`=`);var T=(n&&n.prefix!==void 0?n.prefix:``)+(m===`$`?a:m===`#`&&/[boxX]/.test(w)?`0`+w.toLowerCase():``),E=(m===`$`?s:/[%p]/.test(w)?g:``)+(n&&n.suffix!==void 0?n.suffix:``),D=f[w],O=/[defgprs%]/.test(w);S=S===void 0?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,S)):Math.max(0,Math.min(20,S));function k(e){var n=T,a=E,o,s,f;if(w===`c`)a=D(e)+a,e=``;else{e=+e;var m=e<0||1/e<0;if(e=isNaN(e)?v:D(Math.abs(e),S),C&&(e=c(e)),m&&+e==0&&p!==`+`&&(m=!1),n=(m?p===`(`?p:_:p===`-`||p===`(`?``:p)+n,a=(w===`s`&&!isNaN(e)&&l!==void 0?h[8+l/3]:``)+a+(m&&p===`(`?`)`:``),O){for(o=-1,s=e.length;++o<s;)if(f=e.charCodeAt(o),48>f||f>57){a=(f===46?u+e.slice(o+1):e.slice(o))+a,e=e.slice(0,o);break}}}x&&!y&&(e=t(e,1/0));var g=n.length+e.length+a.length,k=g<b?Array(b-g+1).join(r):``;switch(x&&y&&(e=t(k+e,k.length?b-a.length:1/0),k=``),i){case`<`:e=n+e+a+k;break;case`=`:e=n+k+e+a;break;case`^`:e=k.slice(0,g=k.length>>1)+n+e+a+k.slice(g);break;default:e=k+n+e+a;break}return d(e)}return k.toString=function(){return e+``},k}function b(e,t){var r=Math.max(-8,Math.min(8,Math.floor(n(t)/3)))*3,i=10**-r,a=y((e=o(e),e.type=`f`,e),{suffix:h[8+r/3]});return function(e){return a(i*e)}}return{format:y,formatPrefix:b}}var _,v,y;b({thousands:`,`,grouping:[3],currency:[`$`,``]});function b(e){return _=g(e),v=_.format,y=_.formatPrefix,_}Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return y}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return v}});
@@ -0,0 +1,101 @@
1
+ import { B as e, C as t, V as n, W as r, _ as i, a, c as o, d as s, v as c, y as l } from "./chunk-ICPOFSXX-fQJ5ufMR.js";
2
+ import { g as u, h as d } from "./src-BQiFKP24.js";
3
+ import { r as f } from "./chunk-5PVQY5BW-Dn8n6moB.js";
4
+ import { t as p } from "./chunk-426QAEUC-CDXJVpQr.js";
5
+ import { t as m } from "./chunk-4BX2VUAB-BW54-JWg.js";
6
+ import { t as h } from "./mermaid-parser.core-CERDf-UG.js";
7
+ import { t as g } from "./chunk-QZHKN3VN-Bx8I6l3c.js";
8
+ //#region node_modules/mermaid/dist/chunks/mermaid.core/diagram-5BDNPKRD.mjs
9
+ var _ = new g(() => ({
10
+ cnt: 1,
11
+ stack: [{
12
+ id: 0,
13
+ level: -1,
14
+ name: "/",
15
+ children: []
16
+ }]
17
+ })), v = /* @__PURE__ */ d(() => {
18
+ _.reset(), a();
19
+ }, "clear"), y = /* @__PURE__ */ d(() => _.records.stack[0], "getRoot"), b = /* @__PURE__ */ d(() => _.records.cnt, "getCount"), x = s.treeView, S = {
20
+ clear: v,
21
+ addNode: /* @__PURE__ */ d((e, t) => {
22
+ for (; e <= _.records.stack[_.records.stack.length - 1].level;) _.records.stack.pop();
23
+ let n = {
24
+ id: _.records.cnt++,
25
+ level: e,
26
+ name: t,
27
+ children: []
28
+ };
29
+ _.records.stack[_.records.stack.length - 1].children.push(n), _.records.stack.push(n);
30
+ }, "addNode"),
31
+ getRoot: y,
32
+ getCount: b,
33
+ getConfig: /* @__PURE__ */ d(() => f(x, l().treeView), "getConfig"),
34
+ getAccTitle: c,
35
+ getAccDescription: i,
36
+ getDiagramTitle: t,
37
+ setAccDescription: e,
38
+ setAccTitle: n,
39
+ setDiagramTitle: r
40
+ }, C = /* @__PURE__ */ d((e) => {
41
+ m(e, S), e.nodes.map((e) => S.addNode(e.indent ? parseInt(e.indent) : 0, e.name));
42
+ }, "populate"), w = { parse: /* @__PURE__ */ d(async (e) => {
43
+ let t = await h("treeView", e);
44
+ u.debug(t), C(t);
45
+ }, "parse") }, T = /* @__PURE__ */ d((e, t, n, r, i) => {
46
+ let a = r.append("text").text(n.name).attr("dominant-baseline", "middle").attr("class", "treeView-node-label"), { height: o, width: s } = a.node().getBBox(), c = o + i.paddingY * 2, l = s + i.paddingX * 2;
47
+ a.attr("x", e + i.paddingX), a.attr("y", t + c / 2), n.BBox = {
48
+ x: e,
49
+ y: t,
50
+ width: l,
51
+ height: c
52
+ };
53
+ }, "positionLabel"), E = /* @__PURE__ */ d((e, t, n, r, i, a) => e.append("line").attr("x1", t).attr("y1", n).attr("x2", r).attr("y2", i).attr("stroke-width", a).attr("class", "treeView-node-line"), "positionLine"), D = /* @__PURE__ */ d((e, t, n) => {
54
+ let r = 0, i = 0, a = /* @__PURE__ */ d((e, t, n, a) => {
55
+ let o = a * (n.rowIndent + n.paddingX);
56
+ T(o, r, t, e, n);
57
+ let { height: s, width: c } = t.BBox;
58
+ E(e, o - n.rowIndent, r + s / 2, o, r + s / 2, n.lineThickness), i = Math.max(i, o + c), r += s;
59
+ }, "drawNode"), o = /* @__PURE__ */ d((t, r = 0) => {
60
+ a(e, t, n, r), t.children.forEach((e) => {
61
+ o(e, r + 1);
62
+ });
63
+ let { x: i, y: s, height: c } = t.BBox;
64
+ if (t.children.length) {
65
+ let { y: r, height: a } = t.children[t.children.length - 1].BBox;
66
+ E(e, i + n.paddingX, s + c, i + n.paddingX, r + a / 2 + n.lineThickness / 2, n.lineThickness);
67
+ }
68
+ }, "processNode");
69
+ return o(t), {
70
+ totalHeight: r,
71
+ totalWidth: i
72
+ };
73
+ }, "drawTree"), O = { draw: /* @__PURE__ */ d((e, t, n, r) => {
74
+ u.debug("Rendering treeView diagram\n" + e);
75
+ let i = r.db, a = i.getRoot(), s = i.getConfig(), c = p(t), l = c.append("g");
76
+ l.attr("class", "tree-view");
77
+ let { totalHeight: d, totalWidth: f } = D(l, a, s);
78
+ c.attr("viewBox", `-${s.lineThickness / 2} 0 ${f} ${d}`), o(c, d, f, s.useMaxWidth);
79
+ }, "draw") }, k = {
80
+ labelFontSize: "16px",
81
+ labelColor: "black",
82
+ lineColor: "black"
83
+ }, A = {
84
+ db: S,
85
+ renderer: O,
86
+ parser: w,
87
+ styles: /* @__PURE__ */ d(({ treeView: e }) => {
88
+ let { labelFontSize: t, labelColor: n, lineColor: r } = f(k, e);
89
+ return `
90
+ .treeView-node-label {
91
+ font-size: ${t};
92
+ fill: ${n};
93
+ }
94
+ .treeView-node-line {
95
+ stroke: ${r};
96
+ }
97
+ `;
98
+ }, "styles")
99
+ };
100
+ //#endregion
101
+ export { A as diagram };
@@ -0,0 +1,10 @@
1
+ require(`./chunk-D-IZpNpi.cjs`);const e=require(`./chunk-ICPOFSXX-hY6BIZ4Y.cjs`),t=require(`./src-DFxq-N5I.cjs`),n=require(`./chunk-5PVQY5BW-DEPZKGvb.cjs`),r=require(`./chunk-426QAEUC-CqN26l3E.cjs`),i=require(`./chunk-4BX2VUAB-Qba52sxc.cjs`),a=require(`./mermaid-parser.core-DHpvGOZR.cjs`);var o=new(require(`./chunk-QZHKN3VN-CSMKL2rB.cjs`)).t(()=>({cnt:1,stack:[{id:0,level:-1,name:`/`,children:[]}]})),s=t.h(()=>{o.reset(),e.a()},`clear`),c=t.h(()=>o.records.stack[0],`getRoot`),l=t.h(()=>o.records.cnt,`getCount`),u=e.d.treeView,d={clear:s,addNode:t.h((e,t)=>{for(;e<=o.records.stack[o.records.stack.length-1].level;)o.records.stack.pop();let n={id:o.records.cnt++,level:e,name:t,children:[]};o.records.stack[o.records.stack.length-1].children.push(n),o.records.stack.push(n)},`addNode`),getRoot:c,getCount:l,getConfig:t.h(()=>n.r(u,e.y().treeView),`getConfig`),getAccTitle:e.v,getAccDescription:e._,getDiagramTitle:e.C,setAccDescription:e.B,setAccTitle:e.V,setDiagramTitle:e.W},f=t.h(e=>{i.t(e,d),e.nodes.map(e=>d.addNode(e.indent?parseInt(e.indent):0,e.name))},`populate`),p={parse:t.h(async e=>{let n=await a.t(`treeView`,e);t.g.debug(n),f(n)},`parse`)},m=t.h((e,t,n,r,i)=>{let a=r.append(`text`).text(n.name).attr(`dominant-baseline`,`middle`).attr(`class`,`treeView-node-label`),{height:o,width:s}=a.node().getBBox(),c=o+i.paddingY*2,l=s+i.paddingX*2;a.attr(`x`,e+i.paddingX),a.attr(`y`,t+c/2),n.BBox={x:e,y:t,width:l,height:c}},`positionLabel`),h=t.h((e,t,n,r,i,a)=>e.append(`line`).attr(`x1`,t).attr(`y1`,n).attr(`x2`,r).attr(`y2`,i).attr(`stroke-width`,a).attr(`class`,`treeView-node-line`),`positionLine`),g=t.h((e,n,r)=>{let i=0,a=0,o=t.h((e,t,n,r)=>{let o=r*(n.rowIndent+n.paddingX);m(o,i,t,e,n);let{height:s,width:c}=t.BBox;h(e,o-n.rowIndent,i+s/2,o,i+s/2,n.lineThickness),a=Math.max(a,o+c),i+=s},`drawNode`),s=t.h((t,n=0)=>{o(e,t,r,n),t.children.forEach(e=>{s(e,n+1)});let{x:i,y:a,height:c}=t.BBox;if(t.children.length){let{y:n,height:o}=t.children[t.children.length-1].BBox;h(e,i+r.paddingX,a+c,i+r.paddingX,n+o/2+r.lineThickness/2,r.lineThickness)}},`processNode`);return s(n),{totalHeight:i,totalWidth:a}},`drawTree`),_={draw:t.h((n,i,a,o)=>{t.g.debug(`Rendering treeView diagram
2
+ `+n);let s=o.db,c=s.getRoot(),l=s.getConfig(),u=r.t(i),d=u.append(`g`);d.attr(`class`,`tree-view`);let{totalHeight:f,totalWidth:p}=g(d,c,l);u.attr(`viewBox`,`-${l.lineThickness/2} 0 ${p} ${f}`),e.c(u,f,p,l.useMaxWidth)},`draw`)},v={labelFontSize:`16px`,labelColor:`black`,lineColor:`black`},y={db:d,renderer:_,parser:p,styles:t.h(({treeView:e})=>{let{labelFontSize:t,labelColor:r,lineColor:i}=n.r(v,e);return`
3
+ .treeView-node-label {
4
+ font-size: ${t};
5
+ fill: ${r};
6
+ }
7
+ .treeView-node-line {
8
+ stroke: ${i};
9
+ }
10
+ `},`styles`)};exports.diagram=y;