@blofin/blofin-ui 0.7.46-beta.1 → 0.7.46-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. package/dist/{ProTable-3c3cf60a.js → ProTable-1b5dcd68.js} +302 -306
  2. package/dist/ProTable.es.js +2 -2
  3. package/dist/blofin.css +1 -1
  4. package/dist/{index-29f637a2.js → index-034b58a9.js} +2 -2
  5. package/dist/{index-54a30cbb.js → index-0475bc8d.js} +2 -2
  6. package/dist/{index-8fb38bfd.js → index-06ae77a8.js} +2 -2
  7. package/dist/{index-d58debb2.js → index-095b4276.js} +2 -2
  8. package/dist/{index-444df060.js → index-0eabffaa.js} +3 -3
  9. package/dist/{index-7d0f3639.js → index-0ec74f97.js} +2 -2
  10. package/dist/{index-f37ec75f.js → index-0f38c4bc.js} +2 -2
  11. package/dist/{index-2ef70f44.js → index-0f746ce6.js} +2 -2
  12. package/dist/{index-8a27f63e.js → index-16f8ca09.js} +2 -2
  13. package/dist/{index-5e5ac433.js → index-23487cf2.js} +3 -3
  14. package/dist/{index-d0b94da9.js → index-29dd3a20.js} +2 -2
  15. package/dist/{index-b5f1a5ee.js → index-2b1b9ffa.js} +2 -2
  16. package/dist/{index-415ec2f5.js → index-2c2763d7.js} +2 -2
  17. package/dist/{index-cb82c6d0.js → index-2deee906.js} +2 -2
  18. package/dist/{index-87956af8.js → index-2e053bbf.js} +1 -1
  19. package/dist/{index-21858160.js → index-303ecee7.js} +2 -2
  20. package/dist/{index-f1bb6864.js → index-334ca7d4.js} +2 -2
  21. package/dist/{index-c76e7a6b.js → index-3b21ebb9.js} +2 -2
  22. package/dist/{index-a7eacb14.js → index-3b978ab4.js} +2 -2
  23. package/dist/{index-9d141806.js → index-3f0d9936.js} +2 -2
  24. package/dist/{index-f0c9a839.js → index-45413498.js} +2 -2
  25. package/dist/{index-a444a75e.js → index-48712ecf.js} +2 -2
  26. package/dist/{index-25f565eb.js → index-498f0d43.js} +3 -3
  27. package/dist/{index-e89be9e5.js → index-4b57d709.js} +2 -2
  28. package/dist/{index-8dc223b1.js → index-4db331d9.js} +2 -2
  29. package/dist/{index-c55c184f.js → index-4efa1f4f.js} +2 -2
  30. package/dist/{index-0a089cc6.js → index-50d3fde6.js} +2 -2
  31. package/dist/{index-70661b7f.js → index-596d6d94.js} +3 -3
  32. package/dist/{index-2fdb94c7.js → index-5d26cede.js} +2 -2
  33. package/dist/{index-4813c7f1.js → index-5d861698.js} +2 -2
  34. package/dist/{index-22e1d634.js → index-6076b373.js} +4 -4
  35. package/dist/{index-7ac6ada2.js → index-6646f79c.js} +2 -2
  36. package/dist/{index-45b84929.js → index-68fe42db.js} +2 -2
  37. package/dist/{index-941584d4.js → index-692a5d3e.js} +2 -2
  38. package/dist/{index-c78e83ce.js → index-70a886fa.js} +2 -2
  39. package/dist/{index-3b19ca1c.js → index-7246f0ac.js} +2 -2
  40. package/dist/{index-11025802.js → index-72ea1435.js} +2 -2
  41. package/dist/{index-426d0088.js → index-75abfd0b.js} +3 -3
  42. package/dist/{index-406ee306.js → index-771fb839.js} +3 -3
  43. package/dist/{index-c4631c92.js → index-77db9dc3.js} +2 -2
  44. package/dist/{index-eaec6af6.js → index-7962c38c.js} +2 -2
  45. package/dist/{index-b0851a7c.js → index-79e9886a.js} +2 -2
  46. package/dist/{index-0b27bc70.js → index-7c7e3cf2.js} +3 -3
  47. package/dist/{index-e26ff524.js → index-7ee70444.js} +2 -2
  48. package/dist/{index-19c8cad3.js → index-8544b703.js} +2 -2
  49. package/dist/{index-167171cb.js → index-884ca0ad.js} +3 -3
  50. package/dist/{index-11df42e7.js → index-8d1136ab.js} +2 -2
  51. package/dist/{index-9256b465.js → index-96f81a62.js} +2 -2
  52. package/dist/{index-d4f3da3a.js → index-98d0cb2e.js} +2 -2
  53. package/dist/{index-9cd5ba28.js → index-99df0616.js} +1 -1
  54. package/dist/{index-d4360b45.js → index-9ac17c4e.js} +2 -2
  55. package/dist/{index-72bfb394.js → index-a289138d.js} +2 -2
  56. package/dist/{index-3c0a4dd4.js → index-a7c4e4cf.js} +2 -2
  57. package/dist/{index-58fc675c.js → index-b40949c9.js} +3 -3
  58. package/dist/{index-8308b29c.js → index-bbe83af1.js} +2 -2
  59. package/dist/{index-4b0d367c.js → index-be203330.js} +2 -2
  60. package/dist/{index-6c49f281.js → index-be7045c3.js} +2 -2
  61. package/dist/{index-04f99592.js → index-bf11515a.js} +2 -2
  62. package/dist/{index-f2ffd118.js → index-c005483e.js} +2 -2
  63. package/dist/{index-9c7a3be4.js → index-c0a64011.js} +2 -2
  64. package/dist/{index-e4b76618.js → index-c8f9de1b.js} +3 -3
  65. package/dist/{index-9b48a660.js → index-caaa2758.js} +3 -3
  66. package/dist/{index-348edf36.js → index-ce1c63bf.js} +3 -3
  67. package/dist/{index-da52afbf.js → index-cfc4e75b.js} +2 -2
  68. package/dist/{index-97ae6d23.js → index-d286aa2d.js} +2 -2
  69. package/dist/{index-2826871d.js → index-d9c92b3a.js} +2 -2
  70. package/dist/{index-ab7e2cf8.js → index-dbeec37c.js} +2 -2
  71. package/dist/{index-ac5c4411.js → index-e03534a0.js} +2 -2
  72. package/dist/{index-e5e12655.js → index-e14d8716.js} +2 -2
  73. package/dist/{index-9ecb3c10.js → index-e21f2fc1.js} +2 -2
  74. package/dist/{index-20eb9706.js → index-e33f6ea3.js} +2 -2
  75. package/dist/{index-818bb83a.js → index-e65d6447.js} +3 -3
  76. package/dist/{index-cc81880f.js → index-e895a94e.js} +1 -1
  77. package/dist/{index-f41a78a3.js → index-ea8569f5.js} +2 -2
  78. package/dist/{index-c6eb0f0a.js → index-ec082fe0.js} +2 -2
  79. package/dist/{index-ac09234a.js → index-ef5002a8.js} +2 -2
  80. package/dist/{index-ae23c019.js → index-f0d4e816.js} +2 -2
  81. package/dist/{index-69164725.js → index-f0fc1a12.js} +3 -3
  82. package/dist/{index-48a46d8f.js → index-f626b4d6.js} +84 -84
  83. package/dist/{index-ce7f45c1.js → index-f757323a.js} +2 -2
  84. package/dist/{index-a2e59f5e.js → index-f92323d0.js} +2 -2
  85. package/dist/{index-83878b33.js → index-f9931a81.js} +2 -2
  86. package/dist/{index-2a96e9cd.js → index-f9f4c557.js} +2 -2
  87. package/dist/{index-36edee00.js → index-fa0155d4.js} +2 -2
  88. package/dist/{index-bf6bab90.js → index-fba94434.js} +2 -2
  89. package/dist/{index-7d64e1c7.js → index-fbf6f74b.js} +2 -2
  90. package/dist/{index-61b8ab91.js → index-fd682d26.js} +4 -4
  91. package/dist/{index-64080c10.js → index-fd6e0b4e.js} +3 -3
  92. package/dist/index.es.js +2 -2
  93. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
- import { j as A } from "./jsx-runtime-82a9ddf6.js";
1
+ import { j as L } from "./jsx-runtime-82a9ddf6.js";
2
2
  import * as Se from "react";
3
- import U, { useLayoutEffect as $n, useEffect as O, useRef as M, useMemo as N, useCallback as W, useState as Q, createContext as qe, memo as Hn, useReducer as Xn, useContext as Ce } from "react";
3
+ import U, { useLayoutEffect as $n, useEffect as N, useRef as O, useMemo as T, useCallback as W, useState as Q, createContext as qe, memo as Hn, useReducer as Xn, useContext as Ce } from "react";
4
4
  import { c as $, a as st } from "./index-f20f14ba.js";
5
5
  import { unstable_batchedUpdates as nt, createPortal as Wn } from "react-dom";
6
6
  var oe = /* @__PURE__ */ ((e) => (e.default = "default", e.desc = "desc", e.asc = "asc", e))(oe || {});
@@ -165,7 +165,7 @@ const Yn = $("bu-w-full bu-overflow-auto bu-rounded-lg", {
165
165
  function nr() {
166
166
  for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
167
167
  t[n] = arguments[n];
168
- return N(
168
+ return T(
169
169
  () => (r) => {
170
170
  t.forEach((o) => o(r));
171
171
  },
@@ -179,14 +179,14 @@ function Oe(e) {
179
179
  return t === "[object Window]" || // In Electron context the Window object serializes to [object global]
180
180
  t === "[object global]";
181
181
  }
182
- function It(e) {
182
+ function Et(e) {
183
183
  return "nodeType" in e;
184
184
  }
185
185
  function q(e) {
186
186
  var t, n;
187
- return e ? Oe(e) ? e : It(e) && (t = (n = e.ownerDocument) == null ? void 0 : n.defaultView) != null ? t : window : window;
187
+ return e ? Oe(e) ? e : Et(e) && (t = (n = e.ownerDocument) == null ? void 0 : n.defaultView) != null ? t : window : window;
188
188
  }
189
- function Et(e) {
189
+ function It(e) {
190
190
  const {
191
191
  Document: t
192
192
  } = q(e);
@@ -199,11 +199,11 @@ function fn(e) {
199
199
  return e instanceof q(e).SVGElement;
200
200
  }
201
201
  function Me(e) {
202
- return e ? Oe(e) ? e.document : It(e) ? Et(e) ? e : Ge(e) || fn(e) ? e.ownerDocument : document : document : document;
202
+ return e ? Oe(e) ? e.document : Et(e) ? It(e) ? e : Ge(e) || fn(e) ? e.ownerDocument : document : document : document;
203
203
  }
204
- const ue = dt ? $n : O;
204
+ const ue = dt ? $n : N;
205
205
  function kt(e) {
206
- const t = M(e);
206
+ const t = O(e);
207
207
  return ue(() => {
208
208
  t.current = e;
209
209
  }), W(function() {
@@ -213,7 +213,7 @@ function kt(e) {
213
213
  }, []);
214
214
  }
215
215
  function rr() {
216
- const e = M(null), t = W((r, o) => {
216
+ const e = O(null), t = W((r, o) => {
217
217
  e.current = setInterval(r, o);
218
218
  }, []), n = W(() => {
219
219
  e.current !== null && (clearInterval(e.current), e.current = null);
@@ -222,14 +222,14 @@ function rr() {
222
222
  }
223
223
  function Ke(e, t) {
224
224
  t === void 0 && (t = [e]);
225
- const n = M(e);
225
+ const n = O(e);
226
226
  return ue(() => {
227
227
  n.current !== e && (n.current = e);
228
228
  }, t), n;
229
229
  }
230
230
  function Je(e, t) {
231
- const n = M();
232
- return N(
231
+ const n = O();
232
+ return T(
233
233
  () => {
234
234
  const r = e(n.current);
235
235
  return n.current = r, r;
@@ -239,7 +239,7 @@ function Je(e, t) {
239
239
  );
240
240
  }
241
241
  function at(e) {
242
- const t = kt(e), n = M(null), r = W(
242
+ const t = kt(e), n = O(null), r = W(
243
243
  (o) => {
244
244
  o !== n.current && (t == null || t(o, n.current)), n.current = o;
245
245
  },
@@ -249,21 +249,21 @@ function at(e) {
249
249
  return [n, r];
250
250
  }
251
251
  function mt(e) {
252
- const t = M();
253
- return O(() => {
252
+ const t = O();
253
+ return N(() => {
254
254
  t.current = e;
255
255
  }, [e]), t.current;
256
256
  }
257
257
  let pt = {};
258
258
  function _e(e, t) {
259
- return N(() => {
259
+ return T(() => {
260
260
  if (t)
261
261
  return t;
262
262
  const n = pt[e] == null ? 0 : pt[e] + 1;
263
263
  return pt[e] = n, e + "-" + n;
264
264
  }, [e, t]);
265
265
  }
266
- function gn(e) {
266
+ function hn(e) {
267
267
  return function(t) {
268
268
  for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++)
269
269
  r[o - 1] = arguments[o];
@@ -279,7 +279,7 @@ function gn(e) {
279
279
  });
280
280
  };
281
281
  }
282
- const Ne = /* @__PURE__ */ gn(1), lt = /* @__PURE__ */ gn(-1);
282
+ const Ne = /* @__PURE__ */ hn(1), lt = /* @__PURE__ */ hn(-1);
283
283
  function or(e) {
284
284
  return "clientX" in e && "clientY" in e;
285
285
  }
@@ -419,10 +419,10 @@ function ur() {
419
419
  announcement: e
420
420
  };
421
421
  }
422
- const hn = /* @__PURE__ */ qe(null);
422
+ const gn = /* @__PURE__ */ qe(null);
423
423
  function dr(e) {
424
- const t = Ce(hn);
425
- O(() => {
424
+ const t = Ce(gn);
425
+ N(() => {
426
426
  if (!t)
427
427
  throw new Error("useDndMonitor must be used within a children of <DndContext>");
428
428
  return t(e);
@@ -441,13 +441,13 @@ function fr() {
441
441
  });
442
442
  }, [e]), t];
443
443
  }
444
- const gr = {
444
+ const hr = {
445
445
  draggable: `
446
446
  To pick up a draggable item, press the space bar.
447
447
  While dragging, use the arrow keys to move the item.
448
448
  Press space again to drop the item in its new position, or press escape to cancel.
449
449
  `
450
- }, hr = {
450
+ }, gr = {
451
451
  onDragStart(e) {
452
452
  let {
453
453
  active: t
@@ -477,18 +477,18 @@ const gr = {
477
477
  };
478
478
  function br(e) {
479
479
  let {
480
- announcements: t = hr,
480
+ announcements: t = gr,
481
481
  container: n,
482
482
  hiddenTextDescribedById: r,
483
- screenReaderInstructions: o = gr
483
+ screenReaderInstructions: o = hr
484
484
  } = e;
485
485
  const {
486
486
  announce: i,
487
487
  announcement: s
488
488
  } = ur(), a = _e("DndLiveRegion"), [l, d] = Q(!1);
489
- if (O(() => {
489
+ if (N(() => {
490
490
  d(!0);
491
- }, []), dr(N(() => ({
491
+ }, []), dr(T(() => ({
492
492
  onDragStart(c) {
493
493
  let {
494
494
  active: f
@@ -500,41 +500,41 @@ function br(e) {
500
500
  onDragMove(c) {
501
501
  let {
502
502
  active: f,
503
- over: g
503
+ over: h
504
504
  } = c;
505
505
  t.onDragMove && i(t.onDragMove({
506
506
  active: f,
507
- over: g
507
+ over: h
508
508
  }));
509
509
  },
510
510
  onDragOver(c) {
511
511
  let {
512
512
  active: f,
513
- over: g
513
+ over: h
514
514
  } = c;
515
515
  i(t.onDragOver({
516
516
  active: f,
517
- over: g
517
+ over: h
518
518
  }));
519
519
  },
520
520
  onDragEnd(c) {
521
521
  let {
522
522
  active: f,
523
- over: g
523
+ over: h
524
524
  } = c;
525
525
  i(t.onDragEnd({
526
526
  active: f,
527
- over: g
527
+ over: h
528
528
  }));
529
529
  },
530
530
  onDragCancel(c) {
531
531
  let {
532
532
  active: f,
533
- over: g
533
+ over: h
534
534
  } = c;
535
535
  i(t.onDragCancel({
536
536
  active: f,
537
- over: g
537
+ over: h
538
538
  }));
539
539
  }
540
540
  }), [i, t])), !l)
@@ -555,7 +555,7 @@ var z;
555
555
  function ct() {
556
556
  }
557
557
  function Kt(e, t) {
558
- return N(
558
+ return T(
559
559
  () => ({
560
560
  sensor: e,
561
561
  options: t ?? {}
@@ -567,7 +567,7 @@ function Kt(e, t) {
567
567
  function vr() {
568
568
  for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
569
569
  t[n] = arguments[n];
570
- return N(
570
+ return T(
571
571
  () => [...t].filter((r) => r != null),
572
572
  // eslint-disable-next-line react-hooks/exhaustive-deps
573
573
  [...t]
@@ -700,8 +700,8 @@ function Rr(e) {
700
700
  });
701
701
  };
702
702
  }
703
- const Ir = /* @__PURE__ */ Rr(1);
704
- function Er(e) {
703
+ const Er = /* @__PURE__ */ Rr(1);
704
+ function Ir(e) {
705
705
  if (e.startsWith("matrix3d(")) {
706
706
  const t = e.slice(9, -1).split(/, /);
707
707
  return {
@@ -722,7 +722,7 @@ function Er(e) {
722
722
  return null;
723
723
  }
724
724
  function kr(e, t, n) {
725
- const r = Er(t);
725
+ const r = Ir(t);
726
726
  if (!r)
727
727
  return e;
728
728
  const {
@@ -802,7 +802,7 @@ function Tt(e, t) {
802
802
  function r(o) {
803
803
  if (t != null && n.length >= t || !o)
804
804
  return n;
805
- if (Et(o) && o.scrollingElement != null && !n.includes(o.scrollingElement))
805
+ if (It(o) && o.scrollingElement != null && !n.includes(o.scrollingElement))
806
806
  return n.push(o.scrollingElement), n;
807
807
  if (!Ge(o) || fn(o) || n.includes(o))
808
808
  return n;
@@ -816,7 +816,7 @@ function vn(e) {
816
816
  return t ?? null;
817
817
  }
818
818
  function yt(e) {
819
- return !dt || !e ? null : Oe(e) ? e : It(e) ? Et(e) || e === Me(e).scrollingElement ? window : Ge(e) ? e : null : null;
819
+ return !dt || !e ? null : Oe(e) ? e : Et(e) ? It(e) || e === Me(e).scrollingElement ? window : Ge(e) ? e : null : null;
820
820
  }
821
821
  function pn(e) {
822
822
  return Oe(e) ? e.scrollX : e.scrollLeft;
@@ -877,18 +877,18 @@ function Lr(e, t, n, r, o) {
877
877
  isBottom: u,
878
878
  isLeft: c,
879
879
  isRight: f
880
- } = wn(e), g = {
880
+ } = wn(e), h = {
881
881
  x: 0,
882
882
  y: 0
883
883
  }, p = {
884
884
  x: 0,
885
885
  y: 0
886
- }, h = {
886
+ }, g = {
887
887
  height: t.height * o.y,
888
888
  width: t.width * o.x
889
889
  };
890
- return !d && i <= t.top + h.height ? (g.y = B.Backward, p.y = r * Math.abs((t.top + h.height - i) / h.height)) : !u && l >= t.bottom - h.height && (g.y = B.Forward, p.y = r * Math.abs((t.bottom - h.height - l) / h.height)), !f && a >= t.right - h.width ? (g.x = B.Forward, p.x = r * Math.abs((t.right - h.width - a) / h.width)) : !c && s <= t.left + h.width && (g.x = B.Backward, p.x = r * Math.abs((t.left + h.width - s) / h.width)), {
891
- direction: g,
890
+ return !d && i <= t.top + g.height ? (h.y = B.Backward, p.y = r * Math.abs((t.top + g.height - i) / g.height)) : !u && l >= t.bottom - g.height && (h.y = B.Forward, p.y = r * Math.abs((t.bottom - g.height - l) / g.height)), !f && a >= t.right - g.width ? (h.x = B.Forward, p.x = r * Math.abs((t.right - g.width - a) / g.width)) : !c && s <= t.left + g.width && (h.x = B.Backward, p.x = r * Math.abs((t.left + g.width - s) / g.width)), {
891
+ direction: h,
892
892
  speed: p
893
893
  };
894
894
  }
@@ -1001,35 +1001,35 @@ function qt(e) {
1001
1001
  function Hr(e) {
1002
1002
  e.stopPropagation();
1003
1003
  }
1004
- var I;
1004
+ var E;
1005
1005
  (function(e) {
1006
1006
  e.Space = "Space", e.Down = "ArrowDown", e.Right = "ArrowRight", e.Left = "ArrowLeft", e.Up = "ArrowUp", e.Esc = "Escape", e.Enter = "Enter", e.Tab = "Tab";
1007
- })(I || (I = {}));
1007
+ })(E || (E = {}));
1008
1008
  const Sn = {
1009
- start: [I.Space, I.Enter],
1010
- cancel: [I.Esc],
1011
- end: [I.Space, I.Enter, I.Tab]
1009
+ start: [E.Space, E.Enter],
1010
+ cancel: [E.Esc],
1011
+ end: [E.Space, E.Enter, E.Tab]
1012
1012
  }, Xr = (e, t) => {
1013
1013
  let {
1014
1014
  currentCoordinates: n
1015
1015
  } = t;
1016
1016
  switch (e.code) {
1017
- case I.Right:
1017
+ case E.Right:
1018
1018
  return {
1019
1019
  ...n,
1020
1020
  x: n.x + 25
1021
1021
  };
1022
- case I.Left:
1022
+ case E.Left:
1023
1023
  return {
1024
1024
  ...n,
1025
1025
  x: n.x - 25
1026
1026
  };
1027
- case I.Down:
1027
+ case E.Down:
1028
1028
  return {
1029
1029
  ...n,
1030
1030
  y: n.y + 25
1031
1031
  };
1032
- case I.Up:
1032
+ case E.Up:
1033
1033
  return {
1034
1034
  ...n,
1035
1035
  y: n.y - 25
@@ -1090,13 +1090,13 @@ class Ot {
1090
1090
  currentCoordinates: u
1091
1091
  });
1092
1092
  if (c) {
1093
- const f = lt(c, u), g = {
1093
+ const f = lt(c, u), h = {
1094
1094
  x: 0,
1095
1095
  y: 0
1096
1096
  }, {
1097
1097
  scrollableAncestors: p
1098
1098
  } = r.current;
1099
- for (const h of p) {
1099
+ for (const g of p) {
1100
1100
  const v = t.code, {
1101
1101
  isTop: m,
1102
1102
  isRight: x,
@@ -1104,41 +1104,41 @@ class Ot {
1104
1104
  isBottom: D,
1105
1105
  maxScroll: C,
1106
1106
  minScroll: R
1107
- } = wn(h), y = zr(h), w = {
1108
- x: Math.min(v === I.Right ? y.right - y.width / 2 : y.right, Math.max(v === I.Right ? y.left : y.left + y.width / 2, c.x)),
1109
- y: Math.min(v === I.Down ? y.bottom - y.height / 2 : y.bottom, Math.max(v === I.Down ? y.top : y.top + y.height / 2, c.y))
1110
- }, E = v === I.Right && !x || v === I.Left && !S, T = v === I.Down && !D || v === I.Up && !m;
1111
- if (E && w.x !== c.x) {
1112
- const b = h.scrollLeft + f.x, H = v === I.Right && b <= C.x || v === I.Left && b >= R.x;
1107
+ } = wn(g), y = zr(g), w = {
1108
+ x: Math.min(v === E.Right ? y.right - y.width / 2 : y.right, Math.max(v === E.Right ? y.left : y.left + y.width / 2, c.x)),
1109
+ y: Math.min(v === E.Down ? y.bottom - y.height / 2 : y.bottom, Math.max(v === E.Down ? y.top : y.top + y.height / 2, c.y))
1110
+ }, I = v === E.Right && !x || v === E.Left && !S, A = v === E.Down && !D || v === E.Up && !m;
1111
+ if (I && w.x !== c.x) {
1112
+ const b = g.scrollLeft + f.x, H = v === E.Right && b <= C.x || v === E.Left && b >= R.x;
1113
1113
  if (H && !f.y) {
1114
- h.scrollTo({
1114
+ g.scrollTo({
1115
1115
  left: b,
1116
1116
  behavior: a
1117
1117
  });
1118
1118
  return;
1119
1119
  }
1120
- H ? g.x = h.scrollLeft - b : g.x = v === I.Right ? h.scrollLeft - C.x : h.scrollLeft - R.x, g.x && h.scrollBy({
1121
- left: -g.x,
1120
+ H ? h.x = g.scrollLeft - b : h.x = v === E.Right ? g.scrollLeft - C.x : g.scrollLeft - R.x, h.x && g.scrollBy({
1121
+ left: -h.x,
1122
1122
  behavior: a
1123
1123
  });
1124
1124
  break;
1125
- } else if (T && w.y !== c.y) {
1126
- const b = h.scrollTop + f.y, H = v === I.Down && b <= C.y || v === I.Up && b >= R.y;
1125
+ } else if (A && w.y !== c.y) {
1126
+ const b = g.scrollTop + f.y, H = v === E.Down && b <= C.y || v === E.Up && b >= R.y;
1127
1127
  if (H && !f.x) {
1128
- h.scrollTo({
1128
+ g.scrollTo({
1129
1129
  top: b,
1130
1130
  behavior: a
1131
1131
  });
1132
1132
  return;
1133
1133
  }
1134
- H ? g.y = h.scrollTop - b : g.y = v === I.Down ? h.scrollTop - C.y : h.scrollTop - R.y, g.y && h.scrollBy({
1135
- top: -g.y,
1134
+ H ? h.y = g.scrollTop - b : h.y = v === E.Down ? g.scrollTop - C.y : g.scrollTop - R.y, h.y && g.scrollBy({
1135
+ top: -h.y,
1136
1136
  behavior: a
1137
1137
  });
1138
1138
  break;
1139
1139
  }
1140
1140
  }
1141
- this.handleMove(t, Ne(lt(c, this.referenceCoordinates), g));
1141
+ this.handleMove(t, Ne(lt(c, this.referenceCoordinates), h));
1142
1142
  }
1143
1143
  }
1144
1144
  }
@@ -1296,7 +1296,7 @@ class Mt {
1296
1296
  this.detach(), this.activated || t(this.props.active), n();
1297
1297
  }
1298
1298
  handleKeydown(t) {
1299
- t.code === I.Esc && this.handleCancel();
1299
+ t.code === E.Esc && this.handleCancel();
1300
1300
  }
1301
1301
  removeTextSelection() {
1302
1302
  var t;
@@ -1430,16 +1430,16 @@ function Vr(e) {
1430
1430
  delta: c,
1431
1431
  threshold: f
1432
1432
  } = e;
1433
- const g = Gr({
1433
+ const h = Gr({
1434
1434
  delta: c,
1435
1435
  disabled: !i
1436
- }), [p, h] = rr(), v = M({
1436
+ }), [p, g] = rr(), v = O({
1437
1437
  x: 0,
1438
1438
  y: 0
1439
- }), m = M({
1439
+ }), m = O({
1440
1440
  x: 0,
1441
1441
  y: 0
1442
- }), x = N(() => {
1442
+ }), x = T(() => {
1443
1443
  switch (n) {
1444
1444
  case We.Pointer:
1445
1445
  return l ? {
@@ -1451,17 +1451,17 @@ function Vr(e) {
1451
1451
  case We.DraggableRect:
1452
1452
  return o;
1453
1453
  }
1454
- }, [n, o, l]), S = M(null), D = W(() => {
1454
+ }, [n, o, l]), S = O(null), D = W(() => {
1455
1455
  const R = S.current;
1456
1456
  if (!R)
1457
1457
  return;
1458
1458
  const y = v.current.x * m.current.x, w = v.current.y * m.current.y;
1459
1459
  R.scrollBy(y, w);
1460
- }, []), C = N(() => a === ut.TreeOrder ? [...d].reverse() : d, [a, d]);
1461
- O(
1460
+ }, []), C = T(() => a === ut.TreeOrder ? [...d].reverse() : d, [a, d]);
1461
+ N(
1462
1462
  () => {
1463
1463
  if (!i || !d.length || !x) {
1464
- h();
1464
+ g();
1465
1465
  return;
1466
1466
  }
1467
1467
  for (const R of C) {
@@ -1471,13 +1471,13 @@ function Vr(e) {
1471
1471
  if (!w)
1472
1472
  continue;
1473
1473
  const {
1474
- direction: E,
1475
- speed: T
1474
+ direction: I,
1475
+ speed: A
1476
1476
  } = Lr(R, w, x, t, f);
1477
1477
  for (const b of ["x", "y"])
1478
- g[b][E[b]] || (T[b] = 0, E[b] = 0);
1479
- if (T.x > 0 || T.y > 0) {
1480
- h(), S.current = R, p(D, s), v.current = T, m.current = E;
1478
+ h[b][I[b]] || (A[b] = 0, I[b] = 0);
1479
+ if (A.x > 0 || A.y > 0) {
1480
+ g(), S.current = R, p(D, s), v.current = A, m.current = I;
1481
1481
  return;
1482
1482
  }
1483
1483
  }
@@ -1487,20 +1487,20 @@ function Vr(e) {
1487
1487
  }, m.current = {
1488
1488
  x: 0,
1489
1489
  y: 0
1490
- }, h();
1490
+ }, g();
1491
1491
  },
1492
1492
  // eslint-disable-next-line react-hooks/exhaustive-deps
1493
1493
  [
1494
1494
  t,
1495
1495
  D,
1496
1496
  r,
1497
- h,
1497
+ g,
1498
1498
  i,
1499
1499
  s,
1500
1500
  // eslint-disable-next-line react-hooks/exhaustive-deps
1501
1501
  JSON.stringify(x),
1502
1502
  // eslint-disable-next-line react-hooks/exhaustive-deps
1503
- JSON.stringify(g),
1503
+ JSON.stringify(h),
1504
1504
  p,
1505
1505
  d,
1506
1506
  C,
@@ -1553,7 +1553,7 @@ function Jr(e, t) {
1553
1553
  }, [r, t]);
1554
1554
  }
1555
1555
  function _r(e, t) {
1556
- return N(() => e.reduce((n, r) => {
1556
+ return T(() => e.reduce((n, r) => {
1557
1557
  const {
1558
1558
  sensor: o
1559
1559
  } = r, i = o.activators.map((s) => ({
@@ -1582,9 +1582,9 @@ function Qr(e, t) {
1582
1582
  frequency: a,
1583
1583
  measure: l,
1584
1584
  strategy: d
1585
- } = o, u = M(e), c = v(), f = Ke(c), g = W(function(m) {
1585
+ } = o, u = O(e), c = v(), f = Ke(c), h = W(function(m) {
1586
1586
  m === void 0 && (m = []), !f.current && s((x) => x === null ? m : x.concat(m.filter((S) => !x.includes(S))));
1587
- }, [f]), p = M(null), h = Je((m) => {
1587
+ }, [f]), p = O(null), g = Je((m) => {
1588
1588
  if (c && !n)
1589
1589
  return _t;
1590
1590
  if (!m || m === _t || u.current !== e || i != null) {
@@ -1603,31 +1603,31 @@ function Qr(e, t) {
1603
1603
  }
1604
1604
  return m;
1605
1605
  }, [e, i, n, c, l]);
1606
- return O(() => {
1606
+ return N(() => {
1607
1607
  u.current = e;
1608
- }, [e]), O(
1608
+ }, [e]), N(
1609
1609
  () => {
1610
- c || g();
1610
+ c || h();
1611
1611
  },
1612
1612
  // eslint-disable-next-line react-hooks/exhaustive-deps
1613
1613
  [n, c]
1614
- ), O(
1614
+ ), N(
1615
1615
  () => {
1616
1616
  i && i.length > 0 && s(null);
1617
1617
  },
1618
1618
  //eslint-disable-next-line react-hooks/exhaustive-deps
1619
1619
  [JSON.stringify(i)]
1620
- ), O(
1620
+ ), N(
1621
1621
  () => {
1622
1622
  c || typeof a != "number" || p.current !== null || (p.current = setTimeout(() => {
1623
- g(), p.current = null;
1623
+ h(), p.current = null;
1624
1624
  }, a));
1625
1625
  },
1626
1626
  // eslint-disable-next-line react-hooks/exhaustive-deps
1627
- [a, c, g, ...r]
1627
+ [a, c, h, ...r]
1628
1628
  ), {
1629
- droppableRects: h,
1630
- measureDroppableContainers: g,
1629
+ droppableRects: g,
1630
+ measureDroppableContainers: h,
1631
1631
  measuringScheduled: i != null
1632
1632
  };
1633
1633
  function v() {
@@ -1652,7 +1652,7 @@ function eo(e) {
1652
1652
  callback: t,
1653
1653
  disabled: n
1654
1654
  } = e;
1655
- const r = kt(t), o = N(() => {
1655
+ const r = kt(t), o = T(() => {
1656
1656
  if (n || typeof window > "u" || typeof window.MutationObserver > "u")
1657
1657
  return;
1658
1658
  const {
@@ -1660,14 +1660,14 @@ function eo(e) {
1660
1660
  } = window;
1661
1661
  return new i(r);
1662
1662
  }, [r, n]);
1663
- return O(() => () => o == null ? void 0 : o.disconnect(), [o]), o;
1663
+ return N(() => () => o == null ? void 0 : o.disconnect(), [o]), o;
1664
1664
  }
1665
1665
  function ft(e) {
1666
1666
  let {
1667
1667
  callback: t,
1668
1668
  disabled: n
1669
1669
  } = e;
1670
- const r = kt(t), o = N(
1670
+ const r = kt(t), o = T(
1671
1671
  () => {
1672
1672
  if (n || typeof window > "u" || typeof window.ResizeObserver > "u")
1673
1673
  return;
@@ -1679,7 +1679,7 @@ function ft(e) {
1679
1679
  // eslint-disable-next-line react-hooks/exhaustive-deps
1680
1680
  [n]
1681
1681
  );
1682
- return O(() => () => o == null ? void 0 : o.disconnect(), [o]), o;
1682
+ return N(() => () => o == null ? void 0 : o.disconnect(), [o]), o;
1683
1683
  }
1684
1684
  function to(e) {
1685
1685
  return new Nt(Le(e), e);
@@ -1729,17 +1729,17 @@ function no(e) {
1729
1729
  }
1730
1730
  const Zt = [];
1731
1731
  function ro(e) {
1732
- const t = M(e), n = Je((r) => e ? r && r !== Zt && e && t.current && e.parentNode === t.current.parentNode ? r : Tt(e) : Zt, [e]);
1733
- return O(() => {
1732
+ const t = O(e), n = Je((r) => e ? r && r !== Zt && e && t.current && e.parentNode === t.current.parentNode ? r : Tt(e) : Zt, [e]);
1733
+ return N(() => {
1734
1734
  t.current = e;
1735
1735
  }, [e]), n;
1736
1736
  }
1737
1737
  function oo(e) {
1738
- const [t, n] = Q(null), r = M(e), o = W((i) => {
1738
+ const [t, n] = Q(null), r = O(e), o = W((i) => {
1739
1739
  const s = yt(i.target);
1740
1740
  s && n((a) => a ? (a.set(s, Dt(s)), new Map(a)) : null);
1741
1741
  }, []);
1742
- return O(() => {
1742
+ return N(() => {
1743
1743
  const i = r.current;
1744
1744
  if (e !== i) {
1745
1745
  s(i);
@@ -1760,24 +1760,24 @@ function oo(e) {
1760
1760
  d == null || d.removeEventListener("scroll", o);
1761
1761
  });
1762
1762
  }
1763
- }, [o, e]), N(() => e.length ? t ? Array.from(t.values()).reduce((i, s) => Ne(i, s), ie) : mn(e) : ie, [e, t]);
1763
+ }, [o, e]), T(() => e.length ? t ? Array.from(t.values()).reduce((i, s) => Ne(i, s), ie) : mn(e) : ie, [e, t]);
1764
1764
  }
1765
1765
  function en(e, t) {
1766
1766
  t === void 0 && (t = []);
1767
- const n = M(null);
1768
- return O(
1767
+ const n = O(null);
1768
+ return N(
1769
1769
  () => {
1770
1770
  n.current = null;
1771
1771
  },
1772
1772
  // eslint-disable-next-line react-hooks/exhaustive-deps
1773
1773
  t
1774
- ), O(() => {
1774
+ ), N(() => {
1775
1775
  const r = e !== ie;
1776
1776
  r && !n.current && (n.current = e), !r && n.current && (n.current = null);
1777
1777
  }, [e]), n.current ? lt(e, n.current) : ie;
1778
1778
  }
1779
1779
  function io(e) {
1780
- O(
1780
+ N(
1781
1781
  () => {
1782
1782
  if (!dt)
1783
1783
  return;
@@ -1803,7 +1803,7 @@ function io(e) {
1803
1803
  );
1804
1804
  }
1805
1805
  function so(e, t) {
1806
- return N(() => e.reduce((n, r) => {
1806
+ return T(() => e.reduce((n, r) => {
1807
1807
  let {
1808
1808
  eventName: o,
1809
1809
  handler: i
@@ -1814,7 +1814,7 @@ function so(e, t) {
1814
1814
  }, {}), [e, t]);
1815
1815
  }
1816
1816
  function Cn(e) {
1817
- return N(() => e ? Tr(e) : null, [e]);
1817
+ return T(() => e ? Tr(e) : null, [e]);
1818
1818
  }
1819
1819
  const tn = [];
1820
1820
  function ao(e, t) {
@@ -1863,7 +1863,7 @@ function co(e) {
1863
1863
  const u = lo(d);
1864
1864
  i == null || i.disconnect(), u && (i == null || i.observe(u)), r(u ? t(u) : null);
1865
1865
  }, [t, i]), [a, l] = at(s);
1866
- return N(() => ({
1866
+ return T(() => ({
1867
1867
  nodeRef: a,
1868
1868
  rect: n,
1869
1869
  setRef: l
@@ -1911,7 +1911,7 @@ class Ye extends Map {
1911
1911
  return (n = (r = this.get(t)) == null ? void 0 : r.node.current) != null ? n : void 0;
1912
1912
  }
1913
1913
  }
1914
- const go = {
1914
+ const ho = {
1915
1915
  activatorEvent: null,
1916
1916
  active: null,
1917
1917
  activeNode: null,
@@ -1935,7 +1935,7 @@ const go = {
1935
1935
  measureDroppableContainers: ct,
1936
1936
  windowRect: null,
1937
1937
  measuringScheduled: !1
1938
- }, ho = {
1938
+ }, go = {
1939
1939
  activatorEvent: null,
1940
1940
  activators: [],
1941
1941
  active: null,
@@ -1947,7 +1947,7 @@ const go = {
1947
1947
  draggableNodes: /* @__PURE__ */ new Map(),
1948
1948
  over: null,
1949
1949
  measureDroppableContainers: ct
1950
- }, gt = /* @__PURE__ */ qe(ho), Rn = /* @__PURE__ */ qe(go);
1950
+ }, ht = /* @__PURE__ */ qe(go), Rn = /* @__PURE__ */ qe(ho);
1951
1951
  function bo() {
1952
1952
  return {
1953
1953
  draggable: {
@@ -2068,8 +2068,8 @@ function po(e) {
2068
2068
  active: n,
2069
2069
  activatorEvent: r,
2070
2070
  draggableNodes: o
2071
- } = Ce(gt), i = mt(r), s = mt(n == null ? void 0 : n.id);
2072
- return O(() => {
2071
+ } = Ce(ht), i = mt(r), s = mt(n == null ? void 0 : n.id);
2072
+ return N(() => {
2073
2073
  if (!t && !r && i && s != null) {
2074
2074
  if (!At(i) || document.activeElement === i.target)
2075
2075
  return;
@@ -2107,7 +2107,7 @@ function yo(e, t) {
2107
2107
  }), n) : n;
2108
2108
  }
2109
2109
  function xo(e) {
2110
- return N(
2110
+ return T(
2111
2111
  () => ({
2112
2112
  draggable: {
2113
2113
  ...it.draggable,
@@ -2133,7 +2133,7 @@ function wo(e) {
2133
2133
  initialRect: r,
2134
2134
  config: o = !0
2135
2135
  } = e;
2136
- const i = M(!1), {
2136
+ const i = O(!1), {
2137
2137
  x: s,
2138
2138
  y: a
2139
2139
  } = typeof o == "boolean" ? {
@@ -2160,7 +2160,7 @@ function wo(e) {
2160
2160
  }
2161
2161
  }, [t, s, a, r, n]);
2162
2162
  }
2163
- const In = /* @__PURE__ */ qe({
2163
+ const En = /* @__PURE__ */ qe({
2164
2164
  ...ie,
2165
2165
  scaleX: 1,
2166
2166
  scaleY: 1
@@ -2179,22 +2179,22 @@ const mo = /* @__PURE__ */ Hn(function(t) {
2179
2179
  sensors: u = uo,
2180
2180
  collisionDetection: c = Dr,
2181
2181
  measuring: f,
2182
- modifiers: g,
2182
+ modifiers: h,
2183
2183
  ...p
2184
2184
  } = t;
2185
- const h = Xn(vo, void 0, bo), [v, m] = h, [x, S] = fr(), [D, C] = Q(me.Uninitialized), R = D === me.Initialized, {
2185
+ const g = Xn(vo, void 0, bo), [v, m] = g, [x, S] = fr(), [D, C] = Q(me.Uninitialized), R = D === me.Initialized, {
2186
2186
  draggable: {
2187
2187
  active: y,
2188
2188
  nodes: w,
2189
- translate: E
2189
+ translate: I
2190
2190
  },
2191
2191
  droppable: {
2192
- containers: T
2192
+ containers: A
2193
2193
  }
2194
- } = v, b = y != null ? w.get(y) : null, H = M({
2194
+ } = v, b = y != null ? w.get(y) : null, H = O({
2195
2195
  initial: null,
2196
2196
  translated: null
2197
- }), j = N(() => {
2197
+ }), j = T(() => {
2198
2198
  var X;
2199
2199
  return y != null ? {
2200
2200
  id: y,
@@ -2202,22 +2202,22 @@ const mo = /* @__PURE__ */ Hn(function(t) {
2202
2202
  data: (X = b == null ? void 0 : b.data) != null ? X : fo,
2203
2203
  rect: H
2204
2204
  } : null;
2205
- }, [y, b]), L = M(null), [ne, Y] = Q(null), [P, se] = Q(null), re = Ke(p, Object.values(p)), ze = _e("DndDescribedBy", s), Qe = N(() => T.getEnabled(), [T]), K = xo(f), {
2205
+ }, [y, b]), M = O(null), [ne, Y] = Q(null), [P, se] = Q(null), re = Ke(p, Object.values(p)), ze = _e("DndDescribedBy", s), Qe = T(() => A.getEnabled(), [A]), K = xo(f), {
2206
2206
  droppableRects: de,
2207
2207
  measureDroppableContainers: De,
2208
2208
  measuringScheduled: je
2209
2209
  } = Qr(Qe, {
2210
2210
  dragging: R,
2211
- dependencies: [E.x, E.y],
2211
+ dependencies: [I.x, I.y],
2212
2212
  config: K.droppable
2213
- }), Z = Jr(w, y), Ze = N(() => P ? St(P) : null, [P]), be = Fn(), fe = Zr(Z, K.draggable.measure);
2213
+ }), Z = Jr(w, y), Ze = T(() => P ? St(P) : null, [P]), be = Fn(), fe = Zr(Z, K.draggable.measure);
2214
2214
  wo({
2215
2215
  activeNode: y != null ? w.get(y) : null,
2216
2216
  config: be.layoutShiftCompensation,
2217
2217
  initialRect: fe,
2218
2218
  measure: K.draggable.measure
2219
2219
  });
2220
- const k = Qt(Z, K.draggable.measure, fe), Pe = Qt(Z ? Z.parentElement : null), ae = M({
2220
+ const k = Qt(Z, K.draggable.measure, fe), Pe = Qt(Z ? Z.parentElement : null), ae = O({
2221
2221
  activatorEvent: null,
2222
2222
  active: null,
2223
2223
  activeNode: Z,
@@ -2227,16 +2227,16 @@ const mo = /* @__PURE__ */ Hn(function(t) {
2227
2227
  draggableNodes: w,
2228
2228
  draggingNode: null,
2229
2229
  draggingNodeRect: null,
2230
- droppableContainers: T,
2230
+ droppableContainers: A,
2231
2231
  over: null,
2232
2232
  scrollableAncestors: [],
2233
2233
  scrollAdjustedTranslate: null
2234
- }), Re = T.getNodeFor((n = ae.current.over) == null ? void 0 : n.id), ge = co({
2234
+ }), Re = A.getNodeFor((n = ae.current.over) == null ? void 0 : n.id), he = co({
2235
2235
  measure: K.dragOverlay.measure
2236
- }), Ie = (r = ge.nodeRef.current) != null ? r : Z, Ee = R ? (o = ge.rect) != null ? o : k : null, jt = !!(ge.nodeRef.current && ge.rect), Pt = no(jt ? null : k), ht = Cn(Ie ? q(Ie) : null), ve = ro(R ? Re ?? Z : null), et = ao(ve), tt = yo(g, {
2236
+ }), Ee = (r = he.nodeRef.current) != null ? r : Z, Ie = R ? (o = he.rect) != null ? o : k : null, jt = !!(he.nodeRef.current && he.rect), Pt = no(jt ? null : k), gt = Cn(Ee ? q(Ee) : null), ve = ro(R ? Re ?? Z : null), et = ao(ve), tt = yo(h, {
2237
2237
  transform: {
2238
- x: E.x - Pt.x,
2239
- y: E.y - Pt.y,
2238
+ x: I.x - Pt.x,
2239
+ y: I.y - Pt.y,
2240
2240
  scaleX: 1,
2241
2241
  scaleY: 1
2242
2242
  },
@@ -2244,31 +2244,31 @@ const mo = /* @__PURE__ */ Hn(function(t) {
2244
2244
  active: j,
2245
2245
  activeNodeRect: k,
2246
2246
  containerNodeRect: Pe,
2247
- draggingNodeRect: Ee,
2247
+ draggingNodeRect: Ie,
2248
2248
  over: ae.current.over,
2249
- overlayNodeRect: ge.rect,
2249
+ overlayNodeRect: he.rect,
2250
2250
  scrollableAncestors: ve,
2251
2251
  scrollableAncestorRects: et,
2252
- windowRect: ht
2253
- }), Bt = Ze ? Ne(Ze, E) : null, Ft = oo(ve), On = en(Ft), Mn = en(Ft, [k]), ke = Ne(tt, On), Ae = Ee ? Ir(Ee, tt) : null, Be = j && Ae ? c({
2252
+ windowRect: gt
2253
+ }), Bt = Ze ? Ne(Ze, I) : null, Ft = oo(ve), On = en(Ft), Mn = en(Ft, [k]), ke = Ne(tt, On), Ae = Ie ? Er(Ie, tt) : null, Be = j && Ae ? c({
2254
2254
  active: j,
2255
2255
  collisionRect: Ae,
2256
2256
  droppableRects: de,
2257
2257
  droppableContainers: Qe,
2258
2258
  pointerCoordinates: Bt
2259
- }) : null, $t = wr(Be, "id"), [pe, Ht] = Q(null), Ln = jt ? tt : Ne(tt, Mn), zn = Cr(Ln, (i = pe == null ? void 0 : pe.rect) != null ? i : null, k), bt = M(null), Xt = W(
2259
+ }) : null, $t = wr(Be, "id"), [pe, Ht] = Q(null), Ln = jt ? tt : Ne(tt, Mn), zn = Cr(Ln, (i = pe == null ? void 0 : pe.rect) != null ? i : null, k), bt = O(null), Xt = W(
2260
2260
  (X, G) => {
2261
2261
  let {
2262
2262
  sensor: J,
2263
2263
  options: ye
2264
2264
  } = G;
2265
- if (L.current == null)
2265
+ if (M.current == null)
2266
2266
  return;
2267
- const ee = w.get(L.current);
2267
+ const ee = w.get(M.current);
2268
2268
  if (!ee)
2269
2269
  return;
2270
2270
  const _ = X.nativeEvent, le = new J({
2271
- active: L.current,
2271
+ active: M.current,
2272
2272
  activeNode: ee,
2273
2273
  event: _,
2274
2274
  options: ye,
@@ -2280,15 +2280,15 @@ const mo = /* @__PURE__ */ Hn(function(t) {
2280
2280
  return;
2281
2281
  const {
2282
2282
  onDragAbort: ce
2283
- } = re.current, he = {
2283
+ } = re.current, ge = {
2284
2284
  id: F
2285
2285
  };
2286
- ce == null || ce(he), x({
2286
+ ce == null || ce(ge), x({
2287
2287
  type: "onDragAbort",
2288
- event: he
2288
+ event: ge
2289
2289
  });
2290
2290
  },
2291
- onPending(F, xe, ce, he) {
2291
+ onPending(F, xe, ce, ge) {
2292
2292
  if (!w.get(F))
2293
2293
  return;
2294
2294
  const {
@@ -2297,7 +2297,7 @@ const mo = /* @__PURE__ */ Hn(function(t) {
2297
2297
  id: F,
2298
2298
  constraint: xe,
2299
2299
  initialCoordinates: ce,
2300
- offset: he
2300
+ offset: ge
2301
2301
  };
2302
2302
  $e == null || $e(we), x({
2303
2303
  type: "onDragPending",
@@ -2305,14 +2305,14 @@ const mo = /* @__PURE__ */ Hn(function(t) {
2305
2305
  });
2306
2306
  },
2307
2307
  onStart(F) {
2308
- const xe = L.current;
2308
+ const xe = M.current;
2309
2309
  if (xe == null)
2310
2310
  return;
2311
2311
  const ce = w.get(xe);
2312
2312
  if (!ce)
2313
2313
  return;
2314
2314
  const {
2315
- onDragStart: he
2315
+ onDragStart: ge
2316
2316
  } = re.current, Fe = {
2317
2317
  activatorEvent: _,
2318
2318
  active: {
@@ -2322,7 +2322,7 @@ const mo = /* @__PURE__ */ Hn(function(t) {
2322
2322
  }
2323
2323
  };
2324
2324
  nt(() => {
2325
- he == null || he(Fe), C(me.Initializing), m({
2325
+ ge == null || ge(Fe), C(me.Initializing), m({
2326
2326
  type: z.DragStart,
2327
2327
  initialCoordinates: F,
2328
2328
  active: xe
@@ -2346,7 +2346,7 @@ const mo = /* @__PURE__ */ Hn(function(t) {
2346
2346
  return async function() {
2347
2347
  const {
2348
2348
  active: ce,
2349
- collisions: he,
2349
+ collisions: ge,
2350
2350
  over: Fe,
2351
2351
  scrollAdjustedTranslate: $e
2352
2352
  } = ae.current;
@@ -2358,12 +2358,12 @@ const mo = /* @__PURE__ */ Hn(function(t) {
2358
2358
  we = {
2359
2359
  activatorEvent: _,
2360
2360
  active: ce,
2361
- collisions: he,
2361
+ collisions: ge,
2362
2362
  delta: $e,
2363
2363
  over: Fe
2364
2364
  }, F === z.DragEnd && typeof He == "function" && await Promise.resolve(He(we)) && (F = z.DragCancel);
2365
2365
  }
2366
- L.current = null, nt(() => {
2366
+ M.current = null, nt(() => {
2367
2367
  m({
2368
2368
  type: F
2369
2369
  }), C(me.Uninitialized), Ht(null), Y(null), se(null), bt.current = null;
@@ -2385,7 +2385,7 @@ const mo = /* @__PURE__ */ Hn(function(t) {
2385
2385
  const ee = J.nativeEvent, _ = w.get(ye);
2386
2386
  if (
2387
2387
  // Another sensor is already instantiating
2388
- L.current !== null || // No active draggable
2388
+ M.current !== null || // No active draggable
2389
2389
  !_ || // Event has already been captured
2390
2390
  ee.dndKit || ee.defaultPrevented
2391
2391
  )
@@ -2395,11 +2395,11 @@ const mo = /* @__PURE__ */ Hn(function(t) {
2395
2395
  };
2396
2396
  X(J, G.options, le) === !0 && (ee.dndKit = {
2397
2397
  capturedBy: G.sensor
2398
- }, L.current = ye, Xt(J, G));
2398
+ }, M.current = ye, Xt(J, G));
2399
2399
  }, [w, Xt]), Wt = _r(u, jn);
2400
2400
  io(u), ue(() => {
2401
2401
  k && D === me.Initializing && C(me.Initialized);
2402
- }, [k, D]), O(
2402
+ }, [k, D]), N(
2403
2403
  () => {
2404
2404
  const {
2405
2405
  onDragMove: X
@@ -2430,7 +2430,7 @@ const mo = /* @__PURE__ */ Hn(function(t) {
2430
2430
  },
2431
2431
  // eslint-disable-next-line react-hooks/exhaustive-deps
2432
2432
  [ke.x, ke.y]
2433
- ), O(
2433
+ ), N(
2434
2434
  () => {
2435
2435
  const {
2436
2436
  active: X,
@@ -2439,7 +2439,7 @@ const mo = /* @__PURE__ */ Hn(function(t) {
2439
2439
  droppableContainers: ye,
2440
2440
  scrollAdjustedTranslate: ee
2441
2441
  } = ae.current;
2442
- if (!X || L.current == null || !G || !ee)
2442
+ if (!X || M.current == null || !G || !ee)
2443
2443
  return;
2444
2444
  const {
2445
2445
  onDragOver: _
@@ -2476,34 +2476,34 @@ const mo = /* @__PURE__ */ Hn(function(t) {
2476
2476
  collisions: Be,
2477
2477
  droppableRects: de,
2478
2478
  draggableNodes: w,
2479
- draggingNode: Ie,
2480
- draggingNodeRect: Ee,
2481
- droppableContainers: T,
2479
+ draggingNode: Ee,
2480
+ draggingNodeRect: Ie,
2481
+ droppableContainers: A,
2482
2482
  over: pe,
2483
2483
  scrollableAncestors: ve,
2484
2484
  scrollAdjustedTranslate: ke
2485
2485
  }, H.current = {
2486
- initial: Ee,
2486
+ initial: Ie,
2487
2487
  translated: Ae
2488
2488
  };
2489
- }, [j, Z, Be, Ae, w, Ie, Ee, de, T, pe, ve, ke]), Vr({
2489
+ }, [j, Z, Be, Ae, w, Ee, Ie, de, A, pe, ve, ke]), Vr({
2490
2490
  ...be,
2491
- delta: E,
2491
+ delta: I,
2492
2492
  draggingRect: Ae,
2493
2493
  pointerCoordinates: Bt,
2494
2494
  scrollableAncestors: ve,
2495
2495
  scrollableAncestorRects: et
2496
2496
  });
2497
- const Pn = N(() => ({
2497
+ const Pn = T(() => ({
2498
2498
  active: j,
2499
2499
  activeNode: Z,
2500
2500
  activeNodeRect: k,
2501
2501
  activatorEvent: P,
2502
2502
  collisions: Be,
2503
2503
  containerNodeRect: Pe,
2504
- dragOverlay: ge,
2504
+ dragOverlay: he,
2505
2505
  draggableNodes: w,
2506
- droppableContainers: T,
2506
+ droppableContainers: A,
2507
2507
  droppableRects: de,
2508
2508
  over: pe,
2509
2509
  measureDroppableContainers: De,
@@ -2511,8 +2511,8 @@ const mo = /* @__PURE__ */ Hn(function(t) {
2511
2511
  scrollableAncestorRects: et,
2512
2512
  measuringConfiguration: K,
2513
2513
  measuringScheduled: je,
2514
- windowRect: ht
2515
- }), [j, Z, k, P, Be, Pe, ge, w, T, de, pe, De, ve, et, K, je, ht]), Bn = N(() => ({
2514
+ windowRect: gt
2515
+ }), [j, Z, k, P, Be, Pe, he, w, A, de, pe, De, ve, et, K, je, gt]), Bn = T(() => ({
2516
2516
  activatorEvent: P,
2517
2517
  activators: Wt,
2518
2518
  active: j,
@@ -2525,13 +2525,13 @@ const mo = /* @__PURE__ */ Hn(function(t) {
2525
2525
  over: pe,
2526
2526
  measureDroppableContainers: De
2527
2527
  }), [P, Wt, j, k, m, ze, w, pe, De]);
2528
- return U.createElement(hn.Provider, {
2528
+ return U.createElement(gn.Provider, {
2529
2529
  value: S
2530
- }, U.createElement(gt.Provider, {
2530
+ }, U.createElement(ht.Provider, {
2531
2531
  value: Bn
2532
2532
  }, U.createElement(Rn.Provider, {
2533
2533
  value: Pn
2534
- }, U.createElement(In.Provider, {
2534
+ }, U.createElement(En.Provider, {
2535
2535
  value: zn
2536
2536
  }, d)), U.createElement(po, {
2537
2537
  disabled: (a == null ? void 0 : a.restoreFocus) === !1
@@ -2564,11 +2564,11 @@ function Co(e) {
2564
2564
  ariaDescribedById: u,
2565
2565
  draggableNodes: c,
2566
2566
  over: f
2567
- } = Ce(gt), {
2568
- role: g = nn,
2567
+ } = Ce(ht), {
2568
+ role: h = nn,
2569
2569
  roleDescription: p = "draggable",
2570
- tabIndex: h = 0
2571
- } = o ?? {}, v = (l == null ? void 0 : l.id) === t, m = Ce(v ? In : So), [x, S] = at(), [D, C] = at(), R = so(s, t), y = Ke(n);
2570
+ tabIndex: g = 0
2571
+ } = o ?? {}, v = (l == null ? void 0 : l.id) === t, m = Ce(v ? En : So), [x, S] = at(), [D, C] = at(), R = so(s, t), y = Ke(n);
2572
2572
  ue(
2573
2573
  () => (c.set(t, {
2574
2574
  id: t,
@@ -2577,20 +2577,20 @@ function Co(e) {
2577
2577
  activatorNode: D,
2578
2578
  data: y
2579
2579
  }), () => {
2580
- const E = c.get(t);
2581
- E && E.key === i && c.delete(t);
2580
+ const I = c.get(t);
2581
+ I && I.key === i && c.delete(t);
2582
2582
  }),
2583
2583
  // eslint-disable-next-line react-hooks/exhaustive-deps
2584
2584
  [c, t]
2585
2585
  );
2586
- const w = N(() => ({
2587
- role: g,
2588
- tabIndex: h,
2586
+ const w = T(() => ({
2587
+ role: h,
2588
+ tabIndex: g,
2589
2589
  "aria-disabled": r,
2590
- "aria-pressed": v && g === nn ? !0 : void 0,
2590
+ "aria-pressed": v && h === nn ? !0 : void 0,
2591
2591
  "aria-roledescription": p,
2592
2592
  "aria-describedby": u.draggable
2593
- }), [r, g, h, v, p, u.draggable]);
2593
+ }), [r, h, g, v, p, u.draggable]);
2594
2594
  return {
2595
2595
  active: l,
2596
2596
  activatorEvent: a,
@@ -2608,7 +2608,7 @@ function Co(e) {
2608
2608
  function Ro() {
2609
2609
  return Ce(Rn);
2610
2610
  }
2611
- const Io = "Droppable", Eo = {
2611
+ const Eo = "Droppable", Io = {
2612
2612
  timeout: 25
2613
2613
  };
2614
2614
  function ko(e) {
@@ -2618,28 +2618,28 @@ function ko(e) {
2618
2618
  id: r,
2619
2619
  resizeObserverConfig: o
2620
2620
  } = e;
2621
- const i = _e(Io), {
2621
+ const i = _e(Eo), {
2622
2622
  active: s,
2623
2623
  dispatch: a,
2624
2624
  over: l,
2625
2625
  measureDroppableContainers: d
2626
- } = Ce(gt), u = M({
2626
+ } = Ce(ht), u = O({
2627
2627
  disabled: n
2628
- }), c = M(!1), f = M(null), g = M(null), {
2628
+ }), c = O(!1), f = O(null), h = O(null), {
2629
2629
  disabled: p,
2630
- updateMeasurementsFor: h,
2630
+ updateMeasurementsFor: g,
2631
2631
  timeout: v
2632
2632
  } = {
2633
- ...Eo,
2633
+ ...Io,
2634
2634
  ...o
2635
- }, m = Ke(h ?? r), x = W(
2635
+ }, m = Ke(g ?? r), x = W(
2636
2636
  () => {
2637
2637
  if (!c.current) {
2638
2638
  c.current = !0;
2639
2639
  return;
2640
2640
  }
2641
- g.current != null && clearTimeout(g.current), g.current = setTimeout(() => {
2642
- d(Array.isArray(m.current) ? m.current : [m.current]), g.current = null;
2641
+ h.current != null && clearTimeout(h.current), h.current = setTimeout(() => {
2642
+ d(Array.isArray(m.current) ? m.current : [m.current]), h.current = null;
2643
2643
  }, v);
2644
2644
  },
2645
2645
  //eslint-disable-next-line react-hooks/exhaustive-deps
@@ -2647,12 +2647,12 @@ function ko(e) {
2647
2647
  ), S = ft({
2648
2648
  callback: x,
2649
2649
  disabled: p || !s
2650
- }), D = W((w, E) => {
2651
- S && (E && (S.unobserve(E), c.current = !1), w && S.observe(w));
2650
+ }), D = W((w, I) => {
2651
+ S && (I && (S.unobserve(I), c.current = !1), w && S.observe(w));
2652
2652
  }, [S]), [C, R] = at(D), y = Ke(t);
2653
- return O(() => {
2653
+ return N(() => {
2654
2654
  !S || !C.current || (S.disconnect(), c.current = !1, S.observe(C.current));
2655
- }, [C, S]), O(
2655
+ }, [C, S]), N(
2656
2656
  () => (a({
2657
2657
  type: z.RegisterDroppable,
2658
2658
  element: {
@@ -2670,7 +2670,7 @@ function ko(e) {
2670
2670
  })),
2671
2671
  // eslint-disable-next-line react-hooks/exhaustive-deps
2672
2672
  [r]
2673
- ), O(() => {
2673
+ ), N(() => {
2674
2674
  n !== u.current.disabled && (a({
2675
2675
  type: z.SetDroppableDisabled,
2676
2676
  id: r,
@@ -2757,7 +2757,7 @@ function Mo(e, t, n) {
2757
2757
  const r = e[t], o = e[t - 1], i = e[t + 1];
2758
2758
  return !r || !o && !i ? 0 : n < t ? o ? r.left - (o.left + o.width) : i.left - (r.left + r.width) : i ? i.left - (r.left + r.width) : r.left - (o.left + o.width);
2759
2759
  }
2760
- const En = (e) => {
2760
+ const In = (e) => {
2761
2761
  let {
2762
2762
  rects: t,
2763
2763
  activeIndex: n,
@@ -2779,7 +2779,7 @@ const En = (e) => {
2779
2779
  overIndex: -1,
2780
2780
  useDragOverlay: !1,
2781
2781
  sortedRects: [],
2782
- strategy: En,
2782
+ strategy: In,
2783
2783
  disabled: {
2784
2784
  draggable: !1,
2785
2785
  droppable: !1
@@ -2790,7 +2790,7 @@ function Lo(e) {
2790
2790
  children: t,
2791
2791
  id: n,
2792
2792
  items: r,
2793
- strategy: o = En,
2793
+ strategy: o = In,
2794
2794
  disabled: i = !1
2795
2795
  } = e;
2796
2796
  const {
@@ -2799,26 +2799,26 @@ function Lo(e) {
2799
2799
  droppableRects: l,
2800
2800
  over: d,
2801
2801
  measureDroppableContainers: u
2802
- } = Ro(), c = _e(kn, n), f = a.rect !== null, g = N(() => r.map((R) => typeof R == "object" && "id" in R ? R.id : R), [r]), p = s != null, h = s ? g.indexOf(s.id) : -1, v = d ? g.indexOf(d.id) : -1, m = M(g), x = !To(g, m.current), S = v !== -1 && h === -1 || x, D = No(i);
2802
+ } = Ro(), c = _e(kn, n), f = a.rect !== null, h = T(() => r.map((R) => typeof R == "object" && "id" in R ? R.id : R), [r]), p = s != null, g = s ? h.indexOf(s.id) : -1, v = d ? h.indexOf(d.id) : -1, m = O(h), x = !To(h, m.current), S = v !== -1 && g === -1 || x, D = No(i);
2803
2803
  ue(() => {
2804
- x && p && u(g);
2805
- }, [x, g, p, u]), O(() => {
2806
- m.current = g;
2807
- }, [g]);
2808
- const C = N(
2804
+ x && p && u(h);
2805
+ }, [x, h, p, u]), N(() => {
2806
+ m.current = h;
2807
+ }, [h]);
2808
+ const C = T(
2809
2809
  () => ({
2810
- activeIndex: h,
2810
+ activeIndex: g,
2811
2811
  containerId: c,
2812
2812
  disabled: D,
2813
2813
  disableTransforms: S,
2814
- items: g,
2814
+ items: h,
2815
2815
  overIndex: v,
2816
2816
  useDragOverlay: f,
2817
- sortedRects: Ao(g, l),
2817
+ sortedRects: Ao(h, l),
2818
2818
  strategy: o
2819
2819
  }),
2820
2820
  // eslint-disable-next-line react-hooks/exhaustive-deps
2821
- [h, c, D.draggable, D.droppable, S, g, v, l, f, o]
2821
+ [g, c, D.draggable, D.droppable, S, h, v, l, f, o]
2822
2822
  );
2823
2823
  return U.createElement(An.Provider, {
2824
2824
  value: C
@@ -2862,7 +2862,7 @@ function Fo(e) {
2862
2862
  node: r,
2863
2863
  rect: o
2864
2864
  } = e;
2865
- const [i, s] = Q(null), a = M(n);
2865
+ const [i, s] = Q(null), a = O(n);
2866
2866
  return ue(() => {
2867
2867
  if (!t && n !== a.current && r.current) {
2868
2868
  const l = o.current;
@@ -2879,7 +2879,7 @@ function Fo(e) {
2879
2879
  }
2880
2880
  }
2881
2881
  n !== a.current && (a.current = n);
2882
- }, [t, n, r, o]), O(() => {
2882
+ }, [t, n, r, o]), N(() => {
2883
2883
  i && s(null);
2884
2884
  }, [i]), i;
2885
2885
  }
@@ -2899,24 +2899,24 @@ function $o(e) {
2899
2899
  items: u,
2900
2900
  containerId: c,
2901
2901
  activeIndex: f,
2902
- disabled: g,
2902
+ disabled: h,
2903
2903
  disableTransforms: p,
2904
- sortedRects: h,
2904
+ sortedRects: g,
2905
2905
  overIndex: v,
2906
2906
  useDragOverlay: m,
2907
2907
  strategy: x
2908
- } = Ce(An), S = Ho(r, g), D = u.indexOf(s), C = N(() => ({
2908
+ } = Ce(An), S = Ho(r, h), D = u.indexOf(s), C = T(() => ({
2909
2909
  sortable: {
2910
2910
  containerId: c,
2911
2911
  index: D,
2912
2912
  items: u
2913
2913
  },
2914
2914
  ...o
2915
- }), [c, o, D, u]), R = N(() => u.slice(u.indexOf(s)), [u, s]), {
2915
+ }), [c, o, D, u]), R = T(() => u.slice(u.indexOf(s)), [u, s]), {
2916
2916
  rect: y,
2917
2917
  node: w,
2918
- isOver: E,
2919
- setNodeRef: T
2918
+ isOver: I,
2919
+ setNodeRef: A
2920
2920
  } = ko({
2921
2921
  id: s,
2922
2922
  data: C,
@@ -2929,7 +2929,7 @@ function $o(e) {
2929
2929
  active: b,
2930
2930
  activatorEvent: H,
2931
2931
  activeNodeRect: j,
2932
- attributes: L,
2932
+ attributes: M,
2933
2933
  setNodeRef: ne,
2934
2934
  listeners: Y,
2935
2935
  isDragging: P,
@@ -2944,8 +2944,8 @@ function $o(e) {
2944
2944
  ...n
2945
2945
  },
2946
2946
  disabled: S.draggable
2947
- }), Qe = nr(T, ne), K = !!b, de = K && !p && rt(f) && rt(v), De = !m && P, je = De && de ? ze : null, Ze = de ? je ?? (a ?? x)({
2948
- rects: h,
2947
+ }), Qe = nr(A, ne), K = !!b, de = K && !p && rt(f) && rt(v), De = !m && P, je = De && de ? ze : null, Ze = de ? je ?? (a ?? x)({
2948
+ rects: g,
2949
2949
  activeNodeRect: j,
2950
2950
  activeIndex: f,
2951
2951
  overIndex: v,
@@ -2955,7 +2955,7 @@ function $o(e) {
2955
2955
  items: u,
2956
2956
  activeIndex: f,
2957
2957
  overIndex: v
2958
- }) : D, fe = b == null ? void 0 : b.id, k = M({
2958
+ }) : D, fe = b == null ? void 0 : b.id, k = O({
2959
2959
  activeId: fe,
2960
2960
  items: u,
2961
2961
  newIndex: be,
@@ -2979,29 +2979,29 @@ function $o(e) {
2979
2979
  node: w,
2980
2980
  rect: y
2981
2981
  });
2982
- return O(() => {
2982
+ return N(() => {
2983
2983
  K && k.current.newIndex !== be && (k.current.newIndex = be), c !== k.current.containerId && (k.current.containerId = c), u !== k.current.items && (k.current.items = u);
2984
- }, [K, be, c, u]), O(() => {
2984
+ }, [K, be, c, u]), N(() => {
2985
2985
  if (fe === k.current.activeId)
2986
2986
  return;
2987
2987
  if (fe != null && k.current.activeId == null) {
2988
2988
  k.current.activeId = fe;
2989
2989
  return;
2990
2990
  }
2991
- const Ie = setTimeout(() => {
2991
+ const Ee = setTimeout(() => {
2992
2992
  k.current.activeId = fe;
2993
2993
  }, 50);
2994
- return () => clearTimeout(Ie);
2994
+ return () => clearTimeout(Ee);
2995
2995
  }, [fe]), {
2996
2996
  active: b,
2997
2997
  activeIndex: f,
2998
- attributes: L,
2998
+ attributes: M,
2999
2999
  data: C,
3000
3000
  rect: y,
3001
3001
  index: D,
3002
3002
  newIndex: be,
3003
3003
  items: u,
3004
- isOver: E,
3004
+ isOver: I,
3005
3005
  isSorting: K,
3006
3006
  isDragging: P,
3007
3007
  listeners: Y,
@@ -3010,12 +3010,12 @@ function $o(e) {
3010
3010
  over: se,
3011
3011
  setNodeRef: Qe,
3012
3012
  setActivatorNodeRef: re,
3013
- setDroppableNodeRef: T,
3013
+ setDroppableNodeRef: A,
3014
3014
  setDraggableNodeRef: ne,
3015
3015
  transform: Re ?? Ze,
3016
- transition: ge()
3016
+ transition: he()
3017
3017
  };
3018
- function ge() {
3018
+ function he() {
3019
3019
  if (
3020
3020
  // Temporarily disable transitions for a single frame to set up derived transforms
3021
3021
  Re || // Or to prevent items jumping to back to their "new" position when items change
@@ -3040,8 +3040,8 @@ function Ho(e, t) {
3040
3040
  droppable: (r = e == null ? void 0 : e.droppable) != null ? r : t.droppable
3041
3041
  };
3042
3042
  }
3043
- I.Down, I.Right, I.Up, I.Left;
3044
- const Xo = ({ className: e }) => /* @__PURE__ */ A.jsxs(
3043
+ E.Down, E.Right, E.Up, E.Left;
3044
+ const Xo = ({ className: e }) => /* @__PURE__ */ L.jsxs(
3045
3045
  "svg",
3046
3046
  {
3047
3047
  width: "16",
@@ -3051,12 +3051,8 @@ const Xo = ({ className: e }) => /* @__PURE__ */ A.jsxs(
3051
3051
  className: e,
3052
3052
  style: { flexShrink: 0 },
3053
3053
  children: [
3054
- /* @__PURE__ */ A.jsx("circle", { cx: "6", cy: "4", r: "1.5" }),
3055
- /* @__PURE__ */ A.jsx("circle", { cx: "10", cy: "4", r: "1.5" }),
3056
- /* @__PURE__ */ A.jsx("circle", { cx: "6", cy: "8", r: "1.5" }),
3057
- /* @__PURE__ */ A.jsx("circle", { cx: "10", cy: "8", r: "1.5" }),
3058
- /* @__PURE__ */ A.jsx("circle", { cx: "6", cy: "12", r: "1.5" }),
3059
- /* @__PURE__ */ A.jsx("circle", { cx: "10", cy: "12", r: "1.5" })
3054
+ /* @__PURE__ */ L.jsx("rect", { x: "4", y: "5", width: "8", height: "2", rx: "1" }),
3055
+ /* @__PURE__ */ L.jsx("rect", { x: "4", y: "9", width: "8", height: "2", rx: "1" })
3060
3056
  ]
3061
3057
  }
3062
3058
  ), Wo = ({
@@ -3071,12 +3067,12 @@ const Xo = ({ className: e }) => /* @__PURE__ */ A.jsxs(
3071
3067
  theme: l = "light"
3072
3068
  }) => {
3073
3069
  const d = Se.useRef(null), [u, c] = Se.useState(null), f = (y) => {
3074
- const { isSorting: w, wasDragging: E } = y;
3075
- return w || E ? Tn(y) : !0;
3070
+ const { isSorting: w, wasDragging: I } = y;
3071
+ return w || I ? Tn(y) : !0;
3076
3072
  }, {
3077
- attributes: g,
3073
+ attributes: h,
3078
3074
  listeners: p,
3079
- setNodeRef: h,
3075
+ setNodeRef: g,
3080
3076
  transform: v,
3081
3077
  transition: m,
3082
3078
  isDragging: x
@@ -3089,8 +3085,8 @@ const Xo = ({ className: e }) => /* @__PURE__ */ A.jsxs(
3089
3085
  easing: "cubic-bezier(0.25, 1, 0.5, 1)"
3090
3086
  }
3091
3087
  }), S = Se.useCallback((y) => {
3092
- d.current = y, h(y);
3093
- }, [h]);
3088
+ d.current = y, g(y);
3089
+ }, [g]);
3094
3090
  Se.useEffect(() => {
3095
3091
  if (x && d.current) {
3096
3092
  const y = d.current.getBoundingClientRect().width;
@@ -3102,7 +3098,7 @@ const Xo = ({ className: e }) => /* @__PURE__ */ A.jsxs(
3102
3098
  const y = x && u ? `${u}px` : e.width || "auto";
3103
3099
  let w = "auto";
3104
3100
  e.fixed ? w = x ? 1001 : 1e3 : x && (w = 100);
3105
- const E = {
3101
+ const I = {
3106
3102
  transform: v ? Ue.Translate.toString(v) : void 0,
3107
3103
  transition: m || "transform 250ms cubic-bezier(0.25, 1, 0.5, 1)",
3108
3104
  willChange: "transform",
@@ -3115,18 +3111,18 @@ const Xo = ({ className: e }) => /* @__PURE__ */ A.jsxs(
3115
3111
  overflow: "hidden",
3116
3112
  textOverflow: "ellipsis"
3117
3113
  };
3118
- if (x && u && (E.minWidth = `${u}px`, E.maxWidth = `${u}px`), e.fixed === "left") {
3119
- let T = 0;
3114
+ if (x && u && (I.minWidth = `${u}px`, I.maxWidth = `${u}px`), e.fixed === "left") {
3115
+ let A = 0;
3120
3116
  for (let b = 0; b < t; b++)
3121
- n[b].fixed === "left" && (T += parseInt(n[b].width || "150"));
3122
- E.left = `${T}px`;
3117
+ n[b].fixed === "left" && (A += parseInt(n[b].width || "150"));
3118
+ I.left = `${A}px`;
3123
3119
  } else if (e.fixed === "right") {
3124
- let T = 0;
3120
+ let A = 0;
3125
3121
  for (let b = t + 1; b < n.length; b++)
3126
- n[b].fixed === "right" && (T += parseInt(n[b].width || "150"));
3127
- E.right = `${T}px`;
3122
+ n[b].fixed === "right" && (A += parseInt(n[b].width || "150"));
3123
+ I.right = `${A}px`;
3128
3124
  }
3129
- return E;
3125
+ return I;
3130
3126
  }, C = st(
3131
3127
  "bu-group",
3132
3128
  V.getThClasses({
@@ -3137,21 +3133,21 @@ const Xo = ({ className: e }) => /* @__PURE__ */ A.jsxs(
3137
3133
  draggable: s
3138
3134
  })
3139
3135
  ), R = s && !e.fixed;
3140
- return /* @__PURE__ */ A.jsx(
3136
+ return /* @__PURE__ */ L.jsx(
3141
3137
  "th",
3142
3138
  {
3143
3139
  ref: S,
3144
3140
  className: C,
3145
3141
  style: D(),
3146
- ...g,
3142
+ ...h,
3147
3143
  ...p,
3148
3144
  onClick: () => o(e),
3149
- children: /* @__PURE__ */ A.jsxs("div", { className: "bu-flex bu-items-center bu-gap-2 bu-relative", style: { justifyContent: e.align || "center" }, children: [
3150
- /* @__PURE__ */ A.jsxs("div", { className: "bu-flex", children: [
3145
+ children: /* @__PURE__ */ L.jsxs("div", { className: "bu-flex bu-items-center bu-gap-2 bu-relative", style: { justifyContent: e.align || "center" }, children: [
3146
+ /* @__PURE__ */ L.jsxs("div", { className: "bu-flex bu-items-center", children: [
3151
3147
  e.renderHeader ? e.renderHeader([]) : e.title,
3152
3148
  i(e)
3153
3149
  ] }),
3154
- R && /* @__PURE__ */ A.jsx(
3150
+ R && /* @__PURE__ */ L.jsx(
3155
3151
  "span",
3156
3152
  {
3157
3153
  className: st(V.dragHandle({
@@ -3162,7 +3158,7 @@ const Xo = ({ className: e }) => /* @__PURE__ */ A.jsxs(
3162
3158
  alignItems: "center",
3163
3159
  marginLeft: "4px"
3164
3160
  },
3165
- children: a || /* @__PURE__ */ A.jsx(Xo, {})
3161
+ children: a !== null && (a || /* @__PURE__ */ L.jsx(Xo, {}))
3166
3162
  }
3167
3163
  )
3168
3164
  ] })
@@ -3184,8 +3180,8 @@ const Xo = ({ className: e }) => /* @__PURE__ */ A.jsxs(
3184
3180
  if (!c.filter || !c.key)
3185
3181
  return null;
3186
3182
  const f = n[c.key] || oe.default;
3187
- return /* @__PURE__ */ A.jsxs("span", { className: V.sortIcon(), children: [
3188
- /* @__PURE__ */ A.jsx(
3183
+ return /* @__PURE__ */ L.jsxs("span", { className: V.sortIcon(), children: [
3184
+ /* @__PURE__ */ L.jsx(
3189
3185
  "span",
3190
3186
  {
3191
3187
  className: V.sortArrow({
@@ -3195,7 +3191,7 @@ const Xo = ({ className: e }) => /* @__PURE__ */ A.jsxs(
3195
3191
  })
3196
3192
  }
3197
3193
  ),
3198
- /* @__PURE__ */ A.jsx(
3194
+ /* @__PURE__ */ L.jsx(
3199
3195
  "span",
3200
3196
  {
3201
3197
  className: V.sortArrow({
@@ -3207,7 +3203,7 @@ const Xo = ({ className: e }) => /* @__PURE__ */ A.jsxs(
3207
3203
  )
3208
3204
  ] });
3209
3205
  };
3210
- return /* @__PURE__ */ A.jsx("thead", { className: st(V.thead({ theme: l }), i), children: /* @__PURE__ */ A.jsx("tr", { children: t.map((c, f) => /* @__PURE__ */ A.jsx(
3206
+ return /* @__PURE__ */ L.jsx("thead", { className: st(V.thead({ theme: l }), i), children: /* @__PURE__ */ L.jsx("tr", { children: t.map((c, f) => /* @__PURE__ */ L.jsx(
3211
3207
  Wo,
3212
3208
  {
3213
3209
  column: c,
@@ -3229,28 +3225,28 @@ const Xo = ({ className: e }) => /* @__PURE__ */ A.jsxs(
3229
3225
  textAlign: V.getTextAlign(u.align)
3230
3226
  };
3231
3227
  if (u.fixed === "left") {
3232
- let g = 0;
3228
+ let h = 0;
3233
3229
  for (let p = 0; p < c; p++)
3234
- t[p].fixed === "left" && (g += parseInt(t[p].width || "150"));
3235
- f.left = `${g}px`;
3230
+ t[p].fixed === "left" && (h += parseInt(t[p].width || "150"));
3231
+ f.left = `${h}px`;
3236
3232
  } else if (u.fixed === "right") {
3237
- let g = 0;
3233
+ let h = 0;
3238
3234
  for (let p = c + 1; p < t.length; p++)
3239
- t[p].fixed === "right" && (g += parseInt(t[p].width || "150"));
3240
- f.right = `${g}px`;
3235
+ t[p].fixed === "right" && (h += parseInt(t[p].width || "150"));
3236
+ f.right = `${h}px`;
3241
3237
  }
3242
3238
  return f;
3243
3239
  }, l = (u, c, f) => u.render ? u.render(c, f) : u.key ? c[u.key] : null, d = (u, c, f) => {
3244
3240
  if (u.onCell)
3245
3241
  return u.onCell(c, f);
3246
3242
  };
3247
- return /* @__PURE__ */ A.jsx("tbody", { className: st(V.tbody({ theme: s }), i), children: n.map((u, c) => /* @__PURE__ */ A.jsx(
3243
+ return /* @__PURE__ */ L.jsx("tbody", { className: st(V.tbody({ theme: s }), i), children: n.map((u, c) => /* @__PURE__ */ L.jsx(
3248
3244
  "tr",
3249
3245
  {
3250
3246
  className: V.tr({ theme: s }),
3251
- children: t.map((f, g) => {
3247
+ children: t.map((f, h) => {
3252
3248
  const p = d(f, u, c);
3253
- return p === 0 ? null : /* @__PURE__ */ A.jsx(
3249
+ return p === 0 ? null : /* @__PURE__ */ L.jsx(
3254
3250
  "td",
3255
3251
  {
3256
3252
  className: V.getTdClasses({
@@ -3258,11 +3254,11 @@ const Xo = ({ className: e }) => /* @__PURE__ */ A.jsxs(
3258
3254
  fixed: f.fixed,
3259
3255
  customClass: o
3260
3256
  }),
3261
- style: a(f, g),
3257
+ style: a(f, h),
3262
3258
  colSpan: p,
3263
3259
  children: l(f, u, c)
3264
3260
  },
3265
- f.key || g
3261
+ f.key || h
3266
3262
  );
3267
3263
  })
3268
3264
  },
@@ -3291,9 +3287,9 @@ const Xo = ({ className: e }) => /* @__PURE__ */ A.jsxs(
3291
3287
  draggable: c = !1,
3292
3288
  // 默认不启用拖拽
3293
3289
  onColumnsChange: f,
3294
- dragHandleIcon: g,
3290
+ dragHandleIcon: h,
3295
3291
  maxHeight: p
3296
- } = e, [h, v] = Se.useState(t), [m, x] = Se.useState({}), [S, D] = Se.useState(null), C = vr(
3292
+ } = e, [g, v] = Se.useState(t), [m, x] = Se.useState({}), [S, D] = Se.useState(null), C = vr(
3297
3293
  Kt(Lt, {
3298
3294
  activationConstraint: {
3299
3295
  distance: 8
@@ -3307,13 +3303,13 @@ const Xo = ({ className: e }) => /* @__PURE__ */ A.jsxs(
3307
3303
  }, [t]);
3308
3304
  const R = (b, H) => {
3309
3305
  const j = m[b] || oe.default;
3310
- let L;
3311
- j === oe.default ? L = oe.desc : j === oe.desc ? L = oe.asc : L = oe.default;
3306
+ let M;
3307
+ j === oe.default ? M = oe.desc : j === oe.desc ? M = oe.asc : M = oe.default;
3312
3308
  const ne = H || "single";
3313
3309
  let Y;
3314
- if (ne === "single" ? Y = { [b]: L } : (Y = { ...m, [b]: L }, L === oe.default && delete Y[b]), x(Y), d)
3310
+ if (ne === "single" ? Y = { [b]: M } : (Y = { ...m, [b]: M }, M === oe.default && delete Y[b]), x(Y), d)
3315
3311
  if (ne === "single")
3316
- d({ sortKey: b, sort: L });
3312
+ d({ sortKey: b, sort: M });
3317
3313
  else {
3318
3314
  const P = Object.entries(Y).map(([se, re]) => ({
3319
3315
  sortKey: se,
@@ -3325,37 +3321,37 @@ const Xo = ({ className: e }) => /* @__PURE__ */ A.jsxs(
3325
3321
  D(b.active.id);
3326
3322
  }, w = (b) => {
3327
3323
  const { active: H, over: j } = b;
3328
- D(null), !(!j || H.id === j.id) && v((L) => {
3329
- const ne = L.findIndex((se) => se.key === H.id), Y = L.findIndex((se) => se.key === j.id);
3330
- if (ne === -1 || Y === -1 || L[Y].fixed)
3331
- return L;
3332
- const P = zt(L, ne, Y);
3324
+ D(null), !(!j || H.id === j.id) && v((M) => {
3325
+ const ne = M.findIndex((se) => se.key === H.id), Y = M.findIndex((se) => se.key === j.id);
3326
+ if (ne === -1 || Y === -1 || M[Y].fixed)
3327
+ return M;
3328
+ const P = zt(M, ne, Y);
3333
3329
  return f && f(P), P;
3334
3330
  });
3335
- }, E = h.filter((b) => !b.fixed && b.key).map((b) => b.key), T = () => /* @__PURE__ */ A.jsxs(
3331
+ }, I = g.filter((b) => !b.fixed && b.key).map((b) => b.key), A = () => /* @__PURE__ */ L.jsxs(
3336
3332
  "div",
3337
3333
  {
3338
3334
  className: V.container({ theme: l }),
3339
3335
  style: p ? { maxHeight: p, overflow: "auto" } : void 0,
3340
3336
  children: [
3341
- /* @__PURE__ */ A.jsxs("table", { className: V.table(), style: { tableLayout: u }, children: [
3342
- /* @__PURE__ */ A.jsx(
3337
+ /* @__PURE__ */ L.jsxs("table", { className: V.table(), style: { tableLayout: u }, children: [
3338
+ /* @__PURE__ */ L.jsx(
3343
3339
  Yo,
3344
3340
  {
3345
- columns: h,
3341
+ columns: g,
3346
3342
  sortStates: m,
3347
3343
  onSort: R,
3348
3344
  activeId: c ? S : null,
3349
3345
  theadClass: o,
3350
3346
  draggable: c,
3351
- dragHandleIcon: g,
3347
+ dragHandleIcon: h,
3352
3348
  theme: l
3353
3349
  }
3354
3350
  ),
3355
- /* @__PURE__ */ A.jsx(
3351
+ /* @__PURE__ */ L.jsx(
3356
3352
  Ko,
3357
3353
  {
3358
- columns: h,
3354
+ columns: g,
3359
3355
  data: n,
3360
3356
  rowKey: r,
3361
3357
  tdClass: i,
@@ -3364,11 +3360,11 @@ const Xo = ({ className: e }) => /* @__PURE__ */ A.jsxs(
3364
3360
  }
3365
3361
  )
3366
3362
  ] }),
3367
- n.length === 0 && /* @__PURE__ */ A.jsx("div", { className: V.empty({ theme: l }), children: a || "No Data" })
3363
+ n.length === 0 && /* @__PURE__ */ L.jsx("div", { className: V.empty({ theme: l }), children: a || "No Data" })
3368
3364
  ]
3369
3365
  }
3370
3366
  );
3371
- return c ? /* @__PURE__ */ A.jsx(
3367
+ return c ? /* @__PURE__ */ L.jsx(
3372
3368
  mo,
3373
3369
  {
3374
3370
  sensors: C,
@@ -3376,16 +3372,16 @@ const Xo = ({ className: e }) => /* @__PURE__ */ A.jsxs(
3376
3372
  onDragStart: y,
3377
3373
  onDragEnd: w,
3378
3374
  modifiers: [Uo],
3379
- children: /* @__PURE__ */ A.jsx(
3375
+ children: /* @__PURE__ */ L.jsx(
3380
3376
  Lo,
3381
3377
  {
3382
- items: E,
3378
+ items: I,
3383
3379
  strategy: Oo,
3384
- children: T()
3380
+ children: A()
3385
3381
  }
3386
3382
  )
3387
3383
  }
3388
- ) : T();
3384
+ ) : A();
3389
3385
  };
3390
3386
  export {
3391
3387
  _o as P,