@kong-ui-public/documentation 0.8.27-pr.2132.c7fba69a4.0 → 0.8.27

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 (154) hide show
  1. package/dist/_basePickBy-DF_KwdVi-HVXnmpaQ.js +151 -0
  2. package/dist/_baseUniq-DefQzZRT-CTix3bMY.js +614 -0
  3. package/dist/arc-B4xWw-B6-BGnuysbe.js +83 -0
  4. package/dist/architecture-I3QFYML2-7TNhn42L-52ENK4nk.js +5 -0
  5. package/dist/architectureDiagram-UYN6MBPD-Bg70hFZ--BirbHF75.js +4592 -0
  6. package/dist/astro-Uf8_VxKJ-CZxoSljj.js +16 -0
  7. package/dist/blockDiagram-ZHA2E4KO-Ylh05M-x-AVJfewxx.js +2247 -0
  8. package/dist/c-DASdrs7p-DASdrs7p.js +6 -0
  9. package/dist/c4Diagram-6F5ED5ID-BA0B_CmS-WdUKqC7Z.js +1581 -0
  10. package/dist/channel-B5uWur4x-BHu9WG2d.js +5 -0
  11. package/dist/chunk-5HRBRIJM-B7MbirM8-YDLjZbXN.js +24 -0
  12. package/dist/chunk-7U56Z5CX-CfNu7Hr2-BQzILIp1.js +1213 -0
  13. package/dist/chunk-ASOPGD6M-CwvgmaRl-BZAjlsEd.js +64 -0
  14. package/dist/chunk-KFBOBJHC-BB675Bua-GRhe6aGs.js +15 -0
  15. package/dist/chunk-T2TOU4HS-BgV1wucS-5Sa82KgW.js +1301 -0
  16. package/dist/chunk-TMUBEWPD-C22TGOO0-Bl2u--DY.js +9 -0
  17. package/dist/classDiagram-LNE6IOMH-D5SiSVyM-BbV9LB8E.js +14 -0
  18. package/dist/classDiagram-v2-MQ7JQ4JX-D5SiSVyM-BbV9LB8E.js +14 -0
  19. package/dist/clone-CmU1hwye-Lu5-ol5h.js +8 -0
  20. package/dist/csharp-CYWRhZ2R-CYWRhZ2R.js +6 -0
  21. package/dist/css-D1aVdRIU-D1aVdRIU.js +6 -0
  22. package/dist/csv-DvCncUGQ-Tno401i9.js +6 -0
  23. package/dist/cytoscape.esm-DAyNQ0qu-B7WxGuVh.js +16110 -0
  24. package/dist/dagre-4EVJKHTY-DMTVcQfE-C1Tr0EYY.js +447 -0
  25. package/dist/diagram-QW4FP2JN-jc61JuWr-DOMFELfS.js +126 -0
  26. package/dist/diff-XmNrvgM1-XmNrvgM1.js +6 -0
  27. package/dist/docker-DWH2onkn-DWH2onkn.js +6 -0
  28. package/dist/documentation.es.js +7 -0
  29. package/dist/documentation.umd.js +2404 -0
  30. package/dist/erDiagram-6RL3IURR-1byskxwI-B-wzYh8R.js +937 -0
  31. package/dist/flowDiagram-7ASYPVHJ-B3phEI8o-CVXSVDmh.js +1484 -0
  32. package/dist/ganttDiagram-NTVNEXSI-vYnO_T5c-Ccxkb7aQ.js +2491 -0
  33. package/dist/git-commit-BspYIY3P-VkbIfR3L.js +8 -0
  34. package/dist/git-rebase--zLBTjUa-DEW2tfKx.js +8 -0
  35. package/dist/gitGraph-YCYPL57B-DPx67Iu5-BPrLSH0g.js +5 -0
  36. package/dist/gitGraphDiagram-NRZ2UAAF-BHxB7Gjs-CeRxz6oW.js +712 -0
  37. package/dist/go-BErP6iv1-BErP6iv1.js +6 -0
  38. package/dist/graph-_eClejaU-DigE4Bf5.js +247 -0
  39. package/dist/graphql-DWpQF4JI-C-3VJmtp.js +14 -0
  40. package/dist/haml-CMN0hQaL-BV5BsZTy.js +10 -0
  41. package/dist/handlebars-Cc-7fXX5-B9YgDKzT.js +14 -0
  42. package/dist/haskell-CtlGos0K-CtlGos0K.js +6 -0
  43. package/dist/html-B0P_v3yU-BojM9zZg.js +10 -0
  44. package/dist/html-derivative-BJFFAxYV-iD6NAoKm.js +8 -0
  45. package/dist/http-Dcjm_K1m-1LFSbOE1.js +14 -0
  46. package/dist/index-B_RqyDIa.js +37033 -0
  47. package/dist/info-46DW6VJ7-DeIQKKyY-CVPexu5P.js +5 -0
  48. package/dist/infoDiagram-A4XQUW5V-Cx0WE_JZ-B_t8JIcX.js +22 -0
  49. package/dist/ini-BUcvsX-U-BUcvsX-U.js +6 -0
  50. package/dist/init-DjUOC4st-C8Nwz6AJ.js +16 -0
  51. package/dist/java-B7odJ7Ap-B7odJ7Ap.js +6 -0
  52. package/dist/javascript-fa8UlHZE-fa8UlHZE.js +6 -0
  53. package/dist/journeyDiagram-G5WM74LC-CUWL5R5G-DWlpHybW.js +810 -0
  54. package/dist/json-71t8ZF9g-71t8ZF9g.js +6 -0
  55. package/dist/json5-Z7F6rA6a-Z7F6rA6a.js +6 -0
  56. package/dist/jsonc-Dphhs4m2-Dphhs4m2.js +6 -0
  57. package/dist/jsonl-D9jj92Gg-D9jj92Gg.js +6 -0
  58. package/dist/jsx-Bkesy5tT-Bkesy5tT.js +6 -0
  59. package/dist/kanban-definition-QRCXZQQD-r5CdvT2h-BUkOeUnm.js +718 -0
  60. package/dist/katex-Qk2jHgyB-CF_fuFJb.js +11637 -0
  61. package/dist/kotlin-DCgZY7Ii-DCgZY7Ii.js +6 -0
  62. package/dist/latex-CZXk8SiZ-DbjDPp_f.js +11 -0
  63. package/dist/layout-DfjmtgNY-Bw6LFOXt.js +1321 -0
  64. package/dist/less-DQA4v-Nm-DQA4v-Nm.js +6 -0
  65. package/dist/linear-BGmbGdcc-C--Nxp9Q.js +423 -0
  66. package/dist/liquid-CvufO3kO-D90bBAdm.js +14 -0
  67. package/dist/lua-BVfhNLDr-DAa90qLN.js +8 -0
  68. package/dist/make-BjuHP00g-BjuHP00g.js +6 -0
  69. package/dist/markdown-B6guhLWd-B6guhLWd.js +6 -0
  70. package/dist/material-theme-lighter-BUBw43Yz-BUBw43Yz.js +4 -0
  71. package/dist/material-theme-palenight-C1RVm8K1-C1RVm8K1.js +4 -0
  72. package/dist/mdc-Bq810vct-Dr8CpN8f.js +12 -0
  73. package/dist/mdx-DIoECIFU-DIoECIFU.js +6 -0
  74. package/dist/mermaid-BZ7WHNIe-BZ7WHNIe.js +6 -0
  75. package/dist/mermaid-parser.core-DxgZuQQq-uP-grJig.js +12400 -0
  76. package/dist/mindmap-definition-GWI6TPTV-DX5GL05M-B8Eu6UCe.js +3219 -0
  77. package/dist/nginx-Can2eAjw-DKMoypYC.js +8 -0
  78. package/dist/objective-c-BGg9R27G-BGg9R27G.js +6 -0
  79. package/dist/ordinal-DfAQgscy-BEJTu10r.js +61 -0
  80. package/dist/packet-W2GHVCYJ-CI_-E3C--D1lo2o0i.js +5 -0
  81. package/dist/pascal-l2bqd7Dz-l2bqd7Dz.js +6 -0
  82. package/dist/perl-DaMQyPwp-Cxx4wmV7.js +16 -0
  83. package/dist/php-BL3EfPBi-BZu5YwDX.js +18 -0
  84. package/dist/pie-BEWT4RHE-B52QOymI-BoBX6ZnD.js +5 -0
  85. package/dist/pieDiagram-YF2LJOPJ-IHpbN7M9-BBPOh3m7.js +161 -0
  86. package/dist/plsql-oVq_K_wH-oVq_K_wH.js +6 -0
  87. package/dist/postcss-BZ3MNRIJ-BZ3MNRIJ.js +6 -0
  88. package/dist/powershell-Diwyv8Eh-Diwyv8Eh.js +6 -0
  89. package/dist/proto-o9HLmF90-o9HLmF90.js +6 -0
  90. package/dist/pug-HKe4Luo3-BYb0El_4.js +12 -0
  91. package/dist/python-xYxLFJY--xYxLFJY-.js +6 -0
  92. package/dist/quadrantDiagram-OS5C2QUG-DyfTAjs0-CvYOplDG.js +1024 -0
  93. package/dist/r-F-9I-ITZ-F-9I-ITZ.js +6 -0
  94. package/dist/reg-CMUdAgIP-CMUdAgIP.js +6 -0
  95. package/dist/requirementDiagram-MIRIMTAZ-DpFia6HM-BNS6fGqi.js +768 -0
  96. package/dist/rst-B8JEEtLI-Dyxh6LOj.js +22 -0
  97. package/dist/ruby-FDlfLkNa-nf7VLvCK.js +50 -0
  98. package/dist/rust-Pc7DCsZD-Pc7DCsZD.js +6 -0
  99. package/dist/sankeyDiagram-Y46BX6SQ-a6p3ZaX0-Cwasp0IA.js +805 -0
  100. package/dist/sass-iCyS6eP9-iCyS6eP9.js +6 -0
  101. package/dist/scss-DhHc4lxB-D1lMETuy.js +8 -0
  102. package/dist/sequenceDiagram-G6AWOVSC-DlZ7du4U-z70BwBnZ.js +2274 -0
  103. package/dist/shellscript-Dn0-btNd-Dn0-btNd.js +6 -0
  104. package/dist/shellsession-8OLo3sB6-DD6AdPYk.js +8 -0
  105. package/dist/splunk-CTqDjQdo-CTqDjQdo.js +6 -0
  106. package/dist/sql-DCkt643--DCkt643-.js +6 -0
  107. package/dist/ssh-config-DHHGll-v-DHHGll-v.js +6 -0
  108. package/dist/stateDiagram-MAYHULR4-tK3TdntS-PielUO6n.js +268 -0
  109. package/dist/stateDiagram-v2-4JROLMXI-Ib4sJL3A--uDyhxdT.js +14 -0
  110. package/dist/style.css +1 -0
  111. package/dist/stylus-n_9f0QQ5-n_9f0QQ5.js +6 -0
  112. package/dist/svelte-01qw6Rxm-Cjp5Srko.js +14 -0
  113. package/dist/swift-BAWqNR8A-BAWqNR8A.js +6 -0
  114. package/dist/timeline-definition-U7ZMHBDA-Db9d-9_E-kHwjVd5T.js +804 -0
  115. package/dist/toml-CQSfOn0e-CQSfOn0e.js +6 -0
  116. package/dist/tsx-DiGsgWT8-DiGsgWT8.js +6 -0
  117. package/dist/twig-DxrNSc26-BIWbKTFO.js +18 -0
  118. package/dist/types/components/DocumentationContent.vue.d.ts +177 -0
  119. package/dist/types/components/DocumentationContent.vue.d.ts.map +1 -0
  120. package/dist/types/components/DocumentationDisplay.vue.d.ts +323 -0
  121. package/dist/types/components/DocumentationDisplay.vue.d.ts.map +1 -0
  122. package/dist/types/components/DocumentationPageEmptyState.vue.d.ts +30 -0
  123. package/dist/types/components/DocumentationPageEmptyState.vue.d.ts.map +1 -0
  124. package/dist/types/components/ProductDocumentModal.vue.d.ts +71 -0
  125. package/dist/types/components/ProductDocumentModal.vue.d.ts.map +1 -0
  126. package/dist/types/composables/index.d.ts +6 -0
  127. package/dist/types/composables/index.d.ts.map +1 -0
  128. package/dist/types/composables/useI18n.d.ts +9 -0
  129. package/dist/types/composables/useI18n.d.ts.map +1 -0
  130. package/dist/types/external-links.d.ts +5 -0
  131. package/dist/types/external-links.d.ts.map +1 -0
  132. package/dist/types/helpers.d.ts +8 -0
  133. package/dist/types/helpers.d.ts.map +1 -0
  134. package/dist/types/index.d.ts +7 -0
  135. package/dist/types/index.d.ts.map +1 -0
  136. package/dist/types/types/document-list.d.ts +28 -0
  137. package/dist/types/types/document-list.d.ts.map +1 -0
  138. package/dist/types/types/document-modal.d.ts +8 -0
  139. package/dist/types/types/document-modal.d.ts.map +1 -0
  140. package/dist/types/types/index.d.ts +3 -0
  141. package/dist/types/types/index.d.ts.map +1 -0
  142. package/dist/typescript-buWNZFwO-buWNZFwO.js +6 -0
  143. package/dist/v-wa8Orrdd-wa8Orrdd.js +6 -0
  144. package/dist/vb-E2_-jk4M-E2_-jk4M.js +6 -0
  145. package/dist/viml-B-zWOd7Z-B-zWOd7Z.js +6 -0
  146. package/dist/vue-DdqTpW8B-BrYVXV7A.js +31 -0
  147. package/dist/vue-html-B9t4RWro-D1UeMTSX.js +10 -0
  148. package/dist/wasm-Bv5f0gKv-Bv5f0gKv.js +6 -0
  149. package/dist/wgsl-DnPoPGDU-DnPoPGDU.js +6 -0
  150. package/dist/xml-ChBsf5uy-0Ovnixsj.js +8 -0
  151. package/dist/xsl-BefjlXrd-CZ7IlB9K.js +8 -0
  152. package/dist/xychartDiagram-6QU3TZC5-L2EgHpF7-Dbx9eZ7M.js +1304 -0
  153. package/dist/yaml-Bbg74JKr-Bbg74JKr.js +6 -0
  154. package/package.json +2 -2
@@ -0,0 +1,805 @@
1
+ import { _, g as lt, a6 as xt, a5 as kt, a7 as vt, a8 as bt, am as wt, al as St, ar as Et, ab as Lt, ak as Mt, af as Q, bm as At } from "./index-B_RqyDIa.js";
2
+ import { h as Tt } from "./ordinal-DfAQgscy-BEJTu10r.js";
3
+ function Dt(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 Pt = Dt("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 dt(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 Ct(t) {
45
+ return t.target.depth;
46
+ }
47
+ function Nt(t) {
48
+ return t.depth;
49
+ }
50
+ function Ot(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 ? dt(t.sourceLinks, Ct) - 1 : 0;
58
+ }
59
+ function R(t) {
60
+ return function() {
61
+ return t;
62
+ };
63
+ }
64
+ function ht(t, n) {
65
+ return X(t.source, n.source) || t.index - n.index;
66
+ }
67
+ function ut(t, n) {
68
+ return X(t.target, n.target) || t.index - n.index;
69
+ }
70
+ function X(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, d, m = $t, i = _t, o, f, p = jt, y = zt, w = 6;
101
+ function v() {
102
+ const e = { nodes: p.apply(null, arguments), links: y.apply(null, arguments) };
103
+ return P(e), A(e), T(e), O(e), C(e), yt(e), e;
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 : R(e), v) : m;
109
+ }, v.nodeAlign = function(e) {
110
+ return arguments.length ? (i = typeof e == "function" ? e : R(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 = d = +e, v) : k;
117
+ }, v.nodes = function(e) {
118
+ return arguments.length ? (p = typeof e == "function" ? e : R(e), v) : p;
119
+ }, v.links = function(e) {
120
+ return arguments.length ? (y = typeof e == "function" ? e : R(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 P({ nodes: e, links: u }) {
131
+ for (const [h, s] of e.entries())
132
+ s.index = h, s.sourceLinks = [], s.targetLinks = [];
133
+ const l = new Map(e.map((h, s) => [m(h, s, e), h]));
134
+ for (const [h, s] of u.entries()) {
135
+ s.index = h;
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: h, targetLinks: s } of e)
141
+ h.sort(f), s.sort(f);
142
+ }
143
+ function A({ nodes: e }) {
144
+ for (const u of e)
145
+ u.value = u.fixedValue === void 0 ? Math.max(tt(u.sourceLinks, et), tt(u.targetLinks, et)) : u.fixedValue;
146
+ }
147
+ function T({ nodes: e }) {
148
+ const u = e.length;
149
+ let l = new Set(e), h = /* @__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
+ h.add(b);
155
+ }
156
+ if (++s > u) throw new Error("circular link");
157
+ l = h, h = /* @__PURE__ */ new Set();
158
+ }
159
+ }
160
+ function O({ nodes: e }) {
161
+ const u = e.length;
162
+ let l = new Set(e), h = /* @__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
+ h.add(b);
168
+ }
169
+ if (++s > u) throw new Error("circular link");
170
+ l = h, h = /* @__PURE__ */ new Set();
171
+ }
172
+ }
173
+ function D({ nodes: e }) {
174
+ const u = ct(e, (s) => s.depth) + 1, l = (r - t - c) / (u - 1), h = new Array(u);
175
+ for (const s of e) {
176
+ const x = Math.max(0, Math.min(u - 1, Math.floor(i.call(null, s, u))));
177
+ s.layer = x, s.x0 = t + x * l, s.x1 = s.x0 + c, h[x] ? h[x].push(s) : h[x] = [s];
178
+ }
179
+ if (o) for (const s of h)
180
+ s.sort(o);
181
+ return h;
182
+ }
183
+ function S(e) {
184
+ const u = dt(e, (l) => (a - n - (l.length - 1) * d) / tt(l, et));
185
+ for (const l of e) {
186
+ let h = n;
187
+ for (const s of l) {
188
+ s.y0 = h, s.y1 = h + s.value * u, h = s.y1 + d;
189
+ for (const x of s.sourceLinks)
190
+ x.width = x.value * u;
191
+ }
192
+ h = (a - h + d) / (l.length + 1);
193
+ for (let s = 0; s < l.length; ++s) {
194
+ const x = l[s];
195
+ x.y0 += h * (s + 1), x.y1 += h * (s + 1);
196
+ }
197
+ $(l);
198
+ }
199
+ }
200
+ function C(e) {
201
+ const u = D(e);
202
+ d = Math.min(k, (a - n) / (ct(u, (l) => l.length) - 1)), S(u);
203
+ for (let l = 0; l < w; ++l) {
204
+ const h = Math.pow(0.99, l), s = Math.max(1 - h, (l + 1) / w);
205
+ N(u, h, s), I(u, h, s);
206
+ }
207
+ }
208
+ function I(e, u, l) {
209
+ for (let h = 1, s = e.length; h < s; ++h) {
210
+ const x = e[h];
211
+ for (const b of x) {
212
+ let V = 0, j = 0;
213
+ for (const { source: Y, value: J } of b.targetLinks) {
214
+ let q = J * (b.layer - Y.layer);
215
+ V += M(Y, b) * q, j += q;
216
+ }
217
+ if (!(j > 0)) continue;
218
+ let W = (V / j - b.y0) * u;
219
+ b.y0 += W, b.y1 += W, E(b);
220
+ }
221
+ o === void 0 && x.sort(X), g(x, l);
222
+ }
223
+ }
224
+ function N(e, u, l) {
225
+ for (let h = e.length, s = h - 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: Y, value: J } of b.sourceLinks) {
230
+ let q = J * (Y.layer - b.layer);
231
+ V += U(b, Y) * q, j += q;
232
+ }
233
+ if (!(j > 0)) continue;
234
+ let W = (V / j - b.y0) * u;
235
+ b.y0 += W, b.y1 += W, E(b);
236
+ }
237
+ o === void 0 && x.sort(X), g(x, l);
238
+ }
239
+ }
240
+ function g(e, u) {
241
+ const l = e.length >> 1, h = e[l];
242
+ G(e, h.y0 - d, l - 1, u), L(e, h.y1 + d, l + 1, u), G(e, a, e.length - 1, u), L(e, n, 0, u);
243
+ }
244
+ function L(e, u, l, h) {
245
+ for (; l < e.length; ++l) {
246
+ const s = e[l], x = (u - s.y0) * h;
247
+ x > 1e-6 && (s.y0 += x, s.y1 += x), u = s.y1 + d;
248
+ }
249
+ }
250
+ function G(e, u, l, h) {
251
+ for (; l >= 0; --l) {
252
+ const s = e[l], x = (s.y1 - u) * h;
253
+ x > 1e-6 && (s.y0 -= x, s.y1 -= x), u = s.y0 - d;
254
+ }
255
+ }
256
+ function E({ sourceLinks: e, targetLinks: u }) {
257
+ if (f === void 0) {
258
+ for (const { source: { sourceLinks: l } } of u)
259
+ l.sort(ut);
260
+ for (const { target: { targetLinks: l } } of e)
261
+ l.sort(ht);
262
+ }
263
+ }
264
+ function $(e) {
265
+ if (f === void 0)
266
+ for (const { sourceLinks: u, targetLinks: l } of e)
267
+ u.sort(ut), l.sort(ht);
268
+ }
269
+ function M(e, u) {
270
+ let l = e.y0 - (e.sourceLinks.length - 1) * d / 2;
271
+ for (const { target: h, width: s } of e.sourceLinks) {
272
+ if (h === u) break;
273
+ l += s + d;
274
+ }
275
+ for (const { source: h, width: s } of u.targetLinks) {
276
+ if (h === e) break;
277
+ l -= s;
278
+ }
279
+ return l;
280
+ }
281
+ function U(e, u) {
282
+ let l = u.y0 - (u.targetLinks.length - 1) * d / 2;
283
+ for (const { source: h, width: s } of u.targetLinks) {
284
+ if (h === e) break;
285
+ l += s + d;
286
+ }
287
+ for (const { target: h, width: s } of e.sourceLinks) {
288
+ if (h === u) 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, d = this._y1, m = r - t, i = a - n, o = k - t, f = d - n, p = 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 (p > 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 - d, v = m * m + i * i, P = y * y + w * w, A = Math.sqrt(v), T = Math.sqrt(p), O = c * Math.tan((rt - Math.acos((v + p - P) / (2 * A * T))) / 2), D = O / T, S = O / A;
330
+ Math.abs(D - 1) > z && (this._ += "L" + (t + D * o) + "," + (n + D * f)), this._ += "A" + c + "," + c + ",0,0," + +(f * y > o * w) + "," + (this._x1 = t + S * m) + "," + (this._y1 = n + S * i);
331
+ }
332
+ },
333
+ arc: function(t, n, r, a, c, k) {
334
+ t = +t, n = +n, r = +r, k = !!k;
335
+ var d = r * Math.cos(a), m = r * Math.sin(a), i = t + d, o = n + m, f = 1 ^ k, p = k ? a - c : c - a;
336
+ if (r < 0) throw new Error("negative radius: " + r);
337
+ this._x1 === null ? this._ += "M" + i + "," + o : (Math.abs(this._x1 - i) > z || Math.abs(this._y1 - o) > z) && (this._ += "L" + i + "," + o), r && (p < 0 && (p = p % st + st), p > Gt ? this._ += "A" + r + "," + r + ",0,1," + f + "," + (t - d) + "," + (n - m) + "A" + r + "," + r + ",0,1," + f + "," + (this._x1 = i) + "," + (this._y1 = o) : p > z && (this._ += "A" + r + "," + r + ",0," + +(p >= rt) + "," + f + "," + (this._x1 = t + r * Math.cos(c)) + "," + (this._y1 = n + r * Math.sin(c))));
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 Yt(t) {
359
+ return t.source;
360
+ }
361
+ function qt(t) {
362
+ return t.target;
363
+ }
364
+ function Qt(t) {
365
+ var n = Yt, r = qt, a = Ut, c = Vt, k = null;
366
+ function d() {
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 d.source = function(m) {
371
+ return arguments.length ? (n = m, d) : n;
372
+ }, d.target = function(m) {
373
+ return arguments.length ? (r = m, d) : r;
374
+ }, d.x = function(m) {
375
+ return arguments.length ? (a = typeof m == "function" ? m : gt(+m), d) : a;
376
+ }, d.y = function(m) {
377
+ return arguments.length ? (c = typeof m == "function" ? m : gt(+m), d) : c;
378
+ }, d.context = function(m) {
379
+ return arguments.length ? (k = m ?? null, d) : k;
380
+ }, d;
381
+ }
382
+ function Rt(t, n, r, a, c) {
383
+ t.moveTo(n, r), t.bezierCurveTo(n = (n + a) / 2, r, n, c, a, c);
384
+ }
385
+ function Xt() {
386
+ return Qt(Rt);
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 Xt().source(Kt).target(Zt);
396
+ }
397
+ var at = function() {
398
+ var t = /* @__PURE__ */ _(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__ */ _(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__ */ _(function(m, i, o, f, p, y, w) {
409
+ var v = y.length - 1;
410
+ switch (p) {
411
+ case 7:
412
+ const P = f.findOrCreateNode(y[v - 4].trim().replaceAll('""', '"')), A = f.findOrCreateNode(y[v - 2].trim().replaceAll('""', '"')), T = parseFloat(y[v].trim());
413
+ f.addLink(P, A, T);
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__ */ _(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__ */ _(function(m) {
436
+ var i = this, o = [0], f = [], p = [null], y = [], w = this.table, v = "", P = 0, A = 0, T = 2, O = 1, D = y.slice.call(arguments, 1), S = Object.create(this.lexer), C = { yy: {} };
437
+ for (var I in this.yy)
438
+ Object.prototype.hasOwnProperty.call(this.yy, I) && (C.yy[I] = this.yy[I]);
439
+ S.setInput(m, C.yy), C.yy.lexer = S, C.yy.parser = this, typeof S.yylloc > "u" && (S.yylloc = {});
440
+ var N = S.yylloc;
441
+ y.push(N);
442
+ var g = S.options && S.options.ranges;
443
+ typeof C.yy.parseError == "function" ? this.parseError = C.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
444
+ function L(b) {
445
+ o.length = o.length - 2 * b, p.length = p.length - b, y.length = y.length - b;
446
+ }
447
+ _(L, "popStack");
448
+ function G() {
449
+ var b;
450
+ return b = f.pop() || S.lex() || O, typeof b != "number" && (b instanceof Array && (f = b, b = f.pop()), b = i.symbols_[b] || b), b;
451
+ }
452
+ _(G, "lex");
453
+ for (var E, $, M, U, e = {}, u, l, h, 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 (u in w[$])
458
+ this.terminals_[u] && u > T && s.push("'" + this.terminals_[u] + "'");
459
+ S.showPosition ? x = "Parse error on line " + (P + 1) + `:
460
+ ` + S.showPosition() + `
461
+ Expecting ` + s.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : x = "Parse error on line " + (P + 1) + ": Unexpected " + (E == O ? "end of input" : "'" + (this.terminals_[E] || E) + "'"), this.parseError(x, {
462
+ text: S.match,
463
+ token: this.terminals_[E] || E,
464
+ line: S.yylineno,
465
+ loc: N,
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), p.push(S.yytext), y.push(S.yylloc), o.push(M[1]), E = null, A = S.yyleng, v = S.yytext, P = S.yylineno, N = S.yylloc;
474
+ break;
475
+ case 2:
476
+ if (l = this.productions_[M[1]][1], e.$ = p[p.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
+ P,
488
+ C.yy,
489
+ M[1],
490
+ p,
491
+ y
492
+ ].concat(D)), typeof U < "u")
493
+ return U;
494
+ l && (o = o.slice(0, -1 * l * 2), p = p.slice(0, -1 * l), y = y.slice(0, -1 * l)), o.push(this.productions_[M[1]][0]), p.push(e.$), y.push(e._$), h = w[o[o.length - 2]][o[o.length - 1]], o.push(h);
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__ */ _(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__ */ _(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__ */ _(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__ */ _(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 p = 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 === p.length ? this.yylloc.first_column : 0) + p[p.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__ */ _(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__ */ _(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__ */ _(function(i) {
560
+ this.unput(this.match.slice(i));
561
+ }, "less"),
562
+ // displays already matched input, i.e. for error messages
563
+ pastInput: /* @__PURE__ */ _(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__ */ _(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__ */ _(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__ */ _(function(i, o) {
580
+ var f, p, 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))), p = i[0].match(/(?:\r\n?|\n).*/g), p && (this.yylineno += p.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: p ? p[p.length - 1].length - p[p.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__ */ _(function() {
616
+ if (this.done)
617
+ return this.EOF;
618
+ this._input || (this.done = !0);
619
+ var i, o, f, p;
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, p = 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[p]), 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__ */ _(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__ */ _(function(i) {
648
+ this.conditionStack.push(i);
649
+ }, "begin"),
650
+ // pop the previously active lexer condition state off the condition stack
651
+ popState: /* @__PURE__ */ _(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__ */ _(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__ */ _(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__ */ _(function(i) {
665
+ this.begin(i);
666
+ }, "pushState"),
667
+ // return the number of states currently on the stack
668
+ stateStackSize: /* @__PURE__ */ _(function() {
669
+ return this.conditionStack.length;
670
+ }, "stateStackSize"),
671
+ options: { "case-insensitive": !0 },
672
+ performAction: /* @__PURE__ */ _(function(i, o, f, p) {
673
+ switch (f) {
674
+ case 0:
675
+ return this.pushState("csv"), 4;
676
+ case 1:
677
+ return 10;
678
+ case 2:
679
+ return 5;
680
+ case 3:
681
+ return 12;
682
+ case 4:
683
+ return this.pushState("escaped_text"), 18;
684
+ case 5:
685
+ return 20;
686
+ case 6:
687
+ return this.popState("escaped_text"), 18;
688
+ case 7:
689
+ return 19;
690
+ }
691
+ }, "anonymous"),
692
+ rules: [/^(?:sankey-beta\b)/i, /^(?:$)/i, /^(?:((\u000D\u000A)|(\u000A)))/i, /^(?:(\u002C))/i, /^(?:(\u0022))/i, /^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i, /^(?:(\u0022)(?!(\u0022)))/i, /^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],
693
+ conditions: { csv: { rules: [1, 2, 3, 4, 5, 6, 7], inclusive: !1 }, escaped_text: { rules: [6, 7], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 3, 4, 5, 6, 7], inclusive: !0 } }
694
+ };
695
+ return m;
696
+ }();
697
+ c.lexer = k;
698
+ function d() {
699
+ this.yy = {};
700
+ }
701
+ return _(d, "Parser"), d.prototype = c, c.Parser = d, new d();
702
+ }();
703
+ at.parser = at;
704
+ var K = at, B = [], H = [], Z = /* @__PURE__ */ new Map(), Ht = /* @__PURE__ */ _(() => {
705
+ B = [], H = [], Z = /* @__PURE__ */ new Map(), Et();
706
+ }, "clear"), nt, Jt = (nt = class {
707
+ constructor(t, n, r = 0) {
708
+ this.source = t, this.target = n, this.value = r;
709
+ }
710
+ }, _(nt, "SankeyLink"), nt), te = /* @__PURE__ */ _((t, n, r) => {
711
+ B.push(new Jt(t, n, r));
712
+ }, "addLink"), it, ee = (it = class {
713
+ constructor(t) {
714
+ this.ID = t;
715
+ }
716
+ }, _(it, "SankeyNode"), it), ne = /* @__PURE__ */ _((t) => {
717
+ t = Lt.sanitizeText(t, lt());
718
+ let n = Z.get(t);
719
+ return n === void 0 && (n = new ee(t), Z.set(t, n), H.push(n)), n;
720
+ }, "findOrCreateNode"), ie = /* @__PURE__ */ _(() => H, "getNodes"), re = /* @__PURE__ */ _(() => B, "getLinks"), se = /* @__PURE__ */ _(() => ({
721
+ nodes: H.map((t) => ({ id: t.ID })),
722
+ links: B.map((t) => ({
723
+ source: t.source.ID,
724
+ target: t.target.ID,
725
+ value: t.value
726
+ }))
727
+ }), "getGraph"), oe = {
728
+ nodesMap: Z,
729
+ getConfig: /* @__PURE__ */ _(() => lt().sankey, "getConfig"),
730
+ getNodes: ie,
731
+ getLinks: re,
732
+ getGraph: se,
733
+ addLink: te,
734
+ findOrCreateNode: ne,
735
+ getAccTitle: xt,
736
+ setAccTitle: kt,
737
+ getAccDescription: vt,
738
+ setAccDescription: bt,
739
+ getDiagramTitle: wt,
740
+ setDiagramTitle: St,
741
+ clear: Ht
742
+ }, F, pt = (F = class {
743
+ static next(t) {
744
+ return new F(t + ++F.count);
745
+ }
746
+ constructor(t) {
747
+ this.id = t, this.href = `#${t}`;
748
+ }
749
+ toString() {
750
+ return "url(" + this.href + ")";
751
+ }
752
+ }, _(F, "Uid"), F.count = 0, F), ae = {
753
+ left: Nt,
754
+ right: Ot,
755
+ center: It,
756
+ justify: _t
757
+ }, le = /* @__PURE__ */ _(function(t, n, r, a) {
758
+ const { securityLevel: c, sankey: k } = lt(), d = Mt.sankey;
759
+ let m;
760
+ c === "sandbox" && (m = Q("#i" + n));
761
+ const i = c === "sandbox" ? Q(m.nodes()[0].contentDocument.body) : Q("body"), o = c === "sandbox" ? i.select(`[id="${n}"]`) : Q(`[id="${n}"]`), f = (k == null ? void 0 : k.width) ?? d.width, p = (k == null ? void 0 : k.height) ?? d.width, y = (k == null ? void 0 : k.useMaxWidth) ?? d.useMaxWidth, w = (k == null ? void 0 : k.nodeAlignment) ?? d.nodeAlignment, v = (k == null ? void 0 : k.prefix) ?? d.prefix, P = (k == null ? void 0 : k.suffix) ?? d.suffix, A = (k == null ? void 0 : k.showValues) ?? d.showValues, T = a.db.getGraph(), O = ae[w];
762
+ Ft().nodeId((g) => g.id).nodeWidth(10).nodePadding(10 + (A ? 15 : 0)).nodeAlign(O).extent([
763
+ [0, 0],
764
+ [f, p]
765
+ ])(T);
766
+ const D = Tt(Pt);
767
+ o.append("g").attr("class", "nodes").selectAll(".node").data(T.nodes).join("g").attr("class", "node").attr("id", (g) => (g.uid = pt.next("node-")).id).attr("transform", function(g) {
768
+ return "translate(" + g.x0 + "," + g.y0 + ")";
769
+ }).attr("x", (g) => g.x0).attr("y", (g) => g.y0).append("rect").attr("height", (g) => g.y1 - g.y0).attr("width", (g) => g.x1 - g.x0).attr("fill", (g) => D(g.id));
770
+ const S = /* @__PURE__ */ _(({ id: g, value: L }) => A ? `${g}
771
+ ${v}${Math.round(L * 100) / 100}${P}` : g, "getText");
772
+ o.append("g").attr("class", "node-labels").attr("font-family", "sans-serif").attr("font-size", 14).selectAll("text").data(T.nodes).join("text").attr("x", (g) => g.x0 < f / 2 ? g.x1 + 6 : g.x0 - 6).attr("y", (g) => (g.y1 + g.y0) / 2).attr("dy", `${A ? "0" : "0.35"}em`).attr("text-anchor", (g) => g.x0 < f / 2 ? "start" : "end").text(S);
773
+ const C = o.append("g").attr("class", "links").attr("fill", "none").attr("stroke-opacity", 0.5).selectAll(".link").data(T.links).join("g").attr("class", "link").style("mix-blend-mode", "multiply"), I = (k == null ? void 0 : k.linkColor) ?? "gradient";
774
+ if (I === "gradient") {
775
+ const g = C.append("linearGradient").attr("id", (L) => (L.uid = pt.next("linearGradient-")).id).attr("gradientUnits", "userSpaceOnUse").attr("x1", (L) => L.source.x1).attr("x2", (L) => L.target.x0);
776
+ g.append("stop").attr("offset", "0%").attr("stop-color", (L) => D(L.source.id)), g.append("stop").attr("offset", "100%").attr("stop-color", (L) => D(L.target.id));
777
+ }
778
+ let N;
779
+ switch (I) {
780
+ case "gradient":
781
+ N = /* @__PURE__ */ _((g) => g.uid, "coloring");
782
+ break;
783
+ case "source":
784
+ N = /* @__PURE__ */ _((g) => D(g.source.id), "coloring");
785
+ break;
786
+ case "target":
787
+ N = /* @__PURE__ */ _((g) => D(g.target.id), "coloring");
788
+ break;
789
+ default:
790
+ N = I;
791
+ }
792
+ C.append("path").attr("d", Bt()).attr("stroke", N).attr("stroke-width", (g) => Math.max(1, g.width)), At(void 0, o, 0, y);
793
+ }, "draw"), ce = {
794
+ draw: le
795
+ }, he = /* @__PURE__ */ _((t) => t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g, "").replaceAll(/([\n\r])+/g, `
796
+ `).trim(), "prepareTextForParsing"), ue = K.parse.bind(K);
797
+ K.parse = (t) => ue(he(t));
798
+ var ge = {
799
+ parser: K,
800
+ db: oe,
801
+ renderer: ce
802
+ };
803
+ export {
804
+ ge as diagram
805
+ };