@sme.up/ketchup2 2.7.0 → 2.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (344) hide show
  1. package/dist/abnfDiagram-VCTEODGH-C9blQ78p.cjs +1 -0
  2. package/dist/abnfDiagram-VCTEODGH-DZIaCwNE.js +89 -0
  3. package/dist/{arc-CVbkjF8U.js → arc-7ZXqzxve.js} +1 -1
  4. package/dist/{arc-w3BipdfE.cjs → arc-DBilzVYt.cjs} +1 -1
  5. package/dist/architecture-7GRP2DOG-DYFsLst2.js +3 -0
  6. package/dist/architecture-7GRP2DOG-DdhuGtEz.cjs +1 -0
  7. package/dist/architectureDiagram-5GKGNRK7-B080D0D_.cjs +36 -0
  8. package/dist/{architectureDiagram-3BPJPVTR-B6VZAtZU.js → architectureDiagram-5GKGNRK7-BJvIxhbL.js} +338 -251
  9. package/dist/assets/svg/functions.svg +1 -0
  10. package/dist/basic-components/button-list/button-list-types.d.ts +2 -1
  11. package/dist/basic-components/button-list/button-list-types.d.ts.map +1 -1
  12. package/dist/basic-components/button-list/button-list.d.ts.map +1 -1
  13. package/dist/basic-components/cell/cell-types.d.ts +5 -0
  14. package/dist/basic-components/cell/cell-types.d.ts.map +1 -1
  15. package/dist/basic-components/cell/cell.d.ts.map +1 -1
  16. package/dist/basic-components/checkbox/checkbox-types.d.ts +5 -0
  17. package/dist/basic-components/checkbox/checkbox-types.d.ts.map +1 -1
  18. package/dist/basic-components/chips/chips-types.d.ts +15 -1
  19. package/dist/basic-components/chips/chips-types.d.ts.map +1 -1
  20. package/dist/basic-components/chips/chips.d.ts.map +1 -1
  21. package/dist/basic-components/chips-input/chips-input-types.d.ts +5 -0
  22. package/dist/basic-components/chips-input/chips-input-types.d.ts.map +1 -1
  23. package/dist/basic-components/chips-input/chips-input.d.ts.map +1 -1
  24. package/dist/basic-components/multiple-autocomplete/multiple-autocomplete-types.d.ts +5 -0
  25. package/dist/basic-components/multiple-autocomplete/multiple-autocomplete-types.d.ts.map +1 -1
  26. package/dist/basic-components/multiple-autocomplete/multiple-autocomplete.d.ts.map +1 -1
  27. package/dist/basic-components/multiple-select/multiple-select-types.d.ts +5 -0
  28. package/dist/basic-components/multiple-select/multiple-select-types.d.ts.map +1 -1
  29. package/dist/basic-components/multiple-select/multiple-select.d.ts.map +1 -1
  30. package/dist/blockDiagram-I7D4REHJ-C5aW9ypR.js +1919 -0
  31. package/dist/blockDiagram-I7D4REHJ-fT7Of27R.cjs +129 -0
  32. package/dist/c4Diagram-7LVT6UL2-B1n5PnN5.cjs +38 -0
  33. package/dist/{c4Diagram-AAUBKEIU-CdT8VCbo.js → c4Diagram-7LVT6UL2-JxFfT5VH.js} +808 -789
  34. package/dist/channel-BvUly9jN.cjs +1 -0
  35. package/dist/{channel-C-LAmObA.js → channel-D6agWknC.js} +1 -1
  36. package/dist/chunk-2E4U76K2-BiZwNOhf.cjs +1 -0
  37. package/dist/chunk-2E4U76K2-C8vehurw.js +346 -0
  38. package/dist/chunk-2Q5K7J3B-B8v9mTdK.cjs +1 -0
  39. package/dist/{chunk-QZHKN3VN-lYfzaOt9.js → chunk-2Q5K7J3B-kzxEEeTu.js} +2 -2
  40. package/dist/chunk-4HAMMTFA-Db_fcZEn.cjs +62 -0
  41. package/dist/{chunk-3OPIFGDE-Bs2mXISw.js → chunk-4HAMMTFA-MZIwowe1.js} +1665 -1143
  42. package/dist/{chunk-FMBD7UC4-BURT0llY.js → chunk-5VM5RSS4-Cr17nBXp.js} +2 -2
  43. package/dist/{chunk-FMBD7UC4-BIKI8zae.cjs → chunk-5VM5RSS4-CwDmQ9T_.cjs} +1 -1
  44. package/dist/{chunk-5ZQYHXKU-B_nOC8-n.js → chunk-75Z2AOVW-BwUD389x.js} +56 -55
  45. package/dist/chunk-75Z2AOVW-RbCLc-XL.cjs +2 -0
  46. package/dist/chunk-CLGD4ZFX-DKRy6g5T.js +10 -0
  47. package/dist/chunk-CLGD4ZFX-Dvn-kRD7.cjs +1 -0
  48. package/dist/{chunk-CSCIHK7Q-BEk3YcEH.js → chunk-DU6HZSFF-CNSdkWoH.js} +997 -764
  49. package/dist/chunk-DU6HZSFF-mznJTFyO.cjs +127 -0
  50. package/dist/chunk-F27PBJKO-C5NrgqMI.cjs +1 -0
  51. package/dist/{chunk-ND2GUHAM-Ca12h-m9.js → chunk-F27PBJKO-DKsmevT5.js} +18 -17
  52. package/dist/chunk-FOHPRMQF-BYsnEQU5.cjs +161 -0
  53. package/dist/{chunk-NNHCCRGN-BB1q5NkR.js → chunk-FOHPRMQF-C49KxWOg.js} +5156 -4419
  54. package/dist/chunk-GMAD6QVW-BVSRANO9.cjs +72 -0
  55. package/dist/{chunk-O5CBEL6O-DbWeP4Au.js → chunk-GMAD6QVW-DKxKOKLF.js} +459 -503
  56. package/dist/chunk-GVQU2GXP-BiuaO1L5.cjs +1 -0
  57. package/dist/chunk-GVQU2GXP-w4KY-she.js +37 -0
  58. package/dist/chunk-IMKFNOWR-CusIwu2H.cjs +231 -0
  59. package/dist/{chunk-AQP2D5EJ-vJ_pitKp.js → chunk-IMKFNOWR-DHxMOe_C.js} +313 -291
  60. package/dist/{chunk-4BX2VUAB-zglw1T4d.js → chunk-JWPE2WC7-Ccb0QaC8.js} +2 -2
  61. package/dist/chunk-JWPE2WC7-Cs1kjq8S.cjs +1 -0
  62. package/dist/chunk-L3NEJ4N5-B8UQMgqc.cjs +1 -0
  63. package/dist/chunk-L3NEJ4N5-CvNbHpcd.js +245 -0
  64. package/dist/chunk-LNGE3PJU-CiGrDO_F.js +1513 -0
  65. package/dist/chunk-LNGE3PJU-TgsSSByc.cjs +34 -0
  66. package/dist/{chunk-KSCS5N6A-BemQomLE.js → chunk-OSK3NFVY-BmtDbEvT.js} +304 -195
  67. package/dist/chunk-OSK3NFVY-DE9_ERt9.cjs +10 -0
  68. package/dist/chunk-P2QGCYS3-DRvvOWJ2.js +67 -0
  69. package/dist/chunk-P2QGCYS3-DqT85Q-S.cjs +1 -0
  70. package/dist/chunk-POPQ4Y6H-CaEkosGL.js +26 -0
  71. package/dist/chunk-POPQ4Y6H-QqO5seyb.cjs +1 -0
  72. package/dist/chunk-PWAF6VOD-CbmhQpgH.js +277 -0
  73. package/dist/chunk-PWAF6VOD-CjrO-QHU.cjs +1 -0
  74. package/dist/{flowDiagram-I6XJVG4X-DnsxKD0w.js → chunk-SHT3W25Y-DJgD-hyF.js} +566 -522
  75. package/dist/chunk-SHT3W25Y-DuMn9iH6.cjs +168 -0
  76. package/dist/chunk-SVP7TREG-BNwvtyzm.js +490 -0
  77. package/dist/chunk-SVP7TREG-CiwWyOxx.cjs +88 -0
  78. package/dist/{chunk-727SXJPM-Dj8nsm0O.cjs → chunk-TICWLB2K-1u0p_luB.cjs} +7 -7
  79. package/dist/{chunk-727SXJPM-CDeV7mmg.js → chunk-TICWLB2K-DqSHwYf9.js} +183 -177
  80. package/dist/chunk-TLUHSLCS-ZDzqyqeY.cjs +1 -0
  81. package/dist/{chunk-LZXEDZCA-J9irjuVP.js → chunk-TLUHSLCS-opHh7fd-.js} +35 -25
  82. package/dist/chunk-XXDRQBXY-BF71LTT1.cjs +1 -0
  83. package/dist/chunk-XXDRQBXY-BZK6GgVm.js +9 -0
  84. package/dist/chunk-Y2CYZVJY-CnmLqFtv.cjs +1 -0
  85. package/dist/chunk-Y2CYZVJY-i11wjrBe.js +12 -0
  86. package/dist/classDiagram-ZZMXUADV-BTRkvFx4.js +30 -0
  87. package/dist/classDiagram-ZZMXUADV-CwAl_N60.cjs +1 -0
  88. package/dist/classDiagram-v2-VYDZK3BY-CFutvfy-.js +30 -0
  89. package/dist/classDiagram-v2-VYDZK3BY-CwAl_N60.cjs +1 -0
  90. package/dist/components/activity-timeline/activity-timeline-types.d.ts +46 -0
  91. package/dist/components/activity-timeline/activity-timeline-types.d.ts.map +1 -0
  92. package/dist/components/activity-timeline/activity-timeline.d.ts +4 -0
  93. package/dist/components/activity-timeline/activity-timeline.d.ts.map +1 -0
  94. package/dist/components/data-table/assets/data-table-row-actions-collapsed.d.ts +12 -0
  95. package/dist/components/data-table/assets/data-table-row-actions-collapsed.d.ts.map +1 -0
  96. package/dist/components/data-table/assets/data-table-row-actions.d.ts +11 -0
  97. package/dist/components/data-table/assets/data-table-row-actions.d.ts.map +1 -0
  98. package/dist/components/data-table/data-table-types.d.ts +52 -1
  99. package/dist/components/data-table/data-table-types.d.ts.map +1 -1
  100. package/dist/components/data-table/data-table.d.ts.map +1 -1
  101. package/dist/components/data-table/header/Header.d.ts.map +1 -1
  102. package/dist/components/data-table/header/header-types.d.ts +7 -1
  103. package/dist/components/data-table/header/header-types.d.ts.map +1 -1
  104. package/dist/components/tab-bar/tab-bar-assets.d.ts +1 -0
  105. package/dist/components/tab-bar/tab-bar-assets.d.ts.map +1 -1
  106. package/dist/components/tab-bar/tab-bar.d.ts.map +1 -1
  107. package/dist/components/workflow-designer/workflow-designer-metadata-panel.d.ts +14 -0
  108. package/dist/components/workflow-designer/workflow-designer-metadata-panel.d.ts.map +1 -0
  109. package/dist/components/workflow-designer/workflow-designer-types.d.ts +40 -7
  110. package/dist/components/workflow-designer/workflow-designer-types.d.ts.map +1 -1
  111. package/dist/components/workflow-designer/workflow-designer-utils.d.ts +80 -1
  112. package/dist/components/workflow-designer/workflow-designer-utils.d.ts.map +1 -1
  113. package/dist/components/workflow-designer/workflow-designer-utils.test.d.ts +2 -0
  114. package/dist/components/workflow-designer/workflow-designer-utils.test.d.ts.map +1 -0
  115. package/dist/components/workflow-designer/workflow-designer.d.ts +4 -3
  116. package/dist/components/workflow-designer/workflow-designer.d.ts.map +1 -1
  117. package/dist/{cose-bilkent-S5V4N54A-BhA3VnPW.js → cose-bilkent-JH36ORCC-CE0T5PqO.js} +25 -24
  118. package/dist/cose-bilkent-JH36ORCC-D6t9R42P.cjs +1 -0
  119. package/dist/cynefin-OW5HDTMX-CsZ3W32G.cjs +1 -0
  120. package/dist/cynefin-OW5HDTMX-DlKRHClQ.js +3 -0
  121. package/dist/cynefinDiagram-5FMLGOSQ-D5vkxB9p.js +349 -0
  122. package/dist/cynefinDiagram-5FMLGOSQ-D95Uad6U.cjs +62 -0
  123. package/dist/{cytoscape.esm-BU21wl3m.js → cytoscape.esm-BQqfb1oS.js} +2260 -2206
  124. package/dist/cytoscape.esm-TdwWzXkE.cjs +321 -0
  125. package/dist/dagre-GXQ25YYZ-CFXgAmuL.js +423 -0
  126. package/dist/dagre-GXQ25YYZ-NS5a_ezX.cjs +4 -0
  127. package/dist/{dagre-B2BBwKNb.cjs → dagre-nX1Mh32P.cjs} +1 -1
  128. package/dist/{dagre-3-RnF0EK.js → dagre-qXSFUdzO.js} +131 -131
  129. package/dist/diagram-S7CK7UJ4-CTj-4VAh.cjs +30 -0
  130. package/dist/diagram-S7CK7UJ4-DrGNegqs.js +301 -0
  131. package/dist/{diagram-2AECGRRQ-23vM90dy.js → diagram-UQ7AKVKN-LU56O9S9.js} +82 -81
  132. package/dist/diagram-UQ7AKVKN-eskbTWOc.cjs +41 -0
  133. package/dist/{diagram-KO2AKTUF-BEnEQF6b.js → diagram-VSXAHHWV-CaQnupEx.js} +66 -65
  134. package/dist/diagram-VSXAHHWV-DzHhzg5V.cjs +3 -0
  135. package/dist/diagram-VX7I27RA-D7Ibz__z.cjs +24 -0
  136. package/dist/{diagram-OG6HWLK6-Cfbv6mIH.js → diagram-VX7I27RA-DH-s9daK.js} +105 -104
  137. package/dist/diagram-Z3DM3KII-BpFP72Tr.cjs +24 -0
  138. package/dist/{diagram-LMA3HP47-OWxAHrmz.js → diagram-Z3DM3KII-DWhRX2l9.js} +21 -20
  139. package/dist/{dist-Btd8EZyy.js → dist-C7OpkiTz.js} +2 -3
  140. package/dist/dist-DrOEvFlx.cjs +1 -0
  141. package/dist/ebnfDiagram-PWID7BFC-CtT2erlt.js +100 -0
  142. package/dist/ebnfDiagram-PWID7BFC-DXCy8fra.cjs +1 -0
  143. package/dist/erDiagram-RLTQ6QDP-B-cUtqmN.cjs +99 -0
  144. package/dist/erDiagram-RLTQ6QDP-CxxAoCSs.js +1966 -0
  145. package/dist/eventmodeling-NTZA5JFV-5J5w1INt.js +3 -0
  146. package/dist/eventmodeling-NTZA5JFV-DcUTtbEf.cjs +1 -0
  147. package/dist/flowDiagram-HODETNUW-B6sXxv0S.cjs +1 -0
  148. package/dist/flowDiagram-HODETNUW-BUvMJJnE.js +17 -0
  149. package/dist/functional-components/multiple-field/multiple-field-types.d.ts +2 -0
  150. package/dist/functional-components/multiple-field/multiple-field-types.d.ts.map +1 -1
  151. package/dist/functional-components/multiple-field/multiple-field.d.ts.map +1 -1
  152. package/dist/functional-components/row/row-types.d.ts +5 -0
  153. package/dist/functional-components/row/row-types.d.ts.map +1 -1
  154. package/dist/functional-components/row/row.d.ts.map +1 -1
  155. package/dist/functional-components/timeline-engine/components/gantt/gantt-assets.d.ts +3 -1
  156. package/dist/functional-components/timeline-engine/components/gantt/gantt-assets.d.ts.map +1 -1
  157. package/dist/functional-components/timeline-engine/timeline-engine-utils.d.ts.map +1 -1
  158. package/dist/functional-components/tree-picker/tree-picker-types.d.ts +42 -0
  159. package/dist/functional-components/tree-picker/tree-picker-types.d.ts.map +1 -0
  160. package/dist/functional-components/tree-picker/tree-picker.d.ts +3 -0
  161. package/dist/functional-components/tree-picker/tree-picker.d.ts.map +1 -0
  162. package/dist/ganttDiagram-EL5Y4UJY-Bee0Pd-N.cjs +292 -0
  163. package/dist/{ganttDiagram-6RSMTGT7-CwbJqdwB.js → ganttDiagram-EL5Y4UJY-C04RZW4s.js} +675 -671
  164. package/dist/gitGraph-4MIJSDKK-BCt5iiZ5.js +3 -0
  165. package/dist/gitGraph-4MIJSDKK-BeFVwcRC.cjs +1 -0
  166. package/dist/{gitGraphDiagram-PVQCEYII-mL2WiT98.js → gitGraphDiagram-WWUBYQGX-BTcuEGsY.js} +146 -145
  167. package/dist/gitGraphDiagram-WWUBYQGX-DA026nbS.cjs +106 -0
  168. package/dist/index.d.ts +4 -1
  169. package/dist/index.d.ts.map +1 -1
  170. package/dist/info-A6RAGUB7-C0KA0jej.cjs +1 -0
  171. package/dist/info-A6RAGUB7-DYBvudiC.js +3 -0
  172. package/dist/infoDiagram-27XIBGKW-B5nTXQEj.cjs +2 -0
  173. package/dist/infoDiagram-27XIBGKW-BoUOV42E.js +20 -0
  174. package/dist/{ishikawaDiagram-YF4QCWOH-DGOgWzve.js → ishikawaDiagram-5VMMS53U-D15Hi9wp.js} +134 -133
  175. package/dist/{ishikawaDiagram-YF4QCWOH-DAWMXD1l.cjs → ishikawaDiagram-5VMMS53U-ptk0d5z2.cjs} +6 -6
  176. package/dist/{journeyDiagram-JHISSGLW-CHVTMdrq.js → journeyDiagram-3NMN7TZE-BUb4frTN.js} +181 -180
  177. package/dist/{journeyDiagram-JHISSGLW-DfnmJPLn.cjs → journeyDiagram-3NMN7TZE-CxVpPKa-.cjs} +8 -8
  178. package/dist/kanban-definition-UXKFOSKX-Cd_nphr7.cjs +89 -0
  179. package/dist/{kanban-definition-UN3LZRKU-upKA3b5x.js → kanban-definition-UXKFOSKX-DkgBC20j.js} +141 -138
  180. package/dist/katex-DUe6VLjC.cjs +257 -0
  181. package/dist/{katex-D-2KeLwt.js → katex-Dyoqg6Cv.js} +1562 -1600
  182. package/dist/ketchup2.cjs.js +156 -154
  183. package/dist/ketchup2.css +1 -1
  184. package/dist/ketchup2.es.js +31759 -29656
  185. package/dist/{line-DIhSUgmA.js → line-BEo8vh4N.js} +1 -1
  186. package/dist/{line-CzwncDY3.cjs → line-wiGgVVGi.cjs} +1 -1
  187. package/dist/{linear-DUAteVwl.js → linear-BNesvT28.js} +1 -1
  188. package/dist/{linear-1lpO_WlJ.cjs → linear-YA14Lx5Z.cjs} +1 -1
  189. package/dist/locale/en/translation.json.d.ts +16 -0
  190. package/dist/locale/it/translation.json.d.ts +16 -0
  191. package/dist/mermaid-parser.core-CqChDTj1.cjs +6 -0
  192. package/dist/mermaid-parser.core-oFB-qEU8.js +638 -0
  193. package/dist/{mindmap-definition-RKZ34NQL-C8cZ7xN-.cjs → mindmap-definition-YA3MSWOX-0PG4raFG.cjs} +11 -11
  194. package/dist/{mindmap-definition-RKZ34NQL-C3YkCJDi.js → mindmap-definition-YA3MSWOX-Cjs12XgD.js} +156 -154
  195. package/dist/packet-AYTQ26CC-BEwXWBE0.js +3 -0
  196. package/dist/packet-AYTQ26CC-DfXUrk97.cjs +1 -0
  197. package/dist/pegDiagram-XKGWAZYB-BuyVzOiH.js +94 -0
  198. package/dist/pegDiagram-XKGWAZYB-J7VwZsJf.cjs +1 -0
  199. package/dist/pie-WAS4IAKB-4NfHFfJd.cjs +1 -0
  200. package/dist/pie-WAS4IAKB-BOR5Wwai.js +3 -0
  201. package/dist/pieDiagram-E7YTZNPT-B-rPB0ZO.cjs +39 -0
  202. package/dist/pieDiagram-E7YTZNPT-D4bB4TDP.js +205 -0
  203. package/dist/{quadrantDiagram-W4KKPZXB-C2oA-eGZ.js → quadrantDiagram-AXDQQJYC-B6Q9biU9.js} +293 -293
  204. package/dist/quadrantDiagram-AXDQQJYC-C5sdY1DW.cjs +7 -0
  205. package/dist/radar-RG4KPBEZ-BwLQFFzF.js +3 -0
  206. package/dist/radar-RG4KPBEZ-_epvvHKu.cjs +1 -0
  207. package/dist/railroad-74A4TZTK-CaWzRQE0.js +3 -0
  208. package/dist/railroad-74A4TZTK-D2qbdjOh.cjs +1 -0
  209. package/dist/railroad-abnf-HS5TGJTU-D2tm1mra.js +3 -0
  210. package/dist/railroad-abnf-HS5TGJTU-_ThxftPt.cjs +1 -0
  211. package/dist/railroad-ebnf-LZEXJU2U-CKpMMgXK.cjs +1 -0
  212. package/dist/railroad-ebnf-LZEXJU2U-KAuGgmQe.js +3 -0
  213. package/dist/railroad-peg-WCYAUIDC-B8bfIIor.cjs +1 -0
  214. package/dist/railroad-peg-WCYAUIDC-XB38GivH.js +3 -0
  215. package/dist/railroadDiagram-O6MQD6OU-C7LfgSGm.cjs +1 -0
  216. package/dist/railroadDiagram-O6MQD6OU-DFR4_PxB.js +76 -0
  217. package/dist/{requirementDiagram-4Y6WPE33-BEGryahw.js → requirementDiagram-BXWQKSXE-BfWCCTu8.js} +169 -166
  218. package/dist/requirementDiagram-BXWQKSXE-y2O3wvFe.cjs +84 -0
  219. package/dist/{sankeyDiagram-5OEKKPKP-VPzKV4zM.js → sankeyDiagram-P5KCCOFB-B_3NESVW.js} +109 -108
  220. package/dist/sankeyDiagram-P5KCCOFB-z8VLw23o.cjs +40 -0
  221. package/dist/sequenceDiagram-WJ2MYXX4-3cWo24Xv.cjs +162 -0
  222. package/dist/{sequenceDiagram-3UESZ5HK-Bc30_Cm2.js → sequenceDiagram-WJ2MYXX4-B8W9PUBb.js} +692 -688
  223. package/dist/sizeCapture-INFHLROL-CHXIsPO_.js +46 -0
  224. package/dist/sizeCapture-INFHLROL-bJ2ZX4Du.cjs +1 -0
  225. package/dist/src-B16ML7oM.cjs +1 -0
  226. package/dist/{src-DjDATEq3.js → src-D-6ZfKf9.js} +500 -507
  227. package/dist/stateDiagram-D77RDMKH-DghYG1f5.cjs +1 -0
  228. package/dist/stateDiagram-D77RDMKH-IwptGFzp.js +220 -0
  229. package/dist/stateDiagram-v2-MP3YSRHH-0rNAzd4v.cjs +1 -0
  230. package/dist/stateDiagram-v2-MP3YSRHH-NATCGJSV.js +30 -0
  231. package/dist/swimlanes-42K2YHIH-jhIjSCsq.js +4976 -0
  232. package/dist/swimlanes-42K2YHIH-svHo0tVy.cjs +1 -0
  233. package/dist/swimlanesDiagram-VR7AAH4N-DKxpX9Hj.js +31 -0
  234. package/dist/swimlanesDiagram-VR7AAH4N-DcDLe-u-.cjs +8 -0
  235. package/dist/{timeline-definition-PNZ67QCA-1z911Ume.js → timeline-definition-24CTP7MA-C6u6A92C.js} +212 -211
  236. package/dist/timeline-definition-24CTP7MA-CA62jwSB.cjs +120 -0
  237. package/dist/treeView-Q6P3EWNA-CkgGYPwy.js +3 -0
  238. package/dist/treeView-Q6P3EWNA-zIJfTe51.cjs +1 -0
  239. package/dist/treemap-WGGIJYW6-CooEnQQp.cjs +1 -0
  240. package/dist/treemap-WGGIJYW6-D4tTzsvR.js +3 -0
  241. package/dist/types/translation.d.ts +17 -1
  242. package/dist/types/translation.d.ts.map +1 -1
  243. package/dist/utils/data-structures.d.ts +2 -1
  244. package/dist/utils/data-structures.d.ts.map +1 -1
  245. package/dist/{vennDiagram-CIIHVFJN-BiLcQ0SR.js → vennDiagram-4TSXK5OY-Bt9cyeRX.js} +324 -302
  246. package/dist/vennDiagram-4TSXK5OY-YKU1Lb_h.cjs +34 -0
  247. package/dist/wardley-WFR3VGLG-Cp2KFpcw.cjs +1 -0
  248. package/dist/wardley-WFR3VGLG-D1o3hFSK.js +3 -0
  249. package/dist/wardleyDiagram-VM6X3IG4-BvyabMK8.cjs +78 -0
  250. package/dist/{wardleyDiagram-YWT4CUSO-Bq-BejOl.js → wardleyDiagram-VM6X3IG4-QkNx10Ny.js} +144 -143
  251. package/dist/{xychartDiagram-2RQKCTM6-B13zquXC.js → xychartDiagram-S5SC5T6Z-BSwoR01A.js} +729 -559
  252. package/dist/xychartDiagram-S5SC5T6Z-BtNTzcXw.cjs +7 -0
  253. package/package.json +5 -2
  254. package/dist/architecture-7EHR7CIX-Bzeobe9Y.cjs +0 -1
  255. package/dist/architecture-7EHR7CIX-C8NPmR2w.js +0 -3
  256. package/dist/architectureDiagram-3BPJPVTR-DlnXl9d5.cjs +0 -36
  257. package/dist/blockDiagram-GPEHLZMM-BohmRoCC.js +0 -3157
  258. package/dist/blockDiagram-GPEHLZMM-rfyR2Ffl.cjs +0 -132
  259. package/dist/c4Diagram-AAUBKEIU-Du1vqJYZ.cjs +0 -10
  260. package/dist/channel-DJpMBAs-.cjs +0 -1
  261. package/dist/chunk-2J33WTMH-BMqA-riF.js +0 -25
  262. package/dist/chunk-2J33WTMH-BQs9SXq8.cjs +0 -1
  263. package/dist/chunk-3OPIFGDE-Bk_ByTBh.cjs +0 -62
  264. package/dist/chunk-4BX2VUAB-C8VW0QW0.cjs +0 -1
  265. package/dist/chunk-55IACEB6-CNxnI3nm.cjs +0 -1
  266. package/dist/chunk-55IACEB6-CmKDx-YO.js +0 -8
  267. package/dist/chunk-5ZQYHXKU-DMrStm4M.cjs +0 -2
  268. package/dist/chunk-AQP2D5EJ-CYuEYK6i.cjs +0 -231
  269. package/dist/chunk-BSJP7CBP-CSCICPww.cjs +0 -1
  270. package/dist/chunk-BSJP7CBP-YsQACkyC.js +0 -82
  271. package/dist/chunk-CSCIHK7Q-BAdl6GW-.cjs +0 -124
  272. package/dist/chunk-KSCS5N6A-DsN7gJEf.cjs +0 -10
  273. package/dist/chunk-L5ZTLDWV-BQCNoMVG.js +0 -32
  274. package/dist/chunk-L5ZTLDWV-BbLRyKcx.cjs +0 -1
  275. package/dist/chunk-LZXEDZCA-rjLYyX5U.cjs +0 -1
  276. package/dist/chunk-ND2GUHAM-1o9Sjy2_.cjs +0 -1
  277. package/dist/chunk-NNHCCRGN-qV8bfiMQ.cjs +0 -159
  278. package/dist/chunk-NZK2D7GU-CPxdSJTy.js +0 -67
  279. package/dist/chunk-NZK2D7GU-CRneGIrP.cjs +0 -1
  280. package/dist/chunk-O5CBEL6O-Cd4Z5Dy9.cjs +0 -70
  281. package/dist/chunk-QZHKN3VN-ZJ4hLUIw.cjs +0 -1
  282. package/dist/chunk-WU5MYG2G-DuCEb9G-.js +0 -9
  283. package/dist/chunk-WU5MYG2G-ExiaHFbF.cjs +0 -1
  284. package/dist/chunk-XPW4576I-BybfDrup.cjs +0 -32
  285. package/dist/chunk-XPW4576I-D3DQ47oC.js +0 -1146
  286. package/dist/classDiagram-4FO5ZUOK-CRX1QumH.js +0 -29
  287. package/dist/classDiagram-4FO5ZUOK-yTAlLFG2.cjs +0 -1
  288. package/dist/classDiagram-v2-Q7XG4LA2-oM01mYfB.js +0 -29
  289. package/dist/classDiagram-v2-Q7XG4LA2-yTAlLFG2.cjs +0 -1
  290. package/dist/cose-bilkent-S5V4N54A-D7fhWOP4.cjs +0 -1
  291. package/dist/cytoscape.esm-CElDUMAx.cjs +0 -321
  292. package/dist/dagre-BM42HDAG-DfpR5Mml.js +0 -297
  293. package/dist/dagre-BM42HDAG-kORxgFz_.cjs +0 -4
  294. package/dist/diagram-2AECGRRQ-B0IEGKjr.cjs +0 -43
  295. package/dist/diagram-5GNKFQAL-BEY9x4us.js +0 -101
  296. package/dist/diagram-5GNKFQAL-vb6e35PR.cjs +0 -10
  297. package/dist/diagram-KO2AKTUF-9V_zu-2x.cjs +0 -3
  298. package/dist/diagram-LMA3HP47-BN_geiB9.cjs +0 -24
  299. package/dist/diagram-OG6HWLK6-6OnEK9-6.cjs +0 -24
  300. package/dist/dist-D8RD2QWc.cjs +0 -1
  301. package/dist/erDiagram-TEJ5UH35-6OEXIM6m.js +0 -1700
  302. package/dist/erDiagram-TEJ5UH35-CzsOt0l4.cjs +0 -85
  303. package/dist/eventmodeling-FCH6USID-Cued7Lz2.cjs +0 -1
  304. package/dist/eventmodeling-FCH6USID-mCB8hc7X.js +0 -3
  305. package/dist/flowDiagram-I6XJVG4X-DR1CMtZZ.cjs +0 -162
  306. package/dist/ganttDiagram-6RSMTGT7-C5t5_mjf.cjs +0 -292
  307. package/dist/gitGraph-WXDBUCRP-B23gOjfP.js +0 -3
  308. package/dist/gitGraph-WXDBUCRP-Bi-Y5dA7.cjs +0 -1
  309. package/dist/gitGraphDiagram-PVQCEYII-CLdgm7yJ.cjs +0 -106
  310. package/dist/info-J43DQDTF-DC3N8SoX.js +0 -3
  311. package/dist/info-J43DQDTF-jRjlWVKj.cjs +0 -1
  312. package/dist/infoDiagram-5YYISTIA-BIM8xaiE.js +0 -19
  313. package/dist/infoDiagram-5YYISTIA-CbnHgs-I.cjs +0 -2
  314. package/dist/kanban-definition-UN3LZRKU-CbeoJJE7.cjs +0 -89
  315. package/dist/katex-CkiTumqg.cjs +0 -257
  316. package/dist/mermaid-parser.core-ADyJ_PY4.cjs +0 -3
  317. package/dist/mermaid-parser.core-D6xVjl2t.js +0 -373
  318. package/dist/packet-YPE3B663-CGZxZ1Z0.cjs +0 -1
  319. package/dist/packet-YPE3B663-D2JW2EUF.js +0 -3
  320. package/dist/pie-LRSECV5Y-BHyd33ZA.js +0 -3
  321. package/dist/pie-LRSECV5Y-Ca_qbHEv.cjs +0 -1
  322. package/dist/pieDiagram-4H26LBE5-BvhguaHn.js +0 -165
  323. package/dist/pieDiagram-4H26LBE5-DpDrJBQK.cjs +0 -30
  324. package/dist/quadrantDiagram-W4KKPZXB-hWSN7YfD.cjs +0 -7
  325. package/dist/radar-GUYGQ44K-BpJWFTCm.js +0 -3
  326. package/dist/radar-GUYGQ44K-CYqWSxO_.cjs +0 -1
  327. package/dist/requirementDiagram-4Y6WPE33-GmjmsbiY.cjs +0 -84
  328. package/dist/sankeyDiagram-5OEKKPKP-DbGAx-Bm.cjs +0 -40
  329. package/dist/sequenceDiagram-3UESZ5HK-D85rpewi.cjs +0 -162
  330. package/dist/src-DEmZ9bFr.cjs +0 -1
  331. package/dist/stateDiagram-AJRCARHV-Bg4Y3HPa.cjs +0 -1
  332. package/dist/stateDiagram-AJRCARHV-wqjltbKb.js +0 -217
  333. package/dist/stateDiagram-v2-BHNVJYJU-Cgrf5tQC.js +0 -27
  334. package/dist/stateDiagram-v2-BHNVJYJU-D_Tzn4WM.cjs +0 -1
  335. package/dist/timeline-definition-PNZ67QCA-Dpu3hfhP.cjs +0 -120
  336. package/dist/treeView-BLDUP644-C9tQMbiq.js +0 -3
  337. package/dist/treeView-BLDUP644-DKh9BcaT.cjs +0 -1
  338. package/dist/treemap-LRROVOQU-2aferAph.cjs +0 -1
  339. package/dist/treemap-LRROVOQU-CBv3oGC3.js +0 -3
  340. package/dist/vennDiagram-CIIHVFJN-BLBDqWTG.cjs +0 -34
  341. package/dist/wardley-L42UT6IY-CIM0_V5T.js +0 -3
  342. package/dist/wardley-L42UT6IY-DjjjOB8T.cjs +0 -1
  343. package/dist/wardleyDiagram-YWT4CUSO-dzyAWKiV.cjs +0 -78
  344. package/dist/xychartDiagram-2RQKCTM6-DA3O42Dk.cjs +0 -7
@@ -1,16 +1,17 @@
1
- import { g as e, h as t, p as n } from "./src-DjDATEq3.js";
2
- 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-CSCIHK7Q-BEk3YcEH.js";
3
- import { t as x } from "./dist-Btd8EZyy.js";
4
- import { g as S, p as C } from "./chunk-5ZQYHXKU-B_nOC8-n.js";
5
- import { n as w, t as T } from "./chunk-XPW4576I-D3DQ47oC.js";
6
- import { a as E, c as D, i as O, n as k, r as A, s as j } from "./chunk-ND2GUHAM-Ca12h-m9.js";
7
- import { t as M } from "./chunk-QZHKN3VN-lYfzaOt9.js";
8
- //#region node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-3UESZ5HK.mjs
1
+ import { m as e, p as t } from "./src-D-6ZfKf9.js";
2
+ import { A as n, F as r, G as i, H as a, K as o, O as s, U as c, a as l, b as u, c as d, i as f, r as p, s as m, v as h, w as g, x as _, y as v, z as y } from "./chunk-DU6HZSFF-CNSdkWoH.js";
3
+ import { n as b } from "./chunk-Y2CYZVJY-i11wjrBe.js";
4
+ import { t as x } from "./dist-C7OpkiTz.js";
5
+ import { g as S, p as C } from "./chunk-75Z2AOVW-BwUD389x.js";
6
+ import { n as w, t as T } from "./chunk-LNGE3PJU-CiGrDO_F.js";
7
+ import { a as E, c as D, i as O, n as k, r as A, s as j } from "./chunk-F27PBJKO-DKsmevT5.js";
8
+ import { t as M } from "./chunk-2Q5K7J3B-kzxEEeTu.js";
9
+ //#region node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-WJ2MYXX4.mjs
9
10
  var N = x(), P = (function() {
10
- var e = /* @__PURE__ */ t(function(e, t, n, r) {
11
+ var e = /* @__PURE__ */ b(function(e, t, n, r) {
11
12
  for (n ||= {}, r = e.length; r--; n[e[r]] = t);
12
13
  return n;
13
- }, "o"), n = [1, 2], r = [1, 3], i = [1, 4], a = [2, 4], o = [1, 9], s = [1, 11], c = [1, 12], l = [1, 14], u = [1, 15], d = [1, 17], f = [1, 18], p = [1, 19], m = [1, 25], h = [1, 26], g = [1, 27], _ = [1, 28], v = [1, 29], y = [1, 30], b = [1, 31], x = [1, 32], S = [1, 33], C = [1, 34], w = [1, 35], T = [1, 36], E = [1, 37], D = [1, 38], O = [1, 39], k = [1, 40], A = [1, 42], j = [1, 43], M = [1, 44], N = [1, 45], P = [1, 46], F = [1, 47], I = [
14
+ }, "o"), t = [1, 2], n = [1, 3], r = [1, 4], i = [2, 4], a = [1, 9], o = [1, 11], s = [1, 12], c = [1, 14], l = [1, 15], u = [1, 17], d = [1, 18], f = [1, 19], p = [1, 25], m = [1, 26], h = [1, 27], g = [1, 28], _ = [1, 29], v = [1, 30], y = [1, 31], x = [1, 32], S = [1, 33], C = [1, 34], w = [1, 35], T = [1, 36], E = [1, 37], D = [1, 38], O = [1, 39], k = [1, 40], A = [1, 42], j = [1, 43], M = [1, 44], N = [1, 45], P = [1, 46], F = [1, 47], I = [
14
15
  1,
15
16
  4,
16
17
  5,
@@ -46,7 +47,7 @@ var N = x(), P = (function() {
46
47
  63,
47
48
  64,
48
49
  73
49
- ], L = [1, 74], ee = [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
+ ], 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
51
  4,
51
52
  5,
52
53
  17,
@@ -190,7 +191,7 @@ var N = x(), P = (function() {
190
191
  72,
191
192
  73
192
193
  ], J = [1, 151], we = {
193
- trace: /* @__PURE__ */ t(function() {}, "trace"),
194
+ trace: /* @__PURE__ */ b(function() {}, "trace"),
194
195
  yy: {},
195
196
  symbols_: {
196
197
  error: 2,
@@ -488,7 +489,7 @@ var N = x(), P = (function() {
488
489
  [69, 1],
489
490
  [58, 1]
490
491
  ],
491
- performAction: /* @__PURE__ */ t(function(e, t, n, r, i, a, o) {
492
+ performAction: /* @__PURE__ */ b(function(e, t, n, r, i, a, o) {
492
493
  var s = a.length - 1;
493
494
  switch (i) {
494
495
  case 3: return r.apply(a[s]), a[s];
@@ -985,22 +986,22 @@ var N = x(), P = (function() {
985
986
  table: [
986
987
  {
987
988
  3: 1,
988
- 4: n,
989
- 5: r,
990
- 6: i
989
+ 4: t,
990
+ 5: n,
991
+ 6: r
991
992
  },
992
993
  { 1: [3] },
993
994
  {
994
995
  3: 5,
995
- 4: n,
996
- 5: r,
997
- 6: i
996
+ 4: t,
997
+ 5: n,
998
+ 6: r
998
999
  },
999
1000
  {
1000
1001
  3: 6,
1001
- 4: n,
1002
- 5: r,
1003
- 6: i
1002
+ 4: t,
1003
+ 5: n,
1004
+ 6: r
1004
1005
  },
1005
1006
  e([
1006
1007
  1,
@@ -1034,36 +1035,36 @@ var N = x(), P = (function() {
1034
1035
  63,
1035
1036
  64,
1036
1037
  73
1037
- ], a, { 7: 7 }),
1038
+ ], i, { 7: 7 }),
1038
1039
  { 1: [2, 1] },
1039
1040
  { 1: [2, 2] },
1040
1041
  {
1041
1042
  1: [2, 3],
1042
- 4: o,
1043
- 5: s,
1043
+ 4: a,
1044
+ 5: o,
1044
1045
  8: 8,
1045
1046
  9: 10,
1046
- 10: c,
1047
+ 10: s,
1047
1048
  13: 13,
1048
- 14: l,
1049
- 15: u,
1049
+ 14: c,
1050
+ 15: l,
1050
1051
  18: 16,
1051
- 19: d,
1052
- 22: f,
1052
+ 19: u,
1053
+ 22: d,
1053
1054
  23: 41,
1054
- 24: p,
1055
+ 24: f,
1055
1056
  25: 20,
1056
1057
  26: 21,
1057
1058
  27: 22,
1058
1059
  28: 23,
1059
1060
  29: 24,
1060
- 30: m,
1061
- 31: h,
1062
- 32: g,
1063
- 34: _,
1064
- 36: v,
1065
- 37: y,
1066
- 38: b,
1061
+ 30: p,
1062
+ 31: m,
1063
+ 32: h,
1064
+ 34: g,
1065
+ 36: _,
1066
+ 37: v,
1067
+ 38: y,
1067
1068
  39: x,
1068
1069
  40: S,
1069
1070
  42: C,
@@ -1084,25 +1085,25 @@ var N = x(), P = (function() {
1084
1085
  {
1085
1086
  9: 48,
1086
1087
  13: 13,
1087
- 14: l,
1088
- 15: u,
1088
+ 14: c,
1089
+ 15: l,
1089
1090
  18: 16,
1090
- 19: d,
1091
- 22: f,
1091
+ 19: u,
1092
+ 22: d,
1092
1093
  23: 41,
1093
- 24: p,
1094
+ 24: f,
1094
1095
  25: 20,
1095
1096
  26: 21,
1096
1097
  27: 22,
1097
1098
  28: 23,
1098
1099
  29: 24,
1099
- 30: m,
1100
- 31: h,
1101
- 32: g,
1102
- 34: _,
1103
- 36: v,
1104
- 37: y,
1105
- 38: b,
1100
+ 30: p,
1101
+ 31: m,
1102
+ 32: h,
1103
+ 34: g,
1104
+ 36: _,
1105
+ 37: v,
1106
+ 38: y,
1106
1107
  39: x,
1107
1108
  40: S,
1108
1109
  42: C,
@@ -1165,12 +1166,12 @@ var N = x(), P = (function() {
1165
1166
  {
1166
1167
  23: 72,
1167
1168
  55: 73,
1168
- 73: L
1169
+ 73: ee
1169
1170
  },
1170
1171
  {
1171
1172
  23: 75,
1172
1173
  55: 76,
1173
- 73: L
1174
+ 73: ee
1174
1175
  },
1175
1176
  {
1176
1177
  23: 77,
@@ -1179,7 +1180,7 @@ var N = x(), P = (function() {
1179
1180
  {
1180
1181
  69: 78,
1181
1182
  72: [1, 79],
1182
- 78: ee,
1183
+ 78: L,
1183
1184
  79: R,
1184
1185
  80: te,
1185
1186
  81: ne,
@@ -1279,26 +1280,26 @@ var N = x(), P = (function() {
1279
1280
  e(I, [2, 29]),
1280
1281
  e(I, [2, 32]),
1281
1282
  e(I, [2, 33]),
1282
- e(ye, a, { 7: 120 }),
1283
- e(ye, a, { 7: 121 }),
1284
- e(ye, a, { 7: 122 }),
1285
- e(be, a, {
1283
+ e(ye, i, { 7: 120 }),
1284
+ e(ye, i, { 7: 121 }),
1285
+ e(ye, i, { 7: 122 }),
1286
+ e(be, i, {
1286
1287
  41: 123,
1287
1288
  7: 124
1288
1289
  }),
1289
- e(xe, a, {
1290
+ e(xe, i, {
1290
1291
  43: 125,
1291
1292
  7: 126
1292
1293
  }),
1293
- e(xe, a, {
1294
+ e(xe, i, {
1294
1295
  7: 126,
1295
1296
  43: 127
1296
1297
  }),
1297
- e(Se, a, {
1298
+ e(Se, i, {
1298
1299
  46: 128,
1299
1300
  7: 129
1300
1301
  }),
1301
- e(ye, a, { 7: 130 }),
1302
+ e(ye, i, { 7: 130 }),
1302
1303
  {
1303
1304
  5: [1, 132],
1304
1305
  52: [1, 131]
@@ -1329,7 +1330,7 @@ var N = x(), P = (function() {
1329
1330
  },
1330
1331
  {
1331
1332
  69: 146,
1332
- 78: ee,
1333
+ 78: L,
1333
1334
  79: R,
1334
1335
  80: te,
1335
1336
  81: ne,
@@ -1425,32 +1426,32 @@ var N = x(), P = (function() {
1425
1426
  e(I, [2, 23]),
1426
1427
  e(I, [2, 24]),
1427
1428
  {
1428
- 4: o,
1429
- 5: s,
1429
+ 4: a,
1430
+ 5: o,
1430
1431
  8: 8,
1431
1432
  9: 10,
1432
- 10: c,
1433
+ 10: s,
1433
1434
  13: 13,
1434
- 14: l,
1435
- 15: u,
1435
+ 14: c,
1436
+ 15: l,
1436
1437
  17: [1, 161],
1437
1438
  18: 16,
1438
- 19: d,
1439
- 22: f,
1439
+ 19: u,
1440
+ 22: d,
1440
1441
  23: 41,
1441
- 24: p,
1442
+ 24: f,
1442
1443
  25: 20,
1443
1444
  26: 21,
1444
1445
  27: 22,
1445
1446
  28: 23,
1446
1447
  29: 24,
1447
- 30: m,
1448
- 31: h,
1449
- 32: g,
1450
- 34: _,
1451
- 36: v,
1452
- 37: y,
1453
- 38: b,
1448
+ 30: p,
1449
+ 31: m,
1450
+ 32: h,
1451
+ 34: g,
1452
+ 36: _,
1453
+ 37: v,
1454
+ 38: y,
1454
1455
  39: x,
1455
1456
  40: S,
1456
1457
  42: C,
@@ -1468,32 +1469,32 @@ var N = x(), P = (function() {
1468
1469
  73: F
1469
1470
  },
1470
1471
  {
1471
- 4: o,
1472
- 5: s,
1472
+ 4: a,
1473
+ 5: o,
1473
1474
  8: 8,
1474
1475
  9: 10,
1475
- 10: c,
1476
+ 10: s,
1476
1477
  13: 13,
1477
- 14: l,
1478
- 15: u,
1478
+ 14: c,
1479
+ 15: l,
1479
1480
  17: [1, 162],
1480
1481
  18: 16,
1481
- 19: d,
1482
- 22: f,
1482
+ 19: u,
1483
+ 22: d,
1483
1484
  23: 41,
1484
- 24: p,
1485
+ 24: f,
1485
1486
  25: 20,
1486
1487
  26: 21,
1487
1488
  27: 22,
1488
1489
  28: 23,
1489
1490
  29: 24,
1490
- 30: m,
1491
- 31: h,
1492
- 32: g,
1493
- 34: _,
1494
- 36: v,
1495
- 37: y,
1496
- 38: b,
1491
+ 30: p,
1492
+ 31: m,
1493
+ 32: h,
1494
+ 34: g,
1495
+ 36: _,
1496
+ 37: v,
1497
+ 38: y,
1497
1498
  39: x,
1498
1499
  40: S,
1499
1500
  42: C,
@@ -1511,32 +1512,32 @@ var N = x(), P = (function() {
1511
1512
  73: F
1512
1513
  },
1513
1514
  {
1514
- 4: o,
1515
- 5: s,
1515
+ 4: a,
1516
+ 5: o,
1516
1517
  8: 8,
1517
1518
  9: 10,
1518
- 10: c,
1519
+ 10: s,
1519
1520
  13: 13,
1520
- 14: l,
1521
- 15: u,
1521
+ 14: c,
1522
+ 15: l,
1522
1523
  17: [1, 163],
1523
1524
  18: 16,
1524
- 19: d,
1525
- 22: f,
1525
+ 19: u,
1526
+ 22: d,
1526
1527
  23: 41,
1527
- 24: p,
1528
+ 24: f,
1528
1529
  25: 20,
1529
1530
  26: 21,
1530
1531
  27: 22,
1531
1532
  28: 23,
1532
1533
  29: 24,
1533
- 30: m,
1534
- 31: h,
1535
- 32: g,
1536
- 34: _,
1537
- 36: v,
1538
- 37: y,
1539
- 38: b,
1534
+ 30: p,
1535
+ 31: m,
1536
+ 32: h,
1537
+ 34: g,
1538
+ 36: _,
1539
+ 37: v,
1540
+ 38: y,
1540
1541
  39: x,
1541
1542
  40: S,
1542
1543
  42: C,
@@ -1555,32 +1556,32 @@ var N = x(), P = (function() {
1555
1556
  },
1556
1557
  { 17: [1, 164] },
1557
1558
  {
1558
- 4: o,
1559
- 5: s,
1559
+ 4: a,
1560
+ 5: o,
1560
1561
  8: 8,
1561
1562
  9: 10,
1562
- 10: c,
1563
+ 10: s,
1563
1564
  13: 13,
1564
- 14: l,
1565
- 15: u,
1565
+ 14: c,
1566
+ 15: l,
1566
1567
  17: [2, 47],
1567
1568
  18: 16,
1568
- 19: d,
1569
- 22: f,
1569
+ 19: u,
1570
+ 22: d,
1570
1571
  23: 41,
1571
- 24: p,
1572
+ 24: f,
1572
1573
  25: 20,
1573
1574
  26: 21,
1574
1575
  27: 22,
1575
1576
  28: 23,
1576
1577
  29: 24,
1577
- 30: m,
1578
- 31: h,
1579
- 32: g,
1580
- 34: _,
1581
- 36: v,
1582
- 37: y,
1583
- 38: b,
1578
+ 30: p,
1579
+ 31: m,
1580
+ 32: h,
1581
+ 34: g,
1582
+ 36: _,
1583
+ 37: v,
1584
+ 38: y,
1584
1585
  39: x,
1585
1586
  40: S,
1586
1587
  42: C,
@@ -1600,32 +1601,32 @@ var N = x(), P = (function() {
1600
1601
  },
1601
1602
  { 17: [1, 166] },
1602
1603
  {
1603
- 4: o,
1604
- 5: s,
1604
+ 4: a,
1605
+ 5: o,
1605
1606
  8: 8,
1606
1607
  9: 10,
1607
- 10: c,
1608
+ 10: s,
1608
1609
  13: 13,
1609
- 14: l,
1610
- 15: u,
1610
+ 14: c,
1611
+ 15: l,
1611
1612
  17: [2, 45],
1612
1613
  18: 16,
1613
- 19: d,
1614
- 22: f,
1614
+ 19: u,
1615
+ 22: d,
1615
1616
  23: 41,
1616
- 24: p,
1617
+ 24: f,
1617
1618
  25: 20,
1618
1619
  26: 21,
1619
1620
  27: 22,
1620
1621
  28: 23,
1621
1622
  29: 24,
1622
- 30: m,
1623
- 31: h,
1624
- 32: g,
1625
- 34: _,
1626
- 36: v,
1627
- 37: y,
1628
- 38: b,
1623
+ 30: p,
1624
+ 31: m,
1625
+ 32: h,
1626
+ 34: g,
1627
+ 36: _,
1628
+ 37: v,
1629
+ 38: y,
1629
1630
  39: x,
1630
1631
  40: S,
1631
1632
  42: C,
@@ -1646,32 +1647,32 @@ var N = x(), P = (function() {
1646
1647
  { 17: [1, 168] },
1647
1648
  { 17: [1, 169] },
1648
1649
  {
1649
- 4: o,
1650
- 5: s,
1650
+ 4: a,
1651
+ 5: o,
1651
1652
  8: 8,
1652
1653
  9: 10,
1653
- 10: c,
1654
+ 10: s,
1654
1655
  13: 13,
1655
- 14: l,
1656
- 15: u,
1656
+ 14: c,
1657
+ 15: l,
1657
1658
  17: [2, 43],
1658
1659
  18: 16,
1659
- 19: d,
1660
- 22: f,
1660
+ 19: u,
1661
+ 22: d,
1661
1662
  23: 41,
1662
- 24: p,
1663
+ 24: f,
1663
1664
  25: 20,
1664
1665
  26: 21,
1665
1666
  27: 22,
1666
1667
  28: 23,
1667
1668
  29: 24,
1668
- 30: m,
1669
- 31: h,
1670
- 32: g,
1671
- 34: _,
1672
- 36: v,
1673
- 37: y,
1674
- 38: b,
1669
+ 30: p,
1670
+ 31: m,
1671
+ 32: h,
1672
+ 34: g,
1673
+ 36: _,
1674
+ 37: v,
1675
+ 38: y,
1675
1676
  39: x,
1676
1677
  40: S,
1677
1678
  42: C,
@@ -1690,32 +1691,32 @@ var N = x(), P = (function() {
1690
1691
  73: F
1691
1692
  },
1692
1693
  {
1693
- 4: o,
1694
- 5: s,
1694
+ 4: a,
1695
+ 5: o,
1695
1696
  8: 8,
1696
1697
  9: 10,
1697
- 10: c,
1698
+ 10: s,
1698
1699
  13: 13,
1699
- 14: l,
1700
- 15: u,
1700
+ 14: c,
1701
+ 15: l,
1701
1702
  17: [1, 171],
1702
1703
  18: 16,
1703
- 19: d,
1704
- 22: f,
1704
+ 19: u,
1705
+ 22: d,
1705
1706
  23: 41,
1706
- 24: p,
1707
+ 24: f,
1707
1708
  25: 20,
1708
1709
  26: 21,
1709
1710
  27: 22,
1710
1711
  28: 23,
1711
1712
  29: 24,
1712
- 30: m,
1713
- 31: h,
1714
- 32: g,
1715
- 34: _,
1716
- 36: v,
1717
- 37: y,
1718
- 38: b,
1713
+ 30: p,
1714
+ 31: m,
1715
+ 32: h,
1716
+ 34: g,
1717
+ 36: _,
1718
+ 37: v,
1719
+ 38: y,
1719
1720
  39: x,
1720
1721
  40: S,
1721
1722
  42: C,
@@ -1836,15 +1837,15 @@ var N = x(), P = (function() {
1836
1837
  73: F
1837
1838
  },
1838
1839
  e(ve, [2, 12]),
1839
- e(be, a, {
1840
+ e(be, i, {
1840
1841
  7: 124,
1841
1842
  41: 201
1842
1843
  }),
1843
- e(xe, a, {
1844
+ e(xe, i, {
1844
1845
  7: 126,
1845
1846
  43: 202
1846
1847
  }),
1847
- e(Se, a, {
1848
+ e(Se, i, {
1848
1849
  7: 129,
1849
1850
  46: 203
1850
1851
  }),
@@ -1890,63 +1891,63 @@ var N = x(), P = (function() {
1890
1891
  203: [2, 44],
1891
1892
  204: [2, 74]
1892
1893
  },
1893
- parseError: /* @__PURE__ */ t(function(e, t) {
1894
+ parseError: /* @__PURE__ */ b(function(e, t) {
1894
1895
  if (t.recoverable) this.trace(e);
1895
1896
  else {
1896
1897
  var n = Error(e);
1897
1898
  throw n.hash = t, n;
1898
1899
  }
1899
1900
  }, "parseError"),
1900
- parse: /* @__PURE__ */ t(function(e) {
1901
- var n = this, r = [0], i = [], a = [null], o = [], s = this.table, c = "", l = 0, u = 0, d = 0, f = 2, p = 1, m = o.slice.call(arguments, 1), h = Object.create(this.lexer), g = { yy: {} };
1902
- for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
1903
- h.setInput(e, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
1904
- var v = h.yylloc;
1905
- o.push(v);
1906
- var y = h.options && h.options.ranges;
1907
- typeof g.yy.parseError == "function" ? this.parseError = g.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
1908
- function b(e) {
1909
- r.length -= 2 * e, a.length -= e, o.length -= e;
1901
+ parse: /* @__PURE__ */ b(function(e) {
1902
+ var t = this, n = [0], r = [], i = [null], a = [], o = this.table, s = "", c = 0, l = 0, u = 0, d = 2, f = 1, p = a.slice.call(arguments, 1), m = Object.create(this.lexer), h = { yy: {} };
1903
+ for (var g in this.yy) Object.prototype.hasOwnProperty.call(this.yy, g) && (h.yy[g] = this.yy[g]);
1904
+ m.setInput(e, h.yy), h.yy.lexer = m, h.yy.parser = this, m.yylloc === void 0 && (m.yylloc = {});
1905
+ var _ = m.yylloc;
1906
+ a.push(_);
1907
+ var v = m.options && m.options.ranges;
1908
+ typeof h.yy.parseError == "function" ? this.parseError = h.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
1909
+ function y(e) {
1910
+ n.length -= 2 * e, i.length -= e, a.length -= e;
1910
1911
  }
1911
- t(b, "popStack");
1912
+ b(y, "popStack");
1912
1913
  function x() {
1913
- var e = i.pop() || h.lex() || p;
1914
- return typeof e != "number" && (e instanceof Array && (i = e, e = i.pop()), e = n.symbols_[e] || e), e;
1914
+ var e = r.pop() || m.lex() || f;
1915
+ return typeof e != "number" && (e instanceof Array && (r = e, e = r.pop()), e = t.symbols_[e] || e), e;
1915
1916
  }
1916
- t(x, "lex");
1917
+ b(x, "lex");
1917
1918
  for (var S, C, w, T, E, D = {}, O, k, A, j;;) {
1918
- if (w = r[r.length - 1], this.defaultActions[w] ? T = this.defaultActions[w] : (S ??= x(), T = s[w] && s[w][S]), T === void 0 || !T.length || !T[0]) {
1919
+ if (w = n[n.length - 1], this.defaultActions[w] ? T = this.defaultActions[w] : (S ??= x(), T = o[w] && o[w][S]), T === void 0 || !T.length || !T[0]) {
1919
1920
  var M = "";
1920
- for (O in j = [], s[w]) this.terminals_[O] && O > f && j.push("'" + this.terminals_[O] + "'");
1921
- M = h.showPosition ? "Parse error on line " + (l + 1) + ":\n" + h.showPosition() + "\nExpecting " + j.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : "Parse error on line " + (l + 1) + ": Unexpected " + (S == p ? "end of input" : "'" + (this.terminals_[S] || S) + "'"), this.parseError(M, {
1922
- text: h.match,
1921
+ for (O in j = [], o[w]) this.terminals_[O] && O > d && j.push("'" + this.terminals_[O] + "'");
1922
+ M = m.showPosition ? "Parse error on line " + (c + 1) + ":\n" + m.showPosition() + "\nExpecting " + j.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : "Parse error on line " + (c + 1) + ": Unexpected " + (S == f ? "end of input" : "'" + (this.terminals_[S] || S) + "'"), this.parseError(M, {
1923
+ text: m.match,
1923
1924
  token: this.terminals_[S] || S,
1924
- line: h.yylineno,
1925
- loc: v,
1925
+ line: m.yylineno,
1926
+ loc: _,
1926
1927
  expected: j
1927
1928
  });
1928
1929
  }
1929
1930
  if (T[0] instanceof Array && T.length > 1) throw Error("Parse Error: multiple actions possible at state: " + w + ", token: " + S);
1930
1931
  switch (T[0]) {
1931
1932
  case 1:
1932
- r.push(S), a.push(h.yytext), o.push(h.yylloc), r.push(T[1]), S = null, C ? (S = C, C = null) : (u = h.yyleng, c = h.yytext, l = h.yylineno, v = h.yylloc, d > 0 && d--);
1933
+ n.push(S), i.push(m.yytext), a.push(m.yylloc), n.push(T[1]), S = null, C ? (S = C, C = null) : (l = m.yyleng, s = m.yytext, c = m.yylineno, _ = m.yylloc, u > 0 && u--);
1933
1934
  break;
1934
1935
  case 2:
1935
- if (k = this.productions_[T[1]][1], D.$ = a[a.length - k], D._$ = {
1936
- first_line: o[o.length - (k || 1)].first_line,
1937
- last_line: o[o.length - 1].last_line,
1938
- first_column: o[o.length - (k || 1)].first_column,
1939
- last_column: o[o.length - 1].last_column
1940
- }, y && (D._$.range = [o[o.length - (k || 1)].range[0], o[o.length - 1].range[1]]), E = this.performAction.apply(D, [
1941
- c,
1942
- u,
1936
+ if (k = this.productions_[T[1]][1], D.$ = i[i.length - k], D._$ = {
1937
+ first_line: a[a.length - (k || 1)].first_line,
1938
+ last_line: a[a.length - 1].last_line,
1939
+ first_column: a[a.length - (k || 1)].first_column,
1940
+ last_column: a[a.length - 1].last_column
1941
+ }, v && (D._$.range = [a[a.length - (k || 1)].range[0], a[a.length - 1].range[1]]), E = this.performAction.apply(D, [
1942
+ s,
1943
1943
  l,
1944
- g.yy,
1944
+ c,
1945
+ h.yy,
1945
1946
  T[1],
1946
- a,
1947
- o
1948
- ].concat(m)), E !== void 0) return E;
1949
- k && (r = r.slice(0, -1 * k * 2), a = a.slice(0, -1 * k), o = o.slice(0, -1 * k)), r.push(this.productions_[T[1]][0]), a.push(D.$), o.push(D._$), A = s[r[r.length - 2]][r[r.length - 1]], r.push(A);
1947
+ i,
1948
+ a
1949
+ ].concat(p)), E !== void 0) return E;
1950
+ k && (n = n.slice(0, -1 * k * 2), i = i.slice(0, -1 * k), a = a.slice(0, -1 * k)), n.push(this.productions_[T[1]][0]), i.push(D.$), a.push(D._$), A = o[n[n.length - 2]][n[n.length - 1]], n.push(A);
1950
1951
  break;
1951
1952
  case 3: return !0;
1952
1953
  }
@@ -1957,11 +1958,11 @@ var N = x(), P = (function() {
1957
1958
  we.lexer = /* @__PURE__ */ (function() {
1958
1959
  return {
1959
1960
  EOF: 1,
1960
- parseError: /* @__PURE__ */ t(function(e, t) {
1961
+ parseError: /* @__PURE__ */ b(function(e, t) {
1961
1962
  if (this.yy.parser) this.yy.parser.parseError(e, t);
1962
1963
  else throw Error(e);
1963
1964
  }, "parseError"),
1964
- setInput: /* @__PURE__ */ t(function(e, t) {
1965
+ setInput: /* @__PURE__ */ b(function(e, t) {
1965
1966
  return this.yy = t || this.yy || {}, this._input = e, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
1966
1967
  first_line: 1,
1967
1968
  first_column: 0,
@@ -1969,11 +1970,11 @@ var N = x(), P = (function() {
1969
1970
  last_column: 0
1970
1971
  }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
1971
1972
  }, "setInput"),
1972
- input: /* @__PURE__ */ t(function() {
1973
+ input: /* @__PURE__ */ b(function() {
1973
1974
  var e = this._input[0];
1974
1975
  return this.yytext += e, this.yyleng++, this.offset++, this.match += e, this.matched += e, e.match(/(?:\r\n?|\n).*/g) ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), e;
1975
1976
  }, "input"),
1976
- unput: /* @__PURE__ */ t(function(e) {
1977
+ unput: /* @__PURE__ */ b(function(e) {
1977
1978
  var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
1978
1979
  this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
1979
1980
  var r = this.match.split(/(?:\r\n?|\n)/g);
@@ -1986,10 +1987,10 @@ var N = x(), P = (function() {
1986
1987
  last_column: n ? (n.length === r.length ? this.yylloc.first_column : 0) + r[r.length - n.length].length - n[0].length : this.yylloc.first_column - t
1987
1988
  }, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
1988
1989
  }, "unput"),
1989
- more: /* @__PURE__ */ t(function() {
1990
+ more: /* @__PURE__ */ b(function() {
1990
1991
  return this._more = !0, this;
1991
1992
  }, "more"),
1992
- reject: /* @__PURE__ */ t(function() {
1993
+ reject: /* @__PURE__ */ b(function() {
1993
1994
  if (this.options.backtrack_lexer) this._backtrack = !0;
1994
1995
  else return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n" + this.showPosition(), {
1995
1996
  text: "",
@@ -1998,22 +1999,22 @@ var N = x(), P = (function() {
1998
1999
  });
1999
2000
  return this;
2000
2001
  }, "reject"),
2001
- less: /* @__PURE__ */ t(function(e) {
2002
+ less: /* @__PURE__ */ b(function(e) {
2002
2003
  this.unput(this.match.slice(e));
2003
2004
  }, "less"),
2004
- pastInput: /* @__PURE__ */ t(function() {
2005
+ pastInput: /* @__PURE__ */ b(function() {
2005
2006
  var e = this.matched.substr(0, this.matched.length - this.match.length);
2006
2007
  return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
2007
2008
  }, "pastInput"),
2008
- upcomingInput: /* @__PURE__ */ t(function() {
2009
+ upcomingInput: /* @__PURE__ */ b(function() {
2009
2010
  var e = this.match;
2010
2011
  return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
2011
2012
  }, "upcomingInput"),
2012
- showPosition: /* @__PURE__ */ t(function() {
2013
+ showPosition: /* @__PURE__ */ b(function() {
2013
2014
  var e = this.pastInput(), t = Array(e.length + 1).join("-");
2014
2015
  return e + this.upcomingInput() + "\n" + t + "^";
2015
2016
  }, "showPosition"),
2016
- test_match: /* @__PURE__ */ t(function(e, t) {
2017
+ test_match: /* @__PURE__ */ b(function(e, t) {
2017
2018
  var n, r, i;
2018
2019
  if (this.options.backtrack_lexer && (i = {
2019
2020
  yylineno: this.yylineno,
@@ -2046,7 +2047,7 @@ var N = x(), P = (function() {
2046
2047
  }
2047
2048
  return !1;
2048
2049
  }, "test_match"),
2049
- next: /* @__PURE__ */ t(function() {
2050
+ next: /* @__PURE__ */ b(function() {
2050
2051
  if (this.done) return this.EOF;
2051
2052
  this._input || (this.done = !0);
2052
2053
  var e, t, n, r;
@@ -2066,29 +2067,29 @@ var N = x(), P = (function() {
2066
2067
  line: this.yylineno
2067
2068
  });
2068
2069
  }, "next"),
2069
- lex: /* @__PURE__ */ t(function() {
2070
+ lex: /* @__PURE__ */ b(function() {
2070
2071
  return this.next() || this.lex();
2071
2072
  }, "lex"),
2072
- begin: /* @__PURE__ */ t(function(e) {
2073
+ begin: /* @__PURE__ */ b(function(e) {
2073
2074
  this.conditionStack.push(e);
2074
2075
  }, "begin"),
2075
- popState: /* @__PURE__ */ t(function() {
2076
+ popState: /* @__PURE__ */ b(function() {
2076
2077
  return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
2077
2078
  }, "popState"),
2078
- _currentRules: /* @__PURE__ */ t(function() {
2079
+ _currentRules: /* @__PURE__ */ b(function() {
2079
2080
  return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
2080
2081
  }, "_currentRules"),
2081
- topState: /* @__PURE__ */ t(function(e) {
2082
+ topState: /* @__PURE__ */ b(function(e) {
2082
2083
  return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
2083
2084
  }, "topState"),
2084
- pushState: /* @__PURE__ */ t(function(e) {
2085
+ pushState: /* @__PURE__ */ b(function(e) {
2085
2086
  this.begin(e);
2086
2087
  }, "pushState"),
2087
- stateStackSize: /* @__PURE__ */ t(function() {
2088
+ stateStackSize: /* @__PURE__ */ b(function() {
2088
2089
  return this.conditionStack.length;
2089
2090
  }, "stateStackSize"),
2090
2091
  options: { "case-insensitive": !0 },
2091
- performAction: /* @__PURE__ */ t(function(e, t, n, r) {
2092
+ performAction: /* @__PURE__ */ b(function(e, t, n, r) {
2092
2093
  switch (n) {
2093
2094
  case 0: return 5;
2094
2095
  case 1: break;
@@ -2429,7 +2430,7 @@ var N = x(), P = (function() {
2429
2430
  function Te() {
2430
2431
  this.yy = {};
2431
2432
  }
2432
- return t(Te, "Parser"), Te.prototype = we, we.Parser = Te, new Te();
2433
+ return b(Te, "Parser"), Te.prototype = we, we.Parser = Te, new Te();
2433
2434
  })();
2434
2435
  P.parser = P;
2435
2436
  var F = P, I = {
@@ -2484,10 +2485,10 @@ var F = P, I = {
2484
2485
  CENTRAL_CONNECTION: 59,
2485
2486
  CENTRAL_CONNECTION_REVERSE: 60,
2486
2487
  CENTRAL_CONNECTION_DUAL: 61
2487
- }, L = {
2488
+ }, ee = {
2488
2489
  FILLED: 0,
2489
2490
  OPEN: 1
2490
- }, ee = {
2491
+ }, L = {
2491
2492
  LEFTOF: 0,
2492
2493
  RIGHTOF: 1,
2493
2494
  OVER: 2
@@ -2515,10 +2516,10 @@ var F = P, I = {
2515
2516
  currentBox: void 0,
2516
2517
  lastCreated: void 0,
2517
2518
  lastDestroyed: void 0
2518
- })), 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 = L, this.PLACEMENT = ee;
2519
+ })), this.setAccTitle = c, this.setAccDescription = a, this.setDiagramTitle = o, this.getAccTitle = v, this.getAccDescription = h, this.getDiagramTitle = g, this.apply = this.apply.bind(this), this.parseBoxData = this.parseBoxData.bind(this), this.parseMessage = this.parseMessage.bind(this), this.clear(), this.setWrap(_().wrap), this.LINETYPE = I, this.ARROWTYPE = ee, this.PLACEMENT = L;
2519
2520
  }
2520
2521
  static {
2521
- t(this, "SequenceDB");
2522
+ b(this, "SequenceDB");
2522
2523
  }
2523
2524
  addBox(e) {
2524
2525
  this.state.records.boxes.push({
@@ -2659,10 +2660,10 @@ var F = P, I = {
2659
2660
  };
2660
2661
  }
2661
2662
  autoWrap() {
2662
- return this.state.records.wrapEnabled === void 0 ? v().sequence?.wrap ?? !1 : this.state.records.wrapEnabled;
2663
+ return this.state.records.wrapEnabled === void 0 ? _().sequence?.wrap ?? !1 : this.state.records.wrapEnabled;
2663
2664
  }
2664
2665
  clear() {
2665
- this.state.reset(), u();
2666
+ this.state.reset(), l();
2666
2667
  }
2667
2668
  parseMessage(t) {
2668
2669
  let n = t.trim(), { wrap: r, cleanedText: i } = this.extractWrap(n), a = {
@@ -2680,7 +2681,7 @@ var F = P, I = {
2680
2681
  }
2681
2682
  let { wrap: i, cleanedText: a } = this.extractWrap(r);
2682
2683
  return {
2683
- text: a ? b(a, v()) : void 0,
2684
+ text: a ? y(a, _()) : void 0,
2684
2685
  color: n,
2685
2686
  wrap: i
2686
2687
  };
@@ -2705,7 +2706,7 @@ var F = P, I = {
2705
2706
  addLinks(t, n) {
2706
2707
  let r = this.getActor(t);
2707
2708
  try {
2708
- let e = b(n.text, v());
2709
+ let e = y(n.text, _());
2709
2710
  e = e.replace(/&equals;/g, "="), e = e.replace(/&amp;/g, "&");
2710
2711
  let t = JSON.parse(e);
2711
2712
  this.insertLinks(r, t);
@@ -2716,7 +2717,7 @@ var F = P, I = {
2716
2717
  addALink(t, n) {
2717
2718
  let r = this.getActor(t);
2718
2719
  try {
2719
- let e = {}, t = b(n.text, v()), i = t.indexOf("@");
2720
+ let e = {}, t = y(n.text, _()), i = t.indexOf("@");
2720
2721
  t = t.replace(/&equals;/g, "="), t = t.replace(/&amp;/g, "&");
2721
2722
  let a = t.slice(0, i - 1).trim();
2722
2723
  e[a] = t.slice(i + 1).trim(), this.insertLinks(r, e);
@@ -2731,7 +2732,7 @@ var F = P, I = {
2731
2732
  addProperties(t, n) {
2732
2733
  let r = this.getActor(t);
2733
2734
  try {
2734
- let e = b(n.text, v()), t = JSON.parse(e);
2735
+ let e = y(n.text, _()), t = JSON.parse(e);
2735
2736
  this.insertProperties(r, t);
2736
2737
  } catch (t) {
2737
2738
  e.error("error while parsing actor properties text", t);
@@ -2856,7 +2857,7 @@ var F = P, I = {
2856
2857
  this.addSignal(void 0, void 0, void 0, e.signalType);
2857
2858
  break;
2858
2859
  case "setAccTitle":
2859
- l(e.text);
2860
+ c(e.text);
2860
2861
  break;
2861
2862
  case "parStart":
2862
2863
  this.addSignal(void 0, void 0, e.parText, e.signalType);
@@ -2885,10 +2886,10 @@ var F = P, I = {
2885
2886
  }
2886
2887
  }
2887
2888
  getConfig() {
2888
- return v().sequence;
2889
+ return _().sequence;
2889
2890
  }
2890
- }, ne = /* @__PURE__ */ t((e) => {
2891
- let t = e.dropShadow ?? "none", { look: n } = v();
2891
+ }, ne = /* @__PURE__ */ b((e) => {
2892
+ let t = e.dropShadow ?? "none", { look: n } = _();
2892
2893
  return `.actor {
2893
2894
  stroke: ${e.actorBorder};
2894
2895
  fill: ${e.actorBkg};
@@ -3029,10 +3030,10 @@ var F = P, I = {
3029
3030
  stroke: ${e.nodeBorder};
3030
3031
  }
3031
3032
  `;
3032
- }, "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__ */ t(function(e, t) {
3033
+ }, "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__ */ b(function(e, t) {
3033
3034
  let n = E(e, t);
3034
- return d().look === "neo" && n.attr("data-look", "neo"), n;
3035
- }, "drawRect"), ie = /* @__PURE__ */ t(function(e, t, n, r, i) {
3035
+ return u().look === "neo" && n.attr("data-look", "neo"), n;
3036
+ }, "drawRect"), ie = /* @__PURE__ */ b(function(e, t, n, r, i) {
3036
3037
  if (t.links === void 0 || t.links === null || Object.keys(t.links).length === 0) return {
3037
3038
  height: 0,
3038
3039
  width: 0
@@ -3056,82 +3057,82 @@ var F = P, I = {
3056
3057
  height: s.height + p,
3057
3058
  width: d
3058
3059
  };
3059
- }, "drawPopup"), ae = /* @__PURE__ */ t(function(e) {
3060
+ }, "drawPopup"), ae = /* @__PURE__ */ b(function(e) {
3060
3061
  return "var pu = document.getElementById('" + e + "'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }";
3061
- }, "popupMenuToggle"), oe = /* @__PURE__ */ t(async function(e, t, n = null) {
3062
- 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();
3063
- if (r.attr("height", Math.round(o.height)).attr("width", Math.round(o.width)), t.class === "noteText") {
3062
+ }, "popupMenuToggle"), oe = /* @__PURE__ */ b(async function(e, t, n = null) {
3063
+ let i = e.append("foreignObject"), a = await r(t.text, u()), o = i.append("xhtml:div").attr("style", "width: fit-content;").attr("xmlns", "http://www.w3.org/1999/xhtml").html(a).node().getBoundingClientRect();
3064
+ if (i.attr("height", Math.round(o.height)).attr("width", Math.round(o.width)), t.class === "noteText") {
3064
3065
  let n = e.node().firstChild;
3065
3066
  n.setAttribute("height", o.height + 2 * t.textMargin);
3066
- let i = n.getBBox();
3067
- r.attr("x", Math.round(i.x + i.width / 2 - o.width / 2)).attr("y", Math.round(i.y + i.height / 2 - o.height / 2));
3067
+ let r = n.getBBox();
3068
+ i.attr("x", Math.round(r.x + r.width / 2 - o.width / 2)).attr("y", Math.round(r.y + r.height / 2 - o.height / 2));
3068
3069
  } else if (n) {
3069
- let { startx: e, stopx: i, starty: a } = n;
3070
- if (e > i) {
3070
+ let { startx: e, stopx: r, starty: a } = n;
3071
+ if (e > r) {
3071
3072
  let t = e;
3072
- e = i, i = t;
3073
+ e = r, r = t;
3073
3074
  }
3074
- r.attr("x", Math.round(e + Math.abs(e - i) / 2 - o.width / 2)), t.class === "loopText" ? r.attr("y", Math.round(a)) : r.attr("y", Math.round(a - o.height));
3075
+ i.attr("x", Math.round(e + Math.abs(e - r) / 2 - o.width / 2)), t.class === "loopText" ? i.attr("y", Math.round(a)) : i.attr("y", Math.round(a - o.height));
3075
3076
  }
3076
- return [r];
3077
- }, "drawKatex"), G = /* @__PURE__ */ t(function(e, n) {
3078
- let r = 0, i = 0, a = n.text.split(h.lineBreakRegex), [o, s] = C(n.fontSize), c = [], l = 0, u = /* @__PURE__ */ t(() => n.y, "yfunc");
3079
- if (n.valign !== void 0 && n.textMargin !== void 0 && n.textMargin > 0) switch (n.valign) {
3077
+ return [i];
3078
+ }, "drawKatex"), G = /* @__PURE__ */ b(function(e, t) {
3079
+ let n = 0, r = 0, i = t.text.split(m.lineBreakRegex), [a, o] = C(t.fontSize), s = [], c = 0, l = /* @__PURE__ */ b(() => t.y, "yfunc");
3080
+ if (t.valign !== void 0 && t.textMargin !== void 0 && t.textMargin > 0) switch (t.valign) {
3080
3081
  case "top":
3081
3082
  case "start":
3082
- u = /* @__PURE__ */ t(() => Math.round(n.y + n.textMargin), "yfunc");
3083
+ l = /* @__PURE__ */ b(() => Math.round(t.y + t.textMargin), "yfunc");
3083
3084
  break;
3084
3085
  case "middle":
3085
3086
  case "center":
3086
- u = /* @__PURE__ */ t(() => Math.round(n.y + (r + i + n.textMargin) / 2), "yfunc");
3087
+ l = /* @__PURE__ */ b(() => Math.round(t.y + (n + r + t.textMargin) / 2), "yfunc");
3087
3088
  break;
3088
3089
  case "bottom":
3089
3090
  case "end":
3090
- u = /* @__PURE__ */ t(() => Math.round(n.y + (r + i + 2 * n.textMargin) - n.textMargin), "yfunc");
3091
+ l = /* @__PURE__ */ b(() => Math.round(t.y + (n + r + 2 * t.textMargin) - t.textMargin), "yfunc");
3091
3092
  break;
3092
3093
  }
3093
- if (n.anchor !== void 0 && n.textMargin !== void 0 && n.width !== void 0) switch (n.anchor) {
3094
+ if (t.anchor !== void 0 && t.textMargin !== void 0 && t.width !== void 0) switch (t.anchor) {
3094
3095
  case "left":
3095
3096
  case "start":
3096
- n.x = Math.round(n.x + n.textMargin), n.anchor = "start", n.dominantBaseline = "middle", n.alignmentBaseline = "middle";
3097
+ t.x = Math.round(t.x + t.textMargin), t.anchor = "start", t.dominantBaseline = "middle", t.alignmentBaseline = "middle";
3097
3098
  break;
3098
3099
  case "middle":
3099
3100
  case "center":
3100
- n.x = Math.round(n.x + n.width / 2), n.anchor = "middle", n.dominantBaseline = "middle", n.alignmentBaseline = "middle";
3101
+ t.x = Math.round(t.x + t.width / 2), t.anchor = "middle", t.dominantBaseline = "middle", t.alignmentBaseline = "middle";
3101
3102
  break;
3102
3103
  case "right":
3103
3104
  case "end":
3104
- n.x = Math.round(n.x + n.width - n.textMargin), n.anchor = "end", n.dominantBaseline = "middle", n.alignmentBaseline = "middle";
3105
+ t.x = Math.round(t.x + t.width - t.textMargin), t.anchor = "end", t.dominantBaseline = "middle", t.alignmentBaseline = "middle";
3105
3106
  break;
3106
3107
  }
3107
- for (let [t, d] of a.entries()) {
3108
- n.textMargin !== void 0 && n.textMargin === 0 && o !== void 0 && (l = t * o);
3109
- let a = e.append("text");
3110
- a.attr("x", n.x), a.attr("y", u()), n.anchor !== void 0 && a.attr("text-anchor", n.anchor).attr("dominant-baseline", n.dominantBaseline).attr("alignment-baseline", n.alignmentBaseline), n.fontFamily !== void 0 && a.style("font-family", n.fontFamily), s !== void 0 && a.style("font-size", s), n.fontWeight !== void 0 && a.style("font-weight", n.fontWeight), n.fill !== void 0 && a.attr("fill", n.fill), n.class !== void 0 && a.attr("class", n.class), n.dy === void 0 ? l !== 0 && a.attr("dy", l) : a.attr("dy", n.dy);
3108
+ for (let [u, d] of i.entries()) {
3109
+ t.textMargin !== void 0 && t.textMargin === 0 && a !== void 0 && (c = u * a);
3110
+ let i = e.append("text");
3111
+ i.attr("x", t.x), i.attr("y", l()), t.anchor !== void 0 && i.attr("text-anchor", t.anchor).attr("dominant-baseline", t.dominantBaseline).attr("alignment-baseline", t.alignmentBaseline), t.fontFamily !== void 0 && i.style("font-family", t.fontFamily), o !== void 0 && i.style("font-size", o), t.fontWeight !== void 0 && i.style("font-weight", t.fontWeight), t.fill !== void 0 && i.attr("fill", t.fill), t.class !== void 0 && i.attr("class", t.class), t.dy === void 0 ? c !== 0 && i.attr("dy", c) : i.attr("dy", t.dy);
3111
3112
  let f = d || "​";
3112
- if (n.tspan) {
3113
- let e = a.append("tspan");
3114
- e.attr("x", n.x), n.fill !== void 0 && e.attr("fill", n.fill), e.text(f);
3115
- } else a.text(f);
3116
- n.valign !== void 0 && n.textMargin !== void 0 && n.textMargin > 0 && (i += (a._groups || a)[0][0].getBBox().height, r = i), c.push(a);
3113
+ if (t.tspan) {
3114
+ let e = i.append("tspan");
3115
+ e.attr("x", t.x), t.fill !== void 0 && e.attr("fill", t.fill), e.text(f);
3116
+ } else i.text(f);
3117
+ t.valign !== void 0 && t.textMargin !== void 0 && t.textMargin > 0 && (r += (i._groups || i)[0][0].getBBox().height, n = r), s.push(i);
3117
3118
  }
3118
- return c;
3119
- }, "drawText"), se = /* @__PURE__ */ t(function(e, n) {
3120
- function r(e, t, n, r, i) {
3119
+ return s;
3120
+ }, "drawText"), se = /* @__PURE__ */ b(function(e, t) {
3121
+ function n(e, t, n, r, i) {
3121
3122
  return e + "," + t + " " + (e + n) + "," + t + " " + (e + n) + "," + (t + r - i) + " " + (e + n - i * 1.2) + "," + (t + r) + " " + e + "," + (t + r);
3122
3123
  }
3123
- t(r, "genPoints");
3124
- let i = e.append("polygon");
3125
- return i.attr("points", r(n.x, n.y, n.width, n.height, 7)), i.attr("class", "labelBox"), n.y += n.height / 2, G(e, n), i;
3126
- }, "drawLabel"), K = -1, ce = /* @__PURE__ */ t((e, t, n, r) => {
3124
+ b(n, "genPoints");
3125
+ let r = e.append("polygon");
3126
+ return r.attr("points", n(t.x, t.y, t.width, t.height, 7)), r.attr("class", "labelBox"), t.y += t.height / 2, G(e, t), r;
3127
+ }, "drawLabel"), K = -1, ce = /* @__PURE__ */ b((e, t, n, r) => {
3127
3128
  e.select && n.forEach((n) => {
3128
3129
  let i = t.get(n), a = e.select("#actor" + i.actorCnt);
3129
3130
  !r.mirrorActors && i.stopy ? a.attr("y2", i.stopy + i.height / 2) : r.mirrorActors && a.attr("y2", i.stopy);
3130
3131
  });
3131
- }, "fixLifeLineHeights"), le = /* @__PURE__ */ t(function(e, t, n, i, a) {
3132
- 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();
3132
+ }, "fixLifeLineHeights"), le = /* @__PURE__ */ b(function(e, t, r, i, a) {
3133
+ let o = i ? t.stopy : t.starty, s = t.x + t.width / 2, c = o + t.height, { look: l, theme: u, themeVariables: d } = r, { bkgColorArray: f, borderColorArray: p } = d, m = e.append("g").lower();
3133
3134
  var h = m;
3134
- 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"));
3135
+ i || (K++, Object.keys(t.links || {}).length && !r.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"));
3135
3136
  let g = j();
3136
3137
  var _ = "actor";
3137
3138
  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);
@@ -3140,17 +3141,17 @@ var F = P, I = {
3140
3141
  let e = t.properties.icon.trim();
3141
3142
  e.charAt(0) === "@" ? A(h, g.x + g.width - 20, g.y + 10, e.substr(1)) : O(h, g.x + g.width - 20, g.y + 10, e);
3142
3143
  }
3143
- 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);
3144
+ i || (h.attr("data-et", "participant"), h.attr("data-type", "participant"), h.attr("data-id", t.name)), Y(r, n(t.description))(t.description, h, g.x, g.y, g.width, g.height, { class: `actor ${re}` }, r);
3144
3145
  let b = t.height;
3145
3146
  if (v.node) {
3146
3147
  let e = v.node().getBBox();
3147
3148
  t.height = e.height, b = e.height;
3148
3149
  }
3149
3150
  return b;
3150
- }, "drawActorTypeParticipant"), ue = /* @__PURE__ */ t(function(e, t, n, i, a) {
3151
- 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();
3151
+ }, "drawActorTypeParticipant"), ue = /* @__PURE__ */ b(function(e, t, r, i, a) {
3152
+ let o = i ? t.stopy : t.starty, s = t.x + t.width / 2, c = o + t.height, { look: l, theme: u, themeVariables: d } = r, { bkgColorArray: f, borderColorArray: p } = d, m = e.append("g").lower();
3152
3153
  var h = m;
3153
- 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"));
3154
+ i || (K++, Object.keys(t.links || {}).length && !r.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"));
3154
3155
  let g = j();
3155
3156
  var _ = "actor";
3156
3157
  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;
@@ -3166,16 +3167,16 @@ var F = P, I = {
3166
3167
  let e = t.properties.icon.trim();
3167
3168
  e.charAt(0) === "@" ? A(h, g.x + g.width - 20, g.y + 10, e.substr(1)) : O(h, g.x + g.width - 20, g.y + 10, e);
3168
3169
  }
3169
- Y(n, r(t.description))(t.description, h, g.x - 6, g.y + 6, g.width, g.height, { class: `actor ${re}` }, n);
3170
+ Y(r, n(t.description))(t.description, h, g.x - 6, g.y + 6, g.width, g.height, { class: `actor ${re}` }, r);
3170
3171
  let S = t.height;
3171
3172
  if (y.node) {
3172
3173
  let e = y.node().getBBox();
3173
3174
  t.height = e.height, S = e.height;
3174
3175
  }
3175
3176
  return i || (h.attr("data-et", "participant"), h.attr("data-type", "collections"), h.attr("data-id", t.name)), S;
3176
- }, "drawActorTypeCollections"), de = /* @__PURE__ */ t(function(e, t, n, i, a) {
3177
- 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;
3178
- 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"));
3177
+ }, "drawActorTypeCollections"), de = /* @__PURE__ */ b(function(e, t, r, i, a) {
3178
+ let o = i ? t.stopy : t.starty, s = t.x + t.width / 2, c = o + t.height, { look: l, theme: u, themeVariables: d } = r, { bkgColorArray: f, borderColorArray: p } = d, m = e.append("g").lower(), h = m;
3179
+ i || (K++, Object.keys(t.links || {}).length && !r.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"));
3179
3180
  let g = j(), _ = "actor";
3180
3181
  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;
3181
3182
  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}
@@ -3191,15 +3192,15 @@ var F = P, I = {
3191
3192
  let e = t.properties.icon.trim(), n = g.x + g.width - 20, r = g.y + 10;
3192
3193
  e.charAt(0) === "@" ? A(h, n, r, e.substr(1)) : O(h, n, r, e);
3193
3194
  }
3194
- Y(n, r(t.description))(t.description, h, g.x, g.y, g.width, g.height, { class: `actor ${re}` }, n);
3195
+ Y(r, n(t.description))(t.description, h, g.x, g.y, g.width, g.height, { class: `actor ${re}` }, r);
3195
3196
  let w = t.height, T = b.select("path:last-child");
3196
3197
  if (T.node()) {
3197
3198
  let e = T.node().getBBox();
3198
3199
  t.height = e.height, w = e.height;
3199
3200
  }
3200
3201
  return i || (h.attr("data-et", "participant"), h.attr("data-type", "queue"), h.attr("data-id", t.name)), w;
3201
- }, "drawActorTypeQueue"), fe = /* @__PURE__ */ t(function(e, t, n, i, a, o) {
3202
- 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();
3202
+ }, "drawActorTypeQueue"), fe = /* @__PURE__ */ b(function(e, t, r, i, a, o) {
3203
+ let s = i ? t.stopy : t.starty, c = t.x + t.width / 2, l = s + 75, { look: u, theme: d, themeVariables: f } = r, { bkgColorArray: p, borderColorArray: m, actorBorder: h, actorBkg: g } = f, _ = e.append("g").lower();
3203
3204
  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);
3204
3205
  let v = e.append("g"), y = H;
3205
3206
  i ? y += ` ${V}` : y += ` ${B}`, v.attr("class", y), v.attr("name", t.name);
@@ -3208,19 +3209,19 @@ var F = P, I = {
3208
3209
  let x = t.x + t.width / 2, S = s + 32;
3209
3210
  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})`);
3210
3211
  let C = o.get(t.name) ?? 0;
3211
- 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;
3212
- }, "drawActorTypeControl"), pe = /* @__PURE__ */ t(function(e, t, n, i, a) {
3213
- 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";
3212
+ 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 * (r?.sequence?.labelBoxHeight ?? 0), Y(r, n(t.description))(t.description, v, b.x, b.y + 22 + (i ? 5 : 12), b.width, b.height, { class: `actor ${H}` }, r), i || (v.attr("data-et", "participant"), v.attr("data-type", "control"), v.attr("data-id", t.name)), t.height;
3213
+ }, "drawActorTypeControl"), pe = /* @__PURE__ */ b(function(e, t, r, i, a) {
3214
+ let o = i ? t.stopy : t.starty, s = t.x + t.width / 2, c = o + 75, { look: l, theme: u, themeVariables: d } = r, { bkgColorArray: f, borderColorArray: p } = d, m = e.append("g").lower(), h = e.append("g"), g = "actor";
3214
3215
  i ? g += ` ${V}` : g += ` ${B}`, h.attr("class", g), h.attr("name", t.name);
3215
3216
  let _ = j();
3216
3217
  _.x = t.x, _.y = o, _.fill = "#eaeaea", _.width = t.width, _.height = t.height, _.class = "actor";
3217
3218
  let v = t.x + t.width / 2, y = o + (i ? 10 : 25);
3218
3219
  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)");
3219
3220
  let b = a.get(t.name) ?? 0;
3220
- 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, ${22 / 2 - 5})`), h.attr("data-et", "participant"), h.attr("data-type", "entity"), h.attr("data-id", t.name)), t.height;
3221
- }, "drawActorTypeEntity"), me = /* @__PURE__ */ t(function(e, t, n, i, a) {
3222
- 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;
3223
- 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"));
3221
+ return U.has(u) && (h.style("stroke", p[b % p.length]), h.style("fill", f[b % p.length])), t.height = h.node().getBBox().height + (r?.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(r, n(t.description))(t.description, h, _.x, _.y + (i ? 15 : 30), _.width, _.height, { class: `actor ${H}` }, r), i ? h.attr("transform", "translate(0, 22)") : (h.attr("transform", `translate(0, ${22 / 2 - 5})`), h.attr("data-et", "participant"), h.attr("data-type", "entity"), h.attr("data-id", t.name)), t.height;
3222
+ }, "drawActorTypeEntity"), me = /* @__PURE__ */ b(function(e, t, r, i, a) {
3223
+ let o = i ? t.stopy : t.starty, s = t.x + t.width / 2, c = o + t.height + 2 * r.boxTextMargin, { theme: l, themeVariables: u, look: d } = r, { bkgColorArray: f, borderColorArray: p, actorBorder: m } = u, h = e.append("g").lower(), g = h;
3224
+ i || (K++, Object.keys(t.links || {}).length && !r.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"));
3224
3225
  let _ = j(), v = "actor";
3225
3226
  t.properties?.class ? v = t.properties.class : _.fill = "#eaeaea", i ? v += ` ${V}` : v += ` ${B}`, _.x = t.x, _.y = o, _.width = t.width, _.height = t.height, _.class = v, _.name = t.name, _.x = t.x, _.y = o;
3226
3227
  let y = _.width / 3, b = _.width / 3, x = y / 2, S = x / (2.5 + y / 50), C = g.append("g");
@@ -3235,20 +3236,20 @@ var F = P, I = {
3235
3236
  `;
3236
3237
  C.append("path").attr("d", w), d === "neo" && C.attr("filter", "url(#drop-shadow)");
3237
3238
  let T = a.get(t.name) ?? 0;
3238
- 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);
3239
+ 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(r, n(t.description))(t.description, g, _.x, _.y + 35, _.width, _.height, { class: `actor ${re}` }, r);
3239
3240
  let E = C.select("path:last-child");
3240
- 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;
3241
- }, "drawActorTypeDatabase"), he = /* @__PURE__ */ t(function(e, t, n, i, a) {
3242
- 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;
3241
+ return E.node() && (t.height = E.node().getBBox().height + (r.sequence.labelBoxHeight ?? 0)), i || (g.attr("data-et", "participant"), g.attr("data-type", "database"), g.attr("data-id", t.name)), t.height;
3242
+ }, "drawActorTypeDatabase"), he = /* @__PURE__ */ b(function(e, t, r, i, a) {
3243
+ 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 } = r, { bkgColorArray: p, borderColorArray: m, actorBorder: h } = f;
3243
3244
  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);
3244
3245
  let g = e.append("g"), _ = H;
3245
3246
  i ? _ += ` ${V}` : _ += ` ${B}`, g.attr("class", _), g.attr("name", t.name);
3246
3247
  let v = j();
3247
3248
  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 - 22 * 2.5).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 - 22 * 2.5).attr("y1", o + 2).attr("x2", t.x + t.width / 2 - 22 * 2.5).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)");
3248
3249
  let y = a.get(t.name) ?? 0;
3249
- 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;
3250
- }, "drawActorTypeBoundary"), ge = /* @__PURE__ */ t(function(e, t, n, i, a) {
3251
- 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();
3250
+ 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 + (r.sequence.labelBoxHeight ?? 0), Y(r, n(t.description))(t.description, g, v.x, v.y + 15, v.width, v.height, { class: `actor ${H}` }, r), 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;
3251
+ }, "drawActorTypeBoundary"), ge = /* @__PURE__ */ b(function(e, t, r, i, a) {
3252
+ let o = i ? t.stopy : t.starty, s = t.x + t.width / 2, c = o + 80, { look: l, theme: u, themeVariables: d } = r, { bkgColorArray: f, borderColorArray: p, actorBorder: m } = d, h = e.append("g").lower();
3252
3253
  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);
3253
3254
  let g = e.append("g"), _ = H;
3254
3255
  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);
@@ -3259,8 +3260,8 @@ var F = P, I = {
3259
3260
  let x = j();
3260
3261
  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;
3261
3262
  let S = a.get(t.name) ?? 0;
3262
- 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;
3263
- }, "drawActorTypeActor"), _e = /* @__PURE__ */ t(async function(e, t, n, r, i, a, o) {
3263
+ return U.has(u) ? (g.style("stroke", p[S % p.length]), g.style("fill", f[S % p.length])) : g.style("stroke", m), Y(r, n(t.description))(t.description, g, x.x, y + 35 * v - (l === "neo" ? 10 : 0), x.width, x.height, { class: `actor ${H}` }, r), t.height;
3264
+ }, "drawActorTypeActor"), _e = /* @__PURE__ */ b(async function(e, t, n, r, i, a, o) {
3264
3265
  let s = o ?? new Map([...a.db.getActors().values()].map((e, t) => [e.name, t]));
3265
3266
  switch (t.type) {
3266
3267
  case "actor": return await ge(e, t, n, r, s);
@@ -3272,54 +3273,54 @@ var F = P, I = {
3272
3273
  case "collections": return await ue(e, t, n, r, s);
3273
3274
  case "queue": return await de(e, t, n, r, s);
3274
3275
  }
3275
- }, "drawActor"), ve = /* @__PURE__ */ t(function(e, t, n) {
3276
+ }, "drawActor"), ve = /* @__PURE__ */ b(function(e, t, n) {
3276
3277
  let r = e.append("g");
3277
3278
  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();
3278
- }, "drawBox"), ye = /* @__PURE__ */ t(function(e) {
3279
+ }, "drawBox"), ye = /* @__PURE__ */ b(function(e) {
3279
3280
  return e.append("g");
3280
- }, "anchorElement"), be = /* @__PURE__ */ t(function(e, t, n, r, i, a, o) {
3281
+ }, "anchorElement"), be = /* @__PURE__ */ b(function(e, t, n, r, i, a, o) {
3281
3282
  let { theme: s, themeVariables: c } = r, { bkgColorArray: l, borderColorArray: u, mainBkg: d } = c, f = j(), p = t.anchored, m = t.actor;
3282
3283
  f.x = t.startx, f.y = t.starty, f.class = "activation" + i % 3, f.width = t.stopx - t.startx, f.height = n - t.starty;
3283
3284
  let h = W(p, f), g = (o ?? new Map([...a.db.getActors().values()].map((e, t) => [e.name, t]))).get(m) ?? 0;
3284
3285
  U.has(s) && (h.style("stroke", u[g % u.length]), h.style("fill", l[g % u.length] ?? d));
3285
- }, "drawActivation"), xe = /* @__PURE__ */ t(async function(e, n, i, a, o) {
3286
- let { boxMargin: s, boxTextMargin: c, labelBoxHeight: l, labelBoxWidth: u, messageFontFamily: d, messageFontSize: f, messageFontWeight: p } = a, m = e.append("g").attr("data-et", "control-structure").attr("data-id", "i" + o.id), h = /* @__PURE__ */ t(function(e, t, n, r) {
3287
- return m.append("line").attr("x1", e).attr("y1", t).attr("x2", n).attr("y2", r).attr("class", "loopLine");
3286
+ }, "drawActivation"), xe = /* @__PURE__ */ b(async function(e, t, r, i, a) {
3287
+ let { boxMargin: o, boxTextMargin: s, labelBoxHeight: c, labelBoxWidth: l, messageFontFamily: u, messageFontSize: d, messageFontWeight: f } = i, p = e.append("g").attr("data-et", "control-structure").attr("data-id", "i" + a.id), m = /* @__PURE__ */ b(function(e, t, n, r) {
3288
+ return p.append("line").attr("x1", e).attr("y1", t).attr("x2", n).attr("y2", r).attr("class", "loopLine");
3288
3289
  }, "drawLoopLine");
3289
- 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) {
3290
- h(n.startx, e.y, n.stopx, e.y).style("stroke-dasharray", "3, 3");
3290
+ m(t.startx, t.starty, t.stopx, t.starty), m(t.stopx, t.starty, t.stopx, t.stopy), m(t.startx, t.stopy, t.stopx, t.stopy), m(t.startx, t.starty, t.startx, t.stopy), t.sections !== void 0 && t.sections.forEach(function(e) {
3291
+ m(t.startx, e.y, t.stopx, e.y).style("stroke-dasharray", "3, 3");
3291
3292
  });
3292
- let g = D();
3293
- 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;
3294
- let _ = r(g.text) ? await oe(m, g, n) : G(m, g);
3295
- if (n.sectionTitles !== void 0) {
3296
- for (let [e, t] of Object.entries(n.sectionTitles)) if (t.message) {
3297
- 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);
3298
- let i = Math.round(_.map((e) => (e._groups || e)[0][0].getBBox().height).reduce((e, t) => e + t));
3299
- n.sections[e].height += i - (s + c);
3293
+ let h = D();
3294
+ h.text = r, h.x = t.startx, h.y = t.starty, h.fontFamily = u, h.fontSize = d, h.fontWeight = f, h.anchor = "middle", h.valign = "middle", h.tspan = !1, h.width = Math.max(l ?? 0, 50), h.height = c + (i.look === "neo" ? 15 : 0) || 20, h.textMargin = s, h.class = "labelText", se(p, h), h = ke(), h.text = t.title, h.x = t.startx + l / 2 + (t.stopx - t.startx) / 2, h.y = t.starty + o + s, h.anchor = "middle", h.valign = "middle", h.textMargin = s, h.class = "loopText", h.fontFamily = u, h.fontSize = d, h.fontWeight = f, h.wrap = !0;
3295
+ let g = n(h.text) ? await oe(p, h, t) : G(p, h);
3296
+ if (t.sectionTitles !== void 0) {
3297
+ for (let [e, r] of Object.entries(t.sectionTitles)) if (r.message) {
3298
+ h.text = r.message, h.x = t.startx + (t.stopx - t.startx) / 2, h.y = t.sections[e].y + o + s, h.class = "sectionTitle", h.anchor = "middle", h.valign = "middle", h.tspan = !1, h.fontFamily = u, h.fontSize = d, h.fontWeight = f, h.wrap = t.wrap, n(h.text) ? (t.starty = t.sections[e].y, await oe(p, h, t)) : G(p, h);
3299
+ let i = Math.round(g.map((e) => (e._groups || e)[0][0].getBBox().height).reduce((e, t) => e + t));
3300
+ t.sections[e].height += i - (o + s);
3300
3301
  }
3301
3302
  }
3302
- return n.height = Math.round(n.stopy - n.starty), m;
3303
- }, "drawLoop"), Se = /* @__PURE__ */ t(function(e, t) {
3303
+ return t.height = Math.round(t.stopy - t.starty), p;
3304
+ }, "drawLoop"), Se = /* @__PURE__ */ b(function(e, t) {
3304
3305
  k(e, t);
3305
- }, "drawBackgroundRect"), Ce = /* @__PURE__ */ t(function(e, t) {
3306
+ }, "drawBackgroundRect"), Ce = /* @__PURE__ */ b(function(e, t) {
3306
3307
  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");
3307
- }, "insertDatabaseIcon"), q = /* @__PURE__ */ t(function(e, t) {
3308
+ }, "insertDatabaseIcon"), q = /* @__PURE__ */ b(function(e, t) {
3308
3309
  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");
3309
- }, "insertComputerIcon"), J = /* @__PURE__ */ t(function(e, t) {
3310
+ }, "insertComputerIcon"), J = /* @__PURE__ */ b(function(e, t) {
3310
3311
  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");
3311
- }, "insertClockIcon"), we = /* @__PURE__ */ t(function(e, t) {
3312
+ }, "insertClockIcon"), we = /* @__PURE__ */ b(function(e, t) {
3312
3313
  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");
3313
- }, "insertArrowHead"), Te = /* @__PURE__ */ t(function(e, t) {
3314
+ }, "insertArrowHead"), Te = /* @__PURE__ */ b(function(e, t) {
3314
3315
  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");
3315
- }, "insertArrowFilledHead"), Ee = /* @__PURE__ */ t(function(e, t) {
3316
+ }, "insertArrowFilledHead"), Ee = /* @__PURE__ */ b(function(e, t) {
3316
3317
  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);
3317
- }, "insertSequenceNumber"), De = /* @__PURE__ */ t(function(e, t) {
3318
+ }, "insertSequenceNumber"), De = /* @__PURE__ */ b(function(e, t) {
3318
3319
  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");
3319
- }, "insertArrowCrossHead"), Oe = /* @__PURE__ */ t(function(e, t) {
3320
+ }, "insertArrowCrossHead"), Oe = /* @__PURE__ */ b(function(e, t) {
3320
3321
  let { theme: n } = t;
3321
3322
  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"}`);
3322
- }, "insertDropShadow"), ke = /* @__PURE__ */ t(function() {
3323
+ }, "insertDropShadow"), ke = /* @__PURE__ */ b(function() {
3323
3324
  return {
3324
3325
  x: 0,
3325
3326
  y: 0,
@@ -3334,7 +3335,7 @@ var F = P, I = {
3334
3335
  tspan: !0,
3335
3336
  valign: void 0
3336
3337
  };
3337
- }, "getTextObj"), Ae = /* @__PURE__ */ t(function() {
3338
+ }, "getTextObj"), Ae = /* @__PURE__ */ b(function() {
3338
3339
  return {
3339
3340
  x: 0,
3340
3341
  y: 0,
@@ -3347,57 +3348,57 @@ var F = P, I = {
3347
3348
  ry: 0
3348
3349
  };
3349
3350
  }, "getNoteRect"), Y = /* @__PURE__ */ (function() {
3350
- function e(e, t, n, r, i, a, s) {
3351
- o(t.append("text").attr("x", n + i / 2).attr("y", r + a / 2 + 5).style("text-anchor", "middle").text(e), s);
3351
+ function e(e, t, n, r, i, o, s) {
3352
+ a(t.append("text").attr("x", n + i / 2).attr("y", r + o / 2 + 5).style("text-anchor", "middle").text(e), s);
3352
3353
  }
3353
- t(e, "byText");
3354
- function n(e, t, n, r, i, a, s, c) {
3355
- let { actorFontSize: l, actorFontFamily: u, actorFontWeight: d } = c, [f, p] = C(l), m = e.split(h.lineBreakRegex);
3356
- for (let e = 0; e < m.length; e++) {
3357
- 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);
3358
- 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);
3354
+ b(e, "byText");
3355
+ function t(e, t, n, r, i, o, s, c) {
3356
+ let { actorFontSize: l, actorFontFamily: u, actorFontWeight: d } = c, [f, p] = C(l), h = e.split(m.lineBreakRegex);
3357
+ for (let e = 0; e < h.length; e++) {
3358
+ let c = e * f - f * (h.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);
3359
+ l.append("tspan").attr("x", n + i / 2).attr("dy", c).text(h[e]), l.attr("y", r + o / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), a(l, s);
3359
3360
  }
3360
3361
  }
3361
- t(n, "byTspan");
3362
- function r(e, t, r, i, a, s, c, l) {
3363
- let u = t.append("switch"), d = u.append("foreignObject").attr("x", r).attr("y", i).attr("width", a).attr("height", s).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
3364
- 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);
3362
+ b(t, "byTspan");
3363
+ function n(e, n, r, i, o, s, c, l) {
3364
+ let u = n.append("switch"), d = u.append("foreignObject").attr("x", r).attr("y", i).attr("width", o).attr("height", s).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
3365
+ d.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(e), t(e, u, r, i, o, s, c, l), a(d, c);
3365
3366
  }
3366
- t(r, "byFo");
3367
- async function a(e, t, r, a, s, c, l, u) {
3368
- 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%");
3369
- 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);
3367
+ b(n, "byFo");
3368
+ async function i(e, n, i, o, s, c, l, d) {
3369
+ let p = await f(e, u()), m = n.append("switch"), h = m.append("foreignObject").attr("x", i + s / 2 - p.width / 2).attr("y", o + c / 2 - p.height / 2).attr("width", p.width).attr("height", p.height).append("xhtml:div").style("height", "100%").style("width", "100%");
3370
+ h.append("div").style("text-align", "center").style("vertical-align", "middle").html(await r(e, u())), t(e, m, i, o, s, c, l, d), a(h, l);
3370
3371
  }
3371
- t(a, "byKatex");
3372
- function o(e, t) {
3372
+ b(i, "byKatex");
3373
+ function a(e, t) {
3373
3374
  for (let n in t) t.hasOwnProperty(n) && e.attr(n, t[n]);
3374
3375
  }
3375
- return t(o, "_setTextAttrs"), function(t, i = !1) {
3376
- return i ? a : t.textPlacement === "fo" ? r : t.textPlacement === "old" ? e : n;
3376
+ return b(a, "_setTextAttrs"), function(r, a = !1) {
3377
+ return a ? i : r.textPlacement === "fo" ? n : r.textPlacement === "old" ? e : t;
3377
3378
  };
3378
3379
  })(), je = /* @__PURE__ */ (function() {
3379
- function e(e, t, n, r, a, o, s) {
3380
- i(t.append("text").attr("x", n).attr("y", r).style("text-anchor", "start").text(e), s);
3380
+ function e(e, t, n, i, a, o, s) {
3381
+ r(t.append("text").attr("x", n).attr("y", i).style("text-anchor", "start").text(e), s);
3381
3382
  }
3382
- t(e, "byText");
3383
- function n(e, t, n, r, a, o, s, c) {
3384
- let { actorFontSize: l, actorFontFamily: u, actorFontWeight: d } = c, f = e.split(h.lineBreakRegex);
3383
+ b(e, "byText");
3384
+ function t(e, t, n, i, a, o, s, c) {
3385
+ let { actorFontSize: l, actorFontFamily: u, actorFontWeight: d } = c, f = e.split(m.lineBreakRegex);
3385
3386
  for (let e = 0; e < f.length; e++) {
3386
- 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);
3387
- 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);
3387
+ let a = e * l - l * (f.length - 1) / 2, c = t.append("text").attr("x", n).attr("y", i).style("text-anchor", "start").style("font-size", l).style("font-weight", d).style("font-family", u);
3388
+ c.append("tspan").attr("x", n).attr("dy", a).text(f[e]), c.attr("y", i + o / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), r(c, s);
3388
3389
  }
3389
3390
  }
3390
- t(n, "byTspan");
3391
- function r(e, t, r, a, o, s, c, l) {
3392
- let u = t.append("switch"), d = u.append("foreignObject").attr("x", r).attr("y", a).attr("width", o).attr("height", s).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
3393
- d.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(e), n(e, u, r, a, o, s, c, l), i(d, c);
3391
+ b(t, "byTspan");
3392
+ function n(e, n, i, a, o, s, c, l) {
3393
+ let u = n.append("switch"), d = u.append("foreignObject").attr("x", i).attr("y", a).attr("width", o).attr("height", s).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
3394
+ d.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(e), t(e, u, i, a, o, s, c, l), r(d, c);
3394
3395
  }
3395
- t(r, "byFo");
3396
- function i(e, t) {
3396
+ b(n, "byFo");
3397
+ function r(e, t) {
3397
3398
  for (let n in t) t.hasOwnProperty(n) && e.attr(n, t[n]);
3398
3399
  }
3399
- return t(i, "_setTextAttrs"), function(t) {
3400
- return t.textPlacement === "fo" ? r : t.textPlacement === "old" ? e : n;
3400
+ return b(r, "_setTextAttrs"), function(r) {
3401
+ return r.textPlacement === "fo" ? n : r.textPlacement === "old" ? e : t;
3401
3402
  };
3402
3403
  })(), X = {
3403
3404
  drawRect: W,
@@ -3422,16 +3423,16 @@ var F = P, I = {
3422
3423
  fixLifeLineHeights: ce,
3423
3424
  sanitizeUrl: N.sanitizeUrl,
3424
3425
  insertDropShadow: Oe,
3425
- insertSolidTopArrowHead: /* @__PURE__ */ t(function(e, t) {
3426
+ insertSolidTopArrowHead: /* @__PURE__ */ b(function(e, t) {
3426
3427
  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");
3427
3428
  }, "insertSolidTopArrowHead"),
3428
- insertSolidBottomArrowHead: /* @__PURE__ */ t(function(e, t) {
3429
+ insertSolidBottomArrowHead: /* @__PURE__ */ b(function(e, t) {
3429
3430
  e.append("defs").append("marker").attr("id", t + "-solidBottomArrowHead").attr("refX", 7.9).attr("refY", .75).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto-start-reverse").append("path").attr("d", "M 0 0 L 10 0 L 0 8 z");
3430
3431
  }, "insertSolidBottomArrowHead"),
3431
- insertStickTopArrowHead: /* @__PURE__ */ t(function(e, t) {
3432
+ insertStickTopArrowHead: /* @__PURE__ */ b(function(e, t) {
3432
3433
  e.append("defs").append("marker").attr("id", t + "-stickTopArrowHead").attr("refX", 7.5).attr("refY", 7).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto-start-reverse").append("path").attr("d", "M 0 0 L 7 7").attr("stroke", "black").attr("stroke-width", 1.5).attr("fill", "none");
3433
3434
  }, "insertStickTopArrowHead"),
3434
- insertStickBottomArrowHead: /* @__PURE__ */ t(function(e, t) {
3435
+ insertStickBottomArrowHead: /* @__PURE__ */ b(function(e, t) {
3435
3436
  e.append("defs").append("marker").attr("id", t + "-stickBottomArrowHead").attr("refX", 7.5).attr("refY", 0).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto-start-reverse").append("path").attr("d", "M 0 7 L 7 0").attr("stroke", "black").attr("stroke-width", 1.5).attr("fill", "none");
3436
3437
  }, "insertStickBottomArrowHead")
3437
3438
  }, Z = {}, Q = {
@@ -3445,37 +3446,37 @@ var F = P, I = {
3445
3446
  sequenceItems: [],
3446
3447
  activations: [],
3447
3448
  models: {
3448
- getHeight: /* @__PURE__ */ t(function() {
3449
+ getHeight: /* @__PURE__ */ b(function() {
3449
3450
  return Math.max.apply(null, this.actors.length === 0 ? [0] : this.actors.map((e) => e.height || 0)) + (this.loops.length === 0 ? 0 : this.loops.map((e) => e.height || 0).reduce((e, t) => e + t)) + (this.messages.length === 0 ? 0 : this.messages.map((e) => e.height || 0).reduce((e, t) => e + t)) + (this.notes.length === 0 ? 0 : this.notes.map((e) => e.height || 0).reduce((e, t) => e + t));
3450
3451
  }, "getHeight"),
3451
- clear: /* @__PURE__ */ t(function() {
3452
+ clear: /* @__PURE__ */ b(function() {
3452
3453
  this.actors = [], this.boxes = [], this.loops = [], this.messages = [], this.notes = [];
3453
3454
  }, "clear"),
3454
- addBox: /* @__PURE__ */ t(function(e) {
3455
+ addBox: /* @__PURE__ */ b(function(e) {
3455
3456
  this.boxes.push(e);
3456
3457
  }, "addBox"),
3457
- addActor: /* @__PURE__ */ t(function(e) {
3458
+ addActor: /* @__PURE__ */ b(function(e) {
3458
3459
  this.actors.push(e);
3459
3460
  }, "addActor"),
3460
- addLoop: /* @__PURE__ */ t(function(e) {
3461
+ addLoop: /* @__PURE__ */ b(function(e) {
3461
3462
  this.loops.push(e);
3462
3463
  }, "addLoop"),
3463
- addMessage: /* @__PURE__ */ t(function(e) {
3464
+ addMessage: /* @__PURE__ */ b(function(e) {
3464
3465
  this.messages.push(e);
3465
3466
  }, "addMessage"),
3466
- addNote: /* @__PURE__ */ t(function(e) {
3467
+ addNote: /* @__PURE__ */ b(function(e) {
3467
3468
  this.notes.push(e);
3468
3469
  }, "addNote"),
3469
- lastActor: /* @__PURE__ */ t(function() {
3470
+ lastActor: /* @__PURE__ */ b(function() {
3470
3471
  return this.actors[this.actors.length - 1];
3471
3472
  }, "lastActor"),
3472
- lastLoop: /* @__PURE__ */ t(function() {
3473
+ lastLoop: /* @__PURE__ */ b(function() {
3473
3474
  return this.loops[this.loops.length - 1];
3474
3475
  }, "lastLoop"),
3475
- lastMessage: /* @__PURE__ */ t(function() {
3476
+ lastMessage: /* @__PURE__ */ b(function() {
3476
3477
  return this.messages[this.messages.length - 1];
3477
3478
  }, "lastMessage"),
3478
- lastNote: /* @__PURE__ */ t(function() {
3479
+ lastNote: /* @__PURE__ */ b(function() {
3479
3480
  return this.notes[this.notes.length - 1];
3480
3481
  }, "lastNote"),
3481
3482
  actors: [],
@@ -3484,33 +3485,33 @@ var F = P, I = {
3484
3485
  messages: [],
3485
3486
  notes: []
3486
3487
  },
3487
- init: /* @__PURE__ */ t(function() {
3488
+ init: /* @__PURE__ */ b(function() {
3488
3489
  this.sequenceItems = [], this.activations = [], this.models.clear(), this.data = {
3489
3490
  startx: void 0,
3490
3491
  stopx: void 0,
3491
3492
  starty: void 0,
3492
3493
  stopy: void 0
3493
- }, this.verticalPos = 0, He(v());
3494
+ }, this.verticalPos = 0, He(_());
3494
3495
  }, "init"),
3495
- updateVal: /* @__PURE__ */ t(function(e, t, n, r) {
3496
+ updateVal: /* @__PURE__ */ b(function(e, t, n, r) {
3496
3497
  e[t] === void 0 ? e[t] = n : e[t] = r(n, e[t]);
3497
3498
  }, "updateVal"),
3498
- updateBounds: /* @__PURE__ */ t(function(e, n, r, i) {
3499
- let a = this, o = 0;
3500
- function s(s) {
3501
- return /* @__PURE__ */ t(function(t) {
3502
- o++;
3503
- let c = a.sequenceItems.length - o + 1;
3504
- a.updateVal(t, "starty", n - c * Z.boxMargin, Math.min), a.updateVal(t, "stopy", i + c * Z.boxMargin, Math.max), a.updateVal(Q.data, "startx", e - c * Z.boxMargin, Math.min), a.updateVal(Q.data, "stopx", r + c * Z.boxMargin, Math.max), s !== "activation" && (a.updateVal(t, "startx", e - c * Z.boxMargin, Math.min), a.updateVal(t, "stopx", r + c * Z.boxMargin, Math.max), a.updateVal(Q.data, "starty", n - c * Z.boxMargin, Math.min), a.updateVal(Q.data, "stopy", i + c * Z.boxMargin, Math.max));
3499
+ updateBounds: /* @__PURE__ */ b(function(e, t, n, r) {
3500
+ let i = this, a = 0;
3501
+ function o(o) {
3502
+ return /* @__PURE__ */ b(function(s) {
3503
+ a++;
3504
+ let c = i.sequenceItems.length - a + 1;
3505
+ i.updateVal(s, "starty", t - c * Z.boxMargin, Math.min), i.updateVal(s, "stopy", r + c * Z.boxMargin, Math.max), i.updateVal(Q.data, "startx", e - c * Z.boxMargin, Math.min), i.updateVal(Q.data, "stopx", n + c * Z.boxMargin, Math.max), o !== "activation" && (i.updateVal(s, "startx", e - c * Z.boxMargin, Math.min), i.updateVal(s, "stopx", n + c * Z.boxMargin, Math.max), i.updateVal(Q.data, "starty", t - c * Z.boxMargin, Math.min), i.updateVal(Q.data, "stopy", r + c * Z.boxMargin, Math.max));
3505
3506
  }, "updateItemBounds");
3506
3507
  }
3507
- t(s, "updateFn"), this.sequenceItems.forEach(s()), this.activations.forEach(s("activation"));
3508
+ b(o, "updateFn"), this.sequenceItems.forEach(o()), this.activations.forEach(o("activation"));
3508
3509
  }, "updateBounds"),
3509
- insert: /* @__PURE__ */ t(function(e, t, n, r) {
3510
- let i = h.getMin(e, n), a = h.getMax(e, n), o = h.getMin(t, r), s = h.getMax(t, r);
3510
+ insert: /* @__PURE__ */ b(function(e, t, n, r) {
3511
+ let i = m.getMin(e, n), a = m.getMax(e, n), o = m.getMin(t, r), s = m.getMax(t, r);
3511
3512
  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);
3512
3513
  }, "insert"),
3513
- newActivation: /* @__PURE__ */ t(function(e, t, n) {
3514
+ newActivation: /* @__PURE__ */ b(function(e, t, n) {
3514
3515
  let r = n.get(e.from), i = Ue(e.from).length || 0, a = r.x + r.width / 2 + (i - 1) * Z.activationWidth / 2;
3515
3516
  this.activations.push({
3516
3517
  startx: a,
@@ -3521,13 +3522,13 @@ var F = P, I = {
3521
3522
  anchored: X.anchorElement(t)
3522
3523
  });
3523
3524
  }, "newActivation"),
3524
- endActivation: /* @__PURE__ */ t(function(e) {
3525
+ endActivation: /* @__PURE__ */ b(function(e) {
3525
3526
  let t = this.activations.map(function(e) {
3526
3527
  return e.actor;
3527
3528
  }).lastIndexOf(e.from);
3528
3529
  return this.activations.splice(t, 1)[0];
3529
3530
  }, "endActivation"),
3530
- createLoop: /* @__PURE__ */ t(function(e = {
3531
+ createLoop: /* @__PURE__ */ b(function(e = {
3531
3532
  message: void 0,
3532
3533
  wrap: !1,
3533
3534
  width: void 0
@@ -3544,142 +3545,142 @@ var F = P, I = {
3544
3545
  fill: t
3545
3546
  };
3546
3547
  }, "createLoop"),
3547
- newLoop: /* @__PURE__ */ t(function(e = {
3548
+ newLoop: /* @__PURE__ */ b(function(e = {
3548
3549
  message: void 0,
3549
3550
  wrap: !1,
3550
3551
  width: void 0
3551
3552
  }, t) {
3552
3553
  this.sequenceItems.push(this.createLoop(e, t));
3553
3554
  }, "newLoop"),
3554
- endLoop: /* @__PURE__ */ t(function() {
3555
+ endLoop: /* @__PURE__ */ b(function() {
3555
3556
  return this.sequenceItems.pop();
3556
3557
  }, "endLoop"),
3557
- isLoopOverlap: /* @__PURE__ */ t(function() {
3558
+ isLoopOverlap: /* @__PURE__ */ b(function() {
3558
3559
  return this.sequenceItems.length ? this.sequenceItems[this.sequenceItems.length - 1].overlap : !1;
3559
3560
  }, "isLoopOverlap"),
3560
- addSectionToLoop: /* @__PURE__ */ t(function(e) {
3561
+ addSectionToLoop: /* @__PURE__ */ b(function(e) {
3561
3562
  let t = this.sequenceItems.pop();
3562
3563
  t.sections = t.sections || [], t.sectionTitles = t.sectionTitles || [], t.sections.push({
3563
3564
  y: Q.getVerticalPos(),
3564
3565
  height: 0
3565
3566
  }), t.sectionTitles.push(e), this.sequenceItems.push(t);
3566
3567
  }, "addSectionToLoop"),
3567
- saveVerticalPos: /* @__PURE__ */ t(function() {
3568
+ saveVerticalPos: /* @__PURE__ */ b(function() {
3568
3569
  this.isLoopOverlap() && (this.savedVerticalPos = this.verticalPos);
3569
3570
  }, "saveVerticalPos"),
3570
- resetVerticalPos: /* @__PURE__ */ t(function() {
3571
+ resetVerticalPos: /* @__PURE__ */ b(function() {
3571
3572
  this.isLoopOverlap() && (this.verticalPos = this.savedVerticalPos);
3572
3573
  }, "resetVerticalPos"),
3573
- bumpVerticalPos: /* @__PURE__ */ t(function(e) {
3574
- this.verticalPos += e, this.data.stopy = h.getMax(this.data.stopy, this.verticalPos);
3574
+ bumpVerticalPos: /* @__PURE__ */ b(function(e) {
3575
+ this.verticalPos += e, this.data.stopy = m.getMax(this.data.stopy, this.verticalPos);
3575
3576
  }, "bumpVerticalPos"),
3576
- getVerticalPos: /* @__PURE__ */ t(function() {
3577
+ getVerticalPos: /* @__PURE__ */ b(function() {
3577
3578
  return this.verticalPos;
3578
3579
  }, "getVerticalPos"),
3579
- getBounds: /* @__PURE__ */ t(function() {
3580
+ getBounds: /* @__PURE__ */ b(function() {
3580
3581
  return {
3581
3582
  bounds: this.data,
3582
3583
  models: this.models
3583
3584
  };
3584
3585
  }, "getBounds")
3585
- }, Me = /* @__PURE__ */ t(async function(e, t, n) {
3586
+ }, Me = /* @__PURE__ */ b(async function(e, t, r) {
3586
3587
  Q.bumpVerticalPos(Z.boxMargin), t.height = Z.boxMargin, t.starty = Q.getVerticalPos();
3587
3588
  let i = j();
3588
3589
  i.x = t.startx, i.y = t.starty, i.width = t.width || Z.width, i.class = "note";
3589
3590
  let a = e.append("g");
3590
- a.attr("data-et", "note"), a.attr("data-id", "i" + n);
3591
+ a.attr("data-et", "note"), a.attr("data-id", "i" + r);
3591
3592
  let o = X.drawRect(a, i), s = D();
3592
3593
  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";
3593
- 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));
3594
+ let c = n(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));
3594
3595
  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);
3595
- }, "drawNote"), Ne = /* @__PURE__ */ t(function(e, n, r, i, a, o, s) {
3596
- 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 = e.append("g"), _ = /* @__PURE__ */ t((e, t) => {
3596
+ }, "drawNote"), Ne = /* @__PURE__ */ b(function(e, t, n, r, i, a, o) {
3597
+ let s = r.db.getActors(), c = s.get(t.from), l = s.get(t.to), u = n.sequenceVisible, d = c.x + c.width / 2, f = l.x + l.width / 2, p = d <= f, m = tt(t, r), h = e.append("g"), g = /* @__PURE__ */ b((e, t) => {
3597
3598
  let n = e ? 16.5 : -16.5;
3598
3599
  return t ? -n : n;
3599
- }, "getCircleOffset"), v = /* @__PURE__ */ t((e) => {
3600
- g.append("circle").attr("cx", e).attr("cy", s).attr("r", 5).attr("width", 10).attr("height", 10);
3601
- }, "drawCircle"), { CENTRAL_CONNECTION: y, CENTRAL_CONNECTION_REVERSE: b, CENTRAL_CONNECTION_DUAL: x } = i.db.LINETYPE;
3602
- if (d) switch (n.centralConnection) {
3603
- case y:
3604
- h && (p += _(m, !0));
3600
+ }, "getCircleOffset"), _ = /* @__PURE__ */ b((e) => {
3601
+ h.append("circle").attr("cx", e).attr("cy", o).attr("r", 5).attr("width", 10).attr("height", 10);
3602
+ }, "drawCircle"), { CENTRAL_CONNECTION: v, CENTRAL_CONNECTION_REVERSE: y, CENTRAL_CONNECTION_DUAL: x } = r.db.LINETYPE;
3603
+ if (u) switch (t.centralConnection) {
3604
+ case v:
3605
+ m && (f += g(p, !0));
3605
3606
  break;
3606
- case b:
3607
- h || (f += _(m, !1));
3607
+ case y:
3608
+ m || (d += g(p, !1));
3608
3609
  break;
3609
3610
  case x:
3610
- h ? p += _(m, !0) : f += _(m, !1);
3611
+ m ? f += g(p, !0) : d += g(p, !1);
3611
3612
  break;
3612
3613
  }
3613
- switch (n.centralConnection) {
3614
- case y:
3615
- v(p);
3614
+ switch (t.centralConnection) {
3615
+ case v:
3616
+ _(f);
3616
3617
  break;
3617
- case b:
3618
- v(f);
3618
+ case y:
3619
+ _(d);
3619
3620
  break;
3620
3621
  case x:
3621
- v(f), v(p);
3622
+ _(d), _(f);
3622
3623
  break;
3623
3624
  }
3624
- }, "drawCentralConnection"), Pe = /* @__PURE__ */ t((e) => ({
3625
+ }, "drawCentralConnection"), Pe = /* @__PURE__ */ b((e) => ({
3625
3626
  fontFamily: e.messageFontFamily,
3626
3627
  fontSize: e.messageFontSize,
3627
3628
  fontWeight: e.messageFontWeight
3628
- }), "messageFont"), Fe = /* @__PURE__ */ t((e) => ({
3629
+ }), "messageFont"), Fe = /* @__PURE__ */ b((e) => ({
3629
3630
  fontFamily: e.noteFontFamily,
3630
3631
  fontSize: e.noteFontSize,
3631
3632
  fontWeight: e.noteFontWeight
3632
- }), "noteFont"), Ie = /* @__PURE__ */ t((e) => ({
3633
+ }), "noteFont"), Ie = /* @__PURE__ */ b((e) => ({
3633
3634
  fontFamily: e.actorFontFamily,
3634
3635
  fontSize: e.actorFontSize,
3635
3636
  fontWeight: e.actorFontWeight
3636
3637
  }), "actorFont");
3637
3638
  async function Le(e, t) {
3638
3639
  Q.bumpVerticalPos(10);
3639
- 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));
3640
+ let { startx: r, stopx: i, message: a } = t, o = m.splitBreaks(a).length, s = n(a), c = s ? await f(a, _()) : S.calculateTextDimensions(a, Pe(Z));
3640
3641
  if (!s) {
3641
3642
  let e = c.height / o;
3642
3643
  t.height += e, Q.bumpVerticalPos(e);
3643
3644
  }
3644
3645
  let l, u = c.height - 10, d = c.width;
3645
- if (n === i) {
3646
+ if (r === i) {
3646
3647
  l = Q.getVerticalPos() + u, Z.rightAngles || (u += Z.boxMargin, l = Q.getVerticalPos() + u), u += 30;
3647
- let e = h.getMax(d / 2, Z.width / 2);
3648
- Q.insert(n - e, Q.getVerticalPos() - 10 + u, i + e, Q.getVerticalPos() + 30 + u);
3649
- } else u += Z.boxMargin, l = Q.getVerticalPos() + u, Q.insert(n, l - 10, i, l);
3648
+ let e = m.getMax(d / 2, Z.width / 2);
3649
+ Q.insert(r - e, Q.getVerticalPos() - 10 + u, i + e, Q.getVerticalPos() + 30 + u);
3650
+ } else u += Z.boxMargin, l = Q.getVerticalPos() + u, Q.insert(r, l - 10, i, l);
3650
3651
  return Q.bumpVerticalPos(u), t.height += u, t.stopy = t.starty + t.height, Q.insert(t.fromBounds, t.starty, t.toBounds, t.stopy), l;
3651
3652
  }
3652
- t(Le, "boundMessage");
3653
- var Re = /* @__PURE__ */ t(async function(e, t, n, i, a, o) {
3654
- let { startx: s, stopx: l, starty: u, message: d, type: f, sequenceIndex: p, sequenceVisible: m } = t, g = S.calculateTextDimensions(d, Pe(Z)), _ = D();
3655
- _.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, _, {
3656
- startx: s,
3653
+ b(Le, "boundMessage");
3654
+ var Re = /* @__PURE__ */ b(async function(e, t, r, i, a, o) {
3655
+ let { startx: c, stopx: l, starty: u, message: d, type: f, sequenceIndex: p, sequenceVisible: h } = t, g = S.calculateTextDimensions(d, Pe(Z)), _ = D();
3656
+ _.x = Math.min(c, l), _.y = u + 10, _.width = Math.abs(l - c), _.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, n(_.text) ? await oe(e, _, {
3657
+ startx: c,
3657
3658
  stopx: l,
3658
- starty: n
3659
+ starty: r
3659
3660
  }) : G(e, _);
3660
3661
  let v = g.width, y;
3661
- if (s === l) {
3662
- let r = m || Z.showSequenceNumbers, o = tt(a, i), c = nt(a, i), u = s + (r && (o || c) ? 10 : 0);
3663
- 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);
3664
- } 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);
3662
+ if (c === l) {
3663
+ let n = h || Z.showSequenceNumbers, o = tt(a, i), s = nt(a, i), u = c + (n && (o || s) ? 10 : 0);
3664
+ y = Z.rightAngles ? e.append("path").attr("d", `M ${u},${r} H ${c + m.getMax(Z.width / 2, v / 2)} V ${r + 25} H ${c}`) : e.append("path").attr("d", "M " + u + "," + r + " C " + (u + 60) + "," + (r - 10) + " " + (c + 60) + "," + (r + 30) + " " + c + "," + (r + 20)), $e(a, i) && Ne(e, a, t, i, c, l, r);
3665
+ } else y = e.append("line"), y.attr("x1", c), y.attr("y1", r), y.attr("x2", l), y.attr("y2", r), $e(a, i) && Ne(e, a, t, i, c, l, r);
3665
3666
  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);
3666
3667
  let b = "";
3667
- 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) {
3668
- 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;
3669
- 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);
3670
- let h = 0, g = s === l, _ = s <= l;
3671
- h = g ? t.fromBounds + 1 : c ? _ ? t.toBounds - 1 : t.fromBounds + 1 : _ ? t.fromBounds + 1 : t.toBounds - 1;
3668
+ if (Z.arrowMarkerAbsolute && (b = s(!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)"), h || Z.showSequenceNumbers) {
3669
+ let n = f === i.db.LINETYPE.BIDIRECTIONAL_SOLID || f === i.db.LINETYPE.BIDIRECTIONAL_DOTTED, s = 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 = c, m = l;
3670
+ n ? (c < l ? d = c + 12 : (d = c - 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)) : s ? (l > c ? 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", c + 6);
3671
+ let h = 0, g = c === l, _ = c <= l;
3672
+ h = g ? t.fromBounds + 1 : s ? _ ? t.toBounds - 1 : t.fromBounds + 1 : _ ? t.fromBounds + 1 : t.toBounds - 1;
3672
3673
  let v = "12px", x = p.toString().length;
3673
- 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);
3674
+ x > 5 ? v = "7px" : x > 3 && (v = "9px"), e.append("line").attr("x1", h).attr("y1", r).attr("x2", h).attr("y2", r).attr("stroke-width", 0).attr("marker-start", "url(" + b + "#" + o + "-sequencenumber)"), e.append("text").attr("x", h).attr("y", r + 4).attr("font-family", "sans-serif").attr("font-size", v).attr("text-anchor", "middle").attr("class", "sequenceNumber").text(p);
3674
3675
  }
3675
- }, "drawMessage"), ze = /* @__PURE__ */ t(function(e, t, n, r, i, a, o) {
3676
+ }, "drawMessage"), ze = /* @__PURE__ */ b(function(e, t, n, r, i, a, o) {
3676
3677
  let s = 0, c = 0, l, u = 0;
3677
3678
  for (let e of r) {
3678
3679
  let r = t.get(e), a = r.box;
3679
- 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);
3680
+ 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 = m.getMax(r.width || Z.width, Z.width), r.height = m.getMax(r.height || Z.height, Z.height), r.margin = r.margin || Z.actorMargin, u = m.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);
3680
3681
  }
3681
3682
  l && !o && Q.models.addBox(l), Q.bumpVerticalPos(u);
3682
- }, "addActorRenderingData"), Be = /* @__PURE__ */ t(async function(e, t, n, r, i, a, o) {
3683
+ }, "addActorRenderingData"), Be = /* @__PURE__ */ b(async function(e, t, n, r, i, a, o) {
3683
3684
  if (r) {
3684
3685
  let r = 0;
3685
3686
  Q.bumpVerticalPos(Z.boxMargin * 2);
@@ -3687,14 +3688,14 @@ var Re = /* @__PURE__ */ t(async function(e, t, n, i, a, o) {
3687
3688
  let n = t.get(s);
3688
3689
  n.stopy ||= Q.getVerticalPos();
3689
3690
  let c = await X.drawActor(e, n, Z, !0, i, a, o);
3690
- r = h.getMax(r, c);
3691
+ r = m.getMax(r, c);
3691
3692
  }
3692
3693
  Q.bumpVerticalPos(r + Z.boxMargin);
3693
3694
  } else for (let r of n) {
3694
3695
  let n = t.get(r);
3695
3696
  await X.drawActor(e, n, Z, !1, i, a, o);
3696
3697
  }
3697
- }, "drawActors"), Ve = /* @__PURE__ */ t(function(e, t, n, r) {
3698
+ }, "drawActors"), Ve = /* @__PURE__ */ b(function(e, t, n, r) {
3698
3699
  let i = 0, a = 0;
3699
3700
  for (let o of n) {
3700
3701
  let n = t.get(o), s = Je(n), c = X.drawPopup(e, n, s, Z, Z.forceMenus, r);
@@ -3704,18 +3705,18 @@ var Re = /* @__PURE__ */ t(async function(e, t, n, i, a, o) {
3704
3705
  maxHeight: i,
3705
3706
  maxWidth: a
3706
3707
  };
3707
- }, "drawActorsPopup"), He = /* @__PURE__ */ t(function(e) {
3708
- 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);
3709
- }, "setConf"), Ue = /* @__PURE__ */ t(function(e) {
3708
+ }, "drawActorsPopup"), He = /* @__PURE__ */ b(function(e) {
3709
+ p(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);
3710
+ }, "setConf"), Ue = /* @__PURE__ */ b(function(e) {
3710
3711
  return Q.activations.filter(function(t) {
3711
3712
  return t.actor === e;
3712
3713
  });
3713
- }, "actorActivations"), We = /* @__PURE__ */ t(function(e, t) {
3714
+ }, "actorActivations"), We = /* @__PURE__ */ b(function(e, t) {
3714
3715
  let n = t.get(e), r = Ue(e);
3715
3716
  return [r.reduce(function(e, t) {
3716
- return h.getMin(e, t.startx);
3717
+ return m.getMin(e, t.startx);
3717
3718
  }, n.x + n.width / 2 - 1), r.reduce(function(e, t) {
3718
- return h.getMax(e, t.stopx);
3719
+ return m.getMax(e, t.stopx);
3719
3720
  }, n.x + n.width / 2 + 1)];
3720
3721
  }, "activationBounds");
3721
3722
  function $(t, n, r, i, a) {
@@ -3724,140 +3725,143 @@ function $(t, n, r, i, a) {
3724
3725
  if (n.id && n.message && t[n.id]) {
3725
3726
  let r = t[n.id].width, a = Pe(Z);
3726
3727
  n.message = S.wrapLabel(`[${n.message}]`, r - 2 * Z.wrapPadding, a), n.width = r, n.wrap = !0;
3727
- let s = S.calculateTextDimensions(n.message, a), c = h.getMax(s.height, Z.labelBoxHeight);
3728
+ let s = S.calculateTextDimensions(n.message, a), c = m.getMax(s.height, Z.labelBoxHeight);
3728
3729
  o = i + c, e.debug(`${c} - ${n.message}`);
3729
3730
  }
3730
3731
  a(n), Q.bumpVerticalPos(o);
3731
3732
  }
3732
- t($, "adjustLoopHeightForWrap");
3733
- function Ge(e, n, r, i, a, o, s) {
3734
- function c(t, r) {
3735
- t.x < a.get(e.from).x ? (Q.insert(n.stopx - r, n.starty, n.startx, n.stopy + t.height / 2 + Z.noteMargin), n.stopx += r) : (Q.insert(n.startx, n.starty, n.stopx + r, n.stopy + t.height / 2 + Z.noteMargin), n.stopx -= r);
3733
+ b($, "adjustLoopHeightForWrap");
3734
+ function Ge(e, t, n, r, i, a, o) {
3735
+ function s(n, r) {
3736
+ n.x < i.get(e.from).x ? (Q.insert(t.stopx - r, t.starty, t.startx, t.stopy + n.height / 2 + Z.noteMargin), t.stopx += r) : (Q.insert(t.startx, t.starty, t.stopx + r, t.stopy + n.height / 2 + Z.noteMargin), t.stopx -= r);
3736
3737
  }
3737
- t(c, "receiverAdjustment");
3738
- function l(t, r) {
3739
- t.x < a.get(e.to).x ? (Q.insert(n.startx - r, n.starty, n.stopx, n.stopy + t.height / 2 + Z.noteMargin), n.startx += r) : (Q.insert(n.stopx, n.starty, n.startx + r, n.stopy + t.height / 2 + Z.noteMargin), n.startx -= r);
3738
+ b(s, "receiverAdjustment");
3739
+ function c(n, r) {
3740
+ n.x < i.get(e.to).x ? (Q.insert(t.startx - r, t.starty, t.stopx, t.stopy + n.height / 2 + Z.noteMargin), t.startx += r) : (Q.insert(t.stopx, t.starty, t.startx + r, t.stopy + n.height / 2 + Z.noteMargin), t.startx -= r);
3740
3741
  }
3741
- t(l, "senderAdjustment");
3742
- let u = [
3742
+ b(c, "senderAdjustment");
3743
+ let l = [
3743
3744
  R.ACTOR,
3744
3745
  R.CONTROL,
3745
3746
  R.ENTITY,
3746
3747
  R.DATABASE
3747
3748
  ];
3748
- if (o.get(e.to) == i) {
3749
- let t = a.get(e.to);
3750
- c(t, u.includes(t.type) ? z / 2 + 3 : t.width / 2 + 3), t.starty = r - t.height / 2, Q.bumpVerticalPos(t.height / 2);
3751
- } else if (s.get(e.from) == i) {
3752
- let t = a.get(e.from);
3753
- Z.mirrorActors && l(t, u.includes(t.type) ? z / 2 : t.width / 2), t.stopy = r - t.height / 2, Q.bumpVerticalPos(t.height / 2);
3754
- } else if (s.get(e.to) == i) {
3755
- let t = a.get(e.to);
3756
- Z.mirrorActors && c(t, u.includes(t.type) ? z / 2 + 3 : t.width / 2 + 3), t.stopy = r - t.height / 2, Q.bumpVerticalPos(t.height / 2);
3749
+ if (a.get(e.to) == r) {
3750
+ let t = i.get(e.to);
3751
+ s(t, l.includes(t.type) ? z / 2 + 3 : t.width / 2 + 3), t.starty = n - t.height / 2, Q.bumpVerticalPos(t.height / 2);
3752
+ } else if (o.get(e.from) == r) {
3753
+ let t = i.get(e.from);
3754
+ Z.mirrorActors && c(t, l.includes(t.type) ? z / 2 : t.width / 2), t.stopy = n - t.height / 2, Q.bumpVerticalPos(t.height / 2);
3755
+ } else if (o.get(e.to) == r) {
3756
+ let t = i.get(e.to);
3757
+ Z.mirrorActors && s(t, l.includes(t.type) ? z / 2 + 3 : t.width / 2 + 3), t.stopy = n - t.height / 2, Q.bumpVerticalPos(t.height / 2);
3757
3758
  }
3758
3759
  }
3759
- t(Ge, "adjustCreatedDestroyedData");
3760
- var Ke = /* @__PURE__ */ t(async function(r, i, a, o) {
3761
- let { securityLevel: s, sequence: c, look: l } = v();
3762
- Z = c;
3760
+ b(Ge, "adjustCreatedDestroyedData");
3761
+ var Ke = /* @__PURE__ */ b(async function(n, r, i, a) {
3762
+ let { securityLevel: o, sequence: s, look: c, themeVariables: l } = _();
3763
+ Z = s;
3763
3764
  let u;
3764
- s === "sandbox" && (u = n("#i" + i));
3765
- let d = n(s === "sandbox" ? u.nodes()[0].contentDocument.body : "body"), p = s === "sandbox" ? u.nodes()[0].contentDocument : document;
3766
- Q.init(), e.debug(o.db);
3767
- let m = s === "sandbox" ? d.select(`[id="${i}"]`) : n(`[id="${i}"]`), h = o.db.getActors(), g = o.db.getCreatedActors(), _ = o.db.getDestroyedActors(), y = o.db.getBoxes(), b = o.db.getActorKeys(), x = o.db.getMessages(), S = o.db.getDiagramTitle(), C = o.db.hasAtLeastOneBox(), w = o.db.hasAtLeastOneBoxWithTitle(), T = await qe(h, x, o);
3768
- if (Z.height = await Ye(h, T, y), X.insertComputerIcon(m, i), X.insertDatabaseIcon(m, i), X.insertClockIcon(m, i), C && (Q.bumpVerticalPos(Z.boxMargin), w && Q.bumpVerticalPos(y[0].textMaxHeight)), Z.hideUnusedParticipants === !0) {
3765
+ o === "sandbox" && (u = t("#i" + r));
3766
+ let f = t(o === "sandbox" ? u.nodes()[0].contentDocument.body : "body"), p = o === "sandbox" ? u.nodes()[0].contentDocument : document;
3767
+ Q.init(), e.debug(a.db);
3768
+ let m = o === "sandbox" ? f.select(`[id="${r}"]`) : t(`[id="${r}"]`), h = a.db.getActors(), g = a.db.getCreatedActors(), v = a.db.getDestroyedActors(), y = a.db.getBoxes(), x = a.db.getActorKeys(), S = a.db.getMessages(), C = a.db.getDiagramTitle(), w = a.db.hasAtLeastOneBox(), T = a.db.hasAtLeastOneBoxWithTitle(), E = await qe(h, S, a);
3769
+ if (Z.height = await Ye(h, E, y), X.insertComputerIcon(m, r), X.insertDatabaseIcon(m, r), X.insertClockIcon(m, r), w && (Q.bumpVerticalPos(Z.boxMargin), T && Q.bumpVerticalPos(y[0].textMaxHeight)), Z.hideUnusedParticipants === !0) {
3769
3770
  let e = /* @__PURE__ */ new Set();
3770
- x.forEach((t) => {
3771
+ S.forEach((t) => {
3771
3772
  e.add(t.from), e.add(t.to);
3772
- }), b = b.filter((t) => e.has(t));
3773
+ }), x = x.filter((t) => e.has(t));
3773
3774
  }
3774
- let E = new Map(b.map((e, t) => [h.get(e)?.name ?? e, t]));
3775
- ze(m, h, g, b, 0, x, !1);
3776
- let D = await it(x, h, T, o);
3777
- X.insertArrowHead(m, i), X.insertArrowCrossHead(m, i), X.insertArrowFilledHead(m, i), X.insertSequenceNumber(m, i), X.insertSolidTopArrowHead(m, i), X.insertSolidBottomArrowHead(m, i), X.insertStickTopArrowHead(m, i), X.insertStickBottomArrowHead(m, i), l === "neo" && X.insertDropShadow(m, Z);
3778
- function O(e, t) {
3775
+ let D = new Map(x.map((e, t) => [h.get(e)?.name ?? e, t]));
3776
+ ze(m, h, g, x, 0, S, !1);
3777
+ let O = await it(S, h, E, a);
3778
+ X.insertArrowHead(m, r), X.insertArrowCrossHead(m, r), X.insertArrowFilledHead(m, r), X.insertSequenceNumber(m, r), X.insertSolidTopArrowHead(m, r), X.insertSolidBottomArrowHead(m, r), X.insertStickTopArrowHead(m, r), X.insertStickBottomArrowHead(m, r), c === "neo" && X.insertDropShadow(m, Z);
3779
+ function k(e, t) {
3779
3780
  let n = Q.endActivation(e);
3780
- n.starty + 18 > t && (n.starty = t - 6, t += 12), X.drawActivation(m, n, t, Z, Ue(e.from).length, o, E), Q.insert(n.startx, t - 10, n.stopx, t);
3781
+ n.starty + 18 > t && (n.starty = t - 6, t += 12), X.drawActivation(m, n, t, Z, Ue(e.from).length, a, D), Q.insert(n.startx, t - 10, n.stopx, t);
3781
3782
  }
3782
- t(O, "activeEnd");
3783
- let k = 1, A = 1, j = [], M = [], N = 0;
3784
- for (let t of x) {
3783
+ b(k, "activeEnd");
3784
+ let A = 1, j = 1, M = [], N = [], P = 0;
3785
+ for (let t of S) {
3785
3786
  let n, r, i;
3786
3787
  switch (t.type) {
3787
- case o.db.LINETYPE.NOTE:
3788
+ case a.db.LINETYPE.NOTE:
3788
3789
  Q.resetVerticalPos(), r = t.noteModel, await Me(m, r, t.id);
3789
3790
  break;
3790
- case o.db.LINETYPE.ACTIVE_START:
3791
+ case a.db.LINETYPE.ACTIVE_START:
3791
3792
  Q.newActivation(t, m, h);
3792
3793
  break;
3793
- case o.db.LINETYPE.CENTRAL_CONNECTION:
3794
+ case a.db.LINETYPE.CENTRAL_CONNECTION:
3794
3795
  Q.newActivation(t, m, h);
3795
3796
  break;
3796
- case o.db.LINETYPE.CENTRAL_CONNECTION_REVERSE:
3797
+ case a.db.LINETYPE.CENTRAL_CONNECTION_REVERSE:
3797
3798
  Q.newActivation(t, m, h);
3798
3799
  break;
3799
- case o.db.LINETYPE.ACTIVE_END:
3800
- O(t, Q.getVerticalPos());
3800
+ case a.db.LINETYPE.ACTIVE_END:
3801
+ k(t, Q.getVerticalPos());
3801
3802
  break;
3802
- case o.db.LINETYPE.LOOP_START:
3803
- $(D, t, Z.boxMargin, Z.boxMargin + Z.boxTextMargin, (e) => Q.newLoop(e));
3803
+ case a.db.LINETYPE.LOOP_START:
3804
+ $(O, t, Z.boxMargin, Z.boxMargin + Z.boxTextMargin, (e) => Q.newLoop(e));
3804
3805
  break;
3805
- case o.db.LINETYPE.LOOP_END:
3806
+ case a.db.LINETYPE.LOOP_END:
3806
3807
  n = Q.endLoop(), await X.drawLoop(m, n, "loop", Z, t), Q.bumpVerticalPos(n.stopy - Q.getVerticalPos()), Q.models.addLoop(n);
3807
3808
  break;
3808
- case o.db.LINETYPE.RECT_START:
3809
- $(D, t, Z.boxMargin, Z.boxMargin, (e) => Q.newLoop(void 0, e.message));
3809
+ case a.db.LINETYPE.RECT_START:
3810
+ $(O, t, Z.boxMargin, Z.boxMargin, (e) => {
3811
+ let t = e.message;
3812
+ t ||= l?.rectBkgColor || l?.actorBkg || "rgba(128, 128, 128, 0.5)", Q.newLoop(void 0, t);
3813
+ });
3810
3814
  break;
3811
- case o.db.LINETYPE.RECT_END:
3812
- n = Q.endLoop(), M.push(n), Q.models.addLoop(n), Q.bumpVerticalPos(n.stopy - Q.getVerticalPos());
3815
+ case a.db.LINETYPE.RECT_END:
3816
+ n = Q.endLoop(), N.push(n), Q.models.addLoop(n), Q.bumpVerticalPos(n.stopy - Q.getVerticalPos());
3813
3817
  break;
3814
- case o.db.LINETYPE.OPT_START:
3815
- $(D, t, Z.boxMargin, Z.boxMargin + Z.boxTextMargin, (e) => Q.newLoop(e));
3818
+ case a.db.LINETYPE.OPT_START:
3819
+ $(O, t, Z.boxMargin, Z.boxMargin + Z.boxTextMargin, (e) => Q.newLoop(e));
3816
3820
  break;
3817
- case o.db.LINETYPE.OPT_END:
3821
+ case a.db.LINETYPE.OPT_END:
3818
3822
  n = Q.endLoop(), await X.drawLoop(m, n, "opt", Z, t), Q.bumpVerticalPos(n.stopy - Q.getVerticalPos()), Q.models.addLoop(n);
3819
3823
  break;
3820
- case o.db.LINETYPE.ALT_START:
3821
- $(D, t, Z.boxMargin, Z.boxMargin + Z.boxTextMargin, (e) => Q.newLoop(e));
3824
+ case a.db.LINETYPE.ALT_START:
3825
+ $(O, t, Z.boxMargin, Z.boxMargin + Z.boxTextMargin, (e) => Q.newLoop(e));
3822
3826
  break;
3823
- case o.db.LINETYPE.ALT_ELSE:
3824
- $(D, t, Z.boxMargin + Z.boxTextMargin, Z.boxMargin, (e) => Q.addSectionToLoop(e));
3827
+ case a.db.LINETYPE.ALT_ELSE:
3828
+ $(O, t, Z.boxMargin + Z.boxTextMargin, Z.boxMargin, (e) => Q.addSectionToLoop(e));
3825
3829
  break;
3826
- case o.db.LINETYPE.ALT_END:
3830
+ case a.db.LINETYPE.ALT_END:
3827
3831
  n = Q.endLoop(), await X.drawLoop(m, n, "alt", Z, t), Q.bumpVerticalPos(n.stopy - Q.getVerticalPos()), Q.models.addLoop(n);
3828
3832
  break;
3829
- case o.db.LINETYPE.PAR_START:
3830
- case o.db.LINETYPE.PAR_OVER_START:
3831
- $(D, t, Z.boxMargin, Z.boxMargin + Z.boxTextMargin, (e) => Q.newLoop(e)), Q.saveVerticalPos();
3833
+ case a.db.LINETYPE.PAR_START:
3834
+ case a.db.LINETYPE.PAR_OVER_START:
3835
+ $(O, t, Z.boxMargin, Z.boxMargin + Z.boxTextMargin, (e) => Q.newLoop(e)), Q.saveVerticalPos();
3832
3836
  break;
3833
- case o.db.LINETYPE.PAR_AND:
3834
- $(D, t, Z.boxMargin + Z.boxTextMargin, Z.boxMargin, (e) => Q.addSectionToLoop(e));
3837
+ case a.db.LINETYPE.PAR_AND:
3838
+ $(O, t, Z.boxMargin + Z.boxTextMargin, Z.boxMargin, (e) => Q.addSectionToLoop(e));
3835
3839
  break;
3836
- case o.db.LINETYPE.PAR_END:
3840
+ case a.db.LINETYPE.PAR_END:
3837
3841
  n = Q.endLoop(), await X.drawLoop(m, n, "par", Z, t), Q.bumpVerticalPos(n.stopy - Q.getVerticalPos()), Q.models.addLoop(n);
3838
3842
  break;
3839
- case o.db.LINETYPE.AUTONUMBER:
3840
- k = t.message.start || k, A = t.message.step || A, t.message.visible ? o.db.enableSequenceNumbers() : o.db.disableSequenceNumbers();
3843
+ case a.db.LINETYPE.AUTONUMBER:
3844
+ A = t.message.start || A, j = t.message.step || j, t.message.visible ? a.db.enableSequenceNumbers() : a.db.disableSequenceNumbers();
3841
3845
  break;
3842
- case o.db.LINETYPE.CRITICAL_START:
3843
- $(D, t, Z.boxMargin, Z.boxMargin + Z.boxTextMargin, (e) => Q.newLoop(e));
3846
+ case a.db.LINETYPE.CRITICAL_START:
3847
+ $(O, t, Z.boxMargin, Z.boxMargin + Z.boxTextMargin, (e) => Q.newLoop(e));
3844
3848
  break;
3845
- case o.db.LINETYPE.CRITICAL_OPTION:
3846
- $(D, t, Z.boxMargin + Z.boxTextMargin, Z.boxMargin, (e) => Q.addSectionToLoop(e));
3849
+ case a.db.LINETYPE.CRITICAL_OPTION:
3850
+ $(O, t, Z.boxMargin + Z.boxTextMargin, Z.boxMargin, (e) => Q.addSectionToLoop(e));
3847
3851
  break;
3848
- case o.db.LINETYPE.CRITICAL_END:
3852
+ case a.db.LINETYPE.CRITICAL_END:
3849
3853
  n = Q.endLoop(), await X.drawLoop(m, n, "critical", Z, t), Q.bumpVerticalPos(n.stopy - Q.getVerticalPos()), Q.models.addLoop(n);
3850
3854
  break;
3851
- case o.db.LINETYPE.BREAK_START:
3852
- $(D, t, Z.boxMargin, Z.boxMargin + Z.boxTextMargin, (e) => Q.newLoop(e));
3855
+ case a.db.LINETYPE.BREAK_START:
3856
+ $(O, t, Z.boxMargin, Z.boxMargin + Z.boxTextMargin, (e) => Q.newLoop(e));
3853
3857
  break;
3854
- case o.db.LINETYPE.BREAK_END:
3858
+ case a.db.LINETYPE.BREAK_END:
3855
3859
  n = Q.endLoop(), await X.drawLoop(m, n, "break", Z, t), Q.bumpVerticalPos(n.stopy - Q.getVerticalPos()), Q.models.addLoop(n);
3856
3860
  break;
3857
3861
  default: try {
3858
- i = t.msgModel, i.starty = Q.getVerticalPos(), i.sequenceIndex = k, i.sequenceVisible = o.db.showSequenceNumbers(), i.id = t.id, i.from = t.from, i.to = t.to;
3862
+ i = t.msgModel, i.starty = Q.getVerticalPos(), i.sequenceIndex = A, i.sequenceVisible = a.db.showSequenceNumbers(), i.id = t.id, i.from = t.from, i.to = t.to;
3859
3863
  let e = await Le(m, i);
3860
- Ge(t, i, e, N, h, g, _), j.push({
3864
+ Ge(t, i, e, P, h, g, v), M.push({
3861
3865
  messageModel: i,
3862
3866
  lineStartY: e,
3863
3867
  msg: t
@@ -3867,68 +3871,68 @@ var Ke = /* @__PURE__ */ t(async function(r, i, a, o) {
3867
3871
  }
3868
3872
  }
3869
3873
  [
3870
- o.db.LINETYPE.SOLID_OPEN,
3871
- o.db.LINETYPE.DOTTED_OPEN,
3872
- o.db.LINETYPE.SOLID,
3873
- o.db.LINETYPE.SOLID_TOP,
3874
- o.db.LINETYPE.SOLID_BOTTOM,
3875
- o.db.LINETYPE.STICK_TOP,
3876
- o.db.LINETYPE.STICK_BOTTOM,
3877
- o.db.LINETYPE.SOLID_TOP_DOTTED,
3878
- o.db.LINETYPE.SOLID_BOTTOM_DOTTED,
3879
- o.db.LINETYPE.STICK_TOP_DOTTED,
3880
- o.db.LINETYPE.STICK_BOTTOM_DOTTED,
3881
- o.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,
3882
- o.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE,
3883
- o.db.LINETYPE.STICK_ARROW_TOP_REVERSE,
3884
- o.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,
3885
- o.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,
3886
- o.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,
3887
- o.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,
3888
- o.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,
3889
- o.db.LINETYPE.DOTTED,
3890
- o.db.LINETYPE.SOLID_CROSS,
3891
- o.db.LINETYPE.DOTTED_CROSS,
3892
- o.db.LINETYPE.SOLID_POINT,
3893
- o.db.LINETYPE.DOTTED_POINT,
3894
- o.db.LINETYPE.BIDIRECTIONAL_SOLID,
3895
- o.db.LINETYPE.BIDIRECTIONAL_DOTTED
3896
- ].includes(t.type) && (k = Math.round((k + A) * 100) / 100), N++;
3874
+ a.db.LINETYPE.SOLID_OPEN,
3875
+ a.db.LINETYPE.DOTTED_OPEN,
3876
+ a.db.LINETYPE.SOLID,
3877
+ a.db.LINETYPE.SOLID_TOP,
3878
+ a.db.LINETYPE.SOLID_BOTTOM,
3879
+ a.db.LINETYPE.STICK_TOP,
3880
+ a.db.LINETYPE.STICK_BOTTOM,
3881
+ a.db.LINETYPE.SOLID_TOP_DOTTED,
3882
+ a.db.LINETYPE.SOLID_BOTTOM_DOTTED,
3883
+ a.db.LINETYPE.STICK_TOP_DOTTED,
3884
+ a.db.LINETYPE.STICK_BOTTOM_DOTTED,
3885
+ a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,
3886
+ a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE,
3887
+ a.db.LINETYPE.STICK_ARROW_TOP_REVERSE,
3888
+ a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,
3889
+ a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,
3890
+ a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,
3891
+ a.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,
3892
+ a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,
3893
+ a.db.LINETYPE.DOTTED,
3894
+ a.db.LINETYPE.SOLID_CROSS,
3895
+ a.db.LINETYPE.DOTTED_CROSS,
3896
+ a.db.LINETYPE.SOLID_POINT,
3897
+ a.db.LINETYPE.DOTTED_POINT,
3898
+ a.db.LINETYPE.BIDIRECTIONAL_SOLID,
3899
+ a.db.LINETYPE.BIDIRECTIONAL_DOTTED
3900
+ ].includes(t.type) && (A = Math.round((A + j) * 100) / 100), P++;
3897
3901
  }
3898
- e.debug("createdActors", g), e.debug("destroyedActors", _), await Be(m, h, b, !1, i, o, E);
3899
- for (let e of j) await Re(m, e.messageModel, e.lineStartY, o, e.msg, i);
3900
- Z.mirrorActors && await Be(m, h, b, !0, i, o, E), M.forEach((e) => X.drawBackgroundRect(m, e)), ce(m, h, b, Z);
3902
+ e.debug("createdActors", g), e.debug("destroyedActors", v), await Be(m, h, x, !1, r, a, D);
3903
+ for (let e of M) await Re(m, e.messageModel, e.lineStartY, a, e.msg, r);
3904
+ Z.mirrorActors && await Be(m, h, x, !0, r, a, D), N.forEach((e) => X.drawBackgroundRect(m, e)), ce(m, h, x, Z);
3901
3905
  for (let e of Q.models.boxes) {
3902
3906
  e.height = Q.getVerticalPos() - e.y, Q.insert(e.x, e.y, e.x + e.width, e.height);
3903
3907
  let t = Z.boxMargin * 2;
3904
3908
  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(m, e, Z);
3905
3909
  }
3906
- C && Q.bumpVerticalPos(Z.boxMargin);
3907
- let P = Ve(m, h, b, p), { bounds: F } = Q.getBounds();
3908
- F.startx === void 0 && (F.startx = 0), F.starty === void 0 && (F.starty = 0), F.stopx === void 0 && (F.stopx = 0), F.stopy === void 0 && (F.stopy = 0);
3909
- let I = F.stopy - F.starty;
3910
- I < P.maxHeight && (I = P.maxHeight);
3911
- let L = I + 2 * Z.diagramMarginY;
3910
+ w && Q.bumpVerticalPos(Z.boxMargin);
3911
+ let F = Ve(m, h, x, p), { bounds: I } = Q.getBounds();
3912
+ 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);
3913
+ let ee = I.stopy - I.starty;
3914
+ ee < F.maxHeight && (ee = F.maxHeight);
3915
+ let L = ee + 2 * Z.diagramMarginY;
3912
3916
  Z.mirrorActors && (L = L - Z.boxMargin + Z.bottomMarginAdj);
3913
- let ee = F.stopx - F.startx;
3914
- ee < P.maxWidth && (ee = P.maxWidth);
3915
- let R = ee + 2 * Z.diagramMarginX;
3916
- S && m.append("text").text(S).attr("x", (F.stopx - F.startx) / 2 - 2 * Z.diagramMarginX).attr("y", -25), f(m, L, R, Z.useMaxWidth);
3917
- let te = S ? 40 : 0, ne = h.size && l === "neo" ? 30 : 0;
3918
- m.attr("viewBox", F.startx - Z.diagramMarginX + " -" + (Z.diagramMarginY + te) + " " + R + " " + (L + te + ne)), e.debug("models:", Q.models);
3917
+ let R = I.stopx - I.startx;
3918
+ R < F.maxWidth && (R = F.maxWidth);
3919
+ let te = R + 2 * Z.diagramMarginX;
3920
+ C && m.append("text").text(C).attr("x", (I.stopx - I.startx) / 2 - 2 * Z.diagramMarginX).attr("y", -25), d(m, L, te, Z.useMaxWidth);
3921
+ let ne = C ? 40 : 0, z = h.size && c === "neo" ? 30 : 0;
3922
+ m.attr("viewBox", I.startx - Z.diagramMarginX + " -" + (Z.diagramMarginY + ne) + " " + te + " " + (L + ne + z)), e.debug("models:", Q.models);
3919
3923
  }, "draw");
3920
- async function qe(t, n, i) {
3924
+ async function qe(t, r, i) {
3921
3925
  let a = {};
3922
- for (let e of n) if (t.get(e.to) && t.get(e.from)) {
3923
- let n = t.get(e.to);
3924
- if (e.placement === i.db.PLACEMENT.LEFTOF && !n.prevActor || e.placement === i.db.PLACEMENT.RIGHTOF && !n.nextActor) continue;
3925
- let o = e.placement !== void 0, s = !o, c = o ? Fe(Z) : Pe(Z), l = e.wrap ? S.wrapLabel(e.message, Z.width - 2 * Z.wrapPadding, c) : e.message, u = (r(l) ? await p(e.message, v()) : S.calculateTextDimensions(l, c)).width + 2 * Z.wrapPadding;
3926
- s && e.from === n.nextActor ? a[e.to] = h.getMax(a[e.to] || 0, u) : s && e.from === n.prevActor ? a[e.from] = h.getMax(a[e.from] || 0, u) : s && e.from === e.to ? (a[e.from] = h.getMax(a[e.from] || 0, u / 2), a[e.to] = h.getMax(a[e.to] || 0, u / 2)) : e.placement === i.db.PLACEMENT.RIGHTOF ? a[e.from] = h.getMax(a[e.from] || 0, u) : e.placement === i.db.PLACEMENT.LEFTOF ? a[n.prevActor] = h.getMax(a[n.prevActor] || 0, u) : e.placement === i.db.PLACEMENT.OVER && (n.prevActor && (a[n.prevActor] = h.getMax(a[n.prevActor] || 0, u / 2)), n.nextActor && (a[e.from] = h.getMax(a[e.from] || 0, u / 2)));
3926
+ for (let e of r) if (t.get(e.to) && t.get(e.from)) {
3927
+ let r = t.get(e.to);
3928
+ if (e.placement === i.db.PLACEMENT.LEFTOF && !r.prevActor || e.placement === i.db.PLACEMENT.RIGHTOF && !r.nextActor) continue;
3929
+ let o = e.placement !== void 0, s = !o, c = o ? Fe(Z) : Pe(Z), l = e.wrap ? S.wrapLabel(e.message, Z.width - 2 * Z.wrapPadding, c) : e.message, u = (n(l) ? await f(e.message, _()) : S.calculateTextDimensions(l, c)).width + 2 * Z.wrapPadding;
3930
+ s && e.from === r.nextActor ? a[e.to] = m.getMax(a[e.to] || 0, u) : s && e.from === r.prevActor ? a[e.from] = m.getMax(a[e.from] || 0, u) : s && e.from === e.to ? (a[e.from] = m.getMax(a[e.from] || 0, u / 2), a[e.to] = m.getMax(a[e.to] || 0, u / 2)) : e.placement === i.db.PLACEMENT.RIGHTOF ? a[e.from] = m.getMax(a[e.from] || 0, u) : e.placement === i.db.PLACEMENT.LEFTOF ? a[r.prevActor] = m.getMax(a[r.prevActor] || 0, u) : e.placement === i.db.PLACEMENT.OVER && (r.prevActor && (a[r.prevActor] = m.getMax(a[r.prevActor] || 0, u / 2)), r.nextActor && (a[e.from] = m.getMax(a[e.from] || 0, u / 2)));
3927
3931
  }
3928
3932
  return e.debug("maxMessageWidthPerActor:", a), a;
3929
3933
  }
3930
- t(qe, "getMaxMessageWidthPerActor");
3931
- var Je = /* @__PURE__ */ t(function(e) {
3934
+ b(qe, "getMaxMessageWidthPerActor");
3935
+ var Je = /* @__PURE__ */ b(function(e) {
3932
3936
  let t = 0, n = Ie(Z);
3933
3937
  for (let r in e.links) {
3934
3938
  let e = S.calculateTextDimensions(r, n).width + 2 * Z.wrapPadding + 2 * Z.boxMargin;
@@ -3936,13 +3940,13 @@ var Je = /* @__PURE__ */ t(function(e) {
3936
3940
  }
3937
3941
  return t;
3938
3942
  }, "getRequiredPopupWidth");
3939
- async function Ye(e, t, n) {
3943
+ async function Ye(e, t, r) {
3940
3944
  let i = 0;
3941
3945
  for (let t of e.keys()) {
3942
- let n = e.get(t);
3943
- n.wrap && (n.description = S.wrapLabel(n.description, Z.width - 2 * Z.wrapPadding, Ie(Z)));
3944
- let a = r(n.description) ? await p(n.description, v()) : S.calculateTextDimensions(n.description, Ie(Z));
3945
- 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);
3946
+ let r = e.get(t);
3947
+ r.wrap && (r.description = S.wrapLabel(r.description, Z.width - 2 * Z.wrapPadding, Ie(Z)));
3948
+ let a = n(r.description) ? await f(r.description, _()) : S.calculateTextDimensions(r.description, Ie(Z));
3949
+ r.width = r.wrap ? Z.width : m.getMax(Z.width, a.width + 2 * Z.wrapPadding), r.height = r.wrap ? m.getMax(a.height, Z.height) : Z.height, i = m.getMax(i, r.height);
3946
3950
  }
3947
3951
  for (let n in t) {
3948
3952
  let r = e.get(n);
@@ -3950,29 +3954,29 @@ async function Ye(e, t, n) {
3950
3954
  let i = e.get(r.nextActor);
3951
3955
  if (!i) {
3952
3956
  let e = t[n] + Z.actorMargin - r.width / 2;
3953
- r.margin = h.getMax(e, Z.actorMargin);
3957
+ r.margin = m.getMax(e, Z.actorMargin);
3954
3958
  continue;
3955
3959
  }
3956
3960
  let a = t[n] + Z.actorMargin - r.width / 2 - i.width / 2;
3957
- r.margin = h.getMax(a, Z.actorMargin);
3961
+ r.margin = m.getMax(a, Z.actorMargin);
3958
3962
  }
3959
3963
  let a = 0;
3960
- return n.forEach((t) => {
3964
+ return r.forEach((t) => {
3961
3965
  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;
3962
3966
  r += i, r -= 2 * Z.boxTextMargin, t.wrap && (t.name = S.wrapLabel(t.name, r - 2 * Z.wrapPadding, n));
3963
3967
  let o = S.calculateTextDimensions(t.name, n);
3964
- a = h.getMax(o.height, a);
3965
- let s = h.getMax(r, o.width + 2 * Z.wrapPadding);
3968
+ a = m.getMax(o.height, a);
3969
+ let s = m.getMax(r, o.width + 2 * Z.wrapPadding);
3966
3970
  if (t.margin = Z.boxTextMargin, r < s) {
3967
3971
  let e = (s - r) / 2;
3968
3972
  t.margin += e;
3969
3973
  }
3970
- }), n.forEach((e) => e.textMaxHeight = a), h.getMax(i, Z.height);
3974
+ }), r.forEach((e) => e.textMaxHeight = a), m.getMax(i, Z.height);
3971
3975
  }
3972
- t(Ye, "calculateActorMargins");
3973
- var Xe = /* @__PURE__ */ t(async function(t, n, i) {
3974
- let a = n.get(t.from), o = n.get(t.to), s = a.x, c = o.x, l = t.wrap && t.message, u = r(t.message) ? await p(t.message, v()) : S.calculateTextDimensions(l ? S.wrapLabel(t.message, Z.width, Fe(Z)) : t.message, Fe(Z)), d = {
3975
- width: l ? Z.width : h.getMax(Z.width, u.width + 2 * Z.noteMargin),
3976
+ b(Ye, "calculateActorMargins");
3977
+ var Xe = /* @__PURE__ */ b(async function(t, r, i) {
3978
+ let a = r.get(t.from), o = r.get(t.to), s = a.x, c = o.x, l = t.wrap && t.message, u = n(t.message) ? await f(t.message, _()) : S.calculateTextDimensions(l ? S.wrapLabel(t.message, Z.width, Fe(Z)) : t.message, Fe(Z)), d = {
3979
+ width: l ? Z.width : m.getMax(Z.width, u.width + 2 * Z.noteMargin),
3976
3980
  height: 0,
3977
3981
  startx: a.x,
3978
3982
  stopx: 0,
@@ -3980,18 +3984,18 @@ var Xe = /* @__PURE__ */ t(async function(t, n, i) {
3980
3984
  stopy: 0,
3981
3985
  message: t.message
3982
3986
  };
3983
- return t.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) : t.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) : t.to === t.from ? (u = S.calculateTextDimensions(l ? S.wrapLabel(t.message, h.getMax(Z.width, a.width), Fe(Z)) : t.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(t.message, d.width - 2 * Z.wrapPadding, Fe(Z))), e.debug(`NM:[${d.startx},${d.stopx},${d.starty},${d.stopy}:${d.width},${d.height}=${t.message}]`), d;
3984
- }, "buildNoteModel"), Ze = 4, Qe = 6, $e = /* @__PURE__ */ t(function(e, t) {
3987
+ return t.placement === i.db.PLACEMENT.RIGHTOF ? (d.width = l ? m.getMax(Z.width, u.width) : m.getMax(a.width / 2 + o.width / 2, u.width + 2 * Z.noteMargin), d.startx = s + (a.width + Z.actorMargin) / 2) : t.placement === i.db.PLACEMENT.LEFTOF ? (d.width = l ? m.getMax(Z.width, u.width + 2 * Z.noteMargin) : m.getMax(a.width / 2 + o.width / 2, u.width + 2 * Z.noteMargin), d.startx = s - d.width + (a.width - Z.actorMargin) / 2) : t.to === t.from ? (u = S.calculateTextDimensions(l ? S.wrapLabel(t.message, m.getMax(Z.width, a.width), Fe(Z)) : t.message, Fe(Z)), d.width = l ? m.getMax(Z.width, a.width) : m.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(t.message, d.width - 2 * Z.wrapPadding, Fe(Z))), e.debug(`NM:[${d.startx},${d.stopx},${d.starty},${d.stopy}:${d.width},${d.height}=${t.message}]`), d;
3988
+ }, "buildNoteModel"), Ze = 4, Qe = 6, $e = /* @__PURE__ */ b(function(e, t) {
3985
3989
  let { CENTRAL_CONNECTION: n, CENTRAL_CONNECTION_REVERSE: r, CENTRAL_CONNECTION_DUAL: i } = t.db.LINETYPE;
3986
3990
  return [
3987
3991
  n,
3988
3992
  r,
3989
3993
  i
3990
3994
  ].includes(e.centralConnection);
3991
- }, "hasCentralConnection"), et = /* @__PURE__ */ t(function(e, t, n) {
3995
+ }, "hasCentralConnection"), et = /* @__PURE__ */ b(function(e, t, n) {
3992
3996
  let { CENTRAL_CONNECTION_REVERSE: r, CENTRAL_CONNECTION_DUAL: i, BIDIRECTIONAL_SOLID: a, BIDIRECTIONAL_DOTTED: o } = t.db.LINETYPE, s = 0;
3993
3997
  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;
3994
- }, "calculateCentralConnectionOffset"), tt = /* @__PURE__ */ t(function(e, t) {
3998
+ }, "calculateCentralConnectionOffset"), tt = /* @__PURE__ */ b(function(e, t) {
3995
3999
  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;
3996
4000
  return [
3997
4001
  n,
@@ -4003,87 +4007,87 @@ var Xe = /* @__PURE__ */ t(async function(t, n, i) {
4003
4007
  c,
4004
4008
  l
4005
4009
  ].includes(e.type);
4006
- }, "isReverseArrowType"), nt = /* @__PURE__ */ t(function(e, t) {
4010
+ }, "isReverseArrowType"), nt = /* @__PURE__ */ b(function(e, t) {
4007
4011
  let { BIDIRECTIONAL_SOLID: n, BIDIRECTIONAL_DOTTED: r } = t.db.LINETYPE;
4008
4012
  return [n, r].includes(e.type);
4009
- }, "isBidirectionalArrowType"), rt = /* @__PURE__ */ t(function(e, n, r) {
4010
- let { look: i } = v();
4013
+ }, "isBidirectionalArrowType"), rt = /* @__PURE__ */ b(function(e, t, n) {
4014
+ let { look: r } = _();
4011
4015
  if (![
4012
- r.db.LINETYPE.SOLID_OPEN,
4013
- r.db.LINETYPE.DOTTED_OPEN,
4014
- r.db.LINETYPE.SOLID,
4015
- r.db.LINETYPE.SOLID_TOP,
4016
- r.db.LINETYPE.SOLID_BOTTOM,
4017
- r.db.LINETYPE.STICK_TOP,
4018
- r.db.LINETYPE.STICK_BOTTOM,
4019
- r.db.LINETYPE.SOLID_TOP_DOTTED,
4020
- r.db.LINETYPE.SOLID_BOTTOM_DOTTED,
4021
- r.db.LINETYPE.STICK_TOP_DOTTED,
4022
- r.db.LINETYPE.STICK_BOTTOM_DOTTED,
4023
- r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,
4024
- r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE,
4025
- r.db.LINETYPE.STICK_ARROW_TOP_REVERSE,
4026
- r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,
4027
- r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,
4028
- r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,
4029
- r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,
4030
- r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,
4031
- r.db.LINETYPE.DOTTED,
4032
- r.db.LINETYPE.SOLID_CROSS,
4033
- r.db.LINETYPE.DOTTED_CROSS,
4034
- r.db.LINETYPE.SOLID_POINT,
4035
- r.db.LINETYPE.DOTTED_POINT,
4036
- r.db.LINETYPE.BIDIRECTIONAL_SOLID,
4037
- r.db.LINETYPE.BIDIRECTIONAL_DOTTED
4016
+ n.db.LINETYPE.SOLID_OPEN,
4017
+ n.db.LINETYPE.DOTTED_OPEN,
4018
+ n.db.LINETYPE.SOLID,
4019
+ n.db.LINETYPE.SOLID_TOP,
4020
+ n.db.LINETYPE.SOLID_BOTTOM,
4021
+ n.db.LINETYPE.STICK_TOP,
4022
+ n.db.LINETYPE.STICK_BOTTOM,
4023
+ n.db.LINETYPE.SOLID_TOP_DOTTED,
4024
+ n.db.LINETYPE.SOLID_BOTTOM_DOTTED,
4025
+ n.db.LINETYPE.STICK_TOP_DOTTED,
4026
+ n.db.LINETYPE.STICK_BOTTOM_DOTTED,
4027
+ n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,
4028
+ n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE,
4029
+ n.db.LINETYPE.STICK_ARROW_TOP_REVERSE,
4030
+ n.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,
4031
+ n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,
4032
+ n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,
4033
+ n.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,
4034
+ n.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,
4035
+ n.db.LINETYPE.DOTTED,
4036
+ n.db.LINETYPE.SOLID_CROSS,
4037
+ n.db.LINETYPE.DOTTED_CROSS,
4038
+ n.db.LINETYPE.SOLID_POINT,
4039
+ n.db.LINETYPE.DOTTED_POINT,
4040
+ n.db.LINETYPE.BIDIRECTIONAL_SOLID,
4041
+ n.db.LINETYPE.BIDIRECTIONAL_DOTTED
4038
4042
  ].includes(e.type)) return {};
4039
- let [a, o] = We(e.from, n), [s, c] = We(e.to, n), l = a <= s, u = l ? o : a, d = l ? s : c;
4040
- i === "neo" && (e.type !== r.db.LINETYPE.SOLID_OPEN && (d += l ? -3 : 3), (e.type === r.db.LINETYPE.BIDIRECTIONAL_SOLID || e.type === r.db.LINETYPE.BIDIRECTIONAL_DOTTED) && (u += l ? 3 : -3)), u += et(e, r, l);
4041
- let f = Math.abs(s - c) > 2, p = /* @__PURE__ */ t((e) => l ? -e : e, "adjustValue");
4042
- e.from === e.to ? d = u : (e.activate && !f && (d += p(Z.activationWidth / 2 - 1)), [
4043
- r.db.LINETYPE.SOLID_OPEN,
4044
- r.db.LINETYPE.DOTTED_OPEN,
4045
- r.db.LINETYPE.STICK_TOP,
4046
- r.db.LINETYPE.STICK_BOTTOM,
4047
- r.db.LINETYPE.STICK_TOP_DOTTED,
4048
- r.db.LINETYPE.STICK_BOTTOM_DOTTED,
4049
- r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,
4050
- r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,
4051
- r.db.LINETYPE.STICK_ARROW_TOP_REVERSE,
4052
- r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,
4053
- r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,
4054
- r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,
4055
- r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,
4056
- r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE
4057
- ].includes(e.type) || (d += p(3)), [
4058
- r.db.LINETYPE.BIDIRECTIONAL_SOLID,
4059
- r.db.LINETYPE.BIDIRECTIONAL_DOTTED,
4060
- r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,
4061
- r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,
4062
- r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,
4063
- r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE
4064
- ].includes(e.type) && (u -= p(3)));
4065
- let m = [
4043
+ let [i, a] = We(e.from, t), [o, s] = We(e.to, t), c = i <= o, l = c ? a : i, u = c ? o : s;
4044
+ r === "neo" && (e.type !== n.db.LINETYPE.SOLID_OPEN && (u += c ? -3 : 3), (e.type === n.db.LINETYPE.BIDIRECTIONAL_SOLID || e.type === n.db.LINETYPE.BIDIRECTIONAL_DOTTED) && (l += c ? 3 : -3)), l += et(e, n, c);
4045
+ let d = Math.abs(o - s) > 2, f = /* @__PURE__ */ b((e) => c ? -e : e, "adjustValue");
4046
+ e.from === e.to ? u = l : (e.activate && !d && (u += f(Z.activationWidth / 2 - 1)), [
4047
+ n.db.LINETYPE.SOLID_OPEN,
4048
+ n.db.LINETYPE.DOTTED_OPEN,
4049
+ n.db.LINETYPE.STICK_TOP,
4050
+ n.db.LINETYPE.STICK_BOTTOM,
4051
+ n.db.LINETYPE.STICK_TOP_DOTTED,
4052
+ n.db.LINETYPE.STICK_BOTTOM_DOTTED,
4053
+ n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,
4054
+ n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,
4055
+ n.db.LINETYPE.STICK_ARROW_TOP_REVERSE,
4056
+ n.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,
4057
+ n.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,
4058
+ n.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,
4059
+ n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,
4060
+ n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE
4061
+ ].includes(e.type) || (u += f(3)), [
4062
+ n.db.LINETYPE.BIDIRECTIONAL_SOLID,
4063
+ n.db.LINETYPE.BIDIRECTIONAL_DOTTED,
4064
+ n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,
4065
+ n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,
4066
+ n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,
4067
+ n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE
4068
+ ].includes(e.type) && (l -= f(3)));
4069
+ let p = [
4070
+ i,
4066
4071
  a,
4067
4072
  o,
4068
- s,
4069
- c
4070
- ], g = Math.abs(u - d);
4071
- e.wrap && e.message && (e.message = S.wrapLabel(e.message, h.getMax(g + 2 * Z.wrapPadding, Z.width), Pe(Z)));
4072
- let _ = S.calculateTextDimensions(e.message, Pe(Z));
4073
+ s
4074
+ ], h = Math.abs(l - u);
4075
+ e.wrap && e.message && (e.message = S.wrapLabel(e.message, m.getMax(h + 2 * Z.wrapPadding, Z.width), Pe(Z)));
4076
+ let g = S.calculateTextDimensions(e.message, Pe(Z));
4073
4077
  return {
4074
- width: h.getMax(e.wrap ? 0 : _.width + 2 * Z.wrapPadding, g + 2 * Z.wrapPadding, Z.width),
4078
+ width: m.getMax(e.wrap ? 0 : g.width + 2 * Z.wrapPadding, h + 2 * Z.wrapPadding, Z.width),
4075
4079
  height: 0,
4076
- startx: u,
4077
- stopx: d,
4080
+ startx: l,
4081
+ stopx: u,
4078
4082
  starty: 0,
4079
4083
  stopy: 0,
4080
4084
  message: e.message,
4081
4085
  type: e.type,
4082
4086
  wrap: e.wrap,
4083
- fromBounds: Math.min.apply(null, m),
4084
- toBounds: Math.max.apply(null, m)
4087
+ fromBounds: Math.min.apply(null, p),
4088
+ toBounds: Math.max.apply(null, p)
4085
4089
  };
4086
- }, "buildMessageModel"), it = /* @__PURE__ */ t(async function(t, n, r, i) {
4090
+ }, "buildMessageModel"), it = /* @__PURE__ */ b(async function(t, n, r, i) {
4087
4091
  let a = {}, o = [], s, c, l;
4088
4092
  for (let e of t) {
4089
4093
  switch (e.type) {
@@ -4136,10 +4140,10 @@ var Xe = /* @__PURE__ */ t(async function(t, n, i) {
4136
4140
  e.placement === void 0 ? (l = rt(e, n, i), e.msgModel = l, l.startx && l.stopx && o.length > 0 && o.forEach((t) => {
4137
4141
  if (s = t, l.startx === l.stopx) {
4138
4142
  let t = n.get(e.from), r = n.get(e.to);
4139
- s.from = h.getMin(t.x - l.width / 2, t.x - t.width / 2, s.from), s.to = h.getMax(r.x + l.width / 2, r.x + t.width / 2, s.to), s.width = h.getMax(s.width, Math.abs(s.to - s.from)) - Z.labelBoxWidth;
4140
- } 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;
4143
+ s.from = m.getMin(t.x - l.width / 2, t.x - t.width / 2, s.from), s.to = m.getMax(r.x + l.width / 2, r.x + t.width / 2, s.to), s.width = m.getMax(s.width, Math.abs(s.to - s.from)) - Z.labelBoxWidth;
4144
+ } else s.from = m.getMin(l.startx, s.from), s.to = m.getMax(l.stopx, s.to), s.width = m.getMax(s.width, l.width) - Z.labelBoxWidth;
4141
4145
  })) : (c = await Xe(e, n, i), e.noteModel = c, o.forEach((e) => {
4142
- 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;
4146
+ s = e, s.from = m.getMin(s.from, c.startx), s.to = m.getMax(s.to, c.startx + c.width), s.width = m.getMax(s.width, Math.abs(s.from - s.to)) - Z.labelBoxWidth;
4143
4147
  }));
4144
4148
  }
4145
4149
  return Q.activations = [], e.debug("Loop type widths:", a), a;
@@ -4156,8 +4160,8 @@ var Xe = /* @__PURE__ */ t(async function(t, n, i) {
4156
4160
  draw: Ke
4157
4161
  },
4158
4162
  styles: ne,
4159
- init: /* @__PURE__ */ t((e) => {
4160
- e.sequence ||= {}, e.wrap && (e.sequence.wrap = e.wrap, a({ sequence: { wrap: e.wrap } }));
4163
+ init: /* @__PURE__ */ b((e) => {
4164
+ e.sequence ||= {}, e.wrap && (e.sequence.wrap = e.wrap, i({ sequence: { wrap: e.wrap } }));
4161
4165
  }, "init")
4162
4166
  };
4163
4167
  //#endregion