@blofin/blofin-ui 0.7.62 → 0.7.64

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 (114) hide show
  1. package/README.md +41 -24
  2. package/dist/Badge.es.js +3 -3
  3. package/dist/Button.es.js +32 -32
  4. package/dist/Dialog.es.js +4 -4
  5. package/dist/Divider.es.js +3 -3
  6. package/dist/Drawer.es.js +30 -30
  7. package/dist/{ProTable-63e2c020.js → ProTable-087213e3.js} +731 -732
  8. package/dist/ProTable.es.js +4 -4
  9. package/dist/Slider.es.js +147 -139
  10. package/dist/Sort.es.js +2 -2
  11. package/dist/blofin.css +1 -1
  12. package/dist/clsx.m-9bb14413.js +34 -0
  13. package/dist/components/DatePickerRange/styles.d.ts +3 -0
  14. package/dist/components/Table/css.d.ts +1 -1
  15. package/dist/components/Typography/Typography.d.ts +2 -0
  16. package/dist/config/tailwind.js +3 -2
  17. package/dist/{index-bb110e35.js → index-0185476e.js} +8 -8
  18. package/dist/{index-652fb2a1.js → index-04dd998a.js} +8 -8
  19. package/dist/{index-85f017e3.js → index-05a511e6.js} +7 -7
  20. package/dist/{index-0c947f08.js → index-076a2bd0.js} +7 -7
  21. package/dist/{index-78b9c8f9.js → index-11780b34.js} +7 -7
  22. package/dist/{index-fb976a33.js → index-15d5944d.js} +7 -7
  23. package/dist/{index-3bcdcfa4.js → index-1b421bc7.js} +7 -7
  24. package/dist/{index-e7a49961.js → index-1dae4674.js} +7 -7
  25. package/dist/{index-c0289cb3.js → index-1e6117eb.js} +7 -7
  26. package/dist/{index-d94818cf.js → index-1f844b36.js} +7 -7
  27. package/dist/{index-c624667a.js → index-24b3d1e8.js} +7 -7
  28. package/dist/{index-c4cd7ca7.js → index-27d3d2f9.js} +7 -7
  29. package/dist/{index-27fd2203.js → index-281bb155.js} +7 -7
  30. package/dist/{index-c287f58d.js → index-28f6dead.js} +7 -7
  31. package/dist/{index-26e9b5ae.js → index-2d075993.js} +7 -7
  32. package/dist/{index-f40ff393.js → index-2d620e59.js} +9 -9
  33. package/dist/{index-752cda87.js → index-31f01665.js} +8 -8
  34. package/dist/{index-53e23440.js → index-32ad256e.js} +7 -7
  35. package/dist/{index-49e62b6e.js → index-33c04f82.js} +7 -7
  36. package/dist/{index-1e98bfaa.js → index-346f1a04.js} +7 -7
  37. package/dist/{index-57c290c9.js → index-386564a7.js} +8 -8
  38. package/dist/{index-8e71bc24.js → index-3b683486.js} +7 -7
  39. package/dist/{index-06600576.js → index-3ff6fd12.js} +1 -1
  40. package/dist/{index-f99d7119.js → index-48b17908.js} +7 -7
  41. package/dist/{index-5b3a8482.js → index-4b8d7817.js} +7 -7
  42. package/dist/{index-40626e62.js → index-50c18668.js} +59 -59
  43. package/dist/{index-5f08442c.js → index-51d7c74e.js} +7 -7
  44. package/dist/{index-6c7e84e3.js → index-52df1b5b.js} +7 -7
  45. package/dist/{index-b2bb21a1.js → index-56045a70.js} +7 -7
  46. package/dist/{index-54346b30.js → index-5914c1e4.js} +8 -8
  47. package/dist/{index-c7562a9b.js → index-5dedd2a8.js} +7 -7
  48. package/dist/{index-200f0cb0.js → index-5f2a1df5.js} +2 -2
  49. package/dist/{index-4a2c3474.js → index-67a37bd4.js} +3204 -3119
  50. package/dist/{index-da92e7f1.js → index-69f2e24f.js} +7 -7
  51. package/dist/{index-261244be.js → index-6b6afdd5.js} +7 -7
  52. package/dist/{index-01fa9075.js → index-73eb9fc2.js} +8 -8
  53. package/dist/{index-c06461e4.js → index-751626f1.js} +7 -7
  54. package/dist/{index-05675e79.js → index-7936042b.js} +7 -7
  55. package/dist/{index-313c7581.js → index-796f5ebe.js} +7 -7
  56. package/dist/{index-a03e2363.js → index-7ab9a888.js} +7 -7
  57. package/dist/{index-4486b59f.js → index-7beb8652.js} +9 -9
  58. package/dist/{index-06addca7.js → index-805e10ed.js} +7 -7
  59. package/dist/{index-6d6d57fd.js → index-811e143f.js} +7 -7
  60. package/dist/{index-20c30fd3.js → index-845cd4cd.js} +8 -8
  61. package/dist/{index-39afbe30.js → index-867edc6c.js} +1 -1
  62. package/dist/{index-7272669e.js → index-86cecf62.js} +1 -1
  63. package/dist/{index-afe5111a.js → index-898df220.js} +7 -7
  64. package/dist/{index-0ae42181.js → index-8cec9230.js} +7 -7
  65. package/dist/{index-87967611.js → index-8d1bc638.js} +8 -8
  66. package/dist/{index-da49a1d5.js → index-8d5ebb2d.js} +7 -7
  67. package/dist/{index-4b8f975d.js → index-8d78263b.js} +7 -7
  68. package/dist/{index-b14d2f55.js → index-8e6b848e.js} +7 -7
  69. package/dist/{index-712da957.js → index-8f823ab0.js} +7 -7
  70. package/dist/{index-2e2af4c2.js → index-90c408a3.js} +1 -1
  71. package/dist/{index-24571e1a.js → index-99b5de99.js} +8 -8
  72. package/dist/{index-89f7e024.js → index-9b957a6a.js} +7 -7
  73. package/dist/{index-1d30e6a1.js → index-a010d612.js} +7 -7
  74. package/dist/{index-74ca867d.js → index-a1b5cb20.js} +7 -7
  75. package/dist/{index-74f0d19e.js → index-a6e908eb.js} +8 -8
  76. package/dist/{index-8a256357.js → index-aa2d43f5.js} +7 -7
  77. package/dist/{index-168e5f6a.js → index-ae89c19a.js} +7 -7
  78. package/dist/{index-38f5f308.js → index-b4fbdb55.js} +7 -7
  79. package/dist/{index-b2b7a241.js → index-b5753746.js} +7 -7
  80. package/dist/{index-6f7c6176.js → index-c0889722.js} +7 -7
  81. package/dist/{index-9d571166.js → index-c1e2f830.js} +7 -7
  82. package/dist/{index-cdc5581e.js → index-c3939d53.js} +7 -7
  83. package/dist/{index-39c2cf33.js → index-c3f79b2d.js} +7 -7
  84. package/dist/{index-d61cba2c.js → index-c79abc89.js} +7 -7
  85. package/dist/{index-af160501.js → index-c882ff9c.js} +7 -7
  86. package/dist/{index-bcfdca26.js → index-c8ad25f5.js} +7 -7
  87. package/dist/{index-b4118dd1.js → index-cb451c77.js} +7 -7
  88. package/dist/{index-11ed8e1e.js → index-ce7277e3.js} +7 -7
  89. package/dist/{index-8802254a.js → index-d0e9c6bf.js} +7 -7
  90. package/dist/{index-fb380321.js → index-d987eec6.js} +7 -7
  91. package/dist/{index-7e4350db.js → index-dab2f593.js} +7 -7
  92. package/dist/{index-8d59f49c.js → index-db0b0fbe.js} +7 -7
  93. package/dist/{index-a52ef6bc.js → index-dbbaf433.js} +8 -8
  94. package/dist/{index-ed523ae5.js → index-dc984ba2.js} +8 -8
  95. package/dist/{index-99a3bf9b.js → index-de712b0a.js} +7 -7
  96. package/dist/{index-e696b020.js → index-dfcb2e30.js} +8 -8
  97. package/dist/{index-40459169.js → index-e194c32d.js} +7 -7
  98. package/dist/{index-fb8c76ea.js → index-e2f3d006.js} +7 -7
  99. package/dist/{index-13e3dd69.js → index-e411bb62.js} +7 -7
  100. package/dist/{index-06942aa2.js → index-e5674351.js} +8 -8
  101. package/dist/{index-95c68eda.js → index-ea7f539d.js} +38 -38
  102. package/dist/{index-73b5523a.js → index-eb599cd7.js} +7 -7
  103. package/dist/{index-4e3398b2.js → index-eb5d51f9.js} +7 -7
  104. package/dist/{index-dba23822.js → index-f5cf1c31.js} +8 -8
  105. package/dist/{index-ec1494d7.js → index-f707afcc.js} +7 -7
  106. package/dist/{index-c5fd9877.js → index-fb57fd8c.js} +7 -7
  107. package/dist/{index-02d586cc.js → index-fb591428.js} +7 -7
  108. package/dist/index.d.ts +2 -2
  109. package/dist/index.es.js +7 -7
  110. package/dist/provider/ThemeProvider.d.ts +2 -0
  111. package/dist/provider/useTheme.d.ts +1 -0
  112. package/dist/{utils-cacf528c.js → utils-096a71c5.js} +1 -1
  113. package/package.json +7 -1
  114. package/dist/clsx.m-b14a941b.js +0 -32
@@ -1,26 +1,26 @@
1
- import { j as z } from "./jsx-runtime-82a9ddf6.js";
1
+ import { j as M } from "./jsx-runtime-82a9ddf6.js";
2
2
  import * as Ce from "react";
3
- import V, { useLayoutEffect as $n, useEffect as M, useRef as L, useMemo as O, useCallback as K, useState as Q, createContext as Je, memo as Fn, useReducer as Hn, useContext as Ie } from "react";
4
- import { c as W } from "./index-7272669e.js";
5
- import { c as Me, u as Wn } from "./clsx.m-b14a941b.js";
3
+ import q, { useLayoutEffect as Fn, useEffect as N, useRef as O, useMemo as A, useCallback as U, useState as Q, createContext as Je, memo as Hn, useReducer as Wn, useContext as Ie } from "react";
4
+ import { c as X } from "./index-86cecf62.js";
5
+ import { c as Me, u as It } from "./clsx.m-9bb14413.js";
6
6
  import { unstable_batchedUpdates as rt, createPortal as Xn } from "react-dom";
7
7
  var ne = /* @__PURE__ */ ((e) => (e.default = "default", e.desc = "desc", e.asc = "asc", e))(ne || {});
8
- const Yn = W("bu-w-full bu-rounded-lg", {
8
+ const Yn = X("bu-w-full bu-rounded-lg", {
9
9
  variants: {
10
10
  theme: {
11
11
  light: "bu-bg-light-background",
12
12
  dark: "bu-bg-dark-background"
13
13
  }
14
14
  }
15
- }), Kn = W("bu-w-full bu-border-collapse"), Un = W("bu-sticky bu-top-0 bu-z-[100]", {
15
+ }), Kn = X("bu-w-full bu-border-collapse"), Un = X("bu-sticky bu-top-0 bu-z-[100]", {
16
16
  variants: {
17
17
  theme: {
18
18
  light: "bu-bg-light-background",
19
19
  dark: "bu-bg-dark-background"
20
20
  }
21
21
  }
22
- }), rn = W(
23
- "bu-relative bu-z-[999] bu-h-[25px] bu-select-none bu-border-b bu-px-[4px] bu-text-left bu-text-[12px] bu-font-medium bu-transition-all bu-duration-300",
22
+ }), on = X(
23
+ "bu-relative bu-z-[999] bu-h-[25px] bu-select-none bu-border-b bu-px-[4px] bu-text-[12px] bu-font-medium bu-transition-all bu-duration-300",
24
24
  {
25
25
  variants: {
26
26
  theme: {
@@ -33,28 +33,28 @@ const Yn = W("bu-w-full bu-rounded-lg", {
33
33
  }
34
34
  }
35
35
  }
36
- ), on = W("bu-sticky bu-left-0 bu-top-0 bu-z-[1000]", {
36
+ ), sn = X("bu-sticky bu-left-0 bu-top-0 bu-z-[1000]", {
37
37
  variants: {
38
38
  theme: {
39
39
  light: "bu-bg-light-background",
40
40
  dark: "bu-bg-dark-background"
41
41
  }
42
42
  }
43
- }), sn = W("bu-sticky bu-right-0 bu-top-0 bu-z-[1000]", {
43
+ }), an = X("bu-sticky bu-right-0 bu-top-0 bu-z-[1000]", {
44
44
  variants: {
45
45
  theme: {
46
46
  light: "bu-bg-light-background",
47
47
  dark: "bu-bg-dark-background"
48
48
  }
49
49
  }
50
- }), Vn = W("bu-cursor-pointer", {
50
+ }), Vn = X("bu-cursor-pointer", {
51
51
  variants: {
52
52
  theme: {
53
53
  light: "hover:bu-bg-light-hover-fill-primary",
54
54
  dark: "hover:bu-bg-dark-hover-fill-primary"
55
55
  }
56
56
  }
57
- }), qn = W(
57
+ }), qn = X(
58
58
  "bu-pointer-events-auto bu-opacity-0 bu-transition-opacity bu-duration-200 group-hover:bu-opacity-100",
59
59
  {
60
60
  variants: {
@@ -64,14 +64,14 @@ const Yn = W("bu-w-full bu-rounded-lg", {
64
64
  }
65
65
  }
66
66
  }
67
- ), an = W("bu-z-[1002] !bu-cursor-grabbing bu-opacity-60 bu-shadow-lg", {
67
+ ), ln = X("bu-z-[1002] !bu-cursor-grabbing bu-opacity-60 bu-shadow-lg", {
68
68
  variants: {
69
69
  theme: {
70
70
  light: "bu-bg-light-background",
71
71
  dark: "bu-bg-dark-background"
72
72
  }
73
73
  }
74
- }), Gn = W("bu-ml-2 bu-inline-flex bu-flex-col bu-align-middle"), Jn = W(
74
+ }), Gn = X("ltr:bu-ml-2 rtl:bu-mr-2 bu-inline-flex bu-flex-col bu-align-middle"), Jn = X(
75
75
  "bu-h-0 bu-w-0 bu-border-l-4 bu-border-r-4 bu-border-transparent",
76
76
  {
77
77
  variants: {
@@ -89,42 +89,42 @@ const Yn = W("bu-w-full bu-rounded-lg", {
89
89
  }
90
90
  }
91
91
  }
92
- ), _n = W("", {
92
+ ), _n = X("", {
93
93
  variants: {
94
94
  theme: {
95
95
  light: "bu-bg-light-background",
96
96
  dark: "bu-bg-dark-background"
97
97
  }
98
98
  }
99
- }), Zn = W("bu-group bu-border-b bu-transition-colors bu-duration-200", {
99
+ }), Zn = X("bu-group bu-border-b bu-transition-colors bu-duration-200", {
100
100
  variants: {
101
101
  theme: {
102
102
  light: "bu-hover:bu-bg-light-fill-primary bu-border-light-line-primary",
103
103
  dark: "bu-hover:bu-bg-dark-fill-primary bu-border-dark-line-primary"
104
104
  }
105
105
  }
106
- }), ln = W("bu-h-[60px] bu-border-b bu-px-[4px] bu-text-[12px]", {
106
+ }), cn = X("bu-h-[60px] bu-border-b bu-px-[4px] bu-text-[12px]", {
107
107
  variants: {
108
108
  theme: {
109
109
  light: "bu-border-light-line-primary bu-text-light-label group-hover:bu-bg-light-fill-primary",
110
110
  dark: "bu-border-dark-line-primary bu-text-dark-label group-hover:bu-bg-dark-fill-primary"
111
111
  }
112
112
  }
113
- }), cn = W("bu-sticky bu-left-0", {
113
+ }), un = X("bu-sticky bu-left-0", {
114
114
  variants: {
115
115
  theme: {
116
116
  light: "bu-bg-light-background group-hover:bu-bg-light-fill-primary",
117
117
  dark: "bu-bg-dark-background group-hover:bu-bg-dark-fill-primary"
118
118
  }
119
119
  }
120
- }), un = W("bu-sticky bu-right-0", {
120
+ }), dn = X("bu-sticky bu-right-0", {
121
121
  variants: {
122
122
  theme: {
123
123
  light: "bu-bg-light-background group-hover:bu-bg-light-fill-primary",
124
124
  dark: "bu-bg-dark-background group-hover:bu-bg-dark-fill-primary"
125
125
  }
126
126
  }
127
- }), Qn = W("bu-px-5 bu-py-10 bu-text-center", {
127
+ }), Qn = X("bu-px-5 bu-py-10 bu-text-center", {
128
128
  variants: {
129
129
  theme: {
130
130
  light: "bu-text-light-label-60",
@@ -132,32 +132,32 @@ const Yn = W("bu-w-full bu-rounded-lg", {
132
132
  }
133
133
  }
134
134
  }), er = (e) => ({
135
- "flex-start": "left",
135
+ "flex-start": "start",
136
136
  center: "center",
137
- "flex-end": "right"
137
+ "flex-end": "end"
138
138
  })[e || "center"], tr = (e) => {
139
- const { theme: t, fixed: n, sortable: r, isDragging: o, draggable: i, customClass: s } = e, l = [rn({ theme: t, draggable: i && !n })];
140
- return n === "left" ? l.push(on({ theme: t })) : n === "right" && l.push(sn({ theme: t })), o && l.push(an({ theme: t })), s && l.push(s), l.join(" ");
139
+ const { theme: t, fixed: n, sortable: r, isDragging: o, draggable: i, customClass: s } = e, l = [on({ theme: t, draggable: i && !n })];
140
+ return n === "left" ? l.push(sn({ theme: t })) : n === "right" && l.push(an({ theme: t })), o && l.push(ln({ theme: t })), s && l.push(s), l.join(" ");
141
141
  }, nr = (e) => {
142
- const { theme: t, fixed: n, customClass: r } = e, o = [ln({ theme: t })];
143
- return n === "left" ? o.push(cn({ theme: t })) : n === "right" && o.push(un({ theme: t })), r && o.push(r), o.join(" ");
142
+ const { theme: t, fixed: n, customClass: r } = e, o = [cn({ theme: t })];
143
+ return n === "left" ? o.push(un({ theme: t })) : n === "right" && o.push(dn({ theme: t })), r && o.push(r), o.join(" ");
144
144
  }, oe = {
145
145
  container: Yn,
146
146
  table: Kn,
147
147
  thead: Un,
148
- th: rn,
149
- thFixedLeft: on,
150
- thFixedRight: sn,
148
+ th: on,
149
+ thFixedLeft: sn,
150
+ thFixedRight: an,
151
151
  thSortable: Vn,
152
152
  dragHandle: qn,
153
- dragging: an,
153
+ dragging: ln,
154
154
  sortIcon: Gn,
155
155
  sortArrow: Jn,
156
156
  tbody: _n,
157
157
  tr: Zn,
158
- td: ln,
159
- tdFixedLeft: cn,
160
- tdFixedRight: un,
158
+ td: cn,
159
+ tdFixedLeft: un,
160
+ tdFixedRight: dn,
161
161
  empty: Qn,
162
162
  getThClasses: tr,
163
163
  getTdClasses: nr,
@@ -166,7 +166,7 @@ const Yn = W("bu-w-full bu-rounded-lg", {
166
166
  function rr() {
167
167
  for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
168
168
  t[n] = arguments[n];
169
- return O(
169
+ return A(
170
170
  () => (r) => {
171
171
  t.forEach((o) => o(r));
172
172
  },
@@ -180,57 +180,57 @@ function ze(e) {
180
180
  return t === "[object Window]" || // In Electron context the Window object serializes to [object global]
181
181
  t === "[object global]";
182
182
  }
183
- function It(e) {
183
+ function Et(e) {
184
184
  return "nodeType" in e;
185
185
  }
186
- function q(e) {
186
+ function G(e) {
187
187
  var t, n;
188
- return e ? ze(e) ? e : It(e) && (t = (n = e.ownerDocument) == null ? void 0 : n.defaultView) != null ? t : window : window;
188
+ return e ? ze(e) ? e : Et(e) && (t = (n = e.ownerDocument) == null ? void 0 : n.defaultView) != null ? t : window : window;
189
189
  }
190
- function Et(e) {
190
+ function kt(e) {
191
191
  const {
192
192
  Document: t
193
- } = q(e);
193
+ } = G(e);
194
194
  return e instanceof t;
195
195
  }
196
196
  function _e(e) {
197
- return ze(e) ? !1 : e instanceof q(e).HTMLElement;
197
+ return ze(e) ? !1 : e instanceof G(e).HTMLElement;
198
198
  }
199
- function dn(e) {
200
- return e instanceof q(e).SVGElement;
199
+ function fn(e) {
200
+ return e instanceof G(e).SVGElement;
201
201
  }
202
202
  function je(e) {
203
- return e ? ze(e) ? e.document : It(e) ? Et(e) ? e : _e(e) || dn(e) ? e.ownerDocument : document : document : document;
203
+ return e ? ze(e) ? e.document : Et(e) ? kt(e) ? e : _e(e) || fn(e) ? e.ownerDocument : document : document : document;
204
204
  }
205
- const fe = dt ? $n : M;
206
- function kt(e) {
207
- const t = L(e);
205
+ const fe = dt ? Fn : N;
206
+ function Tt(e) {
207
+ const t = O(e);
208
208
  return fe(() => {
209
209
  t.current = e;
210
- }), K(function() {
210
+ }), U(function() {
211
211
  for (var n = arguments.length, r = new Array(n), o = 0; o < n; o++)
212
212
  r[o] = arguments[o];
213
213
  return t.current == null ? void 0 : t.current(...r);
214
214
  }, []);
215
215
  }
216
216
  function or() {
217
- const e = L(null), t = K((r, o) => {
217
+ const e = O(null), t = U((r, o) => {
218
218
  e.current = setInterval(r, o);
219
- }, []), n = K(() => {
219
+ }, []), n = U(() => {
220
220
  e.current !== null && (clearInterval(e.current), e.current = null);
221
221
  }, []);
222
222
  return [t, n];
223
223
  }
224
224
  function Ve(e, t) {
225
225
  t === void 0 && (t = [e]);
226
- const n = L(e);
226
+ const n = O(e);
227
227
  return fe(() => {
228
228
  n.current !== e && (n.current = e);
229
229
  }, t), n;
230
230
  }
231
231
  function Ze(e, t) {
232
- const n = L();
233
- return O(
232
+ const n = O();
233
+ return A(
234
234
  () => {
235
235
  const r = e(n.current);
236
236
  return n.current = r, r;
@@ -240,7 +240,7 @@ function Ze(e, t) {
240
240
  );
241
241
  }
242
242
  function at(e) {
243
- const t = kt(e), n = L(null), r = K(
243
+ const t = Tt(e), n = O(null), r = U(
244
244
  (o) => {
245
245
  o !== n.current && (t == null || t(o, n.current)), n.current = o;
246
246
  },
@@ -250,29 +250,29 @@ function at(e) {
250
250
  return [n, r];
251
251
  }
252
252
  function mt(e) {
253
- const t = L();
254
- return M(() => {
253
+ const t = O();
254
+ return N(() => {
255
255
  t.current = e;
256
256
  }, [e]), t.current;
257
257
  }
258
258
  let pt = {};
259
259
  function Qe(e, t) {
260
- return O(() => {
260
+ return A(() => {
261
261
  if (t)
262
262
  return t;
263
263
  const n = pt[e] == null ? 0 : pt[e] + 1;
264
264
  return pt[e] = n, e + "-" + n;
265
265
  }, [e, t]);
266
266
  }
267
- function fn(e) {
267
+ function hn(e) {
268
268
  return function(t) {
269
269
  for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++)
270
270
  r[o - 1] = arguments[o];
271
271
  return r.reduce((i, s) => {
272
272
  const a = Object.entries(s);
273
- for (const [l, u] of a) {
274
- const c = i[l];
275
- c != null && (i[l] = c + e * u);
273
+ for (const [l, c] of a) {
274
+ const u = i[l];
275
+ u != null && (i[l] = u + e * c);
276
276
  }
277
277
  return i;
278
278
  }, {
@@ -280,16 +280,16 @@ function fn(e) {
280
280
  });
281
281
  };
282
282
  }
283
- const Le = /* @__PURE__ */ fn(1), lt = /* @__PURE__ */ fn(-1);
283
+ const Le = /* @__PURE__ */ hn(1), lt = /* @__PURE__ */ hn(-1);
284
284
  function ir(e) {
285
285
  return "clientX" in e && "clientY" in e;
286
286
  }
287
- function Tt(e) {
287
+ function At(e) {
288
288
  if (!e)
289
289
  return !1;
290
290
  const {
291
291
  KeyboardEvent: t
292
- } = q(e.target);
292
+ } = G(e.target);
293
293
  return t && e instanceof t;
294
294
  }
295
295
  function sr(e) {
@@ -297,7 +297,7 @@ function sr(e) {
297
297
  return !1;
298
298
  const {
299
299
  TouchEvent: t
300
- } = q(e.target);
300
+ } = G(e.target);
301
301
  return t && e instanceof t;
302
302
  }
303
303
  function St(e) {
@@ -366,9 +366,9 @@ const qe = /* @__PURE__ */ Object.freeze({
366
366
  return t + " " + n + "ms " + r;
367
367
  }
368
368
  }
369
- }), Yt = "a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";
369
+ }), Kt = "a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";
370
370
  function ar(e) {
371
- return e.matches(Yt) ? e : e.querySelector(Yt);
371
+ return e.matches(Kt) ? e : e.querySelector(Kt);
372
372
  }
373
373
  const lr = {
374
374
  display: "none"
@@ -378,7 +378,7 @@ function cr(e) {
378
378
  id: t,
379
379
  value: n
380
380
  } = e;
381
- return V.createElement("div", {
381
+ return q.createElement("div", {
382
382
  id: t,
383
383
  style: lr
384
384
  }, n);
@@ -403,7 +403,7 @@ function ur(e) {
403
403
  clipPath: "inset(100%)",
404
404
  whiteSpace: "nowrap"
405
405
  };
406
- return V.createElement("div", {
406
+ return q.createElement("div", {
407
407
  id: t,
408
408
  style: o,
409
409
  role: "status",
@@ -414,24 +414,24 @@ function ur(e) {
414
414
  function dr() {
415
415
  const [e, t] = Q("");
416
416
  return {
417
- announce: K((r) => {
417
+ announce: U((r) => {
418
418
  r != null && t(r);
419
419
  }, []),
420
420
  announcement: e
421
421
  };
422
422
  }
423
- const hn = /* @__PURE__ */ Je(null);
423
+ const gn = /* @__PURE__ */ Je(null);
424
424
  function fr(e) {
425
- const t = Ie(hn);
426
- M(() => {
425
+ const t = Ie(gn);
426
+ N(() => {
427
427
  if (!t)
428
428
  throw new Error("useDndMonitor must be used within a children of <DndContext>");
429
429
  return t(e);
430
430
  }, [e, t]);
431
431
  }
432
432
  function hr() {
433
- const [e] = Q(() => /* @__PURE__ */ new Set()), t = K((r) => (e.add(r), () => e.delete(r)), [e]);
434
- return [K((r) => {
433
+ const [e] = Q(() => /* @__PURE__ */ new Set()), t = U((r) => (e.add(r), () => e.delete(r)), [e]);
434
+ return [U((r) => {
435
435
  let {
436
436
  type: o,
437
437
  event: i
@@ -486,10 +486,10 @@ function vr(e) {
486
486
  const {
487
487
  announce: i,
488
488
  announcement: s
489
- } = dr(), a = Qe("DndLiveRegion"), [l, u] = Q(!1);
490
- if (M(() => {
491
- u(!0);
492
- }, []), fr(O(() => ({
489
+ } = dr(), a = Qe("DndLiveRegion"), [l, c] = Q(!1);
490
+ if (N(() => {
491
+ c(!0);
492
+ }, []), fr(A(() => ({
493
493
  onDragStart(d) {
494
494
  let {
495
495
  active: f
@@ -540,23 +540,23 @@ function vr(e) {
540
540
  }
541
541
  }), [i, t])), !l)
542
542
  return null;
543
- const c = V.createElement(V.Fragment, null, V.createElement(cr, {
543
+ const u = q.createElement(q.Fragment, null, q.createElement(cr, {
544
544
  id: r,
545
545
  value: o.draggable
546
- }), V.createElement(ur, {
546
+ }), q.createElement(ur, {
547
547
  id: a,
548
548
  announcement: s
549
549
  }));
550
- return n ? Xn(c, n) : c;
550
+ return n ? Xn(u, n) : u;
551
551
  }
552
- var $;
552
+ var F;
553
553
  (function(e) {
554
554
  e.DragStart = "dragStart", e.DragMove = "dragMove", e.DragEnd = "dragEnd", e.DragCancel = "dragCancel", e.DragOver = "dragOver", e.RegisterDroppable = "registerDroppable", e.SetDroppableDisabled = "setDroppableDisabled", e.UnregisterDroppable = "unregisterDroppable";
555
- })($ || ($ = {}));
555
+ })(F || (F = {}));
556
556
  function ct() {
557
557
  }
558
- function Kt(e, t) {
559
- return O(
558
+ function Ut(e, t) {
559
+ return A(
560
560
  () => ({
561
561
  sensor: e,
562
562
  options: t ?? {}
@@ -568,7 +568,7 @@ function Kt(e, t) {
568
568
  function pr() {
569
569
  for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
570
570
  t[n] = arguments[n];
571
- return O(
571
+ return A(
572
572
  () => [...t].filter((r) => r != null),
573
573
  // eslint-disable-next-line react-hooks/exhaustive-deps
574
574
  [...t]
@@ -611,7 +611,7 @@ function mr(e, t) {
611
611
  const [n] = e;
612
612
  return t ? n[t] : n;
613
613
  }
614
- function Ut(e, t, n) {
614
+ function Vt(e, t, n) {
615
615
  return t === void 0 && (t = e.left), n === void 0 && (n = e.top), {
616
616
  x: t + e.width * 0.5,
617
617
  y: n + e.height * 0.5
@@ -623,18 +623,18 @@ const Sr = (e) => {
623
623
  droppableRects: n,
624
624
  droppableContainers: r
625
625
  } = e;
626
- const o = Ut(t, t.left, t.top), i = [];
626
+ const o = Vt(t, t.left, t.top), i = [];
627
627
  for (const s of r) {
628
628
  const {
629
629
  id: a
630
630
  } = s, l = n.get(a);
631
631
  if (l) {
632
- const u = yr(Ut(l), o);
632
+ const c = yr(Vt(l), o);
633
633
  i.push({
634
634
  id: a,
635
635
  data: {
636
636
  droppableContainer: s,
637
- value: u
637
+ value: c
638
638
  }
639
639
  });
640
640
  }
@@ -644,7 +644,7 @@ const Sr = (e) => {
644
644
  function Dr(e, t) {
645
645
  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), i = Math.min(t.top + t.height, e.top + e.height), s = o - r, a = i - n;
646
646
  if (r < o && n < i) {
647
- const l = t.width * t.height, u = e.width * e.height, c = s * a, d = c / (l + u - c);
647
+ const l = t.width * t.height, c = e.width * e.height, u = s * a, d = u / (l + c - u);
648
648
  return Number(d.toFixed(4));
649
649
  }
650
650
  return 0;
@@ -680,7 +680,7 @@ function Rr(e, t, n) {
680
680
  scaleY: t && n ? t.height / n.height : 1
681
681
  };
682
682
  }
683
- function gn(e, t) {
683
+ function bn(e, t) {
684
684
  return e && t ? {
685
685
  x: e.left - t.left,
686
686
  y: e.top - t.top
@@ -731,13 +731,13 @@ function Tr(e, t, n) {
731
731
  scaleY: i,
732
732
  x: s,
733
733
  y: a
734
- } = r, l = e.left - s - (1 - o) * parseFloat(n), u = e.top - a - (1 - i) * parseFloat(n.slice(n.indexOf(" ") + 1)), c = o ? e.width / o : e.width, d = i ? e.height / i : e.height;
734
+ } = r, l = e.left - s - (1 - o) * parseFloat(n), c = e.top - a - (1 - i) * parseFloat(n.slice(n.indexOf(" ") + 1)), u = o ? e.width / o : e.width, d = i ? e.height / i : e.height;
735
735
  return {
736
- width: c,
736
+ width: u,
737
737
  height: d,
738
- top: u,
739
- right: l + c,
740
- bottom: u + d,
738
+ top: c,
739
+ right: l + u,
740
+ bottom: c + d,
741
741
  left: l
742
742
  };
743
743
  }
@@ -749,10 +749,10 @@ function Pe(e, t) {
749
749
  let n = e.getBoundingClientRect();
750
750
  if (t.ignoreTransform) {
751
751
  const {
752
- transform: u,
753
- transformOrigin: c
754
- } = q(e).getComputedStyle(e);
755
- u && (n = Tr(n, u, c));
752
+ transform: c,
753
+ transformOrigin: u
754
+ } = G(e).getComputedStyle(e);
755
+ c && (n = Tr(n, c, u));
756
756
  }
757
757
  const {
758
758
  top: r,
@@ -771,7 +771,7 @@ function Pe(e, t) {
771
771
  right: l
772
772
  };
773
773
  }
774
- function Vt(e) {
774
+ function qt(e) {
775
775
  return Pe(e, {
776
776
  ignoreTransform: !0
777
777
  });
@@ -788,61 +788,61 @@ function Nr(e) {
788
788
  };
789
789
  }
790
790
  function Or(e, t) {
791
- return t === void 0 && (t = q(e).getComputedStyle(e)), t.position === "fixed";
791
+ return t === void 0 && (t = G(e).getComputedStyle(e)), t.position === "fixed";
792
792
  }
793
793
  function Mr(e, t) {
794
- t === void 0 && (t = q(e).getComputedStyle(e));
794
+ t === void 0 && (t = G(e).getComputedStyle(e));
795
795
  const n = /(auto|scroll|overlay)/;
796
796
  return ["overflow", "overflowX", "overflowY"].some((o) => {
797
797
  const i = t[o];
798
798
  return typeof i == "string" ? n.test(i) : !1;
799
799
  });
800
800
  }
801
- function At(e, t) {
801
+ function Nt(e, t) {
802
802
  const n = [];
803
803
  function r(o) {
804
804
  if (t != null && n.length >= t || !o)
805
805
  return n;
806
- if (Et(o) && o.scrollingElement != null && !n.includes(o.scrollingElement))
806
+ if (kt(o) && o.scrollingElement != null && !n.includes(o.scrollingElement))
807
807
  return n.push(o.scrollingElement), n;
808
- if (!_e(o) || dn(o) || n.includes(o))
808
+ if (!_e(o) || fn(o) || n.includes(o))
809
809
  return n;
810
- const i = q(e).getComputedStyle(o);
810
+ const i = G(e).getComputedStyle(o);
811
811
  return o !== e && Mr(o, i) && n.push(o), Or(o, i) ? n : r(o.parentNode);
812
812
  }
813
813
  return e ? r(e) : n;
814
814
  }
815
- function bn(e) {
816
- const [t] = At(e, 1);
815
+ function vn(e) {
816
+ const [t] = Nt(e, 1);
817
817
  return t ?? null;
818
818
  }
819
819
  function yt(e) {
820
- return !dt || !e ? null : ze(e) ? e : It(e) ? Et(e) || e === je(e).scrollingElement ? window : _e(e) ? e : null : null;
820
+ return !dt || !e ? null : ze(e) ? e : Et(e) ? kt(e) || e === je(e).scrollingElement ? window : _e(e) ? e : null : null;
821
821
  }
822
- function vn(e) {
822
+ function pn(e) {
823
823
  return ze(e) ? e.scrollX : e.scrollLeft;
824
824
  }
825
- function pn(e) {
825
+ function yn(e) {
826
826
  return ze(e) ? e.scrollY : e.scrollTop;
827
827
  }
828
828
  function Dt(e) {
829
829
  return {
830
- x: vn(e),
831
- y: pn(e)
830
+ x: pn(e),
831
+ y: yn(e)
832
832
  };
833
833
  }
834
- var F;
834
+ var H;
835
835
  (function(e) {
836
836
  e[e.Forward = 1] = "Forward", e[e.Backward = -1] = "Backward";
837
- })(F || (F = {}));
838
- function yn(e) {
837
+ })(H || (H = {}));
838
+ function xn(e) {
839
839
  return !dt || !e ? !1 : e === document.scrollingElement;
840
840
  }
841
- function xn(e) {
841
+ function wn(e) {
842
842
  const t = {
843
843
  x: 0,
844
844
  y: 0
845
- }, n = yn(e) ? {
845
+ }, n = xn(e) ? {
846
846
  height: window.innerHeight,
847
847
  width: window.innerWidth
848
848
  } : {
@@ -874,11 +874,11 @@ function zr(e, t, n, r, o) {
874
874
  } = n;
875
875
  r === void 0 && (r = 10), o === void 0 && (o = Lr);
876
876
  const {
877
- isTop: u,
878
- isBottom: c,
877
+ isTop: c,
878
+ isBottom: u,
879
879
  isLeft: d,
880
880
  isRight: f
881
- } = xn(e), h = {
881
+ } = wn(e), h = {
882
882
  x: 0,
883
883
  y: 0
884
884
  }, v = {
@@ -888,7 +888,7 @@ function zr(e, t, n, r, o) {
888
888
  height: t.height * o.y,
889
889
  width: t.width * o.x
890
890
  };
891
- return !u && i <= t.top + g.height ? (h.y = F.Backward, v.y = r * Math.abs((t.top + g.height - i) / g.height)) : !c && l >= t.bottom - g.height && (h.y = F.Forward, v.y = r * Math.abs((t.bottom - g.height - l) / g.height)), !f && a >= t.right - g.width ? (h.x = F.Forward, v.x = r * Math.abs((t.right - g.width - a) / g.width)) : !d && s <= t.left + g.width && (h.x = F.Backward, v.x = r * Math.abs((t.left + g.width - s) / g.width)), {
891
+ return !c && i <= t.top + g.height ? (h.y = H.Backward, v.y = r * Math.abs((t.top + g.height - i) / g.height)) : !u && l >= t.bottom - g.height && (h.y = H.Forward, v.y = r * Math.abs((t.bottom - g.height - l) / g.height)), !f && a >= t.right - g.width ? (h.x = H.Forward, v.x = r * Math.abs((t.right - g.width - a) / g.width)) : !d && s <= t.left + g.width && (h.x = H.Backward, v.x = r * Math.abs((t.left + g.width - s) / g.width)), {
892
892
  direction: h,
893
893
  speed: v
894
894
  };
@@ -923,14 +923,14 @@ function jr(e) {
923
923
  height: e.clientHeight
924
924
  };
925
925
  }
926
- function wn(e) {
926
+ function mn(e) {
927
927
  return e.reduce((t, n) => Le(t, Dt(n)), ie);
928
928
  }
929
929
  function Pr(e) {
930
- return e.reduce((t, n) => t + vn(n), 0);
930
+ return e.reduce((t, n) => t + pn(n), 0);
931
931
  }
932
932
  function Br(e) {
933
- return e.reduce((t, n) => t + pn(n), 0);
933
+ return e.reduce((t, n) => t + yn(n), 0);
934
934
  }
935
935
  function $r(e, t) {
936
936
  if (t === void 0 && (t = Pe), !e)
@@ -941,16 +941,16 @@ function $r(e, t) {
941
941
  bottom: o,
942
942
  right: i
943
943
  } = t(e);
944
- bn(e) && (o <= 0 || i <= 0 || n >= window.innerHeight || r >= window.innerWidth) && e.scrollIntoView({
944
+ vn(e) && (o <= 0 || i <= 0 || n >= window.innerHeight || r >= window.innerWidth) && e.scrollIntoView({
945
945
  block: "center",
946
946
  inline: "center"
947
947
  });
948
948
  }
949
949
  const Fr = [["x", ["left", "right"], Pr], ["y", ["top", "bottom"], Br]];
950
- class Nt {
950
+ class Ot {
951
951
  constructor(t, n) {
952
952
  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;
953
- const r = At(n), o = wn(r);
953
+ const r = Nt(n), o = mn(r);
954
954
  this.rect = {
955
955
  ...t
956
956
  }, this.width = t.width, this.height = t.height;
@@ -958,8 +958,8 @@ class Nt {
958
958
  for (const l of s)
959
959
  Object.defineProperty(this, l, {
960
960
  get: () => {
961
- const u = a(r), c = o[i] - u;
962
- return this.rect[l] + c;
961
+ const c = a(r), u = o[i] - c;
962
+ return this.rect[l] + u;
963
963
  },
964
964
  enumerable: !0
965
965
  });
@@ -985,7 +985,7 @@ class Ye {
985
985
  function Hr(e) {
986
986
  const {
987
987
  EventTarget: t
988
- } = q(e);
988
+ } = G(e);
989
989
  return e instanceof t ? e : je(e);
990
990
  }
991
991
  function xt(e, t) {
@@ -996,7 +996,7 @@ var re;
996
996
  (function(e) {
997
997
  e.Click = "click", e.DragStart = "dragstart", e.Keydown = "keydown", e.ContextMenu = "contextmenu", e.Resize = "resize", e.SelectionChange = "selectionchange", e.VisibilityChange = "visibilitychange";
998
998
  })(re || (re = {}));
999
- function qt(e) {
999
+ function Gt(e) {
1000
1000
  e.preventDefault();
1001
1001
  }
1002
1002
  function Wr(e) {
@@ -1006,7 +1006,7 @@ var E;
1006
1006
  (function(e) {
1007
1007
  e.Space = "Space", e.Down = "ArrowDown", e.Right = "ArrowRight", e.Left = "ArrowLeft", e.Up = "ArrowUp", e.Esc = "Escape", e.Enter = "Enter", e.Tab = "Tab";
1008
1008
  })(E || (E = {}));
1009
- const mn = {
1009
+ const Sn = {
1010
1010
  start: [E.Space, E.Enter],
1011
1011
  cancel: [E.Esc],
1012
1012
  end: [E.Space, E.Enter, E.Tab]
@@ -1037,7 +1037,7 @@ const mn = {
1037
1037
  };
1038
1038
  }
1039
1039
  };
1040
- class Ot {
1040
+ class Mt {
1041
1041
  constructor(t) {
1042
1042
  this.props = void 0, this.autoScrollEnabled = !1, this.referenceCoordinates = void 0, this.listeners = void 0, this.windowListeners = void 0, this.props = t;
1043
1043
  const {
@@ -1045,7 +1045,7 @@ class Ot {
1045
1045
  target: n
1046
1046
  }
1047
1047
  } = t;
1048
- this.props = t, this.listeners = new Ye(je(n)), this.windowListeners = new Ye(q(n)), this.handleKeyDown = this.handleKeyDown.bind(this), this.handleCancel = this.handleCancel.bind(this), this.attach();
1048
+ this.props = t, this.listeners = new Ye(je(n)), this.windowListeners = new Ye(G(n)), this.handleKeyDown = this.handleKeyDown.bind(this), this.handleCancel = this.handleCancel.bind(this), this.attach();
1049
1049
  }
1050
1050
  attach() {
1051
1051
  this.handleStart(), this.windowListeners.add(re.Resize, this.handleCancel), this.windowListeners.add(re.VisibilityChange, this.handleCancel), setTimeout(() => this.listeners.add(re.Keydown, this.handleKeyDown));
@@ -1058,13 +1058,13 @@ class Ot {
1058
1058
  r && $r(r), n(ie);
1059
1059
  }
1060
1060
  handleKeyDown(t) {
1061
- if (Tt(t)) {
1061
+ if (At(t)) {
1062
1062
  const {
1063
1063
  active: n,
1064
1064
  context: r,
1065
1065
  options: o
1066
1066
  } = this.props, {
1067
- keyboardCodes: i = mn,
1067
+ keyboardCodes: i = Sn,
1068
1068
  coordinateGetter: s = Xr,
1069
1069
  scrollBehavior: a = "smooth"
1070
1070
  } = o, {
@@ -1079,19 +1079,19 @@ class Ot {
1079
1079
  return;
1080
1080
  }
1081
1081
  const {
1082
- collisionRect: u
1083
- } = r.current, c = u ? {
1084
- x: u.left,
1085
- y: u.top
1082
+ collisionRect: c
1083
+ } = r.current, u = c ? {
1084
+ x: c.left,
1085
+ y: c.top
1086
1086
  } : ie;
1087
- this.referenceCoordinates || (this.referenceCoordinates = c);
1087
+ this.referenceCoordinates || (this.referenceCoordinates = u);
1088
1088
  const d = s(t, {
1089
1089
  active: n,
1090
1090
  context: r.current,
1091
- currentCoordinates: c
1091
+ currentCoordinates: u
1092
1092
  });
1093
1093
  if (d) {
1094
- const f = lt(d, c), h = {
1094
+ const f = lt(d, u), h = {
1095
1095
  x: 0,
1096
1096
  y: 0
1097
1097
  }, {
@@ -1099,40 +1099,40 @@ class Ot {
1099
1099
  } = r.current;
1100
1100
  for (const g of v) {
1101
1101
  const b = t.code, {
1102
- isTop: x,
1103
- isRight: p,
1104
- isLeft: y,
1105
- isBottom: R,
1106
- maxScroll: S,
1102
+ isTop: y,
1103
+ isRight: x,
1104
+ isLeft: w,
1105
+ isBottom: p,
1106
+ maxScroll: C,
1107
1107
  minScroll: I
1108
- } = xn(g), m = jr(g), w = {
1109
- x: Math.min(b === E.Right ? m.right - m.width / 2 : m.right, Math.max(b === E.Right ? m.left : m.left + m.width / 2, d.x)),
1110
- y: Math.min(b === E.Down ? m.bottom - m.height / 2 : m.bottom, Math.max(b === E.Down ? m.top : m.top + m.height / 2, d.y))
1111
- }, D = b === E.Right && !p || b === E.Left && !y, N = b === E.Down && !R || b === E.Up && !x;
1112
- if (D && w.x !== d.x) {
1113
- const C = g.scrollLeft + f.x, P = b === E.Right && C <= S.x || b === E.Left && C >= I.x;
1114
- if (P && !f.y) {
1108
+ } = wn(g), D = jr(g), m = {
1109
+ x: Math.min(b === E.Right ? D.right - D.width / 2 : D.right, Math.max(b === E.Right ? D.left : D.left + D.width / 2, d.x)),
1110
+ y: Math.min(b === E.Down ? D.bottom - D.height / 2 : D.bottom, Math.max(b === E.Down ? D.top : D.top + D.height / 2, d.y))
1111
+ }, L = b === E.Right && !x || b === E.Left && !w, P = b === E.Down && !p || b === E.Up && !y;
1112
+ if (L && m.x !== d.x) {
1113
+ const S = g.scrollLeft + f.x, B = b === E.Right && S <= C.x || b === E.Left && S >= I.x;
1114
+ if (B && !f.y) {
1115
1115
  g.scrollTo({
1116
- left: C,
1116
+ left: S,
1117
1117
  behavior: a
1118
1118
  });
1119
1119
  return;
1120
1120
  }
1121
- P ? h.x = g.scrollLeft - C : h.x = b === E.Right ? g.scrollLeft - S.x : g.scrollLeft - I.x, h.x && g.scrollBy({
1121
+ B ? h.x = g.scrollLeft - S : h.x = b === E.Right ? g.scrollLeft - C.x : g.scrollLeft - I.x, h.x && g.scrollBy({
1122
1122
  left: -h.x,
1123
1123
  behavior: a
1124
1124
  });
1125
1125
  break;
1126
- } else if (N && w.y !== d.y) {
1127
- const C = g.scrollTop + f.y, P = b === E.Down && C <= S.y || b === E.Up && C >= I.y;
1128
- if (P && !f.x) {
1126
+ } else if (P && m.y !== d.y) {
1127
+ const S = g.scrollTop + f.y, B = b === E.Down && S <= C.y || b === E.Up && S >= I.y;
1128
+ if (B && !f.x) {
1129
1129
  g.scrollTo({
1130
- top: C,
1130
+ top: S,
1131
1131
  behavior: a
1132
1132
  });
1133
1133
  return;
1134
1134
  }
1135
- P ? h.y = g.scrollTop - C : h.y = b === E.Down ? g.scrollTop - S.y : g.scrollTop - I.y, h.y && g.scrollBy({
1135
+ B ? h.y = g.scrollTop - S : h.y = b === E.Down ? g.scrollTop - C.y : g.scrollTop - I.y, h.y && g.scrollBy({
1136
1136
  top: -h.y,
1137
1137
  behavior: a
1138
1138
  });
@@ -1165,11 +1165,11 @@ class Ot {
1165
1165
  this.listeners.removeAll(), this.windowListeners.removeAll();
1166
1166
  }
1167
1167
  }
1168
- Ot.activators = [{
1168
+ Mt.activators = [{
1169
1169
  eventName: "onKeyDown",
1170
1170
  handler: (e, t, n) => {
1171
1171
  let {
1172
- keyboardCodes: r = mn,
1172
+ keyboardCodes: r = Sn,
1173
1173
  onActivation: o
1174
1174
  } = t, {
1175
1175
  active: i
@@ -1186,13 +1186,13 @@ Ot.activators = [{
1186
1186
  return !1;
1187
1187
  }
1188
1188
  }];
1189
- function Gt(e) {
1189
+ function Jt(e) {
1190
1190
  return !!(e && "distance" in e);
1191
1191
  }
1192
- function Jt(e) {
1192
+ function _t(e) {
1193
1193
  return !!(e && "delay" in e);
1194
1194
  }
1195
- class Mt {
1195
+ class Lt {
1196
1196
  constructor(t, n, r) {
1197
1197
  var o;
1198
1198
  r === void 0 && (r = Hr(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;
@@ -1201,7 +1201,7 @@ class Mt {
1201
1201
  } = t, {
1202
1202
  target: s
1203
1203
  } = i;
1204
- this.props = t, this.events = n, this.document = je(s), this.documentListeners = new Ye(this.document), this.listeners = new Ye(r), this.windowListeners = new Ye(q(s)), this.initialCoordinates = (o = St(i)) != null ? o : ie, this.handleStart = this.handleStart.bind(this), this.handleMove = this.handleMove.bind(this), this.handleEnd = this.handleEnd.bind(this), this.handleCancel = this.handleCancel.bind(this), this.handleKeydown = this.handleKeydown.bind(this), this.removeTextSelection = this.removeTextSelection.bind(this), this.attach();
1204
+ this.props = t, this.events = n, this.document = je(s), this.documentListeners = new Ye(this.document), this.listeners = new Ye(r), this.windowListeners = new Ye(G(s)), this.initialCoordinates = (o = St(i)) != null ? o : ie, this.handleStart = this.handleStart.bind(this), this.handleMove = this.handleMove.bind(this), this.handleEnd = this.handleEnd.bind(this), this.handleCancel = this.handleCancel.bind(this), this.handleKeydown = this.handleKeydown.bind(this), this.removeTextSelection = this.removeTextSelection.bind(this), this.attach();
1205
1205
  }
1206
1206
  attach() {
1207
1207
  const {
@@ -1215,18 +1215,18 @@ class Mt {
1215
1215
  } = this;
1216
1216
  if (this.listeners.add(t.move.name, this.handleMove, {
1217
1217
  passive: !1
1218
- }), this.listeners.add(t.end.name, this.handleEnd), t.cancel && this.listeners.add(t.cancel.name, this.handleCancel), this.windowListeners.add(re.Resize, this.handleCancel), this.windowListeners.add(re.DragStart, qt), this.windowListeners.add(re.VisibilityChange, this.handleCancel), this.windowListeners.add(re.ContextMenu, qt), this.documentListeners.add(re.Keydown, this.handleKeydown), n) {
1218
+ }), this.listeners.add(t.end.name, this.handleEnd), t.cancel && this.listeners.add(t.cancel.name, this.handleCancel), this.windowListeners.add(re.Resize, this.handleCancel), this.windowListeners.add(re.DragStart, Gt), this.windowListeners.add(re.VisibilityChange, this.handleCancel), this.windowListeners.add(re.ContextMenu, Gt), this.documentListeners.add(re.Keydown, this.handleKeydown), n) {
1219
1219
  if (r != null && r({
1220
1220
  event: this.props.event,
1221
1221
  activeNode: this.props.activeNode,
1222
1222
  options: this.props.options
1223
1223
  }))
1224
1224
  return this.handleStart();
1225
- if (Jt(n)) {
1225
+ if (_t(n)) {
1226
1226
  this.timeoutId = setTimeout(this.handleStart, n.delay), this.handlePending(n);
1227
1227
  return;
1228
1228
  }
1229
- if (Gt(n)) {
1229
+ if (Jt(n)) {
1230
1230
  this.handlePending(n);
1231
1231
  return;
1232
1232
  }
@@ -1267,17 +1267,17 @@ class Mt {
1267
1267
  } = i;
1268
1268
  if (!o)
1269
1269
  return;
1270
- const l = (n = St(t)) != null ? n : ie, u = lt(o, l);
1270
+ const l = (n = St(t)) != null ? n : ie, c = lt(o, l);
1271
1271
  if (!r && a) {
1272
- if (Gt(a)) {
1273
- if (a.tolerance != null && xt(u, a.tolerance))
1272
+ if (Jt(a)) {
1273
+ if (a.tolerance != null && xt(c, a.tolerance))
1274
1274
  return this.handleCancel();
1275
- if (xt(u, a.distance))
1275
+ if (xt(c, a.distance))
1276
1276
  return this.handleStart();
1277
1277
  }
1278
- if (Jt(a) && xt(u, a.tolerance))
1278
+ if (_t(a) && xt(c, a.tolerance))
1279
1279
  return this.handleCancel();
1280
- this.handlePending(a, u);
1280
+ this.handlePending(a, c);
1281
1281
  return;
1282
1282
  }
1283
1283
  t.cancelable && t.preventDefault(), s(l);
@@ -1315,7 +1315,7 @@ const Yr = {
1315
1315
  name: "pointerup"
1316
1316
  }
1317
1317
  };
1318
- class Lt extends Mt {
1318
+ class zt extends Lt {
1319
1319
  constructor(t) {
1320
1320
  const {
1321
1321
  event: n
@@ -1323,7 +1323,7 @@ class Lt extends Mt {
1323
1323
  super(t, Yr, r);
1324
1324
  }
1325
1325
  }
1326
- Lt.activators = [{
1326
+ zt.activators = [{
1327
1327
  eventName: "onPointerDown",
1328
1328
  handler: (e, t) => {
1329
1329
  let {
@@ -1348,7 +1348,7 @@ var Ct;
1348
1348
  (function(e) {
1349
1349
  e[e.RightClick = 2] = "RightClick";
1350
1350
  })(Ct || (Ct = {}));
1351
- class Ur extends Mt {
1351
+ class Ur extends Lt {
1352
1352
  constructor(t) {
1353
1353
  super(t, Kr, je(t.event.target));
1354
1354
  }
@@ -1377,7 +1377,7 @@ const wt = {
1377
1377
  name: "touchend"
1378
1378
  }
1379
1379
  };
1380
- class Vr extends Mt {
1380
+ class Vr extends Lt {
1381
1381
  constructor(t) {
1382
1382
  super(t, wt);
1383
1383
  }
@@ -1426,21 +1426,21 @@ function qr(e) {
1426
1426
  interval: s = 5,
1427
1427
  order: a = ut.TreeOrder,
1428
1428
  pointerCoordinates: l,
1429
- scrollableAncestors: u,
1430
- scrollableAncestorRects: c,
1429
+ scrollableAncestors: c,
1430
+ scrollableAncestorRects: u,
1431
1431
  delta: d,
1432
1432
  threshold: f
1433
1433
  } = e;
1434
1434
  const h = Jr({
1435
1435
  delta: d,
1436
1436
  disabled: !i
1437
- }), [v, g] = or(), b = L({
1437
+ }), [v, g] = or(), b = O({
1438
1438
  x: 0,
1439
1439
  y: 0
1440
- }), x = L({
1440
+ }), y = O({
1441
1441
  x: 0,
1442
1442
  y: 0
1443
- }), p = O(() => {
1443
+ }), x = A(() => {
1444
1444
  switch (n) {
1445
1445
  case Ke.Pointer:
1446
1446
  return l ? {
@@ -1452,40 +1452,40 @@ function qr(e) {
1452
1452
  case Ke.DraggableRect:
1453
1453
  return o;
1454
1454
  }
1455
- }, [n, o, l]), y = L(null), R = K(() => {
1456
- const I = y.current;
1455
+ }, [n, o, l]), w = O(null), p = U(() => {
1456
+ const I = w.current;
1457
1457
  if (!I)
1458
1458
  return;
1459
- const m = b.current.x * x.current.x, w = b.current.y * x.current.y;
1460
- I.scrollBy(m, w);
1461
- }, []), S = O(() => a === ut.TreeOrder ? [...u].reverse() : u, [a, u]);
1462
- M(
1459
+ const D = b.current.x * y.current.x, m = b.current.y * y.current.y;
1460
+ I.scrollBy(D, m);
1461
+ }, []), C = A(() => a === ut.TreeOrder ? [...c].reverse() : c, [a, c]);
1462
+ N(
1463
1463
  () => {
1464
- if (!i || !u.length || !p) {
1464
+ if (!i || !c.length || !x) {
1465
1465
  g();
1466
1466
  return;
1467
1467
  }
1468
- for (const I of S) {
1468
+ for (const I of C) {
1469
1469
  if ((r == null ? void 0 : r(I)) === !1)
1470
1470
  continue;
1471
- const m = u.indexOf(I), w = c[m];
1472
- if (!w)
1471
+ const D = c.indexOf(I), m = u[D];
1472
+ if (!m)
1473
1473
  continue;
1474
1474
  const {
1475
- direction: D,
1476
- speed: N
1477
- } = zr(I, w, p, t, f);
1478
- for (const C of ["x", "y"])
1479
- h[C][D[C]] || (N[C] = 0, D[C] = 0);
1480
- if (N.x > 0 || N.y > 0) {
1481
- g(), y.current = I, v(R, s), b.current = N, x.current = D;
1475
+ direction: L,
1476
+ speed: P
1477
+ } = zr(I, m, x, t, f);
1478
+ for (const S of ["x", "y"])
1479
+ h[S][L[S]] || (P[S] = 0, L[S] = 0);
1480
+ if (P.x > 0 || P.y > 0) {
1481
+ g(), w.current = I, v(p, s), b.current = P, y.current = L;
1482
1482
  return;
1483
1483
  }
1484
1484
  }
1485
1485
  b.current = {
1486
1486
  x: 0,
1487
1487
  y: 0
1488
- }, x.current = {
1488
+ }, y.current = {
1489
1489
  x: 0,
1490
1490
  y: 0
1491
1491
  }, g();
@@ -1493,19 +1493,19 @@ function qr(e) {
1493
1493
  // eslint-disable-next-line react-hooks/exhaustive-deps
1494
1494
  [
1495
1495
  t,
1496
- R,
1496
+ p,
1497
1497
  r,
1498
1498
  g,
1499
1499
  i,
1500
1500
  s,
1501
1501
  // eslint-disable-next-line react-hooks/exhaustive-deps
1502
- JSON.stringify(p),
1502
+ JSON.stringify(x),
1503
1503
  // eslint-disable-next-line react-hooks/exhaustive-deps
1504
1504
  JSON.stringify(h),
1505
1505
  v,
1506
- u,
1507
- S,
1508
1506
  c,
1507
+ C,
1508
+ u,
1509
1509
  // eslint-disable-next-line react-hooks/exhaustive-deps
1510
1510
  JSON.stringify(f)
1511
1511
  ]
@@ -1513,12 +1513,12 @@ function qr(e) {
1513
1513
  }
1514
1514
  const Gr = {
1515
1515
  x: {
1516
- [F.Backward]: !1,
1517
- [F.Forward]: !1
1516
+ [H.Backward]: !1,
1517
+ [H.Forward]: !1
1518
1518
  },
1519
1519
  y: {
1520
- [F.Backward]: !1,
1521
- [F.Forward]: !1
1520
+ [H.Backward]: !1,
1521
+ [H.Forward]: !1
1522
1522
  }
1523
1523
  };
1524
1524
  function Jr(e) {
@@ -1536,12 +1536,12 @@ function Jr(e) {
1536
1536
  };
1537
1537
  return {
1538
1538
  x: {
1539
- [F.Backward]: o.x[F.Backward] || i.x === -1,
1540
- [F.Forward]: o.x[F.Forward] || i.x === 1
1539
+ [H.Backward]: o.x[H.Backward] || i.x === -1,
1540
+ [H.Forward]: o.x[H.Forward] || i.x === 1
1541
1541
  },
1542
1542
  y: {
1543
- [F.Backward]: o.y[F.Backward] || i.y === -1,
1544
- [F.Forward]: o.y[F.Forward] || i.y === 1
1543
+ [H.Backward]: o.y[H.Backward] || i.y === -1,
1544
+ [H.Forward]: o.y[H.Forward] || i.y === 1
1545
1545
  }
1546
1546
  };
1547
1547
  }, [n, t, r]);
@@ -1554,7 +1554,7 @@ function _r(e, t) {
1554
1554
  }, [r, t]);
1555
1555
  }
1556
1556
  function Zr(e, t) {
1557
- return O(() => e.reduce((n, r) => {
1557
+ return A(() => e.reduce((n, r) => {
1558
1558
  const {
1559
1559
  sensor: o
1560
1560
  } = r, i = o.activators.map((s) => ({
@@ -1572,7 +1572,7 @@ var Rt;
1572
1572
  (function(e) {
1573
1573
  e.Optimized = "optimized";
1574
1574
  })(Rt || (Rt = {}));
1575
- const _t = /* @__PURE__ */ new Map();
1575
+ const Zt = /* @__PURE__ */ new Map();
1576
1576
  function Qr(e, t) {
1577
1577
  let {
1578
1578
  dragging: n,
@@ -1582,43 +1582,43 @@ function Qr(e, t) {
1582
1582
  const [i, s] = Q(null), {
1583
1583
  frequency: a,
1584
1584
  measure: l,
1585
- strategy: u
1586
- } = o, c = L(e), d = b(), f = Ve(d), h = K(function(x) {
1587
- x === void 0 && (x = []), !f.current && s((p) => p === null ? x : p.concat(x.filter((y) => !p.includes(y))));
1588
- }, [f]), v = L(null), g = Ze((x) => {
1585
+ strategy: c
1586
+ } = o, u = O(e), d = b(), f = Ve(d), h = U(function(y) {
1587
+ y === void 0 && (y = []), !f.current && s((x) => x === null ? y : x.concat(y.filter((w) => !x.includes(w))));
1588
+ }, [f]), v = O(null), g = Ze((y) => {
1589
1589
  if (d && !n)
1590
- return _t;
1591
- if (!x || x === _t || c.current !== e || i != null) {
1592
- const p = /* @__PURE__ */ new Map();
1593
- for (let y of e) {
1594
- if (!y)
1590
+ return Zt;
1591
+ if (!y || y === Zt || u.current !== e || i != null) {
1592
+ const x = /* @__PURE__ */ new Map();
1593
+ for (let w of e) {
1594
+ if (!w)
1595
1595
  continue;
1596
- if (i && i.length > 0 && !i.includes(y.id) && y.rect.current) {
1597
- p.set(y.id, y.rect.current);
1596
+ if (i && i.length > 0 && !i.includes(w.id) && w.rect.current) {
1597
+ x.set(w.id, w.rect.current);
1598
1598
  continue;
1599
1599
  }
1600
- const R = y.node.current, S = R ? new Nt(l(R), R) : null;
1601
- y.rect.current = S, S && p.set(y.id, S);
1600
+ const p = w.node.current, C = p ? new Ot(l(p), p) : null;
1601
+ w.rect.current = C, C && x.set(w.id, C);
1602
1602
  }
1603
- return p;
1603
+ return x;
1604
1604
  }
1605
- return x;
1605
+ return y;
1606
1606
  }, [e, i, n, d, l]);
1607
- return M(() => {
1608
- c.current = e;
1609
- }, [e]), M(
1607
+ return N(() => {
1608
+ u.current = e;
1609
+ }, [e]), N(
1610
1610
  () => {
1611
1611
  d || h();
1612
1612
  },
1613
1613
  // eslint-disable-next-line react-hooks/exhaustive-deps
1614
1614
  [n, d]
1615
- ), M(
1615
+ ), N(
1616
1616
  () => {
1617
1617
  i && i.length > 0 && s(null);
1618
1618
  },
1619
1619
  //eslint-disable-next-line react-hooks/exhaustive-deps
1620
1620
  [JSON.stringify(i)]
1621
- ), M(
1621
+ ), N(
1622
1622
  () => {
1623
1623
  d || typeof a != "number" || v.current !== null || (v.current = setTimeout(() => {
1624
1624
  h(), v.current = null;
@@ -1632,7 +1632,7 @@ function Qr(e, t) {
1632
1632
  measuringScheduled: i != null
1633
1633
  };
1634
1634
  function b() {
1635
- switch (u) {
1635
+ switch (c) {
1636
1636
  case Ge.Always:
1637
1637
  return !1;
1638
1638
  case Ge.BeforeDragging:
@@ -1642,18 +1642,18 @@ function Qr(e, t) {
1642
1642
  }
1643
1643
  }
1644
1644
  }
1645
- function Sn(e, t) {
1645
+ function Dn(e, t) {
1646
1646
  return Ze((n) => e ? n || (typeof t == "function" ? t(e) : e) : null, [t, e]);
1647
1647
  }
1648
1648
  function eo(e, t) {
1649
- return Sn(e, t);
1649
+ return Dn(e, t);
1650
1650
  }
1651
1651
  function to(e) {
1652
1652
  let {
1653
1653
  callback: t,
1654
1654
  disabled: n
1655
1655
  } = e;
1656
- const r = kt(t), o = O(() => {
1656
+ const r = Tt(t), o = A(() => {
1657
1657
  if (n || typeof window > "u" || typeof window.MutationObserver > "u")
1658
1658
  return;
1659
1659
  const {
@@ -1661,14 +1661,14 @@ function to(e) {
1661
1661
  } = window;
1662
1662
  return new i(r);
1663
1663
  }, [r, n]);
1664
- return M(() => () => o == null ? void 0 : o.disconnect(), [o]), o;
1664
+ return N(() => () => o == null ? void 0 : o.disconnect(), [o]), o;
1665
1665
  }
1666
1666
  function ft(e) {
1667
1667
  let {
1668
1668
  callback: t,
1669
1669
  disabled: n
1670
1670
  } = e;
1671
- const r = kt(t), o = O(
1671
+ const r = Tt(t), o = A(
1672
1672
  () => {
1673
1673
  if (n || typeof window > "u" || typeof window.ResizeObserver > "u")
1674
1674
  return;
@@ -1680,12 +1680,12 @@ function ft(e) {
1680
1680
  // eslint-disable-next-line react-hooks/exhaustive-deps
1681
1681
  [n]
1682
1682
  );
1683
- return M(() => () => o == null ? void 0 : o.disconnect(), [o]), o;
1683
+ return N(() => () => o == null ? void 0 : o.disconnect(), [o]), o;
1684
1684
  }
1685
1685
  function no(e) {
1686
- return new Nt(Pe(e), e);
1686
+ return new Ot(Pe(e), e);
1687
1687
  }
1688
- function Zt(e, t, n) {
1688
+ function Qt(e, t, n) {
1689
1689
  t === void 0 && (t = no);
1690
1690
  const [r, o] = Q(null);
1691
1691
  function i() {
@@ -1693,22 +1693,22 @@ function Zt(e, t, n) {
1693
1693
  if (!e)
1694
1694
  return null;
1695
1695
  if (e.isConnected === !1) {
1696
- var u;
1697
- return (u = l ?? n) != null ? u : null;
1696
+ var c;
1697
+ return (c = l ?? n) != null ? c : null;
1698
1698
  }
1699
- const c = t(e);
1700
- return JSON.stringify(l) === JSON.stringify(c) ? l : c;
1699
+ const u = t(e);
1700
+ return JSON.stringify(l) === JSON.stringify(u) ? l : u;
1701
1701
  });
1702
1702
  }
1703
1703
  const s = to({
1704
1704
  callback(l) {
1705
1705
  if (e)
1706
- for (const u of l) {
1706
+ for (const c of l) {
1707
1707
  const {
1708
- type: c,
1708
+ type: u,
1709
1709
  target: d
1710
- } = u;
1711
- if (c === "childList" && d instanceof HTMLElement && d.contains(e)) {
1710
+ } = c;
1711
+ if (u === "childList" && d instanceof HTMLElement && d.contains(e)) {
1712
1712
  i();
1713
1713
  break;
1714
1714
  }
@@ -1725,30 +1725,30 @@ function Zt(e, t, n) {
1725
1725
  }, [e]), r;
1726
1726
  }
1727
1727
  function ro(e) {
1728
- const t = Sn(e);
1729
- return gn(e, t);
1728
+ const t = Dn(e);
1729
+ return bn(e, t);
1730
1730
  }
1731
- const Qt = [];
1731
+ const en = [];
1732
1732
  function oo(e) {
1733
- const t = L(e), n = Ze((r) => e ? r && r !== Qt && e && t.current && e.parentNode === t.current.parentNode ? r : At(e) : Qt, [e]);
1734
- return M(() => {
1733
+ const t = O(e), n = Ze((r) => e ? r && r !== en && e && t.current && e.parentNode === t.current.parentNode ? r : Nt(e) : en, [e]);
1734
+ return N(() => {
1735
1735
  t.current = e;
1736
1736
  }, [e]), n;
1737
1737
  }
1738
1738
  function io(e) {
1739
- const [t, n] = Q(null), r = L(e), o = K((i) => {
1739
+ const [t, n] = Q(null), r = O(e), o = U((i) => {
1740
1740
  const s = yt(i.target);
1741
1741
  s && n((a) => a ? (a.set(s, Dt(s)), new Map(a)) : null);
1742
1742
  }, []);
1743
- return M(() => {
1743
+ return N(() => {
1744
1744
  const i = r.current;
1745
1745
  if (e !== i) {
1746
1746
  s(i);
1747
1747
  const a = e.map((l) => {
1748
- const u = yt(l);
1749
- return u ? (u.addEventListener("scroll", o, {
1748
+ const c = yt(l);
1749
+ return c ? (c.addEventListener("scroll", o, {
1750
1750
  passive: !0
1751
- }), [u, Dt(u)]) : null;
1751
+ }), [c, Dt(c)]) : null;
1752
1752
  }).filter((l) => l != null);
1753
1753
  n(a.length ? new Map(a) : null), r.current = e;
1754
1754
  }
@@ -1757,28 +1757,28 @@ function io(e) {
1757
1757
  };
1758
1758
  function s(a) {
1759
1759
  a.forEach((l) => {
1760
- const u = yt(l);
1761
- u == null || u.removeEventListener("scroll", o);
1760
+ const c = yt(l);
1761
+ c == null || c.removeEventListener("scroll", o);
1762
1762
  });
1763
1763
  }
1764
- }, [o, e]), O(() => e.length ? t ? Array.from(t.values()).reduce((i, s) => Le(i, s), ie) : wn(e) : ie, [e, t]);
1764
+ }, [o, e]), A(() => e.length ? t ? Array.from(t.values()).reduce((i, s) => Le(i, s), ie) : mn(e) : ie, [e, t]);
1765
1765
  }
1766
- function en(e, t) {
1766
+ function tn(e, t) {
1767
1767
  t === void 0 && (t = []);
1768
- const n = L(null);
1769
- return M(
1768
+ const n = O(null);
1769
+ return N(
1770
1770
  () => {
1771
1771
  n.current = null;
1772
1772
  },
1773
1773
  // eslint-disable-next-line react-hooks/exhaustive-deps
1774
1774
  t
1775
- ), M(() => {
1775
+ ), N(() => {
1776
1776
  const r = e !== ie;
1777
1777
  r && !n.current && (n.current = e), !r && n.current && (n.current = null);
1778
1778
  }, [e]), n.current ? lt(e, n.current) : ie;
1779
1779
  }
1780
1780
  function so(e) {
1781
- M(
1781
+ N(
1782
1782
  () => {
1783
1783
  if (!dt)
1784
1784
  return;
@@ -1804,7 +1804,7 @@ function so(e) {
1804
1804
  );
1805
1805
  }
1806
1806
  function ao(e, t) {
1807
- return O(() => e.reduce((n, r) => {
1807
+ return A(() => e.reduce((n, r) => {
1808
1808
  let {
1809
1809
  eventName: o,
1810
1810
  handler: i
@@ -1814,15 +1814,15 @@ function ao(e, t) {
1814
1814
  }, n;
1815
1815
  }, {}), [e, t]);
1816
1816
  }
1817
- function Dn(e) {
1818
- return O(() => e ? Nr(e) : null, [e]);
1817
+ function Cn(e) {
1818
+ return A(() => e ? Nr(e) : null, [e]);
1819
1819
  }
1820
- const tn = [];
1820
+ const nn = [];
1821
1821
  function lo(e, t) {
1822
1822
  t === void 0 && (t = Pe);
1823
- const [n] = e, r = Dn(n ? q(n) : null), [o, i] = Q(tn);
1823
+ const [n] = e, r = Cn(n ? G(n) : null), [o, i] = Q(nn);
1824
1824
  function s() {
1825
- i(() => e.length ? e.map((l) => yn(l) ? r : new Nt(t(l), l)) : tn);
1825
+ i(() => e.length ? e.map((l) => xn(l) ? r : new Ot(t(l), l)) : nn);
1826
1826
  }
1827
1827
  const a = ft({
1828
1828
  callback: s
@@ -1843,13 +1843,13 @@ function uo(e) {
1843
1843
  let {
1844
1844
  measure: t
1845
1845
  } = e;
1846
- const [n, r] = Q(null), o = K((u) => {
1846
+ const [n, r] = Q(null), o = U((c) => {
1847
1847
  for (const {
1848
- target: c
1849
- } of u)
1850
- if (_e(c)) {
1848
+ target: u
1849
+ } of c)
1850
+ if (_e(u)) {
1851
1851
  r((d) => {
1852
- const f = t(c);
1852
+ const f = t(u);
1853
1853
  return d ? {
1854
1854
  ...d,
1855
1855
  width: f.width,
@@ -1860,30 +1860,30 @@ function uo(e) {
1860
1860
  }
1861
1861
  }, [t]), i = ft({
1862
1862
  callback: o
1863
- }), s = K((u) => {
1864
- const c = co(u);
1865
- i == null || i.disconnect(), c && (i == null || i.observe(c)), r(c ? t(c) : null);
1863
+ }), s = U((c) => {
1864
+ const u = co(c);
1865
+ i == null || i.disconnect(), u && (i == null || i.observe(u)), r(u ? t(u) : null);
1866
1866
  }, [t, i]), [a, l] = at(s);
1867
- return O(() => ({
1867
+ return A(() => ({
1868
1868
  nodeRef: a,
1869
1869
  rect: n,
1870
1870
  setRef: l
1871
1871
  }), [n, a, l]);
1872
1872
  }
1873
1873
  const fo = [{
1874
- sensor: Lt,
1874
+ sensor: zt,
1875
1875
  options: {}
1876
1876
  }, {
1877
- sensor: Ot,
1877
+ sensor: Mt,
1878
1878
  options: {}
1879
1879
  }], ho = {
1880
1880
  current: {}
1881
1881
  }, st = {
1882
1882
  draggable: {
1883
- measure: Vt
1883
+ measure: qt
1884
1884
  },
1885
1885
  droppable: {
1886
- measure: Vt,
1886
+ measure: qt,
1887
1887
  strategy: Ge.WhileDragging,
1888
1888
  frequency: Rt.Optimized
1889
1889
  },
@@ -1948,7 +1948,7 @@ const go = {
1948
1948
  draggableNodes: /* @__PURE__ */ new Map(),
1949
1949
  over: null,
1950
1950
  measureDroppableContainers: ct
1951
- }, ht = /* @__PURE__ */ Je(bo), Cn = /* @__PURE__ */ Je(go);
1951
+ }, ht = /* @__PURE__ */ Je(bo), Rn = /* @__PURE__ */ Je(go);
1952
1952
  function vo() {
1953
1953
  return {
1954
1954
  draggable: {
@@ -1970,7 +1970,7 @@ function vo() {
1970
1970
  }
1971
1971
  function po(e, t) {
1972
1972
  switch (t.type) {
1973
- case $.DragStart:
1973
+ case F.DragStart:
1974
1974
  return {
1975
1975
  ...e,
1976
1976
  draggable: {
@@ -1979,7 +1979,7 @@ function po(e, t) {
1979
1979
  active: t.active
1980
1980
  }
1981
1981
  };
1982
- case $.DragMove:
1982
+ case F.DragMove:
1983
1983
  return e.draggable.active == null ? e : {
1984
1984
  ...e,
1985
1985
  draggable: {
@@ -1990,8 +1990,8 @@ function po(e, t) {
1990
1990
  }
1991
1991
  }
1992
1992
  };
1993
- case $.DragEnd:
1994
- case $.DragCancel:
1993
+ case F.DragEnd:
1994
+ case F.DragCancel:
1995
1995
  return {
1996
1996
  ...e,
1997
1997
  draggable: {
@@ -2007,7 +2007,7 @@ function po(e, t) {
2007
2007
  }
2008
2008
  }
2009
2009
  };
2010
- case $.RegisterDroppable: {
2010
+ case F.RegisterDroppable: {
2011
2011
  const {
2012
2012
  element: n
2013
2013
  } = t, {
@@ -2021,7 +2021,7 @@ function po(e, t) {
2021
2021
  }
2022
2022
  };
2023
2023
  }
2024
- case $.SetDroppableDisabled: {
2024
+ case F.SetDroppableDisabled: {
2025
2025
  const {
2026
2026
  id: n,
2027
2027
  key: r,
@@ -2041,7 +2041,7 @@ function po(e, t) {
2041
2041
  }
2042
2042
  };
2043
2043
  }
2044
- case $.UnregisterDroppable: {
2044
+ case F.UnregisterDroppable: {
2045
2045
  const {
2046
2046
  id: n,
2047
2047
  key: r
@@ -2070,24 +2070,24 @@ function yo(e) {
2070
2070
  activatorEvent: r,
2071
2071
  draggableNodes: o
2072
2072
  } = Ie(ht), i = mt(r), s = mt(n == null ? void 0 : n.id);
2073
- return M(() => {
2073
+ return N(() => {
2074
2074
  if (!t && !r && i && s != null) {
2075
- if (!Tt(i) || document.activeElement === i.target)
2075
+ if (!At(i) || document.activeElement === i.target)
2076
2076
  return;
2077
2077
  const a = o.get(s);
2078
2078
  if (!a)
2079
2079
  return;
2080
2080
  const {
2081
2081
  activatorNode: l,
2082
- node: u
2082
+ node: c
2083
2083
  } = a;
2084
- if (!l.current && !u.current)
2084
+ if (!l.current && !c.current)
2085
2085
  return;
2086
2086
  requestAnimationFrame(() => {
2087
- for (const c of [l.current, u.current]) {
2088
- if (!c)
2087
+ for (const u of [l.current, c.current]) {
2088
+ if (!u)
2089
2089
  continue;
2090
- const d = ar(c);
2090
+ const d = ar(u);
2091
2091
  if (d) {
2092
2092
  d.focus();
2093
2093
  break;
@@ -2108,7 +2108,7 @@ function xo(e, t) {
2108
2108
  }), n) : n;
2109
2109
  }
2110
2110
  function wo(e) {
2111
- return O(
2111
+ return A(
2112
2112
  () => ({
2113
2113
  draggable: {
2114
2114
  ...st.draggable,
@@ -2134,7 +2134,7 @@ function mo(e) {
2134
2134
  initialRect: r,
2135
2135
  config: o = !0
2136
2136
  } = e;
2137
- const i = L(!1), {
2137
+ const i = O(!1), {
2138
2138
  x: s,
2139
2139
  y: a
2140
2140
  } = typeof o == "boolean" ? {
@@ -2148,12 +2148,12 @@ function mo(e) {
2148
2148
  }
2149
2149
  if (i.current || !r)
2150
2150
  return;
2151
- const u = t == null ? void 0 : t.node.current;
2152
- if (!u || u.isConnected === !1)
2151
+ const c = t == null ? void 0 : t.node.current;
2152
+ if (!c || c.isConnected === !1)
2153
2153
  return;
2154
- const c = n(u), d = gn(c, r);
2154
+ const u = n(c), d = bn(u, r);
2155
2155
  if (s || (d.x = 0), a || (d.y = 0), i.current = !0, Math.abs(d.x) > 0 || Math.abs(d.y) > 0) {
2156
- const f = bn(u);
2156
+ const f = vn(c);
2157
2157
  f && f.scrollBy({
2158
2158
  top: d.y,
2159
2159
  left: d.x
@@ -2161,7 +2161,7 @@ function mo(e) {
2161
2161
  }
2162
2162
  }, [t, s, a, r, n]);
2163
2163
  }
2164
- const Rn = /* @__PURE__ */ Je({
2164
+ const In = /* @__PURE__ */ Je({
2165
2165
  ...ie,
2166
2166
  scaleX: 1,
2167
2167
  scaleY: 1
@@ -2170,80 +2170,80 @@ var De;
2170
2170
  (function(e) {
2171
2171
  e[e.Uninitialized = 0] = "Uninitialized", e[e.Initializing = 1] = "Initializing", e[e.Initialized = 2] = "Initialized";
2172
2172
  })(De || (De = {}));
2173
- const So = /* @__PURE__ */ Fn(function(t) {
2173
+ const So = /* @__PURE__ */ Hn(function(t) {
2174
2174
  var n, r, o, i;
2175
2175
  let {
2176
2176
  id: s,
2177
2177
  accessibility: a,
2178
2178
  autoScroll: l = !0,
2179
- children: u,
2180
- sensors: c = fo,
2179
+ children: c,
2180
+ sensors: u = fo,
2181
2181
  collisionDetection: d = Cr,
2182
2182
  measuring: f,
2183
2183
  modifiers: h,
2184
2184
  ...v
2185
2185
  } = t;
2186
- const g = Hn(po, void 0, vo), [b, x] = g, [p, y] = hr(), [R, S] = Q(De.Uninitialized), I = R === De.Initialized, {
2186
+ const g = Wn(po, void 0, vo), [b, y] = g, [x, w] = hr(), [p, C] = Q(De.Uninitialized), I = p === De.Initialized, {
2187
2187
  draggable: {
2188
- active: m,
2189
- nodes: w,
2190
- translate: D
2188
+ active: D,
2189
+ nodes: m,
2190
+ translate: L
2191
2191
  },
2192
2192
  droppable: {
2193
- containers: N
2193
+ containers: P
2194
2194
  }
2195
- } = b, C = m != null ? w.get(m) : null, P = L({
2195
+ } = b, S = D != null ? m.get(D) : null, B = O({
2196
2196
  initial: null,
2197
2197
  translated: null
2198
- }), j = O(() => {
2199
- var Y;
2200
- return m != null ? {
2201
- id: m,
2198
+ }), z = A(() => {
2199
+ var K;
2200
+ return D != null ? {
2201
+ id: D,
2202
2202
  // It's possible for the active node to unmount while dragging
2203
- data: (Y = C == null ? void 0 : C.data) != null ? Y : ho,
2204
- rect: P
2203
+ data: (K = S == null ? void 0 : S.data) != null ? K : ho,
2204
+ rect: B
2205
2205
  } : null;
2206
- }, [m, C]), T = L(null), [G, U] = Q(null), [k, se] = Q(null), B = Ve(v, Object.values(v)), ae = Qe("DndDescribedBy", s), le = O(() => N.getEnabled(), [N]), X = wo(f), {
2206
+ }, [D, S]), R = O(null), [j, V] = Q(null), [k, se] = Q(null), $ = Ve(v, Object.values(v)), ae = Qe("DndDescribedBy", s), le = A(() => P.getEnabled(), [P]), Y = wo(f), {
2207
2207
  droppableRects: he,
2208
2208
  measureDroppableContainers: Re,
2209
2209
  measuringScheduled: Be
2210
2210
  } = Qr(le, {
2211
2211
  dragging: I,
2212
- dependencies: [D.x, D.y],
2213
- config: X.droppable
2214
- }), ee = _r(w, m), et = O(() => k ? St(k) : null, [k]), pe = Bn(), ge = eo(ee, X.draggable.measure);
2212
+ dependencies: [L.x, L.y],
2213
+ config: Y.droppable
2214
+ }), ee = _r(m, D), et = A(() => k ? St(k) : null, [k]), pe = $n(), ge = eo(ee, Y.draggable.measure);
2215
2215
  mo({
2216
- activeNode: m != null ? w.get(m) : null,
2216
+ activeNode: D != null ? m.get(D) : null,
2217
2217
  config: pe.layoutShiftCompensation,
2218
2218
  initialRect: ge,
2219
- measure: X.draggable.measure
2219
+ measure: Y.draggable.measure
2220
2220
  });
2221
- const A = Zt(ee, X.draggable.measure, ge), $e = Zt(ee ? ee.parentElement : null), ce = L({
2221
+ const T = Qt(ee, Y.draggable.measure, ge), $e = Qt(ee ? ee.parentElement : null), ce = O({
2222
2222
  activatorEvent: null,
2223
2223
  active: null,
2224
2224
  activeNode: ee,
2225
2225
  collisionRect: null,
2226
2226
  collisions: null,
2227
2227
  droppableRects: he,
2228
- draggableNodes: w,
2228
+ draggableNodes: m,
2229
2229
  draggingNode: null,
2230
2230
  draggingNodeRect: null,
2231
- droppableContainers: N,
2231
+ droppableContainers: P,
2232
2232
  over: null,
2233
2233
  scrollableAncestors: [],
2234
2234
  scrollAdjustedTranslate: null
2235
- }), Ee = N.getNodeFor((n = ce.current.over) == null ? void 0 : n.id), be = uo({
2236
- measure: X.dragOverlay.measure
2237
- }), ke = (r = be.nodeRef.current) != null ? r : ee, Te = I ? (o = be.rect) != null ? o : A : null, jt = !!(be.nodeRef.current && be.rect), Pt = ro(jt ? null : A), gt = Dn(ke ? q(ke) : null), ye = oo(I ? Ee ?? ee : null), tt = lo(ye), nt = xo(h, {
2235
+ }), Ee = P.getNodeFor((n = ce.current.over) == null ? void 0 : n.id), be = uo({
2236
+ measure: Y.dragOverlay.measure
2237
+ }), ke = (r = be.nodeRef.current) != null ? r : ee, Te = I ? (o = be.rect) != null ? o : T : null, Pt = !!(be.nodeRef.current && be.rect), Bt = ro(Pt ? null : T), gt = Cn(ke ? G(ke) : null), ye = oo(I ? Ee ?? ee : null), tt = lo(ye), nt = xo(h, {
2238
2238
  transform: {
2239
- x: D.x - Pt.x,
2240
- y: D.y - Pt.y,
2239
+ x: L.x - Bt.x,
2240
+ y: L.y - Bt.y,
2241
2241
  scaleX: 1,
2242
2242
  scaleY: 1
2243
2243
  },
2244
2244
  activatorEvent: k,
2245
- active: j,
2246
- activeNodeRect: A,
2245
+ active: z,
2246
+ activeNodeRect: T,
2247
2247
  containerNodeRect: $e,
2248
2248
  draggingNodeRect: Te,
2249
2249
  over: ce.current.over,
@@ -2251,99 +2251,99 @@ const So = /* @__PURE__ */ Fn(function(t) {
2251
2251
  scrollableAncestors: ye,
2252
2252
  scrollableAncestorRects: tt,
2253
2253
  windowRect: gt
2254
- }), Bt = et ? Le(et, D) : null, $t = io(ye), Nn = en($t), On = en($t, [A]), Ae = Le(nt, Nn), Ne = Te ? Er(Te, nt) : null, Fe = j && Ne ? d({
2255
- active: j,
2254
+ }), $t = et ? Le(et, L) : null, Ft = io(ye), On = tn(Ft), Mn = tn(Ft, [T]), Ae = Le(nt, On), Ne = Te ? Er(Te, nt) : null, Fe = z && Ne ? d({
2255
+ active: z,
2256
2256
  collisionRect: Ne,
2257
2257
  droppableRects: he,
2258
2258
  droppableContainers: le,
2259
- pointerCoordinates: Bt
2260
- }) : null, Ft = mr(Fe, "id"), [xe, Ht] = Q(null), Mn = jt ? nt : Le(nt, On), Ln = Rr(Mn, (i = xe == null ? void 0 : xe.rect) != null ? i : null, A), bt = L(null), Wt = K(
2261
- (Y, J) => {
2259
+ pointerCoordinates: $t
2260
+ }) : null, Ht = mr(Fe, "id"), [xe, Wt] = Q(null), Ln = Pt ? nt : Le(nt, Mn), zn = Rr(Ln, (i = xe == null ? void 0 : xe.rect) != null ? i : null, T), bt = O(null), Xt = U(
2261
+ (K, J) => {
2262
2262
  let {
2263
2263
  sensor: _,
2264
2264
  options: we
2265
2265
  } = J;
2266
- if (T.current == null)
2266
+ if (R.current == null)
2267
2267
  return;
2268
- const te = w.get(T.current);
2268
+ const te = m.get(R.current);
2269
2269
  if (!te)
2270
2270
  return;
2271
- const Z = Y.nativeEvent, ue = new _({
2272
- active: T.current,
2271
+ const Z = K.nativeEvent, ue = new _({
2272
+ active: R.current,
2273
2273
  activeNode: te,
2274
2274
  event: Z,
2275
2275
  options: we,
2276
2276
  // Sensors need to be instantiated with refs for arguments that change over time
2277
2277
  // otherwise they are frozen in time with the stale arguments
2278
2278
  context: ce,
2279
- onAbort(H) {
2280
- if (!w.get(H))
2279
+ onAbort(W) {
2280
+ if (!m.get(W))
2281
2281
  return;
2282
2282
  const {
2283
2283
  onDragAbort: de
2284
- } = B.current, ve = {
2285
- id: H
2284
+ } = $.current, ve = {
2285
+ id: W
2286
2286
  };
2287
- de == null || de(ve), p({
2287
+ de == null || de(ve), x({
2288
2288
  type: "onDragAbort",
2289
2289
  event: ve
2290
2290
  });
2291
2291
  },
2292
- onPending(H, me, de, ve) {
2293
- if (!w.get(H))
2292
+ onPending(W, me, de, ve) {
2293
+ if (!m.get(W))
2294
2294
  return;
2295
2295
  const {
2296
2296
  onDragPending: We
2297
- } = B.current, Se = {
2298
- id: H,
2297
+ } = $.current, Se = {
2298
+ id: W,
2299
2299
  constraint: me,
2300
2300
  initialCoordinates: de,
2301
2301
  offset: ve
2302
2302
  };
2303
- We == null || We(Se), p({
2303
+ We == null || We(Se), x({
2304
2304
  type: "onDragPending",
2305
2305
  event: Se
2306
2306
  });
2307
2307
  },
2308
- onStart(H) {
2309
- const me = T.current;
2308
+ onStart(W) {
2309
+ const me = R.current;
2310
2310
  if (me == null)
2311
2311
  return;
2312
- const de = w.get(me);
2312
+ const de = m.get(me);
2313
2313
  if (!de)
2314
2314
  return;
2315
2315
  const {
2316
2316
  onDragStart: ve
2317
- } = B.current, He = {
2317
+ } = $.current, He = {
2318
2318
  activatorEvent: Z,
2319
2319
  active: {
2320
2320
  id: me,
2321
2321
  data: de.data,
2322
- rect: P
2322
+ rect: B
2323
2323
  }
2324
2324
  };
2325
2325
  rt(() => {
2326
- ve == null || ve(He), S(De.Initializing), x({
2327
- type: $.DragStart,
2328
- initialCoordinates: H,
2326
+ ve == null || ve(He), C(De.Initializing), y({
2327
+ type: F.DragStart,
2328
+ initialCoordinates: W,
2329
2329
  active: me
2330
- }), p({
2330
+ }), x({
2331
2331
  type: "onDragStart",
2332
2332
  event: He
2333
- }), U(bt.current), se(Z);
2333
+ }), V(bt.current), se(Z);
2334
2334
  });
2335
2335
  },
2336
- onMove(H) {
2337
- x({
2338
- type: $.DragMove,
2339
- coordinates: H
2336
+ onMove(W) {
2337
+ y({
2338
+ type: F.DragMove,
2339
+ coordinates: W
2340
2340
  });
2341
2341
  },
2342
- onEnd: Oe($.DragEnd),
2343
- onCancel: Oe($.DragCancel)
2342
+ onEnd: Oe(F.DragEnd),
2343
+ onCancel: Oe(F.DragCancel)
2344
2344
  });
2345
2345
  bt.current = ue;
2346
- function Oe(H) {
2346
+ function Oe(W) {
2347
2347
  return async function() {
2348
2348
  const {
2349
2349
  active: de,
@@ -2355,23 +2355,23 @@ const So = /* @__PURE__ */ Fn(function(t) {
2355
2355
  if (de && We) {
2356
2356
  const {
2357
2357
  cancelDrop: Xe
2358
- } = B.current;
2358
+ } = $.current;
2359
2359
  Se = {
2360
2360
  activatorEvent: Z,
2361
2361
  active: de,
2362
2362
  collisions: ve,
2363
2363
  delta: We,
2364
2364
  over: He
2365
- }, H === $.DragEnd && typeof Xe == "function" && await Promise.resolve(Xe(Se)) && (H = $.DragCancel);
2365
+ }, W === F.DragEnd && typeof Xe == "function" && await Promise.resolve(Xe(Se)) && (W = F.DragCancel);
2366
2366
  }
2367
- T.current = null, rt(() => {
2368
- x({
2369
- type: H
2370
- }), S(De.Uninitialized), Ht(null), U(null), se(null), bt.current = null;
2371
- const Xe = H === $.DragEnd ? "onDragEnd" : "onDragCancel";
2367
+ R.current = null, rt(() => {
2368
+ y({
2369
+ type: W
2370
+ }), C(De.Uninitialized), Wt(null), V(null), se(null), bt.current = null;
2371
+ const Xe = W === F.DragEnd ? "onDragEnd" : "onDragCancel";
2372
2372
  if (Se) {
2373
- const vt = B.current[Xe];
2374
- vt == null || vt(Se), p({
2373
+ const vt = $.current[Xe];
2374
+ vt == null || vt(Se), x({
2375
2375
  type: Xe,
2376
2376
  event: Se
2377
2377
  });
@@ -2381,12 +2381,12 @@ const So = /* @__PURE__ */ Fn(function(t) {
2381
2381
  }
2382
2382
  },
2383
2383
  // eslint-disable-next-line react-hooks/exhaustive-deps
2384
- [w]
2385
- ), zn = K((Y, J) => (_, we) => {
2386
- const te = _.nativeEvent, Z = w.get(we);
2384
+ [m]
2385
+ ), jn = U((K, J) => (_, we) => {
2386
+ const te = _.nativeEvent, Z = m.get(we);
2387
2387
  if (
2388
2388
  // Another sensor is already instantiating
2389
- T.current !== null || // No active draggable
2389
+ R.current !== null || // No active draggable
2390
2390
  !Z || // Event has already been captured
2391
2391
  te.dndKit || te.defaultPrevented
2392
2392
  )
@@ -2394,17 +2394,17 @@ const So = /* @__PURE__ */ Fn(function(t) {
2394
2394
  const ue = {
2395
2395
  active: Z
2396
2396
  };
2397
- Y(_, J.options, ue) === !0 && (te.dndKit = {
2397
+ K(_, J.options, ue) === !0 && (te.dndKit = {
2398
2398
  capturedBy: J.sensor
2399
- }, T.current = we, Wt(_, J));
2400
- }, [w, Wt]), Xt = Zr(c, zn);
2401
- so(c), fe(() => {
2402
- A && R === De.Initializing && S(De.Initialized);
2403
- }, [A, R]), M(
2399
+ }, R.current = we, Xt(_, J));
2400
+ }, [m, Xt]), Yt = Zr(u, jn);
2401
+ so(u), fe(() => {
2402
+ T && p === De.Initializing && C(De.Initialized);
2403
+ }, [T, p]), N(
2404
2404
  () => {
2405
2405
  const {
2406
- onDragMove: Y
2407
- } = B.current, {
2406
+ onDragMove: K
2407
+ } = $.current, {
2408
2408
  active: J,
2409
2409
  activatorEvent: _,
2410
2410
  collisions: we,
@@ -2423,7 +2423,7 @@ const So = /* @__PURE__ */ Fn(function(t) {
2423
2423
  over: te
2424
2424
  };
2425
2425
  rt(() => {
2426
- Y == null || Y(Z), p({
2426
+ K == null || K(Z), x({
2427
2427
  type: "onDragMove",
2428
2428
  event: Z
2429
2429
  });
@@ -2431,26 +2431,26 @@ const So = /* @__PURE__ */ Fn(function(t) {
2431
2431
  },
2432
2432
  // eslint-disable-next-line react-hooks/exhaustive-deps
2433
2433
  [Ae.x, Ae.y]
2434
- ), M(
2434
+ ), N(
2435
2435
  () => {
2436
2436
  const {
2437
- active: Y,
2437
+ active: K,
2438
2438
  activatorEvent: J,
2439
2439
  collisions: _,
2440
2440
  droppableContainers: we,
2441
2441
  scrollAdjustedTranslate: te
2442
2442
  } = ce.current;
2443
- if (!Y || T.current == null || !J || !te)
2443
+ if (!K || R.current == null || !J || !te)
2444
2444
  return;
2445
2445
  const {
2446
2446
  onDragOver: Z
2447
- } = B.current, ue = we.get(Ft), Oe = ue && ue.rect.current ? {
2447
+ } = $.current, ue = we.get(Ht), Oe = ue && ue.rect.current ? {
2448
2448
  id: ue.id,
2449
2449
  rect: ue.rect.current,
2450
2450
  data: ue.data,
2451
2451
  disabled: ue.disabled
2452
- } : null, H = {
2453
- active: Y,
2452
+ } : null, W = {
2453
+ active: K,
2454
2454
  activatorEvent: J,
2455
2455
  collisions: _,
2456
2456
  delta: {
@@ -2460,88 +2460,88 @@ const So = /* @__PURE__ */ Fn(function(t) {
2460
2460
  over: Oe
2461
2461
  };
2462
2462
  rt(() => {
2463
- Ht(Oe), Z == null || Z(H), p({
2463
+ Wt(Oe), Z == null || Z(W), x({
2464
2464
  type: "onDragOver",
2465
- event: H
2465
+ event: W
2466
2466
  });
2467
2467
  });
2468
2468
  },
2469
2469
  // eslint-disable-next-line react-hooks/exhaustive-deps
2470
- [Ft]
2470
+ [Ht]
2471
2471
  ), fe(() => {
2472
2472
  ce.current = {
2473
2473
  activatorEvent: k,
2474
- active: j,
2474
+ active: z,
2475
2475
  activeNode: ee,
2476
2476
  collisionRect: Ne,
2477
2477
  collisions: Fe,
2478
2478
  droppableRects: he,
2479
- draggableNodes: w,
2479
+ draggableNodes: m,
2480
2480
  draggingNode: ke,
2481
2481
  draggingNodeRect: Te,
2482
- droppableContainers: N,
2482
+ droppableContainers: P,
2483
2483
  over: xe,
2484
2484
  scrollableAncestors: ye,
2485
2485
  scrollAdjustedTranslate: Ae
2486
- }, P.current = {
2486
+ }, B.current = {
2487
2487
  initial: Te,
2488
2488
  translated: Ne
2489
2489
  };
2490
- }, [j, ee, Fe, Ne, w, ke, Te, he, N, xe, ye, Ae]), qr({
2490
+ }, [z, ee, Fe, Ne, m, ke, Te, he, P, xe, ye, Ae]), qr({
2491
2491
  ...pe,
2492
- delta: D,
2492
+ delta: L,
2493
2493
  draggingRect: Ne,
2494
- pointerCoordinates: Bt,
2494
+ pointerCoordinates: $t,
2495
2495
  scrollableAncestors: ye,
2496
2496
  scrollableAncestorRects: tt
2497
2497
  });
2498
- const jn = O(() => ({
2499
- active: j,
2498
+ const Pn = A(() => ({
2499
+ active: z,
2500
2500
  activeNode: ee,
2501
- activeNodeRect: A,
2501
+ activeNodeRect: T,
2502
2502
  activatorEvent: k,
2503
2503
  collisions: Fe,
2504
2504
  containerNodeRect: $e,
2505
2505
  dragOverlay: be,
2506
- draggableNodes: w,
2507
- droppableContainers: N,
2506
+ draggableNodes: m,
2507
+ droppableContainers: P,
2508
2508
  droppableRects: he,
2509
2509
  over: xe,
2510
2510
  measureDroppableContainers: Re,
2511
2511
  scrollableAncestors: ye,
2512
2512
  scrollableAncestorRects: tt,
2513
- measuringConfiguration: X,
2513
+ measuringConfiguration: Y,
2514
2514
  measuringScheduled: Be,
2515
2515
  windowRect: gt
2516
- }), [j, ee, A, k, Fe, $e, be, w, N, he, xe, Re, ye, tt, X, Be, gt]), Pn = O(() => ({
2516
+ }), [z, ee, T, k, Fe, $e, be, m, P, he, xe, Re, ye, tt, Y, Be, gt]), Bn = A(() => ({
2517
2517
  activatorEvent: k,
2518
- activators: Xt,
2519
- active: j,
2520
- activeNodeRect: A,
2518
+ activators: Yt,
2519
+ active: z,
2520
+ activeNodeRect: T,
2521
2521
  ariaDescribedById: {
2522
2522
  draggable: ae
2523
2523
  },
2524
- dispatch: x,
2525
- draggableNodes: w,
2524
+ dispatch: y,
2525
+ draggableNodes: m,
2526
2526
  over: xe,
2527
2527
  measureDroppableContainers: Re
2528
- }), [k, Xt, j, A, x, ae, w, xe, Re]);
2529
- return V.createElement(hn.Provider, {
2530
- value: y
2531
- }, V.createElement(ht.Provider, {
2528
+ }), [k, Yt, z, T, y, ae, m, xe, Re]);
2529
+ return q.createElement(gn.Provider, {
2530
+ value: w
2531
+ }, q.createElement(ht.Provider, {
2532
+ value: Bn
2533
+ }, q.createElement(Rn.Provider, {
2532
2534
  value: Pn
2533
- }, V.createElement(Cn.Provider, {
2534
- value: jn
2535
- }, V.createElement(Rn.Provider, {
2536
- value: Ln
2537
- }, u)), V.createElement(yo, {
2535
+ }, q.createElement(In.Provider, {
2536
+ value: zn
2537
+ }, c)), q.createElement(yo, {
2538
2538
  disabled: (a == null ? void 0 : a.restoreFocus) === !1
2539
- })), V.createElement(vr, {
2539
+ })), q.createElement(vr, {
2540
2540
  ...a,
2541
2541
  hiddenTextDescribedById: ae
2542
2542
  }));
2543
- function Bn() {
2544
- const Y = (G == null ? void 0 : G.autoScrollEnabled) === !1, J = typeof l == "object" ? l.enabled === !1 : l === !1, _ = I && !Y && !J;
2543
+ function $n() {
2544
+ const K = (j == null ? void 0 : j.autoScrollEnabled) === !1, J = typeof l == "object" ? l.enabled === !1 : l === !1, _ = I && !K && !J;
2545
2545
  return typeof l == "object" ? {
2546
2546
  ...l,
2547
2547
  enabled: _
@@ -2549,7 +2549,7 @@ const So = /* @__PURE__ */ Fn(function(t) {
2549
2549
  enabled: _
2550
2550
  };
2551
2551
  }
2552
- }), Do = /* @__PURE__ */ Je(null), nn = "button", Co = "Draggable";
2552
+ }), Do = /* @__PURE__ */ Je(null), rn = "button", Co = "Draggable";
2553
2553
  function Ro(e) {
2554
2554
  let {
2555
2555
  id: t,
@@ -2561,53 +2561,53 @@ function Ro(e) {
2561
2561
  activators: s,
2562
2562
  activatorEvent: a,
2563
2563
  active: l,
2564
- activeNodeRect: u,
2565
- ariaDescribedById: c,
2564
+ activeNodeRect: c,
2565
+ ariaDescribedById: u,
2566
2566
  draggableNodes: d,
2567
2567
  over: f
2568
2568
  } = Ie(ht), {
2569
- role: h = nn,
2569
+ role: h = rn,
2570
2570
  roleDescription: v = "draggable",
2571
2571
  tabIndex: g = 0
2572
- } = o ?? {}, b = (l == null ? void 0 : l.id) === t, x = Ie(b ? Rn : Do), [p, y] = at(), [R, S] = at(), I = ao(s, t), m = Ve(n);
2572
+ } = o ?? {}, b = (l == null ? void 0 : l.id) === t, y = Ie(b ? In : Do), [x, w] = at(), [p, C] = at(), I = ao(s, t), D = Ve(n);
2573
2573
  fe(
2574
2574
  () => (d.set(t, {
2575
2575
  id: t,
2576
2576
  key: i,
2577
- node: p,
2578
- activatorNode: R,
2579
- data: m
2577
+ node: x,
2578
+ activatorNode: p,
2579
+ data: D
2580
2580
  }), () => {
2581
- const D = d.get(t);
2582
- D && D.key === i && d.delete(t);
2581
+ const L = d.get(t);
2582
+ L && L.key === i && d.delete(t);
2583
2583
  }),
2584
2584
  // eslint-disable-next-line react-hooks/exhaustive-deps
2585
2585
  [d, t]
2586
2586
  );
2587
- const w = O(() => ({
2587
+ const m = A(() => ({
2588
2588
  role: h,
2589
2589
  tabIndex: g,
2590
2590
  "aria-disabled": r,
2591
- "aria-pressed": b && h === nn ? !0 : void 0,
2591
+ "aria-pressed": b && h === rn ? !0 : void 0,
2592
2592
  "aria-roledescription": v,
2593
- "aria-describedby": c.draggable
2594
- }), [r, h, g, b, v, c.draggable]);
2593
+ "aria-describedby": u.draggable
2594
+ }), [r, h, g, b, v, u.draggable]);
2595
2595
  return {
2596
2596
  active: l,
2597
2597
  activatorEvent: a,
2598
- activeNodeRect: u,
2599
- attributes: w,
2598
+ activeNodeRect: c,
2599
+ attributes: m,
2600
2600
  isDragging: b,
2601
2601
  listeners: r ? void 0 : I,
2602
- node: p,
2602
+ node: x,
2603
2603
  over: f,
2604
- setNodeRef: y,
2605
- setActivatorNodeRef: S,
2606
- transform: x
2604
+ setNodeRef: w,
2605
+ setActivatorNodeRef: C,
2606
+ transform: y
2607
2607
  };
2608
2608
  }
2609
2609
  function Io() {
2610
- return Ie(Cn);
2610
+ return Ie(Rn);
2611
2611
  }
2612
2612
  const Eo = "Droppable", ko = {
2613
2613
  timeout: 25
@@ -2623,71 +2623,71 @@ function To(e) {
2623
2623
  active: s,
2624
2624
  dispatch: a,
2625
2625
  over: l,
2626
- measureDroppableContainers: u
2627
- } = Ie(ht), c = L({
2626
+ measureDroppableContainers: c
2627
+ } = Ie(ht), u = O({
2628
2628
  disabled: n
2629
- }), d = L(!1), f = L(null), h = L(null), {
2629
+ }), d = O(!1), f = O(null), h = O(null), {
2630
2630
  disabled: v,
2631
2631
  updateMeasurementsFor: g,
2632
2632
  timeout: b
2633
2633
  } = {
2634
2634
  ...ko,
2635
2635
  ...o
2636
- }, x = Ve(g ?? r), p = K(
2636
+ }, y = Ve(g ?? r), x = U(
2637
2637
  () => {
2638
2638
  if (!d.current) {
2639
2639
  d.current = !0;
2640
2640
  return;
2641
2641
  }
2642
2642
  h.current != null && clearTimeout(h.current), h.current = setTimeout(() => {
2643
- u(Array.isArray(x.current) ? x.current : [x.current]), h.current = null;
2643
+ c(Array.isArray(y.current) ? y.current : [y.current]), h.current = null;
2644
2644
  }, b);
2645
2645
  },
2646
2646
  //eslint-disable-next-line react-hooks/exhaustive-deps
2647
2647
  [b]
2648
- ), y = ft({
2649
- callback: p,
2648
+ ), w = ft({
2649
+ callback: x,
2650
2650
  disabled: v || !s
2651
- }), R = K((w, D) => {
2652
- y && (D && (y.unobserve(D), d.current = !1), w && y.observe(w));
2653
- }, [y]), [S, I] = at(R), m = Ve(t);
2654
- return M(() => {
2655
- !y || !S.current || (y.disconnect(), d.current = !1, y.observe(S.current));
2656
- }, [S, y]), M(
2651
+ }), p = U((m, L) => {
2652
+ w && (L && (w.unobserve(L), d.current = !1), m && w.observe(m));
2653
+ }, [w]), [C, I] = at(p), D = Ve(t);
2654
+ return N(() => {
2655
+ !w || !C.current || (w.disconnect(), d.current = !1, w.observe(C.current));
2656
+ }, [C, w]), N(
2657
2657
  () => (a({
2658
- type: $.RegisterDroppable,
2658
+ type: F.RegisterDroppable,
2659
2659
  element: {
2660
2660
  id: r,
2661
2661
  key: i,
2662
2662
  disabled: n,
2663
- node: S,
2663
+ node: C,
2664
2664
  rect: f,
2665
- data: m
2665
+ data: D
2666
2666
  }
2667
2667
  }), () => a({
2668
- type: $.UnregisterDroppable,
2668
+ type: F.UnregisterDroppable,
2669
2669
  key: i,
2670
2670
  id: r
2671
2671
  })),
2672
2672
  // eslint-disable-next-line react-hooks/exhaustive-deps
2673
2673
  [r]
2674
- ), M(() => {
2675
- n !== c.current.disabled && (a({
2676
- type: $.SetDroppableDisabled,
2674
+ ), N(() => {
2675
+ n !== u.current.disabled && (a({
2676
+ type: F.SetDroppableDisabled,
2677
2677
  id: r,
2678
2678
  key: i,
2679
2679
  disabled: n
2680
- }), c.current.disabled = n);
2680
+ }), u.current.disabled = n);
2681
2681
  }, [r, i, n, a]), {
2682
2682
  active: s,
2683
2683
  rect: f,
2684
2684
  isOver: (l == null ? void 0 : l.id) === r,
2685
- node: S,
2685
+ node: C,
2686
2686
  over: l,
2687
2687
  setNodeRef: I
2688
2688
  };
2689
2689
  }
2690
- function zt(e, t, n) {
2690
+ function jt(e, t, n) {
2691
2691
  const r = e.slice();
2692
2692
  return r.splice(n < 0 ? r.length + n : n, 0, r.splice(t, 1)[0]), r;
2693
2693
  }
@@ -2733,9 +2733,9 @@ const it = {
2733
2733
  return null;
2734
2734
  const l = Lo(n, s, o);
2735
2735
  if (s === o) {
2736
- const u = n[i];
2737
- return u ? {
2738
- x: o < i ? u.left + u.width - (a.left + a.width) : u.left - a.left,
2736
+ const c = n[i];
2737
+ return c ? {
2738
+ x: o < i ? c.left + c.width - (a.left + a.width) : c.left - a.left,
2739
2739
  y: 0,
2740
2740
  ...it
2741
2741
  } : null;
@@ -2758,29 +2758,29 @@ function Lo(e, t, n) {
2758
2758
  const r = e[t], o = e[t - 1], i = e[t + 1];
2759
2759
  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);
2760
2760
  }
2761
- const In = (e) => {
2761
+ const En = (e) => {
2762
2762
  let {
2763
2763
  rects: t,
2764
2764
  activeIndex: n,
2765
2765
  overIndex: r,
2766
2766
  index: o
2767
2767
  } = e;
2768
- const i = zt(t, r, n), s = t[o], a = i[o];
2768
+ const i = jt(t, r, n), s = t[o], a = i[o];
2769
2769
  return !a || !s ? null : {
2770
2770
  x: a.left - s.left,
2771
2771
  y: a.top - s.top,
2772
2772
  scaleX: a.width / s.width,
2773
2773
  scaleY: a.height / s.height
2774
2774
  };
2775
- }, En = "Sortable", kn = /* @__PURE__ */ V.createContext({
2775
+ }, kn = "Sortable", Tn = /* @__PURE__ */ q.createContext({
2776
2776
  activeIndex: -1,
2777
- containerId: En,
2777
+ containerId: kn,
2778
2778
  disableTransforms: !1,
2779
2779
  items: [],
2780
2780
  overIndex: -1,
2781
2781
  useDragOverlay: !1,
2782
2782
  sortedRects: [],
2783
- strategy: In,
2783
+ strategy: En,
2784
2784
  disabled: {
2785
2785
  draggable: !1,
2786
2786
  droppable: !1
@@ -2791,27 +2791,27 @@ function zo(e) {
2791
2791
  children: t,
2792
2792
  id: n,
2793
2793
  items: r,
2794
- strategy: o = In,
2794
+ strategy: o = En,
2795
2795
  disabled: i = !1
2796
2796
  } = e;
2797
2797
  const {
2798
2798
  active: s,
2799
2799
  dragOverlay: a,
2800
2800
  droppableRects: l,
2801
- over: u,
2802
- measureDroppableContainers: c
2803
- } = Io(), d = Qe(En, n), f = a.rect !== null, h = O(() => r.map((I) => typeof I == "object" && "id" in I ? I.id : I), [r]), v = s != null, g = s ? h.indexOf(s.id) : -1, b = u ? h.indexOf(u.id) : -1, x = L(h), p = !No(h, x.current), y = b !== -1 && g === -1 || p, R = Oo(i);
2801
+ over: c,
2802
+ measureDroppableContainers: u
2803
+ } = Io(), d = Qe(kn, n), f = a.rect !== null, h = A(() => r.map((I) => typeof I == "object" && "id" in I ? I.id : I), [r]), v = s != null, g = s ? h.indexOf(s.id) : -1, b = c ? h.indexOf(c.id) : -1, y = O(h), x = !No(h, y.current), w = b !== -1 && g === -1 || x, p = Oo(i);
2804
2804
  fe(() => {
2805
- p && v && c(h);
2806
- }, [p, h, v, c]), M(() => {
2807
- x.current = h;
2805
+ x && v && u(h);
2806
+ }, [x, h, v, u]), N(() => {
2807
+ y.current = h;
2808
2808
  }, [h]);
2809
- const S = O(
2809
+ const C = A(
2810
2810
  () => ({
2811
2811
  activeIndex: g,
2812
2812
  containerId: d,
2813
- disabled: R,
2814
- disableTransforms: y,
2813
+ disabled: p,
2814
+ disableTransforms: w,
2815
2815
  items: h,
2816
2816
  overIndex: b,
2817
2817
  useDragOverlay: f,
@@ -2819,10 +2819,10 @@ function zo(e) {
2819
2819
  strategy: o
2820
2820
  }),
2821
2821
  // eslint-disable-next-line react-hooks/exhaustive-deps
2822
- [g, d, R.draggable, R.droppable, y, h, b, l, f, o]
2822
+ [g, d, p.draggable, p.droppable, w, h, b, l, f, o]
2823
2823
  );
2824
- return V.createElement(kn.Provider, {
2825
- value: S
2824
+ return q.createElement(Tn.Provider, {
2825
+ value: C
2826
2826
  }, t);
2827
2827
  }
2828
2828
  const jo = (e) => {
@@ -2832,8 +2832,8 @@ const jo = (e) => {
2832
2832
  activeIndex: r,
2833
2833
  overIndex: o
2834
2834
  } = e;
2835
- return zt(n, r, o).indexOf(t);
2836
- }, Tn = (e) => {
2835
+ return jt(n, r, o).indexOf(t);
2836
+ }, An = (e) => {
2837
2837
  let {
2838
2838
  containerId: t,
2839
2839
  isSorting: n,
@@ -2843,14 +2843,14 @@ const jo = (e) => {
2843
2843
  newIndex: s,
2844
2844
  previousItems: a,
2845
2845
  previousContainerId: l,
2846
- transition: u
2846
+ transition: c
2847
2847
  } = e;
2848
- return !u || !r || a !== i && o === s ? !1 : n ? !0 : s !== o && t === l;
2848
+ return !c || !r || a !== i && o === s ? !1 : n ? !0 : s !== o && t === l;
2849
2849
  }, Po = {
2850
2850
  duration: 200,
2851
2851
  easing: "ease"
2852
- }, An = "transform", Bo = /* @__PURE__ */ qe.Transition.toString({
2853
- property: An,
2852
+ }, Nn = "transform", Bo = /* @__PURE__ */ qe.Transition.toString({
2853
+ property: Nn,
2854
2854
  duration: 0,
2855
2855
  easing: "linear"
2856
2856
  }), $o = {
@@ -2863,30 +2863,30 @@ function Fo(e) {
2863
2863
  node: r,
2864
2864
  rect: o
2865
2865
  } = e;
2866
- const [i, s] = Q(null), a = L(n);
2866
+ const [i, s] = Q(null), a = O(n);
2867
2867
  return fe(() => {
2868
2868
  if (!t && n !== a.current && r.current) {
2869
2869
  const l = o.current;
2870
2870
  if (l) {
2871
- const u = Pe(r.current, {
2871
+ const c = Pe(r.current, {
2872
2872
  ignoreTransform: !0
2873
- }), c = {
2874
- x: l.left - u.left,
2875
- y: l.top - u.top,
2876
- scaleX: l.width / u.width,
2877
- scaleY: l.height / u.height
2873
+ }), u = {
2874
+ x: l.left - c.left,
2875
+ y: l.top - c.top,
2876
+ scaleX: l.width / c.width,
2877
+ scaleY: l.height / c.height
2878
2878
  };
2879
- (c.x || c.y) && s(c);
2879
+ (u.x || u.y) && s(u);
2880
2880
  }
2881
2881
  }
2882
2882
  n !== a.current && (a.current = n);
2883
- }, [t, n, r, o]), M(() => {
2883
+ }, [t, n, r, o]), N(() => {
2884
2884
  i && s(null);
2885
2885
  }, [i]), i;
2886
2886
  }
2887
2887
  function Ho(e) {
2888
2888
  let {
2889
- animateLayoutChanges: t = Tn,
2889
+ animateLayoutChanges: t = An,
2890
2890
  attributes: n,
2891
2891
  disabled: r,
2892
2892
  data: o,
@@ -2894,125 +2894,125 @@ function Ho(e) {
2894
2894
  id: s,
2895
2895
  strategy: a,
2896
2896
  resizeObserverConfig: l,
2897
- transition: u = Po
2897
+ transition: c = Po
2898
2898
  } = e;
2899
2899
  const {
2900
- items: c,
2900
+ items: u,
2901
2901
  containerId: d,
2902
2902
  activeIndex: f,
2903
2903
  disabled: h,
2904
2904
  disableTransforms: v,
2905
2905
  sortedRects: g,
2906
2906
  overIndex: b,
2907
- useDragOverlay: x,
2908
- strategy: p
2909
- } = Ie(kn), y = Wo(r, h), R = c.indexOf(s), S = O(() => ({
2907
+ useDragOverlay: y,
2908
+ strategy: x
2909
+ } = Ie(Tn), w = Wo(r, h), p = u.indexOf(s), C = A(() => ({
2910
2910
  sortable: {
2911
2911
  containerId: d,
2912
- index: R,
2913
- items: c
2912
+ index: p,
2913
+ items: u
2914
2914
  },
2915
2915
  ...o
2916
- }), [d, o, R, c]), I = O(() => c.slice(c.indexOf(s)), [c, s]), {
2917
- rect: m,
2918
- node: w,
2919
- isOver: D,
2920
- setNodeRef: N
2916
+ }), [d, o, p, u]), I = A(() => u.slice(u.indexOf(s)), [u, s]), {
2917
+ rect: D,
2918
+ node: m,
2919
+ isOver: L,
2920
+ setNodeRef: P
2921
2921
  } = To({
2922
2922
  id: s,
2923
- data: S,
2924
- disabled: y.droppable,
2923
+ data: C,
2924
+ disabled: w.droppable,
2925
2925
  resizeObserverConfig: {
2926
2926
  updateMeasurementsFor: I,
2927
2927
  ...l
2928
2928
  }
2929
2929
  }), {
2930
- active: C,
2931
- activatorEvent: P,
2932
- activeNodeRect: j,
2933
- attributes: T,
2934
- setNodeRef: G,
2935
- listeners: U,
2930
+ active: S,
2931
+ activatorEvent: B,
2932
+ activeNodeRect: z,
2933
+ attributes: R,
2934
+ setNodeRef: j,
2935
+ listeners: V,
2936
2936
  isDragging: k,
2937
2937
  over: se,
2938
- setActivatorNodeRef: B,
2938
+ setActivatorNodeRef: $,
2939
2939
  transform: ae
2940
2940
  } = Ro({
2941
2941
  id: s,
2942
- data: S,
2942
+ data: C,
2943
2943
  attributes: {
2944
2944
  ...$o,
2945
2945
  ...n
2946
2946
  },
2947
- disabled: y.draggable
2948
- }), le = rr(N, G), X = !!C, he = X && !v && ot(f) && ot(b), Re = !x && k, Be = Re && he ? ae : null, et = he ? Be ?? (a ?? p)({
2947
+ disabled: w.draggable
2948
+ }), le = rr(P, j), Y = !!S, he = Y && !v && ot(f) && ot(b), Re = !y && k, Be = Re && he ? ae : null, et = he ? Be ?? (a ?? x)({
2949
2949
  rects: g,
2950
- activeNodeRect: j,
2950
+ activeNodeRect: z,
2951
2951
  activeIndex: f,
2952
2952
  overIndex: b,
2953
- index: R
2953
+ index: p
2954
2954
  }) : null, pe = ot(f) && ot(b) ? i({
2955
2955
  id: s,
2956
- items: c,
2956
+ items: u,
2957
2957
  activeIndex: f,
2958
2958
  overIndex: b
2959
- }) : R, ge = C == null ? void 0 : C.id, A = L({
2959
+ }) : p, ge = S == null ? void 0 : S.id, T = O({
2960
2960
  activeId: ge,
2961
- items: c,
2961
+ items: u,
2962
2962
  newIndex: pe,
2963
2963
  containerId: d
2964
- }), $e = c !== A.current.items, ce = t({
2965
- active: C,
2964
+ }), $e = u !== T.current.items, ce = t({
2965
+ active: S,
2966
2966
  containerId: d,
2967
2967
  isDragging: k,
2968
- isSorting: X,
2968
+ isSorting: Y,
2969
2969
  id: s,
2970
- index: R,
2971
- items: c,
2972
- newIndex: A.current.newIndex,
2973
- previousItems: A.current.items,
2974
- previousContainerId: A.current.containerId,
2975
- transition: u,
2976
- wasDragging: A.current.activeId != null
2970
+ index: p,
2971
+ items: u,
2972
+ newIndex: T.current.newIndex,
2973
+ previousItems: T.current.items,
2974
+ previousContainerId: T.current.containerId,
2975
+ transition: c,
2976
+ wasDragging: T.current.activeId != null
2977
2977
  }), Ee = Fo({
2978
2978
  disabled: !ce,
2979
- index: R,
2980
- node: w,
2981
- rect: m
2979
+ index: p,
2980
+ node: m,
2981
+ rect: D
2982
2982
  });
2983
- return M(() => {
2984
- X && A.current.newIndex !== pe && (A.current.newIndex = pe), d !== A.current.containerId && (A.current.containerId = d), c !== A.current.items && (A.current.items = c);
2985
- }, [X, pe, d, c]), M(() => {
2986
- if (ge === A.current.activeId)
2983
+ return N(() => {
2984
+ Y && T.current.newIndex !== pe && (T.current.newIndex = pe), d !== T.current.containerId && (T.current.containerId = d), u !== T.current.items && (T.current.items = u);
2985
+ }, [Y, pe, d, u]), N(() => {
2986
+ if (ge === T.current.activeId)
2987
2987
  return;
2988
- if (ge != null && A.current.activeId == null) {
2989
- A.current.activeId = ge;
2988
+ if (ge != null && T.current.activeId == null) {
2989
+ T.current.activeId = ge;
2990
2990
  return;
2991
2991
  }
2992
2992
  const ke = setTimeout(() => {
2993
- A.current.activeId = ge;
2993
+ T.current.activeId = ge;
2994
2994
  }, 50);
2995
2995
  return () => clearTimeout(ke);
2996
2996
  }, [ge]), {
2997
- active: C,
2997
+ active: S,
2998
2998
  activeIndex: f,
2999
- attributes: T,
3000
- data: S,
3001
- rect: m,
3002
- index: R,
2999
+ attributes: R,
3000
+ data: C,
3001
+ rect: D,
3002
+ index: p,
3003
3003
  newIndex: pe,
3004
- items: c,
3005
- isOver: D,
3006
- isSorting: X,
3004
+ items: u,
3005
+ isOver: L,
3006
+ isSorting: Y,
3007
3007
  isDragging: k,
3008
- listeners: U,
3009
- node: w,
3008
+ listeners: V,
3009
+ node: m,
3010
3010
  overIndex: b,
3011
3011
  over: se,
3012
3012
  setNodeRef: le,
3013
- setActivatorNodeRef: B,
3014
- setDroppableNodeRef: N,
3015
- setDraggableNodeRef: G,
3013
+ setActivatorNodeRef: $,
3014
+ setDroppableNodeRef: P,
3015
+ setDraggableNodeRef: j,
3016
3016
  transform: Ee ?? et,
3017
3017
  transition: be()
3018
3018
  };
@@ -3020,13 +3020,13 @@ function Ho(e) {
3020
3020
  if (
3021
3021
  // Temporarily disable transitions for a single frame to set up derived transforms
3022
3022
  Ee || // Or to prevent items jumping to back to their "new" position when items change
3023
- $e && A.current.newIndex === R
3023
+ $e && T.current.newIndex === p
3024
3024
  )
3025
3025
  return Bo;
3026
- if (!(Re && !Tt(P) || !u) && (X || ce))
3026
+ if (!(Re && !At(B) || !c) && (Y || ce))
3027
3027
  return qe.Transition.toString({
3028
- ...u,
3029
- property: An
3028
+ ...c,
3029
+ property: Nn
3030
3030
  });
3031
3031
  }
3032
3032
  }
@@ -3042,7 +3042,7 @@ function Wo(e, t) {
3042
3042
  };
3043
3043
  }
3044
3044
  E.Down, E.Right, E.Up, E.Left;
3045
- const Xo = ({ className: e }) => /* @__PURE__ */ z.jsxs(
3045
+ const Xo = ({ className: e }) => /* @__PURE__ */ M.jsxs(
3046
3046
  "svg",
3047
3047
  {
3048
3048
  width: "16",
@@ -3052,8 +3052,8 @@ const Xo = ({ className: e }) => /* @__PURE__ */ z.jsxs(
3052
3052
  className: e,
3053
3053
  style: { flexShrink: 0 },
3054
3054
  children: [
3055
- /* @__PURE__ */ z.jsx("rect", { x: "4", y: "5", width: "8", height: "2", rx: "1" }),
3056
- /* @__PURE__ */ z.jsx("rect", { x: "4", y: "9", width: "8", height: "2", rx: "1" })
3055
+ /* @__PURE__ */ M.jsx("rect", { x: "4", y: "5", width: "8", height: "2", rx: "1" }),
3056
+ /* @__PURE__ */ M.jsx("rect", { x: "4", y: "9", width: "8", height: "2", rx: "1" })
3057
3057
  ]
3058
3058
  }
3059
3059
  ), Yo = ({
@@ -3067,67 +3067,67 @@ const Xo = ({ className: e }) => /* @__PURE__ */ z.jsxs(
3067
3067
  dragHandleIcon: a,
3068
3068
  theme: l = "light"
3069
3069
  }) => {
3070
- const u = Ce.useRef(null), [c, d] = Ce.useState(null), f = (D) => {
3071
- const { isSorting: N, wasDragging: C } = D;
3072
- return N || C ? Tn(D) : !0;
3070
+ const { direction: c } = It(), u = c === "rtl", d = Ce.useRef(null), [f, h] = Ce.useState(null), v = (S) => {
3071
+ const { isSorting: B, wasDragging: z } = S;
3072
+ return B || z ? An(S) : !0;
3073
3073
  }, {
3074
- attributes: h,
3075
- listeners: v,
3076
- setNodeRef: g,
3077
- transform: b,
3078
- transition: x,
3074
+ attributes: g,
3075
+ listeners: b,
3076
+ setNodeRef: y,
3077
+ transform: x,
3078
+ transition: w,
3079
3079
  isDragging: p
3080
3080
  } = Ho({
3081
3081
  id: e.key || `col-${t}`,
3082
3082
  disabled: !s || !!e.fixed,
3083
- animateLayoutChanges: f,
3083
+ animateLayoutChanges: v,
3084
3084
  transition: {
3085
3085
  duration: 250,
3086
3086
  easing: "cubic-bezier(0.25, 1, 0.5, 1)"
3087
3087
  }
3088
- }), y = Ce.useCallback(
3089
- (D) => {
3090
- u.current = D, g(D);
3088
+ }), C = Ce.useCallback(
3089
+ (S) => {
3090
+ d.current = S, y(S);
3091
3091
  },
3092
- [g]
3092
+ [y]
3093
3093
  );
3094
3094
  Ce.useEffect(() => {
3095
- if (p && u.current) {
3096
- const D = u.current.getBoundingClientRect().width;
3097
- d(D);
3095
+ if (p && d.current) {
3096
+ const S = d.current.getBoundingClientRect().width;
3097
+ h(S);
3098
3098
  } else
3099
- p || d(null);
3099
+ p || h(null);
3100
3100
  }, [p]);
3101
- const R = () => {
3102
- const D = p && c ? `${c}px` : e.width || "auto";
3103
- let N = "auto";
3104
- e.fixed ? N = p ? 1001 : 1e3 : p && (N = 100);
3105
- const C = {
3106
- transform: b ? qe.Translate.toString(b) : void 0,
3107
- transition: x || "transform 250ms cubic-bezier(0.25, 1, 0.5, 1)",
3101
+ const I = () => {
3102
+ const S = p && f ? `${f}px` : e.width || "auto";
3103
+ let B = "auto";
3104
+ e.fixed ? B = p ? 1001 : 1e3 : p && (B = 100);
3105
+ const z = {
3106
+ transform: x ? qe.Translate.toString(x) : void 0,
3107
+ transition: w || "transform 250ms cubic-bezier(0.25, 1, 0.5, 1)",
3108
3108
  willChange: "transform",
3109
- width: D,
3109
+ width: S,
3110
3110
  textAlign: oe.getTextAlign(e.align),
3111
3111
  opacity: p ? 0.5 : 1,
3112
3112
  // cursor 由 className 控制,不在 inline style 中设置
3113
- zIndex: N,
3113
+ zIndex: B,
3114
3114
  whiteSpace: "nowrap",
3115
3115
  overflow: "hidden",
3116
3116
  textOverflow: "ellipsis"
3117
3117
  };
3118
- if (p && c && (C.minWidth = `${c}px`, C.maxWidth = `${c}px`), e.fixed === "left") {
3119
- let P = 0;
3118
+ if (p && f && (z.minWidth = `${f}px`, z.maxWidth = `${f}px`), e.fixed === "left") {
3119
+ let R = 0;
3120
3120
  for (let j = 0; j < t; j++)
3121
- n[j].fixed === "left" && (P += parseInt(n[j].width || "150"));
3122
- C.left = `${P}px`;
3121
+ n[j].fixed === "left" && (R += parseInt(n[j].width || "150"));
3122
+ z[u ? "right" : "left"] = `${R}px`;
3123
3123
  } else if (e.fixed === "right") {
3124
- let P = 0;
3124
+ let R = 0;
3125
3125
  for (let j = t + 1; j < n.length; j++)
3126
- n[j].fixed === "right" && (P += parseInt(n[j].width || "150"));
3127
- C.right = `${P}px`;
3126
+ n[j].fixed === "right" && (R += parseInt(n[j].width || "150"));
3127
+ z[u ? "left" : "right"] = `${R}px`;
3128
3128
  }
3129
- return C;
3130
- }, S = Me(
3129
+ return z;
3130
+ }, D = Me(
3131
3131
  "bu-group",
3132
3132
  oe.getThClasses({
3133
3133
  theme: l,
@@ -3136,30 +3136,30 @@ const Xo = ({ className: e }) => /* @__PURE__ */ z.jsxs(
3136
3136
  isDragging: p,
3137
3137
  draggable: s
3138
3138
  })
3139
- ), I = s && !e.fixed, m = e.filter && e.key, w = (D) => {
3140
- m && (D.target.closest(".drag-handle-icon") || o(e));
3139
+ ), m = s && !e.fixed, L = e.filter && e.key, P = (S) => {
3140
+ L && (S.target.closest(".drag-handle-icon") || o(e));
3141
3141
  };
3142
- return /* @__PURE__ */ z.jsx(
3142
+ return /* @__PURE__ */ M.jsx(
3143
3143
  "th",
3144
3144
  {
3145
- ref: y,
3146
- className: S,
3147
- style: R(),
3148
- ...h,
3149
- ...v,
3150
- onClick: w,
3151
- children: /* @__PURE__ */ z.jsxs(
3145
+ ref: C,
3146
+ className: D,
3147
+ style: I(),
3148
+ ...g,
3149
+ ...b,
3150
+ onClick: P,
3151
+ children: /* @__PURE__ */ M.jsxs(
3152
3152
  "div",
3153
3153
  {
3154
3154
  className: "bu-relative bu-flex bu-items-center bu-gap-2",
3155
3155
  style: { justifyContent: e.align || "center" },
3156
3156
  children: [
3157
- /* @__PURE__ */ z.jsxs("div", { className: "bu-flex bu-items-center", children: [
3157
+ /* @__PURE__ */ M.jsxs("div", { className: "bu-flex bu-items-center", children: [
3158
3158
  e.renderHeader ? e.renderHeader([]) : e.title,
3159
3159
  i(e),
3160
3160
  e.renderEndIcon ? e.renderEndIcon() : null
3161
3161
  ] }),
3162
- I && /* @__PURE__ */ z.jsx(
3162
+ m && /* @__PURE__ */ M.jsx(
3163
3163
  "span",
3164
3164
  {
3165
3165
  "data-drag-handle": !0,
@@ -3167,14 +3167,13 @@ const Xo = ({ className: e }) => /* @__PURE__ */ z.jsxs(
3167
3167
  oe.dragHandle({
3168
3168
  theme: l
3169
3169
  }),
3170
- "group-hover:bu-opacity-100"
3170
+ "group-hover:bu-opacity-100 ltr:bu-ml-[4px] rtl:bu-mr-[4px]"
3171
3171
  )} drag-handle-icon`,
3172
3172
  style: {
3173
3173
  display: "flex",
3174
- alignItems: "center",
3175
- marginLeft: "4px"
3174
+ alignItems: "center"
3176
3175
  },
3177
- children: a !== null && (a || /* @__PURE__ */ z.jsx(Xo, {}))
3176
+ children: a !== null && (a || /* @__PURE__ */ M.jsx(Xo, {}))
3178
3177
  }
3179
3178
  )
3180
3179
  ]
@@ -3192,21 +3191,21 @@ const Xo = ({ className: e }) => /* @__PURE__ */ z.jsxs(
3192
3191
  draggable: s = !1,
3193
3192
  dragHandleIcon: a,
3194
3193
  theme: l = "light",
3195
- rowIdPrefix: u
3196
- } = e, c = (f) => {
3194
+ rowIdPrefix: c
3195
+ } = e, u = (f) => {
3197
3196
  f.filter && f.key && r(f.key, f.type);
3198
3197
  }, d = (f) => {
3199
3198
  if (!f.filter || !f.key)
3200
3199
  return null;
3201
3200
  const h = n[f.key] || ne.default, v = l === "dark" ? "rgba(235, 236, 245, 0.20)" : "rgba(10, 10, 10, 0.20)", g = l === "dark" ? "rgba(235, 236, 245, 0.60)" : "rgba(10, 10, 10, 0.60)", b = h !== ne.default;
3202
- return /* @__PURE__ */ z.jsx(
3201
+ return /* @__PURE__ */ M.jsx(
3203
3202
  "span",
3204
3203
  {
3205
3204
  className: Me(
3206
3205
  "bu-inline-flex bu-align-middle bu-transition-opacity bu-duration-200",
3207
- "bu-ml-[4px]"
3206
+ "ltr:bu-ml-[4px] rtl:bu-mr-[4px]"
3208
3207
  ),
3209
- children: /* @__PURE__ */ z.jsxs(
3208
+ children: /* @__PURE__ */ M.jsxs(
3210
3209
  "svg",
3211
3210
  {
3212
3211
  xmlns: "http://www.w3.org/2000/svg",
@@ -3219,14 +3218,14 @@ const Xo = ({ className: e }) => /* @__PURE__ */ z.jsxs(
3219
3218
  b ? "bu-opacity-100" : "bu-opacity-0 group-hover:bu-opacity-100"
3220
3219
  ),
3221
3220
  children: [
3222
- /* @__PURE__ */ z.jsx(
3221
+ /* @__PURE__ */ M.jsx(
3223
3222
  "path",
3224
3223
  {
3225
3224
  d: "M5.4847 3.04301V4.10942H0.151367V3.04301L2.81803 0.376343L5.4847 3.04301Z",
3226
3225
  fill: h === ne.asc ? g : v
3227
3226
  }
3228
3227
  ),
3229
- /* @__PURE__ */ z.jsx(
3228
+ /* @__PURE__ */ M.jsx(
3230
3229
  "path",
3231
3230
  {
3232
3231
  d: "M5.4847 5.89067V6.95707L2.81803 9.62374L0.151367 6.95707V5.89067H5.4847Z",
@@ -3239,14 +3238,14 @@ const Xo = ({ className: e }) => /* @__PURE__ */ z.jsxs(
3239
3238
  }
3240
3239
  );
3241
3240
  };
3242
- return /* @__PURE__ */ z.jsx("thead", { className: Me(oe.thead({ theme: l }), i), children: /* @__PURE__ */ z.jsx("tr", { id: u ? `${u}-thead` : "", children: t.map((f, h) => /* @__PURE__ */ z.jsx(
3241
+ return /* @__PURE__ */ M.jsx("thead", { className: Me(oe.thead({ theme: l }), i), children: /* @__PURE__ */ M.jsx("tr", { id: c ? `${c}-thead` : "", children: t.map((f, h) => /* @__PURE__ */ M.jsx(
3243
3242
  Yo,
3244
3243
  {
3245
3244
  column: f,
3246
3245
  index: h,
3247
3246
  columns: t,
3248
3247
  sortState: f.key ? n[f.key] : void 0,
3249
- onSort: c,
3248
+ onSort: u,
3250
3249
  renderSortIcon: d,
3251
3250
  isDragging: f.key === o,
3252
3251
  draggable: s,
@@ -3256,50 +3255,50 @@ const Xo = ({ className: e }) => /* @__PURE__ */ z.jsxs(
3256
3255
  f.key || h
3257
3256
  )) }) });
3258
3257
  }, Uo = (e) => {
3259
- const { columns: t, data: n, rowKey: r, tdClass: o, tbodyClass: i, theme: s = "light" } = e, a = (c, d) => {
3260
- const f = {
3261
- textAlign: oe.getTextAlign(c.align)
3258
+ const { columns: t, data: n, rowKey: r, tdClass: o, tbodyClass: i, theme: s = "light" } = e, { direction: a } = It(), l = a === "rtl", c = (f, h) => {
3259
+ const v = {
3260
+ textAlign: oe.getTextAlign(f.align)
3262
3261
  };
3263
- if (c.fixed === "left") {
3264
- let h = 0;
3265
- for (let v = 0; v < d; v++)
3266
- t[v].fixed === "left" && (h += parseInt(t[v].width || "150"));
3267
- f.left = `${h}px`;
3268
- } else if (c.fixed === "right") {
3269
- let h = 0;
3270
- for (let v = d + 1; v < t.length; v++)
3271
- t[v].fixed === "right" && (h += parseInt(t[v].width || "150"));
3272
- f.right = `${h}px`;
3262
+ if (f.fixed === "left") {
3263
+ let g = 0;
3264
+ for (let b = 0; b < h; b++)
3265
+ t[b].fixed === "left" && (g += parseInt(t[b].width || "150"));
3266
+ v[l ? "right" : "left"] = `${g}px`;
3267
+ } else if (f.fixed === "right") {
3268
+ let g = 0;
3269
+ for (let b = h + 1; b < t.length; b++)
3270
+ t[b].fixed === "right" && (g += parseInt(t[b].width || "150"));
3271
+ v[l ? "left" : "right"] = `${g}px`;
3273
3272
  }
3274
- return f;
3275
- }, l = (c, d, f) => c.render ? c.render(d, f) : c.key ? d[c.key] : null, u = (c, d, f) => {
3276
- if (c.onCell)
3277
- return c.onCell(d, f);
3273
+ return v;
3274
+ }, u = (f, h, v) => f.render ? f.render(h, v) : f.key ? h[f.key] : null, d = (f, h, v) => {
3275
+ if (f.onCell)
3276
+ return f.onCell(h, v);
3278
3277
  };
3279
- return /* @__PURE__ */ z.jsx("tbody", { className: Me(oe.tbody({ theme: s }), i), children: n.map((c, d) => /* @__PURE__ */ z.jsx(
3278
+ return /* @__PURE__ */ M.jsx("tbody", { className: Me(oe.tbody({ theme: s }), i), children: n.map((f, h) => /* @__PURE__ */ M.jsx(
3280
3279
  "tr",
3281
3280
  {
3282
- id: e.rowIdPrefix ? `${e.rowIdPrefix}-${d}` : "",
3281
+ id: e.rowIdPrefix ? `${e.rowIdPrefix}-${h}` : "",
3283
3282
  className: oe.tr({ theme: s }),
3284
- children: t.map((f, h) => {
3285
- const v = u(f, c, d);
3286
- return v === 0 ? null : /* @__PURE__ */ z.jsx(
3283
+ children: t.map((v, g) => {
3284
+ const b = d(v, f, h);
3285
+ return b === 0 ? null : /* @__PURE__ */ M.jsx(
3287
3286
  "td",
3288
3287
  {
3289
3288
  className: oe.getTdClasses({
3290
3289
  theme: s,
3291
- fixed: f.fixed,
3290
+ fixed: v.fixed,
3292
3291
  customClass: o
3293
3292
  }),
3294
- style: a(f, h),
3295
- colSpan: v,
3296
- children: l(f, c, d)
3293
+ style: c(v, g),
3294
+ colSpan: b,
3295
+ children: u(v, f, h)
3297
3296
  },
3298
- f.key || h
3297
+ v.key || g
3299
3298
  );
3300
3299
  })
3301
3300
  },
3302
- c[r] || d
3301
+ f[r] || h
3303
3302
  )) });
3304
3303
  }, Vo = (e) => {
3305
3304
  let {
@@ -3319,90 +3318,90 @@ const Xo = ({ className: e }) => /* @__PURE__ */ z.jsxs(
3319
3318
  tbodyClass: s,
3320
3319
  renderEmpty: a,
3321
3320
  onSortChange: l,
3322
- tableLayout: u = "auto",
3323
- draggable: c = !1,
3321
+ tableLayout: c = "auto",
3322
+ draggable: u = !1,
3324
3323
  // 默认不启用拖拽
3325
3324
  onColumnsChange: d,
3326
3325
  dragHandleIcon: f,
3327
3326
  maxHeight: h,
3328
3327
  rowIdPrefix: v
3329
- } = e, { theme: g } = Wn(), [b, x] = Ce.useState(t), [p, y] = Ce.useState({}), [R, S] = Ce.useState(null), I = pr(
3330
- Kt(Lt, {
3328
+ } = e, { theme: g } = It(), [b, y] = Ce.useState(t), [x, w] = Ce.useState({}), [p, C] = Ce.useState(null), I = pr(
3329
+ Ut(zt, {
3331
3330
  activationConstraint: {
3332
3331
  distance: 8
3333
3332
  // 8px 移动后才激活拖拽
3334
3333
  }
3335
3334
  }),
3336
- Kt(Ot)
3335
+ Ut(Mt)
3337
3336
  );
3338
3337
  Ce.useEffect(() => {
3339
- x(t);
3338
+ y(t);
3340
3339
  }, [t]);
3341
- const m = (T, G) => {
3342
- const U = p[T] || ne.default;
3340
+ const D = (R, j) => {
3341
+ const V = x[R] || ne.default;
3343
3342
  let k;
3344
- U === ne.default ? k = ne.desc : U === ne.desc ? k = ne.asc : k = ne.default;
3345
- const se = G || "single";
3346
- let B;
3347
- if (se === "single" ? B = { [T]: k } : (B = { ...p, [T]: k }, k === ne.default && delete B[T]), y(B), l)
3343
+ V === ne.default ? k = ne.desc : V === ne.desc ? k = ne.asc : k = ne.default;
3344
+ const se = j || "single";
3345
+ let $;
3346
+ if (se === "single" ? $ = { [R]: k } : ($ = { ...x, [R]: k }, k === ne.default && delete $[R]), w($), l)
3348
3347
  if (se === "single")
3349
- l({ sortKey: T, sort: k });
3348
+ l({ sortKey: R, sort: k });
3350
3349
  else {
3351
- const ae = Object.entries(B).map(([le, X]) => ({
3350
+ const ae = Object.entries($).map(([le, Y]) => ({
3352
3351
  sortKey: le,
3353
- sort: X
3352
+ sort: Y
3354
3353
  }));
3355
3354
  l(ae);
3356
3355
  }
3357
- }, w = (T) => {
3358
- S(T.active.id);
3359
- }, D = (T) => {
3360
- const { active: G, over: U } = T;
3361
- S(null), !(!U || G.id === U.id) && x((k) => {
3362
- const se = k.findIndex((le) => le.key === G.id), B = k.findIndex((le) => le.key === U.id);
3363
- if (se === -1 || B === -1 || k[B].fixed)
3356
+ }, m = (R) => {
3357
+ C(R.active.id);
3358
+ }, L = (R) => {
3359
+ const { active: j, over: V } = R;
3360
+ C(null), !(!V || j.id === V.id) && y((k) => {
3361
+ const se = k.findIndex((le) => le.key === j.id), $ = k.findIndex((le) => le.key === V.id);
3362
+ if (se === -1 || $ === -1 || k[$].fixed)
3364
3363
  return k;
3365
- const ae = zt(k, se, B);
3364
+ const ae = jt(k, se, $);
3366
3365
  return d && d(ae), ae;
3367
3366
  });
3368
- }, N = b.filter((T) => !T.fixed && T.key).map((T) => T.key), P = (() => {
3369
- const T = b.reduce((G, U) => {
3370
- if (U.width) {
3371
- const k = parseInt(U.width);
3372
- return G + (isNaN(k) ? 150 : k);
3367
+ }, P = b.filter((R) => !R.fixed && R.key).map((R) => R.key), B = (() => {
3368
+ const R = b.reduce((j, V) => {
3369
+ if (V.width) {
3370
+ const k = parseInt(V.width);
3371
+ return j + (isNaN(k) ? 150 : k);
3373
3372
  }
3374
- return G + 150;
3373
+ return j + 150;
3375
3374
  }, 0);
3376
- return T > 0 ? `${T}px` : void 0;
3377
- })(), j = () => /* @__PURE__ */ z.jsx(
3375
+ return R > 0 ? `${R}px` : void 0;
3376
+ })(), z = () => /* @__PURE__ */ M.jsx(
3378
3377
  "div",
3379
3378
  {
3380
3379
  className: oe.container({ theme: g }),
3381
3380
  style: h ? { maxHeight: h, overflowX: "auto", overflowY: "auto" } : { overflowX: "auto" },
3382
- children: n.length > 0 ? /* @__PURE__ */ z.jsxs(
3381
+ children: n.length > 0 ? /* @__PURE__ */ M.jsxs(
3383
3382
  "table",
3384
3383
  {
3385
3384
  className: oe.table(),
3386
3385
  style: {
3387
- tableLayout: u,
3388
- minWidth: u === "fixed" ? P : void 0
3386
+ tableLayout: c,
3387
+ minWidth: c === "fixed" ? B : void 0
3389
3388
  },
3390
3389
  children: [
3391
- /* @__PURE__ */ z.jsx(
3390
+ /* @__PURE__ */ M.jsx(
3392
3391
  Ko,
3393
3392
  {
3394
3393
  columns: b,
3395
- sortStates: p,
3396
- onSort: m,
3397
- activeId: c ? R : null,
3394
+ sortStates: x,
3395
+ onSort: D,
3396
+ activeId: u ? p : null,
3398
3397
  theadClass: o,
3399
- draggable: c,
3398
+ draggable: u,
3400
3399
  dragHandleIcon: f,
3401
3400
  theme: g,
3402
3401
  rowIdPrefix: v
3403
3402
  }
3404
3403
  ),
3405
- /* @__PURE__ */ z.jsx(
3404
+ /* @__PURE__ */ M.jsx(
3406
3405
  Uo,
3407
3406
  {
3408
3407
  columns: b,
@@ -3416,27 +3415,27 @@ const Xo = ({ className: e }) => /* @__PURE__ */ z.jsxs(
3416
3415
  )
3417
3416
  ]
3418
3417
  }
3419
- ) : /* @__PURE__ */ z.jsx("div", { className: oe.empty({ theme: g }), children: a || "No Data" })
3418
+ ) : /* @__PURE__ */ M.jsx("div", { className: oe.empty({ theme: g }), children: a || "No Data" })
3420
3419
  }
3421
3420
  );
3422
- return c ? /* @__PURE__ */ z.jsx(
3421
+ return u ? /* @__PURE__ */ M.jsx(
3423
3422
  So,
3424
3423
  {
3425
3424
  sensors: I,
3426
3425
  collisionDetection: Sr,
3427
- onDragStart: w,
3428
- onDragEnd: D,
3426
+ onDragStart: m,
3427
+ onDragEnd: L,
3429
3428
  modifiers: [Vo],
3430
- children: /* @__PURE__ */ z.jsx(
3429
+ children: /* @__PURE__ */ M.jsx(
3431
3430
  zo,
3432
3431
  {
3433
- items: N,
3432
+ items: P,
3434
3433
  strategy: Mo,
3435
- children: j()
3434
+ children: z()
3436
3435
  }
3437
3436
  )
3438
3437
  }
3439
- ) : j();
3438
+ ) : z();
3440
3439
  };
3441
3440
  export {
3442
3441
  Qo as P,