@hybridcore/ui 1.6.4 → 1.6.6

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 (35) hide show
  1. package/CATALOG.md +1 -0
  2. package/dist/IconX-C2wmVYSK.js +11 -0
  3. package/dist/components/charts/_common/format.js +49 -0
  4. package/dist/components/charts/_common/utils.js +12 -7
  5. package/dist/components/charts/chart-wrapper/index.js +36 -34
  6. package/dist/components/charts/column-line-mix/logic.js +78 -78
  7. package/dist/components/charts/donut-chart/index.js +11 -0
  8. package/dist/components/charts/donut-chart/logic.js +67 -0
  9. package/dist/components/charts/donut-chart/styled.js +12 -0
  10. package/dist/components/charts/drill-down-treemap/logic.js +123 -123
  11. package/dist/components/charts/drill-down-voronoi-treemap/logic.js +253 -252
  12. package/dist/components/charts/heatmap/logic.js +73 -73
  13. package/dist/components/charts/line/logic.js +66 -66
  14. package/dist/components/charts/logaritmic-scale/logic.js +65 -65
  15. package/dist/components/charts/multiple-value-axes/logic.js +75 -74
  16. package/dist/components/charts/nested-pie/logic.js +43 -42
  17. package/dist/components/charts/packed-circles/logic.js +111 -110
  18. package/dist/components/charts/pie-chart/logic.js +40 -39
  19. package/dist/components/charts/stacked-area-radar/logic.js +51 -51
  20. package/dist/components/charts/stacked-column-chart/logic.js +79 -79
  21. package/dist/components/charts/xy-chart/logic.js +71 -71
  22. package/dist/components/color-picker/index.js +1645 -1602
  23. package/dist/components/color-picker/logic.js +21 -12
  24. package/dist/components/color-picker/styled.js +4 -2
  25. package/dist/components/date-range-picker/index.js +359 -365
  26. package/dist/components/metric-card/helpers.js +12 -5
  27. package/dist/components/metric-card/logic.js +65 -57
  28. package/dist/components/metric-card/styled.js +55 -47
  29. package/dist/components/simple-pivot-table/index.js +129 -54
  30. package/dist/components/simple-pivot-table/logic.js +111 -45
  31. package/dist/components/simple-pivot-table/styled.js +31 -11
  32. package/dist/main.d.ts +128 -8
  33. package/dist/main.js +163 -157
  34. package/dist/{styled-Db1RdcPA.js → styled-SoqbyrkW.js} +116 -89
  35. package/package.json +1 -1
@@ -3,11 +3,11 @@ import { useThemeProps as ye, useTheme as be } from "@mui/material";
3
3
  import Ce from "dayjs";
4
4
  import Ae from "lodash";
5
5
  import { useId as Pe, useRef as ze, useEffect as _e } from "react";
6
- import { colorSetFromPalette as De } from "../_common/utils.js";
7
- import { e as Kt, z as ht, m as Ee, a as lt, c as Ht, b as Vt } from "../../../ColorSet-C7vpNXhM.js";
8
- import { Z as Te } from "../../../ZoomableContainer-DYyqwaMb.js";
6
+ import { applyValueFormat as De, colorSetFromPalette as Ee } from "../_common/utils.js";
7
+ import { e as Kt, z as ht, m as Te, a as lt, c as Ht, b as Vt } from "../../../ColorSet-C7vpNXhM.js";
8
+ import { Z as ke } from "../../../ZoomableContainer-DYyqwaMb.js";
9
9
  import { H as Jt } from "../../../Hierarchy-Bihj0S61.js";
10
- import { c as K, g as ke, a as Ne } from "../../../_commonjsHelpers-BVfed4GL.js";
10
+ import { c as K, g as Ne, a as Ie } from "../../../_commonjsHelpers-BVfed4GL.js";
11
11
  class pt extends Zt {
12
12
  constructor() {
13
13
  super(...arguments), Object.defineProperty(this, "morphAnimation", {
@@ -97,31 +97,31 @@ function ft(t) {
97
97
  r = o, o = t[e], u += r[1] * o[0] - r[0] * o[1];
98
98
  return u / 2;
99
99
  }
100
- function Ie(t) {
100
+ function Me(t) {
101
101
  for (var e = -1, n = t.length, r = 0, o = 0, u, f = t[n - 1], h, i = 0; ++e < n; )
102
102
  u = f, f = t[e], i += h = u[0] * f[1] - f[0] * u[1], r += (u[0] + f[0]) * h, o += (u[1] + f[1]) * h;
103
103
  return i *= 3, [r / i, o / i];
104
104
  }
105
- function Me(t, e, n) {
105
+ function Oe(t, e, n) {
106
106
  return (e[0] - t[0]) * (n[1] - t[1]) - (e[1] - t[1]) * (n[0] - t[0]);
107
107
  }
108
- function Oe(t, e) {
108
+ function Fe(t, e) {
109
109
  return t[0] - e[0] || t[1] - e[1];
110
110
  }
111
111
  function Xt(t) {
112
112
  const e = t.length, n = [0, 1];
113
113
  let r = 2, o;
114
114
  for (o = 2; o < e; ++o) {
115
- for (; r > 1 && Me(t[n[r - 2]], t[n[r - 1]], t[o]) <= 0; ) --r;
115
+ for (; r > 1 && Oe(t[n[r - 2]], t[n[r - 1]], t[o]) <= 0; ) --r;
116
116
  n[r++] = o;
117
117
  }
118
118
  return n.slice(0, r);
119
119
  }
120
- function Fe(t) {
120
+ function We(t) {
121
121
  if ((n = t.length) < 3) return null;
122
122
  var e, n, r = new Array(n), o = new Array(n);
123
123
  for (e = 0; e < n; ++e) r[e] = [+t[e][0], +t[e][1], e];
124
- for (r.sort(Oe), e = 0; e < n; ++e) o[e] = [r[e][0], -r[e][1]];
124
+ for (r.sort(Fe), e = 0; e < n; ++e) o[e] = [r[e][0], -r[e][1]];
125
125
  var u = Xt(r), f = Xt(o), h = f[0] === u[0], i = f[f.length - 1] === u[u.length - 1], s = [];
126
126
  for (e = u.length - 1; e >= 0; --e) s.push(t[r[u[e]][2]]);
127
127
  for (e = +h; e < f.length - i; ++e) s.push(t[r[f[e]][2]]);
@@ -132,7 +132,7 @@ function Qt(t, e) {
132
132
  r = t[a], i = r[0], s = r[1], s > u != h > u && o < (f - i) * (u - s) / (h - s) + i && (c = !c), f = i, h = s;
133
133
  return c;
134
134
  }
135
- function We(t) {
135
+ function Re(t) {
136
136
  for (var e = -1, n = t.length, r = t[n - 1], o, u, f = r[0], h = r[1], i = 0; ++e < n; )
137
137
  o = f, u = h, r = t[e], f = r[0], h = r[1], o -= f, u -= h, i += Math.hypot(o, u);
138
138
  return i;
@@ -141,9 +141,9 @@ var nt = 0, ot = 0, rt = 0, te = 1e3, vt, st, dt = 0, Z = 0, wt = 0, at = typeof
141
141
  setTimeout(t, 17);
142
142
  };
143
143
  function ne() {
144
- return Z || (ee(Re), Z = at.now() + wt);
144
+ return Z || (ee(Le), Z = at.now() + wt);
145
145
  }
146
- function Re() {
146
+ function Le() {
147
147
  Z = 0;
148
148
  }
149
149
  function Ct() {
@@ -163,7 +163,7 @@ function ie(t, e, n) {
163
163
  var r = new Ct();
164
164
  return r.restart(t, e, n), r;
165
165
  }
166
- function Le() {
166
+ function He() {
167
167
  ne(), ++nt;
168
168
  for (var t = vt, e; t; )
169
169
  (e = Z - t._time) >= 0 && t._call.call(null, e), t = t._next;
@@ -172,16 +172,16 @@ function Le() {
172
172
  function jt() {
173
173
  Z = (dt = at.now()) + wt, nt = ot = 0;
174
174
  try {
175
- Le();
175
+ He();
176
176
  } finally {
177
- nt = 0, Ve(), Z = 0;
177
+ nt = 0, Xe(), Z = 0;
178
178
  }
179
179
  }
180
- function He() {
180
+ function Ve() {
181
181
  var t = at.now(), e = t - dt;
182
182
  e > te && (wt -= e, dt = t);
183
183
  }
184
- function Ve() {
184
+ function Xe() {
185
185
  for (var t, e = vt, n, r = 1 / 0; e; )
186
186
  e._call ? (r > e._time && (r = e._time), t = e, e = e._next) : (n = e._next, e._next = null, e = t ? t._next = n : vt = n);
187
187
  st = t, At(r);
@@ -190,10 +190,10 @@ function At(t) {
190
190
  if (!nt) {
191
191
  ot && (ot = clearTimeout(ot));
192
192
  var e = t - Z;
193
- e > 24 ? (t < 1 / 0 && (ot = setTimeout(jt, t - at.now() - wt)), rt && (rt = clearInterval(rt))) : (rt || (dt = at.now(), rt = setInterval(He, te)), nt = 1, ee(jt));
193
+ e > 24 ? (t < 1 / 0 && (ot = setTimeout(jt, t - at.now() - wt)), rt && (rt = clearInterval(rt))) : (rt || (dt = at.now(), rt = setInterval(Ve, te)), nt = 1, ee(jt));
194
194
  }
195
195
  }
196
- var Xe = { value: () => {
196
+ var je = { value: () => {
197
197
  } };
198
198
  function re() {
199
199
  for (var t = 0, e = arguments.length, n = {}, r; t < e; ++t) {
@@ -205,7 +205,7 @@ function re() {
205
205
  function ct(t) {
206
206
  this._ = t;
207
207
  }
208
- function je(t, e) {
208
+ function Se(t, e) {
209
209
  return t.trim().split(/^|\s+/).map(function(n) {
210
210
  var r = "", o = n.indexOf(".");
211
211
  if (o >= 0 && (r = n.slice(o + 1), n = n.slice(0, o)), n && !e.hasOwnProperty(n)) throw new Error("unknown type: " + n);
@@ -215,9 +215,9 @@ function je(t, e) {
215
215
  ct.prototype = re.prototype = {
216
216
  constructor: ct,
217
217
  on: function(t, e) {
218
- var n = this._, r = je(t + "", n), o, u = -1, f = r.length;
218
+ var n = this._, r = Se(t + "", n), o, u = -1, f = r.length;
219
219
  if (arguments.length < 2) {
220
- for (; ++u < f; ) if ((o = (t = r[u]).type) && (o = Se(n[o], t.name))) return o;
220
+ for (; ++u < f; ) if ((o = (t = r[u]).type) && (o = Ge(n[o], t.name))) return o;
221
221
  return;
222
222
  }
223
223
  if (e != null && typeof e != "function") throw new Error("invalid callback: " + e);
@@ -241,7 +241,7 @@ ct.prototype = re.prototype = {
241
241
  for (var r = this._[t], o = 0, u = r.length; o < u; ++o) r[o].value.apply(e, n);
242
242
  }
243
243
  };
244
- function Se(t, e) {
244
+ function Ge(t, e) {
245
245
  for (var n = 0, r = t.length, o; n < r; ++n)
246
246
  if ((o = t[n]).name === e)
247
247
  return o.value;
@@ -249,7 +249,7 @@ function Se(t, e) {
249
249
  function St(t, e, n) {
250
250
  for (var r = 0, o = t.length; r < o; ++r)
251
251
  if (t[r].name === e) {
252
- t[r] = Xe, t = t.slice(0, r).concat(t.slice(r + 1));
252
+ t[r] = je, t = t.slice(0, r).concat(t.slice(r + 1));
253
253
  break;
254
254
  }
255
255
  return n != null && t.push({ name: e, value: n }), t;
@@ -270,7 +270,7 @@ function it(t, e) {
270
270
  function qt(t, e) {
271
271
  return gt(t.x * e.y - t.y * e.x) && gt(t.y * e.z - t.z * e.y) && gt(t.z * e.x - t.x * e.z);
272
272
  }
273
- function Ge(t) {
273
+ function qe(t) {
274
274
  var e, n, r, o, u, f, h, i;
275
275
  if (r = t[t.length - 2], o = t[t.length - 1], u = t[0], f = ut(r, o), h = ut(o, u), n = yt(f, h), e = Math.sign(n), r = o, o = u, u = t[1], f = h, h = ut(o, u), n = yt(f, h), Math.sign(n) === e) {
276
276
  for (i = 2; i < t.length - 1; i++)
@@ -285,7 +285,7 @@ function ut(t, e) {
285
285
  function yt(t, e) {
286
286
  return t[0] * e[1] - t[1] * e[0];
287
287
  }
288
- function qe(t, e) {
288
+ function Ye(t, e) {
289
289
  this.face = t, this.vert = e, this.nextf = null, this.prevf = null, this.nextv = null, this.prevv = null;
290
290
  }
291
291
  function $(t) {
@@ -353,10 +353,10 @@ Pt.prototype.getNormZPlane = function() {
353
353
  ];
354
354
  };
355
355
  Pt.prototype.getDualPointMappedToPlane = function() {
356
- var t = this.getNormZPlane(), e = new Ye(t[0] / 2, t[1] / 2);
356
+ var t = this.getNormZPlane(), e = new Ue(t[0] / 2, t[1] / 2);
357
357
  return e;
358
358
  };
359
- function Ye(t, e) {
359
+ function Ue(t, e) {
360
360
  this.x = t, this.y = e;
361
361
  }
362
362
  function zt(t, e, n) {
@@ -391,38 +391,38 @@ function B(t) {
391
391
  }
392
392
  B.prototype.name = "d3WeightedVoronoiError";
393
393
  B.prototype = new Error();
394
- function H(t, e, n, r) {
394
+ function V(t, e, n, r) {
395
395
  this.conflicts = new $(!0), this.verts = [t, e, n], this.marked = !1;
396
396
  var o = t.subtract(e).crossproduct(e.subtract(n));
397
397
  this.normal = new zt(-o.x, -o.y, -o.z), this.normal.normalize(), this.createEdges(), this.dualPoint = null, r != null && this.orient(r);
398
398
  }
399
- H.prototype.getDualPoint = function() {
399
+ V.prototype.getDualPoint = function() {
400
400
  if (this.dualPoint == null) {
401
401
  var t = new Pt(this);
402
402
  this.dualPoint = t.getDualPointMappedToPlane();
403
403
  }
404
404
  return this.dualPoint;
405
405
  };
406
- H.prototype.isVisibleFromBelow = function() {
406
+ V.prototype.isVisibleFromBelow = function() {
407
407
  return this.normal.z < -14259414393190911e-25;
408
408
  };
409
- H.prototype.createEdges = function() {
409
+ V.prototype.createEdges = function() {
410
410
  this.edges = [], this.edges[0] = new et(this.verts[0], this.verts[1], this), this.edges[1] = new et(this.verts[1], this.verts[2], this), this.edges[2] = new et(this.verts[2], this.verts[0], this), this.edges[0].next = this.edges[1], this.edges[0].prev = this.edges[2], this.edges[1].next = this.edges[2], this.edges[1].prev = this.edges[0], this.edges[2].next = this.edges[0], this.edges[2].prev = this.edges[1];
411
411
  };
412
- H.prototype.orient = function(t) {
412
+ V.prototype.orient = function(t) {
413
413
  if (!(it(this.normal, t) < it(this.normal, this.verts[0]))) {
414
414
  var e = this.verts[1];
415
415
  this.verts[1] = this.verts[2], this.verts[2] = e, this.normal.negate(), this.createEdges();
416
416
  }
417
417
  };
418
- H.prototype.getEdge = function(t, e) {
418
+ V.prototype.getEdge = function(t, e) {
419
419
  for (var n = 0; n < 3; n++)
420
420
  if (this.edges[n].isEqual(t, e))
421
421
  return this.edges[n];
422
422
  return null;
423
423
  };
424
- H.prototype.link = function(t, e, n) {
425
- if (t instanceof H) {
424
+ V.prototype.link = function(t, e, n) {
425
+ if (t instanceof V) {
426
426
  var r = t.getEdge(e, n);
427
427
  if (r === null)
428
428
  throw new B("when linking, twin is null");
@@ -435,16 +435,16 @@ H.prototype.link = function(t, e, n) {
435
435
  r.twin = o, o.twin = r;
436
436
  }
437
437
  };
438
- H.prototype.conflict = function(t) {
438
+ V.prototype.conflict = function(t) {
439
439
  return it(this.normal, t) > it(this.normal, this.verts[0]) + U;
440
440
  };
441
- H.prototype.getHorizon = function() {
441
+ V.prototype.getHorizon = function() {
442
442
  for (var t = 0; t < 3; t++)
443
443
  if (this.edges[t].twin !== null && this.edges[t].twin.isHorizon())
444
444
  return this.edges[t];
445
445
  return null;
446
446
  };
447
- H.prototype.removeConflict = function() {
447
+ V.prototype.removeConflict = function() {
448
448
  this.conflicts.removeAll();
449
449
  };
450
450
  function q() {
@@ -478,7 +478,7 @@ q.prototype.prep = function() {
478
478
  }
479
479
  if (r === null)
480
480
  throw new B("Not enough non-planar Points (v2 is null)");
481
- i = new H(e, n, r);
481
+ i = new V(e, n, r);
482
482
  for (var t = 3; t < this.points.length; t++)
483
483
  if (!gt(it(i.normal, i.verts[0]) - it(i.normal, this.points[t]))) {
484
484
  o = this.points[t], o.index = 3, this.points[3].index = t, this.points.splice(t, 1, this.points[3]), this.points.splice(3, 1, o);
@@ -486,7 +486,7 @@ q.prototype.prep = function() {
486
486
  }
487
487
  if (o === null)
488
488
  throw new B("Not enough non-planar Points (v3 is null)");
489
- i.orient(o), u = new H(e, r, o, n), f = new H(e, n, o, r), h = new H(n, r, o, e), this.addFacet(i), this.addFacet(u), this.addFacet(f), this.addFacet(h), i.link(u, e, r), i.link(f, e, n), i.link(h, n, r), u.link(f, e, o), u.link(h, r, o), f.link(h, o, n), this.current = 4;
489
+ i.orient(o), u = new V(e, r, o, n), f = new V(e, n, o, r), h = new V(n, r, o, e), this.addFacet(i), this.addFacet(u), this.addFacet(f), this.addFacet(h), i.link(u, e, r), i.link(f, e, n), i.link(h, n, r), u.link(f, e, o), u.link(h, r, o), f.link(h, o, n), this.current = 4;
490
490
  for (var s, t = this.current; t < this.points.length; t++)
491
491
  s = this.points[t], i.conflict(s) && this.addConflict(i, s), u.conflict(s) && this.addConflict(u, s), f.conflict(s) && this.addConflict(f, s), h.conflict(s) && this.addConflict(h, s);
492
492
  }, // IN: Faces old1 old2 and fn
@@ -498,7 +498,7 @@ q.prototype.addConflicts = function(t, e, n) {
498
498
  f = u[i], n.conflict(f) && this.addConflict(n, f);
499
499
  };
500
500
  q.prototype.addConflict = function(t, e) {
501
- var n = new qe(t, e);
501
+ var n = new Ye(t, e);
502
502
  t.conflicts.add(n), e.conflicts.add(n);
503
503
  };
504
504
  q.prototype.removeConflict = function(t) {
@@ -530,7 +530,7 @@ q.prototype.compute = function() {
530
530
  break;
531
531
  }
532
532
  for (var r = null, o = null, u = 0; u < this.horizon.length; u++) {
533
- var f = this.horizon[u], h = new H(t, f.orig, f.dest, f.twin.next.dest);
533
+ var f = this.horizon[u], h = new V(t, f.orig, f.dest, f.twin.next.dest);
534
534
  h.conflicts = new $(!0), this.addFacet(h), this.created.push(h), this.addConflicts(f.iFace, f.twin.iFace, h), h.link(f), r !== null && h.link(r, t, f.orig), r = h, o === null && (o = h);
535
535
  }
536
536
  if (o !== null && r !== null && r.link(o, t, this.horizon[0].orig), this.created.length != 0) {
@@ -544,7 +544,7 @@ q.prototype.compute = function() {
544
544
  q.prototype.clear = function() {
545
545
  this.points = [], this.facets = [], this.created = [], this.horizon = [], this.visible = [], this.current = 0;
546
546
  };
547
- function Ue(t, e) {
547
+ function $e(t, e) {
548
548
  for (var n, r = Ut(e), o = -1, u = t.length - Ut(t), f, h, i = t[u - 1], s, c, a, l; ++o < u; ) {
549
549
  for (n = e.slice(), e.length = 0, s = t[o], c = n[(h = n.length - r) - 1], f = -1; ++f < h; )
550
550
  a = n[f], bt(a, i, s) ? (bt(c, i, s) || (l = Yt(c, a, i, s), isFinite(l[0]) && e.push(l)), e.push(a)) : bt(c, i, s) && (l = Yt(c, a, i, s), isFinite(l[0]) && e.push(l)), c = a;
@@ -563,7 +563,7 @@ function Ut(t) {
563
563
  var e = t[0], n = t[t.length - 1];
564
564
  return !(e[0] - n[0] || e[1] - n[1]);
565
565
  }
566
- function $e(t) {
566
+ function Be(t) {
567
567
  var e = [], n = t, r = t.dest, o = r.originalObject, u = [];
568
568
  do {
569
569
  n = n.twin.prev;
@@ -574,7 +574,7 @@ function $e(t) {
574
574
  } while (n !== t);
575
575
  return o.neighbours = u, e;
576
576
  }
577
- function Be(t, e, n) {
577
+ function Ze(t, e, n) {
578
578
  var r = new q();
579
579
  r.clear(), r.init(e, t);
580
580
  for (var o = r.compute(t), u = [], f = [], h = o.length, i = 0; i < h; i++) {
@@ -585,12 +585,12 @@ function Be(t, e, n) {
585
585
  if (!f[l.index]) {
586
586
  if (f[l.index] = !0, g.isDummy)
587
587
  continue;
588
- for (var p = $e(a), v = [], y = null, w = null, P = 1, z = 1, x = 0; x < p.length; x++) {
589
- var m = p[x].getDualPoint(), C = m.x, A = m.y;
590
- y !== null && (P = y - C, z = w - A, P < 0 && (P = -P), z < 0 && (z = -z)), (P > U || z > U) && (v.push([C, A]), y = C, w = A);
588
+ for (var p = Be(a), v = [], m = null, w = null, A = 1, P = 1, x = 0; x < p.length; x++) {
589
+ var C = p[x].getDualPoint(), z = C.x, y = C.y;
590
+ m !== null && (A = m - z, P = w - y, A < 0 && (A = -A), P < 0 && (P = -P)), (A > U || P > U) && (v.push([z, y]), m = z, w = y);
591
591
  }
592
- if (g.nonClippedPolygon = v.reverse(), !g.isDummy && We(g.nonClippedPolygon) > 0) {
593
- var b = Ue(n, g.nonClippedPolygon);
592
+ if (g.nonClippedPolygon = v.reverse(), !g.isDummy && Re(g.nonClippedPolygon) > 0) {
593
+ var b = $e(n, g.nonClippedPolygon);
594
594
  g.polygon = b, b.site = g, b.length > 0 && u.push(b);
595
595
  }
596
596
  }
@@ -598,7 +598,7 @@ function Be(t, e, n) {
598
598
  }
599
599
  return u;
600
600
  }
601
- function Ze() {
601
+ function Ke() {
602
602
  var t = function(i) {
603
603
  return i.x;
604
604
  }, e = function(i) {
@@ -618,7 +618,7 @@ function Ze() {
618
618
  var s;
619
619
  return s = i.map(function(c) {
620
620
  return new G(t(c), e(c), null, n(c), c, !1);
621
- }), Be(s, h(), r);
621
+ }), Ze(s, h(), r);
622
622
  }
623
623
  f.x = function(i) {
624
624
  return arguments.length ? (t = i, f) : t;
@@ -636,7 +636,7 @@ function Ze() {
636
636
  i.map(function(l) {
637
637
  return l[1];
638
638
  })
639
- ), s = Ge(i), s === void 0 ? r = Fe(i) : s === 1 ? r = i.reverse() : r = i, o = [
639
+ ), s = qe(i), s === void 0 ? r = We(i) : s === 1 ? r = i.reverse() : r = i, o = [
640
640
  [c[0], a[0]],
641
641
  [c[1], a[1]]
642
642
  ], u = [c[1] - c[0], a[1] - a[0]], f) : r;
@@ -651,20 +651,20 @@ function Ze() {
651
651
  ], o = [[0, 0], i], u = i, f) : u;
652
652
  };
653
653
  function h() {
654
- var i, s, c, a, l, g, p, v, y, w, P = [], z = [];
655
- i = o[0][0], s = o[1][0], c = o[0][1], a = o[1][1], l = s - i, g = a - c, p = i - l, v = s + l, y = c - g, w = a + g, P[0] = [p, y], P[1] = [p, w], P[2] = [v, w], P[3] = [v, y];
654
+ var i, s, c, a, l, g, p, v, m, w, A = [], P = [];
655
+ i = o[0][0], s = o[1][0], c = o[0][1], a = o[1][1], l = s - i, g = a - c, p = i - l, v = s + l, m = c - g, w = a + g, A[0] = [p, m], A[1] = [p, w], A[2] = [v, w], A[3] = [v, m];
656
656
  for (var x = 0; x < 4; x++)
657
- z.push(
657
+ P.push(
658
658
  new G(
659
- P[x][0],
660
- P[x][1],
659
+ A[x][0],
660
+ A[x][1],
661
661
  null,
662
662
  U,
663
- new G(P[x][0], P[x][1], null, U, null, !0),
663
+ new G(A[x][0], A[x][1], null, U, null, !0),
664
664
  !0
665
665
  )
666
666
  );
667
- return z;
667
+ return P;
668
668
  }
669
669
  return f;
670
670
  }
@@ -672,7 +672,7 @@ function J() {
672
672
  this.growthChangesLength = oe, this.totalAvailableArea = NaN, this.lastAreaError = NaN, this.lastGrowth = NaN, this.growthChanges = [], this.growthChangeWeights = _t(this.growthChangesLength), this.growthChangeWeightsSum = Dt(this.growthChangeWeights);
673
673
  }
674
674
  var oe = 10;
675
- function Ke(t, e) {
675
+ function Je(t, e) {
676
676
  return t >= e ? 1 : -1;
677
677
  }
678
678
  function _t(t) {
@@ -699,7 +699,7 @@ J.prototype.totalArea = function(t) {
699
699
  };
700
700
  J.prototype.add = function(t) {
701
701
  var e, n;
702
- return e = this.lastAreaError, this.lastAreaError = t, isNaN(e) || (n = this.lastGrowth, this.lastGrowth = Ke(this.lastAreaError, e)), isNaN(n) || this.growthChanges.unshift(this.lastGrowth != n), this.growthChanges.length > this.growthChangesLength && this.growthChanges.pop(), this;
702
+ return e = this.lastAreaError, this.lastAreaError = t, isNaN(e) || (n = this.lastGrowth, this.lastGrowth = Je(this.lastAreaError, e)), isNaN(n) || this.growthChanges.unshift(this.lastGrowth != n), this.growthChanges.length > this.growthChangesLength && this.growthChanges.pop(), this;
703
703
  };
704
704
  J.prototype.ratio = function() {
705
705
  var t = 0, e;
@@ -709,20 +709,20 @@ J.prototype.ratio = function() {
709
709
  this.growthChanges[n] && (t += this.growthChangeWeights[n]);
710
710
  return e = t / this.growthChangeWeightsSum, e;
711
711
  };
712
- function Je() {
712
+ function Qe() {
713
713
  var t, e, n, r, o, u, f, h;
714
714
  function i(c, a, l, g) {
715
- var p = !1, v, y;
716
- for (t !== g.clip() && (t = g.clip(), e = g.extent(), p = !0), p && s(), v = n + f * g.prng()(), y = o + h * g.prng()(); !Qt(t, [v, y]); )
717
- v = n + f * g.prng()(), y = o + h * g.prng()();
718
- return [v, y];
715
+ var p = !1, v, m;
716
+ for (t !== g.clip() && (t = g.clip(), e = g.extent(), p = !0), p && s(), v = n + f * g.prng()(), m = o + h * g.prng()(); !Qt(t, [v, m]); )
717
+ v = n + f * g.prng()(), m = o + h * g.prng()();
718
+ return [v, m];
719
719
  }
720
720
  function s() {
721
721
  n = e[0][0], r = e[1][0], o = e[0][1], u = e[1][1], f = r - n, h = u - o;
722
722
  }
723
723
  return i;
724
724
  }
725
- function Qe() {
725
+ function tn() {
726
726
  var t, e, n, r, o;
727
727
  function u(h, i, s, c) {
728
728
  var a = !1;
@@ -739,16 +739,16 @@ function tt(t) {
739
739
  tt.prototype.name = "d3VoronoiMapError";
740
740
  tt.prototype = new Error();
741
741
  function $t(t) {
742
- var e = 0.01, n = 50, r = 0.01, o = Math.random, u = Je(), f = Qe(), h = 1e-10, i = function(d) {
742
+ var e = 0.01, n = 50, r = 0.01, o = Math.random, u = Qe(), f = tn(), h = 1e-10, i = function(d) {
743
743
  return d.weight;
744
- }, s = e, c = n, a = r, l = o, g = u, p = f, v = Ze(), y = new J(), w = !0, P, z, x, m, C, A, b, F, D, W = ie(Ft), V = re("tick", "end");
744
+ }, s = e, c = n, a = r, l = o, g = u, p = f, v = Ke(), m = new J(), w = !0, A, P, x, C, z, y, b, T, D, W = ie(Ft), R = re("tick", "end");
745
745
  const X = 1, j = 1e3;
746
746
  var S;
747
747
  function Y(d) {
748
748
  return Math.pow(d, 2);
749
749
  }
750
- function Ot(d, I) {
751
- return Y(I.x - d.x) + Y(I.y - d.y);
750
+ function Ot(d, M) {
751
+ return Y(M.x - d.x) + Y(M.y - d.y);
752
752
  }
753
753
  D = {
754
754
  tick: Wt,
@@ -790,47 +790,47 @@ function $t(t) {
790
790
  },
791
791
  state: function() {
792
792
  return w && Rt(), {
793
- ended: F,
794
- iterationCount: m,
795
- convergenceRatio: A / z,
796
- polygons: C
793
+ ended: T,
794
+ iterationCount: C,
795
+ convergenceRatio: y / P,
796
+ polygons: z
797
797
  };
798
798
  },
799
- on: function(d, I) {
800
- return arguments.length === 1 ? V.on(d) : (V.on(d, I), D);
799
+ on: function(d, M) {
800
+ return arguments.length === 1 ? R.on(d) : (R.on(d, M), D);
801
801
  }
802
802
  };
803
803
  function Ft() {
804
- Wt(), V.call("tick", D), F && (W.stop(), V.call("end", D));
804
+ Wt(), R.call("tick", D), T && (W.stop(), R.call("end", D));
805
805
  }
806
806
  function Wt() {
807
- F || (w && Rt(), C = le(C, y.ratio()), m++, A = ge(C), y.add(A), b = A < x, F = b || m >= c);
807
+ T || (w && Rt(), z = le(z, m.ratio()), C++, y = ge(z), m.add(y), b = y < x, T = b || C >= c);
808
808
  }
809
809
  function Rt() {
810
- pe(), P = t.length, z = Math.abs(ft(v.clip())), x = s * z, y.clear().totalArea(z), m = 0, b = !1, C = ae(t, D), F = !1, w = !1;
810
+ pe(), A = t.length, P = Math.abs(ft(v.clip())), x = s * P, m.clear().totalArea(P), C = 0, b = !1, z = ae(t, D), T = !1, w = !1;
811
811
  }
812
- function ae(d, I) {
813
- var N = d.reduce(function(k, M) {
814
- return Math.max(k, i(M));
815
- }, -1 / 0), E = N * a, _, T;
816
- return _ = d.map(function(k, M, O) {
812
+ function ae(d, M) {
813
+ var I = d.reduce(function(N, O) {
814
+ return Math.max(N, i(O));
815
+ }, -1 / 0), E = I * a, _, k;
816
+ return _ = d.map(function(N, O, F) {
817
817
  return {
818
- index: M,
819
- weight: Math.max(i(k), E),
820
- initialPosition: g(k, M, O, I),
821
- initialWeight: p(k, M, O, I),
822
- originalData: k
818
+ index: O,
819
+ weight: Math.max(i(N), E),
820
+ initialPosition: g(N, O, F, M),
821
+ initialWeight: p(N, O, F, M),
822
+ originalData: N
823
823
  };
824
- }), T = he(_, I), S(T), v(T);
824
+ }), k = he(_, M), S(k), v(k);
825
825
  }
826
- function he(d, I) {
827
- var N = d.reduce(function(_, T) {
828
- return _ += T.weight;
826
+ function he(d, M) {
827
+ var I = d.reduce(function(_, k) {
828
+ return _ += k.weight;
829
829
  }, 0), E;
830
- return d.map(function(_, T, k) {
831
- return E = _.initialPosition, Qt(v.clip(), E) || (E = u(_, T, k, I)), {
830
+ return d.map(function(_, k, N) {
831
+ return E = _.initialPosition, Qt(v.clip(), E) || (E = u(_, k, N, M)), {
832
832
  index: _.index,
833
- targetedArea: z * _.weight / N,
833
+ targetedArea: P * _.weight / I,
834
834
  data: _,
835
835
  x: E[0],
836
836
  y: E[1],
@@ -839,72 +839,72 @@ function $t(t) {
839
839
  };
840
840
  });
841
841
  }
842
- function le(d, I) {
843
- var N;
844
- if (ue(d, I), N = d.map(function(E) {
842
+ function le(d, M) {
843
+ var I;
844
+ if (ue(d, M), I = d.map(function(E) {
845
845
  return E.site.originalObject;
846
- }), d = v(N), d.length < P)
846
+ }), d = v(I), d.length < A)
847
847
  throw new tt("at least 1 site has no area, which is not supposed to arise");
848
- if (fe(d, I), N = d.map(function(E) {
848
+ if (fe(d, M), I = d.map(function(E) {
849
849
  return E.site.originalObject;
850
- }), d = v(N), d.length < P)
850
+ }), d = v(I), d.length < A)
851
851
  throw new tt("at least 1 site has no area, which is not supposed to arise");
852
852
  return d;
853
853
  }
854
- function ue(d, I) {
855
- var N = [], E = 0.5, _, T, k, M, O, R, L;
856
- _ = E * I, T = 1 - _;
857
- for (var mt = 0; mt < P; mt++)
858
- k = d[mt], M = k.site.originalObject, O = Ie(k), R = O[0] - M.x, L = O[1] - M.y, R *= T, L *= T, M.x += R, M.y += L, N.push(M);
859
- S(N);
854
+ function ue(d, M) {
855
+ var I = [], E = 0.5, _, k, N, O, F, L, H;
856
+ _ = E * M, k = 1 - _;
857
+ for (var mt = 0; mt < A; mt++)
858
+ N = d[mt], O = N.site.originalObject, F = Me(N), L = F[0] - O.x, H = F[1] - O.y, L *= k, H *= k, O.x += L, O.y += H, I.push(O);
859
+ S(I);
860
860
  }
861
- function fe(d, I) {
862
- var N = [], E = 0.1, _, T, k, M, O, R;
863
- _ = E * I;
864
- for (var L = 0; L < P; L++)
865
- T = d[L], k = T.site.originalObject, M = ft(T), O = k.targetedArea / M, O = Math.max(O, 1 - E + _), O = Math.min(O, 1 + E - _), R = k.weight * O, R = Math.max(R, h), k.weight = R, N.push(k);
866
- S(N);
861
+ function fe(d, M) {
862
+ var I = [], E = 0.1, _, k, N, O, F, L;
863
+ _ = E * M;
864
+ for (var H = 0; H < A; H++)
865
+ k = d[H], N = k.site.originalObject, O = ft(k), F = N.targetedArea / O, F = Math.max(F, 1 - E + _), F = Math.min(F, 1 + E - _), L = N.weight * F, L = Math.max(L, h), N.weight = L, I.push(N);
866
+ S(I);
867
867
  }
868
868
  function Lt(d) {
869
- var I = 0, N, E, _, T, k, M, O;
869
+ var M = 0, I, E, _, k, N, O, F;
870
870
  do {
871
- if (I > j)
871
+ if (M > j)
872
872
  throw new tt("handleOverweighted0 is looping too much");
873
- N = !1;
874
- for (var R = 0; R < P; R++) {
875
- E = d[R];
876
- for (var L = R + 1; L < P; L++)
877
- if (_ = d[L], E.weight > _.weight ? (T = E, k = _) : (T = _, k = E), M = Ot(E, _), M < T.weight - k.weight) {
878
- O = M + k.weight / 2, O = Math.max(O, h), T.weight = O, N = !0, I++;
873
+ I = !1;
874
+ for (var L = 0; L < A; L++) {
875
+ E = d[L];
876
+ for (var H = L + 1; H < A; H++)
877
+ if (_ = d[H], E.weight > _.weight ? (k = E, N = _) : (k = _, N = E), O = Ot(E, _), O < k.weight - N.weight) {
878
+ F = O + N.weight / 2, F = Math.max(F, h), k.weight = F, I = !0, M++;
879
879
  break;
880
880
  }
881
- if (N)
881
+ if (I)
882
882
  break;
883
883
  }
884
- } while (N);
884
+ } while (I);
885
885
  }
886
886
  function ce(d) {
887
- var I = 0, N, E, _, T, k, M, O;
887
+ var M = 0, I, E, _, k, N, O, F;
888
888
  do {
889
- if (I > j)
889
+ if (M > j)
890
890
  throw new tt("handleOverweighted1 is looping too much");
891
- N = !1;
892
- for (var R = 0; R < P; R++) {
893
- E = d[R];
894
- for (var L = R + 1; L < P; L++)
895
- if (_ = d[L], E.weight > _.weight ? (T = E, k = _) : (T = _, k = E), M = Ot(E, _), M < T.weight - k.weight) {
896
- O = T.weight - k.weight - M, k.weight += O + h, N = !0, I++;
891
+ I = !1;
892
+ for (var L = 0; L < A; L++) {
893
+ E = d[L];
894
+ for (var H = L + 1; H < A; H++)
895
+ if (_ = d[H], E.weight > _.weight ? (k = E, N = _) : (k = _, N = E), O = Ot(E, _), O < k.weight - N.weight) {
896
+ F = k.weight - N.weight - O, N.weight += F + h, I = !0, M++;
897
897
  break;
898
898
  }
899
- if (N)
899
+ if (I)
900
900
  break;
901
901
  }
902
- } while (N);
902
+ } while (I);
903
903
  }
904
904
  function ge(d) {
905
- for (var I = 0, N, E, _, T = 0; T < P; T++)
906
- N = d[T], E = N.site.originalObject, _ = ft(N), I += Math.abs(E.targetedArea - _);
907
- return I;
905
+ for (var M = 0, I, E, _, k = 0; k < A; k++)
906
+ I = d[k], E = I.site.originalObject, _ = ft(I), M += Math.abs(E.targetedArea - _);
907
+ return M;
908
908
  }
909
909
  function pe() {
910
910
  switch (X) {
@@ -920,7 +920,7 @@ function $t(t) {
920
920
  }
921
921
  return D;
922
922
  }
923
- function tn() {
923
+ function en() {
924
924
  var t = 0.01, e = 50, n = 0.01, r = Math.random, o = [
925
925
  [0, 0],
926
926
  [0, 1],
@@ -955,16 +955,16 @@ function tn() {
955
955
  }, g.prng = function(v) {
956
956
  return arguments.length ? (c = v, g) : c;
957
957
  };
958
- function p(v, y) {
958
+ function p(v, m) {
959
959
  var w;
960
- if (y.polygon = v, y.height != 0) {
961
- w = $t(y.children).clip(v).weight(function(z) {
962
- return z.value;
960
+ if (m.polygon = v, m.height != 0) {
961
+ w = $t(m.children).clip(v).weight(function(P) {
962
+ return P.value;
963
963
  }).convergenceRatio(h).maxIterationCount(i).minWeightRatio(s).prng(c).stop();
964
- for (var P = w.state(); !P.ended; )
965
- w.tick(), P = w.state();
966
- P.polygons.forEach(function(z) {
967
- p(z, z.site.originalObject.data.originalData);
964
+ for (var A = w.state(); !A.ended; )
965
+ w.tick(), A = w.state();
966
+ A.polygons.forEach(function(P) {
967
+ p(P, P.site.originalObject.data.originalData);
968
968
  });
969
969
  }
970
970
  }
@@ -1012,7 +1012,7 @@ Et.exports;
1012
1012
  t
1013
1013
  );
1014
1014
  })(Et);
1015
- var en = Et.exports, Tt = { exports: {} };
1015
+ var nn = Et.exports, Tt = { exports: {} };
1016
1016
  Tt.exports;
1017
1017
  (function(t) {
1018
1018
  (function(e, n, r) {
@@ -1047,7 +1047,7 @@ Tt.exports;
1047
1047
  t
1048
1048
  );
1049
1049
  })(Tt);
1050
- var nn = Tt.exports, kt = { exports: {} };
1050
+ var rn = Tt.exports, kt = { exports: {} };
1051
1051
  kt.exports;
1052
1052
  (function(t) {
1053
1053
  (function(e, n, r) {
@@ -1082,7 +1082,7 @@ kt.exports;
1082
1082
  t
1083
1083
  );
1084
1084
  })(kt);
1085
- var rn = kt.exports, Nt = { exports: {} };
1085
+ var on = kt.exports, Nt = { exports: {} };
1086
1086
  Nt.exports;
1087
1087
  (function(t) {
1088
1088
  (function(e, n, r) {
@@ -1129,7 +1129,7 @@ Nt.exports;
1129
1129
  t
1130
1130
  );
1131
1131
  })(Nt);
1132
- var on = Nt.exports, It = { exports: {} };
1132
+ var sn = Nt.exports, It = { exports: {} };
1133
1133
  It.exports;
1134
1134
  (function(t) {
1135
1135
  (function(e, n, r) {
@@ -1140,12 +1140,12 @@ It.exports;
1140
1140
  return i.w = c = c + 1640531527 | 0, p = a[l + 34 & 127], g = a[l = l + 1 & 127], p ^= p << 13, g ^= g << 17, p ^= p >>> 15, g ^= g >>> 12, p = a[l] = p ^ g, i.i = l, p + (c ^ c >>> 16) | 0;
1141
1141
  };
1142
1142
  function s(c, a) {
1143
- var l, g, p, v, y, w = [], P = 128;
1144
- for (a === (a | 0) ? (g = a, a = null) : (a = a + "\0", g = 0, P = Math.max(P, a.length)), p = 0, v = -32; v < P; ++v)
1145
- a && (g ^= a.charCodeAt((v + 32) % a.length)), v === 0 && (y = g), g ^= g << 10, g ^= g >>> 15, g ^= g << 4, g ^= g >>> 13, v >= 0 && (y = y + 1640531527 | 0, l = w[v & 127] ^= g + y, p = l == 0 ? p + 1 : 0);
1143
+ var l, g, p, v, m, w = [], A = 128;
1144
+ for (a === (a | 0) ? (g = a, a = null) : (a = a + "\0", g = 0, A = Math.max(A, a.length)), p = 0, v = -32; v < A; ++v)
1145
+ a && (g ^= a.charCodeAt((v + 32) % a.length)), v === 0 && (m = g), g ^= g << 10, g ^= g >>> 15, g ^= g << 4, g ^= g >>> 13, v >= 0 && (m = m + 1640531527 | 0, l = w[v & 127] ^= g + m, p = l == 0 ? p + 1 : 0);
1146
1146
  for (p >= 128 && (w[(a && a.length || 0) & 127] = -1), p = 127, v = 4 * 128; v > 0; --v)
1147
1147
  g = w[p + 34 & 127], l = w[p = p + 1 & 127], g ^= g << 13, l ^= l << 17, g ^= g >>> 15, l ^= l >>> 12, w[p] = g ^ l;
1148
- c.w = y, c.X = w, c.i = p;
1148
+ c.w = m, c.X = w, c.i = p;
1149
1149
  }
1150
1150
  s(i, h);
1151
1151
  }
@@ -1173,7 +1173,7 @@ It.exports;
1173
1173
  t
1174
1174
  );
1175
1175
  })(It);
1176
- var sn = It.exports, Mt = { exports: {} };
1176
+ var an = It.exports, Mt = { exports: {} };
1177
1177
  Mt.exports;
1178
1178
  (function(t) {
1179
1179
  (function(e, n, r) {
@@ -1208,88 +1208,88 @@ Mt.exports;
1208
1208
  t
1209
1209
  );
1210
1210
  })(Mt);
1211
- var an = Mt.exports, se = { exports: {} };
1212
- const hn = {}, ln = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1211
+ var hn = Mt.exports, se = { exports: {} };
1212
+ const ln = {}, un = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1213
1213
  __proto__: null,
1214
- default: hn
1215
- }, Symbol.toStringTag, { value: "Module" })), un = /* @__PURE__ */ ke(ln);
1214
+ default: ln
1215
+ }, Symbol.toStringTag, { value: "Module" })), fn = /* @__PURE__ */ Ne(un);
1216
1216
  (function(t) {
1217
1217
  (function(e, n, r) {
1218
1218
  var o = 256, u = 6, f = 52, h = "random", i = r.pow(o, u), s = r.pow(2, f), c = s * 2, a = o - 1, l;
1219
- function g(x, m, C) {
1220
- var A = [];
1221
- m = m == !0 ? { entropy: !0 } : m || {};
1222
- var b = w(y(
1223
- m.entropy ? [x, z(n)] : x ?? P(),
1219
+ function g(x, C, z) {
1220
+ var y = [];
1221
+ C = C == !0 ? { entropy: !0 } : C || {};
1222
+ var b = w(m(
1223
+ C.entropy ? [x, P(n)] : x ?? A(),
1224
1224
  3
1225
- ), A), F = new p(A), D = function() {
1226
- for (var W = F.g(u), V = i, X = 0; W < s; )
1227
- W = (W + X) * o, V *= o, X = F.g(1);
1225
+ ), y), T = new p(y), D = function() {
1226
+ for (var W = T.g(u), R = i, X = 0; W < s; )
1227
+ W = (W + X) * o, R *= o, X = T.g(1);
1228
1228
  for (; W >= c; )
1229
- W /= 2, V /= 2, X >>>= 1;
1230
- return (W + X) / V;
1229
+ W /= 2, R /= 2, X >>>= 1;
1230
+ return (W + X) / R;
1231
1231
  };
1232
1232
  return D.int32 = function() {
1233
- return F.g(4) | 0;
1233
+ return T.g(4) | 0;
1234
1234
  }, D.quick = function() {
1235
- return F.g(4) / 4294967296;
1236
- }, D.double = D, w(z(F.S), n), (m.pass || C || function(W, V, X, j) {
1237
- return j && (j.S && v(j, F), W.state = function() {
1238
- return v(F, {});
1239
- }), X ? (r[h] = W, V) : W;
1235
+ return T.g(4) / 4294967296;
1236
+ }, D.double = D, w(P(T.S), n), (C.pass || z || function(W, R, X, j) {
1237
+ return j && (j.S && v(j, T), W.state = function() {
1238
+ return v(T, {});
1239
+ }), X ? (r[h] = W, R) : W;
1240
1240
  })(
1241
1241
  D,
1242
1242
  b,
1243
- "global" in m ? m.global : this == r,
1244
- m.state
1243
+ "global" in C ? C.global : this == r,
1244
+ C.state
1245
1245
  );
1246
1246
  }
1247
1247
  function p(x) {
1248
- var m, C = x.length, A = this, b = 0, F = A.i = A.j = 0, D = A.S = [];
1249
- for (C || (x = [C++]); b < o; )
1248
+ var C, z = x.length, y = this, b = 0, T = y.i = y.j = 0, D = y.S = [];
1249
+ for (z || (x = [z++]); b < o; )
1250
1250
  D[b] = b++;
1251
1251
  for (b = 0; b < o; b++)
1252
- D[b] = D[F = a & F + x[b % C] + (m = D[b])], D[F] = m;
1253
- (A.g = function(W) {
1254
- for (var V, X = 0, j = A.i, S = A.j, Y = A.S; W--; )
1255
- V = Y[j = a & j + 1], X = X * o + Y[a & (Y[j] = Y[S = a & S + V]) + (Y[S] = V)];
1256
- return A.i = j, A.j = S, X;
1252
+ D[b] = D[T = a & T + x[b % z] + (C = D[b])], D[T] = C;
1253
+ (y.g = function(W) {
1254
+ for (var R, X = 0, j = y.i, S = y.j, Y = y.S; W--; )
1255
+ R = Y[j = a & j + 1], X = X * o + Y[a & (Y[j] = Y[S = a & S + R]) + (Y[S] = R)];
1256
+ return y.i = j, y.j = S, X;
1257
1257
  })(o);
1258
1258
  }
1259
- function v(x, m) {
1260
- return m.i = x.i, m.j = x.j, m.S = x.S.slice(), m;
1259
+ function v(x, C) {
1260
+ return C.i = x.i, C.j = x.j, C.S = x.S.slice(), C;
1261
1261
  }
1262
- function y(x, m) {
1263
- var C = [], A = typeof x, b;
1264
- if (m && A == "object")
1262
+ function m(x, C) {
1263
+ var z = [], y = typeof x, b;
1264
+ if (C && y == "object")
1265
1265
  for (b in x)
1266
1266
  try {
1267
- C.push(y(x[b], m - 1));
1267
+ z.push(m(x[b], C - 1));
1268
1268
  } catch {
1269
1269
  }
1270
- return C.length ? C : A == "string" ? x : x + "\0";
1270
+ return z.length ? z : y == "string" ? x : x + "\0";
1271
1271
  }
1272
- function w(x, m) {
1273
- for (var C = x + "", A, b = 0; b < C.length; )
1274
- m[a & b] = a & (A ^= m[a & b] * 19) + C.charCodeAt(b++);
1275
- return z(m);
1272
+ function w(x, C) {
1273
+ for (var z = x + "", y, b = 0; b < z.length; )
1274
+ C[a & b] = a & (y ^= C[a & b] * 19) + z.charCodeAt(b++);
1275
+ return P(C);
1276
1276
  }
1277
- function P() {
1277
+ function A() {
1278
1278
  try {
1279
1279
  var x;
1280
- return l && (x = l.randomBytes) ? x = x(o) : (x = new Uint8Array(o), (e.crypto || e.msCrypto).getRandomValues(x)), z(x);
1280
+ return l && (x = l.randomBytes) ? x = x(o) : (x = new Uint8Array(o), (e.crypto || e.msCrypto).getRandomValues(x)), P(x);
1281
1281
  } catch {
1282
- var m = e.navigator, C = m && m.plugins;
1283
- return [+/* @__PURE__ */ new Date(), e, C, e.screen, z(n)];
1282
+ var C = e.navigator, z = C && C.plugins;
1283
+ return [+/* @__PURE__ */ new Date(), e, z, e.screen, P(n)];
1284
1284
  }
1285
1285
  }
1286
- function z(x) {
1286
+ function P(x) {
1287
1287
  return String.fromCharCode.apply(0, x);
1288
1288
  }
1289
1289
  if (w(r.random(), n), t.exports) {
1290
1290
  t.exports = g;
1291
1291
  try {
1292
- l = un;
1292
+ l = fn;
1293
1293
  } catch {
1294
1294
  }
1295
1295
  } else
@@ -1304,15 +1304,15 @@ const hn = {}, ln = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
1304
1304
  // math: package containing random, pow, and seedrandom
1305
1305
  );
1306
1306
  })(se);
1307
- var fn = se.exports, cn = en, gn = nn, pn = rn, vn = on, dn = sn, xn = an, Q = fn;
1308
- Q.alea = cn;
1309
- Q.xor128 = gn;
1310
- Q.xorwow = pn;
1311
- Q.xorshift7 = vn;
1312
- Q.xor4096 = dn;
1313
- Q.tychei = xn;
1314
- var wn = Q;
1315
- const Bt = /* @__PURE__ */ Ne(wn);
1307
+ var cn = se.exports, gn = nn, pn = rn, vn = on, dn = sn, xn = an, wn = hn, Q = cn;
1308
+ Q.alea = gn;
1309
+ Q.xor128 = pn;
1310
+ Q.xorwow = vn;
1311
+ Q.xorshift7 = dn;
1312
+ Q.xor4096 = xn;
1313
+ Q.tychei = wn;
1314
+ var mn = Q;
1315
+ const Bt = /* @__PURE__ */ Ie(mn);
1316
1316
  class xt extends Jt {
1317
1317
  constructor() {
1318
1318
  super(...arguments), Object.defineProperty(this, "_tag", {
@@ -1325,13 +1325,13 @@ class xt extends Jt {
1325
1325
  configurable: !0,
1326
1326
  writable: !0,
1327
1327
  value: this.addDisposer(new ve(de.new({}), () => pt._new(this._root, {
1328
- themeTags: Ee(this.polygons.template.get("themeTags", []), [this._tag, "shape"])
1328
+ themeTags: Te(this.polygons.template.get("themeTags", []), [this._tag, "shape"])
1329
1329
  }, [this.polygons.template])))
1330
1330
  }), Object.defineProperty(this, "voronoi", {
1331
1331
  enumerable: !0,
1332
1332
  configurable: !0,
1333
1333
  writable: !0,
1334
- value: tn()
1334
+ value: en()
1335
1335
  });
1336
1336
  }
1337
1337
  _afterNew() {
@@ -1415,7 +1415,7 @@ Object.defineProperty(xt, "classNames", {
1415
1415
  writable: !0,
1416
1416
  value: Jt.classNames.concat([xt.className])
1417
1417
  });
1418
- const Tn = (t) => {
1418
+ const kn = (t) => {
1419
1419
  const e = ye({
1420
1420
  props: t,
1421
1421
  name: "HCDrillDownVoronoiTreemap"
@@ -1433,9 +1433,10 @@ const Tn = (t) => {
1433
1433
  if (g) return;
1434
1434
  let v;
1435
1435
  return v = setTimeout(() => {
1436
- const y = xe.new(a);
1437
- l.current = y;
1438
- const w = we.new(y);
1436
+ var C;
1437
+ const m = xe.new(a);
1438
+ l.current = m, De(m, (C = r == null ? void 0 : r[0]) == null ? void 0 : C.format);
1439
+ const w = we.new(m);
1439
1440
  w.rule("Polygon", ["hierarchy", "node", "shape", "depth0"]).setAll({ strokeOpacity: 0, fillOpacity: 0 }), w.rule("Polygon", ["hierarchy", "node", "shape", "depth1"]).setAll({
1440
1441
  strokeWidth: 5,
1441
1442
  fillOpacity: 1,
@@ -1444,16 +1445,16 @@ const Tn = (t) => {
1444
1445
  fillOpacity: 0,
1445
1446
  strokeWidth: 1,
1446
1447
  stroke: Ht(0)
1447
- }), w.rule("HierarchyNode", ["last"]).setAll({ cursorOverStyle: "pointer" }), w.rule("Label", ["node"]).setAll({ fontSize: 11, minScale: 0.7 }), w.rule("Label", ["node", "depth0"]).setAll({ forceHidden: !0 }), w.rule("Label", ["node", "depth1"]).setAll({ forceHidden: !0 }), y.setThemes([me.new(y), w]);
1448
- const z = y.container.children.push(
1449
- Te.new(y, {
1448
+ }), w.rule("HierarchyNode", ["last"]).setAll({ cursorOverStyle: "pointer" }), w.rule("Label", ["node"]).setAll({ fontSize: 11, minScale: 0.7 }), w.rule("Label", ["node", "depth0"]).setAll({ forceHidden: !0 }), w.rule("Label", ["node", "depth1"]).setAll({ forceHidden: !0 }), m.setThemes([me.new(m), w]);
1449
+ const P = m.container.children.push(
1450
+ ke.new(m, {
1450
1451
  width: Vt,
1451
1452
  height: Vt,
1452
1453
  wheelable: !0,
1453
1454
  pinchZoom: !0
1454
1455
  })
1455
1456
  ).contents.children.push(
1456
- xt.new(y, {
1457
+ xt.new(m, {
1457
1458
  paddingLeft: 5,
1458
1459
  paddingRight: 5,
1459
1460
  paddingTop: 5,
@@ -1470,52 +1471,52 @@ const Tn = (t) => {
1470
1471
  cornerCount: 120
1471
1472
  })
1472
1473
  );
1473
- z.set("colors", De(y, f)), z.labels.template.adapters.add("x", function(m, C) {
1474
- const A = C.dataItem;
1475
- if (A) {
1476
- const b = A.get("polygon");
1477
- if (b) {
1478
- const F = b.getPrivate("minX", 0), D = b.getPrivate("maxX", 0), W = A.dataContext;
1479
- W && (D - F < 50 ? C.set("text", W.id) : C.set("text", W.name));
1474
+ P.set("colors", Ee(m, f)), P.labels.template.adapters.add("x", function(z, y) {
1475
+ const b = y.dataItem;
1476
+ if (b) {
1477
+ const T = b.get("polygon");
1478
+ if (T) {
1479
+ const D = T.getPrivate("minX", 0), W = T.getPrivate("maxX", 0), R = b.dataContext;
1480
+ R && (W - D < 50 ? y.set("text", R.id) : y.set("text", R.name));
1480
1481
  }
1481
1482
  }
1482
- return m;
1483
- }), z.nodes.template.events.on("click", function(m) {
1484
- const C = m.target.dataItem;
1485
- C && (C.get("children") || z.selectDataItem(C.get("parent")));
1483
+ return z;
1484
+ }), P.nodes.template.events.on("click", function(z) {
1485
+ const y = z.target.dataItem;
1486
+ y && (y.get("children") || P.selectDataItem(y.get("parent")));
1486
1487
  });
1487
- const x = (m, C, A) => {
1488
- if (m === "date") {
1489
- let b = "YYYY";
1490
- return C.includes("month") ? b = "MMM YYYY" : C.includes("day") && (b = "DD MMM YYYY"), Ce(A).format(b);
1488
+ const x = (z, y, b) => {
1489
+ if (z === "date") {
1490
+ let T = "YYYY";
1491
+ return y.includes("month") ? T = "MMM YYYY" : y.includes("day") && (T = "DD MMM YYYY"), Ce(b).format(T);
1491
1492
  }
1492
- return A;
1493
+ return b;
1493
1494
  };
1494
1495
  if (n.length > 1) {
1495
- const m = Ae.groupBy(o, n[0].value), C = [];
1496
- Object.keys(m).forEach((A) => {
1497
- C.push({
1498
- name: x(n[0].type, n[0].value, A),
1499
- children: m[A].map((b) => ({
1496
+ const z = Ae.groupBy(o, n[0].value), y = [];
1497
+ Object.keys(z).forEach((b) => {
1498
+ y.push({
1499
+ name: x(n[0].type, n[0].value, b),
1500
+ children: z[b].map((T) => ({
1500
1501
  name: x(
1501
1502
  n[1].type,
1502
1503
  n[1].value,
1503
- b[n[1].value]
1504
+ T[n[1].value]
1504
1505
  ),
1505
- [r[0].dataFieldName]: b[r[0].dataFieldName]
1506
+ [r[0].dataFieldName]: T[r[0].dataFieldName]
1506
1507
  }))
1507
1508
  });
1508
- }), z.data.setAll([{ children: C }]);
1509
+ }), P.data.setAll([{ children: y }]);
1509
1510
  }
1510
- z.set("selectedDataItem", z.dataItems[0]), z.appear(1e3, 100);
1511
+ P.set("selectedDataItem", P.dataItems[0]), P.appear(1e3, 100);
1511
1512
  }, u), () => {
1512
- var y;
1513
- v && clearTimeout(v), (y = l.current) == null || y.dispose(), l.current = null;
1513
+ var m;
1514
+ v && clearTimeout(v), (m = l.current) == null || m.dispose(), l.current = null;
1514
1515
  };
1515
1516
  }, [o, n, r, s.palette.mode, f]);
1516
1517
  const p = { ...e };
1517
1518
  return { chartId: a, ownerState: p, sx: h, error: g, other: i };
1518
1519
  };
1519
1520
  export {
1520
- Tn as useDrillDownVoronoiTreemapLogic
1521
+ kn as useDrillDownVoronoiTreemapLogic
1521
1522
  };