@pi-outpost/embed 0.32.3 → 0.33.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (234) hide show
  1. package/dist/{abnfDiagram-VCTEODGH-SjZtzoAs.cjs → abnfDiagram-YUKMZFIV-CgM8_qF6.cjs} +1 -1
  2. package/dist/{abnfDiagram-VCTEODGH-BX4P82Y6.js → abnfDiagram-YUKMZFIV-dNHR2FX4.js} +5 -5
  3. package/dist/architecture-WOLXFQ4H-DupyKILn.cjs +1 -0
  4. package/dist/architecture-WOLXFQ4H-X4ZWxzi-.js +3 -0
  5. package/dist/{architectureDiagram-5GKGNRK7-BRdxCCja.js → architectureDiagram-47P4ROYG-C_rUoWaO.js} +31 -31
  6. package/dist/{architectureDiagram-5GKGNRK7-wrDPdf3y.cjs → architectureDiagram-47P4ROYG-bflaQP1L.cjs} +3 -3
  7. package/dist/{blockDiagram-OSKFZWR5-Boo8WJyt.cjs → blockDiagram-E7TT5TSB-BKw9FE2U.cjs} +19 -8
  8. package/dist/{blockDiagram-OSKFZWR5-B1pU8Z2f.js → blockDiagram-E7TT5TSB-CEa2A5E9.js} +217 -193
  9. package/dist/c4Diagram-CRA5TL53-C-PuMGA5.cjs +38 -0
  10. package/dist/{c4Diagram-7LVT6UL2-WfERxhw2.js → c4Diagram-CRA5TL53-CtJh9DsO.js} +283 -273
  11. package/dist/channel-BjC1TKrU.cjs +1 -0
  12. package/dist/{channel-Cf_XiG-0.js → channel-DCXZw5aW.js} +1 -1
  13. package/dist/{chunk-OSK3NFVY-BUXOUgUl.js → chunk-2BW5OAIV-DWtmlmt_.js} +178 -154
  14. package/dist/chunk-2BW5OAIV-FkhgcL6B.cjs +10 -0
  15. package/dist/{chunk-75Z2AOVW-DoA8rENV.js → chunk-3YJQHVM4-BNbfg-7y.js} +235 -231
  16. package/dist/chunk-3YJQHVM4-ChvNe1M8.cjs +2 -0
  17. package/dist/chunk-4EA7E6EY-3OELTJ93.cjs +1 -0
  18. package/dist/{chunk-P2QGCYS3-BoMkrMIF.js → chunk-4EA7E6EY-B5P7n2an.js} +6 -6
  19. package/dist/{chunk-F27PBJKO-s9M3oGHp.js → chunk-7TKQ45FW-CD1KuemG.js} +2 -2
  20. package/dist/{chunk-F27PBJKO-3UPgzIlN.cjs → chunk-7TKQ45FW-Djscho_M.cjs} +1 -1
  21. package/dist/{chunk-SVP7TREG-CTKSOFlx.cjs → chunk-AW2ZBBNX-C4uNh90t.cjs} +3 -3
  22. package/dist/{chunk-SVP7TREG-weNUySou.js → chunk-AW2ZBBNX-CVsDDdv5.js} +33 -33
  23. package/dist/{chunk-GVQU2GXP-iZT_vNLp.cjs → chunk-DBDB3WZW-DSRcln4l.cjs} +1 -1
  24. package/dist/{chunk-GVQU2GXP-BhLneNgJ.js → chunk-DBDB3WZW-DpEOsLsQ.js} +3 -3
  25. package/dist/chunk-DUW6YSOI-2RXTEh_8.cjs +1 -0
  26. package/dist/chunk-DUW6YSOI-CVhxvrBO.js +10 -0
  27. package/dist/{chunk-GMAD6QVW-DZ2r0pLj.js → chunk-E2ZNV5FY-Bu796yUY.js} +354 -361
  28. package/dist/chunk-E2ZNV5FY-DIRTchKA.cjs +72 -0
  29. package/dist/chunk-EU5HNXII-DNBbmfcI.cjs +213 -0
  30. package/dist/{chunk-3NF5O7KM-DQV4G__C.js → chunk-EU5HNXII-DW-QTb0f.js} +426 -357
  31. package/dist/chunk-FVRAUYC3-Crqd-lTD.cjs +1 -0
  32. package/dist/chunk-FVRAUYC3-tiT7dtx-.js +356 -0
  33. package/dist/{chunk-PWAF6VOD-9dCi1q-p.js → chunk-HJ2JQQFS-CgYTXthn.js} +2 -2
  34. package/dist/{chunk-PWAF6VOD-CZZKCekP.cjs → chunk-HJ2JQQFS-DnrogIdt.cjs} +1 -1
  35. package/dist/chunk-HTAEGDNF-D4u24-lD.js +236 -0
  36. package/dist/chunk-HTAEGDNF-I4JlqwMr.cjs +1 -0
  37. package/dist/chunk-J5ZVWO5B-CK5HGA-t.cjs +1 -0
  38. package/dist/chunk-J5ZVWO5B-DEP-pB-1.js +12 -0
  39. package/dist/{chunk-POPQ4Y6H-BRQPB1-9.cjs → chunk-KQW6MTUR-C_XQxsme.cjs} +1 -1
  40. package/dist/{chunk-POPQ4Y6H-vLTNjxsT.js → chunk-KQW6MTUR-c0XOjr_c.js} +2 -2
  41. package/dist/chunk-NGNAAXSQ-DM0DL2MX.js +19836 -0
  42. package/dist/chunk-NGNAAXSQ-kHtfTQLE.cjs +136 -0
  43. package/dist/chunk-NTY3LDVX-CvRtOCpm.js +363 -0
  44. package/dist/chunk-NTY3LDVX-DBVRlnMJ.cjs +1 -0
  45. package/dist/chunk-VPRB5NB3-CT204jN6.cjs +129 -0
  46. package/dist/{chunk-DU6HZSFF-BW30DVuW.js → chunk-VPRB5NB3-DJh7spRO.js} +791 -611
  47. package/dist/chunk-XC4XBNZT-BTUjiQhE.cjs +62 -0
  48. package/dist/{chunk-4HAMMTFA-C2YXJpQw.js → chunk-XC4XBNZT-CSiWBPH9.js} +1378 -1079
  49. package/dist/classDiagram-v2-K4WV4PDN-BndXIwai.cjs +217 -0
  50. package/dist/{chunk-HLEWEB6X-BrzeadBj.js → classDiagram-v2-K4WV4PDN-C39xKke0.js} +254 -214
  51. package/dist/{conversationExport-D2ekPeYe.cjs → conversationExport-BeO-f3PY.cjs} +1 -1
  52. package/dist/{conversationExport-QWEGKkKB.js → conversationExport-DZ2Xi8Lb.js} +2 -2
  53. package/dist/{conversationHistory-BylZCAb1.js → conversationHistory-CT_-smUm.js} +9099 -6555
  54. package/dist/conversationHistory-CZD9jO6h.cjs +287 -0
  55. package/dist/cynefin-EF2NZ3EQ-BB_WO8YQ.js +3 -0
  56. package/dist/cynefin-EF2NZ3EQ-Du3-s5Z7.cjs +1 -0
  57. package/dist/{cynefinDiagram-5FMLGOSQ-GvGZco52.cjs → cynefinDiagram-3GCD6N5R-Bmvj-sQO.cjs} +1 -1
  58. package/dist/{cynefinDiagram-5FMLGOSQ-BEFzUfsd.js → cynefinDiagram-3GCD6N5R-C2CRSeJl.js} +14 -14
  59. package/dist/dagre-W4DXFKR2-ECmxkO0T.js +2356 -0
  60. package/dist/dagre-W4DXFKR2-aPKdYPEj.cjs +4 -0
  61. package/dist/diagram-2UJZ2QOL-B1JKtFHG.cjs +200 -0
  62. package/dist/diagram-2UJZ2QOL-CJRsGDwn.js +5081 -0
  63. package/dist/{diagram-VX7I27RA-Bx9fEhR0.cjs → diagram-OVF4WLC6-CwZeVpHT.cjs} +1 -1
  64. package/dist/{diagram-VX7I27RA-BK8jsKkD.js → diagram-OVF4WLC6-D6r6aTeO.js} +61 -61
  65. package/dist/{diagram-S7CK7UJ4-BH8mrGrv.js → diagram-PFPMY2P6-BpOJbdZ5.js} +15 -15
  66. package/dist/{diagram-S7CK7UJ4-BA67ZpiO.cjs → diagram-PFPMY2P6-DlLbGc_k.cjs} +3 -3
  67. package/dist/{diagram-Z3DM3KII-jy895UiZ.cjs → diagram-UMYRVEAY-BE-t_ZdV.cjs} +1 -1
  68. package/dist/{diagram-Z3DM3KII-CqouFf3D.js → diagram-UMYRVEAY-blW7NpUU.js} +14 -14
  69. package/dist/{diagram-UQ7AKVKN-Bvz7faiB.js → diagram-YEKJPTXX-BOgf87BN.js} +15 -15
  70. package/dist/{diagram-UQ7AKVKN-OteiyKD9.cjs → diagram-YEKJPTXX-CeQjir5H.cjs} +2 -2
  71. package/dist/diagram-ZIFT7M5P-BHePHmHl.cjs +3 -0
  72. package/dist/{diagram-VSXAHHWV-l9f6spkp.js → diagram-ZIFT7M5P-CZOnEYez.js} +40 -25
  73. package/dist/{docxExport-DK8uhXvT.js → docxExport-Cyk5ToUi.js} +1 -1
  74. package/dist/{docxExport-Dt55TJ2h.cjs → docxExport-DF-PXilo.cjs} +1 -1
  75. package/dist/{ebnfDiagram-PWID7BFC-Bwmmg23f.js → ebnfDiagram-VR2GEFS7-Cr0a3Ho_.js} +5 -5
  76. package/dist/{ebnfDiagram-PWID7BFC-BQZKHpUr.cjs → ebnfDiagram-VR2GEFS7-cgyTJ-Xs.cjs} +1 -1
  77. package/dist/elk-IJKZMXRS-NO3xNT-V.cjs +27 -0
  78. package/dist/elk-IJKZMXRS-V31is6hS.js +47984 -0
  79. package/dist/{erDiagram-2YWLMYGG-RTHTTqyH.js → erDiagram-O2IAPWRE-CP06GjjM.js} +60 -56
  80. package/dist/{erDiagram-2YWLMYGG-CuEEIv1I.cjs → erDiagram-O2IAPWRE-CnkFrABC.cjs} +13 -13
  81. package/dist/eventmodeling-K75KTNOO-CMoz0K5S.js +3 -0
  82. package/dist/eventmodeling-K75KTNOO-DZdZrgwl.cjs +1 -0
  83. package/dist/flowDiagram-OXPTDLAJ-BdYr7Idm.cjs +1 -0
  84. package/dist/flowDiagram-OXPTDLAJ-R_xf7pNW.js +16 -0
  85. package/dist/{ganttDiagram-EL5Y4UJY-PTWIufq8.cjs → ganttDiagram-R7TSEDQI-Jhax10tw.cjs} +3 -3
  86. package/dist/{ganttDiagram-EL5Y4UJY-BTvevd1z.js → ganttDiagram-R7TSEDQI-y1bDU8Ba.js} +103 -92
  87. package/dist/gitGraph-VSP46ZUC-DoTshgkY.js +3 -0
  88. package/dist/gitGraph-VSP46ZUC-lawIO6K6.cjs +1 -0
  89. package/dist/{gitGraphDiagram-WWUBYQGX-D5yozoaq.cjs → gitGraphDiagram-XJZIOB7I-CLZLQcPk.cjs} +5 -5
  90. package/dist/{gitGraphDiagram-WWUBYQGX-Bh9F7wif.js → gitGraphDiagram-XJZIOB7I-CYZa0-Ct.js} +45 -45
  91. package/dist/info-OHQRW6UA-DPTZOb30.js +3 -0
  92. package/dist/info-OHQRW6UA-deop1PPz.cjs +1 -0
  93. package/dist/infoDiagram-5W2HQ5XZ-D8fJK3ph.cjs +2 -0
  94. package/dist/{infoDiagram-FKFFQAWI-D6en39j4.js → infoDiagram-5W2HQ5XZ-Dw_D4zI1.js} +5 -5
  95. package/dist/{ishikawaDiagram-5VMMS53U-CvVqTWku.js → ishikawaDiagram-K3B6WC7H-BeLiZFVY.js} +25 -25
  96. package/dist/{ishikawaDiagram-5VMMS53U-DN23jmFw.cjs → ishikawaDiagram-K3B6WC7H-DtjgiZAB.cjs} +2 -2
  97. package/dist/{journeyDiagram-EYS64GPL-CqhBN0KZ.js → journeyDiagram-COXZFDF6-B-qvdudB.js} +31 -31
  98. package/dist/{journeyDiagram-EYS64GPL-Co9rp-Q1.cjs → journeyDiagram-COXZFDF6-Dge2AV0B.cjs} +4 -4
  99. package/dist/{kanban-definition-UXKFOSKX-DzKPVjAq.cjs → kanban-definition-P3RFRI5V-C02YfFZv.cjs} +4 -4
  100. package/dist/{kanban-definition-UXKFOSKX-CWx_Y40t.js → kanban-definition-P3RFRI5V-D0XAXDl8.js} +42 -42
  101. package/dist/{line-D6gR53Af.cjs → line-5eGinYgh.cjs} +1 -1
  102. package/dist/{line-CwYnx9Ke.js → line-BTenwQwq.js} +1 -1
  103. package/dist/loadReferencedImage-C60bzMNm.cjs +1 -0
  104. package/dist/{loadReferencedImage-BKEDAhWQ.js → loadReferencedImage-XQS67fhR.js} +3 -1
  105. package/dist/mermaid-parser.core-BHBS1DqP.cjs +6 -0
  106. package/dist/{mermaid-parser.core-DLNlSmfj.js → mermaid-parser.core-CI12FMcX.js} +163 -163
  107. package/dist/mermaid.core-4MZ-Iwu7.cjs +43 -0
  108. package/dist/{mermaid.core-DI1iFk6G.js → mermaid.core-BJkDCzqA.js} +875 -1150
  109. package/dist/{mindmap-definition-THT77NOG-Bo3D8RRT.cjs → mindmap-definition-LZFPQGKD-CXV1hV3a.cjs} +3 -3
  110. package/dist/{mindmap-definition-THT77NOG-B9hdpQgy.js → mindmap-definition-LZFPQGKD-gYumvdwo.js} +78 -78
  111. package/dist/packet-JDAUHWVQ-Bcik24Kz.js +3 -0
  112. package/dist/packet-JDAUHWVQ-CrY7ylWJ.cjs +1 -0
  113. package/dist/{pegDiagram-XKGWAZYB-Cx-wZf4B.cjs → pegDiagram-BGZESJAR-BICf3jMN.cjs} +1 -1
  114. package/dist/{pegDiagram-XKGWAZYB-CIBfY2Ob.js → pegDiagram-BGZESJAR-Dw9pRv5d.js} +5 -5
  115. package/dist/pi-outpost-embed.cjs +9 -10
  116. package/dist/pi-outpost-embed.js +2833 -2786
  117. package/dist/pie-XZMESJXO-BYQC-ufi.js +3 -0
  118. package/dist/pie-XZMESJXO-WjCBboSE.cjs +1 -0
  119. package/dist/{pieDiagram-E7YTZNPT-BC-pW4cK.cjs → pieDiagram-CAPJLFHJ-CF8cTQpC.cjs} +2 -2
  120. package/dist/{pieDiagram-E7YTZNPT-SG9oy_nV.js → pieDiagram-CAPJLFHJ-uz37FR9I.js} +18 -18
  121. package/dist/{quadrantDiagram-AXDQQJYC-C65HQ6gT.js → quadrantDiagram-GDMTTRAM-C4rt8LIh.js} +40 -40
  122. package/dist/{quadrantDiagram-AXDQQJYC-zPfqM9Q4.cjs → quadrantDiagram-GDMTTRAM-D9SYFJ_P.cjs} +2 -2
  123. package/dist/radar-ABXABTNO-BoQ7hH7Z.cjs +1 -0
  124. package/dist/radar-ABXABTNO-MxbyaZja.js +3 -0
  125. package/dist/railroad-I3PHUGI6-DckUArT-.js +3 -0
  126. package/dist/railroad-I3PHUGI6-DuGTlHry.cjs +1 -0
  127. package/dist/railroad-abnf-LNEFI6M7-DmAJaMEu.js +3 -0
  128. package/dist/railroad-abnf-LNEFI6M7-DoWf9u55.cjs +1 -0
  129. package/dist/railroad-ebnf-DWYD2UWJ-Bf05ZyW1.cjs +1 -0
  130. package/dist/railroad-ebnf-DWYD2UWJ-CS2AUYSv.js +3 -0
  131. package/dist/railroad-peg-JR7BVNR7-B-nctVbV.js +3 -0
  132. package/dist/railroad-peg-JR7BVNR7-CcV5KH4m.cjs +1 -0
  133. package/dist/{railroadDiagram-O6MQD6OU-3JsgWyLe.cjs → railroadDiagram-SM67HX2B-GgesxX7v.cjs} +1 -1
  134. package/dist/{railroadDiagram-O6MQD6OU-DLBEWyaH.js → railroadDiagram-SM67HX2B-T5SG0kEf.js} +5 -5
  135. package/dist/{requirementDiagram-IS5BZ75X-DwrHgMzq.js → requirementDiagram-X7JNWC4A-BEeCszC1.js} +49 -45
  136. package/dist/{requirementDiagram-IS5BZ75X-D1BMLxZg.cjs → requirementDiagram-X7JNWC4A-BVzf-VRr.cjs} +11 -11
  137. package/dist/{sankeyDiagram-P5KCCOFB-D5BHxcxB.cjs → sankeyDiagram-UM26HJRW-CdBXqklJ.cjs} +3 -3
  138. package/dist/{sankeyDiagram-P5KCCOFB-CcT0ZbW6.js → sankeyDiagram-UM26HJRW-DLDVzhPm.js} +16 -16
  139. package/dist/{sequenceDiagram-WJ2MYXX4-DM6BpXMT.js → sequenceDiagram-ZO4K6R2Y-B8wM6a-A.js} +704 -619
  140. package/dist/sequenceDiagram-ZO4K6R2Y-ytX57BES.cjs +169 -0
  141. package/dist/stateDiagram-v2-TBUQTH76-BTuAbG28.cjs +291 -0
  142. package/dist/{chunk-ZLD2IHE6-CqnVd2rq.js → stateDiagram-v2-TBUQTH76-PRnBJSrY.js} +271 -174
  143. package/dist/swimlanes-N4OXWK64-41SBE_L2.cjs +1 -0
  144. package/dist/{swimlanes-V6O3JKXN-BR7rwPmC.js → swimlanes-N4OXWK64-DipLcZla.js} +1006 -1219
  145. package/dist/swimlanesDiagram-K3J5GTZL-D6tIMgkj.cjs +8 -0
  146. package/dist/swimlanesDiagram-K3J5GTZL-_MehEHMi.js +27 -0
  147. package/dist/timeline-definition-YOQAKGHF-D_LWHCSA.cjs +120 -0
  148. package/dist/{timeline-definition-24CTP7MA-BQmq-H07.js → timeline-definition-YOQAKGHF-h8_spxIb.js} +210 -206
  149. package/dist/treeView-D4JQ5SDB-C3ticT1s.cjs +1 -0
  150. package/dist/treeView-D4JQ5SDB-CEuRf8gK.js +3 -0
  151. package/dist/treemap-SAJKECNS-BwIfwvl-.cjs +1 -0
  152. package/dist/treemap-SAJKECNS-DiC0668-.js +3 -0
  153. package/dist/usecaseDiagram-VIAY4XPW-DCfwvERR.js +7187 -0
  154. package/dist/usecaseDiagram-VIAY4XPW-PJHZiyJN.cjs +328 -0
  155. package/dist/{vennDiagram-4TSXK5OY-BdzbrV6i.js → vennDiagram-BLWOH2XV-_zHkfDVB.js} +43 -43
  156. package/dist/{vennDiagram-4TSXK5OY-D5MMYyff.cjs → vennDiagram-BLWOH2XV-niExkaFk.cjs} +3 -3
  157. package/dist/wardley-7MLQ67FV-BoIyQQ0E.cjs +1 -0
  158. package/dist/wardley-7MLQ67FV-CFF6IT1d.js +3 -0
  159. package/dist/{wardleyDiagram-VM6X3IG4-Ccz1enMd.js → wardleyDiagram-YMQ3BMBF-BKvQkiZP.js} +17 -17
  160. package/dist/{wardleyDiagram-VM6X3IG4-DzZNzmB8.cjs → wardleyDiagram-YMQ3BMBF-btlDrKA6.cjs} +3 -3
  161. package/dist/xychartDiagram-TAQBALBS-CkNZcyIi.cjs +7 -0
  162. package/dist/{xychartDiagram-S5SC5T6Z-B-sQkN_B.js → xychartDiagram-TAQBALBS-DlfKpBG9.js} +34 -30
  163. package/package.json +2 -2
  164. package/dist/architecture-7GRP2DOG-BtgYGXkq.cjs +0 -1
  165. package/dist/architecture-7GRP2DOG-DBQ9eYgM.js +0 -3
  166. package/dist/c4Diagram-7LVT6UL2-BCrC0RQo.cjs +0 -38
  167. package/dist/channel-DcrLLvcO.cjs +0 -1
  168. package/dist/chunk-3NF5O7KM-B-DpUW2r.cjs +0 -168
  169. package/dist/chunk-4HAMMTFA-CtkrBT7X.cjs +0 -62
  170. package/dist/chunk-75Z2AOVW-DOXS9ORa.cjs +0 -2
  171. package/dist/chunk-DU6HZSFF-3Hhp3Fo5.cjs +0 -127
  172. package/dist/chunk-FOHPRMQF-BNNbqxGX.js +0 -21456
  173. package/dist/chunk-FOHPRMQF-tmTlwTeH.cjs +0 -161
  174. package/dist/chunk-GMAD6QVW-B6uvB_wz.cjs +0 -72
  175. package/dist/chunk-HLEWEB6X-aqFoPl02.cjs +0 -206
  176. package/dist/chunk-L3NEJ4N5-BaR_9rF3.js +0 -245
  177. package/dist/chunk-L3NEJ4N5-vW3qRjIb.cjs +0 -1
  178. package/dist/chunk-OSK3NFVY-DU2FGOlI.cjs +0 -10
  179. package/dist/chunk-P2QGCYS3-DWeL9spl.cjs +0 -1
  180. package/dist/chunk-ZLD2IHE6-BZxKwfuv.cjs +0 -231
  181. package/dist/classDiagram-CYGNFDIV-CQLOfBmz.cjs +0 -1
  182. package/dist/classDiagram-CYGNFDIV-DsnY_WNO.js +0 -30
  183. package/dist/classDiagram-v2-TLXNO2FR-CQLOfBmz.cjs +0 -1
  184. package/dist/classDiagram-v2-TLXNO2FR-DeNpu9ZP.js +0 -30
  185. package/dist/conversationHistory-BmpdU77I.cjs +0 -286
  186. package/dist/cynefin-OW5HDTMX-BmLJra-4.cjs +0 -1
  187. package/dist/cynefin-OW5HDTMX-CfYr_cVN.js +0 -3
  188. package/dist/dagre-BMKbPnPh.js +0 -1934
  189. package/dist/dagre-EEW2OxRU.cjs +0 -1
  190. package/dist/dagre-OS7QT2EB-BtJ6v_Nc.js +0 -425
  191. package/dist/dagre-OS7QT2EB-DFi6nnZc.cjs +0 -4
  192. package/dist/diagram-VSXAHHWV-BjsZz1JJ.cjs +0 -3
  193. package/dist/eventmodeling-NTZA5JFV-D57pc07U.cjs +0 -1
  194. package/dist/eventmodeling-NTZA5JFV-DUbGOrrF.js +0 -3
  195. package/dist/flowDiagram-T62WH6J4-YyzE7N5Z.cjs +0 -1
  196. package/dist/flowDiagram-T62WH6J4-ptBWC6KI.js +0 -16
  197. package/dist/gitGraph-4MIJSDKK-CY4IuhXZ.js +0 -3
  198. package/dist/gitGraph-4MIJSDKK-D97vaDci.cjs +0 -1
  199. package/dist/info-A6RAGUB7-Cx39sHYM.js +0 -3
  200. package/dist/info-A6RAGUB7-DT06-FB3.cjs +0 -1
  201. package/dist/infoDiagram-FKFFQAWI-NPtQF4vB.cjs +0 -2
  202. package/dist/loadReferencedImage-DlRgJ4vm.cjs +0 -1
  203. package/dist/mermaid-parser.core-CBiDgMLi.cjs +0 -6
  204. package/dist/mermaid.core-B3QcBB1O.cjs +0 -43
  205. package/dist/packet-AYTQ26CC-BGX2McoE.cjs +0 -1
  206. package/dist/packet-AYTQ26CC-IgkU2VYK.js +0 -3
  207. package/dist/pie-WAS4IAKB-CEyPj3UJ.cjs +0 -1
  208. package/dist/pie-WAS4IAKB-odE0A7fM.js +0 -3
  209. package/dist/radar-RG4KPBEZ-ClYJNseM.cjs +0 -1
  210. package/dist/radar-RG4KPBEZ-DqbNqlJH.js +0 -3
  211. package/dist/railroad-74A4TZTK-Dzt4afqg.js +0 -3
  212. package/dist/railroad-74A4TZTK-hSKcr2y6.cjs +0 -1
  213. package/dist/railroad-abnf-HS5TGJTU-gq2RybTO.js +0 -3
  214. package/dist/railroad-abnf-HS5TGJTU-irEXz0eI.cjs +0 -1
  215. package/dist/railroad-ebnf-LZEXJU2U-CG19A1Xj.cjs +0 -1
  216. package/dist/railroad-ebnf-LZEXJU2U-D-pNpFrj.js +0 -3
  217. package/dist/railroad-peg-WCYAUIDC-BLdK3QCV.cjs +0 -1
  218. package/dist/railroad-peg-WCYAUIDC-Bo7wfe--.js +0 -3
  219. package/dist/sequenceDiagram-WJ2MYXX4-DlVJIIIl.cjs +0 -162
  220. package/dist/stateDiagram-XQSTLZYL-BhzcW44q.js +0 -220
  221. package/dist/stateDiagram-XQSTLZYL-mSOJx_Wv.cjs +0 -1
  222. package/dist/stateDiagram-v2-IH3M54BS-BE5CXOTu.js +0 -30
  223. package/dist/stateDiagram-v2-IH3M54BS-DAa6SuH4.cjs +0 -1
  224. package/dist/swimlanes-V6O3JKXN-BooYLGtP.cjs +0 -1
  225. package/dist/swimlanesDiagram-JKAHXJPX-BaMCBEUQ.cjs +0 -8
  226. package/dist/swimlanesDiagram-JKAHXJPX-lIPwQ8Mc.js +0 -30
  227. package/dist/timeline-definition-24CTP7MA-D6sSmprF.cjs +0 -120
  228. package/dist/treeView-Q6P3EWNA-BmkQxkVU.cjs +0 -1
  229. package/dist/treeView-Q6P3EWNA-CPEEGmNv.js +0 -3
  230. package/dist/treemap-WGGIJYW6-CGULpntJ.js +0 -3
  231. package/dist/treemap-WGGIJYW6-Dmi9HAR8.cjs +0 -1
  232. package/dist/wardley-WFR3VGLG-9zHZLKh9.js +0 -3
  233. package/dist/wardley-WFR3VGLG-B6YvLPJA.cjs +0 -1
  234. package/dist/xychartDiagram-S5SC5T6Z-BOsjfYJh.cjs +0 -7
@@ -1,12 +1,12 @@
1
1
  import { n as e } from "./chunk-Y2CYZVJY-CwsV_8W4.js";
2
2
  import { m as t, p as n } from "./src-Dkp7vqs8.js";
3
- import { A as r, F as i, G as a, H as o, K as s, O as c, U as l, a as u, b as d, c as f, i as p, r as m, s as h, v as g, w as _, x as v, y, z as b } from "./chunk-DU6HZSFF-BW30DVuW.js";
3
+ import { C as r, D as i, F as a, G as o, H as s, U as c, _ as l, a as u, b as d, c as f, i as p, k as m, q as h, r as g, s as _, v, y, z as b } from "./chunk-VPRB5NB3-DJh7spRO.js";
4
4
  import { t as x } from "./dist-DWv23S35.js";
5
- import { g as S, p as C } from "./chunk-75Z2AOVW-DoA8rENV.js";
6
- import { a as w, c as T, i as E, n as D, r as O, s as k } from "./chunk-F27PBJKO-s9M3oGHp.js";
5
+ import { _ as S, m as C } from "./chunk-3YJQHVM4-BNbfg-7y.js";
6
+ import { a as w, c as T, i as E, n as D, r as O, s as k } from "./chunk-7TKQ45FW-CD1KuemG.js";
7
7
  import { t as A } from "./chunk-2Q5K7J3B-DqJF2oYF.js";
8
- import { n as j, r as M } from "./mermaid.core-DI1iFk6G.js";
9
- //#region ../node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-WJ2MYXX4.mjs
8
+ import { n as j, r as M } from "./mermaid.core-BJkDCzqA.js";
9
+ //#region ../node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-ZO4K6R2Y.mjs
10
10
  var N = x(), P = (function() {
11
11
  var t = /* @__PURE__ */ e(function(e, t, n, r) {
12
12
  for (n ||= {}, r = e.length; r--; n[e[r]] = t);
@@ -47,14 +47,14 @@ var N = x(), P = (function() {
47
47
  63,
48
48
  64,
49
49
  73
50
- ], ee = [1, 74], L = [1, 80], R = [1, 81], te = [1, 82], ne = [1, 83], z = [1, 84], B = [1, 85], V = [1, 86], re = [1, 87], H = [1, 88], U = [1, 89], W = [1, 90], ie = [1, 91], ae = [1, 92], oe = [1, 93], G = [1, 94], se = [1, 95], K = [1, 96], ce = [1, 97], le = [1, 98], ue = [1, 99], de = [1, 100], fe = [1, 101], pe = [1, 102], me = [1, 103], he = [1, 104], ge = [1, 105], _e = [2, 78], ve = [
50
+ ], L = [1, 56], ee = [1, 75], R = [1, 81], te = [1, 82], ne = [1, 83], re = [1, 84], ie = [1, 85], ae = [1, 86], oe = [1, 87], se = [1, 88], ce = [1, 89], le = [1, 90], z = [1, 91], ue = [1, 92], de = [1, 93], fe = [1, 94], pe = [1, 95], B = [1, 96], V = [1, 97], me = [1, 98], H = [1, 99], U = [1, 100], W = [1, 101], he = [1, 102], ge = [1, 103], _e = [1, 104], ve = [1, 105], G = [1, 106], ye = [2, 79], K = [2, 78], be = [
51
51
  4,
52
52
  5,
53
53
  17,
54
54
  51,
55
55
  53,
56
56
  54
57
- ], ye = [
57
+ ], xe = [
58
58
  4,
59
59
  5,
60
60
  10,
@@ -86,7 +86,7 @@ var N = x(), P = (function() {
86
86
  63,
87
87
  64,
88
88
  73
89
- ], be = [
89
+ ], Se = [
90
90
  4,
91
91
  5,
92
92
  10,
@@ -119,7 +119,7 @@ var N = x(), P = (function() {
119
119
  63,
120
120
  64,
121
121
  73
122
- ], xe = [
122
+ ], Ce = [
123
123
  4,
124
124
  5,
125
125
  10,
@@ -152,7 +152,7 @@ var N = x(), P = (function() {
152
152
  63,
153
153
  64,
154
154
  73
155
- ], Se = [
155
+ ], we = [
156
156
  4,
157
157
  5,
158
158
  10,
@@ -185,12 +185,13 @@ var N = x(), P = (function() {
185
185
  63,
186
186
  64,
187
187
  73
188
- ], Ce = [5, 52], q = [
188
+ ], Te = [5, 52], q = [
189
+ 62,
189
190
  70,
190
191
  71,
191
192
  72,
192
193
  73
193
- ], J = [1, 151], we = {
194
+ ], Ee = [62, 73], J = [1, 152], De = {
194
195
  trace: /* @__PURE__ */ e(function() {}, "trace"),
195
196
  yy: {},
196
197
  symbols_: {
@@ -461,6 +462,7 @@ var N = x(), P = (function() {
461
462
  [55, 2],
462
463
  [74, 3],
463
464
  [23, 1],
465
+ [23, 1],
464
466
  [69, 1],
465
467
  [69, 1],
466
468
  [69, 1],
@@ -895,90 +897,91 @@ var N = x(), P = (function() {
895
897
  this.$ = a[s - 1].trim();
896
898
  break;
897
899
  case 78:
900
+ case 79:
898
901
  this.$ = {
899
902
  type: "addParticipant",
900
903
  actor: a[s]
901
904
  };
902
905
  break;
903
- case 79:
906
+ case 80:
904
907
  this.$ = r.LINETYPE.SOLID_OPEN;
905
908
  break;
906
- case 80:
909
+ case 81:
907
910
  this.$ = r.LINETYPE.DOTTED_OPEN;
908
911
  break;
909
- case 81:
912
+ case 82:
910
913
  this.$ = r.LINETYPE.SOLID;
911
914
  break;
912
- case 82:
915
+ case 83:
913
916
  this.$ = r.LINETYPE.SOLID_TOP;
914
917
  break;
915
- case 83:
918
+ case 84:
916
919
  this.$ = r.LINETYPE.SOLID_BOTTOM;
917
920
  break;
918
- case 84:
921
+ case 85:
919
922
  this.$ = r.LINETYPE.STICK_TOP;
920
923
  break;
921
- case 85:
924
+ case 86:
922
925
  this.$ = r.LINETYPE.STICK_BOTTOM;
923
926
  break;
924
- case 86:
927
+ case 87:
925
928
  this.$ = r.LINETYPE.SOLID_TOP_DOTTED;
926
929
  break;
927
- case 87:
930
+ case 88:
928
931
  this.$ = r.LINETYPE.SOLID_BOTTOM_DOTTED;
929
932
  break;
930
- case 88:
933
+ case 89:
931
934
  this.$ = r.LINETYPE.STICK_TOP_DOTTED;
932
935
  break;
933
- case 89:
936
+ case 90:
934
937
  this.$ = r.LINETYPE.STICK_BOTTOM_DOTTED;
935
938
  break;
936
- case 90:
939
+ case 91:
937
940
  this.$ = r.LINETYPE.SOLID_ARROW_TOP_REVERSE;
938
941
  break;
939
- case 91:
942
+ case 92:
940
943
  this.$ = r.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;
941
944
  break;
942
- case 92:
945
+ case 93:
943
946
  this.$ = r.LINETYPE.STICK_ARROW_TOP_REVERSE;
944
947
  break;
945
- case 93:
948
+ case 94:
946
949
  this.$ = r.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;
947
950
  break;
948
- case 94:
951
+ case 95:
949
952
  this.$ = r.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;
950
953
  break;
951
- case 95:
954
+ case 96:
952
955
  this.$ = r.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;
953
956
  break;
954
- case 96:
957
+ case 97:
955
958
  this.$ = r.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;
956
959
  break;
957
- case 97:
960
+ case 98:
958
961
  this.$ = r.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;
959
962
  break;
960
- case 98:
963
+ case 99:
961
964
  this.$ = r.LINETYPE.BIDIRECTIONAL_SOLID;
962
965
  break;
963
- case 99:
966
+ case 100:
964
967
  this.$ = r.LINETYPE.DOTTED;
965
968
  break;
966
- case 100:
969
+ case 101:
967
970
  this.$ = r.LINETYPE.BIDIRECTIONAL_DOTTED;
968
971
  break;
969
- case 101:
972
+ case 102:
970
973
  this.$ = r.LINETYPE.SOLID_CROSS;
971
974
  break;
972
- case 102:
975
+ case 103:
973
976
  this.$ = r.LINETYPE.DOTTED_CROSS;
974
977
  break;
975
- case 103:
978
+ case 104:
976
979
  this.$ = r.LINETYPE.SOLID_POINT;
977
980
  break;
978
- case 104:
981
+ case 105:
979
982
  this.$ = r.LINETYPE.DOTTED_POINT;
980
983
  break;
981
- case 105: this.$ = r.parseMessage(a[s].trim().substring(1));
984
+ case 106: this.$ = r.parseMessage(a[s].trim().substring(1));
982
985
  }
983
986
  }, "anonymous"),
984
987
  table: [
@@ -1137,23 +1140,24 @@ var N = x(), P = (function() {
1137
1140
  },
1138
1141
  {
1139
1142
  23: 55,
1143
+ 62: L,
1140
1144
  73: F
1141
1145
  },
1142
1146
  {
1143
- 23: 56,
1147
+ 23: 57,
1148
+ 62: L,
1144
1149
  73: F
1145
1150
  },
1146
- { 5: [1, 57] },
1147
1151
  { 5: [1, 58] },
1148
1152
  { 5: [1, 59] },
1149
1153
  { 5: [1, 60] },
1150
1154
  { 5: [1, 61] },
1155
+ { 5: [1, 62] },
1151
1156
  t(I, [2, 30]),
1152
1157
  t(I, [2, 31]),
1153
- { 33: [1, 62] },
1154
- { 35: [1, 63] },
1158
+ { 33: [1, 63] },
1159
+ { 35: [1, 64] },
1155
1160
  t(I, [2, 34]),
1156
- { 16: [1, 64] },
1157
1161
  { 16: [1, 65] },
1158
1162
  { 16: [1, 66] },
1159
1163
  { 16: [1, 67] },
@@ -1161,70 +1165,106 @@ var N = x(), P = (function() {
1161
1165
  { 16: [1, 69] },
1162
1166
  { 16: [1, 70] },
1163
1167
  { 16: [1, 71] },
1168
+ { 16: [1, 72] },
1164
1169
  {
1165
- 23: 72,
1166
- 55: 73,
1170
+ 23: 73,
1171
+ 55: 74,
1172
+ 62: L,
1167
1173
  73: ee
1168
1174
  },
1169
1175
  {
1170
- 23: 75,
1171
- 55: 76,
1176
+ 23: 76,
1177
+ 55: 77,
1178
+ 62: L,
1172
1179
  73: ee
1173
1180
  },
1174
1181
  {
1175
- 23: 77,
1182
+ 23: 78,
1183
+ 62: L,
1176
1184
  73: F
1177
1185
  },
1178
1186
  {
1179
- 69: 78,
1180
- 72: [1, 79],
1181
- 78: L,
1182
- 79: R,
1183
- 80: te,
1184
- 81: ne,
1185
- 82: z,
1186
- 83: B,
1187
- 84: V,
1188
- 85: re,
1189
- 86: H,
1190
- 87: U,
1191
- 88: W,
1192
- 89: ie,
1193
- 90: ae,
1194
- 91: oe,
1195
- 92: G,
1196
- 93: se,
1197
- 94: K,
1198
- 95: ce,
1199
- 96: le,
1200
- 97: ue,
1201
- 98: de,
1202
- 99: fe,
1203
- 100: pe,
1204
- 101: me,
1205
- 102: he,
1206
- 103: ge
1187
+ 69: 79,
1188
+ 72: [1, 80],
1189
+ 78: R,
1190
+ 79: te,
1191
+ 80: ne,
1192
+ 81: re,
1193
+ 82: ie,
1194
+ 83: ae,
1195
+ 84: oe,
1196
+ 85: se,
1197
+ 86: ce,
1198
+ 87: le,
1199
+ 88: z,
1200
+ 89: ue,
1201
+ 90: de,
1202
+ 91: fe,
1203
+ 92: pe,
1204
+ 93: B,
1205
+ 94: V,
1206
+ 95: me,
1207
+ 96: H,
1208
+ 97: U,
1209
+ 98: W,
1210
+ 99: he,
1211
+ 100: ge,
1212
+ 101: _e,
1213
+ 102: ve,
1214
+ 103: G
1207
1215
  },
1208
1216
  {
1209
- 57: 106,
1210
- 59: [1, 107],
1211
- 67: [1, 108],
1212
- 68: [1, 109]
1213
- },
1214
- {
1215
- 23: 110,
1216
- 73: F
1217
+ 57: 107,
1218
+ 59: [1, 108],
1219
+ 67: [1, 109],
1220
+ 68: [1, 110]
1217
1221
  },
1218
1222
  {
1219
1223
  23: 111,
1224
+ 62: L,
1220
1225
  73: F
1221
1226
  },
1222
- {
1227
+ t([
1228
+ 72,
1229
+ 78,
1230
+ 79,
1231
+ 80,
1232
+ 81,
1233
+ 82,
1234
+ 83,
1235
+ 84,
1236
+ 85,
1237
+ 86,
1238
+ 87,
1239
+ 88,
1240
+ 89,
1241
+ 90,
1242
+ 91,
1243
+ 92,
1244
+ 93,
1245
+ 94,
1246
+ 95,
1247
+ 96,
1248
+ 97,
1249
+ 98,
1250
+ 99,
1251
+ 100,
1252
+ 101,
1253
+ 102,
1254
+ 103
1255
+ ], ye, {
1223
1256
  23: 112,
1257
+ 62: L,
1224
1258
  73: F
1225
- },
1259
+ }),
1226
1260
  {
1227
1261
  23: 113,
1262
+ 62: L,
1263
+ 73: F
1264
+ },
1265
+ {
1266
+ 23: 114,
1267
+ 62: L,
1228
1268
  73: F
1229
1269
  },
1230
1270
  t([
@@ -1258,19 +1298,25 @@ var N = x(), P = (function() {
1258
1298
  102,
1259
1299
  103,
1260
1300
  104
1261
- ], _e),
1301
+ ], K),
1262
1302
  t(I, [2, 6]),
1263
1303
  t(I, [2, 16]),
1264
- t(ve, [2, 10], { 11: 114 }),
1304
+ t(be, [2, 10], { 11: 115 }),
1265
1305
  t(I, [2, 18]),
1266
1306
  {
1267
- 5: [1, 116],
1268
- 20: [1, 115]
1307
+ 5: [1, 117],
1308
+ 20: [1, 116]
1269
1309
  },
1270
- { 5: [1, 117] },
1271
- t(I, [2, 22]),
1272
1310
  { 5: [1, 118] },
1311
+ t(I, [2, 22]),
1273
1312
  { 5: [1, 119] },
1313
+ t([
1314
+ 5,
1315
+ 52,
1316
+ 66,
1317
+ 104
1318
+ ], ye),
1319
+ { 5: [1, 120] },
1274
1320
  t(I, [2, 25]),
1275
1321
  t(I, [2, 26]),
1276
1322
  t(I, [2, 27]),
@@ -1278,84 +1324,84 @@ var N = x(), P = (function() {
1278
1324
  t(I, [2, 29]),
1279
1325
  t(I, [2, 32]),
1280
1326
  t(I, [2, 33]),
1281
- t(ye, a, { 7: 120 }),
1282
- t(ye, a, { 7: 121 }),
1283
- t(ye, a, { 7: 122 }),
1284
- t(be, a, {
1285
- 41: 123,
1286
- 7: 124
1327
+ t(xe, a, { 7: 121 }),
1328
+ t(xe, a, { 7: 122 }),
1329
+ t(xe, a, { 7: 123 }),
1330
+ t(Se, a, {
1331
+ 41: 124,
1332
+ 7: 125
1287
1333
  }),
1288
- t(xe, a, {
1289
- 43: 125,
1290
- 7: 126
1334
+ t(Ce, a, {
1335
+ 43: 126,
1336
+ 7: 127
1291
1337
  }),
1292
- t(xe, a, {
1293
- 7: 126,
1294
- 43: 127
1338
+ t(Ce, a, {
1339
+ 7: 127,
1340
+ 43: 128
1295
1341
  }),
1296
- t(Se, a, {
1297
- 46: 128,
1298
- 7: 129
1342
+ t(we, a, {
1343
+ 46: 129,
1344
+ 7: 130
1299
1345
  }),
1300
- t(ye, a, { 7: 130 }),
1346
+ t(xe, a, { 7: 131 }),
1301
1347
  {
1302
- 5: [1, 132],
1303
- 52: [1, 131]
1348
+ 5: [1, 133],
1349
+ 52: [1, 132]
1304
1350
  },
1305
1351
  {
1306
- 5: [1, 134],
1307
- 52: [1, 133]
1352
+ 5: [1, 135],
1353
+ 52: [1, 134]
1308
1354
  },
1309
- t(Ce, _e, {
1310
- 74: 135,
1311
- 75: [1, 136]
1355
+ t(Te, K, {
1356
+ 74: 136,
1357
+ 75: [1, 137]
1312
1358
  }),
1313
1359
  {
1314
- 5: [1, 138],
1315
- 52: [1, 137]
1360
+ 5: [1, 139],
1361
+ 52: [1, 138]
1316
1362
  },
1317
1363
  {
1318
- 5: [1, 140],
1319
- 52: [1, 139]
1364
+ 5: [1, 141],
1365
+ 52: [1, 140]
1320
1366
  },
1321
- { 5: [1, 141] },
1367
+ { 5: [1, 142] },
1322
1368
  {
1323
- 23: 145,
1324
- 70: [1, 142],
1325
- 71: [1, 143],
1326
- 72: [1, 144],
1369
+ 23: 146,
1370
+ 62: L,
1371
+ 70: [1, 143],
1372
+ 71: [1, 144],
1373
+ 72: [1, 145],
1327
1374
  73: F
1328
1375
  },
1329
1376
  {
1330
- 69: 146,
1331
- 78: L,
1332
- 79: R,
1333
- 80: te,
1334
- 81: ne,
1335
- 82: z,
1336
- 83: B,
1337
- 84: V,
1338
- 85: re,
1339
- 86: H,
1340
- 87: U,
1341
- 88: W,
1342
- 89: ie,
1343
- 90: ae,
1344
- 91: oe,
1345
- 92: G,
1346
- 93: se,
1347
- 94: K,
1348
- 95: ce,
1349
- 96: le,
1350
- 97: ue,
1351
- 98: de,
1352
- 99: fe,
1353
- 100: pe,
1354
- 101: me,
1355
- 102: he,
1356
- 103: ge
1377
+ 69: 147,
1378
+ 78: R,
1379
+ 79: te,
1380
+ 80: ne,
1381
+ 81: re,
1382
+ 82: ie,
1383
+ 83: ae,
1384
+ 84: oe,
1385
+ 85: se,
1386
+ 86: ce,
1387
+ 87: le,
1388
+ 88: z,
1389
+ 89: ue,
1390
+ 90: de,
1391
+ 91: fe,
1392
+ 92: pe,
1393
+ 93: B,
1394
+ 94: V,
1395
+ 95: me,
1396
+ 96: H,
1397
+ 97: U,
1398
+ 98: W,
1399
+ 99: he,
1400
+ 100: ge,
1401
+ 101: _e,
1402
+ 102: ve,
1403
+ 103: G
1357
1404
  },
1358
- t(q, [2, 79]),
1359
1405
  t(q, [2, 80]),
1360
1406
  t(q, [2, 81]),
1361
1407
  t(q, [2, 82]),
@@ -1381,44 +1427,47 @@ var N = x(), P = (function() {
1381
1427
  t(q, [2, 102]),
1382
1428
  t(q, [2, 103]),
1383
1429
  t(q, [2, 104]),
1430
+ t(q, [2, 105]),
1384
1431
  {
1385
- 23: 147,
1432
+ 23: 148,
1433
+ 62: L,
1386
1434
  73: F
1387
1435
  },
1388
1436
  {
1389
- 23: 149,
1390
- 60: 148,
1437
+ 23: 150,
1438
+ 60: 149,
1439
+ 62: L,
1391
1440
  73: F
1392
1441
  },
1393
- { 73: [2, 68] },
1394
- { 73: [2, 69] },
1442
+ t(Ee, [2, 68]),
1443
+ t(Ee, [2, 69]),
1395
1444
  {
1396
- 58: 150,
1445
+ 58: 151,
1397
1446
  104: J
1398
1447
  },
1399
1448
  {
1400
- 58: 152,
1449
+ 58: 153,
1401
1450
  104: J
1402
1451
  },
1403
1452
  {
1404
- 58: 153,
1453
+ 58: 154,
1405
1454
  104: J
1406
1455
  },
1407
1456
  {
1408
- 58: 154,
1457
+ 58: 155,
1409
1458
  104: J
1410
1459
  },
1411
1460
  {
1412
- 4: [1, 157],
1413
- 5: [1, 159],
1414
- 12: 156,
1415
- 13: 158,
1416
- 17: [1, 155],
1461
+ 4: [1, 158],
1462
+ 5: [1, 160],
1463
+ 12: 157,
1464
+ 13: 159,
1465
+ 17: [1, 156],
1417
1466
  51: D,
1418
1467
  53: O,
1419
1468
  54: k
1420
1469
  },
1421
- { 5: [1, 160] },
1470
+ { 5: [1, 161] },
1422
1471
  t(I, [2, 20]),
1423
1472
  t(I, [2, 21]),
1424
1473
  t(I, [2, 23]),
@@ -1432,7 +1481,7 @@ var N = x(), P = (function() {
1432
1481
  13: 13,
1433
1482
  14: l,
1434
1483
  15: u,
1435
- 17: [1, 161],
1484
+ 17: [1, 162],
1436
1485
  18: 16,
1437
1486
  19: d,
1438
1487
  22: f,
@@ -1475,7 +1524,7 @@ var N = x(), P = (function() {
1475
1524
  13: 13,
1476
1525
  14: l,
1477
1526
  15: u,
1478
- 17: [1, 162],
1527
+ 17: [1, 163],
1479
1528
  18: 16,
1480
1529
  19: d,
1481
1530
  22: f,
@@ -1518,7 +1567,7 @@ var N = x(), P = (function() {
1518
1567
  13: 13,
1519
1568
  14: l,
1520
1569
  15: u,
1521
- 17: [1, 163],
1570
+ 17: [1, 164],
1522
1571
  18: 16,
1523
1572
  19: d,
1524
1573
  22: f,
@@ -1552,7 +1601,7 @@ var N = x(), P = (function() {
1552
1601
  64: P,
1553
1602
  73: F
1554
1603
  },
1555
- { 17: [1, 164] },
1604
+ { 17: [1, 165] },
1556
1605
  {
1557
1606
  4: o,
1558
1607
  5: s,
@@ -1586,7 +1635,7 @@ var N = x(), P = (function() {
1586
1635
  44: w,
1587
1636
  45: T,
1588
1637
  47: E,
1589
- 50: [1, 165],
1638
+ 50: [1, 166],
1590
1639
  51: D,
1591
1640
  53: O,
1592
1641
  54: k,
@@ -1597,7 +1646,7 @@ var N = x(), P = (function() {
1597
1646
  64: P,
1598
1647
  73: F
1599
1648
  },
1600
- { 17: [1, 166] },
1649
+ { 17: [1, 167] },
1601
1650
  {
1602
1651
  4: o,
1603
1652
  5: s,
@@ -1631,7 +1680,7 @@ var N = x(), P = (function() {
1631
1680
  44: w,
1632
1681
  45: T,
1633
1682
  47: E,
1634
- 49: [1, 167],
1683
+ 49: [1, 168],
1635
1684
  51: D,
1636
1685
  53: O,
1637
1686
  54: k,
@@ -1642,8 +1691,8 @@ var N = x(), P = (function() {
1642
1691
  64: P,
1643
1692
  73: F
1644
1693
  },
1645
- { 17: [1, 168] },
1646
1694
  { 17: [1, 169] },
1695
+ { 17: [1, 170] },
1647
1696
  {
1648
1697
  4: o,
1649
1698
  5: s,
@@ -1677,7 +1726,7 @@ var N = x(), P = (function() {
1677
1726
  44: w,
1678
1727
  45: T,
1679
1728
  47: E,
1680
- 48: [1, 170],
1729
+ 48: [1, 171],
1681
1730
  51: D,
1682
1731
  53: O,
1683
1732
  54: k,
@@ -1697,7 +1746,7 @@ var N = x(), P = (function() {
1697
1746
  13: 13,
1698
1747
  14: l,
1699
1748
  15: u,
1700
- 17: [1, 171],
1749
+ 17: [1, 172],
1701
1750
  18: 16,
1702
1751
  19: d,
1703
1752
  22: f,
@@ -1731,125 +1780,131 @@ var N = x(), P = (function() {
1731
1780
  64: P,
1732
1781
  73: F
1733
1782
  },
1734
- { 16: [1, 172] },
1735
- t(I, [2, 50]),
1736
1783
  { 16: [1, 173] },
1784
+ t(I, [2, 50]),
1785
+ { 16: [1, 174] },
1737
1786
  t(I, [2, 55]),
1738
- t(Ce, [2, 76]),
1739
- { 76: [1, 174] },
1740
- { 16: [1, 175] },
1741
- t(I, [2, 52]),
1787
+ t(Te, [2, 76]),
1788
+ { 76: [1, 175] },
1742
1789
  { 16: [1, 176] },
1790
+ t(I, [2, 52]),
1791
+ { 16: [1, 177] },
1743
1792
  t(I, [2, 57]),
1744
1793
  t(I, [2, 53]),
1745
1794
  {
1746
- 23: 177,
1795
+ 23: 178,
1796
+ 62: L,
1747
1797
  73: F
1748
1798
  },
1749
1799
  {
1750
- 23: 178,
1800
+ 23: 179,
1801
+ 62: L,
1751
1802
  73: F
1752
1803
  },
1753
1804
  {
1754
- 23: 179,
1805
+ 23: 180,
1806
+ 62: L,
1755
1807
  73: F
1756
1808
  },
1757
1809
  {
1758
- 58: 180,
1810
+ 58: 181,
1759
1811
  104: J
1760
1812
  },
1761
1813
  {
1762
- 23: 181,
1763
- 72: [1, 182],
1814
+ 23: 182,
1815
+ 62: L,
1816
+ 72: [1, 183],
1764
1817
  73: F
1765
1818
  },
1766
1819
  {
1767
- 58: 183,
1820
+ 58: 184,
1768
1821
  104: J
1769
1822
  },
1770
1823
  {
1771
- 58: 184,
1824
+ 58: 185,
1772
1825
  104: J
1773
1826
  },
1774
1827
  {
1775
- 66: [1, 185],
1828
+ 66: [1, 186],
1776
1829
  104: [2, 67]
1777
1830
  },
1778
1831
  { 5: [2, 60] },
1779
- { 5: [2, 105] },
1832
+ { 5: [2, 106] },
1780
1833
  { 5: [2, 61] },
1781
1834
  { 5: [2, 62] },
1782
1835
  { 5: [2, 63] },
1783
1836
  t(I, [2, 17]),
1784
- t(ve, [2, 11]),
1837
+ t(be, [2, 11]),
1785
1838
  {
1786
- 13: 186,
1839
+ 13: 187,
1787
1840
  51: D,
1788
1841
  53: O,
1789
1842
  54: k
1790
1843
  },
1791
- t(ve, [2, 13]),
1792
- t(ve, [2, 14]),
1844
+ t(be, [2, 13]),
1845
+ t(be, [2, 14]),
1793
1846
  t(I, [2, 19]),
1794
1847
  t(I, [2, 35]),
1795
1848
  t(I, [2, 36]),
1796
1849
  t(I, [2, 37]),
1797
1850
  t(I, [2, 38]),
1798
- { 16: [1, 187] },
1799
- t(I, [2, 39]),
1800
1851
  { 16: [1, 188] },
1852
+ t(I, [2, 39]),
1853
+ { 16: [1, 189] },
1801
1854
  t(I, [2, 40]),
1802
1855
  t(I, [2, 41]),
1803
- { 16: [1, 189] },
1856
+ { 16: [1, 190] },
1804
1857
  t(I, [2, 42]),
1805
- { 5: [1, 190] },
1806
1858
  { 5: [1, 191] },
1807
- { 77: [1, 192] },
1808
- { 5: [1, 193] },
1859
+ { 5: [1, 192] },
1860
+ { 77: [1, 193] },
1809
1861
  { 5: [1, 194] },
1862
+ { 5: [1, 195] },
1810
1863
  {
1811
- 58: 195,
1864
+ 58: 196,
1812
1865
  104: J
1813
1866
  },
1814
1867
  {
1815
- 58: 196,
1868
+ 58: 197,
1816
1869
  104: J
1817
1870
  },
1818
1871
  {
1819
- 58: 197,
1872
+ 58: 198,
1820
1873
  104: J
1821
1874
  },
1822
1875
  { 5: [2, 75] },
1823
1876
  {
1824
- 58: 198,
1877
+ 58: 199,
1825
1878
  104: J
1826
1879
  },
1827
1880
  {
1828
- 23: 199,
1881
+ 23: 200,
1882
+ 62: L,
1829
1883
  73: F
1830
1884
  },
1831
1885
  { 5: [2, 58] },
1832
1886
  { 5: [2, 59] },
1833
1887
  {
1834
- 23: 200,
1888
+ 23: 201,
1889
+ 62: L,
1835
1890
  73: F
1836
1891
  },
1837
- t(ve, [2, 12]),
1838
- t(be, a, {
1839
- 7: 124,
1840
- 41: 201
1892
+ t(be, [2, 12]),
1893
+ t(Se, a, {
1894
+ 7: 125,
1895
+ 41: 202
1841
1896
  }),
1842
- t(xe, a, {
1843
- 7: 126,
1844
- 43: 202
1897
+ t(Ce, a, {
1898
+ 7: 127,
1899
+ 43: 203
1845
1900
  }),
1846
- t(Se, a, {
1847
- 7: 129,
1848
- 46: 203
1901
+ t(we, a, {
1902
+ 7: 130,
1903
+ 46: 204
1849
1904
  }),
1850
1905
  t(I, [2, 49]),
1851
1906
  t(I, [2, 54]),
1852
- t(Ce, [2, 77]),
1907
+ t(Te, [2, 77]),
1853
1908
  t(I, [2, 51]),
1854
1909
  t(I, [2, 56]),
1855
1910
  { 5: [2, 70] },
@@ -1857,7 +1912,7 @@ var N = x(), P = (function() {
1857
1912
  { 5: [2, 72] },
1858
1913
  { 5: [2, 73] },
1859
1914
  {
1860
- 58: 204,
1915
+ 58: 205,
1861
1916
  104: J
1862
1917
  },
1863
1918
  { 104: [2, 66] },
@@ -1869,25 +1924,23 @@ var N = x(), P = (function() {
1869
1924
  defaultActions: {
1870
1925
  5: [2, 1],
1871
1926
  6: [2, 2],
1872
- 108: [2, 68],
1873
- 109: [2, 69],
1874
- 150: [2, 60],
1875
- 151: [2, 105],
1876
- 152: [2, 61],
1877
- 153: [2, 62],
1878
- 154: [2, 63],
1879
- 180: [2, 75],
1880
- 183: [2, 58],
1881
- 184: [2, 59],
1882
- 195: [2, 70],
1883
- 196: [2, 71],
1884
- 197: [2, 72],
1885
- 198: [2, 73],
1886
- 200: [2, 66],
1887
- 201: [2, 48],
1888
- 202: [2, 46],
1889
- 203: [2, 44],
1890
- 204: [2, 74]
1927
+ 151: [2, 60],
1928
+ 152: [2, 106],
1929
+ 153: [2, 61],
1930
+ 154: [2, 62],
1931
+ 155: [2, 63],
1932
+ 181: [2, 75],
1933
+ 184: [2, 58],
1934
+ 185: [2, 59],
1935
+ 196: [2, 70],
1936
+ 197: [2, 71],
1937
+ 198: [2, 72],
1938
+ 199: [2, 73],
1939
+ 201: [2, 66],
1940
+ 202: [2, 48],
1941
+ 203: [2, 46],
1942
+ 204: [2, 44],
1943
+ 205: [2, 74]
1891
1944
  },
1892
1945
  parseError: /* @__PURE__ */ e(function(e, t) {
1893
1946
  if (t.recoverable) this.trace(e);
@@ -1953,7 +2006,7 @@ var N = x(), P = (function() {
1953
2006
  return !0;
1954
2007
  }, "parse")
1955
2008
  };
1956
- we.lexer = /* @__PURE__ */ (function() {
2009
+ De.lexer = /* @__PURE__ */ (function() {
1957
2010
  return {
1958
2011
  EOF: 1,
1959
2012
  parseError: /* @__PURE__ */ e(function(e, t) {
@@ -2203,7 +2256,7 @@ var N = x(), P = (function() {
2203
2256
  /^(?:[^\}]+)/i,
2204
2257
  /^(?:\}(?=\s+as\s))/i,
2205
2258
  /^(?:\})/i,
2206
- /^(?:[^\<->\->:\n,;@\s]+(?=@\{))/i,
2259
+ /^(?:[^<>:\n,;@\s]+(?=\s*@\{))/i,
2207
2260
  /^(?:[^<>:\n,;@\s]+(?=\s+as\s))/i,
2208
2261
  /^(?:[^<>:\n,;@]+(?=\s*[\n;#]|$))/i,
2209
2262
  /^(?:[^<>:\n,;@]*<[^\n]*)/i,
@@ -2230,10 +2283,10 @@ var N = x(), P = (function() {
2230
2283
  /^(?:end\b)/i,
2231
2284
  /^(?:left of\b)/i,
2232
2285
  /^(?:right of\b)/i,
2233
- /^(?:links\b)/i,
2234
- /^(?:link\b)/i,
2235
- /^(?:properties\b)/i,
2236
- /^(?:details\b)/i,
2286
+ /^(?:links(?=[ \t]+[^\/\\\+\(\)<>:\n,;\s\-]))/i,
2287
+ /^(?:link(?=[ \t]+[^\/\\\+\(\)<>:\n,;\s\-]))/i,
2288
+ /^(?:properties(?=[ \t]+[^\/\\\+\(\)<>:\n,;\s\-]))/i,
2289
+ /^(?:details(?=[ \t]+[^\/\\\+\(\)<>:\n,;\s\-]))/i,
2237
2290
  /^(?:over\b)/i,
2238
2291
  /^(?:note\b)/i,
2239
2292
  /^(?:activate\b)/i,
@@ -2427,10 +2480,10 @@ var N = x(), P = (function() {
2427
2480
  }
2428
2481
  };
2429
2482
  })();
2430
- function Te() {
2483
+ function Oe() {
2431
2484
  this.yy = {};
2432
2485
  }
2433
- return e(Te, "Parser"), Te.prototype = we, we.Parser = Te, new Te();
2486
+ return e(Oe, "Parser"), Oe.prototype = De, De.Parser = Oe, new Oe();
2434
2487
  })();
2435
2488
  P.parser = P;
2436
2489
  var F = P, I = {
@@ -2485,10 +2538,10 @@ var F = P, I = {
2485
2538
  CENTRAL_CONNECTION: 59,
2486
2539
  CENTRAL_CONNECTION_REVERSE: 60,
2487
2540
  CENTRAL_CONNECTION_DUAL: 61
2488
- }, ee = {
2541
+ }, L = {
2489
2542
  FILLED: 0,
2490
2543
  OPEN: 1
2491
- }, L = {
2544
+ }, ee = {
2492
2545
  LEFTOF: 0,
2493
2546
  RIGHTOF: 1,
2494
2547
  OVER: 2
@@ -2516,7 +2569,7 @@ var F = P, I = {
2516
2569
  currentBox: void 0,
2517
2570
  lastCreated: void 0,
2518
2571
  lastDestroyed: void 0
2519
- })), this.setAccTitle = l, this.setAccDescription = o, this.setDiagramTitle = s, this.getAccTitle = y, this.getAccDescription = g, this.getDiagramTitle = _, this.apply = this.apply.bind(this), this.parseBoxData = this.parseBoxData.bind(this), this.parseMessage = this.parseMessage.bind(this), this.clear(), this.setWrap(v().wrap), this.LINETYPE = I, this.ARROWTYPE = ee, this.PLACEMENT = L;
2572
+ })), this.setAccTitle = c, this.setAccDescription = s, this.setDiagramTitle = h, this.getAccTitle = v, this.getAccDescription = l, this.getDiagramTitle = r, this.apply = this.apply.bind(this), this.parseBoxData = this.parseBoxData.bind(this), this.parseMessage = this.parseMessage.bind(this), this.clear(), this.setWrap(d().wrap), this.LINETYPE = I, this.ARROWTYPE = L, this.PLACEMENT = ee;
2520
2573
  }
2521
2574
  static {
2522
2575
  e(this, "SequenceDB");
@@ -2660,7 +2713,7 @@ var F = P, I = {
2660
2713
  };
2661
2714
  }
2662
2715
  autoWrap() {
2663
- return this.state.records.wrapEnabled === void 0 ? v().sequence?.wrap ?? !1 : this.state.records.wrapEnabled;
2716
+ return this.state.records.wrapEnabled === void 0 ? d().sequence?.wrap ?? !1 : this.state.records.wrapEnabled;
2664
2717
  }
2665
2718
  clear() {
2666
2719
  this.state.reset(), u();
@@ -2681,7 +2734,7 @@ var F = P, I = {
2681
2734
  }
2682
2735
  let { wrap: i, cleanedText: a } = this.extractWrap(r);
2683
2736
  return {
2684
- text: a ? b(a, v()) : void 0,
2737
+ text: a ? b(a, d()) : void 0,
2685
2738
  color: n,
2686
2739
  wrap: i
2687
2740
  };
@@ -2706,7 +2759,7 @@ var F = P, I = {
2706
2759
  addLinks(e, n) {
2707
2760
  let r = this.getActor(e);
2708
2761
  try {
2709
- let e = b(n.text, v());
2762
+ let e = b(n.text, d());
2710
2763
  e = e.replace(/&equals;/g, "="), e = e.replace(/&amp;/g, "&");
2711
2764
  let t = JSON.parse(e);
2712
2765
  this.insertLinks(r, t);
@@ -2717,7 +2770,7 @@ var F = P, I = {
2717
2770
  addALink(e, n) {
2718
2771
  let r = this.getActor(e);
2719
2772
  try {
2720
- let e = {}, t = b(n.text, v()), i = t.indexOf("@");
2773
+ let e = {}, t = b(n.text, d()), i = t.indexOf("@");
2721
2774
  t = t.replace(/&equals;/g, "="), t = t.replace(/&amp;/g, "&");
2722
2775
  let a = t.slice(0, i - 1).trim();
2723
2776
  e[a] = t.slice(i + 1).trim(), this.insertLinks(r, e);
@@ -2732,7 +2785,7 @@ var F = P, I = {
2732
2785
  addProperties(e, n) {
2733
2786
  let r = this.getActor(e);
2734
2787
  try {
2735
- let e = b(n.text, v()), t = JSON.parse(e);
2788
+ let e = b(n.text, d()), t = JSON.parse(e);
2736
2789
  this.insertProperties(r, t);
2737
2790
  } catch (e) {
2738
2791
  t.error("error while parsing actor properties text", e);
@@ -2857,7 +2910,7 @@ var F = P, I = {
2857
2910
  this.addSignal(void 0, void 0, void 0, e.signalType);
2858
2911
  break;
2859
2912
  case "setAccTitle":
2860
- l(e.text);
2913
+ c(e.text);
2861
2914
  break;
2862
2915
  case "parStart":
2863
2916
  this.addSignal(void 0, void 0, e.parText, e.signalType);
@@ -2884,10 +2937,10 @@ var F = P, I = {
2884
2937
  }
2885
2938
  }
2886
2939
  getConfig() {
2887
- return v().sequence;
2940
+ return d().sequence;
2888
2941
  }
2889
2942
  }, ne = /* @__PURE__ */ e((e) => {
2890
- let t = e.dropShadow ?? "none", { look: n } = v();
2943
+ let t = e.dropShadow ?? "none", { look: n } = d();
2891
2944
  return `.actor {
2892
2945
  stroke: ${e.actorBorder};
2893
2946
  fill: ${e.actorBkg};
@@ -2987,10 +3040,17 @@ var F = P, I = {
2987
3040
  fill: ${e.noteBkgColor};
2988
3041
  }
2989
3042
 
3043
+ /*
3044
+ * No font-weight here, deliberately. Note text renders inside tspan elements, and a weight emitted at
3045
+ * tspan level outranks the inline style drawText puts on the parent text element from the
3046
+ * sequence.noteFontWeight config key -- so that documented key would never reach the glyphs.
3047
+ * The theme variable formerly emitted here is a different value from that config key, and
3048
+ * git/styles.js reads it as its own bold-label weight under redux and neo, so it cannot be
3049
+ * lowered there either.
3050
+ */
2990
3051
  .noteText, .noteText > tspan {
2991
3052
  fill: ${e.noteTextColor};
2992
3053
  stroke: none;
2993
- ${e.noteFontWeight ? `font-weight: ${e.noteFontWeight};` : ""}
2994
3054
  }
2995
3055
 
2996
3056
  .activation0 {
@@ -3028,10 +3088,33 @@ var F = P, I = {
3028
3088
  stroke: ${e.nodeBorder};
3029
3089
  }
3030
3090
  `;
3031
- }, "getStyles"), z = 36, B = "actor-top", V = "actor-bottom", re = "actor-box", H = "actor-man", U = /* @__PURE__ */ new Set(["redux-color", "redux-dark-color"]), W = /* @__PURE__ */ e(function(e, t) {
3091
+ }, "getStyles"), re = 44, ie = 6, ae = 6, oe = /* @__PURE__ */ e((e, t) => e.actorTextHeight ?? S.calculateTextDimensions(e.description ?? "", {
3092
+ fontFamily: t.actorFontFamily,
3093
+ fontSize: t.actorFontSize,
3094
+ fontWeight: t.actorFontWeight
3095
+ }).height, "actorLabelHeight"), se = /* @__PURE__ */ e((e) => re + ie + e + ae, "actorStackHeight"), ce = /* @__PURE__ */ e((e, t, n) => {
3096
+ let r = e + t, i = r - ae - n / 2;
3097
+ return {
3098
+ lifelineStartY: r,
3099
+ glyphBottomY: r - ae - n - ie,
3100
+ labelCenterY: i
3101
+ };
3102
+ }, "headerBands"), le = /* @__PURE__ */ e((e, t) => {
3103
+ let n = e + ae, r = n + re;
3104
+ return {
3105
+ glyphTopY: n,
3106
+ glyphBottomY: r,
3107
+ labelCenterY: r + ie + t / 2,
3108
+ stackHeight: se(t)
3109
+ };
3110
+ }, "footerBands"), z = 36, ue = -5, de = 60, fe = de - ue, pe = /* @__PURE__ */ e((e, t, n, r) => {
3111
+ if (t.look !== "neo") return null;
3112
+ let i = oe(e, t);
3113
+ return n ? le(r, i) : ce(r, e.height, i);
3114
+ }, "neoBands"), B = "actor-top", V = "actor-bottom", me = "actor-box", H = "actor-man", U = /* @__PURE__ */ new Set(["redux-color", "redux-dark-color"]), W = /* @__PURE__ */ e((e, t) => e?.length ? e[t % e.length] : void 0, "paletteColor"), he = /* @__PURE__ */ e(function(e, t) {
3032
3115
  let n = w(e, t);
3033
- return d().look === "neo" && n.attr("data-look", "neo"), n;
3034
- }, "drawRect"), ie = /* @__PURE__ */ e(function(e, t, n, r, i) {
3116
+ return y().look === "neo" && n.attr("data-look", "neo"), n;
3117
+ }, "drawRect"), ge = /* @__PURE__ */ e(function(e, t, n, r, i) {
3035
3118
  if (t.links === void 0 || t.links === null || Object.keys(t.links).length === 0) return {
3036
3119
  height: 0,
3037
3120
  width: 0
@@ -3048,17 +3131,17 @@ var F = P, I = {
3048
3131
  var p = 20;
3049
3132
  for (let e in a) {
3050
3133
  var m = l.append("a"), h = (0, N.sanitizeUrl)(a[e]);
3051
- m.attr("xlink:href", h), m.attr("target", "_blank"), je(r)(e, m, s.x + 10, s.height + p, d, 20, { class: "actor" }, r), p += 30;
3134
+ m.attr("xlink:href", h), m.attr("target", "_blank"), We(r)(e, m, s.x + 10, s.height + p, d, 20, { class: "actor" }, r), p += 30;
3052
3135
  }
3053
3136
  }
3054
3137
  return f.attr("height", p), {
3055
3138
  height: s.height + p,
3056
3139
  width: d
3057
3140
  };
3058
- }, "drawPopup"), ae = /* @__PURE__ */ e(function(e) {
3141
+ }, "drawPopup"), _e = /* @__PURE__ */ e(function(e) {
3059
3142
  return "var pu = document.getElementById('" + e + "'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }";
3060
- }, "popupMenuToggle"), oe = /* @__PURE__ */ e(async function(e, t, n = null) {
3061
- let r = e.append("foreignObject"), a = await i(t.text, d()), o = r.append("xhtml:div").attr("style", "width: fit-content;").attr("xmlns", "http://www.w3.org/1999/xhtml").html(a).node().getBoundingClientRect();
3143
+ }, "popupMenuToggle"), ve = /* @__PURE__ */ e(async function(e, t, n = null) {
3144
+ let r = e.append("foreignObject"), i = await a(t.text, y()), o = r.append("xhtml:div").attr("style", "width: fit-content;").attr("xmlns", "http://www.w3.org/1999/xhtml").html(i).node().getBoundingClientRect();
3062
3145
  if (r.attr("height", Math.round(o.height)).attr("width", Math.round(o.width)), t.class === "noteText") {
3063
3146
  let n = e.node().firstChild;
3064
3147
  n.setAttribute("height", o.height + 2 * t.textMargin);
@@ -3074,7 +3157,7 @@ var F = P, I = {
3074
3157
  }
3075
3158
  return [r];
3076
3159
  }, "drawKatex"), G = /* @__PURE__ */ e(function(t, n) {
3077
- let r = 0, i = 0, a = n.text.split(h.lineBreakRegex), [o, s] = C(n.fontSize), c = [], l = 0, u = /* @__PURE__ */ e(() => n.y, "yfunc");
3160
+ let r = 0, i = 0, a = n.text.split(_.lineBreakRegex), [o, s] = C(n.fontSize), c = [], l = 0, u = /* @__PURE__ */ e(() => n.y, "yfunc");
3078
3161
  if (n.valign !== void 0 && n.textMargin !== void 0 && n.textMargin > 0) switch (n.valign) {
3079
3162
  case "top":
3080
3163
  case "start":
@@ -3111,210 +3194,212 @@ var F = P, I = {
3111
3194
  n.valign !== void 0 && n.textMargin !== void 0 && n.textMargin > 0 && (i += (a._groups || a)[0][0].getBBox().height, r = i), c.push(a);
3112
3195
  }
3113
3196
  return c;
3114
- }, "drawText"), se = /* @__PURE__ */ e(function(t, n) {
3197
+ }, "drawText"), ye = /* @__PURE__ */ e(function(t, n) {
3115
3198
  function r(e, t, n, r, i) {
3116
3199
  return e + "," + t + " " + (e + n) + "," + t + " " + (e + n) + "," + (t + r - i) + " " + (e + n - i * 1.2) + "," + (t + r) + " " + e + "," + (t + r);
3117
3200
  }
3118
3201
  e(r, "genPoints");
3119
3202
  let i = t.append("polygon");
3120
3203
  return i.attr("points", r(n.x, n.y, n.width, n.height, 7)), i.attr("class", "labelBox"), n.y += n.height / 2, G(t, n), i;
3121
- }, "drawLabel"), K = -1, ce = /* @__PURE__ */ e((e, t, n, r) => {
3204
+ }, "drawLabel"), K = -1, be = /* @__PURE__ */ e((e, t, n, r) => {
3122
3205
  e.select && n.forEach((n) => {
3123
3206
  let i = t.get(n), a = e.select("#actor" + i.actorCnt);
3124
3207
  !r.mirrorActors && i.stopy ? a.attr("y2", i.stopy + i.height / 2) : r.mirrorActors && a.attr("y2", i.stopy);
3125
3208
  });
3126
- }, "fixLifeLineHeights"), le = /* @__PURE__ */ e(function(e, t, n, i, a) {
3127
- let o = i ? t.stopy : t.starty, s = t.x + t.width / 2, c = o + t.height, { look: l, theme: u, themeVariables: d } = n, { bkgColorArray: f, borderColorArray: p } = d, m = e.append("g").lower();
3128
- var h = m;
3129
- i || (K++, Object.keys(t.links || {}).length && !n.forceMenus && h.attr("onclick", ae(`actor${K}_popup`)).attr("cursor", "pointer"), h.append("line").attr("id", "actor" + K).attr("x1", s).attr("y1", c).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), h = m.append("g"), t.actorCnt = K, t.links != null && h.attr("id", "root-" + K), l === "neo" && h.attr("data-look", "neo"));
3130
- let g = k();
3131
- var _ = "actor";
3132
- t.properties?.class ? _ = t.properties.class : g.fill = "#eaeaea", _ += i ? ` ${V}` : ` ${B}`, g.x = t.x, g.y = o, g.width = t.width, g.height = t.height, g.class = _, g.rx = 3, g.ry = 3, g.name = t.name, l === "neo" && (g.rx = 6, g.ry = 6);
3133
- let v = W(h, g), y = a.get(t.name) ?? 0;
3134
- if (U.has(u) && (v.style("stroke", p[y % p.length]), v.style("fill", f[y % p.length])), l === "neo" && v.attr("filter", "url(#drop-shadow)"), t.rectData = g, t.properties?.icon) {
3209
+ }, "fixLifeLineHeights"), xe = /* @__PURE__ */ e(function(e, t, n, r, i, a) {
3210
+ let o = r ? t.stopy : t.starty, s = t.x + t.width / 2, c = o + t.height, { look: l, theme: u, themeVariables: d } = n, { bkgColorArray: f, borderColorArray: p } = d, h = e.append("g").lower();
3211
+ var g = h;
3212
+ r || (K++, Object.keys(t.links || {}).length && !n.forceMenus && g.attr("onclick", _e(`actor${K}_popup`)).attr("cursor", "pointer"), g.append("line").attr("id", "actor" + K).attr("x1", s).attr("y1", c).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), g = h.append("g"), t.actorCnt = K, t.links != null && g.attr("id", "root-" + K), l === "neo" && g.attr("data-look", "neo"));
3213
+ let _ = k();
3214
+ var v = "actor";
3215
+ t.properties?.class ? v = t.properties.class : _.fill = "#eaeaea", v += r ? ` ${V}` : ` ${B}`, _.x = t.x, _.y = o, _.width = t.width, _.height = t.height, _.class = v, _.rx = 3, _.ry = 3, _.name = t.name, l === "neo" && (_.rx = 6, _.ry = 6);
3216
+ let y = he(g, _), b = a.get(t.name) ?? 0;
3217
+ if (U.has(u) && (y.style("stroke", W(p, b)), y.style("fill", W(f, b))), l === "neo" && y.attr("filter", `url(#${Be(i)})`), t.rectData = _, t.properties?.icon) {
3135
3218
  let e = t.properties.icon.trim();
3136
- e.charAt(0) === "@" ? O(h, g.x + g.width - 20, g.y + 10, e.substr(1)) : E(h, g.x + g.width - 20, g.y + 10, e);
3219
+ e.charAt(0) === "@" ? O(g, _.x + _.width - 20, _.y + 10, e.substr(1)) : E(g, _.x + _.width - 20, _.y + 10, e);
3137
3220
  }
3138
- i || (h.attr("data-et", "participant"), h.attr("data-type", "participant"), h.attr("data-id", t.name)), Y(n, r(t.description))(t.description, h, g.x, g.y, g.width, g.height, { class: `actor ${re}` }, n);
3139
- let b = t.height;
3140
- if (v.node) {
3141
- let e = v.node().getBBox();
3142
- t.height = e.height, b = e.height;
3221
+ r || (g.attr("data-et", "participant"), g.attr("data-type", "participant"), g.attr("data-id", t.name)), Y(n, m(t.description))(t.description, g, _.x, _.y, _.width, _.height, { class: `actor ${me}` }, n);
3222
+ let x = t.height;
3223
+ if (y.node) {
3224
+ let e = y.node().getBBox();
3225
+ n.look !== "neo" && (t.height = e.height, x = e.height);
3143
3226
  }
3144
- return b;
3145
- }, "drawActorTypeParticipant"), ue = /* @__PURE__ */ e(function(e, t, n, i, a) {
3146
- let o = i ? t.stopy : t.starty, s = t.x + t.width / 2, c = o + t.height, { look: l, theme: u, themeVariables: d } = n, { bkgColorArray: f, borderColorArray: p } = d, m = e.append("g").lower();
3147
- var h = m;
3148
- i || (K++, Object.keys(t.links || {}).length && !n.forceMenus && h.attr("onclick", ae(`actor${K}_popup`)).attr("cursor", "pointer"), h.append("line").attr("id", "actor" + K).attr("x1", s).attr("y1", c).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), h = m.append("g"), t.actorCnt = K, t.links != null && h.attr("id", "root-" + K), l === "neo" && h.attr("data-look", "neo"));
3149
- let g = k();
3150
- var _ = "actor";
3151
- t.properties?.class ? _ = t.properties.class : g.fill = "#eaeaea", _ += i ? ` ${V}` : ` ${B}`, g.x = t.x, g.y = o, g.width = t.width, g.height = t.height, g.class = _, g.name = t.name;
3152
- let v = {
3153
- ...g,
3154
- x: g.x + -6,
3155
- y: g.y + 6,
3227
+ return x;
3228
+ }, "drawActorTypeParticipant"), Se = /* @__PURE__ */ e(function(e, t, n, r, i, a) {
3229
+ let o = r ? t.stopy : t.starty, s = t.x + t.width / 2, c = o + t.height, { look: l, theme: u, themeVariables: d } = n, { bkgColorArray: f, borderColorArray: p } = d, h = e.append("g").lower();
3230
+ var g = h;
3231
+ r || (K++, Object.keys(t.links || {}).length && !n.forceMenus && g.attr("onclick", _e(`actor${K}_popup`)).attr("cursor", "pointer"), g.append("line").attr("id", "actor" + K).attr("x1", s).attr("y1", c).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), g = h.append("g"), t.actorCnt = K, t.links != null && g.attr("id", "root-" + K), l === "neo" && g.attr("data-look", "neo"));
3232
+ let _ = k();
3233
+ var v = "actor";
3234
+ t.properties?.class ? v = t.properties.class : _.fill = "#eaeaea", v += r ? ` ${V}` : ` ${B}`, _.x = t.x, _.y = o, _.width = t.width, _.height = t.height, _.class = v, _.name = t.name, n.look === "neo" && (_.height = t.height - 6);
3235
+ let y = {
3236
+ ..._,
3237
+ x: _.x + -6,
3238
+ y: _.y + 6,
3156
3239
  class: "actor"
3157
- }, y = W(h, g), b = W(h, v);
3158
- t.rectData = g, l === "neo" && h.attr("filter", "url(#drop-shadow)");
3159
- let x = a.get(t.name) ?? 0;
3160
- if (U.has(u) && (y.style("stroke", p[x % p.length]), y.style("fill", f[x % p.length]), b.style("stroke", p[x % p.length]), b.style("fill", f[x % p.length])), t.properties?.icon) {
3240
+ }, b = he(g, _), x = he(g, y);
3241
+ t.rectData = _, l === "neo" && g.attr("filter", `url(#${Be(i)})`);
3242
+ let S = a.get(t.name) ?? 0;
3243
+ if (U.has(u) && (b.style("stroke", W(p, S)), b.style("fill", W(f, S)), x.style("stroke", W(p, S)), x.style("fill", W(f, S))), t.properties?.icon) {
3161
3244
  let e = t.properties.icon.trim();
3162
- e.charAt(0) === "@" ? O(h, g.x + g.width - 20, g.y + 10, e.substr(1)) : E(h, g.x + g.width - 20, g.y + 10, e);
3245
+ e.charAt(0) === "@" ? O(g, _.x + _.width - 20, _.y + 10, e.substr(1)) : E(g, _.x + _.width - 20, _.y + 10, e);
3163
3246
  }
3164
- Y(n, r(t.description))(t.description, h, g.x - 6, g.y + 6, g.width, g.height, { class: `actor ${re}` }, n);
3165
- let S = t.height;
3166
- if (y.node) {
3167
- let e = y.node().getBBox();
3168
- t.height = e.height, S = e.height;
3247
+ Y(n, m(t.description))(t.description, g, _.x - 6, _.y + 6, _.width, _.height, { class: `actor ${me}` }, n);
3248
+ let C = t.height;
3249
+ if (b.node) {
3250
+ let e = b.node().getBBox();
3251
+ n.look !== "neo" && (t.height = e.height, C = e.height);
3169
3252
  }
3170
- return i || (h.attr("data-et", "participant"), h.attr("data-type", "collections"), h.attr("data-id", t.name)), S;
3171
- }, "drawActorTypeCollections"), de = /* @__PURE__ */ e(function(e, t, n, i, a) {
3172
- let o = i ? t.stopy : t.starty, s = t.x + t.width / 2, c = o + t.height, { look: l, theme: u, themeVariables: d } = n, { bkgColorArray: f, borderColorArray: p } = d, m = e.append("g").lower(), h = m;
3173
- i || (K++, Object.keys(t.links || {}).length && !n.forceMenus && h.attr("onclick", ae(`actor${K}_popup`)).attr("cursor", "pointer"), h.append("line").attr("id", "actor" + K).attr("x1", s).attr("y1", c).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), h = m.append("g"), t.actorCnt = K, t.links != null && h.attr("id", "root-" + K), l === "neo" && h.attr("data-look", "neo"));
3174
- let g = k(), _ = "actor";
3175
- t.properties?.class ? _ = t.properties.class : g.fill = "#eaeaea", _ += i ? ` ${V}` : ` ${B}`, h.attr("class", _), g.x = t.x, g.y = o, g.width = t.width, g.height = t.height, g.name = t.name;
3176
- let v = g.height / 2, y = v / (2.5 + g.height / 50), b = h.append("g"), x = h.append("g"), S = `M ${g.x},${g.y + v}
3177
- a ${y},${v} 0 0 0 0,${g.height}
3178
- h ${g.width - 2 * y}
3179
- a ${y},${v} 0 0 0 0,-${g.height}
3253
+ return r || (g.attr("data-et", "participant"), g.attr("data-type", "collections"), g.attr("data-id", t.name)), C;
3254
+ }, "drawActorTypeCollections"), Ce = /* @__PURE__ */ e(function(e, t, n, r, i, a) {
3255
+ let o = r ? t.stopy : t.starty, s = t.x + t.width / 2, c = o + t.height, { look: l, theme: u, themeVariables: d } = n, { bkgColorArray: f, borderColorArray: p } = d, h = e.append("g").lower(), g = h;
3256
+ r || (K++, Object.keys(t.links || {}).length && !n.forceMenus && g.attr("onclick", _e(`actor${K}_popup`)).attr("cursor", "pointer"), g.append("line").attr("id", "actor" + K).attr("x1", s).attr("y1", c).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), g = h.append("g"), t.actorCnt = K, t.links != null && g.attr("id", "root-" + K), l === "neo" && g.attr("data-look", "neo"));
3257
+ let _ = k(), v = "actor";
3258
+ t.properties?.class ? v = t.properties.class : _.fill = "#eaeaea", v += r ? ` ${V}` : ` ${B}`, g.attr("class", v), _.x = t.x, _.y = o, _.width = t.width, _.height = t.height, _.name = t.name;
3259
+ let y = _.height / 2, b = y / (2.5 + _.height / 50), x = g.append("g"), S = g.append("g"), C = `M ${_.x},${_.y + y}
3260
+ a ${b},${y} 0 0 0 0,${_.height}
3261
+ h ${_.width - 2 * b}
3262
+ a ${b},${y} 0 0 0 0,-${_.height}
3180
3263
  Z
3181
3264
  `;
3182
- b.append("path").attr("d", S), x.append("path").attr("d", `M ${g.x},${g.y + v}
3183
- a ${y},${v} 0 0 0 0,${g.height}`), b.attr("transform", `translate(${y}, ${-(g.height / 2)})`), x.attr("transform", `translate(${g.width - y}, ${-g.height / 2})`), t.rectData = g, l === "neo" && b.attr("filter", "url(#drop-shadow)");
3184
- let C = a.get(t.name) ?? 0;
3185
- if (U.has(u) && (b.style("stroke", p[C % p.length]), b.style("fill", f[C % p.length]), x.style("stroke", p[C % p.length]), x.style("fill", f[C % p.length])), t.properties?.icon) {
3186
- let e = t.properties.icon.trim(), n = g.x + g.width - 20, r = g.y + 10;
3187
- e.charAt(0) === "@" ? O(h, n, r, e.substr(1)) : E(h, n, r, e);
3265
+ x.append("path").attr("d", C), S.append("path").attr("d", `M ${_.x},${_.y + y}
3266
+ a ${b},${y} 0 0 0 0,${_.height}`), x.attr("transform", `translate(${b}, ${-(_.height / 2)})`), S.attr("transform", `translate(${_.width - b}, ${-_.height / 2})`), t.rectData = _, l === "neo" && x.attr("filter", `url(#${Be(i)})`);
3267
+ let w = a.get(t.name) ?? 0;
3268
+ if (U.has(u) && (x.style("stroke", W(p, w)), x.style("fill", W(f, w)), S.style("stroke", W(p, w)), S.style("fill", W(f, w))), t.properties?.icon) {
3269
+ let e = t.properties.icon.trim(), n = _.x + _.width - 20, r = _.y + 10;
3270
+ e.charAt(0) === "@" ? O(g, n, r, e.substr(1)) : E(g, n, r, e);
3188
3271
  }
3189
- Y(n, r(t.description))(t.description, h, g.x, g.y, g.width, g.height, { class: `actor ${re}` }, n);
3190
- let w = t.height, T = b.select("path:last-child");
3191
- if (T.node()) {
3192
- let e = T.node().getBBox();
3193
- t.height = e.height, w = e.height;
3272
+ Y(n, m(t.description))(t.description, g, _.x, _.y, _.width, _.height, { class: `actor ${me}` }, n);
3273
+ let T = t.height, D = x.select("path:last-child");
3274
+ if (D.node()) {
3275
+ let e = D.node().getBBox();
3276
+ n.look !== "neo" && (t.height = e.height, T = e.height);
3194
3277
  }
3195
- return i || (h.attr("data-et", "participant"), h.attr("data-type", "queue"), h.attr("data-id", t.name)), w;
3196
- }, "drawActorTypeQueue"), fe = /* @__PURE__ */ e(function(e, t, n, i, a, o) {
3197
- let s = i ? t.stopy : t.starty, c = t.x + t.width / 2, l = s + 75, { look: u, theme: d, themeVariables: f } = n, { bkgColorArray: p, borderColorArray: m, actorBorder: h, actorBkg: g } = f, _ = e.append("g").lower();
3198
- i || (K++, _.append("line").attr("id", "actor" + K).attr("x1", c).attr("y1", l).attr("x2", c).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), t.actorCnt = K);
3199
- let v = e.append("g"), y = H;
3200
- y += i ? ` ${V}` : ` ${B}`, v.attr("class", y), v.attr("name", t.name);
3201
- let b = k();
3202
- b.x = t.x, b.y = s, b.fill = "#eaeaea", b.width = t.width, b.height = t.height, b.class = "actor";
3203
- let x = t.x + t.width / 2, S = s + 32;
3204
- v.append("defs").append("marker").attr("id", a + "-filled-head-control").attr("refX", 11).attr("refY", 5.8).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "172.5").attr("stroke-width", 1.2).append("path").attr("d", "M 14.4 5.6 L 7.2 10.4 L 8.8 5.6 L 7.2 0.8 Z"), v.append("circle").attr("cx", x).attr("cy", S).attr("r", 22).attr("filter", `${u === "neo" ? "url(#drop-shadow)" : ""}`), v.append("line").attr("marker-end", "url(#" + a + "-filled-head-control)").attr("transform", `translate(${x}, ${S - 22})`);
3205
- let C = o.get(t.name) ?? 0;
3206
- return U.has(d) ? (v.style("stroke", m[C % m.length]), v.style("fill", p[C % m.length])) : (v.style("stroke", h), v.style("fill", g)), t.height = v.node().getBBox().height + 2 * (n?.sequence?.labelBoxHeight ?? 0), Y(n, r(t.description))(t.description, v, b.x, b.y + 22 + (i ? 5 : 12), b.width, b.height, { class: `actor ${H}` }, n), i || (v.attr("data-et", "participant"), v.attr("data-type", "control"), v.attr("data-id", t.name)), t.height;
3207
- }, "drawActorTypeControl"), pe = /* @__PURE__ */ e(function(e, t, n, i, a) {
3208
- let o = i ? t.stopy : t.starty, s = t.x + t.width / 2, c = o + 75, { look: l, theme: u, themeVariables: d } = n, { bkgColorArray: f, borderColorArray: p } = d, m = e.append("g").lower(), h = e.append("g"), g = "actor";
3209
- g += i ? ` ${V}` : ` ${B}`, h.attr("class", g), h.attr("name", t.name);
3210
- let _ = k();
3211
- _.x = t.x, _.y = o, _.fill = "#eaeaea", _.width = t.width, _.height = t.height, _.class = "actor";
3212
- let v = t.x + t.width / 2, y = o + (i ? 10 : 25);
3213
- h.append("circle").attr("cx", v).attr("cy", y).attr("r", 22).attr("width", t.width).attr("height", t.height), h.append("line").attr("x1", v - 22).attr("x2", v + 22).attr("y1", y + 22).attr("y2", y + 22).attr("stroke-width", 2), l === "neo" && h.attr("filter", "url(#drop-shadow)");
3214
- let b = a.get(t.name) ?? 0;
3215
- return U.has(u) && (h.style("stroke", p[b % p.length]), h.style("fill", f[b % p.length])), t.height = h.node().getBBox().height + (n?.sequence?.labelBoxHeight ?? 0), i || (K++, m.append("line").attr("id", "actor" + K).attr("x1", s).attr("y1", c).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), t.actorCnt = K), Y(n, r(t.description))(t.description, h, _.x, _.y + (i ? 15 : 30), _.width, _.height, { class: `actor ${H}` }, n), i ? h.attr("transform", "translate(0, 22)") : (h.attr("transform", "translate(0, 6)"), h.attr("data-et", "participant"), h.attr("data-type", "entity"), h.attr("data-id", t.name)), t.height;
3216
- }, "drawActorTypeEntity"), me = /* @__PURE__ */ e(function(e, t, n, i, a) {
3217
- let o = i ? t.stopy : t.starty, s = t.x + t.width / 2, c = o + t.height + 2 * n.boxTextMargin, { theme: l, themeVariables: u, look: d } = n, { bkgColorArray: f, borderColorArray: p, actorBorder: m } = u, h = e.append("g").lower(), g = h;
3218
- i || (K++, Object.keys(t.links || {}).length && !n.forceMenus && g.attr("onclick", ae(`actor${K}_popup`)).attr("cursor", "pointer"), g.append("line").attr("id", "actor" + K).attr("x1", s).attr("y1", c).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), g = h.append("g"), t.actorCnt = K, t.links != null && g.attr("id", "root-" + K), d === "neo" && g.attr("data-look", "neo"));
3219
- let _ = k(), v = "actor";
3220
- t.properties?.class ? v = t.properties.class : _.fill = "#eaeaea", v += i ? ` ${V}` : ` ${B}`, _.x = t.x, _.y = o, _.width = t.width, _.height = t.height, _.class = v, _.name = t.name, _.x = t.x, _.y = o;
3221
- let y = _.width / 3, b = _.width / 3, x = y / 2, S = x / (2.5 + y / 50), C = g.append("g");
3222
- C.attr("class", v);
3223
- let w = `
3224
- M ${_.x},${_.y + S}
3225
- a ${x},${S} 0 0 0 ${y},0
3226
- a ${x},${S} 0 0 0 -${y},0
3227
- l 0,${b - 2 * S}
3228
- a ${x},${S} 0 0 0 ${y},0
3229
- l 0,-${b - 2 * S}
3278
+ return r || (g.attr("data-et", "participant"), g.attr("data-type", "queue"), g.attr("data-id", t.name)), T;
3279
+ }, "drawActorTypeQueue"), we = /* @__PURE__ */ e(function(e, t, n, r, i, a) {
3280
+ let o = r ? t.stopy : t.starty, s = t.x + t.width / 2, c = pe(t, n, r, o), l = c ? c.lifelineStartY : o + 75, { look: u, theme: d, themeVariables: f } = n, { bkgColorArray: p, borderColorArray: h, actorBorder: g, actorBkg: _ } = f, v = e.append("g").lower();
3281
+ r || (K++, v.append("line").attr("id", "actor" + K).attr("x1", s).attr("y1", l).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), t.actorCnt = K);
3282
+ let y = e.append("g"), b = H;
3283
+ b += r ? ` ${V}` : ` ${B}`, y.attr("class", b), y.attr("name", t.name);
3284
+ let x = k();
3285
+ x.x = t.x, x.y = o, x.fill = "#eaeaea", x.width = t.width, x.height = t.height, x.class = "actor";
3286
+ let S = t.x + t.width / 2, C = c ? c.glyphBottomY - 22 : o + 32;
3287
+ y.append("defs").append("marker").attr("id", i + "-filled-head-control").attr("refX", 11).attr("refY", 5.8).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "172.5").attr("stroke-width", 1.2).append("path").attr("d", "M 14.4 5.6 L 7.2 10.4 L 8.8 5.6 L 7.2 0.8 Z"), y.append("circle").attr("cx", S).attr("cy", C).attr("r", 22).attr("filter", `${u === "neo" ? `url(#${Be(i)})` : ""}`), y.append("line").attr("marker-end", "url(#" + i + "-filled-head-control)").attr("transform", `translate(${S}, ${C - 22})`);
3288
+ let w = a.get(t.name) ?? 0;
3289
+ return U.has(d) ? (y.style("stroke", W(h, w)), y.style("fill", W(p, w))) : (y.style("stroke", g), y.style("fill", _)), c || (t.height = y.node().getBBox().height + 2 * (n?.sequence?.labelBoxHeight ?? 0)), Y(n, m(t.description))(t.description, y, x.x, c ? c.labelCenterY - x.height / 2 : x.y + 22 + (r ? 5 : 12), x.width, x.height, { class: `actor ${H}` }, n), r || (y.attr("data-et", "participant"), y.attr("data-type", "control"), y.attr("data-id", t.name)), t.height;
3290
+ }, "drawActorTypeControl"), Te = /* @__PURE__ */ e(function(e, t, n, r, i, a) {
3291
+ let o = r ? t.stopy : t.starty, s = t.x + t.width / 2, c = pe(t, n, r, o), l = c ? c.lifelineStartY : o + 75, { look: u, theme: d, themeVariables: f } = n, { bkgColorArray: p, borderColorArray: h } = f, g = e.append("g").lower(), _ = e.append("g"), v = "actor";
3292
+ v += r ? ` ${V}` : ` ${B}`, _.attr("class", v), _.attr("name", t.name);
3293
+ let y = k();
3294
+ y.x = t.x, y.y = o, y.fill = "#eaeaea", y.width = t.width, y.height = t.height, y.class = "actor";
3295
+ let b = t.x + t.width / 2, x = c ? c.glyphBottomY - 22 : o + (r ? 10 : 25);
3296
+ _.append("circle").attr("cx", b).attr("cy", x).attr("r", 22).attr("width", t.width).attr("height", t.height), _.append("line").attr("x1", b - 22).attr("x2", b + 22).attr("y1", x + 22).attr("y2", x + 22).attr("stroke-width", 2), u === "neo" && _.attr("filter", `url(#${Be(i)})`);
3297
+ let S = a.get(t.name) ?? 0;
3298
+ return U.has(d) && (_.style("stroke", W(h, S)), _.style("fill", W(p, S))), c || (t.height = _.node().getBBox().height + (n?.sequence?.labelBoxHeight ?? 0)), r || (K++, g.append("line").attr("id", "actor" + K).attr("x1", s).attr("y1", l).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), t.actorCnt = K), Y(n, m(t.description))(t.description, _, y.x, c ? c.labelCenterY - y.height / 2 : y.y + (r ? 15 : 30), y.width, y.height, { class: `actor ${H}` }, n), c || _.attr("transform", `translate(0, ${r ? 22 : 6})`), r || (_.attr("data-et", "participant"), _.attr("data-type", "entity"), _.attr("data-id", t.name)), t.height;
3299
+ }, "drawActorTypeEntity"), q = /* @__PURE__ */ e(function(e, t, n, r, i, a) {
3300
+ let o = r ? t.stopy : t.starty, s = t.x + t.width / 2, c = pe(t, n, r, o), l = c ? c.lifelineStartY : o + t.height + 2 * n.boxTextMargin, { theme: u, themeVariables: d, look: f } = n, { bkgColorArray: p, borderColorArray: h, actorBorder: g } = d, _ = e.append("g").lower(), v = _;
3301
+ r || (K++, Object.keys(t.links || {}).length && !n.forceMenus && v.attr("onclick", _e(`actor${K}_popup`)).attr("cursor", "pointer"), v.append("line").attr("id", "actor" + K).attr("x1", s).attr("y1", l).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), v = _.append("g"), t.actorCnt = K, t.links != null && v.attr("id", "root-" + K), f === "neo" && v.attr("data-look", "neo"));
3302
+ let y = k(), b = "actor";
3303
+ t.properties?.class ? b = t.properties.class : y.fill = "#eaeaea", b += r ? ` ${V}` : ` ${B}`, y.x = t.x, y.y = o, y.width = t.width, y.height = t.height, y.class = b, y.name = t.name, y.x = t.x, y.y = o;
3304
+ let x = y.width / 3, S = x / 2, C = S / (2.5 + x / 50), w = c ? re : y.width / 3, T = c ? c.glyphBottomY - w - C : y.y, E = v.append("g");
3305
+ E.attr("class", b);
3306
+ let D = `
3307
+ M ${y.x},${T + C}
3308
+ a ${S},${C} 0 0 0 ${x},0
3309
+ a ${S},${C} 0 0 0 -${x},0
3310
+ l 0,${w - 2 * C}
3311
+ a ${S},${C} 0 0 0 ${x},0
3312
+ l 0,-${w - 2 * C}
3230
3313
  `;
3231
- C.append("path").attr("d", w), d === "neo" && C.attr("filter", "url(#drop-shadow)");
3232
- let T = a.get(t.name) ?? 0;
3233
- U.has(l) ? (C.style("stroke", p[T % p.length]), C.style("fill", f[T % p.length])) : C.style("stroke", m), C.attr("transform", `translate(${y}, ${S})`), t.rectData = _, Y(n, r(t.description))(t.description, g, _.x, _.y + 35, _.width, _.height, { class: `actor ${re}` }, n);
3234
- let E = C.select("path:last-child");
3235
- return E.node() && (t.height = E.node().getBBox().height + (n.sequence.labelBoxHeight ?? 0)), i || (g.attr("data-et", "participant"), g.attr("data-type", "database"), g.attr("data-id", t.name)), t.height;
3236
- }, "drawActorTypeDatabase"), he = /* @__PURE__ */ e(function(e, t, n, i, a) {
3237
- let o = i ? t.stopy : t.starty, s = t.x + t.width / 2, c = o + 80, l = e.append("g").lower(), { look: u, theme: d, themeVariables: f } = n, { bkgColorArray: p, borderColorArray: m, actorBorder: h } = f;
3238
- i || (K++, l.append("line").attr("id", "actor" + K).attr("x1", s).attr("y1", c).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), t.actorCnt = K);
3239
- let g = e.append("g"), _ = H;
3240
- _ += i ? ` ${V}` : ` ${B}`, g.attr("class", _), g.attr("name", t.name);
3241
- let v = k();
3242
- v.x = t.x, v.y = o, v.fill = "#eaeaea", v.width = t.width, v.height = t.height, v.class = "actor", g.append("line").attr("id", "actor-man-torso" + K).attr("x1", t.x + t.width / 2 - 55).attr("y1", o + 12).attr("x2", t.x + t.width / 2 - 15).attr("y2", o + 12), g.append("line").attr("id", "actor-man-arms" + K).attr("x1", t.x + t.width / 2 - 55).attr("y1", o + 2).attr("x2", t.x + t.width / 2 - 55).attr("y2", o + 22), g.append("circle").attr("cx", t.x + t.width / 2).attr("cy", o + 12).attr("r", 22), u === "neo" && g.attr("filter", "url(#drop-shadow)");
3243
- let y = a.get(t.name) ?? 0;
3244
- return U.has(d) ? (g.style("stroke", m[y % m.length]), g.style("fill", p[y % m.length])) : g.style("stroke", h), t.height = g.node().getBBox().height + (n.sequence.labelBoxHeight ?? 0), Y(n, r(t.description))(t.description, g, v.x, v.y + 15, v.width, v.height, { class: `actor ${H}` }, n), g.attr("transform", "translate(0,21)"), i || (g.attr("data-et", "participant"), g.attr("data-type", "boundary"), g.attr("data-id", t.name)), t.height;
3245
- }, "drawActorTypeBoundary"), ge = /* @__PURE__ */ e(function(e, t, n, i, a) {
3246
- let o = i ? t.stopy : t.starty, s = t.x + t.width / 2, c = o + 80, { look: l, theme: u, themeVariables: d } = n, { bkgColorArray: f, borderColorArray: p, actorBorder: m } = d, h = e.append("g").lower();
3247
- i || (K++, h.append("line").attr("id", "actor" + K).attr("x1", s).attr("y1", c).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), t.actorCnt = K);
3248
- let g = e.append("g"), _ = H;
3249
- _ += i ? ` ${V}` : ` ${B}`, g.attr("class", _), g.attr("name", t.name), i || g.attr("data-et", "participant").attr("data-type", "actor").attr("data-id", t.name);
3250
- let v = l === "neo" ? .5 : 1, y = l === "neo" ? o + (1 - v) * 30 : o;
3251
- g.append("line").attr("id", "actor-man-torso" + K).attr("x1", s).attr("y1", y + 25 * v).attr("x2", s).attr("y2", y + 45 * v), g.append("line").attr("id", "actor-man-arms" + K).attr("x1", s - z / 2 * v).attr("y1", y + 33 * v).attr("x2", s + z / 2 * v).attr("y2", y + 33 * v), g.append("line").attr("x1", s - z / 2 * v).attr("y1", y + 60 * v).attr("x2", s).attr("y2", y + 45 * v), g.append("line").attr("x1", s).attr("y1", y + 45 * v).attr("x2", s + (z / 2 - 2) * v).attr("y2", y + 60 * v);
3252
- let b = g.append("circle");
3253
- b.attr("cx", t.x + t.width / 2), b.attr("cy", y + 10 * v), b.attr("r", 15 * v), b.attr("width", t.width * v), b.attr("height", t.height * v), t.height = g.node().getBBox().height;
3314
+ E.append("path").attr("d", D), f === "neo" && E.attr("filter", `url(#${Be(i)})`);
3315
+ let O = a.get(t.name) ?? 0;
3316
+ if (U.has(u) ? (E.style("stroke", W(h, O)), E.style("fill", W(p, O))) : E.style("stroke", g), E.attr("transform", `translate(${x}, ${C})`), t.rectData = y, Y(n, m(t.description))(t.description, v, y.x, c ? c.labelCenterY - y.height / 2 : y.y + 35, y.width, y.height, { class: `actor ${me}` }, n), !c) {
3317
+ let e = E.select("path:last-child");
3318
+ e.node() && (t.height = e.node().getBBox().height + (n.sequence.labelBoxHeight ?? 0));
3319
+ }
3320
+ return r || (v.attr("data-et", "participant"), v.attr("data-type", "database"), v.attr("data-id", t.name)), t.height;
3321
+ }, "drawActorTypeDatabase"), Ee = /* @__PURE__ */ e(function(e, t, n, r, i, a) {
3322
+ let o = r ? t.stopy : t.starty, s = t.x + t.width / 2, c = pe(t, n, r, o), l = c ? c.lifelineStartY : o + 80, u = c ? c.glyphBottomY - 22 : o + 12, d = e.append("g").lower(), { look: f, theme: p, themeVariables: h } = n, { bkgColorArray: g, borderColorArray: _, actorBorder: v } = h;
3323
+ r || (K++, d.append("line").attr("id", "actor" + K).attr("x1", s).attr("y1", l).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", t.name).attr("data-et", "life-line").attr("data-id", t.name), t.actorCnt = K);
3324
+ let y = e.append("g"), b = H;
3325
+ b += r ? ` ${V}` : ` ${B}`, y.attr("class", b), y.attr("name", t.name);
3254
3326
  let x = k();
3255
- x.x = t.x, x.y = y, x.fill = "#eaeaea", x.width = t.width, x.height = t.height / v, x.class = "actor", x.rx = 3, x.ry = 3;
3327
+ x.x = t.x, x.y = o, x.fill = "#eaeaea", x.width = t.width, x.height = t.height, x.class = "actor", y.append("line").attr("id", "actor-man-torso" + K).attr("x1", t.x + t.width / 2 - 55).attr("y1", u).attr("x2", t.x + t.width / 2 - 15).attr("y2", u), y.append("line").attr("id", "actor-man-arms" + K).attr("x1", t.x + t.width / 2 - 55).attr("y1", u - 10).attr("x2", t.x + t.width / 2 - 55).attr("y2", u + 10), y.append("circle").attr("cx", t.x + t.width / 2).attr("cy", u).attr("r", 22), f === "neo" && y.attr("filter", `url(#${Be(i)})`);
3256
3328
  let S = a.get(t.name) ?? 0;
3257
- return U.has(u) ? (g.style("stroke", p[S % p.length]), g.style("fill", f[S % p.length])) : g.style("stroke", m), Y(n, r(t.description))(t.description, g, x.x, y + 35 * v - (l === "neo" ? 10 : 0), x.width, x.height, { class: `actor ${H}` }, n), t.height;
3258
- }, "drawActorTypeActor"), _e = /* @__PURE__ */ e(async function(e, t, n, r, i, a, o) {
3329
+ return U.has(p) ? (y.style("stroke", W(_, S)), y.style("fill", W(g, S))) : y.style("stroke", v), c || (t.height = y.node().getBBox().height + (n.sequence.labelBoxHeight ?? 0)), Y(n, m(t.description))(t.description, y, x.x, c ? c.labelCenterY - x.height / 2 : x.y + 15, x.width, x.height, { class: `actor ${H}` }, n), c || y.attr("transform", "translate(0,21)"), r || (y.attr("data-et", "participant"), y.attr("data-type", "boundary"), y.attr("data-id", t.name)), t.height;
3330
+ }, "drawActorTypeBoundary"), J = /* @__PURE__ */ e(function(t, n, r, i, a) {
3331
+ let o = i ? n.stopy : n.starty, s = n.x + n.width / 2, c = pe(n, r, i, o), l = c ? c.lifelineStartY : o + 80, { theme: u, themeVariables: d } = r, { bkgColorArray: f, borderColorArray: p, actorBorder: h } = d, g = t.append("g").lower();
3332
+ i || (K++, g.append("line").attr("id", "actor" + K).attr("x1", s).attr("y1", l).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", n.name).attr("data-et", "life-line").attr("data-id", n.name), n.actorCnt = K);
3333
+ let _ = t.append("g"), v = H;
3334
+ v += i ? ` ${V}` : ` ${B}`, _.attr("class", v), _.attr("name", n.name), i || _.attr("data-et", "participant").attr("data-type", "actor").attr("data-id", n.name);
3335
+ let y = c ? re / fe : 1, b = /* @__PURE__ */ e((e) => c ? c.glyphBottomY - (de - e) * y : o + e, "gy"), x = /* @__PURE__ */ e((e) => s + e * y, "gx");
3336
+ _.append("line").attr("id", "actor-man-torso" + K).attr("x1", s).attr("y1", b(25)).attr("x2", s).attr("y2", b(45)), _.append("line").attr("id", "actor-man-arms" + K).attr("x1", x(-z / 2)).attr("y1", b(33)).attr("x2", x(z / 2)).attr("y2", b(33)), _.append("line").attr("x1", x(-z / 2)).attr("y1", b(60)).attr("x2", s).attr("y2", b(45)), _.append("line").attr("x1", s).attr("y1", b(45)).attr("x2", x(z / 2 - 2)).attr("y2", b(60));
3337
+ let S = _.append("circle");
3338
+ S.attr("cx", n.x + n.width / 2), S.attr("cy", b(10)), S.attr("r", 15 * y), S.attr("width", n.width), S.attr("height", n.height), c || (n.height = fe);
3339
+ let C = k();
3340
+ C.x = n.x, C.y = o, C.fill = "#eaeaea", C.width = n.width, C.height = n.height, C.class = "actor", C.rx = 3, C.ry = 3;
3341
+ let w = a.get(n.name) ?? 0;
3342
+ return U.has(u) ? (_.style("stroke", W(p, w)), _.style("fill", W(f, w))) : _.style("stroke", h), Y(r, m(n.description))(n.description, _, C.x, c ? c.labelCenterY - C.height / 2 : o + 35, C.width, C.height, { class: `actor ${H}` }, r), n.height;
3343
+ }, "drawActorTypeActor"), De = /* @__PURE__ */ e(async function(e, t, n, r, i, a, o) {
3259
3344
  let s = o ?? new Map([...a.db.getActors().values()].map((e, t) => [e.name, t]));
3260
3345
  switch (t.type) {
3261
- case "actor": return await ge(e, t, n, r, s);
3262
- case "participant": return await le(e, t, n, r, s);
3263
- case "boundary": return await he(e, t, n, r, s);
3264
- case "control": return await fe(e, t, n, r, i, s);
3265
- case "entity": return await pe(e, t, n, r, s);
3266
- case "database": return await me(e, t, n, r, s);
3267
- case "collections": return await ue(e, t, n, r, s);
3268
- case "queue": return await de(e, t, n, r, s);
3346
+ case "actor": return await J(e, t, n, r, s);
3347
+ case "participant": return await xe(e, t, n, r, i, s);
3348
+ case "boundary": return await Ee(e, t, n, r, i, s);
3349
+ case "control": return await we(e, t, n, r, i, s);
3350
+ case "entity": return await Te(e, t, n, r, i, s);
3351
+ case "database": return await q(e, t, n, r, i, s);
3352
+ case "collections": return await Se(e, t, n, r, i, s);
3353
+ case "queue": return await Ce(e, t, n, r, i, s);
3269
3354
  }
3270
- }, "drawActor"), ve = /* @__PURE__ */ e(function(e, t, n) {
3355
+ }, "drawActor"), Oe = /* @__PURE__ */ e(function(e, t, n) {
3271
3356
  let r = e.append("g");
3272
- Se(r, t), t.name && Y(n)(t.name, r, t.x, t.y + n.boxTextMargin + (t.textMaxHeight || 0) / 2, t.width, 0, { class: "text" }, n), r.lower();
3273
- }, "drawBox"), ye = /* @__PURE__ */ e(function(e) {
3357
+ Me(r, t), t.name && Y(n)(t.name, r, t.x, t.y + n.boxTextMargin + (t.textMaxHeight || 0) / 2, t.width, 0, { class: "text" }, n), r.lower();
3358
+ }, "drawBox"), ke = /* @__PURE__ */ e(function(e) {
3274
3359
  return e.append("g");
3275
- }, "anchorElement"), be = /* @__PURE__ */ e(function(e, t, n, r, i, a, o) {
3360
+ }, "anchorElement"), Ae = /* @__PURE__ */ e(function(e, t, n, r, i, a, o) {
3276
3361
  let { theme: s, themeVariables: c } = r, { bkgColorArray: l, borderColorArray: u, mainBkg: d } = c, f = k(), p = t.anchored, m = t.actor;
3277
3362
  f.x = t.startx, f.y = t.starty, f.class = "activation" + i % 3, f.width = t.stopx - t.startx, f.height = n - t.starty;
3278
- let h = W(p, f), g = (o ?? new Map([...a.db.getActors().values()].map((e, t) => [e.name, t]))).get(m) ?? 0;
3279
- U.has(s) && (h.style("stroke", u[g % u.length]), h.style("fill", l[g % u.length] ?? d));
3280
- }, "drawActivation"), xe = /* @__PURE__ */ e(async function(t, n, i, a, o) {
3281
- let { boxMargin: s, boxTextMargin: c, labelBoxHeight: l, labelBoxWidth: u, messageFontFamily: d, messageFontSize: f, messageFontWeight: p } = a, m = t.append("g").attr("data-et", "control-structure").attr("data-id", "i" + o.id), h = /* @__PURE__ */ e(function(e, t, n, r) {
3282
- return m.append("line").attr("x1", e).attr("y1", t).attr("x2", n).attr("y2", r).attr("class", "loopLine");
3363
+ let h = he(p, f), g = (o ?? new Map([...a.db.getActors().values()].map((e, t) => [e.name, t]))).get(m) ?? 0;
3364
+ U.has(s) && (h.style("stroke", W(u, g)), h.style("fill", W(l, g) ?? d));
3365
+ }, "drawActivation"), je = /* @__PURE__ */ e(async function(t, n, r, i, a) {
3366
+ let { boxMargin: o, boxTextMargin: s, labelBoxHeight: c, labelBoxWidth: l, messageFontFamily: u, messageFontSize: d, messageFontWeight: f } = i, p = t.append("g").attr("data-et", "control-structure").attr("data-id", "i" + a.id), h = /* @__PURE__ */ e(function(e, t, n, r) {
3367
+ return p.append("line").attr("x1", e).attr("y1", t).attr("x2", n).attr("y2", r).attr("class", "loopLine");
3283
3368
  }, "drawLoopLine");
3284
3369
  h(n.startx, n.starty, n.stopx, n.starty), h(n.stopx, n.starty, n.stopx, n.stopy), h(n.startx, n.stopy, n.stopx, n.stopy), h(n.startx, n.starty, n.startx, n.stopy), n.sections !== void 0 && n.sections.forEach(function(e) {
3285
3370
  h(n.startx, e.y, n.stopx, e.y).style("stroke-dasharray", "3, 3");
3286
3371
  });
3287
3372
  let g = T();
3288
- g.text = i, g.x = n.startx, g.y = n.starty, g.fontFamily = d, g.fontSize = f, g.fontWeight = p, g.anchor = "middle", g.valign = "middle", g.tspan = !1, g.width = Math.max(u ?? 0, 50), g.height = l + (a.look === "neo" ? 15 : 0) || 20, g.textMargin = c, g.class = "labelText", se(m, g), g = ke(), g.text = n.title, g.x = n.startx + u / 2 + (n.stopx - n.startx) / 2, g.y = n.starty + s + c, g.anchor = "middle", g.valign = "middle", g.textMargin = c, g.class = "loopText", g.fontFamily = d, g.fontSize = f, g.fontWeight = p, g.wrap = !0;
3289
- let _ = r(g.text) ? await oe(m, g, n) : G(m, g);
3373
+ g.text = r, g.x = n.startx, g.y = n.starty, g.fontFamily = u, g.fontSize = d, g.fontWeight = f, g.anchor = "middle", g.valign = "middle", g.tspan = !1, g.width = Math.max(l ?? 0, 50), g.height = c + (i.look === "neo" ? 15 : 0) || 20, g.textMargin = s, g.class = "labelText", ye(p, g), g = He(), g.text = n.title, g.x = n.startx + l / 2 + (n.stopx - n.startx) / 2, g.y = n.starty + o + s, g.anchor = "middle", g.valign = "middle", g.textMargin = s, g.class = "loopText", g.fontFamily = u, g.fontSize = d, g.fontWeight = f, g.wrap = !0;
3374
+ let _ = m(g.text) ? await ve(p, g, n) : G(p, g);
3290
3375
  if (n.sectionTitles !== void 0) {
3291
3376
  for (let [e, t] of Object.entries(n.sectionTitles)) if (t.message) {
3292
- g.text = t.message, g.x = n.startx + (n.stopx - n.startx) / 2, g.y = n.sections[e].y + s + c, g.class = "sectionTitle", g.anchor = "middle", g.valign = "middle", g.tspan = !1, g.fontFamily = d, g.fontSize = f, g.fontWeight = p, g.wrap = n.wrap, r(g.text) ? (n.starty = n.sections[e].y, await oe(m, g, n)) : G(m, g);
3293
- let i = Math.round(_.map((e) => (e._groups || e)[0][0].getBBox().height).reduce((e, t) => e + t));
3294
- n.sections[e].height += i - (s + c);
3377
+ g.text = t.message, g.x = n.startx + (n.stopx - n.startx) / 2, g.y = n.sections[e].y + o + s, g.class = "sectionTitle", g.anchor = "middle", g.valign = "middle", g.tspan = !1, g.fontFamily = u, g.fontSize = d, g.fontWeight = f, g.wrap = n.wrap, m(g.text) ? (n.starty = n.sections[e].y, await ve(p, g, n)) : G(p, g);
3378
+ let r = Math.round(_.map((e) => (e._groups || e)[0][0].getBBox().height).reduce((e, t) => e + t));
3379
+ n.sections[e].height += r - (o + s);
3295
3380
  }
3296
3381
  }
3297
- return n.height = Math.round(n.stopy - n.starty), m;
3298
- }, "drawLoop"), Se = /* @__PURE__ */ e(function(e, t) {
3382
+ return n.height = Math.round(n.stopy - n.starty), p;
3383
+ }, "drawLoop"), Me = /* @__PURE__ */ e(function(e, t) {
3299
3384
  D(e, t);
3300
- }, "drawBackgroundRect"), Ce = /* @__PURE__ */ e(function(e, t) {
3385
+ }, "drawBackgroundRect"), Ne = /* @__PURE__ */ e(function(e, t) {
3301
3386
  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");
3302
- }, "insertDatabaseIcon"), q = /* @__PURE__ */ e(function(e, t) {
3387
+ }, "insertDatabaseIcon"), Pe = /* @__PURE__ */ e(function(e, t) {
3303
3388
  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");
3304
- }, "insertComputerIcon"), J = /* @__PURE__ */ e(function(e, t) {
3389
+ }, "insertComputerIcon"), Fe = /* @__PURE__ */ e(function(e, t) {
3305
3390
  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");
3306
- }, "insertClockIcon"), we = /* @__PURE__ */ e(function(e, t) {
3391
+ }, "insertClockIcon"), Ie = /* @__PURE__ */ e(function(e, t) {
3307
3392
  e.append("defs").append("marker").attr("id", t + "-arrowhead").attr("refX", 7.9).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto-start-reverse").append("path").attr("d", "M -1 0 L 10 5 L 0 10 z");
3308
- }, "insertArrowHead"), Te = /* @__PURE__ */ e(function(e, t) {
3393
+ }, "insertArrowHead"), Le = /* @__PURE__ */ e(function(e, t) {
3309
3394
  e.append("defs").append("marker").attr("id", t + "-filled-head").attr("refX", 15.5).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");
3310
- }, "insertArrowFilledHead"), Ee = /* @__PURE__ */ e(function(e, t) {
3395
+ }, "insertArrowFilledHead"), Re = /* @__PURE__ */ e(function(e, t) {
3311
3396
  e.append("defs").append("marker").attr("id", t + "-sequencenumber").attr("refX", 15).attr("refY", 15).attr("markerWidth", 60).attr("markerHeight", 40).attr("orient", "auto").append("circle").attr("cx", 15).attr("cy", 15).attr("r", 6);
3312
- }, "insertSequenceNumber"), De = /* @__PURE__ */ e(function(e, t) {
3397
+ }, "insertSequenceNumber"), ze = /* @__PURE__ */ e(function(e, t) {
3313
3398
  e.append("defs").append("marker").attr("id", t + "-crosshead").attr("markerWidth", 15).attr("markerHeight", 8).attr("orient", "auto").attr("refX", 4).attr("refY", 4.5).append("path").attr("fill", "none").attr("stroke", "#000000").style("stroke-dasharray", "0, 0").attr("stroke-width", "1pt").attr("d", "M 1,2 L 6,7 M 6,2 L 1,7");
3314
- }, "insertArrowCrossHead"), Oe = /* @__PURE__ */ e(function(e, t) {
3315
- let { theme: n } = t;
3316
- e.append("defs").append("filter").attr("id", "drop-shadow").attr("height", "130%").attr("width", "130%").append("feDropShadow").attr("dx", "4").attr("dy", "4").attr("stdDeviation", 0).attr("flood-opacity", "0.06").attr("flood-color", `${n === "redux" || n === "redux-color" ? "#000000" : "#FFFFFF"}`);
3317
- }, "insertDropShadow"), ke = /* @__PURE__ */ e(function() {
3399
+ }, "insertArrowCrossHead"), Be = /* @__PURE__ */ e((e) => e ? `${e}-drop-shadow` : "drop-shadow", "dropShadowId"), Ve = /* @__PURE__ */ e(function(e, t, n) {
3400
+ let { theme: r } = t;
3401
+ e.append("defs").append("filter").attr("id", Be(n)).attr("height", "130%").attr("width", "130%").append("feDropShadow").attr("dx", "4").attr("dy", "4").attr("stdDeviation", 0).attr("flood-opacity", "0.06").attr("flood-color", `${r === "redux" || r === "redux-color" ? "#000000" : "#FFFFFF"}`);
3402
+ }, "insertDropShadow"), He = /* @__PURE__ */ e(function() {
3318
3403
  return {
3319
3404
  x: 0,
3320
3405
  y: 0,
@@ -3329,7 +3414,7 @@ var F = P, I = {
3329
3414
  tspan: !0,
3330
3415
  valign: void 0
3331
3416
  };
3332
- }, "getTextObj"), Ae = /* @__PURE__ */ e(function() {
3417
+ }, "getTextObj"), Ue = /* @__PURE__ */ e(function() {
3333
3418
  return {
3334
3419
  x: 0,
3335
3420
  y: 0,
@@ -3347,7 +3432,7 @@ var F = P, I = {
3347
3432
  }
3348
3433
  e(t, "byText");
3349
3434
  function n(e, t, n, r, i, a, s, c) {
3350
- let { actorFontSize: l, actorFontFamily: u, actorFontWeight: d } = c, [f, p] = C(l), m = e.split(h.lineBreakRegex);
3435
+ let { actorFontSize: l, actorFontFamily: u, actorFontWeight: d } = c, [f, p] = C(l), m = e.split(_.lineBreakRegex);
3351
3436
  for (let e = 0; e < m.length; e++) {
3352
3437
  let c = e * f - f * (m.length - 1) / 2, l = t.append("text").attr("x", n + i / 2).attr("y", r).style("text-anchor", "middle").style("font-size", p).style("font-weight", d).style("font-family", u);
3353
3438
  l.append("tspan").attr("x", n + i / 2).attr("dy", c).text(m[e]), l.attr("y", r + a / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), o(l, s);
@@ -3359,24 +3444,24 @@ var F = P, I = {
3359
3444
  d.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(e), n(e, u, r, i, a, s, c, l), o(d, c);
3360
3445
  }
3361
3446
  e(r, "byFo");
3362
- async function a(e, t, r, a, s, c, l, u) {
3363
- let f = await p(e, d()), m = t.append("switch"), h = m.append("foreignObject").attr("x", r + s / 2 - f.width / 2).attr("y", a + c / 2 - f.height / 2).attr("width", f.width).attr("height", f.height).append("xhtml:div").style("height", "100%").style("width", "100%");
3364
- h.append("div").style("text-align", "center").style("vertical-align", "middle").html(await i(e, d())), n(e, m, r, a, s, c, l, u), o(h, l);
3447
+ async function i(e, t, r, i, s, c, l, u) {
3448
+ let d = await p(e, y()), f = t.append("switch"), m = f.append("foreignObject").attr("x", r + s / 2 - d.width / 2).attr("y", i + c / 2 - d.height / 2).attr("width", d.width).attr("height", d.height).append("xhtml:div").style("height", "100%").style("width", "100%");
3449
+ m.append("div").style("text-align", "center").style("vertical-align", "middle").html(await a(e, y())), n(e, f, r, i, s, c, l, u), o(m, l);
3365
3450
  }
3366
- e(a, "byKatex");
3451
+ e(i, "byKatex");
3367
3452
  function o(e, t) {
3368
3453
  for (let n in t) t.hasOwnProperty(n) && e.attr(n, t[n]);
3369
3454
  }
3370
- return e(o, "_setTextAttrs"), function(e, i = !1) {
3371
- return i ? a : e.textPlacement === "fo" ? r : e.textPlacement === "old" ? t : n;
3455
+ return e(o, "_setTextAttrs"), function(e, a = !1) {
3456
+ return a ? i : e.textPlacement === "fo" ? r : e.textPlacement === "old" ? t : n;
3372
3457
  };
3373
- })(), je = /* @__PURE__ */ (function() {
3458
+ })(), We = /* @__PURE__ */ (function() {
3374
3459
  function t(e, t, n, r, a, o, s) {
3375
3460
  i(t.append("text").attr("x", n).attr("y", r).style("text-anchor", "start").text(e), s);
3376
3461
  }
3377
3462
  e(t, "byText");
3378
3463
  function n(e, t, n, r, a, o, s, c) {
3379
- let { actorFontSize: l, actorFontFamily: u, actorFontWeight: d } = c, f = e.split(h.lineBreakRegex);
3464
+ let { actorFontSize: l, actorFontFamily: u, actorFontWeight: d } = c, f = e.split(_.lineBreakRegex);
3380
3465
  for (let e = 0; e < f.length; e++) {
3381
3466
  let a = e * l - l * (f.length - 1) / 2, c = t.append("text").attr("x", n).attr("y", r).style("text-anchor", "start").style("font-size", l).style("font-weight", d).style("font-family", u);
3382
3467
  c.append("tspan").attr("x", n).attr("dy", a).text(f[e]), c.attr("y", r + o / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), i(c, s);
@@ -3395,28 +3480,28 @@ var F = P, I = {
3395
3480
  return e.textPlacement === "fo" ? r : e.textPlacement === "old" ? t : n;
3396
3481
  };
3397
3482
  })(), X = {
3398
- drawRect: W,
3483
+ drawRect: he,
3399
3484
  drawText: G,
3400
- drawLabel: se,
3401
- drawActor: _e,
3402
- drawBox: ve,
3403
- drawPopup: ie,
3404
- anchorElement: ye,
3405
- drawActivation: be,
3406
- drawLoop: xe,
3407
- drawBackgroundRect: Se,
3408
- insertArrowHead: we,
3409
- insertArrowFilledHead: Te,
3410
- insertSequenceNumber: Ee,
3411
- insertArrowCrossHead: De,
3412
- insertDatabaseIcon: Ce,
3413
- insertComputerIcon: q,
3414
- insertClockIcon: J,
3415
- getTextObj: ke,
3416
- getNoteRect: Ae,
3417
- fixLifeLineHeights: ce,
3485
+ drawLabel: ye,
3486
+ drawActor: De,
3487
+ drawBox: Oe,
3488
+ drawPopup: ge,
3489
+ anchorElement: ke,
3490
+ drawActivation: Ae,
3491
+ drawLoop: je,
3492
+ drawBackgroundRect: Me,
3493
+ insertArrowHead: Ie,
3494
+ insertArrowFilledHead: Le,
3495
+ insertSequenceNumber: Re,
3496
+ insertArrowCrossHead: ze,
3497
+ insertDatabaseIcon: Ne,
3498
+ insertComputerIcon: Pe,
3499
+ insertClockIcon: Fe,
3500
+ getTextObj: He,
3501
+ getNoteRect: Ue,
3502
+ fixLifeLineHeights: be,
3418
3503
  sanitizeUrl: N.sanitizeUrl,
3419
- insertDropShadow: Oe,
3504
+ insertDropShadow: Ve,
3420
3505
  insertSolidTopArrowHead: /* @__PURE__ */ e(function(e, t) {
3421
3506
  e.append("defs").append("marker").attr("id", t + "-solidTopArrowHead").attr("refX", 7.9).attr("refY", 7.25).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto-start-reverse").append("path").attr("d", "M 0 0 L 10 8 L 0 8 z");
3422
3507
  }, "insertSolidTopArrowHead"),
@@ -3485,7 +3570,7 @@ var F = P, I = {
3485
3570
  stopx: void 0,
3486
3571
  starty: void 0,
3487
3572
  stopy: void 0
3488
- }, this.verticalPos = 0, He(v());
3573
+ }, this.verticalPos = 0, tt(d());
3489
3574
  }, "init"),
3490
3575
  updateVal: /* @__PURE__ */ e(function(e, t, n, r) {
3491
3576
  e[t] = e[t] === void 0 ? n : r(n, e[t]);
@@ -3502,11 +3587,11 @@ var F = P, I = {
3502
3587
  e(s, "updateFn"), this.sequenceItems.forEach(s()), this.activations.forEach(s("activation"));
3503
3588
  }, "updateBounds"),
3504
3589
  insert: /* @__PURE__ */ e(function(e, t, n, r) {
3505
- let i = h.getMin(e, n), a = h.getMax(e, n), o = h.getMin(t, r), s = h.getMax(t, r);
3590
+ let i = _.getMin(e, n), a = _.getMax(e, n), o = _.getMin(t, r), s = _.getMax(t, r);
3506
3591
  this.updateVal(Q.data, "startx", i, Math.min), this.updateVal(Q.data, "starty", o, Math.min), this.updateVal(Q.data, "stopx", a, Math.max), this.updateVal(Q.data, "stopy", s, Math.max), this.updateBounds(i, o, a, s);
3507
3592
  }, "insert"),
3508
3593
  newActivation: /* @__PURE__ */ e(function(e, t, n) {
3509
- let r = n.get(e.from), i = Ue(e.from).length || 0, a = r.x + r.width / 2 + (i - 1) * Z.activationWidth / 2;
3594
+ let r = n.get(e.from), i = nt(e.from).length || 0, a = r.x + r.width / 2 + (i - 1) * Z.activationWidth / 2;
3510
3595
  this.activations.push({
3511
3596
  startx: a,
3512
3597
  starty: this.verticalPos + 2,
@@ -3566,7 +3651,7 @@ var F = P, I = {
3566
3651
  this.isLoopOverlap() && (this.verticalPos = this.savedVerticalPos);
3567
3652
  }, "resetVerticalPos"),
3568
3653
  bumpVerticalPos: /* @__PURE__ */ e(function(e) {
3569
- this.verticalPos += e, this.data.stopy = h.getMax(this.data.stopy, this.verticalPos);
3654
+ this.verticalPos += e, this.data.stopy = _.getMax(this.data.stopy, this.verticalPos);
3570
3655
  }, "bumpVerticalPos"),
3571
3656
  getVerticalPos: /* @__PURE__ */ e(function() {
3572
3657
  return this.verticalPos;
@@ -3577,18 +3662,18 @@ var F = P, I = {
3577
3662
  models: this.models
3578
3663
  };
3579
3664
  }, "getBounds")
3580
- }, Me = /* @__PURE__ */ e(async function(e, t, n) {
3665
+ }, Ge = /* @__PURE__ */ e(async function(e, t, n) {
3581
3666
  Q.bumpVerticalPos(Z.boxMargin), t.height = Z.boxMargin, t.starty = Q.getVerticalPos();
3582
- let i = k();
3583
- i.x = t.startx, i.y = t.starty, i.width = t.width || Z.width, i.class = "note";
3584
- let a = e.append("g");
3585
- a.attr("data-et", "note"), a.attr("data-id", "i" + n);
3586
- let o = X.drawRect(a, i), s = T();
3587
- s.x = t.startx, s.y = t.starty, s.width = i.width, s.dy = "1em", s.text = t.message, s.class = "noteText", s.fontFamily = Z.noteFontFamily, s.fontSize = Z.noteFontSize, s.fontWeight = Z.noteFontWeight, s.anchor = Z.noteAlign, s.textMargin = Z.noteMargin, s.valign = "center";
3588
- let c = r(s.text) ? await oe(a, s) : G(a, s), l = Math.round(c.map((e) => (e._groups || e)[0][0].getBBox().height).reduce((e, t) => e + t));
3589
- o.attr("height", l + 2 * Z.noteMargin), t.height += l + 2 * Z.noteMargin, Q.bumpVerticalPos(l + 2 * Z.noteMargin), t.stopy = t.starty + l + 2 * Z.noteMargin, t.stopx = t.startx + i.width, Q.insert(t.startx, t.starty, t.stopx, t.stopy), Q.models.addNote(t);
3590
- }, "drawNote"), Ne = /* @__PURE__ */ e(function(t, n, r, i, a, o, s) {
3591
- let c = i.db.getActors(), l = c.get(n.from), u = c.get(n.to), d = r.sequenceVisible, f = l.x + l.width / 2, p = u.x + u.width / 2, m = f <= p, h = tt(n, i), g = t.append("g"), _ = /* @__PURE__ */ e((e, t) => {
3667
+ let r = k();
3668
+ r.x = t.startx, r.y = t.starty, r.width = t.width || Z.width, r.class = "note";
3669
+ let i = e.append("g");
3670
+ i.attr("data-et", "note"), i.attr("data-id", "i" + n);
3671
+ let a = X.drawRect(i, r), o = T();
3672
+ o.x = t.startx, o.y = t.starty, o.width = r.width, o.dy = "1em", o.text = t.message, o.class = "noteText", o.fontFamily = Z.noteFontFamily, o.fontSize = Z.noteFontSize, o.fontWeight = Z.noteFontWeight, o.anchor = Z.noteAlign, o.textMargin = Z.noteMargin, o.valign = "center";
3673
+ let s = m(o.text) ? await ve(i, o) : G(i, o), c = Math.round(s.map((e) => (e._groups || e)[0][0].getBBox().height).reduce((e, t) => e + t));
3674
+ a.attr("height", c + 2 * Z.noteMargin), t.height += c + 2 * Z.noteMargin, Q.bumpVerticalPos(c + 2 * Z.noteMargin), t.stopy = t.starty + c + 2 * Z.noteMargin, t.stopx = t.startx + r.width, Q.insert(t.startx, t.starty, t.stopx, t.stopy), Q.models.addNote(t);
3675
+ }, "drawNote"), Ke = /* @__PURE__ */ e(function(t, n, r, i, a, o, s) {
3676
+ let c = i.db.getActors(), l = c.get(n.from), u = c.get(n.to), d = r.sequenceVisible, f = l.x + l.width / 2, p = u.x + u.width / 2, m = f <= p, h = mt(n, i), g = t.append("g"), _ = /* @__PURE__ */ e((e, t) => {
3592
3677
  let n = e ? 16.5 : -16.5;
3593
3678
  return t ? -n : n;
3594
3679
  }, "getCircleOffset"), v = /* @__PURE__ */ e((e) => {
@@ -3612,65 +3697,65 @@ var F = P, I = {
3612
3697
  break;
3613
3698
  case x: v(f), v(p);
3614
3699
  }
3615
- }, "drawCentralConnection"), Pe = /* @__PURE__ */ e((e) => ({
3700
+ }, "drawCentralConnection"), qe = /* @__PURE__ */ e((e) => ({
3616
3701
  fontFamily: e.messageFontFamily,
3617
3702
  fontSize: e.messageFontSize,
3618
3703
  fontWeight: e.messageFontWeight
3619
- }), "messageFont"), Fe = /* @__PURE__ */ e((e) => ({
3704
+ }), "messageFont"), Je = /* @__PURE__ */ e((e) => ({
3620
3705
  fontFamily: e.noteFontFamily,
3621
3706
  fontSize: e.noteFontSize,
3622
3707
  fontWeight: e.noteFontWeight
3623
- }), "noteFont"), Ie = /* @__PURE__ */ e((e) => ({
3708
+ }), "noteFont"), Ye = /* @__PURE__ */ e((e) => ({
3624
3709
  fontFamily: e.actorFontFamily,
3625
3710
  fontSize: e.actorFontSize,
3626
3711
  fontWeight: e.actorFontWeight
3627
3712
  }), "actorFont");
3628
- async function Le(e, t) {
3713
+ async function Xe(e, t) {
3629
3714
  Q.bumpVerticalPos(10);
3630
- let { startx: n, stopx: i, message: a } = t, o = h.splitBreaks(a).length, s = r(a), c = s ? await p(a, v()) : S.calculateTextDimensions(a, Pe(Z));
3631
- if (!s) {
3632
- let e = c.height / o;
3715
+ let { startx: n, stopx: r, message: i } = t, a = _.splitBreaks(i).length, o = m(i), s = o ? await p(i, d()) : S.calculateTextDimensions(i, qe(Z));
3716
+ if (!o) {
3717
+ let e = s.height / a;
3633
3718
  t.height += e, Q.bumpVerticalPos(e);
3634
3719
  }
3635
- let l, u = c.height - 10, d = c.width;
3636
- if (n === i) {
3637
- l = Q.getVerticalPos() + u, Z.rightAngles || (u += Z.boxMargin, l = Q.getVerticalPos() + u), u += 30;
3638
- let e = h.getMax(d / 2, Z.width / 2);
3639
- Q.insert(n - e, Q.getVerticalPos() - 10 + u, i + e, Q.getVerticalPos() + 30 + u);
3640
- } else u += Z.boxMargin, l = Q.getVerticalPos() + u, Q.insert(n, l - 10, i, l);
3641
- return Q.bumpVerticalPos(u), t.height += u, t.stopy = t.starty + t.height, Q.insert(t.fromBounds, t.starty, t.toBounds, t.stopy), l;
3720
+ let c, l = s.height - 10, u = s.width;
3721
+ if (n === r) {
3722
+ c = Q.getVerticalPos() + l, Z.rightAngles || (l += Z.boxMargin, c = Q.getVerticalPos() + l), l += 30;
3723
+ let e = _.getMax(u / 2, Z.width / 2);
3724
+ Q.insert(n - e, Q.getVerticalPos() - 10 + l, r + e, Q.getVerticalPos() + 30 + l);
3725
+ } else l += Z.boxMargin, c = Q.getVerticalPos() + l, Q.insert(n, c - 10, r, c);
3726
+ return Q.bumpVerticalPos(l), t.height += l, t.stopy = t.starty + t.height, Q.insert(t.fromBounds, t.starty, t.toBounds, t.stopy), c;
3642
3727
  }
3643
- e(Le, "boundMessage");
3644
- var Re = /* @__PURE__ */ e(async function(e, t, n, i, a, o) {
3645
- let { startx: s, stopx: l, starty: u, message: d, type: f, sequenceIndex: p, sequenceVisible: m } = t, g = S.calculateTextDimensions(d, Pe(Z)), _ = T();
3646
- _.x = Math.min(s, l), _.y = u + 10, _.width = Math.abs(l - s), _.class = "messageText", _.dy = "1em", _.text = d, _.fontFamily = Z.messageFontFamily, _.fontSize = Z.messageFontSize, _.fontWeight = Z.messageFontWeight, _.anchor = Z.messageAlign, _.valign = "center", _.textMargin = Z.wrapPadding, _.tspan = !1, r(_.text) ? await oe(e, _, {
3728
+ e(Xe, "boundMessage");
3729
+ var Ze = /* @__PURE__ */ e(async function(e, t, n, r, a, o) {
3730
+ let { startx: s, stopx: c, starty: l, message: u, type: d, sequenceIndex: f, sequenceVisible: p } = t, h = S.calculateTextDimensions(u, qe(Z)), g = T();
3731
+ g.x = Math.min(s, c), g.y = l + 10, g.width = Math.abs(c - s), g.class = "messageText", g.dy = "1em", g.text = u, g.fontFamily = Z.messageFontFamily, g.fontSize = Z.messageFontSize, g.fontWeight = Z.messageFontWeight, g.anchor = Z.messageAlign, g.valign = "center", g.textMargin = Z.wrapPadding, g.tspan = !1, m(g.text) ? await ve(e, g, {
3647
3732
  startx: s,
3648
- stopx: l,
3733
+ stopx: c,
3649
3734
  starty: n
3650
- }) : G(e, _);
3651
- let v = g.width, y;
3652
- if (s === l) {
3653
- let r = m || Z.showSequenceNumbers, o = tt(a, i), c = nt(a, i), u = s + (r && (o || c) ? 10 : 0);
3654
- y = Z.rightAngles ? e.append("path").attr("d", `M ${u},${n} H ${s + h.getMax(Z.width / 2, v / 2)} V ${n + 25} H ${s}`) : e.append("path").attr("d", "M " + u + "," + n + " C " + (u + 60) + "," + (n - 10) + " " + (s + 60) + "," + (n + 30) + " " + s + "," + (n + 20)), $e(a, i) && Ne(e, a, t, i, s, l, n);
3655
- } else y = e.append("line"), y.attr("x1", s), y.attr("y1", n), y.attr("x2", l), y.attr("y2", n), $e(a, i) && Ne(e, a, t, i, s, l, n);
3656
- f === i.db.LINETYPE.DOTTED || f === i.db.LINETYPE.DOTTED_CROSS || f === i.db.LINETYPE.DOTTED_POINT || f === i.db.LINETYPE.DOTTED_OPEN || f === i.db.LINETYPE.BIDIRECTIONAL_DOTTED || f === i.db.LINETYPE.SOLID_TOP_DOTTED || f === i.db.LINETYPE.SOLID_BOTTOM_DOTTED || f === i.db.LINETYPE.STICK_TOP_DOTTED || f === i.db.LINETYPE.STICK_BOTTOM_DOTTED || f === i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED || f === i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED || f === i.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED || f === i.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED ? (y.style("stroke-dasharray", "3, 3"), y.attr("class", "messageLine1")) : y.attr("class", "messageLine0"), y.attr("data-et", "message"), y.attr("data-id", "i" + t.id), y.attr("data-from", t.from), y.attr("data-to", t.to);
3735
+ }) : G(e, g);
3736
+ let v = h.width, y;
3737
+ if (s === c) {
3738
+ let i = p || Z.showSequenceNumbers, o = mt(a, r), l = ht(a, r), u = s + (i && (o || l) ? 10 : 0);
3739
+ y = Z.rightAngles ? e.append("path").attr("d", `M ${u},${n} H ${s + _.getMax(Z.width / 2, v / 2)} V ${n + 25} H ${s}`) : e.append("path").attr("d", "M " + u + "," + n + " C " + (u + 60) + "," + (n - 10) + " " + (s + 60) + "," + (n + 30) + " " + s + "," + (n + 20)), ft(a, r) && Ke(e, a, t, r, s, c, n);
3740
+ } else y = e.append("line"), y.attr("x1", s), y.attr("y1", n), y.attr("x2", c), y.attr("y2", n), ft(a, r) && Ke(e, a, t, r, s, c, n);
3741
+ d === r.db.LINETYPE.DOTTED || d === r.db.LINETYPE.DOTTED_CROSS || d === r.db.LINETYPE.DOTTED_POINT || d === r.db.LINETYPE.DOTTED_OPEN || d === r.db.LINETYPE.BIDIRECTIONAL_DOTTED || d === r.db.LINETYPE.SOLID_TOP_DOTTED || d === r.db.LINETYPE.SOLID_BOTTOM_DOTTED || d === r.db.LINETYPE.STICK_TOP_DOTTED || d === r.db.LINETYPE.STICK_BOTTOM_DOTTED || d === r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED || d === r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED || d === r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED || d === r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED ? (y.style("stroke-dasharray", "3, 3"), y.attr("class", "messageLine1")) : y.attr("class", "messageLine0"), y.attr("data-et", "message"), y.attr("data-id", "i" + t.id), y.attr("data-from", t.from), y.attr("data-to", t.to);
3657
3742
  let b = "";
3658
- if (Z.arrowMarkerAbsolute && (b = c(!0)), y.attr("stroke-width", 2), y.attr("stroke", "none"), y.style("fill", "none"), (f === i.db.LINETYPE.SOLID_TOP || f === i.db.LINETYPE.SOLID_TOP_DOTTED) && y.attr("marker-end", "url(" + b + "#" + o + "-solidTopArrowHead)"), (f === i.db.LINETYPE.SOLID_BOTTOM || f === i.db.LINETYPE.SOLID_BOTTOM_DOTTED) && y.attr("marker-end", "url(" + b + "#" + o + "-solidBottomArrowHead)"), (f === i.db.LINETYPE.STICK_TOP || f === i.db.LINETYPE.STICK_TOP_DOTTED) && y.attr("marker-end", "url(" + b + "#" + o + "-stickTopArrowHead)"), (f === i.db.LINETYPE.STICK_BOTTOM || f === i.db.LINETYPE.STICK_BOTTOM_DOTTED) && y.attr("marker-end", "url(" + b + "#" + o + "-stickBottomArrowHead)"), (f === i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE || f === i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED) && y.attr("marker-start", "url(" + b + "#" + o + "-solidBottomArrowHead)"), (f === i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE || f === i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED) && y.attr("marker-start", "url(" + b + "#" + o + "-solidTopArrowHead)"), (f === i.db.LINETYPE.STICK_ARROW_TOP_REVERSE || f === i.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED) && y.attr("marker-start", "url(" + b + "#" + o + "-stickBottomArrowHead)"), (f === i.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE || f === i.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED) && y.attr("marker-start", "url(" + b + "#" + o + "-stickTopArrowHead)"), (f === i.db.LINETYPE.SOLID || f === i.db.LINETYPE.DOTTED) && y.attr("marker-end", "url(" + b + "#" + o + "-arrowhead)"), (f === i.db.LINETYPE.BIDIRECTIONAL_SOLID || f === i.db.LINETYPE.BIDIRECTIONAL_DOTTED) && (y.attr("marker-start", "url(" + b + "#" + o + "-arrowhead)"), y.attr("marker-end", "url(" + b + "#" + o + "-arrowhead)")), (f === i.db.LINETYPE.SOLID_POINT || f === i.db.LINETYPE.DOTTED_POINT) && y.attr("marker-end", "url(" + b + "#" + o + "-filled-head)"), (f === i.db.LINETYPE.SOLID_CROSS || f === i.db.LINETYPE.DOTTED_CROSS) && y.attr("marker-end", "url(" + b + "#" + o + "-crosshead)"), m || Z.showSequenceNumbers) {
3659
- let r = f === i.db.LINETYPE.BIDIRECTIONAL_SOLID || f === i.db.LINETYPE.BIDIRECTIONAL_DOTTED, c = f === i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE || f === i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED || f === i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE || f === i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED || f === i.db.LINETYPE.STICK_ARROW_TOP_REVERSE || f === i.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED || f === i.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE || f === i.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED, u = $e(a, i), d = s, m = l;
3660
- r ? (s < l ? d = s + 12 : (d = s - 6 + (u ? -5 : 0), d += a?.centralConnection === i.db.LINETYPE.CENTRAL_CONNECTION_DUAL || a?.centralConnection === i.db.LINETYPE.CENTRAL_CONNECTION_REVERSE ? -7.5 : 0), y.attr("x1", d)) : c ? (l > s ? m = l - 12 : (m = l - 6, d += a?.centralConnection === i.db.LINETYPE.CENTRAL_CONNECTION_DUAL || a?.centralConnection === i.db.LINETYPE.CENTRAL_CONNECTION_REVERSE ? -7.5 : 0), m += u ? 15 : 0, y.attr("x2", m), y.attr("x1", d)) : y.attr("x1", s + 6);
3661
- let h = 0, g = s === l, _ = s <= l;
3662
- h = g ? t.fromBounds + 1 : c ? _ ? t.toBounds - 1 : t.fromBounds + 1 : _ ? t.fromBounds + 1 : t.toBounds - 1;
3663
- let v = "12px", x = p.toString().length;
3664
- x > 5 ? v = "7px" : x > 3 && (v = "9px"), e.append("line").attr("x1", h).attr("y1", n).attr("x2", h).attr("y2", n).attr("stroke-width", 0).attr("marker-start", "url(" + b + "#" + o + "-sequencenumber)"), e.append("text").attr("x", h).attr("y", n + 4).attr("font-family", "sans-serif").attr("font-size", v).attr("text-anchor", "middle").attr("class", "sequenceNumber").text(p);
3743
+ if (Z.arrowMarkerAbsolute && (b = i(!0)), y.attr("stroke-width", 2), y.attr("stroke", "none"), y.style("fill", "none"), (d === r.db.LINETYPE.SOLID_TOP || d === r.db.LINETYPE.SOLID_TOP_DOTTED) && y.attr("marker-end", "url(" + b + "#" + o + "-solidTopArrowHead)"), (d === r.db.LINETYPE.SOLID_BOTTOM || d === r.db.LINETYPE.SOLID_BOTTOM_DOTTED) && y.attr("marker-end", "url(" + b + "#" + o + "-solidBottomArrowHead)"), (d === r.db.LINETYPE.STICK_TOP || d === r.db.LINETYPE.STICK_TOP_DOTTED) && y.attr("marker-end", "url(" + b + "#" + o + "-stickTopArrowHead)"), (d === r.db.LINETYPE.STICK_BOTTOM || d === r.db.LINETYPE.STICK_BOTTOM_DOTTED) && y.attr("marker-end", "url(" + b + "#" + o + "-stickBottomArrowHead)"), (d === r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE || d === r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED) && y.attr("marker-start", "url(" + b + "#" + o + "-solidBottomArrowHead)"), (d === r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE || d === r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED) && y.attr("marker-start", "url(" + b + "#" + o + "-solidTopArrowHead)"), (d === r.db.LINETYPE.STICK_ARROW_TOP_REVERSE || d === r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED) && y.attr("marker-start", "url(" + b + "#" + o + "-stickBottomArrowHead)"), (d === r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE || d === r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED) && y.attr("marker-start", "url(" + b + "#" + o + "-stickTopArrowHead)"), (d === r.db.LINETYPE.SOLID || d === r.db.LINETYPE.DOTTED) && y.attr("marker-end", "url(" + b + "#" + o + "-arrowhead)"), (d === r.db.LINETYPE.BIDIRECTIONAL_SOLID || d === r.db.LINETYPE.BIDIRECTIONAL_DOTTED) && (y.attr("marker-start", "url(" + b + "#" + o + "-arrowhead)"), y.attr("marker-end", "url(" + b + "#" + o + "-arrowhead)")), (d === r.db.LINETYPE.SOLID_POINT || d === r.db.LINETYPE.DOTTED_POINT) && y.attr("marker-end", "url(" + b + "#" + o + "-filled-head)"), (d === r.db.LINETYPE.SOLID_CROSS || d === r.db.LINETYPE.DOTTED_CROSS) && y.attr("marker-end", "url(" + b + "#" + o + "-crosshead)"), p || Z.showSequenceNumbers) {
3744
+ let i = d === r.db.LINETYPE.BIDIRECTIONAL_SOLID || d === r.db.LINETYPE.BIDIRECTIONAL_DOTTED, l = d === r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE || d === r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED || d === r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE || d === r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED || d === r.db.LINETYPE.STICK_ARROW_TOP_REVERSE || d === r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED || d === r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE || d === r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED, u = ft(a, r), p = s, m = c;
3745
+ i ? (s < c ? p = s + 12 : (p = s - 6 + (u ? -5 : 0), p += a?.centralConnection === r.db.LINETYPE.CENTRAL_CONNECTION_DUAL || a?.centralConnection === r.db.LINETYPE.CENTRAL_CONNECTION_REVERSE ? -7.5 : 0), y.attr("x1", p)) : l ? (c > s ? m = c - 12 : (m = c - 6, p += a?.centralConnection === r.db.LINETYPE.CENTRAL_CONNECTION_DUAL || a?.centralConnection === r.db.LINETYPE.CENTRAL_CONNECTION_REVERSE ? -7.5 : 0), m += u ? 15 : 0, y.attr("x2", m), y.attr("x1", p)) : y.attr("x1", s + 6);
3746
+ let h = 0, g = s === c, _ = s <= c;
3747
+ h = g ? t.fromBounds + 1 : l ? _ ? t.toBounds - 1 : t.fromBounds + 1 : _ ? t.fromBounds + 1 : t.toBounds - 1;
3748
+ let v = "12px", x = f.toString().length;
3749
+ x > 5 ? v = "7px" : x > 3 && (v = "9px"), e.append("line").attr("x1", h).attr("y1", n).attr("x2", h).attr("y2", n).attr("stroke-width", 0).attr("marker-start", "url(" + b + "#" + o + "-sequencenumber)"), e.append("text").attr("x", h).attr("y", n + 4).attr("font-family", "sans-serif").attr("font-size", v).attr("text-anchor", "middle").attr("class", "sequenceNumber").text(f);
3665
3750
  }
3666
- }, "drawMessage"), ze = /* @__PURE__ */ e(function(e, t, n, r, i, a, o) {
3751
+ }, "drawMessage"), Qe = /* @__PURE__ */ e(function(e, t, n, r, i, a, o) {
3667
3752
  let s = 0, c = 0, l, u = 0;
3668
3753
  for (let e of r) {
3669
3754
  let r = t.get(e), a = r.box;
3670
- l && l != a && (o || Q.models.addBox(l), c += Z.boxMargin + l.margin), a && a != l && (o || (a.x = s + c, a.y = i), c += a.margin), r.width = h.getMax(r.width || Z.width, Z.width), r.height = h.getMax(r.height || Z.height, Z.height), r.margin = r.margin || Z.actorMargin, u = h.getMax(u, r.height), n.get(r.name) && (c += r.width / 2), r.x = s + c, r.starty = Q.getVerticalPos(), Q.insert(r.x, i, r.x + r.width, r.height), s += r.width + c, r.box && (r.box.width = s + a.margin - r.box.x), c = r.margin, l = r.box, Q.models.addActor(r);
3755
+ l && l != a && (o || Q.models.addBox(l), c += Z.boxMargin + l.margin), a && a != l && (o || (a.x = s + c, a.y = i), c += a.margin), r.width = _.getMax(r.width || Z.width, Z.width), r.height = _.getMax(r.height || Z.height, Z.height), r.margin = r.margin || Z.actorMargin, u = _.getMax(u, r.height), n.get(r.name) && (c += r.width / 2), r.x = s + c, r.starty = Q.getVerticalPos(), Q.insert(r.x, i, r.x + r.width, r.height), s += r.width + c, r.box && (r.box.width = s + a.margin - r.box.x), c = r.margin, l = r.box, Q.models.addActor(r);
3671
3756
  }
3672
3757
  l && !o && Q.models.addBox(l), Q.bumpVerticalPos(u);
3673
- }, "addActorRenderingData"), Be = /* @__PURE__ */ e(async function(e, t, n, r, i, a, o) {
3758
+ }, "addActorRenderingData"), $e = /* @__PURE__ */ e(async function(e, t, n, r, i, a, o) {
3674
3759
  if (r) {
3675
3760
  let r = 0;
3676
3761
  Q.bumpVerticalPos(Z.boxMargin * 2);
@@ -3678,50 +3763,50 @@ var Re = /* @__PURE__ */ e(async function(e, t, n, i, a, o) {
3678
3763
  let n = t.get(s);
3679
3764
  n.stopy ||= Q.getVerticalPos();
3680
3765
  let c = await X.drawActor(e, n, Z, !0, i, a, o);
3681
- r = h.getMax(r, c);
3766
+ r = _.getMax(r, c);
3682
3767
  }
3683
3768
  Q.bumpVerticalPos(r + Z.boxMargin);
3684
3769
  } else for (let r of n) {
3685
3770
  let n = t.get(r);
3686
3771
  await X.drawActor(e, n, Z, !1, i, a, o);
3687
3772
  }
3688
- }, "drawActors"), Ve = /* @__PURE__ */ e(function(e, t, n, r) {
3773
+ }, "drawActors"), et = /* @__PURE__ */ e(function(e, t, n, r) {
3689
3774
  let i = 0, a = 0;
3690
3775
  for (let o of n) {
3691
- let n = t.get(o), s = Je(n), c = X.drawPopup(e, n, s, Z, Z.forceMenus, r);
3776
+ let n = t.get(o), s = st(n), c = X.drawPopup(e, n, s, Z, Z.forceMenus, r);
3692
3777
  c.height > i && (i = c.height), c.width + n.x > a && (a = c.width + n.x);
3693
3778
  }
3694
3779
  return {
3695
3780
  maxHeight: i,
3696
3781
  maxWidth: a
3697
3782
  };
3698
- }, "drawActorsPopup"), He = /* @__PURE__ */ e(function(e) {
3699
- m(Z, e), e.fontFamily && (Z.actorFontFamily = Z.noteFontFamily = Z.messageFontFamily = e.fontFamily), e.fontSize && (Z.actorFontSize = Z.noteFontSize = Z.messageFontSize = e.fontSize), e.fontWeight && (Z.actorFontWeight = Z.noteFontWeight = Z.messageFontWeight = e.fontWeight);
3700
- }, "setConf"), Ue = /* @__PURE__ */ e(function(e) {
3783
+ }, "drawActorsPopup"), tt = /* @__PURE__ */ e(function(e) {
3784
+ g(Z, e), e.fontFamily && (Z.actorFontFamily = Z.noteFontFamily = Z.messageFontFamily = e.fontFamily), e.fontSize && (Z.actorFontSize = Z.noteFontSize = Z.messageFontSize = e.fontSize), e.fontWeight && (Z.actorFontWeight = Z.noteFontWeight = Z.messageFontWeight = e.fontWeight);
3785
+ }, "setConf"), nt = /* @__PURE__ */ e(function(e) {
3701
3786
  return Q.activations.filter(function(t) {
3702
3787
  return t.actor === e;
3703
3788
  });
3704
- }, "actorActivations"), We = /* @__PURE__ */ e(function(e, t) {
3705
- let n = t.get(e), r = Ue(e);
3789
+ }, "actorActivations"), rt = /* @__PURE__ */ e(function(e, t) {
3790
+ let n = t.get(e), r = nt(e);
3706
3791
  return [r.reduce(function(e, t) {
3707
- return h.getMin(e, t.startx);
3792
+ return _.getMin(e, t.startx);
3708
3793
  }, n.x + n.width / 2 - 1), r.reduce(function(e, t) {
3709
- return h.getMax(e, t.stopx);
3794
+ return _.getMax(e, t.stopx);
3710
3795
  }, n.x + n.width / 2 + 1)];
3711
3796
  }, "activationBounds");
3712
3797
  function $(e, n, r, i, a) {
3713
3798
  Q.bumpVerticalPos(r);
3714
3799
  let o = i;
3715
3800
  if (n.id && n.message && e[n.id]) {
3716
- let r = e[n.id].width, a = Pe(Z);
3801
+ let r = e[n.id].width, a = qe(Z);
3717
3802
  n.message = S.wrapLabel(`[${n.message}]`, r - 2 * Z.wrapPadding, a), n.width = r, n.wrap = !0;
3718
- let s = S.calculateTextDimensions(n.message, a), c = h.getMax(s.height, Z.labelBoxHeight);
3803
+ let s = S.calculateTextDimensions(n.message, a), c = _.getMax(s.height, Z.labelBoxHeight);
3719
3804
  o = i + c, t.debug(`${c} - ${n.message}`);
3720
3805
  }
3721
3806
  a(n), Q.bumpVerticalPos(o);
3722
3807
  }
3723
3808
  e($, "adjustLoopHeightForWrap");
3724
- function Ge(t, n, r, i, a, o, s) {
3809
+ function it(t, n, r, i, a, o, s) {
3725
3810
  function c(e, r) {
3726
3811
  e.x < a.get(t.from).x ? (Q.insert(n.stopx - r, n.starty, n.startx, n.stopy + e.height / 2 + Z.noteMargin), n.stopx += r) : (Q.insert(n.startx, n.starty, n.stopx + r, n.stopy + e.height / 2 + Z.noteMargin), n.stopx -= r);
3727
3812
  }
@@ -3747,28 +3832,28 @@ function Ge(t, n, r, i, a, o, s) {
3747
3832
  Z.mirrorActors && c(e, u.includes(e.type) ? z / 2 + 3 : e.width / 2 + 3), e.stopy = r - e.height / 2, Q.bumpVerticalPos(e.height / 2);
3748
3833
  }
3749
3834
  }
3750
- e(Ge, "adjustCreatedDestroyedData");
3751
- var Ke = /* @__PURE__ */ e(async function(r, i, a, o) {
3752
- let { securityLevel: s, sequence: c, look: l, themeVariables: u } = v();
3835
+ e(it, "adjustCreatedDestroyedData");
3836
+ var at = /* @__PURE__ */ e(async function(r, i, a, o) {
3837
+ let { securityLevel: s, sequence: c, look: l, themeVariables: u } = d();
3753
3838
  Z = c;
3754
- let d;
3755
- s === "sandbox" && (d = n("#i" + i));
3756
- let p = n(s === "sandbox" ? d.nodes()[0].contentDocument.body : "body"), m = s === "sandbox" ? d.nodes()[0].contentDocument : document;
3839
+ let p;
3840
+ s === "sandbox" && (p = n("#i" + i));
3841
+ let m = n(s === "sandbox" ? p.nodes()[0].contentDocument.body : "body"), h = s === "sandbox" ? p.nodes()[0].contentDocument : document;
3757
3842
  Q.init(), t.debug(o.db);
3758
- let h = s === "sandbox" ? p.select(`[id="${i}"]`) : n(`[id="${i}"]`), g = o.db.getActors(), _ = o.db.getCreatedActors(), y = o.db.getDestroyedActors(), b = o.db.getBoxes(), x = o.db.getActorKeys(), S = o.db.getMessages(), C = o.db.getDiagramTitle(), w = o.db.hasAtLeastOneBox(), T = o.db.hasAtLeastOneBoxWithTitle(), E = await qe(g, S, o);
3759
- if (Z.height = await Ye(g, E, b), X.insertComputerIcon(h, i), X.insertDatabaseIcon(h, i), X.insertClockIcon(h, i), w && (Q.bumpVerticalPos(Z.boxMargin), T && Q.bumpVerticalPos(b[0].textMaxHeight)), Z.hideUnusedParticipants === !0) {
3843
+ let g = s === "sandbox" ? m.select(`[id="${i}"]`) : n(`[id="${i}"]`), _ = o.db.getActors(), v = o.db.getCreatedActors(), y = o.db.getDestroyedActors(), b = o.db.getBoxes(), x = o.db.getActorKeys(), S = o.db.getMessages(), C = o.db.getDiagramTitle(), w = o.db.hasAtLeastOneBox(), T = o.db.hasAtLeastOneBoxWithTitle(), E = await ot(_, S, o);
3844
+ if (Z.height = await ct(_, E, b), X.insertComputerIcon(g, i), X.insertDatabaseIcon(g, i), X.insertClockIcon(g, i), w && (Q.bumpVerticalPos(Z.boxMargin), T && Q.bumpVerticalPos(b[0].textMaxHeight)), Z.hideUnusedParticipants === !0) {
3760
3845
  let e = /* @__PURE__ */ new Set();
3761
3846
  S.forEach((t) => {
3762
3847
  e.add(t.from), e.add(t.to);
3763
3848
  }), x = x.filter((t) => e.has(t));
3764
3849
  }
3765
- let D = new Map(x.map((e, t) => [g.get(e)?.name ?? e, t]));
3766
- ze(h, g, _, x, 0, S, !1);
3767
- let O = await it(S, g, E, o);
3768
- X.insertArrowHead(h, i), X.insertArrowCrossHead(h, i), X.insertArrowFilledHead(h, i), X.insertSequenceNumber(h, i), X.insertSolidTopArrowHead(h, i), X.insertSolidBottomArrowHead(h, i), X.insertStickTopArrowHead(h, i), X.insertStickBottomArrowHead(h, i), l === "neo" && X.insertDropShadow(h, Z);
3850
+ let D = new Map(x.map((e, t) => [_.get(e)?.name ?? e, t]));
3851
+ Qe(g, _, v, x, 0, S, !1);
3852
+ let O = await _t(S, _, E, o);
3853
+ X.insertArrowHead(g, i), X.insertArrowCrossHead(g, i), X.insertArrowFilledHead(g, i), X.insertSequenceNumber(g, i), X.insertSolidTopArrowHead(g, i), X.insertSolidBottomArrowHead(g, i), X.insertStickTopArrowHead(g, i), X.insertStickBottomArrowHead(g, i), l === "neo" && X.insertDropShadow(g, Z, i);
3769
3854
  function k(e, t) {
3770
3855
  let n = Q.endActivation(e);
3771
- n.starty + 18 > t && (n.starty = t - 6, t += 12), X.drawActivation(h, n, t, Z, Ue(e.from).length, o, D), Q.insert(n.startx, t - 10, n.stopx, t);
3856
+ n.starty + 18 > t && (n.starty = t - 6, t += 12), X.drawActivation(g, n, t, Z, nt(e.from).length, o, D), Q.insert(n.startx, t - 10, n.stopx, t);
3772
3857
  }
3773
3858
  e(k, "activeEnd");
3774
3859
  let A = 1, j = 1, M = [], N = [], P = 0;
@@ -3776,16 +3861,16 @@ var Ke = /* @__PURE__ */ e(async function(r, i, a, o) {
3776
3861
  let n, r, i;
3777
3862
  switch (e.type) {
3778
3863
  case o.db.LINETYPE.NOTE:
3779
- Q.resetVerticalPos(), r = e.noteModel, await Me(h, r, e.id);
3864
+ Q.resetVerticalPos(), r = e.noteModel, await Ge(g, r, e.id);
3780
3865
  break;
3781
3866
  case o.db.LINETYPE.ACTIVE_START:
3782
- Q.newActivation(e, h, g);
3867
+ Q.newActivation(e, g, _);
3783
3868
  break;
3784
3869
  case o.db.LINETYPE.CENTRAL_CONNECTION:
3785
- Q.newActivation(e, h, g);
3870
+ Q.newActivation(e, g, _);
3786
3871
  break;
3787
3872
  case o.db.LINETYPE.CENTRAL_CONNECTION_REVERSE:
3788
- Q.newActivation(e, h, g);
3873
+ Q.newActivation(e, g, _);
3789
3874
  break;
3790
3875
  case o.db.LINETYPE.ACTIVE_END:
3791
3876
  k(e, Q.getVerticalPos());
@@ -3794,7 +3879,7 @@ var Ke = /* @__PURE__ */ e(async function(r, i, a, o) {
3794
3879
  $(O, e, Z.boxMargin, Z.boxMargin + Z.boxTextMargin, (e) => Q.newLoop(e));
3795
3880
  break;
3796
3881
  case o.db.LINETYPE.LOOP_END:
3797
- n = Q.endLoop(), await X.drawLoop(h, n, "loop", Z, e), Q.bumpVerticalPos(n.stopy - Q.getVerticalPos()), Q.models.addLoop(n);
3882
+ n = Q.endLoop(), await X.drawLoop(g, n, "loop", Z, e), Q.bumpVerticalPos(n.stopy - Q.getVerticalPos()), Q.models.addLoop(n);
3798
3883
  break;
3799
3884
  case o.db.LINETYPE.RECT_START:
3800
3885
  $(O, e, Z.boxMargin, Z.boxMargin, (e) => {
@@ -3809,7 +3894,7 @@ var Ke = /* @__PURE__ */ e(async function(r, i, a, o) {
3809
3894
  $(O, e, Z.boxMargin, Z.boxMargin + Z.boxTextMargin, (e) => Q.newLoop(e));
3810
3895
  break;
3811
3896
  case o.db.LINETYPE.OPT_END:
3812
- n = Q.endLoop(), await X.drawLoop(h, n, "opt", Z, e), Q.bumpVerticalPos(n.stopy - Q.getVerticalPos()), Q.models.addLoop(n);
3897
+ n = Q.endLoop(), await X.drawLoop(g, n, "opt", Z, e), Q.bumpVerticalPos(n.stopy - Q.getVerticalPos()), Q.models.addLoop(n);
3813
3898
  break;
3814
3899
  case o.db.LINETYPE.ALT_START:
3815
3900
  $(O, e, Z.boxMargin, Z.boxMargin + Z.boxTextMargin, (e) => Q.newLoop(e));
@@ -3818,7 +3903,7 @@ var Ke = /* @__PURE__ */ e(async function(r, i, a, o) {
3818
3903
  $(O, e, Z.boxMargin + Z.boxTextMargin, Z.boxMargin, (e) => Q.addSectionToLoop(e));
3819
3904
  break;
3820
3905
  case o.db.LINETYPE.ALT_END:
3821
- n = Q.endLoop(), await X.drawLoop(h, n, "alt", Z, e), Q.bumpVerticalPos(n.stopy - Q.getVerticalPos()), Q.models.addLoop(n);
3906
+ n = Q.endLoop(), await X.drawLoop(g, n, "alt", Z, e), Q.bumpVerticalPos(n.stopy - Q.getVerticalPos()), Q.models.addLoop(n);
3822
3907
  break;
3823
3908
  case o.db.LINETYPE.PAR_START:
3824
3909
  case o.db.LINETYPE.PAR_OVER_START:
@@ -3828,7 +3913,7 @@ var Ke = /* @__PURE__ */ e(async function(r, i, a, o) {
3828
3913
  $(O, e, Z.boxMargin + Z.boxTextMargin, Z.boxMargin, (e) => Q.addSectionToLoop(e));
3829
3914
  break;
3830
3915
  case o.db.LINETYPE.PAR_END:
3831
- n = Q.endLoop(), await X.drawLoop(h, n, "par", Z, e), Q.bumpVerticalPos(n.stopy - Q.getVerticalPos()), Q.models.addLoop(n);
3916
+ n = Q.endLoop(), await X.drawLoop(g, n, "par", Z, e), Q.bumpVerticalPos(n.stopy - Q.getVerticalPos()), Q.models.addLoop(n);
3832
3917
  break;
3833
3918
  case o.db.LINETYPE.AUTONUMBER:
3834
3919
  A = e.message.start || A, j = e.message.step || j, e.message.visible ? o.db.enableSequenceNumbers() : o.db.disableSequenceNumbers();
@@ -3840,18 +3925,18 @@ var Ke = /* @__PURE__ */ e(async function(r, i, a, o) {
3840
3925
  $(O, e, Z.boxMargin + Z.boxTextMargin, Z.boxMargin, (e) => Q.addSectionToLoop(e));
3841
3926
  break;
3842
3927
  case o.db.LINETYPE.CRITICAL_END:
3843
- n = Q.endLoop(), await X.drawLoop(h, n, "critical", Z, e), Q.bumpVerticalPos(n.stopy - Q.getVerticalPos()), Q.models.addLoop(n);
3928
+ n = Q.endLoop(), await X.drawLoop(g, n, "critical", Z, e), Q.bumpVerticalPos(n.stopy - Q.getVerticalPos()), Q.models.addLoop(n);
3844
3929
  break;
3845
3930
  case o.db.LINETYPE.BREAK_START:
3846
3931
  $(O, e, Z.boxMargin, Z.boxMargin + Z.boxTextMargin, (e) => Q.newLoop(e));
3847
3932
  break;
3848
3933
  case o.db.LINETYPE.BREAK_END:
3849
- n = Q.endLoop(), await X.drawLoop(h, n, "break", Z, e), Q.bumpVerticalPos(n.stopy - Q.getVerticalPos()), Q.models.addLoop(n);
3934
+ n = Q.endLoop(), await X.drawLoop(g, n, "break", Z, e), Q.bumpVerticalPos(n.stopy - Q.getVerticalPos()), Q.models.addLoop(n);
3850
3935
  break;
3851
3936
  default: try {
3852
3937
  i = e.msgModel, i.starty = Q.getVerticalPos(), i.sequenceIndex = A, i.sequenceVisible = o.db.showSequenceNumbers(), i.id = e.id, i.from = e.from, i.to = e.to;
3853
- let t = await Le(h, i);
3854
- Ge(e, i, t, P, g, _, y), M.push({
3938
+ let t = await Xe(g, i);
3939
+ it(e, i, t, P, _, v, y), M.push({
3855
3940
  messageModel: i,
3856
3941
  lineStartY: t,
3857
3942
  msg: e
@@ -3889,54 +3974,54 @@ var Ke = /* @__PURE__ */ e(async function(r, i, a, o) {
3889
3974
  o.db.LINETYPE.BIDIRECTIONAL_DOTTED
3890
3975
  ].includes(e.type) && (A = Math.round((A + j) * 100) / 100), P++;
3891
3976
  }
3892
- t.debug("createdActors", _), t.debug("destroyedActors", y), await Be(h, g, x, !1, i, o, D);
3893
- for (let e of M) await Re(h, e.messageModel, e.lineStartY, o, e.msg, i);
3894
- Z.mirrorActors && await Be(h, g, x, !0, i, o, D), N.forEach((e) => X.drawBackgroundRect(h, e)), ce(h, g, x, Z);
3977
+ t.debug("createdActors", v), t.debug("destroyedActors", y), await $e(g, _, x, !1, i, o, D);
3978
+ for (let e of M) await Ze(g, e.messageModel, e.lineStartY, o, e.msg, i);
3979
+ Z.mirrorActors && await $e(g, _, x, !0, i, o, D), N.forEach((e) => X.drawBackgroundRect(g, e)), be(g, _, x, Z);
3895
3980
  for (let e of Q.models.boxes) {
3896
3981
  e.height = Q.getVerticalPos() - e.y, Q.insert(e.x, e.y, e.x + e.width, e.height);
3897
3982
  let t = Z.boxMargin * 2;
3898
- e.startx = e.x - t, e.starty = e.y - t * .25, e.stopx = e.startx + e.width + 2 * t, e.stopy = e.starty + e.height + t * .75, e.stroke = "rgb(0,0,0, 0.5)", X.drawBox(h, e, Z);
3983
+ e.startx = e.x - t, e.starty = e.y - t * .25, e.stopx = e.startx + e.width + 2 * t, e.stopy = e.starty + e.height + t * .75, e.stroke = "rgb(0,0,0, 0.5)", X.drawBox(g, e, Z);
3899
3984
  }
3900
3985
  w && Q.bumpVerticalPos(Z.boxMargin);
3901
- let F = Ve(h, g, x, m), { bounds: I } = Q.getBounds();
3986
+ let F = et(g, _, x, h), { bounds: I } = Q.getBounds();
3902
3987
  I.startx === void 0 && (I.startx = 0), I.starty === void 0 && (I.starty = 0), I.stopx === void 0 && (I.stopx = 0), I.stopy === void 0 && (I.stopy = 0);
3903
- let ee = I.stopy - I.starty;
3904
- ee < F.maxHeight && (ee = F.maxHeight);
3905
- let L = ee + 2 * Z.diagramMarginY;
3906
- Z.mirrorActors && (L = L - Z.boxMargin + Z.bottomMarginAdj);
3988
+ let L = I.stopy - I.starty;
3989
+ L < F.maxHeight && (L = F.maxHeight);
3990
+ let ee = L + 2 * Z.diagramMarginY;
3991
+ Z.mirrorActors && (ee = ee - Z.boxMargin + Z.bottomMarginAdj);
3907
3992
  let R = I.stopx - I.startx;
3908
3993
  R < F.maxWidth && (R = F.maxWidth);
3909
3994
  let te = R + 2 * Z.diagramMarginX;
3910
- C && h.append("text").text(C).attr("x", (I.stopx - I.startx) / 2 - 2 * Z.diagramMarginX).attr("y", -25), f(h, L, te, Z.useMaxWidth);
3911
- let ne = C ? 40 : 0, z = g.size && l === "neo" ? 30 : 0;
3912
- h.attr("viewBox", I.startx - Z.diagramMarginX + " -" + (Z.diagramMarginY + ne) + " " + te + " " + (L + ne + z)), t.debug("models:", Q.models);
3995
+ C && g.append("text").text(C).attr("x", (I.stopx - I.startx) / 2 - 2 * Z.diagramMarginX).attr("y", -25), f(g, ee, te, Z.useMaxWidth);
3996
+ let ne = C ? 40 : 0, re = _.size && l === "neo" ? 30 : 0;
3997
+ g.attr("viewBox", I.startx - Z.diagramMarginX + " -" + (Z.diagramMarginY + ne) + " " + te + " " + (ee + ne + re)), t.debug("models:", Q.models);
3913
3998
  }, "draw");
3914
- async function qe(e, n, i) {
3915
- let a = {};
3999
+ async function ot(e, n, r) {
4000
+ let i = {};
3916
4001
  for (let t of n) if (e.get(t.to) && e.get(t.from)) {
3917
4002
  let n = e.get(t.to);
3918
- if (t.placement === i.db.PLACEMENT.LEFTOF && !n.prevActor || t.placement === i.db.PLACEMENT.RIGHTOF && !n.nextActor) continue;
3919
- let o = t.placement !== void 0, s = !o, c = o ? Fe(Z) : Pe(Z), l = t.wrap ? S.wrapLabel(t.message, Z.width - 2 * Z.wrapPadding, c) : t.message, u = (r(l) ? await p(t.message, v()) : S.calculateTextDimensions(l, c)).width + 2 * Z.wrapPadding;
3920
- s && t.from === n.nextActor ? a[t.to] = h.getMax(a[t.to] || 0, u) : s && t.from === n.prevActor ? a[t.from] = h.getMax(a[t.from] || 0, u) : s && t.from === t.to ? (a[t.from] = h.getMax(a[t.from] || 0, u / 2), a[t.to] = h.getMax(a[t.to] || 0, u / 2)) : t.placement === i.db.PLACEMENT.RIGHTOF ? a[t.from] = h.getMax(a[t.from] || 0, u) : t.placement === i.db.PLACEMENT.LEFTOF ? a[n.prevActor] = h.getMax(a[n.prevActor] || 0, u) : t.placement === i.db.PLACEMENT.OVER && (n.prevActor && (a[n.prevActor] = h.getMax(a[n.prevActor] || 0, u / 2)), n.nextActor && (a[t.from] = h.getMax(a[t.from] || 0, u / 2)));
4003
+ if (t.placement === r.db.PLACEMENT.LEFTOF && !n.prevActor || t.placement === r.db.PLACEMENT.RIGHTOF && !n.nextActor) continue;
4004
+ let a = t.placement !== void 0, o = !a, s = a ? Je(Z) : qe(Z), c = t.wrap ? S.wrapLabel(t.message, Z.width - 2 * Z.wrapPadding, s) : t.message, l = (m(c) ? await p(t.message, d()) : S.calculateTextDimensions(c, s)).width + 2 * Z.wrapPadding;
4005
+ o && t.from === n.nextActor ? i[t.to] = _.getMax(i[t.to] || 0, l) : o && t.from === n.prevActor ? i[t.from] = _.getMax(i[t.from] || 0, l) : o && t.from === t.to ? (i[t.from] = _.getMax(i[t.from] || 0, l / 2), i[t.to] = _.getMax(i[t.to] || 0, l / 2)) : t.placement === r.db.PLACEMENT.RIGHTOF ? i[t.from] = _.getMax(i[t.from] || 0, l) : t.placement === r.db.PLACEMENT.LEFTOF ? i[n.prevActor] = _.getMax(i[n.prevActor] || 0, l) : t.placement === r.db.PLACEMENT.OVER && (n.prevActor && (i[n.prevActor] = _.getMax(i[n.prevActor] || 0, l / 2)), n.nextActor && (i[t.from] = _.getMax(i[t.from] || 0, l / 2)));
3921
4006
  }
3922
- return t.debug("maxMessageWidthPerActor:", a), a;
4007
+ return t.debug("maxMessageWidthPerActor:", i), i;
3923
4008
  }
3924
- e(qe, "getMaxMessageWidthPerActor");
3925
- var Je = /* @__PURE__ */ e(function(e) {
3926
- let t = 0, n = Ie(Z);
4009
+ e(ot, "getMaxMessageWidthPerActor");
4010
+ var st = /* @__PURE__ */ e(function(e) {
4011
+ let t = 0, n = Ye(Z);
3927
4012
  for (let r in e.links) {
3928
4013
  let e = S.calculateTextDimensions(r, n).width + 2 * Z.wrapPadding + 2 * Z.boxMargin;
3929
4014
  t < e && (t = e);
3930
4015
  }
3931
4016
  return t;
3932
4017
  }, "getRequiredPopupWidth");
3933
- async function Ye(e, t, n) {
3934
- let i = 0;
4018
+ async function ct(e, t, n) {
4019
+ let r = 0;
3935
4020
  for (let t of e.keys()) {
3936
4021
  let n = e.get(t);
3937
- n.wrap && (n.description = S.wrapLabel(n.description, Z.width - 2 * Z.wrapPadding, Ie(Z)));
3938
- let a = r(n.description) ? await p(n.description, v()) : S.calculateTextDimensions(n.description, Ie(Z));
3939
- n.width = n.wrap ? Z.width : h.getMax(Z.width, a.width + 2 * Z.wrapPadding), n.height = n.wrap ? h.getMax(a.height, Z.height) : Z.height, i = h.getMax(i, n.height);
4022
+ n.wrap && (n.description = S.wrapLabel(n.description, Z.width - 2 * Z.wrapPadding, Ye(Z)));
4023
+ let i = m(n.description) ? await p(n.description, d()) : S.calculateTextDimensions(n.description, Ye(Z));
4024
+ n.width = n.wrap ? Z.width : _.getMax(Z.width, i.width + 2 * Z.wrapPadding), d().look === "neo" ? (n.actorTextHeight = i.height, n.height = _.getMax(se(i.height), Z.height)) : n.height = n.wrap ? _.getMax(i.height, Z.height) : Z.height, r = _.getMax(r, n.height);
3940
4025
  }
3941
4026
  for (let n in t) {
3942
4027
  let r = e.get(n);
@@ -3944,48 +4029,48 @@ async function Ye(e, t, n) {
3944
4029
  let i = e.get(r.nextActor);
3945
4030
  if (!i) {
3946
4031
  let e = t[n] + Z.actorMargin - r.width / 2;
3947
- r.margin = h.getMax(e, Z.actorMargin);
4032
+ r.margin = _.getMax(e, Z.actorMargin);
3948
4033
  continue;
3949
4034
  }
3950
4035
  let a = t[n] + Z.actorMargin - r.width / 2 - i.width / 2;
3951
- r.margin = h.getMax(a, Z.actorMargin);
4036
+ r.margin = _.getMax(a, Z.actorMargin);
3952
4037
  }
3953
- let a = 0;
4038
+ let i = 0;
3954
4039
  return n.forEach((t) => {
3955
- let n = Pe(Z), r = t.actorKeys.reduce((t, n) => t += e.get(n).width + (e.get(n).margin || 0), 0), i = Z.boxMargin * 8;
3956
- r += i, r -= 2 * Z.boxTextMargin, t.wrap && (t.name = S.wrapLabel(t.name, r - 2 * Z.wrapPadding, n));
4040
+ let n = qe(Z), r = t.actorKeys.reduce((t, n) => t += e.get(n).width + (e.get(n).margin || 0), 0), a = Z.boxMargin * 8;
4041
+ r += a, r -= 2 * Z.boxTextMargin, t.wrap && (t.name = S.wrapLabel(t.name, r - 2 * Z.wrapPadding, n));
3957
4042
  let o = S.calculateTextDimensions(t.name, n);
3958
- a = h.getMax(o.height, a);
3959
- let s = h.getMax(r, o.width + 2 * Z.wrapPadding);
4043
+ i = _.getMax(o.height, i);
4044
+ let s = _.getMax(r, o.width + 2 * Z.wrapPadding);
3960
4045
  if (t.margin = Z.boxTextMargin, r < s) {
3961
4046
  let e = (s - r) / 2;
3962
4047
  t.margin += e;
3963
4048
  }
3964
- }), n.forEach((e) => e.textMaxHeight = a), h.getMax(i, Z.height);
4049
+ }), n.forEach((e) => e.textMaxHeight = i), _.getMax(r, Z.height);
3965
4050
  }
3966
- e(Ye, "calculateActorMargins");
3967
- var Xe = /* @__PURE__ */ e(async function(e, n, i) {
3968
- let a = n.get(e.from), o = n.get(e.to), s = a.x, c = o.x, l = e.wrap && e.message, u = r(e.message) ? await p(e.message, v()) : S.calculateTextDimensions(l ? S.wrapLabel(e.message, Z.width, Fe(Z)) : e.message, Fe(Z)), d = {
3969
- width: l ? Z.width : h.getMax(Z.width, u.width + 2 * Z.noteMargin),
4051
+ e(ct, "calculateActorMargins");
4052
+ var lt = /* @__PURE__ */ e(async function(e, n, r) {
4053
+ let i = n.get(e.from), a = n.get(e.to), o = i.x, s = a.x, c = e.wrap && e.message, l = m(e.message) ? await p(e.message, d()) : S.calculateTextDimensions(c ? S.wrapLabel(e.message, Z.width, Je(Z)) : e.message, Je(Z)), u = {
4054
+ width: c ? Z.width : _.getMax(Z.width, l.width + 2 * Z.noteMargin),
3970
4055
  height: 0,
3971
- startx: a.x,
4056
+ startx: i.x,
3972
4057
  stopx: 0,
3973
4058
  starty: 0,
3974
4059
  stopy: 0,
3975
4060
  message: e.message
3976
4061
  };
3977
- return e.placement === i.db.PLACEMENT.RIGHTOF ? (d.width = l ? h.getMax(Z.width, u.width) : h.getMax(a.width / 2 + o.width / 2, u.width + 2 * Z.noteMargin), d.startx = s + (a.width + Z.actorMargin) / 2) : e.placement === i.db.PLACEMENT.LEFTOF ? (d.width = l ? h.getMax(Z.width, u.width + 2 * Z.noteMargin) : h.getMax(a.width / 2 + o.width / 2, u.width + 2 * Z.noteMargin), d.startx = s - d.width + (a.width - Z.actorMargin) / 2) : e.to === e.from ? (u = S.calculateTextDimensions(l ? S.wrapLabel(e.message, h.getMax(Z.width, a.width), Fe(Z)) : e.message, Fe(Z)), d.width = l ? h.getMax(Z.width, a.width) : h.getMax(a.width, Z.width, u.width + 2 * Z.noteMargin), d.startx = s + (a.width - d.width) / 2) : (d.width = Math.abs(s + a.width / 2 - (c + o.width / 2)) + Z.actorMargin, d.startx = s < c ? s + a.width / 2 - Z.actorMargin / 2 : c + o.width / 2 - Z.actorMargin / 2), l && (d.message = S.wrapLabel(e.message, d.width - 2 * Z.wrapPadding, Fe(Z))), t.debug(`NM:[${d.startx},${d.stopx},${d.starty},${d.stopy}:${d.width},${d.height}=${e.message}]`), d;
3978
- }, "buildNoteModel"), Ze = 4, Qe = 6, $e = /* @__PURE__ */ e(function(e, t) {
4062
+ return e.placement === r.db.PLACEMENT.RIGHTOF ? (u.width = c ? _.getMax(Z.width, l.width) : _.getMax(i.width / 2 + a.width / 2, l.width + 2 * Z.noteMargin), u.startx = o + (i.width + Z.actorMargin) / 2) : e.placement === r.db.PLACEMENT.LEFTOF ? (u.width = c ? _.getMax(Z.width, l.width + 2 * Z.noteMargin) : _.getMax(i.width / 2 + a.width / 2, l.width + 2 * Z.noteMargin), u.startx = o - u.width + (i.width - Z.actorMargin) / 2) : e.to === e.from ? (l = S.calculateTextDimensions(c ? S.wrapLabel(e.message, _.getMax(Z.width, i.width), Je(Z)) : e.message, Je(Z)), u.width = c ? _.getMax(Z.width, i.width) : _.getMax(i.width, Z.width, l.width + 2 * Z.noteMargin), u.startx = o + (i.width - u.width) / 2) : (u.width = Math.abs(o + i.width / 2 - (s + a.width / 2)) + Z.actorMargin, u.startx = o < s ? o + i.width / 2 - Z.actorMargin / 2 : s + a.width / 2 - Z.actorMargin / 2), c && (u.message = S.wrapLabel(e.message, u.width - 2 * Z.wrapPadding, Je(Z))), t.debug(`NM:[${u.startx},${u.stopx},${u.starty},${u.stopy}:${u.width},${u.height}=${e.message}]`), u;
4063
+ }, "buildNoteModel"), ut = 4, dt = 6, ft = /* @__PURE__ */ e(function(e, t) {
3979
4064
  let { CENTRAL_CONNECTION: n, CENTRAL_CONNECTION_REVERSE: r, CENTRAL_CONNECTION_DUAL: i } = t.db.LINETYPE;
3980
4065
  return [
3981
4066
  n,
3982
4067
  r,
3983
4068
  i
3984
4069
  ].includes(e.centralConnection);
3985
- }, "hasCentralConnection"), et = /* @__PURE__ */ e(function(e, t, n) {
4070
+ }, "hasCentralConnection"), pt = /* @__PURE__ */ e(function(e, t, n) {
3986
4071
  let { CENTRAL_CONNECTION_REVERSE: r, CENTRAL_CONNECTION_DUAL: i, BIDIRECTIONAL_SOLID: a, BIDIRECTIONAL_DOTTED: o } = t.db.LINETYPE, s = 0;
3987
- return (e.centralConnection === r || e.centralConnection === i) && (s += Ze), (e.centralConnection === r || e.centralConnection === i) && (e.type === a || e.type === o) && (s += n ? 0 : -Qe), s;
3988
- }, "calculateCentralConnectionOffset"), tt = /* @__PURE__ */ e(function(e, t) {
4072
+ return (e.centralConnection === r || e.centralConnection === i) && (s += ut), (e.centralConnection === r || e.centralConnection === i) && (e.type === a || e.type === o) && (s += n ? 0 : -dt), s;
4073
+ }, "calculateCentralConnectionOffset"), mt = /* @__PURE__ */ e(function(e, t) {
3989
4074
  let { SOLID_ARROW_TOP_REVERSE: n, SOLID_ARROW_TOP_REVERSE_DOTTED: r, SOLID_ARROW_BOTTOM_REVERSE: i, SOLID_ARROW_BOTTOM_REVERSE_DOTTED: a, STICK_ARROW_TOP_REVERSE: o, STICK_ARROW_TOP_REVERSE_DOTTED: s, STICK_ARROW_BOTTOM_REVERSE: c, STICK_ARROW_BOTTOM_REVERSE_DOTTED: l } = t.db.LINETYPE;
3990
4075
  return [
3991
4076
  n,
@@ -3997,11 +4082,11 @@ var Xe = /* @__PURE__ */ e(async function(e, n, i) {
3997
4082
  c,
3998
4083
  l
3999
4084
  ].includes(e.type);
4000
- }, "isReverseArrowType"), nt = /* @__PURE__ */ e(function(e, t) {
4085
+ }, "isReverseArrowType"), ht = /* @__PURE__ */ e(function(e, t) {
4001
4086
  let { BIDIRECTIONAL_SOLID: n, BIDIRECTIONAL_DOTTED: r } = t.db.LINETYPE;
4002
4087
  return [n, r].includes(e.type);
4003
- }, "isBidirectionalArrowType"), rt = /* @__PURE__ */ e(function(t, n, r) {
4004
- let { look: i } = v();
4088
+ }, "isBidirectionalArrowType"), gt = /* @__PURE__ */ e(function(t, n, r) {
4089
+ let { look: i } = d();
4005
4090
  if (![
4006
4091
  r.db.LINETYPE.SOLID_OPEN,
4007
4092
  r.db.LINETYPE.DOTTED_OPEN,
@@ -4030,10 +4115,10 @@ var Xe = /* @__PURE__ */ e(async function(e, n, i) {
4030
4115
  r.db.LINETYPE.BIDIRECTIONAL_SOLID,
4031
4116
  r.db.LINETYPE.BIDIRECTIONAL_DOTTED
4032
4117
  ].includes(t.type)) return {};
4033
- let [a, o] = We(t.from, n), [s, c] = We(t.to, n), l = a <= s, u = l ? o : a, d = l ? s : c;
4034
- i === "neo" && (t.type !== r.db.LINETYPE.SOLID_OPEN && (d += l ? -3 : 3), (t.type === r.db.LINETYPE.BIDIRECTIONAL_SOLID || t.type === r.db.LINETYPE.BIDIRECTIONAL_DOTTED) && (u += l ? 3 : -3)), u += et(t, r, l);
4035
- let f = Math.abs(s - c) > 2, p = /* @__PURE__ */ e((e) => l ? -e : e, "adjustValue");
4036
- t.from === t.to ? d = u : (t.activate && !f && (d += p(Z.activationWidth / 2 - 1)), [
4118
+ let [a, o] = rt(t.from, n), [s, c] = rt(t.to, n), l = a <= s, u = l ? o : a, f = l ? s : c;
4119
+ i === "neo" && (t.type !== r.db.LINETYPE.SOLID_OPEN && (f += l ? -3 : 3), (t.type === r.db.LINETYPE.BIDIRECTIONAL_SOLID || t.type === r.db.LINETYPE.BIDIRECTIONAL_DOTTED) && (u += l ? 3 : -3)), u += pt(t, r, l);
4120
+ let p = Math.abs(s - c) > 2, m = /* @__PURE__ */ e((e) => l ? -e : e, "adjustValue");
4121
+ t.from === t.to ? f = u : (t.activate && !p && (f += m(Z.activationWidth / 2 - 1)), [
4037
4122
  r.db.LINETYPE.SOLID_OPEN,
4038
4123
  r.db.LINETYPE.DOTTED_OPEN,
4039
4124
  r.db.LINETYPE.STICK_TOP,
@@ -4048,36 +4133,36 @@ var Xe = /* @__PURE__ */ e(async function(e, n, i) {
4048
4133
  r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,
4049
4134
  r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,
4050
4135
  r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE
4051
- ].includes(t.type) || (d += p(3)), [
4136
+ ].includes(t.type) || (f += m(3)), [
4052
4137
  r.db.LINETYPE.BIDIRECTIONAL_SOLID,
4053
4138
  r.db.LINETYPE.BIDIRECTIONAL_DOTTED,
4054
4139
  r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,
4055
4140
  r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,
4056
4141
  r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,
4057
4142
  r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE
4058
- ].includes(t.type) && (u -= p(3)));
4059
- let m = [
4143
+ ].includes(t.type) && (u -= m(3)));
4144
+ let h = [
4060
4145
  a,
4061
4146
  o,
4062
4147
  s,
4063
4148
  c
4064
- ], g = Math.abs(u - d);
4065
- t.wrap && t.message && (t.message = S.wrapLabel(t.message, h.getMax(g + 2 * Z.wrapPadding, Z.width), Pe(Z)));
4066
- let _ = S.calculateTextDimensions(t.message, Pe(Z));
4149
+ ], g = Math.abs(u - f);
4150
+ t.wrap && t.message && (t.message = S.wrapLabel(t.message, _.getMax(g + 2 * Z.wrapPadding, Z.width), qe(Z)));
4151
+ let v = S.calculateTextDimensions(t.message, qe(Z));
4067
4152
  return {
4068
- width: h.getMax(t.wrap ? 0 : _.width + 2 * Z.wrapPadding, g + 2 * Z.wrapPadding, Z.width),
4153
+ width: _.getMax(t.wrap ? 0 : v.width + 2 * Z.wrapPadding, g + 2 * Z.wrapPadding, Z.width),
4069
4154
  height: 0,
4070
4155
  startx: u,
4071
- stopx: d,
4156
+ stopx: f,
4072
4157
  starty: 0,
4073
4158
  stopy: 0,
4074
4159
  message: t.message,
4075
4160
  type: t.type,
4076
4161
  wrap: t.wrap,
4077
- fromBounds: Math.min.apply(null, m),
4078
- toBounds: Math.max.apply(null, m)
4162
+ fromBounds: Math.min.apply(null, h),
4163
+ toBounds: Math.max.apply(null, h)
4079
4164
  };
4080
- }, "buildMessageModel"), it = /* @__PURE__ */ e(async function(e, n, r, i) {
4165
+ }, "buildMessageModel"), _t = /* @__PURE__ */ e(async function(e, n, r, i) {
4081
4166
  let a = {}, o = [], s, c, l;
4082
4167
  for (let t of e) {
4083
4168
  switch (t.type) {
@@ -4111,7 +4196,7 @@ var Xe = /* @__PURE__ */ e(async function(e, n, i) {
4111
4196
  break;
4112
4197
  case i.db.LINETYPE.ACTIVE_START:
4113
4198
  {
4114
- let e = n.get(t.from ? t.from : t.to.actor), r = Ue(t.from ? t.from : t.to.actor).length, i = e.x + e.width / 2 + (r - 1) * Z.activationWidth / 2, a = {
4199
+ let e = n.get(t.from ? t.from : t.to.actor), r = nt(t.from ? t.from : t.to.actor).length, i = e.x + e.width / 2 + (r - 1) * Z.activationWidth / 2, a = {
4115
4200
  startx: i,
4116
4201
  stopx: i + Z.activationWidth,
4117
4202
  actor: t.from,
@@ -4125,32 +4210,32 @@ var Xe = /* @__PURE__ */ e(async function(e, n, i) {
4125
4210
  Q.activations.splice(e, 1).splice(0, 1);
4126
4211
  }
4127
4212
  }
4128
- t.placement === void 0 ? (l = rt(t, n, i), t.msgModel = l, l.startx && l.stopx && o.length > 0 && o.forEach((e) => {
4213
+ t.placement === void 0 ? (l = gt(t, n, i), t.msgModel = l, l.startx && l.stopx && o.length > 0 && o.forEach((e) => {
4129
4214
  if (s = e, l.startx === l.stopx) {
4130
4215
  let e = n.get(t.from), r = n.get(t.to);
4131
- s.from = h.getMin(e.x - l.width / 2, e.x - e.width / 2, s.from), s.to = h.getMax(r.x + l.width / 2, r.x + e.width / 2, s.to), s.width = h.getMax(s.width, Math.abs(s.to - s.from)) - Z.labelBoxWidth;
4132
- } else s.from = h.getMin(l.startx, s.from), s.to = h.getMax(l.stopx, s.to), s.width = h.getMax(s.width, l.width) - Z.labelBoxWidth;
4133
- })) : (c = await Xe(t, n, i), t.noteModel = c, o.forEach((e) => {
4134
- s = e, s.from = h.getMin(s.from, c.startx), s.to = h.getMax(s.to, c.startx + c.width), s.width = h.getMax(s.width, Math.abs(s.from - s.to)) - Z.labelBoxWidth;
4216
+ s.from = _.getMin(e.x - l.width / 2, e.x - e.width / 2, s.from), s.to = _.getMax(r.x + l.width / 2, r.x + e.width / 2, s.to), s.width = _.getMax(s.width, Math.abs(s.to - s.from)) - Z.labelBoxWidth;
4217
+ } else s.from = _.getMin(l.startx, s.from), s.to = _.getMax(l.stopx, s.to), s.width = _.getMax(s.width, l.width) - Z.labelBoxWidth;
4218
+ })) : (c = await lt(t, n, i), t.noteModel = c, o.forEach((e) => {
4219
+ s = e, s.from = _.getMin(s.from, c.startx), s.to = _.getMax(s.to, c.startx + c.width), s.width = _.getMax(s.width, Math.abs(s.from - s.to)) - Z.labelBoxWidth;
4135
4220
  }));
4136
4221
  }
4137
4222
  return Q.activations = [], t.debug("Loop type widths:", a), a;
4138
- }, "calculateLoopBounds"), at = {
4223
+ }, "calculateLoopBounds"), vt = {
4139
4224
  parser: F,
4140
4225
  get db() {
4141
4226
  return new te();
4142
4227
  },
4143
4228
  renderer: {
4144
4229
  bounds: Q,
4145
- drawActors: Be,
4146
- drawActorsPopup: Ve,
4147
- setConf: He,
4148
- draw: Ke
4230
+ drawActors: $e,
4231
+ drawActorsPopup: et,
4232
+ setConf: tt,
4233
+ draw: at
4149
4234
  },
4150
4235
  styles: ne,
4151
4236
  init: /* @__PURE__ */ e((e) => {
4152
- e.sequence ||= {}, e.wrap && (e.sequence.wrap = e.wrap, a({ sequence: { wrap: e.wrap } }));
4237
+ e.sequence ||= {}, e.wrap && (e.sequence.wrap = e.wrap, o({ sequence: { wrap: e.wrap } }));
4153
4238
  }, "init")
4154
4239
  };
4155
4240
  //#endregion
4156
- export { at as diagram };
4241
+ export { vt as diagram };