@inkeep/open-knowledge 0.3.0 → 0.4.0-beta.6

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 (571) hide show
  1. package/dist/THIRD_PARTY_NOTICES.md +658 -0
  2. package/dist/alias-JE7RI5QX-Bia4gLMF.mjs +1 -0
  3. package/dist/assets/skills/open-knowledge/SKILL.md +145 -52
  4. package/dist/awk2-POPGKRAI-DDrFV-7v.mjs +1 -0
  5. package/dist/{banner-BxI1wnW9.mjs → banner-DdbR6AZr.mjs} +2 -2
  6. package/dist/base64-4YMZCVJ5-DDKKOjMm.mjs +1 -0
  7. package/dist/basename-AA2KJYZQ-BK5zVs3W.mjs +1 -0
  8. package/dist/bash-IJWYRKFO-B9r1a0X9.mjs +1 -0
  9. package/dist/build-B6buVrsB.mjs +2 -0
  10. package/dist/cat-RDUMLXKC-CeNrSElK.mjs +1 -0
  11. package/dist/chmod-SYMGL4JA-DFJ4ylQU.mjs +1 -0
  12. package/dist/{chokidar-CblsKfnx.mjs → chokidar-CxU7f6JW.mjs} +1 -1
  13. package/dist/{chunk-24IMIIXA-Bz7rlZT3.mjs → chunk-24IMIIXA-B6yIPkk2.mjs} +2 -2
  14. package/dist/{chunk-3THT3N7L-klp8GP84.mjs → chunk-3THT3N7L-DztAF386.mjs} +1 -1
  15. package/dist/{chunk-3ZUFRYJ4-C93H8j0V.mjs → chunk-3ZUFRYJ4-qsYuZX7b.mjs} +1 -1
  16. package/dist/{chunk-44UOCSGV-BUBpWxXm.mjs → chunk-44UOCSGV-CaFxJDHm.mjs} +1 -1
  17. package/dist/{chunk-4GTNDTRF-_OVmXcJ-.mjs → chunk-4GTNDTRF-PuLVuVJW.mjs} +2 -2
  18. package/dist/{chunk-4HHKTUW3-Dm69hDaZ.mjs → chunk-4HHKTUW3-CQ53AiA_.mjs} +1 -1
  19. package/dist/{chunk-4Q4SM6WR-DDQRsilN.mjs → chunk-4Q4SM6WR-BlQvqCag.mjs} +2 -2
  20. package/dist/{chunk-55VFSPNA-DVZfQAzN.mjs → chunk-55VFSPNA-DLwfww5b.mjs} +2 -2
  21. package/dist/{chunk-5QMZ5MUS-DWTkM0vM.mjs → chunk-5QMZ5MUS-CAp625aG.mjs} +2 -2
  22. package/dist/{chunk-5QVNJEHU-BvsipSFW.mjs → chunk-5QVNJEHU-dbrKfPGl.mjs} +2 -2
  23. package/dist/{chunk-5V6VZH6T-BCr5_GDF.mjs → chunk-5V6VZH6T-DMPvCPbn.mjs} +2 -2
  24. package/dist/{chunk-62RKD26F-D-luOa0m.mjs → chunk-62RKD26F-B9la0pfD.mjs} +2 -2
  25. package/dist/{chunk-64BAICW3-CTJNEx4Q.mjs → chunk-64BAICW3-D92CLSK-.mjs} +2 -2
  26. package/dist/{chunk-74CEPOFO-D1bzz49u.mjs → chunk-74CEPOFO-BcZUJMO1.mjs} +1 -1
  27. package/dist/{chunk-7L36YK2X-RiPZFKaV.mjs → chunk-7L36YK2X-D7Z_Qw_C.mjs} +1 -1
  28. package/dist/{chunk-7TSDKFEO-a-GUGBTu.mjs → chunk-7TSDKFEO-DUQhJkDy.mjs} +1 -1
  29. package/dist/{chunk-A4HU7SVR-hefV_YmW.mjs → chunk-A4HU7SVR-DKLaJeys.mjs} +1 -1
  30. package/dist/{chunk-A4JSPFCI-U-xWmMMC.mjs → chunk-A4JSPFCI-CEm2r8SB.mjs} +2 -2
  31. package/dist/{chunk-A5O5YHGN-C7BVq0eF.mjs → chunk-A5O5YHGN-DvJz5Cpw.mjs} +2 -2
  32. package/dist/{chunk-A65PWWJC-D7J5l9eq.mjs → chunk-A65PWWJC-DV6RO_es.mjs} +2 -2
  33. package/dist/{chunk-A7A2DBEE-PLfkXLI4.mjs → chunk-A7A2DBEE-dTNL-45u.mjs} +1 -1
  34. package/dist/{chunk-A7ICOL4V-Drb3XsEL.mjs → chunk-A7ICOL4V-BvXPAaHu.mjs} +2 -2
  35. package/dist/{chunk-ALLTKNUZ-BMiTDN50.mjs → chunk-ALLTKNUZ-Cu6JFoC4.mjs} +2 -2
  36. package/dist/{chunk-APT7OOP2-CXHnSuct.mjs → chunk-APT7OOP2-DmUrFuRy.mjs} +2 -2
  37. package/dist/{chunk-BBXLRYSX-DURjrblE.mjs → chunk-BBXLRYSX-K758HlCs.mjs} +2 -2
  38. package/dist/{chunk-BRGMQKJV-CdrkqzRA.mjs → chunk-BRGMQKJV-BXc-9Cgj.mjs} +3 -3
  39. package/dist/{chunk-CR5AFCPT-ROmyDFrB.mjs → chunk-CR5AFCPT-DxNsgM0M.mjs} +2 -2
  40. package/dist/{chunk-CWQS3NFK-DFdwmFxJ.mjs → chunk-CWQS3NFK-Co4ALolT.mjs} +1 -1
  41. package/dist/{chunk-D4J545R4-C8nMOauR.mjs → chunk-D4J545R4-DkHLjHX6.mjs} +2 -2
  42. package/dist/{chunk-D6CWQ5DW-B-J4LN9N.mjs → chunk-D6CWQ5DW-7lvT8dGP.mjs} +2 -2
  43. package/dist/{chunk-D7MEQ3VN-Csvth_Ss.mjs → chunk-D7MEQ3VN-D8jJZr4A.mjs} +2 -2
  44. package/dist/{chunk-DCAAORBQ-BdrR5ttw.mjs → chunk-DCAAORBQ-C3s1D8OY.mjs} +2 -2
  45. package/dist/{chunk-DXB73IDG-C774okS0.mjs → chunk-DXB73IDG-DIKSLkPq.mjs} +1 -1
  46. package/dist/{chunk-EEXR5ZDP-C5AJH114.mjs → chunk-EEXR5ZDP-CETL3_Uw.mjs} +1 -1
  47. package/dist/{chunk-EIZGF4BS-8bsVXqW0.mjs → chunk-EIZGF4BS-DOoQW9jQ.mjs} +2 -2
  48. package/dist/{chunk-F23WWYKW-DST0dB7V.mjs → chunk-F23WWYKW-BK2tpXPf.mjs} +2 -2
  49. package/dist/{chunk-F55TLFGB-DqkrAMO5.mjs → chunk-F55TLFGB-Vy5RU2P3.mjs} +2 -2
  50. package/dist/{chunk-FEIOJCZD-C4x0A4rb.mjs → chunk-FEIOJCZD-C25Und0M.mjs} +2 -2
  51. package/dist/{chunk-GCTKCWKD-Deqi1D_N.mjs → chunk-GCTKCWKD-Di-RB9Qt.mjs} +1 -1
  52. package/dist/{chunk-GFQRA5P5-1fzItQ8F.mjs → chunk-GFQRA5P5-DnjwTqP3.mjs} +1 -1
  53. package/dist/{chunk-GOV5EKKI-PN17n-Z0.mjs → chunk-GOV5EKKI-CKV9jOGv.mjs} +2 -2
  54. package/dist/{chunk-GXVXFKBA-993FoPmq.mjs → chunk-GXVXFKBA-CUKDClxt.mjs} +2 -2
  55. package/dist/{chunk-HDQ56CKY-pGV4pOJA.mjs → chunk-HDQ56CKY-MTQ75a8z.mjs} +2 -2
  56. package/dist/{chunk-HJQJAYMS-Ci3vsKQW.mjs → chunk-HJQJAYMS-D-8Vc6Zb.mjs} +1 -1
  57. package/dist/{chunk-HJWBQKYG-UZig4wUt.mjs → chunk-HJWBQKYG-XrOcsn2f.mjs} +2 -2
  58. package/dist/{chunk-HWBSOZZR-Dikp87Ww.mjs → chunk-HWBSOZZR-BZF8XsyZ.mjs} +2 -2
  59. package/dist/{chunk-HWKDQ44K-CPSjqtR_.mjs → chunk-HWKDQ44K-wgmyck2O.mjs} +2 -2
  60. package/dist/{chunk-I57KEIP3-B1DoH8rp.mjs → chunk-I57KEIP3-DipCOPKf.mjs} +2 -2
  61. package/dist/{chunk-IPJHKYVM-BbWncVr2.mjs → chunk-IPJHKYVM-C3IodQq7.mjs} +1 -1
  62. package/dist/{chunk-J642UCRS-DB77Y2Wt.mjs → chunk-J642UCRS-YiNealfn.mjs} +2 -2
  63. package/dist/{chunk-JVPRLUMK-DnQCNjpq.mjs → chunk-JVPRLUMK-VMFWXimu.mjs} +2 -2
  64. package/dist/{chunk-KMEYNNUA-DfdK88O_.mjs → chunk-KMEYNNUA-pRogdye4.mjs} +2 -2
  65. package/dist/{chunk-LL3S3NLB-DxXgE3kY.mjs → chunk-LL3S3NLB-ByBS5IDP.mjs} +2 -2
  66. package/dist/{chunk-LPQPILI2-BXfU9TgM.mjs → chunk-LPQPILI2-FRQB9gt5.mjs} +2 -2
  67. package/dist/{chunk-LTZRCH7N-GAjTFNwG.mjs → chunk-LTZRCH7N-46S7WKw8.mjs} +2 -2
  68. package/dist/{chunk-LWEGUNWT-BALY4RLC.mjs → chunk-LWEGUNWT-DdGmM3wr.mjs} +2 -2
  69. package/dist/{chunk-MDDMCKUK-D6GWoJsI.mjs → chunk-MDDMCKUK-CuRdI1Uv.mjs} +2 -2
  70. package/dist/{chunk-MDLLFABN-oBQf6bGE.mjs → chunk-MDLLFABN-Wd1iVjXi.mjs} +2 -2
  71. package/dist/{chunk-MHTUABJP-dKmK6Hw7.mjs → chunk-MHTUABJP-BWrqic3t.mjs} +1 -1
  72. package/dist/{chunk-MIZPJHVH-z-geAni9.mjs → chunk-MIZPJHVH-DWdPvcYR.mjs} +2 -2
  73. package/dist/{chunk-MLXIYONF-DB-C8Hx8.mjs → chunk-MLXIYONF-CiCzoeGt.mjs} +2 -2
  74. package/dist/{chunk-MYE6AGBJ-B4pRo9ma.mjs → chunk-MYE6AGBJ-DJo74dVC.mjs} +2 -2
  75. package/dist/{chunk-NAERJDUW-CX0lf-xx.mjs → chunk-NAERJDUW-CIHrNgJB.mjs} +2 -2
  76. package/dist/{chunk-NCNPKYJZ-BFGan4lR.mjs → chunk-NCNPKYJZ-BVljycUZ.mjs} +2 -2
  77. package/dist/{chunk-NUYSJFDK-D2NXm2ND.mjs → chunk-NUYSJFDK-BTseBdxv.mjs} +2 -2
  78. package/dist/{chunk-NYQYO467-Degkom4D.mjs → chunk-NYQYO467-BgXuDHUQ.mjs} +2 -2
  79. package/dist/{chunk-OARHFVLG-CY8D2Qov.mjs → chunk-OARHFVLG-Cr0x3Si_.mjs} +2 -2
  80. package/dist/{chunk-OCLXQMOG-BMsyLQhm.mjs → chunk-OCLXQMOG-BW6rwyzS.mjs} +2 -2
  81. package/dist/{chunk-OCS6LSEM-BHslttnj.mjs → chunk-OCS6LSEM-D7VAOziZ.mjs} +2 -2
  82. package/dist/{chunk-OJDRYQWQ-BV5MVRVg.mjs → chunk-OJDRYQWQ-ikvLWpfV.mjs} +1 -1
  83. package/dist/{chunk-OL3S66CO-Bmgu4tW4.mjs → chunk-OL3S66CO-CQnF8cPH.mjs} +2 -2
  84. package/dist/{chunk-PBXLG62G-lGjqkk78.mjs → chunk-PBXLG62G-CgbPJTiw.mjs} +2 -2
  85. package/dist/{chunk-PP6PSHAB-DMC_XCfO.mjs → chunk-PP6PSHAB-CO4MYU__.mjs} +1 -1
  86. package/dist/{chunk-PYSFUGCK-CY7pclEB.mjs → chunk-PYSFUGCK-DsRn64Ef.mjs} +2 -2
  87. package/dist/{chunk-QCDB2VPH-D1RuXtOm.mjs → chunk-QCDB2VPH-BUMOhlW7.mjs} +2 -2
  88. package/dist/{chunk-QJ7O6ZN3-BH67tCjg.mjs → chunk-QJ7O6ZN3-F0_rcDPM.mjs} +2 -2
  89. package/dist/{chunk-R6QSAL5T-CtbJTvt9.mjs → chunk-R6QSAL5T-CeW6f7-x.mjs} +1 -1
  90. package/dist/{chunk-R6VWJ2ZL-B0CcMPyK.mjs → chunk-R6VWJ2ZL-FwG_Za20.mjs} +1 -1
  91. package/dist/{chunk-RPNGRAAP-BughPjdR.mjs → chunk-RPNGRAAP-BmkapBPD.mjs} +2 -2
  92. package/dist/{chunk-SDNKECQQ-C3GEf3VZ.mjs → chunk-SDNKECQQ-DkebEzkd.mjs} +2 -2
  93. package/dist/{chunk-SYMJJMQ4-CWTh95-4.mjs → chunk-SYMJJMQ4-DOZMaECk.mjs} +2 -2
  94. package/dist/{chunk-T56QNPHK-DlKQeuXU.mjs → chunk-T56QNPHK-DPXaSSfC.mjs} +2 -2
  95. package/dist/{chunk-TLSUDHID-B8UnqY4U.mjs → chunk-TLSUDHID-BovZg0r1.mjs} +2 -2
  96. package/dist/{chunk-TOMNU26N-BcdbBQ2p.mjs → chunk-TOMNU26N-AAglMy4J.mjs} +2 -2
  97. package/dist/{chunk-TXBZCHCQ-l48TczF5.mjs → chunk-TXBZCHCQ-WeVWfqYv.mjs} +2 -2
  98. package/dist/{chunk-UNYNJIFU-DwPQMz0F.mjs → chunk-UNYNJIFU-CqGlXAg7.mjs} +3 -3
  99. package/dist/{chunk-V7TAPXDL-CnKUp2df.mjs → chunk-V7TAPXDL-DQgGPvBY.mjs} +2 -2
  100. package/dist/{chunk-VJFXDYWH-IiUXkKX0.mjs → chunk-VJFXDYWH-DIo0Ia0_.mjs} +2 -2
  101. package/dist/{chunk-VLGZJRPG-D4NVKJYL.mjs → chunk-VLGZJRPG-DymOu90-.mjs} +2 -2
  102. package/dist/{chunk-VOBGTVA6-BT7gUxqf.mjs → chunk-VOBGTVA6-Bfa1NTzt.mjs} +2 -2
  103. package/dist/{chunk-VYOJP4TV-BvibOnKG.mjs → chunk-VYOJP4TV-PBsHe2md.mjs} +2 -2
  104. package/dist/{chunk-WKFATFPP-DCZdrA8x.mjs → chunk-WKFATFPP-KO2zkfs2.mjs} +2 -2
  105. package/dist/{chunk-X2AJGDEF-BaH6i1Rq.mjs → chunk-X2AJGDEF-D5w6wtaX.mjs} +1 -1
  106. package/dist/{chunk-XHM67O4N-Cg35xc6b.mjs → chunk-XHM67O4N-akBjDPaR.mjs} +1 -1
  107. package/dist/{chunk-XKQRETAK-cVWA9gEB.mjs → chunk-XKQRETAK-RHzVmuiF.mjs} +2 -2
  108. package/dist/{chunk-XORM457F-CRToN1RQ.mjs → chunk-XORM457F-wr_DBBnV.mjs} +2 -2
  109. package/dist/{chunk-XVDPCNWR-CtK-Xs2O.mjs → chunk-XVDPCNWR-DxaG1FfA.mjs} +2 -2
  110. package/dist/{chunk-YCFVLTST-Ox9Z0Nk6.mjs → chunk-YCFVLTST-Dzwevuc3.mjs} +2 -2
  111. package/dist/{chunk-YFG2CMIF-Csgr05KV.mjs → chunk-YFG2CMIF-BoZQym0L.mjs} +2 -2
  112. package/dist/{chunk-YNYSPYQ5-BpP11HXS.mjs → chunk-YNYSPYQ5-DesxOVHh.mjs} +1 -1
  113. package/dist/{chunk-YS3AZT3J-BEZxz_aQ.mjs → chunk-YS3AZT3J-CBc9LHIy.mjs} +2 -2
  114. package/dist/{chunk-YTNYSM6T-DuBR2-TM.mjs → chunk-YTNYSM6T-WMIf3AF8.mjs} +2 -2
  115. package/dist/{chunk-Z6LRHWXI-DbRghyzT.mjs → chunk-Z6LRHWXI-DGTVoTuf.mjs} +2 -2
  116. package/dist/{chunk-Z7JVV2SM-BzR-yvwK.mjs → chunk-Z7JVV2SM-Cb4YKOCM.mjs} +2 -2
  117. package/dist/clear-5CZ5X4YR-CadVxKrq.mjs +1 -0
  118. package/dist/cli.mjs +58 -1400
  119. package/dist/colors-BNufdynn.mjs +2 -0
  120. package/dist/colors-T3xmlXQT.mjs +1 -0
  121. package/dist/column-WLPMMSTS-6o4DDsDk.mjs +1 -0
  122. package/dist/comm-5SLSESQG-C2GatHU6.mjs +1 -0
  123. package/dist/config-schema.json +87 -0
  124. package/dist/config.project-local.schema.json +30 -0
  125. package/dist/config.project.schema.json +59 -0
  126. package/dist/config.user.schema.json +58 -0
  127. package/dist/constants-Dc6GZ6j9.mjs +2 -0
  128. package/dist/cp-XOYR4ABJ-DmS6dER-.mjs +1 -0
  129. package/dist/{curl-47BFPSFW-Kn_Na_aU.mjs → curl-47BFPSFW-C2kRcGkX.mjs} +2 -2
  130. package/dist/cut-OPC3VAGB-s4tQWhL5.mjs +1 -0
  131. package/dist/date-DD7FVA2V-Dubgjr6a.mjs +1 -0
  132. package/dist/diff-HJF2MPDN-DjGBLQph.mjs +1 -0
  133. package/dist/dirname-LEMTZZFS-B477CImE.mjs +1 -0
  134. package/dist/dist-B6pNPboH.mjs +1609 -0
  135. package/dist/dist-DVM7wH81.mjs +359 -0
  136. package/dist/dist-DXLSMgBY.mjs +1 -0
  137. package/dist/du-WO2ENHXQ-C4c5wweW.mjs +1 -0
  138. package/dist/echo-O45JWWI2-TudodhHR.mjs +1 -0
  139. package/dist/env-5EPCWSXR-CTcNEMpy.mjs +1 -0
  140. package/dist/{esm-BFkWzFey.mjs → esm-BbkJd7ro.mjs} +1 -1
  141. package/dist/{esm-wByiX8MO.mjs → esm-CEs3LWY3.mjs} +2 -2
  142. package/dist/{execAsync-0jii24p9.mjs → execAsync-CulVJBMN.mjs} +1 -1
  143. package/dist/{execAsync-Czqc-yAz.mjs → execAsync-CzW9fUYQ.mjs} +1 -1
  144. package/dist/{execAsync-DgmLXmTx.mjs → execAsync-DuQoqWaW.mjs} +1 -1
  145. package/dist/expand-DTNXU4LQ-BT6M2Tdc.mjs +1 -0
  146. package/dist/expansion-ENLSRCXJ-Cy7j--Iy.mjs +1 -0
  147. package/dist/expr-5T3UU5KE-D2Kr5nuJ.mjs +1 -0
  148. package/dist/file-ZIGAJ4YS-BH3jYcuM.mjs +1 -0
  149. package/dist/find-TPUOAIUQ-RFxkUcGN.mjs +1 -0
  150. package/dist/flag-coverage-QT4N2Z44--nNG-HLV.mjs +2 -0
  151. package/dist/fold-LDSORVYE-CfKQmrJ1.mjs +1 -0
  152. package/dist/{getMachineId-bsd-C1M346yz.mjs → getMachineId-bsd-DAmB-Ym0.mjs} +2 -2
  153. package/dist/{getMachineId-bsd-CPESl3L6.mjs → getMachineId-bsd-FYDP9w5Q.mjs} +2 -2
  154. package/dist/{getMachineId-bsd-DEUypOXJ.mjs → getMachineId-bsd-mPrX3ckm.mjs} +2 -2
  155. package/dist/{getMachineId-darwin-0hBTy7c8.mjs → getMachineId-darwin-B0Qw-MTj.mjs} +2 -2
  156. package/dist/{getMachineId-darwin-CJK3eX9q.mjs → getMachineId-darwin-C79HtyON.mjs} +2 -2
  157. package/dist/{getMachineId-darwin-Vupnt-kR.mjs → getMachineId-darwin-Co8Jnu5v.mjs} +2 -2
  158. package/dist/{getMachineId-linux-BGQn48cN.mjs → getMachineId-linux-BBORs2cS.mjs} +2 -2
  159. package/dist/{getMachineId-linux-CIp07XEX.mjs → getMachineId-linux-BizmCjYq.mjs} +2 -2
  160. package/dist/{getMachineId-linux-B2nkqMir.mjs → getMachineId-linux-BvLCCmKQ.mjs} +2 -2
  161. package/dist/{getMachineId-unsupported-CH1Q20xN.mjs → getMachineId-unsupported-Bgp-Es9j.mjs} +2 -2
  162. package/dist/{getMachineId-unsupported-DfSmC7Gy.mjs → getMachineId-unsupported-CbR45h2D.mjs} +2 -2
  163. package/dist/{getMachineId-unsupported-BnsanXR2.mjs → getMachineId-unsupported-DbGFOAw1.mjs} +2 -2
  164. package/dist/{getMachineId-win-BmmB_8yL.mjs → getMachineId-win-CT_Y5i_4.mjs} +2 -2
  165. package/dist/{getMachineId-win-DlPRChXs.mjs → getMachineId-win-Cy0XHq4X.mjs} +2 -2
  166. package/dist/{getMachineId-win-JnMJbIaW.mjs → getMachineId-win-D5gDnBHa.mjs} +2 -2
  167. package/dist/{git-handle-BhGnmvTB-BMB_49Sb.mjs → git-handle-DwfYp_z--CfyPz4Dz.mjs} +2 -2
  168. package/dist/git-handle-DwfYp_z--DreW3fNC.mjs +1 -0
  169. package/dist/grep-3AIAIJVR-DgQJLmW0.mjs +1 -0
  170. package/dist/gzip-AQXSGOVS-yXjpnIVd.mjs +1 -0
  171. package/dist/head-HT2B6D2J-BR4RHRTk.mjs +1 -0
  172. package/dist/help-VVWX7SA5-M6C6klSC.mjs +1 -0
  173. package/dist/history-J4QRNGRO-C1r7-kvT.mjs +1 -0
  174. package/dist/hostname-BK6HG2DE-BBBcRrtV.mjs +1 -0
  175. package/dist/html-to-markdown-TFCECAGV-B9oYuMVf.mjs +1 -0
  176. package/dist/index.d.mts +9 -2278
  177. package/dist/index.mjs +1 -1
  178. package/dist/init-B7qJnXKB.mjs +397 -0
  179. package/dist/init-DiH9oQ6_.mjs +1 -0
  180. package/dist/{is-object-BNVklKxg.mjs → is-object-DF0ZeuvD.mjs} +1 -1
  181. package/dist/join-GG2LDHE5-xeTE0Mi4.mjs +1 -0
  182. package/dist/jq-ODXZBPLY-C5v6qNu_.mjs +1 -0
  183. package/dist/{js-exec-M6UR76J5-DSk5_wnx.mjs → js-exec-M6UR76J5-IyD-lpzv.mjs} +3 -3
  184. package/dist/{lib-Dl2j2VNl.mjs → lib-BOCdCkg7.mjs} +1 -1
  185. package/dist/{libesm-DC4M2SkF.mjs → libesm-YL3Bqolr.mjs} +1 -1
  186. package/dist/ln-4TRFBYAT-4XMTO1OQ.mjs +1 -0
  187. package/dist/loader-BQf8AJXb.mjs +4 -0
  188. package/dist/loader-C8lkPKn8.mjs +1 -0
  189. package/dist/ls-KSXFZCWH-Bw_Cf-VY.mjs +1 -0
  190. package/dist/{lzma-0LJzVZpl.mjs → lzma-vr8hBkhz.mjs} +2 -2
  191. package/dist/md5sum-INMIK4DX-CAIH4ZVI.mjs +1 -0
  192. package/dist/mkdir-TDEMSB6C-D1oUG8Jf.mjs +1 -0
  193. package/dist/mrmime-C2W7cgq2.mjs +2 -0
  194. package/dist/mv-Z6MORUFL-CN471qcL.mjs +1 -0
  195. package/dist/nl-U5YJDM32-CFzXKze3.mjs +1 -0
  196. package/dist/od-VJEF2UR5-C2R4Accu.mjs +1 -0
  197. package/dist/{open-browser-BzMQ6cLf.mjs → open-browser-BZZK_gJj.mjs} +1 -1
  198. package/dist/paste-7N6AFSDS-bUl2Dwz3.mjs +1 -0
  199. package/dist/preview-CN1rHXBb.mjs +1 -0
  200. package/dist/preview-DUTos2Es.mjs +3 -0
  201. package/dist/printf-CX64KX2P-Ce--gWAq.mjs +1 -0
  202. package/dist/public/assets/ActivityModeContent-1ymqlcHI.js +2 -0
  203. package/dist/public/assets/{ActivityPanelDiffView-D-EUyEh6.js → ActivityPanelDiffView-DoHWP1ak.js} +1 -1
  204. package/dist/public/assets/DocumentContext-bvfr7pL2.js +37 -0
  205. package/dist/public/assets/GraphPanel-DdVygxYk.js +46 -0
  206. package/dist/public/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
  207. package/dist/public/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
  208. package/dist/public/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
  209. package/dist/public/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
  210. package/dist/public/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
  211. package/dist/public/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
  212. package/dist/public/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
  213. package/dist/public/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
  214. package/dist/public/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
  215. package/dist/public/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
  216. package/dist/public/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
  217. package/dist/public/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
  218. package/dist/public/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
  219. package/dist/public/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
  220. package/dist/public/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
  221. package/dist/public/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
  222. package/dist/public/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
  223. package/dist/public/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
  224. package/dist/public/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
  225. package/dist/public/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
  226. package/dist/public/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
  227. package/dist/public/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
  228. package/dist/public/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
  229. package/dist/public/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
  230. package/dist/public/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
  231. package/dist/public/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
  232. package/dist/public/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
  233. package/dist/public/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
  234. package/dist/public/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
  235. package/dist/public/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
  236. package/dist/public/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
  237. package/dist/public/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
  238. package/dist/public/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
  239. package/dist/public/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
  240. package/dist/public/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
  241. package/dist/public/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
  242. package/dist/public/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
  243. package/dist/public/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
  244. package/dist/public/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
  245. package/dist/public/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
  246. package/dist/public/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
  247. package/dist/public/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
  248. package/dist/public/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
  249. package/dist/public/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
  250. package/dist/public/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
  251. package/dist/public/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
  252. package/dist/public/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
  253. package/dist/public/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
  254. package/dist/public/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
  255. package/dist/public/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
  256. package/dist/public/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
  257. package/dist/public/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
  258. package/dist/public/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
  259. package/dist/public/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
  260. package/dist/public/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
  261. package/dist/public/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
  262. package/dist/public/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
  263. package/dist/public/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
  264. package/dist/public/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
  265. package/dist/public/assets/McpConsentDialogBody-CJwPf_uv.js +1 -0
  266. package/dist/public/assets/OutlinePanel-dumodx-h.js +2 -0
  267. package/dist/public/assets/SettingsPane-CtgbQZxP.js +6 -0
  268. package/dist/public/assets/SourceEditor-CR_7DOAH.js +2 -0
  269. package/dist/public/assets/__vite-browser-external-FEGw1XPd.js +1 -0
  270. package/dist/public/assets/_baseFor-CX8dsZbW.js +1 -0
  271. package/dist/public/assets/{agent-presence-BXsx4eTl.js → agent-presence-Ds2n3U5P.js} +1 -1
  272. package/dist/public/assets/arc-BL_OKZmE.js +1 -0
  273. package/dist/public/assets/architecture-YZFGNWBL-DVxNz-zn.js +1 -0
  274. package/dist/public/assets/architectureDiagram-Q4EWVU46-BKKtWWhU.js +36 -0
  275. package/dist/public/assets/array-X0JlPOfd.js +1 -0
  276. package/dist/public/assets/blockDiagram-DXYQGD6D-fzO4vZye.js +132 -0
  277. package/dist/public/assets/{button-BPXuMr5W.js → button-BsFpqlpT.js} +1 -1
  278. package/dist/public/assets/c4Diagram-AHTNJAMY-BkXqEjiP.js +10 -0
  279. package/dist/public/assets/channel-CR-xJel6.js +1 -0
  280. package/dist/public/assets/chunk-2KRD3SAO-DQj0pw3H.js +1 -0
  281. package/dist/public/assets/chunk-336JU56O-CBajDulv.js +2 -0
  282. package/dist/public/assets/chunk-426QAEUC-BoBKbVmN.js +1 -0
  283. package/dist/public/assets/chunk-4BX2VUAB-D8pbSOlJ.js +1 -0
  284. package/dist/public/assets/chunk-4TB4RGXK-mA6CujZO.js +206 -0
  285. package/dist/public/assets/chunk-55IACEB6-CqVyNzhX.js +1 -0
  286. package/dist/public/assets/chunk-5FUZZQ4R-BVDLgFg2.js +62 -0
  287. package/dist/public/assets/chunk-5PVQY5BW-Cxi5d3lT.js +2 -0
  288. package/dist/public/assets/chunk-67CJDMHE-CdrAY8qZ.js +1 -0
  289. package/dist/public/assets/chunk-7N4EOEYR-CJ3HBg3c.js +1 -0
  290. package/dist/public/assets/chunk-AA7GKIK3-D0ckJAXt.js +1 -0
  291. package/dist/public/assets/chunk-BSJP7CBP-D4bNhKd7.js +1 -0
  292. package/dist/public/assets/chunk-CFjPhJqf.js +1 -0
  293. package/dist/public/assets/chunk-CIAEETIT-D1Fpp2md.js +1 -0
  294. package/dist/public/assets/chunk-EDXVE4YY-ChhT3Iyo.js +1 -0
  295. package/dist/public/assets/chunk-ENJZ2VHE-Bby39so4.js +10 -0
  296. package/dist/public/assets/chunk-FMBD7UC4-pRkDIOZn.js +15 -0
  297. package/dist/public/assets/chunk-FOC6F5B3-BsB4oTj4.js +1 -0
  298. package/dist/public/assets/chunk-ICPOFSXX-CrnuSfeJ.js +122 -0
  299. package/dist/public/assets/chunk-K5T4RW27-CtREah_n.js +94 -0
  300. package/dist/public/assets/chunk-KGLVRYIC-DtDxSfKu.js +1 -0
  301. package/dist/public/assets/chunk-LIHQZDEY-D63TRk6j.js +1 -0
  302. package/dist/public/assets/chunk-ORNJ4GCN-Dv2PvYVu.js +1 -0
  303. package/dist/public/assets/chunk-OYMX7WX6-BhfqKepC.js +231 -0
  304. package/dist/public/assets/chunk-QZHKN3VN-DBRWHtgj.js +1 -0
  305. package/dist/public/assets/chunk-U2HBQHQK-6BAKH95D.js +70 -0
  306. package/dist/public/assets/chunk-X2U36JSP-Cqpkx90-.js +1 -0
  307. package/dist/public/assets/chunk-XPW4576I-DSytTnq4.js +32 -0
  308. package/dist/public/assets/chunk-YZCP3GAM-Dt9awjVh.js +1 -0
  309. package/dist/public/assets/chunk-ZZ45TVLE-JGFITgiO.js +1 -0
  310. package/dist/public/assets/classDiagram-6PBFFD2Q-oopM_Z0m.js +1 -0
  311. package/dist/public/assets/classDiagram-v2-HSJHXN6E-ZAL74u9S.js +1 -0
  312. package/dist/public/assets/clone-C5y6xhRJ.js +1 -0
  313. package/dist/public/assets/colors-XIJoz9Bd.js +1 -0
  314. package/dist/public/assets/{compiler-runtime-Y11fyRVL.js → compiler-runtime-CVnuRdak.js} +1 -1
  315. package/dist/public/assets/config-validation-events-BvuBj41U.js +1 -0
  316. package/dist/public/assets/cose-bilkent-S5V4N54A-B9nG-SHi.js +1 -0
  317. package/dist/public/assets/cytoscape.esm-BkjNfcSF.js +321 -0
  318. package/dist/public/assets/dagre-BEdPLXba.js +1 -0
  319. package/dist/public/assets/dagre-KV5264BT-DKn5nGCC.js +4 -0
  320. package/dist/public/assets/defaultLocale-ZxyFnXCb.js +1 -0
  321. package/dist/public/assets/diagram-5BDNPKRD-BQuwYEd0.js +10 -0
  322. package/dist/public/assets/diagram-G4DWMVQ6-BmzIMyV5.js +24 -0
  323. package/dist/public/assets/diagram-MMDJMWI5-CI5eJfgr.js +43 -0
  324. package/dist/public/assets/diagram-TYMM5635-Cc8TJ7v3.js +24 -0
  325. package/dist/public/assets/dialog-Cv1qneWl.js +45 -0
  326. package/dist/public/assets/{dist-DR1MrLJC.js → dist-B4kUko7n.js} +1 -1
  327. package/dist/public/assets/{dist-BqO6NfD-.js → dist-BH1b1nWB.js} +1 -1
  328. package/dist/public/assets/{dist-DlS42TIP.js → dist-BOapDt7N.js} +1 -1
  329. package/dist/public/assets/dist-CIRuNcH5.js +1 -0
  330. package/dist/public/assets/{dist-GlH2KPqY.js → dist-D08h1pJc.js} +1 -1
  331. package/dist/public/assets/{dist-D2wwoXzm.js → dist-S8LJmtzL.js} +1 -1
  332. package/dist/public/assets/{dist-DeDgmJv2.js → dist-VyzSEzD4.js} +1 -1
  333. package/dist/public/assets/{dist-CgLbXgrr.js → dist-nPpvoMNC.js} +1 -1
  334. package/dist/public/assets/doc-hash-Q6dTjwu5.js +421 -0
  335. package/dist/public/assets/erDiagram-SMLLAGMA-BkrhGWMT.js +85 -0
  336. package/dist/public/assets/flatten-UmyAv3V9.js +1 -0
  337. package/dist/public/assets/flowDiagram-DWJPFMVM-qh62fanI.js +162 -0
  338. package/dist/public/assets/ganttDiagram-T4ZO3ILL-DXuCeCk6.js +292 -0
  339. package/dist/public/assets/gitGraph-7Q5UKJZL-CYhZlmk3.js +1 -0
  340. package/dist/public/assets/gitGraphDiagram-UUTBAWPF-BbcuenPj.js +106 -0
  341. package/dist/public/assets/graphlib-CasrTmMJ.js +1 -0
  342. package/dist/public/assets/image-preview-BJSGEOo4.png +0 -0
  343. package/dist/public/assets/index-B1y9QLHF.js +1858 -0
  344. package/dist/public/assets/index-DoXig4bf.css +1 -0
  345. package/dist/public/assets/info-OMHHGYJF-BslcKZhH.js +1 -0
  346. package/dist/public/assets/infoDiagram-42DDH7IO-WFAMbO2S.js +2 -0
  347. package/dist/public/assets/init-CBj3ecIW.js +1 -0
  348. package/dist/public/assets/isEmpty-DWJlzxR1.js +1 -0
  349. package/dist/public/assets/isObjectLike-AdQZ65l0.js +1 -0
  350. package/dist/public/assets/isSymbol-BP7IOIqG.js +1 -0
  351. package/dist/public/assets/ishikawaDiagram-UXIWVN3A-BJBiReWg.js +70 -0
  352. package/dist/public/assets/journeyDiagram-VCZTEJTY-Boq77pl6.js +139 -0
  353. package/dist/public/assets/kanban-definition-6JOO6SKY-DYMSr18F.js +89 -0
  354. package/dist/public/assets/katex-qwlL5fSd.js +257 -0
  355. package/dist/public/assets/line-_p5Px7MV.js +1 -0
  356. package/dist/public/assets/linear-DwuDS4qT.js +1 -0
  357. package/dist/public/assets/mcp-consent-store-BBTXqzE6.js +1 -0
  358. package/dist/public/assets/mermaid-parser.core-BcBb_Ows.js +4 -0
  359. package/dist/public/assets/mermaid.core-ZLTnLqVQ.js +11 -0
  360. package/dist/public/assets/min-HKuGSUqa.js +1 -0
  361. package/dist/public/assets/mindmap-definition-QFDTVHPH-BSxM4djR.js +96 -0
  362. package/dist/public/assets/now-BBH4UqDm.js +1 -0
  363. package/dist/public/assets/ordinal-CeOFUmRv.js +1 -0
  364. package/dist/public/assets/packet-4T2RLAQJ-QVnYA304.js +1 -0
  365. package/dist/public/assets/{panel-BCRdtBla.js → panel-BgMqDESF.js} +1 -1
  366. package/dist/public/assets/path-rUlDLHdA.js +1 -0
  367. package/dist/public/assets/pdf-a35ddrIO.js +54 -0
  368. package/dist/public/assets/pdf.worker-B1D2UnXD.mjs +63133 -0
  369. package/dist/public/assets/pdf.worker-CM-zAFN-.js +1 -0
  370. package/dist/public/assets/pie-ZZUOXDRM-C61c5byc.js +1 -0
  371. package/dist/public/assets/pieDiagram-DEJITSTG-CHRE_Jie.js +30 -0
  372. package/dist/public/assets/preload-helper-2ej06EnG.js +1 -0
  373. package/dist/public/assets/propagation-api-qAYD7s-v.js +1 -0
  374. package/dist/public/assets/quadrantDiagram-34T5L4WZ-CQkE5TwH.js +7 -0
  375. package/dist/public/assets/radar-PYXPWWZC-CMxjRtd8.js +1 -0
  376. package/dist/public/assets/reduce-DotyoGA7.js +1 -0
  377. package/dist/public/assets/requirementDiagram-MS252O5E-DHK98tKS.js +84 -0
  378. package/dist/public/assets/rough.esm-BFJ-MgcB.js +1 -0
  379. package/dist/public/assets/sankeyDiagram-XADWPNL6-BIXaStZh.js +10 -0
  380. package/dist/public/assets/sequenceDiagram-FGHM5R23-BCNH3kJo.js +157 -0
  381. package/dist/public/assets/src-C9jsS3p4.js +1 -0
  382. package/dist/public/assets/src-zyMpT2LE.js +1 -0
  383. package/dist/public/assets/stateDiagram-FHFEXIEX-BC5mjB6x.js +1 -0
  384. package/dist/public/assets/stateDiagram-v2-QKLJ7IA2-B8L3BBt1.js +1 -0
  385. package/dist/public/assets/stex-BKMR5xQj.js +1 -0
  386. package/dist/public/assets/target-navigation-intent-BfGOumP6.js +1 -0
  387. package/dist/public/assets/telemetry-impl-CMeDUVKn.js +2 -0
  388. package/dist/public/assets/timeline-definition-GMOUNBTQ-VNxUGgXp.js +120 -0
  389. package/dist/public/assets/tooltip-CBGDOTMI.js +1 -0
  390. package/dist/public/assets/trace-api-DPMyR1_m.js +1 -0
  391. package/dist/public/assets/treeView-SZITEDCU-DfSa_Oiv.js +1 -0
  392. package/dist/public/assets/treemap-W4RFUUIX-Cp0s5wEq.js +1 -0
  393. package/dist/public/assets/vennDiagram-DHZGUBPP-DV2Y2j0r.js +34 -0
  394. package/dist/public/assets/video-preview-vLovc_Vy.png +0 -0
  395. package/dist/public/assets/wardley-RL74JXVD-CXcBKCuj.js +1 -0
  396. package/dist/public/assets/wardleyDiagram-NUSXRM2D-C1mMZ3kx.js +20 -0
  397. package/dist/public/assets/xychartDiagram-5P7HB3ND-CxFcwN2X.js +7 -0
  398. package/dist/public/index.html +43 -18
  399. package/dist/pwd-D4OZ7N27-C18XewhV.mjs +1 -0
  400. package/dist/{python3-AUFTPCU6-MeZyx8_A.mjs → python3-AUFTPCU6-BaJugIdp.mjs} +2 -2
  401. package/dist/readlink-MI4GCHJF-CHvs7DDT.mjs +1 -0
  402. package/dist/rev-XOSYPP45-2mnFFZWW.mjs +1 -0
  403. package/dist/rg-FOQSCCX3-BJahNfSe.mjs +1 -0
  404. package/dist/rm-RTZG23RL-D9-0WGRY.mjs +1 -0
  405. package/dist/rmdir-XTQXT7RK-Br7eH9kL.mjs +1 -0
  406. package/dist/{rolldown-runtime-wcPFST8Q-BB0WpHs3.mjs → rolldown-runtime-twds-ZHy-Dxr-RWJs.mjs} +1 -1
  407. package/dist/schemas/v0/config.project-local.schema.json +30 -0
  408. package/dist/schemas/v0/config.project.schema.json +59 -0
  409. package/dist/schemas/v0/config.user.schema.json +58 -0
  410. package/dist/sed-VFTTATXJ-mYhAmixc.mjs +1 -0
  411. package/dist/seq-RN5ZUASB-CKf5MNNO.mjs +1 -0
  412. package/dist/server-lock-D7DXNVql-B5nINglj.mjs +1 -0
  413. package/dist/server-lock-D7DXNVql-BRVVzA6T.mjs +2 -0
  414. package/dist/sha1sum-VJPNLNU6-DuOHap1X.mjs +1 -0
  415. package/dist/sha256sum-PI32XWXY-D9fEipQ7.mjs +1 -0
  416. package/dist/sleep-VZFPZFWA-B1fSoYuO.mjs +1 -0
  417. package/dist/sort-DCNRDA7U-DDCY4JZu.mjs +1 -0
  418. package/dist/split-SITCSYCZ-b9hfEJw7.mjs +1 -0
  419. package/dist/sqlite3-56UMWEY3-BQEx5i3P.mjs +1 -0
  420. package/dist/src-Cak39c0B.mjs +1 -0
  421. package/dist/start-BXk7J0Kh.mjs +1 -0
  422. package/dist/start-D6Ip3u6P.mjs +3 -0
  423. package/dist/stat-BT5A227F-Dzp4sgau.mjs +1 -0
  424. package/dist/strings-7PLOGTPD-DT41jX9d.mjs +1 -0
  425. package/dist/tac-SJGXQ4T2-BpdVoP8b.mjs +1 -0
  426. package/dist/tail-S5ULNTJU-0-sYrYik.mjs +1 -0
  427. package/dist/tar-ANUBEFJY-Wh3na_NU.mjs +1 -0
  428. package/dist/tee-O7VXZDCO-CwnGG0go.mjs +1 -0
  429. package/dist/time-DEUO3QV2-DzkqaQ1k.mjs +1 -0
  430. package/dist/timeout-VRKMCG72-BtPBpIRq.mjs +1 -0
  431. package/dist/touch-DX2IJOQ4-KW0Ui-lB.mjs +1 -0
  432. package/dist/tr-2HXZRDSW-C6Kf0M8T.mjs +1 -0
  433. package/dist/tree-LYXBS7DC-BN1FBqvM.mjs +1 -0
  434. package/dist/true-WHJNXCHG-DxCMVdqj.mjs +1 -0
  435. package/dist/unexpand-RGTMIGZM-DZ4Kf6Xq.mjs +1 -0
  436. package/dist/uniq-SUNANL47-Ceg51JdA.mjs +1 -0
  437. package/dist/wc-TQB3VNOX-BzWNq0MY.mjs +1 -0
  438. package/dist/which-XZHEH76L-DH_U2-Cj.mjs +1 -0
  439. package/dist/whoami-DGKU3D2X-BholYNPM.mjs +1 -0
  440. package/dist/xan-BXDXYEIB-b1eAtgch.mjs +1 -0
  441. package/dist/xan-view-ECQUO7AJ-DWDC57b_.mjs +1 -0
  442. package/dist/xargs-I6EZUCYF-Cov-i7kW.mjs +1 -0
  443. package/dist/yq-MJMAR36V-1r29nH4p.mjs +1 -0
  444. package/package.json +12 -15
  445. package/scripts/build-config-schema.mjs +69 -0
  446. package/scripts/postinstall.mjs +0 -20
  447. package/scripts/probe-exec.ts +7 -10
  448. package/scripts/probe-read-document.ts +1 -13
  449. package/dist/alias-JE7RI5QX-TirEebNy.mjs +0 -1
  450. package/dist/awk2-POPGKRAI-DigGXYmO.mjs +0 -1
  451. package/dist/base64-4YMZCVJ5-B4GnvJtR.mjs +0 -1
  452. package/dist/basename-AA2KJYZQ-DlZHEU5f.mjs +0 -1
  453. package/dist/bash-IJWYRKFO-BA1gxmDh.mjs +0 -1
  454. package/dist/build-D4l8tfO0.mjs +0 -2
  455. package/dist/cat-RDUMLXKC-CAQOzqfy.mjs +0 -1
  456. package/dist/chmod-SYMGL4JA-BC2VVHCa.mjs +0 -1
  457. package/dist/clear-5CZ5X4YR-B5oRhK00.mjs +0 -1
  458. package/dist/colors-BnZ-i-vb.mjs +0 -1
  459. package/dist/colors-DoPZvo1q.mjs +0 -2
  460. package/dist/column-WLPMMSTS-fFssyAvW.mjs +0 -1
  461. package/dist/comm-5SLSESQG-DRcwK9Gt.mjs +0 -1
  462. package/dist/constants-ekUaxW9F.mjs +0 -2
  463. package/dist/cp-XOYR4ABJ-BUZu7KNi.mjs +0 -1
  464. package/dist/cut-OPC3VAGB-BIRZEN2Y.mjs +0 -1
  465. package/dist/date-DD7FVA2V-DRxppxbV.mjs +0 -1
  466. package/dist/diff-HJF2MPDN-Yo3lE_58.mjs +0 -1
  467. package/dist/dirname-LEMTZZFS-2cTXnmQf.mjs +0 -1
  468. package/dist/dist-0qFIeeXA.mjs +0 -142
  469. package/dist/dist-BCyi1oM7.mjs +0 -116
  470. package/dist/dist-CXdg7KnM.mjs +0 -199
  471. package/dist/dist-Ct-gJ7iD.mjs +0 -1
  472. package/dist/du-WO2ENHXQ-B5uda2-L.mjs +0 -1
  473. package/dist/echo-O45JWWI2-B9QCpaZR.mjs +0 -1
  474. package/dist/env-5EPCWSXR--4eujSrM.mjs +0 -1
  475. package/dist/expand-DTNXU4LQ-BWwDphsm.mjs +0 -1
  476. package/dist/expansion-ENLSRCXJ-BBTiIHJS.mjs +0 -1
  477. package/dist/expr-5T3UU5KE-D5OdgUlD.mjs +0 -1
  478. package/dist/file-ZIGAJ4YS-zZfB3nws.mjs +0 -1
  479. package/dist/find-TPUOAIUQ-DaW1-9Vm.mjs +0 -1
  480. package/dist/flag-coverage-QT4N2Z44-B8zntJyb.mjs +0 -2
  481. package/dist/fold-LDSORVYE-CAfX9d8n.mjs +0 -1
  482. package/dist/git-handle-BhGnmvTB-Di8EsrYa.mjs +0 -1
  483. package/dist/grep-3AIAIJVR-C9A_aSMK.mjs +0 -1
  484. package/dist/gzip-AQXSGOVS-CL228lzk.mjs +0 -1
  485. package/dist/head-HT2B6D2J-DyNkF3aY.mjs +0 -1
  486. package/dist/help-VVWX7SA5-D5WzpTIY.mjs +0 -1
  487. package/dist/history-J4QRNGRO-DUTsR2Sf.mjs +0 -1
  488. package/dist/hostname-BK6HG2DE-zmNkhqtV.mjs +0 -1
  489. package/dist/html-to-markdown-TFCECAGV-Ux5cbjMV.mjs +0 -1
  490. package/dist/init-Ccjx3YjD.mjs +0 -1
  491. package/dist/init-DOTyF3_B.mjs +0 -1
  492. package/dist/init-Dc2dCgGt.mjs +0 -255
  493. package/dist/init-DeV-MdCs.mjs +0 -120
  494. package/dist/join-GG2LDHE5-B6C3-ghI.mjs +0 -1
  495. package/dist/jq-ODXZBPLY-Uj_VahOC.mjs +0 -1
  496. package/dist/keepalive-CZzB5k1h.mjs +0 -2
  497. package/dist/ln-4TRFBYAT-DiYK6FgR.mjs +0 -1
  498. package/dist/loader-Bveym9GJ.mjs +0 -1
  499. package/dist/loader-C3jzK-Dy.mjs +0 -3
  500. package/dist/ls-KSXFZCWH-B0la1Q-P.mjs +0 -1
  501. package/dist/md5sum-INMIK4DX-DAG8dmoX.mjs +0 -1
  502. package/dist/mkdir-TDEMSB6C-CRMB4_AE.mjs +0 -1
  503. package/dist/mv-Z6MORUFL-1iTO8NY5.mjs +0 -1
  504. package/dist/nl-U5YJDM32-IRiMqQcZ.mjs +0 -1
  505. package/dist/od-VJEF2UR5-PasvdXXR.mjs +0 -1
  506. package/dist/paste-7N6AFSDS-C3M5_YM6.mjs +0 -1
  507. package/dist/paths-BA1xev5m.mjs +0 -1
  508. package/dist/paths-DtQI2_ER.mjs +0 -2
  509. package/dist/preview-BTFflPaA.mjs +0 -1
  510. package/dist/preview-BuXqi6nl.mjs +0 -3
  511. package/dist/printf-CX64KX2P-uTOF6Zpa.mjs +0 -1
  512. package/dist/public/assets/ActivityModeContent-Ccu_n0bV.js +0 -2
  513. package/dist/public/assets/DocumentContext-C1msvcHp.js +0 -5
  514. package/dist/public/assets/GraphPanel-CJ_U3W3L.js +0 -46
  515. package/dist/public/assets/McpConsentDialogBody-Csjet19t.js +0 -1
  516. package/dist/public/assets/PageListContext-B5SWnlyE.js +0 -278
  517. package/dist/public/assets/SourceEditor-OFesfBB2.js +0 -3
  518. package/dist/public/assets/__vite-browser-external-Dz2JgTKm.js +0 -1
  519. package/dist/public/assets/chunk-DECur_0Z.js +0 -1
  520. package/dist/public/assets/clipboard-DAcKCHl1.js +0 -32
  521. package/dist/public/assets/dialog-CtSN0d2b.js +0 -45
  522. package/dist/public/assets/index-CwFTGDhe.js +0 -1843
  523. package/dist/public/assets/index-DjR45Lon.css +0 -1
  524. package/dist/public/assets/propagation-api-Bugyj7xy.js +0 -1
  525. package/dist/public/assets/telemetry-impl-D8K_lJGH.js +0 -2
  526. package/dist/public/assets/toggle-group-LDOO6zaV.js +0 -1
  527. package/dist/public/assets/tooltip-D0MnQ7ZX.js +0 -1
  528. package/dist/pwd-D4OZ7N27-DNkGMjtD.mjs +0 -1
  529. package/dist/readlink-MI4GCHJF-DRVZBAvY.mjs +0 -1
  530. package/dist/rev-XOSYPP45-q2MQLs41.mjs +0 -1
  531. package/dist/rg-FOQSCCX3-Cssz8GNh.mjs +0 -1
  532. package/dist/rm-RTZG23RL-fjvVauiI.mjs +0 -1
  533. package/dist/rmdir-XTQXT7RK-C13HY1h7.mjs +0 -1
  534. package/dist/sed-VFTTATXJ-DO49xc40.mjs +0 -1
  535. package/dist/seq-RN5ZUASB-D9r6kc_Z.mjs +0 -1
  536. package/dist/server-lock-n3Y5JWNv-3o7br8XE.mjs +0 -2
  537. package/dist/server-lock-n3Y5JWNv-DXpg9_eU.mjs +0 -1
  538. package/dist/sha1sum-VJPNLNU6-4uBt63v6.mjs +0 -1
  539. package/dist/sha256sum-PI32XWXY-_uaXSgBK.mjs +0 -1
  540. package/dist/sleep-VZFPZFWA-CS7jDpXp.mjs +0 -1
  541. package/dist/sort-DCNRDA7U-Dmp_2ZoH.mjs +0 -1
  542. package/dist/split-SITCSYCZ-Cu9ifXuc.mjs +0 -1
  543. package/dist/sqlite3-56UMWEY3-D1Xq8d4g.mjs +0 -1
  544. package/dist/src-CCtbSzLe.mjs +0 -1
  545. package/dist/start-D7mCFrVn.mjs +0 -1
  546. package/dist/start-RnYkhoRl.mjs +0 -2
  547. package/dist/stat-BT5A227F-Dqepjl-k.mjs +0 -1
  548. package/dist/strings-7PLOGTPD-g6FhPS64.mjs +0 -1
  549. package/dist/tac-SJGXQ4T2-DczI7HKk.mjs +0 -1
  550. package/dist/tail-S5ULNTJU-Bk22kVUG.mjs +0 -1
  551. package/dist/tar-ANUBEFJY-1lwT6ndQ.mjs +0 -1
  552. package/dist/tee-O7VXZDCO-Ftqr8Jad.mjs +0 -1
  553. package/dist/time-DEUO3QV2-BtzQ0nVf.mjs +0 -1
  554. package/dist/timeout-VRKMCG72-Cpzi9cz-.mjs +0 -1
  555. package/dist/touch-DX2IJOQ4-ewCHfbB3.mjs +0 -1
  556. package/dist/tr-2HXZRDSW-DrrobhxR.mjs +0 -1
  557. package/dist/tree-LYXBS7DC-DZnTMKSh.mjs +0 -1
  558. package/dist/true-WHJNXCHG-BaLssNp9.mjs +0 -1
  559. package/dist/unexpand-RGTMIGZM-BOmSL08U.mjs +0 -1
  560. package/dist/uniq-SUNANL47-Cn_JDmUJ.mjs +0 -1
  561. package/dist/wc-TQB3VNOX-DkOBrQlr.mjs +0 -1
  562. package/dist/which-XZHEH76L-DxZJ58G5.mjs +0 -1
  563. package/dist/whoami-DGKU3D2X-Bn1LP0m_.mjs +0 -1
  564. package/dist/wrapper-BTT6637Z.mjs +0 -7
  565. package/dist/xan-BXDXYEIB-_Vtao535.mjs +0 -1
  566. package/dist/xan-view-ECQUO7AJ-6vlhfSF-.mjs +0 -1
  567. package/dist/xargs-I6EZUCYF-dHdg4qaj.mjs +0 -1
  568. package/dist/yq-MJMAR36V-pRBq87Ya.mjs +0 -1
  569. /package/dist/public/assets/{go-DatQmDtN.js → go-a33xvodr.js} +0 -0
  570. /package/dist/public/assets/{shell-7yok6dsz.js → shell-40VLet8r.js} +0 -0
  571. /package/dist/public/assets/{w3c-keyname-CSlwavrd.js → w3c-keyname-Dfj2imOv.js} +0 -0
@@ -0,0 +1,157 @@
1
+ import{n as e,r as t}from"./src-C9jsS3p4.js";import{B as n,C as r,D as i,L as a,P as o,U as s,V as c,W as l,_ as u,a as d,b as f,c as p,i as m,k as h,r as g,s as _,v,y}from"./chunk-ICPOFSXX-CrnuSfeJ.js";import{C as b}from"./src-zyMpT2LE.js";import{t as x}from"./dist-CIRuNcH5.js";import{f as S,h as C}from"./chunk-5PVQY5BW-Cxi5d3lT.js";import{a as w,c as T,i as E,n as D,r as O,s as k}from"./chunk-YZCP3GAM-Dt9awjVh.js";import{t as A}from"./chunk-QZHKN3VN-DBRWHtgj.js";import{n as j,t as M}from"./chunk-XPW4576I-DSytTnq4.js";var N=x(),P=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`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=[1,4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,49,50,51,53,54,56,61,62,63,64,73],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=[4,5,17,51,53,54],ye=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],be=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,50,51,53,54,56,61,62,63,64,73],xe=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,49,51,53,54,56,61,62,63,64,73],Se=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,51,53,54,56,61,62,63,64,73],Ce=[5,52],q=[70,71,72,73],J=[1,151],we={trace:e(function(){},`trace`),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,INVALID:10,box_section:11,box_line:12,participant_statement:13,create:14,box:15,restOfLine:16,end:17,signal:18,autonumber:19,NUM:20,off:21,activate:22,actor:23,deactivate:24,note_statement:25,links_statement:26,link_statement:27,properties_statement:28,details_statement:29,title:30,legacy_title:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,loop:37,rect:38,opt:39,alt:40,else_sections:41,par:42,par_sections:43,par_over:44,critical:45,option_sections:46,break:47,option:48,and:49,else:50,participant:51,AS:52,participant_actor:53,destroy:54,actor_with_config:55,note:56,placement:57,text2:58,over:59,actor_pair:60,links:61,link:62,properties:63,details:64,spaceList:65,",":66,left_of:67,right_of:68,signaltype:69,"+":70,"-":71,"()":72,ACTOR:73,config_object:74,CONFIG_START:75,CONFIG_CONTENT:76,CONFIG_END:77,SOLID_OPEN_ARROW:78,DOTTED_OPEN_ARROW:79,SOLID_ARROW:80,SOLID_ARROW_TOP:81,SOLID_ARROW_BOTTOM:82,STICK_ARROW_TOP:83,STICK_ARROW_BOTTOM:84,SOLID_ARROW_TOP_DOTTED:85,SOLID_ARROW_BOTTOM_DOTTED:86,STICK_ARROW_TOP_DOTTED:87,STICK_ARROW_BOTTOM_DOTTED:88,SOLID_ARROW_TOP_REVERSE:89,SOLID_ARROW_BOTTOM_REVERSE:90,STICK_ARROW_TOP_REVERSE:91,STICK_ARROW_BOTTOM_REVERSE:92,SOLID_ARROW_TOP_REVERSE_DOTTED:93,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:94,STICK_ARROW_TOP_REVERSE_DOTTED:95,STICK_ARROW_BOTTOM_REVERSE_DOTTED:96,BIDIRECTIONAL_SOLID_ARROW:97,DOTTED_ARROW:98,BIDIRECTIONAL_DOTTED_ARROW:99,SOLID_CROSS:100,DOTTED_CROSS:101,SOLID_POINT:102,DOTTED_POINT:103,TXT:104,$accept:0,$end:1},terminals_:{2:`error`,4:`SPACE`,5:`NEWLINE`,6:`SD`,10:`INVALID`,14:`create`,15:`box`,16:`restOfLine`,17:`end`,19:`autonumber`,20:`NUM`,21:`off`,22:`activate`,24:`deactivate`,30:`title`,31:`legacy_title`,32:`acc_title`,33:`acc_title_value`,34:`acc_descr`,35:`acc_descr_value`,36:`acc_descr_multiline_value`,37:`loop`,38:`rect`,39:`opt`,40:`alt`,42:`par`,44:`par_over`,45:`critical`,47:`break`,48:`option`,49:`and`,50:`else`,51:`participant`,52:`AS`,53:`participant_actor`,54:`destroy`,56:`note`,59:`over`,61:`links`,62:`link`,63:`properties`,64:`details`,66:`,`,67:`left_of`,68:`right_of`,70:`+`,71:`-`,72:`()`,73:`ACTOR`,75:`CONFIG_START`,76:`CONFIG_CONTENT`,77:`CONFIG_END`,78:`SOLID_OPEN_ARROW`,79:`DOTTED_OPEN_ARROW`,80:`SOLID_ARROW`,81:`SOLID_ARROW_TOP`,82:`SOLID_ARROW_BOTTOM`,83:`STICK_ARROW_TOP`,84:`STICK_ARROW_BOTTOM`,85:`SOLID_ARROW_TOP_DOTTED`,86:`SOLID_ARROW_BOTTOM_DOTTED`,87:`STICK_ARROW_TOP_DOTTED`,88:`STICK_ARROW_BOTTOM_DOTTED`,89:`SOLID_ARROW_TOP_REVERSE`,90:`SOLID_ARROW_BOTTOM_REVERSE`,91:`STICK_ARROW_TOP_REVERSE`,92:`STICK_ARROW_BOTTOM_REVERSE`,93:`SOLID_ARROW_TOP_REVERSE_DOTTED`,94:`SOLID_ARROW_BOTTOM_REVERSE_DOTTED`,95:`STICK_ARROW_TOP_REVERSE_DOTTED`,96:`STICK_ARROW_BOTTOM_REVERSE_DOTTED`,97:`BIDIRECTIONAL_SOLID_ARROW`,98:`DOTTED_ARROW`,99:`BIDIRECTIONAL_DOTTED_ARROW`,100:`SOLID_CROSS`,101:`DOTTED_CROSS`,102:`SOLID_POINT`,103:`DOTTED_POINT`,104:`TXT`},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[8,1],[11,0],[11,2],[12,2],[12,1],[12,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[46,1],[46,4],[43,1],[43,4],[41,1],[41,4],[13,5],[13,3],[13,5],[13,3],[13,3],[13,5],[13,3],[13,5],[13,3],[25,4],[25,4],[26,3],[27,3],[28,3],[29,3],[65,2],[65,1],[60,3],[60,1],[57,1],[57,1],[18,5],[18,5],[18,5],[18,5],[18,6],[18,4],[55,2],[74,3],[23,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[58,1]],performAction:e(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 3:return r.apply(a[s]),a[s];case 4:case 10:this.$=[];break;case 5:case 11:a[s-1].push(a[s]),this.$=a[s-1];break;case 6:case 7:case 12:case 13:this.$=a[s];break;case 8:case 9:case 14:this.$=[];break;case 16:a[s].type=`createParticipant`,this.$=a[s];break;case 17:a[s-1].unshift({type:`boxStart`,boxData:r.parseBoxData(a[s-2])}),a[s-1].push({type:`boxEnd`,boxText:a[s-2]}),this.$=a[s-1];break;case 19:this.$={type:`sequenceIndex`,sequenceIndex:Number(a[s-2]),sequenceIndexStep:Number(a[s-1]),sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 20:this.$={type:`sequenceIndex`,sequenceIndex:Number(a[s-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 21:this.$={type:`sequenceIndex`,sequenceVisible:!1,signalType:r.LINETYPE.AUTONUMBER};break;case 22:this.$={type:`sequenceIndex`,sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 23:this.$={type:`activeStart`,signalType:r.LINETYPE.ACTIVE_START,actor:a[s-1].actor};break;case 24:this.$={type:`activeEnd`,signalType:r.LINETYPE.ACTIVE_END,actor:a[s-1].actor};break;case 30:r.setDiagramTitle(a[s].substring(6)),this.$=a[s].substring(6);break;case 31:r.setDiagramTitle(a[s].substring(7)),this.$=a[s].substring(7);break;case 32:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 33:case 34:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 35:a[s-1].unshift({type:`loopStart`,loopText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.LOOP_START}),a[s-1].push({type:`loopEnd`,loopText:a[s-2],signalType:r.LINETYPE.LOOP_END}),this.$=a[s-1];break;case 36:a[s-1].unshift({type:`rectStart`,color:r.parseMessage(a[s-2]),signalType:r.LINETYPE.RECT_START}),a[s-1].push({type:`rectEnd`,color:r.parseMessage(a[s-2]),signalType:r.LINETYPE.RECT_END}),this.$=a[s-1];break;case 37:a[s-1].unshift({type:`optStart`,optText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.OPT_START}),a[s-1].push({type:`optEnd`,optText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.OPT_END}),this.$=a[s-1];break;case 38:a[s-1].unshift({type:`altStart`,altText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.ALT_START}),a[s-1].push({type:`altEnd`,signalType:r.LINETYPE.ALT_END}),this.$=a[s-1];break;case 39:a[s-1].unshift({type:`parStart`,parText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.PAR_START}),a[s-1].push({type:`parEnd`,signalType:r.LINETYPE.PAR_END}),this.$=a[s-1];break;case 40:a[s-1].unshift({type:`parStart`,parText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.PAR_OVER_START}),a[s-1].push({type:`parEnd`,signalType:r.LINETYPE.PAR_END}),this.$=a[s-1];break;case 41:a[s-1].unshift({type:`criticalStart`,criticalText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.CRITICAL_START}),a[s-1].push({type:`criticalEnd`,signalType:r.LINETYPE.CRITICAL_END}),this.$=a[s-1];break;case 42:a[s-1].unshift({type:`breakStart`,breakText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.BREAK_START}),a[s-1].push({type:`breakEnd`,optText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.BREAK_END}),this.$=a[s-1];break;case 44:this.$=a[s-3].concat([{type:`option`,optionText:r.parseMessage(a[s-1]),signalType:r.LINETYPE.CRITICAL_OPTION},a[s]]);break;case 46:this.$=a[s-3].concat([{type:`and`,parText:r.parseMessage(a[s-1]),signalType:r.LINETYPE.PAR_AND},a[s]]);break;case 48:this.$=a[s-3].concat([{type:`else`,altText:r.parseMessage(a[s-1]),signalType:r.LINETYPE.ALT_ELSE},a[s]]);break;case 49:a[s-3].draw=`participant`,a[s-3].type=`addParticipant`,a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 50:a[s-1].draw=`participant`,a[s-1].type=`addParticipant`,this.$=a[s-1];break;case 51:a[s-3].draw=`actor`,a[s-3].type=`addParticipant`,a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 52:case 57:a[s-1].draw=`actor`,a[s-1].type=`addParticipant`,this.$=a[s-1];break;case 53:a[s-1].type=`destroyParticipant`,this.$=a[s-1];break;case 54:a[s-3].draw=`participant`,a[s-3].type=`addParticipant`,a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 55:a[s-1].draw=`participant`,a[s-1].type=`addParticipant`,this.$=a[s-1];break;case 56:a[s-3].draw=`actor`,a[s-3].type=`addParticipant`,a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 58:this.$=[a[s-1],{type:`addNote`,placement:a[s-2],actor:a[s-1].actor,text:a[s]}];break;case 59:a[s-2]=[].concat(a[s-1],a[s-1]).slice(0,2),a[s-2][0]=a[s-2][0].actor,a[s-2][1]=a[s-2][1].actor,this.$=[a[s-1],{type:`addNote`,placement:r.PLACEMENT.OVER,actor:a[s-2].slice(0,2),text:a[s]}];break;case 60:this.$=[a[s-1],{type:`addLinks`,actor:a[s-1].actor,text:a[s]}];break;case 61:this.$=[a[s-1],{type:`addALink`,actor:a[s-1].actor,text:a[s]}];break;case 62:this.$=[a[s-1],{type:`addProperties`,actor:a[s-1].actor,text:a[s]}];break;case 63:this.$=[a[s-1],{type:`addDetails`,actor:a[s-1].actor,text:a[s]}];break;case 66:this.$=[a[s-2],a[s]];break;case 67:this.$=a[s];break;case 68:this.$=r.PLACEMENT.LEFTOF;break;case 69:this.$=r.PLACEMENT.RIGHTOF;break;case 70:this.$=[a[s-4],a[s-1],{type:`addMessage`,from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s],activate:!0},{type:`activeStart`,signalType:r.LINETYPE.ACTIVE_START,actor:a[s-1].actor}];break;case 71:this.$=[a[s-4],a[s-1],{type:`addMessage`,from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s]},{type:`activeEnd`,signalType:r.LINETYPE.ACTIVE_END,actor:a[s-4].actor}];break;case 72:this.$=[a[s-4],a[s-1],{type:`addMessage`,from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s],activate:!0,centralConnection:r.LINETYPE.CENTRAL_CONNECTION},{type:`centralConnection`,signalType:r.LINETYPE.CENTRAL_CONNECTION,actor:a[s-1].actor}];break;case 73:this.$=[a[s-4],a[s-1],{type:`addMessage`,from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-2],msg:a[s],activate:!1,centralConnection:r.LINETYPE.CENTRAL_CONNECTION_REVERSE},{type:`centralConnectionReverse`,signalType:r.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:a[s-4].actor}];break;case 74:this.$=[a[s-5],a[s-1],{type:`addMessage`,from:a[s-5].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s],activate:!0,centralConnection:r.LINETYPE.CENTRAL_CONNECTION_DUAL},{type:`centralConnection`,signalType:r.LINETYPE.CENTRAL_CONNECTION,actor:a[s-1].actor},{type:`centralConnectionReverse`,signalType:r.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:a[s-5].actor}];break;case 75:this.$=[a[s-3],a[s-1],{type:`addMessage`,from:a[s-3].actor,to:a[s-1].actor,signalType:a[s-2],msg:a[s]}];break;case 76:this.$={type:`addParticipant`,actor:a[s-1],config:a[s]};break;case 77:this.$=a[s-1].trim();break;case 78:this.$={type:`addParticipant`,actor:a[s]};break;case 79:this.$=r.LINETYPE.SOLID_OPEN;break;case 80:this.$=r.LINETYPE.DOTTED_OPEN;break;case 81:this.$=r.LINETYPE.SOLID;break;case 82:this.$=r.LINETYPE.SOLID_TOP;break;case 83:this.$=r.LINETYPE.SOLID_BOTTOM;break;case 84:this.$=r.LINETYPE.STICK_TOP;break;case 85:this.$=r.LINETYPE.STICK_BOTTOM;break;case 86:this.$=r.LINETYPE.SOLID_TOP_DOTTED;break;case 87:this.$=r.LINETYPE.SOLID_BOTTOM_DOTTED;break;case 88:this.$=r.LINETYPE.STICK_TOP_DOTTED;break;case 89:this.$=r.LINETYPE.STICK_BOTTOM_DOTTED;break;case 90:this.$=r.LINETYPE.SOLID_ARROW_TOP_REVERSE;break;case 91:this.$=r.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;break;case 92:this.$=r.LINETYPE.STICK_ARROW_TOP_REVERSE;break;case 93:this.$=r.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;break;case 94:this.$=r.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;break;case 95:this.$=r.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;break;case 96:this.$=r.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;break;case 97:this.$=r.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;break;case 98:this.$=r.LINETYPE.BIDIRECTIONAL_SOLID;break;case 99:this.$=r.LINETYPE.DOTTED;break;case 100:this.$=r.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 101:this.$=r.LINETYPE.SOLID_CROSS;break;case 102:this.$=r.LINETYPE.DOTTED_CROSS;break;case 103:this.$=r.LINETYPE.SOLID_POINT;break;case 104:this.$=r.LINETYPE.DOTTED_POINT;break;case 105:this.$=r.parseMessage(a[s].trim().substring(1));break}},`anonymous`),table:[{3:1,4:n,5:r,6:i},{1:[3]},{3:5,4:n,5:r,6:i},{3:6,4:n,5:r,6:i},t([1,4,5,10,14,15,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],a,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},t(I,[2,5]),{9:48,13:13,14:l,15:u,18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},t(I,[2,7]),t(I,[2,8]),t(I,[2,9]),t(I,[2,15]),{13:49,51:D,53:O,54:k},{16:[1,50]},{5:[1,51]},{5:[1,54],20:[1,52],21:[1,53]},{23:55,73:F},{23:56,73:F},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},{5:[1,61]},t(I,[2,30]),t(I,[2,31]),{33:[1,62]},{35:[1,63]},t(I,[2,34]),{16:[1,64]},{16:[1,65]},{16:[1,66]},{16:[1,67]},{16:[1,68]},{16:[1,69]},{16:[1,70]},{16:[1,71]},{23:72,55:73,73:L},{23:75,55:76,73:L},{23:77,73:F},{69:78,72:[1,79],78:ee,79:R,80:te,81:ne,82:z,83:B,84:V,85:re,86:H,87:U,88:W,89:ie,90:ae,91:oe,92:G,93:se,94:K,95:ce,96:le,97:ue,98:de,99:fe,100:pe,101:me,102:he,103:ge},{57:106,59:[1,107],67:[1,108],68:[1,109]},{23:110,73:F},{23:111,73:F},{23:112,73:F},{23:113,73:F},t([5,66,72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104],_e),t(I,[2,6]),t(I,[2,16]),t(ve,[2,10],{11:114}),t(I,[2,18]),{5:[1,116],20:[1,115]},{5:[1,117]},t(I,[2,22]),{5:[1,118]},{5:[1,119]},t(I,[2,25]),t(I,[2,26]),t(I,[2,27]),t(I,[2,28]),t(I,[2,29]),t(I,[2,32]),t(I,[2,33]),t(ye,a,{7:120}),t(ye,a,{7:121}),t(ye,a,{7:122}),t(be,a,{41:123,7:124}),t(xe,a,{43:125,7:126}),t(xe,a,{7:126,43:127}),t(Se,a,{46:128,7:129}),t(ye,a,{7:130}),{5:[1,132],52:[1,131]},{5:[1,134],52:[1,133]},t(Ce,_e,{74:135,75:[1,136]}),{5:[1,138],52:[1,137]},{5:[1,140],52:[1,139]},{5:[1,141]},{23:145,70:[1,142],71:[1,143],72:[1,144],73:F},{69:146,78:ee,79:R,80:te,81:ne,82:z,83:B,84:V,85:re,86:H,87:U,88:W,89:ie,90:ae,91:oe,92:G,93:se,94:K,95:ce,96:le,97:ue,98:de,99:fe,100:pe,101:me,102:he,103:ge},t(q,[2,79]),t(q,[2,80]),t(q,[2,81]),t(q,[2,82]),t(q,[2,83]),t(q,[2,84]),t(q,[2,85]),t(q,[2,86]),t(q,[2,87]),t(q,[2,88]),t(q,[2,89]),t(q,[2,90]),t(q,[2,91]),t(q,[2,92]),t(q,[2,93]),t(q,[2,94]),t(q,[2,95]),t(q,[2,96]),t(q,[2,97]),t(q,[2,98]),t(q,[2,99]),t(q,[2,100]),t(q,[2,101]),t(q,[2,102]),t(q,[2,103]),t(q,[2,104]),{23:147,73:F},{23:149,60:148,73:F},{73:[2,68]},{73:[2,69]},{58:150,104:J},{58:152,104:J},{58:153,104:J},{58:154,104:J},{4:[1,157],5:[1,159],12:156,13:158,17:[1,155],51:D,53:O,54:k},{5:[1,160]},t(I,[2,20]),t(I,[2,21]),t(I,[2,23]),t(I,[2,24]),{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[1,161],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[1,162],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[1,163],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{17:[1,164]},{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[2,47],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,50:[1,165],51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{17:[1,166]},{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[2,45],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,49:[1,167],51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{17:[1,168]},{17:[1,169]},{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[2,43],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,48:[1,170],51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[1,171],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{16:[1,172]},t(I,[2,50]),{16:[1,173]},t(I,[2,55]),t(Ce,[2,76]),{76:[1,174]},{16:[1,175]},t(I,[2,52]),{16:[1,176]},t(I,[2,57]),t(I,[2,53]),{23:177,73:F},{23:178,73:F},{23:179,73:F},{58:180,104:J},{23:181,72:[1,182],73:F},{58:183,104:J},{58:184,104:J},{66:[1,185],104:[2,67]},{5:[2,60]},{5:[2,105]},{5:[2,61]},{5:[2,62]},{5:[2,63]},t(I,[2,17]),t(ve,[2,11]),{13:186,51:D,53:O,54:k},t(ve,[2,13]),t(ve,[2,14]),t(I,[2,19]),t(I,[2,35]),t(I,[2,36]),t(I,[2,37]),t(I,[2,38]),{16:[1,187]},t(I,[2,39]),{16:[1,188]},t(I,[2,40]),t(I,[2,41]),{16:[1,189]},t(I,[2,42]),{5:[1,190]},{5:[1,191]},{77:[1,192]},{5:[1,193]},{5:[1,194]},{58:195,104:J},{58:196,104:J},{58:197,104:J},{5:[2,75]},{58:198,104:J},{23:199,73:F},{5:[2,58]},{5:[2,59]},{23:200,73:F},t(ve,[2,12]),t(be,a,{7:124,41:201}),t(xe,a,{7:126,43:202}),t(Se,a,{7:129,46:203}),t(I,[2,49]),t(I,[2,54]),t(Ce,[2,77]),t(I,[2,51]),t(I,[2,56]),{5:[2,70]},{5:[2,71]},{5:[2,72]},{5:[2,73]},{58:204,104:J},{104:[2,66]},{17:[2,48]},{17:[2,46]},{17:[2,44]},{5:[2,74]}],defaultActions:{5:[2,1],6:[2,2],108:[2,68],109:[2,69],150:[2,60],151:[2,105],152:[2,61],153:[2,62],154:[2,63],180:[2,75],183:[2,58],184:[2,59],195:[2,70],196:[2,71],197:[2,72],198:[2,73],200:[2,66],201:[2,48],202:[2,46],203:[2,44],204:[2,74]},parseError:e(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:e(function(t){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:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(t,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}e(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}e(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){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]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
2
+ `+h.showPosition()+`
3
+ Expecting `+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,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1: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--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;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);break;case 3:return!0}}return!0},`parse`)};we.lexer=(function(){return{EOF:1,parseError:e(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:e(function(e,t){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={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:e(function(){var e=this._input[0];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},`input`),unput:e(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,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},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:e(function(){return this._more=!0,this},`more`),reject:e(function(){if(this.options.backtrack_lexer)this._backtrack=!0;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).
4
+ `+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:e(function(e){this.unput(this.match.slice(e))},`less`),pastInput:e(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:e(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:e(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
5
+ `+t+`^`},`showPosition`),test_match:e(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:e(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;a<i.length;a++)if(n=this._input.match(this.rules[i[a]]),n&&(!t||n[0].length>t[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}else return!1}else if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e===!1?!1:e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text.
6
+ `+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:e(function(){return this.next()||this.lex()},`lex`),begin:e(function(e){this.conditionStack.push(e)},`begin`),popState:e(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:e(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:e(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:e(function(e){this.begin(e)},`pushState`),stateStackSize:e(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:e(function(e,t,n,r){switch(n){case 0:return 5;case 1:break;case 2:break;case 3:break;case 4:break;case 5:break;case 6:return 20;case 7:return this.begin(`CONFIG`),75;case 8:return 76;case 9:return this.popState(),this.begin(`ALIAS`),77;case 10:return this.popState(),this.popState(),77;case 11:return t.yytext=t.yytext.trim(),73;case 12:return t.yytext=t.yytext.trim(),this.begin(`ALIAS`),73;case 13:return t.yytext=t.yytext.trim(),this.popState(),73;case 14:return this.popState(),10;case 15:return t.yytext=t.yytext.trim(),this.popState(),10;case 16:return this.begin(`LINE`),15;case 17:return this.begin(`ID`),51;case 18:return this.begin(`ID`),53;case 19:return 14;case 20:return this.begin(`ID`),54;case 21:return this.popState(),this.popState(),this.begin(`LINE`),52;case 22:return this.popState(),this.popState(),5;case 23:return this.begin(`LINE`),37;case 24:return this.begin(`LINE`),38;case 25:return this.begin(`LINE`),39;case 26:return this.begin(`LINE`),40;case 27:return this.begin(`LINE`),50;case 28:return this.begin(`LINE`),42;case 29:return this.begin(`LINE`),44;case 30:return this.begin(`LINE`),49;case 31:return this.begin(`LINE`),45;case 32:return this.begin(`LINE`),48;case 33:return this.begin(`LINE`),47;case 34:return this.popState(),16;case 35:return 17;case 36:return 67;case 37:return 68;case 38:return 61;case 39:return 62;case 40:return 63;case 41:return 64;case 42:return 59;case 43:return 56;case 44:return this.begin(`ID`),22;case 45:return this.begin(`ID`),24;case 46:return 30;case 47:return 31;case 48:return this.begin(`acc_title`),32;case 49:return this.popState(),`acc_title_value`;case 50:return this.begin(`acc_descr`),34;case 51:return this.popState(),`acc_descr_value`;case 52:this.begin(`acc_descr_multiline`);break;case 53:this.popState();break;case 54:return`acc_descr_multiline_value`;case 55:return 6;case 56:return 19;case 57:return 21;case 58:return 66;case 59:return 5;case 60:return t.yytext=t.yytext.trim(),73;case 61:return 80;case 62:return 97;case 63:return 98;case 64:return 99;case 65:return 78;case 66:return 79;case 67:return 100;case 68:return 101;case 69:return 102;case 70:return 103;case 71:return 85;case 72:return 86;case 73:return 87;case 74:return 88;case 75:return 93;case 76:return 94;case 77:return 95;case 78:return 96;case 79:return 81;case 80:return 82;case 81:return 83;case 82:return 84;case 83:return 89;case 84:return 90;case 85:return 91;case 86:return 92;case 87:return 104;case 88:return 104;case 89:return 70;case 90:return 71;case 91:return 72;case 92:return 5;case 93:return 10}},`anonymous`),rules:[/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[0-9]+(?=[ \n]+))/i,/^(?:@\{)/i,/^(?:[^\}]+)/i,/^(?:\}(?=\s+as\s))/i,/^(?:\})/i,/^(?:[^\<->\->:\n,;@\s]+(?=@\{))/i,/^(?:[^<>:\n,;@\s]+(?=\s+as\s))/i,/^(?:[^<>:\n,;@]+(?=\s*[\n;#]|$))/i,/^(?:[^<>:\n,;@]*<[^\n]*)/i,/^(?:[^\n]+)/i,/^(?:box\b)/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:create\b)/i,/^(?:destroy\b)/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:par_over\b)/i,/^(?:and\b)/i,/^(?:critical\b)/i,/^(?:option\b)/i,/^(?:break\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:links\b)/i,/^(?:link\b)/i,/^(?:properties\b)/i,/^(?:details\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:title:\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:off\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\/\\\+\()\+<\->\->:\n,;]+((?!(-x|--x|-\)|--\)|-\|\\|-\\|-\/|-\/\/|-\|\/|\/\|-|\\\|-|\/\/-|\\\\-|\/\|-|--\|\\|--|\(\)))[\-]*[^\+<\->\->:\n,;]+)*)/i,/^(?:->>)/i,/^(?:<<->>)/i,/^(?:-->>)/i,/^(?:<<-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?:-[\)])/i,/^(?:--[\)])/i,/^(?:--\|\\)/i,/^(?:--\|\/)/i,/^(?:--\\\\)/i,/^(?:--\/\/)/i,/^(?:\/\|--)/i,/^(?:\\\|--)/i,/^(?:\/\/--)/i,/^(?:\\\\--)/i,/^(?:-\|\\)/i,/^(?:-\|\/)/i,/^(?:-\\\\)/i,/^(?:-\/\/)/i,/^(?:\/\|-)/i,/^(?:\\\|-)/i,/^(?:\/\/-)/i,/^(?:\\\\-)/i,/^(?::(?:(?:no)?wrap)?[^#\n;]*)/i,/^(?::)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:\(\))/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[53,54],inclusive:!1},acc_descr:{rules:[51],inclusive:!1},acc_title:{rules:[49],inclusive:!1},ID:{rules:[2,3,7,11,12,13,14,15],inclusive:!1},ALIAS:{rules:[2,3,21,22],inclusive:!1},LINE:{rules:[2,3,34],inclusive:!1},CONFIG:{rules:[8,9,10],inclusive:!1},CONFIG_DATA:{rules:[],inclusive:!1},INITIAL:{rules:[0,1,3,4,5,6,16,17,18,19,20,23,24,25,26,27,28,29,30,31,32,33,35,36,37,38,39,40,41,42,43,44,45,46,47,48,50,52,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93],inclusive:!0}}}})();function Te(){this.yy={}}return e(Te,`Parser`),Te.prototype=we,we.Parser=Te,new Te})();P.parser=P;var F=P,I={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25,AUTONUMBER:26,CRITICAL_START:27,CRITICAL_OPTION:28,CRITICAL_END:29,BREAK_START:30,BREAK_END:31,PAR_OVER_START:32,BIDIRECTIONAL_SOLID:33,BIDIRECTIONAL_DOTTED:34,SOLID_TOP:41,SOLID_BOTTOM:42,STICK_TOP:43,STICK_BOTTOM:44,SOLID_ARROW_TOP_REVERSE:45,SOLID_ARROW_BOTTOM_REVERSE:46,STICK_ARROW_TOP_REVERSE:47,STICK_ARROW_BOTTOM_REVERSE:48,SOLID_TOP_DOTTED:51,SOLID_BOTTOM_DOTTED:52,STICK_TOP_DOTTED:53,STICK_BOTTOM_DOTTED:54,SOLID_ARROW_TOP_REVERSE_DOTTED:55,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:56,STICK_ARROW_TOP_REVERSE_DOTTED:57,STICK_ARROW_BOTTOM_REVERSE_DOTTED:58,CENTRAL_CONNECTION:59,CENTRAL_CONNECTION_REVERSE:60,CENTRAL_CONNECTION_DUAL:61},L={FILLED:0,OPEN:1},ee={LEFTOF:0,RIGHTOF:1,OVER:2},R={ACTOR:`actor`,BOUNDARY:`boundary`,COLLECTIONS:`collections`,CONTROL:`control`,DATABASE:`database`,ENTITY:`entity`,PARTICIPANT:`participant`,QUEUE:`queue`},te=class{constructor(){this.state=new A(()=>({prevActor:void 0,actors:new Map,createdActors:new Map,destroyedActors:new Map,boxes:[],messages:[],notes:[],sequenceNumbersEnabled:!1,wrapEnabled:void 0,currentBox:void 0,lastCreated:void 0,lastDestroyed:void 0})),this.setAccTitle=c,this.setAccDescription=n,this.setDiagramTitle=l,this.getAccTitle=v,this.getAccDescription=u,this.getDiagramTitle=r,this.apply=this.apply.bind(this),this.parseBoxData=this.parseBoxData.bind(this),this.parseMessage=this.parseMessage.bind(this),this.clear(),this.setWrap(f().wrap),this.LINETYPE=I,this.ARROWTYPE=L,this.PLACEMENT=ee}static{e(this,`SequenceDB`)}addBox(e){this.state.records.boxes.push({name:e.text,wrap:e.wrap??this.autoWrap(),fill:e.color,actorKeys:[]}),this.state.records.currentBox=this.state.records.boxes.slice(-1)[0]}addActor(e,t,n,r,i){let a=this.state.records.currentBox,o;if(i!==void 0){let e;e=i.includes(`
7
+ `)?i+`
8
+ `:`{
9
+ `+i+`
10
+ }`,o=j(e,{schema:M})}r=o?.type??r,o?.alias&&(!n||n.text===t)&&(n={text:o.alias,wrap:n?.wrap,type:r});let s=this.state.records.actors.get(e);if(s){if(this.state.records.currentBox&&s.box&&this.state.records.currentBox!==s.box)throw Error(`A same participant should only be defined in one Box: ${s.name} can't be in '${s.box.name}' and in '${this.state.records.currentBox.name}' at the same time.`);if(a=s.box?s.box:this.state.records.currentBox,s.box=a,s&&t===s.name&&n==null)return}if(n?.text??(n={text:t,type:r}),(r==null||n.text==null)&&(n={text:t,type:r}),this.state.records.actors.set(e,{box:a,name:t,description:n.text,wrap:n.wrap??this.autoWrap(),prevActor:this.state.records.prevActor,links:{},properties:{},actorCnt:null,rectData:null,type:r??`participant`}),this.state.records.prevActor){let t=this.state.records.actors.get(this.state.records.prevActor);t&&(t.nextActor=e)}this.state.records.currentBox&&this.state.records.currentBox.actorKeys.push(e),this.state.records.prevActor=e}activationCount(e){let t,n=0;if(!e)return 0;for(t=0;t<this.state.records.messages.length;t++)this.state.records.messages[t].type===this.LINETYPE.ACTIVE_START&&this.state.records.messages[t].from===e&&n++,this.state.records.messages[t].type===this.LINETYPE.ACTIVE_END&&this.state.records.messages[t].from===e&&n--;return n}addMessage(e,t,n,r){this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:e,to:t,message:n.text,wrap:n.wrap??this.autoWrap(),answer:r})}addSignal(e,t,n,r,i=!1,a){if(r===this.LINETYPE.ACTIVE_END&&this.activationCount(e??``)<1){let t=Error(`Trying to inactivate an inactive participant (`+e+`)`);throw t.hash={text:`->>-`,token:`->>-`,line:`1`,loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:[`'ACTIVE_PARTICIPANT'`]},t}return this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:e,to:t,message:n?.text??``,wrap:n?.wrap??this.autoWrap(),type:r,activate:i,centralConnection:a??0}),!0}hasAtLeastOneBox(){return this.state.records.boxes.length>0}hasAtLeastOneBoxWithTitle(){return this.state.records.boxes.some(e=>e.name)}getMessages(){return this.state.records.messages}getBoxes(){return this.state.records.boxes}getActors(){return this.state.records.actors}getCreatedActors(){return this.state.records.createdActors}getDestroyedActors(){return this.state.records.destroyedActors}getActor(e){return this.state.records.actors.get(e)}getActorKeys(){return[...this.state.records.actors.keys()]}enableSequenceNumbers(){this.state.records.sequenceNumbersEnabled=!0}disableSequenceNumbers(){this.state.records.sequenceNumbersEnabled=!1}showSequenceNumbers(){return this.state.records.sequenceNumbersEnabled}setWrap(e){this.state.records.wrapEnabled=e}extractWrap(e){if(e===void 0)return{};e=e.trim();let t=/^:?wrap:/.exec(e)===null?/^:?nowrap:/.exec(e)===null?void 0:!1:!0;return{cleanedText:(t===void 0?e:e.replace(/^:?(?:no)?wrap:/,``)).trim(),wrap:t}}autoWrap(){return this.state.records.wrapEnabled===void 0?f().sequence?.wrap??!1:this.state.records.wrapEnabled}clear(){this.state.reset(),d()}parseMessage(e){let n=e.trim(),{wrap:r,cleanedText:i}=this.extractWrap(n),a={text:i,wrap:r};return t.debug(`parseMessage: ${JSON.stringify(a)}`),a}parseBoxData(e){let t=/^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(e),n=t?.[1]?t[1].trim():`transparent`,r=t?.[2]?t[2].trim():void 0;if(window?.CSS)window.CSS.supports(`color`,n)||(n=`transparent`,r=e.trim());else{let t=new Option().style;t.color=n,t.color!==n&&(n=`transparent`,r=e.trim())}let{wrap:i,cleanedText:o}=this.extractWrap(r);return{text:o?a(o,f()):void 0,color:n,wrap:i}}addNote(e,t,n){let r={actor:e,placement:t,message:n.text,wrap:n.wrap??this.autoWrap()},i=[].concat(e,e);this.state.records.notes.push(r),this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:i[0],to:i[1],message:n.text,wrap:n.wrap??this.autoWrap(),type:this.LINETYPE.NOTE,placement:t})}addLinks(e,n){let r=this.getActor(e);try{let e=a(n.text,f());e=e.replace(/&equals;/g,`=`),e=e.replace(/&amp;/g,`&`);let t=JSON.parse(e);this.insertLinks(r,t)}catch(e){t.error(`error while parsing actor link text`,e)}}addALink(e,n){let r=this.getActor(e);try{let e={},t=a(n.text,f()),i=t.indexOf(`@`);t=t.replace(/&equals;/g,`=`),t=t.replace(/&amp;/g,`&`);let o=t.slice(0,i-1).trim();e[o]=t.slice(i+1).trim(),this.insertLinks(r,e)}catch(e){t.error(`error while parsing actor link text`,e)}}insertLinks(e,t){if(e.links==null)e.links=t;else for(let n in t)e.links[n]=t[n]}addProperties(e,n){let r=this.getActor(e);try{let e=a(n.text,f()),t=JSON.parse(e);this.insertProperties(r,t)}catch(e){t.error(`error while parsing actor properties text`,e)}}insertProperties(e,t){if(e.properties==null)e.properties=t;else for(let n in t)e.properties[n]=t[n]}boxEnd(){this.state.records.currentBox=void 0}addDetails(e,n){let r=this.getActor(e),i=document.getElementById(n.text);try{let e=i.innerHTML,t=JSON.parse(e);t.properties&&this.insertProperties(r,t.properties),t.links&&this.insertLinks(r,t.links)}catch(e){t.error(`error while parsing actor details text`,e)}}getActorProperty(e,t){if(e?.properties!==void 0)return e.properties[t]}apply(e){if(Array.isArray(e))e.forEach(e=>{this.apply(e)});else switch(e.type){case`sequenceIndex`:this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:void 0,to:void 0,message:{start:e.sequenceIndex,step:e.sequenceIndexStep,visible:e.sequenceVisible},wrap:!1,type:e.signalType});break;case`addParticipant`:this.addActor(e.actor,e.actor,e.description,e.draw,e.config);break;case`createParticipant`:if(this.state.records.actors.has(e.actor))throw Error(`It is not possible to have actors with the same id, even if one is destroyed before the next is created. Use 'AS' aliases to simulate the behavior`);this.state.records.lastCreated=e.actor,this.addActor(e.actor,e.actor,e.description,e.draw,e.config),this.state.records.createdActors.set(e.actor,this.state.records.messages.length);break;case`destroyParticipant`:this.state.records.lastDestroyed=e.actor,this.state.records.destroyedActors.set(e.actor,this.state.records.messages.length);break;case`activeStart`:this.addSignal(e.actor,void 0,void 0,e.signalType);break;case`centralConnection`:this.addSignal(e.actor,void 0,void 0,e.signalType);break;case`centralConnectionReverse`:this.addSignal(e.actor,void 0,void 0,e.signalType);break;case`activeEnd`:this.addSignal(e.actor,void 0,void 0,e.signalType);break;case`addNote`:this.addNote(e.actor,e.placement,e.text);break;case`addLinks`:this.addLinks(e.actor,e.text);break;case`addALink`:this.addALink(e.actor,e.text);break;case`addProperties`:this.addProperties(e.actor,e.text);break;case`addDetails`:this.addDetails(e.actor,e.text);break;case`addMessage`:if(this.state.records.lastCreated){if(e.to!==this.state.records.lastCreated)throw Error(`The created participant `+this.state.records.lastCreated.name+` does not have an associated creating message after its declaration. Please check the sequence diagram.`);this.state.records.lastCreated=void 0}else if(this.state.records.lastDestroyed){if(e.to!==this.state.records.lastDestroyed&&e.from!==this.state.records.lastDestroyed)throw Error(`The destroyed participant `+this.state.records.lastDestroyed.name+` does not have an associated destroying message after its declaration. Please check the sequence diagram.`);this.state.records.lastDestroyed=void 0}this.addSignal(e.from,e.to,e.msg,e.signalType,e.activate,e.centralConnection);break;case`boxStart`:this.addBox(e.boxData);break;case`boxEnd`:this.boxEnd();break;case`loopStart`:this.addSignal(void 0,void 0,e.loopText,e.signalType);break;case`loopEnd`:this.addSignal(void 0,void 0,void 0,e.signalType);break;case`rectStart`:this.addSignal(void 0,void 0,e.color,e.signalType);break;case`rectEnd`:this.addSignal(void 0,void 0,void 0,e.signalType);break;case`optStart`:this.addSignal(void 0,void 0,e.optText,e.signalType);break;case`optEnd`:this.addSignal(void 0,void 0,void 0,e.signalType);break;case`altStart`:this.addSignal(void 0,void 0,e.altText,e.signalType);break;case`else`:this.addSignal(void 0,void 0,e.altText,e.signalType);break;case`altEnd`:this.addSignal(void 0,void 0,void 0,e.signalType);break;case`setAccTitle`:c(e.text);break;case`parStart`:this.addSignal(void 0,void 0,e.parText,e.signalType);break;case`and`:this.addSignal(void 0,void 0,e.parText,e.signalType);break;case`parEnd`:this.addSignal(void 0,void 0,void 0,e.signalType);break;case`criticalStart`:this.addSignal(void 0,void 0,e.criticalText,e.signalType);break;case`option`:this.addSignal(void 0,void 0,e.optionText,e.signalType);break;case`criticalEnd`:this.addSignal(void 0,void 0,void 0,e.signalType);break;case`breakStart`:this.addSignal(void 0,void 0,e.breakText,e.signalType);break;case`breakEnd`:this.addSignal(void 0,void 0,void 0,e.signalType);break}}getConfig(){return f().sequence}},ne=e(e=>{let t=e.dropShadow??`none`,{look:n}=f();return`.actor {
11
+ stroke: ${e.actorBorder};
12
+ fill: ${e.actorBkg};
13
+ stroke-width: ${e.strokeWidth??1};
14
+ }
15
+
16
+ rect.actor.outer-path[data-look="neo"] {
17
+ filter: ${t};
18
+ }
19
+
20
+ rect.note[data-look="neo"] {
21
+ stroke:${e.noteBorderColor};
22
+ fill:${e.noteBkgColor};
23
+ filter: ${t};
24
+ }
25
+
26
+ text.actor > tspan {
27
+ fill: ${e.actorTextColor};
28
+ stroke: none;
29
+ }
30
+
31
+ .actor-line {
32
+ stroke: ${e.actorLineColor};
33
+ }
34
+
35
+ .innerArc {
36
+ stroke-width: 1.5;
37
+ stroke-dasharray: none;
38
+ }
39
+
40
+ .messageLine0 {
41
+ stroke-width: 1.5;
42
+ stroke-dasharray: none;
43
+ stroke: ${e.signalColor};
44
+ }
45
+
46
+ .messageLine1 {
47
+ stroke-width: 1.5;
48
+ stroke-dasharray: 2, 2;
49
+ stroke: ${e.signalColor};
50
+ }
51
+
52
+ [id$="-arrowhead"] path {
53
+ fill: ${e.signalColor};
54
+ stroke: ${e.signalColor};
55
+ }
56
+
57
+ .sequenceNumber {
58
+ fill: ${e.sequenceNumberColor};
59
+ }
60
+
61
+ [id$="-sequencenumber"] {
62
+ fill: ${e.signalColor};
63
+ }
64
+
65
+ [id$="-crosshead"] path {
66
+ fill: ${e.signalColor};
67
+ stroke: ${e.signalColor};
68
+ }
69
+
70
+ .messageText {
71
+ fill: ${e.signalTextColor};
72
+ stroke: none;
73
+ }
74
+
75
+ .labelBox {
76
+ stroke: ${e.labelBoxBorderColor};
77
+ fill: ${e.labelBoxBkgColor};
78
+ filter: ${n===`neo`?t:`none`};
79
+ }
80
+
81
+ .labelText, .labelText > tspan {
82
+ fill: ${e.labelTextColor};
83
+ stroke: none;
84
+ }
85
+
86
+ .loopText, .loopText > tspan {
87
+ fill: ${e.loopTextColor};
88
+ stroke: none;
89
+ }
90
+
91
+ .loopLine {
92
+ stroke-width: 2px;
93
+ stroke-dasharray: 2, 2;
94
+ stroke: ${e.labelBoxBorderColor};
95
+ fill: ${e.labelBoxBorderColor};
96
+ }
97
+
98
+ .note {
99
+ //stroke: #decc93;
100
+ stroke: ${e.noteBorderColor};
101
+ fill: ${e.noteBkgColor};
102
+ }
103
+
104
+ .noteText, .noteText > tspan {
105
+ fill: ${e.noteTextColor};
106
+ stroke: none;
107
+ ${e.noteFontWeight?`font-weight: ${e.noteFontWeight};`:``}
108
+ }
109
+
110
+ .activation0 {
111
+ fill: ${e.activationBkgColor};
112
+ stroke: ${e.activationBorderColor};
113
+ }
114
+
115
+ .activation1 {
116
+ fill: ${e.activationBkgColor};
117
+ stroke: ${e.activationBorderColor};
118
+ }
119
+
120
+ .activation2 {
121
+ fill: ${e.activationBkgColor};
122
+ stroke: ${e.activationBorderColor};
123
+ }
124
+
125
+ .actorPopupMenu {
126
+ position: absolute;
127
+ }
128
+
129
+ .actorPopupMenuPanel {
130
+ position: absolute;
131
+ fill: ${e.actorBkg};
132
+ box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
133
+ filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));
134
+ }
135
+ .actor-man circle, line {
136
+ fill: ${e.actorBkg};
137
+ stroke-width: 2px;
138
+ }
139
+
140
+ g rect.rect {
141
+ filter: ${t};
142
+ stroke: ${e.nodeBorder};
143
+ }
144
+ `},`getStyles`),z=36,B=`actor-top`,V=`actor-bottom`,re=`actor-box`,H=`actor-man`,U=new Set([`redux-color`,`redux-dark-color`]),W=e(function(e,t){let n=w(e,t);return y().look===`neo`&&n.attr(`data-look`,`neo`),n},`drawRect`),ie=e(function(e,t,n,r,i){if(t.links===void 0||t.links===null||Object.keys(t.links).length===0)return{height:0,width:0};let a=t.links,o=t.actorCnt,s=t.rectData;var c=`none`;i&&(c=`block !important`);let l=e.append(`g`);l.attr(`id`,`actor`+o+`_popup`),l.attr(`class`,`actorPopupMenu`),l.attr(`display`,c);var u=``;s.class!==void 0&&(u=` `+s.class);let d=s.width>n?s.width:n,f=l.append(`rect`);if(f.attr(`class`,`actorPopupMenuPanel`+u),f.attr(`x`,s.x),f.attr(`y`,s.height),f.attr(`fill`,s.fill),f.attr(`stroke`,s.stroke),f.attr(`width`,d),f.attr(`height`,s.height),f.attr(`rx`,s.rx),f.attr(`ry`,s.ry),a!=null){var p=20;for(let e in a){var m=l.append(`a`),h=(0,N.sanitizeUrl)(a[e]);m.attr(`xlink:href`,h),m.attr(`target`,`_blank`),je(r)(e,m,s.x+10,s.height+p,d,20,{class:`actor`},r),p+=30}}return f.attr(`height`,p),{height:s.height+p,width:d}},`drawPopup`),ae=e(function(e){return`var pu = document.getElementById('`+e+`'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }`},`popupMenuToggle`),oe=e(async function(e,t,n=null){let r=e.append(`foreignObject`),i=await o(t.text,y()),a=r.append(`xhtml:div`).attr(`style`,`width: fit-content;`).attr(`xmlns`,`http://www.w3.org/1999/xhtml`).html(i).node().getBoundingClientRect();if(r.attr(`height`,Math.round(a.height)).attr(`width`,Math.round(a.width)),t.class===`noteText`){let n=e.node().firstChild;n.setAttribute(`height`,a.height+2*t.textMargin);let i=n.getBBox();r.attr(`x`,Math.round(i.x+i.width/2-a.width/2)).attr(`y`,Math.round(i.y+i.height/2-a.height/2))}else if(n){let{startx:e,stopx:i,starty:o}=n;if(e>i){let t=e;e=i,i=t}r.attr(`x`,Math.round(e+Math.abs(e-i)/2-a.width/2)),t.class===`loopText`?r.attr(`y`,Math.round(o)):r.attr(`y`,Math.round(o-a.height))}return[r]},`drawKatex`),G=e(function(t,n){let r=0,i=0,a=n.text.split(_.lineBreakRegex),[o,s]=S(n.fontSize),c=[],l=0,u=e(()=>n.y,`yfunc`);if(n.valign!==void 0&&n.textMargin!==void 0&&n.textMargin>0)switch(n.valign){case`top`:case`start`:u=e(()=>Math.round(n.y+n.textMargin),`yfunc`);break;case`middle`:case`center`:u=e(()=>Math.round(n.y+(r+i+n.textMargin)/2),`yfunc`);break;case`bottom`:case`end`:u=e(()=>Math.round(n.y+(r+i+2*n.textMargin)-n.textMargin),`yfunc`);break}if(n.anchor!==void 0&&n.textMargin!==void 0&&n.width!==void 0)switch(n.anchor){case`left`:case`start`:n.x=Math.round(n.x+n.textMargin),n.anchor=`start`,n.dominantBaseline=`middle`,n.alignmentBaseline=`middle`;break;case`middle`:case`center`:n.x=Math.round(n.x+n.width/2),n.anchor=`middle`,n.dominantBaseline=`middle`,n.alignmentBaseline=`middle`;break;case`right`:case`end`:n.x=Math.round(n.x+n.width-n.textMargin),n.anchor=`end`,n.dominantBaseline=`middle`,n.alignmentBaseline=`middle`;break}for(let[e,d]of a.entries()){n.textMargin!==void 0&&n.textMargin===0&&o!==void 0&&(l=e*o);let a=t.append(`text`);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);let f=d||`​`;if(n.tspan){let e=a.append(`tspan`);e.attr(`x`,n.x),n.fill!==void 0&&e.attr(`fill`,n.fill),e.text(f)}else a.text(f);n.valign!==void 0&&n.textMargin!==void 0&&n.textMargin>0&&(i+=(a._groups||a)[0][0].getBBox().height,r=i),c.push(a)}return c},`drawText`),se=e(function(t,n){function r(e,t,n,r,i){return e+`,`+t+` `+(e+n)+`,`+t+` `+(e+n)+`,`+(t+r-i)+` `+(e+n-i*1.2)+`,`+(t+r)+` `+e+`,`+(t+r)}e(r,`genPoints`);let i=t.append(`polygon`);return i.attr(`points`,r(n.x,n.y,n.width,n.height,7)),i.attr(`class`,`labelBox`),n.y+=n.height/2,G(t,n),i},`drawLabel`),K=-1,ce=e((e,t,n,r)=>{e.select&&n.forEach(n=>{let i=t.get(n),a=e.select(`#actor`+i.actorCnt);!r.mirrorActors&&i.stopy?a.attr(`y2`,i.stopy+i.height/2):r.mirrorActors&&a.attr(`y2`,i.stopy)})},`fixLifeLineHeights`),le=e(function(e,t,n,r,i){let a=r?t.stopy:t.starty,o=t.x+t.width/2,s=a+t.height,{look:c,theme:l,themeVariables:u}=n,{bkgColorArray:d,borderColorArray:f}=u,p=e.append(`g`).lower();var m=p;r||(K++,Object.keys(t.links||{}).length&&!n.forceMenus&&m.attr(`onclick`,ae(`actor${K}_popup`)).attr(`cursor`,`pointer`),m.append(`line`).attr(`id`,`actor`+K).attr(`x1`,o).attr(`y1`,s).attr(`x2`,o).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),m=p.append(`g`),t.actorCnt=K,t.links!=null&&m.attr(`id`,`root-`+K),c===`neo`&&m.attr(`data-look`,`neo`));let g=k();var _=`actor`;t.properties?.class?_=t.properties.class:g.fill=`#eaeaea`,r?_+=` ${V}`:_+=` ${B}`,g.x=t.x,g.y=a,g.width=t.width,g.height=t.height,g.class=_,g.rx=3,g.ry=3,g.name=t.name,c===`neo`&&(g.rx=6,g.ry=6);let v=W(m,g),y=i.get(t.name)??0;if(U.has(l)&&(v.style(`stroke`,f[y%f.length]),v.style(`fill`,d[y%f.length])),c===`neo`&&v.attr(`filter`,`url(#drop-shadow)`),t.rectData=g,t.properties?.icon){let e=t.properties.icon.trim();e.charAt(0)===`@`?O(m,g.x+g.width-20,g.y+10,e.substr(1)):E(m,g.x+g.width-20,g.y+10,e)}r||(m.attr(`data-et`,`participant`),m.attr(`data-type`,`participant`),m.attr(`data-id`,t.name)),Y(n,h(t.description))(t.description,m,g.x,g.y,g.width,g.height,{class:`actor ${re}`},n);let b=t.height;if(v.node){let e=v.node().getBBox();t.height=e.height,b=e.height}return b},`drawActorTypeParticipant`),ue=e(function(e,t,n,r,i){let a=r?t.stopy:t.starty,o=t.x+t.width/2,s=a+t.height,{look:c,theme:l,themeVariables:u}=n,{bkgColorArray:d,borderColorArray:f}=u,p=e.append(`g`).lower();var m=p;r||(K++,Object.keys(t.links||{}).length&&!n.forceMenus&&m.attr(`onclick`,ae(`actor${K}_popup`)).attr(`cursor`,`pointer`),m.append(`line`).attr(`id`,`actor`+K).attr(`x1`,o).attr(`y1`,s).attr(`x2`,o).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),m=p.append(`g`),t.actorCnt=K,t.links!=null&&m.attr(`id`,`root-`+K),c===`neo`&&m.attr(`data-look`,`neo`));let g=k();var _=`actor`;t.properties?.class?_=t.properties.class:g.fill=`#eaeaea`,r?_+=` ${V}`:_+=` ${B}`,g.x=t.x,g.y=a,g.width=t.width,g.height=t.height,g.class=_,g.name=t.name;let v={...g,x:g.x+-6,y:g.y+6,class:`actor`},y=W(m,g),b=W(m,v);t.rectData=g,c===`neo`&&m.attr(`filter`,`url(#drop-shadow)`);let x=i.get(t.name)??0;if(U.has(l)&&(y.style(`stroke`,f[x%f.length]),y.style(`fill`,d[x%f.length]),b.style(`stroke`,f[x%f.length]),b.style(`fill`,d[x%f.length])),t.properties?.icon){let e=t.properties.icon.trim();e.charAt(0)===`@`?O(m,g.x+g.width-20,g.y+10,e.substr(1)):E(m,g.x+g.width-20,g.y+10,e)}Y(n,h(t.description))(t.description,m,g.x-6,g.y+6,g.width,g.height,{class:`actor ${re}`},n);let S=t.height;if(y.node){let e=y.node().getBBox();t.height=e.height,S=e.height}return r||(m.attr(`data-et`,`participant`),m.attr(`data-type`,`collections`),m.attr(`data-id`,t.name)),S},`drawActorTypeCollections`),de=e(function(e,t,n,r,i){let a=r?t.stopy:t.starty,o=t.x+t.width/2,s=a+t.height,{look:c,theme:l,themeVariables:u}=n,{bkgColorArray:d,borderColorArray:f}=u,p=e.append(`g`).lower(),m=p;r||(K++,Object.keys(t.links||{}).length&&!n.forceMenus&&m.attr(`onclick`,ae(`actor${K}_popup`)).attr(`cursor`,`pointer`),m.append(`line`).attr(`id`,`actor`+K).attr(`x1`,o).attr(`y1`,s).attr(`x2`,o).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),m=p.append(`g`),t.actorCnt=K,t.links!=null&&m.attr(`id`,`root-`+K),c===`neo`&&m.attr(`data-look`,`neo`));let g=k(),_=`actor`;t.properties?.class?_=t.properties.class:g.fill=`#eaeaea`,r?_+=` ${V}`:_+=` ${B}`,m.attr(`class`,_),g.x=t.x,g.y=a,g.width=t.width,g.height=t.height,g.name=t.name;let v=g.height/2,y=v/(2.5+g.height/50),b=m.append(`g`),x=m.append(`g`),S=`M ${g.x},${g.y+v}
145
+ a ${y},${v} 0 0 0 0,${g.height}
146
+ h ${g.width-2*y}
147
+ a ${y},${v} 0 0 0 0,-${g.height}
148
+ Z
149
+ `;b.append(`path`).attr(`d`,S),x.append(`path`).attr(`d`,`M ${g.x},${g.y+v}
150
+ a ${y},${v} 0 0 0 0,${g.height}`),b.attr(`transform`,`translate(${y}, ${-(g.height/2)})`),x.attr(`transform`,`translate(${g.width-y}, ${-g.height/2})`),t.rectData=g,c===`neo`&&b.attr(`filter`,`url(#drop-shadow)`);let C=i.get(t.name)??0;if(U.has(l)&&(b.style(`stroke`,f[C%f.length]),b.style(`fill`,d[C%f.length]),x.style(`stroke`,f[C%f.length]),x.style(`fill`,d[C%f.length])),t.properties?.icon){let e=t.properties.icon.trim(),n=g.x+g.width-20,r=g.y+10;e.charAt(0)===`@`?O(m,n,r,e.substr(1)):E(m,n,r,e)}Y(n,h(t.description))(t.description,m,g.x,g.y,g.width,g.height,{class:`actor ${re}`},n);let w=t.height,T=b.select(`path:last-child`);if(T.node()){let e=T.node().getBBox();t.height=e.height,w=e.height}return r||(m.attr(`data-et`,`participant`),m.attr(`data-type`,`queue`),m.attr(`data-id`,t.name)),w},`drawActorTypeQueue`),fe=e(function(e,t,n,r,i,a){let o=r?t.stopy:t.starty,s=t.x+t.width/2,c=o+75,{look:l,theme:u,themeVariables:d}=n,{bkgColorArray:f,borderColorArray:p,actorBorder:m,actorBkg:g}=d,_=e.append(`g`).lower();r||(K++,_.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);let v=e.append(`g`),y=H;r?y+=` ${V}`:y+=` ${B}`,v.attr(`class`,y),v.attr(`name`,t.name);let b=k();b.x=t.x,b.y=o,b.fill=`#eaeaea`,b.width=t.width,b.height=t.height,b.class=`actor`;let x=t.x+t.width/2,S=o+32;v.append(`defs`).append(`marker`).attr(`id`,i+`-filled-head-control`).attr(`refX`,11).attr(`refY`,5.8).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`172.5`).attr(`stroke-width`,1.2).append(`path`).attr(`d`,`M 14.4 5.6 L 7.2 10.4 L 8.8 5.6 L 7.2 0.8 Z`),v.append(`circle`).attr(`cx`,x).attr(`cy`,S).attr(`r`,22).attr(`filter`,`${l===`neo`?`url(#drop-shadow)`:``}`),v.append(`line`).attr(`marker-end`,`url(#`+i+`-filled-head-control)`).attr(`transform`,`translate(${x}, ${S-22})`);let C=a.get(t.name)??0;return U.has(u)?(v.style(`stroke`,p[C%p.length]),v.style(`fill`,f[C%p.length])):(v.style(`stroke`,m),v.style(`fill`,g)),t.height=v.node().getBBox().height+2*(n?.sequence?.labelBoxHeight??0),Y(n,h(t.description))(t.description,v,b.x,b.y+22+(r?5:12),b.width,b.height,{class:`actor ${H}`},n),r||(v.attr(`data-et`,`participant`),v.attr(`data-type`,`control`),v.attr(`data-id`,t.name)),t.height},`drawActorTypeControl`),pe=e(function(e,t,n,r,i){let a=r?t.stopy:t.starty,o=t.x+t.width/2,s=a+75,{look:c,theme:l,themeVariables:u}=n,{bkgColorArray:d,borderColorArray:f}=u,p=e.append(`g`).lower(),m=e.append(`g`),g=`actor`;r?g+=` ${V}`:g+=` ${B}`,m.attr(`class`,g),m.attr(`name`,t.name);let _=k();_.x=t.x,_.y=a,_.fill=`#eaeaea`,_.width=t.width,_.height=t.height,_.class=`actor`;let v=t.x+t.width/2,y=a+(r?10:25);m.append(`circle`).attr(`cx`,v).attr(`cy`,y).attr(`r`,22).attr(`width`,t.width).attr(`height`,t.height),m.append(`line`).attr(`x1`,v-22).attr(`x2`,v+22).attr(`y1`,y+22).attr(`y2`,y+22).attr(`stroke-width`,2),c===`neo`&&m.attr(`filter`,`url(#drop-shadow)`);let b=i.get(t.name)??0;return U.has(l)&&(m.style(`stroke`,f[b%f.length]),m.style(`fill`,d[b%f.length])),t.height=m.node().getBBox().height+(n?.sequence?.labelBoxHeight??0),r||(K++,p.append(`line`).attr(`id`,`actor`+K).attr(`x1`,o).attr(`y1`,s).attr(`x2`,o).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,h(t.description))(t.description,m,_.x,_.y+(r?15:30),_.width,_.height,{class:`actor ${H}`},n),r?m.attr(`transform`,`translate(0, 22)`):(m.attr(`transform`,`translate(0, ${22/2-5})`),m.attr(`data-et`,`participant`),m.attr(`data-type`,`entity`),m.attr(`data-id`,t.name)),t.height},`drawActorTypeEntity`),me=e(function(e,t,n,r,i){let a=r?t.stopy:t.starty,o=t.x+t.width/2,s=a+t.height+2*n.boxTextMargin,{theme:c,themeVariables:l,look:u}=n,{bkgColorArray:d,borderColorArray:f,actorBorder:p}=l,m=e.append(`g`).lower(),g=m;r||(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`,o).attr(`y1`,s).attr(`x2`,o).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=m.append(`g`),t.actorCnt=K,t.links!=null&&g.attr(`id`,`root-`+K),u===`neo`&&g.attr(`data-look`,`neo`));let _=k(),v=`actor`;t.properties?.class?v=t.properties.class:_.fill=`#eaeaea`,r?v+=` ${V}`:v+=` ${B}`,_.x=t.x,_.y=a,_.width=t.width,_.height=t.height,_.class=v,_.name=t.name,_.x=t.x,_.y=a;let y=_.width/3,b=_.width/3,x=y/2,S=x/(2.5+y/50),C=g.append(`g`);C.attr(`class`,v);let w=`
151
+ M ${_.x},${_.y+S}
152
+ a ${x},${S} 0 0 0 ${y},0
153
+ a ${x},${S} 0 0 0 -${y},0
154
+ l 0,${b-2*S}
155
+ a ${x},${S} 0 0 0 ${y},0
156
+ l 0,-${b-2*S}
157
+ `;C.append(`path`).attr(`d`,w),u===`neo`&&C.attr(`filter`,`url(#drop-shadow)`);let T=i.get(t.name)??0;U.has(c)?(C.style(`stroke`,f[T%f.length]),C.style(`fill`,d[T%f.length])):C.style(`stroke`,p),C.attr(`transform`,`translate(${y}, ${S})`),t.rectData=_,Y(n,h(t.description))(t.description,g,_.x,_.y+35,_.width,_.height,{class:`actor ${re}`},n);let E=C.select(`path:last-child`);return E.node()&&(t.height=E.node().getBBox().height+(n.sequence.labelBoxHeight??0)),r||(g.attr(`data-et`,`participant`),g.attr(`data-type`,`database`),g.attr(`data-id`,t.name)),t.height},`drawActorTypeDatabase`),he=e(function(e,t,n,r,i){let a=r?t.stopy:t.starty,o=t.x+t.width/2,s=a+80,c=e.append(`g`).lower(),{look:l,theme:u,themeVariables:d}=n,{bkgColorArray:f,borderColorArray:p,actorBorder:m}=d;r||(K++,c.append(`line`).attr(`id`,`actor`+K).attr(`x1`,o).attr(`y1`,s).attr(`x2`,o).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);let g=e.append(`g`),_=H;r?_+=` ${V}`:_+=` ${B}`,g.attr(`class`,_),g.attr(`name`,t.name);let v=k();v.x=t.x,v.y=a,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`,a+12).attr(`x2`,t.x+t.width/2-15).attr(`y2`,a+12),g.append(`line`).attr(`id`,`actor-man-arms`+K).attr(`x1`,t.x+t.width/2-22*2.5).attr(`y1`,a+2).attr(`x2`,t.x+t.width/2-22*2.5).attr(`y2`,a+22),g.append(`circle`).attr(`cx`,t.x+t.width/2).attr(`cy`,a+12).attr(`r`,22),l===`neo`&&g.attr(`filter`,`url(#drop-shadow)`);let y=i.get(t.name)??0;return U.has(u)?(g.style(`stroke`,p[y%p.length]),g.style(`fill`,f[y%p.length])):g.style(`stroke`,m),t.height=g.node().getBBox().height+(n.sequence.labelBoxHeight??0),Y(n,h(t.description))(t.description,g,v.x,v.y+15,v.width,v.height,{class:`actor ${H}`},n),g.attr(`transform`,`translate(0,21)`),r||(g.attr(`data-et`,`participant`),g.attr(`data-type`,`boundary`),g.attr(`data-id`,t.name)),t.height},`drawActorTypeBoundary`),ge=e(function(e,t,n,r,i){let a=r?t.stopy:t.starty,o=t.x+t.width/2,s=a+80,{look:c,theme:l,themeVariables:u}=n,{bkgColorArray:d,borderColorArray:f,actorBorder:p}=u,m=e.append(`g`).lower();r||(K++,m.append(`line`).attr(`id`,`actor`+K).attr(`x1`,o).attr(`y1`,s).attr(`x2`,o).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);let g=e.append(`g`),_=H;r?_+=` ${V}`:_+=` ${B}`,g.attr(`class`,_),g.attr(`name`,t.name),r||g.attr(`data-et`,`participant`).attr(`data-type`,`actor`).attr(`data-id`,t.name);let v=c===`neo`?.5:1,y=c===`neo`?a+(1-v)*30:a;g.append(`line`).attr(`id`,`actor-man-torso`+K).attr(`x1`,o).attr(`y1`,y+25*v).attr(`x2`,o).attr(`y2`,y+45*v),g.append(`line`).attr(`id`,`actor-man-arms`+K).attr(`x1`,o-z/2*v).attr(`y1`,y+33*v).attr(`x2`,o+z/2*v).attr(`y2`,y+33*v),g.append(`line`).attr(`x1`,o-z/2*v).attr(`y1`,y+60*v).attr(`x2`,o).attr(`y2`,y+45*v),g.append(`line`).attr(`x1`,o).attr(`y1`,y+45*v).attr(`x2`,o+(z/2-2)*v).attr(`y2`,y+60*v);let b=g.append(`circle`);b.attr(`cx`,t.x+t.width/2),b.attr(`cy`,y+10*v),b.attr(`r`,15*v),b.attr(`width`,t.width*v),b.attr(`height`,t.height*v),t.height=g.node().getBBox().height;let x=k();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;let S=i.get(t.name)??0;return U.has(l)?(g.style(`stroke`,f[S%f.length]),g.style(`fill`,d[S%f.length])):g.style(`stroke`,p),Y(n,h(t.description))(t.description,g,x.x,y+35*v-(c===`neo`?10:0),x.width,x.height,{class:`actor ${H}`},n),t.height},`drawActorTypeActor`),_e=e(async function(e,t,n,r,i,a,o){let s=o??new Map([...a.db.getActors().values()].map((e,t)=>[e.name,t]));switch(t.type){case`actor`:return await ge(e,t,n,r,s);case`participant`:return await le(e,t,n,r,s);case`boundary`:return await he(e,t,n,r,s);case`control`:return await fe(e,t,n,r,i,s);case`entity`:return await pe(e,t,n,r,s);case`database`:return await me(e,t,n,r,s);case`collections`:return await ue(e,t,n,r,s);case`queue`:return await de(e,t,n,r,s)}},`drawActor`),ve=e(function(e,t,n){let r=e.append(`g`);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()},`drawBox`),ye=e(function(e){return e.append(`g`)},`anchorElement`),be=e(function(e,t,n,r,i,a,o){let{theme:s,themeVariables:c}=r,{bkgColorArray:l,borderColorArray:u,mainBkg:d}=c,f=k(),p=t.anchored,m=t.actor;f.x=t.startx,f.y=t.starty,f.class=`activation`+i%3,f.width=t.stopx-t.startx,f.height=n-t.starty;let h=W(p,f),g=(o??new Map([...a.db.getActors().values()].map((e,t)=>[e.name,t]))).get(m)??0;U.has(s)&&(h.style(`stroke`,u[g%u.length]),h.style(`fill`,l[g%u.length]??d))},`drawActivation`),xe=e(async function(t,n,r,i,a){let{boxMargin:o,boxTextMargin:s,labelBoxHeight:c,labelBoxWidth:l,messageFontFamily:u,messageFontSize:d,messageFontWeight:f}=i,p=t.append(`g`).attr(`data-et`,`control-structure`).attr(`data-id`,`i`+a.id),m=e(function(e,t,n,r){return p.append(`line`).attr(`x1`,e).attr(`y1`,t).attr(`x2`,n).attr(`y2`,r).attr(`class`,`loopLine`)},`drawLoopLine`);m(n.startx,n.starty,n.stopx,n.starty),m(n.stopx,n.starty,n.stopx,n.stopy),m(n.startx,n.stopy,n.stopx,n.stopy),m(n.startx,n.starty,n.startx,n.stopy),n.sections!==void 0&&n.sections.forEach(function(e){m(n.startx,e.y,n.stopx,e.y).style(`stroke-dasharray`,`3, 3`)});let g=T();g.text=r,g.x=n.startx,g.y=n.starty,g.fontFamily=u,g.fontSize=d,g.fontWeight=f,g.anchor=`middle`,g.valign=`middle`,g.tspan=!1,g.width=Math.max(l??0,50),g.height=c+(i.look===`neo`?15:0)||20,g.textMargin=s,g.class=`labelText`,se(p,g),g=ke(),g.text=n.title,g.x=n.startx+l/2+(n.stopx-n.startx)/2,g.y=n.starty+o+s,g.anchor=`middle`,g.valign=`middle`,g.textMargin=s,g.class=`loopText`,g.fontFamily=u,g.fontSize=d,g.fontWeight=f,g.wrap=!0;let _=h(g.text)?await oe(p,g,n):G(p,g);if(n.sectionTitles!==void 0){for(let[e,t]of Object.entries(n.sectionTitles))if(t.message){g.text=t.message,g.x=n.startx+(n.stopx-n.startx)/2,g.y=n.sections[e].y+o+s,g.class=`loopText`,g.anchor=`middle`,g.valign=`middle`,g.tspan=!1,g.fontFamily=u,g.fontSize=d,g.fontWeight=f,g.wrap=n.wrap,h(g.text)?(n.starty=n.sections[e].y,await oe(p,g,n)):G(p,g);let r=Math.round(_.map(e=>(e._groups||e)[0][0].getBBox().height).reduce((e,t)=>e+t));n.sections[e].height+=r-(o+s)}}return n.height=Math.round(n.stopy-n.starty),p},`drawLoop`),Se=e(function(e,t){D(e,t)},`drawBackgroundRect`),Ce=e(function(e,t){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`)},`insertDatabaseIcon`),q=e(function(e,t){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`)},`insertComputerIcon`),J=e(function(e,t){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`)},`insertClockIcon`),we=e(function(e,t){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`)},`insertArrowHead`),Te=e(function(e,t){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`)},`insertArrowFilledHead`),Ee=e(function(e,t){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)},`insertSequenceNumber`),De=e(function(e,t){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`)},`insertArrowCrossHead`),Oe=e(function(e,t){let{theme:n}=t;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`}`)},`insertDropShadow`),ke=e(function(){return{x:0,y:0,fill:void 0,anchor:void 0,style:`#666`,width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}},`getTextObj`),Ae=e(function(){return{x:0,y:0,fill:`#EDF2AE`,stroke:`#666`,width:100,anchor:`start`,height:100,rx:0,ry:0}},`getNoteRect`),Y=(function(){function t(e,t,n,r,i,o,s){a(t.append(`text`).attr(`x`,n+i/2).attr(`y`,r+o/2+5).style(`text-anchor`,`middle`).text(e),s)}e(t,`byText`);function n(e,t,n,r,i,o,s,c){let{actorFontSize:l,actorFontFamily:u,actorFontWeight:d}=c,[f,p]=S(l),m=e.split(_.lineBreakRegex);for(let e=0;e<m.length;e++){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);l.append(`tspan`).attr(`x`,n+i/2).attr(`dy`,c).text(m[e]),l.attr(`y`,r+o/2).attr(`dominant-baseline`,`central`).attr(`alignment-baseline`,`central`),a(l,s)}}e(n,`byTspan`);function r(e,t,r,i,o,s,c,l){let u=t.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%`);d.append(`div`).style(`display`,`table-cell`).style(`text-align`,`center`).style(`vertical-align`,`middle`).text(e),n(e,u,r,i,o,s,c,l),a(d,c)}e(r,`byFo`);async function i(e,t,r,i,s,c,l,u){let d=await m(e,y()),f=t.append(`switch`),p=f.append(`foreignObject`).attr(`x`,r+s/2-d.width/2).attr(`y`,i+c/2-d.height/2).attr(`width`,d.width).attr(`height`,d.height).append(`xhtml:div`).style(`height`,`100%`).style(`width`,`100%`);p.append(`div`).style(`text-align`,`center`).style(`vertical-align`,`middle`).html(await o(e,y())),n(e,f,r,i,s,c,l,u),a(p,l)}e(i,`byKatex`);function a(e,t){for(let n in t)t.hasOwnProperty(n)&&e.attr(n,t[n])}return e(a,`_setTextAttrs`),function(e,a=!1){return a?i:e.textPlacement===`fo`?r:e.textPlacement===`old`?t:n}})(),je=(function(){function t(e,t,n,r,a,o,s){i(t.append(`text`).attr(`x`,n).attr(`y`,r).style(`text-anchor`,`start`).text(e),s)}e(t,`byText`);function n(e,t,n,r,a,o,s,c){let{actorFontSize:l,actorFontFamily:u,actorFontWeight:d}=c,f=e.split(_.lineBreakRegex);for(let e=0;e<f.length;e++){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);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)}}e(n,`byTspan`);function r(e,t,r,a,o,s,c,l){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%`);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)}e(r,`byFo`);function i(e,t){for(let n in t)t.hasOwnProperty(n)&&e.attr(n,t[n])}return e(i,`_setTextAttrs`),function(e){return e.textPlacement===`fo`?r:e.textPlacement===`old`?t:n}})(),X={drawRect:W,drawText:G,drawLabel:se,drawActor:_e,drawBox:ve,drawPopup:ie,anchorElement:ye,drawActivation:be,drawLoop:xe,drawBackgroundRect:Se,insertArrowHead:we,insertArrowFilledHead:Te,insertSequenceNumber:Ee,insertArrowCrossHead:De,insertDatabaseIcon:Ce,insertComputerIcon:q,insertClockIcon:J,getTextObj:ke,getNoteRect:Ae,fixLifeLineHeights:ce,sanitizeUrl:N.sanitizeUrl,insertDropShadow:Oe,insertSolidTopArrowHead:e(function(e,t){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`)},`insertSolidTopArrowHead`),insertSolidBottomArrowHead:e(function(e,t){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`)},`insertSolidBottomArrowHead`),insertStickTopArrowHead:e(function(e,t){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`)},`insertStickTopArrowHead`),insertStickBottomArrowHead:e(function(e,t){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`)},`insertStickBottomArrowHead`)},Z={},Q={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],activations:[],models:{getHeight:e(function(){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))},`getHeight`),clear:e(function(){this.actors=[],this.boxes=[],this.loops=[],this.messages=[],this.notes=[]},`clear`),addBox:e(function(e){this.boxes.push(e)},`addBox`),addActor:e(function(e){this.actors.push(e)},`addActor`),addLoop:e(function(e){this.loops.push(e)},`addLoop`),addMessage:e(function(e){this.messages.push(e)},`addMessage`),addNote:e(function(e){this.notes.push(e)},`addNote`),lastActor:e(function(){return this.actors[this.actors.length-1]},`lastActor`),lastLoop:e(function(){return this.loops[this.loops.length-1]},`lastLoop`),lastMessage:e(function(){return this.messages[this.messages.length-1]},`lastMessage`),lastNote:e(function(){return this.notes[this.notes.length-1]},`lastNote`),actors:[],boxes:[],loops:[],messages:[],notes:[]},init:e(function(){this.sequenceItems=[],this.activations=[],this.models.clear(),this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0,He(f())},`init`),updateVal:e(function(e,t,n,r){e[t]===void 0?e[t]=n:e[t]=r(n,e[t])},`updateVal`),updateBounds:e(function(t,n,r,i){let a=this,o=0;function s(s){return e(function(e){o++;let c=a.sequenceItems.length-o+1;a.updateVal(e,`starty`,n-c*Z.boxMargin,Math.min),a.updateVal(e,`stopy`,i+c*Z.boxMargin,Math.max),a.updateVal(Q.data,`startx`,t-c*Z.boxMargin,Math.min),a.updateVal(Q.data,`stopx`,r+c*Z.boxMargin,Math.max),s!==`activation`&&(a.updateVal(e,`startx`,t-c*Z.boxMargin,Math.min),a.updateVal(e,`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))},`updateItemBounds`)}e(s,`updateFn`),this.sequenceItems.forEach(s()),this.activations.forEach(s(`activation`))},`updateBounds`),insert:e(function(e,t,n,r){let i=_.getMin(e,n),a=_.getMax(e,n),o=_.getMin(t,r),s=_.getMax(t,r);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)},`insert`),newActivation:e(function(e,t,n){let r=n.get(e.from),i=Ue(e.from).length||0,a=r.x+r.width/2+(i-1)*Z.activationWidth/2;this.activations.push({startx:a,starty:this.verticalPos+2,stopx:a+Z.activationWidth,stopy:void 0,actor:e.from,anchored:X.anchorElement(t)})},`newActivation`),endActivation:e(function(e){let t=this.activations.map(function(e){return e.actor}).lastIndexOf(e.from);return this.activations.splice(t,1)[0]},`endActivation`),createLoop:e(function(e={message:void 0,wrap:!1,width:void 0},t){return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:e.message,wrap:e.wrap,width:e.width,height:0,fill:t}},`createLoop`),newLoop:e(function(e={message:void 0,wrap:!1,width:void 0},t){this.sequenceItems.push(this.createLoop(e,t))},`newLoop`),endLoop:e(function(){return this.sequenceItems.pop()},`endLoop`),isLoopOverlap:e(function(){return this.sequenceItems.length?this.sequenceItems[this.sequenceItems.length-1].overlap:!1},`isLoopOverlap`),addSectionToLoop:e(function(e){let t=this.sequenceItems.pop();t.sections=t.sections||[],t.sectionTitles=t.sectionTitles||[],t.sections.push({y:Q.getVerticalPos(),height:0}),t.sectionTitles.push(e),this.sequenceItems.push(t)},`addSectionToLoop`),saveVerticalPos:e(function(){this.isLoopOverlap()&&(this.savedVerticalPos=this.verticalPos)},`saveVerticalPos`),resetVerticalPos:e(function(){this.isLoopOverlap()&&(this.verticalPos=this.savedVerticalPos)},`resetVerticalPos`),bumpVerticalPos:e(function(e){this.verticalPos+=e,this.data.stopy=_.getMax(this.data.stopy,this.verticalPos)},`bumpVerticalPos`),getVerticalPos:e(function(){return this.verticalPos},`getVerticalPos`),getBounds:e(function(){return{bounds:this.data,models:this.models}},`getBounds`)},Me=e(async function(e,t,n){Q.bumpVerticalPos(Z.boxMargin),t.height=Z.boxMargin,t.starty=Q.getVerticalPos();let r=k();r.x=t.startx,r.y=t.starty,r.width=t.width||Z.width,r.class=`note`;let i=e.append(`g`);i.attr(`data-et`,`note`),i.attr(`data-id`,`i`+n);let a=X.drawRect(i,r),o=T();o.x=t.startx,o.y=t.starty,o.width=r.width,o.dy=`1em`,o.text=t.message,o.class=`noteText`,o.fontFamily=Z.noteFontFamily,o.fontSize=Z.noteFontSize,o.fontWeight=Z.noteFontWeight,o.anchor=Z.noteAlign,o.textMargin=Z.noteMargin,o.valign=`center`;let s=h(o.text)?await oe(i,o):G(i,o),c=Math.round(s.map(e=>(e._groups||e)[0][0].getBBox().height).reduce((e,t)=>e+t));a.attr(`height`,c+2*Z.noteMargin),t.height+=c+2*Z.noteMargin,Q.bumpVerticalPos(c+2*Z.noteMargin),t.stopy=t.starty+c+2*Z.noteMargin,t.stopx=t.startx+r.width,Q.insert(t.startx,t.starty,t.stopx,t.stopy),Q.models.addNote(t)},`drawNote`),Ne=e(function(t,n,r,i,a,o,s){let c=i.db.getActors(),l=c.get(n.from),u=c.get(n.to),d=r.sequenceVisible,f=l.x+l.width/2,p=u.x+u.width/2,m=f<=p,h=tt(n,i),g=t.append(`g`),_=16.5,v=e((e,t)=>{let n=e?_:-_;return t?-n:n},`getCircleOffset`),y=e(e=>{g.append(`circle`).attr(`cx`,e).attr(`cy`,s).attr(`r`,5).attr(`width`,10).attr(`height`,10)},`drawCircle`),{CENTRAL_CONNECTION:b,CENTRAL_CONNECTION_REVERSE:x,CENTRAL_CONNECTION_DUAL:S}=i.db.LINETYPE;if(d)switch(n.centralConnection){case b:h&&(p+=v(m,!0));break;case x:h||(f+=v(m,!1));break;case S:h?p+=v(m,!0):f+=v(m,!1);break}switch(n.centralConnection){case b:y(p);break;case x:y(f);break;case S:y(f),y(p);break}},`drawCentralConnection`),Pe=e(e=>({fontFamily:e.messageFontFamily,fontSize:e.messageFontSize,fontWeight:e.messageFontWeight}),`messageFont`),Fe=e(e=>({fontFamily:e.noteFontFamily,fontSize:e.noteFontSize,fontWeight:e.noteFontWeight}),`noteFont`),Ie=e(e=>({fontFamily:e.actorFontFamily,fontSize:e.actorFontSize,fontWeight:e.actorFontWeight}),`actorFont`);async function Le(e,t){Q.bumpVerticalPos(10);let{startx:n,stopx:r,message:i}=t,a=_.splitBreaks(i).length,o=h(i),s=o?await m(i,f()):C.calculateTextDimensions(i,Pe(Z));if(!o){let e=s.height/a;t.height+=e,Q.bumpVerticalPos(e)}let c,l=s.height-10,u=s.width;if(n===r){c=Q.getVerticalPos()+l,Z.rightAngles||(l+=Z.boxMargin,c=Q.getVerticalPos()+l),l+=30;let e=_.getMax(u/2,Z.width/2);Q.insert(n-e,Q.getVerticalPos()-10+l,r+e,Q.getVerticalPos()+30+l)}else l+=Z.boxMargin,c=Q.getVerticalPos()+l,Q.insert(n,c-10,r,c);return Q.bumpVerticalPos(l),t.height+=l,t.stopy=t.starty+t.height,Q.insert(t.fromBounds,t.starty,t.toBounds,t.stopy),c}e(Le,`boundMessage`);var Re=e(async function(e,t,n,r,a,o){let{startx:s,stopx:c,starty:l,message:u,type:d,sequenceIndex:f,sequenceVisible:p}=t,m=C.calculateTextDimensions(u,Pe(Z)),g=T();g.x=s,g.y=l+10,g.width=c-s,g.class=`messageText`,g.dy=`1em`,g.text=u,g.fontFamily=Z.messageFontFamily,g.fontSize=Z.messageFontSize,g.fontWeight=Z.messageFontWeight,g.anchor=Z.messageAlign,g.valign=`center`,g.textMargin=Z.wrapPadding,g.tspan=!1,h(g.text)?await oe(e,g,{startx:s,stopx:c,starty:n}):G(e,g);let v=m.width,y;if(s===c){let i=p||Z.showSequenceNumbers,o=tt(a,r),l=nt(a,r),u=s+(i&&(o||l)?10:0);y=Z.rightAngles?e.append(`path`).attr(`d`,`M ${u},${n} H ${s+_.getMax(Z.width/2,v/2)} V ${n+25} H ${s}`):e.append(`path`).attr(`d`,`M `+u+`,`+n+` C `+(u+60)+`,`+(n-10)+` `+(s+60)+`,`+(n+30)+` `+s+`,`+(n+20)),$e(a,r)&&Ne(e,a,t,r,s,c,n)}else y=e.append(`line`),y.attr(`x1`,s),y.attr(`y1`,n),y.attr(`x2`,c),y.attr(`y2`,n),$e(a,r)&&Ne(e,a,t,r,s,c,n);d===r.db.LINETYPE.DOTTED||d===r.db.LINETYPE.DOTTED_CROSS||d===r.db.LINETYPE.DOTTED_POINT||d===r.db.LINETYPE.DOTTED_OPEN||d===r.db.LINETYPE.BIDIRECTIONAL_DOTTED||d===r.db.LINETYPE.SOLID_TOP_DOTTED||d===r.db.LINETYPE.SOLID_BOTTOM_DOTTED||d===r.db.LINETYPE.STICK_TOP_DOTTED||d===r.db.LINETYPE.STICK_BOTTOM_DOTTED||d===r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED||d===r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED||d===r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED||d===r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED?(y.style(`stroke-dasharray`,`3, 3`),y.attr(`class`,`messageLine1`)):y.attr(`class`,`messageLine0`),y.attr(`data-et`,`message`),y.attr(`data-id`,`i`+t.id),y.attr(`data-from`,t.from),y.attr(`data-to`,t.to);let b=``;if(Z.arrowMarkerAbsolute&&(b=i(!0)),y.attr(`stroke-width`,2),y.attr(`stroke`,`none`),y.style(`fill`,`none`),(d===r.db.LINETYPE.SOLID_TOP||d===r.db.LINETYPE.SOLID_TOP_DOTTED)&&y.attr(`marker-end`,`url(`+b+`#`+o+`-solidTopArrowHead)`),(d===r.db.LINETYPE.SOLID_BOTTOM||d===r.db.LINETYPE.SOLID_BOTTOM_DOTTED)&&y.attr(`marker-end`,`url(`+b+`#`+o+`-solidBottomArrowHead)`),(d===r.db.LINETYPE.STICK_TOP||d===r.db.LINETYPE.STICK_TOP_DOTTED)&&y.attr(`marker-end`,`url(`+b+`#`+o+`-stickTopArrowHead)`),(d===r.db.LINETYPE.STICK_BOTTOM||d===r.db.LINETYPE.STICK_BOTTOM_DOTTED)&&y.attr(`marker-end`,`url(`+b+`#`+o+`-stickBottomArrowHead)`),(d===r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE||d===r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED)&&y.attr(`marker-start`,`url(`+b+`#`+o+`-solidBottomArrowHead)`),(d===r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE||d===r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED)&&y.attr(`marker-start`,`url(`+b+`#`+o+`-solidTopArrowHead)`),(d===r.db.LINETYPE.STICK_ARROW_TOP_REVERSE||d===r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED)&&y.attr(`marker-start`,`url(`+b+`#`+o+`-stickBottomArrowHead)`),(d===r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE||d===r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED)&&y.attr(`marker-start`,`url(`+b+`#`+o+`-stickTopArrowHead)`),(d===r.db.LINETYPE.SOLID||d===r.db.LINETYPE.DOTTED)&&y.attr(`marker-end`,`url(`+b+`#`+o+`-arrowhead)`),(d===r.db.LINETYPE.BIDIRECTIONAL_SOLID||d===r.db.LINETYPE.BIDIRECTIONAL_DOTTED)&&(y.attr(`marker-start`,`url(`+b+`#`+o+`-arrowhead)`),y.attr(`marker-end`,`url(`+b+`#`+o+`-arrowhead)`)),(d===r.db.LINETYPE.SOLID_POINT||d===r.db.LINETYPE.DOTTED_POINT)&&y.attr(`marker-end`,`url(`+b+`#`+o+`-filled-head)`),(d===r.db.LINETYPE.SOLID_CROSS||d===r.db.LINETYPE.DOTTED_CROSS)&&y.attr(`marker-end`,`url(`+b+`#`+o+`-crosshead)`),p||Z.showSequenceNumbers){let i=d===r.db.LINETYPE.BIDIRECTIONAL_SOLID||d===r.db.LINETYPE.BIDIRECTIONAL_DOTTED,l=d===r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE||d===r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED||d===r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE||d===r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED||d===r.db.LINETYPE.STICK_ARROW_TOP_REVERSE||d===r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED||d===r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE||d===r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,u=$e(a,r),p=s,m=c;i?(s<c?p=s+12:(p=s-6+(u?-5:0),p+=a?.centralConnection===r.db.LINETYPE.CENTRAL_CONNECTION_DUAL||a?.centralConnection===r.db.LINETYPE.CENTRAL_CONNECTION_REVERSE?-7.5:0),y.attr(`x1`,p)):l?(c>s?m=c-12:(m=c-6,p+=a?.centralConnection===r.db.LINETYPE.CENTRAL_CONNECTION_DUAL||a?.centralConnection===r.db.LINETYPE.CENTRAL_CONNECTION_REVERSE?-7.5:0),m+=u?15:0,y.attr(`x2`,m),y.attr(`x1`,p)):y.attr(`x1`,s+6);let h=0,g=s===c,_=s<=c;h=g?t.fromBounds+1:l?_?t.toBounds-1:t.fromBounds+1:_?t.fromBounds+1:t.toBounds-1,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`,`12px`).attr(`text-anchor`,`middle`).attr(`class`,`sequenceNumber`).text(f)}},`drawMessage`),ze=e(function(e,t,n,r,i,a,o){let s=0,c=0,l,u=0;for(let e of r){let r=t.get(e),a=r.box;l&&l!=a&&(o||Q.models.addBox(l),c+=Z.boxMargin+l.margin),a&&a!=l&&(o||(a.x=s+c,a.y=i),c+=a.margin),r.width=_.getMax(r.width||Z.width,Z.width),r.height=_.getMax(r.height||Z.height,Z.height),r.margin=r.margin||Z.actorMargin,u=_.getMax(u,r.height),n.get(r.name)&&(c+=r.width/2),r.x=s+c,r.starty=Q.getVerticalPos(),Q.insert(r.x,i,r.x+r.width,r.height),s+=r.width+c,r.box&&(r.box.width=s+a.margin-r.box.x),c=r.margin,l=r.box,Q.models.addActor(r)}l&&!o&&Q.models.addBox(l),Q.bumpVerticalPos(u)},`addActorRenderingData`),Be=e(async function(e,t,n,r,i,a,o){if(r){let r=0;Q.bumpVerticalPos(Z.boxMargin*2);for(let s of n){let n=t.get(s);n.stopy||=Q.getVerticalPos();let c=await X.drawActor(e,n,Z,!0,i,a,o);r=_.getMax(r,c)}Q.bumpVerticalPos(r+Z.boxMargin)}else for(let r of n){let n=t.get(r);await X.drawActor(e,n,Z,!1,i,a,o)}},`drawActors`),Ve=e(function(e,t,n,r){let i=0,a=0;for(let o of n){let n=t.get(o),s=Je(n),c=X.drawPopup(e,n,s,Z,Z.forceMenus,r);c.height>i&&(i=c.height),c.width+n.x>a&&(a=c.width+n.x)}return{maxHeight:i,maxWidth:a}},`drawActorsPopup`),He=e(function(e){g(Z,e),e.fontFamily&&(Z.actorFontFamily=Z.noteFontFamily=Z.messageFontFamily=e.fontFamily),e.fontSize&&(Z.actorFontSize=Z.noteFontSize=Z.messageFontSize=e.fontSize),e.fontWeight&&(Z.actorFontWeight=Z.noteFontWeight=Z.messageFontWeight=e.fontWeight)},`setConf`),Ue=e(function(e){return Q.activations.filter(function(t){return t.actor===e})},`actorActivations`),We=e(function(e,t){let n=t.get(e),r=Ue(e);return[r.reduce(function(e,t){return _.getMin(e,t.startx)},n.x+n.width/2-1),r.reduce(function(e,t){return _.getMax(e,t.stopx)},n.x+n.width/2+1)]},`activationBounds`);function $(e,n,r,i,a){Q.bumpVerticalPos(r);let o=i;if(n.id&&n.message&&e[n.id]){let r=e[n.id].width,a=Pe(Z);n.message=C.wrapLabel(`[${n.message}]`,r-2*Z.wrapPadding,a),n.width=r,n.wrap=!0;let s=C.calculateTextDimensions(n.message,a),c=_.getMax(s.height,Z.labelBoxHeight);o=i+c,t.debug(`${c} - ${n.message}`)}a(n),Q.bumpVerticalPos(o)}e($,`adjustLoopHeightForWrap`);function Ge(t,n,r,i,a,o,s){function c(e,r){e.x<a.get(t.from).x?(Q.insert(n.stopx-r,n.starty,n.startx,n.stopy+e.height/2+Z.noteMargin),n.stopx+=r):(Q.insert(n.startx,n.starty,n.stopx+r,n.stopy+e.height/2+Z.noteMargin),n.stopx-=r)}e(c,`receiverAdjustment`);function l(e,r){e.x<a.get(t.to).x?(Q.insert(n.startx-r,n.starty,n.stopx,n.stopy+e.height/2+Z.noteMargin),n.startx+=r):(Q.insert(n.stopx,n.starty,n.startx+r,n.stopy+e.height/2+Z.noteMargin),n.startx-=r)}e(l,`senderAdjustment`);let u=[R.ACTOR,R.CONTROL,R.ENTITY,R.DATABASE];if(o.get(t.to)==i){let e=a.get(t.to);c(e,u.includes(e.type)?z/2+3:e.width/2+3),e.starty=r-e.height/2,Q.bumpVerticalPos(e.height/2)}else if(s.get(t.from)==i){let e=a.get(t.from);Z.mirrorActors&&l(e,u.includes(e.type)?z/2:e.width/2),e.stopy=r-e.height/2,Q.bumpVerticalPos(e.height/2)}else if(s.get(t.to)==i){let e=a.get(t.to);Z.mirrorActors&&c(e,u.includes(e.type)?z/2+3:e.width/2+3),e.stopy=r-e.height/2,Q.bumpVerticalPos(e.height/2)}}e(Ge,`adjustCreatedDestroyedData`);var Ke=e(async function(n,r,i,a){let{securityLevel:o,sequence:s,look:c}=f();Z=s;let l;o===`sandbox`&&(l=b(`#i`+r));let u=b(o===`sandbox`?l.nodes()[0].contentDocument.body:`body`),d=o===`sandbox`?l.nodes()[0].contentDocument:document;Q.init(),t.debug(a.db);let m=o===`sandbox`?u.select(`[id="${r}"]`):b(`[id="${r}"]`),h=a.db.getActors(),g=a.db.getCreatedActors(),_=a.db.getDestroyedActors(),v=a.db.getBoxes(),y=a.db.getActorKeys(),x=a.db.getMessages(),S=a.db.getDiagramTitle(),C=a.db.hasAtLeastOneBox(),w=a.db.hasAtLeastOneBoxWithTitle(),T=await qe(h,x,a);if(Z.height=await Ye(h,T,v),X.insertComputerIcon(m,r),X.insertDatabaseIcon(m,r),X.insertClockIcon(m,r),C&&(Q.bumpVerticalPos(Z.boxMargin),w&&Q.bumpVerticalPos(v[0].textMaxHeight)),Z.hideUnusedParticipants===!0){let e=new Set;x.forEach(t=>{e.add(t.from),e.add(t.to)}),y=y.filter(t=>e.has(t))}let E=new Map(y.map((e,t)=>[h.get(e)?.name??e,t]));ze(m,h,g,y,0,x,!1);let D=await it(x,h,T,a);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);function O(e,t){let n=Q.endActivation(e);n.starty+18>t&&(n.starty=t-6,t+=12),X.drawActivation(m,n,t,Z,Ue(e.from).length,a,E),Q.insert(n.startx,t-10,n.stopx,t)}e(O,`activeEnd`);let k=1,A=1,j=[],M=[],N=0;for(let e of x){let n,r,i;switch(e.type){case a.db.LINETYPE.NOTE:Q.resetVerticalPos(),r=e.noteModel,await Me(m,r,e.id);break;case a.db.LINETYPE.ACTIVE_START:Q.newActivation(e,m,h);break;case a.db.LINETYPE.CENTRAL_CONNECTION:Q.newActivation(e,m,h);break;case a.db.LINETYPE.CENTRAL_CONNECTION_REVERSE:Q.newActivation(e,m,h);break;case a.db.LINETYPE.ACTIVE_END:O(e,Q.getVerticalPos());break;case a.db.LINETYPE.LOOP_START:$(D,e,Z.boxMargin,Z.boxMargin+Z.boxTextMargin,e=>Q.newLoop(e));break;case a.db.LINETYPE.LOOP_END:n=Q.endLoop(),await X.drawLoop(m,n,`loop`,Z,e),Q.bumpVerticalPos(n.stopy-Q.getVerticalPos()),Q.models.addLoop(n);break;case a.db.LINETYPE.RECT_START:$(D,e,Z.boxMargin,Z.boxMargin,e=>Q.newLoop(void 0,e.message));break;case a.db.LINETYPE.RECT_END:n=Q.endLoop(),M.push(n),Q.models.addLoop(n),Q.bumpVerticalPos(n.stopy-Q.getVerticalPos());break;case a.db.LINETYPE.OPT_START:$(D,e,Z.boxMargin,Z.boxMargin+Z.boxTextMargin,e=>Q.newLoop(e));break;case a.db.LINETYPE.OPT_END:n=Q.endLoop(),await X.drawLoop(m,n,`opt`,Z,e),Q.bumpVerticalPos(n.stopy-Q.getVerticalPos()),Q.models.addLoop(n);break;case a.db.LINETYPE.ALT_START:$(D,e,Z.boxMargin,Z.boxMargin+Z.boxTextMargin,e=>Q.newLoop(e));break;case a.db.LINETYPE.ALT_ELSE:$(D,e,Z.boxMargin+Z.boxTextMargin,Z.boxMargin,e=>Q.addSectionToLoop(e));break;case a.db.LINETYPE.ALT_END:n=Q.endLoop(),await X.drawLoop(m,n,`alt`,Z,e),Q.bumpVerticalPos(n.stopy-Q.getVerticalPos()),Q.models.addLoop(n);break;case a.db.LINETYPE.PAR_START:case a.db.LINETYPE.PAR_OVER_START:$(D,e,Z.boxMargin,Z.boxMargin+Z.boxTextMargin,e=>Q.newLoop(e)),Q.saveVerticalPos();break;case a.db.LINETYPE.PAR_AND:$(D,e,Z.boxMargin+Z.boxTextMargin,Z.boxMargin,e=>Q.addSectionToLoop(e));break;case a.db.LINETYPE.PAR_END:n=Q.endLoop(),await X.drawLoop(m,n,`par`,Z,e),Q.bumpVerticalPos(n.stopy-Q.getVerticalPos()),Q.models.addLoop(n);break;case a.db.LINETYPE.AUTONUMBER:k=e.message.start||k,A=e.message.step||A,e.message.visible?a.db.enableSequenceNumbers():a.db.disableSequenceNumbers();break;case a.db.LINETYPE.CRITICAL_START:$(D,e,Z.boxMargin,Z.boxMargin+Z.boxTextMargin,e=>Q.newLoop(e));break;case a.db.LINETYPE.CRITICAL_OPTION:$(D,e,Z.boxMargin+Z.boxTextMargin,Z.boxMargin,e=>Q.addSectionToLoop(e));break;case a.db.LINETYPE.CRITICAL_END:n=Q.endLoop(),await X.drawLoop(m,n,`critical`,Z,e),Q.bumpVerticalPos(n.stopy-Q.getVerticalPos()),Q.models.addLoop(n);break;case a.db.LINETYPE.BREAK_START:$(D,e,Z.boxMargin,Z.boxMargin+Z.boxTextMargin,e=>Q.newLoop(e));break;case a.db.LINETYPE.BREAK_END:n=Q.endLoop(),await X.drawLoop(m,n,`break`,Z,e),Q.bumpVerticalPos(n.stopy-Q.getVerticalPos()),Q.models.addLoop(n);break;default:try{i=e.msgModel,i.starty=Q.getVerticalPos(),i.sequenceIndex=k,i.sequenceVisible=a.db.showSequenceNumbers(),i.id=e.id,i.from=e.from,i.to=e.to;let t=await Le(m,i);Ge(e,i,t,N,h,g,_),j.push({messageModel:i,lineStartY:t,msg:e}),Q.models.addMessage(i)}catch(e){t.error(`error while drawing message`,e)}}[a.db.LINETYPE.SOLID_OPEN,a.db.LINETYPE.DOTTED_OPEN,a.db.LINETYPE.SOLID,a.db.LINETYPE.SOLID_TOP,a.db.LINETYPE.SOLID_BOTTOM,a.db.LINETYPE.STICK_TOP,a.db.LINETYPE.STICK_BOTTOM,a.db.LINETYPE.SOLID_TOP_DOTTED,a.db.LINETYPE.SOLID_BOTTOM_DOTTED,a.db.LINETYPE.STICK_TOP_DOTTED,a.db.LINETYPE.STICK_BOTTOM_DOTTED,a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE,a.db.LINETYPE.STICK_ARROW_TOP_REVERSE,a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,a.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,a.db.LINETYPE.DOTTED,a.db.LINETYPE.SOLID_CROSS,a.db.LINETYPE.DOTTED_CROSS,a.db.LINETYPE.SOLID_POINT,a.db.LINETYPE.DOTTED_POINT,a.db.LINETYPE.BIDIRECTIONAL_SOLID,a.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(e.type)&&(k+=A),N++}t.debug(`createdActors`,g),t.debug(`destroyedActors`,_),await Be(m,h,y,!1,r,a,E);for(let e of j)await Re(m,e.messageModel,e.lineStartY,a,e.msg,r);Z.mirrorActors&&await Be(m,h,y,!0,r,a,E),M.forEach(e=>X.drawBackgroundRect(m,e)),ce(m,h,y,Z);for(let e of Q.models.boxes){e.height=Q.getVerticalPos()-e.y,Q.insert(e.x,e.y,e.x+e.width,e.height);let t=Z.boxMargin*2;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)}C&&Q.bumpVerticalPos(Z.boxMargin);let P=Ve(m,h,y,d),{bounds:F}=Q.getBounds();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);let I=F.stopy-F.starty;I<P.maxHeight&&(I=P.maxHeight);let L=I+2*Z.diagramMarginY;Z.mirrorActors&&(L=L-Z.boxMargin+Z.bottomMarginAdj);let ee=F.stopx-F.startx;ee<P.maxWidth&&(ee=P.maxWidth);let R=ee+2*Z.diagramMarginX;S&&m.append(`text`).text(S).attr(`x`,(F.stopx-F.startx)/2-2*Z.diagramMarginX).attr(`y`,-25),p(m,L,R,Z.useMaxWidth);let te=S?40:0,ne=h.size&&c===`neo`?30:0;m.attr(`viewBox`,F.startx-Z.diagramMarginX+` -`+(Z.diagramMarginY+te)+` `+R+` `+(L+te+ne)),t.debug(`models:`,Q.models)},`draw`);async function qe(e,n,r){let i={};for(let t of n)if(e.get(t.to)&&e.get(t.from)){let n=e.get(t.to);if(t.placement===r.db.PLACEMENT.LEFTOF&&!n.prevActor||t.placement===r.db.PLACEMENT.RIGHTOF&&!n.nextActor)continue;let a=t.placement!==void 0,o=!a,s=a?Fe(Z):Pe(Z),c=t.wrap?C.wrapLabel(t.message,Z.width-2*Z.wrapPadding,s):t.message,l=(h(c)?await m(t.message,f()):C.calculateTextDimensions(c,s)).width+2*Z.wrapPadding;o&&t.from===n.nextActor?i[t.to]=_.getMax(i[t.to]||0,l):o&&t.from===n.prevActor?i[t.from]=_.getMax(i[t.from]||0,l):o&&t.from===t.to?(i[t.from]=_.getMax(i[t.from]||0,l/2),i[t.to]=_.getMax(i[t.to]||0,l/2)):t.placement===r.db.PLACEMENT.RIGHTOF?i[t.from]=_.getMax(i[t.from]||0,l):t.placement===r.db.PLACEMENT.LEFTOF?i[n.prevActor]=_.getMax(i[n.prevActor]||0,l):t.placement===r.db.PLACEMENT.OVER&&(n.prevActor&&(i[n.prevActor]=_.getMax(i[n.prevActor]||0,l/2)),n.nextActor&&(i[t.from]=_.getMax(i[t.from]||0,l/2)))}return t.debug(`maxMessageWidthPerActor:`,i),i}e(qe,`getMaxMessageWidthPerActor`);var Je=e(function(e){let t=0,n=Ie(Z);for(let r in e.links){let e=C.calculateTextDimensions(r,n).width+2*Z.wrapPadding+2*Z.boxMargin;t<e&&(t=e)}return t},`getRequiredPopupWidth`);async function Ye(e,t,n){let r=0;for(let t of e.keys()){let n=e.get(t);n.wrap&&(n.description=C.wrapLabel(n.description,Z.width-2*Z.wrapPadding,Ie(Z)));let i=h(n.description)?await m(n.description,f()):C.calculateTextDimensions(n.description,Ie(Z));n.width=n.wrap?Z.width:_.getMax(Z.width,i.width+2*Z.wrapPadding),n.height=n.wrap?_.getMax(i.height,Z.height):Z.height,r=_.getMax(r,n.height)}for(let n in t){let r=e.get(n);if(!r)continue;let i=e.get(r.nextActor);if(!i){let e=t[n]+Z.actorMargin-r.width/2;r.margin=_.getMax(e,Z.actorMargin);continue}let a=t[n]+Z.actorMargin-r.width/2-i.width/2;r.margin=_.getMax(a,Z.actorMargin)}let i=0;return n.forEach(t=>{let n=Pe(Z),r=t.actorKeys.reduce((t,n)=>t+=e.get(n).width+(e.get(n).margin||0),0),a=Z.boxMargin*8;r+=a,r-=2*Z.boxTextMargin,t.wrap&&(t.name=C.wrapLabel(t.name,r-2*Z.wrapPadding,n));let o=C.calculateTextDimensions(t.name,n);i=_.getMax(o.height,i);let s=_.getMax(r,o.width+2*Z.wrapPadding);if(t.margin=Z.boxTextMargin,r<s){let e=(s-r)/2;t.margin+=e}}),n.forEach(e=>e.textMaxHeight=i),_.getMax(r,Z.height)}e(Ye,`calculateActorMargins`);var Xe=e(async function(e,n,r){let i=n.get(e.from),a=n.get(e.to),o=i.x,s=a.x,c=e.wrap&&e.message,l=h(e.message)?await m(e.message,f()):C.calculateTextDimensions(c?C.wrapLabel(e.message,Z.width,Fe(Z)):e.message,Fe(Z)),u={width:c?Z.width:_.getMax(Z.width,l.width+2*Z.noteMargin),height:0,startx:i.x,stopx:0,starty:0,stopy:0,message:e.message};return e.placement===r.db.PLACEMENT.RIGHTOF?(u.width=c?_.getMax(Z.width,l.width):_.getMax(i.width/2+a.width/2,l.width+2*Z.noteMargin),u.startx=o+(i.width+Z.actorMargin)/2):e.placement===r.db.PLACEMENT.LEFTOF?(u.width=c?_.getMax(Z.width,l.width+2*Z.noteMargin):_.getMax(i.width/2+a.width/2,l.width+2*Z.noteMargin),u.startx=o-u.width+(i.width-Z.actorMargin)/2):e.to===e.from?(l=C.calculateTextDimensions(c?C.wrapLabel(e.message,_.getMax(Z.width,i.width),Fe(Z)):e.message,Fe(Z)),u.width=c?_.getMax(Z.width,i.width):_.getMax(i.width,Z.width,l.width+2*Z.noteMargin),u.startx=o+(i.width-u.width)/2):(u.width=Math.abs(o+i.width/2-(s+a.width/2))+Z.actorMargin,u.startx=o<s?o+i.width/2-Z.actorMargin/2:s+a.width/2-Z.actorMargin/2),c&&(u.message=C.wrapLabel(e.message,u.width-2*Z.wrapPadding,Fe(Z))),t.debug(`NM:[${u.startx},${u.stopx},${u.starty},${u.stopy}:${u.width},${u.height}=${e.message}]`),u},`buildNoteModel`),Ze=4,Qe=6,$e=e(function(e,t){let{CENTRAL_CONNECTION:n,CENTRAL_CONNECTION_REVERSE:r,CENTRAL_CONNECTION_DUAL:i}=t.db.LINETYPE;return[n,r,i].includes(e.centralConnection)},`hasCentralConnection`),et=e(function(e,t,n){let{CENTRAL_CONNECTION_REVERSE:r,CENTRAL_CONNECTION_DUAL:i,BIDIRECTIONAL_SOLID:a,BIDIRECTIONAL_DOTTED:o}=t.db.LINETYPE,s=0;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},`calculateCentralConnectionOffset`),tt=e(function(e,t){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;return[n,r,i,a,o,s,c,l].includes(e.type)},`isReverseArrowType`),nt=e(function(e,t){let{BIDIRECTIONAL_SOLID:n,BIDIRECTIONAL_DOTTED:r}=t.db.LINETYPE;return[n,r].includes(e.type)},`isBidirectionalArrowType`),rt=e(function(t,n,r){let{look:i}=f();if(![r.db.LINETYPE.SOLID_OPEN,r.db.LINETYPE.DOTTED_OPEN,r.db.LINETYPE.SOLID,r.db.LINETYPE.SOLID_TOP,r.db.LINETYPE.SOLID_BOTTOM,r.db.LINETYPE.STICK_TOP,r.db.LINETYPE.STICK_BOTTOM,r.db.LINETYPE.SOLID_TOP_DOTTED,r.db.LINETYPE.SOLID_BOTTOM_DOTTED,r.db.LINETYPE.STICK_TOP_DOTTED,r.db.LINETYPE.STICK_BOTTOM_DOTTED,r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE,r.db.LINETYPE.STICK_ARROW_TOP_REVERSE,r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,r.db.LINETYPE.DOTTED,r.db.LINETYPE.SOLID_CROSS,r.db.LINETYPE.DOTTED_CROSS,r.db.LINETYPE.SOLID_POINT,r.db.LINETYPE.DOTTED_POINT,r.db.LINETYPE.BIDIRECTIONAL_SOLID,r.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(t.type))return{};let[a,o]=We(t.from,n),[s,c]=We(t.to,n),l=a<=s,u=l?o:a,d=l?s:c;i===`neo`&&(t.type!==r.db.LINETYPE.SOLID_OPEN&&(d+=l?-3:3),(t.type===r.db.LINETYPE.BIDIRECTIONAL_SOLID||t.type===r.db.LINETYPE.BIDIRECTIONAL_DOTTED)&&(u+=l?3:-3)),u+=et(t,r,l);let p=Math.abs(s-c)>2,m=e(e=>l?-e:e,`adjustValue`);t.from===t.to?d=u:(t.activate&&!p&&(d+=m(Z.activationWidth/2-1)),[r.db.LINETYPE.SOLID_OPEN,r.db.LINETYPE.DOTTED_OPEN,r.db.LINETYPE.STICK_TOP,r.db.LINETYPE.STICK_BOTTOM,r.db.LINETYPE.STICK_TOP_DOTTED,r.db.LINETYPE.STICK_BOTTOM_DOTTED,r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,r.db.LINETYPE.STICK_ARROW_TOP_REVERSE,r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE].includes(t.type)||(d+=m(3)),[r.db.LINETYPE.BIDIRECTIONAL_SOLID,r.db.LINETYPE.BIDIRECTIONAL_DOTTED,r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE].includes(t.type)&&(u-=m(3)));let h=[a,o,s,c],g=Math.abs(u-d);t.wrap&&t.message&&(t.message=C.wrapLabel(t.message,_.getMax(g+2*Z.wrapPadding,Z.width),Pe(Z)));let v=C.calculateTextDimensions(t.message,Pe(Z));return{width:_.getMax(t.wrap?0:v.width+2*Z.wrapPadding,g+2*Z.wrapPadding,Z.width),height:0,startx:u,stopx:d,starty:0,stopy:0,message:t.message,type:t.type,wrap:t.wrap,fromBounds:Math.min.apply(null,h),toBounds:Math.max.apply(null,h)}},`buildMessageModel`),it=e(async function(e,n,r,i){let a={},o=[],s,c,l;for(let t of e){switch(t.type){case i.db.LINETYPE.LOOP_START:case i.db.LINETYPE.ALT_START:case i.db.LINETYPE.OPT_START:case i.db.LINETYPE.PAR_START:case i.db.LINETYPE.PAR_OVER_START:case i.db.LINETYPE.CRITICAL_START:case i.db.LINETYPE.BREAK_START:o.push({id:t.id,msg:t.message,from:2**53-1,to:-(2**53-1),width:0});break;case i.db.LINETYPE.ALT_ELSE:case i.db.LINETYPE.PAR_AND:case i.db.LINETYPE.CRITICAL_OPTION:t.message&&(s=o.pop(),a[s.id]=s,a[t.id]=s,o.push(s));break;case i.db.LINETYPE.LOOP_END:case i.db.LINETYPE.ALT_END:case i.db.LINETYPE.OPT_END:case i.db.LINETYPE.PAR_END:case i.db.LINETYPE.CRITICAL_END:case i.db.LINETYPE.BREAK_END:s=o.pop(),a[s.id]=s;break;case i.db.LINETYPE.ACTIVE_START:{let e=n.get(t.from?t.from:t.to.actor),r=Ue(t.from?t.from:t.to.actor).length,i=e.x+e.width/2+(r-1)*Z.activationWidth/2,a={startx:i,stopx:i+Z.activationWidth,actor:t.from,enabled:!0};Q.activations.push(a)}break;case i.db.LINETYPE.ACTIVE_END:{let e=Q.activations.map(e=>e.actor).lastIndexOf(t.from);Q.activations.splice(e,1).splice(0,1)}break}t.placement===void 0?(l=rt(t,n,i),t.msgModel=l,l.startx&&l.stopx&&o.length>0&&o.forEach(e=>{if(s=e,l.startx===l.stopx){let e=n.get(t.from),r=n.get(t.to);s.from=_.getMin(e.x-l.width/2,e.x-e.width/2,s.from),s.to=_.getMax(r.x+l.width/2,r.x+e.width/2,s.to),s.width=_.getMax(s.width,Math.abs(s.to-s.from))-Z.labelBoxWidth}else s.from=_.getMin(l.startx,s.from),s.to=_.getMax(l.stopx,s.to),s.width=_.getMax(s.width,l.width)-Z.labelBoxWidth})):(c=await Xe(t,n,i),t.noteModel=c,o.forEach(e=>{s=e,s.from=_.getMin(s.from,c.startx),s.to=_.getMax(s.to,c.startx+c.width),s.width=_.getMax(s.width,Math.abs(s.from-s.to))-Z.labelBoxWidth}))}return Q.activations=[],t.debug(`Loop type widths:`,a),a},`calculateLoopBounds`),at={parser:F,get db(){return new te},renderer:{bounds:Q,drawActors:Be,drawActorsPopup:Ve,setConf:He,draw:Ke},styles:ne,init:e(e=>{e.sequence||={},e.wrap&&(e.sequence.wrap=e.wrap,s({sequence:{wrap:e.wrap}}))},`init`)};export{at as diagram};
@@ -0,0 +1 @@
1
+ import{o as e,t}from"./chunk-CFjPhJqf.js";import"./src-zyMpT2LE.js";var n=t(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},y=`en`,b={};b[y]=g;var x=`$isDayjsObject`,S=function(e){return e instanceof E||!(!e||!e[x])},C=function e(t,n,r){var i;if(!t)return y;if(typeof t==`string`){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},w=function(e,t){if(S(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new E(n)},T=v;T.l=C,T.i=S,T.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(T.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return T},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return w(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<w(e)},_.$g=function(e,t,n){return T.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,r=!!T.u(t)||t,u=T.p(e),p=function(e,t){var i=T.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},m=function(e,t){return T.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,_=this.$D,v=`set`+(this.$u?`UTC`:``);switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+`Hours`,0);case o:return m(v+`Minutes`,1);case a:return m(v+`Seconds`,2);case i:return m(v+`Milliseconds`,3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var n,c=T.p(e),u=`set`+(this.$u?`UTC`:``),p=(n={},n[s]=u+`Date`,n[f]=u+`Date`,n[l]=u+`Month`,n[d]=u+`FullYear`,n[o]=u+`Hours`,n[a]=u+`Minutes`,n[i]=u+`Seconds`,n[r]=u+`Milliseconds`,n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[T.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=T.p(u),h=function(e){var t=w(p);return T.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return h(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,_=this.$d.getTime()+r*g;return T.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=T.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return T.s(a%12||12,e,`0`)},m=u||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return T.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return T.s(s+1,2,`0`);case`MMM`:return d(n.monthsShort,s,l,3);case`MMMM`:return d(l,s);case`D`:return t.$D;case`DD`:return T.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return d(n.weekdaysMin,t.$W,c,2);case`ddd`:return d(n.weekdaysShort,t.$W,c,3);case`dddd`:return c[t.$W];case`H`:return String(a);case`HH`:return T.s(a,2,`0`);case`h`:return f(1);case`hh`:return f(2);case`a`:return m(a,o,!0);case`A`:return m(a,o,!1);case`m`:return String(o);case`mm`:return T.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return T.s(t.$s,2,`0`);case`SSS`:return T.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(r,f,p){var m,h=this,g=T.p(f),_=w(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return T.m(h,_)};switch(g){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/n;break;case a:m=y/t;break;case i:m=y/e;break;default:m=y}return p?m:T.a(m)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return b[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return T.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},g}(),D=E.prototype;return w.prototype=D,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach((function(e){D[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),w.extend=function(e,t){return e.$i||=(e(t,E,w),!0),w},w.locale=C,w.isDayjs=S,w.unix=function(e){return w(1e3*e)},w.en=b[y],w.Ls=b,w.p={},w}))})),r=e(n(),1),i=Object.defineProperty,a=(e,t)=>i(e,`name`,{value:t,configurable:!0}),o=(e,t)=>{for(var n in t)i(e,n,{get:t[n],enumerable:!0})},s={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},c={trace:a((...e)=>{},`trace`),debug:a((...e)=>{},`debug`),info:a((...e)=>{},`info`),warn:a((...e)=>{},`warn`),error:a((...e)=>{},`error`),fatal:a((...e)=>{},`fatal`)},l=a(function(e=`fatal`){let t=s.fatal;typeof e==`string`?e.toLowerCase()in s&&(t=s[e]):typeof e==`number`&&(t=e),c.trace=()=>{},c.debug=()=>{},c.info=()=>{},c.warn=()=>{},c.error=()=>{},c.fatal=()=>{},t<=s.fatal&&(c.fatal=console.error?console.error.bind(console,u(`FATAL`),`color: orange`):console.log.bind(console,`\x1B[35m`,u(`FATAL`))),t<=s.error&&(c.error=console.error?console.error.bind(console,u(`ERROR`),`color: orange`):console.log.bind(console,`\x1B[31m`,u(`ERROR`))),t<=s.warn&&(c.warn=console.warn?console.warn.bind(console,u(`WARN`),`color: orange`):console.log.bind(console,`\x1B[33m`,u(`WARN`))),t<=s.info&&(c.info=console.info?console.info.bind(console,u(`INFO`),`color: lightblue`):console.log.bind(console,`\x1B[34m`,u(`INFO`))),t<=s.debug&&(c.debug=console.debug?console.debug.bind(console,u(`DEBUG`),`color: lightgreen`):console.log.bind(console,`\x1B[32m`,u(`DEBUG`))),t<=s.trace&&(c.trace=console.debug?console.debug.bind(console,u(`TRACE`),`color: lightgreen`):console.log.bind(console,`\x1B[32m`,u(`TRACE`)))},`setLogLevel`),u=a(e=>`%c${(0,r.default)().format(`ss.SSS`)} : ${e} : `,`format`),{abs:d,max:f,min:p}=Math;[`w`,`e`].map(m),[`n`,`s`].map(m),[`n`,`w`,`e`,`s`,`nw`,`ne`,`sw`,`se`].map(m);function m(e){return{type:e}}export{n as a,l as i,a as n,c as r,o as t};
@@ -0,0 +1 @@
1
+ var e={value:()=>{}};function t(){for(var e=0,t=arguments.length,r={},i;e<t;++e){if(!(i=arguments[e]+``)||i in r||/[\s.]/.test(i))throw Error(`illegal type: `+i);r[i]=[]}return new n(r)}function n(e){this._=e}function r(e,t){return e.trim().split(/^|\s+/).map(function(e){var n=``,r=e.indexOf(`.`);if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw Error(`unknown type: `+e);return{type:e,name:n}})}n.prototype=t.prototype={constructor:n,on:function(e,t){var n=this._,o=r(e+``,n),s,c=-1,l=o.length;if(arguments.length<2){for(;++c<l;)if((s=(e=o[c]).type)&&(s=i(n[s],e.name)))return s;return}if(t!=null&&typeof t!=`function`)throw Error(`invalid callback: `+t);for(;++c<l;)if(s=(e=o[c]).type)n[s]=a(n[s],e.name,t);else if(t==null)for(s in n)n[s]=a(n[s],e.name,null);return this},copy:function(){var e={},t=this._;for(var r in t)e[r]=t[r].slice();return new n(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=Array(i),r=0,i,a;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(a=this._[e],r=0,i=a.length;r<i;++r)a[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(var r=this._[e],i=0,a=r.length;i<a;++i)r[i].value.apply(t,n)}};function i(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function a(t,n,r){for(var i=0,a=t.length;i<a;++i)if(t[i].name===n){t[i]=e,t=t.slice(0,i).concat(t.slice(i+1));break}return r!=null&&t.push({name:n,value:r}),t}var o={svg:`http://www.w3.org/2000/svg`,xhtml:`http://www.w3.org/1999/xhtml`,xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`,xmlns:`http://www.w3.org/2000/xmlns/`};function s(e){var t=e+=``,n=t.indexOf(`:`);return n>=0&&(t=e.slice(0,n))!==`xmlns`&&(e=e.slice(n+1)),o.hasOwnProperty(t)?{space:o[t],local:e}:e}function c(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===`http://www.w3.org/1999/xhtml`&&t.documentElement.namespaceURI===`http://www.w3.org/1999/xhtml`?t.createElement(e):t.createElementNS(n,e)}}function l(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function u(e){var t=s(e);return(t.local?l:c)(t)}function d(){}function f(e){return e==null?d:function(){return this.querySelector(e)}}function p(e){typeof e!=`function`&&(e=f(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=Array(o),c,l,u=0;u<o;++u)(c=a[u])&&(l=e.call(c,c.__data__,u,a))&&(`__data__`in c&&(l.__data__=c.__data__),s[u]=l);return new w(r,this._parents)}function m(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function h(){return[]}function g(e){return e==null?h:function(){return this.querySelectorAll(e)}}function _(e){return function(){return m(e.apply(this,arguments))}}function v(e){e=typeof e==`function`?_(e):g(e);for(var t=this._groups,n=t.length,r=[],i=[],a=0;a<n;++a)for(var o=t[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&(r.push(e.call(c,c.__data__,l,o)),i.push(c));return new w(r,i)}function y(e){return function(){return this.matches(e)}}function b(e){return function(t){return t.matches(e)}}var ee=Array.prototype.find;function te(e){return function(){return ee.call(this.children,e)}}function x(){return this.firstElementChild}function ne(e){return this.select(e==null?x:te(typeof e==`function`?e:b(e)))}var re=Array.prototype.filter;function ie(){return Array.from(this.children)}function ae(e){return function(){return re.call(this.children,e)}}function oe(e){return this.selectAll(e==null?ie:ae(typeof e==`function`?e:b(e)))}function se(e){typeof e!=`function`&&(e=y(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new w(r,this._parents)}function ce(e){return Array(e.length)}function le(){return new w(this._enter||this._groups.map(ce),this._parents)}function S(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}S.prototype={constructor:S,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function ue(e){return function(){return e}}function de(e,t,n,r,i,a){for(var o=0,s,c=t.length,l=a.length;o<l;++o)(s=t[o])?(s.__data__=a[o],r[o]=s):n[o]=new S(e,a[o]);for(;o<c;++o)(s=t[o])&&(i[o]=s)}function fe(e,t,n,r,i,a,o){var s,c,l=new Map,u=t.length,d=a.length,f=Array(u),p;for(s=0;s<u;++s)(c=t[s])&&(f[s]=p=o.call(c,c.__data__,s,t)+``,l.has(p)?i[s]=c:l.set(p,c));for(s=0;s<d;++s)p=o.call(e,a[s],s,a)+``,(c=l.get(p))?(r[s]=c,c.__data__=a[s],l.delete(p)):n[s]=new S(e,a[s]);for(s=0;s<u;++s)(c=t[s])&&l.get(f[s])===c&&(i[s]=c)}function pe(e){return e.__data__}function me(e,t){if(!arguments.length)return Array.from(this,pe);var n=t?fe:de,r=this._parents,i=this._groups;typeof e!=`function`&&(e=ue(e));for(var a=i.length,o=Array(a),s=Array(a),c=Array(a),l=0;l<a;++l){var u=r[l],d=i[l],f=d.length,p=he(e.call(u,u&&u.__data__,l,r)),m=p.length,h=s[l]=Array(m),g=o[l]=Array(m);n(u,d,h,g,c[l]=Array(f),p,t);for(var _=0,v=0,y,b;_<m;++_)if(y=h[_]){for(_>=v&&(v=_+1);!(b=g[v])&&++v<m;);y._next=b||null}}return o=new w(o,r),o._enter=s,o._exit=c,o}function he(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function ge(){return new w(this._exit||this._groups.map(ce),this._parents)}function _e(e,t,n){var r=this.enter(),i=this,a=this.exit();return typeof e==`function`?(r=e(r),r&&=r.selection()):r=r.append(e+``),t!=null&&(i=t(i),i&&=i.selection()),n==null?a.remove():n(a),r&&i?r.merge(i).order():i}function ve(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,a=r.length,o=Math.min(i,a),s=Array(i),c=0;c<o;++c)for(var l=n[c],u=r[c],d=l.length,f=s[c]=Array(d),p,m=0;m<d;++m)(p=l[m]||u[m])&&(f[m]=p);for(;c<i;++c)s[c]=n[c];return new w(s,this._parents)}function ye(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,a=r[i],o;--i>=0;)(o=r[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function be(e){e||=xe;function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}for(var n=this._groups,r=n.length,i=Array(r),a=0;a<r;++a){for(var o=n[a],s=o.length,c=i[a]=Array(s),l,u=0;u<s;++u)(l=o[u])&&(c[u]=l);c.sort(t)}return new w(i,this._parents).order()}function xe(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Se(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Ce(){return Array.from(this)}function we(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null}function Te(){let e=0;for(let t of this)++e;return e}function Ee(){return!this.node()}function De(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],a=0,o=i.length,s;a<o;++a)(s=i[a])&&e.call(s,s.__data__,a,i);return this}function Oe(e){return function(){this.removeAttribute(e)}}function ke(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Ae(e,t){return function(){this.setAttribute(e,t)}}function je(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Me(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function Ne(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function Pe(e,t){var n=s(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?ke:Oe:typeof t==`function`?n.local?Ne:Me:n.local?je:Ae)(n,t))}function Fe(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Ie(e){return function(){this.style.removeProperty(e)}}function Le(e,t,n){return function(){this.style.setProperty(e,t,n)}}function Re(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function ze(e,t,n){return arguments.length>1?this.each((t==null?Ie:typeof t==`function`?Re:Le)(e,t,n??``)):C(this.node(),e)}function C(e,t){return e.style.getPropertyValue(t)||Fe(e).getComputedStyle(e,null).getPropertyValue(t)}function Be(e){return function(){delete this[e]}}function Ve(e,t){return function(){this[e]=t}}function He(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function Ue(e,t){return arguments.length>1?this.each((t==null?Be:typeof t==`function`?He:Ve)(e,t)):this.node()[e]}function We(e){return e.trim().split(/^|\s+/)}function Ge(e){return e.classList||new Ke(e)}function Ke(e){this._node=e,this._names=We(e.getAttribute(`class`)||``)}Ke.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute(`class`,this._names.join(` `)))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute(`class`,this._names.join(` `)))},contains:function(e){return this._names.indexOf(e)>=0}};function qe(e,t){for(var n=Ge(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function Je(e,t){for(var n=Ge(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function Ye(e){return function(){qe(this,e)}}function Xe(e){return function(){Je(this,e)}}function Ze(e,t){return function(){(t.apply(this,arguments)?qe:Je)(this,e)}}function Qe(e,t){var n=We(e+``);if(arguments.length<2){for(var r=Ge(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t==`function`?Ze:t?Ye:Xe)(n,t))}function $e(){this.textContent=``}function et(e){return function(){this.textContent=e}}function tt(e){return function(){this.textContent=e.apply(this,arguments)??``}}function nt(e){return arguments.length?this.each(e==null?$e:(typeof e==`function`?tt:et)(e)):this.node().textContent}function rt(){this.innerHTML=``}function it(e){return function(){this.innerHTML=e}}function at(e){return function(){this.innerHTML=e.apply(this,arguments)??``}}function ot(e){return arguments.length?this.each(e==null?rt:(typeof e==`function`?at:it)(e)):this.node().innerHTML}function st(){this.nextSibling&&this.parentNode.appendChild(this)}function ct(){return this.each(st)}function lt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function ut(){return this.each(lt)}function dt(e){var t=typeof e==`function`?e:u(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function ft(){return null}function pt(e,t){var n=typeof e==`function`?e:u(e),r=t==null?ft:typeof t==`function`?t:f(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function mt(){var e=this.parentNode;e&&e.removeChild(this)}function ht(){return this.each(mt)}function gt(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function _t(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function vt(e){return this.select(e?_t:gt)}function yt(e){return arguments.length?this.property(`__data__`,e):this.node().__data__}function bt(e){return function(t){e.call(this,t,this.__data__)}}function xt(e){return e.trim().split(/^|\s+/).map(function(e){var t=``,n=e.indexOf(`.`);return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}function St(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,a;n<i;++n)a=t[n],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++r]=a;++r?t.length=r:delete this.__on}}}function Ct(e,t,n){return function(){var r=this.__on,i,a=bt(t);if(r){for(var o=0,s=r.length;o<s;++o)if((i=r[o]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=n),i.value=t;return}}this.addEventListener(e.type,a,n),i={type:e.type,name:e.name,value:t,listener:a,options:n},r?r.push(i):this.__on=[i]}}function wt(e,t,n){var r=xt(e+``),i,a=r.length,o;if(arguments.length<2){var s=this.node().__on;if(s){for(var c=0,l=s.length,u;c<l;++c)for(i=0,u=s[c];i<a;++i)if((o=r[i]).type===u.type&&o.name===u.name)return u.value}return}for(s=t?Ct:St,i=0;i<a;++i)this.each(s(r[i],t,n));return this}function Tt(e,t,n){var r=Fe(e),i=r.CustomEvent;typeof i==`function`?i=new i(t,n):(i=r.document.createEvent(`Event`),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function Et(e,t){return function(){return Tt(this,e,t)}}function Dt(e,t){return function(){return Tt(this,e,t.apply(this,arguments))}}function Ot(e,t){return this.each((typeof t==`function`?Dt:Et)(e,t))}function*kt(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length,o;i<a;++i)(o=r[i])&&(yield o)}var At=[null];function w(e,t){this._groups=e,this._parents=t}function T(){return new w([[document.documentElement]],At)}function jt(){return this}w.prototype=T.prototype={constructor:w,select:p,selectAll:v,selectChild:ne,selectChildren:oe,filter:se,data:me,enter:le,exit:ge,join:_e,merge:ve,selection:jt,order:ye,sort:be,call:Se,nodes:Ce,node:we,size:Te,empty:Ee,each:De,attr:Pe,style:ze,property:Ue,classed:Qe,text:nt,html:ot,raise:ct,lower:ut,append:dt,insert:pt,remove:ht,clone:vt,datum:yt,on:wt,dispatch:Ot,[Symbol.iterator]:kt};function E(e){return typeof e==`string`?new w([[document.querySelector(e)]],[document.documentElement]):new w([[e]],At)}function Mt(e){let t;for(;t=e.sourceEvent;)e=t;return e}function D(e,t){if(e=Mt(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}var Nt={passive:!1},O={capture:!0,passive:!1};function Pt(e){e.stopImmediatePropagation()}function k(e){e.preventDefault(),e.stopImmediatePropagation()}function Ft(e){var t=e.document.documentElement,n=E(e).on(`dragstart.drag`,k,O);`onselectstart`in t?n.on(`selectstart.drag`,k,O):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect=`none`)}function It(e,t){var n=e.document.documentElement,r=E(e).on(`dragstart.drag`,null);t&&(r.on(`click.drag`,k,O),setTimeout(function(){r.on(`click.drag`,null)},0)),`onselectstart`in n?r.on(`selectstart.drag`,null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}function A(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Lt(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function j(){}var M=.7,Rt=1/M,N=`\\s*([+-]?\\d+)\\s*`,P=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*`,F=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*`,zt=/^#([0-9a-f]{3,8})$/,Bt=RegExp(`^rgb\\(${N},${N},${N}\\)$`),Vt=RegExp(`^rgb\\(${F},${F},${F}\\)$`),Ht=RegExp(`^rgba\\(${N},${N},${N},${P}\\)$`),Ut=RegExp(`^rgba\\(${F},${F},${F},${P}\\)$`),Wt=RegExp(`^hsl\\(${P},${F},${F}\\)$`),Gt=RegExp(`^hsla\\(${P},${F},${F},${P}\\)$`),Kt={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};A(j,I,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:qt,formatHex:qt,formatHex8:Jt,formatHsl:Yt,formatRgb:Xt,toString:Xt});function qt(){return this.rgb().formatHex()}function Jt(){return this.rgb().formatHex8()}function Yt(){return on(this).formatHsl()}function Xt(){return this.rgb().formatRgb()}function I(e){var t,n;return e=(e+``).trim().toLowerCase(),(t=zt.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?Zt(t):n===3?new L(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Qt(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Qt(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Bt.exec(e))?new L(t[1],t[2],t[3],1):(t=Vt.exec(e))?new L(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Ht.exec(e))?Qt(t[1],t[2],t[3],t[4]):(t=Ut.exec(e))?Qt(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Wt.exec(e))?an(t[1],t[2]/100,t[3]/100,1):(t=Gt.exec(e))?an(t[1],t[2]/100,t[3]/100,t[4]):Kt.hasOwnProperty(e)?Zt(Kt[e]):e===`transparent`?new L(NaN,NaN,NaN,0):null}function Zt(e){return new L(e>>16&255,e>>8&255,e&255,1)}function Qt(e,t,n,r){return r<=0&&(e=t=n=NaN),new L(e,t,n,r)}function $t(e){return e instanceof j||(e=I(e)),e?(e=e.rgb(),new L(e.r,e.g,e.b,e.opacity)):new L}function en(e,t,n,r){return arguments.length===1?$t(e):new L(e,t,n,r??1)}function L(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}A(L,en,Lt(j,{brighter(e){return e=e==null?Rt:Rt**+e,new L(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?M:M**+e,new L(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new L(z(this.r),z(this.g),z(this.b),R(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:tn,formatHex:tn,formatHex8:nn,formatRgb:rn,toString:rn}));function tn(){return`#${B(this.r)}${B(this.g)}${B(this.b)}`}function nn(){return`#${B(this.r)}${B(this.g)}${B(this.b)}${B((isNaN(this.opacity)?1:this.opacity)*255)}`}function rn(){let e=R(this.opacity);return`${e===1?`rgb(`:`rgba(`}${z(this.r)}, ${z(this.g)}, ${z(this.b)}${e===1?`)`:`, ${e})`}`}function R(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function z(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function B(e){return e=z(e),(e<16?`0`:``)+e.toString(16)}function an(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new V(e,t,n,r)}function on(e){if(e instanceof V)return new V(e.h,e.s,e.l,e.opacity);if(e instanceof j||(e=I(e)),!e)return new V;if(e instanceof V)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=t===a?(n-r)/s+(n<r)*6:n===a?(r-t)/s+2:(t-n)/s+4,s/=c<.5?a+i:2-a-i,o*=60):s=c>0&&c<1?0:o,new V(o,s,c,e.opacity)}function sn(e,t,n,r){return arguments.length===1?on(e):new V(e,t,n,r??1)}function V(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}A(V,sn,Lt(j,{brighter(e){return e=e==null?Rt:Rt**+e,new V(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?M:M**+e,new V(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new L(ln(e>=240?e-240:e+120,i,r),ln(e,i,r),ln(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new V(cn(this.h),H(this.s),H(this.l),R(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=R(this.opacity);return`${e===1?`hsl(`:`hsla(`}${cn(this.h)}, ${H(this.s)*100}%, ${H(this.l)*100}%${e===1?`)`:`, ${e})`}`}}));function cn(e){return e=(e||0)%360,e<0?e+360:e}function H(e){return Math.max(0,Math.min(1,e||0))}function ln(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var un=e=>()=>e;function dn(e,t){return function(n){return e+n*t}}function fn(e,t,n){return e**=+n,t=t**+n-e,n=1/n,function(r){return(e+r*t)**+n}}function pn(e,t){var n=t-e;return n?dn(e,n>180||n<-180?n-360*Math.round(n/360):n):un(isNaN(e)?t:e)}function mn(e){return(e=+e)==1?hn:function(t,n){return n-t?fn(t,n,e):un(isNaN(t)?n:t)}}function hn(e,t){var n=t-e;return n?dn(e,n):un(isNaN(e)?t:e)}var gn=(function e(t){var n=mn(t);function r(e,t){var r=n((e=en(e)).r,(t=en(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=hn(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+``}}return r.gamma=e,r})(1);function U(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var _n=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,vn=new RegExp(_n.source,`g`);function yn(e){return function(){return e}}function bn(e){return function(t){return e(t)+``}}function xn(e,t){var n=_n.lastIndex=vn.lastIndex=0,r,i,a,o=-1,s=[],c=[];for(e+=``,t+=``;(r=_n.exec(e))&&(i=vn.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,c.push({i:o,x:U(r,i)})),n=vn.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?c[0]?bn(c[0].x):yn(t):(t=c.length,function(e){for(var n=0,r;n<t;++n)s[(r=c[n]).i]=r.x(e);return s.join(``)})}var Sn=180/Math.PI,Cn={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function wn(e,t,n,r,i,a){var o,s,c;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(c=e*n+t*r)&&(n-=e*c,r-=t*c),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,c/=s),e*r<t*n&&(e=-e,t=-t,c=-c,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*Sn,skewX:Math.atan(c)*Sn,scaleX:o,scaleY:s}}var Tn;function En(e){let t=new(typeof DOMMatrix==`function`?DOMMatrix:WebKitCSSMatrix)(e+``);return t.isIdentity?Cn:wn(t.a,t.b,t.c,t.d,t.e,t.f)}function Dn(e){return e==null||(Tn||=document.createElementNS(`http://www.w3.org/2000/svg`,`g`),Tn.setAttribute(`transform`,e),!(e=Tn.transform.baseVal.consolidate()))?Cn:(e=e.matrix,wn(e.a,e.b,e.c,e.d,e.e,e.f))}function On(e,t,n,r){function i(e){return e.length?e.pop()+` `:``}function a(e,r,i,a,o,s){if(e!==i||r!==a){var c=o.push(`translate(`,null,t,null,n);s.push({i:c-4,x:U(e,i)},{i:c-2,x:U(r,a)})}else (i||a)&&o.push(`translate(`+i+t+a+n)}function o(e,t,n,a){e===t?t&&n.push(i(n)+`rotate(`+t+r):(e-t>180?t+=360:t-e>180&&(e+=360),a.push({i:n.push(i(n)+`rotate(`,null,r)-2,x:U(e,t)}))}function s(e,t,n,a){e===t?t&&n.push(i(n)+`skewX(`+t+r):a.push({i:n.push(i(n)+`skewX(`,null,r)-2,x:U(e,t)})}function c(e,t,n,r,a,o){if(e!==n||t!==r){var s=a.push(i(a)+`scale(`,null,`,`,null,`)`);o.push({i:s-4,x:U(e,n)},{i:s-2,x:U(t,r)})}else (n!==1||r!==1)&&a.push(i(a)+`scale(`+n+`,`+r+`)`)}return function(t,n){var r=[],i=[];return t=e(t),n=e(n),a(t.translateX,t.translateY,n.translateX,n.translateY,r,i),o(t.rotate,n.rotate,r,i),s(t.skewX,n.skewX,r,i),c(t.scaleX,t.scaleY,n.scaleX,n.scaleY,r,i),t=n=null,function(e){for(var t=-1,n=i.length,a;++t<n;)r[(a=i[t]).i]=a.x(e);return r.join(``)}}}var kn=On(En,`px, `,`px)`,`deg)`),An=On(Dn,`, `,`)`,`)`),jn=1e-12;function Mn(e){return((e=Math.exp(e))+1/e)/2}function Nn(e){return((e=Math.exp(e))-1/e)/2}function Pn(e){return((e=Math.exp(2*e))-1)/(e+1)}var Fn=(function e(t,n,r){function i(e,i){var a=e[0],o=e[1],s=e[2],c=i[0],l=i[1],u=i[2],d=c-a,f=l-o,p=d*d+f*f,m,h;if(p<jn)h=Math.log(u/s)/t,m=function(e){return[a+e*d,o+e*f,s*Math.exp(t*e*h)]};else{var g=Math.sqrt(p),_=(u*u-s*s+r*p)/(2*s*n*g),v=(u*u-s*s-r*p)/(2*u*n*g),y=Math.log(Math.sqrt(_*_+1)-_);h=(Math.log(Math.sqrt(v*v+1)-v)-y)/t,m=function(e){var r=e*h,i=Mn(y),c=s/(n*g)*(i*Pn(t*r+y)-Nn(y));return[a+c*d,o+c*f,s*i/Mn(t*r+y)]}}return m.duration=h*1e3*t/Math.SQRT2,m}return i.rho=function(t){var n=Math.max(.001,+t),r=n*n;return e(n,r,r*r)},i})(Math.SQRT2,2,4),W=0,In=0,Ln=0,Rn=1e3,zn,G,Bn=0,K=0,Vn=0,q=typeof performance==`object`&&performance.now?performance:Date,Hn=typeof window==`object`&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Un(){return K||=(Hn(Wn),q.now()+Vn)}function Wn(){K=0}function Gn(){this._call=this._time=this._next=null}Gn.prototype=Kn.prototype={constructor:Gn,restart:function(e,t,n){if(typeof e!=`function`)throw TypeError(`callback is not a function`);n=(n==null?Un():+n)+(t==null?0:+t),!this._next&&G!==this&&(G?G._next=this:zn=this,G=this),this._call=e,this._time=n,Zn()},stop:function(){this._call&&(this._call=null,this._time=1/0,Zn())}};function Kn(e,t,n){var r=new Gn;return r.restart(e,t,n),r}function qn(){Un(),++W;for(var e=zn,t;e;)(t=K-e._time)>=0&&e._call.call(void 0,t),e=e._next;--W}function Jn(){K=(Bn=q.now())+Vn,W=In=0;try{qn()}finally{W=0,Xn(),K=0}}function Yn(){var e=q.now(),t=e-Bn;t>Rn&&(Vn-=t,Bn=e)}function Xn(){for(var e,t=zn,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:zn=n);G=e,Zn(r)}function Zn(e){W||(In&&=clearTimeout(In),e-K>24?(e<1/0&&(In=setTimeout(Jn,e-q.now()-Vn)),Ln&&=clearInterval(Ln)):(Ln||=(Bn=q.now(),setInterval(Yn,Rn)),W=1,Hn(Jn)))}function Qn(e,t,n){var r=new Gn;return t=t==null?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}var $n=t(`start`,`end`,`cancel`,`interrupt`),er=[];function tr(e,t,n,r,i,a){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;rr(e,n,{name:t,index:r,group:i,on:$n,tween:er,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function nr(e,t){var n=Y(e,t);if(n.state>0)throw Error(`too late; already scheduled`);return n}function J(e,t){var n=Y(e,t);if(n.state>3)throw Error(`too late; already running`);return n}function Y(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw Error(`transition not found`);return n}function rr(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=Kn(a,0,n.time);function a(e){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=e&&o(e-n.delay)}function o(a){var l,u,d,f;if(n.state!==1)return c();for(l in r)if(f=r[l],f.name===n.name){if(f.state===3)return Qn(o);f.state===4?(f.state=6,f.timer.stop(),f.on.call(`interrupt`,e,e.__data__,f.index,f.group),delete r[l]):+l<t&&(f.state=6,f.timer.stop(),f.on.call(`cancel`,e,e.__data__,f.index,f.group),delete r[l])}if(Qn(function(){n.state===3&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(a))}),n.state=2,n.on.call(`start`,e,e.__data__,n.index,n.group),n.state===2){for(n.state=3,i=Array(d=n.tween.length),l=0,u=-1;l<d;++l)(f=n.tween[l].value.call(e,e.__data__,n.index,n.group))&&(i[++u]=f);i.length=u+1}}function s(t){for(var r=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(c),n.state=5,1),a=-1,o=i.length;++a<o;)i[a].call(e,r);n.state===5&&(n.on.call(`end`,e,e.__data__,n.index,n.group),c())}function c(){for(var i in n.state=6,n.timer.stop(),delete r[t],r)return;delete e.__transition}}function ir(e,t){var n=e.__transition,r,i,a=!0,o;if(n){for(o in t=t==null?null:t+``,n){if((r=n[o]).name!==t){a=!1;continue}i=r.state>2&&r.state<5,r.state=6,r.timer.stop(),r.on.call(i?`interrupt`:`cancel`,e,e.__data__,r.index,r.group),delete n[o]}a&&delete e.__transition}}function ar(e){return this.each(function(){ir(this,e)})}function or(e,t){var n,r;return function(){var i=J(this,e),a=i.tween;if(a!==n){r=n=a;for(var o=0,s=r.length;o<s;++o)if(r[o].name===t){r=r.slice(),r.splice(o,1);break}}i.tween=r}}function sr(e,t,n){var r,i;if(typeof n!=`function`)throw Error();return function(){var a=J(this,e),o=a.tween;if(o!==r){i=(r=o).slice();for(var s={name:t,value:n},c=0,l=i.length;c<l;++c)if(i[c].name===t){i[c]=s;break}c===l&&i.push(s)}a.tween=i}}function cr(e,t){var n=this._id;if(e+=``,arguments.length<2){for(var r=Y(this.node(),n).tween,i=0,a=r.length,o;i<a;++i)if((o=r[i]).name===e)return o.value;return null}return this.each((t==null?or:sr)(n,e,t))}function lr(e,t,n){var r=e._id;return e.each(function(){var e=J(this,r);(e.value||={})[t]=n.apply(this,arguments)}),function(e){return Y(e,r).value[t]}}function ur(e,t){var n;return(typeof t==`number`?U:t instanceof I?gn:(n=I(t))?(t=n,gn):xn)(e,t)}function dr(e){return function(){this.removeAttribute(e)}}function fr(e){return function(){this.removeAttributeNS(e.space,e.local)}}function pr(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttribute(e);return o===i?null:o===r?a:a=t(r=o,n)}}function mr(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttributeNS(e.space,e.local);return o===i?null:o===r?a:a=t(r=o,n)}}function hr(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttribute(e):(o=this.getAttribute(e),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function gr(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function _r(e,t){var n=s(e),r=n===`transform`?An:ur;return this.attrTween(e,typeof t==`function`?(n.local?gr:hr)(n,r,lr(this,`attr.`+e,t)):t==null?(n.local?fr:dr)(n):(n.local?mr:pr)(n,r,t))}function vr(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function yr(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function br(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&yr(e,i)),n}return i._value=t,i}function xr(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&vr(e,i)),n}return i._value=t,i}function Sr(e,t){var n=`attr.`+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!=`function`)throw Error();var r=s(e);return this.tween(n,(r.local?br:xr)(r,t))}function Cr(e,t){return function(){nr(this,e).delay=+t.apply(this,arguments)}}function wr(e,t){return t=+t,function(){nr(this,e).delay=t}}function Tr(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?Cr:wr)(t,e)):Y(this.node(),t).delay}function Er(e,t){return function(){J(this,e).duration=+t.apply(this,arguments)}}function Dr(e,t){return t=+t,function(){J(this,e).duration=t}}function Or(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?Er:Dr)(t,e)):Y(this.node(),t).duration}function kr(e,t){if(typeof t!=`function`)throw Error();return function(){J(this,e).ease=t}}function Ar(e){var t=this._id;return arguments.length?this.each(kr(t,e)):Y(this.node(),t).ease}function jr(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!=`function`)throw Error();J(this,e).ease=n}}function Mr(e){if(typeof e!=`function`)throw Error();return this.each(jr(this._id,e))}function Nr(e){typeof e!=`function`&&(e=y(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new X(r,this._parents,this._name,this._id)}function Pr(e){if(e._id!==this._id)throw Error();for(var t=this._groups,n=e._groups,r=t.length,i=n.length,a=Math.min(r,i),o=Array(r),s=0;s<a;++s)for(var c=t[s],l=n[s],u=c.length,d=o[s]=Array(u),f,p=0;p<u;++p)(f=c[p]||l[p])&&(d[p]=f);for(;s<r;++s)o[s]=t[s];return new X(o,this._parents,this._name,this._id)}function Fr(e){return(e+``).trim().split(/^|\s+/).every(function(e){var t=e.indexOf(`.`);return t>=0&&(e=e.slice(0,t)),!e||e===`start`})}function Ir(e,t,n){var r,i,a=Fr(t)?nr:J;return function(){var o=a(this,e),s=o.on;s!==r&&(i=(r=s).copy()).on(t,n),o.on=i}}function Lr(e,t){var n=this._id;return arguments.length<2?Y(this.node(),n).on.on(e):this.each(Ir(n,e,t))}function Rr(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function zr(){return this.on(`end.remove`,Rr(this._id))}function Br(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=f(e));for(var r=this._groups,i=r.length,a=Array(i),o=0;o<i;++o)for(var s=r[o],c=s.length,l=a[o]=Array(c),u,d,p=0;p<c;++p)(u=s[p])&&(d=e.call(u,u.__data__,p,s))&&(`__data__`in u&&(d.__data__=u.__data__),l[p]=d,tr(l[p],t,n,p,l,Y(u,n)));return new X(a,this._parents,t,n)}function Vr(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=g(e));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s<i;++s)for(var c=r[s],l=c.length,u,d=0;d<l;++d)if(u=c[d]){for(var f=e.call(u,u.__data__,d,c),p,m=Y(u,n),h=0,_=f.length;h<_;++h)(p=f[h])&&tr(p,t,n,h,f,m);a.push(f),o.push(u)}return new X(a,o,t,n)}var Hr=T.prototype.constructor;function Ur(){return new Hr(this._groups,this._parents)}function Wr(e,t){var n,r,i;return function(){var a=C(this,e),o=(this.style.removeProperty(e),C(this,e));return a===o?null:a===n&&o===r?i:i=t(n=a,r=o)}}function Gr(e){return function(){this.style.removeProperty(e)}}function Kr(e,t,n){var r,i=n+``,a;return function(){var o=C(this,e);return o===i?null:o===r?a:a=t(r=o,n)}}function qr(e,t,n){var r,i,a;return function(){var o=C(this,e),s=n(this),c=s+``;return s??(c=s=(this.style.removeProperty(e),C(this,e))),o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s))}}function Jr(e,t){var n,r,i,a=`style.`+t,o=`end.`+a,s;return function(){var c=J(this,e),l=c.on,u=c.value[a]==null?s||=Gr(t):void 0;(l!==n||i!==u)&&(r=(n=l).copy()).on(o,i=u),c.on=r}}function Yr(e,t,n){var r=(e+=``)==`transform`?kn:ur;return t==null?this.styleTween(e,Wr(e,r)).on(`end.style.`+e,Gr(e)):typeof t==`function`?this.styleTween(e,qr(e,r,lr(this,`style.`+e,t))).each(Jr(this._id,e)):this.styleTween(e,Kr(e,r,t),n).on(`end.style.`+e,null)}function Xr(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function Zr(e,t,n){var r,i;function a(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&Xr(e,a,n)),r}return a._value=t,a}function Qr(e,t,n){var r=`style.`+(e+=``);if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!=`function`)throw Error();return this.tween(r,Zr(e,t,n??``))}function $r(e){return function(){this.textContent=e}}function ei(e){return function(){this.textContent=e(this)??``}}function ti(e){return this.tween(`text`,typeof e==`function`?ei(lr(this,`text`,e)):$r(e==null?``:e+``))}function ni(e){return function(t){this.textContent=e.call(this,t)}}function ri(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&ni(r)),t}return r._value=e,r}function ii(e){var t=`text`;if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!=`function`)throw Error();return this.tween(t,ri(e))}function ai(){for(var e=this._name,t=this._id,n=li(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)if(c=o[l]){var u=Y(c,t);tr(c,e,n,l,o,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new X(r,this._parents,e,n)}function oi(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(a,o){var s={value:o},c={value:function(){--i===0&&a()}};n.each(function(){var n=J(this,r),i=n.on;i!==e&&(t=(e=i).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(c)),n.on=t}),i===0&&a()})}var si=0;function X(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function ci(e){return T().transition(e)}function li(){return++si}var Z=T.prototype;X.prototype=ci.prototype={constructor:X,select:Br,selectAll:Vr,selectChild:Z.selectChild,selectChildren:Z.selectChildren,filter:Nr,merge:Pr,selection:Ur,transition:ai,call:Z.call,nodes:Z.nodes,node:Z.node,size:Z.size,empty:Z.empty,each:Z.each,on:Lr,attr:_r,attrTween:Sr,style:Yr,styleTween:Qr,text:ti,textTween:ii,remove:zr,tween:cr,delay:Tr,duration:Or,ease:Ar,easeVarying:Mr,end:oi,[Symbol.iterator]:Z[Symbol.iterator]};function ui(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var di={time:null,delay:0,duration:250,ease:ui};function fi(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw Error(`transition ${t} not found`);return n}function pi(e){var t,n;e instanceof X?(t=e._id,e=e._name):(t=li(),(n=di).time=Un(),e=e==null?null:e+``);for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&tr(c,e,t,l,o,n||fi(c,t));return new X(r,this._parents,e,t)}T.prototype.interrupt=ar,T.prototype.transition=pi;var mi=e=>()=>e;function hi(e,{sourceEvent:t,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function Q(e,t,n){this.k=e,this.x=t,this.y=n}Q.prototype={constructor:Q,scale:function(e){return e===1?this:new Q(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Q(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return`translate(`+this.x+`,`+this.y+`) scale(`+this.k+`)`}};var gi=new Q(1,0,0);_i.prototype=Q.prototype;function _i(e){for(;!e.__zoom;)if(!(e=e.parentNode))return gi;return e.__zoom}function vi(e){e.stopImmediatePropagation()}function $(e){e.preventDefault(),e.stopImmediatePropagation()}function yi(e){return(!e.ctrlKey||e.type===`wheel`)&&!e.button}function bi(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute(`viewBox`)?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function xi(){return this.__zoom||gi}function Si(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function Ci(){return navigator.maxTouchPoints||`ontouchstart`in this}function wi(e,t,n){var r=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],a=e.invertY(t[0][1])-n[0][1],o=e.invertY(t[1][1])-n[1][1];return e.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),o>a?(a+o)/2:Math.min(0,a)||Math.max(0,o))}function Ti(){var e=yi,n=bi,r=wi,i=Si,a=Ci,o=[0,1/0],s=[[-1/0,-1/0],[1/0,1/0]],c=250,l=Fn,u=t(`start`,`zoom`,`end`),d,f,p,m=500,h=150,g=0,_=10;function v(e){e.property(`__zoom`,xi).on(`wheel.zoom`,re,{passive:!1}).on(`mousedown.zoom`,ie).on(`dblclick.zoom`,ae).filter(a).on(`touchstart.zoom`,oe).on(`touchmove.zoom`,se).on(`touchend.zoom touchcancel.zoom`,ce).style(`-webkit-tap-highlight-color`,`rgba(0,0,0,0)`)}v.transform=function(e,t,n,r){var i=e.selection?e.selection():e;i.property(`__zoom`,xi),e===i?i.interrupt().each(function(){x(this,arguments).event(r).start().zoom(null,typeof t==`function`?t.apply(this,arguments):t).end()}):te(e,t,n,r)},v.scaleBy=function(e,t,n,r){v.scaleTo(e,function(){return this.__zoom.k*(typeof t==`function`?t.apply(this,arguments):t)},n,r)},v.scaleTo=function(e,t,i,a){v.transform(e,function(){var e=n.apply(this,arguments),a=this.__zoom,o=i==null?ee(e):typeof i==`function`?i.apply(this,arguments):i,c=a.invert(o),l=typeof t==`function`?t.apply(this,arguments):t;return r(b(y(a,l),o,c),e,s)},i,a)},v.translateBy=function(e,t,i,a){v.transform(e,function(){return r(this.__zoom.translate(typeof t==`function`?t.apply(this,arguments):t,typeof i==`function`?i.apply(this,arguments):i),n.apply(this,arguments),s)},null,a)},v.translateTo=function(e,t,i,a,o){v.transform(e,function(){var e=n.apply(this,arguments),o=this.__zoom,c=a==null?ee(e):typeof a==`function`?a.apply(this,arguments):a;return r(gi.translate(c[0],c[1]).scale(o.k).translate(typeof t==`function`?-t.apply(this,arguments):-t,typeof i==`function`?-i.apply(this,arguments):-i),e,s)},a,o)};function y(e,t){return t=Math.max(o[0],Math.min(o[1],t)),t===e.k?e:new Q(t,e.x,e.y)}function b(e,t,n){var r=t[0]-n[0]*e.k,i=t[1]-n[1]*e.k;return r===e.x&&i===e.y?e:new Q(e.k,r,i)}function ee(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function te(e,t,r,i){e.on(`start.zoom`,function(){x(this,arguments).event(i).start()}).on(`interrupt.zoom end.zoom`,function(){x(this,arguments).event(i).end()}).tween(`zoom`,function(){var e=this,a=arguments,o=x(e,a).event(i),s=n.apply(e,a),c=r==null?ee(s):typeof r==`function`?r.apply(e,a):r,u=Math.max(s[1][0]-s[0][0],s[1][1]-s[0][1]),d=e.__zoom,f=typeof t==`function`?t.apply(e,a):t,p=l(d.invert(c).concat(u/d.k),f.invert(c).concat(u/f.k));return function(e){if(e===1)e=f;else{var t=p(e),n=u/t[2];e=new Q(n,c[0]-t[0]*n,c[1]-t[1]*n)}o.zoom(null,e)}})}function x(e,t,n){return!n&&e.__zooming||new ne(e,t)}function ne(e,t){this.that=e,this.args=t,this.active=0,this.sourceEvent=null,this.extent=n.apply(e,t),this.taps=0}ne.prototype={event:function(e){return e&&(this.sourceEvent=e),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit(`start`)),this},zoom:function(e,t){return this.mouse&&e!==`mouse`&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&e!==`touch`&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&e!==`touch`&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit(`zoom`),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit(`end`)),this},emit:function(e){var t=E(this.that).datum();u.call(e,this.that,new hi(e,{sourceEvent:this.sourceEvent,target:v,type:e,transform:this.that.__zoom,dispatch:u}),t)}};function re(t,...n){if(!e.apply(this,arguments))return;var a=x(this,n).event(t),c=this.__zoom,l=Math.max(o[0],Math.min(o[1],c.k*2**i.apply(this,arguments))),u=D(t);if(a.wheel)(a.mouse[0][0]!==u[0]||a.mouse[0][1]!==u[1])&&(a.mouse[1]=c.invert(a.mouse[0]=u)),clearTimeout(a.wheel);else if(c.k===l)return;else a.mouse=[u,c.invert(u)],ir(this),a.start();$(t),a.wheel=setTimeout(d,h),a.zoom(`mouse`,r(b(y(c,l),a.mouse[0],a.mouse[1]),a.extent,s));function d(){a.wheel=null,a.end()}}function ie(t,...n){if(p||!e.apply(this,arguments))return;var i=t.currentTarget,a=x(this,n,!0).event(t),o=E(t.view).on(`mousemove.zoom`,d,!0).on(`mouseup.zoom`,f,!0),c=D(t,i),l=t.clientX,u=t.clientY;Ft(t.view),vi(t),a.mouse=[c,this.__zoom.invert(c)],ir(this),a.start();function d(e){if($(e),!a.moved){var t=e.clientX-l,n=e.clientY-u;a.moved=t*t+n*n>g}a.event(e).zoom(`mouse`,r(b(a.that.__zoom,a.mouse[0]=D(e,i),a.mouse[1]),a.extent,s))}function f(e){o.on(`mousemove.zoom mouseup.zoom`,null),It(e.view,a.moved),$(e),a.event(e).end()}}function ae(t,...i){if(e.apply(this,arguments)){var a=this.__zoom,o=D(t.changedTouches?t.changedTouches[0]:t,this),l=a.invert(o),u=a.k*(t.shiftKey?.5:2),d=r(b(y(a,u),o,l),n.apply(this,i),s);$(t),c>0?E(this).transition().duration(c).call(te,d,o,t):E(this).call(v.transform,d,o,t)}}function oe(t,...n){if(e.apply(this,arguments)){var r=t.touches,i=r.length,a=x(this,n,t.changedTouches.length===i).event(t),o,s,c,l;for(vi(t),s=0;s<i;++s)c=r[s],l=D(c,this),l=[l,this.__zoom.invert(l),c.identifier],a.touch0?!a.touch1&&a.touch0[2]!==l[2]&&(a.touch1=l,a.taps=0):(a.touch0=l,o=!0,a.taps=1+!!d);d&&=clearTimeout(d),o&&(a.taps<2&&(f=l[0],d=setTimeout(function(){d=null},m)),ir(this),a.start())}}function se(e,...t){if(this.__zooming){var n=x(this,t).event(e),i=e.changedTouches,a=i.length,o,c,l,u;for($(e),o=0;o<a;++o)c=i[o],l=D(c,this),n.touch0&&n.touch0[2]===c.identifier?n.touch0[0]=l:n.touch1&&n.touch1[2]===c.identifier&&(n.touch1[0]=l);if(c=n.that.__zoom,n.touch1){var d=n.touch0[0],f=n.touch0[1],p=n.touch1[0],m=n.touch1[1],h=(h=p[0]-d[0])*h+(h=p[1]-d[1])*h,g=(g=m[0]-f[0])*g+(g=m[1]-f[1])*g;c=y(c,Math.sqrt(h/g)),l=[(d[0]+p[0])/2,(d[1]+p[1])/2],u=[(f[0]+m[0])/2,(f[1]+m[1])/2]}else if(n.touch0)l=n.touch0[0],u=n.touch0[1];else return;n.zoom(`touch`,r(b(c,l,u),n.extent,s))}}function ce(e,...t){if(this.__zooming){var n=x(this,t).event(e),r=e.changedTouches,i=r.length,a,o;for(vi(e),p&&clearTimeout(p),p=setTimeout(function(){p=null},m),a=0;a<i;++a)o=r[a],n.touch0&&n.touch0[2]===o.identifier?delete n.touch0:n.touch1&&n.touch1[2]===o.identifier&&delete n.touch1;if(n.touch1&&!n.touch0&&(n.touch0=n.touch1,delete n.touch1),n.touch0)n.touch0[1]=this.__zoom.invert(n.touch0[0]);else if(n.end(),n.taps===2&&(o=D(o,this),Math.hypot(f[0]-o[0],f[1]-o[1])<_)){var s=E(this).on(`dblclick.zoom`);s&&s.apply(this,arguments)}}}return v.wheelDelta=function(e){return arguments.length?(i=typeof e==`function`?e:mi(+e),v):i},v.filter=function(t){return arguments.length?(e=typeof t==`function`?t:mi(!!t),v):e},v.touchable=function(e){return arguments.length?(a=typeof e==`function`?e:mi(!!e),v):a},v.extent=function(e){return arguments.length?(n=typeof e==`function`?e:mi([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),v):n},v.scaleExtent=function(e){return arguments.length?(o[0]=+e[0],o[1]=+e[1],v):[o[0],o[1]]},v.translateExtent=function(e){return arguments.length?(s[0][0]=+e[0][0],s[1][0]=+e[1][0],s[0][1]=+e[0][1],s[1][1]=+e[1][1],v):[[s[0][0],s[0][1]],[s[1][0],s[1][1]]]},v.constrain=function(e){return arguments.length?(r=e,v):r},v.duration=function(e){return arguments.length?(c=+e,v):c},v.interpolate=function(e){return arguments.length?(l=e,v):l},v.on=function(){var e=u.on.apply(u,arguments);return e===u?v:e},v.clickDistance=function(e){return arguments.length?(g=(e=+e)*e,v):Math.sqrt(g)},v.tapDistance=function(e){return arguments.length?(_=+e,v):_},v}export{E as C,D as S,It as _,U as a,O as b,hn as c,L as d,I as f,Ft as g,Lt as h,xn as i,un as l,A as m,_i as n,gn as o,$t as p,Kn as r,pn as s,Ti as t,j as u,k as v,t as w,Pt as x,Nt as y};
@@ -0,0 +1 @@
1
+ import{n as e,r as t}from"./src-C9jsS3p4.js";import{D as n,b as r,c as i,s as a}from"./chunk-ICPOFSXX-CrnuSfeJ.js";import{C as o}from"./src-zyMpT2LE.js";import{H as s,h as c}from"./chunk-5PVQY5BW-Cxi5d3lT.js";import{t as l}from"./line-_p5Px7MV.js";import"./chunk-U2HBQHQK-6BAKH95D.js";import"./chunk-BSJP7CBP-D4bNhKd7.js";import"./chunk-ZZ45TVLE-JGFITgiO.js";import{t as u}from"./graphlib-CasrTmMJ.js";import{t as d}from"./dagre-BEdPLXba.js";import"./chunk-55IACEB6-CqVyNzhX.js";import"./chunk-EDXVE4YY-ChhT3Iyo.js";import"./chunk-X2U36JSP-Cqpkx90-.js";import"./chunk-5FUZZQ4R-BVDLgFg2.js";import"./chunk-ENJZ2VHE-Bby39so4.js";import"./chunk-336JU56O-CBajDulv.js";import{i as f,n as p,t as m}from"./chunk-OYMX7WX6-BhfqKepC.js";var h=e(e=>e.append(`circle`).attr(`class`,`start-state`).attr(`r`,r().state.sizeUnit).attr(`cx`,r().state.padding+r().state.sizeUnit).attr(`cy`,r().state.padding+r().state.sizeUnit),`drawStartState`),g=e(e=>e.append(`line`).style(`stroke`,`grey`).style(`stroke-dasharray`,`3`).attr(`x1`,r().state.textHeight).attr(`class`,`divider`).attr(`x2`,r().state.textHeight*2).attr(`y1`,0).attr(`y2`,0),`drawDivider`),_=e((e,t)=>{let n=e.append(`text`).attr(`x`,2*r().state.padding).attr(`y`,r().state.textHeight+2*r().state.padding).attr(`font-size`,r().state.fontSize).attr(`class`,`state-title`).text(t.id),i=n.node().getBBox();return e.insert(`rect`,`:first-child`).attr(`x`,r().state.padding).attr(`y`,r().state.padding).attr(`width`,i.width+2*r().state.padding).attr(`height`,i.height+2*r().state.padding).attr(`rx`,r().state.radius),n},`drawSimpleState`),v=e((t,n)=>{let i=e(function(e,t,n){let i=e.append(`tspan`).attr(`x`,2*r().state.padding).text(t);n||i.attr(`dy`,r().state.textHeight)},`addTspan`),a=t.append(`text`).attr(`x`,2*r().state.padding).attr(`y`,r().state.textHeight+1.3*r().state.padding).attr(`font-size`,r().state.fontSize).attr(`class`,`state-title`).text(n.descriptions[0]).node().getBBox(),o=a.height,s=t.append(`text`).attr(`x`,r().state.padding).attr(`y`,o+r().state.padding*.4+r().state.dividerMargin+r().state.textHeight).attr(`class`,`state-description`),c=!0,l=!0;n.descriptions.forEach(function(e){c||(i(s,e,l),l=!1),c=!1});let u=t.append(`line`).attr(`x1`,r().state.padding).attr(`y1`,r().state.padding+o+r().state.dividerMargin/2).attr(`y2`,r().state.padding+o+r().state.dividerMargin/2).attr(`class`,`descr-divider`),d=s.node().getBBox(),f=Math.max(d.width,a.width);return u.attr(`x2`,f+3*r().state.padding),t.insert(`rect`,`:first-child`).attr(`x`,r().state.padding).attr(`y`,r().state.padding).attr(`width`,f+2*r().state.padding).attr(`height`,d.height+o+2*r().state.padding).attr(`rx`,r().state.radius),t},`drawDescrState`),y=e((e,t,n)=>{let i=r().state.padding,a=2*r().state.padding,o=e.node().getBBox(),s=o.width,c=o.x,l=e.append(`text`).attr(`x`,0).attr(`y`,r().state.titleShift).attr(`font-size`,r().state.fontSize).attr(`class`,`state-title`).text(t.id),u=l.node().getBBox().width+a,d=Math.max(u,s);d===s&&(d+=a);let f,p=e.node().getBBox();t.doc,f=c-i,u>s&&(f=(s-d)/2+i),Math.abs(c-p.x)<i&&u>s&&(f=c-(u-s)/2);let m=1-r().state.textHeight;return e.insert(`rect`,`:first-child`).attr(`x`,f).attr(`y`,m).attr(`class`,n?`alt-composit`:`composit`).attr(`width`,d).attr(`height`,p.height+r().state.textHeight+r().state.titleShift+1).attr(`rx`,`0`),l.attr(`x`,f+i),u<=s&&l.attr(`x`,c+(d-a)/2-u/2+i),e.insert(`rect`,`:first-child`).attr(`x`,f).attr(`y`,r().state.titleShift-r().state.textHeight-r().state.padding).attr(`width`,d).attr(`height`,r().state.textHeight*3).attr(`rx`,r().state.radius),e.insert(`rect`,`:first-child`).attr(`x`,f).attr(`y`,r().state.titleShift-r().state.textHeight-r().state.padding).attr(`width`,d).attr(`height`,p.height+3+2*r().state.textHeight).attr(`rx`,r().state.radius),e},`addTitleAndBox`),b=e(e=>(e.append(`circle`).attr(`class`,`end-state-outer`).attr(`r`,r().state.sizeUnit+r().state.miniPadding).attr(`cx`,r().state.padding+r().state.sizeUnit+r().state.miniPadding).attr(`cy`,r().state.padding+r().state.sizeUnit+r().state.miniPadding),e.append(`circle`).attr(`class`,`end-state-inner`).attr(`r`,r().state.sizeUnit).attr(`cx`,r().state.padding+r().state.sizeUnit+2).attr(`cy`,r().state.padding+r().state.sizeUnit+2)),`drawEndState`),x=e((e,t)=>{let n=r().state.forkWidth,i=r().state.forkHeight;if(t.parentId){let e=n;n=i,i=e}return e.append(`rect`).style(`stroke`,`black`).style(`fill`,`black`).attr(`width`,n).attr(`height`,i).attr(`x`,r().state.padding).attr(`y`,r().state.padding)},`drawForkJoinState`),S=e((e,t,n,i)=>{let o=0,s=i.append(`text`);s.style(`text-anchor`,`start`),s.attr(`class`,`noteText`);let c=e.replace(/\r\n/g,`<br/>`);c=c.replace(/\n/g,`<br/>`);let l=c.split(a.lineBreakRegex),u=1.25*r().state.noteMargin;for(let e of l){let i=e.trim();if(i.length>0){let e=s.append(`tspan`);if(e.text(i),u===0){let t=e.node().getBBox();u+=t.height}o+=u,e.attr(`x`,t+r().state.noteMargin),e.attr(`y`,n+o+1.25*r().state.noteMargin)}}return{textWidth:s.node().getBBox().width,textHeight:o}},`_drawLongText`),C=e((e,t)=>{t.attr(`class`,`state-note`);let n=t.append(`rect`).attr(`x`,0).attr(`y`,r().state.padding),{textWidth:i,textHeight:a}=S(e,0,0,t.append(`g`));return n.attr(`height`,a+2*r().state.noteMargin),n.attr(`width`,i+r().state.noteMargin*2),n},`drawNote`),w=e(function(e,t){let n=t.id,i={id:n,label:t.id,width:0,height:0},a=e.append(`g`).attr(`id`,n).attr(`class`,`stateGroup`);t.type===`start`&&h(a),t.type===`end`&&b(a),(t.type===`fork`||t.type===`join`)&&x(a,t),t.type===`note`&&C(t.note.text,a),t.type===`divider`&&g(a),t.type===`default`&&t.descriptions.length===0&&_(a,t),t.type===`default`&&t.descriptions.length>0&&v(a,t);let o=a.node().getBBox();return i.width=o.width+2*r().state.padding,i.height=o.height+2*r().state.padding,i},`drawState`),T=0,E=e(function(i,o,u){let d=e(function(e){switch(e){case m.relationType.AGGREGATION:return`aggregation`;case m.relationType.EXTENSION:return`extension`;case m.relationType.COMPOSITION:return`composition`;case m.relationType.DEPENDENCY:return`dependency`}},`getRelationType`);o.points=o.points.filter(e=>!Number.isNaN(e.y));let f=o.points,p=l().x(function(e){return e.x}).y(function(e){return e.y}).curve(s),h=i.append(`path`).attr(`d`,p(f)).attr(`id`,`edge`+T).attr(`class`,`transition`),g=``;if(r().state.arrowMarkerAbsolute&&(g=n(!0)),h.attr(`marker-end`,`url(`+g+`#`+d(m.relationType.DEPENDENCY)+`End)`),u.title!==void 0){let e=i.append(`g`).attr(`class`,`stateLabel`),{x:n,y:s}=c.calcLabelPosition(o.points),l=a.getRows(u.title),d=0,f=[],p=0,m=0;for(let r=0;r<=l.length;r++){let i=e.append(`text`).attr(`text-anchor`,`middle`).text(l[r]).attr(`x`,n).attr(`y`,s+d),a=i.node().getBBox();p=Math.max(p,a.width),m=Math.min(m,a.x),t.info(a.x,n,s+d),d===0&&(d=i.node().getBBox().height,t.info(`Title height`,d,s)),f.push(i)}let h=d*l.length;if(l.length>1){let e=(l.length-1)*d*.5;f.forEach((t,n)=>t.attr(`y`,s+n*d-e)),h=d*l.length}let g=e.node().getBBox();e.insert(`rect`,`:first-child`).attr(`class`,`box`).attr(`x`,n-p/2-r().state.padding/2).attr(`y`,s-h/2-r().state.padding/2-3.5).attr(`width`,p+r().state.padding).attr(`height`,h+r().state.padding),t.info(g)}T++},`drawEdge`),D,O={},k=e(function(){},`setConf`),A=e(function(e){e.append(`defs`).append(`marker`).attr(`id`,`dependencyEnd`).attr(`refX`,19).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 19,7 L9,13 L14,7 L9,1 Z`)},`insertMarkers`),j=e(function(e,n,a,s){D=r().state;let c=r().securityLevel,l;c===`sandbox`&&(l=o(`#i`+n));let u=o(c===`sandbox`?l.nodes()[0].contentDocument.body:`body`),d=c===`sandbox`?l.nodes()[0].contentDocument:document;t.debug(`Rendering diagram `+e);let f=u.select(`[id='${n}']`);A(f),N(s.db.getRootDoc(),f.append(`g`).attr(`id`,n+`-root`),void 0,!1,u,d,s);let p=D.padding,m=f.node().getBBox(),h=m.width+p*2,g=m.height+p*2;i(f,g,h*1.75,D.useMaxWidth),f.attr(`viewBox`,`${m.x-D.padding} ${m.y-D.padding} `+h+` `+g)},`draw`),M=e(e=>e?e.length*D.fontSizeFactor:1,`getLabelWidth`),N=e((e,n,r,i,o,s,c)=>{let l=new u({compound:!0,multigraph:!0}),f,p=!0;for(f=0;f<e.length;f++)if(e[f].stmt===`relation`){p=!1;break}r?l.setGraph({rankdir:`LR`,multigraph:!0,compound:!0,ranker:`tight-tree`,ranksep:p?1:D.edgeLengthFactor,nodeSep:p?1:50,isMultiGraph:!0}):l.setGraph({rankdir:`TB`,multigraph:!0,compound:!0,ranksep:p?1:D.edgeLengthFactor,nodeSep:p?1:50,ranker:`tight-tree`,isMultiGraph:!0}),l.setDefaultEdgeLabel(function(){return{}});let m=c.db.getStates(),h=c.db.getRelations(),g=Object.keys(m);for(let e of g){let t=m[e];r&&(t.parentId=r);let a;if(t.doc){let e=n.append(`g`).attr(`id`,t.id).attr(`class`,`stateGroup`);a=N(t.doc,e,t.id,!i,o,s,c);{e=y(e,t,i);let n=e.node().getBBox();a.width=n.width,a.height=n.height+D.padding/2,O[t.id]={y:D.compositTitleSize}}}else a=w(n,t,l);if(t.note){let e=w(n,{descriptions:[],id:t.id+`-note`,note:t.note,type:`note`},l);t.note.position===`left of`?(l.setNode(a.id+`-note`,e),l.setNode(a.id,a)):(l.setNode(a.id,a),l.setNode(a.id+`-note`,e)),l.setParent(a.id,a.id+`-group`),l.setParent(a.id+`-note`,a.id+`-group`)}else l.setNode(a.id,a)}t.debug(`Count=`,l.nodeCount(),l);let _=0;h.forEach(function(e){_++,t.debug(`Setting edge`,e),l.setEdge(e.id1,e.id2,{relation:e,width:M(e.title),height:D.labelHeight*a.getRows(e.title).length,labelpos:`c`},`id`+_)}),d(l),t.debug(`Graph after layout`,l.nodes());let v=n.node();l.nodes().forEach(function(e){e!==void 0&&l.node(e)!==void 0?(t.warn(`Node `+e+`: `+JSON.stringify(l.node(e))),o.select(`#`+v.id+` #`+e).attr(`transform`,`translate(`+(l.node(e).x-l.node(e).width/2)+`,`+(l.node(e).y+(O[e]?O[e].y:0)-l.node(e).height/2)+` )`),o.select(`#`+v.id+` #`+e).attr(`data-x-shift`,l.node(e).x-l.node(e).width/2),s.querySelectorAll(`#`+v.id+` #`+e+` .divider`).forEach(e=>{let t=e.parentElement,n=0,r=0;t&&(t.parentElement&&(n=t.parentElement.getBBox().width),r=parseInt(t.getAttribute(`data-x-shift`),10),Number.isNaN(r)&&(r=0)),e.setAttribute(`x1`,0-r+8),e.setAttribute(`x2`,n-r-8)})):t.debug(`No Node `+e+`: `+JSON.stringify(l.node(e)))});let b=v.getBBox();l.edges().forEach(function(e){e!==void 0&&l.edge(e)!==void 0&&(t.debug(`Edge `+e.v+` -> `+e.w+`: `+JSON.stringify(l.edge(e))),E(n,l.edge(e),l.edge(e).relation))}),b=v.getBBox();let x={id:r||`root`,label:r||`root`,width:0,height:0};return x.width=b.width+2*D.padding,x.height=b.height+2*D.padding,t.debug(`Doc rendered`,x,l),x},`renderDoc`),P={parser:p,get db(){return new m(1)},renderer:{setConf:k,draw:j},styles:f,init:e(e=>{e.state||={},e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},`init`)};export{P as diagram};
@@ -0,0 +1 @@
1
+ import{n as e}from"./src-C9jsS3p4.js";import"./chunk-ICPOFSXX-CrnuSfeJ.js";import"./chunk-5PVQY5BW-Cxi5d3lT.js";import"./chunk-U2HBQHQK-6BAKH95D.js";import"./chunk-BSJP7CBP-D4bNhKd7.js";import"./chunk-ZZ45TVLE-JGFITgiO.js";import"./chunk-55IACEB6-CqVyNzhX.js";import"./chunk-EDXVE4YY-ChhT3Iyo.js";import"./chunk-X2U36JSP-Cqpkx90-.js";import"./chunk-5FUZZQ4R-BVDLgFg2.js";import"./chunk-ENJZ2VHE-Bby39so4.js";import"./chunk-336JU56O-CBajDulv.js";import{i as t,n,r,t as i}from"./chunk-OYMX7WX6-BhfqKepC.js";var a={parser:n,get db(){return new i(2)},renderer:r,styles:t,init:e(e=>{e.state||={},e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},`init`)};export{a as diagram};
@@ -0,0 +1 @@
1
+ function e(e){function t(e,t){e.cmdState.push(t)}function n(e){return e.cmdState.length>0?e.cmdState[e.cmdState.length-1]:null}function r(e){var t=e.cmdState.pop();t&&t.closeBracket()}function i(e){for(var t=e.cmdState,n=t.length-1;n>=0;n--){var r=t[n];if(r.name!=`DEFAULT`)return r}return{styleIdentifier:function(){return null}}}function a(e,t,n){return function(){this.name=e,this.bracketNo=0,this.style=t,this.styles=n,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,`bracket`},this.closeBracket=function(){}}}var o={};o.importmodule=a(`importmodule`,`tag`,[`string`,`builtin`]),o.documentclass=a(`documentclass`,`tag`,[``,`atom`]),o.usepackage=a(`usepackage`,`tag`,[`atom`]),o.begin=a(`begin`,`tag`,[`atom`]),o.end=a(`end`,`tag`,[`atom`]),o.label=a(`label`,`tag`,[`atom`]),o.ref=a(`ref`,`tag`,[`atom`]),o.eqref=a(`eqref`,`tag`,[`atom`]),o.cite=a(`cite`,`tag`,[`atom`]),o.bibitem=a(`bibitem`,`tag`,[`atom`]),o.Bibitem=a(`Bibitem`,`tag`,[`atom`]),o.RBibitem=a(`RBibitem`,`tag`,[`atom`]),o.DEFAULT=function(){this.name=`DEFAULT`,this.style=`tag`,this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function s(e,t){e.f=t}function c(e,r){var a;if(e.match(/^\\[a-zA-Z@\xc0-\u1fff\u2060-\uffff]+/)){var c=e.current().slice(1);return a=o.hasOwnProperty(c)?o[c]:o.DEFAULT,a=new a,t(r,a),s(r,u),a.style}if(e.match(/^\\[$&%#{}_]/)||e.match(/^\\[,;!\/\\]/))return`tag`;if(e.match(`\\[`))return s(r,function(e,t){return l(e,t,`\\]`)}),`keyword`;if(e.match(`\\(`))return s(r,function(e,t){return l(e,t,`\\)`)}),`keyword`;if(e.match(`$$`))return s(r,function(e,t){return l(e,t,`$$`)}),`keyword`;if(e.match(`$`))return s(r,function(e,t){return l(e,t,`$`)}),`keyword`;var d=e.next();if(d==`%`)return e.skipToEnd(),`comment`;if(d==`}`||d==`]`){if(a=n(r),a)a.closeBracket(d),s(r,u);else return`error`;return`bracket`}else if(d==`{`||d==`[`)return a=o.DEFAULT,a=new a,t(r,a),`bracket`;else if(/\d/.test(d))return e.eatWhile(/[\w.%]/),`atom`;else return e.eatWhile(/[\w\-_]/),a=i(r),a.name==`begin`&&(a.argument=e.current()),a.styleIdentifier()}function l(e,t,n){if(e.eatSpace())return null;if(n&&e.match(n))return s(t,c),`keyword`;if(e.match(/^\\[a-zA-Z@]+/))return`tag`;if(e.match(/^[a-zA-Z]+/))return`variableName.special`;if(e.match(/^\\[$&%#{}_]/)||e.match(/^\\[,;!\/]/)||e.match(/^[\^_&]/))return`tag`;if(e.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(e.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return`number`;var r=e.next();return r==`{`||r==`}`||r==`[`||r==`]`||r==`(`||r==`)`?`bracket`:r==`%`?(e.skipToEnd(),`comment`):`error`}function u(e,t){var i=e.peek(),a;return i==`{`||i==`[`?(a=n(t),a.openBracket(i),e.eat(i),s(t,c),`bracket`):/[ \t\r]/.test(i)?(e.eat(i),null):(s(t,c),r(t),c(e,t))}return{name:`stex`,startState:function(){return{cmdState:[],f:e?function(e,t){return l(e,t)}:c}},copyState:function(e){return{cmdState:e.cmdState.slice(),f:e.f}},token:function(e,t){return t.f(e,t)},blankLine:function(e){e.f=c,e.cmdState.length=0},languageData:{commentTokens:{line:`%`}}}}var t=e(!1),n=e(!0);export{t as stex,n as stexMath};
@@ -0,0 +1 @@
1
+ import{u as e}from"./doc-hash-Q6dTjwu5.js";import{C as t}from"./button-BsFpqlpT.js";var n=t(`arrow-up-right`,[[`path`,{d:`M7 7h10v10`,key:`1tivn9`}],[`path`,{d:`M7 17 17 7`,key:`1vkiza`}]]),r=t(`globe`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,key:`13o1zl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]);function i(e){switch(e.kind){case`doc`:return`doc`;case`folder`:case`folder-index`:return`folder`;case`missing`:case`asset`:return`missing`}}function a(t,n){let r=e(t,n);return{resolvedTarget:r,hashDocName:r.target,displayState:i(r)}}export{r as n,n as r,a as t};