@pi-outpost/embed 0.57.0 → 0.59.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (139) hide show
  1. package/dist/{abnfDiagram-WEYOIA3C-B_dTFm2g.js → abnfDiagram-S7VZAUFO-BdOzCXh1.js} +4 -4
  2. package/dist/{abnfDiagram-WEYOIA3C-Dk2VD3Iw.cjs → abnfDiagram-S7VZAUFO-zyFnpqZ0.cjs} +1 -1
  3. package/dist/{architectureDiagram-ZHVYKT53-CslNYmQN.js → architectureDiagram-YGSQEFNW-DiYOcBqo.js} +5 -5
  4. package/dist/{architectureDiagram-ZHVYKT53-Bud-mHjo.cjs → architectureDiagram-YGSQEFNW-gEzRb5xY.cjs} +3 -3
  5. package/dist/{blockDiagram-RJAE7QA3-Dgm9J6pS.js → blockDiagram-APKKGZFW-CIX-8mpK.js} +106 -107
  6. package/dist/{blockDiagram-RJAE7QA3-lEBn-_Yn.cjs → blockDiagram-APKKGZFW-KL3nQT0s.cjs} +7 -7
  7. package/dist/bpmnIcons-APHXDYXF-BcsYKfS7.js +39 -0
  8. package/dist/bpmnIcons-APHXDYXF-DX8xcBUd.cjs +1 -0
  9. package/dist/{c4Diagram-XDPPPE54-rbzhqhW5.js → c4Diagram-KJ2TOQU5-BS_M90FN.js} +8 -8
  10. package/dist/{c4Diagram-XDPPPE54-BKNqVY-U.cjs → c4Diagram-KJ2TOQU5-D-dCJWvI.cjs} +1 -1
  11. package/dist/{chunk-7S6XSTFO-ejBVk-tI.cjs → chunk-6MUBBAK2-BTabKnTR.cjs} +1 -1
  12. package/dist/{chunk-7S6XSTFO-DrDRohsE.js → chunk-6MUBBAK2-DlUTxzYh.js} +2 -2
  13. package/dist/{chunk-HAGFOTED-BUPxFGdn.cjs → chunk-AXFCVDMN-B6dhmE32.cjs} +8 -8
  14. package/dist/{chunk-HAGFOTED-ceXO12G4.js → chunk-AXFCVDMN-DrVQa3gP.js} +1256 -1041
  15. package/dist/{chunk-DSNLSHJZ-BxQ7lMXY.cjs → chunk-BG4553SI-DFPUniBw.cjs} +1 -1
  16. package/dist/{chunk-DSNLSHJZ-DPpiuUZK.js → chunk-BG4553SI-j_gQs8M_.js} +2 -0
  17. package/dist/chunk-DQASFODM-BBkQ8gE7.cjs +10 -0
  18. package/dist/{chunk-WQQL4CDK-C3yDIFZ3.js → chunk-DQASFODM-DAaU7yoa.js} +520 -211
  19. package/dist/{chunk-55XCU76K-o8OgDLPD.js → chunk-HFQBQIA3-DqHSeXIz.js} +2 -2
  20. package/dist/{chunk-55XCU76K-IpMfjRYv.cjs → chunk-HFQBQIA3-lOxrhpos.cjs} +1 -1
  21. package/dist/{chunk-ZCHMQSOR-BbO7eY2w.js → chunk-KQLB2F66-C7twW9LJ.js} +30 -30
  22. package/dist/{chunk-ZCHMQSOR-Cg8zPt0w.cjs → chunk-KQLB2F66-Ec2IAtUR.cjs} +1 -1
  23. package/dist/{chunk-4EMNKR2T-CGAdq4EA.cjs → chunk-KS47KZWR-C7Yv0kfF.cjs} +1 -1
  24. package/dist/{chunk-4EMNKR2T-BIO9veC4.js → chunk-KS47KZWR-OD3AMBe8.js} +2 -2
  25. package/dist/{chunk-ZAUX2LTX-DIQkgUFr.cjs → chunk-LEVMRMFU-BFGXlIAt.cjs} +1 -1
  26. package/dist/{chunk-ZAUX2LTX-P8LAwm_U.js → chunk-LEVMRMFU-NLMudZfn.js} +3 -3
  27. package/dist/chunk-M57EVK23-BSZ7OEGY.cjs +1 -0
  28. package/dist/{chunk-HNE4Q36P-uON_vFhT.js → chunk-M57EVK23-C8-Jp43x.js} +55 -54
  29. package/dist/{chunk-2E7WHVMD-Vo-POJc_.js → chunk-OY52VR5R-B7NRk2-S.js} +3 -3
  30. package/dist/{chunk-2E7WHVMD-BNsJOdNP.cjs → chunk-OY52VR5R-CvyV3pJF.cjs} +1 -1
  31. package/dist/{chunk-NQOKRVIF-DmOxzSOQ.js → chunk-QB3YPZ4I-DPQ26dC9.js} +788 -730
  32. package/dist/chunk-QB3YPZ4I-DaIXN7QF.cjs +213 -0
  33. package/dist/{chunk-YZO67HFG-DCQIFG8j.cjs → chunk-R3KSYZAL-BQPJVcO7.cjs} +1 -1
  34. package/dist/{chunk-YZO67HFG-WF3jklBn.js → chunk-R3KSYZAL-DeNSy3X8.js} +8 -8
  35. package/dist/{chunk-AQDTSKZB-DUZx386i.js → chunk-STOXU5M4-0WKKmqbF.js} +4 -4
  36. package/dist/{chunk-AQDTSKZB-B-MpZ-y2.cjs → chunk-STOXU5M4-CmoaBap6.cjs} +1 -1
  37. package/dist/{chunk-VQ5W62QI-Dw9Kffnl.cjs → chunk-TU62E6Q5-CMbRLUnW.cjs} +1 -1
  38. package/dist/{chunk-VQ5W62QI-Bvcxpp51.js → chunk-TU62E6Q5-DPxNUFFP.js} +2 -2
  39. package/dist/{chunk-UHW7PFBP-BTk1ZC8L.js → chunk-X4PVCEUW-C80IBt-t.js} +2 -2
  40. package/dist/{chunk-UHW7PFBP-Bays5Zi8.cjs → chunk-X4PVCEUW-Djs21j48.cjs} +1 -1
  41. package/dist/{classDiagram-v2-4MYWR3UA-DyMM0DMP.cjs → classDiagram-v2-L25IHNXF-CAbdJ2_W.cjs} +1 -1
  42. package/dist/{classDiagram-v2-4MYWR3UA-DIjHIULx.js → classDiagram-v2-L25IHNXF-CAts0vNW.js} +13 -13
  43. package/dist/{conversationExport-DojQkOLk.js → conversationExport-BWbYNcNf.js} +3 -3
  44. package/dist/{conversationExport-CE0UTxEg.cjs → conversationExport-DuKpkQDn.cjs} +1 -1
  45. package/dist/{conversationHistory-DdjP3rjR.cjs → conversationHistory-DIGz_MD4.cjs} +1 -1
  46. package/dist/{conversationHistory-g6h0_Fjx.js → conversationHistory-DXpSCV87.js} +2 -2
  47. package/dist/{cynefinDiagram-WF24UDRP-DEFG-MNh.js → cynefinDiagram-L36ESFBY-ByHpHKCc.js} +4 -4
  48. package/dist/{cynefinDiagram-WF24UDRP-BC09SRT2.cjs → cynefinDiagram-L36ESFBY-CrsJmb7x.cjs} +1 -1
  49. package/dist/{dagre-NK4GIZVX-D6Xuc_Nw.js → dagre-SPEB5RXH-C01_UMxx.js} +51 -51
  50. package/dist/{dagre-NK4GIZVX-D0_oLrA9.cjs → dagre-SPEB5RXH-ExCiSqVu.cjs} +2 -2
  51. package/dist/{diagram-TYUNFSNR-Dy2nkVin.cjs → diagram-3B7GL73J-CRNoSH2i.cjs} +2 -2
  52. package/dist/{diagram-TYUNFSNR-BSq4ni3b.js → diagram-3B7GL73J-D7i6eGGQ.js} +14 -14
  53. package/dist/{diagram-I5XIIV2D-Dom9usNq.cjs → diagram-DNEMPZML-CkhkOJo2.cjs} +1 -1
  54. package/dist/{diagram-I5XIIV2D-DbwsxgDf.js → diagram-DNEMPZML-Di5RqN_h.js} +4 -4
  55. package/dist/{diagram-RJA3I4VV-Bt-BxYua.cjs → diagram-L3MUGCDN-B1vXsDB1.cjs} +1 -1
  56. package/dist/{diagram-RJA3I4VV-DCygetH_.js → diagram-L3MUGCDN-BtQkAzOD.js} +4 -4
  57. package/dist/{diagram-CBK3MWTC-CuUrHQAz.js → diagram-LA4NIPWU-Badv-tyU.js} +6 -6
  58. package/dist/{diagram-CBK3MWTC-DbXGbFMz.cjs → diagram-LA4NIPWU-DST6DvSP.cjs} +1 -1
  59. package/dist/{diagram-PFBEJUXE-DAIw33Bx.cjs → diagram-MHCOC4E2-BafwTqOD.cjs} +1 -1
  60. package/dist/{diagram-PFBEJUXE-ChA6KYWw.js → diagram-MHCOC4E2-DmA9ezb9.js} +3 -3
  61. package/dist/{diagram-ODIL2UCW-CSnuo9bJ.js → diagram-XPFHEONP-CZHt29x-.js} +5 -5
  62. package/dist/{diagram-ODIL2UCW-CLSAtgxG.cjs → diagram-XPFHEONP-DCm8Rjp8.cjs} +2 -2
  63. package/dist/{docxExport-CrsGZa8E.cjs → docxExport-BlPADe6b.cjs} +1 -1
  64. package/dist/{docxExport-9XrmWN9x.js → docxExport-Bwi2TlqP.js} +2 -2
  65. package/dist/{ebnfDiagram-V4P3TTPT-e4I3Otpa.js → ebnfDiagram-UZSYDL2S-DVGQga8g.js} +4 -4
  66. package/dist/{ebnfDiagram-V4P3TTPT-6xhHNshj.cjs → ebnfDiagram-UZSYDL2S-fO0plY-B.cjs} +1 -1
  67. package/dist/elk-XV6XMXQE-BkH0WNCd.js +48285 -0
  68. package/dist/elk-XV6XMXQE-CioXUob9.cjs +27 -0
  69. package/dist/{erDiagram-KYQIGQAA-BTNANm6p.js → erDiagram-EYBAPDEH-Byy0RKKe.js} +12 -13
  70. package/dist/{erDiagram-KYQIGQAA-DsqyoDOz.cjs → erDiagram-EYBAPDEH-CUgDxVam.cjs} +2 -2
  71. package/dist/flowDiagram-MALGAFMO-D2e4rl0I.js +15 -0
  72. package/dist/flowDiagram-MALGAFMO-ZfeGO5tQ.cjs +1 -0
  73. package/dist/{ganttDiagram-R7GPNTJY-B1juClwW.cjs → ganttDiagram-23REXITY-D82ogzPM.cjs} +1 -1
  74. package/dist/{ganttDiagram-R7GPNTJY-CEGQ6hzi.js → ganttDiagram-23REXITY-DAs5LGLL.js} +2 -2
  75. package/dist/{gitGraphDiagram-PDYL7XHY-6cCNinUi.cjs → gitGraphDiagram-STJD7YCW-B3zcpUUP.cjs} +1 -1
  76. package/dist/{gitGraphDiagram-PDYL7XHY-D_ADFBrL.js → gitGraphDiagram-STJD7YCW-BVa0DHTU.js} +3 -3
  77. package/dist/{infoDiagram-MVDRKAX5-Dkuw3h5s.js → infoDiagram-KBXO4MBG-BW7IcSQr.js} +4 -4
  78. package/dist/{infoDiagram-MVDRKAX5-CVeFOzof.cjs → infoDiagram-KBXO4MBG-DRQkxKbg.cjs} +1 -1
  79. package/dist/{ishikawaDiagram-HPEHV2GE-oTSoKUOA.js → ishikawaDiagram-M35NCXHK-BiLoyI1l.js} +4 -4
  80. package/dist/{ishikawaDiagram-HPEHV2GE-92CAbMpi.cjs → ishikawaDiagram-M35NCXHK-DBokYlS8.cjs} +1 -1
  81. package/dist/{journeyDiagram-BOSHW7O7-Cb_yTQWF.cjs → journeyDiagram-OPLOXDXO-CgabMAC2.cjs} +1 -1
  82. package/dist/{journeyDiagram-BOSHW7O7-CMbGxPLA.js → journeyDiagram-OPLOXDXO-DsyubZVY.js} +3 -3
  83. package/dist/{kanban-definition-FNSA4HC5-DlUMoAIT.cjs → kanban-definition-BZKZHSQY-CLi3J9cI.cjs} +1 -1
  84. package/dist/{kanban-definition-FNSA4HC5-DzEQcVPw.js → kanban-definition-BZKZHSQY-DU8sOWQd.js} +10 -10
  85. package/dist/{line-ZwhMGa3_.cjs → line-Bf0B129l.cjs} +1 -1
  86. package/dist/{line-0VTxwDiV.js → line-DRq00lCg.js} +1 -1
  87. package/dist/{loadReferencedImage-RUfxAG0o.cjs → loadReferencedImage-D47xCpa7.cjs} +1 -1
  88. package/dist/{loadReferencedImage-LF2DEOPa.js → loadReferencedImage-VNYxXIzB.js} +1 -1
  89. package/dist/{mermaid.core-73kk5oPm.cjs → mermaid.core-BL4WDqAH.cjs} +12 -12
  90. package/dist/{mermaid.core-C8dp1dnD.js → mermaid.core-DPCy8dJO.js} +511 -504
  91. package/dist/{mermaidToImage-Ckx06W6z.cjs → mermaidToImage-B7I6iJ9s.cjs} +1 -1
  92. package/dist/{mermaidToImage-knc9XzLd.js → mermaidToImage-CViP9wx2.js} +1 -1
  93. package/dist/{mindmap-definition-6OY57UG3-CXobmoZM.js → mindmap-definition-I2QAS2VK-C2KpoDqG.js} +38 -68
  94. package/dist/{mindmap-definition-6OY57UG3-DLx3d1V6.cjs → mindmap-definition-I2QAS2VK-GT8_r7or.cjs} +8 -8
  95. package/dist/{pegDiagram-ECIUJNBX-ODBWqs1V.js → pegDiagram-FD4XPPHP-CSA4sB83.js} +4 -4
  96. package/dist/{pegDiagram-ECIUJNBX-B-eSDSQK.cjs → pegDiagram-FD4XPPHP-D0OZoETj.cjs} +1 -1
  97. package/dist/pi-outpost-embed.cjs +25 -25
  98. package/dist/pi-outpost-embed.js +2799 -2405
  99. package/dist/{pieDiagram-GNMPY74T-DYDC5z2D.js → pieDiagram-J4AKIIQI-CNLlH6kK.js} +4 -4
  100. package/dist/{pieDiagram-GNMPY74T-BtYyKCrf.cjs → pieDiagram-J4AKIIQI-O870G6iX.cjs} +1 -1
  101. package/dist/{quadrantDiagram-D57K4MC3-BfQWcg-D.js → quadrantDiagram-XTYBLID2-BjaZuA3m.js} +2 -2
  102. package/dist/{quadrantDiagram-D57K4MC3-Cu6JmzPE.cjs → quadrantDiagram-XTYBLID2-CfdtTmYm.cjs} +1 -1
  103. package/dist/{railroadDiagram-Y72NRBL7-BdHmqKV_.cjs → railroadDiagram-MRQ6NCDL-DDOA_8gY.cjs} +1 -1
  104. package/dist/{railroadDiagram-Y72NRBL7-ChQwG3mZ.js → railroadDiagram-MRQ6NCDL-DgAKQKiD.js} +4 -4
  105. package/dist/{requirementDiagram-EQYSW5RA-Dj4E0fE3.js → requirementDiagram-Y7LWUY3S-Bhlk2ueA.js} +12 -12
  106. package/dist/{requirementDiagram-EQYSW5RA-CDQ6Nza1.cjs → requirementDiagram-Y7LWUY3S-nSr_pknl.cjs} +1 -1
  107. package/dist/{sankeyDiagram-SY24JHO5-luxVW4uf.js → sankeyDiagram-WGJFYUXA-DUYWd4HF.js} +2 -2
  108. package/dist/{sankeyDiagram-SY24JHO5-BPFkmPzT.cjs → sankeyDiagram-WGJFYUXA-x6J896b3.cjs} +1 -1
  109. package/dist/{sequenceDiagram-BLEHNHQU-DX51aIRY.cjs → sequenceDiagram-5NDRBG5M-BFgcr8MT.cjs} +1 -1
  110. package/dist/{sequenceDiagram-BLEHNHQU-H4rQDzp-.js → sequenceDiagram-5NDRBG5M-D1YS8Amk.js} +5 -5
  111. package/dist/{stateDiagram-v2-A6IESKWZ-DBJ11U2p.js → stateDiagram-v2-FJ4FJNEA-6j2vDdvl.js} +13 -13
  112. package/dist/{stateDiagram-v2-A6IESKWZ-Dbp783Hd.cjs → stateDiagram-v2-FJ4FJNEA-DOTmLAY2.cjs} +1 -1
  113. package/dist/swimlanes-UMQ2AFYF-BQLQzNLz.cjs +1 -0
  114. package/dist/{swimlanes-B3ENRKFQ-Bp3vZCmK.js → swimlanes-UMQ2AFYF-CNb1NF60.js} +1742 -1338
  115. package/dist/swimlanesDiagram-OMPLPG4O-BNDsO6gw.cjs +8 -0
  116. package/dist/swimlanesDiagram-OMPLPG4O-BOl138lS.js +27 -0
  117. package/dist/{timeline-definition-JXYKGLGB-BE6iAj4r.js → timeline-definition-SEUHKTQE-B_909Amn.js} +4 -4
  118. package/dist/{timeline-definition-JXYKGLGB-DKhMPFBi.cjs → timeline-definition-SEUHKTQE-Du5-RSsU.cjs} +1 -1
  119. package/dist/{usecaseDiagram-WPOLBNNX-BRWufOTq.cjs → usecaseDiagram-AFA6YXN4-BUs_YsqB.cjs} +2 -2
  120. package/dist/{usecaseDiagram-WPOLBNNX-DY9Md_AG.js → usecaseDiagram-AFA6YXN4-CiVGRP5X.js} +12 -12
  121. package/dist/{vennDiagram-Q3Y3IDCW-NYVHk5sI.cjs → vennDiagram-NNMJR3RB-CKxaec4G.cjs} +1 -1
  122. package/dist/{vennDiagram-Q3Y3IDCW-DbPGt27W.js → vennDiagram-NNMJR3RB-l3A_FZxZ.js} +4 -4
  123. package/dist/{wardleyDiagram-IVAIDKWA-BHkJFpfC.js → wardleyDiagram-S7YFUSEH-BMQf5dl9.js} +4 -4
  124. package/dist/{wardleyDiagram-IVAIDKWA-DsYJNlmX.cjs → wardleyDiagram-S7YFUSEH-Ctqri3T4.cjs} +1 -1
  125. package/dist/{xychartDiagram-4URNHDU4-B_g46bSg.cjs → xychartDiagram-GGNKY7IX-BUma86Wh.cjs} +1 -1
  126. package/dist/{xychartDiagram-4URNHDU4-IvFjWG-y.js → xychartDiagram-GGNKY7IX-CuFU4ynf.js} +7 -7
  127. package/package.json +2 -2
  128. package/dist/channel-AESWk0Yw.cjs +0 -1
  129. package/dist/channel-CEoRf1uz.js +0 -5
  130. package/dist/chunk-HNE4Q36P-CCHAgwa3.cjs +0 -1
  131. package/dist/chunk-NQOKRVIF-DcZqKWzv.cjs +0 -213
  132. package/dist/chunk-WQQL4CDK-DxEEyQzx.cjs +0 -10
  133. package/dist/elk-QONTBCTQ-B8RYU1Ay.js +0 -47505
  134. package/dist/elk-QONTBCTQ-hBYUI6Nr.cjs +0 -27
  135. package/dist/flowDiagram-IUGLLWBU-BJlVRCj8.js +0 -15
  136. package/dist/flowDiagram-IUGLLWBU-CsC_IEV_.cjs +0 -1
  137. package/dist/swimlanes-B3ENRKFQ-DY1V--Rq.cjs +0 -1
  138. package/dist/swimlanesDiagram-AYQRV4AK-COavJcG4.js +0 -27
  139. package/dist/swimlanesDiagram-AYQRV4AK-dUd5QjxZ.cjs +0 -8
@@ -1,19 +1,19 @@
1
1
  import { n as e } from "./chunk-Y2CYZVJY-CwsV_8W4.js";
2
2
  import { m as t, p as n } from "./src-65Lfw03T.js";
3
- import { b as r, w as i, y as a } from "./chunk-DSNLSHJZ-DPpiuUZK.js";
4
- import { $ as o, J as s, Q as c, X as l, Y as u, Z as d, _ as f, d as p, et as m, it as h, nt as g, q as _, rt as v, tt as y } from "./chunk-7S6XSTFO-DrDRohsE.js";
5
- import { t as b } from "./line-0VTxwDiV.js";
6
- import { n as x, r as S } from "./chunk-AQDTSKZB-DUZx386i.js";
7
- import { i as C, n as ee } from "./chunk-UHW7PFBP-BTk1ZC8L.js";
8
- import { t as te } from "./rough.esm-D2JJJ0Ot.js";
9
- import { t as w } from "./chunk-HAGFOTED-ceXO12G4.js";
10
- import { n as T } from "./chunk-ZAUX2LTX-P8LAwm_U.js";
11
- //#region ../node_modules/mermaid/dist/chunks/mermaid.core/chunk-WQQL4CDK.mjs
12
- var E = /* @__PURE__ */ e((e, t) => {
3
+ import { b as r, ot as i, st as a, w as o, y as s } from "./chunk-BG4553SI-j_gQs8M_.js";
4
+ import { $ as c, J as l, Q as u, X as d, Y as f, Z as p, _ as m, d as h, et as ee, it as g, nt as _, q as te, rt as ne, tt as v } from "./chunk-6MUBBAK2-DlUTxzYh.js";
5
+ import { t as re } from "./line-DRq00lCg.js";
6
+ import { n as ie, r as y } from "./chunk-STOXU5M4-0WKKmqbF.js";
7
+ import { i as b, n as ae } from "./chunk-X4PVCEUW-C80IBt-t.js";
8
+ import { t as oe } from "./rough.esm-D2JJJ0Ot.js";
9
+ import { t as x } from "./chunk-AXFCVDMN-DrVQa3gP.js";
10
+ import { n as se } from "./chunk-LEVMRMFU-NLMudZfn.js";
11
+ //#region ../node_modules/khroma/dist/methods/channel.js
12
+ var S = (e, t) => a.lang.round(i.parse(e)[t]), C = /* @__PURE__ */ e((e, t) => {
13
13
  if (t) return "translate(" + -e.width / 2 + ", " + -e.height / 2 + ")";
14
14
  let n = e.x ?? 0, r = e.y ?? 0;
15
15
  return "translate(" + -(n + e.width / 2) + ", " + -(r + e.height / 2) + ")";
16
- }, "computeLabelTransform"), D = {
16
+ }, "computeLabelTransform"), w = {
17
17
  aggregation: 17.25,
18
18
  extension: 17.25,
19
19
  composition: 17.25,
@@ -22,18 +22,20 @@ var E = /* @__PURE__ */ e((e, t) => {
22
22
  arrow_point: 4,
23
23
  arrow_barb: 0,
24
24
  arrow_barb_neo: 5.5
25
- }, O = {
25
+ }, T = {
26
26
  arrow_point: 4,
27
27
  arrow_cross: 12.5,
28
- arrow_circle: 12.5
28
+ arrow_circle: 12.5,
29
+ arrow_open_head: 4,
30
+ arrow_hollow_circle: 8
29
31
  };
30
- function k(e, t) {
32
+ function E(e, t) {
31
33
  if (e === void 0 || t === void 0) return {
32
34
  angle: 0,
33
35
  deltaX: 0,
34
36
  deltaY: 0
35
37
  };
36
- e = A(e), t = A(t);
38
+ e = D(e), t = D(t);
37
39
  let [n, r] = [e.x, e.y], [i, a] = [t.x, t.y], o = i - n, s = a - r;
38
40
  return {
39
41
  angle: Math.atan(s / o),
@@ -41,21 +43,21 @@ function k(e, t) {
41
43
  deltaY: s
42
44
  };
43
45
  }
44
- e(k, "calculateDeltaAndAngle");
45
- var A = /* @__PURE__ */ e((e) => Array.isArray(e) ? {
46
+ e(E, "calculateDeltaAndAngle");
47
+ var D = /* @__PURE__ */ e((e) => Array.isArray(e) ? {
46
48
  x: e[0],
47
49
  y: e[1]
48
- } : e, "pointTransformer"), ne = /* @__PURE__ */ e((t) => ({
50
+ } : e, "pointTransformer"), ce = /* @__PURE__ */ e((t) => ({
49
51
  x: /* @__PURE__ */ e(function(e, n, r) {
50
- let i = 0, a = A(r[0]).x < A(r[r.length - 1]).x ? "left" : "right";
51
- if (n === 0 && Object.hasOwn(D, t.arrowTypeStart)) {
52
- let { angle: e, deltaX: n } = k(r[0], r[1]);
53
- i = D[t.arrowTypeStart] * Math.cos(e) * (n >= 0 ? 1 : -1);
54
- } else if (n === r.length - 1 && Object.hasOwn(D, t.arrowTypeEnd)) {
55
- let { angle: e, deltaX: n } = k(r[r.length - 1], r[r.length - 2]);
56
- i = D[t.arrowTypeEnd] * Math.cos(e) * (n >= 0 ? 1 : -1);
52
+ let i = 0, a = D(r[0]).x < D(r[r.length - 1]).x ? "left" : "right";
53
+ if (n === 0 && Object.hasOwn(w, t.arrowTypeStart)) {
54
+ let { angle: e, deltaX: n } = E(r[0], r[1]);
55
+ i = w[t.arrowTypeStart] * Math.cos(e) * (n >= 0 ? 1 : -1);
56
+ } else if (n === r.length - 1 && Object.hasOwn(w, t.arrowTypeEnd)) {
57
+ let { angle: e, deltaX: n } = E(r[r.length - 1], r[r.length - 2]);
58
+ i = w[t.arrowTypeEnd] * Math.cos(e) * (n >= 0 ? 1 : -1);
57
59
  }
58
- let o = Math.abs(A(e).x - A(r[r.length - 1]).x), s = Math.abs(A(e).y - A(r[r.length - 1]).y), c = Math.abs(A(e).x - A(r[0]).x), l = Math.abs(A(e).y - A(r[0]).y), u = D[t.arrowTypeStart], d = D[t.arrowTypeEnd];
60
+ let o = Math.abs(D(e).x - D(r[r.length - 1]).x), s = Math.abs(D(e).y - D(r[r.length - 1]).y), c = Math.abs(D(e).x - D(r[0]).x), l = Math.abs(D(e).y - D(r[0]).y), u = w[t.arrowTypeStart], d = w[t.arrowTypeEnd];
59
61
  if (o < d && o > 0 && s < d) {
60
62
  let e = d + 1 - o;
61
63
  e *= a === "right" ? -1 : 1, i -= e;
@@ -64,18 +66,18 @@ var A = /* @__PURE__ */ e((e) => Array.isArray(e) ? {
64
66
  let e = u + 1 - c;
65
67
  e *= a === "right" ? -1 : 1, i += e;
66
68
  }
67
- return A(e).x + i;
69
+ return D(e).x + i;
68
70
  }, "x"),
69
71
  y: /* @__PURE__ */ e(function(e, n, r) {
70
- let i = 0, a = A(r[0]).y < A(r[r.length - 1]).y ? "down" : "up";
71
- if (n === 0 && Object.hasOwn(D, t.arrowTypeStart)) {
72
- let { angle: e, deltaY: n } = k(r[0], r[1]);
73
- i = D[t.arrowTypeStart] * Math.abs(Math.sin(e)) * (n >= 0 ? 1 : -1);
74
- } else if (n === r.length - 1 && Object.hasOwn(D, t.arrowTypeEnd)) {
75
- let { angle: e, deltaY: n } = k(r[r.length - 1], r[r.length - 2]);
76
- i = D[t.arrowTypeEnd] * Math.abs(Math.sin(e)) * (n >= 0 ? 1 : -1);
72
+ let i = 0, a = D(r[0]).y < D(r[r.length - 1]).y ? "down" : "up";
73
+ if (n === 0 && Object.hasOwn(w, t.arrowTypeStart)) {
74
+ let { angle: e, deltaY: n } = E(r[0], r[1]);
75
+ i = w[t.arrowTypeStart] * Math.abs(Math.sin(e)) * (n >= 0 ? 1 : -1);
76
+ } else if (n === r.length - 1 && Object.hasOwn(w, t.arrowTypeEnd)) {
77
+ let { angle: e, deltaY: n } = E(r[r.length - 1], r[r.length - 2]);
78
+ i = w[t.arrowTypeEnd] * Math.abs(Math.sin(e)) * (n >= 0 ? 1 : -1);
77
79
  }
78
- let o = Math.abs(A(e).y - A(r[r.length - 1]).y), s = Math.abs(A(e).x - A(r[r.length - 1]).x), c = Math.abs(A(e).y - A(r[0]).y), l = Math.abs(A(e).x - A(r[0]).x), u = D[t.arrowTypeStart], d = D[t.arrowTypeEnd];
80
+ let o = Math.abs(D(e).y - D(r[r.length - 1]).y), s = Math.abs(D(e).x - D(r[r.length - 1]).x), c = Math.abs(D(e).y - D(r[0]).y), l = Math.abs(D(e).x - D(r[0]).x), u = w[t.arrowTypeStart], d = w[t.arrowTypeEnd];
79
81
  if (o < d && o > 0 && s < d) {
80
82
  let e = d + 1 - o;
81
83
  e *= a === "up" ? -1 : 1, i -= e;
@@ -84,11 +86,243 @@ var A = /* @__PURE__ */ e((e) => Array.isArray(e) ? {
84
86
  let e = u + 1 - c;
85
87
  e *= a === "up" ? -1 : 1, i += e;
86
88
  }
87
- return A(e).y + i;
89
+ return D(e).y + i;
88
90
  }, "y")
89
- }), "getLineFunctionsWithOffset"), re = /* @__PURE__ */ e((e, t, n, r, i, a = !1, o) => {
90
- t.arrowTypeStart && N(e, "start", t.arrowTypeStart, n, r, i, a, o), t.arrowTypeEnd && N(e, "end", t.arrowTypeEnd, n, r, i, a, o);
91
- }, "addEdgeMarkers"), j = {
91
+ }), "getLineFunctionsWithOffset"), O = 1, k = /* @__PURE__ */ e((e) => typeof e == "number" && Number.isFinite(e) && e > 0 ? e : O, "getStepDuration"), A = /* @__PURE__ */ e((e) => typeof e.step == "number" && Number.isInteger(e.step) && e.step > 0, "isStepEdge"), j = [
92
+ .25,
93
+ .35,
94
+ .15,
95
+ .65,
96
+ .75,
97
+ .5,
98
+ .85,
99
+ .1,
100
+ .9
101
+ ], M = 9, N = 11, le = 2, ue = "#333333", P = 12, F = 6, I = 14, L = .01, R = 4.5, z = /translate\(\s*(-?[\d.e]+)[\s,]+(-?[\d.e]+)/i, B = 4, V = .6, H = 4, de = /* @__PURE__ */ e((e, t, n = O) => {
102
+ let r = Math.max(t, e);
103
+ return {
104
+ begin: (e - 1) * n,
105
+ dur: n,
106
+ gap: (r - 1) * n
107
+ };
108
+ }, "getEdgeStepTiming"), fe = /* @__PURE__ */ e((e) => `step_${Array.from(e, (e) => /[\dA-Za-z]/.test(e) ? e : `_${(e.codePointAt(0) ?? 0).toString(16)}_`).join("")}`, "toAnimationId"), pe = /* @__PURE__ */ e((e) => {
109
+ let t = /^m\s*(-?[\d.e]+)[\s,]+(-?[\d.e]+)/i.exec(e.trim());
110
+ return t ? `translate(${t[1]},${t[2]}) ` : "";
111
+ }, "pathStartTranslate"), U = /* @__PURE__ */ e((e) => Array.from(e, (t, n) => {
112
+ let r = t.codePointAt(0) ?? 0;
113
+ if (r === 0) return "�";
114
+ let i = r <= 31 || r === 127, a = /\d/.test(t) && (n === 0 || n === 1 && e.startsWith("-"));
115
+ return i || a ? `\\${r.toString(16)} ` : e === "-" ? "\\-" : r >= 128 || /[\w-]/.test(t) ? t : `\\${t}`;
116
+ }).join(""), "escapeCssIdentifierFallback"), me = /* @__PURE__ */ e((e) => typeof CSS < "u" && typeof CSS.escape == "function" ? CSS.escape(e) : U(e), "escapeCssIdentifier"), he = /* @__PURE__ */ e((e, t) => {
117
+ let n = e.node(), r = n?.ownerSVGElement ?? n?.closest?.("svg") ?? n, i = t || r?.getAttribute("id");
118
+ if (!r || !i || r.querySelector("style.edge-step-style")) return;
119
+ let a = `#${me(i)} `, o = r.ownerDocument.createElementNS("http://www.w3.org/2000/svg", "style");
120
+ o.setAttribute("class", "edge-step-style"), o.textContent = `@media (prefers-reduced-motion: reduce) { ${a}.edge-step-dot, ${a}.edge-step-highlight { display: none; } }`, r.appendChild(o);
121
+ }, "ensureReducedMotionStyle"), ge = /* @__PURE__ */ e((e, t) => {
122
+ let n = e.filter((e) => Number.isFinite(e.x) && Number.isFinite(e.y));
123
+ if (n.length === 0) return;
124
+ let r = n.slice(1).map((e, t) => Math.hypot(e.x - n[t].x, e.y - n[t].y)), i = r.reduce((e, t) => e + t, 0) * t;
125
+ for (let [e, t] of r.entries()) {
126
+ if (i <= t && t > 0) {
127
+ let r = i / t, a = n[e], o = n[e + 1];
128
+ return {
129
+ x: a.x + (o.x - a.x) * r,
130
+ y: a.y + (o.y - a.y) * r
131
+ };
132
+ }
133
+ i -= t;
134
+ }
135
+ return n[n.length - 1];
136
+ }, "pointAlongPolyline"), _e = /* @__PURE__ */ e((e, t) => {
137
+ let n = typeof t?.getTotalLength == "function" ? t.getTotalLength() : 0, r = t?.getPointAtLength?.bind(t);
138
+ return n > 0 && r ? (e) => {
139
+ let { x: t, y: i } = r(n * e);
140
+ return {
141
+ x: t,
142
+ y: i
143
+ };
144
+ } : (t) => ge(e, t);
145
+ }, "createPathSampler"), ve = /* @__PURE__ */ e((e, t) => Math.min(Infinity, ...t.map((t) => {
146
+ let n = Math.max(Math.abs(e.x - t.x) - t.halfWidth, 0), r = Math.max(Math.abs(e.y - t.y) - t.halfHeight, 0);
147
+ return Math.hypot(n, r) - M;
148
+ })), "roomAround"), ye = /* @__PURE__ */ e((e, t) => {
149
+ let n = e(t), r = e(Math.max(t - L, 0)), i = e(Math.min(t + L, 1));
150
+ if (!n || !r || !i) return [];
151
+ let a = Math.hypot(i.x - r.x, i.y - r.y);
152
+ if (a === 0) return [];
153
+ let o = {
154
+ x: -(i.y - r.y) / a,
155
+ y: (i.x - r.x) / a
156
+ };
157
+ return [1, -1].map((e) => ({
158
+ x: n.x + o.x * I * e,
159
+ y: n.y + o.y * I * e
160
+ }));
161
+ }, "besideThePath"), be = /* @__PURE__ */ e((e, t) => {
162
+ let n = [...j.map(e), ...j.flatMap((t) => ye(e, t))], r, i = -Infinity;
163
+ for (let e of n) {
164
+ if (!e || !Number.isFinite(e.x) || !Number.isFinite(e.y)) continue;
165
+ let n = ve(e, t);
166
+ if (n >= le) return e;
167
+ n > i && (r = e, i = n);
168
+ }
169
+ return r;
170
+ }, "chooseBadgePosition"), xe = /* @__PURE__ */ e((e, t) => ({
171
+ ...e,
172
+ halfWidth: t,
173
+ halfHeight: t
174
+ }), "square"), Se = /* @__PURE__ */ e((e) => {
175
+ let t = z.exec(e.getAttribute("transform") ?? "");
176
+ return t ? {
177
+ x: Number(t[1]),
178
+ y: Number(t[2])
179
+ } : {
180
+ x: 0,
181
+ y: 0
182
+ };
183
+ }, "translationOf"), W = /* @__PURE__ */ e((e) => {
184
+ let t = {
185
+ x: 0,
186
+ y: 0
187
+ };
188
+ for (let n = e; n && n.localName !== "svg"; n = n.parentElement) {
189
+ let { x: e, y: r } = Se(n);
190
+ t.x += e, t.y += r;
191
+ }
192
+ return t;
193
+ }, "offsetInSvg"), Ce = /* @__PURE__ */ e((e, t) => {
194
+ if (!z.test(e.getAttribute("transform") ?? "")) return;
195
+ let n = W(e), r = n.x - t.x, i = n.y - t.y, a = e.getBBox?.();
196
+ if (a) return {
197
+ x: r + a.x + a.width / 2,
198
+ y: i + a.y + a.height / 2,
199
+ halfWidth: a.width / 2,
200
+ halfHeight: a.height / 2
201
+ };
202
+ }, "boxedObstacle"), we = /* @__PURE__ */ e((e) => {
203
+ try {
204
+ let t = JSON.parse(atob(e.getAttribute("data-points") ?? ""));
205
+ return Array.isArray(t) ? t : [];
206
+ } catch {
207
+ return [];
208
+ }
209
+ }, "readPoints"), Te = /* @__PURE__ */ e((e, t) => {
210
+ let n = Math.hypot(e.x - t.x, e.y - t.y);
211
+ if (n === 0) return xe(e, P);
212
+ let r = {
213
+ x: (e.x - t.x) / n,
214
+ y: (e.y - t.y) / n
215
+ }, i = P / 2;
216
+ return {
217
+ x: e.x - r.x * i,
218
+ y: e.y - r.y * i,
219
+ halfWidth: Math.abs(r.x) * i + Math.abs(r.y) * F,
220
+ halfHeight: Math.abs(r.y) * i + Math.abs(r.x) * F
221
+ };
222
+ }, "arrowheadObstacle"), Ee = /* @__PURE__ */ e((e, t) => {
223
+ let n = e.getAttribute(t);
224
+ return !!n && n !== "none";
225
+ }, "hasMarker"), De = /* @__PURE__ */ e((t, n) => {
226
+ let r = we(t).filter((e) => Number.isFinite(e?.x) && Number.isFinite(e?.y));
227
+ if (r.length === 0) return [];
228
+ let i = W(t), a = /* @__PURE__ */ e((e) => ({
229
+ x: e.x + i.x - n.x,
230
+ y: e.y + i.y - n.y
231
+ }), "toSvg"), o = r.length - 1, s = [];
232
+ return Ee(t, "marker-start") && s.push(Te(a(r[0]), a(r[Math.min(1, o)]))), Ee(t, "marker-end") && s.push(Te(a(r[o]), a(r[Math.max(o - 1, 0)]))), s;
233
+ }, "arrowheadObstacles"), Oe = /* @__PURE__ */ e((e) => {
234
+ let t = {
235
+ x: 0,
236
+ y: 0
237
+ }, n = [...e?.querySelectorAll(".edgeLabel, .node") ?? []].map((e) => Ce(e, t)).filter((e) => e !== void 0), r = [...e?.querySelectorAll("path[data-edge=\"true\"]") ?? []].flatMap((e) => De(e, t));
238
+ return [...n, ...r];
239
+ }, "collectBadgeObstacles"), ke = /* @__PURE__ */ e((e, t) => {
240
+ if (!e.label || t.length === 0) return [];
241
+ let { x: n, y: r } = m.calcLabelPosition(t);
242
+ return [{
243
+ x: n,
244
+ y: r,
245
+ halfWidth: (e.width ?? 0) / 2,
246
+ halfHeight: (e.height ?? 0) / 2
247
+ }];
248
+ }, "edgeLabelObstacles"), Ae = /* @__PURE__ */ e((e) => {
249
+ let t = e / 255;
250
+ return t <= .03928 ? t / 12.92 : ((t + .055) / 1.055) ** 2.4;
251
+ }, "linearChannel"), je = /* @__PURE__ */ e((e) => {
252
+ try {
253
+ let [t, n, r] = [
254
+ "r",
255
+ "g",
256
+ "b"
257
+ ].map((t) => Ae(S(e, t)));
258
+ return .2126 * t + .7152 * n + .0722 * r;
259
+ } catch {
260
+ return;
261
+ }
262
+ }, "relativeLuminance"), Me = /* @__PURE__ */ e((e, t) => {
263
+ let n = je(e), r = je(t);
264
+ return n === void 0 || r === void 0 ? 0 : (Math.max(n, r) + .05) / (Math.min(n, r) + .05);
265
+ }, "contrastRatio"), Ne = /* @__PURE__ */ e((e, t) => {
266
+ let n = [
267
+ ...t.filter((e) => !!e),
268
+ "#ffffff",
269
+ "#000000"
270
+ ].map((t) => ({
271
+ color: t,
272
+ ratio: Me(e, t)
273
+ }));
274
+ return (n.find(({ ratio: e }) => e >= R) ?? n.reduce((e, t) => t.ratio > e.ratio ? t : e)).color;
275
+ }, "pickBadgeTextColor"), Pe = /* @__PURE__ */ e((e) => {
276
+ let t = e?.replace(/^stroke:\s*/, "").trim();
277
+ return t === "" ? void 0 : t;
278
+ }, "bareColor"), Fe = /* @__PURE__ */ e((e, t, n, r = Oe(e.node()?.closest("svg"))) => {
279
+ if (!A(t) || !t.showStepNumber) return;
280
+ let i = W(e.node()), a = r.map((e) => ({
281
+ ...e,
282
+ x: e.x - i.x,
283
+ y: e.y - i.y
284
+ })), o = be(_e(n.points, n.pathNode), [...a, ...ke(t, n.points)]);
285
+ if (!o) return;
286
+ let s = Pe(n.color) ?? ue, c = e.append("g").attr("class", "edge-step-badge").attr("transform", `translate(${o.x},${o.y})`).attr("pointer-events", "none").attr("data-step", t.step);
287
+ return c.append("circle").attr("r", M).attr("fill", s), c.append("text").attr("text-anchor", "middle").attr("dominant-baseline", "central").attr("font-size", N).attr("fill", Ne(s, n.textColors ?? [])).text(String(t.step)), xe({
288
+ x: o.x + i.x,
289
+ y: o.y + i.y
290
+ }, M);
291
+ }, "insertEdgeStepBadge"), Ie = /* @__PURE__ */ e((e, t, n) => {
292
+ e.append("animateTransform").attr("attributeName", "transform").attr("type", "scale").attr("values", "1;1").attr("dur", `${n}s`).attr("begin", `${t}.begin`).attr("fill", "remove");
293
+ }, "showWhileStepPlays"), Le = /* @__PURE__ */ e((e, t, n, r, i) => {
294
+ if (!A(t) || !n) return;
295
+ let { begin: a, dur: o, gap: s } = de(t.step, t.stepCount ?? t.step, k(t.stepDuration)), c = fe(`${r}-${t.id}-step`), l = `${pe(n)}scale(0)`, u = i?.replace(/^stroke:\s*/, "");
296
+ Ie(e.append("path").attr("class", "edge-step-highlight").attr("aria-hidden", "true").attr("d", n).attr("fill", "none").attr("stroke", u ?? "currentColor").attr("stroke-width", B).attr("stroke-linecap", "round").attr("stroke-opacity", V).attr("pointer-events", "none").attr("transform", l).attr("data-step", t.step), c, o);
297
+ let d = e.append("circle").attr("class", "edge-step-dot").attr("r", H).attr("aria-hidden", "true").attr("transform", l).attr("data-step", t.step);
298
+ u && d.attr("fill", u).attr("stroke", "none"), d.append("animateMotion").attr("id", c).attr("path", n).attr("dur", `${o}s`).attr("begin", `${a}s;${c}.end+${s}s`).attr("fill", "remove"), Ie(d, c, o), he(e, r);
299
+ }, "insertEdgeStepDot"), G = /* @__PURE__ */ new WeakMap(), Re = /* @__PURE__ */ e((e) => {
300
+ let t = e.querySelector(":scope > g.edge-step-badges");
301
+ if (t) return t;
302
+ let n = e.ownerDocument.createElementNS("http://www.w3.org/2000/svg", "g");
303
+ return n.setAttribute("class", "edge-step-badges"), e.appendChild(n);
304
+ }, "badgeLayer"), ze = /* @__PURE__ */ e((e) => {
305
+ let t = e ? G.get(e) : void 0;
306
+ if (!e || !t) return;
307
+ G.delete(e);
308
+ let r = Oe(e);
309
+ for (let { elem: e, edge: i, options: a } of t) {
310
+ let t = e.node()?.parentElement;
311
+ if (!t) continue;
312
+ let o = Fe(n(Re(t)), i, a, r);
313
+ o && r.push(o);
314
+ }
315
+ }, "placeQueuedStepBadges"), Be = /* @__PURE__ */ e((e, t, n, r, i) => {
316
+ Le(e, t, n, r, i.color);
317
+ let a = e.node(), o = a?.ownerSVGElement ?? a;
318
+ o && A(t) && t.showStepNumber && G.set(o, [...G.get(o) ?? [], {
319
+ elem: e,
320
+ edge: t,
321
+ options: i
322
+ }]);
323
+ }, "insertEdgeStepMarks"), Ve = /* @__PURE__ */ e((e, t, n, r, i, a = !1, o) => {
324
+ t.arrowTypeStart && We(e, "start", t.arrowTypeStart, n, r, i, a, o), t.arrowTypeEnd && We(e, "end", t.arrowTypeEnd, n, r, i, a, o);
325
+ }, "addEdgeMarkers"), He = {
92
326
  arrow_cross: {
93
327
  type: "cross",
94
328
  fill: !1
@@ -109,6 +343,14 @@ var A = /* @__PURE__ */ e((e) => Array.isArray(e) ? {
109
343
  type: "circle",
110
344
  fill: !1
111
345
  },
346
+ arrow_open_head: {
347
+ type: "openArrow",
348
+ fill: !1
349
+ },
350
+ arrow_hollow_circle: {
351
+ type: "hollowCircle",
352
+ fill: !1
353
+ },
112
354
  arrow_hierarchy: {
113
355
  type: "hierarchy",
114
356
  fill: !1
@@ -157,7 +399,7 @@ var A = /* @__PURE__ */ e((e) => Array.isArray(e) ? {
157
399
  type: "requirement_contains",
158
400
  fill: !1
159
401
  }
160
- }, M = [
402
+ }, Ue = [
161
403
  "cross",
162
404
  "point",
163
405
  "circle",
@@ -167,9 +409,9 @@ var A = /* @__PURE__ */ e((e) => Array.isArray(e) ? {
167
409
  "composition",
168
410
  "dependency",
169
411
  "barb"
170
- ], N = /* @__PURE__ */ e((e, n, r, i, a, o, s = !1, c) => {
412
+ ], We = /* @__PURE__ */ e((e, n, r, i, a, o, s = !1, c) => {
171
413
  if (!r || r === "none") return;
172
- let l = j[r], u = l && M.includes(l.type);
414
+ let l = He[r], u = l && Ue.includes(l.type);
173
415
  if (!l) {
174
416
  t.warn(`Unknown arrow type: ${r}`);
175
417
  return;
@@ -188,91 +430,91 @@ var A = /* @__PURE__ */ e((e) => Array.isArray(e) ? {
188
430
  }
189
431
  e.attr(`marker-${n}`, `url(${i}#${t})`);
190
432
  } else e.attr(`marker-${n}`, `url(${i}#${d})`);
191
- }, "addEdgeMarker"), ie = /* @__PURE__ */ e((e) => typeof e == "string" ? e : r()?.flowchart?.curve, "resolveEdgeCurveType"), P = /* @__PURE__ */ new Map(), F = /* @__PURE__ */ new Map(), ae = /* @__PURE__ */ e(() => {
192
- P.clear(), F.clear();
193
- }, "clear"), I = /* @__PURE__ */ e((e) => !!(e.label || e.startLabelLeft || e.startLabelRight || e.endLabelLeft || e.endLabelRight), "hasEdgeLabel"), L = /* @__PURE__ */ e((e) => e ? typeof e == "string" ? e : e.reduce((e, t) => e + ";" + t, "") : "", "getLabelStyles"), R = /* @__PURE__ */ e(async (e, a) => {
194
- let o = r(), s = i(o), { labelStyles: c } = C(a);
195
- a.labelStyle = c;
196
- let l = e.insert("g").attr("class", "edgeLabel"), u = l.insert("g").attr("class", "label").attr("data-id", a.id), d = a.labelType === "markdown", f = await x(e, a.label, {
197
- style: L(a.labelStyle),
433
+ }, "addEdgeMarker"), Ge = /* @__PURE__ */ e((e) => typeof e == "string" ? e : r()?.flowchart?.curve, "resolveEdgeCurveType"), K = /* @__PURE__ */ new Map(), q = /* @__PURE__ */ new Map(), Ke = /* @__PURE__ */ e(() => {
434
+ K.clear(), q.clear();
435
+ }, "clear"), qe = /* @__PURE__ */ e((e) => !!(e.label || e.startLabelLeft || e.startLabelRight || e.endLabelLeft || e.endLabelRight), "hasEdgeLabel"), J = /* @__PURE__ */ e((e) => e ? typeof e == "string" ? e : e.reduce((e, t) => e + ";" + t, "") : "", "getLabelStyles"), Je = /* @__PURE__ */ e(async (e, i) => {
436
+ let a = r(), s = o(a), { labelStyles: c } = b(i);
437
+ i.labelStyle = c;
438
+ let l = e.insert("g").attr("class", "edgeLabel"), u = l.insert("g").attr("class", "label").attr("data-id", i.id), d = i.labelType === "markdown", f = await ie(e, i.label, {
439
+ style: J(i.labelStyle),
198
440
  useHtmlLabels: s,
199
441
  addSvgBackground: !0,
200
442
  isNode: !1,
201
443
  markdown: d,
202
444
  width: void 0
203
- }, o);
204
- u.node().appendChild(f), t.info("abc82", a, a.labelType);
445
+ }, a);
446
+ u.node().appendChild(f), t.info("abc82", i, i.labelType);
205
447
  let p, m;
206
448
  if (s) {
207
449
  let e = f.children[0], t = n(f);
208
- p = await S.measure(() => e.getBoundingClientRect()), m = p, t.attr("width", p.width), t.attr("height", p.height);
450
+ p = await y.measure(() => e.getBoundingClientRect()), m = p, t.attr("width", p.width), t.attr("height", p.height);
209
451
  } else {
210
452
  let e = n(f).select("text").node();
211
- await S.measure(() => {
453
+ await y.measure(() => {
212
454
  p = f.getBBox(), m = e && typeof e.getBBox == "function" ? e.getBBox() : p;
213
455
  });
214
456
  }
215
- u.attr("transform", E(m, s)), P.set(a.id, l), a.width = p.width, a.height = p.height;
457
+ u.attr("transform", C(m, s)), K.set(i.id, l), i.width = p.width, i.height = p.height;
216
458
  let h;
217
- if (a.startLabelLeft) {
218
- let t = e.insert("g").attr("class", "edgeTerminals"), r = t.insert("g").attr("class", "inner"), i = await w(r, a.startLabelLeft, L(a.labelStyle) || "", !1, !1);
219
- h = i;
220
- let o = i.getBBox();
459
+ if (i.startLabelLeft) {
460
+ let t = e.insert("g").attr("class", "edgeTerminals"), r = t.insert("g").attr("class", "inner"), a = await x(r, i.startLabelLeft, J(i.labelStyle) || "", !1, !1);
461
+ h = a;
462
+ let o = a.getBBox();
221
463
  if (s) {
222
- let e = i.children[0], t = n(i);
464
+ let e = a.children[0], t = n(a);
223
465
  o = e.getBoundingClientRect(), t.attr("width", o.width), t.attr("height", o.height);
224
466
  }
225
- r.attr("transform", E(o, s)), F.get(a.id) || F.set(a.id, {}), F.get(a.id).startLeft = t, B(h, a.startLabelLeft, o), z(a, "startLeft", o);
467
+ r.attr("transform", C(o, s)), q.get(i.id) || q.set(i.id, {}), q.get(i.id).startLeft = t, X(h, i.startLabelLeft, o), Y(i, "startLeft", o);
226
468
  }
227
- if (a.startLabelRight) {
228
- let t = e.insert("g").attr("class", "edgeTerminals"), r = t.insert("g").attr("class", "inner"), i = await w(r, a.startLabelRight, L(a.labelStyle) || "", !1, !1);
229
- h = i;
230
- let o = i.getBBox();
469
+ if (i.startLabelRight) {
470
+ let t = e.insert("g").attr("class", "edgeTerminals"), r = t.insert("g").attr("class", "inner"), a = await x(r, i.startLabelRight, J(i.labelStyle) || "", !1, !1);
471
+ h = a;
472
+ let o = a.getBBox();
231
473
  if (s) {
232
- let e = i.children[0], t = n(i);
474
+ let e = a.children[0], t = n(a);
233
475
  o = e.getBoundingClientRect(), t.attr("width", o.width), t.attr("height", o.height);
234
476
  }
235
- r.attr("transform", E(o, s)), F.get(a.id) || F.set(a.id, {}), F.get(a.id).startRight = t, B(h, a.startLabelRight, o), z(a, "startRight", o);
477
+ r.attr("transform", C(o, s)), q.get(i.id) || q.set(i.id, {}), q.get(i.id).startRight = t, X(h, i.startLabelRight, o), Y(i, "startRight", o);
236
478
  }
237
- if (a.endLabelLeft) {
238
- let t = e.insert("g").attr("class", "edgeTerminals"), r = t.insert("g").attr("class", "inner"), i = await w(r, a.endLabelLeft, L(a.labelStyle) || "", !1, !1);
239
- h = i;
240
- let o = i.getBBox();
479
+ if (i.endLabelLeft) {
480
+ let t = e.insert("g").attr("class", "edgeTerminals"), r = t.insert("g").attr("class", "inner"), a = await x(r, i.endLabelLeft, J(i.labelStyle) || "", !1, !1);
481
+ h = a;
482
+ let o = a.getBBox();
241
483
  if (s) {
242
- let e = i.children[0], t = n(i);
484
+ let e = a.children[0], t = n(a);
243
485
  o = e.getBoundingClientRect(), t.attr("width", o.width), t.attr("height", o.height);
244
486
  }
245
- r.attr("transform", E(o, s)), F.get(a.id) || F.set(a.id, {}), F.get(a.id).endLeft = t, B(h, a.endLabelLeft, o), z(a, "endLeft", o);
487
+ r.attr("transform", C(o, s)), q.get(i.id) || q.set(i.id, {}), q.get(i.id).endLeft = t, X(h, i.endLabelLeft, o), Y(i, "endLeft", o);
246
488
  }
247
- if (a.endLabelRight) {
248
- let t = e.insert("g").attr("class", "edgeTerminals"), r = t.insert("g").attr("class", "inner"), i = await w(r, a.endLabelRight, L(a.labelStyle) || "", !1, !1);
249
- h = i;
250
- let o = i.getBBox();
489
+ if (i.endLabelRight) {
490
+ let t = e.insert("g").attr("class", "edgeTerminals"), r = t.insert("g").attr("class", "inner"), a = await x(r, i.endLabelRight, J(i.labelStyle) || "", !1, !1);
491
+ h = a;
492
+ let o = a.getBBox();
251
493
  if (s) {
252
- let e = i.children[0], t = n(i);
494
+ let e = a.children[0], t = n(a);
253
495
  o = e.getBoundingClientRect(), t.attr("width", o.width), t.attr("height", o.height);
254
496
  }
255
- r.attr("transform", E(o, s)), F.get(a.id) || F.set(a.id, {}), F.get(a.id).endRight = t, B(h, a.endLabelRight, o), z(a, "endRight", o);
497
+ r.attr("transform", C(o, s)), q.get(i.id) || q.set(i.id, {}), q.get(i.id).endRight = t, X(h, i.endLabelRight, o), Y(i, "endRight", o);
256
498
  }
257
499
  return f;
258
500
  }, "insertEdgeLabel");
259
- function z(e, t, n) {
501
+ function Y(e, t, n) {
260
502
  e.terminalLabelSizes ??= {}, e.terminalLabelSizes[t] = {
261
503
  width: n.width,
262
504
  height: n.height
263
505
  };
264
506
  }
265
- e(z, "recordTerminalLabelSize");
266
- function B(e, t, n) {
267
- i(r()) && e && (e.style.width = Math.max(t.length * 9, n.width) + "px", e.style.height = n.height + "px");
507
+ e(Y, "recordTerminalLabelSize");
508
+ function X(e, t, n) {
509
+ o(r()) && e && (e.style.width = Math.max(t.length * 9, n.width) + "px", e.style.height = n.height + "px");
268
510
  }
269
- e(B, "setTerminalWidth");
270
- var V = /* @__PURE__ */ e((e, t) => {
511
+ e(X, "setTerminalWidth");
512
+ var Ye = /* @__PURE__ */ e((e, t) => {
271
513
  let n = e.x, r = e.y;
272
514
  if (t?.updatedPath) {
273
- let i = f.calcLabelPosition(t.updatedPath);
515
+ let i = m.calcLabelPosition(t.updatedPath);
274
516
  if (t.originalPath) {
275
- let a = f.calcLabelPosition(t.originalPath);
517
+ let a = m.calcLabelPosition(t.originalPath);
276
518
  n = e.x + (i.x - a.x), r = e.y + (i.y - a.y);
277
519
  } else n = i.x, r = i.y;
278
520
  }
@@ -280,47 +522,92 @@ var V = /* @__PURE__ */ e((e, t) => {
280
522
  x: n,
281
523
  y: r
282
524
  };
283
- }, "resolveEdgeLabelPosition"), H = /* @__PURE__ */ e((e, n) => {
284
- t.debug("Moving label abc88 ", e.id, e.label, P.get(e.id), n);
285
- let i = r(), { subGraphTitleTotalMargin: a } = T(i);
525
+ }, "resolveEdgeLabelPosition"), Xe = /* @__PURE__ */ e((e, n) => {
526
+ t.debug("Moving label abc88 ", e.id, e.label, K.get(e.id), n);
527
+ let i = r(), { subGraphTitleTotalMargin: a } = se(i);
286
528
  if (e.label) {
287
- let r = P.get(e.id), { x: i, y: o } = V(e, n);
529
+ let r = K.get(e.id), { x: i, y: o } = Ye(e, n);
288
530
  t.debug("Moving label " + e.label + " from (", e.x, ",", e.y, ") to (", i, ",", o, ") abc88"), r.attr("transform", `translate(${i}, ${o + a / 2})`);
289
531
  }
290
532
  let o = n.updatedPath ? n.updatedPath : n.originalPath;
291
533
  if (e.startLabelLeft) {
292
- let t = F.get(e.id).startLeft, n = e.x, r = e.y;
534
+ let t = q.get(e.id).startLeft, n = e.x, r = e.y;
293
535
  if (o) {
294
- let t = f.calcTerminalLabelPosition(e.arrowTypeStart ? 10 : 0, "start_left", o);
536
+ let t = m.calcTerminalLabelPosition(e.arrowTypeStart ? 10 : 0, "start_left", o);
295
537
  n = t.x, r = t.y;
296
538
  }
297
539
  t.attr("transform", `translate(${n}, ${r})`);
298
540
  }
299
541
  if (e.startLabelRight) {
300
- let t = F.get(e.id).startRight, n = e.x, r = e.y;
542
+ let t = q.get(e.id).startRight, n = e.x, r = e.y;
301
543
  if (o) {
302
- let t = f.calcTerminalLabelPosition(e.arrowTypeStart ? 10 : 0, "start_right", o);
544
+ let t = m.calcTerminalLabelPosition(e.arrowTypeStart ? 10 : 0, "start_right", o);
303
545
  n = t.x, r = t.y;
304
546
  }
305
547
  t.attr("transform", `translate(${n}, ${r})`);
306
548
  }
307
549
  if (e.endLabelLeft) {
308
- let t = F.get(e.id).endLeft, n = e.x, r = e.y;
550
+ let t = q.get(e.id).endLeft, n = e.x, r = e.y;
309
551
  if (o) {
310
- let t = f.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_left", o);
552
+ let t = m.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_left", o);
311
553
  n = t.x, r = t.y;
312
554
  }
313
555
  t.attr("transform", `translate(${n}, ${r})`);
314
556
  }
315
557
  if (e.endLabelRight) {
316
- let t = F.get(e.id).endRight, n = e.x, r = e.y;
558
+ let t = q.get(e.id).endRight, n = e.x, r = e.y;
317
559
  if (o) {
318
- let t = f.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_right", o);
560
+ let t = m.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_right", o);
319
561
  n = t.x, r = t.y;
320
562
  }
321
563
  t.attr("transform", `translate(${n}, ${r})`);
322
564
  }
323
- }, "positionEdgeLabel"), oe = /* @__PURE__ */ e((e, t) => {
565
+ }, "positionEdgeLabel"), Z = .5, Q = /* @__PURE__ */ e((e, t) => Math.abs(e.x - t.x) < Z, "sharesColumn"), $ = /* @__PURE__ */ e((e, t) => Math.abs(e.y - t.y) < Z, "sharesRow"), Ze = /* @__PURE__ */ e((e, t) => Q(e, t) && $(e, t), "coincides");
566
+ function Qe(e, t, n) {
567
+ return Q(e, t) && !$(e, t) ? Q(n, t) : $(e, t) && !Q(e, t) ? $(n, t) : Q(n, t) || $(n, t);
568
+ }
569
+ e(Qe, "keepsArrivalAxis");
570
+ function $e(e, t, n) {
571
+ return Ze(e, t) ? {
572
+ heading: t,
573
+ from: n
574
+ } : {
575
+ heading: e,
576
+ from: t
577
+ };
578
+ }
579
+ e($e, "arrivalSegment");
580
+ function et({ heading: e, from: t }, n, r) {
581
+ return (e.x - t.x) * (r.x - n.x) + (e.y - t.y) * (r.y - n.y) < 0;
582
+ }
583
+ e(et, "runsAgainstHeading");
584
+ function tt({ heading: e, from: t }, n, r) {
585
+ return $(e, t) && !Q(e, t) ? {
586
+ x: r.x,
587
+ y: n.y
588
+ } : Q(e, t) && !$(e, t) ? {
589
+ x: n.x,
590
+ y: r.y
591
+ } : r;
592
+ }
593
+ e(tt, "snapToArrivalAxis");
594
+ function nt(e, t, n, r) {
595
+ if ((Q(e, t) || $(e, t)) && !Qe(e, t, r)) return e;
596
+ let i = $e(e, t, n);
597
+ return et(i, t, r) ? t : tt(i, t, r);
598
+ }
599
+ e(nt, "dockFinalPoint");
600
+ function rt(e) {
601
+ let t = Object.hasOwn(w, e) ? w[e] : 0;
602
+ return Number.isFinite(t) ? t : 0;
603
+ }
604
+ e(rt, "markerPullBack");
605
+ function it({ originalLast: e, lastInner: t, newLast: n, minLength: r }) {
606
+ let i = !Ze(e, t), a = Math.hypot(n.x - t.x, n.y - t.y);
607
+ return a >= Math.max(Z, r) ? n : i && a >= Z ? e : void 0;
608
+ }
609
+ e(it, "finalDockPoint");
610
+ var at = /* @__PURE__ */ e((e, t) => {
324
611
  if (!e?.isLabelEdge || !e?.id?.endsWith("-to-label") || !Array.isArray(t) || t.length !== 2) return t;
325
612
  let [n, r] = t, i = Math.abs(r.x - n.x), a = Math.abs(r.y - n.y);
326
613
  return i < .001 || a < .001 ? t : a >= i ? [
@@ -338,10 +625,10 @@ var V = /* @__PURE__ */ e((e, t) => {
338
625
  },
339
626
  r
340
627
  ];
341
- }, "orthogonalizeToLabelClippedPoints"), U = /* @__PURE__ */ e((e, t) => {
628
+ }, "orthogonalizeToLabelClippedPoints"), ot = /* @__PURE__ */ e((e, t) => {
342
629
  let n = e.x, r = e.y, i = Math.abs(t.x - n), a = Math.abs(t.y - r), o = e.width / 2, s = e.height / 2;
343
630
  return i >= o || a >= s;
344
- }, "outsideNode"), W = /* @__PURE__ */ e((e, n, r) => {
631
+ }, "outsideNode"), st = /* @__PURE__ */ e((e, n, r) => {
345
632
  t.debug(`intersection calc abc89:
346
633
  outsidePoint: ${JSON.stringify(n)}
347
634
  insidePoint : ${JSON.stringify(r)}
@@ -367,12 +654,12 @@ var V = /* @__PURE__ */ e((e, t) => {
367
654
  y: o
368
655
  };
369
656
  }
370
- }, "intersection"), G = /* @__PURE__ */ e((e, n) => {
657
+ }, "intersection"), ct = /* @__PURE__ */ e((e, n) => {
371
658
  t.warn("abc88 cutPathAtIntersect", e, n);
372
659
  let r = [], i = e[0], a = !1;
373
660
  return e.forEach((e) => {
374
- if (t.info("abc88 checking point", e, n), !U(n, e) && !a) {
375
- let o = W(n, i, e);
661
+ if (t.info("abc88 checking point", e, n), !ot(n, e) && !a) {
662
+ let o = st(n, i, e);
376
663
  t.debug("abc88 inside", e, i, o), t.debug("abc88 intersection", o, n);
377
664
  let s = !1;
378
665
  r.forEach((e) => {
@@ -381,7 +668,7 @@ var V = /* @__PURE__ */ e((e, t) => {
381
668
  } else t.warn("abc88 outside", e, i), i = e, a || r.push(e);
382
669
  }), t.debug("returning points", r), r;
383
670
  }, "cutPathAtIntersect");
384
- function K(e) {
671
+ function lt(e) {
385
672
  let t = [], n = [];
386
673
  for (let r = 1; r < e.length - 1; r++) {
387
674
  let i = e[r - 1], a = e[r], o = e[r + 1];
@@ -392,17 +679,17 @@ function K(e) {
392
679
  cornerPointPositions: n
393
680
  };
394
681
  }
395
- e(K, "extractCornerPoints");
396
- var q = /* @__PURE__ */ e(function(e, t, n) {
682
+ e(lt, "extractCornerPoints");
683
+ var ut = /* @__PURE__ */ e(function(e, t, n) {
397
684
  let r = t.x - e.x, i = t.y - e.y, a = n / Math.sqrt(r * r + i * i);
398
685
  return {
399
686
  x: t.x - a * r,
400
687
  y: t.y - a * i
401
688
  };
402
- }, "findAdjacentPoint"), se = /* @__PURE__ */ e(function(e) {
403
- let { cornerPointPositions: n } = K(e), r = [];
689
+ }, "findAdjacentPoint"), dt = /* @__PURE__ */ e(function(e) {
690
+ let { cornerPointPositions: n } = lt(e), r = [];
404
691
  for (let i = 0; i < e.length; i++) if (n.includes(i)) {
405
- let n = e[i - 1], a = e[i + 1], o = e[i], s = q(n, o, 5), c = q(a, o, 5), l = c.x - s.x, u = c.y - s.y;
692
+ let n = e[i - 1], a = e[i + 1], o = e[i], s = ut(n, o, 5), c = ut(a, o, 5), l = c.x - s.x, u = c.y - s.y;
406
693
  r.push(s);
407
694
  let d = Math.sqrt(2) * 2, f = {
408
695
  x: o.x,
@@ -417,136 +704,152 @@ var q = /* @__PURE__ */ e(function(e, t, n) {
417
704
  }) : t.debug("Corner point skipping fixing", Math.abs(a.x - n.x), Math.abs(a.y - n.y)), r.push(f, c);
418
705
  } else r.push(e[i]);
419
706
  return r;
420
- }, "fixCorners"), ce = /* @__PURE__ */ e((e, t, n) => {
707
+ }, "fixCorners"), ft = /* @__PURE__ */ e((e, t, n) => {
421
708
  let r = e - t - n, i = Math.floor(r / 4);
422
709
  return `0 ${t} ${Array(Number.isFinite(i) ? Math.max(0, i) : 0).fill("2 2").join(" ")} ${n}`;
423
- }, "generateDashArray"), J = /* @__PURE__ */ e(function(e, i, a, x, S, C, w, T = !1, E = void 0) {
424
- if (!w) throw Error(`insertEdge: missing diagramId for edge "${i.id}" \u2014 edge IDs require a diagram prefix for uniqueness`);
425
- let { handDrawnSeed: D, layout: k } = r(), A = E ?? k, j = i.points, M = !1, N = S;
426
- var P = C;
427
- let F = [];
428
- for (let e in i.cssCompiledStyles) ee(e) || F.push(i.cssCompiledStyles[e]);
429
- if (A === "swimlane") {
430
- if (!T && P.intersect && N.intersect && Array.isArray(j) && j.length >= 2) {
431
- if (j.length === 2) j = [N.intersect(j[0]), P.intersect(j[1])];
432
- else {
433
- let e = j.slice(1, -1), t = e[0], n = e[e.length - 1], r = .5, i = Math.abs(j[j.length - 1].x - n.x) < r && Math.abs(j[j.length - 1].y - n.y) < r, a = N.intersect(t), o = i ? n : P.intersect(n), s = Math.abs(o.x - n.x) < r && Math.abs(o.y - n.y) < r, c = Math.abs(a.x - t.x) < r && Math.abs(a.y - t.y) < r ? [] : [a], l = s ? [] : [o];
434
- j = [
710
+ }, "generateDashArray"), pt = /* @__PURE__ */ e(function(e, i, a, o, s, ie, y, b = !1, x = void 0) {
711
+ if (!y) throw Error(`insertEdge: missing diagramId for edge "${i.id}" \u2014 edge IDs require a diagram prefix for uniqueness`);
712
+ let { handDrawnSeed: se, layout: S } = r(), C = x ?? S, w = i.points, E = !1, D = s;
713
+ var O = ie;
714
+ let k = [];
715
+ for (let e in i.cssCompiledStyles) ae(e) || k.push(i.cssCompiledStyles[e]);
716
+ if (C === "swimlane") {
717
+ if (!b && O.intersect && D.intersect && Array.isArray(w) && w.length >= 2) {
718
+ if (w.length === 2) {
719
+ let [e, t] = w;
720
+ w = Q(e, t) || $(e, t) ? [D.intersect(e), O.intersect(t)] : [D.intersect(t), O.intersect(e)];
721
+ } else {
722
+ let e = w.slice(1, -1), t = e[0], n = e[e.length - 1], r = D.intersect(t), a = w[w.length - 1], o = O.intersect(n), s = it({
723
+ originalLast: a,
724
+ lastInner: n,
725
+ newLast: nt(a, n, e.at(-2) ?? w[0], o),
726
+ minLength: rt(i.arrowTypeEnd)
727
+ }), c = Math.abs(r.x - t.x) < Z && Math.abs(r.y - t.y) < Z ? [] : [r], l = s ? [s] : [];
728
+ w = [
435
729
  ...c,
436
730
  ...e,
437
731
  ...l
438
732
  ];
439
733
  }
440
734
  }
441
- j = oe(i, j);
442
- } else P.intersect && N.intersect && !T && (j = j.slice(1, i.points.length - 1), j.unshift(N.intersect(j[0])), j.push(P.intersect(j[j.length - 1])));
443
- let ae = btoa(JSON.stringify(j));
444
- i.toCluster && (t.info("to cluster abc88", a.get(i.toCluster)), j = G(i.points, a.get(i.toCluster).node), M = !0), i.fromCluster && (t.debug("from cluster abc88", a.get(i.fromCluster), JSON.stringify(j, null, 2)), j = G(j.reverse(), a.get(i.fromCluster).node).reverse(), M = !0);
445
- let I = j.filter((e) => !Number.isNaN(e.y)), L = ie(i.curve);
446
- L !== "rounded" && (I = se(I));
447
- let R = h;
448
- switch (L) {
735
+ w = at(i, w);
736
+ } else O.intersect && D.intersect && !b && (w = w.slice(1, i.points.length - 1), w.unshift(D.intersect(w[0])), w.push(O.intersect(w[w.length - 1])));
737
+ let A = btoa(JSON.stringify(w));
738
+ i.toCluster && (t.info("to cluster abc88", a.get(i.toCluster)), w = ct(i.points, a.get(i.toCluster).node), E = !0), i.fromCluster && (t.debug("from cluster abc88", a.get(i.fromCluster), JSON.stringify(w, null, 2)), w = ct(w.reverse(), a.get(i.fromCluster).node).reverse(), E = !0);
739
+ let j = w.filter((e) => !Number.isNaN(e.y)), M = Ge(i.curve);
740
+ M !== "rounded" && (j = dt(j));
741
+ let N = g;
742
+ switch (M) {
449
743
  case "linear":
450
- R = h;
744
+ N = g;
451
745
  break;
452
746
  case "basis":
453
- R = y;
747
+ N = v;
454
748
  break;
455
749
  case "cardinal":
456
- R = m;
750
+ N = ee;
457
751
  break;
458
752
  case "bumpX":
459
- R = g;
753
+ N = _;
460
754
  break;
461
755
  case "bumpY":
462
- R = v;
756
+ N = ne;
463
757
  break;
464
758
  case "catmullRom":
465
- R = o;
759
+ N = c;
466
760
  break;
467
761
  case "monotoneX":
468
- R = d;
762
+ N = p;
469
763
  break;
470
764
  case "monotoneY":
471
- R = c;
765
+ N = u;
472
766
  break;
473
767
  case "natural":
474
- R = l;
768
+ N = d;
475
769
  break;
476
770
  case "step":
477
- R = u;
771
+ N = f;
478
772
  break;
479
773
  case "stepAfter":
480
- R = _;
774
+ N = te;
481
775
  break;
482
776
  case "stepBefore":
483
- R = s;
777
+ N = l;
484
778
  break;
485
779
  case "rounded":
486
- R = h;
780
+ N = g;
487
781
  break;
488
- default: R = y;
782
+ default: N = v;
489
783
  }
490
- let { x: z, y: B } = ne(i), V = b().x(z).y(B).curve(R), H;
784
+ let { x: le, y: ue } = ce(i), P = re().x(le).y(ue).curve(N), F;
491
785
  switch (i.thickness) {
492
786
  case "normal":
493
- H = "edge-thickness-normal";
787
+ F = "edge-thickness-normal";
494
788
  break;
495
789
  case "thick":
496
- H = "edge-thickness-thick";
790
+ F = "edge-thickness-thick";
497
791
  break;
498
792
  case "invisible":
499
- H = "edge-thickness-invisible";
793
+ F = "edge-thickness-invisible";
500
794
  break;
501
- default: H = "edge-thickness-normal";
795
+ default: F = "edge-thickness-normal";
502
796
  }
503
797
  switch (i.pattern) {
504
798
  case "solid":
505
- H += " edge-pattern-solid";
799
+ F += " edge-pattern-solid";
506
800
  break;
507
801
  case "dotted":
508
- H += " edge-pattern-dotted";
802
+ F += " edge-pattern-dotted";
509
803
  break;
510
804
  case "dashed":
511
- H += " edge-pattern-dashed";
805
+ F += " edge-pattern-dashed";
512
806
  break;
513
- default: H += " edge-pattern-solid";
807
+ default: F += " edge-pattern-solid";
514
808
  }
515
- let U, W = L === "rounded" ? Y(Z(I, i), 5) : V(I), K = Array.isArray(i.style) ? i.style : [i.style], q = K.find((e) => e?.startsWith("stroke:")), J = "";
516
- i.animate && (J = "edge-animation-fast"), i.animation && (J = "edge-animation-" + i.animation);
517
- let X = !1;
809
+ let I, L = M === "rounded" ? mt(gt(j, i), 5) : P(j), R = Array.isArray(i.style) ? i.style : [i.style], z = R.find((e) => e?.startsWith("stroke:")), B = "";
810
+ i.animate && (B = "edge-animation-fast"), i.animation && (B = "edge-animation-" + i.animation);
811
+ let V = !1;
518
812
  if (i.look === "handDrawn") {
519
- let t = te.svg(e);
520
- Object.assign([], I);
521
- let r = t.path(W, {
813
+ let t = oe.svg(e);
814
+ Object.assign([], j);
815
+ let r = t.path(L, {
522
816
  roughness: .3,
523
- seed: D
817
+ seed: se
524
818
  });
525
- H += " transition", U = n(r).select("path").attr("id", `${w}-${i.id}`).attr("class", " " + H + (i.classes ? " " + i.classes : "") + (J ? " " + J : "")).attr("style", K ? K.reduce((e, t) => e + ";" + t, "") : "");
526
- let a = U.attr("d");
527
- U.attr("d", a), e.node().appendChild(U.node());
819
+ F += " transition", I = n(r).select("path").attr("id", `${y}-${i.id}`).attr("class", " " + F + (i.classes ? " " + i.classes : "") + (B ? " " + B : "")).attr("style", R ? R.reduce((e, t) => e + ";" + t, "") : "");
820
+ let a = I.attr("d");
821
+ I.attr("d", a), e.node().appendChild(I.node());
528
822
  } else {
529
- let t = F.join(";"), n = K ? K.reduce((e, t) => e + t + ";", "") : "", r = (t ? t + ";" + n + ";" : n) + ";" + (K ? K.reduce((e, t) => e + ";" + t, "") : "");
530
- U = e.append("path").attr("d", W).attr("id", `${w}-${i.id}`).attr("class", " " + H + (i.classes ? " " + i.classes : "") + (J ? " " + J : "")).attr("style", r), q = r.match(/stroke:([^;]+)/)?.[1], X = i.animate === !0 || !!i.animation || t.includes("animation");
531
- let a = U.node(), o = typeof a.getTotalLength == "function" ? a.getTotalLength() : 0, s = O[i.arrowTypeStart] || 0, c = O[i.arrowTypeEnd] || 0;
532
- if (i.look === "neo" && !X) {
533
- let e = `stroke-dasharray: ${i.pattern === "dotted" || i.pattern === "dashed" ? ce(o, s, c) : `0 ${s} ${o - s - c} ${c}`}; stroke-dashoffset: 0;`;
534
- U.attr("style", e + U.attr("style"));
823
+ let t = k.join(";"), n = R ? R.reduce((e, t) => e + t + ";", "") : "", r = (t ? t + ";" + n + ";" : n) + ";" + (R ? R.reduce((e, t) => e + ";" + t, "") : "");
824
+ I = e.append("path").attr("d", L).attr("id", `${y}-${i.id}`).attr("class", " " + F + (i.classes ? " " + i.classes : "") + (B ? " " + B : "")).attr("style", r), z = r.match(/stroke:([^;]+)/)?.[1], V = i.animate === !0 || !!i.animation || t.includes("animation");
825
+ let a = I.node(), o = typeof a.getTotalLength == "function" ? a.getTotalLength() : 0, s = T[i.arrowTypeStart] || 0, c = T[i.arrowTypeEnd] || 0;
826
+ if (i.look === "neo" && !V) {
827
+ let e = `stroke-dasharray: ${i.pattern === "dotted" || i.pattern === "dashed" ? ft(o, s, c) : `0 ${s} ${o - s - c} ${c}`}; stroke-dashoffset: 0;`;
828
+ I.attr("style", e + I.attr("style"));
535
829
  }
536
830
  }
537
- U.attr("data-edge", !0), U.attr("data-et", "edge"), U.attr("data-id", i.id), U.attr("data-points", ae), U.attr("data-look", p(i.look)), i.showPoints && I.forEach((t) => {
831
+ if (I.attr("data-edge", !0), I.attr("data-et", "edge"), I.attr("data-id", i.id), I.attr("data-points", A), I.attr("data-look", h(i.look)), i.step !== void 0) {
832
+ let { themeVariables: t } = r(), n = z ?? t?.lineColor;
833
+ Be(e, i, L, y, {
834
+ points: j,
835
+ pathNode: I.node(),
836
+ color: n,
837
+ textColors: [t?.background, t?.primaryTextColor]
838
+ });
839
+ }
840
+ i.showPoints && j.forEach((t) => {
538
841
  e.append("circle").style("stroke", "red").style("fill", "red").attr("r", 1).attr("cx", t.x).attr("cy", t.y);
539
842
  });
540
- let Q = "";
541
- (r().flowchart.arrowMarkerAbsolute || r().state.arrowMarkerAbsolute) && (Q = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, Q = Q.replace(/\(/g, "\\(").replace(/\)/g, "\\)")), t.info("arrowTypeStart", i.arrowTypeStart), t.info("arrowTypeEnd", i.arrowTypeEnd);
542
- let le = !X && i?.look === "neo";
543
- re(U, i, Q, w, x, le, q);
544
- let ue = Math.floor(j.length / 2), de = j[ue];
545
- f.isLabelCoordinateInPath(de, U.attr("d")) || (M = !0);
546
- let $ = {};
547
- return M && ($.updatedPath = j), $.originalPath = i.points, $;
843
+ let H = "";
844
+ (r().flowchart.arrowMarkerAbsolute || r().state.arrowMarkerAbsolute) && (H = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, H = H.replace(/\(/g, "\\(").replace(/\)/g, "\\)")), t.info("arrowTypeStart", i.arrowTypeStart), t.info("arrowTypeEnd", i.arrowTypeEnd);
845
+ let de = !V && i?.look === "neo";
846
+ Ve(I, i, H, y, o, de, z);
847
+ let fe = Math.floor(w.length / 2), pe = w[fe];
848
+ m.isLabelCoordinateInPath(pe, I.attr("d")) || (E = !0);
849
+ let U = {};
850
+ return E && (U.updatedPath = w), U.originalPath = i.points, U;
548
851
  }, "insertEdge");
549
- function Y(e, t) {
852
+ function mt(e, t) {
550
853
  if (e.length < 2) return "";
551
854
  let n = "", r = e.length, i = 1e-5;
552
855
  for (let a = 0; a < r; a++) {
@@ -559,19 +862,19 @@ function Y(e, t) {
559
862
  n += `L${o.x},${o.y}`;
560
863
  continue;
561
864
  }
562
- let f = e / u, p = r / u, m = a / d, h = l / d, g = f * m + p * h, _ = Math.acos(Math.max(-1, Math.min(1, g)));
563
- if (_ < i || Math.abs(Math.PI - _) < i) {
865
+ let f = e / u, p = r / u, m = a / d, h = l / d, ee = f * m + p * h, g = Math.acos(Math.max(-1, Math.min(1, ee)));
866
+ if (g < i || Math.abs(Math.PI - g) < i) {
564
867
  n += `L${o.x},${o.y}`;
565
868
  continue;
566
869
  }
567
- let v = Math.min(t / Math.sin(_ / 2), u / 2, d / 2), y = o.x - f * v, b = o.y - p * v, x = o.x + m * v, S = o.y + h * v;
568
- n += `L${y},${b}`, n += `Q${o.x},${o.y} ${x},${S}`;
870
+ let _ = Math.min(t / Math.sin(g / 2), u / 2, d / 2), te = o.x - f * _, ne = o.y - p * _, v = o.x + m * _, re = o.y + h * _;
871
+ n += `L${te},${ne}`, n += `Q${o.x},${o.y} ${v},${re}`;
569
872
  }
570
873
  }
571
874
  return n;
572
875
  }
573
- e(Y, "generateRoundedPath");
574
- function X(e, t) {
876
+ e(mt, "generateRoundedPath");
877
+ function ht(e, t) {
575
878
  if (!e || !t) return {
576
879
  angle: 0,
577
880
  deltaX: 0,
@@ -584,26 +887,26 @@ function X(e, t) {
584
887
  deltaY: r
585
888
  };
586
889
  }
587
- e(X, "calculateDeltaAndAngle");
588
- function Z(e, t) {
890
+ e(ht, "calculateDeltaAndAngle");
891
+ function gt(e, t) {
589
892
  let n = e.map((e) => ({ ...e }));
590
- if (e.length >= 2 && D[t.arrowTypeStart]) {
591
- let r = D[t.arrowTypeStart], i = e[0], a = e[1], { angle: o } = X(i, a), s = r * Math.cos(o), c = r * Math.sin(o);
893
+ if (e.length >= 2 && w[t.arrowTypeStart]) {
894
+ let r = w[t.arrowTypeStart], i = e[0], a = e[1], { angle: o } = ht(i, a), s = r * Math.cos(o), c = r * Math.sin(o);
592
895
  n[0].x = i.x + s, n[0].y = i.y + c;
593
896
  }
594
897
  let r = e.length;
595
- if (r >= 2 && D[t.arrowTypeEnd]) {
596
- let i = D[t.arrowTypeEnd], a = e[r - 1], o = e[r - 2], { angle: s } = X(o, a), c = i * Math.cos(s), l = i * Math.sin(s);
898
+ if (r >= 2 && w[t.arrowTypeEnd]) {
899
+ let i = w[t.arrowTypeEnd], a = e[r - 1], o = e[r - 2], { angle: s } = ht(o, a), c = i * Math.cos(s), l = i * Math.sin(s);
597
900
  n[r - 1].x = a.x - c, n[r - 1].y = a.y - l;
598
901
  }
599
902
  return n;
600
903
  }
601
- e(Z, "applyMarkerOffsetsToPoints");
602
- var Q = /* @__PURE__ */ e((e, t, n, r) => {
904
+ e(gt, "applyMarkerOffsetsToPoints");
905
+ var _t = /* @__PURE__ */ e((e, t, n, r) => {
603
906
  t.forEach((t) => {
604
- le[t](e, n, r);
907
+ vt[t](e, n, r);
605
908
  });
606
- }, "insertMarkers"), le = {
909
+ }, "insertMarkers"), vt = {
607
910
  extension: /* @__PURE__ */ e((e, n, r) => {
608
911
  t.trace("Making markers for ", r), e.append("defs").append("marker").attr("id", r + "_" + n + "-extensionStart").attr("class", "marker extension " + n).attr("refX", 18).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").attr("d", "M 1,7 L18,13 V 1 Z"), e.append("defs").append("marker").attr("id", r + "_" + n + "-extensionEnd").attr("class", "marker extension " + n).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").attr("d", "M 1,1 V 13 L18,7 Z"), e.append("marker").attr("id", r + "_" + n + "-extensionStart-margin").attr("class", "marker extension " + n).attr("refX", 18).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").attr("viewBox", "0 0 20 14").append("polygon").attr("points", "10,7 18,13 18,1").style("stroke-width", 2).style("stroke-dasharray", "0"), e.append("defs").append("marker").attr("id", r + "_" + n + "-extensionEnd-margin").attr("class", "marker extension " + n).attr("refX", 9).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").attr("viewBox", "0 0 20 14").append("polygon").attr("points", "10,1 10,13 18,7").style("stroke-width", 2).style("stroke-dasharray", "0");
609
912
  }, "extension"),
@@ -632,7 +935,7 @@ var Q = /* @__PURE__ */ e((e, t, n, r) => {
632
935
  e.append("defs").append("marker").attr("id", n + "_" + t + "-barbEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 14).attr("markerUnits", "userSpaceOnUse").attr("orient", "auto").append("path").attr("d", "M 19,7 L9,13 L14,7 L9,1 Z");
633
936
  }, "barb"),
634
937
  barbNeo: /* @__PURE__ */ e((e, t, n) => {
635
- let { themeVariables: r } = a(), { transitionColor: i } = r;
938
+ let { themeVariables: r } = s(), { transitionColor: i } = r;
636
939
  e.append("defs").append("marker").attr("id", n + "_" + t + "-barbEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 14).attr("markerUnits", "strokeWidth").attr("orient", "auto").append("path").attr("d", "M 19,7 L11,14 L13,7 L11,0 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-barbEnd-margin").attr("refX", 17).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 14).attr("markerUnits", "userSpaceOnUse").attr("orient", "auto").append("path").attr("d", "M 19,7 L11,14 L13,7 L11,0 Z").attr("fill", `${i}`);
637
940
  }, "barbNeo"),
638
941
  hierarchy: /* @__PURE__ */ e((e, t, n) => {
@@ -657,24 +960,24 @@ var Q = /* @__PURE__ */ e((e, t, n, r) => {
657
960
  i.append("circle").attr("fill", "white").attr("cx", 9).attr("cy", 18).attr("r", 6), i.append("path").attr("d", "M21,18 Q39,0 57,18 Q39,36 21,18");
658
961
  }, "zero_or_more"),
659
962
  only_one_neo: /* @__PURE__ */ e((e, t, n) => {
660
- let { themeVariables: r } = a(), { strokeWidth: i } = r;
963
+ let { themeVariables: r } = s(), { strokeWidth: i } = r;
661
964
  e.append("defs").append("marker").attr("id", n + "_" + t + "-onlyOneStart").attr("class", "marker onlyOne " + t).attr("refX", 0).attr("refY", 9).attr("markerWidth", 18).attr("markerHeight", 18).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").attr("d", "M9,0 L9,18 M15,0 L15,18").attr("stroke-width", `${i}`), e.append("defs").append("marker").attr("id", n + "_" + t + "-onlyOneEnd").attr("class", "marker onlyOne " + t).attr("refX", 18).attr("refY", 9).attr("markerWidth", 18).attr("markerHeight", 18).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").attr("d", "M3,0 L3,18 M9,0 L9,18").attr("stroke-width", `${i}`);
662
965
  }, "only_one_neo"),
663
966
  zero_or_one_neo: /* @__PURE__ */ e((e, t, n) => {
664
- let { themeVariables: r } = a(), { strokeWidth: i, mainBkg: o } = r, s = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrOneStart").attr("class", "marker zeroOrOne " + t).attr("refX", 0).attr("refY", 9).attr("markerWidth", 30).attr("markerHeight", 18).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse");
665
- s.append("circle").attr("fill", o ?? "white").attr("cx", 21).attr("cy", 9).attr("stroke-width", `${i}`).attr("r", 6), s.append("path").attr("d", "M9,0 L9,18").attr("stroke-width", `${i}`);
967
+ let { themeVariables: r } = s(), { strokeWidth: i, mainBkg: a } = r, o = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrOneStart").attr("class", "marker zeroOrOne " + t).attr("refX", 0).attr("refY", 9).attr("markerWidth", 30).attr("markerHeight", 18).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse");
968
+ o.append("circle").attr("fill", a ?? "white").attr("cx", 21).attr("cy", 9).attr("stroke-width", `${i}`).attr("r", 6), o.append("path").attr("d", "M9,0 L9,18").attr("stroke-width", `${i}`);
666
969
  let c = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrOneEnd").attr("class", "marker zeroOrOne " + t).attr("refX", 30).attr("refY", 9).attr("markerWidth", 30).attr("markerHeight", 18).attr("markerUnits", "userSpaceOnUse").attr("orient", "auto");
667
- c.append("circle").attr("fill", o ?? "white").attr("cx", 9).attr("cy", 9).attr("stroke-width", `${i}`).attr("r", 6), c.append("path").attr("d", "M21,0 L21,18").attr("stroke-width", `${i}`);
970
+ c.append("circle").attr("fill", a ?? "white").attr("cx", 9).attr("cy", 9).attr("stroke-width", `${i}`).attr("r", 6), c.append("path").attr("d", "M21,0 L21,18").attr("stroke-width", `${i}`);
668
971
  }, "zero_or_one_neo"),
669
972
  one_or_more_neo: /* @__PURE__ */ e((e, t, n) => {
670
- let { themeVariables: r } = a(), { strokeWidth: i } = r;
973
+ let { themeVariables: r } = s(), { strokeWidth: i } = r;
671
974
  e.append("defs").append("marker").attr("id", n + "_" + t + "-oneOrMoreStart").attr("class", "marker oneOrMore " + t).attr("refX", 18).attr("refY", 18).attr("markerWidth", 45).attr("markerHeight", 36).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").attr("d", "M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27").attr("stroke-width", `${i}`), e.append("defs").append("marker").attr("id", n + "_" + t + "-oneOrMoreEnd").attr("class", "marker oneOrMore " + t).attr("refX", 27).attr("refY", 18).attr("markerWidth", 45).attr("markerHeight", 36).attr("markerUnits", "userSpaceOnUse").attr("orient", "auto").append("path").attr("d", "M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18").attr("stroke-width", `${i}`);
672
975
  }, "one_or_more_neo"),
673
976
  zero_or_more_neo: /* @__PURE__ */ e((e, t, n) => {
674
- let { themeVariables: r } = a(), { strokeWidth: i, mainBkg: o } = r, s = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrMoreStart").attr("class", "marker zeroOrMore " + t).attr("refX", 18).attr("refY", 18).attr("markerWidth", 57).attr("markerHeight", 36).attr("markerUnits", "userSpaceOnUse").attr("orient", "auto");
675
- s.append("circle").attr("fill", o ?? "white").attr("cx", 45.5).attr("cy", 18).attr("r", 6).attr("stroke-width", `${i}`), s.append("path").attr("d", "M0,18 Q18,0 36,18 Q18,36 0,18").attr("stroke-width", `${i}`);
977
+ let { themeVariables: r } = s(), { strokeWidth: i, mainBkg: a } = r, o = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrMoreStart").attr("class", "marker zeroOrMore " + t).attr("refX", 18).attr("refY", 18).attr("markerWidth", 57).attr("markerHeight", 36).attr("markerUnits", "userSpaceOnUse").attr("orient", "auto");
978
+ o.append("circle").attr("fill", a ?? "white").attr("cx", 45.5).attr("cy", 18).attr("r", 6).attr("stroke-width", `${i}`), o.append("path").attr("d", "M0,18 Q18,0 36,18 Q18,36 0,18").attr("stroke-width", `${i}`);
676
979
  let c = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrMoreEnd").attr("class", "marker zeroOrMore " + t).attr("refX", 39).attr("refY", 18).attr("markerWidth", 57).attr("markerHeight", 36).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse");
677
- c.append("circle").attr("fill", o ?? "white").attr("cx", 11).attr("cy", 18).attr("r", 6).attr("stroke-width", `${i}`), c.append("path").attr("d", "M21,18 Q39,0 57,18 Q39,36 21,18").attr("stroke-width", `${i}`);
980
+ c.append("circle").attr("fill", a ?? "white").attr("cx", 11).attr("cy", 18).attr("r", 6).attr("stroke-width", `${i}`), c.append("path").attr("d", "M21,18 Q39,0 57,18 Q39,36 21,18").attr("stroke-width", `${i}`);
678
981
  }, "zero_or_more_neo"),
679
982
  requirement_arrow: /* @__PURE__ */ e((e, t, n) => {
680
983
  e.append("defs").append("marker").attr("id", n + "_" + t + "-requirement_arrowEnd").attr("refX", 20).attr("refY", 10).attr("markerWidth", 20).attr("markerHeight", 20).attr("orient", "auto").append("path").attr("d", "M0,0\n L20,10\n M20,10\n L0,20");
@@ -684,13 +987,19 @@ var Q = /* @__PURE__ */ e((e, t, n, r) => {
684
987
  r.append("circle").attr("cx", 10).attr("cy", 10).attr("r", 9).attr("fill", "none"), r.append("line").attr("x1", 1).attr("x2", 19).attr("y1", 10).attr("y2", 10), r.append("line").attr("y1", 1).attr("y2", 19).attr("x1", 10).attr("x2", 10);
685
988
  }, "requirement_contains"),
686
989
  requirement_arrow_neo: /* @__PURE__ */ e((e, t, n) => {
687
- let { themeVariables: r } = a(), { strokeWidth: i } = r;
990
+ let { themeVariables: r } = s(), { strokeWidth: i } = r;
688
991
  e.append("defs").append("marker").attr("id", n + "_" + t + "-requirement_arrowEnd").attr("refX", 20).attr("refY", 10).attr("markerWidth", 20).attr("markerHeight", 20).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").attr("stroke-width", `${i}`).attr("viewBox", "0 0 25 20").append("path").attr("d", "M0,0\n L20,10\n M20,10\n L0,20").attr("stroke-linejoin", "miter");
689
992
  }, "requirement_arrow_neo"),
690
993
  requirement_contains_neo: /* @__PURE__ */ e((e, t, n) => {
691
- let { themeVariables: r } = a(), { strokeWidth: i } = r, o = e.append("defs").append("marker").attr("id", n + "_" + t + "-requirement_containsStart").attr("refX", 0).attr("refY", 10).attr("markerWidth", 20).attr("markerHeight", 20).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("g");
692
- o.append("circle").attr("cx", 10).attr("cy", 10).attr("r", 9).attr("fill", "none"), o.append("line").attr("x1", 1).attr("x2", 19).attr("y1", 10).attr("y2", 10), o.append("line").attr("y1", 1).attr("y2", 19).attr("x1", 10).attr("x2", 10), o.selectAll("*").attr("stroke-width", `${i}`);
693
- }, "requirement_contains_neo")
694
- }, ue = Q;
994
+ let { themeVariables: r } = s(), { strokeWidth: i } = r, a = e.append("defs").append("marker").attr("id", n + "_" + t + "-requirement_containsStart").attr("refX", 0).attr("refY", 10).attr("markerWidth", 20).attr("markerHeight", 20).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("g");
995
+ a.append("circle").attr("cx", 10).attr("cy", 10).attr("r", 9).attr("fill", "none"), a.append("line").attr("x1", 1).attr("x2", 19).attr("y1", 10).attr("y2", 10), a.append("line").attr("y1", 1).attr("y2", 19).attr("x1", 10).attr("x2", 10), a.selectAll("*").attr("stroke-width", `${i}`);
996
+ }, "requirement_contains_neo"),
997
+ openArrow: /* @__PURE__ */ e((e, t, n) => {
998
+ e.append("marker").attr("id", n + "_" + t + "-openArrowEnd").attr("class", "marker openArrow " + t).attr("viewBox", "0 0 12 12").attr("refX", 11).attr("refY", 6).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 1 1 L 11 6 L 1 11").attr("class", "arrowMarkerPath").style("stroke-width", 1.4).style("stroke-linecap", "round").style("stroke-linejoin", "round").style("stroke-dasharray", "1,0").style("fill", "none"), e.append("marker").attr("id", n + "_" + t + "-openArrowStart").attr("class", "marker openArrow " + t).attr("viewBox", "0 0 12 12").attr("refX", 1).attr("refY", 6).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 11 1 L 1 6 L 11 11").attr("class", "arrowMarkerPath").style("stroke-width", 1.4).style("stroke-linecap", "round").style("stroke-linejoin", "round").style("stroke-dasharray", "1,0").style("fill", "none");
999
+ }, "openArrow"),
1000
+ hollowCircle: /* @__PURE__ */ e((e, t, n) => {
1001
+ e.append("marker").attr("id", n + "_" + t + "-hollowCircleStart").attr("class", "marker hollowCircle " + t).attr("viewBox", "0 0 10 10").attr("refX", 0).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 10).attr("markerHeight", 10).attr("orient", "auto").append("circle").attr("cx", 5).attr("cy", 5).attr("r", 3.6).attr("class", "arrowMarkerPath").style("stroke-width", 1.4).style("stroke-dasharray", "1,0").style("fill", "none"), e.append("marker").attr("id", n + "_" + t + "-hollowCircleEnd").attr("class", "marker hollowCircle " + t).attr("viewBox", "0 0 10 10").attr("refX", 10).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 10).attr("markerHeight", 10).attr("orient", "auto").append("circle").attr("cx", 5).attr("cy", 5).attr("r", 3.6).attr("class", "arrowMarkerPath").style("stroke-width", 1.4).style("stroke-dasharray", "1,0").style("fill", "none");
1002
+ }, "hollowCircle")
1003
+ }, yt = _t;
695
1004
  //#endregion
696
- export { R as a, ue as c, F as d, J as i, H as l, P as n, D as o, I as r, O as s, ae as t, V as u };
1005
+ export { pt as a, w as c, ze as d, Xe as f, S as h, qe as i, T as l, q as m, K as n, Je as o, Ye as p, k as r, A as s, Ke as t, yt as u };