@kong-ui-public/documentation 1.4.17-pr.2665.525593492.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.
- package/dist/_basePickBy-BCsiP0lE-DJBdvZNn.js +151 -0
- package/dist/{_baseUniq-SAfYgIkf-buEvGj9H.js → _baseUniq-CsvgMmt0-CCBG5z_B.js} +165 -165
- package/dist/arc-DYb5Ak6k-js8YHzj6.js +83 -0
- package/dist/architecture-U656AL7Q-LZu-yAfZ-CQD6AyxA.js +5 -0
- package/dist/architectureDiagram-KFL7JDKH-BK_an8l5-D20M_MXF.js +4665 -0
- package/dist/blockDiagram-ZYB65J3Q-C0KtqCEe-pwEm3-ie.js +2265 -0
- package/dist/{c4Diagram-6F5ED5ID-D5yqWyf0-DzlUmurv.js → c4Diagram-AAMF2YG6-DYHWlrmc-C6NWDsTV.js} +4 -4
- package/dist/{channel-bVcNKbrJ-NqcPkfCx.js → channel-3QVQMCTA-BwyrTaJi.js} +1 -1
- package/dist/{chunk-TMUBEWPD-BRIzn5gH-alZ9Sg3f.js → chunk-ANTBXLJU-BhR1MDfy-Bec7kb00.js} +1 -1
- package/dist/{chunk-KFBOBJHC-nixdujtH-CrTZo7r-.js → chunk-FHKO5MBM-z_nuC8Da-Dge2Nbr5.js} +1 -1
- package/dist/chunk-GLLZNHP4-DgwBbAOT-BUrsAxH8.js +19 -0
- package/dist/chunk-JBRWN2VN-CHua2TSC-BYWS19Oz.js +1374 -0
- package/dist/chunk-LXBSTHXV-CoED0jHL-Cc8w4JL1.js +1382 -0
- package/dist/chunk-NRVI72HA-DxsqT4Dt-Bo_vu9qn.js +20 -0
- package/dist/{chunk-ASOPGD6M-B5bA_saK-BiT875Ve.js → chunk-OMD6QJNC-_VI6zVGr-Bb4P7zNG.js} +1 -1
- package/dist/chunk-WVR4S24B-C4HIWky3-CkJ0DHSJ.js +8 -0
- package/dist/classDiagram-3BZAVTQC-DrmNjTt_-CS9fxl_R.js +16 -0
- package/dist/classDiagram-v2-QTMF73CY-DrmNjTt_-CS9fxl_R.js +16 -0
- package/dist/{clone-_5SW34SG-DOuhA6mG.js → clone-C0dvnYv6-BozdSvey.js} +1 -1
- package/dist/cytoscape.esm-CjI2IsL8-DYIumutE.js +18721 -0
- package/dist/{dagre-4EVJKHTY-CcAruc30-B3UMlKNl.js → dagre-2BBEFEWP-Bh_bYuL8-Cej31YXN.js} +53 -53
- package/dist/defaultLocale-D7EN2tov-CK6dgF7Y.js +171 -0
- package/dist/diagram-4IRLE6MV-34TaesxP-XfF-gcP2.js +533 -0
- package/dist/diagram-GUPCWM2R-Cr4-5_uX-B8mxM1Uc.js +143 -0
- package/dist/diagram-RP2FKANI-COpvHjzI-C-_mZxuk.js +221 -0
- package/dist/documentation.es.js +1 -1
- package/dist/documentation.umd.js +860 -399
- package/dist/erDiagram-HZWUO2LU-Cu2MerRS-KziSgDQg.js +840 -0
- package/dist/flowDiagram-THRYKUMA-CfrQTB8C-BYn8LF24.js +1627 -0
- package/dist/ganttDiagram-WV7ZQ7D5-gkieebY_-C7YOriZ4.js +2504 -0
- package/dist/gitGraph-F6HP7TQM-suE5ufvy-CQDQV2yP.js +5 -0
- package/dist/{gitGraphDiagram-NRZ2UAAF-B-t90-9e-BkGPAEnk.js → gitGraphDiagram-OJR772UL-CYA7EIoU-Bqc1qZk4.js} +103 -103
- package/dist/{graph-BYZMvqpu-BXRs5843.js → graph-B_1gOUDz-Dm6REFzZ.js} +2 -2
- package/dist/{index-CMZig9xg.js → index-BDD0CD9m.js} +9834 -9540
- package/dist/info-NVLQJR56-CdsHk-Jf-tf8zb8tD.js +5 -0
- package/dist/infoDiagram-6WOFNB3A-ajp3t5Lm-D80dGo5F.js +24 -0
- package/dist/{journeyDiagram-G5WM74LC-BE7U42Ad-y6YegUqL.js → journeyDiagram-FFXJYRFH-kgCEEPLo-CakI8CyJ.js} +357 -333
- package/dist/{kanban-definition-QRCXZQQD-C-5-UNRm-BOYYKTAB.js → kanban-definition-KOZQBZVT-CmM4CHe6-rjuufCiO.js} +75 -73
- package/dist/{katex-Qk2jHgyB-_qyJ_37x.js → katex-C0Lgw_Sx-CbX2I1cQ.js} +1864 -1814
- package/dist/{layout-BHI4imdk-CESYC-il.js → layout-9vIfpCf3-FfABA43y.js} +81 -81
- package/dist/linear-C-k9vokG-Md9dfBfB.js +259 -0
- package/dist/{mermaid-parser.core-Ce96PX3Q-CV9ue_xr.js → mermaid-parser.core-DHL9WXVx-DeKF3RZx.js} +4080 -3590
- package/dist/{mindmap-definition-GWI6TPTV-C98Syvj2-DUWC1UH5.js → mindmap-definition-LNHGMQRG-BsypuFYj-DSVrvuog.js} +1112 -1100
- package/dist/packet-BFZMPI3H-BcK9kJ-B-BxxCPBGn.js +5 -0
- package/dist/pie-7BOR55EZ-Vt5px0F3-BM7egbMh.js +5 -0
- package/dist/pieDiagram-DBDJKBY4-Bam6gKTi-BOqYeC6c.js +161 -0
- package/dist/{quadrantDiagram-OS5C2QUG-M57vVPSx-BRx-dMGe.js → quadrantDiagram-YPSRARAO-CJwMw09m-CN2OO-Le.js} +2 -2
- package/dist/radar-NHE76QYJ-Br11XWE4-4RP4MPFA.js +5 -0
- package/dist/requirementDiagram-EGVEC5DT-DkRytT0X-C2zigskn.js +850 -0
- package/dist/{sankeyDiagram-Y46BX6SQ-D6EdYPdp-D2Qzxmhx.js → sankeyDiagram-HRAUVNP4-08s1UHMk-2j8idkNs.js} +198 -193
- package/dist/{sequenceDiagram-G6AWOVSC-B171TAb1-KCpoI-Ck.js → sequenceDiagram-WFGC7UMF-6_s7-CN7-D-oTpLFJ.js} +1001 -992
- package/dist/stateDiagram-UUKSUZ4H-eWajY90l-BlM614AN.js +263 -0
- package/dist/stateDiagram-v2-EYPG3UTE-Dh7Ngu1O-YVMiocHE.js +16 -0
- package/dist/style.css +1 -1
- package/dist/timeline-definition-3HZDQTIS-4TPEOhE8-fDDLVlO8.js +799 -0
- package/dist/treemap-KMMF4GRG-nu7WEuPi-C1YG24W8.js +5 -0
- package/dist/{xychartDiagram-6QU3TZC5-CqbTSF5W-CUbJ50KT.js → xychartDiagram-FDP5SA34-BbtKlU7T-D1BI5nWs.js} +459 -423
- package/package.json +4 -4
- package/dist/_basePickBy-zlkqRmFy-D6w9JBLu.js +0 -151
- package/dist/arc-CK9P6CkJ-DVgfRhzX.js +0 -83
- package/dist/architecture-I3QFYML2-DJzmbE4M-C3v7Cpg0.js +0 -5
- package/dist/architectureDiagram-UYN6MBPD-DkZdgpXi-BTThTJ0F.js +0 -4592
- package/dist/blockDiagram-ZHA2E4KO-DnCMGCMN-DBXa-baO.js +0 -2247
- package/dist/chunk-5HRBRIJM-BjQ8go1b-CJmT3AYe.js +0 -24
- package/dist/chunk-7U56Z5CX-awhAxjZ0-Cs_UWlwk.js +0 -1213
- package/dist/chunk-T2TOU4HS-DqOVhIzl-O3PUl7Qp.js +0 -1301
- package/dist/classDiagram-LNE6IOMH-fQzyXfo--DYLd8UQH.js +0 -14
- package/dist/classDiagram-v2-MQ7JQ4JX-fQzyXfo--DYLd8UQH.js +0 -14
- package/dist/cytoscape.esm-DAyNQ0qu-i5PnoWfE.js +0 -16110
- package/dist/diagram-QW4FP2JN-DZT_0aFO-SYzM51ke.js +0 -126
- package/dist/erDiagram-6RL3IURR-BfgUC5jv-BrebVho-.js +0 -937
- package/dist/flowDiagram-7ASYPVHJ-Bo9CnsE7-Ds2vln_y.js +0 -1484
- package/dist/ganttDiagram-NTVNEXSI-8E9hjd6N-fR_cmeDc.js +0 -2491
- package/dist/gitGraph-YCYPL57B-BnErPIwo-DXUTceC1.js +0 -5
- package/dist/info-46DW6VJ7-DPpbx_vA-omPXKuBd.js +0 -5
- package/dist/infoDiagram-A4XQUW5V-Bo9uoOcA-CnlgI27B.js +0 -22
- package/dist/linear-C2PheBya-BHVXLcru.js +0 -423
- package/dist/packet-W2GHVCYJ-BLiQbm7T-BD1xX8XM.js +0 -5
- package/dist/pie-BEWT4RHE-D3Mbo3mT-B4n38n6N.js +0 -5
- package/dist/pieDiagram-YF2LJOPJ-BJV27s9B-DA7hy5wG.js +0 -161
- package/dist/requirementDiagram-MIRIMTAZ-D0KDg7rf-CRMUyo68.js +0 -768
- package/dist/stateDiagram-MAYHULR4-D7FUnT9_-aCApnrI4.js +0 -268
- package/dist/stateDiagram-v2-4JROLMXI-Cyc74STT-D-7hwTRo.js +0 -14
- package/dist/timeline-definition-U7ZMHBDA-Bw-dp1yf-C01CsNUU.js +0 -804
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { _,
|
|
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
|
|
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
|
|
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
|
|
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
|
|
44
|
+
function Nt(t) {
|
|
45
45
|
return t.target.depth;
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function Ot(t) {
|
|
48
48
|
return t.depth;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
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 ?
|
|
57
|
+
return t.targetLinks.length ? t.depth : t.sourceLinks.length ? pt(t.sourceLinks, Nt) - 1 : 0;
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function Q(t) {
|
|
60
60
|
return function() {
|
|
61
61
|
return t;
|
|
62
62
|
};
|
|
63
63
|
}
|
|
64
64
|
function ut(t, n) {
|
|
65
|
-
return
|
|
65
|
+
return R(t.source, n.source) || t.index - n.index;
|
|
66
66
|
}
|
|
67
67
|
function ht(t, n) {
|
|
68
|
-
return
|
|
68
|
+
return R(t.target, n.target) || t.index - n.index;
|
|
69
69
|
}
|
|
70
|
-
function
|
|
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
|
|
76
|
+
function $t(t) {
|
|
77
77
|
return t.index;
|
|
78
78
|
}
|
|
79
|
-
function
|
|
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,
|
|
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:
|
|
103
|
-
return
|
|
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 :
|
|
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 :
|
|
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 =
|
|
116
|
+
return arguments.length ? (k = _ = +e, v) : k;
|
|
117
117
|
}, v.nodes = function(e) {
|
|
118
|
-
return arguments.length ? (
|
|
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 :
|
|
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
|
|
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
|
|
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
|
|
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 =
|
|
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 +
|
|
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 +
|
|
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
|
-
|
|
197
|
+
$(l);
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
|
-
function
|
|
201
|
-
const h =
|
|
202
|
-
|
|
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
|
-
|
|
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,
|
|
213
|
-
for (const { source: q, value:
|
|
214
|
-
let
|
|
215
|
-
V += M(q, b) *
|
|
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 (!(
|
|
218
|
-
let W = (V /
|
|
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(
|
|
221
|
+
o === void 0 && x.sort(R), g(x, l);
|
|
222
222
|
}
|
|
223
223
|
}
|
|
224
|
-
function
|
|
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,
|
|
229
|
-
for (const { target: q, value:
|
|
230
|
-
let
|
|
231
|
-
V += U(b, q) *
|
|
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 (!(
|
|
234
|
-
let W = (V /
|
|
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(
|
|
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 -
|
|
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 +
|
|
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 -
|
|
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
|
|
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) *
|
|
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 +
|
|
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) *
|
|
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 +
|
|
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,
|
|
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 (
|
|
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 -
|
|
330
|
-
Math.abs(
|
|
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
|
|
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 && (
|
|
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
|
|
361
|
+
function Xt(t) {
|
|
362
362
|
return t.target;
|
|
363
363
|
}
|
|
364
|
-
function
|
|
365
|
-
var n = qt, r =
|
|
366
|
-
function
|
|
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
|
|
371
|
-
return arguments.length ? (n = m,
|
|
372
|
-
},
|
|
373
|
-
return arguments.length ? (r = m,
|
|
374
|
-
},
|
|
375
|
-
return arguments.length ? (a = typeof m == "function" ? m : gt(+m),
|
|
376
|
-
},
|
|
377
|
-
return arguments.length ? (c = typeof m == "function" ? m : gt(+m),
|
|
378
|
-
},
|
|
379
|
-
return arguments.length ? (k = m ?? null,
|
|
380
|
-
},
|
|
381
|
-
}
|
|
382
|
-
function
|
|
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
|
|
386
|
-
return Qt
|
|
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
|
|
395
|
+
return Rt().source(Kt).target(Zt);
|
|
396
396
|
}
|
|
397
397
|
var at = function() {
|
|
398
|
-
var t = /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
408
|
+
performAction: /* @__PURE__ */ p(function(m, i, o, f, d, y, w) {
|
|
409
409
|
var v = y.length - 1;
|
|
410
|
-
switch (
|
|
410
|
+
switch (d) {
|
|
411
411
|
case 7:
|
|
412
|
-
const
|
|
413
|
-
f.addLink(
|
|
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__ */
|
|
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__ */
|
|
436
|
-
var i = this, o = [0], f = [],
|
|
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) && (
|
|
439
|
-
S.setInput(m,
|
|
440
|
-
var
|
|
441
|
-
y.push(
|
|
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
|
|
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,
|
|
445
|
+
o.length = o.length - 2 * b, d.length = d.length - b, y.length = y.length - b;
|
|
446
446
|
}
|
|
447
|
-
|
|
447
|
+
p(L, "popStack");
|
|
448
448
|
function G() {
|
|
449
449
|
var b;
|
|
450
|
-
return b = f.pop() || S.lex() ||
|
|
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
|
-
|
|
453
|
-
for (var E,
|
|
454
|
-
if (
|
|
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[
|
|
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 " + (
|
|
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 " + (
|
|
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:
|
|
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: " +
|
|
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),
|
|
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.$ =
|
|
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
|
-
|
|
488
|
-
|
|
487
|
+
C,
|
|
488
|
+
N.yy,
|
|
489
489
|
M[1],
|
|
490
|
-
|
|
490
|
+
d,
|
|
491
491
|
y
|
|
492
|
-
].concat(
|
|
492
|
+
].concat(P)), typeof U < "u")
|
|
493
493
|
return U;
|
|
494
|
-
l && (o = o.slice(0, -1 * l * 2),
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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
|
|
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 ===
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
580
|
-
var f,
|
|
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))),
|
|
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:
|
|
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__ */
|
|
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,
|
|
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,
|
|
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[
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
668
|
+
stateStackSize: /* @__PURE__ */ p(function() {
|
|
669
669
|
return this.conditionStack.length;
|
|
670
670
|
}, "stateStackSize"),
|
|
671
671
|
options: { "case-insensitive": !0 },
|
|
672
|
-
performAction: /* @__PURE__ */
|
|
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
|
|
677
|
+
return this.pushState("csv"), 4;
|
|
678
678
|
case 2:
|
|
679
|
-
return
|
|
679
|
+
return 10;
|
|
680
680
|
case 3:
|
|
681
|
-
return
|
|
681
|
+
return 5;
|
|
682
682
|
case 4:
|
|
683
|
-
return
|
|
683
|
+
return 12;
|
|
684
684
|
case 5:
|
|
685
|
-
return
|
|
685
|
+
return this.pushState("escaped_text"), 18;
|
|
686
686
|
case 6:
|
|
687
|
-
return
|
|
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: [
|
|
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
|
|
700
|
+
function _() {
|
|
699
701
|
this.yy = {};
|
|
700
702
|
}
|
|
701
|
-
return _
|
|
703
|
+
return p(_, "Parser"), _.prototype = c, c.Parser = _, new _();
|
|
702
704
|
}();
|
|
703
705
|
at.parser = at;
|
|
704
|
-
var K = at, B = [],
|
|
705
|
-
B = [],
|
|
706
|
-
}, "clear"), nt,
|
|
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
|
-
},
|
|
711
|
-
B.push(new
|
|
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
|
-
},
|
|
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),
|
|
720
|
-
}, "findOrCreateNode"), ie = /* @__PURE__ */
|
|
721
|
-
nodes:
|
|
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__ */
|
|
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:
|
|
742
|
-
}, F,
|
|
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
|
-
},
|
|
753
|
-
left:
|
|
754
|
-
right:
|
|
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__ */
|
|
758
|
-
const { securityLevel: c, sankey: k } = lt(),
|
|
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 =
|
|
761
|
-
const i = c === "sandbox" ?
|
|
762
|
-
Ft().nodeId((g) => g.id).nodeWidth(10).nodePadding(10 + (A ? 15 : 0)).nodeAlign(
|
|
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,
|
|
766
|
+
[f, d]
|
|
765
767
|
])(T);
|
|
766
|
-
const
|
|
767
|
-
o.append("g").attr("class", "nodes").selectAll(".node").data(T.nodes).join("g").attr("class", "node").attr("id", (g) => (g.uid =
|
|
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) =>
|
|
770
|
-
const S = /* @__PURE__ */
|
|
771
|
-
${v}${Math.round(L * 100) / 100}${
|
|
772
|
-
o.append("g").attr("class", "node-labels").attr("font-
|
|
773
|
-
const
|
|
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 =
|
|
776
|
-
g.append("stop").attr("offset", "0%").attr("stop-color", (L) =>
|
|
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
|
|
780
|
+
let O;
|
|
779
781
|
switch (I) {
|
|
780
782
|
case "gradient":
|
|
781
|
-
|
|
783
|
+
O = /* @__PURE__ */ p((g) => g.uid, "coloring");
|
|
782
784
|
break;
|
|
783
785
|
case "source":
|
|
784
|
-
|
|
786
|
+
O = /* @__PURE__ */ p((g) => P(g.source.id), "coloring");
|
|
785
787
|
break;
|
|
786
788
|
case "target":
|
|
787
|
-
|
|
789
|
+
O = /* @__PURE__ */ p((g) => P(g.target.id), "coloring");
|
|
788
790
|
break;
|
|
789
791
|
default:
|
|
790
|
-
|
|
792
|
+
O = I;
|
|
791
793
|
}
|
|
792
|
-
|
|
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__ */
|
|
796
|
-
`).trim(), "prepareTextForParsing"), he =
|
|
797
|
-
|
|
798
|
-
|
|
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
|
-
|
|
809
|
+
pe as diagram
|
|
805
810
|
};
|