@appkit/dek-ui 0.52.0 → 0.53.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -2,7 +2,7 @@ var Eh = Object.defineProperty;
2
2
  var jh = (t, e, r) => e in t ? Eh(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
3
  var Z = (t, e, r) => (jh(t, typeof e != "symbol" ? e + "" : e, r), r);
4
4
  import * as L1 from "react";
5
- import l1, { useState as Z1, useRef as D1, useEffect as $1, useLayoutEffect as x3, forwardRef as D6, useCallback as w3, useContext as T6, useMemo as xt } from "react";
5
+ import l1, { useState as Z1, useRef as D1, useEffect as T1, useLayoutEffect as x3, forwardRef as D6, useCallback as w3, useContext as T6, useMemo as xt } from "react";
6
6
  import p1, { createGlobalStyle as Nh } from "styled-components";
7
7
  import { unstable_batchedUpdates as $h } from "react-dom";
8
8
  function pr(t) {
@@ -427,7 +427,7 @@ function qh() {
427
427
  k[K] || (C('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', B(f.current.type), w.ref), k[K] = !0);
428
428
  }
429
429
  }
430
- function E1(w, U) {
430
+ function j1(w, U) {
431
431
  {
432
432
  var K = function() {
433
433
  u || (u = !0, C("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", U));
@@ -449,7 +449,7 @@ function qh() {
449
449
  });
450
450
  }
451
451
  }
452
- var j1 = function(w, U, K, c1, C1, _1, H1) {
452
+ var N1 = function(w, U, K, c1, C1, _1, H1) {
453
453
  var z1 = {
454
454
  // This tag allows us to uniquely identify this as a React Element
455
455
  $$typeof: e,
@@ -491,9 +491,9 @@ function qh() {
491
491
  }
492
492
  if (z1 || o2) {
493
493
  var X1 = typeof w == "function" ? w.displayName || w.name || "Unknown" : w;
494
- z1 && E1(H1, X1), o2 && P1(H1, X1);
494
+ z1 && j1(H1, X1), o2 && P1(H1, X1);
495
495
  }
496
- return j1(w, z1, o2, C1, c1, f.current, H1);
496
+ return N1(w, z1, o2, C1, c1, f.current, H1);
497
497
  }
498
498
  }
499
499
  var la = L.ReactCurrentOwner, X8 = L.ReactDebugCurrentFrame;
@@ -24946,7 +24946,7 @@ function Zq1(t) {
24946
24946
  const e = D1(null);
24947
24947
  return e.current === null && (e.current = t()), e.current;
24948
24948
  }
24949
- var m2 = U6() ? $1 : x3, tG1 = () => {
24949
+ var m2 = U6() ? T1 : x3, tG1 = () => {
24950
24950
  const t = D1(!1);
24951
24951
  return m2(() => (t.current = !0, () => {
24952
24952
  t.current = !1;
@@ -24969,7 +24969,7 @@ function aG1(t, e) {
24969
24969
  return i ? e && i.inputs && eG1(e, i.inputs) || (i = {
24970
24970
  inputs: e,
24971
24971
  result: t()
24972
- }) : i = r, $1(() => {
24972
+ }) : i = r, T1(() => {
24973
24973
  n.current = i, h == r && (r.inputs = r.result = void 0);
24974
24974
  }, [i]), i.result;
24975
24975
  }
@@ -24981,10 +24981,10 @@ function eG1(t, e) {
24981
24981
  return !1;
24982
24982
  return !0;
24983
24983
  }
24984
- var O3 = (t) => $1(t, rG1), rG1 = [];
24984
+ var O3 = (t) => T1(t, rG1), rG1 = [];
24985
24985
  function Ka(t) {
24986
24986
  const e = D1();
24987
- return $1(() => {
24987
+ return T1(() => {
24988
24988
  e.current = t;
24989
24989
  }), e.current;
24990
24990
  }
@@ -25136,7 +25136,7 @@ var f9 = (t, e) => {
25136
25136
  z.current.deps,
25137
25137
  (H) => b4(H, z.current)
25138
25138
  ), o1.cancel(z.current.update));
25139
- })), $1(s, []), O3(() => () => {
25139
+ })), T1(s, []), O3(() => () => {
25140
25140
  const H = z.current;
25141
25141
  n1(H.deps, (p) => b4(p, H));
25142
25142
  });
@@ -27495,7 +27495,7 @@ function MK1(t) {
27495
27495
  o: v,
27496
27496
  ...s
27497
27497
  } = t;
27498
- $1(() => {
27498
+ T1(() => {
27499
27499
  let p = null;
27500
27500
  return t.carouselState.dragging === !1 && e == !0 ? p = setTimeout(() => {
27501
27501
  t.carouselState.dragging != e && r(t.carouselState.dragging);
@@ -27623,7 +27623,7 @@ const mK1 = ({
27623
27623
  activeIndex: l
27624
27624
  }) => {
27625
27625
  const o = D1(), v = D1(), [s, d] = Z1({ width: 0, height: 0 });
27626
- $1(() => {
27626
+ T1(() => {
27627
27627
  l !== void 0 && v.current && v.current.go(-l);
27628
27628
  }, [l]), x3(() => {
27629
27629
  o.current && d({
@@ -27631,7 +27631,17 @@ const mK1 = ({
27631
27631
  height: o.current.offsetHeight
27632
27632
  });
27633
27633
  }, [r, n]);
27634
- const z = HK1(MK1), M = c.length;
27634
+ const z = c.length;
27635
+ T1(() => {
27636
+ if (!e || z <= 1)
27637
+ return;
27638
+ const p = setInterval(() => {
27639
+ var m;
27640
+ (m = v.current) == null || m.next();
27641
+ }, e * 1e3);
27642
+ return () => clearInterval(p);
27643
+ }, [e, z]);
27644
+ const M = HK1(MK1);
27635
27645
  h = Math.max(0, h);
27636
27646
  function H(p, m) {
27637
27647
  const L = c[m];
@@ -27661,18 +27671,18 @@ const mK1 = ({
27661
27671
  iK1,
27662
27672
  {
27663
27673
  ref: v,
27664
- component: z,
27674
+ component: M,
27665
27675
  cardSize: s.width,
27666
- cardCount: M,
27667
- cardPadCount: h,
27668
- autoplay: M > 1 ? e * 1e3 : 0,
27669
- loop: !1,
27676
+ cardCount: z,
27677
+ cardPadCount: z,
27678
+ autoplay: 0,
27679
+ loop: !0,
27670
27680
  vertical: t,
27671
27681
  renderCard: H,
27672
27682
  width: s.width,
27673
27683
  height: s.height,
27674
27684
  v: t,
27675
- c: M,
27685
+ c: z,
27676
27686
  p: h,
27677
27687
  o: i
27678
27688
  }
@@ -27795,7 +27805,7 @@ var Dt = function(t, e, r) {
27795
27805
  L < 37 || L > 40 || (m.preventDefault(), c({ left: L === 39 ? 0.05 : L === 37 ? -0.05 : 0, top: L === 40 ? 0.05 : L === 38 ? -0.05 : 0 }));
27796
27806
  }, p];
27797
27807
  }, [c, i]), s = v[0], d = v[1], z = v[2];
27798
- return $1(function() {
27808
+ return T1(function() {
27799
27809
  return z;
27800
27810
  }, [z]), l1.createElement("div", Ut({}, n, { onTouchStart: s, onMouseDown: s, className: "react-colorful__interactive", ref: h, onKeyDown: d, tabIndex: 0, role: "slider" }));
27801
27811
  }), Z4 = function(t) {
@@ -27867,12 +27877,12 @@ function Mn(t, e, r) {
27867
27877
  var n = i6(r), h = Z1(function() {
27868
27878
  return t.toHsva(e);
27869
27879
  }), i = h[0], c = h[1], l = D1({ color: e, hsva: i });
27870
- $1(function() {
27880
+ T1(function() {
27871
27881
  if (!t.equal(e, l.current.color)) {
27872
27882
  var v = t.toHsva(e);
27873
27883
  l.current = { hsva: v, color: e }, c(v);
27874
27884
  }
27875
- }, [e, t]), $1(function() {
27885
+ }, [e, t]), T1(function() {
27876
27886
  var v;
27877
27887
  zn(i, l.current.hsva) || t.equal(v = t.fromHsva(i), l.current.color) || (l.current = { hsva: i, color: v }, n(v));
27878
27888
  }, [i, t, n]);
@@ -27883,7 +27893,7 @@ function Mn(t, e, r) {
27883
27893
  }, []);
27884
27894
  return [i, o];
27885
27895
  }
27886
- var yK1 = typeof window < "u" ? x3 : $1, OK1 = function() {
27896
+ var yK1 = typeof window < "u" ? x3 : T1, OK1 = function() {
27887
27897
  return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : void 0;
27888
27898
  }, A9 = /* @__PURE__ */ new Map(), fn = function(t) {
27889
27899
  yK1(function() {
@@ -28430,7 +28440,7 @@ const TK1 = /* @__PURE__ */ pr(pn), RK1 = p1.div`
28430
28440
  return [...r, h + (i && `:${i}`)];
28431
28441
  }, []).join("|"), e = document.createElement("link");
28432
28442
  return e.rel = "stylesheet", e.href = `https://fonts.googleapis.com/css?family=${t}`, e;
28433
- }, jK1 = () => ($1(() => {
28443
+ }, jK1 = () => (T1(() => {
28434
28444
  const t = EK1();
28435
28445
  return document.head.appendChild(t), () => {
28436
28446
  document.head.removeChild(t);
@@ -30359,10 +30369,10 @@ d8.write = function(t, e, r, n, h, i) {
30359
30369
  if (u >>>= 0, V >>>= 0, k >>>= 0, P >>>= 0, this === g)
30360
30370
  return 0;
30361
30371
  let R = P - k, s1 = V - u;
30362
- const E1 = Math.min(R, s1), P1 = this.slice(k, P), j1 = g.slice(u, V);
30363
- for (let O1 = 0; O1 < E1; ++O1)
30364
- if (P1[O1] !== j1[O1]) {
30365
- R = P1[O1], s1 = j1[O1];
30372
+ const j1 = Math.min(R, s1), P1 = this.slice(k, P), N1 = g.slice(u, V);
30373
+ for (let O1 = 0; O1 < j1; ++O1)
30374
+ if (P1[O1] !== N1[O1]) {
30375
+ R = P1[O1], s1 = N1[O1];
30366
30376
  break;
30367
30377
  }
30368
30378
  return R < s1 ? -1 : s1 < R ? 1 : 0;
@@ -30392,27 +30402,27 @@ d8.write = function(t, e, r, n, h, i) {
30392
30402
  return -1;
30393
30403
  P = 2, R /= 2, s1 /= 2, u /= 2;
30394
30404
  }
30395
- function E1(j1, O1) {
30396
- return P === 1 ? j1[O1] : j1.readUInt16BE(O1 * P);
30405
+ function j1(N1, O1) {
30406
+ return P === 1 ? N1[O1] : N1.readUInt16BE(O1 * P);
30397
30407
  }
30398
30408
  let P1;
30399
30409
  if (k) {
30400
- let j1 = -1;
30410
+ let N1 = -1;
30401
30411
  for (P1 = u; P1 < R; P1++)
30402
- if (E1(f, P1) === E1(g, j1 === -1 ? 0 : P1 - j1)) {
30403
- if (j1 === -1 && (j1 = P1), P1 - j1 + 1 === s1)
30404
- return j1 * P;
30412
+ if (j1(f, P1) === j1(g, N1 === -1 ? 0 : P1 - N1)) {
30413
+ if (N1 === -1 && (N1 = P1), P1 - N1 + 1 === s1)
30414
+ return N1 * P;
30405
30415
  } else
30406
- j1 !== -1 && (P1 -= P1 - j1), j1 = -1;
30416
+ N1 !== -1 && (P1 -= P1 - N1), N1 = -1;
30407
30417
  } else
30408
30418
  for (u + s1 > R && (u = R - s1), P1 = u; P1 >= 0; P1--) {
30409
- let j1 = !0;
30419
+ let N1 = !0;
30410
30420
  for (let O1 = 0; O1 < s1; O1++)
30411
- if (E1(f, P1 + O1) !== E1(g, O1)) {
30412
- j1 = !1;
30421
+ if (j1(f, P1 + O1) !== j1(g, O1)) {
30422
+ N1 = !1;
30413
30423
  break;
30414
30424
  }
30415
- if (j1)
30425
+ if (N1)
30416
30426
  return P1;
30417
30427
  }
30418
30428
  return -1;
@@ -30507,19 +30517,19 @@ d8.write = function(t, e, r, n, h, i) {
30507
30517
  const P = f[k];
30508
30518
  let R = null, s1 = P > 239 ? 4 : P > 223 ? 3 : P > 191 ? 2 : 1;
30509
30519
  if (k + s1 <= u) {
30510
- let E1, P1, j1, O1;
30520
+ let j1, P1, N1, O1;
30511
30521
  switch (s1) {
30512
30522
  case 1:
30513
30523
  P < 128 && (R = P);
30514
30524
  break;
30515
30525
  case 2:
30516
- E1 = f[k + 1], (E1 & 192) === 128 && (O1 = (P & 31) << 6 | E1 & 63, O1 > 127 && (R = O1));
30526
+ j1 = f[k + 1], (j1 & 192) === 128 && (O1 = (P & 31) << 6 | j1 & 63, O1 > 127 && (R = O1));
30517
30527
  break;
30518
30528
  case 3:
30519
- E1 = f[k + 1], P1 = f[k + 2], (E1 & 192) === 128 && (P1 & 192) === 128 && (O1 = (P & 15) << 12 | (E1 & 63) << 6 | P1 & 63, O1 > 2047 && (O1 < 55296 || O1 > 57343) && (R = O1));
30529
+ j1 = f[k + 1], P1 = f[k + 2], (j1 & 192) === 128 && (P1 & 192) === 128 && (O1 = (P & 15) << 12 | (j1 & 63) << 6 | P1 & 63, O1 > 2047 && (O1 < 55296 || O1 > 57343) && (R = O1));
30520
30530
  break;
30521
30531
  case 4:
30522
- E1 = f[k + 1], P1 = f[k + 2], j1 = f[k + 3], (E1 & 192) === 128 && (P1 & 192) === 128 && (j1 & 192) === 128 && (O1 = (P & 15) << 18 | (E1 & 63) << 12 | (P1 & 63) << 6 | j1 & 63, O1 > 65535 && O1 < 1114112 && (R = O1));
30532
+ j1 = f[k + 1], P1 = f[k + 2], N1 = f[k + 3], (j1 & 192) === 128 && (P1 & 192) === 128 && (N1 & 192) === 128 && (O1 = (P & 15) << 18 | (j1 & 63) << 12 | (P1 & 63) << 6 | N1 & 63, O1 > 65535 && O1 < 1114112 && (R = O1));
30523
30533
  }
30524
30534
  }
30525
30535
  R === null ? (R = 65533, s1 = 1) : R > 65535 && (R -= 65536, V.push(R >>> 10 & 1023 | 55296), R = 56320 | R & 1023), V.push(R), k += s1;
@@ -30719,8 +30729,8 @@ d8.write = function(t, e, r, n, h, i) {
30719
30729
  return k1(this, g, u, BigInt(0), BigInt("0xffffffffffffffff"));
30720
30730
  }), l.prototype.writeIntLE = function(g, u, V, k) {
30721
30731
  if (g = +g, u = u >>> 0, !k) {
30722
- const E1 = Math.pow(2, 8 * V - 1);
30723
- e1(this, g, u, V, E1 - 1, -E1);
30732
+ const j1 = Math.pow(2, 8 * V - 1);
30733
+ e1(this, g, u, V, j1 - 1, -j1);
30724
30734
  }
30725
30735
  let P = 0, R = 1, s1 = 0;
30726
30736
  for (this[u] = g & 255; ++P < V && (R *= 256); )
@@ -30728,8 +30738,8 @@ d8.write = function(t, e, r, n, h, i) {
30728
30738
  return u + V;
30729
30739
  }, l.prototype.writeIntBE = function(g, u, V, k) {
30730
30740
  if (g = +g, u = u >>> 0, !k) {
30731
- const E1 = Math.pow(2, 8 * V - 1);
30732
- e1(this, g, u, V, E1 - 1, -E1);
30741
+ const j1 = Math.pow(2, 8 * V - 1);
30742
+ e1(this, g, u, V, j1 - 1, -j1);
30733
30743
  }
30734
30744
  let P = V - 1, R = 1, s1 = 0;
30735
30745
  for (this[u + P] = g & 255; --P >= 0 && (R *= 256); )
@@ -31043,7 +31053,7 @@ function mQ1(t, e) {
31043
31053
  },
31044
31054
  [e]
31045
31055
  );
31046
- return $1(() => {
31056
+ return T1(() => {
31047
31057
  console.log("%%% CACHE useEffect src", { src: t, url: o }), t && t !== o && (s(t), v(t));
31048
31058
  }, [t, o, s]), r && console.log("%%% CACHE data found", r, h, c), {
31049
31059
  data: r,
@@ -31111,7 +31121,7 @@ const VQ1 = p1.div`
31111
31121
  error: l,
31112
31122
  loading: o
31113
31123
  } = mQ1(t, i), [v, s] = Z1(""), [d, z] = Z1("");
31114
- $1(() => {
31124
+ T1(() => {
31115
31125
  (l || v) && z(l || v);
31116
31126
  }, [l, v]);
31117
31127
  const M = (m) => {
@@ -32846,7 +32856,7 @@ const MJ1 = (() => {
32846
32856
  let t = 0;
32847
32857
  return () => t++;
32848
32858
  })();
32849
- function T1(t) {
32859
+ function R1(t) {
32850
32860
  return t === null || typeof t > "u";
32851
32861
  }
32852
32862
  function U1(t) {
@@ -33526,7 +33536,7 @@ var q1 = /* @__PURE__ */ new UJ1({
33526
33536
  $J1
33527
33537
  ]);
33528
33538
  function YJ1(t) {
33529
- return !t || T1(t.size) || T1(t.family) ? null : (t.style ? t.style + " " : "") + (t.weight ? t.weight + " " : "") + t.size + "px " + t.family;
33539
+ return !t || R1(t.size) || R1(t.family) ? null : (t.style ? t.style + " " : "") + (t.weight ? t.weight + " " : "") + t.size + "px " + t.family;
33530
33540
  }
33531
33541
  function d3(t, e, r, n, h) {
33532
33542
  let i = e[h];
@@ -33638,7 +33648,7 @@ function KJ1(t, e, r, n) {
33638
33648
  t.bezierCurveTo(n ? e.cp1x : e.cp2x, n ? e.cp1y : e.cp2y, n ? r.cp2x : r.cp1x, n ? r.cp2y : r.cp1y, r.x, r.y);
33639
33649
  }
33640
33650
  function XJ1(t, e) {
33641
- e.translation && t.translate(e.translation[0], e.translation[1]), T1(e.rotation) || t.rotate(e.rotation), e.color && (t.fillStyle = e.color), e.textAlign && (t.textAlign = e.textAlign), e.textBaseline && (t.textBaseline = e.textBaseline);
33651
+ e.translation && t.translate(e.translation[0], e.translation[1]), R1(e.rotation) || t.rotate(e.rotation), e.color && (t.fillStyle = e.color), e.textAlign && (t.textAlign = e.textAlign), e.textBaseline && (t.textBaseline = e.textBaseline);
33642
33652
  }
33643
33653
  function QJ1(t, e, r, n, h) {
33644
33654
  if (h.strikethrough || h.underline) {
@@ -33656,7 +33666,7 @@ function lt(t, e, r, n, h, i = {}) {
33656
33666
  ], l = i.strokeWidth > 0 && i.strokeColor !== "";
33657
33667
  let o, v;
33658
33668
  for (t.save(), t.font = h.string, XJ1(t, i), o = 0; o < c.length; ++o)
33659
- v = c[o], i.backdrop && JJ1(t, i.backdrop), l && (i.strokeColor && (t.strokeStyle = i.strokeColor), T1(i.strokeWidth) || (t.lineWidth = i.strokeWidth), t.strokeText(v, r, n, i.maxWidth)), t.fillText(v, r, n, i.maxWidth), QJ1(t, r, n, v, i), n += Number(h.lineHeight);
33669
+ v = c[o], i.backdrop && JJ1(t, i.backdrop), l && (i.strokeColor && (t.strokeStyle = i.strokeColor), R1(i.strokeWidth) || (t.lineWidth = i.strokeWidth), t.strokeText(v, r, n, i.maxWidth)), t.fillText(v, r, n, i.maxWidth), QJ1(t, r, n, v, i), n += Number(h.lineHeight);
33660
33670
  t.restore();
33661
33671
  }
33662
33672
  function N4(t, e) {
@@ -35164,7 +35174,7 @@ class $5 extends k4 {
35164
35174
  A.skip = !0;
35165
35175
  continue;
35166
35176
  }
35167
- const O = this.getParsed(b), x = T1(O[M]), _ = A[z] = c.getPixelForValue(O[z], b), I = A[M] = i || x ? l.getBasePixel() : l.getPixelForValue(o ? this.applyStack(l, O, o) : O[M], b);
35177
+ const O = this.getParsed(b), x = R1(O[M]), _ = A[z] = c.getPixelForValue(O[z], b), I = A[M] = i || x ? l.getBasePixel() : l.getPixelForValue(o ? this.applyStack(l, O, o) : O[M], b);
35168
35178
  A.skip = isNaN(_) || isNaN(I) || x, A.stop = b > 0 && Math.abs(O[z] - T[z]) > m, p && (A.parsed = O, A.raw = v.data[b]), d && (A.options = s || this.resolveDataElementOptions(b, S.active ? "active" : h)), L || this.updateElement(S, b, A, h), T = O;
35169
35179
  }
35170
35180
  }
@@ -35786,7 +35796,7 @@ class L12 extends V7 {
35786
35796
  "width"
35787
35797
  ].forEach((i) => {
35788
35798
  const c = n[i];
35789
- T1(c) ? r.removeAttribute(i) : r.setAttribute(i, c);
35799
+ R1(c) ? r.removeAttribute(i) : r.setAttribute(i, c);
35790
35800
  });
35791
35801
  const h = n.style || {};
35792
35802
  return Object.keys(h).forEach((i) => {
@@ -35866,9 +35876,9 @@ function w12(t, e) {
35866
35876
  if (c > 0) {
35867
35877
  let d, z;
35868
35878
  const M = c > 1 ? Math.round((o - l) / (c - 1)) : null;
35869
- for (k5(e, v, s, T1(M) ? 0 : l - M, l), d = 0, z = c - 1; d < z; d++)
35879
+ for (k5(e, v, s, R1(M) ? 0 : l - M, l), d = 0, z = c - 1; d < z; d++)
35870
35880
  k5(e, v, s, i[d], i[d + 1]);
35871
- return k5(e, v, s, o, T1(M) ? e.length : o + M), v;
35881
+ return k5(e, v, s, o, R1(M) ? e.length : o + M), v;
35872
35882
  }
35873
35883
  return k5(e, v, s), v;
35874
35884
  }
@@ -36213,7 +36223,7 @@ class ot extends e0 {
36213
36223
  this.beforeTickToLabelConversion(), this.generateTickLabels(e);
36214
36224
  let r, n;
36215
36225
  for (r = 0, n = e.length; r < n; r++)
36216
- T1(e[r].label) && (e.splice(r, 1), n--, r--);
36226
+ R1(e[r].label) && (e.splice(r, 1), n--, r--);
36217
36227
  this.afterTickToLabelConversion();
36218
36228
  }
36219
36229
  _getLabelSizes() {
@@ -36232,11 +36242,11 @@ class ot extends e0 {
36232
36242
  if (H = e[d].label, p = this._resolveTickFontOptions(d), h.font = m = p.string, L = i[m] = i[m] || {
36233
36243
  data: {},
36234
36244
  gc: []
36235
- }, C = p.lineHeight, y = T = 0, !T1(H) && !U1(H))
36245
+ }, C = p.lineHeight, y = T = 0, !R1(H) && !U1(H))
36236
36246
  y = d3(h, L.data, L.gc, y, H), T = C;
36237
36247
  else if (U1(H))
36238
36248
  for (z = 0, M = H.length; z < M; ++z)
36239
- b = H[z], !T1(b) && !U1(b) && (y = d3(h, L.data, L.gc, y, b), T += C);
36249
+ b = H[z], !R1(b) && !U1(b) && (y = d3(h, L.data, L.gc, y, b), T += C);
36240
36250
  c.push(y), l.push(T), v = Math.max(y, v), s = Math.max(T, s);
36241
36251
  }
36242
36252
  b12(i, r);
@@ -36754,7 +36764,7 @@ class E12 {
36754
36764
  return !0;
36755
36765
  }
36756
36766
  invalidate() {
36757
- T1(this._cache) || (this._oldCache = this._cache, this._cache = void 0);
36767
+ R1(this._cache) || (this._oldCache = this._cache, this._cache = void 0);
36758
36768
  }
36759
36769
  _descriptors(e) {
36760
36770
  if (this._cache)
@@ -37144,7 +37154,7 @@ let q3 = (B0 = class {
37144
37154
  }
37145
37155
  get aspectRatio() {
37146
37156
  const { options: { aspectRatio: e, maintainAspectRatio: r }, width: n, height: h, _aspectRatio: i } = this;
37147
- return T1(e) ? r && i ? i : h ? n / h : null : e;
37157
+ return R1(e) ? r && i ? i : h ? n / h : null : e;
37148
37158
  }
37149
37159
  get data() {
37150
37160
  return this.config.data;
@@ -38878,7 +38888,7 @@ const P7 = {
38878
38888
  let e = t.dataset.label || "";
38879
38889
  e && (e += ": ");
38880
38890
  const r = t.formattedValue;
38881
- return T1(r) || (e += r), e;
38891
+ return R1(r) || (e += r), e;
38882
38892
  },
38883
38893
  labelColor(t) {
38884
38894
  const r = t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);
@@ -39291,7 +39301,7 @@ class k6 extends ot {
39291
39301
  super.init(e);
39292
39302
  }
39293
39303
  parse(e, r) {
39294
- if (T1(e))
39304
+ if (R1(e))
39295
39305
  return null;
39296
39306
  const n = this.getLabels();
39297
39307
  return r = isFinite(r) && n[r] === e ? r : n02(n, e, M1(r, e), this._addedLabels), h02(r, n.length - 1);
@@ -39337,7 +39347,7 @@ Z(k6, "id", "category"), Z(k6, "defaults", {
39337
39347
  }
39338
39348
  });
39339
39349
  function i02(t, e) {
39340
- const r = [], { bounds: h, step: i, min: c, max: l, precision: o, count: v, maxTicks: s, maxDigits: d, includeBounds: z } = t, M = i || 1, H = s - 1, { min: p, max: m } = e, L = !T1(c), C = !T1(l), y = !T1(v), T = (m - p) / (d + 1);
39350
+ const r = [], { bounds: h, step: i, min: c, max: l, precision: o, count: v, maxTicks: s, maxDigits: d, includeBounds: z } = t, M = i || 1, H = s - 1, { min: p, max: m } = e, L = !R1(c), C = !R1(l), y = !R1(v), T = (m - p) / (d + 1);
39341
39351
  let b = te((m - p) / H / M) * M, S, A, O, x;
39342
39352
  if (b < 1e-14 && !L && !C)
39343
39353
  return [
@@ -39348,9 +39358,9 @@ function i02(t, e) {
39348
39358
  value: m
39349
39359
  }
39350
39360
  ];
39351
- x = Math.ceil(m / b) - Math.floor(p / b), x > H && (b = te(x * b / H / M) * M), T1(o) || (S = Math.pow(10, o), b = Math.ceil(b * S) / S), h === "ticks" ? (A = Math.floor(p / b) * b, O = Math.ceil(m / b) * b) : (A = p, O = m), L && C && i && CJ1((l - c) / i, b / 1e3) ? (x = Math.round(Math.min((l - c) / b, s)), b = (l - c) / x, A = c, O = l) : y ? (A = L ? c : A, O = C ? l : O, x = v - 1, b = (O - A) / x) : (x = (O - A) / b, w4(x, Math.round(x), b / 1e3) ? x = Math.round(x) : x = Math.ceil(x));
39361
+ x = Math.ceil(m / b) - Math.floor(p / b), x > H && (b = te(x * b / H / M) * M), R1(o) || (S = Math.pow(10, o), b = Math.ceil(b * S) / S), h === "ticks" ? (A = Math.floor(p / b) * b, O = Math.ceil(m / b) * b) : (A = p, O = m), L && C && i && CJ1((l - c) / i, b / 1e3) ? (x = Math.round(Math.min((l - c) / b, s)), b = (l - c) / x, A = c, O = l) : y ? (A = L ? c : A, O = C ? l : O, x = v - 1, b = (O - A) / x) : (x = (O - A) / b, w4(x, Math.round(x), b / 1e3) ? x = Math.round(x) : x = Math.ceil(x));
39352
39362
  const _ = Math.max(ae(b), ae(A));
39353
- S = Math.pow(10, T1(o) ? _ : o), A = Math.round(A * S) / S, O = Math.round(O * S) / S;
39363
+ S = Math.pow(10, R1(o) ? _ : o), A = Math.round(A * S) / S, O = Math.round(O * S) / S;
39354
39364
  let I = 0;
39355
39365
  for (L && (z && A !== c ? (r.push({
39356
39366
  value: c
@@ -39377,7 +39387,7 @@ class z3 extends ot {
39377
39387
  super(e), this.start = void 0, this.end = void 0, this._startValue = void 0, this._endValue = void 0, this._valueRange = 0;
39378
39388
  }
39379
39389
  parse(e, r) {
39380
- return T1(e) || (typeof e == "number" || e instanceof Number) && !isFinite(+e) ? null : +e;
39390
+ return R1(e) || (typeof e == "number" || e instanceof Number) && !isFinite(+e) ? null : +e;
39381
39391
  }
39382
39392
  handleTickRangeOptions() {
39383
39393
  const { beginAtZero: e } = this.options, { minDefined: r, maxDefined: n } = this.getUserBounds();
@@ -39650,7 +39660,7 @@ function f02(t, e, r) {
39650
39660
  }
39651
39661
  function p02(t, e, r) {
39652
39662
  const { left: n, top: h, right: i, bottom: c } = r, { backdropColor: l } = e;
39653
- if (!T1(l)) {
39663
+ if (!R1(l)) {
39654
39664
  const o = rt(e.borderRadius), v = i2(e.backdropPadding);
39655
39665
  t.fillStyle = l;
39656
39666
  const s = n - v.left, d = h - v.top, z = i - n + v.width, M = c - h + v.height;
@@ -39737,13 +39747,13 @@ class b5 extends z3 {
39737
39747
  return x2(e * r + S0(n));
39738
39748
  }
39739
39749
  getDistanceFromCenterForValue(e) {
39740
- if (T1(e))
39750
+ if (R1(e))
39741
39751
  return NaN;
39742
39752
  const r = this.drawingArea / (this.max - this.min);
39743
39753
  return this.options.reverse ? (this.max - e) * r : (e - this.min) * r;
39744
39754
  }
39745
39755
  getValueForDistanceFromCenter(e) {
39746
- if (T1(e))
39756
+ if (R1(e))
39747
39757
  return NaN;
39748
39758
  const r = e / (this.drawingArea / (this.max - this.min));
39749
39759
  return this.options.reverse ? this.max - r : this.min + r;
@@ -39919,7 +39929,7 @@ function ir(t, e) {
39919
39929
  return t - e;
39920
39930
  }
39921
39931
  function cr(t, e) {
39922
- if (T1(e))
39932
+ if (R1(e))
39923
39933
  return null;
39924
39934
  const r = t._adapter, { parser: n, round: h, isoWeekday: i } = t._parseOpts;
39925
39935
  let c = e;
@@ -40235,22 +40245,22 @@ function k02(t, e) {
40235
40245
  }, m = () => {
40236
40246
  dr(e, null), H.current && (H.current.destroy(), H.current = null);
40237
40247
  };
40238
- return $1(() => {
40248
+ return T1(() => {
40239
40249
  !h && H.current && o && B02(H.current, o);
40240
40250
  }, [
40241
40251
  h,
40242
40252
  o
40243
- ]), $1(() => {
40253
+ ]), T1(() => {
40244
40254
  !h && H.current && T7(H.current.config.data, l.labels);
40245
40255
  }, [
40246
40256
  h,
40247
40257
  l.labels
40248
- ]), $1(() => {
40258
+ ]), T1(() => {
40249
40259
  !h && H.current && l.datasets && R7(H.current.config.data, l.datasets, i);
40250
40260
  }, [
40251
40261
  h,
40252
40262
  l.datasets
40253
- ]), $1(() => {
40263
+ ]), T1(() => {
40254
40264
  H.current && (h ? (m(), setTimeout(p)) : H.current.update(d));
40255
40265
  }, [
40256
40266
  h,
@@ -40258,11 +40268,11 @@ function k02(t, e) {
40258
40268
  l.labels,
40259
40269
  l.datasets,
40260
40270
  d
40261
- ]), $1(() => {
40271
+ ]), T1(() => {
40262
40272
  H.current && (m(), setTimeout(p));
40263
40273
  }, [
40264
40274
  c
40265
- ]), $1(() => (p(), () => m()), []), /* @__PURE__ */ l1.createElement("canvas", Object.assign({
40275
+ ]), T1(() => (p(), () => m()), []), /* @__PURE__ */ l1.createElement("canvas", Object.assign({
40266
40276
  ref: M,
40267
40277
  role: "img",
40268
40278
  height: r,
@@ -40466,19 +40476,19 @@ function la2(t, e) {
40466
40476
  const r = D1(t);
40467
40477
  b02(() => {
40468
40478
  r.current = t;
40469
- }, [t]), $1(() => {
40479
+ }, [t]), T1(() => {
40470
40480
  if (!e && e !== 0)
40471
40481
  return;
40472
40482
  const n = setInterval(() => r.current(), e);
40473
40483
  return () => clearInterval(n);
40474
40484
  }, [e]);
40475
40485
  }
40476
- const b02 = typeof window < "u" ? x3 : $1;
40486
+ const b02 = typeof window < "u" ? x3 : T1;
40477
40487
  function oa2(t = 1e3) {
40478
40488
  const [e, r] = Z1(/* @__PURE__ */ new Date()), n = w3(() => r(/* @__PURE__ */ new Date()), []), h = D1(n);
40479
- return $1(() => {
40489
+ return T1(() => {
40480
40490
  h.current = n;
40481
- }, [n]), $1(() => {
40491
+ }, [n]), T1(() => {
40482
40492
  if (!t && t !== 0)
40483
40493
  return;
40484
40494
  const i = setInterval(() => {
@@ -40836,7 +40846,7 @@ function J02(t, e) {
40836
40846
  return this[t](e);
40837
40847
  return this;
40838
40848
  }
40839
- var q7 = /\d/, y2 = /\d\d/, G7 = /\d{3}/, W8 = /\d{4}/, Q3 = /[+-]?\d{6}/, F1 = /\d\d?/, K7 = /\d\d\d\d?/, X7 = /\d\d\d\d\d\d?/, J3 = /\d{1,3}/, D8 = /\d{1,4}/, Z3 = /[+-]?\d{1,6}/, Gt = /\d+/, ta = /[+-]?\d+/, Z02 = /Z|[+-]\d\d:?\d\d/gi, aa = /Z|[+-]\d\d(?::?\d\d)?/gi, tt2 = /[+-]?\d+(\.\d{1,3})?/, i5 = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i, p3;
40849
+ var q7 = /\d/, y2 = /\d\d/, G7 = /\d{3}/, W8 = /\d{4}/, Q3 = /[+-]?\d{6}/, E1 = /\d\d?/, K7 = /\d\d\d\d?/, X7 = /\d\d\d\d\d\d?/, J3 = /\d{1,3}/, D8 = /\d{1,4}/, Z3 = /[+-]?\d{1,6}/, Gt = /\d+/, ta = /[+-]?\d+/, Z02 = /Z|[+-]\d\d:?\d\d/gi, aa = /Z|[+-]\d\d(?::?\d\d)?/gi, tt2 = /[+-]?\d+(\.\d{1,3})?/, i5 = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i, p3;
40840
40850
  p3 = {};
40841
40851
  function J(t, e, r) {
40842
40852
  p3[t] = i0(e) ? e : function(n, h) {
@@ -40904,8 +40914,8 @@ r1("MMMM", 0, 0, function(t) {
40904
40914
  });
40905
40915
  c2("month", "M");
40906
40916
  l2("month", 8);
40907
- J("M", F1);
40908
- J("MM", F1, y2);
40917
+ J("M", E1);
40918
+ J("MM", E1, y2);
40909
40919
  J("MMM", function(t, e) {
40910
40920
  return e.monthsShortRegex(t);
40911
40921
  });
@@ -41013,7 +41023,7 @@ r1(0, ["YYYYYY", 6, !0], 0, "year");
41013
41023
  c2("year", "y");
41014
41024
  l2("year", 1);
41015
41025
  J("Y", ta);
41016
- J("YY", F1, y2);
41026
+ J("YY", E1, y2);
41017
41027
  J("YYYY", D8, W8);
41018
41028
  J("YYYYY", Z3, Q3);
41019
41029
  J("YYYYYY", Z3, Q3);
@@ -41073,10 +41083,10 @@ c2("week", "w");
41073
41083
  c2("isoWeek", "W");
41074
41084
  l2("week", 5);
41075
41085
  l2("isoWeek", 5);
41076
- J("w", F1);
41077
- J("ww", F1, y2);
41078
- J("W", F1);
41079
- J("WW", F1, y2);
41086
+ J("w", E1);
41087
+ J("ww", E1, y2);
41088
+ J("W", E1);
41089
+ J("WW", E1, y2);
41080
41090
  c5(
41081
41091
  ["w", "ww", "W", "WW"],
41082
41092
  function(t, e, r, n) {
@@ -41124,9 +41134,9 @@ c2("isoWeekday", "E");
41124
41134
  l2("day", 11);
41125
41135
  l2("weekday", 11);
41126
41136
  l2("isoWeekday", 11);
41127
- J("d", F1);
41128
- J("e", F1);
41129
- J("E", F1);
41137
+ J("d", E1);
41138
+ J("e", E1);
41139
+ J("E", E1);
41130
41140
  J("dd", function(t, e) {
41131
41141
  return e.weekdaysMinRegex(t);
41132
41142
  });
@@ -41287,12 +41297,12 @@ function ih(t, e) {
41287
41297
  }
41288
41298
  J("a", ih);
41289
41299
  J("A", ih);
41290
- J("H", F1);
41291
- J("h", F1);
41292
- J("k", F1);
41293
- J("HH", F1, y2);
41294
- J("hh", F1, y2);
41295
- J("kk", F1, y2);
41300
+ J("H", E1);
41301
+ J("h", E1);
41302
+ J("k", E1);
41303
+ J("HH", E1, y2);
41304
+ J("hh", E1, y2);
41305
+ J("kk", E1, y2);
41296
41306
  J("hmm", K7);
41297
41307
  J("hmmss", X7);
41298
41308
  J("Hmm", K7);
@@ -41345,7 +41355,7 @@ var ch = {
41345
41355
  weekdaysMin: yt2,
41346
41356
  weekdaysShort: nh,
41347
41357
  meridiemParse: Ut2
41348
- }, N1 = {}, v4 = {}, G4;
41358
+ }, $1 = {}, v4 = {}, G4;
41349
41359
  function Gt2(t, e) {
41350
41360
  var r, n = Math.min(t.length, e.length);
41351
41361
  for (r = 0; r < n; r += 1)
@@ -41374,13 +41384,13 @@ function Xt2(t) {
41374
41384
  }
41375
41385
  function ra(t) {
41376
41386
  var e = null, r;
41377
- if (N1[t] === void 0 && typeof module < "u" && module && module.exports && Xt2(t))
41387
+ if ($1[t] === void 0 && typeof module < "u" && module && module.exports && Xt2(t))
41378
41388
  try {
41379
41389
  e = G4._abbr, r = require, r("./locale/" + t), R0(e);
41380
41390
  } catch {
41381
- N1[t] = null;
41391
+ $1[t] = null;
41382
41392
  }
41383
- return N1[t];
41393
+ return $1[t];
41384
41394
  }
41385
41395
  function R0(t, e) {
41386
41396
  var r;
@@ -41391,14 +41401,14 @@ function R0(t, e) {
41391
41401
  function E8(t, e) {
41392
41402
  if (e !== null) {
41393
41403
  var r, n = ch;
41394
- if (e.abbr = t, N1[t] != null)
41404
+ if (e.abbr = t, $1[t] != null)
41395
41405
  N7(
41396
41406
  "defineLocaleOverride",
41397
41407
  "use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."
41398
- ), n = N1[t]._config;
41408
+ ), n = $1[t]._config;
41399
41409
  else if (e.parentLocale != null)
41400
- if (N1[e.parentLocale] != null)
41401
- n = N1[e.parentLocale]._config;
41410
+ if ($1[e.parentLocale] != null)
41411
+ n = $1[e.parentLocale]._config;
41402
41412
  else if (r = ra(e.parentLocale), r != null)
41403
41413
  n = r._config;
41404
41414
  else
@@ -41406,19 +41416,19 @@ function E8(t, e) {
41406
41416
  name: t,
41407
41417
  config: e
41408
41418
  }), null;
41409
- return N1[t] = new I8(A6(n, e)), v4[t] && v4[t].forEach(function(h) {
41419
+ return $1[t] = new I8(A6(n, e)), v4[t] && v4[t].forEach(function(h) {
41410
41420
  E8(h.name, h.config);
41411
- }), R0(t), N1[t];
41421
+ }), R0(t), $1[t];
41412
41422
  } else
41413
- return delete N1[t], null;
41423
+ return delete $1[t], null;
41414
41424
  }
41415
41425
  function Qt2(t, e) {
41416
41426
  if (e != null) {
41417
41427
  var r, n, h = ch;
41418
- N1[t] != null && N1[t].parentLocale != null ? N1[t].set(A6(N1[t]._config, e)) : (n = ra(t), n != null && (h = n._config), e = A6(h, e), n == null && (e.abbr = t), r = new I8(e), r.parentLocale = N1[t], N1[t] = r), R0(t);
41428
+ $1[t] != null && $1[t].parentLocale != null ? $1[t].set(A6($1[t]._config, e)) : (n = ra(t), n != null && (h = n._config), e = A6(h, e), n == null && (e.abbr = t), r = new I8(e), r.parentLocale = $1[t], $1[t] = r), R0(t);
41419
41429
  } else
41420
- N1[t] != null && (N1[t].parentLocale != null ? (N1[t] = N1[t].parentLocale, t === R0() && R0(t)) : N1[t] != null && delete N1[t]);
41421
- return N1[t];
41430
+ $1[t] != null && ($1[t].parentLocale != null ? ($1[t] = $1[t].parentLocale, t === R0() && R0(t)) : $1[t] != null && delete $1[t]);
41431
+ return $1[t];
41422
41432
  }
41423
41433
  function V0(t) {
41424
41434
  var e;
@@ -41432,7 +41442,7 @@ function V0(t) {
41432
41442
  return Kt2(t);
41433
41443
  }
41434
41444
  function Jt2() {
41435
- return b6(N1);
41445
+ return b6($1);
41436
41446
  }
41437
41447
  function j8(t) {
41438
41448
  var e, r = t._a;
@@ -41616,8 +41626,8 @@ function d42(t) {
41616
41626
  e = t._w, e.GG != null || e.W != null || e.E != null ? (i = 1, c = 4, r = Lt(
41617
41627
  e.GG,
41618
41628
  t._a[h2],
41619
- q4(R1(), 1, 4).year
41620
- ), n = Lt(e.W, 1), h = Lt(e.E, 1), (h < 1 || h > 7) && (o = !0)) : (i = t._locale._week.dow, c = t._locale._week.doy, v = q4(R1(), i, c), r = Lt(e.gg, t._a[h2], v.year), n = Lt(e.w, v.week), e.d != null ? (h = e.d, (h < 0 || h > 6) && (o = !0)) : e.e != null ? (h = e.e + i, (e.e < 0 || e.e > 6) && (o = !0)) : h = i), n < 1 || n > p0(r, i, c) ? v1(t)._overflowWeeks = !0 : o != null ? v1(t)._overflowWeekday = !0 : (l = rh(r, n, h, i, c), t._a[h2] = l.year, t._dayOfYear = l.dayOfYear);
41629
+ q4(F1(), 1, 4).year
41630
+ ), n = Lt(e.W, 1), h = Lt(e.E, 1), (h < 1 || h > 7) && (o = !0)) : (i = t._locale._week.dow, c = t._locale._week.doy, v = q4(F1(), i, c), r = Lt(e.gg, t._a[h2], v.year), n = Lt(e.w, v.week), e.d != null ? (h = e.d, (h < 0 || h > 6) && (o = !0)) : e.e != null ? (h = e.e + i, (e.e < 0 || e.e > 6) && (o = !0)) : h = i), n < 1 || n > p0(r, i, c) ? v1(t)._overflowWeeks = !0 : o != null ? v1(t)._overflowWeekday = !0 : (l = rh(r, n, h, i, c), t._a[h2] = l.year, t._dayOfYear = l.dayOfYear);
41621
41631
  }
41622
41632
  X.ISO_8601 = function() {
41623
41633
  };
@@ -41687,26 +41697,26 @@ function sh(t, e, r, n, h) {
41687
41697
  var i = {};
41688
41698
  return (e === !0 || e === !1) && (n = e, e = void 0), (r === !0 || r === !1) && (n = r, r = void 0), (ht(t) && S8(t) || U2(t) && t.length === 0) && (t = void 0), i._isAMomentObject = !0, i._useUTC = i._isUTC = h, i._l = r, i._i = t, i._f = e, i._strict = n, M42(i);
41689
41699
  }
41690
- function R1(t, e, r, n) {
41700
+ function F1(t, e, r, n) {
41691
41701
  return sh(t, e, r, n, !1);
41692
41702
  }
41693
41703
  var p42 = R2(
41694
41704
  "moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",
41695
41705
  function() {
41696
- var t = R1.apply(null, arguments);
41706
+ var t = F1.apply(null, arguments);
41697
41707
  return this.isValid() && t.isValid() ? t < this ? this : t : K3();
41698
41708
  }
41699
41709
  ), H42 = R2(
41700
41710
  "moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",
41701
41711
  function() {
41702
- var t = R1.apply(null, arguments);
41712
+ var t = F1.apply(null, arguments);
41703
41713
  return this.isValid() && t.isValid() ? t > this ? this : t : K3();
41704
41714
  }
41705
41715
  );
41706
41716
  function dh(t, e) {
41707
41717
  var r, n;
41708
41718
  if (e.length === 1 && U2(e[0]) && (e = e[0]), !e.length)
41709
- return R1();
41719
+ return F1();
41710
41720
  for (r = e[0], n = 1; n < e.length; ++n)
41711
41721
  (!e[n].isValid() || e[n][t](r)) && (r = e[n]);
41712
41722
  return r;
@@ -41789,7 +41799,7 @@ function U8(t, e) {
41789
41799
  }
41790
41800
  function Y8(t, e) {
41791
41801
  var r, n;
41792
- return e._isUTC ? (r = e.clone(), n = (Y2(t) || n5(t) ? t.valueOf() : R1(t).valueOf()) - r.valueOf(), r._d.setTime(r._d.valueOf() + n), X.updateOffset(r, !1), r) : R1(t).local();
41802
+ return e._isUTC ? (r = e.clone(), n = (Y2(t) || n5(t) ? t.valueOf() : F1(t).valueOf()) - r.valueOf(), r._d.setTime(r._d.valueOf() + n), X.updateOffset(r, !1), r) : F1(t).local();
41793
41803
  }
41794
41804
  function P6(t) {
41795
41805
  return -Math.round(t._d.getTimezoneOffset());
@@ -41834,7 +41844,7 @@ function b42() {
41834
41844
  return this;
41835
41845
  }
41836
41846
  function I42(t) {
41837
- return this.isValid() ? (t = t ? R1(t).utcOffset() : 0, (this.utcOffset() - t) % 60 === 0) : !1;
41847
+ return this.isValid() ? (t = t ? F1(t).utcOffset() : 0, (this.utcOffset() - t) % 60 === 0) : !1;
41838
41848
  }
41839
41849
  function _42() {
41840
41850
  return this.utcOffset() > this.clone().month(0).utcOffset() || this.utcOffset() > this.clone().month(5).utcOffset();
@@ -41843,7 +41853,7 @@ function P42() {
41843
41853
  if (!f2(this._isDSTShifted))
41844
41854
  return this._isDSTShifted;
41845
41855
  var t = {}, e;
41846
- return b8(t, this), t = vh(t), t._a ? (e = t._isUTC ? h0(t._a) : R1(t._a), this._isDSTShifted = this.isValid() && C42(t._a, e.toArray()) > 0) : this._isDSTShifted = !1, this._isDSTShifted;
41856
+ return b8(t, this), t = vh(t), t._a ? (e = t._isUTC ? h0(t._a) : F1(t._a), this._isDSTShifted = this.isValid() && C42(t._a, e.toArray()) > 0) : this._isDSTShifted = !1, this._isDSTShifted;
41847
41857
  }
41848
41858
  function W42() {
41849
41859
  return this.isValid() ? !this._isUTC : !1;
@@ -41878,8 +41888,8 @@ function q2(t, e) {
41878
41888
  m: J0(n[7], h),
41879
41889
  s: J0(n[8], h)
41880
41890
  }) : r == null ? r = {} : typeof r == "object" && ("from" in r || "to" in r) && (c = F42(
41881
- R1(r.from),
41882
- R1(r.to)
41891
+ F1(r.from),
41892
+ F1(r.to)
41883
41893
  ), r = {}, r.ms = c.milliseconds, r.M = c.months), i = new na(r), X5(t) && x1(t, "_locale") && (i._locale = t._locale), X5(t) && x1(t, "_isValid") && (i._isValid = t._isValid), i;
41884
41894
  }
41885
41895
  q2.fn = na.prototype;
@@ -41972,28 +41982,28 @@ function q42(t, e) {
41972
41982
  }
41973
41983
  function G42(t, e) {
41974
41984
  arguments.length === 1 && (arguments[0] ? N42(arguments[0]) ? (t = arguments[0], e = void 0) : Y42(arguments[0]) && (e = arguments[0], t = void 0) : (t = void 0, e = void 0));
41975
- var r = t || R1(), n = Y8(r, this).startOf("day"), h = X.calendarFormat(this, n) || "sameElse", i = e && (i0(e[h]) ? e[h].call(this, r) : e[h]);
41985
+ var r = t || F1(), n = Y8(r, this).startOf("day"), h = X.calendarFormat(this, n) || "sameElse", i = e && (i0(e[h]) ? e[h].call(this, r) : e[h]);
41976
41986
  return this.format(
41977
- i || this.localeData().calendar(h, this, R1(r))
41987
+ i || this.localeData().calendar(h, this, F1(r))
41978
41988
  );
41979
41989
  }
41980
41990
  function K42() {
41981
41991
  return new h5(this);
41982
41992
  }
41983
41993
  function X42(t, e) {
41984
- var r = Y2(t) ? t : R1(t);
41994
+ var r = Y2(t) ? t : F1(t);
41985
41995
  return this.isValid() && r.isValid() ? (e = F2(e) || "millisecond", e === "millisecond" ? this.valueOf() > r.valueOf() : r.valueOf() < this.clone().startOf(e).valueOf()) : !1;
41986
41996
  }
41987
41997
  function Q42(t, e) {
41988
- var r = Y2(t) ? t : R1(t);
41998
+ var r = Y2(t) ? t : F1(t);
41989
41999
  return this.isValid() && r.isValid() ? (e = F2(e) || "millisecond", e === "millisecond" ? this.valueOf() < r.valueOf() : this.clone().endOf(e).valueOf() < r.valueOf()) : !1;
41990
42000
  }
41991
42001
  function J42(t, e, r, n) {
41992
- var h = Y2(t) ? t : R1(t), i = Y2(e) ? e : R1(e);
42002
+ var h = Y2(t) ? t : F1(t), i = Y2(e) ? e : F1(e);
41993
42003
  return this.isValid() && h.isValid() && i.isValid() ? (n = n || "()", (n[0] === "(" ? this.isAfter(h, r) : !this.isBefore(h, r)) && (n[1] === ")" ? this.isBefore(i, r) : !this.isAfter(i, r))) : !1;
41994
42004
  }
41995
42005
  function Z42(t, e) {
41996
- var r = Y2(t) ? t : R1(t), n;
42006
+ var r = Y2(t) ? t : F1(t), n;
41997
42007
  return this.isValid() && r.isValid() ? (e = F2(e) || "millisecond", e === "millisecond" ? this.valueOf() === r.valueOf() : (n = r.valueOf(), this.clone().startOf(e).valueOf() <= n && n <= this.clone().endOf(e).valueOf())) : !1;
41998
42008
  }
41999
42009
  function t52(t, e) {
@@ -42073,16 +42083,16 @@ function i52(t) {
42073
42083
  return this.localeData().postformat(e);
42074
42084
  }
42075
42085
  function c52(t, e) {
42076
- return this.isValid() && (Y2(t) && t.isValid() || R1(t).isValid()) ? q2({ to: this, from: t }).locale(this.locale()).humanize(!e) : this.localeData().invalidDate();
42086
+ return this.isValid() && (Y2(t) && t.isValid() || F1(t).isValid()) ? q2({ to: this, from: t }).locale(this.locale()).humanize(!e) : this.localeData().invalidDate();
42077
42087
  }
42078
42088
  function l52(t) {
42079
- return this.from(R1(), t);
42089
+ return this.from(F1(), t);
42080
42090
  }
42081
42091
  function o52(t, e) {
42082
- return this.isValid() && (Y2(t) && t.isValid() || R1(t).isValid()) ? q2({ from: this, to: t }).locale(this.locale()).humanize(!e) : this.localeData().invalidDate();
42092
+ return this.isValid() && (Y2(t) && t.isValid() || F1(t).isValid()) ? q2({ from: this, to: t }).locale(this.locale()).humanize(!e) : this.localeData().invalidDate();
42083
42093
  }
42084
42094
  function v52(t) {
42085
- return this.to(R1(), t);
42095
+ return this.to(F1(), t);
42086
42096
  }
42087
42097
  function ph(t) {
42088
42098
  var e;
@@ -42417,8 +42427,8 @@ l2("weekYear", 1);
42417
42427
  l2("isoWeekYear", 1);
42418
42428
  J("G", ta);
42419
42429
  J("g", ta);
42420
- J("GG", F1, y2);
42421
- J("gg", F1, y2);
42430
+ J("GG", E1, y2);
42431
+ J("gg", E1, y2);
42422
42432
  J("GGGG", D8, W8);
42423
42433
  J("gggg", D8, W8);
42424
42434
  J("GGGGG", Z3, Q3);
@@ -42487,14 +42497,14 @@ function N52(t) {
42487
42497
  r1("D", ["DD", 2], "Do", "date");
42488
42498
  c2("date", "D");
42489
42499
  l2("date", 9);
42490
- J("D", F1);
42491
- J("DD", F1, y2);
42500
+ J("D", E1);
42501
+ J("DD", E1, y2);
42492
42502
  J("Do", function(t, e) {
42493
42503
  return t ? e._dayOfMonthOrdinalParse || e._ordinalParse : e._dayOfMonthOrdinalParseLenient;
42494
42504
  });
42495
42505
  b1(["D", "DD"], Z2);
42496
42506
  b1("Do", function(t, e) {
42497
- e[Z2] = g1(t.match(F1)[0]);
42507
+ e[Z2] = g1(t.match(E1)[0]);
42498
42508
  });
42499
42509
  var Bh = qt("Date", !0);
42500
42510
  r1("DDD", ["DDDD", 3], "DDDo", "dayOfYear");
@@ -42514,15 +42524,15 @@ function $52(t) {
42514
42524
  r1("m", ["mm", 2], 0, "minute");
42515
42525
  c2("minute", "m");
42516
42526
  l2("minute", 14);
42517
- J("m", F1);
42518
- J("mm", F1, y2);
42527
+ J("m", E1);
42528
+ J("mm", E1, y2);
42519
42529
  b1(["m", "mm"], $2);
42520
42530
  var U52 = qt("Minutes", !1);
42521
42531
  r1("s", ["ss", 2], 0, "second");
42522
42532
  c2("second", "s");
42523
42533
  l2("second", 15);
42524
- J("s", F1);
42525
- J("ss", F1, y2);
42534
+ J("s", E1);
42535
+ J("ss", E1, y2);
42526
42536
  b1(["s", "ss"], M0);
42527
42537
  var Y52 = qt("Seconds", !1);
42528
42538
  r1("S", 0, 0, function() {
@@ -42673,10 +42683,10 @@ Y.isDSTShifted = R2(
42673
42683
  P42
42674
42684
  );
42675
42685
  function X52(t) {
42676
- return R1(t * 1e3);
42686
+ return F1(t * 1e3);
42677
42687
  }
42678
42688
  function Q52() {
42679
- return R1.apply(null, arguments).parseZone();
42689
+ return F1.apply(null, arguments).parseZone();
42680
42690
  }
42681
42691
  function kh(t) {
42682
42692
  return t;
@@ -42961,7 +42971,7 @@ b1("x", function(t, e, r) {
42961
42971
  });
42962
42972
  //! moment.js
42963
42973
  X.version = "2.29.4";
42964
- I02(R1);
42974
+ I02(F1);
42965
42975
  X.fn = Y;
42966
42976
  X.min = m42;
42967
42977
  X.max = V42;
package/dist/index.umd.js CHANGED
@@ -211,7 +211,7 @@ React keys must be passed directly to JSX without using spread:
211
211
  height: 8px;
212
212
  border-radius: 50%;
213
213
  background: ${({$active:t})=>t?"#ffffff99":"#ffffff33"};
214
- `,hK1=Math.min(window.innerWidth,0,960),iK1=Math.min(window.innerHeight,0,960);function cK1(t){const[e,r]=_.useState(!1),{cursor:n,width:h,height:i,v:c,c:l,p:o,o:v,...s}=t;_.useEffect(()=>{let p=null;return t.carouselState.dragging===!1&&e==!0?p=setTimeout(()=>{t.carouselState.dragging!=e&&r(t.carouselState.dragging)},2e3):r(t.carouselState.dragging),()=>{p&&clearTimeout(p)}},[t.carouselState.dragging,e]);let d=-Math.round(n)%l;for(;d<0;)d+=l;const z=l>1?c?0:(n+1)*h+(hK1-h)+n*o:0,M=l>1&&c?(n+1)*i+(iK1-i)+n*o:0,H=l>1?{transform:`translate3d(${z}px, ${M}px, 0)`}:{};return N.jsxs(tK1,{"aria-label":"carousel-container",$vertical:c,$width:h,$height:i,$overflow:v,children:[N.jsx(aK1,{$vertical:c,$width:h,$height:i,style:H,...s}),N.jsx(eK1,{"aria-label":"pager-container",$vertical:c,$width:h,$height:i,$padding:o,$dragging:e,children:N.jsx(rK1,{"aria-label":"pager",$vertical:c,$count:l,children:[...new Array(l).keys()].map((p,m)=>N.jsx(nK1,{"aria-label":"pager-item",$active:d===m},m))})})]})}const lK1={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend",blur:"touchcancel"},oK1=(t,e,r,n)=>Math.sqrt(Math.pow(r-t,2)+Math.pow(n-e,2));function vK1(t,e={}){const r=e.clickTolerance||5;class n extends _.Component{constructor(c){super(c);t1(this,"isMouseDown");t1(this,"mouseDownId");t1(this,"mouseTouchId",0);t1(this,"lastMoveEvent");t1(this,"clickStartX");t1(this,"clickStartY");t1(this,"mockTouchEvent",(c,l={})=>({changedTouches:l.changedTouches||[{identifier:this.mouseTouchId,pageX:c.pageX,pageY:c.pageY}],type:lK1[c.type]||c.type,preventDefault:c.preventDefault.bind(c),stopPropagation:c.stopPropagation.bind(c)}));t1(this,"onMouseDown",c=>{this.props.onMouseDown&&this.props.onMouseDown(c),this.isMouseDown=!0,this.mouseDownId++,this.clickStartX=c.pageX,this.clickStartY=c.pageY,this.props.onTouchStart&&this.props.onTouchStart(this.mockTouchEvent(c))});t1(this,"onDocumentMouseMove",c=>{this.isMouseDown&&(this.lastMoveEvent=this.mockTouchEvent(c),this.props.onTouchMove&&this.props.onTouchMove(this.lastMoveEvent))});t1(this,"onDocumentMouseUp",c=>{this.isMouseDown&&(this.isMouseDown=!1,this.props.onTouchEnd&&this.props.onTouchEnd(this.mockTouchEvent(c)),setTimeout(()=>{this.clickStartX=null,this.clickStartY=null},0))});t1(this,"onWindowBlur",c=>{if(!this.isMouseDown)return;this.isMouseDown=!1,this.clickStartX=null,this.clickStartY=null;const l=this.mockTouchEvent(c,{changedTouches:this.lastMoveEvent.changedTouches});this.props.onTouchCancel&&this.props.onTouchCancel(l)});t1(this,"onDocumentClick",c=>{this.clickStartX!==null&&this.clickStartY!==null&&oK1(this.clickStartX,this.clickStartY,c.pageX,c.pageY)>r&&(this.clickStartX=null,this.clickStartY=null,c.preventDefault(),c.stopPropagation())});this.isMouseDown=!1,this.mouseDownId=0,this.lastMoveEvent=null,this.clickStartX=null,this.clickStartY=null}componentDidMount(){document.addEventListener("mousemove",this.onDocumentMouseMove),document.addEventListener("mouseup",this.onDocumentMouseUp),document.addEventListener("click",this.onDocumentClick,!0),window.addEventListener("blur",this.onWindowBlur)}componentWillUnmount(){document.removeEventListener("mousemove",this.onDocumentMouseMove),document.removeEventListener("mouseup",this.onDocumentMouseUp),document.removeEventListener("click",this.onDocumentClick,!0),window.removeEventListener("blur",this.onWindowBlur)}render(){const{onMouseDown:c,...l}=this.props;return N.jsx(t,{...l,onMouseDown:this.onMouseDown})}}return n}const ve=({vertical:t=!1,autoplay:e=0,width:r,height:n,padding:h=0,overflow:i=!0,elements:c=[N.jsx("div",{})],activeIndex:l})=>{const o=_.useRef(),v=_.useRef(),[s,d]=_.useState({width:0,height:0});_.useEffect(()=>{l!==void 0&&v.current&&v.current.go(-l)},[l]),_.useLayoutEffect(()=>{o.current&&d({width:o.current.offsetWidth,height:o.current.offsetHeight})},[r,n]);const z=vK1(cK1),M=c.length;h=Math.max(0,h);function H(p,m){const L=c[m];return N.jsx(ZG1,{"data-index":p,"data-mod-index":m,$vertical:t,$width:s.width,$height:s.height,$padding:h,"aria-label":"carousel-item",children:L},p)}return N.jsx(JG1,{ref:o,$width:r,$height:n,"aria-label":"carousel",children:N.jsx(QG1,{ref:v,component:z,cardSize:s.width,cardCount:M,cardPadCount:h,autoplay:M>1?e*1e3:0,loop:!1,vertical:t,renderCard:H,width:s.width,height:s.height,v:t,c:M,p:h,o:i})})},sK1=s1.div`
214
+ `,hK1=Math.min(window.innerWidth,0,960),iK1=Math.min(window.innerHeight,0,960);function cK1(t){const[e,r]=_.useState(!1),{cursor:n,width:h,height:i,v:c,c:l,p:o,o:v,...s}=t;_.useEffect(()=>{let p=null;return t.carouselState.dragging===!1&&e==!0?p=setTimeout(()=>{t.carouselState.dragging!=e&&r(t.carouselState.dragging)},2e3):r(t.carouselState.dragging),()=>{p&&clearTimeout(p)}},[t.carouselState.dragging,e]);let d=-Math.round(n)%l;for(;d<0;)d+=l;const z=l>1?c?0:(n+1)*h+(hK1-h)+n*o:0,M=l>1&&c?(n+1)*i+(iK1-i)+n*o:0,H=l>1?{transform:`translate3d(${z}px, ${M}px, 0)`}:{};return N.jsxs(tK1,{"aria-label":"carousel-container",$vertical:c,$width:h,$height:i,$overflow:v,children:[N.jsx(aK1,{$vertical:c,$width:h,$height:i,style:H,...s}),N.jsx(eK1,{"aria-label":"pager-container",$vertical:c,$width:h,$height:i,$padding:o,$dragging:e,children:N.jsx(rK1,{"aria-label":"pager",$vertical:c,$count:l,children:[...new Array(l).keys()].map((p,m)=>N.jsx(nK1,{"aria-label":"pager-item",$active:d===m},m))})})]})}const lK1={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend",blur:"touchcancel"},oK1=(t,e,r,n)=>Math.sqrt(Math.pow(r-t,2)+Math.pow(n-e,2));function vK1(t,e={}){const r=e.clickTolerance||5;class n extends _.Component{constructor(c){super(c);t1(this,"isMouseDown");t1(this,"mouseDownId");t1(this,"mouseTouchId",0);t1(this,"lastMoveEvent");t1(this,"clickStartX");t1(this,"clickStartY");t1(this,"mockTouchEvent",(c,l={})=>({changedTouches:l.changedTouches||[{identifier:this.mouseTouchId,pageX:c.pageX,pageY:c.pageY}],type:lK1[c.type]||c.type,preventDefault:c.preventDefault.bind(c),stopPropagation:c.stopPropagation.bind(c)}));t1(this,"onMouseDown",c=>{this.props.onMouseDown&&this.props.onMouseDown(c),this.isMouseDown=!0,this.mouseDownId++,this.clickStartX=c.pageX,this.clickStartY=c.pageY,this.props.onTouchStart&&this.props.onTouchStart(this.mockTouchEvent(c))});t1(this,"onDocumentMouseMove",c=>{this.isMouseDown&&(this.lastMoveEvent=this.mockTouchEvent(c),this.props.onTouchMove&&this.props.onTouchMove(this.lastMoveEvent))});t1(this,"onDocumentMouseUp",c=>{this.isMouseDown&&(this.isMouseDown=!1,this.props.onTouchEnd&&this.props.onTouchEnd(this.mockTouchEvent(c)),setTimeout(()=>{this.clickStartX=null,this.clickStartY=null},0))});t1(this,"onWindowBlur",c=>{if(!this.isMouseDown)return;this.isMouseDown=!1,this.clickStartX=null,this.clickStartY=null;const l=this.mockTouchEvent(c,{changedTouches:this.lastMoveEvent.changedTouches});this.props.onTouchCancel&&this.props.onTouchCancel(l)});t1(this,"onDocumentClick",c=>{this.clickStartX!==null&&this.clickStartY!==null&&oK1(this.clickStartX,this.clickStartY,c.pageX,c.pageY)>r&&(this.clickStartX=null,this.clickStartY=null,c.preventDefault(),c.stopPropagation())});this.isMouseDown=!1,this.mouseDownId=0,this.lastMoveEvent=null,this.clickStartX=null,this.clickStartY=null}componentDidMount(){document.addEventListener("mousemove",this.onDocumentMouseMove),document.addEventListener("mouseup",this.onDocumentMouseUp),document.addEventListener("click",this.onDocumentClick,!0),window.addEventListener("blur",this.onWindowBlur)}componentWillUnmount(){document.removeEventListener("mousemove",this.onDocumentMouseMove),document.removeEventListener("mouseup",this.onDocumentMouseUp),document.removeEventListener("click",this.onDocumentClick,!0),window.removeEventListener("blur",this.onWindowBlur)}render(){const{onMouseDown:c,...l}=this.props;return N.jsx(t,{...l,onMouseDown:this.onMouseDown})}}return n}const ve=({vertical:t=!1,autoplay:e=0,width:r,height:n,padding:h=0,overflow:i=!0,elements:c=[N.jsx("div",{})],activeIndex:l})=>{const o=_.useRef(),v=_.useRef(),[s,d]=_.useState({width:0,height:0});_.useEffect(()=>{l!==void 0&&v.current&&v.current.go(-l)},[l]),_.useLayoutEffect(()=>{o.current&&d({width:o.current.offsetWidth,height:o.current.offsetHeight})},[r,n]);const z=c.length;_.useEffect(()=>{if(!e||z<=1)return;const p=setInterval(()=>{var m;(m=v.current)==null||m.next()},e*1e3);return()=>clearInterval(p)},[e,z]);const M=vK1(cK1);h=Math.max(0,h);function H(p,m){const L=c[m];return N.jsx(ZG1,{"data-index":p,"data-mod-index":m,$vertical:t,$width:s.width,$height:s.height,$padding:h,"aria-label":"carousel-item",children:L},p)}return N.jsx(JG1,{ref:o,$width:r,$height:n,"aria-label":"carousel",children:N.jsx(QG1,{ref:v,component:M,cardSize:s.width,cardCount:z,cardPadCount:z,autoplay:0,loop:!0,vertical:t,renderCard:H,width:s.width,height:s.height,v:t,c:z,p:h,o:i})})},sK1=s1.div`
215
215
  overflow-y: ${({$vscroll:t})=>l5(t)};
216
216
  overflow-x: ${({$hscroll:t})=>l5(t)};
217
217
  height: 100%;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@appkit/dek-ui",
3
3
  "private": false,
4
- "version": "0.52.0",
4
+ "version": "0.53.0",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "build": "tsc && vite build",