@schmitech/chatbot-widget 0.6.3 → 0.7.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 (82) hide show
  1. package/dist/ChatWidget.d.ts +11 -0
  2. package/dist/{_baseUniq-BPMphbq5-xiRWQlDn.js → _baseUniq-BRKsqoH--HqBVqMpT.js} +126 -126
  3. package/dist/arc-pab_su9s-DkImmxyv.js +84 -0
  4. package/dist/architecture-U656AL7Q-CRlU-eNB-vFayp_Gk.js +7 -0
  5. package/dist/{architectureDiagram-VXUJARFQ-BiqZtsDe-rYpYn0Hz.js → architectureDiagram-VXUJARFQ-DqQ8r_6g-DTzMoAeY.js} +5 -5
  6. package/dist/{blockDiagram-VD42YOAC-zcRIdFTD-B54KiQJD.js → blockDiagram-VD42YOAC-B-dKfcH3-DKPGmrNb.js} +50 -50
  7. package/dist/{c4Diagram-YG6GDRKO-DYXNcDX4-B9fXQAMg.js → c4Diagram-YG6GDRKO-DMUPaBEl-CXjiCiKq.js} +63 -63
  8. package/dist/channel-HKsfPa5q-B30_3C0d.js +6 -0
  9. package/dist/chatbot-widget.bundle.js +11596 -0
  10. package/dist/chatbot-widget.es.js +1 -1
  11. package/dist/chatbot-widget.umd.js +4342 -3550
  12. package/dist/{chunk-4BX2VUAB-DAh9ktmY-CF6YTNXg.js → chunk-4BX2VUAB-CX67kh_B-JdLaNmBY.js} +1 -1
  13. package/dist/chunk-55IACEB6-BocSyyvr--btUJ1po.js +9 -0
  14. package/dist/{chunk-B4BG7PRW-BTUSpeKy-CXaYsx4a.js → chunk-B4BG7PRW-CO8QAyfE-p5mLBzD4.js} +30 -30
  15. package/dist/{chunk-DI55MBZ5-DKt4WII7-CjsnNRFb.js → chunk-DI55MBZ5-Dw1L6Eos-zQC2oI_e.js} +149 -149
  16. package/dist/{chunk-FMBD7UC4-DdcCR8w3-BbYkKjQZ.js → chunk-FMBD7UC4-dPK7Boav-C-fxYlU9.js} +1 -1
  17. package/dist/{chunk-QN33PNHL-v6AkzOl1-DrzKpDUJ.js → chunk-QN33PNHL-vP2PqfVG-ByquTp49.js} +5 -5
  18. package/dist/{chunk-QZHKN3VN-DVJOrqBZ-BQORk0pj.js → chunk-QZHKN3VN-Bcidzu63-ukwvi4Mt.js} +1 -1
  19. package/dist/{chunk-TZMSLE5B-G2jJHqli-B_BRSOS0.js → chunk-TZMSLE5B-BtljMjlg-DP4v1MME.js} +1 -1
  20. package/dist/{classDiagram-v2-WZHVMYZB-CxmgTanh-ByLirDpd.js → classDiagram-2ON5EDUG-C7cYN9hv-CtX4c_16.js} +2 -2
  21. package/dist/{classDiagram-2ON5EDUG-CxmgTanh-ByLirDpd.js → classDiagram-v2-WZHVMYZB-C7cYN9hv-CtX4c_16.js} +2 -2
  22. package/dist/{clone-CsNB4mMi-B2bGL_Hr.js → clone-DoPb9X13-BkFPVisk.js} +1 -1
  23. package/dist/config/index.d.ts +81 -0
  24. package/dist/{cose-bilkent-S5V4N54A-BRr2Y6dg-C4O3AMLV.js → cose-bilkent-S5V4N54A-BGzO4EsH-BNoSF82N.js} +1 -1
  25. package/dist/{dagre-6UL2VRFP-DX8gNHmJ-BSzSR8Xh.js → dagre-6UL2VRFP-TzNvXCds-Dnr2OGZv.js} +45 -45
  26. package/dist/{diagram-PSM6KHXK-DNX818To-D60Hp_rL.js → diagram-PSM6KHXK-BqY4RpUg-BAHxSfLA.js} +119 -119
  27. package/dist/{diagram-QEK2KX5R-BDO6hKtm-BHvRInjZ.js → diagram-QEK2KX5R-CTjgBsne-D-9APhrR.js} +74 -74
  28. package/dist/{diagram-S2PKOQOG-IEqaDwzi-CZZkmLuc.js → diagram-S2PKOQOG-BqrhTIpA-DvsAaFEx.js} +21 -21
  29. package/dist/{erDiagram-Q2GNP2WA-DbLpN8Jp-902zC-_U.js → erDiagram-Q2GNP2WA-B2hsi_Tl-CQQl2KTS.js} +24 -24
  30. package/dist/{flowDiagram-NV44I4VS-pJlHae8Y-hM8e9jah.js → flowDiagram-NV44I4VS-C03vtt_F-Ds5DxRz1.js} +37 -37
  31. package/dist/{ganttDiagram-JELNMOA3-J0Tkq5TR-C8n0Mtt1.js → ganttDiagram-JELNMOA3-B3hAg964-D9cHQTuZ.js} +110 -110
  32. package/dist/gitGraph-F6HP7TQM-B-XXB6PA-CXOJho2m.js +7 -0
  33. package/dist/{gitGraphDiagram-NY62KEGX-DgYonpsZ-CAVA4-Vo.js → gitGraphDiagram-NY62KEGX-ByhMH0yZ-DTWIR_Gp.js} +238 -238
  34. package/dist/{graph-BpcfrHXY-Dllj_YdG.js → graph-BmNkcFEM-CTJN7Ty_.js} +67 -67
  35. package/dist/hooks/useAnimationManagement.d.ts +16 -0
  36. package/dist/hooks/useInputManagement.d.ts +21 -0
  37. package/dist/hooks/useScrollManagement.d.ts +17 -0
  38. package/dist/index-BXexqYFc-Bn0M0HQB.js +13693 -0
  39. package/dist/{index-DlxA4QQ9.js → index-DU3Jqd59.js} +80142 -50172
  40. package/dist/index.d.ts +19 -0
  41. package/dist/info-NVLQJR56-BJV_yXNb-CH_hMh0K.js +7 -0
  42. package/dist/infoDiagram-WHAUD3N6-is6Ho4-T-E3qEjHYs.js +25 -0
  43. package/dist/{journeyDiagram-XKPGCS4Q-CfjB2Qdf-nD3bX36U.js → journeyDiagram-XKPGCS4Q-CRTOL26C-VvuJ7JPc.js} +71 -71
  44. package/dist/{kanban-definition-3W4ZIXB7-CrW8yVmd-C_Okjmcp.js → kanban-definition-3W4ZIXB7-CNnO_t6O-BsqhwZAY.js} +88 -88
  45. package/dist/{layout-bsfAhWjc-fb3F3QBs.js → layout-C0kZPebx-CrIgKtBd.js} +109 -109
  46. package/dist/{mermaid-parser.core-3GIbpcw--KxsyRnD0.js → mermaid-parser.core-C88_DDui-CHG6v5qB.js} +10 -10
  47. package/dist/min-7Gb0pNxh-Cd_K7Lpk.js +39 -0
  48. package/dist/{mindmap-definition-VGOIOE7T-Dj37RkY_-BXffQH_4.js → mindmap-definition-VGOIOE7T-CJZ2wTTa-D4yK-MK1.js} +40 -40
  49. package/dist/packet-BFZMPI3H-DPt2EftX-Bgsdgnv-.js +7 -0
  50. package/dist/pie-7BOR55EZ-aEOtXZZV-CT0TLfil.js +7 -0
  51. package/dist/{pieDiagram-ADFJNKIX-BiQvDx8I-DnApOdvY.js → pieDiagram-ADFJNKIX-C9OSknjr-DguaGmOm.js} +49 -49
  52. package/dist/{quadrantDiagram-AYHSOK5B-D4b-YFzI-DrTslixM.js → quadrantDiagram-AYHSOK5B-CW8yuAqv-Dp9c_xnT.js} +54 -54
  53. package/dist/radar-NHE76QYJ-Dv7iPziq-DzohugO5.js +7 -0
  54. package/dist/{requirementDiagram-UZGBJVZJ-km07nlVd-C-mMa1KG.js → requirementDiagram-UZGBJVZJ-nGPhruO1-DINXeP9u.js} +5 -5
  55. package/dist/{sankeyDiagram-TZEHDZUN-LfuSRRbf-4X6kl_ss.js → sankeyDiagram-TZEHDZUN-CmL90u-m-YTiy7xgb.js} +146 -146
  56. package/dist/{sequenceDiagram-WL72ISMW-CQ4J-0_7-CEQiE3WJ.js → sequenceDiagram-WL72ISMW-B02VRcnM-B0n6W8Zi.js} +3 -3
  57. package/dist/shared/styles.d.ts +76 -0
  58. package/dist/{stateDiagram-FKZM4ZOC-JtogJwt6-YmKguJGd.js → stateDiagram-FKZM4ZOC-DjoyLUdz-BEUNa8-U.js} +14 -14
  59. package/dist/{stateDiagram-v2-4FDKWEC3-DuQ7UaeU-D6r92VaJ.js → stateDiagram-v2-4FDKWEC3-Bq76BTB7-DJxNsvnB.js} +2 -2
  60. package/dist/store/chatStore.d.ts +19 -0
  61. package/dist/{timeline-definition-IT6M3QCI-Cs3NnF2M-BigQwSNM.js → timeline-definition-IT6M3QCI-CTn0Gm3T-sHrk-A3B.js} +78 -78
  62. package/dist/treemap-KMMF4GRG-BjgLKKyi-CXHyJ_sr.js +7 -0
  63. package/dist/ui/ChatInput.d.ts +17 -0
  64. package/dist/ui/Message.d.ts +22 -0
  65. package/dist/ui/MessagesList.d.ts +32 -0
  66. package/dist/utils/contentFiltering.d.ts +12 -0
  67. package/dist/utils/sessionManager.d.ts +2 -0
  68. package/dist/{xychartDiagram-PRI3JC2R-JzAaXa5z-k94imfkQ.js → xychartDiagram-PRI3JC2R-Cgg6Uija-BysdxdV7.js} +79 -79
  69. package/package.json +9 -9
  70. package/dist/arc-D9rhTKV0-3XdW6Lry.js +0 -84
  71. package/dist/architecture-U656AL7Q-BFNI3st4-ChEUjpe5.js +0 -6
  72. package/dist/channel-CUIutAfm-COC3Ib4R.js +0 -6
  73. package/dist/chunk-55IACEB6-Cza7pcpr-C1E53ZSc.js +0 -9
  74. package/dist/gitGraph-F6HP7TQM-CD3YuciB-WOZqeAgY.js +0 -6
  75. package/dist/index-DvNpGWs7-CTu7Fgm8.js +0 -13251
  76. package/dist/info-NVLQJR56-yPC6AWqF-CQWIUnLc.js +0 -6
  77. package/dist/infoDiagram-WHAUD3N6-C3JLOAnb-o3ipZ1gK.js +0 -25
  78. package/dist/min-C2aDz5ZK-NndI1eE7.js +0 -39
  79. package/dist/packet-BFZMPI3H-3ROFuof--C96yO55O.js +0 -6
  80. package/dist/pie-7BOR55EZ-BZ_QeD6P-Bs0c_r6N.js +0 -6
  81. package/dist/radar-NHE76QYJ-BkSncUeS-jHSdaVBc.js +0 -6
  82. package/dist/treemap-KMMF4GRG-CkW25-tn-CkfndsG5.js +0 -6
@@ -1,10 +1,10 @@
1
- import { Q as p, v as kt, E as xt, e as vt, p as wt, B as bt, h as St, k as lt, J as Et, w as V, ao as Lt, aW as Mt, F as At, l as Tt } from "./index-DlxA4QQ9.js";
1
+ import { s as xt, t as kt, e as vt, f as bt, h as wt, g as St, M as p, C as lt, H as Et, d as Q, ao as Lt, aW as Mt, N as At, m as Tt } from "./index-DU3Jqd59.js";
2
2
  typeof window < "u" && (window.global = window);
3
- function Pt(t) {
3
+ function Nt(t) {
4
4
  for (var n = t.length / 6 | 0, s = new Array(n), a = 0; a < n; ) s[a] = "#" + t.slice(a * 6, ++a * 6);
5
5
  return s;
6
6
  }
7
- const Nt = Pt("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");
7
+ const Ot = Nt("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");
8
8
  function ct(t, n) {
9
9
  let s;
10
10
  if (n === void 0)
@@ -41,20 +41,20 @@ function tt(t, n) {
41
41
  }
42
42
  return s;
43
43
  }
44
- function Ot(t) {
44
+ function Pt(t) {
45
45
  return t.target.depth;
46
46
  }
47
47
  function Ct(t) {
48
48
  return t.depth;
49
49
  }
50
- function It(t, n) {
50
+ function Dt(t, n) {
51
51
  return n - 1 - t.height;
52
52
  }
53
53
  function _t(t, n) {
54
54
  return t.sourceLinks.length ? t.depth : n - 1;
55
55
  }
56
- function Dt(t) {
57
- return t.targetLinks.length ? t.depth : t.sourceLinks.length ? pt(t.sourceLinks, Ot) - 1 : 0;
56
+ function It(t) {
57
+ return t.targetLinks.length ? t.depth : t.sourceLinks.length ? pt(t.sourceLinks, Pt) - 1 : 0;
58
58
  }
59
59
  function X(t) {
60
60
  return function() {
@@ -62,12 +62,12 @@ function X(t) {
62
62
  };
63
63
  }
64
64
  function ht(t, n) {
65
- return B(t.source, n.source) || t.index - n.index;
65
+ return R(t.source, n.source) || t.index - n.index;
66
66
  }
67
67
  function ut(t, n) {
68
- return B(t.target, n.target) || t.index - n.index;
68
+ return R(t.target, n.target) || t.index - n.index;
69
69
  }
70
- function B(t, n) {
70
+ function R(t, n) {
71
71
  return t.y0 - n.y0;
72
72
  }
73
73
  function et(t) {
@@ -97,10 +97,10 @@ function yt({ nodes: t }) {
97
97
  }
98
98
  }
99
99
  function Ft() {
100
- let t = 0, n = 0, s = 1, a = 1, c = 24, x = 8, _, m = $t, i = _t, o, f, g = jt, y = zt, b = 6;
100
+ let t = 0, n = 0, s = 1, a = 1, c = 24, k = 8, _, m = $t, i = _t, o, f, g = jt, y = zt, w = 6;
101
101
  function v() {
102
102
  const e = { nodes: g.apply(null, arguments), links: y.apply(null, arguments) };
103
- return N(e), A(e), T(e), I(e), O(e), yt(e), e;
103
+ return O(e), A(e), T(e), D(e), P(e), yt(e), e;
104
104
  }
105
105
  v.update = function(e) {
106
106
  return yt(e), e;
@@ -113,7 +113,7 @@ function Ft() {
113
113
  }, v.nodeWidth = function(e) {
114
114
  return arguments.length ? (c = +e, v) : c;
115
115
  }, v.nodePadding = function(e) {
116
- return arguments.length ? (x = _ = +e, v) : x;
116
+ return arguments.length ? (k = _ = +e, v) : k;
117
117
  }, v.nodes = function(e) {
118
118
  return arguments.length ? (g = typeof e == "function" ? e : X(e), v) : g;
119
119
  }, v.links = function(e) {
@@ -125,16 +125,16 @@ function Ft() {
125
125
  }, v.extent = function(e) {
126
126
  return arguments.length ? (t = +e[0][0], s = +e[1][0], n = +e[0][1], a = +e[1][1], v) : [[t, n], [s, a]];
127
127
  }, v.iterations = function(e) {
128
- return arguments.length ? (b = +e, v) : b;
128
+ return arguments.length ? (w = +e, v) : w;
129
129
  };
130
- function N({ nodes: e, links: u }) {
130
+ function O({ nodes: e, links: u }) {
131
131
  for (const [h, r] of e.entries())
132
132
  r.index = h, r.sourceLinks = [], r.targetLinks = [];
133
133
  const l = new Map(e.map((h, r) => [m(h, r, e), h]));
134
134
  for (const [h, r] of u.entries()) {
135
135
  r.index = h;
136
- let { source: k, target: w } = r;
137
- typeof k != "object" && (k = r.source = ft(l, k)), typeof w != "object" && (w = r.target = ft(l, w)), k.sourceLinks.push(r), w.targetLinks.push(r);
136
+ let { source: x, target: b } = r;
137
+ typeof x != "object" && (x = r.source = ft(l, x)), typeof b != "object" && (b = r.target = ft(l, b)), x.sourceLinks.push(r), b.targetLinks.push(r);
138
138
  }
139
139
  if (f != null)
140
140
  for (const { sourceLinks: h, targetLinks: r } of e)
@@ -148,33 +148,33 @@ function Ft() {
148
148
  const u = e.length;
149
149
  let l = new Set(e), h = /* @__PURE__ */ new Set(), r = 0;
150
150
  for (; l.size; ) {
151
- for (const k of l) {
152
- k.depth = r;
153
- for (const { target: w } of k.sourceLinks)
154
- h.add(w);
151
+ for (const x of l) {
152
+ x.depth = r;
153
+ for (const { target: b } of x.sourceLinks)
154
+ h.add(b);
155
155
  }
156
156
  if (++r > u) throw new Error("circular link");
157
157
  l = h, h = /* @__PURE__ */ new Set();
158
158
  }
159
159
  }
160
- function I({ nodes: e }) {
160
+ function D({ nodes: e }) {
161
161
  const u = e.length;
162
162
  let l = new Set(e), h = /* @__PURE__ */ new Set(), r = 0;
163
163
  for (; l.size; ) {
164
- for (const k of l) {
165
- k.height = r;
166
- for (const { source: w } of k.targetLinks)
167
- h.add(w);
164
+ for (const x of l) {
165
+ x.height = r;
166
+ for (const { source: b } of x.targetLinks)
167
+ h.add(b);
168
168
  }
169
169
  if (++r > u) throw new Error("circular link");
170
170
  l = h, h = /* @__PURE__ */ new Set();
171
171
  }
172
172
  }
173
- function P({ nodes: e }) {
173
+ function N({ nodes: e }) {
174
174
  const u = ct(e, (r) => r.depth) + 1, l = (s - t - c) / (u - 1), h = new Array(u);
175
175
  for (const r of e) {
176
- const k = Math.max(0, Math.min(u - 1, Math.floor(i.call(null, r, u))));
177
- r.layer = k, r.x0 = t + k * l, r.x1 = r.x0 + c, h[k] ? h[k].push(r) : h[k] = [r];
176
+ const x = Math.max(0, Math.min(u - 1, Math.floor(i.call(null, r, u))));
177
+ r.layer = x, r.x0 = t + x * l, r.x1 = r.x0 + c, h[x] ? h[x].push(r) : h[x] = [r];
178
178
  }
179
179
  if (o) for (const r of h)
180
180
  r.sort(o);
@@ -186,55 +186,55 @@ function Ft() {
186
186
  let h = n;
187
187
  for (const r of l) {
188
188
  r.y0 = h, r.y1 = h + r.value * u, h = r.y1 + _;
189
- for (const k of r.sourceLinks)
190
- k.width = k.value * u;
189
+ for (const x of r.sourceLinks)
190
+ x.width = x.value * u;
191
191
  }
192
192
  h = (a - h + _) / (l.length + 1);
193
193
  for (let r = 0; r < l.length; ++r) {
194
- const k = l[r];
195
- k.y0 += h * (r + 1), k.y1 += h * (r + 1);
194
+ const x = l[r];
195
+ x.y0 += h * (r + 1), x.y1 += h * (r + 1);
196
196
  }
197
197
  $(l);
198
198
  }
199
199
  }
200
- function O(e) {
201
- const u = P(e);
202
- _ = Math.min(x, (a - n) / (ct(u, (l) => l.length) - 1)), S(u);
203
- for (let l = 0; l < b; ++l) {
204
- const h = Math.pow(0.99, l), r = Math.max(1 - h, (l + 1) / b);
205
- C(u, h, r), D(u, h, r);
200
+ function P(e) {
201
+ const u = N(e);
202
+ _ = 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), r = Math.max(1 - h, (l + 1) / w);
205
+ C(u, h, r), I(u, h, r);
206
206
  }
207
207
  }
208
- function D(e, u, l) {
208
+ function I(e, u, l) {
209
209
  for (let h = 1, r = e.length; h < r; ++h) {
210
- const k = e[h];
211
- for (const w of k) {
210
+ const x = e[h];
211
+ for (const b of x) {
212
212
  let G = 0, j = 0;
213
- for (const { source: Y, value: H } of w.targetLinks) {
214
- let q = H * (w.layer - Y.layer);
215
- G += M(Y, w) * q, j += q;
213
+ for (const { source: Y, value: J } of b.targetLinks) {
214
+ let q = J * (b.layer - Y.layer);
215
+ G += M(Y, b) * q, j += q;
216
216
  }
217
217
  if (!(j > 0)) continue;
218
- let Q = (G / j - w.y0) * u;
219
- w.y0 += Q, w.y1 += Q, E(w);
218
+ let V = (G / j - b.y0) * u;
219
+ b.y0 += V, b.y1 += V, E(b);
220
220
  }
221
- o === void 0 && k.sort(B), d(k, l);
221
+ o === void 0 && x.sort(R), d(x, l);
222
222
  }
223
223
  }
224
224
  function C(e, u, l) {
225
225
  for (let h = e.length, r = h - 2; r >= 0; --r) {
226
- const k = e[r];
227
- for (const w of k) {
226
+ const x = e[r];
227
+ for (const b of x) {
228
228
  let G = 0, j = 0;
229
- for (const { target: Y, value: H } of w.sourceLinks) {
230
- let q = H * (Y.layer - w.layer);
231
- G += W(w, Y) * q, j += q;
229
+ for (const { target: Y, value: J } of b.sourceLinks) {
230
+ let q = J * (Y.layer - b.layer);
231
+ G += W(b, Y) * q, j += q;
232
232
  }
233
233
  if (!(j > 0)) continue;
234
- let Q = (G / j - w.y0) * u;
235
- w.y0 += Q, w.y1 += Q, E(w);
234
+ let V = (G / j - b.y0) * u;
235
+ b.y0 += V, b.y1 += V, E(b);
236
236
  }
237
- o === void 0 && k.sort(B), d(k, l);
237
+ o === void 0 && x.sort(R), d(x, l);
238
238
  }
239
239
  }
240
240
  function d(e, u) {
@@ -243,14 +243,14 @@ function Ft() {
243
243
  }
244
244
  function L(e, u, l, h) {
245
245
  for (; l < e.length; ++l) {
246
- const r = e[l], k = (u - r.y0) * h;
247
- k > 1e-6 && (r.y0 += k, r.y1 += k), u = r.y1 + _;
246
+ const r = e[l], x = (u - r.y0) * h;
247
+ x > 1e-6 && (r.y0 += x, r.y1 += x), u = r.y1 + _;
248
248
  }
249
249
  }
250
250
  function U(e, u, l, h) {
251
251
  for (; l >= 0; --l) {
252
- const r = e[l], k = (r.y1 - u) * h;
253
- k > 1e-6 && (r.y0 -= k, r.y1 -= k), u = r.y0 - _;
252
+ const r = e[l], x = (r.y1 - u) * h;
253
+ x > 1e-6 && (r.y0 -= x, r.y1 -= x), u = r.y0 - _;
254
254
  }
255
255
  }
256
256
  function E({ sourceLinks: e, targetLinks: u }) {
@@ -314,25 +314,25 @@ ot.prototype = mt.prototype = {
314
314
  quadraticCurveTo: function(t, n, s, a) {
315
315
  this._ += "Q" + +t + "," + +n + "," + (this._x1 = +s) + "," + (this._y1 = +a);
316
316
  },
317
- bezierCurveTo: function(t, n, s, a, c, x) {
318
- this._ += "C" + +t + "," + +n + "," + +s + "," + +a + "," + (this._x1 = +c) + "," + (this._y1 = +x);
317
+ bezierCurveTo: function(t, n, s, a, c, k) {
318
+ this._ += "C" + +t + "," + +n + "," + +s + "," + +a + "," + (this._x1 = +c) + "," + (this._y1 = +k);
319
319
  },
320
320
  arcTo: function(t, n, s, a, c) {
321
321
  t = +t, n = +n, s = +s, a = +a, c = +c;
322
- var x = this._x1, _ = this._y1, m = s - t, i = a - n, o = x - t, f = _ - n, g = o * o + f * f;
322
+ var k = this._x1, _ = this._y1, m = s - t, i = a - n, o = k - t, f = _ - n, g = o * o + f * f;
323
323
  if (c < 0) throw new Error("negative radius: " + c);
324
324
  if (this._x1 === null)
325
325
  this._ += "M" + (this._x1 = t) + "," + (this._y1 = n);
326
326
  else if (g > z) if (!(Math.abs(f * m - i * o) > z) || !c)
327
327
  this._ += "L" + (this._x1 = t) + "," + (this._y1 = n);
328
328
  else {
329
- var y = s - x, b = a - _, v = m * m + i * i, N = y * y + b * b, A = Math.sqrt(v), T = Math.sqrt(g), I = c * Math.tan((st - Math.acos((v + g - N) / (2 * A * T))) / 2), P = I / T, S = I / A;
330
- Math.abs(P - 1) > z && (this._ += "L" + (t + P * o) + "," + (n + P * f)), this._ += "A" + c + "," + c + ",0,0," + +(f * y > o * b) + "," + (this._x1 = t + S * m) + "," + (this._y1 = n + S * i);
329
+ var y = s - k, w = a - _, v = m * m + i * i, O = y * y + w * w, A = Math.sqrt(v), T = Math.sqrt(g), D = c * Math.tan((st - Math.acos((v + g - O) / (2 * A * T))) / 2), N = D / T, S = D / A;
330
+ Math.abs(N - 1) > z && (this._ += "L" + (t + N * o) + "," + (n + N * f)), this._ += "A" + c + "," + c + ",0,0," + +(f * y > o * w) + "," + (this._x1 = t + S * m) + "," + (this._y1 = n + S * i);
331
331
  }
332
332
  },
333
- arc: function(t, n, s, a, c, x) {
334
- t = +t, n = +n, s = +s, x = !!x;
335
- var _ = s * Math.cos(a), m = s * Math.sin(a), i = t + _, o = n + m, f = 1 ^ x, g = x ? a - c : c - a;
333
+ arc: function(t, n, s, a, c, k) {
334
+ t = +t, n = +n, s = +s, k = !!k;
335
+ var _ = s * Math.cos(a), m = s * Math.sin(a), i = t + _, o = n + m, f = 1 ^ k, g = k ? a - c : c - a;
336
336
  if (s < 0) throw new Error("negative radius: " + s);
337
337
  this._x1 === null ? this._ += "M" + i + "," + o : (Math.abs(this._x1 - i) > z || Math.abs(this._y1 - o) > z) && (this._ += "L" + i + "," + o), s && (g < 0 && (g = g % rt + rt), g > Ut ? this._ += "A" + s + "," + s + ",0,1," + f + "," + (t - _) + "," + (n - m) + "A" + s + "," + s + ",0,1," + f + "," + (this._x1 = i) + "," + (this._y1 = o) : g > z && (this._ += "A" + s + "," + s + ",0," + +(g >= st) + "," + f + "," + (this._x1 = t + s * Math.cos(c)) + "," + (this._y1 = n + s * Math.sin(c))));
338
338
  },
@@ -354,18 +354,18 @@ function Wt(t) {
354
354
  function Gt(t) {
355
355
  return t[1];
356
356
  }
357
- var Qt = Array.prototype.slice;
357
+ var Vt = Array.prototype.slice;
358
358
  function Yt(t) {
359
359
  return t.source;
360
360
  }
361
361
  function qt(t) {
362
362
  return t.target;
363
363
  }
364
- function Vt(t) {
365
- var n = Yt, s = qt, a = Wt, c = Gt, x = null;
364
+ function Qt(t) {
365
+ var n = Yt, s = qt, a = Wt, c = Gt, k = null;
366
366
  function _() {
367
- var m, i = Qt.call(arguments), o = n.apply(this, i), f = s.apply(this, i);
368
- if (x || (x = m = mt()), t(x, +a.apply(this, (i[0] = o, i)), +c.apply(this, i), +a.apply(this, (i[0] = f, i)), +c.apply(this, i)), m) return x = null, m + "" || null;
367
+ var m, i = Vt.call(arguments), o = n.apply(this, i), f = s.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
369
  }
370
370
  return _.source = function(m) {
371
371
  return arguments.length ? (n = m, _) : n;
@@ -376,23 +376,23 @@ function Vt(t) {
376
376
  }, _.y = function(m) {
377
377
  return arguments.length ? (c = typeof m == "function" ? m : dt(+m), _) : c;
378
378
  }, _.context = function(m) {
379
- return arguments.length ? (x = m ?? null, _) : x;
379
+ return arguments.length ? (k = m ?? null, _) : k;
380
380
  }, _;
381
381
  }
382
382
  function Xt(t, n, s, a, c) {
383
383
  t.moveTo(n, s), t.bezierCurveTo(n = (n + a) / 2, s, n, c, a, c);
384
384
  }
385
- function Bt() {
386
- return Vt(Xt);
385
+ function Rt() {
386
+ return Qt(Xt);
387
387
  }
388
- function Jt(t) {
388
+ function Kt(t) {
389
389
  return [t.source.x1, t.y0];
390
390
  }
391
- function Rt(t) {
391
+ function Zt(t) {
392
392
  return [t.target.x0, t.y1];
393
393
  }
394
- function Kt() {
395
- return Bt().source(Jt).target(Rt);
394
+ function Bt() {
395
+ return Rt().source(Kt).target(Zt);
396
396
  }
397
397
  var at = function() {
398
398
  var t = /* @__PURE__ */ p(function(m, i, o, f) {
@@ -405,12 +405,12 @@ var at = function() {
405
405
  symbols_: { error: 2, start: 3, SANKEY: 4, NEWLINE: 5, csv: 6, opt_eof: 7, record: 8, csv_tail: 9, EOF: 10, "field[source]": 11, COMMA: 12, "field[target]": 13, "field[value]": 14, field: 15, escaped: 16, non_escaped: 17, DQUOTE: 18, ESCAPED_TEXT: 19, NON_ESCAPED_TEXT: 20, $accept: 0, $end: 1 },
406
406
  terminals_: { 2: "error", 4: "SANKEY", 5: "NEWLINE", 10: "EOF", 11: "field[source]", 12: "COMMA", 13: "field[target]", 14: "field[value]", 18: "DQUOTE", 19: "ESCAPED_TEXT", 20: "NON_ESCAPED_TEXT" },
407
407
  productions_: [0, [3, 4], [6, 2], [9, 2], [9, 0], [7, 1], [7, 0], [8, 5], [15, 1], [15, 1], [16, 3], [17, 1]],
408
- performAction: /* @__PURE__ */ p(function(m, i, o, f, g, y, b) {
408
+ performAction: /* @__PURE__ */ p(function(m, i, o, f, g, y, w) {
409
409
  var v = y.length - 1;
410
410
  switch (g) {
411
411
  case 7:
412
- const N = f.findOrCreateNode(y[v - 4].trim().replaceAll('""', '"')), A = f.findOrCreateNode(y[v - 2].trim().replaceAll('""', '"')), T = parseFloat(y[v].trim());
413
- f.addLink(N, A, T);
412
+ const O = f.findOrCreateNode(y[v - 4].trim().replaceAll('""', '"')), A = f.findOrCreateNode(y[v - 2].trim().replaceAll('""', '"')), T = parseFloat(y[v].trim());
413
+ f.addLink(O, A, T);
414
414
  break;
415
415
  case 8:
416
416
  case 9:
@@ -433,32 +433,32 @@ var at = function() {
433
433
  }
434
434
  }, "parseError"),
435
435
  parse: /* @__PURE__ */ p(function(m) {
436
- var i = this, o = [0], f = [], g = [null], y = [], b = this.table, v = "", N = 0, A = 0, T = 2, I = 1, P = y.slice.call(arguments, 1), S = Object.create(this.lexer), O = { yy: {} };
437
- for (var D in this.yy)
438
- Object.prototype.hasOwnProperty.call(this.yy, D) && (O.yy[D] = this.yy[D]);
439
- S.setInput(m, O.yy), O.yy.lexer = S, O.yy.parser = this, typeof S.yylloc > "u" && (S.yylloc = {});
436
+ var i = this, o = [0], f = [], g = [null], y = [], w = this.table, v = "", O = 0, A = 0, T = 2, D = 1, N = y.slice.call(arguments, 1), S = Object.create(this.lexer), P = { yy: {} };
437
+ for (var I in this.yy)
438
+ Object.prototype.hasOwnProperty.call(this.yy, I) && (P.yy[I] = this.yy[I]);
439
+ S.setInput(m, P.yy), P.yy.lexer = S, P.yy.parser = this, typeof S.yylloc > "u" && (S.yylloc = {});
440
440
  var C = S.yylloc;
441
441
  y.push(C);
442
442
  var d = S.options && S.options.ranges;
443
- typeof O.yy.parseError == "function" ? this.parseError = O.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
444
- function L(w) {
445
- o.length = o.length - 2 * w, g.length = g.length - w, y.length = y.length - w;
443
+ typeof P.yy.parseError == "function" ? this.parseError = P.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
444
+ function L(b) {
445
+ o.length = o.length - 2 * b, g.length = g.length - b, y.length = y.length - b;
446
446
  }
447
447
  p(L, "popStack");
448
448
  function U() {
449
- var w;
450
- return w = f.pop() || S.lex() || I, typeof w != "number" && (w instanceof Array && (f = w, w = f.pop()), w = i.symbols_[w] || w), w;
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
451
  }
452
452
  p(U, "lex");
453
453
  for (var E, $, M, W, e = {}, u, l, h, r; ; ) {
454
- if ($ = o[o.length - 1], this.defaultActions[$] ? M = this.defaultActions[$] : ((E === null || typeof E > "u") && (E = U()), M = b[$] && b[$][E]), typeof M > "u" || !M.length || !M[0]) {
455
- var k = "";
454
+ if ($ = o[o.length - 1], this.defaultActions[$] ? M = this.defaultActions[$] : ((E === null || typeof E > "u") && (E = U()), M = w[$] && w[$][E]), typeof M > "u" || !M.length || !M[0]) {
455
+ var x = "";
456
456
  r = [];
457
- for (u in b[$])
457
+ for (u in w[$])
458
458
  this.terminals_[u] && u > T && r.push("'" + this.terminals_[u] + "'");
459
- S.showPosition ? k = "Parse error on line " + (N + 1) + `:
459
+ S.showPosition ? x = "Parse error on line " + (O + 1) + `:
460
460
  ` + S.showPosition() + `
461
- Expecting ` + r.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : k = "Parse error on line " + (N + 1) + ": Unexpected " + (E == I ? "end of input" : "'" + (this.terminals_[E] || E) + "'"), this.parseError(k, {
461
+ Expecting ` + r.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : x = "Parse error on line " + (O + 1) + ": Unexpected " + (E == D ? "end of input" : "'" + (this.terminals_[E] || E) + "'"), this.parseError(x, {
462
462
  text: S.match,
463
463
  token: this.terminals_[E] || E,
464
464
  line: S.yylineno,
@@ -470,7 +470,7 @@ Expecting ` + r.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : k = "
470
470
  throw new Error("Parse Error: multiple actions possible at state: " + $ + ", token: " + E);
471
471
  switch (M[0]) {
472
472
  case 1:
473
- o.push(E), g.push(S.yytext), y.push(S.yylloc), o.push(M[1]), E = null, A = S.yyleng, v = S.yytext, N = S.yylineno, C = S.yylloc;
473
+ o.push(E), g.push(S.yytext), y.push(S.yylloc), o.push(M[1]), E = null, A = S.yyleng, v = S.yytext, O = S.yylineno, C = S.yylloc;
474
474
  break;
475
475
  case 2:
476
476
  if (l = this.productions_[M[1]][1], e.$ = g[g.length - l], e._$ = {
@@ -484,14 +484,14 @@ Expecting ` + r.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : k = "
484
484
  ]), W = this.performAction.apply(e, [
485
485
  v,
486
486
  A,
487
- N,
488
- O.yy,
487
+ O,
488
+ P.yy,
489
489
  M[1],
490
490
  g,
491
491
  y
492
- ].concat(P)), typeof W < "u")
492
+ ].concat(N)), typeof W < "u")
493
493
  return W;
494
- l && (o = o.slice(0, -1 * l * 2), g = g.slice(0, -1 * l), y = y.slice(0, -1 * l)), o.push(this.productions_[M[1]][0]), g.push(e.$), y.push(e._$), h = b[o[o.length - 2]][o[o.length - 1]], o.push(h);
494
+ l && (o = o.slice(0, -1 * l * 2), g = g.slice(0, -1 * l), y = y.slice(0, -1 * l)), o.push(this.productions_[M[1]][0]), g.push(e.$), y.push(e._$), h = w[o[o.length - 2]][o[o.length - 1]], o.push(h);
495
495
  break;
496
496
  case 3:
497
497
  return !0;
@@ -499,7 +499,7 @@ Expecting ` + r.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : k = "
499
499
  }
500
500
  return !0;
501
501
  }, "parse")
502
- }, x = /* @__PURE__ */ function() {
502
+ }, k = /* @__PURE__ */ function() {
503
503
  var m = {
504
504
  EOF: 1,
505
505
  parseError: /* @__PURE__ */ p(function(i, o) {
@@ -605,8 +605,8 @@ Expecting ` + r.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : k = "
605
605
  }, this.yytext += i[0], this.match += i[0], this.matches = i, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(i[0].length), this.matched += i[0], f = this.performAction.call(this, this.yy, this, o, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), f)
606
606
  return f;
607
607
  if (this._backtrack) {
608
- for (var b in y)
609
- this[b] = y[b];
608
+ for (var w in y)
609
+ this[w] = y[w];
610
610
  return !1;
611
611
  }
612
612
  return !1;
@@ -618,10 +618,10 @@ Expecting ` + r.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : k = "
618
618
  this._input || (this.done = !0);
619
619
  var i, o, f, g;
620
620
  this._more || (this.yytext = "", this.match = "");
621
- for (var y = this._currentRules(), b = 0; b < y.length; b++)
622
- if (f = this._input.match(this.rules[y[b]]), f && (!o || f[0].length > o[0].length)) {
623
- if (o = f, g = b, this.options.backtrack_lexer) {
624
- if (i = this.test_match(f, y[b]), i !== !1)
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, g = w, this.options.backtrack_lexer) {
624
+ if (i = this.test_match(f, y[w]), i !== !1)
625
625
  return i;
626
626
  if (this._backtrack) {
627
627
  o = !1;
@@ -696,38 +696,38 @@ Expecting ` + r.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : k = "
696
696
  };
697
697
  return m;
698
698
  }();
699
- c.lexer = x;
699
+ c.lexer = k;
700
700
  function _() {
701
701
  this.yy = {};
702
702
  }
703
703
  return p(_, "Parser"), _.prototype = c, c.Parser = _, new _();
704
704
  }();
705
705
  at.parser = at;
706
- var J = at, K = [], Z = [], R = /* @__PURE__ */ new Map(), Zt = /* @__PURE__ */ p(() => {
707
- K = [], Z = [], R = /* @__PURE__ */ new Map(), At();
708
- }, "clear"), nt, Ht = (nt = class {
706
+ var K = at, B = [], H = [], Z = /* @__PURE__ */ new Map(), Ht = /* @__PURE__ */ p(() => {
707
+ B = [], H = [], Z = /* @__PURE__ */ new Map(), At();
708
+ }, "clear"), nt, Jt = (nt = class {
709
709
  constructor(t, n, s = 0) {
710
710
  this.source = t, this.target = n, this.value = s;
711
711
  }
712
712
  }, p(nt, "SankeyLink"), nt), te = /* @__PURE__ */ p((t, n, s) => {
713
- K.push(new Ht(t, n, s));
713
+ B.push(new Jt(t, n, s));
714
714
  }, "addLink"), it, ee = (it = class {
715
715
  constructor(t) {
716
716
  this.ID = t;
717
717
  }
718
718
  }, p(it, "SankeyNode"), it), ne = /* @__PURE__ */ p((t) => {
719
719
  t = Tt.sanitizeText(t, lt());
720
- let n = R.get(t);
721
- return n === void 0 && (n = new ee(t), R.set(t, n), Z.push(n)), n;
722
- }, "findOrCreateNode"), ie = /* @__PURE__ */ p(() => Z, "getNodes"), se = /* @__PURE__ */ p(() => K, "getLinks"), re = /* @__PURE__ */ p(() => ({
723
- nodes: Z.map((t) => ({ id: t.ID })),
724
- links: K.map((t) => ({
720
+ let n = Z.get(t);
721
+ return n === void 0 && (n = new ee(t), Z.set(t, n), H.push(n)), n;
722
+ }, "findOrCreateNode"), ie = /* @__PURE__ */ p(() => H, "getNodes"), se = /* @__PURE__ */ p(() => B, "getLinks"), re = /* @__PURE__ */ p(() => ({
723
+ nodes: H.map((t) => ({ id: t.ID })),
724
+ links: B.map((t) => ({
725
725
  source: t.source.ID,
726
726
  target: t.target.ID,
727
727
  value: t.value
728
728
  }))
729
729
  }), "getGraph"), oe = {
730
- nodesMap: R,
730
+ nodesMap: Z,
731
731
  getConfig: /* @__PURE__ */ p(() => lt().sankey, "getConfig"),
732
732
  getNodes: ie,
733
733
  getLinks: se,
@@ -735,12 +735,12 @@ var J = at, K = [], Z = [], R = /* @__PURE__ */ new Map(), Zt = /* @__PURE__ */
735
735
  addLink: te,
736
736
  findOrCreateNode: ne,
737
737
  getAccTitle: St,
738
- setAccTitle: bt,
739
- getAccDescription: wt,
738
+ setAccTitle: wt,
739
+ getAccDescription: bt,
740
740
  setAccDescription: vt,
741
- getDiagramTitle: xt,
742
- setDiagramTitle: kt,
743
- clear: Zt
741
+ getDiagramTitle: kt,
742
+ setDiagramTitle: xt,
743
+ clear: Ht
744
744
  }, F, gt = (F = class {
745
745
  static next(t) {
746
746
  return new F(t + ++F.count);
@@ -753,55 +753,55 @@ var J = at, K = [], Z = [], R = /* @__PURE__ */ new Map(), Zt = /* @__PURE__ */
753
753
  }
754
754
  }, p(F, "Uid"), F.count = 0, F), ae = {
755
755
  left: Ct,
756
- right: It,
757
- center: Dt,
756
+ right: Dt,
757
+ center: It,
758
758
  justify: _t
759
759
  }, le = /* @__PURE__ */ p(function(t, n, s, a) {
760
- const { securityLevel: c, sankey: x } = lt(), _ = Et.sankey;
760
+ const { securityLevel: c, sankey: k } = lt(), _ = Et.sankey;
761
761
  let m;
762
- c === "sandbox" && (m = V("#i" + n));
763
- const i = c === "sandbox" ? V(m.nodes()[0].contentDocument.body) : V("body"), o = c === "sandbox" ? i.select(`[id="${n}"]`) : V(`[id="${n}"]`), f = (x == null ? void 0 : x.width) ?? _.width, g = (x == null ? void 0 : x.height) ?? _.width, y = (x == null ? void 0 : x.useMaxWidth) ?? _.useMaxWidth, b = (x == null ? void 0 : x.nodeAlignment) ?? _.nodeAlignment, v = (x == null ? void 0 : x.prefix) ?? _.prefix, N = (x == null ? void 0 : x.suffix) ?? _.suffix, A = (x == null ? void 0 : x.showValues) ?? _.showValues, T = a.db.getGraph(), I = ae[b];
764
- Ft().nodeId((d) => d.id).nodeWidth(10).nodePadding(10 + (A ? 15 : 0)).nodeAlign(I).extent([
762
+ c === "sandbox" && (m = Q("#i" + n));
763
+ 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) ?? _.width, g = (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, O = (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((d) => d.id).nodeWidth(10).nodePadding(10 + (A ? 15 : 0)).nodeAlign(D).extent([
765
765
  [0, 0],
766
766
  [f, g]
767
767
  ])(T);
768
- const P = Lt(Nt);
768
+ const N = Lt(Ot);
769
769
  o.append("g").attr("class", "nodes").selectAll(".node").data(T.nodes).join("g").attr("class", "node").attr("id", (d) => (d.uid = gt.next("node-")).id).attr("transform", function(d) {
770
770
  return "translate(" + d.x0 + "," + d.y0 + ")";
771
- }).attr("x", (d) => d.x0).attr("y", (d) => d.y0).append("rect").attr("height", (d) => d.y1 - d.y0).attr("width", (d) => d.x1 - d.x0).attr("fill", (d) => P(d.id));
771
+ }).attr("x", (d) => d.x0).attr("y", (d) => d.y0).append("rect").attr("height", (d) => d.y1 - d.y0).attr("width", (d) => d.x1 - d.x0).attr("fill", (d) => N(d.id));
772
772
  const S = /* @__PURE__ */ p(({ id: d, value: L }) => A ? `${d}
773
- ${v}${Math.round(L * 100) / 100}${N}` : d, "getText");
773
+ ${v}${Math.round(L * 100) / 100}${O}` : d, "getText");
774
774
  o.append("g").attr("class", "node-labels").attr("font-size", 14).selectAll("text").data(T.nodes).join("text").attr("x", (d) => d.x0 < f / 2 ? d.x1 + 6 : d.x0 - 6).attr("y", (d) => (d.y1 + d.y0) / 2).attr("dy", `${A ? "0" : "0.35"}em`).attr("text-anchor", (d) => d.x0 < f / 2 ? "start" : "end").text(S);
775
- const O = 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"), D = (x == null ? void 0 : x.linkColor) ?? "gradient";
776
- if (D === "gradient") {
777
- const d = O.append("linearGradient").attr("id", (L) => (L.uid = gt.next("linearGradient-")).id).attr("gradientUnits", "userSpaceOnUse").attr("x1", (L) => L.source.x1).attr("x2", (L) => L.target.x0);
778
- d.append("stop").attr("offset", "0%").attr("stop-color", (L) => P(L.source.id)), d.append("stop").attr("offset", "100%").attr("stop-color", (L) => P(L.target.id));
775
+ const P = 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 d = P.append("linearGradient").attr("id", (L) => (L.uid = gt.next("linearGradient-")).id).attr("gradientUnits", "userSpaceOnUse").attr("x1", (L) => L.source.x1).attr("x2", (L) => L.target.x0);
778
+ d.append("stop").attr("offset", "0%").attr("stop-color", (L) => N(L.source.id)), d.append("stop").attr("offset", "100%").attr("stop-color", (L) => N(L.target.id));
779
779
  }
780
780
  let C;
781
- switch (D) {
781
+ switch (I) {
782
782
  case "gradient":
783
783
  C = /* @__PURE__ */ p((d) => d.uid, "coloring");
784
784
  break;
785
785
  case "source":
786
- C = /* @__PURE__ */ p((d) => P(d.source.id), "coloring");
786
+ C = /* @__PURE__ */ p((d) => N(d.source.id), "coloring");
787
787
  break;
788
788
  case "target":
789
- C = /* @__PURE__ */ p((d) => P(d.target.id), "coloring");
789
+ C = /* @__PURE__ */ p((d) => N(d.target.id), "coloring");
790
790
  break;
791
791
  default:
792
- C = D;
792
+ C = I;
793
793
  }
794
- O.append("path").attr("d", Kt()).attr("stroke", C).attr("stroke-width", (d) => Math.max(1, d.width)), Mt(void 0, o, 0, y);
794
+ P.append("path").attr("d", Bt()).attr("stroke", C).attr("stroke-width", (d) => Math.max(1, d.width)), Mt(void 0, o, 0, y);
795
795
  }, "draw"), ce = {
796
796
  draw: le
797
797
  }, he = /* @__PURE__ */ p((t) => t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g, "").replaceAll(/([\n\r])+/g, `
798
798
  `).trim(), "prepareTextForParsing"), ue = /* @__PURE__ */ p((t) => `.label {
799
799
  font-family: ${t.fontFamily};
800
- }`, "getStyles"), fe = ue, ye = J.parse.bind(J);
801
- J.parse = (t) => ye(he(t));
800
+ }`, "getStyles"), fe = ue, ye = K.parse.bind(K);
801
+ K.parse = (t) => ye(he(t));
802
802
  var ge = {
803
803
  styles: fe,
804
- parser: J,
804
+ parser: K,
805
805
  db: oe,
806
806
  renderer: ce
807
807
  };
@@ -1,6 +1,6 @@
1
- import { d as Ee, p as Ut, y as lt, x as we, m as Gt, h as Kt } from "./chunk-TZMSLE5B-G2jJHqli-B_BRSOS0.js";
2
- import { Q as y, H as Ie, k as at, w as At, s as X, S as re, f as ke, g as Le, l as L, B as ee, e as Pe, v as ve, h as _e, p as Ae, E as Ne, M as Me, x as Oe, F as Se, Y as Nt, O as V, aw as kt, ax as W, an as se, ay as De, az as $e, aA as ie, L as qt } from "./index-DlxA4QQ9.js";
3
- import { e as Re } from "./chunk-QZHKN3VN-DVJOrqBZ-BQORk0pj.js";
1
+ import { d as Ee, p as Ut, y as lt, x as we, m as Gt, h as Kt } from "./chunk-TZMSLE5B-BtljMjlg-DP4v1MME.js";
2
+ import { M as y, B as Ie, C as at, d as At, a as X, k as re, i as ke, F as Le, m as L, h as ee, e as Pe, s as ve, g as _e, f as Ae, t as Ne, L as Me, u as Oe, N as Se, j as Nt, r as V, aw as W, ax as kt, an as se, ay as De, az as $e, aA as ie, P as qt } from "./index-DU3Jqd59.js";
3
+ import { e as Re } from "./chunk-QZHKN3VN-Bcidzu63-ukwvi4Mt.js";
4
4
  typeof window < "u" && (window.global = window);
5
5
  var zt = function() {
6
6
  var e = /* @__PURE__ */ y(function(ct, I, k, E) {