@kong-ui-public/documentation 1.7.21 → 1.7.22-pr.3646.2d80ddaf3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (159) hide show
  1. package/package.json +4 -4
  2. package/dist/arc-DZdQjcG8-CduayE88.js +0 -79
  3. package/dist/architectureDiagram-3BPJPVTR-By_DXDyu-U3MSLbOU.js +0 -4065
  4. package/dist/astro-D8QEIUE9-nzvtSwAQ.js +0 -18
  5. package/dist/blockDiagram-GPEHLZMM-9Cp9Hbl7-CKP-SiVG.js +0 -3268
  6. package/dist/c-GOwUpV7U-DMPKLUI8.js +0 -4
  7. package/dist/c4Diagram-AAUBKEIU-ftdwlfdB-D3A61SdV.js +0 -3035
  8. package/dist/catppuccin-latte-BcV8jije-D8pvGdu1.js +0 -4
  9. package/dist/channel-DM9j7IFL-DxqBUxfY.js +0 -5
  10. package/dist/chunk-2J33WTMH-CBbjVzWb-0og4LHQ-.js +0 -24
  11. package/dist/chunk-4BX2VUAB-C_NnimAy--QQ0Db2V.js +0 -8
  12. package/dist/chunk-55IACEB6-DZn1aNO0-A3zOZ7dT.js +0 -8
  13. package/dist/chunk-727SXJPM-B2_6_WLv-Bs3CxHaX.js +0 -3445
  14. package/dist/chunk-AQP2D5EJ-DEAEiJjW-DTbwZT8N.js +0 -2096
  15. package/dist/chunk-FMBD7UC4-D_tZ4Dxg-DwjoPGUH.js +0 -19
  16. package/dist/chunk-ND2GUHAM-Duw3k8MU-HmrdHLJ9.js +0 -65
  17. package/dist/chunk-QZHKN3VN-DN6nBdn0-BvQOETVz.js +0 -12
  18. package/dist/classDiagram-4FO5ZUOK-Du5qFrfN-BqXc0etQ.js +0 -17
  19. package/dist/classDiagram-v2-Q7XG4LA2-DM6zutfc-BqXc0etQ.js +0 -17
  20. package/dist/cose-bilkent-S5V4N54A-0ZumbVgj-0z7CQbIH.js +0 -2260
  21. package/dist/csharp-Cy04UeDC-OaGPefhL.js +0 -4
  22. package/dist/css-CJQ-rcMF-B_2PRTA_.js +0 -4
  23. package/dist/csv-Bx_Umlp--BPWcOTV4.js +0 -4
  24. package/dist/cytoscape.esm-BDIiOYYO-C1jMBhD8.js +0 -18220
  25. package/dist/dagre-BM42HDAG-qMWMsyLb-DGMrq3i3.js +0 -288
  26. package/dist/dagre-DJxg_nfI-hVOVexz-.js +0 -1687
  27. package/dist/defaultLocale-mtMQ0U8A-D6jPixjH.js +0 -182
  28. package/dist/diagram-2AECGRRQ-B2gF_dHe-Bv_EpxRz.js +0 -210
  29. package/dist/diagram-5GNKFQAL-DJ9WwRrD-WVvm0Icu.js +0 -99
  30. package/dist/diagram-KO2AKTUF-RfkqD-VW-yyAds1Qq.js +0 -439
  31. package/dist/diagram-LMA3HP47-Ct7s9hIt-Dy6f9BAO.js +0 -127
  32. package/dist/diagram-OG6HWLK6-BSYJ2CoI-ckmfat-L.js +0 -475
  33. package/dist/diff-DZRtXnMG-DenOJuyV.js +0 -4
  34. package/dist/docker-DQBBDNmU-xX8PDoIv.js +0 -4
  35. package/dist/documentation.es.js +0 -7
  36. package/dist/documentation.umd.js +0 -3474
  37. package/dist/erDiagram-TEJ5UH35-BudwiSYX-bVzp1Kjr.js +0 -1773
  38. package/dist/flowDiagram-I6XJVG4X-B23Smlxp-ClHvdCdJ.js +0 -4258
  39. package/dist/ganttDiagram-6RSMTGT7-C-i89z_P-t5UAyRM5.js +0 -3099
  40. package/dist/git-commit-BOgnKaZ8-Csu8eMzs.js +0 -5
  41. package/dist/git-rebase-0v-YFIjP-D701iWbX.js +0 -5
  42. package/dist/gitGraphDiagram-PVQCEYII-DpVfXnUD-Cg3smOdz.js +0 -734
  43. package/dist/go-DpaXbCNA-DqSXHrGo.js +0 -4
  44. package/dist/graphlib-D2YdGpuK-CnQPmzkS.js +0 -1071
  45. package/dist/graphql-BSO8hVnT-C6Okg5tI.js +0 -14
  46. package/dist/haml-DizLz-gS-BWwS-eha.js +0 -10
  47. package/dist/handlebars-tnt1-4s--xVtJSIx5.js +0 -14
  48. package/dist/haskell-BDLr0yXS-BlmVjKNy.js +0 -4
  49. package/dist/html-DdIT5Pi9-C35UyBqr.js +0 -10
  50. package/dist/html-derivative-BHAKSQcK-BChKhjnv.js +0 -5
  51. package/dist/http-DRk-iX-V-DQ76ihB0.js +0 -14
  52. package/dist/index-DfVKdDwj.js +0 -40029
  53. package/dist/infoDiagram-5YYISTIA-CDUwzFql-Bmthmcp4.js +0 -18
  54. package/dist/ini-D-uG5DCC-70PBzbbb.js +0 -4
  55. package/dist/init-8lPFe2y8-B2MlpiqM.js +0 -16
  56. package/dist/ishikawaDiagram-YF4QCWOH-MfYdx0rK-cbltssua.js +0 -728
  57. package/dist/java-CQQr73XR-D6YBp1XX.js +0 -4
  58. package/dist/javascript-CXmFGv-C-BRPKgr3C.js +0 -4
  59. package/dist/journeyDiagram-JHISSGLW-C_udOPtJ-BjAvgSAR.js +0 -908
  60. package/dist/json-BXFRNzj8-D8uacQj0.js +0 -4
  61. package/dist/json5-B5-J7v9w-Biib5ALh.js +0 -4
  62. package/dist/jsonc-CeA7x8NU-BZEKkMok.js +0 -4
  63. package/dist/jsonl-BBlxch9W-BG2V-IA2.js +0 -4
  64. package/dist/jsx-DucQCby8-Cl0AMtmu.js +0 -4
  65. package/dist/kanban-definition-UN3LZRKU-C1Su-UOY-DZ93dsWZ.js +0 -1028
  66. package/dist/katex-D7tFlpqA-BOSQxXe1.js +0 -22315
  67. package/dist/kotlin-CDXyBjvc-Dy_91eL4.js +0 -4
  68. package/dist/latex-COX74REd-l1quglTx.js +0 -5
  69. package/dist/less-QqooI0UQ-tcNg8M2_.js +0 -4
  70. package/dist/linear-1MXhYum8-9C1jno9G.js +0 -255
  71. package/dist/liquid-CsynDTV--Bdhb3gsJ.js +0 -14
  72. package/dist/lua-B3xrKnOz-Coo0MCwO.js +0 -5
  73. package/dist/make-eFBmESRY-CrUl7LOH.js +0 -4
  74. package/dist/markdown-DkQv9NwM-Bcqt-5kX.js +0 -4
  75. package/dist/material-theme-darker-Bp7Jj852-DMHCIvq5.js +0 -4
  76. package/dist/mdc-BK-Z5Xv--aFc-Oyv5.js +0 -12
  77. package/dist/mdx-CjbEMaEg-CK6jOqmu.js +0 -4
  78. package/dist/mermaid-Ccfpee4A-BgbNnQO5.js +0 -4
  79. package/dist/mindmap-definition-RKZ34NQL-MuSV765K-Kub1iXFv.js +0 -1026
  80. package/dist/nginx-DQrs__jO-BS9Jcr4V.js +0 -5
  81. package/dist/objective-c-CXg1TPY9-C809HPrX.js +0 -4
  82. package/dist/ordinal-D9ksOc8y-2hZwLyEk.js +0 -63
  83. package/dist/pascal-C6L9Tn1x-a8whuidZ.js +0 -4
  84. package/dist/perl-Dbi-SlHs-DsZjIGqU.js +0 -16
  85. package/dist/php-J5w8HAya-DnRg4f-g.js +0 -18
  86. package/dist/pieDiagram-4H26LBE5-TgFp7J6_-i6NxP3Xz.js +0 -153
  87. package/dist/plsql-Ba_yrVwL-BJoF2Vrf.js +0 -4
  88. package/dist/postcss-Bsoc__IZ-DaHMm3XW.js +0 -4
  89. package/dist/powershell-CKvM5hOe-Box9VSDW.js +0 -4
  90. package/dist/proto-iweZN-Ks-w0B_itsp.js +0 -4
  91. package/dist/pug-DUPsoXbW-BFHDRSax.js +0 -12
  92. package/dist/python-MxhgNM12-D_5pfY__.js +0 -4
  93. package/dist/quadrantDiagram-W4KKPZXB-DKPne3o_-DXLHqRuR.js +0 -2046
  94. package/dist/r-CoGPXt5G-BrbXTU3W.js +0 -4
  95. package/dist/reg-CHAl2UuA-bHAwx9Pm.js +0 -4
  96. package/dist/requirementDiagram-4Y6WPE33-vh8uUAp_-CHtsISxP.js +0 -2281
  97. package/dist/rst-D-Zcnz0t-C3PGnqgH.js +0 -20
  98. package/dist/ruby-CQp7mk0v-B3KpG-9E.js +0 -46
  99. package/dist/rust-W9HETclW-CaZtBt24.js +0 -4
  100. package/dist/sankeyDiagram-5OEKKPKP-Cgs6W_El-D7GZyd8n.js +0 -946
  101. package/dist/sass-DzGfEb5u-pslLeRRb.js +0 -4
  102. package/dist/scss-cWHTb1-d-DN6jMR75.js +0 -5
  103. package/dist/sequenceDiagram-3UESZ5HK-C5F57Dkt-BW1Hb7UW.js +0 -4266
  104. package/dist/shellscript-BvJBBLP1-BtH46UX7.js +0 -4
  105. package/dist/shellsession-CXHk-hsk-D-2JR5oU.js +0 -5
  106. package/dist/splunk-TtOhH_8h-BP8P7eWt.js +0 -4
  107. package/dist/sql-B-h_q34g-uWwuAxg_.js +0 -4
  108. package/dist/ssh-config-B7jk1vQp-BB1rrGb9.js +0 -4
  109. package/dist/stateDiagram-AJRCARHV-09dUKG6Y-Dm2a1vNu.js +0 -210
  110. package/dist/stateDiagram-v2-BHNVJYJU-CWqmRt12-DbWzZ-j-.js +0 -16
  111. package/dist/style.css +0 -1
  112. package/dist/stylus-Ccd_7r3J-DAu5PNZ9.js +0 -4
  113. package/dist/svelte-CYqtuUsn-Cf97VB5J.js +0 -14
  114. package/dist/swift-CzsQqA0L-BPF2ddNF.js +0 -4
  115. package/dist/timeline-definition-PNZ67QCA-CCndyx0V-B5CT96H-.js +0 -1095
  116. package/dist/toml-CRTROHRr-DjT9Bjqu.js +0 -4
  117. package/dist/tsx-CE8dfKwK-B-5hSr15.js +0 -4
  118. package/dist/twig-Bst4uh7S-C3aA9tng.js +0 -18
  119. package/dist/types/components/DiscardChangesPrompt.vue.d.ts +0 -35
  120. package/dist/types/components/DiscardChangesPrompt.vue.d.ts.map +0 -1
  121. package/dist/types/components/DocumentationContent.vue.d.ts +0 -186
  122. package/dist/types/components/DocumentationContent.vue.d.ts.map +0 -1
  123. package/dist/types/components/DocumentationDisplay.vue.d.ts +0 -105
  124. package/dist/types/components/DocumentationDisplay.vue.d.ts.map +0 -1
  125. package/dist/types/components/DocumentationPageEmptyState.vue.d.ts +0 -31
  126. package/dist/types/components/DocumentationPageEmptyState.vue.d.ts.map +0 -1
  127. package/dist/types/components/ProductDocumentModal.vue.d.ts +0 -72
  128. package/dist/types/components/ProductDocumentModal.vue.d.ts.map +0 -1
  129. package/dist/types/composables/index.d.ts +0 -6
  130. package/dist/types/composables/index.d.ts.map +0 -1
  131. package/dist/types/composables/useI18n.d.ts +0 -9
  132. package/dist/types/composables/useI18n.d.ts.map +0 -1
  133. package/dist/types/external-links.d.ts +0 -5
  134. package/dist/types/external-links.d.ts.map +0 -1
  135. package/dist/types/helpers.d.ts +0 -8
  136. package/dist/types/helpers.d.ts.map +0 -1
  137. package/dist/types/index.d.ts +0 -7
  138. package/dist/types/index.d.ts.map +0 -1
  139. package/dist/types/types/document-list.d.ts +0 -28
  140. package/dist/types/types/document-list.d.ts.map +0 -1
  141. package/dist/types/types/document-modal.d.ts +0 -8
  142. package/dist/types/types/document-modal.d.ts.map +0 -1
  143. package/dist/types/types/index.d.ts +0 -3
  144. package/dist/types/types/index.d.ts.map +0 -1
  145. package/dist/typescript-8ogSSNer-B0ag8pir.js +0 -4
  146. package/dist/v-NeSnRB8V-CYSa2rJN.js +0 -4
  147. package/dist/vb-Dz72yc4q-B6FpM2Kc.js +0 -4
  148. package/dist/vennDiagram-CIIHVFJN-DQfKxM3L-qUaKEl7l.js +0 -1889
  149. package/dist/viml-DB1flIhL-BeYQ8dZh.js +0 -4
  150. package/dist/vue-Bq4JA_WT-CGBUDahs.js +0 -22
  151. package/dist/vue-html-BygQzR-9-BPez-Otx.js +0 -5
  152. package/dist/wardley-L42UT6IY-BjAkE_cs-C-giFqos.js +0 -20731
  153. package/dist/wardleyDiagram-YWT4CUSO-Bf9L2NsL-DXPF2Ee9.js +0 -639
  154. package/dist/wasm-BmZuu1vu-CfuK9YWP.js +0 -4
  155. package/dist/wgsl-D-vNyw6e-C2IZ7ENh.js +0 -4
  156. package/dist/xml-juAhGoTG-khG3jjDl.js +0 -5
  157. package/dist/xsl-CHgyQG2O-CiMa9sUf.js +0 -5
  158. package/dist/xychartDiagram-2RQKCTM6-ChNH3q1U-a59DsJDA.js +0 -2055
  159. package/dist/yaml-BK_xXVzk-X78l_Ibz.js +0 -4
@@ -1,946 +0,0 @@
1
- import { f as xt, i as kt, G as bt, K as vt, U as Lt, W as Et, p as g, Z as it, $ as wt, q as tt, au as At, a as St, H as Mt } from "./index-DfVKdDwj.js";
2
- import { s as It } from "./ordinal-D9ksOc8y-2hZwLyEk.js";
3
- function $t(t) {
4
- for (var r = t.length / 6 | 0, s = Array(r), l = 0; l < r; ) s[l] = "#" + t.slice(l * 6, ++l * 6);
5
- return s;
6
- }
7
- var Pt = $t("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");
8
- function ht(t, r) {
9
- let s;
10
- if (r === void 0) for (let l of t) l != null && (s < l || s === void 0 && l >= l) && (s = l);
11
- else {
12
- let l = -1;
13
- for (let h of t) (h = r(h, ++l, t)) != null && (s < h || s === void 0 && h >= h) && (s = h);
14
- }
15
- return s;
16
- }
17
- function pt(t, r) {
18
- let s;
19
- if (r === void 0) for (let l of t) l != null && (s > l || s === void 0 && l >= l) && (s = l);
20
- else {
21
- let l = -1;
22
- for (let h of t) (h = r(h, ++l, t)) != null && (s > h || s === void 0 && h >= h) && (s = h);
23
- }
24
- return s;
25
- }
26
- function et(t, r) {
27
- let s = 0;
28
- if (r === void 0) for (let l of t) (l = +l) && (s += l);
29
- else {
30
- let l = -1;
31
- for (let h of t) (h = +r(h, ++l, t)) && (s += h);
32
- }
33
- return s;
34
- }
35
- function Nt(t) {
36
- return t.target.depth;
37
- }
38
- function Ct(t) {
39
- return t.depth;
40
- }
41
- function Ot(t, r) {
42
- return r - 1 - t.height;
43
- }
44
- function _t(t, r) {
45
- return t.sourceLinks.length ? t.depth : r - 1;
46
- }
47
- function Tt(t) {
48
- return t.targetLinks.length ? t.depth : t.sourceLinks.length ? pt(t.sourceLinks, Nt) - 1 : 0;
49
- }
50
- function X(t) {
51
- return function() {
52
- return t;
53
- };
54
- }
55
- function ut(t, r) {
56
- return Q(t.source, r.source) || t.index - r.index;
57
- }
58
- function ct(t, r) {
59
- return Q(t.target, r.target) || t.index - r.index;
60
- }
61
- function Q(t, r) {
62
- return t.y0 - r.y0;
63
- }
64
- function nt(t) {
65
- return t.value;
66
- }
67
- function Dt(t) {
68
- return t.index;
69
- }
70
- function jt(t) {
71
- return t.nodes;
72
- }
73
- function zt(t) {
74
- return t.links;
75
- }
76
- function ft(t, r) {
77
- let s = t.get(r);
78
- if (!s) throw Error("missing: " + r);
79
- return s;
80
- }
81
- function yt({ nodes: t }) {
82
- for (let r of t) {
83
- let s = r.y0, l = s;
84
- for (let h of r.sourceLinks) h.y0 = s + h.width / 2, s += h.width;
85
- for (let h of r.targetLinks) h.y1 = l + h.width / 2, l += h.width;
86
- }
87
- }
88
- function Ft() {
89
- let t = 0, r = 0, s = 1, l = 1, h = 24, m = 8, n, f = Dt, u = _t, y, _, d = jt, A = zt, v = 6;
90
- function x() {
91
- let i = {
92
- nodes: d.apply(null, arguments),
93
- links: A.apply(null, arguments)
94
- };
95
- return $(i), I(i), T(i), C(i), S(i), yt(i), i;
96
- }
97
- x.update = function(i) {
98
- return yt(i), i;
99
- }, x.nodeId = function(i) {
100
- return arguments.length ? (f = typeof i == "function" ? i : X(i), x) : f;
101
- }, x.nodeAlign = function(i) {
102
- return arguments.length ? (u = typeof i == "function" ? i : X(i), x) : u;
103
- }, x.nodeSort = function(i) {
104
- return arguments.length ? (y = i, x) : y;
105
- }, x.nodeWidth = function(i) {
106
- return arguments.length ? (h = +i, x) : h;
107
- }, x.nodePadding = function(i) {
108
- return arguments.length ? (m = n = +i, x) : m;
109
- }, x.nodes = function(i) {
110
- return arguments.length ? (d = typeof i == "function" ? i : X(i), x) : d;
111
- }, x.links = function(i) {
112
- return arguments.length ? (A = typeof i == "function" ? i : X(i), x) : A;
113
- }, x.linkSort = function(i) {
114
- return arguments.length ? (_ = i, x) : _;
115
- }, x.size = function(i) {
116
- return arguments.length ? (t = r = 0, s = +i[0], l = +i[1], x) : [s - t, l - r];
117
- }, x.extent = function(i) {
118
- return arguments.length ? (t = +i[0][0], s = +i[1][0], r = +i[0][1], l = +i[1][1], x) : [[t, r], [s, l]];
119
- }, x.iterations = function(i) {
120
- return arguments.length ? (v = +i, x) : v;
121
- };
122
- function $({ nodes: i, links: c }) {
123
- for (let [o, a] of i.entries()) a.index = o, a.sourceLinks = [], a.targetLinks = [];
124
- let e = new Map(i.map((o, a) => [f(o, a, i), o]));
125
- for (let [o, a] of c.entries()) {
126
- a.index = o;
127
- let { source: p, target: b } = a;
128
- typeof p != "object" && (p = a.source = ft(e, p)), typeof b != "object" && (b = a.target = ft(e, b)), p.sourceLinks.push(a), b.targetLinks.push(a);
129
- }
130
- if (_ != null) for (let { sourceLinks: o, targetLinks: a } of i) o.sort(_), a.sort(_);
131
- }
132
- function I({ nodes: i }) {
133
- for (let c of i) c.value = c.fixedValue === void 0 ? Math.max(et(c.sourceLinks, nt), et(c.targetLinks, nt)) : c.fixedValue;
134
- }
135
- function T({ nodes: i }) {
136
- let c = i.length, e = new Set(i), o = /* @__PURE__ */ new Set(), a = 0;
137
- for (; e.size; ) {
138
- for (let p of e) {
139
- p.depth = a;
140
- for (let { target: b } of p.sourceLinks) o.add(b);
141
- }
142
- if (++a > c) throw Error("circular link");
143
- e = o, o = /* @__PURE__ */ new Set();
144
- }
145
- }
146
- function C({ nodes: i }) {
147
- let c = i.length, e = new Set(i), o = /* @__PURE__ */ new Set(), a = 0;
148
- for (; e.size; ) {
149
- for (let p of e) {
150
- p.height = a;
151
- for (let { source: b } of p.targetLinks) o.add(b);
152
- }
153
- if (++a > c) throw Error("circular link");
154
- e = o, o = /* @__PURE__ */ new Set();
155
- }
156
- }
157
- function P({ nodes: i }) {
158
- let c = ht(i, (a) => a.depth) + 1, e = (s - t - h) / (c - 1), o = Array(c);
159
- for (let a of i) {
160
- let p = Math.max(0, Math.min(c - 1, Math.floor(u.call(null, a, c))));
161
- a.layer = p, a.x0 = t + p * e, a.x1 = a.x0 + h, o[p] ? o[p].push(a) : o[p] = [a];
162
- }
163
- if (y) for (let a of o) a.sort(y);
164
- return o;
165
- }
166
- function k(i) {
167
- let c = pt(i, (e) => (l - r - (e.length - 1) * n) / et(e, nt));
168
- for (let e of i) {
169
- let o = r;
170
- for (let a of e) {
171
- a.y0 = o, a.y1 = o + a.value * c, o = a.y1 + n;
172
- for (let p of a.sourceLinks) p.width = p.value * c;
173
- }
174
- o = (l - o + n) / (e.length + 1);
175
- for (let a = 0; a < e.length; ++a) {
176
- let p = e[a];
177
- p.y0 += o * (a + 1), p.y1 += o * (a + 1);
178
- }
179
- F(e);
180
- }
181
- }
182
- function S(i) {
183
- let c = P(i);
184
- n = Math.min(m, (l - r) / (ht(c, (e) => e.length) - 1)), k(c);
185
- for (let e = 0; e < v; ++e) {
186
- let o = 0.99 ** e, a = Math.max(1 - o, (e + 1) / v);
187
- j(c, o, a), D(c, o, a);
188
- }
189
- }
190
- function D(i, c, e) {
191
- for (let o = 1, a = i.length; o < a; ++o) {
192
- let p = i[o];
193
- for (let b of p) {
194
- let E = 0, G = 0;
195
- for (let { source: V, value: K } of b.targetLinks) {
196
- let at = K * (b.layer - V.layer);
197
- E += M(V, b) * at, G += at;
198
- }
199
- if (!(G > 0)) continue;
200
- let R = (E / G - b.y0) * c;
201
- b.y0 += R, b.y1 += R, L(b);
202
- }
203
- y === void 0 && p.sort(Q), U(p, e);
204
- }
205
- }
206
- function j(i, c, e) {
207
- for (let o = i.length - 2; o >= 0; --o) {
208
- let a = i[o];
209
- for (let p of a) {
210
- let b = 0, E = 0;
211
- for (let { target: R, value: V } of p.sourceLinks) {
212
- let K = V * (R.layer - p.layer);
213
- b += w(p, R) * K, E += K;
214
- }
215
- if (!(E > 0)) continue;
216
- let G = (b / E - p.y0) * c;
217
- p.y0 += G, p.y1 += G, L(p);
218
- }
219
- y === void 0 && a.sort(Q), U(a, e);
220
- }
221
- }
222
- function U(i, c) {
223
- let e = i.length >> 1, o = i[e];
224
- z(i, o.y0 - n, e - 1, c), N(i, o.y1 + n, e + 1, c), z(i, l, i.length - 1, c), N(i, r, 0, c);
225
- }
226
- function N(i, c, e, o) {
227
- for (; e < i.length; ++e) {
228
- let a = i[e], p = (c - a.y0) * o;
229
- p > 1e-6 && (a.y0 += p, a.y1 += p), c = a.y1 + n;
230
- }
231
- }
232
- function z(i, c, e, o) {
233
- for (; e >= 0; --e) {
234
- let a = i[e], p = (a.y1 - c) * o;
235
- p > 1e-6 && (a.y0 -= p, a.y1 -= p), c = a.y0 - n;
236
- }
237
- }
238
- function L({ sourceLinks: i, targetLinks: c }) {
239
- if (_ === void 0) {
240
- for (let { source: { sourceLinks: e } } of c) e.sort(ct);
241
- for (let { target: { targetLinks: e } } of i) e.sort(ut);
242
- }
243
- }
244
- function F(i) {
245
- if (_ === void 0) for (let { sourceLinks: c, targetLinks: e } of i) c.sort(ct), e.sort(ut);
246
- }
247
- function M(i, c) {
248
- let e = i.y0 - (i.sourceLinks.length - 1) * n / 2;
249
- for (let { target: o, width: a } of i.sourceLinks) {
250
- if (o === c) break;
251
- e += a + n;
252
- }
253
- for (let { source: o, width: a } of c.targetLinks) {
254
- if (o === i) break;
255
- e -= a;
256
- }
257
- return e;
258
- }
259
- function w(i, c) {
260
- let e = c.y0 - (c.targetLinks.length - 1) * n / 2;
261
- for (let { source: o, width: a } of c.targetLinks) {
262
- if (o === i) break;
263
- e += a + n;
264
- }
265
- for (let { target: o, width: a } of i.sourceLinks) {
266
- if (o === c) break;
267
- e -= a;
268
- }
269
- return e;
270
- }
271
- return x;
272
- }
273
- var rt = Math.PI, st = 2 * rt, W = 1e-6, Wt = st - W;
274
- function ot() {
275
- this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "";
276
- }
277
- function mt() {
278
- return new ot();
279
- }
280
- ot.prototype = mt.prototype = {
281
- constructor: ot,
282
- moveTo: function(t, r) {
283
- this._ += "M" + (this._x0 = this._x1 = +t) + "," + (this._y0 = this._y1 = +r);
284
- },
285
- closePath: function() {
286
- this._x1 !== null && (this._x1 = this._x0, this._y1 = this._y0, this._ += "Z");
287
- },
288
- lineTo: function(t, r) {
289
- this._ += "L" + (this._x1 = +t) + "," + (this._y1 = +r);
290
- },
291
- quadraticCurveTo: function(t, r, s, l) {
292
- this._ += "Q" + +t + "," + +r + "," + (this._x1 = +s) + "," + (this._y1 = +l);
293
- },
294
- bezierCurveTo: function(t, r, s, l, h, m) {
295
- this._ += "C" + +t + "," + +r + "," + +s + "," + +l + "," + (this._x1 = +h) + "," + (this._y1 = +m);
296
- },
297
- arcTo: function(t, r, s, l, h) {
298
- t = +t, r = +r, s = +s, l = +l, h = +h;
299
- var m = this._x1, n = this._y1, f = s - t, u = l - r, y = m - t, _ = n - r, d = y * y + _ * _;
300
- if (h < 0) throw Error("negative radius: " + h);
301
- if (this._x1 === null) this._ += "M" + (this._x1 = t) + "," + (this._y1 = r);
302
- else if (d > W) if (!(Math.abs(_ * f - u * y) > W) || !h) this._ += "L" + (this._x1 = t) + "," + (this._y1 = r);
303
- else {
304
- var A = s - m, v = l - n, x = f * f + u * u, $ = A * A + v * v, I = Math.sqrt(x), T = Math.sqrt(d), C = h * Math.tan((rt - Math.acos((x + d - $) / (2 * I * T))) / 2), P = C / T, k = C / I;
305
- Math.abs(P - 1) > W && (this._ += "L" + (t + P * y) + "," + (r + P * _)), this._ += "A" + h + "," + h + ",0,0," + +(_ * A > y * v) + "," + (this._x1 = t + k * f) + "," + (this._y1 = r + k * u);
306
- }
307
- },
308
- arc: function(t, r, s, l, h, m) {
309
- t = +t, r = +r, s = +s, m = !!m;
310
- var n = s * Math.cos(l), f = s * Math.sin(l), u = t + n, y = r + f, _ = 1 ^ m, d = m ? l - h : h - l;
311
- if (s < 0) throw Error("negative radius: " + s);
312
- this._x1 === null ? this._ += "M" + u + "," + y : (Math.abs(this._x1 - u) > W || Math.abs(this._y1 - y) > W) && (this._ += "L" + u + "," + y), s && (d < 0 && (d = d % st + st), d > Wt ? this._ += "A" + s + "," + s + ",0,1," + _ + "," + (t - n) + "," + (r - f) + "A" + s + "," + s + ",0,1," + _ + "," + (this._x1 = u) + "," + (this._y1 = y) : d > W && (this._ += "A" + s + "," + s + ",0," + +(d >= rt) + "," + _ + "," + (this._x1 = t + s * Math.cos(h)) + "," + (this._y1 = r + s * Math.sin(h))));
313
- },
314
- rect: function(t, r, s, l) {
315
- this._ += "M" + (this._x0 = this._x1 = +t) + "," + (this._y0 = this._y1 = +r) + "h" + +s + "v" + +l + "h" + -s + "Z";
316
- },
317
- toString: function() {
318
- return this._;
319
- }
320
- };
321
- function dt(t) {
322
- return function() {
323
- return t;
324
- };
325
- }
326
- function Ut(t) {
327
- return t[0];
328
- }
329
- function Gt(t) {
330
- return t[1];
331
- }
332
- var qt = Array.prototype.slice;
333
- function Bt(t) {
334
- return t.source;
335
- }
336
- function Rt(t) {
337
- return t.target;
338
- }
339
- function Vt(t) {
340
- var r = Bt, s = Rt, l = Ut, h = Gt, m = null;
341
- function n() {
342
- var f, u = qt.call(arguments), y = r.apply(this, u), _ = s.apply(this, u);
343
- if (m ||= f = mt(), t(m, +l.apply(this, (u[0] = y, u)), +h.apply(this, u), +l.apply(this, (u[0] = _, u)), +h.apply(this, u)), f) return m = null, f + "" || null;
344
- }
345
- return n.source = function(f) {
346
- return arguments.length ? (r = f, n) : r;
347
- }, n.target = function(f) {
348
- return arguments.length ? (s = f, n) : s;
349
- }, n.x = function(f) {
350
- return arguments.length ? (l = typeof f == "function" ? f : dt(+f), n) : l;
351
- }, n.y = function(f) {
352
- return arguments.length ? (h = typeof f == "function" ? f : dt(+f), n) : h;
353
- }, n.context = function(f) {
354
- return arguments.length ? (m = f ?? null, n) : m;
355
- }, n;
356
- }
357
- function Kt(t, r, s, l, h) {
358
- t.moveTo(r, s), t.bezierCurveTo(r = (r + l) / 2, s, r, h, l, h);
359
- }
360
- function Xt() {
361
- return Vt(Kt);
362
- }
363
- function Zt(t) {
364
- return [t.source.x1, t.y0];
365
- }
366
- function Ht(t) {
367
- return [t.target.x0, t.y1];
368
- }
369
- function Qt() {
370
- return Xt().source(Zt).target(Ht);
371
- }
372
- var lt = (function() {
373
- var t = /* @__PURE__ */ g(function(n, f, u, y) {
374
- for (u ||= {}, y = n.length; y--; u[n[y]] = f) ;
375
- return u;
376
- }, "o"), r = [1, 9], s = [1, 10], l = [
377
- 1,
378
- 5,
379
- 10,
380
- 12
381
- ], h = {
382
- trace: /* @__PURE__ */ g(function() {
383
- }, "trace"),
384
- yy: {},
385
- symbols_: {
386
- error: 2,
387
- start: 3,
388
- SANKEY: 4,
389
- NEWLINE: 5,
390
- csv: 6,
391
- opt_eof: 7,
392
- record: 8,
393
- csv_tail: 9,
394
- EOF: 10,
395
- "field[source]": 11,
396
- COMMA: 12,
397
- "field[target]": 13,
398
- "field[value]": 14,
399
- field: 15,
400
- escaped: 16,
401
- non_escaped: 17,
402
- DQUOTE: 18,
403
- ESCAPED_TEXT: 19,
404
- NON_ESCAPED_TEXT: 20,
405
- $accept: 0,
406
- $end: 1
407
- },
408
- terminals_: {
409
- 2: "error",
410
- 4: "SANKEY",
411
- 5: "NEWLINE",
412
- 10: "EOF",
413
- 11: "field[source]",
414
- 12: "COMMA",
415
- 13: "field[target]",
416
- 14: "field[value]",
417
- 18: "DQUOTE",
418
- 19: "ESCAPED_TEXT",
419
- 20: "NON_ESCAPED_TEXT"
420
- },
421
- productions_: [
422
- 0,
423
- [3, 4],
424
- [6, 2],
425
- [9, 2],
426
- [9, 0],
427
- [7, 1],
428
- [7, 0],
429
- [8, 5],
430
- [15, 1],
431
- [15, 1],
432
- [16, 3],
433
- [17, 1]
434
- ],
435
- performAction: /* @__PURE__ */ g(function(n, f, u, y, _, d, A) {
436
- var v = d.length - 1;
437
- switch (_) {
438
- case 7:
439
- let x = y.findOrCreateNode(d[v - 4].trim().replaceAll('""', '"')), $ = y.findOrCreateNode(d[v - 2].trim().replaceAll('""', '"')), I = parseFloat(d[v].trim());
440
- y.addLink(x, $, I);
441
- break;
442
- case 8:
443
- case 9:
444
- case 11:
445
- this.$ = d[v];
446
- break;
447
- case 10:
448
- this.$ = d[v - 1];
449
- break;
450
- }
451
- }, "anonymous"),
452
- table: [
453
- {
454
- 3: 1,
455
- 4: [1, 2]
456
- },
457
- { 1: [3] },
458
- { 5: [1, 3] },
459
- {
460
- 6: 4,
461
- 8: 5,
462
- 15: 6,
463
- 16: 7,
464
- 17: 8,
465
- 18: r,
466
- 20: s
467
- },
468
- {
469
- 1: [2, 6],
470
- 7: 11,
471
- 10: [1, 12]
472
- },
473
- t(s, [2, 4], {
474
- 9: 13,
475
- 5: [1, 14]
476
- }),
477
- { 12: [1, 15] },
478
- t(l, [2, 8]),
479
- t(l, [2, 9]),
480
- { 19: [1, 16] },
481
- t(l, [2, 11]),
482
- { 1: [2, 1] },
483
- { 1: [2, 5] },
484
- t(s, [2, 2]),
485
- {
486
- 6: 17,
487
- 8: 5,
488
- 15: 6,
489
- 16: 7,
490
- 17: 8,
491
- 18: r,
492
- 20: s
493
- },
494
- {
495
- 15: 18,
496
- 16: 7,
497
- 17: 8,
498
- 18: r,
499
- 20: s
500
- },
501
- { 18: [1, 19] },
502
- t(s, [2, 3]),
503
- { 12: [1, 20] },
504
- t(l, [2, 10]),
505
- {
506
- 15: 21,
507
- 16: 7,
508
- 17: 8,
509
- 18: r,
510
- 20: s
511
- },
512
- t([
513
- 1,
514
- 5,
515
- 10
516
- ], [2, 7])
517
- ],
518
- defaultActions: {
519
- 11: [2, 1],
520
- 12: [2, 5]
521
- },
522
- parseError: /* @__PURE__ */ g(function(n, f) {
523
- if (f.recoverable) this.trace(n);
524
- else {
525
- var u = Error(n);
526
- throw u.hash = f, u;
527
- }
528
- }, "parseError"),
529
- parse: /* @__PURE__ */ g(function(n) {
530
- var f = this, u = [0], y = [], _ = [null], d = [], A = this.table, v = "", x = 0, $ = 0, I = 0, T = 2, C = 1, P = d.slice.call(arguments, 1), k = Object.create(this.lexer), S = { yy: {} };
531
- for (var D in this.yy) Object.prototype.hasOwnProperty.call(this.yy, D) && (S.yy[D] = this.yy[D]);
532
- k.setInput(n, S.yy), S.yy.lexer = k, S.yy.parser = this, k.yylloc === void 0 && (k.yylloc = {});
533
- var j = k.yylloc;
534
- d.push(j);
535
- var U = k.options && k.options.ranges;
536
- typeof S.yy.parseError == "function" ? this.parseError = S.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
537
- function N(E) {
538
- u.length -= 2 * E, _.length -= E, d.length -= E;
539
- }
540
- g(N, "popStack");
541
- function z() {
542
- var E = y.pop() || k.lex() || C;
543
- return typeof E != "number" && (E instanceof Array && (y = E, E = y.pop()), E = f.symbols_[E] || E), E;
544
- }
545
- g(z, "lex");
546
- for (var L, F, M, w, i, c = {}, e, o, a, p; ; ) {
547
- if (M = u[u.length - 1], this.defaultActions[M] ? w = this.defaultActions[M] : (L ??= z(), w = A[M] && A[M][L]), w === void 0 || !w.length || !w[0]) {
548
- var b = "";
549
- for (e in p = [], A[M]) this.terminals_[e] && e > T && p.push("'" + this.terminals_[e] + "'");
550
- b = k.showPosition ? "Parse error on line " + (x + 1) + `:
551
- ` + k.showPosition() + `
552
- Expecting ` + p.join(", ") + ", got '" + (this.terminals_[L] || L) + "'" : "Parse error on line " + (x + 1) + ": Unexpected " + (L == C ? "end of input" : "'" + (this.terminals_[L] || L) + "'"), this.parseError(b, {
553
- text: k.match,
554
- token: this.terminals_[L] || L,
555
- line: k.yylineno,
556
- loc: j,
557
- expected: p
558
- });
559
- }
560
- if (w[0] instanceof Array && w.length > 1) throw Error("Parse Error: multiple actions possible at state: " + M + ", token: " + L);
561
- switch (w[0]) {
562
- case 1:
563
- u.push(L), _.push(k.yytext), d.push(k.yylloc), u.push(w[1]), L = null, F ? (L = F, F = null) : ($ = k.yyleng, v = k.yytext, x = k.yylineno, j = k.yylloc, I > 0);
564
- break;
565
- case 2:
566
- if (o = this.productions_[w[1]][1], c.$ = _[_.length - o], c._$ = {
567
- first_line: d[d.length - (o || 1)].first_line,
568
- last_line: d[d.length - 1].last_line,
569
- first_column: d[d.length - (o || 1)].first_column,
570
- last_column: d[d.length - 1].last_column
571
- }, U && (c._$.range = [d[d.length - (o || 1)].range[0], d[d.length - 1].range[1]]), i = this.performAction.apply(c, [
572
- v,
573
- $,
574
- x,
575
- S.yy,
576
- w[1],
577
- _,
578
- d
579
- ].concat(P)), i !== void 0) return i;
580
- o && (u = u.slice(0, -1 * o * 2), _ = _.slice(0, -1 * o), d = d.slice(0, -1 * o)), u.push(this.productions_[w[1]][0]), _.push(c.$), d.push(c._$), a = A[u[u.length - 2]][u[u.length - 1]], u.push(a);
581
- break;
582
- case 3:
583
- return !0;
584
- }
585
- }
586
- return !0;
587
- }, "parse")
588
- };
589
- h.lexer = /* @__PURE__ */ (function() {
590
- return {
591
- EOF: 1,
592
- parseError: /* @__PURE__ */ g(function(n, f) {
593
- if (this.yy.parser) this.yy.parser.parseError(n, f);
594
- else throw Error(n);
595
- }, "parseError"),
596
- setInput: /* @__PURE__ */ g(function(n, f) {
597
- return this.yy = f || this.yy || {}, this._input = n, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
598
- first_line: 1,
599
- first_column: 0,
600
- last_line: 1,
601
- last_column: 0
602
- }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
603
- }, "setInput"),
604
- input: /* @__PURE__ */ g(function() {
605
- var n = this._input[0];
606
- return this.yytext += n, this.yyleng++, this.offset++, this.match += n, this.matched += n, n.match(/(?:\r\n?|\n).*/g) ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), n;
607
- }, "input"),
608
- unput: /* @__PURE__ */ g(function(n) {
609
- var f = n.length, u = n.split(/(?:\r\n?|\n)/g);
610
- this._input = n + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - f), this.offset -= f;
611
- var y = this.match.split(/(?:\r\n?|\n)/g);
612
- this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), u.length - 1 && (this.yylineno -= u.length - 1);
613
- var _ = this.yylloc.range;
614
- return this.yylloc = {
615
- first_line: this.yylloc.first_line,
616
- last_line: this.yylineno + 1,
617
- first_column: this.yylloc.first_column,
618
- last_column: u ? (u.length === y.length ? this.yylloc.first_column : 0) + y[y.length - u.length].length - u[0].length : this.yylloc.first_column - f
619
- }, this.options.ranges && (this.yylloc.range = [_[0], _[0] + this.yyleng - f]), this.yyleng = this.yytext.length, this;
620
- }, "unput"),
621
- more: /* @__PURE__ */ g(function() {
622
- return this._more = !0, this;
623
- }, "more"),
624
- reject: /* @__PURE__ */ g(function() {
625
- if (this.options.backtrack_lexer) this._backtrack = !0;
626
- else 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).
627
- ` + this.showPosition(), {
628
- text: "",
629
- token: null,
630
- line: this.yylineno
631
- });
632
- return this;
633
- }, "reject"),
634
- less: /* @__PURE__ */ g(function(n) {
635
- this.unput(this.match.slice(n));
636
- }, "less"),
637
- pastInput: /* @__PURE__ */ g(function() {
638
- var n = this.matched.substr(0, this.matched.length - this.match.length);
639
- return (n.length > 20 ? "..." : "") + n.substr(-20).replace(/\n/g, "");
640
- }, "pastInput"),
641
- upcomingInput: /* @__PURE__ */ g(function() {
642
- var n = this.match;
643
- return n.length < 20 && (n += this._input.substr(0, 20 - n.length)), (n.substr(0, 20) + (n.length > 20 ? "..." : "")).replace(/\n/g, "");
644
- }, "upcomingInput"),
645
- showPosition: /* @__PURE__ */ g(function() {
646
- var n = this.pastInput(), f = Array(n.length + 1).join("-");
647
- return n + this.upcomingInput() + `
648
- ` + f + "^";
649
- }, "showPosition"),
650
- test_match: /* @__PURE__ */ g(function(n, f) {
651
- var u, y, _;
652
- if (this.options.backtrack_lexer && (_ = {
653
- yylineno: this.yylineno,
654
- yylloc: {
655
- first_line: this.yylloc.first_line,
656
- last_line: this.last_line,
657
- first_column: this.yylloc.first_column,
658
- last_column: this.yylloc.last_column
659
- },
660
- yytext: this.yytext,
661
- match: this.match,
662
- matches: this.matches,
663
- matched: this.matched,
664
- yyleng: this.yyleng,
665
- offset: this.offset,
666
- _more: this._more,
667
- _input: this._input,
668
- yy: this.yy,
669
- conditionStack: this.conditionStack.slice(0),
670
- done: this.done
671
- }, this.options.ranges && (_.yylloc.range = this.yylloc.range.slice(0))), y = n[0].match(/(?:\r\n?|\n).*/g), y && (this.yylineno += y.length), this.yylloc = {
672
- first_line: this.yylloc.last_line,
673
- last_line: this.yylineno + 1,
674
- first_column: this.yylloc.last_column,
675
- last_column: y ? y[y.length - 1].length - y[y.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + n[0].length
676
- }, this.yytext += n[0], this.match += n[0], this.matches = n, 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(n[0].length), this.matched += n[0], u = this.performAction.call(this, this.yy, this, f, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), u) return u;
677
- if (this._backtrack) {
678
- for (var d in _) this[d] = _[d];
679
- return !1;
680
- }
681
- return !1;
682
- }, "test_match"),
683
- next: /* @__PURE__ */ g(function() {
684
- if (this.done) return this.EOF;
685
- this._input || (this.done = !0);
686
- var n, f, u, y;
687
- this._more || (this.yytext = "", this.match = "");
688
- for (var _ = this._currentRules(), d = 0; d < _.length; d++) if (u = this._input.match(this.rules[_[d]]), u && (!f || u[0].length > f[0].length)) {
689
- if (f = u, y = d, this.options.backtrack_lexer) {
690
- if (n = this.test_match(u, _[d]), n !== !1) return n;
691
- if (this._backtrack) {
692
- f = !1;
693
- continue;
694
- } else return !1;
695
- } else if (!this.options.flex) break;
696
- }
697
- return f ? (n = this.test_match(f, _[y]), n === !1 ? !1 : n) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
698
- ` + this.showPosition(), {
699
- text: "",
700
- token: null,
701
- line: this.yylineno
702
- });
703
- }, "next"),
704
- lex: /* @__PURE__ */ g(function() {
705
- return this.next() || this.lex();
706
- }, "lex"),
707
- begin: /* @__PURE__ */ g(function(n) {
708
- this.conditionStack.push(n);
709
- }, "begin"),
710
- popState: /* @__PURE__ */ g(function() {
711
- return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
712
- }, "popState"),
713
- _currentRules: /* @__PURE__ */ g(function() {
714
- return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
715
- }, "_currentRules"),
716
- topState: /* @__PURE__ */ g(function(n) {
717
- return n = this.conditionStack.length - 1 - Math.abs(n || 0), n >= 0 ? this.conditionStack[n] : "INITIAL";
718
- }, "topState"),
719
- pushState: /* @__PURE__ */ g(function(n) {
720
- this.begin(n);
721
- }, "pushState"),
722
- stateStackSize: /* @__PURE__ */ g(function() {
723
- return this.conditionStack.length;
724
- }, "stateStackSize"),
725
- options: { "case-insensitive": !0 },
726
- performAction: /* @__PURE__ */ g(function(n, f, u, y) {
727
- switch (u) {
728
- case 0:
729
- return this.pushState("csv"), 4;
730
- case 1:
731
- return this.pushState("csv"), 4;
732
- case 2:
733
- return 10;
734
- case 3:
735
- return 5;
736
- case 4:
737
- return 12;
738
- case 5:
739
- return this.pushState("escaped_text"), 18;
740
- case 6:
741
- return 20;
742
- case 7:
743
- return this.popState("escaped_text"), 18;
744
- case 8:
745
- return 19;
746
- }
747
- }, "anonymous"),
748
- rules: [
749
- /^(?:sankey-beta\b)/i,
750
- /^(?:sankey\b)/i,
751
- /^(?:$)/i,
752
- /^(?:((\u000D\u000A)|(\u000A)))/i,
753
- /^(?:(\u002C))/i,
754
- /^(?:(\u0022))/i,
755
- /^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i,
756
- /^(?:(\u0022)(?!(\u0022)))/i,
757
- /^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i
758
- ],
759
- conditions: {
760
- csv: {
761
- rules: [
762
- 2,
763
- 3,
764
- 4,
765
- 5,
766
- 6,
767
- 7,
768
- 8
769
- ],
770
- inclusive: !1
771
- },
772
- escaped_text: {
773
- rules: [7, 8],
774
- inclusive: !1
775
- },
776
- INITIAL: {
777
- rules: [
778
- 0,
779
- 1,
780
- 2,
781
- 3,
782
- 4,
783
- 5,
784
- 6,
785
- 7,
786
- 8
787
- ],
788
- inclusive: !0
789
- }
790
- }
791
- };
792
- })();
793
- function m() {
794
- this.yy = {};
795
- }
796
- return g(m, "Parser"), m.prototype = h, h.Parser = m, new m();
797
- })();
798
- lt.parser = lt;
799
- var Y = lt, J = [], Z = [], H = /* @__PURE__ */ new Map(), Yt = /* @__PURE__ */ g(() => {
800
- J = [], Z = [], H = /* @__PURE__ */ new Map(), Mt();
801
- }, "clear"), q, Jt = (q = class {
802
- constructor(r, s, l = 0) {
803
- this.source = r, this.target = s, this.value = l;
804
- }
805
- }, g(q, "SankeyLink"), q), te = /* @__PURE__ */ g((t, r, s) => {
806
- J.push(new Jt(t, r, s));
807
- }, "addLink"), B, ee = (B = class {
808
- constructor(r) {
809
- this.ID = r;
810
- }
811
- }, g(B, "SankeyNode"), B), ne = {
812
- nodesMap: H,
813
- getConfig: /* @__PURE__ */ g(() => it().sankey, "getConfig"),
814
- getNodes: /* @__PURE__ */ g(() => Z, "getNodes"),
815
- getLinks: /* @__PURE__ */ g(() => J, "getLinks"),
816
- getGraph: /* @__PURE__ */ g(() => ({
817
- nodes: Z.map((t) => ({ id: t.ID })),
818
- links: J.map((t) => ({
819
- source: t.source.ID,
820
- target: t.target.ID,
821
- value: t.value
822
- }))
823
- }), "getGraph"),
824
- addLink: te,
825
- findOrCreateNode: /* @__PURE__ */ g((t) => {
826
- t = St.sanitizeText(t, it());
827
- let r = H.get(t);
828
- return r === void 0 && (r = new ee(t), H.set(t, r), Z.push(r)), r;
829
- }, "findOrCreateNode"),
830
- getAccTitle: Et,
831
- setAccTitle: Lt,
832
- getAccDescription: vt,
833
- setAccDescription: bt,
834
- getDiagramTitle: kt,
835
- setDiagramTitle: xt,
836
- clear: Yt
837
- }, O, gt = (O = class {
838
- static next(r) {
839
- return new O(r + ++O.count);
840
- }
841
- constructor(r) {
842
- this.id = r, this.href = `#${r}`;
843
- }
844
- toString() {
845
- return "url(" + this.href + ")";
846
- }
847
- }, g(O, "Uid"), O.count = 0, O), ie = {
848
- left: Ct,
849
- right: Ot,
850
- center: Tt,
851
- justify: _t
852
- }, re = /* @__PURE__ */ g((t) => {
853
- let r = 0, s = 0;
854
- for (let l of t) {
855
- let h = l.value ?? 0;
856
- h > r && (r = h, s = l.layer ?? 0);
857
- }
858
- return s;
859
- }, "findCentralNodeLayer"), se = { draw: /* @__PURE__ */ g(function(t, r, s, l) {
860
- let { securityLevel: h, sankey: m } = it(), n = wt.sankey, f;
861
- h === "sandbox" && (f = tt("#i" + r));
862
- let u = tt(h === "sandbox" ? f.nodes()[0].contentDocument.body : "body"), y = h === "sandbox" ? u.select(`[id="${r}"]`) : tt(`[id="${r}"]`), _ = m?.width ?? n.width, d = m?.height ?? n.width, A = m?.useMaxWidth ?? n.useMaxWidth, v = m?.nodeAlignment ?? n.nodeAlignment, x = m?.prefix ?? n.prefix, $ = m?.suffix ?? n.suffix, I = m?.showValues ?? n.showValues, T = m?.nodeWidth ?? n.nodeWidth ?? 10, C = m?.nodePadding ?? n.nodePadding ?? 12, P = m?.labelStyle ?? n.labelStyle ?? "legacy", k = m?.nodeColors ?? {}, S = l.db.getGraph(), D = ie[v];
863
- Ft().nodeId((e) => e.id).nodeWidth(T).nodePadding(C + (I ? 15 : 0)).nodeAlign(D).extent([[0, 0], [_, d]])(S);
864
- let j = re(S.nodes), U = It(Pt), N = /* @__PURE__ */ g((e) => k[e] ?? U(e), "getNodeColor");
865
- y.append("g").attr("class", "nodes").selectAll(".node").data(S.nodes).join("g").attr("class", "node").attr("id", (e) => (e.uid = gt.next("node-")).id).attr("transform", function(e) {
866
- return "translate(" + e.x0 + "," + e.y0 + ")";
867
- }).attr("x", (e) => e.x0).attr("y", (e) => e.y0).append("rect").attr("height", (e) => e.y1 - e.y0).attr("width", (e) => e.x1 - e.x0).attr("fill", (e) => N(e.id));
868
- let z = /* @__PURE__ */ g(({ id: e, value: o }) => I ? `${e}
869
- ${x}${Math.round(o * 100) / 100}${$}` : e, "getText"), L = /* @__PURE__ */ g((e) => P === "outlined" ? (e.layer ?? 0) < j ? {
870
- x: e.x0 - 6,
871
- anchor: "end"
872
- } : {
873
- x: e.x1 + 6,
874
- anchor: "start"
875
- } : e.x0 < _ / 2 ? {
876
- x: e.x1 + 6,
877
- anchor: "start"
878
- } : {
879
- x: e.x0 - 6,
880
- anchor: "end"
881
- }, "getLabelPosition"), F = y.append("g").attr("class", "node-labels").attr("font-size", 14), M = /* @__PURE__ */ g((e) => F.selectAll(e ? `.${e}` : "text").data(S.nodes).join("text").attr("class", e ?? null).attr("x", (o) => L(o).x).attr("y", (o) => (o.y1 + o.y0) / 2).attr("dy", `${I ? "0" : "0.35"}em`).attr("text-anchor", (o) => L(o).anchor).text(z), "appendLabel");
882
- P === "outlined" ? (M("sankey-label-bg"), M("sankey-label-fg")) : M();
883
- let w = y.append("g").attr("class", "links").attr("fill", "none").attr("stroke-opacity", 0.5).selectAll(".link").data(S.links).join("g").attr("class", "link").style("mix-blend-mode", "multiply"), i = m?.linkColor ?? "gradient";
884
- if (i === "gradient") {
885
- let e = w.append("linearGradient").attr("id", (o) => (o.uid = gt.next("linearGradient-")).id).attr("gradientUnits", "userSpaceOnUse").attr("x1", (o) => o.source.x1).attr("x2", (o) => o.target.x0);
886
- e.append("stop").attr("offset", "0%").attr("stop-color", (o) => N(o.source.id)), e.append("stop").attr("offset", "100%").attr("stop-color", (o) => N(o.target.id));
887
- }
888
- let c;
889
- switch (i) {
890
- case "gradient":
891
- c = /* @__PURE__ */ g((e) => e.uid, "coloring");
892
- break;
893
- case "source":
894
- c = /* @__PURE__ */ g((e) => N(e.source.id), "coloring");
895
- break;
896
- case "target":
897
- c = /* @__PURE__ */ g((e) => N(e.target.id), "coloring");
898
- break;
899
- default:
900
- c = i;
901
- }
902
- w.append("path").attr("d", Qt()).attr("stroke", c).attr("stroke-width", (e) => Math.max(1, e.width)), At(void 0, y, 0, A);
903
- }, "draw") }, oe = /* @__PURE__ */ g((t) => t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g, "").replaceAll(/([\n\r])+/g, `
904
- `).trim(), "prepareTextForParsing"), le = /* @__PURE__ */ g((t) => `.label {
905
- font-family: ${t.fontFamily};
906
- }
907
-
908
- .node-labels {
909
- font-family: ${t.fontFamily};
910
- }
911
-
912
- /* Outlined label style - background stroke for better readability */
913
- .sankey-label-bg {
914
- stroke: ${t.mainBkg || t.background || "#fff"};
915
- stroke-width: 4px;
916
- stroke-linejoin: round;
917
- paint-order: stroke;
918
- }
919
-
920
- /* Foreground label text */
921
- .sankey-label-fg {
922
- fill: ${t.textColor};
923
- }
924
-
925
- /* Node styling */
926
- .node rect {
927
- shape-rendering: crispEdges;
928
- }
929
-
930
- /* Link styling */
931
- .link {
932
- fill: none;
933
- stroke-opacity: 0.5;
934
- mix-blend-mode: multiply;
935
- }
936
- `, "getStyles"), ae = Y.parse.bind(Y);
937
- Y.parse = (t) => ae(oe(t));
938
- var ce = {
939
- styles: le,
940
- parser: Y,
941
- db: ne,
942
- renderer: se
943
- };
944
- export {
945
- ce as diagram
946
- };