@acrool/react-picker 0.0.6-alpha.3 → 0.0.6-alpha.5

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