@sme.up/ketchup2 2.7.0 → 2.8.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 (344) hide show
  1. package/dist/abnfDiagram-VCTEODGH-C9blQ78p.cjs +1 -0
  2. package/dist/abnfDiagram-VCTEODGH-DZIaCwNE.js +89 -0
  3. package/dist/{arc-CVbkjF8U.js → arc-7ZXqzxve.js} +1 -1
  4. package/dist/{arc-w3BipdfE.cjs → arc-DBilzVYt.cjs} +1 -1
  5. package/dist/architecture-7GRP2DOG-DYFsLst2.js +3 -0
  6. package/dist/architecture-7GRP2DOG-DdhuGtEz.cjs +1 -0
  7. package/dist/architectureDiagram-5GKGNRK7-B080D0D_.cjs +36 -0
  8. package/dist/{architectureDiagram-3BPJPVTR-B6VZAtZU.js → architectureDiagram-5GKGNRK7-BJvIxhbL.js} +338 -251
  9. package/dist/assets/svg/functions.svg +1 -0
  10. package/dist/basic-components/button-list/button-list-types.d.ts +2 -1
  11. package/dist/basic-components/button-list/button-list-types.d.ts.map +1 -1
  12. package/dist/basic-components/button-list/button-list.d.ts.map +1 -1
  13. package/dist/basic-components/cell/cell-types.d.ts +5 -0
  14. package/dist/basic-components/cell/cell-types.d.ts.map +1 -1
  15. package/dist/basic-components/cell/cell.d.ts.map +1 -1
  16. package/dist/basic-components/checkbox/checkbox-types.d.ts +5 -0
  17. package/dist/basic-components/checkbox/checkbox-types.d.ts.map +1 -1
  18. package/dist/basic-components/chips/chips-types.d.ts +15 -1
  19. package/dist/basic-components/chips/chips-types.d.ts.map +1 -1
  20. package/dist/basic-components/chips/chips.d.ts.map +1 -1
  21. package/dist/basic-components/chips-input/chips-input-types.d.ts +5 -0
  22. package/dist/basic-components/chips-input/chips-input-types.d.ts.map +1 -1
  23. package/dist/basic-components/chips-input/chips-input.d.ts.map +1 -1
  24. package/dist/basic-components/multiple-autocomplete/multiple-autocomplete-types.d.ts +5 -0
  25. package/dist/basic-components/multiple-autocomplete/multiple-autocomplete-types.d.ts.map +1 -1
  26. package/dist/basic-components/multiple-autocomplete/multiple-autocomplete.d.ts.map +1 -1
  27. package/dist/basic-components/multiple-select/multiple-select-types.d.ts +5 -0
  28. package/dist/basic-components/multiple-select/multiple-select-types.d.ts.map +1 -1
  29. package/dist/basic-components/multiple-select/multiple-select.d.ts.map +1 -1
  30. package/dist/blockDiagram-I7D4REHJ-C5aW9ypR.js +1919 -0
  31. package/dist/blockDiagram-I7D4REHJ-fT7Of27R.cjs +129 -0
  32. package/dist/c4Diagram-7LVT6UL2-B1n5PnN5.cjs +38 -0
  33. package/dist/{c4Diagram-AAUBKEIU-CdT8VCbo.js → c4Diagram-7LVT6UL2-JxFfT5VH.js} +808 -789
  34. package/dist/channel-BvUly9jN.cjs +1 -0
  35. package/dist/{channel-C-LAmObA.js → channel-D6agWknC.js} +1 -1
  36. package/dist/chunk-2E4U76K2-BiZwNOhf.cjs +1 -0
  37. package/dist/chunk-2E4U76K2-C8vehurw.js +346 -0
  38. package/dist/chunk-2Q5K7J3B-B8v9mTdK.cjs +1 -0
  39. package/dist/{chunk-QZHKN3VN-lYfzaOt9.js → chunk-2Q5K7J3B-kzxEEeTu.js} +2 -2
  40. package/dist/chunk-4HAMMTFA-Db_fcZEn.cjs +62 -0
  41. package/dist/{chunk-3OPIFGDE-Bs2mXISw.js → chunk-4HAMMTFA-MZIwowe1.js} +1665 -1143
  42. package/dist/{chunk-FMBD7UC4-BURT0llY.js → chunk-5VM5RSS4-Cr17nBXp.js} +2 -2
  43. package/dist/{chunk-FMBD7UC4-BIKI8zae.cjs → chunk-5VM5RSS4-CwDmQ9T_.cjs} +1 -1
  44. package/dist/{chunk-5ZQYHXKU-B_nOC8-n.js → chunk-75Z2AOVW-BwUD389x.js} +56 -55
  45. package/dist/chunk-75Z2AOVW-RbCLc-XL.cjs +2 -0
  46. package/dist/chunk-CLGD4ZFX-DKRy6g5T.js +10 -0
  47. package/dist/chunk-CLGD4ZFX-Dvn-kRD7.cjs +1 -0
  48. package/dist/{chunk-CSCIHK7Q-BEk3YcEH.js → chunk-DU6HZSFF-CNSdkWoH.js} +997 -764
  49. package/dist/chunk-DU6HZSFF-mznJTFyO.cjs +127 -0
  50. package/dist/chunk-F27PBJKO-C5NrgqMI.cjs +1 -0
  51. package/dist/{chunk-ND2GUHAM-Ca12h-m9.js → chunk-F27PBJKO-DKsmevT5.js} +18 -17
  52. package/dist/chunk-FOHPRMQF-BYsnEQU5.cjs +161 -0
  53. package/dist/{chunk-NNHCCRGN-BB1q5NkR.js → chunk-FOHPRMQF-C49KxWOg.js} +5156 -4419
  54. package/dist/chunk-GMAD6QVW-BVSRANO9.cjs +72 -0
  55. package/dist/{chunk-O5CBEL6O-DbWeP4Au.js → chunk-GMAD6QVW-DKxKOKLF.js} +459 -503
  56. package/dist/chunk-GVQU2GXP-BiuaO1L5.cjs +1 -0
  57. package/dist/chunk-GVQU2GXP-w4KY-she.js +37 -0
  58. package/dist/chunk-IMKFNOWR-CusIwu2H.cjs +231 -0
  59. package/dist/{chunk-AQP2D5EJ-vJ_pitKp.js → chunk-IMKFNOWR-DHxMOe_C.js} +313 -291
  60. package/dist/{chunk-4BX2VUAB-zglw1T4d.js → chunk-JWPE2WC7-Ccb0QaC8.js} +2 -2
  61. package/dist/chunk-JWPE2WC7-Cs1kjq8S.cjs +1 -0
  62. package/dist/chunk-L3NEJ4N5-B8UQMgqc.cjs +1 -0
  63. package/dist/chunk-L3NEJ4N5-CvNbHpcd.js +245 -0
  64. package/dist/chunk-LNGE3PJU-CiGrDO_F.js +1513 -0
  65. package/dist/chunk-LNGE3PJU-TgsSSByc.cjs +34 -0
  66. package/dist/{chunk-KSCS5N6A-BemQomLE.js → chunk-OSK3NFVY-BmtDbEvT.js} +304 -195
  67. package/dist/chunk-OSK3NFVY-DE9_ERt9.cjs +10 -0
  68. package/dist/chunk-P2QGCYS3-DRvvOWJ2.js +67 -0
  69. package/dist/chunk-P2QGCYS3-DqT85Q-S.cjs +1 -0
  70. package/dist/chunk-POPQ4Y6H-CaEkosGL.js +26 -0
  71. package/dist/chunk-POPQ4Y6H-QqO5seyb.cjs +1 -0
  72. package/dist/chunk-PWAF6VOD-CbmhQpgH.js +277 -0
  73. package/dist/chunk-PWAF6VOD-CjrO-QHU.cjs +1 -0
  74. package/dist/{flowDiagram-I6XJVG4X-DnsxKD0w.js → chunk-SHT3W25Y-DJgD-hyF.js} +566 -522
  75. package/dist/chunk-SHT3W25Y-DuMn9iH6.cjs +168 -0
  76. package/dist/chunk-SVP7TREG-BNwvtyzm.js +490 -0
  77. package/dist/chunk-SVP7TREG-CiwWyOxx.cjs +88 -0
  78. package/dist/{chunk-727SXJPM-Dj8nsm0O.cjs → chunk-TICWLB2K-1u0p_luB.cjs} +7 -7
  79. package/dist/{chunk-727SXJPM-CDeV7mmg.js → chunk-TICWLB2K-DqSHwYf9.js} +183 -177
  80. package/dist/chunk-TLUHSLCS-ZDzqyqeY.cjs +1 -0
  81. package/dist/{chunk-LZXEDZCA-J9irjuVP.js → chunk-TLUHSLCS-opHh7fd-.js} +35 -25
  82. package/dist/chunk-XXDRQBXY-BF71LTT1.cjs +1 -0
  83. package/dist/chunk-XXDRQBXY-BZK6GgVm.js +9 -0
  84. package/dist/chunk-Y2CYZVJY-CnmLqFtv.cjs +1 -0
  85. package/dist/chunk-Y2CYZVJY-i11wjrBe.js +12 -0
  86. package/dist/classDiagram-ZZMXUADV-BTRkvFx4.js +30 -0
  87. package/dist/classDiagram-ZZMXUADV-CwAl_N60.cjs +1 -0
  88. package/dist/classDiagram-v2-VYDZK3BY-CFutvfy-.js +30 -0
  89. package/dist/classDiagram-v2-VYDZK3BY-CwAl_N60.cjs +1 -0
  90. package/dist/components/activity-timeline/activity-timeline-types.d.ts +46 -0
  91. package/dist/components/activity-timeline/activity-timeline-types.d.ts.map +1 -0
  92. package/dist/components/activity-timeline/activity-timeline.d.ts +4 -0
  93. package/dist/components/activity-timeline/activity-timeline.d.ts.map +1 -0
  94. package/dist/components/data-table/assets/data-table-row-actions-collapsed.d.ts +12 -0
  95. package/dist/components/data-table/assets/data-table-row-actions-collapsed.d.ts.map +1 -0
  96. package/dist/components/data-table/assets/data-table-row-actions.d.ts +11 -0
  97. package/dist/components/data-table/assets/data-table-row-actions.d.ts.map +1 -0
  98. package/dist/components/data-table/data-table-types.d.ts +52 -1
  99. package/dist/components/data-table/data-table-types.d.ts.map +1 -1
  100. package/dist/components/data-table/data-table.d.ts.map +1 -1
  101. package/dist/components/data-table/header/Header.d.ts.map +1 -1
  102. package/dist/components/data-table/header/header-types.d.ts +7 -1
  103. package/dist/components/data-table/header/header-types.d.ts.map +1 -1
  104. package/dist/components/tab-bar/tab-bar-assets.d.ts +1 -0
  105. package/dist/components/tab-bar/tab-bar-assets.d.ts.map +1 -1
  106. package/dist/components/tab-bar/tab-bar.d.ts.map +1 -1
  107. package/dist/components/workflow-designer/workflow-designer-metadata-panel.d.ts +14 -0
  108. package/dist/components/workflow-designer/workflow-designer-metadata-panel.d.ts.map +1 -0
  109. package/dist/components/workflow-designer/workflow-designer-types.d.ts +40 -7
  110. package/dist/components/workflow-designer/workflow-designer-types.d.ts.map +1 -1
  111. package/dist/components/workflow-designer/workflow-designer-utils.d.ts +80 -1
  112. package/dist/components/workflow-designer/workflow-designer-utils.d.ts.map +1 -1
  113. package/dist/components/workflow-designer/workflow-designer-utils.test.d.ts +2 -0
  114. package/dist/components/workflow-designer/workflow-designer-utils.test.d.ts.map +1 -0
  115. package/dist/components/workflow-designer/workflow-designer.d.ts +4 -3
  116. package/dist/components/workflow-designer/workflow-designer.d.ts.map +1 -1
  117. package/dist/{cose-bilkent-S5V4N54A-BhA3VnPW.js → cose-bilkent-JH36ORCC-CE0T5PqO.js} +25 -24
  118. package/dist/cose-bilkent-JH36ORCC-D6t9R42P.cjs +1 -0
  119. package/dist/cynefin-OW5HDTMX-CsZ3W32G.cjs +1 -0
  120. package/dist/cynefin-OW5HDTMX-DlKRHClQ.js +3 -0
  121. package/dist/cynefinDiagram-5FMLGOSQ-D5vkxB9p.js +349 -0
  122. package/dist/cynefinDiagram-5FMLGOSQ-D95Uad6U.cjs +62 -0
  123. package/dist/{cytoscape.esm-BU21wl3m.js → cytoscape.esm-BQqfb1oS.js} +2260 -2206
  124. package/dist/cytoscape.esm-TdwWzXkE.cjs +321 -0
  125. package/dist/dagre-GXQ25YYZ-CFXgAmuL.js +423 -0
  126. package/dist/dagre-GXQ25YYZ-NS5a_ezX.cjs +4 -0
  127. package/dist/{dagre-B2BBwKNb.cjs → dagre-nX1Mh32P.cjs} +1 -1
  128. package/dist/{dagre-3-RnF0EK.js → dagre-qXSFUdzO.js} +131 -131
  129. package/dist/diagram-S7CK7UJ4-CTj-4VAh.cjs +30 -0
  130. package/dist/diagram-S7CK7UJ4-DrGNegqs.js +301 -0
  131. package/dist/{diagram-2AECGRRQ-23vM90dy.js → diagram-UQ7AKVKN-LU56O9S9.js} +82 -81
  132. package/dist/diagram-UQ7AKVKN-eskbTWOc.cjs +41 -0
  133. package/dist/{diagram-KO2AKTUF-BEnEQF6b.js → diagram-VSXAHHWV-CaQnupEx.js} +66 -65
  134. package/dist/diagram-VSXAHHWV-DzHhzg5V.cjs +3 -0
  135. package/dist/diagram-VX7I27RA-D7Ibz__z.cjs +24 -0
  136. package/dist/{diagram-OG6HWLK6-Cfbv6mIH.js → diagram-VX7I27RA-DH-s9daK.js} +105 -104
  137. package/dist/diagram-Z3DM3KII-BpFP72Tr.cjs +24 -0
  138. package/dist/{diagram-LMA3HP47-OWxAHrmz.js → diagram-Z3DM3KII-DWhRX2l9.js} +21 -20
  139. package/dist/{dist-Btd8EZyy.js → dist-C7OpkiTz.js} +2 -3
  140. package/dist/dist-DrOEvFlx.cjs +1 -0
  141. package/dist/ebnfDiagram-PWID7BFC-CtT2erlt.js +100 -0
  142. package/dist/ebnfDiagram-PWID7BFC-DXCy8fra.cjs +1 -0
  143. package/dist/erDiagram-RLTQ6QDP-B-cUtqmN.cjs +99 -0
  144. package/dist/erDiagram-RLTQ6QDP-CxxAoCSs.js +1966 -0
  145. package/dist/eventmodeling-NTZA5JFV-5J5w1INt.js +3 -0
  146. package/dist/eventmodeling-NTZA5JFV-DcUTtbEf.cjs +1 -0
  147. package/dist/flowDiagram-HODETNUW-B6sXxv0S.cjs +1 -0
  148. package/dist/flowDiagram-HODETNUW-BUvMJJnE.js +17 -0
  149. package/dist/functional-components/multiple-field/multiple-field-types.d.ts +2 -0
  150. package/dist/functional-components/multiple-field/multiple-field-types.d.ts.map +1 -1
  151. package/dist/functional-components/multiple-field/multiple-field.d.ts.map +1 -1
  152. package/dist/functional-components/row/row-types.d.ts +5 -0
  153. package/dist/functional-components/row/row-types.d.ts.map +1 -1
  154. package/dist/functional-components/row/row.d.ts.map +1 -1
  155. package/dist/functional-components/timeline-engine/components/gantt/gantt-assets.d.ts +3 -1
  156. package/dist/functional-components/timeline-engine/components/gantt/gantt-assets.d.ts.map +1 -1
  157. package/dist/functional-components/timeline-engine/timeline-engine-utils.d.ts.map +1 -1
  158. package/dist/functional-components/tree-picker/tree-picker-types.d.ts +42 -0
  159. package/dist/functional-components/tree-picker/tree-picker-types.d.ts.map +1 -0
  160. package/dist/functional-components/tree-picker/tree-picker.d.ts +3 -0
  161. package/dist/functional-components/tree-picker/tree-picker.d.ts.map +1 -0
  162. package/dist/ganttDiagram-EL5Y4UJY-Bee0Pd-N.cjs +292 -0
  163. package/dist/{ganttDiagram-6RSMTGT7-CwbJqdwB.js → ganttDiagram-EL5Y4UJY-C04RZW4s.js} +675 -671
  164. package/dist/gitGraph-4MIJSDKK-BCt5iiZ5.js +3 -0
  165. package/dist/gitGraph-4MIJSDKK-BeFVwcRC.cjs +1 -0
  166. package/dist/{gitGraphDiagram-PVQCEYII-mL2WiT98.js → gitGraphDiagram-WWUBYQGX-BTcuEGsY.js} +146 -145
  167. package/dist/gitGraphDiagram-WWUBYQGX-DA026nbS.cjs +106 -0
  168. package/dist/index.d.ts +4 -1
  169. package/dist/index.d.ts.map +1 -1
  170. package/dist/info-A6RAGUB7-C0KA0jej.cjs +1 -0
  171. package/dist/info-A6RAGUB7-DYBvudiC.js +3 -0
  172. package/dist/infoDiagram-27XIBGKW-B5nTXQEj.cjs +2 -0
  173. package/dist/infoDiagram-27XIBGKW-BoUOV42E.js +20 -0
  174. package/dist/{ishikawaDiagram-YF4QCWOH-DGOgWzve.js → ishikawaDiagram-5VMMS53U-D15Hi9wp.js} +134 -133
  175. package/dist/{ishikawaDiagram-YF4QCWOH-DAWMXD1l.cjs → ishikawaDiagram-5VMMS53U-ptk0d5z2.cjs} +6 -6
  176. package/dist/{journeyDiagram-JHISSGLW-CHVTMdrq.js → journeyDiagram-3NMN7TZE-BUb4frTN.js} +181 -180
  177. package/dist/{journeyDiagram-JHISSGLW-DfnmJPLn.cjs → journeyDiagram-3NMN7TZE-CxVpPKa-.cjs} +8 -8
  178. package/dist/kanban-definition-UXKFOSKX-Cd_nphr7.cjs +89 -0
  179. package/dist/{kanban-definition-UN3LZRKU-upKA3b5x.js → kanban-definition-UXKFOSKX-DkgBC20j.js} +141 -138
  180. package/dist/katex-DUe6VLjC.cjs +257 -0
  181. package/dist/{katex-D-2KeLwt.js → katex-Dyoqg6Cv.js} +1562 -1600
  182. package/dist/ketchup2.cjs.js +156 -154
  183. package/dist/ketchup2.css +1 -1
  184. package/dist/ketchup2.es.js +31759 -29656
  185. package/dist/{line-DIhSUgmA.js → line-BEo8vh4N.js} +1 -1
  186. package/dist/{line-CzwncDY3.cjs → line-wiGgVVGi.cjs} +1 -1
  187. package/dist/{linear-DUAteVwl.js → linear-BNesvT28.js} +1 -1
  188. package/dist/{linear-1lpO_WlJ.cjs → linear-YA14Lx5Z.cjs} +1 -1
  189. package/dist/locale/en/translation.json.d.ts +16 -0
  190. package/dist/locale/it/translation.json.d.ts +16 -0
  191. package/dist/mermaid-parser.core-CqChDTj1.cjs +6 -0
  192. package/dist/mermaid-parser.core-oFB-qEU8.js +638 -0
  193. package/dist/{mindmap-definition-RKZ34NQL-C8cZ7xN-.cjs → mindmap-definition-YA3MSWOX-0PG4raFG.cjs} +11 -11
  194. package/dist/{mindmap-definition-RKZ34NQL-C3YkCJDi.js → mindmap-definition-YA3MSWOX-Cjs12XgD.js} +156 -154
  195. package/dist/packet-AYTQ26CC-BEwXWBE0.js +3 -0
  196. package/dist/packet-AYTQ26CC-DfXUrk97.cjs +1 -0
  197. package/dist/pegDiagram-XKGWAZYB-BuyVzOiH.js +94 -0
  198. package/dist/pegDiagram-XKGWAZYB-J7VwZsJf.cjs +1 -0
  199. package/dist/pie-WAS4IAKB-4NfHFfJd.cjs +1 -0
  200. package/dist/pie-WAS4IAKB-BOR5Wwai.js +3 -0
  201. package/dist/pieDiagram-E7YTZNPT-B-rPB0ZO.cjs +39 -0
  202. package/dist/pieDiagram-E7YTZNPT-D4bB4TDP.js +205 -0
  203. package/dist/{quadrantDiagram-W4KKPZXB-C2oA-eGZ.js → quadrantDiagram-AXDQQJYC-B6Q9biU9.js} +293 -293
  204. package/dist/quadrantDiagram-AXDQQJYC-C5sdY1DW.cjs +7 -0
  205. package/dist/radar-RG4KPBEZ-BwLQFFzF.js +3 -0
  206. package/dist/radar-RG4KPBEZ-_epvvHKu.cjs +1 -0
  207. package/dist/railroad-74A4TZTK-CaWzRQE0.js +3 -0
  208. package/dist/railroad-74A4TZTK-D2qbdjOh.cjs +1 -0
  209. package/dist/railroad-abnf-HS5TGJTU-D2tm1mra.js +3 -0
  210. package/dist/railroad-abnf-HS5TGJTU-_ThxftPt.cjs +1 -0
  211. package/dist/railroad-ebnf-LZEXJU2U-CKpMMgXK.cjs +1 -0
  212. package/dist/railroad-ebnf-LZEXJU2U-KAuGgmQe.js +3 -0
  213. package/dist/railroad-peg-WCYAUIDC-B8bfIIor.cjs +1 -0
  214. package/dist/railroad-peg-WCYAUIDC-XB38GivH.js +3 -0
  215. package/dist/railroadDiagram-O6MQD6OU-C7LfgSGm.cjs +1 -0
  216. package/dist/railroadDiagram-O6MQD6OU-DFR4_PxB.js +76 -0
  217. package/dist/{requirementDiagram-4Y6WPE33-BEGryahw.js → requirementDiagram-BXWQKSXE-BfWCCTu8.js} +169 -166
  218. package/dist/requirementDiagram-BXWQKSXE-y2O3wvFe.cjs +84 -0
  219. package/dist/{sankeyDiagram-5OEKKPKP-VPzKV4zM.js → sankeyDiagram-P5KCCOFB-B_3NESVW.js} +109 -108
  220. package/dist/sankeyDiagram-P5KCCOFB-z8VLw23o.cjs +40 -0
  221. package/dist/sequenceDiagram-WJ2MYXX4-3cWo24Xv.cjs +162 -0
  222. package/dist/{sequenceDiagram-3UESZ5HK-Bc30_Cm2.js → sequenceDiagram-WJ2MYXX4-B8W9PUBb.js} +692 -688
  223. package/dist/sizeCapture-INFHLROL-CHXIsPO_.js +46 -0
  224. package/dist/sizeCapture-INFHLROL-bJ2ZX4Du.cjs +1 -0
  225. package/dist/src-B16ML7oM.cjs +1 -0
  226. package/dist/{src-DjDATEq3.js → src-D-6ZfKf9.js} +500 -507
  227. package/dist/stateDiagram-D77RDMKH-DghYG1f5.cjs +1 -0
  228. package/dist/stateDiagram-D77RDMKH-IwptGFzp.js +220 -0
  229. package/dist/stateDiagram-v2-MP3YSRHH-0rNAzd4v.cjs +1 -0
  230. package/dist/stateDiagram-v2-MP3YSRHH-NATCGJSV.js +30 -0
  231. package/dist/swimlanes-42K2YHIH-jhIjSCsq.js +4976 -0
  232. package/dist/swimlanes-42K2YHIH-svHo0tVy.cjs +1 -0
  233. package/dist/swimlanesDiagram-VR7AAH4N-DKxpX9Hj.js +31 -0
  234. package/dist/swimlanesDiagram-VR7AAH4N-DcDLe-u-.cjs +8 -0
  235. package/dist/{timeline-definition-PNZ67QCA-1z911Ume.js → timeline-definition-24CTP7MA-C6u6A92C.js} +212 -211
  236. package/dist/timeline-definition-24CTP7MA-CA62jwSB.cjs +120 -0
  237. package/dist/treeView-Q6P3EWNA-CkgGYPwy.js +3 -0
  238. package/dist/treeView-Q6P3EWNA-zIJfTe51.cjs +1 -0
  239. package/dist/treemap-WGGIJYW6-CooEnQQp.cjs +1 -0
  240. package/dist/treemap-WGGIJYW6-D4tTzsvR.js +3 -0
  241. package/dist/types/translation.d.ts +17 -1
  242. package/dist/types/translation.d.ts.map +1 -1
  243. package/dist/utils/data-structures.d.ts +2 -1
  244. package/dist/utils/data-structures.d.ts.map +1 -1
  245. package/dist/{vennDiagram-CIIHVFJN-BiLcQ0SR.js → vennDiagram-4TSXK5OY-Bt9cyeRX.js} +324 -302
  246. package/dist/vennDiagram-4TSXK5OY-YKU1Lb_h.cjs +34 -0
  247. package/dist/wardley-WFR3VGLG-Cp2KFpcw.cjs +1 -0
  248. package/dist/wardley-WFR3VGLG-D1o3hFSK.js +3 -0
  249. package/dist/wardleyDiagram-VM6X3IG4-BvyabMK8.cjs +78 -0
  250. package/dist/{wardleyDiagram-YWT4CUSO-Bq-BejOl.js → wardleyDiagram-VM6X3IG4-QkNx10Ny.js} +144 -143
  251. package/dist/{xychartDiagram-2RQKCTM6-B13zquXC.js → xychartDiagram-S5SC5T6Z-BSwoR01A.js} +729 -559
  252. package/dist/xychartDiagram-S5SC5T6Z-BtNTzcXw.cjs +7 -0
  253. package/package.json +5 -2
  254. package/dist/architecture-7EHR7CIX-Bzeobe9Y.cjs +0 -1
  255. package/dist/architecture-7EHR7CIX-C8NPmR2w.js +0 -3
  256. package/dist/architectureDiagram-3BPJPVTR-DlnXl9d5.cjs +0 -36
  257. package/dist/blockDiagram-GPEHLZMM-BohmRoCC.js +0 -3157
  258. package/dist/blockDiagram-GPEHLZMM-rfyR2Ffl.cjs +0 -132
  259. package/dist/c4Diagram-AAUBKEIU-Du1vqJYZ.cjs +0 -10
  260. package/dist/channel-DJpMBAs-.cjs +0 -1
  261. package/dist/chunk-2J33WTMH-BMqA-riF.js +0 -25
  262. package/dist/chunk-2J33WTMH-BQs9SXq8.cjs +0 -1
  263. package/dist/chunk-3OPIFGDE-Bk_ByTBh.cjs +0 -62
  264. package/dist/chunk-4BX2VUAB-C8VW0QW0.cjs +0 -1
  265. package/dist/chunk-55IACEB6-CNxnI3nm.cjs +0 -1
  266. package/dist/chunk-55IACEB6-CmKDx-YO.js +0 -8
  267. package/dist/chunk-5ZQYHXKU-DMrStm4M.cjs +0 -2
  268. package/dist/chunk-AQP2D5EJ-CYuEYK6i.cjs +0 -231
  269. package/dist/chunk-BSJP7CBP-CSCICPww.cjs +0 -1
  270. package/dist/chunk-BSJP7CBP-YsQACkyC.js +0 -82
  271. package/dist/chunk-CSCIHK7Q-BAdl6GW-.cjs +0 -124
  272. package/dist/chunk-KSCS5N6A-DsN7gJEf.cjs +0 -10
  273. package/dist/chunk-L5ZTLDWV-BQCNoMVG.js +0 -32
  274. package/dist/chunk-L5ZTLDWV-BbLRyKcx.cjs +0 -1
  275. package/dist/chunk-LZXEDZCA-rjLYyX5U.cjs +0 -1
  276. package/dist/chunk-ND2GUHAM-1o9Sjy2_.cjs +0 -1
  277. package/dist/chunk-NNHCCRGN-qV8bfiMQ.cjs +0 -159
  278. package/dist/chunk-NZK2D7GU-CPxdSJTy.js +0 -67
  279. package/dist/chunk-NZK2D7GU-CRneGIrP.cjs +0 -1
  280. package/dist/chunk-O5CBEL6O-Cd4Z5Dy9.cjs +0 -70
  281. package/dist/chunk-QZHKN3VN-ZJ4hLUIw.cjs +0 -1
  282. package/dist/chunk-WU5MYG2G-DuCEb9G-.js +0 -9
  283. package/dist/chunk-WU5MYG2G-ExiaHFbF.cjs +0 -1
  284. package/dist/chunk-XPW4576I-BybfDrup.cjs +0 -32
  285. package/dist/chunk-XPW4576I-D3DQ47oC.js +0 -1146
  286. package/dist/classDiagram-4FO5ZUOK-CRX1QumH.js +0 -29
  287. package/dist/classDiagram-4FO5ZUOK-yTAlLFG2.cjs +0 -1
  288. package/dist/classDiagram-v2-Q7XG4LA2-oM01mYfB.js +0 -29
  289. package/dist/classDiagram-v2-Q7XG4LA2-yTAlLFG2.cjs +0 -1
  290. package/dist/cose-bilkent-S5V4N54A-D7fhWOP4.cjs +0 -1
  291. package/dist/cytoscape.esm-CElDUMAx.cjs +0 -321
  292. package/dist/dagre-BM42HDAG-DfpR5Mml.js +0 -297
  293. package/dist/dagre-BM42HDAG-kORxgFz_.cjs +0 -4
  294. package/dist/diagram-2AECGRRQ-B0IEGKjr.cjs +0 -43
  295. package/dist/diagram-5GNKFQAL-BEY9x4us.js +0 -101
  296. package/dist/diagram-5GNKFQAL-vb6e35PR.cjs +0 -10
  297. package/dist/diagram-KO2AKTUF-9V_zu-2x.cjs +0 -3
  298. package/dist/diagram-LMA3HP47-BN_geiB9.cjs +0 -24
  299. package/dist/diagram-OG6HWLK6-6OnEK9-6.cjs +0 -24
  300. package/dist/dist-D8RD2QWc.cjs +0 -1
  301. package/dist/erDiagram-TEJ5UH35-6OEXIM6m.js +0 -1700
  302. package/dist/erDiagram-TEJ5UH35-CzsOt0l4.cjs +0 -85
  303. package/dist/eventmodeling-FCH6USID-Cued7Lz2.cjs +0 -1
  304. package/dist/eventmodeling-FCH6USID-mCB8hc7X.js +0 -3
  305. package/dist/flowDiagram-I6XJVG4X-DR1CMtZZ.cjs +0 -162
  306. package/dist/ganttDiagram-6RSMTGT7-C5t5_mjf.cjs +0 -292
  307. package/dist/gitGraph-WXDBUCRP-B23gOjfP.js +0 -3
  308. package/dist/gitGraph-WXDBUCRP-Bi-Y5dA7.cjs +0 -1
  309. package/dist/gitGraphDiagram-PVQCEYII-CLdgm7yJ.cjs +0 -106
  310. package/dist/info-J43DQDTF-DC3N8SoX.js +0 -3
  311. package/dist/info-J43DQDTF-jRjlWVKj.cjs +0 -1
  312. package/dist/infoDiagram-5YYISTIA-BIM8xaiE.js +0 -19
  313. package/dist/infoDiagram-5YYISTIA-CbnHgs-I.cjs +0 -2
  314. package/dist/kanban-definition-UN3LZRKU-CbeoJJE7.cjs +0 -89
  315. package/dist/katex-CkiTumqg.cjs +0 -257
  316. package/dist/mermaid-parser.core-ADyJ_PY4.cjs +0 -3
  317. package/dist/mermaid-parser.core-D6xVjl2t.js +0 -373
  318. package/dist/packet-YPE3B663-CGZxZ1Z0.cjs +0 -1
  319. package/dist/packet-YPE3B663-D2JW2EUF.js +0 -3
  320. package/dist/pie-LRSECV5Y-BHyd33ZA.js +0 -3
  321. package/dist/pie-LRSECV5Y-Ca_qbHEv.cjs +0 -1
  322. package/dist/pieDiagram-4H26LBE5-BvhguaHn.js +0 -165
  323. package/dist/pieDiagram-4H26LBE5-DpDrJBQK.cjs +0 -30
  324. package/dist/quadrantDiagram-W4KKPZXB-hWSN7YfD.cjs +0 -7
  325. package/dist/radar-GUYGQ44K-BpJWFTCm.js +0 -3
  326. package/dist/radar-GUYGQ44K-CYqWSxO_.cjs +0 -1
  327. package/dist/requirementDiagram-4Y6WPE33-GmjmsbiY.cjs +0 -84
  328. package/dist/sankeyDiagram-5OEKKPKP-DbGAx-Bm.cjs +0 -40
  329. package/dist/sequenceDiagram-3UESZ5HK-D85rpewi.cjs +0 -162
  330. package/dist/src-DEmZ9bFr.cjs +0 -1
  331. package/dist/stateDiagram-AJRCARHV-Bg4Y3HPa.cjs +0 -1
  332. package/dist/stateDiagram-AJRCARHV-wqjltbKb.js +0 -217
  333. package/dist/stateDiagram-v2-BHNVJYJU-Cgrf5tQC.js +0 -27
  334. package/dist/stateDiagram-v2-BHNVJYJU-D_Tzn4WM.cjs +0 -1
  335. package/dist/timeline-definition-PNZ67QCA-Dpu3hfhP.cjs +0 -120
  336. package/dist/treeView-BLDUP644-C9tQMbiq.js +0 -3
  337. package/dist/treeView-BLDUP644-DKh9BcaT.cjs +0 -1
  338. package/dist/treemap-LRROVOQU-2aferAph.cjs +0 -1
  339. package/dist/treemap-LRROVOQU-CBv3oGC3.js +0 -3
  340. package/dist/vennDiagram-CIIHVFJN-BLBDqWTG.cjs +0 -34
  341. package/dist/wardley-L42UT6IY-CIM0_V5T.js +0 -3
  342. package/dist/wardley-L42UT6IY-DjjjOB8T.cjs +0 -1
  343. package/dist/wardleyDiagram-YWT4CUSO-dzyAWKiV.cjs +0 -78
  344. package/dist/xychartDiagram-2RQKCTM6-DA3O42Dk.cjs +0 -7
@@ -1,13 +1,15 @@
1
- import { g as e, h as t, p as n, x as r, y as i } from "./src-DjDATEq3.js";
2
- import { H as a, J as o, K as s, U as c, a as l, b as u, f as d, v as f, w as p, x as m, y as h, z as g } from "./chunk-CSCIHK7Q-BEk3YcEH.js";
3
- import { c as _, i as v } from "./chunk-5ZQYHXKU-B_nOC8-n.js";
4
- import { t as y } from "./chunk-WU5MYG2G-DuCEb9G-.js";
5
- import { a as b, i as x, n as S, r as C } from "./chunk-O5CBEL6O-DbWeP4Au.js";
6
- import { t as w } from "./mermaid-parser.core-D6xVjl2t.js";
7
- import { t as T } from "./chunk-4BX2VUAB-zglw1T4d.js";
8
- import { t as E } from "./cytoscape.esm-BU21wl3m.js";
1
+ import { _ as e, m as t, p as n, y as r } from "./src-D-6ZfKf9.js";
2
+ import { H as i, J as a, K as o, U as s, a as c, b as l, f as u, v as d, w as f, x as p, y as m, z as h } from "./chunk-DU6HZSFF-CNSdkWoH.js";
3
+ import { n as g } from "./chunk-Y2CYZVJY-i11wjrBe.js";
4
+ import { c as _, i as v } from "./chunk-75Z2AOVW-BwUD389x.js";
5
+ import { t as y } from "./chunk-CLGD4ZFX-DKRy6g5T.js";
6
+ import { i as b, r as x, t as S } from "./chunk-PWAF6VOD-CbmhQpgH.js";
7
+ import { n as C } from "./chunk-GMAD6QVW-DKxKOKLF.js";
8
+ import { n as w } from "./mermaid-parser.core-oFB-qEU8.js";
9
+ import { t as T } from "./chunk-JWPE2WC7-Ccb0QaC8.js";
10
+ import { t as E } from "./cytoscape.esm-BQqfb1oS.js";
9
11
  //#region node_modules/cytoscape-fcose/node_modules/layout-base/layout-base.js
10
- var D = /* @__PURE__ */ i(((e, t) => {
12
+ var D = /* @__PURE__ */ e(((e, t) => {
11
13
  (function(n, r) {
12
14
  typeof e == "object" && typeof t == "object" ? t.exports = r() : typeof define == "function" && define.amd ? define([], r) : typeof e == "object" ? e.layoutBase = r() : n.layoutBase = r();
13
15
  })(e, function() {
@@ -1441,8 +1443,8 @@ var D = /* @__PURE__ */ i(((e, t) => {
1441
1443
  var K = n[E - 2];
1442
1444
  n[E - 2] = 0;
1443
1445
  for (var q = E - 2; q >= U; q--) {
1444
- var J = r.hypot(this.s[q], K), Y = this.s[q] / J, ae = K / J;
1445
- if (this.s[q] = J, q !== U && (K = -ae * n[q - 1], n[q - 1] = Y * n[q - 1]), o) for (var X = 0; X < this.n; X++) J = Y * this.V[X][q] + ae * this.V[X][E - 1], this.V[X][E - 1] = -ae * this.V[X][q] + Y * this.V[X][E - 1], this.V[X][q] = J;
1446
+ var ae = r.hypot(this.s[q], K), J = this.s[q] / ae, Y = K / ae;
1447
+ if (this.s[q] = ae, q !== U && (K = -Y * n[q - 1], n[q - 1] = J * n[q - 1]), o) for (var X = 0; X < this.n; X++) ae = J * this.V[X][q] + Y * this.V[X][E - 1], this.V[X][E - 1] = -Y * this.V[X][q] + J * this.V[X][E - 1], this.V[X][q] = ae;
1446
1448
  }
1447
1449
  break;
1448
1450
  case 2:
@@ -1638,7 +1640,7 @@ var D = /* @__PURE__ */ i(((e, t) => {
1638
1640
  })
1639
1641
  ]);
1640
1642
  });
1641
- })), O = /* @__PURE__ */ i(((e, t) => {
1643
+ })), O = /* @__PURE__ */ e(((e, t) => {
1642
1644
  (function(n, r) {
1643
1645
  typeof e == "object" && typeof t == "object" ? t.exports = r(D()) : typeof define == "function" && define.amd ? define(["layout-base"], r) : typeof e == "object" ? e.coseBase = r(D()) : n.coseBase = r(n.layoutBase);
1644
1646
  })(e, function(e) {
@@ -2647,7 +2649,7 @@ var D = /* @__PURE__ */ i(((e, t) => {
2647
2649
  E.has(e) || (l[c.get(e)] = i);
2648
2650
  });
2649
2651
  }, K = 0; K < G.length; K++) ie(K);
2650
- if (t.alignmentConstraint.horizontal) for (var q = t.alignmentConstraint.horizontal, J = function(e) {
2652
+ if (t.alignmentConstraint.horizontal) for (var q = t.alignmentConstraint.horizontal, ae = function(e) {
2651
2653
  var t = /* @__PURE__ */ new Set();
2652
2654
  q[e].forEach(function(e) {
2653
2655
  t.add(e);
@@ -2658,7 +2660,7 @@ var D = /* @__PURE__ */ i(((e, t) => {
2658
2660
  i = n.size > 0 ? u[c.get(n.values().next().value)] : g(t).y, t.forEach(function(e) {
2659
2661
  E.has(e) || (u[c.get(e)] = i);
2660
2662
  });
2661
- }, Y = 0; Y < q.length; Y++) J(Y);
2663
+ }, J = 0; J < q.length; J++) ae(J);
2662
2664
  }
2663
2665
  t.relativePlacementConstraint && (function() {
2664
2666
  var e = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Set(), d = /* @__PURE__ */ new Set();
@@ -2737,25 +2739,25 @@ var D = /* @__PURE__ */ i(((e, t) => {
2737
2739
  i.get(e) ? i.get(e).forEach(function(t) {
2738
2740
  u[c.get(t)] = ee.get(e);
2739
2741
  }) : u[c.get(e)] = ee.get(e);
2740
- }, K = !0, q = !1, J = void 0;
2742
+ }, K = !0, q = !1, ae = void 0;
2741
2743
  try {
2742
- for (var Y = ee.keys()[Symbol.iterator](), ae; !(K = (ae = Y.next()).done); K = !0) {
2743
- var G = ae.value;
2744
+ for (var J = ee.keys()[Symbol.iterator](), Y; !(K = (Y = J.next()).done); K = !0) {
2745
+ var G = Y.value;
2744
2746
  ie(G);
2745
2747
  }
2746
2748
  } catch (e) {
2747
- q = !0, J = e;
2749
+ q = !0, ae = e;
2748
2750
  } finally {
2749
2751
  try {
2750
- !K && Y.return && Y.return();
2752
+ !K && J.return && J.return();
2751
2753
  } finally {
2752
- if (q) throw J;
2754
+ if (q) throw ae;
2753
2755
  }
2754
2756
  }
2755
2757
  })();
2756
2758
  }
2757
- for (var ae = 0; ae < d.length; ae++) {
2758
- var X = d[ae];
2759
+ for (var Y = 0; Y < d.length; Y++) {
2760
+ var X = d[Y];
2759
2761
  X.getChild() ?? X.setCenter(l[c.get(X.id)], u[c.get(X.id)]);
2760
2762
  }
2761
2763
  }, e.exports = c;
@@ -2773,7 +2775,7 @@ var D = /* @__PURE__ */ i(((e, t) => {
2773
2775
  return r(45);
2774
2776
  })();
2775
2777
  });
2776
- })), k = /* @__PURE__ */ r((/* @__PURE__ */ i(((e, t) => {
2778
+ })), k = /* @__PURE__ */ r((/* @__PURE__ */ e(((e, t) => {
2777
2779
  (function(n, r) {
2778
2780
  typeof e == "object" && typeof t == "object" ? t.exports = r(O()) : typeof define == "function" && define.amd ? define(["cose-base"], r) : typeof e == "object" ? e.cytoscapeFcose = r(O()) : n.cytoscapeFcose = r(n.coseBase);
2779
2781
  })(e, function(e) {
@@ -3340,10 +3342,10 @@ var D = /* @__PURE__ */ i(((e, t) => {
3340
3342
  yCoords: p
3341
3343
  }), U;
3342
3344
  } else {
3343
- var ie = l.keys(), K = t.getElementById(ie.next().value), q = K.position(), J = K.outerWidth();
3345
+ var ie = l.keys(), K = t.getElementById(ie.next().value), q = K.position(), ae = K.outerWidth();
3344
3346
  if (f.push(q.x), p.push(q.y), y == 2) {
3345
- var Y = t.getElementById(ie.next().value).outerWidth();
3346
- f.push(q.x + J / 2 + Y / 2 + e.idealEdgeLength), p.push(q.y);
3347
+ var J = t.getElementById(ie.next().value).outerWidth();
3348
+ f.push(q.x + ae / 2 + J / 2 + e.idealEdgeLength), p.push(q.y);
3347
3349
  }
3348
3350
  return U = {
3349
3351
  nodeIndexes: l,
@@ -3378,54 +3380,57 @@ var D = /* @__PURE__ */ i(((e, t) => {
3378
3380
  T: "top",
3379
3381
  B: "bottom"
3380
3382
  }, j = {
3381
- L: /* @__PURE__ */ t((e) => `${e},${e / 2} 0,${e} 0,0`, "L"),
3382
- R: /* @__PURE__ */ t((e) => `0,${e / 2} ${e},0 ${e},${e}`, "R"),
3383
- T: /* @__PURE__ */ t((e) => `0,0 ${e},0 ${e / 2},${e}`, "T"),
3384
- B: /* @__PURE__ */ t((e) => `${e / 2},0 ${e},${e} 0,${e}`, "B")
3383
+ L: /* @__PURE__ */ g((e) => `${e},${e / 2} 0,${e} 0,0`, "L"),
3384
+ R: /* @__PURE__ */ g((e) => `0,${e / 2} ${e},0 ${e},${e}`, "R"),
3385
+ T: /* @__PURE__ */ g((e) => `0,0 ${e},0 ${e / 2},${e}`, "T"),
3386
+ B: /* @__PURE__ */ g((e) => `${e / 2},0 ${e},${e} 0,${e}`, "B")
3385
3387
  }, M = {
3386
- L: /* @__PURE__ */ t((e, t) => e - t + 2, "L"),
3387
- R: /* @__PURE__ */ t((e, t) => e - 2, "R"),
3388
- T: /* @__PURE__ */ t((e, t) => e - t + 2, "T"),
3389
- B: /* @__PURE__ */ t((e, t) => e - 2, "B")
3390
- }, N = /* @__PURE__ */ t(function(e) {
3388
+ L: /* @__PURE__ */ g((e, t) => e - t + 2, "L"),
3389
+ R: /* @__PURE__ */ g((e, t) => e - 2, "R"),
3390
+ T: /* @__PURE__ */ g((e, t) => e - t + 2, "T"),
3391
+ B: /* @__PURE__ */ g((e, t) => e - 2, "B")
3392
+ }, N = /* @__PURE__ */ g(function(e) {
3391
3393
  return F(e) ? e === "L" ? "R" : "L" : e === "T" ? "B" : "T";
3392
- }, "getOppositeArchitectureDirection"), P = /* @__PURE__ */ t(function(e) {
3394
+ }, "getOppositeArchitectureDirection"), P = /* @__PURE__ */ g(function(e) {
3393
3395
  let t = e;
3394
3396
  return t === "L" || t === "R" || t === "T" || t === "B";
3395
- }, "isArchitectureDirection"), F = /* @__PURE__ */ t(function(e) {
3397
+ }, "isArchitectureDirection"), F = /* @__PURE__ */ g(function(e) {
3396
3398
  let t = e;
3397
3399
  return t === "L" || t === "R";
3398
- }, "isArchitectureDirectionX"), I = /* @__PURE__ */ t(function(e) {
3400
+ }, "isArchitectureDirectionX"), I = /* @__PURE__ */ g(function(e) {
3399
3401
  let t = e;
3400
3402
  return t === "T" || t === "B";
3401
- }, "isArchitectureDirectionY"), L = /* @__PURE__ */ t(function(e, t) {
3403
+ }, "isArchitectureDirectionY"), L = /* @__PURE__ */ g(function(e, t) {
3402
3404
  let n = F(e) && I(t), r = I(e) && F(t);
3403
3405
  return n || r;
3404
- }, "isArchitectureDirectionXY"), R = /* @__PURE__ */ t(function(e) {
3406
+ }, "isArchitectureDirectionXY"), R = /* @__PURE__ */ g(function(e) {
3405
3407
  let t = e[0], n = e[1], r = F(t) && I(n), i = I(t) && F(n);
3406
3408
  return r || i;
3407
- }, "isArchitecturePairXY"), z = /* @__PURE__ */ t(function(e) {
3409
+ }, "isArchitecturePairXY"), z = /* @__PURE__ */ g(function(e) {
3408
3410
  return e !== "LL" && e !== "RR" && e !== "TT" && e !== "BB";
3409
- }, "isValidArchitectureDirectionPair"), B = /* @__PURE__ */ t(function(e, t) {
3411
+ }, "isValidArchitectureDirectionPair"), B = /* @__PURE__ */ g(function(e, t) {
3410
3412
  let n = `${e}${t}`;
3411
3413
  return z(n) ? n : void 0;
3412
- }, "getArchitectureDirectionPair"), V = /* @__PURE__ */ t(function([e, t], n) {
3414
+ }, "getArchitectureDirectionPair"), V = /* @__PURE__ */ g(function([e, t], n) {
3413
3415
  let r = n[0], i = n[1];
3414
3416
  return F(r) ? I(i) ? [e + (r === "L" ? -1 : 1), t + (i === "T" ? 1 : -1)] : [e + (r === "L" ? -1 : 1), t] : F(i) ? [e + (i === "L" ? 1 : -1), t + (r === "T" ? 1 : -1)] : [e, t + (r === "T" ? 1 : -1)];
3415
- }, "shiftPositionByArchitectureDirectionPair"), ee = /* @__PURE__ */ t(function(e) {
3417
+ }, "shiftPositionByArchitectureDirectionPair"), ee = /* @__PURE__ */ g(function(e) {
3416
3418
  return e === "LT" || e === "TL" ? [1, 1] : e === "BL" || e === "LB" ? [1, -1] : e === "BR" || e === "RB" ? [-1, -1] : [-1, 1];
3417
- }, "getArchitectureDirectionXYFactors"), te = /* @__PURE__ */ t(function(e, t) {
3419
+ }, "getArchitectureDirectionXYFactors"), te = /* @__PURE__ */ g(function(e, t) {
3418
3420
  return L(e, t) ? "bend" : F(e) ? "horizontal" : "vertical";
3419
- }, "getArchitectureDirectionAlignment"), H = /* @__PURE__ */ t(function(e) {
3421
+ }, "getArchitectureDirectionAlignment"), H = /* @__PURE__ */ g(function(e) {
3420
3422
  return e.type === "service";
3421
- }, "isArchitectureService"), ne = /* @__PURE__ */ t(function(e) {
3423
+ }, "isArchitectureService"), ne = /* @__PURE__ */ g(function(e) {
3422
3424
  return e.type === "junction";
3423
- }, "isArchitectureJunction"), re = /* @__PURE__ */ t((e) => e.data(), "edgeData"), U = /* @__PURE__ */ t((e) => e.data(), "nodeData"), W = d.architecture, G = class {
3425
+ }, "isArchitectureJunction"), re = /* @__PURE__ */ g((e, t) => {
3426
+ let [n, r] = [e, t].sort();
3427
+ return `${JSON.stringify(n)}-${JSON.stringify(r)}`;
3428
+ }, "architectureGroupAlignmentKey"), U = /* @__PURE__ */ g((e) => e.data(), "edgeData"), W = /* @__PURE__ */ g((e) => e.data(), "nodeData"), G = u.architecture, ie = class {
3424
3429
  constructor() {
3425
- this.nodes = {}, this.groups = {}, this.edges = [], this.registeredIds = {}, this.elements = {}, this.diagramId = "", this.setAccTitle = c, this.getAccTitle = h, this.setDiagramTitle = s, this.getDiagramTitle = p, this.getAccDescription = f, this.setAccDescription = a, this.clear();
3430
+ this.nodes = /* @__PURE__ */ new Map(), this.groups = /* @__PURE__ */ new Map(), this.edges = [], this.layoutHints = [], this.registeredIds = /* @__PURE__ */ new Map(), this.elements = /* @__PURE__ */ new Map(), this.diagramId = "", this.setAccTitle = s, this.getAccTitle = m, this.setDiagramTitle = o, this.getDiagramTitle = f, this.getAccDescription = d, this.setAccDescription = i, this.clear();
3426
3431
  }
3427
3432
  static {
3428
- t(this, "ArchitectureDB");
3433
+ g(this, "ArchitectureDB");
3429
3434
  }
3430
3435
  setDiagramId(e) {
3431
3436
  this.diagramId = e;
@@ -3434,16 +3439,16 @@ var D = /* @__PURE__ */ i(((e, t) => {
3434
3439
  return this.diagramId;
3435
3440
  }
3436
3441
  clear() {
3437
- this.nodes = {}, this.groups = {}, this.edges = [], this.registeredIds = {}, this.dataStructures = void 0, this.elements = {}, this.diagramId = "", l();
3442
+ this.nodes = /* @__PURE__ */ new Map(), this.groups = /* @__PURE__ */ new Map(), this.edges = [], this.layoutHints = [], this.registeredIds = /* @__PURE__ */ new Map(), this.dataStructures = void 0, this.elements = /* @__PURE__ */ new Map(), this.diagramId = "", c();
3438
3443
  }
3439
3444
  addService({ id: e, icon: t, in: n, title: r, iconText: i }) {
3440
- if (this.registeredIds[e] !== void 0) throw Error(`The service id [${e}] is already in use by another ${this.registeredIds[e]}`);
3445
+ if (this.registeredIds.has(e)) throw Error(`The service id [${e}] is already in use by another ${this.registeredIds.get(e)}`);
3441
3446
  if (n !== void 0) {
3442
3447
  if (e === n) throw Error(`The service [${e}] cannot be placed within itself`);
3443
- if (this.registeredIds[n] === void 0) throw Error(`The service [${e}]'s parent does not exist. Please make sure the parent is created before this service`);
3444
- if (this.registeredIds[n] === "node") throw Error(`The service [${e}]'s parent is not a group`);
3448
+ if (!this.registeredIds.has(n)) throw Error(`The service [${e}]'s parent does not exist. Please make sure the parent is created before this service`);
3449
+ if (this.registeredIds.get(n) === "node") throw Error(`The service [${e}]'s parent is not a group`);
3445
3450
  }
3446
- this.registeredIds[e] = "node", this.nodes[e] = {
3451
+ this.registeredIds.set(e, "node"), this.nodes.set(e, {
3447
3452
  id: e,
3448
3453
  type: "service",
3449
3454
  icon: t,
@@ -3451,57 +3456,57 @@ var D = /* @__PURE__ */ i(((e, t) => {
3451
3456
  title: r,
3452
3457
  edges: [],
3453
3458
  in: n
3454
- };
3459
+ });
3455
3460
  }
3456
3461
  getServices() {
3457
- return Object.values(this.nodes).filter(H);
3462
+ return [...this.nodes.values()].filter(H);
3458
3463
  }
3459
3464
  addJunction({ id: e, in: t }) {
3460
- if (this.registeredIds[e] !== void 0) throw Error(`The junction id [${e}] is already in use by another ${this.registeredIds[e]}`);
3465
+ if (this.registeredIds.has(e)) throw Error(`The junction id [${e}] is already in use by another ${this.registeredIds.get(e)}`);
3461
3466
  if (t !== void 0) {
3462
3467
  if (e === t) throw Error(`The junction [${e}] cannot be placed within itself`);
3463
- if (this.registeredIds[t] === void 0) throw Error(`The junction [${e}]'s parent does not exist. Please make sure the parent is created before this junction`);
3464
- if (this.registeredIds[t] === "node") throw Error(`The junction [${e}]'s parent is not a group`);
3468
+ if (!this.registeredIds.has(t)) throw Error(`The junction [${e}]'s parent does not exist. Please make sure the parent is created before this junction`);
3469
+ if (this.registeredIds.get(t) === "node") throw Error(`The junction [${e}]'s parent is not a group`);
3465
3470
  }
3466
- this.registeredIds[e] = "node", this.nodes[e] = {
3471
+ this.registeredIds.set(e, "node"), this.nodes.set(e, {
3467
3472
  id: e,
3468
3473
  type: "junction",
3469
3474
  edges: [],
3470
3475
  in: t
3471
- };
3476
+ });
3472
3477
  }
3473
3478
  getJunctions() {
3474
- return Object.values(this.nodes).filter(ne);
3479
+ return [...this.nodes.values()].filter(ne);
3475
3480
  }
3476
3481
  getNodes() {
3477
- return Object.values(this.nodes);
3482
+ return [...this.nodes.values()];
3478
3483
  }
3479
3484
  getNode(e) {
3480
- return this.nodes[e] ?? null;
3485
+ return this.nodes.get(e) ?? null;
3481
3486
  }
3482
3487
  addGroup({ id: e, icon: t, in: n, title: r }) {
3483
- if (this.registeredIds?.[e] !== void 0) throw Error(`The group id [${e}] is already in use by another ${this.registeredIds[e]}`);
3488
+ if (this.registeredIds.has(e)) throw Error(`The group id [${e}] is already in use by another ${this.registeredIds.get(e)}`);
3484
3489
  if (n !== void 0) {
3485
3490
  if (e === n) throw Error(`The group [${e}] cannot be placed within itself`);
3486
- if (this.registeredIds?.[n] === void 0) throw Error(`The group [${e}]'s parent does not exist. Please make sure the parent is created before this group`);
3487
- if (this.registeredIds?.[n] === "node") throw Error(`The group [${e}]'s parent is not a group`);
3491
+ if (!this.registeredIds.has(n)) throw Error(`The group [${e}]'s parent does not exist. Please make sure the parent is created before this group`);
3492
+ if (this.registeredIds.get(n) === "node") throw Error(`The group [${e}]'s parent is not a group`);
3488
3493
  }
3489
- this.registeredIds[e] = "group", this.groups[e] = {
3494
+ this.registeredIds.set(e, "group"), this.groups.set(e, {
3490
3495
  id: e,
3491
3496
  icon: t,
3492
3497
  title: r,
3493
3498
  in: n
3494
- };
3499
+ });
3495
3500
  }
3496
3501
  getGroups() {
3497
- return Object.values(this.groups);
3502
+ return [...this.groups.values()];
3498
3503
  }
3499
3504
  addEdge({ lhsId: e, rhsId: t, lhsDir: n, rhsDir: r, lhsInto: i, rhsInto: a, lhsGroup: o, rhsGroup: s, title: c }) {
3500
3505
  if (!P(n)) throw Error(`Invalid direction given for left hand side of edge ${e}--${t}. Expected (L,R,T,B) got ${String(n)}`);
3501
3506
  if (!P(r)) throw Error(`Invalid direction given for right hand side of edge ${e}--${t}. Expected (L,R,T,B) got ${String(r)}`);
3502
- if (this.nodes[e] === void 0 && this.groups[e] === void 0) throw Error(`The left-hand id [${e}] does not yet exist. Please create the service/group before declaring an edge to it.`);
3503
- if (this.nodes[t] === void 0 && this.groups[t] === void 0) throw Error(`The right-hand id [${t}] does not yet exist. Please create the service/group before declaring an edge to it.`);
3504
- let l = this.nodes[e].in, u = this.nodes[t].in;
3507
+ if (!this.nodes.has(e) && !this.groups.has(e)) throw Error(`The left-hand id [${e}] does not yet exist. Please create the service/group before declaring an edge to it.`);
3508
+ if (!this.nodes.has(t) && !this.groups.has(t)) throw Error(`The right-hand id [${t}] does not yet exist. Please create the service/group before declaring an edge to it.`);
3509
+ let l = this.nodes.get(e).in, u = this.nodes.get(t).in;
3505
3510
  if (o && l && u && l == u) throw Error(`The left-hand id [${e}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);
3506
3511
  if (s && l && u && l == u) throw Error(`The right-hand id [${t}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);
3507
3512
  let d = {
@@ -3515,86 +3520,112 @@ var D = /* @__PURE__ */ i(((e, t) => {
3515
3520
  rhsGroup: s,
3516
3521
  title: c
3517
3522
  };
3518
- this.edges.push(d), this.nodes[e] && this.nodes[t] && (this.nodes[e].edges.push(this.edges[this.edges.length - 1]), this.nodes[t].edges.push(this.edges[this.edges.length - 1]));
3523
+ this.edges.push(d);
3524
+ let f = this.nodes.get(e), p = this.nodes.get(t);
3525
+ f && p && (f.edges.push(this.edges[this.edges.length - 1]), p.edges.push(this.edges[this.edges.length - 1]));
3519
3526
  }
3520
3527
  getEdges() {
3521
3528
  return this.edges;
3522
3529
  }
3530
+ addLayoutHint(e) {
3531
+ if (e.members.length < 2) throw Error(`An align directive requires at least two members; got ${e.members.length}`);
3532
+ let t = /* @__PURE__ */ new Set();
3533
+ e.members.forEach((n) => {
3534
+ if (this.registeredIds.get(n) !== "node") throw Error(`align ${e.direction} references [${n}], which is not a service or junction`);
3535
+ if (t.has(n)) throw Error(`align ${e.direction} lists [${n}] more than once`);
3536
+ t.add(n);
3537
+ }), this.layoutHints.push(e);
3538
+ }
3539
+ getLayoutHints() {
3540
+ return this.layoutHints;
3541
+ }
3523
3542
  getDataStructures() {
3524
3543
  if (this.dataStructures === void 0) {
3525
- let e = {}, n = Object.entries(this.nodes).reduce((t, [n, r]) => (t[n] = r.edges.reduce((t, r) => {
3526
- let i = this.getNode(r.lhsId)?.in, a = this.getNode(r.rhsId)?.in;
3527
- if (i && a && i !== a) {
3528
- let t = te(r.lhsDir, r.rhsDir);
3529
- t !== "bend" && (e[i] ??= {}, e[i][a] = t, e[a] ??= {}, e[a][i] = t);
3530
- }
3531
- if (r.lhsId === n) {
3532
- let e = B(r.lhsDir, r.rhsDir);
3533
- e && (t[e] = r.rhsId);
3534
- } else {
3535
- let e = B(r.rhsDir, r.lhsDir);
3536
- e && (t[e] = r.lhsId);
3544
+ let e = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Map();
3545
+ for (let [n, r] of this.nodes.entries()) {
3546
+ let i = /* @__PURE__ */ new Map();
3547
+ for (let t of r.edges) {
3548
+ let r = this.getNode(t.lhsId)?.in, a = this.getNode(t.rhsId)?.in;
3549
+ if (r && a && r !== a) {
3550
+ let n = te(t.lhsDir, t.rhsDir);
3551
+ n !== "bend" && e.set(re(r, a), n);
3552
+ }
3553
+ if (t.lhsId === n) {
3554
+ let e = B(t.lhsDir, t.rhsDir);
3555
+ e && i.set(e, t.rhsId);
3556
+ } else {
3557
+ let e = B(t.rhsDir, t.lhsDir);
3558
+ e && i.set(e, t.lhsId);
3559
+ }
3537
3560
  }
3538
- return t;
3539
- }, {}), t), {}), r = Object.keys(n)[0], i = { [r]: 1 }, a = Object.keys(n).reduce((e, t) => t === r ? e : {
3540
- ...e,
3541
- [t]: 1
3542
- }, {}), o = /* @__PURE__ */ t((e) => {
3543
- let t = { [e]: [0, 0] }, r = [e];
3544
- for (; r.length > 0;) {
3545
- let e = r.shift();
3561
+ t.set(n, i);
3562
+ }
3563
+ let n = /* @__PURE__ */ new Set(), r = new Set(t.keys()), i = /* @__PURE__ */ g((e) => {
3564
+ let i = /* @__PURE__ */ new Map([[e, [0, 0]]]), a = [e];
3565
+ for (; a.length > 0;) {
3566
+ let e = a.shift();
3546
3567
  if (e) {
3547
- i[e] = 1, delete a[e];
3548
- let o = n[e], [s, c] = t[e];
3549
- Object.entries(o).forEach(([e, n]) => {
3550
- i[n] || (t[n] = V([s, c], e), r.push(n));
3568
+ n.add(e), r.delete(e);
3569
+ let o = t.get(e);
3570
+ if (!o) throw Error(`BFS error: adjacency list for id ${e} not found. Please report this as a bug.`);
3571
+ let s = i.get(e);
3572
+ if (!s) throw Error(`BFS error: position for id ${e} not found in spatial map. Please report this as a bug.`);
3573
+ let [c, l] = s;
3574
+ o.forEach((e, t) => {
3575
+ n.has(e) || (i.set(e, V([c, l], t)), a.push(e));
3551
3576
  });
3552
3577
  }
3553
3578
  }
3554
- return t;
3555
- }, "BFS"), s = [o(r)];
3556
- for (; Object.keys(a).length > 0;) s.push(o(Object.keys(a)[0]));
3579
+ return i;
3580
+ }, "BFS"), a = [];
3581
+ for (; r.size > 0;) {
3582
+ let e = r.values().next().value;
3583
+ a.push(i(e));
3584
+ }
3557
3585
  this.dataStructures = {
3558
- adjList: n,
3559
- spatialMaps: s,
3586
+ adjList: t,
3587
+ spatialMaps: a,
3560
3588
  groupAlignments: e
3561
3589
  };
3562
3590
  }
3563
3591
  return this.dataStructures;
3564
3592
  }
3565
3593
  setElementForId(e, t) {
3566
- this.elements[e] = t;
3594
+ this.elements.set(e, t);
3567
3595
  }
3568
3596
  getElementById(e) {
3569
- return this.elements[e];
3597
+ return this.elements.get(e);
3570
3598
  }
3571
3599
  getConfig() {
3572
3600
  return v({
3573
- ...W,
3574
- ...u().architecture
3601
+ ...G,
3602
+ ...l().architecture
3575
3603
  });
3576
3604
  }
3577
3605
  getConfigField(e) {
3578
3606
  return this.getConfig()[e];
3579
3607
  }
3580
- }, ie = /* @__PURE__ */ t((e, t) => {
3608
+ }, K = /* @__PURE__ */ g((e, t) => {
3581
3609
  T(e, t), e.groups.map((e) => t.addGroup(e)), e.services.map((e) => t.addService({
3582
3610
  ...e,
3583
3611
  type: "service"
3584
3612
  })), e.junctions.map((e) => t.addJunction({
3585
3613
  ...e,
3586
3614
  type: "junction"
3587
- })), e.edges.map((e) => t.addEdge(e));
3588
- }, "populateDb"), K = {
3615
+ })), e.edges.map((e) => t.addEdge(e)), e.alignments?.map((e) => t.addLayoutHint({
3616
+ direction: e.direction,
3617
+ members: [...e.members]
3618
+ }));
3619
+ }, "populateDb"), q = {
3589
3620
  parser: { yy: void 0 },
3590
- parse: /* @__PURE__ */ t(async (t) => {
3591
- let n = await w("architecture", t);
3592
- e.debug(n);
3593
- let r = K.parser?.yy;
3594
- if (!(r instanceof G)) throw Error("parser.parser?.yy was not a ArchitectureDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");
3595
- ie(n, r);
3621
+ parse: /* @__PURE__ */ g(async (e) => {
3622
+ let n = await w("architecture", e);
3623
+ t.debug(n);
3624
+ let r = q.parser?.yy;
3625
+ if (!(r instanceof ie)) throw Error("parser.parser?.yy was not a ArchitectureDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");
3626
+ K(n, r);
3596
3627
  }, "parse")
3597
- }, q = /* @__PURE__ */ t((e) => `
3628
+ }, ae = /* @__PURE__ */ g((e) => `
3598
3629
  .edge {
3599
3630
  stroke-width: ${e.archEdgeWidth};
3600
3631
  stroke: ${e.archEdgeColor};
@@ -3625,51 +3656,67 @@ var D = /* @__PURE__ */ i(((e, t) => {
3625
3656
  display: -webkit-box;
3626
3657
  -webkit-box-orient: vertical;
3627
3658
  }
3628
- `, "getStyles"), J = /* @__PURE__ */ t((e) => `<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/>${e}</g>`, "wrapIcon"), Y = {
3659
+ `, "getStyles");
3660
+ function J(e, t) {
3661
+ if (e === 0) return t();
3662
+ let n = Math.random, r = e >>> 0;
3663
+ Math.random = function() {
3664
+ r = r + 1831565813 >>> 0;
3665
+ let e = r;
3666
+ return e = Math.imul(e ^ e >>> 15, e | 1), e ^= e + Math.imul(e ^ e >>> 7, e | 61), ((e ^ e >>> 14) >>> 0) / 4294967296;
3667
+ };
3668
+ try {
3669
+ return t();
3670
+ } finally {
3671
+ Math.random = n;
3672
+ }
3673
+ }
3674
+ g(J, "withSeededRandom");
3675
+ var Y = /* @__PURE__ */ g((e) => `<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/>${e}</g>`, "wrapIcon"), X = {
3629
3676
  prefix: "mermaid-architecture",
3630
3677
  height: 80,
3631
3678
  width: 80,
3632
3679
  icons: {
3633
- database: { body: J("<path id=\"b\" data-name=\"4\" d=\"m20,57.86c0,3.94,8.95,7.14,20,7.14s20-3.2,20-7.14\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><path id=\"c\" data-name=\"3\" d=\"m20,45.95c0,3.94,8.95,7.14,20,7.14s20-3.2,20-7.14\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><path id=\"d\" data-name=\"2\" d=\"m20,34.05c0,3.94,8.95,7.14,20,7.14s20-3.2,20-7.14\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><ellipse id=\"e\" data-name=\"1\" cx=\"40\" cy=\"22.14\" rx=\"20\" ry=\"7.14\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><line x1=\"20\" y1=\"57.86\" x2=\"20\" y2=\"22.14\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><line x1=\"60\" y1=\"57.86\" x2=\"60\" y2=\"22.14\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/>") },
3634
- server: { body: J("<rect x=\"17.5\" y=\"17.5\" width=\"45\" height=\"45\" rx=\"2\" ry=\"2\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><line x1=\"17.5\" y1=\"32.5\" x2=\"62.5\" y2=\"32.5\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><line x1=\"17.5\" y1=\"47.5\" x2=\"62.5\" y2=\"47.5\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><g><path d=\"m56.25,25c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z\" style=\"fill: #fff; stroke-width: 0px;\"/><path d=\"m56.25,25c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10;\"/></g><g><path d=\"m56.25,40c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z\" style=\"fill: #fff; stroke-width: 0px;\"/><path d=\"m56.25,40c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10;\"/></g><g><path d=\"m56.25,55c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z\" style=\"fill: #fff; stroke-width: 0px;\"/><path d=\"m56.25,55c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10;\"/></g><g><circle cx=\"32.5\" cy=\"25\" r=\".75\" style=\"fill: #fff; stroke: #fff; stroke-miterlimit: 10;\"/><circle cx=\"27.5\" cy=\"25\" r=\".75\" style=\"fill: #fff; stroke: #fff; stroke-miterlimit: 10;\"/><circle cx=\"22.5\" cy=\"25\" r=\".75\" style=\"fill: #fff; stroke: #fff; stroke-miterlimit: 10;\"/></g><g><circle cx=\"32.5\" cy=\"40\" r=\".75\" style=\"fill: #fff; stroke: #fff; stroke-miterlimit: 10;\"/><circle cx=\"27.5\" cy=\"40\" r=\".75\" style=\"fill: #fff; stroke: #fff; stroke-miterlimit: 10;\"/><circle cx=\"22.5\" cy=\"40\" r=\".75\" style=\"fill: #fff; stroke: #fff; stroke-miterlimit: 10;\"/></g><g><circle cx=\"32.5\" cy=\"55\" r=\".75\" style=\"fill: #fff; stroke: #fff; stroke-miterlimit: 10;\"/><circle cx=\"27.5\" cy=\"55\" r=\".75\" style=\"fill: #fff; stroke: #fff; stroke-miterlimit: 10;\"/><circle cx=\"22.5\" cy=\"55\" r=\".75\" style=\"fill: #fff; stroke: #fff; stroke-miterlimit: 10;\"/></g>") },
3635
- disk: { body: J("<rect x=\"20\" y=\"15\" width=\"40\" height=\"50\" rx=\"1\" ry=\"1\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><ellipse cx=\"24\" cy=\"19.17\" rx=\".8\" ry=\".83\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><ellipse cx=\"56\" cy=\"19.17\" rx=\".8\" ry=\".83\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><ellipse cx=\"24\" cy=\"60.83\" rx=\".8\" ry=\".83\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><ellipse cx=\"56\" cy=\"60.83\" rx=\".8\" ry=\".83\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><ellipse cx=\"40\" cy=\"33.75\" rx=\"14\" ry=\"14.58\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><ellipse cx=\"40\" cy=\"33.75\" rx=\"4\" ry=\"4.17\" style=\"fill: #fff; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><path d=\"m37.51,42.52l-4.83,13.22c-.26.71-1.1,1.02-1.76.64l-4.18-2.42c-.66-.38-.81-1.26-.33-1.84l9.01-10.8c.88-1.05,2.56-.08,2.09,1.2Z\" style=\"fill: #fff; stroke-width: 0px;\"/>") },
3636
- internet: { body: J("<circle cx=\"40\" cy=\"40\" r=\"22.5\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><line x1=\"40\" y1=\"17.5\" x2=\"40\" y2=\"62.5\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><line x1=\"17.5\" y1=\"40\" x2=\"62.5\" y2=\"40\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><path d=\"m39.99,17.51c-15.28,11.1-15.28,33.88,0,44.98\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><path d=\"m40.01,17.51c15.28,11.1,15.28,33.88,0,44.98\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><line x1=\"19.75\" y1=\"30.1\" x2=\"60.25\" y2=\"30.1\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><line x1=\"19.75\" y1=\"49.9\" x2=\"60.25\" y2=\"49.9\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/>") },
3637
- cloud: { body: J("<path d=\"m65,47.5c0,2.76-2.24,5-5,5H20c-2.76,0-5-2.24-5-5,0-1.87,1.03-3.51,2.56-4.36-.04-.21-.06-.42-.06-.64,0-2.6,2.48-4.74,5.65-4.97,1.65-4.51,6.34-7.76,11.85-7.76.86,0,1.69.08,2.5.23,2.09-1.57,4.69-2.5,7.5-2.5,6.1,0,11.19,4.38,12.28,10.17,2.14.56,3.72,2.51,3.72,4.83,0,.03,0,.07-.01.1,2.29.46,4.01,2.48,4.01,4.9Z\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/>") },
3680
+ database: { body: Y("<path id=\"b\" data-name=\"4\" d=\"m20,57.86c0,3.94,8.95,7.14,20,7.14s20-3.2,20-7.14\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><path id=\"c\" data-name=\"3\" d=\"m20,45.95c0,3.94,8.95,7.14,20,7.14s20-3.2,20-7.14\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><path id=\"d\" data-name=\"2\" d=\"m20,34.05c0,3.94,8.95,7.14,20,7.14s20-3.2,20-7.14\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><ellipse id=\"e\" data-name=\"1\" cx=\"40\" cy=\"22.14\" rx=\"20\" ry=\"7.14\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><line x1=\"20\" y1=\"57.86\" x2=\"20\" y2=\"22.14\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><line x1=\"60\" y1=\"57.86\" x2=\"60\" y2=\"22.14\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/>") },
3681
+ server: { body: Y("<rect x=\"17.5\" y=\"17.5\" width=\"45\" height=\"45\" rx=\"2\" ry=\"2\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><line x1=\"17.5\" y1=\"32.5\" x2=\"62.5\" y2=\"32.5\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><line x1=\"17.5\" y1=\"47.5\" x2=\"62.5\" y2=\"47.5\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><g><path d=\"m56.25,25c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z\" style=\"fill: #fff; stroke-width: 0px;\"/><path d=\"m56.25,25c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10;\"/></g><g><path d=\"m56.25,40c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z\" style=\"fill: #fff; stroke-width: 0px;\"/><path d=\"m56.25,40c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10;\"/></g><g><path d=\"m56.25,55c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z\" style=\"fill: #fff; stroke-width: 0px;\"/><path d=\"m56.25,55c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10;\"/></g><g><circle cx=\"32.5\" cy=\"25\" r=\".75\" style=\"fill: #fff; stroke: #fff; stroke-miterlimit: 10;\"/><circle cx=\"27.5\" cy=\"25\" r=\".75\" style=\"fill: #fff; stroke: #fff; stroke-miterlimit: 10;\"/><circle cx=\"22.5\" cy=\"25\" r=\".75\" style=\"fill: #fff; stroke: #fff; stroke-miterlimit: 10;\"/></g><g><circle cx=\"32.5\" cy=\"40\" r=\".75\" style=\"fill: #fff; stroke: #fff; stroke-miterlimit: 10;\"/><circle cx=\"27.5\" cy=\"40\" r=\".75\" style=\"fill: #fff; stroke: #fff; stroke-miterlimit: 10;\"/><circle cx=\"22.5\" cy=\"40\" r=\".75\" style=\"fill: #fff; stroke: #fff; stroke-miterlimit: 10;\"/></g><g><circle cx=\"32.5\" cy=\"55\" r=\".75\" style=\"fill: #fff; stroke: #fff; stroke-miterlimit: 10;\"/><circle cx=\"27.5\" cy=\"55\" r=\".75\" style=\"fill: #fff; stroke: #fff; stroke-miterlimit: 10;\"/><circle cx=\"22.5\" cy=\"55\" r=\".75\" style=\"fill: #fff; stroke: #fff; stroke-miterlimit: 10;\"/></g>") },
3682
+ disk: { body: Y("<rect x=\"20\" y=\"15\" width=\"40\" height=\"50\" rx=\"1\" ry=\"1\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><ellipse cx=\"24\" cy=\"19.17\" rx=\".8\" ry=\".83\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><ellipse cx=\"56\" cy=\"19.17\" rx=\".8\" ry=\".83\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><ellipse cx=\"24\" cy=\"60.83\" rx=\".8\" ry=\".83\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><ellipse cx=\"56\" cy=\"60.83\" rx=\".8\" ry=\".83\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><ellipse cx=\"40\" cy=\"33.75\" rx=\"14\" ry=\"14.58\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><ellipse cx=\"40\" cy=\"33.75\" rx=\"4\" ry=\"4.17\" style=\"fill: #fff; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><path d=\"m37.51,42.52l-4.83,13.22c-.26.71-1.1,1.02-1.76.64l-4.18-2.42c-.66-.38-.81-1.26-.33-1.84l9.01-10.8c.88-1.05,2.56-.08,2.09,1.2Z\" style=\"fill: #fff; stroke-width: 0px;\"/>") },
3683
+ internet: { body: Y("<circle cx=\"40\" cy=\"40\" r=\"22.5\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><line x1=\"40\" y1=\"17.5\" x2=\"40\" y2=\"62.5\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><line x1=\"17.5\" y1=\"40\" x2=\"62.5\" y2=\"40\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><path d=\"m39.99,17.51c-15.28,11.1-15.28,33.88,0,44.98\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><path d=\"m40.01,17.51c15.28,11.1,15.28,33.88,0,44.98\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><line x1=\"19.75\" y1=\"30.1\" x2=\"60.25\" y2=\"30.1\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/><line x1=\"19.75\" y1=\"49.9\" x2=\"60.25\" y2=\"49.9\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/>") },
3684
+ cloud: { body: Y("<path d=\"m65,47.5c0,2.76-2.24,5-5,5H20c-2.76,0-5-2.24-5-5,0-1.87,1.03-3.51,2.56-4.36-.04-.21-.06-.42-.06-.64,0-2.6,2.48-4.74,5.65-4.97,1.65-4.51,6.34-7.76,11.85-7.76.86,0,1.69.08,2.5.23,2.09-1.57,4.69-2.5,7.5-2.5,6.1,0,11.19,4.38,12.28,10.17,2.14.56,3.72,2.51,3.72,4.83,0,.03,0,.07-.01.1,2.29.46,4.01,2.48,4.01,4.9Z\" style=\"fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;\"/>") },
3638
3685
  unknown: b,
3639
- blank: { body: J("") }
3686
+ blank: { body: Y("") }
3640
3687
  }
3641
- }, ae = /* @__PURE__ */ t(async function(e, t, n, r) {
3688
+ }, oe = /* @__PURE__ */ g(async function(e, t, n, r) {
3642
3689
  let i = n.getConfigField("padding"), a = n.getConfigField("iconSize"), o = a / 2, s = a / 6, c = s / 2;
3643
3690
  await Promise.all(t.edges().map(async (t) => {
3644
- let { source: a, sourceDir: l, sourceArrow: u, sourceGroup: d, target: f, targetDir: p, targetArrow: h, targetGroup: g, label: v } = re(t), { x: y, y: b } = t[0].sourceEndpoint(), { x, y: C } = t[0].midpoint(), { x: w, y: T } = t[0].targetEndpoint(), E = i + 4;
3645
- if (d && (F(l) ? y += l === "L" ? -E : E : b += l === "T" ? -E : E + 18), g && (F(p) ? w += p === "L" ? -E : E : T += p === "T" ? -E : E + 18), !d && n.getNode(a)?.type === "junction" && (F(l) ? y += l === "L" ? o : -o : b += l === "T" ? o : -o), !g && n.getNode(f)?.type === "junction" && (F(p) ? w += p === "L" ? o : -o : T += p === "T" ? o : -o), t[0]._private.rscratch) {
3691
+ let { source: a, sourceDir: l, sourceArrow: u, sourceGroup: d, target: f, targetDir: m, targetArrow: h, targetGroup: g, label: v } = U(t), { x: y, y: b } = t[0].sourceEndpoint(), { x, y: S } = t[0].midpoint(), { x: w, y: T } = t[0].targetEndpoint(), E = i + 4;
3692
+ if (d && (F(l) ? y += l === "L" ? -E : E : b += l === "T" ? -E : E + 18), g && (F(m) ? w += m === "L" ? -E : E : T += m === "T" ? -E : E + 18), !d && n.getNode(a)?.type === "junction" && (F(l) ? y += l === "L" ? o : -o : b += l === "T" ? o : -o), !g && n.getNode(f)?.type === "junction" && (F(m) ? w += m === "L" ? o : -o : T += m === "T" ? o : -o), t[0]._private.rscratch) {
3646
3693
  let t = e.insert("g");
3647
- if (t.insert("path").attr("d", `M ${y},${b} L ${x},${C} L${w},${T} `).attr("class", "edge").attr("id", `${r}-${_(a, f, { prefix: "L" })}`), u) {
3694
+ if (t.insert("path").attr("d", `M ${y},${b} L ${x},${S} L${w},${T} `).attr("class", "edge").attr("id", `${r}-${_(a, f, { prefix: "L" })}`), u) {
3648
3695
  let e = F(l) ? M[l](y, s) : y - c, n = I(l) ? M[l](b, s) : b - c;
3649
3696
  t.insert("polygon").attr("points", j[l](s)).attr("transform", `translate(${e},${n})`).attr("class", "arrow");
3650
3697
  }
3651
3698
  if (h) {
3652
- let e = F(p) ? M[p](w, s) : w - c, n = I(p) ? M[p](T, s) : T - c;
3653
- t.insert("polygon").attr("points", j[p](s)).attr("transform", `translate(${e},${n})`).attr("class", "arrow");
3699
+ let e = F(m) ? M[m](w, s) : w - c, n = I(m) ? M[m](T, s) : T - c;
3700
+ t.insert("polygon").attr("points", j[m](s)).attr("transform", `translate(${e},${n})`).attr("class", "arrow");
3654
3701
  }
3655
3702
  if (v) {
3656
- let e = L(l, p) ? "XY" : F(l) ? "X" : "Y", n = 0;
3703
+ let e = L(l, m) ? "XY" : F(l) ? "X" : "Y", n = 0;
3657
3704
  n = e === "X" ? Math.abs(y - w) : e === "Y" ? Math.abs(b - T) / 1.5 : Math.abs(y - w) / 2;
3658
3705
  let r = t.append("g");
3659
- if (await S(r, v, {
3706
+ if (await C(r, v, {
3660
3707
  useHtmlLabels: !1,
3661
3708
  width: n,
3662
3709
  classes: "architecture-service-label"
3663
- }, m()), r.attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle"), e === "X") r.attr("transform", "translate(" + x + ", " + C + ")");
3664
- else if (e === "Y") r.attr("transform", "translate(" + x + ", " + C + ") rotate(-90)");
3710
+ }, p()), r.attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle"), e === "X") r.attr("transform", "translate(" + x + ", " + S + ")");
3711
+ else if (e === "Y") r.attr("transform", "translate(" + x + ", " + S + ") rotate(-90)");
3665
3712
  else if (e === "XY") {
3666
- let e = B(l, p);
3713
+ let e = B(l, m);
3667
3714
  if (e && R(e)) {
3668
3715
  let t = r.node().getBoundingClientRect(), [n, i] = ee(e);
3669
3716
  r.attr("dominant-baseline", "auto").attr("transform", `rotate(${-1 * n * i * 45})`);
3670
3717
  let a = r.node().getBoundingClientRect();
3671
3718
  r.attr("transform", `
3672
- translate(${x}, ${C - t.height / 2})
3719
+ translate(${x}, ${S - t.height / 2})
3673
3720
  translate(${n * a.width / 2}, ${i * a.height / 2})
3674
3721
  rotate(${-1 * n * i * 45}, 0, ${t.height / 2})
3675
3722
  `);
@@ -3678,58 +3725,58 @@ var D = /* @__PURE__ */ i(((e, t) => {
3678
3725
  }
3679
3726
  }
3680
3727
  }));
3681
- }, "drawEdges"), X = /* @__PURE__ */ t(async function(e, t, n, r) {
3728
+ }, "drawEdges"), Z = /* @__PURE__ */ g(async function(e, t, n, r) {
3682
3729
  let i = n.getConfigField("padding") * .75, a = n.getConfigField("fontSize"), o = n.getConfigField("iconSize") / 2;
3683
3730
  await Promise.all(t.nodes().map(async (t) => {
3684
- let s = U(t);
3731
+ let s = W(t);
3685
3732
  if (s.type === "group") {
3686
3733
  let { h: c, w: l, x1: u, y1: d } = t.boundingBox(), f = e.append("rect");
3687
3734
  f.attr("id", `${r}-group-${s.id}`).attr("x", u + o).attr("y", d + o).attr("width", l).attr("height", c).attr("class", "node-bkg");
3688
- let p = e.append("g"), h = u, g = d;
3735
+ let m = e.append("g"), h = u, g = d;
3689
3736
  if (s.icon) {
3690
- let e = p.append("g");
3691
- e.html(`<g>${await C(s.icon, {
3737
+ let e = m.append("g");
3738
+ e.html(`<g>${await S(s.icon, {
3692
3739
  height: i,
3693
3740
  width: i,
3694
- fallbackPrefix: Y.prefix
3741
+ fallbackPrefix: X.prefix
3695
3742
  })}</g>`), e.attr("transform", "translate(" + (h + o + 1) + ", " + (g + o + 1) + ")"), h += i, g += a / 2 - 1 - 2;
3696
3743
  }
3697
3744
  if (s.label) {
3698
- let e = p.append("g");
3699
- await S(e, s.label, {
3745
+ let e = m.append("g");
3746
+ await C(e, s.label, {
3700
3747
  useHtmlLabels: !1,
3701
3748
  width: l,
3702
3749
  classes: "architecture-service-label"
3703
- }, m()), e.attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "start").attr("text-anchor", "start"), e.attr("transform", "translate(" + (h + o + 4) + ", " + (g + o + 2) + ")");
3750
+ }, p()), e.attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "start").attr("text-anchor", "start"), e.attr("transform", "translate(" + (h + o + 4) + ", " + (g + o + 2) + ")");
3704
3751
  }
3705
3752
  n.setElementForId(s.id, f);
3706
3753
  }
3707
3754
  }));
3708
- }, "drawGroups"), oe = /* @__PURE__ */ t(async function(e, t, n, r) {
3709
- let i = m();
3755
+ }, "drawGroups"), se = /* @__PURE__ */ g(async function(e, t, n, r) {
3756
+ let i = p();
3710
3757
  for (let a of n) {
3711
3758
  let n = t.append("g"), o = e.getConfigField("iconSize");
3712
3759
  if (a.title) {
3713
3760
  let e = n.append("g");
3714
- await S(e, a.title, {
3761
+ await C(e, a.title, {
3715
3762
  useHtmlLabels: !1,
3716
3763
  width: o * 1.5,
3717
3764
  classes: "architecture-service-label"
3718
3765
  }, i), e.attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle"), e.attr("transform", "translate(" + o / 2 + ", " + o + ")");
3719
3766
  }
3720
3767
  let s = n.append("g");
3721
- if (a.icon) s.html(`<g>${await C(a.icon, {
3768
+ if (a.icon) s.html(`<g>${await S(a.icon, {
3722
3769
  height: o,
3723
3770
  width: o,
3724
- fallbackPrefix: Y.prefix
3771
+ fallbackPrefix: X.prefix
3725
3772
  })}</g>`);
3726
3773
  else if (a.iconText) {
3727
- s.html(`<g>${await C("blank", {
3774
+ s.html(`<g>${await S("blank", {
3728
3775
  height: o,
3729
3776
  width: o,
3730
- fallbackPrefix: Y.prefix
3777
+ fallbackPrefix: X.prefix
3731
3778
  })}</g>`);
3732
- let e = s.append("g").append("foreignObject").attr("width", o).attr("height", o).append("div").attr("class", "node-icon-text").attr("style", `height: ${o}px;`).append("div").html(g(a.iconText, i)), t = parseInt(window.getComputedStyle(e.node(), null).getPropertyValue("font-size").replace(/\D/g, "")) ?? 16;
3779
+ let e = s.append("g").append("foreignObject").attr("width", o).attr("height", o).append("div").attr("class", "node-icon-text").attr("style", `height: ${o}px;`).append("div").html(h(a.iconText, i)), t = parseInt(window.getComputedStyle(e.node(), null).getPropertyValue("font-size").replace(/\D/g, "")) ?? 16;
3733
3780
  e.attr("style", `-webkit-line-clamp: ${Math.floor((o - 2) / t)};`);
3734
3781
  } else s.append("path").attr("class", "node-bkg").attr("id", `${r}-node-${a.id}`).attr("d", `M0,${o} V5 Q0,0 5,0 H${o - 5} Q${o},0 ${o},5 V${o} Z`);
3735
3782
  n.attr("id", `${r}-service-${a.id}`).attr("class", "architecture-service");
@@ -3737,7 +3784,7 @@ var D = /* @__PURE__ */ i(((e, t) => {
3737
3784
  a.width = c, a.height = l, e.setElementForId(a.id, n);
3738
3785
  }
3739
3786
  return 0;
3740
- }, "drawServices"), Z = /* @__PURE__ */ t(function(e, t, n, r) {
3787
+ }, "drawServices"), ce = /* @__PURE__ */ g(function(e, t, n, r) {
3741
3788
  n.forEach((n) => {
3742
3789
  let i = t.append("g"), a = e.getConfigField("iconSize");
3743
3790
  i.append("g").append("rect").attr("id", `${r}-node-${n.id}`).attr("fill-opacity", "0").attr("width", a).attr("height", a), i.attr("class", "architecture-junction");
@@ -3746,10 +3793,10 @@ var D = /* @__PURE__ */ i(((e, t) => {
3746
3793
  });
3747
3794
  }, "drawJunctions");
3748
3795
  x([{
3749
- name: Y.prefix,
3750
- icons: Y
3796
+ name: X.prefix,
3797
+ icons: X
3751
3798
  }]), E.use(k.default);
3752
- function se(e, t, n) {
3799
+ function le(e, t, n) {
3753
3800
  e.forEach((e) => {
3754
3801
  t.add({
3755
3802
  group: "nodes",
@@ -3766,8 +3813,8 @@ function se(e, t, n) {
3766
3813
  });
3767
3814
  });
3768
3815
  }
3769
- t(se, "addServices");
3770
- function ce(e, t, n) {
3816
+ g(le, "addServices");
3817
+ function ue(e, t, n) {
3771
3818
  e.forEach((e) => {
3772
3819
  t.add({
3773
3820
  group: "nodes",
@@ -3782,15 +3829,15 @@ function ce(e, t, n) {
3782
3829
  });
3783
3830
  });
3784
3831
  }
3785
- t(ce, "addJunctions");
3786
- function le(e, t) {
3832
+ g(ue, "addJunctions");
3833
+ function de(e, t) {
3787
3834
  t.nodes().map((t) => {
3788
- let n = U(t);
3835
+ let n = W(t);
3789
3836
  n.type !== "group" && (n.x = t.position().x, n.y = t.position().y, e.getElementById(n.id).attr("transform", "translate(" + (n.x || 0) + "," + (n.y || 0) + ")"));
3790
3837
  });
3791
3838
  }
3792
- t(le, "positionNodes");
3793
- function ue(e, t) {
3839
+ g(de, "positionNodes");
3840
+ function fe(e, t) {
3794
3841
  e.forEach((e) => {
3795
3842
  t.add({
3796
3843
  group: "nodes",
@@ -3805,8 +3852,8 @@ function ue(e, t) {
3805
3852
  });
3806
3853
  });
3807
3854
  }
3808
- t(ue, "addGroups");
3809
- function de(e, t) {
3855
+ g(fe, "addGroups");
3856
+ function pe(e, t) {
3810
3857
  e.forEach((e) => {
3811
3858
  let { lhsId: n, rhsId: r, lhsInto: i, lhsGroup: a, rhsInto: o, lhsDir: s, rhsDir: c, rhsGroup: l, title: u } = e, d = L(e.lhsDir, e.rhsDir) ? "segments" : "straight", f = {
3812
3859
  id: `${n}-${r}`,
@@ -3829,80 +3876,114 @@ function de(e, t) {
3829
3876
  });
3830
3877
  });
3831
3878
  }
3832
- t(de, "addEdges");
3833
- function fe(e, n, r) {
3834
- let i = /* @__PURE__ */ t((e, t) => Object.entries(e).reduce((e, [n, i]) => {
3835
- let a = 0, o = Object.entries(i);
3836
- if (o.length === 1) return e[n] = o[0][1], e;
3837
- for (let i = 0; i < o.length - 1; i++) for (let s = i + 1; s < o.length; s++) {
3838
- let [c, l] = o[i], [u, d] = o[s];
3839
- if (r[c]?.[u] === t) e[n] ??= [], e[n] = [
3840
- ...e[n],
3841
- ...l,
3842
- ...d
3843
- ];
3844
- else if (c === "default" || u === "default") e[n] ??= [], e[n] = [
3845
- ...e[n],
3846
- ...l,
3847
- ...d
3848
- ];
3849
- else {
3850
- let t = `${n}-${a++}`;
3851
- e[t] = l;
3852
- let r = `${n}-${a++}`;
3853
- e[r] = d;
3879
+ g(pe, "addEdges");
3880
+ function me(e, t, n, r = []) {
3881
+ let i = /* @__PURE__ */ g((e, t) => {
3882
+ let r = /* @__PURE__ */ new Map();
3883
+ for (let [i, a] of e.entries()) {
3884
+ let e = `${i}`, o = 0, s = [...a.entries()];
3885
+ if (s.length === 1) {
3886
+ r.set(e, s[0][1]);
3887
+ continue;
3888
+ }
3889
+ for (let i = 0; i < s.length - 1; i++) for (let a = i + 1; a < s.length; a++) {
3890
+ let [c, l] = s[i], [u, d] = s[a];
3891
+ if (n.get(re(c, u)) === t) r.set(e, [
3892
+ ...r.get(e) ?? [],
3893
+ ...l,
3894
+ ...d
3895
+ ]);
3896
+ else if (c === "default" || u === "default") r.set(e, [
3897
+ ...r.get(e) ?? [],
3898
+ ...l,
3899
+ ...d
3900
+ ]);
3901
+ else {
3902
+ let t = `${e}-${o++}`;
3903
+ r.set(t, l);
3904
+ let n = `${e}-${o++}`;
3905
+ r.set(n, d);
3906
+ }
3854
3907
  }
3855
3908
  }
3856
- return e;
3857
- }, {}), "flattenAlignments"), [a, o] = n.map((t) => {
3858
- let n = {}, r = {};
3859
- return Object.entries(t).forEach(([t, [i, a]]) => {
3860
- let o = e.getNode(t)?.in ?? "default";
3861
- n[a] ??= {}, n[a][o] ??= [], n[a][o].push(t), r[i] ??= {}, r[i][o] ??= [], r[i][o].push(t);
3909
+ return r;
3910
+ }, "flattenAlignments"), [a, o] = t.map((t) => {
3911
+ let n = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map();
3912
+ return t.forEach(([t, i], a) => {
3913
+ let o = e.getNode(a)?.in ?? "default", s = n.get(i) ?? /* @__PURE__ */ new Map();
3914
+ n.has(i) || n.set(i, s);
3915
+ let c = r.get(t) ?? /* @__PURE__ */ new Map();
3916
+ r.has(t) || r.set(t, c);
3917
+ for (let e of [s, c]) {
3918
+ let t = e.get(o) ?? [];
3919
+ e.has(o) || e.set(o, t), t.push(a);
3920
+ }
3862
3921
  }), {
3863
- horiz: Object.values(i(n, "horizontal")).filter((e) => e.length > 1),
3864
- vert: Object.values(i(r, "vertical")).filter((e) => e.length > 1)
3922
+ horiz: [...i(n, "horizontal").values()].filter((e) => e.length > 1),
3923
+ vert: [...i(r, "vertical").values()].filter((e) => e.length > 1)
3865
3924
  };
3866
- }).reduce(([e, t], { horiz: n, vert: r }) => [[...e, ...n], [...t, ...r]], [[], []]);
3867
- return {
3868
- horizontal: a,
3869
- vertical: o
3925
+ }).reduce(([e, t], { horiz: n, vert: r }) => [[...e, ...n], [...t, ...r]], [[], []]), s = /* @__PURE__ */ new Set();
3926
+ r.forEach((e) => e.members.forEach((e) => s.add(e)));
3927
+ let c = /* @__PURE__ */ g((e) => e.filter((e) => !e.some((e) => s.has(e))), "dropOverlapping"), l = c(a), u = c(o);
3928
+ return r.forEach((e) => {
3929
+ e.members.length < 2 || (e.direction === "row" ? l.push([...e.members]) : u.push([...e.members]));
3930
+ }), {
3931
+ horizontal: l,
3932
+ vertical: u
3870
3933
  };
3871
3934
  }
3872
- t(fe, "getAlignments");
3873
- function pe(e, n) {
3874
- let r = [], i = /* @__PURE__ */ t((e) => `${e[0]},${e[1]}`, "posToStr"), a = /* @__PURE__ */ t((e) => e.split(",").map((e) => parseInt(e)), "strToPos");
3935
+ g(me, "getAlignments");
3936
+ function he(e, t, n = []) {
3937
+ let r = [], i = t.getConfigField("iconSize"), a = t.getConfigField("idealEdgeLengthMultiplier"), o = a * i, s = /* @__PURE__ */ new Set();
3938
+ n.forEach((e) => {
3939
+ for (let t = 0; t < e.members.length - 1; t++) {
3940
+ let n = e.members[t], i = e.members[t + 1];
3941
+ s.add(`${n}|${i}`), s.add(`${i}|${n}`), e.direction === "row" ? r.push({
3942
+ left: n,
3943
+ right: i,
3944
+ gap: o
3945
+ }) : r.push({
3946
+ top: n,
3947
+ bottom: i,
3948
+ gap: o
3949
+ });
3950
+ }
3951
+ });
3952
+ let c = /* @__PURE__ */ g((e) => `${e[0]},${e[1]}`, "posToStr"), l = /* @__PURE__ */ g((e) => e.split(",").map((e) => parseInt(e)), "strToPos");
3875
3953
  return e.forEach((e) => {
3876
- let t = Object.fromEntries(Object.entries(e).map(([e, t]) => [i(t), e])), o = [i([0, 0])], s = {}, c = {
3954
+ let t = new Map([...e.entries()].map(([e, t]) => [c(t), e])), n = [c([0, 0])], o = {}, u = {
3877
3955
  L: [-1, 0],
3878
3956
  R: [1, 0],
3879
3957
  T: [0, 1],
3880
3958
  B: [0, -1]
3881
3959
  };
3882
- for (; o.length > 0;) {
3883
- let e = o.shift();
3960
+ for (; n.length > 0;) {
3961
+ let e = n.shift();
3884
3962
  if (e) {
3885
- s[e] = 1;
3886
- let l = t[e];
3887
- if (l) {
3888
- let u = a(e);
3889
- Object.entries(c).forEach(([e, a]) => {
3890
- let c = i([u[0] + a[0], u[1] + a[1]]), d = t[c];
3891
- d && !s[c] && (o.push(c), r.push({
3892
- [A[e]]: d,
3893
- [A[N(e)]]: l,
3894
- gap: 1.5 * n.getConfigField("iconSize")
3895
- }));
3963
+ o[e] = 1;
3964
+ let d = t.get(e);
3965
+ if (d) {
3966
+ let f = l(e);
3967
+ Object.entries(u).forEach(([e, l]) => {
3968
+ let u = c([f[0] + l[0], f[1] + l[1]]), p = t.get(u);
3969
+ if (p && !o[u]) {
3970
+ if (n.push(u), s.has(`${d}|${p}`)) return;
3971
+ r.push({
3972
+ [A[e]]: p,
3973
+ [A[N(e)]]: d,
3974
+ gap: a * i
3975
+ });
3976
+ }
3896
3977
  });
3897
3978
  }
3898
3979
  }
3899
3980
  }
3900
3981
  }), r;
3901
3982
  }
3902
- t(pe, "getRelativeConstraints");
3903
- function me(r, i, a, o, s, { spatialMaps: c, groupAlignments: l }) {
3904
- return new Promise((u) => {
3905
- let d = n("body").append("div").attr("id", "cy").attr("style", "display:none"), f = E({
3983
+ g(he, "getRelativeConstraints");
3984
+ function ge(e, r, i, a, o, { spatialMaps: s, groupAlignments: c }) {
3985
+ return new Promise((l) => {
3986
+ let u = n("body").append("div").attr("id", "cy").attr("style", "display:none"), d = E({
3906
3987
  container: document.getElementById("cy"),
3907
3988
  style: [
3908
3989
  {
@@ -3937,7 +4018,7 @@ function me(r, i, a, o, s, { spatialMaps: c, groupAlignments: l }) {
3937
4018
  style: {
3938
4019
  "text-valign": "bottom",
3939
4020
  "text-halign": "center",
3940
- "font-size": `${s.getConfigField("fontSize")}px`
4021
+ "font-size": `${o.getConfigField("fontSize")}px`
3941
4022
  }
3942
4023
  },
3943
4024
  {
@@ -3957,7 +4038,7 @@ function me(r, i, a, o, s, { spatialMaps: c, groupAlignments: l }) {
3957
4038
  },
3958
4039
  {
3959
4040
  selector: ".node-group",
3960
- style: { padding: `${s.getConfigField("padding")}px` }
4041
+ style: { padding: `${o.getConfigField("padding")}px` }
3961
4042
  }
3962
4043
  ],
3963
4044
  layout: {
@@ -3970,28 +4051,28 @@ function me(r, i, a, o, s, { spatialMaps: c, groupAlignments: l }) {
3970
4051
  }
3971
4052
  }
3972
4053
  });
3973
- d.remove(), ue(a, f), se(r, f, s), ce(i, f, s), de(o, f);
3974
- let p = fe(s, c, l), m = pe(c, s), h = s.getConfigField("iconSize"), g = s.getConfigField("idealEdgeLengthMultiplier") * h, _ = .5 * h, v = s.getConfigField("edgeElasticity"), y = f.layout({
4054
+ u.remove(), fe(i, d), le(e, d, o), ue(r, d, o), pe(a, d);
4055
+ let f = o.getLayoutHints(), p = me(o, s, c, f), m = he(s, o, f), h = o.getConfigField("iconSize"), _ = o.getConfigField("idealEdgeLengthMultiplier") * h, v = .5 * h, y = o.getConfigField("edgeElasticity"), b = o.getConfigField("seed"), x = d.layout({
3975
4056
  name: "fcose",
3976
4057
  quality: "proof",
3977
- randomize: s.getConfigField("randomize"),
3978
- nodeSeparation: s.getConfigField("nodeSeparation"),
3979
- numIter: s.getConfigField("numIter"),
4058
+ randomize: o.getConfigField("randomize"),
4059
+ nodeSeparation: o.getConfigField("nodeSeparation"),
4060
+ numIter: o.getConfigField("numIter"),
3980
4061
  styleEnabled: !1,
3981
4062
  animate: !1,
3982
4063
  nodeDimensionsIncludeLabels: !1,
3983
4064
  idealEdgeLength(e) {
3984
- let [t, n] = e.connectedNodes(), { parent: r } = U(t), { parent: i } = U(n);
3985
- return r === i ? g : _;
4065
+ let [t, n] = e.connectedNodes(), { parent: r } = W(t), { parent: i } = W(n);
4066
+ return r === i ? _ : v;
3986
4067
  },
3987
4068
  edgeElasticity(e) {
3988
- let [t, n] = e.connectedNodes(), { parent: r } = U(t), { parent: i } = U(n);
3989
- return r === i ? v : .001;
4069
+ let [t, n] = e.connectedNodes(), { parent: r } = W(t), { parent: i } = W(n);
4070
+ return r === i ? y : .001;
3990
4071
  },
3991
4072
  alignmentConstraint: p,
3992
4073
  relativePlacementConstraint: m
3993
4074
  });
3994
- y.one("layoutstop", () => {
4075
+ x.one("layoutstop", () => {
3995
4076
  function e(e, t, n, r) {
3996
4077
  let i, a, { x: o, y: s } = e, { x: c, y: l } = t;
3997
4078
  a = (r - s + (o - n) * (s - l) / (o - c)) / Math.sqrt(1 + ((s - l) / (o - c)) ** 2), i = Math.sqrt((r - s) ** 2 + (n - o) ** 2 - a ** 2);
@@ -4020,39 +4101,45 @@ function me(r, i, a, o, s, { spatialMaps: c, groupAlignments: l }) {
4020
4101
  weights: i
4021
4102
  };
4022
4103
  }
4023
- t(e, "getSegmentWeights"), f.startBatch();
4024
- for (let t of Object.values(f.edges())) if (t.data?.()) {
4104
+ g(e, "getSegmentWeights"), d.startBatch();
4105
+ for (let t of Object.values(d.edges())) if (t.data?.()) {
4025
4106
  let { x: n, y: r } = t.source().position(), { x: i, y: a } = t.target().position();
4026
4107
  if (n !== i && r !== a) {
4027
- let n = t.sourceEndpoint(), r = t.targetEndpoint(), { sourceDir: i } = re(t), [a, o] = I(i) ? [n.x, r.y] : [r.x, n.y], { weights: s, distances: c } = e(n, r, a, o);
4108
+ let n = t.sourceEndpoint(), r = t.targetEndpoint(), { sourceDir: i } = U(t), [a, o] = I(i) ? [n.x, r.y] : [r.x, n.y], { weights: s, distances: c } = e(n, r, a, o);
4028
4109
  t.style("segment-distances", c), t.style("segment-weights", s);
4029
4110
  }
4030
4111
  }
4031
- f.endBatch(), y.run();
4032
- }), y.run(), f.ready((t) => {
4033
- e.info("Ready", t), u(f);
4112
+ d.endBatch(), J(b, () => x.run());
4113
+ });
4114
+ try {
4115
+ J(b, () => x.run());
4116
+ } catch (e) {
4117
+ throw e instanceof RangeError && e.message.includes("Invalid array length") ? Error("Architecture layout failed: a declared `align row|column` directive likely contradicts the edge directions, or two declared alignments overlap on a shared node. Check that the order of members in each `align` chain is consistent with the edges between them, and that no node appears in two `align` directives along the same axis.") : e;
4118
+ }
4119
+ d.ready((e) => {
4120
+ t.info("Ready", e), l(d);
4034
4121
  });
4035
4122
  });
4036
4123
  }
4037
- t(me, "layoutArchitecture");
4038
- var he = {
4039
- parser: K,
4124
+ g(ge, "layoutArchitecture");
4125
+ var _e = {
4126
+ parser: q,
4040
4127
  get db() {
4041
- return new G();
4128
+ return new ie();
4042
4129
  },
4043
- renderer: { draw: /* @__PURE__ */ t(async (e, t, n, r) => {
4130
+ renderer: { draw: /* @__PURE__ */ g(async (e, t, n, r) => {
4044
4131
  let i = r.db;
4045
4132
  i.setDiagramId(t);
4046
- let a = i.getServices(), s = i.getJunctions(), c = i.getGroups(), l = i.getEdges(), u = i.getDataStructures(), d = y(t), f = d.append("g");
4133
+ let o = i.getServices(), s = i.getJunctions(), c = i.getGroups(), l = i.getEdges(), u = i.getDataStructures(), d = y(t), f = d.append("g");
4047
4134
  f.attr("class", "architecture-edges");
4048
4135
  let p = d.append("g");
4049
4136
  p.attr("class", "architecture-services");
4050
4137
  let m = d.append("g");
4051
- m.attr("class", "architecture-groups"), await oe(i, p, a, t), Z(i, p, s, t);
4052
- let h = await me(a, s, c, l, i, u);
4053
- await ae(f, h, i, t), await X(m, h, i, t), le(i, h), o(void 0, d, i.getConfigField("padding"), i.getConfigField("useMaxWidth"));
4138
+ m.attr("class", "architecture-groups"), await se(i, p, o, t), ce(i, p, s, t);
4139
+ let h = await ge(o, s, c, l, i, u);
4140
+ await oe(f, h, i, t), await Z(m, h, i, t), de(i, h), a(void 0, d, i.getConfigField("padding"), i.getConfigField("useMaxWidth"));
4054
4141
  }, "draw") },
4055
- styles: q
4142
+ styles: ae
4056
4143
  };
4057
4144
  //#endregion
4058
- export { he as diagram };
4145
+ export { _e as diagram };