@kong-ui-public/documentation 1.4.17-pr.2640.fb8bab909.0 → 1.4.17

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 (84) hide show
  1. package/dist/_basePickBy-BCsiP0lE-DJBdvZNn.js +151 -0
  2. package/dist/{_baseUniq-SAfYgIkf-buEvGj9H.js → _baseUniq-CsvgMmt0-CCBG5z_B.js} +165 -165
  3. package/dist/arc-DYb5Ak6k-js8YHzj6.js +83 -0
  4. package/dist/architecture-U656AL7Q-LZu-yAfZ-CQD6AyxA.js +5 -0
  5. package/dist/architectureDiagram-KFL7JDKH-BK_an8l5-D20M_MXF.js +4665 -0
  6. package/dist/blockDiagram-ZYB65J3Q-C0KtqCEe-pwEm3-ie.js +2265 -0
  7. package/dist/{c4Diagram-6F5ED5ID-D5yqWyf0-DzlUmurv.js → c4Diagram-AAMF2YG6-DYHWlrmc-C6NWDsTV.js} +4 -4
  8. package/dist/{channel-bVcNKbrJ-NqcPkfCx.js → channel-3QVQMCTA-BwyrTaJi.js} +1 -1
  9. package/dist/{chunk-TMUBEWPD-BRIzn5gH-alZ9Sg3f.js → chunk-ANTBXLJU-BhR1MDfy-Bec7kb00.js} +1 -1
  10. package/dist/{chunk-KFBOBJHC-nixdujtH-CrTZo7r-.js → chunk-FHKO5MBM-z_nuC8Da-Dge2Nbr5.js} +1 -1
  11. package/dist/chunk-GLLZNHP4-DgwBbAOT-BUrsAxH8.js +19 -0
  12. package/dist/chunk-JBRWN2VN-CHua2TSC-BYWS19Oz.js +1374 -0
  13. package/dist/chunk-LXBSTHXV-CoED0jHL-Cc8w4JL1.js +1382 -0
  14. package/dist/chunk-NRVI72HA-DxsqT4Dt-Bo_vu9qn.js +20 -0
  15. package/dist/{chunk-ASOPGD6M-B5bA_saK-BiT875Ve.js → chunk-OMD6QJNC-_VI6zVGr-Bb4P7zNG.js} +1 -1
  16. package/dist/chunk-WVR4S24B-C4HIWky3-CkJ0DHSJ.js +8 -0
  17. package/dist/classDiagram-3BZAVTQC-DrmNjTt_-CS9fxl_R.js +16 -0
  18. package/dist/classDiagram-v2-QTMF73CY-DrmNjTt_-CS9fxl_R.js +16 -0
  19. package/dist/{clone-_5SW34SG-DOuhA6mG.js → clone-C0dvnYv6-BozdSvey.js} +1 -1
  20. package/dist/cytoscape.esm-CjI2IsL8-DYIumutE.js +18721 -0
  21. package/dist/{dagre-4EVJKHTY-CcAruc30-B3UMlKNl.js → dagre-2BBEFEWP-Bh_bYuL8-Cej31YXN.js} +53 -53
  22. package/dist/defaultLocale-D7EN2tov-CK6dgF7Y.js +171 -0
  23. package/dist/diagram-4IRLE6MV-34TaesxP-XfF-gcP2.js +533 -0
  24. package/dist/diagram-GUPCWM2R-Cr4-5_uX-B8mxM1Uc.js +143 -0
  25. package/dist/diagram-RP2FKANI-COpvHjzI-C-_mZxuk.js +221 -0
  26. package/dist/documentation.es.js +1 -1
  27. package/dist/documentation.umd.js +860 -399
  28. package/dist/erDiagram-HZWUO2LU-Cu2MerRS-KziSgDQg.js +840 -0
  29. package/dist/flowDiagram-THRYKUMA-CfrQTB8C-BYn8LF24.js +1627 -0
  30. package/dist/ganttDiagram-WV7ZQ7D5-gkieebY_-C7YOriZ4.js +2504 -0
  31. package/dist/gitGraph-F6HP7TQM-suE5ufvy-CQDQV2yP.js +5 -0
  32. package/dist/{gitGraphDiagram-NRZ2UAAF-B-t90-9e-BkGPAEnk.js → gitGraphDiagram-OJR772UL-CYA7EIoU-Bqc1qZk4.js} +103 -103
  33. package/dist/{graph-BYZMvqpu-BXRs5843.js → graph-B_1gOUDz-Dm6REFzZ.js} +2 -2
  34. package/dist/{index-CMZig9xg.js → index-BDD0CD9m.js} +9834 -9540
  35. package/dist/info-NVLQJR56-CdsHk-Jf-tf8zb8tD.js +5 -0
  36. package/dist/infoDiagram-6WOFNB3A-ajp3t5Lm-D80dGo5F.js +24 -0
  37. package/dist/{journeyDiagram-G5WM74LC-BE7U42Ad-y6YegUqL.js → journeyDiagram-FFXJYRFH-kgCEEPLo-CakI8CyJ.js} +357 -333
  38. package/dist/{kanban-definition-QRCXZQQD-C-5-UNRm-BOYYKTAB.js → kanban-definition-KOZQBZVT-CmM4CHe6-rjuufCiO.js} +75 -73
  39. package/dist/{katex-Qk2jHgyB-_qyJ_37x.js → katex-C0Lgw_Sx-CbX2I1cQ.js} +1864 -1814
  40. package/dist/{layout-BHI4imdk-CESYC-il.js → layout-9vIfpCf3-FfABA43y.js} +81 -81
  41. package/dist/linear-C-k9vokG-Md9dfBfB.js +259 -0
  42. package/dist/{mermaid-parser.core-Ce96PX3Q-CV9ue_xr.js → mermaid-parser.core-DHL9WXVx-DeKF3RZx.js} +4080 -3590
  43. package/dist/{mindmap-definition-GWI6TPTV-C98Syvj2-DUWC1UH5.js → mindmap-definition-LNHGMQRG-BsypuFYj-DSVrvuog.js} +1112 -1100
  44. package/dist/packet-BFZMPI3H-BcK9kJ-B-BxxCPBGn.js +5 -0
  45. package/dist/pie-7BOR55EZ-Vt5px0F3-BM7egbMh.js +5 -0
  46. package/dist/pieDiagram-DBDJKBY4-Bam6gKTi-BOqYeC6c.js +161 -0
  47. package/dist/{quadrantDiagram-OS5C2QUG-M57vVPSx-BRx-dMGe.js → quadrantDiagram-YPSRARAO-CJwMw09m-CN2OO-Le.js} +2 -2
  48. package/dist/radar-NHE76QYJ-Br11XWE4-4RP4MPFA.js +5 -0
  49. package/dist/requirementDiagram-EGVEC5DT-DkRytT0X-C2zigskn.js +850 -0
  50. package/dist/{sankeyDiagram-Y46BX6SQ-D6EdYPdp-D2Qzxmhx.js → sankeyDiagram-HRAUVNP4-08s1UHMk-2j8idkNs.js} +198 -193
  51. package/dist/{sequenceDiagram-G6AWOVSC-B171TAb1-KCpoI-Ck.js → sequenceDiagram-WFGC7UMF-6_s7-CN7-D-oTpLFJ.js} +1001 -992
  52. package/dist/stateDiagram-UUKSUZ4H-eWajY90l-BlM614AN.js +263 -0
  53. package/dist/stateDiagram-v2-EYPG3UTE-Dh7Ngu1O-YVMiocHE.js +16 -0
  54. package/dist/style.css +1 -1
  55. package/dist/timeline-definition-3HZDQTIS-4TPEOhE8-fDDLVlO8.js +799 -0
  56. package/dist/treemap-KMMF4GRG-nu7WEuPi-C1YG24W8.js +5 -0
  57. package/dist/{xychartDiagram-6QU3TZC5-CqbTSF5W-CUbJ50KT.js → xychartDiagram-FDP5SA34-BbtKlU7T-D1BI5nWs.js} +459 -423
  58. package/package.json +4 -4
  59. package/dist/_basePickBy-zlkqRmFy-D6w9JBLu.js +0 -151
  60. package/dist/arc-CK9P6CkJ-DVgfRhzX.js +0 -83
  61. package/dist/architecture-I3QFYML2-DJzmbE4M-C3v7Cpg0.js +0 -5
  62. package/dist/architectureDiagram-UYN6MBPD-DkZdgpXi-BTThTJ0F.js +0 -4592
  63. package/dist/blockDiagram-ZHA2E4KO-DnCMGCMN-DBXa-baO.js +0 -2247
  64. package/dist/chunk-5HRBRIJM-BjQ8go1b-CJmT3AYe.js +0 -24
  65. package/dist/chunk-7U56Z5CX-awhAxjZ0-Cs_UWlwk.js +0 -1213
  66. package/dist/chunk-T2TOU4HS-DqOVhIzl-O3PUl7Qp.js +0 -1301
  67. package/dist/classDiagram-LNE6IOMH-fQzyXfo--DYLd8UQH.js +0 -14
  68. package/dist/classDiagram-v2-MQ7JQ4JX-fQzyXfo--DYLd8UQH.js +0 -14
  69. package/dist/cytoscape.esm-DAyNQ0qu-i5PnoWfE.js +0 -16110
  70. package/dist/diagram-QW4FP2JN-DZT_0aFO-SYzM51ke.js +0 -126
  71. package/dist/erDiagram-6RL3IURR-BfgUC5jv-BrebVho-.js +0 -937
  72. package/dist/flowDiagram-7ASYPVHJ-Bo9CnsE7-Ds2vln_y.js +0 -1484
  73. package/dist/ganttDiagram-NTVNEXSI-8E9hjd6N-fR_cmeDc.js +0 -2491
  74. package/dist/gitGraph-YCYPL57B-BnErPIwo-DXUTceC1.js +0 -5
  75. package/dist/info-46DW6VJ7-DPpbx_vA-omPXKuBd.js +0 -5
  76. package/dist/infoDiagram-A4XQUW5V-Bo9uoOcA-CnlgI27B.js +0 -22
  77. package/dist/linear-C2PheBya-BHVXLcru.js +0 -423
  78. package/dist/packet-W2GHVCYJ-BLiQbm7T-BD1xX8XM.js +0 -5
  79. package/dist/pie-BEWT4RHE-D3Mbo3mT-B4n38n6N.js +0 -5
  80. package/dist/pieDiagram-YF2LJOPJ-BJV27s9B-DA7hy5wG.js +0 -161
  81. package/dist/requirementDiagram-MIRIMTAZ-D0KDg7rf-CRMUyo68.js +0 -768
  82. package/dist/stateDiagram-MAYHULR4-D7FUnT9_-aCApnrI4.js +0 -268
  83. package/dist/stateDiagram-v2-4JROLMXI-Cyc74STT-D-7hwTRo.js +0 -14
  84. package/dist/timeline-definition-U7ZMHBDA-Bw-dp1yf-C01CsNUU.js +0 -804
@@ -1,10 +1,10 @@
1
- import { _, ak as xt, aj as kt, a5 as vt, a6 as bt, a8 as wt, a7 as St, g as lt, ap as Et, a9 as Q, bk as Lt, aq as Mt, ag as At } from "./index-CMZig9xg.js";
1
+ import { _ as p, an as xt, ao as kt, a5 as vt, a6 as bt, a8 as wt, a7 as St, g as lt, au as Et, a9 as Y, bm as Lt, at as Mt, ag as At } from "./index-BDD0CD9m.js";
2
2
  import { h as Tt } from "./ordinal-DfAQgscy-BEJTu10r.js";
3
- function Dt(t) {
3
+ function Pt(t) {
4
4
  for (var n = t.length / 6 | 0, r = new Array(n), a = 0; a < n; ) r[a] = "#" + t.slice(a * 6, ++a * 6);
5
5
  return r;
6
6
  }
7
- const Pt = Dt("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");
7
+ const Ct = Pt("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");
8
8
  function ct(t, n) {
9
9
  let r;
10
10
  if (n === void 0)
@@ -17,7 +17,7 @@ function ct(t, n) {
17
17
  }
18
18
  return r;
19
19
  }
20
- function dt(t, n) {
20
+ function pt(t, n) {
21
21
  let r;
22
22
  if (n === void 0)
23
23
  for (const a of t)
@@ -41,42 +41,42 @@ function tt(t, n) {
41
41
  }
42
42
  return r;
43
43
  }
44
- function Ct(t) {
44
+ function Nt(t) {
45
45
  return t.target.depth;
46
46
  }
47
- function Nt(t) {
47
+ function Ot(t) {
48
48
  return t.depth;
49
49
  }
50
- function Ot(t, n) {
50
+ function Dt(t, n) {
51
51
  return n - 1 - t.height;
52
52
  }
53
53
  function _t(t, n) {
54
54
  return t.sourceLinks.length ? t.depth : n - 1;
55
55
  }
56
56
  function It(t) {
57
- return t.targetLinks.length ? t.depth : t.sourceLinks.length ? dt(t.sourceLinks, Ct) - 1 : 0;
57
+ return t.targetLinks.length ? t.depth : t.sourceLinks.length ? pt(t.sourceLinks, Nt) - 1 : 0;
58
58
  }
59
- function R(t) {
59
+ function Q(t) {
60
60
  return function() {
61
61
  return t;
62
62
  };
63
63
  }
64
64
  function ut(t, n) {
65
- return X(t.source, n.source) || t.index - n.index;
65
+ return R(t.source, n.source) || t.index - n.index;
66
66
  }
67
67
  function ht(t, n) {
68
- return X(t.target, n.target) || t.index - n.index;
68
+ return R(t.target, n.target) || t.index - n.index;
69
69
  }
70
- function X(t, n) {
70
+ function R(t, n) {
71
71
  return t.y0 - n.y0;
72
72
  }
73
73
  function et(t) {
74
74
  return t.value;
75
75
  }
76
- function jt(t) {
76
+ function $t(t) {
77
77
  return t.index;
78
78
  }
79
- function $t(t) {
79
+ function jt(t) {
80
80
  return t.nodes;
81
81
  }
82
82
  function zt(t) {
@@ -97,27 +97,27 @@ function yt({ nodes: t }) {
97
97
  }
98
98
  }
99
99
  function Ft() {
100
- let t = 0, n = 0, r = 1, a = 1, c = 24, k = 8, d, m = jt, i = _t, o, f, p = $t, y = zt, w = 6;
100
+ let t = 0, n = 0, r = 1, a = 1, c = 24, k = 8, _, m = $t, i = _t, o, f, d = jt, y = zt, w = 6;
101
101
  function v() {
102
- const e = { nodes: p.apply(null, arguments), links: y.apply(null, arguments) };
103
- return P(e), A(e), T(e), O(e), C(e), yt(e), e;
102
+ const e = { nodes: d.apply(null, arguments), links: y.apply(null, arguments) };
103
+ return C(e), A(e), T(e), D(e), N(e), yt(e), e;
104
104
  }
105
105
  v.update = function(e) {
106
106
  return yt(e), e;
107
107
  }, v.nodeId = function(e) {
108
- return arguments.length ? (m = typeof e == "function" ? e : R(e), v) : m;
108
+ return arguments.length ? (m = typeof e == "function" ? e : Q(e), v) : m;
109
109
  }, v.nodeAlign = function(e) {
110
- return arguments.length ? (i = typeof e == "function" ? e : R(e), v) : i;
110
+ return arguments.length ? (i = typeof e == "function" ? e : Q(e), v) : i;
111
111
  }, v.nodeSort = function(e) {
112
112
  return arguments.length ? (o = e, v) : o;
113
113
  }, v.nodeWidth = function(e) {
114
114
  return arguments.length ? (c = +e, v) : c;
115
115
  }, v.nodePadding = function(e) {
116
- return arguments.length ? (k = d = +e, v) : k;
116
+ return arguments.length ? (k = _ = +e, v) : k;
117
117
  }, v.nodes = function(e) {
118
- return arguments.length ? (p = typeof e == "function" ? e : R(e), v) : p;
118
+ return arguments.length ? (d = typeof e == "function" ? e : Q(e), v) : d;
119
119
  }, v.links = function(e) {
120
- return arguments.length ? (y = typeof e == "function" ? e : R(e), v) : y;
120
+ return arguments.length ? (y = typeof e == "function" ? e : Q(e), v) : y;
121
121
  }, v.linkSort = function(e) {
122
122
  return arguments.length ? (f = e, v) : f;
123
123
  }, v.size = function(e) {
@@ -127,7 +127,7 @@ function Ft() {
127
127
  }, v.iterations = function(e) {
128
128
  return arguments.length ? (w = +e, v) : w;
129
129
  };
130
- function P({ nodes: e, links: h }) {
130
+ function C({ nodes: e, links: h }) {
131
131
  for (const [u, s] of e.entries())
132
132
  s.index = u, s.sourceLinks = [], s.targetLinks = [];
133
133
  const l = new Map(e.map((u, s) => [m(u, s, e), u]));
@@ -157,7 +157,7 @@ function Ft() {
157
157
  l = u, u = /* @__PURE__ */ new Set();
158
158
  }
159
159
  }
160
- function O({ nodes: e }) {
160
+ function D({ nodes: e }) {
161
161
  const h = e.length;
162
162
  let l = new Set(e), u = /* @__PURE__ */ new Set(), s = 0;
163
163
  for (; l.size; ) {
@@ -170,7 +170,7 @@ function Ft() {
170
170
  l = u, u = /* @__PURE__ */ new Set();
171
171
  }
172
172
  }
173
- function D({ nodes: e }) {
173
+ function P({ nodes: e }) {
174
174
  const h = ct(e, (s) => s.depth) + 1, l = (r - t - c) / (h - 1), u = new Array(h);
175
175
  for (const s of e) {
176
176
  const x = Math.max(0, Math.min(h - 1, Math.floor(i.call(null, s, h))));
@@ -181,76 +181,76 @@ function Ft() {
181
181
  return u;
182
182
  }
183
183
  function S(e) {
184
- const h = dt(e, (l) => (a - n - (l.length - 1) * d) / tt(l, et));
184
+ const h = pt(e, (l) => (a - n - (l.length - 1) * _) / tt(l, et));
185
185
  for (const l of e) {
186
186
  let u = n;
187
187
  for (const s of l) {
188
- s.y0 = u, s.y1 = u + s.value * h, u = s.y1 + d;
188
+ s.y0 = u, s.y1 = u + s.value * h, u = s.y1 + _;
189
189
  for (const x of s.sourceLinks)
190
190
  x.width = x.value * h;
191
191
  }
192
- u = (a - u + d) / (l.length + 1);
192
+ u = (a - u + _) / (l.length + 1);
193
193
  for (let s = 0; s < l.length; ++s) {
194
194
  const x = l[s];
195
195
  x.y0 += u * (s + 1), x.y1 += u * (s + 1);
196
196
  }
197
- j(l);
197
+ $(l);
198
198
  }
199
199
  }
200
- function C(e) {
201
- const h = D(e);
202
- d = Math.min(k, (a - n) / (ct(h, (l) => l.length) - 1)), S(h);
200
+ function N(e) {
201
+ const h = P(e);
202
+ _ = Math.min(k, (a - n) / (ct(h, (l) => l.length) - 1)), S(h);
203
203
  for (let l = 0; l < w; ++l) {
204
204
  const u = Math.pow(0.99, l), s = Math.max(1 - u, (l + 1) / w);
205
- N(h, u, s), I(h, u, s);
205
+ O(h, u, s), I(h, u, s);
206
206
  }
207
207
  }
208
208
  function I(e, h, l) {
209
209
  for (let u = 1, s = e.length; u < s; ++u) {
210
210
  const x = e[u];
211
211
  for (const b of x) {
212
- let V = 0, $ = 0;
213
- for (const { source: q, value: J } of b.targetLinks) {
214
- let Y = J * (b.layer - q.layer);
215
- V += M(q, b) * Y, $ += Y;
212
+ let V = 0, j = 0;
213
+ for (const { source: q, value: H } of b.targetLinks) {
214
+ let X = H * (b.layer - q.layer);
215
+ V += M(q, b) * X, j += X;
216
216
  }
217
- if (!($ > 0)) continue;
218
- let W = (V / $ - b.y0) * h;
217
+ if (!(j > 0)) continue;
218
+ let W = (V / j - b.y0) * h;
219
219
  b.y0 += W, b.y1 += W, E(b);
220
220
  }
221
- o === void 0 && x.sort(X), g(x, l);
221
+ o === void 0 && x.sort(R), g(x, l);
222
222
  }
223
223
  }
224
- function N(e, h, l) {
224
+ function O(e, h, l) {
225
225
  for (let u = e.length, s = u - 2; s >= 0; --s) {
226
226
  const x = e[s];
227
227
  for (const b of x) {
228
- let V = 0, $ = 0;
229
- for (const { target: q, value: J } of b.sourceLinks) {
230
- let Y = J * (q.layer - b.layer);
231
- V += U(b, q) * Y, $ += Y;
228
+ let V = 0, j = 0;
229
+ for (const { target: q, value: H } of b.sourceLinks) {
230
+ let X = H * (q.layer - b.layer);
231
+ V += U(b, q) * X, j += X;
232
232
  }
233
- if (!($ > 0)) continue;
234
- let W = (V / $ - b.y0) * h;
233
+ if (!(j > 0)) continue;
234
+ let W = (V / j - b.y0) * h;
235
235
  b.y0 += W, b.y1 += W, E(b);
236
236
  }
237
- o === void 0 && x.sort(X), g(x, l);
237
+ o === void 0 && x.sort(R), g(x, l);
238
238
  }
239
239
  }
240
240
  function g(e, h) {
241
241
  const l = e.length >> 1, u = e[l];
242
- G(e, u.y0 - d, l - 1, h), L(e, u.y1 + d, l + 1, h), G(e, a, e.length - 1, h), L(e, n, 0, h);
242
+ G(e, u.y0 - _, l - 1, h), L(e, u.y1 + _, l + 1, h), G(e, a, e.length - 1, h), L(e, n, 0, h);
243
243
  }
244
244
  function L(e, h, l, u) {
245
245
  for (; l < e.length; ++l) {
246
246
  const s = e[l], x = (h - s.y0) * u;
247
- x > 1e-6 && (s.y0 += x, s.y1 += x), h = s.y1 + d;
247
+ x > 1e-6 && (s.y0 += x, s.y1 += x), h = s.y1 + _;
248
248
  }
249
249
  }
250
250
  function G(e, h, l, u) {
251
251
  for (; l >= 0; --l) {
252
252
  const s = e[l], x = (s.y1 - h) * u;
253
- x > 1e-6 && (s.y0 -= x, s.y1 -= x), h = s.y0 - d;
253
+ x > 1e-6 && (s.y0 -= x, s.y1 -= x), h = s.y0 - _;
254
254
  }
255
255
  }
256
256
  function E({ sourceLinks: e, targetLinks: h }) {
@@ -261,16 +261,16 @@ function Ft() {
261
261
  l.sort(ut);
262
262
  }
263
263
  }
264
- function j(e) {
264
+ function $(e) {
265
265
  if (f === void 0)
266
266
  for (const { sourceLinks: h, targetLinks: l } of e)
267
267
  h.sort(ht), l.sort(ut);
268
268
  }
269
269
  function M(e, h) {
270
- let l = e.y0 - (e.sourceLinks.length - 1) * d / 2;
270
+ let l = e.y0 - (e.sourceLinks.length - 1) * _ / 2;
271
271
  for (const { target: u, width: s } of e.sourceLinks) {
272
272
  if (u === h) break;
273
- l += s + d;
273
+ l += s + _;
274
274
  }
275
275
  for (const { source: u, width: s } of h.targetLinks) {
276
276
  if (u === e) break;
@@ -279,10 +279,10 @@ function Ft() {
279
279
  return l;
280
280
  }
281
281
  function U(e, h) {
282
- let l = h.y0 - (h.targetLinks.length - 1) * d / 2;
282
+ let l = h.y0 - (h.targetLinks.length - 1) * _ / 2;
283
283
  for (const { source: u, width: s } of h.targetLinks) {
284
284
  if (u === e) break;
285
- l += s + d;
285
+ l += s + _;
286
286
  }
287
287
  for (const { target: u, width: s } of e.sourceLinks) {
288
288
  if (u === h) break;
@@ -319,22 +319,22 @@ ot.prototype = mt.prototype = {
319
319
  },
320
320
  arcTo: function(t, n, r, a, c) {
321
321
  t = +t, n = +n, r = +r, a = +a, c = +c;
322
- var k = this._x1, d = this._y1, m = r - t, i = a - n, o = k - t, f = d - n, p = o * o + f * f;
322
+ var k = this._x1, _ = this._y1, m = r - t, i = a - n, o = k - t, f = _ - n, d = o * o + f * f;
323
323
  if (c < 0) throw new Error("negative radius: " + c);
324
324
  if (this._x1 === null)
325
325
  this._ += "M" + (this._x1 = t) + "," + (this._y1 = n);
326
- else if (p > z) if (!(Math.abs(f * m - i * o) > z) || !c)
326
+ else if (d > z) if (!(Math.abs(f * m - i * o) > z) || !c)
327
327
  this._ += "L" + (this._x1 = t) + "," + (this._y1 = n);
328
328
  else {
329
- var y = r - k, w = a - d, v = m * m + i * i, P = y * y + w * w, A = Math.sqrt(v), T = Math.sqrt(p), O = c * Math.tan((rt - Math.acos((v + p - P) / (2 * A * T))) / 2), D = O / T, S = O / A;
330
- Math.abs(D - 1) > z && (this._ += "L" + (t + D * o) + "," + (n + D * f)), this._ += "A" + c + "," + c + ",0,0," + +(f * y > o * w) + "," + (this._x1 = t + S * m) + "," + (this._y1 = n + S * i);
329
+ var y = r - k, w = a - _, v = m * m + i * i, C = y * y + w * w, A = Math.sqrt(v), T = Math.sqrt(d), D = c * Math.tan((rt - Math.acos((v + d - C) / (2 * A * T))) / 2), P = D / T, S = D / A;
330
+ Math.abs(P - 1) > z && (this._ += "L" + (t + P * o) + "," + (n + P * f)), this._ += "A" + c + "," + c + ",0,0," + +(f * y > o * w) + "," + (this._x1 = t + S * m) + "," + (this._y1 = n + S * i);
331
331
  }
332
332
  },
333
333
  arc: function(t, n, r, a, c, k) {
334
334
  t = +t, n = +n, r = +r, k = !!k;
335
- var d = r * Math.cos(a), m = r * Math.sin(a), i = t + d, o = n + m, f = 1 ^ k, p = k ? a - c : c - a;
335
+ var _ = r * Math.cos(a), m = r * Math.sin(a), i = t + _, o = n + m, f = 1 ^ k, d = k ? a - c : c - a;
336
336
  if (r < 0) throw new Error("negative radius: " + r);
337
- this._x1 === null ? this._ += "M" + i + "," + o : (Math.abs(this._x1 - i) > z || Math.abs(this._y1 - o) > z) && (this._ += "L" + i + "," + o), r && (p < 0 && (p = p % st + st), p > Gt ? this._ += "A" + r + "," + r + ",0,1," + f + "," + (t - d) + "," + (n - m) + "A" + r + "," + r + ",0,1," + f + "," + (this._x1 = i) + "," + (this._y1 = o) : p > z && (this._ += "A" + r + "," + r + ",0," + +(p >= rt) + "," + f + "," + (this._x1 = t + r * Math.cos(c)) + "," + (this._y1 = n + r * Math.sin(c))));
337
+ this._x1 === null ? this._ += "M" + i + "," + o : (Math.abs(this._x1 - i) > z || Math.abs(this._y1 - o) > z) && (this._ += "L" + i + "," + o), r && (d < 0 && (d = d % st + st), d > Gt ? this._ += "A" + r + "," + r + ",0,1," + f + "," + (t - _) + "," + (n - m) + "A" + r + "," + r + ",0,1," + f + "," + (this._x1 = i) + "," + (this._y1 = o) : d > z && (this._ += "A" + r + "," + r + ",0," + +(d >= rt) + "," + f + "," + (this._x1 = t + r * Math.cos(c)) + "," + (this._y1 = n + r * Math.sin(c))));
338
338
  },
339
339
  rect: function(t, n, r, a) {
340
340
  this._ += "M" + (this._x0 = this._x1 = +t) + "," + (this._y0 = this._y1 = +n) + "h" + +r + "v" + +a + "h" + -r + "Z";
@@ -358,32 +358,32 @@ var Wt = Array.prototype.slice;
358
358
  function qt(t) {
359
359
  return t.source;
360
360
  }
361
- function Yt(t) {
361
+ function Xt(t) {
362
362
  return t.target;
363
363
  }
364
- function Qt(t) {
365
- var n = qt, r = Yt, a = Ut, c = Vt, k = null;
366
- function d() {
364
+ function Yt(t) {
365
+ var n = qt, r = Xt, a = Ut, c = Vt, k = null;
366
+ function _() {
367
367
  var m, i = Wt.call(arguments), o = n.apply(this, i), f = r.apply(this, i);
368
368
  if (k || (k = m = mt()), t(k, +a.apply(this, (i[0] = o, i)), +c.apply(this, i), +a.apply(this, (i[0] = f, i)), +c.apply(this, i)), m) return k = null, m + "" || null;
369
369
  }
370
- return d.source = function(m) {
371
- return arguments.length ? (n = m, d) : n;
372
- }, d.target = function(m) {
373
- return arguments.length ? (r = m, d) : r;
374
- }, d.x = function(m) {
375
- return arguments.length ? (a = typeof m == "function" ? m : gt(+m), d) : a;
376
- }, d.y = function(m) {
377
- return arguments.length ? (c = typeof m == "function" ? m : gt(+m), d) : c;
378
- }, d.context = function(m) {
379
- return arguments.length ? (k = m ?? null, d) : k;
380
- }, d;
381
- }
382
- function Rt(t, n, r, a, c) {
370
+ return _.source = function(m) {
371
+ return arguments.length ? (n = m, _) : n;
372
+ }, _.target = function(m) {
373
+ return arguments.length ? (r = m, _) : r;
374
+ }, _.x = function(m) {
375
+ return arguments.length ? (a = typeof m == "function" ? m : gt(+m), _) : a;
376
+ }, _.y = function(m) {
377
+ return arguments.length ? (c = typeof m == "function" ? m : gt(+m), _) : c;
378
+ }, _.context = function(m) {
379
+ return arguments.length ? (k = m ?? null, _) : k;
380
+ }, _;
381
+ }
382
+ function Qt(t, n, r, a, c) {
383
383
  t.moveTo(n, r), t.bezierCurveTo(n = (n + a) / 2, r, n, c, a, c);
384
384
  }
385
- function Xt() {
386
- return Qt(Rt);
385
+ function Rt() {
386
+ return Yt(Qt);
387
387
  }
388
388
  function Kt(t) {
389
389
  return [t.source.x1, t.y0];
@@ -392,25 +392,25 @@ function Zt(t) {
392
392
  return [t.target.x0, t.y1];
393
393
  }
394
394
  function Bt() {
395
- return Xt().source(Kt).target(Zt);
395
+ return Rt().source(Kt).target(Zt);
396
396
  }
397
397
  var at = function() {
398
- var t = /* @__PURE__ */ _(function(m, i, o, f) {
398
+ var t = /* @__PURE__ */ p(function(m, i, o, f) {
399
399
  for (o = o || {}, f = m.length; f--; o[m[f]] = i) ;
400
400
  return o;
401
401
  }, "o"), n = [1, 9], r = [1, 10], a = [1, 5, 10, 12], c = {
402
- trace: /* @__PURE__ */ _(function() {
402
+ trace: /* @__PURE__ */ p(function() {
403
403
  }, "trace"),
404
404
  yy: {},
405
405
  symbols_: { error: 2, start: 3, SANKEY: 4, NEWLINE: 5, csv: 6, opt_eof: 7, record: 8, csv_tail: 9, EOF: 10, "field[source]": 11, COMMA: 12, "field[target]": 13, "field[value]": 14, field: 15, escaped: 16, non_escaped: 17, DQUOTE: 18, ESCAPED_TEXT: 19, NON_ESCAPED_TEXT: 20, $accept: 0, $end: 1 },
406
406
  terminals_: { 2: "error", 4: "SANKEY", 5: "NEWLINE", 10: "EOF", 11: "field[source]", 12: "COMMA", 13: "field[target]", 14: "field[value]", 18: "DQUOTE", 19: "ESCAPED_TEXT", 20: "NON_ESCAPED_TEXT" },
407
407
  productions_: [0, [3, 4], [6, 2], [9, 2], [9, 0], [7, 1], [7, 0], [8, 5], [15, 1], [15, 1], [16, 3], [17, 1]],
408
- performAction: /* @__PURE__ */ _(function(m, i, o, f, p, y, w) {
408
+ performAction: /* @__PURE__ */ p(function(m, i, o, f, d, y, w) {
409
409
  var v = y.length - 1;
410
- switch (p) {
410
+ switch (d) {
411
411
  case 7:
412
- const P = f.findOrCreateNode(y[v - 4].trim().replaceAll('""', '"')), A = f.findOrCreateNode(y[v - 2].trim().replaceAll('""', '"')), T = parseFloat(y[v].trim());
413
- f.addLink(P, A, T);
412
+ const C = f.findOrCreateNode(y[v - 4].trim().replaceAll('""', '"')), A = f.findOrCreateNode(y[v - 2].trim().replaceAll('""', '"')), T = parseFloat(y[v].trim());
413
+ f.addLink(C, A, T);
414
414
  break;
415
415
  case 8:
416
416
  case 9:
@@ -424,7 +424,7 @@ var at = function() {
424
424
  }, "anonymous"),
425
425
  table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, { 5: [1, 3] }, { 6: 4, 8: 5, 15: 6, 16: 7, 17: 8, 18: n, 20: r }, { 1: [2, 6], 7: 11, 10: [1, 12] }, t(r, [2, 4], { 9: 13, 5: [1, 14] }), { 12: [1, 15] }, t(a, [2, 8]), t(a, [2, 9]), { 19: [1, 16] }, t(a, [2, 11]), { 1: [2, 1] }, { 1: [2, 5] }, t(r, [2, 2]), { 6: 17, 8: 5, 15: 6, 16: 7, 17: 8, 18: n, 20: r }, { 15: 18, 16: 7, 17: 8, 18: n, 20: r }, { 18: [1, 19] }, t(r, [2, 3]), { 12: [1, 20] }, t(a, [2, 10]), { 15: 21, 16: 7, 17: 8, 18: n, 20: r }, t([1, 5, 10], [2, 7])],
426
426
  defaultActions: { 11: [2, 1], 12: [2, 5] },
427
- parseError: /* @__PURE__ */ _(function(m, i) {
427
+ parseError: /* @__PURE__ */ p(function(m, i) {
428
428
  if (i.recoverable)
429
429
  this.trace(m);
430
430
  else {
@@ -432,48 +432,48 @@ var at = function() {
432
432
  throw o.hash = i, o;
433
433
  }
434
434
  }, "parseError"),
435
- parse: /* @__PURE__ */ _(function(m) {
436
- var i = this, o = [0], f = [], p = [null], y = [], w = this.table, v = "", P = 0, A = 0, T = 2, O = 1, D = y.slice.call(arguments, 1), S = Object.create(this.lexer), C = { yy: {} };
435
+ parse: /* @__PURE__ */ p(function(m) {
436
+ var i = this, o = [0], f = [], d = [null], y = [], w = this.table, v = "", C = 0, A = 0, T = 2, D = 1, P = y.slice.call(arguments, 1), S = Object.create(this.lexer), N = { yy: {} };
437
437
  for (var I in this.yy)
438
- Object.prototype.hasOwnProperty.call(this.yy, I) && (C.yy[I] = this.yy[I]);
439
- S.setInput(m, C.yy), C.yy.lexer = S, C.yy.parser = this, typeof S.yylloc > "u" && (S.yylloc = {});
440
- var N = S.yylloc;
441
- y.push(N);
438
+ Object.prototype.hasOwnProperty.call(this.yy, I) && (N.yy[I] = this.yy[I]);
439
+ S.setInput(m, N.yy), N.yy.lexer = S, N.yy.parser = this, typeof S.yylloc > "u" && (S.yylloc = {});
440
+ var O = S.yylloc;
441
+ y.push(O);
442
442
  var g = S.options && S.options.ranges;
443
- typeof C.yy.parseError == "function" ? this.parseError = C.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
443
+ typeof N.yy.parseError == "function" ? this.parseError = N.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
444
444
  function L(b) {
445
- o.length = o.length - 2 * b, p.length = p.length - b, y.length = y.length - b;
445
+ o.length = o.length - 2 * b, d.length = d.length - b, y.length = y.length - b;
446
446
  }
447
- _(L, "popStack");
447
+ p(L, "popStack");
448
448
  function G() {
449
449
  var b;
450
- return b = f.pop() || S.lex() || O, typeof b != "number" && (b instanceof Array && (f = b, b = f.pop()), b = i.symbols_[b] || b), b;
450
+ return b = f.pop() || S.lex() || D, typeof b != "number" && (b instanceof Array && (f = b, b = f.pop()), b = i.symbols_[b] || b), b;
451
451
  }
452
- _(G, "lex");
453
- for (var E, j, M, U, e = {}, h, l, u, s; ; ) {
454
- if (j = o[o.length - 1], this.defaultActions[j] ? M = this.defaultActions[j] : ((E === null || typeof E > "u") && (E = G()), M = w[j] && w[j][E]), typeof M > "u" || !M.length || !M[0]) {
452
+ p(G, "lex");
453
+ for (var E, $, M, U, e = {}, h, l, u, s; ; ) {
454
+ if ($ = o[o.length - 1], this.defaultActions[$] ? M = this.defaultActions[$] : ((E === null || typeof E > "u") && (E = G()), M = w[$] && w[$][E]), typeof M > "u" || !M.length || !M[0]) {
455
455
  var x = "";
456
456
  s = [];
457
- for (h in w[j])
457
+ for (h in w[$])
458
458
  this.terminals_[h] && h > T && s.push("'" + this.terminals_[h] + "'");
459
- S.showPosition ? x = "Parse error on line " + (P + 1) + `:
459
+ S.showPosition ? x = "Parse error on line " + (C + 1) + `:
460
460
  ` + S.showPosition() + `
461
- Expecting ` + s.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : x = "Parse error on line " + (P + 1) + ": Unexpected " + (E == O ? "end of input" : "'" + (this.terminals_[E] || E) + "'"), this.parseError(x, {
461
+ Expecting ` + s.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : x = "Parse error on line " + (C + 1) + ": Unexpected " + (E == D ? "end of input" : "'" + (this.terminals_[E] || E) + "'"), this.parseError(x, {
462
462
  text: S.match,
463
463
  token: this.terminals_[E] || E,
464
464
  line: S.yylineno,
465
- loc: N,
465
+ loc: O,
466
466
  expected: s
467
467
  });
468
468
  }
469
469
  if (M[0] instanceof Array && M.length > 1)
470
- throw new Error("Parse Error: multiple actions possible at state: " + j + ", token: " + E);
470
+ throw new Error("Parse Error: multiple actions possible at state: " + $ + ", token: " + E);
471
471
  switch (M[0]) {
472
472
  case 1:
473
- o.push(E), p.push(S.yytext), y.push(S.yylloc), o.push(M[1]), E = null, A = S.yyleng, v = S.yytext, P = S.yylineno, N = S.yylloc;
473
+ o.push(E), d.push(S.yytext), y.push(S.yylloc), o.push(M[1]), E = null, A = S.yyleng, v = S.yytext, C = S.yylineno, O = S.yylloc;
474
474
  break;
475
475
  case 2:
476
- if (l = this.productions_[M[1]][1], e.$ = p[p.length - l], e._$ = {
476
+ if (l = this.productions_[M[1]][1], e.$ = d[d.length - l], e._$ = {
477
477
  first_line: y[y.length - (l || 1)].first_line,
478
478
  last_line: y[y.length - 1].last_line,
479
479
  first_column: y[y.length - (l || 1)].first_column,
@@ -484,14 +484,14 @@ Expecting ` + s.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : x = "
484
484
  ]), U = this.performAction.apply(e, [
485
485
  v,
486
486
  A,
487
- P,
488
- C.yy,
487
+ C,
488
+ N.yy,
489
489
  M[1],
490
- p,
490
+ d,
491
491
  y
492
- ].concat(D)), typeof U < "u")
492
+ ].concat(P)), typeof U < "u")
493
493
  return U;
494
- l && (o = o.slice(0, -1 * l * 2), p = p.slice(0, -1 * l), y = y.slice(0, -1 * l)), o.push(this.productions_[M[1]][0]), p.push(e.$), y.push(e._$), u = w[o[o.length - 2]][o[o.length - 1]], o.push(u);
494
+ l && (o = o.slice(0, -1 * l * 2), d = d.slice(0, -1 * l), y = y.slice(0, -1 * l)), o.push(this.productions_[M[1]][0]), d.push(e.$), y.push(e._$), u = w[o[o.length - 2]][o[o.length - 1]], o.push(u);
495
495
  break;
496
496
  case 3:
497
497
  return !0;
@@ -502,14 +502,14 @@ Expecting ` + s.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : x = "
502
502
  }, k = /* @__PURE__ */ function() {
503
503
  var m = {
504
504
  EOF: 1,
505
- parseError: /* @__PURE__ */ _(function(i, o) {
505
+ parseError: /* @__PURE__ */ p(function(i, o) {
506
506
  if (this.yy.parser)
507
507
  this.yy.parser.parseError(i, o);
508
508
  else
509
509
  throw new Error(i);
510
510
  }, "parseError"),
511
511
  // resets the lexer, sets new input
512
- setInput: /* @__PURE__ */ _(function(i, o) {
512
+ setInput: /* @__PURE__ */ p(function(i, o) {
513
513
  return this.yy = o || this.yy || {}, this._input = i, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
514
514
  first_line: 1,
515
515
  first_column: 0,
@@ -518,32 +518,32 @@ Expecting ` + s.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : x = "
518
518
  }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
519
519
  }, "setInput"),
520
520
  // consumes and returns one char from the input
521
- input: /* @__PURE__ */ _(function() {
521
+ input: /* @__PURE__ */ p(function() {
522
522
  var i = this._input[0];
523
523
  this.yytext += i, this.yyleng++, this.offset++, this.match += i, this.matched += i;
524
524
  var o = i.match(/(?:\r\n?|\n).*/g);
525
525
  return o ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), i;
526
526
  }, "input"),
527
527
  // unshifts one char (or a string) into the input
528
- unput: /* @__PURE__ */ _(function(i) {
528
+ unput: /* @__PURE__ */ p(function(i) {
529
529
  var o = i.length, f = i.split(/(?:\r\n?|\n)/g);
530
530
  this._input = i + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - o), this.offset -= o;
531
- var p = this.match.split(/(?:\r\n?|\n)/g);
531
+ var d = this.match.split(/(?:\r\n?|\n)/g);
532
532
  this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), f.length - 1 && (this.yylineno -= f.length - 1);
533
533
  var y = this.yylloc.range;
534
534
  return this.yylloc = {
535
535
  first_line: this.yylloc.first_line,
536
536
  last_line: this.yylineno + 1,
537
537
  first_column: this.yylloc.first_column,
538
- last_column: f ? (f.length === p.length ? this.yylloc.first_column : 0) + p[p.length - f.length].length - f[0].length : this.yylloc.first_column - o
538
+ last_column: f ? (f.length === d.length ? this.yylloc.first_column : 0) + d[d.length - f.length].length - f[0].length : this.yylloc.first_column - o
539
539
  }, this.options.ranges && (this.yylloc.range = [y[0], y[0] + this.yyleng - o]), this.yyleng = this.yytext.length, this;
540
540
  }, "unput"),
541
541
  // When called from action, caches matched text and appends it on next action
542
- more: /* @__PURE__ */ _(function() {
542
+ more: /* @__PURE__ */ p(function() {
543
543
  return this._more = !0, this;
544
544
  }, "more"),
545
545
  // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
546
- reject: /* @__PURE__ */ _(function() {
546
+ reject: /* @__PURE__ */ p(function() {
547
547
  if (this.options.backtrack_lexer)
548
548
  this._backtrack = !0;
549
549
  else
@@ -556,28 +556,28 @@ Expecting ` + s.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : x = "
556
556
  return this;
557
557
  }, "reject"),
558
558
  // retain first n characters of the match
559
- less: /* @__PURE__ */ _(function(i) {
559
+ less: /* @__PURE__ */ p(function(i) {
560
560
  this.unput(this.match.slice(i));
561
561
  }, "less"),
562
562
  // displays already matched input, i.e. for error messages
563
- pastInput: /* @__PURE__ */ _(function() {
563
+ pastInput: /* @__PURE__ */ p(function() {
564
564
  var i = this.matched.substr(0, this.matched.length - this.match.length);
565
565
  return (i.length > 20 ? "..." : "") + i.substr(-20).replace(/\n/g, "");
566
566
  }, "pastInput"),
567
567
  // displays upcoming input, i.e. for error messages
568
- upcomingInput: /* @__PURE__ */ _(function() {
568
+ upcomingInput: /* @__PURE__ */ p(function() {
569
569
  var i = this.match;
570
570
  return i.length < 20 && (i += this._input.substr(0, 20 - i.length)), (i.substr(0, 20) + (i.length > 20 ? "..." : "")).replace(/\n/g, "");
571
571
  }, "upcomingInput"),
572
572
  // displays the character position where the lexing error occurred, i.e. for error messages
573
- showPosition: /* @__PURE__ */ _(function() {
573
+ showPosition: /* @__PURE__ */ p(function() {
574
574
  var i = this.pastInput(), o = new Array(i.length + 1).join("-");
575
575
  return i + this.upcomingInput() + `
576
576
  ` + o + "^";
577
577
  }, "showPosition"),
578
578
  // test the lexed token: return FALSE when not a match, otherwise return token
579
- test_match: /* @__PURE__ */ _(function(i, o) {
580
- var f, p, y;
579
+ test_match: /* @__PURE__ */ p(function(i, o) {
580
+ var f, d, y;
581
581
  if (this.options.backtrack_lexer && (y = {
582
582
  yylineno: this.yylineno,
583
583
  yylloc: {
@@ -597,11 +597,11 @@ Expecting ` + s.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : x = "
597
597
  yy: this.yy,
598
598
  conditionStack: this.conditionStack.slice(0),
599
599
  done: this.done
600
- }, this.options.ranges && (y.yylloc.range = this.yylloc.range.slice(0))), p = i[0].match(/(?:\r\n?|\n).*/g), p && (this.yylineno += p.length), this.yylloc = {
600
+ }, this.options.ranges && (y.yylloc.range = this.yylloc.range.slice(0))), d = i[0].match(/(?:\r\n?|\n).*/g), d && (this.yylineno += d.length), this.yylloc = {
601
601
  first_line: this.yylloc.last_line,
602
602
  last_line: this.yylineno + 1,
603
603
  first_column: this.yylloc.last_column,
604
- last_column: p ? p[p.length - 1].length - p[p.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + i[0].length
604
+ last_column: d ? d[d.length - 1].length - d[d.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + i[0].length
605
605
  }, this.yytext += i[0], this.match += i[0], this.matches = i, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(i[0].length), this.matched += i[0], f = this.performAction.call(this, this.yy, this, o, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), f)
606
606
  return f;
607
607
  if (this._backtrack) {
@@ -612,15 +612,15 @@ Expecting ` + s.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : x = "
612
612
  return !1;
613
613
  }, "test_match"),
614
614
  // return next match in input
615
- next: /* @__PURE__ */ _(function() {
615
+ next: /* @__PURE__ */ p(function() {
616
616
  if (this.done)
617
617
  return this.EOF;
618
618
  this._input || (this.done = !0);
619
- var i, o, f, p;
619
+ var i, o, f, d;
620
620
  this._more || (this.yytext = "", this.match = "");
621
621
  for (var y = this._currentRules(), w = 0; w < y.length; w++)
622
622
  if (f = this._input.match(this.rules[y[w]]), f && (!o || f[0].length > o[0].length)) {
623
- if (o = f, p = w, this.options.backtrack_lexer) {
623
+ if (o = f, d = w, this.options.backtrack_lexer) {
624
624
  if (i = this.test_match(f, y[w]), i !== !1)
625
625
  return i;
626
626
  if (this._backtrack) {
@@ -631,7 +631,7 @@ Expecting ` + s.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : x = "
631
631
  } else if (!this.options.flex)
632
632
  break;
633
633
  }
634
- return o ? (i = this.test_match(o, y[p]), i !== !1 ? i : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
634
+ return o ? (i = this.test_match(o, y[d]), i !== !1 ? i : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
635
635
  ` + this.showPosition(), {
636
636
  text: "",
637
637
  token: null,
@@ -639,86 +639,88 @@ Expecting ` + s.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : x = "
639
639
  });
640
640
  }, "next"),
641
641
  // return next match that has a token
642
- lex: /* @__PURE__ */ _(function() {
642
+ lex: /* @__PURE__ */ p(function() {
643
643
  var i = this.next();
644
644
  return i || this.lex();
645
645
  }, "lex"),
646
646
  // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
647
- begin: /* @__PURE__ */ _(function(i) {
647
+ begin: /* @__PURE__ */ p(function(i) {
648
648
  this.conditionStack.push(i);
649
649
  }, "begin"),
650
650
  // pop the previously active lexer condition state off the condition stack
651
- popState: /* @__PURE__ */ _(function() {
651
+ popState: /* @__PURE__ */ p(function() {
652
652
  var i = this.conditionStack.length - 1;
653
653
  return i > 0 ? this.conditionStack.pop() : this.conditionStack[0];
654
654
  }, "popState"),
655
655
  // produce the lexer rule set which is active for the currently active lexer condition state
656
- _currentRules: /* @__PURE__ */ _(function() {
656
+ _currentRules: /* @__PURE__ */ p(function() {
657
657
  return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
658
658
  }, "_currentRules"),
659
659
  // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
660
- topState: /* @__PURE__ */ _(function(i) {
660
+ topState: /* @__PURE__ */ p(function(i) {
661
661
  return i = this.conditionStack.length - 1 - Math.abs(i || 0), i >= 0 ? this.conditionStack[i] : "INITIAL";
662
662
  }, "topState"),
663
663
  // alias for begin(condition)
664
- pushState: /* @__PURE__ */ _(function(i) {
664
+ pushState: /* @__PURE__ */ p(function(i) {
665
665
  this.begin(i);
666
666
  }, "pushState"),
667
667
  // return the number of states currently on the stack
668
- stateStackSize: /* @__PURE__ */ _(function() {
668
+ stateStackSize: /* @__PURE__ */ p(function() {
669
669
  return this.conditionStack.length;
670
670
  }, "stateStackSize"),
671
671
  options: { "case-insensitive": !0 },
672
- performAction: /* @__PURE__ */ _(function(i, o, f, p) {
672
+ performAction: /* @__PURE__ */ p(function(i, o, f, d) {
673
673
  switch (f) {
674
674
  case 0:
675
675
  return this.pushState("csv"), 4;
676
676
  case 1:
677
- return 10;
677
+ return this.pushState("csv"), 4;
678
678
  case 2:
679
- return 5;
679
+ return 10;
680
680
  case 3:
681
- return 12;
681
+ return 5;
682
682
  case 4:
683
- return this.pushState("escaped_text"), 18;
683
+ return 12;
684
684
  case 5:
685
- return 20;
685
+ return this.pushState("escaped_text"), 18;
686
686
  case 6:
687
- return this.popState("escaped_text"), 18;
687
+ return 20;
688
688
  case 7:
689
+ return this.popState("escaped_text"), 18;
690
+ case 8:
689
691
  return 19;
690
692
  }
691
693
  }, "anonymous"),
692
- rules: [/^(?:sankey-beta\b)/i, /^(?:$)/i, /^(?:((\u000D\u000A)|(\u000A)))/i, /^(?:(\u002C))/i, /^(?:(\u0022))/i, /^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i, /^(?:(\u0022)(?!(\u0022)))/i, /^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],
693
- conditions: { csv: { rules: [1, 2, 3, 4, 5, 6, 7], inclusive: !1 }, escaped_text: { rules: [6, 7], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 3, 4, 5, 6, 7], inclusive: !0 } }
694
+ rules: [/^(?:sankey-beta\b)/i, /^(?:sankey\b)/i, /^(?:$)/i, /^(?:((\u000D\u000A)|(\u000A)))/i, /^(?:(\u002C))/i, /^(?:(\u0022))/i, /^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i, /^(?:(\u0022)(?!(\u0022)))/i, /^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],
695
+ conditions: { csv: { rules: [2, 3, 4, 5, 6, 7, 8], inclusive: !1 }, escaped_text: { rules: [7, 8], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 3, 4, 5, 6, 7, 8], inclusive: !0 } }
694
696
  };
695
697
  return m;
696
698
  }();
697
699
  c.lexer = k;
698
- function d() {
700
+ function _() {
699
701
  this.yy = {};
700
702
  }
701
- return _(d, "Parser"), d.prototype = c, c.Parser = d, new d();
703
+ return p(_, "Parser"), _.prototype = c, c.Parser = _, new _();
702
704
  }();
703
705
  at.parser = at;
704
- var K = at, B = [], H = [], Z = /* @__PURE__ */ new Map(), Ht = /* @__PURE__ */ _(() => {
705
- B = [], H = [], Z = /* @__PURE__ */ new Map(), Mt();
706
- }, "clear"), nt, Jt = (nt = class {
706
+ var K = at, B = [], J = [], Z = /* @__PURE__ */ new Map(), Jt = /* @__PURE__ */ p(() => {
707
+ B = [], J = [], Z = /* @__PURE__ */ new Map(), Mt();
708
+ }, "clear"), nt, Ht = (nt = class {
707
709
  constructor(t, n, r = 0) {
708
710
  this.source = t, this.target = n, this.value = r;
709
711
  }
710
- }, _(nt, "SankeyLink"), nt), te = /* @__PURE__ */ _((t, n, r) => {
711
- B.push(new Jt(t, n, r));
712
+ }, p(nt, "SankeyLink"), nt), te = /* @__PURE__ */ p((t, n, r) => {
713
+ B.push(new Ht(t, n, r));
712
714
  }, "addLink"), it, ee = (it = class {
713
715
  constructor(t) {
714
716
  this.ID = t;
715
717
  }
716
- }, _(it, "SankeyNode"), it), ne = /* @__PURE__ */ _((t) => {
718
+ }, p(it, "SankeyNode"), it), ne = /* @__PURE__ */ p((t) => {
717
719
  t = At.sanitizeText(t, lt());
718
720
  let n = Z.get(t);
719
- return n === void 0 && (n = new ee(t), Z.set(t, n), H.push(n)), n;
720
- }, "findOrCreateNode"), ie = /* @__PURE__ */ _(() => H, "getNodes"), re = /* @__PURE__ */ _(() => B, "getLinks"), se = /* @__PURE__ */ _(() => ({
721
- nodes: H.map((t) => ({ id: t.ID })),
721
+ return n === void 0 && (n = new ee(t), Z.set(t, n), J.push(n)), n;
722
+ }, "findOrCreateNode"), ie = /* @__PURE__ */ p(() => J, "getNodes"), re = /* @__PURE__ */ p(() => B, "getLinks"), se = /* @__PURE__ */ p(() => ({
723
+ nodes: J.map((t) => ({ id: t.ID })),
722
724
  links: B.map((t) => ({
723
725
  source: t.source.ID,
724
726
  target: t.target.ID,
@@ -726,7 +728,7 @@ var K = at, B = [], H = [], Z = /* @__PURE__ */ new Map(), Ht = /* @__PURE__ */
726
728
  }))
727
729
  }), "getGraph"), oe = {
728
730
  nodesMap: Z,
729
- getConfig: /* @__PURE__ */ _(() => lt().sankey, "getConfig"),
731
+ getConfig: /* @__PURE__ */ p(() => lt().sankey, "getConfig"),
730
732
  getNodes: ie,
731
733
  getLinks: re,
732
734
  getGraph: se,
@@ -738,8 +740,8 @@ var K = at, B = [], H = [], Z = /* @__PURE__ */ new Map(), Ht = /* @__PURE__ */
738
740
  setAccDescription: vt,
739
741
  getDiagramTitle: kt,
740
742
  setDiagramTitle: xt,
741
- clear: Ht
742
- }, F, pt = (F = class {
743
+ clear: Jt
744
+ }, F, dt = (F = class {
743
745
  static next(t) {
744
746
  return new F(t + ++F.count);
745
747
  }
@@ -749,57 +751,60 @@ var K = at, B = [], H = [], Z = /* @__PURE__ */ new Map(), Ht = /* @__PURE__ */
749
751
  toString() {
750
752
  return "url(" + this.href + ")";
751
753
  }
752
- }, _(F, "Uid"), F.count = 0, F), ae = {
753
- left: Nt,
754
- right: Ot,
754
+ }, p(F, "Uid"), F.count = 0, F), ae = {
755
+ left: Ot,
756
+ right: Dt,
755
757
  center: It,
756
758
  justify: _t
757
- }, le = /* @__PURE__ */ _(function(t, n, r, a) {
758
- const { securityLevel: c, sankey: k } = lt(), d = Et.sankey;
759
+ }, le = /* @__PURE__ */ p(function(t, n, r, a) {
760
+ const { securityLevel: c, sankey: k } = lt(), _ = Et.sankey;
759
761
  let m;
760
- c === "sandbox" && (m = Q("#i" + n));
761
- const i = c === "sandbox" ? Q(m.nodes()[0].contentDocument.body) : Q("body"), o = c === "sandbox" ? i.select(`[id="${n}"]`) : Q(`[id="${n}"]`), f = (k == null ? void 0 : k.width) ?? d.width, p = (k == null ? void 0 : k.height) ?? d.width, y = (k == null ? void 0 : k.useMaxWidth) ?? d.useMaxWidth, w = (k == null ? void 0 : k.nodeAlignment) ?? d.nodeAlignment, v = (k == null ? void 0 : k.prefix) ?? d.prefix, P = (k == null ? void 0 : k.suffix) ?? d.suffix, A = (k == null ? void 0 : k.showValues) ?? d.showValues, T = a.db.getGraph(), O = ae[w];
762
- Ft().nodeId((g) => g.id).nodeWidth(10).nodePadding(10 + (A ? 15 : 0)).nodeAlign(O).extent([
762
+ c === "sandbox" && (m = Y("#i" + n));
763
+ const i = c === "sandbox" ? Y(m.nodes()[0].contentDocument.body) : Y("body"), o = c === "sandbox" ? i.select(`[id="${n}"]`) : Y(`[id="${n}"]`), f = (k == null ? void 0 : k.width) ?? _.width, d = (k == null ? void 0 : k.height) ?? _.width, y = (k == null ? void 0 : k.useMaxWidth) ?? _.useMaxWidth, w = (k == null ? void 0 : k.nodeAlignment) ?? _.nodeAlignment, v = (k == null ? void 0 : k.prefix) ?? _.prefix, C = (k == null ? void 0 : k.suffix) ?? _.suffix, A = (k == null ? void 0 : k.showValues) ?? _.showValues, T = a.db.getGraph(), D = ae[w];
764
+ Ft().nodeId((g) => g.id).nodeWidth(10).nodePadding(10 + (A ? 15 : 0)).nodeAlign(D).extent([
763
765
  [0, 0],
764
- [f, p]
766
+ [f, d]
765
767
  ])(T);
766
- const D = Tt(Pt);
767
- o.append("g").attr("class", "nodes").selectAll(".node").data(T.nodes).join("g").attr("class", "node").attr("id", (g) => (g.uid = pt.next("node-")).id).attr("transform", function(g) {
768
+ const P = Tt(Ct);
769
+ o.append("g").attr("class", "nodes").selectAll(".node").data(T.nodes).join("g").attr("class", "node").attr("id", (g) => (g.uid = dt.next("node-")).id).attr("transform", function(g) {
768
770
  return "translate(" + g.x0 + "," + g.y0 + ")";
769
- }).attr("x", (g) => g.x0).attr("y", (g) => g.y0).append("rect").attr("height", (g) => g.y1 - g.y0).attr("width", (g) => g.x1 - g.x0).attr("fill", (g) => D(g.id));
770
- const S = /* @__PURE__ */ _(({ id: g, value: L }) => A ? `${g}
771
- ${v}${Math.round(L * 100) / 100}${P}` : g, "getText");
772
- o.append("g").attr("class", "node-labels").attr("font-family", "sans-serif").attr("font-size", 14).selectAll("text").data(T.nodes).join("text").attr("x", (g) => g.x0 < f / 2 ? g.x1 + 6 : g.x0 - 6).attr("y", (g) => (g.y1 + g.y0) / 2).attr("dy", `${A ? "0" : "0.35"}em`).attr("text-anchor", (g) => g.x0 < f / 2 ? "start" : "end").text(S);
773
- const C = o.append("g").attr("class", "links").attr("fill", "none").attr("stroke-opacity", 0.5).selectAll(".link").data(T.links).join("g").attr("class", "link").style("mix-blend-mode", "multiply"), I = (k == null ? void 0 : k.linkColor) ?? "gradient";
771
+ }).attr("x", (g) => g.x0).attr("y", (g) => g.y0).append("rect").attr("height", (g) => g.y1 - g.y0).attr("width", (g) => g.x1 - g.x0).attr("fill", (g) => P(g.id));
772
+ const S = /* @__PURE__ */ p(({ id: g, value: L }) => A ? `${g}
773
+ ${v}${Math.round(L * 100) / 100}${C}` : g, "getText");
774
+ o.append("g").attr("class", "node-labels").attr("font-size", 14).selectAll("text").data(T.nodes).join("text").attr("x", (g) => g.x0 < f / 2 ? g.x1 + 6 : g.x0 - 6).attr("y", (g) => (g.y1 + g.y0) / 2).attr("dy", `${A ? "0" : "0.35"}em`).attr("text-anchor", (g) => g.x0 < f / 2 ? "start" : "end").text(S);
775
+ const N = o.append("g").attr("class", "links").attr("fill", "none").attr("stroke-opacity", 0.5).selectAll(".link").data(T.links).join("g").attr("class", "link").style("mix-blend-mode", "multiply"), I = (k == null ? void 0 : k.linkColor) ?? "gradient";
774
776
  if (I === "gradient") {
775
- const g = C.append("linearGradient").attr("id", (L) => (L.uid = pt.next("linearGradient-")).id).attr("gradientUnits", "userSpaceOnUse").attr("x1", (L) => L.source.x1).attr("x2", (L) => L.target.x0);
776
- g.append("stop").attr("offset", "0%").attr("stop-color", (L) => D(L.source.id)), g.append("stop").attr("offset", "100%").attr("stop-color", (L) => D(L.target.id));
777
+ const g = N.append("linearGradient").attr("id", (L) => (L.uid = dt.next("linearGradient-")).id).attr("gradientUnits", "userSpaceOnUse").attr("x1", (L) => L.source.x1).attr("x2", (L) => L.target.x0);
778
+ g.append("stop").attr("offset", "0%").attr("stop-color", (L) => P(L.source.id)), g.append("stop").attr("offset", "100%").attr("stop-color", (L) => P(L.target.id));
777
779
  }
778
- let N;
780
+ let O;
779
781
  switch (I) {
780
782
  case "gradient":
781
- N = /* @__PURE__ */ _((g) => g.uid, "coloring");
783
+ O = /* @__PURE__ */ p((g) => g.uid, "coloring");
782
784
  break;
783
785
  case "source":
784
- N = /* @__PURE__ */ _((g) => D(g.source.id), "coloring");
786
+ O = /* @__PURE__ */ p((g) => P(g.source.id), "coloring");
785
787
  break;
786
788
  case "target":
787
- N = /* @__PURE__ */ _((g) => D(g.target.id), "coloring");
789
+ O = /* @__PURE__ */ p((g) => P(g.target.id), "coloring");
788
790
  break;
789
791
  default:
790
- N = I;
792
+ O = I;
791
793
  }
792
- C.append("path").attr("d", Bt()).attr("stroke", N).attr("stroke-width", (g) => Math.max(1, g.width)), Lt(void 0, o, 0, y);
794
+ N.append("path").attr("d", Bt()).attr("stroke", O).attr("stroke-width", (g) => Math.max(1, g.width)), Lt(void 0, o, 0, y);
793
795
  }, "draw"), ce = {
794
796
  draw: le
795
- }, ue = /* @__PURE__ */ _((t) => t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g, "").replaceAll(/([\n\r])+/g, `
796
- `).trim(), "prepareTextForParsing"), he = K.parse.bind(K);
797
- K.parse = (t) => he(ue(t));
798
- var ge = {
797
+ }, ue = /* @__PURE__ */ p((t) => t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g, "").replaceAll(/([\n\r])+/g, `
798
+ `).trim(), "prepareTextForParsing"), he = /* @__PURE__ */ p((t) => `.label {
799
+ font-family: ${t.fontFamily};
800
+ }`, "getStyles"), fe = he, ye = K.parse.bind(K);
801
+ K.parse = (t) => ye(ue(t));
802
+ var pe = {
803
+ styles: fe,
799
804
  parser: K,
800
805
  db: oe,
801
806
  renderer: ce
802
807
  };
803
808
  export {
804
- ge as diagram
809
+ pe as diagram
805
810
  };