@mdspl/mds-shared-ui 0.3.8 → 0.4.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.js CHANGED
@@ -1,14 +1,14 @@
1
- import ne, { useLayoutEffect as po, useEffect as V, useRef as U, useMemo as B, useCallback as le, useState as oe, createContext as vt, memo as go, useReducer as vo, useContext as Ve, forwardRef as wn, createElement as hn } from "react";
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 pn } from "@chakra-ui/react";
1
+ import ne, { useLayoutEffect as go, useEffect as H, useRef as U, useMemo as B, useCallback as le, useState as oe, createContext as vt, memo as po, useReducer as vo, useContext as He, forwardRef as wn, createElement as hn } from "react";
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 Ie, Kbd as Vn, 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) {
5
5
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
6
6
  }
7
7
  var Rt = { exports: {} }, at = {};
8
- var Vn;
8
+ var Hn;
9
9
  function yo() {
10
- if (Vn) return at;
11
- Vn = 1;
10
+ if (Hn) return at;
11
+ Hn = 1;
12
12
  var e = /* @__PURE__ */ Symbol.for("react.transitional.element"), t = /* @__PURE__ */ Symbol.for("react.fragment");
13
13
  function n(r, o, s) {
14
14
  var a = null;
@@ -34,16 +34,16 @@ function wo() {
34
34
  function e(g) {
35
35
  if (g == null) return null;
36
36
  if (typeof g == "function")
37
- return g.$$typeof === I ? null : g.displayName || g.name || null;
37
+ return g.$$typeof === k ? null : g.displayName || g.name || null;
38
38
  if (typeof g == "string") return g;
39
39
  switch (g) {
40
40
  case b:
41
41
  return "Fragment";
42
- case E:
42
+ case R:
43
43
  return "Profiler";
44
- case x:
44
+ case w:
45
45
  return "StrictMode";
46
- case _:
46
+ case T:
47
47
  return "Suspense";
48
48
  case $:
49
49
  return "SuspenseList";
@@ -54,11 +54,11 @@ function wo() {
54
54
  switch (typeof g.tag == "number" && console.error(
55
55
  "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
56
56
  ), g.$$typeof) {
57
- case f:
57
+ case h:
58
58
  return "Portal";
59
- case T:
59
+ case _:
60
60
  return g.displayName || "Context";
61
- case R:
61
+ case E:
62
62
  return (g._context.displayName || "Context") + ".Consumer";
63
63
  case O:
64
64
  var S = g.render;
@@ -121,7 +121,7 @@ function wo() {
121
121
  }
122
122
  function c(g, S) {
123
123
  function A() {
124
- w || (w = !0, console.error(
124
+ y || (y = !0, console.error(
125
125
  "%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://react.dev/link/special-props)",
126
126
  S
127
127
  ));
@@ -131,13 +131,13 @@ function wo() {
131
131
  configurable: !0
132
132
  });
133
133
  }
134
- function u() {
134
+ function l() {
135
135
  var g = e(this.type);
136
136
  return j[g] || (j[g] = !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
  )), g = this.props.ref, g !== void 0 ? g : null;
139
139
  }
140
- function l(g, S, A, P, G, X) {
140
+ function u(g, S, A, P, G, X) {
141
141
  var F = A.ref;
142
142
  return g = {
143
143
  $$typeof: v,
@@ -147,7 +147,7 @@ function wo() {
147
147
  _owner: P
148
148
  }, (F !== void 0 ? F : null) !== null ? Object.defineProperty(g, "ref", {
149
149
  enumerable: !1,
150
- get: u
150
+ get: l
151
151
  }) : Object.defineProperty(g, "ref", { enumerable: !1, value: null }), g._store = {}, Object.defineProperty(g._store, "validated", {
152
152
  configurable: !1,
153
153
  enumerable: !1,
@@ -170,7 +170,7 @@ function wo() {
170
170
  value: X
171
171
  }), Object.freeze && (Object.freeze(g.props), Object.freeze(g)), g;
172
172
  }
173
- function h(g, S, A, P, G, X) {
173
+ function f(g, S, A, P, G, X) {
174
174
  var F = S.children;
175
175
  if (F !== void 0)
176
176
  if (P)
@@ -209,7 +209,7 @@ React keys must be passed directly to JSX without using spread:
209
209
  return F && c(
210
210
  A,
211
211
  typeof g == "function" ? g.displayName || g.name || "Unknown" : g
212
- ), l(
212
+ ), u(
213
213
  g,
214
214
  F,
215
215
  A,
@@ -224,7 +224,7 @@ React keys must be passed directly to JSX without using spread:
224
224
  function m(g) {
225
225
  return typeof g == "object" && g !== null && g.$$typeof === v;
226
226
  }
227
- var p = 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 = p.__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 p = ne, v = /* @__PURE__ */ Symbol.for("react.transitional.element"), h = /* @__PURE__ */ Symbol.for("react.portal"), b = /* @__PURE__ */ Symbol.for("react.fragment"), w = /* @__PURE__ */ Symbol.for("react.strict_mode"), R = /* @__PURE__ */ Symbol.for("react.profiler"), E = /* @__PURE__ */ Symbol.for("react.consumer"), _ = /* @__PURE__ */ Symbol.for("react.context"), O = /* @__PURE__ */ Symbol.for("react.forward_ref"), T = /* @__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"), k = /* @__PURE__ */ Symbol.for("react.client.reference"), Q = p.__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
  p = {
@@ -232,29 +232,29 @@ React keys must be passed directly to JSX without using spread:
232
232
  return g();
233
233
  }
234
234
  };
235
- var w, j = {}, C = p.react_stack_bottom_frame.bind(
235
+ var y, j = {}, C = p.react_stack_bottom_frame.bind(
236
236
  p,
237
237
  s
238
- )(), k = D(r(s)), L = {};
238
+ )(), I = D(r(s)), L = {};
239
239
  ct.Fragment = b, ct.jsx = function(g, S, A) {
240
240
  var P = 1e4 > Q.recentlyCreatedOwnerStacks++;
241
- return h(
241
+ return f(
242
242
  g,
243
243
  S,
244
244
  A,
245
245
  !1,
246
246
  P ? Error("react-stack-top-frame") : C,
247
- P ? D(r(g)) : k
247
+ P ? D(r(g)) : I
248
248
  );
249
249
  }, ct.jsxs = function(g, S, A) {
250
250
  var P = 1e4 > Q.recentlyCreatedOwnerStacks++;
251
- return h(
251
+ return f(
252
252
  g,
253
253
  S,
254
254
  A,
255
255
  !0,
256
256
  P ? Error("react-stack-top-frame") : C,
257
- P ? D(r(g)) : k
257
+ P ? D(r(g)) : I
258
258
  );
259
259
  };
260
260
  })()), ct;
@@ -274,22 +274,22 @@ function Do() {
274
274
  }
275
275
  var n = typeof Object.is == "function" ? Object.is : t, r = e.useState, o = e.useEffect, s = e.useLayoutEffect, a = e.useDebugValue;
276
276
  function c(d, m) {
277
- var p = m(), v = r({ inst: { value: p, getSnapshot: m } }), f = v[0].inst, b = v[1];
277
+ var p = m(), v = r({ inst: { value: p, getSnapshot: m } }), h = v[0].inst, b = v[1];
278
278
  return s(
279
279
  function() {
280
- f.value = p, f.getSnapshot = m, u(f) && b({ inst: f });
280
+ h.value = p, h.getSnapshot = m, l(h) && b({ inst: h });
281
281
  },
282
282
  [d, p, m]
283
283
  ), o(
284
284
  function() {
285
- return u(f) && b({ inst: f }), d(function() {
286
- u(f) && b({ inst: f });
285
+ return l(h) && b({ inst: h }), d(function() {
286
+ l(h) && b({ inst: h });
287
287
  });
288
288
  },
289
289
  [d]
290
290
  ), a(p), p;
291
291
  }
292
- function u(d) {
292
+ function l(d) {
293
293
  var m = d.getSnapshot;
294
294
  d = d.value;
295
295
  try {
@@ -299,11 +299,11 @@ function Do() {
299
299
  return !0;
300
300
  }
301
301
  }
302
- function l(d, m) {
302
+ function u(d, m) {
303
303
  return m();
304
304
  }
305
- var h = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? l : c;
306
- return nn.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : h, nn;
305
+ var f = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? u : c;
306
+ return nn.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : f, nn;
307
307
  }
308
308
  var rn = {};
309
309
  var Gn;
@@ -313,40 +313,40 @@ function Co() {
313
313
  return p === v && (p !== 0 || 1 / p === 1 / v) || p !== p && v !== v;
314
314
  }
315
315
  function t(p, v) {
316
- h || o.startTransition === void 0 || (h = !0, console.error(
316
+ f || o.startTransition === void 0 || (f = !0, console.error(
317
317
  "You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
318
318
  ));
319
- var f = v();
319
+ var h = v();
320
320
  if (!d) {
321
321
  var b = v();
322
- s(f, b) || (console.error(
322
+ s(h, b) || (console.error(
323
323
  "The result of getSnapshot should be cached to avoid an infinite loop"
324
324
  ), d = !0);
325
325
  }
326
326
  b = a({
327
- inst: { value: f, getSnapshot: v }
327
+ inst: { value: h, getSnapshot: v }
328
328
  });
329
- var x = b[0].inst, E = b[1];
330
- return u(
329
+ var w = b[0].inst, R = b[1];
330
+ return l(
331
331
  function() {
332
- x.value = f, x.getSnapshot = v, n(x) && E({ inst: x });
332
+ w.value = h, w.getSnapshot = v, n(w) && R({ inst: w });
333
333
  },
334
- [p, f, v]
334
+ [p, h, v]
335
335
  ), c(
336
336
  function() {
337
- return n(x) && E({ inst: x }), p(function() {
338
- n(x) && E({ inst: x });
337
+ return n(w) && R({ inst: w }), p(function() {
338
+ n(w) && R({ inst: w });
339
339
  });
340
340
  },
341
341
  [p]
342
- ), l(f), f;
342
+ ), u(h), h;
343
343
  }
344
344
  function n(p) {
345
345
  var v = p.getSnapshot;
346
346
  p = p.value;
347
347
  try {
348
- var f = v();
349
- return !s(p, f);
348
+ var h = v();
349
+ return !s(p, h);
350
350
  } catch {
351
351
  return !0;
352
352
  }
@@ -355,7 +355,7 @@ function Co() {
355
355
  return v();
356
356
  }
357
357
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
358
- var o = ne, s = typeof Object.is == "function" ? Object.is : e, a = o.useState, c = o.useEffect, u = o.useLayoutEffect, l = o.useDebugValue, h = !1, d = !1, m = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? r : t;
358
+ var o = ne, s = typeof Object.is == "function" ? Object.is : e, a = o.useState, c = o.useEffect, l = o.useLayoutEffect, u = o.useDebugValue, f = !1, d = !1, m = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? r : t;
359
359
  rn.useSyncExternalStore = o.useSyncExternalStore !== void 0 ? o.useSyncExternalStore : m, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
360
360
  })()), rn;
361
361
  }
@@ -368,102 +368,102 @@ function Ro() {
368
368
  if (qn) return tn;
369
369
  qn = 1;
370
370
  var e = ne, t = jr();
371
- function n(l, h) {
372
- return l === h && (l !== 0 || 1 / l === 1 / h) || l !== l && h !== h;
371
+ function n(u, f) {
372
+ return u === f && (u !== 0 || 1 / u === 1 / f) || u !== u && f !== f;
373
373
  }
374
- var r = typeof Object.is == "function" ? Object.is : n, o = t.useSyncExternalStore, s = e.useRef, a = e.useEffect, c = e.useMemo, u = e.useDebugValue;
375
- return tn.useSyncExternalStoreWithSelector = function(l, h, d, m, p) {
374
+ var r = typeof Object.is == "function" ? Object.is : n, o = t.useSyncExternalStore, s = e.useRef, a = e.useEffect, c = e.useMemo, l = e.useDebugValue;
375
+ return tn.useSyncExternalStoreWithSelector = function(u, f, d, m, p) {
376
376
  var v = s(null);
377
377
  if (v.current === null) {
378
- var f = { hasValue: !1, value: null };
379
- v.current = f;
380
- } else f = v.current;
378
+ var h = { hasValue: !1, value: null };
379
+ v.current = h;
380
+ } else h = v.current;
381
381
  v = c(
382
382
  function() {
383
- function x(_) {
384
- if (!E) {
385
- if (E = !0, R = _, _ = m(_), p !== void 0 && f.hasValue) {
386
- var $ = f.value;
387
- if (p($, _))
388
- return T = $;
383
+ function w(T) {
384
+ if (!R) {
385
+ if (R = !0, E = T, T = m(T), p !== void 0 && h.hasValue) {
386
+ var $ = h.value;
387
+ if (p($, T))
388
+ return _ = $;
389
389
  }
390
- return T = _;
390
+ return _ = T;
391
391
  }
392
- if ($ = T, r(R, _)) return $;
393
- var N = m(_);
394
- return p !== void 0 && p($, N) ? (R = _, $) : (R = _, T = N);
392
+ if ($ = _, r(E, T)) return $;
393
+ var N = m(T);
394
+ return p !== void 0 && p($, N) ? (E = T, $) : (E = T, _ = N);
395
395
  }
396
- var E = !1, R, T, O = d === void 0 ? null : d;
396
+ var R = !1, E, _, O = d === void 0 ? null : d;
397
397
  return [
398
398
  function() {
399
- return x(h());
399
+ return w(f());
400
400
  },
401
401
  O === null ? void 0 : function() {
402
- return x(O());
402
+ return w(O());
403
403
  }
404
404
  ];
405
405
  },
406
- [h, d, m, p]
406
+ [f, d, m, p]
407
407
  );
408
- var b = o(l, v[0], v[1]);
408
+ var b = o(u, v[0], v[1]);
409
409
  return a(
410
410
  function() {
411
- f.hasValue = !0, f.value = b;
411
+ h.hasValue = !0, h.value = b;
412
412
  },
413
413
  [b]
414
- ), u(b), b;
414
+ ), l(b), b;
415
415
  }, tn;
416
416
  }
417
417
  var on = {};
418
418
  var Kn;
419
419
  function jo() {
420
420
  return Kn || (Kn = 1, process.env.NODE_ENV !== "production" && (function() {
421
- function e(l, h) {
422
- return l === h && (l !== 0 || 1 / l === 1 / h) || l !== l && h !== h;
421
+ function e(u, f) {
422
+ return u === f && (u !== 0 || 1 / u === 1 / f) || u !== u && f !== f;
423
423
  }
424
424
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
425
- var t = ne, n = jr(), r = typeof Object.is == "function" ? Object.is : e, o = n.useSyncExternalStore, s = t.useRef, a = t.useEffect, c = t.useMemo, u = t.useDebugValue;
426
- on.useSyncExternalStoreWithSelector = function(l, h, d, m, p) {
425
+ var t = ne, n = jr(), r = typeof Object.is == "function" ? Object.is : e, o = n.useSyncExternalStore, s = t.useRef, a = t.useEffect, c = t.useMemo, l = t.useDebugValue;
426
+ on.useSyncExternalStoreWithSelector = function(u, f, d, m, p) {
427
427
  var v = s(null);
428
428
  if (v.current === null) {
429
- var f = { hasValue: !1, value: null };
430
- v.current = f;
431
- } else f = v.current;
429
+ var h = { hasValue: !1, value: null };
430
+ v.current = h;
431
+ } else h = v.current;
432
432
  v = c(
433
433
  function() {
434
- function x(_) {
435
- if (!E) {
436
- if (E = !0, R = _, _ = m(_), p !== void 0 && f.hasValue) {
437
- var $ = f.value;
438
- if (p($, _))
439
- return T = $;
434
+ function w(T) {
435
+ if (!R) {
436
+ if (R = !0, E = T, T = m(T), p !== void 0 && h.hasValue) {
437
+ var $ = h.value;
438
+ if (p($, T))
439
+ return _ = $;
440
440
  }
441
- return T = _;
441
+ return _ = T;
442
442
  }
443
- if ($ = T, r(R, _))
443
+ if ($ = _, r(E, T))
444
444
  return $;
445
- var N = m(_);
446
- return p !== void 0 && p($, N) ? (R = _, $) : (R = _, T = N);
445
+ var N = m(T);
446
+ return p !== void 0 && p($, N) ? (E = T, $) : (E = T, _ = N);
447
447
  }
448
- var E = !1, R, T, O = d === void 0 ? null : d;
448
+ var R = !1, E, _, O = d === void 0 ? null : d;
449
449
  return [
450
450
  function() {
451
- return x(h());
451
+ return w(f());
452
452
  },
453
453
  O === null ? void 0 : function() {
454
- return x(O());
454
+ return w(O());
455
455
  }
456
456
  ];
457
457
  },
458
- [h, d, m, p]
458
+ [f, d, m, p]
459
459
  );
460
- var b = o(l, v[0], v[1]);
460
+ var b = o(u, v[0], v[1]);
461
461
  return a(
462
462
  function() {
463
- f.hasValue = !0, f.value = b;
463
+ h.hasValue = !0, h.value = b;
464
464
  },
465
465
  [b]
466
- ), u(b), b;
466
+ ), l(b), b;
467
467
  }, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
468
468
  })()), on;
469
469
  }
@@ -472,7 +472,7 @@ function Eo() {
472
472
  return Jn || (Jn = 1, process.env.NODE_ENV === "production" ? jt.exports = Ro() : jt.exports = jo()), jt.exports;
473
473
  }
474
474
  var _o = Eo();
475
- const gn = /* @__PURE__ */ new WeakMap(), To = /* @__PURE__ */ new WeakMap(), zt = {
475
+ const pn = /* @__PURE__ */ new WeakMap(), To = /* @__PURE__ */ new WeakMap(), zt = {
476
476
  current: []
477
477
  };
478
478
  let sn = !1;
@@ -485,7 +485,7 @@ function Er(e) {
485
485
  const n = To.get(t);
486
486
  if (n)
487
487
  for (const r of n) {
488
- const o = gn.get(r);
488
+ const o = pn.get(r);
489
489
  o?.length && Er(o);
490
490
  }
491
491
  }
@@ -517,11 +517,11 @@ function $o(e) {
517
517
  n.prevState = r, Oo(n);
518
518
  }
519
519
  for (const n of t) {
520
- const r = gn.get(n);
520
+ const r = pn.get(n);
521
521
  r && (zt.current.push(n), Er(r));
522
522
  }
523
523
  for (const n of t) {
524
- const r = gn.get(n);
524
+ const r = pn.get(n);
525
525
  if (r)
526
526
  for (const o of r)
527
527
  Mo(o);
@@ -531,7 +531,7 @@ function $o(e) {
531
531
  sn = !1, zt.current = [], Zn.clear();
532
532
  }
533
533
  }
534
- function Io(e) {
534
+ function ko(e) {
535
535
  return typeof e == "function";
536
536
  }
537
537
  class _r {
@@ -547,11 +547,11 @@ class _r {
547
547
  }
548
548
  setState(t) {
549
549
  var n, r, o;
550
- this.prevState = this.state, (n = this.options) != null && n.updateFn ? this.state = this.options.updateFn(this.prevState)(t) : Io(t) ? this.state = t(this.prevState) : this.state = t, (o = (r = this.options) == null ? void 0 : r.onUpdate) == null || o.call(r), $o(this);
550
+ this.prevState = this.state, (n = this.options) != null && n.updateFn ? this.state = this.options.updateFn(this.prevState)(t) : ko(t) ? this.state = t(this.prevState) : this.state = t, (o = (r = this.options) == null ? void 0 : r.onUpdate) == null || o.call(r), $o(this);
551
551
  }
552
552
  }
553
553
  function bt(e, t = (r) => r, n = {}) {
554
- const r = n.equal ?? ko;
554
+ const r = n.equal ?? Io;
555
555
  return _o.useSyncExternalStoreWithSelector(
556
556
  e.subscribe,
557
557
  () => e.state,
@@ -560,7 +560,7 @@ function bt(e, t = (r) => r, n = {}) {
560
560
  r
561
561
  );
562
562
  }
563
- function ko(e, t) {
563
+ function Io(e, t) {
564
564
  if (Object.is(e, t))
565
565
  return !0;
566
566
  if (typeof e != "object" || e === null || typeof t != "object" || t === null)
@@ -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 ? po : V;
634
+ const Te = Gt ? go : H;
635
635
  function Rn(e) {
636
636
  const t = U(e);
637
637
  return Te(() => {
@@ -650,7 +650,7 @@ function Lo() {
650
650
  }, []);
651
651
  return [t, n];
652
652
  }
653
- function pt(e, t) {
653
+ function gt(e, t) {
654
654
  t === void 0 && (t = [e]);
655
655
  const n = U(e);
656
656
  return Te(() => {
@@ -680,7 +680,7 @@ function Pt(e) {
680
680
  }
681
681
  function vn(e) {
682
682
  const t = U();
683
- return V(() => {
683
+ return H(() => {
684
684
  t.current = e;
685
685
  }, [e]), t.current;
686
686
  }
@@ -699,9 +699,9 @@ function Or(e) {
699
699
  r[o - 1] = arguments[o];
700
700
  return r.reduce((s, a) => {
701
701
  const c = Object.entries(a);
702
- for (const [u, l] of c) {
703
- const h = s[u];
704
- h != null && (s[u] = h + e * l);
702
+ for (const [l, u] of c) {
703
+ const f = s[l];
704
+ f != null && (s[l] = f + e * u);
705
705
  }
706
706
  return s;
707
707
  }, {
@@ -812,7 +812,7 @@ function Fo(e) {
812
812
  style: Yo
813
813
  }, n);
814
814
  }
815
- function Ho(e) {
815
+ function Vo(e) {
816
816
  let {
817
817
  id: t,
818
818
  announcement: n,
@@ -840,7 +840,7 @@ function Ho(e) {
840
840
  "aria-atomic": !0
841
841
  }, n);
842
842
  }
843
- function Vo() {
843
+ function Ho() {
844
844
  const [e, t] = oe("");
845
845
  return {
846
846
  announce: le((r) => {
@@ -851,8 +851,8 @@ function Vo() {
851
851
  }
852
852
  const Mr = /* @__PURE__ */ vt(null);
853
853
  function Wo(e) {
854
- const t = Ve(Mr);
855
- V(() => {
854
+ const t = He(Mr);
855
+ H(() => {
856
856
  if (!t)
857
857
  throw new Error("useDndMonitor must be used within a children of <DndContext>");
858
858
  return t(e);
@@ -915,9 +915,9 @@ function Xo(e) {
915
915
  const {
916
916
  announce: s,
917
917
  announcement: a
918
- } = Vo(), c = wt("DndLiveRegion"), [u, l] = oe(!1);
919
- if (V(() => {
920
- l(!0);
918
+ } = Ho(), c = wt("DndLiveRegion"), [l, u] = oe(!1);
919
+ if (H(() => {
920
+ u(!0);
921
921
  }, []), Wo(B(() => ({
922
922
  onDragStart(d) {
923
923
  let {
@@ -967,16 +967,16 @@ function Xo(e) {
967
967
  over: p
968
968
  }));
969
969
  }
970
- }), [s, t])), !u)
970
+ }), [s, t])), !l)
971
971
  return null;
972
- const h = ne.createElement(ne.Fragment, null, ne.createElement(Fo, {
972
+ const f = ne.createElement(ne.Fragment, null, ne.createElement(Fo, {
973
973
  id: r,
974
974
  value: o.draggable
975
- }), ne.createElement(Ho, {
975
+ }), ne.createElement(Vo, {
976
976
  id: c,
977
977
  announcement: a
978
978
  }));
979
- return n ? xo(h, n) : h;
979
+ return n ? xo(f, n) : f;
980
980
  }
981
981
  var te;
982
982
  (function(e) {
@@ -1056,14 +1056,14 @@ const $r = (e) => {
1056
1056
  for (const a of r) {
1057
1057
  const {
1058
1058
  id: c
1059
- } = a, u = n.get(c);
1060
- if (u) {
1061
- const l = Jo(tr(u), o);
1059
+ } = a, l = n.get(c);
1060
+ if (l) {
1061
+ const u = Jo(tr(l), o);
1062
1062
  s.push({
1063
1063
  id: c,
1064
1064
  data: {
1065
1065
  droppableContainer: a,
1066
- value: l
1066
+ value: u
1067
1067
  }
1068
1068
  });
1069
1069
  }
@@ -1073,7 +1073,7 @@ const $r = (e) => {
1073
1073
  function ts(e, t) {
1074
1074
  const n = Math.max(t.top, e.top), r = Math.max(t.left, e.left), o = Math.min(t.left + t.width, e.left + e.width), s = Math.min(t.top + t.height, e.top + e.height), a = o - r, c = s - n;
1075
1075
  if (r < o && n < s) {
1076
- const u = t.width * t.height, l = e.width * e.height, h = a * c, d = h / (u + l - h);
1076
+ const l = t.width * t.height, u = e.width * e.height, f = a * c, d = f / (l + u - f);
1077
1077
  return Number(d.toFixed(4));
1078
1078
  }
1079
1079
  return 0;
@@ -1090,12 +1090,12 @@ const ns = (e) => {
1090
1090
  id: a
1091
1091
  } = s, c = n.get(a);
1092
1092
  if (c) {
1093
- const u = ts(c, t);
1094
- u > 0 && o.push({
1093
+ const l = ts(c, t);
1094
+ l > 0 && o.push({
1095
1095
  id: a,
1096
1096
  data: {
1097
1097
  droppableContainer: s,
1098
- value: u
1098
+ value: l
1099
1099
  }
1100
1100
  });
1101
1101
  }
@@ -1109,7 +1109,7 @@ function rs(e, t, n) {
1109
1109
  scaleY: t && n ? t.height / n.height : 1
1110
1110
  };
1111
1111
  }
1112
- function Ir(e, t) {
1112
+ function kr(e, t) {
1113
1113
  return e && t ? {
1114
1114
  x: e.left - t.left,
1115
1115
  y: e.top - t.top
@@ -1160,14 +1160,14 @@ function as(e, t, n) {
1160
1160
  scaleY: s,
1161
1161
  x: a,
1162
1162
  y: c
1163
- } = r, u = e.left - a - (1 - o) * parseFloat(n), l = e.top - c - (1 - s) * parseFloat(n.slice(n.indexOf(" ") + 1)), h = o ? e.width / o : e.width, d = s ? e.height / s : e.height;
1163
+ } = r, l = e.left - a - (1 - o) * parseFloat(n), u = e.top - c - (1 - s) * parseFloat(n.slice(n.indexOf(" ") + 1)), f = o ? e.width / o : e.width, d = s ? e.height / s : e.height;
1164
1164
  return {
1165
- width: h,
1165
+ width: f,
1166
1166
  height: d,
1167
- top: l,
1168
- right: u + h,
1169
- bottom: l + d,
1170
- left: u
1167
+ top: u,
1168
+ right: l + f,
1169
+ bottom: u + d,
1170
+ left: l
1171
1171
  };
1172
1172
  }
1173
1173
  const cs = {
@@ -1178,10 +1178,10 @@ function nt(e, t) {
1178
1178
  let n = e.getBoundingClientRect();
1179
1179
  if (t.ignoreTransform) {
1180
1180
  const {
1181
- transform: l,
1182
- transformOrigin: h
1181
+ transform: u,
1182
+ transformOrigin: f
1183
1183
  } = he(e).getComputedStyle(e);
1184
- l && (n = as(n, l, h));
1184
+ u && (n = as(n, u, f));
1185
1185
  }
1186
1186
  const {
1187
1187
  top: r,
@@ -1189,7 +1189,7 @@ function nt(e, t) {
1189
1189
  width: s,
1190
1190
  height: a,
1191
1191
  bottom: c,
1192
- right: u
1192
+ right: l
1193
1193
  } = n;
1194
1194
  return {
1195
1195
  top: r,
@@ -1197,7 +1197,7 @@ function nt(e, t) {
1197
1197
  width: s,
1198
1198
  height: a,
1199
1199
  bottom: c,
1200
- right: u
1200
+ right: l
1201
1201
  };
1202
1202
  }
1203
1203
  function nr(e) {
@@ -1241,7 +1241,7 @@ function En(e, t) {
1241
1241
  }
1242
1242
  return e ? r(e) : n;
1243
1243
  }
1244
- function kr(e) {
1244
+ function Ir(e) {
1245
1245
  const [t] = En(e, 1);
1246
1246
  return t ?? null;
1247
1247
  }
@@ -1299,12 +1299,12 @@ function hs(e, t, n, r, o) {
1299
1299
  top: s,
1300
1300
  left: a,
1301
1301
  right: c,
1302
- bottom: u
1302
+ bottom: l
1303
1303
  } = n;
1304
1304
  r === void 0 && (r = 10), o === void 0 && (o = fs);
1305
1305
  const {
1306
- isTop: l,
1307
- isBottom: h,
1306
+ isTop: u,
1307
+ isBottom: f,
1308
1308
  isLeft: d,
1309
1309
  isRight: m
1310
1310
  } = zr(e), p = {
@@ -1313,16 +1313,16 @@ function hs(e, t, n, r, o) {
1313
1313
  }, v = {
1314
1314
  x: 0,
1315
1315
  y: 0
1316
- }, f = {
1316
+ }, h = {
1317
1317
  height: t.height * o.y,
1318
1318
  width: t.width * o.x
1319
1319
  };
1320
- return !l && s <= t.top + f.height ? (p.y = re.Backward, v.y = r * Math.abs((t.top + f.height - s) / f.height)) : !h && u >= t.bottom - f.height && (p.y = re.Forward, v.y = r * Math.abs((t.bottom - f.height - u) / f.height)), !m && c >= t.right - f.width ? (p.x = re.Forward, v.x = r * Math.abs((t.right - f.width - c) / f.width)) : !d && a <= t.left + f.width && (p.x = re.Backward, v.x = r * Math.abs((t.left + f.width - a) / f.width)), {
1320
+ return !u && s <= t.top + h.height ? (p.y = re.Backward, v.y = r * Math.abs((t.top + h.height - s) / h.height)) : !f && l >= t.bottom - h.height && (p.y = re.Forward, v.y = r * Math.abs((t.bottom - h.height - l) / h.height)), !m && c >= t.right - h.width ? (p.x = re.Forward, v.x = r * Math.abs((t.right - h.width - c) / h.width)) : !d && a <= t.left + h.width && (p.x = re.Backward, v.x = r * Math.abs((t.left + h.width - a) / h.width)), {
1321
1321
  direction: p,
1322
1322
  speed: v
1323
1323
  };
1324
1324
  }
1325
- function ps(e) {
1325
+ function gs(e) {
1326
1326
  if (e === document.scrollingElement) {
1327
1327
  const {
1328
1328
  innerWidth: s,
@@ -1355,7 +1355,7 @@ function ps(e) {
1355
1355
  function Pr(e) {
1356
1356
  return e.reduce((t, n) => Je(t, bn(n)), Se);
1357
1357
  }
1358
- function gs(e) {
1358
+ function ps(e) {
1359
1359
  return e.reduce((t, n) => t + Ar(n), 0);
1360
1360
  }
1361
1361
  function vs(e) {
@@ -1370,12 +1370,12 @@ function ms(e, t) {
1370
1370
  bottom: o,
1371
1371
  right: s
1372
1372
  } = t(e);
1373
- kr(e) && (o <= 0 || s <= 0 || n >= window.innerHeight || r >= window.innerWidth) && e.scrollIntoView({
1373
+ Ir(e) && (o <= 0 || s <= 0 || n >= window.innerHeight || r >= window.innerWidth) && e.scrollIntoView({
1374
1374
  block: "center",
1375
1375
  inline: "center"
1376
1376
  });
1377
1377
  }
1378
- const bs = [["x", ["left", "right"], gs], ["y", ["top", "bottom"], vs]];
1378
+ const bs = [["x", ["left", "right"], ps], ["y", ["top", "bottom"], vs]];
1379
1379
  class _n {
1380
1380
  constructor(t, n) {
1381
1381
  this.rect = void 0, this.width = void 0, this.height = void 0, this.top = void 0, this.bottom = void 0, this.right = void 0, this.left = void 0;
@@ -1384,11 +1384,11 @@ class _n {
1384
1384
  ...t
1385
1385
  }, this.width = t.width, this.height = t.height;
1386
1386
  for (const [s, a, c] of bs)
1387
- for (const u of a)
1388
- Object.defineProperty(this, u, {
1387
+ for (const l of a)
1388
+ Object.defineProperty(this, l, {
1389
1389
  get: () => {
1390
- const l = c(r), h = o[s] - l;
1391
- return this.rect[u] + h;
1390
+ const u = c(r), f = o[s] - u;
1391
+ return this.rect[l] + f;
1392
1392
  },
1393
1393
  enumerable: !0
1394
1394
  });
@@ -1421,45 +1421,45 @@ function ln(e, t) {
1421
1421
  const n = Math.abs(e.x), r = Math.abs(e.y);
1422
1422
  return typeof t == "number" ? Math.sqrt(n ** 2 + r ** 2) > t : "x" in t && "y" in t ? n > t.x && r > t.y : "x" in t ? n > t.x : "y" in t ? r > t.y : !1;
1423
1423
  }
1424
- var be;
1424
+ var xe;
1425
1425
  (function(e) {
1426
1426
  e.Click = "click", e.DragStart = "dragstart", e.Keydown = "keydown", e.ContextMenu = "contextmenu", e.Resize = "resize", e.SelectionChange = "selectionchange", e.VisibilityChange = "visibilitychange";
1427
- })(be || (be = {}));
1427
+ })(xe || (xe = {}));
1428
1428
  function rr(e) {
1429
1429
  e.preventDefault();
1430
1430
  }
1431
1431
  function ys(e) {
1432
1432
  e.stopPropagation();
1433
1433
  }
1434
- var H;
1434
+ var V;
1435
1435
  (function(e) {
1436
1436
  e.Space = "Space", e.Down = "ArrowDown", e.Right = "ArrowRight", e.Left = "ArrowLeft", e.Up = "ArrowUp", e.Esc = "Escape", e.Enter = "Enter", e.Tab = "Tab";
1437
- })(H || (H = {}));
1437
+ })(V || (V = {}));
1438
1438
  const Yr = {
1439
- start: [H.Space, H.Enter],
1440
- cancel: [H.Esc],
1441
- end: [H.Space, H.Enter, H.Tab]
1439
+ start: [V.Space, V.Enter],
1440
+ cancel: [V.Esc],
1441
+ end: [V.Space, V.Enter, V.Tab]
1442
1442
  }, ws = (e, t) => {
1443
1443
  let {
1444
1444
  currentCoordinates: n
1445
1445
  } = t;
1446
1446
  switch (e.code) {
1447
- case H.Right:
1447
+ case V.Right:
1448
1448
  return {
1449
1449
  ...n,
1450
1450
  x: n.x + 25
1451
1451
  };
1452
- case H.Left:
1452
+ case V.Left:
1453
1453
  return {
1454
1454
  ...n,
1455
1455
  x: n.x - 25
1456
1456
  };
1457
- case H.Down:
1457
+ case V.Down:
1458
1458
  return {
1459
1459
  ...n,
1460
1460
  y: n.y + 25
1461
1461
  };
1462
- case H.Up:
1462
+ case V.Up:
1463
1463
  return {
1464
1464
  ...n,
1465
1465
  y: n.y - 25
@@ -1477,7 +1477,7 @@ class Fr {
1477
1477
  this.props = t, this.listeners = new dt(tt(n)), this.windowListeners = new dt(he(n)), this.handleKeyDown = this.handleKeyDown.bind(this), this.handleCancel = this.handleCancel.bind(this), this.attach();
1478
1478
  }
1479
1479
  attach() {
1480
- this.handleStart(), this.windowListeners.add(be.Resize, this.handleCancel), this.windowListeners.add(be.VisibilityChange, this.handleCancel), setTimeout(() => this.listeners.add(be.Keydown, this.handleKeyDown));
1480
+ this.handleStart(), this.windowListeners.add(xe.Resize, this.handleCancel), this.windowListeners.add(xe.VisibilityChange, this.handleCancel), setTimeout(() => this.listeners.add(xe.Keydown, this.handleKeyDown));
1481
1481
  }
1482
1482
  handleStart() {
1483
1483
  const {
@@ -1497,71 +1497,71 @@ class Fr {
1497
1497
  coordinateGetter: a = ws,
1498
1498
  scrollBehavior: c = "smooth"
1499
1499
  } = o, {
1500
- code: u
1500
+ code: l
1501
1501
  } = t;
1502
- if (s.end.includes(u)) {
1502
+ if (s.end.includes(l)) {
1503
1503
  this.handleEnd(t);
1504
1504
  return;
1505
1505
  }
1506
- if (s.cancel.includes(u)) {
1506
+ if (s.cancel.includes(l)) {
1507
1507
  this.handleCancel(t);
1508
1508
  return;
1509
1509
  }
1510
1510
  const {
1511
- collisionRect: l
1512
- } = r.current, h = l ? {
1513
- x: l.left,
1514
- y: l.top
1511
+ collisionRect: u
1512
+ } = r.current, f = u ? {
1513
+ x: u.left,
1514
+ y: u.top
1515
1515
  } : Se;
1516
- this.referenceCoordinates || (this.referenceCoordinates = h);
1516
+ this.referenceCoordinates || (this.referenceCoordinates = f);
1517
1517
  const d = a(t, {
1518
1518
  active: n,
1519
1519
  context: r.current,
1520
- currentCoordinates: h
1520
+ currentCoordinates: f
1521
1521
  });
1522
1522
  if (d) {
1523
- const m = Yt(d, h), p = {
1523
+ const m = Yt(d, f), p = {
1524
1524
  x: 0,
1525
1525
  y: 0
1526
1526
  }, {
1527
1527
  scrollableAncestors: v
1528
1528
  } = r.current;
1529
- for (const f of v) {
1529
+ for (const h of v) {
1530
1530
  const b = t.code, {
1531
- isTop: x,
1532
- isRight: E,
1533
- isLeft: R,
1534
- isBottom: T,
1531
+ isTop: w,
1532
+ isRight: R,
1533
+ isLeft: E,
1534
+ isBottom: _,
1535
1535
  maxScroll: O,
1536
- minScroll: _
1537
- } = zr(f), $ = ps(f), N = {
1538
- x: Math.min(b === H.Right ? $.right - $.width / 2 : $.right, Math.max(b === H.Right ? $.left : $.left + $.width / 2, d.x)),
1539
- y: Math.min(b === H.Down ? $.bottom - $.height / 2 : $.bottom, Math.max(b === H.Down ? $.top : $.top + $.height / 2, d.y))
1540
- }, W = b === H.Right && !E || b === H.Left && !R, Y = b === H.Down && !T || b === H.Up && !x;
1536
+ minScroll: T
1537
+ } = zr(h), $ = gs(h), N = {
1538
+ x: Math.min(b === V.Right ? $.right - $.width / 2 : $.right, Math.max(b === V.Right ? $.left : $.left + $.width / 2, d.x)),
1539
+ y: Math.min(b === V.Down ? $.bottom - $.height / 2 : $.bottom, Math.max(b === V.Down ? $.top : $.top + $.height / 2, d.y))
1540
+ }, W = b === V.Right && !R || b === V.Left && !E, Y = b === V.Down && !_ || b === V.Up && !w;
1541
1541
  if (W && N.x !== d.x) {
1542
- const I = f.scrollLeft + m.x, Q = b === H.Right && I <= O.x || b === H.Left && I >= _.x;
1542
+ const k = h.scrollLeft + m.x, Q = b === V.Right && k <= O.x || b === V.Left && k >= T.x;
1543
1543
  if (Q && !m.y) {
1544
- f.scrollTo({
1545
- left: I,
1544
+ h.scrollTo({
1545
+ left: k,
1546
1546
  behavior: c
1547
1547
  });
1548
1548
  return;
1549
1549
  }
1550
- Q ? p.x = f.scrollLeft - I : p.x = b === H.Right ? f.scrollLeft - O.x : f.scrollLeft - _.x, p.x && f.scrollBy({
1550
+ Q ? p.x = h.scrollLeft - k : p.x = b === V.Right ? h.scrollLeft - O.x : h.scrollLeft - T.x, p.x && h.scrollBy({
1551
1551
  left: -p.x,
1552
1552
  behavior: c
1553
1553
  });
1554
1554
  break;
1555
1555
  } else if (Y && N.y !== d.y) {
1556
- const I = f.scrollTop + m.y, Q = b === H.Down && I <= O.y || b === H.Up && I >= _.y;
1556
+ const k = h.scrollTop + m.y, Q = b === V.Down && k <= O.y || b === V.Up && k >= T.y;
1557
1557
  if (Q && !m.x) {
1558
- f.scrollTo({
1559
- top: I,
1558
+ h.scrollTo({
1559
+ top: k,
1560
1560
  behavior: c
1561
1561
  });
1562
1562
  return;
1563
1563
  }
1564
- Q ? p.y = f.scrollTop - I : p.y = b === H.Down ? f.scrollTop - O.y : f.scrollTop - _.y, p.y && f.scrollBy({
1564
+ Q ? p.y = h.scrollTop - k : p.y = b === V.Down ? h.scrollTop - O.y : h.scrollTop - T.y, p.y && h.scrollBy({
1565
1565
  top: -p.y,
1566
1566
  behavior: c
1567
1567
  });
@@ -1644,7 +1644,7 @@ class Tn {
1644
1644
  } = this;
1645
1645
  if (this.listeners.add(t.move.name, this.handleMove, {
1646
1646
  passive: !1
1647
- }), this.listeners.add(t.end.name, this.handleEnd), t.cancel && this.listeners.add(t.cancel.name, this.handleCancel), this.windowListeners.add(be.Resize, this.handleCancel), this.windowListeners.add(be.DragStart, rr), this.windowListeners.add(be.VisibilityChange, this.handleCancel), this.windowListeners.add(be.ContextMenu, rr), this.documentListeners.add(be.Keydown, this.handleKeydown), n) {
1647
+ }), this.listeners.add(t.end.name, this.handleEnd), t.cancel && this.listeners.add(t.cancel.name, this.handleCancel), this.windowListeners.add(xe.Resize, this.handleCancel), this.windowListeners.add(xe.DragStart, rr), this.windowListeners.add(xe.VisibilityChange, this.handleCancel), this.windowListeners.add(xe.ContextMenu, rr), this.documentListeners.add(xe.Keydown, this.handleKeydown), n) {
1648
1648
  if (r != null && r({
1649
1649
  event: this.props.event,
1650
1650
  activeNode: this.props.activeNode,
@@ -1678,9 +1678,9 @@ class Tn {
1678
1678
  } = this, {
1679
1679
  onStart: n
1680
1680
  } = this.props;
1681
- t && (this.activated = !0, this.documentListeners.add(be.Click, ys, {
1681
+ t && (this.activated = !0, this.documentListeners.add(xe.Click, ys, {
1682
1682
  capture: !0
1683
- }), this.removeTextSelection(), this.documentListeners.add(be.SelectionChange, this.removeTextSelection), n(t));
1683
+ }), this.removeTextSelection(), this.documentListeners.add(xe.SelectionChange, this.removeTextSelection), n(t));
1684
1684
  }
1685
1685
  handleMove(t) {
1686
1686
  var n;
@@ -1696,20 +1696,20 @@ class Tn {
1696
1696
  } = s;
1697
1697
  if (!o)
1698
1698
  return;
1699
- const u = (n = mn(t)) != null ? n : Se, l = Yt(o, u);
1699
+ const l = (n = mn(t)) != null ? n : Se, u = Yt(o, l);
1700
1700
  if (!r && c) {
1701
1701
  if (or(c)) {
1702
- if (c.tolerance != null && ln(l, c.tolerance))
1702
+ if (c.tolerance != null && ln(u, c.tolerance))
1703
1703
  return this.handleCancel();
1704
- if (ln(l, c.distance))
1704
+ if (ln(u, c.distance))
1705
1705
  return this.handleStart();
1706
1706
  }
1707
- if (sr(c) && ln(l, c.tolerance))
1707
+ if (sr(c) && ln(u, c.tolerance))
1708
1708
  return this.handleCancel();
1709
- this.handlePending(c, l);
1709
+ this.handlePending(c, u);
1710
1710
  return;
1711
1711
  }
1712
- t.cancelable && t.preventDefault(), a(u);
1712
+ t.cancelable && t.preventDefault(), a(l);
1713
1713
  }
1714
1714
  handleEnd() {
1715
1715
  const {
@@ -1726,7 +1726,7 @@ class Tn {
1726
1726
  this.detach(), this.activated || t(this.props.active), n();
1727
1727
  }
1728
1728
  handleKeydown(t) {
1729
- t.code === H.Esc && this.handleCancel();
1729
+ t.code === V.Esc && this.handleCancel();
1730
1730
  }
1731
1731
  removeTextSelection() {
1732
1732
  var t;
@@ -1841,10 +1841,10 @@ var ft;
1841
1841
  (function(e) {
1842
1842
  e[e.Pointer = 0] = "Pointer", e[e.DraggableRect = 1] = "DraggableRect";
1843
1843
  })(ft || (ft = {}));
1844
- var Ht;
1844
+ var Vt;
1845
1845
  (function(e) {
1846
1846
  e[e.TreeOrder = 0] = "TreeOrder", e[e.ReversedTreeOrder = 1] = "ReversedTreeOrder";
1847
- })(Ht || (Ht = {}));
1847
+ })(Vt || (Vt = {}));
1848
1848
  function js(e) {
1849
1849
  let {
1850
1850
  acceleration: t,
@@ -1853,88 +1853,88 @@ function js(e) {
1853
1853
  draggingRect: o,
1854
1854
  enabled: s,
1855
1855
  interval: a = 5,
1856
- order: c = Ht.TreeOrder,
1857
- pointerCoordinates: u,
1858
- scrollableAncestors: l,
1859
- scrollableAncestorRects: h,
1856
+ order: c = Vt.TreeOrder,
1857
+ pointerCoordinates: l,
1858
+ scrollableAncestors: u,
1859
+ scrollableAncestorRects: f,
1860
1860
  delta: d,
1861
1861
  threshold: m
1862
1862
  } = e;
1863
1863
  const p = _s({
1864
1864
  delta: d,
1865
1865
  disabled: !s
1866
- }), [v, f] = Lo(), b = U({
1866
+ }), [v, h] = Lo(), b = U({
1867
1867
  x: 0,
1868
1868
  y: 0
1869
- }), x = U({
1869
+ }), w = U({
1870
1870
  x: 0,
1871
1871
  y: 0
1872
- }), E = B(() => {
1872
+ }), R = B(() => {
1873
1873
  switch (n) {
1874
1874
  case ft.Pointer:
1875
- return u ? {
1876
- top: u.y,
1877
- bottom: u.y,
1878
- left: u.x,
1879
- right: u.x
1875
+ return l ? {
1876
+ top: l.y,
1877
+ bottom: l.y,
1878
+ left: l.x,
1879
+ right: l.x
1880
1880
  } : null;
1881
1881
  case ft.DraggableRect:
1882
1882
  return o;
1883
1883
  }
1884
- }, [n, o, u]), R = U(null), T = le(() => {
1885
- const _ = R.current;
1886
- if (!_)
1884
+ }, [n, o, l]), E = U(null), _ = le(() => {
1885
+ const T = E.current;
1886
+ if (!T)
1887
1887
  return;
1888
- const $ = b.current.x * x.current.x, N = b.current.y * x.current.y;
1889
- _.scrollBy($, N);
1890
- }, []), O = B(() => c === Ht.TreeOrder ? [...l].reverse() : l, [c, l]);
1891
- V(
1888
+ const $ = b.current.x * w.current.x, N = b.current.y * w.current.y;
1889
+ T.scrollBy($, N);
1890
+ }, []), O = B(() => c === Vt.TreeOrder ? [...u].reverse() : u, [c, u]);
1891
+ H(
1892
1892
  () => {
1893
- if (!s || !l.length || !E) {
1894
- f();
1893
+ if (!s || !u.length || !R) {
1894
+ h();
1895
1895
  return;
1896
1896
  }
1897
- for (const _ of O) {
1898
- if (r?.(_) === !1)
1897
+ for (const T of O) {
1898
+ if (r?.(T) === !1)
1899
1899
  continue;
1900
- const $ = l.indexOf(_), N = h[$];
1900
+ const $ = u.indexOf(T), N = f[$];
1901
1901
  if (!N)
1902
1902
  continue;
1903
1903
  const {
1904
1904
  direction: W,
1905
1905
  speed: Y
1906
- } = hs(_, N, E, t, m);
1907
- for (const I of ["x", "y"])
1908
- p[I][W[I]] || (Y[I] = 0, W[I] = 0);
1906
+ } = hs(T, N, R, t, m);
1907
+ for (const k of ["x", "y"])
1908
+ p[k][W[k]] || (Y[k] = 0, W[k] = 0);
1909
1909
  if (Y.x > 0 || Y.y > 0) {
1910
- f(), R.current = _, v(T, a), b.current = Y, x.current = W;
1910
+ h(), E.current = T, v(_, a), b.current = Y, w.current = W;
1911
1911
  return;
1912
1912
  }
1913
1913
  }
1914
1914
  b.current = {
1915
1915
  x: 0,
1916
1916
  y: 0
1917
- }, x.current = {
1917
+ }, w.current = {
1918
1918
  x: 0,
1919
1919
  y: 0
1920
- }, f();
1920
+ }, h();
1921
1921
  },
1922
1922
  // eslint-disable-next-line react-hooks/exhaustive-deps
1923
1923
  [
1924
1924
  t,
1925
- T,
1925
+ _,
1926
1926
  r,
1927
- f,
1927
+ h,
1928
1928
  s,
1929
1929
  a,
1930
1930
  // eslint-disable-next-line react-hooks/exhaustive-deps
1931
- JSON.stringify(E),
1931
+ JSON.stringify(R),
1932
1932
  // eslint-disable-next-line react-hooks/exhaustive-deps
1933
1933
  JSON.stringify(p),
1934
1934
  v,
1935
- l,
1935
+ u,
1936
1936
  O,
1937
- h,
1937
+ f,
1938
1938
  // eslint-disable-next-line react-hooks/exhaustive-deps
1939
1939
  JSON.stringify(m)
1940
1940
  ]
@@ -1993,10 +1993,10 @@ function Os(e, t) {
1993
1993
  return [...n, ...s];
1994
1994
  }, []), [e, t]);
1995
1995
  }
1996
- var gt;
1996
+ var pt;
1997
1997
  (function(e) {
1998
1998
  e[e.Always = 0] = "Always", e[e.BeforeDragging = 1] = "BeforeDragging", e[e.WhileDragging = 2] = "WhileDragging";
1999
- })(gt || (gt = {}));
1999
+ })(pt || (pt = {}));
2000
2000
  var yn;
2001
2001
  (function(e) {
2002
2002
  e.Optimized = "optimized";
@@ -2010,44 +2010,44 @@ function Ms(e, t) {
2010
2010
  } = t;
2011
2011
  const [s, a] = oe(null), {
2012
2012
  frequency: c,
2013
- measure: u,
2014
- strategy: l
2015
- } = o, h = U(e), d = b(), m = pt(d), p = le(function(x) {
2016
- x === void 0 && (x = []), !m.current && a((E) => E === null ? x : E.concat(x.filter((R) => !E.includes(R))));
2017
- }, [m]), v = U(null), f = yt((x) => {
2013
+ measure: l,
2014
+ strategy: u
2015
+ } = o, f = U(e), d = b(), m = gt(d), p = le(function(w) {
2016
+ w === void 0 && (w = []), !m.current && a((R) => R === null ? w : R.concat(w.filter((E) => !R.includes(E))));
2017
+ }, [m]), v = U(null), h = yt((w) => {
2018
2018
  if (d && !n)
2019
2019
  return ir;
2020
- if (!x || x === ir || h.current !== e || s != null) {
2021
- const E = /* @__PURE__ */ new Map();
2022
- for (let R of e) {
2023
- if (!R)
2020
+ if (!w || w === ir || f.current !== e || s != null) {
2021
+ const R = /* @__PURE__ */ new Map();
2022
+ for (let E of e) {
2023
+ if (!E)
2024
2024
  continue;
2025
- if (s && s.length > 0 && !s.includes(R.id) && R.rect.current) {
2026
- E.set(R.id, R.rect.current);
2025
+ if (s && s.length > 0 && !s.includes(E.id) && E.rect.current) {
2026
+ R.set(E.id, E.rect.current);
2027
2027
  continue;
2028
2028
  }
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);
2029
+ const _ = E.node.current, O = _ ? new _n(l(_), _) : null;
2030
+ E.rect.current = O, O && R.set(E.id, O);
2031
2031
  }
2032
- return E;
2032
+ return R;
2033
2033
  }
2034
- return x;
2035
- }, [e, s, n, d, u]);
2036
- return V(() => {
2037
- h.current = e;
2038
- }, [e]), V(
2034
+ return w;
2035
+ }, [e, s, n, d, l]);
2036
+ return H(() => {
2037
+ f.current = e;
2038
+ }, [e]), H(
2039
2039
  () => {
2040
2040
  d || p();
2041
2041
  },
2042
2042
  // eslint-disable-next-line react-hooks/exhaustive-deps
2043
2043
  [n, d]
2044
- ), V(
2044
+ ), H(
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
- ), V(
2050
+ ), H(
2051
2051
  () => {
2052
2052
  d || typeof c != "number" || v.current !== null || (v.current = setTimeout(() => {
2053
2053
  p(), v.current = null;
@@ -2056,28 +2056,28 @@ function Ms(e, t) {
2056
2056
  // eslint-disable-next-line react-hooks/exhaustive-deps
2057
2057
  [c, d, p, ...r]
2058
2058
  ), {
2059
- droppableRects: f,
2059
+ droppableRects: h,
2060
2060
  measureDroppableContainers: p,
2061
2061
  measuringScheduled: s != null
2062
2062
  };
2063
2063
  function b() {
2064
- switch (l) {
2065
- case gt.Always:
2064
+ switch (u) {
2065
+ case pt.Always:
2066
2066
  return !1;
2067
- case gt.BeforeDragging:
2067
+ case pt.BeforeDragging:
2068
2068
  return n;
2069
2069
  default:
2070
2070
  return !n;
2071
2071
  }
2072
2072
  }
2073
2073
  }
2074
- function Hr(e, t) {
2074
+ function Vr(e, t) {
2075
2075
  return yt((n) => e ? n || (typeof t == "function" ? t(e) : e) : null, [t, e]);
2076
2076
  }
2077
2077
  function $s(e, t) {
2078
- return Hr(e, t);
2078
+ return Vr(e, t);
2079
2079
  }
2080
- function Is(e) {
2080
+ function ks(e) {
2081
2081
  let {
2082
2082
  callback: t,
2083
2083
  disabled: n
@@ -2090,7 +2090,7 @@ function Is(e) {
2090
2090
  } = window;
2091
2091
  return new s(r);
2092
2092
  }, [r, n]);
2093
- return V(() => () => o?.disconnect(), [o]), o;
2093
+ return H(() => () => o?.disconnect(), [o]), o;
2094
2094
  }
2095
2095
  function Xt(e) {
2096
2096
  let {
@@ -2109,35 +2109,35 @@ function Xt(e) {
2109
2109
  // eslint-disable-next-line react-hooks/exhaustive-deps
2110
2110
  [n]
2111
2111
  );
2112
- return V(() => () => o?.disconnect(), [o]), o;
2112
+ return H(() => () => o?.disconnect(), [o]), o;
2113
2113
  }
2114
- function ks(e) {
2114
+ function Is(e) {
2115
2115
  return new _n(nt(e), e);
2116
2116
  }
2117
2117
  function ar(e, t, n) {
2118
- t === void 0 && (t = ks);
2118
+ t === void 0 && (t = Is);
2119
2119
  const [r, o] = oe(null);
2120
2120
  function s() {
2121
- o((u) => {
2121
+ o((l) => {
2122
2122
  if (!e)
2123
2123
  return null;
2124
2124
  if (e.isConnected === !1) {
2125
- var l;
2126
- return (l = u ?? n) != null ? l : null;
2125
+ var u;
2126
+ return (u = l ?? n) != null ? u : null;
2127
2127
  }
2128
- const h = t(e);
2129
- return JSON.stringify(u) === JSON.stringify(h) ? u : h;
2128
+ const f = t(e);
2129
+ return JSON.stringify(l) === JSON.stringify(f) ? l : f;
2130
2130
  });
2131
2131
  }
2132
- const a = Is({
2133
- callback(u) {
2132
+ const a = ks({
2133
+ callback(l) {
2134
2134
  if (e)
2135
- for (const l of u) {
2135
+ for (const u of l) {
2136
2136
  const {
2137
- type: h,
2137
+ type: f,
2138
2138
  target: d
2139
- } = l;
2140
- if (h === "childList" && d instanceof HTMLElement && d.contains(e)) {
2139
+ } = u;
2140
+ if (f === "childList" && d instanceof HTMLElement && d.contains(e)) {
2141
2141
  s();
2142
2142
  break;
2143
2143
  }
@@ -2154,13 +2154,13 @@ function ar(e, t, n) {
2154
2154
  }, [e]), r;
2155
2155
  }
2156
2156
  function As(e) {
2157
- const t = Hr(e);
2158
- return Ir(e, t);
2157
+ const t = Vr(e);
2158
+ return kr(e, t);
2159
2159
  }
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 V(() => {
2163
+ return H(() => {
2164
2164
  t.current = e;
2165
2165
  }, [e]), n;
2166
2166
  }
@@ -2169,25 +2169,25 @@ 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 V(() => {
2172
+ return H(() => {
2173
2173
  const s = r.current;
2174
2174
  if (e !== s) {
2175
2175
  a(s);
2176
- const c = e.map((u) => {
2177
- const l = cn(u);
2178
- return l ? (l.addEventListener("scroll", o, {
2176
+ const c = e.map((l) => {
2177
+ const u = cn(l);
2178
+ return u ? (u.addEventListener("scroll", o, {
2179
2179
  passive: !0
2180
- }), [l, bn(l)]) : null;
2181
- }).filter((u) => u != null);
2180
+ }), [u, bn(u)]) : null;
2181
+ }).filter((l) => l != null);
2182
2182
  n(c.length ? new Map(c) : null), r.current = e;
2183
2183
  }
2184
2184
  return () => {
2185
2185
  a(e), a(s);
2186
2186
  };
2187
2187
  function a(c) {
2188
- c.forEach((u) => {
2189
- const l = cn(u);
2190
- l?.removeEventListener("scroll", o);
2188
+ c.forEach((l) => {
2189
+ const u = cn(l);
2190
+ u?.removeEventListener("scroll", o);
2191
2191
  });
2192
2192
  }
2193
2193
  }, [o, e]), B(() => e.length ? t ? Array.from(t.values()).reduce((s, a) => Je(s, a), Se) : Pr(e) : Se, [e, t]);
@@ -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 V(
2198
+ return H(
2199
2199
  () => {
2200
2200
  n.current = null;
2201
2201
  },
2202
2202
  // eslint-disable-next-line react-hooks/exhaustive-deps
2203
2203
  t
2204
- ), V(() => {
2204
+ ), H(() => {
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
- V(
2210
+ H(
2211
2211
  () => {
2212
2212
  if (!Gt)
2213
2213
  return;
@@ -2243,21 +2243,21 @@ function Ps(e, t) {
2243
2243
  }, n;
2244
2244
  }, {}), [e, t]);
2245
2245
  }
2246
- function Vr(e) {
2246
+ function Hr(e) {
2247
2247
  return B(() => e ? ls(e) : null, [e]);
2248
2248
  }
2249
2249
  const ur = [];
2250
2250
  function Ys(e, t) {
2251
2251
  t === void 0 && (t = nt);
2252
- const [n] = e, r = Vr(n ? he(n) : null), [o, s] = oe(ur);
2252
+ const [n] = e, r = Hr(n ? he(n) : null), [o, s] = oe(ur);
2253
2253
  function a() {
2254
- s(() => e.length ? e.map((u) => Nr(u) ? r : new _n(t(u), u)) : ur);
2254
+ s(() => e.length ? e.map((l) => Nr(l) ? r : new _n(t(l), l)) : ur);
2255
2255
  }
2256
2256
  const c = Xt({
2257
2257
  callback: a
2258
2258
  });
2259
2259
  return Te(() => {
2260
- c?.disconnect(), a(), e.forEach((u) => c?.observe(u));
2260
+ c?.disconnect(), a(), e.forEach((l) => c?.observe(l));
2261
2261
  }, [e]), o;
2262
2262
  }
2263
2263
  function Fs(e) {
@@ -2268,17 +2268,17 @@ function Fs(e) {
2268
2268
  const t = e.children[0];
2269
2269
  return xt(t) ? t : e;
2270
2270
  }
2271
- function Hs(e) {
2271
+ function Vs(e) {
2272
2272
  let {
2273
2273
  measure: t
2274
2274
  } = e;
2275
- const [n, r] = oe(null), o = le((l) => {
2275
+ const [n, r] = oe(null), o = le((u) => {
2276
2276
  for (const {
2277
- target: h
2278
- } of l)
2279
- if (xt(h)) {
2277
+ target: f
2278
+ } of u)
2279
+ if (xt(f)) {
2280
2280
  r((d) => {
2281
- const m = t(h);
2281
+ const m = t(f);
2282
2282
  return d ? {
2283
2283
  ...d,
2284
2284
  width: m.width,
@@ -2289,17 +2289,17 @@ function Hs(e) {
2289
2289
  }
2290
2290
  }, [t]), s = Xt({
2291
2291
  callback: o
2292
- }), a = le((l) => {
2293
- const h = Fs(l);
2294
- s?.disconnect(), h && s?.observe(h), r(h ? t(h) : null);
2295
- }, [t, s]), [c, u] = Pt(a);
2292
+ }), a = le((u) => {
2293
+ const f = Fs(u);
2294
+ s?.disconnect(), f && s?.observe(f), r(f ? t(f) : null);
2295
+ }, [t, s]), [c, l] = Pt(a);
2296
2296
  return B(() => ({
2297
2297
  nodeRef: c,
2298
2298
  rect: n,
2299
- setRef: u
2300
- }), [n, c, u]);
2299
+ setRef: l
2300
+ }), [n, c, l]);
2301
2301
  }
2302
- const Vs = [{
2302
+ const Hs = [{
2303
2303
  sensor: On,
2304
2304
  options: {}
2305
2305
  }, {
@@ -2313,7 +2313,7 @@ const Vs = [{
2313
2313
  },
2314
2314
  droppable: {
2315
2315
  measure: nr,
2316
- strategy: gt.WhileDragging,
2316
+ strategy: pt.WhileDragging,
2317
2317
  frequency: yn.Optimized
2318
2318
  },
2319
2319
  dragOverlay: {
@@ -2498,8 +2498,8 @@ function qs(e) {
2498
2498
  active: n,
2499
2499
  activatorEvent: r,
2500
2500
  draggableNodes: o
2501
- } = Ve(qt), s = vn(r), a = vn(n?.id);
2502
- return V(() => {
2501
+ } = He(qt), s = vn(r), a = vn(n?.id);
2502
+ return H(() => {
2503
2503
  if (!t && !r && s && a != null) {
2504
2504
  if (!jn(s) || document.activeElement === s.target)
2505
2505
  return;
@@ -2507,16 +2507,16 @@ function qs(e) {
2507
2507
  if (!c)
2508
2508
  return;
2509
2509
  const {
2510
- activatorNode: u,
2511
- node: l
2510
+ activatorNode: l,
2511
+ node: u
2512
2512
  } = c;
2513
- if (!u.current && !l.current)
2513
+ if (!l.current && !u.current)
2514
2514
  return;
2515
2515
  requestAnimationFrame(() => {
2516
- for (const h of [u.current, l.current]) {
2517
- if (!h)
2516
+ for (const f of [l.current, u.current]) {
2517
+ if (!f)
2518
2518
  continue;
2519
- const d = Po(h);
2519
+ const d = Po(f);
2520
2520
  if (d) {
2521
2521
  d.focus();
2522
2522
  break;
@@ -2577,12 +2577,12 @@ function Zs(e) {
2577
2577
  }
2578
2578
  if (s.current || !r)
2579
2579
  return;
2580
- const l = t?.node.current;
2581
- if (!l || l.isConnected === !1)
2580
+ const u = t?.node.current;
2581
+ if (!u || u.isConnected === !1)
2582
2582
  return;
2583
- const h = n(l), d = Ir(h, r);
2583
+ const f = n(u), d = kr(f, r);
2584
2584
  if (a || (d.x = 0), c || (d.y = 0), s.current = !0, Math.abs(d.x) > 0 || Math.abs(d.y) > 0) {
2585
- const m = kr(l);
2585
+ const m = Ir(u);
2586
2586
  m && m.scrollBy({
2587
2587
  top: d.y,
2588
2588
  left: d.x
@@ -2599,20 +2599,20 @@ var Fe;
2599
2599
  (function(e) {
2600
2600
  e[e.Uninitialized = 0] = "Uninitialized", e[e.Initializing = 1] = "Initializing", e[e.Initialized = 2] = "Initialized";
2601
2601
  })(Fe || (Fe = {}));
2602
- const Ur = /* @__PURE__ */ go(function(t) {
2602
+ const Ur = /* @__PURE__ */ po(function(t) {
2603
2603
  var n, r, o, s;
2604
2604
  let {
2605
2605
  id: a,
2606
2606
  accessibility: c,
2607
- autoScroll: u = !0,
2608
- children: l,
2609
- sensors: h = Vs,
2607
+ autoScroll: l = !0,
2608
+ children: u,
2609
+ sensors: f = Hs,
2610
2610
  collisionDetection: d = ns,
2611
2611
  measuring: m,
2612
2612
  modifiers: p,
2613
2613
  ...v
2614
2614
  } = t;
2615
- const f = vo(Xs, void 0, Gs), [b, x] = f, [E, R] = Bo(), [T, O] = oe(Fe.Uninitialized), _ = T === Fe.Initialized, {
2615
+ const h = vo(Xs, void 0, Gs), [b, w] = h, [R, E] = Bo(), [_, O] = oe(Fe.Uninitialized), T = _ === Fe.Initialized, {
2616
2616
  draggable: {
2617
2617
  active: $,
2618
2618
  nodes: N,
@@ -2621,7 +2621,7 @@ const Ur = /* @__PURE__ */ go(function(t) {
2621
2621
  droppable: {
2622
2622
  containers: Y
2623
2623
  }
2624
- } = b, I = $ != null ? N.get($) : null, Q = U({
2624
+ } = b, k = $ != null ? N.get($) : null, Q = U({
2625
2625
  initial: null,
2626
2626
  translated: null
2627
2627
  }), se = B(() => {
@@ -2629,15 +2629,15 @@ const Ur = /* @__PURE__ */ go(function(t) {
2629
2629
  return $ != null ? {
2630
2630
  id: $,
2631
2631
  // It's possible for the active node to unmount while dragging
2632
- data: (ce = I?.data) != null ? ce : Ws,
2632
+ data: (ce = k?.data) != null ? ce : Ws,
2633
2633
  rect: Q
2634
2634
  } : null;
2635
- }, [$, I]), M = U(null), [D, w] = oe(null), [j, C] = oe(null), k = pt(v, Object.values(v)), L = wt("DndDescribedBy", a), g = B(() => Y.getEnabled(), [Y]), S = Js(m), {
2635
+ }, [$, k]), M = U(null), [D, y] = oe(null), [j, C] = oe(null), I = gt(v, Object.values(v)), L = wt("DndDescribedBy", a), g = B(() => Y.getEnabled(), [Y]), S = Js(m), {
2636
2636
  droppableRects: A,
2637
2637
  measureDroppableContainers: P,
2638
2638
  measuringScheduled: G
2639
2639
  } = Ms(g, {
2640
- dragging: _,
2640
+ dragging: T,
2641
2641
  dependencies: [W.x, W.y],
2642
2642
  config: S.droppable
2643
2643
  }), X = Ts(N, $), F = B(() => j ? mn(j) : null, [j]), J = ho(), Z = $s(X, S.draggable.measure);
@@ -2661,12 +2661,12 @@ const Ur = /* @__PURE__ */ go(function(t) {
2661
2661
  over: null,
2662
2662
  scrollableAncestors: [],
2663
2663
  scrollAdjustedTranslate: null
2664
- }), ye = Y.getNodeFor((n = ae.current.over) == null ? void 0 : n.id), $e = Hs({
2664
+ }), ye = Y.getNodeFor((n = ae.current.over) == null ? void 0 : n.id), $e = Vs({
2665
2665
  measure: S.dragOverlay.measure
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(p, {
2666
+ }), Be = (r = $e.nodeRef.current) != null ? r : X, Ue = T ? (o = $e.rect) != null ? o : z : null, kn = !!($e.nodeRef.current && $e.rect), In = As(kn ? null : z), Zt = Hr(Be ? he(Be) : null), Le = Ls(T ? ye ?? X : null), St = Ys(Le), Dt = Ks(p, {
2667
2667
  transform: {
2668
- x: W.x - kn.x,
2669
- y: W.y - kn.y,
2668
+ x: W.x - In.x,
2669
+ y: W.y - In.y,
2670
2670
  scaleX: 1,
2671
2671
  scaleY: 1
2672
2672
  },
@@ -2686,20 +2686,20 @@ const Ur = /* @__PURE__ */ go(function(t) {
2686
2686
  droppableRects: A,
2687
2687
  droppableContainers: g,
2688
2688
  pointerCoordinates: An
2689
- }) : null, Nn = es(rt, "id"), [Ne, zn] = oe(null), ao = In ? Dt : Je(Dt, io), co = rs(ao, (s = Ne?.rect) != null ? s : null, z), Qt = U(null), Pn = le(
2690
- (ce, pe) => {
2689
+ }) : null, Nn = es(rt, "id"), [Ne, zn] = oe(null), ao = kn ? Dt : Je(Dt, io), co = rs(ao, (s = Ne?.rect) != null ? s : null, z), Qt = U(null), Pn = le(
2690
+ (ce, ge) => {
2691
2691
  let {
2692
- sensor: ge,
2692
+ sensor: pe,
2693
2693
  options: ze
2694
- } = pe;
2694
+ } = ge;
2695
2695
  if (M.current == null)
2696
2696
  return;
2697
- const me = N.get(M.current);
2698
- if (!me)
2697
+ const be = N.get(M.current);
2698
+ if (!be)
2699
2699
  return;
2700
- const ve = ce.nativeEvent, Ce = new ge({
2700
+ const ve = ce.nativeEvent, Ce = new pe({
2701
2701
  active: M.current,
2702
- activeNode: me,
2702
+ activeNode: be,
2703
2703
  event: ve,
2704
2704
  options: ze,
2705
2705
  // Sensors need to be instantiated with refs for arguments that change over time
@@ -2710,26 +2710,26 @@ const Ur = /* @__PURE__ */ go(function(t) {
2710
2710
  return;
2711
2711
  const {
2712
2712
  onDragAbort: Re
2713
- } = k.current, Ie = {
2713
+ } = I.current, ke = {
2714
2714
  id: ie
2715
2715
  };
2716
- Re?.(Ie), E({
2716
+ Re?.(ke), R({
2717
2717
  type: "onDragAbort",
2718
- event: Ie
2718
+ event: ke
2719
2719
  });
2720
2720
  },
2721
- onPending(ie, Pe, Re, Ie) {
2721
+ onPending(ie, Pe, Re, ke) {
2722
2722
  if (!N.get(ie))
2723
2723
  return;
2724
2724
  const {
2725
2725
  onDragPending: st
2726
- } = k.current, Ye = {
2726
+ } = I.current, Ye = {
2727
2727
  id: ie,
2728
2728
  constraint: Pe,
2729
2729
  initialCoordinates: Re,
2730
- offset: Ie
2730
+ offset: ke
2731
2731
  };
2732
- st?.(Ye), E({
2732
+ st?.(Ye), R({
2733
2733
  type: "onDragPending",
2734
2734
  event: Ye
2735
2735
  });
@@ -2742,8 +2742,8 @@ const Ur = /* @__PURE__ */ go(function(t) {
2742
2742
  if (!Re)
2743
2743
  return;
2744
2744
  const {
2745
- onDragStart: Ie
2746
- } = k.current, ot = {
2745
+ onDragStart: ke
2746
+ } = I.current, ot = {
2747
2747
  activatorEvent: ve,
2748
2748
  active: {
2749
2749
  id: Pe,
@@ -2752,18 +2752,18 @@ const Ur = /* @__PURE__ */ go(function(t) {
2752
2752
  }
2753
2753
  };
2754
2754
  Ct(() => {
2755
- Ie?.(ot), O(Fe.Initializing), x({
2755
+ ke?.(ot), O(Fe.Initializing), w({
2756
2756
  type: te.DragStart,
2757
2757
  initialCoordinates: ie,
2758
2758
  active: Pe
2759
- }), E({
2759
+ }), R({
2760
2760
  type: "onDragStart",
2761
2761
  event: ot
2762
- }), w(Qt.current), C(ve);
2762
+ }), y(Qt.current), C(ve);
2763
2763
  });
2764
2764
  },
2765
2765
  onMove(ie) {
2766
- x({
2766
+ w({
2767
2767
  type: te.DragMove,
2768
2768
  coordinates: ie
2769
2769
  });
@@ -2776,7 +2776,7 @@ const Ur = /* @__PURE__ */ go(function(t) {
2776
2776
  return async function() {
2777
2777
  const {
2778
2778
  active: Re,
2779
- collisions: Ie,
2779
+ collisions: ke,
2780
2780
  over: ot,
2781
2781
  scrollAdjustedTranslate: st
2782
2782
  } = ae.current;
@@ -2784,23 +2784,23 @@ const Ur = /* @__PURE__ */ go(function(t) {
2784
2784
  if (Re && st) {
2785
2785
  const {
2786
2786
  cancelDrop: it
2787
- } = k.current;
2787
+ } = I.current;
2788
2788
  Ye = {
2789
2789
  activatorEvent: ve,
2790
2790
  active: Re,
2791
- collisions: Ie,
2791
+ collisions: ke,
2792
2792
  delta: st,
2793
2793
  over: ot
2794
2794
  }, ie === te.DragEnd && typeof it == "function" && await Promise.resolve(it(Ye)) && (ie = te.DragCancel);
2795
2795
  }
2796
2796
  M.current = null, Ct(() => {
2797
- x({
2797
+ w({
2798
2798
  type: ie
2799
- }), O(Fe.Uninitialized), zn(null), w(null), C(null), Qt.current = null;
2799
+ }), O(Fe.Uninitialized), zn(null), y(null), C(null), Qt.current = null;
2800
2800
  const it = ie === te.DragEnd ? "onDragEnd" : "onDragCancel";
2801
2801
  if (Ye) {
2802
- const en = k.current[it];
2803
- en?.(Ye), E({
2802
+ const en = I.current[it];
2803
+ en?.(Ye), R({
2804
2804
  type: it,
2805
2805
  event: Ye
2806
2806
  });
@@ -2811,48 +2811,48 @@ const Ur = /* @__PURE__ */ go(function(t) {
2811
2811
  },
2812
2812
  // eslint-disable-next-line react-hooks/exhaustive-deps
2813
2813
  [N]
2814
- ), lo = le((ce, pe) => (ge, ze) => {
2815
- const me = ge.nativeEvent, ve = N.get(ze);
2814
+ ), lo = le((ce, ge) => (pe, ze) => {
2815
+ const be = pe.nativeEvent, ve = N.get(ze);
2816
2816
  if (
2817
2817
  // Another sensor is already instantiating
2818
2818
  M.current !== null || // No active draggable
2819
2819
  !ve || // Event has already been captured
2820
- me.dndKit || me.defaultPrevented
2820
+ be.dndKit || be.defaultPrevented
2821
2821
  )
2822
2822
  return;
2823
2823
  const Ce = {
2824
2824
  active: ve
2825
2825
  };
2826
- ce(ge, pe.options, Ce) === !0 && (me.dndKit = {
2827
- capturedBy: pe.sensor
2828
- }, M.current = ze, Pn(ge, pe));
2829
- }, [N, Pn]), Yn = Os(h, lo);
2830
- zs(h), Te(() => {
2831
- z && T === Fe.Initializing && O(Fe.Initialized);
2832
- }, [z, T]), V(
2826
+ ce(pe, ge.options, Ce) === !0 && (be.dndKit = {
2827
+ capturedBy: ge.sensor
2828
+ }, M.current = ze, Pn(pe, ge));
2829
+ }, [N, Pn]), Yn = Os(f, lo);
2830
+ zs(f), Te(() => {
2831
+ z && _ === Fe.Initializing && O(Fe.Initialized);
2832
+ }, [z, _]), H(
2833
2833
  () => {
2834
2834
  const {
2835
2835
  onDragMove: ce
2836
- } = k.current, {
2837
- active: pe,
2838
- activatorEvent: ge,
2836
+ } = I.current, {
2837
+ active: ge,
2838
+ activatorEvent: pe,
2839
2839
  collisions: ze,
2840
- over: me
2840
+ over: be
2841
2841
  } = ae.current;
2842
- if (!pe || !ge)
2842
+ if (!ge || !pe)
2843
2843
  return;
2844
2844
  const ve = {
2845
- active: pe,
2846
- activatorEvent: ge,
2845
+ active: ge,
2846
+ activatorEvent: pe,
2847
2847
  collisions: ze,
2848
2848
  delta: {
2849
2849
  x: Ge.x,
2850
2850
  y: Ge.y
2851
2851
  },
2852
- over: me
2852
+ over: be
2853
2853
  };
2854
2854
  Ct(() => {
2855
- ce?.(ve), E({
2855
+ ce?.(ve), R({
2856
2856
  type: "onDragMove",
2857
2857
  event: ve
2858
2858
  });
@@ -2860,36 +2860,36 @@ const Ur = /* @__PURE__ */ go(function(t) {
2860
2860
  },
2861
2861
  // eslint-disable-next-line react-hooks/exhaustive-deps
2862
2862
  [Ge.x, Ge.y]
2863
- ), V(
2863
+ ), H(
2864
2864
  () => {
2865
2865
  const {
2866
2866
  active: ce,
2867
- activatorEvent: pe,
2868
- collisions: ge,
2867
+ activatorEvent: ge,
2868
+ collisions: pe,
2869
2869
  droppableContainers: ze,
2870
- scrollAdjustedTranslate: me
2870
+ scrollAdjustedTranslate: be
2871
2871
  } = ae.current;
2872
- if (!ce || M.current == null || !pe || !me)
2872
+ if (!ce || M.current == null || !ge || !be)
2873
2873
  return;
2874
2874
  const {
2875
2875
  onDragOver: ve
2876
- } = k.current, Ce = ze.get(Nn), qe = Ce && Ce.rect.current ? {
2876
+ } = I.current, Ce = ze.get(Nn), qe = Ce && Ce.rect.current ? {
2877
2877
  id: Ce.id,
2878
2878
  rect: Ce.rect.current,
2879
2879
  data: Ce.data,
2880
2880
  disabled: Ce.disabled
2881
2881
  } : null, ie = {
2882
2882
  active: ce,
2883
- activatorEvent: pe,
2884
- collisions: ge,
2883
+ activatorEvent: ge,
2884
+ collisions: pe,
2885
2885
  delta: {
2886
- x: me.x,
2887
- y: me.y
2886
+ x: be.x,
2887
+ y: be.y
2888
2888
  },
2889
2889
  over: qe
2890
2890
  };
2891
2891
  Ct(() => {
2892
- zn(qe), ve?.(ie), E({
2892
+ zn(qe), ve?.(ie), R({
2893
2893
  type: "onDragOver",
2894
2894
  event: ie
2895
2895
  });
@@ -2950,32 +2950,32 @@ const Ur = /* @__PURE__ */ go(function(t) {
2950
2950
  ariaDescribedById: {
2951
2951
  draggable: L
2952
2952
  },
2953
- dispatch: x,
2953
+ dispatch: w,
2954
2954
  draggableNodes: N,
2955
2955
  over: Ne,
2956
2956
  measureDroppableContainers: P
2957
- }), [j, Yn, se, z, x, L, N, Ne, P]);
2957
+ }), [j, Yn, se, z, w, L, N, Ne, P]);
2958
2958
  return ne.createElement(Mr.Provider, {
2959
- value: R
2959
+ value: E
2960
2960
  }, ne.createElement(qt.Provider, {
2961
2961
  value: fo
2962
2962
  }, ne.createElement(Wr.Provider, {
2963
2963
  value: uo
2964
2964
  }, ne.createElement(Br.Provider, {
2965
2965
  value: co
2966
- }, l)), ne.createElement(qs, {
2966
+ }, u)), ne.createElement(qs, {
2967
2967
  disabled: c?.restoreFocus === !1
2968
2968
  })), ne.createElement(Xo, {
2969
2969
  ...c,
2970
2970
  hiddenTextDescribedById: L
2971
2971
  }));
2972
2972
  function ho() {
2973
- const ce = D?.autoScrollEnabled === !1, pe = typeof u == "object" ? u.enabled === !1 : u === !1, ge = _ && !ce && !pe;
2974
- return typeof u == "object" ? {
2975
- ...u,
2976
- enabled: ge
2973
+ const ce = D?.autoScrollEnabled === !1, ge = typeof l == "object" ? l.enabled === !1 : l === !1, pe = T && !ce && !ge;
2974
+ return typeof l == "object" ? {
2975
+ ...l,
2976
+ enabled: pe
2977
2977
  } : {
2978
- enabled: ge
2978
+ enabled: pe
2979
2979
  };
2980
2980
  }
2981
2981
  }), Qs = /* @__PURE__ */ vt(null), dr = "button", ei = "Draggable";
@@ -2989,22 +2989,22 @@ function ti(e) {
2989
2989
  const s = wt(ei), {
2990
2990
  activators: a,
2991
2991
  activatorEvent: c,
2992
- active: u,
2993
- activeNodeRect: l,
2994
- ariaDescribedById: h,
2992
+ active: l,
2993
+ activeNodeRect: u,
2994
+ ariaDescribedById: f,
2995
2995
  draggableNodes: d,
2996
2996
  over: m
2997
- } = Ve(qt), {
2997
+ } = He(qt), {
2998
2998
  role: p = dr,
2999
2999
  roleDescription: v = "draggable",
3000
- tabIndex: f = 0
3001
- } = o ?? {}, b = u?.id === t, x = Ve(b ? Br : Qs), [E, R] = Pt(), [T, O] = Pt(), _ = Ps(a, t), $ = pt(n);
3000
+ tabIndex: h = 0
3001
+ } = o ?? {}, b = l?.id === t, w = He(b ? Br : Qs), [R, E] = Pt(), [_, O] = Pt(), T = Ps(a, t), $ = gt(n);
3002
3002
  Te(
3003
3003
  () => (d.set(t, {
3004
3004
  id: t,
3005
3005
  key: s,
3006
- node: E,
3007
- activatorNode: T,
3006
+ node: R,
3007
+ activatorNode: _,
3008
3008
  data: $
3009
3009
  }), () => {
3010
3010
  const W = d.get(t);
@@ -3015,28 +3015,28 @@ function ti(e) {
3015
3015
  );
3016
3016
  const N = B(() => ({
3017
3017
  role: p,
3018
- tabIndex: f,
3018
+ tabIndex: h,
3019
3019
  "aria-disabled": r,
3020
3020
  "aria-pressed": b && p === dr ? !0 : void 0,
3021
3021
  "aria-roledescription": v,
3022
- "aria-describedby": h.draggable
3023
- }), [r, p, f, b, v, h.draggable]);
3022
+ "aria-describedby": f.draggable
3023
+ }), [r, p, h, b, v, f.draggable]);
3024
3024
  return {
3025
- active: u,
3025
+ active: l,
3026
3026
  activatorEvent: c,
3027
- activeNodeRect: l,
3027
+ activeNodeRect: u,
3028
3028
  attributes: N,
3029
3029
  isDragging: b,
3030
- listeners: r ? void 0 : _,
3031
- node: E,
3030
+ listeners: r ? void 0 : T,
3031
+ node: R,
3032
3032
  over: m,
3033
- setNodeRef: R,
3033
+ setNodeRef: E,
3034
3034
  setActivatorNodeRef: O,
3035
- transform: x
3035
+ transform: w
3036
3036
  };
3037
3037
  }
3038
3038
  function ni() {
3039
- return Ve(Wr);
3039
+ return He(Wr);
3040
3040
  }
3041
3041
  const ri = "Droppable", oi = {
3042
3042
  timeout: 25
@@ -3051,38 +3051,38 @@ function si(e) {
3051
3051
  const s = wt(ri), {
3052
3052
  active: a,
3053
3053
  dispatch: c,
3054
- over: u,
3055
- measureDroppableContainers: l
3056
- } = Ve(qt), h = U({
3054
+ over: l,
3055
+ measureDroppableContainers: u
3056
+ } = He(qt), f = U({
3057
3057
  disabled: n
3058
3058
  }), d = U(!1), m = U(null), p = U(null), {
3059
3059
  disabled: v,
3060
- updateMeasurementsFor: f,
3060
+ updateMeasurementsFor: h,
3061
3061
  timeout: b
3062
3062
  } = {
3063
3063
  ...oi,
3064
3064
  ...o
3065
- }, x = pt(f ?? r), E = le(
3065
+ }, w = gt(h ?? r), R = le(
3066
3066
  () => {
3067
3067
  if (!d.current) {
3068
3068
  d.current = !0;
3069
3069
  return;
3070
3070
  }
3071
3071
  p.current != null && clearTimeout(p.current), p.current = setTimeout(() => {
3072
- l(Array.isArray(x.current) ? x.current : [x.current]), p.current = null;
3072
+ u(Array.isArray(w.current) ? w.current : [w.current]), p.current = null;
3073
3073
  }, b);
3074
3074
  },
3075
3075
  //eslint-disable-next-line react-hooks/exhaustive-deps
3076
3076
  [b]
3077
- ), R = Xt({
3078
- callback: E,
3077
+ ), E = Xt({
3078
+ callback: R,
3079
3079
  disabled: v || !a
3080
- }), T = le((N, W) => {
3081
- R && (W && (R.unobserve(W), d.current = !1), N && R.observe(N));
3082
- }, [R]), [O, _] = Pt(T), $ = pt(t);
3083
- return V(() => {
3084
- !R || !O.current || (R.disconnect(), d.current = !1, R.observe(O.current));
3085
- }, [O, R]), V(
3080
+ }), _ = le((N, W) => {
3081
+ E && (W && (E.unobserve(W), d.current = !1), N && E.observe(N));
3082
+ }, [E]), [O, T] = Pt(_), $ = gt(t);
3083
+ return H(() => {
3084
+ !E || !O.current || (E.disconnect(), d.current = !1, E.observe(O.current));
3085
+ }, [O, E]), H(
3086
3086
  () => (c({
3087
3087
  type: te.RegisterDroppable,
3088
3088
  element: {
@@ -3100,20 +3100,20 @@ function si(e) {
3100
3100
  })),
3101
3101
  // eslint-disable-next-line react-hooks/exhaustive-deps
3102
3102
  [r]
3103
- ), V(() => {
3104
- n !== h.current.disabled && (c({
3103
+ ), H(() => {
3104
+ n !== f.current.disabled && (c({
3105
3105
  type: te.SetDroppableDisabled,
3106
3106
  id: r,
3107
3107
  key: s,
3108
3108
  disabled: n
3109
- }), h.current.disabled = n);
3109
+ }), f.current.disabled = n);
3110
3110
  }, [r, s, n, c]), {
3111
3111
  active: a,
3112
3112
  rect: m,
3113
- isOver: u?.id === r,
3113
+ isOver: l?.id === r,
3114
3114
  node: O,
3115
- over: u,
3116
- setNodeRef: _
3115
+ over: l,
3116
+ setNodeRef: T
3117
3117
  };
3118
3118
  }
3119
3119
  function Kt(e, t, n) {
@@ -3160,21 +3160,21 @@ const Ot = {
3160
3160
  const c = (t = n[o]) != null ? t : r;
3161
3161
  if (!c)
3162
3162
  return null;
3163
- const u = ui(n, a, o);
3163
+ const l = ui(n, a, o);
3164
3164
  if (a === o) {
3165
- const l = n[s];
3166
- return l ? {
3167
- x: o < s ? l.left + l.width - (c.left + c.width) : l.left - c.left,
3165
+ const u = n[s];
3166
+ return u ? {
3167
+ x: o < s ? u.left + u.width - (c.left + c.width) : u.left - c.left,
3168
3168
  y: 0,
3169
3169
  ...Ot
3170
3170
  } : null;
3171
3171
  }
3172
3172
  return a > o && a <= s ? {
3173
- x: -c.width - u,
3173
+ x: -c.width - l,
3174
3174
  y: 0,
3175
3175
  ...Ot
3176
3176
  } : a < o && a >= s ? {
3177
- x: c.width + u,
3177
+ x: c.width + l,
3178
3178
  y: 0,
3179
3179
  ...Ot
3180
3180
  } : {
@@ -3217,21 +3217,21 @@ const Gr = (e) => {
3217
3217
  if (!c)
3218
3218
  return null;
3219
3219
  if (o === n) {
3220
- const l = s[a];
3221
- return l ? {
3220
+ const u = s[a];
3221
+ return u ? {
3222
3222
  x: 0,
3223
- y: n < a ? l.top + l.height - (c.top + c.height) : l.top - c.top,
3223
+ y: n < a ? u.top + u.height - (c.top + c.height) : u.top - c.top,
3224
3224
  ...Mt
3225
3225
  } : null;
3226
3226
  }
3227
- const u = fi(s, o, n);
3227
+ const l = fi(s, o, n);
3228
3228
  return o > n && o <= a ? {
3229
3229
  x: 0,
3230
- y: -c.height - u,
3230
+ y: -c.height - l,
3231
3231
  ...Mt
3232
3232
  } : o < n && o >= a ? {
3233
3233
  x: 0,
3234
- y: c.height + u,
3234
+ y: c.height + l,
3235
3235
  ...Mt
3236
3236
  } : {
3237
3237
  x: 0,
@@ -3268,29 +3268,29 @@ function Kr(e) {
3268
3268
  const {
3269
3269
  active: a,
3270
3270
  dragOverlay: c,
3271
- droppableRects: u,
3272
- over: l,
3273
- measureDroppableContainers: h
3274
- } = ni(), d = wt(Xr, n), m = c.rect !== null, p = B(() => r.map((_) => typeof _ == "object" && "id" in _ ? _.id : _), [r]), v = a != null, f = a ? p.indexOf(a.id) : -1, b = l ? p.indexOf(l.id) : -1, x = U(p), E = !ai(p, x.current), R = b !== -1 && f === -1 || E, T = ci(s);
3271
+ droppableRects: l,
3272
+ over: u,
3273
+ measureDroppableContainers: f
3274
+ } = ni(), d = wt(Xr, n), m = c.rect !== null, p = B(() => r.map((T) => typeof T == "object" && "id" in T ? T.id : T), [r]), v = a != null, h = a ? p.indexOf(a.id) : -1, b = u ? p.indexOf(u.id) : -1, w = U(p), R = !ai(p, w.current), E = b !== -1 && h === -1 || R, _ = ci(s);
3275
3275
  Te(() => {
3276
- E && v && h(p);
3277
- }, [E, p, v, h]), V(() => {
3278
- x.current = p;
3276
+ R && v && f(p);
3277
+ }, [R, p, v, f]), H(() => {
3278
+ w.current = p;
3279
3279
  }, [p]);
3280
3280
  const O = B(
3281
3281
  () => ({
3282
- activeIndex: f,
3282
+ activeIndex: h,
3283
3283
  containerId: d,
3284
- disabled: T,
3285
- disableTransforms: R,
3284
+ disabled: _,
3285
+ disableTransforms: E,
3286
3286
  items: p,
3287
3287
  overIndex: b,
3288
3288
  useDragOverlay: m,
3289
- sortedRects: ii(p, u),
3289
+ sortedRects: ii(p, l),
3290
3290
  strategy: o
3291
3291
  }),
3292
3292
  // eslint-disable-next-line react-hooks/exhaustive-deps
3293
- [f, d, T.draggable, T.droppable, R, p, b, u, m, o]
3293
+ [h, d, _.draggable, _.droppable, E, p, b, l, m, o]
3294
3294
  );
3295
3295
  return ne.createElement(qr.Provider, {
3296
3296
  value: O
@@ -3304,7 +3304,7 @@ const hi = (e) => {
3304
3304
  overIndex: o
3305
3305
  } = e;
3306
3306
  return Kt(n, r, o).indexOf(t);
3307
- }, pi = (e) => {
3307
+ }, gi = (e) => {
3308
3308
  let {
3309
3309
  containerId: t,
3310
3310
  isSorting: n,
@@ -3313,11 +3313,11 @@ const hi = (e) => {
3313
3313
  items: s,
3314
3314
  newIndex: a,
3315
3315
  previousItems: c,
3316
- previousContainerId: u,
3317
- transition: l
3316
+ previousContainerId: l,
3317
+ transition: u
3318
3318
  } = e;
3319
- return !l || !r || c !== s && o === a ? !1 : n ? !0 : a !== o && t === u;
3320
- }, gi = {
3319
+ return !u || !r || c !== s && o === a ? !1 : n ? !0 : a !== o && t === l;
3320
+ }, pi = {
3321
3321
  duration: 200,
3322
3322
  easing: "ease"
3323
3323
  }, Jr = "transform", vi = /* @__PURE__ */ Ze.Transition.toString({
@@ -3337,54 +3337,54 @@ function bi(e) {
3337
3337
  const [s, a] = oe(null), c = U(n);
3338
3338
  return Te(() => {
3339
3339
  if (!t && n !== c.current && r.current) {
3340
- const u = o.current;
3341
- if (u) {
3342
- const l = nt(r.current, {
3340
+ const l = o.current;
3341
+ if (l) {
3342
+ const u = nt(r.current, {
3343
3343
  ignoreTransform: !0
3344
- }), h = {
3345
- x: u.left - l.left,
3346
- y: u.top - l.top,
3347
- scaleX: u.width / l.width,
3348
- scaleY: u.height / l.height
3344
+ }), f = {
3345
+ x: l.left - u.left,
3346
+ y: l.top - u.top,
3347
+ scaleX: l.width / u.width,
3348
+ scaleY: l.height / u.height
3349
3349
  };
3350
- (h.x || h.y) && a(h);
3350
+ (f.x || f.y) && a(f);
3351
3351
  }
3352
3352
  }
3353
3353
  n !== c.current && (c.current = n);
3354
- }, [t, n, r, o]), V(() => {
3354
+ }, [t, n, r, o]), H(() => {
3355
3355
  s && a(null);
3356
3356
  }, [s]), s;
3357
3357
  }
3358
3358
  function Zr(e) {
3359
3359
  let {
3360
- animateLayoutChanges: t = pi,
3360
+ animateLayoutChanges: t = gi,
3361
3361
  attributes: n,
3362
3362
  disabled: r,
3363
3363
  data: o,
3364
3364
  getNewIndex: s = hi,
3365
3365
  id: a,
3366
3366
  strategy: c,
3367
- resizeObserverConfig: u,
3368
- transition: l = gi
3367
+ resizeObserverConfig: l,
3368
+ transition: u = pi
3369
3369
  } = e;
3370
3370
  const {
3371
- items: h,
3371
+ items: f,
3372
3372
  containerId: d,
3373
3373
  activeIndex: m,
3374
3374
  disabled: p,
3375
3375
  disableTransforms: v,
3376
- sortedRects: f,
3376
+ sortedRects: h,
3377
3377
  overIndex: b,
3378
- useDragOverlay: x,
3379
- strategy: E
3380
- } = Ve(qr), R = xi(r, p), T = h.indexOf(a), O = B(() => ({
3378
+ useDragOverlay: w,
3379
+ strategy: R
3380
+ } = He(qr), E = xi(r, p), _ = f.indexOf(a), O = B(() => ({
3381
3381
  sortable: {
3382
3382
  containerId: d,
3383
- index: T,
3384
- items: h
3383
+ index: _,
3384
+ items: f
3385
3385
  },
3386
3386
  ...o
3387
- }), [d, o, T, h]), _ = B(() => h.slice(h.indexOf(a)), [h, a]), {
3387
+ }), [d, o, _, f]), T = B(() => f.slice(f.indexOf(a)), [f, a]), {
3388
3388
  rect: $,
3389
3389
  node: N,
3390
3390
  isOver: W,
@@ -3392,21 +3392,21 @@ function Zr(e) {
3392
3392
  } = si({
3393
3393
  id: a,
3394
3394
  data: O,
3395
- disabled: R.droppable,
3395
+ disabled: E.droppable,
3396
3396
  resizeObserverConfig: {
3397
- updateMeasurementsFor: _,
3398
- ...u
3397
+ updateMeasurementsFor: T,
3398
+ ...l
3399
3399
  }
3400
3400
  }), {
3401
- active: I,
3401
+ active: k,
3402
3402
  activatorEvent: Q,
3403
3403
  activeNodeRect: se,
3404
3404
  attributes: M,
3405
3405
  setNodeRef: D,
3406
- listeners: w,
3406
+ listeners: y,
3407
3407
  isDragging: j,
3408
3408
  over: C,
3409
- setActivatorNodeRef: k,
3409
+ setActivatorNodeRef: I,
3410
3410
  transform: L
3411
3411
  } = ti({
3412
3412
  id: a,
@@ -3415,45 +3415,45 @@ function Zr(e) {
3415
3415
  ...mi,
3416
3416
  ...n
3417
3417
  },
3418
- disabled: R.draggable
3419
- }), g = 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
- rects: f,
3418
+ disabled: E.draggable
3419
+ }), g = Ao(Y, D), S = !!k, A = S && !v && Tt(m) && Tt(b), P = !w && j, G = P && A ? L : null, F = A ? G ?? (c ?? R)({
3420
+ rects: h,
3421
3421
  activeNodeRect: se,
3422
3422
  activeIndex: m,
3423
3423
  overIndex: b,
3424
- index: T
3424
+ index: _
3425
3425
  }) : null, J = Tt(m) && Tt(b) ? s({
3426
3426
  id: a,
3427
- items: h,
3427
+ items: f,
3428
3428
  activeIndex: m,
3429
3429
  overIndex: b
3430
- }) : T, Z = I?.id, z = U({
3430
+ }) : _, Z = k?.id, z = U({
3431
3431
  activeId: Z,
3432
- items: h,
3432
+ items: f,
3433
3433
  newIndex: J,
3434
3434
  containerId: d
3435
- }), de = h !== z.current.items, ae = t({
3436
- active: I,
3435
+ }), de = f !== z.current.items, ae = t({
3436
+ active: k,
3437
3437
  containerId: d,
3438
3438
  isDragging: j,
3439
3439
  isSorting: S,
3440
3440
  id: a,
3441
- index: T,
3442
- items: h,
3441
+ index: _,
3442
+ items: f,
3443
3443
  newIndex: z.current.newIndex,
3444
3444
  previousItems: z.current.items,
3445
3445
  previousContainerId: z.current.containerId,
3446
- transition: l,
3446
+ transition: u,
3447
3447
  wasDragging: z.current.activeId != null
3448
3448
  }), ye = bi({
3449
3449
  disabled: !ae,
3450
- index: T,
3450
+ index: _,
3451
3451
  node: N,
3452
3452
  rect: $
3453
3453
  });
3454
- return V(() => {
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]), V(() => {
3454
+ return H(() => {
3455
+ S && z.current.newIndex !== J && (z.current.newIndex = J), d !== z.current.containerId && (z.current.containerId = d), f !== z.current.items && (z.current.items = f);
3456
+ }, [S, J, d, f]), H(() => {
3457
3457
  if (Z === z.current.activeId)
3458
3458
  return;
3459
3459
  if (Z != null && z.current.activeId == null) {
@@ -3465,23 +3465,23 @@ function Zr(e) {
3465
3465
  }, 50);
3466
3466
  return () => clearTimeout(Be);
3467
3467
  }, [Z]), {
3468
- active: I,
3468
+ active: k,
3469
3469
  activeIndex: m,
3470
3470
  attributes: M,
3471
3471
  data: O,
3472
3472
  rect: $,
3473
- index: T,
3473
+ index: _,
3474
3474
  newIndex: J,
3475
- items: h,
3475
+ items: f,
3476
3476
  isOver: W,
3477
3477
  isSorting: S,
3478
3478
  isDragging: j,
3479
- listeners: w,
3479
+ listeners: y,
3480
3480
  node: N,
3481
3481
  overIndex: b,
3482
3482
  over: C,
3483
3483
  setNodeRef: g,
3484
- setActivatorNodeRef: k,
3484
+ setActivatorNodeRef: I,
3485
3485
  setDroppableNodeRef: Y,
3486
3486
  setDraggableNodeRef: D,
3487
3487
  transform: ye ?? F,
@@ -3491,12 +3491,12 @@ function Zr(e) {
3491
3491
  if (
3492
3492
  // Temporarily disable transitions for a single frame to set up derived transforms
3493
3493
  ye || // Or to prevent items jumping to back to their "new" position when items change
3494
- de && z.current.newIndex === T
3494
+ de && z.current.newIndex === _
3495
3495
  )
3496
3496
  return vi;
3497
- if (!(P && !jn(Q) || !l) && (S || ae))
3497
+ if (!(P && !jn(Q) || !u) && (S || ae))
3498
3498
  return Ze.Transition.toString({
3499
- ...l,
3499
+ ...u,
3500
3500
  property: Jr
3501
3501
  });
3502
3502
  }
@@ -3512,7 +3512,7 @@ function xi(e, t) {
3512
3512
  droppable: (r = e?.droppable) != null ? r : t.droppable
3513
3513
  };
3514
3514
  }
3515
- H.Down, H.Right, H.Up, H.Left;
3515
+ V.Down, V.Right, V.Up, V.Left;
3516
3516
  const yi = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), wi = (e) => e.replace(
3517
3517
  /^([A-Z])|[\s-_]+(\w)/g,
3518
3518
  (t, n, r) => r ? r.toUpperCase() : n.toLowerCase()
@@ -3545,10 +3545,10 @@ const Ci = wn(
3545
3545
  children: s,
3546
3546
  iconNode: a,
3547
3547
  ...c
3548
- }, u) => hn(
3548
+ }, l) => hn(
3549
3549
  "svg",
3550
3550
  {
3551
- ref: u,
3551
+ ref: l,
3552
3552
  ...Di,
3553
3553
  width: t,
3554
3554
  height: t,
@@ -3559,7 +3559,7 @@ const Ci = wn(
3559
3559
  ...c
3560
3560
  },
3561
3561
  [
3562
- ...a.map(([l, h]) => hn(l, h)),
3562
+ ...a.map(([u, f]) => hn(u, f)),
3563
3563
  ...Array.isArray(s) ? s : [s]
3564
3564
  ]
3565
3565
  )
@@ -3596,13 +3596,13 @@ const Ti = [
3596
3596
  const Mi = [
3597
3597
  ["path", { d: "m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z", key: "1fy3hk" }]
3598
3598
  ], $i = ue("bookmark", Mi);
3599
- const Ii = [
3599
+ const ki = [
3600
3600
  ["path", { d: "M8 2v4", key: "1cmpym" }],
3601
3601
  ["path", { d: "M16 2v4", key: "4m81vk" }],
3602
3602
  ["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
3603
3603
  ["path", { d: "M3 10h18", key: "8toen8" }]
3604
- ], hr = ue("calendar", Ii);
3605
- const ki = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], Ai = ue("chevron-left", ki);
3604
+ ], hr = ue("calendar", ki);
3605
+ const Ii = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], Ai = ue("chevron-left", Ii);
3606
3606
  const Li = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Ni = ue("chevron-right", Li);
3607
3607
  const zi = [
3608
3608
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
@@ -3619,11 +3619,11 @@ const Yi = [
3619
3619
  ["path", { d: "m12 9 6 6", key: "anjzzh" }],
3620
3620
  ["path", { d: "m18 9-6 6", key: "1fp51s" }]
3621
3621
  ], Fi = ue("delete", Yi);
3622
- const Hi = [
3622
+ const Vi = [
3623
3623
  ["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
3624
3624
  ["circle", { cx: "19", cy: "12", r: "1", key: "1wjl8i" }],
3625
3625
  ["circle", { cx: "5", cy: "12", r: "1", key: "1pcz8c" }]
3626
- ], Vi = ue("ellipsis", Hi);
3626
+ ], Hi = ue("ellipsis", Vi);
3627
3627
  const Wi = [
3628
3628
  [
3629
3629
  "path",
@@ -3677,7 +3677,7 @@ const Qi = [
3677
3677
  ["path", { d: "M12 9v4", key: "juzpu7" }],
3678
3678
  ["path", { d: "M12 17h.01", key: "p32p05" }]
3679
3679
  ], ea = ue("triangle-alert", Qi);
3680
- function y(e) {
3680
+ function x(e) {
3681
3681
  return wn((t, n) => {
3682
3682
  const { children: r, ...o } = t;
3683
3683
  return (
@@ -3687,19 +3687,19 @@ function y(e) {
3687
3687
  });
3688
3688
  }
3689
3689
  const to = (e) => `table_column_order_v1:${e}`, ta = (e) => {
3690
- const { tableId: t } = xe.state;
3691
- localStorage.setItem(to(t), JSON.stringify(e.map((n) => n.id))), xe.setState((n) => ({
3690
+ const { tableId: t } = me.state;
3691
+ localStorage.setItem(to(t), JSON.stringify(e.map((n) => n.id))), me.setState((n) => ({
3692
3692
  ...n,
3693
3693
  columnOrder: e
3694
- })), xe.setState((n) => ({ ...n, columnOrder: e }));
3694
+ })), me.setState((n) => ({ ...n, columnOrder: e }));
3695
3695
  }, na = (e) => {
3696
- xe.setState((t) => ({
3696
+ me.setState((t) => ({
3697
3697
  ...t,
3698
3698
  visibility: { ...t.visibility, [e]: !t.visibility[e] }
3699
3699
  }));
3700
3700
  };
3701
3701
  function ra(e) {
3702
- xe.setState((t) => t.sortColumn === e ? {
3702
+ me.setState((t) => t.sortColumn === e ? {
3703
3703
  ...t,
3704
3704
  sortDirection: t.sortDirection === "asc" ? "desc" : "asc"
3705
3705
  } : {
@@ -3708,54 +3708,66 @@ function ra(e) {
3708
3708
  sortDirection: "asc"
3709
3709
  });
3710
3710
  }
3711
- const xe = new _r({
3711
+ const me = new _r({
3712
3712
  tableId: "",
3713
3713
  sortColumn: null,
3714
3714
  sortDirection: "asc",
3715
3715
  visibility: {},
3716
3716
  columnOrder: [],
3717
3717
  data: [],
3718
- sortableColumns: []
3718
+ sortableColumns: [],
3719
3719
  // ← FIXED
3720
+ actionsConfig: {
3721
+ showActionColumn: !0,
3722
+ showColumnVisibilityMenu: !0,
3723
+ children: "Actions",
3724
+ width: "100px"
3725
+ }
3720
3726
  });
3721
3727
  function oa(e, t) {
3722
- const n = e[0] ?? {}, o = (t && t.length ? t : Object.keys(n).map((u) => ({ id: u, label: u }))).filter(
3723
- (u) => Object.prototype.hasOwnProperty.call(n, u.id)
3724
- ), { tableId: s } = xe.state, a = JSON.parse(
3728
+ const n = e[0] ?? {}, o = (t && t.length ? t : Object.keys(n).map((l) => ({ id: l, label: l }))).filter(
3729
+ (l) => Object.prototype.hasOwnProperty.call(n, l.id)
3730
+ ), { tableId: s } = me.state, a = JSON.parse(
3725
3731
  localStorage.getItem(to(s)) || "[]"
3726
3732
  ), c = [
3727
- ...a.map((u) => o.find((l) => l.id === u)).filter(Boolean),
3728
- ...o.filter((u) => !a.includes(u.id))
3733
+ ...a.map((l) => o.find((u) => u.id === l)).filter(Boolean),
3734
+ ...o.filter((l) => !a.includes(l.id))
3729
3735
  ];
3730
- xe.setState((u) => ({
3731
- ...u,
3736
+ me.setState((l) => ({
3737
+ ...l,
3732
3738
  data: e,
3733
3739
  columnOrder: c,
3734
- visibility: c.reduce((l, h) => (l[h.id] = !0, l), {}),
3735
- sortableColumns: c.map((l) => ({
3736
- id: l.id,
3737
- label: l.label,
3738
- sortable: !0
3740
+ visibility: c.reduce((u, f) => (u[f.id] = !0, u), {}),
3741
+ sortableColumns: c.map((u) => ({
3742
+ id: u.id,
3743
+ label: u.label,
3744
+ sortable: !0,
3745
+ backgroundColor: u.backgroundColor
3739
3746
  }))
3740
3747
  }));
3741
3748
  }
3742
3749
  function sa(e) {
3743
- xe.setState((t) => ({
3750
+ me.setState((t) => ({
3744
3751
  ...t,
3745
3752
  tableId: e
3746
3753
  }));
3747
3754
  }
3748
- const ia = y(Oe.Trigger), aa = y(Oe.Positioner), ca = y(Oe.Content), la = y(Oe.Item), ua = y(De.Label), da = y(De.HiddenInput), fa = y(De.Control);
3749
- function ha({ visibility: e, onToggle: t }) {
3750
- const { sortableColumns: n } = bt(xe);
3755
+ const ia = (e) => {
3756
+ me.setState((t) => ({
3757
+ ...t,
3758
+ actionsConfig: e
3759
+ }));
3760
+ }, aa = x(Oe.Trigger), ca = x(Oe.Positioner), la = x(Oe.Content), ua = x(Oe.Item), da = x(De.Label), fa = x(De.HiddenInput), ha = x(De.Control);
3761
+ function ga({ visibility: e, onToggle: t }) {
3762
+ const { sortableColumns: n } = bt(me);
3751
3763
  return /* @__PURE__ */ i.jsxs(Oe.Root, { closeOnSelect: !1, children: [
3752
- /* @__PURE__ */ i.jsx(ia, { asChild: !0, children: /* @__PURE__ */ i.jsx(_e, { "aria-label": "Toggle columns", variant: "outline", size: "sm", ml: "1", children: /* @__PURE__ */ i.jsx(Pi, { size: 18 }) }) }),
3753
- /* @__PURE__ */ i.jsx(Qe, { children: /* @__PURE__ */ i.jsx(aa, { children: /* @__PURE__ */ i.jsx(ca, { minW: "220px", children: n.map((r) => {
3764
+ /* @__PURE__ */ i.jsx(aa, { asChild: !0, children: /* @__PURE__ */ i.jsx(_e, { "aria-label": "Toggle columns", variant: "outline", size: "sm", ml: "1", children: /* @__PURE__ */ i.jsx(Pi, { size: 18 }) }) }),
3765
+ /* @__PURE__ */ i.jsx(Qe, { children: /* @__PURE__ */ i.jsx(ca, { children: /* @__PURE__ */ i.jsx(la, { minW: "220px", children: n.map((r) => {
3754
3766
  const o = !!e[r.id];
3755
- return /* @__PURE__ */ i.jsx(la, { value: r.id, closeOnSelect: !1, children: /* @__PURE__ */ i.jsxs(De.Root, { checked: o, onCheckedChange: () => t(r.id), children: [
3756
- /* @__PURE__ */ i.jsx(da, {}),
3767
+ return /* @__PURE__ */ i.jsx(ua, { value: r.id, closeOnSelect: !1, children: /* @__PURE__ */ i.jsxs(De.Root, { checked: o, onCheckedChange: () => t(r.id), children: [
3757
3768
  /* @__PURE__ */ i.jsx(fa, {}),
3758
- /* @__PURE__ */ i.jsx(ua, { children: r.label })
3769
+ /* @__PURE__ */ i.jsx(ha, {}),
3770
+ /* @__PURE__ */ i.jsx(da, { children: r.label })
3759
3771
  ] }) }, r.id);
3760
3772
  }) }) }) })
3761
3773
  ] });
@@ -3769,7 +3781,7 @@ function pa({
3769
3781
  borderRightColor: s,
3770
3782
  backgroundColor: a
3771
3783
  }) {
3772
- const { setNodeRef: c, attributes: u, listeners: l, transform: h, transition: d } = Zr({ id: e });
3784
+ const { setNodeRef: c, attributes: l, listeners: u, transform: f, transition: d } = Zr({ id: e });
3773
3785
  return /* @__PURE__ */ i.jsx(
3774
3786
  Ee.ColumnHeader,
3775
3787
  {
@@ -3778,42 +3790,43 @@ function pa({
3778
3790
  backgroundColor: a,
3779
3791
  w: e === "id" ? "80px" : void 0,
3780
3792
  style: {
3781
- transform: Ze.Transform.toString(h),
3793
+ transform: Ze.Transform.toString(f),
3782
3794
  transition: d,
3783
3795
  cursor: r,
3784
3796
  borderRight: o,
3785
3797
  borderRightColor: s
3786
3798
  },
3787
- ...u,
3799
+ ...l,
3788
3800
  children: /* @__PURE__ */ i.jsxs(fe, { justify: "space-between", children: [
3789
3801
  t,
3790
- /* @__PURE__ */ i.jsx("span", { ...l, children: /* @__PURE__ */ i.jsx(eo, { size: 12 }) })
3802
+ /* @__PURE__ */ i.jsx("span", { ...u, children: /* @__PURE__ */ i.jsx(eo, { size: 12 }) })
3791
3803
  ] })
3792
3804
  }
3793
3805
  );
3794
3806
  }
3795
- function ga() {
3796
- const { columnOrder: e, visibility: t, sortColumn: n, sortDirection: r, sortableColumns: o } = bt(xe), s = e.map((c) => o.find((u) => u.id === c.id)).filter((c) => c !== void 0).filter((c) => t[c.id]), a = (c) => {
3797
- const { active: u, over: l } = c;
3798
- if (!l || u.id === l.id) return;
3799
- const h = e.findIndex((p) => p.id === u.id), d = e.findIndex((p) => p.id === l.id), m = Kt(e, h, d);
3800
- ta(m);
3807
+ function va() {
3808
+ const { columnOrder: e, visibility: t, sortColumn: n, sortDirection: r, sortableColumns: o, actionsConfig: s } = bt(me), a = e.map((l) => o.find((u) => u.id === l.id)).filter((l) => l !== void 0).filter((l) => t[l.id]), c = (l) => {
3809
+ const { active: u, over: f } = l;
3810
+ if (!f || u.id === f.id) return;
3811
+ const d = e.findIndex((v) => v.id === u.id), m = e.findIndex((v) => v.id === f.id), p = Kt(e, d, m);
3812
+ ta(p);
3801
3813
  };
3802
- return /* @__PURE__ */ i.jsx(Ee.Header, { background: "blue.200", position: "sticky", top: 0, p: "0", children: /* @__PURE__ */ i.jsx(Ur, { collisionDetection: $r, onDragEnd: a, children: /* @__PURE__ */ i.jsx(
3814
+ return /* @__PURE__ */ i.jsx(Ee.Header, { background: "blue.200", position: "sticky", top: 0, p: "0", children: /* @__PURE__ */ i.jsx(Ur, { collisionDetection: $r, onDragEnd: c, children: /* @__PURE__ */ i.jsx(
3803
3815
  Kr,
3804
3816
  {
3805
- items: e.map((c) => c.id),
3817
+ items: e.map((l) => l.id),
3806
3818
  strategy: li,
3807
3819
  children: /* @__PURE__ */ i.jsxs(Ee.Row, { height: "28px", children: [
3808
- s.map((c) => {
3809
- const u = n === c?.id;
3820
+ a.map((l) => {
3821
+ const u = n === l?.id;
3810
3822
  return /* @__PURE__ */ i.jsx(
3811
3823
  pa,
3812
3824
  {
3813
- id: c?.id,
3814
- onClick: () => c?.sortable && ra(c?.id),
3815
- cursor: c?.sortable ? "pointer" : "default",
3825
+ id: l?.id,
3826
+ onClick: () => l?.sortable && ra(l?.id),
3827
+ cursor: l?.sortable ? "pointer" : "default",
3816
3828
  borderRight: "2px solid #dcdcdc",
3829
+ backgroundColor: l?.backgroundColor,
3817
3830
  children: /* @__PURE__ */ i.jsxs(
3818
3831
  "span",
3819
3832
  {
@@ -3824,30 +3837,45 @@ function ga() {
3824
3837
  userSelect: "none"
3825
3838
  },
3826
3839
  children: [
3827
- c?.label,
3828
- c?.sortable && (u ? r === "asc" ? /* @__PURE__ */ i.jsx(Oi, { size: 14 }) : /* @__PURE__ */ i.jsx(ji, { size: 14 }) : /* @__PURE__ */ i.jsx(_i, { size: 14, opacity: 0.4 }))
3840
+ l?.label,
3841
+ l?.sortable && (u ? r === "asc" ? /* @__PURE__ */ i.jsx(Oi, { size: 14 }) : /* @__PURE__ */ i.jsx(ji, { size: 14 }) : /* @__PURE__ */ i.jsx(_i, { size: 14, opacity: 0.4 }))
3829
3842
  ]
3830
3843
  }
3831
3844
  )
3832
3845
  },
3833
- c?.id
3846
+ l?.id
3834
3847
  );
3835
3848
  }),
3836
- /* @__PURE__ */ i.jsx(Ee.ColumnHeader, { borderRight: "2px solid #dcdcdc", children: "Actions" }),
3837
- /* @__PURE__ */ i.jsx(Ee.ColumnHeader, { boxSize: "0.5", children: /* @__PURE__ */ i.jsx(ha, { visibility: t, onToggle: na }) })
3849
+ s?.showActionColumn && /* @__PURE__ */ i.jsx(
3850
+ Ee.ColumnHeader,
3851
+ {
3852
+ width: s.width,
3853
+ backgroundColor: s.backgroundColor,
3854
+ borderRight: "2px solid #dcdcdc",
3855
+ children: s.children
3856
+ }
3857
+ ),
3858
+ s?.showColumnVisibilityMenu && /* @__PURE__ */ i.jsx(
3859
+ Ee.ColumnHeader,
3860
+ {
3861
+ boxSize: "0.5",
3862
+ backgroundColor: s.backgroundColorColumnVisibilityMenu,
3863
+ children: /* @__PURE__ */ i.jsx(ga, { visibility: t, onToggle: na })
3864
+ }
3865
+ )
3838
3866
  ] })
3839
3867
  }
3840
3868
  ) }) });
3841
3869
  }
3842
- const pr = Dr({
3870
+ const gr = Dr({
3843
3871
  items: [
3844
3872
  { label: "10", value: "10" },
3845
3873
  { label: "20", value: "20" },
3846
3874
  { label: "50", value: "50" },
3847
3875
  { label: "100", value: "100" }
3848
3876
  ]
3849
- }), va = y(K.Positioner), ma = y(K.Content), ba = y(K.Item), xa = y(Nt.PrevTrigger), ya = y(Nt.NextTrigger), wa = y(K.HiddenSelect), Sa = y(K.Control), Da = y(K.Trigger), Ca = y(K.ValueText), Ra = y(K.IndicatorGroup), ja = y(K.Indicator);
3850
- function Ea({
3877
+ }), ma = x(K.Positioner), ba = x(K.Content), xa = x(K.Item), ya = x(Nt.PrevTrigger), wa = x(Nt.NextTrigger), Sa = x(K.HiddenSelect), Da = x(K.Control), Ca = x(K.Trigger), Ra = x(K.ValueText), ja = x(K.IndicatorGroup), Ea = x(K.Indicator);
3878
+ function _a({
3851
3879
  totalCount: e,
3852
3880
  pageSize: t,
3853
3881
  currentPage: n,
@@ -3861,18 +3889,18 @@ function Ea({
3861
3889
  /* @__PURE__ */ i.jsxs(
3862
3890
  K.Root,
3863
3891
  {
3864
- collection: pr,
3892
+ collection: gr,
3865
3893
  size: "sm",
3866
3894
  width: "60px",
3867
3895
  onValueChange: (a) => o && o(Number(a.items[0].value)),
3868
3896
  value: [String(t)],
3869
3897
  children: [
3870
- /* @__PURE__ */ i.jsx(wa, {}),
3871
- /* @__PURE__ */ i.jsxs(Sa, { children: [
3872
- /* @__PURE__ */ i.jsx(Da, { children: /* @__PURE__ */ i.jsx(Ca, { placeholder: "" }) }),
3873
- /* @__PURE__ */ i.jsx(Ra, { children: /* @__PURE__ */ i.jsx(ja, {}) })
3898
+ /* @__PURE__ */ i.jsx(Sa, {}),
3899
+ /* @__PURE__ */ i.jsxs(Da, { children: [
3900
+ /* @__PURE__ */ i.jsx(Ca, { children: /* @__PURE__ */ i.jsx(Ra, { placeholder: "" }) }),
3901
+ /* @__PURE__ */ i.jsx(ja, { children: /* @__PURE__ */ i.jsx(Ea, {}) })
3874
3902
  ] }),
3875
- /* @__PURE__ */ i.jsx(Qe, { children: /* @__PURE__ */ i.jsx(va, { children: /* @__PURE__ */ i.jsx(ma, { children: pr.items.map((a) => /* @__PURE__ */ i.jsxs(ba, { item: a.value, children: [
3903
+ /* @__PURE__ */ i.jsx(Qe, { children: /* @__PURE__ */ i.jsx(ma, { children: /* @__PURE__ */ i.jsx(ba, { children: gr.items.map((a) => /* @__PURE__ */ i.jsxs(xa, { item: a.value, children: [
3876
3904
  a.label,
3877
3905
  /* @__PURE__ */ i.jsx(K.ItemIndicator, {})
3878
3906
  ] }, a.value)) }) }) })
@@ -3889,7 +3917,7 @@ function Ea({
3889
3917
  siblingCount: s,
3890
3918
  onPageChange: (a) => r && r(a.page),
3891
3919
  children: /* @__PURE__ */ i.jsxs(mo, { size: "sm", variant: "ghost", children: [
3892
- /* @__PURE__ */ i.jsx(xa, { asChild: !0, children: /* @__PURE__ */ i.jsx(_e, { "aria-label": "Previous page", children: /* @__PURE__ */ i.jsx(Ai, { size: 18 }) }) }),
3920
+ /* @__PURE__ */ i.jsx(ya, { asChild: !0, children: /* @__PURE__ */ i.jsx(_e, { "aria-label": "Previous page", children: /* @__PURE__ */ i.jsx(Ai, { size: 18 }) }) }),
3893
3921
  /* @__PURE__ */ i.jsx(
3894
3922
  Nt.Items,
3895
3923
  {
@@ -3904,24 +3932,24 @@ function Ea({
3904
3932
  )
3905
3933
  }
3906
3934
  ),
3907
- /* @__PURE__ */ i.jsx(ya, { asChild: !0, children: /* @__PURE__ */ i.jsx(_e, { "aria-label": "Next page", children: /* @__PURE__ */ i.jsx(Ni, { size: 18 }) }) })
3935
+ /* @__PURE__ */ i.jsx(wa, { asChild: !0, children: /* @__PURE__ */ i.jsx(_e, { "aria-label": "Next page", children: /* @__PURE__ */ i.jsx(Ni, { size: 18 }) }) })
3908
3936
  ] })
3909
3937
  }
3910
3938
  )
3911
3939
  ] }) });
3912
3940
  }
3913
- const _a = y(Oe.Item), Ta = y(Oe.Content), Oa = y(Oe.Positioner), Ma = y(Oe.Trigger);
3914
- function $a({
3941
+ const Ta = x(Oe.Item), Oa = x(Oe.Content), Ma = x(Oe.Positioner), $a = x(Oe.Trigger);
3942
+ function ka({
3915
3943
  data: e = [],
3916
3944
  actions: t = []
3917
3945
  }) {
3918
- const { columnOrder: n, visibility: r } = bt(xe);
3946
+ const { columnOrder: n, visibility: r } = bt(me);
3919
3947
  return /* @__PURE__ */ i.jsx(Ee.Body, { children: e.map((o) => /* @__PURE__ */ i.jsxs(Ee.Row, { children: [
3920
3948
  n.filter((s) => r[s.id]).map((s) => /* @__PURE__ */ i.jsx(Ee.Cell, { children: o[s.id] }, s.id)),
3921
3949
  /* @__PURE__ */ i.jsx(Ee.Cell, { textAlign: "center", display: "flex", gap: 2, children: /* @__PURE__ */ i.jsxs(Oe.Root, { children: [
3922
- /* @__PURE__ */ i.jsx(Ma, { asChild: !0, children: /* @__PURE__ */ i.jsx(_e, { "aria-label": "Open", variant: "ghost", size: "sm", children: /* @__PURE__ */ i.jsx(Vi, { size: 16 }) }) }),
3923
- /* @__PURE__ */ i.jsx(Qe, { children: /* @__PURE__ */ i.jsx(Oa, { children: /* @__PURE__ */ i.jsx(Ta, { children: t.map((s) => /* @__PURE__ */ i.jsxs(
3924
- _a,
3950
+ /* @__PURE__ */ i.jsx($a, { asChild: !0, children: /* @__PURE__ */ i.jsx(_e, { "aria-label": "Open", variant: "ghost", size: "sm", children: /* @__PURE__ */ i.jsx(Hi, { size: 16 }) }) }),
3951
+ /* @__PURE__ */ i.jsx(Qe, { children: /* @__PURE__ */ i.jsx(Ma, { children: /* @__PURE__ */ i.jsx(Oa, { children: t.map((s) => /* @__PURE__ */ i.jsxs(
3952
+ Ta,
3925
3953
  {
3926
3954
  onClick: () => s.onClick(o),
3927
3955
  colorScheme: s.colorScheme,
@@ -3936,7 +3964,7 @@ function $a({
3936
3964
  ] }) })
3937
3965
  ] }, o.id)) });
3938
3966
  }
3939
- function dl({
3967
+ function fl({
3940
3968
  tableId: e,
3941
3969
  data: t = [],
3942
3970
  headers: n = [],
@@ -3945,49 +3973,52 @@ function dl({
3945
3973
  actions: s,
3946
3974
  page: a = 1,
3947
3975
  pageSize: c = 10,
3948
- onPageChange: u,
3949
- onPageSizeChange: l,
3950
- density: h = "sm",
3976
+ onPageChange: l,
3977
+ onPageSizeChange: u,
3978
+ density: f = "sm",
3951
3979
  totalCount: d = 0,
3952
- paginationMode: m = "client"
3980
+ paginationMode: m = "client",
3981
+ actionConfig: p
3953
3982
  }) {
3954
- V(() => {
3983
+ H(() => {
3955
3984
  sa(e);
3956
- }, [e]), V(() => {
3985
+ }, [e]), H(() => {
3957
3986
  oa(t, n);
3958
- }, [t, n]);
3959
- const { sortColumn: p, sortDirection: v, data: f } = bt(xe), b = B(() => {
3960
- const x = [...f], E = Math.max(1, a || 1);
3961
- if (p && x.sort(
3962
- (R, T) => v === "asc" ? String(R[p]).localeCompare(String(T[p])) : String(T[p]).localeCompare(String(R[p]))
3987
+ }, [t, n]), H(() => {
3988
+ p && ia(p);
3989
+ }, [p]);
3990
+ const { sortColumn: v, sortDirection: h, data: b } = bt(me), w = B(() => {
3991
+ const R = [...b], E = Math.max(1, a || 1);
3992
+ if (v && R.sort(
3993
+ (_, O) => h === "asc" ? String(_[v]).localeCompare(String(O[v])) : String(O[v]).localeCompare(String(_[v]))
3963
3994
  ), m === "client") {
3964
- const R = (E - 1) * c;
3965
- return x.slice(R, R + c);
3995
+ const _ = (E - 1) * c;
3996
+ return R.slice(_, _ + c);
3966
3997
  }
3967
- return x;
3968
- }, [f, p, v, a, c, m]);
3969
- return V(() => {
3970
- a < 1 && u && u(1);
3971
- }, [a, u]), /* @__PURE__ */ i.jsxs(je, { h: "100%", display: "flex", flexDirection: "column", p: 2, pt: 2, minHeight: 0, children: [
3972
- /* @__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: [
3973
- /* @__PURE__ */ i.jsx(ga, {}),
3974
- /* @__PURE__ */ i.jsx($a, { data: b, actions: s })
3998
+ return R;
3999
+ }, [b, v, h, a, c, m]);
4000
+ return H(() => {
4001
+ a < 1 && l && l(1);
4002
+ }, [a, l]), /* @__PURE__ */ i.jsxs(je, { h: "100%", display: "flex", flexDirection: "column", p: 2, pt: 2, minHeight: 0, children: [
4003
+ /* @__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..." }) : w.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: f, children: [
4004
+ /* @__PURE__ */ i.jsx(va, {}),
4005
+ /* @__PURE__ */ i.jsx(ka, { data: w, actions: s })
3975
4006
  ] }) }),
3976
4007
  /* @__PURE__ */ i.jsx(je, { mt: 0.5, children: /* @__PURE__ */ i.jsx(
3977
- Ea,
4008
+ _a,
3978
4009
  {
3979
4010
  totalCount: d,
3980
4011
  pageSize: c,
3981
4012
  currentPage: a,
3982
- onPageChange: u,
3983
- onPageSizeChange: (x) => {
3984
- l && l(x), a > 1 && u && u(1);
4013
+ onPageChange: l,
4014
+ onPageSizeChange: (R) => {
4015
+ u && u(R), a > 1 && l && l(1);
3985
4016
  }
3986
4017
  }
3987
4018
  ) })
3988
4019
  ] });
3989
4020
  }
3990
- const Ia = y(De.Root), ka = y(De.HiddenInput), Aa = y(De.Control), La = y(De.Label), Na = ({
4021
+ const Ia = x(De.Root), Aa = x(De.HiddenInput), La = x(De.Control), Na = x(De.Label), za = ({
3991
4022
  value: e,
3992
4023
  onChange: t,
3993
4024
  size: n = "sm",
@@ -3997,9 +4028,9 @@ const Ia = y(De.Root), ka = y(De.HiddenInput), Aa = y(De.Control), La = y(De.Lab
3997
4028
  required: a,
3998
4029
  errorText: c
3999
4030
  }) => /* @__PURE__ */ i.jsxs(Ia, { value: e, onChange: t, size: n, children: [
4000
- /* @__PURE__ */ i.jsx(ka, {}),
4031
+ /* @__PURE__ */ i.jsx(Aa, {}),
4001
4032
  /* @__PURE__ */ i.jsx(
4002
- Aa,
4033
+ La,
4003
4034
  {
4004
4035
  disabled: s,
4005
4036
  required: a,
@@ -4007,8 +4038,8 @@ const Ia = y(De.Root), ka = y(De.HiddenInput), Aa = y(De.Control), La = y(De.Lab
4007
4038
  helperText: o
4008
4039
  }
4009
4040
  ),
4010
- r && /* @__PURE__ */ i.jsx(La, { children: r })
4011
- ] }), ee = " to ", gr = 10, He = {
4041
+ r && /* @__PURE__ */ i.jsx(Na, { children: r })
4042
+ ] }), ee = " to ", pr = 10, Ve = {
4012
4043
  DAY_MAX: 31,
4013
4044
  MONTH_MAX: 12,
4014
4045
  YEAR_MIN: 1900,
@@ -4023,14 +4054,14 @@ const Ia = y(De.Root), ka = y(De.HiddenInput), Aa = y(De.Control), La = y(De.Lab
4023
4054
  }, vr = () => {
4024
4055
  const { year: e, month: t, day: n } = Mn();
4025
4056
  return `${String(n).padStart(2, "0")}-${String(t).padStart(2, "0")}-${e}`;
4026
- }, za = () => {
4057
+ }, Pa = () => {
4027
4058
  const { year: e, month: t, day: n } = Mn();
4028
4059
  return `${e}-${String(t).padStart(2, "0")}-${String(n).padStart(2, "0")}`;
4029
- }, Pa = (e, t) => {
4060
+ }, Ya = (e, t) => {
4030
4061
  const n = e.length, r = parseInt(e);
4031
4062
  if (!e || isNaN(r)) return t;
4032
4063
  if (n === 4)
4033
- return r >= He.YEAR_MIN && r <= He.YEAR_MAX ? r : t;
4064
+ return r >= Ve.YEAR_MIN && r <= Ve.YEAR_MAX ? r : t;
4034
4065
  if (n > 0 && n < 4) {
4035
4066
  const o = t.toString(), s = 4 - n, a = o.substring(0, s);
4036
4067
  return parseInt(a + e);
@@ -4038,66 +4069,66 @@ const Ia = y(De.Root), ka = y(De.HiddenInput), Aa = y(De.Control), La = y(De.Lab
4038
4069
  return t;
4039
4070
  }, lt = (e) => {
4040
4071
  if (!e?.trim()) return null;
4041
- const n = e.replace(/[^\d-]/g, "").split("-").filter((l) => l !== "");
4072
+ const n = e.replace(/[^\d-]/g, "").split("-").filter((u) => u !== "");
4042
4073
  if (n.length === 0) return null;
4043
4074
  const { year: r, month: o, day: s } = Mn();
4044
- let a, c, u;
4045
- return n.length === 1 ? (a = parseInt(n[0]) || s, c = o, u = r) : n.length === 2 ? (a = parseInt(n[0]) || s, c = parseInt(n[1]) || o, u = r) : (a = parseInt(n[0]) || s, c = parseInt(n[1]) || o, u = Pa(n[2], r)), c = Math.max(1, Math.min(He.MONTH_MAX, c)), a = Math.max(1, Math.min(He.DAY_MAX, a)), `${u}-${String(c).padStart(2, "0")}-${String(a).padStart(2, "0")}`;
4075
+ let a, c, l;
4076
+ return n.length === 1 ? (a = parseInt(n[0]) || s, c = o, l = r) : n.length === 2 ? (a = parseInt(n[0]) || s, c = parseInt(n[1]) || o, l = r) : (a = parseInt(n[0]) || s, c = parseInt(n[1]) || o, l = Ya(n[2], r)), c = Math.max(1, Math.min(Ve.MONTH_MAX, c)), a = Math.max(1, Math.min(Ve.DAY_MAX, a)), `${l}-${String(c).padStart(2, "0")}-${String(a).padStart(2, "0")}`;
4046
4077
  }, we = (e) => {
4047
4078
  if (!e) return "";
4048
4079
  const [t, n, r] = e.split("-");
4049
4080
  return `${r}-${n}-${t}`;
4050
- }, Ya = (e, t) => {
4081
+ }, Fa = (e, t) => {
4051
4082
  if (e[0]?.length > 0) {
4052
4083
  const n = parseInt(e[0]);
4053
- if (isNaN(n) || n === 0 || e[0].length === 2 && n > He.DAY_MAX)
4084
+ if (isNaN(n) || n === 0 || e[0].length === 2 && n > Ve.DAY_MAX)
4054
4085
  return t;
4055
4086
  }
4056
4087
  if (e[1]?.length > 0) {
4057
4088
  const n = parseInt(e[1]);
4058
- if (isNaN(n) || n === 0 || e[1].length === 2 && n > He.MONTH_MAX)
4089
+ if (isNaN(n) || n === 0 || e[1].length === 2 && n > Ve.MONTH_MAX)
4059
4090
  return t;
4060
4091
  }
4061
4092
  if (e[2]?.length > 0) {
4062
4093
  const n = parseInt(e[2]), r = e[2].length === 4;
4063
- if (isNaN(n) || n === 0 || r && (n < He.YEAR_MIN || n > He.YEAR_MAX))
4094
+ if (isNaN(n) || n === 0 || r && (n < Ve.YEAR_MIN || n > Ve.YEAR_MAX))
4064
4095
  return t;
4065
4096
  }
4066
4097
  return null;
4067
4098
  }, ut = (e) => {
4068
- let t = e.replace(/[^\d-]/g, "").substring(0, gr);
4099
+ let t = e.replace(/[^\d-]/g, "").substring(0, pr);
4069
4100
  if (t.length >= 3 && t[2] !== "-" && (t = t.substring(0, 2) + "-" + t.substring(2).replace(/-/g, "")), t.length >= 6 && t[5] !== "-") {
4070
4101
  const o = t.split("-");
4071
4102
  o.length >= 2 && (t = `${o[0]}-${o[1].substring(0, 2)}-${o[1].substring(2)}${o[2] || ""}`);
4072
4103
  }
4073
4104
  const n = t.split("-");
4074
- return n[0] = n[0]?.substring(0, 2) || "", n[1] = n[1]?.substring(0, 2) || "", n[2] = n[2]?.substring(0, 4) || "", t = n.filter((o) => o !== "").join("-"), t = t.substring(0, gr), Ya(n, e) || t;
4075
- }, Fa = y(Wt.Root), Ha = y(Wt.Trigger), Va = y(Wt.Content), Wa = y(Wt.Positioner);
4076
- function Ba({
4105
+ return n[0] = n[0]?.substring(0, 2) || "", n[1] = n[1]?.substring(0, 2) || "", n[2] = n[2]?.substring(0, 4) || "", t = n.filter((o) => o !== "").join("-"), t = t.substring(0, pr), Fa(n, e) || t;
4106
+ }, Va = x(Wt.Root), Ha = x(Wt.Trigger), Wa = x(Wt.Content), Ba = x(Wt.Positioner);
4107
+ function Ua({
4077
4108
  value: e,
4078
4109
  onChange: t,
4079
4110
  disabled: n = !1
4080
4111
  }) {
4081
- 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);
4082
- V(() => {
4083
- const v = (f) => {
4084
- f.ctrlKey && f.key === "d" && !f.shiftKey && !f.metaKey && (f.preventDefault(), l.current?.focus());
4112
+ const [r = "", o = ""] = e ? e.split("|") : [], [s, a] = oe(() => r && o ? `${we(r)}${ee}${we(o)}` : r ? we(r) : ""), [c, l] = oe(!1), u = U(null);
4113
+ H(() => {
4114
+ const v = (h) => {
4115
+ h.ctrlKey && h.key === "d" && !h.shiftKey && !h.metaKey && (h.preventDefault(), u.current?.focus());
4085
4116
  };
4086
4117
  return window.addEventListener("keydown", v), () => window.removeEventListener("keydown", v);
4087
4118
  }, []);
4088
- const h = (v) => {
4089
- let f = v;
4090
- if (f.includes(ee)) {
4091
- const [b, x = ""] = f.split(ee);
4092
- f = `${ut(b.trim())}${ee}${ut(
4093
- x.trim()
4119
+ const f = (v) => {
4120
+ let h = v;
4121
+ if (h.includes(ee)) {
4122
+ const [b, w = ""] = h.split(ee);
4123
+ h = `${ut(b.trim())}${ee}${ut(
4124
+ w.trim()
4094
4125
  )}`;
4095
- } else if (f.toLowerCase().includes(" to ")) {
4096
- const [b, x = ""] = f.split(/\s+to\s+/i);
4097
- f = `${ut(b.trim())} to ${ut(x.trim())}`;
4126
+ } else if (h.toLowerCase().includes(" to ")) {
4127
+ const [b, w = ""] = h.split(/\s+to\s+/i);
4128
+ h = `${ut(b.trim())} to ${ut(w.trim())}`;
4098
4129
  } else
4099
- f = ut(f);
4100
- a(f);
4130
+ h = ut(h);
4131
+ a(h);
4101
4132
  }, d = () => {
4102
4133
  const v = s.trim();
4103
4134
  if (!v) {
@@ -4105,49 +4136,49 @@ function Ba({
4105
4136
  return;
4106
4137
  }
4107
4138
  if (v.includes(ee)) {
4108
- const [f, b = ""] = v.split(ee).map((R) => R.trim()), x = lt(f), E = b ? lt(b) : null;
4109
- if (x && E) {
4110
- const [R, T] = E < x ? [E, x] : [x, E], O = `${we(R)}${ee}${we(
4111
- T
4139
+ const [h, b = ""] = v.split(ee).map((E) => E.trim()), w = lt(h), R = b ? lt(b) : null;
4140
+ if (w && R) {
4141
+ const [E, _] = R < w ? [R, w] : [w, R], O = `${we(E)}${ee}${we(
4142
+ _
4112
4143
  )}`;
4113
- a(O), t(`${R}|${T}`);
4114
- } else if (x && !b)
4115
- a(`${we(x)}${ee}`), t(void 0);
4116
- else if (x && b) {
4117
- const R = za(), [T, O] = R < x ? [R, x] : [x, R], _ = `${we(T)}${ee}${we(
4144
+ a(O), t(`${E}|${_}`);
4145
+ } else if (w && !b)
4146
+ a(`${we(w)}${ee}`), t(void 0);
4147
+ else if (w && b) {
4148
+ const E = Pa(), [_, O] = E < w ? [E, w] : [w, E], T = `${we(_)}${ee}${we(
4118
4149
  O
4119
4150
  )}`;
4120
- a(_), t(`${T}|${O}`);
4151
+ a(T), t(`${_}|${O}`);
4121
4152
  } else
4122
4153
  a(""), t(void 0);
4123
4154
  } else {
4124
- const f = lt(v);
4125
- f ? (a(`${we(f)}${ee}`), t(void 0)) : (a(""), t(void 0));
4155
+ const h = lt(v);
4156
+ h ? (a(`${we(h)}${ee}`), t(void 0)) : (a(""), t(void 0));
4126
4157
  }
4127
4158
  }, m = (v) => {
4128
4159
  if (v.key !== "Enter") return;
4129
4160
  v.preventDefault();
4130
- const f = l.current?.selectionStart || 0, b = s.indexOf(ee);
4161
+ const h = u.current?.selectionStart || 0, b = s.indexOf(ee);
4131
4162
  if (!s.trim()) {
4132
4163
  a(`${vr()}${ee}`);
4133
4164
  return;
4134
4165
  }
4135
4166
  if (b === -1) {
4136
- const E = lt(s.trim());
4137
- E && a(`${we(E)}${ee}`);
4167
+ const R = lt(s.trim());
4168
+ R && a(`${we(R)}${ee}`);
4138
4169
  return;
4139
4170
  }
4140
- if (f <= b + ee.length) {
4141
- const E = s.substring(0, b).trim(), R = s.substring(b + ee.length), T = lt(E);
4142
- T && a(`${we(T)}${ee}${R}`);
4171
+ if (h <= b + ee.length) {
4172
+ const R = s.substring(0, b).trim(), E = s.substring(b + ee.length), _ = lt(R);
4173
+ _ && a(`${we(_)}${ee}${E}`);
4143
4174
  return;
4144
4175
  }
4145
4176
  if (s.substring(b + ee.length).trim())
4146
- d(), l.current?.blur();
4177
+ d(), u.current?.blur();
4147
4178
  else {
4148
- const E = s.substring(0, b + ee.length) + vr();
4149
- a(E), setTimeout(() => {
4150
- d(), l.current?.blur();
4179
+ const R = s.substring(0, b + ee.length) + vr();
4180
+ a(R), setTimeout(() => {
4181
+ d(), u.current?.blur();
4151
4182
  }, 0);
4152
4183
  }
4153
4184
  }, p = () => {
@@ -4155,11 +4186,11 @@ function Ba({
4155
4186
  };
4156
4187
  return /* @__PURE__ */ i.jsx(Cr, { children: /* @__PURE__ */ i.jsx(i.Fragment, { children: /* @__PURE__ */ i.jsxs(Fn, { position: "revert", children: [
4157
4188
  /* @__PURE__ */ i.jsxs(
4158
- Fa,
4189
+ Va,
4159
4190
  {
4160
4191
  open: c,
4161
4192
  onEscapeKeyDown: () => {
4162
- u(!1);
4193
+ l(!1);
4163
4194
  },
4164
4195
  children: [
4165
4196
  /* @__PURE__ */ i.jsx(Ha, { asChild: !0, children: /* @__PURE__ */ i.jsx(
@@ -4168,18 +4199,18 @@ function Ba({
4168
4199
  size: "sm",
4169
4200
  variant: "ghost",
4170
4201
  "aria-label": "Date range help",
4171
- onClick: () => u((v) => !v),
4202
+ onClick: () => l((v) => !v),
4172
4203
  children: /* @__PURE__ */ i.jsx(hr, { size: 16 })
4173
4204
  }
4174
4205
  ) }),
4175
- /* @__PURE__ */ i.jsx(Qe, { children: /* @__PURE__ */ i.jsx(Wa, { children: /* @__PURE__ */ i.jsxs(Va, { p: 4, children: [
4206
+ /* @__PURE__ */ i.jsx(Qe, { children: /* @__PURE__ */ i.jsx(Ba, { children: /* @__PURE__ */ i.jsxs(Wa, { p: 4, children: [
4176
4207
  /* @__PURE__ */ i.jsx(bo, {}),
4177
- /* @__PURE__ */ i.jsxs(ke, { align: "start", gap: 4, children: [
4208
+ /* @__PURE__ */ i.jsxs(Ie, { align: "start", gap: 4, children: [
4178
4209
  /* @__PURE__ */ i.jsxs(fe, { children: [
4179
4210
  /* @__PURE__ */ i.jsx(hr, { size: 16 }),
4180
4211
  /* @__PURE__ */ i.jsx(q, { fontWeight: "semibold", fontSize: "sm", children: "Date Range Filter" })
4181
4212
  ] }),
4182
- /* @__PURE__ */ i.jsxs(ke, { align: "start", gap: 1, children: [
4213
+ /* @__PURE__ */ i.jsxs(Ie, { align: "start", gap: 1, children: [
4183
4214
  /* @__PURE__ */ i.jsx(q, { fontSize: "sm", fontWeight: "medium", children: "Format:" }),
4184
4215
  /* @__PURE__ */ i.jsxs(q, { fontSize: "xs", color: "gray.600", children: [
4185
4216
  "DD-MM-YYYY",
@@ -4187,19 +4218,19 @@ function Ba({
4187
4218
  "DD-MM-YYYY"
4188
4219
  ] })
4189
4220
  ] }),
4190
- /* @__PURE__ */ i.jsxs(ke, { align: "start", gap: 1, children: [
4221
+ /* @__PURE__ */ i.jsxs(Ie, { align: "start", gap: 1, children: [
4191
4222
  /* @__PURE__ */ i.jsx(q, { fontSize: "sm", fontWeight: "medium", children: "Tips:" }),
4192
4223
  /* @__PURE__ */ i.jsx(q, { fontSize: "xs", children: '• "15 to 20" → assumes current month/year' }),
4193
4224
  /* @__PURE__ */ i.jsx(q, { fontSize: "xs", children: "• Leave end blank → up to today" }),
4194
4225
  /* @__PURE__ */ i.jsx(q, { fontSize: "xs", children: "• Dates auto-swapped if reversed" }),
4195
4226
  /* @__PURE__ */ i.jsx(q, { fontSize: "xs", children: "• Press Enter on empty end → fills today" })
4196
4227
  ] }),
4197
- /* @__PURE__ */ i.jsxs(ke, { align: "start", gap: 1, children: [
4228
+ /* @__PURE__ */ i.jsxs(Ie, { align: "start", gap: 1, children: [
4198
4229
  /* @__PURE__ */ i.jsx(q, { fontSize: "sm", fontWeight: "medium", children: "Shortcut:" }),
4199
4230
  /* @__PURE__ */ i.jsxs(fe, { children: [
4200
- /* @__PURE__ */ i.jsx(Hn, { children: "Ctrl" }),
4231
+ /* @__PURE__ */ i.jsx(Vn, { children: "Ctrl" }),
4201
4232
  /* @__PURE__ */ i.jsx(q, { children: "+" }),
4202
- /* @__PURE__ */ i.jsx(Hn, { children: "D" })
4233
+ /* @__PURE__ */ i.jsx(Vn, { children: "D" })
4203
4234
  ] })
4204
4235
  ] })
4205
4236
  ] })
@@ -4210,12 +4241,12 @@ function Ba({
4210
4241
  /* @__PURE__ */ i.jsx(
4211
4242
  Sn,
4212
4243
  {
4213
- ref: l,
4244
+ ref: u,
4214
4245
  placeholder: "15-06-2025 to 20-06-2025",
4215
4246
  value: s,
4216
4247
  size: "sm",
4217
4248
  disabled: n,
4218
- onChange: (v) => h(v.target.value),
4249
+ onChange: (v) => f(v.target.value),
4219
4250
  onBlur: d,
4220
4251
  onKeyDown: m,
4221
4252
  pr: s ? "10" : void 0,
@@ -4234,7 +4265,7 @@ function Ba({
4234
4265
  ) })
4235
4266
  ] }) }) });
4236
4267
  }
4237
- const Ua = y(We.Root), Ga = y(We.Label), Xa = y(We.HelperText), qa = y(We.ErrorText), mr = ({
4268
+ const Ga = x(We.Root), Xa = x(We.Label), qa = x(We.HelperText), Ka = x(We.ErrorText), mr = ({
4238
4269
  icon: e,
4239
4270
  value: t,
4240
4271
  onChange: n,
@@ -4243,13 +4274,13 @@ const Ua = y(We.Root), Ga = y(We.Label), Xa = y(We.HelperText), qa = y(We.ErrorT
4243
4274
  variant: s = "outline",
4244
4275
  width: a = "100%",
4245
4276
  label: c,
4246
- helperText: u,
4247
- isDisabled: l = !1,
4248
- required: h = !1,
4277
+ helperText: l,
4278
+ isDisabled: u = !1,
4279
+ required: f = !1,
4249
4280
  errorText: d,
4250
4281
  visible: m
4251
- }) => /* @__PURE__ */ i.jsxs(Ua, { width: a, children: [
4252
- m && /* @__PURE__ */ i.jsx(Ga, { children: c }),
4282
+ }) => /* @__PURE__ */ i.jsxs(Ga, { width: a, children: [
4283
+ m && /* @__PURE__ */ i.jsx(Xa, { children: c }),
4253
4284
  /* @__PURE__ */ i.jsx(Cr, { startElement: e, children: /* @__PURE__ */ i.jsx(
4254
4285
  Sn,
4255
4286
  {
@@ -4258,13 +4289,13 @@ const Ua = y(We.Root), Ga = y(We.Label), Xa = y(We.HelperText), qa = y(We.ErrorT
4258
4289
  placeholder: r,
4259
4290
  size: o,
4260
4291
  variant: s,
4261
- disabled: l,
4262
- required: h
4292
+ disabled: u,
4293
+ required: f
4263
4294
  }
4264
4295
  ) }),
4265
- d && /* @__PURE__ */ i.jsx(qa, { fontSize: "xs", children: d }),
4266
- u && /* @__PURE__ */ i.jsx(Xa, { fontSize: "xs", children: u })
4267
- ] }), Ka = y(We.Root), Ja = y(We.HelperText), Za = y(We.ErrorText), Qa = y(K.Root), ec = y(K.Label), tc = y(K.Control), nc = y(K.Trigger), rc = y(K.ValueText), oc = y(K.IndicatorGroup), sc = y(K.Indicator), ic = y(K.Content), ac = y(K.Item), cc = y(K.ItemIndicator), lc = y(K.HiddenSelect), uc = y(K.Positioner), dc = ({
4296
+ d && /* @__PURE__ */ i.jsx(Ka, { fontSize: "xs", children: d }),
4297
+ l && /* @__PURE__ */ i.jsx(qa, { fontSize: "xs", children: l })
4298
+ ] }), Ja = x(We.Root), Za = x(We.HelperText), Qa = x(We.ErrorText), ec = x(K.Root), tc = x(K.Label), nc = x(K.Control), rc = x(K.Trigger), oc = x(K.ValueText), sc = x(K.IndicatorGroup), ic = x(K.Indicator), ac = x(K.Content), cc = x(K.Item), lc = x(K.ItemIndicator), uc = x(K.HiddenSelect), dc = x(K.Positioner), fc = ({
4268
4299
  options: e = [],
4269
4300
  label: t,
4270
4301
  value: n,
@@ -4273,18 +4304,18 @@ const Ua = y(We.Root), Ga = y(We.Label), Xa = y(We.HelperText), qa = y(We.ErrorT
4273
4304
  size: s = "xs",
4274
4305
  width: a = "100%",
4275
4306
  variant: c = "outline",
4276
- helperText: u,
4277
- isDisabled: l,
4278
- required: h,
4307
+ helperText: l,
4308
+ isDisabled: u,
4309
+ required: f,
4279
4310
  errorText: d,
4280
4311
  visible: m
4281
4312
  }) => {
4282
4313
  const p = Dr({
4283
4314
  items: e
4284
4315
  });
4285
- return /* @__PURE__ */ i.jsxs(Ka, { disabled: l, required: h, children: [
4316
+ return /* @__PURE__ */ i.jsxs(Ja, { disabled: u, required: f, children: [
4286
4317
  /* @__PURE__ */ i.jsxs(
4287
- Qa,
4318
+ ec,
4288
4319
  {
4289
4320
  collection: p,
4290
4321
  variant: c,
@@ -4293,61 +4324,61 @@ const Ua = y(We.Root), Ga = y(We.Label), Xa = y(We.HelperText), qa = y(We.ErrorT
4293
4324
  value: n ? [n] : [],
4294
4325
  onValueChange: (v) => r?.(v.value[0]),
4295
4326
  children: [
4296
- /* @__PURE__ */ i.jsx(lc, {}),
4297
- m && /* @__PURE__ */ i.jsx(ec, { children: t }),
4298
- /* @__PURE__ */ i.jsxs(tc, { children: [
4299
- /* @__PURE__ */ i.jsx(nc, { children: /* @__PURE__ */ i.jsx(rc, { placeholder: o }) }),
4300
- /* @__PURE__ */ i.jsx(oc, { children: /* @__PURE__ */ i.jsx(sc, {}) })
4327
+ /* @__PURE__ */ i.jsx(uc, {}),
4328
+ m && /* @__PURE__ */ i.jsx(tc, { children: t }),
4329
+ /* @__PURE__ */ i.jsxs(nc, { children: [
4330
+ /* @__PURE__ */ i.jsx(rc, { children: /* @__PURE__ */ i.jsx(oc, { placeholder: o }) }),
4331
+ /* @__PURE__ */ i.jsx(sc, { children: /* @__PURE__ */ i.jsx(ic, {}) })
4301
4332
  ] }),
4302
- /* @__PURE__ */ i.jsx(uc, { children: /* @__PURE__ */ i.jsx(ic, { children: p.items.map((v) => /* @__PURE__ */ i.jsxs(ac, { item: v, children: [
4333
+ /* @__PURE__ */ i.jsx(dc, { children: /* @__PURE__ */ i.jsx(ac, { children: p.items.map((v) => /* @__PURE__ */ i.jsxs(cc, { item: v, children: [
4303
4334
  v.label,
4304
- /* @__PURE__ */ i.jsx(cc, {})
4335
+ /* @__PURE__ */ i.jsx(lc, {})
4305
4336
  ] }, v.value)) }) })
4306
4337
  ]
4307
4338
  }
4308
4339
  ),
4309
- u && /* @__PURE__ */ i.jsx(Ja, { children: u }),
4310
- d && /* @__PURE__ */ i.jsx(Za, { children: d })
4340
+ l && /* @__PURE__ */ i.jsx(Za, { children: l }),
4341
+ d && /* @__PURE__ */ i.jsx(Qa, { children: d })
4311
4342
  ] });
4312
4343
  }, no = (e) => `FILTER_PRESETS_${e ?? "default"}`;
4313
- function fc(e) {
4344
+ function hc(e) {
4314
4345
  try {
4315
4346
  return JSON.parse(localStorage.getItem(no(e)) || "[]");
4316
4347
  } catch {
4317
4348
  return [];
4318
4349
  }
4319
4350
  }
4320
- const Vt = new _r({}), $n = (e) => {
4321
- const t = Vt.state[e];
4351
+ const Ht = new _r({}), $n = (e) => {
4352
+ const t = Ht.state[e];
4322
4353
  if (t) return t;
4323
- const n = fc(e);
4324
- return Vt.setState((r) => ({
4354
+ const n = hc(e);
4355
+ return Ht.setState((r) => ({
4325
4356
  ...r,
4326
4357
  [e]: n
4327
4358
  })), n;
4328
4359
  }, ro = (e, t) => {
4329
- Vt.setState((n) => ({
4360
+ Ht.setState((n) => ({
4330
4361
  ...n,
4331
4362
  [e]: t
4332
4363
  })), localStorage.setItem(no(e), JSON.stringify(t));
4333
- }, hc = (e, t) => {
4364
+ }, gc = (e, t) => {
4334
4365
  const n = $n(e).filter((r) => r.id !== t);
4335
4366
  ro(e, n);
4336
4367
  }, pc = (e, t) => {
4337
4368
  const n = [t, ...$n(e)];
4338
4369
  ro(e, n);
4339
- }, gc = y(De.Root), vc = y(De.HiddenInput), mc = y(De.Control), bc = y(mt.Root), xc = y(mt.Track), yc = y(mt.Range), wc = y(mt.Thumbs), Sc = y(mt.Control), Dc = ({ filter: e, onVisibilityChange: t, onSizeChange: n }) => {
4370
+ }, vc = x(De.Root), mc = x(De.HiddenInput), bc = x(De.Control), xc = x(mt.Root), yc = x(mt.Track), wc = x(mt.Range), Sc = x(mt.Thumbs), Dc = x(mt.Control), Cc = ({ filter: e, onVisibilityChange: t, onSizeChange: n }) => {
4340
4371
  const { attributes: r, listeners: o, setNodeRef: s, transform: a, transition: c } = Zr({
4341
4372
  id: e.id
4342
- }), u = {
4373
+ }), l = {
4343
4374
  transform: Ze.Transform.toString(a),
4344
4375
  transition: c
4345
4376
  };
4346
4377
  return /* @__PURE__ */ i.jsxs(
4347
- ke,
4378
+ Ie,
4348
4379
  {
4349
4380
  ref: s,
4350
- style: u,
4381
+ style: l,
4351
4382
  align: "stretch",
4352
4383
  border: "1px solid",
4353
4384
  borderColor: "gray.200",
@@ -4363,31 +4394,31 @@ const Vt = new _r({}), $n = (e) => {
4363
4394
  /* @__PURE__ */ i.jsxs(fe, { justify: "space-between", children: [
4364
4395
  /* @__PURE__ */ i.jsx(q, { fontSize: "sm", children: "Visible" }),
4365
4396
  /* @__PURE__ */ i.jsxs(
4366
- gc,
4397
+ vc,
4367
4398
  {
4368
4399
  checked: e.visible,
4369
4400
  size: "sm",
4370
- onCheckedChange: (l) => t?.(e.id, !!l.checked),
4401
+ onCheckedChange: (u) => t?.(e.id, !!u.checked),
4371
4402
  children: [
4372
- /* @__PURE__ */ i.jsx(vc, {}),
4373
- /* @__PURE__ */ i.jsx(mc, {})
4403
+ /* @__PURE__ */ i.jsx(mc, {}),
4404
+ /* @__PURE__ */ i.jsx(bc, {})
4374
4405
  ]
4375
4406
  }
4376
4407
  )
4377
4408
  ] }),
4378
- /* @__PURE__ */ i.jsxs(ke, { align: "stretch", gap: 1, children: [
4409
+ /* @__PURE__ */ i.jsxs(Ie, { align: "stretch", gap: 1, children: [
4379
4410
  /* @__PURE__ */ i.jsx(q, { fontSize: "sm", children: "Size" }),
4380
4411
  /* @__PURE__ */ i.jsx(
4381
- bc,
4412
+ xc,
4382
4413
  {
4383
4414
  min: 1,
4384
4415
  max: 5,
4385
4416
  step: 0.5,
4386
4417
  value: [e.size ?? 1],
4387
- onValueChange: (l) => n?.(e.id, l.value[0]),
4388
- children: /* @__PURE__ */ i.jsxs(Sc, { children: [
4389
- /* @__PURE__ */ i.jsx(xc, { children: /* @__PURE__ */ i.jsx(yc, {}) }),
4390
- /* @__PURE__ */ i.jsx(wc, {})
4418
+ onValueChange: (u) => n?.(e.id, u.value[0]),
4419
+ children: /* @__PURE__ */ i.jsxs(Dc, { children: [
4420
+ /* @__PURE__ */ i.jsx(yc, { children: /* @__PURE__ */ i.jsx(wc, {}) }),
4421
+ /* @__PURE__ */ i.jsx(Sc, {})
4391
4422
  ] })
4392
4423
  }
4393
4424
  )
@@ -4395,7 +4426,7 @@ const Vt = new _r({}), $n = (e) => {
4395
4426
  ]
4396
4427
  }
4397
4428
  );
4398
- }, Cc = y(Me.Root), Rc = y(Me.Trigger), jc = y(Me.Backdrop), Ec = y(Me.Positioner), _c = y(Me.Content), Tc = y(Me.Header), Oc = y(Me.Title), Mc = y(Me.Body), $c = y(Me.Footer), Ic = y(Me.CloseTrigger), kc = y(Bt.Root), Ac = y(Bt.List), dn = y(Bt.Trigger), fn = y(Bt.Content), oo = (e, t) => {
4429
+ }, Rc = x(Me.Root), jc = x(Me.Trigger), Ec = x(Me.Backdrop), _c = x(Me.Positioner), Tc = x(Me.Content), Oc = x(Me.Header), Mc = x(Me.Title), $c = x(Me.Body), kc = x(Me.Footer), Ic = x(Me.CloseTrigger), Ac = x(Bt.Root), Lc = x(Bt.List), dn = x(Bt.Trigger), fn = x(Bt.Content), oo = (e, t) => {
4399
4430
  if (e.customComponent)
4400
4431
  return e.customComponent;
4401
4432
  switch (e.type) {
@@ -4414,7 +4445,7 @@ const Vt = new _r({}), $n = (e) => {
4414
4445
  return /* @__PURE__ */ i.jsx(mr, { label: e.label, value: e.value, onChange: e.onChange });
4415
4446
  case "checkbox":
4416
4447
  return /* @__PURE__ */ i.jsx(
4417
- Na,
4448
+ za,
4418
4449
  {
4419
4450
  label: e.label,
4420
4451
  value: e.value,
@@ -4423,7 +4454,7 @@ const Vt = new _r({}), $n = (e) => {
4423
4454
  );
4424
4455
  case "select":
4425
4456
  return /* @__PURE__ */ i.jsx(
4426
- dc,
4457
+ fc,
4427
4458
  {
4428
4459
  label: e.label,
4429
4460
  value: e.value,
@@ -4434,7 +4465,7 @@ const Vt = new _r({}), $n = (e) => {
4434
4465
  );
4435
4466
  case "date":
4436
4467
  return /* @__PURE__ */ i.jsx(
4437
- Ba,
4468
+ Ua,
4438
4469
  {
4439
4470
  value: e.value,
4440
4471
  onChange: e.onChange
@@ -4443,7 +4474,7 @@ const Vt = new _r({}), $n = (e) => {
4443
4474
  default:
4444
4475
  return null;
4445
4476
  }
4446
- }, Lc = ({
4477
+ }, Nc = ({
4447
4478
  filterDrawerSize: e = "sm",
4448
4479
  onVisibilityChange: t,
4449
4480
  onSizeChange: n,
@@ -4452,31 +4483,31 @@ const Vt = new _r({}), $n = (e) => {
4452
4483
  pageKey: s = "default",
4453
4484
  currentFilters: a = {},
4454
4485
  onLoadPreset: c,
4455
- activePresetName: u,
4456
- onReorder: l,
4457
- open: h,
4486
+ activePresetName: l,
4487
+ onReorder: u,
4488
+ open: f,
4458
4489
  onOpenChange: d
4459
4490
  }) => {
4460
- const p = bt(Vt)[s] ?? $n(s), v = () => {
4461
- const f = prompt("Preset name?");
4462
- f && pc(s, {
4491
+ const p = bt(Ht)[s] ?? $n(s), v = () => {
4492
+ const h = prompt("Preset name?");
4493
+ h && pc(s, {
4463
4494
  id: crypto.randomUUID(),
4464
- name: f,
4495
+ name: h,
4465
4496
  date: (/* @__PURE__ */ new Date()).toISOString(),
4466
4497
  filters: a
4467
4498
  });
4468
4499
  };
4469
- return /* @__PURE__ */ i.jsx(fe, { wrap: "wrap", children: /* @__PURE__ */ i.jsxs(Cc, { size: e, open: h, onOpenChange: d, children: [
4470
- /* @__PURE__ */ i.jsx(Rc, { asChild: !0, children: /* @__PURE__ */ i.jsxs(_e, { "aria-label": "Open filters", variant: "outline", size: "xs", ml: 2, p: 2, children: [
4500
+ return /* @__PURE__ */ i.jsx(fe, { wrap: "wrap", children: /* @__PURE__ */ i.jsxs(Rc, { size: e, open: f, onOpenChange: d, children: [
4501
+ /* @__PURE__ */ i.jsx(jc, { asChild: !0, children: /* @__PURE__ */ i.jsxs(_e, { "aria-label": "Open filters", variant: "outline", size: "xs", ml: 2, p: 2, children: [
4471
4502
  /* @__PURE__ */ i.jsx(Bi, { size: 16 }),
4472
4503
  "Filters"
4473
4504
  ] }) }),
4474
4505
  /* @__PURE__ */ i.jsxs(Qe, { children: [
4475
- /* @__PURE__ */ i.jsx(jc, {}),
4476
- /* @__PURE__ */ i.jsx(Ec, { children: /* @__PURE__ */ i.jsxs(_c, { children: [
4477
- /* @__PURE__ */ i.jsx(Tc, { children: /* @__PURE__ */ i.jsx(Oc, { children: "Filters" }) }),
4478
- /* @__PURE__ */ i.jsx(Mc, { overflowY: "auto", pt: 1, children: /* @__PURE__ */ i.jsxs(kc, { defaultValue: "view", children: [
4479
- /* @__PURE__ */ i.jsxs(Ac, { mb: 4, children: [
4506
+ /* @__PURE__ */ i.jsx(Ec, {}),
4507
+ /* @__PURE__ */ i.jsx(_c, { children: /* @__PURE__ */ i.jsxs(Tc, { children: [
4508
+ /* @__PURE__ */ i.jsx(Oc, { children: /* @__PURE__ */ i.jsx(Mc, { children: "Filters" }) }),
4509
+ /* @__PURE__ */ i.jsx($c, { overflowY: "auto", pt: 1, children: /* @__PURE__ */ i.jsxs(Ac, { defaultValue: "view", children: [
4510
+ /* @__PURE__ */ i.jsxs(Lc, { mb: 4, children: [
4480
4511
  /* @__PURE__ */ i.jsxs(dn, { value: "view", children: [
4481
4512
  /* @__PURE__ */ i.jsx(Xi, { size: 16 }),
4482
4513
  "Edit"
@@ -4490,64 +4521,64 @@ const Vt = new _r({}), $n = (e) => {
4490
4521
  "Presets"
4491
4522
  ] })
4492
4523
  ] }),
4493
- /* @__PURE__ */ i.jsx(fn, { value: "view", children: o.filter((f) => f.visible).map((f) => /* @__PURE__ */ i.jsx(
4494
- ke,
4524
+ /* @__PURE__ */ i.jsx(fn, { value: "view", children: o.filter((h) => h.visible).map((h) => /* @__PURE__ */ i.jsx(
4525
+ Ie,
4495
4526
  {
4496
4527
  align: "stretch",
4497
4528
  border: "1px solid",
4498
4529
  borderColor: "gray.200",
4499
- flex: f.size ?? 1,
4500
- minW: `${(f.size ?? 1) * 100}px`,
4530
+ flex: h.size ?? 1,
4531
+ minW: `${(h.size ?? 1) * 100}px`,
4501
4532
  rounded: "md",
4502
4533
  p: 3,
4503
4534
  mb: 3,
4504
- children: oo(f, h)
4535
+ children: oo(h, f)
4505
4536
  },
4506
- f.id
4537
+ h.id
4507
4538
  )) }),
4508
4539
  /* @__PURE__ */ i.jsx(fn, { value: "settings", children: /* @__PURE__ */ i.jsx(
4509
4540
  Ur,
4510
4541
  {
4511
4542
  sensors: Ko(qo(On)),
4512
4543
  collisionDetection: $r,
4513
- onDragEnd: ({ active: f, over: b }) => {
4514
- if (!b || f.id === b.id) return;
4515
- const x = o.findIndex((T) => T.id === f.id), E = o.findIndex((T) => T.id === b.id), R = Kt(o, x, E);
4516
- l?.(R);
4544
+ onDragEnd: ({ active: h, over: b }) => {
4545
+ if (!b || h.id === b.id) return;
4546
+ const w = o.findIndex((_) => _.id === h.id), R = o.findIndex((_) => _.id === b.id), E = Kt(o, w, R);
4547
+ u?.(E);
4517
4548
  },
4518
4549
  children: /* @__PURE__ */ i.jsx(
4519
4550
  Kr,
4520
4551
  {
4521
- items: o.map((f) => f.id),
4552
+ items: o.map((h) => h.id),
4522
4553
  strategy: di,
4523
- children: o.map((f) => /* @__PURE__ */ i.jsx(
4524
- Dc,
4554
+ children: o.map((h) => /* @__PURE__ */ i.jsx(
4555
+ Cc,
4525
4556
  {
4526
- filter: f,
4557
+ filter: h,
4527
4558
  onVisibilityChange: t,
4528
4559
  onSizeChange: n
4529
4560
  },
4530
- f.id
4561
+ h.id
4531
4562
  ))
4532
4563
  }
4533
4564
  )
4534
4565
  }
4535
4566
  ) }),
4536
- /* @__PURE__ */ i.jsx(fn, { value: "presets", children: /* @__PURE__ */ i.jsxs(ke, { align: "stretch", mb: 3, children: [
4567
+ /* @__PURE__ */ i.jsx(fn, { value: "presets", children: /* @__PURE__ */ i.jsxs(Ie, { align: "stretch", mb: 3, children: [
4537
4568
  /* @__PURE__ */ i.jsx(Ke, { size: "sm", colorScheme: "blue", onClick: v, children: "Save Current Filters" }),
4538
4569
  p.length === 0 && /* @__PURE__ */ i.jsx(q, { fontSize: "xs", color: "gray.500", children: "No presets saved yet." }),
4539
- p.map((f) => /* @__PURE__ */ i.jsxs(
4570
+ p.map((h) => /* @__PURE__ */ i.jsxs(
4540
4571
  fe,
4541
4572
  {
4542
4573
  justify: "space-between",
4543
4574
  border: "1px solid",
4544
- borderColor: u === f.name ? "blue.300" : "gray.200",
4575
+ borderColor: l === h.name ? "blue.300" : "gray.200",
4545
4576
  rounded: "md",
4546
4577
  p: 2,
4547
4578
  children: [
4548
- /* @__PURE__ */ i.jsxs(ke, { align: "start", gap: 0, children: [
4549
- /* @__PURE__ */ i.jsx(q, { fontWeight: "bold", fontSize: "sm", children: f.name }),
4550
- /* @__PURE__ */ i.jsx(q, { fontSize: "xs", color: "gray.500", children: new Date(f.date).toLocaleDateString() })
4579
+ /* @__PURE__ */ i.jsxs(Ie, { align: "start", gap: 0, children: [
4580
+ /* @__PURE__ */ i.jsx(q, { fontWeight: "bold", fontSize: "sm", children: h.name }),
4581
+ /* @__PURE__ */ i.jsx(q, { fontSize: "xs", color: "gray.500", children: new Date(h.date).toLocaleDateString() })
4551
4582
  ] }),
4552
4583
  /* @__PURE__ */ i.jsxs(fe, { children: [
4553
4584
  /* @__PURE__ */ i.jsx(
@@ -4555,7 +4586,7 @@ const Vt = new _r({}), $n = (e) => {
4555
4586
  {
4556
4587
  size: "xs",
4557
4588
  variant: "ghost",
4558
- onClick: () => c?.(f.filters, f.name),
4589
+ onClick: () => c?.(h.filters, h.name),
4559
4590
  children: "Load"
4560
4591
  }
4561
4592
  ),
@@ -4565,18 +4596,18 @@ const Vt = new _r({}), $n = (e) => {
4565
4596
  size: "xs",
4566
4597
  "aria-label": "Delete preset",
4567
4598
  variant: "ghost",
4568
- onClick: () => hc(s, f.id),
4599
+ onClick: () => gc(s, h.id),
4569
4600
  children: /* @__PURE__ */ i.jsx(Fi, { size: 14 })
4570
4601
  }
4571
4602
  )
4572
4603
  ] })
4573
4604
  ]
4574
4605
  },
4575
- f.id
4606
+ h.id
4576
4607
  ))
4577
4608
  ] }) })
4578
4609
  ] }) }),
4579
- /* @__PURE__ */ i.jsxs($c, { justify: "space-between", children: [
4610
+ /* @__PURE__ */ i.jsxs(kc, { justify: "space-between", children: [
4580
4611
  /* @__PURE__ */ i.jsx(
4581
4612
  Ke,
4582
4613
  {
@@ -4592,7 +4623,7 @@ const Vt = new _r({}), $n = (e) => {
4592
4623
  ] }) })
4593
4624
  ] })
4594
4625
  ] }) });
4595
- }, fl = ({
4626
+ }, hl = ({
4596
4627
  title: e,
4597
4628
  filters: t,
4598
4629
  onVisibilityChange: n,
@@ -4601,9 +4632,9 @@ const Vt = new _r({}), $n = (e) => {
4601
4632
  onClear: s,
4602
4633
  maxToolbarUnits: a,
4603
4634
  pageKey: c,
4604
- currentFilters: u,
4605
- onLoadPreset: l,
4606
- activePresetName: h,
4635
+ currentFilters: l,
4636
+ onLoadPreset: u,
4637
+ activePresetName: f,
4607
4638
  filterDrawerSize: d = "sm"
4608
4639
  }) => {
4609
4640
  const [m, p] = oe(!1);
@@ -4621,7 +4652,7 @@ const Vt = new _r({}), $n = (e) => {
4621
4652
  v.id
4622
4653
  )),
4623
4654
  /* @__PURE__ */ i.jsx(
4624
- Lc,
4655
+ Nc,
4625
4656
  {
4626
4657
  filterDrawerSize: d,
4627
4658
  onVisibilityChange: n,
@@ -4631,9 +4662,9 @@ const Vt = new _r({}), $n = (e) => {
4631
4662
  maxToolbarUnits: a,
4632
4663
  pageKey: c,
4633
4664
  filters: t,
4634
- currentFilters: u,
4635
- onLoadPreset: l,
4636
- activePresetName: h,
4665
+ currentFilters: l,
4666
+ onLoadPreset: u,
4667
+ activePresetName: f,
4637
4668
  open: m,
4638
4669
  onOpenChange: (v) => {
4639
4670
  p(v.open);
@@ -4642,7 +4673,7 @@ const Vt = new _r({}), $n = (e) => {
4642
4673
  )
4643
4674
  ] })
4644
4675
  ] });
4645
- }, hl = (e, t) => {
4676
+ }, gl = (e, t) => {
4646
4677
  localStorage.setItem(`FILTER_ORDER_${e}`, JSON.stringify(t));
4647
4678
  }, pl = (e) => {
4648
4679
  try {
@@ -4650,7 +4681,7 @@ const Vt = new _r({}), $n = (e) => {
4650
4681
  } catch {
4651
4682
  return [];
4652
4683
  }
4653
- }, gl = ({
4684
+ }, vl = ({
4654
4685
  onClick: e,
4655
4686
  size: t = "xs",
4656
4687
  variant: n = "solid",
@@ -4659,9 +4690,9 @@ const Vt = new _r({}), $n = (e) => {
4659
4690
  rightIcon: s,
4660
4691
  isDisabled: a,
4661
4692
  colorScheme: c,
4662
- loading: u,
4663
- loadingText: l,
4664
- rounded: h,
4693
+ loading: l,
4694
+ loadingText: u,
4695
+ rounded: f,
4665
4696
  type: d = "button"
4666
4697
  }) => /* @__PURE__ */ i.jsx(
4667
4698
  Ke,
@@ -4671,9 +4702,9 @@ const Vt = new _r({}), $n = (e) => {
4671
4702
  variant: n,
4672
4703
  disabled: a,
4673
4704
  colorPalette: c,
4674
- loading: u,
4675
- loadingText: l,
4676
- rounded: h,
4705
+ loading: l,
4706
+ loadingText: u,
4707
+ rounded: f,
4677
4708
  type: d,
4678
4709
  children: /* @__PURE__ */ i.jsxs(fe, { gap: 1, children: [
4679
4710
  o,
@@ -4681,8 +4712,8 @@ const Vt = new _r({}), $n = (e) => {
4681
4712
  s
4682
4713
  ] })
4683
4714
  }
4684
- ), Nc = y(Ae.Root), zc = y(Ae.Backdrop), Pc = y(Ae.Positioner), Yc = y(Ae.Content), Fc = y(Ae.Header), Hc = y(Ae.Body), Vc = y(Ae.Footer), Wc = y(Ae.Title), Bc = y(Ae.CloseTrigger);
4685
- function vl({
4715
+ ), zc = x(Ae.Root), Pc = x(Ae.Backdrop), Yc = x(Ae.Positioner), Fc = x(Ae.Content), Vc = x(Ae.Header), Hc = x(Ae.Body), Wc = x(Ae.Footer), Bc = x(Ae.Title), Uc = x(Ae.CloseTrigger);
4716
+ function ml({
4686
4717
  open: e,
4687
4718
  onClose: t,
4688
4719
  onConfirm: n,
@@ -4692,13 +4723,13 @@ function vl({
4692
4723
  confirmLabel: a = "Delete",
4693
4724
  isLoading: c = !1
4694
4725
  }) {
4695
- const [u, l] = oe("");
4696
- return /* @__PURE__ */ i.jsx(Nc, { open: e, placement: "center", onOpenChange: (h) => !h.open && t(), children: /* @__PURE__ */ i.jsxs(Qe, { children: [
4697
- /* @__PURE__ */ i.jsx(zc, {}),
4698
- /* @__PURE__ */ i.jsx(Pc, { children: /* @__PURE__ */ i.jsxs(Yc, { maxW: "520px", children: [
4699
- /* @__PURE__ */ i.jsx(Fc, { borderBottom: "1px solid", borderColor: "red.200", boxShadow: "sm", children: /* @__PURE__ */ i.jsx(Wc, { color: "red.600", children: r }) }),
4700
- /* @__PURE__ */ i.jsx(Hc, { children: /* @__PURE__ */ i.jsxs(pn, { gap: 4, boxShadow: "lg", border: "1px solid gray.200", borderRadius: "md", p: 4, children: [
4701
- /* @__PURE__ */ i.jsx(je, { border: "1px solid", borderColor: "red.200", bg: "red.50", borderRadius: "md", p: 4, children: /* @__PURE__ */ i.jsxs(pn, { direction: "row", gap: 3, align: "flex-start", children: [
4726
+ const [l, u] = oe("");
4727
+ return /* @__PURE__ */ i.jsx(zc, { open: e, placement: "center", onOpenChange: (f) => !f.open && t(), children: /* @__PURE__ */ i.jsxs(Qe, { children: [
4728
+ /* @__PURE__ */ i.jsx(Pc, {}),
4729
+ /* @__PURE__ */ i.jsx(Yc, { children: /* @__PURE__ */ i.jsxs(Fc, { maxW: "520px", children: [
4730
+ /* @__PURE__ */ i.jsx(Vc, { borderBottom: "1px solid", borderColor: "red.200", boxShadow: "sm", children: /* @__PURE__ */ i.jsx(Bc, { color: "red.600", children: r }) }),
4731
+ /* @__PURE__ */ i.jsx(Hc, { children: /* @__PURE__ */ i.jsxs(gn, { gap: 4, boxShadow: "lg", border: "1px solid gray.200", borderRadius: "md", p: 4, children: [
4732
+ /* @__PURE__ */ i.jsx(je, { border: "1px solid", borderColor: "red.200", bg: "red.50", borderRadius: "md", p: 4, children: /* @__PURE__ */ i.jsxs(gn, { direction: "row", gap: 3, align: "flex-start", children: [
4702
4733
  /* @__PURE__ */ i.jsx(je, { color: "red.600", mt: "2px", children: /* @__PURE__ */ i.jsx(ea, { size: 20 }) }),
4703
4734
  /* @__PURE__ */ i.jsxs(je, { children: [
4704
4735
  /* @__PURE__ */ i.jsx(q, { fontWeight: "semibold", color: "red.700", children: "Are you sure?" }),
@@ -4720,15 +4751,15 @@ function vl({
4720
4751
  Sn,
4721
4752
  {
4722
4753
  placeholder: `Type ${s} here`,
4723
- value: u,
4724
- onChange: (h) => l(h.target.value),
4754
+ value: l,
4755
+ onChange: (f) => u(f.target.value),
4725
4756
  size: "xs"
4726
4757
  }
4727
4758
  )
4728
4759
  ] })
4729
4760
  ] }) }),
4730
4761
  /* @__PURE__ */ i.jsxs(
4731
- Vc,
4762
+ Wc,
4732
4763
  {
4733
4764
  justifyContent: "flex-end",
4734
4765
  gap: 3,
@@ -4752,11 +4783,11 @@ function vl({
4752
4783
  ]
4753
4784
  }
4754
4785
  ),
4755
- /* @__PURE__ */ i.jsx(Bc, { asChild: !0, children: /* @__PURE__ */ i.jsx(Rr, { size: "sm" }) })
4786
+ /* @__PURE__ */ i.jsx(Uc, { asChild: !0, children: /* @__PURE__ */ i.jsx(Rr, { size: "sm" }) })
4756
4787
  ] }) })
4757
4788
  ] }) });
4758
4789
  }
4759
- function ml({
4790
+ function bl({
4760
4791
  refetch: e,
4761
4792
  isLoading: t = !1,
4762
4793
  label: n = "Refresh"
@@ -4790,115 +4821,115 @@ function ml({
4790
4821
  }
4791
4822
  );
4792
4823
  }
4793
- var It = { exports: {} }, Uc = It.exports, br;
4794
- function Gc() {
4824
+ var kt = { exports: {} }, Gc = kt.exports, br;
4825
+ function Xc() {
4795
4826
  return br || (br = 1, (function(e, t) {
4796
4827
  (function(n, r) {
4797
4828
  e.exports = r();
4798
- })(Uc, (function() {
4799
- var n = 1e3, r = 6e4, o = 36e5, s = "millisecond", a = "second", c = "minute", u = "hour", l = "day", h = "week", d = "month", m = "quarter", p = "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) {
4800
- var D = ["th", "st", "nd", "rd"], w = M % 100;
4801
- return "[" + M + (D[(w - 20) % 10] || D[w] || D[0]) + "]";
4802
- } }, R = function(M, D, w) {
4829
+ })(Gc, (function() {
4830
+ var n = 1e3, r = 6e4, o = 36e5, s = "millisecond", a = "second", c = "minute", l = "hour", u = "day", f = "week", d = "month", m = "quarter", p = "year", v = "date", h = "Invalid Date", b = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, w = /\[([^\]]+)]|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) {
4831
+ var D = ["th", "st", "nd", "rd"], y = M % 100;
4832
+ return "[" + M + (D[(y - 20) % 10] || D[y] || D[0]) + "]";
4833
+ } }, E = function(M, D, y) {
4803
4834
  var j = String(M);
4804
- return !j || j.length >= D ? M : "" + Array(D + 1 - j.length).join(w) + M;
4805
- }, T = { s: R, z: function(M) {
4806
- var D = -M.utcOffset(), w = Math.abs(D), j = Math.floor(w / 60), C = w % 60;
4807
- return (D <= 0 ? "+" : "-") + R(j, 2, "0") + ":" + R(C, 2, "0");
4808
- }, m: function M(D, w) {
4809
- if (D.date() < w.date()) return -M(w, D);
4810
- 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);
4811
- return +(-(j + (w - C) / (k ? C - L : L - C)) || 0);
4835
+ return !j || j.length >= D ? M : "" + Array(D + 1 - j.length).join(y) + M;
4836
+ }, _ = { s: E, z: function(M) {
4837
+ var D = -M.utcOffset(), y = Math.abs(D), j = Math.floor(y / 60), C = y % 60;
4838
+ return (D <= 0 ? "+" : "-") + E(j, 2, "0") + ":" + E(C, 2, "0");
4839
+ }, m: function M(D, y) {
4840
+ if (D.date() < y.date()) return -M(y, D);
4841
+ var j = 12 * (y.year() - D.year()) + (y.month() - D.month()), C = D.clone().add(j, d), I = y - C < 0, L = D.clone().add(j + (I ? -1 : 1), d);
4842
+ return +(-(j + (y - C) / (I ? C - L : L - C)) || 0);
4812
4843
  }, a: function(M) {
4813
4844
  return M < 0 ? Math.ceil(M) || 0 : Math.floor(M);
4814
4845
  }, p: function(M) {
4815
- return { M: d, y: p, w: h, d: l, D: v, h: u, m: c, s: a, ms: s, Q: m }[M] || String(M || "").toLowerCase().replace(/s$/, "");
4846
+ return { M: d, y: p, w: f, d: u, D: v, h: l, m: c, s: a, ms: s, Q: m }[M] || String(M || "").toLowerCase().replace(/s$/, "");
4816
4847
  }, u: function(M) {
4817
4848
  return M === void 0;
4818
- } }, O = "en", _ = {};
4819
- _[O] = E;
4849
+ } }, O = "en", T = {};
4850
+ T[O] = R;
4820
4851
  var $ = "$isDayjsObject", N = function(M) {
4821
4852
  return M instanceof Q || !(!M || !M[$]);
4822
- }, W = function M(D, w, j) {
4853
+ }, W = function M(D, y, j) {
4823
4854
  var C;
4824
4855
  if (!D) return O;
4825
4856
  if (typeof D == "string") {
4826
- var k = D.toLowerCase();
4827
- _[k] && (C = k), w && (_[k] = w, C = k);
4857
+ var I = D.toLowerCase();
4858
+ T[I] && (C = I), y && (T[I] = y, C = I);
4828
4859
  var L = D.split("-");
4829
4860
  if (!C && L.length > 1) return M(L[0]);
4830
4861
  } else {
4831
4862
  var g = D.name;
4832
- _[g] = D, C = g;
4863
+ T[g] = D, C = g;
4833
4864
  }
4834
4865
  return !j && C && (O = C), C || !j && O;
4835
4866
  }, Y = function(M, D) {
4836
4867
  if (N(M)) return M.clone();
4837
- var w = typeof D == "object" ? D : {};
4838
- return w.date = M, w.args = arguments, new Q(w);
4839
- }, I = T;
4840
- I.l = W, I.i = N, I.w = function(M, D) {
4868
+ var y = typeof D == "object" ? D : {};
4869
+ return y.date = M, y.args = arguments, new Q(y);
4870
+ }, k = _;
4871
+ k.l = W, k.i = N, k.w = function(M, D) {
4841
4872
  return Y(M, { locale: D.$L, utc: D.$u, x: D.$x, $offset: D.$offset });
4842
4873
  };
4843
4874
  var Q = (function() {
4844
- function M(w) {
4845
- this.$L = W(w.locale, null, !0), this.parse(w), this.$x = this.$x || w.x || {}, this[$] = !0;
4875
+ function M(y) {
4876
+ this.$L = W(y.locale, null, !0), this.parse(y), this.$x = this.$x || y.x || {}, this[$] = !0;
4846
4877
  }
4847
4878
  var D = M.prototype;
4848
- return D.parse = function(w) {
4879
+ return D.parse = function(y) {
4849
4880
  this.$d = (function(j) {
4850
- var C = j.date, k = j.utc;
4881
+ var C = j.date, I = j.utc;
4851
4882
  if (C === null) return /* @__PURE__ */ new Date(NaN);
4852
- if (I.u(C)) return /* @__PURE__ */ new Date();
4883
+ if (k.u(C)) return /* @__PURE__ */ new Date();
4853
4884
  if (C instanceof Date) return new Date(C);
4854
4885
  if (typeof C == "string" && !/Z$/i.test(C)) {
4855
4886
  var L = C.match(b);
4856
4887
  if (L) {
4857
4888
  var g = L[2] - 1 || 0, S = (L[7] || "0").substring(0, 3);
4858
- return k ? new Date(Date.UTC(L[1], g, L[3] || 1, L[4] || 0, L[5] || 0, L[6] || 0, S)) : new Date(L[1], g, L[3] || 1, L[4] || 0, L[5] || 0, L[6] || 0, S);
4889
+ return I ? new Date(Date.UTC(L[1], g, L[3] || 1, L[4] || 0, L[5] || 0, L[6] || 0, S)) : new Date(L[1], g, L[3] || 1, L[4] || 0, L[5] || 0, L[6] || 0, S);
4859
4890
  }
4860
4891
  }
4861
4892
  return new Date(C);
4862
- })(w), this.init();
4893
+ })(y), this.init();
4863
4894
  }, D.init = function() {
4864
- var w = this.$d;
4865
- this.$y = w.getFullYear(), this.$M = w.getMonth(), this.$D = w.getDate(), this.$W = w.getDay(), this.$H = w.getHours(), this.$m = w.getMinutes(), this.$s = w.getSeconds(), this.$ms = w.getMilliseconds();
4895
+ var y = this.$d;
4896
+ this.$y = y.getFullYear(), this.$M = y.getMonth(), this.$D = y.getDate(), this.$W = y.getDay(), this.$H = y.getHours(), this.$m = y.getMinutes(), this.$s = y.getSeconds(), this.$ms = y.getMilliseconds();
4866
4897
  }, D.$utils = function() {
4867
- return I;
4898
+ return k;
4868
4899
  }, D.isValid = function() {
4869
- return this.$d.toString() !== f;
4870
- }, D.isSame = function(w, j) {
4871
- var C = Y(w);
4900
+ return this.$d.toString() !== h;
4901
+ }, D.isSame = function(y, j) {
4902
+ var C = Y(y);
4872
4903
  return this.startOf(j) <= C && C <= this.endOf(j);
4873
- }, D.isAfter = function(w, j) {
4874
- return Y(w) < this.startOf(j);
4875
- }, D.isBefore = function(w, j) {
4876
- return this.endOf(j) < Y(w);
4877
- }, D.$g = function(w, j, C) {
4878
- return I.u(w) ? this[j] : this.set(C, w);
4904
+ }, D.isAfter = function(y, j) {
4905
+ return Y(y) < this.startOf(j);
4906
+ }, D.isBefore = function(y, j) {
4907
+ return this.endOf(j) < Y(y);
4908
+ }, D.$g = function(y, j, C) {
4909
+ return k.u(y) ? this[j] : this.set(C, y);
4879
4910
  }, D.unix = function() {
4880
4911
  return Math.floor(this.valueOf() / 1e3);
4881
4912
  }, D.valueOf = function() {
4882
4913
  return this.$d.getTime();
4883
- }, D.startOf = function(w, j) {
4884
- var C = this, k = !!I.u(j) || j, L = I.p(w), g = function(Z, z) {
4885
- var de = I.w(C.$u ? Date.UTC(C.$y, z, Z) : new Date(C.$y, z, Z), C);
4886
- return k ? de : de.endOf(l);
4914
+ }, D.startOf = function(y, j) {
4915
+ var C = this, I = !!k.u(j) || j, L = k.p(y), g = function(Z, z) {
4916
+ var de = k.w(C.$u ? Date.UTC(C.$y, z, Z) : new Date(C.$y, z, Z), C);
4917
+ return I ? de : de.endOf(u);
4887
4918
  }, S = function(Z, z) {
4888
- return I.w(C.toDate()[Z].apply(C.toDate("s"), (k ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(z)), C);
4919
+ return k.w(C.toDate()[Z].apply(C.toDate("s"), (I ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(z)), C);
4889
4920
  }, A = this.$W, P = this.$M, G = this.$D, X = "set" + (this.$u ? "UTC" : "");
4890
4921
  switch (L) {
4891
4922
  case p:
4892
- return k ? g(1, 0) : g(31, 11);
4923
+ return I ? g(1, 0) : g(31, 11);
4893
4924
  case d:
4894
- return k ? g(1, P) : g(0, P + 1);
4895
- case h:
4925
+ return I ? g(1, P) : g(0, P + 1);
4926
+ case f:
4896
4927
  var F = this.$locale().weekStart || 0, J = (A < F ? A + 7 : A) - F;
4897
- return g(k ? G - J : G + (6 - J), P);
4898
- case l:
4928
+ return g(I ? G - J : G + (6 - J), P);
4929
+ case u:
4899
4930
  case v:
4900
4931
  return S(X + "Hours", 0);
4901
- case u:
4932
+ case l:
4902
4933
  return S(X + "Minutes", 1);
4903
4934
  case c:
4904
4935
  return S(X + "Seconds", 2);
@@ -4907,56 +4938,56 @@ function Gc() {
4907
4938
  default:
4908
4939
  return this.clone();
4909
4940
  }
4910
- }, D.endOf = function(w) {
4911
- return this.startOf(w, !1);
4912
- }, D.$set = function(w, j) {
4913
- var C, k = I.p(w), L = "set" + (this.$u ? "UTC" : ""), g = (C = {}, C[l] = L + "Date", C[v] = L + "Date", C[d] = L + "Month", C[p] = 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;
4914
- if (k === d || k === p) {
4941
+ }, D.endOf = function(y) {
4942
+ return this.startOf(y, !1);
4943
+ }, D.$set = function(y, j) {
4944
+ var C, I = k.p(y), L = "set" + (this.$u ? "UTC" : ""), g = (C = {}, C[u] = L + "Date", C[v] = L + "Date", C[d] = L + "Month", C[p] = L + "FullYear", C[l] = L + "Hours", C[c] = L + "Minutes", C[a] = L + "Seconds", C[s] = L + "Milliseconds", C)[I], S = I === u ? this.$D + (j - this.$W) : j;
4945
+ if (I === d || I === p) {
4915
4946
  var A = this.clone().set(v, 1);
4916
4947
  A.$d[g](S), A.init(), this.$d = A.set(v, Math.min(this.$D, A.daysInMonth())).$d;
4917
4948
  } else g && this.$d[g](S);
4918
4949
  return this.init(), this;
4919
- }, D.set = function(w, j) {
4920
- return this.clone().$set(w, j);
4921
- }, D.get = function(w) {
4922
- return this[I.p(w)]();
4923
- }, D.add = function(w, j) {
4924
- var C, k = this;
4925
- w = Number(w);
4926
- var L = I.p(j), g = function(P) {
4927
- var G = Y(k);
4928
- return I.w(G.date(G.date() + Math.round(P * w)), k);
4950
+ }, D.set = function(y, j) {
4951
+ return this.clone().$set(y, j);
4952
+ }, D.get = function(y) {
4953
+ return this[k.p(y)]();
4954
+ }, D.add = function(y, j) {
4955
+ var C, I = this;
4956
+ y = Number(y);
4957
+ var L = k.p(j), g = function(P) {
4958
+ var G = Y(I);
4959
+ return k.w(G.date(G.date() + Math.round(P * y)), I);
4929
4960
  };
4930
- if (L === d) return this.set(d, this.$M + w);
4931
- if (L === p) return this.set(p, this.$y + w);
4932
- if (L === l) return g(1);
4933
- if (L === h) return g(7);
4934
- var S = (C = {}, C[c] = r, C[u] = o, C[a] = n, C)[L] || 1, A = this.$d.getTime() + w * S;
4935
- return I.w(A, this);
4936
- }, D.subtract = function(w, j) {
4937
- return this.add(-1 * w, j);
4938
- }, D.format = function(w) {
4961
+ if (L === d) return this.set(d, this.$M + y);
4962
+ if (L === p) return this.set(p, this.$y + y);
4963
+ if (L === u) return g(1);
4964
+ if (L === f) return g(7);
4965
+ var S = (C = {}, C[c] = r, C[l] = o, C[a] = n, C)[L] || 1, A = this.$d.getTime() + y * S;
4966
+ return k.w(A, this);
4967
+ }, D.subtract = function(y, j) {
4968
+ return this.add(-1 * y, j);
4969
+ }, D.format = function(y) {
4939
4970
  var j = this, C = this.$locale();
4940
- if (!this.isValid()) return C.invalidDate || f;
4941
- var k = w || "YYYY-MM-DDTHH:mm:ssZ", L = I.z(this), g = this.$H, S = this.$m, A = this.$M, P = C.weekdays, G = C.months, X = C.meridiem, F = function(z, de, ae, ye) {
4942
- return z && (z[de] || z(j, k)) || ae[de].slice(0, ye);
4971
+ if (!this.isValid()) return C.invalidDate || h;
4972
+ var I = y || "YYYY-MM-DDTHH:mm:ssZ", L = k.z(this), g = this.$H, S = this.$m, A = this.$M, P = C.weekdays, G = C.months, X = C.meridiem, F = function(z, de, ae, ye) {
4973
+ return z && (z[de] || z(j, I)) || ae[de].slice(0, ye);
4943
4974
  }, J = function(z) {
4944
- return I.s(g % 12 || 12, z, "0");
4975
+ return k.s(g % 12 || 12, z, "0");
4945
4976
  }, Z = X || function(z, de, ae) {
4946
4977
  var ye = z < 12 ? "AM" : "PM";
4947
4978
  return ae ? ye.toLowerCase() : ye;
4948
4979
  };
4949
- return k.replace(x, (function(z, de) {
4980
+ return I.replace(w, (function(z, de) {
4950
4981
  return de || (function(ae) {
4951
4982
  switch (ae) {
4952
4983
  case "YY":
4953
4984
  return String(j.$y).slice(-2);
4954
4985
  case "YYYY":
4955
- return I.s(j.$y, 4, "0");
4986
+ return k.s(j.$y, 4, "0");
4956
4987
  case "M":
4957
4988
  return A + 1;
4958
4989
  case "MM":
4959
- return I.s(A + 1, 2, "0");
4990
+ return k.s(A + 1, 2, "0");
4960
4991
  case "MMM":
4961
4992
  return F(C.monthsShort, A, G, 3);
4962
4993
  case "MMMM":
@@ -4964,7 +4995,7 @@ function Gc() {
4964
4995
  case "D":
4965
4996
  return j.$D;
4966
4997
  case "DD":
4967
- return I.s(j.$D, 2, "0");
4998
+ return k.s(j.$D, 2, "0");
4968
4999
  case "d":
4969
5000
  return String(j.$W);
4970
5001
  case "dd":
@@ -4976,7 +5007,7 @@ function Gc() {
4976
5007
  case "H":
4977
5008
  return String(g);
4978
5009
  case "HH":
4979
- return I.s(g, 2, "0");
5010
+ return k.s(g, 2, "0");
4980
5011
  case "h":
4981
5012
  return J(1);
4982
5013
  case "hh":
@@ -4988,13 +5019,13 @@ function Gc() {
4988
5019
  case "m":
4989
5020
  return String(S);
4990
5021
  case "mm":
4991
- return I.s(S, 2, "0");
5022
+ return k.s(S, 2, "0");
4992
5023
  case "s":
4993
5024
  return String(j.$s);
4994
5025
  case "ss":
4995
- return I.s(j.$s, 2, "0");
5026
+ return k.s(j.$s, 2, "0");
4996
5027
  case "SSS":
4997
- return I.s(j.$ms, 3, "0");
5028
+ return k.s(j.$ms, 3, "0");
4998
5029
  case "Z":
4999
5030
  return L;
5000
5031
  }
@@ -5003,49 +5034,49 @@ function Gc() {
5003
5034
  }));
5004
5035
  }, D.utcOffset = function() {
5005
5036
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
5006
- }, D.diff = function(w, j, C) {
5007
- var k, L = this, g = I.p(j), S = Y(w), A = (S.utcOffset() - this.utcOffset()) * r, P = this - S, G = function() {
5008
- return I.m(L, S);
5037
+ }, D.diff = function(y, j, C) {
5038
+ var I, L = this, g = k.p(j), S = Y(y), A = (S.utcOffset() - this.utcOffset()) * r, P = this - S, G = function() {
5039
+ return k.m(L, S);
5009
5040
  };
5010
5041
  switch (g) {
5011
5042
  case p:
5012
- k = G() / 12;
5043
+ I = G() / 12;
5013
5044
  break;
5014
5045
  case d:
5015
- k = G();
5046
+ I = G();
5016
5047
  break;
5017
5048
  case m:
5018
- k = G() / 3;
5049
+ I = G() / 3;
5019
5050
  break;
5020
- case h:
5021
- k = (P - A) / 6048e5;
5022
- break;
5023
- case l:
5024
- k = (P - A) / 864e5;
5051
+ case f:
5052
+ I = (P - A) / 6048e5;
5025
5053
  break;
5026
5054
  case u:
5027
- k = P / o;
5055
+ I = (P - A) / 864e5;
5056
+ break;
5057
+ case l:
5058
+ I = P / o;
5028
5059
  break;
5029
5060
  case c:
5030
- k = P / r;
5061
+ I = P / r;
5031
5062
  break;
5032
5063
  case a:
5033
- k = P / n;
5064
+ I = P / n;
5034
5065
  break;
5035
5066
  default:
5036
- k = P;
5067
+ I = P;
5037
5068
  }
5038
- return C ? k : I.a(k);
5069
+ return C ? I : k.a(I);
5039
5070
  }, D.daysInMonth = function() {
5040
5071
  return this.endOf(d).$D;
5041
5072
  }, D.$locale = function() {
5042
- return _[this.$L];
5043
- }, D.locale = function(w, j) {
5044
- if (!w) return this.$L;
5045
- var C = this.clone(), k = W(w, j, !0);
5046
- return k && (C.$L = k), C;
5073
+ return T[this.$L];
5074
+ }, D.locale = function(y, j) {
5075
+ if (!y) return this.$L;
5076
+ var C = this.clone(), I = W(y, j, !0);
5077
+ return I && (C.$L = I), C;
5047
5078
  }, D.clone = function() {
5048
- return I.w(this.$d, this);
5079
+ return k.w(this.$d, this);
5049
5080
  }, D.toDate = function() {
5050
5081
  return new Date(this.valueOf());
5051
5082
  }, D.toJSON = function() {
@@ -5056,7 +5087,7 @@ function Gc() {
5056
5087
  return this.$d.toUTCString();
5057
5088
  }, M;
5058
5089
  })(), se = Q.prototype;
5059
- return Y.prototype = se, [["$ms", s], ["$s", a], ["$m", c], ["$H", u], ["$W", l], ["$M", d], ["$y", p], ["$D", v]].forEach((function(M) {
5090
+ return Y.prototype = se, [["$ms", s], ["$s", a], ["$m", c], ["$H", l], ["$W", u], ["$M", d], ["$y", p], ["$D", v]].forEach((function(M) {
5060
5091
  se[M[1]] = function(D) {
5061
5092
  return this.$g(D, M[0], M[1]);
5062
5093
  };
@@ -5064,117 +5095,117 @@ function Gc() {
5064
5095
  return M.$i || (M(D, Q, Y), M.$i = !0), Y;
5065
5096
  }, Y.locale = W, Y.isDayjs = N, Y.unix = function(M) {
5066
5097
  return Y(1e3 * M);
5067
- }, Y.en = _[O], Y.Ls = _, Y.p = {}, Y;
5098
+ }, Y.en = T[O], Y.Ls = T, Y.p = {}, Y;
5068
5099
  }));
5069
- })(It)), It.exports;
5100
+ })(kt)), kt.exports;
5070
5101
  }
5071
- var Xc = Gc();
5072
- const Jt = /* @__PURE__ */ Ut(Xc);
5073
- var kt = { exports: {} }, qc = kt.exports, xr;
5074
- function Kc() {
5102
+ var qc = Xc();
5103
+ const Jt = /* @__PURE__ */ Ut(qc);
5104
+ var It = { exports: {} }, Kc = It.exports, xr;
5105
+ function Jc() {
5075
5106
  return xr || (xr = 1, (function(e, t) {
5076
5107
  (function(n, r) {
5077
5108
  e.exports = r();
5078
- })(qc, (function() {
5109
+ })(Kc, (function() {
5079
5110
  return function(n, r, o) {
5080
5111
  n = n || {};
5081
5112
  var s = r.prototype, a = { future: "in %s", past: "%s ago", s: "a few seconds", m: "a minute", mm: "%d minutes", h: "an hour", hh: "%d hours", d: "a day", dd: "%d days", M: "a month", MM: "%d months", y: "a year", yy: "%d years" };
5082
- function c(l, h, d, m) {
5083
- return s.fromToBase(l, h, d, m);
5113
+ function c(u, f, d, m) {
5114
+ return s.fromToBase(u, f, d, m);
5084
5115
  }
5085
- o.en.relativeTime = a, s.fromToBase = function(l, h, d, m, p) {
5086
- 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) {
5087
- var O = E[T];
5088
- O.d && (v = m ? o(l).diff(d, O.d, !0) : d.diff(l, O.d, !0));
5089
- var _ = (n.rounding || Math.round)(Math.abs(v));
5090
- if (b = v > 0, _ <= O.r || !O.r) {
5091
- _ <= 1 && T > 0 && (O = E[T - 1]);
5092
- var $ = x[O.l];
5093
- p && (_ = p("" + _)), f = typeof $ == "string" ? $.replace("%d", _) : $(_, h, O.l, b);
5116
+ o.en.relativeTime = a, s.fromToBase = function(u, f, d, m, p) {
5117
+ for (var v, h, b, w = 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" }], E = R.length, _ = 0; _ < E; _ += 1) {
5118
+ var O = R[_];
5119
+ O.d && (v = m ? o(u).diff(d, O.d, !0) : d.diff(u, O.d, !0));
5120
+ var T = (n.rounding || Math.round)(Math.abs(v));
5121
+ if (b = v > 0, T <= O.r || !O.r) {
5122
+ T <= 1 && _ > 0 && (O = R[_ - 1]);
5123
+ var $ = w[O.l];
5124
+ p && (T = p("" + T)), h = typeof $ == "string" ? $.replace("%d", T) : $(T, f, O.l, b);
5094
5125
  break;
5095
5126
  }
5096
5127
  }
5097
- if (h) return f;
5098
- var N = b ? x.future : x.past;
5099
- return typeof N == "function" ? N(f) : N.replace("%s", f);
5100
- }, s.to = function(l, h) {
5101
- return c(l, h, this, !0);
5102
- }, s.from = function(l, h) {
5103
- return c(l, h, this);
5128
+ if (f) return h;
5129
+ var N = b ? w.future : w.past;
5130
+ return typeof N == "function" ? N(h) : N.replace("%s", h);
5131
+ }, s.to = function(u, f) {
5132
+ return c(u, f, this, !0);
5133
+ }, s.from = function(u, f) {
5134
+ return c(u, f, this);
5104
5135
  };
5105
- var u = function(l) {
5106
- return l.$u ? o.utc() : o();
5136
+ var l = function(u) {
5137
+ return u.$u ? o.utc() : o();
5107
5138
  };
5108
- s.toNow = function(l) {
5109
- return this.to(u(this), l);
5110
- }, s.fromNow = function(l) {
5111
- return this.from(u(this), l);
5139
+ s.toNow = function(u) {
5140
+ return this.to(l(this), u);
5141
+ }, s.fromNow = function(u) {
5142
+ return this.from(l(this), u);
5112
5143
  };
5113
5144
  };
5114
5145
  }));
5115
- })(kt)), kt.exports;
5146
+ })(It)), It.exports;
5116
5147
  }
5117
- var Jc = Kc();
5118
- const Zc = /* @__PURE__ */ Ut(Jc);
5119
- var At = { exports: {} }, Qc = At.exports, yr;
5120
- function el() {
5148
+ var Zc = Jc();
5149
+ const Qc = /* @__PURE__ */ Ut(Zc);
5150
+ var At = { exports: {} }, el = At.exports, yr;
5151
+ function tl() {
5121
5152
  return yr || (yr = 1, (function(e, t) {
5122
5153
  (function(n, r) {
5123
5154
  e.exports = r();
5124
- })(Qc, (function() {
5155
+ })(el, (function() {
5125
5156
  var n = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" };
5126
5157
  return function(r, o, s) {
5127
5158
  var a = o.prototype, c = a.format;
5128
- s.en.formats = n, a.format = function(u) {
5129
- u === void 0 && (u = "YYYY-MM-DDTHH:mm:ssZ");
5130
- var l = this.$locale().formats, h = (function(d, m) {
5131
- return d.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(p, v, f) {
5132
- var b = f && f.toUpperCase();
5133
- return v || m[f] || n[f] || m[b].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(x, E, R) {
5134
- return E || R.slice(1);
5159
+ s.en.formats = n, a.format = function(l) {
5160
+ l === void 0 && (l = "YYYY-MM-DDTHH:mm:ssZ");
5161
+ var u = this.$locale().formats, f = (function(d, m) {
5162
+ return d.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(p, v, h) {
5163
+ var b = h && h.toUpperCase();
5164
+ return v || m[h] || n[h] || m[b].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(w, R, E) {
5165
+ return R || E.slice(1);
5135
5166
  }));
5136
5167
  }));
5137
- })(u, l === void 0 ? {} : l);
5138
- return c.call(this, h);
5168
+ })(l, u === void 0 ? {} : u);
5169
+ return c.call(this, f);
5139
5170
  };
5140
5171
  };
5141
5172
  }));
5142
5173
  })(At)), At.exports;
5143
5174
  }
5144
- var tl = el();
5145
- const nl = /* @__PURE__ */ Ut(tl);
5146
- var Lt = { exports: {} }, rl = Lt.exports, wr;
5147
- function ol() {
5175
+ var nl = tl();
5176
+ const rl = /* @__PURE__ */ Ut(nl);
5177
+ var Lt = { exports: {} }, ol = Lt.exports, wr;
5178
+ function sl() {
5148
5179
  return wr || (wr = 1, (function(e, t) {
5149
5180
  (function(n, r) {
5150
5181
  e.exports = r();
5151
- })(rl, (function() {
5182
+ })(ol, (function() {
5152
5183
  return function(n, r) {
5153
5184
  var o = r.prototype, s = o.format;
5154
5185
  o.format = function(a) {
5155
- var c = this, u = this.$locale();
5186
+ var c = this, l = this.$locale();
5156
5187
  if (!this.isValid()) return s.bind(this)(a);
5157
- var l = this.$utils(), h = (a || "YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g, (function(d) {
5188
+ var u = this.$utils(), f = (a || "YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g, (function(d) {
5158
5189
  switch (d) {
5159
5190
  case "Q":
5160
5191
  return Math.ceil((c.$M + 1) / 3);
5161
5192
  case "Do":
5162
- return u.ordinal(c.$D);
5193
+ return l.ordinal(c.$D);
5163
5194
  case "gggg":
5164
5195
  return c.weekYear();
5165
5196
  case "GGGG":
5166
5197
  return c.isoWeekYear();
5167
5198
  case "wo":
5168
- return u.ordinal(c.week(), "W");
5199
+ return l.ordinal(c.week(), "W");
5169
5200
  case "w":
5170
5201
  case "ww":
5171
- return l.s(c.week(), d === "w" ? 1 : 2, "0");
5202
+ return u.s(c.week(), d === "w" ? 1 : 2, "0");
5172
5203
  case "W":
5173
5204
  case "WW":
5174
- return l.s(c.isoWeek(), d === "W" ? 1 : 2, "0");
5205
+ return u.s(c.isoWeek(), d === "W" ? 1 : 2, "0");
5175
5206
  case "k":
5176
5207
  case "kk":
5177
- return l.s(String(c.$H === 0 ? 24 : c.$H), d === "k" ? 1 : 2, "0");
5208
+ return u.s(String(c.$H === 0 ? 24 : c.$H), d === "k" ? 1 : 2, "0");
5178
5209
  case "X":
5179
5210
  return Math.floor(c.$d.getTime() / 1e3);
5180
5211
  case "x":
@@ -5187,18 +5218,18 @@ function ol() {
5187
5218
  return d;
5188
5219
  }
5189
5220
  }));
5190
- return s.bind(this)(h);
5221
+ return s.bind(this)(f);
5191
5222
  };
5192
5223
  };
5193
5224
  }));
5194
5225
  })(Lt)), Lt.exports;
5195
5226
  }
5196
- var sl = ol();
5197
- const il = /* @__PURE__ */ Ut(sl);
5198
- Jt.extend(Zc);
5199
- Jt.extend(nl);
5200
- Jt.extend(il);
5201
- const al = {
5227
+ var il = sl();
5228
+ const al = /* @__PURE__ */ Ut(il);
5229
+ Jt.extend(Qc);
5230
+ Jt.extend(rl);
5231
+ Jt.extend(al);
5232
+ const cl = {
5202
5233
  date: "DD MMM YYYY",
5203
5234
  time: "hh:mm A",
5204
5235
  dateTime: "DD MMM YYYY, hh:mm A",
@@ -5214,9 +5245,9 @@ function Sr({
5214
5245
  }) {
5215
5246
  if (!e) return r;
5216
5247
  const o = Jt(e);
5217
- return o.isValid() ? t === "relative" ? o.fromNow() : o.format(n ?? al[t]) : r;
5248
+ return o.isValid() ? t === "relative" ? o.fromNow() : o.format(n ?? cl[t]) : r;
5218
5249
  }
5219
- function bl({
5250
+ function xl({
5220
5251
  value: e,
5221
5252
  dateVariant: t = "date",
5222
5253
  timeVariant: n = "time",
@@ -5224,7 +5255,7 @@ function bl({
5224
5255
  timeFormat: o,
5225
5256
  align: s = "start"
5226
5257
  }) {
5227
- return /* @__PURE__ */ i.jsxs(pn, { gap: 0.5, align: s, children: [
5258
+ return /* @__PURE__ */ i.jsxs(gn, { gap: 0.5, align: s, children: [
5228
5259
  /* @__PURE__ */ i.jsx(q, { fontSize: "sm", fontWeight: "500", children: Sr({
5229
5260
  value: e,
5230
5261
  variant: t,
@@ -5238,26 +5269,27 @@ function bl({
5238
5269
  ] });
5239
5270
  }
5240
5271
  export {
5241
- dl as DataTable,
5242
- fl as Filters,
5243
- gl as MDSButton,
5244
- Na as MDSCheckbox,
5245
- vl as MDSConfirmDeleteDialog,
5272
+ fl as DataTable,
5273
+ hl as Filters,
5274
+ vl as MDSButton,
5275
+ za as MDSCheckbox,
5276
+ ml as MDSConfirmDeleteDialog,
5246
5277
  mr as MDSInput,
5247
- ml as MDSRefreshButton,
5248
- dc as MDSSelectBox,
5249
- ml as RefreshButton,
5250
- bl as StackedDateTime,
5278
+ bl as MDSRefreshButton,
5279
+ fc as MDSSelectBox,
5280
+ bl as RefreshButton,
5281
+ xl as StackedDateTime,
5251
5282
  pc as addPreset,
5252
- hc as deletePreset,
5283
+ gc as deletePreset,
5253
5284
  Sr as formatDateTime,
5254
5285
  $n as getPresets,
5255
5286
  pl as loadOrder,
5256
- Vt as presetStore,
5257
- hl as saveOrder,
5287
+ Ht as presetStore,
5288
+ gl as saveOrder,
5258
5289
  ro as savePresets,
5290
+ ia as setActionsConfig,
5259
5291
  oa as setData,
5260
5292
  sa as setTableId,
5261
- xe as tableStore,
5262
- y as withChildren
5293
+ me as tableStore,
5294
+ x as withChildren
5263
5295
  };