@antdv-next/x 0.3.0 → 1.0.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 (117) hide show
  1. package/dist/index.esm.js +2 -1
  2. package/dist/index.umd.js +2 -1
  3. package/dist/mermaid/Mermaid.d.ts +1 -1
  4. package/dist/mermaid/Mermaid.js +1 -0
  5. package/dist/package.js +1 -1
  6. package/dist-browser/Serializer-y_SfSPKv.js +262 -0
  7. package/dist-browser/_basePickBy-Cy7KVmkk.js +166 -0
  8. package/dist-browser/_baseUniq-Ch3HuHeT.js +682 -0
  9. package/dist-browser/arc-caEkbRYF.js +80 -0
  10. package/dist-browser/architecture-PBZL5I3N-DHfBr78A.js +3 -0
  11. package/dist-browser/architectureDiagram-2XIMDMQ5-D3IYLROv.js +4045 -0
  12. package/dist-browser/array-CWNufkl9.js +6 -0
  13. package/dist-browser/bash-CXEwhtGQ.js +3 -0
  14. package/dist-browser/blockDiagram-WCTKOSBZ-nXanZ0sc.js +3025 -0
  15. package/dist-browser/c4Diagram-IC4MRINW-C-gVp6th.js +2964 -0
  16. package/dist-browser/channel-DoEe9DF9.js +5 -0
  17. package/dist-browser/chunk-4BX2VUAB-fLFD6XW0.js +8 -0
  18. package/dist-browser/chunk-55IACEB6-OtyKJzCH.js +8 -0
  19. package/dist-browser/chunk-7E7YKBS2-C1dd36rm.js +23 -0
  20. package/dist-browser/chunk-7R4GIKGN-DuTRhdsf.js +2596 -0
  21. package/dist-browser/chunk-C72U2L5F-ClmZGhFC.js +23 -0
  22. package/dist-browser/chunk-EGIJ26TM-Bar_u1MN.js +23 -0
  23. package/dist-browser/chunk-FMBD7UC4-C_uJ_JJA.js +5 -0
  24. package/dist-browser/chunk-GEFDOKGD-P7WhyrTU.js +1121 -0
  25. package/dist-browser/chunk-GLR3WWYH-BvazRgdo.js +41 -0
  26. package/dist-browser/chunk-HHEYEP7N-rv5s5WD4.js +9 -0
  27. package/dist-browser/chunk-JSJVCQXG-89HUGe9V.js +60 -0
  28. package/dist-browser/chunk-KX2RTZJC-pMHnNRQg.js +25 -0
  29. package/dist-browser/chunk-KYZI473N-DJmSs1gK.js +3434 -0
  30. package/dist-browser/chunk-L3YUKLVL-Ck54qytQ.js +23 -0
  31. package/dist-browser/chunk-MX3YWQON-MkpK3uBD.js +80 -0
  32. package/dist-browser/chunk-NQ4KR5QH-DGshodQv.js +2002 -0
  33. package/dist-browser/chunk-O4XLMI2P-e-ZzDQwg.js +511 -0
  34. package/dist-browser/chunk-OZEHJAEY-DULNd43V.js +64 -0
  35. package/dist-browser/chunk-PQ6SQG4A-CQ9Csv7s.js +67 -0
  36. package/dist-browser/chunk-PU5JKC2W-DkEFvrjH.js +1885 -0
  37. package/dist-browser/chunk-QZHKN3VN-qww1plfw.js +15 -0
  38. package/dist-browser/chunk-R5LLSJPH-BERXSDGJ.js +35 -0
  39. package/dist-browser/chunk-WL4C6EOR-C-d8WPS7.js +3194 -0
  40. package/dist-browser/chunk-WQLz0Won.js +20 -0
  41. package/dist-browser/chunk-XIRO2GV7-CFHofxVB.js +30 -0
  42. package/dist-browser/chunk-XPW4576I-DgvoNZkW.js +1146 -0
  43. package/dist-browser/chunk-XZSTWKYB-k8_EXrSa.js +15797 -0
  44. package/dist-browser/chunk-YBOYWFTD-BUW4AzEX.js +32 -0
  45. package/dist-browser/classDiagram-VBA2DB6C-DWTAs0Zm.js +29 -0
  46. package/dist-browser/classDiagram-v2-RAHNMMFH-CoxCdmrt.js +29 -0
  47. package/dist-browser/clone-BXDbKCDu.js +8 -0
  48. package/dist-browser/cose-bilkent-S5V4N54A-CnrS2OC1.js +2250 -0
  49. package/dist-browser/css-D9vrnIUE.js +2 -0
  50. package/dist-browser/css-Dh17kjFY.js +3 -0
  51. package/dist-browser/cytoscape.esm-BY3wHcbp.js +18100 -0
  52. package/dist-browser/dagre-BJOzGlhW.js +1483 -0
  53. package/dist-browser/dagre-KLK3FWXG-CFC0naVr.js +294 -0
  54. package/dist-browser/defaultLocale-BaPFSbai.js +201 -0
  55. package/dist-browser/diagram-E7M64L7V-DxuJj8ZG.js +527 -0
  56. package/dist-browser/diagram-IFDJBPK2-BOpPZ6pu.js +213 -0
  57. package/dist-browser/diagram-P4PSJMXO--ChDmcya.js +133 -0
  58. package/dist-browser/diff-BSu5dsa2.js +3 -0
  59. package/dist-browser/dist-DltyvPj3.js +50 -0
  60. package/dist-browser/erDiagram-INFDFZHY-BA3m-v87.js +1666 -0
  61. package/dist-browser/flowDiagram-PKNHOUZH-BCq6k3kr.js +4161 -0
  62. package/dist-browser/ganttDiagram-A5KZAMGK-DdMePS21.js +3075 -0
  63. package/dist-browser/gitGraph-HDMCJU4V-DbzpICZW.js +3 -0
  64. package/dist-browser/gitGraphDiagram-K3NZZRJ6-CLbRwChG.js +625 -0
  65. package/dist-browser/graphlib-C7ysKz4u.js +225 -0
  66. package/dist-browser/html-BmZO1Eoo.js +10 -0
  67. package/dist-browser/html-DnTYsv5k.js +2 -0
  68. package/dist-browser/index.es.js +56149 -0
  69. package/dist-browser/index.umd.js +3281 -0
  70. package/dist-browser/info-3K5VOQVL-CpUiQuel.js +3 -0
  71. package/dist-browser/infoDiagram-LFFYTUFH-DQAZ-vFk.js +19 -0
  72. package/dist-browser/init-PAs0hR-b.js +15 -0
  73. package/dist-browser/isArrayLikeObject-y3HlYDaX.js +578 -0
  74. package/dist-browser/isEmpty-2JxdWtc-.js +35 -0
  75. package/dist-browser/ishikawaDiagram-PHBUUO56-B0r2IgGz.js +717 -0
  76. package/dist-browser/javascript-BXHK_bZ2.js +3 -0
  77. package/dist-browser/javascript-NV_FQBab.js +2 -0
  78. package/dist-browser/journeyDiagram-4ABVD52K-DnMUhOvg.js +883 -0
  79. package/dist-browser/json-C8Y9C4Ne.js +2 -0
  80. package/dist-browser/json-DZ_9-j3Q.js +3 -0
  81. package/dist-browser/jsx-CxlNNvOI.js +3 -0
  82. package/dist-browser/kanban-definition-K7BYSVSG-Da5Y-nJy.js +971 -0
  83. package/dist-browser/katex-b-xdokOf.js +22000 -0
  84. package/dist-browser/line-h2iCTGsE.js +34 -0
  85. package/dist-browser/linear-Bv7XrZCH.js +289 -0
  86. package/dist-browser/markdown-BKwT7HWz.js +3 -0
  87. package/dist-browser/math-DPzKeDKn.js +10 -0
  88. package/dist-browser/mermaid-C1RUu_Iw.js +3 -0
  89. package/dist-browser/mermaid-parser.core-kTgpNO7M.js +59 -0
  90. package/dist-browser/mermaid.core-DRuUNxpC.js +680 -0
  91. package/dist-browser/mindmap-definition-YRQLILUH-CYeqnCde.js +964 -0
  92. package/dist-browser/ordinal-D8PKtxfM.js +65 -0
  93. package/dist-browser/packet-RMMSAZCW-UTFQ0FQx.js +3 -0
  94. package/dist-browser/path-DZ-6AyWK.js +85 -0
  95. package/dist-browser/pie-UPGHQEXC-CarAcBSi.js +3 -0
  96. package/dist-browser/pieDiagram-SKSYHLDU-DAsfTGvY.js +165 -0
  97. package/dist-browser/python-BQM8giqx.js +3 -0
  98. package/dist-browser/quadrantDiagram-337W2JSQ-CZLbmQS4.js +1974 -0
  99. package/dist-browser/radar-KQ55EAFF-NXK5PC9R.js +3 -0
  100. package/dist-browser/requirementDiagram-Z7DCOOCP-Cb_Ygnfe.js +2201 -0
  101. package/dist-browser/rough.esm-C_hJ3ICT.js +1352 -0
  102. package/dist-browser/sankeyDiagram-WA2Y5GQK-DBe5YfW4.js +920 -0
  103. package/dist-browser/sequenceDiagram-2WXFIKYE-C_KUoojT.js +4109 -0
  104. package/dist-browser/src-BukXhifV.js +2146 -0
  105. package/dist-browser/stateDiagram-RAJIS63D-boG6DyfW.js +217 -0
  106. package/dist-browser/stateDiagram-v2-FVOUBMTO-DHCajhrN.js +27 -0
  107. package/dist-browser/timeline-definition-YZTLITO2-pFt6rZ6S.js +830 -0
  108. package/dist-browser/treemap-KZPCXAKY-Cj9QakFB.js +3 -0
  109. package/dist-browser/tsx-DIYEV_g7.js +3 -0
  110. package/dist-browser/typescript-B6MWEsBH.js +3 -0
  111. package/dist-browser/typescript-CR48gG1F.js +2 -0
  112. package/dist-browser/vennDiagram-LZ73GAT5-VaCO6k4H.js +1858 -0
  113. package/dist-browser/vue-BJ0ov2CZ.js +21 -0
  114. package/dist-browser/vue-html-D0gyDbfn.js +5 -0
  115. package/dist-browser/xychartDiagram-JWTSCODW-xS5ybemA.js +2041 -0
  116. package/dist-browser/yaml-Y0CqUPTQ.js +3 -0
  117. package/package.json +15 -3
@@ -0,0 +1,1121 @@
1
+ import { g as e, h as t, p as n } from "./src-BukXhifV.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-y3HlYDaX.js";
3
+ import { I as y, f as oe, m as b, r as se, s as x } from "./chunk-7R4GIKGN-DuTRhdsf.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, 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
+ if (t === null) return !0;
12
+ var n = fe.call(t, "constructor") && t.constructor;
13
+ return typeof n == "function" && n instanceof n && S.call(n) == pe;
14
+ }
15
+ //#endregion
16
+ //#region ../../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
+ }
20
+ //#endregion
21
+ //#region ../../node_modules/lodash-es/_safeGet.js
22
+ function w(e, t) {
23
+ if (!(t === "constructor" && typeof e[t] == "function") && t != "__proto__") return e[t];
24
+ }
25
+ //#endregion
26
+ //#region ../../node_modules/lodash-es/toPlainObject.js
27
+ function he(e) {
28
+ return s(e, _(e));
29
+ }
30
+ //#endregion
31
+ //#region ../../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
+ if (m) {
35
+ C(e, n, m);
36
+ return;
37
+ }
38
+ var h = s ? s(u, p, n + "", e, t, l) : void 0, g = h === void 0;
39
+ if (g) {
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
+ }
43
+ g && (l.set(p, h), o(h, p, r, s, l), l.delete(p)), C(e, n, h);
44
+ }
45
+ //#endregion
46
+ //#region ../../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
+ else {
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
+ }
54
+ }, _);
55
+ }
56
+ //#endregion
57
+ //#region ../../node_modules/lodash-es/merge.js
58
+ var ve = l(function(e, t, n) {
59
+ _e(e, t, n);
60
+ });
61
+ //#endregion
62
+ //#region ../../node_modules/d3-shape/src/curve/linear.js
63
+ function ye(e) {
64
+ this._context = e;
65
+ }
66
+ ye.prototype = {
67
+ areaStart: function() {
68
+ this._line = 0;
69
+ },
70
+ areaEnd: function() {
71
+ this._line = NaN;
72
+ },
73
+ lineStart: function() {
74
+ this._point = 0;
75
+ },
76
+ lineEnd: function() {
77
+ (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
78
+ },
79
+ point: function(e, t) {
80
+ switch (e = +e, t = +t, this._point) {
81
+ case 0:
82
+ this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
83
+ break;
84
+ case 1: this._point = 2;
85
+ default:
86
+ this._context.lineTo(e, t);
87
+ break;
88
+ }
89
+ }
90
+ };
91
+ function be(e) {
92
+ return new ye(e);
93
+ }
94
+ //#endregion
95
+ //#region ../../node_modules/d3-shape/src/curve/bump.js
96
+ var xe = class {
97
+ constructor(e, t) {
98
+ this._context = e, this._x = t;
99
+ }
100
+ areaStart() {
101
+ this._line = 0;
102
+ }
103
+ areaEnd() {
104
+ this._line = NaN;
105
+ }
106
+ lineStart() {
107
+ this._point = 0;
108
+ }
109
+ lineEnd() {
110
+ (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
111
+ }
112
+ point(e, t) {
113
+ switch (e = +e, t = +t, this._point) {
114
+ case 0:
115
+ this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
116
+ break;
117
+ case 1: this._point = 2;
118
+ default:
119
+ 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);
120
+ break;
121
+ }
122
+ this._x0 = e, this._y0 = t;
123
+ }
124
+ };
125
+ function T(e) {
126
+ return new xe(e, !0);
127
+ }
128
+ function E(e) {
129
+ return new xe(e, !1);
130
+ }
131
+ //#endregion
132
+ //#region ../../node_modules/d3-shape/src/noop.js
133
+ function D() {}
134
+ //#endregion
135
+ //#region ../../node_modules/d3-shape/src/curve/basis.js
136
+ function O(e, t, n) {
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
+ }
139
+ function k(e) {
140
+ this._context = e;
141
+ }
142
+ k.prototype = {
143
+ areaStart: function() {
144
+ this._line = 0;
145
+ },
146
+ areaEnd: function() {
147
+ this._line = NaN;
148
+ },
149
+ lineStart: function() {
150
+ this._x0 = this._x1 = this._y0 = this._y1 = NaN, this._point = 0;
151
+ },
152
+ lineEnd: function() {
153
+ switch (this._point) {
154
+ case 3: O(this, this._x1, this._y1);
155
+ case 2:
156
+ this._context.lineTo(this._x1, this._y1);
157
+ break;
158
+ }
159
+ (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
160
+ },
161
+ point: function(e, t) {
162
+ switch (e = +e, t = +t, this._point) {
163
+ case 0:
164
+ this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
165
+ break;
166
+ case 1:
167
+ this._point = 2;
168
+ break;
169
+ case 2: this._point = 3, this._context.lineTo((5 * this._x0 + this._x1) / 6, (5 * this._y0 + this._y1) / 6);
170
+ default:
171
+ O(this, e, t);
172
+ break;
173
+ }
174
+ this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
175
+ }
176
+ };
177
+ function A(e) {
178
+ return new k(e);
179
+ }
180
+ //#endregion
181
+ //#region ../../node_modules/d3-shape/src/curve/basisClosed.js
182
+ function j(e) {
183
+ this._context = e;
184
+ }
185
+ j.prototype = {
186
+ areaStart: D,
187
+ areaEnd: D,
188
+ lineStart: function() {
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
+ },
191
+ lineEnd: function() {
192
+ switch (this._point) {
193
+ case 1:
194
+ this._context.moveTo(this._x2, this._y2), this._context.closePath();
195
+ break;
196
+ case 2:
197
+ 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();
198
+ break;
199
+ case 3:
200
+ this.point(this._x2, this._y2), this.point(this._x3, this._y3), this.point(this._x4, this._y4);
201
+ break;
202
+ }
203
+ },
204
+ point: function(e, t) {
205
+ switch (e = +e, t = +t, this._point) {
206
+ case 0:
207
+ this._point = 1, this._x2 = e, this._y2 = t;
208
+ break;
209
+ case 1:
210
+ this._point = 2, this._x3 = e, this._y3 = t;
211
+ break;
212
+ case 2:
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
+ break;
215
+ default:
216
+ O(this, e, t);
217
+ break;
218
+ }
219
+ this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
220
+ }
221
+ };
222
+ function Se(e) {
223
+ return new j(e);
224
+ }
225
+ //#endregion
226
+ //#region ../../node_modules/d3-shape/src/curve/basisOpen.js
227
+ function M(e) {
228
+ this._context = e;
229
+ }
230
+ M.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._y0 = this._y1 = NaN, this._point = 0;
239
+ },
240
+ lineEnd: function() {
241
+ (this._line || this._line !== 0 && this._point === 3) && this._context.closePath(), this._line = 1 - this._line;
242
+ },
243
+ point: function(e, t) {
244
+ switch (e = +e, t = +t, this._point) {
245
+ case 0:
246
+ this._point = 1;
247
+ break;
248
+ case 1:
249
+ this._point = 2;
250
+ break;
251
+ case 2:
252
+ this._point = 3;
253
+ var n = (this._x0 + 4 * this._x1 + e) / 6, r = (this._y0 + 4 * this._y1 + t) / 6;
254
+ this._line ? this._context.lineTo(n, r) : this._context.moveTo(n, r);
255
+ break;
256
+ case 3: this._point = 4;
257
+ default:
258
+ O(this, e, t);
259
+ break;
260
+ }
261
+ this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
262
+ }
263
+ };
264
+ function Ce(e) {
265
+ return new M(e);
266
+ }
267
+ //#endregion
268
+ //#region ../../node_modules/d3-shape/src/curve/bundle.js
269
+ function N(e, t) {
270
+ this._basis = new k(e), this._beta = t;
271
+ }
272
+ N.prototype = {
273
+ lineStart: function() {
274
+ this._x = [], this._y = [], this._basis.lineStart();
275
+ },
276
+ lineEnd: function() {
277
+ var e = this._x, t = this._y, n = e.length - 1;
278
+ 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));
279
+ this._x = this._y = null, this._basis.lineEnd();
280
+ },
281
+ point: function(e, t) {
282
+ this._x.push(+e), this._y.push(+t);
283
+ }
284
+ };
285
+ var we = (function e(t) {
286
+ function n(e) {
287
+ return t === 1 ? new k(e) : new N(e, t);
288
+ }
289
+ return n.beta = function(t) {
290
+ return e(+t);
291
+ }, n;
292
+ })(.85);
293
+ //#endregion
294
+ //#region ../../node_modules/d3-shape/src/curve/cardinal.js
295
+ function P(e, t, n) {
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
+ }
298
+ function F(e, t) {
299
+ this._context = e, this._k = (1 - t) / 6;
300
+ }
301
+ F.prototype = {
302
+ areaStart: function() {
303
+ this._line = 0;
304
+ },
305
+ areaEnd: function() {
306
+ this._line = NaN;
307
+ },
308
+ lineStart: function() {
309
+ this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._point = 0;
310
+ },
311
+ lineEnd: function() {
312
+ switch (this._point) {
313
+ case 2:
314
+ this._context.lineTo(this._x2, this._y2);
315
+ break;
316
+ case 3:
317
+ P(this, this._x1, this._y1);
318
+ break;
319
+ }
320
+ (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
321
+ },
322
+ point: function(e, t) {
323
+ switch (e = +e, t = +t, this._point) {
324
+ case 0:
325
+ this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
326
+ break;
327
+ case 1:
328
+ this._point = 2, this._x1 = e, this._y1 = t;
329
+ break;
330
+ case 2: this._point = 3;
331
+ default:
332
+ P(this, e, t);
333
+ break;
334
+ }
335
+ this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
336
+ }
337
+ };
338
+ var I = (function e(t) {
339
+ function n(e) {
340
+ return new F(e, t);
341
+ }
342
+ return n.tension = function(t) {
343
+ return e(+t);
344
+ }, n;
345
+ })(0);
346
+ //#endregion
347
+ //#region ../../node_modules/d3-shape/src/curve/cardinalClosed.js
348
+ function L(e, t) {
349
+ this._context = e, this._k = (1 - t) / 6;
350
+ }
351
+ L.prototype = {
352
+ areaStart: D,
353
+ areaEnd: D,
354
+ lineStart: function() {
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
+ },
357
+ lineEnd: function() {
358
+ switch (this._point) {
359
+ case 1:
360
+ this._context.moveTo(this._x3, this._y3), this._context.closePath();
361
+ break;
362
+ case 2:
363
+ this._context.lineTo(this._x3, this._y3), this._context.closePath();
364
+ break;
365
+ case 3:
366
+ this.point(this._x3, this._y3), this.point(this._x4, this._y4), this.point(this._x5, this._y5);
367
+ break;
368
+ }
369
+ },
370
+ point: function(e, t) {
371
+ switch (e = +e, t = +t, this._point) {
372
+ case 0:
373
+ this._point = 1, this._x3 = e, this._y3 = t;
374
+ break;
375
+ case 1:
376
+ this._point = 2, this._context.moveTo(this._x4 = e, this._y4 = t);
377
+ break;
378
+ case 2:
379
+ this._point = 3, this._x5 = e, this._y5 = t;
380
+ break;
381
+ default:
382
+ P(this, e, t);
383
+ break;
384
+ }
385
+ this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
386
+ }
387
+ };
388
+ var Te = (function e(t) {
389
+ function n(e) {
390
+ return new L(e, t);
391
+ }
392
+ return n.tension = function(t) {
393
+ return e(+t);
394
+ }, n;
395
+ })(0);
396
+ //#endregion
397
+ //#region ../../node_modules/d3-shape/src/curve/cardinalOpen.js
398
+ function R(e, t) {
399
+ this._context = e, this._k = (1 - t) / 6;
400
+ }
401
+ R.prototype = {
402
+ areaStart: function() {
403
+ this._line = 0;
404
+ },
405
+ areaEnd: function() {
406
+ this._line = NaN;
407
+ },
408
+ lineStart: function() {
409
+ this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._point = 0;
410
+ },
411
+ lineEnd: function() {
412
+ (this._line || this._line !== 0 && this._point === 3) && this._context.closePath(), this._line = 1 - this._line;
413
+ },
414
+ point: function(e, t) {
415
+ switch (e = +e, t = +t, this._point) {
416
+ case 0:
417
+ this._point = 1;
418
+ break;
419
+ case 1:
420
+ this._point = 2;
421
+ break;
422
+ case 2:
423
+ this._point = 3, this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2);
424
+ break;
425
+ case 3: this._point = 4;
426
+ default:
427
+ P(this, e, t);
428
+ break;
429
+ }
430
+ this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
431
+ }
432
+ };
433
+ var Ee = (function e(t) {
434
+ function n(e) {
435
+ return new R(e, t);
436
+ }
437
+ return n.tension = function(t) {
438
+ return e(+t);
439
+ }, n;
440
+ })(0);
441
+ //#endregion
442
+ //#region ../../node_modules/d3-shape/src/curve/catmullRom.js
443
+ function z(e, t, n) {
444
+ var r = e._x1, i = e._y1, a = e._x2, o = e._y2;
445
+ if (e._l01_a > 1e-12) {
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);
447
+ 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;
448
+ }
449
+ if (e._l23_a > 1e-12) {
450
+ 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);
451
+ 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;
452
+ }
453
+ e._context.bezierCurveTo(r, i, a, o, e._x2, e._y2);
454
+ }
455
+ function B(e, t) {
456
+ this._context = e, this._alpha = t;
457
+ }
458
+ B.prototype = {
459
+ areaStart: function() {
460
+ this._line = 0;
461
+ },
462
+ areaEnd: function() {
463
+ this._line = NaN;
464
+ },
465
+ lineStart: function() {
466
+ 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;
467
+ },
468
+ lineEnd: function() {
469
+ switch (this._point) {
470
+ case 2:
471
+ this._context.lineTo(this._x2, this._y2);
472
+ break;
473
+ case 3:
474
+ this.point(this._x2, this._y2);
475
+ break;
476
+ }
477
+ (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
478
+ },
479
+ point: function(e, t) {
480
+ if (e = +e, t = +t, this._point) {
481
+ var n = this._x2 - e, r = this._y2 - t;
482
+ this._l23_a = Math.sqrt(this._l23_2a = (n * n + r * r) ** +this._alpha);
483
+ }
484
+ switch (this._point) {
485
+ case 0:
486
+ this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
487
+ break;
488
+ case 1:
489
+ this._point = 2;
490
+ break;
491
+ case 2: this._point = 3;
492
+ default:
493
+ z(this, e, t);
494
+ break;
495
+ }
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
+ }
498
+ };
499
+ var De = (function e(t) {
500
+ function n(e) {
501
+ return t ? new B(e, t) : new F(e, 0);
502
+ }
503
+ return n.alpha = function(t) {
504
+ return e(+t);
505
+ }, n;
506
+ })(.5);
507
+ //#endregion
508
+ //#region ../../node_modules/d3-shape/src/curve/catmullRomClosed.js
509
+ function Oe(e, t) {
510
+ this._context = e, this._alpha = t;
511
+ }
512
+ Oe.prototype = {
513
+ areaStart: D,
514
+ areaEnd: D,
515
+ lineStart: function() {
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
+ },
518
+ lineEnd: function() {
519
+ switch (this._point) {
520
+ case 1:
521
+ this._context.moveTo(this._x3, this._y3), this._context.closePath();
522
+ break;
523
+ case 2:
524
+ this._context.lineTo(this._x3, this._y3), this._context.closePath();
525
+ break;
526
+ case 3:
527
+ this.point(this._x3, this._y3), this.point(this._x4, this._y4), this.point(this._x5, this._y5);
528
+ break;
529
+ }
530
+ },
531
+ point: function(e, t) {
532
+ if (e = +e, t = +t, this._point) {
533
+ var n = this._x2 - e, r = this._y2 - t;
534
+ this._l23_a = Math.sqrt(this._l23_2a = (n * n + r * r) ** +this._alpha);
535
+ }
536
+ switch (this._point) {
537
+ case 0:
538
+ this._point = 1, this._x3 = e, this._y3 = t;
539
+ break;
540
+ case 1:
541
+ this._point = 2, this._context.moveTo(this._x4 = e, this._y4 = t);
542
+ break;
543
+ case 2:
544
+ this._point = 3, this._x5 = e, this._y5 = t;
545
+ break;
546
+ default:
547
+ z(this, e, t);
548
+ break;
549
+ }
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
+ }
552
+ };
553
+ var ke = (function e(t) {
554
+ function n(e) {
555
+ return t ? new Oe(e, t) : new L(e, 0);
556
+ }
557
+ return n.alpha = function(t) {
558
+ return e(+t);
559
+ }, n;
560
+ })(.5);
561
+ //#endregion
562
+ //#region ../../node_modules/d3-shape/src/curve/catmullRomOpen.js
563
+ function Ae(e, t) {
564
+ this._context = e, this._alpha = t;
565
+ }
566
+ Ae.prototype = {
567
+ areaStart: function() {
568
+ this._line = 0;
569
+ },
570
+ areaEnd: function() {
571
+ this._line = NaN;
572
+ },
573
+ lineStart: function() {
574
+ 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;
575
+ },
576
+ lineEnd: function() {
577
+ (this._line || this._line !== 0 && this._point === 3) && this._context.closePath(), this._line = 1 - this._line;
578
+ },
579
+ point: function(e, t) {
580
+ if (e = +e, t = +t, this._point) {
581
+ var n = this._x2 - e, r = this._y2 - t;
582
+ this._l23_a = Math.sqrt(this._l23_2a = (n * n + r * r) ** +this._alpha);
583
+ }
584
+ switch (this._point) {
585
+ case 0:
586
+ this._point = 1;
587
+ break;
588
+ case 1:
589
+ this._point = 2;
590
+ break;
591
+ case 2:
592
+ this._point = 3, this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2);
593
+ break;
594
+ case 3: this._point = 4;
595
+ default:
596
+ z(this, e, t);
597
+ break;
598
+ }
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
+ }
601
+ };
602
+ var je = (function e(t) {
603
+ function n(e) {
604
+ return t ? new Ae(e, t) : new R(e, 0);
605
+ }
606
+ return n.alpha = function(t) {
607
+ return e(+t);
608
+ }, n;
609
+ })(.5);
610
+ //#endregion
611
+ //#region ../../node_modules/d3-shape/src/curve/linearClosed.js
612
+ function Me(e) {
613
+ this._context = e;
614
+ }
615
+ Me.prototype = {
616
+ areaStart: D,
617
+ areaEnd: D,
618
+ lineStart: function() {
619
+ this._point = 0;
620
+ },
621
+ lineEnd: function() {
622
+ this._point && this._context.closePath();
623
+ },
624
+ point: function(e, t) {
625
+ e = +e, t = +t, this._point ? this._context.lineTo(e, t) : (this._point = 1, this._context.moveTo(e, t));
626
+ }
627
+ };
628
+ function Ne(e) {
629
+ return new Me(e);
630
+ }
631
+ //#endregion
632
+ //#region ../../node_modules/d3-shape/src/curve/monotone.js
633
+ function Pe(e) {
634
+ return e < 0 ? -1 : 1;
635
+ }
636
+ function Fe(e, t, n) {
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 (Pe(a) + Pe(o)) * Math.min(Math.abs(a), Math.abs(o), .5 * Math.abs(s)) || 0;
639
+ }
640
+ function Ie(e, t) {
641
+ var n = e._x1 - e._x0;
642
+ return n ? (3 * (e._y1 - e._y0) / n - t) / 2 : t;
643
+ }
644
+ function V(e, t, n) {
645
+ var r = e._x0, i = e._y0, a = e._x1, o = e._y1, s = (a - r) / 3;
646
+ e._context.bezierCurveTo(r + s, i + s * t, a - s, o - s * n, a, o);
647
+ }
648
+ function H(e) {
649
+ this._context = e;
650
+ }
651
+ H.prototype = {
652
+ areaStart: function() {
653
+ this._line = 0;
654
+ },
655
+ areaEnd: function() {
656
+ this._line = NaN;
657
+ },
658
+ lineStart: function() {
659
+ this._x0 = this._x1 = this._y0 = this._y1 = this._t0 = NaN, this._point = 0;
660
+ },
661
+ lineEnd: function() {
662
+ switch (this._point) {
663
+ case 2:
664
+ this._context.lineTo(this._x1, this._y1);
665
+ break;
666
+ case 3:
667
+ V(this, this._t0, Ie(this, this._t0));
668
+ break;
669
+ }
670
+ (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
671
+ },
672
+ point: function(e, t) {
673
+ var n = NaN;
674
+ if (e = +e, t = +t, !(e === this._x1 && t === this._y1)) {
675
+ switch (this._point) {
676
+ case 0:
677
+ this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
678
+ break;
679
+ case 1:
680
+ this._point = 2;
681
+ break;
682
+ case 2:
683
+ this._point = 3, V(this, Ie(this, n = Fe(this, e, t)), n);
684
+ break;
685
+ default:
686
+ V(this, this._t0, n = Fe(this, e, t));
687
+ break;
688
+ }
689
+ this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t, this._t0 = n;
690
+ }
691
+ }
692
+ };
693
+ function Le(e) {
694
+ this._context = new Re(e);
695
+ }
696
+ (Le.prototype = Object.create(H.prototype)).point = function(e, t) {
697
+ H.prototype.point.call(this, t, e);
698
+ };
699
+ function Re(e) {
700
+ this._context = e;
701
+ }
702
+ Re.prototype = {
703
+ moveTo: function(e, t) {
704
+ this._context.moveTo(t, e);
705
+ },
706
+ closePath: function() {
707
+ this._context.closePath();
708
+ },
709
+ lineTo: function(e, t) {
710
+ this._context.lineTo(t, e);
711
+ },
712
+ bezierCurveTo: function(e, t, n, r, i, a) {
713
+ this._context.bezierCurveTo(t, e, r, n, a, i);
714
+ }
715
+ };
716
+ function ze(e) {
717
+ return new H(e);
718
+ }
719
+ function Be(e) {
720
+ return new Le(e);
721
+ }
722
+ //#endregion
723
+ //#region ../../node_modules/d3-shape/src/curve/natural.js
724
+ function Ve(e) {
725
+ this._context = e;
726
+ }
727
+ Ve.prototype = {
728
+ areaStart: function() {
729
+ this._line = 0;
730
+ },
731
+ areaEnd: function() {
732
+ this._line = NaN;
733
+ },
734
+ lineStart: function() {
735
+ this._x = [], this._y = [];
736
+ },
737
+ lineEnd: function() {
738
+ var e = this._x, t = this._y, n = e.length;
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 = 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
+ (this._line || this._line !== 0 && n === 1) && this._context.closePath(), this._line = 1 - this._line, this._x = this._y = null;
742
+ },
743
+ point: function(e, t) {
744
+ this._x.push(+e), this._y.push(+t);
745
+ }
746
+ };
747
+ function He(e) {
748
+ var t, n = e.length - 1, r, i = Array(n), a = Array(n), o = Array(n);
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
+ 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];
751
+ 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];
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
+ return [i, a];
754
+ }
755
+ function Ue(e) {
756
+ return new Ve(e);
757
+ }
758
+ //#endregion
759
+ //#region ../../node_modules/d3-shape/src/curve/step.js
760
+ function U(e, t) {
761
+ this._context = e, this._t = t;
762
+ }
763
+ U.prototype = {
764
+ areaStart: function() {
765
+ this._line = 0;
766
+ },
767
+ areaEnd: function() {
768
+ this._line = NaN;
769
+ },
770
+ lineStart: function() {
771
+ this._x = this._y = NaN, this._point = 0;
772
+ },
773
+ lineEnd: function() {
774
+ 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);
775
+ },
776
+ point: function(e, t) {
777
+ switch (e = +e, t = +t, this._point) {
778
+ case 0:
779
+ this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
780
+ break;
781
+ case 1: this._point = 2;
782
+ default:
783
+ if (this._t <= 0) this._context.lineTo(this._x, t), this._context.lineTo(e, t);
784
+ else {
785
+ var n = this._x * (1 - this._t) + e * this._t;
786
+ this._context.lineTo(n, this._y), this._context.lineTo(n, t);
787
+ }
788
+ break;
789
+ }
790
+ this._x = e, this._y = t;
791
+ }
792
+ };
793
+ function We(e) {
794
+ return new U(e, .5);
795
+ }
796
+ function Ge(e) {
797
+ return new U(e, 0);
798
+ }
799
+ function Ke(e) {
800
+ return new U(e, 1);
801
+ }
802
+ //#endregion
803
+ //#region ../../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
+ curveLinear: be,
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
+ if (Array.isArray(n)) {
828
+ let e = n.map((e) => e.args);
829
+ y(e), r = se(r, [...e]);
830
+ } else r = n.args;
831
+ if (!r) return;
832
+ let i = oe(e, t), a = "config";
833
+ return r[a] !== void 0 && (i === "flowchart-v2" && (i = "flowchart"), r[i] = r[a], delete r[a]), r;
834
+ }, "detectInit"), Ze = /* @__PURE__ */ t(function(t, n = null) {
835
+ try {
836
+ let r = RegExp(`[%]{2}(?![{]${Ye.source})(?=[}][%]{2}).*
837
+ `, "ig");
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
+ type: e,
844
+ args: t
845
+ });
846
+ }
847
+ return a.length === 0 ? {
848
+ type: t,
849
+ args: null
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
+ type: void 0,
854
+ args: null
855
+ };
856
+ }
857
+ }, "detectDirective"), Qe = /* @__PURE__ */ t(function(e) {
858
+ return e.replace(b, "");
859
+ }, "removeDirectives"), $e = /* @__PURE__ */ t(function(e, t) {
860
+ for (let [n, r] of t.entries()) if (r.match(e)) return n;
861
+ return -1;
862
+ }, "isSubstringInArray");
863
+ function W(e, t) {
864
+ return e ? Je[`curve${e.charAt(0).toUpperCase() + e.slice(1)}`] ?? t : t;
865
+ }
866
+ t(W, "interpolateToCurve");
867
+ function et(e, t) {
868
+ let n = e.trim();
869
+ if (n) return t.securityLevel === "loose" ? n : (0, qe.sanitizeUrl)(n);
870
+ }
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
+ return;
877
+ }
878
+ o[a](...n);
879
+ }, "runFunc");
880
+ function G(e, t) {
881
+ return !e || !t ? 0 : Math.sqrt((t.x - e.x) ** 2 + (t.y - e.y) ** 2);
882
+ }
883
+ t(G, "distance");
884
+ function nt(e) {
885
+ let t, n = 0;
886
+ return e.forEach((e) => {
887
+ n += G(e, t), t = e;
888
+ }), K(e, n / 2);
889
+ }
890
+ t(nt, "traverseEdge");
891
+ function rt(e) {
892
+ return e.length === 1 ? e[0] : nt(e);
893
+ }
894
+ t(rt, "calcLabelPosition");
895
+ var it = /* @__PURE__ */ t((e, t = 2) => {
896
+ let n = 10 ** t;
897
+ return Math.round(e * n) / n;
898
+ }, "roundNumber"), K = /* @__PURE__ */ t((e, t) => {
899
+ let n, r = t;
900
+ for (let t of e) {
901
+ if (n) {
902
+ let e = G(t, n);
903
+ if (e === 0) return n;
904
+ if (e < r) r -= e;
905
+ else {
906
+ let i = r / e;
907
+ if (i <= 0) return n;
908
+ if (i >= 1) return {
909
+ x: t.x,
910
+ y: t.y
911
+ };
912
+ if (i > 0 && i < 1) return {
913
+ x: it((1 - i) * n.x + i * t.x, 5),
914
+ y: it((1 - i) * n.y + i * t.y, 5)
915
+ };
916
+ }
917
+ }
918
+ n = t;
919
+ }
920
+ throw Error("Could not find a suitable point for the given distance");
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
+ x: 0,
925
+ y: 0
926
+ };
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
+ }, "calcCardinalityPosition");
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
+ x: 0,
934
+ y: 0
935
+ };
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
+ }
938
+ t(ot, "calcTerminalLabelPosition");
939
+ function q(e) {
940
+ let t = "", n = "";
941
+ for (let r of e) r !== void 0 && (r.startsWith("color:") || r.startsWith("text-align:") ? n = n + r + ";" : t = t + r + ";");
942
+ return {
943
+ style: t,
944
+ labelStyle: n
945
+ };
946
+ }
947
+ t(q, "getStylesFromArray");
948
+ var st = 0, ct = /* @__PURE__ */ t(() => (st++, "id-" + Math.random().toString(36).substr(2, 12) + "-" + st), "generateId");
949
+ function lt(e) {
950
+ let t = "";
951
+ for (let n = 0; n < e; n++) t += "0123456789abcdef".charAt(Math.floor(Math.random() * 16));
952
+ return t;
953
+ }
954
+ t(lt, "makeRandomHex");
955
+ var ut = /* @__PURE__ */ t((e) => lt(e.length), "random"), dt = /* @__PURE__ */ t(function() {
956
+ return {
957
+ x: 0,
958
+ y: 0,
959
+ fill: void 0,
960
+ anchor: "start",
961
+ style: "#666",
962
+ width: 100,
963
+ height: 100,
964
+ textMargin: 0,
965
+ rx: 0,
966
+ ry: 0,
967
+ valign: void 0,
968
+ text: ""
969
+ };
970
+ }, "getTextObj"), ft = /* @__PURE__ */ t(function(e, t) {
971
+ let n = t.text.replace(x.lineBreakRegex, " "), [, r] = Q(t.fontSize), i = e.append("text");
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
+ let a = i.append("tspan");
974
+ return a.attr("x", t.x + t.textMargin * 2), a.attr("fill", t.fill), a.text(n), i;
975
+ }, "drawSimpleText"), pt = v((e, t, n) => {
976
+ if (!e || (n = Object.assign({
977
+ fontSize: 12,
978
+ fontWeight: 400,
979
+ fontFamily: "Arial",
980
+ joinWith: "<br/>"
981
+ }, n), x.lineBreakRegex.test(e))) return e;
982
+ let r = e.split(" ").filter(Boolean), i = [], a = "";
983
+ return r.forEach((e, o) => {
984
+ let s = Y(`${e} `, n), c = Y(a, n);
985
+ if (s > t) {
986
+ let { hyphenatedStrings: r, remainingWord: o } = mt(e, t, "-", n);
987
+ i.push(a, ...r), a = o;
988
+ } else c + s >= t ? (i.push(a), a = e) : a = [a, e].filter(Boolean).join(" ");
989
+ o + 1 === r.length && i.push(a);
990
+ }), i.filter((e) => e !== "").join(n.joinWith);
991
+ }, (e, t, n) => `${e}${t}${n.fontSize}${n.fontWeight}${n.fontFamily}${n.joinWith}`), mt = v((e, t, n = "-", r) => {
992
+ r = Object.assign({
993
+ fontSize: 12,
994
+ fontWeight: 400,
995
+ fontFamily: "Arial",
996
+ margin: 0
997
+ }, r);
998
+ let i = [...e], a = [], o = "";
999
+ return i.forEach((e, s) => {
1000
+ let c = `${o}${e}`;
1001
+ if (Y(c, r) >= t) {
1002
+ let e = s + 1, t = i.length === e, r = `${c}${n}`;
1003
+ a.push(t ? c : r), o = "";
1004
+ } else o = c;
1005
+ }), {
1006
+ hyphenatedStrings: a,
1007
+ remainingWord: o
1008
+ };
1009
+ }, (e, t, n = "-", r) => `${e}${t}${n}${r.fontSize}${r.fontWeight}${r.fontFamily}`);
1010
+ function J(e, t) {
1011
+ return X(e, t).height;
1012
+ }
1013
+ t(J, "calculateTextHeight");
1014
+ function Y(e, t) {
1015
+ return X(e, t).width;
1016
+ }
1017
+ t(Y, "calculateTextWidth");
1018
+ var X = v((e, t) => {
1019
+ let { fontSize: r = 12, fontFamily: i = "Arial", fontWeight: a = 400 } = t;
1020
+ if (!e) return {
1021
+ width: 0,
1022
+ height: 0
1023
+ };
1024
+ let [, o] = Q(r), s = ["sans-serif", i], c = e.split(x.lineBreakRegex), l = [], u = n("body");
1025
+ if (!u.remove) return {
1026
+ width: 0,
1027
+ height: 0,
1028
+ lineHeight: 0
1029
+ };
1030
+ let d = u.append("svg");
1031
+ for (let e of s) {
1032
+ let t = 0, n = {
1033
+ width: 0,
1034
+ height: 0,
1035
+ lineHeight: 0
1036
+ };
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
+ if (c.width === 0 && c.height === 0) throw Error("svg element not in render tree");
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
+ }
1044
+ l.push(n);
1045
+ }
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
+ }, (e, t) => `${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`), ht = class {
1048
+ constructor(e = !1, t) {
1049
+ this.count = 0, this.count = t ? t.length : 0, this.next = e ? () => this.count++ : () => Date.now();
1050
+ }
1051
+ static {
1052
+ t(this, "InitIDGenerator");
1053
+ }
1054
+ }, Z, gt = /* @__PURE__ */ t(function(e) {
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
+ }, "entityDecode");
1057
+ function _t(e) {
1058
+ return "str" in e;
1059
+ }
1060
+ t(_t, "isDetailedError");
1061
+ var vt = /* @__PURE__ */ t((e, t, n, r) => {
1062
+ if (!r) return;
1063
+ let i = e.node()?.getBBox();
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__ */ t((e) => {
1066
+ if (typeof e == "number") return [e, e + "px"];
1067
+ let t = parseInt(e ?? "", 10);
1068
+ return Number.isNaN(t) ? [void 0, void 0] : e === String(t) ? [t, e + "px"] : [t, e];
1069
+ }, "parseFontSize");
1070
+ function $(e, t) {
1071
+ return ve({}, e, t);
1072
+ }
1073
+ t($, "cleanAndMerge");
1074
+ var yt = {
1075
+ assignWithDepth: se,
1076
+ wrapLabel: pt,
1077
+ calculateTextHeight: J,
1078
+ calculateTextWidth: Y,
1079
+ calculateTextDimensions: X,
1080
+ cleanAndMerge: $,
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
+ generateId: ct,
1091
+ random: ut,
1092
+ runFunc: tt,
1093
+ entityDecode: gt,
1094
+ insertTitle: vt,
1095
+ isLabelCoordinateInPath: wt,
1096
+ parseFontSize: Q,
1097
+ InitIDGenerator: ht
1098
+ }, bt = /* @__PURE__ */ t(function(e) {
1099
+ let t = e;
1100
+ return t = t.replace(/style.*:\S*#.*;/g, function(e) {
1101
+ return e.substring(0, e.length - 1);
1102
+ }), t = t.replace(/classDef.*:\S*#.*;/g, function(e) {
1103
+ return e.substring(0, e.length - 1);
1104
+ }), t = t.replace(/#\w+;/g, function(e) {
1105
+ let t = e.substring(1, e.length - 1);
1106
+ return /^\+?\d+$/.test(t) ? "fl°°" + t + "¶ß" : "fl°" + t + "¶ß";
1107
+ }), t;
1108
+ }, "encodeEntities"), xt = /* @__PURE__ */ t(function(e) {
1109
+ return e.replace(/fl°°/g, "&#").replace(/fl°/g, "&").replace(/¶ß/g, ";");
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
+ function Ct(e) {
1112
+ return e ?? null;
1113
+ }
1114
+ t(Ct, "handleUndefinedAttr");
1115
+ function wt(e, t) {
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
+ return i.includes(n.toString()) || i.includes(r.toString());
1118
+ }
1119
+ t(wt, "isLabelCoordinateInPath");
1120
+ //#endregion
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 };