@mdspl/mds-shared-ui 0.3.7 → 0.3.9

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.js CHANGED
@@ -1,4 +1,4 @@
1
- import ne, { useLayoutEffect as go, useEffect as W, useRef as U, useMemo as B, useCallback as le, useState as oe, createContext as vt, memo as po, useReducer as vo, useContext as Ve, forwardRef as wn, createElement as hn } from "react";
1
+ import ne, { useLayoutEffect as go, useEffect as V, useRef as U, useMemo as B, useCallback as le, useState as oe, createContext as vt, memo as po, useReducer as vo, useContext as Ve, forwardRef as wn, createElement as hn } from "react";
2
2
  import { Menu as Oe, Checkbox as De, IconButton as _e, Portal as Qe, Table as Ee, HStack as fe, createListCollection as Dr, Select as K, Pagination as Nt, Box as je, Text as q, ButtonGroup as mo, Popover as Wt, InputGroup as Cr, InputElement as Fn, PopoverArrow as bo, VStack as ke, Kbd as Hn, Input as Sn, Field as We, Slider as mt, Drawer as Me, Tabs as Bt, Button as Ke, CloseButton as Rr, Dialog as Ae, Stack as gn } from "@chakra-ui/react";
3
3
  import { unstable_batchedUpdates as Ct, createPortal as xo } from "react-dom";
4
4
  function Ut(e) {
@@ -39,7 +39,7 @@ function wo() {
39
39
  switch (p) {
40
40
  case b:
41
41
  return "Fragment";
42
- case R:
42
+ case E:
43
43
  return "Profiler";
44
44
  case x:
45
45
  return "StrictMode";
@@ -58,14 +58,14 @@ function wo() {
58
58
  return "Portal";
59
59
  case T:
60
60
  return p.displayName || "Context";
61
- case j:
61
+ case R:
62
62
  return (p._context.displayName || "Context") + ".Consumer";
63
63
  case O:
64
64
  var S = p.render;
65
65
  return p = p.displayName, p || (p = S.displayName || S.name || "", p = p !== "" ? "ForwardRef(" + p + ")" : "ForwardRef"), p;
66
66
  case N:
67
67
  return S = p.displayName || null, S !== null ? S : e(p.type) || "Memo";
68
- case V:
68
+ case W:
69
69
  S = p._payload, p = p._init;
70
70
  try {
71
71
  return e(p(S));
@@ -96,7 +96,7 @@ function wo() {
96
96
  }
97
97
  function r(p) {
98
98
  if (p === b) return "<>";
99
- if (typeof p == "object" && p !== null && p.$$typeof === V)
99
+ if (typeof p == "object" && p !== null && p.$$typeof === W)
100
100
  return "<...>";
101
101
  try {
102
102
  var S = e(p);
@@ -133,7 +133,7 @@ function wo() {
133
133
  }
134
134
  function u() {
135
135
  var p = e(this.type);
136
- return E[p] || (E[p] = !0, console.error(
136
+ return j[p] || (j[p] = !0, console.error(
137
137
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
138
138
  )), p = this.props.ref, p !== void 0 ? p : null;
139
139
  }
@@ -219,12 +219,12 @@ React keys must be passed directly to JSX without using spread:
219
219
  );
220
220
  }
221
221
  function d(p) {
222
- m(p) ? p._store && (p._store.validated = 1) : typeof p == "object" && p !== null && p.$$typeof === V && (p._payload.status === "fulfilled" ? m(p._payload.value) && p._payload.value._store && (p._payload.value._store.validated = 1) : p._store && (p._store.validated = 1));
222
+ m(p) ? p._store && (p._store.validated = 1) : typeof p == "object" && p !== null && p.$$typeof === W && (p._payload.status === "fulfilled" ? m(p._payload.value) && p._payload.value._store && (p._payload.value._store.validated = 1) : p._store && (p._store.validated = 1));
223
223
  }
224
224
  function m(p) {
225
225
  return typeof p == "object" && p !== null && p.$$typeof === v;
226
226
  }
227
- var g = ne, v = /* @__PURE__ */ Symbol.for("react.transitional.element"), f = /* @__PURE__ */ Symbol.for("react.portal"), b = /* @__PURE__ */ Symbol.for("react.fragment"), x = /* @__PURE__ */ Symbol.for("react.strict_mode"), R = /* @__PURE__ */ Symbol.for("react.profiler"), j = /* @__PURE__ */ Symbol.for("react.consumer"), T = /* @__PURE__ */ Symbol.for("react.context"), O = /* @__PURE__ */ Symbol.for("react.forward_ref"), _ = /* @__PURE__ */ Symbol.for("react.suspense"), $ = /* @__PURE__ */ Symbol.for("react.suspense_list"), N = /* @__PURE__ */ Symbol.for("react.memo"), V = /* @__PURE__ */ Symbol.for("react.lazy"), Y = /* @__PURE__ */ Symbol.for("react.activity"), I = /* @__PURE__ */ Symbol.for("react.client.reference"), Q = g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, se = Object.prototype.hasOwnProperty, M = Array.isArray, D = console.createTask ? console.createTask : function() {
227
+ var g = ne, v = /* @__PURE__ */ Symbol.for("react.transitional.element"), f = /* @__PURE__ */ Symbol.for("react.portal"), b = /* @__PURE__ */ Symbol.for("react.fragment"), x = /* @__PURE__ */ Symbol.for("react.strict_mode"), E = /* @__PURE__ */ Symbol.for("react.profiler"), R = /* @__PURE__ */ Symbol.for("react.consumer"), T = /* @__PURE__ */ Symbol.for("react.context"), O = /* @__PURE__ */ Symbol.for("react.forward_ref"), _ = /* @__PURE__ */ Symbol.for("react.suspense"), $ = /* @__PURE__ */ Symbol.for("react.suspense_list"), N = /* @__PURE__ */ Symbol.for("react.memo"), W = /* @__PURE__ */ Symbol.for("react.lazy"), Y = /* @__PURE__ */ Symbol.for("react.activity"), I = /* @__PURE__ */ Symbol.for("react.client.reference"), Q = g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, se = Object.prototype.hasOwnProperty, M = Array.isArray, D = console.createTask ? console.createTask : function() {
228
228
  return null;
229
229
  };
230
230
  g = {
@@ -232,7 +232,7 @@ React keys must be passed directly to JSX without using spread:
232
232
  return p();
233
233
  }
234
234
  };
235
- var w, E = {}, C = g.react_stack_bottom_frame.bind(
235
+ var w, j = {}, C = g.react_stack_bottom_frame.bind(
236
236
  g,
237
237
  s
238
238
  )(), k = D(r(s)), L = {};
@@ -326,16 +326,16 @@ function Co() {
326
326
  b = a({
327
327
  inst: { value: f, getSnapshot: v }
328
328
  });
329
- var x = b[0].inst, R = b[1];
329
+ var x = b[0].inst, E = b[1];
330
330
  return u(
331
331
  function() {
332
- x.value = f, x.getSnapshot = v, n(x) && R({ inst: x });
332
+ x.value = f, x.getSnapshot = v, n(x) && E({ inst: x });
333
333
  },
334
334
  [g, f, v]
335
335
  ), c(
336
336
  function() {
337
- return n(x) && R({ inst: x }), g(function() {
338
- n(x) && R({ inst: x });
337
+ return n(x) && E({ inst: x }), g(function() {
338
+ n(x) && E({ inst: x });
339
339
  });
340
340
  },
341
341
  [g]
@@ -381,19 +381,19 @@ function Ro() {
381
381
  v = c(
382
382
  function() {
383
383
  function x(_) {
384
- if (!R) {
385
- if (R = !0, j = _, _ = m(_), g !== void 0 && f.hasValue) {
384
+ if (!E) {
385
+ if (E = !0, R = _, _ = m(_), g !== void 0 && f.hasValue) {
386
386
  var $ = f.value;
387
387
  if (g($, _))
388
388
  return T = $;
389
389
  }
390
390
  return T = _;
391
391
  }
392
- if ($ = T, r(j, _)) return $;
392
+ if ($ = T, r(R, _)) return $;
393
393
  var N = m(_);
394
- return g !== void 0 && g($, N) ? (j = _, $) : (j = _, T = N);
394
+ return g !== void 0 && g($, N) ? (R = _, $) : (R = _, T = N);
395
395
  }
396
- var R = !1, j, T, O = d === void 0 ? null : d;
396
+ var E = !1, R, T, O = d === void 0 ? null : d;
397
397
  return [
398
398
  function() {
399
399
  return x(h());
@@ -432,20 +432,20 @@ function jo() {
432
432
  v = c(
433
433
  function() {
434
434
  function x(_) {
435
- if (!R) {
436
- if (R = !0, j = _, _ = m(_), g !== void 0 && f.hasValue) {
435
+ if (!E) {
436
+ if (E = !0, R = _, _ = m(_), g !== void 0 && f.hasValue) {
437
437
  var $ = f.value;
438
438
  if (g($, _))
439
439
  return T = $;
440
440
  }
441
441
  return T = _;
442
442
  }
443
- if ($ = T, r(j, _))
443
+ if ($ = T, r(R, _))
444
444
  return $;
445
445
  var N = m(_);
446
- return g !== void 0 && g($, N) ? (j = _, $) : (j = _, T = N);
446
+ return g !== void 0 && g($, N) ? (R = _, $) : (R = _, T = N);
447
447
  }
448
- var R = !1, j, T, O = d === void 0 ? null : d;
448
+ var E = !1, R, T, O = d === void 0 ? null : d;
449
449
  return [
450
450
  function() {
451
451
  return x(h());
@@ -631,7 +631,7 @@ function Tr(e) {
631
631
  function tt(e) {
632
632
  return e ? et(e) ? e.document : Dn(e) ? Cn(e) ? e : xt(e) || Tr(e) ? e.ownerDocument : document : document : document;
633
633
  }
634
- const Te = Gt ? go : W;
634
+ const Te = Gt ? go : V;
635
635
  function Rn(e) {
636
636
  const t = U(e);
637
637
  return Te(() => {
@@ -680,7 +680,7 @@ function Pt(e) {
680
680
  }
681
681
  function vn(e) {
682
682
  const t = U();
683
- return W(() => {
683
+ return V(() => {
684
684
  t.current = e;
685
685
  }, [e]), t.current;
686
686
  }
@@ -852,7 +852,7 @@ function Vo() {
852
852
  const Mr = /* @__PURE__ */ vt(null);
853
853
  function Wo(e) {
854
854
  const t = Ve(Mr);
855
- W(() => {
855
+ V(() => {
856
856
  if (!t)
857
857
  throw new Error("useDndMonitor must be used within a children of <DndContext>");
858
858
  return t(e);
@@ -916,7 +916,7 @@ function Xo(e) {
916
916
  announce: s,
917
917
  announcement: a
918
918
  } = Vo(), c = wt("DndLiveRegion"), [u, l] = oe(!1);
919
- if (W(() => {
919
+ if (V(() => {
920
920
  l(!0);
921
921
  }, []), Wo(B(() => ({
922
922
  onDragStart(d) {
@@ -1529,16 +1529,16 @@ class Fr {
1529
1529
  for (const f of v) {
1530
1530
  const b = t.code, {
1531
1531
  isTop: x,
1532
- isRight: R,
1533
- isLeft: j,
1532
+ isRight: E,
1533
+ isLeft: R,
1534
1534
  isBottom: T,
1535
1535
  maxScroll: O,
1536
1536
  minScroll: _
1537
1537
  } = zr(f), $ = gs(f), N = {
1538
1538
  x: Math.min(b === H.Right ? $.right - $.width / 2 : $.right, Math.max(b === H.Right ? $.left : $.left + $.width / 2, d.x)),
1539
1539
  y: Math.min(b === H.Down ? $.bottom - $.height / 2 : $.bottom, Math.max(b === H.Down ? $.top : $.top + $.height / 2, d.y))
1540
- }, V = b === H.Right && !R || b === H.Left && !j, Y = b === H.Down && !T || b === H.Up && !x;
1541
- if (V && N.x !== d.x) {
1540
+ }, W = b === H.Right && !E || b === H.Left && !R, Y = b === H.Down && !T || b === H.Up && !x;
1541
+ if (W && N.x !== d.x) {
1542
1542
  const I = f.scrollLeft + m.x, Q = b === H.Right && I <= O.x || b === H.Left && I >= _.x;
1543
1543
  if (Q && !m.y) {
1544
1544
  f.scrollTo({
@@ -1869,7 +1869,7 @@ function js(e) {
1869
1869
  }), x = U({
1870
1870
  x: 0,
1871
1871
  y: 0
1872
- }), R = B(() => {
1872
+ }), E = B(() => {
1873
1873
  switch (n) {
1874
1874
  case ft.Pointer:
1875
1875
  return u ? {
@@ -1881,16 +1881,16 @@ function js(e) {
1881
1881
  case ft.DraggableRect:
1882
1882
  return o;
1883
1883
  }
1884
- }, [n, o, u]), j = U(null), T = le(() => {
1885
- const _ = j.current;
1884
+ }, [n, o, u]), R = U(null), T = le(() => {
1885
+ const _ = R.current;
1886
1886
  if (!_)
1887
1887
  return;
1888
1888
  const $ = b.current.x * x.current.x, N = b.current.y * x.current.y;
1889
1889
  _.scrollBy($, N);
1890
1890
  }, []), O = B(() => c === Ht.TreeOrder ? [...l].reverse() : l, [c, l]);
1891
- W(
1891
+ V(
1892
1892
  () => {
1893
- if (!s || !l.length || !R) {
1893
+ if (!s || !l.length || !E) {
1894
1894
  f();
1895
1895
  return;
1896
1896
  }
@@ -1901,13 +1901,13 @@ function js(e) {
1901
1901
  if (!N)
1902
1902
  continue;
1903
1903
  const {
1904
- direction: V,
1904
+ direction: W,
1905
1905
  speed: Y
1906
- } = hs(_, N, R, t, m);
1906
+ } = hs(_, N, E, t, m);
1907
1907
  for (const I of ["x", "y"])
1908
- g[I][V[I]] || (Y[I] = 0, V[I] = 0);
1908
+ g[I][W[I]] || (Y[I] = 0, W[I] = 0);
1909
1909
  if (Y.x > 0 || Y.y > 0) {
1910
- f(), j.current = _, v(T, a), b.current = Y, x.current = V;
1910
+ f(), R.current = _, v(T, a), b.current = Y, x.current = W;
1911
1911
  return;
1912
1912
  }
1913
1913
  }
@@ -1928,7 +1928,7 @@ function js(e) {
1928
1928
  s,
1929
1929
  a,
1930
1930
  // eslint-disable-next-line react-hooks/exhaustive-deps
1931
- JSON.stringify(R),
1931
+ JSON.stringify(E),
1932
1932
  // eslint-disable-next-line react-hooks/exhaustive-deps
1933
1933
  JSON.stringify(g),
1934
1934
  v,
@@ -2013,41 +2013,41 @@ function Ms(e, t) {
2013
2013
  measure: u,
2014
2014
  strategy: l
2015
2015
  } = o, h = U(e), d = b(), m = gt(d), g = le(function(x) {
2016
- x === void 0 && (x = []), !m.current && a((R) => R === null ? x : R.concat(x.filter((j) => !R.includes(j))));
2016
+ x === void 0 && (x = []), !m.current && a((E) => E === null ? x : E.concat(x.filter((R) => !E.includes(R))));
2017
2017
  }, [m]), v = U(null), f = yt((x) => {
2018
2018
  if (d && !n)
2019
2019
  return ir;
2020
2020
  if (!x || x === ir || h.current !== e || s != null) {
2021
- const R = /* @__PURE__ */ new Map();
2022
- for (let j of e) {
2023
- if (!j)
2021
+ const E = /* @__PURE__ */ new Map();
2022
+ for (let R of e) {
2023
+ if (!R)
2024
2024
  continue;
2025
- if (s && s.length > 0 && !s.includes(j.id) && j.rect.current) {
2026
- R.set(j.id, j.rect.current);
2025
+ if (s && s.length > 0 && !s.includes(R.id) && R.rect.current) {
2026
+ E.set(R.id, R.rect.current);
2027
2027
  continue;
2028
2028
  }
2029
- const T = j.node.current, O = T ? new _n(u(T), T) : null;
2030
- j.rect.current = O, O && R.set(j.id, O);
2029
+ const T = R.node.current, O = T ? new _n(u(T), T) : null;
2030
+ R.rect.current = O, O && E.set(R.id, O);
2031
2031
  }
2032
- return R;
2032
+ return E;
2033
2033
  }
2034
2034
  return x;
2035
2035
  }, [e, s, n, d, u]);
2036
- return W(() => {
2036
+ return V(() => {
2037
2037
  h.current = e;
2038
- }, [e]), W(
2038
+ }, [e]), V(
2039
2039
  () => {
2040
2040
  d || g();
2041
2041
  },
2042
2042
  // eslint-disable-next-line react-hooks/exhaustive-deps
2043
2043
  [n, d]
2044
- ), W(
2044
+ ), V(
2045
2045
  () => {
2046
2046
  s && s.length > 0 && a(null);
2047
2047
  },
2048
2048
  //eslint-disable-next-line react-hooks/exhaustive-deps
2049
2049
  [JSON.stringify(s)]
2050
- ), W(
2050
+ ), V(
2051
2051
  () => {
2052
2052
  d || typeof c != "number" || v.current !== null || (v.current = setTimeout(() => {
2053
2053
  g(), v.current = null;
@@ -2090,7 +2090,7 @@ function Is(e) {
2090
2090
  } = window;
2091
2091
  return new s(r);
2092
2092
  }, [r, n]);
2093
- return W(() => () => o?.disconnect(), [o]), o;
2093
+ return V(() => () => o?.disconnect(), [o]), o;
2094
2094
  }
2095
2095
  function Xt(e) {
2096
2096
  let {
@@ -2109,7 +2109,7 @@ function Xt(e) {
2109
2109
  // eslint-disable-next-line react-hooks/exhaustive-deps
2110
2110
  [n]
2111
2111
  );
2112
- return W(() => () => o?.disconnect(), [o]), o;
2112
+ return V(() => () => o?.disconnect(), [o]), o;
2113
2113
  }
2114
2114
  function ks(e) {
2115
2115
  return new _n(nt(e), e);
@@ -2160,7 +2160,7 @@ function As(e) {
2160
2160
  const cr = [];
2161
2161
  function Ls(e) {
2162
2162
  const t = U(e), n = yt((r) => e ? r && r !== cr && e && t.current && e.parentNode === t.current.parentNode ? r : En(e) : cr, [e]);
2163
- return W(() => {
2163
+ return V(() => {
2164
2164
  t.current = e;
2165
2165
  }, [e]), n;
2166
2166
  }
@@ -2169,7 +2169,7 @@ function Ns(e) {
2169
2169
  const a = cn(s.target);
2170
2170
  a && n((c) => c ? (c.set(a, bn(a)), new Map(c)) : null);
2171
2171
  }, []);
2172
- return W(() => {
2172
+ return V(() => {
2173
2173
  const s = r.current;
2174
2174
  if (e !== s) {
2175
2175
  a(s);
@@ -2195,19 +2195,19 @@ function Ns(e) {
2195
2195
  function lr(e, t) {
2196
2196
  t === void 0 && (t = []);
2197
2197
  const n = U(null);
2198
- return W(
2198
+ return V(
2199
2199
  () => {
2200
2200
  n.current = null;
2201
2201
  },
2202
2202
  // eslint-disable-next-line react-hooks/exhaustive-deps
2203
2203
  t
2204
- ), W(() => {
2204
+ ), V(() => {
2205
2205
  const r = e !== Se;
2206
2206
  r && !n.current && (n.current = e), !r && n.current && (n.current = null);
2207
2207
  }, [e]), n.current ? Yt(e, n.current) : Se;
2208
2208
  }
2209
2209
  function zs(e) {
2210
- W(
2210
+ V(
2211
2211
  () => {
2212
2212
  if (!Gt)
2213
2213
  return;
@@ -2499,7 +2499,7 @@ function qs(e) {
2499
2499
  activatorEvent: r,
2500
2500
  draggableNodes: o
2501
2501
  } = Ve(qt), s = vn(r), a = vn(n?.id);
2502
- return W(() => {
2502
+ return V(() => {
2503
2503
  if (!t && !r && s && a != null) {
2504
2504
  if (!jn(s) || document.activeElement === s.target)
2505
2505
  return;
@@ -2612,11 +2612,11 @@ const Ur = /* @__PURE__ */ po(function(t) {
2612
2612
  modifiers: g,
2613
2613
  ...v
2614
2614
  } = t;
2615
- const f = vo(Xs, void 0, Gs), [b, x] = f, [R, j] = Bo(), [T, O] = oe(Fe.Uninitialized), _ = T === Fe.Initialized, {
2615
+ const f = vo(Xs, void 0, Gs), [b, x] = f, [E, R] = Bo(), [T, O] = oe(Fe.Uninitialized), _ = T === Fe.Initialized, {
2616
2616
  draggable: {
2617
2617
  active: $,
2618
2618
  nodes: N,
2619
- translate: V
2619
+ translate: W
2620
2620
  },
2621
2621
  droppable: {
2622
2622
  containers: Y
@@ -2632,15 +2632,15 @@ const Ur = /* @__PURE__ */ po(function(t) {
2632
2632
  data: (ce = I?.data) != null ? ce : Ws,
2633
2633
  rect: Q
2634
2634
  } : null;
2635
- }, [$, I]), M = U(null), [D, w] = oe(null), [E, C] = oe(null), k = gt(v, Object.values(v)), L = wt("DndDescribedBy", a), p = B(() => Y.getEnabled(), [Y]), S = Js(m), {
2635
+ }, [$, I]), M = U(null), [D, w] = oe(null), [j, C] = oe(null), k = gt(v, Object.values(v)), L = wt("DndDescribedBy", a), p = B(() => Y.getEnabled(), [Y]), S = Js(m), {
2636
2636
  droppableRects: A,
2637
2637
  measureDroppableContainers: P,
2638
2638
  measuringScheduled: G
2639
2639
  } = Ms(p, {
2640
2640
  dragging: _,
2641
- dependencies: [V.x, V.y],
2641
+ dependencies: [W.x, W.y],
2642
2642
  config: S.droppable
2643
- }), X = Ts(N, $), F = B(() => E ? mn(E) : null, [E]), J = ho(), Z = $s(X, S.draggable.measure);
2643
+ }), X = Ts(N, $), F = B(() => j ? mn(j) : null, [j]), J = ho(), Z = $s(X, S.draggable.measure);
2644
2644
  Zs({
2645
2645
  activeNode: $ != null ? N.get($) : null,
2646
2646
  config: J.layoutShiftCompensation,
@@ -2665,12 +2665,12 @@ const Ur = /* @__PURE__ */ po(function(t) {
2665
2665
  measure: S.dragOverlay.measure
2666
2666
  }), Be = (r = $e.nodeRef.current) != null ? r : X, Ue = _ ? (o = $e.rect) != null ? o : z : null, In = !!($e.nodeRef.current && $e.rect), kn = As(In ? null : z), Zt = Vr(Be ? he(Be) : null), Le = Ls(_ ? ye ?? X : null), St = Ys(Le), Dt = Ks(g, {
2667
2667
  transform: {
2668
- x: V.x - kn.x,
2669
- y: V.y - kn.y,
2668
+ x: W.x - kn.x,
2669
+ y: W.y - kn.y,
2670
2670
  scaleX: 1,
2671
2671
  scaleY: 1
2672
2672
  },
2673
- activatorEvent: E,
2673
+ activatorEvent: j,
2674
2674
  active: se,
2675
2675
  activeNodeRect: z,
2676
2676
  containerNodeRect: de,
@@ -2680,7 +2680,7 @@ const Ur = /* @__PURE__ */ po(function(t) {
2680
2680
  scrollableAncestors: Le,
2681
2681
  scrollableAncestorRects: St,
2682
2682
  windowRect: Zt
2683
- }), An = F ? Je(F, V) : null, Ln = Ns(Le), so = lr(Ln), io = lr(Ln, [z]), Ge = Je(Dt, so), Xe = Ue ? ss(Ue, Dt) : null, rt = se && Xe ? d({
2683
+ }), An = F ? Je(F, W) : null, Ln = Ns(Le), so = lr(Ln), io = lr(Ln, [z]), Ge = Je(Dt, so), Xe = Ue ? ss(Ue, Dt) : null, rt = se && Xe ? d({
2684
2684
  active: se,
2685
2685
  collisionRect: Xe,
2686
2686
  droppableRects: A,
@@ -2713,7 +2713,7 @@ const Ur = /* @__PURE__ */ po(function(t) {
2713
2713
  } = k.current, Ie = {
2714
2714
  id: ie
2715
2715
  };
2716
- Re?.(Ie), R({
2716
+ Re?.(Ie), E({
2717
2717
  type: "onDragAbort",
2718
2718
  event: Ie
2719
2719
  });
@@ -2729,7 +2729,7 @@ const Ur = /* @__PURE__ */ po(function(t) {
2729
2729
  initialCoordinates: Re,
2730
2730
  offset: Ie
2731
2731
  };
2732
- st?.(Ye), R({
2732
+ st?.(Ye), E({
2733
2733
  type: "onDragPending",
2734
2734
  event: Ye
2735
2735
  });
@@ -2756,7 +2756,7 @@ const Ur = /* @__PURE__ */ po(function(t) {
2756
2756
  type: te.DragStart,
2757
2757
  initialCoordinates: ie,
2758
2758
  active: Pe
2759
- }), R({
2759
+ }), E({
2760
2760
  type: "onDragStart",
2761
2761
  event: ot
2762
2762
  }), w(Qt.current), C(ve);
@@ -2800,7 +2800,7 @@ const Ur = /* @__PURE__ */ po(function(t) {
2800
2800
  const it = ie === te.DragEnd ? "onDragEnd" : "onDragCancel";
2801
2801
  if (Ye) {
2802
2802
  const en = k.current[it];
2803
- en?.(Ye), R({
2803
+ en?.(Ye), E({
2804
2804
  type: it,
2805
2805
  event: Ye
2806
2806
  });
@@ -2829,7 +2829,7 @@ const Ur = /* @__PURE__ */ po(function(t) {
2829
2829
  }, [N, Pn]), Yn = Os(h, lo);
2830
2830
  zs(h), Te(() => {
2831
2831
  z && T === Fe.Initializing && O(Fe.Initialized);
2832
- }, [z, T]), W(
2832
+ }, [z, T]), V(
2833
2833
  () => {
2834
2834
  const {
2835
2835
  onDragMove: ce
@@ -2852,7 +2852,7 @@ const Ur = /* @__PURE__ */ po(function(t) {
2852
2852
  over: me
2853
2853
  };
2854
2854
  Ct(() => {
2855
- ce?.(ve), R({
2855
+ ce?.(ve), E({
2856
2856
  type: "onDragMove",
2857
2857
  event: ve
2858
2858
  });
@@ -2860,7 +2860,7 @@ const Ur = /* @__PURE__ */ po(function(t) {
2860
2860
  },
2861
2861
  // eslint-disable-next-line react-hooks/exhaustive-deps
2862
2862
  [Ge.x, Ge.y]
2863
- ), W(
2863
+ ), V(
2864
2864
  () => {
2865
2865
  const {
2866
2866
  active: ce,
@@ -2889,7 +2889,7 @@ const Ur = /* @__PURE__ */ po(function(t) {
2889
2889
  over: qe
2890
2890
  };
2891
2891
  Ct(() => {
2892
- zn(qe), ve?.(ie), R({
2892
+ zn(qe), ve?.(ie), E({
2893
2893
  type: "onDragOver",
2894
2894
  event: ie
2895
2895
  });
@@ -2899,7 +2899,7 @@ const Ur = /* @__PURE__ */ po(function(t) {
2899
2899
  [Nn]
2900
2900
  ), Te(() => {
2901
2901
  ae.current = {
2902
- activatorEvent: E,
2902
+ activatorEvent: j,
2903
2903
  active: se,
2904
2904
  activeNode: X,
2905
2905
  collisionRect: Xe,
@@ -2918,7 +2918,7 @@ const Ur = /* @__PURE__ */ po(function(t) {
2918
2918
  };
2919
2919
  }, [se, X, rt, Xe, N, Be, Ue, A, Y, Ne, Le, Ge]), js({
2920
2920
  ...J,
2921
- delta: V,
2921
+ delta: W,
2922
2922
  draggingRect: Xe,
2923
2923
  pointerCoordinates: An,
2924
2924
  scrollableAncestors: Le,
@@ -2928,7 +2928,7 @@ const Ur = /* @__PURE__ */ po(function(t) {
2928
2928
  active: se,
2929
2929
  activeNode: X,
2930
2930
  activeNodeRect: z,
2931
- activatorEvent: E,
2931
+ activatorEvent: j,
2932
2932
  collisions: rt,
2933
2933
  containerNodeRect: de,
2934
2934
  dragOverlay: $e,
@@ -2942,8 +2942,8 @@ const Ur = /* @__PURE__ */ po(function(t) {
2942
2942
  measuringConfiguration: S,
2943
2943
  measuringScheduled: G,
2944
2944
  windowRect: Zt
2945
- }), [se, X, z, E, rt, de, $e, N, Y, A, Ne, P, Le, St, S, G, Zt]), fo = B(() => ({
2946
- activatorEvent: E,
2945
+ }), [se, X, z, j, rt, de, $e, N, Y, A, Ne, P, Le, St, S, G, Zt]), fo = B(() => ({
2946
+ activatorEvent: j,
2947
2947
  activators: Yn,
2948
2948
  active: se,
2949
2949
  activeNodeRect: z,
@@ -2954,9 +2954,9 @@ const Ur = /* @__PURE__ */ po(function(t) {
2954
2954
  draggableNodes: N,
2955
2955
  over: Ne,
2956
2956
  measureDroppableContainers: P
2957
- }), [E, Yn, se, z, x, L, N, Ne, P]);
2957
+ }), [j, Yn, se, z, x, L, N, Ne, P]);
2958
2958
  return ne.createElement(Mr.Provider, {
2959
- value: j
2959
+ value: R
2960
2960
  }, ne.createElement(qt.Provider, {
2961
2961
  value: fo
2962
2962
  }, ne.createElement(Wr.Provider, {
@@ -2998,17 +2998,17 @@ function ti(e) {
2998
2998
  role: g = dr,
2999
2999
  roleDescription: v = "draggable",
3000
3000
  tabIndex: f = 0
3001
- } = o ?? {}, b = u?.id === t, x = Ve(b ? Br : Qs), [R, j] = Pt(), [T, O] = Pt(), _ = Ps(a, t), $ = gt(n);
3001
+ } = o ?? {}, b = u?.id === t, x = Ve(b ? Br : Qs), [E, R] = Pt(), [T, O] = Pt(), _ = Ps(a, t), $ = gt(n);
3002
3002
  Te(
3003
3003
  () => (d.set(t, {
3004
3004
  id: t,
3005
3005
  key: s,
3006
- node: R,
3006
+ node: E,
3007
3007
  activatorNode: T,
3008
3008
  data: $
3009
3009
  }), () => {
3010
- const V = d.get(t);
3011
- V && V.key === s && d.delete(t);
3010
+ const W = d.get(t);
3011
+ W && W.key === s && d.delete(t);
3012
3012
  }),
3013
3013
  // eslint-disable-next-line react-hooks/exhaustive-deps
3014
3014
  [d, t]
@@ -3028,9 +3028,9 @@ function ti(e) {
3028
3028
  attributes: N,
3029
3029
  isDragging: b,
3030
3030
  listeners: r ? void 0 : _,
3031
- node: R,
3031
+ node: E,
3032
3032
  over: m,
3033
- setNodeRef: j,
3033
+ setNodeRef: R,
3034
3034
  setActivatorNodeRef: O,
3035
3035
  transform: x
3036
3036
  };
@@ -3062,7 +3062,7 @@ function si(e) {
3062
3062
  } = {
3063
3063
  ...oi,
3064
3064
  ...o
3065
- }, x = gt(f ?? r), R = le(
3065
+ }, x = gt(f ?? r), E = le(
3066
3066
  () => {
3067
3067
  if (!d.current) {
3068
3068
  d.current = !0;
@@ -3074,15 +3074,15 @@ function si(e) {
3074
3074
  },
3075
3075
  //eslint-disable-next-line react-hooks/exhaustive-deps
3076
3076
  [b]
3077
- ), j = Xt({
3078
- callback: R,
3077
+ ), R = Xt({
3078
+ callback: E,
3079
3079
  disabled: v || !a
3080
- }), T = le((N, V) => {
3081
- j && (V && (j.unobserve(V), d.current = !1), N && j.observe(N));
3082
- }, [j]), [O, _] = Pt(T), $ = gt(t);
3083
- return W(() => {
3084
- !j || !O.current || (j.disconnect(), d.current = !1, j.observe(O.current));
3085
- }, [O, j]), W(
3080
+ }), T = le((N, W) => {
3081
+ R && (W && (R.unobserve(W), d.current = !1), N && R.observe(N));
3082
+ }, [R]), [O, _] = Pt(T), $ = gt(t);
3083
+ return V(() => {
3084
+ !R || !O.current || (R.disconnect(), d.current = !1, R.observe(O.current));
3085
+ }, [O, R]), V(
3086
3086
  () => (c({
3087
3087
  type: te.RegisterDroppable,
3088
3088
  element: {
@@ -3100,7 +3100,7 @@ function si(e) {
3100
3100
  })),
3101
3101
  // eslint-disable-next-line react-hooks/exhaustive-deps
3102
3102
  [r]
3103
- ), W(() => {
3103
+ ), V(() => {
3104
3104
  n !== h.current.disabled && (c({
3105
3105
  type: te.SetDroppableDisabled,
3106
3106
  id: r,
@@ -3271,10 +3271,10 @@ function Kr(e) {
3271
3271
  droppableRects: u,
3272
3272
  over: l,
3273
3273
  measureDroppableContainers: h
3274
- } = ni(), d = wt(Xr, n), m = c.rect !== null, g = B(() => r.map((_) => typeof _ == "object" && "id" in _ ? _.id : _), [r]), v = a != null, f = a ? g.indexOf(a.id) : -1, b = l ? g.indexOf(l.id) : -1, x = U(g), R = !ai(g, x.current), j = b !== -1 && f === -1 || R, T = ci(s);
3274
+ } = ni(), d = wt(Xr, n), m = c.rect !== null, g = B(() => r.map((_) => typeof _ == "object" && "id" in _ ? _.id : _), [r]), v = a != null, f = a ? g.indexOf(a.id) : -1, b = l ? g.indexOf(l.id) : -1, x = U(g), E = !ai(g, x.current), R = b !== -1 && f === -1 || E, T = ci(s);
3275
3275
  Te(() => {
3276
- R && v && h(g);
3277
- }, [R, g, v, h]), W(() => {
3276
+ E && v && h(g);
3277
+ }, [E, g, v, h]), V(() => {
3278
3278
  x.current = g;
3279
3279
  }, [g]);
3280
3280
  const O = B(
@@ -3282,7 +3282,7 @@ function Kr(e) {
3282
3282
  activeIndex: f,
3283
3283
  containerId: d,
3284
3284
  disabled: T,
3285
- disableTransforms: j,
3285
+ disableTransforms: R,
3286
3286
  items: g,
3287
3287
  overIndex: b,
3288
3288
  useDragOverlay: m,
@@ -3290,7 +3290,7 @@ function Kr(e) {
3290
3290
  strategy: o
3291
3291
  }),
3292
3292
  // eslint-disable-next-line react-hooks/exhaustive-deps
3293
- [f, d, T.draggable, T.droppable, j, g, b, u, m, o]
3293
+ [f, d, T.draggable, T.droppable, R, g, b, u, m, o]
3294
3294
  );
3295
3295
  return ne.createElement(qr.Provider, {
3296
3296
  value: O
@@ -3351,7 +3351,7 @@ function bi(e) {
3351
3351
  }
3352
3352
  }
3353
3353
  n !== c.current && (c.current = n);
3354
- }, [t, n, r, o]), W(() => {
3354
+ }, [t, n, r, o]), V(() => {
3355
3355
  s && a(null);
3356
3356
  }, [s]), s;
3357
3357
  }
@@ -3376,8 +3376,8 @@ function Zr(e) {
3376
3376
  sortedRects: f,
3377
3377
  overIndex: b,
3378
3378
  useDragOverlay: x,
3379
- strategy: R
3380
- } = Ve(qr), j = xi(r, g), T = h.indexOf(a), O = B(() => ({
3379
+ strategy: E
3380
+ } = Ve(qr), R = xi(r, g), T = h.indexOf(a), O = B(() => ({
3381
3381
  sortable: {
3382
3382
  containerId: d,
3383
3383
  index: T,
@@ -3387,12 +3387,12 @@ function Zr(e) {
3387
3387
  }), [d, o, T, h]), _ = B(() => h.slice(h.indexOf(a)), [h, a]), {
3388
3388
  rect: $,
3389
3389
  node: N,
3390
- isOver: V,
3390
+ isOver: W,
3391
3391
  setNodeRef: Y
3392
3392
  } = si({
3393
3393
  id: a,
3394
3394
  data: O,
3395
- disabled: j.droppable,
3395
+ disabled: R.droppable,
3396
3396
  resizeObserverConfig: {
3397
3397
  updateMeasurementsFor: _,
3398
3398
  ...u
@@ -3404,7 +3404,7 @@ function Zr(e) {
3404
3404
  attributes: M,
3405
3405
  setNodeRef: D,
3406
3406
  listeners: w,
3407
- isDragging: E,
3407
+ isDragging: j,
3408
3408
  over: C,
3409
3409
  setActivatorNodeRef: k,
3410
3410
  transform: L
@@ -3415,8 +3415,8 @@ function Zr(e) {
3415
3415
  ...mi,
3416
3416
  ...n
3417
3417
  },
3418
- disabled: j.draggable
3419
- }), p = Ao(Y, D), S = !!I, A = S && !v && Tt(m) && Tt(b), P = !x && E, G = P && A ? L : null, F = A ? G ?? (c ?? R)({
3418
+ disabled: R.draggable
3419
+ }), p = Ao(Y, D), S = !!I, A = S && !v && Tt(m) && Tt(b), P = !x && j, G = P && A ? L : null, F = A ? G ?? (c ?? E)({
3420
3420
  rects: f,
3421
3421
  activeNodeRect: se,
3422
3422
  activeIndex: m,
@@ -3435,7 +3435,7 @@ function Zr(e) {
3435
3435
  }), de = h !== z.current.items, ae = t({
3436
3436
  active: I,
3437
3437
  containerId: d,
3438
- isDragging: E,
3438
+ isDragging: j,
3439
3439
  isSorting: S,
3440
3440
  id: a,
3441
3441
  index: T,
@@ -3451,9 +3451,9 @@ function Zr(e) {
3451
3451
  node: N,
3452
3452
  rect: $
3453
3453
  });
3454
- return W(() => {
3454
+ return V(() => {
3455
3455
  S && z.current.newIndex !== J && (z.current.newIndex = J), d !== z.current.containerId && (z.current.containerId = d), h !== z.current.items && (z.current.items = h);
3456
- }, [S, J, d, h]), W(() => {
3456
+ }, [S, J, d, h]), V(() => {
3457
3457
  if (Z === z.current.activeId)
3458
3458
  return;
3459
3459
  if (Z != null && z.current.activeId == null) {
@@ -3473,9 +3473,9 @@ function Zr(e) {
3473
3473
  index: T,
3474
3474
  newIndex: J,
3475
3475
  items: h,
3476
- isOver: V,
3476
+ isOver: W,
3477
3477
  isSorting: S,
3478
- isDragging: E,
3478
+ isDragging: j,
3479
3479
  listeners: w,
3480
3480
  node: N,
3481
3481
  overIndex: b,
@@ -3735,7 +3735,8 @@ function oa(e, t) {
3735
3735
  sortableColumns: c.map((l) => ({
3736
3736
  id: l.id,
3737
3737
  label: l.label,
3738
- sortable: !0
3738
+ sortable: !0,
3739
+ backgroundColor: l.backgroundColor
3739
3740
  }))
3740
3741
  }));
3741
3742
  }
@@ -3814,6 +3815,7 @@ function pa() {
3814
3815
  onClick: () => c?.sortable && ra(c?.id),
3815
3816
  cursor: c?.sortable ? "pointer" : "default",
3816
3817
  borderRight: "2px solid #dcdcdc",
3818
+ backgroundColor: c?.backgroundColor,
3817
3819
  children: /* @__PURE__ */ i.jsxs(
3818
3820
  "span",
3819
3821
  {
@@ -3951,22 +3953,24 @@ function dl({
3951
3953
  totalCount: d = 0,
3952
3954
  paginationMode: m = "client"
3953
3955
  }) {
3954
- W(() => {
3956
+ V(() => {
3955
3957
  sa(e);
3956
- }, [e]), W(() => {
3958
+ }, [e]), V(() => {
3957
3959
  oa(t, n);
3958
3960
  }, [t, n]);
3959
3961
  const { sortColumn: g, sortDirection: v, data: f } = bt(xe), b = B(() => {
3960
- const x = [...f];
3962
+ const x = [...f], E = Math.max(1, a || 1);
3961
3963
  if (g && x.sort(
3962
- (R, j) => v === "asc" ? String(R[g]).localeCompare(String(j[g])) : String(j[g]).localeCompare(String(R[g]))
3964
+ (R, T) => v === "asc" ? String(R[g]).localeCompare(String(T[g])) : String(T[g]).localeCompare(String(R[g]))
3963
3965
  ), m === "client") {
3964
- const R = (a - 1) * c;
3966
+ const R = (E - 1) * c;
3965
3967
  return x.slice(R, R + c);
3966
3968
  }
3967
3969
  return x;
3968
3970
  }, [f, g, v, a, c, m]);
3969
- return /* @__PURE__ */ i.jsxs(je, { h: "100%", display: "flex", flexDirection: "column", p: 2, pt: 2, minHeight: 0, children: [
3971
+ return V(() => {
3972
+ a < 1 && u && u(1);
3973
+ }, [a, u]), /* @__PURE__ */ i.jsxs(je, { h: "100%", display: "flex", flexDirection: "column", p: 2, pt: 2, minHeight: 0, children: [
3970
3974
  /* @__PURE__ */ i.jsx(je, { flex: "1", minHeight: 0, overflow: "auto", children: r ? /* @__PURE__ */ i.jsx(je, { display: "flex", alignItems: "center", justifyContent: "center", h: "100%", color: "gray.500", children: "Loading..." }) : b.length === 0 ? /* @__PURE__ */ i.jsx(je, { display: "flex", alignItems: "center", justifyContent: "center", h: "100%", color: "gray.500", children: o }) : /* @__PURE__ */ i.jsxs(Ee.Root, { variant: "outline", w: "100%", size: h, children: [
3971
3975
  /* @__PURE__ */ i.jsx(pa, {}),
3972
3976
  /* @__PURE__ */ i.jsx($a, { data: b, actions: s })
@@ -4077,7 +4081,7 @@ function Ba({
4077
4081
  disabled: n = !1
4078
4082
  }) {
4079
4083
  const [r = "", o = ""] = e ? e.split("|") : [], [s, a] = oe(() => r && o ? `${we(r)}${ee}${we(o)}` : r ? we(r) : ""), [c, u] = oe(!1), l = U(null);
4080
- W(() => {
4084
+ V(() => {
4081
4085
  const v = (f) => {
4082
4086
  f.ctrlKey && f.key === "d" && !f.shiftKey && !f.metaKey && (f.preventDefault(), l.current?.focus());
4083
4087
  };
@@ -4103,16 +4107,16 @@ function Ba({
4103
4107
  return;
4104
4108
  }
4105
4109
  if (v.includes(ee)) {
4106
- const [f, b = ""] = v.split(ee).map((j) => j.trim()), x = lt(f), R = b ? lt(b) : null;
4107
- if (x && R) {
4108
- const [j, T] = R < x ? [R, x] : [x, R], O = `${we(j)}${ee}${we(
4110
+ const [f, b = ""] = v.split(ee).map((R) => R.trim()), x = lt(f), E = b ? lt(b) : null;
4111
+ if (x && E) {
4112
+ const [R, T] = E < x ? [E, x] : [x, E], O = `${we(R)}${ee}${we(
4109
4113
  T
4110
4114
  )}`;
4111
- a(O), t(`${j}|${T}`);
4115
+ a(O), t(`${R}|${T}`);
4112
4116
  } else if (x && !b)
4113
4117
  a(`${we(x)}${ee}`), t(void 0);
4114
4118
  else if (x && b) {
4115
- const j = za(), [T, O] = j < x ? [j, x] : [x, j], _ = `${we(T)}${ee}${we(
4119
+ const R = za(), [T, O] = R < x ? [R, x] : [x, R], _ = `${we(T)}${ee}${we(
4116
4120
  O
4117
4121
  )}`;
4118
4122
  a(_), t(`${T}|${O}`);
@@ -4131,20 +4135,20 @@ function Ba({
4131
4135
  return;
4132
4136
  }
4133
4137
  if (b === -1) {
4134
- const R = lt(s.trim());
4135
- R && a(`${we(R)}${ee}`);
4138
+ const E = lt(s.trim());
4139
+ E && a(`${we(E)}${ee}`);
4136
4140
  return;
4137
4141
  }
4138
4142
  if (f <= b + ee.length) {
4139
- const R = s.substring(0, b).trim(), j = s.substring(b + ee.length), T = lt(R);
4140
- T && a(`${we(T)}${ee}${j}`);
4143
+ const E = s.substring(0, b).trim(), R = s.substring(b + ee.length), T = lt(E);
4144
+ T && a(`${we(T)}${ee}${R}`);
4141
4145
  return;
4142
4146
  }
4143
4147
  if (s.substring(b + ee.length).trim())
4144
4148
  d(), l.current?.blur();
4145
4149
  else {
4146
- const R = s.substring(0, b + ee.length) + vr();
4147
- a(R), setTimeout(() => {
4150
+ const E = s.substring(0, b + ee.length) + vr();
4151
+ a(E), setTimeout(() => {
4148
4152
  d(), l.current?.blur();
4149
4153
  }, 0);
4150
4154
  }
@@ -4510,8 +4514,8 @@ const Vt = new _r({}), $n = (e) => {
4510
4514
  collisionDetection: $r,
4511
4515
  onDragEnd: ({ active: f, over: b }) => {
4512
4516
  if (!b || f.id === b.id) return;
4513
- const x = o.findIndex((T) => T.id === f.id), R = o.findIndex((T) => T.id === b.id), j = Kt(o, x, R);
4514
- l?.(j);
4517
+ const x = o.findIndex((T) => T.id === f.id), E = o.findIndex((T) => T.id === b.id), R = Kt(o, x, E);
4518
+ l?.(R);
4515
4519
  },
4516
4520
  children: /* @__PURE__ */ i.jsx(
4517
4521
  Kr,
@@ -4794,19 +4798,19 @@ function Gc() {
4794
4798
  (function(n, r) {
4795
4799
  e.exports = r();
4796
4800
  })(Uc, (function() {
4797
- var n = 1e3, r = 6e4, o = 36e5, s = "millisecond", a = "second", c = "minute", u = "hour", l = "day", h = "week", d = "month", m = "quarter", g = "year", v = "date", f = "Invalid Date", b = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, x = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, R = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(M) {
4801
+ var n = 1e3, r = 6e4, o = 36e5, s = "millisecond", a = "second", c = "minute", u = "hour", l = "day", h = "week", d = "month", m = "quarter", g = "year", v = "date", f = "Invalid Date", b = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, x = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, E = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(M) {
4798
4802
  var D = ["th", "st", "nd", "rd"], w = M % 100;
4799
4803
  return "[" + M + (D[(w - 20) % 10] || D[w] || D[0]) + "]";
4800
- } }, j = function(M, D, w) {
4801
- var E = String(M);
4802
- return !E || E.length >= D ? M : "" + Array(D + 1 - E.length).join(w) + M;
4803
- }, T = { s: j, z: function(M) {
4804
- var D = -M.utcOffset(), w = Math.abs(D), E = Math.floor(w / 60), C = w % 60;
4805
- return (D <= 0 ? "+" : "-") + j(E, 2, "0") + ":" + j(C, 2, "0");
4804
+ } }, R = function(M, D, w) {
4805
+ var j = String(M);
4806
+ return !j || j.length >= D ? M : "" + Array(D + 1 - j.length).join(w) + M;
4807
+ }, T = { s: R, z: function(M) {
4808
+ var D = -M.utcOffset(), w = Math.abs(D), j = Math.floor(w / 60), C = w % 60;
4809
+ return (D <= 0 ? "+" : "-") + R(j, 2, "0") + ":" + R(C, 2, "0");
4806
4810
  }, m: function M(D, w) {
4807
4811
  if (D.date() < w.date()) return -M(w, D);
4808
- var E = 12 * (w.year() - D.year()) + (w.month() - D.month()), C = D.clone().add(E, d), k = w - C < 0, L = D.clone().add(E + (k ? -1 : 1), d);
4809
- return +(-(E + (w - C) / (k ? C - L : L - C)) || 0);
4812
+ var j = 12 * (w.year() - D.year()) + (w.month() - D.month()), C = D.clone().add(j, d), k = w - C < 0, L = D.clone().add(j + (k ? -1 : 1), d);
4813
+ return +(-(j + (w - C) / (k ? C - L : L - C)) || 0);
4810
4814
  }, a: function(M) {
4811
4815
  return M < 0 ? Math.ceil(M) || 0 : Math.floor(M);
4812
4816
  }, p: function(M) {
@@ -4814,10 +4818,10 @@ function Gc() {
4814
4818
  }, u: function(M) {
4815
4819
  return M === void 0;
4816
4820
  } }, O = "en", _ = {};
4817
- _[O] = R;
4821
+ _[O] = E;
4818
4822
  var $ = "$isDayjsObject", N = function(M) {
4819
4823
  return M instanceof Q || !(!M || !M[$]);
4820
- }, V = function M(D, w, E) {
4824
+ }, W = function M(D, w, j) {
4821
4825
  var C;
4822
4826
  if (!D) return O;
4823
4827
  if (typeof D == "string") {
@@ -4829,23 +4833,23 @@ function Gc() {
4829
4833
  var p = D.name;
4830
4834
  _[p] = D, C = p;
4831
4835
  }
4832
- return !E && C && (O = C), C || !E && O;
4836
+ return !j && C && (O = C), C || !j && O;
4833
4837
  }, Y = function(M, D) {
4834
4838
  if (N(M)) return M.clone();
4835
4839
  var w = typeof D == "object" ? D : {};
4836
4840
  return w.date = M, w.args = arguments, new Q(w);
4837
4841
  }, I = T;
4838
- I.l = V, I.i = N, I.w = function(M, D) {
4842
+ I.l = W, I.i = N, I.w = function(M, D) {
4839
4843
  return Y(M, { locale: D.$L, utc: D.$u, x: D.$x, $offset: D.$offset });
4840
4844
  };
4841
4845
  var Q = (function() {
4842
4846
  function M(w) {
4843
- this.$L = V(w.locale, null, !0), this.parse(w), this.$x = this.$x || w.x || {}, this[$] = !0;
4847
+ this.$L = W(w.locale, null, !0), this.parse(w), this.$x = this.$x || w.x || {}, this[$] = !0;
4844
4848
  }
4845
4849
  var D = M.prototype;
4846
4850
  return D.parse = function(w) {
4847
- this.$d = (function(E) {
4848
- var C = E.date, k = E.utc;
4851
+ this.$d = (function(j) {
4852
+ var C = j.date, k = j.utc;
4849
4853
  if (C === null) return /* @__PURE__ */ new Date(NaN);
4850
4854
  if (I.u(C)) return /* @__PURE__ */ new Date();
4851
4855
  if (C instanceof Date) return new Date(C);
@@ -4865,21 +4869,21 @@ function Gc() {
4865
4869
  return I;
4866
4870
  }, D.isValid = function() {
4867
4871
  return this.$d.toString() !== f;
4868
- }, D.isSame = function(w, E) {
4872
+ }, D.isSame = function(w, j) {
4869
4873
  var C = Y(w);
4870
- return this.startOf(E) <= C && C <= this.endOf(E);
4871
- }, D.isAfter = function(w, E) {
4872
- return Y(w) < this.startOf(E);
4873
- }, D.isBefore = function(w, E) {
4874
- return this.endOf(E) < Y(w);
4875
- }, D.$g = function(w, E, C) {
4876
- return I.u(w) ? this[E] : this.set(C, w);
4874
+ return this.startOf(j) <= C && C <= this.endOf(j);
4875
+ }, D.isAfter = function(w, j) {
4876
+ return Y(w) < this.startOf(j);
4877
+ }, D.isBefore = function(w, j) {
4878
+ return this.endOf(j) < Y(w);
4879
+ }, D.$g = function(w, j, C) {
4880
+ return I.u(w) ? this[j] : this.set(C, w);
4877
4881
  }, D.unix = function() {
4878
4882
  return Math.floor(this.valueOf() / 1e3);
4879
4883
  }, D.valueOf = function() {
4880
4884
  return this.$d.getTime();
4881
- }, D.startOf = function(w, E) {
4882
- var C = this, k = !!I.u(E) || E, L = I.p(w), p = function(Z, z) {
4885
+ }, D.startOf = function(w, j) {
4886
+ var C = this, k = !!I.u(j) || j, L = I.p(w), p = function(Z, z) {
4883
4887
  var de = I.w(C.$u ? Date.UTC(C.$y, z, Z) : new Date(C.$y, z, Z), C);
4884
4888
  return k ? de : de.endOf(l);
4885
4889
  }, S = function(Z, z) {
@@ -4907,21 +4911,21 @@ function Gc() {
4907
4911
  }
4908
4912
  }, D.endOf = function(w) {
4909
4913
  return this.startOf(w, !1);
4910
- }, D.$set = function(w, E) {
4911
- var C, k = I.p(w), L = "set" + (this.$u ? "UTC" : ""), p = (C = {}, C[l] = L + "Date", C[v] = L + "Date", C[d] = L + "Month", C[g] = L + "FullYear", C[u] = L + "Hours", C[c] = L + "Minutes", C[a] = L + "Seconds", C[s] = L + "Milliseconds", C)[k], S = k === l ? this.$D + (E - this.$W) : E;
4914
+ }, D.$set = function(w, j) {
4915
+ var C, k = I.p(w), L = "set" + (this.$u ? "UTC" : ""), p = (C = {}, C[l] = L + "Date", C[v] = L + "Date", C[d] = L + "Month", C[g] = L + "FullYear", C[u] = L + "Hours", C[c] = L + "Minutes", C[a] = L + "Seconds", C[s] = L + "Milliseconds", C)[k], S = k === l ? this.$D + (j - this.$W) : j;
4912
4916
  if (k === d || k === g) {
4913
4917
  var A = this.clone().set(v, 1);
4914
4918
  A.$d[p](S), A.init(), this.$d = A.set(v, Math.min(this.$D, A.daysInMonth())).$d;
4915
4919
  } else p && this.$d[p](S);
4916
4920
  return this.init(), this;
4917
- }, D.set = function(w, E) {
4918
- return this.clone().$set(w, E);
4921
+ }, D.set = function(w, j) {
4922
+ return this.clone().$set(w, j);
4919
4923
  }, D.get = function(w) {
4920
4924
  return this[I.p(w)]();
4921
- }, D.add = function(w, E) {
4925
+ }, D.add = function(w, j) {
4922
4926
  var C, k = this;
4923
4927
  w = Number(w);
4924
- var L = I.p(E), p = function(P) {
4928
+ var L = I.p(j), p = function(P) {
4925
4929
  var G = Y(k);
4926
4930
  return I.w(G.date(G.date() + Math.round(P * w)), k);
4927
4931
  };
@@ -4931,13 +4935,13 @@ function Gc() {
4931
4935
  if (L === h) return p(7);
4932
4936
  var S = (C = {}, C[c] = r, C[u] = o, C[a] = n, C)[L] || 1, A = this.$d.getTime() + w * S;
4933
4937
  return I.w(A, this);
4934
- }, D.subtract = function(w, E) {
4935
- return this.add(-1 * w, E);
4938
+ }, D.subtract = function(w, j) {
4939
+ return this.add(-1 * w, j);
4936
4940
  }, D.format = function(w) {
4937
- var E = this, C = this.$locale();
4941
+ var j = this, C = this.$locale();
4938
4942
  if (!this.isValid()) return C.invalidDate || f;
4939
4943
  var k = w || "YYYY-MM-DDTHH:mm:ssZ", L = I.z(this), p = this.$H, S = this.$m, A = this.$M, P = C.weekdays, G = C.months, X = C.meridiem, F = function(z, de, ae, ye) {
4940
- return z && (z[de] || z(E, k)) || ae[de].slice(0, ye);
4944
+ return z && (z[de] || z(j, k)) || ae[de].slice(0, ye);
4941
4945
  }, J = function(z) {
4942
4946
  return I.s(p % 12 || 12, z, "0");
4943
4947
  }, Z = X || function(z, de, ae) {
@@ -4948,9 +4952,9 @@ function Gc() {
4948
4952
  return de || (function(ae) {
4949
4953
  switch (ae) {
4950
4954
  case "YY":
4951
- return String(E.$y).slice(-2);
4955
+ return String(j.$y).slice(-2);
4952
4956
  case "YYYY":
4953
- return I.s(E.$y, 4, "0");
4957
+ return I.s(j.$y, 4, "0");
4954
4958
  case "M":
4955
4959
  return A + 1;
4956
4960
  case "MM":
@@ -4960,17 +4964,17 @@ function Gc() {
4960
4964
  case "MMMM":
4961
4965
  return F(G, A);
4962
4966
  case "D":
4963
- return E.$D;
4967
+ return j.$D;
4964
4968
  case "DD":
4965
- return I.s(E.$D, 2, "0");
4969
+ return I.s(j.$D, 2, "0");
4966
4970
  case "d":
4967
- return String(E.$W);
4971
+ return String(j.$W);
4968
4972
  case "dd":
4969
- return F(C.weekdaysMin, E.$W, P, 2);
4973
+ return F(C.weekdaysMin, j.$W, P, 2);
4970
4974
  case "ddd":
4971
- return F(C.weekdaysShort, E.$W, P, 3);
4975
+ return F(C.weekdaysShort, j.$W, P, 3);
4972
4976
  case "dddd":
4973
- return P[E.$W];
4977
+ return P[j.$W];
4974
4978
  case "H":
4975
4979
  return String(p);
4976
4980
  case "HH":
@@ -4988,11 +4992,11 @@ function Gc() {
4988
4992
  case "mm":
4989
4993
  return I.s(S, 2, "0");
4990
4994
  case "s":
4991
- return String(E.$s);
4995
+ return String(j.$s);
4992
4996
  case "ss":
4993
- return I.s(E.$s, 2, "0");
4997
+ return I.s(j.$s, 2, "0");
4994
4998
  case "SSS":
4995
- return I.s(E.$ms, 3, "0");
4999
+ return I.s(j.$ms, 3, "0");
4996
5000
  case "Z":
4997
5001
  return L;
4998
5002
  }
@@ -5001,8 +5005,8 @@ function Gc() {
5001
5005
  }));
5002
5006
  }, D.utcOffset = function() {
5003
5007
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
5004
- }, D.diff = function(w, E, C) {
5005
- var k, L = this, p = I.p(E), S = Y(w), A = (S.utcOffset() - this.utcOffset()) * r, P = this - S, G = function() {
5008
+ }, D.diff = function(w, j, C) {
5009
+ var k, L = this, p = I.p(j), S = Y(w), A = (S.utcOffset() - this.utcOffset()) * r, P = this - S, G = function() {
5006
5010
  return I.m(L, S);
5007
5011
  };
5008
5012
  switch (p) {
@@ -5038,9 +5042,9 @@ function Gc() {
5038
5042
  return this.endOf(d).$D;
5039
5043
  }, D.$locale = function() {
5040
5044
  return _[this.$L];
5041
- }, D.locale = function(w, E) {
5045
+ }, D.locale = function(w, j) {
5042
5046
  if (!w) return this.$L;
5043
- var C = this.clone(), k = V(w, E, !0);
5047
+ var C = this.clone(), k = W(w, j, !0);
5044
5048
  return k && (C.$L = k), C;
5045
5049
  }, D.clone = function() {
5046
5050
  return I.w(this.$d, this);
@@ -5060,7 +5064,7 @@ function Gc() {
5060
5064
  };
5061
5065
  })), Y.extend = function(M, D) {
5062
5066
  return M.$i || (M(D, Q, Y), M.$i = !0), Y;
5063
- }, Y.locale = V, Y.isDayjs = N, Y.unix = function(M) {
5067
+ }, Y.locale = W, Y.isDayjs = N, Y.unix = function(M) {
5064
5068
  return Y(1e3 * M);
5065
5069
  }, Y.en = _[O], Y.Ls = _, Y.p = {}, Y;
5066
5070
  }));
@@ -5081,12 +5085,12 @@ function Kc() {
5081
5085
  return s.fromToBase(l, h, d, m);
5082
5086
  }
5083
5087
  o.en.relativeTime = a, s.fromToBase = function(l, h, d, m, g) {
5084
- for (var v, f, b, x = d.$locale().relativeTime || a, R = n.thresholds || [{ l: "s", r: 44, d: "second" }, { l: "m", r: 89 }, { l: "mm", r: 44, d: "minute" }, { l: "h", r: 89 }, { l: "hh", r: 21, d: "hour" }, { l: "d", r: 35 }, { l: "dd", r: 25, d: "day" }, { l: "M", r: 45 }, { l: "MM", r: 10, d: "month" }, { l: "y", r: 17 }, { l: "yy", d: "year" }], j = R.length, T = 0; T < j; T += 1) {
5085
- var O = R[T];
5088
+ for (var v, f, b, x = d.$locale().relativeTime || a, E = n.thresholds || [{ l: "s", r: 44, d: "second" }, { l: "m", r: 89 }, { l: "mm", r: 44, d: "minute" }, { l: "h", r: 89 }, { l: "hh", r: 21, d: "hour" }, { l: "d", r: 35 }, { l: "dd", r: 25, d: "day" }, { l: "M", r: 45 }, { l: "MM", r: 10, d: "month" }, { l: "y", r: 17 }, { l: "yy", d: "year" }], R = E.length, T = 0; T < R; T += 1) {
5089
+ var O = E[T];
5086
5090
  O.d && (v = m ? o(l).diff(d, O.d, !0) : d.diff(l, O.d, !0));
5087
5091
  var _ = (n.rounding || Math.round)(Math.abs(v));
5088
5092
  if (b = v > 0, _ <= O.r || !O.r) {
5089
- _ <= 1 && T > 0 && (O = R[T - 1]);
5093
+ _ <= 1 && T > 0 && (O = E[T - 1]);
5090
5094
  var $ = x[O.l];
5091
5095
  g && (_ = g("" + _)), f = typeof $ == "string" ? $.replace("%d", _) : $(_, h, O.l, b);
5092
5096
  break;
@@ -5128,8 +5132,8 @@ function el() {
5128
5132
  var l = this.$locale().formats, h = (function(d, m) {
5129
5133
  return d.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(g, v, f) {
5130
5134
  var b = f && f.toUpperCase();
5131
- return v || m[f] || n[f] || m[b].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(x, R, j) {
5132
- return R || j.slice(1);
5135
+ return v || m[f] || n[f] || m[b].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(x, E, R) {
5136
+ return E || R.slice(1);
5133
5137
  }));
5134
5138
  }));
5135
5139
  })(u, l === void 0 ? {} : l);