@acrool/react-picker 0.1.0-alpha.3 → 0.1.0-alpha.4

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 On from "react";
2
- import jn, { createContext as kt, useContext as $, useRef as J, useCallback as st, useEffect as ot, useLayoutEffect as ra, useInsertionEffect as tr, useMemo as Mt, forwardRef as ke, Fragment as er, createElement as oa, useId as _n, Component as aa, Children as la, isValidElement as ca, useState as _t } from "react";
3
- import ua from "react-dom";
2
+ import jn, { createContext as kt, useContext as $, useRef as J, useCallback as st, useEffect as ot, useLayoutEffect as oa, useInsertionEffect as er, useMemo as Mt, forwardRef as ke, Fragment as nr, createElement as aa, useId as _n, Component as la, Children as ca, isValidElement as ua, useState as _t } from "react";
3
+ import fa from "react-dom";
4
4
  var lt = /* @__PURE__ */ ((t) => (t.bottom = "bottom", t.top = "top", t))(lt || {}), Jt = /* @__PURE__ */ ((t) => (t.left = "left", t.right = "right", t))(Jt || {});
5
5
  const fe = [
6
6
  "color: #fff",
@@ -19,42 +19,42 @@ const fe = [
19
19
  function de(t, e, ...n) {
20
20
  console.log(`%c ${t}`, e, ...n);
21
21
  }
22
- function fa(t, ...e) {
22
+ function ha(t, ...e) {
23
23
  const n = fe.concat([
24
24
  `background-color: ${he.primary}`
25
25
  ]).join(";");
26
26
  de(t, n, ...e);
27
27
  }
28
- function ha(t, ...e) {
28
+ function da(t, ...e) {
29
29
  const n = fe.concat([
30
30
  `background-color: ${he.success}`
31
31
  ]).join(";");
32
32
  de(t, n, ...e);
33
33
  }
34
- function da(t, ...e) {
34
+ function pa(t, ...e) {
35
35
  const n = fe.concat([
36
36
  `background-color: ${he.info}`
37
37
  ]).join(";");
38
38
  de(t, n, ...e);
39
39
  }
40
- function pa(t, ...e) {
40
+ function ma(t, ...e) {
41
41
  const n = fe.concat([
42
42
  `background-color: ${he.warning}`
43
43
  ]).join(";");
44
44
  de(t, n, ...e);
45
45
  }
46
- function ma(t, ...e) {
46
+ function ga(t, ...e) {
47
47
  const n = fe.concat([
48
48
  `background-color: ${he.danger}`
49
49
  ]).join(";");
50
50
  de(t, n, ...e);
51
51
  }
52
52
  const yt = {
53
- primary: fa,
54
- success: ha,
55
- info: da,
56
- warning: pa,
57
- danger: ma
53
+ primary: ha,
54
+ success: da,
55
+ info: pa,
56
+ warning: ma,
57
+ danger: ga
58
58
  }, Bn = kt({
59
59
  hide: () => yt.warning("No hide method detected, did you embed your app with Acrool/PickerPortal?"),
60
60
  show: () => yt.warning("No show method detected, did you embed your app with Acrool/PickerPortal?"),
@@ -66,7 +66,7 @@ const yt = {
66
66
  onChange: () => yt.warning("No onChange method detected, did you embed your app with Acrool/PickerPortal?"),
67
67
  vertical: lt.bottom,
68
68
  setVertical: () => yt.warning("No onChange method detected, did you embed your app with Acrool/PickerPortal?")
69
- }), vh = Bn.Consumer, ga = () => $(Bn);
69
+ }), vh = Bn.Consumer, ya = () => $(Bn);
70
70
  var Pn = { exports: {} }, Xt = {};
71
71
  /**
72
72
  * @license React
@@ -77,11 +77,11 @@ var Pn = { exports: {} }, Xt = {};
77
77
  * This source code is licensed under the MIT license found in the
78
78
  * LICENSE file in the root directory of this source tree.
79
79
  */
80
- var Li;
81
- function ya() {
82
- if (Li)
80
+ var Fi;
81
+ function va() {
82
+ if (Fi)
83
83
  return Xt;
84
- Li = 1;
84
+ Fi = 1;
85
85
  var t = jn, e = Symbol.for("react.element"), n = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, s = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
86
86
  function r(a, l, c) {
87
87
  var u, f = {}, d = null, p = null;
@@ -105,9 +105,9 @@ var qt = {};
105
105
  * This source code is licensed under the MIT license found in the
106
106
  * LICENSE file in the root directory of this source tree.
107
107
  */
108
- var Fi;
109
- function va() {
110
- return Fi || (Fi = 1, process.env.NODE_ENV !== "production" && function() {
108
+ var Oi;
109
+ function Pa() {
110
+ return Oi || (Oi = 1, process.env.NODE_ENV !== "production" && function() {
111
111
  var t = jn, e = Symbol.for("react.element"), n = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), r = Symbol.for("react.provider"), a = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), d = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), m = Symbol.iterator, P = "@@iterator";
112
112
  function b(h) {
113
113
  if (h === null || typeof h != "object")
@@ -115,19 +115,19 @@ function va() {
115
115
  var g = m && h[m] || h[P];
116
116
  return typeof g == "function" ? g : null;
117
117
  }
118
- var T = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
118
+ var x = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
119
119
  function y(h) {
120
120
  {
121
- for (var g = arguments.length, x = new Array(g > 1 ? g - 1 : 0), C = 1; C < g; C++)
122
- x[C - 1] = arguments[C];
123
- v("error", h, x);
121
+ for (var g = arguments.length, T = new Array(g > 1 ? g - 1 : 0), C = 1; C < g; C++)
122
+ T[C - 1] = arguments[C];
123
+ v("error", h, T);
124
124
  }
125
125
  }
126
- function v(h, g, x) {
126
+ function v(h, g, T) {
127
127
  {
128
- var C = T.ReactDebugCurrentFrame, D = C.getStackAddendum();
129
- D !== "" && (g += "%s", x = x.concat([D]));
130
- var k = x.map(function(V) {
128
+ var C = x.ReactDebugCurrentFrame, D = C.getStackAddendum();
129
+ D !== "" && (g += "%s", T = T.concat([D]));
130
+ var k = T.map(function(V) {
131
131
  return String(V);
132
132
  });
133
133
  k.unshift("Warning: " + g), Function.prototype.apply.call(console[h], console, k);
@@ -142,12 +142,12 @@ function va() {
142
142
  // with.
143
143
  h.$$typeof === U || h.getModuleId !== void 0));
144
144
  }
145
- function N(h, g, x) {
145
+ function N(h, g, T) {
146
146
  var C = h.displayName;
147
147
  if (C)
148
148
  return C;
149
149
  var D = g.displayName || g.name || "";
150
- return D !== "" ? x + "(" + D + ")" : x;
150
+ return D !== "" ? T + "(" + D + ")" : T;
151
151
  }
152
152
  function gt(h) {
153
153
  return h.displayName || "Context";
@@ -179,8 +179,8 @@ function va() {
179
179
  var g = h;
180
180
  return gt(g) + ".Consumer";
181
181
  case r:
182
- var x = h;
183
- return gt(x._context) + ".Provider";
182
+ var T = h;
183
+ return gt(T._context) + ".Provider";
184
184
  case l:
185
185
  return N(h, h.render, "ForwardRef");
186
186
  case f:
@@ -197,18 +197,18 @@ function va() {
197
197
  }
198
198
  return null;
199
199
  }
200
- var rt = Object.assign, j = 0, tt, Lt, Ft, pi, mi, gi, yi;
201
- function vi() {
200
+ var rt = Object.assign, j = 0, tt, Lt, Ft, mi, gi, yi, vi;
201
+ function Pi() {
202
202
  }
203
- vi.__reactDisabledLog = !0;
204
- function ko() {
203
+ Pi.__reactDisabledLog = !0;
204
+ function Lo() {
205
205
  {
206
206
  if (j === 0) {
207
- tt = console.log, Lt = console.info, Ft = console.warn, pi = console.error, mi = console.group, gi = console.groupCollapsed, yi = console.groupEnd;
207
+ tt = console.log, Lt = console.info, Ft = console.warn, mi = console.error, gi = console.group, yi = console.groupCollapsed, vi = console.groupEnd;
208
208
  var h = {
209
209
  configurable: !0,
210
210
  enumerable: !0,
211
- value: vi,
211
+ value: Pi,
212
212
  writable: !0
213
213
  };
214
214
  Object.defineProperties(console, {
@@ -224,7 +224,7 @@ function va() {
224
224
  j++;
225
225
  }
226
226
  }
227
- function Lo() {
227
+ function Fo() {
228
228
  {
229
229
  if (j--, j === 0) {
230
230
  var h = {
@@ -243,24 +243,24 @@ function va() {
243
243
  value: Ft
244
244
  }),
245
245
  error: rt({}, h, {
246
- value: pi
246
+ value: mi
247
247
  }),
248
248
  group: rt({}, h, {
249
- value: mi
249
+ value: gi
250
250
  }),
251
251
  groupCollapsed: rt({}, h, {
252
- value: gi
252
+ value: yi
253
253
  }),
254
254
  groupEnd: rt({}, h, {
255
- value: yi
255
+ value: vi
256
256
  })
257
257
  });
258
258
  }
259
259
  j < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
260
260
  }
261
261
  }
262
- var Ye = T.ReactCurrentDispatcher, Xe;
263
- function ve(h, g, x) {
262
+ var Ye = x.ReactCurrentDispatcher, Xe;
263
+ function ve(h, g, T) {
264
264
  {
265
265
  if (Xe === void 0)
266
266
  try {
@@ -275,23 +275,23 @@ function va() {
275
275
  }
276
276
  var qe = !1, Pe;
277
277
  {
278
- var Fo = typeof WeakMap == "function" ? WeakMap : Map;
279
- Pe = new Fo();
278
+ var Oo = typeof WeakMap == "function" ? WeakMap : Map;
279
+ Pe = new Oo();
280
280
  }
281
- function Pi(h, g) {
281
+ function xi(h, g) {
282
282
  if (!h || qe)
283
283
  return "";
284
284
  {
285
- var x = Pe.get(h);
286
- if (x !== void 0)
287
- return x;
285
+ var T = Pe.get(h);
286
+ if (T !== void 0)
287
+ return T;
288
288
  }
289
289
  var C;
290
290
  qe = !0;
291
291
  var D = Error.prepareStackTrace;
292
292
  Error.prepareStackTrace = void 0;
293
293
  var k;
294
- k = Ye.current, Ye.current = null, ko();
294
+ k = Ye.current, Ye.current = null, Lo();
295
295
  try {
296
296
  if (g) {
297
297
  var V = function() {
@@ -344,23 +344,23 @@ function va() {
344
344
  }
345
345
  }
346
346
  } finally {
347
- qe = !1, Ye.current = k, Lo(), Error.prepareStackTrace = D;
347
+ qe = !1, Ye.current = k, Fo(), Error.prepareStackTrace = D;
348
348
  }
349
349
  var jt = h ? h.displayName || h.name : "", St = jt ? ve(jt) : "";
350
350
  return typeof h == "function" && Pe.set(h, St), St;
351
351
  }
352
- function Oo(h, g, x) {
353
- return Pi(h, !1);
352
+ function jo(h, g, T) {
353
+ return xi(h, !1);
354
354
  }
355
- function jo(h) {
355
+ function _o(h) {
356
356
  var g = h.prototype;
357
357
  return !!(g && g.isReactComponent);
358
358
  }
359
- function Te(h, g, x) {
359
+ function xe(h, g, T) {
360
360
  if (h == null)
361
361
  return "";
362
362
  if (typeof h == "function")
363
- return Pi(h, jo(h));
363
+ return xi(h, _o(h));
364
364
  if (typeof h == "string")
365
365
  return ve(h);
366
366
  switch (h) {
@@ -372,28 +372,28 @@ function va() {
372
372
  if (typeof h == "object")
373
373
  switch (h.$$typeof) {
374
374
  case l:
375
- return Oo(h.render);
375
+ return jo(h.render);
376
376
  case f:
377
- return Te(h.type, g, x);
377
+ return xe(h.type, g, T);
378
378
  case d: {
379
379
  var C = h, D = C._payload, k = C._init;
380
380
  try {
381
- return Te(k(D), g, x);
381
+ return xe(k(D), g, T);
382
382
  } catch {
383
383
  }
384
384
  }
385
385
  }
386
386
  return "";
387
387
  }
388
- var zt = Object.prototype.hasOwnProperty, Ti = {}, xi = T.ReactDebugCurrentFrame;
389
- function xe(h) {
388
+ var zt = Object.prototype.hasOwnProperty, Ti = {}, bi = x.ReactDebugCurrentFrame;
389
+ function Te(h) {
390
390
  if (h) {
391
- var g = h._owner, x = Te(h.type, h._source, g ? g.type : null);
392
- xi.setExtraStackFrame(x);
391
+ var g = h._owner, T = xe(h.type, h._source, g ? g.type : null);
392
+ bi.setExtraStackFrame(T);
393
393
  } else
394
- xi.setExtraStackFrame(null);
394
+ bi.setExtraStackFrame(null);
395
395
  }
396
- function _o(h, g, x, C, D) {
396
+ function Bo(h, g, T, C, D) {
397
397
  {
398
398
  var k = Function.call.bind(zt);
399
399
  for (var V in h)
@@ -401,49 +401,49 @@ function va() {
401
401
  var R = void 0;
402
402
  try {
403
403
  if (typeof h[V] != "function") {
404
- var X = Error((C || "React class") + ": " + x + " type `" + V + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof h[V] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
404
+ var X = Error((C || "React class") + ": " + T + " type `" + V + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof h[V] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
405
405
  throw X.name = "Invariant Violation", X;
406
406
  }
407
- R = h[V](g, V, C, x, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
407
+ R = h[V](g, V, C, T, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
408
408
  } catch (_) {
409
409
  R = _;
410
410
  }
411
- R && !(R instanceof Error) && (xe(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).", C || "React class", x, V, typeof R), xe(null)), R instanceof Error && !(R.message in Ti) && (Ti[R.message] = !0, xe(D), y("Failed %s type: %s", x, R.message), xe(null));
411
+ R && !(R instanceof Error) && (Te(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).", C || "React class", T, V, typeof R), Te(null)), R instanceof Error && !(R.message in Ti) && (Ti[R.message] = !0, Te(D), y("Failed %s type: %s", T, R.message), Te(null));
412
412
  }
413
413
  }
414
414
  }
415
- var Bo = Array.isArray;
415
+ var Io = Array.isArray;
416
416
  function Ze(h) {
417
- return Bo(h);
417
+ return Io(h);
418
418
  }
419
- function Io(h) {
419
+ function No(h) {
420
420
  {
421
- var g = typeof Symbol == "function" && Symbol.toStringTag, x = g && h[Symbol.toStringTag] || h.constructor.name || "Object";
422
- return x;
421
+ var g = typeof Symbol == "function" && Symbol.toStringTag, T = g && h[Symbol.toStringTag] || h.constructor.name || "Object";
422
+ return T;
423
423
  }
424
424
  }
425
- function No(h) {
425
+ function Uo(h) {
426
426
  try {
427
- return bi(h), !1;
427
+ return wi(h), !1;
428
428
  } catch {
429
429
  return !0;
430
430
  }
431
431
  }
432
- function bi(h) {
432
+ function wi(h) {
433
433
  return "" + h;
434
434
  }
435
- function wi(h) {
436
- if (No(h))
437
- return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Io(h)), bi(h);
435
+ function Si(h) {
436
+ if (Uo(h))
437
+ return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", No(h)), wi(h);
438
438
  }
439
- var Yt = T.ReactCurrentOwner, Uo = {
439
+ var Yt = x.ReactCurrentOwner, Wo = {
440
440
  key: !0,
441
441
  ref: !0,
442
442
  __self: !0,
443
443
  __source: !0
444
- }, Si, Ci, Je;
444
+ }, Ci, Ai, Je;
445
445
  Je = {};
446
- function Wo(h) {
446
+ function $o(h) {
447
447
  if (zt.call(h, "ref")) {
448
448
  var g = Object.getOwnPropertyDescriptor(h, "ref").get;
449
449
  if (g && g.isReactWarning)
@@ -451,7 +451,7 @@ function va() {
451
451
  }
452
452
  return h.ref !== void 0;
453
453
  }
454
- function $o(h) {
454
+ function Ko(h) {
455
455
  if (zt.call(h, "key")) {
456
456
  var g = Object.getOwnPropertyDescriptor(h, "key").get;
457
457
  if (g && g.isReactWarning)
@@ -459,42 +459,42 @@ function va() {
459
459
  }
460
460
  return h.key !== void 0;
461
461
  }
462
- function Ko(h, g) {
462
+ function Go(h, g) {
463
463
  if (typeof h.ref == "string" && Yt.current && g && Yt.current.stateNode !== g) {
464
- var x = Y(Yt.current.type);
465
- Je[x] || (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', Y(Yt.current.type), h.ref), Je[x] = !0);
464
+ var T = Y(Yt.current.type);
465
+ Je[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', Y(Yt.current.type), h.ref), Je[T] = !0);
466
466
  }
467
467
  }
468
- function Go(h, g) {
468
+ function Ho(h, g) {
469
469
  {
470
- var x = function() {
471
- Si || (Si = !0, y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", g));
470
+ var T = function() {
471
+ Ci || (Ci = !0, y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", g));
472
472
  };
473
- x.isReactWarning = !0, Object.defineProperty(h, "key", {
474
- get: x,
473
+ T.isReactWarning = !0, Object.defineProperty(h, "key", {
474
+ get: T,
475
475
  configurable: !0
476
476
  });
477
477
  }
478
478
  }
479
- function Ho(h, g) {
479
+ function zo(h, g) {
480
480
  {
481
- var x = function() {
482
- Ci || (Ci = !0, y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", g));
481
+ var T = function() {
482
+ Ai || (Ai = !0, y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", g));
483
483
  };
484
- x.isReactWarning = !0, Object.defineProperty(h, "ref", {
485
- get: x,
484
+ T.isReactWarning = !0, Object.defineProperty(h, "ref", {
485
+ get: T,
486
486
  configurable: !0
487
487
  });
488
488
  }
489
489
  }
490
- var zo = function(h, g, x, C, D, k, V) {
490
+ var Yo = function(h, g, T, C, D, k, V) {
491
491
  var R = {
492
492
  // This tag allows us to uniquely identify this as a React Element
493
493
  $$typeof: e,
494
494
  // Built-in properties that belong on the element
495
495
  type: h,
496
496
  key: g,
497
- ref: x,
497
+ ref: T,
498
498
  props: V,
499
499
  // Record the component responsible for creating this element.
500
500
  _owner: k
@@ -516,12 +516,12 @@ function va() {
516
516
  value: D
517
517
  }), Object.freeze && (Object.freeze(R.props), Object.freeze(R)), R;
518
518
  };
519
- function Yo(h, g, x, C, D) {
519
+ function Xo(h, g, T, C, D) {
520
520
  {
521
521
  var k, V = {}, R = null, X = null;
522
- x !== void 0 && (wi(x), R = "" + x), $o(g) && (wi(g.key), R = "" + g.key), Wo(g) && (X = g.ref, Ko(g, D));
522
+ T !== void 0 && (Si(T), R = "" + T), Ko(g) && (Si(g.key), R = "" + g.key), $o(g) && (X = g.ref, Go(g, D));
523
523
  for (k in g)
524
- zt.call(g, k) && !Uo.hasOwnProperty(k) && (V[k] = g[k]);
524
+ zt.call(g, k) && !Wo.hasOwnProperty(k) && (V[k] = g[k]);
525
525
  if (h && h.defaultProps) {
526
526
  var _ = h.defaultProps;
527
527
  for (k in _)
@@ -529,25 +529,25 @@ function va() {
529
529
  }
530
530
  if (R || X) {
531
531
  var I = typeof h == "function" ? h.displayName || h.name || "Unknown" : h;
532
- R && Go(V, I), X && Ho(V, I);
532
+ R && Ho(V, I), X && zo(V, I);
533
533
  }
534
- return zo(h, R, X, D, C, Yt.current, V);
534
+ return Yo(h, R, X, D, C, Yt.current, V);
535
535
  }
536
536
  }
537
- var Qe = T.ReactCurrentOwner, Ai = T.ReactDebugCurrentFrame;
537
+ var Qe = x.ReactCurrentOwner, Ei = x.ReactDebugCurrentFrame;
538
538
  function Ot(h) {
539
539
  if (h) {
540
- var g = h._owner, x = Te(h.type, h._source, g ? g.type : null);
541
- Ai.setExtraStackFrame(x);
540
+ var g = h._owner, T = xe(h.type, h._source, g ? g.type : null);
541
+ Ei.setExtraStackFrame(T);
542
542
  } else
543
- Ai.setExtraStackFrame(null);
543
+ Ei.setExtraStackFrame(null);
544
544
  }
545
545
  var tn;
546
546
  tn = !1;
547
547
  function en(h) {
548
548
  return typeof h == "object" && h !== null && h.$$typeof === e;
549
549
  }
550
- function Ei() {
550
+ function Ri() {
551
551
  {
552
552
  if (Qe.current) {
553
553
  var h = Y(Qe.current.type);
@@ -559,51 +559,51 @@ Check the render method of \`` + h + "`.";
559
559
  return "";
560
560
  }
561
561
  }
562
- function Xo(h) {
562
+ function qo(h) {
563
563
  {
564
564
  if (h !== void 0) {
565
- var g = h.fileName.replace(/^.*[\\\/]/, ""), x = h.lineNumber;
565
+ var g = h.fileName.replace(/^.*[\\\/]/, ""), T = h.lineNumber;
566
566
  return `
567
567
 
568
- Check your code at ` + g + ":" + x + ".";
568
+ Check your code at ` + g + ":" + T + ".";
569
569
  }
570
570
  return "";
571
571
  }
572
572
  }
573
- var Ri = {};
574
- function qo(h) {
573
+ var Vi = {};
574
+ function Zo(h) {
575
575
  {
576
- var g = Ei();
576
+ var g = Ri();
577
577
  if (!g) {
578
- var x = typeof h == "string" ? h : h.displayName || h.name;
579
- x && (g = `
578
+ var T = typeof h == "string" ? h : h.displayName || h.name;
579
+ T && (g = `
580
580
 
581
- Check the top-level render call using <` + x + ">.");
581
+ Check the top-level render call using <` + T + ">.");
582
582
  }
583
583
  return g;
584
584
  }
585
585
  }
586
- function Vi(h, g) {
586
+ function Di(h, g) {
587
587
  {
588
588
  if (!h._store || h._store.validated || h.key != null)
589
589
  return;
590
590
  h._store.validated = !0;
591
- var x = qo(g);
592
- if (Ri[x])
591
+ var T = Zo(g);
592
+ if (Vi[T])
593
593
  return;
594
- Ri[x] = !0;
594
+ Vi[T] = !0;
595
595
  var C = "";
596
- h && h._owner && h._owner !== Qe.current && (C = " It was passed a child from " + Y(h._owner.type) + "."), Ot(h), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', x, C), Ot(null);
596
+ h && h._owner && h._owner !== Qe.current && (C = " It was passed a child from " + Y(h._owner.type) + "."), Ot(h), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', T, C), Ot(null);
597
597
  }
598
598
  }
599
- function Di(h, g) {
599
+ function Mi(h, g) {
600
600
  {
601
601
  if (typeof h != "object")
602
602
  return;
603
603
  if (Ze(h))
604
- for (var x = 0; x < h.length; x++) {
605
- var C = h[x];
606
- en(C) && Vi(C, g);
604
+ for (var T = 0; T < h.length; T++) {
605
+ var C = h[T];
606
+ en(C) && Di(C, g);
607
607
  }
608
608
  else if (en(h))
609
609
  h._store && (h._store.validated = !0);
@@ -611,27 +611,27 @@ Check the top-level render call using <` + x + ">.");
611
611
  var D = b(h);
612
612
  if (typeof D == "function" && D !== h.entries)
613
613
  for (var k = D.call(h), V; !(V = k.next()).done; )
614
- en(V.value) && Vi(V.value, g);
614
+ en(V.value) && Di(V.value, g);
615
615
  }
616
616
  }
617
617
  }
618
- function Zo(h) {
618
+ function Jo(h) {
619
619
  {
620
620
  var g = h.type;
621
621
  if (g == null || typeof g == "string")
622
622
  return;
623
- var x;
623
+ var T;
624
624
  if (typeof g == "function")
625
- x = g.propTypes;
625
+ T = g.propTypes;
626
626
  else if (typeof g == "object" && (g.$$typeof === l || // Note: Memo only checks outer props here.
627
627
  // Inner props are checked in the reconciler.
628
628
  g.$$typeof === f))
629
- x = g.propTypes;
629
+ T = g.propTypes;
630
630
  else
631
631
  return;
632
- if (x) {
632
+ if (T) {
633
633
  var C = Y(g);
634
- _o(x, h.props, "prop", C, h);
634
+ Bo(T, h.props, "prop", C, h);
635
635
  } else if (g.PropTypes !== void 0 && !tn) {
636
636
  tn = !0;
637
637
  var D = Y(g);
@@ -640,10 +640,10 @@ Check the top-level render call using <` + x + ">.");
640
640
  typeof g.getDefaultProps == "function" && !g.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
641
641
  }
642
642
  }
643
- function Jo(h) {
643
+ function Qo(h) {
644
644
  {
645
- for (var g = Object.keys(h.props), x = 0; x < g.length; x++) {
646
- var C = g[x];
645
+ for (var g = Object.keys(h.props), T = 0; T < g.length; T++) {
646
+ var C = g[T];
647
647
  if (C !== "children" && C !== "key") {
648
648
  Ot(h), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", C), Ot(null);
649
649
  break;
@@ -652,19 +652,19 @@ Check the top-level render call using <` + x + ">.");
652
652
  h.ref !== null && (Ot(h), y("Invalid attribute `ref` supplied to `React.Fragment`."), Ot(null));
653
653
  }
654
654
  }
655
- var Mi = {};
656
- function ki(h, g, x, C, D, k) {
655
+ var ki = {};
656
+ function Li(h, g, T, C, D, k) {
657
657
  {
658
658
  var V = G(h);
659
659
  if (!V) {
660
660
  var R = "";
661
661
  (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.");
662
- var X = Xo(D);
663
- X ? R += X : R += Ei();
662
+ var X = qo(D);
663
+ X ? R += X : R += Ri();
664
664
  var _;
665
665
  h === null ? _ = "null" : Ze(h) ? _ = "array" : h !== void 0 && h.$$typeof === e ? (_ = "<" + (Y(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);
666
666
  }
667
- var I = Yo(h, g, x, D, k);
667
+ var I = Xo(h, g, T, D, k);
668
668
  if (I == null)
669
669
  return I;
670
670
  if (V) {
@@ -673,59 +673,59 @@ Check the top-level render call using <` + x + ">.");
673
673
  if (C)
674
674
  if (Ze(et)) {
675
675
  for (var jt = 0; jt < et.length; jt++)
676
- Di(et[jt], h);
676
+ Mi(et[jt], h);
677
677
  Object.freeze && Object.freeze(et);
678
678
  } else
679
679
  y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
680
680
  else
681
- Di(et, h);
681
+ Mi(et, h);
682
682
  }
683
683
  if (zt.call(g, "key")) {
684
- var St = Y(h), Z = Object.keys(g).filter(function(sa) {
685
- return sa !== "key";
684
+ var St = Y(h), Z = Object.keys(g).filter(function(ra) {
685
+ return ra !== "key";
686
686
  }), nn = Z.length > 0 ? "{key: someKey, " + Z.join(": ..., ") + ": ...}" : "{key: someKey}";
687
- if (!Mi[St + nn]) {
688
- var ia = Z.length > 0 ? "{" + Z.join(": ..., ") + ": ...}" : "{}";
687
+ if (!ki[St + nn]) {
688
+ var sa = Z.length > 0 ? "{" + Z.join(": ..., ") + ": ...}" : "{}";
689
689
  y(`A props object containing a "key" prop is being spread into JSX:
690
690
  let props = %s;
691
691
  <%s {...props} />
692
692
  React keys must be passed directly to JSX without using spread:
693
693
  let props = %s;
694
- <%s key={someKey} {...props} />`, nn, St, ia, St), Mi[St + nn] = !0;
694
+ <%s key={someKey} {...props} />`, nn, St, sa, St), ki[St + nn] = !0;
695
695
  }
696
696
  }
697
- return h === i ? Jo(I) : Zo(I), I;
697
+ return h === i ? Qo(I) : Jo(I), I;
698
698
  }
699
699
  }
700
- function Qo(h, g, x) {
701
- return ki(h, g, x, !0);
700
+ function ta(h, g, T) {
701
+ return Li(h, g, T, !0);
702
702
  }
703
- function ta(h, g, x) {
704
- return ki(h, g, x, !1);
703
+ function ea(h, g, T) {
704
+ return Li(h, g, T, !1);
705
705
  }
706
- var ea = ta, na = Qo;
707
- qt.Fragment = i, qt.jsx = ea, qt.jsxs = na;
706
+ var na = ea, ia = ta;
707
+ qt.Fragment = i, qt.jsx = na, qt.jsxs = ia;
708
708
  }()), qt;
709
709
  }
710
- process.env.NODE_ENV === "production" ? Pn.exports = ya() : Pn.exports = va();
710
+ process.env.NODE_ENV === "production" ? Pn.exports = va() : Pn.exports = Pa();
711
711
  var L = Pn.exports, At = /* @__PURE__ */ ((t) => (t.Escape = "Escape", t.Enter = "Enter", t.Space = "Space", t.Tab = "Tab", t.ShiftAndTab = "Shift+Tab", t.ArrowUp = "ArrowUp", t.ArrowDown = "ArrowDown", t.ArrowLeft = "ArrowLeft", t.ArrowRight = "ArrowRight", t))(At || {}), Ee = /* @__PURE__ */ ((t) => (t.Input = "INPUT", t.Textarea = "TEXTAREA", t.Select = "SELECT", t.Button = "BUTTON", t))(Ee || {});
712
- const nr = [
712
+ const ir = [
713
713
  Ee.Input,
714
714
  Ee.Textarea,
715
715
  Ee.Select
716
- ], Pa = (t) => (t == null ? void 0 : t.split("+").map((e) => e.trim().toLowerCase())) ?? [], Ta = (t) => ({
717
- formFieldTags: (t == null ? void 0 : t.formFieldTags) ?? nr,
716
+ ], xa = (t) => (t == null ? void 0 : t.split("+").map((e) => e.trim().toLowerCase())) ?? [], Ta = (t) => ({
717
+ formFieldTags: (t == null ? void 0 : t.formFieldTags) ?? ir,
718
718
  ignoreFormField: t == null ? void 0 : t.ignoreFormField,
719
719
  preventDefault: t == null ? void 0 : t.preventDefault,
720
720
  stopPropagation: t == null ? void 0 : t.stopPropagation
721
- }), xa = (t, e, n) => (i) => {
721
+ }), ba = (t, e, n) => (i) => {
722
722
  const s = Array.isArray(t) ? t : [t];
723
723
  for (const o of s) {
724
- const r = Ta(n), a = Pa(o), l = i.key.toLowerCase(), c = i.code.toLowerCase(), u = document.activeElement;
724
+ const r = Ta(n), a = xa(o), l = i.key.toLowerCase(), c = i.code.toLowerCase(), u = document.activeElement;
725
725
  if (i.repeat)
726
726
  continue;
727
727
  const f = a.includes("ctrl"), d = a.includes("cmd"), p = a.includes("shift"), m = f === i.ctrlKey, P = d === i.metaKey, b = p === i.shiftKey;
728
- if (!(!(a.includes(l) || a.includes(c)) || !m || !P || !b) && !(!r.ignoreFormField && u && nr.includes(u.tagName)) && (r.preventDefault && i.preventDefault(), r.stopPropagation && i.stopPropagation(), !!e)) {
728
+ if (!(!(a.includes(l) || a.includes(c)) || !m || !P || !b) && !(!r.ignoreFormField && u && ir.includes(u.tagName)) && (r.preventDefault && i.preventDefault(), r.stopPropagation && i.stopPropagation(), !!e)) {
729
729
  e(i);
730
730
  break;
731
731
  }
@@ -739,7 +739,7 @@ const nr = [
739
739
  formFieldTags: o
740
740
  }) => {
741
741
  const r = J(!1), a = st((u) => {
742
- !r.current && t && xa(e, t, { stopPropagation: n, preventDefault: i, ignoreFormField: s, formFieldTags: o })(u);
742
+ !r.current && t && ba(e, t, { stopPropagation: n, preventDefault: i, ignoreFormField: s, formFieldTags: o })(u);
743
743
  }, [e, t]), l = st(() => {
744
744
  r.current = !0;
745
745
  }, []), c = st(() => {
@@ -749,10 +749,10 @@ const nr = [
749
749
  document.removeEventListener("keydown", a), document.removeEventListener("compositionstart", l), document.removeEventListener("compositionend", c);
750
750
  }), [a]), null;
751
751
  };
752
- var ba = Object.defineProperty, wa = (t, e, n) => e in t ? ba(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, Tn = (t, e, n) => (wa(t, typeof e != "symbol" ? e + "" : e, n), n);
753
- class ir extends jn.Component {
752
+ var wa = Object.defineProperty, Sa = (t, e, n) => e in t ? wa(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, xn = (t, e, n) => (Sa(t, typeof e != "symbol" ? e + "" : e, n), n);
753
+ class sr extends jn.Component {
754
754
  constructor(e) {
755
- super(e), Tn(this, "_el"), Tn(this, "renderPortal", () => ua.createPortal(
755
+ super(e), xn(this, "_el"), xn(this, "renderPortal", () => fa.createPortal(
756
756
  this.props.children,
757
757
  this._el
758
758
  ));
@@ -774,18 +774,18 @@ class ir extends jn.Component {
774
774
  return this.renderPortal();
775
775
  }
776
776
  }
777
- Tn(ir, "defaultProps", {
777
+ xn(sr, "defaultProps", {
778
778
  containerSelector: () => document.body
779
779
  });
780
780
  const In = kt({
781
781
  transformPagePoint: (t) => t,
782
782
  isStatic: !1,
783
783
  reducedMotion: "never"
784
- }), Ie = kt({}), Ne = kt(null), Nn = typeof window < "u", sr = Nn ? ra : ot, rr = kt({ strict: !1 }), Ue = (t) => t.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), Sa = "framerAppearId", or = "data-" + Ue(Sa), Ca = {
784
+ }), Ie = kt({}), Ne = kt(null), Nn = typeof window < "u", rr = Nn ? oa : ot, or = kt({ strict: !1 }), Ue = (t) => t.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), Ca = "framerAppearId", ar = "data-" + Ue(Ca), Aa = {
785
785
  skipAnimations: !1,
786
786
  useManualTiming: !1
787
787
  };
788
- function Aa(t) {
788
+ function Ea(t) {
789
789
  let e = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), i = !1, s = !1;
790
790
  const o = /* @__PURE__ */ new WeakSet();
791
791
  let r = {
@@ -836,35 +836,35 @@ const be = [
836
836
  // Write
837
837
  "postRender"
838
838
  // Compute
839
- ], Ea = 40;
840
- function ar(t, e) {
839
+ ], Ra = 40;
840
+ function lr(t, e) {
841
841
  let n = !1, i = !0;
842
842
  const s = {
843
843
  delta: 0,
844
844
  timestamp: 0,
845
845
  isProcessing: !1
846
- }, o = () => n = !0, r = be.reduce((T, y) => (T[y] = Aa(o), T), {}), { read: a, resolveKeyframes: l, update: c, preRender: u, render: f, postRender: d } = r, p = () => {
847
- const T = performance.now();
848
- n = !1, s.delta = i ? 1e3 / 60 : Math.max(Math.min(T - s.timestamp, Ea), 1), s.timestamp = T, 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));
846
+ }, o = () => n = !0, r = be.reduce((x, y) => (x[y] = Ea(o), x), {}), { read: a, resolveKeyframes: l, update: c, preRender: u, render: f, postRender: d } = r, p = () => {
847
+ const x = performance.now();
848
+ n = !1, s.delta = i ? 1e3 / 60 : Math.max(Math.min(x - s.timestamp, Ra), 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));
849
849
  }, m = () => {
850
850
  n = !0, i = !0, s.isProcessing || t(p);
851
851
  };
852
- return { schedule: be.reduce((T, y) => {
852
+ return { schedule: be.reduce((x, y) => {
853
853
  const v = r[y];
854
- return T[y] = (w, A = !1, F = !1) => (n || m(), v.schedule(w, A, F)), T;
855
- }, {}), cancel: (T) => {
854
+ return x[y] = (w, A = !1, F = !1) => (n || m(), v.schedule(w, A, F)), x;
855
+ }, {}), cancel: (x) => {
856
856
  for (let y = 0; y < be.length; y++)
857
- r[be[y]].cancel(T);
857
+ r[be[y]].cancel(x);
858
858
  }, state: s, steps: r };
859
859
  }
860
- const { schedule: Un, cancel: Ph } = ar(queueMicrotask, !1);
860
+ const { schedule: Un, cancel: Ph } = lr(queueMicrotask, !1);
861
861
  function Bt(t) {
862
862
  return t && typeof t == "object" && Object.prototype.hasOwnProperty.call(t, "current");
863
863
  }
864
- const lr = kt({});
865
- let Oi = !1;
866
- function Ra(t, e, n, i, s) {
867
- const { visualElement: o } = $(Ie), r = $(rr), a = $(Ne), l = $(In).reducedMotion, c = J();
864
+ const cr = kt({});
865
+ let ji = !1;
866
+ function Va(t, e, n, i, s) {
867
+ const { visualElement: o } = $(Ie), r = $(or), a = $(Ne), l = $(In).reducedMotion, c = J();
868
868
  i = i || r.renderer, !c.current && i && (c.current = i(t, {
869
869
  visualState: e,
870
870
  parent: o,
@@ -873,23 +873,23 @@ function Ra(t, e, n, i, s) {
873
873
  blockInitialAnimation: a ? a.initial === !1 : !1,
874
874
  reducedMotionConfig: l
875
875
  }));
876
- const u = c.current, f = $(lr);
877
- u && !u.projection && s && (u.type === "html" || u.type === "svg") && Da(c.current, n, s, f), tr(() => {
876
+ const u = c.current, f = $(cr);
877
+ u && !u.projection && s && (u.type === "html" || u.type === "svg") && Ma(c.current, n, s, f), er(() => {
878
878
  u && u.update(n, a);
879
879
  });
880
- const d = J(!!(n[or] && !window.HandoffComplete));
881
- return sr(() => {
880
+ const d = J(!!(n[ar] && !window.HandoffComplete));
881
+ return rr(() => {
882
882
  u && (u.updateFeatures(), Un.render(u.render), d.current && u.animationState && u.animationState.animateChanges());
883
883
  }), ot(() => {
884
- u && (!d.current && u.animationState && u.animationState.animateChanges(), d.current && (d.current = !1, Oi || (Oi = !0, queueMicrotask(Va))));
884
+ u && (!d.current && u.animationState && u.animationState.animateChanges(), d.current && (d.current = !1, ji || (ji = !0, queueMicrotask(Da))));
885
885
  }), u;
886
886
  }
887
- function Va() {
887
+ function Da() {
888
888
  window.HandoffComplete = !0;
889
889
  }
890
- function Da(t, e, n, i) {
890
+ function Ma(t, e, n, i) {
891
891
  const { layoutId: s, layout: o, drag: r, dragConstraints: a, layoutScroll: l, layoutRoot: c } = e;
892
- t.projection = new n(t.latestValues, e["data-framer-portal-id"] ? void 0 : cr(t.parent)), t.projection.setOptions({
892
+ t.projection = new n(t.latestValues, e["data-framer-portal-id"] ? void 0 : ur(t.parent)), t.projection.setOptions({
893
893
  layoutId: s,
894
894
  layout: o,
895
895
  alwaysMeasureLayout: !!r || a && Bt(a),
@@ -907,11 +907,11 @@ function Da(t, e, n, i) {
907
907
  layoutRoot: c
908
908
  });
909
909
  }
910
- function cr(t) {
910
+ function ur(t) {
911
911
  if (t)
912
- return t.options.allowProjection !== !1 ? t.projection : cr(t.parent);
912
+ return t.options.allowProjection !== !1 ? t.projection : ur(t.parent);
913
913
  }
914
- function Ma(t, e, n) {
914
+ function ka(t, e, n) {
915
915
  return st(
916
916
  (i) => {
917
917
  i && t.mount && t.mount(i), e && (i ? e.mount(i) : e.unmount()), n && (typeof n == "function" ? n(i) : Bt(n) && (n.current = i));
@@ -942,10 +942,10 @@ const Wn = [
942
942
  function We(t) {
943
943
  return ae(t.animate) || $n.some((e) => oe(t[e]));
944
944
  }
945
- function ur(t) {
945
+ function fr(t) {
946
946
  return !!(We(t) || t.variants);
947
947
  }
948
- function ka(t, e) {
948
+ function La(t, e) {
949
949
  if (We(t)) {
950
950
  const { initial: n, animate: i } = t;
951
951
  return {
@@ -955,14 +955,14 @@ function ka(t, e) {
955
955
  }
956
956
  return t.inherit !== !1 ? e : {};
957
957
  }
958
- function La(t) {
959
- const { initial: e, animate: n } = ka(t, $(Ie));
960
- return Mt(() => ({ initial: e, animate: n }), [ji(e), ji(n)]);
958
+ function Fa(t) {
959
+ const { initial: e, animate: n } = La(t, $(Ie));
960
+ return Mt(() => ({ initial: e, animate: n }), [_i(e), _i(n)]);
961
961
  }
962
- function ji(t) {
962
+ function _i(t) {
963
963
  return Array.isArray(t) ? t.join(" ") : t;
964
964
  }
965
- const _i = {
965
+ const Bi = {
966
966
  animation: [
967
967
  "animate",
968
968
  "variants",
@@ -982,18 +982,18 @@ const _i = {
982
982
  inView: ["whileInView", "onViewportEnter", "onViewportLeave"],
983
983
  layout: ["layout", "layoutId"]
984
984
  }, $t = {};
985
- for (const t in _i)
985
+ for (const t in Bi)
986
986
  $t[t] = {
987
- isEnabled: (e) => _i[t].some((n) => !!e[n])
987
+ isEnabled: (e) => Bi[t].some((n) => !!e[n])
988
988
  };
989
- function Fa(t) {
989
+ function Oa(t) {
990
990
  for (const e in t)
991
991
  $t[e] = {
992
992
  ...$t[e],
993
993
  ...t[e]
994
994
  };
995
995
  }
996
- const Kn = kt({}), Oa = Symbol.for("motionComponentSymbol"), K = (t) => t;
996
+ const Kn = kt({}), ja = Symbol.for("motionComponentSymbol"), K = (t) => t;
997
997
  let Gt = K, pt = K;
998
998
  process.env.NODE_ENV !== "production" && (Gt = (t, e) => {
999
999
  !t && typeof console < "u" && console.warn(e);
@@ -1001,37 +1001,37 @@ process.env.NODE_ENV !== "production" && (Gt = (t, e) => {
1001
1001
  if (!t)
1002
1002
  throw new Error(e);
1003
1003
  });
1004
- function ja({ preloadedFeatures: t, createVisualElement: e, useRender: n, useVisualState: i, Component: s }) {
1005
- t && Fa(t);
1004
+ function _a({ preloadedFeatures: t, createVisualElement: e, useRender: n, useVisualState: i, Component: s }) {
1005
+ t && Oa(t);
1006
1006
  function o(a, l) {
1007
1007
  let c;
1008
1008
  const u = {
1009
1009
  ...$(In),
1010
1010
  ...a,
1011
- layoutId: _a(a)
1012
- }, { isStatic: f } = u, d = La(a), p = i(a, f);
1011
+ layoutId: Ba(a)
1012
+ }, { isStatic: f } = u, d = Fa(a), p = i(a, f);
1013
1013
  if (!f && Nn) {
1014
- Ba(u, t);
1015
- const m = Ia(u);
1016
- c = m.MeasureLayout, d.visualElement = Ra(s, p, u, e, m.ProjectionNode);
1014
+ Ia(u, t);
1015
+ const m = Na(u);
1016
+ c = m.MeasureLayout, d.visualElement = Va(s, p, u, e, m.ProjectionNode);
1017
1017
  }
1018
- return L.jsxs(Ie.Provider, { value: d, children: [c && d.visualElement ? L.jsx(c, { visualElement: d.visualElement, ...u }) : null, n(s, a, Ma(p, d.visualElement, l), p, f, d.visualElement)] });
1018
+ return L.jsxs(Ie.Provider, { value: d, children: [c && d.visualElement ? L.jsx(c, { visualElement: d.visualElement, ...u }) : null, n(s, a, ka(p, d.visualElement, l), p, f, d.visualElement)] });
1019
1019
  }
1020
1020
  const r = ke(o);
1021
- return r[Oa] = s, r;
1021
+ return r[ja] = s, r;
1022
1022
  }
1023
- function _a({ layoutId: t }) {
1023
+ function Ba({ layoutId: t }) {
1024
1024
  const e = $(Kn).id;
1025
1025
  return e && t !== void 0 ? e + "-" + t : t;
1026
1026
  }
1027
- function Ba(t, e) {
1028
- const n = $(rr).strict;
1027
+ function Ia(t, e) {
1028
+ const n = $(or).strict;
1029
1029
  if (process.env.NODE_ENV !== "production" && e && n) {
1030
1030
  const i = "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";
1031
1031
  t.ignoreStrict ? Gt(!1, i) : pt(!1, i);
1032
1032
  }
1033
1033
  }
1034
- function Ia(t) {
1034
+ function Na(t) {
1035
1035
  const { drag: e, layout: n } = $t;
1036
1036
  if (!e && !n)
1037
1037
  return {};
@@ -1041,9 +1041,9 @@ function Ia(t) {
1041
1041
  ProjectionNode: i.ProjectionNode
1042
1042
  };
1043
1043
  }
1044
- function Na(t) {
1044
+ function Ua(t) {
1045
1045
  function e(i, s = {}) {
1046
- return ja(t(i, s));
1046
+ return _a(t(i, s));
1047
1047
  }
1048
1048
  if (typeof Proxy > "u")
1049
1049
  return e;
@@ -1057,7 +1057,7 @@ function Na(t) {
1057
1057
  get: (i, s) => (n.has(s) || n.set(s, e(s)), n.get(s))
1058
1058
  });
1059
1059
  }
1060
- const Ua = [
1060
+ const Wa = [
1061
1061
  "animate",
1062
1062
  "circle",
1063
1063
  "defs",
@@ -1097,7 +1097,7 @@ function Gn(t) {
1097
1097
  /**
1098
1098
  * If it's in our list of lowercase SVG tags, it's an SVG component
1099
1099
  */
1100
- !!(Ua.indexOf(t) > -1 || /**
1100
+ !!(Wa.indexOf(t) > -1 || /**
1101
1101
  * If it contains a capital letter, it's an SVG component
1102
1102
  */
1103
1103
  /[A-Z]/u.test(t))
@@ -1105,7 +1105,7 @@ function Gn(t) {
1105
1105
  );
1106
1106
  }
1107
1107
  const Le = {};
1108
- function Wa(t) {
1108
+ function $a(t) {
1109
1109
  Object.assign(Le, t);
1110
1110
  }
1111
1111
  const pe = [
@@ -1127,55 +1127,38 @@ const pe = [
1127
1127
  "skewX",
1128
1128
  "skewY"
1129
1129
  ], bt = new Set(pe);
1130
- function fr(t, { layout: e, layoutId: n }) {
1130
+ function hr(t, { layout: e, layoutId: n }) {
1131
1131
  return bt.has(t) || t.startsWith("origin") || (e || n !== void 0) && (!!Le[t] || t === "opacity");
1132
1132
  }
1133
- const z = (t) => !!(t && t.getVelocity), $a = {
1134
- x: "translateX",
1135
- y: "translateY",
1136
- z: "translateZ",
1137
- transformPerspective: "perspective"
1138
- }, Ka = pe.length;
1139
- function Ga(t, e, n) {
1140
- let i = "";
1141
- for (let s = 0; s < Ka; s++) {
1142
- const o = pe[s];
1143
- if (t[o] !== void 0) {
1144
- const r = $a[o] || o;
1145
- i += `${r}(${t[o]}) `;
1146
- }
1147
- }
1148
- return i = i.trim(), n ? i = n(t, e ? "" : i) : e && (i = "none"), i;
1149
- }
1150
- const hr = (t) => (e) => typeof e == "string" && e.startsWith(t), dr = hr("--"), Ha = hr("var(--"), Hn = (t) => Ha(t) ? za.test(t.split("/*")[0].trim()) : !1, za = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu, Ya = (t, e) => e && typeof t == "number" ? e.transform(t) : t, Tt = (t, e, n) => n > e ? e : n < t ? t : n, Ht = {
1133
+ const z = (t) => !!(t && t.getVelocity), dr = (t, e) => e && typeof t == "number" ? e.transform(t) : t, xt = (t, e, n) => n > e ? e : n < t ? t : n, Ht = {
1151
1134
  test: (t) => typeof t == "number",
1152
1135
  parse: parseFloat,
1153
1136
  transform: (t) => t
1154
1137
  }, ee = {
1155
1138
  ...Ht,
1156
- transform: (t) => Tt(0, 1, t)
1139
+ transform: (t) => xt(0, 1, t)
1157
1140
  }, we = {
1158
1141
  ...Ht,
1159
1142
  default: 1
1160
- }, ne = (t) => Math.round(t * 1e5) / 1e5, zn = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu, Xa = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu, qa = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;
1143
+ }, ne = (t) => Math.round(t * 1e5) / 1e5, Hn = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu, Ka = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu, Ga = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;
1161
1144
  function me(t) {
1162
1145
  return typeof t == "string";
1163
1146
  }
1164
- function Za(t) {
1147
+ function Ha(t) {
1165
1148
  return t == null;
1166
1149
  }
1167
1150
  const ge = (t) => ({
1168
1151
  test: (e) => me(e) && e.endsWith(t) && e.split(" ").length === 1,
1169
1152
  parse: parseFloat,
1170
1153
  transform: (e) => `${e}${t}`
1171
- }), vt = ge("deg"), at = ge("%"), S = ge("px"), Ja = ge("vh"), Qa = ge("vw"), Bi = {
1154
+ }), vt = ge("deg"), at = ge("%"), S = ge("px"), za = ge("vh"), Ya = ge("vw"), Ii = {
1172
1155
  ...at,
1173
1156
  parse: (t) => at.parse(t) / 100,
1174
1157
  transform: (t) => at.transform(t * 100)
1175
- }, Ii = {
1158
+ }, Ni = {
1176
1159
  ...Ht,
1177
1160
  transform: Math.round
1178
- }, pr = {
1161
+ }, zn = {
1179
1162
  // Border props
1180
1163
  borderWidth: S,
1181
1164
  borderTopWidth: S,
@@ -1231,59 +1214,83 @@ const ge = (t) => ({
1231
1214
  perspective: S,
1232
1215
  transformPerspective: S,
1233
1216
  opacity: ee,
1234
- originX: Bi,
1235
- originY: Bi,
1217
+ originX: Ii,
1218
+ originY: Ii,
1236
1219
  originZ: S,
1237
1220
  // Misc
1238
- zIndex: Ii,
1221
+ zIndex: Ni,
1239
1222
  backgroundPositionX: S,
1240
1223
  backgroundPositionY: S,
1241
1224
  // SVG
1242
1225
  fillOpacity: ee,
1243
1226
  strokeOpacity: ee,
1244
- numOctaves: Ii
1245
- };
1246
- function Yn(t, e, n) {
1247
- const { style: i, vars: s, transform: o, transformOrigin: r } = t;
1248
- let a = !1, l = !1, c = !0;
1249
- for (const u in e) {
1250
- const f = e[u];
1251
- if (dr(u)) {
1252
- s[u] = f;
1227
+ numOctaves: Ni
1228
+ }, Xa = {
1229
+ x: "translateX",
1230
+ y: "translateY",
1231
+ z: "translateZ",
1232
+ transformPerspective: "perspective"
1233
+ }, qa = pe.length;
1234
+ function Za(t, e, n) {
1235
+ let i = "", s = !0;
1236
+ for (let o = 0; o < qa; o++) {
1237
+ const r = pe[o], a = t[r];
1238
+ if (a === void 0)
1253
1239
  continue;
1240
+ let l = !0;
1241
+ if (typeof a == "number" ? l = a === (r.startsWith("scale") ? 1 : 0) : l = parseFloat(a) === 0, !l || n) {
1242
+ const c = dr(a, zn[r]);
1243
+ if (!l) {
1244
+ s = !1;
1245
+ const u = Xa[r] || r;
1246
+ i += `${u}(${c}) `;
1247
+ }
1248
+ n && (e[r] = c);
1249
+ }
1250
+ }
1251
+ return i = i.trim(), n ? i = n(e, s ? "" : i) : s && (i = "none"), i;
1252
+ }
1253
+ const pr = (t) => (e) => typeof e == "string" && e.startsWith(t), mr = pr("--"), Ja = pr("var(--"), Yn = (t) => Ja(t) ? Qa.test(t.split("/*")[0].trim()) : !1, Qa = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
1254
+ function Xn(t, e, n) {
1255
+ const { style: i, vars: s, transformOrigin: o } = t;
1256
+ let r = !1, a = !1;
1257
+ for (const l in e) {
1258
+ const c = e[l];
1259
+ if (bt.has(l)) {
1260
+ r = !0;
1261
+ continue;
1262
+ } else if (mr(l)) {
1263
+ s[l] = c;
1264
+ continue;
1265
+ } else {
1266
+ const u = dr(c, zn[l]);
1267
+ l.startsWith("origin") ? (a = !0, o[l] = u) : i[l] = u;
1254
1268
  }
1255
- const d = pr[u], p = Ya(f, d);
1256
- if (bt.has(u)) {
1257
- if (a = !0, o[u] = p, !c)
1258
- continue;
1259
- f !== (d.default || 0) && (c = !1);
1260
- } else
1261
- u.startsWith("origin") ? (l = !0, r[u] = p) : i[u] = p;
1262
1269
  }
1263
- if (e.transform || (a || n ? i.transform = Ga(t.transform, c, n) : i.transform && (i.transform = "none")), l) {
1264
- const { originX: u = "50%", originY: f = "50%", originZ: d = 0 } = r;
1265
- i.transformOrigin = `${u} ${f} ${d}`;
1270
+ if (e.transform || (r || n ? i.transform = Za(e, t.transform, n) : i.transform && (i.transform = "none")), a) {
1271
+ const { originX: l = "50%", originY: c = "50%", originZ: u = 0 } = o;
1272
+ i.transformOrigin = `${l} ${c} ${u}`;
1266
1273
  }
1267
1274
  }
1268
- const Xn = () => ({
1275
+ const qn = () => ({
1269
1276
  style: {},
1270
1277
  transform: {},
1271
1278
  transformOrigin: {},
1272
1279
  vars: {}
1273
1280
  });
1274
- function mr(t, e, n) {
1281
+ function gr(t, e, n) {
1275
1282
  for (const i in e)
1276
- !z(e[i]) && !fr(i, n) && (t[i] = e[i]);
1283
+ !z(e[i]) && !hr(i, n) && (t[i] = e[i]);
1277
1284
  }
1278
1285
  function tl({ transformTemplate: t }, e) {
1279
1286
  return Mt(() => {
1280
- const n = Xn();
1281
- return Yn(n, e, t), Object.assign({}, n.vars, n.style);
1287
+ const n = qn();
1288
+ return Xn(n, e, t), Object.assign({}, n.vars, n.style);
1282
1289
  }, [e]);
1283
1290
  }
1284
1291
  function el(t, e) {
1285
1292
  const n = t.style || {}, i = {};
1286
- return mr(i, n, t), Object.assign(i, tl(t, e)), i;
1293
+ return gr(i, n, t), Object.assign(i, tl(t, e)), i;
1287
1294
  }
1288
1295
  function nl(t, e) {
1289
1296
  const n = {}, i = el(t, e);
@@ -1324,9 +1331,9 @@ const il = /* @__PURE__ */ new Set([
1324
1331
  function Fe(t) {
1325
1332
  return t.startsWith("while") || t.startsWith("drag") && t !== "draggable" || t.startsWith("layout") || t.startsWith("onTap") || t.startsWith("onPan") || t.startsWith("onLayout") || il.has(t);
1326
1333
  }
1327
- let gr = (t) => !Fe(t);
1334
+ let yr = (t) => !Fe(t);
1328
1335
  function sl(t) {
1329
- t && (gr = (e) => e.startsWith("on") ? !Fe(e) : t(e));
1336
+ t && (yr = (e) => e.startsWith("on") ? !Fe(e) : t(e));
1330
1337
  }
1331
1338
  try {
1332
1339
  sl(require("@emotion/is-prop-valid").default);
@@ -1335,15 +1342,15 @@ try {
1335
1342
  function rl(t, e, n) {
1336
1343
  const i = {};
1337
1344
  for (const s in t)
1338
- s === "values" && typeof t.values == "object" || (gr(s) || n === !0 && Fe(s) || !e && !Fe(s) || // If trying to use native HTML drag events, forward drag listeners
1345
+ s === "values" && typeof t.values == "object" || (yr(s) || n === !0 && Fe(s) || !e && !Fe(s) || // If trying to use native HTML drag events, forward drag listeners
1339
1346
  t.draggable && s.startsWith("onDrag")) && (i[s] = t[s]);
1340
1347
  return i;
1341
1348
  }
1342
- function Ni(t, e, n) {
1349
+ function Ui(t, e, n) {
1343
1350
  return typeof t == "string" ? t : S.transform(e + n * t);
1344
1351
  }
1345
1352
  function ol(t, e, n) {
1346
- const i = Ni(e, t.x, t.width), s = Ni(n, t.y, t.height);
1353
+ const i = Ui(e, t.x, t.width), s = Ui(n, t.y, t.height);
1347
1354
  return `${i} ${s}`;
1348
1355
  }
1349
1356
  const al = {
@@ -1360,7 +1367,7 @@ function cl(t, e, n = 1, i = 0, s = !0) {
1360
1367
  const r = S.transform(e), a = S.transform(n);
1361
1368
  t[o.array] = `${r} ${a}`;
1362
1369
  }
1363
- function qn(t, {
1370
+ function Zn(t, {
1364
1371
  attrX: e,
1365
1372
  attrY: n,
1366
1373
  attrScale: i,
@@ -1372,7 +1379,7 @@ function qn(t, {
1372
1379
  // This is object creation, which we try to avoid per-frame.
1373
1380
  ...c
1374
1381
  }, u, f) {
1375
- if (Yn(t, c, f), u) {
1382
+ if (Xn(t, c, f), u) {
1376
1383
  t.style.viewBox && (t.attrs.viewBox = t.style.viewBox);
1377
1384
  return;
1378
1385
  }
@@ -1380,39 +1387,39 @@ function qn(t, {
1380
1387
  const { attrs: d, style: p, dimensions: m } = t;
1381
1388
  d.transform && (m && (p.transform = d.transform), delete d.transform), m && (s !== void 0 || o !== void 0 || p.transform) && (p.transformOrigin = ol(m, s !== void 0 ? s : 0.5, o !== void 0 ? o : 0.5)), e !== void 0 && (d.x = e), n !== void 0 && (d.y = n), i !== void 0 && (d.scale = i), r !== void 0 && cl(d, r, a, l, !1);
1382
1389
  }
1383
- const yr = () => ({
1384
- ...Xn(),
1390
+ const vr = () => ({
1391
+ ...qn(),
1385
1392
  attrs: {}
1386
- }), Zn = (t) => typeof t == "string" && t.toLowerCase() === "svg";
1393
+ }), Jn = (t) => typeof t == "string" && t.toLowerCase() === "svg";
1387
1394
  function ul(t, e, n, i) {
1388
1395
  const s = Mt(() => {
1389
- const o = yr();
1390
- return qn(o, e, Zn(i), t.transformTemplate), {
1396
+ const o = vr();
1397
+ return Zn(o, e, Jn(i), t.transformTemplate), {
1391
1398
  ...o.attrs,
1392
1399
  style: { ...o.style }
1393
1400
  };
1394
1401
  }, [e]);
1395
1402
  if (t.style) {
1396
1403
  const o = {};
1397
- mr(o, t.style, t), s.style = { ...o, ...s.style };
1404
+ gr(o, t.style, t), s.style = { ...o, ...s.style };
1398
1405
  }
1399
1406
  return s;
1400
1407
  }
1401
1408
  function fl(t = !1) {
1402
1409
  return (n, i, s, { latestValues: o }, r) => {
1403
- const l = (Gn(n) ? ul : nl)(i, o, r, n), c = rl(i, typeof n == "string", t), u = n !== er ? { ...c, ...l, ref: s } : {}, { children: f } = i, d = Mt(() => z(f) ? f.get() : f, [f]);
1404
- return oa(n, {
1410
+ const l = (Gn(n) ? ul : nl)(i, o, r, n), c = rl(i, typeof n == "string", t), u = n !== nr ? { ...c, ...l, ref: s } : {}, { children: f } = i, d = Mt(() => z(f) ? f.get() : f, [f]);
1411
+ return aa(n, {
1405
1412
  ...u,
1406
1413
  children: d
1407
1414
  });
1408
1415
  };
1409
1416
  }
1410
- function vr(t, { style: e, vars: n }, i, s) {
1417
+ function Pr(t, { style: e, vars: n }, i, s) {
1411
1418
  Object.assign(t.style, e, s && s.getProjectionStyles(i));
1412
1419
  for (const o in n)
1413
1420
  t.style.setProperty(o, n[o]);
1414
1421
  }
1415
- const Pr = /* @__PURE__ */ new Set([
1422
+ const xr = /* @__PURE__ */ new Set([
1416
1423
  "baseFrequency",
1417
1424
  "diffuseConstant",
1418
1425
  "kernelMatrix",
@@ -1438,19 +1445,19 @@ const Pr = /* @__PURE__ */ new Set([
1438
1445
  "lengthAdjust"
1439
1446
  ]);
1440
1447
  function Tr(t, e, n, i) {
1441
- vr(t, e, void 0, i);
1448
+ Pr(t, e, void 0, i);
1442
1449
  for (const s in e.attrs)
1443
- t.setAttribute(Pr.has(s) ? s : Ue(s), e.attrs[s]);
1450
+ t.setAttribute(xr.has(s) ? s : Ue(s), e.attrs[s]);
1444
1451
  }
1445
- function Jn(t, e, n) {
1452
+ function Qn(t, e, n) {
1446
1453
  var i;
1447
1454
  const { style: s } = t, o = {};
1448
1455
  for (const r in s)
1449
- (z(s[r]) || e.style && z(e.style[r]) || fr(r, t) || ((i = n == null ? void 0 : n.getValue(r)) === null || i === void 0 ? void 0 : i.liveStyle) !== void 0) && (o[r] = s[r]);
1456
+ (z(s[r]) || e.style && z(e.style[r]) || hr(r, t) || ((i = n == null ? void 0 : n.getValue(r)) === null || i === void 0 ? void 0 : i.liveStyle) !== void 0) && (o[r] = s[r]);
1450
1457
  return n && s && typeof s.willChange == "string" && (n.applyWillChange = !1), o;
1451
1458
  }
1452
- function xr(t, e, n) {
1453
- const i = Jn(t, e, n);
1459
+ function br(t, e, n) {
1460
+ const i = Qn(t, e, n);
1454
1461
  for (const s in t)
1455
1462
  if (z(t[s]) || z(e[s])) {
1456
1463
  const o = pe.indexOf(s) !== -1 ? "attr" + s.charAt(0).toUpperCase() + s.substring(1) : s;
@@ -1458,33 +1465,33 @@ function xr(t, e, n) {
1458
1465
  }
1459
1466
  return i;
1460
1467
  }
1461
- function Ui(t) {
1468
+ function Wi(t) {
1462
1469
  const e = [{}, {}];
1463
1470
  return t == null || t.values.forEach((n, i) => {
1464
1471
  e[0][i] = n.get(), e[1][i] = n.getVelocity();
1465
1472
  }), e;
1466
1473
  }
1467
- function Qn(t, e, n, i) {
1474
+ function ti(t, e, n, i) {
1468
1475
  if (typeof e == "function") {
1469
- const [s, o] = Ui(i);
1476
+ const [s, o] = Wi(i);
1470
1477
  e = e(n !== void 0 ? n : t.custom, s, o);
1471
1478
  }
1472
1479
  if (typeof e == "string" && (e = t.variants && t.variants[e]), typeof e == "function") {
1473
- const [s, o] = Ui(i);
1480
+ const [s, o] = Wi(i);
1474
1481
  e = e(n !== void 0 ? n : t.custom, s, o);
1475
1482
  }
1476
1483
  return e;
1477
1484
  }
1478
- function ti(t) {
1485
+ function ei(t) {
1479
1486
  const e = J(null);
1480
1487
  return e.current === null && (e.current = t()), e.current;
1481
1488
  }
1482
- const xn = (t) => Array.isArray(t), hl = (t) => !!(t && typeof t == "object" && t.mix && t.toValue), dl = (t) => xn(t) ? t[t.length - 1] || 0 : t;
1489
+ const Tn = (t) => Array.isArray(t), hl = (t) => !!(t && typeof t == "object" && t.mix && t.toValue), dl = (t) => Tn(t) ? t[t.length - 1] || 0 : t;
1483
1490
  function Re(t) {
1484
1491
  const e = z(t) ? t.get() : t;
1485
1492
  return hl(e) ? e.toValue() : e;
1486
1493
  }
1487
- const br = /* @__PURE__ */ new Set([
1494
+ const wr = /* @__PURE__ */ new Set([
1488
1495
  "opacity",
1489
1496
  "clipPath",
1490
1497
  "filter",
@@ -1493,10 +1500,10 @@ const br = /* @__PURE__ */ new Set([
1493
1500
  // or until we implement support for linear() easing.
1494
1501
  // "background-color"
1495
1502
  ]);
1496
- function wr(t) {
1503
+ function Sr(t) {
1497
1504
  if (bt.has(t))
1498
1505
  return "transform";
1499
- if (br.has(t))
1506
+ if (wr.has(t))
1500
1507
  return Ue(t);
1501
1508
  }
1502
1509
  function $e(t, e) {
@@ -1513,18 +1520,18 @@ function pl({ applyWillChange: t = !1, scrapeMotionValuesFromProps: e, createRen
1513
1520
  };
1514
1521
  return i && (l.mount = (c) => i(s, c, l)), l;
1515
1522
  }
1516
- const Sr = (t) => (e, n) => {
1523
+ const Cr = (t) => (e, n) => {
1517
1524
  const i = $(Ie), s = $(Ne), o = () => pl(t, e, i, s, n);
1518
- return n ? o() : ti(o);
1525
+ return n ? o() : ei(o);
1519
1526
  };
1520
1527
  function ml(t, e) {
1521
- const n = wr(e);
1528
+ const n = Sr(e);
1522
1529
  n && $e(t, n);
1523
1530
  }
1524
- function Wi(t, e, n) {
1531
+ function $i(t, e, n) {
1525
1532
  const i = Array.isArray(e) ? e : [e];
1526
1533
  for (let s = 0; s < i.length; s++) {
1527
- const o = Qn(t, i[s]);
1534
+ const o = ti(t, i[s]);
1528
1535
  if (o) {
1529
1536
  const { transitionEnd: r, transition: a, ...l } = o;
1530
1537
  n(l, r);
@@ -1537,12 +1544,12 @@ function gl(t, e, n, i, s) {
1537
1544
  for (const b in c)
1538
1545
  r[b] = Re(c[b]);
1539
1546
  let { initial: u, animate: f } = t;
1540
- const d = We(t), p = ur(t);
1547
+ const d = We(t), p = fr(t);
1541
1548
  e && p && !d && t.inherit !== !1 && (u === void 0 && (u = e.initial), f === void 0 && (f = e.animate));
1542
1549
  let m = n ? n.initial === !1 : !1;
1543
1550
  m = m || u === !1;
1544
1551
  const P = m ? f : u;
1545
- return P && typeof P != "boolean" && !ae(P) && Wi(t, P, (b, T) => {
1552
+ return P && typeof P != "boolean" && !ae(P) && $i(t, P, (b, x) => {
1546
1553
  for (const y in b) {
1547
1554
  let v = b[y];
1548
1555
  if (Array.isArray(v)) {
@@ -1551,17 +1558,17 @@ function gl(t, e, n, i, s) {
1551
1558
  }
1552
1559
  v !== null && (r[y] = v);
1553
1560
  }
1554
- for (const y in T)
1555
- r[y] = T[y];
1556
- }), l && (f && u !== !1 && !ae(f) && Wi(t, f, (b) => {
1557
- for (const T in b)
1558
- ml(a, T);
1561
+ for (const y in x)
1562
+ r[y] = x[y];
1563
+ }), l && (f && u !== !1 && !ae(f) && $i(t, f, (b) => {
1564
+ for (const x in b)
1565
+ ml(a, x);
1559
1566
  }), a.length && (r.willChange = a.join(","))), r;
1560
1567
  }
1561
- const { schedule: M, cancel: mt, state: W, steps: rn } = ar(typeof requestAnimationFrame < "u" ? requestAnimationFrame : K, !0), yl = {
1562
- useVisualState: Sr({
1563
- scrapeMotionValuesFromProps: xr,
1564
- createRenderState: yr,
1568
+ const { schedule: M, cancel: mt, state: W, steps: rn } = lr(typeof requestAnimationFrame < "u" ? requestAnimationFrame : K, !0), yl = {
1569
+ useVisualState: Cr({
1570
+ scrapeMotionValuesFromProps: br,
1571
+ createRenderState: vr,
1565
1572
  onMount: (t, e, { renderState: n, latestValues: i }) => {
1566
1573
  M.read(() => {
1567
1574
  try {
@@ -1575,15 +1582,15 @@ const { schedule: M, cancel: mt, state: W, steps: rn } = ar(typeof requestAnimat
1575
1582
  };
1576
1583
  }
1577
1584
  }), M.render(() => {
1578
- qn(n, i, Zn(e.tagName), t.transformTemplate), Tr(e, n);
1585
+ Zn(n, i, Jn(e.tagName), t.transformTemplate), Tr(e, n);
1579
1586
  });
1580
1587
  }
1581
1588
  })
1582
1589
  }, vl = {
1583
- useVisualState: Sr({
1590
+ useVisualState: Cr({
1584
1591
  applyWillChange: !0,
1585
- scrapeMotionValuesFromProps: Jn,
1586
- createRenderState: Xn
1592
+ scrapeMotionValuesFromProps: Qn,
1593
+ createRenderState: qn
1587
1594
  })
1588
1595
  };
1589
1596
  function Pl(t, { forwardMotionProps: e = !1 }, n, i) {
@@ -1598,7 +1605,7 @@ function Pl(t, { forwardMotionProps: e = !1 }, n, i) {
1598
1605
  function ct(t, e, n, i = { passive: !0 }) {
1599
1606
  return t.addEventListener(e, n, i), () => t.removeEventListener(e, n);
1600
1607
  }
1601
- const Cr = (t) => t.pointerType === "mouse" ? typeof t.button != "number" || t.button <= 0 : t.isPrimary !== !1;
1608
+ const Ar = (t) => t.pointerType === "mouse" ? typeof t.button != "number" || t.button <= 0 : t.isPrimary !== !1;
1602
1609
  function Ge(t, e = "page") {
1603
1610
  return {
1604
1611
  point: {
@@ -1607,12 +1614,12 @@ function Ge(t, e = "page") {
1607
1614
  }
1608
1615
  };
1609
1616
  }
1610
- const Tl = (t) => (e) => Cr(e) && t(e, Ge(e));
1617
+ const xl = (t) => (e) => Ar(e) && t(e, Ge(e));
1611
1618
  function ut(t, e, n, i) {
1612
- return ct(t, e, Tl(n), i);
1619
+ return ct(t, e, xl(n), i);
1613
1620
  }
1614
- const xl = (t, e) => (n) => e(t(n)), ft = (...t) => t.reduce(xl);
1615
- function Ar(t) {
1621
+ const Tl = (t, e) => (n) => e(t(n)), ft = (...t) => t.reduce(Tl);
1622
+ function Er(t) {
1616
1623
  let e = null;
1617
1624
  return () => {
1618
1625
  const n = () => {
@@ -1621,23 +1628,23 @@ function Ar(t) {
1621
1628
  return e === null ? (e = t, n) : !1;
1622
1629
  };
1623
1630
  }
1624
- const $i = Ar("dragHorizontal"), Ki = Ar("dragVertical");
1625
- function Er(t) {
1631
+ const Ki = Er("dragHorizontal"), Gi = Er("dragVertical");
1632
+ function Rr(t) {
1626
1633
  let e = !1;
1627
1634
  if (t === "y")
1628
- e = Ki();
1635
+ e = Gi();
1629
1636
  else if (t === "x")
1630
- e = $i();
1637
+ e = Ki();
1631
1638
  else {
1632
- const n = $i(), i = Ki();
1639
+ const n = Ki(), i = Gi();
1633
1640
  n && i ? e = () => {
1634
1641
  n(), i();
1635
1642
  } : (n && n(), i && i());
1636
1643
  }
1637
1644
  return e;
1638
1645
  }
1639
- function Rr() {
1640
- const t = Er(!0);
1646
+ function Vr() {
1647
+ const t = Rr(!0);
1641
1648
  return t ? (t(), !1) : !0;
1642
1649
  }
1643
1650
  class wt {
@@ -1647,9 +1654,9 @@ class wt {
1647
1654
  update() {
1648
1655
  }
1649
1656
  }
1650
- function Gi(t, e) {
1657
+ function Hi(t, e) {
1651
1658
  const n = e ? "pointerenter" : "pointerleave", i = e ? "onHoverStart" : "onHoverEnd", s = (o, r) => {
1652
- if (o.pointerType === "touch" || Rr())
1659
+ if (o.pointerType === "touch" || Vr())
1653
1660
  return;
1654
1661
  const a = t.getProps();
1655
1662
  t.animationState && a.whileHover && t.animationState.setActive("whileHover", e);
@@ -1662,7 +1669,7 @@ function Gi(t, e) {
1662
1669
  }
1663
1670
  class bl extends wt {
1664
1671
  mount() {
1665
- this.unmount = ft(Gi(this.node, !0), Gi(this.node, !1));
1672
+ this.unmount = ft(Hi(this.node, !0), Hi(this.node, !1));
1666
1673
  }
1667
1674
  unmount() {
1668
1675
  }
@@ -1689,7 +1696,7 @@ class wl extends wt {
1689
1696
  unmount() {
1690
1697
  }
1691
1698
  }
1692
- const Vr = (t, e) => e ? t === e ? !0 : Vr(t, e.parentElement) : !1;
1699
+ const Dr = (t, e) => e ? t === e ? !0 : Dr(t, e.parentElement) : !1;
1693
1700
  function on(t, e) {
1694
1701
  if (!e)
1695
1702
  return;
@@ -1705,7 +1712,7 @@ class Sl extends wt {
1705
1712
  const i = this.node.getProps(), o = ut(window, "pointerup", (a, l) => {
1706
1713
  if (!this.checkPressEnd())
1707
1714
  return;
1708
- const { onTap: c, onTapCancel: u, globalTapTarget: f } = this.node.getProps(), d = !f && !Vr(this.node.current, a.target) ? u : c;
1715
+ const { onTap: c, onTapCancel: u, globalTapTarget: f } = this.node.getProps(), d = !f && !Dr(this.node.current, a.target) ? u : c;
1709
1716
  d && M.update(() => d(a, l));
1710
1717
  }, {
1711
1718
  passive: !(i.onTap || i.onPointerUp)
@@ -1738,7 +1745,7 @@ class Sl extends wt {
1738
1745
  s && this.node.animationState && this.node.animationState.setActive("whileTap", !0), i && M.postRender(() => i(e, n));
1739
1746
  }
1740
1747
  checkPressEnd() {
1741
- return this.removeEndListeners(), this.isPressing = !1, this.node.getProps().whileTap && this.node.animationState && this.node.animationState.setActive("whileTap", !1), !Rr();
1748
+ return this.removeEndListeners(), this.isPressing = !1, this.node.getProps().whileTap && this.node.animationState && this.node.animationState.setActive("whileTap", !1), !Vr();
1742
1749
  }
1743
1750
  cancelPress(e, n) {
1744
1751
  if (!this.checkPressEnd())
@@ -1827,7 +1834,7 @@ const kl = {
1827
1834
  Feature: bl
1828
1835
  }
1829
1836
  };
1830
- function Dr(t, e) {
1837
+ function Mr(t, e) {
1831
1838
  if (!Array.isArray(e))
1832
1839
  return !1;
1833
1840
  const n = e.length;
@@ -1840,7 +1847,7 @@ function Dr(t, e) {
1840
1847
  }
1841
1848
  function He(t, e, n) {
1842
1849
  const i = t.getProps();
1843
- return Qn(i, e, n !== void 0 ? n : i.custom, t);
1850
+ return ti(i, e, n !== void 0 ? n : i.custom, t);
1844
1851
  }
1845
1852
  const ht = (t) => t * 1e3, dt = (t) => t / 1e3, Ll = {
1846
1853
  type: "spring",
@@ -1863,7 +1870,7 @@ const ht = (t) => t * 1e3, dt = (t) => t / 1e3, Ll = {
1863
1870
  function Bl({ when: t, delay: e, delayChildren: n, staggerChildren: i, staggerDirection: s, repeat: o, repeatType: r, repeatDelay: a, from: l, elapsed: c, ...u }) {
1864
1871
  return !!Object.keys(u).length;
1865
1872
  }
1866
- function ei(t, e) {
1873
+ function ni(t, e) {
1867
1874
  return t[e] || t.default || t;
1868
1875
  }
1869
1876
  const Il = (t) => t !== null;
@@ -1876,15 +1883,15 @@ function Nl() {
1876
1883
  Ve = void 0;
1877
1884
  }
1878
1885
  const Pt = {
1879
- now: () => (Ve === void 0 && Pt.set(W.isProcessing || Ca.useManualTiming ? W.timestamp : performance.now()), Ve),
1886
+ now: () => (Ve === void 0 && Pt.set(W.isProcessing || Aa.useManualTiming ? W.timestamp : performance.now()), Ve),
1880
1887
  set: (t) => {
1881
1888
  Ve = t, queueMicrotask(Nl);
1882
1889
  }
1883
- }, Mr = (t) => /^0[^.\s]+$/u.test(t);
1890
+ }, kr = (t) => /^0[^.\s]+$/u.test(t);
1884
1891
  function Ul(t) {
1885
- return typeof t == "number" ? t === 0 : t !== null ? t === "none" || t === "0" || Mr(t) : !0;
1892
+ return typeof t == "number" ? t === 0 : t !== null ? t === "none" || t === "0" || kr(t) : !0;
1886
1893
  }
1887
- const kr = (t) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t), Wl = (
1894
+ const Lr = (t) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t), Wl = (
1888
1895
  // eslint-disable-next-line redos-detector/no-unsafe-regex -- false positive, as it can match a lot of words
1889
1896
  /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u
1890
1897
  );
@@ -1896,7 +1903,7 @@ function $l(t) {
1896
1903
  return [`--${n ?? i}`, s];
1897
1904
  }
1898
1905
  const Kl = 4;
1899
- function Lr(t, e, n = 1) {
1906
+ function Fr(t, e, n = 1) {
1900
1907
  pt(n <= Kl, `Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);
1901
1908
  const [i, s] = $l(t);
1902
1909
  if (!i)
@@ -1904,9 +1911,9 @@ function Lr(t, e, n = 1) {
1904
1911
  const o = window.getComputedStyle(e).getPropertyValue(i);
1905
1912
  if (o) {
1906
1913
  const r = o.trim();
1907
- return kr(r) ? parseFloat(r) : r;
1914
+ return Lr(r) ? parseFloat(r) : r;
1908
1915
  }
1909
- return Hn(s) ? Lr(s, e, n + 1) : s;
1916
+ return Yn(s) ? Fr(s, e, n + 1) : s;
1910
1917
  }
1911
1918
  const Gl = /* @__PURE__ */ new Set([
1912
1919
  "width",
@@ -1919,15 +1926,15 @@ const Gl = /* @__PURE__ */ new Set([
1919
1926
  "y",
1920
1927
  "translateX",
1921
1928
  "translateY"
1922
- ]), Hi = (t) => t === Ht || t === S, zi = (t, e) => parseFloat(t.split(", ")[e]), Yi = (t, e) => (n, { transform: i }) => {
1929
+ ]), zi = (t) => t === Ht || t === S, Yi = (t, e) => parseFloat(t.split(", ")[e]), Xi = (t, e) => (n, { transform: i }) => {
1923
1930
  if (i === "none" || !i)
1924
1931
  return 0;
1925
1932
  const s = i.match(/^matrix3d\((.+)\)$/u);
1926
1933
  if (s)
1927
- return zi(s[1], e);
1934
+ return Yi(s[1], e);
1928
1935
  {
1929
1936
  const o = i.match(/^matrix\((.+)\)$/u);
1930
- return o ? zi(o[1], t) : 0;
1937
+ return o ? Yi(o[1], t) : 0;
1931
1938
  }
1932
1939
  }, Hl = /* @__PURE__ */ new Set(["x", "y", "z"]), zl = pe.filter((t) => !Hl.has(t));
1933
1940
  function Yl(t) {
@@ -1946,17 +1953,17 @@ const Kt = {
1946
1953
  bottom: ({ y: t }, { top: e }) => parseFloat(e) + (t.max - t.min),
1947
1954
  right: ({ x: t }, { left: e }) => parseFloat(e) + (t.max - t.min),
1948
1955
  // Transform
1949
- x: Yi(4, 13),
1950
- y: Yi(5, 14)
1956
+ x: Xi(4, 13),
1957
+ y: Xi(5, 14)
1951
1958
  };
1952
1959
  Kt.translateX = Kt.x;
1953
1960
  Kt.translateY = Kt.y;
1954
- const Fr = (t) => (e) => e.test(t), Xl = {
1961
+ const Or = (t) => (e) => e.test(t), Xl = {
1955
1962
  test: (t) => t === "auto",
1956
1963
  parse: (t) => t
1957
- }, Or = [Ht, S, at, vt, Qa, Ja, Xl], Xi = (t) => Or.find(Fr(t)), Dt = /* @__PURE__ */ new Set();
1964
+ }, jr = [Ht, S, at, vt, Ya, za, Xl], qi = (t) => jr.find(Or(t)), Dt = /* @__PURE__ */ new Set();
1958
1965
  let wn = !1, Sn = !1;
1959
- function jr() {
1966
+ function _r() {
1960
1967
  if (Sn) {
1961
1968
  const t = Array.from(Dt).filter((i) => i.needsMeasurement), e = new Set(t.map((i) => i.element)), n = /* @__PURE__ */ new Map();
1962
1969
  e.forEach((i) => {
@@ -1975,20 +1982,20 @@ function jr() {
1975
1982
  }
1976
1983
  Sn = !1, wn = !1, Dt.forEach((t) => t.complete()), Dt.clear();
1977
1984
  }
1978
- function _r() {
1985
+ function Br() {
1979
1986
  Dt.forEach((t) => {
1980
1987
  t.readKeyframes(), t.needsMeasurement && (Sn = !0);
1981
1988
  });
1982
1989
  }
1983
1990
  function ql() {
1984
- _r(), jr();
1991
+ Br(), _r();
1985
1992
  }
1986
- class ni {
1993
+ class ii {
1987
1994
  constructor(e, n, i, s, o, r = !1) {
1988
1995
  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;
1989
1996
  }
1990
1997
  scheduleResolve() {
1991
- this.isScheduled = !0, this.isAsync ? (Dt.add(this), wn || (wn = !0, M.read(_r), M.resolveKeyframes(jr))) : (this.readKeyframes(), this.complete());
1998
+ this.isScheduled = !0, this.isAsync ? (Dt.add(this), wn || (wn = !0, M.read(Br), M.resolveKeyframes(_r))) : (this.readKeyframes(), this.complete());
1992
1999
  }
1993
2000
  readKeyframes() {
1994
2001
  const { unresolvedKeyframes: e, name: n, element: i, motionValue: s } = this;
@@ -2024,22 +2031,22 @@ class ni {
2024
2031
  this.isComplete || this.scheduleResolve();
2025
2032
  }
2026
2033
  }
2027
- const ii = (t, e) => (n) => !!(me(n) && qa.test(n) && n.startsWith(t) || e && !Za(n) && Object.prototype.hasOwnProperty.call(n, e)), Br = (t, e, n) => (i) => {
2034
+ const si = (t, e) => (n) => !!(me(n) && Ga.test(n) && n.startsWith(t) || e && !Ha(n) && Object.prototype.hasOwnProperty.call(n, e)), Ir = (t, e, n) => (i) => {
2028
2035
  if (!me(i))
2029
2036
  return i;
2030
- const [s, o, r, a] = i.match(zn);
2037
+ const [s, o, r, a] = i.match(Hn);
2031
2038
  return {
2032
2039
  [t]: parseFloat(s),
2033
2040
  [e]: parseFloat(o),
2034
2041
  [n]: parseFloat(r),
2035
2042
  alpha: a !== void 0 ? parseFloat(a) : 1
2036
2043
  };
2037
- }, Zl = (t) => Tt(0, 255, t), ln = {
2044
+ }, Zl = (t) => xt(0, 255, t), ln = {
2038
2045
  ...Ht,
2039
2046
  transform: (t) => Math.round(Zl(t))
2040
2047
  }, Vt = {
2041
- test: ii("rgb", "red"),
2042
- parse: Br("red", "green", "blue"),
2048
+ test: si("rgb", "red"),
2049
+ parse: Ir("red", "green", "blue"),
2043
2050
  transform: ({ red: t, green: e, blue: n, alpha: i = 1 }) => "rgba(" + ln.transform(t) + ", " + ln.transform(e) + ", " + ln.transform(n) + ", " + ne(ee.transform(i)) + ")"
2044
2051
  };
2045
2052
  function Jl(t) {
@@ -2052,12 +2059,12 @@ function Jl(t) {
2052
2059
  };
2053
2060
  }
2054
2061
  const Cn = {
2055
- test: ii("#"),
2062
+ test: si("#"),
2056
2063
  parse: Jl,
2057
2064
  transform: Vt.transform
2058
2065
  }, It = {
2059
- test: ii("hsl", "hue"),
2060
- parse: Br("hue", "saturation", "lightness"),
2066
+ test: si("hsl", "hue"),
2067
+ parse: Ir("hue", "saturation", "lightness"),
2061
2068
  transform: ({ hue: t, saturation: e, lightness: n, alpha: i = 1 }) => "hsla(" + Math.round(t) + ", " + at.transform(ne(e)) + ", " + at.transform(ne(n)) + ", " + ne(ee.transform(i)) + ")"
2062
2069
  }, H = {
2063
2070
  test: (t) => Vt.test(t) || Cn.test(t) || It.test(t),
@@ -2066,9 +2073,9 @@ const Cn = {
2066
2073
  };
2067
2074
  function Ql(t) {
2068
2075
  var e, n;
2069
- return isNaN(t) && me(t) && (((e = t.match(zn)) === null || e === void 0 ? void 0 : e.length) || 0) + (((n = t.match(Xa)) === null || n === void 0 ? void 0 : n.length) || 0) > 0;
2076
+ return isNaN(t) && me(t) && (((e = t.match(Hn)) === null || e === void 0 ? void 0 : e.length) || 0) + (((n = t.match(Ka)) === null || n === void 0 ? void 0 : n.length) || 0) > 0;
2070
2077
  }
2071
- const Ir = "number", Nr = "color", tc = "var", ec = "var(", qi = "${}", nc = /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;
2078
+ const Nr = "number", Ur = "color", tc = "var", ec = "var(", Zi = "${}", nc = /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;
2072
2079
  function le(t) {
2073
2080
  const e = t.toString(), n = [], i = {
2074
2081
  color: [],
@@ -2076,40 +2083,40 @@ function le(t) {
2076
2083
  var: []
2077
2084
  }, s = [];
2078
2085
  let o = 0;
2079
- const a = e.replace(nc, (l) => (H.test(l) ? (i.color.push(o), s.push(Nr), n.push(H.parse(l))) : l.startsWith(ec) ? (i.var.push(o), s.push(tc), n.push(l)) : (i.number.push(o), s.push(Ir), n.push(parseFloat(l))), ++o, qi)).split(qi);
2086
+ const a = e.replace(nc, (l) => (H.test(l) ? (i.color.push(o), s.push(Ur), n.push(H.parse(l))) : l.startsWith(ec) ? (i.var.push(o), s.push(tc), n.push(l)) : (i.number.push(o), s.push(Nr), n.push(parseFloat(l))), ++o, Zi)).split(Zi);
2080
2087
  return { values: n, split: a, indexes: i, types: s };
2081
2088
  }
2082
- function Ur(t) {
2089
+ function Wr(t) {
2083
2090
  return le(t).values;
2084
2091
  }
2085
- function Wr(t) {
2092
+ function $r(t) {
2086
2093
  const { split: e, types: n } = le(t), i = e.length;
2087
2094
  return (s) => {
2088
2095
  let o = "";
2089
2096
  for (let r = 0; r < i; r++)
2090
2097
  if (o += e[r], s[r] !== void 0) {
2091
2098
  const a = n[r];
2092
- a === Ir ? o += ne(s[r]) : a === Nr ? o += H.transform(s[r]) : o += s[r];
2099
+ a === Nr ? o += ne(s[r]) : a === Ur ? o += H.transform(s[r]) : o += s[r];
2093
2100
  }
2094
2101
  return o;
2095
2102
  };
2096
2103
  }
2097
2104
  const ic = (t) => typeof t == "number" ? 0 : t;
2098
2105
  function sc(t) {
2099
- const e = Ur(t);
2100
- return Wr(t)(e.map(ic));
2106
+ const e = Wr(t);
2107
+ return $r(t)(e.map(ic));
2101
2108
  }
2102
- const xt = {
2109
+ const Tt = {
2103
2110
  test: Ql,
2104
- parse: Ur,
2105
- createTransformer: Wr,
2111
+ parse: Wr,
2112
+ createTransformer: $r,
2106
2113
  getAnimatableNone: sc
2107
2114
  }, rc = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
2108
2115
  function oc(t) {
2109
2116
  const [e, n] = t.slice(0, -1).split("(");
2110
2117
  if (e === "drop-shadow")
2111
2118
  return t;
2112
- const [i] = n.match(zn) || [];
2119
+ const [i] = n.match(Hn) || [];
2113
2120
  if (!i)
2114
2121
  return t;
2115
2122
  const s = n.replace(i, "");
@@ -2117,13 +2124,13 @@ function oc(t) {
2117
2124
  return i !== n && (o *= 100), e + "(" + o + s + ")";
2118
2125
  }
2119
2126
  const ac = /\b([a-z-]*)\(.*?\)/gu, An = {
2120
- ...xt,
2127
+ ...Tt,
2121
2128
  getAnimatableNone: (t) => {
2122
2129
  const e = t.match(ac);
2123
2130
  return e ? e.map(oc).join(" ") : t;
2124
2131
  }
2125
2132
  }, lc = {
2126
- ...pr,
2133
+ ...zn,
2127
2134
  // Color props
2128
2135
  color: H,
2129
2136
  backgroundColor: H,
@@ -2138,10 +2145,10 @@ const ac = /\b([a-z-]*)\(.*?\)/gu, An = {
2138
2145
  borderLeftColor: H,
2139
2146
  filter: An,
2140
2147
  WebkitFilter: An
2141
- }, si = (t) => lc[t];
2142
- function $r(t, e) {
2143
- let n = si(t);
2144
- return n !== An && (n = xt), n.getAnimatableNone ? n.getAnimatableNone(e) : void 0;
2148
+ }, ri = (t) => lc[t];
2149
+ function Kr(t, e) {
2150
+ let n = ri(t);
2151
+ return n !== An && (n = Tt), n.getAnimatableNone ? n.getAnimatableNone(e) : void 0;
2145
2152
  }
2146
2153
  const cc = /* @__PURE__ */ new Set(["auto", "none", "0"]);
2147
2154
  function uc(t, e, n) {
@@ -2152,9 +2159,9 @@ function uc(t, e, n) {
2152
2159
  }
2153
2160
  if (s && n)
2154
2161
  for (const o of e)
2155
- t[o] = $r(n, s);
2162
+ t[o] = Kr(n, s);
2156
2163
  }
2157
- class Kr extends ni {
2164
+ class Gr extends ii {
2158
2165
  constructor(e, n, i, s) {
2159
2166
  super(e, n, i, s, s == null ? void 0 : s.owner, !0);
2160
2167
  }
@@ -2165,16 +2172,16 @@ class Kr extends ni {
2165
2172
  super.readKeyframes();
2166
2173
  for (let l = 0; l < e.length; l++) {
2167
2174
  let c = e[l];
2168
- if (typeof c == "string" && (c = c.trim(), Hn(c))) {
2169
- const u = Lr(c, n.current);
2175
+ if (typeof c == "string" && (c = c.trim(), Yn(c))) {
2176
+ const u = Fr(c, n.current);
2170
2177
  u !== void 0 && (e[l] = u), l === e.length - 1 && (this.finalKeyframe = c);
2171
2178
  }
2172
2179
  }
2173
2180
  if (this.resolveNoneKeyframes(), !Gl.has(i) || e.length !== 2)
2174
2181
  return;
2175
- const [s, o] = e, r = Xi(s), a = Xi(o);
2182
+ const [s, o] = e, r = qi(s), a = qi(o);
2176
2183
  if (r !== a)
2177
- if (Hi(r) && Hi(a))
2184
+ if (zi(r) && zi(a))
2178
2185
  for (let l = 0; l < e.length; l++) {
2179
2186
  const c = e[l];
2180
2187
  typeof c == "string" && (e[l] = parseFloat(c));
@@ -2209,12 +2216,12 @@ class Kr extends ni {
2209
2216
  }), this.resolveNoneKeyframes();
2210
2217
  }
2211
2218
  }
2212
- function Gr(t) {
2219
+ function Hr(t) {
2213
2220
  let e;
2214
2221
  return () => (e === void 0 && (e = t()), e);
2215
2222
  }
2216
- const Zi = (t, e) => e === "zIndex" ? !1 : !!(typeof t == "number" || Array.isArray(t) || typeof t == "string" && // It's animatable if we have a string
2217
- (xt.test(t) || t === "0") && // And it contains numbers and/or colors
2223
+ const Ji = (t, e) => e === "zIndex" ? !1 : !!(typeof t == "number" || Array.isArray(t) || typeof t == "string" && // It's animatable if we have a string
2224
+ (Tt.test(t) || t === "0") && // And it contains numbers and/or colors
2218
2225
  !t.startsWith("url("));
2219
2226
  function fc(t) {
2220
2227
  const e = t[0];
@@ -2230,10 +2237,10 @@ function hc(t, e, n, i) {
2230
2237
  return !1;
2231
2238
  if (e === "display" || e === "visibility")
2232
2239
  return !0;
2233
- const o = t[t.length - 1], r = Zi(s, e), a = Zi(o, e);
2240
+ const o = t[t.length - 1], r = Ji(s, e), a = Ji(o, e);
2234
2241
  return Gt(r === a, `You are trying to animate ${e} from "${s}" to "${o}". ${s} is not an animatable value - to enable this animation set ${s} to a value animatable to ${o} via the \`style\` property.`), !r || !a ? !1 : fc(t) || n === "spring" && i;
2235
2242
  }
2236
- class Hr {
2243
+ class zr {
2237
2244
  constructor({ autoplay: e = !0, delay: n = 0, type: i = "keyframes", repeat: s = 0, repeatDelay: o = 0, repeatType: r = "loop", ...a }) {
2238
2245
  this.isStopped = !1, this.hasAttemptedResolve = !1, this.options = {
2239
2246
  autoplay: e,
@@ -2291,20 +2298,20 @@ class Hr {
2291
2298
  });
2292
2299
  }
2293
2300
  }
2294
- function zr(t, e) {
2301
+ function Yr(t, e) {
2295
2302
  return e ? t * (1e3 / e) : 0;
2296
2303
  }
2297
2304
  const dc = 5;
2298
- function Yr(t, e, n) {
2305
+ function Xr(t, e, n) {
2299
2306
  const i = Math.max(e - dc, 0);
2300
- return zr(n - t(i), e - i);
2307
+ return Yr(n - t(i), e - i);
2301
2308
  }
2302
- const cn = 1e-3, pc = 0.01, Ji = 10, mc = 0.05, gc = 1;
2309
+ const cn = 1e-3, pc = 0.01, Qi = 10, mc = 0.05, gc = 1;
2303
2310
  function yc({ duration: t = 800, bounce: e = 0.25, velocity: n = 0, mass: i = 1 }) {
2304
2311
  let s, o;
2305
- Gt(t <= ht(Ji), "Spring duration must be 10 seconds or less");
2312
+ Gt(t <= ht(Qi), "Spring duration must be 10 seconds or less");
2306
2313
  let r = 1 - e;
2307
- r = Tt(mc, gc, r), t = Tt(pc, Ji, dt(t)), r < 1 ? (s = (c) => {
2314
+ r = xt(mc, gc, r), t = xt(pc, Qi, dt(t)), r < 1 ? (s = (c) => {
2308
2315
  const u = c * r, f = u * t, d = u - n, p = En(c, r), m = Math.exp(-f);
2309
2316
  return cn - d / p * m;
2310
2317
  }, o = (c) => {
@@ -2343,8 +2350,8 @@ function Pc(t, e, n) {
2343
2350
  function En(t, e) {
2344
2351
  return t * Math.sqrt(1 - e * e);
2345
2352
  }
2346
- const Tc = ["duration", "bounce"], xc = ["stiffness", "damping", "mass"];
2347
- function Qi(t, e) {
2353
+ const xc = ["duration", "bounce"], Tc = ["stiffness", "damping", "mass"];
2354
+ function ts(t, e) {
2348
2355
  return e.some((n) => t[n] !== void 0);
2349
2356
  }
2350
2357
  function bc(t) {
@@ -2356,7 +2363,7 @@ function bc(t) {
2356
2363
  isResolvedFromDuration: !1,
2357
2364
  ...t
2358
2365
  };
2359
- if (!Qi(t, xc) && Qi(t, Tc)) {
2366
+ if (!ts(t, Tc) && ts(t, xc)) {
2360
2367
  const n = yc(t);
2361
2368
  e = {
2362
2369
  ...e,
@@ -2366,12 +2373,12 @@ function bc(t) {
2366
2373
  }
2367
2374
  return e;
2368
2375
  }
2369
- function Xr({ keyframes: t, restDelta: e, restSpeed: n, ...i }) {
2376
+ function qr({ keyframes: t, restDelta: e, restSpeed: n, ...i }) {
2370
2377
  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 } = bc({
2371
2378
  ...i,
2372
2379
  velocity: -dt(i.velocity || 0)
2373
- }), p = f || 0, m = l / (2 * Math.sqrt(a * c)), P = o - s, b = dt(Math.sqrt(a / c)), T = Math.abs(P) < 5;
2374
- n || (n = T ? 0.01 : 2), e || (e = T ? 5e-3 : 0.5);
2380
+ }), p = f || 0, m = l / (2 * Math.sqrt(a * c)), P = o - s, b = dt(Math.sqrt(a / c)), x = Math.abs(P) < 5;
2381
+ n || (n = x ? 0.01 : 2), e || (e = x ? 5e-3 : 0.5);
2375
2382
  let y;
2376
2383
  if (m < 1) {
2377
2384
  const v = En(b, m);
@@ -2396,7 +2403,7 @@ function Xr({ keyframes: t, restDelta: e, restSpeed: n, ...i }) {
2396
2403
  r.done = v >= u;
2397
2404
  else {
2398
2405
  let A = p;
2399
- v !== 0 && (m < 1 ? A = Yr(y, v, w) : A = 0);
2406
+ v !== 0 && (m < 1 ? A = Xr(y, v, w) : A = 0);
2400
2407
  const F = Math.abs(A) <= n, q = Math.abs(o - w) <= e;
2401
2408
  r.done = F && q;
2402
2409
  }
@@ -2404,23 +2411,23 @@ function Xr({ keyframes: t, restDelta: e, restSpeed: n, ...i }) {
2404
2411
  }
2405
2412
  };
2406
2413
  }
2407
- function ts({ 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 }) {
2414
+ function es({ 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 }) {
2408
2415
  const f = t[0], d = {
2409
2416
  done: !1,
2410
2417
  value: f
2411
2418
  }, p = (E) => a !== void 0 && E < a || l !== void 0 && E > l, m = (E) => a === void 0 ? l : l === void 0 || Math.abs(a - E) < Math.abs(l - E) ? a : l;
2412
2419
  let P = n * e;
2413
- const b = f + P, T = r === void 0 ? b : r(b);
2414
- T !== b && (P = T - f);
2415
- const y = (E) => -P * Math.exp(-E / i), v = (E) => T + y(E), w = (E) => {
2420
+ const b = f + P, x = r === void 0 ? b : r(b);
2421
+ x !== b && (P = x - f);
2422
+ const y = (E) => -P * Math.exp(-E / i), v = (E) => x + y(E), w = (E) => {
2416
2423
  const U = y(E), G = v(E);
2417
- d.done = Math.abs(U) <= c, d.value = d.done ? T : G;
2424
+ d.done = Math.abs(U) <= c, d.value = d.done ? x : G;
2418
2425
  };
2419
2426
  let A, F;
2420
2427
  const q = (E) => {
2421
- p(d.value) && (A = E, F = Xr({
2428
+ p(d.value) && (A = E, F = qr({
2422
2429
  keyframes: [d.value, m(d.value)],
2423
- velocity: Yr(v, E, d.value),
2430
+ velocity: Xr(v, E, d.value),
2424
2431
  // TODO: This should be passing * 1000
2425
2432
  damping: s,
2426
2433
  stiffness: o,
@@ -2436,11 +2443,11 @@ function ts({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: i = 3
2436
2443
  }
2437
2444
  };
2438
2445
  }
2439
- const qr = (t, e, n) => (((1 - 3 * n + 3 * e) * t + (3 * n - 6 * e)) * t + 3 * e) * t, wc = 1e-7, Sc = 12;
2446
+ const Zr = (t, e, n) => (((1 - 3 * n + 3 * e) * t + (3 * n - 6 * e)) * t + 3 * e) * t, wc = 1e-7, Sc = 12;
2440
2447
  function Cc(t, e, n, i, s) {
2441
2448
  let o, r, a = 0;
2442
2449
  do
2443
- r = e + (n - e) / 2, o = qr(r, i, s) - t, o > 0 ? n = r : e = r;
2450
+ r = e + (n - e) / 2, o = Zr(r, i, s) - t, o > 0 ? n = r : e = r;
2444
2451
  while (Math.abs(o) > wc && ++a < Sc);
2445
2452
  return r;
2446
2453
  }
@@ -2448,27 +2455,27 @@ function ye(t, e, n, i) {
2448
2455
  if (t === e && n === i)
2449
2456
  return K;
2450
2457
  const s = (o) => Cc(o, 0, 1, t, n);
2451
- return (o) => o === 0 || o === 1 ? o : qr(s(o), e, i);
2458
+ return (o) => o === 0 || o === 1 ? o : Zr(s(o), e, i);
2452
2459
  }
2453
- const Ac = ye(0.42, 0, 1, 1), Ec = ye(0, 0, 0.58, 1), Zr = ye(0.42, 0, 0.58, 1), Rc = (t) => Array.isArray(t) && typeof t[0] != "number", Jr = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, Qr = (t) => (e) => 1 - t(1 - e), ri = (t) => 1 - Math.sin(Math.acos(t)), to = Qr(ri), Vc = Jr(ri), eo = ye(0.33, 1.53, 0.69, 0.99), oi = Qr(eo), Dc = Jr(oi), Mc = (t) => (t *= 2) < 1 ? 0.5 * oi(t) : 0.5 * (2 - Math.pow(2, -10 * (t - 1))), es = {
2460
+ const Ac = ye(0.42, 0, 1, 1), Ec = ye(0, 0, 0.58, 1), Jr = ye(0.42, 0, 0.58, 1), Rc = (t) => Array.isArray(t) && typeof t[0] != "number", Qr = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, to = (t) => (e) => 1 - t(1 - e), oi = (t) => 1 - Math.sin(Math.acos(t)), eo = to(oi), Vc = Qr(oi), no = ye(0.33, 1.53, 0.69, 0.99), ai = to(no), Dc = Qr(ai), Mc = (t) => (t *= 2) < 1 ? 0.5 * ai(t) : 0.5 * (2 - Math.pow(2, -10 * (t - 1))), ns = {
2454
2461
  linear: K,
2455
2462
  easeIn: Ac,
2456
- easeInOut: Zr,
2463
+ easeInOut: Jr,
2457
2464
  easeOut: Ec,
2458
- circIn: ri,
2465
+ circIn: oi,
2459
2466
  circInOut: Vc,
2460
- circOut: to,
2461
- backIn: oi,
2467
+ circOut: eo,
2468
+ backIn: ai,
2462
2469
  backInOut: Dc,
2463
- backOut: eo,
2470
+ backOut: no,
2464
2471
  anticipate: Mc
2465
- }, ns = (t) => {
2472
+ }, is = (t) => {
2466
2473
  if (Array.isArray(t)) {
2467
2474
  pt(t.length === 4, "Cubic bezier arrays must contain four numerical values.");
2468
2475
  const [e, n, i, s] = t;
2469
2476
  return ye(e, n, i, s);
2470
2477
  } else if (typeof t == "string")
2471
- return pt(es[t] !== void 0, `Invalid easing type '${t}'`), es[t];
2478
+ return pt(ns[t] !== void 0, `Invalid easing type '${t}'`), ns[t];
2472
2479
  return t;
2473
2480
  }, ce = (t, e, n) => {
2474
2481
  const i = e - t;
@@ -2500,15 +2507,15 @@ const fn = (t, e, n) => {
2500
2507
  const i = t * t, s = n * (e * e - i) + i;
2501
2508
  return s < 0 ? 0 : Math.sqrt(s);
2502
2509
  }, Lc = [Cn, Vt, It], Fc = (t) => Lc.find((e) => e.test(t));
2503
- function is(t) {
2510
+ function ss(t) {
2504
2511
  const e = Fc(t);
2505
2512
  if (Gt(!!e, `'${t}' is not an animatable color. Use the equivalent color code instead.`), !e)
2506
2513
  return !1;
2507
2514
  let n = e.parse(t);
2508
2515
  return e === It && (n = kc(n)), n;
2509
2516
  }
2510
- const ss = (t, e) => {
2511
- const n = is(t), i = is(e);
2517
+ const rs = (t, e) => {
2518
+ const n = ss(t), i = ss(e);
2512
2519
  if (!n || !i)
2513
2520
  return Oe(t, e);
2514
2521
  const s = { ...n };
@@ -2520,11 +2527,11 @@ function Oc(t, e) {
2520
2527
  function jc(t, e) {
2521
2528
  return (n) => O(t, e, n);
2522
2529
  }
2523
- function ai(t) {
2524
- return typeof t == "number" ? jc : typeof t == "string" ? Hn(t) ? Oe : H.test(t) ? ss : Ic : Array.isArray(t) ? no : typeof t == "object" ? H.test(t) ? ss : _c : Oe;
2530
+ function li(t) {
2531
+ return typeof t == "number" ? jc : typeof t == "string" ? Yn(t) ? Oe : H.test(t) ? rs : Ic : Array.isArray(t) ? io : typeof t == "object" ? H.test(t) ? rs : _c : Oe;
2525
2532
  }
2526
- function no(t, e) {
2527
- const n = [...t], i = n.length, s = t.map((o, r) => ai(o)(o, e[r]));
2533
+ function io(t, e) {
2534
+ const n = [...t], i = n.length, s = t.map((o, r) => li(o)(o, e[r]));
2528
2535
  return (o) => {
2529
2536
  for (let r = 0; r < i; r++)
2530
2537
  n[r] = s[r](o);
@@ -2534,7 +2541,7 @@ function no(t, e) {
2534
2541
  function _c(t, e) {
2535
2542
  const n = { ...t, ...e }, i = {};
2536
2543
  for (const s in n)
2537
- t[s] !== void 0 && e[s] !== void 0 && (i[s] = ai(t[s])(t[s], e[s]));
2544
+ t[s] !== void 0 && e[s] !== void 0 && (i[s] = li(t[s])(t[s], e[s]));
2538
2545
  return (s) => {
2539
2546
  for (const o in i)
2540
2547
  n[o] = i[o](s);
@@ -2551,14 +2558,14 @@ function Bc(t, e) {
2551
2558
  return i;
2552
2559
  }
2553
2560
  const Ic = (t, e) => {
2554
- const n = xt.createTransformer(e), i = le(t), s = le(e);
2555
- 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 ? Rn.has(t) && !s.values.length || Rn.has(e) && !i.values.length ? Oc(t, e) : ft(no(Bc(i, s), s.values), n) : (Gt(!0, `Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`), Oe(t, e));
2561
+ const n = Tt.createTransformer(e), i = le(t), s = le(e);
2562
+ 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 ? Rn.has(t) && !s.values.length || Rn.has(e) && !i.values.length ? Oc(t, e) : ft(io(Bc(i, s), s.values), n) : (Gt(!0, `Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`), Oe(t, e));
2556
2563
  };
2557
- function io(t, e, n) {
2558
- return typeof t == "number" && typeof e == "number" && typeof n == "number" ? O(t, e, n) : ai(t)(t, e);
2564
+ function so(t, e, n) {
2565
+ return typeof t == "number" && typeof e == "number" && typeof n == "number" ? O(t, e, n) : li(t)(t, e);
2559
2566
  }
2560
2567
  function Nc(t, e, n) {
2561
- const i = [], s = n || io, o = t.length - 1;
2568
+ const i = [], s = n || so, o = t.length - 1;
2562
2569
  for (let r = 0; r < o; r++) {
2563
2570
  let a = s(t[r], t[r + 1]);
2564
2571
  if (e) {
@@ -2584,7 +2591,7 @@ function Uc(t, e, { clamp: n = !0, ease: i, mixer: s } = {}) {
2584
2591
  const f = ce(t[u], t[u + 1], c);
2585
2592
  return r[u](f);
2586
2593
  };
2587
- return n ? (c) => l(Tt(t[0], t[o - 1], c)) : l;
2594
+ return n ? (c) => l(xt(t[0], t[o - 1], c)) : l;
2588
2595
  }
2589
2596
  function Wc(t, e) {
2590
2597
  const n = t[t.length - 1];
@@ -2601,10 +2608,10 @@ function Kc(t, e) {
2601
2608
  return t.map((n) => n * e);
2602
2609
  }
2603
2610
  function Gc(t, e) {
2604
- return t.map(() => e || Zr).splice(0, t.length - 1);
2611
+ return t.map(() => e || Jr).splice(0, t.length - 1);
2605
2612
  }
2606
2613
  function je({ duration: t = 300, keyframes: e, times: n, ease: i = "easeInOut" }) {
2607
- const s = Rc(i) ? i.map(ns) : ns(i), o = {
2614
+ const s = Rc(i) ? i.map(is) : is(i), o = {
2608
2615
  done: !1,
2609
2616
  value: e[0]
2610
2617
  }, r = Kc(
@@ -2620,14 +2627,14 @@ function je({ duration: t = 300, keyframes: e, times: n, ease: i = "easeInOut" }
2620
2627
  next: (l) => (o.value = a(l), o.done = l >= t, o)
2621
2628
  };
2622
2629
  }
2623
- const rs = 2e4;
2630
+ const os = 2e4;
2624
2631
  function Hc(t) {
2625
2632
  let e = 0;
2626
2633
  const n = 50;
2627
2634
  let i = t.next(e);
2628
- for (; !i.done && e < rs; )
2635
+ for (; !i.done && e < os; )
2629
2636
  e += n, i = t.next(e);
2630
- return e >= rs ? 1 / 0 : e;
2637
+ return e >= os ? 1 / 0 : e;
2631
2638
  }
2632
2639
  const zc = (t) => {
2633
2640
  const e = ({ timestamp: n }) => t(n);
@@ -2641,14 +2648,14 @@ const zc = (t) => {
2641
2648
  now: () => W.isProcessing ? W.timestamp : Pt.now()
2642
2649
  };
2643
2650
  }, Yc = {
2644
- decay: ts,
2645
- inertia: ts,
2651
+ decay: es,
2652
+ inertia: es,
2646
2653
  tween: je,
2647
2654
  keyframes: je,
2648
- spring: Xr
2655
+ spring: qr
2649
2656
  }, Xc = (t) => t / 100;
2650
- class li extends Hr {
2651
- constructor({ KeyframeResolver: e = ni, ...n }) {
2657
+ class ci extends zr {
2658
+ constructor({ KeyframeResolver: e = ii, ...n }) {
2652
2659
  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 = () => {
2653
2660
  if (this.resolver.cancel(), this.isStopped = !0, this.state === "idle")
2654
2661
  return;
@@ -2662,7 +2669,7 @@ class li extends Hr {
2662
2669
  initPlayback(e) {
2663
2670
  const { type: n = "keyframes", repeat: i = 0, repeatDelay: s = 0, repeatType: o, velocity: r = 0 } = this.options, a = Yc[n] || je;
2664
2671
  let l, c;
2665
- a !== je && typeof e[0] != "number" && (process.env.NODE_ENV !== "production" && pt(e.length === 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${e}`), l = ft(Xc, io(e[0], e[1])), e = [0, 100]);
2672
+ a !== je && typeof e[0] != "number" && (process.env.NODE_ENV !== "production" && pt(e.length === 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${e}`), l = ft(Xc, so(e[0], e[1])), e = [0, 100]);
2666
2673
  const u = a({ ...this.options, keyframes: e });
2667
2674
  o === "mirror" && (c = a({
2668
2675
  ...this.options,
@@ -2694,13 +2701,13 @@ class li extends Hr {
2694
2701
  return o.next(0);
2695
2702
  const { delay: d, repeat: p, repeatType: m, repeatDelay: P, onUpdate: b } = this.options;
2696
2703
  this.speed > 0 ? this.startTime = Math.min(this.startTime, e) : this.speed < 0 && (this.startTime = Math.min(e - u / this.speed, this.startTime)), n ? this.currentTime = e : this.holdTime !== null ? this.currentTime = this.holdTime : this.currentTime = Math.round(e - this.startTime) * this.speed;
2697
- const T = this.currentTime - d * (this.speed >= 0 ? 1 : -1), y = this.speed >= 0 ? T < 0 : T > u;
2698
- this.currentTime = Math.max(T, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = u);
2704
+ const x = this.currentTime - d * (this.speed >= 0 ? 1 : -1), y = this.speed >= 0 ? x < 0 : x > u;
2705
+ this.currentTime = Math.max(x, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = u);
2699
2706
  let v = this.currentTime, w = o;
2700
2707
  if (p) {
2701
2708
  const E = Math.min(this.currentTime, u) / f;
2702
2709
  let U = Math.floor(E), G = E % 1;
2703
- !G && E >= 1 && (G = 1), G === 1 && U--, U = Math.min(U, p + 1), !!(U % 2) && (m === "reverse" ? (G = 1 - G, P && (G -= P / f)) : m === "mirror" && (w = r)), v = Tt(0, 1, G) * f;
2710
+ !G && E >= 1 && (G = 1), G === 1 && U--, U = Math.min(U, p + 1), !!(U % 2) && (m === "reverse" ? (G = 1 - G, P && (G -= P / f)) : m === "mirror" && (w = r)), v = xt(0, 1, G) * f;
2704
2711
  }
2705
2712
  const A = y ? { done: !1, value: l[0] } : w.next(v);
2706
2713
  a && (A.value = a(A.value));
@@ -2767,11 +2774,11 @@ class li extends Hr {
2767
2774
  return this.startTime = 0, this.tick(e, !0);
2768
2775
  }
2769
2776
  }
2770
- const so = (t) => Array.isArray(t) && typeof t[0] == "number";
2771
- function ro(t) {
2772
- return !!(!t || typeof t == "string" && t in ci || so(t) || Array.isArray(t) && t.every(ro));
2777
+ const ro = (t) => Array.isArray(t) && typeof t[0] == "number";
2778
+ function oo(t) {
2779
+ return !!(!t || typeof t == "string" && t in ui || ro(t) || Array.isArray(t) && t.every(oo));
2773
2780
  }
2774
- const Qt = ([t, e, n, i]) => `cubic-bezier(${t}, ${e}, ${n}, ${i})`, ci = {
2781
+ const Qt = ([t, e, n, i]) => `cubic-bezier(${t}, ${e}, ${n}, ${i})`, ui = {
2775
2782
  linear: "linear",
2776
2783
  ease: "ease",
2777
2784
  easeIn: "ease-in",
@@ -2783,16 +2790,16 @@ const Qt = ([t, e, n, i]) => `cubic-bezier(${t}, ${e}, ${n}, ${i})`, ci = {
2783
2790
  backOut: Qt([0.33, 1.53, 0.69, 0.99])
2784
2791
  };
2785
2792
  function qc(t) {
2786
- return oo(t) || ci.easeOut;
2793
+ return ao(t) || ui.easeOut;
2787
2794
  }
2788
- function oo(t) {
2795
+ function ao(t) {
2789
2796
  if (t)
2790
- return so(t) ? Qt(t) : Array.isArray(t) ? t.map(qc) : ci[t];
2797
+ return ro(t) ? Qt(t) : Array.isArray(t) ? t.map(qc) : ui[t];
2791
2798
  }
2792
2799
  function Zc(t, e, n, { delay: i = 0, duration: s = 300, repeat: o = 0, repeatType: r = "loop", ease: a, times: l } = {}) {
2793
2800
  const c = { [e]: n };
2794
2801
  l && (c.offset = l);
2795
- const u = oo(a);
2802
+ const u = ao(a);
2796
2803
  return Array.isArray(u) && (c.easing = u), t.animate(c, {
2797
2804
  delay: i,
2798
2805
  duration: s,
@@ -2802,12 +2809,12 @@ function Zc(t, e, n, { delay: i = 0, duration: s = 300, repeat: o = 0, repeatTyp
2802
2809
  direction: r === "reverse" ? "alternate" : "normal"
2803
2810
  });
2804
2811
  }
2805
- const Jc = Gr(() => Object.hasOwnProperty.call(Element.prototype, "animate")), _e = 10, Qc = 2e4;
2812
+ const Jc = Hr(() => Object.hasOwnProperty.call(Element.prototype, "animate")), _e = 10, Qc = 2e4;
2806
2813
  function tu(t) {
2807
- return t.type === "spring" || !ro(t.ease);
2814
+ return t.type === "spring" || !oo(t.ease);
2808
2815
  }
2809
2816
  function eu(t, e) {
2810
- const n = new li({
2817
+ const n = new ci({
2811
2818
  ...e,
2812
2819
  keyframes: t,
2813
2820
  repeat: 0,
@@ -2826,11 +2833,11 @@ function eu(t, e) {
2826
2833
  ease: "linear"
2827
2834
  };
2828
2835
  }
2829
- class os extends Hr {
2836
+ class as extends zr {
2830
2837
  constructor(e) {
2831
2838
  super(e);
2832
2839
  const { name: n, motionValue: i, keyframes: s } = this.options;
2833
- this.resolver = new Kr(s, (o, r) => this.onKeyframesResolved(o, r), n, i), this.resolver.scheduleResolve();
2840
+ this.resolver = new Gr(s, (o, r) => this.onKeyframesResolved(o, r), n, i), this.resolver.scheduleResolve();
2834
2841
  }
2835
2842
  initPlayback(e, n) {
2836
2843
  var i;
@@ -2939,7 +2946,7 @@ class os extends Hr {
2939
2946
  if (n.playState === "idle" || n.playState === "finished")
2940
2947
  return;
2941
2948
  if (this.time) {
2942
- const { motionValue: c, onUpdate: u, onComplete: f, ...d } = this.options, p = new li({
2949
+ const { motionValue: c, onUpdate: u, onComplete: f, ...d } = this.options, p = new ci({
2943
2950
  ...d,
2944
2951
  keyframes: i,
2945
2952
  duration: s,
@@ -2963,7 +2970,7 @@ class os extends Hr {
2963
2970
  }
2964
2971
  static supports(e) {
2965
2972
  const { motionValue: n, name: i, repeatDelay: s, repeatType: o, damping: r, type: a } = e;
2966
- return Jc() && i && br.has(i) && n && n.owner && n.owner.current instanceof HTMLElement && /**
2973
+ return Jc() && i && wr.has(i) && n && n.owner && n.owner.current instanceof HTMLElement && /**
2967
2974
  * If we're outputting values to onUpdate then we can't use WAAPI as there's
2968
2975
  * no way to read the value from WAAPI every frame.
2969
2976
  */
@@ -2978,7 +2985,7 @@ function nu(t, e) {
2978
2985
  };
2979
2986
  return M.update(i, !0), () => mt(i);
2980
2987
  }
2981
- const iu = Gr(() => window.ScrollTimeline !== void 0);
2988
+ const iu = Hr(() => window.ScrollTimeline !== void 0);
2982
2989
  class su {
2983
2990
  constructor(e) {
2984
2991
  this.stop = () => this.runAll("stop"), this.animations = e.filter(Boolean);
@@ -3045,8 +3052,8 @@ class su {
3045
3052
  this.runAll("complete");
3046
3053
  }
3047
3054
  }
3048
- const ui = (t, e, n, i = {}, s, o, r) => (a) => {
3049
- const l = ei(i, t) || {}, c = l.delay || i.delay || 0;
3055
+ const fi = (t, e, n, i = {}, s, o, r) => (a) => {
3056
+ const l = ni(i, t) || {}, c = l.delay || i.delay || 0;
3050
3057
  let { elapsed: u = 0 } = i;
3051
3058
  u = u - ht(c);
3052
3059
  let f = {
@@ -3078,9 +3085,9 @@ const ui = (t, e, n, i = {}, s, o, r) => (a) => {
3078
3085
  f.onUpdate(p), f.onComplete();
3079
3086
  }), new su([]);
3080
3087
  }
3081
- return !o && os.supports(f) ? new os(f) : new li(f);
3088
+ return !o && as.supports(f) ? new as(f) : new ci(f);
3082
3089
  };
3083
- class fi {
3090
+ class hi {
3084
3091
  constructor() {
3085
3092
  this.subscriptions = [];
3086
3093
  }
@@ -3105,12 +3112,12 @@ class fi {
3105
3112
  this.subscriptions.length = 0;
3106
3113
  }
3107
3114
  }
3108
- const as = /* @__PURE__ */ new Set();
3109
- function hi(t, e, n) {
3110
- t || as.has(e) || (console.warn(e), n && console.warn(n), as.add(e));
3115
+ const ls = /* @__PURE__ */ new Set();
3116
+ function di(t, e, n) {
3117
+ t || ls.has(e) || (console.warn(e), n && console.warn(n), ls.add(e));
3111
3118
  }
3112
- const ls = 30, ru = (t) => !isNaN(parseFloat(t));
3113
- class ao {
3119
+ const cs = 30, ru = (t) => !isNaN(parseFloat(t));
3120
+ class lo {
3114
3121
  /**
3115
3122
  * @param init - The initiating value
3116
3123
  * @param config - Optional configuration options
@@ -3120,7 +3127,7 @@ class ao {
3120
3127
  * @internal
3121
3128
  */
3122
3129
  constructor(e, n = {}) {
3123
- this.version = "11.3.19", this.canTrackVelocity = null, this.events = {}, this.updateAndNotify = (i, s = !0) => {
3130
+ this.version = "11.3.21", this.canTrackVelocity = null, this.events = {}, this.updateAndNotify = (i, s = !0) => {
3124
3131
  const o = Pt.now();
3125
3132
  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);
3126
3133
  }, this.hasAnimated = !1, this.setCurrent(e), this.owner = n.owner;
@@ -3172,10 +3179,10 @@ class ao {
3172
3179
  * @deprecated
3173
3180
  */
3174
3181
  onChange(e) {
3175
- return process.env.NODE_ENV !== "production" && hi(!1, 'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'), this.on("change", e);
3182
+ return process.env.NODE_ENV !== "production" && di(!1, 'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'), this.on("change", e);
3176
3183
  }
3177
3184
  on(e, n) {
3178
- this.events[e] || (this.events[e] = new fi());
3185
+ this.events[e] || (this.events[e] = new hi());
3179
3186
  const i = this.events[e].add(n);
3180
3187
  return e === "change" ? () => {
3181
3188
  i(), M.read(() => {
@@ -3248,10 +3255,10 @@ class ao {
3248
3255
  */
3249
3256
  getVelocity() {
3250
3257
  const e = Pt.now();
3251
- if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > ls)
3258
+ if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > cs)
3252
3259
  return 0;
3253
- const n = Math.min(this.updatedAt - this.prevUpdatedAt, ls);
3254
- return zr(parseFloat(this.current) - parseFloat(this.prevFrameValue), n);
3260
+ const n = Math.min(this.updatedAt - this.prevUpdatedAt, cs);
3261
+ return Yr(parseFloat(this.current) - parseFloat(this.prevFrameValue), n);
3255
3262
  }
3256
3263
  /**
3257
3264
  * Registers a new animation to control this `MotionValue`. Only one
@@ -3305,7 +3312,7 @@ class ao {
3305
3312
  }
3306
3313
  }
3307
3314
  function ue(t, e) {
3308
- return new ao(t, e);
3315
+ return new lo(t, e);
3309
3316
  }
3310
3317
  function ou(t, e, n) {
3311
3318
  t.hasValue(e) ? t.getValue(e).set(n) : t.addValue(e, ue(n));
@@ -3319,15 +3326,15 @@ function au(t, e) {
3319
3326
  ou(t, r, a);
3320
3327
  }
3321
3328
  }
3322
- function lo(t) {
3323
- return t.getProps()[or];
3329
+ function co(t) {
3330
+ return t.getProps()[ar];
3324
3331
  }
3325
- class lu extends ao {
3332
+ class lu extends lo {
3326
3333
  constructor() {
3327
3334
  super(...arguments), this.output = [], this.counts = /* @__PURE__ */ new Map();
3328
3335
  }
3329
3336
  add(e) {
3330
- const n = wr(e);
3337
+ const n = Sr(e);
3331
3338
  if (!n)
3332
3339
  return;
3333
3340
  const i = this.counts.get(n) || 0;
@@ -3360,7 +3367,7 @@ function uu({ protectedKeys: t, needsAnimating: e }, n) {
3360
3367
  const i = t.hasOwnProperty(n) && e[n] !== !0;
3361
3368
  return e[n] = !1, i;
3362
3369
  }
3363
- function co(t, e, { delay: n = 0, transitionOverride: i, type: s } = {}) {
3370
+ function uo(t, e, { delay: n = 0, transitionOverride: i, type: s } = {}) {
3364
3371
  var o;
3365
3372
  let { transition: r = t.getDefaultTransition(), transitionEnd: a, ...l } = e;
3366
3373
  i && (r = i);
@@ -3372,17 +3379,17 @@ function co(t, e, { delay: n = 0, transitionOverride: i, type: s } = {}) {
3372
3379
  const m = {
3373
3380
  delay: n,
3374
3381
  elapsed: 0,
3375
- ...ei(r || {}, f)
3382
+ ...ni(r || {}, f)
3376
3383
  };
3377
3384
  let P = !1;
3378
3385
  if (window.HandoffAppearAnimations) {
3379
- const T = lo(t);
3380
- if (T) {
3381
- const y = window.HandoffAppearAnimations(T, f, d, M);
3386
+ const x = co(t);
3387
+ if (x) {
3388
+ const y = window.HandoffAppearAnimations(x, f, d, M);
3382
3389
  y !== null && (m.elapsed = y, P = !0);
3383
3390
  }
3384
3391
  }
3385
- d.start(ui(f, d, p, t.shouldReduceMotion && bt.has(f) ? { type: !1 } : m, t, P, Vn(t, f)));
3392
+ d.start(fi(f, d, p, t.shouldReduceMotion && bt.has(f) ? { type: !1 } : m, t, P, Vn(t, f)));
3386
3393
  const b = d.animation;
3387
3394
  b && c.push(b);
3388
3395
  }
@@ -3397,7 +3404,7 @@ function Dn(t, e, n = {}) {
3397
3404
  const s = He(t, e, n.type === "exit" ? (i = t.presenceContext) === null || i === void 0 ? void 0 : i.custom : void 0);
3398
3405
  let { transition: o = t.getDefaultTransition() || {} } = s || {};
3399
3406
  n.transitionOverride && (o = n.transitionOverride);
3400
- const r = s ? () => Promise.all(co(t, s, n)) : () => Promise.resolve(), a = t.variantChildren && t.variantChildren.size ? (c = 0) => {
3407
+ const r = s ? () => Promise.all(uo(t, s, n)) : () => Promise.resolve(), a = t.variantChildren && t.variantChildren.size ? (c = 0) => {
3401
3408
  const { delayChildren: u = 0, staggerChildren: f, staggerDirection: d } = o;
3402
3409
  return fu(t, e, u + c, f, d, n);
3403
3410
  } : () => Promise.resolve(), { when: l } = o;
@@ -3429,7 +3436,7 @@ function du(t, e, n = {}) {
3429
3436
  i = Dn(t, e, n);
3430
3437
  else {
3431
3438
  const s = typeof e == "function" ? He(t, e, n.custom) : e;
3432
- i = Promise.all(co(t, s, n));
3439
+ i = Promise.all(uo(t, s, n));
3433
3440
  }
3434
3441
  return i.then(() => {
3435
3442
  t.notify("AnimationComplete", e);
@@ -3440,7 +3447,7 @@ function gu(t) {
3440
3447
  return (e) => Promise.all(e.map(({ animation: n, options: i }) => du(t, n, i)));
3441
3448
  }
3442
3449
  function yu(t) {
3443
- let e = gu(t), n = cs(), i = !0;
3450
+ let e = gu(t), n = us(), i = !0;
3444
3451
  const s = (l) => (c, u) => {
3445
3452
  var f;
3446
3453
  const d = He(t, u, l === "exit" ? (f = t.presenceContext) === null || f === void 0 ? void 0 : f.custom : void 0);
@@ -3457,19 +3464,19 @@ function yu(t) {
3457
3464
  const c = t.getProps(), u = t.getVariantContext(!0) || {}, f = [], d = /* @__PURE__ */ new Set();
3458
3465
  let p = {}, m = 1 / 0;
3459
3466
  for (let b = 0; b < mu; b++) {
3460
- const T = pu[b], y = n[T], v = c[T] !== void 0 ? c[T] : u[T], w = oe(v), A = T === l ? y.isActive : null;
3467
+ const x = pu[b], y = n[x], v = c[x] !== void 0 ? c[x] : u[x], w = oe(v), A = x === l ? y.isActive : null;
3461
3468
  A === !1 && (m = b);
3462
- let F = v === u[T] && v !== c[T] && w;
3469
+ let F = v === u[x] && v !== c[x] && w;
3463
3470
  if (F && i && t.manuallyAnimateOnMount && (F = !1), y.protectedKeys = { ...p }, // If it isn't active and hasn't *just* been set as inactive
3464
3471
  !y.isActive && A === null || // If we didn't and don't have any defined prop for this animation type
3465
3472
  !v && !y.prevProp || // Or if the prop doesn't define an animation
3466
3473
  ae(v) || typeof v == "boolean")
3467
3474
  continue;
3468
3475
  let E = vu(y.prevProp, v) || // If we're making this variant active, we want to always make it active
3469
- T === l && y.isActive && !F && w || // If we removed a higher-priority variant (i is in reverse order)
3476
+ x === l && y.isActive && !F && w || // If we removed a higher-priority variant (i is in reverse order)
3470
3477
  b > m && w, U = !1;
3471
3478
  const G = Array.isArray(v) ? v : [v];
3472
- let N = G.reduce(s(T), {});
3479
+ let N = G.reduce(s(x), {});
3473
3480
  A === !1 && (N = {});
3474
3481
  const { prevResolvedValues: gt = {} } = y, Y = {
3475
3482
  ...gt,
@@ -3484,18 +3491,18 @@ function yu(t) {
3484
3491
  if (p.hasOwnProperty(j))
3485
3492
  continue;
3486
3493
  let Ft = !1;
3487
- xn(tt) && xn(Lt) ? Ft = !Dr(tt, Lt) : Ft = tt !== Lt, Ft ? tt != null ? rt(j) : d.add(j) : tt !== void 0 && d.has(j) ? rt(j) : y.protectedKeys[j] = !0;
3494
+ Tn(tt) && Tn(Lt) ? Ft = !Mr(tt, Lt) : Ft = tt !== Lt, Ft ? tt != null ? rt(j) : d.add(j) : tt !== void 0 && d.has(j) ? rt(j) : y.protectedKeys[j] = !0;
3488
3495
  }
3489
3496
  y.prevProp = v, y.prevResolvedValues = N, y.isActive && (p = { ...p, ...N }), i && t.blockInitialAnimation && (E = !1), E && (!F || U) && f.push(...G.map((j) => ({
3490
3497
  animation: j,
3491
- options: { type: T }
3498
+ options: { type: x }
3492
3499
  })));
3493
3500
  }
3494
3501
  if (d.size) {
3495
3502
  const b = {};
3496
- d.forEach((T) => {
3497
- const y = t.getBaseTarget(T), v = t.getValue(T);
3498
- v && (v.liveStyle = !0), b[T] = y ?? null;
3503
+ d.forEach((x) => {
3504
+ const y = t.getBaseTarget(x), v = t.getValue(x);
3505
+ v && (v.liveStyle = !0), b[x] = y ?? null;
3499
3506
  }), f.push({ animation: b });
3500
3507
  }
3501
3508
  let P = !!f.length;
@@ -3520,12 +3527,12 @@ function yu(t) {
3520
3527
  setAnimateFunction: o,
3521
3528
  getState: () => n,
3522
3529
  reset: () => {
3523
- n = cs(), i = !0;
3530
+ n = us(), i = !0;
3524
3531
  }
3525
3532
  };
3526
3533
  }
3527
3534
  function vu(t, e) {
3528
- return typeof e == "string" ? e !== t : Array.isArray(e) ? !Dr(e, t) : !1;
3535
+ return typeof e == "string" ? e !== t : Array.isArray(e) ? !Mr(e, t) : !1;
3529
3536
  }
3530
3537
  function Ct(t = !1) {
3531
3538
  return {
@@ -3535,7 +3542,7 @@ function Ct(t = !1) {
3535
3542
  prevResolvedValues: {}
3536
3543
  };
3537
3544
  }
3538
- function cs() {
3545
+ function us() {
3539
3546
  return {
3540
3547
  animate: Ct(!0),
3541
3548
  whileInView: Ct(),
@@ -3574,10 +3581,10 @@ class Pu extends wt {
3574
3581
  this.node.animationState.reset(), (e = this.unmountControls) === null || e === void 0 || e.call(this);
3575
3582
  }
3576
3583
  }
3577
- let Tu = 0;
3578
- class xu extends wt {
3584
+ let xu = 0;
3585
+ class Tu extends wt {
3579
3586
  constructor() {
3580
- super(...arguments), this.id = Tu++;
3587
+ super(...arguments), this.id = xu++;
3581
3588
  }
3582
3589
  update() {
3583
3590
  if (!this.node.presenceContext)
@@ -3600,14 +3607,14 @@ const bu = {
3600
3607
  Feature: Pu
3601
3608
  },
3602
3609
  exit: {
3603
- Feature: xu
3610
+ Feature: Tu
3604
3611
  }
3605
- }, us = (t, e) => Math.abs(t - e);
3612
+ }, fs = (t, e) => Math.abs(t - e);
3606
3613
  function wu(t, e) {
3607
- const n = us(t.x, e.x), i = us(t.y, e.y);
3614
+ const n = fs(t.x, e.x), i = fs(t.y, e.y);
3608
3615
  return Math.sqrt(n ** 2 + i ** 2);
3609
3616
  }
3610
- class uo {
3617
+ class fo {
3611
3618
  constructor(e, n, { transformPagePoint: i, contextWindow: s, dragSnapToOrigin: o = !1 } = {}) {
3612
3619
  if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.handlers = {}, this.contextWindow = window, this.updatePoint = () => {
3613
3620
  if (!(this.lastMoveEvent && this.lastMoveEventInfo))
@@ -3617,8 +3624,8 @@ class uo {
3617
3624
  return;
3618
3625
  const { point: m } = f, { timestamp: P } = W;
3619
3626
  this.history.push({ ...m, timestamp: P });
3620
- const { onStart: b, onMove: T } = this.handlers;
3621
- d || (b && b(this.lastMoveEvent, f), this.startEvent = this.lastMoveEvent), T && T(this.lastMoveEvent, f);
3627
+ const { onStart: b, onMove: x } = this.handlers;
3628
+ d || (b && b(this.lastMoveEvent, f), this.startEvent = this.lastMoveEvent), x && x(this.lastMoveEvent, f);
3622
3629
  }, this.handlePointerMove = (f, d) => {
3623
3630
  this.lastMoveEvent = f, this.lastMoveEventInfo = hn(d, this.transformPagePoint), M.update(this.updatePoint, !0);
3624
3631
  }, this.handlePointerUp = (f, d) => {
@@ -3628,7 +3635,7 @@ class uo {
3628
3635
  return;
3629
3636
  const b = dn(f.type === "pointercancel" ? this.lastMoveEventInfo : hn(d, this.transformPagePoint), this.history);
3630
3637
  this.startEvent && p && p(f, b), m && m(f, b);
3631
- }, !Cr(e))
3638
+ }, !Ar(e))
3632
3639
  return;
3633
3640
  this.dragSnapToOrigin = o, this.handlers = n, this.transformPagePoint = i, this.contextWindow = s || window;
3634
3641
  const r = Ge(e), a = hn(r, this.transformPagePoint), { point: l } = a, { timestamp: c } = W;
@@ -3646,28 +3653,28 @@ class uo {
3646
3653
  function hn(t, e) {
3647
3654
  return e ? { point: e(t.point) } : t;
3648
3655
  }
3649
- function fs(t, e) {
3656
+ function hs(t, e) {
3650
3657
  return { x: t.x - e.x, y: t.y - e.y };
3651
3658
  }
3652
3659
  function dn({ point: t }, e) {
3653
3660
  return {
3654
3661
  point: t,
3655
- delta: fs(t, fo(e)),
3656
- offset: fs(t, Su(e)),
3662
+ delta: hs(t, ho(e)),
3663
+ offset: hs(t, Su(e)),
3657
3664
  velocity: Cu(e, 0.1)
3658
3665
  };
3659
3666
  }
3660
3667
  function Su(t) {
3661
3668
  return t[0];
3662
3669
  }
3663
- function fo(t) {
3670
+ function ho(t) {
3664
3671
  return t[t.length - 1];
3665
3672
  }
3666
3673
  function Cu(t, e) {
3667
3674
  if (t.length < 2)
3668
3675
  return { x: 0, y: 0 };
3669
3676
  let n = t.length - 1, i = null;
3670
- const s = fo(t);
3677
+ const s = ho(t);
3671
3678
  for (; n >= 0 && (i = t[n], !(s.timestamp - i.timestamp > ht(e))); )
3672
3679
  n--;
3673
3680
  if (!i)
@@ -3681,35 +3688,35 @@ function Cu(t, e) {
3681
3688
  };
3682
3689
  return r.x === 1 / 0 && (r.x = 0), r.y === 1 / 0 && (r.y = 0), r;
3683
3690
  }
3684
- const ho = 1e-4, Au = 1 - ho, Eu = 1 + ho, po = 0.01, Ru = 0 - po, Vu = 0 + po;
3691
+ const po = 1e-4, Au = 1 - po, Eu = 1 + po, mo = 0.01, Ru = 0 - mo, Vu = 0 + mo;
3685
3692
  function Q(t) {
3686
3693
  return t.max - t.min;
3687
3694
  }
3688
3695
  function Du(t, e, n) {
3689
3696
  return Math.abs(t - e) <= n;
3690
3697
  }
3691
- function hs(t, e, n, i = 0.5) {
3698
+ function ds(t, e, n, i = 0.5) {
3692
3699
  t.origin = i, t.originPoint = O(e.min, e.max, t.origin), t.scale = Q(n) / Q(e), t.translate = O(n.min, n.max, t.origin) - t.originPoint, (t.scale >= Au && t.scale <= Eu || isNaN(t.scale)) && (t.scale = 1), (t.translate >= Ru && t.translate <= Vu || isNaN(t.translate)) && (t.translate = 0);
3693
3700
  }
3694
3701
  function ie(t, e, n, i) {
3695
- hs(t.x, e.x, n.x, i ? i.originX : void 0), hs(t.y, e.y, n.y, i ? i.originY : void 0);
3702
+ ds(t.x, e.x, n.x, i ? i.originX : void 0), ds(t.y, e.y, n.y, i ? i.originY : void 0);
3696
3703
  }
3697
- function ds(t, e, n) {
3704
+ function ps(t, e, n) {
3698
3705
  t.min = n.min + e.min, t.max = t.min + Q(e);
3699
3706
  }
3700
3707
  function Mu(t, e, n) {
3701
- ds(t.x, e.x, n.x), ds(t.y, e.y, n.y);
3708
+ ps(t.x, e.x, n.x), ps(t.y, e.y, n.y);
3702
3709
  }
3703
- function ps(t, e, n) {
3710
+ function ms(t, e, n) {
3704
3711
  t.min = e.min - n.min, t.max = t.min + Q(e);
3705
3712
  }
3706
3713
  function se(t, e, n) {
3707
- ps(t.x, e.x, n.x), ps(t.y, e.y, n.y);
3714
+ ms(t.x, e.x, n.x), ms(t.y, e.y, n.y);
3708
3715
  }
3709
3716
  function ku(t, { min: e, max: n }, i) {
3710
3717
  return e !== void 0 && t < e ? t = i ? O(e, t, i.min) : Math.max(t, e) : n !== void 0 && t > n && (t = i ? O(n, t, i.max) : Math.min(t, n)), t;
3711
3718
  }
3712
- function ms(t, e, n) {
3719
+ function gs(t, e, n) {
3713
3720
  return {
3714
3721
  min: e !== void 0 ? t.min + e : void 0,
3715
3722
  max: n !== void 0 ? t.max + n - (t.max - t.min) : void 0
@@ -3717,24 +3724,24 @@ function ms(t, e, n) {
3717
3724
  }
3718
3725
  function Lu(t, { top: e, left: n, bottom: i, right: s }) {
3719
3726
  return {
3720
- x: ms(t.x, n, s),
3721
- y: ms(t.y, e, i)
3727
+ x: gs(t.x, n, s),
3728
+ y: gs(t.y, e, i)
3722
3729
  };
3723
3730
  }
3724
- function gs(t, e) {
3731
+ function ys(t, e) {
3725
3732
  let n = e.min - t.min, i = e.max - t.max;
3726
3733
  return e.max - e.min < t.max - t.min && ([n, i] = [i, n]), { min: n, max: i };
3727
3734
  }
3728
3735
  function Fu(t, e) {
3729
3736
  return {
3730
- x: gs(t.x, e.x),
3731
- y: gs(t.y, e.y)
3737
+ x: ys(t.x, e.x),
3738
+ y: ys(t.y, e.y)
3732
3739
  };
3733
3740
  }
3734
3741
  function Ou(t, e) {
3735
3742
  let n = 0.5;
3736
3743
  const i = Q(t), s = Q(e);
3737
- return s > i ? n = ce(e.min, e.max - i, t.min) : i > s && (n = ce(t.min, t.max - s, e.min)), Tt(0, 1, n);
3744
+ return s > i ? n = ce(e.min, e.max - i, t.min) : i > s && (n = ce(t.min, t.max - s, e.min)), xt(0, 1, n);
3738
3745
  }
3739
3746
  function ju(t, e) {
3740
3747
  const n = {};
@@ -3743,27 +3750,27 @@ function ju(t, e) {
3743
3750
  const Mn = 0.35;
3744
3751
  function _u(t = Mn) {
3745
3752
  return t === !1 ? t = 0 : t === !0 && (t = Mn), {
3746
- x: ys(t, "left", "right"),
3747
- y: ys(t, "top", "bottom")
3753
+ x: vs(t, "left", "right"),
3754
+ y: vs(t, "top", "bottom")
3748
3755
  };
3749
3756
  }
3750
- function ys(t, e, n) {
3757
+ function vs(t, e, n) {
3751
3758
  return {
3752
- min: vs(t, e),
3753
- max: vs(t, n)
3759
+ min: Ps(t, e),
3760
+ max: Ps(t, n)
3754
3761
  };
3755
3762
  }
3756
- function vs(t, e) {
3763
+ function Ps(t, e) {
3757
3764
  return typeof t == "number" ? t : t[e] || 0;
3758
3765
  }
3759
- const Ps = () => ({
3766
+ const xs = () => ({
3760
3767
  translate: 0,
3761
3768
  scale: 1,
3762
3769
  origin: 0,
3763
3770
  originPoint: 0
3764
3771
  }), Nt = () => ({
3765
- x: Ps(),
3766
- y: Ps()
3772
+ x: xs(),
3773
+ y: xs()
3767
3774
  }), Ts = () => ({ min: 0, max: 0 }), B = () => ({
3768
3775
  x: Ts(),
3769
3776
  y: Ts()
@@ -3771,7 +3778,7 @@ const Ps = () => ({
3771
3778
  function it(t) {
3772
3779
  return [t("x"), t("y")];
3773
3780
  }
3774
- function mo({ top: t, left: e, right: n, bottom: i }) {
3781
+ function go({ top: t, left: e, right: n, bottom: i }) {
3775
3782
  return {
3776
3783
  x: { min: e, max: n },
3777
3784
  y: { min: t, max: i }
@@ -3798,28 +3805,28 @@ function kn({ scale: t, scaleX: e, scaleY: n }) {
3798
3805
  return !pn(t) || !pn(e) || !pn(n);
3799
3806
  }
3800
3807
  function Et(t) {
3801
- return kn(t) || go(t) || t.z || t.rotate || t.rotateX || t.rotateY || t.skewX || t.skewY;
3808
+ return kn(t) || yo(t) || t.z || t.rotate || t.rotateX || t.rotateY || t.skewX || t.skewY;
3802
3809
  }
3803
- function go(t) {
3804
- return xs(t.x) || xs(t.y);
3810
+ function yo(t) {
3811
+ return bs(t.x) || bs(t.y);
3805
3812
  }
3806
- function xs(t) {
3813
+ function bs(t) {
3807
3814
  return t && t !== "0%";
3808
3815
  }
3809
3816
  function Be(t, e, n) {
3810
3817
  const i = t - n, s = e * i;
3811
3818
  return n + s;
3812
3819
  }
3813
- function bs(t, e, n, i, s) {
3820
+ function ws(t, e, n, i, s) {
3814
3821
  return s !== void 0 && (t = Be(t, s, i)), Be(t, n, i) + e;
3815
3822
  }
3816
3823
  function Ln(t, e = 0, n = 1, i, s) {
3817
- t.min = bs(t.min, e, n, i, s), t.max = bs(t.max, e, n, i, s);
3824
+ t.min = ws(t.min, e, n, i, s), t.max = ws(t.max, e, n, i, s);
3818
3825
  }
3819
- function yo(t, { x: e, y: n }) {
3826
+ function vo(t, { x: e, y: n }) {
3820
3827
  Ln(t.x, e.translate, e.scale, e.originPoint), Ln(t.y, n.translate, n.scale, n.originPoint);
3821
3828
  }
3822
- const ws = 0.999999999999, Ss = 1.0000000000001;
3829
+ const Ss = 0.999999999999, Cs = 1.0000000000001;
3823
3830
  function Nu(t, e, n, i = !1) {
3824
3831
  const s = n.length;
3825
3832
  if (!s)
@@ -3832,28 +3839,28 @@ function Nu(t, e, n, i = !1) {
3832
3839
  l && l.props.style && l.props.style.display === "contents" || (i && o.options.layoutScroll && o.scroll && o !== o.root && Wt(t, {
3833
3840
  x: -o.scroll.offset.x,
3834
3841
  y: -o.scroll.offset.y
3835
- }), r && (e.x *= r.x.scale, e.y *= r.y.scale, yo(t, r)), i && Et(o.latestValues) && Wt(t, o.latestValues));
3842
+ }), r && (e.x *= r.x.scale, e.y *= r.y.scale, vo(t, r)), i && Et(o.latestValues) && Wt(t, o.latestValues));
3836
3843
  }
3837
- e.x < Ss && e.x > ws && (e.x = 1), e.y < Ss && e.y > ws && (e.y = 1);
3844
+ e.x < Cs && e.x > Ss && (e.x = 1), e.y < Cs && e.y > Ss && (e.y = 1);
3838
3845
  }
3839
3846
  function Ut(t, e) {
3840
3847
  t.min = t.min + e, t.max = t.max + e;
3841
3848
  }
3842
- function Cs(t, e, n, i, s = 0.5) {
3849
+ function As(t, e, n, i, s = 0.5) {
3843
3850
  const o = O(t.min, t.max, s);
3844
3851
  Ln(t, e, n, o, i);
3845
3852
  }
3846
3853
  function Wt(t, e) {
3847
- Cs(t.x, e.x, e.scaleX, e.scale, e.originX), Cs(t.y, e.y, e.scaleY, e.scale, e.originY);
3854
+ As(t.x, e.x, e.scaleX, e.scale, e.originX), As(t.y, e.y, e.scaleY, e.scale, e.originY);
3848
3855
  }
3849
- function vo(t, e) {
3850
- return mo(Iu(t.getBoundingClientRect(), e));
3856
+ function Po(t, e) {
3857
+ return go(Iu(t.getBoundingClientRect(), e));
3851
3858
  }
3852
3859
  function Uu(t, e, n) {
3853
- const i = vo(t, n), { scroll: s } = e;
3860
+ const i = Po(t, n), { scroll: s } = e;
3854
3861
  return s && (Ut(i.x, s.offset.x), Ut(i.y, s.offset.y)), i;
3855
3862
  }
3856
- const Po = ({ current: t }) => t ? t.ownerDocument.defaultView : null, Wu = /* @__PURE__ */ new WeakMap();
3863
+ const xo = ({ current: t }) => t ? t.ownerDocument.defaultView : null, Wu = /* @__PURE__ */ new WeakMap();
3857
3864
  class $u {
3858
3865
  constructor(e) {
3859
3866
  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;
@@ -3868,18 +3875,18 @@ class $u {
3868
3875
  }, o = (u, f) => {
3869
3876
  var d;
3870
3877
  const { drag: p, dragPropagation: m, onDragStart: P } = this.getProps();
3871
- if (p && !m && (this.openGlobalLock && this.openGlobalLock(), this.openGlobalLock = Er(p), !this.openGlobalLock))
3878
+ if (p && !m && (this.openGlobalLock && this.openGlobalLock(), this.openGlobalLock = Rr(p), !this.openGlobalLock))
3872
3879
  return;
3873
- this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), it((T) => {
3874
- let y = this.getAxisMotionValue(T).get() || 0;
3880
+ this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), it((x) => {
3881
+ let y = this.getAxisMotionValue(x).get() || 0;
3875
3882
  if (at.test(y)) {
3876
3883
  const { projection: v } = this.visualElement;
3877
3884
  if (v && v.layout) {
3878
- const w = v.layout.layoutBox[T];
3885
+ const w = v.layout.layoutBox[x];
3879
3886
  w && (y = Q(w) * (parseFloat(y) / 100));
3880
3887
  }
3881
3888
  }
3882
- this.originPoint[T] = y;
3889
+ this.originPoint[x] = y;
3883
3890
  }), P && M.postRender(() => P(u, f)), (d = this.removeWillChange) === null || d === void 0 || d.call(this), this.removeWillChange = Vn(this.visualElement, "transform");
3884
3891
  const { animationState: b } = this.visualElement;
3885
3892
  b && b.setActive("whileDrag", !0);
@@ -3897,7 +3904,7 @@ class $u {
3897
3904
  var f;
3898
3905
  return this.getAnimationState(u) === "paused" && ((f = this.getAxisMotionValue(u).animation) === null || f === void 0 ? void 0 : f.play());
3899
3906
  }), { dragSnapToOrigin: c } = this.getProps();
3900
- this.panSession = new uo(e, {
3907
+ this.panSession = new fo(e, {
3901
3908
  onSessionStart: s,
3902
3909
  onStart: o,
3903
3910
  onMove: r,
@@ -3906,7 +3913,7 @@ class $u {
3906
3913
  }, {
3907
3914
  transformPagePoint: this.visualElement.getTransformPagePoint(),
3908
3915
  dragSnapToOrigin: c,
3909
- contextWindow: Po(this.visualElement)
3916
+ contextWindow: xo(this.visualElement)
3910
3917
  });
3911
3918
  }
3912
3919
  stop(e, n) {
@@ -3955,7 +3962,7 @@ class $u {
3955
3962
  let r = Fu(s.layout.layoutBox, o);
3956
3963
  if (n) {
3957
3964
  const a = n(Bu(r));
3958
- this.hasMutatedConstraints = !!a, a && (r = mo(a));
3965
+ this.hasMutatedConstraints = !!a, a && (r = go(a));
3959
3966
  }
3960
3967
  return r;
3961
3968
  }
@@ -3982,7 +3989,7 @@ class $u {
3982
3989
  }
3983
3990
  startAxisValueAnimation(e, n) {
3984
3991
  const i = this.getAxisMotionValue(e);
3985
- return i.start(ui(e, i, 0, n, this.visualElement, !1, Vn(this.visualElement, e)));
3992
+ return i.start(fi(e, i, 0, n, this.visualElement, !1, Vn(this.visualElement, e)));
3986
3993
  }
3987
3994
  stopAnimation() {
3988
3995
  it((e) => this.getAxisMotionValue(e).stop());
@@ -4101,7 +4108,7 @@ class Gu extends wt {
4101
4108
  this.removeGroupControls(), this.removeListeners();
4102
4109
  }
4103
4110
  }
4104
- const As = (t) => (e, n) => {
4111
+ const Es = (t) => (e, n) => {
4105
4112
  t && M.postRender(() => t(e, n));
4106
4113
  };
4107
4114
  class Hu extends wt {
@@ -4109,16 +4116,16 @@ class Hu extends wt {
4109
4116
  super(...arguments), this.removePointerDownListener = K;
4110
4117
  }
4111
4118
  onPointerDown(e) {
4112
- this.session = new uo(e, this.createPanHandlers(), {
4119
+ this.session = new fo(e, this.createPanHandlers(), {
4113
4120
  transformPagePoint: this.node.getTransformPagePoint(),
4114
- contextWindow: Po(this.node)
4121
+ contextWindow: xo(this.node)
4115
4122
  });
4116
4123
  }
4117
4124
  createPanHandlers() {
4118
4125
  const { onPanSessionStart: e, onPanStart: n, onPan: i, onPanEnd: s } = this.node.getProps();
4119
4126
  return {
4120
- onSessionStart: As(e),
4121
- onStart: As(n),
4127
+ onSessionStart: Es(e),
4128
+ onStart: Es(n),
4122
4129
  onMove: i,
4123
4130
  onEnd: (o, r) => {
4124
4131
  delete this.session, s && M.postRender(() => s(o, r));
@@ -4156,7 +4163,7 @@ const De = {
4156
4163
  */
4157
4164
  hasEverUpdated: !1
4158
4165
  };
4159
- function Es(t, e) {
4166
+ function Rs(t, e) {
4160
4167
  return e.max === e.min ? 0 : t / (e.max - e.min) * 100;
4161
4168
  }
4162
4169
  const Zt = {
@@ -4168,21 +4175,21 @@ const Zt = {
4168
4175
  t = parseFloat(t);
4169
4176
  else
4170
4177
  return t;
4171
- const n = Es(t, e.target.x), i = Es(t, e.target.y);
4178
+ const n = Rs(t, e.target.x), i = Rs(t, e.target.y);
4172
4179
  return `${n}% ${i}%`;
4173
4180
  }
4174
4181
  }, Yu = {
4175
4182
  correct: (t, { treeScale: e, projectionDelta: n }) => {
4176
- const i = t, s = xt.parse(t);
4183
+ const i = t, s = Tt.parse(t);
4177
4184
  if (s.length > 5)
4178
4185
  return i;
4179
- const o = xt.createTransformer(t), r = typeof s[0] != "number" ? 1 : 0, a = n.x.scale * e.x, l = n.y.scale * e.y;
4186
+ const o = Tt.createTransformer(t), r = typeof s[0] != "number" ? 1 : 0, a = n.x.scale * e.x, l = n.y.scale * e.y;
4180
4187
  s[0 + r] /= a, s[1 + r] /= l;
4181
4188
  const c = O(a, l, 0.5);
4182
4189
  return typeof s[2 + r] == "number" && (s[2 + r] /= c), typeof s[3 + r] == "number" && (s[3 + r] /= c), o(s);
4183
4190
  }
4184
4191
  };
4185
- class Xu extends aa {
4192
+ class Xu extends la {
4186
4193
  /**
4187
4194
  * This only mounts projection nodes for components that
4188
4195
  * need measuring, we might want to do it for all components
@@ -4190,7 +4197,7 @@ class Xu extends aa {
4190
4197
  */
4191
4198
  componentDidMount() {
4192
4199
  const { visualElement: e, layoutGroup: n, switchLayoutGroup: i, layoutId: s } = this.props, { projection: o } = e;
4193
- Wa(qu), o && (n.group && n.group.add(o), i && i.register && s && i.register(o), o.root.didUpdate(), o.addEventListener("animationComplete", () => {
4200
+ $a(qu), o && (n.group && n.group.add(o), i && i.register && s && i.register(o), o.root.didUpdate(), o.addEventListener("animationComplete", () => {
4194
4201
  this.safeToRemove();
4195
4202
  }), o.setOptions({
4196
4203
  ...o.options,
@@ -4224,7 +4231,7 @@ class Xu extends aa {
4224
4231
  }
4225
4232
  function To(t) {
4226
4233
  const [e, n] = zu(), i = $(Kn);
4227
- return L.jsx(Xu, { ...t, layoutGroup: i, switchLayoutGroup: $(lr), isPresent: e, safeToRemove: n });
4234
+ return L.jsx(Xu, { ...t, layoutGroup: i, switchLayoutGroup: $(cr), isPresent: e, safeToRemove: n });
4228
4235
  }
4229
4236
  const qu = {
4230
4237
  borderRadius: {
@@ -4241,7 +4248,7 @@ const qu = {
4241
4248
  borderBottomLeftRadius: Zt,
4242
4249
  borderBottomRightRadius: Zt,
4243
4250
  boxShadow: Yu
4244
- }, xo = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], Zu = xo.length, Rs = (t) => typeof t == "string" ? parseFloat(t) : t, Vs = (t) => typeof t == "number" || S.test(t);
4251
+ }, bo = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], Zu = bo.length, Vs = (t) => typeof t == "string" ? parseFloat(t) : t, Ds = (t) => typeof t == "number" || S.test(t);
4245
4252
  function Ju(t, e, n, i, s, o) {
4246
4253
  s ? (t.opacity = O(
4247
4254
  0,
@@ -4250,68 +4257,68 @@ function Ju(t, e, n, i, s, o) {
4250
4257
  Qu(i)
4251
4258
  ), t.opacityExit = O(e.opacity !== void 0 ? e.opacity : 1, 0, tf(i))) : o && (t.opacity = O(e.opacity !== void 0 ? e.opacity : 1, n.opacity !== void 0 ? n.opacity : 1, i));
4252
4259
  for (let r = 0; r < Zu; r++) {
4253
- const a = `border${xo[r]}Radius`;
4254
- let l = Ds(e, a), c = Ds(n, a);
4260
+ const a = `border${bo[r]}Radius`;
4261
+ let l = Ms(e, a), c = Ms(n, a);
4255
4262
  if (l === void 0 && c === void 0)
4256
4263
  continue;
4257
- l || (l = 0), c || (c = 0), l === 0 || c === 0 || Vs(l) === Vs(c) ? (t[a] = Math.max(O(Rs(l), Rs(c), i), 0), (at.test(c) || at.test(l)) && (t[a] += "%")) : t[a] = c;
4264
+ l || (l = 0), c || (c = 0), l === 0 || c === 0 || Ds(l) === Ds(c) ? (t[a] = Math.max(O(Vs(l), Vs(c), i), 0), (at.test(c) || at.test(l)) && (t[a] += "%")) : t[a] = c;
4258
4265
  }
4259
4266
  (e.rotate || n.rotate) && (t.rotate = O(e.rotate || 0, n.rotate || 0, i));
4260
4267
  }
4261
- function Ds(t, e) {
4268
+ function Ms(t, e) {
4262
4269
  return t[e] !== void 0 ? t[e] : t.borderRadius;
4263
4270
  }
4264
- const Qu = bo(0, 0.5, to), tf = bo(0.5, 0.95, K);
4265
- function bo(t, e, n) {
4271
+ const Qu = wo(0, 0.5, eo), tf = wo(0.5, 0.95, K);
4272
+ function wo(t, e, n) {
4266
4273
  return (i) => i < t ? 0 : i > e ? 1 : n(ce(t, e, i));
4267
4274
  }
4268
- function Ms(t, e) {
4275
+ function ks(t, e) {
4269
4276
  t.min = e.min, t.max = e.max;
4270
4277
  }
4271
4278
  function nt(t, e) {
4272
- Ms(t.x, e.x), Ms(t.y, e.y);
4279
+ ks(t.x, e.x), ks(t.y, e.y);
4273
4280
  }
4274
- function ks(t, e) {
4281
+ function Ls(t, e) {
4275
4282
  t.translate = e.translate, t.scale = e.scale, t.originPoint = e.originPoint, t.origin = e.origin;
4276
4283
  }
4277
- function Ls(t, e, n, i, s) {
4284
+ function Fs(t, e, n, i, s) {
4278
4285
  return t -= e, t = Be(t, 1 / n, i), s !== void 0 && (t = Be(t, 1 / s, i)), t;
4279
4286
  }
4280
4287
  function ef(t, e = 0, n = 1, i = 0.5, s, o = t, r = t) {
4281
4288
  if (at.test(e) && (e = parseFloat(e), e = O(r.min, r.max, e / 100) - r.min), typeof e != "number")
4282
4289
  return;
4283
4290
  let a = O(o.min, o.max, i);
4284
- t === o && (a -= e), t.min = Ls(t.min, e, n, a, s), t.max = Ls(t.max, e, n, a, s);
4291
+ t === o && (a -= e), t.min = Fs(t.min, e, n, a, s), t.max = Fs(t.max, e, n, a, s);
4285
4292
  }
4286
- function Fs(t, e, [n, i, s], o, r) {
4293
+ function Os(t, e, [n, i, s], o, r) {
4287
4294
  ef(t, e[n], e[i], e[s], e.scale, o, r);
4288
4295
  }
4289
4296
  const nf = ["x", "scaleX", "originX"], sf = ["y", "scaleY", "originY"];
4290
- function Os(t, e, n, i) {
4291
- Fs(t.x, e, nf, n ? n.x : void 0, i ? i.x : void 0), Fs(t.y, e, sf, n ? n.y : void 0, i ? i.y : void 0);
4297
+ function js(t, e, n, i) {
4298
+ Os(t.x, e, nf, n ? n.x : void 0, i ? i.x : void 0), Os(t.y, e, sf, n ? n.y : void 0, i ? i.y : void 0);
4292
4299
  }
4293
- function js(t) {
4300
+ function _s(t) {
4294
4301
  return t.translate === 0 && t.scale === 1;
4295
4302
  }
4296
- function wo(t) {
4297
- return js(t.x) && js(t.y);
4303
+ function So(t) {
4304
+ return _s(t.x) && _s(t.y);
4298
4305
  }
4299
- function _s(t, e) {
4306
+ function Bs(t, e) {
4300
4307
  return t.min === e.min && t.max === e.max;
4301
4308
  }
4302
4309
  function rf(t, e) {
4303
- return _s(t.x, e.x) && _s(t.y, e.y);
4310
+ return Bs(t.x, e.x) && Bs(t.y, e.y);
4304
4311
  }
4305
- function Bs(t, e) {
4312
+ function Is(t, e) {
4306
4313
  return Math.round(t.min) === Math.round(e.min) && Math.round(t.max) === Math.round(e.max);
4307
4314
  }
4308
- function So(t, e) {
4309
- return Bs(t.x, e.x) && Bs(t.y, e.y);
4315
+ function Co(t, e) {
4316
+ return Is(t.x, e.x) && Is(t.y, e.y);
4310
4317
  }
4311
- function Is(t) {
4318
+ function Ns(t) {
4312
4319
  return Q(t.x) / Q(t.y);
4313
4320
  }
4314
- function Ns(t, e) {
4321
+ function Us(t, e) {
4315
4322
  return t.translate === e.translate && t.scale === e.scale && t.originPoint === e.originPoint;
4316
4323
  }
4317
4324
  class of {
@@ -4405,26 +4412,26 @@ function ff(t) {
4405
4412
  }
4406
4413
  function hf(t, e, n) {
4407
4414
  const i = z(t) ? t : ue(t);
4408
- return i.start(ui("", i, e, n)), i.animation;
4415
+ return i.start(fi("", i, e, n)), i.animation;
4409
4416
  }
4410
4417
  const Rt = {
4411
4418
  type: "projectionFrame",
4412
4419
  totalNodes: 0,
4413
4420
  resolvedTargetDeltas: 0,
4414
4421
  recalculatedProjection: 0
4415
- }, te = typeof window < "u" && window.MotionDebug !== void 0, mn = ["", "X", "Y", "Z"], df = { visibility: "hidden" }, Us = 1e3;
4422
+ }, te = typeof window < "u" && window.MotionDebug !== void 0, mn = ["", "X", "Y", "Z"], df = { visibility: "hidden" }, Ws = 1e3;
4416
4423
  let pf = 0;
4417
4424
  function gn(t, e, n, i) {
4418
4425
  const { latestValues: s } = e;
4419
4426
  s[t] && (n[t] = s[t], e.setStaticValue(t, 0), i && (i[t] = 0));
4420
4427
  }
4421
- function Co(t) {
4428
+ function Ao(t) {
4422
4429
  if (t.hasCheckedOptimisedAppear = !0, t.root === t)
4423
4430
  return !1;
4424
4431
  const { visualElement: e } = t.options;
4425
- return e ? lo(e) ? !0 : t.parent && !t.parent.hasCheckedOptimisedAppear ? Co(t.parent) : !1 : !1;
4432
+ return e ? co(e) ? !0 : t.parent && !t.parent.hasCheckedOptimisedAppear ? Ao(t.parent) : !1 : !1;
4426
4433
  }
4427
- function Ao({ attachResizeListener: t, defaultParent: e, measureScroll: n, checkIsScrollRoot: i, resetTransform: s }) {
4434
+ function Eo({ attachResizeListener: t, defaultParent: e, measureScroll: n, checkIsScrollRoot: i, resetTransform: s }) {
4428
4435
  return class {
4429
4436
  constructor(r = {}, a = e == null ? void 0 : e()) {
4430
4437
  this.id = pf++, 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 = () => {
@@ -4437,7 +4444,7 @@ function Ao({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4437
4444
  this.root === this && (this.nodes = new cf());
4438
4445
  }
4439
4446
  addEventListener(r, a) {
4440
- return this.eventHandlers.has(r) || this.eventHandlers.set(r, new fi()), this.eventHandlers.get(r).add(a);
4447
+ return this.eventHandlers.has(r) || this.eventHandlers.set(r, new hi()), this.eventHandlers.get(r).add(a);
4441
4448
  }
4442
4449
  notifyListeners(r, ...a) {
4443
4450
  const l = this.eventHandlers.get(r);
@@ -4458,7 +4465,7 @@ function Ao({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4458
4465
  let f;
4459
4466
  const d = () => this.root.updateBlockedByResize = !1;
4460
4467
  t(r, () => {
4461
- this.root.updateBlockedByResize = !0, f && f(), f = uf(d, 250), De.hasAnimatedSinceResize && (De.hasAnimatedSinceResize = !1, this.nodes.forEach($s));
4468
+ this.root.updateBlockedByResize = !0, f && f(), f = uf(d, 250), De.hasAnimatedSinceResize && (De.hasAnimatedSinceResize = !1, this.nodes.forEach(Ks));
4462
4469
  });
4463
4470
  }
4464
4471
  l && this.root.registerSharedNode(l, this), this.options.animate !== !1 && u && (l || c) && this.addEventListener("didUpdate", ({ delta: f, hasLayoutChanged: d, hasRelativeTargetChanged: p, layout: m }) => {
@@ -4466,17 +4473,17 @@ function Ao({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4466
4473
  this.target = void 0, this.relativeTarget = void 0;
4467
4474
  return;
4468
4475
  }
4469
- const P = this.options.transition || u.getDefaultTransition() || Rf, { onLayoutAnimationStart: b, onLayoutAnimationComplete: T } = u.getProps(), y = !this.targetLayout || !So(this.targetLayout, m) || p, v = !d && p;
4476
+ const P = this.options.transition || u.getDefaultTransition() || Rf, { onLayoutAnimationStart: b, onLayoutAnimationComplete: x } = u.getProps(), y = !this.targetLayout || !Co(this.targetLayout, m) || p, v = !d && p;
4470
4477
  if (this.options.layoutRoot || this.resumeFrom && this.resumeFrom.instance || v || d && (y || !this.currentAnimation)) {
4471
4478
  this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0), this.setAnimationOrigin(f, v);
4472
4479
  const w = {
4473
- ...ei(P, "layout"),
4480
+ ...ni(P, "layout"),
4474
4481
  onPlay: b,
4475
- onComplete: T
4482
+ onComplete: x
4476
4483
  };
4477
4484
  (u.shouldReduceMotion || this.options.layoutRoot) && (w.delay = 0, w.type = !1), this.startAnimation(w);
4478
4485
  } else
4479
- d || $s(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
4486
+ d || Ks(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
4480
4487
  this.targetLayout = m;
4481
4488
  });
4482
4489
  }
@@ -4511,7 +4518,7 @@ function Ao({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4511
4518
  this.options.onExitComplete && this.options.onExitComplete();
4512
4519
  return;
4513
4520
  }
4514
- if (window.HandoffCancelAllAnimations && Co(this) && window.HandoffCancelAllAnimations(), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty)
4521
+ if (window.HandoffCancelAllAnimations && Ao(this) && window.HandoffCancelAllAnimations(), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty)
4515
4522
  return;
4516
4523
  this.isLayoutDirty = !0;
4517
4524
  for (let u = 0; u < this.path.length; u++) {
@@ -4526,12 +4533,12 @@ function Ao({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4526
4533
  }
4527
4534
  update() {
4528
4535
  if (this.updateScheduled = !1, this.isUpdateBlocked()) {
4529
- this.unblockUpdate(), this.clearAllSnapshots(), this.nodes.forEach(Ws);
4536
+ this.unblockUpdate(), this.clearAllSnapshots(), this.nodes.forEach($s);
4530
4537
  return;
4531
4538
  }
4532
- this.isUpdating || this.nodes.forEach(Tf), this.isUpdating = !1, this.nodes.forEach(xf), this.nodes.forEach(mf), this.nodes.forEach(gf), this.clearAllSnapshots();
4539
+ this.isUpdating || this.nodes.forEach(xf), this.isUpdating = !1, this.nodes.forEach(Tf), this.nodes.forEach(mf), this.nodes.forEach(gf), this.clearAllSnapshots();
4533
4540
  const a = Pt.now();
4534
- W.delta = Tt(0, 1e3 / 60, a - W.timestamp), W.timestamp = a, W.isProcessing = !0, rn.update.process(W), rn.preRender.process(W), rn.render.process(W), W.isProcessing = !1;
4541
+ W.delta = xt(0, 1e3 / 60, a - W.timestamp), W.timestamp = a, W.isProcessing = !0, rn.update.process(W), rn.preRender.process(W), rn.render.process(W), W.isProcessing = !1;
4535
4542
  }
4536
4543
  didUpdate() {
4537
4544
  this.updateScheduled || (this.updateScheduled = !0, Un.read(this.scheduleUpdate));
@@ -4580,7 +4587,7 @@ function Ao({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4580
4587
  resetTransform() {
4581
4588
  if (!s)
4582
4589
  return;
4583
- const r = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, a = this.projectionDelta && !wo(this.projectionDelta), l = this.getTransformTemplate(), c = l ? l(this.latestValues, "") : void 0, u = c !== this.prevTransformTemplateValue;
4590
+ const r = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, a = this.projectionDelta && !So(this.projectionDelta), l = this.getTransformTemplate(), c = l ? l(this.latestValues, "") : void 0, u = c !== this.prevTransformTemplateValue;
4584
4591
  r && (a || Et(this.latestValues) || u) && (s(this.instance, c), this.shouldResetTransform = !1, this.scheduleRender());
4585
4592
  }
4586
4593
  measure(r = !0) {
@@ -4638,9 +4645,9 @@ function Ao({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4638
4645
  continue;
4639
4646
  kn(c.latestValues) && c.updateSnapshot();
4640
4647
  const u = B(), f = c.measurePageBox();
4641
- nt(u, f), Os(a, c.latestValues, c.snapshot ? c.snapshot.layoutBox : void 0, u);
4648
+ nt(u, f), js(a, c.latestValues, c.snapshot ? c.snapshot.layoutBox : void 0, u);
4642
4649
  }
4643
- return Et(this.latestValues) && Os(a, this.latestValues), a;
4650
+ return Et(this.latestValues) && js(a, this.latestValues), a;
4644
4651
  }
4645
4652
  setTargetDelta(r) {
4646
4653
  this.targetDelta = r, this.root.scheduleUpdateProjection(), this.isProjectionDirty = !0;
@@ -4672,7 +4679,7 @@ function Ao({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4672
4679
  p && p.layout && this.animationProgress !== 1 ? (this.relativeParent = p, this.forceRelativeParentToResolveTarget(), this.relativeTarget = B(), this.relativeTargetOrigin = B(), se(this.relativeTargetOrigin, this.layout.layoutBox, p.layout.layoutBox), nt(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
4673
4680
  }
4674
4681
  if (!(!this.relativeTarget && !this.targetDelta)) {
4675
- if (this.target || (this.target = B(), this.targetWithTransforms = B()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Mu(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : nt(this.target, this.layout.layoutBox), yo(this.target, this.targetDelta)) : nt(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget) {
4682
+ if (this.target || (this.target = B(), this.targetWithTransforms = B()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Mu(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : nt(this.target, this.layout.layoutBox), vo(this.target, this.targetDelta)) : nt(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget) {
4676
4683
  this.attemptToResolveRelativeTarget = !1;
4677
4684
  const p = this.getClosestProjectingParent();
4678
4685
  p && !!p.resumingFrom == !!this.resumingFrom && !p.options.layoutScroll && p.target && this.animationProgress !== 1 ? (this.relativeParent = p, this.forceRelativeParentToResolveTarget(), this.relativeTarget = B(), this.relativeTargetOrigin = B(), se(this.relativeTargetOrigin, this.target, p.target), nt(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
@@ -4682,7 +4689,7 @@ function Ao({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4682
4689
  }
4683
4690
  }
4684
4691
  getClosestProjectingParent() {
4685
- if (!(!this.parent || kn(this.parent.latestValues) || go(this.parent.latestValues)))
4692
+ if (!(!this.parent || kn(this.parent.latestValues) || yo(this.parent.latestValues)))
4686
4693
  return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();
4687
4694
  }
4688
4695
  isProjecting() {
@@ -4705,7 +4712,7 @@ function Ao({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4705
4712
  this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
4706
4713
  return;
4707
4714
  }
4708
- !this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (ks(this.prevProjectionDelta.x, this.projectionDelta.x), ks(this.prevProjectionDelta.y, this.projectionDelta.y)), ie(this.projectionDelta, this.layoutCorrected, m, this.latestValues), (this.treeScale.x !== d || this.treeScale.y !== p || !Ns(this.projectionDelta.x, this.prevProjectionDelta.x) || !Ns(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", m)), te && Rt.recalculatedProjection++;
4715
+ !this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (Ls(this.prevProjectionDelta.x, this.projectionDelta.x), Ls(this.prevProjectionDelta.y, this.projectionDelta.y)), ie(this.projectionDelta, this.layoutCorrected, m, this.latestValues), (this.treeScale.x !== d || this.treeScale.y !== p || !Us(this.projectionDelta.x, this.prevProjectionDelta.x) || !Us(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", m)), te && Rt.recalculatedProjection++;
4709
4716
  }
4710
4717
  hide() {
4711
4718
  this.isVisible = !1;
@@ -4727,17 +4734,17 @@ function Ao({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4727
4734
  setAnimationOrigin(r, a = !1) {
4728
4735
  const l = this.snapshot, c = l ? l.latestValues : {}, u = { ...this.latestValues }, f = Nt();
4729
4736
  (!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !a;
4730
- const d = B(), p = l ? l.source : void 0, m = this.layout ? this.layout.source : void 0, P = p !== m, b = this.getStack(), T = !b || b.members.length <= 1, y = !!(P && !T && this.options.crossfade === !0 && !this.path.some(Ef));
4737
+ const d = B(), p = l ? l.source : void 0, m = this.layout ? this.layout.source : void 0, P = p !== m, b = this.getStack(), x = !b || b.members.length <= 1, y = !!(P && !x && this.options.crossfade === !0 && !this.path.some(Ef));
4731
4738
  this.animationProgress = 0;
4732
4739
  let v;
4733
4740
  this.mixTargetDelta = (w) => {
4734
4741
  const A = w / 1e3;
4735
- Ks(f.x, r.x, A), Ks(f.y, r.y, A), this.setTargetDelta(f), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (se(d, this.layout.layoutBox, this.relativeParent.layout.layoutBox), Af(this.relativeTarget, this.relativeTargetOrigin, d, A), v && rf(this.relativeTarget, v) && (this.isProjectionDirty = !1), v || (v = B()), nt(v, this.relativeTarget)), P && (this.animationValues = u, Ju(u, c, this.latestValues, A, y, T)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = A;
4742
+ Gs(f.x, r.x, A), Gs(f.y, r.y, A), this.setTargetDelta(f), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (se(d, this.layout.layoutBox, this.relativeParent.layout.layoutBox), Af(this.relativeTarget, this.relativeTargetOrigin, d, A), v && rf(this.relativeTarget, v) && (this.isProjectionDirty = !1), v || (v = B()), nt(v, this.relativeTarget)), P && (this.animationValues = u, Ju(u, c, this.latestValues, A, y, x)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = A;
4736
4743
  }, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
4737
4744
  }
4738
4745
  startAnimation(r) {
4739
4746
  this.notifyListeners("animationStart"), this.currentAnimation && this.currentAnimation.stop(), this.resumingFrom && this.resumingFrom.currentAnimation && this.resumingFrom.currentAnimation.stop(), this.pendingAnimation && (mt(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = M.update(() => {
4740
- De.hasAnimatedSinceResize = !0, this.currentAnimation = hf(0, Us, {
4747
+ De.hasAnimatedSinceResize = !0, this.currentAnimation = hf(0, Ws, {
4741
4748
  ...r,
4742
4749
  onUpdate: (a) => {
4743
4750
  this.mixTargetDelta(a), r.onUpdate && r.onUpdate(a);
@@ -4754,13 +4761,13 @@ function Ao({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4754
4761
  r && r.exitAnimationComplete(), this.resumingFrom = this.currentAnimation = this.animationValues = void 0, this.notifyListeners("animationComplete");
4755
4762
  }
4756
4763
  finishAnimation() {
4757
- this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(Us), this.currentAnimation.stop()), this.completeAnimation();
4764
+ this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(Ws), this.currentAnimation.stop()), this.completeAnimation();
4758
4765
  }
4759
4766
  applyTransformsToTarget() {
4760
4767
  const r = this.getLead();
4761
4768
  let { targetWithTransforms: a, target: l, layout: c, latestValues: u } = r;
4762
4769
  if (!(!a || !l || !c)) {
4763
- if (this !== r && this.layout && c && Eo(this.options.animationType, this.layout.layoutBox, c.layoutBox)) {
4770
+ if (this !== r && this.layout && c && Ro(this.options.animationType, this.layout.layoutBox, c.layoutBox)) {
4764
4771
  l = this.target || B();
4765
4772
  const f = Q(this.layout.layoutBox.x);
4766
4773
  l.x.min = r.target.x.min, l.x.max = l.x.min + f;
@@ -4845,11 +4852,11 @@ function Ao({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4845
4852
  for (const P in Le) {
4846
4853
  if (d[P] === void 0)
4847
4854
  continue;
4848
- const { correct: b, applyTo: T } = Le[P], y = c.transform === "none" ? d[P] : b(d[P], f);
4849
- if (T) {
4850
- const v = T.length;
4855
+ const { correct: b, applyTo: x } = Le[P], y = c.transform === "none" ? d[P] : b(d[P], f);
4856
+ if (x) {
4857
+ const v = x.length;
4851
4858
  for (let w = 0; w < v; w++)
4852
- c[T[w]] = y;
4859
+ c[x[w]] = y;
4853
4860
  } else
4854
4861
  c[P] = y;
4855
4862
  }
@@ -4863,7 +4870,7 @@ function Ao({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4863
4870
  this.root.nodes.forEach((r) => {
4864
4871
  var a;
4865
4872
  return (a = r.currentAnimation) === null || a === void 0 ? void 0 : a.stop();
4866
- }), this.root.nodes.forEach(Ws), this.root.sharedNodes.clear();
4873
+ }), this.root.nodes.forEach($s), this.root.sharedNodes.clear();
4867
4874
  }
4868
4875
  };
4869
4876
  }
@@ -4878,7 +4885,7 @@ function gf(t) {
4878
4885
  o === "size" ? it((f) => {
4879
4886
  const d = r ? n.measuredBox[f] : n.layoutBox[f], p = Q(d);
4880
4887
  d.min = i[f].min, d.max = d.min + p;
4881
- }) : Eo(o, n.layoutBox, i) && it((f) => {
4888
+ }) : Ro(o, n.layoutBox, i) && it((f) => {
4882
4889
  const d = r ? n.measuredBox[f] : n.layoutBox[f], p = Q(i[f]);
4883
4890
  d.max = d.min + p, t.relativeTarget && !t.currentAnimation && (t.isProjectionDirty = !0, t.relativeTarget[f].max = t.relativeTarget[f].min + p);
4884
4891
  });
@@ -4886,7 +4893,7 @@ function gf(t) {
4886
4893
  ie(a, i, n.layoutBox);
4887
4894
  const l = Nt();
4888
4895
  r ? ie(l, t.applyTransform(s, !0), n.measuredBox) : ie(l, i, n.layoutBox);
4889
- const c = !wo(a);
4896
+ const c = !So(a);
4890
4897
  let u = !1;
4891
4898
  if (!t.resumeFrom) {
4892
4899
  const f = t.getClosestProjectingParent();
@@ -4896,7 +4903,7 @@ function gf(t) {
4896
4903
  const m = B();
4897
4904
  se(m, n.layoutBox, d.layoutBox);
4898
4905
  const P = B();
4899
- se(P, i, p.layoutBox), So(m, P) || (u = !0), f.options.layoutRoot && (t.relativeTarget = P, t.relativeTargetOrigin = m, t.relativeParent = f);
4906
+ se(P, i, p.layoutBox), Co(m, P) || (u = !0), f.options.layoutRoot && (t.relativeTarget = P, t.relativeTargetOrigin = m, t.relativeParent = f);
4900
4907
  }
4901
4908
  }
4902
4909
  }
@@ -4923,17 +4930,17 @@ function vf(t) {
4923
4930
  function Pf(t) {
4924
4931
  t.clearSnapshot();
4925
4932
  }
4926
- function Ws(t) {
4933
+ function $s(t) {
4927
4934
  t.clearMeasurements();
4928
4935
  }
4929
- function Tf(t) {
4936
+ function xf(t) {
4930
4937
  t.isLayoutDirty = !1;
4931
4938
  }
4932
- function xf(t) {
4939
+ function Tf(t) {
4933
4940
  const { visualElement: e } = t.options;
4934
4941
  e && e.getProps().onBeforeLayoutMeasure && e.notify("BeforeLayoutMeasure"), t.resetTransform();
4935
4942
  }
4936
- function $s(t) {
4943
+ function Ks(t) {
4937
4944
  t.finishAnimation(), t.targetDelta = t.relativeTarget = t.target = void 0, t.isProjectionDirty = !0;
4938
4945
  }
4939
4946
  function bf(t) {
@@ -4948,14 +4955,14 @@ function Sf(t) {
4948
4955
  function Cf(t) {
4949
4956
  t.removeLeadSnapshot();
4950
4957
  }
4951
- function Ks(t, e, n) {
4958
+ function Gs(t, e, n) {
4952
4959
  t.translate = O(e.translate, 0, n), t.scale = O(e.scale, 1, n), t.origin = e.origin, t.originPoint = e.originPoint;
4953
4960
  }
4954
- function Gs(t, e, n, i) {
4961
+ function Hs(t, e, n, i) {
4955
4962
  t.min = O(e.min, n.min, i), t.max = O(e.max, n.max, i);
4956
4963
  }
4957
4964
  function Af(t, e, n, i) {
4958
- Gs(t.x, e.x, n.x, i), Gs(t.y, e.y, n.y, i);
4965
+ Hs(t.x, e.x, n.x, i), Hs(t.y, e.y, n.y, i);
4959
4966
  }
4960
4967
  function Ef(t) {
4961
4968
  return t.animationValues && t.animationValues.opacityExit !== void 0;
@@ -4963,21 +4970,21 @@ function Ef(t) {
4963
4970
  const Rf = {
4964
4971
  duration: 0.45,
4965
4972
  ease: [0.4, 0, 0.1, 1]
4966
- }, Hs = (t) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(t), zs = Hs("applewebkit/") && !Hs("chrome/") ? Math.round : K;
4967
- function Ys(t) {
4968
- t.min = zs(t.min), t.max = zs(t.max);
4973
+ }, zs = (t) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(t), Ys = zs("applewebkit/") && !zs("chrome/") ? Math.round : K;
4974
+ function Xs(t) {
4975
+ t.min = Ys(t.min), t.max = Ys(t.max);
4969
4976
  }
4970
4977
  function Vf(t) {
4971
- Ys(t.x), Ys(t.y);
4978
+ Xs(t.x), Xs(t.y);
4972
4979
  }
4973
- function Eo(t, e, n) {
4974
- return t === "position" || t === "preserve-aspect" && !Du(Is(e), Is(n), 0.2);
4980
+ function Ro(t, e, n) {
4981
+ return t === "position" || t === "preserve-aspect" && !Du(Ns(e), Ns(n), 0.2);
4975
4982
  }
4976
4983
  function Df(t) {
4977
4984
  var e;
4978
4985
  return t !== t.root && ((e = t.scroll) === null || e === void 0 ? void 0 : e.wasRoot);
4979
4986
  }
4980
- const Mf = Ao({
4987
+ const Mf = Eo({
4981
4988
  attachResizeListener: (t, e) => ct(t, "resize", e),
4982
4989
  measureScroll: () => ({
4983
4990
  x: document.documentElement.scrollLeft || document.body.scrollLeft,
@@ -4986,7 +4993,7 @@ const Mf = Ao({
4986
4993
  checkIsScrollRoot: () => !0
4987
4994
  }), yn = {
4988
4995
  current: void 0
4989
- }, Ro = Ao({
4996
+ }, Vo = Eo({
4990
4997
  measureScroll: (t) => ({
4991
4998
  x: t.scrollLeft,
4992
4999
  y: t.scrollTop
@@ -5008,12 +5015,12 @@ const Mf = Ao({
5008
5015
  },
5009
5016
  drag: {
5010
5017
  Feature: Gu,
5011
- ProjectionNode: Ro,
5018
+ ProjectionNode: Vo,
5012
5019
  MeasureLayout: To
5013
5020
  }
5014
- }, Fn = { current: null }, Vo = { current: !1 };
5021
+ }, Fn = { current: null }, Do = { current: !1 };
5015
5022
  function Lf() {
5016
- if (Vo.current = !0, !!Nn)
5023
+ if (Do.current = !0, !!Nn)
5017
5024
  if (window.matchMedia) {
5018
5025
  const t = window.matchMedia("(prefers-reduced-motion)"), e = () => Fn.current = t.matches;
5019
5026
  t.addListener(e), e();
@@ -5024,7 +5031,7 @@ function Ff(t, e, n) {
5024
5031
  for (const i in e) {
5025
5032
  const s = e[i], o = n[i];
5026
5033
  if (z(s))
5027
- t.addValue(i, s), process.env.NODE_ENV === "development" && hi(s.version === "11.3.19", `Attempting to mix Framer Motion versions ${s.version} with 11.3.19 may not work as expected.`);
5034
+ t.addValue(i, s), process.env.NODE_ENV === "development" && di(s.version === "11.3.21", `Attempting to mix Framer Motion versions ${s.version} with 11.3.21 may not work as expected.`);
5028
5035
  else if (z(o))
5029
5036
  t.addValue(i, ue(s, { owner: t }));
5030
5037
  else if (o !== s)
@@ -5040,7 +5047,7 @@ function Ff(t, e, n) {
5040
5047
  e[i] === void 0 && t.removeValue(i);
5041
5048
  return e;
5042
5049
  }
5043
- const Xs = /* @__PURE__ */ new WeakMap(), Of = [...Or, H, xt], jf = (t) => Of.find(Fr(t)), qs = [
5050
+ const qs = /* @__PURE__ */ new WeakMap(), Of = [...jr, H, Tt], jf = (t) => Of.find(Or(t)), Zs = [
5044
5051
  "AnimationStart",
5045
5052
  "AnimationComplete",
5046
5053
  "Update",
@@ -5061,13 +5068,13 @@ class Bf {
5061
5068
  return {};
5062
5069
  }
5063
5070
  constructor({ parent: e, props: n, presenceContext: i, reducedMotionConfig: s, blockInitialAnimation: o, visualState: r }, a = {}) {
5064
- this.applyWillChange = !1, this.resolveKeyframes = (d, p, m, P) => new this.KeyframeResolver(d, p, m, 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 = ni, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
5071
+ this.applyWillChange = !1, this.resolveKeyframes = (d, p, m, P) => new this.KeyframeResolver(d, p, m, 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 = ii, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
5065
5072
  this.isRenderScheduled = !1, this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
5066
5073
  }, this.isRenderScheduled = !1, this.scheduleRender = () => {
5067
5074
  this.isRenderScheduled || (this.isRenderScheduled = !0, M.render(this.render, !1, !0));
5068
5075
  };
5069
5076
  const { latestValues: l, renderState: c } = r;
5070
- 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 = We(n), this.isVariantNode = ur(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
5077
+ 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 = We(n), this.isVariantNode = fr(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
5071
5078
  const { willChange: u, ...f } = this.scrapeMotionValuesFromProps(n, {}, this);
5072
5079
  for (const d in f) {
5073
5080
  const p = f[d];
@@ -5075,10 +5082,10 @@ class Bf {
5075
5082
  }
5076
5083
  }
5077
5084
  mount(e) {
5078
- this.current = e, Xs.set(e, this), this.projection && !this.projection.instance && this.projection.mount(e), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((n, i) => this.bindToMotionValue(i, n)), Vo.current || Lf(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : Fn.current, process.env.NODE_ENV !== "production" && hi(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);
5085
+ this.current = e, qs.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)), Do.current || Lf(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : Fn.current, process.env.NODE_ENV !== "production" && di(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);
5079
5086
  }
5080
5087
  unmount() {
5081
- Xs.delete(this.current), this.projection && this.projection.unmount(), mt(this.notifyUpdate), mt(this.render), this.valueSubscriptions.forEach((e) => e()), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent && this.parent.children.delete(this);
5088
+ qs.delete(this.current), this.projection && this.projection.unmount(), mt(this.notifyUpdate), mt(this.render), this.valueSubscriptions.forEach((e) => e()), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent && this.parent.children.delete(this);
5082
5089
  for (const e in this.events)
5083
5090
  this.events[e].clear();
5084
5091
  for (const e in this.features) {
@@ -5134,8 +5141,8 @@ class Bf {
5134
5141
  */
5135
5142
  update(e, n) {
5136
5143
  (e.transformTemplate || this.props.transformTemplate) && this.scheduleRender(), this.prevProps = this.props, this.props = e, this.prevPresenceContext = this.presenceContext, this.presenceContext = n;
5137
- for (let i = 0; i < qs.length; i++) {
5138
- const s = qs[i];
5144
+ for (let i = 0; i < Zs.length; i++) {
5145
+ const s = Zs[i];
5139
5146
  this.propEventSubscriptions[s] && (this.propEventSubscriptions[s](), delete this.propEventSubscriptions[s]);
5140
5147
  const o = "on" + s, r = e[o];
5141
5148
  r && (this.propEventSubscriptions[s] = this.on(s, r));
@@ -5220,7 +5227,7 @@ class Bf {
5220
5227
  readValue(e, n) {
5221
5228
  var i;
5222
5229
  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);
5223
- return s != null && (typeof s == "string" && (kr(s) || Mr(s)) ? s = parseFloat(s) : !jf(s) && xt.test(n) && (s = $r(e, n)), this.setBaseTarget(e, z(s) ? s.get() : s)), z(s) ? s.get() : s;
5230
+ return s != null && (typeof s == "string" && (Lr(s) || kr(s)) ? s = parseFloat(s) : !jf(s) && Tt.test(n) && (s = Kr(e, n)), this.setBaseTarget(e, z(s) ? s.get() : s)), z(s) ? s.get() : s;
5224
5231
  }
5225
5232
  /**
5226
5233
  * Set the base target to later animate back to. This is currently
@@ -5238,7 +5245,7 @@ class Bf {
5238
5245
  const { initial: i } = this.props;
5239
5246
  let s;
5240
5247
  if (typeof i == "string" || typeof i == "object") {
5241
- const r = Qn(this.props, i, (n = this.presenceContext) === null || n === void 0 ? void 0 : n.custom);
5248
+ const r = ti(this.props, i, (n = this.presenceContext) === null || n === void 0 ? void 0 : n.custom);
5242
5249
  r && (s = r[e]);
5243
5250
  }
5244
5251
  if (i && s !== void 0)
@@ -5247,15 +5254,15 @@ class Bf {
5247
5254
  return o !== void 0 && !z(o) ? o : this.initialValues[e] !== void 0 && s === void 0 ? void 0 : this.baseTarget[e];
5248
5255
  }
5249
5256
  on(e, n) {
5250
- return this.events[e] || (this.events[e] = new fi()), this.events[e].add(n);
5257
+ return this.events[e] || (this.events[e] = new hi()), this.events[e].add(n);
5251
5258
  }
5252
5259
  notify(e, ...n) {
5253
5260
  this.events[e] && this.events[e].notify(...n);
5254
5261
  }
5255
5262
  }
5256
- class Do extends Bf {
5263
+ class Mo extends Bf {
5257
5264
  constructor() {
5258
- super(...arguments), this.KeyframeResolver = Kr;
5265
+ super(...arguments), this.KeyframeResolver = Gr;
5259
5266
  }
5260
5267
  sortInstanceNodePosition(e, n) {
5261
5268
  return e.compareDocumentPosition(n) & 2 ? 1 : -1;
@@ -5270,27 +5277,27 @@ class Do extends Bf {
5270
5277
  function If(t) {
5271
5278
  return window.getComputedStyle(t);
5272
5279
  }
5273
- class Nf extends Do {
5280
+ class Nf extends Mo {
5274
5281
  constructor() {
5275
- super(...arguments), this.type = "html", this.applyWillChange = !0, this.renderInstance = vr;
5282
+ super(...arguments), this.type = "html", this.applyWillChange = !0, this.renderInstance = Pr;
5276
5283
  }
5277
5284
  readValueFromInstance(e, n) {
5278
5285
  if (bt.has(n)) {
5279
- const i = si(n);
5286
+ const i = ri(n);
5280
5287
  return i && i.default || 0;
5281
5288
  } else {
5282
- const i = If(e), s = (dr(n) ? i.getPropertyValue(n) : i[n]) || 0;
5289
+ const i = If(e), s = (mr(n) ? i.getPropertyValue(n) : i[n]) || 0;
5283
5290
  return typeof s == "string" ? s.trim() : s;
5284
5291
  }
5285
5292
  }
5286
5293
  measureInstanceViewportBox(e, { transformPagePoint: n }) {
5287
- return vo(e, n);
5294
+ return Po(e, n);
5288
5295
  }
5289
5296
  build(e, n, i) {
5290
- Yn(e, n, i.transformTemplate);
5297
+ Xn(e, n, i.transformTemplate);
5291
5298
  }
5292
5299
  scrapeMotionValuesFromProps(e, n, i) {
5293
- return Jn(e, n, i);
5300
+ return Qn(e, n, i);
5294
5301
  }
5295
5302
  handleChildMotionValue() {
5296
5303
  this.childSubscription && (this.childSubscription(), delete this.childSubscription);
@@ -5300,7 +5307,7 @@ class Nf extends Do {
5300
5307
  }));
5301
5308
  }
5302
5309
  }
5303
- class Uf extends Do {
5310
+ class Uf extends Mo {
5304
5311
  constructor() {
5305
5312
  super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = B;
5306
5313
  }
@@ -5309,29 +5316,29 @@ class Uf extends Do {
5309
5316
  }
5310
5317
  readValueFromInstance(e, n) {
5311
5318
  if (bt.has(n)) {
5312
- const i = si(n);
5319
+ const i = ri(n);
5313
5320
  return i && i.default || 0;
5314
5321
  }
5315
- return n = Pr.has(n) ? n : Ue(n), e.getAttribute(n);
5322
+ return n = xr.has(n) ? n : Ue(n), e.getAttribute(n);
5316
5323
  }
5317
5324
  scrapeMotionValuesFromProps(e, n, i) {
5318
- return xr(e, n, i);
5325
+ return br(e, n, i);
5319
5326
  }
5320
5327
  build(e, n, i) {
5321
- qn(e, n, this.isSVGTag, i.transformTemplate);
5328
+ Zn(e, n, this.isSVGTag, i.transformTemplate);
5322
5329
  }
5323
5330
  renderInstance(e, n, i, s) {
5324
5331
  Tr(e, n, i, s);
5325
5332
  }
5326
5333
  mount(e) {
5327
- this.isSVGTag = Zn(e.tagName), super.mount(e);
5334
+ this.isSVGTag = Jn(e.tagName), super.mount(e);
5328
5335
  }
5329
5336
  }
5330
5337
  const Wf = (t, e) => Gn(t) ? new Uf(e) : new Nf(e, {
5331
- allowProjection: t !== er
5338
+ allowProjection: t !== nr
5332
5339
  }), $f = {
5333
5340
  layout: {
5334
- ProjectionNode: Ro,
5341
+ ProjectionNode: Vo,
5335
5342
  MeasureLayout: To
5336
5343
  }
5337
5344
  }, Kf = {
@@ -5339,7 +5346,7 @@ const Wf = (t, e) => Gn(t) ? new Uf(e) : new Nf(e, {
5339
5346
  ...kl,
5340
5347
  ...kf,
5341
5348
  ...$f
5342
- }, Gf = /* @__PURE__ */ Na((t, e) => Pl(t, e, Kf, Wf));
5349
+ }, Gf = /* @__PURE__ */ Ua((t, e) => Pl(t, e, Kf, Wf));
5343
5350
  class Hf extends On.Component {
5344
5351
  getSnapshotBeforeUpdate(e) {
5345
5352
  const n = this.props.childRef.current;
@@ -5365,7 +5372,7 @@ function zf({ children: t, isPresent: e }) {
5365
5372
  top: 0,
5366
5373
  left: 0
5367
5374
  }), { nonce: o } = $(In);
5368
- return tr(() => {
5375
+ return er(() => {
5369
5376
  const { width: r, height: a, top: l, left: c } = s.current;
5370
5377
  if (e || !i.current || !r || !a)
5371
5378
  return;
@@ -5385,7 +5392,7 @@ function zf({ children: t, isPresent: e }) {
5385
5392
  }, [e]), L.jsx(Hf, { isPresent: e, childRef: i, sizeRef: s, children: On.cloneElement(t, { ref: i }) });
5386
5393
  }
5387
5394
  const Yf = ({ children: t, initial: e, isPresent: n, onExitComplete: i, custom: s, presenceAffectsLayout: o, mode: r }) => {
5388
- const a = ti(Xf), l = _n(), c = Mt(
5395
+ const a = ei(Xf), l = _n(), c = Mt(
5389
5396
  () => ({
5390
5397
  id: l,
5391
5398
  initial: e,
@@ -5417,16 +5424,16 @@ function Xf() {
5417
5424
  return /* @__PURE__ */ new Map();
5418
5425
  }
5419
5426
  const Ce = (t) => t.key || "";
5420
- function Zs(t) {
5427
+ function Js(t) {
5421
5428
  const e = [];
5422
- return la.forEach(t, (n) => {
5423
- ca(n) && e.push(n);
5429
+ return ca.forEach(t, (n) => {
5430
+ ua(n) && e.push(n);
5424
5431
  }), e;
5425
5432
  }
5426
5433
  const qf = ({ children: t, exitBeforeEnter: e, custom: n, initial: i = !0, onExitComplete: s, presenceAffectsLayout: o = !0, mode: r = "sync" }) => {
5427
5434
  pt(!e, "Replace exitBeforeEnter with mode='wait'");
5428
- const a = Mt(() => Zs(t), [t]), l = a.map(Ce), c = J(!0), u = J(a), f = ti(() => /* @__PURE__ */ new Map()), [d, p] = _t(a), [m, P] = _t(a);
5429
- sr(() => {
5435
+ const a = Mt(() => Js(t), [t]), l = a.map(Ce), c = J(!0), u = J(a), f = ei(() => /* @__PURE__ */ new Map()), [d, p] = _t(a), [m, P] = _t(a);
5436
+ rr(() => {
5430
5437
  c.current = !1, u.current = a;
5431
5438
  for (let y = 0; y < m.length; y++) {
5432
5439
  const v = Ce(m[y]);
@@ -5440,11 +5447,11 @@ const qf = ({ children: t, exitBeforeEnter: e, custom: n, initial: i = !0, onExi
5440
5447
  const w = m[v], A = Ce(w);
5441
5448
  l.includes(A) || (y.splice(v, 0, w), b.push(w));
5442
5449
  }
5443
- r === "wait" && b.length && (y = b), P(Zs(y)), p(a);
5450
+ r === "wait" && b.length && (y = b), P(Js(y)), p(a);
5444
5451
  return;
5445
5452
  }
5446
5453
  process.env.NODE_ENV !== "production" && r === "wait" && m.length > 1 && console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);
5447
- const { forceRender: T } = $(Kn);
5454
+ const { forceRender: x } = $(Kn);
5448
5455
  return L.jsx(L.Fragment, { children: m.map((y) => {
5449
5456
  const v = Ce(y), w = a === m || l.includes(v), A = () => {
5450
5457
  if (f.has(v))
@@ -5454,7 +5461,7 @@ const qf = ({ children: t, exitBeforeEnter: e, custom: n, initial: i = !0, onExi
5454
5461
  let F = !0;
5455
5462
  f.forEach((q) => {
5456
5463
  q || (F = !1);
5457
- }), F && (T == null || T(), P(u.current), s && s());
5464
+ }), F && (x == null || x(), P(u.current), s && s());
5458
5465
  };
5459
5466
  return L.jsx(Yf, { isPresent: w, initial: !c.current || i ? void 0 : !1, custom: w ? void 0 : n, presenceAffectsLayout: o, mode: r, onExitComplete: w ? void 0 : A, children: y }, v);
5460
5467
  }) });
@@ -5463,22 +5470,22 @@ function Me(t) {
5463
5470
  var e = new Error(t);
5464
5471
  return e.source = "ulid", e;
5465
5472
  }
5466
- var di = "0123456789ABCDEFGHJKMNPQRSTVWXYZ", re = di.length, Js = Math.pow(2, 48) - 1, Zf = 10, Jf = 16;
5473
+ var pi = "0123456789ABCDEFGHJKMNPQRSTVWXYZ", re = pi.length, Qs = Math.pow(2, 48) - 1, Zf = 10, Jf = 16;
5467
5474
  function Qf(t) {
5468
5475
  var e = Math.floor(t() * re);
5469
- return e === re && (e = re - 1), di.charAt(e);
5476
+ return e === re && (e = re - 1), pi.charAt(e);
5470
5477
  }
5471
5478
  function th(t, e) {
5472
5479
  if (isNaN(t))
5473
5480
  throw new Error(t + " must be a number");
5474
- if (t > Js)
5475
- throw Me("cannot encode time greater than " + Js);
5481
+ if (t > Qs)
5482
+ throw Me("cannot encode time greater than " + Qs);
5476
5483
  if (t < 0)
5477
5484
  throw Me("time must be positive");
5478
5485
  if (Number.isInteger(t) === !1)
5479
5486
  throw Me("time must be an integer");
5480
5487
  for (var n = void 0, i = ""; e > 0; e--)
5481
- n = t % re, i = di.charAt(n) + i, t = (t - n) / re;
5488
+ n = t % re, i = pi.charAt(n) + i, t = (t - n) / re;
5482
5489
  return i;
5483
5490
  }
5484
5491
  function eh(t, e) {
@@ -5519,7 +5526,7 @@ function ih(t) {
5519
5526
  };
5520
5527
  }
5521
5528
  var sh = ih();
5522
- const Qs = ({
5529
+ const tr = ({
5523
5530
  onMousedown: t
5524
5531
  }) => (ot(() => (document.addEventListener("mousedown", t), () => {
5525
5532
  document.removeEventListener("mousedown", t);
@@ -5533,7 +5540,7 @@ const Qs = ({
5533
5540
  mainEl: ah,
5534
5541
  "picker-el": "acrool-react-picker__picker-el",
5535
5542
  pickerEl: lh
5536
- }, Mo = (t, e) => (n) => {
5543
+ }, ko = (t, e) => (n) => {
5537
5544
  e.current = n, t && (typeof t == "function" ? t(n) : t && (t.current = n));
5538
5545
  }, ch = "acrool-react-picker__motion-animation-wrapper", uh = {
5539
5546
  "motion-animation-wrapper": "acrool-react-picker__motion-animation-wrapper",
@@ -5558,9 +5565,9 @@ const hh = (t, e, n) => {
5558
5565
  return;
5559
5566
  const o = s.getBoundingClientRect(), r = i.getBoundingClientRect(), a = window.innerHeight, l = window.innerWidth, c = window.pageYOffset || document.documentElement.scrollTop, u = window.pageXOffset || document.documentElement.scrollLeft, f = 8, d = r.top - f, p = a - r.bottom - f;
5560
5567
  let m = p >= d ? lt.bottom : lt.top, P = m === lt.bottom ? p : d;
5561
- const b = o.width, T = r.left + b < l, y = r.right - b > 0;
5568
+ const b = o.width, x = r.left + b < l, y = r.right - b > 0;
5562
5569
  let v = Jt.left;
5563
- !T && y ? v = Jt.right : !T && !y && (v = Jt.left), n(m), s.style.top = m === lt.bottom ? `${r.bottom + c}px` : `${r.top + c - P}px`, s.style.left = v === Jt.left ? `${r.left + u}px` : `${r.right + u - b}px`, s.style.minWidth = `${r.width}px`, s.style.height = `${P}px`, s.style.transformOrigin = m === lt.bottom ? "top" : "bottom", s.style.flexDirection = m === lt.bottom ? "column" : "column-reverse";
5570
+ !x && y ? v = Jt.right : !x && !y && (v = Jt.left), n(m), s.style.top = m === lt.bottom ? `${r.bottom + c}px` : `${r.top + c - P}px`, s.style.left = v === Jt.left ? `${r.left + u}px` : `${r.right + u - b}px`, s.style.minWidth = `${r.width}px`, s.style.height = `${P}px`, s.style.transformOrigin = m === lt.bottom ? "top" : "bottom", s.style.flexDirection = m === lt.bottom ? "column" : "column-reverse";
5564
5571
  }, dh = {
5565
5572
  variants: {
5566
5573
  initial: { position: "absolute", zIndex: 999, opacity: 0, transition: { type: "spring" } },
@@ -5581,7 +5588,7 @@ const hh = (t, e, n) => {
5581
5588
  isDebug: e = !1,
5582
5589
  anchorRef: n
5583
5590
  }, i) => {
5584
- const s = J(null), o = ga(), r = st(() => {
5591
+ const s = J(null), o = ya(), r = st(() => {
5585
5592
  hh(n, s, o.setVertical);
5586
5593
  }, [o.setVertical]);
5587
5594
  return ot(() => {
@@ -5596,7 +5603,7 @@ const hh = (t, e, n) => {
5596
5603
  }, [o.isVisible]), /* @__PURE__ */ L.jsx(L.Fragment, { children: /* @__PURE__ */ L.jsx(
5597
5604
  Gf.div,
5598
5605
  {
5599
- ref: Mo(i, s),
5606
+ ref: ko(i, s),
5600
5607
  transition: { type: "spring", duration: 0.2 },
5601
5608
  style: { display: "none" },
5602
5609
  className: uh.motionAnimationWrapper,
@@ -5609,10 +5616,10 @@ const hh = (t, e, n) => {
5609
5616
  }
5610
5617
  ) });
5611
5618
  }, mh = ke(ph);
5612
- function xh(t, e, n) {
5619
+ function Th(t, e, n) {
5613
5620
  const i = ke(t);
5614
5621
  return ke((o, r) => {
5615
- const [a, l] = _t(!1), [c, u] = _t(!1), [f, d] = _t(lt.bottom), [p, m] = _t(), P = J(null), b = J(null), T = J(null), y = J(p), v = (n == null ? void 0 : n.isEnableClickOutSiteHidden) !== !1, w = (n == null ? void 0 : n.isEnableHideSave) !== !1;
5622
+ const [a, l] = _t(!1), [c, u] = _t(!1), [f, d] = _t(lt.bottom), [p, m] = _t(), P = J(null), b = J(null), x = J(null), y = J(p), v = (n == null ? void 0 : n.isEnableClickOutSiteHidden) !== !1, w = (n == null ? void 0 : n.isEnableHideSave) !== !1;
5616
5623
  ot(() => {
5617
5624
  m(o.value);
5618
5625
  }, [JSON.stringify(o.value)]), ot(() => {
@@ -5627,11 +5634,11 @@ function xh(t, e, n) {
5627
5634
  }, []), q = st((N) => {
5628
5635
  l(!0);
5629
5636
  }, []), E = st((N) => {
5630
- !P.current && T.current && !T.current.contains(N.target) && u(!1);
5637
+ !P.current && x.current && !x.current.contains(N.target) && u(!1);
5631
5638
  }, []), U = st((N) => {
5632
5639
  var Y;
5633
5640
  const gt = (Y = P.current) == null ? void 0 : Y.firstChild;
5634
- gt && !gt.contains(N.target) && T.current && !T.current.contains(N.target) && (l(!1), u(!1));
5641
+ gt && !gt.contains(N.target) && x.current && !x.current.contains(N.target) && (l(!1), u(!1));
5635
5642
  }, []), G = st(() => {
5636
5643
  if (typeof (o == null ? void 0 : o.onChange) > "u") {
5637
5644
  yt.warning("@acrool/react-picker", "createPicker component props onChange is undefined, is no call");
@@ -5656,15 +5663,15 @@ function xh(t, e, n) {
5656
5663
  setVertical: d
5657
5664
  },
5658
5665
  children: /* @__PURE__ */ L.jsxs("div", { className: vn.root, children: [
5659
- /* @__PURE__ */ L.jsx("div", { ref: T, className: vn.mainEl, children: /* @__PURE__ */ L.jsx(
5666
+ /* @__PURE__ */ L.jsx("div", { ref: x, className: vn.mainEl, children: /* @__PURE__ */ L.jsx(
5660
5667
  i,
5661
5668
  {
5662
5669
  ...o,
5663
- ref: Mo(r, b)
5670
+ ref: ko(r, b)
5664
5671
  }
5665
5672
  ) }),
5666
5673
  /* @__PURE__ */ L.jsx(qf, { children: a && /* @__PURE__ */ L.jsx(
5667
- ir,
5674
+ sr,
5668
5675
  {
5669
5676
  id: `acrool-react-picker-${sh().toLowerCase()}`,
5670
5677
  className: vn.pickerEl,
@@ -5672,7 +5679,7 @@ function xh(t, e, n) {
5672
5679
  mh,
5673
5680
  {
5674
5681
  ref: P,
5675
- anchorRef: T,
5682
+ anchorRef: x,
5676
5683
  isDebug: n == null ? void 0 : n.isDebug,
5677
5684
  children: /* @__PURE__ */ L.jsx(e, { ...o })
5678
5685
  }
@@ -5680,8 +5687,8 @@ function xh(t, e, n) {
5680
5687
  }
5681
5688
  ) }),
5682
5689
  a && /* @__PURE__ */ L.jsx(rh, { onPickerHide: G }),
5683
- v && a && /* @__PURE__ */ L.jsx(Qs, { onMousedown: U }),
5684
- c && /* @__PURE__ */ L.jsx(Qs, { onMousedown: E }),
5690
+ v && a && /* @__PURE__ */ L.jsx(tr, { onMousedown: U }),
5691
+ c && /* @__PURE__ */ L.jsx(tr, { onMousedown: E }),
5685
5692
  c && /* @__PURE__ */ L.jsx(
5686
5693
  sn,
5687
5694
  {
@@ -5708,10 +5715,11 @@ function xh(t, e, n) {
5708
5715
  c && /* @__PURE__ */ L.jsx(
5709
5716
  sn,
5710
5717
  {
5711
- hotKey: [
5712
- At.Escape
5713
- ],
5714
- onKeyDown: A
5718
+ hotKey: At.Escape,
5719
+ onKeyDown: A,
5720
+ ignoreFormField: !0,
5721
+ stopPropagation: !0,
5722
+ preventDefault: !0
5715
5723
  }
5716
5724
  )
5717
5725
  ] })
@@ -5724,6 +5732,6 @@ export {
5724
5732
  lt as EVertical,
5725
5733
  vh as PickerProviderConsumer,
5726
5734
  Bn as PickerProviderContext,
5727
- xh as createPicker,
5728
- ga as usePicker
5735
+ Th as createPicker,
5736
+ ya as usePicker
5729
5737
  };