bitz-react-admin-ui 1.6.5 → 1.6.7

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 (84) hide show
  1. package/README.md +2 -2
  2. package/dist/bitz-ui.mjs +126 -120
  3. package/dist/components/BitzFluentInput/index.mjs +20 -17
  4. package/dist/components/BitzFluentSelect/index.mjs +20 -18
  5. package/dist/components/BitzList/List.mjs +28 -0
  6. package/dist/components/BitzList/LoadMore.mjs +69 -0
  7. package/dist/components/BitzList/index.less.mjs +4 -0
  8. package/dist/components/BitzList/index.mjs +6 -0
  9. package/dist/components/BitzPullRefresh/PullRefresh.mjs +113 -0
  10. package/dist/components/BitzPullRefresh/index.mjs +6 -0
  11. package/dist/components/BitzPullRefresh/style/index.less.mjs +4 -0
  12. package/dist/components/BitzSelect/component/BitzSelectMobile.mjs +133 -94
  13. package/dist/components/BitzTable/ActionBar/ActionBar.mjs +64 -0
  14. package/dist/components/BitzTable/ActionBar/Button.mjs +10 -0
  15. package/dist/components/BitzTable/ActionBar/index.mjs +6 -60
  16. package/dist/components/BitzTable/ActionBar/style.mjs +36 -32
  17. package/dist/components/BitzTable/ActionCol/index.mjs +29 -28
  18. package/dist/components/BitzTable/Table/index.mjs +302 -253
  19. package/dist/components/BitzTable/TableSkeleton/index.mjs +46 -42
  20. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnSettingModal.mjs +179 -173
  21. package/dist/components/BitzTable/ToolBar/ColConfigIcon/DndItem.mjs +28 -26
  22. package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +10 -9
  23. package/dist/components/BitzTable/ToolBar/DensityIcon/index.mjs +1 -1
  24. package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +28 -25
  25. package/dist/components/BitzTable/ToolBar/RefreshIcon/index.mjs +3 -2
  26. package/dist/components/BitzTable/ToolBar/Wrapper/index.mjs +23 -14
  27. package/dist/components/BitzTable/ToolBar/style.mjs +29 -20
  28. package/dist/hooks/use-event-listener.mjs +40 -0
  29. package/dist/hooks/use-lock-fn.mjs +21 -0
  30. package/dist/hooks/use-scroll-parent.mjs +34 -0
  31. package/dist/hooks/use-touch.mjs +33 -0
  32. package/dist/node_modules/.store/@dnd-kit_core@6.1.0/node_modules/@dnd-kit/core/dist/core.esm.mjs +751 -1050
  33. package/dist/node_modules/.store/ahooks@3.7.10/node_modules/ahooks/es/useSetState/index.mjs +16 -0
  34. package/dist/node_modules/.store/ahooks@3.7.10/node_modules/ahooks/es/useThrottleFn/index.mjs +28 -0
  35. package/dist/node_modules/.store/ahooks@3.7.10/node_modules/ahooks/es/useUpdateEffect/index.mjs +6 -0
  36. package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/_Symbol.mjs +5 -0
  37. package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/_baseGetTag.mjs +11 -0
  38. package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/_baseTrim.mjs +9 -0
  39. package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/_freeGlobal.mjs +5 -0
  40. package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/_getRawTag.mjs +16 -0
  41. package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/_objectToString.mjs +8 -0
  42. package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/_root.mjs +5 -0
  43. package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/_trimmedEndIndex.mjs +10 -0
  44. package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/debounce.mjs +55 -0
  45. package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/isObject.mjs +8 -0
  46. package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/isObjectLike.mjs +7 -0
  47. package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/isSymbol.mjs +10 -0
  48. package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/now.mjs +7 -0
  49. package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/throttle.mjs +19 -0
  50. package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/toNumber.mjs +23 -0
  51. package/dist/node_modules/.store/tslib@2.6.2/node_modules/tslib/tslib.es6.mjs +48 -37
  52. package/dist/node_modules/_clsx@2.1.0@clsx/dist/clsx.mjs +23 -0
  53. package/dist/style.css +1 -1
  54. package/dist/type/bitz-ui.d.ts +2 -0
  55. package/dist/type/components/BitzList/List.d.ts +4 -0
  56. package/dist/type/components/BitzList/LoadMore.d.ts +4 -0
  57. package/dist/type/components/BitzList/PropsType.d.ts +35 -0
  58. package/dist/type/components/BitzList/index.d.ts +5 -0
  59. package/dist/type/components/BitzPagination/index.d.ts +8 -2
  60. package/dist/type/components/BitzPullRefresh/PropsType.d.ts +43 -0
  61. package/dist/type/components/BitzPullRefresh/PullRefresh.d.ts +4 -0
  62. package/dist/type/components/BitzPullRefresh/index.d.ts +5 -0
  63. package/dist/type/components/BitzSelect/component/BitzSelectMobile.d.ts +1 -0
  64. package/dist/type/components/BitzTable/ActionBar/ActionBar.d.ts +37 -0
  65. package/dist/type/components/BitzTable/ActionBar/Button.d.ts +6 -0
  66. package/dist/type/components/BitzTable/ActionBar/index.d.ts +6 -33
  67. package/dist/type/components/BitzTable/ActionBar/style.d.ts +2 -2
  68. package/dist/type/components/BitzTable/Store/index.d.ts +2 -3
  69. package/dist/type/components/BitzTable/Table/index.d.ts +2 -2
  70. package/dist/type/components/BitzTable/TableSkeleton/index.d.ts +1 -1
  71. package/dist/type/components/BitzTable/ToolBar/ExportIcon/index.d.ts +2 -1
  72. package/dist/type/components/BitzTable/ToolBar/style.d.ts +1 -2
  73. package/dist/type/components/BitzTable/index.d.ts +6 -7
  74. package/dist/type/hooks/use-event-listener.d.ts +11 -0
  75. package/dist/type/hooks/use-lock-fn.d.ts +2 -0
  76. package/dist/type/hooks/use-scroll-parent.d.ts +9 -0
  77. package/dist/type/hooks/use-touch.d.ts +18 -0
  78. package/dist/type/pages/Login2/useRowSelection.d.ts +6 -4
  79. package/dist/type/pages/Test/index.d.ts +3 -0
  80. package/dist/type/utils/get-default-props.d.ts +2 -0
  81. package/dist/type/utils/scroll.d.ts +6 -0
  82. package/dist/utils/get-default-props.mjs +12 -0
  83. package/dist/utils/scroll.mjs +15 -0
  84. package/package.json +2 -1
@@ -1,36 +1,36 @@
1
- import A, { createContext as Oe, memo as bn, useReducer as st, useState as Y, useRef as z, useMemo as L, useCallback as U, useEffect as N, useContext as ae, cloneElement as yn, forwardRef as mn } from "react";
2
- import { unstable_batchedUpdates as De, createPortal as wn } from "react-dom";
3
- import { getWindow as J, useLatestValue as Re, useUniqueId as Ye, getEventCoordinates as Fe, add as he, useIsomorphicLayoutEffect as re, useInterval as Dn, usePrevious as $e, useLazyMemo as Ae, subtract as Ke, canUseDOM as at, isHTMLElement as Ue, useNodeRef as Xe, isKeyboardEvent as lt, findFirstFocusableNode as xn, CSS as nt, useEvent as ct, isWindow as ut, isNode as Cn, isDocument as Wt, getOwnerDocument as ge, isSVGElement as Sn } from "../../../../../@dnd-kit_utilities@3.2.2/node_modules/@dnd-kit/utilities/dist/utilities.esm.mjs";
4
- import { useAnnouncement as Rn, HiddenText as En, LiveRegion as On } from "../../../../../@dnd-kit_accessibility@3.1.0/node_modules/@dnd-kit/accessibility/dist/accessibility.esm.mjs";
5
- const Yt = /* @__PURE__ */ Oe(null);
6
- function An(e) {
7
- const t = ae(Yt);
8
- N(() => {
1
+ import j, { createContext as Me, memo as un, useReducer as ot, useState as V, useRef as I, useMemo as L, useCallback as _, useEffect as E, useContext as he } from "react";
2
+ import { unstable_batchedUpdates as De, createPortal as dn } from "react-dom";
3
+ import { getWindow as G, useLatestValue as Re, useUniqueId as Ue, getEventCoordinates as Ze, add as fe, useIsomorphicLayoutEffect as se, useInterval as fn, usePrevious as et, useLazyMemo as Ae, subtract as Fe, canUseDOM as it, isHTMLElement as Xe, useNodeRef as Pe, isKeyboardEvent as Ft, findFirstFocusableNode as hn, isWindow as st, isNode as gn, isDocument as Pt, getOwnerDocument as ge, useEvent as $t, isSVGElement as vn } from "../../../../../@dnd-kit_utilities@3.2.2/node_modules/@dnd-kit/utilities/dist/utilities.esm.mjs";
4
+ import { useAnnouncement as pn, HiddenText as bn, LiveRegion as wn } from "../../../../../@dnd-kit_accessibility@3.1.0/node_modules/@dnd-kit/accessibility/dist/accessibility.esm.mjs";
5
+ const Wt = /* @__PURE__ */ Me(null);
6
+ function yn(e) {
7
+ const t = he(Wt);
8
+ E(() => {
9
9
  if (!t)
10
10
  throw new Error("useDndMonitor must be used within a children of <DndContext>");
11
11
  return t(e);
12
12
  }, [e, t]);
13
13
  }
14
- function Nn() {
15
- const [e] = Y(() => /* @__PURE__ */ new Set()), t = U((r) => (e.add(r), () => e.delete(r)), [e]);
16
- return [U((r) => {
14
+ function mn() {
15
+ const [e] = V(() => /* @__PURE__ */ new Set()), t = _((r) => (e.add(r), () => e.delete(r)), [e]);
16
+ return [_((r) => {
17
17
  let {
18
18
  type: i,
19
19
  event: o
20
20
  } = r;
21
21
  e.forEach((s) => {
22
- var a;
23
- return (a = s[i]) == null ? void 0 : a.call(s, o);
22
+ var l;
23
+ return (l = s[i]) == null ? void 0 : l.call(s, o);
24
24
  });
25
25
  }, [e]), t];
26
26
  }
27
- const Mn = {
27
+ const Dn = {
28
28
  draggable: `
29
29
  To pick up a draggable item, press the space bar.
30
30
  While dragging, use the arrow keys to move the item.
31
31
  Press space again to drop the item in its new position, or press escape to cancel.
32
32
  `
33
- }, Tn = {
33
+ }, xn = {
34
34
  onDragStart(e) {
35
35
  let {
36
36
  active: t
@@ -58,100 +58,90 @@ const Mn = {
58
58
  return "Dragging was cancelled. Draggable item " + t.id + " was dropped.";
59
59
  }
60
60
  };
61
- function Ln(e) {
61
+ function Cn(e) {
62
62
  let {
63
- announcements: t = Tn,
63
+ announcements: t = xn,
64
64
  container: n,
65
65
  hiddenTextDescribedById: r,
66
- screenReaderInstructions: i = Mn
66
+ screenReaderInstructions: i = Dn
67
67
  } = e;
68
68
  const {
69
69
  announce: o,
70
70
  announcement: s
71
- } = Rn(), a = Ye("DndLiveRegion"), [l, c] = Y(!1);
72
- if (N(() => {
73
- c(!0);
74
- }, []), An(L(() => ({
75
- onDragStart(u) {
71
+ } = pn(), l = Ue("DndLiveRegion"), [a, u] = V(!1);
72
+ if (E(() => {
73
+ u(!0);
74
+ }, []), yn(L(() => ({
75
+ onDragStart(c) {
76
76
  let {
77
77
  active: g
78
- } = u;
78
+ } = c;
79
79
  o(t.onDragStart({
80
80
  active: g
81
81
  }));
82
82
  },
83
- onDragMove(u) {
83
+ onDragMove(c) {
84
84
  let {
85
85
  active: g,
86
86
  over: f
87
- } = u;
87
+ } = c;
88
88
  t.onDragMove && o(t.onDragMove({
89
89
  active: g,
90
90
  over: f
91
91
  }));
92
92
  },
93
- onDragOver(u) {
93
+ onDragOver(c) {
94
94
  let {
95
95
  active: g,
96
96
  over: f
97
- } = u;
97
+ } = c;
98
98
  o(t.onDragOver({
99
99
  active: g,
100
100
  over: f
101
101
  }));
102
102
  },
103
- onDragEnd(u) {
103
+ onDragEnd(c) {
104
104
  let {
105
105
  active: g,
106
106
  over: f
107
- } = u;
107
+ } = c;
108
108
  o(t.onDragEnd({
109
109
  active: g,
110
110
  over: f
111
111
  }));
112
112
  },
113
- onDragCancel(u) {
113
+ onDragCancel(c) {
114
114
  let {
115
115
  active: g,
116
116
  over: f
117
- } = u;
117
+ } = c;
118
118
  o(t.onDragCancel({
119
119
  active: g,
120
120
  over: f
121
121
  }));
122
122
  }
123
- }), [o, t])), !l)
123
+ }), [o, t])), !a)
124
124
  return null;
125
- const d = A.createElement(A.Fragment, null, A.createElement(En, {
125
+ const d = j.createElement(j.Fragment, null, j.createElement(bn, {
126
126
  id: r,
127
127
  value: i.draggable
128
- }), A.createElement(On, {
129
- id: a,
128
+ }), j.createElement(wn, {
129
+ id: l,
130
130
  announcement: s
131
131
  }));
132
- return n ? wn(d, n) : d;
132
+ return n ? dn(d, n) : d;
133
133
  }
134
- var O;
134
+ var R;
135
135
  (function(e) {
136
136
  e.DragStart = "dragStart", e.DragMove = "dragMove", e.DragEnd = "dragEnd", e.DragCancel = "dragCancel", e.DragOver = "dragOver", e.RegisterDroppable = "registerDroppable", e.SetDroppableDisabled = "setDroppableDisabled", e.UnregisterDroppable = "unregisterDroppable";
137
- })(O || (O = {}));
138
- function je() {
137
+ })(R || (R = {}));
138
+ function $e() {
139
139
  }
140
- const _ = /* @__PURE__ */ Object.freeze({
140
+ const K = /* @__PURE__ */ Object.freeze({
141
141
  x: 0,
142
142
  y: 0
143
143
  });
144
- function kn(e, t) {
145
- const n = Fe(e);
146
- if (!n)
147
- return "0 0";
148
- const r = {
149
- x: (n.x - t.left) / t.width * 100,
150
- y: (n.y - t.top) / t.height * 100
151
- };
152
- return r.x + "% " + r.y + "%";
153
- }
154
- function In(e, t) {
144
+ function Sn(e, t) {
155
145
  let {
156
146
  data: {
157
147
  value: n
@@ -163,21 +153,21 @@ function In(e, t) {
163
153
  } = t;
164
154
  return r - n;
165
155
  }
166
- function zn(e, t) {
156
+ function Rn(e, t) {
167
157
  if (!e || e.length === 0)
168
158
  return null;
169
159
  const [n] = e;
170
160
  return t ? n[t] : n;
171
161
  }
172
- function Pn(e, t) {
173
- const n = Math.max(t.top, e.top), r = Math.max(t.left, e.left), i = Math.min(t.left + t.width, e.left + e.width), o = Math.min(t.top + t.height, e.top + e.height), s = i - r, a = o - n;
162
+ function En(e, t) {
163
+ const n = Math.max(t.top, e.top), r = Math.max(t.left, e.left), i = Math.min(t.left + t.width, e.left + e.width), o = Math.min(t.top + t.height, e.top + e.height), s = i - r, l = o - n;
174
164
  if (r < i && n < o) {
175
- const l = t.width * t.height, c = e.width * e.height, d = s * a, u = d / (l + c - d);
176
- return Number(u.toFixed(4));
165
+ const a = t.width * t.height, u = e.width * e.height, d = s * l, c = d / (a + u - d);
166
+ return Number(c.toFixed(4));
177
167
  }
178
168
  return 0;
179
169
  }
180
- const Bn = (e) => {
170
+ const Mn = (e) => {
181
171
  let {
182
172
  collisionRect: t,
183
173
  droppableRects: n,
@@ -187,21 +177,21 @@ const Bn = (e) => {
187
177
  for (const o of r) {
188
178
  const {
189
179
  id: s
190
- } = o, a = n.get(s);
191
- if (a) {
192
- const l = Pn(a, t);
193
- l > 0 && i.push({
180
+ } = o, l = n.get(s);
181
+ if (l) {
182
+ const a = En(l, t);
183
+ a > 0 && i.push({
194
184
  id: s,
195
185
  data: {
196
186
  droppableContainer: o,
197
- value: l
187
+ value: a
198
188
  }
199
189
  });
200
190
  }
201
191
  }
202
- return i.sort(In);
192
+ return i.sort(Sn);
203
193
  };
204
- function Fn(e, t, n) {
194
+ function An(e, t, n) {
205
195
  return {
206
196
  ...e,
207
197
  scaleX: t && n ? t.width / n.width : 1,
@@ -212,25 +202,25 @@ function Ut(e, t) {
212
202
  return e && t ? {
213
203
  x: e.left - t.left,
214
204
  y: e.top - t.top
215
- } : _;
205
+ } : K;
216
206
  }
217
- function $n(e) {
207
+ function On(e) {
218
208
  return function(n) {
219
209
  for (var r = arguments.length, i = new Array(r > 1 ? r - 1 : 0), o = 1; o < r; o++)
220
210
  i[o - 1] = arguments[o];
221
- return i.reduce((s, a) => ({
211
+ return i.reduce((s, l) => ({
222
212
  ...s,
223
- top: s.top + e * a.y,
224
- bottom: s.bottom + e * a.y,
225
- left: s.left + e * a.x,
226
- right: s.right + e * a.x
213
+ top: s.top + e * l.y,
214
+ bottom: s.bottom + e * l.y,
215
+ left: s.left + e * l.x,
216
+ right: s.right + e * l.x
227
217
  }), {
228
218
  ...n
229
219
  });
230
220
  };
231
221
  }
232
- const Kn = /* @__PURE__ */ $n(1);
233
- function _t(e) {
222
+ const Nn = /* @__PURE__ */ On(1);
223
+ function Ln(e) {
234
224
  if (e.startsWith("matrix3d(")) {
235
225
  const t = e.slice(9, -1).split(/, /);
236
226
  return {
@@ -250,61 +240,61 @@ function _t(e) {
250
240
  }
251
241
  return null;
252
242
  }
253
- function Xn(e, t, n) {
254
- const r = _t(t);
243
+ function Tn(e, t, n) {
244
+ const r = Ln(t);
255
245
  if (!r)
256
246
  return e;
257
247
  const {
258
248
  scaleX: i,
259
249
  scaleY: o,
260
250
  x: s,
261
- y: a
262
- } = r, l = e.left - s - (1 - i) * parseFloat(n), c = e.top - a - (1 - o) * parseFloat(n.slice(n.indexOf(" ") + 1)), d = i ? e.width / i : e.width, u = o ? e.height / o : e.height;
251
+ y: l
252
+ } = r, a = e.left - s - (1 - i) * parseFloat(n), u = e.top - l - (1 - o) * parseFloat(n.slice(n.indexOf(" ") + 1)), d = i ? e.width / i : e.width, c = o ? e.height / o : e.height;
263
253
  return {
264
254
  width: d,
265
- height: u,
266
- top: c,
267
- right: l + d,
268
- bottom: c + u,
269
- left: l
255
+ height: c,
256
+ top: u,
257
+ right: a + d,
258
+ bottom: u + c,
259
+ left: a
270
260
  };
271
261
  }
272
- const jn = {
262
+ const In = {
273
263
  ignoreTransform: !1
274
264
  };
275
- function Ne(e, t) {
276
- t === void 0 && (t = jn);
265
+ function Oe(e, t) {
266
+ t === void 0 && (t = In);
277
267
  let n = e.getBoundingClientRect();
278
268
  if (t.ignoreTransform) {
279
269
  const {
280
- transform: c,
270
+ transform: u,
281
271
  transformOrigin: d
282
- } = J(e).getComputedStyle(e);
283
- c && (n = Xn(n, c, d));
272
+ } = G(e).getComputedStyle(e);
273
+ u && (n = Tn(n, u, d));
284
274
  }
285
275
  const {
286
276
  top: r,
287
277
  left: i,
288
278
  width: o,
289
279
  height: s,
290
- bottom: a,
291
- right: l
280
+ bottom: l,
281
+ right: a
292
282
  } = n;
293
283
  return {
294
284
  top: r,
295
285
  left: i,
296
286
  width: o,
297
287
  height: s,
298
- bottom: a,
299
- right: l
288
+ bottom: l,
289
+ right: a
300
290
  };
301
291
  }
302
- function kt(e) {
303
- return Ne(e, {
292
+ function At(e) {
293
+ return Oe(e, {
304
294
  ignoreTransform: !0
305
295
  });
306
296
  }
307
- function Wn(e) {
297
+ function kn(e) {
308
298
  const t = e.innerWidth, n = e.innerHeight;
309
299
  return {
310
300
  top: 0,
@@ -315,62 +305,62 @@ function Wn(e) {
315
305
  height: n
316
306
  };
317
307
  }
318
- function Yn(e, t) {
319
- return t === void 0 && (t = J(e).getComputedStyle(e)), t.position === "fixed";
308
+ function zn(e, t) {
309
+ return t === void 0 && (t = G(e).getComputedStyle(e)), t.position === "fixed";
320
310
  }
321
- function Un(e, t) {
322
- t === void 0 && (t = J(e).getComputedStyle(e));
311
+ function Bn(e, t) {
312
+ t === void 0 && (t = G(e).getComputedStyle(e));
323
313
  const n = /(auto|scroll|overlay)/;
324
314
  return ["overflow", "overflowX", "overflowY"].some((i) => {
325
315
  const o = t[i];
326
316
  return typeof o == "string" ? n.test(o) : !1;
327
317
  });
328
318
  }
329
- function dt(e, t) {
319
+ function lt(e, t) {
330
320
  const n = [];
331
321
  function r(i) {
332
322
  if (t != null && n.length >= t || !i)
333
323
  return n;
334
- if (Wt(i) && i.scrollingElement != null && !n.includes(i.scrollingElement))
324
+ if (Pt(i) && i.scrollingElement != null && !n.includes(i.scrollingElement))
335
325
  return n.push(i.scrollingElement), n;
336
- if (!Ue(i) || Sn(i) || n.includes(i))
326
+ if (!Xe(i) || vn(i) || n.includes(i))
337
327
  return n;
338
- const o = J(e).getComputedStyle(i);
339
- return i !== e && Un(i, o) && n.push(i), Yn(i, o) ? n : r(i.parentNode);
328
+ const o = G(e).getComputedStyle(i);
329
+ return i !== e && Bn(i, o) && n.push(i), zn(i, o) ? n : r(i.parentNode);
340
330
  }
341
331
  return e ? r(e) : n;
342
332
  }
343
- function Ht(e) {
344
- const [t] = dt(e, 1);
333
+ function Xt(e) {
334
+ const [t] = lt(e, 1);
345
335
  return t ?? null;
346
336
  }
347
- function Qe(e) {
348
- return !at || !e ? null : ut(e) ? e : Cn(e) ? Wt(e) || e === ge(e).scrollingElement ? window : Ue(e) ? e : null : null;
337
+ function Je(e) {
338
+ return !it || !e ? null : st(e) ? e : gn(e) ? Pt(e) || e === ge(e).scrollingElement ? window : Xe(e) ? e : null : null;
349
339
  }
350
- function Jt(e) {
351
- return ut(e) ? e.scrollX : e.scrollLeft;
340
+ function _t(e) {
341
+ return st(e) ? e.scrollX : e.scrollLeft;
352
342
  }
353
- function qt(e) {
354
- return ut(e) ? e.scrollY : e.scrollTop;
343
+ function Kt(e) {
344
+ return st(e) ? e.scrollY : e.scrollTop;
355
345
  }
356
- function rt(e) {
346
+ function tt(e) {
357
347
  return {
358
- x: Jt(e),
359
- y: qt(e)
348
+ x: _t(e),
349
+ y: Kt(e)
360
350
  };
361
351
  }
362
- var T;
352
+ var O;
363
353
  (function(e) {
364
354
  e[e.Forward = 1] = "Forward", e[e.Backward = -1] = "Backward";
365
- })(T || (T = {}));
366
- function Vt(e) {
367
- return !at || !e ? !1 : e === document.scrollingElement;
355
+ })(O || (O = {}));
356
+ function Yt(e) {
357
+ return !it || !e ? !1 : e === document.scrollingElement;
368
358
  }
369
- function Gt(e) {
359
+ function jt(e) {
370
360
  const t = {
371
361
  x: 0,
372
362
  y: 0
373
- }, n = Vt(e) ? {
363
+ }, n = Yt(e) ? {
374
364
  height: window.innerHeight,
375
365
  width: window.innerWidth
376
366
  } : {
@@ -379,49 +369,49 @@ function Gt(e) {
379
369
  }, r = {
380
370
  x: e.scrollWidth - n.width,
381
371
  y: e.scrollHeight - n.height
382
- }, i = e.scrollTop <= t.y, o = e.scrollLeft <= t.x, s = e.scrollTop >= r.y, a = e.scrollLeft >= r.x;
372
+ }, i = e.scrollTop <= t.y, o = e.scrollLeft <= t.x, s = e.scrollTop >= r.y, l = e.scrollLeft >= r.x;
383
373
  return {
384
374
  isTop: i,
385
375
  isLeft: o,
386
376
  isBottom: s,
387
- isRight: a,
377
+ isRight: l,
388
378
  maxScroll: r,
389
379
  minScroll: t
390
380
  };
391
381
  }
392
- const _n = {
382
+ const Fn = {
393
383
  x: 0.2,
394
384
  y: 0.2
395
385
  };
396
- function Hn(e, t, n, r, i) {
386
+ function Pn(e, t, n, r, i) {
397
387
  let {
398
388
  top: o,
399
389
  left: s,
400
- right: a,
401
- bottom: l
390
+ right: l,
391
+ bottom: a
402
392
  } = n;
403
- r === void 0 && (r = 10), i === void 0 && (i = _n);
393
+ r === void 0 && (r = 10), i === void 0 && (i = Fn);
404
394
  const {
405
- isTop: c,
395
+ isTop: u,
406
396
  isBottom: d,
407
- isLeft: u,
397
+ isLeft: c,
408
398
  isRight: g
409
- } = Gt(e), f = {
399
+ } = jt(e), f = {
410
400
  x: 0,
411
401
  y: 0
412
- }, D = {
402
+ }, C = {
413
403
  x: 0,
414
404
  y: 0
415
405
  }, h = {
416
406
  height: t.height * i.y,
417
407
  width: t.width * i.x
418
408
  };
419
- return !c && o <= t.top + h.height ? (f.y = T.Backward, D.y = r * Math.abs((t.top + h.height - o) / h.height)) : !d && l >= t.bottom - h.height && (f.y = T.Forward, D.y = r * Math.abs((t.bottom - h.height - l) / h.height)), !g && a >= t.right - h.width ? (f.x = T.Forward, D.x = r * Math.abs((t.right - h.width - a) / h.width)) : !u && s <= t.left + h.width && (f.x = T.Backward, D.x = r * Math.abs((t.left + h.width - s) / h.width)), {
409
+ return !u && o <= t.top + h.height ? (f.y = O.Backward, C.y = r * Math.abs((t.top + h.height - o) / h.height)) : !d && a >= t.bottom - h.height && (f.y = O.Forward, C.y = r * Math.abs((t.bottom - h.height - a) / h.height)), !g && l >= t.right - h.width ? (f.x = O.Forward, C.x = r * Math.abs((t.right - h.width - l) / h.width)) : !c && s <= t.left + h.width && (f.x = O.Backward, C.x = r * Math.abs((t.left + h.width - s) / h.width)), {
420
410
  direction: f,
421
- speed: D
411
+ speed: C
422
412
  };
423
413
  }
424
- function Jn(e) {
414
+ function $n(e) {
425
415
  if (e === document.scrollingElement) {
426
416
  const {
427
417
  innerWidth: o,
@@ -451,17 +441,17 @@ function Jn(e) {
451
441
  height: e.clientHeight
452
442
  };
453
443
  }
454
- function Qt(e) {
455
- return e.reduce((t, n) => he(t, rt(n)), _);
444
+ function Ht(e) {
445
+ return e.reduce((t, n) => fe(t, tt(n)), K);
456
446
  }
457
- function qn(e) {
458
- return e.reduce((t, n) => t + Jt(n), 0);
447
+ function Wn(e) {
448
+ return e.reduce((t, n) => t + _t(n), 0);
459
449
  }
460
- function Vn(e) {
461
- return e.reduce((t, n) => t + qt(n), 0);
450
+ function Un(e) {
451
+ return e.reduce((t, n) => t + Kt(n), 0);
462
452
  }
463
- function Zt(e, t) {
464
- if (t === void 0 && (t = Ne), !e)
453
+ function Xn(e, t) {
454
+ if (t === void 0 && (t = Oe), !e)
465
455
  return;
466
456
  const {
467
457
  top: n,
@@ -469,25 +459,25 @@ function Zt(e, t) {
469
459
  bottom: i,
470
460
  right: o
471
461
  } = t(e);
472
- Ht(e) && (i <= 0 || o <= 0 || n >= window.innerHeight || r >= window.innerWidth) && e.scrollIntoView({
462
+ Xt(e) && (i <= 0 || o <= 0 || n >= window.innerHeight || r >= window.innerWidth) && e.scrollIntoView({
473
463
  block: "center",
474
464
  inline: "center"
475
465
  });
476
466
  }
477
- const Gn = [["x", ["left", "right"], qn], ["y", ["top", "bottom"], Vn]];
478
- class ft {
467
+ const _n = [["x", ["left", "right"], Wn], ["y", ["top", "bottom"], Un]];
468
+ class at {
479
469
  constructor(t, n) {
480
470
  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;
481
- const r = dt(n), i = Qt(r);
471
+ const r = lt(n), i = Ht(r);
482
472
  this.rect = {
483
473
  ...t
484
474
  }, this.width = t.width, this.height = t.height;
485
- for (const [o, s, a] of Gn)
486
- for (const l of s)
487
- Object.defineProperty(this, l, {
475
+ for (const [o, s, l] of _n)
476
+ for (const a of s)
477
+ Object.defineProperty(this, a, {
488
478
  get: () => {
489
- const c = a(r), d = i[o] - c;
490
- return this.rect[l] + d;
479
+ const u = l(r), d = i[o] - u;
480
+ return this.rect[a] + d;
491
481
  },
492
482
  enumerable: !0
493
483
  });
@@ -510,62 +500,62 @@ class xe {
510
500
  (i = this.target) == null || i.addEventListener(t, n, r), this.listeners.push([t, n, r]);
511
501
  }
512
502
  }
513
- function Qn(e) {
503
+ function Kn(e) {
514
504
  const {
515
505
  EventTarget: t
516
- } = J(e);
506
+ } = G(e);
517
507
  return e instanceof t ? e : ge(e);
518
508
  }
519
- function Ze(e, t) {
509
+ function Ve(e, t) {
520
510
  const n = Math.abs(e.x), r = Math.abs(e.y);
521
511
  return typeof t == "number" ? Math.sqrt(n ** 2 + r ** 2) > t : "x" in t && "y" in t ? n > t.x && r > t.y : "x" in t ? n > t.x : "y" in t ? r > t.y : !1;
522
512
  }
523
- var $;
513
+ var P;
524
514
  (function(e) {
525
515
  e.Click = "click", e.DragStart = "dragstart", e.Keydown = "keydown", e.ContextMenu = "contextmenu", e.Resize = "resize", e.SelectionChange = "selectionchange", e.VisibilityChange = "visibilitychange";
526
- })($ || ($ = {}));
527
- function It(e) {
516
+ })(P || (P = {}));
517
+ function Ot(e) {
528
518
  e.preventDefault();
529
519
  }
530
- function Zn(e) {
520
+ function Yn(e) {
531
521
  e.stopPropagation();
532
522
  }
533
- var x;
523
+ var m;
534
524
  (function(e) {
535
525
  e.Space = "Space", e.Down = "ArrowDown", e.Right = "ArrowRight", e.Left = "ArrowLeft", e.Up = "ArrowUp", e.Esc = "Escape", e.Enter = "Enter";
536
- })(x || (x = {}));
537
- const en = {
538
- start: [x.Space, x.Enter],
539
- cancel: [x.Esc],
540
- end: [x.Space, x.Enter]
541
- }, er = (e, t) => {
526
+ })(m || (m = {}));
527
+ const qt = {
528
+ start: [m.Space, m.Enter],
529
+ cancel: [m.Esc],
530
+ end: [m.Space, m.Enter]
531
+ }, jn = (e, t) => {
542
532
  let {
543
533
  currentCoordinates: n
544
534
  } = t;
545
535
  switch (e.code) {
546
- case x.Right:
536
+ case m.Right:
547
537
  return {
548
538
  ...n,
549
539
  x: n.x + 25
550
540
  };
551
- case x.Left:
541
+ case m.Left:
552
542
  return {
553
543
  ...n,
554
544
  x: n.x - 25
555
545
  };
556
- case x.Down:
546
+ case m.Down:
557
547
  return {
558
548
  ...n,
559
549
  y: n.y + 25
560
550
  };
561
- case x.Up:
551
+ case m.Up:
562
552
  return {
563
553
  ...n,
564
554
  y: n.y - 25
565
555
  };
566
556
  }
567
557
  };
568
- class tn {
558
+ class Jt {
569
559
  constructor(t) {
570
560
  this.props = void 0, this.autoScrollEnabled = !1, this.referenceCoordinates = void 0, this.listeners = void 0, this.windowListeners = void 0, this.props = t;
571
561
  const {
@@ -573,101 +563,101 @@ class tn {
573
563
  target: n
574
564
  }
575
565
  } = t;
576
- this.props = t, this.listeners = new xe(ge(n)), this.windowListeners = new xe(J(n)), this.handleKeyDown = this.handleKeyDown.bind(this), this.handleCancel = this.handleCancel.bind(this), this.attach();
566
+ this.props = t, this.listeners = new xe(ge(n)), this.windowListeners = new xe(G(n)), this.handleKeyDown = this.handleKeyDown.bind(this), this.handleCancel = this.handleCancel.bind(this), this.attach();
577
567
  }
578
568
  attach() {
579
- this.handleStart(), this.windowListeners.add($.Resize, this.handleCancel), this.windowListeners.add($.VisibilityChange, this.handleCancel), setTimeout(() => this.listeners.add($.Keydown, this.handleKeyDown));
569
+ this.handleStart(), this.windowListeners.add(P.Resize, this.handleCancel), this.windowListeners.add(P.VisibilityChange, this.handleCancel), setTimeout(() => this.listeners.add(P.Keydown, this.handleKeyDown));
580
570
  }
581
571
  handleStart() {
582
572
  const {
583
573
  activeNode: t,
584
574
  onStart: n
585
575
  } = this.props, r = t.node.current;
586
- r && Zt(r), n(_);
576
+ r && Xn(r), n(K);
587
577
  }
588
578
  handleKeyDown(t) {
589
- if (lt(t)) {
579
+ if (Ft(t)) {
590
580
  const {
591
581
  active: n,
592
582
  context: r,
593
583
  options: i
594
584
  } = this.props, {
595
- keyboardCodes: o = en,
596
- coordinateGetter: s = er,
597
- scrollBehavior: a = "smooth"
585
+ keyboardCodes: o = qt,
586
+ coordinateGetter: s = jn,
587
+ scrollBehavior: l = "smooth"
598
588
  } = i, {
599
- code: l
589
+ code: a
600
590
  } = t;
601
- if (o.end.includes(l)) {
591
+ if (o.end.includes(a)) {
602
592
  this.handleEnd(t);
603
593
  return;
604
594
  }
605
- if (o.cancel.includes(l)) {
595
+ if (o.cancel.includes(a)) {
606
596
  this.handleCancel(t);
607
597
  return;
608
598
  }
609
599
  const {
610
- collisionRect: c
611
- } = r.current, d = c ? {
612
- x: c.left,
613
- y: c.top
614
- } : _;
600
+ collisionRect: u
601
+ } = r.current, d = u ? {
602
+ x: u.left,
603
+ y: u.top
604
+ } : K;
615
605
  this.referenceCoordinates || (this.referenceCoordinates = d);
616
- const u = s(t, {
606
+ const c = s(t, {
617
607
  active: n,
618
608
  context: r.current,
619
609
  currentCoordinates: d
620
610
  });
621
- if (u) {
622
- const g = Ke(u, d), f = {
611
+ if (c) {
612
+ const g = Fe(c, d), f = {
623
613
  x: 0,
624
614
  y: 0
625
615
  }, {
626
- scrollableAncestors: D
616
+ scrollableAncestors: C
627
617
  } = r.current;
628
- for (const h of D) {
618
+ for (const h of C) {
629
619
  const v = t.code, {
630
- isTop: b,
631
- isRight: w,
632
- isLeft: y,
633
- isBottom: M,
634
- maxScroll: C,
620
+ isTop: y,
621
+ isRight: D,
622
+ isLeft: b,
623
+ isBottom: T,
624
+ maxScroll: x,
635
625
  minScroll: S
636
- } = Gt(h), p = Jn(h), m = {
637
- x: Math.min(v === x.Right ? p.right - p.width / 2 : p.right, Math.max(v === x.Right ? p.left : p.left + p.width / 2, u.x)),
638
- y: Math.min(v === x.Down ? p.bottom - p.height / 2 : p.bottom, Math.max(v === x.Down ? p.top : p.top + p.height / 2, u.y))
639
- }, R = v === x.Right && !w || v === x.Left && !y, k = v === x.Down && !M || v === x.Up && !b;
640
- if (R && m.x !== u.x) {
641
- const E = h.scrollLeft + g.x, q = v === x.Right && E <= C.x || v === x.Left && E >= S.x;
642
- if (q && !g.y) {
626
+ } = jt(h), p = $n(h), w = {
627
+ x: Math.min(v === m.Right ? p.right - p.width / 2 : p.right, Math.max(v === m.Right ? p.left : p.left + p.width / 2, c.x)),
628
+ y: Math.min(v === m.Down ? p.bottom - p.height / 2 : p.bottom, Math.max(v === m.Down ? p.top : p.top + p.height / 2, c.y))
629
+ }, M = v === m.Right && !D || v === m.Left && !b, k = v === m.Down && !T || v === m.Up && !y;
630
+ if (M && w.x !== c.x) {
631
+ const A = h.scrollLeft + g.x, H = v === m.Right && A <= x.x || v === m.Left && A >= S.x;
632
+ if (H && !g.y) {
643
633
  h.scrollTo({
644
- left: E,
645
- behavior: a
634
+ left: A,
635
+ behavior: l
646
636
  });
647
637
  return;
648
638
  }
649
- q ? f.x = h.scrollLeft - E : f.x = v === x.Right ? h.scrollLeft - C.x : h.scrollLeft - S.x, f.x && h.scrollBy({
639
+ H ? f.x = h.scrollLeft - A : f.x = v === m.Right ? h.scrollLeft - x.x : h.scrollLeft - S.x, f.x && h.scrollBy({
650
640
  left: -f.x,
651
- behavior: a
641
+ behavior: l
652
642
  });
653
643
  break;
654
- } else if (k && m.y !== u.y) {
655
- const E = h.scrollTop + g.y, q = v === x.Down && E <= C.y || v === x.Up && E >= S.y;
656
- if (q && !g.x) {
644
+ } else if (k && w.y !== c.y) {
645
+ const A = h.scrollTop + g.y, H = v === m.Down && A <= x.y || v === m.Up && A >= S.y;
646
+ if (H && !g.x) {
657
647
  h.scrollTo({
658
- top: E,
659
- behavior: a
648
+ top: A,
649
+ behavior: l
660
650
  });
661
651
  return;
662
652
  }
663
- q ? f.y = h.scrollTop - E : f.y = v === x.Down ? h.scrollTop - C.y : h.scrollTop - S.y, f.y && h.scrollBy({
653
+ H ? f.y = h.scrollTop - A : f.y = v === m.Down ? h.scrollTop - x.y : h.scrollTop - S.y, f.y && h.scrollBy({
664
654
  top: -f.y,
665
- behavior: a
655
+ behavior: l
666
656
  });
667
657
  break;
668
658
  }
669
659
  }
670
- this.handleMove(t, he(Ke(u, this.referenceCoordinates), f));
660
+ this.handleMove(t, fe(Fe(c, this.referenceCoordinates), f));
671
661
  }
672
662
  }
673
663
  }
@@ -693,11 +683,11 @@ class tn {
693
683
  this.listeners.removeAll(), this.windowListeners.removeAll();
694
684
  }
695
685
  }
696
- tn.activators = [{
686
+ Jt.activators = [{
697
687
  eventName: "onKeyDown",
698
688
  handler: (e, t, n) => {
699
689
  let {
700
- keyboardCodes: r = en,
690
+ keyboardCodes: r = qt,
701
691
  onActivation: i
702
692
  } = t, {
703
693
  active: o
@@ -706,30 +696,30 @@ tn.activators = [{
706
696
  code: s
707
697
  } = e.nativeEvent;
708
698
  if (r.start.includes(s)) {
709
- const a = o.activatorNode.current;
710
- return a && e.target !== a ? !1 : (e.preventDefault(), i == null || i({
699
+ const l = o.activatorNode.current;
700
+ return l && e.target !== l ? !1 : (e.preventDefault(), i == null || i({
711
701
  event: e.nativeEvent
712
702
  }), !0);
713
703
  }
714
704
  return !1;
715
705
  }
716
706
  }];
717
- function zt(e) {
707
+ function Nt(e) {
718
708
  return !!(e && "distance" in e);
719
709
  }
720
- function Pt(e) {
710
+ function Lt(e) {
721
711
  return !!(e && "delay" in e);
722
712
  }
723
- class ht {
713
+ class ct {
724
714
  constructor(t, n, r) {
725
715
  var i;
726
- r === void 0 && (r = Qn(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;
716
+ r === void 0 && (r = Kn(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;
727
717
  const {
728
718
  event: o
729
719
  } = t, {
730
720
  target: s
731
721
  } = o;
732
- this.props = t, this.events = n, this.document = ge(s), this.documentListeners = new xe(this.document), this.listeners = new xe(r), this.windowListeners = new xe(J(s)), this.initialCoordinates = (i = Fe(o)) != null ? i : _, 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();
722
+ this.props = t, this.events = n, this.document = ge(s), this.documentListeners = new xe(this.document), this.listeners = new xe(r), this.windowListeners = new xe(G(s)), this.initialCoordinates = (i = Ze(o)) != null ? i : K, 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();
733
723
  }
734
724
  attach() {
735
725
  const {
@@ -743,18 +733,18 @@ class ht {
743
733
  } = this;
744
734
  if (this.listeners.add(t.move.name, this.handleMove, {
745
735
  passive: !1
746
- }), this.listeners.add(t.end.name, this.handleEnd), this.windowListeners.add($.Resize, this.handleCancel), this.windowListeners.add($.DragStart, It), this.windowListeners.add($.VisibilityChange, this.handleCancel), this.windowListeners.add($.ContextMenu, It), this.documentListeners.add($.Keydown, this.handleKeydown), n) {
736
+ }), this.listeners.add(t.end.name, this.handleEnd), this.windowListeners.add(P.Resize, this.handleCancel), this.windowListeners.add(P.DragStart, Ot), this.windowListeners.add(P.VisibilityChange, this.handleCancel), this.windowListeners.add(P.ContextMenu, Ot), this.documentListeners.add(P.Keydown, this.handleKeydown), n) {
747
737
  if (r != null && r({
748
738
  event: this.props.event,
749
739
  activeNode: this.props.activeNode,
750
740
  options: this.props.options
751
741
  }))
752
742
  return this.handleStart();
753
- if (Pt(n)) {
743
+ if (Lt(n)) {
754
744
  this.timeoutId = setTimeout(this.handleStart, n.delay);
755
745
  return;
756
746
  }
757
- if (zt(n))
747
+ if (Nt(n))
758
748
  return;
759
749
  }
760
750
  this.handleStart();
@@ -768,9 +758,9 @@ class ht {
768
758
  } = this, {
769
759
  onStart: n
770
760
  } = this.props;
771
- t && (this.activated = !0, this.documentListeners.add($.Click, Zn, {
761
+ t && (this.activated = !0, this.documentListeners.add(P.Click, Yn, {
772
762
  capture: !0
773
- }), this.removeTextSelection(), this.documentListeners.add($.SelectionChange, this.removeTextSelection), n(t));
763
+ }), this.removeTextSelection(), this.documentListeners.add(P.SelectionChange, this.removeTextSelection), n(t));
774
764
  }
775
765
  handleMove(t) {
776
766
  var n;
@@ -781,22 +771,22 @@ class ht {
781
771
  } = this, {
782
772
  onMove: s,
783
773
  options: {
784
- activationConstraint: a
774
+ activationConstraint: l
785
775
  }
786
776
  } = o;
787
777
  if (!i)
788
778
  return;
789
- const l = (n = Fe(t)) != null ? n : _, c = Ke(i, l);
790
- if (!r && a) {
791
- if (zt(a)) {
792
- if (a.tolerance != null && Ze(c, a.tolerance))
779
+ const a = (n = Ze(t)) != null ? n : K, u = Fe(i, a);
780
+ if (!r && l) {
781
+ if (Nt(l)) {
782
+ if (l.tolerance != null && Ve(u, l.tolerance))
793
783
  return this.handleCancel();
794
- if (Ze(c, a.distance))
784
+ if (Ve(u, l.distance))
795
785
  return this.handleStart();
796
786
  }
797
- return Pt(a) && Ze(c, a.tolerance) ? this.handleCancel() : void 0;
787
+ return Lt(l) && Ve(u, l.tolerance) ? this.handleCancel() : void 0;
798
788
  }
799
- t.cancelable && t.preventDefault(), s(l);
789
+ t.cancelable && t.preventDefault(), s(a);
800
790
  }
801
791
  handleEnd() {
802
792
  const {
@@ -811,14 +801,14 @@ class ht {
811
801
  this.detach(), t();
812
802
  }
813
803
  handleKeydown(t) {
814
- t.code === x.Esc && this.handleCancel();
804
+ t.code === m.Esc && this.handleCancel();
815
805
  }
816
806
  removeTextSelection() {
817
807
  var t;
818
808
  (t = this.document.getSelection()) == null || t.removeAllRanges();
819
809
  }
820
810
  }
821
- const tr = {
811
+ const Hn = {
822
812
  move: {
823
813
  name: "pointermove"
824
814
  },
@@ -826,15 +816,15 @@ const tr = {
826
816
  name: "pointerup"
827
817
  }
828
818
  };
829
- class nn extends ht {
819
+ class Vt extends ct {
830
820
  constructor(t) {
831
821
  const {
832
822
  event: n
833
823
  } = t, r = ge(n.target);
834
- super(t, tr, r);
824
+ super(t, Hn, r);
835
825
  }
836
826
  }
837
- nn.activators = [{
827
+ Vt.activators = [{
838
828
  eventName: "onPointerDown",
839
829
  handler: (e, t) => {
840
830
  let {
@@ -847,7 +837,7 @@ nn.activators = [{
847
837
  }), !0);
848
838
  }
849
839
  }];
850
- const nr = {
840
+ const qn = {
851
841
  move: {
852
842
  name: "mousemove"
853
843
  },
@@ -855,16 +845,16 @@ const nr = {
855
845
  name: "mouseup"
856
846
  }
857
847
  };
858
- var ot;
848
+ var nt;
859
849
  (function(e) {
860
850
  e[e.RightClick = 2] = "RightClick";
861
- })(ot || (ot = {}));
862
- class rr extends ht {
851
+ })(nt || (nt = {}));
852
+ class Jn extends ct {
863
853
  constructor(t) {
864
- super(t, nr, ge(t.event.target));
854
+ super(t, qn, ge(t.event.target));
865
855
  }
866
856
  }
867
- rr.activators = [{
857
+ Jn.activators = [{
868
858
  eventName: "onMouseDown",
869
859
  handler: (e, t) => {
870
860
  let {
@@ -872,12 +862,12 @@ rr.activators = [{
872
862
  } = e, {
873
863
  onActivation: r
874
864
  } = t;
875
- return n.button === ot.RightClick ? !1 : (r == null || r({
865
+ return n.button === nt.RightClick ? !1 : (r == null || r({
876
866
  event: n
877
867
  }), !0);
878
868
  }
879
869
  }];
880
- const et = {
870
+ const Ge = {
881
871
  move: {
882
872
  name: "touchmove"
883
873
  },
@@ -885,22 +875,22 @@ const et = {
885
875
  name: "touchend"
886
876
  }
887
877
  };
888
- class or extends ht {
878
+ class Vn extends ct {
889
879
  constructor(t) {
890
- super(t, et);
880
+ super(t, Ge);
891
881
  }
892
882
  static setup() {
893
- return window.addEventListener(et.move.name, t, {
883
+ return window.addEventListener(Ge.move.name, t, {
894
884
  capture: !1,
895
885
  passive: !1
896
886
  }), function() {
897
- window.removeEventListener(et.move.name, t);
887
+ window.removeEventListener(Ge.move.name, t);
898
888
  };
899
889
  function t() {
900
890
  }
901
891
  }
902
892
  }
903
- or.activators = [{
893
+ Vn.activators = [{
904
894
  eventName: "onTouchStart",
905
895
  handler: (e, t) => {
906
896
  let {
@@ -924,7 +914,7 @@ var We;
924
914
  (function(e) {
925
915
  e[e.TreeOrder = 0] = "TreeOrder", e[e.ReversedTreeOrder = 1] = "ReversedTreeOrder";
926
916
  })(We || (We = {}));
927
- function ir(e) {
917
+ function Gn(e) {
928
918
  let {
929
919
  acceleration: t,
930
920
  activator: n = Ce.Pointer,
@@ -932,68 +922,68 @@ function ir(e) {
932
922
  draggingRect: i,
933
923
  enabled: o,
934
924
  interval: s = 5,
935
- order: a = We.TreeOrder,
936
- pointerCoordinates: l,
937
- scrollableAncestors: c,
925
+ order: l = We.TreeOrder,
926
+ pointerCoordinates: a,
927
+ scrollableAncestors: u,
938
928
  scrollableAncestorRects: d,
939
- delta: u,
929
+ delta: c,
940
930
  threshold: g
941
931
  } = e;
942
- const f = ar({
943
- delta: u,
932
+ const f = Zn({
933
+ delta: c,
944
934
  disabled: !o
945
- }), [D, h] = Dn(), v = z({
935
+ }), [C, h] = fn(), v = I({
946
936
  x: 0,
947
937
  y: 0
948
- }), b = z({
938
+ }), y = I({
949
939
  x: 0,
950
940
  y: 0
951
- }), w = L(() => {
941
+ }), D = L(() => {
952
942
  switch (n) {
953
943
  case Ce.Pointer:
954
- return l ? {
955
- top: l.y,
956
- bottom: l.y,
957
- left: l.x,
958
- right: l.x
944
+ return a ? {
945
+ top: a.y,
946
+ bottom: a.y,
947
+ left: a.x,
948
+ right: a.x
959
949
  } : null;
960
950
  case Ce.DraggableRect:
961
951
  return i;
962
952
  }
963
- }, [n, i, l]), y = z(null), M = U(() => {
964
- const S = y.current;
953
+ }, [n, i, a]), b = I(null), T = _(() => {
954
+ const S = b.current;
965
955
  if (!S)
966
956
  return;
967
- const p = v.current.x * b.current.x, m = v.current.y * b.current.y;
968
- S.scrollBy(p, m);
969
- }, []), C = L(() => a === We.TreeOrder ? [...c].reverse() : c, [a, c]);
970
- N(
957
+ const p = v.current.x * y.current.x, w = v.current.y * y.current.y;
958
+ S.scrollBy(p, w);
959
+ }, []), x = L(() => l === We.TreeOrder ? [...u].reverse() : u, [l, u]);
960
+ E(
971
961
  () => {
972
- if (!o || !c.length || !w) {
962
+ if (!o || !u.length || !D) {
973
963
  h();
974
964
  return;
975
965
  }
976
- for (const S of C) {
966
+ for (const S of x) {
977
967
  if ((r == null ? void 0 : r(S)) === !1)
978
968
  continue;
979
- const p = c.indexOf(S), m = d[p];
980
- if (!m)
969
+ const p = u.indexOf(S), w = d[p];
970
+ if (!w)
981
971
  continue;
982
972
  const {
983
- direction: R,
973
+ direction: M,
984
974
  speed: k
985
- } = Hn(S, m, w, t, g);
986
- for (const E of ["x", "y"])
987
- f[E][R[E]] || (k[E] = 0, R[E] = 0);
975
+ } = Pn(S, w, D, t, g);
976
+ for (const A of ["x", "y"])
977
+ f[A][M[A]] || (k[A] = 0, M[A] = 0);
988
978
  if (k.x > 0 || k.y > 0) {
989
- h(), y.current = S, D(M, s), v.current = k, b.current = R;
979
+ h(), b.current = S, C(T, s), v.current = k, y.current = M;
990
980
  return;
991
981
  }
992
982
  }
993
983
  v.current = {
994
984
  x: 0,
995
985
  y: 0
996
- }, b.current = {
986
+ }, y.current = {
997
987
  x: 0,
998
988
  y: 0
999
989
  }, h();
@@ -1001,67 +991,67 @@ function ir(e) {
1001
991
  // eslint-disable-next-line react-hooks/exhaustive-deps
1002
992
  [
1003
993
  t,
1004
- M,
994
+ T,
1005
995
  r,
1006
996
  h,
1007
997
  o,
1008
998
  s,
1009
999
  // eslint-disable-next-line react-hooks/exhaustive-deps
1010
- JSON.stringify(w),
1000
+ JSON.stringify(D),
1011
1001
  // eslint-disable-next-line react-hooks/exhaustive-deps
1012
1002
  JSON.stringify(f),
1013
- D,
1014
- c,
1015
1003
  C,
1004
+ u,
1005
+ x,
1016
1006
  d,
1017
1007
  // eslint-disable-next-line react-hooks/exhaustive-deps
1018
1008
  JSON.stringify(g)
1019
1009
  ]
1020
1010
  );
1021
1011
  }
1022
- const sr = {
1012
+ const Qn = {
1023
1013
  x: {
1024
- [T.Backward]: !1,
1025
- [T.Forward]: !1
1014
+ [O.Backward]: !1,
1015
+ [O.Forward]: !1
1026
1016
  },
1027
1017
  y: {
1028
- [T.Backward]: !1,
1029
- [T.Forward]: !1
1018
+ [O.Backward]: !1,
1019
+ [O.Forward]: !1
1030
1020
  }
1031
1021
  };
1032
- function ar(e) {
1022
+ function Zn(e) {
1033
1023
  let {
1034
1024
  delta: t,
1035
1025
  disabled: n
1036
1026
  } = e;
1037
- const r = $e(t);
1027
+ const r = et(t);
1038
1028
  return Ae((i) => {
1039
1029
  if (n || !r || !i)
1040
- return sr;
1030
+ return Qn;
1041
1031
  const o = {
1042
1032
  x: Math.sign(t.x - r.x),
1043
1033
  y: Math.sign(t.y - r.y)
1044
1034
  };
1045
1035
  return {
1046
1036
  x: {
1047
- [T.Backward]: i.x[T.Backward] || o.x === -1,
1048
- [T.Forward]: i.x[T.Forward] || o.x === 1
1037
+ [O.Backward]: i.x[O.Backward] || o.x === -1,
1038
+ [O.Forward]: i.x[O.Forward] || o.x === 1
1049
1039
  },
1050
1040
  y: {
1051
- [T.Backward]: i.y[T.Backward] || o.y === -1,
1052
- [T.Forward]: i.y[T.Forward] || o.y === 1
1041
+ [O.Backward]: i.y[O.Backward] || o.y === -1,
1042
+ [O.Forward]: i.y[O.Forward] || o.y === 1
1053
1043
  }
1054
1044
  };
1055
1045
  }, [n, t, r]);
1056
1046
  }
1057
- function lr(e, t) {
1047
+ function er(e, t) {
1058
1048
  const n = t !== null ? e.get(t) : void 0, r = n ? n.node.current : null;
1059
1049
  return Ae((i) => {
1060
1050
  var o;
1061
1051
  return t === null ? null : (o = r ?? i) != null ? o : null;
1062
1052
  }, [r, t]);
1063
1053
  }
1064
- function cr(e, t) {
1054
+ function tr(e, t) {
1065
1055
  return L(() => e.reduce((n, r) => {
1066
1056
  const {
1067
1057
  sensor: i
@@ -1076,71 +1066,71 @@ var Ee;
1076
1066
  (function(e) {
1077
1067
  e[e.Always = 0] = "Always", e[e.BeforeDragging = 1] = "BeforeDragging", e[e.WhileDragging = 2] = "WhileDragging";
1078
1068
  })(Ee || (Ee = {}));
1079
- var it;
1069
+ var rt;
1080
1070
  (function(e) {
1081
1071
  e.Optimized = "optimized";
1082
- })(it || (it = {}));
1083
- const Bt = /* @__PURE__ */ new Map();
1084
- function ur(e, t) {
1072
+ })(rt || (rt = {}));
1073
+ const Tt = /* @__PURE__ */ new Map();
1074
+ function nr(e, t) {
1085
1075
  let {
1086
1076
  dragging: n,
1087
1077
  dependencies: r,
1088
1078
  config: i
1089
1079
  } = t;
1090
- const [o, s] = Y(null), {
1091
- frequency: a,
1092
- measure: l,
1093
- strategy: c
1094
- } = i, d = z(e), u = v(), g = Re(u), f = U(function(b) {
1095
- b === void 0 && (b = []), !g.current && s((w) => w === null ? b : w.concat(b.filter((y) => !w.includes(y))));
1096
- }, [g]), D = z(null), h = Ae((b) => {
1097
- if (u && !n)
1098
- return Bt;
1099
- if (!b || b === Bt || d.current !== e || o != null) {
1100
- const w = /* @__PURE__ */ new Map();
1101
- for (let y of e) {
1102
- if (!y)
1080
+ const [o, s] = V(null), {
1081
+ frequency: l,
1082
+ measure: a,
1083
+ strategy: u
1084
+ } = i, d = I(e), c = v(), g = Re(c), f = _(function(y) {
1085
+ y === void 0 && (y = []), !g.current && s((D) => D === null ? y : D.concat(y.filter((b) => !D.includes(b))));
1086
+ }, [g]), C = I(null), h = Ae((y) => {
1087
+ if (c && !n)
1088
+ return Tt;
1089
+ if (!y || y === Tt || d.current !== e || o != null) {
1090
+ const D = /* @__PURE__ */ new Map();
1091
+ for (let b of e) {
1092
+ if (!b)
1103
1093
  continue;
1104
- if (o && o.length > 0 && !o.includes(y.id) && y.rect.current) {
1105
- w.set(y.id, y.rect.current);
1094
+ if (o && o.length > 0 && !o.includes(b.id) && b.rect.current) {
1095
+ D.set(b.id, b.rect.current);
1106
1096
  continue;
1107
1097
  }
1108
- const M = y.node.current, C = M ? new ft(l(M), M) : null;
1109
- y.rect.current = C, C && w.set(y.id, C);
1098
+ const T = b.node.current, x = T ? new at(a(T), T) : null;
1099
+ b.rect.current = x, x && D.set(b.id, x);
1110
1100
  }
1111
- return w;
1101
+ return D;
1112
1102
  }
1113
- return b;
1114
- }, [e, o, n, u, l]);
1115
- return N(() => {
1103
+ return y;
1104
+ }, [e, o, n, c, a]);
1105
+ return E(() => {
1116
1106
  d.current = e;
1117
- }, [e]), N(
1107
+ }, [e]), E(
1118
1108
  () => {
1119
- u || f();
1109
+ c || f();
1120
1110
  },
1121
1111
  // eslint-disable-next-line react-hooks/exhaustive-deps
1122
- [n, u]
1123
- ), N(
1112
+ [n, c]
1113
+ ), E(
1124
1114
  () => {
1125
1115
  o && o.length > 0 && s(null);
1126
1116
  },
1127
1117
  //eslint-disable-next-line react-hooks/exhaustive-deps
1128
1118
  [JSON.stringify(o)]
1129
- ), N(
1119
+ ), E(
1130
1120
  () => {
1131
- u || typeof a != "number" || D.current !== null || (D.current = setTimeout(() => {
1132
- f(), D.current = null;
1133
- }, a));
1121
+ c || typeof l != "number" || C.current !== null || (C.current = setTimeout(() => {
1122
+ f(), C.current = null;
1123
+ }, l));
1134
1124
  },
1135
1125
  // eslint-disable-next-line react-hooks/exhaustive-deps
1136
- [a, u, f, ...r]
1126
+ [l, c, f, ...r]
1137
1127
  ), {
1138
1128
  droppableRects: h,
1139
1129
  measureDroppableContainers: f,
1140
1130
  measuringScheduled: o != null
1141
1131
  };
1142
1132
  function v() {
1143
- switch (c) {
1133
+ switch (u) {
1144
1134
  case Ee.Always:
1145
1135
  return !1;
1146
1136
  case Ee.BeforeDragging:
@@ -1150,18 +1140,18 @@ function ur(e, t) {
1150
1140
  }
1151
1141
  }
1152
1142
  }
1153
- function gt(e, t) {
1143
+ function Gt(e, t) {
1154
1144
  return Ae((n) => e ? n || (typeof t == "function" ? t(e) : e) : null, [t, e]);
1155
1145
  }
1156
- function dr(e, t) {
1157
- return gt(e, t);
1146
+ function rr(e, t) {
1147
+ return Gt(e, t);
1158
1148
  }
1159
- function fr(e) {
1149
+ function or(e) {
1160
1150
  let {
1161
1151
  callback: t,
1162
1152
  disabled: n
1163
1153
  } = e;
1164
- const r = ct(t), i = L(() => {
1154
+ const r = $t(t), i = L(() => {
1165
1155
  if (n || typeof window > "u" || typeof window.MutationObserver > "u")
1166
1156
  return;
1167
1157
  const {
@@ -1169,14 +1159,14 @@ function fr(e) {
1169
1159
  } = window;
1170
1160
  return new o(r);
1171
1161
  }, [r, n]);
1172
- return N(() => () => i == null ? void 0 : i.disconnect(), [i]), i;
1162
+ return E(() => () => i == null ? void 0 : i.disconnect(), [i]), i;
1173
1163
  }
1174
1164
  function _e(e) {
1175
1165
  let {
1176
1166
  callback: t,
1177
1167
  disabled: n
1178
1168
  } = e;
1179
- const r = ct(t), i = L(
1169
+ const r = $t(t), i = L(
1180
1170
  () => {
1181
1171
  if (n || typeof window > "u" || typeof window.ResizeObserver > "u")
1182
1172
  return;
@@ -1188,22 +1178,22 @@ function _e(e) {
1188
1178
  // eslint-disable-next-line react-hooks/exhaustive-deps
1189
1179
  [n]
1190
1180
  );
1191
- return N(() => () => i == null ? void 0 : i.disconnect(), [i]), i;
1181
+ return E(() => () => i == null ? void 0 : i.disconnect(), [i]), i;
1192
1182
  }
1193
- function hr(e) {
1194
- return new ft(Ne(e), e);
1183
+ function ir(e) {
1184
+ return new at(Oe(e), e);
1195
1185
  }
1196
- function Ft(e, t, n) {
1197
- t === void 0 && (t = hr);
1198
- const [r, i] = st(a, null), o = fr({
1199
- callback(l) {
1186
+ function It(e, t, n) {
1187
+ t === void 0 && (t = ir);
1188
+ const [r, i] = ot(l, null), o = or({
1189
+ callback(a) {
1200
1190
  if (e)
1201
- for (const c of l) {
1191
+ for (const u of a) {
1202
1192
  const {
1203
1193
  type: d,
1204
- target: u
1205
- } = c;
1206
- if (d === "childList" && u instanceof HTMLElement && u.contains(e)) {
1194
+ target: c
1195
+ } = u;
1196
+ if (d === "childList" && c instanceof HTMLElement && c.contains(e)) {
1207
1197
  i();
1208
1198
  break;
1209
1199
  }
@@ -1212,80 +1202,80 @@ function Ft(e, t, n) {
1212
1202
  }), s = _e({
1213
1203
  callback: i
1214
1204
  });
1215
- return re(() => {
1205
+ return se(() => {
1216
1206
  i(), e ? (s == null || s.observe(e), o == null || o.observe(document.body, {
1217
1207
  childList: !0,
1218
1208
  subtree: !0
1219
1209
  })) : (s == null || s.disconnect(), o == null || o.disconnect());
1220
1210
  }, [e]), r;
1221
- function a(l) {
1211
+ function l(a) {
1222
1212
  if (!e)
1223
1213
  return null;
1224
1214
  if (e.isConnected === !1) {
1225
- var c;
1226
- return (c = l ?? n) != null ? c : null;
1215
+ var u;
1216
+ return (u = a ?? n) != null ? u : null;
1227
1217
  }
1228
1218
  const d = t(e);
1229
- return JSON.stringify(l) === JSON.stringify(d) ? l : d;
1219
+ return JSON.stringify(a) === JSON.stringify(d) ? a : d;
1230
1220
  }
1231
1221
  }
1232
- function gr(e) {
1233
- const t = gt(e);
1222
+ function sr(e) {
1223
+ const t = Gt(e);
1234
1224
  return Ut(e, t);
1235
1225
  }
1236
- const $t = [];
1237
- function vr(e) {
1238
- const t = z(e), n = Ae((r) => e ? r && r !== $t && e && t.current && e.parentNode === t.current.parentNode ? r : dt(e) : $t, [e]);
1239
- return N(() => {
1226
+ const kt = [];
1227
+ function lr(e) {
1228
+ const t = I(e), n = Ae((r) => e ? r && r !== kt && e && t.current && e.parentNode === t.current.parentNode ? r : lt(e) : kt, [e]);
1229
+ return E(() => {
1240
1230
  t.current = e;
1241
1231
  }, [e]), n;
1242
1232
  }
1243
- function pr(e) {
1244
- const [t, n] = Y(null), r = z(e), i = U((o) => {
1245
- const s = Qe(o.target);
1246
- s && n((a) => a ? (a.set(s, rt(s)), new Map(a)) : null);
1233
+ function ar(e) {
1234
+ const [t, n] = V(null), r = I(e), i = _((o) => {
1235
+ const s = Je(o.target);
1236
+ s && n((l) => l ? (l.set(s, tt(s)), new Map(l)) : null);
1247
1237
  }, []);
1248
- return N(() => {
1238
+ return E(() => {
1249
1239
  const o = r.current;
1250
1240
  if (e !== o) {
1251
1241
  s(o);
1252
- const a = e.map((l) => {
1253
- const c = Qe(l);
1254
- return c ? (c.addEventListener("scroll", i, {
1242
+ const l = e.map((a) => {
1243
+ const u = Je(a);
1244
+ return u ? (u.addEventListener("scroll", i, {
1255
1245
  passive: !0
1256
- }), [c, rt(c)]) : null;
1257
- }).filter((l) => l != null);
1258
- n(a.length ? new Map(a) : null), r.current = e;
1246
+ }), [u, tt(u)]) : null;
1247
+ }).filter((a) => a != null);
1248
+ n(l.length ? new Map(l) : null), r.current = e;
1259
1249
  }
1260
1250
  return () => {
1261
1251
  s(e), s(o);
1262
1252
  };
1263
- function s(a) {
1264
- a.forEach((l) => {
1265
- const c = Qe(l);
1266
- c == null || c.removeEventListener("scroll", i);
1253
+ function s(l) {
1254
+ l.forEach((a) => {
1255
+ const u = Je(a);
1256
+ u == null || u.removeEventListener("scroll", i);
1267
1257
  });
1268
1258
  }
1269
- }, [i, e]), L(() => e.length ? t ? Array.from(t.values()).reduce((o, s) => he(o, s), _) : Qt(e) : _, [e, t]);
1259
+ }, [i, e]), L(() => e.length ? t ? Array.from(t.values()).reduce((o, s) => fe(o, s), K) : Ht(e) : K, [e, t]);
1270
1260
  }
1271
- function Kt(e, t) {
1261
+ function zt(e, t) {
1272
1262
  t === void 0 && (t = []);
1273
- const n = z(null);
1274
- return N(
1263
+ const n = I(null);
1264
+ return E(
1275
1265
  () => {
1276
1266
  n.current = null;
1277
1267
  },
1278
1268
  // eslint-disable-next-line react-hooks/exhaustive-deps
1279
1269
  t
1280
- ), N(() => {
1281
- const r = e !== _;
1270
+ ), E(() => {
1271
+ const r = e !== K;
1282
1272
  r && !n.current && (n.current = e), !r && n.current && (n.current = null);
1283
- }, [e]), n.current ? Ke(e, n.current) : _;
1273
+ }, [e]), n.current ? Fe(e, n.current) : K;
1284
1274
  }
1285
- function br(e) {
1286
- N(
1275
+ function cr(e) {
1276
+ E(
1287
1277
  () => {
1288
- if (!at)
1278
+ if (!it)
1289
1279
  return;
1290
1280
  const t = e.map((n) => {
1291
1281
  let {
@@ -1308,7 +1298,7 @@ function br(e) {
1308
1298
  })
1309
1299
  );
1310
1300
  }
1311
- function yr(e, t) {
1301
+ function ur(e, t) {
1312
1302
  return L(() => e.reduce((n, r) => {
1313
1303
  let {
1314
1304
  eventName: i,
@@ -1319,43 +1309,43 @@ function yr(e, t) {
1319
1309
  }, n;
1320
1310
  }, {}), [e, t]);
1321
1311
  }
1322
- function rn(e) {
1323
- return L(() => e ? Wn(e) : null, [e]);
1312
+ function Qt(e) {
1313
+ return L(() => e ? kn(e) : null, [e]);
1324
1314
  }
1325
- const tt = [];
1326
- function mr(e, t) {
1327
- t === void 0 && (t = Ne);
1328
- const [n] = e, r = rn(n ? J(n) : null), [i, o] = st(a, tt), s = _e({
1315
+ const Qe = [];
1316
+ function dr(e, t) {
1317
+ t === void 0 && (t = Oe);
1318
+ const [n] = e, r = Qt(n ? G(n) : null), [i, o] = ot(l, Qe), s = _e({
1329
1319
  callback: o
1330
1320
  });
1331
- return e.length > 0 && i === tt && o(), re(() => {
1332
- e.length ? e.forEach((l) => s == null ? void 0 : s.observe(l)) : (s == null || s.disconnect(), o());
1321
+ return e.length > 0 && i === Qe && o(), se(() => {
1322
+ e.length ? e.forEach((a) => s == null ? void 0 : s.observe(a)) : (s == null || s.disconnect(), o());
1333
1323
  }, [e]), i;
1334
- function a() {
1335
- return e.length ? e.map((l) => Vt(l) ? r : new ft(t(l), l)) : tt;
1324
+ function l() {
1325
+ return e.length ? e.map((a) => Yt(a) ? r : new at(t(a), a)) : Qe;
1336
1326
  }
1337
1327
  }
1338
- function on(e) {
1328
+ function fr(e) {
1339
1329
  if (!e)
1340
1330
  return null;
1341
1331
  if (e.children.length > 1)
1342
1332
  return e;
1343
1333
  const t = e.children[0];
1344
- return Ue(t) ? t : e;
1334
+ return Xe(t) ? t : e;
1345
1335
  }
1346
- function wr(e) {
1336
+ function hr(e) {
1347
1337
  let {
1348
1338
  measure: t
1349
1339
  } = e;
1350
- const [n, r] = Y(null), i = U((c) => {
1340
+ const [n, r] = V(null), i = _((u) => {
1351
1341
  for (const {
1352
1342
  target: d
1353
- } of c)
1354
- if (Ue(d)) {
1355
- r((u) => {
1343
+ } of u)
1344
+ if (Xe(d)) {
1345
+ r((c) => {
1356
1346
  const g = t(d);
1357
- return u ? {
1358
- ...u,
1347
+ return c ? {
1348
+ ...c,
1359
1349
  width: g.width,
1360
1350
  height: g.height
1361
1351
  } : g;
@@ -1364,35 +1354,35 @@ function wr(e) {
1364
1354
  }
1365
1355
  }, [t]), o = _e({
1366
1356
  callback: i
1367
- }), s = U((c) => {
1368
- const d = on(c);
1357
+ }), s = _((u) => {
1358
+ const d = fr(u);
1369
1359
  o == null || o.disconnect(), d && (o == null || o.observe(d)), r(d ? t(d) : null);
1370
- }, [t, o]), [a, l] = Xe(s);
1360
+ }, [t, o]), [l, a] = Pe(s);
1371
1361
  return L(() => ({
1372
- nodeRef: a,
1362
+ nodeRef: l,
1373
1363
  rect: n,
1374
- setRef: l
1375
- }), [n, a, l]);
1364
+ setRef: a
1365
+ }), [n, l, a]);
1376
1366
  }
1377
- const Dr = [{
1378
- sensor: nn,
1367
+ const gr = [{
1368
+ sensor: Vt,
1379
1369
  options: {}
1380
1370
  }, {
1381
- sensor: tn,
1371
+ sensor: Jt,
1382
1372
  options: {}
1383
- }], xr = {
1373
+ }], vr = {
1384
1374
  current: {}
1385
1375
  }, Be = {
1386
1376
  draggable: {
1387
- measure: kt
1377
+ measure: At
1388
1378
  },
1389
1379
  droppable: {
1390
- measure: kt,
1380
+ measure: At,
1391
1381
  strategy: Ee.WhileDragging,
1392
- frequency: it.Optimized
1382
+ frequency: rt.Optimized
1393
1383
  },
1394
1384
  dragOverlay: {
1395
- measure: Ne
1385
+ measure: Oe
1396
1386
  }
1397
1387
  };
1398
1388
  class Se extends Map {
@@ -1416,7 +1406,7 @@ class Se extends Map {
1416
1406
  return (n = (r = this.get(t)) == null ? void 0 : r.node.current) != null ? n : void 0;
1417
1407
  }
1418
1408
  }
1419
- const Cr = {
1409
+ const pr = {
1420
1410
  activatorEvent: null,
1421
1411
  active: null,
1422
1412
  activeNode: null,
@@ -1432,15 +1422,15 @@ const Cr = {
1432
1422
  current: null
1433
1423
  },
1434
1424
  rect: null,
1435
- setRef: je
1425
+ setRef: $e
1436
1426
  },
1437
1427
  scrollableAncestors: [],
1438
1428
  scrollableAncestorRects: [],
1439
1429
  measuringConfiguration: Be,
1440
- measureDroppableContainers: je,
1430
+ measureDroppableContainers: $e,
1441
1431
  windowRect: null,
1442
1432
  measuringScheduled: !1
1443
- }, sn = {
1433
+ }, br = {
1444
1434
  activatorEvent: null,
1445
1435
  activators: [],
1446
1436
  active: null,
@@ -1448,12 +1438,12 @@ const Cr = {
1448
1438
  ariaDescribedById: {
1449
1439
  draggable: ""
1450
1440
  },
1451
- dispatch: je,
1441
+ dispatch: $e,
1452
1442
  draggableNodes: /* @__PURE__ */ new Map(),
1453
1443
  over: null,
1454
- measureDroppableContainers: je
1455
- }, Me = /* @__PURE__ */ Oe(sn), an = /* @__PURE__ */ Oe(Cr);
1456
- function Sr() {
1444
+ measureDroppableContainers: $e
1445
+ }, Ke = /* @__PURE__ */ Me(br), Zt = /* @__PURE__ */ Me(pr);
1446
+ function wr() {
1457
1447
  return {
1458
1448
  draggable: {
1459
1449
  active: null,
@@ -1472,9 +1462,9 @@ function Sr() {
1472
1462
  }
1473
1463
  };
1474
1464
  }
1475
- function Rr(e, t) {
1465
+ function yr(e, t) {
1476
1466
  switch (t.type) {
1477
- case O.DragStart:
1467
+ case R.DragStart:
1478
1468
  return {
1479
1469
  ...e,
1480
1470
  draggable: {
@@ -1483,7 +1473,7 @@ function Rr(e, t) {
1483
1473
  active: t.active
1484
1474
  }
1485
1475
  };
1486
- case O.DragMove:
1476
+ case R.DragMove:
1487
1477
  return e.draggable.active ? {
1488
1478
  ...e,
1489
1479
  draggable: {
@@ -1494,8 +1484,8 @@ function Rr(e, t) {
1494
1484
  }
1495
1485
  }
1496
1486
  } : e;
1497
- case O.DragEnd:
1498
- case O.DragCancel:
1487
+ case R.DragEnd:
1488
+ case R.DragCancel:
1499
1489
  return {
1500
1490
  ...e,
1501
1491
  draggable: {
@@ -1511,7 +1501,7 @@ function Rr(e, t) {
1511
1501
  }
1512
1502
  }
1513
1503
  };
1514
- case O.RegisterDroppable: {
1504
+ case R.RegisterDroppable: {
1515
1505
  const {
1516
1506
  element: n
1517
1507
  } = t, {
@@ -1525,7 +1515,7 @@ function Rr(e, t) {
1525
1515
  }
1526
1516
  };
1527
1517
  }
1528
- case O.SetDroppableDisabled: {
1518
+ case R.SetDroppableDisabled: {
1529
1519
  const {
1530
1520
  id: n,
1531
1521
  key: r,
@@ -1545,7 +1535,7 @@ function Rr(e, t) {
1545
1535
  }
1546
1536
  };
1547
1537
  }
1548
- case O.UnregisterDroppable: {
1538
+ case R.UnregisterDroppable: {
1549
1539
  const {
1550
1540
  id: n,
1551
1541
  key: r
@@ -1565,7 +1555,7 @@ function Rr(e, t) {
1565
1555
  return e;
1566
1556
  }
1567
1557
  }
1568
- function Er(e) {
1558
+ function mr(e) {
1569
1559
  let {
1570
1560
  disabled: t
1571
1561
  } = e;
@@ -1573,27 +1563,27 @@ function Er(e) {
1573
1563
  active: n,
1574
1564
  activatorEvent: r,
1575
1565
  draggableNodes: i
1576
- } = ae(Me), o = $e(r), s = $e(n == null ? void 0 : n.id);
1577
- return N(() => {
1566
+ } = he(Ke), o = et(r), s = et(n == null ? void 0 : n.id);
1567
+ return E(() => {
1578
1568
  if (!t && !r && o && s != null) {
1579
- if (!lt(o) || document.activeElement === o.target)
1569
+ if (!Ft(o) || document.activeElement === o.target)
1580
1570
  return;
1581
- const a = i.get(s);
1582
- if (!a)
1571
+ const l = i.get(s);
1572
+ if (!l)
1583
1573
  return;
1584
1574
  const {
1585
- activatorNode: l,
1586
- node: c
1587
- } = a;
1588
- if (!l.current && !c.current)
1575
+ activatorNode: a,
1576
+ node: u
1577
+ } = l;
1578
+ if (!a.current && !u.current)
1589
1579
  return;
1590
1580
  requestAnimationFrame(() => {
1591
- for (const d of [l.current, c.current]) {
1581
+ for (const d of [a.current, u.current]) {
1592
1582
  if (!d)
1593
1583
  continue;
1594
- const u = xn(d);
1595
- if (u) {
1596
- u.focus();
1584
+ const c = hn(d);
1585
+ if (c) {
1586
+ c.focus();
1597
1587
  break;
1598
1588
  }
1599
1589
  }
@@ -1601,7 +1591,7 @@ function Er(e) {
1601
1591
  }
1602
1592
  }, [r, t, i, s, o]), null;
1603
1593
  }
1604
- function ln(e, t) {
1594
+ function Dr(e, t) {
1605
1595
  let {
1606
1596
  transform: n,
1607
1597
  ...r
@@ -1611,7 +1601,7 @@ function ln(e, t) {
1611
1601
  ...r
1612
1602
  }), n) : n;
1613
1603
  }
1614
- function Or(e) {
1604
+ function xr(e) {
1615
1605
  return L(
1616
1606
  () => ({
1617
1607
  draggable: {
@@ -1631,42 +1621,42 @@ function Or(e) {
1631
1621
  [e == null ? void 0 : e.draggable, e == null ? void 0 : e.droppable, e == null ? void 0 : e.dragOverlay]
1632
1622
  );
1633
1623
  }
1634
- function Ar(e) {
1624
+ function Cr(e) {
1635
1625
  let {
1636
1626
  activeNode: t,
1637
1627
  measure: n,
1638
1628
  initialRect: r,
1639
1629
  config: i = !0
1640
1630
  } = e;
1641
- const o = z(!1), {
1631
+ const o = I(!1), {
1642
1632
  x: s,
1643
- y: a
1633
+ y: l
1644
1634
  } = typeof i == "boolean" ? {
1645
1635
  x: i,
1646
1636
  y: i
1647
1637
  } : i;
1648
- re(() => {
1649
- if (!s && !a || !t) {
1638
+ se(() => {
1639
+ if (!s && !l || !t) {
1650
1640
  o.current = !1;
1651
1641
  return;
1652
1642
  }
1653
1643
  if (o.current || !r)
1654
1644
  return;
1655
- const c = t == null ? void 0 : t.node.current;
1656
- if (!c || c.isConnected === !1)
1645
+ const u = t == null ? void 0 : t.node.current;
1646
+ if (!u || u.isConnected === !1)
1657
1647
  return;
1658
- const d = n(c), u = Ut(d, r);
1659
- if (s || (u.x = 0), a || (u.y = 0), o.current = !0, Math.abs(u.x) > 0 || Math.abs(u.y) > 0) {
1660
- const g = Ht(c);
1648
+ const d = n(u), c = Ut(d, r);
1649
+ if (s || (c.x = 0), l || (c.y = 0), o.current = !0, Math.abs(c.x) > 0 || Math.abs(c.y) > 0) {
1650
+ const g = Xt(u);
1661
1651
  g && g.scrollBy({
1662
- top: u.y,
1663
- left: u.x
1652
+ top: c.y,
1653
+ left: c.x
1664
1654
  });
1665
1655
  }
1666
- }, [t, s, a, r, n]);
1656
+ }, [t, s, l, r, n]);
1667
1657
  }
1668
- const He = /* @__PURE__ */ Oe({
1669
- ..._,
1658
+ const en = /* @__PURE__ */ Me({
1659
+ ...K,
1670
1660
  scaleX: 1,
1671
1661
  scaleY: 1
1672
1662
  });
@@ -1674,182 +1664,182 @@ var ne;
1674
1664
  (function(e) {
1675
1665
  e[e.Uninitialized = 0] = "Uninitialized", e[e.Initializing = 1] = "Initializing", e[e.Initialized = 2] = "Initialized";
1676
1666
  })(ne || (ne = {}));
1677
- const Vr = /* @__PURE__ */ bn(function(t) {
1667
+ const Tr = /* @__PURE__ */ un(function(t) {
1678
1668
  var n, r, i, o;
1679
1669
  let {
1680
1670
  id: s,
1681
- accessibility: a,
1682
- autoScroll: l = !0,
1683
- children: c,
1684
- sensors: d = Dr,
1685
- collisionDetection: u = Bn,
1671
+ accessibility: l,
1672
+ autoScroll: a = !0,
1673
+ children: u,
1674
+ sensors: d = gr,
1675
+ collisionDetection: c = Mn,
1686
1676
  measuring: g,
1687
1677
  modifiers: f,
1688
- ...D
1678
+ ...C
1689
1679
  } = t;
1690
- const h = st(Rr, void 0, Sr), [v, b] = h, [w, y] = Nn(), [M, C] = Y(ne.Uninitialized), S = M === ne.Initialized, {
1680
+ const h = ot(yr, void 0, wr), [v, y] = h, [D, b] = mn(), [T, x] = V(ne.Uninitialized), S = T === ne.Initialized, {
1691
1681
  draggable: {
1692
1682
  active: p,
1693
- nodes: m,
1694
- translate: R
1683
+ nodes: w,
1684
+ translate: M
1695
1685
  },
1696
1686
  droppable: {
1697
1687
  containers: k
1698
1688
  }
1699
- } = v, E = p ? m.get(p) : null, q = z({
1689
+ } = v, A = p ? w.get(p) : null, H = I({
1700
1690
  initial: null,
1701
1691
  translated: null
1702
- }), V = L(() => {
1703
- var I;
1692
+ }), q = L(() => {
1693
+ var N;
1704
1694
  return p != null ? {
1705
1695
  id: p,
1706
1696
  // It's possible for the active node to unmount while dragging
1707
- data: (I = E == null ? void 0 : E.data) != null ? I : xr,
1708
- rect: q
1697
+ data: (N = A == null ? void 0 : A.data) != null ? N : vr,
1698
+ rect: H
1709
1699
  } : null;
1710
- }, [p, E]), Q = z(null), [vt, pt] = Y(null), [G, bt] = Y(null), ve = Re(D, Object.values(D)), Je = Ye("DndDescribedBy", s), yt = L(() => k.getEnabled(), [k]), oe = Or(g), {
1700
+ }, [p, A]), Q = I(null), [ut, dt] = V(null), [J, ft] = V(null), ve = Re(C, Object.values(C)), Ye = Ue("DndDescribedBy", s), ht = L(() => k.getEnabled(), [k]), re = xr(g), {
1711
1701
  droppableRects: le,
1712
- measureDroppableContainers: Te,
1713
- measuringScheduled: mt
1714
- } = ur(yt, {
1702
+ measureDroppableContainers: Ne,
1703
+ measuringScheduled: gt
1704
+ } = nr(ht, {
1715
1705
  dragging: S,
1716
- dependencies: [R.x, R.y],
1717
- config: oe.droppable
1718
- }), K = lr(m, p), wt = L(() => G ? Fe(G) : null, [G]), Dt = pn(), xt = dr(K, oe.draggable.measure);
1719
- Ar({
1720
- activeNode: p ? m.get(p) : null,
1721
- config: Dt.layoutShiftCompensation,
1722
- initialRect: xt,
1723
- measure: oe.draggable.measure
1706
+ dependencies: [M.x, M.y],
1707
+ config: re.droppable
1708
+ }), $ = er(w, p), vt = L(() => J ? Ze(J) : null, [J]), pt = cn(), bt = rr($, re.draggable.measure);
1709
+ Cr({
1710
+ activeNode: p ? w.get(p) : null,
1711
+ config: pt.layoutShiftCompensation,
1712
+ initialRect: bt,
1713
+ measure: re.draggable.measure
1724
1714
  });
1725
- const X = Ft(K, oe.draggable.measure, xt), qe = Ft(K ? K.parentElement : null), ie = z({
1715
+ const W = It($, re.draggable.measure, bt), je = It($ ? $.parentElement : null), oe = I({
1726
1716
  activatorEvent: null,
1727
1717
  active: null,
1728
- activeNode: K,
1718
+ activeNode: $,
1729
1719
  collisionRect: null,
1730
1720
  collisions: null,
1731
1721
  droppableRects: le,
1732
- draggableNodes: m,
1722
+ draggableNodes: w,
1733
1723
  draggingNode: null,
1734
1724
  draggingNodeRect: null,
1735
1725
  droppableContainers: k,
1736
1726
  over: null,
1737
1727
  scrollableAncestors: [],
1738
1728
  scrollAdjustedTranslate: null
1739
- }), Ct = k.getNodeFor((n = ie.current.over) == null ? void 0 : n.id), se = wr({
1740
- measure: oe.dragOverlay.measure
1741
- }), Le = (r = se.nodeRef.current) != null ? r : K, ce = S ? (i = se.rect) != null ? i : X : null, St = !!(se.nodeRef.current && se.rect), Rt = gr(St ? null : X), Ve = rn(Le ? J(Le) : null), Z = vr(S ? Ct ?? K : null), ke = mr(Z), Ie = ln(f, {
1729
+ }), wt = k.getNodeFor((n = oe.current.over) == null ? void 0 : n.id), ie = hr({
1730
+ measure: re.dragOverlay.measure
1731
+ }), Le = (r = ie.nodeRef.current) != null ? r : $, ae = S ? (i = ie.rect) != null ? i : W : null, yt = !!(ie.nodeRef.current && ie.rect), mt = sr(yt ? null : W), He = Qt(Le ? G(Le) : null), Z = lr(S ? wt ?? $ : null), Te = dr(Z), Ie = Dr(f, {
1742
1732
  transform: {
1743
- x: R.x - Rt.x,
1744
- y: R.y - Rt.y,
1733
+ x: M.x - mt.x,
1734
+ y: M.y - mt.y,
1745
1735
  scaleX: 1,
1746
1736
  scaleY: 1
1747
1737
  },
1748
- activatorEvent: G,
1749
- active: V,
1750
- activeNodeRect: X,
1751
- containerNodeRect: qe,
1752
- draggingNodeRect: ce,
1753
- over: ie.current.over,
1754
- overlayNodeRect: se.rect,
1738
+ activatorEvent: J,
1739
+ active: q,
1740
+ activeNodeRect: W,
1741
+ containerNodeRect: je,
1742
+ draggingNodeRect: ae,
1743
+ over: oe.current.over,
1744
+ overlayNodeRect: ie.rect,
1755
1745
  scrollableAncestors: Z,
1756
- scrollableAncestorRects: ke,
1757
- windowRect: Ve
1758
- }), Et = wt ? he(wt, R) : null, Ot = pr(Z), cn = Kt(Ot), un = Kt(Ot, [X]), ue = he(Ie, cn), de = ce ? Kn(ce, Ie) : null, pe = V && de ? u({
1759
- active: V,
1760
- collisionRect: de,
1746
+ scrollableAncestorRects: Te,
1747
+ windowRect: He
1748
+ }), Dt = vt ? fe(vt, M) : null, xt = ar(Z), tn = zt(xt), nn = zt(xt, [W]), ce = fe(Ie, tn), ue = ae ? Nn(ae, Ie) : null, pe = q && ue ? c({
1749
+ active: q,
1750
+ collisionRect: ue,
1761
1751
  droppableRects: le,
1762
- droppableContainers: yt,
1763
- pointerCoordinates: Et
1764
- }) : null, At = zn(pe, "id"), [ee, Nt] = Y(null), dn = St ? Ie : he(Ie, un), fn = Fn(dn, (o = ee == null ? void 0 : ee.rect) != null ? o : null, X), Mt = U(
1765
- (I, P) => {
1752
+ droppableContainers: ht,
1753
+ pointerCoordinates: Dt
1754
+ }) : null, Ct = Rn(pe, "id"), [ee, St] = V(null), rn = yt ? Ie : fe(Ie, nn), on = An(rn, (o = ee == null ? void 0 : ee.rect) != null ? o : null, W), Rt = _(
1755
+ (N, z) => {
1766
1756
  let {
1767
1757
  sensor: B,
1768
1758
  options: te
1769
- } = P;
1759
+ } = z;
1770
1760
  if (Q.current == null)
1771
1761
  return;
1772
- const F = m.get(Q.current);
1762
+ const F = w.get(Q.current);
1773
1763
  if (!F)
1774
1764
  return;
1775
- const j = I.nativeEvent, H = new B({
1765
+ const U = N.nativeEvent, Y = new B({
1776
1766
  active: Q.current,
1777
1767
  activeNode: F,
1778
- event: j,
1768
+ event: U,
1779
1769
  options: te,
1780
1770
  // Sensors need to be instantiated with refs for arguments that change over time
1781
1771
  // otherwise they are frozen in time with the stale arguments
1782
- context: ie,
1783
- onStart(W) {
1772
+ context: oe,
1773
+ onStart(X) {
1784
1774
  const be = Q.current;
1785
1775
  if (be == null)
1786
1776
  return;
1787
- const ye = m.get(be);
1788
- if (!ye)
1777
+ const we = w.get(be);
1778
+ if (!we)
1789
1779
  return;
1790
1780
  const {
1791
- onDragStart: ze
1792
- } = ve.current, Pe = {
1781
+ onDragStart: ke
1782
+ } = ve.current, ze = {
1793
1783
  active: {
1794
1784
  id: be,
1795
- data: ye.data,
1796
- rect: q
1785
+ data: we.data,
1786
+ rect: H
1797
1787
  }
1798
1788
  };
1799
1789
  De(() => {
1800
- ze == null || ze(Pe), C(ne.Initializing), b({
1801
- type: O.DragStart,
1802
- initialCoordinates: W,
1790
+ ke == null || ke(ze), x(ne.Initializing), y({
1791
+ type: R.DragStart,
1792
+ initialCoordinates: X,
1803
1793
  active: be
1804
- }), w({
1794
+ }), D({
1805
1795
  type: "onDragStart",
1806
- event: Pe
1796
+ event: ze
1807
1797
  });
1808
1798
  });
1809
1799
  },
1810
- onMove(W) {
1811
- b({
1812
- type: O.DragMove,
1813
- coordinates: W
1800
+ onMove(X) {
1801
+ y({
1802
+ type: R.DragMove,
1803
+ coordinates: X
1814
1804
  });
1815
1805
  },
1816
- onEnd: fe(O.DragEnd),
1817
- onCancel: fe(O.DragCancel)
1806
+ onEnd: de(R.DragEnd),
1807
+ onCancel: de(R.DragCancel)
1818
1808
  });
1819
1809
  De(() => {
1820
- pt(H), bt(I.nativeEvent);
1810
+ dt(Y), ft(N.nativeEvent);
1821
1811
  });
1822
- function fe(W) {
1812
+ function de(X) {
1823
1813
  return async function() {
1824
1814
  const {
1825
- active: ye,
1826
- collisions: ze,
1827
- over: Pe,
1828
- scrollAdjustedTranslate: Lt
1829
- } = ie.current;
1830
- let me = null;
1831
- if (ye && Lt) {
1815
+ active: we,
1816
+ collisions: ke,
1817
+ over: ze,
1818
+ scrollAdjustedTranslate: Mt
1819
+ } = oe.current;
1820
+ let ye = null;
1821
+ if (we && Mt) {
1832
1822
  const {
1833
- cancelDrop: we
1823
+ cancelDrop: me
1834
1824
  } = ve.current;
1835
- me = {
1836
- activatorEvent: j,
1837
- active: ye,
1838
- collisions: ze,
1839
- delta: Lt,
1840
- over: Pe
1841
- }, W === O.DragEnd && typeof we == "function" && await Promise.resolve(we(me)) && (W = O.DragCancel);
1825
+ ye = {
1826
+ activatorEvent: U,
1827
+ active: we,
1828
+ collisions: ke,
1829
+ delta: Mt,
1830
+ over: ze
1831
+ }, X === R.DragEnd && typeof me == "function" && await Promise.resolve(me(ye)) && (X = R.DragCancel);
1842
1832
  }
1843
1833
  Q.current = null, De(() => {
1844
- b({
1845
- type: W
1846
- }), C(ne.Uninitialized), Nt(null), pt(null), bt(null);
1847
- const we = W === O.DragEnd ? "onDragEnd" : "onDragCancel";
1848
- if (me) {
1849
- const Ge = ve.current[we];
1850
- Ge == null || Ge(me), w({
1851
- type: we,
1852
- event: me
1834
+ y({
1835
+ type: X
1836
+ }), x(ne.Uninitialized), St(null), dt(null), ft(null);
1837
+ const me = X === R.DragEnd ? "onDragEnd" : "onDragCancel";
1838
+ if (ye) {
1839
+ const qe = ve.current[me];
1840
+ qe == null || qe(ye), D({
1841
+ type: me,
1842
+ event: ye
1853
1843
  });
1854
1844
  }
1855
1845
  });
@@ -1857,622 +1847,333 @@ const Vr = /* @__PURE__ */ bn(function(t) {
1857
1847
  }
1858
1848
  },
1859
1849
  // eslint-disable-next-line react-hooks/exhaustive-deps
1860
- [m]
1861
- ), hn = U((I, P) => (B, te) => {
1862
- const F = B.nativeEvent, j = m.get(te);
1850
+ [w]
1851
+ ), sn = _((N, z) => (B, te) => {
1852
+ const F = B.nativeEvent, U = w.get(te);
1863
1853
  if (
1864
1854
  // Another sensor is already instantiating
1865
1855
  Q.current !== null || // No active draggable
1866
- !j || // Event has already been captured
1856
+ !U || // Event has already been captured
1867
1857
  F.dndKit || F.defaultPrevented
1868
1858
  )
1869
1859
  return;
1870
- const H = {
1871
- active: j
1860
+ const Y = {
1861
+ active: U
1872
1862
  };
1873
- I(B, P.options, H) === !0 && (F.dndKit = {
1874
- capturedBy: P.sensor
1875
- }, Q.current = te, Mt(B, P));
1876
- }, [m, Mt]), Tt = cr(d, hn);
1877
- br(d), re(() => {
1878
- X && M === ne.Initializing && C(ne.Initialized);
1879
- }, [X, M]), N(
1863
+ N(B, z.options, Y) === !0 && (F.dndKit = {
1864
+ capturedBy: z.sensor
1865
+ }, Q.current = te, Rt(B, z));
1866
+ }, [w, Rt]), Et = tr(d, sn);
1867
+ cr(d), se(() => {
1868
+ W && T === ne.Initializing && x(ne.Initialized);
1869
+ }, [W, T]), E(
1880
1870
  () => {
1881
1871
  const {
1882
- onDragMove: I
1872
+ onDragMove: N
1883
1873
  } = ve.current, {
1884
- active: P,
1874
+ active: z,
1885
1875
  activatorEvent: B,
1886
1876
  collisions: te,
1887
1877
  over: F
1888
- } = ie.current;
1889
- if (!P || !B)
1878
+ } = oe.current;
1879
+ if (!z || !B)
1890
1880
  return;
1891
- const j = {
1892
- active: P,
1881
+ const U = {
1882
+ active: z,
1893
1883
  activatorEvent: B,
1894
1884
  collisions: te,
1895
1885
  delta: {
1896
- x: ue.x,
1897
- y: ue.y
1886
+ x: ce.x,
1887
+ y: ce.y
1898
1888
  },
1899
1889
  over: F
1900
1890
  };
1901
1891
  De(() => {
1902
- I == null || I(j), w({
1892
+ N == null || N(U), D({
1903
1893
  type: "onDragMove",
1904
- event: j
1894
+ event: U
1905
1895
  });
1906
1896
  });
1907
1897
  },
1908
1898
  // eslint-disable-next-line react-hooks/exhaustive-deps
1909
- [ue.x, ue.y]
1910
- ), N(
1899
+ [ce.x, ce.y]
1900
+ ), E(
1911
1901
  () => {
1912
1902
  const {
1913
- active: I,
1914
- activatorEvent: P,
1903
+ active: N,
1904
+ activatorEvent: z,
1915
1905
  collisions: B,
1916
1906
  droppableContainers: te,
1917
1907
  scrollAdjustedTranslate: F
1918
- } = ie.current;
1919
- if (!I || Q.current == null || !P || !F)
1908
+ } = oe.current;
1909
+ if (!N || Q.current == null || !z || !F)
1920
1910
  return;
1921
1911
  const {
1922
- onDragOver: j
1923
- } = ve.current, H = te.get(At), fe = H && H.rect.current ? {
1924
- id: H.id,
1925
- rect: H.rect.current,
1926
- data: H.data,
1927
- disabled: H.disabled
1928
- } : null, W = {
1929
- active: I,
1930
- activatorEvent: P,
1912
+ onDragOver: U
1913
+ } = ve.current, Y = te.get(Ct), de = Y && Y.rect.current ? {
1914
+ id: Y.id,
1915
+ rect: Y.rect.current,
1916
+ data: Y.data,
1917
+ disabled: Y.disabled
1918
+ } : null, X = {
1919
+ active: N,
1920
+ activatorEvent: z,
1931
1921
  collisions: B,
1932
1922
  delta: {
1933
1923
  x: F.x,
1934
1924
  y: F.y
1935
1925
  },
1936
- over: fe
1926
+ over: de
1937
1927
  };
1938
1928
  De(() => {
1939
- Nt(fe), j == null || j(W), w({
1929
+ St(de), U == null || U(X), D({
1940
1930
  type: "onDragOver",
1941
- event: W
1931
+ event: X
1942
1932
  });
1943
1933
  });
1944
1934
  },
1945
1935
  // eslint-disable-next-line react-hooks/exhaustive-deps
1946
- [At]
1947
- ), re(() => {
1948
- ie.current = {
1949
- activatorEvent: G,
1950
- active: V,
1951
- activeNode: K,
1952
- collisionRect: de,
1936
+ [Ct]
1937
+ ), se(() => {
1938
+ oe.current = {
1939
+ activatorEvent: J,
1940
+ active: q,
1941
+ activeNode: $,
1942
+ collisionRect: ue,
1953
1943
  collisions: pe,
1954
1944
  droppableRects: le,
1955
- draggableNodes: m,
1945
+ draggableNodes: w,
1956
1946
  draggingNode: Le,
1957
- draggingNodeRect: ce,
1947
+ draggingNodeRect: ae,
1958
1948
  droppableContainers: k,
1959
1949
  over: ee,
1960
1950
  scrollableAncestors: Z,
1961
- scrollAdjustedTranslate: ue
1962
- }, q.current = {
1963
- initial: ce,
1964
- translated: de
1951
+ scrollAdjustedTranslate: ce
1952
+ }, H.current = {
1953
+ initial: ae,
1954
+ translated: ue
1965
1955
  };
1966
- }, [V, K, pe, de, m, Le, ce, le, k, ee, Z, ue]), ir({
1967
- ...Dt,
1968
- delta: R,
1969
- draggingRect: de,
1970
- pointerCoordinates: Et,
1956
+ }, [q, $, pe, ue, w, Le, ae, le, k, ee, Z, ce]), Gn({
1957
+ ...pt,
1958
+ delta: M,
1959
+ draggingRect: ue,
1960
+ pointerCoordinates: Dt,
1971
1961
  scrollableAncestors: Z,
1972
- scrollableAncestorRects: ke
1962
+ scrollableAncestorRects: Te
1973
1963
  });
1974
- const gn = L(() => ({
1975
- active: V,
1976
- activeNode: K,
1977
- activeNodeRect: X,
1978
- activatorEvent: G,
1964
+ const ln = L(() => ({
1965
+ active: q,
1966
+ activeNode: $,
1967
+ activeNodeRect: W,
1968
+ activatorEvent: J,
1979
1969
  collisions: pe,
1980
- containerNodeRect: qe,
1981
- dragOverlay: se,
1982
- draggableNodes: m,
1970
+ containerNodeRect: je,
1971
+ dragOverlay: ie,
1972
+ draggableNodes: w,
1983
1973
  droppableContainers: k,
1984
1974
  droppableRects: le,
1985
1975
  over: ee,
1986
- measureDroppableContainers: Te,
1976
+ measureDroppableContainers: Ne,
1987
1977
  scrollableAncestors: Z,
1988
- scrollableAncestorRects: ke,
1989
- measuringConfiguration: oe,
1990
- measuringScheduled: mt,
1991
- windowRect: Ve
1992
- }), [V, K, X, G, pe, qe, se, m, k, le, ee, Te, Z, ke, oe, mt, Ve]), vn = L(() => ({
1993
- activatorEvent: G,
1994
- activators: Tt,
1995
- active: V,
1996
- activeNodeRect: X,
1978
+ scrollableAncestorRects: Te,
1979
+ measuringConfiguration: re,
1980
+ measuringScheduled: gt,
1981
+ windowRect: He
1982
+ }), [q, $, W, J, pe, je, ie, w, k, le, ee, Ne, Z, Te, re, gt, He]), an = L(() => ({
1983
+ activatorEvent: J,
1984
+ activators: Et,
1985
+ active: q,
1986
+ activeNodeRect: W,
1997
1987
  ariaDescribedById: {
1998
- draggable: Je
1988
+ draggable: Ye
1999
1989
  },
2000
- dispatch: b,
2001
- draggableNodes: m,
1990
+ dispatch: y,
1991
+ draggableNodes: w,
2002
1992
  over: ee,
2003
- measureDroppableContainers: Te
2004
- }), [G, Tt, V, X, b, Je, m, ee, Te]);
2005
- return A.createElement(Yt.Provider, {
2006
- value: y
2007
- }, A.createElement(Me.Provider, {
2008
- value: vn
2009
- }, A.createElement(an.Provider, {
2010
- value: gn
2011
- }, A.createElement(He.Provider, {
2012
- value: fn
2013
- }, c)), A.createElement(Er, {
2014
- disabled: (a == null ? void 0 : a.restoreFocus) === !1
2015
- })), A.createElement(Ln, {
2016
- ...a,
2017
- hiddenTextDescribedById: Je
1993
+ measureDroppableContainers: Ne
1994
+ }), [J, Et, q, W, y, Ye, w, ee, Ne]);
1995
+ return j.createElement(Wt.Provider, {
1996
+ value: b
1997
+ }, j.createElement(Ke.Provider, {
1998
+ value: an
1999
+ }, j.createElement(Zt.Provider, {
2000
+ value: ln
2001
+ }, j.createElement(en.Provider, {
2002
+ value: on
2003
+ }, u)), j.createElement(mr, {
2004
+ disabled: (l == null ? void 0 : l.restoreFocus) === !1
2005
+ })), j.createElement(Cn, {
2006
+ ...l,
2007
+ hiddenTextDescribedById: Ye
2018
2008
  }));
2019
- function pn() {
2020
- const I = (vt == null ? void 0 : vt.autoScrollEnabled) === !1, P = typeof l == "object" ? l.enabled === !1 : l === !1, B = S && !I && !P;
2021
- return typeof l == "object" ? {
2022
- ...l,
2009
+ function cn() {
2010
+ const N = (ut == null ? void 0 : ut.autoScrollEnabled) === !1, z = typeof a == "object" ? a.enabled === !1 : a === !1, B = S && !N && !z;
2011
+ return typeof a == "object" ? {
2012
+ ...a,
2023
2013
  enabled: B
2024
2014
  } : {
2025
2015
  enabled: B
2026
2016
  };
2027
2017
  }
2028
- }), Nr = /* @__PURE__ */ Oe(null), Xt = "button", Mr = "Droppable";
2029
- function Gr(e) {
2018
+ }), Sr = /* @__PURE__ */ Me(null), Bt = "button", Rr = "Droppable";
2019
+ function Ir(e) {
2030
2020
  let {
2031
2021
  id: t,
2032
2022
  data: n,
2033
2023
  disabled: r = !1,
2034
2024
  attributes: i
2035
2025
  } = e;
2036
- const o = Ye(Mr), {
2026
+ const o = Ue(Rr), {
2037
2027
  activators: s,
2038
- activatorEvent: a,
2039
- active: l,
2040
- activeNodeRect: c,
2028
+ activatorEvent: l,
2029
+ active: a,
2030
+ activeNodeRect: u,
2041
2031
  ariaDescribedById: d,
2042
- draggableNodes: u,
2032
+ draggableNodes: c,
2043
2033
  over: g
2044
- } = ae(Me), {
2045
- role: f = Xt,
2046
- roleDescription: D = "draggable",
2034
+ } = he(Ke), {
2035
+ role: f = Bt,
2036
+ roleDescription: C = "draggable",
2047
2037
  tabIndex: h = 0
2048
- } = i ?? {}, v = (l == null ? void 0 : l.id) === t, b = ae(v ? He : Nr), [w, y] = Xe(), [M, C] = Xe(), S = yr(s, t), p = Re(n);
2049
- re(
2050
- () => (u.set(t, {
2038
+ } = i ?? {}, v = (a == null ? void 0 : a.id) === t, y = he(v ? en : Sr), [D, b] = Pe(), [T, x] = Pe(), S = ur(s, t), p = Re(n);
2039
+ se(
2040
+ () => (c.set(t, {
2051
2041
  id: t,
2052
2042
  key: o,
2053
- node: w,
2054
- activatorNode: M,
2043
+ node: D,
2044
+ activatorNode: T,
2055
2045
  data: p
2056
2046
  }), () => {
2057
- const R = u.get(t);
2058
- R && R.key === o && u.delete(t);
2047
+ const M = c.get(t);
2048
+ M && M.key === o && c.delete(t);
2059
2049
  }),
2060
2050
  // eslint-disable-next-line react-hooks/exhaustive-deps
2061
- [u, t]
2051
+ [c, t]
2062
2052
  );
2063
- const m = L(() => ({
2053
+ const w = L(() => ({
2064
2054
  role: f,
2065
2055
  tabIndex: h,
2066
2056
  "aria-disabled": r,
2067
- "aria-pressed": v && f === Xt ? !0 : void 0,
2068
- "aria-roledescription": D,
2057
+ "aria-pressed": v && f === Bt ? !0 : void 0,
2058
+ "aria-roledescription": C,
2069
2059
  "aria-describedby": d.draggable
2070
- }), [r, f, h, v, D, d.draggable]);
2060
+ }), [r, f, h, v, C, d.draggable]);
2071
2061
  return {
2072
- active: l,
2073
- activatorEvent: a,
2074
- activeNodeRect: c,
2075
- attributes: m,
2062
+ active: a,
2063
+ activatorEvent: l,
2064
+ activeNodeRect: u,
2065
+ attributes: w,
2076
2066
  isDragging: v,
2077
2067
  listeners: r ? void 0 : S,
2078
- node: w,
2068
+ node: D,
2079
2069
  over: g,
2080
- setNodeRef: y,
2081
- setActivatorNodeRef: C,
2082
- transform: b
2070
+ setNodeRef: b,
2071
+ setActivatorNodeRef: x,
2072
+ transform: y
2083
2073
  };
2084
2074
  }
2085
- function Tr() {
2086
- return ae(an);
2075
+ function kr() {
2076
+ return he(Zt);
2087
2077
  }
2088
- const Lr = "Droppable", kr = {
2078
+ const Er = "Droppable", Mr = {
2089
2079
  timeout: 25
2090
2080
  };
2091
- function Qr(e) {
2081
+ function zr(e) {
2092
2082
  let {
2093
2083
  data: t,
2094
2084
  disabled: n = !1,
2095
2085
  id: r,
2096
2086
  resizeObserverConfig: i
2097
2087
  } = e;
2098
- const o = Ye(Lr), {
2088
+ const o = Ue(Er), {
2099
2089
  active: s,
2100
- dispatch: a,
2101
- over: l,
2102
- measureDroppableContainers: c
2103
- } = ae(Me), d = z({
2090
+ dispatch: l,
2091
+ over: a,
2092
+ measureDroppableContainers: u
2093
+ } = he(Ke), d = I({
2104
2094
  disabled: n
2105
- }), u = z(!1), g = z(null), f = z(null), {
2106
- disabled: D,
2095
+ }), c = I(!1), g = I(null), f = I(null), {
2096
+ disabled: C,
2107
2097
  updateMeasurementsFor: h,
2108
2098
  timeout: v
2109
2099
  } = {
2110
- ...kr,
2100
+ ...Mr,
2111
2101
  ...i
2112
- }, b = Re(h ?? r), w = U(
2102
+ }, y = Re(h ?? r), D = _(
2113
2103
  () => {
2114
- if (!u.current) {
2115
- u.current = !0;
2104
+ if (!c.current) {
2105
+ c.current = !0;
2116
2106
  return;
2117
2107
  }
2118
2108
  f.current != null && clearTimeout(f.current), f.current = setTimeout(() => {
2119
- c(Array.isArray(b.current) ? b.current : [b.current]), f.current = null;
2109
+ u(Array.isArray(y.current) ? y.current : [y.current]), f.current = null;
2120
2110
  }, v);
2121
2111
  },
2122
2112
  //eslint-disable-next-line react-hooks/exhaustive-deps
2123
2113
  [v]
2124
- ), y = _e({
2125
- callback: w,
2126
- disabled: D || !s
2127
- }), M = U((m, R) => {
2128
- y && (R && (y.unobserve(R), u.current = !1), m && y.observe(m));
2129
- }, [y]), [C, S] = Xe(M), p = Re(t);
2130
- return N(() => {
2131
- !y || !C.current || (y.disconnect(), u.current = !1, y.observe(C.current));
2132
- }, [C, y]), re(
2133
- () => (a({
2134
- type: O.RegisterDroppable,
2114
+ ), b = _e({
2115
+ callback: D,
2116
+ disabled: C || !s
2117
+ }), T = _((w, M) => {
2118
+ b && (M && (b.unobserve(M), c.current = !1), w && b.observe(w));
2119
+ }, [b]), [x, S] = Pe(T), p = Re(t);
2120
+ return E(() => {
2121
+ !b || !x.current || (b.disconnect(), c.current = !1, b.observe(x.current));
2122
+ }, [x, b]), se(
2123
+ () => (l({
2124
+ type: R.RegisterDroppable,
2135
2125
  element: {
2136
2126
  id: r,
2137
2127
  key: o,
2138
2128
  disabled: n,
2139
- node: C,
2129
+ node: x,
2140
2130
  rect: g,
2141
2131
  data: p
2142
2132
  }
2143
- }), () => a({
2144
- type: O.UnregisterDroppable,
2133
+ }), () => l({
2134
+ type: R.UnregisterDroppable,
2145
2135
  key: o,
2146
2136
  id: r
2147
2137
  })),
2148
2138
  // eslint-disable-next-line react-hooks/exhaustive-deps
2149
2139
  [r]
2150
- ), N(() => {
2151
- n !== d.current.disabled && (a({
2152
- type: O.SetDroppableDisabled,
2140
+ ), E(() => {
2141
+ n !== d.current.disabled && (l({
2142
+ type: R.SetDroppableDisabled,
2153
2143
  id: r,
2154
2144
  key: o,
2155
2145
  disabled: n
2156
2146
  }), d.current.disabled = n);
2157
- }, [r, o, n, a]), {
2147
+ }, [r, o, n, l]), {
2158
2148
  active: s,
2159
2149
  rect: g,
2160
- isOver: (l == null ? void 0 : l.id) === r,
2161
- node: C,
2162
- over: l,
2150
+ isOver: (a == null ? void 0 : a.id) === r,
2151
+ node: x,
2152
+ over: a,
2163
2153
  setNodeRef: S
2164
2154
  };
2165
2155
  }
2166
- function Ir(e) {
2167
- let {
2168
- animation: t,
2169
- children: n
2170
- } = e;
2171
- const [r, i] = Y(null), [o, s] = Y(null), a = $e(n);
2172
- return !n && !r && a && i(a), re(() => {
2173
- if (!o)
2174
- return;
2175
- const l = r == null ? void 0 : r.key, c = r == null ? void 0 : r.props.id;
2176
- if (l == null || c == null) {
2177
- i(null);
2178
- return;
2179
- }
2180
- Promise.resolve(t(c, o)).then(() => {
2181
- i(null);
2182
- });
2183
- }, [t, r, o]), A.createElement(A.Fragment, null, n, r ? yn(r, {
2184
- ref: s
2185
- }) : null);
2186
- }
2187
- const zr = {
2188
- x: 0,
2189
- y: 0,
2190
- scaleX: 1,
2191
- scaleY: 1
2192
- };
2193
- function Pr(e) {
2194
- let {
2195
- children: t
2196
- } = e;
2197
- return A.createElement(Me.Provider, {
2198
- value: sn
2199
- }, A.createElement(He.Provider, {
2200
- value: zr
2201
- }, t));
2202
- }
2203
- const Br = {
2204
- position: "fixed",
2205
- touchAction: "none"
2206
- }, Fr = (e) => lt(e) ? "transform 250ms ease" : void 0, $r = /* @__PURE__ */ mn((e, t) => {
2207
- let {
2208
- as: n,
2209
- activatorEvent: r,
2210
- adjustScale: i,
2211
- children: o,
2212
- className: s,
2213
- rect: a,
2214
- style: l,
2215
- transform: c,
2216
- transition: d = Fr
2217
- } = e;
2218
- if (!a)
2219
- return null;
2220
- const u = i ? c : {
2221
- ...c,
2222
- scaleX: 1,
2223
- scaleY: 1
2224
- }, g = {
2225
- ...Br,
2226
- width: a.width,
2227
- height: a.height,
2228
- top: a.top,
2229
- left: a.left,
2230
- transform: nt.Transform.toString(u),
2231
- transformOrigin: i && r ? kn(r, a) : void 0,
2232
- transition: typeof d == "function" ? d(r) : d,
2233
- ...l
2234
- };
2235
- return A.createElement(n, {
2236
- className: s,
2237
- style: g,
2238
- ref: t
2239
- }, o);
2240
- }), Kr = (e) => (t) => {
2241
- let {
2242
- active: n,
2243
- dragOverlay: r
2244
- } = t;
2245
- const i = {}, {
2246
- styles: o,
2247
- className: s
2248
- } = e;
2249
- if (o != null && o.active)
2250
- for (const [a, l] of Object.entries(o.active))
2251
- l !== void 0 && (i[a] = n.node.style.getPropertyValue(a), n.node.style.setProperty(a, l));
2252
- if (o != null && o.dragOverlay)
2253
- for (const [a, l] of Object.entries(o.dragOverlay))
2254
- l !== void 0 && r.node.style.setProperty(a, l);
2255
- return s != null && s.active && n.node.classList.add(s.active), s != null && s.dragOverlay && r.node.classList.add(s.dragOverlay), function() {
2256
- for (const [l, c] of Object.entries(i))
2257
- n.node.style.setProperty(l, c);
2258
- s != null && s.active && n.node.classList.remove(s.active);
2259
- };
2260
- }, Xr = (e) => {
2261
- let {
2262
- transform: {
2263
- initial: t,
2264
- final: n
2265
- }
2266
- } = e;
2267
- return [{
2268
- transform: nt.Transform.toString(t)
2269
- }, {
2270
- transform: nt.Transform.toString(n)
2271
- }];
2272
- }, jr = {
2273
- duration: 250,
2274
- easing: "ease",
2275
- keyframes: Xr,
2276
- sideEffects: /* @__PURE__ */ Kr({
2277
- styles: {
2278
- active: {
2279
- opacity: "0"
2280
- }
2281
- }
2282
- })
2283
- };
2284
- function Wr(e) {
2285
- let {
2286
- config: t,
2287
- draggableNodes: n,
2288
- droppableContainers: r,
2289
- measuringConfiguration: i
2290
- } = e;
2291
- return ct((o, s) => {
2292
- if (t === null)
2293
- return;
2294
- const a = n.get(o);
2295
- if (!a)
2296
- return;
2297
- const l = a.node.current;
2298
- if (!l)
2299
- return;
2300
- const c = on(s);
2301
- if (!c)
2302
- return;
2303
- const {
2304
- transform: d
2305
- } = J(s).getComputedStyle(s), u = _t(d);
2306
- if (!u)
2307
- return;
2308
- const g = typeof t == "function" ? t : Yr(t);
2309
- return Zt(l, i.draggable.measure), g({
2310
- active: {
2311
- id: o,
2312
- data: a.data,
2313
- node: l,
2314
- rect: i.draggable.measure(l)
2315
- },
2316
- draggableNodes: n,
2317
- dragOverlay: {
2318
- node: s,
2319
- rect: i.dragOverlay.measure(c)
2320
- },
2321
- droppableContainers: r,
2322
- measuringConfiguration: i,
2323
- transform: u
2324
- });
2325
- });
2326
- }
2327
- function Yr(e) {
2328
- const {
2329
- duration: t,
2330
- easing: n,
2331
- sideEffects: r,
2332
- keyframes: i
2333
- } = {
2334
- ...jr,
2335
- ...e
2336
- };
2337
- return (o) => {
2338
- let {
2339
- active: s,
2340
- dragOverlay: a,
2341
- transform: l,
2342
- ...c
2343
- } = o;
2344
- if (!t)
2345
- return;
2346
- const d = {
2347
- x: a.rect.left - s.rect.left,
2348
- y: a.rect.top - s.rect.top
2349
- }, u = {
2350
- scaleX: l.scaleX !== 1 ? s.rect.width * l.scaleX / a.rect.width : 1,
2351
- scaleY: l.scaleY !== 1 ? s.rect.height * l.scaleY / a.rect.height : 1
2352
- }, g = {
2353
- x: l.x - d.x,
2354
- y: l.y - d.y,
2355
- ...u
2356
- }, f = i({
2357
- ...c,
2358
- active: s,
2359
- dragOverlay: a,
2360
- transform: {
2361
- initial: l,
2362
- final: g
2363
- }
2364
- }), [D] = f, h = f[f.length - 1];
2365
- if (JSON.stringify(D) === JSON.stringify(h))
2366
- return;
2367
- const v = r == null ? void 0 : r({
2368
- active: s,
2369
- dragOverlay: a,
2370
- ...c
2371
- }), b = a.node.animate(f, {
2372
- duration: t,
2373
- easing: n,
2374
- fill: "forwards"
2375
- });
2376
- return new Promise((w) => {
2377
- b.onfinish = () => {
2378
- v == null || v(), w();
2379
- };
2380
- });
2381
- };
2382
- }
2383
- let jt = 0;
2384
- function Ur(e) {
2385
- return L(() => {
2386
- if (e != null)
2387
- return jt++, jt;
2388
- }, [e]);
2389
- }
2390
- const Zr = /* @__PURE__ */ A.memo((e) => {
2391
- let {
2392
- adjustScale: t = !1,
2393
- children: n,
2394
- dropAnimation: r,
2395
- style: i,
2396
- transition: o,
2397
- modifiers: s,
2398
- wrapperElement: a = "div",
2399
- className: l,
2400
- zIndex: c = 999
2401
- } = e;
2402
- const {
2403
- activatorEvent: d,
2404
- active: u,
2405
- activeNodeRect: g,
2406
- containerNodeRect: f,
2407
- draggableNodes: D,
2408
- droppableContainers: h,
2409
- dragOverlay: v,
2410
- over: b,
2411
- measuringConfiguration: w,
2412
- scrollableAncestors: y,
2413
- scrollableAncestorRects: M,
2414
- windowRect: C
2415
- } = Tr(), S = ae(He), p = Ur(u == null ? void 0 : u.id), m = ln(s, {
2416
- activatorEvent: d,
2417
- active: u,
2418
- activeNodeRect: g,
2419
- containerNodeRect: f,
2420
- draggingNodeRect: v.rect,
2421
- over: b,
2422
- overlayNodeRect: v.rect,
2423
- scrollableAncestors: y,
2424
- scrollableAncestorRects: M,
2425
- transform: S,
2426
- windowRect: C
2427
- }), R = gt(g), k = Wr({
2428
- config: r,
2429
- draggableNodes: D,
2430
- droppableContainers: h,
2431
- measuringConfiguration: w
2432
- }), E = R ? v.setRef : void 0;
2433
- return A.createElement(Pr, null, A.createElement(Ir, {
2434
- animation: k
2435
- }, u && p ? A.createElement($r, {
2436
- key: p,
2437
- id: u.id,
2438
- ref: E,
2439
- as: a,
2440
- activatorEvent: d,
2441
- adjustScale: t,
2442
- className: l,
2443
- transition: o,
2444
- rect: R,
2445
- style: {
2446
- zIndex: c,
2447
- ...i
2448
- },
2449
- transform: m
2450
- }, n) : null));
2451
- });
2452
2156
  export {
2453
2157
  Ce as AutoScrollActivator,
2454
- Vr as DndContext,
2455
- Zr as DragOverlay,
2456
- x as KeyboardCode,
2457
- tn as KeyboardSensor,
2458
- it as MeasuringFrequency,
2158
+ Tr as DndContext,
2159
+ m as KeyboardCode,
2160
+ Jt as KeyboardSensor,
2161
+ rt as MeasuringFrequency,
2459
2162
  Ee as MeasuringStrategy,
2460
- rr as MouseSensor,
2461
- nn as PointerSensor,
2462
- or as TouchSensor,
2163
+ Jn as MouseSensor,
2164
+ Vt as PointerSensor,
2165
+ Vn as TouchSensor,
2463
2166
  We as TraversalOrder,
2464
- ln as applyModifiers,
2465
- Tn as defaultAnnouncements,
2466
- _ as defaultCoordinates,
2467
- jr as defaultDropAnimation,
2468
- Kr as defaultDropAnimationSideEffects,
2469
- Mn as defaultScreenReaderInstructions,
2470
- Ne as getClientRect,
2471
- zn as getFirstCollision,
2472
- dt as getScrollableAncestors,
2473
- Bn as rectIntersection,
2474
- Tr as useDndContext,
2475
- An as useDndMonitor,
2476
- Gr as useDraggable,
2477
- Qr as useDroppable
2167
+ Dr as applyModifiers,
2168
+ xn as defaultAnnouncements,
2169
+ K as defaultCoordinates,
2170
+ Dn as defaultScreenReaderInstructions,
2171
+ Oe as getClientRect,
2172
+ Rn as getFirstCollision,
2173
+ lt as getScrollableAncestors,
2174
+ Mn as rectIntersection,
2175
+ kr as useDndContext,
2176
+ yn as useDndMonitor,
2177
+ Ir as useDraggable,
2178
+ zr as useDroppable
2478
2179
  };