@pi-outpost/embed 0.15.0 → 0.16.1

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/PdfViewer-BEdoeHbS.cjs +1 -0
  2. package/dist/{PdfViewer-BHP5lV-o.js → PdfViewer-DvoTT6jM.js} +5 -5
  3. package/dist/{abnfDiagram-N423BO3Z-WMOVzCba.js → abnfDiagram-VCTEODGH-CYuCmqs8.js} +6 -6
  4. package/dist/abnfDiagram-VCTEODGH-SjZtzoAs.cjs +1 -0
  5. package/dist/{arc-BBnpgwVQ.js → arc-CtDF59mU.js} +8 -6
  6. package/dist/arc-Dh2Zrypi.cjs +1 -0
  7. package/dist/architecture-7GRP2DOG-BtgYGXkq.cjs +1 -0
  8. package/dist/architecture-7GRP2DOG-DBQ9eYgM.js +3 -0
  9. package/dist/{architectureDiagram-T3A2C74G-BH-F8FzB.js → architectureDiagram-5GKGNRK7-D2-hmLgN.js} +327 -318
  10. package/dist/architectureDiagram-5GKGNRK7-wrDPdf3y.cjs +36 -0
  11. package/dist/blockDiagram-OSKFZWR5-Boo8WJyt.cjs +129 -0
  12. package/dist/blockDiagram-OSKFZWR5-Bvi4xQOy.js +1922 -0
  13. package/dist/{browser-CynjNfkw.js → browser-BmmG9yeb.js} +40 -34
  14. package/dist/{browser-CAyUayTx.cjs → browser-CUQnQIhV.cjs} +5 -5
  15. package/dist/c-AHDGPWiJ.cjs +1 -0
  16. package/dist/{c-Cw4FsAeJ.js → c-BCMbpktW.js} +42 -31
  17. package/dist/c4Diagram-7LVT6UL2-BCrC0RQo.cjs +38 -0
  18. package/dist/{c4Diagram-5PPSVZJV-Cfnl6tZM.js → c4Diagram-7LVT6UL2-CU4tNaf1.js} +751 -703
  19. package/dist/{channel-Bq-0ENlK.js → channel-Cuipqk56.js} +1 -1
  20. package/dist/channel-DcrLLvcO.cjs +1 -0
  21. package/dist/{chunk-JQJVKLGR-CZorbEP3.js → chunk-3NF5O7KM-B-2znsHr.js} +155 -115
  22. package/dist/chunk-3NF5O7KM-B-DpUW2r.cjs +168 -0
  23. package/dist/chunk-4HAMMTFA-CtkrBT7X.cjs +62 -0
  24. package/dist/chunk-4HAMMTFA-dRm_HqMI.js +4188 -0
  25. package/dist/chunk-75Z2AOVW-DOXS9ORa.cjs +2 -0
  26. package/dist/{chunk-NSK5VX7P-DPxIxDdV.js → chunk-75Z2AOVW-Eg_bFxBJ.js} +60 -96
  27. package/dist/chunk-DU6HZSFF-3Hhp3Fo5.cjs +127 -0
  28. package/dist/{chunk-I66GZJ75-DexfhZwA.js → chunk-DU6HZSFF-CaHy-FdL.js} +527 -478
  29. package/dist/{chunk-2GRJ4B5K-DzaxUd3W.cjs → chunk-F27PBJKO-3UPgzIlN.cjs} +1 -1
  30. package/dist/{chunk-2GRJ4B5K-DXwE-yr5.js → chunk-F27PBJKO-BriqLvNp.js} +4 -4
  31. package/dist/{chunk-KEIR6QF5-BVnxrdHo.js → chunk-FOHPRMQF-BNNbqxGX.js} +424 -356
  32. package/dist/chunk-FOHPRMQF-tmTlwTeH.cjs +161 -0
  33. package/dist/chunk-GMAD6QVW-B6uvB_wz.cjs +72 -0
  34. package/dist/{chunk-WRU74C26-D4huAZcy.js → chunk-GMAD6QVW-DCCx2Rg1.js} +503 -267
  35. package/dist/chunk-GVQU2GXP-BRMv2gX3.js +37 -0
  36. package/dist/chunk-GVQU2GXP-iZT_vNLp.cjs +1 -0
  37. package/dist/{chunk-GF5L2VYU-BPBMCCz5.js → chunk-HLEWEB6X-DlG0X171.js} +16 -16
  38. package/dist/{chunk-GF5L2VYU-DgG-wovM.cjs → chunk-HLEWEB6X-aqFoPl02.cjs} +4 -4
  39. package/dist/chunk-L3NEJ4N5-DkoFQHrz.js +245 -0
  40. package/dist/chunk-L3NEJ4N5-vW3qRjIb.cjs +1 -0
  41. package/dist/{chunk-7Z6QIM7H-CIoK8R3m.js → chunk-OSK3NFVY-CxjvZYNR.js} +232 -150
  42. package/dist/chunk-OSK3NFVY-DU2FGOlI.cjs +10 -0
  43. package/dist/chunk-P2QGCYS3-DWeL9spl.cjs +1 -0
  44. package/dist/{chunk-W5SLKNZC-Djmw_p6f.js → chunk-P2QGCYS3-uCJfSNHC.js} +19 -19
  45. package/dist/{chunk-KBJHAD2P-CthZVYG5.cjs → chunk-POPQ4Y6H-BRQPB1-9.cjs} +1 -1
  46. package/dist/{chunk-KBJHAD2P-BlQyFndF.js → chunk-POPQ4Y6H-D2Z11lA3.js} +3 -3
  47. package/dist/{chunk-4I5QYGJK-LCSWSJfh.cjs → chunk-PWAF6VOD-CZZKCekP.cjs} +1 -1
  48. package/dist/{chunk-4I5QYGJK-JZmvuONC.js → chunk-PWAF6VOD-j4sFqhOF.js} +7 -9
  49. package/dist/{chunk-6Q2QTUOP-C5n08EA-.cjs → chunk-SVP7TREG-CTKSOFlx.cjs} +2 -2
  50. package/dist/{chunk-6Q2QTUOP-DvJxCxMM.js → chunk-SVP7TREG-CtJsmAIb.js} +4 -4
  51. package/dist/{chunk-XXDRQBXY-DsVp5qjg.js → chunk-XXDRQBXY-fOrVUHLI.js} +1 -1
  52. package/dist/{chunk-XXDRQBXY-gWcN0uCZ.cjs → chunk-XXDRQBXY-yMT3rT5Y.cjs} +1 -1
  53. package/dist/chunk-ZLD2IHE6-BZxKwfuv.cjs +231 -0
  54. package/dist/{chunk-5RXB4S5H-JthGygoA.js → chunk-ZLD2IHE6-tqumZV0E.js} +44 -48
  55. package/dist/classDiagram-CYGNFDIV-CQLOfBmz.cjs +1 -0
  56. package/dist/classDiagram-CYGNFDIV-DIu4rTyR.js +30 -0
  57. package/dist/classDiagram-v2-TLXNO2FR-BsYK4QnI.js +30 -0
  58. package/dist/classDiagram-v2-TLXNO2FR-CQLOfBmz.cjs +1 -0
  59. package/dist/{core-BO2hTFeF.js → core-B9pe29T7.js} +8 -7
  60. package/dist/core-BrupIPpc.cjs +3 -0
  61. package/dist/{cose-bilkent-JH36ORCC-BFo5zomD.js → cose-bilkent-JH36ORCC-1Ad4jvll.js} +65 -62
  62. package/dist/cose-bilkent-JH36ORCC-Cc2qvpLA.cjs +1 -0
  63. package/dist/{cpp-CeyO6lBG.js → cpp-CL2nTisp.js} +25 -14
  64. package/dist/cpp-DpAsh4uT.cjs +1 -0
  65. package/dist/{csharp-Ck6Fet_o.js → csharp-CK75iOSn.js} +37 -37
  66. package/dist/csharp-TOr_W-v9.cjs +1 -0
  67. package/dist/css-4wogsuks.cjs +1 -0
  68. package/dist/{css-ClSGJRju.js → css-DJr8nnnu.js} +6 -1
  69. package/dist/cynefin-OW5HDTMX-BmLJra-4.cjs +1 -0
  70. package/dist/cynefin-OW5HDTMX-CfYr_cVN.js +3 -0
  71. package/dist/{cynefinDiagram-MW4NZA55-CB4ZzMEN.js → cynefinDiagram-5FMLGOSQ-BSRTnQvp.js} +29 -23
  72. package/dist/cynefinDiagram-5FMLGOSQ-GvGZco52.cjs +62 -0
  73. package/dist/{cytoscape.esm-asYnbYTy.js → cytoscape.esm-Cq7KPj0t.js} +2480 -2480
  74. package/dist/cytoscape.esm-uHsEX1XI.cjs +321 -0
  75. package/dist/{dagre-BpqwxFKp.js → dagre-BMKbPnPh.js} +689 -456
  76. package/dist/dagre-EEW2OxRU.cjs +1 -0
  77. package/dist/dagre-OS7QT2EB-DFi6nnZc.cjs +4 -0
  78. package/dist/dagre-OS7QT2EB-DcpSzxsR.js +425 -0
  79. package/dist/{defaultLocale-up9-vqhM.js → defaultLocale-B4ncmkvI.js} +1 -4
  80. package/dist/defaultLocale-ybN1Vtvg.cjs +1 -0
  81. package/dist/diagram-S7CK7UJ4-BA67ZpiO.cjs +30 -0
  82. package/dist/{diagram-7IWD3JNH-Cschro8T.js → diagram-S7CK7UJ4-Cx2fQdp6.js} +39 -38
  83. package/dist/{diagram-UB23O5K3-D-yL2fvd.js → diagram-UQ7AKVKN-CvQH-Box.js} +12 -12
  84. package/dist/diagram-UQ7AKVKN-OteiyKD9.cjs +41 -0
  85. package/dist/{diagram-B4RE2ZJO-DKbKOwkP.cjs → diagram-VSXAHHWV-BjsZz1JJ.cjs} +1 -1
  86. package/dist/{diagram-B4RE2ZJO-B94mhDmV.js → diagram-VSXAHHWV-CCpCVOIq.js} +6 -6
  87. package/dist/diagram-VX7I27RA-Bx9fEhR0.cjs +24 -0
  88. package/dist/{diagram-Q27KOJAE-Cqn3IliP.js → diagram-VX7I27RA-HE5nQAXN.js} +64 -62
  89. package/dist/{diagram-LBJQPF4R-D0MEwBt6.js → diagram-Z3DM3KII-BEu4c4pP.js} +11 -11
  90. package/dist/diagram-Z3DM3KII-jy895UiZ.cjs +24 -0
  91. package/dist/{dist-D6LMt8nW.js → dist-Dtt9eY41.js} +1 -1
  92. package/dist/{dist-DNGlMOWd.cjs → dist-Dwv2VYAL.cjs} +1 -1
  93. package/dist/{ebnfDiagram-BXEA7PRR-B2HDWFYF.js → ebnfDiagram-PWID7BFC-B06rGL3A.js} +6 -6
  94. package/dist/ebnfDiagram-PWID7BFC-BQZKHpUr.cjs +1 -0
  95. package/dist/erDiagram-2YWLMYGG-CuEEIv1I.cjs +99 -0
  96. package/dist/{erDiagram-JOGREHBK-Badv_hu8.js → erDiagram-2YWLMYGG-IL4IhNXb.js} +1046 -807
  97. package/dist/eventmodeling-NTZA5JFV-D57pc07U.cjs +1 -0
  98. package/dist/eventmodeling-NTZA5JFV-DUbGOrrF.js +3 -0
  99. package/dist/flowDiagram-T62WH6J4-DdJo3Te1.js +16 -0
  100. package/dist/flowDiagram-T62WH6J4-YyzE7N5Z.cjs +1 -0
  101. package/dist/{ganttDiagram-PKOTCBZU-By0w7TmO.js → ganttDiagram-EL5Y4UJY-CIBhrOW6.js} +26 -36
  102. package/dist/ganttDiagram-EL5Y4UJY-PTWIufq8.cjs +292 -0
  103. package/dist/gitGraph-4MIJSDKK-CY4IuhXZ.js +3 -0
  104. package/dist/gitGraph-4MIJSDKK-D97vaDci.cjs +1 -0
  105. package/dist/{gitGraphDiagram-DS77QQ5N-B1uJYchG.js → gitGraphDiagram-WWUBYQGX-CjeedV4i.js} +16 -12
  106. package/dist/{gitGraphDiagram-DS77QQ5N-Fw8a66di.cjs → gitGraphDiagram-WWUBYQGX-D5yozoaq.cjs} +3 -3
  107. package/dist/{go-rg7jg1mu.js → go-B2E3I9E3.js} +4 -0
  108. package/dist/{go-D-pz-dmd.cjs → go-BDkypVKn.cjs} +1 -1
  109. package/dist/{graphlib-CkkG5MuS.cjs → graphlib-BaETKKSa.cjs} +1 -1
  110. package/dist/{graphlib-B0GbLif1.js → graphlib-CQa_B3rm.js} +5 -5
  111. package/dist/info-A6RAGUB7-Cx39sHYM.js +3 -0
  112. package/dist/info-A6RAGUB7-DT06-FB3.cjs +1 -0
  113. package/dist/{infoDiagram-6WML65LV-CkWm_KTB.js → infoDiagram-FKFFQAWI-BalzsRT4.js} +6 -6
  114. package/dist/infoDiagram-FKFFQAWI-NPtQF4vB.cjs +2 -0
  115. package/dist/init-BJdqMO10.cjs +1 -0
  116. package/dist/{init-CirqLVcp.js → init-CuXVI8k2.js} +1 -3
  117. package/dist/{ishikawaDiagram-WSZJBQD7-DTeFqC8L.js → ishikawaDiagram-5VMMS53U-BC2vrJSo.js} +14 -14
  118. package/dist/{ishikawaDiagram-WSZJBQD7-CQWHhozU.cjs → ishikawaDiagram-5VMMS53U-DN23jmFw.cjs} +3 -3
  119. package/dist/java-DFBMvIUR.cjs +1 -0
  120. package/dist/{java-HguKEfA2.js → java-T8Nr25pJ.js} +27 -22
  121. package/dist/{javascript-C8NCH8DE.js → javascript-CIP6I0eT.js} +6 -4
  122. package/dist/javascript-Gn0piXHk.cjs +1 -0
  123. package/dist/{journeyDiagram-NVQOT4AX-Cg6C3dFy.js → journeyDiagram-EYS64GPL-CLMBONXO.js} +14 -14
  124. package/dist/{journeyDiagram-NVQOT4AX-DLomv_vN.cjs → journeyDiagram-EYS64GPL-Co9rp-Q1.cjs} +3 -3
  125. package/dist/json-DOqjN5nI.js +42 -0
  126. package/dist/json-LMrXTXZM.cjs +1 -0
  127. package/dist/{kanban-definition-27J2QSJJ-B9Fog3W7.cjs → kanban-definition-UXKFOSKX-DzKPVjAq.cjs} +5 -5
  128. package/dist/{kanban-definition-27J2QSJJ-Bb7nb0gX.js → kanban-definition-UXKFOSKX-SNTHZo65.js} +31 -31
  129. package/dist/katex-CEF6MvLx.cjs +257 -0
  130. package/dist/katex-ohtLbxXc.js +21977 -0
  131. package/dist/{line-yqcJYv29.js → line-4_dF7rOW.js} +2 -2
  132. package/dist/{line-pOZ7Sdj7.cjs → line-D6gR53Af.cjs} +1 -1
  133. package/dist/{linear-CVhyaVzf.js → linear-C1gZJMVz.js} +8 -9
  134. package/dist/linear-Nt9BuHfn.cjs +1 -0
  135. package/dist/{markdown-CzgRofaE.js → markdown-BW-hB0s4.js} +2 -5
  136. package/dist/markdown-CTkHoGys.cjs +1 -0
  137. package/dist/{mermaid-parser.core-Cgsz0CdK.cjs → mermaid-parser.core-CBiDgMLi.cjs} +2 -2
  138. package/dist/{mermaid-parser.core-B8DQcCaz.js → mermaid-parser.core-DLNlSmfj.js} +31 -31
  139. package/dist/mermaid.core-B3QcBB1O.cjs +43 -0
  140. package/dist/mermaid.core-BIqYA7q2.js +3012 -0
  141. package/dist/{mindmap-definition-FAOFIHXS-9wa1P9NT.cjs → mindmap-definition-THT77NOG-Bo3D8RRT.cjs} +4 -4
  142. package/dist/{mindmap-definition-FAOFIHXS-DFG0Zs_1.js → mindmap-definition-THT77NOG-BtDuvAQ_.js} +27 -29
  143. package/dist/{ordinal-D0iNZ43g.cjs → ordinal-Bm_chml2.cjs} +1 -1
  144. package/dist/{ordinal-C1oQzsBn.js → ordinal-D3SPD7Kk.js} +2 -2
  145. package/dist/packet-AYTQ26CC-BGX2McoE.cjs +1 -0
  146. package/dist/packet-AYTQ26CC-IgkU2VYK.js +3 -0
  147. package/dist/path-DIS6ck99.cjs +1 -0
  148. package/dist/{path-mKa7UESy.js → path-PGqhG0Rz.js} +10 -11
  149. package/dist/{pdf-DyDm1M1B.js → pdf-B6zVkETi.js} +182 -220
  150. package/dist/pdf-cYqATYeW.cjs +54 -0
  151. package/dist/pegDiagram-XKGWAZYB-Cx-wZf4B.cjs +1 -0
  152. package/dist/{pegDiagram-VL7TDLO6-XOjprD-j.js → pegDiagram-XKGWAZYB-Ucd8o52_.js} +6 -6
  153. package/dist/{php-C9FOMGEA.js → php-Cn7gPoxt.js} +6 -0
  154. package/dist/{php-j6EhDZDE.cjs → php-DQmdBizx.cjs} +1 -1
  155. package/dist/pi-outpost-embed.cjs +62 -62
  156. package/dist/pi-outpost-embed.js +5192 -5152
  157. package/dist/pie-WAS4IAKB-CEyPj3UJ.cjs +1 -0
  158. package/dist/pie-WAS4IAKB-odE0A7fM.js +3 -0
  159. package/dist/pieDiagram-E7YTZNPT-BC-pW4cK.cjs +39 -0
  160. package/dist/{pieDiagram-7S7Q4E2Y-Cwe7fXgJ.js → pieDiagram-E7YTZNPT-DSx5wFMY.js} +20 -22
  161. package/dist/{python-DKAazMIE.js → python-BUfdXZqP.js} +6 -6
  162. package/dist/python-CrsffQw-.cjs +1 -0
  163. package/dist/{quadrantDiagram-CIZ2JOQS-CbaMHmYB.js → quadrantDiagram-AXDQQJYC-D8Y50xmh.js} +11 -11
  164. package/dist/{quadrantDiagram-CIZ2JOQS-CDfrU0dm.cjs → quadrantDiagram-AXDQQJYC-zPfqM9Q4.cjs} +2 -2
  165. package/dist/radar-RG4KPBEZ-ClYJNseM.cjs +1 -0
  166. package/dist/radar-RG4KPBEZ-DqbNqlJH.js +3 -0
  167. package/dist/railroad-74A4TZTK-Dzt4afqg.js +3 -0
  168. package/dist/railroad-74A4TZTK-hSKcr2y6.cjs +1 -0
  169. package/dist/railroad-abnf-HS5TGJTU-gq2RybTO.js +3 -0
  170. package/dist/railroad-abnf-HS5TGJTU-irEXz0eI.cjs +1 -0
  171. package/dist/railroad-ebnf-LZEXJU2U-CG19A1Xj.cjs +1 -0
  172. package/dist/railroad-ebnf-LZEXJU2U-D-pNpFrj.js +3 -0
  173. package/dist/railroad-peg-WCYAUIDC-BLdK3QCV.cjs +1 -0
  174. package/dist/railroad-peg-WCYAUIDC-Bo7wfe--.js +3 -0
  175. package/dist/railroadDiagram-O6MQD6OU-3JsgWyLe.cjs +1 -0
  176. package/dist/{railroadDiagram-AXF67PYL-CVXAv-Uu.js → railroadDiagram-O6MQD6OU-BTg2KtZO.js} +6 -6
  177. package/dist/{requirementDiagram-LRYGKXZP-Bzik4kgS.js → requirementDiagram-IS5BZ75X-C1OrS7DV.js} +25 -24
  178. package/dist/{requirementDiagram-LRYGKXZP-BGlGCftH.cjs → requirementDiagram-IS5BZ75X-D1BMLxZg.cjs} +4 -4
  179. package/dist/{rolldown-runtime-Dqa2HsxW.js → rolldown-runtime-B0aSnxlc.js} +2 -2
  180. package/dist/{rolldown-runtime-mLOUI7ql.cjs → rolldown-runtime-DF3sbh8G.cjs} +1 -1
  181. package/dist/{rough.esm-r0QOSzHM.cjs → rough.esm-ChRLLRha.cjs} +1 -1
  182. package/dist/{rough.esm-C5XyeDCN.js → rough.esm-D2JJJ0Ot.js} +60 -51
  183. package/dist/{ruby-ClR4zp-1.cjs → ruby-B1inj-Q8.cjs} +1 -1
  184. package/dist/{ruby-BAUeZQKZ.js → ruby-DYVKXPXk.js} +1 -1
  185. package/dist/{rust-DiTjMjP5.js → rust-BihXqTNi.js} +38 -25
  186. package/dist/rust-D39kF6re.cjs +1 -0
  187. package/dist/{sankeyDiagram-W5VNT64P-OeLUMuT6.cjs → sankeyDiagram-P5KCCOFB-D5BHxcxB.cjs} +2 -2
  188. package/dist/{sankeyDiagram-W5VNT64P-_8xZpo45.js → sankeyDiagram-P5KCCOFB-DTnkE4oO.js} +17 -15
  189. package/dist/{scss-CckAvQOx.js → scss-CzfrZ5cc.js} +6 -1
  190. package/dist/scss-t-vKjRr4.cjs +1 -0
  191. package/dist/{sequenceDiagram-SI44F4Z6-X4mzY21C.js → sequenceDiagram-WJ2MYXX4-Ba-z2rSx.js} +36 -48
  192. package/dist/sequenceDiagram-WJ2MYXX4-DlVJIIIl.cjs +162 -0
  193. package/dist/{sizeCapture-X5ZJPWSS-DKbHZNyz.js → sizeCapture-INFHLROL-B5Lg3qGn.js} +1 -1
  194. package/dist/{src-DJ4x3y2O.js → src-BMMAFeC3.js} +288 -291
  195. package/dist/src-D9o9TOtH.cjs +1 -0
  196. package/dist/{stateDiagram-OKZ733FA-CMM1orC_.js → stateDiagram-XQSTLZYL-BtcUS_dg.js} +21 -21
  197. package/dist/stateDiagram-XQSTLZYL-mSOJx_Wv.cjs +1 -0
  198. package/dist/stateDiagram-v2-IH3M54BS-DAa6SuH4.cjs +1 -0
  199. package/dist/stateDiagram-v2-IH3M54BS-E_Rhduzm.js +30 -0
  200. package/dist/swimlanes-V6O3JKXN-BooYLGtP.cjs +1 -0
  201. package/dist/{swimlanes-SLNWSIFB-C7LLK1V2.js → swimlanes-V6O3JKXN-xxlpXv1f.js} +1022 -1109
  202. package/dist/swimlanesDiagram-JKAHXJPX-BaMCBEUQ.cjs +8 -0
  203. package/dist/swimlanesDiagram-JKAHXJPX-DyQwD-QO.js +30 -0
  204. package/dist/timeline-definition-24CTP7MA-D6sSmprF.cjs +120 -0
  205. package/dist/{timeline-definition-Z64GVDOM-Cgc-2OmU.js → timeline-definition-24CTP7MA-Dr8ouzBO.js} +19 -19
  206. package/dist/treeView-Q6P3EWNA-BmkQxkVU.cjs +1 -0
  207. package/dist/treeView-Q6P3EWNA-CPEEGmNv.js +3 -0
  208. package/dist/treemap-WGGIJYW6-CGULpntJ.js +3 -0
  209. package/dist/treemap-WGGIJYW6-Dmi9HAR8.cjs +1 -0
  210. package/dist/typescript-BarIi8q9.cjs +1 -0
  211. package/dist/{typescript-mdYq8uqf.js → typescript-C93MG6Zk.js} +26 -24
  212. package/dist/vennDiagram-4TSXK5OY-D5MMYyff.cjs +34 -0
  213. package/dist/{vennDiagram-T6HMQDX7-BWj1BhMh.js → vennDiagram-4TSXK5OY-i6B1rhUA.js} +15 -15
  214. package/dist/wardley-WFR3VGLG-9zHZLKh9.js +3 -0
  215. package/dist/wardley-WFR3VGLG-B6YvLPJA.cjs +1 -0
  216. package/dist/{wardleyDiagram-T6FBY63Y-d_t4oVLE.js → wardleyDiagram-VM6X3IG4-1SFyFcXg.js} +46 -46
  217. package/dist/{wardleyDiagram-T6FBY63Y-OomvVIFj.cjs → wardleyDiagram-VM6X3IG4-DzZNzmB8.cjs} +36 -36
  218. package/dist/{workspacePath-BScUv3M_.js → workspacePath-CfDl0V4n.js} +1 -1
  219. package/dist/{workspacePath-kqTwbSP1.cjs → workspacePath-EgAFT36l.cjs} +1 -1
  220. package/dist/{xml-BamqaQOf.cjs → xml-B0vjUBag.cjs} +1 -1
  221. package/dist/{xml-DVYfB8uY.js → xml-GxASmsT7.js} +2 -6
  222. package/dist/{xychartDiagram-ELKLHX3M-BOSOdubI.cjs → xychartDiagram-S5SC5T6Z-BOsjfYJh.cjs} +4 -4
  223. package/dist/{xychartDiagram-ELKLHX3M-Ce-ai3a8.js → xychartDiagram-S5SC5T6Z-D6QDBBGJ.js} +263 -158
  224. package/dist/{yaml-_1BORZTQ.js → yaml-CHhF1kKQ.js} +25 -25
  225. package/dist/yaml-DZS9gzaB.cjs +1 -0
  226. package/package.json +2 -2
  227. package/dist/PdfViewer-BBmVq73v.cjs +0 -1
  228. package/dist/abnfDiagram-N423BO3Z-DOZfbvMH.cjs +0 -1
  229. package/dist/arc-DcUn9_NX.cjs +0 -1
  230. package/dist/architecture-TIHT7OUA-D-35jO9Y.cjs +0 -1
  231. package/dist/architecture-TIHT7OUA-DDyMqjR1.js +0 -3
  232. package/dist/architectureDiagram-T3A2C74G-RJUsi-Sx.cjs +0 -36
  233. package/dist/blockDiagram-VBNYF7ZC-Bz8oqXJQ.cjs +0 -132
  234. package/dist/blockDiagram-VBNYF7ZC-DYMmF9bV.js +0 -3160
  235. package/dist/c-4QgYfi8K.cjs +0 -1
  236. package/dist/c4Diagram-5PPSVZJV-DM6x-BYG.cjs +0 -10
  237. package/dist/channel-DoxF0tZj.cjs +0 -1
  238. package/dist/chunk-3NCLNEKW-CO28EZBG.cjs +0 -1
  239. package/dist/chunk-3NCLNEKW-dTH67Ne_.js +0 -10
  240. package/dist/chunk-5RXB4S5H-B5b3tdRl.cjs +0 -231
  241. package/dist/chunk-7BUUIJ7U-BFUeQBoS.js +0 -82
  242. package/dist/chunk-7BUUIJ7U-MzS1pW_S.cjs +0 -1
  243. package/dist/chunk-7Z6QIM7H-Ctljl7Vq.cjs +0 -10
  244. package/dist/chunk-I66GZJ75-CrpH-Rmq.cjs +0 -127
  245. package/dist/chunk-J7OUQ5F2-DhMpZbAr.js +0 -57
  246. package/dist/chunk-J7OUQ5F2-b-MfW4O9.cjs +0 -1
  247. package/dist/chunk-JQJVKLGR-2AQwaWbm.cjs +0 -156
  248. package/dist/chunk-KEIR6QF5-Cy_QBNG6.cjs +0 -161
  249. package/dist/chunk-NSK5VX7P-D5CepZHI.cjs +0 -2
  250. package/dist/chunk-QR6OTTB3-CQ_jjYb-.js +0 -3736
  251. package/dist/chunk-QR6OTTB3-DSg3ZWNW.cjs +0 -62
  252. package/dist/chunk-RYQCIY6F-27FDzaaE.cjs +0 -1
  253. package/dist/chunk-RYQCIY6F-C-YC3QS_.js +0 -239
  254. package/dist/chunk-UBXNYLIW-BBncokef.js +0 -32
  255. package/dist/chunk-UBXNYLIW-DlNyCWjj.cjs +0 -1
  256. package/dist/chunk-W5SLKNZC-bHBkM2CL.cjs +0 -1
  257. package/dist/chunk-WRU74C26-9KZxhHnn.cjs +0 -70
  258. package/dist/chunk-ZIRB5QZD-BU6XQUGC.cjs +0 -32
  259. package/dist/chunk-ZIRB5QZD-Cj-y77rH.js +0 -1146
  260. package/dist/classDiagram-JCYQIIEL-DeHc-x8i.cjs +0 -1
  261. package/dist/classDiagram-JCYQIIEL-DlHKjVPc.js +0 -30
  262. package/dist/classDiagram-v2-OCEON4UE-DeHc-x8i.cjs +0 -1
  263. package/dist/classDiagram-v2-OCEON4UE-DlhHN57j.js +0 -30
  264. package/dist/core-2nR1zkKb.cjs +0 -3
  265. package/dist/cose-bilkent-JH36ORCC-AyWV1dUo.cjs +0 -1
  266. package/dist/cpp-BUtp-HE2.cjs +0 -1
  267. package/dist/csharp-BJu4kEpt.cjs +0 -1
  268. package/dist/css-DeFr0lev.cjs +0 -1
  269. package/dist/cynefin-VYW2F7L2-DHhUPDgc.cjs +0 -1
  270. package/dist/cynefin-VYW2F7L2-DwiVqvhg.js +0 -3
  271. package/dist/cynefinDiagram-MW4NZA55-By102s5I.cjs +0 -62
  272. package/dist/cytoscape.esm-ByjvpCPI.cjs +0 -321
  273. package/dist/dagre-BBlCxSvR.cjs +0 -1
  274. package/dist/dagre-VZM6K2ZE-5zrH2LqV.js +0 -328
  275. package/dist/dagre-VZM6K2ZE-CNe7-jhy.cjs +0 -4
  276. package/dist/defaultLocale-u9yUoUmE.cjs +0 -1
  277. package/dist/diagram-7IWD3JNH-CSzLXhRw.cjs +0 -30
  278. package/dist/diagram-LBJQPF4R-DgD0a56I.cjs +0 -24
  279. package/dist/diagram-Q27KOJAE-DNWfiaD5.cjs +0 -24
  280. package/dist/diagram-UB23O5K3-DguyM6v_.cjs +0 -41
  281. package/dist/ebnfDiagram-BXEA7PRR-DuJrkFn-.cjs +0 -1
  282. package/dist/erDiagram-JOGREHBK-DtyaQROs.cjs +0 -85
  283. package/dist/eventmodeling-45OFAUF4-COTtdYDJ.js +0 -3
  284. package/dist/eventmodeling-45OFAUF4-CPEyr9kU.cjs +0 -1
  285. package/dist/flowDiagram-UKHOOZJN-C7t5VpYH.js +0 -17
  286. package/dist/flowDiagram-UKHOOZJN-CdkElxh8.cjs +0 -1
  287. package/dist/ganttDiagram-PKOTCBZU-CFgz4r57.cjs +0 -292
  288. package/dist/gitGraph-TEB2WS4Q-C3qBT0GM.js +0 -3
  289. package/dist/gitGraph-TEB2WS4Q-a8KsoPmR.cjs +0 -1
  290. package/dist/info-DKCQHKI2-BEYhR6ip.cjs +0 -1
  291. package/dist/info-DKCQHKI2-BPF6-pOb.js +0 -3
  292. package/dist/infoDiagram-6WML65LV-CB6z_iKE.cjs +0 -2
  293. package/dist/init-07zIhv_j.cjs +0 -1
  294. package/dist/java-CUN_usaq.cjs +0 -1
  295. package/dist/javascript-UZXSyUuu.cjs +0 -1
  296. package/dist/json-Cp01TR_B.js +0 -36
  297. package/dist/json-usH_MUzR.cjs +0 -1
  298. package/dist/linear-Cl2-QuPP.cjs +0 -1
  299. package/dist/map-CwPlMWPw.cjs +0 -1
  300. package/dist/map-DU12fF3s.js +0 -241
  301. package/dist/markdown-qeo95R0i.cjs +0 -1
  302. package/dist/mermaid.core-BIq27e0A.js +0 -1068
  303. package/dist/mermaid.core-DpsSj3iy.cjs +0 -10
  304. package/dist/packet-7NZHBO7P-DqvBYJTR.js +0 -3
  305. package/dist/packet-7NZHBO7P-Dz0O2bgq.cjs +0 -1
  306. package/dist/path-Kklx0M1v.cjs +0 -1
  307. package/dist/pdf-aU0TN69t.cjs +0 -54
  308. package/dist/pegDiagram-VL7TDLO6-B4FslsmM.cjs +0 -1
  309. package/dist/pie-RZYD4A2V-Hi9UdoE3.cjs +0 -1
  310. package/dist/pie-RZYD4A2V-qnruo9sH.js +0 -3
  311. package/dist/pieDiagram-7S7Q4E2Y-CNzUVS2d.cjs +0 -39
  312. package/dist/python-BYJzTRkK.cjs +0 -1
  313. package/dist/radar-I7S5WNFK-Dqdssa34.cjs +0 -1
  314. package/dist/radar-I7S5WNFK-np_pJCO-.js +0 -3
  315. package/dist/railroad-3IZDKUUU-NILjDQft.cjs +0 -1
  316. package/dist/railroad-3IZDKUUU-sjKBeXxB.js +0 -3
  317. package/dist/railroad-abnf-AHOZXSZD-BojH9sxV.cjs +0 -1
  318. package/dist/railroad-abnf-AHOZXSZD-x5cC_e_R.js +0 -3
  319. package/dist/railroad-ebnf-EBAXGLYW-2mlWpz38.js +0 -3
  320. package/dist/railroad-ebnf-EBAXGLYW-BKCSut1M.cjs +0 -1
  321. package/dist/railroad-peg-LSFZ7HO6-CsH-gnsp.cjs +0 -1
  322. package/dist/railroad-peg-LSFZ7HO6-D5vguo03.js +0 -3
  323. package/dist/railroadDiagram-AXF67PYL-EO1cBHEj.cjs +0 -1
  324. package/dist/rust-ghVvEWhm.cjs +0 -1
  325. package/dist/scss-CKxh5HRg.cjs +0 -1
  326. package/dist/sequenceDiagram-SI44F4Z6-CuaCFBtR.cjs +0 -162
  327. package/dist/src-CR--T_NF.cjs +0 -1
  328. package/dist/stateDiagram-OKZ733FA-Dq6hI_pq.cjs +0 -1
  329. package/dist/stateDiagram-v2-UEYNNEHI-BmWUstzl.js +0 -30
  330. package/dist/stateDiagram-v2-UEYNNEHI-DZULVhS9.cjs +0 -1
  331. package/dist/swimlanes-SLNWSIFB-BMS6R0BK.cjs +0 -1
  332. package/dist/swimlanesDiagram-ULZ7WXOC-DxHKX_pj.cjs +0 -8
  333. package/dist/swimlanesDiagram-ULZ7WXOC-uXMuqsao.js +0 -31
  334. package/dist/timeline-definition-Z64GVDOM-PPJqDdOy.cjs +0 -120
  335. package/dist/treeView-QDETBFTQ-Cpg_YeQ4.cjs +0 -1
  336. package/dist/treeView-QDETBFTQ-DdpEhzZX.js +0 -3
  337. package/dist/treemap-6X3UGDF4-BeCuRpkA.js +0 -3
  338. package/dist/treemap-6X3UGDF4-CFAmnKaf.cjs +0 -1
  339. package/dist/typescript-clWeqIBY.cjs +0 -1
  340. package/dist/vennDiagram-T6HMQDX7-DqY7YgNx.cjs +0 -34
  341. package/dist/wardley-OPB4EBWU-B0jnKd8x.cjs +0 -1
  342. package/dist/wardley-OPB4EBWU-DlIk2K0J.js +0 -3
  343. package/dist/yaml-bAgWofBg.cjs +0 -1
  344. /package/dist/{sizeCapture-X5ZJPWSS-bJ2ZX4Du.cjs → sizeCapture-INFHLROL-bJ2ZX4Du.cjs} +0 -0
@@ -1,15 +1,18 @@
1
1
  import { n as e } from "./chunk-Y2CYZVJY-CwsV_8W4.js";
2
- import { m as t, p as n } from "./src-DJ4x3y2O.js";
3
- 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-I66GZJ75-DexfhZwA.js";
4
- import { t as p } from "./dist-D6LMt8nW.js";
5
- import { _ as m, n as h, r as g } from "./chunk-NSK5VX7P-DPxIxDdV.js";
6
- import { a as _, s as v } from "./chunk-2GRJ4B5K-DXwE-yr5.js";
7
- //#region ../node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-5PPSVZJV.mjs
8
- var y = p(), b = (function() {
2
+ import { m as t, p as n } from "./src-BMMAFeC3.js";
3
+ 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-DU6HZSFF-CaHy-FdL.js";
4
+ import { _ as p, n as m, r as h } from "./chunk-75Z2AOVW-Eg_bFxBJ.js";
5
+ import "./chunk-PWAF6VOD-j4sFqhOF.js";
6
+ import "./chunk-GMAD6QVW-DCCx2Rg1.js";
7
+ import "./chunk-P2QGCYS3-uCJfSNHC.js";
8
+ import { o as g } from "./chunk-4HAMMTFA-dRm_HqMI.js";
9
+ import { a as _ } from "./chunk-F27PBJKO-BriqLvNp.js";
10
+ //#region ../node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-7LVT6UL2.mjs
11
+ var v = (function() {
9
12
  var t = /* @__PURE__ */ e(function(e, t, n, r) {
10
13
  for (n ||= {}, r = e.length; r--; n[e[r]] = t);
11
14
  return n;
12
- }, "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"), 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], U = [1, 58], W = [1, 59], G = [1, 60], ee = [14, 42], te = [
13
16
  14,
14
17
  34,
15
18
  36,
@@ -50,7 +53,7 @@ var y = p(), b = (function() {
50
53
  72,
51
54
  73,
52
55
  74
53
- ], ae = [
56
+ ], ne = [
54
57
  12,
55
58
  14,
56
59
  34,
@@ -92,16 +95,16 @@ var y = p(), b = (function() {
92
95
  72,
93
96
  73,
94
97
  74
95
- ], 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 = [
96
99
  12,
97
100
  14,
98
101
  42
99
- ], oe = [
102
+ ], re = [
100
103
  12,
101
104
  14,
102
105
  33,
103
106
  42
104
- ], se = [
107
+ ], ie = [
105
108
  12,
106
109
  14,
107
110
  33,
@@ -110,7 +113,7 @@ var y = p(), b = (function() {
110
113
  77,
111
114
  79,
112
115
  80
113
- ], ce = [12, 33], le = [
116
+ ], ae = [12, 33], oe = [
114
117
  34,
115
118
  36,
116
119
  37,
@@ -149,7 +152,7 @@ var y = p(), b = (function() {
149
152
  72,
150
153
  73,
151
154
  74
152
- ], J = {
155
+ ], se = {
153
156
  trace: /* @__PURE__ */ e(function() {}, "trace"),
154
157
  yy: {},
155
158
  symbols_: {
@@ -546,9 +549,7 @@ var y = p(), b = (function() {
546
549
  let e = {};
547
550
  e[a[s - 1].trim()] = a[s].trim(), this.$ = e;
548
551
  break;
549
- case 76:
550
- this.$ = "";
551
- break;
552
+ case 76: this.$ = "";
552
553
  }
553
554
  }, "anonymous"),
554
555
  table: [
@@ -629,9 +630,9 @@ var y = p(), b = (function() {
629
630
  69: B,
630
631
  70: V,
631
632
  71: H,
632
- 72: ee,
633
- 73: te,
634
- 74: ne
633
+ 72: U,
634
+ 73: W,
635
+ 74: G
635
636
  },
636
637
  {
637
638
  13: 70,
@@ -682,9 +683,9 @@ var y = p(), b = (function() {
682
683
  69: B,
683
684
  70: V,
684
685
  71: H,
685
- 72: ee,
686
- 73: te,
687
- 74: ne
686
+ 72: U,
687
+ 73: W,
688
+ 74: G
688
689
  },
689
690
  {
690
691
  13: 71,
@@ -735,9 +736,9 @@ var y = p(), b = (function() {
735
736
  69: B,
736
737
  70: V,
737
738
  71: H,
738
- 72: ee,
739
- 73: te,
740
- 74: ne
739
+ 72: U,
740
+ 73: W,
741
+ 74: G
741
742
  },
742
743
  {
743
744
  13: 72,
@@ -788,9 +789,9 @@ var y = p(), b = (function() {
788
789
  69: B,
789
790
  70: V,
790
791
  71: H,
791
- 72: ee,
792
- 73: te,
793
- 74: ne
792
+ 72: U,
793
+ 73: W,
794
+ 74: G
794
795
  },
795
796
  {
796
797
  13: 73,
@@ -841,12 +842,12 @@ var y = p(), b = (function() {
841
842
  69: B,
842
843
  70: V,
843
844
  71: H,
844
- 72: ee,
845
- 73: te,
846
- 74: ne
845
+ 72: U,
846
+ 73: W,
847
+ 74: G
847
848
  },
848
849
  { 14: [1, 74] },
849
- t(re, [2, 13], {
850
+ t(ee, [2, 13], {
850
851
  43: 23,
851
852
  29: 49,
852
853
  30: 61,
@@ -887,266 +888,266 @@ var y = p(), b = (function() {
887
888
  69: B,
888
889
  70: V,
889
890
  71: H,
890
- 72: ee,
891
- 73: te,
892
- 74: ne
891
+ 72: U,
892
+ 73: W,
893
+ 74: G
893
894
  }),
894
- t(re, [2, 14]),
895
- t(ie, [2, 16], { 12: [1, 76] }),
896
- t(re, [2, 36], { 12: [1, 77] }),
897
- t(ae, [2, 19]),
898
- t(ae, [2, 20]),
895
+ t(ee, [2, 14]),
896
+ t(te, [2, 16], { 12: [1, 76] }),
897
+ t(ee, [2, 36], { 12: [1, 77] }),
898
+ t(ne, [2, 19]),
899
+ t(ne, [2, 20]),
899
900
  { 25: [1, 78] },
900
901
  { 27: [1, 79] },
901
- t(ae, [2, 23]),
902
+ t(ne, [2, 23]),
902
903
  {
903
904
  35: 80,
904
905
  75: 81,
905
- 76: U,
906
- 77: W,
907
- 79: G,
908
- 80: K
906
+ 76: K,
907
+ 77: q,
908
+ 79: J,
909
+ 80: Y
909
910
  },
910
911
  {
911
912
  35: 86,
912
913
  75: 81,
913
- 76: U,
914
- 77: W,
915
- 79: G,
916
- 80: K
914
+ 76: K,
915
+ 77: q,
916
+ 79: J,
917
+ 80: Y
917
918
  },
918
919
  {
919
920
  35: 87,
920
921
  75: 81,
921
- 76: U,
922
- 77: W,
923
- 79: G,
924
- 80: K
922
+ 76: K,
923
+ 77: q,
924
+ 79: J,
925
+ 80: Y
925
926
  },
926
927
  {
927
928
  35: 88,
928
929
  75: 81,
929
- 76: U,
930
- 77: W,
931
- 79: G,
932
- 80: K
930
+ 76: K,
931
+ 77: q,
932
+ 79: J,
933
+ 80: Y
933
934
  },
934
935
  {
935
936
  35: 89,
936
937
  75: 81,
937
- 76: U,
938
- 77: W,
939
- 79: G,
940
- 80: K
938
+ 76: K,
939
+ 77: q,
940
+ 79: J,
941
+ 80: Y
941
942
  },
942
943
  {
943
944
  35: 90,
944
945
  75: 81,
945
- 76: U,
946
- 77: W,
947
- 79: G,
948
- 80: K
946
+ 76: K,
947
+ 77: q,
948
+ 79: J,
949
+ 80: Y
949
950
  },
950
951
  {
951
952
  35: 91,
952
953
  75: 81,
953
- 76: U,
954
- 77: W,
955
- 79: G,
956
- 80: K
954
+ 76: K,
955
+ 77: q,
956
+ 79: J,
957
+ 80: Y
957
958
  },
958
959
  {
959
960
  35: 92,
960
961
  75: 81,
961
- 76: U,
962
- 77: W,
963
- 79: G,
964
- 80: K
962
+ 76: K,
963
+ 77: q,
964
+ 79: J,
965
+ 80: Y
965
966
  },
966
967
  {
967
968
  35: 93,
968
969
  75: 81,
969
- 76: U,
970
- 77: W,
971
- 79: G,
972
- 80: K
970
+ 76: K,
971
+ 77: q,
972
+ 79: J,
973
+ 80: Y
973
974
  },
974
975
  {
975
976
  35: 94,
976
977
  75: 81,
977
- 76: U,
978
- 77: W,
979
- 79: G,
980
- 80: K
978
+ 76: K,
979
+ 77: q,
980
+ 79: J,
981
+ 80: Y
981
982
  },
982
983
  {
983
984
  35: 95,
984
985
  75: 81,
985
- 76: U,
986
- 77: W,
987
- 79: G,
988
- 80: K
986
+ 76: K,
987
+ 77: q,
988
+ 79: J,
989
+ 80: Y
989
990
  },
990
991
  {
991
992
  35: 96,
992
993
  75: 81,
993
- 76: U,
994
- 77: W,
995
- 79: G,
996
- 80: K
994
+ 76: K,
995
+ 77: q,
996
+ 79: J,
997
+ 80: Y
997
998
  },
998
999
  {
999
1000
  35: 97,
1000
1001
  75: 81,
1001
- 76: U,
1002
- 77: W,
1003
- 79: G,
1004
- 80: K
1002
+ 76: K,
1003
+ 77: q,
1004
+ 79: J,
1005
+ 80: Y
1005
1006
  },
1006
1007
  {
1007
1008
  35: 98,
1008
1009
  75: 81,
1009
- 76: U,
1010
- 77: W,
1011
- 79: G,
1012
- 80: K
1010
+ 76: K,
1011
+ 77: q,
1012
+ 79: J,
1013
+ 80: Y
1013
1014
  },
1014
1015
  {
1015
1016
  35: 99,
1016
1017
  75: 81,
1017
- 76: U,
1018
- 77: W,
1019
- 79: G,
1020
- 80: K
1018
+ 76: K,
1019
+ 77: q,
1020
+ 79: J,
1021
+ 80: Y
1021
1022
  },
1022
1023
  {
1023
1024
  35: 100,
1024
1025
  75: 81,
1025
- 76: U,
1026
- 77: W,
1027
- 79: G,
1028
- 80: K
1026
+ 76: K,
1027
+ 77: q,
1028
+ 79: J,
1029
+ 80: Y
1029
1030
  },
1030
1031
  {
1031
1032
  35: 101,
1032
1033
  75: 81,
1033
- 76: U,
1034
- 77: W,
1035
- 79: G,
1036
- 80: K
1034
+ 76: K,
1035
+ 77: q,
1036
+ 79: J,
1037
+ 80: Y
1037
1038
  },
1038
1039
  {
1039
1040
  35: 102,
1040
1041
  75: 81,
1041
- 76: U,
1042
- 77: W,
1043
- 79: G,
1044
- 80: K
1042
+ 76: K,
1043
+ 77: q,
1044
+ 79: J,
1045
+ 80: Y
1045
1046
  },
1046
1047
  {
1047
1048
  35: 103,
1048
1049
  75: 81,
1049
- 76: U,
1050
- 77: W,
1051
- 79: G,
1052
- 80: K
1050
+ 76: K,
1051
+ 77: q,
1052
+ 79: J,
1053
+ 80: Y
1053
1054
  },
1054
1055
  {
1055
1056
  35: 104,
1056
1057
  75: 81,
1057
- 76: U,
1058
- 77: W,
1059
- 79: G,
1060
- 80: K
1058
+ 76: K,
1059
+ 77: q,
1060
+ 79: J,
1061
+ 80: Y
1061
1062
  },
1062
- t(q, [2, 59]),
1063
+ t(X, [2, 59]),
1063
1064
  {
1064
1065
  35: 105,
1065
1066
  75: 81,
1066
- 76: U,
1067
- 77: W,
1068
- 79: G,
1069
- 80: K
1067
+ 76: K,
1068
+ 77: q,
1069
+ 79: J,
1070
+ 80: Y
1070
1071
  },
1071
1072
  {
1072
1073
  35: 106,
1073
1074
  75: 81,
1074
- 76: U,
1075
- 77: W,
1076
- 79: G,
1077
- 80: K
1075
+ 76: K,
1076
+ 77: q,
1077
+ 79: J,
1078
+ 80: Y
1078
1079
  },
1079
1080
  {
1080
1081
  35: 107,
1081
1082
  75: 81,
1082
- 76: U,
1083
- 77: W,
1084
- 79: G,
1085
- 80: K
1083
+ 76: K,
1084
+ 77: q,
1085
+ 79: J,
1086
+ 80: Y
1086
1087
  },
1087
1088
  {
1088
1089
  35: 108,
1089
1090
  75: 81,
1090
- 76: U,
1091
- 77: W,
1092
- 79: G,
1093
- 80: K
1091
+ 76: K,
1092
+ 77: q,
1093
+ 79: J,
1094
+ 80: Y
1094
1095
  },
1095
1096
  {
1096
1097
  35: 109,
1097
1098
  75: 81,
1098
- 76: U,
1099
- 77: W,
1100
- 79: G,
1101
- 80: K
1099
+ 76: K,
1100
+ 77: q,
1101
+ 79: J,
1102
+ 80: Y
1102
1103
  },
1103
1104
  {
1104
1105
  35: 110,
1105
1106
  75: 81,
1106
- 76: U,
1107
- 77: W,
1108
- 79: G,
1109
- 80: K
1107
+ 76: K,
1108
+ 77: q,
1109
+ 79: J,
1110
+ 80: Y
1110
1111
  },
1111
1112
  {
1112
1113
  35: 111,
1113
1114
  75: 81,
1114
- 76: U,
1115
- 77: W,
1116
- 79: G,
1117
- 80: K
1115
+ 76: K,
1116
+ 77: q,
1117
+ 79: J,
1118
+ 80: Y
1118
1119
  },
1119
1120
  {
1120
1121
  35: 112,
1121
1122
  75: 81,
1122
- 76: U,
1123
- 77: W,
1124
- 79: G,
1125
- 80: K
1123
+ 76: K,
1124
+ 77: q,
1125
+ 79: J,
1126
+ 80: Y
1126
1127
  },
1127
1128
  {
1128
1129
  35: 113,
1129
1130
  75: 81,
1130
- 76: U,
1131
- 77: W,
1132
- 79: G,
1133
- 80: K
1131
+ 76: K,
1132
+ 77: q,
1133
+ 79: J,
1134
+ 80: Y
1134
1135
  },
1135
1136
  {
1136
1137
  35: 114,
1137
1138
  75: 81,
1138
- 76: U,
1139
- 77: W,
1140
- 79: G,
1141
- 80: K
1139
+ 76: K,
1140
+ 77: q,
1141
+ 79: J,
1142
+ 80: Y
1142
1143
  },
1143
1144
  {
1144
1145
  35: 115,
1145
1146
  75: 81,
1146
- 76: U,
1147
- 77: W,
1148
- 79: G,
1149
- 80: K
1147
+ 76: K,
1148
+ 77: q,
1149
+ 79: J,
1150
+ 80: Y
1150
1151
  },
1151
1152
  {
1152
1153
  20: 116,
@@ -1189,9 +1190,9 @@ var y = p(), b = (function() {
1189
1190
  69: B,
1190
1191
  70: V,
1191
1192
  71: H,
1192
- 72: ee,
1193
- 73: te,
1194
- 74: ne
1193
+ 72: U,
1194
+ 73: W,
1195
+ 74: G
1195
1196
  },
1196
1197
  {
1197
1198
  12: [1, 118],
@@ -1200,66 +1201,66 @@ var y = p(), b = (function() {
1200
1201
  {
1201
1202
  35: 119,
1202
1203
  75: 81,
1203
- 76: U,
1204
- 77: W,
1205
- 79: G,
1206
- 80: K
1204
+ 76: K,
1205
+ 77: q,
1206
+ 79: J,
1207
+ 80: Y
1207
1208
  },
1208
1209
  {
1209
1210
  35: 120,
1210
1211
  75: 81,
1211
- 76: U,
1212
- 77: W,
1213
- 79: G,
1214
- 80: K
1212
+ 76: K,
1213
+ 77: q,
1214
+ 79: J,
1215
+ 80: Y
1215
1216
  },
1216
1217
  {
1217
1218
  35: 121,
1218
1219
  75: 81,
1219
- 76: U,
1220
- 77: W,
1221
- 79: G,
1222
- 80: K
1220
+ 76: K,
1221
+ 77: q,
1222
+ 79: J,
1223
+ 80: Y
1223
1224
  },
1224
1225
  {
1225
1226
  35: 122,
1226
1227
  75: 81,
1227
- 76: U,
1228
- 77: W,
1229
- 79: G,
1230
- 80: K
1228
+ 76: K,
1229
+ 77: q,
1230
+ 79: J,
1231
+ 80: Y
1231
1232
  },
1232
1233
  {
1233
1234
  35: 123,
1234
1235
  75: 81,
1235
- 76: U,
1236
- 77: W,
1237
- 79: G,
1238
- 80: K
1236
+ 76: K,
1237
+ 77: q,
1238
+ 79: J,
1239
+ 80: Y
1239
1240
  },
1240
1241
  {
1241
1242
  35: 124,
1242
1243
  75: 81,
1243
- 76: U,
1244
- 77: W,
1245
- 79: G,
1246
- 80: K
1244
+ 76: K,
1245
+ 77: q,
1246
+ 79: J,
1247
+ 80: Y
1247
1248
  },
1248
1249
  {
1249
1250
  35: 125,
1250
1251
  75: 81,
1251
- 76: U,
1252
- 77: W,
1253
- 79: G,
1254
- 80: K
1252
+ 76: K,
1253
+ 77: q,
1254
+ 79: J,
1255
+ 80: Y
1255
1256
  },
1256
1257
  { 14: [1, 126] },
1257
1258
  { 14: [1, 127] },
1258
1259
  { 14: [1, 128] },
1259
1260
  { 14: [1, 129] },
1260
1261
  { 1: [2, 8] },
1261
- t(re, [2, 15]),
1262
- t(ie, [2, 17], {
1262
+ t(ee, [2, 15]),
1263
+ t(te, [2, 17], {
1263
1264
  21: 22,
1264
1265
  19: 130,
1265
1266
  22: n,
@@ -1268,7 +1269,7 @@ var y = p(), b = (function() {
1268
1269
  26: a,
1269
1270
  28: o
1270
1271
  }),
1271
- t(re, [2, 37], {
1272
+ t(ee, [2, 37], {
1272
1273
  19: 20,
1273
1274
  20: 21,
1274
1275
  21: 22,
@@ -1317,81 +1318,81 @@ var y = p(), b = (function() {
1317
1318
  69: B,
1318
1319
  70: V,
1319
1320
  71: H,
1320
- 72: ee,
1321
- 73: te,
1322
- 74: ne
1321
+ 72: U,
1322
+ 73: W,
1323
+ 74: G
1323
1324
  }),
1324
- t(ae, [2, 21]),
1325
- t(ae, [2, 22]),
1326
- t(q, [2, 39]),
1327
- t(oe, [2, 71], {
1325
+ t(ne, [2, 21]),
1326
+ t(ne, [2, 22]),
1327
+ t(X, [2, 39]),
1328
+ t(re, [2, 71], {
1328
1329
  75: 81,
1329
1330
  35: 132,
1330
- 76: U,
1331
- 77: W,
1332
- 79: G,
1333
- 80: K
1331
+ 76: K,
1332
+ 77: q,
1333
+ 79: J,
1334
+ 80: Y
1334
1335
  }),
1335
- t(se, [2, 73]),
1336
+ t(ie, [2, 73]),
1336
1337
  { 78: [1, 133] },
1337
- t(se, [2, 75]),
1338
- t(se, [2, 76]),
1339
- t(q, [2, 40]),
1340
- t(q, [2, 41]),
1341
- t(q, [2, 42]),
1342
- t(q, [2, 43]),
1343
- t(q, [2, 44]),
1344
- t(q, [2, 45]),
1345
- t(q, [2, 46]),
1346
- t(q, [2, 47]),
1347
- t(q, [2, 48]),
1348
- t(q, [2, 49]),
1349
- t(q, [2, 50]),
1350
- t(q, [2, 51]),
1351
- t(q, [2, 52]),
1352
- t(q, [2, 53]),
1353
- t(q, [2, 54]),
1354
- t(q, [2, 55]),
1355
- t(q, [2, 56]),
1356
- t(q, [2, 57]),
1357
- t(q, [2, 58]),
1358
- t(q, [2, 60]),
1359
- t(q, [2, 61]),
1360
- t(q, [2, 62]),
1361
- t(q, [2, 63]),
1362
- t(q, [2, 64]),
1363
- t(q, [2, 65]),
1364
- t(q, [2, 66]),
1365
- t(q, [2, 67]),
1366
- t(q, [2, 68]),
1367
- t(q, [2, 69]),
1368
- t(q, [2, 70]),
1338
+ t(ie, [2, 75]),
1339
+ t(ie, [2, 76]),
1340
+ t(X, [2, 40]),
1341
+ t(X, [2, 41]),
1342
+ t(X, [2, 42]),
1343
+ t(X, [2, 43]),
1344
+ t(X, [2, 44]),
1345
+ t(X, [2, 45]),
1346
+ t(X, [2, 46]),
1347
+ t(X, [2, 47]),
1348
+ t(X, [2, 48]),
1349
+ t(X, [2, 49]),
1350
+ t(X, [2, 50]),
1351
+ t(X, [2, 51]),
1352
+ t(X, [2, 52]),
1353
+ t(X, [2, 53]),
1354
+ t(X, [2, 54]),
1355
+ t(X, [2, 55]),
1356
+ t(X, [2, 56]),
1357
+ t(X, [2, 57]),
1358
+ t(X, [2, 58]),
1359
+ t(X, [2, 60]),
1360
+ t(X, [2, 61]),
1361
+ t(X, [2, 62]),
1362
+ t(X, [2, 63]),
1363
+ t(X, [2, 64]),
1364
+ t(X, [2, 65]),
1365
+ t(X, [2, 66]),
1366
+ t(X, [2, 67]),
1367
+ t(X, [2, 68]),
1368
+ t(X, [2, 69]),
1369
+ t(X, [2, 70]),
1369
1370
  {
1370
1371
  31: 134,
1371
1372
  42: [1, 135]
1372
1373
  },
1373
1374
  { 12: [1, 136] },
1374
1375
  { 33: [1, 137] },
1375
- t(ce, [2, 28]),
1376
- t(ce, [2, 29]),
1377
- t(ce, [2, 30]),
1378
- t(ce, [2, 31]),
1379
- t(ce, [2, 32]),
1380
- t(ce, [2, 33]),
1381
- t(ce, [2, 34]),
1376
+ t(ae, [2, 28]),
1377
+ t(ae, [2, 29]),
1378
+ t(ae, [2, 30]),
1379
+ t(ae, [2, 31]),
1380
+ t(ae, [2, 32]),
1381
+ t(ae, [2, 33]),
1382
+ t(ae, [2, 34]),
1382
1383
  { 1: [2, 9] },
1383
1384
  { 1: [2, 10] },
1384
1385
  { 1: [2, 11] },
1385
1386
  { 1: [2, 12] },
1386
- t(ie, [2, 18]),
1387
- t(re, [2, 38]),
1388
- t(oe, [2, 72]),
1389
- t(se, [2, 74]),
1390
- t(q, [2, 24]),
1391
- t(q, [2, 35]),
1392
- t(le, [2, 25]),
1393
- t(le, [2, 26], { 12: [1, 138] }),
1394
- t(le, [2, 27])
1387
+ t(te, [2, 18]),
1388
+ t(ee, [2, 38]),
1389
+ t(re, [2, 72]),
1390
+ t(ie, [2, 74]),
1391
+ t(X, [2, 24]),
1392
+ t(X, [2, 35]),
1393
+ t(oe, [2, 25]),
1394
+ t(oe, [2, 26], { 12: [1, 138] }),
1395
+ t(oe, [2, 27])
1395
1396
  ],
1396
1397
  defaultActions: {
1397
1398
  2: [2, 1],
@@ -1421,7 +1422,7 @@ var y = p(), b = (function() {
1421
1422
  var y = g.yylloc;
1422
1423
  o.push(y);
1423
1424
  var b = g.options && g.options.ranges;
1424
- typeof _.yy.parseError == "function" ? this.parseError = _.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
1425
+ this.parseError = typeof _.yy.parseError == "function" ? _.yy.parseError : Object.getPrototypeOf(this).parseError;
1425
1426
  function x(e) {
1426
1427
  r.length -= 2 * e, a.length -= e, o.length -= e;
1427
1428
  }
@@ -1471,7 +1472,7 @@ var y = p(), b = (function() {
1471
1472
  return !0;
1472
1473
  }, "parse")
1473
1474
  };
1474
- J.lexer = /* @__PURE__ */ (function() {
1475
+ se.lexer = /* @__PURE__ */ (function() {
1475
1476
  return {
1476
1477
  EOF: 1,
1477
1478
  parseError: /* @__PURE__ */ e(function(e, t) {
@@ -1574,10 +1575,12 @@ var y = p(), b = (function() {
1574
1575
  if (this._backtrack) {
1575
1576
  t = !1;
1576
1577
  continue;
1577
- } else return !1;
1578
- } else if (!this.options.flex) break;
1578
+ }
1579
+ return !1;
1580
+ }
1581
+ if (!this.options.flex) break;
1579
1582
  }
1580
- return t ? (e = this.test_match(t, i[r]), e === !1 ? !1 : e) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
1583
+ return t ? (e = this.test_match(t, i[r]), e !== !1 && e) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
1581
1584
  text: "",
1582
1585
  token: null,
1583
1586
  line: this.yylineno
@@ -2268,27 +2271,34 @@ var y = p(), b = (function() {
2268
2271
  }
2269
2272
  };
2270
2273
  })();
2271
- function ue() {
2274
+ function Z() {
2272
2275
  this.yy = {};
2273
2276
  }
2274
- return e(ue, "Parser"), ue.prototype = J, J.Parser = ue, new ue();
2277
+ return e(Z, "Parser"), Z.prototype = se, se.Parser = Z, new Z();
2275
2278
  })();
2276
- b.parser = b;
2277
- var x = b, S = [], C = [""], w = "global", T = "", E = [{
2279
+ v.parser = v;
2280
+ var y = v, b = /* @__PURE__ */ e((e) => u()[e], "getRequiredConfig"), x = /* @__PURE__ */ e((e, t) => {
2281
+ for (let [n, r] of Object.entries(t)) if (r !== void 0) {
2282
+ if (typeof r == "object") {
2283
+ let [t, n] = Object.entries(r)[0];
2284
+ e[t] = n;
2285
+ } else e[n] = r;
2286
+ }
2287
+ }, "assignAttributes"), S = /* @__PURE__ */ e(() => ({
2278
2288
  alias: "global",
2279
2289
  label: { text: "global" },
2280
2290
  type: { text: "global" },
2281
2291
  tags: null,
2282
2292
  link: null,
2283
2293
  parentBoundary: ""
2284
- }], D = [], O = "", k = !1, A = 4, j = 2, M, N = /* @__PURE__ */ e(function() {
2285
- return M;
2286
- }, "getC4Type"), P = /* @__PURE__ */ e(function(e) {
2287
- M = f(e, u());
2288
- }, "setC4Type"), F = /* @__PURE__ */ e(function(e, t, n, r, i, a, o, s, l) {
2294
+ }), "createGlobalBoundary"), C = [], w = [""], T = "global", E = "", D = [S()], O = [], k = "", A = !1, j = 4, M = 2, N, P = /* @__PURE__ */ e(function() {
2295
+ return N;
2296
+ }, "getC4Type"), F = /* @__PURE__ */ e(function(e) {
2297
+ N = f(e, u());
2298
+ }, "setC4Type"), I = /* @__PURE__ */ e(function(e, t, n, r, i, a, o, s, l) {
2289
2299
  if (e == null || t == null || n == null || r == null) return;
2290
- let u = {}, d = D.find((e) => e.from === t && e.to === n);
2291
- 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: "" };
2300
+ let u = {}, d = O.find((e) => e.from === t && e.to === n);
2301
+ 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: "" };
2292
2302
  else if (typeof i == "object") {
2293
2303
  let [e, t] = Object.entries(i)[0];
2294
2304
  u[e] = { text: t };
@@ -2298,44 +2308,28 @@ var x = b, S = [], C = [""], w = "global", T = "", E = [{
2298
2308
  let [e, t] = Object.entries(a)[0];
2299
2309
  u[e] = { text: t };
2300
2310
  } else u.descr = { text: a };
2301
- if (typeof o == "object") {
2302
- let [e, t] = Object.entries(o)[0];
2303
- u[e] = t;
2304
- } else u.sprite = o;
2305
- if (typeof s == "object") {
2306
- let [e, t] = Object.entries(s)[0];
2307
- u[e] = t;
2308
- } else u.tags = s;
2309
- if (typeof l == "object") {
2310
- let [e, t] = Object.entries(l)[0];
2311
- u[e] = t;
2312
- } else u.link = l;
2313
- u.wrap = J();
2314
- }, "addRel"), I = /* @__PURE__ */ e(function(e, t, n, r, i, a, o) {
2311
+ x(u, {
2312
+ sprite: o,
2313
+ tags: s,
2314
+ link: l
2315
+ }), u.wrap = Z();
2316
+ }, "addRel"), L = /* @__PURE__ */ e(function(e, t, n, r, i, a, o) {
2315
2317
  if (t === null || n === null) return;
2316
- let s = {}, l = S.find((e) => e.alias === t);
2317
- 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: "" };
2318
+ let s = {}, l = C.find((e) => e.alias === t);
2319
+ 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: "" };
2318
2320
  else if (typeof r == "object") {
2319
2321
  let [e, t] = Object.entries(r)[0];
2320
2322
  s[e] = { text: t };
2321
2323
  } else s.descr = { text: r };
2322
- if (typeof i == "object") {
2323
- let [e, t] = Object.entries(i)[0];
2324
- s[e] = t;
2325
- } else s.sprite = i;
2326
- if (typeof a == "object") {
2327
- let [e, t] = Object.entries(a)[0];
2328
- s[e] = t;
2329
- } else s.tags = a;
2330
- if (typeof o == "object") {
2331
- let [e, t] = Object.entries(o)[0];
2332
- s[e] = t;
2333
- } else s.link = o;
2334
- s.typeC4Shape = { text: e }, s.parentBoundary = w, s.wrap = J();
2335
- }, "addPersonOrSystem"), L = /* @__PURE__ */ e(function(e, t, n, r, i, a, o, s) {
2324
+ x(s, {
2325
+ sprite: i,
2326
+ tags: a,
2327
+ link: o
2328
+ }), s.typeC4Shape = { text: e }, s.parentBoundary = T, s.wrap = Z();
2329
+ }, "addPersonOrSystem"), R = /* @__PURE__ */ e(function(e, t, n, r, i, a, o, s) {
2336
2330
  if (t === null || n === null) return;
2337
- let l = {}, u = S.find((e) => e.alias === t);
2338
- 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: "" };
2331
+ let l = {}, u = C.find((e) => e.alias === t);
2332
+ 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: "" };
2339
2333
  else if (typeof r == "object") {
2340
2334
  let [e, t] = Object.entries(r)[0];
2341
2335
  l[e] = { text: t };
@@ -2345,23 +2339,15 @@ var x = b, S = [], C = [""], w = "global", T = "", E = [{
2345
2339
  let [e, t] = Object.entries(i)[0];
2346
2340
  l[e] = { text: t };
2347
2341
  } else l.descr = { text: i };
2348
- if (typeof a == "object") {
2349
- let [e, t] = Object.entries(a)[0];
2350
- l[e] = t;
2351
- } else l.sprite = a;
2352
- if (typeof o == "object") {
2353
- let [e, t] = Object.entries(o)[0];
2354
- l[e] = t;
2355
- } else l.tags = o;
2356
- if (typeof s == "object") {
2357
- let [e, t] = Object.entries(s)[0];
2358
- l[e] = t;
2359
- } else l.link = s;
2360
- l.wrap = J(), l.typeC4Shape = { text: e }, l.parentBoundary = w;
2361
- }, "addContainer"), R = /* @__PURE__ */ e(function(e, t, n, r, i, a, o, s) {
2342
+ x(l, {
2343
+ sprite: a,
2344
+ tags: o,
2345
+ link: s
2346
+ }), l.wrap = Z(), l.typeC4Shape = { text: e }, l.parentBoundary = T;
2347
+ }, "addContainer"), z = /* @__PURE__ */ e(function(e, t, n, r, i, a, o, s) {
2362
2348
  if (t === null || n === null) return;
2363
- let l = {}, u = S.find((e) => e.alias === t);
2364
- 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: "" };
2349
+ let l = {}, u = C.find((e) => e.alias === t);
2350
+ 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: "" };
2365
2351
  else if (typeof r == "object") {
2366
2352
  let [e, t] = Object.entries(r)[0];
2367
2353
  l[e] = { text: t };
@@ -2371,57 +2357,39 @@ var x = b, S = [], C = [""], w = "global", T = "", E = [{
2371
2357
  let [e, t] = Object.entries(i)[0];
2372
2358
  l[e] = { text: t };
2373
2359
  } else l.descr = { text: i };
2374
- if (typeof a == "object") {
2375
- let [e, t] = Object.entries(a)[0];
2376
- l[e] = t;
2377
- } else l.sprite = a;
2378
- if (typeof o == "object") {
2379
- let [e, t] = Object.entries(o)[0];
2380
- l[e] = t;
2381
- } else l.tags = o;
2382
- if (typeof s == "object") {
2383
- let [e, t] = Object.entries(s)[0];
2384
- l[e] = t;
2385
- } else l.link = s;
2386
- l.wrap = J(), l.typeC4Shape = { text: e }, l.parentBoundary = w;
2387
- }, "addComponent"), z = /* @__PURE__ */ e(function(e, t, n, r, i) {
2360
+ x(l, {
2361
+ sprite: a,
2362
+ tags: o,
2363
+ link: s
2364
+ }), l.wrap = Z(), l.typeC4Shape = { text: e }, l.parentBoundary = T;
2365
+ }, "addComponent"), B = /* @__PURE__ */ e(function(e, t, n, r, i) {
2388
2366
  if (e === null || t === null) return;
2389
- let a = {}, o = E.find((t) => t.alias === e);
2390
- 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" };
2367
+ let a = {}, o = D.find((t) => t.alias === e);
2368
+ 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" };
2391
2369
  else if (typeof n == "object") {
2392
2370
  let [e, t] = Object.entries(n)[0];
2393
2371
  a[e] = { text: t };
2394
2372
  } else a.type = { text: n };
2395
- if (typeof r == "object") {
2396
- let [e, t] = Object.entries(r)[0];
2397
- a[e] = t;
2398
- } else a.tags = r;
2399
- if (typeof i == "object") {
2400
- let [e, t] = Object.entries(i)[0];
2401
- a[e] = t;
2402
- } else a.link = i;
2403
- a.parentBoundary = w, a.wrap = J(), T = w, w = e, C.push(T);
2404
- }, "addPersonOrSystemBoundary"), B = /* @__PURE__ */ e(function(e, t, n, r, i) {
2373
+ x(a, {
2374
+ tags: r,
2375
+ link: i
2376
+ }), a.parentBoundary = T, a.wrap = Z(), E = T, T = e, w.push(E);
2377
+ }, "addPersonOrSystemBoundary"), V = /* @__PURE__ */ e(function(e, t, n, r, i) {
2405
2378
  if (e === null || t === null) return;
2406
- let a = {}, o = E.find((t) => t.alias === e);
2407
- 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" };
2379
+ let a = {}, o = D.find((t) => t.alias === e);
2380
+ 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" };
2408
2381
  else if (typeof n == "object") {
2409
2382
  let [e, t] = Object.entries(n)[0];
2410
2383
  a[e] = { text: t };
2411
2384
  } else a.type = { text: n };
2412
- if (typeof r == "object") {
2413
- let [e, t] = Object.entries(r)[0];
2414
- a[e] = t;
2415
- } else a.tags = r;
2416
- if (typeof i == "object") {
2417
- let [e, t] = Object.entries(i)[0];
2418
- a[e] = t;
2419
- } else a.link = i;
2420
- a.parentBoundary = w, a.wrap = J(), T = w, w = e, C.push(T);
2421
- }, "addContainerBoundary"), V = /* @__PURE__ */ e(function(e, t, n, r, i, a, o, s) {
2385
+ x(a, {
2386
+ tags: r,
2387
+ link: i
2388
+ }), a.parentBoundary = T, a.wrap = Z(), E = T, T = e, w.push(E);
2389
+ }, "addContainerBoundary"), H = /* @__PURE__ */ e(function(e, t, n, r, i, a, o, s) {
2422
2390
  if (t === null || n === null) return;
2423
- let l = {}, u = E.find((e) => e.alias === t);
2424
- 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" };
2391
+ let l = {}, u = D.find((e) => e.alias === t);
2392
+ 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" };
2425
2393
  else if (typeof r == "object") {
2426
2394
  let [e, t] = Object.entries(r)[0];
2427
2395
  l[e] = { text: t };
@@ -2431,79 +2399,100 @@ var x = b, S = [], C = [""], w = "global", T = "", E = [{
2431
2399
  let [e, t] = Object.entries(i)[0];
2432
2400
  l[e] = { text: t };
2433
2401
  } else l.descr = { text: i };
2434
- if (typeof o == "object") {
2435
- let [e, t] = Object.entries(o)[0];
2436
- l[e] = t;
2437
- } else l.tags = o;
2438
- if (typeof s == "object") {
2439
- let [e, t] = Object.entries(s)[0];
2440
- l[e] = t;
2441
- } else l.link = s;
2442
- l.nodeType = e, l.parentBoundary = w, l.wrap = J(), T = w, w = t, C.push(T);
2443
- }, "addDeploymentNode"), H = /* @__PURE__ */ e(function() {
2444
- w = T, C.pop(), T = C.pop(), C.push(T);
2445
- }, "popBoundaryParseStack"), ee = /* @__PURE__ */ e(function(e, t, n, r, i, a, o, s, l, u, d) {
2446
- let f = S.find((e) => e.alias === t);
2447
- if (!(f === void 0 && (f = E.find((e) => e.alias === t), f === void 0))) {
2448
- if (n != null) if (typeof n == "object") {
2449
- let [e, t] = Object.entries(n)[0];
2450
- f[e] = t;
2451
- } else f.bgColor = n;
2452
- if (r != null) if (typeof r == "object") {
2453
- let [e, t] = Object.entries(r)[0];
2454
- f[e] = t;
2455
- } else f.fontColor = r;
2456
- if (i != null) if (typeof i == "object") {
2457
- let [e, t] = Object.entries(i)[0];
2458
- f[e] = t;
2459
- } else f.borderColor = i;
2460
- if (a != null) if (typeof a == "object") {
2461
- let [e, t] = Object.entries(a)[0];
2462
- f[e] = t;
2463
- } else f.shadowing = a;
2464
- if (o != null) if (typeof o == "object") {
2465
- let [e, t] = Object.entries(o)[0];
2466
- f[e] = t;
2467
- } else f.shape = o;
2468
- if (s != null) if (typeof s == "object") {
2469
- let [e, t] = Object.entries(s)[0];
2470
- f[e] = t;
2471
- } else f.sprite = s;
2472
- if (l != null) if (typeof l == "object") {
2473
- let [e, t] = Object.entries(l)[0];
2474
- f[e] = t;
2475
- } else f.techn = l;
2476
- if (u != null) if (typeof u == "object") {
2477
- let [e, t] = Object.entries(u)[0];
2478
- f[e] = t;
2479
- } else f.legendText = u;
2480
- if (d != null) if (typeof d == "object") {
2481
- let [e, t] = Object.entries(d)[0];
2482
- f[e] = t;
2483
- } else f.legendSprite = d;
2402
+ x(l, {
2403
+ tags: o,
2404
+ link: s
2405
+ }), l.nodeType = e, l.parentBoundary = T, l.wrap = Z(), E = T, T = t, w.push(E);
2406
+ }, "addDeploymentNode"), U = /* @__PURE__ */ e(function() {
2407
+ T = E, w.pop(), E = w.pop(), w.push(E);
2408
+ }, "popBoundaryParseStack"), W = /* @__PURE__ */ e(function(e, t, n, r, i, a, o, s, l, u, d) {
2409
+ let f = C.find((e) => e.alias === t);
2410
+ if (!(f === void 0 && (f = D.find((e) => e.alias === t), f === void 0))) {
2411
+ if (n != null) {
2412
+ if (typeof n == "object") {
2413
+ let [e, t] = Object.entries(n)[0];
2414
+ f[e] = t;
2415
+ } else f.bgColor = n;
2416
+ }
2417
+ if (r != null) {
2418
+ if (typeof r == "object") {
2419
+ let [e, t] = Object.entries(r)[0];
2420
+ f[e] = t;
2421
+ } else f.fontColor = r;
2422
+ }
2423
+ if (i != null) {
2424
+ if (typeof i == "object") {
2425
+ let [e, t] = Object.entries(i)[0];
2426
+ f[e] = t;
2427
+ } else f.borderColor = i;
2428
+ }
2429
+ if (a != null) {
2430
+ if (typeof a == "object") {
2431
+ let [e, t] = Object.entries(a)[0];
2432
+ f[e] = t;
2433
+ } else f.shadowing = a;
2434
+ }
2435
+ if (o != null) {
2436
+ if (typeof o == "object") {
2437
+ let [e, t] = Object.entries(o)[0];
2438
+ f[e] = t;
2439
+ } else f.shape = o;
2440
+ }
2441
+ if (s != null) {
2442
+ if (typeof s == "object") {
2443
+ let [e, t] = Object.entries(s)[0];
2444
+ f[e] = t;
2445
+ } else f.sprite = s;
2446
+ }
2447
+ if (l != null) {
2448
+ if (typeof l == "object") {
2449
+ let [e, t] = Object.entries(l)[0];
2450
+ f[e] = t;
2451
+ } else f.techn = l;
2452
+ }
2453
+ if (u != null) {
2454
+ if (typeof u == "object") {
2455
+ let [e, t] = Object.entries(u)[0];
2456
+ f[e] = t;
2457
+ } else f.legendText = u;
2458
+ }
2459
+ if (d != null) {
2460
+ if (typeof d == "object") {
2461
+ let [e, t] = Object.entries(d)[0];
2462
+ f[e] = t;
2463
+ } else f.legendSprite = d;
2464
+ }
2484
2465
  }
2485
- }, "updateElStyle"), te = /* @__PURE__ */ e(function(e, t, n, r, i, a, o) {
2486
- let s = D.find((e) => e.from === t && e.to === n);
2466
+ }, "updateElStyle"), G = /* @__PURE__ */ e(function(e, t, n, r, i, a, o) {
2467
+ let s = O.find((e) => e.from === t && e.to === n);
2487
2468
  if (s !== void 0) {
2488
- if (r != null) if (typeof r == "object") {
2489
- let [e, t] = Object.entries(r)[0];
2490
- s[e] = t;
2491
- } else s.textColor = r;
2492
- if (i != null) if (typeof i == "object") {
2493
- let [e, t] = Object.entries(i)[0];
2494
- s[e] = t;
2495
- } else s.lineColor = i;
2496
- if (a != null) if (typeof a == "object") {
2497
- let [e, t] = Object.entries(a)[0];
2498
- s[e] = parseInt(t);
2499
- } else s.offsetX = parseInt(a);
2500
- if (o != null) if (typeof o == "object") {
2501
- let [e, t] = Object.entries(o)[0];
2502
- s[e] = parseInt(t);
2503
- } else s.offsetY = parseInt(o);
2469
+ if (r != null) {
2470
+ if (typeof r == "object") {
2471
+ let [e, t] = Object.entries(r)[0];
2472
+ s[e] = t;
2473
+ } else s.textColor = r;
2474
+ }
2475
+ if (i != null) {
2476
+ if (typeof i == "object") {
2477
+ let [e, t] = Object.entries(i)[0];
2478
+ s[e] = t;
2479
+ } else s.lineColor = i;
2480
+ }
2481
+ if (a != null) {
2482
+ if (typeof a == "object") {
2483
+ let [e, t] = Object.entries(a)[0];
2484
+ s[e] = parseInt(t);
2485
+ } else s.offsetX = parseInt(a);
2486
+ }
2487
+ if (o != null) {
2488
+ if (typeof o == "object") {
2489
+ let [e, t] = Object.entries(o)[0];
2490
+ s[e] = parseInt(t);
2491
+ } else s.offsetY = parseInt(o);
2492
+ }
2504
2493
  }
2505
- }, "updateRelStyle"), ne = /* @__PURE__ */ e(function(e, t, n) {
2506
- let r = A, i = j;
2494
+ }, "updateRelStyle"), ee = /* @__PURE__ */ e(function(e, t, n) {
2495
+ let r = j, i = M;
2507
2496
  if (typeof t == "object") {
2508
2497
  let e = Object.values(t)[0];
2509
2498
  r = parseInt(e);
@@ -2512,71 +2501,64 @@ var x = b, S = [], C = [""], w = "global", T = "", E = [{
2512
2501
  let e = Object.values(n)[0];
2513
2502
  i = parseInt(e);
2514
2503
  } else i = parseInt(n);
2515
- r >= 1 && (A = r), i >= 1 && (j = i);
2516
- }, "updateLayoutConfig"), re = /* @__PURE__ */ e(function() {
2517
- return A;
2518
- }, "getC4ShapeInRow"), ie = /* @__PURE__ */ e(function() {
2504
+ r >= 1 && (j = r), i >= 1 && (M = i);
2505
+ }, "updateLayoutConfig"), te = /* @__PURE__ */ e(function() {
2519
2506
  return j;
2520
- }, "getC4BoundaryInRow"), ae = /* @__PURE__ */ e(function() {
2521
- return w;
2522
- }, "getCurrentBoundaryParse"), U = /* @__PURE__ */ e(function() {
2507
+ }, "getC4ShapeInRow"), ne = /* @__PURE__ */ e(function() {
2508
+ return M;
2509
+ }, "getC4BoundaryInRow"), K = /* @__PURE__ */ e(function() {
2523
2510
  return T;
2524
- }, "getParentBoundaryParse"), W = /* @__PURE__ */ e(function(e) {
2525
- return e == null ? S : S.filter((t) => t.parentBoundary === e);
2526
- }, "getC4ShapeArray"), G = /* @__PURE__ */ e(function(e) {
2527
- return S.find((t) => t.alias === e);
2528
- }, "getC4Shape"), K = /* @__PURE__ */ e(function(e) {
2529
- return Object.keys(W(e));
2530
- }, "getC4ShapeKeys"), q = /* @__PURE__ */ e(function(e) {
2531
- return e == null ? E : E.filter((t) => t.parentBoundary === e);
2532
- }, "getBoundaries"), oe = q, se = /* @__PURE__ */ e(function() {
2533
- return D;
2534
- }, "getRels"), ce = /* @__PURE__ */ e(function() {
2511
+ }, "getCurrentBoundaryParse"), q = /* @__PURE__ */ e(function() {
2512
+ return E;
2513
+ }, "getParentBoundaryParse"), J = /* @__PURE__ */ e(function(e) {
2514
+ return e == null ? C : C.filter((t) => t.parentBoundary === e);
2515
+ }, "getC4ShapeArray"), Y = /* @__PURE__ */ e(function(e) {
2516
+ return C.find((t) => t.alias === e);
2517
+ }, "getC4Shape"), X = /* @__PURE__ */ e(function(e) {
2518
+ return Object.keys(J(e));
2519
+ }, "getC4ShapeKeys"), re = /* @__PURE__ */ e(function(e) {
2520
+ return e == null ? D : D.filter((t) => t.parentBoundary === e);
2521
+ }, "getBoundaries"), ie = re, ae = /* @__PURE__ */ e(function() {
2535
2522
  return O;
2536
- }, "getTitle"), le = /* @__PURE__ */ e(function(e) {
2537
- k = e;
2538
- }, "setWrap"), J = /* @__PURE__ */ e(function() {
2523
+ }, "getRels"), oe = /* @__PURE__ */ e(function() {
2539
2524
  return k;
2540
- }, "autoWrap"), ue = {
2541
- addPersonOrSystem: I,
2542
- addPersonOrSystemBoundary: z,
2543
- addContainer: L,
2544
- addContainerBoundary: B,
2545
- addComponent: R,
2546
- addDeploymentNode: V,
2547
- popBoundaryParseStack: H,
2548
- addRel: F,
2549
- updateElStyle: ee,
2550
- updateRelStyle: te,
2551
- updateLayoutConfig: ne,
2552
- autoWrap: J,
2553
- setWrap: le,
2554
- getC4ShapeArray: W,
2555
- getC4Shape: G,
2556
- getC4ShapeKeys: K,
2557
- getBoundaries: q,
2558
- getBoundarys: oe,
2559
- getCurrentBoundaryParse: ae,
2560
- getParentBoundaryParse: U,
2561
- getRels: se,
2562
- getTitle: ce,
2563
- getC4Type: N,
2564
- getC4ShapeInRow: re,
2565
- getC4BoundaryInRow: ie,
2525
+ }, "getTitle"), se = /* @__PURE__ */ e(function(e) {
2526
+ A = e;
2527
+ }, "setWrap"), Z = /* @__PURE__ */ e(function() {
2528
+ return A;
2529
+ }, "autoWrap"), ce = {
2530
+ addPersonOrSystem: L,
2531
+ addPersonOrSystemBoundary: B,
2532
+ addContainer: R,
2533
+ addContainerBoundary: V,
2534
+ addComponent: z,
2535
+ addDeploymentNode: H,
2536
+ popBoundaryParseStack: U,
2537
+ addRel: I,
2538
+ updateElStyle: W,
2539
+ updateRelStyle: G,
2540
+ updateLayoutConfig: ee,
2541
+ autoWrap: Z,
2542
+ setWrap: se,
2543
+ getC4ShapeArray: J,
2544
+ getC4Shape: Y,
2545
+ getC4ShapeKeys: X,
2546
+ getBoundaries: re,
2547
+ getBoundarys: ie,
2548
+ getCurrentBoundaryParse: K,
2549
+ getParentBoundaryParse: q,
2550
+ getRels: ae,
2551
+ getTitle: oe,
2552
+ getC4Type: P,
2553
+ getC4ShapeInRow: te,
2554
+ getC4BoundaryInRow: ne,
2566
2555
  setAccTitle: i,
2567
2556
  getAccTitle: d,
2568
2557
  getAccDescription: l,
2569
2558
  setAccDescription: r,
2570
- getConfig: /* @__PURE__ */ e(() => u().c4, "getConfig"),
2559
+ getConfig: /* @__PURE__ */ e(() => b("c4"), "getConfig"),
2571
2560
  clear: /* @__PURE__ */ e(function() {
2572
- S = [], E = [{
2573
- alias: "global",
2574
- label: { text: "global" },
2575
- type: { text: "global" },
2576
- tags: null,
2577
- link: null,
2578
- parentBoundary: ""
2579
- }], T = "", w = "global", C = [""], D = [], C = [""], O = "", k = !1, A = 4, j = 2;
2561
+ C = [], D = [S()], E = "", T = "global", w = [""], O = [], w = [""], k = "", A = !1, j = 4, M = 2;
2580
2562
  }, "clear"),
2581
2563
  LINETYPE: {
2582
2564
  SOLID: 0,
@@ -2613,20 +2595,15 @@ var x = b, S = [], C = [""], w = "global", T = "", E = [{
2613
2595
  OVER: 2
2614
2596
  },
2615
2597
  setTitle: /* @__PURE__ */ e(function(e) {
2616
- O = f(e, u());
2598
+ k = f(e, u());
2617
2599
  }, "setTitle"),
2618
- setC4Type: P
2619
- }, de = /* @__PURE__ */ e(function(e, t) {
2600
+ setC4Type: F
2601
+ }, le = /* @__PURE__ */ e(function(e, t) {
2620
2602
  return _(e, t);
2621
- }, "drawRect"), fe = /* @__PURE__ */ e(function(e, t, n, r, i, a) {
2622
- let o = e.append("image");
2623
- o.attr("width", t), o.attr("height", n), o.attr("x", r), o.attr("y", i);
2624
- let s = a.startsWith("data:image/png;base64") ? a : (0, y.sanitizeUrl)(a);
2625
- o.attr("xlink:href", s);
2626
- }, "drawImage"), pe = /* @__PURE__ */ e((e, t, n, r) => {
2603
+ }, "drawRect"), ue = /* @__PURE__ */ e((e, t, n, r) => {
2627
2604
  let i = e.append("g"), a = 0;
2628
2605
  for (let e of t) {
2629
- 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;
2606
+ 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;
2630
2607
  if (a === 0) {
2631
2608
  let t = i.append("line");
2632
2609
  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;
@@ -2634,18 +2611,18 @@ var x = b, S = [], C = [""], w = "global", T = "", E = [{
2634
2611
  let t = i.append("path");
2635
2612
  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)");
2636
2613
  }
2637
- let u = n.messageFont();
2638
- 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, {
2614
+ let u = e.label.width, d = n.messageFont();
2615
+ 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, {
2639
2616
  fill: t,
2640
2617
  "font-style": "italic"
2641
- }, u));
2618
+ }, d));
2642
2619
  }
2643
- }, "drawRels"), me = /* @__PURE__ */ e(function(e, t, n) {
2620
+ }, "drawRels"), de = /* @__PURE__ */ e(function(e, t, n) {
2644
2621
  let r = e.append("g"), i = t.bgColor ? t.bgColor : "none", a = t.borderColor ? t.borderColor : "#444444", o = t.fontColor ? t.fontColor : "black", s = {
2645
2622
  "stroke-width": 1,
2646
2623
  "stroke-dasharray": "7.0,7.0"
2647
2624
  };
2648
- t.nodeType && (s = { "stroke-width": 1 }), de(r, {
2625
+ t.nodeType && (s = { "stroke-width": 1 }), le(r, {
2649
2626
  x: t.x,
2650
2627
  y: t.y,
2651
2628
  fill: i,
@@ -2657,83 +2634,23 @@ var x = b, S = [], C = [""], w = "global", T = "", E = [{
2657
2634
  attrs: s
2658
2635
  });
2659
2636
  let l = n.boundaryFont();
2660
- 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));
2661
- }, "drawBoundary"), he = /* @__PURE__ */ e(function(e, t, n) {
2662
- 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=";
2663
- switch (t.typeC4Shape.text) {
2664
- case "person":
2665
- o = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";
2666
- break;
2667
- case "external_person":
2668
- o = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAB6ElEQVR4Xu2YLY+EMBCG9+dWr0aj0Wg0Go1Go0+j8Xdv2uTCvv1gpt0ebHKPuhDaeW4605Z9mJvx4AdXUyTUdd08z+u6flmWZRnHsWkafk9DptAwDPu+f0eAYtu2PEaGWuj5fCIZrBAC2eLBAnRCsEkkxmeaJp7iDJ2QMDdHsLg8SxKFEJaAo8lAXnmuOFIhTMpxxKATebo4UiFknuNo4OniSIXQyRxEA3YsnjGCVEjVXD7yLUAqxBGUyPv/Y4W2beMgGuS7kVQIBycH0fD+oi5pezQETxdHKmQKGk1eQEYldK+jw5GxPfZ9z7Mk0Qnhf1W1m3w//EUn5BDmSZsbR44QQLBEqrBHqOrmSKaQAxdnLArCrxZcM7A7ZKs4ioRq8LFC+NpC3WCBJsvpVw5edm9iEXFuyNfxXAgSwfrFQ1c0iNda8AdejvUgnktOtJQQxmcfFzGglc5WVCj7oDgFqU18boeFSs52CUh8LE8BIVQDT1ABrB0HtgSEYlX5doJnCwv9TXocKCaKbnwhdDKPq4lf3SwU3HLq4V/+WYhHVMa/3b4IlfyikAduCkcBc7mQ3/z/Qq/cTuikhkzB12Ae/mcJC9U+Vo8Ej1gWAtgbeGgFsAMHr50BIWOLCbezvhpBFUdY6EJuJ/QDW0XoMX60zZ0AAAAASUVORK5CYII=";
2669
- break;
2670
- }
2671
- let s = e.append("g");
2672
- s.attr("class", "person-man");
2673
- let l = v();
2674
- switch (t.typeC4Shape.text) {
2675
- case "person":
2676
- case "external_person":
2677
- case "system":
2678
- case "external_system":
2679
- case "container":
2680
- case "external_container":
2681
- case "component":
2682
- case "external_component":
2683
- 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);
2684
- break;
2685
- case "system_db":
2686
- case "external_system_db":
2687
- case "container_db":
2688
- case "external_container_db":
2689
- case "component_db":
2690
- case "external_component_db":
2691
- 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));
2692
- break;
2693
- case "system_queue":
2694
- case "external_system_queue":
2695
- case "container_queue":
2696
- case "external_container_queue":
2697
- case "component_queue":
2698
- case "external_component_queue":
2699
- 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));
2700
- break;
2701
- }
2702
- let u = Ce(n, t.typeC4Shape.text);
2703
- 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) {
2704
- case "person":
2705
- case "external_person":
2706
- fe(s, 48, 48, t.x + t.width / 2 - 24, t.y + t.image.Y, o);
2707
- break;
2708
- }
2709
- let d = n[t.typeC4Shape.text + "Font"]();
2710
- 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, {
2711
- fill: a,
2712
- "font-style": "italic"
2713
- }, d) : t.type && t.type.text !== "" && Y(n)(t.type.text, s, t.x, t.y + t.type.Y, t.width, t.height, {
2714
- fill: a,
2715
- "font-style": "italic"
2716
- }, 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;
2717
- }, "drawC4Shape"), ge = /* @__PURE__ */ e(function(e, t) {
2637
+ 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));
2638
+ }, "drawBoundary"), fe = /* @__PURE__ */ e(function(e, t) {
2718
2639
  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");
2719
- }, "insertDatabaseIcon"), _e = /* @__PURE__ */ e(function(e, t) {
2640
+ }, "insertDatabaseIcon"), pe = /* @__PURE__ */ e(function(e, t) {
2720
2641
  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");
2721
- }, "insertComputerIcon"), ve = /* @__PURE__ */ e(function(e, t) {
2642
+ }, "insertComputerIcon"), me = /* @__PURE__ */ e(function(e, t) {
2722
2643
  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");
2723
- }, "insertClockIcon"), ye = /* @__PURE__ */ e(function(e, t) {
2644
+ }, "insertClockIcon"), he = /* @__PURE__ */ e(function(e, t) {
2724
2645
  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");
2725
- }, "insertArrowHead"), be = /* @__PURE__ */ e(function(e, t) {
2646
+ }, "insertArrowHead"), ge = /* @__PURE__ */ e(function(e, t) {
2726
2647
  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");
2727
- }, "insertArrowEnd"), xe = /* @__PURE__ */ e(function(e, t) {
2648
+ }, "insertArrowEnd"), _e = /* @__PURE__ */ e(function(e, t) {
2728
2649
  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");
2729
- }, "insertArrowFilledHead"), Se = /* @__PURE__ */ e(function(e, t) {
2650
+ }, "insertArrowFilledHead"), ve = /* @__PURE__ */ e(function(e, t) {
2730
2651
  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);
2731
2652
  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");
2732
- }, "insertArrowCrossHead"), Ce = /* @__PURE__ */ e((e, t) => ({
2733
- fontFamily: e[t + "FontFamily"],
2734
- fontSize: e[t + "FontSize"],
2735
- fontWeight: e[t + "FontWeight"]
2736
- }), "getC4ShapeFont"), Y = /* @__PURE__ */ (function() {
2653
+ }, "insertArrowCrossHead"), ye = /* @__PURE__ */ (function() {
2737
2654
  function t(e, t, n, r, a, o, s) {
2738
2655
  i(t.append("text").attr("x", n + a / 2).attr("y", r + o / 2 + 5).style("text-anchor", "middle").text(e), s);
2739
2656
  }
@@ -2757,38 +2674,126 @@ var x = b, S = [], C = [""], w = "global", T = "", E = [{
2757
2674
  return e(i, "_setTextAttrs"), function(e) {
2758
2675
  return e.textPlacement === "fo" ? r : e.textPlacement === "old" ? t : n;
2759
2676
  };
2760
- })(), X = {
2761
- drawRect: de,
2762
- drawBoundary: me,
2763
- drawC4Shape: he,
2764
- drawRels: pe,
2765
- drawImage: fe,
2766
- insertArrowHead: ye,
2767
- insertArrowEnd: be,
2768
- insertArrowFilledHead: xe,
2769
- insertArrowCrossHead: Se,
2770
- insertDatabaseIcon: ge,
2771
- insertComputerIcon: _e,
2772
- insertClockIcon: ve
2773
- }, we = 0, Te = 0, Ee = 4, De = 2;
2774
- b.yy = ue;
2775
- var Z = {}, Oe = class {
2677
+ })(), Q = {
2678
+ drawRect: le,
2679
+ drawBoundary: de,
2680
+ drawRels: ue,
2681
+ insertArrowHead: he,
2682
+ insertArrowEnd: ge,
2683
+ insertArrowFilledHead: _e,
2684
+ insertArrowCrossHead: ve,
2685
+ insertDatabaseIcon: fe,
2686
+ insertComputerIcon: pe,
2687
+ insertClockIcon: me
2688
+ }, be = /* @__PURE__ */ e((e, t) => {
2689
+ if (t === "sandbox") {
2690
+ let t = n("#i" + e).node()?.contentDocument;
2691
+ if (!t) throw Error(`Sandbox iframe #i${e} is missing its content document`);
2692
+ return {
2693
+ root: n(t.body),
2694
+ doc: t
2695
+ };
2696
+ }
2697
+ return {
2698
+ root: n("body"),
2699
+ doc: document
2700
+ };
2701
+ }, "getDiagramRoot"), xe = /* @__PURE__ */ new Set([
2702
+ "system_queue",
2703
+ "external_system_queue",
2704
+ "container_queue",
2705
+ "external_container_queue",
2706
+ "component_queue",
2707
+ "external_component_queue"
2708
+ ]), Se = /* @__PURE__ */ new Set([
2709
+ "system_db",
2710
+ "external_system_db",
2711
+ "container_db",
2712
+ "external_container_db",
2713
+ "component_db",
2714
+ "external_component_db"
2715
+ ]), Ce = {
2716
+ person: "person",
2717
+ box: "rounded",
2718
+ rounded: "rounded",
2719
+ cylinder: "cylinder",
2720
+ database: "cylinder",
2721
+ db: "cylinder",
2722
+ queue: "h-cyl",
2723
+ pipe: "h-cyl",
2724
+ component: "fr-rect"
2725
+ }, we = /* @__PURE__ */ e((e) => e ? Ce[e.toLowerCase()] : void 0, "keywordShape"), Te = /* @__PURE__ */ e((e) => {
2726
+ let t = we(e.shape) ?? we(e.sprite);
2727
+ if (t) return t;
2728
+ if (e.tags) for (let t of e.tags.split(",")) {
2729
+ let e = we(t.trim());
2730
+ if (e) return e;
2731
+ }
2732
+ let n = e.typeC4Shape.text;
2733
+ return n === "person" || n === "external_person" ? "person" : Se.has(n) ? "cylinder" : xe.has(n) ? "h-cyl" : "rounded";
2734
+ }, "resolveNodeShape"), Ee = {
2735
+ person: "Person",
2736
+ system: "Software System",
2737
+ container: "Container",
2738
+ component: "Component"
2739
+ }, De = /* @__PURE__ */ e((e) => {
2740
+ let t = e.replace(/^external_/, "").replace(/_(db|queue)$/, "");
2741
+ return Ee[t] ?? t.replace(/_/g, " ");
2742
+ }, "stereotypeLabel"), Oe = /* @__PURE__ */ e((e) => e.startsWith("external_"), "isExternal"), ke = /* @__PURE__ */ e((e) => {
2743
+ let t = De(e.typeC4Shape.text);
2744
+ return e.techn?.text ? `[${t}: ${e.techn.text}]` : `[${t}]`;
2745
+ }, "stereotypeText"), Ae = [
2746
+ "person",
2747
+ "system",
2748
+ "system_db",
2749
+ "system_queue",
2750
+ "container",
2751
+ "container_db",
2752
+ "container_queue",
2753
+ "component",
2754
+ "component_db",
2755
+ "component_queue"
2756
+ ].flatMap((e) => [e, `external_${e}`]), je = new Set(Ae), Me = /* @__PURE__ */ e((e) => je.has(e), "isC4ElementType"), Ne = /* @__PURE__ */ e((e, t) => {
2757
+ let n = e.typeC4Shape.text, r = e.bgColor ?? (Me(n) && t[`${n}_bg_color`]), i = e.borderColor ?? (Me(n) && t[`${n}_border_color`]), a = [];
2758
+ return r && a.push(`fill:${r}`), i && a.push(`stroke:${i}`), a.push(`color:${e.fontColor ?? "#FFFFFF"}`), a;
2759
+ }, "elementCssStyles"), Pe = /* @__PURE__ */ e((e, t, n, r, i) => {
2760
+ let a = e.typeC4Shape.text, o = ["c4-shape", `c4-${a}`];
2761
+ Oe(a) && o.push("c4-external");
2762
+ let s = Te(e), l = Ne(e, t);
2763
+ return (s === "rounded" || s === "fr-rect") && l.push("rx:12px", "ry:12px"), {
2764
+ id: e.alias,
2765
+ label: e.label.text,
2766
+ stereotype: ke(e),
2767
+ description: e.descr?.text ? [e.descr.text] : void 0,
2768
+ labelType: "string",
2769
+ isGroup: !1,
2770
+ shape: s,
2771
+ cssClasses: o.join(" "),
2772
+ cssStyles: l,
2773
+ padding: n,
2774
+ look: r,
2775
+ useHtmlLabels: !1,
2776
+ width: i
2777
+ };
2778
+ }, "buildC4Node"), Fe = 0, Ie = 0, Le = 4, Re = 2;
2779
+ v.yy = ce;
2780
+ var $ = {}, ze = class {
2776
2781
  static {
2777
2782
  e(this, "Bounds");
2778
2783
  }
2779
2784
  constructor(e) {
2780
- 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());
2785
+ 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());
2781
2786
  }
2782
2787
  setData(e, t, n, r) {
2783
2788
  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;
2784
2789
  }
2785
2790
  updateVal(e, t, n, r) {
2786
- e[t] === void 0 ? e[t] = n : e[t] = r(n, e[t]);
2791
+ e[t] = e[t] === void 0 ? n : r(n, e[t]);
2787
2792
  }
2788
2793
  insert(e) {
2789
2794
  this.nextData.cnt = this.nextData.cnt + 1;
2790
- 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;
2791
- (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);
2795
+ 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;
2796
+ (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);
2792
2797
  }
2793
2798
  init(e) {
2794
2799
  this.name = "", this.data = {
@@ -2803,160 +2808,203 @@ var Z = {}, Oe = class {
2803
2808
  starty: void 0,
2804
2809
  stopy: void 0,
2805
2810
  cnt: 0
2806
- }, ke(e.db.getConfig());
2811
+ }, Be(e.db.getConfig());
2807
2812
  }
2808
2813
  bumpLastMargin(e) {
2809
2814
  this.data.stopx += e, this.data.stopy += e;
2810
2815
  }
2811
- }, ke = /* @__PURE__ */ e(function(e) {
2812
- 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);
2813
- }, "setConf"), Ae = /* @__PURE__ */ e((e, t) => ({
2814
- fontFamily: e[t + "FontFamily"],
2815
- fontSize: e[t + "FontSize"],
2816
- fontWeight: e[t + "FontWeight"]
2817
- }), "c4ShapeFont"), je = /* @__PURE__ */ e((e) => ({
2816
+ }, Be = /* @__PURE__ */ e(function(e) {
2817
+ o($, e), e?.fontFamily && ($.personFontFamily = $.systemFontFamily = $.messageFontFamily = e.fontFamily), e?.fontSize && ($.personFontSize = $.systemFontSize = $.messageFontSize = e.fontSize), e?.fontWeight && ($.personFontWeight = $.systemFontWeight = $.messageFontWeight = e.fontWeight);
2818
+ }, "setConf"), Ve = /* @__PURE__ */ e((e) => ({
2818
2819
  fontFamily: e.boundaryFontFamily,
2819
2820
  fontSize: e.boundaryFontSize,
2820
2821
  fontWeight: e.boundaryFontWeight
2821
- }), "boundaryFont"), Me = /* @__PURE__ */ e((e) => ({
2822
+ }), "boundaryFont"), He = /* @__PURE__ */ e((e) => ({
2822
2823
  fontFamily: e.messageFontFamily,
2823
2824
  fontSize: e.messageFontSize,
2824
2825
  fontWeight: e.messageFontWeight
2825
2826
  }), "messageFont");
2826
- function Q(e, t, n, r, i) {
2827
- 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);
2828
- else {
2829
- let n = t[e].text.split(s.lineBreakRegex);
2830
- t[e].textLines = n.length;
2831
- let i = 0;
2832
- t[e].height = 0, t[e].width = 0;
2833
- 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;
2834
- }
2835
- }
2836
- e(Q, "calcC4ShapeTextWH");
2837
- var Ne = /* @__PURE__ */ e(function(e, t, n) {
2838
- 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;
2839
- let r = t.wrap && Z.wrap, i = je(Z);
2840
- i.fontSize += 2, i.fontWeight = "bold", Q("label", t, r, i, g(t.label.text, i)), X.drawBoundary(e, t, Z);
2841
- }, "drawBoundary"), Pe = /* @__PURE__ */ e(function(e, t, n, r) {
2842
- let i = 0;
2843
- for (let a of r) {
2844
- i = 0;
2845
- let r = n[a], o = Ae(Z, r.typeC4Shape.text);
2846
- 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 = {
2847
- width: 0,
2848
- height: 0,
2849
- Y: 0
2850
- }, r.typeC4Shape.text) {
2851
- case "person":
2852
- case "external_person":
2853
- r.image.width = 48, r.image.height = 48, r.image.Y = i, i = r.image.Y + r.image.height;
2854
- break;
2827
+ function Ue(e, t, n, r, i) {
2828
+ let a = t[e];
2829
+ if (!a.width) {
2830
+ if (n) a.text = p(a.text, i, r), a.textLines = a.text.split(s.lineBreakRegex).length, a.width = i, a.height = m(a.text, r);
2831
+ else {
2832
+ let e = a.text.split(s.lineBreakRegex);
2833
+ a.textLines = e.length;
2834
+ let t = 0;
2835
+ a.height = 0, a.width = 0;
2836
+ for (let n of e) a.width = Math.max(h(n, r), a.width), t = m(n, r), a.height += t;
2855
2837
  }
2856
- r.sprite && (r.image.width = 48, r.image.height = 48, r.image.Y = i, i = r.image.Y + r.image.height);
2857
- let s = r.wrap && Z.wrap, l = Z.width - Z.c4ShapePadding * 2, u = Ae(Z, r.typeC4Shape.text);
2858
- 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);
2859
- let d = i, f = r.label.width;
2860
- 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);
2861
2838
  }
2862
- e.bumpLastMargin(Z.c4ShapeMargin);
2863
- }, "drawC4ShapeArray"), $ = class {
2839
+ return a;
2840
+ }
2841
+ e(Ue, "calcC4ShapeTextWH");
2842
+ var We = /* @__PURE__ */ e(function(e, t, n) {
2843
+ let r = n.data.startx, i = n.data.starty;
2844
+ t.x = r, t.y = i, t.width = n.data.stopx - r, t.height = n.data.stopy - i, t.label.y = $.c4ShapeMargin - 35;
2845
+ let a = t.wrap && $.wrap, o = Ve($);
2846
+ o.fontSize += 2, o.fontWeight = "bold", Ue("label", t, a, o, h(t.label.text, o)), Q.drawBoundary(e, t, $);
2847
+ }, "drawBoundary"), Ge = /* @__PURE__ */ e(async function(t, n, r, i) {
2848
+ let a = u(), o = a.look ?? "classic", s = { config: a }, l = n.attr("id") ?? "", d = i.map((e) => r[Number(e)]), f = /* @__PURE__ */ e((e) => {
2849
+ let t = e.shape ? g[e.shape] : void 0;
2850
+ if (!t) throw Error(`C4: no shape handler for "${e.shape}"`);
2851
+ return t;
2852
+ }, "shapeHandlerFor");
2853
+ await Promise.all(d.map(async (e) => {
2854
+ let t = Pe(e, $, $.c4ShapePadding, o, $.width);
2855
+ t.domId = `${l}-${t.id}`;
2856
+ let r = await f(t)(n, t, s);
2857
+ e.width = t.width ?? $.width, e.height = t.height ?? $.height, e.margin = $.c4ShapeMargin, r.remove();
2858
+ }));
2859
+ for (let e of d) t.insert(e);
2860
+ await Promise.all(d.map(async (e) => {
2861
+ let t = Pe(e, $, $.c4ShapePadding, o, $.width);
2862
+ t.domId = `${l}-${t.id}`, t.x = e.x + e.width / 2, t.y = e.y + e.height / 2;
2863
+ let r = n.append("g").attr("transform", `translate(${e.x + e.width / 2}, ${e.y + e.height / 2})`);
2864
+ await f(t)(r, t, s), e.intersect = t.intersect;
2865
+ })), t.bumpLastMargin($.c4ShapeMargin);
2866
+ }, "drawC4ShapeArray"), Ke = class {
2864
2867
  static {
2865
2868
  e(this, "Point");
2866
2869
  }
2867
2870
  constructor(e, t) {
2868
2871
  this.x = e, this.y = t;
2869
2872
  }
2870
- }, Fe = /* @__PURE__ */ e(function(e, t) {
2871
- 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;
2872
- 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;
2873
- }, "getIntersectPoint"), Ie = /* @__PURE__ */ e(function(e, t) {
2873
+ }, qe = /* @__PURE__ */ e(function(e, t) {
2874
+ if (!e.intersect) throw Error(`C4 shape "${e.alias}" has no intersect function. Please report this to https://github.com/mermaid-js/mermaid/issues`);
2875
+ let { x: n, y: r } = e.intersect(t);
2876
+ return new Ke(n, r);
2877
+ }, "getIntersectPoint"), Je = /* @__PURE__ */ e(function(e, t) {
2874
2878
  let n = {
2875
2879
  x: 0,
2876
2880
  y: 0
2877
2881
  };
2878
2882
  n.x = t.x + t.width / 2, n.y = t.y + t.height / 2;
2879
- let r = Fe(e, n);
2883
+ let r = qe(e, n);
2880
2884
  return n.x = e.x + e.width / 2, n.y = e.y + e.height / 2, {
2881
2885
  startPoint: r,
2882
- endPoint: Fe(t, n)
2886
+ endPoint: qe(t, n)
2883
2887
  };
2884
- }, "getIntersectPoints"), Le = /* @__PURE__ */ e(function(e, t, n, r, i) {
2885
- let a = 0;
2888
+ }, "getIntersectPoints"), Ye = /* @__PURE__ */ e(function(e, t, n, r, i) {
2889
+ let a = r.db.getC4Type(), o = 0;
2886
2890
  for (let e of t) {
2887
- a += 1;
2888
- let t = e.wrap && Z.wrap, i = Me(Z);
2889
- r.db.getC4Type() === "C4Dynamic" && (e.label.text = a + ": " + e.label.text);
2890
- let o = g(e.label.text, i);
2891
- 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));
2892
- let s = Ie(n(e.from), n(e.to));
2893
- e.startPoint = s.startPoint, e.endPoint = s.endPoint;
2891
+ o += 1;
2892
+ let t = e.wrap && $.wrap, r = He($);
2893
+ a === "C4Dynamic" && (e.label.text = o + ": " + e.label.text);
2894
+ let i = h(e.label.text, r);
2895
+ 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));
2896
+ let s = n(e.from), l = n(e.to);
2897
+ if (!s || !l) throw Error(`C4 rel "${e.from}" -> "${e.to}" references an unknown shape`);
2898
+ let u = Je(s, l);
2899
+ if (!u.startPoint || !u.endPoint) throw Error(`Could not calculate intersection points for rel "${e.from}" -> "${e.to}"`);
2900
+ e.startPoint = u.startPoint, e.endPoint = u.endPoint;
2894
2901
  }
2895
- X.drawRels(e, t, Z, i);
2902
+ Q.drawRels(e, t, $, i);
2896
2903
  }, "drawRels");
2897
- function Re(e, t, n, r, i) {
2898
- let a = new Oe(i);
2899
- a.data.widthLimit = n.data.widthLimit / Math.min(De, r.length);
2900
- for (let [o, s] of r.entries()) {
2904
+ async function Xe(e, t, n, r, i) {
2905
+ let a = i.db, o = new ze(i);
2906
+ o.data.widthLimit = n.data.widthLimit / Math.min(Re, r.length);
2907
+ for (let [s, l] of r.entries()) {
2901
2908
  let r = 0;
2902
- s.image = {
2909
+ l.image = {
2903
2910
  width: 0,
2904
2911
  height: 0,
2905
2912
  Y: 0
2906
- }, s.sprite && (s.image.width = 48, s.image.height = 48, s.image.Y = r, r = s.image.Y + s.image.height);
2907
- let l = s.wrap && Z.wrap, u = je(Z);
2908
- 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 !== "") {
2909
- let e = je(Z);
2910
- e.fontSize -= 2, Q("descr", s, l, e, a.data.widthLimit), s.descr.Y = r + 20, r = s.descr.Y + s.descr.height;
2913
+ }, l.sprite && (l.image.width = 48, l.image.height = 48, l.image.Y = r, r = l.image.Y + l.image.height);
2914
+ let u = l.wrap && $.wrap, d = Ve($);
2915
+ d.fontSize += 2, d.fontWeight = "bold";
2916
+ let f = Ue("label", l, u, d, o.data.widthLimit);
2917
+ if (f.Y = r + 8, r = f.Y + f.height, l.type && l.type.text !== "") {
2918
+ l.type.text = "[" + l.type.text + "]";
2919
+ let e = Ue("type", l, u, Ve($), o.data.widthLimit);
2920
+ e.Y = r + 5, r = e.Y + e.height;
2921
+ }
2922
+ if (l.descr && l.descr.text !== "") {
2923
+ let e = Ve($);
2924
+ e.fontSize -= 2;
2925
+ let t = Ue("descr", l, u, e, o.data.widthLimit);
2926
+ t.Y = r + 20, r = t.Y + t.height;
2911
2927
  }
2912
- if (o == 0 || o % De === 0) {
2913
- let e = n.data.startx + Z.diagramMarginX, t = n.data.stopy + Z.diagramMarginY + r;
2914
- a.setData(e, e, t, t);
2928
+ if (s == 0 || s % Re === 0) {
2929
+ let e = n.data.startx + $.diagramMarginX, t = n.data.stopy + $.diagramMarginY + r;
2930
+ o.setData(e, e, t, t);
2915
2931
  } else {
2916
- let e = a.data.stopx === a.data.startx ? a.data.startx : a.data.stopx + Z.diagramMarginX, t = a.data.starty;
2917
- a.setData(e, e, t, t);
2932
+ let e = o.data.stopx === o.data.startx ? o.data.startx : o.data.stopx + $.diagramMarginX, t = o.data.starty;
2933
+ o.setData(e, e, t, t);
2918
2934
  }
2919
- a.name = s.alias;
2920
- let d = i.db.getC4ShapeArray(s.alias), f = i.db.getC4ShapeKeys(s.alias);
2921
- f.length > 0 && Pe(a, e, d, f), t = s.alias;
2922
- let p = i.db.getBoundaries(t);
2923
- 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);
2935
+ o.name = l.alias;
2936
+ let p = a.getC4ShapeArray(l.alias), m = a.getC4ShapeKeys(l.alias);
2937
+ m.length > 0 && await Ge(o, e, p, m), t = l.alias;
2938
+ let h = a.getBoundaries(t);
2939
+ 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);
2924
2940
  }
2925
2941
  }
2926
- e(Re, "drawInsideBoundary");
2927
- var ze = {
2928
- drawPersonOrSystemArray: Pe,
2929
- drawBoundary: Ne,
2930
- setConf: ke,
2931
- draw: /* @__PURE__ */ e(function(e, r, i, o) {
2932
- Z = u().c4;
2933
- let s = u().securityLevel, l;
2934
- s === "sandbox" && (l = n("#i" + r));
2935
- let d = n(s === "sandbox" ? l.nodes()[0].contentDocument.body : "body"), f = o.db;
2936
- o.db.setWrap(Z.wrap), Ee = f.getC4ShapeInRow(), De = f.getC4BoundaryInRow(), t.debug(`C:${JSON.stringify(Z, null, 2)}`);
2937
- let p = s === "sandbox" ? d.select(`[id="${r}"]`) : n(`[id="${r}"]`);
2938
- X.insertComputerIcon(p, r), X.insertDatabaseIcon(p, r), X.insertClockIcon(p, r);
2939
- let m = new Oe(o);
2940
- m.setData(Z.diagramMarginX, Z.diagramMarginX, Z.diagramMarginY, Z.diagramMarginY), m.data.widthLimit = screen.availWidth, we = Z.diagramMarginX, Te = Z.diagramMarginY;
2941
- let h = o.db.getTitle();
2942
- 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;
2943
- let g = m.data, _ = g.stopy - g.starty + 2 * Z.diagramMarginY, v = g.stopx - g.startx + 2 * Z.diagramMarginX;
2944
- 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);
2945
- let y = h ? 60 : 0;
2946
- p.attr("viewBox", g.startx - Z.diagramMarginX + " -" + (Z.diagramMarginY + y) + " " + v + " " + (_ + y)), t.debug("models:", g);
2942
+ e(Xe, "drawInsideBoundary");
2943
+ var Ze = {
2944
+ drawPersonOrSystemArray: Ge,
2945
+ drawBoundary: We,
2946
+ setConf: Be,
2947
+ draw: /* @__PURE__ */ e(async function(e, n, r, i) {
2948
+ $ = b("c4");
2949
+ let o = u().securityLevel, { root: s } = be(n, o), l = i.db;
2950
+ l.setWrap($.wrap), Le = l.getC4ShapeInRow(), Re = l.getC4BoundaryInRow(), t.debug(`C:${JSON.stringify($, null, 2)}`);
2951
+ let d = s.select(`[id="${n}"]`);
2952
+ Q.insertComputerIcon(d, n), Q.insertDatabaseIcon(d, n), Q.insertClockIcon(d, n);
2953
+ let f = new ze(i);
2954
+ f.setData($.diagramMarginX, $.diagramMarginX, $.diagramMarginY, $.diagramMarginY), f.data.widthLimit = screen.availWidth, Fe = $.diagramMarginX, Ie = $.diagramMarginY;
2955
+ let p = l.getTitle();
2956
+ await Xe(d, "", f, l.getBoundaries(""), i), Q.insertArrowHead(d, n), Q.insertArrowEnd(d, n), Q.insertArrowCrossHead(d, n), Q.insertArrowFilledHead(d, n), Ye(d, l.getRels(), l.getC4Shape, i, n), f.data.stopx = Fe, f.data.stopy = Ie;
2957
+ let m = f.data, h = m.startx, g = m.starty, _ = Ie - g + 2 * $.diagramMarginY, v = Fe - h, y = v + 2 * $.diagramMarginX;
2958
+ p && d.append("text").text(p).attr("x", v / 2 - 4 * $.diagramMarginX).attr("y", g + $.diagramMarginY), a(d, _, y, $.useMaxWidth);
2959
+ let x = p ? 60 : 0;
2960
+ d.attr("viewBox", h - $.diagramMarginX + " -" + ($.diagramMarginY + x) + " " + y + " " + (_ + x)), t.debug("models:", m);
2947
2961
  }, "draw")
2948
- }, Be = {
2949
- parser: x,
2950
- db: ue,
2951
- renderer: ze,
2962
+ }, Qe = /* @__PURE__ */ e(() => {
2963
+ let e = u().c4 ?? {}, t = new CSSStyleSheet();
2964
+ for (let n of Ae) {
2965
+ 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`];
2966
+ 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));
2967
+ }
2968
+ return [...t.cssRules].filter((e) => e.style.length > 0).map((e) => ` ${e.cssText}`).join("\n");
2969
+ }, "elementFontStyles"), $e = {
2970
+ parser: y,
2971
+ db: ce,
2972
+ renderer: Ze,
2952
2973
  styles: /* @__PURE__ */ e((e) => `.person {
2953
2974
  stroke: ${e.personBorder};
2954
2975
  fill: ${e.personBkg};
2955
2976
  }
2977
+ ${Qe()}
2978
+
2979
+ /* The element font colour is set inline per element (default white); the
2980
+ label text takes it via currentColor. */
2981
+ .c4-shape .label,
2982
+ .c4-shape .label text {
2983
+ color: inherit;
2984
+ fill: currentColor;
2985
+ }
2986
+ /* Structurizr typography: bold name, smaller stereotype/type and description lines. */
2987
+ .c4-shape .label .c4-name {
2988
+ font-weight: bold;
2989
+ }
2990
+ .c4-shape .label .c4-type {
2991
+ font-size: 0.75em;
2992
+ }
2993
+ .c4-shape .label .c4-descr {
2994
+ font-size: 0.82em;
2995
+ }
2996
+ .c4-shape .basic,
2997
+ .c4-shape rect,
2998
+ .c4-shape path,
2999
+ .c4-shape circle,
3000
+ .c4-shape ellipse,
3001
+ .c4-shape line {
3002
+ stroke-width: 2px;
3003
+ }
2956
3004
  `, "getStyles"),
2957
3005
  init: /* @__PURE__ */ e(({ c4: e, wrap: t }) => {
2958
- ze.setConf(e), ue.setWrap(t);
3006
+ Ze.setConf(e), ce.setWrap(t);
2959
3007
  }, "init")
2960
3008
  };
2961
3009
  //#endregion
2962
- export { Be as diagram };
3010
+ export { $e as diagram };