@pi-outpost/embed 0.60.1 → 0.62.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 (153) hide show
  1. package/README.md +4 -0
  2. package/dist/{abnfDiagram-S7VZAUFO-BdOzCXh1.js → abnfDiagram-S7VZAUFO-BvdbTr4n.js} +2 -2
  3. package/dist/{abnfDiagram-S7VZAUFO-zyFnpqZ0.cjs → abnfDiagram-S7VZAUFO-C14iOswH.cjs} +1 -1
  4. package/dist/{architectureDiagram-YGSQEFNW-DiYOcBqo.js → architectureDiagram-YGSQEFNW-CPW5HJ_P.js} +20 -20
  5. package/dist/{architectureDiagram-YGSQEFNW-gEzRb5xY.cjs → architectureDiagram-YGSQEFNW-CfDEcnft.cjs} +3 -3
  6. package/dist/{blockDiagram-APKKGZFW-CIX-8mpK.js → blockDiagram-APKKGZFW-C4ig73DE.js} +5 -5
  7. package/dist/{blockDiagram-APKKGZFW-KL3nQT0s.cjs → blockDiagram-APKKGZFW-DLTDUF2F.cjs} +1 -1
  8. package/dist/{c4Diagram-KJ2TOQU5-BS_M90FN.js → c4Diagram-KJ2TOQU5-BViiS4eZ.js} +4 -4
  9. package/dist/{c4Diagram-KJ2TOQU5-D-dCJWvI.cjs → c4Diagram-KJ2TOQU5-BZrZGJnq.cjs} +1 -1
  10. package/dist/chunk-6MUBBAK2-Do5Y2VaL.js +631 -0
  11. package/dist/chunk-6MUBBAK2-fxSdrddJ.cjs +2 -0
  12. package/dist/{chunk-AXFCVDMN-DrVQa3gP.js → chunk-AXFCVDMN-BTcT9L5T.js} +196 -196
  13. package/dist/{chunk-AXFCVDMN-B6dhmE32.cjs → chunk-AXFCVDMN-DSN0_Pz7.cjs} +7 -7
  14. package/dist/{chunk-DQASFODM-DAaU7yoa.js → chunk-DQASFODM-BjATojAo.js} +30 -30
  15. package/dist/chunk-DQASFODM-GtaZ5zZF.cjs +10 -0
  16. package/dist/{chunk-HFQBQIA3-lOxrhpos.cjs → chunk-HFQBQIA3-Bt4zc3D1.cjs} +1 -1
  17. package/dist/{chunk-HFQBQIA3-DqHSeXIz.js → chunk-HFQBQIA3-l7lNC9FO.js} +1 -1
  18. package/dist/{chunk-KQLB2F66-C7twW9LJ.js → chunk-KQLB2F66-P-DwEW1U.js} +5 -5
  19. package/dist/{chunk-KQLB2F66-Ec2IAtUR.cjs → chunk-KQLB2F66-xBZn8cMv.cjs} +1 -1
  20. package/dist/{chunk-KS47KZWR-OD3AMBe8.js → chunk-KS47KZWR-Ca0eP7K6.js} +1 -1
  21. package/dist/{chunk-KS47KZWR-C7Yv0kfF.cjs → chunk-KS47KZWR-DLYUwvq1.cjs} +1 -1
  22. package/dist/{chunk-LEVMRMFU-BFGXlIAt.cjs → chunk-LEVMRMFU-8QpYqPF4.cjs} +1 -1
  23. package/dist/{chunk-LEVMRMFU-NLMudZfn.js → chunk-LEVMRMFU-DXj_Ks_M.js} +2 -2
  24. package/dist/{chunk-M57EVK23-BSZ7OEGY.cjs → chunk-M57EVK23-Cvl56jvK.cjs} +1 -1
  25. package/dist/{chunk-M57EVK23-C8-Jp43x.js → chunk-M57EVK23-D_qW99As.js} +3 -3
  26. package/dist/{chunk-OY52VR5R-B7NRk2-S.js → chunk-OY52VR5R-DAhIWmSX.js} +1 -1
  27. package/dist/{chunk-OY52VR5R-CvyV3pJF.cjs → chunk-OY52VR5R-DoFojbud.cjs} +1 -1
  28. package/dist/{chunk-QB3YPZ4I-DaIXN7QF.cjs → chunk-QB3YPZ4I-CcobelQp.cjs} +1 -1
  29. package/dist/{chunk-QB3YPZ4I-DPQ26dC9.js → chunk-QB3YPZ4I-DZ4KU0AI.js} +5 -5
  30. package/dist/{chunk-STOXU5M4-0WKKmqbF.js → chunk-STOXU5M4-CcGFpnKt.js} +7 -7
  31. package/dist/{chunk-STOXU5M4-CmoaBap6.cjs → chunk-STOXU5M4-_pvE8f8d.cjs} +2 -2
  32. package/dist/{classDiagram-v2-L25IHNXF-CAts0vNW.js → classDiagram-v2-L25IHNXF-CoK-3RrH.js} +8 -8
  33. package/dist/{classDiagram-v2-L25IHNXF-CAbdJ2_W.cjs → classDiagram-v2-L25IHNXF-DUh5AzbW.cjs} +1 -1
  34. package/dist/{conversationExport-DaPkz-Eh.cjs → conversationExport-DXxmgLoF.cjs} +7 -7
  35. package/dist/{conversationExport-C761zW6H.js → conversationExport-jRLUX0kH.js} +217 -205
  36. package/dist/{conversationHistory-DhOtJoSk.js → conversationHistory-3pDBlkZZ.js} +103 -11
  37. package/dist/{conversationHistory-V6AR3Ga4.cjs → conversationHistory-C6PqGsO9.cjs} +5 -5
  38. package/dist/{cynefinDiagram-L36ESFBY-CrsJmb7x.cjs → cynefinDiagram-L36ESFBY-BLUfdwhj.cjs} +1 -1
  39. package/dist/{cynefinDiagram-L36ESFBY-ByHpHKCc.js → cynefinDiagram-L36ESFBY-COLv504g.js} +7 -7
  40. package/dist/{dagre-SPEB5RXH-C01_UMxx.js → dagre-SPEB5RXH-CohPsDHQ.js} +7 -7
  41. package/dist/{dagre-SPEB5RXH-ExCiSqVu.cjs → dagre-SPEB5RXH-DF8bZfUb.cjs} +1 -1
  42. package/dist/{diagram-3B7GL73J-CRNoSH2i.cjs → diagram-3B7GL73J-CFwrYkyI.cjs} +1 -1
  43. package/dist/{diagram-3B7GL73J-D7i6eGGQ.js → diagram-3B7GL73J-w28Iaq_1.js} +8 -8
  44. package/dist/{diagram-DNEMPZML-CkhkOJo2.cjs → diagram-DNEMPZML-CezYrBHl.cjs} +1 -1
  45. package/dist/{diagram-DNEMPZML-Di5RqN_h.js → diagram-DNEMPZML-HpZqPF1t.js} +6 -6
  46. package/dist/{diagram-L3MUGCDN-BtQkAzOD.js → diagram-L3MUGCDN-Bg9oF9vU.js} +7 -7
  47. package/dist/{diagram-L3MUGCDN-B1vXsDB1.cjs → diagram-L3MUGCDN-FmKU8C82.cjs} +2 -2
  48. package/dist/{diagram-LA4NIPWU-DST6DvSP.cjs → diagram-LA4NIPWU-B4zPp12a.cjs} +2 -2
  49. package/dist/{diagram-LA4NIPWU-Badv-tyU.js → diagram-LA4NIPWU-D5S10Z1M.js} +16 -16
  50. package/dist/{diagram-MHCOC4E2-DmA9ezb9.js → diagram-MHCOC4E2-BMg2Maje.js} +5 -5
  51. package/dist/{diagram-MHCOC4E2-BafwTqOD.cjs → diagram-MHCOC4E2-DcF56W3-.cjs} +2 -2
  52. package/dist/{diagram-XPFHEONP-CZHt29x-.js → diagram-XPFHEONP-COT08Qlw.js} +9 -9
  53. package/dist/{diagram-XPFHEONP-DCm8Rjp8.cjs → diagram-XPFHEONP-GLEfHAAK.cjs} +5 -5
  54. package/dist/dist-BDWJ0PuE.js +1007 -0
  55. package/dist/dist-CeGGIzgU.cjs +1 -0
  56. package/dist/{docxExport-BlPADe6b.cjs → docxExport-D-T3fTj7.cjs} +2 -2
  57. package/dist/{docxExport-Bwi2TlqP.js → docxExport-diU6sv-G.js} +3 -3
  58. package/dist/download-C9gupL_X.js +45 -0
  59. package/dist/download-CVl_k6EM.cjs +1 -0
  60. package/dist/{ebnfDiagram-UZSYDL2S-DVGQga8g.js → ebnfDiagram-UZSYDL2S-Cu5-1sQW.js} +2 -2
  61. package/dist/{ebnfDiagram-UZSYDL2S-fO0plY-B.cjs → ebnfDiagram-UZSYDL2S-ftYbml6-.cjs} +1 -1
  62. package/dist/{elk-XV6XMXQE-CioXUob9.cjs → elk-XV6XMXQE-32eNFZGY.cjs} +2 -2
  63. package/dist/{elk-XV6XMXQE-BkH0WNCd.js → elk-XV6XMXQE-BoimJY8z.js} +9 -8
  64. package/dist/{erDiagram-EYBAPDEH-CUgDxVam.cjs → erDiagram-EYBAPDEH-BCiRLs1y.cjs} +1 -1
  65. package/dist/{erDiagram-EYBAPDEH-Byy0RKKe.js → erDiagram-EYBAPDEH-BxyIjrYb.js} +7 -7
  66. package/dist/flowDiagram-MALGAFMO-BwqIeP0j.js +15 -0
  67. package/dist/flowDiagram-MALGAFMO-DkxE7jK-.cjs +1 -0
  68. package/dist/ganttDiagram-23REXITY-CSCN0suz.cjs +292 -0
  69. package/dist/{ganttDiagram-23REXITY-DAs5LGLL.js → ganttDiagram-23REXITY-uW1Fo-_u.js} +467 -489
  70. package/dist/{gitGraphDiagram-STJD7YCW-B3zcpUUP.cjs → gitGraphDiagram-STJD7YCW-DsKvmxrY.cjs} +3 -3
  71. package/dist/{gitGraphDiagram-STJD7YCW-BVa0DHTU.js → gitGraphDiagram-STJD7YCW-j7-SImA3.js} +57 -57
  72. package/dist/{infoDiagram-KBXO4MBG-DRQkxKbg.cjs → infoDiagram-KBXO4MBG-CYMQGNUj.cjs} +1 -1
  73. package/dist/{infoDiagram-KBXO4MBG-BW7IcSQr.js → infoDiagram-KBXO4MBG-DE6zWbEk.js} +1 -1
  74. package/dist/init-DP9k4ltr.js +151 -0
  75. package/dist/init-UgQs1rm8.cjs +1 -0
  76. package/dist/{ishikawaDiagram-M35NCXHK-DBokYlS8.cjs → ishikawaDiagram-M35NCXHK-DbHbBLzt.cjs} +1 -1
  77. package/dist/{ishikawaDiagram-M35NCXHK-BiLoyI1l.js → ishikawaDiagram-M35NCXHK-zvWEWMyM.js} +2 -2
  78. package/dist/{journeyDiagram-OPLOXDXO-DsyubZVY.js → journeyDiagram-OPLOXDXO-Ckjy-e7g.js} +2 -2
  79. package/dist/{journeyDiagram-OPLOXDXO-CgabMAC2.cjs → journeyDiagram-OPLOXDXO-Df3Isppt.cjs} +2 -2
  80. package/dist/{kanban-definition-BZKZHSQY-DU8sOWQd.js → kanban-definition-BZKZHSQY-BmePUr-s.js} +6 -6
  81. package/dist/{kanban-definition-BZKZHSQY-CLi3J9cI.cjs → kanban-definition-BZKZHSQY-C0592yvk.cjs} +1 -1
  82. package/dist/linear-DgbjLlQ3.cjs +1 -0
  83. package/dist/linear-uoBSwo4a.js +198 -0
  84. package/dist/{loadReferencedImage-D47xCpa7.cjs → loadReferencedImage-N3Qidv7i.cjs} +1 -1
  85. package/dist/{loadReferencedImage-VNYxXIzB.js → loadReferencedImage-u2es0OEX.js} +1 -1
  86. package/dist/{mermaid.core-DPCy8dJO.js → mermaid.core-BlYpILf7.js} +65 -65
  87. package/dist/{mermaid.core-BL4WDqAH.cjs → mermaid.core-uCBIzEBU.cjs} +7 -7
  88. package/dist/{mermaidToImage-CViP9wx2.js → mermaidToImage-CBa4nUvP.js} +1 -1
  89. package/dist/{mermaidToImage-B7I6iJ9s.cjs → mermaidToImage-Gx6dNGEn.cjs} +1 -1
  90. package/dist/{mindmap-definition-I2QAS2VK-GT8_r7or.cjs → mindmap-definition-I2QAS2VK-CRXX7-9C.cjs} +1 -1
  91. package/dist/{mindmap-definition-I2QAS2VK-C2KpoDqG.js → mindmap-definition-I2QAS2VK-DgJirDRS.js} +7 -7
  92. package/dist/ordinal-CeUiYJ7_.cjs +1 -0
  93. package/dist/ordinal-DFWF7eBM.js +28 -0
  94. package/dist/{pegDiagram-FD4XPPHP-D0OZoETj.cjs → pegDiagram-FD4XPPHP-DFmA0OWh.cjs} +1 -1
  95. package/dist/{pegDiagram-FD4XPPHP-CSA4sB83.js → pegDiagram-FD4XPPHP-DpYyVjjQ.js} +2 -2
  96. package/dist/pi-outpost-embed.cjs +44 -44
  97. package/dist/pi-outpost-embed.js +5049 -4128
  98. package/dist/pieDiagram-J4AKIIQI-Cz-UbIk9.cjs +39 -0
  99. package/dist/pieDiagram-J4AKIIQI-DuqHiYUq.js +155 -0
  100. package/dist/{quadrantDiagram-XTYBLID2-BjaZuA3m.js → quadrantDiagram-XTYBLID2-B94UoyXc.js} +1 -1
  101. package/dist/{quadrantDiagram-XTYBLID2-CfdtTmYm.cjs → quadrantDiagram-XTYBLID2-BCN9RHwV.cjs} +1 -1
  102. package/dist/{railroadDiagram-MRQ6NCDL-DDOA_8gY.cjs → railroadDiagram-MRQ6NCDL-BlrwhMUX.cjs} +1 -1
  103. package/dist/{railroadDiagram-MRQ6NCDL-DgAKQKiD.js → railroadDiagram-MRQ6NCDL-Br7PQgSm.js} +2 -2
  104. package/dist/{requirementDiagram-Y7LWUY3S-Bhlk2ueA.js → requirementDiagram-Y7LWUY3S-CT4WIq10.js} +7 -7
  105. package/dist/{requirementDiagram-Y7LWUY3S-nSr_pknl.cjs → requirementDiagram-Y7LWUY3S-CzR9zsNk.cjs} +1 -1
  106. package/dist/{sankeyDiagram-WGJFYUXA-x6J896b3.cjs → sankeyDiagram-WGJFYUXA-D8LLSvqn.cjs} +1 -1
  107. package/dist/{sankeyDiagram-WGJFYUXA-DUYWd4HF.js → sankeyDiagram-WGJFYUXA-DiEth1kw.js} +1 -1
  108. package/dist/{sequenceDiagram-5NDRBG5M-BFgcr8MT.cjs → sequenceDiagram-5NDRBG5M-BATWsrlf.cjs} +1 -1
  109. package/dist/{sequenceDiagram-5NDRBG5M-D1YS8Amk.js → sequenceDiagram-5NDRBG5M-DJ1ruzP_.js} +4 -4
  110. package/dist/{stateDiagram-v2-FJ4FJNEA-6j2vDdvl.js → stateDiagram-v2-FJ4FJNEA-CtEFZimW.js} +8 -8
  111. package/dist/{stateDiagram-v2-FJ4FJNEA-DOTmLAY2.cjs → stateDiagram-v2-FJ4FJNEA-DS0IS9Xt.cjs} +1 -1
  112. package/dist/{swimlanes-UMQ2AFYF-CNb1NF60.js → swimlanes-UMQ2AFYF-B9sFO11Y.js} +8 -8
  113. package/dist/{swimlanes-UMQ2AFYF-BQLQzNLz.cjs → swimlanes-UMQ2AFYF-CNdzpvk7.cjs} +1 -1
  114. package/dist/{swimlanesDiagram-OMPLPG4O-BOl138lS.js → swimlanesDiagram-OMPLPG4O-CEjeo6Pa.js} +9 -9
  115. package/dist/swimlanesDiagram-OMPLPG4O-F8fhW_eR.cjs +8 -0
  116. package/dist/{timeline-definition-SEUHKTQE-B_909Amn.js → timeline-definition-SEUHKTQE-BiPtPmVz.js} +3 -3
  117. package/dist/{timeline-definition-SEUHKTQE-Du5-RSsU.cjs → timeline-definition-SEUHKTQE-CHvbMdoq.cjs} +2 -2
  118. package/dist/{usecaseDiagram-AFA6YXN4-BUs_YsqB.cjs → usecaseDiagram-AFA6YXN4-B_KoFCdb.cjs} +1 -1
  119. package/dist/{usecaseDiagram-AFA6YXN4-CiVGRP5X.js → usecaseDiagram-AFA6YXN4-VzWSjfFU.js} +7 -7
  120. package/dist/{vennDiagram-NNMJR3RB-CKxaec4G.cjs → vennDiagram-NNMJR3RB-BRWZo29n.cjs} +1 -1
  121. package/dist/{vennDiagram-NNMJR3RB-l3A_FZxZ.js → vennDiagram-NNMJR3RB-D5u2Njla.js} +2 -2
  122. package/dist/{wardleyDiagram-S7YFUSEH-Ctqri3T4.cjs → wardleyDiagram-S7YFUSEH-CSq-zmI3.cjs} +2 -2
  123. package/dist/{wardleyDiagram-S7YFUSEH-BMQf5dl9.js → wardleyDiagram-S7YFUSEH-VNmN8A6j.js} +5 -5
  124. package/dist/{xychartDiagram-GGNKY7IX-CuFU4ynf.js → xychartDiagram-GGNKY7IX-D-eT4Gjt.js} +18 -25
  125. package/dist/{xychartDiagram-GGNKY7IX-BUma86Wh.cjs → xychartDiagram-GGNKY7IX-D4bccPOk.cjs} +3 -3
  126. package/package.json +1 -1
  127. package/dist/arc-37kcMiGl.js +0 -82
  128. package/dist/arc-C7P0rHQr.cjs +0 -1
  129. package/dist/array-CApNbSU9.js +0 -6
  130. package/dist/array-DZSRzHA_.cjs +0 -1
  131. package/dist/chunk-6MUBBAK2-BTabKnTR.cjs +0 -2
  132. package/dist/chunk-6MUBBAK2-DlUTxzYh.js +0 -1334
  133. package/dist/chunk-DQASFODM-BBkQ8gE7.cjs +0 -10
  134. package/dist/dist-BB5r6V4R.cjs +0 -1
  135. package/dist/dist-CZhfI1u7.js +0 -59
  136. package/dist/download-DVJ5QY85.js +0 -7
  137. package/dist/download-U7JEZ6c9.cjs +0 -1
  138. package/dist/flowDiagram-MALGAFMO-D2e4rl0I.js +0 -15
  139. package/dist/flowDiagram-MALGAFMO-ZfeGO5tQ.cjs +0 -1
  140. package/dist/ganttDiagram-23REXITY-D82ogzPM.cjs +0 -292
  141. package/dist/init-BJdqMO10.cjs +0 -1
  142. package/dist/init-CuXVI8k2.js +0 -13
  143. package/dist/line-Bf0B129l.cjs +0 -1
  144. package/dist/line-DRq00lCg.js +0 -34
  145. package/dist/linear-Bh2vuvAF.cjs +0 -1
  146. package/dist/linear-CxE0kir0.js +0 -287
  147. package/dist/ordinal-Bm_chml2.cjs +0 -1
  148. package/dist/ordinal-D3SPD7Kk.js +0 -65
  149. package/dist/path-DIS6ck99.cjs +0 -1
  150. package/dist/path-PGqhG0Rz.js +0 -84
  151. package/dist/pieDiagram-J4AKIIQI-CNLlH6kK.js +0 -203
  152. package/dist/pieDiagram-J4AKIIQI-O870G6iX.cjs +0 -39
  153. package/dist/swimlanesDiagram-OMPLPG4O-BNDsO6gw.cjs +0 -8
@@ -1,1334 +0,0 @@
1
- import { n as e } from "./chunk-Y2CYZVJY-CwsV_8W4.js";
2
- import { m as t, p as n } from "./src-65Lfw03T.js";
3
- import { R as r, h as i, p as a, r as o, s } from "./chunk-BG4553SI-j_gQs8M_.js";
4
- import { t as c } from "./dist-CZhfI1u7.js";
5
- //#region ../node_modules/d3-shape/src/curve/linear.js
6
- function l(e) {
7
- this._context = e;
8
- }
9
- l.prototype = {
10
- areaStart: function() {
11
- this._line = 0;
12
- },
13
- areaEnd: function() {
14
- this._line = NaN;
15
- },
16
- lineStart: function() {
17
- this._point = 0;
18
- },
19
- lineEnd: function() {
20
- (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
21
- },
22
- point: function(e, t) {
23
- switch (e = +e, t = +t, this._point) {
24
- case 0:
25
- this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
26
- break;
27
- case 1: this._point = 2;
28
- default: this._context.lineTo(e, t);
29
- }
30
- }
31
- };
32
- function u(e) {
33
- return new l(e);
34
- }
35
- //#endregion
36
- //#region ../node_modules/d3-shape/src/curve/bump.js
37
- var d = class {
38
- constructor(e, t) {
39
- this._context = e, this._x = t;
40
- }
41
- areaStart() {
42
- this._line = 0;
43
- }
44
- areaEnd() {
45
- this._line = NaN;
46
- }
47
- lineStart() {
48
- this._point = 0;
49
- }
50
- lineEnd() {
51
- (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
52
- }
53
- point(e, t) {
54
- switch (e = +e, t = +t, this._point) {
55
- case 0:
56
- this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
57
- break;
58
- case 1: this._point = 2;
59
- default: this._x ? this._context.bezierCurveTo(this._x0 = (this._x0 + e) / 2, this._y0, this._x0, t, e, t) : this._context.bezierCurveTo(this._x0, this._y0 = (this._y0 + t) / 2, e, this._y0, e, t);
60
- }
61
- this._x0 = e, this._y0 = t;
62
- }
63
- };
64
- function f(e) {
65
- return new d(e, !0);
66
- }
67
- function ee(e) {
68
- return new d(e, !1);
69
- }
70
- //#endregion
71
- //#region ../node_modules/d3-shape/src/noop.js
72
- function p() {}
73
- //#endregion
74
- //#region ../node_modules/d3-shape/src/curve/basis.js
75
- function m(e, t, n) {
76
- e._context.bezierCurveTo((2 * e._x0 + e._x1) / 3, (2 * e._y0 + e._y1) / 3, (e._x0 + 2 * e._x1) / 3, (e._y0 + 2 * e._y1) / 3, (e._x0 + 4 * e._x1 + t) / 6, (e._y0 + 4 * e._y1 + n) / 6);
77
- }
78
- function h(e) {
79
- this._context = e;
80
- }
81
- h.prototype = {
82
- areaStart: function() {
83
- this._line = 0;
84
- },
85
- areaEnd: function() {
86
- this._line = NaN;
87
- },
88
- lineStart: function() {
89
- this._x0 = this._x1 = this._y0 = this._y1 = NaN, this._point = 0;
90
- },
91
- lineEnd: function() {
92
- switch (this._point) {
93
- case 3: m(this, this._x1, this._y1);
94
- case 2: this._context.lineTo(this._x1, this._y1);
95
- }
96
- (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
97
- },
98
- point: function(e, t) {
99
- switch (e = +e, t = +t, this._point) {
100
- case 0:
101
- this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
102
- break;
103
- case 1:
104
- this._point = 2;
105
- break;
106
- case 2: this._point = 3, this._context.lineTo((5 * this._x0 + this._x1) / 6, (5 * this._y0 + this._y1) / 6);
107
- default: m(this, e, t);
108
- }
109
- this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
110
- }
111
- };
112
- function te(e) {
113
- return new h(e);
114
- }
115
- //#endregion
116
- //#region ../node_modules/d3-shape/src/curve/basisClosed.js
117
- function ne(e) {
118
- this._context = e;
119
- }
120
- ne.prototype = {
121
- areaStart: p,
122
- areaEnd: p,
123
- lineStart: function() {
124
- this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = NaN, this._point = 0;
125
- },
126
- lineEnd: function() {
127
- switch (this._point) {
128
- case 1:
129
- this._context.moveTo(this._x2, this._y2), this._context.closePath();
130
- break;
131
- case 2:
132
- this._context.moveTo((this._x2 + 2 * this._x3) / 3, (this._y2 + 2 * this._y3) / 3), this._context.lineTo((this._x3 + 2 * this._x2) / 3, (this._y3 + 2 * this._y2) / 3), this._context.closePath();
133
- break;
134
- case 3: this.point(this._x2, this._y2), this.point(this._x3, this._y3), this.point(this._x4, this._y4);
135
- }
136
- },
137
- point: function(e, t) {
138
- switch (e = +e, t = +t, this._point) {
139
- case 0:
140
- this._point = 1, this._x2 = e, this._y2 = t;
141
- break;
142
- case 1:
143
- this._point = 2, this._x3 = e, this._y3 = t;
144
- break;
145
- case 2:
146
- this._point = 3, this._x4 = e, this._y4 = t, this._context.moveTo((this._x0 + 4 * this._x1 + e) / 6, (this._y0 + 4 * this._y1 + t) / 6);
147
- break;
148
- default: m(this, e, t);
149
- }
150
- this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
151
- }
152
- };
153
- function re(e) {
154
- return new ne(e);
155
- }
156
- //#endregion
157
- //#region ../node_modules/d3-shape/src/curve/basisOpen.js
158
- function ie(e) {
159
- this._context = e;
160
- }
161
- ie.prototype = {
162
- areaStart: function() {
163
- this._line = 0;
164
- },
165
- areaEnd: function() {
166
- this._line = NaN;
167
- },
168
- lineStart: function() {
169
- this._x0 = this._x1 = this._y0 = this._y1 = NaN, this._point = 0;
170
- },
171
- lineEnd: function() {
172
- (this._line || this._line !== 0 && this._point === 3) && this._context.closePath(), this._line = 1 - this._line;
173
- },
174
- point: function(e, t) {
175
- switch (e = +e, t = +t, this._point) {
176
- case 0:
177
- this._point = 1;
178
- break;
179
- case 1:
180
- this._point = 2;
181
- break;
182
- case 2:
183
- this._point = 3;
184
- var n = (this._x0 + 4 * this._x1 + e) / 6, r = (this._y0 + 4 * this._y1 + t) / 6;
185
- this._line ? this._context.lineTo(n, r) : this._context.moveTo(n, r);
186
- break;
187
- case 3: this._point = 4;
188
- default: m(this, e, t);
189
- }
190
- this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
191
- }
192
- };
193
- function ae(e) {
194
- return new ie(e);
195
- }
196
- //#endregion
197
- //#region ../node_modules/d3-shape/src/curve/bundle.js
198
- function oe(e, t) {
199
- this._basis = new h(e), this._beta = t;
200
- }
201
- oe.prototype = {
202
- lineStart: function() {
203
- this._x = [], this._y = [], this._basis.lineStart();
204
- },
205
- lineEnd: function() {
206
- var e = this._x, t = this._y, n = e.length - 1;
207
- if (n > 0) for (var r = e[0], i = t[0], a = e[n] - r, o = t[n] - i, s = -1, c; ++s <= n;) c = s / n, this._basis.point(this._beta * e[s] + (1 - this._beta) * (r + c * a), this._beta * t[s] + (1 - this._beta) * (i + c * o));
208
- this._x = this._y = null, this._basis.lineEnd();
209
- },
210
- point: function(e, t) {
211
- this._x.push(+e), this._y.push(+t);
212
- }
213
- };
214
- var se = (function e(t) {
215
- function n(e) {
216
- return t === 1 ? new h(e) : new oe(e, t);
217
- }
218
- return n.beta = function(t) {
219
- return e(+t);
220
- }, n;
221
- })(.85);
222
- //#endregion
223
- //#region ../node_modules/d3-shape/src/curve/cardinal.js
224
- function g(e, t, n) {
225
- e._context.bezierCurveTo(e._x1 + e._k * (e._x2 - e._x0), e._y1 + e._k * (e._y2 - e._y0), e._x2 + e._k * (e._x1 - t), e._y2 + e._k * (e._y1 - n), e._x2, e._y2);
226
- }
227
- function _(e, t) {
228
- this._context = e, this._k = (1 - t) / 6;
229
- }
230
- _.prototype = {
231
- areaStart: function() {
232
- this._line = 0;
233
- },
234
- areaEnd: function() {
235
- this._line = NaN;
236
- },
237
- lineStart: function() {
238
- this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._point = 0;
239
- },
240
- lineEnd: function() {
241
- switch (this._point) {
242
- case 2:
243
- this._context.lineTo(this._x2, this._y2);
244
- break;
245
- case 3: g(this, this._x1, this._y1);
246
- }
247
- (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
248
- },
249
- point: function(e, t) {
250
- switch (e = +e, t = +t, this._point) {
251
- case 0:
252
- this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
253
- break;
254
- case 1:
255
- this._point = 2, this._x1 = e, this._y1 = t;
256
- break;
257
- case 2: this._point = 3;
258
- default: g(this, e, t);
259
- }
260
- this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
261
- }
262
- };
263
- var ce = (function e(t) {
264
- function n(e) {
265
- return new _(e, t);
266
- }
267
- return n.tension = function(t) {
268
- return e(+t);
269
- }, n;
270
- })(0);
271
- //#endregion
272
- //#region ../node_modules/d3-shape/src/curve/cardinalClosed.js
273
- function v(e, t) {
274
- this._context = e, this._k = (1 - t) / 6;
275
- }
276
- v.prototype = {
277
- areaStart: p,
278
- areaEnd: p,
279
- lineStart: function() {
280
- this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN, this._point = 0;
281
- },
282
- lineEnd: function() {
283
- switch (this._point) {
284
- case 1:
285
- this._context.moveTo(this._x3, this._y3), this._context.closePath();
286
- break;
287
- case 2:
288
- this._context.lineTo(this._x3, this._y3), this._context.closePath();
289
- break;
290
- case 3: this.point(this._x3, this._y3), this.point(this._x4, this._y4), this.point(this._x5, this._y5);
291
- }
292
- },
293
- point: function(e, t) {
294
- switch (e = +e, t = +t, this._point) {
295
- case 0:
296
- this._point = 1, this._x3 = e, this._y3 = t;
297
- break;
298
- case 1:
299
- this._point = 2, this._context.moveTo(this._x4 = e, this._y4 = t);
300
- break;
301
- case 2:
302
- this._point = 3, this._x5 = e, this._y5 = t;
303
- break;
304
- default: g(this, e, t);
305
- }
306
- this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
307
- }
308
- };
309
- var le = (function e(t) {
310
- function n(e) {
311
- return new v(e, t);
312
- }
313
- return n.tension = function(t) {
314
- return e(+t);
315
- }, n;
316
- })(0);
317
- //#endregion
318
- //#region ../node_modules/d3-shape/src/curve/cardinalOpen.js
319
- function y(e, t) {
320
- this._context = e, this._k = (1 - t) / 6;
321
- }
322
- y.prototype = {
323
- areaStart: function() {
324
- this._line = 0;
325
- },
326
- areaEnd: function() {
327
- this._line = NaN;
328
- },
329
- lineStart: function() {
330
- this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._point = 0;
331
- },
332
- lineEnd: function() {
333
- (this._line || this._line !== 0 && this._point === 3) && this._context.closePath(), this._line = 1 - this._line;
334
- },
335
- point: function(e, t) {
336
- switch (e = +e, t = +t, this._point) {
337
- case 0:
338
- this._point = 1;
339
- break;
340
- case 1:
341
- this._point = 2;
342
- break;
343
- case 2:
344
- this._point = 3, this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2);
345
- break;
346
- case 3: this._point = 4;
347
- default: g(this, e, t);
348
- }
349
- this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
350
- }
351
- };
352
- var ue = (function e(t) {
353
- function n(e) {
354
- return new y(e, t);
355
- }
356
- return n.tension = function(t) {
357
- return e(+t);
358
- }, n;
359
- })(0);
360
- //#endregion
361
- //#region ../node_modules/d3-shape/src/curve/catmullRom.js
362
- function b(e, t, n) {
363
- var r = e._x1, i = e._y1, a = e._x2, o = e._y2;
364
- if (e._l01_a > 1e-12) {
365
- var s = 2 * e._l01_2a + 3 * e._l01_a * e._l12_a + e._l12_2a, c = 3 * e._l01_a * (e._l01_a + e._l12_a);
366
- r = (r * s - e._x0 * e._l12_2a + e._x2 * e._l01_2a) / c, i = (i * s - e._y0 * e._l12_2a + e._y2 * e._l01_2a) / c;
367
- }
368
- if (e._l23_a > 1e-12) {
369
- var l = 2 * e._l23_2a + 3 * e._l23_a * e._l12_a + e._l12_2a, u = 3 * e._l23_a * (e._l23_a + e._l12_a);
370
- a = (a * l + e._x1 * e._l23_2a - t * e._l12_2a) / u, o = (o * l + e._y1 * e._l23_2a - n * e._l12_2a) / u;
371
- }
372
- e._context.bezierCurveTo(r, i, a, o, e._x2, e._y2);
373
- }
374
- function de(e, t) {
375
- this._context = e, this._alpha = t;
376
- }
377
- de.prototype = {
378
- areaStart: function() {
379
- this._line = 0;
380
- },
381
- areaEnd: function() {
382
- this._line = NaN;
383
- },
384
- lineStart: function() {
385
- this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0;
386
- },
387
- lineEnd: function() {
388
- switch (this._point) {
389
- case 2:
390
- this._context.lineTo(this._x2, this._y2);
391
- break;
392
- case 3: this.point(this._x2, this._y2);
393
- }
394
- (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
395
- },
396
- point: function(e, t) {
397
- if (e = +e, t = +t, this._point) {
398
- var n = this._x2 - e, r = this._y2 - t;
399
- this._l23_a = Math.sqrt(this._l23_2a = (n * n + r * r) ** +this._alpha);
400
- }
401
- switch (this._point) {
402
- case 0:
403
- this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
404
- break;
405
- case 1:
406
- this._point = 2;
407
- break;
408
- case 2: this._point = 3;
409
- default: b(this, e, t);
410
- }
411
- this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
412
- }
413
- };
414
- var fe = (function e(t) {
415
- function n(e) {
416
- return t ? new de(e, t) : new _(e, 0);
417
- }
418
- return n.alpha = function(t) {
419
- return e(+t);
420
- }, n;
421
- })(.5);
422
- //#endregion
423
- //#region ../node_modules/d3-shape/src/curve/catmullRomClosed.js
424
- function pe(e, t) {
425
- this._context = e, this._alpha = t;
426
- }
427
- pe.prototype = {
428
- areaStart: p,
429
- areaEnd: p,
430
- lineStart: function() {
431
- this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN, this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0;
432
- },
433
- lineEnd: function() {
434
- switch (this._point) {
435
- case 1:
436
- this._context.moveTo(this._x3, this._y3), this._context.closePath();
437
- break;
438
- case 2:
439
- this._context.lineTo(this._x3, this._y3), this._context.closePath();
440
- break;
441
- case 3: this.point(this._x3, this._y3), this.point(this._x4, this._y4), this.point(this._x5, this._y5);
442
- }
443
- },
444
- point: function(e, t) {
445
- if (e = +e, t = +t, this._point) {
446
- var n = this._x2 - e, r = this._y2 - t;
447
- this._l23_a = Math.sqrt(this._l23_2a = (n * n + r * r) ** +this._alpha);
448
- }
449
- switch (this._point) {
450
- case 0:
451
- this._point = 1, this._x3 = e, this._y3 = t;
452
- break;
453
- case 1:
454
- this._point = 2, this._context.moveTo(this._x4 = e, this._y4 = t);
455
- break;
456
- case 2:
457
- this._point = 3, this._x5 = e, this._y5 = t;
458
- break;
459
- default: b(this, e, t);
460
- }
461
- this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
462
- }
463
- };
464
- var me = (function e(t) {
465
- function n(e) {
466
- return t ? new pe(e, t) : new v(e, 0);
467
- }
468
- return n.alpha = function(t) {
469
- return e(+t);
470
- }, n;
471
- })(.5);
472
- //#endregion
473
- //#region ../node_modules/d3-shape/src/curve/catmullRomOpen.js
474
- function x(e, t) {
475
- this._context = e, this._alpha = t;
476
- }
477
- x.prototype = {
478
- areaStart: function() {
479
- this._line = 0;
480
- },
481
- areaEnd: function() {
482
- this._line = NaN;
483
- },
484
- lineStart: function() {
485
- this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0;
486
- },
487
- lineEnd: function() {
488
- (this._line || this._line !== 0 && this._point === 3) && this._context.closePath(), this._line = 1 - this._line;
489
- },
490
- point: function(e, t) {
491
- if (e = +e, t = +t, this._point) {
492
- var n = this._x2 - e, r = this._y2 - t;
493
- this._l23_a = Math.sqrt(this._l23_2a = (n * n + r * r) ** +this._alpha);
494
- }
495
- switch (this._point) {
496
- case 0:
497
- this._point = 1;
498
- break;
499
- case 1:
500
- this._point = 2;
501
- break;
502
- case 2:
503
- this._point = 3, this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2);
504
- break;
505
- case 3: this._point = 4;
506
- default: b(this, e, t);
507
- }
508
- this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
509
- }
510
- };
511
- var he = (function e(t) {
512
- function n(e) {
513
- return t ? new x(e, t) : new y(e, 0);
514
- }
515
- return n.alpha = function(t) {
516
- return e(+t);
517
- }, n;
518
- })(.5);
519
- //#endregion
520
- //#region ../node_modules/d3-shape/src/curve/linearClosed.js
521
- function ge(e) {
522
- this._context = e;
523
- }
524
- ge.prototype = {
525
- areaStart: p,
526
- areaEnd: p,
527
- lineStart: function() {
528
- this._point = 0;
529
- },
530
- lineEnd: function() {
531
- this._point && this._context.closePath();
532
- },
533
- point: function(e, t) {
534
- e = +e, t = +t, this._point ? this._context.lineTo(e, t) : (this._point = 1, this._context.moveTo(e, t));
535
- }
536
- };
537
- function _e(e) {
538
- return new ge(e);
539
- }
540
- //#endregion
541
- //#region ../node_modules/d3-shape/src/curve/monotone.js
542
- function ve(e) {
543
- return e < 0 ? -1 : 1;
544
- }
545
- function ye(e, t, n) {
546
- var r = e._x1 - e._x0, i = t - e._x1, a = (e._y1 - e._y0) / (r || i < 0 && -0), o = (n - e._y1) / (i || r < 0 && -0), s = (a * i + o * r) / (r + i);
547
- return (ve(a) + ve(o)) * Math.min(Math.abs(a), Math.abs(o), .5 * Math.abs(s)) || 0;
548
- }
549
- function be(e, t) {
550
- var n = e._x1 - e._x0;
551
- return n ? (3 * (e._y1 - e._y0) / n - t) / 2 : t;
552
- }
553
- function S(e, t, n) {
554
- var r = e._x0, i = e._y0, a = e._x1, o = e._y1, s = (a - r) / 3;
555
- e._context.bezierCurveTo(r + s, i + s * t, a - s, o - s * n, a, o);
556
- }
557
- function C(e) {
558
- this._context = e;
559
- }
560
- C.prototype = {
561
- areaStart: function() {
562
- this._line = 0;
563
- },
564
- areaEnd: function() {
565
- this._line = NaN;
566
- },
567
- lineStart: function() {
568
- this._x0 = this._x1 = this._y0 = this._y1 = this._t0 = NaN, this._point = 0;
569
- },
570
- lineEnd: function() {
571
- switch (this._point) {
572
- case 2:
573
- this._context.lineTo(this._x1, this._y1);
574
- break;
575
- case 3: S(this, this._t0, be(this, this._t0));
576
- }
577
- (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
578
- },
579
- point: function(e, t) {
580
- var n = NaN;
581
- if (e = +e, t = +t, e !== this._x1 || t !== this._y1) {
582
- switch (this._point) {
583
- case 0:
584
- this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
585
- break;
586
- case 1:
587
- this._point = 2;
588
- break;
589
- case 2:
590
- this._point = 3, S(this, be(this, n = ye(this, e, t)), n);
591
- break;
592
- default: S(this, this._t0, n = ye(this, e, t));
593
- }
594
- this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t, this._t0 = n;
595
- }
596
- }
597
- };
598
- function xe(e) {
599
- this._context = new Se(e);
600
- }
601
- (xe.prototype = Object.create(C.prototype)).point = function(e, t) {
602
- C.prototype.point.call(this, t, e);
603
- };
604
- function Se(e) {
605
- this._context = e;
606
- }
607
- Se.prototype = {
608
- moveTo: function(e, t) {
609
- this._context.moveTo(t, e);
610
- },
611
- closePath: function() {
612
- this._context.closePath();
613
- },
614
- lineTo: function(e, t) {
615
- this._context.lineTo(t, e);
616
- },
617
- bezierCurveTo: function(e, t, n, r, i, a) {
618
- this._context.bezierCurveTo(t, e, r, n, a, i);
619
- }
620
- };
621
- function Ce(e) {
622
- return new C(e);
623
- }
624
- function we(e) {
625
- return new xe(e);
626
- }
627
- //#endregion
628
- //#region ../node_modules/d3-shape/src/curve/natural.js
629
- function Te(e) {
630
- this._context = e;
631
- }
632
- Te.prototype = {
633
- areaStart: function() {
634
- this._line = 0;
635
- },
636
- areaEnd: function() {
637
- this._line = NaN;
638
- },
639
- lineStart: function() {
640
- this._x = [], this._y = [];
641
- },
642
- lineEnd: function() {
643
- var e = this._x, t = this._y, n = e.length;
644
- if (n) {
645
- if (this._line ? this._context.lineTo(e[0], t[0]) : this._context.moveTo(e[0], t[0]), n === 2) this._context.lineTo(e[1], t[1]);
646
- else for (var r = Ee(e), i = Ee(t), a = 0, o = 1; o < n; ++a, ++o) this._context.bezierCurveTo(r[0][a], i[0][a], r[1][a], i[1][a], e[o], t[o]);
647
- }
648
- (this._line || this._line !== 0 && n === 1) && this._context.closePath(), this._line = 1 - this._line, this._x = this._y = null;
649
- },
650
- point: function(e, t) {
651
- this._x.push(+e), this._y.push(+t);
652
- }
653
- };
654
- function Ee(e) {
655
- var t, n = e.length - 1, r, i = Array(n), a = Array(n), o = Array(n);
656
- for (i[0] = 0, a[0] = 2, o[0] = e[0] + 2 * e[1], t = 1; t < n - 1; ++t) i[t] = 1, a[t] = 4, o[t] = 4 * e[t] + 2 * e[t + 1];
657
- for (i[n - 1] = 2, a[n - 1] = 7, o[n - 1] = 8 * e[n - 1] + e[n], t = 1; t < n; ++t) r = i[t] / a[t - 1], a[t] -= r, o[t] -= r * o[t - 1];
658
- for (i[n - 1] = o[n - 1] / a[n - 1], t = n - 2; t >= 0; --t) i[t] = (o[t] - i[t + 1]) / a[t];
659
- for (a[n - 1] = (e[n] + i[n - 1]) / 2, t = 0; t < n - 1; ++t) a[t] = 2 * e[t + 1] - i[t + 1];
660
- return [i, a];
661
- }
662
- function De(e) {
663
- return new Te(e);
664
- }
665
- //#endregion
666
- //#region ../node_modules/d3-shape/src/curve/step.js
667
- function w(e, t) {
668
- this._context = e, this._t = t;
669
- }
670
- w.prototype = {
671
- areaStart: function() {
672
- this._line = 0;
673
- },
674
- areaEnd: function() {
675
- this._line = NaN;
676
- },
677
- lineStart: function() {
678
- this._x = this._y = NaN, this._point = 0;
679
- },
680
- lineEnd: function() {
681
- 0 < this._t && this._t < 1 && this._point === 2 && this._context.lineTo(this._x, this._y), (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line >= 0 && (this._t = 1 - this._t, this._line = 1 - this._line);
682
- },
683
- point: function(e, t) {
684
- switch (e = +e, t = +t, this._point) {
685
- case 0:
686
- this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
687
- break;
688
- case 1: this._point = 2;
689
- default: if (this._t <= 0) this._context.lineTo(this._x, t), this._context.lineTo(e, t);
690
- else {
691
- var n = this._x * (1 - this._t) + e * this._t;
692
- this._context.lineTo(n, this._y), this._context.lineTo(n, t);
693
- }
694
- }
695
- this._x = e, this._y = t;
696
- }
697
- };
698
- function T(e) {
699
- return new w(e, .5);
700
- }
701
- function E(e) {
702
- return new w(e, 0);
703
- }
704
- function D(e) {
705
- return new w(e, 1);
706
- }
707
- //#endregion
708
- //#region ../node_modules/es-toolkit/dist/compat/predicate/isPlainObject.mjs
709
- function O(e) {
710
- if (typeof e != "object" || !e) return !1;
711
- if (Object.getPrototypeOf(e) === null) return !0;
712
- if (Object.prototype.toString.call(e) !== "[object Object]") {
713
- let t = e[Symbol.toStringTag];
714
- return t == null || !Object.getOwnPropertyDescriptor(e, Symbol.toStringTag)?.writable ? !1 : e.toString() === `[object ${t}]`;
715
- }
716
- let t = e;
717
- for (; Object.getPrototypeOf(t) !== null;) t = Object.getPrototypeOf(t);
718
- return Object.getPrototypeOf(e) === t;
719
- }
720
- //#endregion
721
- //#region ../node_modules/es-toolkit/dist/function/noop.mjs
722
- function Oe() {}
723
- //#endregion
724
- //#region ../node_modules/es-toolkit/dist/compat/_internal/getSymbols.mjs
725
- function ke(e) {
726
- return Object.getOwnPropertySymbols(e).filter((t) => Object.prototype.propertyIsEnumerable.call(e, t));
727
- }
728
- //#endregion
729
- //#region ../node_modules/es-toolkit/dist/compat/_internal/getTag.mjs
730
- function k(e) {
731
- return e == null ? e === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(e);
732
- }
733
- //#endregion
734
- //#region ../node_modules/es-toolkit/dist/compat/_internal/tags.mjs
735
- var Ae = "[object RegExp]", A = "[object String]", j = "[object Number]", M = "[object Boolean]", N = "[object Arguments]", je = "[object Symbol]", Me = "[object Date]", Ne = "[object Map]", Pe = "[object Set]", Fe = "[object Array]", Ie = "[object ArrayBuffer]", Le = "[object Object]", Re = "[object DataView]", ze = "[object Uint8Array]", Be = "[object Uint8ClampedArray]", Ve = "[object Uint16Array]", He = "[object Uint32Array]", Ue = "[object Int8Array]", We = "[object Int16Array]", Ge = "[object Int32Array]", Ke = "[object Float32Array]", qe = "[object Float64Array]", Je = typeof globalThis == "object" && globalThis || typeof window == "object" && window || typeof self == "object" && self || typeof global == "object" && global || (function() {
736
- return this;
737
- })();
738
- //#endregion
739
- //#region ../node_modules/es-toolkit/dist/predicate/isBuffer.mjs
740
- function P(e) {
741
- return Je.Buffer !== void 0 && Je.Buffer.isBuffer(e);
742
- }
743
- //#endregion
744
- //#region ../node_modules/es-toolkit/dist/predicate/isLength.mjs
745
- function Ye(e) {
746
- return Number.isSafeInteger(e) && e >= 0;
747
- }
748
- //#endregion
749
- //#region ../node_modules/es-toolkit/dist/compat/predicate/isArrayLike.mjs
750
- function Xe(e) {
751
- return e != null && typeof e != "function" && Ye(e.length);
752
- }
753
- //#endregion
754
- //#region ../node_modules/es-toolkit/dist/_internal/isUnsafeProperty.mjs
755
- function Ze(e) {
756
- return e === "__proto__";
757
- }
758
- //#endregion
759
- //#region ../node_modules/es-toolkit/dist/predicate/isPrimitive.mjs
760
- function F(e) {
761
- return e == null || typeof e != "object" && typeof e != "function";
762
- }
763
- //#endregion
764
- //#region ../node_modules/es-toolkit/dist/predicate/isTypedArray.mjs
765
- function I(e) {
766
- return ArrayBuffer.isView(e) && !(e instanceof DataView);
767
- }
768
- //#endregion
769
- //#region ../node_modules/es-toolkit/dist/object/cloneDeepWith.mjs
770
- function Qe(e, t) {
771
- return L(e, void 0, e, /* @__PURE__ */ new Map(), t);
772
- }
773
- function L(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {
774
- let a = i?.(e, t, n, r);
775
- if (a !== void 0) return a;
776
- if (F(e)) return e;
777
- if (r.has(e)) return r.get(e);
778
- if (Array.isArray(e)) {
779
- let t = Array(e.length);
780
- r.set(e, t);
781
- for (let a = 0; a < e.length; a++) t[a] = L(e[a], a, n, r, i);
782
- return Object.hasOwn(e, "index") && (t.index = e.index), Object.hasOwn(e, "input") && (t.input = e.input), t;
783
- }
784
- if (e instanceof Date) return new Date(e.getTime());
785
- if (e instanceof RegExp) {
786
- let t = new RegExp(e.source, e.flags);
787
- return t.lastIndex = e.lastIndex, t;
788
- }
789
- if (e instanceof Map) {
790
- let t = /* @__PURE__ */ new Map();
791
- r.set(e, t);
792
- for (let [a, o] of e) t.set(a, L(o, a, n, r, i));
793
- return t;
794
- }
795
- if (e instanceof Set) {
796
- let t = /* @__PURE__ */ new Set();
797
- r.set(e, t);
798
- for (let a of e) t.add(L(a, void 0, n, r, i));
799
- return t;
800
- }
801
- if (P(e)) return e.subarray();
802
- if (I(e)) {
803
- let t = new (Object.getPrototypeOf(e)).constructor(e.length);
804
- r.set(e, t);
805
- for (let a = 0; a < e.length; a++) t[a] = L(e[a], a, n, r, i);
806
- return t;
807
- }
808
- if (e instanceof ArrayBuffer || typeof SharedArrayBuffer < "u" && e instanceof SharedArrayBuffer) return e.slice(0);
809
- if (e instanceof DataView) {
810
- let t = new DataView(e.buffer.slice(0), e.byteOffset, e.byteLength);
811
- return r.set(e, t), R(t, e, n, r, i), t;
812
- }
813
- if (typeof File < "u" && e instanceof File) {
814
- let t = new File([e], e.name, { type: e.type });
815
- return r.set(e, t), R(t, e, n, r, i), t;
816
- }
817
- if (typeof Blob < "u" && e instanceof Blob) {
818
- let t = new Blob([e], { type: e.type });
819
- return r.set(e, t), R(t, e, n, r, i), t;
820
- }
821
- if (e instanceof Error) {
822
- let t = structuredClone(e);
823
- return r.set(e, t), t.message = e.message, t.name = e.name, t.stack = e.stack, t.cause = e.cause, t.constructor = e.constructor, R(t, e, n, r, i), t;
824
- }
825
- if (e instanceof Boolean) {
826
- let t = new Boolean(e.valueOf());
827
- return r.set(e, t), R(t, e, n, r, i), t;
828
- }
829
- if (e instanceof Number) {
830
- let t = new Number(e.valueOf());
831
- return r.set(e, t), R(t, e, n, r, i), t;
832
- }
833
- if (e instanceof String) {
834
- let t = new String(e.valueOf());
835
- return r.set(e, t), R(t, e, n, r, i), t;
836
- }
837
- if (typeof e == "object" && $e(e)) {
838
- let t = Object.create(Object.getPrototypeOf(e));
839
- return r.set(e, t), R(t, e, n, r, i), t;
840
- }
841
- return e;
842
- }
843
- function R(e, t, n = e, r, i) {
844
- let a = [...Object.keys(t), ...ke(t)];
845
- for (let o = 0; o < a.length; o++) {
846
- let s = a[o], c = Object.getOwnPropertyDescriptor(e, s);
847
- (c == null || c.writable) && (e[s] = L(t[s], s, n, r, i));
848
- }
849
- }
850
- function $e(e) {
851
- switch (k(e)) {
852
- case N:
853
- case Fe:
854
- case Ie:
855
- case Re:
856
- case M:
857
- case Me:
858
- case Ke:
859
- case qe:
860
- case Ue:
861
- case We:
862
- case Ge:
863
- case Ne:
864
- case j:
865
- case Le:
866
- case Ae:
867
- case Pe:
868
- case A:
869
- case je:
870
- case ze:
871
- case Be:
872
- case Ve:
873
- case He: return !0;
874
- default: return !1;
875
- }
876
- }
877
- //#endregion
878
- //#region ../node_modules/es-toolkit/dist/compat/object/cloneDeepWith.mjs
879
- function et(e, t) {
880
- return Qe(e, (n, r, i, a) => {
881
- let o = t?.(n, r, i, a);
882
- if (o !== void 0) return o;
883
- if (typeof e == "object") {
884
- if (k(e) === "[object Object]" && typeof e.constructor != "function") {
885
- let t = {};
886
- return a.set(e, t), R(t, e, i, a), t;
887
- }
888
- switch (Object.prototype.toString.call(e)) {
889
- case j:
890
- case A:
891
- case M: {
892
- let t = new e.constructor(e?.valueOf());
893
- return R(t, e), t;
894
- }
895
- case N: {
896
- let t = {};
897
- return R(t, e), t.length = e.length, t[Symbol.iterator] = e[Symbol.iterator], t;
898
- }
899
- default: return;
900
- }
901
- }
902
- });
903
- }
904
- //#endregion
905
- //#region ../node_modules/es-toolkit/dist/compat/object/cloneDeep.mjs
906
- function tt(e) {
907
- return et(e);
908
- }
909
- //#endregion
910
- //#region ../node_modules/es-toolkit/dist/compat/predicate/isArguments.mjs
911
- function z(e) {
912
- return typeof e == "object" && !!e && k(e) === "[object Arguments]";
913
- }
914
- //#endregion
915
- //#region ../node_modules/es-toolkit/dist/compat/predicate/isObjectLike.mjs
916
- function B(e) {
917
- return typeof e == "object" && !!e;
918
- }
919
- //#endregion
920
- //#region ../node_modules/es-toolkit/dist/compat/predicate/isArrayLikeObject.mjs
921
- function nt(e) {
922
- return B(e) && Xe(e);
923
- }
924
- //#endregion
925
- //#region ../node_modules/es-toolkit/dist/compat/predicate/isTypedArray.mjs
926
- function V(e) {
927
- return I(e);
928
- }
929
- //#endregion
930
- //#region ../node_modules/es-toolkit/dist/compat/function/memoize.mjs
931
- function H(e, t) {
932
- if (typeof e != "function" || t != null && typeof t != "function") throw TypeError("Expected a function");
933
- let n = function(...r) {
934
- let i = t ? t.apply(this, r) : r[0], a = n.cache;
935
- if (a.has(i)) return a.get(i);
936
- let o = e.apply(this, r);
937
- return n.cache = a.set(i, o) || a, o;
938
- };
939
- return n.cache = new (H.Cache || Map)(), n;
940
- }
941
- H.Cache = Map;
942
- //#endregion
943
- //#region ../node_modules/es-toolkit/dist/object/clone.mjs
944
- function rt(e) {
945
- if (F(e)) return e;
946
- if (Array.isArray(e) || I(e) || e instanceof ArrayBuffer || typeof SharedArrayBuffer < "u" && e instanceof SharedArrayBuffer) return e.slice(0);
947
- let t = Object.getPrototypeOf(e);
948
- if (t == null) return Object.assign(Object.create(t), e);
949
- let n = t.constructor;
950
- if (e instanceof Date || e instanceof Map || e instanceof Set) return new n(e);
951
- if (e instanceof RegExp) {
952
- let t = new n(e);
953
- return t.lastIndex = e.lastIndex, t;
954
- }
955
- if (e instanceof DataView) return new n(e.buffer.slice(0));
956
- if (e instanceof Error) {
957
- let t;
958
- return t = e instanceof AggregateError ? new n(e.errors, e.message, { cause: e.cause }) : new n(e.message, { cause: e.cause }), t.stack = e.stack, Object.assign(t, e), t;
959
- }
960
- return typeof File < "u" && e instanceof File ? new n([e], e.name, {
961
- type: e.type,
962
- lastModified: e.lastModified
963
- }) : typeof e == "object" ? Object.assign(Object.create(t), e) : e;
964
- }
965
- //#endregion
966
- //#region ../node_modules/es-toolkit/dist/compat/object/mergeWith.mjs
967
- function it(e, ...t) {
968
- let n = t.slice(0, -1), r = t[t.length - 1], i = e;
969
- for (let e = 0; e < n.length; e++) {
970
- let t = n[e];
971
- i = U(i, t, r, /* @__PURE__ */ new Map());
972
- }
973
- return i;
974
- }
975
- function U(e, t, n, r) {
976
- if (F(e) && (e = Object(e)), typeof t != "object" || !t) return e;
977
- if (r.has(t)) return rt(r.get(t));
978
- if (r.set(t, e), Array.isArray(t)) {
979
- t = t.slice();
980
- for (let e = 0; e < t.length; e++) e in t || (t[e] = void 0);
981
- }
982
- let i = [...Object.keys(t), ...ke(t)];
983
- for (let a = 0; a < i.length; a++) {
984
- let o = i[a];
985
- if (Ze(o)) continue;
986
- let s = t[o], c = e[o];
987
- if (z(s) && (s = { ...s }), z(c) && (c = { ...c }), P(s) && (s = tt(s)), Array.isArray(s)) {
988
- if (Array.isArray(c)) {
989
- let e = [], t = Reflect.ownKeys(c);
990
- for (let n = 0; n < t.length; n++) {
991
- let r = t[n];
992
- e[r] = c[r];
993
- }
994
- c = e;
995
- } else if (nt(c)) {
996
- let e = [];
997
- for (let t = 0; t < c.length; t++) e[t] = c[t];
998
- c = e;
999
- } else c = [];
1000
- }
1001
- let l = n(c, s, o, e, t, r);
1002
- l === void 0 ? Array.isArray(s) || B(c) && B(s) && (O(c) || O(s) || V(c) || V(s)) ? e[o] = U(c, s, n, r) : c == null && O(s) ? e[o] = U({}, s, n, r) : c == null && V(s) ? e[o] = tt(s) : (c === void 0 || s !== void 0) && (e[o] = s) : e[o] = l;
1003
- }
1004
- return e;
1005
- }
1006
- //#endregion
1007
- //#region ../node_modules/es-toolkit/dist/compat/object/merge.mjs
1008
- function at(e, ...t) {
1009
- return it(e, ...t, Oe);
1010
- }
1011
- //#endregion
1012
- //#region ../node_modules/mermaid/dist/chunks/mermaid.core/chunk-6MUBBAK2.mjs
1013
- var ot = c(), st = {
1014
- curveBasis: te,
1015
- curveBasisClosed: re,
1016
- curveBasisOpen: ae,
1017
- curveBumpX: f,
1018
- curveBumpY: ee,
1019
- curveBundle: se,
1020
- curveCardinalClosed: le,
1021
- curveCardinalOpen: ue,
1022
- curveCardinal: ce,
1023
- curveCatmullRomClosed: me,
1024
- curveCatmullRomOpen: he,
1025
- curveCatmullRom: fe,
1026
- curveLinear: u,
1027
- curveLinearClosed: _e,
1028
- curveMonotoneX: Ce,
1029
- curveMonotoneY: we,
1030
- curveNatural: De,
1031
- curveStep: T,
1032
- curveStepAfter: D,
1033
- curveStepBefore: E
1034
- }, ct = /\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, lt = /* @__PURE__ */ e(function(e, t) {
1035
- let n = ut(e, /(?:init\b)|(?:initialize\b)/), i = {};
1036
- if (Array.isArray(n)) {
1037
- let e = n.map((e) => e.args);
1038
- r(e), i = o(i, [...e]);
1039
- } else i = n.args;
1040
- if (!i) return;
1041
- let s = a(e, t), c = "config";
1042
- return i[c] !== void 0 && (s === "flowchart-v2" && (s = "flowchart"), i[s] = i[c], delete i[c]), i;
1043
- }, "detectInit"), ut = /* @__PURE__ */ e(function(e, n = null) {
1044
- try {
1045
- let r = RegExp(`[%]{2}(?![{]${ct.source})(?=[}][%]{2}).*
1046
- `, "ig");
1047
- e = e.trim().replace(r, "").replace(/'/gm, "\""), t.debug(`Detecting diagram directive${n === null ? "" : " type:" + n} based on the text:${e}`);
1048
- let a, o = [];
1049
- for (; (a = i.exec(e)) !== null;) if (a.index === i.lastIndex && i.lastIndex++, a && !n || n && a[1]?.match(n) || n && a[2]?.match(n)) {
1050
- let e = a[1] ? a[1] : a[2], t = a[3] ? a[3].trim() : a[4] ? JSON.parse(a[4].trim()) : null;
1051
- o.push({
1052
- type: e,
1053
- args: t
1054
- });
1055
- }
1056
- return o.length === 0 ? {
1057
- type: e,
1058
- args: null
1059
- } : o.length === 1 ? o[0] : o;
1060
- } catch (r) {
1061
- return t.error(`ERROR: ${r.message} - Unable to parse directive type: '${n}' based on the text: '${e}'`), {
1062
- type: void 0,
1063
- args: null
1064
- };
1065
- }
1066
- }, "detectDirective"), dt = /* @__PURE__ */ e(function(e) {
1067
- return e.replace(i, "");
1068
- }, "removeDirectives"), ft = /* @__PURE__ */ e(function(e, t) {
1069
- for (let [n, r] of t.entries()) if (r.match(e)) return n;
1070
- return -1;
1071
- }, "isSubstringInArray");
1072
- function W(e, t) {
1073
- return e ? st[`curve${e.charAt(0).toUpperCase() + e.slice(1)}`] ?? t : t;
1074
- }
1075
- e(W, "interpolateToCurve");
1076
- function pt(e, t) {
1077
- let n = e.trim();
1078
- if (n) return t.securityLevel === "loose" ? n : (0, ot.sanitizeUrl)(n);
1079
- }
1080
- e(pt, "formatUrl");
1081
- var mt = /* @__PURE__ */ e((e, ...n) => {
1082
- let r = e.split("."), i = r.length - 1, a = r[i], o = window;
1083
- for (let n = 0; n < i; n++) if (o = o[r[n]], !o) {
1084
- t.error(`Function name: ${e} not found in window`);
1085
- return;
1086
- }
1087
- o[a](...n);
1088
- }, "runFunc");
1089
- function G(e, t) {
1090
- return !e || !t ? 0 : Math.sqrt((t.x - e.x) ** 2 + (t.y - e.y) ** 2);
1091
- }
1092
- e(G, "distance");
1093
- function ht(e) {
1094
- let t, n = 0;
1095
- return e.forEach((e) => {
1096
- n += G(e, t), t = e;
1097
- }), K(e, n / 2);
1098
- }
1099
- e(ht, "traverseEdge");
1100
- function gt(e) {
1101
- return e.length === 1 ? e[0] : ht(e);
1102
- }
1103
- e(gt, "calcLabelPosition");
1104
- var _t = /* @__PURE__ */ e((e, t = 2) => {
1105
- let n = 10 ** t;
1106
- return Math.round(e * n) / n;
1107
- }, "roundNumber"), K = /* @__PURE__ */ e((e, t) => {
1108
- let n, r = t;
1109
- for (let t of e) {
1110
- if (n) {
1111
- let e = G(t, n);
1112
- if (e === 0) return n;
1113
- if (e < r) r -= e;
1114
- else {
1115
- let i = r / e;
1116
- if (i <= 0) return n;
1117
- if (i >= 1) return {
1118
- x: t.x,
1119
- y: t.y
1120
- };
1121
- if (i > 0 && i < 1) return {
1122
- x: _t((1 - i) * n.x + i * t.x, 5),
1123
- y: _t((1 - i) * n.y + i * t.y, 5)
1124
- };
1125
- }
1126
- }
1127
- n = t;
1128
- }
1129
- throw Error("Could not find a suitable point for the given distance");
1130
- }, "calculatePoint"), vt = /* @__PURE__ */ e((e, n, r) => {
1131
- t.info(`our points ${JSON.stringify(n)}`), n[0] !== r && (n = n.reverse());
1132
- let i = K(n, 25), a = e ? 10 : 5, o = Math.atan2(n[0].y - i.y, n[0].x - i.x), s = {
1133
- x: 0,
1134
- y: 0
1135
- };
1136
- return s.x = Math.sin(o) * a + (n[0].x + i.x) / 2, s.y = -Math.cos(o) * a + (n[0].y + i.y) / 2, s;
1137
- }, "calcCardinalityPosition");
1138
- function yt(e, n, r) {
1139
- let i = structuredClone(r);
1140
- t.info("our points", i), n !== "start_left" && n !== "start_right" && i.reverse();
1141
- let a = K(i, 25 + e), o = 10 + e * .5, s = Math.atan2(i[0].y - a.y, i[0].x - a.x), c = {
1142
- x: 0,
1143
- y: 0
1144
- };
1145
- return n === "start_left" ? (c.x = Math.sin(s + Math.PI) * o + (i[0].x + a.x) / 2, c.y = -Math.cos(s + Math.PI) * o + (i[0].y + a.y) / 2) : n === "end_right" ? (c.x = Math.sin(s - Math.PI) * o + (i[0].x + a.x) / 2, c.y = -Math.cos(s - Math.PI) * o + (i[0].y + a.y) / 2) : (c.x = Math.sin(s) * o + (i[0].x + a.x) / 2, c.y = -Math.cos(s) * o + (i[0].y + a.y) / 2), c;
1146
- }
1147
- e(yt, "calcTerminalLabelPosition");
1148
- function q(e) {
1149
- let t = "", n = "";
1150
- for (let r of e) r !== void 0 && (r.startsWith("color:") || r.startsWith("text-align:") ? n = n + r + ";" : t = t + r + ";");
1151
- return {
1152
- style: t,
1153
- labelStyle: n
1154
- };
1155
- }
1156
- e(q, "getStylesFromArray");
1157
- var bt = 0, xt = /* @__PURE__ */ e(() => (bt++, "id-" + Math.random().toString(36).substr(2, 12) + "-" + bt), "generateId");
1158
- function St(e) {
1159
- let t = "";
1160
- for (let n = 0; n < e; n++) t += "0123456789abcdef".charAt(Math.floor(Math.random() * 16));
1161
- return t;
1162
- }
1163
- e(St, "makeRandomHex");
1164
- var Ct = /* @__PURE__ */ e((e) => St(e.length), "random"), wt = /* @__PURE__ */ e(function() {
1165
- return {
1166
- x: 0,
1167
- y: 0,
1168
- fill: void 0,
1169
- anchor: "start",
1170
- style: "#666",
1171
- width: 100,
1172
- height: 100,
1173
- textMargin: 0,
1174
- rx: 0,
1175
- ry: 0,
1176
- valign: void 0,
1177
- text: ""
1178
- };
1179
- }, "getTextObj"), Tt = /* @__PURE__ */ e(function(e, t) {
1180
- let n = t.text.replace(s.lineBreakRegex, " "), [, r] = Q(t.fontSize), i = e.append("text");
1181
- i.attr("x", t.x), i.attr("y", t.y), i.style("text-anchor", t.anchor), i.style("font-family", t.fontFamily), i.style("font-size", r), i.style("font-weight", t.fontWeight), i.attr("fill", t.fill), t.class !== void 0 && i.attr("class", t.class);
1182
- let a = i.append("tspan");
1183
- return a.attr("x", t.x + t.textMargin * 2), a.attr("fill", t.fill), a.text(n), i;
1184
- }, "drawSimpleText"), Et = H((e, t, n) => {
1185
- if (!e || (n = Object.assign({
1186
- fontSize: 12,
1187
- fontWeight: 400,
1188
- fontFamily: "Arial",
1189
- joinWith: "<br/>"
1190
- }, n), s.hasBreaks(e))) return e;
1191
- let r = e.split(" ").filter(Boolean), i = [], a = "";
1192
- return r.forEach((e, o) => {
1193
- let s = Y(`${e} `, n), c = Y(a, n);
1194
- if (s > t) {
1195
- let { hyphenatedStrings: r, remainingWord: o } = Dt(e, t, "-", n);
1196
- i.push(a, ...r), a = o;
1197
- } else c + s >= t ? (i.push(a), a = e) : a = [a, e].filter(Boolean).join(" ");
1198
- o + 1 === r.length && i.push(a);
1199
- }), i.filter((e) => e !== "").join(n.joinWith);
1200
- }, (e, t, n) => `${e}${t}${n.fontSize}${n.fontWeight}${n.fontFamily}${n.joinWith}`), Dt = H((e, t, n = "-", r) => {
1201
- r = Object.assign({
1202
- fontSize: 12,
1203
- fontWeight: 400,
1204
- fontFamily: "Arial",
1205
- margin: 0
1206
- }, r);
1207
- let i = [...e], a = [], o = "";
1208
- return i.forEach((e, s) => {
1209
- let c = `${o}${e}`;
1210
- if (Y(c, r) >= t) {
1211
- let e = s + 1, t = i.length === e, r = `${c}${n}`;
1212
- a.push(t ? c : r), o = "";
1213
- } else o = c;
1214
- }), {
1215
- hyphenatedStrings: a,
1216
- remainingWord: o
1217
- };
1218
- }, (e, t, n = "-", r) => `${e}${t}${n}${r.fontSize}${r.fontWeight}${r.fontFamily}`);
1219
- function J(e, t) {
1220
- return X(e, t).height;
1221
- }
1222
- e(J, "calculateTextHeight");
1223
- function Y(e, t) {
1224
- return X(e, t).width;
1225
- }
1226
- e(Y, "calculateTextWidth");
1227
- var X = H((e, t) => {
1228
- let { fontSize: r = 12, fontFamily: i = "Arial", fontWeight: a = 400 } = t;
1229
- if (!e) return {
1230
- width: 0,
1231
- height: 0
1232
- };
1233
- let [, o] = Q(r), c = ["sans-serif", i], l = e.split(s.lineBreakRegex), u = [], d = n("body");
1234
- if (!d.remove) return {
1235
- width: 0,
1236
- height: 0,
1237
- lineHeight: 0
1238
- };
1239
- let f = d.append("svg");
1240
- for (let e of c) {
1241
- let t = 0, n = {
1242
- width: 0,
1243
- height: 0,
1244
- lineHeight: 0
1245
- };
1246
- for (let r of l) {
1247
- let i = wt();
1248
- i.text = r || "​";
1249
- let s = Tt(f, i).style("font-size", o).style("font-weight", a).style("font-family", e), c = (s._groups || s)[0][0].getBBox();
1250
- if (c.width === 0 && c.height === 0) throw Error("svg element not in render tree");
1251
- n.width = Math.round(Math.max(n.width, c.width)), t = Math.round(c.height), n.height += t, n.lineHeight = Math.round(Math.max(n.lineHeight, t));
1252
- }
1253
- u.push(n);
1254
- }
1255
- return f.remove(), u[isNaN(u[1].height) || isNaN(u[1].width) || isNaN(u[1].lineHeight) || u[0].height > u[1].height && u[0].width > u[1].width && u[0].lineHeight > u[1].lineHeight ? 0 : 1];
1256
- }, (e, t) => `${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`), Ot = class {
1257
- constructor(e = !1, t) {
1258
- this.count = 0, this.count = t ? t.length : 0, this.next = e ? () => this.count++ : () => Date.now();
1259
- }
1260
- static {
1261
- e(this, "InitIDGenerator");
1262
- }
1263
- }, Z, kt = /* @__PURE__ */ e(function(e) {
1264
- return Z ||= document.createElement("div"), e = escape(e).replace(/%26/g, "&").replace(/%23/g, "#").replace(/%3B/g, ";"), Z.innerHTML = e, unescape(Z.textContent);
1265
- }, "entityDecode");
1266
- function At(e) {
1267
- return "str" in e;
1268
- }
1269
- e(At, "isDetailedError");
1270
- function jt(e) {
1271
- return e instanceof Error ? e.message : String(e);
1272
- }
1273
- e(jt, "getErrorMessage");
1274
- var Mt = /* @__PURE__ */ e((e, t, n, r) => {
1275
- if (!r) return;
1276
- let i = e.node()?.getBBox();
1277
- i && e.append("text").text(r).attr("text-anchor", "middle").attr("x", i.x + i.width / 2).attr("y", -n).attr("class", t);
1278
- }, "insertTitle"), Q = /* @__PURE__ */ e((e) => {
1279
- if (typeof e == "number") return [e, e + "px"];
1280
- let t = parseInt(e ?? "", 10);
1281
- return Number.isNaN(t) ? [void 0, void 0] : e === String(t) ? [t, e + "px"] : [t, e];
1282
- }, "parseFontSize");
1283
- function $(e, t) {
1284
- return at({}, e, t);
1285
- }
1286
- e($, "cleanAndMerge");
1287
- var Nt = {
1288
- assignWithDepth: o,
1289
- wrapLabel: Et,
1290
- calculateTextHeight: J,
1291
- calculateTextWidth: Y,
1292
- calculateTextDimensions: X,
1293
- cleanAndMerge: $,
1294
- detectInit: lt,
1295
- detectDirective: ut,
1296
- isSubstringInArray: ft,
1297
- interpolateToCurve: W,
1298
- calcLabelPosition: gt,
1299
- calcCardinalityPosition: vt,
1300
- calcTerminalLabelPosition: yt,
1301
- formatUrl: pt,
1302
- getStylesFromArray: q,
1303
- generateId: xt,
1304
- random: Ct,
1305
- runFunc: mt,
1306
- entityDecode: kt,
1307
- insertTitle: Mt,
1308
- isLabelCoordinateInPath: Rt,
1309
- parseFontSize: Q,
1310
- InitIDGenerator: Ot
1311
- }, Pt = /* @__PURE__ */ e(function(e) {
1312
- let t = e;
1313
- return t = t.replace(/style.*:\S*#.*;/g, function(e) {
1314
- return e.substring(0, e.length - 1);
1315
- }), t = t.replace(/classDef.*:\S*#.*;/g, function(e) {
1316
- return e.substring(0, e.length - 1);
1317
- }), t = t.replace(/#\w+;/g, function(e) {
1318
- let t = e.substring(1, e.length - 1);
1319
- return /^\+?\d+$/.test(t) ? "fl°°" + t + "¶ß" : "fl°" + t + "¶ß";
1320
- }), t;
1321
- }, "encodeEntities"), Ft = /* @__PURE__ */ e(function(e) {
1322
- return e.replace(/fl°°/g, "&#").replace(/fl°/g, "&").replace(/¶ß/g, ";");
1323
- }, "decodeEntities"), It = /* @__PURE__ */ e((e, t, { counter: n = 0, prefix: r, suffix: i }, a) => a || `${r ? `${r}_` : ""}${e}_${t}_${n}${i ? `_${i}` : ""}`, "getEdgeId");
1324
- function Lt(e) {
1325
- return e ?? null;
1326
- }
1327
- e(Lt, "handleUndefinedAttr");
1328
- function Rt(e, t) {
1329
- let n = Math.round(e.x), r = Math.round(e.y), i = t.replace(/(\d+\.\d+)/g, (e) => Math.round(parseFloat(e)).toString());
1330
- return i.includes(n.toString()) || i.includes(r.toString());
1331
- }
1332
- e(Rt, "isLabelCoordinateInPath");
1333
- //#endregion
1334
- export { fe as $, Ke as A, A as B, P as C, M as D, Fe as E, Ne as F, Be as G, Ve as H, j as I, E as J, k as K, Le as L, We as M, Ge as N, Re as O, Ue as P, we as Q, Ae as R, Xe as S, Ie as T, He as U, je as V, ze as W, De as X, T as Y, Ce as Z, Nt as _, Ft as a, z as b, It as c, Lt as d, ce as et, W as f, dt as g, Ct as h, $ as i, u as it, qe as j, Me as k, jt as l, Q as m, J as n, f as nt, Pt as o, At as p, D as q, Y as r, ee as rt, xt as s, X as t, te as tt, q as u, Et as v, N as w, F as x, V as y, Pe as z };