@wilow_app/design-system 0.0.3 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,15 +1,15 @@
1
- import { jsx as C, jsxs as L } from "react/jsx-runtime";
1
+ import { jsx as O, jsxs as L } from "react/jsx-runtime";
2
2
  import * as w from "react";
3
- import V, { useRef as B, useEffect as te, useContext as gr, useState as Ze, useLayoutEffect as Vo } from "react";
4
- import Lo, { flushSync as mr } from "react-dom";
3
+ import V, { useRef as B, useEffect as te, useContext as mr, useState as Ze, useLayoutEffect as Lo } from "react";
4
+ import Mo, { flushSync as hr } from "react-dom";
5
5
  function W(e) {
6
6
  return `Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `;
7
7
  }
8
- var Mo = typeof Symbol == "function" && Symbol.observable || "@@observable", xn = Mo, In = () => Math.random().toString(36).substring(7).split("").join("."), $o = {
8
+ var $o = typeof Symbol == "function" && Symbol.observable || "@@observable", xn = $o, In = () => Math.random().toString(36).substring(7).split("").join("."), Go = {
9
9
  INIT: `@@redux/INIT${/* @__PURE__ */ In()}`,
10
10
  REPLACE: `@@redux/REPLACE${/* @__PURE__ */ In()}`
11
- }, On = $o;
12
- function Go(e) {
11
+ }, On = Go;
12
+ function Fo(e) {
13
13
  if (typeof e != "object" || e === null)
14
14
  return !1;
15
15
  let t = e;
@@ -17,7 +17,7 @@ function Go(e) {
17
17
  t = Object.getPrototypeOf(t);
18
18
  return Object.getPrototypeOf(e) === t || Object.getPrototypeOf(e) === null;
19
19
  }
20
- function Fo(e) {
20
+ function ko(e) {
21
21
  if (e === void 0)
22
22
  return "undefined";
23
23
  if (e === null)
@@ -33,11 +33,11 @@ function Fo(e) {
33
33
  }
34
34
  if (Array.isArray(e))
35
35
  return "array";
36
- if (Uo(e))
36
+ if (Ho(e))
37
37
  return "date";
38
- if (Wo(e))
38
+ if (Uo(e))
39
39
  return "error";
40
- const n = ko(e);
40
+ const n = Wo(e);
41
41
  switch (n) {
42
42
  case "Symbol":
43
43
  case "Promise":
@@ -49,20 +49,20 @@ function Fo(e) {
49
49
  }
50
50
  return Object.prototype.toString.call(e).slice(8, -1).toLowerCase().replace(/\s/g, "");
51
51
  }
52
- function ko(e) {
52
+ function Wo(e) {
53
53
  return typeof e.constructor == "function" ? e.constructor.name : null;
54
54
  }
55
- function Wo(e) {
55
+ function Uo(e) {
56
56
  return e instanceof Error || typeof e.message == "string" && e.constructor && typeof e.constructor.stackTraceLimit == "number";
57
57
  }
58
- function Uo(e) {
58
+ function Ho(e) {
59
59
  return e instanceof Date ? !0 : typeof e.toDateString == "function" && typeof e.getDate == "function" && typeof e.setDate == "function";
60
60
  }
61
61
  function ne(e) {
62
62
  let t = typeof e;
63
- return process.env.NODE_ENV !== "production" && (t = Fo(e)), t;
63
+ return process.env.NODE_ENV !== "production" && (t = ko(e)), t;
64
64
  }
65
- function hr(e, t, n) {
65
+ function br(e, t, n) {
66
66
  if (typeof e != "function")
67
67
  throw new Error(process.env.NODE_ENV === "production" ? W(2) : `Expected the root reducer to be a function. Instead, received: '${ne(e)}'`);
68
68
  if (typeof t == "function" && typeof n == "function" || typeof n == "function" && typeof arguments[3] == "function")
@@ -70,7 +70,7 @@ function hr(e, t, n) {
70
70
  if (typeof t == "function" && typeof n > "u" && (n = t, t = void 0), typeof n < "u") {
71
71
  if (typeof n != "function")
72
72
  throw new Error(process.env.NODE_ENV === "production" ? W(1) : `Expected the enhancer to be a function. Instead, received: '${ne(n)}'`);
73
- return n(hr)(e, t);
73
+ return n(br)(e, t);
74
74
  }
75
75
  let r = e, o = t, i = /* @__PURE__ */ new Map(), s = i, c = 0, a = !1;
76
76
  function d() {
@@ -100,7 +100,7 @@ function hr(e, t, n) {
100
100
  };
101
101
  }
102
102
  function u(h) {
103
- if (!Go(h))
103
+ if (!Fo(h))
104
104
  throw new Error(process.env.NODE_ENV === "production" ? W(7) : `Actions must be plain objects. Instead, the actual type was: '${ne(h)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);
105
105
  if (typeof h.type > "u")
106
106
  throw new Error(process.env.NODE_ENV === "production" ? W(8) : 'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');
@@ -161,27 +161,27 @@ function hr(e, t, n) {
161
161
  [xn]: m
162
162
  };
163
163
  }
164
- function wn(e, t) {
164
+ function Cn(e, t) {
165
165
  return function(...n) {
166
166
  return t(e.apply(this, n));
167
167
  };
168
168
  }
169
- function Cn(e, t) {
169
+ function wn(e, t) {
170
170
  if (typeof e == "function")
171
- return wn(e, t);
171
+ return Cn(e, t);
172
172
  if (typeof e != "object" || e === null)
173
173
  throw new Error(process.env.NODE_ENV === "production" ? W(16) : `bindActionCreators expected an object or a function, but instead received: '${ne(e)}'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?`);
174
174
  const n = {};
175
175
  for (const r in e) {
176
176
  const o = e[r];
177
- typeof o == "function" && (n[r] = wn(o, t));
177
+ typeof o == "function" && (n[r] = Cn(o, t));
178
178
  }
179
179
  return n;
180
180
  }
181
- function br(...e) {
181
+ function vr(...e) {
182
182
  return e.length === 0 ? (t) => t : e.length === 1 ? e[0] : e.reduce((t, n) => (...r) => t(n(...r)));
183
183
  }
184
- function Ho(...e) {
184
+ function zo(...e) {
185
185
  return (t) => (n, r) => {
186
186
  const o = t(n, r);
187
187
  let i = () => {
@@ -191,7 +191,7 @@ function Ho(...e) {
191
191
  getState: o.getState,
192
192
  dispatch: (a, ...d) => i(a, ...d)
193
193
  }, c = e.map((a) => a(s));
194
- return i = br(...c)(o.dispatch), {
194
+ return i = vr(...c)(o.dispatch), {
195
195
  ...o,
196
196
  dispatch: i
197
197
  };
@@ -208,7 +208,7 @@ var pt = {};
208
208
  * LICENSE file in the root directory of this source tree.
209
209
  */
210
210
  var Sn;
211
- function zo() {
211
+ function jo() {
212
212
  if (Sn) return pt;
213
213
  Sn = 1;
214
214
  var e = V;
@@ -269,7 +269,7 @@ var ft = {};
269
269
  * LICENSE file in the root directory of this source tree.
270
270
  */
271
271
  var An;
272
- function jo() {
272
+ function qo() {
273
273
  return An || (An = 1, process.env.NODE_ENV !== "production" && function() {
274
274
  function e(a, d) {
275
275
  return a === d && (a !== 0 || 1 / a === 1 / d) || a !== a && d !== d;
@@ -320,34 +320,34 @@ function jo() {
320
320
  }, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
321
321
  }()), ft;
322
322
  }
323
- process.env.NODE_ENV === "production" ? zo() : jo();
324
- var vr = /* @__PURE__ */ w.version.startsWith("19"), qo = /* @__PURE__ */ Symbol.for(
325
- vr ? "react.transitional.element" : "react.element"
326
- ), Yo = /* @__PURE__ */ Symbol.for("react.portal"), yr = /* @__PURE__ */ Symbol.for("react.fragment"), Er = /* @__PURE__ */ Symbol.for("react.strict_mode"), Dr = /* @__PURE__ */ Symbol.for("react.profiler"), Ut = /* @__PURE__ */ Symbol.for("react.consumer"), Ht = /* @__PURE__ */ Symbol.for("react.context"), zt = /* @__PURE__ */ Symbol.for("react.forward_ref"), Nr = /* @__PURE__ */ Symbol.for("react.suspense"), xr = /* @__PURE__ */ Symbol.for(
323
+ process.env.NODE_ENV === "production" ? jo() : qo();
324
+ var yr = /* @__PURE__ */ w.version.startsWith("19"), Yo = /* @__PURE__ */ Symbol.for(
325
+ yr ? "react.transitional.element" : "react.element"
326
+ ), Xo = /* @__PURE__ */ Symbol.for("react.portal"), Er = /* @__PURE__ */ Symbol.for("react.fragment"), Dr = /* @__PURE__ */ Symbol.for("react.strict_mode"), Nr = /* @__PURE__ */ Symbol.for("react.profiler"), Ut = /* @__PURE__ */ Symbol.for("react.consumer"), Ht = /* @__PURE__ */ Symbol.for("react.context"), zt = /* @__PURE__ */ Symbol.for("react.forward_ref"), xr = /* @__PURE__ */ Symbol.for("react.suspense"), Ir = /* @__PURE__ */ Symbol.for(
327
327
  "react.suspense_list"
328
- ), Qe = /* @__PURE__ */ Symbol.for("react.memo"), Ir = /* @__PURE__ */ Symbol.for("react.lazy"), Xo = /* @__PURE__ */ Symbol.for("react.offscreen"), Ko = /* @__PURE__ */ Symbol.for(
328
+ ), Qe = /* @__PURE__ */ Symbol.for("react.memo"), Or = /* @__PURE__ */ Symbol.for("react.lazy"), Ko = /* @__PURE__ */ Symbol.for("react.offscreen"), Jo = /* @__PURE__ */ Symbol.for(
329
329
  "react.client.reference"
330
- ), Jo = zt, Zo = Qe;
331
- function Qo(e) {
332
- return typeof e == "string" || typeof e == "function" || e === yr || e === Dr || e === Er || e === Nr || e === xr || e === Xo || typeof e == "object" && e !== null && (e.$$typeof === Ir || e.$$typeof === Qe || e.$$typeof === Ht || e.$$typeof === Ut || e.$$typeof === zt || e.$$typeof === Ko || e.getModuleId !== void 0);
330
+ ), Zo = zt, Qo = Qe;
331
+ function ei(e) {
332
+ return typeof e == "string" || typeof e == "function" || e === Er || e === Nr || e === Dr || e === xr || e === Ir || e === Ko || typeof e == "object" && e !== null && (e.$$typeof === Or || e.$$typeof === Qe || e.$$typeof === Ht || e.$$typeof === Ut || e.$$typeof === zt || e.$$typeof === Jo || e.getModuleId !== void 0);
333
333
  }
334
334
  function Tt(e) {
335
335
  if (typeof e == "object" && e !== null) {
336
336
  const { $$typeof: t } = e;
337
337
  switch (t) {
338
- case qo:
338
+ case Yo:
339
339
  switch (e = e.type, e) {
340
- case yr:
341
- case Dr:
342
340
  case Er:
343
341
  case Nr:
342
+ case Dr:
344
343
  case xr:
344
+ case Ir:
345
345
  return e;
346
346
  default:
347
347
  switch (e = e && e.$$typeof, e) {
348
348
  case Ht:
349
349
  case zt:
350
- case Ir:
350
+ case Or:
351
351
  case Qe:
352
352
  return e;
353
353
  case Ut:
@@ -356,15 +356,15 @@ function Tt(e) {
356
356
  return t;
357
357
  }
358
358
  }
359
- case Yo:
359
+ case Xo:
360
360
  return t;
361
361
  }
362
362
  }
363
363
  }
364
- function ei(e) {
365
- return vr ? Tt(e) === Ut : Tt(e) === Ht;
366
- }
367
364
  function ti(e) {
365
+ return yr ? Tt(e) === Ut : Tt(e) === Ht;
366
+ }
367
+ function ni(e) {
368
368
  return Tt(e) === Qe;
369
369
  }
370
370
  function jt(e) {
@@ -381,10 +381,10 @@ function gt(e, t) {
381
381
  ));
382
382
  else throw new Error(`Unexpected value for ${t} in connect.`);
383
383
  }
384
- function ni(e, t, n) {
384
+ function ri(e, t, n) {
385
385
  gt(e, "mapStateToProps"), gt(t, "mapDispatchToProps"), gt(n, "mergeProps");
386
386
  }
387
- function ri(e, t, n, r, {
387
+ function oi(e, t, n, r, {
388
388
  areStatesEqual: o,
389
389
  areOwnPropsEqual: i,
390
390
  areStatePropsEqual: s
@@ -416,16 +416,16 @@ function ri(e, t, n, r, {
416
416
  return c ? y(I, N) : g(I, N);
417
417
  };
418
418
  }
419
- function oi(e, {
419
+ function ii(e, {
420
420
  initMapStateToProps: t,
421
421
  initMapDispatchToProps: n,
422
422
  initMergeProps: r,
423
423
  ...o
424
424
  }) {
425
425
  const i = t(e, o), s = n(e, o), c = r(e, o);
426
- return process.env.NODE_ENV !== "production" && ni(i, s, c), ri(i, s, c, e, o);
426
+ return process.env.NODE_ENV !== "production" && ri(i, s, c), oi(i, s, c, e, o);
427
427
  }
428
- function ii(e, t) {
428
+ function si(e, t) {
429
429
  const n = {};
430
430
  for (const r in e) {
431
431
  const o = e[r];
@@ -433,7 +433,7 @@ function ii(e, t) {
433
433
  }
434
434
  return n;
435
435
  }
436
- function si(e) {
436
+ function ci(e) {
437
437
  if (typeof e != "object" || e === null) return !1;
438
438
  const t = Object.getPrototypeOf(e);
439
439
  if (t === null) return !0;
@@ -442,8 +442,8 @@ function si(e) {
442
442
  n = Object.getPrototypeOf(n);
443
443
  return t === n;
444
444
  }
445
- function Or(e, t, n) {
446
- si(e) || jt(
445
+ function Cr(e, t, n) {
446
+ ci(e) || jt(
447
447
  `${n}() in ${t} must return a plain object. Instead received ${e}.`
448
448
  );
449
449
  }
@@ -467,7 +467,7 @@ function wr(e, t) {
467
467
  return i.dependsOnOwnProps = !0, i.mapToProps = function(c, a) {
468
468
  i.mapToProps = e, i.dependsOnOwnProps = _n(e);
469
469
  let d = i(c, a);
470
- return typeof d == "function" && (i.mapToProps = d, i.dependsOnOwnProps = _n(d), d = i(c, a)), process.env.NODE_ENV !== "production" && Or(d, o, t), d;
470
+ return typeof d == "function" && (i.mapToProps = d, i.dependsOnOwnProps = _n(d), d = i(c, a)), process.env.NODE_ENV !== "production" && Cr(d, o, t), d;
471
471
  }, i;
472
472
  };
473
473
  }
@@ -478,11 +478,11 @@ function qt(e, t) {
478
478
  );
479
479
  };
480
480
  }
481
- function ci(e) {
481
+ function ai(e) {
482
482
  return e && typeof e == "object" ? Bt(
483
483
  (t) => (
484
484
  // @ts-ignore
485
- ii(e, t)
485
+ si(e, t)
486
486
  )
487
487
  ) : e ? typeof e == "function" ? (
488
488
  // @ts-ignore
@@ -491,38 +491,38 @@ function ci(e) {
491
491
  dispatch: t
492
492
  }));
493
493
  }
494
- function ai(e) {
494
+ function li(e) {
495
495
  return e ? typeof e == "function" ? (
496
496
  // @ts-ignore
497
497
  wr(e, "mapStateToProps")
498
498
  ) : qt(e, "mapStateToProps") : Bt(() => ({}));
499
499
  }
500
- function li(e, t, n) {
500
+ function di(e, t, n) {
501
501
  return { ...n, ...e, ...t };
502
502
  }
503
- function di(e) {
503
+ function ui(e) {
504
504
  return function(n, { displayName: r, areMergedPropsEqual: o }) {
505
505
  let i = !1, s;
506
506
  return function(a, d, p) {
507
507
  const l = e(a, d, p);
508
- return i ? o(l, s) || (s = l) : (i = !0, s = l, process.env.NODE_ENV !== "production" && Or(s, r, "mergeProps")), s;
508
+ return i ? o(l, s) || (s = l) : (i = !0, s = l, process.env.NODE_ENV !== "production" && Cr(s, r, "mergeProps")), s;
509
509
  };
510
510
  };
511
511
  }
512
- function ui(e) {
513
- return e ? typeof e == "function" ? di(e) : qt(e, "mergeProps") : () => li;
514
- }
515
512
  function pi(e) {
513
+ return e ? typeof e == "function" ? ui(e) : qt(e, "mergeProps") : () => di;
514
+ }
515
+ function fi(e) {
516
516
  e();
517
517
  }
518
- function fi() {
518
+ function gi() {
519
519
  let e = null, t = null;
520
520
  return {
521
521
  clear() {
522
522
  e = null, t = null;
523
523
  },
524
524
  notify() {
525
- pi(() => {
525
+ fi(() => {
526
526
  let n = e;
527
527
  for (; n; )
528
528
  n.callback(), n = n.next;
@@ -553,7 +553,7 @@ var Pn = {
553
553
  },
554
554
  get: () => []
555
555
  };
556
- function Cr(e, t) {
556
+ function Sr(e, t) {
557
557
  let n, r = Pn, o = 0, i = !1;
558
558
  function s(b) {
559
559
  p();
@@ -573,7 +573,7 @@ function Cr(e, t) {
573
573
  return i;
574
574
  }
575
575
  function p() {
576
- o++, n || (n = t ? t.addNestedSub(a) : e.subscribe(a), r = fi());
576
+ o++, n || (n = t ? t.addNestedSub(a) : e.subscribe(a), r = gi());
577
577
  }
578
578
  function l() {
579
579
  o--, n && o === 0 && (n(), n = void 0, r.clear(), r = Pn);
@@ -595,7 +595,7 @@ function Cr(e, t) {
595
595
  };
596
596
  return m;
597
597
  }
598
- var gi = () => typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", mi = /* @__PURE__ */ gi(), hi = () => typeof navigator < "u" && navigator.product === "ReactNative", bi = /* @__PURE__ */ hi(), vi = () => mi || bi ? w.useLayoutEffect : w.useEffect, ze = /* @__PURE__ */ vi();
598
+ var mi = () => typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", hi = /* @__PURE__ */ mi(), bi = () => typeof navigator < "u" && navigator.product === "ReactNative", vi = /* @__PURE__ */ bi(), yi = () => hi || vi ? w.useLayoutEffect : w.useEffect, ze = /* @__PURE__ */ yi();
599
599
  function Rn(e, t) {
600
600
  return e === t ? e !== 0 || t !== 0 || 1 / e === 1 / t : e !== e && t !== t;
601
601
  }
@@ -610,7 +610,7 @@ function mt(e, t) {
610
610
  return !1;
611
611
  return !0;
612
612
  }
613
- var yi = {
613
+ var Ei = {
614
614
  childContextTypes: !0,
615
615
  contextType: !0,
616
616
  contextTypes: !0,
@@ -622,7 +622,7 @@ var yi = {
622
622
  mixins: !0,
623
623
  propTypes: !0,
624
624
  type: !0
625
- }, Ei = {
625
+ }, Di = {
626
626
  name: !0,
627
627
  length: !0,
628
628
  prototype: !0,
@@ -630,42 +630,42 @@ var yi = {
630
630
  callee: !0,
631
631
  arguments: !0,
632
632
  arity: !0
633
- }, Di = {
633
+ }, Ni = {
634
634
  $$typeof: !0,
635
635
  render: !0,
636
636
  defaultProps: !0,
637
637
  displayName: !0,
638
638
  propTypes: !0
639
- }, Sr = {
639
+ }, Ar = {
640
640
  $$typeof: !0,
641
641
  compare: !0,
642
642
  defaultProps: !0,
643
643
  displayName: !0,
644
644
  propTypes: !0,
645
645
  type: !0
646
- }, Ni = {
647
- [Jo]: Di,
648
- [Zo]: Sr
646
+ }, xi = {
647
+ [Zo]: Ni,
648
+ [Qo]: Ar
649
649
  };
650
650
  function Tn(e) {
651
- return ti(e) ? Sr : Ni[e.$$typeof] || yi;
651
+ return ni(e) ? Ar : xi[e.$$typeof] || Ei;
652
652
  }
653
- var xi = Object.defineProperty, Ii = Object.getOwnPropertyNames, Bn = Object.getOwnPropertySymbols, Oi = Object.getOwnPropertyDescriptor, wi = Object.getPrototypeOf, Vn = Object.prototype;
653
+ var Ii = Object.defineProperty, Oi = Object.getOwnPropertyNames, Bn = Object.getOwnPropertySymbols, Ci = Object.getOwnPropertyDescriptor, wi = Object.getPrototypeOf, Vn = Object.prototype;
654
654
  function Vt(e, t) {
655
655
  if (typeof t != "string") {
656
656
  if (Vn) {
657
657
  const i = wi(t);
658
658
  i && i !== Vn && Vt(e, i);
659
659
  }
660
- let n = Ii(t);
660
+ let n = Oi(t);
661
661
  Bn && (n = n.concat(Bn(t)));
662
662
  const r = Tn(e), o = Tn(t);
663
663
  for (let i = 0; i < n.length; ++i) {
664
664
  const s = n[i];
665
- if (!Ei[s] && !(o && o[s]) && !(r && r[s])) {
666
- const c = Oi(t, s);
665
+ if (!Di[s] && !(o && o[s]) && !(r && r[s])) {
666
+ const c = Ci(t, s);
667
667
  try {
668
- xi(e, s, c);
668
+ Ii(e, s, c);
669
669
  } catch {
670
670
  }
671
671
  }
@@ -677,7 +677,7 @@ var ht = /* @__PURE__ */ Symbol.for("react-redux-context"), bt = typeof globalTh
677
677
  /* fall back to a per-module scope (pre-8.1 behaviour) if `globalThis` is not available */
678
678
  {}
679
679
  );
680
- function Ci() {
680
+ function Si() {
681
681
  if (!w.createContext) return {};
682
682
  const e = bt[ht] ?? (bt[ht] = /* @__PURE__ */ new Map());
683
683
  let t = e.get(w.createContext);
@@ -685,20 +685,20 @@ function Ci() {
685
685
  null
686
686
  ), process.env.NODE_ENV !== "production" && (t.displayName = "ReactRedux"), e.set(w.createContext, t)), t;
687
687
  }
688
- var Ar = /* @__PURE__ */ Ci(), Si = [null, null], Ai = (e) => {
688
+ var _r = /* @__PURE__ */ Si(), Ai = [null, null], _i = (e) => {
689
689
  try {
690
690
  return JSON.stringify(e);
691
691
  } catch {
692
692
  return String(e);
693
693
  }
694
694
  };
695
- function _i(e, t, n) {
695
+ function Pi(e, t, n) {
696
696
  ze(() => e(...t), n);
697
697
  }
698
- function Pi(e, t, n, r, o, i) {
698
+ function Ri(e, t, n, r, o, i) {
699
699
  e.current = r, n.current = !1, o.current && (o.current = null, i());
700
700
  }
701
- function Ri(e, t, n, r, o, i, s, c, a, d, p) {
701
+ function Ti(e, t, n, r, o, i, s, c, a, d, p) {
702
702
  if (!e) return () => {
703
703
  };
704
704
  let l = !1, u = null;
@@ -722,31 +722,31 @@ function Ri(e, t, n, r, o, i, s, c, a, d, p) {
722
722
  throw u;
723
723
  };
724
724
  }
725
- function Ti(e, t) {
725
+ function Bi(e, t) {
726
726
  return e === t;
727
727
  }
728
728
  var Ln = !1;
729
- function Bi(e, t, n, {
729
+ function Vi(e, t, n, {
730
730
  // The `pure` option has been removed, so TS doesn't like us destructuring this to check its existence.
731
731
  // @ts-ignore
732
732
  pure: r,
733
- areStatesEqual: o = Ti,
733
+ areStatesEqual: o = Bi,
734
734
  areOwnPropsEqual: i = mt,
735
735
  areStatePropsEqual: s = mt,
736
736
  areMergedPropsEqual: c = mt,
737
737
  // use React's forwardRef to expose a ref of the wrapped component
738
738
  forwardRef: a = !1,
739
739
  // the context consumer to use
740
- context: d = Ar
740
+ context: d = _r
741
741
  } = {}) {
742
742
  process.env.NODE_ENV !== "production" && r !== void 0 && !Ln && (Ln = !0, jt(
743
743
  'The `pure` option has been removed. `connect` is now always a "pure/memoized" component'
744
744
  ));
745
- const p = d, l = ai(e), u = ci(t), g = ui(n), m = !!e;
745
+ const p = d, l = li(e), u = ai(t), g = pi(n), m = !!e;
746
746
  return (h) => {
747
- if (process.env.NODE_ENV !== "production" && !/* @__PURE__ */ Qo(h))
747
+ if (process.env.NODE_ENV !== "production" && !/* @__PURE__ */ ei(h))
748
748
  throw new Error(
749
- `You must pass a component to the function returned by connect. Instead received ${Ai(
749
+ `You must pass a component to the function returned by connect. Instead received ${_i(
750
750
  h
751
751
  )}`
752
752
  );
@@ -771,7 +771,7 @@ function Bi(e, t, n, {
771
771
  }, [S]), H = w.useMemo(() => {
772
772
  let z = p;
773
773
  if (_ != null && _.Consumer && process.env.NODE_ENV !== "production") {
774
- if (!/* @__PURE__ */ ei(
774
+ if (!/* @__PURE__ */ ti(
775
775
  // @ts-ignore
776
776
  /* @__PURE__ */ w.createElement(_.Consumer, null)
777
777
  ))
@@ -786,9 +786,9 @@ function Bi(e, t, n, {
786
786
  throw new Error(
787
787
  `Could not find "store" in the context of "${v}". Either wrap the root component in a <Provider>, or pass a custom React context provider to <Provider> and the corresponding React context consumer to ${v} in connect options.`
788
788
  );
789
- const ee = Q ? S.store : M.store, Ge = de ? M.getServerState : ee.getState, st = w.useMemo(() => oi(ee.dispatch, I), [ee]), [be, yn] = w.useMemo(() => {
790
- if (!m) return Si;
791
- const z = Cr(
789
+ const ee = Q ? S.store : M.store, Ge = de ? M.getServerState : ee.getState, st = w.useMemo(() => ii(ee.dispatch, I), [ee]), [be, yn] = w.useMemo(() => {
790
+ if (!m) return Ai;
791
+ const z = Sr(
792
792
  ee,
793
793
  Q ? void 0 : M.subscription
794
794
  ), ue = z.notifyNestedSubs.bind(z);
@@ -802,7 +802,7 @@ function Bi(e, t, n, {
802
802
  ze(() => (lt.current = !0, () => {
803
803
  lt.current = !1;
804
804
  }), []);
805
- const Nn = w.useMemo(() => () => ve.current && T === at.current ? ve.current : st(ee.getState(), T), [ee, T]), Bo = w.useMemo(() => (ue) => be ? Ri(
805
+ const Nn = w.useMemo(() => () => ve.current && T === at.current ? ve.current : st(ee.getState(), T), [ee, T]), Vo = w.useMemo(() => (ue) => be ? Ti(
806
806
  m,
807
807
  ee,
808
808
  be,
@@ -817,7 +817,7 @@ function Bi(e, t, n, {
817
817
  ue
818
818
  ) : () => {
819
819
  }, [be]);
820
- _i(Pi, [
820
+ Pi(Ri, [
821
821
  at,
822
822
  ct,
823
823
  Dn,
@@ -829,7 +829,7 @@ function Bi(e, t, n, {
829
829
  try {
830
830
  Fe = w.useSyncExternalStore(
831
831
  // TODO We're passing through a big wrapper that does a bunch of extra side effects besides subscribing
832
- Bo,
832
+ Vo,
833
833
  // TODO This is incredibly hacky. We've already processed the store update and calculated new child props,
834
834
  // TODO and we're just passing that through so it triggers a re-render for us rather than relying on `uSES`.
835
835
  Nn,
@@ -869,10 +869,10 @@ ${dt.current.stack}
869
869
  return /* @__PURE__ */ Vt(x, h);
870
870
  };
871
871
  }
872
- var _r = Bi;
873
- function Vi(e) {
872
+ var Pr = Vi;
873
+ function Li(e) {
874
874
  const { children: t, context: n, serverState: r, store: o } = e, i = w.useMemo(() => {
875
- const a = Cr(o), d = {
875
+ const a = Sr(o), d = {
876
876
  store: o,
877
877
  subscription: a,
878
878
  getServerState: r ? () => r : void 0
@@ -893,12 +893,12 @@ function Vi(e) {
893
893
  a.tryUnsubscribe(), a.onStateChange = void 0;
894
894
  };
895
895
  }, [i, s]);
896
- const c = n || Ar;
896
+ const c = n || _r;
897
897
  return /* @__PURE__ */ w.createElement(c.Provider, { value: i }, t);
898
898
  }
899
- var Li = Vi, Mi = process.env.NODE_ENV === "production", vt = "Invariant failed";
899
+ var Mi = Li, $i = process.env.NODE_ENV === "production", vt = "Invariant failed";
900
900
  function Mn(e, t) {
901
- if (Mi)
901
+ if ($i)
902
902
  throw new Error(vt);
903
903
  var n = typeof t == "function" ? t() : t, r = n ? "".concat(vt, ": ").concat(n) : vt;
904
904
  throw new Error(r);
@@ -933,7 +933,7 @@ var Z = function(t) {
933
933
  bottom: t.bottom - n.bottom,
934
934
  right: t.right - n.right
935
935
  };
936
- }, $i = function(t, n) {
936
+ }, Gi = function(t, n) {
937
937
  return {
938
938
  top: t.top + n.y,
939
939
  left: t.left + n.x,
@@ -962,13 +962,13 @@ var Z = function(t) {
962
962
  return 0;
963
963
  var o = Number(n);
964
964
  return isNaN(o) && (process.env.NODE_ENV !== "production" ? Mn(!1, "Could not parse value [raw: " + t + ", without suffix: " + n + "]") : Mn()), o;
965
- }, Gi = function() {
965
+ }, Fi = function() {
966
966
  return {
967
967
  x: window.pageXOffset,
968
968
  y: window.pageYOffset
969
969
  };
970
970
  }, je = function(t, n) {
971
- var r = t.borderBox, o = t.border, i = t.margin, s = t.padding, c = $i(r, n);
971
+ var r = t.borderBox, o = t.border, i = t.margin, s = t.padding, c = Gi(r, n);
972
972
  return Xt({
973
973
  borderBox: c,
974
974
  border: o,
@@ -976,8 +976,8 @@ var Z = function(t) {
976
976
  padding: s
977
977
  });
978
978
  }, qe = function(t, n) {
979
- return n === void 0 && (n = Gi()), je(t, n);
980
- }, Pr = function(t, n) {
979
+ return n === void 0 && (n = Fi()), je(t, n);
980
+ }, Rr = function(t, n) {
981
981
  var r = {
982
982
  top: X(n.marginTop),
983
983
  right: X(n.marginRight),
@@ -1000,9 +1000,9 @@ var Z = function(t) {
1000
1000
  padding: o,
1001
1001
  border: i
1002
1002
  });
1003
- }, Rr = function(t) {
1003
+ }, Tr = function(t) {
1004
1004
  var n = t.getBoundingClientRect(), r = window.getComputedStyle(t);
1005
- return Pr(n, r);
1005
+ return Rr(n, r);
1006
1006
  }, Ie = function(t) {
1007
1007
  var n = [], r = null, o = function() {
1008
1008
  for (var s = arguments.length, c = new Array(s), a = 0; a < s; a++)
@@ -1024,20 +1024,20 @@ function Ye() {
1024
1024
  return e;
1025
1025
  }, Ye.apply(null, arguments);
1026
1026
  }
1027
- const Fi = process.env.NODE_ENV === "production", ki = /[ \t]{2,}/g, Wi = /^[ \t]*/gm, Gn = (e) => e.replace(ki, " ").replace(Wi, "").trim(), Ui = (e) => Gn(`
1027
+ const ki = process.env.NODE_ENV === "production", Wi = /[ \t]{2,}/g, Ui = /^[ \t]*/gm, Gn = (e) => e.replace(Wi, " ").replace(Ui, "").trim(), Hi = (e) => Gn(`
1028
1028
  %c@hello-pangea/dnd
1029
1029
 
1030
1030
  %c${Gn(e)}
1031
1031
 
1032
1032
  %c👷‍ This is a development only message. It will be removed in production builds.
1033
- `), Hi = (e) => [Ui(e), "color: #00C584; font-size: 1.2em; font-weight: bold;", "line-height: 1.5", "color: #723874;"], zi = "__@hello-pangea/dnd-disable-dev-warnings";
1034
- function Tr(e, t) {
1035
- Fi || typeof window < "u" && window[zi] || console[e](...Hi(t));
1033
+ `), zi = (e) => [Hi(e), "color: #00C584; font-size: 1.2em; font-weight: bold;", "line-height: 1.5", "color: #723874;"], ji = "__@hello-pangea/dnd-disable-dev-warnings";
1034
+ function Br(e, t) {
1035
+ ki || typeof window < "u" && window[ji] || console[e](...zi(t));
1036
1036
  }
1037
- const R = Tr.bind(null, "warn"), Lt = Tr.bind(null, "error");
1037
+ const R = Br.bind(null, "warn"), Lt = Br.bind(null, "error");
1038
1038
  function re() {
1039
1039
  }
1040
- function ji(e, t) {
1040
+ function qi(e, t) {
1041
1041
  return {
1042
1042
  ...e,
1043
1043
  ...t
@@ -1045,7 +1045,7 @@ function ji(e, t) {
1045
1045
  }
1046
1046
  function K(e, t, n) {
1047
1047
  const r = t.map((o) => {
1048
- const i = ji(n, o.options);
1048
+ const i = qi(n, o.options);
1049
1049
  return e.addEventListener(o.eventName, o.fn, i), function() {
1050
1050
  e.removeEventListener(o.eventName, o.fn, i);
1051
1051
  };
@@ -1056,16 +1056,16 @@ function K(e, t, n) {
1056
1056
  });
1057
1057
  };
1058
1058
  }
1059
- const qi = process.env.NODE_ENV === "production", Fn = "Invariant failed";
1059
+ const Yi = process.env.NODE_ENV === "production", Fn = "Invariant failed";
1060
1060
  class Oe extends Error {
1061
1061
  }
1062
1062
  Oe.prototype.toString = function() {
1063
1063
  return this.message;
1064
1064
  };
1065
1065
  function f(e, t) {
1066
- throw qi ? new Oe(Fn) : new Oe(`${Fn}: ${t || ""}`);
1066
+ throw Yi ? new Oe(Fn) : new Oe(`${Fn}: ${t || ""}`);
1067
1067
  }
1068
- class Yi extends V.Component {
1068
+ class Xi extends V.Component {
1069
1069
  constructor(...t) {
1070
1070
  super(...t), this.callbacks = null, this.unbind = re, this.onWindowError = (n) => {
1071
1071
  const r = this.getCallbacks();
@@ -1103,13 +1103,13 @@ class Yi extends V.Component {
1103
1103
  return this.props.children(this.setCallbacks);
1104
1104
  }
1105
1105
  }
1106
- const Xi = `
1106
+ const Ki = `
1107
1107
  Press space bar to start a drag.
1108
1108
  When dragging you can use the arrow keys to move the item around and escape to cancel.
1109
1109
  Some screen readers may require you to be in focus mode or to use your pass through key
1110
- `, Xe = (e) => e + 1, Ki = (e) => `
1110
+ `, Xe = (e) => e + 1, Ji = (e) => `
1111
1111
  You have lifted an item in position ${Xe(e.source.index)}
1112
- `, Br = (e, t) => {
1112
+ `, Vr = (e, t) => {
1113
1113
  const n = e.droppableId === t.droppableId, r = Xe(e.index), o = Xe(t.index);
1114
1114
  return n ? `
1115
1115
  You have moved the item from position ${r}
@@ -1120,23 +1120,23 @@ const Xi = `
1120
1120
  to list ${t.droppableId}
1121
1121
  in position ${o}
1122
1122
  `;
1123
- }, Vr = (e, t, n) => t.droppableId === n.droppableId ? `
1123
+ }, Lr = (e, t, n) => t.droppableId === n.droppableId ? `
1124
1124
  The item ${e}
1125
1125
  has been combined with ${n.draggableId}` : `
1126
1126
  The item ${e}
1127
1127
  in list ${t.droppableId}
1128
1128
  has been combined with ${n.draggableId}
1129
1129
  in list ${n.droppableId}
1130
- `, Ji = (e) => {
1130
+ `, Zi = (e) => {
1131
1131
  const t = e.destination;
1132
1132
  if (t)
1133
- return Br(e.source, t);
1133
+ return Vr(e.source, t);
1134
1134
  const n = e.combine;
1135
- return n ? Vr(e.draggableId, e.source, n) : "You are over an area that cannot be dropped on";
1135
+ return n ? Lr(e.draggableId, e.source, n) : "You are over an area that cannot be dropped on";
1136
1136
  }, kn = (e) => `
1137
1137
  The item has returned to its starting position
1138
1138
  of ${Xe(e.index)}
1139
- `, Zi = (e) => {
1139
+ `, Qi = (e) => {
1140
1140
  if (e.reason === "CANCEL")
1141
1141
  return `
1142
1142
  Movement cancelled.
@@ -1145,36 +1145,36 @@ const Xi = `
1145
1145
  const t = e.destination, n = e.combine;
1146
1146
  return t ? `
1147
1147
  You have dropped the item.
1148
- ${Br(e.source, t)}
1148
+ ${Vr(e.source, t)}
1149
1149
  ` : n ? `
1150
1150
  You have dropped the item.
1151
- ${Vr(e.draggableId, e.source, n)}
1151
+ ${Lr(e.draggableId, e.source, n)}
1152
1152
  ` : `
1153
1153
  The item has been dropped while not over a drop area.
1154
1154
  ${kn(e.source)}
1155
1155
  `;
1156
1156
  }, He = {
1157
- dragHandleUsageInstructions: Xi,
1158
- onDragStart: Ki,
1159
- onDragUpdate: Ji,
1160
- onDragEnd: Zi
1157
+ dragHandleUsageInstructions: Ki,
1158
+ onDragStart: Ji,
1159
+ onDragUpdate: Zi,
1160
+ onDragEnd: Qi
1161
1161
  };
1162
- function Qi(e, t) {
1162
+ function es(e, t) {
1163
1163
  return !!(e === t || Number.isNaN(e) && Number.isNaN(t));
1164
1164
  }
1165
- function Lr(e, t) {
1165
+ function Mr(e, t) {
1166
1166
  if (e.length !== t.length)
1167
1167
  return !1;
1168
1168
  for (let n = 0; n < e.length; n++)
1169
- if (!Qi(e[n], t[n]))
1169
+ if (!es(e[n], t[n]))
1170
1170
  return !1;
1171
1171
  return !0;
1172
1172
  }
1173
- function O(e, t) {
1173
+ function C(e, t) {
1174
1174
  const n = Ze(() => ({
1175
1175
  inputs: t,
1176
1176
  result: e()
1177
- }))[0], r = B(!0), o = B(n), s = r.current || !!(t && o.current.inputs && Lr(t, o.current.inputs)) ? o.current : {
1177
+ }))[0], r = B(!0), o = B(n), s = r.current || !!(t && o.current.inputs && Mr(t, o.current.inputs)) ? o.current : {
1178
1178
  inputs: t,
1179
1179
  result: e()
1180
1180
  };
@@ -1183,7 +1183,7 @@ function O(e, t) {
1183
1183
  }, [s]), s.result;
1184
1184
  }
1185
1185
  function D(e, t) {
1186
- return O(() => e, t);
1186
+ return C(() => e, t);
1187
1187
  }
1188
1188
  const G = {
1189
1189
  x: 0,
@@ -1203,11 +1203,11 @@ const G = {
1203
1203
  } : {
1204
1204
  x: n,
1205
1205
  y: t
1206
- }, we = (e, t) => Math.sqrt((t.x - e.x) ** 2 + (t.y - e.y) ** 2), Wn = (e, t) => Math.min(...t.map((n) => we(e, n))), Mr = (e) => (t) => ({
1206
+ }, Ce = (e, t) => Math.sqrt((t.x - e.x) ** 2 + (t.y - e.y) ** 2), Wn = (e, t) => Math.min(...t.map((n) => Ce(e, n))), $r = (e) => (t) => ({
1207
1207
  x: e(t.x),
1208
1208
  y: e(t.y)
1209
1209
  });
1210
- var es = (e, t) => {
1210
+ var ts = (e, t) => {
1211
1211
  const n = Z({
1212
1212
  top: Math.max(t.top, e.top),
1213
1213
  right: Math.min(t.right, e.right),
@@ -1233,22 +1233,22 @@ const Te = (e, t) => ({
1233
1233
  }, {
1234
1234
  x: e.right,
1235
1235
  y: e.bottom
1236
- }], ts = {
1236
+ }], ns = {
1237
1237
  top: 0,
1238
1238
  right: 0,
1239
1239
  bottom: 0,
1240
1240
  left: 0
1241
- }, ns = (e, t) => t ? Te(e, t.scroll.diff.displacement) : e, rs = (e, t, n) => n && n.increasedBy ? {
1241
+ }, rs = (e, t) => t ? Te(e, t.scroll.diff.displacement) : e, os = (e, t, n) => n && n.increasedBy ? {
1242
1242
  ...e,
1243
1243
  [t.end]: e[t.end] + n.increasedBy[t.line]
1244
- } : e, os = (e, t) => t && t.shouldClipSubject ? es(t.pageMarginBox, e) : Z(e);
1244
+ } : e, is = (e, t) => t && t.shouldClipSubject ? ts(t.pageMarginBox, e) : Z(e);
1245
1245
  var pe = ({
1246
1246
  page: e,
1247
1247
  withPlaceholder: t,
1248
1248
  axis: n,
1249
1249
  frame: r
1250
1250
  }) => {
1251
- const o = ns(e.marginBox, r), i = rs(o, n, t), s = os(i, r);
1251
+ const o = rs(e.marginBox, r), i = os(o, n, t), s = is(i, r);
1252
1252
  return {
1253
1253
  page: e,
1254
1254
  withPlaceholder: t,
@@ -1279,7 +1279,7 @@ var pe = ({
1279
1279
  subject: s
1280
1280
  };
1281
1281
  };
1282
- function $(e, t = Lr) {
1282
+ function $(e, t = Mr) {
1283
1283
  let n = null;
1284
1284
  function r(...o) {
1285
1285
  if (n && n.lastThis === this && t(o, n.lastArgs))
@@ -1295,15 +1295,15 @@ function $(e, t = Lr) {
1295
1295
  n = null;
1296
1296
  }, r;
1297
1297
  }
1298
- const $r = $((e) => e.reduce((t, n) => (t[n.descriptor.id] = n, t), {})), Gr = $((e) => e.reduce((t, n) => (t[n.descriptor.id] = n, t), {})), et = $((e) => Object.values(e)), is = $((e) => Object.values(e));
1299
- var le = $((e, t) => is(t).filter((r) => e === r.descriptor.droppableId).sort((r, o) => r.descriptor.index - o.descriptor.index));
1298
+ const Gr = $((e) => e.reduce((t, n) => (t[n.descriptor.id] = n, t), {})), Fr = $((e) => e.reduce((t, n) => (t[n.descriptor.id] = n, t), {})), et = $((e) => Object.values(e)), ss = $((e) => Object.values(e));
1299
+ var le = $((e, t) => ss(t).filter((r) => e === r.descriptor.droppableId).sort((r, o) => r.descriptor.index - o.descriptor.index));
1300
1300
  function Jt(e) {
1301
1301
  return e.at && e.at.type === "REORDER" ? e.at.destination : null;
1302
1302
  }
1303
1303
  function tt(e) {
1304
1304
  return e.at && e.at.type === "COMBINE" ? e.at.combine : null;
1305
1305
  }
1306
- var nt = $((e, t) => t.filter((n) => n.descriptor.id !== e.descriptor.id)), ss = ({
1306
+ var nt = $((e, t) => t.filter((n) => n.descriptor.id !== e.descriptor.id)), cs = ({
1307
1307
  isMovingForward: e,
1308
1308
  draggable: t,
1309
1309
  destination: n,
@@ -1343,19 +1343,19 @@ var nt = $((e, t) => t.filter((n) => n.descriptor.id !== e.descriptor.id)), ss =
1343
1343
  const u = d[l];
1344
1344
  return s(u.descriptor.id);
1345
1345
  }, he = (e, t) => e.descriptor.droppableId === t.descriptor.id;
1346
- const Fr = {
1346
+ const kr = {
1347
1347
  point: G,
1348
1348
  value: 0
1349
- }, Ce = {
1349
+ }, we = {
1350
1350
  invisible: {},
1351
1351
  visible: {},
1352
1352
  all: []
1353
- }, cs = {
1354
- displaced: Ce,
1355
- displacedBy: Fr,
1353
+ }, as = {
1354
+ displaced: we,
1355
+ displacedBy: kr,
1356
1356
  at: null
1357
1357
  };
1358
- var J = (e, t) => (n) => e <= n && n <= t, kr = (e) => {
1358
+ var J = (e, t) => (n) => e <= n && n <= t, Wr = (e) => {
1359
1359
  const t = J(e.top, e.bottom), n = J(e.left, e.right);
1360
1360
  return (r) => {
1361
1361
  if (t(r.top) && t(r.bottom) && n(r.left) && n(r.right))
@@ -1366,7 +1366,7 @@ var J = (e, t) => (n) => e <= n && n <= t, kr = (e) => {
1366
1366
  const a = r.top < e.top && r.bottom > e.bottom, d = r.left < e.left && r.right > e.right;
1367
1367
  return a && d ? !0 : a && s || d && i;
1368
1368
  };
1369
- }, as = (e) => {
1369
+ }, ls = (e) => {
1370
1370
  const t = J(e.top, e.bottom), n = J(e.left, e.right);
1371
1371
  return (r) => t(r.top) && t(r.bottom) && n(r.left) && n(r.right);
1372
1372
  };
@@ -1380,7 +1380,7 @@ const Zt = {
1380
1380
  crossAxisStart: "left",
1381
1381
  crossAxisEnd: "right",
1382
1382
  crossAxisSize: "width"
1383
- }, Wr = {
1383
+ }, Ur = {
1384
1384
  direction: "horizontal",
1385
1385
  line: "x",
1386
1386
  crossAxisLine: "y",
@@ -1391,32 +1391,32 @@ const Zt = {
1391
1391
  crossAxisEnd: "bottom",
1392
1392
  crossAxisSize: "height"
1393
1393
  };
1394
- var ls = (e) => (t) => {
1394
+ var ds = (e) => (t) => {
1395
1395
  const n = J(t.top, t.bottom), r = J(t.left, t.right);
1396
1396
  return (o) => e === Zt ? n(o.top) && n(o.bottom) : r(o.left) && r(o.right);
1397
1397
  };
1398
- const ds = (e, t) => {
1398
+ const us = (e, t) => {
1399
1399
  const n = t.frame ? t.frame.scroll.diff.displacement : G;
1400
1400
  return Te(e, n);
1401
- }, us = (e, t, n) => t.subject.active ? n(t.subject.active)(e) : !1, ps = (e, t, n) => n(t)(e), Qt = ({
1401
+ }, ps = (e, t, n) => t.subject.active ? n(t.subject.active)(e) : !1, fs = (e, t, n) => n(t)(e), Qt = ({
1402
1402
  target: e,
1403
1403
  destination: t,
1404
1404
  viewport: n,
1405
1405
  withDroppableDisplacement: r,
1406
1406
  isVisibleThroughFrameFn: o
1407
1407
  }) => {
1408
- const i = r ? ds(e, t) : e;
1409
- return us(i, t, o) && ps(i, n, o);
1410
- }, fs = (e) => Qt({
1408
+ const i = r ? us(e, t) : e;
1409
+ return ps(i, t, o) && fs(i, n, o);
1410
+ }, gs = (e) => Qt({
1411
1411
  ...e,
1412
- isVisibleThroughFrameFn: kr
1413
- }), Ur = (e) => Qt({
1412
+ isVisibleThroughFrameFn: Wr
1413
+ }), Hr = (e) => Qt({
1414
1414
  ...e,
1415
- isVisibleThroughFrameFn: as
1416
- }), gs = (e) => Qt({
1415
+ isVisibleThroughFrameFn: ls
1416
+ }), ms = (e) => Qt({
1417
1417
  ...e,
1418
- isVisibleThroughFrameFn: ls(e.destination.axis)
1419
- }), ms = (e, t, n) => {
1418
+ isVisibleThroughFrameFn: ds(e.destination.axis)
1419
+ }), hs = (e, t, n) => {
1420
1420
  if (typeof n == "boolean")
1421
1421
  return n;
1422
1422
  if (!t)
@@ -1430,7 +1430,7 @@ const ds = (e, t) => {
1430
1430
  const i = o[e];
1431
1431
  return i ? i.shouldAnimate : !0;
1432
1432
  };
1433
- function hs(e, t) {
1433
+ function bs(e, t) {
1434
1434
  const n = e.page.marginBox, r = {
1435
1435
  top: t.point.y,
1436
1436
  right: 0,
@@ -1448,15 +1448,15 @@ function Se({
1448
1448
  last: i
1449
1449
  }) {
1450
1450
  return e.reduce(function(c, a) {
1451
- const d = hs(a, n), p = a.descriptor.id;
1452
- if (c.all.push(p), !fs({
1451
+ const d = bs(a, n), p = a.descriptor.id;
1452
+ if (c.all.push(p), !gs({
1453
1453
  target: d,
1454
1454
  destination: t,
1455
1455
  viewport: r,
1456
1456
  withDroppableDisplacement: !0
1457
1457
  }))
1458
1458
  return c.invisible[a.descriptor.id] = !0, c;
1459
- const u = ms(p, i, o), g = {
1459
+ const u = hs(p, i, o), g = {
1460
1460
  draggableId: p,
1461
1461
  shouldAnimate: u
1462
1462
  };
@@ -1467,7 +1467,7 @@ function Se({
1467
1467
  invisible: {}
1468
1468
  });
1469
1469
  }
1470
- function bs(e, t) {
1470
+ function vs(e, t) {
1471
1471
  if (!e.length)
1472
1472
  return 0;
1473
1473
  const n = e[e.length - 1].descriptor.index;
@@ -1479,11 +1479,11 @@ function Hn({
1479
1479
  displacedBy: n,
1480
1480
  destination: r
1481
1481
  }) {
1482
- const o = bs(e, {
1482
+ const o = vs(e, {
1483
1483
  inHomeList: t
1484
1484
  });
1485
1485
  return {
1486
- displaced: Ce,
1486
+ displaced: we,
1487
1487
  displacedBy: n,
1488
1488
  at: {
1489
1489
  type: "REORDER",
@@ -1543,7 +1543,7 @@ function Ke({
1543
1543
  function ie(e, t) {
1544
1544
  return !!t.effected[e];
1545
1545
  }
1546
- var vs = ({
1546
+ var ys = ({
1547
1547
  isMovingForward: e,
1548
1548
  destination: t,
1549
1549
  draggables: n,
@@ -1554,7 +1554,7 @@ var vs = ({
1554
1554
  return null;
1555
1555
  const i = r.draggableId, c = n[i].descriptor.index;
1556
1556
  return ie(i, o) ? e ? c : c - 1 : e ? c + 1 : c;
1557
- }, ys = ({
1557
+ }, Es = ({
1558
1558
  isMovingForward: e,
1559
1559
  isInHomeList: t,
1560
1560
  insideDestination: n,
@@ -1564,7 +1564,7 @@ var vs = ({
1564
1564
  return null;
1565
1565
  const o = r.index, i = e ? o + 1 : o - 1, s = n[0].descriptor.index, c = n[n.length - 1].descriptor.index, a = t ? c : c + 1;
1566
1566
  return i < s || i > a ? null : i;
1567
- }, Es = ({
1567
+ }, Ds = ({
1568
1568
  isMovingForward: e,
1569
1569
  isInHomeList: t,
1570
1570
  draggable: n,
@@ -1577,7 +1577,7 @@ var vs = ({
1577
1577
  }) => {
1578
1578
  const d = s.at;
1579
1579
  if (d || (process.env.NODE_ENV !== "production" ? f(!1, "Cannot move in direction without previous impact location") : f()), d.type === "REORDER") {
1580
- const l = ys({
1580
+ const l = Es({
1581
1581
  isMovingForward: e,
1582
1582
  isInHomeList: t,
1583
1583
  location: d.destination,
@@ -1593,7 +1593,7 @@ var vs = ({
1593
1593
  index: l
1594
1594
  });
1595
1595
  }
1596
- const p = vs({
1596
+ const p = ys({
1597
1597
  isMovingForward: e,
1598
1598
  destination: o,
1599
1599
  displaced: s.displaced,
@@ -1610,7 +1610,7 @@ var vs = ({
1610
1610
  displacedBy: s.displacedBy,
1611
1611
  index: p
1612
1612
  });
1613
- }, Ds = ({
1613
+ }, Ns = ({
1614
1614
  displaced: e,
1615
1615
  afterCritical: t,
1616
1616
  combineWith: n,
@@ -1618,14 +1618,14 @@ var vs = ({
1618
1618
  }) => {
1619
1619
  const o = !!(e.visible[n] || e.invisible[n]);
1620
1620
  return ie(n, t) ? o ? G : me(r.point) : o ? r.point : G;
1621
- }, Ns = ({
1621
+ }, xs = ({
1622
1622
  afterCritical: e,
1623
1623
  impact: t,
1624
1624
  draggables: n
1625
1625
  }) => {
1626
1626
  const r = tt(t);
1627
1627
  r || (process.env.NODE_ENV, f());
1628
- const o = r.draggableId, i = n[o].page.borderBox.center, s = Ds({
1628
+ const o = r.draggableId, i = n[o].page.borderBox.center, s = Ns({
1629
1629
  displaced: t.displaced,
1630
1630
  afterCritical: e,
1631
1631
  combineWith: o,
@@ -1633,20 +1633,20 @@ var vs = ({
1633
1633
  });
1634
1634
  return F(i, s);
1635
1635
  };
1636
- const Hr = (e, t) => t.margin[e.start] + t.borderBox[e.size] / 2, xs = (e, t) => t.margin[e.end] + t.borderBox[e.size] / 2, en = (e, t, n) => t[e.crossAxisStart] + n.margin[e.crossAxisStart] + n.borderBox[e.crossAxisSize] / 2, zn = ({
1636
+ const zr = (e, t) => t.margin[e.start] + t.borderBox[e.size] / 2, Is = (e, t) => t.margin[e.end] + t.borderBox[e.size] / 2, en = (e, t, n) => t[e.crossAxisStart] + n.margin[e.crossAxisStart] + n.borderBox[e.crossAxisSize] / 2, zn = ({
1637
1637
  axis: e,
1638
1638
  moveRelativeTo: t,
1639
1639
  isMoving: n
1640
- }) => ae(e.line, t.marginBox[e.end] + Hr(e, n), en(e, t.marginBox, n)), jn = ({
1640
+ }) => ae(e.line, t.marginBox[e.end] + zr(e, n), en(e, t.marginBox, n)), jn = ({
1641
1641
  axis: e,
1642
1642
  moveRelativeTo: t,
1643
1643
  isMoving: n
1644
- }) => ae(e.line, t.marginBox[e.start] - xs(e, n), en(e, t.marginBox, n)), Is = ({
1644
+ }) => ae(e.line, t.marginBox[e.start] - Is(e, n), en(e, t.marginBox, n)), Os = ({
1645
1645
  axis: e,
1646
1646
  moveInto: t,
1647
1647
  isMoving: n
1648
- }) => ae(e.line, t.contentBox[e.start] + Hr(e, n), en(e, t.contentBox, n));
1649
- var Os = ({
1648
+ }) => ae(e.line, t.contentBox[e.start] + zr(e, n), en(e, t.contentBox, n));
1649
+ var Cs = ({
1650
1650
  impact: e,
1651
1651
  draggable: t,
1652
1652
  draggables: n,
@@ -1655,7 +1655,7 @@ var Os = ({
1655
1655
  }) => {
1656
1656
  const i = le(r.descriptor.id, n), s = t.page, c = r.axis;
1657
1657
  if (!i.length)
1658
- return Is({
1658
+ return Os({
1659
1659
  axis: c,
1660
1660
  moveInto: r.page,
1661
1661
  isMoving: s
@@ -1707,13 +1707,13 @@ const ws = ({
1707
1707
  afterCritical: o
1708
1708
  }) => {
1709
1709
  const i = t.page.borderBox.center, s = e.at;
1710
- return !n || !s ? i : s.type === "REORDER" ? Os({
1710
+ return !n || !s ? i : s.type === "REORDER" ? Cs({
1711
1711
  impact: e,
1712
1712
  draggable: t,
1713
1713
  draggables: r,
1714
1714
  droppable: n,
1715
1715
  afterCritical: o
1716
- }) : Ns({
1716
+ }) : xs({
1717
1717
  impact: e,
1718
1718
  draggables: r,
1719
1719
  afterCritical: o
@@ -1722,7 +1722,7 @@ const ws = ({
1722
1722
  var rt = (e) => {
1723
1723
  const t = ws(e), n = e.droppable;
1724
1724
  return n ? Mt(n, t) : t;
1725
- }, zr = (e, t) => {
1725
+ }, jr = (e, t) => {
1726
1726
  const n = j(t, e.scroll.initial), r = me(n);
1727
1727
  return {
1728
1728
  frame: Z({
@@ -1745,7 +1745,7 @@ var rt = (e) => {
1745
1745
  function qn(e, t) {
1746
1746
  return e.map((n) => t[n]);
1747
1747
  }
1748
- function Cs(e, t) {
1748
+ function Ss(e, t) {
1749
1749
  for (let n = 0; n < t.length; n++) {
1750
1750
  const r = t[n].visible[e];
1751
1751
  if (r)
@@ -1753,14 +1753,14 @@ function Cs(e, t) {
1753
1753
  }
1754
1754
  return null;
1755
1755
  }
1756
- var Ss = ({
1756
+ var As = ({
1757
1757
  impact: e,
1758
1758
  viewport: t,
1759
1759
  destination: n,
1760
1760
  draggables: r,
1761
1761
  maxScrollChange: o
1762
1762
  }) => {
1763
- const i = zr(t, F(t.scroll.current, o)), s = n.frame ? Kt(n, F(n.frame.scroll.current, o)) : n, c = e.displaced, a = Se({
1763
+ const i = jr(t, F(t.scroll.current, o)), s = n.frame ? Kt(n, F(n.frame.scroll.current, o)) : n, c = e.displaced, a = Se({
1764
1764
  afterDragging: qn(c.all, r),
1765
1765
  destination: n,
1766
1766
  displacedBy: e.displacedBy,
@@ -1776,7 +1776,7 @@ var Ss = ({
1776
1776
  forceShouldAnimate: !1
1777
1777
  }), p = {}, l = {}, u = [c, a, d];
1778
1778
  return c.all.forEach((m) => {
1779
- const b = Cs(m, u);
1779
+ const b = Ss(m, u);
1780
1780
  if (b) {
1781
1781
  l[m] = b;
1782
1782
  return;
@@ -1790,14 +1790,14 @@ var Ss = ({
1790
1790
  visible: l
1791
1791
  }
1792
1792
  };
1793
- }, As = (e, t) => F(e.scroll.diff.displacement, t), tn = ({
1793
+ }, _s = (e, t) => F(e.scroll.diff.displacement, t), tn = ({
1794
1794
  pageBorderBoxCenter: e,
1795
1795
  draggable: t,
1796
1796
  viewport: n
1797
1797
  }) => {
1798
- const r = As(n, e), o = j(r, t.page.borderBox.center);
1798
+ const r = _s(n, e), o = j(r, t.page.borderBox.center);
1799
1799
  return F(t.client.borderBox.center, o);
1800
- }, jr = ({
1800
+ }, qr = ({
1801
1801
  draggable: e,
1802
1802
  destination: t,
1803
1803
  newPageBorderBoxCenter: n,
@@ -1811,8 +1811,8 @@ var Ss = ({
1811
1811
  withDroppableDisplacement: o,
1812
1812
  viewport: r
1813
1813
  };
1814
- return i ? gs(a) : Ur(a);
1815
- }, _s = ({
1814
+ return i ? ms(a) : Hr(a);
1815
+ }, Ps = ({
1816
1816
  isMovingForward: e,
1817
1817
  draggable: t,
1818
1818
  destination: n,
@@ -1825,13 +1825,13 @@ var Ss = ({
1825
1825
  }) => {
1826
1826
  if (!n.isEnabled)
1827
1827
  return null;
1828
- const d = le(n.descriptor.id, r), p = he(t, n), l = ss({
1828
+ const d = le(n.descriptor.id, r), p = he(t, n), l = cs({
1829
1829
  isMovingForward: e,
1830
1830
  draggable: t,
1831
1831
  destination: n,
1832
1832
  insideDestination: d,
1833
1833
  previousImpact: o
1834
- }) || Es({
1834
+ }) || Ds({
1835
1835
  isMovingForward: e,
1836
1836
  isInHomeList: p,
1837
1837
  draggable: t,
@@ -1851,7 +1851,7 @@ var Ss = ({
1851
1851
  draggables: r,
1852
1852
  afterCritical: a
1853
1853
  });
1854
- if (jr({
1854
+ if (qr({
1855
1855
  draggable: t,
1856
1856
  destination: n,
1857
1857
  newPageBorderBoxCenter: u,
@@ -1868,7 +1868,7 @@ var Ss = ({
1868
1868
  impact: l,
1869
1869
  scrollJumpRequest: null
1870
1870
  };
1871
- const m = j(u, s), b = Ss({
1871
+ const m = j(u, s), b = As({
1872
1872
  impact: l,
1873
1873
  viewport: i,
1874
1874
  destination: n,
@@ -1885,7 +1885,7 @@ const k = (e) => {
1885
1885
  const t = e.subject.active;
1886
1886
  return t || (process.env.NODE_ENV !== "production" ? f(!1, "Cannot get clipped area from droppable") : f()), t;
1887
1887
  };
1888
- var Ps = ({
1888
+ var Rs = ({
1889
1889
  isMovingForward: e,
1890
1890
  pageBorderBoxCenter: t,
1891
1891
  source: n,
@@ -1895,7 +1895,7 @@ var Ps = ({
1895
1895
  const i = n.subject.active;
1896
1896
  if (!i)
1897
1897
  return null;
1898
- const s = n.axis, c = J(i[s.start], i[s.end]), a = et(r).filter((p) => p !== n).filter((p) => p.isEnabled).filter((p) => !!p.subject.active).filter((p) => kr(o.frame)(k(p))).filter((p) => {
1898
+ const s = n.axis, c = J(i[s.start], i[s.end]), a = et(r).filter((p) => p !== n).filter((p) => p.isEnabled).filter((p) => !!p.subject.active).filter((p) => Wr(o.frame)(k(p))).filter((p) => {
1899
1899
  const l = k(p);
1900
1900
  return e ? i[s.crossAxisEnd] < l[s.crossAxisEnd] : l[s.crossAxisStart] < i[s.crossAxisStart];
1901
1901
  }).filter((p) => {
@@ -1918,23 +1918,23 @@ var Ps = ({
1918
1918
  const Yn = (e, t) => {
1919
1919
  const n = e.page.borderBox.center;
1920
1920
  return ie(e.descriptor.id, t) ? j(n, t.displacedBy.point) : n;
1921
- }, Rs = (e, t) => {
1921
+ }, Ts = (e, t) => {
1922
1922
  const n = e.page.borderBox;
1923
1923
  return ie(e.descriptor.id, t) ? Te(n, me(t.displacedBy.point)) : n;
1924
1924
  };
1925
- var Ts = ({
1925
+ var Bs = ({
1926
1926
  pageBorderBoxCenter: e,
1927
1927
  viewport: t,
1928
1928
  destination: n,
1929
1929
  insideDestination: r,
1930
1930
  afterCritical: o
1931
- }) => r.filter((s) => Ur({
1932
- target: Rs(s, o),
1931
+ }) => r.filter((s) => Hr({
1932
+ target: Ts(s, o),
1933
1933
  destination: n,
1934
1934
  viewport: t.frame,
1935
1935
  withDroppableDisplacement: !0
1936
1936
  })).sort((s, c) => {
1937
- const a = we(e, Mt(n, Yn(s, o))), d = we(e, Mt(n, Yn(c, o)));
1937
+ const a = Ce(e, Mt(n, Yn(s, o))), d = Ce(e, Mt(n, Yn(c, o)));
1938
1938
  return a < d ? -1 : d < a ? 1 : s.descriptor.index - c.descriptor.index;
1939
1939
  })[0] || null, Be = $(function(t, n) {
1940
1940
  const r = n[t.line];
@@ -1943,22 +1943,22 @@ var Ts = ({
1943
1943
  point: ae(t.line, r)
1944
1944
  };
1945
1945
  });
1946
- const Bs = (e, t, n) => {
1946
+ const Vs = (e, t, n) => {
1947
1947
  const r = e.axis;
1948
1948
  if (e.descriptor.mode === "virtual")
1949
1949
  return ae(r.line, t[r.line]);
1950
1950
  const o = e.subject.page.contentBox[r.size], a = le(e.descriptor.id, n).reduce((d, p) => d + p.client.marginBox[r.size], 0) + t[r.line] - o;
1951
1951
  return a <= 0 ? null : ae(r.line, a);
1952
- }, qr = (e, t) => ({
1952
+ }, Yr = (e, t) => ({
1953
1953
  ...e,
1954
1954
  scroll: {
1955
1955
  ...e.scroll,
1956
1956
  max: t
1957
1957
  }
1958
- }), Yr = (e, t, n) => {
1958
+ }), Xr = (e, t, n) => {
1959
1959
  const r = e.frame;
1960
1960
  he(t, e) && (process.env.NODE_ENV !== "production" ? f(!1, "Should not add placeholder space to home list") : f()), e.subject.withPlaceholder && (process.env.NODE_ENV !== "production" ? f(!1, "Cannot add placeholder size to a subject when it already has one") : f());
1961
- const o = Be(e.axis, t.displaceBy).point, i = Bs(e, o, n), s = {
1961
+ const o = Be(e.axis, t.displaceBy).point, i = Vs(e, o, n), s = {
1962
1962
  placeholderSize: o,
1963
1963
  increasedBy: i,
1964
1964
  oldFrameMaxScroll: e.frame ? e.frame.scroll.max : null
@@ -1975,7 +1975,7 @@ const Bs = (e, t, n) => {
1975
1975
  subject: p
1976
1976
  };
1977
1977
  }
1978
- const c = i ? F(r.scroll.max, i) : r.scroll.max, a = qr(r, c), d = pe({
1978
+ const c = i ? F(r.scroll.max, i) : r.scroll.max, a = Yr(r, c), d = pe({
1979
1979
  page: e.subject.page,
1980
1980
  withPlaceholder: s,
1981
1981
  axis: e.axis,
@@ -1986,7 +1986,7 @@ const Bs = (e, t, n) => {
1986
1986
  subject: d,
1987
1987
  frame: a
1988
1988
  };
1989
- }, Vs = (e) => {
1989
+ }, Ls = (e) => {
1990
1990
  const t = e.subject.withPlaceholder;
1991
1991
  t || (process.env.NODE_ENV !== "production" ? f(!1, "Cannot remove placeholder form subject when there was none") : f());
1992
1992
  const n = e.frame;
@@ -2004,7 +2004,7 @@ const Bs = (e, t, n) => {
2004
2004
  }
2005
2005
  const r = t.oldFrameMaxScroll;
2006
2006
  r || (process.env.NODE_ENV !== "production" ? f(!1, "Expected droppable with frame to have old max frame scroll when removing placeholder") : f());
2007
- const o = qr(n, r), i = pe({
2007
+ const o = Yr(n, r), i = pe({
2008
2008
  page: e.subject.page,
2009
2009
  axis: e.axis,
2010
2010
  frame: o,
@@ -2016,7 +2016,7 @@ const Bs = (e, t, n) => {
2016
2016
  frame: o
2017
2017
  };
2018
2018
  };
2019
- var Ls = ({
2019
+ var Ms = ({
2020
2020
  previousPageBorderBoxCenter: e,
2021
2021
  moveRelativeTo: t,
2022
2022
  insideDestination: n,
@@ -2030,8 +2030,8 @@ var Ls = ({
2030
2030
  if (n.length)
2031
2031
  return null;
2032
2032
  const l = {
2033
- displaced: Ce,
2034
- displacedBy: Fr,
2033
+ displaced: we,
2034
+ displacedBy: kr,
2035
2035
  at: {
2036
2036
  type: "REORDER",
2037
2037
  destination: {
@@ -2045,8 +2045,8 @@ var Ls = ({
2045
2045
  droppable: i,
2046
2046
  draggables: o,
2047
2047
  afterCritical: c
2048
- }), g = he(r, i) ? i : Yr(i, r, o);
2049
- return jr({
2048
+ }), g = he(r, i) ? i : Xr(i, r, o);
2049
+ return qr({
2050
2050
  draggable: r,
2051
2051
  destination: g,
2052
2052
  newPageBorderBoxCenter: u,
@@ -2065,10 +2065,10 @@ var Ls = ({
2065
2065
  destination: i,
2066
2066
  viewport: s,
2067
2067
  displacedBy: p,
2068
- last: Ce,
2068
+ last: we,
2069
2069
  index: d
2070
2070
  });
2071
- }, Ms = ({
2071
+ }, $s = ({
2072
2072
  isMovingForward: e,
2073
2073
  previousPageBorderBoxCenter: t,
2074
2074
  draggable: n,
@@ -2078,7 +2078,7 @@ var Ls = ({
2078
2078
  viewport: s,
2079
2079
  afterCritical: c
2080
2080
  }) => {
2081
- const a = Ps({
2081
+ const a = Rs({
2082
2082
  isMovingForward: e,
2083
2083
  pageBorderBoxCenter: t,
2084
2084
  source: r,
@@ -2087,13 +2087,13 @@ var Ls = ({
2087
2087
  });
2088
2088
  if (!a)
2089
2089
  return null;
2090
- const d = le(a.descriptor.id, o), p = Ts({
2090
+ const d = le(a.descriptor.id, o), p = Bs({
2091
2091
  pageBorderBoxCenter: t,
2092
2092
  viewport: s,
2093
2093
  destination: a,
2094
2094
  insideDestination: d,
2095
2095
  afterCritical: c
2096
- }), l = Ls({
2096
+ }), l = Ms({
2097
2097
  previousPageBorderBoxCenter: t,
2098
2098
  destination: a,
2099
2099
  draggable: n,
@@ -2125,22 +2125,22 @@ var Ls = ({
2125
2125
  const t = e.at;
2126
2126
  return t ? t.type === "REORDER" ? t.destination.droppableId : t.combine.droppableId : null;
2127
2127
  };
2128
- const $s = (e, t) => {
2128
+ const Gs = (e, t) => {
2129
2129
  const n = q(e);
2130
2130
  return n ? t[n] : null;
2131
2131
  };
2132
- var Gs = ({
2132
+ var Fs = ({
2133
2133
  state: e,
2134
2134
  type: t
2135
2135
  }) => {
2136
- const n = $s(e.impact, e.dimensions.droppables), r = !!n, o = e.dimensions.droppables[e.critical.droppable.id], i = n || o, s = i.axis.direction, c = s === "vertical" && (t === "MOVE_UP" || t === "MOVE_DOWN") || s === "horizontal" && (t === "MOVE_LEFT" || t === "MOVE_RIGHT");
2136
+ const n = Gs(e.impact, e.dimensions.droppables), r = !!n, o = e.dimensions.droppables[e.critical.droppable.id], i = n || o, s = i.axis.direction, c = s === "vertical" && (t === "MOVE_UP" || t === "MOVE_DOWN") || s === "horizontal" && (t === "MOVE_LEFT" || t === "MOVE_RIGHT");
2137
2137
  if (c && !r)
2138
2138
  return null;
2139
2139
  const a = t === "MOVE_DOWN" || t === "MOVE_RIGHT", d = e.dimensions.draggables[e.critical.draggable.id], p = e.current.page.borderBoxCenter, {
2140
2140
  draggables: l,
2141
2141
  droppables: u
2142
2142
  } = e.dimensions;
2143
- return c ? _s({
2143
+ return c ? Ps({
2144
2144
  isMovingForward: a,
2145
2145
  previousPageBorderBoxCenter: p,
2146
2146
  draggable: d,
@@ -2150,7 +2150,7 @@ var Gs = ({
2150
2150
  previousClientSelection: e.current.client.selection,
2151
2151
  previousImpact: e.impact,
2152
2152
  afterCritical: e.afterCritical
2153
- }) : Ms({
2153
+ }) : $s({
2154
2154
  isMovingForward: a,
2155
2155
  previousPageBorderBoxCenter: p,
2156
2156
  draggable: d,
@@ -2164,16 +2164,16 @@ var Gs = ({
2164
2164
  function ce(e) {
2165
2165
  return e.phase === "DRAGGING" || e.phase === "COLLECTING";
2166
2166
  }
2167
- function Xr(e) {
2167
+ function Kr(e) {
2168
2168
  const t = J(e.top, e.bottom), n = J(e.left, e.right);
2169
2169
  return function(o) {
2170
2170
  return t(o.y) && n(o.x);
2171
2171
  };
2172
2172
  }
2173
- function Fs(e, t) {
2173
+ function ks(e, t) {
2174
2174
  return e.left < t.right && e.right > t.left && e.top < t.bottom && e.bottom > t.top;
2175
2175
  }
2176
- function ks({
2176
+ function Ws({
2177
2177
  pageBorderBox: e,
2178
2178
  draggable: t,
2179
2179
  candidates: n
@@ -2182,12 +2182,12 @@ function ks({
2182
2182
  const s = i.axis, c = ae(i.axis.line, e.center[s.line], i.page.borderBox.center[s.crossAxisLine]);
2183
2183
  return {
2184
2184
  id: i.descriptor.id,
2185
- distance: we(r, c)
2185
+ distance: Ce(r, c)
2186
2186
  };
2187
2187
  }).sort((i, s) => s.distance - i.distance);
2188
2188
  return o[0] ? o[0].id : null;
2189
2189
  }
2190
- function Ws({
2190
+ function Us({
2191
2191
  pageBorderBox: e,
2192
2192
  draggable: t,
2193
2193
  droppables: n
@@ -2196,38 +2196,38 @@ function Ws({
2196
2196
  if (!o.isEnabled)
2197
2197
  return !1;
2198
2198
  const i = o.subject.active;
2199
- if (!i || !Fs(e, i))
2199
+ if (!i || !ks(e, i))
2200
2200
  return !1;
2201
- if (Xr(i)(e.center))
2201
+ if (Kr(i)(e.center))
2202
2202
  return !0;
2203
2203
  const s = o.axis, c = i.center[s.crossAxisLine], a = e[s.crossAxisStart], d = e[s.crossAxisEnd], p = J(i[s.crossAxisStart], i[s.crossAxisEnd]), l = p(a), u = p(d);
2204
2204
  return !l && !u ? !0 : l ? a < c : d > c;
2205
2205
  });
2206
- return r.length ? r.length === 1 ? r[0].descriptor.id : ks({
2206
+ return r.length ? r.length === 1 ? r[0].descriptor.id : Ws({
2207
2207
  pageBorderBox: e,
2208
2208
  draggable: t,
2209
2209
  candidates: r
2210
2210
  }) : null;
2211
2211
  }
2212
- const Kr = (e, t) => Z(Te(e, t));
2213
- var Us = (e, t) => {
2212
+ const Jr = (e, t) => Z(Te(e, t));
2213
+ var Hs = (e, t) => {
2214
2214
  const n = e.frame;
2215
- return n ? Kr(t, n.scroll.diff.value) : t;
2215
+ return n ? Jr(t, n.scroll.diff.value) : t;
2216
2216
  };
2217
- function Jr({
2217
+ function Zr({
2218
2218
  displaced: e,
2219
2219
  id: t
2220
2220
  }) {
2221
2221
  return !!(e.visible[t] || e.invisible[t]);
2222
2222
  }
2223
- function Hs({
2223
+ function zs({
2224
2224
  draggable: e,
2225
2225
  closest: t,
2226
2226
  inHomeList: n
2227
2227
  }) {
2228
2228
  return t ? n && t.descriptor.index > e.descriptor.index ? t.descriptor.index - 1 : t.descriptor.index : null;
2229
2229
  }
2230
- var zs = ({
2230
+ var js = ({
2231
2231
  pageBorderBoxWithDroppableScroll: e,
2232
2232
  draggable: t,
2233
2233
  destination: n,
@@ -2237,12 +2237,12 @@ var zs = ({
2237
2237
  afterCritical: s
2238
2238
  }) => {
2239
2239
  const c = n.axis, a = Be(n.axis, t.displaceBy), d = a.value, p = e[c.start], l = e[c.end], g = nt(t, r).find((b) => {
2240
- const h = b.descriptor.id, y = b.page.borderBox.center[c.line], v = ie(h, s), I = Jr({
2240
+ const h = b.descriptor.id, y = b.page.borderBox.center[c.line], v = ie(h, s), I = Zr({
2241
2241
  displaced: o,
2242
2242
  id: h
2243
2243
  });
2244
2244
  return v ? I ? l <= y : p < y - d : I ? l <= y + d : p < y;
2245
- }) || null, m = Hs({
2245
+ }) || null, m = zs({
2246
2246
  draggable: t,
2247
2247
  closest: g,
2248
2248
  inHomeList: he(t, n)
@@ -2257,8 +2257,8 @@ var zs = ({
2257
2257
  index: m
2258
2258
  });
2259
2259
  };
2260
- const js = 4;
2261
- var qs = ({
2260
+ const qs = 4;
2261
+ var Ys = ({
2262
2262
  draggable: e,
2263
2263
  pageBorderBoxWithDroppableScroll: t,
2264
2264
  previousImpact: n,
@@ -2269,7 +2269,7 @@ var qs = ({
2269
2269
  if (!r.isCombineEnabled)
2270
2270
  return null;
2271
2271
  const s = r.axis, c = Be(r.axis, e.displaceBy), a = c.value, d = t[s.start], p = t[s.end], u = nt(e, o).find((m) => {
2272
- const b = m.descriptor.id, h = m.page.borderBox, v = h[s.size] / js, I = ie(b, i), N = Jr({
2272
+ const b = m.descriptor.id, h = m.page.borderBox, v = h[s.size] / qs, I = ie(b, i), N = Zr({
2273
2273
  displaced: n.displaced,
2274
2274
  id: b
2275
2275
  });
@@ -2286,7 +2286,7 @@ var qs = ({
2286
2286
  }
2287
2287
  }
2288
2288
  } : null;
2289
- }, Zr = ({
2289
+ }, Qr = ({
2290
2290
  pageOffset: e,
2291
2291
  draggable: t,
2292
2292
  draggables: n,
@@ -2295,22 +2295,22 @@ var qs = ({
2295
2295
  viewport: i,
2296
2296
  afterCritical: s
2297
2297
  }) => {
2298
- const c = Kr(t.page.borderBox, e), a = Ws({
2298
+ const c = Jr(t.page.borderBox, e), a = Us({
2299
2299
  pageBorderBox: c,
2300
2300
  draggable: t,
2301
2301
  droppables: r
2302
2302
  });
2303
2303
  if (!a)
2304
- return cs;
2305
- const d = r[a], p = le(d.descriptor.id, n), l = Us(d, c);
2306
- return qs({
2304
+ return as;
2305
+ const d = r[a], p = le(d.descriptor.id, n), l = Hs(d, c);
2306
+ return Ys({
2307
2307
  pageBorderBoxWithDroppableScroll: l,
2308
2308
  draggable: t,
2309
2309
  previousImpact: o,
2310
2310
  destination: d,
2311
2311
  insideDestination: p,
2312
2312
  afterCritical: s
2313
- }) || zs({
2313
+ }) || js({
2314
2314
  pageBorderBoxWithDroppableScroll: l,
2315
2315
  draggable: t,
2316
2316
  destination: d,
@@ -2323,7 +2323,7 @@ var qs = ({
2323
2323
  ...e,
2324
2324
  [t.descriptor.id]: t
2325
2325
  });
2326
- const Ys = ({
2326
+ const Xs = ({
2327
2327
  previousImpact: e,
2328
2328
  impact: t,
2329
2329
  droppables: n
@@ -2334,17 +2334,17 @@ const Ys = ({
2334
2334
  const i = n[r];
2335
2335
  if (!i.subject.withPlaceholder)
2336
2336
  return n;
2337
- const s = Vs(i);
2337
+ const s = Ls(i);
2338
2338
  return nn(n, s);
2339
2339
  };
2340
- var Xs = ({
2340
+ var Ks = ({
2341
2341
  draggable: e,
2342
2342
  draggables: t,
2343
2343
  droppables: n,
2344
2344
  previousImpact: r,
2345
2345
  impact: o
2346
2346
  }) => {
2347
- const i = Ys({
2347
+ const i = Xs({
2348
2348
  previousImpact: r,
2349
2349
  impact: o,
2350
2350
  droppables: n
@@ -2354,7 +2354,7 @@ var Xs = ({
2354
2354
  const c = n[s];
2355
2355
  if (he(e, c) || c.subject.withPlaceholder)
2356
2356
  return i;
2357
- const a = Yr(c, e, t);
2357
+ const a = Xr(c, e, t);
2358
2358
  return nn(i, a);
2359
2359
  }, Ne = ({
2360
2360
  state: e,
@@ -2383,7 +2383,7 @@ var Xs = ({
2383
2383
  viewport: s,
2384
2384
  current: u
2385
2385
  };
2386
- const g = c.draggables[e.critical.draggable.id], m = o || Zr({
2386
+ const g = c.draggables[e.critical.draggable.id], m = o || Qr({
2387
2387
  pageOffset: l.offset,
2388
2388
  draggable: g,
2389
2389
  draggables: c.draggables,
@@ -2391,7 +2391,7 @@ var Xs = ({
2391
2391
  previousImpact: e.impact,
2392
2392
  viewport: s,
2393
2393
  afterCritical: e.afterCritical
2394
- }), b = Xs({
2394
+ }), b = Ks({
2395
2395
  draggable: g,
2396
2396
  impact: m,
2397
2397
  previousImpact: e.impact,
@@ -2411,17 +2411,17 @@ var Xs = ({
2411
2411
  forceShouldAnimate: i ? !1 : null
2412
2412
  };
2413
2413
  };
2414
- function Ks(e, t) {
2414
+ function Js(e, t) {
2415
2415
  return e.map((n) => t[n]);
2416
2416
  }
2417
- var Qr = ({
2417
+ var eo = ({
2418
2418
  impact: e,
2419
2419
  viewport: t,
2420
2420
  draggables: n,
2421
2421
  destination: r,
2422
2422
  forceShouldAnimate: o
2423
2423
  }) => {
2424
- const i = e.displaced, s = Ks(i.all, n), c = Se({
2424
+ const i = e.displaced, s = Js(i.all, n), c = Se({
2425
2425
  afterDragging: s,
2426
2426
  destination: r,
2427
2427
  displacedBy: e.displacedBy,
@@ -2433,7 +2433,7 @@ var Qr = ({
2433
2433
  ...e,
2434
2434
  displaced: c
2435
2435
  };
2436
- }, eo = ({
2436
+ }, to = ({
2437
2437
  impact: e,
2438
2438
  draggable: t,
2439
2439
  droppable: n,
@@ -2453,7 +2453,7 @@ var Qr = ({
2453
2453
  draggable: t,
2454
2454
  viewport: o
2455
2455
  });
2456
- }, to = ({
2456
+ }, no = ({
2457
2457
  state: e,
2458
2458
  dimensions: t,
2459
2459
  viewport: n
@@ -2464,12 +2464,12 @@ var Qr = ({
2464
2464
  droppables: c
2465
2465
  } = i, a = s[e.critical.draggable.id], d = q(r);
2466
2466
  d || (process.env.NODE_ENV !== "production" ? f(!1, "Must be over a destination in SNAP movement mode") : f());
2467
- const p = c[d], l = Qr({
2467
+ const p = c[d], l = eo({
2468
2468
  impact: r,
2469
2469
  viewport: o,
2470
2470
  destination: p,
2471
2471
  draggables: s
2472
- }), u = eo({
2472
+ }), u = to({
2473
2473
  impact: l,
2474
2474
  draggable: a,
2475
2475
  droppable: p,
@@ -2484,10 +2484,10 @@ var Qr = ({
2484
2484
  dimensions: i,
2485
2485
  viewport: o
2486
2486
  });
2487
- }, Js = (e) => ({
2487
+ }, Zs = (e) => ({
2488
2488
  index: e.index,
2489
2489
  droppableId: e.droppableId
2490
- }), no = ({
2490
+ }), ro = ({
2491
2491
  draggable: e,
2492
2492
  home: t,
2493
2493
  draggables: n,
@@ -2513,12 +2513,12 @@ var Qr = ({
2513
2513
  displacedBy: o,
2514
2514
  at: {
2515
2515
  type: "REORDER",
2516
- destination: Js(e.descriptor)
2516
+ destination: Zs(e.descriptor)
2517
2517
  }
2518
2518
  },
2519
2519
  afterCritical: d
2520
2520
  };
2521
- }, Zs = (e, t) => ({
2521
+ }, Qs = (e, t) => ({
2522
2522
  draggables: e.draggables,
2523
2523
  droppables: nn(e.droppables, t)
2524
2524
  });
@@ -2527,7 +2527,7 @@ const Ve = (e) => {
2527
2527
  }, Le = (e) => {
2528
2528
  process.env.NODE_ENV;
2529
2529
  };
2530
- var Qs = ({
2530
+ var ec = ({
2531
2531
  draggable: e,
2532
2532
  offset: t,
2533
2533
  initialWindowScroll: n
@@ -2542,24 +2542,24 @@ var Qs = ({
2542
2542
  client: r,
2543
2543
  page: o
2544
2544
  };
2545
- }, ec = (e) => {
2545
+ }, tc = (e) => {
2546
2546
  const t = e.frame;
2547
2547
  return t || (process.env.NODE_ENV !== "production" ? f(!1, "Expected Droppable to have a frame") : f()), t;
2548
- }, tc = ({
2548
+ }, nc = ({
2549
2549
  additions: e,
2550
2550
  updatedDroppables: t,
2551
2551
  viewport: n
2552
2552
  }) => {
2553
2553
  const r = n.scroll.diff.value;
2554
2554
  return e.map((o) => {
2555
- const i = o.descriptor.droppableId, s = t[i], a = ec(s).scroll.diff.value, d = F(r, a);
2556
- return Qs({
2555
+ const i = o.descriptor.droppableId, s = t[i], a = tc(s).scroll.diff.value, d = F(r, a);
2556
+ return ec({
2557
2557
  draggable: o,
2558
2558
  offset: d,
2559
2559
  initialWindowScroll: n.scroll.initial
2560
2560
  });
2561
2561
  });
2562
- }, nc = ({
2562
+ }, rc = ({
2563
2563
  state: e,
2564
2564
  published: t
2565
2565
  }) => {
@@ -2569,8 +2569,8 @@ var Qs = ({
2569
2569
  return Kt(v, y.scroll);
2570
2570
  }), r = {
2571
2571
  ...e.dimensions.droppables,
2572
- ...$r(n)
2573
- }, o = Gr(tc({
2572
+ ...Gr(n)
2573
+ }, o = Fr(nc({
2574
2574
  additions: t.additions,
2575
2575
  updatedDroppables: r,
2576
2576
  viewport: e.viewport
@@ -2587,12 +2587,12 @@ var Qs = ({
2587
2587
  }, c = q(e.impact), a = c ? s.droppables[c] : null, d = s.draggables[e.critical.draggable.id], p = s.droppables[e.critical.droppable.id], {
2588
2588
  impact: l,
2589
2589
  afterCritical: u
2590
- } = no({
2590
+ } = ro({
2591
2591
  draggable: d,
2592
2592
  home: p,
2593
2593
  draggables: i,
2594
2594
  viewport: e.viewport
2595
- }), g = a && a.isCombineEnabled ? e.impact : l, m = Zr({
2595
+ }), g = a && a.isCombineEnabled ? e.impact : l, m = Qr({
2596
2596
  pageOffset: e.current.page.offset,
2597
2597
  draggable: s.draggables[e.critical.draggable.id],
2598
2598
  draggables: s.draggables,
@@ -2619,11 +2619,11 @@ var Qs = ({
2619
2619
  };
2620
2620
  };
2621
2621
  const $t = (e) => e.movementMode === "SNAP", Et = (e, t, n) => {
2622
- const r = Zs(e.dimensions, t);
2622
+ const r = Qs(e.dimensions, t);
2623
2623
  return !$t(e) || n ? Ne({
2624
2624
  state: e,
2625
2625
  dimensions: r
2626
- }) : to({
2626
+ }) : no({
2627
2627
  state: e,
2628
2628
  dimensions: r
2629
2629
  });
@@ -2639,7 +2639,7 @@ const Xn = {
2639
2639
  completed: null,
2640
2640
  shouldFlush: !1
2641
2641
  };
2642
- var rc = (e = Xn, t) => {
2642
+ var oc = (e = Xn, t) => {
2643
2643
  if (t.type === "FLUSH")
2644
2644
  return {
2645
2645
  ...Xn,
@@ -2667,7 +2667,7 @@ var rc = (e = Xn, t) => {
2667
2667
  }, l = et(i.droppables).every((b) => !b.isFixedOnPage), {
2668
2668
  impact: u,
2669
2669
  afterCritical: g
2670
- } = no({
2670
+ } = ro({
2671
2671
  draggable: c,
2672
2672
  home: a,
2673
2673
  draggables: i.draggables,
@@ -2696,7 +2696,7 @@ var rc = (e = Xn, t) => {
2696
2696
  phase: "COLLECTING"
2697
2697
  });
2698
2698
  if (t.type === "PUBLISH_WHILE_DRAGGING")
2699
- return e.phase === "COLLECTING" || e.phase === "DROP_PENDING" || (process.env.NODE_ENV !== "production" ? f(!1, `Unexpected ${t.type} received in phase ${e.phase}`) : f()), nc({
2699
+ return e.phase === "COLLECTING" || e.phase === "DROP_PENDING" || (process.env.NODE_ENV !== "production" ? f(!1, `Unexpected ${t.type} received in phase ${e.phase}`) : f()), rc({
2700
2700
  state: e,
2701
2701
  published: t.payload
2702
2702
  });
@@ -2765,8 +2765,8 @@ var rc = (e = Xn, t) => {
2765
2765
  const n = t.payload.newScroll;
2766
2766
  if (oe(e.viewport.scroll.current, n))
2767
2767
  return Dt(e);
2768
- const r = zr(e.viewport, n);
2769
- return $t(e) ? to({
2768
+ const r = jr(e.viewport, n);
2769
+ return $t(e) ? no({
2770
2770
  state: e,
2771
2771
  viewport: r
2772
2772
  }) : Ne({
@@ -2796,7 +2796,7 @@ var rc = (e = Xn, t) => {
2796
2796
  if (e.phase === "COLLECTING" || e.phase === "DROP_PENDING")
2797
2797
  return e;
2798
2798
  e.phase !== "DRAGGING" && (process.env.NODE_ENV !== "production" ? f(!1, `${t.type} received while not in DRAGGING phase`) : f());
2799
- const n = Gs({
2799
+ const n = Fs({
2800
2800
  state: e,
2801
2801
  type: t.type
2802
2802
  });
@@ -2845,71 +2845,71 @@ var rc = (e = Xn, t) => {
2845
2845
  function A(e, t) {
2846
2846
  return e instanceof Object && "type" in e && e.type === t;
2847
2847
  }
2848
- const oc = (e) => ({
2848
+ const ic = (e) => ({
2849
2849
  type: "BEFORE_INITIAL_CAPTURE",
2850
2850
  payload: e
2851
- }), ic = (e) => ({
2851
+ }), sc = (e) => ({
2852
2852
  type: "LIFT",
2853
2853
  payload: e
2854
- }), sc = (e) => ({
2854
+ }), cc = (e) => ({
2855
2855
  type: "INITIAL_PUBLISH",
2856
2856
  payload: e
2857
- }), cc = (e) => ({
2857
+ }), ac = (e) => ({
2858
2858
  type: "PUBLISH_WHILE_DRAGGING",
2859
2859
  payload: e
2860
- }), ac = () => ({
2860
+ }), lc = () => ({
2861
2861
  type: "COLLECTION_STARTING",
2862
2862
  payload: null
2863
- }), lc = (e) => ({
2863
+ }), dc = (e) => ({
2864
2864
  type: "UPDATE_DROPPABLE_SCROLL",
2865
2865
  payload: e
2866
- }), dc = (e) => ({
2866
+ }), uc = (e) => ({
2867
2867
  type: "UPDATE_DROPPABLE_IS_ENABLED",
2868
2868
  payload: e
2869
- }), uc = (e) => ({
2869
+ }), pc = (e) => ({
2870
2870
  type: "UPDATE_DROPPABLE_IS_COMBINE_ENABLED",
2871
2871
  payload: e
2872
- }), ro = (e) => ({
2872
+ }), oo = (e) => ({
2873
2873
  type: "MOVE",
2874
2874
  payload: e
2875
- }), pc = (e) => ({
2875
+ }), fc = (e) => ({
2876
2876
  type: "MOVE_BY_WINDOW_SCROLL",
2877
2877
  payload: e
2878
- }), fc = (e) => ({
2878
+ }), gc = (e) => ({
2879
2879
  type: "UPDATE_VIEWPORT_MAX_SCROLL",
2880
2880
  payload: e
2881
- }), gc = () => ({
2881
+ }), mc = () => ({
2882
2882
  type: "MOVE_UP",
2883
2883
  payload: null
2884
- }), mc = () => ({
2884
+ }), hc = () => ({
2885
2885
  type: "MOVE_DOWN",
2886
2886
  payload: null
2887
- }), hc = () => ({
2887
+ }), bc = () => ({
2888
2888
  type: "MOVE_RIGHT",
2889
2889
  payload: null
2890
- }), bc = () => ({
2890
+ }), vc = () => ({
2891
2891
  type: "MOVE_LEFT",
2892
2892
  payload: null
2893
2893
  }), rn = () => ({
2894
2894
  type: "FLUSH",
2895
2895
  payload: null
2896
- }), vc = (e) => ({
2896
+ }), yc = (e) => ({
2897
2897
  type: "DROP_ANIMATE",
2898
2898
  payload: e
2899
2899
  }), on = (e) => ({
2900
2900
  type: "DROP_COMPLETE",
2901
2901
  payload: e
2902
- }), oo = (e) => ({
2902
+ }), io = (e) => ({
2903
2903
  type: "DROP",
2904
2904
  payload: e
2905
- }), yc = (e) => ({
2905
+ }), Ec = (e) => ({
2906
2906
  type: "DROP_PENDING",
2907
2907
  payload: e
2908
- }), io = () => ({
2908
+ }), so = () => ({
2909
2909
  type: "DROP_ANIMATION_FINISHED",
2910
2910
  payload: null
2911
2911
  });
2912
- function Ec(e) {
2912
+ function Dc(e) {
2913
2913
  if (e.length <= 1)
2914
2914
  return;
2915
2915
  const t = e.map((o) => o.descriptor.index), n = {};
@@ -2928,13 +2928,13 @@ function Ec(e) {
2928
2928
  ${r}
2929
2929
  `);
2930
2930
  }
2931
- function Dc(e, t) {
2931
+ function Nc(e, t) {
2932
2932
  if (process.env.NODE_ENV !== "production") {
2933
2933
  const n = le(e.droppable.id, t.draggables);
2934
- Ec(n);
2934
+ Dc(n);
2935
2935
  }
2936
2936
  }
2937
- var Nc = (e) => ({
2937
+ var xc = (e) => ({
2938
2938
  getState: t,
2939
2939
  dispatch: n
2940
2940
  }) => (r) => (o) => {
@@ -2949,7 +2949,7 @@ var Nc = (e) => ({
2949
2949
  } = o.payload, a = t();
2950
2950
  a.phase === "DROP_ANIMATING" && n(on({
2951
2951
  completed: a.completed
2952
- })), t().phase !== "IDLE" && (process.env.NODE_ENV !== "production" ? f(!1, "Unexpected phase to start a drag") : f()), n(rn()), n(oc({
2952
+ })), t().phase !== "IDLE" && (process.env.NODE_ENV !== "production" ? f(!1, "Unexpected phase to start a drag") : f()), n(rn()), n(ic({
2953
2953
  draggableId: i,
2954
2954
  movementMode: c
2955
2955
  }));
@@ -2963,14 +2963,14 @@ var Nc = (e) => ({
2963
2963
  dimensions: u,
2964
2964
  viewport: g
2965
2965
  } = e.startPublishing(p);
2966
- Dc(l, u), n(sc({
2966
+ Nc(l, u), n(cc({
2967
2967
  critical: l,
2968
2968
  dimensions: u,
2969
2969
  clientSelection: s,
2970
2970
  movementMode: c,
2971
2971
  viewport: g
2972
2972
  }));
2973
- }, xc = (e) => () => (t) => (n) => {
2973
+ }, Ic = (e) => () => (t) => (n) => {
2974
2974
  A(n, "INITIAL_PUBLISH") && e.dragging(), A(n, "DROP_ANIMATE") && e.dropping(n.payload.completed.result.reason), (A(n, "FLUSH") || A(n, "DROP_COMPLETE")) && e.resting(), t(n);
2975
2975
  };
2976
2976
  const sn = {
@@ -2984,11 +2984,11 @@ const sn = {
2984
2984
  scale: {
2985
2985
  drop: 0.75
2986
2986
  }
2987
- }, so = {
2987
+ }, co = {
2988
2988
  outOfTheWay: 0.2,
2989
2989
  minDropTime: 0.33,
2990
2990
  maxDropTime: 0.55
2991
- }, se = `${so.outOfTheWay}s ${sn.outOfTheWay}`, xe = {
2991
+ }, se = `${co.outOfTheWay}s ${sn.outOfTheWay}`, xe = {
2992
2992
  fluid: `opacity ${se}`,
2993
2993
  snap: `transform ${se}, opacity ${se}`,
2994
2994
  drop: (e) => {
@@ -3006,21 +3006,21 @@ const sn = {
3006
3006
  }
3007
3007
  }, {
3008
3008
  minDropTime: Ft,
3009
- maxDropTime: co
3010
- } = so, Ic = co - Ft, Jn = 1500, Oc = 0.6;
3009
+ maxDropTime: ao
3010
+ } = co, Oc = ao - Ft, Jn = 1500, Cc = 0.6;
3011
3011
  var wc = ({
3012
3012
  current: e,
3013
3013
  destination: t,
3014
3014
  reason: n
3015
3015
  }) => {
3016
- const r = we(e, t);
3016
+ const r = Ce(e, t);
3017
3017
  if (r <= 0)
3018
3018
  return Ft;
3019
3019
  if (r >= Jn)
3020
- return co;
3021
- const o = r / Jn, i = Ft + Ic * o, s = n === "CANCEL" ? i * Oc : i;
3020
+ return ao;
3021
+ const o = r / Jn, i = Ft + Oc * o, s = n === "CANCEL" ? i * Cc : i;
3022
3022
  return Number(s.toFixed(2));
3023
- }, Cc = ({
3023
+ }, Sc = ({
3024
3024
  impact: e,
3025
3025
  draggable: t,
3026
3026
  dimensions: n,
@@ -3030,7 +3030,7 @@ var wc = ({
3030
3030
  const {
3031
3031
  draggables: i,
3032
3032
  droppables: s
3033
- } = n, c = q(e), a = c ? s[c] : null, d = s[t.descriptor.droppableId], p = eo({
3033
+ } = n, c = q(e), a = c ? s[c] : null, d = s[t.descriptor.droppableId], p = to({
3034
3034
  impact: e,
3035
3035
  draggable: t,
3036
3036
  draggables: i,
@@ -3039,7 +3039,7 @@ var wc = ({
3039
3039
  viewport: r
3040
3040
  });
3041
3041
  return j(p, t.client.borderBox.center);
3042
- }, Sc = ({
3042
+ }, Ac = ({
3043
3043
  draggables: e,
3044
3044
  reason: t,
3045
3045
  lastImpact: n,
@@ -3047,7 +3047,7 @@ var wc = ({
3047
3047
  viewport: o,
3048
3048
  onLiftImpact: i
3049
3049
  }) => !n.at || t !== "DROP" ? {
3050
- impact: Qr({
3050
+ impact: eo({
3051
3051
  draggables: e,
3052
3052
  impact: i,
3053
3053
  destination: r,
@@ -3061,11 +3061,11 @@ var wc = ({
3061
3061
  } : {
3062
3062
  impact: {
3063
3063
  ...n,
3064
- displaced: Ce
3064
+ displaced: we
3065
3065
  },
3066
3066
  didDropInsideDroppable: !0
3067
3067
  };
3068
- const Ac = ({
3068
+ const _c = ({
3069
3069
  getState: e,
3070
3070
  dispatch: t
3071
3071
  }) => (n) => (r) => {
@@ -3075,7 +3075,7 @@ const Ac = ({
3075
3075
  }
3076
3076
  const o = e(), i = r.payload.reason;
3077
3077
  if (o.phase === "COLLECTING") {
3078
- t(yc({
3078
+ t(Ec({
3079
3079
  reason: i
3080
3080
  }));
3081
3081
  return;
@@ -3086,7 +3086,7 @@ const Ac = ({
3086
3086
  const c = o.critical, a = o.dimensions, d = a.draggables[o.critical.draggable.id], {
3087
3087
  impact: p,
3088
3088
  didDropInsideDroppable: l
3089
- } = Sc({
3089
+ } = Ac({
3090
3090
  reason: i,
3091
3091
  lastImpact: o.impact,
3092
3092
  afterCritical: o.afterCritical,
@@ -3105,7 +3105,7 @@ const Ac = ({
3105
3105
  mode: o.movementMode,
3106
3106
  destination: u,
3107
3107
  combine: g
3108
- }, h = Cc({
3108
+ }, h = Sc({
3109
3109
  impact: p,
3110
3110
  draggable: d,
3111
3111
  dimensions: a,
@@ -3128,17 +3128,17 @@ const Ac = ({
3128
3128
  destination: h,
3129
3129
  reason: i
3130
3130
  });
3131
- t(vc({
3131
+ t(yc({
3132
3132
  newHomeClientOffset: h,
3133
3133
  dropDuration: I,
3134
3134
  completed: y
3135
3135
  }));
3136
3136
  };
3137
- var ao = () => ({
3137
+ var lo = () => ({
3138
3138
  x: window.pageXOffset,
3139
3139
  y: window.pageYOffset
3140
3140
  });
3141
- function _c(e) {
3141
+ function Pc(e) {
3142
3142
  return {
3143
3143
  eventName: "scroll",
3144
3144
  options: {
@@ -3150,13 +3150,13 @@ function _c(e) {
3150
3150
  }
3151
3151
  };
3152
3152
  }
3153
- function Pc({
3153
+ function Rc({
3154
3154
  onWindowScroll: e
3155
3155
  }) {
3156
3156
  function t() {
3157
- e(ao());
3157
+ e(lo());
3158
3158
  }
3159
- const n = Ie(t), r = _c(n);
3159
+ const n = Ie(t), r = Pc(n);
3160
3160
  let o = re;
3161
3161
  function i() {
3162
3162
  return o !== re;
@@ -3173,19 +3173,19 @@ function Pc({
3173
3173
  isActive: i
3174
3174
  };
3175
3175
  }
3176
- const Rc = (e) => A(e, "DROP_COMPLETE") || A(e, "DROP_ANIMATE") || A(e, "FLUSH"), Tc = (e) => {
3177
- const t = Pc({
3176
+ const Tc = (e) => A(e, "DROP_COMPLETE") || A(e, "DROP_ANIMATE") || A(e, "FLUSH"), Bc = (e) => {
3177
+ const t = Rc({
3178
3178
  onWindowScroll: (n) => {
3179
- e.dispatch(pc({
3179
+ e.dispatch(fc({
3180
3180
  newScroll: n
3181
3181
  }));
3182
3182
  }
3183
3183
  });
3184
3184
  return (n) => (r) => {
3185
- !t.isActive() && A(r, "INITIAL_PUBLISH") && t.start(), t.isActive() && Rc(r) && t.stop(), n(r);
3185
+ !t.isActive() && A(r, "INITIAL_PUBLISH") && t.start(), t.isActive() && Tc(r) && t.stop(), n(r);
3186
3186
  };
3187
3187
  };
3188
- var Bc = (e) => {
3188
+ var Vc = (e) => {
3189
3189
  let t = !1, n = !1;
3190
3190
  const r = setTimeout(() => {
3191
3191
  n = !0;
@@ -3204,7 +3204,7 @@ var Bc = (e) => {
3204
3204
  t = !0, e(i), clearTimeout(r);
3205
3205
  };
3206
3206
  return o.wasCalled = () => t, o;
3207
- }, Vc = () => {
3207
+ }, Lc = () => {
3208
3208
  const e = [], t = (o) => {
3209
3209
  const i = e.findIndex((c) => c.timerId === o);
3210
3210
  i === -1 && (process.env.NODE_ENV !== "production" ? f(!1, "Could not find timer") : f());
@@ -3229,7 +3229,7 @@ var Bc = (e) => {
3229
3229
  }
3230
3230
  };
3231
3231
  };
3232
- const Lc = (e, t) => e == null && t == null ? !0 : e == null || t == null ? !1 : e.droppableId === t.droppableId && e.index === t.index, Mc = (e, t) => e == null && t == null ? !0 : e == null || t == null ? !1 : e.draggableId === t.draggableId && e.droppableId === t.droppableId, $c = (e, t) => {
3232
+ const Mc = (e, t) => e == null && t == null ? !0 : e == null || t == null ? !1 : e.droppableId === t.droppableId && e.index === t.index, $c = (e, t) => e == null && t == null ? !0 : e == null || t == null ? !1 : e.draggableId === t.draggableId && e.droppableId === t.droppableId, Gc = (e, t) => {
3233
3233
  if (e === t)
3234
3234
  return !0;
3235
3235
  const n = e.draggable.id === t.draggable.id && e.draggable.droppableId === t.draggable.droppableId && e.draggable.type === t.draggable.type && e.draggable.index === t.draggable.index, r = e.droppable.id === t.droppable.id && e.droppable.type === t.droppable.type;
@@ -3250,13 +3250,13 @@ function Nt(e, t, n, r) {
3250
3250
  n(r(t));
3251
3251
  return;
3252
3252
  }
3253
- const o = Bc(n);
3253
+ const o = Vc(n);
3254
3254
  e(t, {
3255
3255
  announce: o
3256
3256
  }), o.wasCalled() || n(r(t));
3257
3257
  }
3258
- var Gc = (e, t) => {
3259
- const n = Vc();
3258
+ var Fc = (e, t) => {
3259
+ const n = Lc();
3260
3260
  let r = null;
3261
3261
  const o = (l, u) => {
3262
3262
  r && (process.env.NODE_ENV !== "production" ? f(!1, "Cannot fire onBeforeCapture as a drag start has already been published") : f()), ye("onBeforeCapture", () => {
@@ -3285,11 +3285,11 @@ var Gc = (e, t) => {
3285
3285
  }, c = (l, u) => {
3286
3286
  const g = Jt(u), m = tt(u);
3287
3287
  r || (process.env.NODE_ENV !== "production" ? f(!1, "Cannot fire onDragMove when onDragStart has not been called") : f());
3288
- const b = !$c(l, r.lastCritical);
3288
+ const b = !Gc(l, r.lastCritical);
3289
3289
  b && (r.lastCritical = l);
3290
- const h = !Lc(r.lastLocation, g);
3290
+ const h = !Mc(r.lastLocation, g);
3291
3291
  h && (r.lastLocation = g);
3292
- const y = !Mc(r.lastCombine, m);
3292
+ const y = !$c(r.lastCombine, m);
3293
3293
  if (y && (r.lastCombine = m), !b && !h && !y)
3294
3294
  return;
3295
3295
  const v = {
@@ -3324,8 +3324,8 @@ var Gc = (e, t) => {
3324
3324
  d(l);
3325
3325
  }
3326
3326
  };
3327
- }, Fc = (e, t) => {
3328
- const n = Gc(e, t);
3327
+ }, kc = (e, t) => {
3328
+ const n = Fc(e, t);
3329
3329
  return (r) => (o) => (i) => {
3330
3330
  if (A(i, "BEFORE_INITIAL_CAPTURE")) {
3331
3331
  n.beforeCapture(i.payload.draggableId, i.payload.movementMode);
@@ -3349,7 +3349,7 @@ var Gc = (e, t) => {
3349
3349
  s.phase === "DRAGGING" && n.update(s.critical, s.impact);
3350
3350
  };
3351
3351
  };
3352
- const kc = (e) => (t) => (n) => {
3352
+ const Wc = (e) => (t) => (n) => {
3353
3353
  if (!A(n, "DROP_ANIMATION_FINISHED")) {
3354
3354
  t(n);
3355
3355
  return;
@@ -3358,7 +3358,7 @@ const kc = (e) => (t) => (n) => {
3358
3358
  r.phase !== "DROP_ANIMATING" && (process.env.NODE_ENV !== "production" ? f(!1, "Cannot finish a drop animating when no drop is occurring") : f()), e.dispatch(on({
3359
3359
  completed: r.completed
3360
3360
  }));
3361
- }, Wc = (e) => {
3361
+ }, Uc = (e) => {
3362
3362
  let t = null, n = null;
3363
3363
  function r() {
3364
3364
  n && (cancelAnimationFrame(n), n = null), t && (t(), t = null);
@@ -3374,7 +3374,7 @@ const kc = (e) => (t) => (n) => {
3374
3374
  once: !0
3375
3375
  },
3376
3376
  fn: function() {
3377
- e.getState().phase === "DROP_ANIMATING" && e.dispatch(io());
3377
+ e.getState().phase === "DROP_ANIMATING" && e.dispatch(so());
3378
3378
  }
3379
3379
  };
3380
3380
  n = requestAnimationFrame(() => {
@@ -3382,9 +3382,9 @@ const kc = (e) => (t) => (n) => {
3382
3382
  });
3383
3383
  };
3384
3384
  };
3385
- var Uc = (e) => () => (t) => (n) => {
3385
+ var Hc = (e) => () => (t) => (n) => {
3386
3386
  (A(n, "DROP_COMPLETE") || A(n, "FLUSH") || A(n, "DROP_ANIMATE")) && e.stopPublishing(), t(n);
3387
- }, Hc = (e) => {
3387
+ }, zc = (e) => {
3388
3388
  let t = !1;
3389
3389
  return () => (n) => (r) => {
3390
3390
  if (A(r, "INITIAL_PUBLISH")) {
@@ -3404,9 +3404,9 @@ var Uc = (e) => () => (t) => (n) => {
3404
3404
  }
3405
3405
  };
3406
3406
  };
3407
- const zc = (e) => A(e, "DROP_COMPLETE") || A(e, "DROP_ANIMATE") || A(e, "FLUSH");
3408
- var jc = (e) => (t) => (n) => (r) => {
3409
- if (zc(r)) {
3407
+ const jc = (e) => A(e, "DROP_COMPLETE") || A(e, "DROP_ANIMATE") || A(e, "FLUSH");
3408
+ var qc = (e) => (t) => (n) => (r) => {
3409
+ if (jc(r)) {
3410
3410
  e.stop(), n(r);
3411
3411
  return;
3412
3412
  }
@@ -3418,30 +3418,30 @@ var jc = (e) => (t) => (n) => (r) => {
3418
3418
  }
3419
3419
  n(r), e.scroll(t.getState());
3420
3420
  };
3421
- const qc = (e) => (t) => (n) => {
3421
+ const Yc = (e) => (t) => (n) => {
3422
3422
  if (t(n), !A(n, "PUBLISH_WHILE_DRAGGING"))
3423
3423
  return;
3424
3424
  const r = e.getState();
3425
- r.phase === "DROP_PENDING" && (r.isWaiting || e.dispatch(oo({
3425
+ r.phase === "DROP_PENDING" && (r.isWaiting || e.dispatch(io({
3426
3426
  reason: r.reason
3427
3427
  })));
3428
- }, Yc = process.env.NODE_ENV !== "production" && typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({
3428
+ }, Xc = process.env.NODE_ENV !== "production" && typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({
3429
3429
  name: "@hello-pangea/dnd"
3430
- }) : br;
3431
- var Xc = ({
3430
+ }) : vr;
3431
+ var Kc = ({
3432
3432
  dimensionMarshal: e,
3433
3433
  focusMarshal: t,
3434
3434
  styleMarshal: n,
3435
3435
  getResponders: r,
3436
3436
  announce: o,
3437
3437
  autoScroller: i
3438
- }) => hr(rc, Yc(Ho(xc(n), Uc(e), Nc(e), Ac, kc, Wc, qc, jc(i), Tc, Hc(t), Fc(r, o))));
3438
+ }) => br(oc, Xc(zo(Ic(n), Hc(e), xc(e), _c, Wc, Uc, Yc, qc(i), Bc, zc(t), kc(r, o))));
3439
3439
  const xt = () => ({
3440
3440
  additions: {},
3441
3441
  removals: {},
3442
3442
  modified: {}
3443
3443
  });
3444
- function Kc({
3444
+ function Jc({
3445
3445
  registry: e,
3446
3446
  callbacks: t
3447
3447
  }) {
@@ -3481,7 +3481,7 @@ function Kc({
3481
3481
  }
3482
3482
  };
3483
3483
  }
3484
- var lo = ({
3484
+ var uo = ({
3485
3485
  scrollHeight: e,
3486
3486
  scrollWidth: t,
3487
3487
  height: n,
@@ -3498,19 +3498,19 @@ var lo = ({
3498
3498
  x: Math.max(0, o.x),
3499
3499
  y: Math.max(0, o.y)
3500
3500
  };
3501
- }, uo = () => {
3501
+ }, po = () => {
3502
3502
  const e = document.documentElement;
3503
3503
  return e || (process.env.NODE_ENV !== "production" ? f(!1, "Cannot find document.documentElement") : f()), e;
3504
- }, po = () => {
3505
- const e = uo();
3506
- return lo({
3504
+ }, fo = () => {
3505
+ const e = po();
3506
+ return uo({
3507
3507
  scrollHeight: e.scrollHeight,
3508
3508
  scrollWidth: e.scrollWidth,
3509
3509
  width: e.clientWidth,
3510
3510
  height: e.clientHeight
3511
3511
  });
3512
- }, Jc = () => {
3513
- const e = ao(), t = po(), n = e.y, r = e.x, o = uo(), i = o.clientWidth, s = o.clientHeight, c = r + i, a = n + s;
3512
+ }, Zc = () => {
3513
+ const e = lo(), t = fo(), n = e.y, r = e.x, o = po(), i = o.clientWidth, s = o.clientHeight, c = r + i, a = n + s;
3514
3514
  return {
3515
3515
  frame: Z({
3516
3516
  top: n,
@@ -3528,15 +3528,15 @@ var lo = ({
3528
3528
  }
3529
3529
  }
3530
3530
  };
3531
- }, Zc = ({
3531
+ }, Qc = ({
3532
3532
  critical: e,
3533
3533
  scrollOptions: t,
3534
3534
  registry: n
3535
3535
  }) => {
3536
3536
  Ve();
3537
- const r = Jc(), o = r.scroll.current, i = e.droppable, s = n.droppable.getAllByType(i.type).map((p) => p.callbacks.getDimensionAndWatchScroll(o, t)), c = n.draggable.getAllByType(e.draggable.type).map((p) => p.getDimension(o)), a = {
3538
- draggables: Gr(c),
3539
- droppables: $r(s)
3537
+ const r = Zc(), o = r.scroll.current, i = e.droppable, s = n.droppable.getAllByType(i.type).map((p) => p.callbacks.getDimensionAndWatchScroll(o, t)), c = n.draggable.getAllByType(e.draggable.type).map((p) => p.getDimension(o)), a = {
3538
+ draggables: Fr(c),
3539
+ droppables: Gr(s)
3540
3540
  };
3541
3541
  return Le(), {
3542
3542
  dimensions: a,
@@ -3552,9 +3552,9 @@ function Zn(e, t, n) {
3552
3552
  See https://github.com/hello-pangea/dnd/blob/main/docs/patterns/virtual-lists.md
3553
3553
  `), !1) : !0;
3554
3554
  }
3555
- var Qc = (e, t) => {
3555
+ var ea = (e, t) => {
3556
3556
  let n = null;
3557
- const r = Kc({
3557
+ const r = Jc({
3558
3558
  callbacks: {
3559
3559
  publish: t.publishWhileDragging,
3560
3560
  collectionStarting: t.collectionStarting
@@ -3602,7 +3602,7 @@ var Qc = (e, t) => {
3602
3602
  return n = {
3603
3603
  critical: b,
3604
3604
  unsubscribe: h
3605
- }, Zc({
3605
+ }, Qc({
3606
3606
  critical: b,
3607
3607
  registry: e,
3608
3608
  scrollOptions: u.scrollOptions
@@ -3610,11 +3610,11 @@ var Qc = (e, t) => {
3610
3610
  },
3611
3611
  stopPublishing: a
3612
3612
  };
3613
- }, fo = (e, t) => e.phase === "IDLE" ? !0 : e.phase !== "DROP_ANIMATING" || e.completed.result.draggableId === t ? !1 : e.completed.result.reason === "DROP", ea = (e) => {
3613
+ }, go = (e, t) => e.phase === "IDLE" ? !0 : e.phase !== "DROP_ANIMATING" || e.completed.result.draggableId === t ? !1 : e.completed.result.reason === "DROP", ta = (e) => {
3614
3614
  window.scrollBy(e.x, e.y);
3615
3615
  };
3616
- const ta = $((e) => et(e).filter((t) => !(!t.isEnabled || !t.frame))), na = (e, t) => ta(t).find((r) => (r.frame || (process.env.NODE_ENV !== "production" ? f(!1, "Invalid result") : f()), Xr(r.frame.pageMarginBox)(e))) || null;
3617
- var ra = ({
3616
+ const na = $((e) => et(e).filter((t) => !(!t.isEnabled || !t.frame))), ra = (e, t) => na(t).find((r) => (r.frame || (process.env.NODE_ENV !== "production" ? f(!1, "Invalid result") : f()), Kr(r.frame.pageMarginBox)(e))) || null;
3617
+ var oa = ({
3618
3618
  center: e,
3619
3619
  destination: t,
3620
3620
  droppables: n
@@ -3623,7 +3623,7 @@ var ra = ({
3623
3623
  const o = n[t];
3624
3624
  return o.frame ? o : null;
3625
3625
  }
3626
- return na(e, n);
3626
+ return ra(e, n);
3627
3627
  };
3628
3628
  const _e = {
3629
3629
  startFromPercentage: 0.25,
@@ -3636,13 +3636,13 @@ const _e = {
3636
3636
  },
3637
3637
  disabled: !1
3638
3638
  };
3639
- var oa = (e, t, n = () => _e) => {
3639
+ var ia = (e, t, n = () => _e) => {
3640
3640
  const r = n(), o = e[t.size] * r.startFromPercentage, i = e[t.size] * r.maxScrollAtPercentage;
3641
3641
  return {
3642
3642
  startScrollingFrom: o,
3643
3643
  maxScrollValueAt: i
3644
3644
  };
3645
- }, go = ({
3645
+ }, mo = ({
3646
3646
  startOfRange: e,
3647
3647
  endOfRange: t,
3648
3648
  current: n
@@ -3653,7 +3653,7 @@ var oa = (e, t, n = () => _e) => {
3653
3653
  This is unexpected and would cause a divide by 0 issue.
3654
3654
  Not allowing an auto scroll
3655
3655
  `), 0) : (n - e) / r;
3656
- }, cn = 1, ia = (e, t, n = () => _e) => {
3656
+ }, cn = 1, sa = (e, t, n = () => _e) => {
3657
3657
  const r = n();
3658
3658
  if (e > t.startScrollingFrom)
3659
3659
  return 0;
@@ -3661,19 +3661,19 @@ var oa = (e, t, n = () => _e) => {
3661
3661
  return r.maxPixelScroll;
3662
3662
  if (e === t.startScrollingFrom)
3663
3663
  return cn;
3664
- const i = 1 - go({
3664
+ const i = 1 - mo({
3665
3665
  startOfRange: t.maxScrollValueAt,
3666
3666
  endOfRange: t.startScrollingFrom,
3667
3667
  current: e
3668
3668
  }), s = r.maxPixelScroll * r.ease(i);
3669
3669
  return Math.ceil(s);
3670
- }, sa = (e, t, n) => {
3670
+ }, ca = (e, t, n) => {
3671
3671
  const r = n(), o = r.durationDampening.accelerateAt, i = r.durationDampening.stopDampeningAt, s = t, c = i, d = Date.now() - s;
3672
3672
  if (d >= i)
3673
3673
  return e;
3674
3674
  if (d < o)
3675
3675
  return cn;
3676
- const p = go({
3676
+ const p = mo({
3677
3677
  startOfRange: o,
3678
3678
  endOfRange: c,
3679
3679
  current: d
@@ -3686,8 +3686,8 @@ var oa = (e, t, n = () => _e) => {
3686
3686
  shouldUseTimeDampening: r,
3687
3687
  getAutoScrollerOptions: o
3688
3688
  }) => {
3689
- const i = ia(e, t, o);
3690
- return i === 0 ? 0 : r ? Math.max(sa(i, n, o), cn) : i;
3689
+ const i = sa(e, t, o);
3690
+ return i === 0 ? 0 : r ? Math.max(ca(i, n, o), cn) : i;
3691
3691
  }, er = ({
3692
3692
  container: e,
3693
3693
  distanceToEdges: t,
@@ -3696,7 +3696,7 @@ var oa = (e, t, n = () => _e) => {
3696
3696
  shouldUseTimeDampening: o,
3697
3697
  getAutoScrollerOptions: i
3698
3698
  }) => {
3699
- const s = oa(e, r, i);
3699
+ const s = ia(e, r, i);
3700
3700
  return t[r.end] < t[r.start] ? Qn({
3701
3701
  distanceToEdge: t[r.end],
3702
3702
  thresholds: s,
@@ -3710,7 +3710,7 @@ var oa = (e, t, n = () => _e) => {
3710
3710
  shouldUseTimeDampening: o,
3711
3711
  getAutoScrollerOptions: i
3712
3712
  });
3713
- }, ca = ({
3713
+ }, aa = ({
3714
3714
  container: e,
3715
3715
  subject: t,
3716
3716
  proposedScroll: n
@@ -3721,8 +3721,8 @@ var oa = (e, t, n = () => _e) => {
3721
3721
  y: r ? 0 : n.y
3722
3722
  };
3723
3723
  };
3724
- const aa = Mr((e) => e === 0 ? 0 : e);
3725
- var mo = ({
3724
+ const la = $r((e) => e === 0 ? 0 : e);
3725
+ var ho = ({
3726
3726
  dragStartTime: e,
3727
3727
  container: t,
3728
3728
  subject: n,
@@ -3746,23 +3746,23 @@ var mo = ({
3746
3746
  container: t,
3747
3747
  distanceToEdges: s,
3748
3748
  dragStartTime: e,
3749
- axis: Wr,
3749
+ axis: Ur,
3750
3750
  shouldUseTimeDampening: o,
3751
3751
  getAutoScrollerOptions: i
3752
- }), d = aa({
3752
+ }), d = la({
3753
3753
  x: a,
3754
3754
  y: c
3755
3755
  });
3756
3756
  if (oe(d, G))
3757
3757
  return null;
3758
- const p = ca({
3758
+ const p = aa({
3759
3759
  container: t,
3760
3760
  subject: n,
3761
3761
  proposedScroll: d
3762
3762
  });
3763
3763
  return p ? oe(p, G) ? null : p : null;
3764
3764
  };
3765
- const la = Mr((e) => e === 0 ? 0 : e > 0 ? 1 : -1), an = /* @__PURE__ */ (() => {
3765
+ const da = $r((e) => e === 0 ? 0 : e > 0 ? 1 : -1), an = /* @__PURE__ */ (() => {
3766
3766
  const e = (t, n) => t < 0 ? t : t > n ? t - n : 0;
3767
3767
  return ({
3768
3768
  current: t,
@@ -3775,7 +3775,7 @@ const la = Mr((e) => e === 0 ? 0 : e > 0 ? 1 : -1), an = /* @__PURE__ */ (() =>
3775
3775
  };
3776
3776
  return oe(i, G) ? null : i;
3777
3777
  };
3778
- })(), ho = ({
3778
+ })(), bo = ({
3779
3779
  max: e,
3780
3780
  current: t,
3781
3781
  change: n
@@ -3783,17 +3783,17 @@ const la = Mr((e) => e === 0 ? 0 : e > 0 ? 1 : -1), an = /* @__PURE__ */ (() =>
3783
3783
  const r = {
3784
3784
  x: Math.max(t.x, e.x),
3785
3785
  y: Math.max(t.y, e.y)
3786
- }, o = la(n), i = an({
3786
+ }, o = da(n), i = an({
3787
3787
  max: r,
3788
3788
  current: t,
3789
3789
  change: o
3790
3790
  });
3791
3791
  return !i || o.x !== 0 && i.x === 0 || o.y !== 0 && i.y === 0;
3792
- }, ln = (e, t) => ho({
3792
+ }, ln = (e, t) => bo({
3793
3793
  current: e.scroll.current,
3794
3794
  max: e.scroll.max,
3795
3795
  change: t
3796
- }), da = (e, t) => {
3796
+ }), ua = (e, t) => {
3797
3797
  if (!ln(e, t))
3798
3798
  return null;
3799
3799
  const n = e.scroll.max, r = e.scroll.current;
@@ -3804,12 +3804,12 @@ const la = Mr((e) => e === 0 ? 0 : e > 0 ? 1 : -1), an = /* @__PURE__ */ (() =>
3804
3804
  });
3805
3805
  }, dn = (e, t) => {
3806
3806
  const n = e.frame;
3807
- return n ? ho({
3807
+ return n ? bo({
3808
3808
  current: n.scroll.current,
3809
3809
  max: n.scroll.max,
3810
3810
  change: t
3811
3811
  }) : !1;
3812
- }, ua = (e, t) => {
3812
+ }, pa = (e, t) => {
3813
3813
  const n = e.frame;
3814
3814
  return !n || !dn(e, t) ? null : an({
3815
3815
  current: n.scroll.current,
@@ -3817,7 +3817,7 @@ const la = Mr((e) => e === 0 ? 0 : e > 0 ? 1 : -1), an = /* @__PURE__ */ (() =>
3817
3817
  change: t
3818
3818
  });
3819
3819
  };
3820
- var pa = ({
3820
+ var fa = ({
3821
3821
  viewport: e,
3822
3822
  subject: t,
3823
3823
  center: n,
@@ -3825,7 +3825,7 @@ var pa = ({
3825
3825
  shouldUseTimeDampening: o,
3826
3826
  getAutoScrollerOptions: i
3827
3827
  }) => {
3828
- const s = mo({
3828
+ const s = ho({
3829
3829
  dragStartTime: r,
3830
3830
  container: e.frame,
3831
3831
  subject: t,
@@ -3834,7 +3834,7 @@ var pa = ({
3834
3834
  getAutoScrollerOptions: i
3835
3835
  });
3836
3836
  return s && ln(e, s) ? s : null;
3837
- }, fa = ({
3837
+ }, ga = ({
3838
3838
  droppable: e,
3839
3839
  subject: t,
3840
3840
  center: n,
@@ -3845,7 +3845,7 @@ var pa = ({
3845
3845
  const s = e.frame;
3846
3846
  if (!s)
3847
3847
  return null;
3848
- const c = mo({
3848
+ const c = ho({
3849
3849
  dragStartTime: r,
3850
3850
  container: s.pageMarginBox,
3851
3851
  subject: t,
@@ -3864,7 +3864,7 @@ var pa = ({
3864
3864
  }) => {
3865
3865
  const s = e.current.page.borderBoxCenter, a = e.dimensions.draggables[e.critical.draggable.id].page.marginBox;
3866
3866
  if (e.isWindowScrollAllowed) {
3867
- const l = e.viewport, u = pa({
3867
+ const l = e.viewport, u = fa({
3868
3868
  dragStartTime: t,
3869
3869
  viewport: l,
3870
3870
  subject: a,
@@ -3877,14 +3877,14 @@ var pa = ({
3877
3877
  return;
3878
3878
  }
3879
3879
  }
3880
- const d = ra({
3880
+ const d = oa({
3881
3881
  center: s,
3882
3882
  destination: q(e.impact),
3883
3883
  droppables: e.dimensions.droppables
3884
3884
  });
3885
3885
  if (!d)
3886
3886
  return;
3887
- const p = fa({
3887
+ const p = ga({
3888
3888
  dragStartTime: t,
3889
3889
  droppable: d,
3890
3890
  subject: a,
@@ -3893,7 +3893,7 @@ var pa = ({
3893
3893
  getAutoScrollerOptions: i
3894
3894
  });
3895
3895
  p && o(d.descriptor.id, p);
3896
- }, ga = ({
3896
+ }, ma = ({
3897
3897
  scrollWindow: e,
3898
3898
  scrollDroppable: t,
3899
3899
  getAutoScrollerOptions: n = () => _e
@@ -3940,7 +3940,7 @@ var pa = ({
3940
3940
  },
3941
3941
  scroll: s
3942
3942
  };
3943
- }, ma = ({
3943
+ }, ha = ({
3944
3944
  move: e,
3945
3945
  scrollDroppable: t,
3946
3946
  scrollWindow: n
@@ -3953,7 +3953,7 @@ var pa = ({
3953
3953
  }, o = (c, a) => {
3954
3954
  if (!dn(c, a))
3955
3955
  return a;
3956
- const d = ua(c, a);
3956
+ const d = pa(c, a);
3957
3957
  if (!d)
3958
3958
  return t(c.descriptor.id, a), null;
3959
3959
  const p = j(a, d);
@@ -3961,7 +3961,7 @@ var pa = ({
3961
3961
  }, i = (c, a, d) => {
3962
3962
  if (!c || !ln(a, d))
3963
3963
  return d;
3964
- const p = da(a, d);
3964
+ const p = ua(a, d);
3965
3965
  if (!p)
3966
3966
  return n(d), null;
3967
3967
  const l = j(d, p);
@@ -3979,17 +3979,17 @@ var pa = ({
3979
3979
  const l = c.viewport, u = i(c.isWindowScrollAllowed, l, p);
3980
3980
  u && r(c, u);
3981
3981
  };
3982
- }, ha = ({
3982
+ }, ba = ({
3983
3983
  scrollDroppable: e,
3984
3984
  scrollWindow: t,
3985
3985
  move: n,
3986
3986
  getAutoScrollerOptions: r
3987
3987
  }) => {
3988
- const o = ga({
3988
+ const o = ma({
3989
3989
  scrollWindow: t,
3990
3990
  scrollDroppable: e,
3991
3991
  getAutoScrollerOptions: r
3992
- }), i = ma({
3992
+ }), i = ha({
3993
3993
  move: n,
3994
3994
  scrollWindow: t,
3995
3995
  scrollDroppable: e
@@ -4022,7 +4022,7 @@ const fe = "data-rfd", ge = (() => {
4022
4022
  contextId: `${e}-context-id`,
4023
4023
  id: `${e}-id`
4024
4024
  };
4025
- })(), ba = (() => {
4025
+ })(), va = (() => {
4026
4026
  const e = `${fe}-droppable`;
4027
4027
  return {
4028
4028
  base: e,
@@ -4031,12 +4031,12 @@ const fe = "data-rfd", ge = (() => {
4031
4031
  };
4032
4032
  })(), nr = {
4033
4033
  contextId: `${fe}-scroll-container-context-id`
4034
- }, va = (e) => (t) => `[${t}="${e}"]`, Ee = (e, t) => e.map((n) => {
4034
+ }, ya = (e) => (t) => `[${t}="${e}"]`, Ee = (e, t) => e.map((n) => {
4035
4035
  const r = n.styles[t];
4036
4036
  return r ? `${n.selector} { ${r} }` : "";
4037
- }).join(" "), ya = "pointer-events: none;";
4038
- var Ea = (e) => {
4039
- const t = va(e), n = (() => {
4037
+ }).join(" "), Ea = "pointer-events: none;";
4038
+ var Da = (e) => {
4039
+ const t = ya(e), n = (() => {
4040
4040
  const c = `
4041
4041
  cursor: -webkit-grab;
4042
4042
  cursor: grab;
@@ -4050,7 +4050,7 @@ var Ea = (e) => {
4050
4050
  touch-action: manipulation;
4051
4051
  `,
4052
4052
  resting: c,
4053
- dragging: ya,
4053
+ dragging: Ea,
4054
4054
  dropAnimating: c
4055
4055
  }
4056
4056
  };
@@ -4067,7 +4067,7 @@ var Ea = (e) => {
4067
4067
  }
4068
4068
  };
4069
4069
  })(), o = {
4070
- selector: t(ba.contextId),
4070
+ selector: t(va.contextId),
4071
4071
  styles: {
4072
4072
  always: "overflow-anchor: none;"
4073
4073
  }
@@ -4093,15 +4093,15 @@ var Ea = (e) => {
4093
4093
  userCancel: Ee(s, "userCancel")
4094
4094
  };
4095
4095
  };
4096
- const Y = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u" ? Vo : te, It = () => {
4096
+ const Y = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u" ? Lo : te, It = () => {
4097
4097
  const e = document.querySelector("head");
4098
4098
  return e || (process.env.NODE_ENV !== "production" ? f(!1, "Cannot find the head to append a style to") : f()), e;
4099
4099
  }, rr = (e) => {
4100
4100
  const t = document.createElement("style");
4101
4101
  return e && t.setAttribute("nonce", e), t.type = "text/css", t;
4102
4102
  };
4103
- function Da(e, t) {
4104
- const n = O(() => Ea(e), [e]), r = B(null), o = B(null), i = D($((l) => {
4103
+ function Na(e, t) {
4104
+ const n = C(() => Da(e), [e]), r = B(null), o = B(null), i = D($((l) => {
4105
4105
  const u = o.current;
4106
4106
  u || (process.env.NODE_ENV !== "production" ? f(!1, "Cannot set dynamic style element if it is not set") : f()), u.textContent = l;
4107
4107
  }), []), s = D((l) => {
@@ -4128,27 +4128,27 @@ function Da(e, t) {
4128
4128
  }, [i, n.dropAnimating, n.userCancel]), d = D(() => {
4129
4129
  o.current && i(n.resting);
4130
4130
  }, [i, n.resting]);
4131
- return O(() => ({
4131
+ return C(() => ({
4132
4132
  dragging: c,
4133
4133
  dropping: a,
4134
4134
  resting: d
4135
4135
  }), [c, a, d]);
4136
4136
  }
4137
- function bo(e, t) {
4137
+ function vo(e, t) {
4138
4138
  return Array.from(e.querySelectorAll(t));
4139
4139
  }
4140
- var vo = (e) => e && e.ownerDocument && e.ownerDocument.defaultView ? e.ownerDocument.defaultView : window;
4140
+ var yo = (e) => e && e.ownerDocument && e.ownerDocument.defaultView ? e.ownerDocument.defaultView : window;
4141
4141
  function Me(e) {
4142
- return e instanceof vo(e).HTMLElement;
4142
+ return e instanceof yo(e).HTMLElement;
4143
4143
  }
4144
- function yo(e, t) {
4145
- const n = `[${ge.contextId}="${e}"]`, r = bo(document, n);
4144
+ function Eo(e, t) {
4145
+ const n = `[${ge.contextId}="${e}"]`, r = vo(document, n);
4146
4146
  if (!r.length)
4147
4147
  return process.env.NODE_ENV !== "production" && R(`Unable to find any drag handles in the context "${e}"`), null;
4148
4148
  const o = r.find((i) => i.getAttribute(ge.draggableId) === t);
4149
4149
  return o ? Me(o) ? o : (process.env.NODE_ENV !== "production" && R("drag handle needs to be a HTMLElement"), null) : (process.env.NODE_ENV !== "production" && R(`Unable to find drag handle with id "${t}" as no handle with a matching id was found`), null);
4150
4150
  }
4151
- function Na(e) {
4151
+ function xa(e) {
4152
4152
  const t = B({}), n = B(null), r = B(null), o = B(!1), i = D(function(u, g) {
4153
4153
  const m = {
4154
4154
  id: u,
@@ -4159,7 +4159,7 @@ function Na(e) {
4159
4159
  h[u] !== m && delete h[u];
4160
4160
  };
4161
4161
  }, []), s = D(function(u) {
4162
- const g = yo(e, u);
4162
+ const g = Eo(e, u);
4163
4163
  g && g !== document.activeElement && g.focus();
4164
4164
  }, [e]), c = D(function(u, g) {
4165
4165
  n.current === u && (n.current = g);
@@ -4178,14 +4178,14 @@ function Na(e) {
4178
4178
  o.current = !1;
4179
4179
  const u = r.current;
4180
4180
  u && cancelAnimationFrame(u);
4181
- }), []), O(() => ({
4181
+ }), []), C(() => ({
4182
4182
  register: i,
4183
4183
  tryRecordFocus: d,
4184
4184
  tryRestoreFocusRecorded: a,
4185
4185
  tryShiftRecord: c
4186
4186
  }), [i, d, a, c]);
4187
4187
  }
4188
- function xa() {
4188
+ function Ia() {
4189
4189
  const e = {
4190
4190
  draggables: {},
4191
4191
  droppables: {}
@@ -4259,8 +4259,8 @@ function xa() {
4259
4259
  clean: p
4260
4260
  };
4261
4261
  }
4262
- function Ia() {
4263
- const e = O(xa, []);
4262
+ function Oa() {
4263
+ const e = C(Ia, []);
4264
4264
  return te(() => function() {
4265
4265
  e.clean();
4266
4266
  }, [e]), e;
@@ -4269,7 +4269,7 @@ var un = V.createContext(null), Pe = () => {
4269
4269
  const e = document.body;
4270
4270
  return e || (process.env.NODE_ENV !== "production" ? f(!1, "Cannot find document.body") : f()), e;
4271
4271
  };
4272
- const Oa = {
4272
+ const Ca = {
4273
4273
  position: "absolute",
4274
4274
  width: "1px",
4275
4275
  height: "1px",
@@ -4280,11 +4280,11 @@ const Oa = {
4280
4280
  clip: "rect(0 0 0 0)",
4281
4281
  "clip-path": "inset(100%)"
4282
4282
  }, wa = (e) => `rfd-announcement-${e}`;
4283
- function Ca(e) {
4284
- const t = O(() => wa(e), [e]), n = B(null);
4283
+ function Sa(e) {
4284
+ const t = C(() => wa(e), [e]), n = B(null);
4285
4285
  return te(function() {
4286
4286
  const i = document.createElement("div");
4287
- return n.current = i, i.id = t, i.setAttribute("aria-live", "assertive"), i.setAttribute("aria-atomic", "true"), Ye(i.style, Oa), Pe().appendChild(i), function() {
4287
+ return n.current = i, i.id = t, i.setAttribute("aria-live", "assertive"), i.setAttribute("aria-atomic", "true"), Ye(i.style, Ca), Pe().appendChild(i), function() {
4288
4288
  setTimeout(function() {
4289
4289
  const a = Pe();
4290
4290
  a.contains(i) && a.removeChild(i), i === n.current && (n.current = null);
@@ -4308,26 +4308,26 @@ function Ca(e) {
4308
4308
  `);
4309
4309
  }, []);
4310
4310
  }
4311
- const Sa = {
4311
+ const Aa = {
4312
4312
  separator: "::"
4313
4313
  };
4314
- function pn(e, t = Sa) {
4314
+ function pn(e, t = Aa) {
4315
4315
  const n = V.useId();
4316
- return O(() => `${e}${t.separator}${n}`, [t.separator, e, n]);
4316
+ return C(() => `${e}${t.separator}${n}`, [t.separator, e, n]);
4317
4317
  }
4318
- function Aa({
4318
+ function _a({
4319
4319
  contextId: e,
4320
4320
  uniqueId: t
4321
4321
  }) {
4322
4322
  return `rfd-hidden-text-${e}-${t}`;
4323
4323
  }
4324
- function _a({
4324
+ function Pa({
4325
4325
  contextId: e,
4326
4326
  text: t
4327
4327
  }) {
4328
4328
  const n = pn("hidden-text", {
4329
4329
  separator: "-"
4330
- }), r = O(() => Aa({
4330
+ }), r = C(() => _a({
4331
4331
  contextId: e,
4332
4332
  uniqueId: n
4333
4333
  }), [n, e]);
@@ -4339,11 +4339,11 @@ function _a({
4339
4339
  };
4340
4340
  }, [r, t]), r;
4341
4341
  }
4342
- var ot = V.createContext(null), Pa = {
4342
+ var ot = V.createContext(null), Ra = {
4343
4343
  react: "^18.0.0 || ^19.0.0"
4344
4344
  };
4345
- const Ra = /(\d+)\.(\d+)\.(\d+)/, or = (e) => {
4346
- const t = Ra.exec(e);
4345
+ const Ta = /(\d+)\.(\d+)\.(\d+)/, or = (e) => {
4346
+ const t = Ta.exec(e);
4347
4347
  t == null && (process.env.NODE_ENV !== "production" ? f(!1, `Unable to parse React version ${e}`) : f());
4348
4348
  const n = Number(t[1]), r = Number(t[2]), o = Number(t[3]);
4349
4349
  return {
@@ -4352,10 +4352,10 @@ const Ra = /(\d+)\.(\d+)\.(\d+)/, or = (e) => {
4352
4352
  patch: o,
4353
4353
  raw: e
4354
4354
  };
4355
- }, Ta = (e, t) => t.major > e.major ? !0 : t.major < e.major ? !1 : t.minor > e.minor ? !0 : t.minor < e.minor ? !1 : t.patch >= e.patch;
4356
- var Ba = (e, t) => {
4355
+ }, Ba = (e, t) => t.major > e.major ? !0 : t.major < e.major ? !1 : t.minor > e.minor ? !0 : t.minor < e.minor ? !1 : t.patch >= e.patch;
4356
+ var Va = (e, t) => {
4357
4357
  const n = or(e), r = or(t);
4358
- Ta(n, r) || process.env.NODE_ENV !== "production" && R(`
4358
+ Ba(n, r) || process.env.NODE_ENV !== "production" && R(`
4359
4359
  React version: [${r.raw}]
4360
4360
  does not satisfy expected peer dependency version: [${n.raw}]
4361
4361
 
@@ -4368,7 +4368,7 @@ const Ot = `
4368
4368
 
4369
4369
  More information: https://github.com/hello-pangea/dnd/blob/main/docs/guides/doctype.md
4370
4370
  `;
4371
- var Va = (e) => {
4371
+ var La = (e) => {
4372
4372
  const t = e.doctype;
4373
4373
  if (!t) {
4374
4374
  process.env.NODE_ENV !== "production" && R(`
@@ -4407,9 +4407,9 @@ function $e(e, t) {
4407
4407
  }, t);
4408
4408
  });
4409
4409
  }
4410
- function La() {
4410
+ function Ma() {
4411
4411
  $e(() => {
4412
- Ba(Pa.react, V.version), Va(document);
4412
+ Va(Ra.react, V.version), La(document);
4413
4413
  }, []);
4414
4414
  }
4415
4415
  function gn(e) {
@@ -4418,7 +4418,7 @@ function gn(e) {
4418
4418
  t.current = e;
4419
4419
  }), t;
4420
4420
  }
4421
- function Ma() {
4421
+ function $a() {
4422
4422
  let e = null;
4423
4423
  function t() {
4424
4424
  return !!e;
@@ -4450,24 +4450,24 @@ function Ma() {
4450
4450
  function Re(e) {
4451
4451
  return e.phase === "IDLE" || e.phase === "DROP_ANIMATING" ? !1 : e.isDragging;
4452
4452
  }
4453
- const $a = 9, Ga = 13, mn = 27, Eo = 32, Fa = 33, ka = 34, Wa = 35, Ua = 36, Ha = 37, za = 38, ja = 39, qa = 40, Ya = {
4454
- [Ga]: !0,
4455
- [$a]: !0
4453
+ const Ga = 9, Fa = 13, mn = 27, Do = 32, ka = 33, Wa = 34, Ua = 35, Ha = 36, za = 37, ja = 38, qa = 39, Ya = 40, Xa = {
4454
+ [Fa]: !0,
4455
+ [Ga]: !0
4456
4456
  };
4457
- var Do = (e) => {
4458
- Ya[e.keyCode] && e.preventDefault();
4457
+ var No = (e) => {
4458
+ Xa[e.keyCode] && e.preventDefault();
4459
4459
  };
4460
4460
  const it = (() => {
4461
4461
  const e = "visibilitychange";
4462
4462
  return typeof document > "u" ? e : [e, `ms${e}`, `webkit${e}`, `moz${e}`, `o${e}`].find((r) => `on${r}` in document) || e;
4463
- })(), No = 0, ir = 5;
4464
- function Xa(e, t) {
4463
+ })(), xo = 0, ir = 5;
4464
+ function Ka(e, t) {
4465
4465
  return Math.abs(t.x - e.x) >= ir || Math.abs(t.y - e.y) >= ir;
4466
4466
  }
4467
4467
  const sr = {
4468
4468
  type: "IDLE"
4469
4469
  };
4470
- function Ka({
4470
+ function Ja({
4471
4471
  cancel: e,
4472
4472
  completed: t,
4473
4473
  getPhase: n,
@@ -4481,7 +4481,7 @@ function Ka({
4481
4481
  clientX: s,
4482
4482
  clientY: c
4483
4483
  } = o;
4484
- if (i !== No)
4484
+ if (i !== xo)
4485
4485
  return;
4486
4486
  const a = {
4487
4487
  x: s,
@@ -4493,7 +4493,7 @@ function Ka({
4493
4493
  }
4494
4494
  d.type !== "PENDING" && (process.env.NODE_ENV !== "production" ? f(!1, "Cannot be IDLE") : f());
4495
4495
  const p = d.point;
4496
- if (!Xa(p, a))
4496
+ if (!Ka(p, a))
4497
4497
  return;
4498
4498
  o.preventDefault();
4499
4499
  const l = d.actions.fluidLift(a);
@@ -4530,7 +4530,7 @@ function Ka({
4530
4530
  o.preventDefault(), e();
4531
4531
  return;
4532
4532
  }
4533
- Do(o);
4533
+ No(o);
4534
4534
  }
4535
4535
  }, {
4536
4536
  eventName: "resize",
@@ -4559,11 +4559,11 @@ function Ka({
4559
4559
  fn: e
4560
4560
  }];
4561
4561
  }
4562
- function Ja(e) {
4563
- const t = B(sr), n = B(re), r = O(() => ({
4562
+ function Za(e) {
4563
+ const t = B(sr), n = B(re), r = C(() => ({
4564
4564
  eventName: "mousedown",
4565
4565
  fn: function(l) {
4566
- if (l.defaultPrevented || l.button !== No || l.ctrlKey || l.metaKey || l.shiftKey || l.altKey)
4566
+ if (l.defaultPrevented || l.button !== xo || l.ctrlKey || l.metaKey || l.shiftKey || l.altKey)
4567
4567
  return;
4568
4568
  const u = e.findClosestDraggableId(l);
4569
4569
  if (!u)
@@ -4580,7 +4580,7 @@ function Ja(e) {
4580
4580
  };
4581
4581
  n.current(), d(g, m);
4582
4582
  }
4583
- }), [e]), o = O(() => ({
4583
+ }), [e]), o = C(() => ({
4584
4584
  eventName: "webkitmouseforcewillbegin",
4585
4585
  fn: (p) => {
4586
4586
  if (p.defaultPrevented)
@@ -4608,7 +4608,7 @@ function Ja(e) {
4608
4608
  const l = {
4609
4609
  capture: !0,
4610
4610
  passive: !1
4611
- }, u = Ka({
4611
+ }, u = Ja({
4612
4612
  cancel: c,
4613
4613
  completed: s,
4614
4614
  getPhase: () => t.current,
@@ -4630,15 +4630,15 @@ function Ja(e) {
4630
4630
  };
4631
4631
  }, [i]);
4632
4632
  }
4633
- function Za() {
4633
+ function Qa() {
4634
4634
  }
4635
- const Qa = {
4635
+ const el = {
4636
+ [Wa]: !0,
4636
4637
  [ka]: !0,
4637
- [Fa]: !0,
4638
- [Ua]: !0,
4639
- [Wa]: !0
4638
+ [Ha]: !0,
4639
+ [Ua]: !0
4640
4640
  };
4641
- function el(e, t) {
4641
+ function tl(e, t) {
4642
4642
  function n() {
4643
4643
  t(), e.cancel();
4644
4644
  }
@@ -4652,31 +4652,31 @@ function el(e, t) {
4652
4652
  o.preventDefault(), n();
4653
4653
  return;
4654
4654
  }
4655
- if (o.keyCode === Eo) {
4655
+ if (o.keyCode === Do) {
4656
4656
  o.preventDefault(), r();
4657
4657
  return;
4658
4658
  }
4659
- if (o.keyCode === qa) {
4659
+ if (o.keyCode === Ya) {
4660
4660
  o.preventDefault(), e.moveDown();
4661
4661
  return;
4662
4662
  }
4663
- if (o.keyCode === za) {
4663
+ if (o.keyCode === ja) {
4664
4664
  o.preventDefault(), e.moveUp();
4665
4665
  return;
4666
4666
  }
4667
- if (o.keyCode === ja) {
4667
+ if (o.keyCode === qa) {
4668
4668
  o.preventDefault(), e.moveRight();
4669
4669
  return;
4670
4670
  }
4671
- if (o.keyCode === Ha) {
4671
+ if (o.keyCode === za) {
4672
4672
  o.preventDefault(), e.moveLeft();
4673
4673
  return;
4674
4674
  }
4675
- if (Qa[o.keyCode]) {
4675
+ if (el[o.keyCode]) {
4676
4676
  o.preventDefault();
4677
4677
  return;
4678
4678
  }
4679
- Do(o);
4679
+ No(o);
4680
4680
  }
4681
4681
  }, {
4682
4682
  eventName: "mousedown",
@@ -4704,11 +4704,11 @@ function el(e, t) {
4704
4704
  fn: n
4705
4705
  }];
4706
4706
  }
4707
- function tl(e) {
4708
- const t = B(Za), n = O(() => ({
4707
+ function nl(e) {
4708
+ const t = B(Qa), n = C(() => ({
4709
4709
  eventName: "keydown",
4710
4710
  fn: function(i) {
4711
- if (i.defaultPrevented || i.keyCode !== Eo)
4711
+ if (i.defaultPrevented || i.keyCode !== Do)
4712
4712
  return;
4713
4713
  const s = e.findClosestDraggableId(i);
4714
4714
  if (!s)
@@ -4725,7 +4725,7 @@ function tl(e) {
4725
4725
  function p() {
4726
4726
  a || (process.env.NODE_ENV !== "production" ? f(!1, "Cannot stop capturing a keyboard drag when not capturing") : f()), a = !1, t.current(), r();
4727
4727
  }
4728
- t.current = K(window, el(d, p), {
4728
+ t.current = K(window, tl(d, p), {
4729
4729
  capture: !0,
4730
4730
  passive: !1
4731
4731
  });
@@ -4743,10 +4743,10 @@ function tl(e) {
4743
4743
  };
4744
4744
  }, [r]);
4745
4745
  }
4746
- const wt = {
4746
+ const Ct = {
4747
4747
  type: "IDLE"
4748
- }, nl = 120, rl = 0.15;
4749
- function ol({
4748
+ }, rl = 120, ol = 0.15;
4749
+ function il({
4750
4750
  cancel: e,
4751
4751
  getPhase: t
4752
4752
  }) {
@@ -4775,7 +4775,7 @@ function ol({
4775
4775
  fn: e
4776
4776
  }];
4777
4777
  }
4778
- function il({
4778
+ function sl({
4779
4779
  cancel: e,
4780
4780
  completed: t,
4781
4781
  getPhase: n
@@ -4828,7 +4828,7 @@ function il({
4828
4828
  const o = n();
4829
4829
  o.type === "IDLE" && (process.env.NODE_ENV, f());
4830
4830
  const i = r.touches[0];
4831
- if (!i || !(i.force >= rl))
4831
+ if (!i || !(i.force >= ol))
4832
4832
  return;
4833
4833
  const c = o.actions.shouldRespectForcePress();
4834
4834
  if (o.type === "PENDING") {
@@ -4850,12 +4850,12 @@ function il({
4850
4850
  fn: e
4851
4851
  }];
4852
4852
  }
4853
- function sl(e) {
4854
- const t = B(wt), n = B(re), r = D(function() {
4853
+ function cl(e) {
4854
+ const t = B(Ct), n = B(re), r = D(function() {
4855
4855
  return t.current;
4856
4856
  }, []), o = D(function(g) {
4857
4857
  t.current = g;
4858
- }, []), i = O(() => ({
4858
+ }, []), i = C(() => ({
4859
4859
  eventName: "touchstart",
4860
4860
  fn: function(g) {
4861
4861
  if (g.defaultPrevented)
@@ -4885,7 +4885,7 @@ function sl(e) {
4885
4885
  n.current = K(window, [i], g);
4886
4886
  }, [i]), c = D(() => {
4887
4887
  const u = t.current;
4888
- u.type !== "IDLE" && (u.type === "PENDING" && clearTimeout(u.longPressTimerId), o(wt), n.current(), s());
4888
+ u.type !== "IDLE" && (u.type === "PENDING" && clearTimeout(u.longPressTimerId), o(Ct), n.current(), s());
4889
4889
  }, [s, o]), a = D(() => {
4890
4890
  const u = t.current;
4891
4891
  c(), u.type === "DRAGGING" && u.actions.cancel({
@@ -4899,7 +4899,7 @@ function sl(e) {
4899
4899
  cancel: a,
4900
4900
  completed: c,
4901
4901
  getPhase: r
4902
- }, b = K(window, il(m), g), h = K(window, ol(m), g);
4902
+ }, b = K(window, sl(m), g), h = K(window, il(m), g);
4903
4903
  n.current = function() {
4904
4904
  b(), h();
4905
4905
  };
@@ -4914,7 +4914,7 @@ function sl(e) {
4914
4914
  });
4915
4915
  }, [r, o]), l = D(function(g, m) {
4916
4916
  r().type !== "IDLE" && (process.env.NODE_ENV !== "production" ? f(!1, "Expected to move from IDLE to PENDING drag") : f());
4917
- const b = setTimeout(p, nl);
4917
+ const b = setTimeout(p, rl);
4918
4918
  o({
4919
4919
  type: "PENDING",
4920
4920
  point: m,
@@ -4926,7 +4926,7 @@ function sl(e) {
4926
4926
  return s(), function() {
4927
4927
  n.current();
4928
4928
  const m = r();
4929
- m.type === "PENDING" && (clearTimeout(m.longPressTimerId), o(wt));
4929
+ m.type === "PENDING" && (clearTimeout(m.longPressTimerId), o(Ct));
4930
4930
  };
4931
4931
  }, [r, s, o]), Y(function() {
4932
4932
  return K(window, [{
@@ -4940,7 +4940,7 @@ function sl(e) {
4940
4940
  }]);
4941
4941
  }, []);
4942
4942
  }
4943
- function cl(e) {
4943
+ function al(e) {
4944
4944
  fn(() => {
4945
4945
  const t = gn(e);
4946
4946
  $e(() => {
@@ -4948,52 +4948,52 @@ function cl(e) {
4948
4948
  });
4949
4949
  });
4950
4950
  }
4951
- const al = ["input", "button", "textarea", "select", "option", "optgroup", "video", "audio"];
4952
- function xo(e, t) {
4951
+ const ll = ["input", "button", "textarea", "select", "option", "optgroup", "video", "audio"];
4952
+ function Io(e, t) {
4953
4953
  if (t == null)
4954
4954
  return !1;
4955
- if (al.includes(t.tagName.toLowerCase()))
4955
+ if (ll.includes(t.tagName.toLowerCase()))
4956
4956
  return !0;
4957
4957
  const r = t.getAttribute("contenteditable");
4958
- return r === "true" || r === "" ? !0 : t === e ? !1 : xo(e, t.parentElement);
4958
+ return r === "true" || r === "" ? !0 : t === e ? !1 : Io(e, t.parentElement);
4959
4959
  }
4960
- function ll(e, t) {
4960
+ function dl(e, t) {
4961
4961
  const n = t.target;
4962
- return Me(n) ? xo(e, n) : !1;
4962
+ return Me(n) ? Io(e, n) : !1;
4963
4963
  }
4964
- var dl = (e) => Z(e.getBoundingClientRect()).center;
4965
- function ul(e) {
4966
- return e instanceof vo(e).Element;
4964
+ var ul = (e) => Z(e.getBoundingClientRect()).center;
4965
+ function pl(e) {
4966
+ return e instanceof yo(e).Element;
4967
4967
  }
4968
- const pl = (() => {
4968
+ const fl = (() => {
4969
4969
  const e = "matches";
4970
4970
  return typeof document > "u" ? e : [e, "msMatchesSelector", "webkitMatchesSelector"].find((r) => r in Element.prototype) || e;
4971
4971
  })();
4972
- function Io(e, t) {
4973
- return e == null ? null : e[pl](t) ? e : Io(e.parentElement, t);
4972
+ function Oo(e, t) {
4973
+ return e == null ? null : e[fl](t) ? e : Oo(e.parentElement, t);
4974
4974
  }
4975
- function fl(e, t) {
4976
- return e.closest ? e.closest(t) : Io(e, t);
4975
+ function gl(e, t) {
4976
+ return e.closest ? e.closest(t) : Oo(e, t);
4977
4977
  }
4978
- function gl(e) {
4978
+ function ml(e) {
4979
4979
  return `[${ge.contextId}="${e}"]`;
4980
4980
  }
4981
- function ml(e, t) {
4981
+ function hl(e, t) {
4982
4982
  const n = t.target;
4983
- if (!ul(n))
4983
+ if (!pl(n))
4984
4984
  return process.env.NODE_ENV !== "production" && R("event.target must be a Element"), null;
4985
- const r = gl(e), o = fl(n, r);
4985
+ const r = ml(e), o = gl(n, r);
4986
4986
  return o ? Me(o) ? o : (process.env.NODE_ENV !== "production" && R("drag handle must be a HTMLElement"), null) : null;
4987
4987
  }
4988
- function hl(e, t) {
4989
- const n = ml(e, t);
4988
+ function bl(e, t) {
4989
+ const n = hl(e, t);
4990
4990
  return n ? n.getAttribute(ge.draggableId) : null;
4991
4991
  }
4992
- function bl(e, t) {
4993
- const n = `[${kt.contextId}="${e}"]`, o = bo(document, n).find((i) => i.getAttribute(kt.id) === t);
4992
+ function vl(e, t) {
4993
+ const n = `[${kt.contextId}="${e}"]`, o = vo(document, n).find((i) => i.getAttribute(kt.id) === t);
4994
4994
  return o ? Me(o) ? o : (process.env.NODE_ENV !== "production" && R("Draggable element is not a HTMLElement"), null) : null;
4995
4995
  }
4996
- function vl(e) {
4996
+ function yl(e) {
4997
4997
  e.preventDefault();
4998
4998
  }
4999
4999
  function We({
@@ -5022,7 +5022,7 @@ function We({
5022
5022
  - Check actions.isActive() if you really need to
5023
5023
  `), !1);
5024
5024
  }
5025
- function Oo({
5025
+ function Co({
5026
5026
  lockAPI: e,
5027
5027
  store: t,
5028
5028
  registry: n,
@@ -5031,9 +5031,9 @@ function Oo({
5031
5031
  if (e.isClaimed())
5032
5032
  return !1;
5033
5033
  const o = n.draggable.findById(r);
5034
- return o ? !(!o.options.isEnabled || !fo(t.getState(), r)) : (process.env.NODE_ENV !== "production" && R(`Unable to find draggable with id: ${r}`), !1);
5034
+ return o ? !(!o.options.isEnabled || !go(t.getState(), r)) : (process.env.NODE_ENV !== "production" && R(`Unable to find draggable with id: ${r}`), !1);
5035
5035
  }
5036
- function yl({
5036
+ function El({
5037
5037
  lockAPI: e,
5038
5038
  contextId: t,
5039
5039
  store: n,
@@ -5042,17 +5042,17 @@ function yl({
5042
5042
  forceSensorStop: i,
5043
5043
  sourceEvent: s
5044
5044
  }) {
5045
- if (!Oo({
5045
+ if (!Co({
5046
5046
  lockAPI: e,
5047
5047
  store: n,
5048
5048
  registry: r,
5049
5049
  draggableId: o
5050
5050
  }))
5051
5051
  return null;
5052
- const a = r.draggable.getById(o), d = bl(t, a.descriptor.id);
5052
+ const a = r.draggable.getById(o), d = vl(t, a.descriptor.id);
5053
5053
  if (!d)
5054
5054
  return process.env.NODE_ENV !== "production" && R(`Unable to find draggable element with id: ${o}`), null;
5055
- if (s && !a.options.canDragInteractiveElements && ll(d, s))
5055
+ if (s && !a.options.canDragInteractiveElements && dl(d, s))
5056
5056
  return null;
5057
5057
  const p = e.claim(i || re);
5058
5058
  let l = "PRE_DRAG";
@@ -5075,14 +5075,14 @@ function yl({
5075
5075
  function x() {
5076
5076
  e.release(), l = "COMPLETED";
5077
5077
  }
5078
- l !== "PRE_DRAG" && (x(), process.env.NODE_ENV !== "production" ? f(!1, `Cannot lift in phase ${l}`) : f()), n.dispatch(ic(E.liftActionArgs)), l = "DRAGGING";
5078
+ l !== "PRE_DRAG" && (x(), process.env.NODE_ENV !== "production" ? f(!1, `Cannot lift in phase ${l}`) : f()), n.dispatch(sc(E.liftActionArgs)), l = "DRAGGING";
5079
5079
  function S(_, U = {
5080
5080
  shouldBlockNextClick: !1
5081
5081
  }) {
5082
5082
  if (E.cleanup(), U.shouldBlockNextClick) {
5083
5083
  const T = K(window, [{
5084
5084
  eventName: "click",
5085
- fn: vl,
5085
+ fn: yl,
5086
5086
  options: {
5087
5087
  once: !0,
5088
5088
  passive: !1,
@@ -5091,7 +5091,7 @@ function yl({
5091
5091
  }]);
5092
5092
  setTimeout(T);
5093
5093
  }
5094
- x(), n.dispatch(oo({
5094
+ x(), n.dispatch(io({
5095
5095
  reason: _
5096
5096
  }));
5097
5097
  }
@@ -5110,7 +5110,7 @@ function yl({
5110
5110
  }
5111
5111
  function y(E) {
5112
5112
  const x = Ie((_) => {
5113
- b(() => ro({
5113
+ b(() => oo({
5114
5114
  client: _
5115
5115
  }));
5116
5116
  });
@@ -5131,15 +5131,15 @@ function yl({
5131
5131
  }
5132
5132
  function v() {
5133
5133
  const E = {
5134
- moveUp: () => b(gc),
5135
- moveRight: () => b(hc),
5136
- moveDown: () => b(mc),
5137
- moveLeft: () => b(bc)
5134
+ moveUp: () => b(mc),
5135
+ moveRight: () => b(bc),
5136
+ moveDown: () => b(hc),
5137
+ moveLeft: () => b(vc)
5138
5138
  };
5139
5139
  return h({
5140
5140
  liftActionArgs: {
5141
5141
  id: o,
5142
- clientSelection: dl(d),
5142
+ clientSelection: ul(d),
5143
5143
  movementMode: "SNAP"
5144
5144
  },
5145
5145
  cleanup: re,
@@ -5167,15 +5167,15 @@ function yl({
5167
5167
  abort: I
5168
5168
  };
5169
5169
  }
5170
- const El = [Ja, tl, sl];
5171
- function Dl({
5170
+ const Dl = [Za, nl, cl];
5171
+ function Nl({
5172
5172
  contextId: e,
5173
5173
  store: t,
5174
5174
  registry: n,
5175
5175
  customSensors: r,
5176
5176
  enableDefaultSensors: o
5177
5177
  }) {
5178
- const i = [...o ? El : [], ...r || []], s = Ze(() => Ma())[0], c = D(function(h, y) {
5178
+ const i = [...o ? Dl : [], ...r || []], s = Ze(() => $a())[0], c = D(function(h, y) {
5179
5179
  Re(h) && !Re(y) && s.tryAbandon();
5180
5180
  }, [s]);
5181
5181
  Y(function() {
@@ -5185,12 +5185,12 @@ function Dl({
5185
5185
  c(h, v), h = v;
5186
5186
  });
5187
5187
  }, [s, t, c]), Y(() => s.tryAbandon, [s.tryAbandon]);
5188
- const a = D((b) => Oo({
5188
+ const a = D((b) => Co({
5189
5189
  lockAPI: s,
5190
5190
  registry: n,
5191
5191
  store: t,
5192
5192
  draggableId: b
5193
- }), [s, n, t]), d = D((b, h, y) => yl({
5193
+ }), [s, n, t]), d = D((b, h, y) => El({
5194
5194
  lockAPI: s,
5195
5195
  registry: n,
5196
5196
  contextId: e,
@@ -5198,12 +5198,12 @@ function Dl({
5198
5198
  draggableId: b,
5199
5199
  forceSensorStop: h || null,
5200
5200
  sourceEvent: y && y.sourceEvent ? y.sourceEvent : null
5201
- }), [e, s, n, t]), p = D((b) => hl(e, b), [e]), l = D((b) => {
5201
+ }), [e, s, n, t]), p = D((b) => bl(e, b), [e]), l = D((b) => {
5202
5202
  const h = n.draggable.findById(b);
5203
5203
  return h ? h.options : null;
5204
5204
  }, [n.draggable]), u = D(function() {
5205
5205
  s.isClaimed() && (s.tryAbandon(), t.getState().phase !== "IDLE" && t.dispatch(rn()));
5206
- }, [s, t]), g = D(() => s.isClaimed(), [s]), m = O(() => ({
5206
+ }, [s, t]), g = D(() => s.isClaimed(), [s]), m = C(() => ({
5207
5207
  canGetLock: a,
5208
5208
  tryGetLock: d,
5209
5209
  findClosestDraggableId: p,
@@ -5211,13 +5211,13 @@ function Dl({
5211
5211
  tryReleaseLock: u,
5212
5212
  isLockClaimed: g
5213
5213
  }), [a, d, p, l, u, g]);
5214
- cl(i);
5214
+ al(i);
5215
5215
  for (let b = 0; b < i.length; b++)
5216
5216
  i[b](m);
5217
5217
  }
5218
- const Nl = (e) => ({
5218
+ const xl = (e) => ({
5219
5219
  onBeforeCapture: (t) => {
5220
- mr(() => {
5220
+ hr(() => {
5221
5221
  e.onBeforeCapture && e.onBeforeCapture(t);
5222
5222
  });
5223
5223
  },
@@ -5225,7 +5225,7 @@ const Nl = (e) => ({
5225
5225
  onDragStart: e.onDragStart,
5226
5226
  onDragEnd: e.onDragEnd,
5227
5227
  onDragUpdate: e.onDragUpdate
5228
- }), xl = (e) => ({
5228
+ }), Il = (e) => ({
5229
5229
  ..._e,
5230
5230
  ...e.autoScrollerOptions,
5231
5231
  durationDampening: {
@@ -5236,7 +5236,7 @@ const Nl = (e) => ({
5236
5236
  function De(e) {
5237
5237
  return e.current || (process.env.NODE_ENV !== "production" ? f(!1, "Could not find store from lazy ref") : f()), e.current;
5238
5238
  }
5239
- function Il(e) {
5239
+ function Ol(e) {
5240
5240
  const {
5241
5241
  contextId: t,
5242
5242
  setCallbacks: n,
@@ -5244,26 +5244,26 @@ function Il(e) {
5244
5244
  nonce: o,
5245
5245
  dragHandleUsageInstructions: i
5246
5246
  } = e, s = B(null);
5247
- La();
5248
- const c = gn(e), a = D(() => Nl(c.current), [c]), d = D(() => xl(c.current), [c]), p = Ca(t), l = _a({
5247
+ Ma();
5248
+ const c = gn(e), a = D(() => xl(c.current), [c]), d = D(() => Il(c.current), [c]), p = Sa(t), l = Pa({
5249
5249
  contextId: t,
5250
5250
  text: i
5251
- }), u = Da(t, o), g = D((T) => {
5251
+ }), u = Na(t, o), g = D((T) => {
5252
5252
  De(s).dispatch(T);
5253
- }, []), m = O(() => Cn({
5254
- publishWhileDragging: cc,
5255
- updateDroppableScroll: lc,
5256
- updateDroppableIsEnabled: dc,
5257
- updateDroppableIsCombineEnabled: uc,
5258
- collectionStarting: ac
5259
- }, g), [g]), b = Ia(), h = O(() => Qc(b, m), [b, m]), y = O(() => ha({
5260
- scrollWindow: ea,
5253
+ }, []), m = C(() => wn({
5254
+ publishWhileDragging: ac,
5255
+ updateDroppableScroll: dc,
5256
+ updateDroppableIsEnabled: uc,
5257
+ updateDroppableIsCombineEnabled: pc,
5258
+ collectionStarting: lc
5259
+ }, g), [g]), b = Oa(), h = C(() => ea(b, m), [b, m]), y = C(() => ba({
5260
+ scrollWindow: ta,
5261
5261
  scrollDroppable: h.scrollDroppable,
5262
5262
  getAutoScrollerOptions: d,
5263
- ...Cn({
5264
- move: ro
5263
+ ...wn({
5264
+ move: oo
5265
5265
  }, g)
5266
- }), [h.scrollDroppable, g, d]), v = Na(t), I = O(() => Xc({
5266
+ }), [h.scrollDroppable, g, d]), v = xa(t), I = C(() => Kc({
5267
5267
  announce: p,
5268
5268
  autoScroller: y,
5269
5269
  dimensionMarshal: h,
@@ -5278,12 +5278,12 @@ function Il(e) {
5278
5278
  }, []), E = D(() => {
5279
5279
  const T = De(s).getState();
5280
5280
  return T.phase === "DROP_ANIMATING" ? !0 : T.phase === "IDLE" ? !1 : T.isDragging;
5281
- }, []), x = O(() => ({
5281
+ }, []), x = C(() => ({
5282
5282
  isDragging: E,
5283
5283
  tryAbort: N
5284
5284
  }), [E, N]);
5285
5285
  n(x);
5286
- const S = D((T) => fo(De(s).getState(), T), []), _ = D(() => ce(De(s).getState()), []), U = O(() => ({
5286
+ const S = D((T) => go(De(s).getState(), T), []), _ = D(() => ce(De(s).getState()), []), U = C(() => ({
5287
5287
  marshal: h,
5288
5288
  focus: v,
5289
5289
  contextId: t,
@@ -5292,7 +5292,7 @@ function Il(e) {
5292
5292
  dragHandleUsageInstructionsId: l,
5293
5293
  registry: b
5294
5294
  }), [t, h, l, v, S, _, b]);
5295
- return Dl({
5295
+ return Nl({
5296
5296
  contextId: t,
5297
5297
  store: I,
5298
5298
  registry: b,
@@ -5300,17 +5300,17 @@ function Il(e) {
5300
5300
  enableDefaultSensors: e.enableDefaultSensors !== !1
5301
5301
  }), te(() => N, [N]), V.createElement(ot.Provider, {
5302
5302
  value: U
5303
- }, V.createElement(Li, {
5303
+ }, V.createElement(Mi, {
5304
5304
  context: un,
5305
5305
  store: I
5306
5306
  }, e.children));
5307
5307
  }
5308
- function Ol() {
5308
+ function Cl() {
5309
5309
  return V.useId();
5310
5310
  }
5311
5311
  function wl(e) {
5312
- const t = Ol(), n = e.dragHandleUsageInstructions || He.dragHandleUsageInstructions;
5313
- return V.createElement(Yi, null, (r) => V.createElement(Il, {
5312
+ const t = Cl(), n = e.dragHandleUsageInstructions || He.dragHandleUsageInstructions;
5313
+ return V.createElement(Xi, null, (r) => V.createElement(Ol, {
5314
5314
  nonce: e.nonce,
5315
5315
  contextId: t,
5316
5316
  setCallbacks: r,
@@ -5328,16 +5328,16 @@ function wl(e) {
5328
5328
  const cr = {
5329
5329
  dragging: 5e3,
5330
5330
  dropAnimating: 4500
5331
- }, Cl = (e, t) => t ? xe.drop(t.duration) : e ? xe.snap : xe.fluid, Sl = (e, t) => {
5331
+ }, Sl = (e, t) => t ? xe.drop(t.duration) : e ? xe.snap : xe.fluid, Al = (e, t) => {
5332
5332
  if (e)
5333
5333
  return t ? Ae.opacity.drop : Ae.opacity.combining;
5334
- }, Al = (e) => e.forceShouldAnimate != null ? e.forceShouldAnimate : e.mode === "SNAP";
5335
- function _l(e) {
5334
+ }, _l = (e) => e.forceShouldAnimate != null ? e.forceShouldAnimate : e.mode === "SNAP";
5335
+ function Pl(e) {
5336
5336
  const n = e.dimension.client, {
5337
5337
  offset: r,
5338
5338
  combineWith: o,
5339
5339
  dropping: i
5340
- } = e, s = !!o, c = Al(e), a = !!i, d = a ? Gt.drop(r, s) : Gt.moveTo(r);
5340
+ } = e, s = !!o, c = _l(e), a = !!i, d = a ? Gt.drop(r, s) : Gt.moveTo(r);
5341
5341
  return {
5342
5342
  position: "fixed",
5343
5343
  top: n.marginBox.top,
@@ -5345,24 +5345,24 @@ function _l(e) {
5345
5345
  boxSizing: "border-box",
5346
5346
  width: n.borderBox.width,
5347
5347
  height: n.borderBox.height,
5348
- transition: Cl(c, i),
5348
+ transition: Sl(c, i),
5349
5349
  transform: d,
5350
- opacity: Sl(s, a),
5350
+ opacity: Al(s, a),
5351
5351
  zIndex: a ? cr.dropAnimating : cr.dragging,
5352
5352
  pointerEvents: "none"
5353
5353
  };
5354
5354
  }
5355
- function Pl(e) {
5355
+ function Rl(e) {
5356
5356
  return {
5357
5357
  transform: Gt.moveTo(e.offset),
5358
5358
  transition: e.shouldAnimateDisplacement ? void 0 : "none"
5359
5359
  };
5360
5360
  }
5361
- function Rl(e) {
5362
- return e.type === "DRAGGING" ? _l(e) : Pl(e);
5361
+ function Tl(e) {
5362
+ return e.type === "DRAGGING" ? Pl(e) : Rl(e);
5363
5363
  }
5364
- function Tl(e, t, n = G) {
5365
- const r = window.getComputedStyle(t), o = t.getBoundingClientRect(), i = Pr(o, r), s = qe(i, n), c = {
5364
+ function Bl(e, t, n = G) {
5365
+ const r = window.getComputedStyle(t), o = t.getBoundingClientRect(), i = Rr(o, r), s = qe(i, n), c = {
5366
5366
  client: i,
5367
5367
  tagName: t.tagName.toLowerCase(),
5368
5368
  display: r.display
@@ -5378,7 +5378,7 @@ function Tl(e, t, n = G) {
5378
5378
  page: s
5379
5379
  };
5380
5380
  }
5381
- function Bl(e) {
5381
+ function Vl(e) {
5382
5382
  const t = pn("draggable"), {
5383
5383
  descriptor: n,
5384
5384
  registry: r,
@@ -5386,14 +5386,14 @@ function Bl(e) {
5386
5386
  canDragInteractiveElements: i,
5387
5387
  shouldRespectForcePress: s,
5388
5388
  isEnabled: c
5389
- } = e, a = O(() => ({
5389
+ } = e, a = C(() => ({
5390
5390
  canDragInteractiveElements: i,
5391
5391
  shouldRespectForcePress: s,
5392
5392
  isEnabled: c
5393
5393
  }), [i, c, s]), d = D((g) => {
5394
5394
  const m = o();
5395
- return m || (process.env.NODE_ENV !== "production" ? f(!1, "Cannot get dimension when no ref is set") : f()), Tl(n, m, g);
5396
- }, [n, o]), p = O(() => ({
5395
+ return m || (process.env.NODE_ENV !== "production" ? f(!1, "Cannot get dimension when no ref is set") : f()), Bl(n, m, g);
5396
+ }, [n, o]), p = C(() => ({
5397
5397
  uniqueId: t,
5398
5398
  descriptor: n,
5399
5399
  options: a,
@@ -5417,17 +5417,17 @@ function wo(e) {
5417
5417
  https://github.com/hello-pangea/dnd/blob/main/docs/guides/using-inner-ref.md
5418
5418
  `) : f());
5419
5419
  }
5420
- function Vl(e, t, n) {
5420
+ function Ll(e, t, n) {
5421
5421
  $e(() => {
5422
5422
  function r(i) {
5423
5423
  return `Draggable[id: ${i}]: `;
5424
5424
  }
5425
5425
  const o = e.draggableId;
5426
5426
  o || (process.env.NODE_ENV !== "production" ? f(!1, "Draggable requires a draggableId") : f(!1)), typeof o != "string" && (process.env.NODE_ENV !== "production" ? f(!1, `Draggable requires a [string] draggableId.
5427
- Provided: [type: ${typeof o}] (value: ${o})`) : f(!1)), Number.isInteger(e.index) || (process.env.NODE_ENV !== "production" ? f(!1, `${r(o)} requires an integer index prop`) : f(!1)), e.mapped.type !== "DRAGGING" && (wo(n()), e.isEnabled && (yo(t, o) || (process.env.NODE_ENV !== "production" ? f(!1, `${r(o)} Unable to find drag handle`) : f(!1))));
5427
+ Provided: [type: ${typeof o}] (value: ${o})`) : f(!1)), Number.isInteger(e.index) || (process.env.NODE_ENV !== "production" ? f(!1, `${r(o)} requires an integer index prop`) : f(!1)), e.mapped.type !== "DRAGGING" && (wo(n()), e.isEnabled && (Eo(t, o) || (process.env.NODE_ENV !== "production" ? f(!1, `${r(o)} Unable to find drag handle`) : f(!1))));
5428
5428
  });
5429
5429
  }
5430
- function Ll(e) {
5430
+ function Ml(e) {
5431
5431
  fn(() => {
5432
5432
  const t = B(e);
5433
5433
  $e(() => {
@@ -5436,13 +5436,13 @@ function Ll(e) {
5436
5436
  });
5437
5437
  }
5438
5438
  function Je(e) {
5439
- const t = gr(e);
5439
+ const t = mr(e);
5440
5440
  return t || (process.env.NODE_ENV !== "production" ? f(!1, "Could not find required context") : f()), t;
5441
5441
  }
5442
- function Ml(e) {
5442
+ function $l(e) {
5443
5443
  e.preventDefault();
5444
5444
  }
5445
- const $l = (e) => {
5445
+ const Gl = (e) => {
5446
5446
  const t = B(null), n = D((x = null) => {
5447
5447
  t.current = x;
5448
5448
  }, []), r = D(() => t.current, []), {
@@ -5452,7 +5452,7 @@ const $l = (e) => {
5452
5452
  } = Je(ot), {
5453
5453
  type: c,
5454
5454
  droppableId: a
5455
- } = Je(hn), d = O(() => ({
5455
+ } = Je(hn), d = C(() => ({
5456
5456
  id: e.draggableId,
5457
5457
  index: e.index,
5458
5458
  type: c,
@@ -5467,8 +5467,8 @@ const $l = (e) => {
5467
5467
  mapped: h,
5468
5468
  dropAnimationFinished: y
5469
5469
  } = e;
5470
- if (Vl(e, o, r), Ll(b), !b) {
5471
- const x = O(() => ({
5470
+ if (Ll(e, o, r), Ml(b), !b) {
5471
+ const x = C(() => ({
5472
5472
  descriptor: d,
5473
5473
  registry: s,
5474
5474
  getDraggableRef: r,
@@ -5476,20 +5476,20 @@ const $l = (e) => {
5476
5476
  shouldRespectForcePress: g,
5477
5477
  isEnabled: u
5478
5478
  }), [d, s, r, m, g, u]);
5479
- Bl(x);
5479
+ Vl(x);
5480
5480
  }
5481
- const v = O(() => u ? {
5481
+ const v = C(() => u ? {
5482
5482
  tabIndex: 0,
5483
5483
  role: "button",
5484
5484
  "aria-describedby": i,
5485
5485
  "data-rfd-drag-handle-draggable-id": l,
5486
5486
  "data-rfd-drag-handle-context-id": o,
5487
5487
  draggable: !1,
5488
- onDragStart: Ml
5488
+ onDragStart: $l
5489
5489
  } : null, [o, i, l, u]), I = D((x) => {
5490
- h.type === "DRAGGING" && h.dropping && x.propertyName === "transform" && mr(y);
5491
- }, [y, h]), N = O(() => {
5492
- const x = Rl(h), S = h.type === "DRAGGING" && h.dropping ? I : void 0;
5490
+ h.type === "DRAGGING" && h.dropping && x.propertyName === "transform" && hr(y);
5491
+ }, [y, h]), N = C(() => {
5492
+ const x = Tl(h), S = h.type === "DRAGGING" && h.dropping ? I : void 0;
5493
5493
  return {
5494
5494
  innerRef: n,
5495
5495
  draggableProps: {
@@ -5500,7 +5500,7 @@ const $l = (e) => {
5500
5500
  },
5501
5501
  dragHandleProps: v
5502
5502
  };
5503
- }, [o, v, l, h, I, n]), E = O(() => ({
5503
+ }, [o, v, l, h, I, n]), E = C(() => ({
5504
5504
  draggableId: d.id,
5505
5505
  type: d.type,
5506
5506
  source: {
@@ -5510,15 +5510,15 @@ const $l = (e) => {
5510
5510
  }), [d.droppableId, d.id, d.index, d.type]);
5511
5511
  return V.createElement(V.Fragment, null, p(N, h.snapshot, E));
5512
5512
  };
5513
- var Co = (e, t) => e === t, So = (e) => {
5513
+ var So = (e, t) => e === t, Ao = (e) => {
5514
5514
  const {
5515
5515
  combine: t,
5516
5516
  destination: n
5517
5517
  } = e;
5518
5518
  return n ? n.droppableId : t ? t.droppableId : null;
5519
5519
  };
5520
- const Gl = (e) => e.combine ? e.combine.draggableId : null, Fl = (e) => e.at && e.at.type === "COMBINE" ? e.at.combine.draggableId : null;
5521
- function kl() {
5520
+ const Fl = (e) => e.combine ? e.combine.draggableId : null, kl = (e) => e.at && e.at.type === "COMBINE" ? e.at.combine.draggableId : null;
5521
+ function Wl() {
5522
5522
  const e = $((o, i) => ({
5523
5523
  x: o,
5524
5524
  y: i
@@ -5548,14 +5548,14 @@ function kl() {
5548
5548
  if (Re(o)) {
5549
5549
  if (o.critical.draggable.id !== i.draggableId)
5550
5550
  return null;
5551
- const s = o.current.client.offset, c = o.dimensions.draggables[i.draggableId], a = q(o.impact), d = Fl(o.impact), p = o.forceShouldAnimate;
5551
+ const s = o.current.client.offset, c = o.dimensions.draggables[i.draggableId], a = q(o.impact), d = kl(o.impact), p = o.forceShouldAnimate;
5552
5552
  return n(e(s.x, s.y), o.movementMode, c, i.isClone, a, d, p);
5553
5553
  }
5554
5554
  if (o.phase === "DROP_ANIMATING") {
5555
5555
  const s = o.completed;
5556
5556
  if (s.result.draggableId !== i.draggableId)
5557
5557
  return null;
5558
- const c = i.isClone, a = o.dimensions.draggables[i.draggableId], d = s.result, p = d.mode, l = So(d), u = Gl(d), m = {
5558
+ const c = i.isClone, a = o.dimensions.draggables[i.draggableId], d = s.result, p = d.mode, l = Ao(d), u = Fl(d), m = {
5559
5559
  duration: o.dropDuration,
5560
5560
  curve: sn.drop,
5561
5561
  moveTo: o.newHomeClientOffset,
@@ -5579,7 +5579,7 @@ function kl() {
5579
5579
  return null;
5580
5580
  };
5581
5581
  }
5582
- function Ao(e = null) {
5582
+ function _o(e = null) {
5583
5583
  return {
5584
5584
  isDragging: !1,
5585
5585
  isDropAnimating: !1,
@@ -5591,20 +5591,20 @@ function Ao(e = null) {
5591
5591
  combineWith: null
5592
5592
  };
5593
5593
  }
5594
- const Wl = {
5594
+ const Ul = {
5595
5595
  mapped: {
5596
5596
  type: "SECONDARY",
5597
5597
  offset: G,
5598
5598
  combineTargetFor: null,
5599
5599
  shouldAnimateDisplacement: !0,
5600
- snapshot: Ao(null)
5600
+ snapshot: _o(null)
5601
5601
  }
5602
5602
  };
5603
- function Ul() {
5603
+ function Hl() {
5604
5604
  const e = $((s, c) => ({
5605
5605
  x: s,
5606
5606
  y: c
5607
- })), t = $(Ao), n = $((s, c = null, a) => ({
5607
+ })), t = $(_o), n = $((s, c = null, a) => ({
5608
5608
  mapped: {
5609
5609
  type: "SECONDARY",
5610
5610
  offset: s,
@@ -5637,44 +5637,44 @@ function Ul() {
5637
5637
  return null;
5638
5638
  };
5639
5639
  }
5640
- const Hl = () => {
5641
- const e = kl(), t = Ul();
5642
- return (r, o) => e(r, o) || t(r, o) || Wl;
5643
- }, zl = {
5644
- dropAnimationFinished: io
5645
- }, jl = _r(Hl, zl, null, {
5640
+ const zl = () => {
5641
+ const e = Wl(), t = Hl();
5642
+ return (r, o) => e(r, o) || t(r, o) || Ul;
5643
+ }, jl = {
5644
+ dropAnimationFinished: so
5645
+ }, ql = Pr(zl, jl, null, {
5646
5646
  context: un,
5647
- areStatePropsEqual: Co
5648
- })($l);
5649
- function _o(e) {
5650
- return Je(hn).isUsingCloneFor === e.draggableId && !e.isClone ? null : V.createElement(jl, e);
5647
+ areStatePropsEqual: So
5648
+ })(Gl);
5649
+ function Po(e) {
5650
+ return Je(hn).isUsingCloneFor === e.draggableId && !e.isClone ? null : V.createElement(ql, e);
5651
5651
  }
5652
- function ql(e) {
5652
+ function Yl(e) {
5653
5653
  const t = typeof e.isDragDisabled == "boolean" ? !e.isDragDisabled : !0, n = !!e.disableInteractiveElementBlocking, r = !!e.shouldRespectForcePress;
5654
- return V.createElement(_o, Ye({}, e, {
5654
+ return V.createElement(Po, Ye({}, e, {
5655
5655
  isClone: !1,
5656
5656
  isEnabled: t,
5657
5657
  canDragInteractiveElements: n,
5658
5658
  shouldRespectForcePress: r
5659
5659
  }));
5660
5660
  }
5661
- const bn = (e) => (t) => e === t, Yl = bn("scroll"), Xl = bn("auto"), Kl = bn("visible"), ar = (e, t) => t(e.overflowX) || t(e.overflowY), Jl = (e, t) => t(e.overflowX) && t(e.overflowY), Po = (e) => {
5661
+ const bn = (e) => (t) => e === t, Xl = bn("scroll"), Kl = bn("auto"), Jl = bn("visible"), ar = (e, t) => t(e.overflowX) || t(e.overflowY), Zl = (e, t) => t(e.overflowX) && t(e.overflowY), Ro = (e) => {
5662
5662
  const t = window.getComputedStyle(e), n = {
5663
5663
  overflowX: t.overflowX,
5664
5664
  overflowY: t.overflowY
5665
5665
  };
5666
- return ar(n, Yl) || ar(n, Xl);
5667
- }, Zl = () => {
5666
+ return ar(n, Xl) || ar(n, Kl);
5667
+ }, Ql = () => {
5668
5668
  if (process.env.NODE_ENV === "production")
5669
5669
  return !1;
5670
5670
  const e = Pe(), t = document.documentElement;
5671
- if (t || (process.env.NODE_ENV, f()), !Po(e))
5671
+ if (t || (process.env.NODE_ENV, f()), !Ro(e))
5672
5672
  return !1;
5673
5673
  const n = window.getComputedStyle(t), r = {
5674
5674
  overflowX: n.overflowX,
5675
5675
  overflowY: n.overflowY
5676
5676
  };
5677
- return Jl(r, Kl) || process.env.NODE_ENV !== "production" && R(`
5677
+ return Zl(r, Jl) || process.env.NODE_ENV !== "production" && R(`
5678
5678
  We have detected that your <body> element might be a scroll container.
5679
5679
  We have found no reliable way of detecting whether the <body> element is a scroll container.
5680
5680
  Under most circumstances a <body> scroll bar will be on the <html> element (document.documentElement)
@@ -5684,8 +5684,8 @@ const bn = (e) => (t) => e === t, Yl = bn("scroll"), Xl = bn("auto"), Kl = bn("v
5684
5684
 
5685
5685
  More information: https://github.com/hello-pangea/dnd/blob/main/docs/guides/how-we-detect-scroll-containers.md
5686
5686
  `), !1;
5687
- }, vn = (e) => e == null ? null : e === document.body ? Zl() ? e : null : e === document.documentElement ? null : Po(e) ? e : vn(e.parentElement);
5688
- var Ql = (e) => {
5687
+ }, vn = (e) => e == null ? null : e === document.body ? Ql() ? e : null : e === document.documentElement ? null : Ro(e) ? e : vn(e.parentElement);
5688
+ var ed = (e) => {
5689
5689
  !e || !vn(e.parentElement) || process.env.NODE_ENV !== "production" && R(`
5690
5690
  Droppable: unsupported nested scroll container detected.
5691
5691
  A Droppable can only have one scroll parent (which can be itself)
@@ -5697,14 +5697,14 @@ var Ql = (e) => {
5697
5697
  x: e.scrollLeft,
5698
5698
  y: e.scrollTop
5699
5699
  });
5700
- const Ro = (e) => e ? window.getComputedStyle(e).position === "fixed" ? !0 : Ro(e.parentElement) : !1;
5701
- var ed = (e) => {
5702
- const t = vn(e), n = Ro(e);
5700
+ const To = (e) => e ? window.getComputedStyle(e).position === "fixed" ? !0 : To(e.parentElement) : !1;
5701
+ var td = (e) => {
5702
+ const t = vn(e), n = To(e);
5703
5703
  return {
5704
5704
  closestScrollable: t,
5705
5705
  isFixedOnPage: n
5706
5706
  };
5707
- }, td = ({
5707
+ }, nd = ({
5708
5708
  descriptor: e,
5709
5709
  isEnabled: t,
5710
5710
  isCombineEnabled: n,
@@ -5720,7 +5720,7 @@ var ed = (e) => {
5720
5720
  const {
5721
5721
  scrollSize: u,
5722
5722
  client: g
5723
- } = c, m = lo({
5723
+ } = c, m = uo({
5724
5724
  scrollHeight: u.scrollHeight,
5725
5725
  scrollWidth: u.scrollWidth,
5726
5726
  height: g.paddingBox.height,
@@ -5741,7 +5741,7 @@ var ed = (e) => {
5741
5741
  }
5742
5742
  }
5743
5743
  };
5744
- })(), d = o === "vertical" ? Zt : Wr, p = pe({
5744
+ })(), d = o === "vertical" ? Zt : Ur, p = pe({
5745
5745
  page: s,
5746
5746
  withPlaceholder: null,
5747
5747
  axis: d,
@@ -5759,8 +5759,8 @@ var ed = (e) => {
5759
5759
  subject: p
5760
5760
  };
5761
5761
  };
5762
- const nd = (e, t) => {
5763
- const n = Rr(e);
5762
+ const rd = (e, t) => {
5763
+ const n = Tr(e);
5764
5764
  if (!t || e !== t)
5765
5765
  return n;
5766
5766
  const r = n.paddingBox.top - t.scrollTop, o = n.paddingBox.left - t.scrollLeft, i = r + t.scrollHeight, s = o + t.scrollWidth, a = Yt({
@@ -5776,7 +5776,7 @@ const nd = (e, t) => {
5776
5776
  padding: n.padding
5777
5777
  });
5778
5778
  };
5779
- var rd = ({
5779
+ var od = ({
5780
5780
  ref: e,
5781
5781
  descriptor: t,
5782
5782
  env: n,
@@ -5786,10 +5786,10 @@ var rd = ({
5786
5786
  isCombineEnabled: s,
5787
5787
  shouldClipSubject: c
5788
5788
  }) => {
5789
- const a = n.closestScrollable, d = nd(e, a), p = qe(d, r), l = (() => {
5789
+ const a = n.closestScrollable, d = rd(e, a), p = qe(d, r), l = (() => {
5790
5790
  if (!a)
5791
5791
  return null;
5792
- const g = Rr(a), m = {
5792
+ const g = Tr(a), m = {
5793
5793
  scrollHeight: a.scrollHeight,
5794
5794
  scrollWidth: a.scrollWidth
5795
5795
  };
@@ -5801,7 +5801,7 @@ var rd = ({
5801
5801
  shouldClipSubject: c
5802
5802
  };
5803
5803
  })();
5804
- return td({
5804
+ return nd({
5805
5805
  descriptor: t,
5806
5806
  isEnabled: !i,
5807
5807
  isCombineEnabled: s,
@@ -5812,22 +5812,22 @@ var rd = ({
5812
5812
  closest: l
5813
5813
  });
5814
5814
  };
5815
- const od = {
5815
+ const id = {
5816
5816
  passive: !1
5817
- }, id = {
5817
+ }, sd = {
5818
5818
  passive: !0
5819
5819
  };
5820
- var lr = (e) => e.shouldPublishImmediately ? od : id;
5820
+ var lr = (e) => e.shouldPublishImmediately ? id : sd;
5821
5821
  const Ue = (e) => e && e.env.closestScrollable || null;
5822
- function sd(e) {
5822
+ function cd(e) {
5823
5823
  const t = B(null), n = Je(ot), r = pn("droppable"), {
5824
5824
  registry: o,
5825
5825
  marshal: i
5826
- } = n, s = gn(e), c = O(() => ({
5826
+ } = n, s = gn(e), c = C(() => ({
5827
5827
  id: e.droppableId,
5828
5828
  type: e.type,
5829
5829
  mode: e.mode
5830
- }), [e.droppableId, e.mode, e.type]), a = B(c), d = O(() => $((N, E) => {
5830
+ }), [e.droppableId, e.mode, e.type]), a = B(c), d = C(() => $((N, E) => {
5831
5831
  t.current || (process.env.NODE_ENV !== "production" ? f(!1, "Can only update scroll when dragging") : f());
5832
5832
  const x = {
5833
5833
  x: N,
@@ -5840,7 +5840,7 @@ function sd(e) {
5840
5840
  }, []), l = D(() => {
5841
5841
  const N = p();
5842
5842
  d(N.x, N.y);
5843
- }, [p, d]), u = O(() => Ie(l), [l]), g = D(() => {
5843
+ }, [p, d]), u = C(() => Ie(l), [l]), g = D(() => {
5844
5844
  const N = t.current, E = Ue(N);
5845
5845
  if (N && E || (process.env.NODE_ENV !== "production" ? f(!1, "Could not find scroll options while scrolling") : f()), N.scrollOptions.shouldPublishImmediately) {
5846
5846
  l();
@@ -5851,14 +5851,14 @@ function sd(e) {
5851
5851
  t.current && (process.env.NODE_ENV !== "production" ? f(!1, "Cannot collect a droppable while a drag is occurring") : f());
5852
5852
  const x = s.current, S = x.getDroppableRef();
5853
5853
  S || (process.env.NODE_ENV !== "production" ? f(!1, "Cannot collect without a droppable ref") : f());
5854
- const _ = ed(S), U = {
5854
+ const _ = td(S), U = {
5855
5855
  ref: S,
5856
5856
  descriptor: c,
5857
5857
  env: _,
5858
5858
  scrollOptions: E
5859
5859
  };
5860
5860
  t.current = U;
5861
- const T = rd({
5861
+ const T = od({
5862
5862
  ref: S,
5863
5863
  descriptor: c,
5864
5864
  env: _,
@@ -5868,7 +5868,7 @@ function sd(e) {
5868
5868
  isCombineEnabled: x.isCombineEnabled,
5869
5869
  shouldClipSubject: !x.ignoreContainerClipping
5870
5870
  }), H = _.closestScrollable;
5871
- return H && (H.setAttribute(nr.contextId, n.contextId), H.addEventListener("scroll", g, lr(U.scrollOptions)), process.env.NODE_ENV !== "production" && Ql(H)), T;
5871
+ return H && (H.setAttribute(nr.contextId, n.contextId), H.addEventListener("scroll", g, lr(U.scrollOptions)), process.env.NODE_ENV !== "production" && ed(H)), T;
5872
5872
  }, [n.contextId, c, g, s]), b = D(() => {
5873
5873
  const N = t.current, E = Ue(N);
5874
5874
  return N && E || (process.env.NODE_ENV !== "production" ? f(!1, "Can only recollect Droppable client for Droppables that have a scroll container") : f()), Wt(E);
@@ -5882,12 +5882,12 @@ function sd(e) {
5882
5882
  E || (process.env.NODE_ENV !== "production" ? f(!1, "Cannot scroll when there is no drag") : f());
5883
5883
  const x = Ue(E);
5884
5884
  x || (process.env.NODE_ENV !== "production" ? f(!1, "Cannot scroll a droppable with no closest scrollable") : f()), x.scrollTop += N.y, x.scrollLeft += N.x;
5885
- }, []), v = O(() => ({
5885
+ }, []), v = C(() => ({
5886
5886
  getDimensionAndWatchScroll: m,
5887
5887
  getScrollWhileDragging: b,
5888
5888
  dragStopped: h,
5889
5889
  scroll: y
5890
- }), [h, m, b, y]), I = O(() => ({
5890
+ }), [h, m, b, y]), I = C(() => ({
5891
5891
  uniqueId: r,
5892
5892
  descriptor: c,
5893
5893
  callbacks: v
@@ -5900,13 +5900,13 @@ function sd(e) {
5900
5900
  t.current && i.updateDroppableIsCombineEnabled(a.current.id, e.isCombineEnabled);
5901
5901
  }, [e.isCombineEnabled, i]);
5902
5902
  }
5903
- function Ct() {
5903
+ function wt() {
5904
5904
  }
5905
5905
  const dr = {
5906
5906
  width: 0,
5907
5907
  height: 0,
5908
- margin: ts
5909
- }, cd = ({
5908
+ margin: ns
5909
+ }, ad = ({
5910
5910
  isAnimatingOpenOnMount: e,
5911
5911
  placeholder: t,
5912
5912
  animate: n
@@ -5914,12 +5914,12 @@ const dr = {
5914
5914
  height: t.client.borderBox.height,
5915
5915
  width: t.client.borderBox.width,
5916
5916
  margin: t.client.margin
5917
- }, ad = ({
5917
+ }, ld = ({
5918
5918
  isAnimatingOpenOnMount: e,
5919
5919
  placeholder: t,
5920
5920
  animate: n
5921
5921
  }) => {
5922
- const r = cd({
5922
+ const r = ad({
5923
5923
  isAnimatingOpenOnMount: e,
5924
5924
  placeholder: t,
5925
5925
  animate: n
@@ -5938,7 +5938,7 @@ const dr = {
5938
5938
  pointerEvents: "none",
5939
5939
  transition: n !== "none" ? xe.placeholder : null
5940
5940
  };
5941
- }, ld = (e) => {
5941
+ }, dd = (e) => {
5942
5942
  const t = B(null), n = D(() => {
5943
5943
  t.current && (clearTimeout(t.current), t.current = null);
5944
5944
  }, []), {
@@ -5947,12 +5947,12 @@ const dr = {
5947
5947
  onClose: i,
5948
5948
  contextId: s
5949
5949
  } = e, [c, a] = Ze(e.animate === "open");
5950
- te(() => c ? r !== "open" ? (n(), a(!1), Ct) : t.current ? Ct : (t.current = setTimeout(() => {
5950
+ te(() => c ? r !== "open" ? (n(), a(!1), wt) : t.current ? wt : (t.current = setTimeout(() => {
5951
5951
  t.current = null, a(!1);
5952
- }), n) : Ct, [r, c, n]);
5952
+ }), n) : wt, [r, c, n]);
5953
5953
  const d = D((l) => {
5954
5954
  l.propertyName === "height" && (o(), r === "close" && i());
5955
- }, [r, i, o]), p = ad({
5955
+ }, [r, i, o]), p = ld({
5956
5956
  isAnimatingOpenOnMount: c,
5957
5957
  animate: e.animate,
5958
5958
  placeholder: e.placeholder
@@ -5964,14 +5964,14 @@ const dr = {
5964
5964
  ref: e.innerRef
5965
5965
  });
5966
5966
  };
5967
- var dd = V.memo(ld);
5967
+ var ud = V.memo(dd);
5968
5968
  function St(e) {
5969
5969
  return typeof e == "boolean";
5970
5970
  }
5971
5971
  function At(e, t) {
5972
5972
  t.forEach((n) => n(e));
5973
5973
  }
5974
- const ud = [function({
5974
+ const pd = [function({
5975
5975
  props: t
5976
5976
  }) {
5977
5977
  t.droppableId || (process.env.NODE_ENV !== "production" ? f(!1, "A Droppable requires a droppableId prop") : f()), typeof t.droppableId != "string" && (process.env.NODE_ENV !== "production" ? f(!1, `A Droppable requires a [string] droppableId. Provided: [${typeof t.droppableId}]`) : f());
@@ -5983,7 +5983,7 @@ const ud = [function({
5983
5983
  getDroppableRef: t
5984
5984
  }) {
5985
5985
  wo(t());
5986
- }], pd = [function({
5986
+ }], fd = [function({
5987
5987
  props: t,
5988
5988
  getPlaceholderRef: n
5989
5989
  }) {
@@ -5994,7 +5994,7 @@ const ud = [function({
5994
5994
  Please be sure to add the {provided.placeholder} React Node as a child of your Droppable.
5995
5995
  More information: https://github.com/hello-pangea/dnd/blob/main/docs/api/droppable.md
5996
5996
  `);
5997
- }], fd = [function({
5997
+ }], gd = [function({
5998
5998
  props: t
5999
5999
  }) {
6000
6000
  t.renderClone || (process.env.NODE_ENV !== "production" ? f(!1, "Must provide a clone render function (renderClone) for virtual lists") : f());
@@ -6003,12 +6003,12 @@ const ud = [function({
6003
6003
  }) {
6004
6004
  t() && (process.env.NODE_ENV !== "production" ? f(!1, "Expected virtual list to not have a placeholder") : f());
6005
6005
  }];
6006
- function gd(e) {
6006
+ function md(e) {
6007
6007
  $e(() => {
6008
- At(e, ud), e.props.mode === "standard" && At(e, pd), e.props.mode === "virtual" && At(e, fd);
6008
+ At(e, pd), e.props.mode === "standard" && At(e, fd), e.props.mode === "virtual" && At(e, gd);
6009
6009
  });
6010
6010
  }
6011
- class md extends V.PureComponent {
6011
+ class hd extends V.PureComponent {
6012
6012
  constructor(...t) {
6013
6013
  super(...t), this.state = {
6014
6014
  isVisible: !!this.props.on,
@@ -6050,8 +6050,8 @@ class md extends V.PureComponent {
6050
6050
  return this.props.children(t);
6051
6051
  }
6052
6052
  }
6053
- const hd = (e) => {
6054
- const t = gr(ot);
6053
+ const bd = (e) => {
6054
+ const t = mr(ot);
6055
6055
  t || (process.env.NODE_ENV !== "production" ? f(!1, "Could not find app context") : f());
6056
6056
  const {
6057
6057
  contextId: n,
@@ -6074,17 +6074,17 @@ const hd = (e) => {
6074
6074
  }, []), N = D(() => i.current, []), E = D((M = null) => {
6075
6075
  i.current = M;
6076
6076
  }, []);
6077
- gd({
6077
+ md({
6078
6078
  props: e,
6079
6079
  getDroppableRef: v,
6080
6080
  getPlaceholderRef: N
6081
6081
  });
6082
6082
  const x = D(() => {
6083
6083
  r() && h({
6084
- maxScroll: po()
6084
+ maxScroll: fo()
6085
6085
  });
6086
6086
  }, [r, h]);
6087
- sd({
6087
+ cd({
6088
6088
  droppableId: c,
6089
6089
  type: a,
6090
6090
  mode: d,
@@ -6094,28 +6094,28 @@ const hd = (e) => {
6094
6094
  ignoreContainerClipping: l,
6095
6095
  getDroppableRef: v
6096
6096
  });
6097
- const S = O(() => V.createElement(md, {
6097
+ const S = C(() => V.createElement(hd, {
6098
6098
  on: e.placeholder,
6099
6099
  shouldAnimate: e.shouldAnimatePlaceholder
6100
6100
  }, ({
6101
6101
  onClose: M,
6102
6102
  data: Q,
6103
6103
  animate: de
6104
- }) => V.createElement(dd, {
6104
+ }) => V.createElement(ud, {
6105
6105
  placeholder: Q,
6106
6106
  onClose: M,
6107
6107
  innerRef: E,
6108
6108
  animate: de,
6109
6109
  contextId: n,
6110
6110
  onTransitionEnd: x
6111
- })), [n, x, e.placeholder, e.shouldAnimatePlaceholder, E]), _ = O(() => ({
6111
+ })), [n, x, e.placeholder, e.shouldAnimatePlaceholder, E]), _ = C(() => ({
6112
6112
  innerRef: I,
6113
6113
  placeholder: S,
6114
6114
  droppableProps: {
6115
6115
  "data-rfd-droppable-id": c,
6116
6116
  "data-rfd-droppable-context-id": n
6117
6117
  }
6118
- }), [n, c, S, I]), U = b ? b.dragging.draggableId : null, T = O(() => ({
6118
+ }), [n, c, S, I]), U = b ? b.dragging.draggableId : null, T = C(() => ({
6119
6119
  droppableId: c,
6120
6120
  type: a,
6121
6121
  isUsingCloneFor: U
@@ -6126,7 +6126,7 @@ const hd = (e) => {
6126
6126
  const {
6127
6127
  dragging: M,
6128
6128
  render: Q
6129
- } = b, de = V.createElement(_o, {
6129
+ } = b, de = V.createElement(Po, {
6130
6130
  draggableId: M.draggableId,
6131
6131
  index: M.source.index,
6132
6132
  isClone: !0,
@@ -6134,13 +6134,13 @@ const hd = (e) => {
6134
6134
  shouldRespectForcePress: !1,
6135
6135
  canDragInteractiveElements: !0
6136
6136
  }, (ee, Ge) => Q(ee, Ge, M));
6137
- return Lo.createPortal(de, y());
6137
+ return Mo.createPortal(de, y());
6138
6138
  }
6139
6139
  return V.createElement(hn.Provider, {
6140
6140
  value: T
6141
6141
  }, s(_, m), H());
6142
6142
  };
6143
- function bd() {
6143
+ function vd() {
6144
6144
  return document.body || (process.env.NODE_ENV !== "production" ? f(!1, "document.body is not ready") : f()), document.body;
6145
6145
  }
6146
6146
  const ur = {
@@ -6151,8 +6151,8 @@ const ur = {
6151
6151
  isCombineEnabled: !1,
6152
6152
  ignoreContainerClipping: !1,
6153
6153
  renderClone: null,
6154
- getContainerForClone: bd
6155
- }, To = (e) => {
6154
+ getContainerForClone: vd
6155
+ }, Bo = (e) => {
6156
6156
  let t = {
6157
6157
  ...e
6158
6158
  }, n;
@@ -6162,7 +6162,7 @@ const ur = {
6162
6162
  [n]: ur[n]
6163
6163
  });
6164
6164
  return t;
6165
- }, _t = (e, t) => e === t.droppable.type, pr = (e, t) => t.draggables[e.draggable.id], vd = () => {
6165
+ }, _t = (e, t) => e === t.droppable.type, pr = (e, t) => t.draggables[e.draggable.id], yd = () => {
6166
6166
  const e = {
6167
6167
  placeholder: null,
6168
6168
  shouldAnimatePlaceholder: !0,
@@ -6220,7 +6220,7 @@ const ur = {
6220
6220
  };
6221
6221
  });
6222
6222
  return (i, s) => {
6223
- const c = To(s), a = c.droppableId, d = c.type, p = !c.isDropDisabled, l = c.renderClone;
6223
+ const c = Bo(s), a = c.droppableId, d = c.type, p = !c.isDropDisabled, l = c.renderClone;
6224
6224
  if (Re(i)) {
6225
6225
  const u = i.critical;
6226
6226
  if (!_t(d, u))
@@ -6233,7 +6233,7 @@ const ur = {
6233
6233
  if (!_t(d, u.critical))
6234
6234
  return t;
6235
6235
  const g = pr(u.critical, i.dimensions);
6236
- return r(a, p, So(u.result) === a, q(u.impact) === a, g, l);
6236
+ return r(a, p, Ao(u.result) === a, q(u.impact) === a, g, l);
6237
6237
  }
6238
6238
  if (i.phase === "IDLE" && i.completed && !i.shouldFlush) {
6239
6239
  const u = i.completed;
@@ -6244,19 +6244,19 @@ const ur = {
6244
6244
  }
6245
6245
  return t;
6246
6246
  };
6247
- }, yd = {
6248
- updateViewportMaxScroll: fc
6249
- }, Ed = _r(vd, yd, (e, t, n) => ({
6250
- ...To(n),
6247
+ }, Ed = {
6248
+ updateViewportMaxScroll: gc
6249
+ }, Dd = Pr(yd, Ed, (e, t, n) => ({
6250
+ ...Bo(n),
6251
6251
  ...e,
6252
6252
  ...t
6253
6253
  }), {
6254
6254
  context: un,
6255
- areStatePropsEqual: Co
6256
- })(hd), Pt = ({
6255
+ areStatePropsEqual: So
6256
+ })(bd), Pt = ({
6257
6257
  children: e,
6258
6258
  color: t = "#9ca3af"
6259
- }) => /* @__PURE__ */ C(
6259
+ }) => /* @__PURE__ */ O(
6260
6260
  "span",
6261
6261
  {
6262
6262
  style: {
@@ -6267,7 +6267,7 @@ const ur = {
6267
6267
  },
6268
6268
  children: e
6269
6269
  }
6270
- ), Dd = () => /* @__PURE__ */ L(
6270
+ ), Nd = () => /* @__PURE__ */ L(
6271
6271
  "svg",
6272
6272
  {
6273
6273
  width: "16",
@@ -6279,11 +6279,11 @@ const ur = {
6279
6279
  strokeLinecap: "round",
6280
6280
  strokeLinejoin: "round",
6281
6281
  children: [
6282
- /* @__PURE__ */ C("path", { d: "M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z" }),
6283
- /* @__PURE__ */ C("circle", { cx: "12", cy: "10", r: "3" })
6282
+ /* @__PURE__ */ O("path", { d: "M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z" }),
6283
+ /* @__PURE__ */ O("circle", { cx: "12", cy: "10", r: "3" })
6284
6284
  ]
6285
6285
  }
6286
- ), Nd = () => /* @__PURE__ */ L(
6286
+ ), xd = () => /* @__PURE__ */ L(
6287
6287
  "svg",
6288
6288
  {
6289
6289
  width: "16",
@@ -6295,11 +6295,11 @@ const ur = {
6295
6295
  strokeLinecap: "round",
6296
6296
  strokeLinejoin: "round",
6297
6297
  children: [
6298
- /* @__PURE__ */ C("circle", { cx: "12", cy: "12", r: "10" }),
6299
- /* @__PURE__ */ C("polyline", { points: "12 6 12 12 16 14" })
6298
+ /* @__PURE__ */ O("circle", { cx: "12", cy: "12", r: "10" }),
6299
+ /* @__PURE__ */ O("polyline", { points: "12 6 12 12 16 14" })
6300
6300
  ]
6301
6301
  }
6302
- ), xd = () => /* @__PURE__ */ C(
6302
+ ), Id = () => /* @__PURE__ */ O(
6303
6303
  "svg",
6304
6304
  {
6305
6305
  width: "12",
@@ -6310,9 +6310,9 @@ const ur = {
6310
6310
  strokeWidth: "4",
6311
6311
  strokeLinecap: "round",
6312
6312
  strokeLinejoin: "round",
6313
- children: /* @__PURE__ */ C("polyline", { points: "20 6 9 17 4 12" })
6313
+ children: /* @__PURE__ */ O("polyline", { points: "20 6 9 17 4 12" })
6314
6314
  }
6315
- ), Id = () => /* @__PURE__ */ L(
6315
+ ), Od = () => /* @__PURE__ */ L(
6316
6316
  "svg",
6317
6317
  {
6318
6318
  width: "20",
@@ -6325,120 +6325,177 @@ const ur = {
6325
6325
  strokeLinejoin: "round",
6326
6326
  style: { cursor: "grab" },
6327
6327
  children: [
6328
- /* @__PURE__ */ C("line", { x1: "3", y1: "12", x2: "21", y2: "12" }),
6329
- /* @__PURE__ */ C("line", { x1: "3", y1: "6", x2: "21", y2: "6" }),
6330
- /* @__PURE__ */ C("line", { x1: "3", y1: "18", x2: "21", y2: "18" })
6328
+ /* @__PURE__ */ O("line", { x1: "3", y1: "12", x2: "21", y2: "12" }),
6329
+ /* @__PURE__ */ O("line", { x1: "3", y1: "6", x2: "21", y2: "6" }),
6330
+ /* @__PURE__ */ O("line", { x1: "3", y1: "18", x2: "21", y2: "18" })
6331
6331
  ]
6332
6332
  }
6333
6333
  ), Rt = (e) => e ? new Date(e).toLocaleTimeString("en-US", {
6334
6334
  hour: "numeric",
6335
6335
  minute: "2-digit",
6336
6336
  hour12: !0
6337
- }) : "--:--", fr = (e) => typeof e == "object" && (e != null && e.name) ? e.name : e, Od = ({ order: e, index: t, pathType: n, pathPeriod: r }) => {
6338
- const o = !!e.completed_at;
6339
- return /* @__PURE__ */ C(ql, { draggableId: e.id.toString(), index: t, children: (i, s) => {
6340
- var c, a, d;
6341
- return /* @__PURE__ */ L(
6342
- "div",
6343
- {
6344
- ref: i.innerRef,
6345
- ...i.draggableProps,
6346
- style: {
6347
- ...P.timelineItem,
6348
- ...i.draggableProps.style,
6349
- opacity: s.isDragging ? 0.8 : 1
6350
- },
6351
- children: [
6352
- /* @__PURE__ */ L(
6353
- "div",
6354
- {
6355
- style: {
6356
- ...P.bubble,
6357
- ...o ? P.bubbleCompleted : P.bubblePending
6358
- },
6359
- children: [
6360
- t + 1,
6361
- " "
6362
- ]
6363
- }
6364
- ),
6365
- /* @__PURE__ */ L("div", { style: P.card, children: [
6366
- /* @__PURE__ */ L("div", { style: P.cardHeader, children: [
6367
- /* @__PURE__ */ L(
6337
+ }) : "--:--", fr = (e) => typeof e == "object" && (e != null && e.name) ? e.name : e, gr = (e) => {
6338
+ var t, n;
6339
+ return typeof e.status == "string" ? e.status.toLowerCase() === "completed" : ((n = (t = e.status) == null ? void 0 : t.code) == null ? void 0 : n.toLowerCase()) === "completed";
6340
+ }, Cd = (e) => {
6341
+ const t = [];
6342
+ return [...e].sort((r, o) => r.sequence_rank - o.sequence_rank).forEach((r) => {
6343
+ const o = t[t.length - 1];
6344
+ o && o.stop_id === r.stop_id ? o.orders.push(r) : t.push({
6345
+ stop_id: r.stop_id,
6346
+ sequence_rank: r.sequence_rank,
6347
+ orders: [r]
6348
+ });
6349
+ }), t;
6350
+ }, wd = ({ stopGroup: e, index: t, pathType: n, pathPeriod: r }) => {
6351
+ const o = e.orders.every(gr), i = e.orders[0];
6352
+ return /* @__PURE__ */ O(
6353
+ Yl,
6354
+ {
6355
+ draggableId: e.stop_id.toString(),
6356
+ index: t,
6357
+ isDragDisabled: o,
6358
+ children: (s, c) => {
6359
+ var a, d;
6360
+ return /* @__PURE__ */ L(
6361
+ "div",
6362
+ {
6363
+ ref: s.innerRef,
6364
+ ...s.draggableProps,
6365
+ style: {
6366
+ ...P.timelineItem,
6367
+ ...s.draggableProps.style,
6368
+ opacity: c.isDragging ? 0.8 : 1
6369
+ },
6370
+ children: [
6371
+ /* @__PURE__ */ O(
6368
6372
  "div",
6369
6373
  {
6370
- style: { display: "flex", alignItems: "center", gap: "8px" },
6371
- children: [
6372
- /* @__PURE__ */ L("span", { style: P.title, children: [
6373
- n,
6374
- " #",
6375
- e.sequence_rank
6376
- ] }),
6377
- o && /* @__PURE__ */ L("span", { style: P.completedBadge, children: [
6378
- /* @__PURE__ */ C(Pt, { color: "#16a34a", children: /* @__PURE__ */ C(xd, {}) }),
6379
- " ",
6380
- "Completed at ",
6381
- Rt(e.completed_at)
6382
- ] })
6383
- ]
6374
+ style: {
6375
+ ...P.bubble,
6376
+ ...o ? P.bubbleCompleted : P.bubblePending
6377
+ },
6378
+ children: t + 1
6384
6379
  }
6385
6380
  ),
6386
- /* @__PURE__ */ C("div", { ...i.dragHandleProps, children: /* @__PURE__ */ C(Id, {}) })
6387
- ] }),
6388
- /* @__PURE__ */ L("div", { style: P.customerRow, children: [
6389
- "Customer:",
6390
- " ",
6391
- /* @__PURE__ */ C("span", { style: { color: "#374151" }, children: (c = e.customer) == null ? void 0 : c.name })
6392
- ] }),
6393
- /* @__PURE__ */ L("div", { style: P.detailsGrid, children: [
6394
- /* @__PURE__ */ L("div", { style: P.gridItem, children: [
6395
- /* @__PURE__ */ C("div", { style: P.gridLabel, children: "Order" }),
6396
- /* @__PURE__ */ L("div", { style: P.gridValue, children: [
6397
- "#",
6398
- e.order_id
6399
- ] })
6400
- ] }),
6401
- /* @__PURE__ */ L("div", { style: P.gridItem, children: [
6402
- /* @__PURE__ */ C("div", { style: P.gridLabel, children: "Location" }),
6403
- /* @__PURE__ */ L("div", { style: P.gridValueWithIcon, children: [
6404
- /* @__PURE__ */ C(Pt, { color: "#3b82f6", children: /* @__PURE__ */ C(Dd, {}) }),
6405
- /* @__PURE__ */ C("span", { style: P.truncate, children: ((d = (a = e.customer) == null ? void 0 : a.address) == null ? void 0 : d.street_area) || "No Address" })
6406
- ] })
6407
- ] }),
6408
- /* @__PURE__ */ L("div", { style: P.gridItem, children: [
6409
- /* @__PURE__ */ C("div", { style: P.gridLabel, children: "Period" }),
6410
- /* @__PURE__ */ C("div", { style: P.gridValue, children: r })
6411
- ] }),
6412
- /* @__PURE__ */ L("div", { style: P.gridItem, children: [
6413
- /* @__PURE__ */ C("div", { style: P.gridLabel, children: "Time Window" }),
6414
- /* @__PURE__ */ L("div", { style: P.gridValueWithIcon, children: [
6415
- /* @__PURE__ */ C(Pt, { children: /* @__PURE__ */ C(Nd, {}) }),
6416
- /* @__PURE__ */ L("span", { children: [
6417
- Rt(e.eta_start),
6418
- " - ",
6419
- Rt(e.eta_end)
6381
+ /* @__PURE__ */ L("div", { style: P.card, children: [
6382
+ /* @__PURE__ */ L("div", { style: P.cardHeader, children: [
6383
+ /* @__PURE__ */ L(
6384
+ "div",
6385
+ {
6386
+ style: { display: "flex", alignItems: "center", gap: "8px" },
6387
+ children: [
6388
+ /* @__PURE__ */ L("span", { style: P.title, children: [
6389
+ n,
6390
+ " #",
6391
+ e.sequence_rank,
6392
+ e.orders.length > 1 && /* @__PURE__ */ L("span", { style: P.multiBadge, children: [
6393
+ e.orders.length,
6394
+ " Orders"
6395
+ ] })
6396
+ ] }),
6397
+ o && /* @__PURE__ */ L("span", { style: P.completedBadge, children: [
6398
+ /* @__PURE__ */ O(Pt, { color: "#16a34a", children: /* @__PURE__ */ O(Id, {}) }),
6399
+ " ",
6400
+ "Done"
6401
+ ] })
6402
+ ]
6403
+ }
6404
+ ),
6405
+ !o && /* @__PURE__ */ O("div", { ...s.dragHandleProps, children: /* @__PURE__ */ O(Od, {}) })
6406
+ ] }),
6407
+ /* @__PURE__ */ L("div", { style: { marginBottom: "12px", display: "flex", gap: "12px" }, children: [
6408
+ /* @__PURE__ */ L("div", { style: P.gridValueWithIcon, children: [
6409
+ /* @__PURE__ */ O(Pt, { color: "#3b82f6", children: /* @__PURE__ */ O(Nd, {}) }),
6410
+ /* @__PURE__ */ O("span", { style: P.truncate, children: ((d = (a = i.customer) == null ? void 0 : a.address) == null ? void 0 : d.street_area) || "No Address" })
6411
+ ] }),
6412
+ /* @__PURE__ */ L("div", { style: P.gridValueWithIcon, children: [
6413
+ /* @__PURE__ */ O(Pt, { children: /* @__PURE__ */ O(xd, {}) }),
6414
+ /* @__PURE__ */ L("span", { children: [
6415
+ Rt(i.eta_start),
6416
+ " -",
6417
+ " ",
6418
+ Rt(i.eta_end)
6419
+ ] })
6420
6420
  ] })
6421
- ] })
6421
+ ] }),
6422
+ /* @__PURE__ */ O("div", { style: P.ordersContainer, children: e.orders.map((p, l) => {
6423
+ var g;
6424
+ const u = gr(p);
6425
+ return /* @__PURE__ */ L(
6426
+ "div",
6427
+ {
6428
+ style: {
6429
+ ...P.detailsGrid,
6430
+ borderTop: l > 0 ? "1px solid #e5e7eb" : "none",
6431
+ paddingTop: (l > 0, "12px")
6432
+ },
6433
+ children: [
6434
+ /* @__PURE__ */ O(
6435
+ "div",
6436
+ {
6437
+ style: {
6438
+ gridColumn: "1 / -1",
6439
+ ...P.customerRow,
6440
+ marginBottom: "4px"
6441
+ },
6442
+ children: /* @__PURE__ */ L(
6443
+ "div",
6444
+ {
6445
+ style: {
6446
+ display: "flex",
6447
+ justifyContent: "space-between"
6448
+ },
6449
+ children: [
6450
+ /* @__PURE__ */ L("span", { children: [
6451
+ "Customer:",
6452
+ " ",
6453
+ /* @__PURE__ */ O("span", { style: { color: "#374151", fontWeight: "600" }, children: (g = p.customer) == null ? void 0 : g.name })
6454
+ ] }),
6455
+ u && /* @__PURE__ */ O("span", { style: { fontSize: "10px", color: "#16a34a" }, children: "✓ Paid/Done" })
6456
+ ]
6457
+ }
6458
+ )
6459
+ }
6460
+ ),
6461
+ /* @__PURE__ */ L("div", { style: P.gridItem, children: [
6462
+ /* @__PURE__ */ O("div", { style: P.gridLabel, children: "Order ID" }),
6463
+ /* @__PURE__ */ L("div", { style: P.gridValue, children: [
6464
+ "#",
6465
+ p.order_id
6466
+ ] })
6467
+ ] }),
6468
+ /* @__PURE__ */ L("div", { style: P.gridItem, children: [
6469
+ /* @__PURE__ */ O("div", { style: P.gridLabel, children: "Period" }),
6470
+ /* @__PURE__ */ O("div", { style: P.gridValue, children: r })
6471
+ ] }),
6472
+ p.completed_at && /* @__PURE__ */ L("div", { style: { ...P.gridItem, gridColumn: "1 / -1" }, children: [
6473
+ /* @__PURE__ */ O("div", { style: P.gridLabel, children: "Completed At" }),
6474
+ /* @__PURE__ */ O("div", { style: P.gridValue, children: Rt(p.completed_at) })
6475
+ ] })
6476
+ ]
6477
+ },
6478
+ p.id
6479
+ );
6480
+ }) })
6422
6481
  ] })
6423
- ] })
6424
- ] })
6425
- ]
6482
+ ]
6483
+ }
6484
+ );
6426
6485
  }
6427
- );
6428
- } });
6429
- }, _d = ({
6486
+ }
6487
+ );
6488
+ }, Rd = ({
6430
6489
  path: e,
6431
6490
  onReorder: t
6432
6491
  }) => {
6433
6492
  const [n, r] = Ze([]);
6434
6493
  if (te(() => {
6435
6494
  if (e && e.path_orders) {
6436
- const c = [...e.path_orders].sort(
6437
- (a, d) => a.sequence_rank - d.sequence_rank
6438
- );
6495
+ const c = Cd(e.path_orders);
6439
6496
  r(c);
6440
6497
  }
6441
- }, [e]), !e || !n.length) return /* @__PURE__ */ C("div", { children: "No Path Data" });
6498
+ }, [e]), !e || !n.length) return /* @__PURE__ */ O("div", { children: "No Path Data" });
6442
6499
  const o = fr(e.type), i = fr(e.period), s = (c) => {
6443
6500
  if (!c.destination) return;
6444
6501
  const a = Array.from(n), [d] = a.splice(c.source.index, 1);
@@ -6447,15 +6504,15 @@ const ur = {
6447
6504
  t(e.id, p);
6448
6505
  }
6449
6506
  };
6450
- return /* @__PURE__ */ C("div", { style: P.container, children: /* @__PURE__ */ C(wl, { onDragEnd: s, children: /* @__PURE__ */ C(Ed, { droppableId: "path-orders-list", children: (c) => /* @__PURE__ */ L(
6507
+ return /* @__PURE__ */ O("div", { style: P.container, children: /* @__PURE__ */ O(wl, { onDragEnd: s, children: /* @__PURE__ */ O(Dd, { droppableId: "path-orders-list", children: (c) => /* @__PURE__ */ L(
6451
6508
  "div",
6452
6509
  {
6453
6510
  style: P.timelineWrapper,
6454
6511
  ref: c.innerRef,
6455
6512
  ...c.droppableProps,
6456
6513
  children: [
6457
- /* @__PURE__ */ C("div", { style: P.verticalLine }),
6458
- /* @__PURE__ */ C(
6514
+ /* @__PURE__ */ O("div", { style: P.verticalLine }),
6515
+ /* @__PURE__ */ O(
6459
6516
  "div",
6460
6517
  {
6461
6518
  style: {
@@ -6463,15 +6520,15 @@ const ur = {
6463
6520
  flexDirection: "column",
6464
6521
  gap: "24px"
6465
6522
  },
6466
- children: n.map((a, d) => /* @__PURE__ */ C(
6467
- Od,
6523
+ children: n.map((a, d) => /* @__PURE__ */ O(
6524
+ wd,
6468
6525
  {
6469
6526
  index: d,
6470
- order: a,
6527
+ stopGroup: a,
6471
6528
  pathType: o,
6472
6529
  pathPeriod: i
6473
6530
  },
6474
- a.id
6531
+ a.stop_id
6475
6532
  ))
6476
6533
  }
6477
6534
  ),
@@ -6504,7 +6561,6 @@ const ur = {
6504
6561
  marginBottom: "24px",
6505
6562
  background: "transparent"
6506
6563
  },
6507
- // Added marginBottom to replace gap in flex
6508
6564
  bubble: {
6509
6565
  flexShrink: 0,
6510
6566
  width: "40px",
@@ -6538,7 +6594,22 @@ const ur = {
6538
6594
  alignItems: "center",
6539
6595
  marginBottom: "12px"
6540
6596
  },
6541
- title: { fontSize: "16px", fontWeight: "700", color: "#111827" },
6597
+ title: {
6598
+ fontSize: "16px",
6599
+ fontWeight: "700",
6600
+ color: "#111827",
6601
+ display: "flex",
6602
+ alignItems: "center",
6603
+ gap: "8px"
6604
+ },
6605
+ multiBadge: {
6606
+ fontSize: "10px",
6607
+ backgroundColor: "#eff6ff",
6608
+ color: "#3b82f6",
6609
+ padding: "2px 6px",
6610
+ borderRadius: "4px",
6611
+ fontWeight: "600"
6612
+ },
6542
6613
  completedBadge: {
6543
6614
  display: "flex",
6544
6615
  alignItems: "center",
@@ -6549,17 +6620,25 @@ const ur = {
6549
6620
  padding: "2px 8px",
6550
6621
  borderRadius: "4px"
6551
6622
  },
6623
+ ordersContainer: {
6624
+ backgroundColor: "#f9fafb",
6625
+ borderRadius: "8px",
6626
+ border: "1px solid #f3f4f6",
6627
+ overflow: "hidden"
6628
+ },
6552
6629
  customerRow: { fontSize: "12px", color: "#6b7280", marginBottom: "12px" },
6553
6630
  detailsGrid: {
6554
6631
  display: "grid",
6555
6632
  gridTemplateColumns: "1fr 1fr",
6556
- gap: "12px",
6557
- backgroundColor: "#f9fafb",
6558
- padding: "12px",
6559
- borderRadius: "8px"
6633
+ gap: "8px",
6634
+ padding: "12px"
6560
6635
  },
6561
6636
  gridItem: { display: "flex", flexDirection: "column", gap: "4px" },
6562
- gridLabel: { fontSize: "11px", color: "#9ca3af", textTransform: "uppercase" },
6637
+ gridLabel: {
6638
+ fontSize: "11px",
6639
+ color: "#9ca3af",
6640
+ textTransform: "uppercase"
6641
+ },
6563
6642
  gridValue: { fontSize: "13px", fontWeight: "600", color: "#374151" },
6564
6643
  gridValueWithIcon: {
6565
6644
  fontSize: "13px",
@@ -6577,5 +6656,5 @@ const ur = {
6577
6656
  }
6578
6657
  };
6579
6658
  export {
6580
- _d as LogisticsDashboard
6659
+ Rd as LogisticsDashboard
6581
6660
  };