@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,14 +1,18 @@
1
- import { g as e, h as t, p as n } from "./src-DjDATEq3.js";
2
- import { H as r, U as i, c as a, r as o, s, v as l, x as u, y as d, z as f } from "./chunk-CSCIHK7Q-BEk3YcEH.js";
3
- import { t as p } from "./dist-Btd8EZyy.js";
4
- import { _ as m, n as h, r as g } from "./chunk-5ZQYHXKU-B_nOC8-n.js";
5
- import { a as _, s as v } from "./chunk-ND2GUHAM-Ca12h-m9.js";
6
- //#region node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-AAUBKEIU.mjs
7
- var y = p(), b = (function() {
8
- var e = /* @__PURE__ */ t(function(e, t, n, r) {
1
+ import { m as e, p as t } from "./src-D-6ZfKf9.js";
2
+ import { H as n, U as r, c as i, r as a, s as o, v as s, x as l, y as u, z as d } from "./chunk-DU6HZSFF-CNSdkWoH.js";
3
+ import { n as f } from "./chunk-Y2CYZVJY-i11wjrBe.js";
4
+ import { _ as p, n as m, r as h } from "./chunk-75Z2AOVW-BwUD389x.js";
5
+ import "./chunk-P2QGCYS3-DRvvOWJ2.js";
6
+ import "./chunk-PWAF6VOD-CbmhQpgH.js";
7
+ import "./chunk-GMAD6QVW-DKxKOKLF.js";
8
+ import { o as g } from "./chunk-4HAMMTFA-MZIwowe1.js";
9
+ import { a as _ } from "./chunk-F27PBJKO-DKsmevT5.js";
10
+ //#region node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-7LVT6UL2.mjs
11
+ var v = (function() {
12
+ var e = /* @__PURE__ */ f(function(e, t, n, r) {
9
13
  for (n ||= {}, r = e.length; r--; n[e[r]] = t);
10
14
  return n;
11
- }, "o"), n = [1, 24], r = [1, 25], i = [1, 26], a = [1, 27], o = [1, 28], s = [1, 63], l = [1, 64], u = [1, 65], d = [1, 66], f = [1, 67], p = [1, 68], m = [1, 69], h = [1, 29], g = [1, 30], _ = [1, 31], v = [1, 32], y = [1, 33], b = [1, 34], x = [1, 35], S = [1, 36], C = [1, 37], w = [1, 38], T = [1, 39], E = [1, 40], D = [1, 41], O = [1, 42], k = [1, 43], A = [1, 44], j = [1, 45], M = [1, 46], N = [1, 47], P = [1, 48], F = [1, 50], I = [1, 51], L = [1, 52], R = [1, 53], z = [1, 54], B = [1, 55], V = [1, 56], H = [1, 57], ee = [1, 58], te = [1, 59], ne = [1, 60], re = [14, 42], ie = [
15
+ }, "o"), t = [1, 24], n = [1, 25], r = [1, 26], i = [1, 27], a = [1, 28], o = [1, 63], s = [1, 64], l = [1, 65], u = [1, 66], d = [1, 67], p = [1, 68], m = [1, 69], h = [1, 29], g = [1, 30], _ = [1, 31], v = [1, 32], y = [1, 33], b = [1, 34], x = [1, 35], S = [1, 36], C = [1, 37], w = [1, 38], T = [1, 39], E = [1, 40], D = [1, 41], O = [1, 42], k = [1, 43], A = [1, 44], j = [1, 45], M = [1, 46], N = [1, 47], P = [1, 48], F = [1, 50], I = [1, 51], L = [1, 52], R = [1, 53], z = [1, 54], B = [1, 55], V = [1, 56], H = [1, 57], U = [1, 58], W = [1, 59], G = [1, 60], ee = [14, 42], te = [
12
16
  14,
13
17
  34,
14
18
  36,
@@ -49,7 +53,7 @@ var y = p(), b = (function() {
49
53
  72,
50
54
  73,
51
55
  74
52
- ], ae = [
56
+ ], ne = [
53
57
  12,
54
58
  14,
55
59
  34,
@@ -91,16 +95,16 @@ var y = p(), b = (function() {
91
95
  72,
92
96
  73,
93
97
  74
94
- ], U = [1, 82], W = [1, 83], G = [1, 84], K = [1, 85], q = [
98
+ ], K = [1, 82], q = [1, 83], J = [1, 84], Y = [1, 85], X = [
95
99
  12,
96
100
  14,
97
101
  42
98
- ], oe = [
102
+ ], re = [
99
103
  12,
100
104
  14,
101
105
  33,
102
106
  42
103
- ], se = [
107
+ ], ie = [
104
108
  12,
105
109
  14,
106
110
  33,
@@ -109,7 +113,7 @@ var y = p(), b = (function() {
109
113
  77,
110
114
  79,
111
115
  80
112
- ], ce = [12, 33], le = [
116
+ ], ae = [12, 33], oe = [
113
117
  34,
114
118
  36,
115
119
  37,
@@ -148,8 +152,8 @@ var y = p(), b = (function() {
148
152
  72,
149
153
  73,
150
154
  74
151
- ], J = {
152
- trace: /* @__PURE__ */ t(function() {}, "trace"),
155
+ ], se = {
156
+ trace: /* @__PURE__ */ f(function() {}, "trace"),
153
157
  yy: {},
154
158
  symbols_: {
155
159
  error: 2,
@@ -379,7 +383,7 @@ var y = p(), b = (function() {
379
383
  [75, 1],
380
384
  [75, 1]
381
385
  ],
382
- performAction: /* @__PURE__ */ t(function(e, t, n, r, i, a, o) {
386
+ performAction: /* @__PURE__ */ f(function(e, t, n, r, i, a, o) {
383
387
  var s = a.length - 1;
384
388
  switch (i) {
385
389
  case 3:
@@ -584,19 +588,19 @@ var y = p(), b = (function() {
584
588
  19: 20,
585
589
  20: 21,
586
590
  21: 22,
587
- 22: n,
588
- 23: r,
589
- 24: i,
590
- 26: a,
591
- 28: o,
591
+ 22: t,
592
+ 23: n,
593
+ 24: r,
594
+ 26: i,
595
+ 28: a,
592
596
  29: 49,
593
597
  30: 61,
594
598
  32: 62,
595
- 34: s,
596
- 36: l,
597
- 37: u,
598
- 38: d,
599
- 39: f,
599
+ 34: o,
600
+ 36: s,
601
+ 37: l,
602
+ 38: u,
603
+ 39: d,
600
604
  40: p,
601
605
  41: m,
602
606
  43: 23,
@@ -628,28 +632,28 @@ var y = p(), b = (function() {
628
632
  69: B,
629
633
  70: V,
630
634
  71: H,
631
- 72: ee,
632
- 73: te,
633
- 74: ne
635
+ 72: U,
636
+ 73: W,
637
+ 74: G
634
638
  },
635
639
  {
636
640
  13: 70,
637
641
  19: 20,
638
642
  20: 21,
639
643
  21: 22,
640
- 22: n,
641
- 23: r,
642
- 24: i,
643
- 26: a,
644
- 28: o,
644
+ 22: t,
645
+ 23: n,
646
+ 24: r,
647
+ 26: i,
648
+ 28: a,
645
649
  29: 49,
646
650
  30: 61,
647
651
  32: 62,
648
- 34: s,
649
- 36: l,
650
- 37: u,
651
- 38: d,
652
- 39: f,
652
+ 34: o,
653
+ 36: s,
654
+ 37: l,
655
+ 38: u,
656
+ 39: d,
653
657
  40: p,
654
658
  41: m,
655
659
  43: 23,
@@ -681,28 +685,28 @@ var y = p(), b = (function() {
681
685
  69: B,
682
686
  70: V,
683
687
  71: H,
684
- 72: ee,
685
- 73: te,
686
- 74: ne
688
+ 72: U,
689
+ 73: W,
690
+ 74: G
687
691
  },
688
692
  {
689
693
  13: 71,
690
694
  19: 20,
691
695
  20: 21,
692
696
  21: 22,
693
- 22: n,
694
- 23: r,
695
- 24: i,
696
- 26: a,
697
- 28: o,
697
+ 22: t,
698
+ 23: n,
699
+ 24: r,
700
+ 26: i,
701
+ 28: a,
698
702
  29: 49,
699
703
  30: 61,
700
704
  32: 62,
701
- 34: s,
702
- 36: l,
703
- 37: u,
704
- 38: d,
705
- 39: f,
705
+ 34: o,
706
+ 36: s,
707
+ 37: l,
708
+ 38: u,
709
+ 39: d,
706
710
  40: p,
707
711
  41: m,
708
712
  43: 23,
@@ -734,28 +738,28 @@ var y = p(), b = (function() {
734
738
  69: B,
735
739
  70: V,
736
740
  71: H,
737
- 72: ee,
738
- 73: te,
739
- 74: ne
741
+ 72: U,
742
+ 73: W,
743
+ 74: G
740
744
  },
741
745
  {
742
746
  13: 72,
743
747
  19: 20,
744
748
  20: 21,
745
749
  21: 22,
746
- 22: n,
747
- 23: r,
748
- 24: i,
749
- 26: a,
750
- 28: o,
750
+ 22: t,
751
+ 23: n,
752
+ 24: r,
753
+ 26: i,
754
+ 28: a,
751
755
  29: 49,
752
756
  30: 61,
753
757
  32: 62,
754
- 34: s,
755
- 36: l,
756
- 37: u,
757
- 38: d,
758
- 39: f,
758
+ 34: o,
759
+ 36: s,
760
+ 37: l,
761
+ 38: u,
762
+ 39: d,
759
763
  40: p,
760
764
  41: m,
761
765
  43: 23,
@@ -787,28 +791,28 @@ var y = p(), b = (function() {
787
791
  69: B,
788
792
  70: V,
789
793
  71: H,
790
- 72: ee,
791
- 73: te,
792
- 74: ne
794
+ 72: U,
795
+ 73: W,
796
+ 74: G
793
797
  },
794
798
  {
795
799
  13: 73,
796
800
  19: 20,
797
801
  20: 21,
798
802
  21: 22,
799
- 22: n,
800
- 23: r,
801
- 24: i,
802
- 26: a,
803
- 28: o,
803
+ 22: t,
804
+ 23: n,
805
+ 24: r,
806
+ 26: i,
807
+ 28: a,
804
808
  29: 49,
805
809
  30: 61,
806
810
  32: 62,
807
- 34: s,
808
- 36: l,
809
- 37: u,
810
- 38: d,
811
- 39: f,
811
+ 34: o,
812
+ 36: s,
813
+ 37: l,
814
+ 38: u,
815
+ 39: d,
812
816
  40: p,
813
817
  41: m,
814
818
  43: 23,
@@ -840,22 +844,22 @@ var y = p(), b = (function() {
840
844
  69: B,
841
845
  70: V,
842
846
  71: H,
843
- 72: ee,
844
- 73: te,
845
- 74: ne
847
+ 72: U,
848
+ 73: W,
849
+ 74: G
846
850
  },
847
851
  { 14: [1, 74] },
848
- e(re, [2, 13], {
852
+ e(ee, [2, 13], {
849
853
  43: 23,
850
854
  29: 49,
851
855
  30: 61,
852
856
  32: 62,
853
857
  20: 75,
854
- 34: s,
855
- 36: l,
856
- 37: u,
857
- 38: d,
858
- 39: f,
858
+ 34: o,
859
+ 36: s,
860
+ 37: l,
861
+ 38: u,
862
+ 39: d,
859
863
  40: p,
860
864
  41: m,
861
865
  44: h,
@@ -886,277 +890,277 @@ var y = p(), b = (function() {
886
890
  69: B,
887
891
  70: V,
888
892
  71: H,
889
- 72: ee,
890
- 73: te,
891
- 74: ne
893
+ 72: U,
894
+ 73: W,
895
+ 74: G
892
896
  }),
893
- e(re, [2, 14]),
894
- e(ie, [2, 16], { 12: [1, 76] }),
895
- e(re, [2, 36], { 12: [1, 77] }),
896
- e(ae, [2, 19]),
897
- e(ae, [2, 20]),
897
+ e(ee, [2, 14]),
898
+ e(te, [2, 16], { 12: [1, 76] }),
899
+ e(ee, [2, 36], { 12: [1, 77] }),
900
+ e(ne, [2, 19]),
901
+ e(ne, [2, 20]),
898
902
  { 25: [1, 78] },
899
903
  { 27: [1, 79] },
900
- e(ae, [2, 23]),
904
+ e(ne, [2, 23]),
901
905
  {
902
906
  35: 80,
903
907
  75: 81,
904
- 76: U,
905
- 77: W,
906
- 79: G,
907
- 80: K
908
+ 76: K,
909
+ 77: q,
910
+ 79: J,
911
+ 80: Y
908
912
  },
909
913
  {
910
914
  35: 86,
911
915
  75: 81,
912
- 76: U,
913
- 77: W,
914
- 79: G,
915
- 80: K
916
+ 76: K,
917
+ 77: q,
918
+ 79: J,
919
+ 80: Y
916
920
  },
917
921
  {
918
922
  35: 87,
919
923
  75: 81,
920
- 76: U,
921
- 77: W,
922
- 79: G,
923
- 80: K
924
+ 76: K,
925
+ 77: q,
926
+ 79: J,
927
+ 80: Y
924
928
  },
925
929
  {
926
930
  35: 88,
927
931
  75: 81,
928
- 76: U,
929
- 77: W,
930
- 79: G,
931
- 80: K
932
+ 76: K,
933
+ 77: q,
934
+ 79: J,
935
+ 80: Y
932
936
  },
933
937
  {
934
938
  35: 89,
935
939
  75: 81,
936
- 76: U,
937
- 77: W,
938
- 79: G,
939
- 80: K
940
+ 76: K,
941
+ 77: q,
942
+ 79: J,
943
+ 80: Y
940
944
  },
941
945
  {
942
946
  35: 90,
943
947
  75: 81,
944
- 76: U,
945
- 77: W,
946
- 79: G,
947
- 80: K
948
+ 76: K,
949
+ 77: q,
950
+ 79: J,
951
+ 80: Y
948
952
  },
949
953
  {
950
954
  35: 91,
951
955
  75: 81,
952
- 76: U,
953
- 77: W,
954
- 79: G,
955
- 80: K
956
+ 76: K,
957
+ 77: q,
958
+ 79: J,
959
+ 80: Y
956
960
  },
957
961
  {
958
962
  35: 92,
959
963
  75: 81,
960
- 76: U,
961
- 77: W,
962
- 79: G,
963
- 80: K
964
+ 76: K,
965
+ 77: q,
966
+ 79: J,
967
+ 80: Y
964
968
  },
965
969
  {
966
970
  35: 93,
967
971
  75: 81,
968
- 76: U,
969
- 77: W,
970
- 79: G,
971
- 80: K
972
+ 76: K,
973
+ 77: q,
974
+ 79: J,
975
+ 80: Y
972
976
  },
973
977
  {
974
978
  35: 94,
975
979
  75: 81,
976
- 76: U,
977
- 77: W,
978
- 79: G,
979
- 80: K
980
+ 76: K,
981
+ 77: q,
982
+ 79: J,
983
+ 80: Y
980
984
  },
981
985
  {
982
986
  35: 95,
983
987
  75: 81,
984
- 76: U,
985
- 77: W,
986
- 79: G,
987
- 80: K
988
+ 76: K,
989
+ 77: q,
990
+ 79: J,
991
+ 80: Y
988
992
  },
989
993
  {
990
994
  35: 96,
991
995
  75: 81,
992
- 76: U,
993
- 77: W,
994
- 79: G,
995
- 80: K
996
+ 76: K,
997
+ 77: q,
998
+ 79: J,
999
+ 80: Y
996
1000
  },
997
1001
  {
998
1002
  35: 97,
999
1003
  75: 81,
1000
- 76: U,
1001
- 77: W,
1002
- 79: G,
1003
- 80: K
1004
+ 76: K,
1005
+ 77: q,
1006
+ 79: J,
1007
+ 80: Y
1004
1008
  },
1005
1009
  {
1006
1010
  35: 98,
1007
1011
  75: 81,
1008
- 76: U,
1009
- 77: W,
1010
- 79: G,
1011
- 80: K
1012
+ 76: K,
1013
+ 77: q,
1014
+ 79: J,
1015
+ 80: Y
1012
1016
  },
1013
1017
  {
1014
1018
  35: 99,
1015
1019
  75: 81,
1016
- 76: U,
1017
- 77: W,
1018
- 79: G,
1019
- 80: K
1020
+ 76: K,
1021
+ 77: q,
1022
+ 79: J,
1023
+ 80: Y
1020
1024
  },
1021
1025
  {
1022
1026
  35: 100,
1023
1027
  75: 81,
1024
- 76: U,
1025
- 77: W,
1026
- 79: G,
1027
- 80: K
1028
+ 76: K,
1029
+ 77: q,
1030
+ 79: J,
1031
+ 80: Y
1028
1032
  },
1029
1033
  {
1030
1034
  35: 101,
1031
1035
  75: 81,
1032
- 76: U,
1033
- 77: W,
1034
- 79: G,
1035
- 80: K
1036
+ 76: K,
1037
+ 77: q,
1038
+ 79: J,
1039
+ 80: Y
1036
1040
  },
1037
1041
  {
1038
1042
  35: 102,
1039
1043
  75: 81,
1040
- 76: U,
1041
- 77: W,
1042
- 79: G,
1043
- 80: K
1044
+ 76: K,
1045
+ 77: q,
1046
+ 79: J,
1047
+ 80: Y
1044
1048
  },
1045
1049
  {
1046
1050
  35: 103,
1047
1051
  75: 81,
1048
- 76: U,
1049
- 77: W,
1050
- 79: G,
1051
- 80: K
1052
+ 76: K,
1053
+ 77: q,
1054
+ 79: J,
1055
+ 80: Y
1052
1056
  },
1053
1057
  {
1054
1058
  35: 104,
1055
1059
  75: 81,
1056
- 76: U,
1057
- 77: W,
1058
- 79: G,
1059
- 80: K
1060
+ 76: K,
1061
+ 77: q,
1062
+ 79: J,
1063
+ 80: Y
1060
1064
  },
1061
- e(q, [2, 59]),
1065
+ e(X, [2, 59]),
1062
1066
  {
1063
1067
  35: 105,
1064
1068
  75: 81,
1065
- 76: U,
1066
- 77: W,
1067
- 79: G,
1068
- 80: K
1069
+ 76: K,
1070
+ 77: q,
1071
+ 79: J,
1072
+ 80: Y
1069
1073
  },
1070
1074
  {
1071
1075
  35: 106,
1072
1076
  75: 81,
1073
- 76: U,
1074
- 77: W,
1075
- 79: G,
1076
- 80: K
1077
+ 76: K,
1078
+ 77: q,
1079
+ 79: J,
1080
+ 80: Y
1077
1081
  },
1078
1082
  {
1079
1083
  35: 107,
1080
1084
  75: 81,
1081
- 76: U,
1082
- 77: W,
1083
- 79: G,
1084
- 80: K
1085
+ 76: K,
1086
+ 77: q,
1087
+ 79: J,
1088
+ 80: Y
1085
1089
  },
1086
1090
  {
1087
1091
  35: 108,
1088
1092
  75: 81,
1089
- 76: U,
1090
- 77: W,
1091
- 79: G,
1092
- 80: K
1093
+ 76: K,
1094
+ 77: q,
1095
+ 79: J,
1096
+ 80: Y
1093
1097
  },
1094
1098
  {
1095
1099
  35: 109,
1096
1100
  75: 81,
1097
- 76: U,
1098
- 77: W,
1099
- 79: G,
1100
- 80: K
1101
+ 76: K,
1102
+ 77: q,
1103
+ 79: J,
1104
+ 80: Y
1101
1105
  },
1102
1106
  {
1103
1107
  35: 110,
1104
1108
  75: 81,
1105
- 76: U,
1106
- 77: W,
1107
- 79: G,
1108
- 80: K
1109
+ 76: K,
1110
+ 77: q,
1111
+ 79: J,
1112
+ 80: Y
1109
1113
  },
1110
1114
  {
1111
1115
  35: 111,
1112
1116
  75: 81,
1113
- 76: U,
1114
- 77: W,
1115
- 79: G,
1116
- 80: K
1117
+ 76: K,
1118
+ 77: q,
1119
+ 79: J,
1120
+ 80: Y
1117
1121
  },
1118
1122
  {
1119
1123
  35: 112,
1120
1124
  75: 81,
1121
- 76: U,
1122
- 77: W,
1123
- 79: G,
1124
- 80: K
1125
+ 76: K,
1126
+ 77: q,
1127
+ 79: J,
1128
+ 80: Y
1125
1129
  },
1126
1130
  {
1127
1131
  35: 113,
1128
1132
  75: 81,
1129
- 76: U,
1130
- 77: W,
1131
- 79: G,
1132
- 80: K
1133
+ 76: K,
1134
+ 77: q,
1135
+ 79: J,
1136
+ 80: Y
1133
1137
  },
1134
1138
  {
1135
1139
  35: 114,
1136
1140
  75: 81,
1137
- 76: U,
1138
- 77: W,
1139
- 79: G,
1140
- 80: K
1141
+ 76: K,
1142
+ 77: q,
1143
+ 79: J,
1144
+ 80: Y
1141
1145
  },
1142
1146
  {
1143
1147
  35: 115,
1144
1148
  75: 81,
1145
- 76: U,
1146
- 77: W,
1147
- 79: G,
1148
- 80: K
1149
+ 76: K,
1150
+ 77: q,
1151
+ 79: J,
1152
+ 80: Y
1149
1153
  },
1150
1154
  {
1151
1155
  20: 116,
1152
1156
  29: 49,
1153
1157
  30: 61,
1154
1158
  32: 62,
1155
- 34: s,
1156
- 36: l,
1157
- 37: u,
1158
- 38: d,
1159
- 39: f,
1159
+ 34: o,
1160
+ 36: s,
1161
+ 37: l,
1162
+ 38: u,
1163
+ 39: d,
1160
1164
  40: p,
1161
1165
  41: m,
1162
1166
  43: 23,
@@ -1188,9 +1192,9 @@ var y = p(), b = (function() {
1188
1192
  69: B,
1189
1193
  70: V,
1190
1194
  71: H,
1191
- 72: ee,
1192
- 73: te,
1193
- 74: ne
1195
+ 72: U,
1196
+ 73: W,
1197
+ 74: G
1194
1198
  },
1195
1199
  {
1196
1200
  12: [1, 118],
@@ -1199,75 +1203,75 @@ var y = p(), b = (function() {
1199
1203
  {
1200
1204
  35: 119,
1201
1205
  75: 81,
1202
- 76: U,
1203
- 77: W,
1204
- 79: G,
1205
- 80: K
1206
+ 76: K,
1207
+ 77: q,
1208
+ 79: J,
1209
+ 80: Y
1206
1210
  },
1207
1211
  {
1208
1212
  35: 120,
1209
1213
  75: 81,
1210
- 76: U,
1211
- 77: W,
1212
- 79: G,
1213
- 80: K
1214
+ 76: K,
1215
+ 77: q,
1216
+ 79: J,
1217
+ 80: Y
1214
1218
  },
1215
1219
  {
1216
1220
  35: 121,
1217
1221
  75: 81,
1218
- 76: U,
1219
- 77: W,
1220
- 79: G,
1221
- 80: K
1222
+ 76: K,
1223
+ 77: q,
1224
+ 79: J,
1225
+ 80: Y
1222
1226
  },
1223
1227
  {
1224
1228
  35: 122,
1225
1229
  75: 81,
1226
- 76: U,
1227
- 77: W,
1228
- 79: G,
1229
- 80: K
1230
+ 76: K,
1231
+ 77: q,
1232
+ 79: J,
1233
+ 80: Y
1230
1234
  },
1231
1235
  {
1232
1236
  35: 123,
1233
1237
  75: 81,
1234
- 76: U,
1235
- 77: W,
1236
- 79: G,
1237
- 80: K
1238
+ 76: K,
1239
+ 77: q,
1240
+ 79: J,
1241
+ 80: Y
1238
1242
  },
1239
1243
  {
1240
1244
  35: 124,
1241
1245
  75: 81,
1242
- 76: U,
1243
- 77: W,
1244
- 79: G,
1245
- 80: K
1246
+ 76: K,
1247
+ 77: q,
1248
+ 79: J,
1249
+ 80: Y
1246
1250
  },
1247
1251
  {
1248
1252
  35: 125,
1249
1253
  75: 81,
1250
- 76: U,
1251
- 77: W,
1252
- 79: G,
1253
- 80: K
1254
+ 76: K,
1255
+ 77: q,
1256
+ 79: J,
1257
+ 80: Y
1254
1258
  },
1255
1259
  { 14: [1, 126] },
1256
1260
  { 14: [1, 127] },
1257
1261
  { 14: [1, 128] },
1258
1262
  { 14: [1, 129] },
1259
1263
  { 1: [2, 8] },
1260
- e(re, [2, 15]),
1261
- e(ie, [2, 17], {
1264
+ e(ee, [2, 15]),
1265
+ e(te, [2, 17], {
1262
1266
  21: 22,
1263
1267
  19: 130,
1264
- 22: n,
1265
- 23: r,
1266
- 24: i,
1267
- 26: a,
1268
- 28: o
1268
+ 22: t,
1269
+ 23: n,
1270
+ 24: r,
1271
+ 26: i,
1272
+ 28: a
1269
1273
  }),
1270
- e(re, [2, 37], {
1274
+ e(ee, [2, 37], {
1271
1275
  19: 20,
1272
1276
  20: 21,
1273
1277
  21: 22,
@@ -1276,16 +1280,16 @@ var y = p(), b = (function() {
1276
1280
  30: 61,
1277
1281
  32: 62,
1278
1282
  13: 131,
1279
- 22: n,
1280
- 23: r,
1281
- 24: i,
1282
- 26: a,
1283
- 28: o,
1284
- 34: s,
1285
- 36: l,
1286
- 37: u,
1287
- 38: d,
1288
- 39: f,
1283
+ 22: t,
1284
+ 23: n,
1285
+ 24: r,
1286
+ 26: i,
1287
+ 28: a,
1288
+ 34: o,
1289
+ 36: s,
1290
+ 37: l,
1291
+ 38: u,
1292
+ 39: d,
1289
1293
  40: p,
1290
1294
  41: m,
1291
1295
  44: h,
@@ -1316,81 +1320,81 @@ var y = p(), b = (function() {
1316
1320
  69: B,
1317
1321
  70: V,
1318
1322
  71: H,
1319
- 72: ee,
1320
- 73: te,
1321
- 74: ne
1323
+ 72: U,
1324
+ 73: W,
1325
+ 74: G
1322
1326
  }),
1323
- e(ae, [2, 21]),
1324
- e(ae, [2, 22]),
1325
- e(q, [2, 39]),
1326
- e(oe, [2, 71], {
1327
+ e(ne, [2, 21]),
1328
+ e(ne, [2, 22]),
1329
+ e(X, [2, 39]),
1330
+ e(re, [2, 71], {
1327
1331
  75: 81,
1328
1332
  35: 132,
1329
- 76: U,
1330
- 77: W,
1331
- 79: G,
1332
- 80: K
1333
+ 76: K,
1334
+ 77: q,
1335
+ 79: J,
1336
+ 80: Y
1333
1337
  }),
1334
- e(se, [2, 73]),
1338
+ e(ie, [2, 73]),
1335
1339
  { 78: [1, 133] },
1336
- e(se, [2, 75]),
1337
- e(se, [2, 76]),
1338
- e(q, [2, 40]),
1339
- e(q, [2, 41]),
1340
- e(q, [2, 42]),
1341
- e(q, [2, 43]),
1342
- e(q, [2, 44]),
1343
- e(q, [2, 45]),
1344
- e(q, [2, 46]),
1345
- e(q, [2, 47]),
1346
- e(q, [2, 48]),
1347
- e(q, [2, 49]),
1348
- e(q, [2, 50]),
1349
- e(q, [2, 51]),
1350
- e(q, [2, 52]),
1351
- e(q, [2, 53]),
1352
- e(q, [2, 54]),
1353
- e(q, [2, 55]),
1354
- e(q, [2, 56]),
1355
- e(q, [2, 57]),
1356
- e(q, [2, 58]),
1357
- e(q, [2, 60]),
1358
- e(q, [2, 61]),
1359
- e(q, [2, 62]),
1360
- e(q, [2, 63]),
1361
- e(q, [2, 64]),
1362
- e(q, [2, 65]),
1363
- e(q, [2, 66]),
1364
- e(q, [2, 67]),
1365
- e(q, [2, 68]),
1366
- e(q, [2, 69]),
1367
- e(q, [2, 70]),
1340
+ e(ie, [2, 75]),
1341
+ e(ie, [2, 76]),
1342
+ e(X, [2, 40]),
1343
+ e(X, [2, 41]),
1344
+ e(X, [2, 42]),
1345
+ e(X, [2, 43]),
1346
+ e(X, [2, 44]),
1347
+ e(X, [2, 45]),
1348
+ e(X, [2, 46]),
1349
+ e(X, [2, 47]),
1350
+ e(X, [2, 48]),
1351
+ e(X, [2, 49]),
1352
+ e(X, [2, 50]),
1353
+ e(X, [2, 51]),
1354
+ e(X, [2, 52]),
1355
+ e(X, [2, 53]),
1356
+ e(X, [2, 54]),
1357
+ e(X, [2, 55]),
1358
+ e(X, [2, 56]),
1359
+ e(X, [2, 57]),
1360
+ e(X, [2, 58]),
1361
+ e(X, [2, 60]),
1362
+ e(X, [2, 61]),
1363
+ e(X, [2, 62]),
1364
+ e(X, [2, 63]),
1365
+ e(X, [2, 64]),
1366
+ e(X, [2, 65]),
1367
+ e(X, [2, 66]),
1368
+ e(X, [2, 67]),
1369
+ e(X, [2, 68]),
1370
+ e(X, [2, 69]),
1371
+ e(X, [2, 70]),
1368
1372
  {
1369
1373
  31: 134,
1370
1374
  42: [1, 135]
1371
1375
  },
1372
1376
  { 12: [1, 136] },
1373
1377
  { 33: [1, 137] },
1374
- e(ce, [2, 28]),
1375
- e(ce, [2, 29]),
1376
- e(ce, [2, 30]),
1377
- e(ce, [2, 31]),
1378
- e(ce, [2, 32]),
1379
- e(ce, [2, 33]),
1380
- e(ce, [2, 34]),
1378
+ e(ae, [2, 28]),
1379
+ e(ae, [2, 29]),
1380
+ e(ae, [2, 30]),
1381
+ e(ae, [2, 31]),
1382
+ e(ae, [2, 32]),
1383
+ e(ae, [2, 33]),
1384
+ e(ae, [2, 34]),
1381
1385
  { 1: [2, 9] },
1382
1386
  { 1: [2, 10] },
1383
1387
  { 1: [2, 11] },
1384
1388
  { 1: [2, 12] },
1385
- e(ie, [2, 18]),
1386
- e(re, [2, 38]),
1387
- e(oe, [2, 72]),
1388
- e(se, [2, 74]),
1389
- e(q, [2, 24]),
1390
- e(q, [2, 35]),
1391
- e(le, [2, 25]),
1392
- e(le, [2, 26], { 12: [1, 138] }),
1393
- e(le, [2, 27])
1389
+ e(te, [2, 18]),
1390
+ e(ee, [2, 38]),
1391
+ e(re, [2, 72]),
1392
+ e(ie, [2, 74]),
1393
+ e(X, [2, 24]),
1394
+ e(X, [2, 35]),
1395
+ e(oe, [2, 25]),
1396
+ e(oe, [2, 26], { 12: [1, 138] }),
1397
+ e(oe, [2, 27])
1394
1398
  ],
1395
1399
  defaultActions: {
1396
1400
  2: [2, 1],
@@ -1406,35 +1410,35 @@ var y = p(), b = (function() {
1406
1410
  128: [2, 11],
1407
1411
  129: [2, 12]
1408
1412
  },
1409
- parseError: /* @__PURE__ */ t(function(e, t) {
1413
+ parseError: /* @__PURE__ */ f(function(e, t) {
1410
1414
  if (t.recoverable) this.trace(e);
1411
1415
  else {
1412
1416
  var n = Error(e);
1413
1417
  throw n.hash = t, n;
1414
1418
  }
1415
1419
  }, "parseError"),
1416
- parse: /* @__PURE__ */ t(function(e) {
1417
- var n = this, r = [0], i = [], a = [null], o = [], s = this.table, l = "", u = 0, d = 0, f = 0, p = 2, m = 1, h = o.slice.call(arguments, 1), g = Object.create(this.lexer), _ = { yy: {} };
1420
+ parse: /* @__PURE__ */ f(function(e) {
1421
+ var t = this, n = [0], r = [], i = [null], a = [], o = this.table, s = "", l = 0, u = 0, d = 0, p = 2, m = 1, h = a.slice.call(arguments, 1), g = Object.create(this.lexer), _ = { yy: {} };
1418
1422
  for (var v in this.yy) Object.prototype.hasOwnProperty.call(this.yy, v) && (_.yy[v] = this.yy[v]);
1419
1423
  g.setInput(e, _.yy), _.yy.lexer = g, _.yy.parser = this, g.yylloc === void 0 && (g.yylloc = {});
1420
1424
  var y = g.yylloc;
1421
- o.push(y);
1425
+ a.push(y);
1422
1426
  var b = g.options && g.options.ranges;
1423
1427
  typeof _.yy.parseError == "function" ? this.parseError = _.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
1424
1428
  function x(e) {
1425
- r.length -= 2 * e, a.length -= e, o.length -= e;
1429
+ n.length -= 2 * e, i.length -= e, a.length -= e;
1426
1430
  }
1427
- t(x, "popStack");
1431
+ f(x, "popStack");
1428
1432
  function S() {
1429
- var e = i.pop() || g.lex() || m;
1430
- return typeof e != "number" && (e instanceof Array && (i = e, e = i.pop()), e = n.symbols_[e] || e), e;
1433
+ var e = r.pop() || g.lex() || m;
1434
+ return typeof e != "number" && (e instanceof Array && (r = e, e = r.pop()), e = t.symbols_[e] || e), e;
1431
1435
  }
1432
- t(S, "lex");
1436
+ f(S, "lex");
1433
1437
  for (var C, w, T, E, D, O = {}, k, A, j, M;;) {
1434
- if (T = r[r.length - 1], this.defaultActions[T] ? E = this.defaultActions[T] : (C ??= S(), E = s[T] && s[T][C]), E === void 0 || !E.length || !E[0]) {
1438
+ if (T = n[n.length - 1], this.defaultActions[T] ? E = this.defaultActions[T] : (C ??= S(), E = o[T] && o[T][C]), E === void 0 || !E.length || !E[0]) {
1435
1439
  var N = "";
1436
- for (k in M = [], s[T]) this.terminals_[k] && k > p && M.push("'" + this.terminals_[k] + "'");
1437
- N = g.showPosition ? "Parse error on line " + (u + 1) + ":\n" + g.showPosition() + "\nExpecting " + M.join(", ") + ", got '" + (this.terminals_[C] || C) + "'" : "Parse error on line " + (u + 1) + ": Unexpected " + (C == m ? "end of input" : "'" + (this.terminals_[C] || C) + "'"), this.parseError(N, {
1440
+ for (k in M = [], o[T]) this.terminals_[k] && k > p && M.push("'" + this.terminals_[k] + "'");
1441
+ N = g.showPosition ? "Parse error on line " + (l + 1) + ":\n" + g.showPosition() + "\nExpecting " + M.join(", ") + ", got '" + (this.terminals_[C] || C) + "'" : "Parse error on line " + (l + 1) + ": Unexpected " + (C == m ? "end of input" : "'" + (this.terminals_[C] || C) + "'"), this.parseError(N, {
1438
1442
  text: g.match,
1439
1443
  token: this.terminals_[C] || C,
1440
1444
  line: g.yylineno,
@@ -1445,24 +1449,24 @@ var y = p(), b = (function() {
1445
1449
  if (E[0] instanceof Array && E.length > 1) throw Error("Parse Error: multiple actions possible at state: " + T + ", token: " + C);
1446
1450
  switch (E[0]) {
1447
1451
  case 1:
1448
- r.push(C), a.push(g.yytext), o.push(g.yylloc), r.push(E[1]), C = null, w ? (C = w, w = null) : (d = g.yyleng, l = g.yytext, u = g.yylineno, y = g.yylloc, f > 0 && f--);
1452
+ n.push(C), i.push(g.yytext), a.push(g.yylloc), n.push(E[1]), C = null, w ? (C = w, w = null) : (u = g.yyleng, s = g.yytext, l = g.yylineno, y = g.yylloc, d > 0 && d--);
1449
1453
  break;
1450
1454
  case 2:
1451
- if (A = this.productions_[E[1]][1], O.$ = a[a.length - A], O._$ = {
1452
- first_line: o[o.length - (A || 1)].first_line,
1453
- last_line: o[o.length - 1].last_line,
1454
- first_column: o[o.length - (A || 1)].first_column,
1455
- last_column: o[o.length - 1].last_column
1456
- }, b && (O._$.range = [o[o.length - (A || 1)].range[0], o[o.length - 1].range[1]]), D = this.performAction.apply(O, [
1457
- l,
1458
- d,
1455
+ if (A = this.productions_[E[1]][1], O.$ = i[i.length - A], O._$ = {
1456
+ first_line: a[a.length - (A || 1)].first_line,
1457
+ last_line: a[a.length - 1].last_line,
1458
+ first_column: a[a.length - (A || 1)].first_column,
1459
+ last_column: a[a.length - 1].last_column
1460
+ }, b && (O._$.range = [a[a.length - (A || 1)].range[0], a[a.length - 1].range[1]]), D = this.performAction.apply(O, [
1461
+ s,
1459
1462
  u,
1463
+ l,
1460
1464
  _.yy,
1461
1465
  E[1],
1462
- a,
1463
- o
1466
+ i,
1467
+ a
1464
1468
  ].concat(h)), D !== void 0) return D;
1465
- A && (r = r.slice(0, -1 * A * 2), a = a.slice(0, -1 * A), o = o.slice(0, -1 * A)), r.push(this.productions_[E[1]][0]), a.push(O.$), o.push(O._$), j = s[r[r.length - 2]][r[r.length - 1]], r.push(j);
1469
+ A && (n = n.slice(0, -1 * A * 2), i = i.slice(0, -1 * A), a = a.slice(0, -1 * A)), n.push(this.productions_[E[1]][0]), i.push(O.$), a.push(O._$), j = o[n[n.length - 2]][n[n.length - 1]], n.push(j);
1466
1470
  break;
1467
1471
  case 3: return !0;
1468
1472
  }
@@ -1470,14 +1474,14 @@ var y = p(), b = (function() {
1470
1474
  return !0;
1471
1475
  }, "parse")
1472
1476
  };
1473
- J.lexer = /* @__PURE__ */ (function() {
1477
+ se.lexer = /* @__PURE__ */ (function() {
1474
1478
  return {
1475
1479
  EOF: 1,
1476
- parseError: /* @__PURE__ */ t(function(e, t) {
1480
+ parseError: /* @__PURE__ */ f(function(e, t) {
1477
1481
  if (this.yy.parser) this.yy.parser.parseError(e, t);
1478
1482
  else throw Error(e);
1479
1483
  }, "parseError"),
1480
- setInput: /* @__PURE__ */ t(function(e, t) {
1484
+ setInput: /* @__PURE__ */ f(function(e, t) {
1481
1485
  return this.yy = t || this.yy || {}, this._input = e, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
1482
1486
  first_line: 1,
1483
1487
  first_column: 0,
@@ -1485,11 +1489,11 @@ var y = p(), b = (function() {
1485
1489
  last_column: 0
1486
1490
  }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
1487
1491
  }, "setInput"),
1488
- input: /* @__PURE__ */ t(function() {
1492
+ input: /* @__PURE__ */ f(function() {
1489
1493
  var e = this._input[0];
1490
1494
  return this.yytext += e, this.yyleng++, this.offset++, this.match += e, this.matched += e, e.match(/(?:\r\n?|\n).*/g) ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), e;
1491
1495
  }, "input"),
1492
- unput: /* @__PURE__ */ t(function(e) {
1496
+ unput: /* @__PURE__ */ f(function(e) {
1493
1497
  var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
1494
1498
  this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
1495
1499
  var r = this.match.split(/(?:\r\n?|\n)/g);
@@ -1502,10 +1506,10 @@ var y = p(), b = (function() {
1502
1506
  last_column: n ? (n.length === r.length ? this.yylloc.first_column : 0) + r[r.length - n.length].length - n[0].length : this.yylloc.first_column - t
1503
1507
  }, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
1504
1508
  }, "unput"),
1505
- more: /* @__PURE__ */ t(function() {
1509
+ more: /* @__PURE__ */ f(function() {
1506
1510
  return this._more = !0, this;
1507
1511
  }, "more"),
1508
- reject: /* @__PURE__ */ t(function() {
1512
+ reject: /* @__PURE__ */ f(function() {
1509
1513
  if (this.options.backtrack_lexer) this._backtrack = !0;
1510
1514
  else return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n" + this.showPosition(), {
1511
1515
  text: "",
@@ -1514,22 +1518,22 @@ var y = p(), b = (function() {
1514
1518
  });
1515
1519
  return this;
1516
1520
  }, "reject"),
1517
- less: /* @__PURE__ */ t(function(e) {
1521
+ less: /* @__PURE__ */ f(function(e) {
1518
1522
  this.unput(this.match.slice(e));
1519
1523
  }, "less"),
1520
- pastInput: /* @__PURE__ */ t(function() {
1524
+ pastInput: /* @__PURE__ */ f(function() {
1521
1525
  var e = this.matched.substr(0, this.matched.length - this.match.length);
1522
1526
  return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
1523
1527
  }, "pastInput"),
1524
- upcomingInput: /* @__PURE__ */ t(function() {
1528
+ upcomingInput: /* @__PURE__ */ f(function() {
1525
1529
  var e = this.match;
1526
1530
  return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
1527
1531
  }, "upcomingInput"),
1528
- showPosition: /* @__PURE__ */ t(function() {
1532
+ showPosition: /* @__PURE__ */ f(function() {
1529
1533
  var e = this.pastInput(), t = Array(e.length + 1).join("-");
1530
1534
  return e + this.upcomingInput() + "\n" + t + "^";
1531
1535
  }, "showPosition"),
1532
- test_match: /* @__PURE__ */ t(function(e, t) {
1536
+ test_match: /* @__PURE__ */ f(function(e, t) {
1533
1537
  var n, r, i;
1534
1538
  if (this.options.backtrack_lexer && (i = {
1535
1539
  yylineno: this.yylineno,
@@ -1562,7 +1566,7 @@ var y = p(), b = (function() {
1562
1566
  }
1563
1567
  return !1;
1564
1568
  }, "test_match"),
1565
- next: /* @__PURE__ */ t(function() {
1569
+ next: /* @__PURE__ */ f(function() {
1566
1570
  if (this.done) return this.EOF;
1567
1571
  this._input || (this.done = !0);
1568
1572
  var e, t, n, r;
@@ -1582,29 +1586,29 @@ var y = p(), b = (function() {
1582
1586
  line: this.yylineno
1583
1587
  });
1584
1588
  }, "next"),
1585
- lex: /* @__PURE__ */ t(function() {
1589
+ lex: /* @__PURE__ */ f(function() {
1586
1590
  return this.next() || this.lex();
1587
1591
  }, "lex"),
1588
- begin: /* @__PURE__ */ t(function(e) {
1592
+ begin: /* @__PURE__ */ f(function(e) {
1589
1593
  this.conditionStack.push(e);
1590
1594
  }, "begin"),
1591
- popState: /* @__PURE__ */ t(function() {
1595
+ popState: /* @__PURE__ */ f(function() {
1592
1596
  return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
1593
1597
  }, "popState"),
1594
- _currentRules: /* @__PURE__ */ t(function() {
1598
+ _currentRules: /* @__PURE__ */ f(function() {
1595
1599
  return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
1596
1600
  }, "_currentRules"),
1597
- topState: /* @__PURE__ */ t(function(e) {
1601
+ topState: /* @__PURE__ */ f(function(e) {
1598
1602
  return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
1599
1603
  }, "topState"),
1600
- pushState: /* @__PURE__ */ t(function(e) {
1604
+ pushState: /* @__PURE__ */ f(function(e) {
1601
1605
  this.begin(e);
1602
1606
  }, "pushState"),
1603
- stateStackSize: /* @__PURE__ */ t(function() {
1607
+ stateStackSize: /* @__PURE__ */ f(function() {
1604
1608
  return this.conditionStack.length;
1605
1609
  }, "stateStackSize"),
1606
1610
  options: {},
1607
- performAction: /* @__PURE__ */ t(function(e, t, n, r) {
1611
+ performAction: /* @__PURE__ */ f(function(e, t, n, r) {
1608
1612
  switch (n) {
1609
1613
  case 0: return 6;
1610
1614
  case 1: return 7;
@@ -2267,27 +2271,32 @@ var y = p(), b = (function() {
2267
2271
  }
2268
2272
  };
2269
2273
  })();
2270
- function ue() {
2274
+ function Z() {
2271
2275
  this.yy = {};
2272
2276
  }
2273
- return t(ue, "Parser"), ue.prototype = J, J.Parser = ue, new ue();
2277
+ return f(Z, "Parser"), Z.prototype = se, se.Parser = Z, new Z();
2274
2278
  })();
2275
- b.parser = b;
2276
- var x = b, S = [], C = [""], w = "global", T = "", E = [{
2279
+ v.parser = v;
2280
+ var y = v, b = /* @__PURE__ */ f((e) => l()[e], "getRequiredConfig"), x = /* @__PURE__ */ f((e, t) => {
2281
+ for (let [n, r] of Object.entries(t)) if (r !== void 0) if (typeof r == "object") {
2282
+ let [t, n] = Object.entries(r)[0];
2283
+ e[t] = n;
2284
+ } else e[n] = r;
2285
+ }, "assignAttributes"), S = /* @__PURE__ */ f(() => ({
2277
2286
  alias: "global",
2278
2287
  label: { text: "global" },
2279
2288
  type: { text: "global" },
2280
2289
  tags: null,
2281
2290
  link: null,
2282
2291
  parentBoundary: ""
2283
- }], D = [], O = "", k = !1, A = 4, j = 2, M, N = /* @__PURE__ */ t(function() {
2284
- return M;
2285
- }, "getC4Type"), P = /* @__PURE__ */ t(function(e) {
2286
- M = f(e, u());
2287
- }, "setC4Type"), F = /* @__PURE__ */ t(function(e, t, n, r, i, a, o, s, l) {
2292
+ }), "createGlobalBoundary"), C = [], w = [""], T = "global", E = "", D = [S()], O = [], k = "", A = !1, j = 4, M = 2, N, P = /* @__PURE__ */ f(function() {
2293
+ return N;
2294
+ }, "getC4Type"), F = /* @__PURE__ */ f(function(e) {
2295
+ N = d(e, l());
2296
+ }, "setC4Type"), I = /* @__PURE__ */ f(function(e, t, n, r, i, a, o, s, l) {
2288
2297
  if (e == null || t == null || n == null || r == null) return;
2289
- let u = {}, d = D.find((e) => e.from === t && e.to === n);
2290
- if (d ? u = d : D.push(u), u.type = e, u.from = t, u.to = n, u.label = { text: r }, i == null) u.techn = { text: "" };
2298
+ let u = {}, d = O.find((e) => e.from === t && e.to === n);
2299
+ if (d ? u = d : O.push(u), u.type = e, u.from = t, u.to = n, u.label = { text: r }, i == null) u.techn = { text: "" };
2291
2300
  else if (typeof i == "object") {
2292
2301
  let [e, t] = Object.entries(i)[0];
2293
2302
  u[e] = { text: t };
@@ -2297,44 +2306,28 @@ var x = b, S = [], C = [""], w = "global", T = "", E = [{
2297
2306
  let [e, t] = Object.entries(a)[0];
2298
2307
  u[e] = { text: t };
2299
2308
  } else u.descr = { text: a };
2300
- if (typeof o == "object") {
2301
- let [e, t] = Object.entries(o)[0];
2302
- u[e] = t;
2303
- } else u.sprite = o;
2304
- if (typeof s == "object") {
2305
- let [e, t] = Object.entries(s)[0];
2306
- u[e] = t;
2307
- } else u.tags = s;
2308
- if (typeof l == "object") {
2309
- let [e, t] = Object.entries(l)[0];
2310
- u[e] = t;
2311
- } else u.link = l;
2312
- u.wrap = J();
2313
- }, "addRel"), I = /* @__PURE__ */ t(function(e, t, n, r, i, a, o) {
2309
+ x(u, {
2310
+ sprite: o,
2311
+ tags: s,
2312
+ link: l
2313
+ }), u.wrap = Z();
2314
+ }, "addRel"), L = /* @__PURE__ */ f(function(e, t, n, r, i, a, o) {
2314
2315
  if (t === null || n === null) return;
2315
- let s = {}, l = S.find((e) => e.alias === t);
2316
- if (l && t === l.alias ? s = l : (s.alias = t, S.push(s)), n == null ? s.label = { text: "" } : s.label = { text: n }, r == null) s.descr = { text: "" };
2316
+ let s = {}, l = C.find((e) => e.alias === t);
2317
+ if (l && t === l.alias ? s = l : (s.alias = t, C.push(s)), n == null ? s.label = { text: "" } : s.label = { text: n }, r == null) s.descr = { text: "" };
2317
2318
  else if (typeof r == "object") {
2318
2319
  let [e, t] = Object.entries(r)[0];
2319
2320
  s[e] = { text: t };
2320
2321
  } else s.descr = { text: r };
2321
- if (typeof i == "object") {
2322
- let [e, t] = Object.entries(i)[0];
2323
- s[e] = t;
2324
- } else s.sprite = i;
2325
- if (typeof a == "object") {
2326
- let [e, t] = Object.entries(a)[0];
2327
- s[e] = t;
2328
- } else s.tags = a;
2329
- if (typeof o == "object") {
2330
- let [e, t] = Object.entries(o)[0];
2331
- s[e] = t;
2332
- } else s.link = o;
2333
- s.typeC4Shape = { text: e }, s.parentBoundary = w, s.wrap = J();
2334
- }, "addPersonOrSystem"), L = /* @__PURE__ */ t(function(e, t, n, r, i, a, o, s) {
2322
+ x(s, {
2323
+ sprite: i,
2324
+ tags: a,
2325
+ link: o
2326
+ }), s.typeC4Shape = { text: e }, s.parentBoundary = T, s.wrap = Z();
2327
+ }, "addPersonOrSystem"), R = /* @__PURE__ */ f(function(e, t, n, r, i, a, o, s) {
2335
2328
  if (t === null || n === null) return;
2336
- let l = {}, u = S.find((e) => e.alias === t);
2337
- if (u && t === u.alias ? l = u : (l.alias = t, S.push(l)), n == null ? l.label = { text: "" } : l.label = { text: n }, r == null) l.techn = { text: "" };
2329
+ let l = {}, u = C.find((e) => e.alias === t);
2330
+ if (u && t === u.alias ? l = u : (l.alias = t, C.push(l)), n == null ? l.label = { text: "" } : l.label = { text: n }, r == null) l.techn = { text: "" };
2338
2331
  else if (typeof r == "object") {
2339
2332
  let [e, t] = Object.entries(r)[0];
2340
2333
  l[e] = { text: t };
@@ -2344,23 +2337,15 @@ var x = b, S = [], C = [""], w = "global", T = "", E = [{
2344
2337
  let [e, t] = Object.entries(i)[0];
2345
2338
  l[e] = { text: t };
2346
2339
  } else l.descr = { text: i };
2347
- if (typeof a == "object") {
2348
- let [e, t] = Object.entries(a)[0];
2349
- l[e] = t;
2350
- } else l.sprite = a;
2351
- if (typeof o == "object") {
2352
- let [e, t] = Object.entries(o)[0];
2353
- l[e] = t;
2354
- } else l.tags = o;
2355
- if (typeof s == "object") {
2356
- let [e, t] = Object.entries(s)[0];
2357
- l[e] = t;
2358
- } else l.link = s;
2359
- l.wrap = J(), l.typeC4Shape = { text: e }, l.parentBoundary = w;
2360
- }, "addContainer"), R = /* @__PURE__ */ t(function(e, t, n, r, i, a, o, s) {
2340
+ x(l, {
2341
+ sprite: a,
2342
+ tags: o,
2343
+ link: s
2344
+ }), l.wrap = Z(), l.typeC4Shape = { text: e }, l.parentBoundary = T;
2345
+ }, "addContainer"), z = /* @__PURE__ */ f(function(e, t, n, r, i, a, o, s) {
2361
2346
  if (t === null || n === null) return;
2362
- let l = {}, u = S.find((e) => e.alias === t);
2363
- if (u && t === u.alias ? l = u : (l.alias = t, S.push(l)), n == null ? l.label = { text: "" } : l.label = { text: n }, r == null) l.techn = { text: "" };
2347
+ let l = {}, u = C.find((e) => e.alias === t);
2348
+ if (u && t === u.alias ? l = u : (l.alias = t, C.push(l)), n == null ? l.label = { text: "" } : l.label = { text: n }, r == null) l.techn = { text: "" };
2364
2349
  else if (typeof r == "object") {
2365
2350
  let [e, t] = Object.entries(r)[0];
2366
2351
  l[e] = { text: t };
@@ -2370,57 +2355,39 @@ var x = b, S = [], C = [""], w = "global", T = "", E = [{
2370
2355
  let [e, t] = Object.entries(i)[0];
2371
2356
  l[e] = { text: t };
2372
2357
  } else l.descr = { text: i };
2373
- if (typeof a == "object") {
2374
- let [e, t] = Object.entries(a)[0];
2375
- l[e] = t;
2376
- } else l.sprite = a;
2377
- if (typeof o == "object") {
2378
- let [e, t] = Object.entries(o)[0];
2379
- l[e] = t;
2380
- } else l.tags = o;
2381
- if (typeof s == "object") {
2382
- let [e, t] = Object.entries(s)[0];
2383
- l[e] = t;
2384
- } else l.link = s;
2385
- l.wrap = J(), l.typeC4Shape = { text: e }, l.parentBoundary = w;
2386
- }, "addComponent"), z = /* @__PURE__ */ t(function(e, t, n, r, i) {
2358
+ x(l, {
2359
+ sprite: a,
2360
+ tags: o,
2361
+ link: s
2362
+ }), l.wrap = Z(), l.typeC4Shape = { text: e }, l.parentBoundary = T;
2363
+ }, "addComponent"), B = /* @__PURE__ */ f(function(e, t, n, r, i) {
2387
2364
  if (e === null || t === null) return;
2388
- let a = {}, o = E.find((t) => t.alias === e);
2389
- if (o && e === o.alias ? a = o : (a.alias = e, E.push(a)), t == null ? a.label = { text: "" } : a.label = { text: t }, n == null) a.type = { text: "system" };
2365
+ let a = {}, o = D.find((t) => t.alias === e);
2366
+ if (o && e === o.alias ? a = o : (a.alias = e, D.push(a)), t == null ? a.label = { text: "" } : a.label = { text: t }, n == null) a.type = { text: "system" };
2390
2367
  else if (typeof n == "object") {
2391
2368
  let [e, t] = Object.entries(n)[0];
2392
2369
  a[e] = { text: t };
2393
2370
  } else a.type = { text: n };
2394
- if (typeof r == "object") {
2395
- let [e, t] = Object.entries(r)[0];
2396
- a[e] = t;
2397
- } else a.tags = r;
2398
- if (typeof i == "object") {
2399
- let [e, t] = Object.entries(i)[0];
2400
- a[e] = t;
2401
- } else a.link = i;
2402
- a.parentBoundary = w, a.wrap = J(), T = w, w = e, C.push(T);
2403
- }, "addPersonOrSystemBoundary"), B = /* @__PURE__ */ t(function(e, t, n, r, i) {
2371
+ x(a, {
2372
+ tags: r,
2373
+ link: i
2374
+ }), a.parentBoundary = T, a.wrap = Z(), E = T, T = e, w.push(E);
2375
+ }, "addPersonOrSystemBoundary"), V = /* @__PURE__ */ f(function(e, t, n, r, i) {
2404
2376
  if (e === null || t === null) return;
2405
- let a = {}, o = E.find((t) => t.alias === e);
2406
- if (o && e === o.alias ? a = o : (a.alias = e, E.push(a)), t == null ? a.label = { text: "" } : a.label = { text: t }, n == null) a.type = { text: "container" };
2377
+ let a = {}, o = D.find((t) => t.alias === e);
2378
+ if (o && e === o.alias ? a = o : (a.alias = e, D.push(a)), t == null ? a.label = { text: "" } : a.label = { text: t }, n == null) a.type = { text: "container" };
2407
2379
  else if (typeof n == "object") {
2408
2380
  let [e, t] = Object.entries(n)[0];
2409
2381
  a[e] = { text: t };
2410
2382
  } else a.type = { text: n };
2411
- if (typeof r == "object") {
2412
- let [e, t] = Object.entries(r)[0];
2413
- a[e] = t;
2414
- } else a.tags = r;
2415
- if (typeof i == "object") {
2416
- let [e, t] = Object.entries(i)[0];
2417
- a[e] = t;
2418
- } else a.link = i;
2419
- a.parentBoundary = w, a.wrap = J(), T = w, w = e, C.push(T);
2420
- }, "addContainerBoundary"), V = /* @__PURE__ */ t(function(e, t, n, r, i, a, o, s) {
2383
+ x(a, {
2384
+ tags: r,
2385
+ link: i
2386
+ }), a.parentBoundary = T, a.wrap = Z(), E = T, T = e, w.push(E);
2387
+ }, "addContainerBoundary"), H = /* @__PURE__ */ f(function(e, t, n, r, i, a, o, s) {
2421
2388
  if (t === null || n === null) return;
2422
- let l = {}, u = E.find((e) => e.alias === t);
2423
- if (u && t === u.alias ? l = u : (l.alias = t, E.push(l)), n == null ? l.label = { text: "" } : l.label = { text: n }, r == null) l.type = { text: "node" };
2389
+ let l = {}, u = D.find((e) => e.alias === t);
2390
+ if (u && t === u.alias ? l = u : (l.alias = t, D.push(l)), n == null ? l.label = { text: "" } : l.label = { text: n }, r == null) l.type = { text: "node" };
2424
2391
  else if (typeof r == "object") {
2425
2392
  let [e, t] = Object.entries(r)[0];
2426
2393
  l[e] = { text: t };
@@ -2430,20 +2397,15 @@ var x = b, S = [], C = [""], w = "global", T = "", E = [{
2430
2397
  let [e, t] = Object.entries(i)[0];
2431
2398
  l[e] = { text: t };
2432
2399
  } else l.descr = { text: i };
2433
- if (typeof o == "object") {
2434
- let [e, t] = Object.entries(o)[0];
2435
- l[e] = t;
2436
- } else l.tags = o;
2437
- if (typeof s == "object") {
2438
- let [e, t] = Object.entries(s)[0];
2439
- l[e] = t;
2440
- } else l.link = s;
2441
- l.nodeType = e, l.parentBoundary = w, l.wrap = J(), T = w, w = t, C.push(T);
2442
- }, "addDeploymentNode"), H = /* @__PURE__ */ t(function() {
2443
- w = T, C.pop(), T = C.pop(), C.push(T);
2444
- }, "popBoundaryParseStack"), ee = /* @__PURE__ */ t(function(e, t, n, r, i, a, o, s, l, u, d) {
2445
- let f = S.find((e) => e.alias === t);
2446
- if (!(f === void 0 && (f = E.find((e) => e.alias === t), f === void 0))) {
2400
+ x(l, {
2401
+ tags: o,
2402
+ link: s
2403
+ }), l.nodeType = e, l.parentBoundary = T, l.wrap = Z(), E = T, T = t, w.push(E);
2404
+ }, "addDeploymentNode"), U = /* @__PURE__ */ f(function() {
2405
+ T = E, w.pop(), E = w.pop(), w.push(E);
2406
+ }, "popBoundaryParseStack"), W = /* @__PURE__ */ f(function(e, t, n, r, i, a, o, s, l, u, d) {
2407
+ let f = C.find((e) => e.alias === t);
2408
+ if (!(f === void 0 && (f = D.find((e) => e.alias === t), f === void 0))) {
2447
2409
  if (n != null) if (typeof n == "object") {
2448
2410
  let [e, t] = Object.entries(n)[0];
2449
2411
  f[e] = t;
@@ -2481,8 +2443,8 @@ var x = b, S = [], C = [""], w = "global", T = "", E = [{
2481
2443
  f[e] = t;
2482
2444
  } else f.legendSprite = d;
2483
2445
  }
2484
- }, "updateElStyle"), te = /* @__PURE__ */ t(function(e, t, n, r, i, a, o) {
2485
- let s = D.find((e) => e.from === t && e.to === n);
2446
+ }, "updateElStyle"), G = /* @__PURE__ */ f(function(e, t, n, r, i, a, o) {
2447
+ let s = O.find((e) => e.from === t && e.to === n);
2486
2448
  if (s !== void 0) {
2487
2449
  if (r != null) if (typeof r == "object") {
2488
2450
  let [e, t] = Object.entries(r)[0];
@@ -2501,8 +2463,8 @@ var x = b, S = [], C = [""], w = "global", T = "", E = [{
2501
2463
  s[e] = parseInt(t);
2502
2464
  } else s.offsetY = parseInt(o);
2503
2465
  }
2504
- }, "updateRelStyle"), ne = /* @__PURE__ */ t(function(e, t, n) {
2505
- let r = A, i = j;
2466
+ }, "updateRelStyle"), ee = /* @__PURE__ */ f(function(e, t, n) {
2467
+ let r = j, i = M;
2506
2468
  if (typeof t == "object") {
2507
2469
  let e = Object.values(t)[0];
2508
2470
  r = parseInt(e);
@@ -2511,71 +2473,64 @@ var x = b, S = [], C = [""], w = "global", T = "", E = [{
2511
2473
  let e = Object.values(n)[0];
2512
2474
  i = parseInt(e);
2513
2475
  } else i = parseInt(n);
2514
- r >= 1 && (A = r), i >= 1 && (j = i);
2515
- }, "updateLayoutConfig"), re = /* @__PURE__ */ t(function() {
2516
- return A;
2517
- }, "getC4ShapeInRow"), ie = /* @__PURE__ */ t(function() {
2476
+ r >= 1 && (j = r), i >= 1 && (M = i);
2477
+ }, "updateLayoutConfig"), te = /* @__PURE__ */ f(function() {
2518
2478
  return j;
2519
- }, "getC4BoundaryInRow"), ae = /* @__PURE__ */ t(function() {
2520
- return w;
2521
- }, "getCurrentBoundaryParse"), U = /* @__PURE__ */ t(function() {
2479
+ }, "getC4ShapeInRow"), ne = /* @__PURE__ */ f(function() {
2480
+ return M;
2481
+ }, "getC4BoundaryInRow"), K = /* @__PURE__ */ f(function() {
2522
2482
  return T;
2523
- }, "getParentBoundaryParse"), W = /* @__PURE__ */ t(function(e) {
2524
- return e == null ? S : S.filter((t) => t.parentBoundary === e);
2525
- }, "getC4ShapeArray"), G = /* @__PURE__ */ t(function(e) {
2526
- return S.find((t) => t.alias === e);
2527
- }, "getC4Shape"), K = /* @__PURE__ */ t(function(e) {
2528
- return Object.keys(W(e));
2529
- }, "getC4ShapeKeys"), q = /* @__PURE__ */ t(function(e) {
2530
- return e == null ? E : E.filter((t) => t.parentBoundary === e);
2531
- }, "getBoundaries"), oe = q, se = /* @__PURE__ */ t(function() {
2532
- return D;
2533
- }, "getRels"), ce = /* @__PURE__ */ t(function() {
2483
+ }, "getCurrentBoundaryParse"), q = /* @__PURE__ */ f(function() {
2484
+ return E;
2485
+ }, "getParentBoundaryParse"), J = /* @__PURE__ */ f(function(e) {
2486
+ return e == null ? C : C.filter((t) => t.parentBoundary === e);
2487
+ }, "getC4ShapeArray"), Y = /* @__PURE__ */ f(function(e) {
2488
+ return C.find((t) => t.alias === e);
2489
+ }, "getC4Shape"), X = /* @__PURE__ */ f(function(e) {
2490
+ return Object.keys(J(e));
2491
+ }, "getC4ShapeKeys"), re = /* @__PURE__ */ f(function(e) {
2492
+ return e == null ? D : D.filter((t) => t.parentBoundary === e);
2493
+ }, "getBoundaries"), ie = re, ae = /* @__PURE__ */ f(function() {
2534
2494
  return O;
2535
- }, "getTitle"), le = /* @__PURE__ */ t(function(e) {
2536
- k = e;
2537
- }, "setWrap"), J = /* @__PURE__ */ t(function() {
2495
+ }, "getRels"), oe = /* @__PURE__ */ f(function() {
2538
2496
  return k;
2539
- }, "autoWrap"), ue = {
2540
- addPersonOrSystem: I,
2541
- addPersonOrSystemBoundary: z,
2542
- addContainer: L,
2543
- addContainerBoundary: B,
2544
- addComponent: R,
2545
- addDeploymentNode: V,
2546
- popBoundaryParseStack: H,
2547
- addRel: F,
2548
- updateElStyle: ee,
2549
- updateRelStyle: te,
2550
- updateLayoutConfig: ne,
2551
- autoWrap: J,
2552
- setWrap: le,
2553
- getC4ShapeArray: W,
2554
- getC4Shape: G,
2555
- getC4ShapeKeys: K,
2556
- getBoundaries: q,
2557
- getBoundarys: oe,
2558
- getCurrentBoundaryParse: ae,
2559
- getParentBoundaryParse: U,
2560
- getRels: se,
2561
- getTitle: ce,
2562
- getC4Type: N,
2563
- getC4ShapeInRow: re,
2564
- getC4BoundaryInRow: ie,
2565
- setAccTitle: i,
2566
- getAccTitle: d,
2567
- getAccDescription: l,
2568
- setAccDescription: r,
2569
- getConfig: /* @__PURE__ */ t(() => u().c4, "getConfig"),
2570
- clear: /* @__PURE__ */ t(function() {
2571
- S = [], E = [{
2572
- alias: "global",
2573
- label: { text: "global" },
2574
- type: { text: "global" },
2575
- tags: null,
2576
- link: null,
2577
- parentBoundary: ""
2578
- }], T = "", w = "global", C = [""], D = [], C = [""], O = "", k = !1, A = 4, j = 2;
2497
+ }, "getTitle"), se = /* @__PURE__ */ f(function(e) {
2498
+ A = e;
2499
+ }, "setWrap"), Z = /* @__PURE__ */ f(function() {
2500
+ return A;
2501
+ }, "autoWrap"), ce = {
2502
+ addPersonOrSystem: L,
2503
+ addPersonOrSystemBoundary: B,
2504
+ addContainer: R,
2505
+ addContainerBoundary: V,
2506
+ addComponent: z,
2507
+ addDeploymentNode: H,
2508
+ popBoundaryParseStack: U,
2509
+ addRel: I,
2510
+ updateElStyle: W,
2511
+ updateRelStyle: G,
2512
+ updateLayoutConfig: ee,
2513
+ autoWrap: Z,
2514
+ setWrap: se,
2515
+ getC4ShapeArray: J,
2516
+ getC4Shape: Y,
2517
+ getC4ShapeKeys: X,
2518
+ getBoundaries: re,
2519
+ getBoundarys: ie,
2520
+ getCurrentBoundaryParse: K,
2521
+ getParentBoundaryParse: q,
2522
+ getRels: ae,
2523
+ getTitle: oe,
2524
+ getC4Type: P,
2525
+ getC4ShapeInRow: te,
2526
+ getC4BoundaryInRow: ne,
2527
+ setAccTitle: r,
2528
+ getAccTitle: u,
2529
+ getAccDescription: s,
2530
+ setAccDescription: n,
2531
+ getConfig: /* @__PURE__ */ f(() => b("c4"), "getConfig"),
2532
+ clear: /* @__PURE__ */ f(function() {
2533
+ C = [], D = [S()], E = "", T = "global", w = [""], O = [], w = [""], k = "", A = !1, j = 4, M = 2;
2579
2534
  }, "clear"),
2580
2535
  LINETYPE: {
2581
2536
  SOLID: 0,
@@ -2611,21 +2566,16 @@ var x = b, S = [], C = [""], w = "global", T = "", E = [{
2611
2566
  RIGHTOF: 1,
2612
2567
  OVER: 2
2613
2568
  },
2614
- setTitle: /* @__PURE__ */ t(function(e) {
2615
- O = f(e, u());
2569
+ setTitle: /* @__PURE__ */ f(function(e) {
2570
+ k = d(e, l());
2616
2571
  }, "setTitle"),
2617
- setC4Type: P
2618
- }, de = /* @__PURE__ */ t(function(e, t) {
2572
+ setC4Type: F
2573
+ }, le = /* @__PURE__ */ f(function(e, t) {
2619
2574
  return _(e, t);
2620
- }, "drawRect"), fe = /* @__PURE__ */ t(function(e, t, n, r, i, a) {
2621
- let o = e.append("image");
2622
- o.attr("width", t), o.attr("height", n), o.attr("x", r), o.attr("y", i);
2623
- let s = a.startsWith("data:image/png;base64") ? a : (0, y.sanitizeUrl)(a);
2624
- o.attr("xlink:href", s);
2625
- }, "drawImage"), pe = /* @__PURE__ */ t((e, t, n, r) => {
2575
+ }, "drawRect"), ue = /* @__PURE__ */ f((e, t, n, r) => {
2626
2576
  let i = e.append("g"), a = 0;
2627
2577
  for (let e of t) {
2628
- let t = e.textColor ? e.textColor : "#444444", o = e.lineColor ? e.lineColor : "#444444", s = e.offsetX ? parseInt(e.offsetX) : 0, l = e.offsetY ? parseInt(e.offsetY) : 0;
2578
+ let t = e.textColor ? e.textColor : "#444444", o = e.lineColor ? e.lineColor : "#444444", s = e.offsetX ? parseInt(String(e.offsetX)) : 0, l = e.offsetY ? parseInt(String(e.offsetY)) : 0;
2629
2579
  if (a === 0) {
2630
2580
  let t = i.append("line");
2631
2581
  t.attr("x1", e.startPoint.x), t.attr("y1", e.startPoint.y), t.attr("x2", e.endPoint.x), t.attr("y2", e.endPoint.y), t.attr("stroke-width", "1"), t.attr("stroke", o), t.style("fill", "none"), e.type !== "rel_b" && t.attr("marker-end", "url(#" + r + "-arrowhead)"), (e.type === "birel" || e.type === "rel_b") && t.attr("marker-start", "url(#" + r + "-arrowend)"), a = -1;
@@ -2633,18 +2583,18 @@ var x = b, S = [], C = [""], w = "global", T = "", E = [{
2633
2583
  let t = i.append("path");
2634
2584
  t.attr("fill", "none").attr("stroke-width", "1").attr("stroke", o).attr("d", "Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx", e.startPoint.x).replaceAll("starty", e.startPoint.y).replaceAll("controlx", e.startPoint.x + (e.endPoint.x - e.startPoint.x) / 2 - (e.endPoint.x - e.startPoint.x) / 4).replaceAll("controly", e.startPoint.y + (e.endPoint.y - e.startPoint.y) / 2).replaceAll("stopx", e.endPoint.x).replaceAll("stopy", e.endPoint.y)), e.type !== "rel_b" && t.attr("marker-end", "url(#" + r + "-arrowhead)"), (e.type === "birel" || e.type === "rel_b") && t.attr("marker-start", "url(#" + r + "-arrowend)");
2635
2585
  }
2636
- let u = n.messageFont();
2637
- Y(n)(e.label.text, i, Math.min(e.startPoint.x, e.endPoint.x) + Math.abs(e.endPoint.x - e.startPoint.x) / 2 + s, Math.min(e.startPoint.y, e.endPoint.y) + Math.abs(e.endPoint.y - e.startPoint.y) / 2 + l, e.label.width, e.label.height, { fill: t }, u), e.techn && e.techn.text !== "" && (u = n.messageFont(), Y(n)("[" + e.techn.text + "]", i, Math.min(e.startPoint.x, e.endPoint.x) + Math.abs(e.endPoint.x - e.startPoint.x) / 2 + s, Math.min(e.startPoint.y, e.endPoint.y) + Math.abs(e.endPoint.y - e.startPoint.y) / 2 + n.messageFontSize + 5 + l, Math.max(e.label.width, e.techn.width), e.techn.height, {
2586
+ let u = e.label.width, d = n.messageFont();
2587
+ ye(n)(e.label.text, i, Math.min(e.startPoint.x, e.endPoint.x) + Math.abs(e.endPoint.x - e.startPoint.x) / 2 + s, Math.min(e.startPoint.y, e.endPoint.y) + Math.abs(e.endPoint.y - e.startPoint.y) / 2 + l, u, e.label.height, { fill: t }, d), e.techn && e.techn.text !== "" && (d = n.messageFont(), ye(n)("[" + e.techn.text + "]", i, Math.min(e.startPoint.x, e.endPoint.x) + Math.abs(e.endPoint.x - e.startPoint.x) / 2 + s, Math.min(e.startPoint.y, e.endPoint.y) + Math.abs(e.endPoint.y - e.startPoint.y) / 2 + n.messageFontSize + 5 + l, Math.max(u, e.techn.width), e.techn.height, {
2638
2588
  fill: t,
2639
2589
  "font-style": "italic"
2640
- }, u));
2590
+ }, d));
2641
2591
  }
2642
- }, "drawRels"), me = /* @__PURE__ */ t(function(e, t, n) {
2592
+ }, "drawRels"), de = /* @__PURE__ */ f(function(e, t, n) {
2643
2593
  let r = e.append("g"), i = t.bgColor ? t.bgColor : "none", a = t.borderColor ? t.borderColor : "#444444", o = t.fontColor ? t.fontColor : "black", s = {
2644
2594
  "stroke-width": 1,
2645
2595
  "stroke-dasharray": "7.0,7.0"
2646
2596
  };
2647
- t.nodeType && (s = { "stroke-width": 1 }), de(r, {
2597
+ t.nodeType && (s = { "stroke-width": 1 }), le(r, {
2648
2598
  x: t.x,
2649
2599
  y: t.y,
2650
2600
  fill: i,
@@ -2656,127 +2606,155 @@ var x = b, S = [], C = [""], w = "global", T = "", E = [{
2656
2606
  attrs: s
2657
2607
  });
2658
2608
  let l = n.boundaryFont();
2659
- l.fontWeight = "bold", l.fontSize += 2, l.fontColor = o, Y(n)(t.label.text, r, t.x, t.y + t.label.Y, t.width, t.height, { fill: "#444444" }, l), t.type && t.type.text !== "" && (l = n.boundaryFont(), l.fontColor = o, Y(n)(t.type.text, r, t.x, t.y + t.type.Y, t.width, t.height, { fill: "#444444" }, l)), t.descr && t.descr.text !== "" && (l = n.boundaryFont(), l.fontSize -= 2, l.fontColor = o, Y(n)(t.descr.text, r, t.x, t.y + t.descr.Y, t.width, t.height, { fill: "#444444" }, l));
2660
- }, "drawBoundary"), he = /* @__PURE__ */ t(function(e, t, n) {
2661
- let r = t.bgColor ? t.bgColor : n[t.typeC4Shape.text + "_bg_color"], i = t.borderColor ? t.borderColor : n[t.typeC4Shape.text + "_border_color"], a = t.fontColor ? t.fontColor : "#FFFFFF", o = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";
2662
- switch (t.typeC4Shape.text) {
2663
- case "person":
2664
- o = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";
2665
- break;
2666
- case "external_person":
2667
- o = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAB6ElEQVR4Xu2YLY+EMBCG9+dWr0aj0Wg0Go1Go0+j8Xdv2uTCvv1gpt0ebHKPuhDaeW4605Z9mJvx4AdXUyTUdd08z+u6flmWZRnHsWkafk9DptAwDPu+f0eAYtu2PEaGWuj5fCIZrBAC2eLBAnRCsEkkxmeaJp7iDJ2QMDdHsLg8SxKFEJaAo8lAXnmuOFIhTMpxxKATebo4UiFknuNo4OniSIXQyRxEA3YsnjGCVEjVXD7yLUAqxBGUyPv/Y4W2beMgGuS7kVQIBycH0fD+oi5pezQETxdHKmQKGk1eQEYldK+jw5GxPfZ9z7Mk0Qnhf1W1m3w//EUn5BDmSZsbR44QQLBEqrBHqOrmSKaQAxdnLArCrxZcM7A7ZKs4ioRq8LFC+NpC3WCBJsvpVw5edm9iEXFuyNfxXAgSwfrFQ1c0iNda8AdejvUgnktOtJQQxmcfFzGglc5WVCj7oDgFqU18boeFSs52CUh8LE8BIVQDT1ABrB0HtgSEYlX5doJnCwv9TXocKCaKbnwhdDKPq4lf3SwU3HLq4V/+WYhHVMa/3b4IlfyikAduCkcBc7mQ3/z/Qq/cTuikhkzB12Ae/mcJC9U+Vo8Ej1gWAtgbeGgFsAMHr50BIWOLCbezvhpBFUdY6EJuJ/QDW0XoMX60zZ0AAAAASUVORK5CYII=";
2668
- break;
2669
- }
2670
- let s = e.append("g");
2671
- s.attr("class", "person-man");
2672
- let l = v();
2673
- switch (t.typeC4Shape.text) {
2674
- case "person":
2675
- case "external_person":
2676
- case "system":
2677
- case "external_system":
2678
- case "container":
2679
- case "external_container":
2680
- case "component":
2681
- case "external_component":
2682
- l.x = t.x, l.y = t.y, l.fill = r, l.width = t.width, l.height = t.height, l.stroke = i, l.rx = 2.5, l.ry = 2.5, l.attrs = { "stroke-width": .5 }, de(s, l);
2683
- break;
2684
- case "system_db":
2685
- case "external_system_db":
2686
- case "container_db":
2687
- case "external_container_db":
2688
- case "component_db":
2689
- case "external_component_db":
2690
- s.append("path").attr("fill", r).attr("stroke-width", "0.5").attr("stroke", i).attr("d", "Mstartx,startyc0,-10 half,-10 half,-10c0,0 half,0 half,10l0,heightc0,10 -half,10 -half,10c0,0 -half,0 -half,-10l0,-height".replaceAll("startx", t.x).replaceAll("starty", t.y).replaceAll("half", t.width / 2).replaceAll("height", t.height)), s.append("path").attr("fill", "none").attr("stroke-width", "0.5").attr("stroke", i).attr("d", "Mstartx,startyc0,10 half,10 half,10c0,0 half,0 half,-10".replaceAll("startx", t.x).replaceAll("starty", t.y).replaceAll("half", t.width / 2));
2691
- break;
2692
- case "system_queue":
2693
- case "external_system_queue":
2694
- case "container_queue":
2695
- case "external_container_queue":
2696
- case "component_queue":
2697
- case "external_component_queue":
2698
- s.append("path").attr("fill", r).attr("stroke-width", "0.5").attr("stroke", i).attr("d", "Mstartx,startylwidth,0c5,0 5,half 5,halfc0,0 0,half -5,halfl-width,0c-5,0 -5,-half -5,-halfc0,0 0,-half 5,-half".replaceAll("startx", t.x).replaceAll("starty", t.y).replaceAll("width", t.width).replaceAll("half", t.height / 2)), s.append("path").attr("fill", "none").attr("stroke-width", "0.5").attr("stroke", i).attr("d", "Mstartx,startyc-5,0 -5,half -5,halfc0,half 5,half 5,half".replaceAll("startx", t.x + t.width).replaceAll("starty", t.y).replaceAll("half", t.height / 2));
2699
- break;
2700
- }
2701
- let u = Ce(n, t.typeC4Shape.text);
2702
- switch (s.append("text").attr("fill", a).attr("font-family", u.fontFamily).attr("font-size", u.fontSize - 2).attr("font-style", "italic").attr("lengthAdjust", "spacing").attr("textLength", t.typeC4Shape.width).attr("x", t.x + t.width / 2 - t.typeC4Shape.width / 2).attr("y", t.y + t.typeC4Shape.Y).text("<<" + t.typeC4Shape.text + ">>"), t.typeC4Shape.text) {
2703
- case "person":
2704
- case "external_person":
2705
- fe(s, 48, 48, t.x + t.width / 2 - 24, t.y + t.image.Y, o);
2706
- break;
2707
- }
2708
- let d = n[t.typeC4Shape.text + "Font"]();
2709
- return d.fontWeight = "bold", d.fontSize += 2, d.fontColor = a, Y(n)(t.label.text, s, t.x, t.y + t.label.Y, t.width, t.height, { fill: a }, d), d = n[t.typeC4Shape.text + "Font"](), d.fontColor = a, t.techn && t.techn?.text !== "" ? Y(n)(t.techn.text, s, t.x, t.y + t.techn.Y, t.width, t.height, {
2710
- fill: a,
2711
- "font-style": "italic"
2712
- }, d) : t.type && t.type.text !== "" && Y(n)(t.type.text, s, t.x, t.y + t.type.Y, t.width, t.height, {
2713
- fill: a,
2714
- "font-style": "italic"
2715
- }, d), t.descr && t.descr.text !== "" && (d = n.personFont(), d.fontColor = a, Y(n)(t.descr.text, s, t.x, t.y + t.descr.Y, t.width, t.height, { fill: a }, d)), t.height;
2716
- }, "drawC4Shape"), ge = /* @__PURE__ */ t(function(e, t) {
2609
+ l.fontWeight = "bold", l.fontSize += 2, l.fontColor = o, ye(n)(t.label.text, r, t.x, t.y + t.label.Y, t.width, t.height, { fill: "#444444" }, l), t.type && t.type.text !== "" && (l = n.boundaryFont(), l.fontColor = o, ye(n)(t.type.text, r, t.x, t.y + t.type.Y, t.width, t.height, { fill: "#444444" }, l)), t.descr && t.descr.text !== "" && (l = n.boundaryFont(), l.fontSize -= 2, l.fontColor = o, ye(n)(t.descr.text, r, t.x, t.y + t.descr.Y, t.width, t.height, { fill: "#444444" }, l));
2610
+ }, "drawBoundary"), fe = /* @__PURE__ */ f(function(e, t) {
2717
2611
  e.append("defs").append("symbol").attr("id", t + "-database").attr("fill-rule", "evenodd").attr("clip-rule", "evenodd").append("path").attr("transform", "scale(.5)").attr("d", "M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z");
2718
- }, "insertDatabaseIcon"), _e = /* @__PURE__ */ t(function(e, t) {
2612
+ }, "insertDatabaseIcon"), pe = /* @__PURE__ */ f(function(e, t) {
2719
2613
  e.append("defs").append("symbol").attr("id", t + "-computer").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr("d", "M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z");
2720
- }, "insertComputerIcon"), ve = /* @__PURE__ */ t(function(e, t) {
2614
+ }, "insertComputerIcon"), me = /* @__PURE__ */ f(function(e, t) {
2721
2615
  e.append("defs").append("symbol").attr("id", t + "-clock").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr("d", "M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z");
2722
- }, "insertClockIcon"), ye = /* @__PURE__ */ t(function(e, t) {
2616
+ }, "insertClockIcon"), he = /* @__PURE__ */ f(function(e, t) {
2723
2617
  e.append("defs").append("marker").attr("id", t + "-arrowhead").attr("refX", 9).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 0 0 L 10 5 L 0 10 z");
2724
- }, "insertArrowHead"), be = /* @__PURE__ */ t(function(e, t) {
2618
+ }, "insertArrowHead"), ge = /* @__PURE__ */ f(function(e, t) {
2725
2619
  e.append("defs").append("marker").attr("id", t + "-arrowend").attr("refX", 1).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 10 0 L 0 5 L 10 10 z");
2726
- }, "insertArrowEnd"), xe = /* @__PURE__ */ t(function(e, t) {
2620
+ }, "insertArrowEnd"), _e = /* @__PURE__ */ f(function(e, t) {
2727
2621
  e.append("defs").append("marker").attr("id", t + "-filled-head").attr("refX", 18).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z");
2728
- }, "insertArrowFilledHead"), Se = /* @__PURE__ */ t(function(e, t) {
2622
+ }, "insertArrowFilledHead"), ve = /* @__PURE__ */ f(function(e, t) {
2729
2623
  let n = e.append("defs").append("marker").attr("id", t + "-crosshead").attr("markerWidth", 15).attr("markerHeight", 8).attr("orient", "auto").attr("refX", 16).attr("refY", 4);
2730
2624
  n.append("path").attr("fill", "black").attr("stroke", "#000000").style("stroke-dasharray", "0, 0").attr("stroke-width", "1px").attr("d", "M 9,2 V 6 L16,4 Z"), n.append("path").attr("fill", "none").attr("stroke", "#000000").style("stroke-dasharray", "0, 0").attr("stroke-width", "1px").attr("d", "M 0,1 L 6,7 M 6,1 L 0,7");
2731
- }, "insertArrowCrossHead"), Ce = /* @__PURE__ */ t((e, t) => ({
2732
- fontFamily: e[t + "FontFamily"],
2733
- fontSize: e[t + "FontSize"],
2734
- fontWeight: e[t + "FontWeight"]
2735
- }), "getC4ShapeFont"), Y = /* @__PURE__ */ (function() {
2736
- function e(e, t, n, r, a, o, s) {
2737
- i(t.append("text").attr("x", n + a / 2).attr("y", r + o / 2 + 5).style("text-anchor", "middle").text(e), s);
2625
+ }, "insertArrowCrossHead"), ye = /* @__PURE__ */ (function() {
2626
+ function e(e, t, n, i, a, o, s) {
2627
+ r(t.append("text").attr("x", n + a / 2).attr("y", i + o / 2 + 5).style("text-anchor", "middle").text(e), s);
2738
2628
  }
2739
- t(e, "byText");
2740
- function n(e, t, n, r, a, o, l, u) {
2741
- let { fontSize: d, fontFamily: f, fontWeight: p } = u, m = e.split(s.lineBreakRegex);
2629
+ f(e, "byText");
2630
+ function t(e, t, n, i, a, s, l, u) {
2631
+ let { fontSize: d, fontFamily: f, fontWeight: p } = u, m = e.split(o.lineBreakRegex);
2742
2632
  for (let e = 0; e < m.length; e++) {
2743
- let o = e * d - d * (m.length - 1) / 2, s = t.append("text").attr("x", n + a / 2).attr("y", r).style("text-anchor", "middle").attr("dominant-baseline", "middle").style("font-size", d).style("font-weight", p).style("font-family", f);
2744
- s.append("tspan").attr("dy", o).text(m[e]).attr("alignment-baseline", "mathematical"), i(s, l);
2633
+ let o = e * d - d * (m.length - 1) / 2, s = t.append("text").attr("x", n + a / 2).attr("y", i).style("text-anchor", "middle").attr("dominant-baseline", "middle").style("font-size", d).style("font-weight", p).style("font-family", f);
2634
+ s.append("tspan").attr("dy", o).text(m[e]).attr("alignment-baseline", "mathematical"), r(s, l);
2745
2635
  }
2746
2636
  }
2747
- t(n, "byTspan");
2748
- function r(e, t, r, a, o, s, l, u) {
2749
- let d = t.append("switch"), f = d.append("foreignObject").attr("x", r).attr("y", a).attr("width", o).attr("height", s).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
2750
- f.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(e), n(e, d, r, a, o, s, l, u), i(f, l);
2637
+ f(t, "byTspan");
2638
+ function n(e, n, i, a, o, s, l, u) {
2639
+ let d = n.append("switch"), f = d.append("foreignObject").attr("x", i).attr("y", a).attr("width", o).attr("height", s).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
2640
+ f.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(e), t(e, d, i, a, o, s, l, u), r(f, l);
2751
2641
  }
2752
- t(r, "byFo");
2753
- function i(e, t) {
2642
+ f(n, "byFo");
2643
+ function r(e, t) {
2754
2644
  for (let n in t) t.hasOwnProperty(n) && e.attr(n, t[n]);
2755
2645
  }
2756
- return t(i, "_setTextAttrs"), function(t) {
2757
- return t.textPlacement === "fo" ? r : t.textPlacement === "old" ? e : n;
2646
+ return f(r, "_setTextAttrs"), function(r) {
2647
+ return r.textPlacement === "fo" ? n : r.textPlacement === "old" ? e : t;
2758
2648
  };
2759
- })(), X = {
2760
- drawRect: de,
2761
- drawBoundary: me,
2762
- drawC4Shape: he,
2763
- drawRels: pe,
2764
- drawImage: fe,
2765
- insertArrowHead: ye,
2766
- insertArrowEnd: be,
2767
- insertArrowFilledHead: xe,
2768
- insertArrowCrossHead: Se,
2769
- insertDatabaseIcon: ge,
2770
- insertComputerIcon: _e,
2771
- insertClockIcon: ve
2772
- }, we = 0, Te = 0, Ee = 4, De = 2;
2773
- b.yy = ue;
2774
- var Z = {}, Oe = class {
2649
+ })(), Q = {
2650
+ drawRect: le,
2651
+ drawBoundary: de,
2652
+ drawRels: ue,
2653
+ insertArrowHead: he,
2654
+ insertArrowEnd: ge,
2655
+ insertArrowFilledHead: _e,
2656
+ insertArrowCrossHead: ve,
2657
+ insertDatabaseIcon: fe,
2658
+ insertComputerIcon: pe,
2659
+ insertClockIcon: me
2660
+ }, be = /* @__PURE__ */ f((e, n) => {
2661
+ if (n === "sandbox") {
2662
+ let n = t("#i" + e).node()?.contentDocument;
2663
+ if (!n) throw Error(`Sandbox iframe #i${e} is missing its content document`);
2664
+ return {
2665
+ root: t(n.body),
2666
+ doc: n
2667
+ };
2668
+ }
2669
+ return {
2670
+ root: t("body"),
2671
+ doc: document
2672
+ };
2673
+ }, "getDiagramRoot"), xe = /* @__PURE__ */ new Set([
2674
+ "system_queue",
2675
+ "external_system_queue",
2676
+ "container_queue",
2677
+ "external_container_queue",
2678
+ "component_queue",
2679
+ "external_component_queue"
2680
+ ]), Se = /* @__PURE__ */ new Set([
2681
+ "system_db",
2682
+ "external_system_db",
2683
+ "container_db",
2684
+ "external_container_db",
2685
+ "component_db",
2686
+ "external_component_db"
2687
+ ]), Ce = {
2688
+ person: "person",
2689
+ box: "rounded",
2690
+ rounded: "rounded",
2691
+ cylinder: "cylinder",
2692
+ database: "cylinder",
2693
+ db: "cylinder",
2694
+ queue: "h-cyl",
2695
+ pipe: "h-cyl",
2696
+ component: "fr-rect"
2697
+ }, we = /* @__PURE__ */ f((e) => e ? Ce[e.toLowerCase()] : void 0, "keywordShape"), Te = /* @__PURE__ */ f((e) => {
2698
+ let t = we(e.shape) ?? we(e.sprite);
2699
+ if (t) return t;
2700
+ if (e.tags) for (let t of e.tags.split(",")) {
2701
+ let e = we(t.trim());
2702
+ if (e) return e;
2703
+ }
2704
+ let n = e.typeC4Shape.text;
2705
+ return n === "person" || n === "external_person" ? "person" : Se.has(n) ? "cylinder" : xe.has(n) ? "h-cyl" : "rounded";
2706
+ }, "resolveNodeShape"), Ee = {
2707
+ person: "Person",
2708
+ system: "Software System",
2709
+ container: "Container",
2710
+ component: "Component"
2711
+ }, De = /* @__PURE__ */ f((e) => {
2712
+ let t = e.replace(/^external_/, "").replace(/_(db|queue)$/, "");
2713
+ return Ee[t] ?? t.replace(/_/g, " ");
2714
+ }, "stereotypeLabel"), Oe = /* @__PURE__ */ f((e) => e.startsWith("external_"), "isExternal"), ke = /* @__PURE__ */ f((e) => {
2715
+ let t = De(e.typeC4Shape.text);
2716
+ return e.techn?.text ? `[${t}: ${e.techn.text}]` : `[${t}]`;
2717
+ }, "stereotypeText"), Ae = [
2718
+ "person",
2719
+ "system",
2720
+ "system_db",
2721
+ "system_queue",
2722
+ "container",
2723
+ "container_db",
2724
+ "container_queue",
2725
+ "component",
2726
+ "component_db",
2727
+ "component_queue"
2728
+ ].flatMap((e) => [e, `external_${e}`]), je = new Set(Ae), Me = /* @__PURE__ */ f((e) => je.has(e), "isC4ElementType"), Ne = /* @__PURE__ */ f((e, t) => {
2729
+ let n = e.typeC4Shape.text, r = e.bgColor ?? (Me(n) && t[`${n}_bg_color`]), i = e.borderColor ?? (Me(n) && t[`${n}_border_color`]), a = [];
2730
+ return r && a.push(`fill:${r}`), i && a.push(`stroke:${i}`), a.push(`color:${e.fontColor ?? "#FFFFFF"}`), a;
2731
+ }, "elementCssStyles"), Pe = /* @__PURE__ */ f((e, t, n, r, i) => {
2732
+ let a = e.typeC4Shape.text, o = ["c4-shape", `c4-${a}`];
2733
+ Oe(a) && o.push("c4-external");
2734
+ let s = Te(e), l = Ne(e, t);
2735
+ return (s === "rounded" || s === "fr-rect") && l.push("rx:12px", "ry:12px"), {
2736
+ id: e.alias,
2737
+ label: e.label.text,
2738
+ stereotype: ke(e),
2739
+ description: e.descr?.text ? [e.descr.text] : void 0,
2740
+ labelType: "string",
2741
+ isGroup: !1,
2742
+ shape: s,
2743
+ cssClasses: o.join(" "),
2744
+ cssStyles: l,
2745
+ padding: n,
2746
+ look: r,
2747
+ useHtmlLabels: !1,
2748
+ width: i
2749
+ };
2750
+ }, "buildC4Node"), Fe = 0, Ie = 0, Le = 4, Re = 2;
2751
+ v.yy = ce;
2752
+ var $ = {}, ze = class {
2775
2753
  static {
2776
- t(this, "Bounds");
2754
+ f(this, "Bounds");
2777
2755
  }
2778
2756
  constructor(e) {
2779
- this.name = "", this.data = {}, this.data.startx = void 0, this.data.stopx = void 0, this.data.starty = void 0, this.data.stopy = void 0, this.data.widthLimit = void 0, this.nextData = {}, this.nextData.startx = void 0, this.nextData.stopx = void 0, this.nextData.starty = void 0, this.nextData.stopy = void 0, this.nextData.cnt = 0, ke(e.db.getConfig());
2757
+ this.name = "", this.data = {}, this.data.startx = void 0, this.data.stopx = void 0, this.data.starty = void 0, this.data.stopy = void 0, this.data.widthLimit = void 0, this.nextData = {}, this.nextData.startx = void 0, this.nextData.stopx = void 0, this.nextData.starty = void 0, this.nextData.stopy = void 0, this.nextData.cnt = 0, Be(e.db.getConfig());
2780
2758
  }
2781
2759
  setData(e, t, n, r) {
2782
2760
  this.nextData.startx = this.data.startx = e, this.nextData.stopx = this.data.stopx = t, this.nextData.starty = this.data.starty = n, this.nextData.stopy = this.data.stopy = r;
@@ -2786,8 +2764,8 @@ var Z = {}, Oe = class {
2786
2764
  }
2787
2765
  insert(e) {
2788
2766
  this.nextData.cnt = this.nextData.cnt + 1;
2789
- let t = this.nextData.startx === this.nextData.stopx ? this.nextData.stopx + e.margin : this.nextData.stopx + e.margin * 2, n = t + e.width, r = this.nextData.starty + e.margin * 2, i = r + e.height;
2790
- (t >= this.data.widthLimit || n >= this.data.widthLimit || this.nextData.cnt > Ee) && (t = this.nextData.startx + e.margin + Z.nextLinePaddingX, r = this.nextData.stopy + e.margin * 2, this.nextData.stopx = n = t + e.width, this.nextData.starty = this.nextData.stopy, this.nextData.stopy = i = r + e.height, this.nextData.cnt = 1), e.x = t, e.y = r, this.updateVal(this.data, "startx", t, Math.min), this.updateVal(this.data, "starty", r, Math.min), this.updateVal(this.data, "stopx", n, Math.max), this.updateVal(this.data, "stopy", i, Math.max), this.updateVal(this.nextData, "startx", t, Math.min), this.updateVal(this.nextData, "starty", r, Math.min), this.updateVal(this.nextData, "stopx", n, Math.max), this.updateVal(this.nextData, "stopy", i, Math.max);
2767
+ let t = this.nextData.stopx, n = this.data.widthLimit, r = this.nextData.startx === this.nextData.stopx ? t + e.margin : t + e.margin * 2, i = r + e.width, a = this.nextData.starty + e.margin * 2, o = a + e.height;
2768
+ (r >= n || i >= n || this.nextData.cnt > Le) && (r = this.nextData.startx + e.margin + $.nextLinePaddingX, a = this.nextData.stopy + e.margin * 2, this.nextData.stopx = i = r + e.width, this.nextData.starty = this.nextData.stopy, this.nextData.stopy = o = a + e.height, this.nextData.cnt = 1), e.x = r, e.y = a, this.updateVal(this.data, "startx", r, Math.min), this.updateVal(this.data, "starty", a, Math.min), this.updateVal(this.data, "stopx", i, Math.max), this.updateVal(this.data, "stopy", o, Math.max), this.updateVal(this.nextData, "startx", r, Math.min), this.updateVal(this.nextData, "starty", a, Math.min), this.updateVal(this.nextData, "stopx", i, Math.max), this.updateVal(this.nextData, "stopy", o, Math.max);
2791
2769
  }
2792
2770
  init(e) {
2793
2771
  this.name = "", this.data = {
@@ -2802,160 +2780,201 @@ var Z = {}, Oe = class {
2802
2780
  starty: void 0,
2803
2781
  stopy: void 0,
2804
2782
  cnt: 0
2805
- }, ke(e.db.getConfig());
2783
+ }, Be(e.db.getConfig());
2806
2784
  }
2807
2785
  bumpLastMargin(e) {
2808
2786
  this.data.stopx += e, this.data.stopy += e;
2809
2787
  }
2810
- }, ke = /* @__PURE__ */ t(function(e) {
2811
- o(Z, e), e.fontFamily && (Z.personFontFamily = Z.systemFontFamily = Z.messageFontFamily = e.fontFamily), e.fontSize && (Z.personFontSize = Z.systemFontSize = Z.messageFontSize = e.fontSize), e.fontWeight && (Z.personFontWeight = Z.systemFontWeight = Z.messageFontWeight = e.fontWeight);
2812
- }, "setConf"), Ae = /* @__PURE__ */ t((e, t) => ({
2813
- fontFamily: e[t + "FontFamily"],
2814
- fontSize: e[t + "FontSize"],
2815
- fontWeight: e[t + "FontWeight"]
2816
- }), "c4ShapeFont"), je = /* @__PURE__ */ t((e) => ({
2788
+ }, Be = /* @__PURE__ */ f(function(e) {
2789
+ a($, e), e?.fontFamily && ($.personFontFamily = $.systemFontFamily = $.messageFontFamily = e.fontFamily), e?.fontSize && ($.personFontSize = $.systemFontSize = $.messageFontSize = e.fontSize), e?.fontWeight && ($.personFontWeight = $.systemFontWeight = $.messageFontWeight = e.fontWeight);
2790
+ }, "setConf"), Ve = /* @__PURE__ */ f((e) => ({
2817
2791
  fontFamily: e.boundaryFontFamily,
2818
2792
  fontSize: e.boundaryFontSize,
2819
2793
  fontWeight: e.boundaryFontWeight
2820
- }), "boundaryFont"), Me = /* @__PURE__ */ t((e) => ({
2794
+ }), "boundaryFont"), He = /* @__PURE__ */ f((e) => ({
2821
2795
  fontFamily: e.messageFontFamily,
2822
2796
  fontSize: e.messageFontSize,
2823
2797
  fontWeight: e.messageFontWeight
2824
2798
  }), "messageFont");
2825
- function Q(e, t, n, r, i) {
2826
- if (!t[e].width) if (n) t[e].text = m(t[e].text, i, r), t[e].textLines = t[e].text.split(s.lineBreakRegex).length, t[e].width = i, t[e].height = h(t[e].text, r);
2799
+ function Ue(e, t, n, r, i) {
2800
+ let a = t[e];
2801
+ if (!a.width) if (n) a.text = p(a.text, i, r), a.textLines = a.text.split(o.lineBreakRegex).length, a.width = i, a.height = m(a.text, r);
2827
2802
  else {
2828
- let n = t[e].text.split(s.lineBreakRegex);
2829
- t[e].textLines = n.length;
2830
- let i = 0;
2831
- t[e].height = 0, t[e].width = 0;
2832
- for (let a of n) t[e].width = Math.max(g(a, r), t[e].width), i = h(a, r), t[e].height = t[e].height + i;
2803
+ let e = a.text.split(o.lineBreakRegex);
2804
+ a.textLines = e.length;
2805
+ let t = 0;
2806
+ a.height = 0, a.width = 0;
2807
+ for (let n of e) a.width = Math.max(h(n, r), a.width), t = m(n, r), a.height += t;
2833
2808
  }
2809
+ return a;
2834
2810
  }
2835
- t(Q, "calcC4ShapeTextWH");
2836
- var Ne = /* @__PURE__ */ t(function(e, t, n) {
2837
- t.x = n.data.startx, t.y = n.data.starty, t.width = n.data.stopx - n.data.startx, t.height = n.data.stopy - n.data.starty, t.label.y = Z.c4ShapeMargin - 35;
2838
- let r = t.wrap && Z.wrap, i = je(Z);
2839
- i.fontSize += 2, i.fontWeight = "bold", Q("label", t, r, i, g(t.label.text, i)), X.drawBoundary(e, t, Z);
2840
- }, "drawBoundary"), Pe = /* @__PURE__ */ t(function(e, t, n, r) {
2841
- let i = 0;
2842
- for (let a of r) {
2843
- i = 0;
2844
- let r = n[a], o = Ae(Z, r.typeC4Shape.text);
2845
- switch (o.fontSize -= 2, r.typeC4Shape.width = g("«" + r.typeC4Shape.text + "»", o), r.typeC4Shape.height = o.fontSize + 2, r.typeC4Shape.Y = Z.c4ShapePadding, i = r.typeC4Shape.Y + r.typeC4Shape.height - 4, r.image = {
2846
- width: 0,
2847
- height: 0,
2848
- Y: 0
2849
- }, r.typeC4Shape.text) {
2850
- case "person":
2851
- case "external_person":
2852
- r.image.width = 48, r.image.height = 48, r.image.Y = i, i = r.image.Y + r.image.height;
2853
- break;
2854
- }
2855
- r.sprite && (r.image.width = 48, r.image.height = 48, r.image.Y = i, i = r.image.Y + r.image.height);
2856
- let s = r.wrap && Z.wrap, l = Z.width - Z.c4ShapePadding * 2, u = Ae(Z, r.typeC4Shape.text);
2857
- u.fontSize += 2, u.fontWeight = "bold", Q("label", r, s, u, l), r.label.Y = i + 8, i = r.label.Y + r.label.height, r.type && r.type.text !== "" ? (r.type.text = "[" + r.type.text + "]", Q("type", r, s, Ae(Z, r.typeC4Shape.text), l), r.type.Y = i + 5, i = r.type.Y + r.type.height) : r.techn && r.techn.text !== "" && (r.techn.text = "[" + r.techn.text + "]", Q("techn", r, s, Ae(Z, r.techn.text), l), r.techn.Y = i + 5, i = r.techn.Y + r.techn.height);
2858
- let d = i, f = r.label.width;
2859
- r.descr && r.descr.text !== "" && (Q("descr", r, s, Ae(Z, r.typeC4Shape.text), l), r.descr.Y = i + 20, i = r.descr.Y + r.descr.height, f = Math.max(r.label.width, r.descr.width), d = i - r.descr.textLines * 5), f += Z.c4ShapePadding, r.width = Math.max(r.width || Z.width, f, Z.width), r.height = Math.max(r.height || Z.height, d, Z.height), r.margin = r.margin || Z.c4ShapeMargin, e.insert(r), X.drawC4Shape(t, r, Z);
2860
- }
2861
- e.bumpLastMargin(Z.c4ShapeMargin);
2862
- }, "drawC4ShapeArray"), $ = class {
2811
+ f(Ue, "calcC4ShapeTextWH");
2812
+ var We = /* @__PURE__ */ f(function(e, t, n) {
2813
+ let r = n.data.startx, i = n.data.starty;
2814
+ t.x = r, t.y = i, t.width = n.data.stopx - r, t.height = n.data.stopy - i, t.label.y = $.c4ShapeMargin - 35;
2815
+ let a = t.wrap && $.wrap, o = Ve($);
2816
+ o.fontSize += 2, o.fontWeight = "bold", Ue("label", t, a, o, h(t.label.text, o)), Q.drawBoundary(e, t, $);
2817
+ }, "drawBoundary"), Ge = /* @__PURE__ */ f(async function(e, t, n, r) {
2818
+ let i = l(), a = i.look ?? "classic", o = { config: i }, s = t.attr("id") ?? "", u = r.map((e) => n[Number(e)]), d = /* @__PURE__ */ f((e) => {
2819
+ let t = e.shape ? g[e.shape] : void 0;
2820
+ if (!t) throw Error(`C4: no shape handler for "${e.shape}"`);
2821
+ return t;
2822
+ }, "shapeHandlerFor");
2823
+ await Promise.all(u.map(async (e) => {
2824
+ let n = Pe(e, $, $.c4ShapePadding, a, $.width);
2825
+ n.domId = `${s}-${n.id}`;
2826
+ let r = await d(n)(t, n, o);
2827
+ e.width = n.width ?? $.width, e.height = n.height ?? $.height, e.margin = $.c4ShapeMargin, r.remove();
2828
+ }));
2829
+ for (let t of u) e.insert(t);
2830
+ await Promise.all(u.map(async (e) => {
2831
+ let n = Pe(e, $, $.c4ShapePadding, a, $.width);
2832
+ n.domId = `${s}-${n.id}`, n.x = e.x + e.width / 2, n.y = e.y + e.height / 2;
2833
+ let r = t.append("g").attr("transform", `translate(${e.x + e.width / 2}, ${e.y + e.height / 2})`);
2834
+ await d(n)(r, n, o), e.intersect = n.intersect;
2835
+ })), e.bumpLastMargin($.c4ShapeMargin);
2836
+ }, "drawC4ShapeArray"), Ke = class {
2863
2837
  static {
2864
- t(this, "Point");
2838
+ f(this, "Point");
2865
2839
  }
2866
2840
  constructor(e, t) {
2867
2841
  this.x = e, this.y = t;
2868
2842
  }
2869
- }, Fe = /* @__PURE__ */ t(function(e, t) {
2870
- let n = e.x, r = e.y, i = t.x, a = t.y, o = n + e.width / 2, s = r + e.height / 2, l = Math.abs(n - i), u = Math.abs(r - a), d = u / l, f = e.height / e.width, p = null;
2871
- return r == a && n < i ? p = new $(n + e.width, s) : r == a && n > i ? p = new $(n, s) : n == i && r < a ? p = new $(o, r + e.height) : n == i && r > a && (p = new $(o, r)), n > i && r < a ? p = f >= d ? new $(n, s + d * e.width / 2) : new $(o - l / u * e.height / 2, r + e.height) : n < i && r < a ? p = f >= d ? new $(n + e.width, s + d * e.width / 2) : new $(o + l / u * e.height / 2, r + e.height) : n < i && r > a ? p = f >= d ? new $(n + e.width, s - d * e.width / 2) : new $(o + e.height / 2 * l / u, r) : n > i && r > a && (p = f >= d ? new $(n, s - e.width / 2 * d) : new $(o - e.height / 2 * l / u, r)), p;
2872
- }, "getIntersectPoint"), Ie = /* @__PURE__ */ t(function(e, t) {
2843
+ }, qe = /* @__PURE__ */ f(function(e, t) {
2844
+ if (!e.intersect) throw Error(`C4 shape "${e.alias}" has no intersect function. Please report this to https://github.com/mermaid-js/mermaid/issues`);
2845
+ let { x: n, y: r } = e.intersect(t);
2846
+ return new Ke(n, r);
2847
+ }, "getIntersectPoint"), Je = /* @__PURE__ */ f(function(e, t) {
2873
2848
  let n = {
2874
2849
  x: 0,
2875
2850
  y: 0
2876
2851
  };
2877
2852
  n.x = t.x + t.width / 2, n.y = t.y + t.height / 2;
2878
- let r = Fe(e, n);
2853
+ let r = qe(e, n);
2879
2854
  return n.x = e.x + e.width / 2, n.y = e.y + e.height / 2, {
2880
2855
  startPoint: r,
2881
- endPoint: Fe(t, n)
2856
+ endPoint: qe(t, n)
2882
2857
  };
2883
- }, "getIntersectPoints"), Le = /* @__PURE__ */ t(function(e, t, n, r, i) {
2884
- let a = 0;
2858
+ }, "getIntersectPoints"), Ye = /* @__PURE__ */ f(function(e, t, n, r, i) {
2859
+ let a = r.db.getC4Type(), o = 0;
2885
2860
  for (let e of t) {
2886
- a += 1;
2887
- let t = e.wrap && Z.wrap, i = Me(Z);
2888
- r.db.getC4Type() === "C4Dynamic" && (e.label.text = a + ": " + e.label.text);
2889
- let o = g(e.label.text, i);
2890
- Q("label", e, t, i, o), e.techn && e.techn.text !== "" && (o = g(e.techn.text, i), Q("techn", e, t, i, o)), e.descr && e.descr.text !== "" && (o = g(e.descr.text, i), Q("descr", e, t, i, o));
2891
- let s = Ie(n(e.from), n(e.to));
2892
- e.startPoint = s.startPoint, e.endPoint = s.endPoint;
2861
+ o += 1;
2862
+ let t = e.wrap && $.wrap, r = He($);
2863
+ a === "C4Dynamic" && (e.label.text = o + ": " + e.label.text);
2864
+ let i = h(e.label.text, r);
2865
+ Ue("label", e, t, r, i), e.techn && e.techn.text !== "" && (i = h(e.techn.text, r), Ue("techn", e, t, r, i)), e.descr && e.descr.text !== "" && (i = h(e.descr.text, r), Ue("descr", e, t, r, i));
2866
+ let s = n(e.from), l = n(e.to);
2867
+ if (!s || !l) throw Error(`C4 rel "${e.from}" -> "${e.to}" references an unknown shape`);
2868
+ let u = Je(s, l);
2869
+ if (!u.startPoint || !u.endPoint) throw Error(`Could not calculate intersection points for rel "${e.from}" -> "${e.to}"`);
2870
+ e.startPoint = u.startPoint, e.endPoint = u.endPoint;
2893
2871
  }
2894
- X.drawRels(e, t, Z, i);
2872
+ Q.drawRels(e, t, $, i);
2895
2873
  }, "drawRels");
2896
- function Re(e, t, n, r, i) {
2897
- let a = new Oe(i);
2898
- a.data.widthLimit = n.data.widthLimit / Math.min(De, r.length);
2899
- for (let [o, s] of r.entries()) {
2874
+ async function Xe(e, t, n, r, i) {
2875
+ let a = i.db, o = new ze(i);
2876
+ o.data.widthLimit = n.data.widthLimit / Math.min(Re, r.length);
2877
+ for (let [s, l] of r.entries()) {
2900
2878
  let r = 0;
2901
- s.image = {
2879
+ l.image = {
2902
2880
  width: 0,
2903
2881
  height: 0,
2904
2882
  Y: 0
2905
- }, s.sprite && (s.image.width = 48, s.image.height = 48, s.image.Y = r, r = s.image.Y + s.image.height);
2906
- let l = s.wrap && Z.wrap, u = je(Z);
2907
- if (u.fontSize += 2, u.fontWeight = "bold", Q("label", s, l, u, a.data.widthLimit), s.label.Y = r + 8, r = s.label.Y + s.label.height, s.type && s.type.text !== "" && (s.type.text = "[" + s.type.text + "]", Q("type", s, l, je(Z), a.data.widthLimit), s.type.Y = r + 5, r = s.type.Y + s.type.height), s.descr && s.descr.text !== "") {
2908
- let e = je(Z);
2909
- e.fontSize -= 2, Q("descr", s, l, e, a.data.widthLimit), s.descr.Y = r + 20, r = s.descr.Y + s.descr.height;
2883
+ }, l.sprite && (l.image.width = 48, l.image.height = 48, l.image.Y = r, r = l.image.Y + l.image.height);
2884
+ let u = l.wrap && $.wrap, d = Ve($);
2885
+ d.fontSize += 2, d.fontWeight = "bold";
2886
+ let f = Ue("label", l, u, d, o.data.widthLimit);
2887
+ if (f.Y = r + 8, r = f.Y + f.height, l.type && l.type.text !== "") {
2888
+ l.type.text = "[" + l.type.text + "]";
2889
+ let e = Ue("type", l, u, Ve($), o.data.widthLimit);
2890
+ e.Y = r + 5, r = e.Y + e.height;
2891
+ }
2892
+ if (l.descr && l.descr.text !== "") {
2893
+ let e = Ve($);
2894
+ e.fontSize -= 2;
2895
+ let t = Ue("descr", l, u, e, o.data.widthLimit);
2896
+ t.Y = r + 20, r = t.Y + t.height;
2910
2897
  }
2911
- if (o == 0 || o % De === 0) {
2912
- let e = n.data.startx + Z.diagramMarginX, t = n.data.stopy + Z.diagramMarginY + r;
2913
- a.setData(e, e, t, t);
2898
+ if (s == 0 || s % Re === 0) {
2899
+ let e = n.data.startx + $.diagramMarginX, t = n.data.stopy + $.diagramMarginY + r;
2900
+ o.setData(e, e, t, t);
2914
2901
  } else {
2915
- let e = a.data.stopx === a.data.startx ? a.data.startx : a.data.stopx + Z.diagramMarginX, t = a.data.starty;
2916
- a.setData(e, e, t, t);
2902
+ let e = o.data.stopx === o.data.startx ? o.data.startx : o.data.stopx + $.diagramMarginX, t = o.data.starty;
2903
+ o.setData(e, e, t, t);
2917
2904
  }
2918
- a.name = s.alias;
2919
- let d = i.db.getC4ShapeArray(s.alias), f = i.db.getC4ShapeKeys(s.alias);
2920
- f.length > 0 && Pe(a, e, d, f), t = s.alias;
2921
- let p = i.db.getBoundaries(t);
2922
- p.length > 0 && Re(e, t, a, p, i), s.alias !== "global" && Ne(e, s, a), n.data.stopy = Math.max(a.data.stopy + Z.c4ShapeMargin, n.data.stopy), n.data.stopx = Math.max(a.data.stopx + Z.c4ShapeMargin, n.data.stopx), we = Math.max(we, n.data.stopx), Te = Math.max(Te, n.data.stopy);
2905
+ o.name = l.alias;
2906
+ let p = a.getC4ShapeArray(l.alias), m = a.getC4ShapeKeys(l.alias);
2907
+ m.length > 0 && await Ge(o, e, p, m), t = l.alias;
2908
+ let h = a.getBoundaries(t);
2909
+ h.length > 0 && await Xe(e, t, o, h, i), l.alias !== "global" && We(e, l, o), n.data.stopy = Math.max(o.data.stopy + $.c4ShapeMargin, n.data.stopy), n.data.stopx = Math.max(o.data.stopx + $.c4ShapeMargin, n.data.stopx), Fe = Math.max(Fe, n.data.stopx), Ie = Math.max(Ie, n.data.stopy);
2923
2910
  }
2924
2911
  }
2925
- t(Re, "drawInsideBoundary");
2926
- var ze = {
2927
- drawPersonOrSystemArray: Pe,
2928
- drawBoundary: Ne,
2929
- setConf: ke,
2930
- draw: /* @__PURE__ */ t(function(t, r, i, o) {
2931
- Z = u().c4;
2932
- let s = u().securityLevel, l;
2933
- s === "sandbox" && (l = n("#i" + r));
2934
- let d = n(s === "sandbox" ? l.nodes()[0].contentDocument.body : "body"), f = o.db;
2935
- o.db.setWrap(Z.wrap), Ee = f.getC4ShapeInRow(), De = f.getC4BoundaryInRow(), e.debug(`C:${JSON.stringify(Z, null, 2)}`);
2936
- let p = s === "sandbox" ? d.select(`[id="${r}"]`) : n(`[id="${r}"]`);
2937
- X.insertComputerIcon(p, r), X.insertDatabaseIcon(p, r), X.insertClockIcon(p, r);
2938
- let m = new Oe(o);
2939
- m.setData(Z.diagramMarginX, Z.diagramMarginX, Z.diagramMarginY, Z.diagramMarginY), m.data.widthLimit = screen.availWidth, we = Z.diagramMarginX, Te = Z.diagramMarginY;
2940
- let h = o.db.getTitle();
2941
- Re(p, "", m, o.db.getBoundaries(""), o), X.insertArrowHead(p, r), X.insertArrowEnd(p, r), X.insertArrowCrossHead(p, r), X.insertArrowFilledHead(p, r), Le(p, o.db.getRels(), o.db.getC4Shape, o, r), m.data.stopx = we, m.data.stopy = Te;
2942
- let g = m.data, _ = g.stopy - g.starty + 2 * Z.diagramMarginY, v = g.stopx - g.startx + 2 * Z.diagramMarginX;
2943
- h && p.append("text").text(h).attr("x", (g.stopx - g.startx) / 2 - 4 * Z.diagramMarginX).attr("y", g.starty + Z.diagramMarginY), a(p, _, v, Z.useMaxWidth);
2944
- let y = h ? 60 : 0;
2945
- p.attr("viewBox", g.startx - Z.diagramMarginX + " -" + (Z.diagramMarginY + y) + " " + v + " " + (_ + y)), e.debug("models:", g);
2912
+ f(Xe, "drawInsideBoundary");
2913
+ var Ze = {
2914
+ drawPersonOrSystemArray: Ge,
2915
+ drawBoundary: We,
2916
+ setConf: Be,
2917
+ draw: /* @__PURE__ */ f(async function(t, n, r, a) {
2918
+ $ = b("c4");
2919
+ let o = l().securityLevel, { root: s } = be(n, o), u = a.db;
2920
+ u.setWrap($.wrap), Le = u.getC4ShapeInRow(), Re = u.getC4BoundaryInRow(), e.debug(`C:${JSON.stringify($, null, 2)}`);
2921
+ let d = s.select(`[id="${n}"]`);
2922
+ Q.insertComputerIcon(d, n), Q.insertDatabaseIcon(d, n), Q.insertClockIcon(d, n);
2923
+ let f = new ze(a);
2924
+ f.setData($.diagramMarginX, $.diagramMarginX, $.diagramMarginY, $.diagramMarginY), f.data.widthLimit = screen.availWidth, Fe = $.diagramMarginX, Ie = $.diagramMarginY;
2925
+ let p = u.getTitle();
2926
+ await Xe(d, "", f, u.getBoundaries(""), a), Q.insertArrowHead(d, n), Q.insertArrowEnd(d, n), Q.insertArrowCrossHead(d, n), Q.insertArrowFilledHead(d, n), Ye(d, u.getRels(), u.getC4Shape, a, n), f.data.stopx = Fe, f.data.stopy = Ie;
2927
+ let m = f.data, h = m.startx, g = m.starty, _ = Ie - g + 2 * $.diagramMarginY, v = Fe - h, y = v + 2 * $.diagramMarginX;
2928
+ p && d.append("text").text(p).attr("x", v / 2 - 4 * $.diagramMarginX).attr("y", g + $.diagramMarginY), i(d, _, y, $.useMaxWidth);
2929
+ let x = p ? 60 : 0;
2930
+ d.attr("viewBox", h - $.diagramMarginX + " -" + ($.diagramMarginY + x) + " " + y + " " + (_ + x)), e.debug("models:", m);
2946
2931
  }, "draw")
2947
- }, Be = {
2948
- parser: x,
2949
- db: ue,
2950
- renderer: ze,
2951
- styles: /* @__PURE__ */ t((e) => `.person {
2932
+ }, Qe = /* @__PURE__ */ f(() => {
2933
+ let e = l().c4 ?? {}, t = new CSSStyleSheet();
2934
+ for (let n of Ae) {
2935
+ let r = t.cssRules[t.insertRule(`.c4-shape.c4-${n} .label {}`, t.cssRules.length)], i = e[`${n}FontFamily`], a = e[`${n}FontSize`], o = e[`${n}FontWeight`];
2936
+ i && r.style.setProperty("font-family", i), a && r.style.setProperty("font-size", typeof a == "number" ? `${a}px` : a), o && r.style.setProperty("font-weight", String(o));
2937
+ }
2938
+ return [...t.cssRules].filter((e) => e.style.length > 0).map((e) => ` ${e.cssText}`).join("\n");
2939
+ }, "elementFontStyles"), $e = {
2940
+ parser: y,
2941
+ db: ce,
2942
+ renderer: Ze,
2943
+ styles: /* @__PURE__ */ f((e) => `.person {
2952
2944
  stroke: ${e.personBorder};
2953
2945
  fill: ${e.personBkg};
2954
2946
  }
2947
+ ${Qe()}
2948
+
2949
+ /* The element font colour is set inline per element (default white); the
2950
+ label text takes it via currentColor. */
2951
+ .c4-shape .label,
2952
+ .c4-shape .label text {
2953
+ color: inherit;
2954
+ fill: currentColor;
2955
+ }
2956
+ /* Structurizr typography: bold name, smaller stereotype/type and description lines. */
2957
+ .c4-shape .label .c4-name {
2958
+ font-weight: bold;
2959
+ }
2960
+ .c4-shape .label .c4-type {
2961
+ font-size: 0.75em;
2962
+ }
2963
+ .c4-shape .label .c4-descr {
2964
+ font-size: 0.82em;
2965
+ }
2966
+ .c4-shape .basic,
2967
+ .c4-shape rect,
2968
+ .c4-shape path,
2969
+ .c4-shape circle,
2970
+ .c4-shape ellipse,
2971
+ .c4-shape line {
2972
+ stroke-width: 2px;
2973
+ }
2955
2974
  `, "getStyles"),
2956
- init: /* @__PURE__ */ t(({ c4: e, wrap: t }) => {
2957
- ze.setConf(e), ue.setWrap(t);
2975
+ init: /* @__PURE__ */ f(({ c4: e, wrap: t }) => {
2976
+ Ze.setConf(e), ce.setWrap(t);
2958
2977
  }, "init")
2959
2978
  };
2960
2979
  //#endregion
2961
- export { Be as diagram };
2980
+ export { $e as diagram };