@mdspl/mds-shared-ui 0.2.4 → 0.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,9 +1,9 @@
1
- import H, { useLayoutEffect as Zr, useEffect as A, useRef as M, useMemo as N, useCallback as K, useState as Q, createContext as ht, memo as Qr, useReducer as eo, useContext as ze, forwardRef as hn, createElement as sn } from "react";
2
- import { Menu as Se, Checkbox as pe, IconButton as _e, Portal as gt, Table as ye, HStack as de, createListCollection as cr, Select as z, Pagination as It, Box as Ge, Text as U, ButtonGroup as to, Popover as Pt, InputGroup as ur, InputElement as An, PopoverArrow as no, VStack as je, Kbd as kn, Input as dr, Field as Fe, Slider as pt, Drawer as Ce, Tabs as zt, Button as Gt, CloseButton as ro } from "@chakra-ui/react";
3
- import { unstable_batchedUpdates as St, createPortal as oo } from "react-dom";
1
+ import H, { useLayoutEffect as Qr, useEffect as A, useRef as M, useMemo as N, useCallback as J, useState as K, createContext as ht, memo as eo, useReducer as to, useContext as ze, forwardRef as hn, createElement as sn } from "react";
2
+ import { Menu as Se, Checkbox as pe, IconButton as _e, Portal as gt, Table as ye, HStack as ae, createListCollection as cr, Select as z, Pagination as It, Box as Ge, Text as U, ButtonGroup as no, Popover as Pt, InputGroup as ur, InputElement as An, PopoverArrow as ro, VStack as je, Kbd as kn, Input as dr, Field as Fe, Slider as pt, Drawer as Ce, Tabs as zt, Button as Gt, CloseButton as oo } from "@chakra-ui/react";
3
+ import { unstable_batchedUpdates as St, createPortal as so } from "react-dom";
4
4
  var Ct = { exports: {} }, ot = {};
5
5
  var Nn;
6
- function so() {
6
+ function io() {
7
7
  if (Nn) return ot;
8
8
  Nn = 1;
9
9
  var e = /* @__PURE__ */ Symbol.for("react.transitional.element"), t = /* @__PURE__ */ Symbol.for("react.fragment");
@@ -26,7 +26,7 @@ function so() {
26
26
  }
27
27
  var st = {};
28
28
  var Mn;
29
- function io() {
29
+ function ao() {
30
30
  return Mn || (Mn = 1, process.env.NODE_ENV !== "production" && (function() {
31
31
  function e(p) {
32
32
  if (p == null) return null;
@@ -34,13 +34,13 @@ function io() {
34
34
  return p.$$typeof === L ? null : p.displayName || p.name || null;
35
35
  if (typeof p == "string") return p;
36
36
  switch (p) {
37
- case m:
37
+ case b:
38
38
  return "Fragment";
39
39
  case w:
40
40
  return "Profiler";
41
41
  case x:
42
42
  return "StrictMode";
43
- case R:
43
+ case D:
44
44
  return "Suspense";
45
45
  case E:
46
46
  return "SuspenseList";
@@ -51,21 +51,21 @@ function io() {
51
51
  switch (typeof p.tag == "number" && console.error(
52
52
  "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
53
53
  ), p.$$typeof) {
54
- case g:
54
+ case d:
55
55
  return "Portal";
56
- case D:
56
+ case C:
57
57
  return p.displayName || "Context";
58
58
  case S:
59
59
  return (p._context.displayName || "Context") + ".Consumer";
60
60
  case j:
61
- var C = p.render;
62
- return p = p.displayName, p || (p = C.displayName || C.name || "", p = p !== "" ? "ForwardRef(" + p + ")" : "ForwardRef"), p;
61
+ var R = p.render;
62
+ return p = p.displayName, p || (p = R.displayName || R.name || "", p = p !== "" ? "ForwardRef(" + p + ")" : "ForwardRef"), p;
63
63
  case _:
64
- return C = p.displayName || null, C !== null ? C : e(p.type) || "Memo";
64
+ return R = p.displayName || null, R !== null ? R : e(p.type) || "Memo";
65
65
  case $:
66
- C = p._payload, p = p._init;
66
+ R = p._payload, p = p._init;
67
67
  try {
68
- return e(p(C));
68
+ return e(p(R));
69
69
  } catch {
70
70
  }
71
71
  }
@@ -77,33 +77,33 @@ function io() {
77
77
  function n(p) {
78
78
  try {
79
79
  t(p);
80
- var C = !1;
80
+ var R = !1;
81
81
  } catch {
82
- C = !0;
82
+ R = !0;
83
83
  }
84
- if (C) {
85
- C = console;
86
- var O = C.error, k = typeof Symbol == "function" && Symbol.toStringTag && p[Symbol.toStringTag] || p.constructor.name || "Object";
84
+ if (R) {
85
+ R = console;
86
+ var O = R.error, k = typeof Symbol == "function" && Symbol.toStringTag && p[Symbol.toStringTag] || p.constructor.name || "Object";
87
87
  return O.call(
88
- C,
88
+ R,
89
89
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
90
90
  k
91
91
  ), t(p);
92
92
  }
93
93
  }
94
94
  function r(p) {
95
- if (p === m) return "<>";
95
+ if (p === b) return "<>";
96
96
  if (typeof p == "object" && p !== null && p.$$typeof === $)
97
97
  return "<...>";
98
98
  try {
99
- var C = e(p);
100
- return C ? "<" + C + ">" : "<...>";
99
+ var R = e(p);
100
+ return R ? "<" + R + ">" : "<...>";
101
101
  } catch {
102
102
  return "<...>";
103
103
  }
104
104
  }
105
105
  function o() {
106
- var p = J.A;
106
+ var p = Z.A;
107
107
  return p === null ? null : p.getOwner();
108
108
  }
109
109
  function s() {
@@ -111,16 +111,16 @@ function io() {
111
111
  }
112
112
  function i(p) {
113
113
  if (ee.call(p, "key")) {
114
- var C = Object.getOwnPropertyDescriptor(p, "key").get;
115
- if (C && C.isReactWarning) return !1;
114
+ var R = Object.getOwnPropertyDescriptor(p, "key").get;
115
+ if (R && R.isReactWarning) return !1;
116
116
  }
117
117
  return p.key !== void 0;
118
118
  }
119
- function l(p, C) {
119
+ function l(p, R) {
120
120
  function O() {
121
121
  $e || ($e = !0, console.error(
122
122
  "%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)",
123
- C
123
+ R
124
124
  ));
125
125
  }
126
126
  O.isReactWarning = !0, Object.defineProperty(p, "key", {
@@ -134,12 +134,12 @@ function io() {
134
134
  "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."
135
135
  )), p = this.props.ref, p !== void 0 ? p : null;
136
136
  }
137
- function u(p, C, O, k, ve, X) {
137
+ function u(p, R, O, k, ve, X) {
138
138
  var P = O.ref;
139
139
  return p = {
140
- $$typeof: b,
140
+ $$typeof: v,
141
141
  type: p,
142
- key: C,
142
+ key: R,
143
143
  props: O,
144
144
  _owner: k
145
145
  }, (P !== void 0 ? P : null) !== null ? Object.defineProperty(p, "ref", {
@@ -167,25 +167,25 @@ function io() {
167
167
  value: X
168
168
  }), Object.freeze && (Object.freeze(p.props), Object.freeze(p)), p;
169
169
  }
170
- function h(p, C, O, k, ve, X) {
171
- var P = C.children;
170
+ function f(p, R, O, k, ve, X) {
171
+ var P = R.children;
172
172
  if (P !== void 0)
173
173
  if (k)
174
- if (ae(P)) {
174
+ if (le(P)) {
175
175
  for (k = 0; k < P.length; k++)
176
- f(P[k]);
176
+ h(P[k]);
177
177
  Object.freeze && Object.freeze(P);
178
178
  } else
179
179
  console.error(
180
180
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
181
181
  );
182
- else f(P);
183
- if (ee.call(C, "key")) {
182
+ else h(P);
183
+ if (ee.call(R, "key")) {
184
184
  P = e(p);
185
- var Z = Object.keys(C).filter(function(I) {
185
+ var Q = Object.keys(R).filter(function(I) {
186
186
  return I !== "key";
187
187
  });
188
- k = 0 < Z.length ? "{key: someKey, " + Z.join(": ..., ") + ": ...}" : "{key: someKey}", Oe[P + k] || (Z = 0 < Z.length ? "{" + Z.join(": ..., ") + ": ...}" : "{}", console.error(
188
+ k = 0 < Q.length ? "{key: someKey, " + Q.join(": ..., ") + ": ...}" : "{key: someKey}", Oe[P + k] || (Q = 0 < Q.length ? "{" + Q.join(": ..., ") + ": ...}" : "{}", console.error(
189
189
  `A props object containing a "key" prop is being spread into JSX:
190
190
  let props = %s;
191
191
  <%s {...props} />
@@ -194,15 +194,15 @@ React keys must be passed directly to JSX without using spread:
194
194
  <%s key={someKey} {...props} />`,
195
195
  k,
196
196
  P,
197
- Z,
197
+ Q,
198
198
  P
199
199
  ), Oe[P + k] = !0);
200
200
  }
201
- if (P = null, O !== void 0 && (n(O), P = "" + O), i(C) && (n(C.key), P = "" + C.key), "key" in C) {
201
+ if (P = null, O !== void 0 && (n(O), P = "" + O), i(R) && (n(R.key), P = "" + R.key), "key" in R) {
202
202
  O = {};
203
- for (var re in C)
204
- re !== "key" && (O[re] = C[re]);
205
- } else O = C;
203
+ for (var re in R)
204
+ re !== "key" && (O[re] = R[re]);
205
+ } else O = R;
206
206
  return P && l(
207
207
  O,
208
208
  typeof p == "function" ? p.displayName || p.name || "Unknown" : p
@@ -215,261 +215,261 @@ React keys must be passed directly to JSX without using spread:
215
215
  X
216
216
  );
217
217
  }
218
- function f(p) {
219
- v(p) ? p._store && (p._store.validated = 1) : typeof p == "object" && p !== null && p.$$typeof === $ && (p._payload.status === "fulfilled" ? v(p._payload.value) && p._payload.value._store && (p._payload.value._store.validated = 1) : p._store && (p._store.validated = 1));
218
+ function h(p) {
219
+ m(p) ? p._store && (p._store.validated = 1) : typeof p == "object" && p !== null && p.$$typeof === $ && (p._payload.status === "fulfilled" ? m(p._payload.value) && p._payload.value._store && (p._payload.value._store.validated = 1) : p._store && (p._store.validated = 1));
220
220
  }
221
- function v(p) {
222
- return typeof p == "object" && p !== null && p.$$typeof === b;
221
+ function m(p) {
222
+ return typeof p == "object" && p !== null && p.$$typeof === v;
223
223
  }
224
- var d = H, b = /* @__PURE__ */ Symbol.for("react.transitional.element"), g = /* @__PURE__ */ Symbol.for("react.portal"), m = /* @__PURE__ */ Symbol.for("react.fragment"), x = /* @__PURE__ */ Symbol.for("react.strict_mode"), w = /* @__PURE__ */ Symbol.for("react.profiler"), S = /* @__PURE__ */ Symbol.for("react.consumer"), D = /* @__PURE__ */ Symbol.for("react.context"), j = /* @__PURE__ */ Symbol.for("react.forward_ref"), R = /* @__PURE__ */ Symbol.for("react.suspense"), E = /* @__PURE__ */ Symbol.for("react.suspense_list"), _ = /* @__PURE__ */ Symbol.for("react.memo"), $ = /* @__PURE__ */ Symbol.for("react.lazy"), F = /* @__PURE__ */ Symbol.for("react.activity"), L = /* @__PURE__ */ Symbol.for("react.client.reference"), J = d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, ee = Object.prototype.hasOwnProperty, ae = Array.isArray, Re = console.createTask ? console.createTask : function() {
224
+ var g = H, v = /* @__PURE__ */ Symbol.for("react.transitional.element"), d = /* @__PURE__ */ Symbol.for("react.portal"), b = /* @__PURE__ */ Symbol.for("react.fragment"), x = /* @__PURE__ */ Symbol.for("react.strict_mode"), w = /* @__PURE__ */ Symbol.for("react.profiler"), S = /* @__PURE__ */ Symbol.for("react.consumer"), C = /* @__PURE__ */ Symbol.for("react.context"), j = /* @__PURE__ */ Symbol.for("react.forward_ref"), D = /* @__PURE__ */ Symbol.for("react.suspense"), E = /* @__PURE__ */ Symbol.for("react.suspense_list"), _ = /* @__PURE__ */ Symbol.for("react.memo"), $ = /* @__PURE__ */ Symbol.for("react.lazy"), F = /* @__PURE__ */ Symbol.for("react.activity"), L = /* @__PURE__ */ Symbol.for("react.client.reference"), Z = g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, ee = Object.prototype.hasOwnProperty, le = Array.isArray, Re = console.createTask ? console.createTask : function() {
225
225
  return null;
226
226
  };
227
- d = {
227
+ g = {
228
228
  react_stack_bottom_frame: function(p) {
229
229
  return p();
230
230
  }
231
231
  };
232
- var $e, G = {}, Pe = d.react_stack_bottom_frame.bind(
233
- d,
232
+ var $e, G = {}, Pe = g.react_stack_bottom_frame.bind(
233
+ g,
234
234
  s
235
- )(), le = Re(r(s)), Oe = {};
236
- st.Fragment = m, st.jsx = function(p, C, O) {
237
- var k = 1e4 > J.recentlyCreatedOwnerStacks++;
238
- return h(
235
+ )(), ce = Re(r(s)), Oe = {};
236
+ st.Fragment = b, st.jsx = function(p, R, O) {
237
+ var k = 1e4 > Z.recentlyCreatedOwnerStacks++;
238
+ return f(
239
239
  p,
240
- C,
240
+ R,
241
241
  O,
242
242
  !1,
243
243
  k ? Error("react-stack-top-frame") : Pe,
244
- k ? Re(r(p)) : le
244
+ k ? Re(r(p)) : ce
245
245
  );
246
- }, st.jsxs = function(p, C, O) {
247
- var k = 1e4 > J.recentlyCreatedOwnerStacks++;
248
- return h(
246
+ }, st.jsxs = function(p, R, O) {
247
+ var k = 1e4 > Z.recentlyCreatedOwnerStacks++;
248
+ return f(
249
249
  p,
250
- C,
250
+ R,
251
251
  O,
252
252
  !0,
253
253
  k ? Error("react-stack-top-frame") : Pe,
254
- k ? Re(r(p)) : le
254
+ k ? Re(r(p)) : ce
255
255
  );
256
256
  };
257
257
  })()), st;
258
258
  }
259
259
  var Ln;
260
- function ao() {
261
- return Ln || (Ln = 1, process.env.NODE_ENV === "production" ? Ct.exports = so() : Ct.exports = io()), Ct.exports;
260
+ function lo() {
261
+ return Ln || (Ln = 1, process.env.NODE_ENV === "production" ? Ct.exports = io() : Ct.exports = ao()), Ct.exports;
262
262
  }
263
- var a = ao(), Rt = { exports: {} }, Xt = {}, Dt = { exports: {} }, qt = {};
263
+ var a = lo(), Rt = { exports: {} }, Xt = {}, Dt = { exports: {} }, qt = {};
264
264
  var $n;
265
- function lo() {
265
+ function co() {
266
266
  if ($n) return qt;
267
267
  $n = 1;
268
268
  var e = H;
269
- function t(f, v) {
270
- return f === v && (f !== 0 || 1 / f === 1 / v) || f !== f && v !== v;
269
+ function t(h, m) {
270
+ return h === m && (h !== 0 || 1 / h === 1 / m) || h !== h && m !== m;
271
271
  }
272
272
  var n = typeof Object.is == "function" ? Object.is : t, r = e.useState, o = e.useEffect, s = e.useLayoutEffect, i = e.useDebugValue;
273
- function l(f, v) {
274
- var d = v(), b = r({ inst: { value: d, getSnapshot: v } }), g = b[0].inst, m = b[1];
273
+ function l(h, m) {
274
+ var g = m(), v = r({ inst: { value: g, getSnapshot: m } }), d = v[0].inst, b = v[1];
275
275
  return s(
276
276
  function() {
277
- g.value = d, g.getSnapshot = v, c(g) && m({ inst: g });
277
+ d.value = g, d.getSnapshot = m, c(d) && b({ inst: d });
278
278
  },
279
- [f, d, v]
279
+ [h, g, m]
280
280
  ), o(
281
281
  function() {
282
- return c(g) && m({ inst: g }), f(function() {
283
- c(g) && m({ inst: g });
282
+ return c(d) && b({ inst: d }), h(function() {
283
+ c(d) && b({ inst: d });
284
284
  });
285
285
  },
286
- [f]
287
- ), i(d), d;
286
+ [h]
287
+ ), i(g), g;
288
288
  }
289
- function c(f) {
290
- var v = f.getSnapshot;
291
- f = f.value;
289
+ function c(h) {
290
+ var m = h.getSnapshot;
291
+ h = h.value;
292
292
  try {
293
- var d = v();
294
- return !n(f, d);
293
+ var g = m();
294
+ return !n(h, g);
295
295
  } catch {
296
296
  return !0;
297
297
  }
298
298
  }
299
- function u(f, v) {
300
- return v();
299
+ function u(h, m) {
300
+ return m();
301
301
  }
302
- var h = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? u : l;
303
- return qt.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : h, qt;
302
+ var f = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? u : l;
303
+ return qt.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : f, qt;
304
304
  }
305
305
  var Kt = {};
306
306
  var Pn;
307
- function co() {
307
+ function uo() {
308
308
  return Pn || (Pn = 1, process.env.NODE_ENV !== "production" && (function() {
309
- function e(d, b) {
310
- return d === b && (d !== 0 || 1 / d === 1 / b) || d !== d && b !== b;
309
+ function e(g, v) {
310
+ return g === v && (g !== 0 || 1 / g === 1 / v) || g !== g && v !== v;
311
311
  }
312
- function t(d, b) {
313
- h || o.startTransition === void 0 || (h = !0, console.error(
312
+ function t(g, v) {
313
+ f || o.startTransition === void 0 || (f = !0, console.error(
314
314
  "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."
315
315
  ));
316
- var g = b();
317
- if (!f) {
318
- var m = b();
319
- s(g, m) || (console.error(
316
+ var d = v();
317
+ if (!h) {
318
+ var b = v();
319
+ s(d, b) || (console.error(
320
320
  "The result of getSnapshot should be cached to avoid an infinite loop"
321
- ), f = !0);
321
+ ), h = !0);
322
322
  }
323
- m = i({
324
- inst: { value: g, getSnapshot: b }
323
+ b = i({
324
+ inst: { value: d, getSnapshot: v }
325
325
  });
326
- var x = m[0].inst, w = m[1];
326
+ var x = b[0].inst, w = b[1];
327
327
  return c(
328
328
  function() {
329
- x.value = g, x.getSnapshot = b, n(x) && w({ inst: x });
329
+ x.value = d, x.getSnapshot = v, n(x) && w({ inst: x });
330
330
  },
331
- [d, g, b]
331
+ [g, d, v]
332
332
  ), l(
333
333
  function() {
334
- return n(x) && w({ inst: x }), d(function() {
334
+ return n(x) && w({ inst: x }), g(function() {
335
335
  n(x) && w({ inst: x });
336
336
  });
337
337
  },
338
- [d]
339
- ), u(g), g;
338
+ [g]
339
+ ), u(d), d;
340
340
  }
341
- function n(d) {
342
- var b = d.getSnapshot;
343
- d = d.value;
341
+ function n(g) {
342
+ var v = g.getSnapshot;
343
+ g = g.value;
344
344
  try {
345
- var g = b();
346
- return !s(d, g);
345
+ var d = v();
346
+ return !s(g, d);
347
347
  } catch {
348
348
  return !0;
349
349
  }
350
350
  }
351
- function r(d, b) {
352
- return b();
351
+ function r(g, v) {
352
+ return v();
353
353
  }
354
354
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
355
- var o = H, s = typeof Object.is == "function" ? Object.is : e, i = o.useState, l = o.useEffect, c = o.useLayoutEffect, u = o.useDebugValue, h = !1, f = !1, v = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? r : t;
356
- Kt.useSyncExternalStore = o.useSyncExternalStore !== void 0 ? o.useSyncExternalStore : v, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
355
+ var o = H, s = typeof Object.is == "function" ? Object.is : e, i = o.useState, l = o.useEffect, c = o.useLayoutEffect, u = o.useDebugValue, f = !1, h = !1, m = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? r : t;
356
+ Kt.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());
357
357
  })()), Kt;
358
358
  }
359
359
  var zn;
360
360
  function fr() {
361
- return zn || (zn = 1, process.env.NODE_ENV === "production" ? Dt.exports = lo() : Dt.exports = co()), Dt.exports;
361
+ return zn || (zn = 1, process.env.NODE_ENV === "production" ? Dt.exports = co() : Dt.exports = uo()), Dt.exports;
362
362
  }
363
363
  var Fn;
364
- function uo() {
364
+ function fo() {
365
365
  if (Fn) return Xt;
366
366
  Fn = 1;
367
367
  var e = H, t = fr();
368
- function n(u, h) {
369
- return u === h && (u !== 0 || 1 / u === 1 / h) || u !== u && h !== h;
368
+ function n(u, f) {
369
+ return u === f && (u !== 0 || 1 / u === 1 / f) || u !== u && f !== f;
370
370
  }
371
371
  var r = typeof Object.is == "function" ? Object.is : n, o = t.useSyncExternalStore, s = e.useRef, i = e.useEffect, l = e.useMemo, c = e.useDebugValue;
372
- return Xt.useSyncExternalStoreWithSelector = function(u, h, f, v, d) {
373
- var b = s(null);
374
- if (b.current === null) {
375
- var g = { hasValue: !1, value: null };
376
- b.current = g;
377
- } else g = b.current;
378
- b = l(
372
+ return Xt.useSyncExternalStoreWithSelector = function(u, f, h, m, g) {
373
+ var v = s(null);
374
+ if (v.current === null) {
375
+ var d = { hasValue: !1, value: null };
376
+ v.current = d;
377
+ } else d = v.current;
378
+ v = l(
379
379
  function() {
380
- function x(R) {
380
+ function x(D) {
381
381
  if (!w) {
382
- if (w = !0, S = R, R = v(R), d !== void 0 && g.hasValue) {
383
- var E = g.value;
384
- if (d(E, R))
385
- return D = E;
382
+ if (w = !0, S = D, D = m(D), g !== void 0 && d.hasValue) {
383
+ var E = d.value;
384
+ if (g(E, D))
385
+ return C = E;
386
386
  }
387
- return D = R;
387
+ return C = D;
388
388
  }
389
- if (E = D, r(S, R)) return E;
390
- var _ = v(R);
391
- return d !== void 0 && d(E, _) ? (S = R, E) : (S = R, D = _);
389
+ if (E = C, r(S, D)) return E;
390
+ var _ = m(D);
391
+ return g !== void 0 && g(E, _) ? (S = D, E) : (S = D, C = _);
392
392
  }
393
- var w = !1, S, D, j = f === void 0 ? null : f;
393
+ var w = !1, S, C, j = h === void 0 ? null : h;
394
394
  return [
395
395
  function() {
396
- return x(h());
396
+ return x(f());
397
397
  },
398
398
  j === null ? void 0 : function() {
399
399
  return x(j());
400
400
  }
401
401
  ];
402
402
  },
403
- [h, f, v, d]
403
+ [f, h, m, g]
404
404
  );
405
- var m = o(u, b[0], b[1]);
405
+ var b = o(u, v[0], v[1]);
406
406
  return i(
407
407
  function() {
408
- g.hasValue = !0, g.value = m;
408
+ d.hasValue = !0, d.value = b;
409
409
  },
410
- [m]
411
- ), c(m), m;
410
+ [b]
411
+ ), c(b), b;
412
412
  }, Xt;
413
413
  }
414
414
  var Jt = {};
415
415
  var Vn;
416
- function fo() {
416
+ function ho() {
417
417
  return Vn || (Vn = 1, process.env.NODE_ENV !== "production" && (function() {
418
- function e(u, h) {
419
- return u === h && (u !== 0 || 1 / u === 1 / h) || u !== u && h !== h;
418
+ function e(u, f) {
419
+ return u === f && (u !== 0 || 1 / u === 1 / f) || u !== u && f !== f;
420
420
  }
421
421
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
422
422
  var t = H, n = fr(), r = typeof Object.is == "function" ? Object.is : e, o = n.useSyncExternalStore, s = t.useRef, i = t.useEffect, l = t.useMemo, c = t.useDebugValue;
423
- Jt.useSyncExternalStoreWithSelector = function(u, h, f, v, d) {
424
- var b = s(null);
425
- if (b.current === null) {
426
- var g = { hasValue: !1, value: null };
427
- b.current = g;
428
- } else g = b.current;
429
- b = l(
423
+ Jt.useSyncExternalStoreWithSelector = function(u, f, h, m, g) {
424
+ var v = s(null);
425
+ if (v.current === null) {
426
+ var d = { hasValue: !1, value: null };
427
+ v.current = d;
428
+ } else d = v.current;
429
+ v = l(
430
430
  function() {
431
- function x(R) {
431
+ function x(D) {
432
432
  if (!w) {
433
- if (w = !0, S = R, R = v(R), d !== void 0 && g.hasValue) {
434
- var E = g.value;
435
- if (d(E, R))
436
- return D = E;
433
+ if (w = !0, S = D, D = m(D), g !== void 0 && d.hasValue) {
434
+ var E = d.value;
435
+ if (g(E, D))
436
+ return C = E;
437
437
  }
438
- return D = R;
438
+ return C = D;
439
439
  }
440
- if (E = D, r(S, R))
440
+ if (E = C, r(S, D))
441
441
  return E;
442
- var _ = v(R);
443
- return d !== void 0 && d(E, _) ? (S = R, E) : (S = R, D = _);
442
+ var _ = m(D);
443
+ return g !== void 0 && g(E, _) ? (S = D, E) : (S = D, C = _);
444
444
  }
445
- var w = !1, S, D, j = f === void 0 ? null : f;
445
+ var w = !1, S, C, j = h === void 0 ? null : h;
446
446
  return [
447
447
  function() {
448
- return x(h());
448
+ return x(f());
449
449
  },
450
450
  j === null ? void 0 : function() {
451
451
  return x(j());
452
452
  }
453
453
  ];
454
454
  },
455
- [h, f, v, d]
455
+ [f, h, m, g]
456
456
  );
457
- var m = o(u, b[0], b[1]);
457
+ var b = o(u, v[0], v[1]);
458
458
  return i(
459
459
  function() {
460
- g.hasValue = !0, g.value = m;
460
+ d.hasValue = !0, d.value = b;
461
461
  },
462
- [m]
463
- ), c(m), m;
462
+ [b]
463
+ ), c(b), b;
464
464
  }, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
465
465
  })()), Jt;
466
466
  }
467
467
  var Yn;
468
- function ho() {
469
- return Yn || (Yn = 1, process.env.NODE_ENV === "production" ? Rt.exports = uo() : Rt.exports = fo()), Rt.exports;
468
+ function go() {
469
+ return Yn || (Yn = 1, process.env.NODE_ENV === "production" ? Rt.exports = fo() : Rt.exports = ho()), Rt.exports;
470
470
  }
471
- var go = ho();
472
- const an = /* @__PURE__ */ new WeakMap(), po = /* @__PURE__ */ new WeakMap(), At = {
471
+ var po = go();
472
+ const an = /* @__PURE__ */ new WeakMap(), vo = /* @__PURE__ */ new WeakMap(), At = {
473
473
  current: []
474
474
  };
475
475
  let Zt = !1;
@@ -479,7 +479,7 @@ function hr(e) {
479
479
  if (At.current.includes(t))
480
480
  continue;
481
481
  At.current.push(t), t.recompute();
482
- const n = po.get(t);
482
+ const n = vo.get(t);
483
483
  if (n)
484
484
  for (const r of n) {
485
485
  const o = an.get(r);
@@ -487,7 +487,7 @@ function hr(e) {
487
487
  }
488
488
  }
489
489
  }
490
- function vo(e) {
490
+ function bo(e) {
491
491
  const t = {
492
492
  prevVal: e.prevState,
493
493
  currentVal: e.state
@@ -495,7 +495,7 @@ function vo(e) {
495
495
  for (const n of e.listeners)
496
496
  n(t);
497
497
  }
498
- function bo(e) {
498
+ function mo(e) {
499
499
  const t = {
500
500
  prevVal: e.prevState,
501
501
  currentVal: e.state
@@ -503,7 +503,7 @@ function bo(e) {
503
503
  for (const n of e.listeners)
504
504
  n(t);
505
505
  }
506
- function mo(e) {
506
+ function xo(e) {
507
507
  if (Et.add(e), !Zt)
508
508
  try {
509
509
  for (Zt = !0; Et.size > 0; ) {
@@ -511,7 +511,7 @@ function mo(e) {
511
511
  Et.clear();
512
512
  for (const n of t) {
513
513
  const r = Hn.get(n) ?? n.prevState;
514
- n.prevState = r, vo(n);
514
+ n.prevState = r, bo(n);
515
515
  }
516
516
  for (const n of t) {
517
517
  const r = an.get(n);
@@ -521,14 +521,14 @@ function mo(e) {
521
521
  const r = an.get(n);
522
522
  if (r)
523
523
  for (const o of r)
524
- bo(o);
524
+ mo(o);
525
525
  }
526
526
  }
527
527
  } finally {
528
528
  Zt = !1, At.current = [], Hn.clear();
529
529
  }
530
530
  }
531
- function xo(e) {
531
+ function yo(e) {
532
532
  return typeof e == "function";
533
533
  }
534
534
  class gr {
@@ -544,12 +544,12 @@ class gr {
544
544
  }
545
545
  setState(t) {
546
546
  var n, r, o;
547
- this.prevState = this.state, (n = this.options) != null && n.updateFn ? this.state = this.options.updateFn(this.prevState)(t) : xo(t) ? this.state = t(this.prevState) : this.state = t, (o = (r = this.options) == null ? void 0 : r.onUpdate) == null || o.call(r), mo(this);
547
+ this.prevState = this.state, (n = this.options) != null && n.updateFn ? this.state = this.options.updateFn(this.prevState)(t) : yo(t) ? this.state = t(this.prevState) : this.state = t, (o = (r = this.options) == null ? void 0 : r.onUpdate) == null || o.call(r), xo(this);
548
548
  }
549
549
  }
550
550
  function vt(e, t = (r) => r, n = {}) {
551
- const r = n.equal ?? yo;
552
- return go.useSyncExternalStoreWithSelector(
551
+ const r = n.equal ?? wo;
552
+ return po.useSyncExternalStoreWithSelector(
553
553
  e.subscribe,
554
554
  () => e.state,
555
555
  () => e.state,
@@ -557,7 +557,7 @@ function vt(e, t = (r) => r, n = {}) {
557
557
  r
558
558
  );
559
559
  }
560
- function yo(e, t) {
560
+ function wo(e, t) {
561
561
  if (Object.is(e, t))
562
562
  return !0;
563
563
  if (typeof e != "object" || e === null || typeof t != "object" || t === null)
@@ -589,7 +589,7 @@ function Bn(e) {
589
589
  Object.getOwnPropertySymbols(e)
590
590
  );
591
591
  }
592
- function wo() {
592
+ function So() {
593
593
  for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
594
594
  t[n] = arguments[n];
595
595
  return N(
@@ -628,21 +628,21 @@ function pr(e) {
628
628
  function Je(e) {
629
629
  return e ? Ke(e) ? e.document : gn(e) ? pn(e) ? e : bt(e) || pr(e) ? e.ownerDocument : document : document : document;
630
630
  }
631
- const we = Ft ? Zr : A;
631
+ const we = Ft ? Qr : A;
632
632
  function vn(e) {
633
633
  const t = M(e);
634
634
  return we(() => {
635
635
  t.current = e;
636
- }), K(function() {
636
+ }), J(function() {
637
637
  for (var n = arguments.length, r = new Array(n), o = 0; o < n; o++)
638
638
  r[o] = arguments[o];
639
639
  return t.current == null ? void 0 : t.current(...r);
640
640
  }, []);
641
641
  }
642
- function So() {
643
- const e = M(null), t = K((r, o) => {
642
+ function Co() {
643
+ const e = M(null), t = J((r, o) => {
644
644
  e.current = setInterval(r, o);
645
- }, []), n = K(() => {
645
+ }, []), n = J(() => {
646
646
  e.current !== null && (clearInterval(e.current), e.current = null);
647
647
  }, []);
648
648
  return [t, n];
@@ -666,7 +666,7 @@ function mt(e, t) {
666
666
  );
667
667
  }
668
668
  function kt(e) {
669
- const t = vn(e), n = M(null), r = K(
669
+ const t = vn(e), n = M(null), r = J(
670
670
  (o) => {
671
671
  o !== n.current && t?.(o, n.current), n.current = o;
672
672
  },
@@ -697,8 +697,8 @@ function vr(e) {
697
697
  return r.reduce((s, i) => {
698
698
  const l = Object.entries(i);
699
699
  for (const [c, u] of l) {
700
- const h = s[c];
701
- h != null && (s[c] = h + e * u);
700
+ const f = s[c];
701
+ f != null && (s[c] = f + e * u);
702
702
  }
703
703
  return s;
704
704
  }, {
@@ -707,7 +707,7 @@ function vr(e) {
707
707
  };
708
708
  }
709
709
  const Xe = /* @__PURE__ */ vr(1), Nt = /* @__PURE__ */ vr(-1);
710
- function Co(e) {
710
+ function Ro(e) {
711
711
  return "clientX" in e && "clientY" in e;
712
712
  }
713
713
  function bn(e) {
@@ -718,7 +718,7 @@ function bn(e) {
718
718
  } = te(e.target);
719
719
  return t && e instanceof t;
720
720
  }
721
- function Ro(e) {
721
+ function Do(e) {
722
722
  if (!e)
723
723
  return !1;
724
724
  const {
@@ -727,7 +727,7 @@ function Ro(e) {
727
727
  return t && e instanceof t;
728
728
  }
729
729
  function cn(e) {
730
- if (Ro(e)) {
730
+ if (Do(e)) {
731
731
  if (e.touches && e.touches.length) {
732
732
  const {
733
733
  clientX: t,
@@ -748,7 +748,7 @@ function cn(e) {
748
748
  };
749
749
  }
750
750
  }
751
- return Co(e) ? {
751
+ return Ro(e) ? {
752
752
  x: e.clientX,
753
753
  y: e.clientY
754
754
  } : null;
@@ -793,23 +793,23 @@ const qe = /* @__PURE__ */ Object.freeze({
793
793
  }
794
794
  }
795
795
  }), Wn = "a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";
796
- function Do(e) {
796
+ function Eo(e) {
797
797
  return e.matches(Wn) ? e : e.querySelector(Wn);
798
798
  }
799
- const Eo = {
799
+ const jo = {
800
800
  display: "none"
801
801
  };
802
- function jo(e) {
802
+ function _o(e) {
803
803
  let {
804
804
  id: t,
805
805
  value: n
806
806
  } = e;
807
807
  return H.createElement("div", {
808
808
  id: t,
809
- style: Eo
809
+ style: jo
810
810
  }, n);
811
811
  }
812
- function _o(e) {
812
+ function Oo(e) {
813
813
  let {
814
814
  id: t,
815
815
  announcement: n,
@@ -837,17 +837,17 @@ function _o(e) {
837
837
  "aria-atomic": !0
838
838
  }, n);
839
839
  }
840
- function Oo() {
841
- const [e, t] = Q("");
840
+ function To() {
841
+ const [e, t] = K("");
842
842
  return {
843
- announce: K((r) => {
843
+ announce: J((r) => {
844
844
  r != null && t(r);
845
845
  }, []),
846
846
  announcement: e
847
847
  };
848
848
  }
849
849
  const br = /* @__PURE__ */ ht(null);
850
- function To(e) {
850
+ function Io(e) {
851
851
  const t = ze(br);
852
852
  A(() => {
853
853
  if (!t)
@@ -855,9 +855,9 @@ function To(e) {
855
855
  return t(e);
856
856
  }, [e, t]);
857
857
  }
858
- function Io() {
859
- const [e] = Q(() => /* @__PURE__ */ new Set()), t = K((r) => (e.add(r), () => e.delete(r)), [e]);
860
- return [K((r) => {
858
+ function Ao() {
859
+ const [e] = K(() => /* @__PURE__ */ new Set()), t = J((r) => (e.add(r), () => e.delete(r)), [e]);
860
+ return [J((r) => {
861
861
  let {
862
862
  type: o,
863
863
  event: s
@@ -868,13 +868,13 @@ function Io() {
868
868
  });
869
869
  }, [e]), t];
870
870
  }
871
- const Ao = {
871
+ const ko = {
872
872
  draggable: `
873
873
  To pick up a draggable item, press the space bar.
874
874
  While dragging, use the arrow keys to move the item.
875
875
  Press space again to drop the item in its new position, or press escape to cancel.
876
876
  `
877
- }, ko = {
877
+ }, No = {
878
878
  onDragStart(e) {
879
879
  let {
880
880
  active: t
@@ -902,78 +902,78 @@ const Ao = {
902
902
  return "Dragging was cancelled. Draggable item " + t.id + " was dropped.";
903
903
  }
904
904
  };
905
- function No(e) {
905
+ function Mo(e) {
906
906
  let {
907
- announcements: t = ko,
907
+ announcements: t = No,
908
908
  container: n,
909
909
  hiddenTextDescribedById: r,
910
- screenReaderInstructions: o = Ao
910
+ screenReaderInstructions: o = ko
911
911
  } = e;
912
912
  const {
913
913
  announce: s,
914
914
  announcement: i
915
- } = Oo(), l = xt("DndLiveRegion"), [c, u] = Q(!1);
915
+ } = To(), l = xt("DndLiveRegion"), [c, u] = K(!1);
916
916
  if (A(() => {
917
917
  u(!0);
918
- }, []), To(N(() => ({
919
- onDragStart(f) {
918
+ }, []), Io(N(() => ({
919
+ onDragStart(h) {
920
920
  let {
921
- active: v
922
- } = f;
921
+ active: m
922
+ } = h;
923
923
  s(t.onDragStart({
924
- active: v
924
+ active: m
925
925
  }));
926
926
  },
927
- onDragMove(f) {
927
+ onDragMove(h) {
928
928
  let {
929
- active: v,
930
- over: d
931
- } = f;
929
+ active: m,
930
+ over: g
931
+ } = h;
932
932
  t.onDragMove && s(t.onDragMove({
933
- active: v,
934
- over: d
933
+ active: m,
934
+ over: g
935
935
  }));
936
936
  },
937
- onDragOver(f) {
937
+ onDragOver(h) {
938
938
  let {
939
- active: v,
940
- over: d
941
- } = f;
939
+ active: m,
940
+ over: g
941
+ } = h;
942
942
  s(t.onDragOver({
943
- active: v,
944
- over: d
943
+ active: m,
944
+ over: g
945
945
  }));
946
946
  },
947
- onDragEnd(f) {
947
+ onDragEnd(h) {
948
948
  let {
949
- active: v,
950
- over: d
951
- } = f;
949
+ active: m,
950
+ over: g
951
+ } = h;
952
952
  s(t.onDragEnd({
953
- active: v,
954
- over: d
953
+ active: m,
954
+ over: g
955
955
  }));
956
956
  },
957
- onDragCancel(f) {
957
+ onDragCancel(h) {
958
958
  let {
959
- active: v,
960
- over: d
961
- } = f;
959
+ active: m,
960
+ over: g
961
+ } = h;
962
962
  s(t.onDragCancel({
963
- active: v,
964
- over: d
963
+ active: m,
964
+ over: g
965
965
  }));
966
966
  }
967
967
  }), [s, t])), !c)
968
968
  return null;
969
- const h = H.createElement(H.Fragment, null, H.createElement(jo, {
969
+ const f = H.createElement(H.Fragment, null, H.createElement(_o, {
970
970
  id: r,
971
971
  value: o.draggable
972
- }), H.createElement(_o, {
972
+ }), H.createElement(Oo, {
973
973
  id: l,
974
974
  announcement: i
975
975
  }));
976
- return n ? oo(h, n) : h;
976
+ return n ? so(f, n) : f;
977
977
  }
978
978
  var Y;
979
979
  (function(e) {
@@ -981,7 +981,7 @@ var Y;
981
981
  })(Y || (Y = {}));
982
982
  function Mt() {
983
983
  }
984
- function Mo(e, t) {
984
+ function Lo(e, t) {
985
985
  return N(
986
986
  () => ({
987
987
  sensor: e,
@@ -991,7 +991,7 @@ function Mo(e, t) {
991
991
  [e, t]
992
992
  );
993
993
  }
994
- function Lo() {
994
+ function $o() {
995
995
  for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
996
996
  t[n] = arguments[n];
997
997
  return N(
@@ -1004,10 +1004,10 @@ const ge = /* @__PURE__ */ Object.freeze({
1004
1004
  x: 0,
1005
1005
  y: 0
1006
1006
  });
1007
- function $o(e, t) {
1007
+ function Po(e, t) {
1008
1008
  return Math.sqrt(Math.pow(e.x - t.x, 2) + Math.pow(e.y - t.y, 2));
1009
1009
  }
1010
- function Po(e, t) {
1010
+ function zo(e, t) {
1011
1011
  let {
1012
1012
  data: {
1013
1013
  value: n
@@ -1019,7 +1019,7 @@ function Po(e, t) {
1019
1019
  } = t;
1020
1020
  return n - r;
1021
1021
  }
1022
- function zo(e, t) {
1022
+ function Fo(e, t) {
1023
1023
  let {
1024
1024
  data: {
1025
1025
  value: n
@@ -1031,7 +1031,7 @@ function zo(e, t) {
1031
1031
  } = t;
1032
1032
  return r - n;
1033
1033
  }
1034
- function Fo(e, t) {
1034
+ function Vo(e, t) {
1035
1035
  if (!e || e.length === 0)
1036
1036
  return null;
1037
1037
  const [n] = e;
@@ -1055,7 +1055,7 @@ const mr = (e) => {
1055
1055
  id: l
1056
1056
  } = i, c = n.get(l);
1057
1057
  if (c) {
1058
- const u = $o(Un(c), o);
1058
+ const u = Po(Un(c), o);
1059
1059
  s.push({
1060
1060
  id: l,
1061
1061
  data: {
@@ -1065,17 +1065,17 @@ const mr = (e) => {
1065
1065
  });
1066
1066
  }
1067
1067
  }
1068
- return s.sort(Po);
1068
+ return s.sort(zo);
1069
1069
  };
1070
- function Vo(e, t) {
1070
+ function Yo(e, t) {
1071
1071
  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), i = o - r, l = s - n;
1072
1072
  if (r < o && n < s) {
1073
- const c = t.width * t.height, u = e.width * e.height, h = i * l, f = h / (c + u - h);
1074
- return Number(f.toFixed(4));
1073
+ const c = t.width * t.height, u = e.width * e.height, f = i * l, h = f / (c + u - f);
1074
+ return Number(h.toFixed(4));
1075
1075
  }
1076
1076
  return 0;
1077
1077
  }
1078
- const Yo = (e) => {
1078
+ const Ho = (e) => {
1079
1079
  let {
1080
1080
  collisionRect: t,
1081
1081
  droppableRects: n,
@@ -1087,7 +1087,7 @@ const Yo = (e) => {
1087
1087
  id: i
1088
1088
  } = s, l = n.get(i);
1089
1089
  if (l) {
1090
- const c = Vo(l, t);
1090
+ const c = Yo(l, t);
1091
1091
  c > 0 && o.push({
1092
1092
  id: i,
1093
1093
  data: {
@@ -1097,9 +1097,9 @@ const Yo = (e) => {
1097
1097
  });
1098
1098
  }
1099
1099
  }
1100
- return o.sort(zo);
1100
+ return o.sort(Fo);
1101
1101
  };
1102
- function Ho(e, t, n) {
1102
+ function Bo(e, t, n) {
1103
1103
  return {
1104
1104
  ...e,
1105
1105
  scaleX: t && n ? t.width / n.width : 1,
@@ -1112,7 +1112,7 @@ function xr(e, t) {
1112
1112
  y: e.top - t.top
1113
1113
  } : ge;
1114
1114
  }
1115
- function Bo(e) {
1115
+ function Wo(e) {
1116
1116
  return function(n) {
1117
1117
  for (var r = arguments.length, o = new Array(r > 1 ? r - 1 : 0), s = 1; s < r; s++)
1118
1118
  o[s - 1] = arguments[s];
@@ -1127,8 +1127,8 @@ function Bo(e) {
1127
1127
  });
1128
1128
  };
1129
1129
  }
1130
- const Wo = /* @__PURE__ */ Bo(1);
1131
- function Uo(e) {
1130
+ const Uo = /* @__PURE__ */ Wo(1);
1131
+ function Go(e) {
1132
1132
  if (e.startsWith("matrix3d(")) {
1133
1133
  const t = e.slice(9, -1).split(/, /);
1134
1134
  return {
@@ -1148,8 +1148,8 @@ function Uo(e) {
1148
1148
  }
1149
1149
  return null;
1150
1150
  }
1151
- function Go(e, t, n) {
1152
- const r = Uo(t);
1151
+ function Xo(e, t, n) {
1152
+ const r = Go(t);
1153
1153
  if (!r)
1154
1154
  return e;
1155
1155
  const {
@@ -1157,28 +1157,28 @@ function Go(e, t, n) {
1157
1157
  scaleY: s,
1158
1158
  x: i,
1159
1159
  y: l
1160
- } = r, c = e.left - i - (1 - o) * parseFloat(n), u = e.top - l - (1 - s) * parseFloat(n.slice(n.indexOf(" ") + 1)), h = o ? e.width / o : e.width, f = s ? e.height / s : e.height;
1160
+ } = r, c = e.left - i - (1 - o) * parseFloat(n), u = e.top - l - (1 - s) * parseFloat(n.slice(n.indexOf(" ") + 1)), f = o ? e.width / o : e.width, h = s ? e.height / s : e.height;
1161
1161
  return {
1162
- width: h,
1163
- height: f,
1162
+ width: f,
1163
+ height: h,
1164
1164
  top: u,
1165
- right: c + h,
1166
- bottom: u + f,
1165
+ right: c + f,
1166
+ bottom: u + h,
1167
1167
  left: c
1168
1168
  };
1169
1169
  }
1170
- const Xo = {
1170
+ const qo = {
1171
1171
  ignoreTransform: !1
1172
1172
  };
1173
1173
  function Ze(e, t) {
1174
- t === void 0 && (t = Xo);
1174
+ t === void 0 && (t = qo);
1175
1175
  let n = e.getBoundingClientRect();
1176
1176
  if (t.ignoreTransform) {
1177
1177
  const {
1178
1178
  transform: u,
1179
- transformOrigin: h
1179
+ transformOrigin: f
1180
1180
  } = te(e).getComputedStyle(e);
1181
- u && (n = Go(n, u, h));
1181
+ u && (n = Xo(n, u, f));
1182
1182
  }
1183
1183
  const {
1184
1184
  top: r,
@@ -1202,7 +1202,7 @@ function Gn(e) {
1202
1202
  ignoreTransform: !0
1203
1203
  });
1204
1204
  }
1205
- function qo(e) {
1205
+ function Ko(e) {
1206
1206
  const t = e.innerWidth, n = e.innerHeight;
1207
1207
  return {
1208
1208
  top: 0,
@@ -1213,10 +1213,10 @@ function qo(e) {
1213
1213
  height: n
1214
1214
  };
1215
1215
  }
1216
- function Ko(e, t) {
1216
+ function Jo(e, t) {
1217
1217
  return t === void 0 && (t = te(e).getComputedStyle(e)), t.position === "fixed";
1218
1218
  }
1219
- function Jo(e, t) {
1219
+ function Zo(e, t) {
1220
1220
  t === void 0 && (t = te(e).getComputedStyle(e));
1221
1221
  const n = /(auto|scroll|overlay)/;
1222
1222
  return ["overflow", "overflowX", "overflowY"].some((o) => {
@@ -1234,7 +1234,7 @@ function mn(e, t) {
1234
1234
  if (!bt(o) || pr(o) || n.includes(o))
1235
1235
  return n;
1236
1236
  const s = te(e).getComputedStyle(o);
1237
- return o !== e && Jo(o, s) && n.push(o), Ko(o, s) ? n : r(o.parentNode);
1237
+ return o !== e && Zo(o, s) && n.push(o), Jo(o, s) ? n : r(o.parentNode);
1238
1238
  }
1239
1239
  return e ? r(e) : n;
1240
1240
  }
@@ -1287,39 +1287,39 @@ function Rr(e) {
1287
1287
  minScroll: t
1288
1288
  };
1289
1289
  }
1290
- const Zo = {
1290
+ const Qo = {
1291
1291
  x: 0.2,
1292
1292
  y: 0.2
1293
1293
  };
1294
- function Qo(e, t, n, r, o) {
1294
+ function es(e, t, n, r, o) {
1295
1295
  let {
1296
1296
  top: s,
1297
1297
  left: i,
1298
1298
  right: l,
1299
1299
  bottom: c
1300
1300
  } = n;
1301
- r === void 0 && (r = 10), o === void 0 && (o = Zo);
1301
+ r === void 0 && (r = 10), o === void 0 && (o = Qo);
1302
1302
  const {
1303
1303
  isTop: u,
1304
- isBottom: h,
1305
- isLeft: f,
1306
- isRight: v
1307
- } = Rr(e), d = {
1304
+ isBottom: f,
1305
+ isLeft: h,
1306
+ isRight: m
1307
+ } = Rr(e), g = {
1308
1308
  x: 0,
1309
1309
  y: 0
1310
- }, b = {
1310
+ }, v = {
1311
1311
  x: 0,
1312
1312
  y: 0
1313
- }, g = {
1313
+ }, d = {
1314
1314
  height: t.height * o.y,
1315
1315
  width: t.width * o.x
1316
1316
  };
1317
- return !u && s <= t.top + g.height ? (d.y = B.Backward, b.y = r * Math.abs((t.top + g.height - s) / g.height)) : !h && c >= t.bottom - g.height && (d.y = B.Forward, b.y = r * Math.abs((t.bottom - g.height - c) / g.height)), !v && l >= t.right - g.width ? (d.x = B.Forward, b.x = r * Math.abs((t.right - g.width - l) / g.width)) : !f && i <= t.left + g.width && (d.x = B.Backward, b.x = r * Math.abs((t.left + g.width - i) / g.width)), {
1318
- direction: d,
1319
- speed: b
1317
+ return !u && s <= t.top + d.height ? (g.y = B.Backward, v.y = r * Math.abs((t.top + d.height - s) / d.height)) : !f && c >= t.bottom - d.height && (g.y = B.Forward, v.y = r * Math.abs((t.bottom - d.height - c) / d.height)), !m && l >= t.right - d.width ? (g.x = B.Forward, v.x = r * Math.abs((t.right - d.width - l) / d.width)) : !h && i <= t.left + d.width && (g.x = B.Backward, v.x = r * Math.abs((t.left + d.width - i) / d.width)), {
1318
+ direction: g,
1319
+ speed: v
1320
1320
  };
1321
1321
  }
1322
- function es(e) {
1322
+ function ts(e) {
1323
1323
  if (e === document.scrollingElement) {
1324
1324
  const {
1325
1325
  innerWidth: s,
@@ -1352,13 +1352,13 @@ function es(e) {
1352
1352
  function Dr(e) {
1353
1353
  return e.reduce((t, n) => Xe(t, un(n)), ge);
1354
1354
  }
1355
- function ts(e) {
1355
+ function ns(e) {
1356
1356
  return e.reduce((t, n) => t + wr(n), 0);
1357
1357
  }
1358
- function ns(e) {
1358
+ function rs(e) {
1359
1359
  return e.reduce((t, n) => t + Sr(n), 0);
1360
1360
  }
1361
- function rs(e, t) {
1361
+ function os(e, t) {
1362
1362
  if (t === void 0 && (t = Ze), !e)
1363
1363
  return;
1364
1364
  const {
@@ -1372,7 +1372,7 @@ function rs(e, t) {
1372
1372
  inline: "center"
1373
1373
  });
1374
1374
  }
1375
- const os = [["x", ["left", "right"], ts], ["y", ["top", "bottom"], ns]];
1375
+ const ss = [["x", ["left", "right"], ns], ["y", ["top", "bottom"], rs]];
1376
1376
  class xn {
1377
1377
  constructor(t, n) {
1378
1378
  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;
@@ -1380,12 +1380,12 @@ class xn {
1380
1380
  this.rect = {
1381
1381
  ...t
1382
1382
  }, this.width = t.width, this.height = t.height;
1383
- for (const [s, i, l] of os)
1383
+ for (const [s, i, l] of ss)
1384
1384
  for (const c of i)
1385
1385
  Object.defineProperty(this, c, {
1386
1386
  get: () => {
1387
- const u = l(r), h = o[s] - u;
1388
- return this.rect[c] + h;
1387
+ const u = l(r), f = o[s] - u;
1388
+ return this.rect[c] + f;
1389
1389
  },
1390
1390
  enumerable: !0
1391
1391
  });
@@ -1408,7 +1408,7 @@ class lt {
1408
1408
  (o = this.target) == null || o.addEventListener(t, n, r), this.listeners.push([t, n, r]);
1409
1409
  }
1410
1410
  }
1411
- function ss(e) {
1411
+ function is(e) {
1412
1412
  const {
1413
1413
  EventTarget: t
1414
1414
  } = te(e);
@@ -1418,14 +1418,14 @@ function tn(e, t) {
1418
1418
  const n = Math.abs(e.x), r = Math.abs(e.y);
1419
1419
  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;
1420
1420
  }
1421
- var ue;
1421
+ var de;
1422
1422
  (function(e) {
1423
1423
  e.Click = "click", e.DragStart = "dragstart", e.Keydown = "keydown", e.ContextMenu = "contextmenu", e.Resize = "resize", e.SelectionChange = "selectionchange", e.VisibilityChange = "visibilitychange";
1424
- })(ue || (ue = {}));
1424
+ })(de || (de = {}));
1425
1425
  function Xn(e) {
1426
1426
  e.preventDefault();
1427
1427
  }
1428
- function is(e) {
1428
+ function as(e) {
1429
1429
  e.stopPropagation();
1430
1430
  }
1431
1431
  var T;
@@ -1436,7 +1436,7 @@ const Er = {
1436
1436
  start: [T.Space, T.Enter],
1437
1437
  cancel: [T.Esc],
1438
1438
  end: [T.Space, T.Enter, T.Tab]
1439
- }, as = (e, t) => {
1439
+ }, ls = (e, t) => {
1440
1440
  let {
1441
1441
  currentCoordinates: n
1442
1442
  } = t;
@@ -1474,14 +1474,14 @@ class jr {
1474
1474
  this.props = t, this.listeners = new lt(Je(n)), this.windowListeners = new lt(te(n)), this.handleKeyDown = this.handleKeyDown.bind(this), this.handleCancel = this.handleCancel.bind(this), this.attach();
1475
1475
  }
1476
1476
  attach() {
1477
- this.handleStart(), this.windowListeners.add(ue.Resize, this.handleCancel), this.windowListeners.add(ue.VisibilityChange, this.handleCancel), setTimeout(() => this.listeners.add(ue.Keydown, this.handleKeyDown));
1477
+ this.handleStart(), this.windowListeners.add(de.Resize, this.handleCancel), this.windowListeners.add(de.VisibilityChange, this.handleCancel), setTimeout(() => this.listeners.add(de.Keydown, this.handleKeyDown));
1478
1478
  }
1479
1479
  handleStart() {
1480
1480
  const {
1481
1481
  activeNode: t,
1482
1482
  onStart: n
1483
1483
  } = this.props, r = t.node.current;
1484
- r && rs(r), n(ge);
1484
+ r && os(r), n(ge);
1485
1485
  }
1486
1486
  handleKeyDown(t) {
1487
1487
  if (bn(t)) {
@@ -1491,7 +1491,7 @@ class jr {
1491
1491
  options: o
1492
1492
  } = this.props, {
1493
1493
  keyboardCodes: s = Er,
1494
- coordinateGetter: i = as,
1494
+ coordinateGetter: i = ls,
1495
1495
  scrollBehavior: l = "smooth"
1496
1496
  } = o, {
1497
1497
  code: c
@@ -1506,66 +1506,66 @@ class jr {
1506
1506
  }
1507
1507
  const {
1508
1508
  collisionRect: u
1509
- } = r.current, h = u ? {
1509
+ } = r.current, f = u ? {
1510
1510
  x: u.left,
1511
1511
  y: u.top
1512
1512
  } : ge;
1513
- this.referenceCoordinates || (this.referenceCoordinates = h);
1514
- const f = i(t, {
1513
+ this.referenceCoordinates || (this.referenceCoordinates = f);
1514
+ const h = i(t, {
1515
1515
  active: n,
1516
1516
  context: r.current,
1517
- currentCoordinates: h
1517
+ currentCoordinates: f
1518
1518
  });
1519
- if (f) {
1520
- const v = Nt(f, h), d = {
1519
+ if (h) {
1520
+ const m = Nt(h, f), g = {
1521
1521
  x: 0,
1522
1522
  y: 0
1523
1523
  }, {
1524
- scrollableAncestors: b
1524
+ scrollableAncestors: v
1525
1525
  } = r.current;
1526
- for (const g of b) {
1527
- const m = t.code, {
1526
+ for (const d of v) {
1527
+ const b = t.code, {
1528
1528
  isTop: x,
1529
1529
  isRight: w,
1530
1530
  isLeft: S,
1531
- isBottom: D,
1531
+ isBottom: C,
1532
1532
  maxScroll: j,
1533
- minScroll: R
1534
- } = Rr(g), E = es(g), _ = {
1535
- x: Math.min(m === T.Right ? E.right - E.width / 2 : E.right, Math.max(m === T.Right ? E.left : E.left + E.width / 2, f.x)),
1536
- y: Math.min(m === T.Down ? E.bottom - E.height / 2 : E.bottom, Math.max(m === T.Down ? E.top : E.top + E.height / 2, f.y))
1537
- }, $ = m === T.Right && !w || m === T.Left && !S, F = m === T.Down && !D || m === T.Up && !x;
1538
- if ($ && _.x !== f.x) {
1539
- const L = g.scrollLeft + v.x, J = m === T.Right && L <= j.x || m === T.Left && L >= R.x;
1540
- if (J && !v.y) {
1541
- g.scrollTo({
1533
+ minScroll: D
1534
+ } = Rr(d), E = ts(d), _ = {
1535
+ x: Math.min(b === T.Right ? E.right - E.width / 2 : E.right, Math.max(b === T.Right ? E.left : E.left + E.width / 2, h.x)),
1536
+ y: Math.min(b === T.Down ? E.bottom - E.height / 2 : E.bottom, Math.max(b === T.Down ? E.top : E.top + E.height / 2, h.y))
1537
+ }, $ = b === T.Right && !w || b === T.Left && !S, F = b === T.Down && !C || b === T.Up && !x;
1538
+ if ($ && _.x !== h.x) {
1539
+ const L = d.scrollLeft + m.x, Z = b === T.Right && L <= j.x || b === T.Left && L >= D.x;
1540
+ if (Z && !m.y) {
1541
+ d.scrollTo({
1542
1542
  left: L,
1543
1543
  behavior: l
1544
1544
  });
1545
1545
  return;
1546
1546
  }
1547
- J ? d.x = g.scrollLeft - L : d.x = m === T.Right ? g.scrollLeft - j.x : g.scrollLeft - R.x, d.x && g.scrollBy({
1548
- left: -d.x,
1547
+ Z ? g.x = d.scrollLeft - L : g.x = b === T.Right ? d.scrollLeft - j.x : d.scrollLeft - D.x, g.x && d.scrollBy({
1548
+ left: -g.x,
1549
1549
  behavior: l
1550
1550
  });
1551
1551
  break;
1552
- } else if (F && _.y !== f.y) {
1553
- const L = g.scrollTop + v.y, J = m === T.Down && L <= j.y || m === T.Up && L >= R.y;
1554
- if (J && !v.x) {
1555
- g.scrollTo({
1552
+ } else if (F && _.y !== h.y) {
1553
+ const L = d.scrollTop + m.y, Z = b === T.Down && L <= j.y || b === T.Up && L >= D.y;
1554
+ if (Z && !m.x) {
1555
+ d.scrollTo({
1556
1556
  top: L,
1557
1557
  behavior: l
1558
1558
  });
1559
1559
  return;
1560
1560
  }
1561
- J ? d.y = g.scrollTop - L : d.y = m === T.Down ? g.scrollTop - j.y : g.scrollTop - R.y, d.y && g.scrollBy({
1562
- top: -d.y,
1561
+ Z ? g.y = d.scrollTop - L : g.y = b === T.Down ? d.scrollTop - j.y : d.scrollTop - D.y, g.y && d.scrollBy({
1562
+ top: -g.y,
1563
1563
  behavior: l
1564
1564
  });
1565
1565
  break;
1566
1566
  }
1567
1567
  }
1568
- this.handleMove(t, Xe(Nt(f, this.referenceCoordinates), d));
1568
+ this.handleMove(t, Xe(Nt(h, this.referenceCoordinates), g));
1569
1569
  }
1570
1570
  }
1571
1571
  }
@@ -1621,7 +1621,7 @@ function Kn(e) {
1621
1621
  class yn {
1622
1622
  constructor(t, n, r) {
1623
1623
  var o;
1624
- r === void 0 && (r = ss(t.event.target)), this.props = void 0, this.events = void 0, this.autoScrollEnabled = !0, this.document = void 0, this.activated = !1, this.initialCoordinates = void 0, this.timeoutId = null, this.listeners = void 0, this.documentListeners = void 0, this.windowListeners = void 0, this.props = t, this.events = n;
1624
+ r === void 0 && (r = is(t.event.target)), this.props = void 0, this.events = void 0, this.autoScrollEnabled = !0, this.document = void 0, this.activated = !1, this.initialCoordinates = void 0, this.timeoutId = null, this.listeners = void 0, this.documentListeners = void 0, this.windowListeners = void 0, this.props = t, this.events = n;
1625
1625
  const {
1626
1626
  event: s
1627
1627
  } = t, {
@@ -1641,7 +1641,7 @@ class yn {
1641
1641
  } = this;
1642
1642
  if (this.listeners.add(t.move.name, this.handleMove, {
1643
1643
  passive: !1
1644
- }), this.listeners.add(t.end.name, this.handleEnd), t.cancel && this.listeners.add(t.cancel.name, this.handleCancel), this.windowListeners.add(ue.Resize, this.handleCancel), this.windowListeners.add(ue.DragStart, Xn), this.windowListeners.add(ue.VisibilityChange, this.handleCancel), this.windowListeners.add(ue.ContextMenu, Xn), this.documentListeners.add(ue.Keydown, this.handleKeydown), n) {
1644
+ }), this.listeners.add(t.end.name, this.handleEnd), t.cancel && this.listeners.add(t.cancel.name, this.handleCancel), this.windowListeners.add(de.Resize, this.handleCancel), this.windowListeners.add(de.DragStart, Xn), this.windowListeners.add(de.VisibilityChange, this.handleCancel), this.windowListeners.add(de.ContextMenu, Xn), this.documentListeners.add(de.Keydown, this.handleKeydown), n) {
1645
1645
  if (r != null && r({
1646
1646
  event: this.props.event,
1647
1647
  activeNode: this.props.activeNode,
@@ -1675,9 +1675,9 @@ class yn {
1675
1675
  } = this, {
1676
1676
  onStart: n
1677
1677
  } = this.props;
1678
- t && (this.activated = !0, this.documentListeners.add(ue.Click, is, {
1678
+ t && (this.activated = !0, this.documentListeners.add(de.Click, as, {
1679
1679
  capture: !0
1680
- }), this.removeTextSelection(), this.documentListeners.add(ue.SelectionChange, this.removeTextSelection), n(t));
1680
+ }), this.removeTextSelection(), this.documentListeners.add(de.SelectionChange, this.removeTextSelection), n(t));
1681
1681
  }
1682
1682
  handleMove(t) {
1683
1683
  var n;
@@ -1730,7 +1730,7 @@ class yn {
1730
1730
  (t = this.document.getSelection()) == null || t.removeAllRanges();
1731
1731
  }
1732
1732
  }
1733
- const ls = {
1733
+ const cs = {
1734
1734
  cancel: {
1735
1735
  name: "pointercancel"
1736
1736
  },
@@ -1746,7 +1746,7 @@ class wn extends yn {
1746
1746
  const {
1747
1747
  event: n
1748
1748
  } = t, r = Je(n.target);
1749
- super(t, ls, r);
1749
+ super(t, cs, r);
1750
1750
  }
1751
1751
  }
1752
1752
  wn.activators = [{
@@ -1762,7 +1762,7 @@ wn.activators = [{
1762
1762
  }), !0);
1763
1763
  }
1764
1764
  }];
1765
- const cs = {
1765
+ const us = {
1766
1766
  move: {
1767
1767
  name: "mousemove"
1768
1768
  },
@@ -1774,12 +1774,12 @@ var dn;
1774
1774
  (function(e) {
1775
1775
  e[e.RightClick = 2] = "RightClick";
1776
1776
  })(dn || (dn = {}));
1777
- class us extends yn {
1777
+ class ds extends yn {
1778
1778
  constructor(t) {
1779
- super(t, cs, Je(t.event.target));
1779
+ super(t, us, Je(t.event.target));
1780
1780
  }
1781
1781
  }
1782
- us.activators = [{
1782
+ ds.activators = [{
1783
1783
  eventName: "onMouseDown",
1784
1784
  handler: (e, t) => {
1785
1785
  let {
@@ -1803,7 +1803,7 @@ const nn = {
1803
1803
  name: "touchend"
1804
1804
  }
1805
1805
  };
1806
- class ds extends yn {
1806
+ class fs extends yn {
1807
1807
  constructor(t) {
1808
1808
  super(t, nn);
1809
1809
  }
@@ -1818,7 +1818,7 @@ class ds extends yn {
1818
1818
  }
1819
1819
  }
1820
1820
  }
1821
- ds.activators = [{
1821
+ fs.activators = [{
1822
1822
  eventName: "onTouchStart",
1823
1823
  handler: (e, t) => {
1824
1824
  let {
@@ -1842,7 +1842,7 @@ var Lt;
1842
1842
  (function(e) {
1843
1843
  e[e.TreeOrder = 0] = "TreeOrder", e[e.ReversedTreeOrder = 1] = "ReversedTreeOrder";
1844
1844
  })(Lt || (Lt = {}));
1845
- function fs(e) {
1845
+ function hs(e) {
1846
1846
  let {
1847
1847
  acceleration: t,
1848
1848
  activator: n = ct.Pointer,
@@ -1853,14 +1853,14 @@ function fs(e) {
1853
1853
  order: l = Lt.TreeOrder,
1854
1854
  pointerCoordinates: c,
1855
1855
  scrollableAncestors: u,
1856
- scrollableAncestorRects: h,
1857
- delta: f,
1858
- threshold: v
1856
+ scrollableAncestorRects: f,
1857
+ delta: h,
1858
+ threshold: m
1859
1859
  } = e;
1860
- const d = gs({
1861
- delta: f,
1860
+ const g = ps({
1861
+ delta: h,
1862
1862
  disabled: !s
1863
- }), [b, g] = So(), m = M({
1863
+ }), [v, d] = Co(), b = M({
1864
1864
  x: 0,
1865
1865
  y: 0
1866
1866
  }), x = M({
@@ -1878,66 +1878,66 @@ function fs(e) {
1878
1878
  case ct.DraggableRect:
1879
1879
  return o;
1880
1880
  }
1881
- }, [n, o, c]), S = M(null), D = K(() => {
1882
- const R = S.current;
1883
- if (!R)
1881
+ }, [n, o, c]), S = M(null), C = J(() => {
1882
+ const D = S.current;
1883
+ if (!D)
1884
1884
  return;
1885
- const E = m.current.x * x.current.x, _ = m.current.y * x.current.y;
1886
- R.scrollBy(E, _);
1885
+ const E = b.current.x * x.current.x, _ = b.current.y * x.current.y;
1886
+ D.scrollBy(E, _);
1887
1887
  }, []), j = N(() => l === Lt.TreeOrder ? [...u].reverse() : u, [l, u]);
1888
1888
  A(
1889
1889
  () => {
1890
1890
  if (!s || !u.length || !w) {
1891
- g();
1891
+ d();
1892
1892
  return;
1893
1893
  }
1894
- for (const R of j) {
1895
- if (r?.(R) === !1)
1894
+ for (const D of j) {
1895
+ if (r?.(D) === !1)
1896
1896
  continue;
1897
- const E = u.indexOf(R), _ = h[E];
1897
+ const E = u.indexOf(D), _ = f[E];
1898
1898
  if (!_)
1899
1899
  continue;
1900
1900
  const {
1901
1901
  direction: $,
1902
1902
  speed: F
1903
- } = Qo(R, _, w, t, v);
1903
+ } = es(D, _, w, t, m);
1904
1904
  for (const L of ["x", "y"])
1905
- d[L][$[L]] || (F[L] = 0, $[L] = 0);
1905
+ g[L][$[L]] || (F[L] = 0, $[L] = 0);
1906
1906
  if (F.x > 0 || F.y > 0) {
1907
- g(), S.current = R, b(D, i), m.current = F, x.current = $;
1907
+ d(), S.current = D, v(C, i), b.current = F, x.current = $;
1908
1908
  return;
1909
1909
  }
1910
1910
  }
1911
- m.current = {
1911
+ b.current = {
1912
1912
  x: 0,
1913
1913
  y: 0
1914
1914
  }, x.current = {
1915
1915
  x: 0,
1916
1916
  y: 0
1917
- }, g();
1917
+ }, d();
1918
1918
  },
1919
1919
  // eslint-disable-next-line react-hooks/exhaustive-deps
1920
1920
  [
1921
1921
  t,
1922
- D,
1922
+ C,
1923
1923
  r,
1924
- g,
1924
+ d,
1925
1925
  s,
1926
1926
  i,
1927
1927
  // eslint-disable-next-line react-hooks/exhaustive-deps
1928
1928
  JSON.stringify(w),
1929
1929
  // eslint-disable-next-line react-hooks/exhaustive-deps
1930
- JSON.stringify(d),
1931
- b,
1930
+ JSON.stringify(g),
1931
+ v,
1932
1932
  u,
1933
1933
  j,
1934
- h,
1934
+ f,
1935
1935
  // eslint-disable-next-line react-hooks/exhaustive-deps
1936
- JSON.stringify(v)
1936
+ JSON.stringify(m)
1937
1937
  ]
1938
1938
  );
1939
1939
  }
1940
- const hs = {
1940
+ const gs = {
1941
1941
  x: {
1942
1942
  [B.Backward]: !1,
1943
1943
  [B.Forward]: !1
@@ -1947,7 +1947,7 @@ const hs = {
1947
1947
  [B.Forward]: !1
1948
1948
  }
1949
1949
  };
1950
- function gs(e) {
1950
+ function ps(e) {
1951
1951
  let {
1952
1952
  delta: t,
1953
1953
  disabled: n
@@ -1955,7 +1955,7 @@ function gs(e) {
1955
1955
  const r = ln(t);
1956
1956
  return mt((o) => {
1957
1957
  if (n || !r || !o)
1958
- return hs;
1958
+ return gs;
1959
1959
  const s = {
1960
1960
  x: Math.sign(t.x - r.x),
1961
1961
  y: Math.sign(t.y - r.y)
@@ -1972,14 +1972,14 @@ function gs(e) {
1972
1972
  };
1973
1973
  }, [n, t, r]);
1974
1974
  }
1975
- function ps(e, t) {
1975
+ function vs(e, t) {
1976
1976
  const n = t != null ? e.get(t) : void 0, r = n ? n.node.current : null;
1977
1977
  return mt((o) => {
1978
1978
  var s;
1979
1979
  return t == null ? null : (s = r ?? o) != null ? s : null;
1980
1980
  }, [r, t]);
1981
1981
  }
1982
- function vs(e, t) {
1982
+ function bs(e, t) {
1983
1983
  return N(() => e.reduce((n, r) => {
1984
1984
  const {
1985
1985
  sensor: o
@@ -1999,22 +1999,22 @@ var fn;
1999
1999
  e.Optimized = "optimized";
2000
2000
  })(fn || (fn = {}));
2001
2001
  const Jn = /* @__PURE__ */ new Map();
2002
- function bs(e, t) {
2002
+ function ms(e, t) {
2003
2003
  let {
2004
2004
  dragging: n,
2005
2005
  dependencies: r,
2006
2006
  config: o
2007
2007
  } = t;
2008
- const [s, i] = Q(null), {
2008
+ const [s, i] = K(null), {
2009
2009
  frequency: l,
2010
2010
  measure: c,
2011
2011
  strategy: u
2012
- } = o, h = M(e), f = m(), v = dt(f), d = K(function(x) {
2013
- x === void 0 && (x = []), !v.current && i((w) => w === null ? x : w.concat(x.filter((S) => !w.includes(S))));
2014
- }, [v]), b = M(null), g = mt((x) => {
2015
- if (f && !n)
2012
+ } = o, f = M(e), h = b(), m = dt(h), g = J(function(x) {
2013
+ x === void 0 && (x = []), !m.current && i((w) => w === null ? x : w.concat(x.filter((S) => !w.includes(S))));
2014
+ }, [m]), v = M(null), d = mt((x) => {
2015
+ if (h && !n)
2016
2016
  return Jn;
2017
- if (!x || x === Jn || h.current !== e || s != null) {
2017
+ if (!x || x === Jn || f.current !== e || s != null) {
2018
2018
  const w = /* @__PURE__ */ new Map();
2019
2019
  for (let S of e) {
2020
2020
  if (!S)
@@ -2023,21 +2023,21 @@ function bs(e, t) {
2023
2023
  w.set(S.id, S.rect.current);
2024
2024
  continue;
2025
2025
  }
2026
- const D = S.node.current, j = D ? new xn(c(D), D) : null;
2026
+ const C = S.node.current, j = C ? new xn(c(C), C) : null;
2027
2027
  S.rect.current = j, j && w.set(S.id, j);
2028
2028
  }
2029
2029
  return w;
2030
2030
  }
2031
2031
  return x;
2032
- }, [e, s, n, f, c]);
2032
+ }, [e, s, n, h, c]);
2033
2033
  return A(() => {
2034
- h.current = e;
2034
+ f.current = e;
2035
2035
  }, [e]), A(
2036
2036
  () => {
2037
- f || d();
2037
+ h || g();
2038
2038
  },
2039
2039
  // eslint-disable-next-line react-hooks/exhaustive-deps
2040
- [n, f]
2040
+ [n, h]
2041
2041
  ), A(
2042
2042
  () => {
2043
2043
  s && s.length > 0 && i(null);
@@ -2046,18 +2046,18 @@ function bs(e, t) {
2046
2046
  [JSON.stringify(s)]
2047
2047
  ), A(
2048
2048
  () => {
2049
- f || typeof l != "number" || b.current !== null || (b.current = setTimeout(() => {
2050
- d(), b.current = null;
2049
+ h || typeof l != "number" || v.current !== null || (v.current = setTimeout(() => {
2050
+ g(), v.current = null;
2051
2051
  }, l));
2052
2052
  },
2053
2053
  // eslint-disable-next-line react-hooks/exhaustive-deps
2054
- [l, f, d, ...r]
2054
+ [l, h, g, ...r]
2055
2055
  ), {
2056
- droppableRects: g,
2057
- measureDroppableContainers: d,
2056
+ droppableRects: d,
2057
+ measureDroppableContainers: g,
2058
2058
  measuringScheduled: s != null
2059
2059
  };
2060
- function m() {
2060
+ function b() {
2061
2061
  switch (u) {
2062
2062
  case ft.Always:
2063
2063
  return !1;
@@ -2071,10 +2071,10 @@ function bs(e, t) {
2071
2071
  function _r(e, t) {
2072
2072
  return mt((n) => e ? n || (typeof t == "function" ? t(e) : e) : null, [t, e]);
2073
2073
  }
2074
- function ms(e, t) {
2074
+ function xs(e, t) {
2075
2075
  return _r(e, t);
2076
2076
  }
2077
- function xs(e) {
2077
+ function ys(e) {
2078
2078
  let {
2079
2079
  callback: t,
2080
2080
  disabled: n
@@ -2108,12 +2108,12 @@ function Vt(e) {
2108
2108
  );
2109
2109
  return A(() => () => o?.disconnect(), [o]), o;
2110
2110
  }
2111
- function ys(e) {
2111
+ function ws(e) {
2112
2112
  return new xn(Ze(e), e);
2113
2113
  }
2114
2114
  function Zn(e, t, n) {
2115
- t === void 0 && (t = ys);
2116
- const [r, o] = Q(null);
2115
+ t === void 0 && (t = ws);
2116
+ const [r, o] = K(null);
2117
2117
  function s() {
2118
2118
  o((c) => {
2119
2119
  if (!e)
@@ -2122,19 +2122,19 @@ function Zn(e, t, n) {
2122
2122
  var u;
2123
2123
  return (u = c ?? n) != null ? u : null;
2124
2124
  }
2125
- const h = t(e);
2126
- return JSON.stringify(c) === JSON.stringify(h) ? c : h;
2125
+ const f = t(e);
2126
+ return JSON.stringify(c) === JSON.stringify(f) ? c : f;
2127
2127
  });
2128
2128
  }
2129
- const i = xs({
2129
+ const i = ys({
2130
2130
  callback(c) {
2131
2131
  if (e)
2132
2132
  for (const u of c) {
2133
2133
  const {
2134
- type: h,
2135
- target: f
2134
+ type: f,
2135
+ target: h
2136
2136
  } = u;
2137
- if (h === "childList" && f instanceof HTMLElement && f.contains(e)) {
2137
+ if (f === "childList" && h instanceof HTMLElement && h.contains(e)) {
2138
2138
  s();
2139
2139
  break;
2140
2140
  }
@@ -2150,19 +2150,19 @@ function Zn(e, t, n) {
2150
2150
  })) : (l?.disconnect(), i?.disconnect());
2151
2151
  }, [e]), r;
2152
2152
  }
2153
- function ws(e) {
2153
+ function Ss(e) {
2154
2154
  const t = _r(e);
2155
2155
  return xr(e, t);
2156
2156
  }
2157
2157
  const Qn = [];
2158
- function Ss(e) {
2158
+ function Cs(e) {
2159
2159
  const t = M(e), n = mt((r) => e ? r && r !== Qn && e && t.current && e.parentNode === t.current.parentNode ? r : mn(e) : Qn, [e]);
2160
2160
  return A(() => {
2161
2161
  t.current = e;
2162
2162
  }, [e]), n;
2163
2163
  }
2164
- function Cs(e) {
2165
- const [t, n] = Q(null), r = M(e), o = K((s) => {
2164
+ function Rs(e) {
2165
+ const [t, n] = K(null), r = M(e), o = J((s) => {
2166
2166
  const i = en(s.target);
2167
2167
  i && n((l) => l ? (l.set(i, un(i)), new Map(l)) : null);
2168
2168
  }, []);
@@ -2203,7 +2203,7 @@ function er(e, t) {
2203
2203
  r && !n.current && (n.current = e), !r && n.current && (n.current = null);
2204
2204
  }, [e]), n.current ? Nt(e, n.current) : ge;
2205
2205
  }
2206
- function Rs(e) {
2206
+ function Ds(e) {
2207
2207
  A(
2208
2208
  () => {
2209
2209
  if (!Ft)
@@ -2229,7 +2229,7 @@ function Rs(e) {
2229
2229
  })
2230
2230
  );
2231
2231
  }
2232
- function Ds(e, t) {
2232
+ function Es(e, t) {
2233
2233
  return N(() => e.reduce((n, r) => {
2234
2234
  let {
2235
2235
  eventName: o,
@@ -2241,12 +2241,12 @@ function Ds(e, t) {
2241
2241
  }, {}), [e, t]);
2242
2242
  }
2243
2243
  function Or(e) {
2244
- return N(() => e ? qo(e) : null, [e]);
2244
+ return N(() => e ? Ko(e) : null, [e]);
2245
2245
  }
2246
2246
  const tr = [];
2247
- function Es(e, t) {
2247
+ function js(e, t) {
2248
2248
  t === void 0 && (t = Ze);
2249
- const [n] = e, r = Or(n ? te(n) : null), [o, s] = Q(tr);
2249
+ const [n] = e, r = Or(n ? te(n) : null), [o, s] = K(tr);
2250
2250
  function i() {
2251
2251
  s(() => e.length ? e.map((c) => Cr(c) ? r : new xn(t(c), c)) : tr);
2252
2252
  }
@@ -2257,7 +2257,7 @@ function Es(e, t) {
2257
2257
  l?.disconnect(), i(), e.forEach((c) => l?.observe(c));
2258
2258
  }, [e]), o;
2259
2259
  }
2260
- function js(e) {
2260
+ function _s(e) {
2261
2261
  if (!e)
2262
2262
  return null;
2263
2263
  if (e.children.length > 1)
@@ -2265,30 +2265,30 @@ function js(e) {
2265
2265
  const t = e.children[0];
2266
2266
  return bt(t) ? t : e;
2267
2267
  }
2268
- function _s(e) {
2268
+ function Os(e) {
2269
2269
  let {
2270
2270
  measure: t
2271
2271
  } = e;
2272
- const [n, r] = Q(null), o = K((u) => {
2272
+ const [n, r] = K(null), o = J((u) => {
2273
2273
  for (const {
2274
- target: h
2274
+ target: f
2275
2275
  } of u)
2276
- if (bt(h)) {
2277
- r((f) => {
2278
- const v = t(h);
2279
- return f ? {
2280
- ...f,
2281
- width: v.width,
2282
- height: v.height
2283
- } : v;
2276
+ if (bt(f)) {
2277
+ r((h) => {
2278
+ const m = t(f);
2279
+ return h ? {
2280
+ ...h,
2281
+ width: m.width,
2282
+ height: m.height
2283
+ } : m;
2284
2284
  });
2285
2285
  break;
2286
2286
  }
2287
2287
  }, [t]), s = Vt({
2288
2288
  callback: o
2289
- }), i = K((u) => {
2290
- const h = js(u);
2291
- s?.disconnect(), h && s?.observe(h), r(h ? t(h) : null);
2289
+ }), i = J((u) => {
2290
+ const f = _s(u);
2291
+ s?.disconnect(), f && s?.observe(f), r(f ? t(f) : null);
2292
2292
  }, [t, s]), [l, c] = kt(i);
2293
2293
  return N(() => ({
2294
2294
  nodeRef: l,
@@ -2296,13 +2296,13 @@ function _s(e) {
2296
2296
  setRef: c
2297
2297
  }), [n, l, c]);
2298
2298
  }
2299
- const Os = [{
2299
+ const Ts = [{
2300
2300
  sensor: wn,
2301
2301
  options: {}
2302
2302
  }, {
2303
2303
  sensor: jr,
2304
2304
  options: {}
2305
- }], Ts = {
2305
+ }], Is = {
2306
2306
  current: {}
2307
2307
  }, Tt = {
2308
2308
  draggable: {
@@ -2338,7 +2338,7 @@ class ut extends Map {
2338
2338
  return (n = (r = this.get(t)) == null ? void 0 : r.node.current) != null ? n : void 0;
2339
2339
  }
2340
2340
  }
2341
- const Is = {
2341
+ const As = {
2342
2342
  activatorEvent: null,
2343
2343
  active: null,
2344
2344
  activeNode: null,
@@ -2362,7 +2362,7 @@ const Is = {
2362
2362
  measureDroppableContainers: Mt,
2363
2363
  windowRect: null,
2364
2364
  measuringScheduled: !1
2365
- }, As = {
2365
+ }, ks = {
2366
2366
  activatorEvent: null,
2367
2367
  activators: [],
2368
2368
  active: null,
@@ -2374,8 +2374,8 @@ const Is = {
2374
2374
  draggableNodes: /* @__PURE__ */ new Map(),
2375
2375
  over: null,
2376
2376
  measureDroppableContainers: Mt
2377
- }, Yt = /* @__PURE__ */ ht(As), Tr = /* @__PURE__ */ ht(Is);
2378
- function ks() {
2377
+ }, Yt = /* @__PURE__ */ ht(ks), Tr = /* @__PURE__ */ ht(As);
2378
+ function Ns() {
2379
2379
  return {
2380
2380
  draggable: {
2381
2381
  active: null,
@@ -2394,7 +2394,7 @@ function ks() {
2394
2394
  }
2395
2395
  };
2396
2396
  }
2397
- function Ns(e, t) {
2397
+ function Ms(e, t) {
2398
2398
  switch (t.type) {
2399
2399
  case Y.DragStart:
2400
2400
  return {
@@ -2487,7 +2487,7 @@ function Ns(e, t) {
2487
2487
  return e;
2488
2488
  }
2489
2489
  }
2490
- function Ms(e) {
2490
+ function Ls(e) {
2491
2491
  let {
2492
2492
  disabled: t
2493
2493
  } = e;
@@ -2510,12 +2510,12 @@ function Ms(e) {
2510
2510
  if (!c.current && !u.current)
2511
2511
  return;
2512
2512
  requestAnimationFrame(() => {
2513
- for (const h of [c.current, u.current]) {
2514
- if (!h)
2513
+ for (const f of [c.current, u.current]) {
2514
+ if (!f)
2515
2515
  continue;
2516
- const f = Do(h);
2517
- if (f) {
2518
- f.focus();
2516
+ const h = Eo(f);
2517
+ if (h) {
2518
+ h.focus();
2519
2519
  break;
2520
2520
  }
2521
2521
  }
@@ -2523,7 +2523,7 @@ function Ms(e) {
2523
2523
  }
2524
2524
  }, [r, t, o, i, s]), null;
2525
2525
  }
2526
- function Ls(e, t) {
2526
+ function $s(e, t) {
2527
2527
  let {
2528
2528
  transform: n,
2529
2529
  ...r
@@ -2533,7 +2533,7 @@ function Ls(e, t) {
2533
2533
  ...r
2534
2534
  }), n) : n;
2535
2535
  }
2536
- function $s(e) {
2536
+ function Ps(e) {
2537
2537
  return N(
2538
2538
  () => ({
2539
2539
  draggable: {
@@ -2553,7 +2553,7 @@ function $s(e) {
2553
2553
  [e?.draggable, e?.droppable, e?.dragOverlay]
2554
2554
  );
2555
2555
  }
2556
- function Ps(e) {
2556
+ function zs(e) {
2557
2557
  let {
2558
2558
  activeNode: t,
2559
2559
  measure: n,
@@ -2577,12 +2577,12 @@ function Ps(e) {
2577
2577
  const u = t?.node.current;
2578
2578
  if (!u || u.isConnected === !1)
2579
2579
  return;
2580
- const h = n(u), f = xr(h, r);
2581
- if (i || (f.x = 0), l || (f.y = 0), s.current = !0, Math.abs(f.x) > 0 || Math.abs(f.y) > 0) {
2582
- const v = yr(u);
2583
- v && v.scrollBy({
2584
- top: f.y,
2585
- left: f.x
2580
+ const f = n(u), h = xr(f, r);
2581
+ if (i || (h.x = 0), l || (h.y = 0), s.current = !0, Math.abs(h.x) > 0 || Math.abs(h.y) > 0) {
2582
+ const m = yr(u);
2583
+ m && m.scrollBy({
2584
+ top: h.y,
2585
+ left: h.x
2586
2586
  });
2587
2587
  }
2588
2588
  }, [t, i, l, r, n]);
@@ -2596,20 +2596,20 @@ var Me;
2596
2596
  (function(e) {
2597
2597
  e[e.Uninitialized = 0] = "Uninitialized", e[e.Initializing = 1] = "Initializing", e[e.Initialized = 2] = "Initialized";
2598
2598
  })(Me || (Me = {}));
2599
- const Ar = /* @__PURE__ */ Qr(function(t) {
2599
+ const Ar = /* @__PURE__ */ eo(function(t) {
2600
2600
  var n, r, o, s;
2601
2601
  let {
2602
2602
  id: i,
2603
2603
  accessibility: l,
2604
2604
  autoScroll: c = !0,
2605
2605
  children: u,
2606
- sensors: h = Os,
2607
- collisionDetection: f = Yo,
2608
- measuring: v,
2609
- modifiers: d,
2610
- ...b
2606
+ sensors: f = Ts,
2607
+ collisionDetection: h = Ho,
2608
+ measuring: m,
2609
+ modifiers: g,
2610
+ ...v
2611
2611
  } = t;
2612
- const g = eo(Ns, void 0, ks), [m, x] = g, [w, S] = Io(), [D, j] = Q(Me.Uninitialized), R = D === Me.Initialized, {
2612
+ const d = to(Ms, void 0, Ns), [b, x] = d, [w, S] = Ao(), [C, j] = K(Me.Uninitialized), D = C === Me.Initialized, {
2613
2613
  draggable: {
2614
2614
  active: E,
2615
2615
  nodes: _,
@@ -2618,7 +2618,7 @@ const Ar = /* @__PURE__ */ Qr(function(t) {
2618
2618
  droppable: {
2619
2619
  containers: F
2620
2620
  }
2621
- } = m, L = E != null ? _.get(E) : null, J = M({
2621
+ } = b, L = E != null ? _.get(E) : null, Z = M({
2622
2622
  initial: null,
2623
2623
  translated: null
2624
2624
  }), ee = N(() => {
@@ -2626,25 +2626,25 @@ const Ar = /* @__PURE__ */ Qr(function(t) {
2626
2626
  return E != null ? {
2627
2627
  id: E,
2628
2628
  // It's possible for the active node to unmount while dragging
2629
- data: (q = L?.data) != null ? q : Ts,
2630
- rect: J
2629
+ data: (q = L?.data) != null ? q : Is,
2630
+ rect: Z
2631
2631
  } : null;
2632
- }, [E, L]), ae = M(null), [Re, $e] = Q(null), [G, Pe] = Q(null), le = dt(b, Object.values(b)), Oe = xt("DndDescribedBy", i), p = N(() => F.getEnabled(), [F]), C = $s(v), {
2632
+ }, [E, L]), le = M(null), [Re, $e] = K(null), [G, Pe] = K(null), ce = dt(v, Object.values(v)), Oe = xt("DndDescribedBy", i), p = N(() => F.getEnabled(), [F]), R = Ps(m), {
2633
2633
  droppableRects: O,
2634
2634
  measureDroppableContainers: k,
2635
2635
  measuringScheduled: ve
2636
- } = bs(p, {
2637
- dragging: R,
2636
+ } = ms(p, {
2637
+ dragging: D,
2638
2638
  dependencies: [$.x, $.y],
2639
- config: C.droppable
2640
- }), X = ps(_, E), P = N(() => G ? cn(G) : null, [G]), Z = Jr(), re = ms(X, C.draggable.measure);
2641
- Ps({
2639
+ config: R.droppable
2640
+ }), X = vs(_, E), P = N(() => G ? cn(G) : null, [G]), Q = Zr(), re = xs(X, R.draggable.measure);
2641
+ zs({
2642
2642
  activeNode: E != null ? _.get(E) : null,
2643
- config: Z.layoutShiftCompensation,
2643
+ config: Q.layoutShiftCompensation,
2644
2644
  initialRect: re,
2645
- measure: C.draggable.measure
2645
+ measure: R.draggable.measure
2646
2646
  });
2647
- const I = Zn(X, C.draggable.measure, re), Qe = Zn(X ? X.parentElement : null), be = M({
2647
+ const I = Zn(X, R.draggable.measure, re), Qe = Zn(X ? X.parentElement : null), be = M({
2648
2648
  activatorEvent: null,
2649
2649
  active: null,
2650
2650
  activeNode: X,
@@ -2658,9 +2658,9 @@ const Ar = /* @__PURE__ */ Qr(function(t) {
2658
2658
  over: null,
2659
2659
  scrollableAncestors: [],
2660
2660
  scrollAdjustedTranslate: null
2661
- }), Ve = F.getNodeFor((n = be.current.over) == null ? void 0 : n.id), De = _s({
2662
- measure: C.dragOverlay.measure
2663
- }), Ye = (r = De.nodeRef.current) != null ? r : X, He = R ? (o = De.rect) != null ? o : I : null, Rn = !!(De.nodeRef.current && De.rect), Dn = ws(Rn ? null : I), Bt = Or(Ye ? te(Ye) : null), Te = Ss(R ? Ve ?? X : null), yt = Es(Te), wt = Ls(d, {
2661
+ }), Ve = F.getNodeFor((n = be.current.over) == null ? void 0 : n.id), De = Os({
2662
+ measure: R.dragOverlay.measure
2663
+ }), Ye = (r = De.nodeRef.current) != null ? r : X, He = D ? (o = De.rect) != null ? o : I : null, Rn = !!(De.nodeRef.current && De.rect), Dn = Ss(Rn ? null : I), Bt = Or(Ye ? te(Ye) : null), Te = Cs(D ? Ve ?? X : null), yt = js(Te), wt = $s(g, {
2664
2664
  transform: {
2665
2665
  x: $.x - Dn.x,
2666
2666
  y: $.y - Dn.y,
@@ -2677,26 +2677,26 @@ const Ar = /* @__PURE__ */ Qr(function(t) {
2677
2677
  scrollableAncestors: Te,
2678
2678
  scrollableAncestorRects: yt,
2679
2679
  windowRect: Bt
2680
- }), En = P ? Xe(P, $) : null, jn = Cs(Te), Br = er(jn), Wr = er(jn, [I]), Be = Xe(wt, Br), We = He ? Wo(He, wt) : null, et = ee && We ? f({
2680
+ }), En = P ? Xe(P, $) : null, jn = Rs(Te), Wr = er(jn), Ur = er(jn, [I]), Be = Xe(wt, Wr), We = He ? Uo(He, wt) : null, et = ee && We ? h({
2681
2681
  active: ee,
2682
2682
  collisionRect: We,
2683
2683
  droppableRects: O,
2684
2684
  droppableContainers: p,
2685
2685
  pointerCoordinates: En
2686
- }) : null, _n = Fo(et, "id"), [Ie, On] = Q(null), Ur = Rn ? wt : Xe(wt, Wr), Gr = Ho(Ur, (s = Ie?.rect) != null ? s : null, I), Wt = M(null), Tn = K(
2686
+ }) : null, _n = Vo(et, "id"), [Ie, On] = K(null), Gr = Rn ? wt : Xe(wt, Ur), Xr = Bo(Gr, (s = Ie?.rect) != null ? s : null, I), Wt = M(null), Tn = J(
2687
2687
  (q, oe) => {
2688
2688
  let {
2689
2689
  sensor: se,
2690
2690
  options: Ae
2691
2691
  } = oe;
2692
- if (ae.current == null)
2692
+ if (le.current == null)
2693
2693
  return;
2694
- const ce = _.get(ae.current);
2695
- if (!ce)
2694
+ const ue = _.get(le.current);
2695
+ if (!ue)
2696
2696
  return;
2697
2697
  const ie = q.nativeEvent, me = new se({
2698
- active: ae.current,
2699
- activeNode: ce,
2698
+ active: le.current,
2699
+ activeNode: ue,
2700
2700
  event: ie,
2701
2701
  options: Ae,
2702
2702
  // Sensors need to be instantiated with refs for arguments that change over time
@@ -2707,7 +2707,7 @@ const Ar = /* @__PURE__ */ Qr(function(t) {
2707
2707
  return;
2708
2708
  const {
2709
2709
  onDragAbort: xe
2710
- } = le.current, Ee = {
2710
+ } = ce.current, Ee = {
2711
2711
  id: W
2712
2712
  };
2713
2713
  xe?.(Ee), w({
@@ -2720,7 +2720,7 @@ const Ar = /* @__PURE__ */ Qr(function(t) {
2720
2720
  return;
2721
2721
  const {
2722
2722
  onDragPending: nt
2723
- } = le.current, Ne = {
2723
+ } = ce.current, Ne = {
2724
2724
  id: W,
2725
2725
  constraint: ke,
2726
2726
  initialCoordinates: xe,
@@ -2732,7 +2732,7 @@ const Ar = /* @__PURE__ */ Qr(function(t) {
2732
2732
  });
2733
2733
  },
2734
2734
  onStart(W) {
2735
- const ke = ae.current;
2735
+ const ke = le.current;
2736
2736
  if (ke == null)
2737
2737
  return;
2738
2738
  const xe = _.get(ke);
@@ -2740,12 +2740,12 @@ const Ar = /* @__PURE__ */ Qr(function(t) {
2740
2740
  return;
2741
2741
  const {
2742
2742
  onDragStart: Ee
2743
- } = le.current, tt = {
2743
+ } = ce.current, tt = {
2744
2744
  activatorEvent: ie,
2745
2745
  active: {
2746
2746
  id: ke,
2747
2747
  data: xe.data,
2748
- rect: J
2748
+ rect: Z
2749
2749
  }
2750
2750
  };
2751
2751
  St(() => {
@@ -2781,7 +2781,7 @@ const Ar = /* @__PURE__ */ Qr(function(t) {
2781
2781
  if (xe && nt) {
2782
2782
  const {
2783
2783
  cancelDrop: rt
2784
- } = le.current;
2784
+ } = ce.current;
2785
2785
  Ne = {
2786
2786
  activatorEvent: ie,
2787
2787
  active: xe,
@@ -2790,13 +2790,13 @@ const Ar = /* @__PURE__ */ Qr(function(t) {
2790
2790
  over: tt
2791
2791
  }, W === Y.DragEnd && typeof rt == "function" && await Promise.resolve(rt(Ne)) && (W = Y.DragCancel);
2792
2792
  }
2793
- ae.current = null, St(() => {
2793
+ le.current = null, St(() => {
2794
2794
  x({
2795
2795
  type: W
2796
2796
  }), j(Me.Uninitialized), On(null), $e(null), Pe(null), Wt.current = null;
2797
2797
  const rt = W === Y.DragEnd ? "onDragEnd" : "onDragCancel";
2798
2798
  if (Ne) {
2799
- const Ut = le.current[rt];
2799
+ const Ut = ce.current[rt];
2800
2800
  Ut?.(Ne), w({
2801
2801
  type: rt,
2802
2802
  event: Ne
@@ -2808,33 +2808,33 @@ const Ar = /* @__PURE__ */ Qr(function(t) {
2808
2808
  },
2809
2809
  // eslint-disable-next-line react-hooks/exhaustive-deps
2810
2810
  [_]
2811
- ), Xr = K((q, oe) => (se, Ae) => {
2812
- const ce = se.nativeEvent, ie = _.get(Ae);
2811
+ ), qr = J((q, oe) => (se, Ae) => {
2812
+ const ue = se.nativeEvent, ie = _.get(Ae);
2813
2813
  if (
2814
2814
  // Another sensor is already instantiating
2815
- ae.current !== null || // No active draggable
2815
+ le.current !== null || // No active draggable
2816
2816
  !ie || // Event has already been captured
2817
- ce.dndKit || ce.defaultPrevented
2817
+ ue.dndKit || ue.defaultPrevented
2818
2818
  )
2819
2819
  return;
2820
2820
  const me = {
2821
2821
  active: ie
2822
2822
  };
2823
- q(se, oe.options, me) === !0 && (ce.dndKit = {
2823
+ q(se, oe.options, me) === !0 && (ue.dndKit = {
2824
2824
  capturedBy: oe.sensor
2825
- }, ae.current = Ae, Tn(se, oe));
2826
- }, [_, Tn]), In = vs(h, Xr);
2827
- Rs(h), we(() => {
2828
- I && D === Me.Initializing && j(Me.Initialized);
2829
- }, [I, D]), A(
2825
+ }, le.current = Ae, Tn(se, oe));
2826
+ }, [_, Tn]), In = bs(f, qr);
2827
+ Ds(f), we(() => {
2828
+ I && C === Me.Initializing && j(Me.Initialized);
2829
+ }, [I, C]), A(
2830
2830
  () => {
2831
2831
  const {
2832
2832
  onDragMove: q
2833
- } = le.current, {
2833
+ } = ce.current, {
2834
2834
  active: oe,
2835
2835
  activatorEvent: se,
2836
2836
  collisions: Ae,
2837
- over: ce
2837
+ over: ue
2838
2838
  } = be.current;
2839
2839
  if (!oe || !se)
2840
2840
  return;
@@ -2846,7 +2846,7 @@ const Ar = /* @__PURE__ */ Qr(function(t) {
2846
2846
  x: Be.x,
2847
2847
  y: Be.y
2848
2848
  },
2849
- over: ce
2849
+ over: ue
2850
2850
  };
2851
2851
  St(() => {
2852
2852
  q?.(ie), w({
@@ -2864,13 +2864,13 @@ const Ar = /* @__PURE__ */ Qr(function(t) {
2864
2864
  activatorEvent: oe,
2865
2865
  collisions: se,
2866
2866
  droppableContainers: Ae,
2867
- scrollAdjustedTranslate: ce
2867
+ scrollAdjustedTranslate: ue
2868
2868
  } = be.current;
2869
- if (!q || ae.current == null || !oe || !ce)
2869
+ if (!q || le.current == null || !oe || !ue)
2870
2870
  return;
2871
2871
  const {
2872
2872
  onDragOver: ie
2873
- } = le.current, me = Ae.get(_n), Ue = me && me.rect.current ? {
2873
+ } = ce.current, me = Ae.get(_n), Ue = me && me.rect.current ? {
2874
2874
  id: me.id,
2875
2875
  rect: me.rect.current,
2876
2876
  data: me.data,
@@ -2880,8 +2880,8 @@ const Ar = /* @__PURE__ */ Qr(function(t) {
2880
2880
  activatorEvent: oe,
2881
2881
  collisions: se,
2882
2882
  delta: {
2883
- x: ce.x,
2884
- y: ce.y
2883
+ x: ue.x,
2884
+ y: ue.y
2885
2885
  },
2886
2886
  over: Ue
2887
2887
  };
@@ -2909,19 +2909,19 @@ const Ar = /* @__PURE__ */ Qr(function(t) {
2909
2909
  over: Ie,
2910
2910
  scrollableAncestors: Te,
2911
2911
  scrollAdjustedTranslate: Be
2912
- }, J.current = {
2912
+ }, Z.current = {
2913
2913
  initial: He,
2914
2914
  translated: We
2915
2915
  };
2916
- }, [ee, X, et, We, _, Ye, He, O, F, Ie, Te, Be]), fs({
2917
- ...Z,
2916
+ }, [ee, X, et, We, _, Ye, He, O, F, Ie, Te, Be]), hs({
2917
+ ...Q,
2918
2918
  delta: $,
2919
2919
  draggingRect: We,
2920
2920
  pointerCoordinates: En,
2921
2921
  scrollableAncestors: Te,
2922
2922
  scrollableAncestorRects: yt
2923
2923
  });
2924
- const qr = N(() => ({
2924
+ const Kr = N(() => ({
2925
2925
  active: ee,
2926
2926
  activeNode: X,
2927
2927
  activeNodeRect: I,
@@ -2936,10 +2936,10 @@ const Ar = /* @__PURE__ */ Qr(function(t) {
2936
2936
  measureDroppableContainers: k,
2937
2937
  scrollableAncestors: Te,
2938
2938
  scrollableAncestorRects: yt,
2939
- measuringConfiguration: C,
2939
+ measuringConfiguration: R,
2940
2940
  measuringScheduled: ve,
2941
2941
  windowRect: Bt
2942
- }), [ee, X, I, G, et, Qe, De, _, F, O, Ie, k, Te, yt, C, ve, Bt]), Kr = N(() => ({
2942
+ }), [ee, X, I, G, et, Qe, De, _, F, O, Ie, k, Te, yt, R, ve, Bt]), Jr = N(() => ({
2943
2943
  activatorEvent: G,
2944
2944
  activators: In,
2945
2945
  active: ee,
@@ -2955,19 +2955,19 @@ const Ar = /* @__PURE__ */ Qr(function(t) {
2955
2955
  return H.createElement(br.Provider, {
2956
2956
  value: S
2957
2957
  }, H.createElement(Yt.Provider, {
2958
- value: Kr
2958
+ value: Jr
2959
2959
  }, H.createElement(Tr.Provider, {
2960
- value: qr
2960
+ value: Kr
2961
2961
  }, H.createElement(Ir.Provider, {
2962
- value: Gr
2963
- }, u)), H.createElement(Ms, {
2962
+ value: Xr
2963
+ }, u)), H.createElement(Ls, {
2964
2964
  disabled: l?.restoreFocus === !1
2965
- })), H.createElement(No, {
2965
+ })), H.createElement(Mo, {
2966
2966
  ...l,
2967
2967
  hiddenTextDescribedById: Oe
2968
2968
  }));
2969
- function Jr() {
2970
- const q = Re?.autoScrollEnabled === !1, oe = typeof c == "object" ? c.enabled === !1 : c === !1, se = R && !q && !oe;
2969
+ function Zr() {
2970
+ const q = Re?.autoScrollEnabled === !1, oe = typeof c == "object" ? c.enabled === !1 : c === !1, se = D && !q && !oe;
2971
2971
  return typeof c == "object" ? {
2972
2972
  ...c,
2973
2973
  enabled: se
@@ -2975,110 +2975,110 @@ const Ar = /* @__PURE__ */ Qr(function(t) {
2975
2975
  enabled: se
2976
2976
  };
2977
2977
  }
2978
- }), zs = /* @__PURE__ */ ht(null), nr = "button", Fs = "Draggable";
2979
- function Vs(e) {
2978
+ }), Fs = /* @__PURE__ */ ht(null), nr = "button", Vs = "Draggable";
2979
+ function Ys(e) {
2980
2980
  let {
2981
2981
  id: t,
2982
2982
  data: n,
2983
2983
  disabled: r = !1,
2984
2984
  attributes: o
2985
2985
  } = e;
2986
- const s = xt(Fs), {
2986
+ const s = xt(Vs), {
2987
2987
  activators: i,
2988
2988
  activatorEvent: l,
2989
2989
  active: c,
2990
2990
  activeNodeRect: u,
2991
- ariaDescribedById: h,
2992
- draggableNodes: f,
2993
- over: v
2991
+ ariaDescribedById: f,
2992
+ draggableNodes: h,
2993
+ over: m
2994
2994
  } = ze(Yt), {
2995
- role: d = nr,
2996
- roleDescription: b = "draggable",
2997
- tabIndex: g = 0
2998
- } = o ?? {}, m = c?.id === t, x = ze(m ? Ir : zs), [w, S] = kt(), [D, j] = kt(), R = Ds(i, t), E = dt(n);
2995
+ role: g = nr,
2996
+ roleDescription: v = "draggable",
2997
+ tabIndex: d = 0
2998
+ } = o ?? {}, b = c?.id === t, x = ze(b ? Ir : Fs), [w, S] = kt(), [C, j] = kt(), D = Es(i, t), E = dt(n);
2999
2999
  we(
3000
- () => (f.set(t, {
3000
+ () => (h.set(t, {
3001
3001
  id: t,
3002
3002
  key: s,
3003
3003
  node: w,
3004
- activatorNode: D,
3004
+ activatorNode: C,
3005
3005
  data: E
3006
3006
  }), () => {
3007
- const $ = f.get(t);
3008
- $ && $.key === s && f.delete(t);
3007
+ const $ = h.get(t);
3008
+ $ && $.key === s && h.delete(t);
3009
3009
  }),
3010
3010
  // eslint-disable-next-line react-hooks/exhaustive-deps
3011
- [f, t]
3011
+ [h, t]
3012
3012
  );
3013
3013
  const _ = N(() => ({
3014
- role: d,
3015
- tabIndex: g,
3014
+ role: g,
3015
+ tabIndex: d,
3016
3016
  "aria-disabled": r,
3017
- "aria-pressed": m && d === nr ? !0 : void 0,
3018
- "aria-roledescription": b,
3019
- "aria-describedby": h.draggable
3020
- }), [r, d, g, m, b, h.draggable]);
3017
+ "aria-pressed": b && g === nr ? !0 : void 0,
3018
+ "aria-roledescription": v,
3019
+ "aria-describedby": f.draggable
3020
+ }), [r, g, d, b, v, f.draggable]);
3021
3021
  return {
3022
3022
  active: c,
3023
3023
  activatorEvent: l,
3024
3024
  activeNodeRect: u,
3025
3025
  attributes: _,
3026
- isDragging: m,
3027
- listeners: r ? void 0 : R,
3026
+ isDragging: b,
3027
+ listeners: r ? void 0 : D,
3028
3028
  node: w,
3029
- over: v,
3029
+ over: m,
3030
3030
  setNodeRef: S,
3031
3031
  setActivatorNodeRef: j,
3032
3032
  transform: x
3033
3033
  };
3034
3034
  }
3035
- function Ys() {
3035
+ function Hs() {
3036
3036
  return ze(Tr);
3037
3037
  }
3038
- const Hs = "Droppable", Bs = {
3038
+ const Bs = "Droppable", Ws = {
3039
3039
  timeout: 25
3040
3040
  };
3041
- function Ws(e) {
3041
+ function Us(e) {
3042
3042
  let {
3043
3043
  data: t,
3044
3044
  disabled: n = !1,
3045
3045
  id: r,
3046
3046
  resizeObserverConfig: o
3047
3047
  } = e;
3048
- const s = xt(Hs), {
3048
+ const s = xt(Bs), {
3049
3049
  active: i,
3050
3050
  dispatch: l,
3051
3051
  over: c,
3052
3052
  measureDroppableContainers: u
3053
- } = ze(Yt), h = M({
3053
+ } = ze(Yt), f = M({
3054
3054
  disabled: n
3055
- }), f = M(!1), v = M(null), d = M(null), {
3056
- disabled: b,
3057
- updateMeasurementsFor: g,
3058
- timeout: m
3055
+ }), h = M(!1), m = M(null), g = M(null), {
3056
+ disabled: v,
3057
+ updateMeasurementsFor: d,
3058
+ timeout: b
3059
3059
  } = {
3060
- ...Bs,
3060
+ ...Ws,
3061
3061
  ...o
3062
- }, x = dt(g ?? r), w = K(
3062
+ }, x = dt(d ?? r), w = J(
3063
3063
  () => {
3064
- if (!f.current) {
3065
- f.current = !0;
3064
+ if (!h.current) {
3065
+ h.current = !0;
3066
3066
  return;
3067
3067
  }
3068
- d.current != null && clearTimeout(d.current), d.current = setTimeout(() => {
3069
- u(Array.isArray(x.current) ? x.current : [x.current]), d.current = null;
3070
- }, m);
3068
+ g.current != null && clearTimeout(g.current), g.current = setTimeout(() => {
3069
+ u(Array.isArray(x.current) ? x.current : [x.current]), g.current = null;
3070
+ }, b);
3071
3071
  },
3072
3072
  //eslint-disable-next-line react-hooks/exhaustive-deps
3073
- [m]
3073
+ [b]
3074
3074
  ), S = Vt({
3075
3075
  callback: w,
3076
- disabled: b || !i
3077
- }), D = K((_, $) => {
3078
- S && ($ && (S.unobserve($), f.current = !1), _ && S.observe(_));
3079
- }, [S]), [j, R] = kt(D), E = dt(t);
3076
+ disabled: v || !i
3077
+ }), C = J((_, $) => {
3078
+ S && ($ && (S.unobserve($), h.current = !1), _ && S.observe(_));
3079
+ }, [S]), [j, D] = kt(C), E = dt(t);
3080
3080
  return A(() => {
3081
- !S || !j.current || (S.disconnect(), f.current = !1, S.observe(j.current));
3081
+ !S || !j.current || (S.disconnect(), h.current = !1, S.observe(j.current));
3082
3082
  }, [j, S]), A(
3083
3083
  () => (l({
3084
3084
  type: Y.RegisterDroppable,
@@ -3087,7 +3087,7 @@ function Ws(e) {
3087
3087
  key: s,
3088
3088
  disabled: n,
3089
3089
  node: j,
3090
- rect: v,
3090
+ rect: m,
3091
3091
  data: E
3092
3092
  }
3093
3093
  }), () => l({
@@ -3098,26 +3098,26 @@ function Ws(e) {
3098
3098
  // eslint-disable-next-line react-hooks/exhaustive-deps
3099
3099
  [r]
3100
3100
  ), A(() => {
3101
- n !== h.current.disabled && (l({
3101
+ n !== f.current.disabled && (l({
3102
3102
  type: Y.SetDroppableDisabled,
3103
3103
  id: r,
3104
3104
  key: s,
3105
3105
  disabled: n
3106
- }), h.current.disabled = n);
3106
+ }), f.current.disabled = n);
3107
3107
  }, [r, s, n, l]), {
3108
3108
  active: i,
3109
- rect: v,
3109
+ rect: m,
3110
3110
  isOver: c?.id === r,
3111
3111
  node: j,
3112
3112
  over: c,
3113
- setNodeRef: R
3113
+ setNodeRef: D
3114
3114
  };
3115
3115
  }
3116
3116
  function Ht(e, t, n) {
3117
3117
  const r = e.slice();
3118
3118
  return r.splice(n < 0 ? r.length + n : n, 0, r.splice(t, 1)[0]), r;
3119
3119
  }
3120
- function Us(e, t) {
3120
+ function Gs(e, t) {
3121
3121
  return e.reduce((n, r, o) => {
3122
3122
  const s = t.get(r);
3123
3123
  return s && (n[o] = s), n;
@@ -3126,7 +3126,7 @@ function Us(e, t) {
3126
3126
  function jt(e) {
3127
3127
  return e !== null && e >= 0;
3128
3128
  }
3129
- function Gs(e, t) {
3129
+ function Xs(e, t) {
3130
3130
  if (e === t)
3131
3131
  return !0;
3132
3132
  if (e.length !== t.length)
@@ -3136,7 +3136,7 @@ function Gs(e, t) {
3136
3136
  return !1;
3137
3137
  return !0;
3138
3138
  }
3139
- function Xs(e) {
3139
+ function qs(e) {
3140
3140
  return typeof e == "boolean" ? {
3141
3141
  draggable: e,
3142
3142
  droppable: e
@@ -3145,7 +3145,7 @@ function Xs(e) {
3145
3145
  const _t = {
3146
3146
  scaleX: 1,
3147
3147
  scaleY: 1
3148
- }, qs = (e) => {
3148
+ }, Ks = (e) => {
3149
3149
  var t;
3150
3150
  let {
3151
3151
  rects: n,
@@ -3157,7 +3157,7 @@ const _t = {
3157
3157
  const l = (t = n[o]) != null ? t : r;
3158
3158
  if (!l)
3159
3159
  return null;
3160
- const c = Ks(n, i, o);
3160
+ const c = Js(n, i, o);
3161
3161
  if (i === o) {
3162
3162
  const u = n[s];
3163
3163
  return u ? {
@@ -3180,7 +3180,7 @@ const _t = {
3180
3180
  ..._t
3181
3181
  };
3182
3182
  };
3183
- function Ks(e, t, n) {
3183
+ function Js(e, t, n) {
3184
3184
  const r = e[t], o = e[t - 1], s = e[t + 1];
3185
3185
  return !r || !o && !s ? 0 : n < t ? o ? r.left - (o.left + o.width) : s.left - (r.left + r.width) : s ? s.left - (r.left + r.width) : r.left - (o.left + o.width);
3186
3186
  }
@@ -3201,7 +3201,7 @@ const kr = (e) => {
3201
3201
  }, Ot = {
3202
3202
  scaleX: 1,
3203
3203
  scaleY: 1
3204
- }, Js = (e) => {
3204
+ }, Zs = (e) => {
3205
3205
  var t;
3206
3206
  let {
3207
3207
  activeIndex: n,
@@ -3221,7 +3221,7 @@ const kr = (e) => {
3221
3221
  ...Ot
3222
3222
  } : null;
3223
3223
  }
3224
- const c = Zs(s, o, n);
3224
+ const c = Qs(s, o, n);
3225
3225
  return o > n && o <= i ? {
3226
3226
  x: 0,
3227
3227
  y: -l.height - c,
@@ -3236,7 +3236,7 @@ const kr = (e) => {
3236
3236
  ...Ot
3237
3237
  };
3238
3238
  };
3239
- function Zs(e, t, n) {
3239
+ function Qs(e, t, n) {
3240
3240
  const r = e[t], o = e[t - 1], s = e[t + 1];
3241
3241
  return r ? n < t ? o ? r.top - (o.top + o.height) : s ? s.top - (r.top + r.height) : 0 : s ? s.top - (r.top + r.height) : o ? r.top - (o.top + o.height) : 0 : 0;
3242
3242
  }
@@ -3267,33 +3267,33 @@ function Lr(e) {
3267
3267
  dragOverlay: l,
3268
3268
  droppableRects: c,
3269
3269
  over: u,
3270
- measureDroppableContainers: h
3271
- } = Ys(), f = xt(Nr, n), v = l.rect !== null, d = N(() => r.map((R) => typeof R == "object" && "id" in R ? R.id : R), [r]), b = i != null, g = i ? d.indexOf(i.id) : -1, m = u ? d.indexOf(u.id) : -1, x = M(d), w = !Gs(d, x.current), S = m !== -1 && g === -1 || w, D = Xs(s);
3270
+ measureDroppableContainers: f
3271
+ } = Hs(), h = xt(Nr, n), m = l.rect !== null, g = N(() => r.map((D) => typeof D == "object" && "id" in D ? D.id : D), [r]), v = i != null, d = i ? g.indexOf(i.id) : -1, b = u ? g.indexOf(u.id) : -1, x = M(g), w = !Xs(g, x.current), S = b !== -1 && d === -1 || w, C = qs(s);
3272
3272
  we(() => {
3273
- w && b && h(d);
3274
- }, [w, d, b, h]), A(() => {
3275
- x.current = d;
3276
- }, [d]);
3273
+ w && v && f(g);
3274
+ }, [w, g, v, f]), A(() => {
3275
+ x.current = g;
3276
+ }, [g]);
3277
3277
  const j = N(
3278
3278
  () => ({
3279
- activeIndex: g,
3280
- containerId: f,
3281
- disabled: D,
3279
+ activeIndex: d,
3280
+ containerId: h,
3281
+ disabled: C,
3282
3282
  disableTransforms: S,
3283
- items: d,
3284
- overIndex: m,
3285
- useDragOverlay: v,
3286
- sortedRects: Us(d, c),
3283
+ items: g,
3284
+ overIndex: b,
3285
+ useDragOverlay: m,
3286
+ sortedRects: Gs(g, c),
3287
3287
  strategy: o
3288
3288
  }),
3289
3289
  // eslint-disable-next-line react-hooks/exhaustive-deps
3290
- [g, f, D.draggable, D.droppable, S, d, m, c, v, o]
3290
+ [d, h, C.draggable, C.droppable, S, g, b, c, m, o]
3291
3291
  );
3292
3292
  return H.createElement(Mr.Provider, {
3293
3293
  value: j
3294
3294
  }, t);
3295
3295
  }
3296
- const Qs = (e) => {
3296
+ const ei = (e) => {
3297
3297
  let {
3298
3298
  id: t,
3299
3299
  items: n,
@@ -3301,7 +3301,7 @@ const Qs = (e) => {
3301
3301
  overIndex: o
3302
3302
  } = e;
3303
3303
  return Ht(n, r, o).indexOf(t);
3304
- }, ei = (e) => {
3304
+ }, ti = (e) => {
3305
3305
  let {
3306
3306
  containerId: t,
3307
3307
  isSorting: n,
@@ -3314,37 +3314,37 @@ const Qs = (e) => {
3314
3314
  transition: u
3315
3315
  } = e;
3316
3316
  return !u || !r || l !== s && o === i ? !1 : n ? !0 : i !== o && t === c;
3317
- }, ti = {
3317
+ }, ni = {
3318
3318
  duration: 200,
3319
3319
  easing: "ease"
3320
- }, $r = "transform", ni = /* @__PURE__ */ qe.Transition.toString({
3320
+ }, $r = "transform", ri = /* @__PURE__ */ qe.Transition.toString({
3321
3321
  property: $r,
3322
3322
  duration: 0,
3323
3323
  easing: "linear"
3324
- }), ri = {
3324
+ }), oi = {
3325
3325
  roleDescription: "sortable"
3326
3326
  };
3327
- function oi(e) {
3327
+ function si(e) {
3328
3328
  let {
3329
3329
  disabled: t,
3330
3330
  index: n,
3331
3331
  node: r,
3332
3332
  rect: o
3333
3333
  } = e;
3334
- const [s, i] = Q(null), l = M(n);
3334
+ const [s, i] = K(null), l = M(n);
3335
3335
  return we(() => {
3336
3336
  if (!t && n !== l.current && r.current) {
3337
3337
  const c = o.current;
3338
3338
  if (c) {
3339
3339
  const u = Ze(r.current, {
3340
3340
  ignoreTransform: !0
3341
- }), h = {
3341
+ }), f = {
3342
3342
  x: c.left - u.left,
3343
3343
  y: c.top - u.top,
3344
3344
  scaleX: c.width / u.width,
3345
3345
  scaleY: c.height / u.height
3346
3346
  };
3347
- (h.x || h.y) && i(h);
3347
+ (f.x || f.y) && i(f);
3348
3348
  }
3349
3349
  }
3350
3350
  n !== l.current && (l.current = n);
@@ -3354,103 +3354,103 @@ function oi(e) {
3354
3354
  }
3355
3355
  function Pr(e) {
3356
3356
  let {
3357
- animateLayoutChanges: t = ei,
3357
+ animateLayoutChanges: t = ti,
3358
3358
  attributes: n,
3359
3359
  disabled: r,
3360
3360
  data: o,
3361
- getNewIndex: s = Qs,
3361
+ getNewIndex: s = ei,
3362
3362
  id: i,
3363
3363
  strategy: l,
3364
3364
  resizeObserverConfig: c,
3365
- transition: u = ti
3365
+ transition: u = ni
3366
3366
  } = e;
3367
3367
  const {
3368
- items: h,
3369
- containerId: f,
3370
- activeIndex: v,
3371
- disabled: d,
3372
- disableTransforms: b,
3373
- sortedRects: g,
3374
- overIndex: m,
3368
+ items: f,
3369
+ containerId: h,
3370
+ activeIndex: m,
3371
+ disabled: g,
3372
+ disableTransforms: v,
3373
+ sortedRects: d,
3374
+ overIndex: b,
3375
3375
  useDragOverlay: x,
3376
3376
  strategy: w
3377
- } = ze(Mr), S = si(r, d), D = h.indexOf(i), j = N(() => ({
3377
+ } = ze(Mr), S = ii(r, g), C = f.indexOf(i), j = N(() => ({
3378
3378
  sortable: {
3379
- containerId: f,
3380
- index: D,
3381
- items: h
3379
+ containerId: h,
3380
+ index: C,
3381
+ items: f
3382
3382
  },
3383
3383
  ...o
3384
- }), [f, o, D, h]), R = N(() => h.slice(h.indexOf(i)), [h, i]), {
3384
+ }), [h, o, C, f]), D = N(() => f.slice(f.indexOf(i)), [f, i]), {
3385
3385
  rect: E,
3386
3386
  node: _,
3387
3387
  isOver: $,
3388
3388
  setNodeRef: F
3389
- } = Ws({
3389
+ } = Us({
3390
3390
  id: i,
3391
3391
  data: j,
3392
3392
  disabled: S.droppable,
3393
3393
  resizeObserverConfig: {
3394
- updateMeasurementsFor: R,
3394
+ updateMeasurementsFor: D,
3395
3395
  ...c
3396
3396
  }
3397
3397
  }), {
3398
3398
  active: L,
3399
- activatorEvent: J,
3399
+ activatorEvent: Z,
3400
3400
  activeNodeRect: ee,
3401
- attributes: ae,
3401
+ attributes: le,
3402
3402
  setNodeRef: Re,
3403
3403
  listeners: $e,
3404
3404
  isDragging: G,
3405
3405
  over: Pe,
3406
- setActivatorNodeRef: le,
3406
+ setActivatorNodeRef: ce,
3407
3407
  transform: Oe
3408
- } = Vs({
3408
+ } = Ys({
3409
3409
  id: i,
3410
3410
  data: j,
3411
3411
  attributes: {
3412
- ...ri,
3412
+ ...oi,
3413
3413
  ...n
3414
3414
  },
3415
3415
  disabled: S.draggable
3416
- }), p = wo(F, Re), C = !!L, O = C && !b && jt(v) && jt(m), k = !x && G, ve = k && O ? Oe : null, P = O ? ve ?? (l ?? w)({
3417
- rects: g,
3416
+ }), p = So(F, Re), R = !!L, O = R && !v && jt(m) && jt(b), k = !x && G, ve = k && O ? Oe : null, P = O ? ve ?? (l ?? w)({
3417
+ rects: d,
3418
3418
  activeNodeRect: ee,
3419
- activeIndex: v,
3420
- overIndex: m,
3421
- index: D
3422
- }) : null, Z = jt(v) && jt(m) ? s({
3419
+ activeIndex: m,
3420
+ overIndex: b,
3421
+ index: C
3422
+ }) : null, Q = jt(m) && jt(b) ? s({
3423
3423
  id: i,
3424
- items: h,
3425
- activeIndex: v,
3426
- overIndex: m
3427
- }) : D, re = L?.id, I = M({
3424
+ items: f,
3425
+ activeIndex: m,
3426
+ overIndex: b
3427
+ }) : C, re = L?.id, I = M({
3428
3428
  activeId: re,
3429
- items: h,
3430
- newIndex: Z,
3431
- containerId: f
3432
- }), Qe = h !== I.current.items, be = t({
3429
+ items: f,
3430
+ newIndex: Q,
3431
+ containerId: h
3432
+ }), Qe = f !== I.current.items, be = t({
3433
3433
  active: L,
3434
- containerId: f,
3434
+ containerId: h,
3435
3435
  isDragging: G,
3436
- isSorting: C,
3436
+ isSorting: R,
3437
3437
  id: i,
3438
- index: D,
3439
- items: h,
3438
+ index: C,
3439
+ items: f,
3440
3440
  newIndex: I.current.newIndex,
3441
3441
  previousItems: I.current.items,
3442
3442
  previousContainerId: I.current.containerId,
3443
3443
  transition: u,
3444
3444
  wasDragging: I.current.activeId != null
3445
- }), Ve = oi({
3445
+ }), Ve = si({
3446
3446
  disabled: !be,
3447
- index: D,
3447
+ index: C,
3448
3448
  node: _,
3449
3449
  rect: E
3450
3450
  });
3451
3451
  return A(() => {
3452
- C && I.current.newIndex !== Z && (I.current.newIndex = Z), f !== I.current.containerId && (I.current.containerId = f), h !== I.current.items && (I.current.items = h);
3453
- }, [C, Z, f, h]), A(() => {
3452
+ R && I.current.newIndex !== Q && (I.current.newIndex = Q), h !== I.current.containerId && (I.current.containerId = h), f !== I.current.items && (I.current.items = f);
3453
+ }, [R, Q, h, f]), A(() => {
3454
3454
  if (re === I.current.activeId)
3455
3455
  return;
3456
3456
  if (re != null && I.current.activeId == null) {
@@ -3463,22 +3463,22 @@ function Pr(e) {
3463
3463
  return () => clearTimeout(Ye);
3464
3464
  }, [re]), {
3465
3465
  active: L,
3466
- activeIndex: v,
3467
- attributes: ae,
3466
+ activeIndex: m,
3467
+ attributes: le,
3468
3468
  data: j,
3469
3469
  rect: E,
3470
- index: D,
3471
- newIndex: Z,
3472
- items: h,
3470
+ index: C,
3471
+ newIndex: Q,
3472
+ items: f,
3473
3473
  isOver: $,
3474
- isSorting: C,
3474
+ isSorting: R,
3475
3475
  isDragging: G,
3476
3476
  listeners: $e,
3477
3477
  node: _,
3478
- overIndex: m,
3478
+ overIndex: b,
3479
3479
  over: Pe,
3480
3480
  setNodeRef: p,
3481
- setActivatorNodeRef: le,
3481
+ setActivatorNodeRef: ce,
3482
3482
  setDroppableNodeRef: F,
3483
3483
  setDraggableNodeRef: Re,
3484
3484
  transform: Ve ?? P,
@@ -3488,17 +3488,17 @@ function Pr(e) {
3488
3488
  if (
3489
3489
  // Temporarily disable transitions for a single frame to set up derived transforms
3490
3490
  Ve || // Or to prevent items jumping to back to their "new" position when items change
3491
- Qe && I.current.newIndex === D
3491
+ Qe && I.current.newIndex === C
3492
3492
  )
3493
- return ni;
3494
- if (!(k && !bn(J) || !u) && (C || be))
3493
+ return ri;
3494
+ if (!(k && !bn(Z) || !u) && (R || be))
3495
3495
  return qe.Transition.toString({
3496
3496
  ...u,
3497
3497
  property: $r
3498
3498
  });
3499
3499
  }
3500
3500
  }
3501
- function si(e, t) {
3501
+ function ii(e, t) {
3502
3502
  var n, r;
3503
3503
  return typeof e == "boolean" ? {
3504
3504
  draggable: e,
@@ -3510,18 +3510,18 @@ function si(e, t) {
3510
3510
  };
3511
3511
  }
3512
3512
  T.Down, T.Right, T.Up, T.Left;
3513
- const ii = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), ai = (e) => e.replace(
3513
+ const ai = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), li = (e) => e.replace(
3514
3514
  /^([A-Z])|[\s-_]+(\w)/g,
3515
3515
  (t, n, r) => r ? r.toUpperCase() : n.toLowerCase()
3516
3516
  ), rr = (e) => {
3517
- const t = ai(e);
3517
+ const t = li(e);
3518
3518
  return t.charAt(0).toUpperCase() + t.slice(1);
3519
- }, zr = (...e) => e.filter((t, n, r) => !!t && t.trim() !== "" && r.indexOf(t) === n).join(" ").trim(), li = (e) => {
3519
+ }, zr = (...e) => e.filter((t, n, r) => !!t && t.trim() !== "" && r.indexOf(t) === n).join(" ").trim(), ci = (e) => {
3520
3520
  for (const t in e)
3521
3521
  if (t.startsWith("aria-") || t === "role" || t === "title")
3522
3522
  return !0;
3523
3523
  };
3524
- var ci = {
3524
+ var ui = {
3525
3525
  xmlns: "http://www.w3.org/2000/svg",
3526
3526
  width: 24,
3527
3527
  height: 24,
@@ -3532,7 +3532,7 @@ var ci = {
3532
3532
  strokeLinecap: "round",
3533
3533
  strokeLinejoin: "round"
3534
3534
  };
3535
- const ui = hn(
3535
+ const di = hn(
3536
3536
  ({
3537
3537
  color: e = "currentColor",
3538
3538
  size: t = 24,
@@ -3546,28 +3546,28 @@ const ui = hn(
3546
3546
  "svg",
3547
3547
  {
3548
3548
  ref: c,
3549
- ...ci,
3549
+ ...ui,
3550
3550
  width: t,
3551
3551
  height: t,
3552
3552
  stroke: e,
3553
3553
  strokeWidth: r ? Number(n) * 24 / Number(t) : n,
3554
3554
  className: zr("lucide", o),
3555
- ...!s && !li(l) && { "aria-hidden": "true" },
3555
+ ...!s && !ci(l) && { "aria-hidden": "true" },
3556
3556
  ...l
3557
3557
  },
3558
3558
  [
3559
- ...i.map(([u, h]) => sn(u, h)),
3559
+ ...i.map(([u, f]) => sn(u, f)),
3560
3560
  ...Array.isArray(s) ? s : [s]
3561
3561
  ]
3562
3562
  )
3563
3563
  );
3564
3564
  const ne = (e, t) => {
3565
3565
  const n = hn(
3566
- ({ className: r, ...o }, s) => sn(ui, {
3566
+ ({ className: r, ...o }, s) => sn(di, {
3567
3567
  ref: s,
3568
3568
  iconNode: t,
3569
3569
  className: zr(
3570
- `lucide-${ii(rr(e))}`,
3570
+ `lucide-${ai(rr(e))}`,
3571
3571
  `lucide-${e}`,
3572
3572
  r
3573
3573
  ),
@@ -3576,36 +3576,36 @@ const ne = (e, t) => {
3576
3576
  );
3577
3577
  return n.displayName = rr(e), n;
3578
3578
  };
3579
- const di = [
3579
+ const fi = [
3580
3580
  ["path", { d: "M12 5v14", key: "s699le" }],
3581
3581
  ["path", { d: "m19 12-7 7-7-7", key: "1idqje" }]
3582
- ], fi = ne("arrow-down", di);
3583
- const hi = [
3582
+ ], hi = ne("arrow-down", fi);
3583
+ const gi = [
3584
3584
  ["path", { d: "m21 16-4 4-4-4", key: "f6ql7i" }],
3585
3585
  ["path", { d: "M17 20V4", key: "1ejh1v" }],
3586
3586
  ["path", { d: "m3 8 4-4 4 4", key: "11wl7u" }],
3587
3587
  ["path", { d: "M7 4v16", key: "1glfcx" }]
3588
- ], gi = ne("arrow-up-down", hi);
3589
- const pi = [
3588
+ ], pi = ne("arrow-up-down", gi);
3589
+ const vi = [
3590
3590
  ["path", { d: "m5 12 7-7 7 7", key: "hav0vg" }],
3591
3591
  ["path", { d: "M12 19V5", key: "x0mq9r" }]
3592
- ], vi = ne("arrow-up", pi);
3593
- const bi = [
3592
+ ], bi = ne("arrow-up", vi);
3593
+ const mi = [
3594
3594
  ["path", { d: "m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z", key: "1fy3hk" }]
3595
- ], mi = ne("bookmark", bi);
3596
- const xi = [
3595
+ ], xi = ne("bookmark", mi);
3596
+ const yi = [
3597
3597
  ["path", { d: "M8 2v4", key: "1cmpym" }],
3598
3598
  ["path", { d: "M16 2v4", key: "4m81vk" }],
3599
3599
  ["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
3600
3600
  ["path", { d: "M3 10h18", key: "8toen8" }]
3601
- ], or = ne("calendar", xi);
3602
- const yi = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], wi = ne("chevron-left", yi);
3603
- const Si = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Ci = ne("chevron-right", Si);
3604
- const Ri = [
3601
+ ], or = ne("calendar", yi);
3602
+ const wi = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], Si = ne("chevron-left", wi);
3603
+ const Ci = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Ri = ne("chevron-right", Ci);
3604
+ const Di = [
3605
3605
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
3606
3606
  ["path", { d: "M12 3v18", key: "108xh3" }]
3607
- ], Di = ne("columns-2", Ri);
3608
- const Ei = [
3607
+ ], Ei = ne("columns-2", Di);
3608
+ const ji = [
3609
3609
  [
3610
3610
  "path",
3611
3611
  {
@@ -3615,13 +3615,13 @@ const Ei = [
3615
3615
  ],
3616
3616
  ["path", { d: "m12 9 6 6", key: "anjzzh" }],
3617
3617
  ["path", { d: "m18 9-6 6", key: "1fp51s" }]
3618
- ], ji = ne("delete", Ei);
3619
- const _i = [
3618
+ ], _i = ne("delete", ji);
3619
+ const Oi = [
3620
3620
  ["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
3621
3621
  ["circle", { cx: "19", cy: "12", r: "1", key: "1wjl8i" }],
3622
3622
  ["circle", { cx: "5", cy: "12", r: "1", key: "1pcz8c" }]
3623
- ], Oi = ne("ellipsis", _i);
3624
- const Ti = [
3623
+ ], Ti = ne("ellipsis", Oi);
3624
+ const Ii = [
3625
3625
  [
3626
3626
  "path",
3627
3627
  {
@@ -3629,15 +3629,15 @@ const Ti = [
3629
3629
  key: "sc7q7i"
3630
3630
  }
3631
3631
  ]
3632
- ], Ii = ne("funnel", Ti);
3633
- const Ai = [
3632
+ ], Ai = ne("funnel", Ii);
3633
+ const ki = [
3634
3634
  ["circle", { cx: "9", cy: "12", r: "1", key: "1vctgf" }],
3635
3635
  ["circle", { cx: "9", cy: "5", r: "1", key: "hp0tcf" }],
3636
3636
  ["circle", { cx: "9", cy: "19", r: "1", key: "fkjjf6" }],
3637
3637
  ["circle", { cx: "15", cy: "12", r: "1", key: "1tmaij" }],
3638
3638
  ["circle", { cx: "15", cy: "5", r: "1", key: "19l28e" }],
3639
3639
  ["circle", { cx: "15", cy: "19", r: "1", key: "f4zoj3" }]
3640
- ], ki = ne("grip-vertical", Ai);
3640
+ ], Fr = ne("grip-vertical", ki);
3641
3641
  const Ni = [
3642
3642
  [
3643
3643
  "path",
@@ -3666,9 +3666,9 @@ function y(e) {
3666
3666
  );
3667
3667
  });
3668
3668
  }
3669
- const Fr = (e) => `table_column_order_v1:${e}`, Pi = (e) => {
3669
+ const Vr = (e) => `table_column_order_v1:${e}`, Pi = (e) => {
3670
3670
  const { tableId: t } = fe.state;
3671
- localStorage.setItem(Fr(t), JSON.stringify(e.map((n) => n.id))), fe.setState((n) => ({
3671
+ localStorage.setItem(Vr(t), JSON.stringify(e.map((n) => n.id))), fe.setState((n) => ({
3672
3672
  ...n,
3673
3673
  columnOrder: e
3674
3674
  })), fe.setState((n) => ({ ...n, columnOrder: e }));
@@ -3702,7 +3702,7 @@ function Vi(e, t) {
3702
3702
  const n = e[0] ?? {}, o = (t && t.length ? t : Object.keys(n).map((c) => ({ id: c, label: c }))).filter(
3703
3703
  (c) => Object.prototype.hasOwnProperty.call(n, c.id)
3704
3704
  ), { tableId: s } = fe.state, i = JSON.parse(
3705
- localStorage.getItem(Fr(s)) || "[]"
3705
+ localStorage.getItem(Vr(s)) || "[]"
3706
3706
  ), l = [
3707
3707
  ...i.map((c) => o.find((u) => u.id === c)).filter(Boolean),
3708
3708
  ...o.filter((c) => !i.includes(c.id))
@@ -3711,7 +3711,7 @@ function Vi(e, t) {
3711
3711
  ...c,
3712
3712
  data: e,
3713
3713
  columnOrder: l,
3714
- visibility: l.reduce((u, h) => (u[h.id] = !0, u), {}),
3714
+ visibility: l.reduce((u, f) => (u[f.id] = !0, u), {}),
3715
3715
  sortableColumns: l.map((u) => ({
3716
3716
  id: u.id,
3717
3717
  label: u.label,
@@ -3729,7 +3729,7 @@ const Hi = y(Se.Trigger), Bi = y(Se.Positioner), Wi = y(Se.Content), Ui = y(Se.I
3729
3729
  function Ki({ visibility: e, onToggle: t }) {
3730
3730
  const { sortableColumns: n } = vt(fe);
3731
3731
  return /* @__PURE__ */ a.jsxs(Se.Root, { closeOnSelect: !1, children: [
3732
- /* @__PURE__ */ a.jsx(Hi, { asChild: !0, children: /* @__PURE__ */ a.jsx(_e, { "aria-label": "Toggle columns", variant: "outline", size: "sm", ml: "1", children: /* @__PURE__ */ a.jsx(Di, { size: 18 }) }) }),
3732
+ /* @__PURE__ */ a.jsx(Hi, { asChild: !0, children: /* @__PURE__ */ a.jsx(_e, { "aria-label": "Toggle columns", variant: "outline", size: "sm", ml: "1", children: /* @__PURE__ */ a.jsx(Ei, { size: 18 }) }) }),
3733
3733
  /* @__PURE__ */ a.jsx(gt, { children: /* @__PURE__ */ a.jsx(Bi, { children: /* @__PURE__ */ a.jsx(Wi, { minW: "220px", children: n.map((r) => {
3734
3734
  const o = !!e[r.id];
3735
3735
  return /* @__PURE__ */ a.jsx(Ui, { value: r.id, closeOnSelect: !1, children: /* @__PURE__ */ a.jsxs(pe.Root, { checked: o, onCheckedChange: () => t(r.id), children: [
@@ -3748,7 +3748,7 @@ function Ji({
3748
3748
  borderRight: o,
3749
3749
  borderRightColor: s
3750
3750
  }) {
3751
- const { setNodeRef: i, attributes: l, listeners: c, transform: u, transition: h } = Pr({ id: e });
3751
+ const { setNodeRef: i, attributes: l, listeners: c, transform: u, transition: f } = Pr({ id: e });
3752
3752
  return /* @__PURE__ */ a.jsx(
3753
3753
  ye.ColumnHeader,
3754
3754
  {
@@ -3757,15 +3757,15 @@ function Ji({
3757
3757
  w: e === "id" ? "80px" : void 0,
3758
3758
  style: {
3759
3759
  transform: qe.Transform.toString(u),
3760
- transition: h,
3760
+ transition: f,
3761
3761
  cursor: r,
3762
3762
  borderRight: o,
3763
3763
  borderRightColor: s
3764
3764
  },
3765
3765
  ...l,
3766
- children: /* @__PURE__ */ a.jsxs(de, { justify: "space-between", children: [
3766
+ children: /* @__PURE__ */ a.jsxs(ae, { justify: "space-between", children: [
3767
3767
  t,
3768
- /* @__PURE__ */ a.jsx("span", { ...c, children: /* @__PURE__ */ a.jsx(ki, { size: 12 }) })
3768
+ /* @__PURE__ */ a.jsx("span", { ...c, children: /* @__PURE__ */ a.jsx(Fr, { size: 12 }) })
3769
3769
  ] })
3770
3770
  }
3771
3771
  );
@@ -3774,14 +3774,14 @@ function Zi() {
3774
3774
  const { columnOrder: e, visibility: t, sortColumn: n, sortDirection: r, sortableColumns: o } = vt(fe), s = e.map((l) => o.find((c) => c.id === l.id)).filter((l) => l !== void 0).filter((l) => t[l.id]), i = (l) => {
3775
3775
  const { active: c, over: u } = l;
3776
3776
  if (!u || c.id === u.id) return;
3777
- const h = e.findIndex((d) => d.id === c.id), f = e.findIndex((d) => d.id === u.id), v = Ht(e, h, f);
3778
- Pi(v);
3777
+ const f = e.findIndex((g) => g.id === c.id), h = e.findIndex((g) => g.id === u.id), m = Ht(e, f, h);
3778
+ Pi(m);
3779
3779
  };
3780
3780
  return /* @__PURE__ */ a.jsx(ye.Header, { background: "gray.100", position: "sticky", top: 0, p: "0", children: /* @__PURE__ */ a.jsx(Ar, { collisionDetection: mr, onDragEnd: i, children: /* @__PURE__ */ a.jsx(
3781
3781
  Lr,
3782
3782
  {
3783
3783
  items: e.map((l) => l.id),
3784
- strategy: qs,
3784
+ strategy: Ks,
3785
3785
  children: /* @__PURE__ */ a.jsxs(ye.Row, { height: "28px", children: [
3786
3786
  s.map((l, c) => {
3787
3787
  const u = n === l?.id;
@@ -3803,7 +3803,7 @@ function Zi() {
3803
3803
  },
3804
3804
  children: [
3805
3805
  l?.label,
3806
- l?.sortable && (u ? r === "asc" ? /* @__PURE__ */ a.jsx(vi, { size: 14 }) : /* @__PURE__ */ a.jsx(fi, { size: 14 }) : /* @__PURE__ */ a.jsx(gi, { size: 14, opacity: 0.4 }))
3806
+ l?.sortable && (u ? r === "asc" ? /* @__PURE__ */ a.jsx(bi, { size: 14 }) : /* @__PURE__ */ a.jsx(hi, { size: 14 }) : /* @__PURE__ */ a.jsx(pi, { size: 14, opacity: 0.4 }))
3807
3807
  ]
3808
3808
  }
3809
3809
  )
@@ -3833,8 +3833,8 @@ function ua({
3833
3833
  onPageSizeChange: o,
3834
3834
  siblingCount: s = 2
3835
3835
  }) {
3836
- return /* @__PURE__ */ a.jsx(Ge, { width: "100%", children: /* @__PURE__ */ a.jsxs(de, { justify: "space-between", mx: "auto", flexWrap: "wrap", children: [
3837
- /* @__PURE__ */ a.jsxs(de, { children: [
3836
+ return /* @__PURE__ */ a.jsx(Ge, { width: "100%", children: /* @__PURE__ */ a.jsxs(ae, { justify: "space-between", mx: "auto", flexWrap: "wrap", children: [
3837
+ /* @__PURE__ */ a.jsxs(ae, { children: [
3838
3838
  /* @__PURE__ */ a.jsx(U, { fontSize: "sm", color: "gray.600", _dark: { color: "gray.400" }, children: "Rows per page:" }),
3839
3839
  /* @__PURE__ */ a.jsxs(
3840
3840
  z.Root,
@@ -3866,8 +3866,8 @@ function ua({
3866
3866
  page: n,
3867
3867
  siblingCount: s,
3868
3868
  onPageChange: (i) => r && r(i.page),
3869
- children: /* @__PURE__ */ a.jsxs(to, { size: "sm", variant: "ghost", children: [
3870
- /* @__PURE__ */ a.jsx(na, { asChild: !0, children: /* @__PURE__ */ a.jsx(_e, { "aria-label": "Previous page", children: /* @__PURE__ */ a.jsx(wi, { size: 18 }) }) }),
3869
+ children: /* @__PURE__ */ a.jsxs(no, { size: "sm", variant: "ghost", children: [
3870
+ /* @__PURE__ */ a.jsx(na, { asChild: !0, children: /* @__PURE__ */ a.jsx(_e, { "aria-label": "Previous page", children: /* @__PURE__ */ a.jsx(Si, { size: 18 }) }) }),
3871
3871
  /* @__PURE__ */ a.jsx(
3872
3872
  It.Items,
3873
3873
  {
@@ -3882,7 +3882,7 @@ function ua({
3882
3882
  )
3883
3883
  }
3884
3884
  ),
3885
- /* @__PURE__ */ a.jsx(ra, { asChild: !0, children: /* @__PURE__ */ a.jsx(_e, { "aria-label": "Next page", children: /* @__PURE__ */ a.jsx(Ci, { size: 18 }) }) })
3885
+ /* @__PURE__ */ a.jsx(ra, { asChild: !0, children: /* @__PURE__ */ a.jsx(_e, { "aria-label": "Next page", children: /* @__PURE__ */ a.jsx(Ri, { size: 18 }) }) })
3886
3886
  ] })
3887
3887
  }
3888
3888
  )
@@ -3897,7 +3897,7 @@ function pa({
3897
3897
  return /* @__PURE__ */ a.jsx(ye.Body, { children: e.map((o) => /* @__PURE__ */ a.jsxs(ye.Row, { children: [
3898
3898
  n.filter((s) => r[s.id]).map((s) => /* @__PURE__ */ a.jsx(ye.Cell, { children: o[s.id] }, s.id)),
3899
3899
  /* @__PURE__ */ a.jsx(ye.Cell, { textAlign: "center", display: "flex", gap: 2, children: /* @__PURE__ */ a.jsxs(Se.Root, { children: [
3900
- /* @__PURE__ */ a.jsx(ga, { asChild: !0, children: /* @__PURE__ */ a.jsx(_e, { "aria-label": "Open", variant: "ghost", size: "sm", children: /* @__PURE__ */ a.jsx(Oi, { size: 16 }) }) }),
3900
+ /* @__PURE__ */ a.jsx(ga, { asChild: !0, children: /* @__PURE__ */ a.jsx(_e, { "aria-label": "Open", variant: "ghost", size: "sm", children: /* @__PURE__ */ a.jsx(Ti, { size: 16 }) }) }),
3901
3901
  /* @__PURE__ */ a.jsx(gt, { children: /* @__PURE__ */ a.jsx(ha, { children: /* @__PURE__ */ a.jsx(fa, { children: t.map((s) => /* @__PURE__ */ a.jsxs(
3902
3902
  da,
3903
3903
  {
@@ -3914,7 +3914,7 @@ function pa({
3914
3914
  ] }) })
3915
3915
  ] }, o.id)) });
3916
3916
  }
3917
- function Sl({
3917
+ function Cl({
3918
3918
  tableId: e,
3919
3919
  data: t = [],
3920
3920
  headers: n = [],
@@ -3925,34 +3925,34 @@ function Sl({
3925
3925
  pageSize: l = 10,
3926
3926
  onPageChange: c,
3927
3927
  onPageSizeChange: u,
3928
- density: h = "sm",
3929
- totalCount: f = 0,
3930
- paginationMode: v = "client"
3928
+ density: f = "sm",
3929
+ totalCount: h = 0,
3930
+ paginationMode: m = "client"
3931
3931
  }) {
3932
3932
  A(() => {
3933
3933
  Yi(e);
3934
3934
  }, [e]), A(() => {
3935
3935
  Vi(t, n);
3936
3936
  }, [t, n]);
3937
- const { sortColumn: d, sortDirection: b, data: g } = vt(fe), m = N(() => {
3938
- const x = [...g];
3939
- if (d && x.sort(
3940
- (w, S) => b === "asc" ? String(w[d]).localeCompare(String(S[d])) : String(S[d]).localeCompare(String(w[d]))
3941
- ), v === "client") {
3937
+ const { sortColumn: g, sortDirection: v, data: d } = vt(fe), b = N(() => {
3938
+ const x = [...d];
3939
+ if (g && x.sort(
3940
+ (w, S) => v === "asc" ? String(w[g]).localeCompare(String(S[g])) : String(S[g]).localeCompare(String(w[g]))
3941
+ ), m === "client") {
3942
3942
  const w = i * l;
3943
3943
  return x.slice(w, w + l);
3944
3944
  }
3945
3945
  return x;
3946
- }, [g, d, b, i, l, v]);
3946
+ }, [d, g, v, i, l, m]);
3947
3947
  return /* @__PURE__ */ a.jsxs(Ge, { h: "100%", display: "flex", flexDirection: "column", p: 2, pt: 2, minHeight: 0, children: [
3948
- /* @__PURE__ */ a.jsx(Ge, { flex: "1", minHeight: 0, overflow: "auto", children: r ? /* @__PURE__ */ a.jsx(Ge, { display: "flex", alignItems: "center", justifyContent: "center", h: "100%", color: "gray.500", children: "Loading..." }) : m.length === 0 ? /* @__PURE__ */ a.jsx(Ge, { display: "flex", alignItems: "center", justifyContent: "center", h: "100%", color: "gray.500", children: o }) : /* @__PURE__ */ a.jsxs(ye.Root, { variant: "outline", w: "100%", size: h, children: [
3948
+ /* @__PURE__ */ a.jsx(Ge, { flex: "1", minHeight: 0, overflow: "auto", children: r ? /* @__PURE__ */ a.jsx(Ge, { display: "flex", alignItems: "center", justifyContent: "center", h: "100%", color: "gray.500", children: "Loading..." }) : b.length === 0 ? /* @__PURE__ */ a.jsx(Ge, { display: "flex", alignItems: "center", justifyContent: "center", h: "100%", color: "gray.500", children: o }) : /* @__PURE__ */ a.jsxs(ye.Root, { variant: "outline", w: "100%", size: f, children: [
3949
3949
  /* @__PURE__ */ a.jsx(Zi, {}),
3950
- /* @__PURE__ */ a.jsx(pa, { data: m, actions: s })
3950
+ /* @__PURE__ */ a.jsx(pa, { data: b, actions: s })
3951
3951
  ] }) }),
3952
3952
  /* @__PURE__ */ a.jsx(Ge, { mt: 0.5, children: /* @__PURE__ */ a.jsx(
3953
3953
  ua,
3954
3954
  {
3955
- totalCount: f,
3955
+ totalCount: h,
3956
3956
  pageSize: l,
3957
3957
  currentPage: i,
3958
3958
  onPageChange: c,
@@ -4054,79 +4054,79 @@ function _a({
4054
4054
  onChange: t,
4055
4055
  disabled: n = !1
4056
4056
  }) {
4057
- const [r = "", o = ""] = e ? e.split("|") : [], [s, i] = Q(() => r && o ? `${he(r)}${V}${he(o)}` : r ? he(r) : ""), [l, c] = Q(!1), u = M(null);
4057
+ const [r = "", o = ""] = e ? e.split("|") : [], [s, i] = K(() => r && o ? `${he(r)}${V}${he(o)}` : r ? he(r) : ""), [l, c] = K(!1), u = M(null);
4058
4058
  A(() => {
4059
- const b = (g) => {
4060
- g.ctrlKey && g.key === "d" && !g.shiftKey && !g.metaKey && (g.preventDefault(), u.current?.focus());
4059
+ const v = (d) => {
4060
+ d.ctrlKey && d.key === "d" && !d.shiftKey && !d.metaKey && (d.preventDefault(), u.current?.focus());
4061
4061
  };
4062
- return window.addEventListener("keydown", b), () => window.removeEventListener("keydown", b);
4062
+ return window.addEventListener("keydown", v), () => window.removeEventListener("keydown", v);
4063
4063
  }, []);
4064
- const h = (b) => {
4065
- let g = b;
4066
- if (g.includes(V)) {
4067
- const [m, x = ""] = g.split(V);
4068
- g = `${at(m.trim())}${V}${at(
4064
+ const f = (v) => {
4065
+ let d = v;
4066
+ if (d.includes(V)) {
4067
+ const [b, x = ""] = d.split(V);
4068
+ d = `${at(b.trim())}${V}${at(
4069
4069
  x.trim()
4070
4070
  )}`;
4071
- } else if (g.toLowerCase().includes(" to ")) {
4072
- const [m, x = ""] = g.split(/\s+to\s+/i);
4073
- g = `${at(m.trim())} to ${at(x.trim())}`;
4071
+ } else if (d.toLowerCase().includes(" to ")) {
4072
+ const [b, x = ""] = d.split(/\s+to\s+/i);
4073
+ d = `${at(b.trim())} to ${at(x.trim())}`;
4074
4074
  } else
4075
- g = at(g);
4076
- i(g);
4077
- }, f = () => {
4078
- const b = s.trim();
4079
- if (!b) {
4075
+ d = at(d);
4076
+ i(d);
4077
+ }, h = () => {
4078
+ const v = s.trim();
4079
+ if (!v) {
4080
4080
  t(void 0);
4081
4081
  return;
4082
4082
  }
4083
- if (b.includes(V)) {
4084
- const [g, m = ""] = b.split(V).map((S) => S.trim()), x = it(g), w = m ? it(m) : null;
4083
+ if (v.includes(V)) {
4084
+ const [d, b = ""] = v.split(V).map((S) => S.trim()), x = it(d), w = b ? it(b) : null;
4085
4085
  if (x && w) {
4086
- const [S, D] = w < x ? [w, x] : [x, w], j = `${he(S)}${V}${he(
4087
- D
4086
+ const [S, C] = w < x ? [w, x] : [x, w], j = `${he(S)}${V}${he(
4087
+ C
4088
4088
  )}`;
4089
- i(j), t(`${S}|${D}`);
4090
- } else if (x && !m)
4089
+ i(j), t(`${S}|${C}`);
4090
+ } else if (x && !b)
4091
4091
  i(`${he(x)}${V}`), t(void 0);
4092
- else if (x && m) {
4093
- const S = wa(), [D, j] = S < x ? [S, x] : [x, S], R = `${he(D)}${V}${he(
4092
+ else if (x && b) {
4093
+ const S = wa(), [C, j] = S < x ? [S, x] : [x, S], D = `${he(C)}${V}${he(
4094
4094
  j
4095
4095
  )}`;
4096
- i(R), t(`${D}|${j}`);
4096
+ i(D), t(`${C}|${j}`);
4097
4097
  } else
4098
4098
  i(""), t(void 0);
4099
4099
  } else {
4100
- const g = it(b);
4101
- g ? (i(`${he(g)}${V}`), t(void 0)) : (i(""), t(void 0));
4100
+ const d = it(v);
4101
+ d ? (i(`${he(d)}${V}`), t(void 0)) : (i(""), t(void 0));
4102
4102
  }
4103
- }, v = (b) => {
4104
- if (b.key !== "Enter") return;
4105
- b.preventDefault();
4106
- const g = u.current?.selectionStart || 0, m = s.indexOf(V);
4103
+ }, m = (v) => {
4104
+ if (v.key !== "Enter") return;
4105
+ v.preventDefault();
4106
+ const d = u.current?.selectionStart || 0, b = s.indexOf(V);
4107
4107
  if (!s.trim()) {
4108
4108
  i(`${ar()}${V}`);
4109
4109
  return;
4110
4110
  }
4111
- if (m === -1) {
4111
+ if (b === -1) {
4112
4112
  const w = it(s.trim());
4113
4113
  w && i(`${he(w)}${V}`);
4114
4114
  return;
4115
4115
  }
4116
- if (g <= m + V.length) {
4117
- const w = s.substring(0, m).trim(), S = s.substring(m + V.length), D = it(w);
4118
- D && i(`${he(D)}${V}${S}`);
4116
+ if (d <= b + V.length) {
4117
+ const w = s.substring(0, b).trim(), S = s.substring(b + V.length), C = it(w);
4118
+ C && i(`${he(C)}${V}${S}`);
4119
4119
  return;
4120
4120
  }
4121
- if (s.substring(m + V.length).trim())
4122
- f(), u.current?.blur();
4121
+ if (s.substring(b + V.length).trim())
4122
+ h(), u.current?.blur();
4123
4123
  else {
4124
- const w = s.substring(0, m + V.length) + ar();
4124
+ const w = s.substring(0, b + V.length) + ar();
4125
4125
  i(w), setTimeout(() => {
4126
- f(), u.current?.blur();
4126
+ h(), u.current?.blur();
4127
4127
  }, 0);
4128
4128
  }
4129
- }, d = () => {
4129
+ }, g = () => {
4130
4130
  i(""), t(void 0);
4131
4131
  };
4132
4132
  return /* @__PURE__ */ a.jsx(ur, { children: /* @__PURE__ */ a.jsx(a.Fragment, { children: /* @__PURE__ */ a.jsxs(An, { position: "revert", children: [
@@ -4144,14 +4144,14 @@ function _a({
4144
4144
  size: "sm",
4145
4145
  variant: "ghost",
4146
4146
  "aria-label": "Date range help",
4147
- onClick: () => c((b) => !b),
4147
+ onClick: () => c((v) => !v),
4148
4148
  children: /* @__PURE__ */ a.jsx(or, { size: 16 })
4149
4149
  }
4150
4150
  ) }),
4151
4151
  /* @__PURE__ */ a.jsx(gt, { children: /* @__PURE__ */ a.jsx(ja, { children: /* @__PURE__ */ a.jsxs(Ea, { p: 4, children: [
4152
- /* @__PURE__ */ a.jsx(no, {}),
4152
+ /* @__PURE__ */ a.jsx(ro, {}),
4153
4153
  /* @__PURE__ */ a.jsxs(je, { align: "start", gap: 4, children: [
4154
- /* @__PURE__ */ a.jsxs(de, { children: [
4154
+ /* @__PURE__ */ a.jsxs(ae, { children: [
4155
4155
  /* @__PURE__ */ a.jsx(or, { size: 16 }),
4156
4156
  /* @__PURE__ */ a.jsx(U, { fontWeight: "semibold", fontSize: "sm", children: "Date Range Filter" })
4157
4157
  ] }),
@@ -4172,7 +4172,7 @@ function _a({
4172
4172
  ] }),
4173
4173
  /* @__PURE__ */ a.jsxs(je, { align: "start", gap: 1, children: [
4174
4174
  /* @__PURE__ */ a.jsx(U, { fontSize: "sm", fontWeight: "medium", children: "Shortcut:" }),
4175
- /* @__PURE__ */ a.jsxs(de, { children: [
4175
+ /* @__PURE__ */ a.jsxs(ae, { children: [
4176
4176
  /* @__PURE__ */ a.jsx(kn, { children: "Ctrl" }),
4177
4177
  /* @__PURE__ */ a.jsx(U, { children: "+" }),
4178
4178
  /* @__PURE__ */ a.jsx(kn, { children: "D" })
@@ -4191,9 +4191,9 @@ function _a({
4191
4191
  value: s,
4192
4192
  size: "sm",
4193
4193
  disabled: n,
4194
- onChange: (b) => h(b.target.value),
4195
- onBlur: f,
4196
- onKeyDown: v,
4194
+ onChange: (v) => f(v.target.value),
4195
+ onBlur: h,
4196
+ onKeyDown: m,
4197
4197
  pr: s ? "10" : void 0,
4198
4198
  w: "100%"
4199
4199
  }
@@ -4204,15 +4204,13 @@ function _a({
4204
4204
  size: "sm",
4205
4205
  variant: "ghost",
4206
4206
  "aria-label": "Clear date range",
4207
- onClick: d,
4207
+ onClick: g,
4208
4208
  w: "100%"
4209
4209
  }
4210
4210
  ) })
4211
4211
  ] }) }) });
4212
4212
  }
4213
- const Oa = y(Fe.Root);
4214
- y(Fe.Label);
4215
- const Ta = y(Fe.HelperText), Ia = y(Fe.ErrorText), lr = ({
4213
+ const Oa = y(Fe.Root), Ta = y(Fe.Label), Ia = y(Fe.HelperText), Aa = y(Fe.ErrorText), lr = ({
4216
4214
  icon: e,
4217
4215
  value: t,
4218
4216
  onChange: n,
@@ -4223,24 +4221,26 @@ const Ta = y(Fe.HelperText), Ia = y(Fe.ErrorText), lr = ({
4223
4221
  label: l,
4224
4222
  helperText: c,
4225
4223
  isDisabled: u = !1,
4226
- required: h = !1,
4227
- errorText: f
4224
+ required: f = !1,
4225
+ errorText: h,
4226
+ visible: m
4228
4227
  }) => /* @__PURE__ */ a.jsxs(Oa, { width: i, children: [
4228
+ m && /* @__PURE__ */ a.jsx(Ta, { children: l }),
4229
4229
  /* @__PURE__ */ a.jsx(ur, { startElement: e, children: /* @__PURE__ */ a.jsx(
4230
4230
  dr,
4231
4231
  {
4232
4232
  value: t,
4233
- onChange: (v) => n?.(v.target.value),
4233
+ onChange: (g) => n?.(g.target.value),
4234
4234
  placeholder: r,
4235
4235
  size: o,
4236
4236
  variant: s,
4237
4237
  disabled: u,
4238
- required: h
4238
+ required: f
4239
4239
  }
4240
4240
  ) }),
4241
- f && /* @__PURE__ */ a.jsx(Ia, { fontSize: "xs", children: f }),
4242
- c && /* @__PURE__ */ a.jsx(Ta, { fontSize: "xs", children: c })
4243
- ] }), Aa = y(Fe.Root), ka = y(Fe.HelperText), Na = y(Fe.ErrorText), Ma = y(z.Root), La = y(z.Label), $a = y(z.Control), Pa = y(z.Trigger), za = y(z.ValueText), Fa = y(z.IndicatorGroup), Va = y(z.Indicator), Ya = y(z.Content), Ha = y(z.Item), Ba = y(z.ItemIndicator), Wa = y(z.HiddenSelect), Ua = y(z.Positioner), Ga = ({
4241
+ h && /* @__PURE__ */ a.jsx(Aa, { fontSize: "xs", children: h }),
4242
+ c && /* @__PURE__ */ a.jsx(Ia, { fontSize: "xs", children: c })
4243
+ ] }), ka = y(Fe.Root), Na = y(Fe.HelperText), Ma = y(Fe.ErrorText), La = y(z.Root), $a = y(z.Label), Pa = y(z.Control), za = y(z.Trigger), Fa = y(z.ValueText), Va = y(z.IndicatorGroup), Ya = y(z.Indicator), Ha = y(z.Content), Ba = y(z.Item), Wa = y(z.ItemIndicator), Ua = y(z.HiddenSelect), Ga = y(z.Positioner), Xa = ({
4244
4244
  options: e = [],
4245
4245
  label: t,
4246
4246
  value: n,
@@ -4251,43 +4251,44 @@ const Ta = y(Fe.HelperText), Ia = y(Fe.ErrorText), lr = ({
4251
4251
  variant: l = "outline",
4252
4252
  helperText: c,
4253
4253
  isDisabled: u,
4254
- required: h,
4255
- errorText: f
4254
+ required: f,
4255
+ errorText: h,
4256
+ visible: m
4256
4257
  }) => {
4257
- const v = cr({
4258
+ const g = cr({
4258
4259
  items: e
4259
4260
  });
4260
- return /* @__PURE__ */ a.jsxs(Aa, { disabled: u, required: h, children: [
4261
+ return /* @__PURE__ */ a.jsxs(ka, { disabled: u, required: f, children: [
4261
4262
  /* @__PURE__ */ a.jsxs(
4262
- Ma,
4263
+ La,
4263
4264
  {
4264
- collection: v,
4265
+ collection: g,
4265
4266
  variant: l,
4266
4267
  size: s,
4267
4268
  width: i,
4268
4269
  value: n ? [n] : [],
4269
- onValueChange: (d) => r?.(d.value[0]),
4270
+ onValueChange: (v) => r?.(v.value[0]),
4270
4271
  children: [
4271
- /* @__PURE__ */ a.jsx(Wa, {}),
4272
- t && /* @__PURE__ */ a.jsx(La, { children: t }),
4273
- /* @__PURE__ */ a.jsxs($a, { children: [
4274
- /* @__PURE__ */ a.jsx(Pa, { children: /* @__PURE__ */ a.jsx(za, { placeholder: o }) }),
4275
- /* @__PURE__ */ a.jsx(Fa, { children: /* @__PURE__ */ a.jsx(Va, {}) })
4272
+ /* @__PURE__ */ a.jsx(Ua, {}),
4273
+ m && /* @__PURE__ */ a.jsx($a, { children: t }),
4274
+ /* @__PURE__ */ a.jsxs(Pa, { children: [
4275
+ /* @__PURE__ */ a.jsx(za, { children: /* @__PURE__ */ a.jsx(Fa, { placeholder: o }) }),
4276
+ /* @__PURE__ */ a.jsx(Va, { children: /* @__PURE__ */ a.jsx(Ya, {}) })
4276
4277
  ] }),
4277
- /* @__PURE__ */ a.jsx(Ua, { children: /* @__PURE__ */ a.jsx(Ya, { children: v.items.map((d) => /* @__PURE__ */ a.jsxs(Ha, { item: d, children: [
4278
- d.label,
4279
- /* @__PURE__ */ a.jsx(Ba, {})
4280
- ] }, d.value)) }) })
4278
+ /* @__PURE__ */ a.jsx(Ga, { children: /* @__PURE__ */ a.jsx(Ha, { children: g.items.map((v) => /* @__PURE__ */ a.jsxs(Ba, { item: v, children: [
4279
+ v.label,
4280
+ /* @__PURE__ */ a.jsx(Wa, {})
4281
+ ] }, v.value)) }) })
4281
4282
  ]
4282
4283
  }
4283
4284
  ),
4284
- c && /* @__PURE__ */ a.jsx(ka, { children: c }),
4285
- f && /* @__PURE__ */ a.jsx(Na, { children: f })
4285
+ c && /* @__PURE__ */ a.jsx(Na, { children: c }),
4286
+ h && /* @__PURE__ */ a.jsx(Ma, { children: h })
4286
4287
  ] });
4287
- }, Vr = (e) => `FILTER_PRESETS_${e ?? "default"}`;
4288
- function Xa(e) {
4288
+ }, Yr = (e) => `FILTER_PRESETS_${e ?? "default"}`;
4289
+ function qa(e) {
4289
4290
  try {
4290
- return JSON.parse(localStorage.getItem(Vr(e)) || "[]");
4291
+ return JSON.parse(localStorage.getItem(Yr(e)) || "[]");
4291
4292
  } catch {
4292
4293
  return [];
4293
4294
  }
@@ -4295,29 +4296,28 @@ function Xa(e) {
4295
4296
  const $t = new gr({}), Cn = (e) => {
4296
4297
  const t = $t.state[e];
4297
4298
  if (t) return t;
4298
- const n = Xa(e);
4299
+ const n = qa(e);
4299
4300
  return $t.setState((r) => ({
4300
4301
  ...r,
4301
4302
  [e]: n
4302
4303
  })), n;
4303
- }, Yr = (e, t) => {
4304
+ }, Hr = (e, t) => {
4304
4305
  $t.setState((n) => ({
4305
4306
  ...n,
4306
4307
  [e]: t
4307
- })), localStorage.setItem(Vr(e), JSON.stringify(t));
4308
- }, qa = (e, t) => {
4309
- const n = Cn(e).filter((r) => r.id !== t);
4310
- Yr(e, n);
4308
+ })), localStorage.setItem(Yr(e), JSON.stringify(t));
4311
4309
  }, Ka = (e, t) => {
4310
+ const n = Cn(e).filter((r) => r.id !== t);
4311
+ Hr(e, n);
4312
+ }, Ja = (e, t) => {
4312
4313
  const n = [t, ...Cn(e)];
4313
- Yr(e, n);
4314
- }, Ja = y(pe.Root), Za = y(pe.HiddenInput), Qa = y(pe.Control), el = y(pt.Root), tl = y(pt.Track), nl = y(pt.Range), rl = y(pt.Thumbs), ol = y(pt.Control), sl = ({ filter: e, onVisibilityChange: t, onSizeChange: n }) => {
4314
+ Hr(e, n);
4315
+ }, Za = y(pe.Root), Qa = y(pe.HiddenInput), el = y(pe.Control), tl = y(pt.Root), nl = y(pt.Track), rl = y(pt.Range), ol = y(pt.Thumbs), sl = y(pt.Control), il = ({ filter: e, onVisibilityChange: t, onSizeChange: n }) => {
4315
4316
  const { attributes: r, listeners: o, setNodeRef: s, transform: i, transition: l } = Pr({
4316
4317
  id: e.id
4317
4318
  }), c = {
4318
4319
  transform: qe.Transform.toString(i),
4319
- transition: l,
4320
- cursor: "grab"
4320
+ transition: l
4321
4321
  };
4322
4322
  return /* @__PURE__ */ a.jsxs(
4323
4323
  je,
@@ -4330,21 +4330,23 @@ const $t = new gr({}), Cn = (e) => {
4330
4330
  rounded: "md",
4331
4331
  p: 3,
4332
4332
  mb: 3,
4333
- ...r,
4334
- ...o,
4333
+ bg: "white",
4335
4334
  children: [
4336
- /* @__PURE__ */ a.jsx(U, { fontWeight: "bold", children: e.label }),
4337
- /* @__PURE__ */ a.jsxs(de, { justify: "space-between", children: [
4335
+ /* @__PURE__ */ a.jsxs(ae, { ...r, ...o, cursor: "grab", userSelect: "none", gap: 2, children: [
4336
+ /* @__PURE__ */ a.jsx(Fr, { size: 16 }),
4337
+ /* @__PURE__ */ a.jsx(U, { fontWeight: "bold", fontSize: "sm", children: e.label || e.id })
4338
+ ] }),
4339
+ /* @__PURE__ */ a.jsxs(ae, { justify: "space-between", children: [
4338
4340
  /* @__PURE__ */ a.jsx(U, { fontSize: "sm", children: "Visible" }),
4339
4341
  /* @__PURE__ */ a.jsxs(
4340
- Ja,
4342
+ Za,
4341
4343
  {
4342
4344
  checked: e.visible,
4343
- onCheckedChange: (u) => t && t(e.id, !!u),
4344
4345
  size: "sm",
4346
+ onCheckedChange: (u) => t?.(e.id, !!u.checked),
4345
4347
  children: [
4346
- /* @__PURE__ */ a.jsx(Za, {}),
4347
- /* @__PURE__ */ a.jsx(Qa, {})
4348
+ /* @__PURE__ */ a.jsx(Qa, {}),
4349
+ /* @__PURE__ */ a.jsx(el, {})
4348
4350
  ]
4349
4351
  }
4350
4352
  )
@@ -4352,17 +4354,16 @@ const $t = new gr({}), Cn = (e) => {
4352
4354
  /* @__PURE__ */ a.jsxs(je, { align: "stretch", gap: 1, children: [
4353
4355
  /* @__PURE__ */ a.jsx(U, { fontSize: "sm", children: "Size" }),
4354
4356
  /* @__PURE__ */ a.jsx(
4355
- el,
4357
+ tl,
4356
4358
  {
4357
- width: "200px",
4358
4359
  min: 1,
4359
4360
  max: 5,
4360
4361
  step: 0.5,
4361
4362
  value: [e.size ?? 1],
4362
- onChange: (u) => n && n(e.id, u[0]),
4363
- children: /* @__PURE__ */ a.jsxs(ol, { children: [
4364
- /* @__PURE__ */ a.jsx(tl, { children: /* @__PURE__ */ a.jsx(nl, {}) }),
4365
- /* @__PURE__ */ a.jsx(rl, {})
4363
+ onValueChange: (u) => n?.(e.id, u.value[0]),
4364
+ children: /* @__PURE__ */ a.jsxs(sl, { children: [
4365
+ /* @__PURE__ */ a.jsx(nl, { children: /* @__PURE__ */ a.jsx(rl, {}) }),
4366
+ /* @__PURE__ */ a.jsx(ol, {})
4366
4367
  ] })
4367
4368
  }
4368
4369
  )
@@ -4370,8 +4371,8 @@ const $t = new gr({}), Cn = (e) => {
4370
4371
  ]
4371
4372
  }
4372
4373
  );
4373
- }, il = y(Ce.Root), al = y(Ce.Trigger), ll = y(Ce.Backdrop), cl = y(Ce.Positioner), ul = y(Ce.Content), dl = y(Ce.Header), fl = y(Ce.Title), hl = y(Ce.Body), gl = y(Ce.Footer), pl = y(Ce.CloseTrigger), vl = y(zt.Root), bl = y(zt.List), rn = y(zt.Trigger), on = y(zt.Content), Hr = (e) => {
4374
- if (console.log(e), e.customComponent)
4374
+ }, al = y(Ce.Root), ll = y(Ce.Trigger), cl = y(Ce.Backdrop), ul = y(Ce.Positioner), dl = y(Ce.Content), fl = y(Ce.Header), hl = y(Ce.Title), gl = y(Ce.Body), pl = y(Ce.Footer), vl = y(Ce.CloseTrigger), bl = y(zt.Root), ml = y(zt.List), rn = y(zt.Trigger), on = y(zt.Content), Br = (e, t) => {
4375
+ if (e.customComponent)
4375
4376
  return e.customComponent;
4376
4377
  switch (e.type) {
4377
4378
  case "text":
@@ -4381,7 +4382,8 @@ const $t = new gr({}), Cn = (e) => {
4381
4382
  placeholder: e.label,
4382
4383
  value: e.value,
4383
4384
  onChange: e.onChange,
4384
- label: ""
4385
+ label: e.label,
4386
+ visible: t
4385
4387
  }
4386
4388
  );
4387
4389
  case "number":
@@ -4397,12 +4399,13 @@ const $t = new gr({}), Cn = (e) => {
4397
4399
  );
4398
4400
  case "select":
4399
4401
  return /* @__PURE__ */ a.jsx(
4400
- Ga,
4402
+ Xa,
4401
4403
  {
4402
4404
  label: e.label,
4403
4405
  value: e.value,
4404
4406
  onChange: e.onChange,
4405
- options: e.options ?? []
4407
+ options: e.options ?? [],
4408
+ visible: t
4406
4409
  }
4407
4410
  );
4408
4411
  case "date":
@@ -4416,7 +4419,7 @@ const $t = new gr({}), Cn = (e) => {
4416
4419
  default:
4417
4420
  return null;
4418
4421
  }
4419
- }, ml = ({
4422
+ }, xl = ({
4420
4423
  filterDrawerSize: e = "sm",
4421
4424
  onVisibilityChange: t,
4422
4425
  onSizeChange: n,
@@ -4426,28 +4429,30 @@ const $t = new gr({}), Cn = (e) => {
4426
4429
  currentFilters: i = {},
4427
4430
  onLoadPreset: l,
4428
4431
  activePresetName: c,
4429
- onReorder: u
4432
+ onReorder: u,
4433
+ open: f,
4434
+ onOpenChange: h
4430
4435
  }) => {
4431
- const f = vt($t)[s] ?? Cn(s), v = () => {
4436
+ const g = vt($t)[s] ?? Cn(s), v = () => {
4432
4437
  const d = prompt("Preset name?");
4433
- d && Ka(s, {
4438
+ d && Ja(s, {
4434
4439
  id: crypto.randomUUID(),
4435
4440
  name: d,
4436
4441
  date: (/* @__PURE__ */ new Date()).toISOString(),
4437
4442
  filters: i
4438
4443
  });
4439
4444
  };
4440
- return /* @__PURE__ */ a.jsx(de, { wrap: "wrap", children: /* @__PURE__ */ a.jsxs(il, { size: e, children: [
4441
- /* @__PURE__ */ a.jsx(al, { asChild: !0, children: /* @__PURE__ */ a.jsxs(_e, { "aria-label": "Open filters", variant: "outline", size: "xs", ml: 2, p: 2, children: [
4442
- /* @__PURE__ */ a.jsx(Ii, { size: 16 }),
4445
+ return /* @__PURE__ */ a.jsx(ae, { wrap: "wrap", children: /* @__PURE__ */ a.jsxs(al, { size: e, open: f, onOpenChange: h, children: [
4446
+ /* @__PURE__ */ a.jsx(ll, { asChild: !0, children: /* @__PURE__ */ a.jsxs(_e, { "aria-label": "Open filters", variant: "outline", size: "xs", ml: 2, p: 2, children: [
4447
+ /* @__PURE__ */ a.jsx(Ai, { size: 16 }),
4443
4448
  "Filters"
4444
4449
  ] }) }),
4445
4450
  /* @__PURE__ */ a.jsxs(gt, { children: [
4446
- /* @__PURE__ */ a.jsx(ll, {}),
4447
- /* @__PURE__ */ a.jsx(cl, { children: /* @__PURE__ */ a.jsxs(ul, { children: [
4448
- /* @__PURE__ */ a.jsx(dl, { children: /* @__PURE__ */ a.jsx(fl, { children: "Filters" }) }),
4449
- /* @__PURE__ */ a.jsx(hl, { overflowY: "auto", pt: 1, children: /* @__PURE__ */ a.jsxs(vl, { defaultValue: "view", children: [
4450
- /* @__PURE__ */ a.jsxs(bl, { mb: 4, children: [
4451
+ /* @__PURE__ */ a.jsx(cl, {}),
4452
+ /* @__PURE__ */ a.jsx(ul, { children: /* @__PURE__ */ a.jsxs(dl, { children: [
4453
+ /* @__PURE__ */ a.jsx(fl, { children: /* @__PURE__ */ a.jsx(hl, { children: "Filters" }) }),
4454
+ /* @__PURE__ */ a.jsx(gl, { overflowY: "auto", pt: 1, children: /* @__PURE__ */ a.jsxs(bl, { defaultValue: "view", children: [
4455
+ /* @__PURE__ */ a.jsxs(ml, { mb: 4, children: [
4451
4456
  /* @__PURE__ */ a.jsxs(rn, { value: "view", children: [
4452
4457
  /* @__PURE__ */ a.jsx(Mi, { size: 16 }),
4453
4458
  "Edit"
@@ -4457,7 +4462,7 @@ const $t = new gr({}), Cn = (e) => {
4457
4462
  "Settings"
4458
4463
  ] }),
4459
4464
  /* @__PURE__ */ a.jsxs(rn, { value: "presets", children: [
4460
- /* @__PURE__ */ a.jsx(mi, { size: 16 }),
4465
+ /* @__PURE__ */ a.jsx(xi, { size: 16 }),
4461
4466
  "Presets"
4462
4467
  ] })
4463
4468
  ] }),
@@ -4472,27 +4477,27 @@ const $t = new gr({}), Cn = (e) => {
4472
4477
  rounded: "md",
4473
4478
  p: 3,
4474
4479
  mb: 3,
4475
- children: Hr(d)
4480
+ children: Br(d, f)
4476
4481
  },
4477
4482
  d.id
4478
4483
  )) }),
4479
4484
  /* @__PURE__ */ a.jsx(on, { value: "settings", children: /* @__PURE__ */ a.jsx(
4480
4485
  Ar,
4481
4486
  {
4482
- sensors: Lo(Mo(wn)),
4487
+ sensors: $o(Lo(wn)),
4483
4488
  collisionDetection: mr,
4484
4489
  onDragEnd: ({ active: d, over: b }) => {
4485
4490
  if (!b || d.id === b.id) return;
4486
- const g = o.findIndex((w) => w.id === d.id), m = o.findIndex((w) => w.id === b.id), x = Ht(o, g, m);
4487
- u?.(x);
4491
+ const x = o.findIndex((C) => C.id === d.id), w = o.findIndex((C) => C.id === b.id), S = Ht(o, x, w);
4492
+ u?.(S);
4488
4493
  },
4489
4494
  children: /* @__PURE__ */ a.jsx(
4490
4495
  Lr,
4491
4496
  {
4492
4497
  items: o.map((d) => d.id),
4493
- strategy: Js,
4498
+ strategy: Zs,
4494
4499
  children: o.map((d) => /* @__PURE__ */ a.jsx(
4495
- sl,
4500
+ il,
4496
4501
  {
4497
4502
  filter: d,
4498
4503
  onVisibilityChange: t,
@@ -4506,9 +4511,9 @@ const $t = new gr({}), Cn = (e) => {
4506
4511
  ) }),
4507
4512
  /* @__PURE__ */ a.jsx(on, { value: "presets", children: /* @__PURE__ */ a.jsxs(je, { align: "stretch", mb: 3, children: [
4508
4513
  /* @__PURE__ */ a.jsx(Gt, { size: "sm", colorScheme: "blue", onClick: v, children: "Save Current Filters" }),
4509
- f.length === 0 && /* @__PURE__ */ a.jsx(U, { fontSize: "xs", color: "gray.500", children: "No presets saved yet." }),
4510
- f.map((d) => /* @__PURE__ */ a.jsxs(
4511
- de,
4514
+ g.length === 0 && /* @__PURE__ */ a.jsx(U, { fontSize: "xs", color: "gray.500", children: "No presets saved yet." }),
4515
+ g.map((d) => /* @__PURE__ */ a.jsxs(
4516
+ ae,
4512
4517
  {
4513
4518
  justify: "space-between",
4514
4519
  border: "1px solid",
@@ -4520,7 +4525,7 @@ const $t = new gr({}), Cn = (e) => {
4520
4525
  /* @__PURE__ */ a.jsx(U, { fontWeight: "bold", fontSize: "sm", children: d.name }),
4521
4526
  /* @__PURE__ */ a.jsx(U, { fontSize: "xs", color: "gray.500", children: new Date(d.date).toLocaleDateString() })
4522
4527
  ] }),
4523
- /* @__PURE__ */ a.jsxs(de, { children: [
4528
+ /* @__PURE__ */ a.jsxs(ae, { children: [
4524
4529
  /* @__PURE__ */ a.jsx(
4525
4530
  Gt,
4526
4531
  {
@@ -4536,8 +4541,8 @@ const $t = new gr({}), Cn = (e) => {
4536
4541
  size: "xs",
4537
4542
  "aria-label": "Delete preset",
4538
4543
  variant: "ghost",
4539
- onClick: () => qa(s, d.id),
4540
- children: /* @__PURE__ */ a.jsx(ji, { size: 14 })
4544
+ onClick: () => Ka(s, d.id),
4545
+ children: /* @__PURE__ */ a.jsx(_i, { size: 14 })
4541
4546
  }
4542
4547
  )
4543
4548
  ] })
@@ -4547,7 +4552,7 @@ const $t = new gr({}), Cn = (e) => {
4547
4552
  ))
4548
4553
  ] }) })
4549
4554
  ] }) }),
4550
- /* @__PURE__ */ a.jsxs(gl, { justify: "space-between", children: [
4555
+ /* @__PURE__ */ a.jsxs(pl, { justify: "space-between", children: [
4551
4556
  /* @__PURE__ */ a.jsx(
4552
4557
  Gt,
4553
4558
  {
@@ -4558,12 +4563,12 @@ const $t = new gr({}), Cn = (e) => {
4558
4563
  children: "Clear All"
4559
4564
  }
4560
4565
  ),
4561
- /* @__PURE__ */ a.jsx(pl, { asChild: !0, children: /* @__PURE__ */ a.jsx(ro, {}) })
4566
+ /* @__PURE__ */ a.jsx(vl, { asChild: !0, children: /* @__PURE__ */ a.jsx(oo, {}) })
4562
4567
  ] })
4563
4568
  ] }) })
4564
4569
  ] })
4565
4570
  ] }) });
4566
- }, Cl = ({
4571
+ }, Rl = ({
4567
4572
  title: e,
4568
4573
  filters: t,
4569
4574
  onVisibilityChange: n,
@@ -4574,60 +4579,67 @@ const $t = new gr({}), Cn = (e) => {
4574
4579
  pageKey: l,
4575
4580
  currentFilters: c,
4576
4581
  onLoadPreset: u,
4577
- activePresetName: h,
4578
- filterDrawerSize: f = "sm"
4579
- }) => /* @__PURE__ */ a.jsxs(de, { wrap: "wrap", pl: 2, pr: 2, width: "100%", justify: "space-between", children: [
4580
- e,
4581
- /* @__PURE__ */ a.jsxs(de, { gapX: 1, children: [
4582
- t.filter((v) => v.visible !== !1).map((v) => /* @__PURE__ */ a.jsx(
4583
- de,
4584
- {
4585
- flex: v.size ?? 1,
4586
- minW: `${(v.size ?? 1) * 100}px`,
4587
- alignItems: "center",
4588
- children: Hr(v)
4589
- },
4590
- v.id
4591
- )),
4592
- /* @__PURE__ */ a.jsx(
4593
- ml,
4594
- {
4595
- filterDrawerSize: f,
4596
- onVisibilityChange: n,
4597
- onReorder: r,
4598
- onSizeChange: o,
4599
- onClear: s,
4600
- maxToolbarUnits: i,
4601
- pageKey: l,
4602
- filters: t,
4603
- currentFilters: c,
4604
- onLoadPreset: u,
4605
- activePresetName: h
4606
- }
4607
- )
4608
- ] })
4609
- ] }), Rl = (e, t) => {
4582
+ activePresetName: f,
4583
+ filterDrawerSize: h = "sm"
4584
+ }) => {
4585
+ const [m, g] = K(!1);
4586
+ return /* @__PURE__ */ a.jsxs(ae, { wrap: "wrap", pl: 2, pr: 2, width: "100%", justify: "space-between", children: [
4587
+ e,
4588
+ /* @__PURE__ */ a.jsxs(ae, { gapX: 1, children: [
4589
+ t.filter((v) => v.visible !== !1).map((v) => /* @__PURE__ */ a.jsx(
4590
+ ae,
4591
+ {
4592
+ flex: v.size ?? 1,
4593
+ minW: `${(v.size ?? 1) * 100}px`,
4594
+ alignItems: "center",
4595
+ children: Br(v)
4596
+ },
4597
+ v.id
4598
+ )),
4599
+ /* @__PURE__ */ a.jsx(
4600
+ xl,
4601
+ {
4602
+ filterDrawerSize: h,
4603
+ onVisibilityChange: n,
4604
+ onReorder: r,
4605
+ onSizeChange: o,
4606
+ onClear: s,
4607
+ maxToolbarUnits: i,
4608
+ pageKey: l,
4609
+ filters: t,
4610
+ currentFilters: c,
4611
+ onLoadPreset: u,
4612
+ activePresetName: f,
4613
+ open: m,
4614
+ onOpenChange: (v) => {
4615
+ g(v.open);
4616
+ }
4617
+ }
4618
+ )
4619
+ ] })
4620
+ ] });
4621
+ }, Dl = (e, t) => {
4610
4622
  localStorage.setItem(`FILTER_ORDER_${e}`, JSON.stringify(t));
4611
- }, Dl = (e) => {
4623
+ }, El = (e) => {
4612
4624
  try {
4613
4625
  return JSON.parse(localStorage.getItem(`FILTER_ORDER_${e}`) || "[]");
4614
4626
  } catch {
4615
4627
  return [];
4616
4628
  }
4617
- }, El = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4629
+ }, jl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4618
4630
  __proto__: null
4619
4631
  }, Symbol.toStringTag, { value: "Module" }));
4620
4632
  export {
4621
- Sl as DataTable,
4622
- Cl as Filters,
4623
- El as MdsSharedUi,
4624
- Ka as addPreset,
4625
- qa as deletePreset,
4633
+ Cl as DataTable,
4634
+ Rl as Filters,
4635
+ jl as MdsSharedUi,
4636
+ Ja as addPreset,
4637
+ Ka as deletePreset,
4626
4638
  Cn as getPresets,
4627
- Dl as loadOrder,
4639
+ El as loadOrder,
4628
4640
  $t as presetStore,
4629
- Rl as saveOrder,
4630
- Yr as savePresets,
4641
+ Dl as saveOrder,
4642
+ Hr as savePresets,
4631
4643
  Vi as setData,
4632
4644
  Yi as setTableId,
4633
4645
  fe as tableStore,