@acrool/react-picker 0.0.11-alpha.1 → 0.0.11

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.
@@ -1,6 +1,6 @@
1
1
  import * as Ln from "react";
2
- import Fn, { createContext as kt, useContext as G, useLayoutEffect as tr, useEffect as ct, useRef as it, useInsertionEffect as er, useCallback as at, useMemo as Mt, forwardRef as Me, Fragment as nr, createElement as oa, useId as On, Component as aa, Children as la, isValidElement as ca, useState as _t } from "react";
3
- import ua from "react-dom";
2
+ import Fn, { createContext as kt, useContext as G, useLayoutEffect as Qs, useEffect as ct, useRef as it, useInsertionEffect as tr, useCallback as at, useMemo as Mt, forwardRef as Me, Fragment as er, createElement as ra, useId as On, Component as oa, Children as aa, isValidElement as la, useState as _t } from "react";
3
+ import ca from "react-dom";
4
4
  var st = /* @__PURE__ */ ((t) => (t.bottom = "bottom", t.top = "top", t))(st || {}), gt = /* @__PURE__ */ ((t) => (t.left = "left", t.right = "right", t))(gt || {});
5
5
  const fe = [
6
6
  "color: #fff",
@@ -19,42 +19,42 @@ const fe = [
19
19
  function de(t, e, ...n) {
20
20
  console.log(`%c ${t}`, e, ...n);
21
21
  }
22
- function fa(t, ...e) {
22
+ function ua(t, ...e) {
23
23
  const n = fe.concat([
24
24
  `background-color: ${he.primary}`
25
25
  ]).join(";");
26
26
  de(t, n, ...e);
27
27
  }
28
- function ha(t, ...e) {
28
+ function fa(t, ...e) {
29
29
  const n = fe.concat([
30
30
  `background-color: ${he.success}`
31
31
  ]).join(";");
32
32
  de(t, n, ...e);
33
33
  }
34
- function da(t, ...e) {
34
+ function ha(t, ...e) {
35
35
  const n = fe.concat([
36
36
  `background-color: ${he.info}`
37
37
  ]).join(";");
38
38
  de(t, n, ...e);
39
39
  }
40
- function pa(t, ...e) {
40
+ function da(t, ...e) {
41
41
  const n = fe.concat([
42
42
  `background-color: ${he.warning}`
43
43
  ]).join(";");
44
44
  de(t, n, ...e);
45
45
  }
46
- function ma(t, ...e) {
46
+ function pa(t, ...e) {
47
47
  const n = fe.concat([
48
48
  `background-color: ${he.danger}`
49
49
  ]).join(";");
50
50
  de(t, n, ...e);
51
51
  }
52
52
  const yt = {
53
- primary: fa,
54
- success: ha,
55
- info: da,
56
- warning: pa,
57
- danger: ma
53
+ primary: ua,
54
+ success: fa,
55
+ info: ha,
56
+ warning: da,
57
+ danger: pa
58
58
  }, jn = kt({
59
59
  hide: () => yt.warning("No hide method detected, did you embed your app with Acrool/PickerPortal?"),
60
60
  show: () => yt.warning("No show method detected, did you embed your app with Acrool/PickerPortal?"),
@@ -66,7 +66,7 @@ const yt = {
66
66
  onChange: () => yt.warning("No onChange method detected, did you embed your app with Acrool/PickerPortal?"),
67
67
  vertical: st.bottom,
68
68
  setVertical: () => yt.warning("No onChange method detected, did you embed your app with Acrool/PickerPortal?")
69
- }), mh = jn.Consumer, ga = () => G(jn);
69
+ }), mh = jn.Consumer, ma = () => G(jn);
70
70
  var yn = { exports: {} }, qt = {};
71
71
  /**
72
72
  * @license React
@@ -77,11 +77,11 @@ var yn = { exports: {} }, qt = {};
77
77
  * This source code is licensed under the MIT license found in the
78
78
  * LICENSE file in the root directory of this source tree.
79
79
  */
80
- var ki;
81
- function ya() {
82
- if (ki)
80
+ var Mi;
81
+ function ga() {
82
+ if (Mi)
83
83
  return qt;
84
- ki = 1;
84
+ Mi = 1;
85
85
  var t = Fn, e = Symbol.for("react.element"), n = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, s = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
86
86
  function r(a, l, c) {
87
87
  var u, f = {}, d = null, p = null;
@@ -105,9 +105,9 @@ var Zt = {};
105
105
  * This source code is licensed under the MIT license found in the
106
106
  * LICENSE file in the root directory of this source tree.
107
107
  */
108
- var Li;
109
- function va() {
110
- return Li || (Li = 1, process.env.NODE_ENV !== "production" && function() {
108
+ var ki;
109
+ function ya() {
110
+ return ki || (ki = 1, process.env.NODE_ENV !== "production" && function() {
111
111
  var t = Fn, e = Symbol.for("react.element"), n = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), r = Symbol.for("react.provider"), a = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), d = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), m = Symbol.iterator, v = "@@iterator";
112
112
  function x(h) {
113
113
  if (h === null || typeof h != "object")
@@ -197,18 +197,18 @@ function va() {
197
197
  }
198
198
  return null;
199
199
  }
200
- var rt = Object.assign, B = 0, Q, Lt, Ft, di, pi, mi, gi;
201
- function yi() {
200
+ var rt = Object.assign, B = 0, Q, Lt, Ft, hi, di, pi, mi;
201
+ function gi() {
202
202
  }
203
- yi.__reactDisabledLog = !0;
204
- function Lo() {
203
+ gi.__reactDisabledLog = !0;
204
+ function ko() {
205
205
  {
206
206
  if (B === 0) {
207
- Q = console.log, Lt = console.info, Ft = console.warn, di = console.error, pi = console.group, mi = console.groupCollapsed, gi = console.groupEnd;
207
+ Q = console.log, Lt = console.info, Ft = console.warn, hi = console.error, di = console.group, pi = console.groupCollapsed, mi = console.groupEnd;
208
208
  var h = {
209
209
  configurable: !0,
210
210
  enumerable: !0,
211
- value: yi,
211
+ value: gi,
212
212
  writable: !0
213
213
  };
214
214
  Object.defineProperties(console, {
@@ -224,7 +224,7 @@ function va() {
224
224
  B++;
225
225
  }
226
226
  }
227
- function Fo() {
227
+ function Lo() {
228
228
  {
229
229
  if (B--, B === 0) {
230
230
  var h = {
@@ -243,16 +243,16 @@ function va() {
243
243
  value: Ft
244
244
  }),
245
245
  error: rt({}, h, {
246
- value: di
246
+ value: hi
247
247
  }),
248
248
  group: rt({}, h, {
249
- value: pi
249
+ value: di
250
250
  }),
251
251
  groupCollapsed: rt({}, h, {
252
- value: mi
252
+ value: pi
253
253
  }),
254
254
  groupEnd: rt({}, h, {
255
- value: gi
255
+ value: mi
256
256
  })
257
257
  });
258
258
  }
@@ -275,10 +275,10 @@ function va() {
275
275
  }
276
276
  var Xe = !1, Pe;
277
277
  {
278
- var Oo = typeof WeakMap == "function" ? WeakMap : Map;
279
- Pe = new Oo();
278
+ var Fo = typeof WeakMap == "function" ? WeakMap : Map;
279
+ Pe = new Fo();
280
280
  }
281
- function vi(h, g) {
281
+ function yi(h, g) {
282
282
  if (!h || Xe)
283
283
  return "";
284
284
  {
@@ -291,7 +291,7 @@ function va() {
291
291
  var D = Error.prepareStackTrace;
292
292
  Error.prepareStackTrace = void 0;
293
293
  var L;
294
- L = ze.current, ze.current = null, Lo();
294
+ L = ze.current, ze.current = null, ko();
295
295
  try {
296
296
  if (g) {
297
297
  var V = function() {
@@ -344,15 +344,15 @@ function va() {
344
344
  }
345
345
  }
346
346
  } finally {
347
- Xe = !1, ze.current = L, Fo(), Error.prepareStackTrace = D;
347
+ Xe = !1, ze.current = L, Lo(), Error.prepareStackTrace = D;
348
348
  }
349
349
  var jt = h ? h.displayName || h.name : "", At = jt ? ve(jt) : "";
350
350
  return typeof h == "function" && Pe.set(h, At), At;
351
351
  }
352
- function jo(h, g, b) {
353
- return vi(h, !1);
352
+ function Oo(h, g, b) {
353
+ return yi(h, !1);
354
354
  }
355
- function _o(h) {
355
+ function jo(h) {
356
356
  var g = h.prototype;
357
357
  return !!(g && g.isReactComponent);
358
358
  }
@@ -360,7 +360,7 @@ function va() {
360
360
  if (h == null)
361
361
  return "";
362
362
  if (typeof h == "function")
363
- return vi(h, _o(h));
363
+ return yi(h, jo(h));
364
364
  if (typeof h == "string")
365
365
  return ve(h);
366
366
  switch (h) {
@@ -372,7 +372,7 @@ function va() {
372
372
  if (typeof h == "object")
373
373
  switch (h.$$typeof) {
374
374
  case l:
375
- return jo(h.render);
375
+ return Oo(h.render);
376
376
  case f:
377
377
  return Te(h.type, g, b);
378
378
  case d: {
@@ -385,15 +385,15 @@ function va() {
385
385
  }
386
386
  return "";
387
387
  }
388
- var Yt = Object.prototype.hasOwnProperty, Pi = {}, Ti = P.ReactDebugCurrentFrame;
388
+ var Yt = Object.prototype.hasOwnProperty, vi = {}, Pi = P.ReactDebugCurrentFrame;
389
389
  function be(h) {
390
390
  if (h) {
391
391
  var g = h._owner, b = Te(h.type, h._source, g ? g.type : null);
392
- Ti.setExtraStackFrame(b);
392
+ Pi.setExtraStackFrame(b);
393
393
  } else
394
- Ti.setExtraStackFrame(null);
394
+ Pi.setExtraStackFrame(null);
395
395
  }
396
- function Bo(h, g, b, A, D) {
396
+ function _o(h, g, b, A, D) {
397
397
  {
398
398
  var L = Function.call.bind(Yt);
399
399
  for (var V in h)
@@ -408,42 +408,42 @@ function va() {
408
408
  } catch (I) {
409
409
  E = I;
410
410
  }
411
- E && !(E instanceof Error) && (be(D), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", A || "React class", b, V, typeof E), be(null)), E instanceof Error && !(E.message in Pi) && (Pi[E.message] = !0, be(D), y("Failed %s type: %s", b, E.message), be(null));
411
+ E && !(E instanceof Error) && (be(D), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", A || "React class", b, V, typeof E), be(null)), E instanceof Error && !(E.message in vi) && (vi[E.message] = !0, be(D), y("Failed %s type: %s", b, E.message), be(null));
412
412
  }
413
413
  }
414
414
  }
415
- var Io = Array.isArray;
415
+ var Bo = Array.isArray;
416
416
  function qe(h) {
417
- return Io(h);
417
+ return Bo(h);
418
418
  }
419
- function No(h) {
419
+ function Io(h) {
420
420
  {
421
421
  var g = typeof Symbol == "function" && Symbol.toStringTag, b = g && h[Symbol.toStringTag] || h.constructor.name || "Object";
422
422
  return b;
423
423
  }
424
424
  }
425
- function Uo(h) {
425
+ function No(h) {
426
426
  try {
427
- return bi(h), !1;
427
+ return Ti(h), !1;
428
428
  } catch {
429
429
  return !0;
430
430
  }
431
431
  }
432
- function bi(h) {
432
+ function Ti(h) {
433
433
  return "" + h;
434
434
  }
435
- function xi(h) {
436
- if (Uo(h))
437
- return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", No(h)), bi(h);
435
+ function bi(h) {
436
+ if (No(h))
437
+ return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Io(h)), Ti(h);
438
438
  }
439
- var Xt = P.ReactCurrentOwner, Wo = {
439
+ var Xt = P.ReactCurrentOwner, Uo = {
440
440
  key: !0,
441
441
  ref: !0,
442
442
  __self: !0,
443
443
  __source: !0
444
- }, wi, Si, Ze;
444
+ }, xi, wi, Ze;
445
445
  Ze = {};
446
- function $o(h) {
446
+ function Wo(h) {
447
447
  if (Yt.call(h, "ref")) {
448
448
  var g = Object.getOwnPropertyDescriptor(h, "ref").get;
449
449
  if (g && g.isReactWarning)
@@ -451,7 +451,7 @@ function va() {
451
451
  }
452
452
  return h.ref !== void 0;
453
453
  }
454
- function Ko(h) {
454
+ function $o(h) {
455
455
  if (Yt.call(h, "key")) {
456
456
  var g = Object.getOwnPropertyDescriptor(h, "key").get;
457
457
  if (g && g.isReactWarning)
@@ -459,16 +459,16 @@ function va() {
459
459
  }
460
460
  return h.key !== void 0;
461
461
  }
462
- function Go(h, g) {
462
+ function Ko(h, g) {
463
463
  if (typeof h.ref == "string" && Xt.current && g && Xt.current.stateNode !== g) {
464
464
  var b = J(Xt.current.type);
465
465
  Ze[b] || (y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', J(Xt.current.type), h.ref), Ze[b] = !0);
466
466
  }
467
467
  }
468
- function Ho(h, g) {
468
+ function Go(h, g) {
469
469
  {
470
470
  var b = function() {
471
- wi || (wi = !0, y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", g));
471
+ xi || (xi = !0, y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", g));
472
472
  };
473
473
  b.isReactWarning = !0, Object.defineProperty(h, "key", {
474
474
  get: b,
@@ -476,10 +476,10 @@ function va() {
476
476
  });
477
477
  }
478
478
  }
479
- function zo(h, g) {
479
+ function Ho(h, g) {
480
480
  {
481
481
  var b = function() {
482
- Si || (Si = !0, y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", g));
482
+ wi || (wi = !0, y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", g));
483
483
  };
484
484
  b.isReactWarning = !0, Object.defineProperty(h, "ref", {
485
485
  get: b,
@@ -487,7 +487,7 @@ function va() {
487
487
  });
488
488
  }
489
489
  }
490
- var Yo = function(h, g, b, A, D, L, V) {
490
+ var zo = function(h, g, b, A, D, L, V) {
491
491
  var E = {
492
492
  // This tag allows us to uniquely identify this as a React Element
493
493
  $$typeof: e,
@@ -516,12 +516,12 @@ function va() {
516
516
  value: D
517
517
  }), Object.freeze && (Object.freeze(E.props), Object.freeze(E)), E;
518
518
  };
519
- function Xo(h, g, b, A, D) {
519
+ function Yo(h, g, b, A, D) {
520
520
  {
521
521
  var L, V = {}, E = null, X = null;
522
- b !== void 0 && (xi(b), E = "" + b), Ko(g) && (xi(g.key), E = "" + g.key), $o(g) && (X = g.ref, Go(g, D));
522
+ b !== void 0 && (bi(b), E = "" + b), $o(g) && (bi(g.key), E = "" + g.key), Wo(g) && (X = g.ref, Ko(g, D));
523
523
  for (L in g)
524
- Yt.call(g, L) && !Wo.hasOwnProperty(L) && (V[L] = g[L]);
524
+ Yt.call(g, L) && !Uo.hasOwnProperty(L) && (V[L] = g[L]);
525
525
  if (h && h.defaultProps) {
526
526
  var I = h.defaultProps;
527
527
  for (L in I)
@@ -529,25 +529,25 @@ function va() {
529
529
  }
530
530
  if (E || X) {
531
531
  var W = typeof h == "function" ? h.displayName || h.name || "Unknown" : h;
532
- E && Ho(V, W), X && zo(V, W);
532
+ E && Go(V, W), X && Ho(V, W);
533
533
  }
534
- return Yo(h, E, X, D, A, Xt.current, V);
534
+ return zo(h, E, X, D, A, Xt.current, V);
535
535
  }
536
536
  }
537
- var Je = P.ReactCurrentOwner, Ai = P.ReactDebugCurrentFrame;
537
+ var Je = P.ReactCurrentOwner, Si = P.ReactDebugCurrentFrame;
538
538
  function Ot(h) {
539
539
  if (h) {
540
540
  var g = h._owner, b = Te(h.type, h._source, g ? g.type : null);
541
- Ai.setExtraStackFrame(b);
541
+ Si.setExtraStackFrame(b);
542
542
  } else
543
- Ai.setExtraStackFrame(null);
543
+ Si.setExtraStackFrame(null);
544
544
  }
545
545
  var Qe;
546
546
  Qe = !1;
547
547
  function tn(h) {
548
548
  return typeof h == "object" && h !== null && h.$$typeof === e;
549
549
  }
550
- function Ci() {
550
+ function Ai() {
551
551
  {
552
552
  if (Je.current) {
553
553
  var h = J(Je.current.type);
@@ -559,7 +559,7 @@ Check the render method of \`` + h + "`.";
559
559
  return "";
560
560
  }
561
561
  }
562
- function qo(h) {
562
+ function Xo(h) {
563
563
  {
564
564
  if (h !== void 0) {
565
565
  var g = h.fileName.replace(/^.*[\\\/]/, ""), b = h.lineNumber;
@@ -570,10 +570,10 @@ Check your code at ` + g + ":" + b + ".";
570
570
  return "";
571
571
  }
572
572
  }
573
- var Ri = {};
574
- function Zo(h) {
573
+ var Ci = {};
574
+ function qo(h) {
575
575
  {
576
- var g = Ci();
576
+ var g = Ai();
577
577
  if (!g) {
578
578
  var b = typeof h == "string" ? h : h.displayName || h.name;
579
579
  b && (g = `
@@ -583,27 +583,27 @@ Check the top-level render call using <` + b + ">.");
583
583
  return g;
584
584
  }
585
585
  }
586
- function Ei(h, g) {
586
+ function Ri(h, g) {
587
587
  {
588
588
  if (!h._store || h._store.validated || h.key != null)
589
589
  return;
590
590
  h._store.validated = !0;
591
- var b = Zo(g);
592
- if (Ri[b])
591
+ var b = qo(g);
592
+ if (Ci[b])
593
593
  return;
594
- Ri[b] = !0;
594
+ Ci[b] = !0;
595
595
  var A = "";
596
596
  h && h._owner && h._owner !== Je.current && (A = " It was passed a child from " + J(h._owner.type) + "."), Ot(h), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', b, A), Ot(null);
597
597
  }
598
598
  }
599
- function Vi(h, g) {
599
+ function Ei(h, g) {
600
600
  {
601
601
  if (typeof h != "object")
602
602
  return;
603
603
  if (qe(h))
604
604
  for (var b = 0; b < h.length; b++) {
605
605
  var A = h[b];
606
- tn(A) && Ei(A, g);
606
+ tn(A) && Ri(A, g);
607
607
  }
608
608
  else if (tn(h))
609
609
  h._store && (h._store.validated = !0);
@@ -611,11 +611,11 @@ Check the top-level render call using <` + b + ">.");
611
611
  var D = x(h);
612
612
  if (typeof D == "function" && D !== h.entries)
613
613
  for (var L = D.call(h), V; !(V = L.next()).done; )
614
- tn(V.value) && Ei(V.value, g);
614
+ tn(V.value) && Ri(V.value, g);
615
615
  }
616
616
  }
617
617
  }
618
- function Jo(h) {
618
+ function Zo(h) {
619
619
  {
620
620
  var g = h.type;
621
621
  if (g == null || typeof g == "string")
@@ -631,7 +631,7 @@ Check the top-level render call using <` + b + ">.");
631
631
  return;
632
632
  if (b) {
633
633
  var A = J(g);
634
- Bo(b, h.props, "prop", A, h);
634
+ _o(b, h.props, "prop", A, h);
635
635
  } else if (g.PropTypes !== void 0 && !Qe) {
636
636
  Qe = !0;
637
637
  var D = J(g);
@@ -640,7 +640,7 @@ Check the top-level render call using <` + b + ">.");
640
640
  typeof g.getDefaultProps == "function" && !g.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
641
641
  }
642
642
  }
643
- function Qo(h) {
643
+ function Jo(h) {
644
644
  {
645
645
  for (var g = Object.keys(h.props), b = 0; b < g.length; b++) {
646
646
  var A = g[b];
@@ -652,19 +652,19 @@ Check the top-level render call using <` + b + ">.");
652
652
  h.ref !== null && (Ot(h), y("Invalid attribute `ref` supplied to `React.Fragment`."), Ot(null));
653
653
  }
654
654
  }
655
- var Di = {};
656
- function Mi(h, g, b, A, D, L) {
655
+ var Vi = {};
656
+ function Di(h, g, b, A, D, L) {
657
657
  {
658
658
  var V = U(h);
659
659
  if (!V) {
660
660
  var E = "";
661
661
  (h === void 0 || typeof h == "object" && h !== null && Object.keys(h).length === 0) && (E += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
662
- var X = qo(D);
663
- X ? E += X : E += Ci();
662
+ var X = Xo(D);
663
+ X ? E += X : E += Ai();
664
664
  var I;
665
665
  h === null ? I = "null" : qe(h) ? I = "array" : h !== void 0 && h.$$typeof === e ? (I = "<" + (J(h.type) || "Unknown") + " />", E = " Did you accidentally export a JSX literal instead of a component?") : I = typeof h, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", I, E);
666
666
  }
667
- var W = Xo(h, g, b, D, L);
667
+ var W = Yo(h, g, b, D, L);
668
668
  if (W == null)
669
669
  return W;
670
670
  if (V) {
@@ -673,45 +673,45 @@ Check the top-level render call using <` + b + ">.");
673
673
  if (A)
674
674
  if (qe(tt)) {
675
675
  for (var jt = 0; jt < tt.length; jt++)
676
- Vi(tt[jt], h);
676
+ Ei(tt[jt], h);
677
677
  Object.freeze && Object.freeze(tt);
678
678
  } else
679
679
  y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
680
680
  else
681
- Vi(tt, h);
681
+ Ei(tt, h);
682
682
  }
683
683
  if (Yt.call(g, "key")) {
684
- var At = J(h), q = Object.keys(g).filter(function(ra) {
685
- return ra !== "key";
684
+ var At = J(h), q = Object.keys(g).filter(function(sa) {
685
+ return sa !== "key";
686
686
  }), en = q.length > 0 ? "{key: someKey, " + q.join(": ..., ") + ": ...}" : "{key: someKey}";
687
- if (!Di[At + en]) {
688
- var sa = q.length > 0 ? "{" + q.join(": ..., ") + ": ...}" : "{}";
687
+ if (!Vi[At + en]) {
688
+ var ia = q.length > 0 ? "{" + q.join(": ..., ") + ": ...}" : "{}";
689
689
  y(`A props object containing a "key" prop is being spread into JSX:
690
690
  let props = %s;
691
691
  <%s {...props} />
692
692
  React keys must be passed directly to JSX without using spread:
693
693
  let props = %s;
694
- <%s key={someKey} {...props} />`, en, At, sa, At), Di[At + en] = !0;
694
+ <%s key={someKey} {...props} />`, en, At, ia, At), Vi[At + en] = !0;
695
695
  }
696
696
  }
697
- return h === i ? Qo(W) : Jo(W), W;
697
+ return h === i ? Jo(W) : Zo(W), W;
698
698
  }
699
699
  }
700
- function ta(h, g, b) {
701
- return Mi(h, g, b, !0);
700
+ function Qo(h, g, b) {
701
+ return Di(h, g, b, !0);
702
702
  }
703
- function ea(h, g, b) {
704
- return Mi(h, g, b, !1);
703
+ function ta(h, g, b) {
704
+ return Di(h, g, b, !1);
705
705
  }
706
- var na = ea, ia = ta;
707
- Zt.Fragment = i, Zt.jsx = na, Zt.jsxs = ia;
706
+ var ea = ta, na = Qo;
707
+ Zt.Fragment = i, Zt.jsx = ea, Zt.jsxs = na;
708
708
  }()), Zt;
709
709
  }
710
- process.env.NODE_ENV === "production" ? yn.exports = ya() : yn.exports = va();
711
- var O = yn.exports, Pa = Object.defineProperty, Ta = (t, e, n) => e in t ? Pa(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, vn = (t, e, n) => (Ta(t, typeof e != "symbol" ? e + "" : e, n), n);
712
- class ir extends Fn.Component {
710
+ process.env.NODE_ENV === "production" ? yn.exports = ga() : yn.exports = ya();
711
+ var O = yn.exports, va = Object.defineProperty, Pa = (t, e, n) => e in t ? va(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, vn = (t, e, n) => (Pa(t, typeof e != "symbol" ? e + "" : e, n), n);
712
+ class nr extends Fn.Component {
713
713
  constructor(e) {
714
- super(e), vn(this, "_el"), vn(this, "renderPortal", () => ua.createPortal(
714
+ super(e), vn(this, "_el"), vn(this, "renderPortal", () => ca.createPortal(
715
715
  this.props.children,
716
716
  this._el
717
717
  ));
@@ -733,18 +733,18 @@ class ir extends Fn.Component {
733
733
  return this.renderPortal();
734
734
  }
735
735
  }
736
- vn(ir, "defaultProps", {
736
+ vn(nr, "defaultProps", {
737
737
  containerSelector: () => document.body
738
738
  });
739
739
  const _n = kt({
740
740
  transformPagePoint: (t) => t,
741
741
  isStatic: !1,
742
742
  reducedMotion: "never"
743
- }), Be = kt({}), Ie = kt(null), Bn = typeof window < "u", sr = Bn ? tr : ct, rr = kt({ strict: !1 }), Ne = (t) => t.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), ba = "framerAppearId", or = "data-" + Ne(ba), xa = {
743
+ }), Be = kt({}), Ie = kt(null), Bn = typeof window < "u", ir = Bn ? Qs : ct, sr = kt({ strict: !1 }), Ne = (t) => t.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), Ta = "framerAppearId", rr = "data-" + Ne(Ta), ba = {
744
744
  skipAnimations: !1,
745
745
  useManualTiming: !1
746
746
  };
747
- function wa(t) {
747
+ function xa(t) {
748
748
  let e = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), i = !1, s = !1;
749
749
  const o = /* @__PURE__ */ new WeakSet();
750
750
  let r = {
@@ -795,16 +795,16 @@ const xe = [
795
795
  // Write
796
796
  "postRender"
797
797
  // Compute
798
- ], Sa = 40;
799
- function ar(t, e) {
798
+ ], wa = 40;
799
+ function or(t, e) {
800
800
  let n = !1, i = !0;
801
801
  const s = {
802
802
  delta: 0,
803
803
  timestamp: 0,
804
804
  isProcessing: !1
805
- }, o = () => n = !0, r = xe.reduce((P, y) => (P[y] = wa(o), P), {}), { read: a, resolveKeyframes: l, update: c, preRender: u, render: f, postRender: d } = r, p = () => {
805
+ }, o = () => n = !0, r = xe.reduce((P, y) => (P[y] = xa(o), P), {}), { read: a, resolveKeyframes: l, update: c, preRender: u, render: f, postRender: d } = r, p = () => {
806
806
  const P = performance.now();
807
- n = !1, s.delta = i ? 1e3 / 60 : Math.max(Math.min(P - s.timestamp, Sa), 1), s.timestamp = P, s.isProcessing = !0, a.process(s), l.process(s), c.process(s), u.process(s), f.process(s), d.process(s), s.isProcessing = !1, n && e && (i = !1, t(p));
807
+ n = !1, s.delta = i ? 1e3 / 60 : Math.max(Math.min(P - s.timestamp, wa), 1), s.timestamp = P, s.isProcessing = !0, a.process(s), l.process(s), c.process(s), u.process(s), f.process(s), d.process(s), s.isProcessing = !1, n && e && (i = !1, t(p));
808
808
  }, m = () => {
809
809
  n = !0, i = !0, s.isProcessing || t(p);
810
810
  };
@@ -816,14 +816,14 @@ function ar(t, e) {
816
816
  r[xe[y]].cancel(P);
817
817
  }, state: s, steps: r };
818
818
  }
819
- const { schedule: In, cancel: gh } = ar(queueMicrotask, !1);
819
+ const { schedule: In, cancel: gh } = or(queueMicrotask, !1);
820
820
  function Bt(t) {
821
821
  return t && typeof t == "object" && Object.prototype.hasOwnProperty.call(t, "current");
822
822
  }
823
- const lr = kt({});
824
- let Fi = !1;
825
- function Aa(t, e, n, i, s) {
826
- const { visualElement: o } = G(Be), r = G(rr), a = G(Ie), l = G(_n).reducedMotion, c = it();
823
+ const ar = kt({});
824
+ let Li = !1;
825
+ function Sa(t, e, n, i, s) {
826
+ const { visualElement: o } = G(Be), r = G(sr), a = G(Ie), l = G(_n).reducedMotion, c = it();
827
827
  i = i || r.renderer, !c.current && i && (c.current = i(t, {
828
828
  visualState: e,
829
829
  parent: o,
@@ -832,23 +832,23 @@ function Aa(t, e, n, i, s) {
832
832
  blockInitialAnimation: a ? a.initial === !1 : !1,
833
833
  reducedMotionConfig: l
834
834
  }));
835
- const u = c.current, f = G(lr);
836
- u && !u.projection && s && (u.type === "html" || u.type === "svg") && Ra(c.current, n, s, f), er(() => {
835
+ const u = c.current, f = G(ar);
836
+ u && !u.projection && s && (u.type === "html" || u.type === "svg") && Ca(c.current, n, s, f), tr(() => {
837
837
  u && u.update(n, a);
838
838
  });
839
- const d = it(!!(n[or] && !window.HandoffComplete));
840
- return sr(() => {
839
+ const d = it(!!(n[rr] && !window.HandoffComplete));
840
+ return ir(() => {
841
841
  u && (u.updateFeatures(), In.render(u.render), d.current && u.animationState && u.animationState.animateChanges());
842
842
  }), ct(() => {
843
- u && (!d.current && u.animationState && u.animationState.animateChanges(), d.current && (d.current = !1, Fi || (Fi = !0, queueMicrotask(Ca))));
843
+ u && (!d.current && u.animationState && u.animationState.animateChanges(), d.current && (d.current = !1, Li || (Li = !0, queueMicrotask(Aa))));
844
844
  }), u;
845
845
  }
846
- function Ca() {
846
+ function Aa() {
847
847
  window.HandoffComplete = !0;
848
848
  }
849
- function Ra(t, e, n, i) {
849
+ function Ca(t, e, n, i) {
850
850
  const { layoutId: s, layout: o, drag: r, dragConstraints: a, layoutScroll: l, layoutRoot: c } = e;
851
- t.projection = new n(t.latestValues, e["data-framer-portal-id"] ? void 0 : cr(t.parent)), t.projection.setOptions({
851
+ t.projection = new n(t.latestValues, e["data-framer-portal-id"] ? void 0 : lr(t.parent)), t.projection.setOptions({
852
852
  layoutId: s,
853
853
  layout: o,
854
854
  alwaysMeasureLayout: !!r || a && Bt(a),
@@ -866,11 +866,11 @@ function Ra(t, e, n, i) {
866
866
  layoutRoot: c
867
867
  });
868
868
  }
869
- function cr(t) {
869
+ function lr(t) {
870
870
  if (t)
871
- return t.options.allowProjection !== !1 ? t.projection : cr(t.parent);
871
+ return t.options.allowProjection !== !1 ? t.projection : lr(t.parent);
872
872
  }
873
- function Ea(t, e, n) {
873
+ function Ra(t, e, n) {
874
874
  return at(
875
875
  (i) => {
876
876
  i && t.mount && t.mount(i), e && (i ? e.mount(i) : e.unmount()), n && (typeof n == "function" ? n(i) : Bt(n) && (n.current = i));
@@ -901,10 +901,10 @@ const Nn = [
901
901
  function Ue(t) {
902
902
  return ae(t.animate) || Un.some((e) => oe(t[e]));
903
903
  }
904
- function ur(t) {
904
+ function cr(t) {
905
905
  return !!(Ue(t) || t.variants);
906
906
  }
907
- function Va(t, e) {
907
+ function Ea(t, e) {
908
908
  if (Ue(t)) {
909
909
  const { initial: n, animate: i } = t;
910
910
  return {
@@ -914,14 +914,14 @@ function Va(t, e) {
914
914
  }
915
915
  return t.inherit !== !1 ? e : {};
916
916
  }
917
- function Da(t) {
918
- const { initial: e, animate: n } = Va(t, G(Be));
919
- return Mt(() => ({ initial: e, animate: n }), [Oi(e), Oi(n)]);
917
+ function Va(t) {
918
+ const { initial: e, animate: n } = Ea(t, G(Be));
919
+ return Mt(() => ({ initial: e, animate: n }), [Fi(e), Fi(n)]);
920
920
  }
921
- function Oi(t) {
921
+ function Fi(t) {
922
922
  return Array.isArray(t) ? t.join(" ") : t;
923
923
  }
924
- const ji = {
924
+ const Oi = {
925
925
  animation: [
926
926
  "animate",
927
927
  "variants",
@@ -941,18 +941,18 @@ const ji = {
941
941
  inView: ["whileInView", "onViewportEnter", "onViewportLeave"],
942
942
  layout: ["layout", "layoutId"]
943
943
  }, $t = {};
944
- for (const t in ji)
944
+ for (const t in Oi)
945
945
  $t[t] = {
946
- isEnabled: (e) => ji[t].some((n) => !!e[n])
946
+ isEnabled: (e) => Oi[t].some((n) => !!e[n])
947
947
  };
948
- function Ma(t) {
948
+ function Da(t) {
949
949
  for (const e in t)
950
950
  $t[e] = {
951
951
  ...$t[e],
952
952
  ...t[e]
953
953
  };
954
954
  }
955
- const Wn = kt({}), ka = Symbol.for("motionComponentSymbol"), H = (t) => t;
955
+ const Wn = kt({}), Ma = Symbol.for("motionComponentSymbol"), H = (t) => t;
956
956
  let Gt = H, pt = H;
957
957
  process.env.NODE_ENV !== "production" && (Gt = (t, e) => {
958
958
  !t && typeof console < "u" && console.warn(e);
@@ -960,37 +960,37 @@ process.env.NODE_ENV !== "production" && (Gt = (t, e) => {
960
960
  if (!t)
961
961
  throw new Error(e);
962
962
  });
963
- function La({ preloadedFeatures: t, createVisualElement: e, useRender: n, useVisualState: i, Component: s }) {
964
- t && Ma(t);
963
+ function ka({ preloadedFeatures: t, createVisualElement: e, useRender: n, useVisualState: i, Component: s }) {
964
+ t && Da(t);
965
965
  function o(a, l) {
966
966
  let c;
967
967
  const u = {
968
968
  ...G(_n),
969
969
  ...a,
970
- layoutId: Fa(a)
971
- }, { isStatic: f } = u, d = Da(a), p = i(a, f);
970
+ layoutId: La(a)
971
+ }, { isStatic: f } = u, d = Va(a), p = i(a, f);
972
972
  if (!f && Bn) {
973
- Oa(u, t);
974
- const m = ja(u);
975
- c = m.MeasureLayout, d.visualElement = Aa(s, p, u, e, m.ProjectionNode);
973
+ Fa(u, t);
974
+ const m = Oa(u);
975
+ c = m.MeasureLayout, d.visualElement = Sa(s, p, u, e, m.ProjectionNode);
976
976
  }
977
- return O.jsxs(Be.Provider, { value: d, children: [c && d.visualElement ? O.jsx(c, { visualElement: d.visualElement, ...u }) : null, n(s, a, Ea(p, d.visualElement, l), p, f, d.visualElement)] });
977
+ return O.jsxs(Be.Provider, { value: d, children: [c && d.visualElement ? O.jsx(c, { visualElement: d.visualElement, ...u }) : null, n(s, a, Ra(p, d.visualElement, l), p, f, d.visualElement)] });
978
978
  }
979
979
  const r = Me(o);
980
- return r[ka] = s, r;
980
+ return r[Ma] = s, r;
981
981
  }
982
- function Fa({ layoutId: t }) {
982
+ function La({ layoutId: t }) {
983
983
  const e = G(Wn).id;
984
984
  return e && t !== void 0 ? e + "-" + t : t;
985
985
  }
986
- function Oa(t, e) {
987
- const n = G(rr).strict;
986
+ function Fa(t, e) {
987
+ const n = G(sr).strict;
988
988
  if (process.env.NODE_ENV !== "production" && e && n) {
989
989
  const i = "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";
990
990
  t.ignoreStrict ? Gt(!1, i) : pt(!1, i);
991
991
  }
992
992
  }
993
- function ja(t) {
993
+ function Oa(t) {
994
994
  const { drag: e, layout: n } = $t;
995
995
  if (!e && !n)
996
996
  return {};
@@ -1000,9 +1000,9 @@ function ja(t) {
1000
1000
  ProjectionNode: i.ProjectionNode
1001
1001
  };
1002
1002
  }
1003
- function _a(t) {
1003
+ function ja(t) {
1004
1004
  function e(i, s = {}) {
1005
- return La(t(i, s));
1005
+ return ka(t(i, s));
1006
1006
  }
1007
1007
  if (typeof Proxy > "u")
1008
1008
  return e;
@@ -1016,7 +1016,7 @@ function _a(t) {
1016
1016
  get: (i, s) => (n.has(s) || n.set(s, e(s)), n.get(s))
1017
1017
  });
1018
1018
  }
1019
- const Ba = [
1019
+ const _a = [
1020
1020
  "animate",
1021
1021
  "circle",
1022
1022
  "defs",
@@ -1056,7 +1056,7 @@ function $n(t) {
1056
1056
  /**
1057
1057
  * If it's in our list of lowercase SVG tags, it's an SVG component
1058
1058
  */
1059
- !!(Ba.indexOf(t) > -1 || /**
1059
+ !!(_a.indexOf(t) > -1 || /**
1060
1060
  * If it contains a capital letter, it's an SVG component
1061
1061
  */
1062
1062
  /[A-Z]/u.test(t))
@@ -1064,7 +1064,7 @@ function $n(t) {
1064
1064
  );
1065
1065
  }
1066
1066
  const ke = {};
1067
- function Ia(t) {
1067
+ function Ba(t) {
1068
1068
  Object.assign(ke, t);
1069
1069
  }
1070
1070
  const pe = [
@@ -1086,10 +1086,27 @@ const pe = [
1086
1086
  "skewX",
1087
1087
  "skewY"
1088
1088
  ], wt = new Set(pe);
1089
- function fr(t, { layout: e, layoutId: n }) {
1089
+ function ur(t, { layout: e, layoutId: n }) {
1090
1090
  return wt.has(t) || t.startsWith("origin") || (e || n !== void 0) && (!!ke[t] || t === "opacity");
1091
1091
  }
1092
- const Y = (t) => !!(t && t.getVelocity), hr = (t, e) => e && typeof t == "number" ? e.transform(t) : t, bt = (t, e, n) => n > e ? e : n < t ? t : n, Ht = {
1092
+ const Y = (t) => !!(t && t.getVelocity), Ia = {
1093
+ x: "translateX",
1094
+ y: "translateY",
1095
+ z: "translateZ",
1096
+ transformPerspective: "perspective"
1097
+ }, Na = pe.length;
1098
+ function Ua(t, e, n) {
1099
+ let i = "";
1100
+ for (let s = 0; s < Na; s++) {
1101
+ const o = pe[s];
1102
+ if (t[o] !== void 0) {
1103
+ const r = Ia[o] || o;
1104
+ i += `${r}(${t[o]}) `;
1105
+ }
1106
+ }
1107
+ return i = i.trim(), n ? i = n(t, e ? "" : i) : e && (i = "none"), i;
1108
+ }
1109
+ const fr = (t) => (e) => typeof e == "string" && e.startsWith(t), hr = fr("--"), Wa = fr("var(--"), Kn = (t) => Wa(t) ? $a.test(t.split("/*")[0].trim()) : !1, $a = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu, Ka = (t, e) => e && typeof t == "number" ? e.transform(t) : t, bt = (t, e, n) => n > e ? e : n < t ? t : n, Ht = {
1093
1110
  test: (t) => typeof t == "number",
1094
1111
  parse: parseFloat,
1095
1112
  transform: (t) => t
@@ -1099,25 +1116,25 @@ const Y = (t) => !!(t && t.getVelocity), hr = (t, e) => e && typeof t == "number
1099
1116
  }, we = {
1100
1117
  ...Ht,
1101
1118
  default: 1
1102
- }, ne = (t) => Math.round(t * 1e5) / 1e5, Kn = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu, Na = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu, Ua = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;
1119
+ }, ne = (t) => Math.round(t * 1e5) / 1e5, Gn = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu, Ga = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu, Ha = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;
1103
1120
  function me(t) {
1104
1121
  return typeof t == "string";
1105
1122
  }
1106
- function Wa(t) {
1123
+ function za(t) {
1107
1124
  return t == null;
1108
1125
  }
1109
1126
  const ge = (t) => ({
1110
1127
  test: (e) => me(e) && e.endsWith(t) && e.split(" ").length === 1,
1111
1128
  parse: parseFloat,
1112
1129
  transform: (e) => `${e}${t}`
1113
- }), vt = ge("deg"), ot = ge("%"), S = ge("px"), $a = ge("vh"), Ka = ge("vw"), _i = {
1130
+ }), vt = ge("deg"), ot = ge("%"), S = ge("px"), Ya = ge("vh"), Xa = ge("vw"), ji = {
1114
1131
  ...ot,
1115
1132
  parse: (t) => ot.parse(t) / 100,
1116
1133
  transform: (t) => ot.transform(t * 100)
1117
- }, Bi = {
1134
+ }, _i = {
1118
1135
  ...Ht,
1119
1136
  transform: Math.round
1120
- }, Gn = {
1137
+ }, dr = {
1121
1138
  // Border props
1122
1139
  borderWidth: S,
1123
1140
  borderTopWidth: S,
@@ -1173,83 +1190,59 @@ const ge = (t) => ({
1173
1190
  perspective: S,
1174
1191
  transformPerspective: S,
1175
1192
  opacity: ee,
1176
- originX: _i,
1177
- originY: _i,
1193
+ originX: ji,
1194
+ originY: ji,
1178
1195
  originZ: S,
1179
1196
  // Misc
1180
- zIndex: Bi,
1197
+ zIndex: _i,
1181
1198
  backgroundPositionX: S,
1182
1199
  backgroundPositionY: S,
1183
1200
  // SVG
1184
1201
  fillOpacity: ee,
1185
1202
  strokeOpacity: ee,
1186
- numOctaves: Bi
1187
- }, Ga = {
1188
- x: "translateX",
1189
- y: "translateY",
1190
- z: "translateZ",
1191
- transformPerspective: "perspective"
1192
- }, Ha = pe.length;
1193
- function za(t, e, n) {
1194
- let i = "", s = !0;
1195
- for (let o = 0; o < Ha; o++) {
1196
- const r = pe[o], a = t[r];
1197
- if (a === void 0)
1198
- continue;
1199
- let l = !0;
1200
- if (typeof a == "number" ? l = a === (r.startsWith("scale") ? 1 : 0) : l = parseFloat(a) === 0, !l || n) {
1201
- const c = hr(a, Gn[r]);
1202
- if (!l) {
1203
- s = !1;
1204
- const u = Ga[r] || r;
1205
- i += `${u}(${c}) `;
1206
- }
1207
- n && (e[r] = c);
1208
- }
1209
- }
1210
- return i = i.trim(), n ? i = n(e, s ? "" : i) : s && (i = "none"), i;
1211
- }
1212
- const dr = (t) => (e) => typeof e == "string" && e.startsWith(t), pr = dr("--"), Ya = dr("var(--"), Hn = (t) => Ya(t) ? Xa.test(t.split("/*")[0].trim()) : !1, Xa = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
1213
- function zn(t, e, n) {
1214
- const { style: i, vars: s, transformOrigin: o } = t;
1215
- let r = !1, a = !1;
1216
- for (const l in e) {
1217
- const c = e[l];
1218
- if (wt.has(l)) {
1219
- r = !0;
1220
- continue;
1221
- } else if (pr(l)) {
1222
- s[l] = c;
1203
+ numOctaves: _i
1204
+ };
1205
+ function Hn(t, e, n) {
1206
+ const { style: i, vars: s, transform: o, transformOrigin: r } = t;
1207
+ let a = !1, l = !1, c = !0;
1208
+ for (const u in e) {
1209
+ const f = e[u];
1210
+ if (hr(u)) {
1211
+ s[u] = f;
1223
1212
  continue;
1224
- } else {
1225
- const u = hr(c, Gn[l]);
1226
- l.startsWith("origin") ? (a = !0, o[l] = u) : i[l] = u;
1227
1213
  }
1214
+ const d = dr[u], p = Ka(f, d);
1215
+ if (wt.has(u)) {
1216
+ if (a = !0, o[u] = p, !c)
1217
+ continue;
1218
+ f !== (d.default || 0) && (c = !1);
1219
+ } else
1220
+ u.startsWith("origin") ? (l = !0, r[u] = p) : i[u] = p;
1228
1221
  }
1229
- if (e.transform || (r || n ? i.transform = za(e, t.transform, n) : i.transform && (i.transform = "none")), a) {
1230
- const { originX: l = "50%", originY: c = "50%", originZ: u = 0 } = o;
1231
- i.transformOrigin = `${l} ${c} ${u}`;
1222
+ if (e.transform || (a || n ? i.transform = Ua(t.transform, c, n) : i.transform && (i.transform = "none")), l) {
1223
+ const { originX: u = "50%", originY: f = "50%", originZ: d = 0 } = r;
1224
+ i.transformOrigin = `${u} ${f} ${d}`;
1232
1225
  }
1233
1226
  }
1234
- const Yn = () => ({
1227
+ const zn = () => ({
1235
1228
  style: {},
1236
1229
  transform: {},
1237
1230
  transformOrigin: {},
1238
1231
  vars: {}
1239
1232
  });
1240
- function mr(t, e, n) {
1233
+ function pr(t, e, n) {
1241
1234
  for (const i in e)
1242
- !Y(e[i]) && !fr(i, n) && (t[i] = e[i]);
1235
+ !Y(e[i]) && !ur(i, n) && (t[i] = e[i]);
1243
1236
  }
1244
1237
  function qa({ transformTemplate: t }, e) {
1245
1238
  return Mt(() => {
1246
- const n = Yn();
1247
- return zn(n, e, t), Object.assign({}, n.vars, n.style);
1239
+ const n = zn();
1240
+ return Hn(n, e, t), Object.assign({}, n.vars, n.style);
1248
1241
  }, [e]);
1249
1242
  }
1250
1243
  function Za(t, e) {
1251
1244
  const n = t.style || {}, i = {};
1252
- return mr(i, n, t), Object.assign(i, qa(t, e)), i;
1245
+ return pr(i, n, t), Object.assign(i, qa(t, e)), i;
1253
1246
  }
1254
1247
  function Ja(t, e) {
1255
1248
  const n = {}, i = Za(t, e);
@@ -1290,9 +1283,9 @@ const Qa = /* @__PURE__ */ new Set([
1290
1283
  function Le(t) {
1291
1284
  return t.startsWith("while") || t.startsWith("drag") && t !== "draggable" || t.startsWith("layout") || t.startsWith("onTap") || t.startsWith("onPan") || t.startsWith("onLayout") || Qa.has(t);
1292
1285
  }
1293
- let gr = (t) => !Le(t);
1286
+ let mr = (t) => !Le(t);
1294
1287
  function tl(t) {
1295
- t && (gr = (e) => e.startsWith("on") ? !Le(e) : t(e));
1288
+ t && (mr = (e) => e.startsWith("on") ? !Le(e) : t(e));
1296
1289
  }
1297
1290
  try {
1298
1291
  tl(require("@emotion/is-prop-valid").default);
@@ -1301,15 +1294,15 @@ try {
1301
1294
  function el(t, e, n) {
1302
1295
  const i = {};
1303
1296
  for (const s in t)
1304
- s === "values" && typeof t.values == "object" || (gr(s) || n === !0 && Le(s) || !e && !Le(s) || // If trying to use native HTML drag events, forward drag listeners
1297
+ s === "values" && typeof t.values == "object" || (mr(s) || n === !0 && Le(s) || !e && !Le(s) || // If trying to use native HTML drag events, forward drag listeners
1305
1298
  t.draggable && s.startsWith("onDrag")) && (i[s] = t[s]);
1306
1299
  return i;
1307
1300
  }
1308
- function Ii(t, e, n) {
1301
+ function Bi(t, e, n) {
1309
1302
  return typeof t == "string" ? t : S.transform(e + n * t);
1310
1303
  }
1311
1304
  function nl(t, e, n) {
1312
- const i = Ii(e, t.x, t.width), s = Ii(n, t.y, t.height);
1305
+ const i = Bi(e, t.x, t.width), s = Bi(n, t.y, t.height);
1313
1306
  return `${i} ${s}`;
1314
1307
  }
1315
1308
  const il = {
@@ -1326,7 +1319,7 @@ function rl(t, e, n = 1, i = 0, s = !0) {
1326
1319
  const r = S.transform(e), a = S.transform(n);
1327
1320
  t[o.array] = `${r} ${a}`;
1328
1321
  }
1329
- function Xn(t, {
1322
+ function Yn(t, {
1330
1323
  attrX: e,
1331
1324
  attrY: n,
1332
1325
  attrScale: i,
@@ -1338,7 +1331,7 @@ function Xn(t, {
1338
1331
  // This is object creation, which we try to avoid per-frame.
1339
1332
  ...c
1340
1333
  }, u, f) {
1341
- if (zn(t, c, f), u) {
1334
+ if (Hn(t, c, f), u) {
1342
1335
  t.style.viewBox && (t.attrs.viewBox = t.style.viewBox);
1343
1336
  return;
1344
1337
  }
@@ -1346,39 +1339,39 @@ function Xn(t, {
1346
1339
  const { attrs: d, style: p, dimensions: m } = t;
1347
1340
  d.transform && (m && (p.transform = d.transform), delete d.transform), m && (s !== void 0 || o !== void 0 || p.transform) && (p.transformOrigin = nl(m, s !== void 0 ? s : 0.5, o !== void 0 ? o : 0.5)), e !== void 0 && (d.x = e), n !== void 0 && (d.y = n), i !== void 0 && (d.scale = i), r !== void 0 && rl(d, r, a, l, !1);
1348
1341
  }
1349
- const yr = () => ({
1350
- ...Yn(),
1342
+ const gr = () => ({
1343
+ ...zn(),
1351
1344
  attrs: {}
1352
- }), qn = (t) => typeof t == "string" && t.toLowerCase() === "svg";
1345
+ }), Xn = (t) => typeof t == "string" && t.toLowerCase() === "svg";
1353
1346
  function ol(t, e, n, i) {
1354
1347
  const s = Mt(() => {
1355
- const o = yr();
1356
- return Xn(o, e, qn(i), t.transformTemplate), {
1348
+ const o = gr();
1349
+ return Yn(o, e, Xn(i), t.transformTemplate), {
1357
1350
  ...o.attrs,
1358
1351
  style: { ...o.style }
1359
1352
  };
1360
1353
  }, [e]);
1361
1354
  if (t.style) {
1362
1355
  const o = {};
1363
- mr(o, t.style, t), s.style = { ...o, ...s.style };
1356
+ pr(o, t.style, t), s.style = { ...o, ...s.style };
1364
1357
  }
1365
1358
  return s;
1366
1359
  }
1367
1360
  function al(t = !1) {
1368
1361
  return (n, i, s, { latestValues: o }, r) => {
1369
- const l = ($n(n) ? ol : Ja)(i, o, r, n), c = el(i, typeof n == "string", t), u = n !== nr ? { ...c, ...l, ref: s } : {}, { children: f } = i, d = Mt(() => Y(f) ? f.get() : f, [f]);
1370
- return oa(n, {
1362
+ const l = ($n(n) ? ol : Ja)(i, o, r, n), c = el(i, typeof n == "string", t), u = n !== er ? { ...c, ...l, ref: s } : {}, { children: f } = i, d = Mt(() => Y(f) ? f.get() : f, [f]);
1363
+ return ra(n, {
1371
1364
  ...u,
1372
1365
  children: d
1373
1366
  });
1374
1367
  };
1375
1368
  }
1376
- function vr(t, { style: e, vars: n }, i, s) {
1369
+ function yr(t, { style: e, vars: n }, i, s) {
1377
1370
  Object.assign(t.style, e, s && s.getProjectionStyles(i));
1378
1371
  for (const o in n)
1379
1372
  t.style.setProperty(o, n[o]);
1380
1373
  }
1381
- const Pr = /* @__PURE__ */ new Set([
1374
+ const vr = /* @__PURE__ */ new Set([
1382
1375
  "baseFrequency",
1383
1376
  "diffuseConstant",
1384
1377
  "kernelMatrix",
@@ -1403,20 +1396,20 @@ const Pr = /* @__PURE__ */ new Set([
1403
1396
  "textLength",
1404
1397
  "lengthAdjust"
1405
1398
  ]);
1406
- function Tr(t, e, n, i) {
1407
- vr(t, e, void 0, i);
1399
+ function Pr(t, e, n, i) {
1400
+ yr(t, e, void 0, i);
1408
1401
  for (const s in e.attrs)
1409
- t.setAttribute(Pr.has(s) ? s : Ne(s), e.attrs[s]);
1402
+ t.setAttribute(vr.has(s) ? s : Ne(s), e.attrs[s]);
1410
1403
  }
1411
- function Zn(t, e, n) {
1404
+ function qn(t, e, n) {
1412
1405
  var i;
1413
1406
  const { style: s } = t, o = {};
1414
1407
  for (const r in s)
1415
- (Y(s[r]) || e.style && Y(e.style[r]) || fr(r, t) || ((i = n == null ? void 0 : n.getValue(r)) === null || i === void 0 ? void 0 : i.liveStyle) !== void 0) && (o[r] = s[r]);
1408
+ (Y(s[r]) || e.style && Y(e.style[r]) || ur(r, t) || ((i = n == null ? void 0 : n.getValue(r)) === null || i === void 0 ? void 0 : i.liveStyle) !== void 0) && (o[r] = s[r]);
1416
1409
  return n && s && typeof s.willChange == "string" && (n.applyWillChange = !1), o;
1417
1410
  }
1418
- function br(t, e, n) {
1419
- const i = Zn(t, e, n);
1411
+ function Tr(t, e, n) {
1412
+ const i = qn(t, e, n);
1420
1413
  for (const s in t)
1421
1414
  if (Y(t[s]) || Y(e[s])) {
1422
1415
  const o = pe.indexOf(s) !== -1 ? "attr" + s.charAt(0).toUpperCase() + s.substring(1) : s;
@@ -1424,24 +1417,24 @@ function br(t, e, n) {
1424
1417
  }
1425
1418
  return i;
1426
1419
  }
1427
- function Ni(t) {
1420
+ function Ii(t) {
1428
1421
  const e = [{}, {}];
1429
1422
  return t == null || t.values.forEach((n, i) => {
1430
1423
  e[0][i] = n.get(), e[1][i] = n.getVelocity();
1431
1424
  }), e;
1432
1425
  }
1433
- function Jn(t, e, n, i) {
1426
+ function Zn(t, e, n, i) {
1434
1427
  if (typeof e == "function") {
1435
- const [s, o] = Ni(i);
1428
+ const [s, o] = Ii(i);
1436
1429
  e = e(n !== void 0 ? n : t.custom, s, o);
1437
1430
  }
1438
1431
  if (typeof e == "string" && (e = t.variants && t.variants[e]), typeof e == "function") {
1439
- const [s, o] = Ni(i);
1432
+ const [s, o] = Ii(i);
1440
1433
  e = e(n !== void 0 ? n : t.custom, s, o);
1441
1434
  }
1442
1435
  return e;
1443
1436
  }
1444
- function Qn(t) {
1437
+ function Jn(t) {
1445
1438
  const e = it(null);
1446
1439
  return e.current === null && (e.current = t()), e.current;
1447
1440
  }
@@ -1450,7 +1443,7 @@ function Ce(t) {
1450
1443
  const e = Y(t) ? t.get() : t;
1451
1444
  return ll(e) ? e.toValue() : e;
1452
1445
  }
1453
- const xr = /* @__PURE__ */ new Set([
1446
+ const br = /* @__PURE__ */ new Set([
1454
1447
  "opacity",
1455
1448
  "clipPath",
1456
1449
  "filter",
@@ -1459,10 +1452,10 @@ const xr = /* @__PURE__ */ new Set([
1459
1452
  // or until we implement support for linear() easing.
1460
1453
  // "background-color"
1461
1454
  ]);
1462
- function wr(t) {
1455
+ function xr(t) {
1463
1456
  if (wt.has(t))
1464
1457
  return "transform";
1465
- if (xr.has(t))
1458
+ if (br.has(t))
1466
1459
  return Ne(t);
1467
1460
  }
1468
1461
  function We(t, e) {
@@ -1479,18 +1472,18 @@ function ul({ applyWillChange: t = !1, scrapeMotionValuesFromProps: e, createRen
1479
1472
  };
1480
1473
  return i && (l.mount = (c) => i(s, c, l)), l;
1481
1474
  }
1482
- const Sr = (t) => (e, n) => {
1475
+ const wr = (t) => (e, n) => {
1483
1476
  const i = G(Be), s = G(Ie), o = () => ul(t, e, i, s, n);
1484
- return n ? o() : Qn(o);
1477
+ return n ? o() : Jn(o);
1485
1478
  };
1486
1479
  function fl(t, e) {
1487
- const n = wr(e);
1480
+ const n = xr(e);
1488
1481
  n && We(t, n);
1489
1482
  }
1490
- function Ui(t, e, n) {
1483
+ function Ni(t, e, n) {
1491
1484
  const i = Array.isArray(e) ? e : [e];
1492
1485
  for (let s = 0; s < i.length; s++) {
1493
- const o = Jn(t, i[s]);
1486
+ const o = Zn(t, i[s]);
1494
1487
  if (o) {
1495
1488
  const { transitionEnd: r, transition: a, ...l } = o;
1496
1489
  n(l, r);
@@ -1503,12 +1496,12 @@ function hl(t, e, n, i, s) {
1503
1496
  for (const x in c)
1504
1497
  r[x] = Ce(c[x]);
1505
1498
  let { initial: u, animate: f } = t;
1506
- const d = Ue(t), p = ur(t);
1499
+ const d = Ue(t), p = cr(t);
1507
1500
  e && p && !d && t.inherit !== !1 && (u === void 0 && (u = e.initial), f === void 0 && (f = e.animate));
1508
1501
  let m = n ? n.initial === !1 : !1;
1509
1502
  m = m || u === !1;
1510
1503
  const v = m ? f : u;
1511
- return v && typeof v != "boolean" && !ae(v) && Ui(t, v, (x, P) => {
1504
+ return v && typeof v != "boolean" && !ae(v) && Ni(t, v, (x, P) => {
1512
1505
  for (const y in x) {
1513
1506
  let T = x[y];
1514
1507
  if (Array.isArray(T)) {
@@ -1519,15 +1512,15 @@ function hl(t, e, n, i, s) {
1519
1512
  }
1520
1513
  for (const y in P)
1521
1514
  r[y] = P[y];
1522
- }), l && (f && u !== !1 && !ae(f) && Ui(t, f, (x) => {
1515
+ }), l && (f && u !== !1 && !ae(f) && Ni(t, f, (x) => {
1523
1516
  for (const P in x)
1524
1517
  fl(a, P);
1525
1518
  }), a.length && (r.willChange = a.join(","))), r;
1526
1519
  }
1527
- const { schedule: M, cancel: mt, state: K, steps: nn } = ar(typeof requestAnimationFrame < "u" ? requestAnimationFrame : H, !0), dl = {
1528
- useVisualState: Sr({
1529
- scrapeMotionValuesFromProps: br,
1530
- createRenderState: yr,
1520
+ const { schedule: M, cancel: mt, state: K, steps: nn } = or(typeof requestAnimationFrame < "u" ? requestAnimationFrame : H, !0), dl = {
1521
+ useVisualState: wr({
1522
+ scrapeMotionValuesFromProps: Tr,
1523
+ createRenderState: gr,
1531
1524
  onMount: (t, e, { renderState: n, latestValues: i }) => {
1532
1525
  M.read(() => {
1533
1526
  try {
@@ -1541,15 +1534,15 @@ const { schedule: M, cancel: mt, state: K, steps: nn } = ar(typeof requestAnimat
1541
1534
  };
1542
1535
  }
1543
1536
  }), M.render(() => {
1544
- Xn(n, i, qn(e.tagName), t.transformTemplate), Tr(e, n);
1537
+ Yn(n, i, Xn(e.tagName), t.transformTemplate), Pr(e, n);
1545
1538
  });
1546
1539
  }
1547
1540
  })
1548
1541
  }, pl = {
1549
- useVisualState: Sr({
1542
+ useVisualState: wr({
1550
1543
  applyWillChange: !0,
1551
- scrapeMotionValuesFromProps: Zn,
1552
- createRenderState: Yn
1544
+ scrapeMotionValuesFromProps: qn,
1545
+ createRenderState: zn
1553
1546
  })
1554
1547
  };
1555
1548
  function ml(t, { forwardMotionProps: e = !1 }, n, i) {
@@ -1564,7 +1557,7 @@ function ml(t, { forwardMotionProps: e = !1 }, n, i) {
1564
1557
  function lt(t, e, n, i = { passive: !0 }) {
1565
1558
  return t.addEventListener(e, n, i), () => t.removeEventListener(e, n);
1566
1559
  }
1567
- const Ar = (t) => t.pointerType === "mouse" ? typeof t.button != "number" || t.button <= 0 : t.isPrimary !== !1;
1560
+ const Sr = (t) => t.pointerType === "mouse" ? typeof t.button != "number" || t.button <= 0 : t.isPrimary !== !1;
1568
1561
  function Ke(t, e = "page") {
1569
1562
  return {
1570
1563
  point: {
@@ -1573,12 +1566,12 @@ function Ke(t, e = "page") {
1573
1566
  }
1574
1567
  };
1575
1568
  }
1576
- const gl = (t) => (e) => Ar(e) && t(e, Ke(e));
1569
+ const gl = (t) => (e) => Sr(e) && t(e, Ke(e));
1577
1570
  function ut(t, e, n, i) {
1578
1571
  return lt(t, e, gl(n), i);
1579
1572
  }
1580
1573
  const yl = (t, e) => (n) => e(t(n)), ft = (...t) => t.reduce(yl);
1581
- function Cr(t) {
1574
+ function Ar(t) {
1582
1575
  let e = null;
1583
1576
  return () => {
1584
1577
  const n = () => {
@@ -1587,23 +1580,23 @@ function Cr(t) {
1587
1580
  return e === null ? (e = t, n) : !1;
1588
1581
  };
1589
1582
  }
1590
- const Wi = Cr("dragHorizontal"), $i = Cr("dragVertical");
1591
- function Rr(t) {
1583
+ const Ui = Ar("dragHorizontal"), Wi = Ar("dragVertical");
1584
+ function Cr(t) {
1592
1585
  let e = !1;
1593
1586
  if (t === "y")
1594
- e = $i();
1595
- else if (t === "x")
1596
1587
  e = Wi();
1588
+ else if (t === "x")
1589
+ e = Ui();
1597
1590
  else {
1598
- const n = Wi(), i = $i();
1591
+ const n = Ui(), i = Wi();
1599
1592
  n && i ? e = () => {
1600
1593
  n(), i();
1601
1594
  } : (n && n(), i && i());
1602
1595
  }
1603
1596
  return e;
1604
1597
  }
1605
- function Er() {
1606
- const t = Rr(!0);
1598
+ function Rr() {
1599
+ const t = Cr(!0);
1607
1600
  return t ? (t(), !1) : !0;
1608
1601
  }
1609
1602
  class St {
@@ -1613,9 +1606,9 @@ class St {
1613
1606
  update() {
1614
1607
  }
1615
1608
  }
1616
- function Ki(t, e) {
1609
+ function $i(t, e) {
1617
1610
  const n = e ? "pointerenter" : "pointerleave", i = e ? "onHoverStart" : "onHoverEnd", s = (o, r) => {
1618
- if (o.pointerType === "touch" || Er())
1611
+ if (o.pointerType === "touch" || Rr())
1619
1612
  return;
1620
1613
  const a = t.getProps();
1621
1614
  t.animationState && a.whileHover && t.animationState.setActive("whileHover", e);
@@ -1628,7 +1621,7 @@ function Ki(t, e) {
1628
1621
  }
1629
1622
  class vl extends St {
1630
1623
  mount() {
1631
- this.unmount = ft(Ki(this.node, !0), Ki(this.node, !1));
1624
+ this.unmount = ft($i(this.node, !0), $i(this.node, !1));
1632
1625
  }
1633
1626
  unmount() {
1634
1627
  }
@@ -1655,7 +1648,7 @@ class Pl extends St {
1655
1648
  unmount() {
1656
1649
  }
1657
1650
  }
1658
- const Vr = (t, e) => e ? t === e ? !0 : Vr(t, e.parentElement) : !1;
1651
+ const Er = (t, e) => e ? t === e ? !0 : Er(t, e.parentElement) : !1;
1659
1652
  function sn(t, e) {
1660
1653
  if (!e)
1661
1654
  return;
@@ -1671,7 +1664,7 @@ class Tl extends St {
1671
1664
  const i = this.node.getProps(), o = ut(window, "pointerup", (a, l) => {
1672
1665
  if (!this.checkPressEnd())
1673
1666
  return;
1674
- const { onTap: c, onTapCancel: u, globalTapTarget: f } = this.node.getProps(), d = !f && !Vr(this.node.current, a.target) ? u : c;
1667
+ const { onTap: c, onTapCancel: u, globalTapTarget: f } = this.node.getProps(), d = !f && !Er(this.node.current, a.target) ? u : c;
1675
1668
  d && M.update(() => d(a, l));
1676
1669
  }, {
1677
1670
  passive: !(i.onTap || i.onPointerUp)
@@ -1704,7 +1697,7 @@ class Tl extends St {
1704
1697
  s && this.node.animationState && this.node.animationState.setActive("whileTap", !0), i && M.postRender(() => i(e, n));
1705
1698
  }
1706
1699
  checkPressEnd() {
1707
- return this.removeEndListeners(), this.isPressing = !1, this.node.getProps().whileTap && this.node.animationState && this.node.animationState.setActive("whileTap", !1), !Er();
1700
+ return this.removeEndListeners(), this.isPressing = !1, this.node.getProps().whileTap && this.node.animationState && this.node.animationState.setActive("whileTap", !1), !Rr();
1708
1701
  }
1709
1702
  cancelPress(e, n) {
1710
1703
  if (!this.checkPressEnd())
@@ -1793,7 +1786,7 @@ const El = {
1793
1786
  Feature: vl
1794
1787
  }
1795
1788
  };
1796
- function Dr(t, e) {
1789
+ function Vr(t, e) {
1797
1790
  if (!Array.isArray(e))
1798
1791
  return !1;
1799
1792
  const n = e.length;
@@ -1806,7 +1799,7 @@ function Dr(t, e) {
1806
1799
  }
1807
1800
  function Ge(t, e, n) {
1808
1801
  const i = t.getProps();
1809
- return Jn(i, e, n !== void 0 ? n : i.custom, t);
1802
+ return Zn(i, e, n !== void 0 ? n : i.custom, t);
1810
1803
  }
1811
1804
  const ht = (t) => t * 1e3, dt = (t) => t / 1e3, Vl = {
1812
1805
  type: "spring",
@@ -1829,7 +1822,7 @@ const ht = (t) => t * 1e3, dt = (t) => t / 1e3, Vl = {
1829
1822
  function Fl({ when: t, delay: e, delayChildren: n, staggerChildren: i, staggerDirection: s, repeat: o, repeatType: r, repeatDelay: a, from: l, elapsed: c, ...u }) {
1830
1823
  return !!Object.keys(u).length;
1831
1824
  }
1832
- function ti(t, e) {
1825
+ function Qn(t, e) {
1833
1826
  return t[e] || t.default || t;
1834
1827
  }
1835
1828
  const Ol = (t) => t !== null;
@@ -1842,15 +1835,15 @@ function jl() {
1842
1835
  Re = void 0;
1843
1836
  }
1844
1837
  const Tt = {
1845
- now: () => (Re === void 0 && Tt.set(K.isProcessing || xa.useManualTiming ? K.timestamp : performance.now()), Re),
1838
+ now: () => (Re === void 0 && Tt.set(K.isProcessing || ba.useManualTiming ? K.timestamp : performance.now()), Re),
1846
1839
  set: (t) => {
1847
1840
  Re = t, queueMicrotask(jl);
1848
1841
  }
1849
- }, Mr = (t) => /^0[^.\s]+$/u.test(t);
1842
+ }, Dr = (t) => /^0[^.\s]+$/u.test(t);
1850
1843
  function _l(t) {
1851
- return typeof t == "number" ? t === 0 : t !== null ? t === "none" || t === "0" || Mr(t) : !0;
1844
+ return typeof t == "number" ? t === 0 : t !== null ? t === "none" || t === "0" || Dr(t) : !0;
1852
1845
  }
1853
- const kr = (t) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t), Bl = (
1846
+ const Mr = (t) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t), Bl = (
1854
1847
  // eslint-disable-next-line redos-detector/no-unsafe-regex -- false positive, as it can match a lot of words
1855
1848
  /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u
1856
1849
  );
@@ -1862,7 +1855,7 @@ function Il(t) {
1862
1855
  return [`--${n ?? i}`, s];
1863
1856
  }
1864
1857
  const Nl = 4;
1865
- function Lr(t, e, n = 1) {
1858
+ function kr(t, e, n = 1) {
1866
1859
  pt(n <= Nl, `Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);
1867
1860
  const [i, s] = Il(t);
1868
1861
  if (!i)
@@ -1870,9 +1863,9 @@ function Lr(t, e, n = 1) {
1870
1863
  const o = window.getComputedStyle(e).getPropertyValue(i);
1871
1864
  if (o) {
1872
1865
  const r = o.trim();
1873
- return kr(r) ? parseFloat(r) : r;
1866
+ return Mr(r) ? parseFloat(r) : r;
1874
1867
  }
1875
- return Hn(s) ? Lr(s, e, n + 1) : s;
1868
+ return Kn(s) ? kr(s, e, n + 1) : s;
1876
1869
  }
1877
1870
  const Ul = /* @__PURE__ */ new Set([
1878
1871
  "width",
@@ -1885,15 +1878,15 @@ const Ul = /* @__PURE__ */ new Set([
1885
1878
  "y",
1886
1879
  "translateX",
1887
1880
  "translateY"
1888
- ]), Gi = (t) => t === Ht || t === S, Hi = (t, e) => parseFloat(t.split(", ")[e]), zi = (t, e) => (n, { transform: i }) => {
1881
+ ]), Ki = (t) => t === Ht || t === S, Gi = (t, e) => parseFloat(t.split(", ")[e]), Hi = (t, e) => (n, { transform: i }) => {
1889
1882
  if (i === "none" || !i)
1890
1883
  return 0;
1891
1884
  const s = i.match(/^matrix3d\((.+)\)$/u);
1892
1885
  if (s)
1893
- return Hi(s[1], e);
1886
+ return Gi(s[1], e);
1894
1887
  {
1895
1888
  const o = i.match(/^matrix\((.+)\)$/u);
1896
- return o ? Hi(o[1], t) : 0;
1889
+ return o ? Gi(o[1], t) : 0;
1897
1890
  }
1898
1891
  }, Wl = /* @__PURE__ */ new Set(["x", "y", "z"]), $l = pe.filter((t) => !Wl.has(t));
1899
1892
  function Kl(t) {
@@ -1912,17 +1905,17 @@ const Kt = {
1912
1905
  bottom: ({ y: t }, { top: e }) => parseFloat(e) + (t.max - t.min),
1913
1906
  right: ({ x: t }, { left: e }) => parseFloat(e) + (t.max - t.min),
1914
1907
  // Transform
1915
- x: zi(4, 13),
1916
- y: zi(5, 14)
1908
+ x: Hi(4, 13),
1909
+ y: Hi(5, 14)
1917
1910
  };
1918
1911
  Kt.translateX = Kt.x;
1919
1912
  Kt.translateY = Kt.y;
1920
- const Fr = (t) => (e) => e.test(t), Gl = {
1913
+ const Lr = (t) => (e) => e.test(t), Gl = {
1921
1914
  test: (t) => t === "auto",
1922
1915
  parse: (t) => t
1923
- }, Or = [Ht, S, ot, vt, Ka, $a, Gl], Yi = (t) => Or.find(Fr(t)), Dt = /* @__PURE__ */ new Set();
1916
+ }, Fr = [Ht, S, ot, vt, Xa, Ya, Gl], zi = (t) => Fr.find(Lr(t)), Dt = /* @__PURE__ */ new Set();
1924
1917
  let bn = !1, xn = !1;
1925
- function jr() {
1918
+ function Or() {
1926
1919
  if (xn) {
1927
1920
  const t = Array.from(Dt).filter((i) => i.needsMeasurement), e = new Set(t.map((i) => i.element)), n = /* @__PURE__ */ new Map();
1928
1921
  e.forEach((i) => {
@@ -1941,20 +1934,20 @@ function jr() {
1941
1934
  }
1942
1935
  xn = !1, bn = !1, Dt.forEach((t) => t.complete()), Dt.clear();
1943
1936
  }
1944
- function _r() {
1937
+ function jr() {
1945
1938
  Dt.forEach((t) => {
1946
1939
  t.readKeyframes(), t.needsMeasurement && (xn = !0);
1947
1940
  });
1948
1941
  }
1949
1942
  function Hl() {
1950
- _r(), jr();
1943
+ jr(), Or();
1951
1944
  }
1952
- class ei {
1945
+ class ti {
1953
1946
  constructor(e, n, i, s, o, r = !1) {
1954
1947
  this.isComplete = !1, this.isAsync = !1, this.needsMeasurement = !1, this.isScheduled = !1, this.unresolvedKeyframes = [...e], this.onComplete = n, this.name = i, this.motionValue = s, this.element = o, this.isAsync = r;
1955
1948
  }
1956
1949
  scheduleResolve() {
1957
- this.isScheduled = !0, this.isAsync ? (Dt.add(this), bn || (bn = !0, M.read(_r), M.resolveKeyframes(jr))) : (this.readKeyframes(), this.complete());
1950
+ this.isScheduled = !0, this.isAsync ? (Dt.add(this), bn || (bn = !0, M.read(jr), M.resolveKeyframes(Or))) : (this.readKeyframes(), this.complete());
1958
1951
  }
1959
1952
  readKeyframes() {
1960
1953
  const { unresolvedKeyframes: e, name: n, element: i, motionValue: s } = this;
@@ -1990,10 +1983,10 @@ class ei {
1990
1983
  this.isComplete || this.scheduleResolve();
1991
1984
  }
1992
1985
  }
1993
- const ni = (t, e) => (n) => !!(me(n) && Ua.test(n) && n.startsWith(t) || e && !Wa(n) && Object.prototype.hasOwnProperty.call(n, e)), Br = (t, e, n) => (i) => {
1986
+ const ei = (t, e) => (n) => !!(me(n) && Ha.test(n) && n.startsWith(t) || e && !za(n) && Object.prototype.hasOwnProperty.call(n, e)), _r = (t, e, n) => (i) => {
1994
1987
  if (!me(i))
1995
1988
  return i;
1996
- const [s, o, r, a] = i.match(Kn);
1989
+ const [s, o, r, a] = i.match(Gn);
1997
1990
  return {
1998
1991
  [t]: parseFloat(s),
1999
1992
  [e]: parseFloat(o),
@@ -2004,8 +1997,8 @@ const ni = (t, e) => (n) => !!(me(n) && Ua.test(n) && n.startsWith(t) || e && !W
2004
1997
  ...Ht,
2005
1998
  transform: (t) => Math.round(zl(t))
2006
1999
  }, Vt = {
2007
- test: ni("rgb", "red"),
2008
- parse: Br("red", "green", "blue"),
2000
+ test: ei("rgb", "red"),
2001
+ parse: _r("red", "green", "blue"),
2009
2002
  transform: ({ red: t, green: e, blue: n, alpha: i = 1 }) => "rgba(" + on.transform(t) + ", " + on.transform(e) + ", " + on.transform(n) + ", " + ne(ee.transform(i)) + ")"
2010
2003
  };
2011
2004
  function Yl(t) {
@@ -2018,12 +2011,12 @@ function Yl(t) {
2018
2011
  };
2019
2012
  }
2020
2013
  const wn = {
2021
- test: ni("#"),
2014
+ test: ei("#"),
2022
2015
  parse: Yl,
2023
2016
  transform: Vt.transform
2024
2017
  }, It = {
2025
- test: ni("hsl", "hue"),
2026
- parse: Br("hue", "saturation", "lightness"),
2018
+ test: ei("hsl", "hue"),
2019
+ parse: _r("hue", "saturation", "lightness"),
2027
2020
  transform: ({ hue: t, saturation: e, lightness: n, alpha: i = 1 }) => "hsla(" + Math.round(t) + ", " + ot.transform(ne(e)) + ", " + ot.transform(ne(n)) + ", " + ne(ee.transform(i)) + ")"
2028
2021
  }, z = {
2029
2022
  test: (t) => Vt.test(t) || wn.test(t) || It.test(t),
@@ -2032,9 +2025,9 @@ const wn = {
2032
2025
  };
2033
2026
  function Xl(t) {
2034
2027
  var e, n;
2035
- return isNaN(t) && me(t) && (((e = t.match(Kn)) === null || e === void 0 ? void 0 : e.length) || 0) + (((n = t.match(Na)) === null || n === void 0 ? void 0 : n.length) || 0) > 0;
2028
+ return isNaN(t) && me(t) && (((e = t.match(Gn)) === null || e === void 0 ? void 0 : e.length) || 0) + (((n = t.match(Ga)) === null || n === void 0 ? void 0 : n.length) || 0) > 0;
2036
2029
  }
2037
- const Ir = "number", Nr = "color", ql = "var", Zl = "var(", Xi = "${}", Jl = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;
2030
+ const Br = "number", Ir = "color", ql = "var", Zl = "var(", Yi = "${}", Jl = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;
2038
2031
  function le(t) {
2039
2032
  const e = t.toString(), n = [], i = {
2040
2033
  color: [],
@@ -2042,40 +2035,40 @@ function le(t) {
2042
2035
  var: []
2043
2036
  }, s = [];
2044
2037
  let o = 0;
2045
- const a = e.replace(Jl, (l) => (z.test(l) ? (i.color.push(o), s.push(Nr), n.push(z.parse(l))) : l.startsWith(Zl) ? (i.var.push(o), s.push(ql), n.push(l)) : (i.number.push(o), s.push(Ir), n.push(parseFloat(l))), ++o, Xi)).split(Xi);
2038
+ const a = e.replace(Jl, (l) => (z.test(l) ? (i.color.push(o), s.push(Ir), n.push(z.parse(l))) : l.startsWith(Zl) ? (i.var.push(o), s.push(ql), n.push(l)) : (i.number.push(o), s.push(Br), n.push(parseFloat(l))), ++o, Yi)).split(Yi);
2046
2039
  return { values: n, split: a, indexes: i, types: s };
2047
2040
  }
2048
- function Ur(t) {
2041
+ function Nr(t) {
2049
2042
  return le(t).values;
2050
2043
  }
2051
- function Wr(t) {
2044
+ function Ur(t) {
2052
2045
  const { split: e, types: n } = le(t), i = e.length;
2053
2046
  return (s) => {
2054
2047
  let o = "";
2055
2048
  for (let r = 0; r < i; r++)
2056
2049
  if (o += e[r], s[r] !== void 0) {
2057
2050
  const a = n[r];
2058
- a === Ir ? o += ne(s[r]) : a === Nr ? o += z.transform(s[r]) : o += s[r];
2051
+ a === Br ? o += ne(s[r]) : a === Ir ? o += z.transform(s[r]) : o += s[r];
2059
2052
  }
2060
2053
  return o;
2061
2054
  };
2062
2055
  }
2063
2056
  const Ql = (t) => typeof t == "number" ? 0 : t;
2064
2057
  function tc(t) {
2065
- const e = Ur(t);
2066
- return Wr(t)(e.map(Ql));
2058
+ const e = Nr(t);
2059
+ return Ur(t)(e.map(Ql));
2067
2060
  }
2068
2061
  const xt = {
2069
2062
  test: Xl,
2070
- parse: Ur,
2071
- createTransformer: Wr,
2063
+ parse: Nr,
2064
+ createTransformer: Ur,
2072
2065
  getAnimatableNone: tc
2073
2066
  }, ec = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
2074
2067
  function nc(t) {
2075
2068
  const [e, n] = t.slice(0, -1).split("(");
2076
2069
  if (e === "drop-shadow")
2077
2070
  return t;
2078
- const [i] = n.match(Kn) || [];
2071
+ const [i] = n.match(Gn) || [];
2079
2072
  if (!i)
2080
2073
  return t;
2081
2074
  const s = n.replace(i, "");
@@ -2089,7 +2082,7 @@ const ic = /\b([a-z-]*)\(.*?\)/gu, Sn = {
2089
2082
  return e ? e.map(nc).join(" ") : t;
2090
2083
  }
2091
2084
  }, sc = {
2092
- ...Gn,
2085
+ ...dr,
2093
2086
  // Color props
2094
2087
  color: z,
2095
2088
  backgroundColor: z,
@@ -2104,9 +2097,9 @@ const ic = /\b([a-z-]*)\(.*?\)/gu, Sn = {
2104
2097
  borderLeftColor: z,
2105
2098
  filter: Sn,
2106
2099
  WebkitFilter: Sn
2107
- }, ii = (t) => sc[t];
2108
- function $r(t, e) {
2109
- let n = ii(t);
2100
+ }, ni = (t) => sc[t];
2101
+ function Wr(t, e) {
2102
+ let n = ni(t);
2110
2103
  return n !== Sn && (n = xt), n.getAnimatableNone ? n.getAnimatableNone(e) : void 0;
2111
2104
  }
2112
2105
  const rc = /* @__PURE__ */ new Set(["auto", "none", "0"]);
@@ -2118,9 +2111,9 @@ function oc(t, e, n) {
2118
2111
  }
2119
2112
  if (s && n)
2120
2113
  for (const o of e)
2121
- t[o] = $r(n, s);
2114
+ t[o] = Wr(n, s);
2122
2115
  }
2123
- class Kr extends ei {
2116
+ class $r extends ti {
2124
2117
  constructor(e, n, i, s) {
2125
2118
  super(e, n, i, s, s == null ? void 0 : s.owner, !0);
2126
2119
  }
@@ -2131,16 +2124,16 @@ class Kr extends ei {
2131
2124
  super.readKeyframes();
2132
2125
  for (let l = 0; l < e.length; l++) {
2133
2126
  let c = e[l];
2134
- if (typeof c == "string" && (c = c.trim(), Hn(c))) {
2135
- const u = Lr(c, n.current);
2127
+ if (typeof c == "string" && (c = c.trim(), Kn(c))) {
2128
+ const u = kr(c, n.current);
2136
2129
  u !== void 0 && (e[l] = u), l === e.length - 1 && (this.finalKeyframe = c);
2137
2130
  }
2138
2131
  }
2139
2132
  if (this.resolveNoneKeyframes(), !Ul.has(i) || e.length !== 2)
2140
2133
  return;
2141
- const [s, o] = e, r = Yi(s), a = Yi(o);
2134
+ const [s, o] = e, r = zi(s), a = zi(o);
2142
2135
  if (r !== a)
2143
- if (Gi(r) && Gi(a))
2136
+ if (Ki(r) && Ki(a))
2144
2137
  for (let l = 0; l < e.length; l++) {
2145
2138
  const c = e[l];
2146
2139
  typeof c == "string" && (e[l] = parseFloat(c));
@@ -2175,11 +2168,11 @@ class Kr extends ei {
2175
2168
  }), this.resolveNoneKeyframes();
2176
2169
  }
2177
2170
  }
2178
- function Gr(t) {
2171
+ function Kr(t) {
2179
2172
  let e;
2180
2173
  return () => (e === void 0 && (e = t()), e);
2181
2174
  }
2182
- const qi = (t, e) => e === "zIndex" ? !1 : !!(typeof t == "number" || Array.isArray(t) || typeof t == "string" && // It's animatable if we have a string
2175
+ const Xi = (t, e) => e === "zIndex" ? !1 : !!(typeof t == "number" || Array.isArray(t) || typeof t == "string" && // It's animatable if we have a string
2183
2176
  (xt.test(t) || t === "0") && // And it contains numbers and/or colors
2184
2177
  !t.startsWith("url("));
2185
2178
  function ac(t) {
@@ -2196,10 +2189,10 @@ function lc(t, e, n, i) {
2196
2189
  return !1;
2197
2190
  if (e === "display" || e === "visibility")
2198
2191
  return !0;
2199
- const o = t[t.length - 1], r = qi(s, e), a = qi(o, e);
2192
+ const o = t[t.length - 1], r = Xi(s, e), a = Xi(o, e);
2200
2193
  return Gt(r === a, `You are trying to animate ${e} from "${s}" to "${o}". ${s} is not an animatable value - to enable this animation set ${s} to a value animatable to ${o} via the \`style\` property.`), !r || !a ? !1 : ac(t) || n === "spring" && i;
2201
2194
  }
2202
- class Hr {
2195
+ class Gr {
2203
2196
  constructor({ autoplay: e = !0, delay: n = 0, type: i = "keyframes", repeat: s = 0, repeatDelay: o = 0, repeatType: r = "loop", ...a }) {
2204
2197
  this.isStopped = !1, this.hasAttemptedResolve = !1, this.options = {
2205
2198
  autoplay: e,
@@ -2257,20 +2250,20 @@ class Hr {
2257
2250
  });
2258
2251
  }
2259
2252
  }
2260
- function zr(t, e) {
2253
+ function Hr(t, e) {
2261
2254
  return e ? t * (1e3 / e) : 0;
2262
2255
  }
2263
2256
  const cc = 5;
2264
- function Yr(t, e, n) {
2257
+ function zr(t, e, n) {
2265
2258
  const i = Math.max(e - cc, 0);
2266
- return zr(n - t(i), e - i);
2259
+ return Hr(n - t(i), e - i);
2267
2260
  }
2268
- const an = 1e-3, uc = 0.01, Zi = 10, fc = 0.05, hc = 1;
2261
+ const an = 1e-3, uc = 0.01, qi = 10, fc = 0.05, hc = 1;
2269
2262
  function dc({ duration: t = 800, bounce: e = 0.25, velocity: n = 0, mass: i = 1 }) {
2270
2263
  let s, o;
2271
- Gt(t <= ht(Zi), "Spring duration must be 10 seconds or less");
2264
+ Gt(t <= ht(qi), "Spring duration must be 10 seconds or less");
2272
2265
  let r = 1 - e;
2273
- r = bt(fc, hc, r), t = bt(uc, Zi, dt(t)), r < 1 ? (s = (c) => {
2266
+ r = bt(fc, hc, r), t = bt(uc, qi, dt(t)), r < 1 ? (s = (c) => {
2274
2267
  const u = c * r, f = u * t, d = u - n, p = An(c, r), m = Math.exp(-f);
2275
2268
  return an - d / p * m;
2276
2269
  }, o = (c) => {
@@ -2310,7 +2303,7 @@ function An(t, e) {
2310
2303
  return t * Math.sqrt(1 - e * e);
2311
2304
  }
2312
2305
  const gc = ["duration", "bounce"], yc = ["stiffness", "damping", "mass"];
2313
- function Ji(t, e) {
2306
+ function Zi(t, e) {
2314
2307
  return e.some((n) => t[n] !== void 0);
2315
2308
  }
2316
2309
  function vc(t) {
@@ -2322,7 +2315,7 @@ function vc(t) {
2322
2315
  isResolvedFromDuration: !1,
2323
2316
  ...t
2324
2317
  };
2325
- if (!Ji(t, yc) && Ji(t, gc)) {
2318
+ if (!Zi(t, yc) && Zi(t, gc)) {
2326
2319
  const n = dc(t);
2327
2320
  e = {
2328
2321
  ...e,
@@ -2332,7 +2325,7 @@ function vc(t) {
2332
2325
  }
2333
2326
  return e;
2334
2327
  }
2335
- function Xr({ keyframes: t, restDelta: e, restSpeed: n, ...i }) {
2328
+ function Yr({ keyframes: t, restDelta: e, restSpeed: n, ...i }) {
2336
2329
  const s = t[0], o = t[t.length - 1], r = { done: !1, value: s }, { stiffness: a, damping: l, mass: c, duration: u, velocity: f, isResolvedFromDuration: d } = vc({
2337
2330
  ...i,
2338
2331
  velocity: -dt(i.velocity || 0)
@@ -2362,7 +2355,7 @@ function Xr({ keyframes: t, restDelta: e, restSpeed: n, ...i }) {
2362
2355
  r.done = T >= u;
2363
2356
  else {
2364
2357
  let C = p;
2365
- T !== 0 && (m < 1 ? C = Yr(y, T, w) : C = 0);
2358
+ T !== 0 && (m < 1 ? C = zr(y, T, w) : C = 0);
2366
2359
  const k = Math.abs(C) <= n, $ = Math.abs(o - w) <= e;
2367
2360
  r.done = k && $;
2368
2361
  }
@@ -2370,7 +2363,7 @@ function Xr({ keyframes: t, restDelta: e, restSpeed: n, ...i }) {
2370
2363
  }
2371
2364
  };
2372
2365
  }
2373
- function Qi({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: i = 325, bounceDamping: s = 10, bounceStiffness: o = 500, modifyTarget: r, min: a, max: l, restDelta: c = 0.5, restSpeed: u }) {
2366
+ function Ji({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: i = 325, bounceDamping: s = 10, bounceStiffness: o = 500, modifyTarget: r, min: a, max: l, restDelta: c = 0.5, restSpeed: u }) {
2374
2367
  const f = t[0], d = {
2375
2368
  done: !1,
2376
2369
  value: f
@@ -2384,9 +2377,9 @@ function Qi({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: i = 3
2384
2377
  };
2385
2378
  let C, k;
2386
2379
  const $ = (R) => {
2387
- p(d.value) && (C = R, k = Xr({
2380
+ p(d.value) && (C = R, k = Yr({
2388
2381
  keyframes: [d.value, m(d.value)],
2389
- velocity: Yr(T, R, d.value),
2382
+ velocity: zr(T, R, d.value),
2390
2383
  // TODO: This should be passing * 1000
2391
2384
  damping: s,
2392
2385
  stiffness: o,
@@ -2402,11 +2395,11 @@ function Qi({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: i = 3
2402
2395
  }
2403
2396
  };
2404
2397
  }
2405
- const qr = (t, e, n) => (((1 - 3 * n + 3 * e) * t + (3 * n - 6 * e)) * t + 3 * e) * t, Pc = 1e-7, Tc = 12;
2398
+ const Xr = (t, e, n) => (((1 - 3 * n + 3 * e) * t + (3 * n - 6 * e)) * t + 3 * e) * t, Pc = 1e-7, Tc = 12;
2406
2399
  function bc(t, e, n, i, s) {
2407
2400
  let o, r, a = 0;
2408
2401
  do
2409
- r = e + (n - e) / 2, o = qr(r, i, s) - t, o > 0 ? n = r : e = r;
2402
+ r = e + (n - e) / 2, o = Xr(r, i, s) - t, o > 0 ? n = r : e = r;
2410
2403
  while (Math.abs(o) > Pc && ++a < Tc);
2411
2404
  return r;
2412
2405
  }
@@ -2414,27 +2407,27 @@ function ye(t, e, n, i) {
2414
2407
  if (t === e && n === i)
2415
2408
  return H;
2416
2409
  const s = (o) => bc(o, 0, 1, t, n);
2417
- return (o) => o === 0 || o === 1 ? o : qr(s(o), e, i);
2410
+ return (o) => o === 0 || o === 1 ? o : Xr(s(o), e, i);
2418
2411
  }
2419
- const xc = ye(0.42, 0, 1, 1), wc = ye(0, 0, 0.58, 1), Zr = ye(0.42, 0, 0.58, 1), Sc = (t) => Array.isArray(t) && typeof t[0] != "number", Jr = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, Qr = (t) => (e) => 1 - t(1 - e), si = (t) => 1 - Math.sin(Math.acos(t)), to = Qr(si), Ac = Jr(si), eo = ye(0.33, 1.53, 0.69, 0.99), ri = Qr(eo), Cc = Jr(ri), Rc = (t) => (t *= 2) < 1 ? 0.5 * ri(t) : 0.5 * (2 - Math.pow(2, -10 * (t - 1))), ts = {
2412
+ const xc = ye(0.42, 0, 1, 1), wc = ye(0, 0, 0.58, 1), qr = ye(0.42, 0, 0.58, 1), Sc = (t) => Array.isArray(t) && typeof t[0] != "number", Zr = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, Jr = (t) => (e) => 1 - t(1 - e), ii = (t) => 1 - Math.sin(Math.acos(t)), Qr = Jr(ii), Ac = Zr(ii), to = ye(0.33, 1.53, 0.69, 0.99), si = Jr(to), Cc = Zr(si), Rc = (t) => (t *= 2) < 1 ? 0.5 * si(t) : 0.5 * (2 - Math.pow(2, -10 * (t - 1))), Qi = {
2420
2413
  linear: H,
2421
2414
  easeIn: xc,
2422
- easeInOut: Zr,
2415
+ easeInOut: qr,
2423
2416
  easeOut: wc,
2424
- circIn: si,
2417
+ circIn: ii,
2425
2418
  circInOut: Ac,
2426
- circOut: to,
2427
- backIn: ri,
2419
+ circOut: Qr,
2420
+ backIn: si,
2428
2421
  backInOut: Cc,
2429
- backOut: eo,
2422
+ backOut: to,
2430
2423
  anticipate: Rc
2431
- }, es = (t) => {
2424
+ }, ts = (t) => {
2432
2425
  if (Array.isArray(t)) {
2433
2426
  pt(t.length === 4, "Cubic bezier arrays must contain four numerical values.");
2434
2427
  const [e, n, i, s] = t;
2435
2428
  return ye(e, n, i, s);
2436
2429
  } else if (typeof t == "string")
2437
- return pt(ts[t] !== void 0, `Invalid easing type '${t}'`), ts[t];
2430
+ return pt(Qi[t] !== void 0, `Invalid easing type '${t}'`), Qi[t];
2438
2431
  return t;
2439
2432
  }, ce = (t, e, n) => {
2440
2433
  const i = e - t;
@@ -2466,15 +2459,15 @@ const cn = (t, e, n) => {
2466
2459
  const i = t * t, s = n * (e * e - i) + i;
2467
2460
  return s < 0 ? 0 : Math.sqrt(s);
2468
2461
  }, Vc = [wn, Vt, It], Dc = (t) => Vc.find((e) => e.test(t));
2469
- function ns(t) {
2462
+ function es(t) {
2470
2463
  const e = Dc(t);
2471
2464
  if (Gt(!!e, `'${t}' is not an animatable color. Use the equivalent color code instead.`), !e)
2472
2465
  return !1;
2473
2466
  let n = e.parse(t);
2474
2467
  return e === It && (n = Ec(n)), n;
2475
2468
  }
2476
- const is = (t, e) => {
2477
- const n = ns(t), i = ns(e);
2469
+ const ns = (t, e) => {
2470
+ const n = es(t), i = es(e);
2478
2471
  if (!n || !i)
2479
2472
  return Fe(t, e);
2480
2473
  const s = { ...n };
@@ -2486,11 +2479,11 @@ function Mc(t, e) {
2486
2479
  function kc(t, e) {
2487
2480
  return (n) => j(t, e, n);
2488
2481
  }
2489
- function oi(t) {
2490
- return typeof t == "number" ? kc : typeof t == "string" ? Hn(t) ? Fe : z.test(t) ? is : Oc : Array.isArray(t) ? no : typeof t == "object" ? z.test(t) ? is : Lc : Fe;
2482
+ function ri(t) {
2483
+ return typeof t == "number" ? kc : typeof t == "string" ? Kn(t) ? Fe : z.test(t) ? ns : Oc : Array.isArray(t) ? eo : typeof t == "object" ? z.test(t) ? ns : Lc : Fe;
2491
2484
  }
2492
- function no(t, e) {
2493
- const n = [...t], i = n.length, s = t.map((o, r) => oi(o)(o, e[r]));
2485
+ function eo(t, e) {
2486
+ const n = [...t], i = n.length, s = t.map((o, r) => ri(o)(o, e[r]));
2494
2487
  return (o) => {
2495
2488
  for (let r = 0; r < i; r++)
2496
2489
  n[r] = s[r](o);
@@ -2500,7 +2493,7 @@ function no(t, e) {
2500
2493
  function Lc(t, e) {
2501
2494
  const n = { ...t, ...e }, i = {};
2502
2495
  for (const s in n)
2503
- t[s] !== void 0 && e[s] !== void 0 && (i[s] = oi(t[s])(t[s], e[s]));
2496
+ t[s] !== void 0 && e[s] !== void 0 && (i[s] = ri(t[s])(t[s], e[s]));
2504
2497
  return (s) => {
2505
2498
  for (const o in i)
2506
2499
  n[o] = i[o](s);
@@ -2518,13 +2511,13 @@ function Fc(t, e) {
2518
2511
  }
2519
2512
  const Oc = (t, e) => {
2520
2513
  const n = xt.createTransformer(e), i = le(t), s = le(e);
2521
- return i.indexes.var.length === s.indexes.var.length && i.indexes.color.length === s.indexes.color.length && i.indexes.number.length >= s.indexes.number.length ? Cn.has(t) && !s.values.length || Cn.has(e) && !i.values.length ? Mc(t, e) : ft(no(Fc(i, s), s.values), n) : (Gt(!0, `Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`), Fe(t, e));
2514
+ return i.indexes.var.length === s.indexes.var.length && i.indexes.color.length === s.indexes.color.length && i.indexes.number.length >= s.indexes.number.length ? Cn.has(t) && !s.values.length || Cn.has(e) && !i.values.length ? Mc(t, e) : ft(eo(Fc(i, s), s.values), n) : (Gt(!0, `Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`), Fe(t, e));
2522
2515
  };
2523
- function io(t, e, n) {
2524
- return typeof t == "number" && typeof e == "number" && typeof n == "number" ? j(t, e, n) : oi(t)(t, e);
2516
+ function no(t, e, n) {
2517
+ return typeof t == "number" && typeof e == "number" && typeof n == "number" ? j(t, e, n) : ri(t)(t, e);
2525
2518
  }
2526
2519
  function jc(t, e, n) {
2527
- const i = [], s = n || io, o = t.length - 1;
2520
+ const i = [], s = n || no, o = t.length - 1;
2528
2521
  for (let r = 0; r < o; r++) {
2529
2522
  let a = s(t[r], t[r + 1]);
2530
2523
  if (e) {
@@ -2567,10 +2560,10 @@ function Nc(t, e) {
2567
2560
  return t.map((n) => n * e);
2568
2561
  }
2569
2562
  function Uc(t, e) {
2570
- return t.map(() => e || Zr).splice(0, t.length - 1);
2563
+ return t.map(() => e || qr).splice(0, t.length - 1);
2571
2564
  }
2572
2565
  function Oe({ duration: t = 300, keyframes: e, times: n, ease: i = "easeInOut" }) {
2573
- const s = Sc(i) ? i.map(es) : es(i), o = {
2566
+ const s = Sc(i) ? i.map(ts) : ts(i), o = {
2574
2567
  done: !1,
2575
2568
  value: e[0]
2576
2569
  }, r = Nc(
@@ -2586,14 +2579,14 @@ function Oe({ duration: t = 300, keyframes: e, times: n, ease: i = "easeInOut" }
2586
2579
  next: (l) => (o.value = a(l), o.done = l >= t, o)
2587
2580
  };
2588
2581
  }
2589
- const ss = 2e4;
2582
+ const is = 2e4;
2590
2583
  function Wc(t) {
2591
2584
  let e = 0;
2592
2585
  const n = 50;
2593
2586
  let i = t.next(e);
2594
- for (; !i.done && e < ss; )
2587
+ for (; !i.done && e < is; )
2595
2588
  e += n, i = t.next(e);
2596
- return e >= ss ? 1 / 0 : e;
2589
+ return e >= is ? 1 / 0 : e;
2597
2590
  }
2598
2591
  const $c = (t) => {
2599
2592
  const e = ({ timestamp: n }) => t(n);
@@ -2607,14 +2600,14 @@ const $c = (t) => {
2607
2600
  now: () => K.isProcessing ? K.timestamp : Tt.now()
2608
2601
  };
2609
2602
  }, Kc = {
2610
- decay: Qi,
2611
- inertia: Qi,
2603
+ decay: Ji,
2604
+ inertia: Ji,
2612
2605
  tween: Oe,
2613
2606
  keyframes: Oe,
2614
- spring: Xr
2607
+ spring: Yr
2615
2608
  }, Gc = (t) => t / 100;
2616
- class ai extends Hr {
2617
- constructor({ KeyframeResolver: e = ei, ...n }) {
2609
+ class oi extends Gr {
2610
+ constructor({ KeyframeResolver: e = ti, ...n }) {
2618
2611
  super(n), this.holdTime = null, this.startTime = null, this.cancelTime = null, this.currentTime = 0, this.playbackSpeed = 1, this.pendingPlayState = "running", this.state = "idle", this.stop = () => {
2619
2612
  if (this.resolver.cancel(), this.isStopped = !0, this.state === "idle")
2620
2613
  return;
@@ -2628,7 +2621,7 @@ class ai extends Hr {
2628
2621
  initPlayback(e) {
2629
2622
  const { type: n = "keyframes", repeat: i = 0, repeatDelay: s = 0, repeatType: o, velocity: r = 0 } = this.options, a = Kc[n] || Oe;
2630
2623
  let l, c;
2631
- a !== Oe && typeof e[0] != "number" && (process.env.NODE_ENV !== "production" && pt(e.length === 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${e}`), l = ft(Gc, io(e[0], e[1])), e = [0, 100]);
2624
+ a !== Oe && typeof e[0] != "number" && (process.env.NODE_ENV !== "production" && pt(e.length === 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${e}`), l = ft(Gc, no(e[0], e[1])), e = [0, 100]);
2632
2625
  const u = a({ ...this.options, keyframes: e });
2633
2626
  o === "mirror" && (c = a({
2634
2627
  ...this.options,
@@ -2733,11 +2726,11 @@ class ai extends Hr {
2733
2726
  return this.startTime = 0, this.tick(e, !0);
2734
2727
  }
2735
2728
  }
2736
- const so = (t) => Array.isArray(t) && typeof t[0] == "number";
2737
- function ro(t) {
2738
- return !!(!t || typeof t == "string" && t in li || so(t) || Array.isArray(t) && t.every(ro));
2729
+ const io = (t) => Array.isArray(t) && typeof t[0] == "number";
2730
+ function so(t) {
2731
+ return !!(!t || typeof t == "string" && t in ai || io(t) || Array.isArray(t) && t.every(so));
2739
2732
  }
2740
- const Qt = ([t, e, n, i]) => `cubic-bezier(${t}, ${e}, ${n}, ${i})`, li = {
2733
+ const Qt = ([t, e, n, i]) => `cubic-bezier(${t}, ${e}, ${n}, ${i})`, ai = {
2741
2734
  linear: "linear",
2742
2735
  ease: "ease",
2743
2736
  easeIn: "ease-in",
@@ -2749,16 +2742,16 @@ const Qt = ([t, e, n, i]) => `cubic-bezier(${t}, ${e}, ${n}, ${i})`, li = {
2749
2742
  backOut: Qt([0.33, 1.53, 0.69, 0.99])
2750
2743
  };
2751
2744
  function Hc(t) {
2752
- return oo(t) || li.easeOut;
2745
+ return ro(t) || ai.easeOut;
2753
2746
  }
2754
- function oo(t) {
2747
+ function ro(t) {
2755
2748
  if (t)
2756
- return so(t) ? Qt(t) : Array.isArray(t) ? t.map(Hc) : li[t];
2749
+ return io(t) ? Qt(t) : Array.isArray(t) ? t.map(Hc) : ai[t];
2757
2750
  }
2758
2751
  function zc(t, e, n, { delay: i = 0, duration: s = 300, repeat: o = 0, repeatType: r = "loop", ease: a, times: l } = {}) {
2759
2752
  const c = { [e]: n };
2760
2753
  l && (c.offset = l);
2761
- const u = oo(a);
2754
+ const u = ro(a);
2762
2755
  return Array.isArray(u) && (c.easing = u), t.animate(c, {
2763
2756
  delay: i,
2764
2757
  duration: s,
@@ -2768,12 +2761,12 @@ function zc(t, e, n, { delay: i = 0, duration: s = 300, repeat: o = 0, repeatTyp
2768
2761
  direction: r === "reverse" ? "alternate" : "normal"
2769
2762
  });
2770
2763
  }
2771
- const Yc = Gr(() => Object.hasOwnProperty.call(Element.prototype, "animate")), je = 10, Xc = 2e4;
2764
+ const Yc = Kr(() => Object.hasOwnProperty.call(Element.prototype, "animate")), je = 10, Xc = 2e4;
2772
2765
  function qc(t) {
2773
- return t.type === "spring" || !ro(t.ease);
2766
+ return t.type === "spring" || !so(t.ease);
2774
2767
  }
2775
2768
  function Zc(t, e) {
2776
- const n = new ai({
2769
+ const n = new oi({
2777
2770
  ...e,
2778
2771
  keyframes: t,
2779
2772
  repeat: 0,
@@ -2792,11 +2785,11 @@ function Zc(t, e) {
2792
2785
  ease: "linear"
2793
2786
  };
2794
2787
  }
2795
- class rs extends Hr {
2788
+ class ss extends Gr {
2796
2789
  constructor(e) {
2797
2790
  super(e);
2798
2791
  const { name: n, motionValue: i, keyframes: s } = this.options;
2799
- this.resolver = new Kr(s, (o, r) => this.onKeyframesResolved(o, r), n, i), this.resolver.scheduleResolve();
2792
+ this.resolver = new $r(s, (o, r) => this.onKeyframesResolved(o, r), n, i), this.resolver.scheduleResolve();
2800
2793
  }
2801
2794
  initPlayback(e, n) {
2802
2795
  var i;
@@ -2905,7 +2898,7 @@ class rs extends Hr {
2905
2898
  if (n.playState === "idle" || n.playState === "finished")
2906
2899
  return;
2907
2900
  if (this.time) {
2908
- const { motionValue: c, onUpdate: u, onComplete: f, ...d } = this.options, p = new ai({
2901
+ const { motionValue: c, onUpdate: u, onComplete: f, ...d } = this.options, p = new oi({
2909
2902
  ...d,
2910
2903
  keyframes: i,
2911
2904
  duration: s,
@@ -2929,7 +2922,7 @@ class rs extends Hr {
2929
2922
  }
2930
2923
  static supports(e) {
2931
2924
  const { motionValue: n, name: i, repeatDelay: s, repeatType: o, damping: r, type: a } = e;
2932
- return Yc() && i && xr.has(i) && n && n.owner && n.owner.current instanceof HTMLElement && /**
2925
+ return Yc() && i && br.has(i) && n && n.owner && n.owner.current instanceof HTMLElement && /**
2933
2926
  * If we're outputting values to onUpdate then we can't use WAAPI as there's
2934
2927
  * no way to read the value from WAAPI every frame.
2935
2928
  */
@@ -2944,7 +2937,7 @@ function Jc(t, e) {
2944
2937
  };
2945
2938
  return M.update(i, !0), () => mt(i);
2946
2939
  }
2947
- const Qc = Gr(() => window.ScrollTimeline !== void 0);
2940
+ const Qc = Kr(() => window.ScrollTimeline !== void 0);
2948
2941
  class tu {
2949
2942
  constructor(e) {
2950
2943
  this.stop = () => this.runAll("stop"), this.animations = e.filter(Boolean);
@@ -3011,8 +3004,8 @@ class tu {
3011
3004
  this.runAll("complete");
3012
3005
  }
3013
3006
  }
3014
- const ci = (t, e, n, i = {}, s, o, r) => (a) => {
3015
- const l = ti(i, t) || {}, c = l.delay || i.delay || 0;
3007
+ const li = (t, e, n, i = {}, s, o, r) => (a) => {
3008
+ const l = Qn(i, t) || {}, c = l.delay || i.delay || 0;
3016
3009
  let { elapsed: u = 0 } = i;
3017
3010
  u = u - ht(c);
3018
3011
  let f = {
@@ -3044,9 +3037,9 @@ const ci = (t, e, n, i = {}, s, o, r) => (a) => {
3044
3037
  f.onUpdate(p), f.onComplete();
3045
3038
  }), new tu([]);
3046
3039
  }
3047
- return !o && rs.supports(f) ? new rs(f) : new ai(f);
3040
+ return !o && ss.supports(f) ? new ss(f) : new oi(f);
3048
3041
  };
3049
- class ui {
3042
+ class ci {
3050
3043
  constructor() {
3051
3044
  this.subscriptions = [];
3052
3045
  }
@@ -3071,12 +3064,12 @@ class ui {
3071
3064
  this.subscriptions.length = 0;
3072
3065
  }
3073
3066
  }
3074
- const os = /* @__PURE__ */ new Set();
3075
- function fi(t, e, n) {
3076
- t || os.has(e) || (console.warn(e), n && console.warn(n), os.add(e));
3067
+ const rs = /* @__PURE__ */ new Set();
3068
+ function ui(t, e, n) {
3069
+ t || rs.has(e) || (console.warn(e), n && console.warn(n), rs.add(e));
3077
3070
  }
3078
- const as = 30, eu = (t) => !isNaN(parseFloat(t));
3079
- class ao {
3071
+ const os = 30, eu = (t) => !isNaN(parseFloat(t));
3072
+ class oo {
3080
3073
  /**
3081
3074
  * @param init - The initiating value
3082
3075
  * @param config - Optional configuration options
@@ -3086,7 +3079,7 @@ class ao {
3086
3079
  * @internal
3087
3080
  */
3088
3081
  constructor(e, n = {}) {
3089
- this.version = "11.3.21", this.canTrackVelocity = null, this.events = {}, this.updateAndNotify = (i, s = !0) => {
3082
+ this.version = "11.3.19", this.canTrackVelocity = null, this.events = {}, this.updateAndNotify = (i, s = !0) => {
3090
3083
  const o = Tt.now();
3091
3084
  this.updatedAt !== o && this.setPrevFrameValue(), this.prev = this.current, this.setCurrent(i), this.current !== this.prev && this.events.change && this.events.change.notify(this.current), s && this.events.renderRequest && this.events.renderRequest.notify(this.current);
3092
3085
  }, this.hasAnimated = !1, this.setCurrent(e), this.owner = n.owner;
@@ -3138,10 +3131,10 @@ class ao {
3138
3131
  * @deprecated
3139
3132
  */
3140
3133
  onChange(e) {
3141
- return process.env.NODE_ENV !== "production" && fi(!1, 'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'), this.on("change", e);
3134
+ return process.env.NODE_ENV !== "production" && ui(!1, 'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'), this.on("change", e);
3142
3135
  }
3143
3136
  on(e, n) {
3144
- this.events[e] || (this.events[e] = new ui());
3137
+ this.events[e] || (this.events[e] = new ci());
3145
3138
  const i = this.events[e].add(n);
3146
3139
  return e === "change" ? () => {
3147
3140
  i(), M.read(() => {
@@ -3214,10 +3207,10 @@ class ao {
3214
3207
  */
3215
3208
  getVelocity() {
3216
3209
  const e = Tt.now();
3217
- if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > as)
3210
+ if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > os)
3218
3211
  return 0;
3219
- const n = Math.min(this.updatedAt - this.prevUpdatedAt, as);
3220
- return zr(parseFloat(this.current) - parseFloat(this.prevFrameValue), n);
3212
+ const n = Math.min(this.updatedAt - this.prevUpdatedAt, os);
3213
+ return Hr(parseFloat(this.current) - parseFloat(this.prevFrameValue), n);
3221
3214
  }
3222
3215
  /**
3223
3216
  * Registers a new animation to control this `MotionValue`. Only one
@@ -3271,7 +3264,7 @@ class ao {
3271
3264
  }
3272
3265
  }
3273
3266
  function ue(t, e) {
3274
- return new ao(t, e);
3267
+ return new oo(t, e);
3275
3268
  }
3276
3269
  function nu(t, e, n) {
3277
3270
  t.hasValue(e) ? t.getValue(e).set(n) : t.addValue(e, ue(n));
@@ -3285,15 +3278,15 @@ function iu(t, e) {
3285
3278
  nu(t, r, a);
3286
3279
  }
3287
3280
  }
3288
- function lo(t) {
3289
- return t.getProps()[or];
3281
+ function ao(t) {
3282
+ return t.getProps()[rr];
3290
3283
  }
3291
- class su extends ao {
3284
+ class su extends oo {
3292
3285
  constructor() {
3293
3286
  super(...arguments), this.output = [], this.counts = /* @__PURE__ */ new Map();
3294
3287
  }
3295
3288
  add(e) {
3296
- const n = wr(e);
3289
+ const n = xr(e);
3297
3290
  if (!n)
3298
3291
  return;
3299
3292
  const i = this.counts.get(n) || 0;
@@ -3326,7 +3319,7 @@ function ou({ protectedKeys: t, needsAnimating: e }, n) {
3326
3319
  const i = t.hasOwnProperty(n) && e[n] !== !0;
3327
3320
  return e[n] = !1, i;
3328
3321
  }
3329
- function co(t, e, { delay: n = 0, transitionOverride: i, type: s } = {}) {
3322
+ function lo(t, e, { delay: n = 0, transitionOverride: i, type: s } = {}) {
3330
3323
  var o;
3331
3324
  let { transition: r = t.getDefaultTransition(), transitionEnd: a, ...l } = e;
3332
3325
  i && (r = i);
@@ -3338,17 +3331,17 @@ function co(t, e, { delay: n = 0, transitionOverride: i, type: s } = {}) {
3338
3331
  const m = {
3339
3332
  delay: n,
3340
3333
  elapsed: 0,
3341
- ...ti(r || {}, f)
3334
+ ...Qn(r || {}, f)
3342
3335
  };
3343
3336
  let v = !1;
3344
3337
  if (window.HandoffAppearAnimations) {
3345
- const P = lo(t);
3338
+ const P = ao(t);
3346
3339
  if (P) {
3347
3340
  const y = window.HandoffAppearAnimations(P, f, d, M);
3348
3341
  y !== null && (m.elapsed = y, v = !0);
3349
3342
  }
3350
3343
  }
3351
- d.start(ci(f, d, p, t.shouldReduceMotion && wt.has(f) ? { type: !1 } : m, t, v, Rn(t, f)));
3344
+ d.start(li(f, d, p, t.shouldReduceMotion && wt.has(f) ? { type: !1 } : m, t, v, Rn(t, f)));
3352
3345
  const x = d.animation;
3353
3346
  x && c.push(x);
3354
3347
  }
@@ -3363,7 +3356,7 @@ function En(t, e, n = {}) {
3363
3356
  const s = Ge(t, e, n.type === "exit" ? (i = t.presenceContext) === null || i === void 0 ? void 0 : i.custom : void 0);
3364
3357
  let { transition: o = t.getDefaultTransition() || {} } = s || {};
3365
3358
  n.transitionOverride && (o = n.transitionOverride);
3366
- const r = s ? () => Promise.all(co(t, s, n)) : () => Promise.resolve(), a = t.variantChildren && t.variantChildren.size ? (c = 0) => {
3359
+ const r = s ? () => Promise.all(lo(t, s, n)) : () => Promise.resolve(), a = t.variantChildren && t.variantChildren.size ? (c = 0) => {
3367
3360
  const { delayChildren: u = 0, staggerChildren: f, staggerDirection: d } = o;
3368
3361
  return au(t, e, u + c, f, d, n);
3369
3362
  } : () => Promise.resolve(), { when: l } = o;
@@ -3395,7 +3388,7 @@ function cu(t, e, n = {}) {
3395
3388
  i = En(t, e, n);
3396
3389
  else {
3397
3390
  const s = typeof e == "function" ? Ge(t, e, n.custom) : e;
3398
- i = Promise.all(co(t, s, n));
3391
+ i = Promise.all(lo(t, s, n));
3399
3392
  }
3400
3393
  return i.then(() => {
3401
3394
  t.notify("AnimationComplete", e);
@@ -3406,7 +3399,7 @@ function hu(t) {
3406
3399
  return (e) => Promise.all(e.map(({ animation: n, options: i }) => cu(t, n, i)));
3407
3400
  }
3408
3401
  function du(t) {
3409
- let e = hu(t), n = ls(), i = !0;
3402
+ let e = hu(t), n = as(), i = !0;
3410
3403
  const s = (l) => (c, u) => {
3411
3404
  var f;
3412
3405
  const d = Ge(t, u, l === "exit" ? (f = t.presenceContext) === null || f === void 0 ? void 0 : f.custom : void 0);
@@ -3450,7 +3443,7 @@ function du(t) {
3450
3443
  if (p.hasOwnProperty(B))
3451
3444
  continue;
3452
3445
  let Ft = !1;
3453
- Pn(Q) && Pn(Lt) ? Ft = !Dr(Q, Lt) : Ft = Q !== Lt, Ft ? Q != null ? rt(B) : d.add(B) : Q !== void 0 && d.has(B) ? rt(B) : y.protectedKeys[B] = !0;
3446
+ Pn(Q) && Pn(Lt) ? Ft = !Vr(Q, Lt) : Ft = Q !== Lt, Ft ? Q != null ? rt(B) : d.add(B) : Q !== void 0 && d.has(B) ? rt(B) : y.protectedKeys[B] = !0;
3454
3447
  }
3455
3448
  y.prevProp = T, y.prevResolvedValues = F, y.isActive && (p = { ...p, ...F }), i && t.blockInitialAnimation && (R = !1), R && (!k || _) && f.push(...U.map((B) => ({
3456
3449
  animation: B,
@@ -3486,12 +3479,12 @@ function du(t) {
3486
3479
  setAnimateFunction: o,
3487
3480
  getState: () => n,
3488
3481
  reset: () => {
3489
- n = ls(), i = !0;
3482
+ n = as(), i = !0;
3490
3483
  }
3491
3484
  };
3492
3485
  }
3493
3486
  function pu(t, e) {
3494
- return typeof e == "string" ? e !== t : Array.isArray(e) ? !Dr(e, t) : !1;
3487
+ return typeof e == "string" ? e !== t : Array.isArray(e) ? !Vr(e, t) : !1;
3495
3488
  }
3496
3489
  function Ct(t = !1) {
3497
3490
  return {
@@ -3501,7 +3494,7 @@ function Ct(t = !1) {
3501
3494
  prevResolvedValues: {}
3502
3495
  };
3503
3496
  }
3504
- function ls() {
3497
+ function as() {
3505
3498
  return {
3506
3499
  animate: Ct(!0),
3507
3500
  whileInView: Ct(),
@@ -3568,12 +3561,12 @@ const vu = {
3568
3561
  exit: {
3569
3562
  Feature: yu
3570
3563
  }
3571
- }, cs = (t, e) => Math.abs(t - e);
3564
+ }, ls = (t, e) => Math.abs(t - e);
3572
3565
  function Pu(t, e) {
3573
- const n = cs(t.x, e.x), i = cs(t.y, e.y);
3566
+ const n = ls(t.x, e.x), i = ls(t.y, e.y);
3574
3567
  return Math.sqrt(n ** 2 + i ** 2);
3575
3568
  }
3576
- class uo {
3569
+ class co {
3577
3570
  constructor(e, n, { transformPagePoint: i, contextWindow: s, dragSnapToOrigin: o = !1 } = {}) {
3578
3571
  if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.handlers = {}, this.contextWindow = window, this.updatePoint = () => {
3579
3572
  if (!(this.lastMoveEvent && this.lastMoveEventInfo))
@@ -3594,7 +3587,7 @@ class uo {
3594
3587
  return;
3595
3588
  const x = fn(f.type === "pointercancel" ? this.lastMoveEventInfo : un(d, this.transformPagePoint), this.history);
3596
3589
  this.startEvent && p && p(f, x), m && m(f, x);
3597
- }, !Ar(e))
3590
+ }, !Sr(e))
3598
3591
  return;
3599
3592
  this.dragSnapToOrigin = o, this.handlers = n, this.transformPagePoint = i, this.contextWindow = s || window;
3600
3593
  const r = Ke(e), a = un(r, this.transformPagePoint), { point: l } = a, { timestamp: c } = K;
@@ -3612,28 +3605,28 @@ class uo {
3612
3605
  function un(t, e) {
3613
3606
  return e ? { point: e(t.point) } : t;
3614
3607
  }
3615
- function us(t, e) {
3608
+ function cs(t, e) {
3616
3609
  return { x: t.x - e.x, y: t.y - e.y };
3617
3610
  }
3618
3611
  function fn({ point: t }, e) {
3619
3612
  return {
3620
3613
  point: t,
3621
- delta: us(t, fo(e)),
3622
- offset: us(t, Tu(e)),
3614
+ delta: cs(t, uo(e)),
3615
+ offset: cs(t, Tu(e)),
3623
3616
  velocity: bu(e, 0.1)
3624
3617
  };
3625
3618
  }
3626
3619
  function Tu(t) {
3627
3620
  return t[0];
3628
3621
  }
3629
- function fo(t) {
3622
+ function uo(t) {
3630
3623
  return t[t.length - 1];
3631
3624
  }
3632
3625
  function bu(t, e) {
3633
3626
  if (t.length < 2)
3634
3627
  return { x: 0, y: 0 };
3635
3628
  let n = t.length - 1, i = null;
3636
- const s = fo(t);
3629
+ const s = uo(t);
3637
3630
  for (; n >= 0 && (i = t[n], !(s.timestamp - i.timestamp > ht(e))); )
3638
3631
  n--;
3639
3632
  if (!i)
@@ -3647,35 +3640,35 @@ function bu(t, e) {
3647
3640
  };
3648
3641
  return r.x === 1 / 0 && (r.x = 0), r.y === 1 / 0 && (r.y = 0), r;
3649
3642
  }
3650
- const ho = 1e-4, xu = 1 - ho, wu = 1 + ho, po = 0.01, Su = 0 - po, Au = 0 + po;
3643
+ const fo = 1e-4, xu = 1 - fo, wu = 1 + fo, ho = 0.01, Su = 0 - ho, Au = 0 + ho;
3651
3644
  function Z(t) {
3652
3645
  return t.max - t.min;
3653
3646
  }
3654
3647
  function Cu(t, e, n) {
3655
3648
  return Math.abs(t - e) <= n;
3656
3649
  }
3657
- function fs(t, e, n, i = 0.5) {
3650
+ function us(t, e, n, i = 0.5) {
3658
3651
  t.origin = i, t.originPoint = j(e.min, e.max, t.origin), t.scale = Z(n) / Z(e), t.translate = j(n.min, n.max, t.origin) - t.originPoint, (t.scale >= xu && t.scale <= wu || isNaN(t.scale)) && (t.scale = 1), (t.translate >= Su && t.translate <= Au || isNaN(t.translate)) && (t.translate = 0);
3659
3652
  }
3660
3653
  function ie(t, e, n, i) {
3661
- fs(t.x, e.x, n.x, i ? i.originX : void 0), fs(t.y, e.y, n.y, i ? i.originY : void 0);
3654
+ us(t.x, e.x, n.x, i ? i.originX : void 0), us(t.y, e.y, n.y, i ? i.originY : void 0);
3662
3655
  }
3663
- function hs(t, e, n) {
3656
+ function fs(t, e, n) {
3664
3657
  t.min = n.min + e.min, t.max = t.min + Z(e);
3665
3658
  }
3666
3659
  function Ru(t, e, n) {
3667
- hs(t.x, e.x, n.x), hs(t.y, e.y, n.y);
3660
+ fs(t.x, e.x, n.x), fs(t.y, e.y, n.y);
3668
3661
  }
3669
- function ds(t, e, n) {
3662
+ function hs(t, e, n) {
3670
3663
  t.min = e.min - n.min, t.max = t.min + Z(e);
3671
3664
  }
3672
3665
  function se(t, e, n) {
3673
- ds(t.x, e.x, n.x), ds(t.y, e.y, n.y);
3666
+ hs(t.x, e.x, n.x), hs(t.y, e.y, n.y);
3674
3667
  }
3675
3668
  function Eu(t, { min: e, max: n }, i) {
3676
3669
  return e !== void 0 && t < e ? t = i ? j(e, t, i.min) : Math.max(t, e) : n !== void 0 && t > n && (t = i ? j(n, t, i.max) : Math.min(t, n)), t;
3677
3670
  }
3678
- function ps(t, e, n) {
3671
+ function ds(t, e, n) {
3679
3672
  return {
3680
3673
  min: e !== void 0 ? t.min + e : void 0,
3681
3674
  max: n !== void 0 ? t.max + n - (t.max - t.min) : void 0
@@ -3683,18 +3676,18 @@ function ps(t, e, n) {
3683
3676
  }
3684
3677
  function Vu(t, { top: e, left: n, bottom: i, right: s }) {
3685
3678
  return {
3686
- x: ps(t.x, n, s),
3687
- y: ps(t.y, e, i)
3679
+ x: ds(t.x, n, s),
3680
+ y: ds(t.y, e, i)
3688
3681
  };
3689
3682
  }
3690
- function ms(t, e) {
3683
+ function ps(t, e) {
3691
3684
  let n = e.min - t.min, i = e.max - t.max;
3692
3685
  return e.max - e.min < t.max - t.min && ([n, i] = [i, n]), { min: n, max: i };
3693
3686
  }
3694
3687
  function Du(t, e) {
3695
3688
  return {
3696
- x: ms(t.x, e.x),
3697
- y: ms(t.y, e.y)
3689
+ x: ps(t.x, e.x),
3690
+ y: ps(t.y, e.y)
3698
3691
  };
3699
3692
  }
3700
3693
  function Mu(t, e) {
@@ -3709,35 +3702,35 @@ function ku(t, e) {
3709
3702
  const Vn = 0.35;
3710
3703
  function Lu(t = Vn) {
3711
3704
  return t === !1 ? t = 0 : t === !0 && (t = Vn), {
3712
- x: gs(t, "left", "right"),
3713
- y: gs(t, "top", "bottom")
3705
+ x: ms(t, "left", "right"),
3706
+ y: ms(t, "top", "bottom")
3714
3707
  };
3715
3708
  }
3716
- function gs(t, e, n) {
3709
+ function ms(t, e, n) {
3717
3710
  return {
3718
- min: ys(t, e),
3719
- max: ys(t, n)
3711
+ min: gs(t, e),
3712
+ max: gs(t, n)
3720
3713
  };
3721
3714
  }
3722
- function ys(t, e) {
3715
+ function gs(t, e) {
3723
3716
  return typeof t == "number" ? t : t[e] || 0;
3724
3717
  }
3725
- const vs = () => ({
3718
+ const ys = () => ({
3726
3719
  translate: 0,
3727
3720
  scale: 1,
3728
3721
  origin: 0,
3729
3722
  originPoint: 0
3730
3723
  }), Nt = () => ({
3724
+ x: ys(),
3725
+ y: ys()
3726
+ }), vs = () => ({ min: 0, max: 0 }), N = () => ({
3731
3727
  x: vs(),
3732
3728
  y: vs()
3733
- }), Ps = () => ({ min: 0, max: 0 }), N = () => ({
3734
- x: Ps(),
3735
- y: Ps()
3736
3729
  });
3737
3730
  function nt(t) {
3738
3731
  return [t("x"), t("y")];
3739
3732
  }
3740
- function mo({ top: t, left: e, right: n, bottom: i }) {
3733
+ function po({ top: t, left: e, right: n, bottom: i }) {
3741
3734
  return {
3742
3735
  x: { min: e, max: n },
3743
3736
  y: { min: t, max: i }
@@ -3764,28 +3757,28 @@ function Dn({ scale: t, scaleX: e, scaleY: n }) {
3764
3757
  return !hn(t) || !hn(e) || !hn(n);
3765
3758
  }
3766
3759
  function Rt(t) {
3767
- return Dn(t) || go(t) || t.z || t.rotate || t.rotateX || t.rotateY || t.skewX || t.skewY;
3760
+ return Dn(t) || mo(t) || t.z || t.rotate || t.rotateX || t.rotateY || t.skewX || t.skewY;
3768
3761
  }
3769
- function go(t) {
3770
- return Ts(t.x) || Ts(t.y);
3762
+ function mo(t) {
3763
+ return Ps(t.x) || Ps(t.y);
3771
3764
  }
3772
- function Ts(t) {
3765
+ function Ps(t) {
3773
3766
  return t && t !== "0%";
3774
3767
  }
3775
3768
  function _e(t, e, n) {
3776
3769
  const i = t - n, s = e * i;
3777
3770
  return n + s;
3778
3771
  }
3779
- function bs(t, e, n, i, s) {
3772
+ function Ts(t, e, n, i, s) {
3780
3773
  return s !== void 0 && (t = _e(t, s, i)), _e(t, n, i) + e;
3781
3774
  }
3782
3775
  function Mn(t, e = 0, n = 1, i, s) {
3783
- t.min = bs(t.min, e, n, i, s), t.max = bs(t.max, e, n, i, s);
3776
+ t.min = Ts(t.min, e, n, i, s), t.max = Ts(t.max, e, n, i, s);
3784
3777
  }
3785
- function yo(t, { x: e, y: n }) {
3778
+ function go(t, { x: e, y: n }) {
3786
3779
  Mn(t.x, e.translate, e.scale, e.originPoint), Mn(t.y, n.translate, n.scale, n.originPoint);
3787
3780
  }
3788
- const xs = 0.999999999999, ws = 1.0000000000001;
3781
+ const bs = 0.999999999999, xs = 1.0000000000001;
3789
3782
  function ju(t, e, n, i = !1) {
3790
3783
  const s = n.length;
3791
3784
  if (!s)
@@ -3798,28 +3791,28 @@ function ju(t, e, n, i = !1) {
3798
3791
  l && l.props.style && l.props.style.display === "contents" || (i && o.options.layoutScroll && o.scroll && o !== o.root && Wt(t, {
3799
3792
  x: -o.scroll.offset.x,
3800
3793
  y: -o.scroll.offset.y
3801
- }), r && (e.x *= r.x.scale, e.y *= r.y.scale, yo(t, r)), i && Rt(o.latestValues) && Wt(t, o.latestValues));
3794
+ }), r && (e.x *= r.x.scale, e.y *= r.y.scale, go(t, r)), i && Rt(o.latestValues) && Wt(t, o.latestValues));
3802
3795
  }
3803
- e.x < ws && e.x > xs && (e.x = 1), e.y < ws && e.y > xs && (e.y = 1);
3796
+ e.x < xs && e.x > bs && (e.x = 1), e.y < xs && e.y > bs && (e.y = 1);
3804
3797
  }
3805
3798
  function Ut(t, e) {
3806
3799
  t.min = t.min + e, t.max = t.max + e;
3807
3800
  }
3808
- function Ss(t, e, n, i, s = 0.5) {
3801
+ function ws(t, e, n, i, s = 0.5) {
3809
3802
  const o = j(t.min, t.max, s);
3810
3803
  Mn(t, e, n, o, i);
3811
3804
  }
3812
3805
  function Wt(t, e) {
3813
- Ss(t.x, e.x, e.scaleX, e.scale, e.originX), Ss(t.y, e.y, e.scaleY, e.scale, e.originY);
3806
+ ws(t.x, e.x, e.scaleX, e.scale, e.originX), ws(t.y, e.y, e.scaleY, e.scale, e.originY);
3814
3807
  }
3815
- function vo(t, e) {
3816
- return mo(Ou(t.getBoundingClientRect(), e));
3808
+ function yo(t, e) {
3809
+ return po(Ou(t.getBoundingClientRect(), e));
3817
3810
  }
3818
3811
  function _u(t, e, n) {
3819
- const i = vo(t, n), { scroll: s } = e;
3812
+ const i = yo(t, n), { scroll: s } = e;
3820
3813
  return s && (Ut(i.x, s.offset.x), Ut(i.y, s.offset.y)), i;
3821
3814
  }
3822
- const Po = ({ current: t }) => t ? t.ownerDocument.defaultView : null, Bu = /* @__PURE__ */ new WeakMap();
3815
+ const vo = ({ current: t }) => t ? t.ownerDocument.defaultView : null, Bu = /* @__PURE__ */ new WeakMap();
3823
3816
  class Iu {
3824
3817
  constructor(e) {
3825
3818
  this.openGlobalLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = { x: 0, y: 0 }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = N(), this.visualElement = e;
@@ -3834,7 +3827,7 @@ class Iu {
3834
3827
  }, o = (u, f) => {
3835
3828
  var d;
3836
3829
  const { drag: p, dragPropagation: m, onDragStart: v } = this.getProps();
3837
- if (p && !m && (this.openGlobalLock && this.openGlobalLock(), this.openGlobalLock = Rr(p), !this.openGlobalLock))
3830
+ if (p && !m && (this.openGlobalLock && this.openGlobalLock(), this.openGlobalLock = Cr(p), !this.openGlobalLock))
3838
3831
  return;
3839
3832
  this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), nt((P) => {
3840
3833
  let y = this.getAxisMotionValue(P).get() || 0;
@@ -3863,7 +3856,7 @@ class Iu {
3863
3856
  var f;
3864
3857
  return this.getAnimationState(u) === "paused" && ((f = this.getAxisMotionValue(u).animation) === null || f === void 0 ? void 0 : f.play());
3865
3858
  }), { dragSnapToOrigin: c } = this.getProps();
3866
- this.panSession = new uo(e, {
3859
+ this.panSession = new co(e, {
3867
3860
  onSessionStart: s,
3868
3861
  onStart: o,
3869
3862
  onMove: r,
@@ -3872,7 +3865,7 @@ class Iu {
3872
3865
  }, {
3873
3866
  transformPagePoint: this.visualElement.getTransformPagePoint(),
3874
3867
  dragSnapToOrigin: c,
3875
- contextWindow: Po(this.visualElement)
3868
+ contextWindow: vo(this.visualElement)
3876
3869
  });
3877
3870
  }
3878
3871
  stop(e, n) {
@@ -3921,7 +3914,7 @@ class Iu {
3921
3914
  let r = Du(s.layout.layoutBox, o);
3922
3915
  if (n) {
3923
3916
  const a = n(Fu(r));
3924
- this.hasMutatedConstraints = !!a, a && (r = mo(a));
3917
+ this.hasMutatedConstraints = !!a, a && (r = po(a));
3925
3918
  }
3926
3919
  return r;
3927
3920
  }
@@ -3948,7 +3941,7 @@ class Iu {
3948
3941
  }
3949
3942
  startAxisValueAnimation(e, n) {
3950
3943
  const i = this.getAxisMotionValue(e);
3951
- return i.start(ci(e, i, 0, n, this.visualElement, !1, Rn(this.visualElement, e)));
3944
+ return i.start(li(e, i, 0, n, this.visualElement, !1, Rn(this.visualElement, e)));
3952
3945
  }
3953
3946
  stopAnimation() {
3954
3947
  nt((e) => this.getAxisMotionValue(e).stop());
@@ -4067,7 +4060,7 @@ class Uu extends St {
4067
4060
  this.removeGroupControls(), this.removeListeners();
4068
4061
  }
4069
4062
  }
4070
- const As = (t) => (e, n) => {
4063
+ const Ss = (t) => (e, n) => {
4071
4064
  t && M.postRender(() => t(e, n));
4072
4065
  };
4073
4066
  class Wu extends St {
@@ -4075,16 +4068,16 @@ class Wu extends St {
4075
4068
  super(...arguments), this.removePointerDownListener = H;
4076
4069
  }
4077
4070
  onPointerDown(e) {
4078
- this.session = new uo(e, this.createPanHandlers(), {
4071
+ this.session = new co(e, this.createPanHandlers(), {
4079
4072
  transformPagePoint: this.node.getTransformPagePoint(),
4080
- contextWindow: Po(this.node)
4073
+ contextWindow: vo(this.node)
4081
4074
  });
4082
4075
  }
4083
4076
  createPanHandlers() {
4084
4077
  const { onPanSessionStart: e, onPanStart: n, onPan: i, onPanEnd: s } = this.node.getProps();
4085
4078
  return {
4086
- onSessionStart: As(e),
4087
- onStart: As(n),
4079
+ onSessionStart: Ss(e),
4080
+ onStart: Ss(n),
4088
4081
  onMove: i,
4089
4082
  onEnd: (o, r) => {
4090
4083
  delete this.session, s && M.postRender(() => s(o, r));
@@ -4122,7 +4115,7 @@ const Ee = {
4122
4115
  */
4123
4116
  hasEverUpdated: !1
4124
4117
  };
4125
- function Cs(t, e) {
4118
+ function As(t, e) {
4126
4119
  return e.max === e.min ? 0 : t / (e.max - e.min) * 100;
4127
4120
  }
4128
4121
  const Jt = {
@@ -4134,7 +4127,7 @@ const Jt = {
4134
4127
  t = parseFloat(t);
4135
4128
  else
4136
4129
  return t;
4137
- const n = Cs(t, e.target.x), i = Cs(t, e.target.y);
4130
+ const n = As(t, e.target.x), i = As(t, e.target.y);
4138
4131
  return `${n}% ${i}%`;
4139
4132
  }
4140
4133
  }, Ku = {
@@ -4148,7 +4141,7 @@ const Jt = {
4148
4141
  return typeof s[2 + r] == "number" && (s[2 + r] /= c), typeof s[3 + r] == "number" && (s[3 + r] /= c), o(s);
4149
4142
  }
4150
4143
  };
4151
- class Gu extends aa {
4144
+ class Gu extends oa {
4152
4145
  /**
4153
4146
  * This only mounts projection nodes for components that
4154
4147
  * need measuring, we might want to do it for all components
@@ -4156,7 +4149,7 @@ class Gu extends aa {
4156
4149
  */
4157
4150
  componentDidMount() {
4158
4151
  const { visualElement: e, layoutGroup: n, switchLayoutGroup: i, layoutId: s } = this.props, { projection: o } = e;
4159
- Ia(Hu), o && (n.group && n.group.add(o), i && i.register && s && i.register(o), o.root.didUpdate(), o.addEventListener("animationComplete", () => {
4152
+ Ba(Hu), o && (n.group && n.group.add(o), i && i.register && s && i.register(o), o.root.didUpdate(), o.addEventListener("animationComplete", () => {
4160
4153
  this.safeToRemove();
4161
4154
  }), o.setOptions({
4162
4155
  ...o.options,
@@ -4188,9 +4181,9 @@ class Gu extends aa {
4188
4181
  return null;
4189
4182
  }
4190
4183
  }
4191
- function To(t) {
4184
+ function Po(t) {
4192
4185
  const [e, n] = $u(), i = G(Wn);
4193
- return O.jsx(Gu, { ...t, layoutGroup: i, switchLayoutGroup: G(lr), isPresent: e, safeToRemove: n });
4186
+ return O.jsx(Gu, { ...t, layoutGroup: i, switchLayoutGroup: G(ar), isPresent: e, safeToRemove: n });
4194
4187
  }
4195
4188
  const Hu = {
4196
4189
  borderRadius: {
@@ -4207,7 +4200,7 @@ const Hu = {
4207
4200
  borderBottomLeftRadius: Jt,
4208
4201
  borderBottomRightRadius: Jt,
4209
4202
  boxShadow: Ku
4210
- }, bo = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], zu = bo.length, Rs = (t) => typeof t == "string" ? parseFloat(t) : t, Es = (t) => typeof t == "number" || S.test(t);
4203
+ }, To = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], zu = To.length, Cs = (t) => typeof t == "string" ? parseFloat(t) : t, Rs = (t) => typeof t == "number" || S.test(t);
4211
4204
  function Yu(t, e, n, i, s, o) {
4212
4205
  s ? (t.opacity = j(
4213
4206
  0,
@@ -4216,68 +4209,68 @@ function Yu(t, e, n, i, s, o) {
4216
4209
  Xu(i)
4217
4210
  ), t.opacityExit = j(e.opacity !== void 0 ? e.opacity : 1, 0, qu(i))) : o && (t.opacity = j(e.opacity !== void 0 ? e.opacity : 1, n.opacity !== void 0 ? n.opacity : 1, i));
4218
4211
  for (let r = 0; r < zu; r++) {
4219
- const a = `border${bo[r]}Radius`;
4220
- let l = Vs(e, a), c = Vs(n, a);
4212
+ const a = `border${To[r]}Radius`;
4213
+ let l = Es(e, a), c = Es(n, a);
4221
4214
  if (l === void 0 && c === void 0)
4222
4215
  continue;
4223
- l || (l = 0), c || (c = 0), l === 0 || c === 0 || Es(l) === Es(c) ? (t[a] = Math.max(j(Rs(l), Rs(c), i), 0), (ot.test(c) || ot.test(l)) && (t[a] += "%")) : t[a] = c;
4216
+ l || (l = 0), c || (c = 0), l === 0 || c === 0 || Rs(l) === Rs(c) ? (t[a] = Math.max(j(Cs(l), Cs(c), i), 0), (ot.test(c) || ot.test(l)) && (t[a] += "%")) : t[a] = c;
4224
4217
  }
4225
4218
  (e.rotate || n.rotate) && (t.rotate = j(e.rotate || 0, n.rotate || 0, i));
4226
4219
  }
4227
- function Vs(t, e) {
4220
+ function Es(t, e) {
4228
4221
  return t[e] !== void 0 ? t[e] : t.borderRadius;
4229
4222
  }
4230
- const Xu = xo(0, 0.5, to), qu = xo(0.5, 0.95, H);
4231
- function xo(t, e, n) {
4223
+ const Xu = bo(0, 0.5, Qr), qu = bo(0.5, 0.95, H);
4224
+ function bo(t, e, n) {
4232
4225
  return (i) => i < t ? 0 : i > e ? 1 : n(ce(t, e, i));
4233
4226
  }
4234
- function Ds(t, e) {
4227
+ function Vs(t, e) {
4235
4228
  t.min = e.min, t.max = e.max;
4236
4229
  }
4237
4230
  function et(t, e) {
4238
- Ds(t.x, e.x), Ds(t.y, e.y);
4231
+ Vs(t.x, e.x), Vs(t.y, e.y);
4239
4232
  }
4240
- function Ms(t, e) {
4233
+ function Ds(t, e) {
4241
4234
  t.translate = e.translate, t.scale = e.scale, t.originPoint = e.originPoint, t.origin = e.origin;
4242
4235
  }
4243
- function ks(t, e, n, i, s) {
4236
+ function Ms(t, e, n, i, s) {
4244
4237
  return t -= e, t = _e(t, 1 / n, i), s !== void 0 && (t = _e(t, 1 / s, i)), t;
4245
4238
  }
4246
4239
  function Zu(t, e = 0, n = 1, i = 0.5, s, o = t, r = t) {
4247
4240
  if (ot.test(e) && (e = parseFloat(e), e = j(r.min, r.max, e / 100) - r.min), typeof e != "number")
4248
4241
  return;
4249
4242
  let a = j(o.min, o.max, i);
4250
- t === o && (a -= e), t.min = ks(t.min, e, n, a, s), t.max = ks(t.max, e, n, a, s);
4243
+ t === o && (a -= e), t.min = Ms(t.min, e, n, a, s), t.max = Ms(t.max, e, n, a, s);
4251
4244
  }
4252
- function Ls(t, e, [n, i, s], o, r) {
4245
+ function ks(t, e, [n, i, s], o, r) {
4253
4246
  Zu(t, e[n], e[i], e[s], e.scale, o, r);
4254
4247
  }
4255
4248
  const Ju = ["x", "scaleX", "originX"], Qu = ["y", "scaleY", "originY"];
4256
- function Fs(t, e, n, i) {
4257
- Ls(t.x, e, Ju, n ? n.x : void 0, i ? i.x : void 0), Ls(t.y, e, Qu, n ? n.y : void 0, i ? i.y : void 0);
4249
+ function Ls(t, e, n, i) {
4250
+ ks(t.x, e, Ju, n ? n.x : void 0, i ? i.x : void 0), ks(t.y, e, Qu, n ? n.y : void 0, i ? i.y : void 0);
4258
4251
  }
4259
- function Os(t) {
4252
+ function Fs(t) {
4260
4253
  return t.translate === 0 && t.scale === 1;
4261
4254
  }
4262
- function wo(t) {
4263
- return Os(t.x) && Os(t.y);
4255
+ function xo(t) {
4256
+ return Fs(t.x) && Fs(t.y);
4264
4257
  }
4265
- function js(t, e) {
4258
+ function Os(t, e) {
4266
4259
  return t.min === e.min && t.max === e.max;
4267
4260
  }
4268
4261
  function tf(t, e) {
4269
- return js(t.x, e.x) && js(t.y, e.y);
4262
+ return Os(t.x, e.x) && Os(t.y, e.y);
4270
4263
  }
4271
- function _s(t, e) {
4264
+ function js(t, e) {
4272
4265
  return Math.round(t.min) === Math.round(e.min) && Math.round(t.max) === Math.round(e.max);
4273
4266
  }
4274
- function So(t, e) {
4275
- return _s(t.x, e.x) && _s(t.y, e.y);
4267
+ function wo(t, e) {
4268
+ return js(t.x, e.x) && js(t.y, e.y);
4276
4269
  }
4277
- function Bs(t) {
4270
+ function _s(t) {
4278
4271
  return Z(t.x) / Z(t.y);
4279
4272
  }
4280
- function Is(t, e) {
4273
+ function Bs(t, e) {
4281
4274
  return t.translate === e.translate && t.scale === e.scale && t.originPoint === e.originPoint;
4282
4275
  }
4283
4276
  class ef {
@@ -4371,26 +4364,26 @@ function af(t) {
4371
4364
  }
4372
4365
  function lf(t, e, n) {
4373
4366
  const i = Y(t) ? t : ue(t);
4374
- return i.start(ci("", i, e, n)), i.animation;
4367
+ return i.start(li("", i, e, n)), i.animation;
4375
4368
  }
4376
4369
  const Et = {
4377
4370
  type: "projectionFrame",
4378
4371
  totalNodes: 0,
4379
4372
  resolvedTargetDeltas: 0,
4380
4373
  recalculatedProjection: 0
4381
- }, te = typeof window < "u" && window.MotionDebug !== void 0, dn = ["", "X", "Y", "Z"], cf = { visibility: "hidden" }, Ns = 1e3;
4374
+ }, te = typeof window < "u" && window.MotionDebug !== void 0, dn = ["", "X", "Y", "Z"], cf = { visibility: "hidden" }, Is = 1e3;
4382
4375
  let uf = 0;
4383
4376
  function pn(t, e, n, i) {
4384
4377
  const { latestValues: s } = e;
4385
4378
  s[t] && (n[t] = s[t], e.setStaticValue(t, 0), i && (i[t] = 0));
4386
4379
  }
4387
- function Ao(t) {
4380
+ function So(t) {
4388
4381
  if (t.hasCheckedOptimisedAppear = !0, t.root === t)
4389
4382
  return !1;
4390
4383
  const { visualElement: e } = t.options;
4391
- return e ? lo(e) ? !0 : t.parent && !t.parent.hasCheckedOptimisedAppear ? Ao(t.parent) : !1 : !1;
4384
+ return e ? ao(e) ? !0 : t.parent && !t.parent.hasCheckedOptimisedAppear ? So(t.parent) : !1 : !1;
4392
4385
  }
4393
- function Co({ attachResizeListener: t, defaultParent: e, measureScroll: n, checkIsScrollRoot: i, resetTransform: s }) {
4386
+ function Ao({ attachResizeListener: t, defaultParent: e, measureScroll: n, checkIsScrollRoot: i, resetTransform: s }) {
4394
4387
  return class {
4395
4388
  constructor(r = {}, a = e == null ? void 0 : e()) {
4396
4389
  this.id = uf++, this.animationId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = { x: 1, y: 1 }, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.updateScheduled = !1, this.scheduleUpdate = () => this.update(), this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
@@ -4403,7 +4396,7 @@ function Co({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4403
4396
  this.root === this && (this.nodes = new rf());
4404
4397
  }
4405
4398
  addEventListener(r, a) {
4406
- return this.eventHandlers.has(r) || this.eventHandlers.set(r, new ui()), this.eventHandlers.get(r).add(a);
4399
+ return this.eventHandlers.has(r) || this.eventHandlers.set(r, new ci()), this.eventHandlers.get(r).add(a);
4407
4400
  }
4408
4401
  notifyListeners(r, ...a) {
4409
4402
  const l = this.eventHandlers.get(r);
@@ -4424,7 +4417,7 @@ function Co({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4424
4417
  let f;
4425
4418
  const d = () => this.root.updateBlockedByResize = !1;
4426
4419
  t(r, () => {
4427
- this.root.updateBlockedByResize = !0, f && f(), f = of(d, 250), Ee.hasAnimatedSinceResize && (Ee.hasAnimatedSinceResize = !1, this.nodes.forEach(Ws));
4420
+ this.root.updateBlockedByResize = !0, f && f(), f = of(d, 250), Ee.hasAnimatedSinceResize && (Ee.hasAnimatedSinceResize = !1, this.nodes.forEach(Us));
4428
4421
  });
4429
4422
  }
4430
4423
  l && this.root.registerSharedNode(l, this), this.options.animate !== !1 && u && (l || c) && this.addEventListener("didUpdate", ({ delta: f, hasLayoutChanged: d, hasRelativeTargetChanged: p, layout: m }) => {
@@ -4432,17 +4425,17 @@ function Co({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4432
4425
  this.target = void 0, this.relativeTarget = void 0;
4433
4426
  return;
4434
4427
  }
4435
- const v = this.options.transition || u.getDefaultTransition() || Sf, { onLayoutAnimationStart: x, onLayoutAnimationComplete: P } = u.getProps(), y = !this.targetLayout || !So(this.targetLayout, m) || p, T = !d && p;
4428
+ const v = this.options.transition || u.getDefaultTransition() || Sf, { onLayoutAnimationStart: x, onLayoutAnimationComplete: P } = u.getProps(), y = !this.targetLayout || !wo(this.targetLayout, m) || p, T = !d && p;
4436
4429
  if (this.options.layoutRoot || this.resumeFrom && this.resumeFrom.instance || T || d && (y || !this.currentAnimation)) {
4437
4430
  this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0), this.setAnimationOrigin(f, T);
4438
4431
  const w = {
4439
- ...ti(v, "layout"),
4432
+ ...Qn(v, "layout"),
4440
4433
  onPlay: x,
4441
4434
  onComplete: P
4442
4435
  };
4443
4436
  (u.shouldReduceMotion || this.options.layoutRoot) && (w.delay = 0, w.type = !1), this.startAnimation(w);
4444
4437
  } else
4445
- d || Ws(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
4438
+ d || Us(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
4446
4439
  this.targetLayout = m;
4447
4440
  });
4448
4441
  }
@@ -4477,7 +4470,7 @@ function Co({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4477
4470
  this.options.onExitComplete && this.options.onExitComplete();
4478
4471
  return;
4479
4472
  }
4480
- if (window.HandoffCancelAllAnimations && Ao(this) && window.HandoffCancelAllAnimations(), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty)
4473
+ if (window.HandoffCancelAllAnimations && So(this) && window.HandoffCancelAllAnimations(), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty)
4481
4474
  return;
4482
4475
  this.isLayoutDirty = !0;
4483
4476
  for (let u = 0; u < this.path.length; u++) {
@@ -4492,7 +4485,7 @@ function Co({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4492
4485
  }
4493
4486
  update() {
4494
4487
  if (this.updateScheduled = !1, this.isUpdateBlocked()) {
4495
- this.unblockUpdate(), this.clearAllSnapshots(), this.nodes.forEach(Us);
4488
+ this.unblockUpdate(), this.clearAllSnapshots(), this.nodes.forEach(Ns);
4496
4489
  return;
4497
4490
  }
4498
4491
  this.isUpdating || this.nodes.forEach(gf), this.isUpdating = !1, this.nodes.forEach(yf), this.nodes.forEach(ff), this.nodes.forEach(hf), this.clearAllSnapshots();
@@ -4546,7 +4539,7 @@ function Co({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4546
4539
  resetTransform() {
4547
4540
  if (!s)
4548
4541
  return;
4549
- const r = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, a = this.projectionDelta && !wo(this.projectionDelta), l = this.getTransformTemplate(), c = l ? l(this.latestValues, "") : void 0, u = c !== this.prevTransformTemplateValue;
4542
+ const r = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, a = this.projectionDelta && !xo(this.projectionDelta), l = this.getTransformTemplate(), c = l ? l(this.latestValues, "") : void 0, u = c !== this.prevTransformTemplateValue;
4550
4543
  r && (a || Rt(this.latestValues) || u) && (s(this.instance, c), this.shouldResetTransform = !1, this.scheduleRender());
4551
4544
  }
4552
4545
  measure(r = !0) {
@@ -4604,9 +4597,9 @@ function Co({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4604
4597
  continue;
4605
4598
  Dn(c.latestValues) && c.updateSnapshot();
4606
4599
  const u = N(), f = c.measurePageBox();
4607
- et(u, f), Fs(a, c.latestValues, c.snapshot ? c.snapshot.layoutBox : void 0, u);
4600
+ et(u, f), Ls(a, c.latestValues, c.snapshot ? c.snapshot.layoutBox : void 0, u);
4608
4601
  }
4609
- return Rt(this.latestValues) && Fs(a, this.latestValues), a;
4602
+ return Rt(this.latestValues) && Ls(a, this.latestValues), a;
4610
4603
  }
4611
4604
  setTargetDelta(r) {
4612
4605
  this.targetDelta = r, this.root.scheduleUpdateProjection(), this.isProjectionDirty = !0;
@@ -4638,7 +4631,7 @@ function Co({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4638
4631
  p && p.layout && this.animationProgress !== 1 ? (this.relativeParent = p, this.forceRelativeParentToResolveTarget(), this.relativeTarget = N(), this.relativeTargetOrigin = N(), se(this.relativeTargetOrigin, this.layout.layoutBox, p.layout.layoutBox), et(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
4639
4632
  }
4640
4633
  if (!(!this.relativeTarget && !this.targetDelta)) {
4641
- if (this.target || (this.target = N(), this.targetWithTransforms = N()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Ru(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : et(this.target, this.layout.layoutBox), yo(this.target, this.targetDelta)) : et(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget) {
4634
+ if (this.target || (this.target = N(), this.targetWithTransforms = N()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Ru(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : et(this.target, this.layout.layoutBox), go(this.target, this.targetDelta)) : et(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget) {
4642
4635
  this.attemptToResolveRelativeTarget = !1;
4643
4636
  const p = this.getClosestProjectingParent();
4644
4637
  p && !!p.resumingFrom == !!this.resumingFrom && !p.options.layoutScroll && p.target && this.animationProgress !== 1 ? (this.relativeParent = p, this.forceRelativeParentToResolveTarget(), this.relativeTarget = N(), this.relativeTargetOrigin = N(), se(this.relativeTargetOrigin, this.target, p.target), et(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
@@ -4648,7 +4641,7 @@ function Co({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4648
4641
  }
4649
4642
  }
4650
4643
  getClosestProjectingParent() {
4651
- if (!(!this.parent || Dn(this.parent.latestValues) || go(this.parent.latestValues)))
4644
+ if (!(!this.parent || Dn(this.parent.latestValues) || mo(this.parent.latestValues)))
4652
4645
  return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();
4653
4646
  }
4654
4647
  isProjecting() {
@@ -4671,7 +4664,7 @@ function Co({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4671
4664
  this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
4672
4665
  return;
4673
4666
  }
4674
- !this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (Ms(this.prevProjectionDelta.x, this.projectionDelta.x), Ms(this.prevProjectionDelta.y, this.projectionDelta.y)), ie(this.projectionDelta, this.layoutCorrected, m, this.latestValues), (this.treeScale.x !== d || this.treeScale.y !== p || !Is(this.projectionDelta.x, this.prevProjectionDelta.x) || !Is(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", m)), te && Et.recalculatedProjection++;
4667
+ !this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (Ds(this.prevProjectionDelta.x, this.projectionDelta.x), Ds(this.prevProjectionDelta.y, this.projectionDelta.y)), ie(this.projectionDelta, this.layoutCorrected, m, this.latestValues), (this.treeScale.x !== d || this.treeScale.y !== p || !Bs(this.projectionDelta.x, this.prevProjectionDelta.x) || !Bs(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", m)), te && Et.recalculatedProjection++;
4675
4668
  }
4676
4669
  hide() {
4677
4670
  this.isVisible = !1;
@@ -4698,12 +4691,12 @@ function Co({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4698
4691
  let T;
4699
4692
  this.mixTargetDelta = (w) => {
4700
4693
  const C = w / 1e3;
4701
- $s(f.x, r.x, C), $s(f.y, r.y, C), this.setTargetDelta(f), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (se(d, this.layout.layoutBox, this.relativeParent.layout.layoutBox), xf(this.relativeTarget, this.relativeTargetOrigin, d, C), T && tf(this.relativeTarget, T) && (this.isProjectionDirty = !1), T || (T = N()), et(T, this.relativeTarget)), v && (this.animationValues = u, Yu(u, c, this.latestValues, C, y, P)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = C;
4694
+ Ws(f.x, r.x, C), Ws(f.y, r.y, C), this.setTargetDelta(f), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (se(d, this.layout.layoutBox, this.relativeParent.layout.layoutBox), xf(this.relativeTarget, this.relativeTargetOrigin, d, C), T && tf(this.relativeTarget, T) && (this.isProjectionDirty = !1), T || (T = N()), et(T, this.relativeTarget)), v && (this.animationValues = u, Yu(u, c, this.latestValues, C, y, P)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = C;
4702
4695
  }, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
4703
4696
  }
4704
4697
  startAnimation(r) {
4705
4698
  this.notifyListeners("animationStart"), this.currentAnimation && this.currentAnimation.stop(), this.resumingFrom && this.resumingFrom.currentAnimation && this.resumingFrom.currentAnimation.stop(), this.pendingAnimation && (mt(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = M.update(() => {
4706
- Ee.hasAnimatedSinceResize = !0, this.currentAnimation = lf(0, Ns, {
4699
+ Ee.hasAnimatedSinceResize = !0, this.currentAnimation = lf(0, Is, {
4707
4700
  ...r,
4708
4701
  onUpdate: (a) => {
4709
4702
  this.mixTargetDelta(a), r.onUpdate && r.onUpdate(a);
@@ -4720,13 +4713,13 @@ function Co({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4720
4713
  r && r.exitAnimationComplete(), this.resumingFrom = this.currentAnimation = this.animationValues = void 0, this.notifyListeners("animationComplete");
4721
4714
  }
4722
4715
  finishAnimation() {
4723
- this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(Ns), this.currentAnimation.stop()), this.completeAnimation();
4716
+ this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(Is), this.currentAnimation.stop()), this.completeAnimation();
4724
4717
  }
4725
4718
  applyTransformsToTarget() {
4726
4719
  const r = this.getLead();
4727
4720
  let { targetWithTransforms: a, target: l, layout: c, latestValues: u } = r;
4728
4721
  if (!(!a || !l || !c)) {
4729
- if (this !== r && this.layout && c && Ro(this.options.animationType, this.layout.layoutBox, c.layoutBox)) {
4722
+ if (this !== r && this.layout && c && Co(this.options.animationType, this.layout.layoutBox, c.layoutBox)) {
4730
4723
  l = this.target || N();
4731
4724
  const f = Z(this.layout.layoutBox.x);
4732
4725
  l.x.min = r.target.x.min, l.x.max = l.x.min + f;
@@ -4829,7 +4822,7 @@ function Co({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4829
4822
  this.root.nodes.forEach((r) => {
4830
4823
  var a;
4831
4824
  return (a = r.currentAnimation) === null || a === void 0 ? void 0 : a.stop();
4832
- }), this.root.nodes.forEach(Us), this.root.sharedNodes.clear();
4825
+ }), this.root.nodes.forEach(Ns), this.root.sharedNodes.clear();
4833
4826
  }
4834
4827
  };
4835
4828
  }
@@ -4844,7 +4837,7 @@ function hf(t) {
4844
4837
  o === "size" ? nt((f) => {
4845
4838
  const d = r ? n.measuredBox[f] : n.layoutBox[f], p = Z(d);
4846
4839
  d.min = i[f].min, d.max = d.min + p;
4847
- }) : Ro(o, n.layoutBox, i) && nt((f) => {
4840
+ }) : Co(o, n.layoutBox, i) && nt((f) => {
4848
4841
  const d = r ? n.measuredBox[f] : n.layoutBox[f], p = Z(i[f]);
4849
4842
  d.max = d.min + p, t.relativeTarget && !t.currentAnimation && (t.isProjectionDirty = !0, t.relativeTarget[f].max = t.relativeTarget[f].min + p);
4850
4843
  });
@@ -4852,7 +4845,7 @@ function hf(t) {
4852
4845
  ie(a, i, n.layoutBox);
4853
4846
  const l = Nt();
4854
4847
  r ? ie(l, t.applyTransform(s, !0), n.measuredBox) : ie(l, i, n.layoutBox);
4855
- const c = !wo(a);
4848
+ const c = !xo(a);
4856
4849
  let u = !1;
4857
4850
  if (!t.resumeFrom) {
4858
4851
  const f = t.getClosestProjectingParent();
@@ -4862,7 +4855,7 @@ function hf(t) {
4862
4855
  const m = N();
4863
4856
  se(m, n.layoutBox, d.layoutBox);
4864
4857
  const v = N();
4865
- se(v, i, p.layoutBox), So(m, v) || (u = !0), f.options.layoutRoot && (t.relativeTarget = v, t.relativeTargetOrigin = m, t.relativeParent = f);
4858
+ se(v, i, p.layoutBox), wo(m, v) || (u = !0), f.options.layoutRoot && (t.relativeTarget = v, t.relativeTargetOrigin = m, t.relativeParent = f);
4866
4859
  }
4867
4860
  }
4868
4861
  }
@@ -4889,7 +4882,7 @@ function pf(t) {
4889
4882
  function mf(t) {
4890
4883
  t.clearSnapshot();
4891
4884
  }
4892
- function Us(t) {
4885
+ function Ns(t) {
4893
4886
  t.clearMeasurements();
4894
4887
  }
4895
4888
  function gf(t) {
@@ -4899,7 +4892,7 @@ function yf(t) {
4899
4892
  const { visualElement: e } = t.options;
4900
4893
  e && e.getProps().onBeforeLayoutMeasure && e.notify("BeforeLayoutMeasure"), t.resetTransform();
4901
4894
  }
4902
- function Ws(t) {
4895
+ function Us(t) {
4903
4896
  t.finishAnimation(), t.targetDelta = t.relativeTarget = t.target = void 0, t.isProjectionDirty = !0;
4904
4897
  }
4905
4898
  function vf(t) {
@@ -4914,14 +4907,14 @@ function Tf(t) {
4914
4907
  function bf(t) {
4915
4908
  t.removeLeadSnapshot();
4916
4909
  }
4917
- function $s(t, e, n) {
4910
+ function Ws(t, e, n) {
4918
4911
  t.translate = j(e.translate, 0, n), t.scale = j(e.scale, 1, n), t.origin = e.origin, t.originPoint = e.originPoint;
4919
4912
  }
4920
- function Ks(t, e, n, i) {
4913
+ function $s(t, e, n, i) {
4921
4914
  t.min = j(e.min, n.min, i), t.max = j(e.max, n.max, i);
4922
4915
  }
4923
4916
  function xf(t, e, n, i) {
4924
- Ks(t.x, e.x, n.x, i), Ks(t.y, e.y, n.y, i);
4917
+ $s(t.x, e.x, n.x, i), $s(t.y, e.y, n.y, i);
4925
4918
  }
4926
4919
  function wf(t) {
4927
4920
  return t.animationValues && t.animationValues.opacityExit !== void 0;
@@ -4929,21 +4922,21 @@ function wf(t) {
4929
4922
  const Sf = {
4930
4923
  duration: 0.45,
4931
4924
  ease: [0.4, 0, 0.1, 1]
4932
- }, Gs = (t) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(t), Hs = Gs("applewebkit/") && !Gs("chrome/") ? Math.round : H;
4933
- function zs(t) {
4934
- t.min = Hs(t.min), t.max = Hs(t.max);
4925
+ }, Ks = (t) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(t), Gs = Ks("applewebkit/") && !Ks("chrome/") ? Math.round : H;
4926
+ function Hs(t) {
4927
+ t.min = Gs(t.min), t.max = Gs(t.max);
4935
4928
  }
4936
4929
  function Af(t) {
4937
- zs(t.x), zs(t.y);
4930
+ Hs(t.x), Hs(t.y);
4938
4931
  }
4939
- function Ro(t, e, n) {
4940
- return t === "position" || t === "preserve-aspect" && !Cu(Bs(e), Bs(n), 0.2);
4932
+ function Co(t, e, n) {
4933
+ return t === "position" || t === "preserve-aspect" && !Cu(_s(e), _s(n), 0.2);
4941
4934
  }
4942
4935
  function Cf(t) {
4943
4936
  var e;
4944
4937
  return t !== t.root && ((e = t.scroll) === null || e === void 0 ? void 0 : e.wasRoot);
4945
4938
  }
4946
- const Rf = Co({
4939
+ const Rf = Ao({
4947
4940
  attachResizeListener: (t, e) => lt(t, "resize", e),
4948
4941
  measureScroll: () => ({
4949
4942
  x: document.documentElement.scrollLeft || document.body.scrollLeft,
@@ -4952,7 +4945,7 @@ const Rf = Co({
4952
4945
  checkIsScrollRoot: () => !0
4953
4946
  }), mn = {
4954
4947
  current: void 0
4955
- }, Eo = Co({
4948
+ }, Ro = Ao({
4956
4949
  measureScroll: (t) => ({
4957
4950
  x: t.scrollLeft,
4958
4951
  y: t.scrollTop
@@ -4974,12 +4967,12 @@ const Rf = Co({
4974
4967
  },
4975
4968
  drag: {
4976
4969
  Feature: Uu,
4977
- ProjectionNode: Eo,
4978
- MeasureLayout: To
4970
+ ProjectionNode: Ro,
4971
+ MeasureLayout: Po
4979
4972
  }
4980
- }, kn = { current: null }, Vo = { current: !1 };
4973
+ }, kn = { current: null }, Eo = { current: !1 };
4981
4974
  function Vf() {
4982
- if (Vo.current = !0, !!Bn)
4975
+ if (Eo.current = !0, !!Bn)
4983
4976
  if (window.matchMedia) {
4984
4977
  const t = window.matchMedia("(prefers-reduced-motion)"), e = () => kn.current = t.matches;
4985
4978
  t.addListener(e), e();
@@ -4990,7 +4983,7 @@ function Df(t, e, n) {
4990
4983
  for (const i in e) {
4991
4984
  const s = e[i], o = n[i];
4992
4985
  if (Y(s))
4993
- t.addValue(i, s), process.env.NODE_ENV === "development" && fi(s.version === "11.3.21", `Attempting to mix Framer Motion versions ${s.version} with 11.3.21 may not work as expected.`);
4986
+ t.addValue(i, s), process.env.NODE_ENV === "development" && ui(s.version === "11.3.19", `Attempting to mix Framer Motion versions ${s.version} with 11.3.19 may not work as expected.`);
4994
4987
  else if (Y(o))
4995
4988
  t.addValue(i, ue(s, { owner: t }));
4996
4989
  else if (o !== s)
@@ -5006,7 +4999,7 @@ function Df(t, e, n) {
5006
4999
  e[i] === void 0 && t.removeValue(i);
5007
5000
  return e;
5008
5001
  }
5009
- const Ys = /* @__PURE__ */ new WeakMap(), Mf = [...Or, z, xt], kf = (t) => Mf.find(Fr(t)), Xs = [
5002
+ const zs = /* @__PURE__ */ new WeakMap(), Mf = [...Fr, z, xt], kf = (t) => Mf.find(Lr(t)), Ys = [
5010
5003
  "AnimationStart",
5011
5004
  "AnimationComplete",
5012
5005
  "Update",
@@ -5027,13 +5020,13 @@ class Ff {
5027
5020
  return {};
5028
5021
  }
5029
5022
  constructor({ parent: e, props: n, presenceContext: i, reducedMotionConfig: s, blockInitialAnimation: o, visualState: r }, a = {}) {
5030
- this.applyWillChange = !1, this.resolveKeyframes = (d, p, m, v) => new this.KeyframeResolver(d, p, m, v, this), this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = ei, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
5023
+ this.applyWillChange = !1, this.resolveKeyframes = (d, p, m, v) => new this.KeyframeResolver(d, p, m, v, this), this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = ti, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
5031
5024
  this.isRenderScheduled = !1, this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
5032
5025
  }, this.isRenderScheduled = !1, this.scheduleRender = () => {
5033
5026
  this.isRenderScheduled || (this.isRenderScheduled = !0, M.render(this.render, !1, !0));
5034
5027
  };
5035
5028
  const { latestValues: l, renderState: c } = r;
5036
- this.latestValues = l, this.baseTarget = { ...l }, this.initialValues = n.initial ? { ...l } : {}, this.renderState = c, this.parent = e, this.props = n, this.presenceContext = i, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = s, this.options = a, this.blockInitialAnimation = !!o, this.isControllingVariants = Ue(n), this.isVariantNode = ur(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
5029
+ this.latestValues = l, this.baseTarget = { ...l }, this.initialValues = n.initial ? { ...l } : {}, this.renderState = c, this.parent = e, this.props = n, this.presenceContext = i, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = s, this.options = a, this.blockInitialAnimation = !!o, this.isControllingVariants = Ue(n), this.isVariantNode = cr(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
5037
5030
  const { willChange: u, ...f } = this.scrapeMotionValuesFromProps(n, {}, this);
5038
5031
  for (const d in f) {
5039
5032
  const p = f[d];
@@ -5041,10 +5034,10 @@ class Ff {
5041
5034
  }
5042
5035
  }
5043
5036
  mount(e) {
5044
- this.current = e, Ys.set(e, this), this.projection && !this.projection.instance && this.projection.mount(e), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((n, i) => this.bindToMotionValue(i, n)), Vo.current || Vf(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : kn.current, process.env.NODE_ENV !== "production" && fi(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected."), this.parent && this.parent.children.add(this), this.update(this.props, this.presenceContext);
5037
+ this.current = e, zs.set(e, this), this.projection && !this.projection.instance && this.projection.mount(e), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((n, i) => this.bindToMotionValue(i, n)), Eo.current || Vf(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : kn.current, process.env.NODE_ENV !== "production" && ui(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected."), this.parent && this.parent.children.add(this), this.update(this.props, this.presenceContext);
5045
5038
  }
5046
5039
  unmount() {
5047
- Ys.delete(this.current), this.projection && this.projection.unmount(), mt(this.notifyUpdate), mt(this.render), this.valueSubscriptions.forEach((e) => e()), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent && this.parent.children.delete(this);
5040
+ zs.delete(this.current), this.projection && this.projection.unmount(), mt(this.notifyUpdate), mt(this.render), this.valueSubscriptions.forEach((e) => e()), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent && this.parent.children.delete(this);
5048
5041
  for (const e in this.events)
5049
5042
  this.events[e].clear();
5050
5043
  for (const e in this.features) {
@@ -5100,8 +5093,8 @@ class Ff {
5100
5093
  */
5101
5094
  update(e, n) {
5102
5095
  (e.transformTemplate || this.props.transformTemplate) && this.scheduleRender(), this.prevProps = this.props, this.props = e, this.prevPresenceContext = this.presenceContext, this.presenceContext = n;
5103
- for (let i = 0; i < Xs.length; i++) {
5104
- const s = Xs[i];
5096
+ for (let i = 0; i < Ys.length; i++) {
5097
+ const s = Ys[i];
5105
5098
  this.propEventSubscriptions[s] && (this.propEventSubscriptions[s](), delete this.propEventSubscriptions[s]);
5106
5099
  const o = "on" + s, r = e[o];
5107
5100
  r && (this.propEventSubscriptions[s] = this.on(s, r));
@@ -5186,7 +5179,7 @@ class Ff {
5186
5179
  readValue(e, n) {
5187
5180
  var i;
5188
5181
  let s = this.latestValues[e] !== void 0 || !this.current ? this.latestValues[e] : (i = this.getBaseTargetFromProps(this.props, e)) !== null && i !== void 0 ? i : this.readValueFromInstance(this.current, e, this.options);
5189
- return s != null && (typeof s == "string" && (kr(s) || Mr(s)) ? s = parseFloat(s) : !kf(s) && xt.test(n) && (s = $r(e, n)), this.setBaseTarget(e, Y(s) ? s.get() : s)), Y(s) ? s.get() : s;
5182
+ return s != null && (typeof s == "string" && (Mr(s) || Dr(s)) ? s = parseFloat(s) : !kf(s) && xt.test(n) && (s = Wr(e, n)), this.setBaseTarget(e, Y(s) ? s.get() : s)), Y(s) ? s.get() : s;
5190
5183
  }
5191
5184
  /**
5192
5185
  * Set the base target to later animate back to. This is currently
@@ -5204,7 +5197,7 @@ class Ff {
5204
5197
  const { initial: i } = this.props;
5205
5198
  let s;
5206
5199
  if (typeof i == "string" || typeof i == "object") {
5207
- const r = Jn(this.props, i, (n = this.presenceContext) === null || n === void 0 ? void 0 : n.custom);
5200
+ const r = Zn(this.props, i, (n = this.presenceContext) === null || n === void 0 ? void 0 : n.custom);
5208
5201
  r && (s = r[e]);
5209
5202
  }
5210
5203
  if (i && s !== void 0)
@@ -5213,15 +5206,15 @@ class Ff {
5213
5206
  return o !== void 0 && !Y(o) ? o : this.initialValues[e] !== void 0 && s === void 0 ? void 0 : this.baseTarget[e];
5214
5207
  }
5215
5208
  on(e, n) {
5216
- return this.events[e] || (this.events[e] = new ui()), this.events[e].add(n);
5209
+ return this.events[e] || (this.events[e] = new ci()), this.events[e].add(n);
5217
5210
  }
5218
5211
  notify(e, ...n) {
5219
5212
  this.events[e] && this.events[e].notify(...n);
5220
5213
  }
5221
5214
  }
5222
- class Do extends Ff {
5215
+ class Vo extends Ff {
5223
5216
  constructor() {
5224
- super(...arguments), this.KeyframeResolver = Kr;
5217
+ super(...arguments), this.KeyframeResolver = $r;
5225
5218
  }
5226
5219
  sortInstanceNodePosition(e, n) {
5227
5220
  return e.compareDocumentPosition(n) & 2 ? 1 : -1;
@@ -5236,27 +5229,27 @@ class Do extends Ff {
5236
5229
  function Of(t) {
5237
5230
  return window.getComputedStyle(t);
5238
5231
  }
5239
- class jf extends Do {
5232
+ class jf extends Vo {
5240
5233
  constructor() {
5241
- super(...arguments), this.type = "html", this.applyWillChange = !0, this.renderInstance = vr;
5234
+ super(...arguments), this.type = "html", this.applyWillChange = !0, this.renderInstance = yr;
5242
5235
  }
5243
5236
  readValueFromInstance(e, n) {
5244
5237
  if (wt.has(n)) {
5245
- const i = ii(n);
5238
+ const i = ni(n);
5246
5239
  return i && i.default || 0;
5247
5240
  } else {
5248
- const i = Of(e), s = (pr(n) ? i.getPropertyValue(n) : i[n]) || 0;
5241
+ const i = Of(e), s = (hr(n) ? i.getPropertyValue(n) : i[n]) || 0;
5249
5242
  return typeof s == "string" ? s.trim() : s;
5250
5243
  }
5251
5244
  }
5252
5245
  measureInstanceViewportBox(e, { transformPagePoint: n }) {
5253
- return vo(e, n);
5246
+ return yo(e, n);
5254
5247
  }
5255
5248
  build(e, n, i) {
5256
- zn(e, n, i.transformTemplate);
5249
+ Hn(e, n, i.transformTemplate);
5257
5250
  }
5258
5251
  scrapeMotionValuesFromProps(e, n, i) {
5259
- return Zn(e, n, i);
5252
+ return qn(e, n, i);
5260
5253
  }
5261
5254
  handleChildMotionValue() {
5262
5255
  this.childSubscription && (this.childSubscription(), delete this.childSubscription);
@@ -5266,7 +5259,7 @@ class jf extends Do {
5266
5259
  }));
5267
5260
  }
5268
5261
  }
5269
- class _f extends Do {
5262
+ class _f extends Vo {
5270
5263
  constructor() {
5271
5264
  super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = N;
5272
5265
  }
@@ -5275,37 +5268,37 @@ class _f extends Do {
5275
5268
  }
5276
5269
  readValueFromInstance(e, n) {
5277
5270
  if (wt.has(n)) {
5278
- const i = ii(n);
5271
+ const i = ni(n);
5279
5272
  return i && i.default || 0;
5280
5273
  }
5281
- return n = Pr.has(n) ? n : Ne(n), e.getAttribute(n);
5274
+ return n = vr.has(n) ? n : Ne(n), e.getAttribute(n);
5282
5275
  }
5283
5276
  scrapeMotionValuesFromProps(e, n, i) {
5284
- return br(e, n, i);
5277
+ return Tr(e, n, i);
5285
5278
  }
5286
5279
  build(e, n, i) {
5287
- Xn(e, n, this.isSVGTag, i.transformTemplate);
5280
+ Yn(e, n, this.isSVGTag, i.transformTemplate);
5288
5281
  }
5289
5282
  renderInstance(e, n, i, s) {
5290
- Tr(e, n, i, s);
5283
+ Pr(e, n, i, s);
5291
5284
  }
5292
5285
  mount(e) {
5293
- this.isSVGTag = qn(e.tagName), super.mount(e);
5286
+ this.isSVGTag = Xn(e.tagName), super.mount(e);
5294
5287
  }
5295
5288
  }
5296
5289
  const Bf = (t, e) => $n(t) ? new _f(e) : new jf(e, {
5297
- allowProjection: t !== nr
5290
+ allowProjection: t !== er
5298
5291
  }), If = {
5299
5292
  layout: {
5300
- ProjectionNode: Eo,
5301
- MeasureLayout: To
5293
+ ProjectionNode: Ro,
5294
+ MeasureLayout: Po
5302
5295
  }
5303
5296
  }, Nf = {
5304
5297
  ...vu,
5305
5298
  ...El,
5306
5299
  ...Ef,
5307
5300
  ...If
5308
- }, Uf = /* @__PURE__ */ _a((t, e) => ml(t, e, Nf, Bf));
5301
+ }, Uf = /* @__PURE__ */ ja((t, e) => ml(t, e, Nf, Bf));
5309
5302
  class Wf extends Ln.Component {
5310
5303
  getSnapshotBeforeUpdate(e) {
5311
5304
  const n = this.props.childRef.current;
@@ -5331,7 +5324,7 @@ function $f({ children: t, isPresent: e }) {
5331
5324
  top: 0,
5332
5325
  left: 0
5333
5326
  }), { nonce: o } = G(_n);
5334
- return er(() => {
5327
+ return tr(() => {
5335
5328
  const { width: r, height: a, top: l, left: c } = s.current;
5336
5329
  if (e || !i.current || !r || !a)
5337
5330
  return;
@@ -5351,7 +5344,7 @@ function $f({ children: t, isPresent: e }) {
5351
5344
  }, [e]), O.jsx(Wf, { isPresent: e, childRef: i, sizeRef: s, children: Ln.cloneElement(t, { ref: i }) });
5352
5345
  }
5353
5346
  const Kf = ({ children: t, initial: e, isPresent: n, onExitComplete: i, custom: s, presenceAffectsLayout: o, mode: r }) => {
5354
- const a = Qn(Gf), l = On(), c = Mt(
5347
+ const a = Jn(Gf), l = On(), c = Mt(
5355
5348
  () => ({
5356
5349
  id: l,
5357
5350
  initial: e,
@@ -5383,16 +5376,16 @@ function Gf() {
5383
5376
  return /* @__PURE__ */ new Map();
5384
5377
  }
5385
5378
  const Ae = (t) => t.key || "";
5386
- function qs(t) {
5379
+ function Xs(t) {
5387
5380
  const e = [];
5388
- return la.forEach(t, (n) => {
5389
- ca(n) && e.push(n);
5381
+ return aa.forEach(t, (n) => {
5382
+ la(n) && e.push(n);
5390
5383
  }), e;
5391
5384
  }
5392
5385
  const Hf = ({ children: t, exitBeforeEnter: e, custom: n, initial: i = !0, onExitComplete: s, presenceAffectsLayout: o = !0, mode: r = "sync" }) => {
5393
5386
  pt(!e, "Replace exitBeforeEnter with mode='wait'");
5394
- const a = Mt(() => qs(t), [t]), l = a.map(Ae), c = it(!0), u = it(a), f = Qn(() => /* @__PURE__ */ new Map()), [d, p] = _t(a), [m, v] = _t(a);
5395
- sr(() => {
5387
+ const a = Mt(() => Xs(t), [t]), l = a.map(Ae), c = it(!0), u = it(a), f = Jn(() => /* @__PURE__ */ new Map()), [d, p] = _t(a), [m, v] = _t(a);
5388
+ ir(() => {
5396
5389
  c.current = !1, u.current = a;
5397
5390
  for (let y = 0; y < m.length; y++) {
5398
5391
  const T = Ae(m[y]);
@@ -5406,7 +5399,7 @@ const Hf = ({ children: t, exitBeforeEnter: e, custom: n, initial: i = !0, onExi
5406
5399
  const w = m[T], C = Ae(w);
5407
5400
  l.includes(C) || (y.splice(T, 0, w), x.push(w));
5408
5401
  }
5409
- r === "wait" && x.length && (y = x), v(qs(y)), p(a);
5402
+ r === "wait" && x.length && (y = x), v(Xs(y)), p(a);
5410
5403
  return;
5411
5404
  }
5412
5405
  process.env.NODE_ENV !== "production" && r === "wait" && m.length > 1 && console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);
@@ -5429,22 +5422,22 @@ function Ve(t) {
5429
5422
  var e = new Error(t);
5430
5423
  return e.source = "ulid", e;
5431
5424
  }
5432
- var hi = "0123456789ABCDEFGHJKMNPQRSTVWXYZ", re = hi.length, Zs = Math.pow(2, 48) - 1, zf = 10, Yf = 16;
5425
+ var fi = "0123456789ABCDEFGHJKMNPQRSTVWXYZ", re = fi.length, qs = Math.pow(2, 48) - 1, zf = 10, Yf = 16;
5433
5426
  function Xf(t) {
5434
5427
  var e = Math.floor(t() * re);
5435
- return e === re && (e = re - 1), hi.charAt(e);
5428
+ return e === re && (e = re - 1), fi.charAt(e);
5436
5429
  }
5437
5430
  function qf(t, e) {
5438
5431
  if (isNaN(t))
5439
5432
  throw new Error(t + " must be a number");
5440
- if (t > Zs)
5441
- throw Ve("cannot encode time greater than " + Zs);
5433
+ if (t > qs)
5434
+ throw Ve("cannot encode time greater than " + qs);
5442
5435
  if (t < 0)
5443
5436
  throw Ve("time must be positive");
5444
5437
  if (Number.isInteger(t) === !1)
5445
5438
  throw Ve("time must be an integer");
5446
5439
  for (var n = void 0, i = ""; e > 0; e--)
5447
- n = t % re, i = hi.charAt(n) + i, t = (t - n) / re;
5440
+ n = t % re, i = fi.charAt(n) + i, t = (t - n) / re;
5448
5441
  return i;
5449
5442
  }
5450
5443
  function Zf(t, e) {
@@ -5485,15 +5478,15 @@ function Qf(t) {
5485
5478
  };
5486
5479
  }
5487
5480
  var th = Qf(), Pt = /* @__PURE__ */ ((t) => (t.Escape = "Escape", t.Enter = "Enter", t.Space = "Space", t.Tab = "Tab", t.ShiftAndTab = "Shift+Tab", t.ArrowUp = "ArrowUp", t.ArrowDown = "ArrowDown", t.ArrowLeft = "ArrowLeft", t.ArrowRight = "ArrowRight", t))(Pt || {}), De = /* @__PURE__ */ ((t) => (t.Input = "INPUT", t.Textarea = "TEXTAREA", t.Select = "SELECT", t.Button = "BUTTON", t))(De || {});
5488
- const Mo = [
5481
+ const Do = [
5489
5482
  De.Input,
5490
5483
  De.Textarea,
5491
5484
  De.Select
5492
5485
  ], eh = (t) => (t == null ? void 0 : t.split("+").map((e) => e.trim().toLowerCase())) ?? [], nh = (t) => ({
5486
+ formFieldTags: (t == null ? void 0 : t.formFieldTags) ?? Do,
5493
5487
  ignoreFormField: (t == null ? void 0 : t.ignoreFormField) ?? !0,
5494
- formFieldTags: (t == null ? void 0 : t.formFieldTags) ?? Mo,
5495
- preventDefault: (t == null ? void 0 : t.preventDefault) ?? !1,
5496
- stopPropagation: (t == null ? void 0 : t.stopPropagation) ?? !1
5488
+ preventDefault: (t == null ? void 0 : t.preventDefault) ?? !0,
5489
+ stopPropagation: (t == null ? void 0 : t.stopPropagation) ?? !0
5497
5490
  }), ih = (t, e, n) => (i) => {
5498
5491
  const s = Array.isArray(t) ? t : [t];
5499
5492
  for (const o of s) {
@@ -5501,17 +5494,17 @@ const Mo = [
5501
5494
  if (i.repeat)
5502
5495
  continue;
5503
5496
  const f = a.includes("ctrl"), d = a.includes("cmd"), p = a.includes("shift"), m = f === i.ctrlKey, v = d === i.metaKey, x = p === i.shiftKey;
5504
- if (!(!(a.includes(l) || a.includes(c)) || !m || !v || !x) && !(!r.ignoreFormField && u && Mo.includes(u.tagName)) && e) {
5505
- r.preventDefault && i.preventDefault(), r.stopPropagation && i.stopPropagation(), e(i);
5497
+ if (!(!(a.includes(l) || a.includes(c)) || !m || !v || !x) && !(!r.ignoreFormField && u && Do.includes(u.tagName)) && (r.preventDefault && i.preventDefault(), r.stopPropagation && i.stopPropagation(), !!e)) {
5498
+ e(i);
5506
5499
  break;
5507
5500
  }
5508
5501
  }
5509
- }, Js = ({
5502
+ }, Zs = ({
5510
5503
  onKeyDown: t,
5511
5504
  hotKey: e,
5512
- stopPropagation: n,
5513
- preventDefault: i,
5514
- ignoreFormField: s,
5505
+ stopPropagation: n = !0,
5506
+ preventDefault: i = !0,
5507
+ ignoreFormField: s = !1,
5515
5508
  formFieldTags: o
5516
5509
  }) => {
5517
5510
  const r = at((a) => {
@@ -5520,7 +5513,7 @@ const Mo = [
5520
5513
  return ct(() => (document.addEventListener("keydown", r), () => {
5521
5514
  document.removeEventListener("keydown", r);
5522
5515
  }), [r]), null;
5523
- }, Qs = ({
5516
+ }, Js = ({
5524
5517
  onMousedown: t
5525
5518
  }) => (ct(() => (document.addEventListener("mousedown", t), () => {
5526
5519
  document.removeEventListener("mousedown", t);
@@ -5534,7 +5527,7 @@ const Mo = [
5534
5527
  mainEl: oh,
5535
5528
  "picker-el": "acrool-react-picker__picker-el",
5536
5529
  pickerEl: ah
5537
- }, ko = (t, e) => (n) => {
5530
+ }, Mo = (t, e) => (n) => {
5538
5531
  e.current = n, t && (typeof t == "function" ? t(n) : t && (t.current = n));
5539
5532
  }, lh = "acrool-react-picker__motion-animation-wrapper", ch = {
5540
5533
  "motion-animation-wrapper": "acrool-react-picker__motion-animation-wrapper",
@@ -5558,8 +5551,8 @@ const Mo = [
5558
5551
  children: t,
5559
5552
  anchorRef: e
5560
5553
  }, n) => {
5561
- const i = it(null), s = ga();
5562
- return tr(() => {
5554
+ const i = it(null), s = ma();
5555
+ return Qs(() => {
5563
5556
  let o = st.bottom, r = gt.left;
5564
5557
  const a = (l) => {
5565
5558
  var c;
@@ -5583,7 +5576,7 @@ const Mo = [
5583
5576
  }, [s.isVisible]), /* @__PURE__ */ O.jsx(O.Fragment, { children: /* @__PURE__ */ O.jsx(
5584
5577
  Uf.div,
5585
5578
  {
5586
- ref: ko(n, i),
5579
+ ref: Mo(n, i),
5587
5580
  transition: { type: "spring", duration: 0.2 },
5588
5581
  style: { display: "none" },
5589
5582
  className: ch.motionAnimationWrapper,
@@ -5607,7 +5600,7 @@ function vh(t, e, n) {
5607
5600
  a && m(o.value);
5608
5601
  }, [a, o.value]);
5609
5602
  const C = at((F) => {
5610
- console.log("xxx"), l(!1), x.current.focus(), u(!1);
5603
+ l(!1), x.current.focus(), u(!1);
5611
5604
  }, []), k = at((F) => {
5612
5605
  l(!0);
5613
5606
  }, []), $ = at((F) => {
@@ -5644,11 +5637,11 @@ function vh(t, e, n) {
5644
5637
  i,
5645
5638
  {
5646
5639
  ...o,
5647
- ref: ko(r, x)
5640
+ ref: Mo(r, x)
5648
5641
  }
5649
5642
  ) }),
5650
5643
  /* @__PURE__ */ O.jsx(Hf, { children: a && /* @__PURE__ */ O.jsx(
5651
- ir,
5644
+ nr,
5652
5645
  {
5653
5646
  id: `acrool-react-picker-${th().toLowerCase()}`,
5654
5647
  className: gn.pickerEl,
@@ -5663,10 +5656,10 @@ function vh(t, e, n) {
5663
5656
  }
5664
5657
  ) }),
5665
5658
  a && /* @__PURE__ */ O.jsx(sh, { onPickerHide: _ }),
5666
- T && a && /* @__PURE__ */ O.jsx(Qs, { onMousedown: R }),
5667
- c && /* @__PURE__ */ O.jsx(Qs, { onMousedown: $ }),
5659
+ T && a && /* @__PURE__ */ O.jsx(Js, { onMousedown: R }),
5660
+ c && /* @__PURE__ */ O.jsx(Js, { onMousedown: $ }),
5668
5661
  c && /* @__PURE__ */ O.jsx(
5669
- Js,
5662
+ Zs,
5670
5663
  {
5671
5664
  hotKey: [
5672
5665
  Pt.ArrowUp,
@@ -5680,7 +5673,7 @@ function vh(t, e, n) {
5680
5673
  }
5681
5674
  ),
5682
5675
  c && /* @__PURE__ */ O.jsx(
5683
- Js,
5676
+ Zs,
5684
5677
  {
5685
5678
  hotKey: [
5686
5679
  Pt.Tab,
@@ -5700,5 +5693,5 @@ export {
5700
5693
  mh as PickerProviderConsumer,
5701
5694
  jn as PickerProviderContext,
5702
5695
  vh as createPicker,
5703
- ga as usePicker
5696
+ ma as usePicker
5704
5697
  };