@dpuse/dpuse-tool-d3-visualiser 0.0.49 → 0.0.52

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 (48) hide show
  1. package/README.md +46 -47
  2. package/dist/{axis-DjmZ9QYe.js → axis-EpX3kBPs.js} +2 -8
  3. package/dist/{axis-DjmZ9QYe.js.map → axis-EpX3kBPs.js.map} +1 -1
  4. package/dist/{band-BFcwtSdG.js → band-p1VbTxZM.js} +2 -2
  5. package/dist/{band-BFcwtSdG.js.map → band-p1VbTxZM.js.map} +1 -1
  6. package/dist/{billboardJs-oaee80Fh.js → billboardJs-PR7IsnhE.js} +1970 -1666
  7. package/dist/billboardJs-PR7IsnhE.js.map +1 -0
  8. package/dist/{chordDiagram-CTDXv74T.js → chordDiagram-B1_nfC1m.js} +1031 -1023
  9. package/dist/chordDiagram-B1_nfC1m.js.map +1 -0
  10. package/dist/{d3BarChart-BQCPo1ub.js → d3BarChart-BC05DvRv.js} +7 -7
  11. package/dist/{d3BarChart-BQCPo1ub.js.map → d3BarChart-BC05DvRv.js.map} +1 -1
  12. package/dist/dpuse-tool-d3-visualiser.css +1 -1
  13. package/dist/dpuse-tool-d3-visualiser.es.js +7 -7
  14. package/dist/{drag-DfL4uwqz.js → drag-Ieen6R0z.js} +4 -8
  15. package/dist/{drag-DfL4uwqz.js.map → drag-Ieen6R0z.js.map} +1 -1
  16. package/dist/{erdDiagram-C_Hobpls.js → erdDiagram-CtPeCq0f.js} +6 -12
  17. package/dist/{erdDiagram-C_Hobpls.js.map → erdDiagram-CtPeCq0f.js.map} +1 -1
  18. package/dist/{linear-C-jur735.js → linear-q6e-7JBm.js} +113 -167
  19. package/dist/linear-q6e-7JBm.js.map +1 -0
  20. package/dist/{networkDiagram-CcQxxJMB.js → networkDiagram-DZwLfY_R.js} +3 -3
  21. package/dist/{networkDiagram-CcQxxJMB.js.map → networkDiagram-DZwLfY_R.js.map} +1 -1
  22. package/dist/{observablePlot-BE2I-5e2.js → observablePlot-CGF3S2mL.js} +1270 -1270
  23. package/dist/{observablePlot-BE2I-5e2.js.map → observablePlot-CGF3S2mL.js.map} +1 -1
  24. package/dist/ordinal-BtWaYSDN.js +81 -0
  25. package/dist/ordinal-BtWaYSDN.js.map +1 -0
  26. package/dist/pow-Bp6eSqVs.js +76 -0
  27. package/dist/{pow-CxQV96gC.js.map → pow-Bp6eSqVs.js.map} +1 -1
  28. package/dist/{src-WDualLFV.js → src-Clugeype.js} +1 -1
  29. package/dist/{src-WDualLFV.js.map → src-Clugeype.js.map} +1 -1
  30. package/dist/{src-yL3ZdoR1.js → src-kLpf-6r0.js} +1 -1
  31. package/dist/{src-yL3ZdoR1.js.map → src-kLpf-6r0.js.map} +1 -1
  32. package/dist/{string-CnCj7THX.js → string-BOhFwaZD.js} +1 -2
  33. package/dist/{string-CnCj7THX.js.map → string-BOhFwaZD.js.map} +1 -1
  34. package/dist/tanStackCharts-D-ip-ZV-.js +4103 -0
  35. package/dist/tanStackCharts-D-ip-ZV-.js.map +1 -0
  36. package/dist/types/eslint.config.d.ts +1 -1
  37. package/dist/{src-Dl4_vNYa.js → utcTime-DLfrQXna.js} +432 -432
  38. package/dist/utcTime-DLfrQXna.js.map +1 -0
  39. package/package.json +32 -22
  40. package/dist/billboardJs-oaee80Fh.js.map +0 -1
  41. package/dist/chordDiagram-CTDXv74T.js.map +0 -1
  42. package/dist/linear-C-jur735.js.map +0 -1
  43. package/dist/ordinal-CDNZetSD.js +0 -28
  44. package/dist/ordinal-CDNZetSD.js.map +0 -1
  45. package/dist/pow-CxQV96gC.js +0 -84
  46. package/dist/src-Dl4_vNYa.js.map +0 -1
  47. package/dist/tanStackCharts-CqP0qIAr.js +0 -3492
  48. package/dist/tanStackCharts-CqP0qIAr.js.map +0 -1
@@ -1,27 +1,28 @@
1
- import { c as e, i as t, r as n, s as r, t as i } from "./pow-CxQV96gC.js";
2
- import { d as a } from "./linear-C-jur735.js";
1
+ import { i as e, r as t, s as n, t as r } from "./pow-Bp6eSqVs.js";
2
+ import { p as i } from "./linear-q6e-7JBm.js";
3
+ import { n as a } from "./ordinal-BtWaYSDN.js";
3
4
  import { t as o } from "./max-CPVNm4tn.js";
4
- import { n as s } from "./src-yL3ZdoR1.js";
5
+ import { n as s } from "./src-kLpf-6r0.js";
5
6
  import { t as c } from "./select-BIuoFcZG.js";
6
- import { d as l, p as u } from "./string-CnCj7THX.js";
7
+ import { d as l, p as u } from "./string-BOhFwaZD.js";
7
8
  import { r as d, t as f } from "./array-Cv4-2llb.js";
8
9
  import { a as p, c as m, d as h, f as g, i as _, l as v, n as y, p as b, r as x, s as S, t as C, u as w } from "./math-C5EhTgJw.js";
9
10
  import { n as T } from "./path-BoJ8LMXE.js";
10
11
  import { n as E, r as D, t as O } from "./point-GXxVI808.js";
11
- import { _ as ee, a as te, c as ne, d as re, f as ie, g as ae, h as oe, i as se, l as k, m as A, n as j, o as M, p as ce, r as le, s as ue, t as de, u as fe, v as N } from "./step-C2rRFtYO.js";
12
- import { n as pe } from "./hierarchy-CDFAetye.js";
13
- import { r as me, t as he } from "./palette-BuTjISrV.js";
12
+ import { _ as k, a as A, c as j, d as ee, f as te, g as ne, h as re, i as ie, l as M, m as N, n as P, o as F, p as ae, r as oe, s as se, t as ce, u as le, v as ue } from "./step-C2rRFtYO.js";
13
+ import { n as de } from "./hierarchy-CDFAetye.js";
14
+ import { r as fe, t as pe } from "./palette-BuTjISrV.js";
14
15
  //#region node_modules/@emotion/sheet/dist/emotion-sheet.esm.js
15
- function ge(e) {
16
+ function me(e) {
16
17
  if (e.sheet) return e.sheet;
17
18
  /* istanbul ignore next */
18
19
  for (var t = 0; t < document.styleSheets.length; t++) if (document.styleSheets[t].ownerNode === e) return document.styleSheets[t];
19
20
  }
20
- function P(e) {
21
+ function I(e) {
21
22
  var t = document.createElement("style");
22
23
  return t.setAttribute("data-emotion", e.key), e.nonce !== void 0 && t.setAttribute("nonce", e.nonce), t.appendChild(document.createTextNode("")), t.setAttribute("data-s", ""), t;
23
24
  }
24
- var _e = /*#__PURE__*/ function() {
25
+ var he = /*#__PURE__*/ function() {
25
26
  function e(e) {
26
27
  var t = this;
27
28
  this._insertTag = function(e) {
@@ -33,10 +34,10 @@ var _e = /*#__PURE__*/ function() {
33
34
  return t.hydrate = function(e) {
34
35
  e.forEach(this._insertTag);
35
36
  }, t.insert = function(e) {
36
- this.ctr % (this.isSpeedy ? 65e3 : 1) == 0 && this._insertTag(P(this));
37
+ this.ctr % (this.isSpeedy ? 65e3 : 1) == 0 && this._insertTag(I(this));
37
38
  var t = this.tags[this.tags.length - 1];
38
39
  if (this.isSpeedy) {
39
- var n = ge(t);
40
+ var n = me(t);
40
41
  try {
41
42
  n.insertRule(e, n.cssRules.length);
42
43
  } catch {}
@@ -47,44 +48,44 @@ var _e = /*#__PURE__*/ function() {
47
48
  return e.parentNode?.removeChild(e);
48
49
  }), this.tags = [], this.ctr = 0;
49
50
  }, e;
50
- }(), F = "-ms-", ve = "-moz-", I = "-webkit-", ye = "comm", be = "rule", xe = "decl", Se = "@import", Ce = "@keyframes", we = "@layer", Te = Math.abs, Ee = String.fromCharCode, De = Object.assign;
51
- function Oe(e, t) {
52
- return R(e, 0) ^ 45 ? (((t << 2 ^ R(e, 0)) << 2 ^ R(e, 1)) << 2 ^ R(e, 2)) << 2 ^ R(e, 3) : 0;
51
+ }(), L = "-ms-", ge = "-moz-", R = "-webkit-", _e = "comm", ve = "rule", ye = "decl", be = "@import", xe = "@keyframes", Se = "@layer", Ce = Math.abs, we = String.fromCharCode, Te = Object.assign;
52
+ function Ee(e, t) {
53
+ return B(e, 0) ^ 45 ? (((t << 2 ^ B(e, 0)) << 2 ^ B(e, 1)) << 2 ^ B(e, 2)) << 2 ^ B(e, 3) : 0;
53
54
  }
54
- function ke(e) {
55
+ function De(e) {
55
56
  return e.trim();
56
57
  }
57
- function Ae(e, t) {
58
+ function Oe(e, t) {
58
59
  return (e = t.exec(e)) ? e[0] : e;
59
60
  }
60
- function L(e, t, n) {
61
+ function z(e, t, n) {
61
62
  return e.replace(t, n);
62
63
  }
63
- function je(e, t) {
64
+ function ke(e, t) {
64
65
  return e.indexOf(t);
65
66
  }
66
- function R(e, t) {
67
+ function B(e, t) {
67
68
  return e.charCodeAt(t) | 0;
68
69
  }
69
- function Me(e, t, n) {
70
+ function Ae(e, t, n) {
70
71
  return e.slice(t, n);
71
72
  }
72
- function z(e) {
73
+ function V(e) {
73
74
  return e.length;
74
75
  }
75
- function Ne(e) {
76
+ function je(e) {
76
77
  return e.length;
77
78
  }
78
- function Pe(e, t) {
79
+ function Me(e, t) {
79
80
  return t.push(e), e;
80
81
  }
81
- function Fe(e, t) {
82
+ function Ne(e, t) {
82
83
  return e.map(t).join("");
83
84
  }
84
85
  //#endregion
85
86
  //#region node_modules/stylis/src/Tokenizer.js
86
- var Ie = 1, Le = 1, Re = 0, B = 0, V = 0, ze = "";
87
- function Be(e, t, n, r, i, a, o) {
87
+ var Pe = 1, Fe = 1, Ie = 0, H = 0, U = 0, Le = "";
88
+ function Re(e, t, n, r, i, a, o) {
88
89
  return {
89
90
  value: e,
90
91
  root: t,
@@ -92,34 +93,34 @@ function Be(e, t, n, r, i, a, o) {
92
93
  type: r,
93
94
  props: i,
94
95
  children: a,
95
- line: Ie,
96
- column: Le,
96
+ line: Pe,
97
+ column: Fe,
97
98
  length: o,
98
99
  return: ""
99
100
  };
100
101
  }
101
- function Ve(e, t) {
102
- return De(Be("", null, null, "", null, null, 0), e, { length: -e.length }, t);
102
+ function ze(e, t) {
103
+ return Te(Re("", null, null, "", null, null, 0), e, { length: -e.length }, t);
103
104
  }
104
- function He() {
105
- return V;
105
+ function Be() {
106
+ return U;
106
107
  }
107
- function Ue() {
108
- return V = B > 0 ? R(ze, --B) : 0, Le--, V === 10 && (Le = 1, Ie--), V;
108
+ function Ve() {
109
+ return U = H > 0 ? B(Le, --H) : 0, Fe--, U === 10 && (Fe = 1, Pe--), U;
109
110
  }
110
- function H() {
111
- return V = B < Re ? R(ze, B++) : 0, Le++, V === 10 && (Le = 1, Ie++), V;
111
+ function W() {
112
+ return U = H < Ie ? B(Le, H++) : 0, Fe++, U === 10 && (Fe = 1, Pe++), U;
112
113
  }
113
- function U() {
114
- return R(ze, B);
114
+ function G() {
115
+ return B(Le, H);
115
116
  }
116
- function We() {
117
- return B;
117
+ function He() {
118
+ return H;
118
119
  }
119
- function Ge(e, t) {
120
- return Me(ze, e, t);
120
+ function Ue(e, t) {
121
+ return Ae(Le, e, t);
121
122
  }
122
- function Ke(e) {
123
+ function We(e) {
123
124
  switch (e) {
124
125
  case 0:
125
126
  case 9:
@@ -146,82 +147,80 @@ function Ke(e) {
146
147
  }
147
148
  return 0;
148
149
  }
150
+ function Ge(e) {
151
+ return Pe = Fe = 1, Ie = V(Le = e), H = 0, [];
152
+ }
153
+ function Ke(e) {
154
+ return Le = "", e;
155
+ }
149
156
  function qe(e) {
150
- return Ie = Le = 1, Re = z(ze = e), B = 0, [];
157
+ return De(Ue(H - 1, Xe(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
151
158
  }
152
159
  function Je(e) {
153
- return ze = "", e;
160
+ for (; (U = G()) && U < 33;) W();
161
+ return We(e) > 2 || We(U) > 3 ? "" : " ";
154
162
  }
155
- function Ye(e) {
156
- return ke(Ge(B - 1, Qe(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
163
+ function Ye(e, t) {
164
+ for (; --t && W() && !(U < 48 || U > 102 || U > 57 && U < 65 || U > 70 && U < 97););
165
+ return Ue(e, He() + (t < 6 && G() == 32 && W() == 32));
157
166
  }
158
167
  function Xe(e) {
159
- for (; (V = U()) && V < 33;) H();
160
- return Ke(e) > 2 || Ke(V) > 3 ? "" : " ";
161
- }
162
- function Ze(e, t) {
163
- for (; --t && H() && !(V < 48 || V > 102 || V > 57 && V < 65 || V > 70 && V < 97););
164
- return Ge(e, We() + (t < 6 && U() == 32 && H() == 32));
165
- }
166
- function Qe(e) {
167
- for (; H();) switch (V) {
168
- case e: return B;
168
+ for (; W();) switch (U) {
169
+ case e: return H;
169
170
  case 34:
170
171
  case 39:
171
- e !== 34 && e !== 39 && Qe(V);
172
+ e !== 34 && e !== 39 && Xe(U);
172
173
  break;
173
174
  case 40:
174
- e === 41 && Qe(e);
175
- break;
176
- case 92:
177
- H();
175
+ e === 41 && Xe(e);
178
176
  break;
177
+ case 92: W();
179
178
  }
180
- return B;
179
+ return H;
181
180
  }
182
- function $e(e, t) {
183
- for (; H() && e + V !== 57 && (e + V !== 84 || U() !== 47););
184
- return "/*" + Ge(t, B - 1) + "*" + Ee(e === 47 ? e : H());
181
+ function Ze(e, t) {
182
+ for (; W() && e + U !== 57 && (e + U !== 84 || G() !== 47););
183
+ return "/*" + Ue(t, H - 1) + "*" + we(e === 47 ? e : W());
185
184
  }
186
- function et(e) {
187
- for (; !Ke(U());) H();
188
- return Ge(e, B);
185
+ function Qe(e) {
186
+ for (; !We(G());) W();
187
+ return Ue(e, H);
189
188
  }
190
189
  //#endregion
191
190
  //#region node_modules/stylis/src/Parser.js
192
- function tt(e) {
193
- return Je(nt("", null, null, null, [""], e = qe(e), 0, [0], e));
191
+ function $e(e) {
192
+ return Ke(et("", null, null, null, [""], e = Ge(e), 0, [0], e));
194
193
  }
195
- function nt(e, t, n, r, i, a, o, s, c) {
196
- for (var l = 0, u = 0, d = o, f = 0, p = 0, m = 0, h = 1, g = 1, _ = 1, v = 0, y = "", b = i, x = a, S = r, C = y; g;) switch (m = v, v = H()) {
197
- case 40: if (m != 108 && R(C, d - 1) == 58) {
198
- je(C += L(Ye(v), "&", "&\f"), "&\f") != -1 && (_ = -1);
194
+ function et(e, t, n, r, i, a, o, s, c) {
195
+ for (var l = 0, u = 0, d = o, f = 0, p = 0, m = 0, h = 1, g = 1, _ = 1, v = 0, y = "", b = i, x = a, S = r, C = y; g;) switch (m = v, v = W()) {
196
+ case 40: if (m != 108 && B(C, d - 1) == 58) {
197
+ ke(C += z(qe(v), "&", "&\f"), "&\f") != -1 && (_ = -1);
199
198
  break;
200
199
  }
201
200
  case 34:
202
201
  case 39:
203
202
  case 91:
204
- C += Ye(v);
203
+ C += qe(v);
205
204
  break;
206
205
  case 9:
207
206
  case 10:
208
207
  case 13:
209
208
  case 32:
210
- C += Xe(m);
209
+ C += Je(m);
211
210
  break;
212
211
  case 92:
213
- C += Ze(We() - 1, 7);
212
+ C += Ye(He() - 1, 7);
214
213
  continue;
215
214
  case 47:
216
- switch (U()) {
215
+ switch (G()) {
217
216
  case 42:
218
217
  case 47:
219
- Pe(it($e(H(), We()), t, n), c);
218
+ Me(nt(Ze(W(), He()), t, n), c);
220
219
  break;
221
220
  default: C += "/";
222
221
  }
223
222
  break;
224
- case 123 * h: s[l++] = z(C) * _;
223
+ case 123 * h: s[l++] = V(C) * _;
225
224
  case 125 * h:
226
225
  case 59:
227
226
  case 0:
@@ -229,89 +228,89 @@ function nt(e, t, n, r, i, a, o, s, c) {
229
228
  case 0:
230
229
  case 125: g = 0;
231
230
  case 59 + u:
232
- _ == -1 && (C = L(C, /\f/g, "")), p > 0 && z(C) - d && Pe(p > 32 ? at(C + ";", r, n, d - 1) : at(L(C, " ", "") + ";", r, n, d - 2), c);
231
+ _ == -1 && (C = z(C, /\f/g, "")), p > 0 && V(C) - d && Me(p > 32 ? rt(C + ";", r, n, d - 1) : rt(z(C, " ", "") + ";", r, n, d - 2), c);
233
232
  break;
234
233
  case 59: C += ";";
235
- default: if (Pe(S = rt(C, t, n, l, u, i, s, y, b = [], x = [], d), a), v === 123) {
236
- if (u === 0) nt(C, t, S, S, b, a, d, s, x);
237
- else switch (f === 99 && R(C, 3) === 110 ? 100 : f) {
234
+ default: if (Me(S = tt(C, t, n, l, u, i, s, y, b = [], x = [], d), a), v === 123) {
235
+ if (u === 0) et(C, t, S, S, b, a, d, s, x);
236
+ else switch (f === 99 && B(C, 3) === 110 ? 100 : f) {
238
237
  case 100:
239
238
  case 108:
240
239
  case 109:
241
240
  case 115:
242
- nt(e, S, S, r && Pe(rt(e, S, S, 0, 0, i, s, y, i, b = [], d), x), i, x, d, s, r ? b : x);
241
+ et(e, S, S, r && Me(tt(e, S, S, 0, 0, i, s, y, i, b = [], d), x), i, x, d, s, r ? b : x);
243
242
  break;
244
- default: nt(C, S, S, S, [""], x, 0, s, x);
243
+ default: et(C, S, S, S, [""], x, 0, s, x);
245
244
  }
246
245
  }
247
246
  }
248
247
  l = u = p = 0, h = _ = 1, y = C = "", d = o;
249
248
  break;
250
- case 58: d = 1 + z(C), p = m;
249
+ case 58: d = 1 + V(C), p = m;
251
250
  default:
252
251
  if (h < 1) {
253
252
  if (v == 123) --h;
254
- else if (v == 125 && h++ == 0 && Ue() == 125) continue;
253
+ else if (v == 125 && h++ == 0 && Ve() == 125) continue;
255
254
  }
256
- switch (C += Ee(v), v * h) {
255
+ switch (C += we(v), v * h) {
257
256
  case 38:
258
257
  _ = u > 0 ? 1 : (C += "\f", -1);
259
258
  break;
260
259
  case 44:
261
- s[l++] = (z(C) - 1) * _, _ = 1;
260
+ s[l++] = (V(C) - 1) * _, _ = 1;
262
261
  break;
263
262
  case 64:
264
- U() === 45 && (C += Ye(H())), f = U(), u = d = z(y = C += et(We())), v++;
263
+ G() === 45 && (C += qe(W())), f = G(), u = d = V(y = C += Qe(He())), v++;
265
264
  break;
266
- case 45: m === 45 && z(C) == 2 && (h = 0);
265
+ case 45: m === 45 && V(C) == 2 && (h = 0);
267
266
  }
268
267
  }
269
268
  return a;
270
269
  }
271
- function rt(e, t, n, r, i, a, o, s, c, l, u) {
272
- for (var d = i - 1, f = i === 0 ? a : [""], p = Ne(f), m = 0, h = 0, g = 0; m < r; ++m) for (var _ = 0, v = Me(e, d + 1, d = Te(h = o[m])), y = e; _ < p; ++_) (y = ke(h > 0 ? f[_] + " " + v : L(v, /&\f/g, f[_]))) && (c[g++] = y);
273
- return Be(e, t, n, i === 0 ? be : s, c, l, u);
270
+ function tt(e, t, n, r, i, a, o, s, c, l, u) {
271
+ for (var d = i - 1, f = i === 0 ? a : [""], p = je(f), m = 0, h = 0, g = 0; m < r; ++m) for (var _ = 0, v = Ae(e, d + 1, d = Ce(h = o[m])), y = e; _ < p; ++_) (y = De(h > 0 ? f[_] + " " + v : z(v, /&\f/g, f[_]))) && (c[g++] = y);
272
+ return Re(e, t, n, i === 0 ? ve : s, c, l, u);
274
273
  }
275
- function it(e, t, n) {
276
- return Be(e, t, n, ye, Ee(He()), Me(e, 2, -2), 0);
274
+ function nt(e, t, n) {
275
+ return Re(e, t, n, _e, we(Be()), Ae(e, 2, -2), 0);
277
276
  }
278
- function at(e, t, n, r) {
279
- return Be(e, t, n, xe, Me(e, 0, r), Me(e, r + 1, -1), r);
277
+ function rt(e, t, n, r) {
278
+ return Re(e, t, n, ye, Ae(e, 0, r), Ae(e, r + 1, -1), r);
280
279
  }
281
280
  //#endregion
282
281
  //#region node_modules/stylis/src/Serializer.js
283
- function ot(e, t) {
284
- for (var n = "", r = Ne(e), i = 0; i < r; i++) n += t(e[i], i, e, t) || "";
282
+ function it(e, t) {
283
+ for (var n = "", r = je(e), i = 0; i < r; i++) n += t(e[i], i, e, t) || "";
285
284
  return n;
286
285
  }
287
- function st(e, t, n, r) {
286
+ function at(e, t, n, r) {
288
287
  switch (e.type) {
289
- case we: if (e.children.length) break;
290
- case Se:
291
- case xe: return e.return = e.return || e.value;
292
- case ye: return "";
293
- case Ce: return e.return = e.value + "{" + ot(e.children, r) + "}";
294
- case be: e.value = e.props.join(",");
288
+ case Se: if (e.children.length) break;
289
+ case be:
290
+ case ye: return e.return = e.return || e.value;
291
+ case _e: return "";
292
+ case xe: return e.return = e.value + "{" + it(e.children, r) + "}";
293
+ case ve: e.value = e.props.join(",");
295
294
  }
296
- return z(n = ot(e.children, r)) ? e.return = e.value + "{" + n + "}" : "";
295
+ return V(n = it(e.children, r)) ? e.return = e.value + "{" + n + "}" : "";
297
296
  }
298
297
  //#endregion
299
298
  //#region node_modules/stylis/src/Middleware.js
300
- function ct(e) {
301
- var t = Ne(e);
299
+ function ot(e) {
300
+ var t = je(e);
302
301
  return function(n, r, i, a) {
303
302
  for (var o = "", s = 0; s < t; s++) o += e[s](n, r, i, a) || "";
304
303
  return o;
305
304
  };
306
305
  }
307
- function lt(e) {
306
+ function st(e) {
308
307
  return function(t) {
309
308
  t.root || (t = t.return) && e(t);
310
309
  };
311
310
  }
312
311
  //#endregion
313
312
  //#region node_modules/@emotion/memoize/dist/emotion-memoize.esm.js
314
- function ut(e) {
313
+ function ct(e) {
315
314
  var t = Object.create(null);
316
315
  return function(n) {
317
316
  return t[n] === void 0 && (t[n] = e(n)), t[n];
@@ -319,46 +318,46 @@ function ut(e) {
319
318
  }
320
319
  //#endregion
321
320
  //#region node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js
322
- var dt = function(e, t, n) {
323
- for (var r = 0, i = 0; r = i, i = U(), r === 38 && i === 12 && (t[n] = 1), !Ke(i);) H();
324
- return Ge(e, B);
325
- }, ft = function(e, t) {
321
+ var lt = function(e, t, n) {
322
+ for (var r = 0, i = 0; r = i, i = G(), r === 38 && i === 12 && (t[n] = 1), !We(i);) W();
323
+ return Ue(e, H);
324
+ }, ut = function(e, t) {
326
325
  var n = -1, r = 44;
327
326
  do
328
- switch (Ke(r)) {
327
+ switch (We(r)) {
329
328
  case 0:
330
- r === 38 && U() === 12 && (t[n] = 1), e[n] += dt(B - 1, t, n);
329
+ r === 38 && G() === 12 && (t[n] = 1), e[n] += lt(H - 1, t, n);
331
330
  break;
332
331
  case 2:
333
- e[n] += Ye(r);
332
+ e[n] += qe(r);
334
333
  break;
335
334
  case 4: if (r === 44) {
336
- e[++n] = U() === 58 ? "&\f" : "", t[n] = e[n].length;
335
+ e[++n] = G() === 58 ? "&\f" : "", t[n] = e[n].length;
337
336
  break;
338
337
  }
339
- default: e[n] += Ee(r);
338
+ default: e[n] += we(r);
340
339
  }
341
- while (r = H());
340
+ while (r = W());
342
341
  return e;
343
- }, pt = function(e, t) {
344
- return Je(ft(qe(e), t));
345
- }, mt = /* #__PURE__ */ new WeakMap(), ht = function(e) {
342
+ }, dt = function(e, t) {
343
+ return Ke(ut(Ge(e), t));
344
+ }, ft = /* #__PURE__ */ new WeakMap(), pt = function(e) {
346
345
  if (!(e.type !== "rule" || !e.parent || e.length < 1)) {
347
346
  for (var t = e.value, n = e.parent, r = e.column === n.column && e.line === n.line; n.type !== "rule";) if (n = n.parent, !n) return;
348
- if (!(e.props.length === 1 && t.charCodeAt(0) !== 58 && !mt.get(n)) && !r) {
349
- mt.set(e, !0);
350
- for (var i = [], a = pt(t, i), o = n.props, s = 0, c = 0; s < a.length; s++) for (var l = 0; l < o.length; l++, c++) e.props[c] = i[s] ? a[s].replace(/&\f/g, o[l]) : o[l] + " " + a[s];
347
+ if ((e.props.length !== 1 || t.charCodeAt(0) === 58 || ft.get(n)) && !r) {
348
+ ft.set(e, !0);
349
+ for (var i = [], a = dt(t, i), o = n.props, s = 0, c = 0; s < a.length; s++) for (var l = 0; l < o.length; l++, c++) e.props[c] = i[s] ? a[s].replace(/&\f/g, o[l]) : o[l] + " " + a[s];
351
350
  }
352
351
  }
353
- }, gt = function(e) {
352
+ }, mt = function(e) {
354
353
  if (e.type === "decl") {
355
354
  var t = e.value;
356
355
  t.charCodeAt(0) === 108 && t.charCodeAt(2) === 98 && (e.return = "", e.value = "");
357
356
  }
358
357
  };
359
- function _t(e, t) {
360
- switch (Oe(e, t)) {
361
- case 5103: return I + "print-" + e + e;
358
+ function ht(e, t) {
359
+ switch (Ee(e, t)) {
360
+ case 5103: return R + "print-" + e + e;
362
361
  case 5737:
363
362
  case 4201:
364
363
  case 3177:
@@ -383,30 +382,30 @@ function _t(e, t) {
383
382
  case 5109:
384
383
  case 5365:
385
384
  case 5621:
386
- case 3829: return I + e + e;
385
+ case 3829: return R + e + e;
387
386
  case 5349:
388
387
  case 4246:
389
388
  case 4810:
390
389
  case 6968:
391
- case 2756: return I + e + ve + e + F + e + e;
390
+ case 2756: return R + e + ge + e + L + e + e;
392
391
  case 6828:
393
- case 4268: return I + e + F + e + e;
394
- case 6165: return I + e + F + "flex-" + e + e;
395
- case 5187: return I + e + L(e, /(\w+).+(:[^]+)/, I + "box-$1$2" + F + "flex-$1$2") + e;
396
- case 5443: return I + e + F + "flex-item-" + L(e, /flex-|-self/, "") + e;
397
- case 4675: return I + e + F + "flex-line-pack" + L(e, /align-content|flex-|-self/, "") + e;
398
- case 5548: return I + e + F + L(e, "shrink", "negative") + e;
399
- case 5292: return I + e + F + L(e, "basis", "preferred-size") + e;
400
- case 6060: return I + "box-" + L(e, "-grow", "") + I + e + F + L(e, "grow", "positive") + e;
401
- case 4554: return I + L(e, /([^-])(transform)/g, "$1" + I + "$2") + e;
402
- case 6187: return L(L(L(e, /(zoom-|grab)/, I + "$1"), /(image-set)/, I + "$1"), e, "") + e;
392
+ case 4268: return R + e + L + e + e;
393
+ case 6165: return R + e + L + "flex-" + e + e;
394
+ case 5187: return R + e + z(e, /(\w+).+(:[^]+)/, R + "box-$1$2" + L + "flex-$1$2") + e;
395
+ case 5443: return R + e + L + "flex-item-" + z(e, /flex-|-self/, "") + e;
396
+ case 4675: return R + e + L + "flex-line-pack" + z(e, /align-content|flex-|-self/, "") + e;
397
+ case 5548: return R + e + L + z(e, "shrink", "negative") + e;
398
+ case 5292: return R + e + L + z(e, "basis", "preferred-size") + e;
399
+ case 6060: return R + "box-" + z(e, "-grow", "") + R + e + L + z(e, "grow", "positive") + e;
400
+ case 4554: return R + z(e, /([^-])(transform)/g, "$1" + R + "$2") + e;
401
+ case 6187: return z(z(z(e, /(zoom-|grab)/, R + "$1"), /(image-set)/, R + "$1"), e, "") + e;
403
402
  case 5495:
404
- case 3959: return L(e, /(image-set\([^]*)/, I + "$1$`$1");
405
- case 4968: return L(L(e, /(.+:)(flex-)?(.*)/, I + "box-pack:$3" + F + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + I + e + e;
403
+ case 3959: return z(e, /(image-set\([^]*)/, R + "$1$`$1");
404
+ case 4968: return z(z(e, /(.+:)(flex-)?(.*)/, R + "box-pack:$3" + L + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + R + e + e;
406
405
  case 4095:
407
406
  case 3583:
408
407
  case 4068:
409
- case 2532: return L(e, /(.+)-inline(.+)/, I + "$1$2") + e;
408
+ case 2532: return z(e, /(.+)-inline(.+)/, R + "$1$2") + e;
410
409
  case 8116:
411
410
  case 7059:
412
411
  case 5753:
@@ -419,49 +418,49 @@ function _t(e, t) {
419
418
  case 5789:
420
419
  case 5021:
421
420
  case 4765:
422
- if (z(e) - 1 - t > 6) switch (R(e, t + 1)) {
423
- case 109: if (R(e, t + 4) !== 45) break;
424
- case 102: return L(e, /(.+:)(.+)-([^]+)/, "$1" + I + "$2-$3$1" + ve + (R(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
425
- case 115: return ~je(e, "stretch") ? _t(L(e, "stretch", "fill-available"), t) + e : e;
421
+ if (V(e) - 1 - t > 6) switch (B(e, t + 1)) {
422
+ case 109: if (B(e, t + 4) !== 45) break;
423
+ case 102: return z(e, /(.+:)(.+)-([^]+)/, "$1" + R + "$2-$3$1" + ge + (B(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
424
+ case 115: return ~ke(e, "stretch") ? ht(z(e, "stretch", "fill-available"), t) + e : e;
426
425
  }
427
426
  break;
428
- case 4949: if (R(e, t + 1) !== 115) break;
427
+ case 4949: if (B(e, t + 1) !== 115) break;
429
428
  case 6444:
430
- switch (R(e, z(e) - 3 - (~je(e, "!important") && 10))) {
431
- case 107: return L(e, ":", ":" + I) + e;
432
- case 101: return L(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + I + (R(e, 14) === 45 ? "inline-" : "") + "box$3$1" + I + "$2$3$1" + F + "$2box$3") + e;
429
+ switch (B(e, V(e) - 3 - (~ke(e, "!important") && 10))) {
430
+ case 107: return z(e, ":", ":" + R) + e;
431
+ case 101: return z(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + R + (B(e, 14) === 45 ? "inline-" : "") + "box$3$1" + R + "$2$3$1" + L + "$2box$3") + e;
433
432
  }
434
433
  break;
435
434
  case 5936:
436
- switch (R(e, t + 11)) {
437
- case 114: return I + e + F + L(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
438
- case 108: return I + e + F + L(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
439
- case 45: return I + e + F + L(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
435
+ switch (B(e, t + 11)) {
436
+ case 114: return R + e + L + z(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
437
+ case 108: return R + e + L + z(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
438
+ case 45: return R + e + L + z(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
440
439
  }
441
- return I + e + F + e + e;
440
+ return R + e + L + e + e;
442
441
  }
443
442
  return e;
444
443
  }
445
- var vt = [function(e, t, n, r) {
444
+ var gt = [function(e, t, n, r) {
446
445
  if (e.length > -1 && !e.return) switch (e.type) {
447
- case xe:
448
- e.return = _t(e.value, e.length);
446
+ case ye:
447
+ e.return = ht(e.value, e.length);
449
448
  break;
450
- case Ce: return ot([Ve(e, { value: L(e.value, "@", "@" + I) })], r);
451
- case be: if (e.length) return Fe(e.props, function(t) {
452
- switch (Ae(t, /(::plac\w+|:read-\w+)/)) {
449
+ case xe: return it([ze(e, { value: z(e.value, "@", "@" + R) })], r);
450
+ case ve: if (e.length) return Ne(e.props, function(t) {
451
+ switch (Oe(t, /(::plac\w+|:read-\w+)/)) {
453
452
  case ":read-only":
454
- case ":read-write": return ot([Ve(e, { props: [L(t, /:(read-\w+)/, ":" + ve + "$1")] })], r);
455
- case "::placeholder": return ot([
456
- Ve(e, { props: [L(t, /:(plac\w+)/, ":" + I + "input-$1")] }),
457
- Ve(e, { props: [L(t, /:(plac\w+)/, ":" + ve + "$1")] }),
458
- Ve(e, { props: [L(t, /:(plac\w+)/, F + "input-$1")] })
453
+ case ":read-write": return it([ze(e, { props: [z(t, /:(read-\w+)/, ":" + ge + "$1")] })], r);
454
+ case "::placeholder": return it([
455
+ ze(e, { props: [z(t, /:(plac\w+)/, ":" + R + "input-$1")] }),
456
+ ze(e, { props: [z(t, /:(plac\w+)/, ":" + ge + "$1")] }),
457
+ ze(e, { props: [z(t, /:(plac\w+)/, L + "input-$1")] })
459
458
  ], r);
460
459
  }
461
460
  return "";
462
461
  });
463
462
  }
464
- }], yt = function(e) {
463
+ }], _t = function(e) {
465
464
  var t = e.key;
466
465
  if (t === "css") {
467
466
  var n = document.querySelectorAll("style[data-emotion]:not([data-s])");
@@ -469,22 +468,22 @@ var vt = [function(e, t, n, r) {
469
468
  e.getAttribute("data-emotion").indexOf(" ") !== -1 && (document.head.appendChild(e), e.setAttribute("data-s", ""));
470
469
  });
471
470
  }
472
- var r = e.stylisPlugins || vt, i = {}, a, o = [];
471
+ var r = e.stylisPlugins || gt, i = {}, a, o = [];
473
472
  a = e.container || document.head, Array.prototype.forEach.call(document.querySelectorAll("style[data-emotion^=\"" + t + " \"]"), function(e) {
474
473
  for (var t = e.getAttribute("data-emotion").split(" "), n = 1; n < t.length; n++) i[t[n]] = !0;
475
474
  o.push(e);
476
475
  });
477
- var s, c = [ht, gt], l, u = [st, lt(function(e) {
476
+ var s, c = [pt, mt], l, u = [at, st(function(e) {
478
477
  l.insert(e);
479
- })], d = ct(c.concat(r, u)), f = function(e) {
480
- return ot(tt(e), d);
478
+ })], d = ot(c.concat(r, u)), f = function(e) {
479
+ return it($e(e), d);
481
480
  };
482
481
  s = function(e, t, n, r) {
483
482
  l = n, f(e ? e + "{" + t.styles + "}" : t.styles), r && (p.inserted[t.name] = !0);
484
483
  };
485
484
  var p = {
486
485
  key: t,
487
- sheet: new _e({
486
+ sheet: new he({
488
487
  key: t,
489
488
  container: a,
490
489
  nonce: e.nonce,
@@ -501,7 +500,7 @@ var vt = [function(e, t, n, r) {
501
500
  };
502
501
  //#endregion
503
502
  //#region node_modules/@emotion/hash/dist/emotion-hash.esm.js
504
- function bt(e) {
503
+ function vt(e) {
505
504
  for (var t = 0, n, r = 0, i = e.length; i >= 4; ++r, i -= 4) n = e.charCodeAt(r) & 255 | (e.charCodeAt(++r) & 255) << 8 | (e.charCodeAt(++r) & 255) << 16 | (e.charCodeAt(++r) & 255) << 24, n = (n & 65535) * 1540483477 + ((n >>> 16) * 59797 << 16), n ^= n >>> 24, t = (n & 65535) * 1540483477 + ((n >>> 16) * 59797 << 16) ^ (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16);
506
505
  switch (i) {
507
506
  case 3: t ^= (e.charCodeAt(r + 2) & 255) << 16;
@@ -512,7 +511,7 @@ function bt(e) {
512
511
  }
513
512
  //#endregion
514
513
  //#region node_modules/@emotion/unitless/dist/emotion-unitless.esm.js
515
- var xt = {
514
+ var yt = {
516
515
  animationIterationCount: 1,
517
516
  aspectRatio: 1,
518
517
  borderImageOutset: 1,
@@ -560,26 +559,26 @@ var xt = {
560
559
  strokeMiterlimit: 1,
561
560
  strokeOpacity: 1,
562
561
  strokeWidth: 1
563
- }, St = /[A-Z]|^ms/g, Ct = /_EMO_([^_]+?)_([^]*?)_EMO_/g, wt = function(e) {
562
+ }, bt = /[A-Z]|^ms/g, xt = /_EMO_([^_]+?)_([^]*?)_EMO_/g, St = function(e) {
564
563
  return e.charCodeAt(1) === 45;
565
- }, Tt = function(e) {
564
+ }, Ct = function(e) {
566
565
  return e != null && typeof e != "boolean";
567
- }, Et = /* #__PURE__ */ ut(function(e) {
568
- return wt(e) ? e : e.replace(St, "-$&").toLowerCase();
569
- }), Dt = function(e, t) {
566
+ }, wt = /* #__PURE__ */ ct(function(e) {
567
+ return St(e) ? e : e.replace(bt, "-$&").toLowerCase();
568
+ }), Tt = function(e, t) {
570
569
  switch (e) {
571
570
  case "animation":
572
- case "animationName": if (typeof t == "string") return t.replace(Ct, function(e, t, n) {
573
- return W = {
571
+ case "animationName": if (typeof t == "string") return t.replace(xt, function(e, t, n) {
572
+ return K = {
574
573
  name: t,
575
574
  styles: n,
576
- next: W
575
+ next: K
577
576
  }, t;
578
577
  });
579
578
  }
580
- return xt[e] !== 1 && !wt(e) && typeof t == "number" && t !== 0 ? t + "px" : t;
579
+ return yt[e] !== 1 && !St(e) && typeof t == "number" && t !== 0 ? t + "px" : t;
581
580
  };
582
- function Ot(e, t, n) {
581
+ function Et(e, t, n) {
583
582
  if (n == null) return "";
584
583
  var r = n;
585
584
  if (r.__emotion_styles !== void 0) return r;
@@ -587,25 +586,25 @@ function Ot(e, t, n) {
587
586
  case "boolean": return "";
588
587
  case "object":
589
588
  var i = n;
590
- if (i.anim === 1) return W = {
589
+ if (i.anim === 1) return K = {
591
590
  name: i.name,
592
591
  styles: i.styles,
593
- next: W
592
+ next: K
594
593
  }, i.name;
595
594
  var a = n;
596
595
  if (a.styles !== void 0) {
597
596
  var o = a.next;
598
- if (o !== void 0) for (; o !== void 0;) W = {
597
+ if (o !== void 0) for (; o !== void 0;) K = {
599
598
  name: o.name,
600
599
  styles: o.styles,
601
- next: W
600
+ next: K
602
601
  }, o = o.next;
603
602
  return a.styles + ";";
604
603
  }
605
- return kt(e, t, n);
604
+ return Dt(e, t, n);
606
605
  case "function": if (e !== void 0) {
607
- var s = W, c = n(e);
608
- return W = s, Ot(e, t, c);
606
+ var s = K, c = n(e);
607
+ return K = s, Et(e, t, c);
609
608
  }
610
609
  }
611
610
  var l = n;
@@ -613,21 +612,21 @@ function Ot(e, t, n) {
613
612
  var u = t[l];
614
613
  return u === void 0 ? l : u;
615
614
  }
616
- function kt(e, t, n) {
615
+ function Dt(e, t, n) {
617
616
  var r = "";
618
- if (Array.isArray(n)) for (var i = 0; i < n.length; i++) r += Ot(e, t, n[i]) + ";";
617
+ if (Array.isArray(n)) for (var i = 0; i < n.length; i++) r += Et(e, t, n[i]) + ";";
619
618
  else for (var a in n) {
620
619
  var o = n[a];
621
620
  if (typeof o != "object") {
622
621
  var s = o;
623
- t != null && t[s] !== void 0 ? r += a + "{" + t[s] + "}" : Tt(s) && (r += Et(a) + ":" + Dt(a, s) + ";");
624
- } else if (Array.isArray(o) && typeof o[0] == "string" && (t == null || t[o[0]] === void 0)) for (var c = 0; c < o.length; c++) Tt(o[c]) && (r += Et(a) + ":" + Dt(a, o[c]) + ";");
622
+ t != null && t[s] !== void 0 ? r += a + "{" + t[s] + "}" : Ct(s) && (r += wt(a) + ":" + Tt(a, s) + ";");
623
+ } else if (Array.isArray(o) && typeof o[0] == "string" && (t == null || t[o[0]] === void 0)) for (var c = 0; c < o.length; c++) Ct(o[c]) && (r += wt(a) + ":" + Tt(a, o[c]) + ";");
625
624
  else {
626
- var l = Ot(e, t, o);
625
+ var l = Et(e, t, o);
627
626
  switch (a) {
628
627
  case "animation":
629
628
  case "animationName":
630
- r += Et(a) + ":" + l + ";";
629
+ r += wt(a) + ":" + l + ";";
631
630
  break;
632
631
  default: r += a + "{" + l + "}";
633
632
  }
@@ -635,35 +634,35 @@ function kt(e, t, n) {
635
634
  }
636
635
  return r;
637
636
  }
638
- var At = /label:\s*([^\s;{]+)\s*(;|$)/g, W;
639
- function jt(e, t, n) {
637
+ var Ot = /label:\s*([^\s;{]+)\s*(;|$)/g, K;
638
+ function kt(e, t, n) {
640
639
  if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0) return e[0];
641
640
  var r = !0, i = "";
642
- W = void 0;
641
+ K = void 0;
643
642
  var a = e[0];
644
- a == null || a.raw === void 0 ? (r = !1, i += Ot(n, t, a)) : i += a[0];
645
- for (var o = 1; o < e.length; o++) i += Ot(n, t, e[o]), r && (i += a[o]);
646
- At.lastIndex = 0;
647
- for (var s = "", c; (c = At.exec(i)) !== null;) s += "-" + c[1];
643
+ a == null || a.raw === void 0 ? (r = !1, i += Et(n, t, a)) : i += a[0];
644
+ for (var o = 1; o < e.length; o++) i += Et(n, t, e[o]), r && (i += a[o]);
645
+ Ot.lastIndex = 0;
646
+ for (var s = "", c; (c = Ot.exec(i)) !== null;) s += "-" + c[1];
648
647
  return {
649
- name: bt(i) + s,
648
+ name: vt(i) + s,
650
649
  styles: i,
651
- next: W
650
+ next: K
652
651
  };
653
652
  }
654
653
  //#endregion
655
654
  //#region node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js
656
- function Mt(e, t, n) {
655
+ function At(e, t, n) {
657
656
  var r = "";
658
657
  return n.split(" ").forEach(function(n) {
659
658
  e[n] === void 0 ? n && (r += n + " ") : t.push(e[n] + ";");
660
659
  }), r;
661
660
  }
662
- var Nt = function(e, t, n) {
661
+ var jt = function(e, t, n) {
663
662
  var r = e.key + "-" + t.name;
664
663
  n === !1 && e.registered[r] === void 0 && (e.registered[r] = t.styles);
665
- }, Pt = function(e, t, n) {
666
- Nt(e, t, n);
664
+ }, Mt = function(e, t, n) {
665
+ jt(e, t, n);
667
666
  var r = e.key + "-" + t.name;
668
667
  if (e.inserted[t.name] === void 0) {
669
668
  var i = t;
@@ -674,34 +673,34 @@ var Nt = function(e, t, n) {
674
673
  };
675
674
  //#endregion
676
675
  //#region node_modules/@emotion/css/create-instance/dist/emotion-css-create-instance.esm.js
677
- function Ft(e, t) {
676
+ function Nt(e, t) {
678
677
  if (e.inserted[t.name] === void 0) return e.insert("", t, e.sheet, !0);
679
678
  }
680
- function It(e, t, n) {
681
- var r = [], i = Mt(e, r, n);
679
+ function Pt(e, t, n) {
680
+ var r = [], i = At(e, r, n);
682
681
  return r.length < 2 ? n : i + t(r);
683
682
  }
684
- var Lt = function(e) {
685
- var t = yt(e);
683
+ var Ft = function(e) {
684
+ var t = _t(e);
686
685
  t.sheet.speedy = function(e) {
687
686
  this.isSpeedy = e;
688
687
  }, t.compat = !0;
689
688
  var n = function() {
690
- var e = jt([...arguments], t.registered, void 0);
691
- return Pt(t, e, !1), t.key + "-" + e.name;
689
+ var e = kt([...arguments], t.registered, void 0);
690
+ return Mt(t, e, !1), t.key + "-" + e.name;
692
691
  };
693
692
  return {
694
693
  css: n,
695
694
  cx: function() {
696
695
  var e = [...arguments];
697
- return It(t.registered, n, Rt(e));
696
+ return Pt(t.registered, n, It(e));
698
697
  },
699
698
  injectGlobal: function() {
700
- Ft(t, jt([...arguments], t.registered));
699
+ Nt(t, kt([...arguments], t.registered));
701
700
  },
702
701
  keyframes: function() {
703
- var e = jt([...arguments], t.registered), n = "animation-" + e.name;
704
- return Ft(t, {
702
+ var e = kt([...arguments], t.registered), n = "animation-" + e.name;
703
+ return Nt(t, {
705
704
  name: e.name,
706
705
  styles: "@keyframes " + n + "{" + e.styles + "}"
707
706
  }), n;
@@ -716,10 +715,10 @@ var Lt = function(e) {
716
715
  },
717
716
  sheet: t.sheet,
718
717
  cache: t,
719
- getRegisteredStyles: Mt.bind(null, t.registered),
720
- merge: It.bind(null, t.registered, n)
718
+ getRegisteredStyles: At.bind(null, t.registered),
719
+ merge: Pt.bind(null, t.registered, n)
721
720
  };
722
- }, Rt = function e(t) {
721
+ }, It = function e(t) {
723
722
  for (var n = "", r = 0; r < t.length; r++) {
724
723
  var i = t[r];
725
724
  if (i != null) {
@@ -736,15 +735,24 @@ var Lt = function(e) {
736
735
  }
737
736
  }
738
737
  return n;
739
- }, G = Lt({ key: "css" });
740
- G.flush, G.hydrate, G.cx, G.merge, G.getRegisteredStyles;
741
- var zt = G.injectGlobal;
742
- G.keyframes;
743
- var K = G.css;
744
- G.sheet, G.cache;
738
+ }, Lt = /* @__PURE__ */ n({
739
+ cache: () => qt,
740
+ css: () => Gt,
741
+ cx: () => Bt,
742
+ flush: () => Rt,
743
+ getRegisteredStyles: () => Ht,
744
+ hydrate: () => zt,
745
+ injectGlobal: () => Ut,
746
+ keyframes: () => Wt,
747
+ merge: () => Vt,
748
+ sheet: () => Kt
749
+ }), q = Ft({ key: "css" }), Rt = q.flush, zt = q.hydrate, Bt = q.cx, Vt = q.merge, Ht = q.getRegisteredStyles, Ut = q.injectGlobal, Wt = q.keyframes, Gt = q.css, Kt = q.sheet, qt = q.cache, Jt = globalThis?.UNOVIS_NONCE, { css: J, cx: Yt, injectGlobal: Xt, keyframes: Zt, cache: Qt, sheet: $t } = Jt ? Ft({
750
+ key: "unovis",
751
+ nonce: Jt
752
+ }) : Lt;
745
753
  //#endregion
746
754
  //#region node_modules/throttle-debounce/esm/index.js
747
- function Bt(e, t, n) {
755
+ function en(e, t, n) {
748
756
  var r = n || {}, i = r.noTrailing, a = i !== void 0 && i, o = r.noLeading, s = o !== void 0 && o, c = r.debounceMode, l = c === void 0 ? void 0 : c, u, d = !1, f = 0;
749
757
  function p() {
750
758
  u && clearTimeout(u);
@@ -768,86 +776,87 @@ function Bt(e, t, n) {
768
776
  }
769
777
  //#endregion
770
778
  //#region node_modules/@unovis/ts/utils/data.js
771
- var Vt = (e) => typeof e == "number", Ht = (e) => typeof e == "function", Ut = (e) => e === void 0, Wt = (e) => typeof e == "string", Gt = (e) => Array.isArray(e), Kt = (e) => e instanceof Object, qt = (e) => e.constructor.name !== "Function" && e.constructor.name !== "Object", Jt = (e) => Kt(e) && !Gt(e) && !Ht(e) && !qt(e), Yt = (e, t, n = [], r = /* @__PURE__ */ new Set()) => {
779
+ var tn = (e) => typeof e == "number", nn = (e) => typeof e == "function", rn = (e) => e === void 0, an = (e) => typeof e == "string", on = (e) => Array.isArray(e), sn = (e) => e instanceof Object, cn = (e) => e.constructor.name !== "Function" && e.constructor.name !== "Object", ln = (e) => sn(e) && !on(e) && !nn(e) && !cn(e), un = (e, t, n = [], r = /* @__PURE__ */ new Set()) => {
780
+ if (e === t) return !0;
772
781
  if (Array.isArray(e)) {
773
782
  if (!Array.isArray(t) || e.length !== t.length) return !1;
774
783
  if (r.has(e)) return !0;
775
784
  r.add(e);
776
- for (let i = 0; i < e.length; i++) if (!Yt(e[i], t[i], n, r)) return !1;
777
- return !0;
785
+ for (let i = 0; i < e.length; i++) if (!un(e[i], t[i], n, r)) return !1;
786
+ return r.delete(e), !0;
778
787
  }
779
788
  if (e instanceof Date && t instanceof Date) return e.getTime() === t.getTime();
780
789
  if (typeof e == "object" && e && t !== null) {
781
790
  if (typeof t != "object") return !1;
782
- if (e === t) return !0;
783
791
  let i = Object.keys(e).filter((e) => !n.includes(e)), a = Object.keys(t).filter((e) => !n.includes(e));
784
792
  if (i.length !== a.length) return !1;
785
793
  if (r.has(e)) return !0;
786
794
  r.add(e);
787
- for (let a of i) if (!Yt(e[a], t[a], n, r)) return !1;
788
- return !0;
795
+ for (let a of i) if (!un(e[a], t[a], n, r)) return !1;
796
+ return r.delete(e), !0;
789
797
  }
790
798
  return e === t;
791
- }, Xt = (e, ...t) => e.filter((e) => !t.includes(e)), Zt = (e, t = /* @__PURE__ */ new Map()) => {
799
+ }, dn = (e, t = /* @__PURE__ */ new Map()) => {
792
800
  if (typeof e != "object" || !e) return e;
793
801
  if (e instanceof Date) return new Date(e.getTime());
794
802
  if (e instanceof Array) {
795
803
  let n = [];
796
804
  t.set(e, n);
797
- for (let r of e) n.push(t.has(r) ? t.get(r) : Zt(r, t));
805
+ for (let r of e) n.push(t.has(r) ? t.get(r) : dn(r, t));
798
806
  return n;
799
807
  }
800
- if (qt(e)) return e;
808
+ if (cn(e)) return e;
801
809
  if (e instanceof Object) {
802
810
  let n = {};
803
811
  t.set(e, n);
804
812
  let r = e;
805
- return Object.keys(e).reduce((e, n) => (e[n] = t.has(r[n]) ? t.get(r[n]) : Zt(r[n], t), e), n), n;
813
+ return Object.keys(e).reduce((e, n) => (e[n] = t.has(r[n]) ? t.get(r[n]) : dn(r[n], t), e), n), n;
806
814
  }
807
815
  return e;
808
- }, Qt = (e, t, n = /* @__PURE__ */ new Map()) => {
809
- if (!e || !t || e === t) return e;
810
- let r = qt(e) ? e : Zt(e);
816
+ }, fn = (e, t, n = /* @__PURE__ */ new Map()) => {
817
+ if (!e || !t) return e && dn(e);
818
+ if (e === t) return e;
819
+ let r = cn(e) ? e : dn(e);
811
820
  return n.has(t) ? n.get(t) : (n.set(t, r), Object.keys(t).forEach((i) => {
812
- i !== "__proto__" && i !== "constructor" && (Jt(e[i]) && Jt(t[i]) ? r[i] = Qt(e[i], t[i], n) : qt(t) ? r[i] = t : r[i] = Zt(t[i]));
821
+ i !== "__proto__" && i !== "constructor" && (ln(e[i]) && ln(t[i]) ? r[i] = fn(e[i], t[i], n) : r[i] = dn(t[i]));
813
822
  }), r);
814
- }, $t = (e, t) => e.reduce((e, n, r, i, a = t(n, r)) => ((e[a] || (e[a] = [])).push(n), e), {}), en = (e, t, n) => Bt(t, e, n);
815
- function tn(e, t, n) {
816
- return Ht(t) ? t(e, n) : t;
823
+ }, pn = (e, t) => e.reduce((e, n, r, i, a = t(n, r)) => ((e[a] || (e[a] = [])).push(n), e), {}), mn = (e, t, n) => en(t, e, n);
824
+ function Y(e, t, n) {
825
+ return nn(t) ? t(e, n) : t;
817
826
  }
818
- function nn(e, t, n) {
819
- return tn(e, t, n);
827
+ function hn(e, t, n) {
828
+ return Y(e, t, n);
820
829
  }
821
- function q(e, t, n) {
822
- return tn(e, t, n);
830
+ function X(e, t, n) {
831
+ return Y(e, t, n);
823
832
  }
824
- function rn(e, t, n) {
833
+ function gn(e, t, n) {
825
834
  return Math.min(Math.max(e, t), n);
826
835
  }
827
836
  //#endregion
828
837
  //#region node_modules/d3-shape/src/arc.js
829
- function an(e) {
838
+ function _n(e) {
830
839
  return e.innerRadius;
831
840
  }
832
- function on(e) {
841
+ function vn(e) {
833
842
  return e.outerRadius;
834
843
  }
835
- function sn(e) {
844
+ function yn(e) {
836
845
  return e.startAngle;
837
846
  }
838
- function cn(e) {
847
+ function bn(e) {
839
848
  return e.endAngle;
840
849
  }
841
- function ln(e) {
850
+ function xn(e) {
842
851
  return e && e.padAngle;
843
852
  }
844
- function un(e, t, n, r, i, a, o, s) {
853
+ function Sn(e, t, n, r, i, a, o, s) {
845
854
  var c = n - e, l = r - t, u = o - i, d = s - a, f = d * c - u * l;
846
855
  if (!(f * f < 1e-12)) return f = (u * (t - a) - d * (e - i)) / f, [e + f * c, t + f * l];
847
856
  }
848
- function dn(e, t, n, r, i, a, o) {
849
- var s = e - n, c = t - r, l = (o ? a : -a) / g(s * s + c * c), u = l * c, d = -l * s, f = e + u, p = t + d, h = n + u, _ = r + d, v = (f + h) / 2, y = (p + _) / 2, b = h - f, x = _ - p, S = b * b + x * x, C = i - a, w = f * _ - h * p, T = (x < 0 ? -1 : 1) * g(m(0, C * C * S - w * w)), E = (w * x - b * T) / S, D = (-w * b - x * T) / S, O = (w * x + b * T) / S, ee = (-w * b + x * T) / S, te = E - v, ne = D - y, re = O - v, ie = ee - y;
850
- return te * te + ne * ne > re * re + ie * ie && (E = O, D = ee), {
857
+ function Cn(e, t, n, r, i, a, o) {
858
+ var s = e - n, c = t - r, l = (o ? a : -a) / g(s * s + c * c), u = l * c, d = -l * s, f = e + u, p = t + d, h = n + u, _ = r + d, v = (f + h) / 2, y = (p + _) / 2, b = h - f, x = _ - p, S = b * b + x * x, C = i - a, w = f * _ - h * p, T = (x < 0 ? -1 : 1) * g(m(0, C * C * S - w * w)), E = (w * x - b * T) / S, D = (-w * b - x * T) / S, O = (w * x + b * T) / S, k = (-w * b + x * T) / S, A = E - v, j = D - y, ee = O - v, te = k - y;
859
+ return A * A + j * j > ee * ee + te * te && (E = O, D = k), {
851
860
  cx: E,
852
861
  cy: D,
853
862
  x01: -u,
@@ -856,29 +865,29 @@ function dn(e, t, n, r, i, a, o) {
856
865
  y11: D * (i / C - 1)
857
866
  };
858
867
  }
859
- function fn() {
860
- var e = an, t = on, n = d(0), r = null, i = sn, a = cn, o = ln, s = null, c = D(l);
868
+ function wn() {
869
+ var e = _n, t = vn, n = d(0), r = null, i = yn, a = bn, o = xn, s = null, c = D(l);
861
870
  function l() {
862
871
  var l, u, d = +e.apply(this, arguments), f = +t.apply(this, arguments), m = i.apply(this, arguments) - S, T = a.apply(this, arguments) - S, E = C(T - m), D = T > m;
863
872
  if (s ||= l = c(), f < d && (u = f, f = d, d = u), !(f > 1e-12)) s.moveTo(0, 0);
864
873
  else if (E > b - 1e-12) s.moveTo(f * p(m), f * h(m)), s.arc(0, 0, f, m, T, !D), d > 1e-12 && (s.moveTo(d * p(T), d * h(T)), s.arc(0, 0, d, T, m, D));
865
874
  else {
866
- var O = m, ee = T, te = m, ne = T, re = E, ie = E, ae = o.apply(this, arguments) / 2, oe = ae > 1e-12 && (r ? +r.apply(this, arguments) : g(d * d + f * f)), se = v(C(f - d) / 2, +n.apply(this, arguments)), k = se, A = se, j, M;
867
- if (oe > 1e-12) {
868
- var ce = x(oe / d * h(ae)), le = x(oe / f * h(ae));
869
- (re -= ce * 2) > 1e-12 ? (ce *= D ? 1 : -1, te += ce, ne -= ce) : (re = 0, te = ne = (m + T) / 2), (ie -= le * 2) > 1e-12 ? (le *= D ? 1 : -1, O += le, ee -= le) : (ie = 0, O = ee = (m + T) / 2);
875
+ var O = m, k = T, A = m, j = T, ee = E, te = E, ne = o.apply(this, arguments) / 2, re = ne > 1e-12 && (r ? +r.apply(this, arguments) : g(d * d + f * f)), ie = v(C(f - d) / 2, +n.apply(this, arguments)), M = ie, N = ie, P, F;
876
+ if (re > 1e-12) {
877
+ var ae = x(re / d * h(ne)), oe = x(re / f * h(ne));
878
+ (ee -= ae * 2) > 1e-12 ? (ae *= D ? 1 : -1, A += ae, j -= ae) : (ee = 0, A = j = (m + T) / 2), (te -= oe * 2) > 1e-12 ? (oe *= D ? 1 : -1, O += oe, k -= oe) : (te = 0, O = k = (m + T) / 2);
870
879
  }
871
- var ue = f * p(O), de = f * h(O), fe = d * p(ne), N = d * h(ne);
872
- if (se > 1e-12) {
873
- var pe = f * p(ee), me = f * h(ee), he = d * p(te), ge = d * h(te), P;
880
+ var se = f * p(O), ce = f * h(O), le = d * p(j), ue = d * h(j);
881
+ if (ie > 1e-12) {
882
+ var de = f * p(k), fe = f * h(k), pe = d * p(A), me = d * h(A), I;
874
883
  if (E < w) {
875
- if (P = un(ue, de, he, ge, pe, me, fe, N)) {
876
- var _e = ue - P[0], F = de - P[1], ve = pe - P[0], I = me - P[1], ye = 1 / h(y((_e * ve + F * I) / (g(_e * _e + F * F) * g(ve * ve + I * I))) / 2), be = g(P[0] * P[0] + P[1] * P[1]);
877
- k = v(se, (d - be) / (ye - 1)), A = v(se, (f - be) / (ye + 1));
878
- } else k = A = 0;
884
+ if (I = Sn(se, ce, pe, me, de, fe, le, ue)) {
885
+ var he = se - I[0], L = ce - I[1], ge = de - I[0], R = fe - I[1], _e = 1 / h(y((he * ge + L * R) / (g(he * he + L * L) * g(ge * ge + R * R))) / 2), ve = g(I[0] * I[0] + I[1] * I[1]);
886
+ M = v(ie, (d - ve) / (_e - 1)), N = v(ie, (f - ve) / (_e + 1));
887
+ } else M = N = 0;
879
888
  }
880
889
  }
881
- ie > 1e-12 ? A > 1e-12 ? (j = dn(he, ge, ue, de, f, A, D), M = dn(pe, me, fe, N, f, A, D), s.moveTo(j.cx + j.x01, j.cy + j.y01), A < se ? s.arc(j.cx, j.cy, A, _(j.y01, j.x01), _(M.y01, M.x01), !D) : (s.arc(j.cx, j.cy, A, _(j.y01, j.x01), _(j.y11, j.x11), !D), s.arc(0, 0, f, _(j.cy + j.y11, j.cx + j.x11), _(M.cy + M.y11, M.cx + M.x11), !D), s.arc(M.cx, M.cy, A, _(M.y11, M.x11), _(M.y01, M.x01), !D))) : (s.moveTo(ue, de), s.arc(0, 0, f, O, ee, !D)) : s.moveTo(ue, de), !(d > 1e-12) || !(re > 1e-12) ? s.lineTo(fe, N) : k > 1e-12 ? (j = dn(fe, N, pe, me, d, -k, D), M = dn(ue, de, he, ge, d, -k, D), s.lineTo(j.cx + j.x01, j.cy + j.y01), k < se ? s.arc(j.cx, j.cy, k, _(j.y01, j.x01), _(M.y01, M.x01), !D) : (s.arc(j.cx, j.cy, k, _(j.y01, j.x01), _(j.y11, j.x11), !D), s.arc(0, 0, d, _(j.cy + j.y11, j.cx + j.x11), _(M.cy + M.y11, M.cx + M.x11), D), s.arc(M.cx, M.cy, k, _(M.y11, M.x11), _(M.y01, M.x01), !D))) : s.arc(0, 0, d, ne, te, D);
890
+ te > 1e-12 ? N > 1e-12 ? (P = Cn(pe, me, se, ce, f, N, D), F = Cn(de, fe, le, ue, f, N, D), s.moveTo(P.cx + P.x01, P.cy + P.y01), N < ie ? s.arc(P.cx, P.cy, N, _(P.y01, P.x01), _(F.y01, F.x01), !D) : (s.arc(P.cx, P.cy, N, _(P.y01, P.x01), _(P.y11, P.x11), !D), s.arc(0, 0, f, _(P.cy + P.y11, P.cx + P.x11), _(F.cy + F.y11, F.cx + F.x11), !D), s.arc(F.cx, F.cy, N, _(F.y11, F.x11), _(F.y01, F.x01), !D))) : (s.moveTo(se, ce), s.arc(0, 0, f, O, k, !D)) : s.moveTo(se, ce), !(d > 1e-12) || !(ee > 1e-12) ? s.lineTo(le, ue) : M > 1e-12 ? (P = Cn(le, ue, de, fe, d, -M, D), F = Cn(se, ce, pe, me, d, -M, D), s.lineTo(P.cx + P.x01, P.cy + P.y01), M < ie ? s.arc(P.cx, P.cy, M, _(P.y01, P.x01), _(F.y01, F.x01), !D) : (s.arc(P.cx, P.cy, M, _(P.y01, P.x01), _(P.y11, P.x11), !D), s.arc(0, 0, d, _(P.cy + P.y11, P.cx + P.x11), _(F.cy + F.y11, F.cx + F.x11), D), s.arc(F.cx, F.cy, M, _(F.y11, F.x11), _(F.y01, F.x01), !D))) : s.arc(0, 0, d, j, A, D);
882
891
  }
883
892
  if (s.closePath(), l) return s = null, l + "" || null;
884
893
  }
@@ -905,8 +914,8 @@ function fn() {
905
914
  }
906
915
  //#endregion
907
916
  //#region node_modules/d3-shape/src/line.js
908
- function pn(e, t) {
909
- var n = d(!0), r = null, i = N, a = null, o = D(s);
917
+ function Tn(e, t) {
918
+ var n = d(!0), r = null, i = ue, a = null, o = D(s);
910
919
  e = typeof e == "function" ? e : e === void 0 ? O : d(e), t = typeof t == "function" ? t : t === void 0 ? E : d(t);
911
920
  function s(s) {
912
921
  var c, l = (s = f(s)).length, u, d = !1, p;
@@ -927,8 +936,8 @@ function pn(e, t) {
927
936
  }
928
937
  //#endregion
929
938
  //#region node_modules/d3-shape/src/area.js
930
- function mn(e, t, n) {
931
- var r = null, i = d(!0), a = null, o = N, s = null, c = D(l);
939
+ function En(e, t, n) {
940
+ var r = null, i = d(!0), a = null, o = ue, s = null, c = D(l);
932
941
  e = typeof e == "function" ? e : e === void 0 ? O : d(+e), t = typeof t == "function" ? t : d(t === void 0 ? 0 : +t), n = typeof n == "function" ? n : n === void 0 ? E : d(+n);
933
942
  function l(l) {
934
943
  var u, d, p, m = (l = f(l)).length, h, g = !1, _, v = Array(m), y = Array(m);
@@ -945,7 +954,7 @@ function mn(e, t, n) {
945
954
  if (_) return s = null, _ + "" || null;
946
955
  }
947
956
  function u() {
948
- return pn().defined(i).curve(o).context(a);
957
+ return Tn().defined(i).curve(o).context(a);
949
958
  }
950
959
  return l.x = function(t) {
951
960
  return arguments.length ? (e = typeof t == "function" ? t : d(+t), r = null, l) : e;
@@ -975,18 +984,18 @@ function mn(e, t, n) {
975
984
  }
976
985
  //#endregion
977
986
  //#region node_modules/d3-shape/src/descending.js
978
- function hn(e, t) {
987
+ function Dn(e, t) {
979
988
  return t < e ? -1 : t > e ? 1 : t >= e ? 0 : NaN;
980
989
  }
981
990
  //#endregion
982
991
  //#region node_modules/d3-shape/src/identity.js
983
- function gn(e) {
992
+ function On(e) {
984
993
  return e;
985
994
  }
986
995
  //#endregion
987
996
  //#region node_modules/d3-shape/src/pie.js
988
- function _n() {
989
- var e = gn, t = hn, n = null, r = d(0), i = d(b), a = d(0);
997
+ function kn() {
998
+ var e = On, t = Dn, n = null, r = d(0), i = d(b), a = d(0);
990
999
  function o(o) {
991
1000
  var s, c = (o = f(o)).length, l, u, d = 0, p = Array(c), m = Array(c), h = +r.apply(this, arguments), g = Math.min(b, Math.max(-b, i.apply(this, arguments) - h)), _, v = Math.min(Math.abs(g) / c, a.apply(this, arguments)), y = v * (g < 0 ? -1 : 1), x;
992
1001
  for (s = 0; s < c; ++s) (x = m[p[s] = s] = +e(o[s], s, o)) > 0 && (d += x);
@@ -1020,11 +1029,11 @@ function _n() {
1020
1029
  }
1021
1030
  //#endregion
1022
1031
  //#region node_modules/d3-shape/src/curve/radial.js
1023
- var vn = bn(N);
1024
- function yn(e) {
1032
+ var An = Mn(ue);
1033
+ function jn(e) {
1025
1034
  this._curve = e;
1026
1035
  }
1027
- yn.prototype = {
1036
+ jn.prototype = {
1028
1037
  areaStart: function() {
1029
1038
  this._curve.areaStart();
1030
1039
  },
@@ -1041,57 +1050,57 @@ yn.prototype = {
1041
1050
  this._curve.point(t * Math.sin(e), t * -Math.cos(e));
1042
1051
  }
1043
1052
  };
1044
- function bn(e) {
1053
+ function Mn(e) {
1045
1054
  function t(t) {
1046
- return new yn(e(t));
1055
+ return new jn(e(t));
1047
1056
  }
1048
1057
  return t._curve = e, t;
1049
1058
  }
1050
1059
  //#endregion
1051
1060
  //#region node_modules/d3-shape/src/lineRadial.js
1052
- function xn(e) {
1061
+ function Nn(e) {
1053
1062
  var t = e.curve;
1054
1063
  return e.angle = e.x, delete e.x, e.radius = e.y, delete e.y, e.curve = function(e) {
1055
- return arguments.length ? t(bn(e)) : t()._curve;
1064
+ return arguments.length ? t(Mn(e)) : t()._curve;
1056
1065
  }, e;
1057
1066
  }
1058
1067
  //#endregion
1059
1068
  //#region node_modules/d3-shape/src/areaRadial.js
1060
- function Sn() {
1061
- var e = mn().curve(vn), t = e.curve, n = e.lineX0, r = e.lineX1, i = e.lineY0, a = e.lineY1;
1069
+ function Pn() {
1070
+ var e = En().curve(An), t = e.curve, n = e.lineX0, r = e.lineX1, i = e.lineY0, a = e.lineY1;
1062
1071
  return e.angle = e.x, delete e.x, e.startAngle = e.x0, delete e.x0, e.endAngle = e.x1, delete e.x1, e.radius = e.y, delete e.y, e.innerRadius = e.y0, delete e.y0, e.outerRadius = e.y1, delete e.y1, e.lineStartAngle = function() {
1063
- return xn(n());
1072
+ return Nn(n());
1064
1073
  }, delete e.lineX0, e.lineEndAngle = function() {
1065
- return xn(r());
1074
+ return Nn(r());
1066
1075
  }, delete e.lineX1, e.lineInnerRadius = function() {
1067
- return xn(i());
1076
+ return Nn(i());
1068
1077
  }, delete e.lineY0, e.lineOuterRadius = function() {
1069
- return xn(a());
1078
+ return Nn(a());
1070
1079
  }, delete e.lineY1, e.curve = function(e) {
1071
- return arguments.length ? t(bn(e)) : t()._curve;
1080
+ return arguments.length ? t(Mn(e)) : t()._curve;
1072
1081
  }, e;
1073
1082
  }
1074
1083
  //#endregion
1075
1084
  //#region node_modules/d3-hierarchy/src/treemap/round.js
1076
- function Cn(e) {
1085
+ function Fn(e) {
1077
1086
  e.x0 = Math.round(e.x0), e.y0 = Math.round(e.y0), e.x1 = Math.round(e.x1), e.y1 = Math.round(e.y1);
1078
1087
  }
1079
1088
  //#endregion
1080
1089
  //#region node_modules/d3-hierarchy/src/treemap/dice.js
1081
- function wn(e, t, n, r, i) {
1090
+ function In(e, t, n, r, i) {
1082
1091
  for (var a = e.children, o, s = -1, c = a.length, l = e.value && (r - t) / e.value; ++s < c;) o = a[s], o.y0 = n, o.y1 = i, o.x0 = t, o.x1 = t += o.value * l;
1083
1092
  }
1084
1093
  //#endregion
1085
1094
  //#region node_modules/d3-hierarchy/src/partition.js
1086
- function Tn() {
1095
+ function Ln() {
1087
1096
  var e = 1, t = 1, n = 0, r = !1;
1088
1097
  function i(i) {
1089
1098
  var o = i.height + 1;
1090
- return i.x0 = i.y0 = n, i.x1 = e, i.y1 = t / o, i.eachBefore(a(t, o)), r && i.eachBefore(Cn), i;
1099
+ return i.x0 = i.y0 = n, i.x1 = e, i.y1 = t / o, i.eachBefore(a(t, o)), r && i.eachBefore(Fn), i;
1091
1100
  }
1092
1101
  function a(e, t) {
1093
1102
  return function(r) {
1094
- r.children && wn(r, r.x0, e * (r.depth + 1) / t, r.x1, e * (r.depth + 2) / t);
1103
+ r.children && In(r, r.x0, e * (r.depth + 1) / t, r.x1, e * (r.depth + 2) / t);
1095
1104
  var i = r.x0, a = r.y0, o = r.x1 - n, s = r.y1 - n;
1096
1105
  o < i && (i = o = (i + o) / 2), s < a && (a = s = (a + s) / 2), r.x0 = i, r.y0 = a, r.x1 = o, r.y1 = s;
1097
1106
  };
@@ -1106,43 +1115,124 @@ function Tn() {
1106
1115
  }
1107
1116
  //#endregion
1108
1117
  //#region node_modules/@unovis/ts/types/component.js
1109
- var En;
1110
- (function(e) {
1111
- e[e.SVG = 0] = "SVG", e[e.HTML = 1] = "HTML";
1112
- })(En ||= {});
1113
- var J;
1114
- (function(e) {
1115
- e.Fit = "fit", e.Extend = "extend", e.FitWidth = "fit_width";
1116
- })(J ||= {});
1118
+ var Rn = /* @__PURE__ */ ((e) => (e[e.SVG = 0] = "SVG", e[e.HTML = 1] = "HTML", e))(Rn || {}), Z = /* @__PURE__ */ ((e) => (e.Fit = "fit", e.Extend = "extend", e.FitWidth = "fit_width", e))(Z || {});
1119
+ //#endregion
1120
+ //#region node_modules/@unovis/ts/utils/to-px.js
1121
+ function zn(e) {
1122
+ return e = String(e), [parseFloat(e), e.match(/[\d.\-+]*\s*(.*)/)?.[1] || ""];
1123
+ }
1124
+ function Bn() {
1125
+ return typeof window < "u" && typeof document < "u";
1126
+ }
1127
+ function Vn(e, t) {
1128
+ let n = zn(getComputedStyle(e).getPropertyValue(t));
1129
+ return n[0] * (Gn(n[1], e) ?? 1);
1130
+ }
1131
+ function Hn(e, t) {
1132
+ let n = document.createElement("div");
1133
+ n.style.height = `128${e}`, t.appendChild(n);
1134
+ let r = Vn(n, "height") / 128;
1135
+ return t.removeChild(n), r;
1136
+ }
1137
+ var Un = null;
1138
+ function Wn() {
1139
+ return Bn() ? (Un === null && (Un = 96, Un = Hn("in", document.body)), Un) : 96;
1140
+ }
1141
+ function Gn(e, t) {
1142
+ if (!e && e !== 0) return null;
1143
+ if (!Bn()) {
1144
+ let t = zn(String(e));
1145
+ if (!isNaN(t[0])) {
1146
+ let e = t[1]?.toLowerCase() || "px";
1147
+ if (e === "px" || e === "") return t[0];
1148
+ if (e === "em" || e === "rem") return t[0] * 16;
1149
+ if (e === "in") return t[0] * 96;
1150
+ if (e === "cm") return t[0] * (96 / 2.54);
1151
+ if (e === "mm") return t[0] * (96 / 25.4);
1152
+ if (e === "pt") return t[0] * (96 / 72);
1153
+ if (e === "pc") return t[0] * 16;
1154
+ }
1155
+ return null;
1156
+ }
1157
+ let n = document.body;
1158
+ t && t !== window && t !== document && (n = t);
1159
+ let r = (String(e) || "px").trim().toLowerCase();
1160
+ switch (r) {
1161
+ case "%": return n.clientHeight / 100;
1162
+ case "ch":
1163
+ case "ex": return Hn(r, n);
1164
+ case "em": return Vn(n, "font-size");
1165
+ case "rem": return Vn(document.body, "font-size");
1166
+ case "vw": return window.innerWidth / 100;
1167
+ case "vh": return window.innerHeight / 100;
1168
+ case "vmin": return Math.min(window.innerWidth, window.innerHeight) / 100;
1169
+ case "vmax": return Math.max(window.innerWidth, window.innerHeight) / 100;
1170
+ case "in": return Wn();
1171
+ case "cm": return Wn() / 2.54;
1172
+ case "mm": return Wn() / 25.4;
1173
+ case "pt": return Wn() / 72;
1174
+ case "pc": return Wn() / 6;
1175
+ case "px": return 1;
1176
+ }
1177
+ let i = zn(r);
1178
+ if (!isNaN(i[0])) {
1179
+ if (i[1]) {
1180
+ let e = Gn(i[1], n);
1181
+ return typeof e == "number" ? i[0] * e : null;
1182
+ }
1183
+ return i[0];
1184
+ }
1185
+ return null;
1186
+ }
1187
+ //#endregion
1188
+ //#region node_modules/@unovis/ts/utils/misc.js
1189
+ function Kn() {
1190
+ let e = () => Math.floor((1 + crypto.getRandomValues(/* @__PURE__ */ new Uint32Array(1))[0]) * 65536).toString(16).substring(1);
1191
+ return `${e() + e()}-${e()}-${e()}-${e()}-${e()}${e()}${e()}`;
1192
+ }
1193
+ var qn = /* @__PURE__ */ new WeakMap();
1194
+ function Jn(e, t) {
1195
+ if (!an(e)) return "";
1196
+ let n = e.substr(4, e.length - 5), r = qn.get(t);
1197
+ if (r || (r = /* @__PURE__ */ new Map(), qn.set(t, r)), r.has(n)) return r.get(n);
1198
+ let i = getComputedStyle(t).getPropertyValue(n);
1199
+ return r.set(n, i), i;
1200
+ }
1201
+ function Yn(e, t) {
1202
+ return Gn(Jn(e, t));
1203
+ }
1204
+ function Xn(e) {
1205
+ return typeof e == "number" ? e : Gn(e);
1206
+ }
1117
1207
  //#endregion
1118
1208
  //#region node_modules/@juggle/resize-observer/lib/utils/resizeObservers.js
1119
- var Dn = [], On = function() {
1120
- return Dn.some(function(e) {
1209
+ var Zn = [], Qn = function() {
1210
+ return Zn.some(function(e) {
1121
1211
  return e.activeTargets.length > 0;
1122
1212
  });
1123
- }, kn = function() {
1124
- return Dn.some(function(e) {
1213
+ }, $n = function() {
1214
+ return Zn.some(function(e) {
1125
1215
  return e.skippedTargets.length > 0;
1126
1216
  });
1127
- }, An = "ResizeObserver loop completed with undelivered notifications.", jn = function() {
1217
+ }, er = "ResizeObserver loop completed with undelivered notifications.", tr = function() {
1128
1218
  var e;
1129
- typeof ErrorEvent == "function" ? e = new ErrorEvent("error", { message: An }) : (e = document.createEvent("Event"), e.initEvent("error", !1, !1), e.message = An), window.dispatchEvent(e);
1130
- }, Mn;
1219
+ typeof ErrorEvent == "function" ? e = new ErrorEvent("error", { message: er }) : (e = document.createEvent("Event"), e.initEvent("error", !1, !1), e.message = er), window.dispatchEvent(e);
1220
+ }, nr;
1131
1221
  (function(e) {
1132
1222
  e.BORDER_BOX = "border-box", e.CONTENT_BOX = "content-box", e.DEVICE_PIXEL_CONTENT_BOX = "device-pixel-content-box";
1133
- })(Mn ||= {});
1223
+ })(nr ||= {});
1134
1224
  //#endregion
1135
1225
  //#region node_modules/@juggle/resize-observer/lib/utils/freeze.js
1136
- var Nn = function(e) {
1226
+ var rr = function(e) {
1137
1227
  return Object.freeze(e);
1138
- }, Pn = function() {
1228
+ }, ir = function() {
1139
1229
  function e(e, t) {
1140
- this.inlineSize = e, this.blockSize = t, Nn(this);
1230
+ this.inlineSize = e, this.blockSize = t, rr(this);
1141
1231
  }
1142
1232
  return e;
1143
- }(), Fn = function() {
1233
+ }(), ar = function() {
1144
1234
  function e(e, t, n, r) {
1145
- return this.x = e, this.y = t, this.width = n, this.height = r, this.top = this.y, this.left = this.x, this.bottom = this.top + this.height, this.right = this.left + this.width, Nn(this);
1235
+ return this.x = e, this.y = t, this.width = n, this.height = r, this.top = this.y, this.left = this.x, this.bottom = this.top + this.height, this.right = this.left + this.width, rr(this);
1146
1236
  }
1147
1237
  return e.prototype.toJSON = function() {
1148
1238
  var e = this;
@@ -1159,20 +1249,20 @@ var Nn = function(e) {
1159
1249
  }, e.fromRect = function(t) {
1160
1250
  return new e(t.x, t.y, t.width, t.height);
1161
1251
  }, e;
1162
- }(), In = function(e) {
1252
+ }(), or = function(e) {
1163
1253
  return e instanceof SVGElement && "getBBox" in e;
1164
- }, Ln = function(e) {
1165
- if (In(e)) {
1254
+ }, sr = function(e) {
1255
+ if (or(e)) {
1166
1256
  var t = e.getBBox(), n = t.width, r = t.height;
1167
1257
  return !n && !r;
1168
1258
  }
1169
1259
  var i = e, a = i.offsetWidth, o = i.offsetHeight;
1170
1260
  return !(a || o || e.getClientRects().length);
1171
- }, Rn = function(e) {
1261
+ }, cr = function(e) {
1172
1262
  if (e instanceof Element) return !0;
1173
1263
  var t = e?.ownerDocument?.defaultView;
1174
1264
  return !!(t && e instanceof t.Element);
1175
- }, zn = function(e) {
1265
+ }, lr = function(e) {
1176
1266
  switch (e.tagName) {
1177
1267
  case "INPUT": if (e.type !== "image") break;
1178
1268
  case "VIDEO":
@@ -1184,50 +1274,50 @@ var Nn = function(e) {
1184
1274
  case "IMG": return !0;
1185
1275
  }
1186
1276
  return !1;
1187
- }, Bn = typeof window < "u" ? window : {}, Vn = /* @__PURE__ */ new WeakMap(), Hn = /auto|scroll/, Un = /^tb|vertical/, Wn = /msie|trident/i.test(Bn.navigator && Bn.navigator.userAgent), Y = function(e) {
1277
+ }, ur = typeof window < "u" ? window : {}, dr = /* @__PURE__ */ new WeakMap(), fr = /auto|scroll/, pr = /^tb|vertical/, mr = /msie|trident/i.test(ur.navigator && ur.navigator.userAgent), Q = function(e) {
1188
1278
  return parseFloat(e || "0");
1189
- }, Gn = function(e, t, n) {
1190
- return e === void 0 && (e = 0), t === void 0 && (t = 0), n === void 0 && (n = !1), new Pn((n ? t : e) || 0, (n ? e : t) || 0);
1191
- }, Kn = Nn({
1192
- devicePixelContentBoxSize: Gn(),
1193
- borderBoxSize: Gn(),
1194
- contentBoxSize: Gn(),
1195
- contentRect: new Fn(0, 0, 0, 0)
1196
- }), qn = function(e, t) {
1197
- if (t === void 0 && (t = !1), Vn.has(e) && !t) return Vn.get(e);
1198
- if (Ln(e)) return Vn.set(e, Kn), Kn;
1199
- var n = getComputedStyle(e), r = In(e) && e.ownerSVGElement && e.getBBox(), i = !Wn && n.boxSizing === "border-box", a = Un.test(n.writingMode || ""), o = !r && Hn.test(n.overflowY || ""), s = !r && Hn.test(n.overflowX || ""), c = r ? 0 : Y(n.paddingTop), l = r ? 0 : Y(n.paddingRight), u = r ? 0 : Y(n.paddingBottom), d = r ? 0 : Y(n.paddingLeft), f = r ? 0 : Y(n.borderTopWidth), p = r ? 0 : Y(n.borderRightWidth), m = r ? 0 : Y(n.borderBottomWidth), h = r ? 0 : Y(n.borderLeftWidth), g = d + l, _ = c + u, v = h + p, y = f + m, b = s ? e.offsetHeight - y - e.clientHeight : 0, x = o ? e.offsetWidth - v - e.clientWidth : 0, S = i ? g + v : 0, C = i ? _ + y : 0, w = r ? r.width : Y(n.width) - S - x, T = r ? r.height : Y(n.height) - C - b, E = w + g + x + v, D = T + _ + b + y, O = Nn({
1200
- devicePixelContentBoxSize: Gn(Math.round(w * devicePixelRatio), Math.round(T * devicePixelRatio), a),
1201
- borderBoxSize: Gn(E, D, a),
1202
- contentBoxSize: Gn(w, T, a),
1203
- contentRect: new Fn(d, c, w, T)
1279
+ }, hr = function(e, t, n) {
1280
+ return e === void 0 && (e = 0), t === void 0 && (t = 0), n === void 0 && (n = !1), new ir((n ? t : e) || 0, (n ? e : t) || 0);
1281
+ }, gr = rr({
1282
+ devicePixelContentBoxSize: hr(),
1283
+ borderBoxSize: hr(),
1284
+ contentBoxSize: hr(),
1285
+ contentRect: new ar(0, 0, 0, 0)
1286
+ }), _r = function(e, t) {
1287
+ if (t === void 0 && (t = !1), dr.has(e) && !t) return dr.get(e);
1288
+ if (sr(e)) return dr.set(e, gr), gr;
1289
+ var n = getComputedStyle(e), r = or(e) && e.ownerSVGElement && e.getBBox(), i = !mr && n.boxSizing === "border-box", a = pr.test(n.writingMode || ""), o = !r && fr.test(n.overflowY || ""), s = !r && fr.test(n.overflowX || ""), c = r ? 0 : Q(n.paddingTop), l = r ? 0 : Q(n.paddingRight), u = r ? 0 : Q(n.paddingBottom), d = r ? 0 : Q(n.paddingLeft), f = r ? 0 : Q(n.borderTopWidth), p = r ? 0 : Q(n.borderRightWidth), m = r ? 0 : Q(n.borderBottomWidth), h = r ? 0 : Q(n.borderLeftWidth), g = d + l, _ = c + u, v = h + p, y = f + m, b = s ? e.offsetHeight - y - e.clientHeight : 0, x = o ? e.offsetWidth - v - e.clientWidth : 0, S = i ? g + v : 0, C = i ? _ + y : 0, w = r ? r.width : Q(n.width) - S - x, T = r ? r.height : Q(n.height) - C - b, E = w + g + x + v, D = T + _ + b + y, O = rr({
1290
+ devicePixelContentBoxSize: hr(Math.round(w * devicePixelRatio), Math.round(T * devicePixelRatio), a),
1291
+ borderBoxSize: hr(E, D, a),
1292
+ contentBoxSize: hr(w, T, a),
1293
+ contentRect: new ar(d, c, w, T)
1204
1294
  });
1205
- return Vn.set(e, O), O;
1206
- }, Jn = function(e, t, n) {
1207
- var r = qn(e, n), i = r.borderBoxSize, a = r.contentBoxSize, o = r.devicePixelContentBoxSize;
1295
+ return dr.set(e, O), O;
1296
+ }, vr = function(e, t, n) {
1297
+ var r = _r(e, n), i = r.borderBoxSize, a = r.contentBoxSize, o = r.devicePixelContentBoxSize;
1208
1298
  switch (t) {
1209
- case Mn.DEVICE_PIXEL_CONTENT_BOX: return o;
1210
- case Mn.BORDER_BOX: return i;
1299
+ case nr.DEVICE_PIXEL_CONTENT_BOX: return o;
1300
+ case nr.BORDER_BOX: return i;
1211
1301
  default: return a;
1212
1302
  }
1213
- }, Yn = function() {
1303
+ }, yr = function() {
1214
1304
  function e(e) {
1215
- var t = qn(e);
1216
- this.target = e, this.contentRect = t.contentRect, this.borderBoxSize = Nn([t.borderBoxSize]), this.contentBoxSize = Nn([t.contentBoxSize]), this.devicePixelContentBoxSize = Nn([t.devicePixelContentBoxSize]);
1305
+ var t = _r(e);
1306
+ this.target = e, this.contentRect = t.contentRect, this.borderBoxSize = rr([t.borderBoxSize]), this.contentBoxSize = rr([t.contentBoxSize]), this.devicePixelContentBoxSize = rr([t.devicePixelContentBoxSize]);
1217
1307
  }
1218
1308
  return e;
1219
- }(), Xn = function(e) {
1220
- if (Ln(e)) return Infinity;
1309
+ }(), br = function(e) {
1310
+ if (sr(e)) return Infinity;
1221
1311
  for (var t = 0, n = e.parentNode; n;) t += 1, n = n.parentNode;
1222
1312
  return t;
1223
- }, Zn = function() {
1313
+ }, xr = function() {
1224
1314
  var e = Infinity, t = [];
1225
- Dn.forEach(function(n) {
1315
+ Zn.forEach(function(n) {
1226
1316
  if (n.activeTargets.length !== 0) {
1227
1317
  var r = [];
1228
1318
  n.activeTargets.forEach(function(t) {
1229
- var n = new Yn(t.target), i = Xn(t.target);
1230
- r.push(n), t.lastReportedSize = Jn(t.target, t.observedBox), i < e && (e = i);
1319
+ var n = new yr(t.target), i = br(t.target);
1320
+ r.push(n), t.lastReportedSize = vr(t.target, t.observedBox), i < e && (e = i);
1231
1321
  }), t.push(function() {
1232
1322
  n.callback.call(n.observer, r, n.observer);
1233
1323
  }), n.activeTargets.splice(0, n.activeTargets.length);
@@ -1238,42 +1328,42 @@ var Nn = function(e) {
1238
1328
  i();
1239
1329
  }
1240
1330
  return e;
1241
- }, Qn = function(e) {
1242
- Dn.forEach(function(t) {
1331
+ }, Sr = function(e) {
1332
+ Zn.forEach(function(t) {
1243
1333
  t.activeTargets.splice(0, t.activeTargets.length), t.skippedTargets.splice(0, t.skippedTargets.length), t.observationTargets.forEach(function(n) {
1244
- n.isActive() && (Xn(n.target) > e ? t.activeTargets.push(n) : t.skippedTargets.push(n));
1334
+ n.isActive() && (br(n.target) > e ? t.activeTargets.push(n) : t.skippedTargets.push(n));
1245
1335
  });
1246
1336
  });
1247
- }, $n = function() {
1337
+ }, Cr = function() {
1248
1338
  var e = 0;
1249
- for (Qn(e); On();) e = Zn(), Qn(e);
1250
- return kn() && jn(), e > 0;
1251
- }, er, tr = [], nr = function() {
1252
- return tr.splice(0).forEach(function(e) {
1339
+ for (Sr(e); Qn();) e = xr(), Sr(e);
1340
+ return $n() && tr(), e > 0;
1341
+ }, wr, Tr = [], Er = function() {
1342
+ return Tr.splice(0).forEach(function(e) {
1253
1343
  return e();
1254
1344
  });
1255
- }, rr = function(e) {
1256
- if (!er) {
1345
+ }, Dr = function(e) {
1346
+ if (!wr) {
1257
1347
  var t = 0, n = document.createTextNode("");
1258
1348
  new MutationObserver(function() {
1259
- return nr();
1260
- }).observe(n, { characterData: !0 }), er = function() {
1349
+ return Er();
1350
+ }).observe(n, { characterData: !0 }), wr = function() {
1261
1351
  n.textContent = `${t ? t-- : t++}`;
1262
1352
  };
1263
1353
  }
1264
- tr.push(e), er();
1265
- }, ir = function(e) {
1266
- rr(function() {
1354
+ Tr.push(e), wr();
1355
+ }, Or = function(e) {
1356
+ Dr(function() {
1267
1357
  requestAnimationFrame(e);
1268
1358
  });
1269
- }, ar = 0, or = function() {
1270
- return !!ar;
1271
- }, sr = 250, cr = {
1359
+ }, kr = 0, Ar = function() {
1360
+ return !!kr;
1361
+ }, jr = 250, Mr = {
1272
1362
  attributes: !0,
1273
1363
  characterData: !0,
1274
1364
  childList: !0,
1275
1365
  subtree: !0
1276
- }, lr = [
1366
+ }, Nr = [
1277
1367
  "resize",
1278
1368
  "load",
1279
1369
  "transitionend",
@@ -1288,9 +1378,9 @@ var Nn = function(e) {
1288
1378
  "mouseout",
1289
1379
  "blur",
1290
1380
  "focus"
1291
- ], ur = function(e) {
1381
+ ], Pr = function(e) {
1292
1382
  return e === void 0 && (e = 0), Date.now() + e;
1293
- }, dr = !1, fr = new (function() {
1383
+ }, Fr = !1, Ir = new (function() {
1294
1384
  function e() {
1295
1385
  var e = this;
1296
1386
  this.stopped = !0, this.listener = function() {
@@ -1299,15 +1389,15 @@ var Nn = function(e) {
1299
1389
  }
1300
1390
  return e.prototype.run = function(e) {
1301
1391
  var t = this;
1302
- if (e === void 0 && (e = sr), !dr) {
1303
- dr = !0;
1304
- var n = ur(e);
1305
- ir(function() {
1392
+ if (e === void 0 && (e = jr), !Fr) {
1393
+ Fr = !0;
1394
+ var n = Pr(e);
1395
+ Or(function() {
1306
1396
  var r = !1;
1307
1397
  try {
1308
- r = $n();
1398
+ r = Cr();
1309
1399
  } finally {
1310
- if (dr = !1, e = n - ur(), !or()) return;
1400
+ if (Fr = !1, e = n - Pr(), !Ar()) return;
1311
1401
  r ? t.run(1e3) : e > 0 ? t.run(e) : t.start();
1312
1402
  }
1313
1403
  });
@@ -1316,80 +1406,80 @@ var Nn = function(e) {
1316
1406
  this.stop(), this.run();
1317
1407
  }, e.prototype.observe = function() {
1318
1408
  var e = this, t = function() {
1319
- return e.observer && e.observer.observe(document.body, cr);
1409
+ return e.observer && e.observer.observe(document.body, Mr);
1320
1410
  };
1321
- document.body ? t() : Bn.addEventListener("DOMContentLoaded", t);
1411
+ document.body ? t() : ur.addEventListener("DOMContentLoaded", t);
1322
1412
  }, e.prototype.start = function() {
1323
1413
  var e = this;
1324
- this.stopped && (this.stopped = !1, this.observer = new MutationObserver(this.listener), this.observe(), lr.forEach(function(t) {
1325
- return Bn.addEventListener(t, e.listener, !0);
1414
+ this.stopped && (this.stopped = !1, this.observer = new MutationObserver(this.listener), this.observe(), Nr.forEach(function(t) {
1415
+ return ur.addEventListener(t, e.listener, !0);
1326
1416
  }));
1327
1417
  }, e.prototype.stop = function() {
1328
1418
  var e = this;
1329
- this.stopped ||= (this.observer && this.observer.disconnect(), lr.forEach(function(t) {
1330
- return Bn.removeEventListener(t, e.listener, !0);
1419
+ this.stopped ||= (this.observer && this.observer.disconnect(), Nr.forEach(function(t) {
1420
+ return ur.removeEventListener(t, e.listener, !0);
1331
1421
  }), !0);
1332
1422
  }, e;
1333
- }())(), pr = function(e) {
1334
- !ar && e > 0 && fr.start(), ar += e, !ar && fr.stop();
1335
- }, mr = function(e) {
1336
- return !In(e) && !zn(e) && getComputedStyle(e).display === "inline";
1337
- }, hr = function() {
1423
+ }())(), Lr = function(e) {
1424
+ !kr && e > 0 && Ir.start(), kr += e, !kr && Ir.stop();
1425
+ }, Rr = function(e) {
1426
+ return !or(e) && !lr(e) && getComputedStyle(e).display === "inline";
1427
+ }, zr = function() {
1338
1428
  function e(e, t) {
1339
- this.target = e, this.observedBox = t || Mn.CONTENT_BOX, this.lastReportedSize = {
1429
+ this.target = e, this.observedBox = t || nr.CONTENT_BOX, this.lastReportedSize = {
1340
1430
  inlineSize: 0,
1341
1431
  blockSize: 0
1342
1432
  };
1343
1433
  }
1344
1434
  return e.prototype.isActive = function() {
1345
- var e = Jn(this.target, this.observedBox, !0);
1346
- return mr(this.target) && (this.lastReportedSize = e), this.lastReportedSize.inlineSize !== e.inlineSize || this.lastReportedSize.blockSize !== e.blockSize;
1435
+ var e = vr(this.target, this.observedBox, !0);
1436
+ return Rr(this.target) && (this.lastReportedSize = e), this.lastReportedSize.inlineSize !== e.inlineSize || this.lastReportedSize.blockSize !== e.blockSize;
1347
1437
  }, e;
1348
- }(), gr = function() {
1438
+ }(), Br = function() {
1349
1439
  function e(e, t) {
1350
1440
  this.activeTargets = [], this.skippedTargets = [], this.observationTargets = [], this.observer = e, this.callback = t;
1351
1441
  }
1352
1442
  return e;
1353
- }(), _r = /* @__PURE__ */ new WeakMap(), vr = function(e, t) {
1443
+ }(), Vr = /* @__PURE__ */ new WeakMap(), Hr = function(e, t) {
1354
1444
  for (var n = 0; n < e.length; n += 1) if (e[n].target === t) return n;
1355
1445
  return -1;
1356
- }, yr = function() {
1446
+ }, Ur = function() {
1357
1447
  function e() {}
1358
1448
  return e.connect = function(e, t) {
1359
- var n = new gr(e, t);
1360
- _r.set(e, n);
1449
+ var n = new Br(e, t);
1450
+ Vr.set(e, n);
1361
1451
  }, e.observe = function(e, t, n) {
1362
- var r = _r.get(e), i = r.observationTargets.length === 0;
1363
- vr(r.observationTargets, t) < 0 && (i && Dn.push(r), r.observationTargets.push(new hr(t, n && n.box)), pr(1), fr.schedule());
1452
+ var r = Vr.get(e), i = r.observationTargets.length === 0;
1453
+ Hr(r.observationTargets, t) < 0 && (i && Zn.push(r), r.observationTargets.push(new zr(t, n && n.box)), Lr(1), Ir.schedule());
1364
1454
  }, e.unobserve = function(e, t) {
1365
- var n = _r.get(e), r = vr(n.observationTargets, t), i = n.observationTargets.length === 1;
1366
- r >= 0 && (i && Dn.splice(Dn.indexOf(n), 1), n.observationTargets.splice(r, 1), pr(-1));
1455
+ var n = Vr.get(e), r = Hr(n.observationTargets, t), i = n.observationTargets.length === 1;
1456
+ r >= 0 && (i && Zn.splice(Zn.indexOf(n), 1), n.observationTargets.splice(r, 1), Lr(-1));
1367
1457
  }, e.disconnect = function(e) {
1368
- var t = this, n = _r.get(e);
1458
+ var t = this, n = Vr.get(e);
1369
1459
  n.observationTargets.slice().forEach(function(n) {
1370
1460
  return t.unobserve(e, n.target);
1371
1461
  }), n.activeTargets.splice(0, n.activeTargets.length);
1372
1462
  }, e;
1373
- }(), br = function() {
1463
+ }(), Wr = function() {
1374
1464
  function e(e) {
1375
1465
  if (arguments.length === 0) throw TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");
1376
1466
  if (typeof e != "function") throw TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");
1377
- yr.connect(this, e);
1467
+ Ur.connect(this, e);
1378
1468
  }
1379
1469
  return e.prototype.observe = function(e, t) {
1380
1470
  if (arguments.length === 0) throw TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");
1381
- if (!Rn(e)) throw TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");
1382
- yr.observe(this, e, t);
1471
+ if (!cr(e)) throw TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");
1472
+ Ur.observe(this, e, t);
1383
1473
  }, e.prototype.unobserve = function(e) {
1384
1474
  if (arguments.length === 0) throw TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");
1385
- if (!Rn(e)) throw TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");
1386
- yr.unobserve(this, e);
1475
+ if (!cr(e)) throw TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");
1476
+ Ur.unobserve(this, e);
1387
1477
  }, e.prototype.disconnect = function() {
1388
- yr.disconnect(this);
1478
+ Ur.disconnect(this);
1389
1479
  }, e.toString = function() {
1390
1480
  return "function ResizeObserver () { [polyfill code] }";
1391
1481
  }, e;
1392
- }(), xr = globalThis.ResizeObserver || br, Sr = {
1482
+ }(), Gr = globalThis.ResizeObserver || Wr, Kr = {
1393
1483
  duration: void 0,
1394
1484
  margin: {
1395
1485
  top: 0,
@@ -1403,21 +1493,25 @@ var Nn = function(e) {
1403
1493
  left: 0,
1404
1494
  right: 0
1405
1495
  },
1406
- sizing: J.Fit,
1496
+ sizing: Z.Fit,
1407
1497
  width: void 0,
1408
1498
  height: void 0,
1409
1499
  svgDefs: void 0,
1410
- ariaLabel: void 0
1411
- }, Cr = class e {
1500
+ ariaLabel: void 0,
1501
+ colorFunction: void 0
1502
+ }, qr = class e {
1412
1503
  constructor(t) {
1413
- this._defaultConfig = Sr, this._isFirstRender = !0, this._renderAnimationFrameId = null, this._container = t;
1504
+ this._defaultConfig = Kr, this._isFirstRender = !0, this._renderAnimationFrameId = null, this._container = t;
1414
1505
  let n = c(this._container);
1415
1506
  n.attr("role", "figure"), this.svg = n.append("svg").style("display", "block").attr("xmlns", "http://www.w3.org/2000/svg").attr("height", e.DEFAULT_CONTAINER_HEIGHT).attr("aria-hidden", !0), this._svgDefs = this.svg.append("defs"), this._svgDefsExternal = this.svg.append("defs"), this.element = this.svg.node();
1416
1507
  }
1417
1508
  updateContainer(e) {
1418
- this.prevConfig = this.config, this.config = Qt(this._defaultConfig, e), e?.svgDefs !== this.prevConfig?.svgDefs && (this._svgDefsExternal.selectAll("*").remove(), this._svgDefsExternal.html(e.svgDefs));
1509
+ this.prevConfig = this.config, this.config = fn(this._defaultConfig, e), e?.svgDefs !== this.prevConfig?.svgDefs && (this._svgDefsExternal.selectAll("*").remove(), this._svgDefsExternal.html(e.svgDefs));
1419
1510
  }
1420
1511
  _preRender() {}
1512
+ _propagateSizeAndStyleToComponents(e, t) {
1513
+ for (let n of e) n && (n.setSize(this.width, this.height, this.containerWidth, this.containerHeight), n.setContainerMargin(t), n.setColorFunction(this.config.colorFunction));
1514
+ }
1421
1515
  _render(e) {
1422
1516
  let { config: t } = this;
1423
1517
  c(this._container).attr("aria-label", t.ariaLabel), this._isFirstRender = !1;
@@ -1429,23 +1523,32 @@ var Nn = function(e) {
1429
1523
  });
1430
1524
  }
1431
1525
  get containerWidth() {
1432
- return this.config.width ? this.element.clientWidth : this._container.clientWidth || this._container.getBoundingClientRect().width;
1526
+ return this.config.width ? this.element.clientWidth || Xn(this.config.width) || 0 : this._container.clientWidth || this._container.getBoundingClientRect().width;
1433
1527
  }
1434
1528
  get containerHeight() {
1435
- return this.config.height ? this.element.clientHeight : this._container.clientHeight || this._container.getBoundingClientRect().height || e.DEFAULT_CONTAINER_HEIGHT;
1529
+ return this.config.height ? this.element.clientHeight || Xn(this.config.height) || 0 : this._container.clientHeight || this._container.getBoundingClientRect().height || e.DEFAULT_CONTAINER_HEIGHT;
1436
1530
  }
1437
1531
  get width() {
1438
- return rn(this.containerWidth - this.config.margin.left - this.config.margin.right, 0, Infinity);
1532
+ return gn(this.containerWidth - this.config.margin.left - this.config.margin.right, 0, Infinity);
1439
1533
  }
1440
1534
  get height() {
1441
- return rn(this.containerHeight - this.config.margin.top - this.config.margin.bottom, 0, Infinity);
1535
+ return gn(this.containerHeight - this.config.margin.top - this.config.margin.bottom, 0, Infinity);
1442
1536
  }
1443
1537
  _removeAllChildren() {
1444
1538
  for (; this.element.firstChild;) this.element.removeChild(this.element.firstChild);
1445
1539
  }
1540
+ _reconcileChildren(e) {
1541
+ let t = e.filter(Boolean), n = new Set(t), r = this.element.firstChild;
1542
+ for (; r;) {
1543
+ let e = r.nextSibling;
1544
+ n.has(r) || this.element.removeChild(r), r = e;
1545
+ }
1546
+ let i = this.element.firstChild;
1547
+ for (let e of t) e === i ? i = i.nextSibling : this.element.insertBefore(e, i);
1548
+ }
1446
1549
  _onResize() {
1447
1550
  let { config: e } = this;
1448
- (e.sizing === J.Fit || e.sizing === J.FitWidth) && this.render(0);
1551
+ (e.sizing === Z.Fit || e.sizing === Z.FitWidth) && this.render(0);
1449
1552
  }
1450
1553
  _setUpResizeObserver() {
1451
1554
  if (this._resizeObserver) return;
@@ -1453,133 +1556,45 @@ var Nn = function(e) {
1453
1556
  this._containerSize = {
1454
1557
  width: e.width,
1455
1558
  height: e.height
1456
- }, this._resizeObserver = new xr((e, t) => {
1559
+ }, this._resizeObserver = new Gr((e, t) => {
1457
1560
  cancelAnimationFrame(this._resizeObserverAnimationFrameId), this._resizeObserverAnimationFrameId = requestAnimationFrame(() => {
1458
1561
  let e = this._container.getBoundingClientRect(), t = {
1459
1562
  width: e.width,
1460
1563
  height: e.height
1461
1564
  };
1462
- !Yt(this._containerSize, t) && t.width && t.height && (this._containerSize = t, this._onResize());
1565
+ !un(this._containerSize, t) && t.width && t.height && (this._containerSize = t, this._onResize());
1463
1566
  });
1464
1567
  }), this._resizeObserver.observe(this._container);
1465
1568
  }
1466
1569
  destroy() {
1467
- var e;
1468
- cancelAnimationFrame(this._renderAnimationFrameId), cancelAnimationFrame(this._resizeObserverAnimationFrameId), (e = this._resizeObserver) == null || e.disconnect(), this.svg.remove();
1570
+ cancelAnimationFrame(this._renderAnimationFrameId), cancelAnimationFrame(this._resizeObserverAnimationFrameId), this._resizeObserver?.disconnect(), this.svg.remove();
1469
1571
  }
1470
1572
  };
1471
- Cr.DEFAULT_CONTAINER_HEIGHT = 300;
1472
- //#endregion
1473
- //#region node_modules/@unovis/ts/utils/to-px.js
1474
- function wr(e) {
1475
- return e = String(e), [parseFloat(e), e.match(/[\d.\-+]*\s*(.*)/)?.[1] || ""];
1476
- }
1477
- function Tr() {
1478
- return typeof window < "u" && typeof document < "u";
1479
- }
1480
- function Er(e, t) {
1481
- let n = wr(getComputedStyle(e).getPropertyValue(t));
1482
- return n[0] * (Ar(n[1], e) ?? 1);
1483
- }
1484
- function Dr(e, t) {
1485
- let n = document.createElement("div");
1486
- n.style.height = `128${e}`, t.appendChild(n);
1487
- let r = Er(n, "height") / 128;
1488
- return t.removeChild(n), r;
1489
- }
1490
- var Or = null;
1491
- function kr() {
1492
- return Tr() ? (Or === null && (Or = Dr("in", document.body)), Or) : 96;
1493
- }
1494
- function Ar(e, t) {
1495
- if (!e && e !== 0) return null;
1496
- if (!Tr()) {
1497
- let t = wr(String(e));
1498
- if (!isNaN(t[0])) {
1499
- let e = t[1]?.toLowerCase() || "px";
1500
- if (e === "px" || e === "") return t[0];
1501
- if (e === "em" || e === "rem") return t[0] * 16;
1502
- if (e === "in") return t[0] * 96;
1503
- if (e === "cm") return t[0] * (96 / 2.54);
1504
- if (e === "mm") return t[0] * (96 / 25.4);
1505
- if (e === "pt") return t[0] * (96 / 72);
1506
- if (e === "pc") return t[0] * 16;
1507
- }
1508
- return null;
1509
- }
1510
- let n = document.body;
1511
- t && t !== window && t !== document && (n = t);
1512
- let r = (String(e) || "px").trim().toLowerCase();
1513
- switch (r) {
1514
- case "%": return n.clientHeight / 100;
1515
- case "ch":
1516
- case "ex": return Dr(r, n);
1517
- case "em": return Er(n, "font-size");
1518
- case "rem": return Er(document.body, "font-size");
1519
- case "vw": return window.innerWidth / 100;
1520
- case "vh": return window.innerHeight / 100;
1521
- case "vmin": return Math.min(window.innerWidth, window.innerHeight) / 100;
1522
- case "vmax": return Math.max(window.innerWidth, window.innerHeight) / 100;
1523
- case "in": return kr();
1524
- case "cm": return kr() / 2.54;
1525
- case "mm": return kr() / 25.4;
1526
- case "pt": return kr() / 72;
1527
- case "pc": return kr() / 6;
1528
- case "px": return 1;
1529
- }
1530
- let i = wr(r);
1531
- if (!isNaN(i[0])) {
1532
- if (i[1]) {
1533
- let e = Ar(i[1], n);
1534
- return typeof e == "number" ? i[0] * e : null;
1535
- }
1536
- return i[0];
1537
- }
1538
- return null;
1539
- }
1540
- //#endregion
1541
- //#region node_modules/@unovis/ts/utils/misc.js
1542
- function jr() {
1543
- let e = () => Math.floor((1 + crypto.getRandomValues(/* @__PURE__ */ new Uint32Array(1))[0]) * 65536).toString(16).substring(1);
1544
- return `${e() + e()}-${e()}-${e()}-${e()}-${e()}${e()}${e()}`;
1545
- }
1546
- var Mr = /* @__PURE__ */ new WeakMap();
1547
- function Nr(e, t) {
1548
- if (!Wt(e)) return "";
1549
- let n = e.substr(4, e.length - 5), r = Mr.get(t);
1550
- if (r || (r = /* @__PURE__ */ new Map(), Mr.set(t, r)), r.has(n)) return r.get(n);
1551
- let i = getComputedStyle(t).getPropertyValue(n);
1552
- return r.set(n, i), i;
1553
- }
1554
- function Pr(e, t) {
1555
- return Ar(Nr(e, t));
1556
- }
1557
- //#endregion
1558
- //#region node_modules/@unovis/ts/utils/theme.js
1559
- var Fr = "html[data-theme=\"dark\"],html.dark-theme,body.dark-theme,html.theme-dark,body.theme-dark", Ir = (globalThis == null ? void 0 : globalThis.UNOVIS_COLORS) || [
1573
+ qr.DEFAULT_CONTAINER_HEIGHT = 300;
1574
+ var Jr = qr, Yr = "html[data-theme=\"dark\"],html.dark-theme,body.dark-theme,html.theme-dark,body.theme-dark", Xr = globalThis?.UNOVIS_COLORS || [
1560
1575
  "#4D8CFD",
1561
1576
  "#FF6B7E",
1562
1577
  "#F4B83E",
1563
1578
  "#A6CC74",
1564
1579
  "#00C19A",
1565
1580
  "#6859BE"
1566
- ], Lr = (globalThis == null ? void 0 : globalThis.UNOVIS_COLORS_DARK) || [
1581
+ ], Zr = globalThis?.UNOVIS_COLORS_DARK || [
1567
1582
  "#4D8CFD",
1568
1583
  "#FF6B7E",
1569
1584
  "#FFC16D",
1570
1585
  "#A6CC74",
1571
1586
  "#00C19A",
1572
1587
  "#7887E0"
1573
- ], X = (e) => `--vis-${Vt(e) ? `color${e % Ir.length}` : e}`;
1574
- function Rr(e, t = .4) {
1588
+ ], Qr = (e) => `--vis-${tn(e) ? `color${e % Xr.length}` : e}`;
1589
+ function $r(e, t = .4) {
1575
1590
  let n = u(e);
1576
1591
  return n.l *= 1 + t, n.formatHex();
1577
1592
  }
1578
- function zr(e, t = .4, n = .6) {
1593
+ function ei(e, t = .4, n = .6) {
1579
1594
  let r = u(e);
1580
1595
  return r.s *= 1 - n, r.l *= 1 - t, r.formatHex();
1581
1596
  }
1582
- var Br = [
1597
+ var ti = [
1583
1598
  {
1584
1599
  id: "stripes-diagonal",
1585
1600
  svg: "<path d=\"M-1,1 l2,-2 M0,10 l10,-10 M9,11 l2,-2\" stroke=\"#000\"/>"
@@ -1604,7 +1619,7 @@ var Br = [
1604
1619
  id: "circles",
1605
1620
  svg: "<circle cx=\"5\" cy=\"5\" r=\"3\" stroke=\"#000\" fill=\"#fff\"/>"
1606
1621
  }
1607
- ], Vr = [
1622
+ ], ni = [
1608
1623
  {
1609
1624
  id: "circle",
1610
1625
  marker: "<circle cx=\"5\" cy=\"5\" r=\"5\"/>",
@@ -1640,18 +1655,38 @@ var Br = [
1640
1655
  marker: "<path d=\"m2 9 3-9 3 9L0 3h10Z\"/>",
1641
1656
  dashArray: [1, 6]
1642
1657
  }
1643
- ];
1644
- function Z(e) {
1658
+ ], ri = new Map(ti.map((e) => [e.id, e])), ii = new Map(ni.map((e) => [e.id, e]));
1659
+ function ai(e) {
1645
1660
  return `vis-${`pattern-${e.svg ? "fill" : "marker"}`}-${e.id}`;
1646
1661
  }
1647
- var Hr = (e) => `<mask id="${Z(e)}">
1648
- <pattern id="${e.id}" viewBox="0 0 10 10" width="10" height="10" patternUnits="userSpaceOnUse">
1649
- <rect width="100%" height="100%" fill="#fff"/>
1662
+ function oi(e) {
1663
+ return `vis-pattern-fill-${e}`;
1664
+ }
1665
+ function si(e) {
1666
+ return `vis-pattern-marker-${e}`;
1667
+ }
1668
+ function ci(e) {
1669
+ return `vis-pattern-marker-ctx-${e}`;
1670
+ }
1671
+ function li(e) {
1672
+ return ri.get(e) ?? ii.get(e) ?? null;
1673
+ }
1674
+ var ui = (e) => `<mask id="${oi(e.id)}">
1675
+ <pattern id="vis-pattern-tile-${e.id}" viewBox="0 0 10 10" width="10" height="10" patternUnits="userSpaceOnUse">
1676
+ <rect width="10" height="10" fill="#fff"/>
1650
1677
  ${e.svg}
1651
1678
  </pattern>
1652
- <rect x="-50%" y="-50%" width="200%" height="200%" fill="url(#${e.id})"/>
1653
- </mask>`, Ur = (e, t) => `<marker id="${Z(e)}"
1654
- fill="var(${X(t)})"
1679
+ <rect x="-100000" y="-100000" width="200000" height="200000" fill="url(#vis-pattern-tile-${e.id})"/>
1680
+ </mask>`, di = (e, t) => `<marker id="${si(e.id)}"
1681
+ fill="var(${Qr(t)})"
1682
+ markerUnits="userSpaceOnUse"
1683
+ refX="5"
1684
+ refY="5"
1685
+ markerWidth="10"
1686
+ markerHeight="10">
1687
+ ${e.marker}
1688
+ </marker>`, fi = (e) => `<marker id="${ci(e.id)}"
1689
+ fill="context-stroke"
1655
1690
  markerUnits="userSpaceOnUse"
1656
1691
  refX="5"
1657
1692
  refY="5"
@@ -1659,65 +1694,187 @@ var Hr = (e) => `<mask id="${Z(e)}">
1659
1694
  markerHeight="10">
1660
1695
  ${e.marker}
1661
1696
  </marker>`;
1662
- function Wr() {
1663
- let e = Br.map(Hr).concat(Vr.map(Ur)).join(""), t = document.createElementNS("http://www.w3.org/2000/svg", "svg");
1664
- t.setAttribute("height", "100%"), t.setAttribute("width", "100%"), t.style.position = "fixed", t.style.zIndex = "-99999999", t.innerHTML = `<defs>${e}</defs>`, document.body.appendChild(t);
1665
- }
1666
- typeof window < "u" && Wr(), globalThis != null && globalThis.UNOVIS_ICON_FONT_FAMILY;
1667
- var Gr = (globalThis == null ? void 0 : globalThis.UNOVIS_FONT_W2H_RATIO_DEFAULT) || .5;
1668
- globalThis != null && globalThis.UNOVIS_TEXT_SEPARATOR_DEFAULT, globalThis != null && globalThis.UNOVIS_TEXT_HYPHEN_CHARACTER_DEFAULT;
1669
- var Kr = (globalThis == null ? void 0 : globalThis.UNOVIS_TEXT_DEFAULT) || {
1697
+ function pi() {
1698
+ let e = ni.map((e, t) => di(e, t)).concat(ni.map(fi)), t = ti.map(ui).concat(e).join(""), n = document.createElementNS("http://www.w3.org/2000/svg", "svg");
1699
+ n.setAttribute("height", "0"), n.setAttribute("width", "0"), n.style.position = "fixed", n.style.zIndex = "-99999999", n.innerHTML = `<defs>${t}</defs>`, document.body.appendChild(n);
1700
+ }
1701
+ typeof window < "u" && pi();
1702
+ //#endregion
1703
+ //#region node_modules/@unovis/ts/utils/color.js
1704
+ var mi = a().range(Array.from({ length: Xr.length }, (e, t) => `var(${Qr(t)})`)).domain(Array.from({ length: Xr.length }, (e, t) => t));
1705
+ function hi(e, t, n, r, i) {
1706
+ if (Array.isArray(t) && isFinite(n)) return t[n % t.length];
1707
+ let a;
1708
+ if (a = nn(t) ? t(e, n, r) : t, a) return a;
1709
+ let o = i?.colorFn ?? mi;
1710
+ if (typeof r == "string" && r) return o(r);
1711
+ let s = i?.dontFallbackToCssVar ?? r === !0;
1712
+ return tn(n) && !s ? o(n % Xr.length) : null;
1713
+ }
1714
+ function gi(e) {
1715
+ let t = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);
1716
+ return t ? {
1717
+ r: parseInt(t[1], 16),
1718
+ g: parseInt(t[2], 16),
1719
+ b: parseInt(t[3], 16)
1720
+ } : {
1721
+ r: 0,
1722
+ g: 0,
1723
+ b: 0
1724
+ };
1725
+ }
1726
+ function _i(e) {
1727
+ return (.2126 * e.r + .7152 * e.g + .0722 * e.b) / 255;
1728
+ }
1729
+ function vi(e) {
1730
+ return _i(gi(e));
1731
+ }
1732
+ //#endregion
1733
+ //#region node_modules/@unovis/ts/utils/pattern.js
1734
+ var yi = "unovis-pattern-index";
1735
+ function bi(e, t, n) {
1736
+ let r = Y(e, t, n);
1737
+ return r ? li(r) : null;
1738
+ }
1739
+ function xi(e) {
1740
+ return !e || !("svg" in e) ? null : `url(#${oi(e.id)})`;
1741
+ }
1742
+ globalThis?.UNOVIS_ICON_FONT_FAMILY;
1743
+ var Si = globalThis?.UNOVIS_FONT_W2H_RATIO_DEFAULT || .5;
1744
+ globalThis?.UNOVIS_TEXT_SEPARATOR_DEFAULT, globalThis?.UNOVIS_TEXT_HYPHEN_CHARACTER_DEFAULT;
1745
+ var Ci = globalThis?.UNOVIS_TEXT_DEFAULT_FONT_SIZE || 12, wi = globalThis?.UNOVIS_TEXT_DEFAULT || {
1670
1746
  text: "",
1671
- fontSize: 12,
1747
+ fontSize: Ci,
1672
1748
  fontFamily: "var(--vis-font-family)",
1673
1749
  lineHeight: 1.25,
1674
1750
  marginTop: 0,
1675
1751
  marginBottom: 0
1676
1752
  };
1677
- zt`
1753
+ Xt`
1678
1754
  :root {
1679
1755
  label: vis-root-styles;
1680
1756
  --vis-font-family: Inter, Arial, "Helvetica Neue", Helvetica, sans-serif;
1681
- --vis-font-wh-ratio: ${Gr};
1682
- --vis-color-main: var(${X(0)});
1683
- --vis-color-main-light: ${Rr(Ir[0])};
1684
- --vis-color-main-dark: ${zr(Ir[0])};
1757
+ --vis-font-wh-ratio: ${Si};
1758
+ --vis-color-main: var(${Qr(0)});
1759
+ --vis-color-main-light: ${$r(Xr[0])};
1760
+ --vis-color-main-dark: ${ei(Xr[0])};
1685
1761
  --vis-color-grey: #2a2a2a;
1686
- ${Ir.map((e, t) => `${X(t)}: ${e};`)}
1687
- ${Lr.map((e, t) => `--vis-dark-color${t}: ${e};`)}
1688
- ${Br.map((e, t) => `
1689
- --${Z(e)}: url(#${Z(e)});
1690
- --vis-pattern-fill${t}: var(--${Z(e)});
1762
+ ${Xr.map((e, t) => `${Qr(t)}: ${e};`)}
1763
+ ${Zr.map((e, t) => `--vis-dark-color${t}: ${e};`)}
1764
+ ${ti.map((e, t) => `
1765
+ --${ai(e)}: url(#${ai(e)});
1766
+ --vis-pattern-fill${t}: var(--${ai(e)});
1691
1767
  `)}
1692
- ${Vr.map((e, t) => `
1693
- --${Z(e)}: url(#${Z(e)});
1694
- --vis-pattern-marker${t}: var(--${Z(e)});
1768
+ ${ni.map((e, t) => `
1769
+ --${ai(e)}: url(#${ai(e)});
1770
+ --vis-pattern-marker${t}: var(--${ai(e)});
1695
1771
  --vis-pattern-dasharray${t}: ${e.dashArray?.join(" ")};
1696
1772
  `)}
1697
1773
 
1698
- ${Fr} {
1699
- ${Ir.map((e, t) => `${X(t)}: var(--vis-dark-color${t});`)}
1774
+ ${Yr} {
1775
+ ${Xr.map((e, t) => `${Qr(t)}: var(--vis-dark-color${t});`)}
1700
1776
  }
1701
1777
 
1702
1778
  body.theme-patterns {
1703
- ${Br.map((e, t) => `path[style*="fill: var(${X(t)})"] {
1779
+ ${ti.map((e, t) => `path[${yi}="${t}"][style*="fill"]:not([style*="mask"]) {
1704
1780
  mask: var(--vis-pattern-fill${t});
1705
1781
  }`)}
1706
- ${Vr.map((e, t) => `
1707
- path[stroke="var(${X(t)})"]:not([style*="fill"]),
1708
- path[style*="stroke: var(${X(t)})"]:not([style*="fill"]) {
1782
+ ${ni.map((e, t) => `
1783
+ path[${yi}="${t}"]:not([style*="fill"]):not([style*="marker"]) {
1709
1784
  marker: var(--vis-pattern-marker${t});
1710
1785
  stroke-dasharray: var(--vis-pattern-dasharray${t});
1711
1786
  }
1712
1787
  `)}
1713
1788
  }
1714
1789
  `;
1715
- function qr(e = window == null ? void 0 : window.document.body) {
1716
- return e ? +Nr("var(--vis-font-wh-ratio)", e) : Gr;
1790
+ function Ti(e = window?.document.body) {
1791
+ return e ? +Jn("var(--vis-font-wh-ratio)", e) : Si;
1792
+ }
1793
+ //#endregion
1794
+ //#region node_modules/@unovis/ts/types/text.js
1795
+ var Ei = /* @__PURE__ */ ((e) => (e.Start = "start", e.Middle = "middle", e.End = "end", e))(Ei || {}), Di = 5e3;
1796
+ function Oi(e, t, n) {
1797
+ if (e.size >= Di && !e.has(t)) {
1798
+ let t = e.keys().next().value;
1799
+ t !== void 0 && e.delete(t);
1800
+ }
1801
+ e.set(t, n);
1802
+ }
1803
+ //#endregion
1804
+ //#region node_modules/@unovis/ts/utils/text-measure.js
1805
+ var ki = "", Ai = /* @__PURE__ */ new Map(), ji = /* @__PURE__ */ new WeakMap(), Mi = /* @__PURE__ */ new Map(), Ni = globalThis?.document?.createElement("canvas").getContext("2d") ?? null, Pi = (e, t) => `${t}${ki}${e}`;
1806
+ function Fi() {
1807
+ Ai.clear(), Mi.clear();
1808
+ }
1809
+ globalThis?.document?.fonts?.ready?.then(Fi);
1810
+ function Ii(e, t, n = Ti()) {
1811
+ return e.length * t * n || 0;
1812
+ }
1813
+ function Li(e, t) {
1814
+ if (Ni) return Ni.font !== t && (Ni.font = t), Ni.measureText(e).width;
1815
+ let n = /(\d*\.?\d+)(px|pt|pc|rem|em|ex|ch|cm|mm|in|vmin|vmax|vw|vh|%)/.exec(t)?.[0];
1816
+ return Ii(e, Gn(n) ?? Ci, Ti());
1817
+ }
1818
+ function Ri(e) {
1819
+ let t = "", n = e;
1820
+ for (; n && (t += `${ki}${n.getAttribute("class") || ""};${n.getAttribute("style") || ""}`, n.localName !== "svg");) n = n.parentElement;
1821
+ return t;
1822
+ }
1823
+ function zi(e) {
1824
+ let t = ji.get(e);
1825
+ if (t) return t;
1826
+ let n = Ri(e);
1827
+ if (t = Mi.get(n), t) return ji.set(e, t), t;
1828
+ let r = window.getComputedStyle(e), i = r.fontSize || `${Ci}px`, a = r.fontFamily || "sans-serif";
1829
+ return t = {
1830
+ font: `${r.fontStyle || "normal"} ${r.fontWeight || "normal"} ${i} ${a}`,
1831
+ fontFamily: a,
1832
+ fontSizePx: Gn(i)
1833
+ }, Oi(Mi, n, t), ji.set(e, t), t;
1834
+ }
1835
+ function Bi(e) {
1836
+ let t = e.textContent || "", { font: n } = zi(e), r = Pi(t, n), i = Ai.get(r);
1837
+ if (i !== void 0) return i;
1838
+ let a = Ni ? Li(t, n) : e.getComputedTextLength();
1839
+ return Oi(Ai, r, a), a;
1840
+ }
1841
+ //#endregion
1842
+ //#region node_modules/@unovis/ts/utils/text.js
1843
+ function Vi(e, t = 15) {
1844
+ return e ? e.length > t ? `…${e.substr(e.length - t, t)}` : e : "";
1845
+ }
1846
+ function Hi(e, t = 15) {
1847
+ if (!e) return "";
1848
+ let n = Math.floor((t - 3) / 2);
1849
+ return e.length > t ? `${e.substr(0, n)}…${e.substr(-n, n)}` : e;
1850
+ }
1851
+ function Ui(e, t = 15) {
1852
+ return e ? e.length > t ? `${e.substr(0, t)}…` : e : "";
1853
+ }
1854
+ function Wi(e, t = 15, n = Ei.Middle) {
1855
+ if (!e) return "";
1856
+ let r = Ui(e, t);
1857
+ return n === Ei.Start ? r = Vi(e, t) : n === Ei.Middle && (r = Hi(e, t)), r;
1858
+ }
1859
+ function Gi(e, t = 50, n = Ei.Middle, r = !1, i = Gn(window.getComputedStyle(e.node())?.fontSize || wi.fontSize), a = Ti()) {
1860
+ let o = e.text() || "", s = o.length;
1861
+ if (!s) return !1;
1862
+ if (r) {
1863
+ let r = Ii(o, i, a), c = Math.ceil(s * t / (1.1 * r));
1864
+ return c < s && (e.text(Wi(o, c, n)), !0);
1865
+ }
1866
+ let c = e.node();
1867
+ if (Bi(c) <= t) return !1;
1868
+ let l = 0, u = s, d = 0;
1869
+ for (; l <= u;) {
1870
+ let r = l + u >> 1;
1871
+ e.text(Wi(o, r, n)), Bi(c) <= t ? (d = r, l = r + 1) : u = r - 1;
1872
+ }
1873
+ return e.text(Wi(o, d, n)), !0;
1717
1874
  }
1718
1875
  //#endregion
1719
1876
  //#region node_modules/@unovis/ts/utils/d3.js
1720
- function Jr(e, t, n) {
1877
+ function Ki(e, t, n) {
1721
1878
  if (e.nodes().forEach((e) => s(e)), t) {
1722
1879
  let r = e.transition().duration(t);
1723
1880
  return n && r.ease(n), r;
@@ -1726,24 +1883,27 @@ function Jr(e, t, n) {
1726
1883
  }
1727
1884
  //#endregion
1728
1885
  //#region node_modules/@unovis/ts/containers/single-container/config.js
1729
- var Yr = Object.assign(Object.assign({}, Sr), {
1886
+ var qi = {
1887
+ ...Kr,
1730
1888
  tooltip: void 0,
1731
1889
  annotations: void 0
1732
- }), Xr = class extends Cr {
1890
+ }, Ji = class extends Jr {
1733
1891
  constructor(e, t, n) {
1734
- super(e), this._defaultConfig = Yr, this.config = this._defaultConfig, t && (this.updateContainer(t, !0), this.component = t.component), n && this.setData(n, !0), this.component?.datamodel.data && this.render();
1892
+ super(e), this._defaultConfig = qi, this.config = this._defaultConfig, t && (this.updateContainer(t, !0), this.component = t.component), n && this.setData(n, !0), this.component?.datamodel.data && this.render();
1735
1893
  }
1736
1894
  setData(e, t) {
1737
- var n;
1738
- let { config: r } = this;
1739
- this.component && this.component.setData(e), t || this.render(), (n = r.tooltip) == null || n.hide();
1895
+ let { config: n } = this, r = this.component?.datamodel.data !== e;
1896
+ this.component && this.component.setData(e), t || this.render(), r && n.tooltip?.hide();
1740
1897
  }
1741
1898
  updateContainer(e, t) {
1742
- super.updateContainer(e), this._removeAllChildren(), this.component = e.component, e.sizing && (this.component.sizing = e.sizing), this.element.appendChild(this.component.element);
1899
+ super.updateContainer(e), this.component = e.component, e.sizing && (this.component.sizing = e.sizing);
1743
1900
  let n = e.tooltip;
1744
- n && (n.hasContainer() || n.setContainer(this._container), n.setComponents([this.component]));
1745
- let r = e.annotations;
1746
- r && this.element.appendChild(r.element), this.element.appendChild(this._svgDefs.node()), this.element.appendChild(this._svgDefsExternal.node()), t || this.render();
1901
+ n && (n.hasContainer() || n.setContainer(this._container), n.setComponents([this.component])), this._reconcileChildren([
1902
+ this.component?.element,
1903
+ e.annotations?.element,
1904
+ this._svgDefs.node(),
1905
+ this._svgDefsExternal.node()
1906
+ ]), t || this.render();
1747
1907
  }
1748
1908
  updateComponent(e, t) {
1749
1909
  this.component.setConfig(e), t || this.render();
@@ -1758,64 +1918,64 @@ var Yr = Object.assign(Object.assign({}, Sr), {
1758
1918
  return this.width / r;
1759
1919
  }
1760
1920
  _preRender() {
1761
- var e, t;
1762
- super._preRender(), this.component.setSize(this.width, this.height, this.containerWidth, this.containerHeight), this.component.setContainerMargin(this.config.margin), (e = this.config.annotations) == null || e.setSize(this.width, this.height, this.containerWidth, this.containerHeight), (t = this.config.annotations) == null || t.setContainerMargin(this.config.margin);
1921
+ let { config: e } = this;
1922
+ super._preRender(), this._propagateSizeAndStyleToComponents([this.component, e.annotations], e.margin);
1763
1923
  }
1764
1924
  _render(e) {
1765
- var t, n;
1766
- let { config: r, component: i } = this;
1767
- super._render(e), i.g.attr("transform", `translate(${r.margin.left},${r.margin.top})`), i.render(e), (t = r.annotations) == null || t.render(e), r.tooltip && r.tooltip.update(), (n = r.onRenderComplete) == null || n.call(r, this.svg.node(), r.margin, this.containerWidth, this.containerHeight, this.width, this.height);
1925
+ let { config: t, component: n } = this;
1926
+ super._render(e), n.g.attr("transform", `translate(${t.margin.left},${t.margin.top})`), n.render(e), t.annotations?.render(e), t.tooltip && t.tooltip.update(), t.onRenderComplete?.(this.svg.node(), t.margin, this.containerWidth, this.containerHeight, this.width, this.height);
1768
1927
  }
1769
1928
  render(e = this.config.duration) {
1770
1929
  let { config: t, component: n } = this;
1771
- if (t.sizing === J.Extend || t.sizing === J.FitWidth) {
1772
- let r = t.sizing === J.FitWidth, i = n, a = i.getWidth() + t.margin.left + t.margin.right, o = i.getHeight() + t.margin.top + t.margin.bottom, s = r ? this.getFitWidthScale() : 1, c = this.svg.attr("width"), l = this.svg.attr("height"), u = a * s, d = o * s, f = c || l;
1773
- Jr(this.svg, f ? e : 0).attr("width", u).attr("height", d).attr("viewBox", `0 0 ${a} ${r ? d : o}`).attr("preserveAspectRatio", "xMinYMin");
1930
+ if (t.sizing === Z.Extend || t.sizing === Z.FitWidth) {
1931
+ let r = t.sizing === Z.FitWidth, i = n, a = i.getWidth() + t.margin.left + t.margin.right, o = i.getHeight() + t.margin.top + t.margin.bottom, s = r ? this.getFitWidthScale() : 1, c = this.svg.attr("width"), l = this.svg.attr("height"), u = a * s, d = o * s, f = c || l;
1932
+ Ki(this.svg, f ? e : 0).attr("width", u).attr("height", d).attr("viewBox", `0 0 ${a} ${r ? d : o}`).attr("preserveAspectRatio", "xMinYMin");
1774
1933
  } else this.svg.attr("width", this.config.width || this.containerWidth).attr("height", this.config.height || this.containerHeight);
1775
1934
  this._resizeObserver || this._setUpResizeObserver(), cancelAnimationFrame(this._renderAnimationFrameId), this._renderAnimationFrameId = requestAnimationFrame(() => {
1776
1935
  this._preRender(), this._render(e);
1777
1936
  });
1778
1937
  }
1779
1938
  _onResize() {
1780
- var e;
1781
- let { config: t } = this;
1782
- super._onResize(), (e = t.tooltip) == null || e.hide();
1939
+ let { config: e } = this;
1940
+ super._onResize(), e.tooltip?.hide();
1783
1941
  }
1784
1942
  destroy() {
1785
- var e, t;
1786
- let { component: n, config: r } = this;
1787
- super.destroy(), n?.destroy(), (e = r.tooltip) == null || e.destroy(), (t = r.annotations) == null || t.destroy();
1788
- }
1789
- }, Zr = class {
1790
- constructor(e) {
1791
- this.data = e;
1943
+ let { component: e, config: t } = this;
1944
+ super.destroy(), e?.destroy(), t.tooltip?.destroy(), t.annotations?.destroy();
1792
1945
  }
1946
+ }, Yi = class {
1793
1947
  get data() {
1794
1948
  return this._data;
1795
1949
  }
1796
1950
  set data(e) {
1797
1951
  this._data = e;
1798
1952
  }
1799
- }, Qr = {
1953
+ constructor(e) {
1954
+ this.data = e;
1955
+ }
1956
+ }, Xi = {
1800
1957
  duration: 600,
1801
1958
  events: {},
1802
1959
  attributes: {}
1803
- }, $r = class {
1804
- constructor(e = En.SVG) {
1805
- this.type = En.SVG, this.datamodel = new Zr(), this.sizing = J.Fit, this.events = {}, this._defaultConfig = Qr, this._width = 400, this._height = 200, this._containerWidth = void 0, this._containerHeight = void 0, this._containerMargin = {
1960
+ }, Zi = class {
1961
+ constructor(e = Rn.SVG) {
1962
+ this.type = Rn.SVG, this.datamodel = new Yi(), this.sizing = Z.Fit, this.events = {}, this._defaultConfig = Xi, this._width = 400, this._height = 200, this._containerWidth = void 0, this._containerHeight = void 0, this._containerMargin = {
1806
1963
  top: 0,
1807
1964
  bottom: 0,
1808
1965
  left: 0,
1809
1966
  right: 0
1810
- }, this._setUpComponentEventsThrottled = en(this._setUpComponentEvents, 500), this._setCustomAttributesThrottled = en(this._setCustomAttributes, 500), this.element = e === En.SVG ? document.createElementNS("http://www.w3.org/2000/svg", "g") : document.createElement("div"), this.uid = jr(), this.g = c(this.element);
1967
+ }, this._colorFunction = void 0, this._setUpComponentEventsThrottled = mn(this._setUpComponentEvents, 500), this._setCustomAttributesThrottled = mn(this._setCustomAttributes, 500), this.element = e === Rn.SVG ? document.createElementNS("http://www.w3.org/2000/svg", "g") : document.createElement("div"), this.uid = Kn(), this.g = c(this.element);
1811
1968
  let t = this.constructor?.selectors?.root;
1812
1969
  t && this.g.attr("class", t);
1813
1970
  }
1814
1971
  setContainerMargin(e) {
1815
1972
  this._containerMargin = e;
1816
1973
  }
1974
+ setColorFunction(e) {
1975
+ this._colorFunction = e;
1976
+ }
1817
1977
  setConfig(e) {
1818
- this.prevConfig = this.config, this.config = Qt(this._defaultConfig, e);
1978
+ this.prevConfig = this.config, this.config = fn(this._defaultConfig, e);
1819
1979
  }
1820
1980
  setData(e) {
1821
1981
  this.datamodel.data = e;
@@ -1848,7 +2008,7 @@ var Yr = Object.assign(Object.assign({}, Sr), {
1848
2008
  });
1849
2009
  }
1850
2010
  _setUpComponentEvents() {
1851
- this._bindEvents(this.events), this._bindEvents(this.config.events, ".user");
2011
+ this._bindEvents(() => this.events), this._bindEvents(() => this.config.events, ".user");
1852
2012
  }
1853
2013
  _mapEventDatum(e, t) {
1854
2014
  return {
@@ -1856,20 +2016,23 @@ var Yr = Object.assign(Object.assign({}, Sr), {
1856
2016
  index: t
1857
2017
  };
1858
2018
  }
1859
- _bindEvents(e = this.events, t = "") {
1860
- Object.keys(e).forEach((n) => {
1861
- Object.keys(e[n]).forEach((r) => {
1862
- let i = this.g.selectAll(`.${n}`);
1863
- i.on(r + t, (t, a) => {
1864
- let o = i.nodes(), s = o.indexOf(t.currentTarget), c = e[n][r], { datum: l, index: u } = this._mapEventDatum(a, s);
1865
- return c?.(l, t, u, o);
2019
+ _bindEvents(e, t = "") {
2020
+ let n = e() ?? {};
2021
+ Object.keys(n).forEach((r) => {
2022
+ Object.keys(n[r]).forEach((n) => {
2023
+ let i = this.g.selectAll(`.${r}`), a = i.nodes();
2024
+ i.on(n + t, (t, i) => {
2025
+ let o = e()?.[r]?.[n];
2026
+ if (!o) return;
2027
+ let s = a.indexOf(t.currentTarget), { datum: c, index: l } = this._mapEventDatum(i, s);
2028
+ return o(c, t, l, a);
1866
2029
  });
1867
2030
  });
1868
2031
  });
1869
2032
  }
2033
+ _onDestroy() {}
1870
2034
  destroy() {
1871
- var e;
1872
- (e = this.g) == null || e.remove(), this.element = void 0;
2035
+ this.isDestroyed() || (this._onDestroy(), this.g?.remove(), this.element = void 0);
1873
2036
  }
1874
2037
  isDestroyed() {
1875
2038
  return !this.element;
@@ -1877,7 +2040,7 @@ var Yr = Object.assign(Object.assign({}, Sr), {
1877
2040
  };
1878
2041
  //#endregion
1879
2042
  //#region node_modules/d3-interpolate-path/build/d3-interpolate-path.mjs
1880
- function ei(e, t) {
2043
+ function Qi(e, t) {
1881
2044
  var n = Object.keys(e);
1882
2045
  if (Object.getOwnPropertySymbols) {
1883
2046
  var r = Object.getOwnPropertySymbols(e);
@@ -1887,26 +2050,26 @@ function ei(e, t) {
1887
2050
  }
1888
2051
  return n;
1889
2052
  }
1890
- function ti(e) {
2053
+ function $i(e) {
1891
2054
  for (var t = 1; t < arguments.length; t++) {
1892
2055
  var n = arguments[t] == null ? {} : arguments[t];
1893
- t % 2 ? ei(Object(n), !0).forEach(function(t) {
1894
- ri(e, t, n[t]);
1895
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ei(Object(n)).forEach(function(t) {
2056
+ t % 2 ? Qi(Object(n), !0).forEach(function(t) {
2057
+ ta(e, t, n[t]);
2058
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Qi(Object(n)).forEach(function(t) {
1896
2059
  Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
1897
2060
  });
1898
2061
  }
1899
2062
  return e;
1900
2063
  }
1901
- function ni(e) {
2064
+ function ea(e) {
1902
2065
  "@babel/helpers - typeof";
1903
- return ni = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
2066
+ return ea = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
1904
2067
  return typeof e;
1905
2068
  } : function(e) {
1906
2069
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
1907
- }, ni(e);
2070
+ }, ea(e);
1908
2071
  }
1909
- function ri(e, t, n) {
2072
+ function ta(e, t, n) {
1910
2073
  return t in e ? Object.defineProperty(e, t, {
1911
2074
  value: n,
1912
2075
  enumerable: !0,
@@ -1914,32 +2077,32 @@ function ri(e, t, n) {
1914
2077
  writable: !0
1915
2078
  }) : e[t] = n, e;
1916
2079
  }
1917
- function ii() {
1918
- return ii = Object.assign || function(e) {
2080
+ function na() {
2081
+ return na = Object.assign || function(e) {
1919
2082
  for (var t = 1; t < arguments.length; t++) {
1920
2083
  var n = arguments[t];
1921
2084
  for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
1922
2085
  }
1923
2086
  return e;
1924
- }, ii.apply(this, arguments);
2087
+ }, na.apply(this, arguments);
1925
2088
  }
1926
- function ai(e, t) {
2089
+ function ra(e, t) {
1927
2090
  if (e) {
1928
- if (typeof e == "string") return oi(e, t);
2091
+ if (typeof e == "string") return ia(e, t);
1929
2092
  var n = Object.prototype.toString.call(e).slice(8, -1);
1930
2093
  if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e);
1931
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return oi(e, t);
2094
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return ia(e, t);
1932
2095
  }
1933
2096
  }
1934
- function oi(e, t) {
2097
+ function ia(e, t) {
1935
2098
  (t == null || t > e.length) && (t = e.length);
1936
2099
  for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
1937
2100
  return r;
1938
2101
  }
1939
- function si(e, t) {
2102
+ function aa(e, t) {
1940
2103
  var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
1941
2104
  if (!n) {
1942
- if (Array.isArray(e) || (n = ai(e)) || t && e && typeof e.length == "number") {
2105
+ if (Array.isArray(e) || (n = ra(e)) || t && e && typeof e.length == "number") {
1943
2106
  n && (e = n);
1944
2107
  var r = 0, i = function() {};
1945
2108
  return {
@@ -1979,7 +2142,7 @@ function si(e, t) {
1979
2142
  }
1980
2143
  };
1981
2144
  }
1982
- function ci(e, t) {
2145
+ function oa(e, t) {
1983
2146
  var n = [], r = [];
1984
2147
  function i(e, t) {
1985
2148
  if (e.length === 1) n.push(e[0]), r.push(e[0]);
@@ -1993,23 +2156,23 @@ function ci(e, t) {
1993
2156
  right: r.reverse()
1994
2157
  };
1995
2158
  }
1996
- function li(e) {
2159
+ function sa(e) {
1997
2160
  var t = {};
1998
2161
  return e.length === 4 && (t.x2 = e[2][0], t.y2 = e[2][1]), e.length >= 3 && (t.x1 = e[1][0], t.y1 = e[1][1]), t.x = e[e.length - 1][0], t.y = e[e.length - 1][1], t.type = e.length === 4 ? "C" : e.length === 3 ? "Q" : "L", t;
1999
2162
  }
2000
- function ui(e, t) {
2163
+ function ca(e, t) {
2001
2164
  t ||= 2;
2002
2165
  for (var n = [], r = e, i = 1 / t, a = 0; a < t - 1; a++) {
2003
- var o = i / (1 - i * a), s = ci(r, o);
2166
+ var o = i / (1 - i * a), s = oa(r, o);
2004
2167
  n.push(s.left), r = s.right;
2005
2168
  }
2006
2169
  return n.push(r), n;
2007
2170
  }
2008
- function di(e, t, n) {
2171
+ function la(e, t, n) {
2009
2172
  var r = [[e.x, e.y]];
2010
- return t.x1 != null && r.push([t.x1, t.y1]), t.x2 != null && r.push([t.x2, t.y2]), r.push([t.x, t.y]), ui(r, n).map(li);
2173
+ return t.x1 != null && r.push([t.x1, t.y1]), t.x2 != null && r.push([t.x2, t.y2]), r.push([t.x, t.y]), ca(r, n).map(sa);
2011
2174
  }
2012
- var fi = /[MLCSTQAHVZmlcstqahv]|-?[\d.e+-]+/g, pi = {
2175
+ var ua = /[MLCSTQAHVZmlcstqahv]|-?[\d.e+-]+/g, da = {
2013
2176
  M: ["x", "y"],
2014
2177
  L: ["x", "y"],
2015
2178
  H: ["x"],
@@ -2046,19 +2209,19 @@ var fi = /[MLCSTQAHVZmlcstqahv]|-?[\d.e+-]+/g, pi = {
2046
2209
  ],
2047
2210
  Z: []
2048
2211
  };
2049
- Object.keys(pi).forEach(function(e) {
2050
- pi[e.toLowerCase()] = pi[e];
2212
+ Object.keys(da).forEach(function(e) {
2213
+ da[e.toLowerCase()] = da[e];
2051
2214
  });
2052
- function mi(e, t) {
2215
+ function fa(e, t) {
2053
2216
  for (var n = Array(e), r = 0; r < e; r++) n[r] = t;
2054
2217
  return n;
2055
2218
  }
2056
- function hi(e) {
2057
- return `${e.type}${pi[e.type].map(function(t) {
2219
+ function pa(e) {
2220
+ return `${e.type}${da[e.type].map(function(t) {
2058
2221
  return e[t];
2059
2222
  }).join(",")}`;
2060
2223
  }
2061
- function gi(e, t) {
2224
+ function ma(e, t) {
2062
2225
  var n = {
2063
2226
  x1: "x",
2064
2227
  y1: "y",
@@ -2078,19 +2241,19 @@ function gi(e, t) {
2078
2241
  }
2079
2242
  return e;
2080
2243
  }
2081
- function _i(e, t, n) {
2244
+ function ha(e, t, n) {
2082
2245
  var r = [];
2083
- if (t.type === "L" || t.type === "Q" || t.type === "C") r = r.concat(di(e, t, n));
2246
+ if (t.type === "L" || t.type === "Q" || t.type === "C") r = r.concat(la(e, t, n));
2084
2247
  else {
2085
- var i = ii({}, e);
2086
- i.type === "M" && (i.type = "L"), r = r.concat(mi(n - 1).map(function() {
2248
+ var i = na({}, e);
2249
+ i.type === "M" && (i.type = "L"), r = r.concat(fa(n - 1).map(function() {
2087
2250
  return i;
2088
2251
  })), r.push(t);
2089
2252
  }
2090
2253
  return r;
2091
2254
  }
2092
- function vi(e, t, n) {
2093
- var r = e.length - 1, i = t.length - 1, a = r / i, o = mi(i).reduce(function(t, r, i) {
2255
+ function ga(e, t, n) {
2256
+ var r = e.length - 1, i = t.length - 1, a = r / i, o = fa(i).reduce(function(t, r, i) {
2094
2257
  var o = Math.floor(a * i);
2095
2258
  if (n && o < e.length - 1 && n(e[o], e[o + 1])) {
2096
2259
  var s = a * i % 1 < .5;
@@ -2099,25 +2262,25 @@ function vi(e, t, n) {
2099
2262
  return t[o] = (t[o] || 0) + 1, t;
2100
2263
  }, []).reduce(function(t, n, r) {
2101
2264
  if (r === e.length - 1) {
2102
- var i = mi(n, ii({}, e[e.length - 1]));
2265
+ var i = fa(n, na({}, e[e.length - 1]));
2103
2266
  return i[0].type === "M" && i.forEach(function(e) {
2104
2267
  e.type = "L";
2105
2268
  }), t.concat(i);
2106
2269
  }
2107
- return t.concat(_i(e[r], e[r + 1], n));
2270
+ return t.concat(ha(e[r], e[r + 1], n));
2108
2271
  }, []);
2109
2272
  return o.unshift(e[0]), o;
2110
2273
  }
2111
- function yi(e) {
2112
- for (var t = (e || "").match(fi) || [], n = [], r, i, a = 0; a < t.length; ++a) if (r = pi[t[a]], r) {
2274
+ function _a(e) {
2275
+ for (var t = (e || "").match(ua) || [], n = [], r, i, a = 0; a < t.length; ++a) if (r = da[t[a]], r) {
2113
2276
  i = { type: t[a] };
2114
2277
  for (var o = 0; o < r.length; ++o) i[r[o]] = +t[a + o + 1];
2115
2278
  a += r.length, n.push(i);
2116
2279
  }
2117
2280
  return n;
2118
2281
  }
2119
- function bi(e, t, n) {
2120
- var r = e == null ? [] : e.slice(), i = t == null ? [] : t.slice(), a = ni(n) === "object" ? n : {
2282
+ function va(e, t, n) {
2283
+ var r = e == null ? [] : e.slice(), i = t == null ? [] : t.slice(), a = ea(n) === "object" ? n : {
2121
2284
  excludeSegment: n,
2122
2285
  snapEndsToInput: !0
2123
2286
  }, o = a.excludeSegment, s = a.snapEndsToInput;
@@ -2125,17 +2288,17 @@ function bi(e, t, n) {
2125
2288
  return [];
2126
2289
  };
2127
2290
  var c = (r.length === 0 || r[r.length - 1].type === "Z") && (i.length === 0 || i[i.length - 1].type === "Z");
2128
- r.length > 0 && r[r.length - 1].type === "Z" && r.pop(), i.length > 0 && i[i.length - 1].type === "Z" && i.pop(), r.length ? i.length || i.push(r[0]) : r.push(i[0]), Math.abs(i.length - r.length) !== 0 && (i.length > r.length ? r = vi(r, i, o) : i.length < r.length && (i = vi(i, r, o))), r = r.map(function(e, t) {
2129
- return gi(e, i[t]);
2291
+ r.length > 0 && r[r.length - 1].type === "Z" && r.pop(), i.length > 0 && i[i.length - 1].type === "Z" && i.pop(), r.length ? i.length || i.push(r[0]) : r.push(i[0]), Math.abs(i.length - r.length) !== 0 && (i.length > r.length ? r = ga(r, i, o) : i.length < r.length && (i = ga(i, r, o))), r = r.map(function(e, t) {
2292
+ return ma(e, i[t]);
2130
2293
  });
2131
2294
  var l = r.map(function(e) {
2132
- return ti({}, e);
2295
+ return $i({}, e);
2133
2296
  });
2134
2297
  return c && (l.push({ type: "Z" }), r.push({ type: "Z" })), function(e) {
2135
2298
  if (e === 1 && s) return t ?? [];
2136
2299
  if (e === 0) return r;
2137
2300
  for (var n = 0; n < l.length; ++n) {
2138
- var a = r[n], o = i[n], c = l[n], u = si(pi[c.type]), d;
2301
+ var a = r[n], o = i[n], c = l[n], u = aa(da[c.type]), d;
2139
2302
  try {
2140
2303
  for (u.s(); !(d = u.n()).done;) {
2141
2304
  var f = d.value;
@@ -2150,25 +2313,25 @@ function bi(e, t, n) {
2150
2313
  return l;
2151
2314
  };
2152
2315
  }
2153
- function xi(e, t, n) {
2154
- var r = yi(e), i = yi(t), a = ni(n) === "object" ? n : {
2316
+ function ya(e, t, n) {
2317
+ var r = _a(e), i = _a(t), a = ea(n) === "object" ? n : {
2155
2318
  excludeSegment: n,
2156
2319
  snapEndsToInput: !0
2157
2320
  }, o = a.excludeSegment, s = a.snapEndsToInput;
2158
2321
  if (!r.length && !i.length) return function() {
2159
2322
  return "";
2160
2323
  };
2161
- var c = bi(r, i, {
2324
+ var c = va(r, i, {
2162
2325
  excludeSegment: o,
2163
2326
  snapEndsToInput: s
2164
2327
  });
2165
2328
  return function(e) {
2166
2329
  if (e === 1 && s) return t ?? "";
2167
- var n = c(e), r = "", i = si(n), a;
2330
+ var n = c(e), r = "", i = aa(n), a;
2168
2331
  try {
2169
2332
  for (i.s(); !(a = i.n()).done;) {
2170
2333
  var o = a.value;
2171
- r += hi(o);
2334
+ r += pa(o);
2172
2335
  }
2173
2336
  } catch (e) {
2174
2337
  i.e(e);
@@ -2179,210 +2342,37 @@ function xi(e, t, n) {
2179
2342
  };
2180
2343
  }
2181
2344
  //#endregion
2182
- //#region node_modules/@unovis/ts/utils/color.js
2183
- function Si(e, t, n, r) {
2184
- return Array.isArray(t) && isFinite(n) ? t[n % t.length] : nn(e, t, n) || (Vt(n) && !r ? `var(${X(n)})` : null);
2185
- }
2186
- function Ci(e) {
2187
- let t = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);
2188
- return t ? {
2189
- r: parseInt(t[1], 16),
2190
- g: parseInt(t[2], 16),
2191
- b: parseInt(t[3], 16)
2192
- } : {
2193
- r: 0,
2194
- g: 0,
2195
- b: 0
2196
- };
2197
- }
2198
- function wi(e) {
2199
- return (.2126 * e.r + .7152 * e.g + .0722 * e.b) / 255;
2200
- }
2201
- function Ti(e) {
2202
- return wi(Ci(e));
2203
- }
2204
- //#endregion
2205
2345
  //#region node_modules/@unovis/ts/types/curve.js
2206
- var Q;
2207
- (function(e) {
2208
- e.Basis = "basis", e.BasisClosed = "basisClosed", e.BasisOpen = "basisOpen", e.Bundle = "bundle", e.Cardinal = "cardinal", e.CardinalClosed = "cardinalClosed", e.CardinalOpen = "cardinalOpen", e.CatmullRom = "catmullRom", e.CatmullRomClosed = "catmullRomClosed", e.CatmullRomOpen = "catmullRomOpen", e.Linear = "linear", e.LinearClosed = "linearClosed", e.MonotoneX = "monotoneX", e.MonotoneY = "monotoneY", e.Natural = "natural", e.Step = "step", e.StepAfter = "stepAfter", e.StepBefore = "stepBefore";
2209
- })(Q ||= {});
2210
- var Ei = {
2211
- [Q.Basis]: ee,
2212
- [Q.BasisClosed]: ae,
2213
- [Q.BasisOpen]: oe,
2214
- [Q.Bundle]: A,
2215
- [Q.Cardinal]: ce,
2216
- [Q.CardinalClosed]: ie,
2217
- [Q.CardinalOpen]: re,
2218
- [Q.CatmullRom]: fe,
2219
- [Q.CatmullRomClosed]: k,
2220
- [Q.CatmullRomOpen]: ne,
2221
- [Q.Linear]: N,
2222
- [Q.LinearClosed]: ue,
2223
- [Q.MonotoneX]: te,
2224
- [Q.MonotoneY]: M,
2225
- [Q.Natural]: se,
2226
- [Q.Step]: le,
2227
- [Q.StepAfter]: de,
2228
- [Q.StepBefore]: j
2346
+ var ba = {
2347
+ basis: k,
2348
+ basisClosed: ne,
2349
+ basisOpen: re,
2350
+ bundle: N,
2351
+ cardinal: ae,
2352
+ cardinalClosed: te,
2353
+ cardinalOpen: ee,
2354
+ catmullRom: le,
2355
+ catmullRomClosed: M,
2356
+ catmullRomOpen: j,
2357
+ linear: ue,
2358
+ linearClosed: se,
2359
+ monotoneX: A,
2360
+ monotoneY: F,
2361
+ natural: ie,
2362
+ step: oe,
2363
+ stepAfter: ce,
2364
+ stepBefore: P
2229
2365
  };
2230
2366
  //#endregion
2231
2367
  //#region node_modules/@unovis/ts/utils/path.js
2232
- function Di(e, t) {
2368
+ function xa(e, t) {
2233
2369
  return e.toString().replace(/L(?<x>-?\d*\.?\d*),(?<y>-?\d+\.?\d*)/gm, (e, n, r) => `A ${t} ${t} 0 0 0 ${n} ${r}`);
2234
2370
  }
2235
2371
  //#endregion
2236
- //#region node_modules/@unovis/ts/types/text.js
2237
- var Oi;
2238
- (function(e) {
2239
- e.Start = "start", e.Middle = "middle", e.End = "end";
2240
- })(Oi ||= {});
2241
- var ki;
2242
- (function(e) {
2243
- e.Top = "top", e.Middle = "middle", e.Bottom = "bottom";
2244
- })(ki ||= {});
2245
- var Ai;
2246
- (function(e) {
2247
- e.Wrap = "wrap", e.Trim = "trim";
2248
- })(Ai ||= {});
2249
- var ji;
2250
- (function(e) {
2251
- e.Left = "left", e.Center = "center", e.Right = "right";
2252
- })(ji ||= {}), (/* @__PURE__ */ r(((e, t) => {
2253
- (function(e) {
2254
- if (typeof n != "function") {
2255
- var n = function(e) {
2256
- return e;
2257
- };
2258
- n.nonNative = !0;
2259
- }
2260
- let r = n("plaintext"), i = n("html"), a = n("comment"), o = /<(\w*)>/g, s = /<\/?([^\s\/>]+)/;
2261
- function c(e, t, n) {
2262
- e ||= "", t ||= [], n ||= "";
2263
- let r = u(t, n);
2264
- return d(e, r);
2265
- }
2266
- function l(e, t) {
2267
- e ||= [], t ||= "";
2268
- let n = u(e, t);
2269
- return function(e) {
2270
- return d(e || "", n);
2271
- };
2272
- }
2273
- c.init_streaming_mode = l;
2274
- function u(e, t) {
2275
- return e = f(e), {
2276
- allowable_tags: e,
2277
- tag_replacement: t,
2278
- state: r,
2279
- tag_buffer: "",
2280
- depth: 0,
2281
- in_quote_char: ""
2282
- };
2283
- }
2284
- function d(e, t) {
2285
- if (typeof e != "string") throw TypeError("'html' parameter must be a string");
2286
- let n = t.allowable_tags, o = t.tag_replacement, s = t.state, c = t.tag_buffer, l = t.depth, u = t.in_quote_char, d = "";
2287
- for (let t = 0, f = e.length; t < f; t++) {
2288
- let f = e[t];
2289
- if (s === r) switch (f) {
2290
- case "<":
2291
- s = i, c += f;
2292
- break;
2293
- default: d += f;
2294
- }
2295
- else if (s === i) switch (f) {
2296
- case "<":
2297
- if (u) break;
2298
- l++;
2299
- break;
2300
- case ">":
2301
- if (u) break;
2302
- if (l) {
2303
- l--;
2304
- break;
2305
- }
2306
- u = "", s = r, c += ">", n.has(p(c)) ? d += c : d += o, c = "";
2307
- break;
2308
- case "\"":
2309
- case "'":
2310
- f === u ? u = "" : u ||= f, c += f;
2311
- break;
2312
- case "-":
2313
- c === "<!-" && (s = a), c += f;
2314
- break;
2315
- case " ":
2316
- case "\n":
2317
- if (c === "<") {
2318
- s = r, d += "< ", c = "";
2319
- break;
2320
- }
2321
- c += f;
2322
- break;
2323
- default: c += f;
2324
- }
2325
- else if (s === a) switch (f) {
2326
- case ">":
2327
- c.slice(-2) == "--" && (s = r), c = "";
2328
- break;
2329
- default: c += f;
2330
- }
2331
- }
2332
- return t.state = s, t.tag_buffer = c, t.depth = l, t.in_quote_char = u, d;
2333
- }
2334
- function f(e) {
2335
- let t = /* @__PURE__ */ new Set();
2336
- if (typeof e == "string") {
2337
- let n;
2338
- for (; n = o.exec(e);) t.add(n[1]);
2339
- } else !n.nonNative && typeof e[n.iterator] == "function" ? t = new Set(e) : typeof e.forEach == "function" && e.forEach(t.add, t);
2340
- return t;
2341
- }
2342
- function p(e) {
2343
- let t = s.exec(e);
2344
- return t ? t[1].toLowerCase() : null;
2345
- }
2346
- typeof define == "function" && define.amd ? define(function() {
2347
- return c;
2348
- }) : typeof t == "object" && t.exports ? t.exports = c : e.striptags = c;
2349
- })(e);
2350
- })))();
2351
- function Mi(e, t = 15) {
2352
- return e ? e.length > t ? `…${e.substr(e.length - t, t)}` : e : "";
2353
- }
2354
- function Ni(e, t = 15) {
2355
- if (!e) return "";
2356
- let n = Math.floor((t - 3) / 2);
2357
- return e.length > t ? `${e.substr(0, n)}…${e.substr(-n, n)}` : e;
2358
- }
2359
- function Pi(e, t = 15) {
2360
- return e ? e.length > t ? `${e.substr(0, t)}…` : e : "";
2361
- }
2362
- function Fi(e, t = 15, n = Oi.Middle) {
2363
- if (!e) return "";
2364
- let r = Pi(e, t);
2365
- return n === Oi.Start ? r = Mi(e, t) : n === Oi.Middle && (r = Ni(e, t)), r;
2366
- }
2367
- function Ii(e, t, n, r, i, a) {
2368
- t === void 0 && (t = 50), n === void 0 && (n = Oi.Middle), r === void 0 && (r = !0), i === void 0 && (i = Ar(window.getComputedStyle(e.node())?.fontSize || Kr.fontSize)), a === void 0 && (a = qr());
2369
- let o = e.text() || "", s = o.length, c = r ? i * s * a : e.node().getComputedTextLength(), l = Math.ceil(s * t / (1.1 * c));
2370
- return l < s && (e.text(Fi(o, l, n)), !0);
2371
- }
2372
- function Li(e, t, n = qr()) {
2373
- return e.length * t * n || 0;
2374
- }
2375
- //#endregion
2376
2372
  //#region node_modules/@unovis/ts/components/chord-diagram/types.js
2377
- var $;
2378
- (function(e) {
2379
- e.Along = "along", e.Perpendicular = "perpendicular";
2380
- })($ ||= {});
2381
- //#endregion
2382
- //#region node_modules/@unovis/ts/data-models/graph.js
2383
- var Ri = class extends Zr {
2373
+ var $ = /* @__PURE__ */ ((e) => (e.Along = "along", e.Perpendicular = "perpendicular", e))($ || {}), Sa = class extends Yi {
2384
2374
  constructor() {
2385
- super(...arguments), this._nodes = [], this._links = [], this._inputNodesMap = /* @__PURE__ */ new Map(), this._nodesMap = /* @__PURE__ */ new Map(), this.nodeId = (e) => Wt(e.id) || isFinite(e.id) ? `${e.id}` : void 0, this.linkId = (e) => Wt(e.id) || isFinite(e.id) ? `${e.id}` : void 0;
2375
+ super(...arguments), this._nodes = [], this._links = [], this._inputNodesMap = /* @__PURE__ */ new Map(), this._nodesMap = /* @__PURE__ */ new Map(), this._nodesByUserId = /* @__PURE__ */ new Map(), this._nodesByInputRef = /* @__PURE__ */ new Map(), this.nodeId = (e) => an(e.id) || isFinite(e.id) ? `${e.id}` : void 0, this.linkId = (e) => an(e.id) || isFinite(e.id) ? `${e.id}` : void 0;
2386
2376
  }
2387
2377
  getNodeById(e) {
2388
2378
  return this._nodesMap.get(e);
@@ -2394,21 +2384,33 @@ var Ri = class extends Zr {
2394
2384
  if (!e) return;
2395
2385
  this._data = e;
2396
2386
  let t = this.nodes, n = this.links;
2397
- this._inputNodesMap.clear(), this._nodesMap.clear();
2398
- let r = Zt(e?.nodes ?? []), i = Zt(e?.links ?? []);
2387
+ this._inputNodesMap.clear(), this._nodesMap.clear(), this._nodesByUserId.clear(), this._nodesByInputRef.clear();
2388
+ let r = dn(e?.nodes ?? []), i = dn(e?.links ?? []);
2399
2389
  this.transferState(r, t, this.nodeId), this.transferState(i, n, this.linkId), r.forEach((t, n) => {
2400
- t._index = n, t._id = this.nodeId(t) || `${n}`, this._inputNodesMap.set(t, e.nodes[n]), this._nodesMap.set(t._id, t);
2401
- }), Ht(this.nodeSort) && r.sort(this.nodeSort), i.forEach((e, t) => {
2390
+ t._index = n, t._id = this.nodeId(t) || `${n}`, this._inputNodesMap.set(t, e.nodes[n]), this._nodesMap.set(t._id, t), this._nodesByInputRef.set(e.nodes[n], t);
2391
+ let r = this.nodeId(t);
2392
+ r !== void 0 && !this._nodesByUserId.has(r) && this._nodesByUserId.set(r, t);
2393
+ }), nn(this.nodeSort) && r.sort(this.nodeSort), i.forEach((e, t) => {
2402
2394
  e._indexGlobal = t, e.source = this.findNode(r, e.source), e.target = this.findNode(r, e.target);
2403
- }), i.forEach((e, t) => {
2404
- if (!Ut(e._index) && !Ut(e._neighbours)) return;
2405
- let n = i.filter((t) => e.source === t.source && e.target === t.target || e.source === t.target && e.target === t.source);
2406
- n.forEach((t, r) => {
2407
- t._index = r, t._id = this.linkId(t) || `${t.source?._id}-${t.target?._id}-${r}`, t._neighbours = n.length, t._direction = e.source === t.source && e.target === t.target ? 1 : -1;
2395
+ });
2396
+ let a = /* @__PURE__ */ new Map();
2397
+ for (let e of i) {
2398
+ let t = e.source?._index ?? -1, n = e.target?._index ?? -1, r = t <= n ? `${t}|${n}` : `${n}|${t}`, i = a.get(r);
2399
+ i ? i.push(e) : a.set(r, [e]);
2400
+ }
2401
+ a.forEach((e) => {
2402
+ if (e.every((e) => !rn(e._index) && !rn(e._neighbours))) return;
2403
+ let t = e[0];
2404
+ e.forEach((n, r) => {
2405
+ n._index = r, n._id = this.linkId(n) || `${n.source?._id}-${n.target?._id}-${r}`, n._neighbours = e.length, n._direction = t.source === n.source && t.target === n.target ? 1 : -1;
2408
2406
  });
2409
- }), r.forEach((e) => {
2410
- e.links = i.filter((t) => t.source === e || t.target === e), e._isConnected = e.links.length !== 0;
2411
- }), this._nonConnectedNodes = r.filter((e) => !e._isConnected), this._connectedNodes = Xt(r, ...this._nonConnectedNodes), this._nodes = r, this._links = i.filter((e) => e.source === e.target ? (console.warn(`Unovis | Graph Data Model: Skipping link ${e._id} because it has the same source and target`), !1) : e.source && e.target);
2407
+ });
2408
+ let o = /* @__PURE__ */ new Map();
2409
+ r.forEach((e) => o.set(e, []));
2410
+ for (let e of i) e.source && o.get(e.source)?.push(e), e.target && e.target !== e.source && o.get(e.target)?.push(e);
2411
+ r.forEach((e) => {
2412
+ e.links = o.get(e), e._isConnected = e.links.length !== 0;
2413
+ }), this._nonConnectedNodes = r.filter((e) => !e._isConnected), this._connectedNodes = r.filter((e) => e._isConnected), this._nodes = r, this._links = i.filter((e) => e.source === e.target ? (console.warn(`Unovis | Graph Data Model: Skipping link ${e._id} because it has the same source and target`), !1) : e.source && e.target);
2412
2414
  }
2413
2415
  get nodes() {
2414
2416
  return this._nodes;
@@ -2424,12 +2426,17 @@ var Ri = class extends Zr {
2424
2426
  }
2425
2427
  findNode(e, t) {
2426
2428
  let n;
2427
- return Vt(t) ? n = e[t] : Wt(t) ? n = e.find((e) => this.nodeId(e) === t) : Kt(t) && (n = e.find((e) => Yt(this._inputNodesMap.get(e), t))), n || console.warn(`Unovis | Graph Data Model: Node ${t} is missing from the nodes list`), n;
2429
+ return tn(t) ? n = e[t] : an(t) ? n = this._nodesByUserId.get(t) : sn(t) && (n = this._nodesByInputRef.get(t) ?? e.find((e) => un(this._inputNodesMap.get(e), t))), n || console.warn(`Unovis | Graph Data Model: Node ${t} is missing from the nodes list`), n;
2428
2430
  }
2429
2431
  transferState(e, t, n) {
2430
- for (let r of e) {
2431
- let e = t.find((e) => n(e) === n(r));
2432
- r._state = e ? Object.assign({}, e._state) : {};
2432
+ let r = /* @__PURE__ */ new Map();
2433
+ for (let e of t) {
2434
+ let t = n(e);
2435
+ r.has(t) || r.set(t, e);
2436
+ }
2437
+ for (let t of e) {
2438
+ let e = r.get(n(t));
2439
+ t._state = e ? { ...e._state } : {};
2433
2440
  }
2434
2441
  }
2435
2442
  setNodeStateById(e, t) {
@@ -2440,15 +2447,18 @@ var Ri = class extends Zr {
2440
2447
  }
2441
2448
  n._state = t;
2442
2449
  }
2443
- }, zi = Object.assign(Object.assign({}, Qr), {
2450
+ }, Ca = {
2451
+ ...Xi,
2444
2452
  duration: 800,
2445
2453
  highlightedNodeId: void 0,
2446
2454
  highlightedLinkIds: [],
2447
2455
  linkColor: void 0,
2456
+ linkPattern: void 0,
2448
2457
  linkValue: (e) => e.value,
2449
2458
  nodeLevels: [],
2450
2459
  nodeWidth: 15,
2451
2460
  nodeColor: (e) => e.color,
2461
+ nodePattern: void 0,
2452
2462
  nodeLabel: (e) => e.label ?? e.key,
2453
2463
  nodeLabelColor: void 0,
2454
2464
  nodeLabelAlignment: $.Along,
@@ -2456,10 +2466,10 @@ var Ri = class extends Zr {
2456
2466
  cornerRadius: 2,
2457
2467
  angleRange: [0, 2 * Math.PI],
2458
2468
  radiusScaleExponent: 2
2459
- });
2469
+ };
2460
2470
  //#endregion
2461
2471
  //#region node_modules/@unovis/ts/components/chord-diagram/modules/node.js
2462
- function Bi(e) {
2472
+ function wa(e) {
2463
2473
  e.style("opacity", 0).each((e, t, n) => {
2464
2474
  let r = n[t], i = (e.x0 + e.x1) / 2, a = (e.x1 - e.x0) / 2;
2465
2475
  r._animState = {
@@ -2470,41 +2480,41 @@ function Bi(e) {
2470
2480
  };
2471
2481
  });
2472
2482
  }
2473
- function Vi(e, t, n, r) {
2474
- let i = (e) => Si(e.data, t.nodeColor, e.height);
2475
- e.attr("id", (e) => e.uid).style("transition", `fill ${r}ms`).style("fill", i).style("stroke", i), r ? Jr(e, r).style("opacity", 1).attrTween("d", (e, t, r) => {
2476
- let i = r[t], o = {
2483
+ function Ta(e, t, n, r) {
2484
+ let a = (e) => hi(e.data, t.nodeColor, e.height);
2485
+ e.attr("id", (e) => e.uid).style("transition", `fill ${r}ms`).style("fill", a).style("stroke", a).style("mask", (e) => xi(bi(e.data, t.nodePattern, e.height))), r ? Ki(e, r).style("opacity", 1).attrTween("d", (e, t, r) => {
2486
+ let a = r[t], o = {
2477
2487
  x0: e.x0,
2478
2488
  x1: e.x1,
2479
2489
  y0: e.y0,
2480
2490
  y1: e.y1
2481
- }, s = a(i._animState, o);
2482
- return (e) => (i._animState = s(e), n(i._animState));
2491
+ }, s = i(a._animState, o);
2492
+ return (e) => (a._animState = s(e), n(a._animState));
2483
2493
  }) : e.attr("d", (e) => n(e)).style("opacity", 1);
2484
2494
  }
2485
- function Hi(e, t) {
2486
- Jr(e, t).style("opacity", 0).remove();
2495
+ function Ea(e, t) {
2496
+ Ki(e, t).style("opacity", 0).remove();
2487
2497
  }
2488
2498
  //#endregion
2489
2499
  //#region node_modules/@unovis/ts/components/chord-diagram/style.js
2490
- var Ui = /* @__PURE__ */ e({
2491
- background: () => Ki,
2492
- highlightedLink: () => na,
2493
- highlightedNode: () => Zi,
2494
- label: () => Qi,
2495
- labelExit: () => ea,
2496
- labelText: () => $i,
2497
- labels: () => Yi,
2498
- link: () => ta,
2499
- links: () => Ji,
2500
- node: () => Xi,
2501
- nodes: () => qi,
2502
- root: () => Wi,
2503
- transparent: () => ra,
2504
- variables: () => Gi
2505
- }), Wi = K`
2500
+ var Da = /* @__PURE__ */ n({
2501
+ background: () => Aa,
2502
+ highlightedLink: () => Ba,
2503
+ highlightedNode: () => Fa,
2504
+ label: () => Ia,
2505
+ labelExit: () => Ra,
2506
+ labelText: () => La,
2507
+ labels: () => Na,
2508
+ link: () => za,
2509
+ links: () => Ma,
2510
+ node: () => Pa,
2511
+ nodes: () => ja,
2512
+ root: () => Oa,
2513
+ transparent: () => Va,
2514
+ variables: () => ka
2515
+ }), Oa = J`
2506
2516
  label: chord-diagram-component;
2507
- `, Gi = zt`
2517
+ `, ka = Xt`
2508
2518
  :root {
2509
2519
  --vis-chord-diagram-link-fill-color: #cad5f6;
2510
2520
  --vis-chord-diagram-link-stroke-color: #777777;
@@ -2523,30 +2533,30 @@ var Ui = /* @__PURE__ */ e({
2523
2533
  --vis-dark-chord-diagram-link-fill-color: #575c65;
2524
2534
  }
2525
2535
 
2526
- ${Fr} ${`.${Wi}`} {
2536
+ ${Yr} ${`.${Oa}`} {
2527
2537
  --vis-chord-diagram-link-fill-color: var(--vis-dark-chord-diagram-link-fill-color);
2528
2538
  }
2529
- `, Ki = K`
2539
+ `, Aa = J`
2530
2540
  label: background;
2531
- `, qi = K`
2541
+ `, ja = J`
2532
2542
  label: nodes;
2533
- `, Ji = K`
2543
+ `, Ma = J`
2534
2544
  label: links;
2535
- `, Yi = K`
2545
+ `, Na = J`
2536
2546
  label: labels;
2537
- `, Xi = K`
2547
+ `, Pa = J`
2538
2548
  label: node;
2539
2549
  stroke-width: 0;
2540
2550
  fill: var(--vis-color-main);
2541
2551
  stroke: var(--vis-color-main);
2542
2552
  transition: .1s fill-opacity;
2543
- `, Zi = K`
2553
+ `, Fa = J`
2544
2554
  label: highlighted;
2545
2555
  fill-opacity: var(--vis-chord-diagram-node-highlighted-opacity);
2546
2556
  stroke-width: 1.5;
2547
- `, Qi = K`
2557
+ `, Ia = J`
2548
2558
  label: label;
2549
- `, $i = K`
2559
+ `, La = J`
2550
2560
  label: label-text;
2551
2561
 
2552
2562
  dominant-baseline: middle;
@@ -2556,9 +2566,9 @@ var Ui = /* @__PURE__ */ e({
2556
2566
  > textPath {
2557
2567
  dominant-baseline: central;
2558
2568
  }
2559
- `, ea = K`
2569
+ `, Ra = J`
2560
2570
  label: label-exit;
2561
- `, ta = K`
2571
+ `, za = J`
2562
2572
  label: link;
2563
2573
 
2564
2574
  fill: var(--vis-chord-diagram-link-fill-color);
@@ -2566,37 +2576,37 @@ var Ui = /* @__PURE__ */ e({
2566
2576
  stroke: var(--vis-chord-diagram-link-stroke-color);
2567
2577
  stroke-opacity: var(--vis-chord-diagram-link-stroke-opacity);
2568
2578
  transition: .1s fill-opacity;
2569
- `, na = K`
2579
+ `, Ba = J`
2570
2580
  label: highlighted;
2571
2581
  fill-opacity: var(--vis-chord-diagram-link-highlighted-opacity);
2572
- `, ra = K`
2582
+ `, Va = J`
2573
2583
  label: transparent;
2574
2584
 
2575
- ${`.${ta}`}:not(${`.${na}`}) {
2585
+ ${`.${za}`}:not(${`.${Ba}`}) {
2576
2586
  fill-opacity: var(--vis-chord-diagram-link-dimmed-opacity);
2577
2587
  }
2578
2588
 
2579
- ${`.${Xi}`}:not(${`.${Zi}`}) {
2589
+ ${`.${Pa}`}:not(${`.${Fa}`}) {
2580
2590
  fill-opacity: var(--vis-chord-diagram-node-dimmed-opacity);
2581
2591
  }
2582
2592
  `;
2583
- function ia(e, t) {
2584
- switch (tn(e.data, t.nodeLabelAlignment) ?? $.Along) {
2585
- case $.Perpendicular: return Si(e.data, t.nodeColor, e.height);
2593
+ function Ha(e, t) {
2594
+ switch (Y(e.data, t.nodeLabelAlignment) ?? $.Along) {
2595
+ case $.Perpendicular: return hi(e.data, t.nodeColor, e.height);
2586
2596
  case $.Along: {
2587
- let n = Si(e.data, t.nodeColor, e.height), r = l(n);
2588
- return (r ? Ti(r.hex()) : 0) > .65 ? "var(--vis-chord-diagram-label-text-fill-color-dark)" : "var(--vis-chord-diagram-label-text-fill-color-bright)";
2597
+ let n = hi(e.data, t.nodeColor, e.height), r = l(n);
2598
+ return (r ? vi(r.hex()) : 0) > .65 ? "var(--vis-chord-diagram-label-text-fill-color-dark)" : "var(--vis-chord-diagram-label-text-fill-color-bright)";
2589
2599
  }
2590
2600
  }
2591
2601
  }
2592
- function aa(e, t) {
2593
- switch (tn(e.data, t.nodeLabelAlignment) ?? $.Along) {
2602
+ function Ua(e, t) {
2603
+ switch (Y(e.data, t.nodeLabelAlignment) ?? $.Along) {
2594
2604
  case $.Perpendicular: return (e.x0 + e.x1) / 2 * 180 / Math.PI < 180 ? "start" : "end";
2595
2605
  case $.Along: return null;
2596
2606
  }
2597
2607
  }
2598
- function oa(e, t, n) {
2599
- switch (tn(e.data, t.nodeLabelAlignment) ?? $.Along) {
2608
+ function Wa(e, t, n) {
2609
+ switch (Y(e.data, t.nodeLabelAlignment) ?? $.Along) {
2600
2610
  case $.Perpendicular: {
2601
2611
  let t = n(e.y1) + 3, r = (e.x0 + e.x1) / 2 - Math.PI / 2;
2602
2612
  return `translate(${t * Math.cos(r)}, ${t * Math.sin(r)})`;
@@ -2604,28 +2614,28 @@ function oa(e, t, n) {
2604
2614
  case $.Along: return null;
2605
2615
  }
2606
2616
  }
2607
- function sa(e, t, n) {
2608
- e.style("opacity", 0).attr("transform", (e) => oa(e, t, n)), e.append("text").attr("class", $i).style("fill", (e) => Si(e.data, t.nodeColor, e.height));
2617
+ function Ga(e, t, n) {
2618
+ e.style("opacity", 0).attr("transform", (e) => Wa(e, t, n)), e.append("text").attr("class", La).style("fill", (e) => hi(e.data, t.nodeColor, e.height));
2609
2619
  }
2610
- function ca(e, t, n, r, i) {
2620
+ function Ka(e, t, n, r, i) {
2611
2621
  let { nodeLabel: a, nodeLabelColor: o, nodeWidth: s } = t;
2612
- Jr(e, i).attr("transform", (e) => oa(e, t, r)).style("opacity", 1);
2613
- let l = e.select(`.${$i}`);
2614
- l.selectAll("textPath").remove(), l.text((e) => nn(e.data, a)).style("transition", `fill ${i}ms`).style("fill", (e) => Si(e.data, o) ?? ia(e, t)).style("text-anchor", (e) => aa(e, t)).each((e, i, a) => {
2615
- let o = tn(e.data, t.nodeLabelAlignment) ?? $.Along, l = e.x1 - e.x0 - q(e.data, t.padAngle) * 2, u = (r(e.y1) - q(e, t.nodeWidth) / 2) * l, d = o === $.Along ? u : n - 6, f = c(a[i]).call(Ii, d).attr("dx", o === $.Along ? 3 : null).attr("dy", o === $.Along ? q(e.data, s) / 2 : null), p = f.node().getComputedTextLength(), m = f.text();
2622
+ Ki(e, i).attr("transform", (e) => Wa(e, t, r)).style("opacity", 1);
2623
+ let l = e.select(`.${La}`);
2624
+ l.selectAll("textPath").remove(), l.text((e) => hn(e.data, a)).style("transition", `fill ${i}ms`).style("fill", (e) => hi(e.data, o) ?? Ha(e, t)).style("text-anchor", (e) => Ua(e, t)).each((e, i, a) => {
2625
+ let o = Y(e.data, t.nodeLabelAlignment) ?? $.Along, l = e.x1 - e.x0 - X(e.data, t.padAngle) * 2, u = (r(e.y1) - X(e, t.nodeWidth) / 2) * l, d = o === $.Along ? u : n - 6, f = c(a[i]).call(Gi, d).attr("dx", o === $.Along ? 3 : null).attr("dy", o === $.Along ? X(e.data, s) / 2 : null), p = Bi(f.node()), m = f.text();
2616
2626
  o === $.Along && (f.text(""), p <= d && f.append("textPath").attr("href", `#${e.uid}`).text(m));
2617
- }), Jr(l, i).attr("transform", (e) => {
2618
- if (tn(e.data, t.nodeLabelAlignment) !== $.Perpendicular) return null;
2627
+ }), Ki(l, i).attr("transform", (e) => {
2628
+ if (Y(e.data, t.nodeLabelAlignment) !== $.Perpendicular) return null;
2619
2629
  let n = (e.x0 + e.x1) / 2 * 180 / Math.PI;
2620
2630
  return `rotate(${n < 180 ? n - 90 : n + 90})`;
2621
2631
  });
2622
2632
  }
2623
- function la(e, t) {
2624
- Jr(e, t).style("opacity", 0).remove();
2633
+ function qa(e, t) {
2634
+ Ki(e, t).style("opacity", 0).remove();
2625
2635
  }
2626
2636
  //#endregion
2627
2637
  //#region node_modules/@unovis/ts/components/chord-diagram/modules/layout.js
2628
- function ua(e) {
2638
+ function Ja(e) {
2629
2639
  let { height: t, depth: n } = e;
2630
2640
  if (t > 0) {
2631
2641
  let r = e.data, i = e;
@@ -2638,23 +2648,23 @@ function ua(e) {
2638
2648
  };
2639
2649
  }
2640
2650
  }
2641
- function da(e, t, r = []) {
2642
- let i = r.map((e) => (t) => t[e]), a = r.length ? n(e, ...i) : {
2651
+ function Ya(e, n, r = []) {
2652
+ let i = r.map((e) => (t) => t[e]), a = r.length ? t(e, ...i) : {
2643
2653
  key: "root",
2644
2654
  children: e
2645
2655
  };
2646
- return pe(a).sum((e) => q(e, t)).each(ua);
2656
+ return de(a).sum((e) => X(e, n)).each(Ja);
2647
2657
  }
2648
- function fa(e, t, n = .95) {
2658
+ function Xa(e, t, n = .95) {
2649
2659
  if (!e.children) return;
2650
- let r = e.value > 0, i = e.x1 - e.x0, a = i * (e.y0 === 0 ? 1 : n), o = i - a, s = r ? t : a / e.children.length, c = _n().startAngle(e.x0 + o / 2).endAngle(e.x1 - o / 2).padAngle(s).value((e) => r ? e.value : 1).sort((t, n) => e.children.indexOf(t) - e.children.indexOf(n))(e.children);
2660
+ let r = e.value > 0, i = e.x1 - e.x0, a = i * (e.y0 === 0 ? 1 : n), o = i - a, s = r ? t : a / e.children.length, c = kn().startAngle(e.x0 + o / 2).endAngle(e.x1 - o / 2).padAngle(s).value((e) => r ? e.value : 1).sort((t, n) => e.children.indexOf(t) - e.children.indexOf(n))(e.children);
2651
2661
  e.children.forEach((e, i) => {
2652
2662
  let a = c[i].startAngle, o = c[i].endAngle, s = (o - a) * (1 - n), l = (a + o) / 2;
2653
2663
  e.x0 = r ? a + s / 2 : l - t / 2, e.x1 = r ? o - s / 2 : l + t / 2;
2654
2664
  });
2655
2665
  }
2656
- function pa(e, n, r) {
2657
- let i = $t(n, (e) => e.source._id), a = $t(n, (e) => e.target._id), o = e.leaves(), s = t(o, (e) => e.data._id), c = (e, t, n, r = []) => (r[e.height] = e, r[n * 2 - t.height] = t, e.parent && t.parent && c(e.parent, t.parent, n, r), r), l = (e, t, n, i) => {
2666
+ function Za(t, n, r) {
2667
+ let i = pn(n, (e) => e.source._id), a = pn(n, (e) => e.target._id), o = t.leaves(), s = e(o, (e) => e.data._id), c = (e, t, n, r = []) => (r[e.height] = e, r[n * 2 - t.height] = t, e.parent && t.parent && c(e.parent, t.parent, n, r), r), l = (e, t, n, i) => {
2658
2668
  e.forEach((e) => {
2659
2669
  e._state.points || (e._state.points = []);
2660
2670
  let a = s.get(e.source._id), o = s.get(e.target._id), l = c(t === "out" ? a : o, t === "out" ? o : a, i)[n], u = l.x1 - l.x0 - r, d = l._prevX1 ?? l.x0 + r / 2, f = d + u * e._state.value / l.value;
@@ -2680,64 +2690,64 @@ function pa(e, n, r) {
2680
2690
  }
2681
2691
  //#endregion
2682
2692
  //#region node_modules/d3-chord/src/math.js
2683
- var ma = Math.abs, ha = Math.cos, ga = Math.sin, _a = Math.PI, va = _a / 2;
2684
- _a * 2;
2693
+ var Qa = Math.abs, $a = Math.cos, eo = Math.sin, to = Math.PI, no = to / 2;
2694
+ to * 2;
2685
2695
  //#endregion
2686
2696
  //#region node_modules/d3-chord/src/array.js
2687
- var ya = Array.prototype.slice;
2697
+ var ro = Array.prototype.slice;
2688
2698
  //#endregion
2689
2699
  //#region node_modules/d3-chord/src/constant.js
2690
- function ba(e) {
2700
+ function io(e) {
2691
2701
  return function() {
2692
2702
  return e;
2693
2703
  };
2694
2704
  }
2695
2705
  //#endregion
2696
2706
  //#region node_modules/d3-chord/src/ribbon.js
2697
- function xa(e) {
2707
+ function ao(e) {
2698
2708
  return e.source;
2699
2709
  }
2700
- function Sa(e) {
2710
+ function oo(e) {
2701
2711
  return e.target;
2702
2712
  }
2703
- function Ca(e) {
2713
+ function so(e) {
2704
2714
  return e.radius;
2705
2715
  }
2706
- function wa(e) {
2716
+ function co(e) {
2707
2717
  return e.startAngle;
2708
2718
  }
2709
- function Ta(e) {
2719
+ function lo(e) {
2710
2720
  return e.endAngle;
2711
2721
  }
2712
- function Ea() {
2722
+ function uo() {
2713
2723
  return 0;
2714
2724
  }
2715
- function Da(e) {
2716
- var t = xa, n = Sa, r = Ca, i = Ca, a = wa, o = Ta, s = Ea, c = null;
2725
+ function fo(e) {
2726
+ var t = ao, n = oo, r = so, i = so, a = co, o = lo, s = uo, c = null;
2717
2727
  function l() {
2718
- var l, u = t.apply(this, arguments), d = n.apply(this, arguments), f = s.apply(this, arguments) / 2, p = ya.call(arguments), m = +r.apply(this, (p[0] = u, p)), h = a.apply(this, p) - va, g = o.apply(this, p) - va, _ = +i.apply(this, (p[0] = d, p)), v = a.apply(this, p) - va, y = o.apply(this, p) - va;
2719
- if (c ||= l = T(), f > 1e-12 && (ma(g - h) > f * 2 + 1e-12 ? g > h ? (h += f, g -= f) : (h -= f, g += f) : h = g = (h + g) / 2, ma(y - v) > f * 2 + 1e-12 ? y > v ? (v += f, y -= f) : (v -= f, y += f) : v = y = (v + y) / 2), c.moveTo(m * ha(h), m * ga(h)), c.arc(0, 0, m, h, g), h !== v || g !== y) {
2728
+ var l, u = t.apply(this, arguments), d = n.apply(this, arguments), f = s.apply(this, arguments) / 2, p = ro.call(arguments), m = +r.apply(this, (p[0] = u, p)), h = a.apply(this, p) - no, g = o.apply(this, p) - no, _ = +i.apply(this, (p[0] = d, p)), v = a.apply(this, p) - no, y = o.apply(this, p) - no;
2729
+ if (c ||= l = T(), f > 1e-12 && (Qa(g - h) > f * 2 + 1e-12 ? g > h ? (h += f, g -= f) : (h -= f, g += f) : h = g = (h + g) / 2, Qa(y - v) > f * 2 + 1e-12 ? y > v ? (v += f, y -= f) : (v -= f, y += f) : v = y = (v + y) / 2), c.moveTo(m * $a(h), m * eo(h)), c.arc(0, 0, m, h, g), h !== v || g !== y) {
2720
2730
  if (e) {
2721
2731
  var b = _ - +e.apply(this, arguments), x = (v + y) / 2;
2722
- c.quadraticCurveTo(0, 0, b * ha(v), b * ga(v)), c.lineTo(_ * ha(x), _ * ga(x)), c.lineTo(b * ha(y), b * ga(y));
2723
- } else c.quadraticCurveTo(0, 0, _ * ha(v), _ * ga(v)), c.arc(0, 0, _, v, y);
2732
+ c.quadraticCurveTo(0, 0, b * $a(v), b * eo(v)), c.lineTo(_ * $a(x), _ * eo(x)), c.lineTo(b * $a(y), b * eo(y));
2733
+ } else c.quadraticCurveTo(0, 0, _ * $a(v), _ * eo(v)), c.arc(0, 0, _, v, y);
2724
2734
  }
2725
- if (c.quadraticCurveTo(0, 0, m * ha(h), m * ga(h)), c.closePath(), l) return c = null, l + "" || null;
2735
+ if (c.quadraticCurveTo(0, 0, m * $a(h), m * eo(h)), c.closePath(), l) return c = null, l + "" || null;
2726
2736
  }
2727
2737
  return e && (l.headRadius = function(t) {
2728
- return arguments.length ? (e = typeof t == "function" ? t : ba(+t), l) : e;
2738
+ return arguments.length ? (e = typeof t == "function" ? t : io(+t), l) : e;
2729
2739
  }), l.radius = function(e) {
2730
- return arguments.length ? (r = i = typeof e == "function" ? e : ba(+e), l) : r;
2740
+ return arguments.length ? (r = i = typeof e == "function" ? e : io(+e), l) : r;
2731
2741
  }, l.sourceRadius = function(e) {
2732
- return arguments.length ? (r = typeof e == "function" ? e : ba(+e), l) : r;
2742
+ return arguments.length ? (r = typeof e == "function" ? e : io(+e), l) : r;
2733
2743
  }, l.targetRadius = function(e) {
2734
- return arguments.length ? (i = typeof e == "function" ? e : ba(+e), l) : i;
2744
+ return arguments.length ? (i = typeof e == "function" ? e : io(+e), l) : i;
2735
2745
  }, l.startAngle = function(e) {
2736
- return arguments.length ? (a = typeof e == "function" ? e : ba(+e), l) : a;
2746
+ return arguments.length ? (a = typeof e == "function" ? e : io(+e), l) : a;
2737
2747
  }, l.endAngle = function(e) {
2738
- return arguments.length ? (o = typeof e == "function" ? e : ba(+e), l) : o;
2748
+ return arguments.length ? (o = typeof e == "function" ? e : io(+e), l) : o;
2739
2749
  }, l.padAngle = function(e) {
2740
- return arguments.length ? (s = typeof e == "function" ? e : ba(+e), l) : s;
2750
+ return arguments.length ? (s = typeof e == "function" ? e : io(+e), l) : s;
2741
2751
  }, l.source = function(e) {
2742
2752
  return arguments.length ? (t = e, l) : t;
2743
2753
  }, l.target = function(e) {
@@ -2746,39 +2756,39 @@ function Da(e) {
2746
2756
  return arguments.length ? (c = e ?? null, l) : c;
2747
2757
  }, l;
2748
2758
  }
2749
- function Oa() {
2750
- return Da();
2759
+ function po() {
2760
+ return fo();
2751
2761
  }
2752
2762
  //#endregion
2753
2763
  //#region node_modules/@unovis/ts/components/chord-diagram/modules/link.js
2754
- function ka() {
2764
+ function mo() {
2755
2765
  return "M0,0 L0,0";
2756
2766
  }
2757
- var Aa = Oa().source((e) => e[0]).target((e) => e[e.length - 1]).startAngle((e) => e.a0).endAngle((e) => e.a1), ja = Sn().curve(Ei.catmullRom.alpha(.5)).startAngle((e, t, n) => t < n.length / 2 ? e.a1 : e.a0).endAngle((e, t, n) => t < n.length / 2 ? e.a0 : e.a1);
2758
- function Ma(e, t) {
2759
- let n = e.length === 2 ? Aa : ja;
2767
+ var ho = po().source((e) => e[0]).target((e) => e[e.length - 1]).startAngle((e) => e.a0).endAngle((e) => e.a1), go = Pn().curve(ba.catmullRom.alpha(.5)).startAngle((e, t, n) => t < n.length / 2 ? e.a1 : e.a0).endAngle((e, t, n) => t < n.length / 2 ? e.a0 : e.a1);
2768
+ function _o(e, t) {
2769
+ let n = e.length === 2 ? ho : go;
2760
2770
  n.radius((e) => t(e.r));
2761
2771
  let r = n(e);
2762
2772
  if (e.length === 2) return r;
2763
2773
  let i = r.slice(0, -1);
2764
- return Di(i.concat(`L${i.match(/M-?\d*\.?\d*[,\s*]-?\d*\.?\d*/)?.[0].slice(1)}`), Math.max(t(e[0].r), 0));
2774
+ return xa(i.concat(`L${i.match(/M-?\d*\.?\d*[,\s*]-?\d*\.?\d*/)?.[0].slice(1)}`), Math.max(t(e[0].r), 0));
2765
2775
  }
2766
- function Na(e, t) {
2767
- e.attr("d", (e) => Ma(e.points, t) || ka()).style("opacity", 0);
2776
+ function vo(e, t) {
2777
+ e.attr("d", (e) => _o(e.points, t) || mo()).style("opacity", 0);
2768
2778
  }
2769
- function Pa(e, t, n, r) {
2770
- e.style("transition", `fill ${r}ms`).style("fill", (e) => Si(e.data, t.linkColor)).style("stroke", (e) => Si(e.data, t.linkColor));
2771
- let i = Jr(e, r).style("opacity", 1);
2772
- r ? i.attrTween("d", (e, t, r) => xi(c(r[t]).attr("d"), Ma(e.points, n) || ka())) : i.attr("d", (e) => Ma(e.points, n) || ka());
2779
+ function yo(e, t, n, r) {
2780
+ e.style("transition", `fill ${r}ms`).style("fill", (e) => hi(e.data, t.linkColor)).style("stroke", (e) => hi(e.data, t.linkColor)).style("mask", (e) => xi(bi(e.data, t.linkPattern)));
2781
+ let i = Ki(e, r).style("opacity", 1);
2782
+ r ? i.attrTween("d", (e, t, r) => ya(c(r[t]).attr("d"), _o(e.points, n) || mo())) : i.attr("d", (e) => _o(e.points, n) || mo());
2773
2783
  }
2774
- function Fa(e, t) {
2775
- Jr(e, t).style("opacity", 0).remove();
2784
+ function bo(e, t) {
2785
+ Ki(e, t).style("opacity", 0).remove();
2776
2786
  }
2777
2787
  //#endregion
2778
2788
  //#region node_modules/@unovis/ts/components/chord-diagram/index.js
2779
- var Ia = class e extends $r {
2789
+ var xo = class e extends Zi {
2780
2790
  constructor(t) {
2781
- super(), this._defaultConfig = zi, this.config = this._defaultConfig, this.datamodel = new Ri(), this.arcGen = fn(), this.radiusScale = i(), this.events = {
2791
+ super(), this._defaultConfig = Ca, this.config = this._defaultConfig, this.datamodel = new Sa(), this.arcGen = wn(), this.radiusScale = r(), this.events = {
2782
2792
  [e.selectors.node]: {
2783
2793
  mouseover: this._onNodeMouseOver.bind(this),
2784
2794
  mouseout: this._onNodeMouseOut.bind(this)
@@ -2791,7 +2801,7 @@ var Ia = class e extends $r {
2791
2801
  mouseover: this._onNodeMouseOver.bind(this),
2792
2802
  mouseout: this._onNodeMouseOut.bind(this)
2793
2803
  }
2794
- }, this._nodes = [], this._links = [], t && this.setConfig(t), this.background = this.g.append("rect").attr("class", Ki), this.linkGroup = this.g.append("g").attr("class", Ji), this.nodeGroup = this.g.append("g").attr("class", qi), this.labelGroup = this.g.append("g").attr("class", Yi);
2804
+ }, this._nodes = [], this._links = [], this.setConfig(t), this.background = this.g.append("rect").attr("class", Aa), this.linkGroup = this.g.append("g").attr("class", Ma), this.nodeGroup = this.g.append("g").attr("class", ja), this.labelGroup = this.g.append("g").attr("class", Na);
2795
2805
  }
2796
2806
  get _forceHighlight() {
2797
2807
  return this.config.highlightedNodeId !== void 0 || this.config.highlightedLinkIds?.length > 0;
@@ -2799,9 +2809,9 @@ var Ia = class e extends $r {
2799
2809
  get bleed() {
2800
2810
  let { config: e } = this, t = 0, n = 0, r = 0, i = 0;
2801
2811
  return this._nodes.forEach((a) => {
2802
- let o = tn(a.data, e.nodeLabelAlignment);
2812
+ let o = Y(a.data, e.nodeLabelAlignment);
2803
2813
  if (a.height === 0 && o === $.Perpendicular) {
2804
- let o = Li(nn(a.data, e.nodeLabel) ?? "", Pr("var(--vis-chord-diagram-label-text-font-size)", this.element)), [s, c] = this.arcGen.centroid(a);
2814
+ let o = Ii(hn(a.data, e.nodeLabel) ?? "", Yn("var(--vis-chord-diagram-label-text-font-size)", this.element)), [s, c] = this.arcGen.centroid(a);
2805
2815
  s < 0 ? i = Math.max(i, o) : r = Math.max(r, o), c < 0 ? t = Math.max(t, o) : n = Math.max(n, o);
2806
2816
  }
2807
2817
  }), i += 6, r += 6, n += 6, t += 6, {
@@ -2822,35 +2832,35 @@ var Ia = class e extends $r {
2822
2832
  e.forEach((e) => {
2823
2833
  delete e._state.value;
2824
2834
  }), t.forEach((e) => {
2825
- delete e._state.points, e._state.value = q(e, r), e.source._state.value = (e.source._state.value || 0) + q(e, r), e.target._state.value = (e.target._state.value || 0) + q(e, r);
2835
+ delete e._state.points, e._state.value = X(e, r), e.source._state.value = (e.source._state.value || 0) + X(e, r), e.target._state.value = (e.target._state.value || 0) + X(e, r);
2826
2836
  }), t = t.filter((e) => e._state.value);
2827
- let a = da(e, (e) => e._state?.value, i), o = Tn().size([this.config.angleRange[1], 1])(a);
2837
+ let a = Ya(e, (e) => e._state?.value, i), o = Ln().size([this.config.angleRange[1], 1])(a);
2828
2838
  o.each((e, t) => {
2829
- fa(e, n), e.uid = `${this.uid.substr(0, 4)}-${t}`, e.x0 = Number.isNaN(e.x0) ? 0 : e.x0, e.x1 = Number.isNaN(e.x1) ? 0 : e.x1, e._state = {};
2839
+ Xa(e, n), e.uid = `${this.uid.substr(0, 4)}-${t}`, e.x0 = Number.isNaN(e.x0) ? 0 : e.x0, e.x1 = Number.isNaN(e.x1) ? 0 : e.x1, e._state = {};
2830
2840
  });
2831
2841
  let s = o.descendants();
2832
- this._rootNode = s.find((e) => e.depth === 0), this._nodes = s.filter((e) => e.depth !== 0), this._links = pa(o, t, n);
2842
+ this._rootNode = s.find((e) => e.depth === 0), this._nodes = s.filter((e) => e.depth !== 0), this._links = Za(o, t, n);
2833
2843
  }
2834
2844
  _render(e) {
2835
2845
  super._render(e);
2836
2846
  let { config: t, bleed: n } = this;
2837
2847
  this._layoutData();
2838
- let r = Vt(e) ? e : t.duration, i = Math.min(this._width, this._height), a = i / 2 - o([
2848
+ let r = tn(e) ? e : t.duration, i = Math.min(this._width, this._height), a = i / 2 - o([
2839
2849
  n.top,
2840
2850
  n.bottom,
2841
2851
  n.left,
2842
2852
  n.right
2843
2853
  ]), s = 1 + t.nodeLevels?.length, c = a > t.nodeWidth * s ? t.nodeWidth : Math.max(a / s, 0);
2844
- this.radiusScale.range([0, Math.max(a, 0)]), this.arcGen.startAngle((e) => e.x0 + t.padAngle / 2 - (e.value ? 0 : Math.PI / 360)).endAngle((e) => e.x1 - t.padAngle / 2 + (e.value ? 0 : Math.PI / 360)).cornerRadius((e) => q(e.data, t.cornerRadius)).innerRadius((e) => Math.max(this.radiusScale(e.y1) - c, 0)).outerRadius((e) => this.radiusScale(e.y1)), this.g.classed(ra, this._forceHighlight), this.background.attr("width", this._width).attr("height", this._height).style("opacity", 0), this.nodeGroup.attr("transform", `translate(${this._width / 2},${this._height / 2})`), this.labelGroup.attr("transform", `translate(${this._width / 2},${this._height / 2})`), this.linkGroup.attr("transform", `translate(${this._width / 2},${this._height / 2})`);
2845
- let l = this.linkGroup.selectAll(`.${ta}`).data(this._links, (e) => String(e.data._id)), u = l.enter().append("path").attr("class", ta).call(Na, this.radiusScale);
2846
- l.merge(u).classed(na, (e) => {
2854
+ this.radiusScale.range([0, Math.max(a, 0)]), this.arcGen.startAngle((e) => e.x0 + t.padAngle / 2 - (e.value ? 0 : Math.PI / 360)).endAngle((e) => e.x1 - t.padAngle / 2 + (e.value ? 0 : Math.PI / 360)).cornerRadius((e) => X(e.data, t.cornerRadius)).innerRadius((e) => Math.max(this.radiusScale(e.y1) - c, 0)).outerRadius((e) => this.radiusScale(e.y1)), this.g.classed(Va, this._forceHighlight), this.background.attr("width", this._width).attr("height", this._height).style("opacity", 0), this.nodeGroup.attr("transform", `translate(${this._width / 2},${this._height / 2})`), this.labelGroup.attr("transform", `translate(${this._width / 2},${this._height / 2})`), this.linkGroup.attr("transform", `translate(${this._width / 2},${this._height / 2})`);
2855
+ let l = this.linkGroup.selectAll(`.${za}`).data(this._links, (e) => String(e.data._id)), u = l.enter().append("path").attr("class", za).call(vo, this.radiusScale);
2856
+ l.merge(u).classed(Ba, (e) => {
2847
2857
  let n = e.data.id ?? e.data._indexGlobal;
2848
2858
  return t.highlightedLinkIds?.includes(n);
2849
- }).call(Pa, t, this.radiusScale, r), l.exit().call(Fa, r);
2850
- let d = this.nodeGroup.selectAll(`.${Xi}`).data(this._nodes, (e) => String(e.uid)), f = d.enter().append("path").attr("class", Xi).call(Bi, t);
2851
- d.merge(f).classed(Zi, (e) => t.highlightedNodeId === e.data._id).call(Vi, t, this.arcGen, r, this.bleed), d.exit().call(Hi, r);
2852
- let p = i - a, m = this.labelGroup.selectAll(`.${Qi}`).data(this._nodes, (e) => String(e.uid)), h = m.enter().append("g").attr("class", Qi).call(sa, t, this.radiusScale);
2853
- m.merge(h).call(ca, t, p, this.radiusScale, r), m.exit().attr("class", ea).call(la, r);
2859
+ }).call(yo, t, this.radiusScale, r), l.exit().call(bo, r);
2860
+ let d = this.nodeGroup.selectAll(`.${Pa}`).data(this._nodes, (e) => String(e.uid)), f = d.enter().append("path").attr("class", Pa).call(wa);
2861
+ d.merge(f).classed(Fa, (e) => t.highlightedNodeId === e.data._id).call(Ta, t, this.arcGen, r), d.exit().call(Ea, r);
2862
+ let p = i - a, m = this.labelGroup.selectAll(`.${Ia}`).data(this._nodes, (e) => String(e.uid)), h = m.enter().append("g").attr("class", Ia).call(Ga, t, this.radiusScale);
2863
+ m.merge(h).call(Ka, t, p, this.radiusScale, r), m.exit().attr("class", Ra).call(qa, r);
2854
2864
  }
2855
2865
  _onNodeMouseOver(e) {
2856
2866
  let t;
@@ -2885,25 +2895,23 @@ var Ia = class e extends $r {
2885
2895
  delete e._state.hovered;
2886
2896
  }), this._links.forEach((e) => {
2887
2897
  delete e._state.hovered;
2888
- })), this.nodeGroup.selectAll(`.${Xi}`).classed(Zi, (e) => e._state.hovered), this.linkGroup.selectAll(`.${ta}`).classed(na, (e) => e._state.hovered), this.g.classed(ra, !!e));
2898
+ })), this.nodeGroup.selectAll(`.${Pa}`).classed(Fa, (e) => e._state.hovered), this.linkGroup.selectAll(`.${za}`).classed(Ba, (e) => e._state.hovered), this.g.classed(Va, !!e));
2889
2899
  }
2890
2900
  };
2891
- Ia.selectors = Ui;
2892
- //#endregion
2893
- //#region src/chordDiagram.ts
2894
- var La = 16, Ra = .02;
2895
- function za(e, t, n = {}) {
2896
- let r = n.colorModeId ?? "light", i = he[r], a = new Ia({
2897
- linkColor: (t) => me(e.nodes.findIndex((e) => e.id === t.source), r),
2898
- nodeColor: (e, t) => me(t, r),
2901
+ xo.selectors = Da;
2902
+ var So = xo, Co = 16, wo = .02;
2903
+ function To(e, t, n = {}) {
2904
+ let r = n.colorModeId ?? "light", i = pe[r], a = new So({
2905
+ linkColor: (t) => fe(e.nodes.findIndex((e) => e.id === t.source), r),
2906
+ nodeColor: (e, t) => fe(t, r),
2899
2907
  nodeLabel: (e) => "label" in e ? e.label : e.key,
2900
2908
  nodeLabelColor: i.primary,
2901
- nodeWidth: n.nodeWidth ?? La,
2902
- padAngle: n.padAngle ?? Ra
2909
+ nodeWidth: n.nodeWidth ?? Co,
2910
+ padAngle: n.padAngle ?? wo
2903
2911
  }), o = {
2904
2912
  links: e.links,
2905
2913
  nodes: e.nodes
2906
- }, s = new Xr(t, { component: a }, o);
2914
+ }, s = new Ji(t, { component: a }, o);
2907
2915
  return {
2908
2916
  resize: () => {
2909
2917
  s.render();
@@ -2914,4 +2922,4 @@ function za(e, t, n = {}) {
2914
2922
  };
2915
2923
  }
2916
2924
  //#endregion
2917
- export { za as renderChordDiagram };
2925
+ export { To as renderChordDiagram };