@kong-ui-public/documentation 1.4.20 → 1.4.21-pr.2722.b1aa23ae4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/dist/_basePickBy-BCsiP0lE-DJBdvZNn.js +0 -151
- package/dist/_baseUniq-CsvgMmt0-CCBG5z_B.js +0 -614
- package/dist/arc-DYb5Ak6k-js8YHzj6.js +0 -83
- package/dist/architecture-U656AL7Q-LZu-yAfZ-CQD6AyxA.js +0 -5
- package/dist/architectureDiagram-KFL7JDKH-BK_an8l5-D20M_MXF.js +0 -4665
- package/dist/astro-Uf8_VxKJ-CZxoSljj.js +0 -16
- package/dist/blockDiagram-ZYB65J3Q-C0KtqCEe-pwEm3-ie.js +0 -2265
- package/dist/c-DASdrs7p-DASdrs7p.js +0 -6
- package/dist/c4Diagram-AAMF2YG6-DYHWlrmc-C6NWDsTV.js +0 -1581
- package/dist/channel-3QVQMCTA-BwyrTaJi.js +0 -5
- package/dist/chunk-ANTBXLJU-BhR1MDfy-Bec7kb00.js +0 -9
- package/dist/chunk-FHKO5MBM-z_nuC8Da-Dge2Nbr5.js +0 -15
- package/dist/chunk-GLLZNHP4-DgwBbAOT-BUrsAxH8.js +0 -19
- package/dist/chunk-JBRWN2VN-CHua2TSC-BYWS19Oz.js +0 -1374
- package/dist/chunk-LXBSTHXV-CoED0jHL-Cc8w4JL1.js +0 -1382
- package/dist/chunk-NRVI72HA-DxsqT4Dt-Bo_vu9qn.js +0 -20
- package/dist/chunk-OMD6QJNC-_VI6zVGr-Bb4P7zNG.js +0 -64
- package/dist/chunk-WVR4S24B-C4HIWky3-CkJ0DHSJ.js +0 -8
- package/dist/classDiagram-3BZAVTQC-DrmNjTt_-CS9fxl_R.js +0 -16
- package/dist/classDiagram-v2-QTMF73CY-DrmNjTt_-CS9fxl_R.js +0 -16
- package/dist/clone-C0dvnYv6-BozdSvey.js +0 -8
- package/dist/csharp-CYWRhZ2R-CYWRhZ2R.js +0 -6
- package/dist/css-D1aVdRIU-D1aVdRIU.js +0 -6
- package/dist/csv-DvCncUGQ-Tno401i9.js +0 -6
- package/dist/cytoscape.esm-CjI2IsL8-DYIumutE.js +0 -18721
- package/dist/dagre-2BBEFEWP-Bh_bYuL8-Cej31YXN.js +0 -447
- package/dist/defaultLocale-D7EN2tov-CK6dgF7Y.js +0 -171
- package/dist/diagram-4IRLE6MV-34TaesxP-XfF-gcP2.js +0 -533
- package/dist/diagram-GUPCWM2R-Cr4-5_uX-B8mxM1Uc.js +0 -143
- package/dist/diagram-RP2FKANI-COpvHjzI-C-_mZxuk.js +0 -221
- package/dist/diff-XmNrvgM1-XmNrvgM1.js +0 -6
- package/dist/docker-DWH2onkn-DWH2onkn.js +0 -6
- package/dist/documentation.es.js +0 -7
- package/dist/documentation.umd.js +0 -2865
- package/dist/erDiagram-HZWUO2LU-Cu2MerRS-KziSgDQg.js +0 -840
- package/dist/flowDiagram-THRYKUMA-CfrQTB8C-BYn8LF24.js +0 -1627
- package/dist/ganttDiagram-WV7ZQ7D5-gkieebY_-C7YOriZ4.js +0 -2504
- package/dist/git-commit-BspYIY3P-VkbIfR3L.js +0 -8
- package/dist/git-rebase--zLBTjUa-DEW2tfKx.js +0 -8
- package/dist/gitGraph-F6HP7TQM-suE5ufvy-CQDQV2yP.js +0 -5
- package/dist/gitGraphDiagram-OJR772UL-CYA7EIoU-Bqc1qZk4.js +0 -712
- package/dist/go-BErP6iv1-BErP6iv1.js +0 -6
- package/dist/graph-B_1gOUDz-Dm6REFzZ.js +0 -247
- package/dist/graphql-DWpQF4JI-C-3VJmtp.js +0 -14
- package/dist/haml-CMN0hQaL-BV5BsZTy.js +0 -10
- package/dist/handlebars-Cc-7fXX5-B9YgDKzT.js +0 -14
- package/dist/haskell-CtlGos0K-CtlGos0K.js +0 -6
- package/dist/html-B0P_v3yU-BojM9zZg.js +0 -10
- package/dist/html-derivative-BJFFAxYV-iD6NAoKm.js +0 -8
- package/dist/http-Dcjm_K1m-1LFSbOE1.js +0 -14
- package/dist/index-BDD0CD9m.js +0 -37385
- package/dist/info-NVLQJR56-CdsHk-Jf-tf8zb8tD.js +0 -5
- package/dist/infoDiagram-6WOFNB3A-ajp3t5Lm-D80dGo5F.js +0 -24
- package/dist/ini-BUcvsX-U-BUcvsX-U.js +0 -6
- package/dist/init-DjUOC4st-C8Nwz6AJ.js +0 -16
- package/dist/java-B7odJ7Ap-B7odJ7Ap.js +0 -6
- package/dist/javascript-fa8UlHZE-fa8UlHZE.js +0 -6
- package/dist/journeyDiagram-FFXJYRFH-kgCEEPLo-CakI8CyJ.js +0 -834
- package/dist/json-71t8ZF9g-71t8ZF9g.js +0 -6
- package/dist/json5-Z7F6rA6a-Z7F6rA6a.js +0 -6
- package/dist/jsonc-Dphhs4m2-Dphhs4m2.js +0 -6
- package/dist/jsonl-D9jj92Gg-D9jj92Gg.js +0 -6
- package/dist/jsx-Bkesy5tT-Bkesy5tT.js +0 -6
- package/dist/kanban-definition-KOZQBZVT-CmM4CHe6-rjuufCiO.js +0 -720
- package/dist/katex-C0Lgw_Sx-CbX2I1cQ.js +0 -11687
- package/dist/kotlin-DCgZY7Ii-DCgZY7Ii.js +0 -6
- package/dist/latex-CZXk8SiZ-DbjDPp_f.js +0 -11
- package/dist/layout-9vIfpCf3-FfABA43y.js +0 -1321
- package/dist/less-DQA4v-Nm-DQA4v-Nm.js +0 -6
- package/dist/linear-C-k9vokG-Md9dfBfB.js +0 -259
- package/dist/liquid-CvufO3kO-D90bBAdm.js +0 -14
- package/dist/lua-BVfhNLDr-DAa90qLN.js +0 -8
- package/dist/make-BjuHP00g-BjuHP00g.js +0 -6
- package/dist/markdown-B6guhLWd-B6guhLWd.js +0 -6
- package/dist/material-theme-lighter-BUBw43Yz-BUBw43Yz.js +0 -4
- package/dist/material-theme-palenight-C1RVm8K1-C1RVm8K1.js +0 -4
- package/dist/mdc-Bq810vct-Dr8CpN8f.js +0 -12
- package/dist/mdx-DIoECIFU-DIoECIFU.js +0 -6
- package/dist/mermaid-BZ7WHNIe-BZ7WHNIe.js +0 -6
- package/dist/mermaid-parser.core-DHL9WXVx-DeKF3RZx.js +0 -12890
- package/dist/mindmap-definition-LNHGMQRG-BsypuFYj-DSVrvuog.js +0 -3231
- package/dist/nginx-Can2eAjw-DKMoypYC.js +0 -8
- package/dist/objective-c-BGg9R27G-BGg9R27G.js +0 -6
- package/dist/ordinal-DfAQgscy-BEJTu10r.js +0 -61
- package/dist/packet-BFZMPI3H-BcK9kJ-B-BxxCPBGn.js +0 -5
- package/dist/pascal-l2bqd7Dz-l2bqd7Dz.js +0 -6
- package/dist/perl-DaMQyPwp-Cxx4wmV7.js +0 -16
- package/dist/php-BL3EfPBi-BZu5YwDX.js +0 -18
- package/dist/pie-7BOR55EZ-Vt5px0F3-BM7egbMh.js +0 -5
- package/dist/pieDiagram-DBDJKBY4-Bam6gKTi-BOqYeC6c.js +0 -161
- package/dist/plsql-oVq_K_wH-oVq_K_wH.js +0 -6
- package/dist/postcss-BZ3MNRIJ-BZ3MNRIJ.js +0 -6
- package/dist/powershell-Diwyv8Eh-Diwyv8Eh.js +0 -6
- package/dist/proto-o9HLmF90-o9HLmF90.js +0 -6
- package/dist/pug-HKe4Luo3-BYb0El_4.js +0 -12
- package/dist/python-xYxLFJY--xYxLFJY-.js +0 -6
- package/dist/quadrantDiagram-YPSRARAO-CJwMw09m-CN2OO-Le.js +0 -1024
- package/dist/r-F-9I-ITZ-F-9I-ITZ.js +0 -6
- package/dist/radar-NHE76QYJ-Br11XWE4-4RP4MPFA.js +0 -5
- package/dist/reg-CMUdAgIP-CMUdAgIP.js +0 -6
- package/dist/requirementDiagram-EGVEC5DT-DkRytT0X-C2zigskn.js +0 -850
- package/dist/rst-B8JEEtLI-Dyxh6LOj.js +0 -22
- package/dist/ruby-FDlfLkNa-nf7VLvCK.js +0 -50
- package/dist/rust-Pc7DCsZD-Pc7DCsZD.js +0 -6
- package/dist/sankeyDiagram-HRAUVNP4-08s1UHMk-2j8idkNs.js +0 -810
- package/dist/sass-iCyS6eP9-iCyS6eP9.js +0 -6
- package/dist/scss-DhHc4lxB-D1lMETuy.js +0 -8
- package/dist/sequenceDiagram-WFGC7UMF-6_s7-CN7-D-oTpLFJ.js +0 -2283
- package/dist/shellscript-Dn0-btNd-Dn0-btNd.js +0 -6
- package/dist/shellsession-8OLo3sB6-DD6AdPYk.js +0 -8
- package/dist/splunk-CTqDjQdo-CTqDjQdo.js +0 -6
- package/dist/sql-DCkt643--DCkt643-.js +0 -6
- package/dist/ssh-config-DHHGll-v-DHHGll-v.js +0 -6
- package/dist/stateDiagram-UUKSUZ4H-eWajY90l-BlM614AN.js +0 -263
- package/dist/stateDiagram-v2-EYPG3UTE-Dh7Ngu1O-YVMiocHE.js +0 -16
- package/dist/style.css +0 -1
- package/dist/stylus-n_9f0QQ5-n_9f0QQ5.js +0 -6
- package/dist/svelte-01qw6Rxm-Cjp5Srko.js +0 -14
- package/dist/swift-BAWqNR8A-BAWqNR8A.js +0 -6
- package/dist/timeline-definition-3HZDQTIS-4TPEOhE8-fDDLVlO8.js +0 -799
- package/dist/toml-CQSfOn0e-CQSfOn0e.js +0 -6
- package/dist/treemap-KMMF4GRG-nu7WEuPi-C1YG24W8.js +0 -5
- package/dist/tsx-DiGsgWT8-DiGsgWT8.js +0 -6
- package/dist/twig-DxrNSc26-BIWbKTFO.js +0 -18
- package/dist/types/components/DiscardChangesPrompt.vue.d.ts +0 -34
- package/dist/types/components/DiscardChangesPrompt.vue.d.ts.map +0 -1
- package/dist/types/components/DocumentationContent.vue.d.ts +0 -174
- package/dist/types/components/DocumentationContent.vue.d.ts.map +0 -1
- package/dist/types/components/DocumentationDisplay.vue.d.ts +0 -93
- package/dist/types/components/DocumentationDisplay.vue.d.ts.map +0 -1
- package/dist/types/components/DocumentationPageEmptyState.vue.d.ts +0 -30
- package/dist/types/components/DocumentationPageEmptyState.vue.d.ts.map +0 -1
- package/dist/types/components/ProductDocumentModal.vue.d.ts +0 -71
- package/dist/types/components/ProductDocumentModal.vue.d.ts.map +0 -1
- package/dist/types/composables/index.d.ts +0 -6
- package/dist/types/composables/index.d.ts.map +0 -1
- package/dist/types/composables/useI18n.d.ts +0 -9
- package/dist/types/composables/useI18n.d.ts.map +0 -1
- package/dist/types/external-links.d.ts +0 -5
- package/dist/types/external-links.d.ts.map +0 -1
- package/dist/types/helpers.d.ts +0 -8
- package/dist/types/helpers.d.ts.map +0 -1
- package/dist/types/index.d.ts +0 -7
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/types/document-list.d.ts +0 -28
- package/dist/types/types/document-list.d.ts.map +0 -1
- package/dist/types/types/document-modal.d.ts +0 -8
- package/dist/types/types/document-modal.d.ts.map +0 -1
- package/dist/types/types/index.d.ts +0 -3
- package/dist/types/types/index.d.ts.map +0 -1
- package/dist/typescript-buWNZFwO-buWNZFwO.js +0 -6
- package/dist/v-wa8Orrdd-wa8Orrdd.js +0 -6
- package/dist/vb-E2_-jk4M-E2_-jk4M.js +0 -6
- package/dist/viml-B-zWOd7Z-B-zWOd7Z.js +0 -6
- package/dist/vue-DdqTpW8B-BrYVXV7A.js +0 -31
- package/dist/vue-html-B9t4RWro-D1UeMTSX.js +0 -10
- package/dist/wasm-Bv5f0gKv-Bv5f0gKv.js +0 -6
- package/dist/wgsl-DnPoPGDU-DnPoPGDU.js +0 -6
- package/dist/xml-ChBsf5uy-0Ovnixsj.js +0 -8
- package/dist/xsl-BefjlXrd-CZ7IlB9K.js +0 -8
- package/dist/xychartDiagram-FDP5SA34-BbtKlU7T-D1BI5nWs.js +0 -1340
- package/dist/yaml-Bbg74JKr-Bbg74JKr.js +0 -6
|
@@ -1,810 +0,0 @@
|
|
|
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
|
-
import { h as Tt } from "./ordinal-DfAQgscy-BEJTu10r.js";
|
|
3
|
-
function Pt(t) {
|
|
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
|
-
return r;
|
|
6
|
-
}
|
|
7
|
-
const Ct = Pt("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");
|
|
8
|
-
function ct(t, n) {
|
|
9
|
-
let r;
|
|
10
|
-
if (n === void 0)
|
|
11
|
-
for (const a of t)
|
|
12
|
-
a != null && (r < a || r === void 0 && a >= a) && (r = a);
|
|
13
|
-
else {
|
|
14
|
-
let a = -1;
|
|
15
|
-
for (let c of t)
|
|
16
|
-
(c = n(c, ++a, t)) != null && (r < c || r === void 0 && c >= c) && (r = c);
|
|
17
|
-
}
|
|
18
|
-
return r;
|
|
19
|
-
}
|
|
20
|
-
function pt(t, n) {
|
|
21
|
-
let r;
|
|
22
|
-
if (n === void 0)
|
|
23
|
-
for (const a of t)
|
|
24
|
-
a != null && (r > a || r === void 0 && a >= a) && (r = a);
|
|
25
|
-
else {
|
|
26
|
-
let a = -1;
|
|
27
|
-
for (let c of t)
|
|
28
|
-
(c = n(c, ++a, t)) != null && (r > c || r === void 0 && c >= c) && (r = c);
|
|
29
|
-
}
|
|
30
|
-
return r;
|
|
31
|
-
}
|
|
32
|
-
function tt(t, n) {
|
|
33
|
-
let r = 0;
|
|
34
|
-
if (n === void 0)
|
|
35
|
-
for (let a of t)
|
|
36
|
-
(a = +a) && (r += a);
|
|
37
|
-
else {
|
|
38
|
-
let a = -1;
|
|
39
|
-
for (let c of t)
|
|
40
|
-
(c = +n(c, ++a, t)) && (r += c);
|
|
41
|
-
}
|
|
42
|
-
return r;
|
|
43
|
-
}
|
|
44
|
-
function Nt(t) {
|
|
45
|
-
return t.target.depth;
|
|
46
|
-
}
|
|
47
|
-
function Ot(t) {
|
|
48
|
-
return t.depth;
|
|
49
|
-
}
|
|
50
|
-
function Dt(t, n) {
|
|
51
|
-
return n - 1 - t.height;
|
|
52
|
-
}
|
|
53
|
-
function _t(t, n) {
|
|
54
|
-
return t.sourceLinks.length ? t.depth : n - 1;
|
|
55
|
-
}
|
|
56
|
-
function It(t) {
|
|
57
|
-
return t.targetLinks.length ? t.depth : t.sourceLinks.length ? pt(t.sourceLinks, Nt) - 1 : 0;
|
|
58
|
-
}
|
|
59
|
-
function Q(t) {
|
|
60
|
-
return function() {
|
|
61
|
-
return t;
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
function ut(t, n) {
|
|
65
|
-
return R(t.source, n.source) || t.index - n.index;
|
|
66
|
-
}
|
|
67
|
-
function ht(t, n) {
|
|
68
|
-
return R(t.target, n.target) || t.index - n.index;
|
|
69
|
-
}
|
|
70
|
-
function R(t, n) {
|
|
71
|
-
return t.y0 - n.y0;
|
|
72
|
-
}
|
|
73
|
-
function et(t) {
|
|
74
|
-
return t.value;
|
|
75
|
-
}
|
|
76
|
-
function $t(t) {
|
|
77
|
-
return t.index;
|
|
78
|
-
}
|
|
79
|
-
function jt(t) {
|
|
80
|
-
return t.nodes;
|
|
81
|
-
}
|
|
82
|
-
function zt(t) {
|
|
83
|
-
return t.links;
|
|
84
|
-
}
|
|
85
|
-
function ft(t, n) {
|
|
86
|
-
const r = t.get(n);
|
|
87
|
-
if (!r) throw new Error("missing: " + n);
|
|
88
|
-
return r;
|
|
89
|
-
}
|
|
90
|
-
function yt({ nodes: t }) {
|
|
91
|
-
for (const n of t) {
|
|
92
|
-
let r = n.y0, a = r;
|
|
93
|
-
for (const c of n.sourceLinks)
|
|
94
|
-
c.y0 = r + c.width / 2, r += c.width;
|
|
95
|
-
for (const c of n.targetLinks)
|
|
96
|
-
c.y1 = a + c.width / 2, a += c.width;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
function Ft() {
|
|
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
|
-
function v() {
|
|
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
|
-
}
|
|
105
|
-
v.update = function(e) {
|
|
106
|
-
return yt(e), e;
|
|
107
|
-
}, v.nodeId = function(e) {
|
|
108
|
-
return arguments.length ? (m = typeof e == "function" ? e : Q(e), v) : m;
|
|
109
|
-
}, v.nodeAlign = function(e) {
|
|
110
|
-
return arguments.length ? (i = typeof e == "function" ? e : Q(e), v) : i;
|
|
111
|
-
}, v.nodeSort = function(e) {
|
|
112
|
-
return arguments.length ? (o = e, v) : o;
|
|
113
|
-
}, v.nodeWidth = function(e) {
|
|
114
|
-
return arguments.length ? (c = +e, v) : c;
|
|
115
|
-
}, v.nodePadding = function(e) {
|
|
116
|
-
return arguments.length ? (k = _ = +e, v) : k;
|
|
117
|
-
}, v.nodes = function(e) {
|
|
118
|
-
return arguments.length ? (d = typeof e == "function" ? e : Q(e), v) : d;
|
|
119
|
-
}, v.links = function(e) {
|
|
120
|
-
return arguments.length ? (y = typeof e == "function" ? e : Q(e), v) : y;
|
|
121
|
-
}, v.linkSort = function(e) {
|
|
122
|
-
return arguments.length ? (f = e, v) : f;
|
|
123
|
-
}, v.size = function(e) {
|
|
124
|
-
return arguments.length ? (t = n = 0, r = +e[0], a = +e[1], v) : [r - t, a - n];
|
|
125
|
-
}, v.extent = function(e) {
|
|
126
|
-
return arguments.length ? (t = +e[0][0], r = +e[1][0], n = +e[0][1], a = +e[1][1], v) : [[t, n], [r, a]];
|
|
127
|
-
}, v.iterations = function(e) {
|
|
128
|
-
return arguments.length ? (w = +e, v) : w;
|
|
129
|
-
};
|
|
130
|
-
function C({ nodes: e, links: h }) {
|
|
131
|
-
for (const [u, s] of e.entries())
|
|
132
|
-
s.index = u, s.sourceLinks = [], s.targetLinks = [];
|
|
133
|
-
const l = new Map(e.map((u, s) => [m(u, s, e), u]));
|
|
134
|
-
for (const [u, s] of h.entries()) {
|
|
135
|
-
s.index = u;
|
|
136
|
-
let { source: x, target: b } = s;
|
|
137
|
-
typeof x != "object" && (x = s.source = ft(l, x)), typeof b != "object" && (b = s.target = ft(l, b)), x.sourceLinks.push(s), b.targetLinks.push(s);
|
|
138
|
-
}
|
|
139
|
-
if (f != null)
|
|
140
|
-
for (const { sourceLinks: u, targetLinks: s } of e)
|
|
141
|
-
u.sort(f), s.sort(f);
|
|
142
|
-
}
|
|
143
|
-
function A({ nodes: e }) {
|
|
144
|
-
for (const h of e)
|
|
145
|
-
h.value = h.fixedValue === void 0 ? Math.max(tt(h.sourceLinks, et), tt(h.targetLinks, et)) : h.fixedValue;
|
|
146
|
-
}
|
|
147
|
-
function T({ nodes: e }) {
|
|
148
|
-
const h = e.length;
|
|
149
|
-
let l = new Set(e), u = /* @__PURE__ */ new Set(), s = 0;
|
|
150
|
-
for (; l.size; ) {
|
|
151
|
-
for (const x of l) {
|
|
152
|
-
x.depth = s;
|
|
153
|
-
for (const { target: b } of x.sourceLinks)
|
|
154
|
-
u.add(b);
|
|
155
|
-
}
|
|
156
|
-
if (++s > h) throw new Error("circular link");
|
|
157
|
-
l = u, u = /* @__PURE__ */ new Set();
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
function D({ nodes: e }) {
|
|
161
|
-
const h = e.length;
|
|
162
|
-
let l = new Set(e), u = /* @__PURE__ */ new Set(), s = 0;
|
|
163
|
-
for (; l.size; ) {
|
|
164
|
-
for (const x of l) {
|
|
165
|
-
x.height = s;
|
|
166
|
-
for (const { source: b } of x.targetLinks)
|
|
167
|
-
u.add(b);
|
|
168
|
-
}
|
|
169
|
-
if (++s > h) throw new Error("circular link");
|
|
170
|
-
l = u, u = /* @__PURE__ */ new Set();
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
function P({ nodes: e }) {
|
|
174
|
-
const h = ct(e, (s) => s.depth) + 1, l = (r - t - c) / (h - 1), u = new Array(h);
|
|
175
|
-
for (const s of e) {
|
|
176
|
-
const x = Math.max(0, Math.min(h - 1, Math.floor(i.call(null, s, h))));
|
|
177
|
-
s.layer = x, s.x0 = t + x * l, s.x1 = s.x0 + c, u[x] ? u[x].push(s) : u[x] = [s];
|
|
178
|
-
}
|
|
179
|
-
if (o) for (const s of u)
|
|
180
|
-
s.sort(o);
|
|
181
|
-
return u;
|
|
182
|
-
}
|
|
183
|
-
function S(e) {
|
|
184
|
-
const h = pt(e, (l) => (a - n - (l.length - 1) * _) / tt(l, et));
|
|
185
|
-
for (const l of e) {
|
|
186
|
-
let u = n;
|
|
187
|
-
for (const s of l) {
|
|
188
|
-
s.y0 = u, s.y1 = u + s.value * h, u = s.y1 + _;
|
|
189
|
-
for (const x of s.sourceLinks)
|
|
190
|
-
x.width = x.value * h;
|
|
191
|
-
}
|
|
192
|
-
u = (a - u + _) / (l.length + 1);
|
|
193
|
-
for (let s = 0; s < l.length; ++s) {
|
|
194
|
-
const x = l[s];
|
|
195
|
-
x.y0 += u * (s + 1), x.y1 += u * (s + 1);
|
|
196
|
-
}
|
|
197
|
-
$(l);
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
function N(e) {
|
|
201
|
-
const h = P(e);
|
|
202
|
-
_ = Math.min(k, (a - n) / (ct(h, (l) => l.length) - 1)), S(h);
|
|
203
|
-
for (let l = 0; l < w; ++l) {
|
|
204
|
-
const u = Math.pow(0.99, l), s = Math.max(1 - u, (l + 1) / w);
|
|
205
|
-
O(h, u, s), I(h, u, s);
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
function I(e, h, l) {
|
|
209
|
-
for (let u = 1, s = e.length; u < s; ++u) {
|
|
210
|
-
const x = e[u];
|
|
211
|
-
for (const b of x) {
|
|
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
|
-
}
|
|
217
|
-
if (!(j > 0)) continue;
|
|
218
|
-
let W = (V / j - b.y0) * h;
|
|
219
|
-
b.y0 += W, b.y1 += W, E(b);
|
|
220
|
-
}
|
|
221
|
-
o === void 0 && x.sort(R), g(x, l);
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
function O(e, h, l) {
|
|
225
|
-
for (let u = e.length, s = u - 2; s >= 0; --s) {
|
|
226
|
-
const x = e[s];
|
|
227
|
-
for (const b of x) {
|
|
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
|
-
}
|
|
233
|
-
if (!(j > 0)) continue;
|
|
234
|
-
let W = (V / j - b.y0) * h;
|
|
235
|
-
b.y0 += W, b.y1 += W, E(b);
|
|
236
|
-
}
|
|
237
|
-
o === void 0 && x.sort(R), g(x, l);
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
function g(e, h) {
|
|
241
|
-
const l = e.length >> 1, u = e[l];
|
|
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
|
-
}
|
|
244
|
-
function L(e, h, l, u) {
|
|
245
|
-
for (; l < e.length; ++l) {
|
|
246
|
-
const s = e[l], x = (h - s.y0) * u;
|
|
247
|
-
x > 1e-6 && (s.y0 += x, s.y1 += x), h = s.y1 + _;
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
function G(e, h, l, u) {
|
|
251
|
-
for (; l >= 0; --l) {
|
|
252
|
-
const s = e[l], x = (s.y1 - h) * u;
|
|
253
|
-
x > 1e-6 && (s.y0 -= x, s.y1 -= x), h = s.y0 - _;
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
function E({ sourceLinks: e, targetLinks: h }) {
|
|
257
|
-
if (f === void 0) {
|
|
258
|
-
for (const { source: { sourceLinks: l } } of h)
|
|
259
|
-
l.sort(ht);
|
|
260
|
-
for (const { target: { targetLinks: l } } of e)
|
|
261
|
-
l.sort(ut);
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
function $(e) {
|
|
265
|
-
if (f === void 0)
|
|
266
|
-
for (const { sourceLinks: h, targetLinks: l } of e)
|
|
267
|
-
h.sort(ht), l.sort(ut);
|
|
268
|
-
}
|
|
269
|
-
function M(e, h) {
|
|
270
|
-
let l = e.y0 - (e.sourceLinks.length - 1) * _ / 2;
|
|
271
|
-
for (const { target: u, width: s } of e.sourceLinks) {
|
|
272
|
-
if (u === h) break;
|
|
273
|
-
l += s + _;
|
|
274
|
-
}
|
|
275
|
-
for (const { source: u, width: s } of h.targetLinks) {
|
|
276
|
-
if (u === e) break;
|
|
277
|
-
l -= s;
|
|
278
|
-
}
|
|
279
|
-
return l;
|
|
280
|
-
}
|
|
281
|
-
function U(e, h) {
|
|
282
|
-
let l = h.y0 - (h.targetLinks.length - 1) * _ / 2;
|
|
283
|
-
for (const { source: u, width: s } of h.targetLinks) {
|
|
284
|
-
if (u === e) break;
|
|
285
|
-
l += s + _;
|
|
286
|
-
}
|
|
287
|
-
for (const { target: u, width: s } of e.sourceLinks) {
|
|
288
|
-
if (u === h) break;
|
|
289
|
-
l -= s;
|
|
290
|
-
}
|
|
291
|
-
return l;
|
|
292
|
-
}
|
|
293
|
-
return v;
|
|
294
|
-
}
|
|
295
|
-
var rt = Math.PI, st = 2 * rt, z = 1e-6, Gt = st - z;
|
|
296
|
-
function ot() {
|
|
297
|
-
this._x0 = this._y0 = // start of current subpath
|
|
298
|
-
this._x1 = this._y1 = null, this._ = "";
|
|
299
|
-
}
|
|
300
|
-
function mt() {
|
|
301
|
-
return new ot();
|
|
302
|
-
}
|
|
303
|
-
ot.prototype = mt.prototype = {
|
|
304
|
-
constructor: ot,
|
|
305
|
-
moveTo: function(t, n) {
|
|
306
|
-
this._ += "M" + (this._x0 = this._x1 = +t) + "," + (this._y0 = this._y1 = +n);
|
|
307
|
-
},
|
|
308
|
-
closePath: function() {
|
|
309
|
-
this._x1 !== null && (this._x1 = this._x0, this._y1 = this._y0, this._ += "Z");
|
|
310
|
-
},
|
|
311
|
-
lineTo: function(t, n) {
|
|
312
|
-
this._ += "L" + (this._x1 = +t) + "," + (this._y1 = +n);
|
|
313
|
-
},
|
|
314
|
-
quadraticCurveTo: function(t, n, r, a) {
|
|
315
|
-
this._ += "Q" + +t + "," + +n + "," + (this._x1 = +r) + "," + (this._y1 = +a);
|
|
316
|
-
},
|
|
317
|
-
bezierCurveTo: function(t, n, r, a, c, k) {
|
|
318
|
-
this._ += "C" + +t + "," + +n + "," + +r + "," + +a + "," + (this._x1 = +c) + "," + (this._y1 = +k);
|
|
319
|
-
},
|
|
320
|
-
arcTo: function(t, n, r, a, c) {
|
|
321
|
-
t = +t, n = +n, r = +r, a = +a, c = +c;
|
|
322
|
-
var k = this._x1, _ = this._y1, m = r - t, i = a - n, o = k - t, f = _ - n, d = o * o + f * f;
|
|
323
|
-
if (c < 0) throw new Error("negative radius: " + c);
|
|
324
|
-
if (this._x1 === null)
|
|
325
|
-
this._ += "M" + (this._x1 = t) + "," + (this._y1 = n);
|
|
326
|
-
else if (d > z) if (!(Math.abs(f * m - i * o) > z) || !c)
|
|
327
|
-
this._ += "L" + (this._x1 = t) + "," + (this._y1 = n);
|
|
328
|
-
else {
|
|
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
|
-
}
|
|
332
|
-
},
|
|
333
|
-
arc: function(t, n, r, a, c, k) {
|
|
334
|
-
t = +t, n = +n, r = +r, k = !!k;
|
|
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
|
-
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 && (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
|
-
},
|
|
339
|
-
rect: function(t, n, r, a) {
|
|
340
|
-
this._ += "M" + (this._x0 = this._x1 = +t) + "," + (this._y0 = this._y1 = +n) + "h" + +r + "v" + +a + "h" + -r + "Z";
|
|
341
|
-
},
|
|
342
|
-
toString: function() {
|
|
343
|
-
return this._;
|
|
344
|
-
}
|
|
345
|
-
};
|
|
346
|
-
function gt(t) {
|
|
347
|
-
return function() {
|
|
348
|
-
return t;
|
|
349
|
-
};
|
|
350
|
-
}
|
|
351
|
-
function Ut(t) {
|
|
352
|
-
return t[0];
|
|
353
|
-
}
|
|
354
|
-
function Vt(t) {
|
|
355
|
-
return t[1];
|
|
356
|
-
}
|
|
357
|
-
var Wt = Array.prototype.slice;
|
|
358
|
-
function qt(t) {
|
|
359
|
-
return t.source;
|
|
360
|
-
}
|
|
361
|
-
function Xt(t) {
|
|
362
|
-
return t.target;
|
|
363
|
-
}
|
|
364
|
-
function Yt(t) {
|
|
365
|
-
var n = qt, r = Xt, a = Ut, c = Vt, k = null;
|
|
366
|
-
function _() {
|
|
367
|
-
var m, i = Wt.call(arguments), o = n.apply(this, i), f = r.apply(this, i);
|
|
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
|
-
}
|
|
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
|
-
t.moveTo(n, r), t.bezierCurveTo(n = (n + a) / 2, r, n, c, a, c);
|
|
384
|
-
}
|
|
385
|
-
function Rt() {
|
|
386
|
-
return Yt(Qt);
|
|
387
|
-
}
|
|
388
|
-
function Kt(t) {
|
|
389
|
-
return [t.source.x1, t.y0];
|
|
390
|
-
}
|
|
391
|
-
function Zt(t) {
|
|
392
|
-
return [t.target.x0, t.y1];
|
|
393
|
-
}
|
|
394
|
-
function Bt() {
|
|
395
|
-
return Rt().source(Kt).target(Zt);
|
|
396
|
-
}
|
|
397
|
-
var at = function() {
|
|
398
|
-
var t = /* @__PURE__ */ p(function(m, i, o, f) {
|
|
399
|
-
for (o = o || {}, f = m.length; f--; o[m[f]] = i) ;
|
|
400
|
-
return o;
|
|
401
|
-
}, "o"), n = [1, 9], r = [1, 10], a = [1, 5, 10, 12], c = {
|
|
402
|
-
trace: /* @__PURE__ */ p(function() {
|
|
403
|
-
}, "trace"),
|
|
404
|
-
yy: {},
|
|
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
|
-
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
|
-
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__ */ p(function(m, i, o, f, d, y, w) {
|
|
409
|
-
var v = y.length - 1;
|
|
410
|
-
switch (d) {
|
|
411
|
-
case 7:
|
|
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
|
-
break;
|
|
415
|
-
case 8:
|
|
416
|
-
case 9:
|
|
417
|
-
case 11:
|
|
418
|
-
this.$ = y[v];
|
|
419
|
-
break;
|
|
420
|
-
case 10:
|
|
421
|
-
this.$ = y[v - 1];
|
|
422
|
-
break;
|
|
423
|
-
}
|
|
424
|
-
}, "anonymous"),
|
|
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
|
-
defaultActions: { 11: [2, 1], 12: [2, 5] },
|
|
427
|
-
parseError: /* @__PURE__ */ p(function(m, i) {
|
|
428
|
-
if (i.recoverable)
|
|
429
|
-
this.trace(m);
|
|
430
|
-
else {
|
|
431
|
-
var o = new Error(m);
|
|
432
|
-
throw o.hash = i, o;
|
|
433
|
-
}
|
|
434
|
-
}, "parseError"),
|
|
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
|
-
for (var I in this.yy)
|
|
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
|
-
var g = S.options && S.options.ranges;
|
|
443
|
-
typeof N.yy.parseError == "function" ? this.parseError = N.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
444
|
-
function L(b) {
|
|
445
|
-
o.length = o.length - 2 * b, d.length = d.length - b, y.length = y.length - b;
|
|
446
|
-
}
|
|
447
|
-
p(L, "popStack");
|
|
448
|
-
function G() {
|
|
449
|
-
var 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
|
-
}
|
|
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
|
-
var x = "";
|
|
456
|
-
s = [];
|
|
457
|
-
for (h in w[$])
|
|
458
|
-
this.terminals_[h] && h > T && s.push("'" + this.terminals_[h] + "'");
|
|
459
|
-
S.showPosition ? x = "Parse error on line " + (C + 1) + `:
|
|
460
|
-
` + S.showPosition() + `
|
|
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
|
-
text: S.match,
|
|
463
|
-
token: this.terminals_[E] || E,
|
|
464
|
-
line: S.yylineno,
|
|
465
|
-
loc: O,
|
|
466
|
-
expected: s
|
|
467
|
-
});
|
|
468
|
-
}
|
|
469
|
-
if (M[0] instanceof Array && M.length > 1)
|
|
470
|
-
throw new Error("Parse Error: multiple actions possible at state: " + $ + ", token: " + E);
|
|
471
|
-
switch (M[0]) {
|
|
472
|
-
case 1:
|
|
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
|
-
break;
|
|
475
|
-
case 2:
|
|
476
|
-
if (l = this.productions_[M[1]][1], e.$ = d[d.length - l], e._$ = {
|
|
477
|
-
first_line: y[y.length - (l || 1)].first_line,
|
|
478
|
-
last_line: y[y.length - 1].last_line,
|
|
479
|
-
first_column: y[y.length - (l || 1)].first_column,
|
|
480
|
-
last_column: y[y.length - 1].last_column
|
|
481
|
-
}, g && (e._$.range = [
|
|
482
|
-
y[y.length - (l || 1)].range[0],
|
|
483
|
-
y[y.length - 1].range[1]
|
|
484
|
-
]), U = this.performAction.apply(e, [
|
|
485
|
-
v,
|
|
486
|
-
A,
|
|
487
|
-
C,
|
|
488
|
-
N.yy,
|
|
489
|
-
M[1],
|
|
490
|
-
d,
|
|
491
|
-
y
|
|
492
|
-
].concat(P)), typeof U < "u")
|
|
493
|
-
return 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
|
-
break;
|
|
496
|
-
case 3:
|
|
497
|
-
return !0;
|
|
498
|
-
}
|
|
499
|
-
}
|
|
500
|
-
return !0;
|
|
501
|
-
}, "parse")
|
|
502
|
-
}, k = /* @__PURE__ */ function() {
|
|
503
|
-
var m = {
|
|
504
|
-
EOF: 1,
|
|
505
|
-
parseError: /* @__PURE__ */ p(function(i, o) {
|
|
506
|
-
if (this.yy.parser)
|
|
507
|
-
this.yy.parser.parseError(i, o);
|
|
508
|
-
else
|
|
509
|
-
throw new Error(i);
|
|
510
|
-
}, "parseError"),
|
|
511
|
-
// resets the lexer, sets new input
|
|
512
|
-
setInput: /* @__PURE__ */ p(function(i, o) {
|
|
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
|
-
first_line: 1,
|
|
515
|
-
first_column: 0,
|
|
516
|
-
last_line: 1,
|
|
517
|
-
last_column: 0
|
|
518
|
-
}, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
|
|
519
|
-
}, "setInput"),
|
|
520
|
-
// consumes and returns one char from the input
|
|
521
|
-
input: /* @__PURE__ */ p(function() {
|
|
522
|
-
var i = this._input[0];
|
|
523
|
-
this.yytext += i, this.yyleng++, this.offset++, this.match += i, this.matched += i;
|
|
524
|
-
var o = i.match(/(?:\r\n?|\n).*/g);
|
|
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
|
-
}, "input"),
|
|
527
|
-
// unshifts one char (or a string) into the input
|
|
528
|
-
unput: /* @__PURE__ */ p(function(i) {
|
|
529
|
-
var o = i.length, f = i.split(/(?:\r\n?|\n)/g);
|
|
530
|
-
this._input = i + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - o), this.offset -= o;
|
|
531
|
-
var d = this.match.split(/(?:\r\n?|\n)/g);
|
|
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
|
-
var y = this.yylloc.range;
|
|
534
|
-
return this.yylloc = {
|
|
535
|
-
first_line: this.yylloc.first_line,
|
|
536
|
-
last_line: this.yylineno + 1,
|
|
537
|
-
first_column: this.yylloc.first_column,
|
|
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
|
-
}, this.options.ranges && (this.yylloc.range = [y[0], y[0] + this.yyleng - o]), this.yyleng = this.yytext.length, this;
|
|
540
|
-
}, "unput"),
|
|
541
|
-
// When called from action, caches matched text and appends it on next action
|
|
542
|
-
more: /* @__PURE__ */ p(function() {
|
|
543
|
-
return this._more = !0, this;
|
|
544
|
-
}, "more"),
|
|
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__ */ p(function() {
|
|
547
|
-
if (this.options.backtrack_lexer)
|
|
548
|
-
this._backtrack = !0;
|
|
549
|
-
else
|
|
550
|
-
return this.parseError("Lexical error on line " + (this.yylineno + 1) + `. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
551
|
-
` + this.showPosition(), {
|
|
552
|
-
text: "",
|
|
553
|
-
token: null,
|
|
554
|
-
line: this.yylineno
|
|
555
|
-
});
|
|
556
|
-
return this;
|
|
557
|
-
}, "reject"),
|
|
558
|
-
// retain first n characters of the match
|
|
559
|
-
less: /* @__PURE__ */ p(function(i) {
|
|
560
|
-
this.unput(this.match.slice(i));
|
|
561
|
-
}, "less"),
|
|
562
|
-
// displays already matched input, i.e. for error messages
|
|
563
|
-
pastInput: /* @__PURE__ */ p(function() {
|
|
564
|
-
var i = this.matched.substr(0, this.matched.length - this.match.length);
|
|
565
|
-
return (i.length > 20 ? "..." : "") + i.substr(-20).replace(/\n/g, "");
|
|
566
|
-
}, "pastInput"),
|
|
567
|
-
// displays upcoming input, i.e. for error messages
|
|
568
|
-
upcomingInput: /* @__PURE__ */ p(function() {
|
|
569
|
-
var i = this.match;
|
|
570
|
-
return i.length < 20 && (i += this._input.substr(0, 20 - i.length)), (i.substr(0, 20) + (i.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
571
|
-
}, "upcomingInput"),
|
|
572
|
-
// displays the character position where the lexing error occurred, i.e. for error messages
|
|
573
|
-
showPosition: /* @__PURE__ */ p(function() {
|
|
574
|
-
var i = this.pastInput(), o = new Array(i.length + 1).join("-");
|
|
575
|
-
return i + this.upcomingInput() + `
|
|
576
|
-
` + o + "^";
|
|
577
|
-
}, "showPosition"),
|
|
578
|
-
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
579
|
-
test_match: /* @__PURE__ */ p(function(i, o) {
|
|
580
|
-
var f, d, y;
|
|
581
|
-
if (this.options.backtrack_lexer && (y = {
|
|
582
|
-
yylineno: this.yylineno,
|
|
583
|
-
yylloc: {
|
|
584
|
-
first_line: this.yylloc.first_line,
|
|
585
|
-
last_line: this.last_line,
|
|
586
|
-
first_column: this.yylloc.first_column,
|
|
587
|
-
last_column: this.yylloc.last_column
|
|
588
|
-
},
|
|
589
|
-
yytext: this.yytext,
|
|
590
|
-
match: this.match,
|
|
591
|
-
matches: this.matches,
|
|
592
|
-
matched: this.matched,
|
|
593
|
-
yyleng: this.yyleng,
|
|
594
|
-
offset: this.offset,
|
|
595
|
-
_more: this._more,
|
|
596
|
-
_input: this._input,
|
|
597
|
-
yy: this.yy,
|
|
598
|
-
conditionStack: this.conditionStack.slice(0),
|
|
599
|
-
done: this.done
|
|
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
|
-
first_line: this.yylloc.last_line,
|
|
602
|
-
last_line: this.yylineno + 1,
|
|
603
|
-
first_column: this.yylloc.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
|
-
}, 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
|
-
return f;
|
|
607
|
-
if (this._backtrack) {
|
|
608
|
-
for (var w in y)
|
|
609
|
-
this[w] = y[w];
|
|
610
|
-
return !1;
|
|
611
|
-
}
|
|
612
|
-
return !1;
|
|
613
|
-
}, "test_match"),
|
|
614
|
-
// return next match in input
|
|
615
|
-
next: /* @__PURE__ */ p(function() {
|
|
616
|
-
if (this.done)
|
|
617
|
-
return this.EOF;
|
|
618
|
-
this._input || (this.done = !0);
|
|
619
|
-
var i, o, f, d;
|
|
620
|
-
this._more || (this.yytext = "", this.match = "");
|
|
621
|
-
for (var y = this._currentRules(), w = 0; w < y.length; w++)
|
|
622
|
-
if (f = this._input.match(this.rules[y[w]]), f && (!o || f[0].length > o[0].length)) {
|
|
623
|
-
if (o = f, d = w, this.options.backtrack_lexer) {
|
|
624
|
-
if (i = this.test_match(f, y[w]), i !== !1)
|
|
625
|
-
return i;
|
|
626
|
-
if (this._backtrack) {
|
|
627
|
-
o = !1;
|
|
628
|
-
continue;
|
|
629
|
-
} else
|
|
630
|
-
return !1;
|
|
631
|
-
} else if (!this.options.flex)
|
|
632
|
-
break;
|
|
633
|
-
}
|
|
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
|
-
` + this.showPosition(), {
|
|
636
|
-
text: "",
|
|
637
|
-
token: null,
|
|
638
|
-
line: this.yylineno
|
|
639
|
-
});
|
|
640
|
-
}, "next"),
|
|
641
|
-
// return next match that has a token
|
|
642
|
-
lex: /* @__PURE__ */ p(function() {
|
|
643
|
-
var i = this.next();
|
|
644
|
-
return i || this.lex();
|
|
645
|
-
}, "lex"),
|
|
646
|
-
// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
|
|
647
|
-
begin: /* @__PURE__ */ p(function(i) {
|
|
648
|
-
this.conditionStack.push(i);
|
|
649
|
-
}, "begin"),
|
|
650
|
-
// pop the previously active lexer condition state off the condition stack
|
|
651
|
-
popState: /* @__PURE__ */ p(function() {
|
|
652
|
-
var i = this.conditionStack.length - 1;
|
|
653
|
-
return i > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
654
|
-
}, "popState"),
|
|
655
|
-
// produce the lexer rule set which is active for the currently active lexer condition state
|
|
656
|
-
_currentRules: /* @__PURE__ */ p(function() {
|
|
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
|
-
}, "_currentRules"),
|
|
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__ */ p(function(i) {
|
|
661
|
-
return i = this.conditionStack.length - 1 - Math.abs(i || 0), i >= 0 ? this.conditionStack[i] : "INITIAL";
|
|
662
|
-
}, "topState"),
|
|
663
|
-
// alias for begin(condition)
|
|
664
|
-
pushState: /* @__PURE__ */ p(function(i) {
|
|
665
|
-
this.begin(i);
|
|
666
|
-
}, "pushState"),
|
|
667
|
-
// return the number of states currently on the stack
|
|
668
|
-
stateStackSize: /* @__PURE__ */ p(function() {
|
|
669
|
-
return this.conditionStack.length;
|
|
670
|
-
}, "stateStackSize"),
|
|
671
|
-
options: { "case-insensitive": !0 },
|
|
672
|
-
performAction: /* @__PURE__ */ p(function(i, o, f, d) {
|
|
673
|
-
switch (f) {
|
|
674
|
-
case 0:
|
|
675
|
-
return this.pushState("csv"), 4;
|
|
676
|
-
case 1:
|
|
677
|
-
return this.pushState("csv"), 4;
|
|
678
|
-
case 2:
|
|
679
|
-
return 10;
|
|
680
|
-
case 3:
|
|
681
|
-
return 5;
|
|
682
|
-
case 4:
|
|
683
|
-
return 12;
|
|
684
|
-
case 5:
|
|
685
|
-
return this.pushState("escaped_text"), 18;
|
|
686
|
-
case 6:
|
|
687
|
-
return 20;
|
|
688
|
-
case 7:
|
|
689
|
-
return this.popState("escaped_text"), 18;
|
|
690
|
-
case 8:
|
|
691
|
-
return 19;
|
|
692
|
-
}
|
|
693
|
-
}, "anonymous"),
|
|
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 } }
|
|
696
|
-
};
|
|
697
|
-
return m;
|
|
698
|
-
}();
|
|
699
|
-
c.lexer = k;
|
|
700
|
-
function _() {
|
|
701
|
-
this.yy = {};
|
|
702
|
-
}
|
|
703
|
-
return p(_, "Parser"), _.prototype = c, c.Parser = _, new _();
|
|
704
|
-
}();
|
|
705
|
-
at.parser = at;
|
|
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 {
|
|
709
|
-
constructor(t, n, r = 0) {
|
|
710
|
-
this.source = t, this.target = n, this.value = r;
|
|
711
|
-
}
|
|
712
|
-
}, p(nt, "SankeyLink"), nt), te = /* @__PURE__ */ p((t, n, r) => {
|
|
713
|
-
B.push(new Ht(t, n, r));
|
|
714
|
-
}, "addLink"), it, ee = (it = class {
|
|
715
|
-
constructor(t) {
|
|
716
|
-
this.ID = t;
|
|
717
|
-
}
|
|
718
|
-
}, p(it, "SankeyNode"), it), ne = /* @__PURE__ */ p((t) => {
|
|
719
|
-
t = At.sanitizeText(t, lt());
|
|
720
|
-
let n = Z.get(t);
|
|
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 })),
|
|
724
|
-
links: B.map((t) => ({
|
|
725
|
-
source: t.source.ID,
|
|
726
|
-
target: t.target.ID,
|
|
727
|
-
value: t.value
|
|
728
|
-
}))
|
|
729
|
-
}), "getGraph"), oe = {
|
|
730
|
-
nodesMap: Z,
|
|
731
|
-
getConfig: /* @__PURE__ */ p(() => lt().sankey, "getConfig"),
|
|
732
|
-
getNodes: ie,
|
|
733
|
-
getLinks: re,
|
|
734
|
-
getGraph: se,
|
|
735
|
-
addLink: te,
|
|
736
|
-
findOrCreateNode: ne,
|
|
737
|
-
getAccTitle: St,
|
|
738
|
-
setAccTitle: wt,
|
|
739
|
-
getAccDescription: bt,
|
|
740
|
-
setAccDescription: vt,
|
|
741
|
-
getDiagramTitle: kt,
|
|
742
|
-
setDiagramTitle: xt,
|
|
743
|
-
clear: Jt
|
|
744
|
-
}, F, dt = (F = class {
|
|
745
|
-
static next(t) {
|
|
746
|
-
return new F(t + ++F.count);
|
|
747
|
-
}
|
|
748
|
-
constructor(t) {
|
|
749
|
-
this.id = t, this.href = `#${t}`;
|
|
750
|
-
}
|
|
751
|
-
toString() {
|
|
752
|
-
return "url(" + this.href + ")";
|
|
753
|
-
}
|
|
754
|
-
}, p(F, "Uid"), F.count = 0, F), ae = {
|
|
755
|
-
left: Ot,
|
|
756
|
-
right: Dt,
|
|
757
|
-
center: It,
|
|
758
|
-
justify: _t
|
|
759
|
-
}, le = /* @__PURE__ */ p(function(t, n, r, a) {
|
|
760
|
-
const { securityLevel: c, sankey: k } = lt(), _ = Et.sankey;
|
|
761
|
-
let m;
|
|
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([
|
|
765
|
-
[0, 0],
|
|
766
|
-
[f, d]
|
|
767
|
-
])(T);
|
|
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) {
|
|
770
|
-
return "translate(" + g.x0 + "," + g.y0 + ")";
|
|
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";
|
|
776
|
-
if (I === "gradient") {
|
|
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));
|
|
779
|
-
}
|
|
780
|
-
let O;
|
|
781
|
-
switch (I) {
|
|
782
|
-
case "gradient":
|
|
783
|
-
O = /* @__PURE__ */ p((g) => g.uid, "coloring");
|
|
784
|
-
break;
|
|
785
|
-
case "source":
|
|
786
|
-
O = /* @__PURE__ */ p((g) => P(g.source.id), "coloring");
|
|
787
|
-
break;
|
|
788
|
-
case "target":
|
|
789
|
-
O = /* @__PURE__ */ p((g) => P(g.target.id), "coloring");
|
|
790
|
-
break;
|
|
791
|
-
default:
|
|
792
|
-
O = I;
|
|
793
|
-
}
|
|
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);
|
|
795
|
-
}, "draw"), ce = {
|
|
796
|
-
draw: le
|
|
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,
|
|
804
|
-
parser: K,
|
|
805
|
-
db: oe,
|
|
806
|
-
renderer: ce
|
|
807
|
-
};
|
|
808
|
-
export {
|
|
809
|
-
pe as diagram
|
|
810
|
-
};
|