@antdv-next/x 1.0.2-beta.2 → 1.0.2-beta.4

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 (130) hide show
  1. package/dist/actions/Actions.js +1 -1
  2. package/dist/attachments/index.js +1 -1
  3. package/dist/conversations/index.js +1 -1
  4. package/dist/file-card/FileCard.js +1 -1
  5. package/dist/file-card/List.js +1 -1
  6. package/dist/index.umd.js +25 -25
  7. package/dist/locale/useLocale.js +1 -1
  8. package/dist/mermaid/Mermaid.js +1 -1
  9. package/dist/package.js +1 -1
  10. package/dist/prompts/Prompts.js +1 -1
  11. package/dist/sender/Sender.js +1 -1
  12. package/dist/sender/SenderHeader.js +1 -1
  13. package/dist/sender/SenderSwitch.js +1 -1
  14. package/dist/sources/Sources.js +1 -1
  15. package/dist/suggestion/Suggestion.js +1 -1
  16. package/dist/theme/genStyleUtils.js +1 -1
  17. package/dist/think/Think.js +1 -1
  18. package/dist/thought-chain/Item.js +1 -1
  19. package/dist/thought-chain/Node.js +1 -1
  20. package/dist/thought-chain/ThoughtChain.js +1 -1
  21. package/dist/welcome/index.js +1 -1
  22. package/dist/x-provider/hooks/use-x-provider-context.js +1 -1
  23. package/es/{Serializer-y_SfSPKv.js → Serializer-D1JYN1kI.js} +4 -4
  24. package/es/{_basePickBy-DPqob0cQ.js → _basePickBy-DFHEGO2M.js} +23 -23
  25. package/es/{_baseUniq-AMhRdOMz.js → _baseUniq-BlS7rXTs.js} +83 -83
  26. package/es/antdv-next-x.esm.js +44833 -7290
  27. package/es/{arc-caEkbRYF.js → arc-BuXEd18J.js} +3 -3
  28. package/es/architecture-PBZL5I3N-D7tS55xM.js +3 -0
  29. package/es/{architectureDiagram-2XIMDMQ5-ZOgJV9Kg.js → architectureDiagram-2XIMDMQ5-CmfsCwJk.js} +85 -85
  30. package/es/{blockDiagram-WCTKOSBZ-8iZwAKBK.js → blockDiagram-WCTKOSBZ-lJAan65A.js} +530 -530
  31. package/es/{c4Diagram-IC4MRINW-DrH9eRMR.js → c4Diagram-IC4MRINW-B1c2x_1Q.js} +170 -170
  32. package/es/channel-DFgF_2F7.js +5 -0
  33. package/es/{chunk-4BX2VUAB-DUVpjbJi.js → chunk-4BX2VUAB-J2N81Fpp.js} +2 -2
  34. package/es/{chunk-55IACEB6-RlJ-J3tE.js → chunk-55IACEB6-DGtfGRgi.js} +2 -2
  35. package/es/{chunk-7E7YKBS2-ChLFamzc.js → chunk-7E7YKBS2-CL2d4WAf.js} +2 -2
  36. package/es/{chunk-7R4GIKGN-B9vamSzt.js → chunk-7R4GIKGN-QT6IorJ_.js} +3 -3
  37. package/es/{chunk-C72U2L5F-BV-rXau1.js → chunk-C72U2L5F-OHTVpS-m.js} +2 -2
  38. package/es/{chunk-EGIJ26TM-GvsuORRL.js → chunk-EGIJ26TM-DyMPGYrB.js} +2 -2
  39. package/es/{chunk-FMBD7UC4-D6ZlqqMC.js → chunk-FMBD7UC4-DCcRjunY.js} +2 -2
  40. package/es/{chunk-GEFDOKGD-DM6dsEsk.js → chunk-GEFDOKGD-BWpC-zoH.js} +278 -278
  41. package/es/chunk-GLR3WWYH-DiXcKb5Y.js +41 -0
  42. package/es/{chunk-HHEYEP7N-FVfYw94p.js → chunk-HHEYEP7N-Cxc7E4dX.js} +3 -3
  43. package/es/{chunk-JSJVCQXG-Wr9uPcCh.js → chunk-JSJVCQXG-D8_heHOp.js} +4 -4
  44. package/es/{chunk-KX2RTZJC-BGffjoxB.js → chunk-KX2RTZJC-D5cc4rj6.js} +3 -3
  45. package/es/{chunk-KYZI473N-Bit5smNE.js → chunk-KYZI473N-BHJ3T5Zv.js} +573 -573
  46. package/es/{chunk-L3YUKLVL-DBuHDpQ2.js → chunk-L3YUKLVL-7oGaUOdc.js} +2 -2
  47. package/es/{chunk-MX3YWQON-Cbj2WwUZ.js → chunk-MX3YWQON-BxE-Aq9c.js} +2 -2
  48. package/es/{chunk-NQ4KR5QH-FPQ-IHJN.js → chunk-NQ4KR5QH-EYQBXkqP.js} +120 -120
  49. package/es/{chunk-O4XLMI2P-BCDk0ZIW.js → chunk-O4XLMI2P-qjOoGpnx.js} +238 -238
  50. package/es/{chunk-OZEHJAEY-BZ24IOgQ.js → chunk-OZEHJAEY-D82nx27s.js} +2 -2
  51. package/es/{chunk-PQ6SQG4A-DpwBx6Hx.js → chunk-PQ6SQG4A-D3jtNCWN.js} +3 -3
  52. package/es/{chunk-PU5JKC2W-BNpJuXxn.js → chunk-PU5JKC2W-DdP8BS-S.js} +76 -76
  53. package/es/{chunk-QZHKN3VN-NEMwPryC.js → chunk-QZHKN3VN-CW3cFN-h.js} +2 -2
  54. package/es/{chunk-R5LLSJPH-g44vgerl.js → chunk-R5LLSJPH-CreI2kO9.js} +2 -2
  55. package/es/{chunk-WL4C6EOR-B6l-Yy2t.js → chunk-WL4C6EOR-BDbxJyGk.js} +120 -120
  56. package/es/{chunk-XIRO2GV7-CaFInIOW.js → chunk-XIRO2GV7-S5KkbVnN.js} +2 -2
  57. package/es/{chunk-XPW4576I-Cp1j6iTN.js → chunk-XPW4576I-B0KVSHwE.js} +2 -2
  58. package/es/{chunk-XZSTWKYB-CGk7ipHd.js → chunk-XZSTWKYB-CucN1XvM.js} +93 -93
  59. package/es/{chunk-YBOYWFTD-dOTBpTYs.js → chunk-YBOYWFTD-CvaddD9G.js} +8 -8
  60. package/es/classDiagram-VBA2DB6C-Co3LMmg8.js +29 -0
  61. package/es/classDiagram-v2-RAHNMMFH-BZscgdF2.js +29 -0
  62. package/es/clone-r3YukIBB.js +8 -0
  63. package/es/{cose-bilkent-S5V4N54A-DlmXyn6m.js → cose-bilkent-S5V4N54A-B5OQuIhl.js} +3 -3
  64. package/es/{cytoscape.esm-BY3wHcbp.js → cytoscape.esm-i2CZcWd-.js} +1 -1
  65. package/es/{dagre-B1qTL793.js → dagre-5aGJFKmT.js} +57 -57
  66. package/es/dagre-KLK3FWXG-BI5QQMXo.js +294 -0
  67. package/es/{defaultLocale-BaPFSbai.js → defaultLocale-bckJcYh1.js} +12 -12
  68. package/es/{diagram-E7M64L7V-Dnd8N74o.js → diagram-E7M64L7V-Dz62Vz_a.js} +83 -83
  69. package/es/{diagram-IFDJBPK2-Dan7RsGr.js → diagram-IFDJBPK2-9fjvFkSc.js} +31 -31
  70. package/es/{diagram-P4PSJMXO-DwKJpttH.js → diagram-P4PSJMXO-BlX6jFjZ.js} +32 -32
  71. package/es/{dist-DltyvPj3.js → dist-BX_roQzC.js} +1 -1
  72. package/es/{erDiagram-INFDFZHY-CGO6k23w.js → erDiagram-INFDFZHY-BcRXu8Cp.js} +128 -128
  73. package/es/{flowDiagram-PKNHOUZH-DFN1GsRx.js → flowDiagram-PKNHOUZH-UeyfgU8z.js} +156 -156
  74. package/es/{ganttDiagram-A5KZAMGK-Cf5NxH1w.js → ganttDiagram-A5KZAMGK-txCzqgQ5.js} +625 -622
  75. package/es/gitGraph-HDMCJU4V-CxsS0Qr1.js +3 -0
  76. package/es/{gitGraphDiagram-K3NZZRJ6-BgE6aSZO.js → gitGraphDiagram-K3NZZRJ6-DghWYaFU.js} +176 -176
  77. package/es/{graphlib-DFxSohCv.js → graphlib-dRkI1OCL.js} +4 -4
  78. package/es/{html-C2-_98S6.js → html-B6UxjOv0.js} +1 -1
  79. package/es/html-Hb1oe8XT.js +2 -0
  80. package/es/info-3K5VOQVL-COqdvM99.js +3 -0
  81. package/es/{infoDiagram-LFFYTUFH-WcApcdl5.js → infoDiagram-LFFYTUFH-CA-vlAvP.js} +5 -5
  82. package/es/{init-PAs0hR-b.js → init-B75p2clj.js} +1 -1
  83. package/es/{isArrayLikeObject-BEG9p74d.js → isArrayLikeObject-jl2bjkAJ.js} +80 -80
  84. package/es/{isEmpty-B1YrVV8B.js → isEmpty-CmA-HYrg.js} +3 -3
  85. package/es/{ishikawaDiagram-PHBUUO56-DwK7J31a.js → ishikawaDiagram-PHBUUO56-DjdpS9Lb.js} +67 -67
  86. package/es/{journeyDiagram-4ABVD52K-CWuA57by.js → journeyDiagram-4ABVD52K-CIJfC1fp.js} +6 -6
  87. package/es/{kanban-definition-K7BYSVSG-DBt3gYRQ.js → kanban-definition-K7BYSVSG-CC2vwGck.js} +11 -11
  88. package/es/{katex-OR8z_f6I.js → katex-DCMiIo1z.js} +1 -1
  89. package/es/{line-zOBKZCP5.js → line-Cu9NTacD.js} +4 -4
  90. package/es/{linear-DttXWw4q.js → linear-C0rAYYmp.js} +23 -23
  91. package/es/{math-DPzKeDKn.js → math-CoDOuve-.js} +1 -1
  92. package/es/{mermaid-parser.core-CWNEdmZ_.js → mermaid-parser.core-7Wn2L29P.js} +16 -16
  93. package/es/{mermaid.core-DPBXXViR.js → mermaid.core-Bvy_Q6Hu.js} +208 -208
  94. package/es/{mindmap-definition-YRQLILUH-Bq2xqboX.js → mindmap-definition-YRQLILUH-BzTYDYmK.js} +16 -16
  95. package/es/{ordinal-D8PKtxfM.js → ordinal-F3U6aXtP.js} +3 -3
  96. package/es/packet-RMMSAZCW-2PTjWKLd.js +3 -0
  97. package/es/{path-DZ-6AyWK.js → path-Dm3C8WEs.js} +3 -3
  98. package/es/pie-UPGHQEXC-Du8-k-EA.js +3 -0
  99. package/es/{pieDiagram-SKSYHLDU-D4iMzwzH.js → pieDiagram-SKSYHLDU-COvqE_C6.js} +32 -32
  100. package/es/{quadrantDiagram-337W2JSQ-DSbXC0z6.js → quadrantDiagram-337W2JSQ-Dgv8ccjt.js} +4 -4
  101. package/es/radar-KQ55EAFF-jJOhyjxC.js +3 -0
  102. package/es/{requirementDiagram-Z7DCOOCP-D7eLn3fs.js → requirementDiagram-Z7DCOOCP-B2NyhxO-.js} +59 -59
  103. package/es/{rough.esm-C_hJ3ICT.js → rough.esm-BhGP2Udb.js} +1 -1
  104. package/es/{sankeyDiagram-WA2Y5GQK-DN5ZPgWU.js → sankeyDiagram-WA2Y5GQK-BfnH_gpl.js} +18 -18
  105. package/es/{sequenceDiagram-2WXFIKYE-CRFEBP8-.js → sequenceDiagram-2WXFIKYE-DXssVQOF.js} +390 -390
  106. package/es/{src-BH16DVv0.js → src-CUQ6oOYk.js} +86 -86
  107. package/es/{stateDiagram-RAJIS63D-CfO23QJX.js → stateDiagram-RAJIS63D-DvDLfupV.js} +68 -68
  108. package/es/stateDiagram-v2-FVOUBMTO-DIXyaX9W.js +27 -0
  109. package/es/{timeline-definition-YZTLITO2-DmpPrD-3.js → timeline-definition-YZTLITO2-ErcRjbZf.js} +4 -4
  110. package/es/treemap-KZPCXAKY-CvZAIYVa.js +3 -0
  111. package/es/{vennDiagram-LZ73GAT5-B80Xr4jV.js → vennDiagram-LZ73GAT5-CDTZUtc8.js} +107 -107
  112. package/es/{vue-DTiWrQBM.js → vue-2aJw7p5p.js} +2 -2
  113. package/es/{vue-html-BG3Xflut.js → vue-html-DEjI8X9t.js} +1 -1
  114. package/es/{xychartDiagram-JWTSCODW-DvQyPDr4.js → xychartDiagram-JWTSCODW-Y21jBOTg.js} +103 -103
  115. package/package.json +1 -1
  116. package/es/architecture-PBZL5I3N-CBmkTWjb.js +0 -3
  117. package/es/channel-DIQFjdG3.js +0 -5
  118. package/es/chunk-GLR3WWYH-CqFdLic9.js +0 -41
  119. package/es/classDiagram-VBA2DB6C-B3yBiQy3.js +0 -29
  120. package/es/classDiagram-v2-RAHNMMFH-jbFYm_Xj.js +0 -29
  121. package/es/clone-DXVS0uSx.js +0 -8
  122. package/es/dagre-KLK3FWXG-CEhXRLVR.js +0 -294
  123. package/es/gitGraph-HDMCJU4V-CrEEHSZS.js +0 -3
  124. package/es/html-JbFqcNgP.js +0 -2
  125. package/es/info-3K5VOQVL-Dg3DCp4F.js +0 -3
  126. package/es/packet-RMMSAZCW-Dk7mKMJ4.js +0 -3
  127. package/es/pie-UPGHQEXC-CnM5YLNO.js +0 -3
  128. package/es/radar-KQ55EAFF-BwfADDx8.js +0 -3
  129. package/es/stateDiagram-v2-FVOUBMTO-BGWbXepL.js +0 -27
  130. package/es/treemap-KZPCXAKY-BWfn7JxQ.js +0 -3
@@ -1,69 +1,69 @@
1
- import { A as e, B as t, F as n, H as r, O as i, R as a, S as o, U as s, V as c, b as l, c as u, g as ee, i as te, j as d, l as f, n as p, p as m, r as ne, s as re, t as ie, u as h, y as ae } from "./isArrayLikeObject-BEG9p74d.js";
2
- import { g, h as _, p as v } from "./src-BH16DVv0.js";
3
- import { I as y, f as oe, m as b, r as se, s as x } from "./chunk-7R4GIKGN-B9vamSzt.js";
4
- import "./math-DPzKeDKn.js";
5
- import { t as ce } from "./dist-DltyvPj3.js";
6
- //#region ../../node_modules/lodash-es/isPlainObject.js
7
- var le = "[object Object]", ue = Function.prototype, de = Object.prototype, fe = ue.toString, pe = de.hasOwnProperty, me = fe.call(Object);
8
- function he(e) {
9
- if (!r(e) || s(e) != le) return !1;
10
- var t = f(e);
1
+ import { g as e, h as t, p as n } from "./src-CUQ6oOYk.js";
2
+ import { A as r, B as i, F as a, H as o, O as s, R as c, S as l, U as u, V as d, b as f, c as p, g as ee, i as te, j as m, l as h, n as g, p as _, r as ne, s as re, t as ie, u as v, y as ae } from "./isArrayLikeObject-jl2bjkAJ.js";
3
+ import { I as y, f as oe, m as b, r as se, s as x } from "./chunk-7R4GIKGN-QT6IorJ_.js";
4
+ import "./math-CoDOuve-.js";
5
+ import { t as ce } from "./dist-BX_roQzC.js";
6
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isPlainObject.js
7
+ var le = "[object Object]", ue = Function.prototype, de = Object.prototype, S = ue.toString, fe = de.hasOwnProperty, pe = S.call(Object);
8
+ function me(e) {
9
+ if (!o(e) || u(e) != le) return !1;
10
+ var t = h(e);
11
11
  if (t === null) return !0;
12
- var n = pe.call(t, "constructor") && t.constructor;
13
- return typeof n == "function" && n instanceof n && fe.call(n) == me;
12
+ var n = fe.call(t, "constructor") && t.constructor;
13
+ return typeof n == "function" && n instanceof n && S.call(n) == pe;
14
14
  }
15
15
  //#endregion
16
- //#region ../../node_modules/lodash-es/_assignMergeValue.js
17
- function S(t, n, r) {
18
- (r !== void 0 && !e(t[n], r) || r === void 0 && !(n in t)) && d(t, n, r);
16
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_assignMergeValue.js
17
+ function C(e, t, n) {
18
+ (n !== void 0 && !r(e[t], n) || n === void 0 && !(t in e)) && m(e, t, n);
19
19
  }
20
20
  //#endregion
21
- //#region ../../node_modules/lodash-es/_safeGet.js
22
- function C(e, t) {
21
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_safeGet.js
22
+ function w(e, t) {
23
23
  if (!(t === "constructor" && typeof e[t] == "function") && t != "__proto__") return e[t];
24
24
  }
25
25
  //#endregion
26
- //#region ../../node_modules/lodash-es/toPlainObject.js
27
- function ge(e) {
28
- return i(e, m(e));
26
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/toPlainObject.js
27
+ function he(e) {
28
+ return s(e, _(e));
29
29
  }
30
30
  //#endregion
31
- //#region ../../node_modules/lodash-es/_baseMergeDeep.js
32
- function _e(e, r, i, o, s, u, d) {
33
- var f = C(e, i), p = C(r, i), m = d.get(p);
31
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseMergeDeep.js
32
+ function ge(e, t, n, r, o, s, l) {
33
+ var u = w(e, n), p = w(t, n), m = l.get(p);
34
34
  if (m) {
35
- S(e, i, m);
35
+ C(e, n, m);
36
36
  return;
37
37
  }
38
- var h = u ? u(f, p, i + "", e, r, d) : void 0, g = h === void 0;
38
+ var h = s ? s(u, p, n + "", e, t, l) : void 0, g = h === void 0;
39
39
  if (g) {
40
- var _ = c(p), v = !_ && ae(p), y = !_ && !v && ee(p);
41
- h = p, _ || v || y ? c(f) ? h = f : ie(f) ? h = n(f) : v ? (g = !1, h = re(p, !0)) : y ? (g = !1, h = te(p, !0)) : h = [] : he(p) || l(p) ? (h = f, l(f) ? h = ge(f) : (!t(f) || a(f)) && (h = ne(p))) : g = !1;
40
+ var _ = d(p), v = !_ && ae(p), y = !_ && !v && ee(p);
41
+ h = p, _ || v || y ? d(u) ? h = u : ie(u) ? h = a(u) : v ? (g = !1, h = re(p, !0)) : y ? (g = !1, h = te(p, !0)) : h = [] : me(p) || f(p) ? (h = u, f(u) ? h = he(u) : (!i(u) || c(u)) && (h = ne(p))) : g = !1;
42
42
  }
43
- g && (d.set(p, h), s(h, p, o, u, d), d.delete(p)), S(e, i, h);
43
+ g && (l.set(p, h), o(h, p, r, s, l), l.delete(p)), C(e, n, h);
44
44
  }
45
45
  //#endregion
46
- //#region ../../node_modules/lodash-es/_baseMerge.js
47
- function ve(e, n, r, i, a) {
48
- e !== n && p(n, function(o, s) {
49
- if (a ||= new u(), t(o)) _e(e, n, s, r, ve, i, a);
46
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseMerge.js
47
+ function _e(e, t, n, r, a) {
48
+ e !== t && g(t, function(o, s) {
49
+ if (a ||= new p(), i(o)) ge(e, t, s, n, _e, r, a);
50
50
  else {
51
- var c = i ? i(C(e, s), o, s + "", e, n, a) : void 0;
52
- c === void 0 && (c = o), S(e, s, c);
51
+ var c = r ? r(w(e, s), o, s + "", e, t, a) : void 0;
52
+ c === void 0 && (c = o), C(e, s, c);
53
53
  }
54
- }, m);
54
+ }, _);
55
55
  }
56
56
  //#endregion
57
- //#region ../../node_modules/lodash-es/merge.js
58
- var ye = o(function(e, t, n) {
59
- ve(e, t, n);
57
+ //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/merge.js
58
+ var ve = l(function(e, t, n) {
59
+ _e(e, t, n);
60
60
  });
61
61
  //#endregion
62
- //#region ../../node_modules/d3-shape/src/curve/linear.js
63
- function w(e) {
62
+ //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/linear.js
63
+ function ye(e) {
64
64
  this._context = e;
65
65
  }
66
- w.prototype = {
66
+ ye.prototype = {
67
67
  areaStart: function() {
68
68
  this._line = 0;
69
69
  },
@@ -89,10 +89,10 @@ w.prototype = {
89
89
  }
90
90
  };
91
91
  function be(e) {
92
- return new w(e);
92
+ return new ye(e);
93
93
  }
94
94
  //#endregion
95
- //#region ../../node_modules/d3-shape/src/curve/bump.js
95
+ //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/bump.js
96
96
  var xe = class {
97
97
  constructor(e, t) {
98
98
  this._context = e, this._x = t;
@@ -122,24 +122,24 @@ var xe = class {
122
122
  this._x0 = e, this._y0 = t;
123
123
  }
124
124
  };
125
- function Se(e) {
125
+ function T(e) {
126
126
  return new xe(e, !0);
127
127
  }
128
- function Ce(e) {
128
+ function E(e) {
129
129
  return new xe(e, !1);
130
130
  }
131
131
  //#endregion
132
- //#region ../../node_modules/d3-shape/src/noop.js
133
- function T() {}
132
+ //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/noop.js
133
+ function D() {}
134
134
  //#endregion
135
- //#region ../../node_modules/d3-shape/src/curve/basis.js
136
- function E(e, t, n) {
135
+ //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/basis.js
136
+ function O(e, t, n) {
137
137
  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);
138
138
  }
139
- function D(e) {
139
+ function k(e) {
140
140
  this._context = e;
141
141
  }
142
- D.prototype = {
142
+ k.prototype = {
143
143
  areaStart: function() {
144
144
  this._line = 0;
145
145
  },
@@ -151,7 +151,7 @@ D.prototype = {
151
151
  },
152
152
  lineEnd: function() {
153
153
  switch (this._point) {
154
- case 3: E(this, this._x1, this._y1);
154
+ case 3: O(this, this._x1, this._y1);
155
155
  case 2:
156
156
  this._context.lineTo(this._x1, this._y1);
157
157
  break;
@@ -168,23 +168,23 @@ D.prototype = {
168
168
  break;
169
169
  case 2: this._point = 3, this._context.lineTo((5 * this._x0 + this._x1) / 6, (5 * this._y0 + this._y1) / 6);
170
170
  default:
171
- E(this, e, t);
171
+ O(this, e, t);
172
172
  break;
173
173
  }
174
174
  this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
175
175
  }
176
176
  };
177
- function we(e) {
178
- return new D(e);
177
+ function A(e) {
178
+ return new k(e);
179
179
  }
180
180
  //#endregion
181
- //#region ../../node_modules/d3-shape/src/curve/basisClosed.js
182
- function Te(e) {
181
+ //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/basisClosed.js
182
+ function j(e) {
183
183
  this._context = e;
184
184
  }
185
- Te.prototype = {
186
- areaStart: T,
187
- areaEnd: T,
185
+ j.prototype = {
186
+ areaStart: D,
187
+ areaEnd: D,
188
188
  lineStart: function() {
189
189
  this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = NaN, this._point = 0;
190
190
  },
@@ -213,21 +213,21 @@ Te.prototype = {
213
213
  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);
214
214
  break;
215
215
  default:
216
- E(this, e, t);
216
+ O(this, e, t);
217
217
  break;
218
218
  }
219
219
  this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
220
220
  }
221
221
  };
222
- function Ee(e) {
223
- return new Te(e);
222
+ function Se(e) {
223
+ return new j(e);
224
224
  }
225
225
  //#endregion
226
- //#region ../../node_modules/d3-shape/src/curve/basisOpen.js
227
- function De(e) {
226
+ //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/basisOpen.js
227
+ function M(e) {
228
228
  this._context = e;
229
229
  }
230
- De.prototype = {
230
+ M.prototype = {
231
231
  areaStart: function() {
232
232
  this._line = 0;
233
233
  },
@@ -255,21 +255,21 @@ De.prototype = {
255
255
  break;
256
256
  case 3: this._point = 4;
257
257
  default:
258
- E(this, e, t);
258
+ O(this, e, t);
259
259
  break;
260
260
  }
261
261
  this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
262
262
  }
263
263
  };
264
- function Oe(e) {
265
- return new De(e);
264
+ function Ce(e) {
265
+ return new M(e);
266
266
  }
267
267
  //#endregion
268
- //#region ../../node_modules/d3-shape/src/curve/bundle.js
269
- function ke(e, t) {
270
- this._basis = new D(e), this._beta = t;
268
+ //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/bundle.js
269
+ function N(e, t) {
270
+ this._basis = new k(e), this._beta = t;
271
271
  }
272
- ke.prototype = {
272
+ N.prototype = {
273
273
  lineStart: function() {
274
274
  this._x = [], this._y = [], this._basis.lineStart();
275
275
  },
@@ -282,23 +282,23 @@ ke.prototype = {
282
282
  this._x.push(+e), this._y.push(+t);
283
283
  }
284
284
  };
285
- var Ae = (function e(t) {
285
+ var we = (function e(t) {
286
286
  function n(e) {
287
- return t === 1 ? new D(e) : new ke(e, t);
287
+ return t === 1 ? new k(e) : new N(e, t);
288
288
  }
289
289
  return n.beta = function(t) {
290
290
  return e(+t);
291
291
  }, n;
292
292
  })(.85);
293
293
  //#endregion
294
- //#region ../../node_modules/d3-shape/src/curve/cardinal.js
295
- function O(e, t, n) {
294
+ //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/cardinal.js
295
+ function P(e, t, n) {
296
296
  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);
297
297
  }
298
- function k(e, t) {
298
+ function F(e, t) {
299
299
  this._context = e, this._k = (1 - t) / 6;
300
300
  }
301
- k.prototype = {
301
+ F.prototype = {
302
302
  areaStart: function() {
303
303
  this._line = 0;
304
304
  },
@@ -314,7 +314,7 @@ k.prototype = {
314
314
  this._context.lineTo(this._x2, this._y2);
315
315
  break;
316
316
  case 3:
317
- O(this, this._x1, this._y1);
317
+ P(this, this._x1, this._y1);
318
318
  break;
319
319
  }
320
320
  (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
@@ -329,28 +329,28 @@ k.prototype = {
329
329
  break;
330
330
  case 2: this._point = 3;
331
331
  default:
332
- O(this, e, t);
332
+ P(this, e, t);
333
333
  break;
334
334
  }
335
335
  this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
336
336
  }
337
337
  };
338
- var je = (function e(t) {
338
+ var I = (function e(t) {
339
339
  function n(e) {
340
- return new k(e, t);
340
+ return new F(e, t);
341
341
  }
342
342
  return n.tension = function(t) {
343
343
  return e(+t);
344
344
  }, n;
345
345
  })(0);
346
346
  //#endregion
347
- //#region ../../node_modules/d3-shape/src/curve/cardinalClosed.js
348
- function A(e, t) {
347
+ //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/cardinalClosed.js
348
+ function L(e, t) {
349
349
  this._context = e, this._k = (1 - t) / 6;
350
350
  }
351
- A.prototype = {
352
- areaStart: T,
353
- areaEnd: T,
351
+ L.prototype = {
352
+ areaStart: D,
353
+ areaEnd: D,
354
354
  lineStart: function() {
355
355
  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;
356
356
  },
@@ -379,26 +379,26 @@ A.prototype = {
379
379
  this._point = 3, this._x5 = e, this._y5 = t;
380
380
  break;
381
381
  default:
382
- O(this, e, t);
382
+ P(this, e, t);
383
383
  break;
384
384
  }
385
385
  this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
386
386
  }
387
387
  };
388
- var Me = (function e(t) {
388
+ var Te = (function e(t) {
389
389
  function n(e) {
390
- return new A(e, t);
390
+ return new L(e, t);
391
391
  }
392
392
  return n.tension = function(t) {
393
393
  return e(+t);
394
394
  }, n;
395
395
  })(0);
396
396
  //#endregion
397
- //#region ../../node_modules/d3-shape/src/curve/cardinalOpen.js
398
- function j(e, t) {
397
+ //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/cardinalOpen.js
398
+ function R(e, t) {
399
399
  this._context = e, this._k = (1 - t) / 6;
400
400
  }
401
- j.prototype = {
401
+ R.prototype = {
402
402
  areaStart: function() {
403
403
  this._line = 0;
404
404
  },
@@ -424,23 +424,23 @@ j.prototype = {
424
424
  break;
425
425
  case 3: this._point = 4;
426
426
  default:
427
- O(this, e, t);
427
+ P(this, e, t);
428
428
  break;
429
429
  }
430
430
  this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
431
431
  }
432
432
  };
433
- var Ne = (function e(t) {
433
+ var Ee = (function e(t) {
434
434
  function n(e) {
435
- return new j(e, t);
435
+ return new R(e, t);
436
436
  }
437
437
  return n.tension = function(t) {
438
438
  return e(+t);
439
439
  }, n;
440
440
  })(0);
441
441
  //#endregion
442
- //#region ../../node_modules/d3-shape/src/curve/catmullRom.js
443
- function M(e, t, n) {
442
+ //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/catmullRom.js
443
+ function z(e, t, n) {
444
444
  var r = e._x1, i = e._y1, a = e._x2, o = e._y2;
445
445
  if (e._l01_a > 1e-12) {
446
446
  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);
@@ -452,10 +452,10 @@ function M(e, t, n) {
452
452
  }
453
453
  e._context.bezierCurveTo(r, i, a, o, e._x2, e._y2);
454
454
  }
455
- function N(e, t) {
455
+ function B(e, t) {
456
456
  this._context = e, this._alpha = t;
457
457
  }
458
- N.prototype = {
458
+ B.prototype = {
459
459
  areaStart: function() {
460
460
  this._line = 0;
461
461
  },
@@ -490,28 +490,28 @@ N.prototype = {
490
490
  break;
491
491
  case 2: this._point = 3;
492
492
  default:
493
- M(this, e, t);
493
+ z(this, e, t);
494
494
  break;
495
495
  }
496
496
  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;
497
497
  }
498
498
  };
499
- var P = (function e(t) {
499
+ var De = (function e(t) {
500
500
  function n(e) {
501
- return t ? new N(e, t) : new k(e, 0);
501
+ return t ? new B(e, t) : new F(e, 0);
502
502
  }
503
503
  return n.alpha = function(t) {
504
504
  return e(+t);
505
505
  }, n;
506
506
  })(.5);
507
507
  //#endregion
508
- //#region ../../node_modules/d3-shape/src/curve/catmullRomClosed.js
509
- function F(e, t) {
508
+ //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/catmullRomClosed.js
509
+ function Oe(e, t) {
510
510
  this._context = e, this._alpha = t;
511
511
  }
512
- F.prototype = {
513
- areaStart: T,
514
- areaEnd: T,
512
+ Oe.prototype = {
513
+ areaStart: D,
514
+ areaEnd: D,
515
515
  lineStart: function() {
516
516
  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;
517
517
  },
@@ -544,26 +544,26 @@ F.prototype = {
544
544
  this._point = 3, this._x5 = e, this._y5 = t;
545
545
  break;
546
546
  default:
547
- M(this, e, t);
547
+ z(this, e, t);
548
548
  break;
549
549
  }
550
550
  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;
551
551
  }
552
552
  };
553
- var Pe = (function e(t) {
553
+ var ke = (function e(t) {
554
554
  function n(e) {
555
- return t ? new F(e, t) : new A(e, 0);
555
+ return t ? new Oe(e, t) : new L(e, 0);
556
556
  }
557
557
  return n.alpha = function(t) {
558
558
  return e(+t);
559
559
  }, n;
560
560
  })(.5);
561
561
  //#endregion
562
- //#region ../../node_modules/d3-shape/src/curve/catmullRomOpen.js
563
- function I(e, t) {
562
+ //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/catmullRomOpen.js
563
+ function Ae(e, t) {
564
564
  this._context = e, this._alpha = t;
565
565
  }
566
- I.prototype = {
566
+ Ae.prototype = {
567
567
  areaStart: function() {
568
568
  this._line = 0;
569
569
  },
@@ -593,28 +593,28 @@ I.prototype = {
593
593
  break;
594
594
  case 3: this._point = 4;
595
595
  default:
596
- M(this, e, t);
596
+ z(this, e, t);
597
597
  break;
598
598
  }
599
599
  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;
600
600
  }
601
601
  };
602
- var Fe = (function e(t) {
602
+ var je = (function e(t) {
603
603
  function n(e) {
604
- return t ? new I(e, t) : new j(e, 0);
604
+ return t ? new Ae(e, t) : new R(e, 0);
605
605
  }
606
606
  return n.alpha = function(t) {
607
607
  return e(+t);
608
608
  }, n;
609
609
  })(.5);
610
610
  //#endregion
611
- //#region ../../node_modules/d3-shape/src/curve/linearClosed.js
612
- function L(e) {
611
+ //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/linearClosed.js
612
+ function Me(e) {
613
613
  this._context = e;
614
614
  }
615
- L.prototype = {
616
- areaStart: T,
617
- areaEnd: T,
615
+ Me.prototype = {
616
+ areaStart: D,
617
+ areaEnd: D,
618
618
  lineStart: function() {
619
619
  this._point = 0;
620
620
  },
@@ -625,30 +625,30 @@ L.prototype = {
625
625
  e = +e, t = +t, this._point ? this._context.lineTo(e, t) : (this._point = 1, this._context.moveTo(e, t));
626
626
  }
627
627
  };
628
- function Ie(e) {
629
- return new L(e);
628
+ function Ne(e) {
629
+ return new Me(e);
630
630
  }
631
631
  //#endregion
632
- //#region ../../node_modules/d3-shape/src/curve/monotone.js
633
- function R(e) {
632
+ //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/monotone.js
633
+ function Pe(e) {
634
634
  return e < 0 ? -1 : 1;
635
635
  }
636
- function z(e, t, n) {
636
+ function Fe(e, t, n) {
637
637
  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);
638
- return (R(a) + R(o)) * Math.min(Math.abs(a), Math.abs(o), .5 * Math.abs(s)) || 0;
638
+ return (Pe(a) + Pe(o)) * Math.min(Math.abs(a), Math.abs(o), .5 * Math.abs(s)) || 0;
639
639
  }
640
- function Le(e, t) {
640
+ function Ie(e, t) {
641
641
  var n = e._x1 - e._x0;
642
642
  return n ? (3 * (e._y1 - e._y0) / n - t) / 2 : t;
643
643
  }
644
- function B(e, t, n) {
644
+ function V(e, t, n) {
645
645
  var r = e._x0, i = e._y0, a = e._x1, o = e._y1, s = (a - r) / 3;
646
646
  e._context.bezierCurveTo(r + s, i + s * t, a - s, o - s * n, a, o);
647
647
  }
648
- function V(e) {
648
+ function H(e) {
649
649
  this._context = e;
650
650
  }
651
- V.prototype = {
651
+ H.prototype = {
652
652
  areaStart: function() {
653
653
  this._line = 0;
654
654
  },
@@ -664,7 +664,7 @@ V.prototype = {
664
664
  this._context.lineTo(this._x1, this._y1);
665
665
  break;
666
666
  case 3:
667
- B(this, this._t0, Le(this, this._t0));
667
+ V(this, this._t0, Ie(this, this._t0));
668
668
  break;
669
669
  }
670
670
  (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
@@ -680,26 +680,26 @@ V.prototype = {
680
680
  this._point = 2;
681
681
  break;
682
682
  case 2:
683
- this._point = 3, B(this, Le(this, n = z(this, e, t)), n);
683
+ this._point = 3, V(this, Ie(this, n = Fe(this, e, t)), n);
684
684
  break;
685
685
  default:
686
- B(this, this._t0, n = z(this, e, t));
686
+ V(this, this._t0, n = Fe(this, e, t));
687
687
  break;
688
688
  }
689
689
  this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t, this._t0 = n;
690
690
  }
691
691
  }
692
692
  };
693
- function Re(e) {
694
- this._context = new ze(e);
693
+ function Le(e) {
694
+ this._context = new Re(e);
695
695
  }
696
- (Re.prototype = Object.create(V.prototype)).point = function(e, t) {
697
- V.prototype.point.call(this, t, e);
696
+ (Le.prototype = Object.create(H.prototype)).point = function(e, t) {
697
+ H.prototype.point.call(this, t, e);
698
698
  };
699
- function ze(e) {
699
+ function Re(e) {
700
700
  this._context = e;
701
701
  }
702
- ze.prototype = {
702
+ Re.prototype = {
703
703
  moveTo: function(e, t) {
704
704
  this._context.moveTo(t, e);
705
705
  },
@@ -713,18 +713,18 @@ ze.prototype = {
713
713
  this._context.bezierCurveTo(t, e, r, n, a, i);
714
714
  }
715
715
  };
716
- function Be(e) {
717
- return new V(e);
716
+ function ze(e) {
717
+ return new H(e);
718
718
  }
719
- function Ve(e) {
720
- return new Re(e);
719
+ function Be(e) {
720
+ return new Le(e);
721
721
  }
722
722
  //#endregion
723
- //#region ../../node_modules/d3-shape/src/curve/natural.js
724
- function He(e) {
723
+ //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/natural.js
724
+ function Ve(e) {
725
725
  this._context = e;
726
726
  }
727
- He.prototype = {
727
+ Ve.prototype = {
728
728
  areaStart: function() {
729
729
  this._line = 0;
730
730
  },
@@ -737,14 +737,14 @@ He.prototype = {
737
737
  lineEnd: function() {
738
738
  var e = this._x, t = this._y, n = e.length;
739
739
  if (n) 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]);
740
- else for (var r = Ue(e), i = Ue(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]);
740
+ else for (var r = He(e), i = He(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]);
741
741
  (this._line || this._line !== 0 && n === 1) && this._context.closePath(), this._line = 1 - this._line, this._x = this._y = null;
742
742
  },
743
743
  point: function(e, t) {
744
744
  this._x.push(+e), this._y.push(+t);
745
745
  }
746
746
  };
747
- function Ue(e) {
747
+ function He(e) {
748
748
  var t, n = e.length - 1, r, i = Array(n), a = Array(n), o = Array(n);
749
749
  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];
750
750
  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];
@@ -752,15 +752,15 @@ function Ue(e) {
752
752
  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];
753
753
  return [i, a];
754
754
  }
755
- function We(e) {
756
- return new He(e);
755
+ function Ue(e) {
756
+ return new Ve(e);
757
757
  }
758
758
  //#endregion
759
- //#region ../../node_modules/d3-shape/src/curve/step.js
760
- function H(e, t) {
759
+ //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/step.js
760
+ function U(e, t) {
761
761
  this._context = e, this._t = t;
762
762
  }
763
- H.prototype = {
763
+ U.prototype = {
764
764
  areaStart: function() {
765
765
  this._line = 0;
766
766
  },
@@ -790,40 +790,40 @@ H.prototype = {
790
790
  this._x = e, this._y = t;
791
791
  }
792
792
  };
793
+ function We(e) {
794
+ return new U(e, .5);
795
+ }
793
796
  function Ge(e) {
794
- return new H(e, .5);
797
+ return new U(e, 0);
795
798
  }
796
799
  function Ke(e) {
797
- return new H(e, 0);
798
- }
799
- function qe(e) {
800
- return new H(e, 1);
800
+ return new U(e, 1);
801
801
  }
802
802
  //#endregion
803
- //#region ../../node_modules/mermaid/dist/chunks/mermaid.core/chunk-GEFDOKGD.mjs
804
- var Je = ce(), Ye = {
805
- curveBasis: we,
806
- curveBasisClosed: Ee,
807
- curveBasisOpen: Oe,
808
- curveBumpX: Se,
809
- curveBumpY: Ce,
810
- curveBundle: Ae,
811
- curveCardinalClosed: Me,
812
- curveCardinalOpen: Ne,
813
- curveCardinal: je,
814
- curveCatmullRomClosed: Pe,
815
- curveCatmullRomOpen: Fe,
816
- curveCatmullRom: P,
803
+ //#region ../../node_modules/.pnpm/mermaid@11.13.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-GEFDOKGD.mjs
804
+ var qe = ce(), Je = {
805
+ curveBasis: A,
806
+ curveBasisClosed: Se,
807
+ curveBasisOpen: Ce,
808
+ curveBumpX: T,
809
+ curveBumpY: E,
810
+ curveBundle: we,
811
+ curveCardinalClosed: Te,
812
+ curveCardinalOpen: Ee,
813
+ curveCardinal: I,
814
+ curveCatmullRomClosed: ke,
815
+ curveCatmullRomOpen: je,
816
+ curveCatmullRom: De,
817
817
  curveLinear: be,
818
- curveLinearClosed: Ie,
819
- curveMonotoneX: Be,
820
- curveMonotoneY: Ve,
821
- curveNatural: We,
822
- curveStep: Ge,
823
- curveStepAfter: qe,
824
- curveStepBefore: Ke
825
- }, Xe = /\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, Ze = /* @__PURE__ */ _(function(e, t) {
826
- let n = Qe(e, /(?:init\b)|(?:initialize\b)/), r = {};
818
+ curveLinearClosed: Ne,
819
+ curveMonotoneX: ze,
820
+ curveMonotoneY: Be,
821
+ curveNatural: Ue,
822
+ curveStep: We,
823
+ curveStepAfter: Ke,
824
+ curveStepBefore: Ge
825
+ }, Ye = /\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, Xe = /* @__PURE__ */ t(function(e, t) {
826
+ let n = Ze(e, /(?:init\b)|(?:initialize\b)/), r = {};
827
827
  if (Array.isArray(n)) {
828
828
  let e = n.map((e) => e.args);
829
829
  y(e), r = se(r, [...e]);
@@ -831,75 +831,75 @@ var Je = ce(), Ye = {
831
831
  if (!r) return;
832
832
  let i = oe(e, t), a = "config";
833
833
  return r[a] !== void 0 && (i === "flowchart-v2" && (i = "flowchart"), r[i] = r[a], delete r[a]), r;
834
- }, "detectInit"), Qe = /* @__PURE__ */ _(function(e, t = null) {
834
+ }, "detectInit"), Ze = /* @__PURE__ */ t(function(t, n = null) {
835
835
  try {
836
- let n = RegExp(`[%]{2}(?![{]${Xe.source})(?=[}][%]{2}).*
836
+ let r = RegExp(`[%]{2}(?![{]${Ye.source})(?=[}][%]{2}).*
837
837
  `, "ig");
838
- e = e.trim().replace(n, "").replace(/'/gm, "\""), g.debug(`Detecting diagram directive${t === null ? "" : " type:" + t} based on the text:${e}`);
839
- let r, i = [];
840
- for (; (r = b.exec(e)) !== null;) if (r.index === b.lastIndex && b.lastIndex++, r && !t || t && r[1]?.match(t) || t && r[2]?.match(t)) {
841
- let e = r[1] ? r[1] : r[2], t = r[3] ? r[3].trim() : r[4] ? JSON.parse(r[4].trim()) : null;
842
- i.push({
838
+ t = t.trim().replace(r, "").replace(/'/gm, "\""), e.debug(`Detecting diagram directive${n === null ? "" : " type:" + n} based on the text:${t}`);
839
+ let i, a = [];
840
+ for (; (i = b.exec(t)) !== null;) if (i.index === b.lastIndex && b.lastIndex++, i && !n || n && i[1]?.match(n) || n && i[2]?.match(n)) {
841
+ let e = i[1] ? i[1] : i[2], t = i[3] ? i[3].trim() : i[4] ? JSON.parse(i[4].trim()) : null;
842
+ a.push({
843
843
  type: e,
844
844
  args: t
845
845
  });
846
846
  }
847
- return i.length === 0 ? {
848
- type: e,
847
+ return a.length === 0 ? {
848
+ type: t,
849
849
  args: null
850
- } : i.length === 1 ? i[0] : i;
851
- } catch (n) {
852
- return g.error(`ERROR: ${n.message} - Unable to parse directive type: '${t}' based on the text: '${e}'`), {
850
+ } : a.length === 1 ? a[0] : a;
851
+ } catch (r) {
852
+ return e.error(`ERROR: ${r.message} - Unable to parse directive type: '${n}' based on the text: '${t}'`), {
853
853
  type: void 0,
854
854
  args: null
855
855
  };
856
856
  }
857
- }, "detectDirective"), $e = /* @__PURE__ */ _(function(e) {
857
+ }, "detectDirective"), Qe = /* @__PURE__ */ t(function(e) {
858
858
  return e.replace(b, "");
859
- }, "removeDirectives"), et = /* @__PURE__ */ _(function(e, t) {
859
+ }, "removeDirectives"), $e = /* @__PURE__ */ t(function(e, t) {
860
860
  for (let [n, r] of t.entries()) if (r.match(e)) return n;
861
861
  return -1;
862
862
  }, "isSubstringInArray");
863
- function U(e, t) {
864
- return e ? Ye[`curve${e.charAt(0).toUpperCase() + e.slice(1)}`] ?? t : t;
863
+ function W(e, t) {
864
+ return e ? Je[`curve${e.charAt(0).toUpperCase() + e.slice(1)}`] ?? t : t;
865
865
  }
866
- _(U, "interpolateToCurve");
867
- function tt(e, t) {
866
+ t(W, "interpolateToCurve");
867
+ function et(e, t) {
868
868
  let n = e.trim();
869
- if (n) return t.securityLevel === "loose" ? n : (0, Je.sanitizeUrl)(n);
869
+ if (n) return t.securityLevel === "loose" ? n : (0, qe.sanitizeUrl)(n);
870
870
  }
871
- _(tt, "formatUrl");
872
- var nt = /* @__PURE__ */ _((e, ...t) => {
873
- let n = e.split("."), r = n.length - 1, i = n[r], a = window;
874
- for (let t = 0; t < r; t++) if (a = a[n[t]], !a) {
875
- g.error(`Function name: ${e} not found in window`);
871
+ t(et, "formatUrl");
872
+ var tt = /* @__PURE__ */ t((t, ...n) => {
873
+ let r = t.split("."), i = r.length - 1, a = r[i], o = window;
874
+ for (let n = 0; n < i; n++) if (o = o[r[n]], !o) {
875
+ e.error(`Function name: ${t} not found in window`);
876
876
  return;
877
877
  }
878
- a[i](...t);
878
+ o[a](...n);
879
879
  }, "runFunc");
880
- function W(e, t) {
880
+ function G(e, t) {
881
881
  return !e || !t ? 0 : Math.sqrt((t.x - e.x) ** 2 + (t.y - e.y) ** 2);
882
882
  }
883
- _(W, "distance");
884
- function rt(e) {
883
+ t(G, "distance");
884
+ function nt(e) {
885
885
  let t, n = 0;
886
886
  return e.forEach((e) => {
887
- n += W(e, t), t = e;
888
- }), G(e, n / 2);
887
+ n += G(e, t), t = e;
888
+ }), K(e, n / 2);
889
889
  }
890
- _(rt, "traverseEdge");
891
- function it(e) {
892
- return e.length === 1 ? e[0] : rt(e);
890
+ t(nt, "traverseEdge");
891
+ function rt(e) {
892
+ return e.length === 1 ? e[0] : nt(e);
893
893
  }
894
- _(it, "calcLabelPosition");
895
- var at = /* @__PURE__ */ _((e, t = 2) => {
894
+ t(rt, "calcLabelPosition");
895
+ var it = /* @__PURE__ */ t((e, t = 2) => {
896
896
  let n = 10 ** t;
897
897
  return Math.round(e * n) / n;
898
- }, "roundNumber"), G = /* @__PURE__ */ _((e, t) => {
898
+ }, "roundNumber"), K = /* @__PURE__ */ t((e, t) => {
899
899
  let n, r = t;
900
900
  for (let t of e) {
901
901
  if (n) {
902
- let e = W(t, n);
902
+ let e = G(t, n);
903
903
  if (e === 0) return n;
904
904
  if (e < r) r -= e;
905
905
  else {
@@ -910,33 +910,33 @@ var at = /* @__PURE__ */ _((e, t = 2) => {
910
910
  y: t.y
911
911
  };
912
912
  if (i > 0 && i < 1) return {
913
- x: at((1 - i) * n.x + i * t.x, 5),
914
- y: at((1 - i) * n.y + i * t.y, 5)
913
+ x: it((1 - i) * n.x + i * t.x, 5),
914
+ y: it((1 - i) * n.y + i * t.y, 5)
915
915
  };
916
916
  }
917
917
  }
918
918
  n = t;
919
919
  }
920
920
  throw Error("Could not find a suitable point for the given distance");
921
- }, "calculatePoint"), ot = /* @__PURE__ */ _((e, t, n) => {
922
- g.info(`our points ${JSON.stringify(t)}`), t[0] !== n && (t = t.reverse());
923
- let r = G(t, 25), i = e ? 10 : 5, a = Math.atan2(t[0].y - r.y, t[0].x - r.x), o = {
921
+ }, "calculatePoint"), at = /* @__PURE__ */ t((t, n, r) => {
922
+ e.info(`our points ${JSON.stringify(n)}`), n[0] !== r && (n = n.reverse());
923
+ let i = K(n, 25), a = t ? 10 : 5, o = Math.atan2(n[0].y - i.y, n[0].x - i.x), s = {
924
924
  x: 0,
925
925
  y: 0
926
926
  };
927
- return o.x = Math.sin(a) * i + (t[0].x + r.x) / 2, o.y = -Math.cos(a) * i + (t[0].y + r.y) / 2, o;
927
+ 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;
928
928
  }, "calcCardinalityPosition");
929
- function st(e, t, n) {
930
- let r = structuredClone(n);
931
- g.info("our points", r), t !== "start_left" && t !== "start_right" && r.reverse();
932
- let i = G(r, 25 + e), a = 10 + e * .5, o = Math.atan2(r[0].y - i.y, r[0].x - i.x), s = {
929
+ function ot(t, n, r) {
930
+ let i = structuredClone(r);
931
+ e.info("our points", i), n !== "start_left" && n !== "start_right" && i.reverse();
932
+ let a = K(i, 25 + t), o = 10 + t * .5, s = Math.atan2(i[0].y - a.y, i[0].x - a.x), c = {
933
933
  x: 0,
934
934
  y: 0
935
935
  };
936
- return t === "start_left" ? (s.x = Math.sin(o + Math.PI) * a + (r[0].x + i.x) / 2, s.y = -Math.cos(o + Math.PI) * a + (r[0].y + i.y) / 2) : t === "end_right" ? (s.x = Math.sin(o - Math.PI) * a + (r[0].x + i.x) / 2 - 5, s.y = -Math.cos(o - Math.PI) * a + (r[0].y + i.y) / 2 - 5) : t === "end_left" ? (s.x = Math.sin(o) * a + (r[0].x + i.x) / 2 - 5, s.y = -Math.cos(o) * a + (r[0].y + i.y) / 2 - 5) : (s.x = Math.sin(o) * a + (r[0].x + i.x) / 2, s.y = -Math.cos(o) * a + (r[0].y + i.y) / 2), s;
936
+ 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 - 5, c.y = -Math.cos(s - Math.PI) * o + (i[0].y + a.y) / 2 - 5) : n === "end_left" ? (c.x = Math.sin(s) * o + (i[0].x + a.x) / 2 - 5, c.y = -Math.cos(s) * o + (i[0].y + a.y) / 2 - 5) : (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;
937
937
  }
938
- _(st, "calcTerminalLabelPosition");
939
- function K(e) {
938
+ t(ot, "calcTerminalLabelPosition");
939
+ function q(e) {
940
940
  let t = "", n = "";
941
941
  for (let r of e) r !== void 0 && (r.startsWith("color:") || r.startsWith("text-align:") ? n = n + r + ";" : t = t + r + ";");
942
942
  return {
@@ -944,15 +944,15 @@ function K(e) {
944
944
  labelStyle: n
945
945
  };
946
946
  }
947
- _(K, "getStylesFromArray");
948
- var q = 0, ct = /* @__PURE__ */ _(() => (q++, "id-" + Math.random().toString(36).substr(2, 12) + "-" + q), "generateId");
947
+ t(q, "getStylesFromArray");
948
+ var st = 0, ct = /* @__PURE__ */ t(() => (st++, "id-" + Math.random().toString(36).substr(2, 12) + "-" + st), "generateId");
949
949
  function lt(e) {
950
950
  let t = "";
951
951
  for (let n = 0; n < e; n++) t += "0123456789abcdef".charAt(Math.floor(Math.random() * 16));
952
952
  return t;
953
953
  }
954
- _(lt, "makeRandomHex");
955
- var ut = /* @__PURE__ */ _((e) => lt(e.length), "random"), dt = /* @__PURE__ */ _(function() {
954
+ t(lt, "makeRandomHex");
955
+ var ut = /* @__PURE__ */ t((e) => lt(e.length), "random"), dt = /* @__PURE__ */ t(function() {
956
956
  return {
957
957
  x: 0,
958
958
  y: 0,
@@ -967,12 +967,12 @@ var ut = /* @__PURE__ */ _((e) => lt(e.length), "random"), dt = /* @__PURE__ */
967
967
  valign: void 0,
968
968
  text: ""
969
969
  };
970
- }, "getTextObj"), ft = /* @__PURE__ */ _(function(e, t) {
970
+ }, "getTextObj"), ft = /* @__PURE__ */ t(function(e, t) {
971
971
  let n = t.text.replace(x.lineBreakRegex, " "), [, r] = Q(t.fontSize), i = e.append("text");
972
972
  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);
973
973
  let a = i.append("tspan");
974
974
  return a.attr("x", t.x + t.textMargin * 2), a.attr("fill", t.fill), a.text(n), i;
975
- }, "drawSimpleText"), pt = h((e, t, n) => {
975
+ }, "drawSimpleText"), pt = v((e, t, n) => {
976
976
  if (!e || (n = Object.assign({
977
977
  fontSize: 12,
978
978
  fontWeight: 400,
@@ -988,7 +988,7 @@ var ut = /* @__PURE__ */ _((e) => lt(e.length), "random"), dt = /* @__PURE__ */
988
988
  } else c + s >= t ? (i.push(a), a = e) : a = [a, e].filter(Boolean).join(" ");
989
989
  o + 1 === r.length && i.push(a);
990
990
  }), i.filter((e) => e !== "").join(n.joinWith);
991
- }, (e, t, n) => `${e}${t}${n.fontSize}${n.fontWeight}${n.fontFamily}${n.joinWith}`), mt = h((e, t, n = "-", r) => {
991
+ }, (e, t, n) => `${e}${t}${n.fontSize}${n.fontWeight}${n.fontFamily}${n.joinWith}`), mt = v((e, t, n = "-", r) => {
992
992
  r = Object.assign({
993
993
  fontSize: 12,
994
994
  fontWeight: 400,
@@ -1010,67 +1010,67 @@ var ut = /* @__PURE__ */ _((e) => lt(e.length), "random"), dt = /* @__PURE__ */
1010
1010
  function J(e, t) {
1011
1011
  return X(e, t).height;
1012
1012
  }
1013
- _(J, "calculateTextHeight");
1013
+ t(J, "calculateTextHeight");
1014
1014
  function Y(e, t) {
1015
1015
  return X(e, t).width;
1016
1016
  }
1017
- _(Y, "calculateTextWidth");
1018
- var X = h((e, t) => {
1019
- let { fontSize: n = 12, fontFamily: r = "Arial", fontWeight: i = 400 } = t;
1017
+ t(Y, "calculateTextWidth");
1018
+ var X = v((e, t) => {
1019
+ let { fontSize: r = 12, fontFamily: i = "Arial", fontWeight: a = 400 } = t;
1020
1020
  if (!e) return {
1021
1021
  width: 0,
1022
1022
  height: 0
1023
1023
  };
1024
- let [, a] = Q(n), o = ["sans-serif", r], s = e.split(x.lineBreakRegex), c = [], l = v("body");
1025
- if (!l.remove) return {
1024
+ let [, o] = Q(r), s = ["sans-serif", i], c = e.split(x.lineBreakRegex), l = [], u = n("body");
1025
+ if (!u.remove) return {
1026
1026
  width: 0,
1027
1027
  height: 0,
1028
1028
  lineHeight: 0
1029
1029
  };
1030
- let u = l.append("svg");
1031
- for (let e of o) {
1030
+ let d = u.append("svg");
1031
+ for (let e of s) {
1032
1032
  let t = 0, n = {
1033
1033
  width: 0,
1034
1034
  height: 0,
1035
1035
  lineHeight: 0
1036
1036
  };
1037
- for (let r of s) {
1038
- let o = dt();
1039
- o.text = r || "​";
1040
- let s = ft(u, o).style("font-size", a).style("font-weight", i).style("font-family", e), c = (s._groups || s)[0][0].getBBox();
1037
+ for (let r of c) {
1038
+ let i = dt();
1039
+ i.text = r || "​";
1040
+ let s = ft(d, i).style("font-size", o).style("font-weight", a).style("font-family", e), c = (s._groups || s)[0][0].getBBox();
1041
1041
  if (c.width === 0 && c.height === 0) throw Error("svg element not in render tree");
1042
1042
  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));
1043
1043
  }
1044
- c.push(n);
1044
+ l.push(n);
1045
1045
  }
1046
- return u.remove(), c[isNaN(c[1].height) || isNaN(c[1].width) || isNaN(c[1].lineHeight) || c[0].height > c[1].height && c[0].width > c[1].width && c[0].lineHeight > c[1].lineHeight ? 0 : 1];
1046
+ return d.remove(), l[isNaN(l[1].height) || isNaN(l[1].width) || isNaN(l[1].lineHeight) || l[0].height > l[1].height && l[0].width > l[1].width && l[0].lineHeight > l[1].lineHeight ? 0 : 1];
1047
1047
  }, (e, t) => `${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`), ht = class {
1048
1048
  constructor(e = !1, t) {
1049
1049
  this.count = 0, this.count = t ? t.length : 0, this.next = e ? () => this.count++ : () => Date.now();
1050
1050
  }
1051
1051
  static {
1052
- _(this, "InitIDGenerator");
1052
+ t(this, "InitIDGenerator");
1053
1053
  }
1054
- }, Z, gt = /* @__PURE__ */ _(function(e) {
1054
+ }, Z, gt = /* @__PURE__ */ t(function(e) {
1055
1055
  return Z ||= document.createElement("div"), e = escape(e).replace(/%26/g, "&").replace(/%23/g, "#").replace(/%3B/g, ";"), Z.innerHTML = e, unescape(Z.textContent);
1056
1056
  }, "entityDecode");
1057
1057
  function _t(e) {
1058
1058
  return "str" in e;
1059
1059
  }
1060
- _(_t, "isDetailedError");
1061
- var vt = /* @__PURE__ */ _((e, t, n, r) => {
1060
+ t(_t, "isDetailedError");
1061
+ var vt = /* @__PURE__ */ t((e, t, n, r) => {
1062
1062
  if (!r) return;
1063
1063
  let i = e.node()?.getBBox();
1064
1064
  i && e.append("text").text(r).attr("text-anchor", "middle").attr("x", i.x + i.width / 2).attr("y", -n).attr("class", t);
1065
- }, "insertTitle"), Q = /* @__PURE__ */ _((e) => {
1065
+ }, "insertTitle"), Q = /* @__PURE__ */ t((e) => {
1066
1066
  if (typeof e == "number") return [e, e + "px"];
1067
1067
  let t = parseInt(e ?? "", 10);
1068
1068
  return Number.isNaN(t) ? [void 0, void 0] : e === String(t) ? [t, e + "px"] : [t, e];
1069
1069
  }, "parseFontSize");
1070
1070
  function $(e, t) {
1071
- return ye({}, e, t);
1071
+ return ve({}, e, t);
1072
1072
  }
1073
- _($, "cleanAndMerge");
1073
+ t($, "cleanAndMerge");
1074
1074
  var yt = {
1075
1075
  assignWithDepth: se,
1076
1076
  wrapLabel: pt,
@@ -1078,24 +1078,24 @@ var yt = {
1078
1078
  calculateTextWidth: Y,
1079
1079
  calculateTextDimensions: X,
1080
1080
  cleanAndMerge: $,
1081
- detectInit: Ze,
1082
- detectDirective: Qe,
1083
- isSubstringInArray: et,
1084
- interpolateToCurve: U,
1085
- calcLabelPosition: it,
1086
- calcCardinalityPosition: ot,
1087
- calcTerminalLabelPosition: st,
1088
- formatUrl: tt,
1089
- getStylesFromArray: K,
1081
+ detectInit: Xe,
1082
+ detectDirective: Ze,
1083
+ isSubstringInArray: $e,
1084
+ interpolateToCurve: W,
1085
+ calcLabelPosition: rt,
1086
+ calcCardinalityPosition: at,
1087
+ calcTerminalLabelPosition: ot,
1088
+ formatUrl: et,
1089
+ getStylesFromArray: q,
1090
1090
  generateId: ct,
1091
1091
  random: ut,
1092
- runFunc: nt,
1092
+ runFunc: tt,
1093
1093
  entityDecode: gt,
1094
1094
  insertTitle: vt,
1095
1095
  isLabelCoordinateInPath: wt,
1096
1096
  parseFontSize: Q,
1097
1097
  InitIDGenerator: ht
1098
- }, bt = /* @__PURE__ */ _(function(e) {
1098
+ }, bt = /* @__PURE__ */ t(function(e) {
1099
1099
  let t = e;
1100
1100
  return t = t.replace(/style.*:\S*#.*;/g, function(e) {
1101
1101
  return e.substring(0, e.length - 1);
@@ -1105,17 +1105,17 @@ var yt = {
1105
1105
  let t = e.substring(1, e.length - 1);
1106
1106
  return /^\+?\d+$/.test(t) ? "fl°°" + t + "¶ß" : "fl°" + t + "¶ß";
1107
1107
  }), t;
1108
- }, "encodeEntities"), xt = /* @__PURE__ */ _(function(e) {
1108
+ }, "encodeEntities"), xt = /* @__PURE__ */ t(function(e) {
1109
1109
  return e.replace(/fl°°/g, "&#").replace(/fl°/g, "&").replace(/¶ß/g, ";");
1110
- }, "decodeEntities"), St = /* @__PURE__ */ _((e, t, { counter: n = 0, prefix: r, suffix: i }, a) => a || `${r ? `${r}_` : ""}${e}_${t}_${n}${i ? `_${i}` : ""}`, "getEdgeId");
1110
+ }, "decodeEntities"), St = /* @__PURE__ */ t((e, t, { counter: n = 0, prefix: r, suffix: i }, a) => a || `${r ? `${r}_` : ""}${e}_${t}_${n}${i ? `_${i}` : ""}`, "getEdgeId");
1111
1111
  function Ct(e) {
1112
1112
  return e ?? null;
1113
1113
  }
1114
- _(Ct, "handleUndefinedAttr");
1114
+ t(Ct, "handleUndefinedAttr");
1115
1115
  function wt(e, t) {
1116
1116
  let n = Math.round(e.x), r = Math.round(e.y), i = t.replace(/(\d+\.\d+)/g, (e) => Math.round(parseFloat(e)).toString());
1117
1117
  return i.includes(n.toString()) || i.includes(r.toString());
1118
1118
  }
1119
- _(wt, "isLabelCoordinateInPath");
1119
+ t(wt, "isLabelCoordinateInPath");
1120
1120
  //#endregion
1121
- export { P as C, Ce as D, Se as E, be as O, Ve as S, we as T, qe as _, bt as a, We as b, K as c, _t as d, Q as f, pt as g, yt as h, xt as i, ye as k, Ct as l, $e as m, Y as n, ct as o, ut as p, $ as r, St as s, J as t, U as u, Ke as v, je as w, Be as x, Ge as y };
1121
+ export { De as C, E as D, T as E, be as O, Be as S, A as T, Ke as _, bt as a, Ue as b, q as c, _t as d, Q as f, pt as g, yt as h, xt as i, ve as k, Ct as l, Qe as m, Y as n, ct as o, ut as p, $ as r, St as s, J as t, W as u, Ge as v, I as w, ze as x, We as y };