@acrool/react-picker 0.1.0-alpha.5 → 0.1.0-alpha.6

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,7 +1,7 @@
1
1
  import * as Ln from "react";
2
- import On, { createContext as kt, useContext as K, useLayoutEffect as na, useEffect as ut, useRef as st, useInsertionEffect as Js, useCallback as ot, useMemo as Mt, forwardRef as Me, Fragment as Qs, createElement as ia, useId as jn, Component as sa, Children as ra, isValidElement as oa, useState as _t } from "react";
2
+ import On, { createContext as kt, useContext as $, useLayoutEffect as na, useEffect as ct, useRef as st, useInsertionEffect as Js, useCallback as it, useMemo as Mt, forwardRef as Me, Fragment as Qs, createElement as ia, useId as jn, Component as sa, Children as ra, isValidElement as oa, useState as _t } from "react";
3
3
  import aa from "react-dom";
4
- var lt = /* @__PURE__ */ ((t) => (t.bottom = "bottom", t.top = "top", t))(lt || {}), Jt = /* @__PURE__ */ ((t) => (t.left = "left", t.right = "right", t))(Jt || {});
4
+ var at = /* @__PURE__ */ ((t) => (t.bottom = "bottom", t.top = "top", t))(at || {}), Jt = /* @__PURE__ */ ((t) => (t.left = "left", t.right = "right", t))(Jt || {});
5
5
  const fe = [
6
6
  "color: #fff",
7
7
  "display: inline-block",
@@ -49,24 +49,24 @@ function ha(t, ...e) {
49
49
  ]).join(";");
50
50
  de(t, n, ...e);
51
51
  }
52
- const yt = {
52
+ const gt = {
53
53
  primary: la,
54
54
  success: ca,
55
55
  info: ua,
56
56
  warning: fa,
57
57
  danger: ha
58
58
  }, Fn = kt({
59
- hide: () => yt.warning("No hide method detected, did you embed your app with Acrool/PickerPortal?"),
60
- show: () => yt.warning("No show method detected, did you embed your app with Acrool/PickerPortal?"),
61
- toggle: () => yt.warning("No toggle method detected, did you embed your app with Acrool/PickerPortal?"),
59
+ hide: () => gt.warning("No hide method detected, did you embed your app with Acrool/PickerPortal?"),
60
+ show: () => gt.warning("No show method detected, did you embed your app with Acrool/PickerPortal?"),
61
+ toggle: () => gt.warning("No toggle method detected, did you embed your app with Acrool/PickerPortal?"),
62
62
  isVisible: !1,
63
- inputFocus: () => yt.warning("No focus method detected, did you embed your app with Acrool/PickerPortal?"),
64
- inputBlur: () => yt.warning("No blur method detected, did you embed your app with Acrool/PickerPortal?"),
63
+ inputFocus: () => gt.warning("No focus method detected, did you embed your app with Acrool/PickerPortal?"),
64
+ inputBlur: () => gt.warning("No blur method detected, did you embed your app with Acrool/PickerPortal?"),
65
65
  isInputFocus: !1,
66
- onChange: () => yt.warning("No onChange method detected, did you embed your app with Acrool/PickerPortal?"),
67
- vertical: lt.bottom,
68
- setVertical: () => yt.warning("No onChange method detected, did you embed your app with Acrool/PickerPortal?")
69
- }), hh = Fn.Consumer, da = () => K(Fn);
66
+ onChange: () => gt.warning("No onChange method detected, did you embed your app with Acrool/PickerPortal?"),
67
+ vertical: at.bottom,
68
+ setVertical: () => gt.warning("No onChange method detected, did you embed your app with Acrool/PickerPortal?")
69
+ }), hh = Fn.Consumer, da = () => $(Fn);
70
70
  var yn = { exports: {} }, Xt = {};
71
71
  /**
72
72
  * @license React
@@ -127,20 +127,20 @@ function ma() {
127
127
  {
128
128
  var C = P.ReactDebugCurrentFrame, D = C.getStackAddendum();
129
129
  D !== "" && (g += "%s", b = b.concat([D]));
130
- var k = b.map(function(E) {
130
+ var O = b.map(function(E) {
131
131
  return String(E);
132
132
  });
133
- k.unshift("Warning: " + g), Function.prototype.apply.call(console[h], console, k);
133
+ O.unshift("Warning: " + g), Function.prototype.apply.call(console[h], console, O);
134
134
  }
135
135
  }
136
- var w = !1, A = !1, L = !1, q = !1, R = !1, W;
137
- W = Symbol.for("react.module.reference");
138
- function H(h) {
139
- return !!(typeof h == "string" || typeof h == "function" || h === i || h === o || R || h === s || h === c || h === u || q || h === p || w || A || L || typeof h == "object" && h !== null && (h.$$typeof === d || h.$$typeof === f || h.$$typeof === r || h.$$typeof === a || h.$$typeof === l || // This needs to include all possible module reference object
136
+ var w = !1, A = !1, j = !1, q = !1, R = !1, U;
137
+ U = Symbol.for("react.module.reference");
138
+ function G(h) {
139
+ return !!(typeof h == "string" || typeof h == "function" || h === i || h === o || R || h === s || h === c || h === u || q || h === p || w || A || j || typeof h == "object" && h !== null && (h.$$typeof === d || h.$$typeof === f || h.$$typeof === r || h.$$typeof === a || h.$$typeof === l || // This needs to include all possible module reference object
140
140
  // types supported by any Flight configuration anywhere since
141
141
  // we don't know which Flight build this will end up being used
142
142
  // with.
143
- h.$$typeof === W || h.getModuleId !== void 0));
143
+ h.$$typeof === U || h.getModuleId !== void 0));
144
144
  }
145
145
  function rt(h, g, b) {
146
146
  var C = h.displayName;
@@ -149,10 +149,10 @@ function ma() {
149
149
  var D = g.displayName || g.name || "";
150
150
  return D !== "" ? b + "(" + D + ")" : b;
151
151
  }
152
- function O(h) {
152
+ function wt(h) {
153
153
  return h.displayName || "Context";
154
154
  }
155
- function U(h) {
155
+ function Z(h) {
156
156
  if (h == null)
157
157
  return null;
158
158
  if (typeof h.tag == "number" && y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof h == "function")
@@ -177,19 +177,19 @@ function ma() {
177
177
  switch (h.$$typeof) {
178
178
  case a:
179
179
  var g = h;
180
- return O(g) + ".Consumer";
180
+ return wt(g) + ".Consumer";
181
181
  case r:
182
182
  var b = h;
183
- return O(b._context) + ".Provider";
183
+ return wt(b._context) + ".Provider";
184
184
  case l:
185
185
  return rt(h, h.render, "ForwardRef");
186
186
  case f:
187
187
  var C = h.displayName || null;
188
- return C !== null ? C : U(h.type) || "Memo";
188
+ return C !== null ? C : Z(h.type) || "Memo";
189
189
  case d: {
190
- var D = h, k = D._payload, E = D._init;
190
+ var D = h, O = D._payload, E = D._init;
191
191
  try {
192
- return U(E(k));
192
+ return Z(E(O));
193
193
  } catch {
194
194
  return null;
195
195
  }
@@ -197,14 +197,14 @@ function ma() {
197
197
  }
198
198
  return null;
199
199
  }
200
- var J = Object.assign, F = 0, tt, Lt, Ot, hi, di, pi, mi;
200
+ var M = Object.assign, L = 0, Y, Lt, Ot, hi, di, pi, mi;
201
201
  function gi() {
202
202
  }
203
203
  gi.__reactDisabledLog = !0;
204
204
  function Eo() {
205
205
  {
206
- if (F === 0) {
207
- tt = console.log, Lt = console.info, Ot = console.warn, hi = console.error, di = console.group, pi = console.groupCollapsed, mi = console.groupEnd;
206
+ if (L === 0) {
207
+ Y = console.log, Lt = console.info, Ot = console.warn, hi = console.error, di = console.group, pi = console.groupCollapsed, mi = console.groupEnd;
208
208
  var h = {
209
209
  configurable: !0,
210
210
  enumerable: !0,
@@ -221,42 +221,42 @@ function ma() {
221
221
  groupEnd: h
222
222
  });
223
223
  }
224
- F++;
224
+ L++;
225
225
  }
226
226
  }
227
227
  function Do() {
228
228
  {
229
- if (F--, F === 0) {
229
+ if (L--, L === 0) {
230
230
  var h = {
231
231
  configurable: !0,
232
232
  enumerable: !0,
233
233
  writable: !0
234
234
  };
235
235
  Object.defineProperties(console, {
236
- log: J({}, h, {
237
- value: tt
236
+ log: M({}, h, {
237
+ value: Y
238
238
  }),
239
- info: J({}, h, {
239
+ info: M({}, h, {
240
240
  value: Lt
241
241
  }),
242
- warn: J({}, h, {
242
+ warn: M({}, h, {
243
243
  value: Ot
244
244
  }),
245
- error: J({}, h, {
245
+ error: M({}, h, {
246
246
  value: hi
247
247
  }),
248
- group: J({}, h, {
248
+ group: M({}, h, {
249
249
  value: di
250
250
  }),
251
- groupCollapsed: J({}, h, {
251
+ groupCollapsed: M({}, h, {
252
252
  value: pi
253
253
  }),
254
- groupEnd: J({}, h, {
254
+ groupEnd: M({}, h, {
255
255
  value: mi
256
256
  })
257
257
  });
258
258
  }
259
- F < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
259
+ L < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
260
260
  }
261
261
  }
262
262
  var ze = P.ReactCurrentDispatcher, Ye;
@@ -290,8 +290,8 @@ function ma() {
290
290
  Xe = !0;
291
291
  var D = Error.prepareStackTrace;
292
292
  Error.prepareStackTrace = void 0;
293
- var k;
294
- k = ze.current, ze.current = null, Eo();
293
+ var O;
294
+ O = ze.current, ze.current = null, Eo();
295
295
  try {
296
296
  if (g) {
297
297
  var E = function() {
@@ -304,29 +304,29 @@ function ma() {
304
304
  }), typeof Reflect == "object" && Reflect.construct) {
305
305
  try {
306
306
  Reflect.construct(E, []);
307
- } catch (Z) {
308
- C = Z;
307
+ } catch (J) {
308
+ C = J;
309
309
  }
310
310
  Reflect.construct(h, [], E);
311
311
  } else {
312
312
  try {
313
313
  E.call();
314
- } catch (Z) {
315
- C = Z;
314
+ } catch (J) {
315
+ C = J;
316
316
  }
317
317
  h.call(E.prototype);
318
318
  }
319
319
  } else {
320
320
  try {
321
321
  throw Error();
322
- } catch (Z) {
323
- C = Z;
322
+ } catch (J) {
323
+ C = J;
324
324
  }
325
325
  h();
326
326
  }
327
- } catch (Z) {
328
- if (Z && C && typeof Z.stack == "string") {
329
- for (var V = Z.stack.split(`
327
+ } catch (J) {
328
+ if (J && C && typeof J.stack == "string") {
329
+ for (var V = J.stack.split(`
330
330
  `), X = C.stack.split(`
331
331
  `), _ = V.length - 1, N = X.length - 1; _ >= 1 && N >= 0 && V[_] !== X[N]; )
332
332
  N--;
@@ -335,16 +335,16 @@ function ma() {
335
335
  if (_ !== 1 || N !== 1)
336
336
  do
337
337
  if (_--, N--, N < 0 || V[_] !== X[N]) {
338
- var et = `
338
+ var tt = `
339
339
  ` + V[_].replace(" at new ", " at ");
340
- return h.displayName && et.includes("<anonymous>") && (et = et.replace("<anonymous>", h.displayName)), typeof h == "function" && Pe.set(h, et), et;
340
+ return h.displayName && tt.includes("<anonymous>") && (tt = tt.replace("<anonymous>", h.displayName)), typeof h == "function" && Pe.set(h, tt), tt;
341
341
  }
342
342
  while (_ >= 1 && N >= 0);
343
343
  break;
344
344
  }
345
345
  }
346
346
  } finally {
347
- Xe = !1, ze.current = k, Do(), Error.prepareStackTrace = D;
347
+ Xe = !1, ze.current = O, Do(), Error.prepareStackTrace = D;
348
348
  }
349
349
  var Ft = h ? h.displayName || h.name : "", St = Ft ? ve(Ft) : "";
350
350
  return typeof h == "function" && Pe.set(h, St), St;
@@ -376,9 +376,9 @@ function ma() {
376
376
  case f:
377
377
  return xe(h.type, g, b);
378
378
  case d: {
379
- var C = h, D = C._payload, k = C._init;
379
+ var C = h, D = C._payload, O = C._init;
380
380
  try {
381
- return xe(k(D), g, b);
381
+ return xe(O(D), g, b);
382
382
  } catch {
383
383
  }
384
384
  }
@@ -386,7 +386,7 @@ function ma() {
386
386
  return "";
387
387
  }
388
388
  var zt = Object.prototype.hasOwnProperty, vi = {}, Pi = P.ReactDebugCurrentFrame;
389
- function be(h) {
389
+ function Te(h) {
390
390
  if (h) {
391
391
  var g = h._owner, b = xe(h.type, h._source, g ? g.type : null);
392
392
  Pi.setExtraStackFrame(b);
@@ -395,9 +395,9 @@ function ma() {
395
395
  }
396
396
  function Oo(h, g, b, C, D) {
397
397
  {
398
- var k = Function.call.bind(zt);
398
+ var O = Function.call.bind(zt);
399
399
  for (var E in h)
400
- if (k(h, E)) {
400
+ if (O(h, E)) {
401
401
  var V = void 0;
402
402
  try {
403
403
  if (typeof h[E] != "function") {
@@ -408,7 +408,7 @@ function ma() {
408
408
  } catch (_) {
409
409
  V = _;
410
410
  }
411
- V && !(V instanceof Error) && (be(D), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", C || "React class", b, E, typeof V), be(null)), V instanceof Error && !(V.message in vi) && (vi[V.message] = !0, be(D), y("Failed %s type: %s", b, V.message), be(null));
411
+ V && !(V 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", b, E, typeof V), Te(null)), V instanceof Error && !(V.message in vi) && (vi[V.message] = !0, Te(D), y("Failed %s type: %s", b, V.message), Te(null));
412
412
  }
413
413
  }
414
414
  }
@@ -432,7 +432,7 @@ function ma() {
432
432
  function xi(h) {
433
433
  return "" + h;
434
434
  }
435
- function bi(h) {
435
+ function Ti(h) {
436
436
  if (_o(h))
437
437
  return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Fo(h)), xi(h);
438
438
  }
@@ -441,7 +441,7 @@ function ma() {
441
441
  ref: !0,
442
442
  __self: !0,
443
443
  __source: !0
444
- }, Ti, wi, Ze;
444
+ }, bi, wi, Ze;
445
445
  Ze = {};
446
446
  function Io(h) {
447
447
  if (zt.call(h, "ref")) {
@@ -461,14 +461,14 @@ function ma() {
461
461
  }
462
462
  function Uo(h, g) {
463
463
  if (typeof h.ref == "string" && Yt.current && g && Yt.current.stateNode !== g) {
464
- var b = U(Yt.current.type);
465
- Ze[b] || (y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', U(Yt.current.type), h.ref), Ze[b] = !0);
464
+ var b = Z(Yt.current.type);
465
+ Ze[b] || (y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', Z(Yt.current.type), h.ref), Ze[b] = !0);
466
466
  }
467
467
  }
468
468
  function Wo(h, g) {
469
469
  {
470
470
  var b = function() {
471
- Ti || (Ti = !0, y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", g));
471
+ bi || (bi = !0, y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", g));
472
472
  };
473
473
  b.isReactWarning = !0, Object.defineProperty(h, "key", {
474
474
  get: b,
@@ -487,7 +487,7 @@ function ma() {
487
487
  });
488
488
  }
489
489
  }
490
- var Ko = function(h, g, b, C, D, k, E) {
490
+ var Ko = function(h, g, b, C, D, O, E) {
491
491
  var V = {
492
492
  // This tag allows us to uniquely identify this as a React Element
493
493
  $$typeof: e,
@@ -497,7 +497,7 @@ function ma() {
497
497
  ref: b,
498
498
  props: E,
499
499
  // Record the component responsible for creating this element.
500
- _owner: k
500
+ _owner: O
501
501
  };
502
502
  return V._store = {}, Object.defineProperty(V._store, "validated", {
503
503
  configurable: !1,
@@ -518,14 +518,14 @@ function ma() {
518
518
  };
519
519
  function Go(h, g, b, C, D) {
520
520
  {
521
- var k, E = {}, V = null, X = null;
522
- b !== void 0 && (bi(b), V = "" + b), No(g) && (bi(g.key), V = "" + g.key), Io(g) && (X = g.ref, Uo(g, D));
523
- for (k in g)
524
- zt.call(g, k) && !Bo.hasOwnProperty(k) && (E[k] = g[k]);
521
+ var O, E = {}, V = null, X = null;
522
+ b !== void 0 && (Ti(b), V = "" + b), No(g) && (Ti(g.key), V = "" + g.key), Io(g) && (X = g.ref, Uo(g, D));
523
+ for (O in g)
524
+ zt.call(g, O) && !Bo.hasOwnProperty(O) && (E[O] = g[O]);
525
525
  if (h && h.defaultProps) {
526
526
  var _ = h.defaultProps;
527
- for (k in _)
528
- E[k] === void 0 && (E[k] = _[k]);
527
+ for (O in _)
528
+ E[O] === void 0 && (E[O] = _[O]);
529
529
  }
530
530
  if (V || X) {
531
531
  var N = typeof h == "function" ? h.displayName || h.name || "Unknown" : h;
@@ -550,7 +550,7 @@ function ma() {
550
550
  function Ci() {
551
551
  {
552
552
  if (Je.current) {
553
- var h = U(Je.current.type);
553
+ var h = Z(Je.current.type);
554
554
  if (h)
555
555
  return `
556
556
 
@@ -593,7 +593,7 @@ Check the top-level render call using <` + b + ">.");
593
593
  return;
594
594
  Ai[b] = !0;
595
595
  var C = "";
596
- h && h._owner && h._owner !== Je.current && (C = " It was passed a child from " + U(h._owner.type) + "."), jt(h), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', b, C), jt(null);
596
+ h && h._owner && h._owner !== Je.current && (C = " It was passed a child from " + Z(h._owner.type) + "."), jt(h), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', b, C), jt(null);
597
597
  }
598
598
  }
599
599
  function Vi(h, g) {
@@ -610,7 +610,7 @@ Check the top-level render call using <` + b + ">.");
610
610
  else if (h) {
611
611
  var D = T(h);
612
612
  if (typeof D == "function" && D !== h.entries)
613
- for (var k = D.call(h), E; !(E = k.next()).done; )
613
+ for (var O = D.call(h), E; !(E = O.next()).done; )
614
614
  tn(E.value) && Ri(E.value, g);
615
615
  }
616
616
  }
@@ -630,11 +630,11 @@ Check the top-level render call using <` + b + ">.");
630
630
  else
631
631
  return;
632
632
  if (b) {
633
- var C = U(g);
633
+ var C = Z(g);
634
634
  Oo(b, h.props, "prop", C, h);
635
635
  } else if (g.PropTypes !== void 0 && !Qe) {
636
636
  Qe = !0;
637
- var D = U(g);
637
+ var D = Z(g);
638
638
  y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", D || "Unknown");
639
639
  }
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.");
@@ -653,39 +653,39 @@ Check the top-level render call using <` + b + ">.");
653
653
  }
654
654
  }
655
655
  var Ei = {};
656
- function Di(h, g, b, C, D, k) {
656
+ function Di(h, g, b, C, D, O) {
657
657
  {
658
- var E = H(h);
658
+ var E = G(h);
659
659
  if (!E) {
660
660
  var V = "";
661
661
  (h === void 0 || typeof h == "object" && h !== null && Object.keys(h).length === 0) && (V += " 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
662
  var X = Ho(D);
663
663
  X ? V += X : V += Ci();
664
664
  var _;
665
- h === null ? _ = "null" : qe(h) ? _ = "array" : h !== void 0 && h.$$typeof === e ? (_ = "<" + (U(h.type) || "Unknown") + " />", V = " 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", _, V);
665
+ h === null ? _ = "null" : qe(h) ? _ = "array" : h !== void 0 && h.$$typeof === e ? (_ = "<" + (Z(h.type) || "Unknown") + " />", V = " 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", _, V);
666
666
  }
667
- var N = Go(h, g, b, D, k);
667
+ var N = Go(h, g, b, D, O);
668
668
  if (N == null)
669
669
  return N;
670
670
  if (E) {
671
- var et = g.children;
672
- if (et !== void 0)
671
+ var tt = g.children;
672
+ if (tt !== void 0)
673
673
  if (C)
674
- if (qe(et)) {
675
- for (var Ft = 0; Ft < et.length; Ft++)
676
- Vi(et[Ft], h);
677
- Object.freeze && Object.freeze(et);
674
+ if (qe(tt)) {
675
+ for (var Ft = 0; Ft < tt.length; Ft++)
676
+ Vi(tt[Ft], h);
677
+ Object.freeze && Object.freeze(tt);
678
678
  } else
679
679
  y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
680
680
  else
681
- Vi(et, h);
681
+ Vi(tt, h);
682
682
  }
683
683
  if (zt.call(g, "key")) {
684
- var St = U(h), Z = Object.keys(g).filter(function(ea) {
684
+ var St = Z(h), J = Object.keys(g).filter(function(ea) {
685
685
  return ea !== "key";
686
- }), en = Z.length > 0 ? "{key: someKey, " + Z.join(": ..., ") + ": ...}" : "{key: someKey}";
686
+ }), en = J.length > 0 ? "{key: someKey, " + J.join(": ..., ") + ": ...}" : "{key: someKey}";
687
687
  if (!Ei[St + en]) {
688
- var ta = Z.length > 0 ? "{" + Z.join(": ..., ") + ": ...}" : "{}";
688
+ var ta = J.length > 0 ? "{" + J.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} />
@@ -740,7 +740,7 @@ const _n = kt({
740
740
  transformPagePoint: (t) => t,
741
741
  isStatic: !1,
742
742
  reducedMotion: "never"
743
- }), Be = kt({}), Ie = kt(null), Bn = typeof window < "u", er = Bn ? na : ut, nr = kt({ strict: !1 }), Ne = (t) => t.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), va = "framerAppearId", ir = "data-" + Ne(va), Pa = {
743
+ }), Be = kt({}), Ie = kt(null), Bn = typeof window < "u", er = Bn ? na : ct, nr = kt({ strict: !1 }), Ne = (t) => t.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), va = "framerAppearId", ir = "data-" + Ne(va), Pa = {
744
744
  skipAnimations: !1,
745
745
  useManualTiming: !1
746
746
  };
@@ -782,7 +782,7 @@ function xa(t) {
782
782
  };
783
783
  return l;
784
784
  }
785
- const Te = [
785
+ const be = [
786
786
  "read",
787
787
  // Read
788
788
  "resolveKeyframes",
@@ -795,25 +795,25 @@ const Te = [
795
795
  // Write
796
796
  "postRender"
797
797
  // Compute
798
- ], ba = 40;
798
+ ], Ta = 40;
799
799
  function sr(t, e) {
800
800
  let n = !1, i = !0;
801
801
  const s = {
802
802
  delta: 0,
803
803
  timestamp: 0,
804
804
  isProcessing: !1
805
- }, o = () => n = !0, r = Te.reduce((P, y) => (P[y] = xa(o), P), {}), { read: a, resolveKeyframes: l, update: c, preRender: u, render: f, postRender: d } = r, p = () => {
805
+ }, o = () => n = !0, r = be.reduce((P, y) => (P[y] = xa(o), P), {}), { read: a, resolveKeyframes: l, update: c, preRender: u, render: f, postRender: d } = r, p = () => {
806
806
  const P = performance.now();
807
- n = !1, s.delta = i ? 1e3 / 60 : Math.max(Math.min(P - s.timestamp, ba), 1), s.timestamp = P, s.isProcessing = !0, a.process(s), l.process(s), c.process(s), u.process(s), f.process(s), d.process(s), s.isProcessing = !1, n && e && (i = !1, t(p));
807
+ n = !1, s.delta = i ? 1e3 / 60 : Math.max(Math.min(P - s.timestamp, Ta), 1), s.timestamp = P, s.isProcessing = !0, a.process(s), l.process(s), c.process(s), u.process(s), f.process(s), d.process(s), s.isProcessing = !1, n && e && (i = !1, t(p));
808
808
  }, m = () => {
809
809
  n = !0, i = !0, s.isProcessing || t(p);
810
810
  };
811
- return { schedule: Te.reduce((P, y) => {
811
+ return { schedule: be.reduce((P, y) => {
812
812
  const v = r[y];
813
- return P[y] = (w, A = !1, L = !1) => (n || m(), v.schedule(w, A, L)), P;
813
+ return P[y] = (w, A = !1, j = !1) => (n || m(), v.schedule(w, A, j)), P;
814
814
  }, {}), cancel: (P) => {
815
- for (let y = 0; y < Te.length; y++)
816
- r[Te[y]].cancel(P);
815
+ for (let y = 0; y < be.length; y++)
816
+ r[be[y]].cancel(P);
817
817
  }, state: s, steps: r };
818
818
  }
819
819
  const { schedule: In, cancel: dh } = sr(queueMicrotask, !1);
@@ -822,8 +822,8 @@ function Bt(t) {
822
822
  }
823
823
  const rr = kt({});
824
824
  let Li = !1;
825
- function Ta(t, e, n, i, s) {
826
- const { visualElement: o } = K(Be), r = K(nr), a = K(Ie), l = K(_n).reducedMotion, c = st();
825
+ function ba(t, e, n, i, s) {
826
+ const { visualElement: o } = $(Be), r = $(nr), a = $(Ie), l = $(_n).reducedMotion, c = st();
827
827
  i = i || r.renderer, !c.current && i && (c.current = i(t, {
828
828
  visualState: e,
829
829
  parent: o,
@@ -832,14 +832,14 @@ function Ta(t, e, n, i, s) {
832
832
  blockInitialAnimation: a ? a.initial === !1 : !1,
833
833
  reducedMotionConfig: l
834
834
  }));
835
- const u = c.current, f = K(rr);
835
+ const u = c.current, f = $(rr);
836
836
  u && !u.projection && s && (u.type === "html" || u.type === "svg") && Sa(c.current, n, s, f), Js(() => {
837
837
  u && u.update(n, a);
838
838
  });
839
839
  const d = st(!!(n[ir] && !window.HandoffComplete));
840
840
  return er(() => {
841
841
  u && (u.updateFeatures(), In.render(u.render), d.current && u.animationState && u.animationState.animateChanges());
842
- }), ut(() => {
842
+ }), ct(() => {
843
843
  u && (!d.current && u.animationState && u.animationState.animateChanges(), d.current && (d.current = !1, Li || (Li = !0, queueMicrotask(wa))));
844
844
  }), u;
845
845
  }
@@ -871,7 +871,7 @@ function or(t) {
871
871
  return t.options.allowProjection !== !1 ? t.projection : or(t.parent);
872
872
  }
873
873
  function Ca(t, e, n) {
874
- return ot(
874
+ return it(
875
875
  (i) => {
876
876
  i && t.mount && t.mount(i), e && (i ? e.mount(i) : e.unmount()), n && (typeof n == "function" ? n(i) : Bt(n) && (n.current = i));
877
877
  },
@@ -915,7 +915,7 @@ function Aa(t, e) {
915
915
  return t.inherit !== !1 ? e : {};
916
916
  }
917
917
  function Ra(t) {
918
- const { initial: e, animate: n } = Aa(t, K(Be));
918
+ const { initial: e, animate: n } = Aa(t, $(Be));
919
919
  return Mt(() => ({ initial: e, animate: n }), [Oi(e), Oi(n)]);
920
920
  }
921
921
  function Oi(t) {
@@ -952,11 +952,11 @@ function Va(t) {
952
952
  ...t[e]
953
953
  };
954
954
  }
955
- const Wn = kt({}), Ea = Symbol.for("motionComponentSymbol"), G = (t) => t;
956
- let Gt = G, mt = G;
955
+ const Wn = kt({}), Ea = Symbol.for("motionComponentSymbol"), K = (t) => t;
956
+ let Gt = K, pt = K;
957
957
  process.env.NODE_ENV !== "production" && (Gt = (t, e) => {
958
958
  !t && typeof console < "u" && console.warn(e);
959
- }, mt = (t, e) => {
959
+ }, pt = (t, e) => {
960
960
  if (!t)
961
961
  throw new Error(e);
962
962
  });
@@ -965,14 +965,14 @@ function Da({ preloadedFeatures: t, createVisualElement: e, useRender: n, useVis
965
965
  function o(a, l) {
966
966
  let c;
967
967
  const u = {
968
- ...K(_n),
968
+ ...$(_n),
969
969
  ...a,
970
970
  layoutId: Ma(a)
971
971
  }, { isStatic: f } = u, d = Ra(a), p = i(a, f);
972
972
  if (!f && Bn) {
973
973
  ka(u, t);
974
974
  const m = La(u);
975
- c = m.MeasureLayout, d.visualElement = Ta(s, p, u, e, m.ProjectionNode);
975
+ c = m.MeasureLayout, d.visualElement = ba(s, p, u, e, m.ProjectionNode);
976
976
  }
977
977
  return I.jsxs(Be.Provider, { value: d, children: [c && d.visualElement ? I.jsx(c, { visualElement: d.visualElement, ...u }) : null, n(s, a, Ca(p, d.visualElement, l), p, f, d.visualElement)] });
978
978
  }
@@ -980,14 +980,14 @@ function Da({ preloadedFeatures: t, createVisualElement: e, useRender: n, useVis
980
980
  return r[Ea] = s, r;
981
981
  }
982
982
  function Ma({ layoutId: t }) {
983
- const e = K(Wn).id;
983
+ const e = $(Wn).id;
984
984
  return e && t !== void 0 ? e + "-" + t : t;
985
985
  }
986
986
  function ka(t, e) {
987
- const n = K(nr).strict;
987
+ const n = $(nr).strict;
988
988
  if (process.env.NODE_ENV !== "production" && e && n) {
989
989
  const i = "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";
990
- t.ignoreStrict ? Gt(!1, i) : mt(!1, i);
990
+ t.ignoreStrict ? Gt(!1, i) : pt(!1, i);
991
991
  }
992
992
  }
993
993
  function La(t) {
@@ -1089,7 +1089,7 @@ const pe = [
1089
1089
  function lr(t, { layout: e, layoutId: n }) {
1090
1090
  return Tt.has(t) || t.startsWith("origin") || (e || n !== void 0) && (!!ke[t] || t === "opacity");
1091
1091
  }
1092
- const Y = (t) => !!(t && t.getVelocity), _a = {
1092
+ const z = (t) => !!(t && t.getVelocity), _a = {
1093
1093
  x: "translateX",
1094
1094
  y: "translateY",
1095
1095
  z: "translateZ",
@@ -1106,13 +1106,13 @@ function Ia(t, e, n) {
1106
1106
  }
1107
1107
  return i = i.trim(), n ? i = n(t, e ? "" : i) : e && (i = "none"), i;
1108
1108
  }
1109
- const cr = (t) => (e) => typeof e == "string" && e.startsWith(t), ur = cr("--"), Na = cr("var(--"), Kn = (t) => Na(t) ? Ua.test(t.split("/*")[0].trim()) : !1, Ua = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu, Wa = (t, e) => e && typeof t == "number" ? e.transform(t) : t, xt = (t, e, n) => n > e ? e : n < t ? t : n, Ht = {
1109
+ const cr = (t) => (e) => typeof e == "string" && e.startsWith(t), ur = cr("--"), Na = cr("var(--"), Kn = (t) => Na(t) ? Ua.test(t.split("/*")[0].trim()) : !1, Ua = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu, Wa = (t, e) => e && typeof t == "number" ? e.transform(t) : t, Pt = (t, e, n) => n > e ? e : n < t ? t : n, Ht = {
1110
1110
  test: (t) => typeof t == "number",
1111
1111
  parse: parseFloat,
1112
1112
  transform: (t) => t
1113
1113
  }, ee = {
1114
1114
  ...Ht,
1115
- transform: (t) => xt(0, 1, t)
1115
+ transform: (t) => Pt(0, 1, t)
1116
1116
  }, we = {
1117
1117
  ...Ht,
1118
1118
  default: 1
@@ -1127,10 +1127,10 @@ const ge = (t) => ({
1127
1127
  test: (e) => me(e) && e.endsWith(t) && e.split(" ").length === 1,
1128
1128
  parse: parseFloat,
1129
1129
  transform: (e) => `${e}${t}`
1130
- }), vt = ge("deg"), at = ge("%"), S = ge("px"), Ha = ge("vh"), za = ge("vw"), Fi = {
1131
- ...at,
1132
- parse: (t) => at.parse(t) / 100,
1133
- transform: (t) => at.transform(t * 100)
1130
+ }), yt = ge("deg"), ot = ge("%"), S = ge("px"), Ha = ge("vh"), za = ge("vw"), Fi = {
1131
+ ...ot,
1132
+ parse: (t) => ot.parse(t) / 100,
1133
+ transform: (t) => ot.transform(t * 100)
1134
1134
  }, _i = {
1135
1135
  ...Ht,
1136
1136
  transform: Math.round
@@ -1169,17 +1169,17 @@ const ge = (t) => ({
1169
1169
  marginBottom: S,
1170
1170
  marginLeft: S,
1171
1171
  // Transform props
1172
- rotate: vt,
1173
- rotateX: vt,
1174
- rotateY: vt,
1175
- rotateZ: vt,
1172
+ rotate: yt,
1173
+ rotateX: yt,
1174
+ rotateY: yt,
1175
+ rotateZ: yt,
1176
1176
  scale: we,
1177
1177
  scaleX: we,
1178
1178
  scaleY: we,
1179
1179
  scaleZ: we,
1180
- skew: vt,
1181
- skewX: vt,
1182
- skewY: vt,
1180
+ skew: yt,
1181
+ skewX: yt,
1182
+ skewY: yt,
1183
1183
  distance: S,
1184
1184
  translateX: S,
1185
1185
  translateY: S,
@@ -1232,7 +1232,7 @@ const zn = () => ({
1232
1232
  });
1233
1233
  function hr(t, e, n) {
1234
1234
  for (const i in e)
1235
- !Y(e[i]) && !lr(i, n) && (t[i] = e[i]);
1235
+ !z(e[i]) && !lr(i, n) && (t[i] = e[i]);
1236
1236
  }
1237
1237
  function Ya({ transformTemplate: t }, e) {
1238
1238
  return Mt(() => {
@@ -1359,7 +1359,7 @@ function sl(t, e, n, i) {
1359
1359
  }
1360
1360
  function rl(t = !1) {
1361
1361
  return (n, i, s, { latestValues: o }, r) => {
1362
- const l = ($n(n) ? sl : qa)(i, o, r, n), c = Qa(i, typeof n == "string", t), u = n !== Qs ? { ...c, ...l, ref: s } : {}, { children: f } = i, d = Mt(() => Y(f) ? f.get() : f, [f]);
1362
+ const l = ($n(n) ? sl : qa)(i, o, r, n), c = Qa(i, typeof n == "string", t), u = n !== Qs ? { ...c, ...l, ref: s } : {}, { children: f } = i, d = Mt(() => z(f) ? f.get() : f, [f]);
1363
1363
  return ia(n, {
1364
1364
  ...u,
1365
1365
  children: d
@@ -1405,13 +1405,13 @@ function qn(t, e, n) {
1405
1405
  var i;
1406
1406
  const { style: s } = t, o = {};
1407
1407
  for (const r in s)
1408
- (Y(s[r]) || e.style && Y(e.style[r]) || lr(r, t) || ((i = n == null ? void 0 : n.getValue(r)) === null || i === void 0 ? void 0 : i.liveStyle) !== void 0) && (o[r] = s[r]);
1408
+ (z(s[r]) || e.style && z(e.style[r]) || lr(r, t) || ((i = n == null ? void 0 : n.getValue(r)) === null || i === void 0 ? void 0 : i.liveStyle) !== void 0) && (o[r] = s[r]);
1409
1409
  return n && s && typeof s.willChange == "string" && (n.applyWillChange = !1), o;
1410
1410
  }
1411
1411
  function vr(t, e, n) {
1412
1412
  const i = qn(t, e, n);
1413
1413
  for (const s in t)
1414
- if (Y(t[s]) || Y(e[s])) {
1414
+ if (z(t[s]) || z(e[s])) {
1415
1415
  const o = pe.indexOf(s) !== -1 ? "attr" + s.charAt(0).toUpperCase() + s.substring(1) : s;
1416
1416
  i[o] = t[s];
1417
1417
  }
@@ -1440,7 +1440,7 @@ function Jn(t) {
1440
1440
  }
1441
1441
  const Pn = (t) => Array.isArray(t), ol = (t) => !!(t && typeof t == "object" && t.mix && t.toValue), al = (t) => Pn(t) ? t[t.length - 1] || 0 : t;
1442
1442
  function Re(t) {
1443
- const e = Y(t) ? t.get() : t;
1443
+ const e = z(t) ? t.get() : t;
1444
1444
  return ol(e) ? e.toValue() : e;
1445
1445
  }
1446
1446
  const Pr = /* @__PURE__ */ new Set([
@@ -1472,8 +1472,8 @@ function ll({ applyWillChange: t = !1, scrapeMotionValuesFromProps: e, createRen
1472
1472
  };
1473
1473
  return i && (l.mount = (c) => i(s, c, l)), l;
1474
1474
  }
1475
- const br = (t) => (e, n) => {
1476
- const i = K(Be), s = K(Ie), o = () => ll(t, e, i, s, n);
1475
+ const Tr = (t) => (e, n) => {
1476
+ const i = $(Be), s = $(Ie), o = () => ll(t, e, i, s, n);
1477
1477
  return n ? o() : Jn(o);
1478
1478
  };
1479
1479
  function cl(t, e) {
@@ -1517,12 +1517,12 @@ function ul(t, e, n, i, s) {
1517
1517
  cl(a, P);
1518
1518
  }), a.length && (r.willChange = a.join(","))), r;
1519
1519
  }
1520
- const { schedule: M, cancel: gt, state: $, steps: nn } = sr(typeof requestAnimationFrame < "u" ? requestAnimationFrame : G, !0), fl = {
1521
- useVisualState: br({
1520
+ const { schedule: k, cancel: mt, state: W, steps: nn } = sr(typeof requestAnimationFrame < "u" ? requestAnimationFrame : K, !0), fl = {
1521
+ useVisualState: Tr({
1522
1522
  scrapeMotionValuesFromProps: vr,
1523
1523
  createRenderState: pr,
1524
1524
  onMount: (t, e, { renderState: n, latestValues: i }) => {
1525
- M.read(() => {
1525
+ k.read(() => {
1526
1526
  try {
1527
1527
  n.dimensions = typeof e.getBBox == "function" ? e.getBBox() : e.getBoundingClientRect();
1528
1528
  } catch {
@@ -1533,13 +1533,13 @@ const { schedule: M, cancel: gt, state: $, steps: nn } = sr(typeof requestAnimat
1533
1533
  height: 0
1534
1534
  };
1535
1535
  }
1536
- }), M.render(() => {
1536
+ }), k.render(() => {
1537
1537
  Yn(n, i, Xn(e.tagName), t.transformTemplate), yr(e, n);
1538
1538
  });
1539
1539
  }
1540
1540
  })
1541
1541
  }, hl = {
1542
- useVisualState: br({
1542
+ useVisualState: Tr({
1543
1543
  applyWillChange: !0,
1544
1544
  scrapeMotionValuesFromProps: qn,
1545
1545
  createRenderState: zn
@@ -1554,10 +1554,10 @@ function dl(t, { forwardMotionProps: e = !1 }, n, i) {
1554
1554
  Component: t
1555
1555
  };
1556
1556
  }
1557
- function ct(t, e, n, i = { passive: !0 }) {
1557
+ function lt(t, e, n, i = { passive: !0 }) {
1558
1558
  return t.addEventListener(e, n, i), () => t.removeEventListener(e, n);
1559
1559
  }
1560
- const Tr = (t) => t.pointerType === "mouse" ? typeof t.button != "number" || t.button <= 0 : t.isPrimary !== !1;
1560
+ const br = (t) => t.pointerType === "mouse" ? typeof t.button != "number" || t.button <= 0 : t.isPrimary !== !1;
1561
1561
  function Ke(t, e = "page") {
1562
1562
  return {
1563
1563
  point: {
@@ -1566,11 +1566,11 @@ function Ke(t, e = "page") {
1566
1566
  }
1567
1567
  };
1568
1568
  }
1569
- const pl = (t) => (e) => Tr(e) && t(e, Ke(e));
1570
- function ft(t, e, n, i) {
1571
- return ct(t, e, pl(n), i);
1569
+ const pl = (t) => (e) => br(e) && t(e, Ke(e));
1570
+ function ut(t, e, n, i) {
1571
+ return lt(t, e, pl(n), i);
1572
1572
  }
1573
- const ml = (t, e) => (n) => e(t(n)), ht = (...t) => t.reduce(ml);
1573
+ const ml = (t, e) => (n) => e(t(n)), ft = (...t) => t.reduce(ml);
1574
1574
  function wr(t) {
1575
1575
  let e = null;
1576
1576
  return () => {
@@ -1599,7 +1599,7 @@ function Cr() {
1599
1599
  const t = Sr(!0);
1600
1600
  return t ? (t(), !1) : !0;
1601
1601
  }
1602
- class wt {
1602
+ class bt {
1603
1603
  constructor(e) {
1604
1604
  this.isMounted = !1, this.node = e;
1605
1605
  }
@@ -1613,20 +1613,20 @@ function $i(t, e) {
1613
1613
  const a = t.getProps();
1614
1614
  t.animationState && a.whileHover && t.animationState.setActive("whileHover", e);
1615
1615
  const l = a[i];
1616
- l && M.postRender(() => l(o, r));
1616
+ l && k.postRender(() => l(o, r));
1617
1617
  };
1618
- return ft(t.current, n, s, {
1618
+ return ut(t.current, n, s, {
1619
1619
  passive: !t.getProps()[i]
1620
1620
  });
1621
1621
  }
1622
- class gl extends wt {
1622
+ class gl extends bt {
1623
1623
  mount() {
1624
- this.unmount = ht($i(this.node, !0), $i(this.node, !1));
1624
+ this.unmount = ft($i(this.node, !0), $i(this.node, !1));
1625
1625
  }
1626
1626
  unmount() {
1627
1627
  }
1628
1628
  }
1629
- class yl extends wt {
1629
+ class yl extends bt {
1630
1630
  constructor() {
1631
1631
  super(...arguments), this.isActive = !1;
1632
1632
  }
@@ -1643,7 +1643,7 @@ class yl extends wt {
1643
1643
  !this.isActive || !this.node.animationState || (this.node.animationState.setActive("whileFocus", !1), this.isActive = !1);
1644
1644
  }
1645
1645
  mount() {
1646
- this.unmount = ht(ct(this.node.current, "focus", () => this.onFocus()), ct(this.node.current, "blur", () => this.onBlur()));
1646
+ this.unmount = ft(lt(this.node.current, "focus", () => this.onFocus()), lt(this.node.current, "blur", () => this.onBlur()));
1647
1647
  }
1648
1648
  unmount() {
1649
1649
  }
@@ -1655,23 +1655,23 @@ function sn(t, e) {
1655
1655
  const n = new PointerEvent("pointer" + t);
1656
1656
  e(n, Ke(n));
1657
1657
  }
1658
- class vl extends wt {
1658
+ class vl extends bt {
1659
1659
  constructor() {
1660
- super(...arguments), this.removeStartListeners = G, this.removeEndListeners = G, this.removeAccessibleListeners = G, this.startPointerPress = (e, n) => {
1660
+ super(...arguments), this.removeStartListeners = K, this.removeEndListeners = K, this.removeAccessibleListeners = K, this.startPointerPress = (e, n) => {
1661
1661
  if (this.isPressing)
1662
1662
  return;
1663
1663
  this.removeEndListeners();
1664
- const i = this.node.getProps(), o = ft(window, "pointerup", (a, l) => {
1664
+ const i = this.node.getProps(), o = ut(window, "pointerup", (a, l) => {
1665
1665
  if (!this.checkPressEnd())
1666
1666
  return;
1667
1667
  const { onTap: c, onTapCancel: u, globalTapTarget: f } = this.node.getProps(), d = !f && !Ar(this.node.current, a.target) ? u : c;
1668
- d && M.update(() => d(a, l));
1668
+ d && k.update(() => d(a, l));
1669
1669
  }, {
1670
1670
  passive: !(i.onTap || i.onPointerUp)
1671
- }), r = ft(window, "pointercancel", (a, l) => this.cancelPress(a, l), {
1671
+ }), r = ut(window, "pointercancel", (a, l) => this.cancelPress(a, l), {
1672
1672
  passive: !(i.onTapCancel || i.onPointerCancel)
1673
1673
  });
1674
- this.removeEndListeners = ht(o, r), this.startPress(e, n);
1674
+ this.removeEndListeners = ft(o, r), this.startPress(e, n);
1675
1675
  }, this.startAccessiblePress = () => {
1676
1676
  const e = (o) => {
1677
1677
  if (o.key !== "Enter" || this.isPressing)
@@ -1679,22 +1679,22 @@ class vl extends wt {
1679
1679
  const r = (a) => {
1680
1680
  a.key !== "Enter" || !this.checkPressEnd() || sn("up", (l, c) => {
1681
1681
  const { onTap: u } = this.node.getProps();
1682
- u && M.postRender(() => u(l, c));
1682
+ u && k.postRender(() => u(l, c));
1683
1683
  });
1684
1684
  };
1685
- this.removeEndListeners(), this.removeEndListeners = ct(this.node.current, "keyup", r), sn("down", (a, l) => {
1685
+ this.removeEndListeners(), this.removeEndListeners = lt(this.node.current, "keyup", r), sn("down", (a, l) => {
1686
1686
  this.startPress(a, l);
1687
1687
  });
1688
- }, n = ct(this.node.current, "keydown", e), i = () => {
1688
+ }, n = lt(this.node.current, "keydown", e), i = () => {
1689
1689
  this.isPressing && sn("cancel", (o, r) => this.cancelPress(o, r));
1690
- }, s = ct(this.node.current, "blur", i);
1691
- this.removeAccessibleListeners = ht(n, s);
1690
+ }, s = lt(this.node.current, "blur", i);
1691
+ this.removeAccessibleListeners = ft(n, s);
1692
1692
  };
1693
1693
  }
1694
1694
  startPress(e, n) {
1695
1695
  this.isPressing = !0;
1696
1696
  const { onTapStart: i, whileTap: s } = this.node.getProps();
1697
- s && this.node.animationState && this.node.animationState.setActive("whileTap", !0), i && M.postRender(() => i(e, n));
1697
+ s && this.node.animationState && this.node.animationState.setActive("whileTap", !0), i && k.postRender(() => i(e, n));
1698
1698
  }
1699
1699
  checkPressEnd() {
1700
1700
  return this.removeEndListeners(), this.isPressing = !1, this.node.getProps().whileTap && this.node.animationState && this.node.animationState.setActive("whileTap", !1), !Cr();
@@ -1703,13 +1703,13 @@ class vl extends wt {
1703
1703
  if (!this.checkPressEnd())
1704
1704
  return;
1705
1705
  const { onTapCancel: i } = this.node.getProps();
1706
- i && M.postRender(() => i(e, n));
1706
+ i && k.postRender(() => i(e, n));
1707
1707
  }
1708
1708
  mount() {
1709
- const e = this.node.getProps(), n = ft(e.globalTapTarget ? window : this.node.current, "pointerdown", this.startPointerPress, {
1709
+ const e = this.node.getProps(), n = ut(e.globalTapTarget ? window : this.node.current, "pointerdown", this.startPointerPress, {
1710
1710
  passive: !(e.onTapStart || e.onPointerStart)
1711
- }), i = ct(this.node.current, "focus", this.startAccessiblePress);
1712
- this.removeStartListeners = ht(n, i);
1711
+ }), i = lt(this.node.current, "focus", this.startAccessiblePress);
1712
+ this.removeStartListeners = ft(n, i);
1713
1713
  }
1714
1714
  unmount() {
1715
1715
  this.removeStartListeners(), this.removeEndListeners(), this.removeAccessibleListeners();
@@ -1721,14 +1721,14 @@ const xn = /* @__PURE__ */ new WeakMap(), rn = /* @__PURE__ */ new WeakMap(), Pl
1721
1721
  }, xl = (t) => {
1722
1722
  t.forEach(Pl);
1723
1723
  };
1724
- function bl({ root: t, ...e }) {
1724
+ function Tl({ root: t, ...e }) {
1725
1725
  const n = t || document;
1726
1726
  rn.has(n) || rn.set(n, {});
1727
1727
  const i = rn.get(n), s = JSON.stringify(e);
1728
1728
  return i[s] || (i[s] = new IntersectionObserver(xl, { root: t, ...e })), i[s];
1729
1729
  }
1730
- function Tl(t, e, n) {
1731
- const i = bl(e);
1730
+ function bl(t, e, n) {
1731
+ const i = Tl(e);
1732
1732
  return xn.set(t, n), i.observe(t), () => {
1733
1733
  xn.delete(t), i.unobserve(t);
1734
1734
  };
@@ -1737,7 +1737,7 @@ const wl = {
1737
1737
  some: 0,
1738
1738
  all: 1
1739
1739
  };
1740
- class Sl extends wt {
1740
+ class Sl extends bt {
1741
1741
  constructor() {
1742
1742
  super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
1743
1743
  }
@@ -1755,7 +1755,7 @@ class Sl extends wt {
1755
1755
  const { onViewportEnter: u, onViewportLeave: f } = this.node.getProps(), d = c ? u : f;
1756
1756
  d && d(l);
1757
1757
  };
1758
- return Tl(this.node.current, r, a);
1758
+ return bl(this.node.current, r, a);
1759
1759
  }
1760
1760
  mount() {
1761
1761
  this.startObserver();
@@ -1801,7 +1801,7 @@ function Ge(t, e, n) {
1801
1801
  const i = t.getProps();
1802
1802
  return Zn(i, e, n !== void 0 ? n : i.custom, t);
1803
1803
  }
1804
- const dt = (t) => t * 1e3, pt = (t) => t / 1e3, Rl = {
1804
+ const ht = (t) => t * 1e3, dt = (t) => t / 1e3, Rl = {
1805
1805
  type: "spring",
1806
1806
  stiffness: 500,
1807
1807
  damping: 25,
@@ -1834,8 +1834,8 @@ let Ve;
1834
1834
  function Ol() {
1835
1835
  Ve = void 0;
1836
1836
  }
1837
- const Pt = {
1838
- now: () => (Ve === void 0 && Pt.set($.isProcessing || Pa.useManualTiming ? $.timestamp : performance.now()), Ve),
1837
+ const vt = {
1838
+ now: () => (Ve === void 0 && vt.set(W.isProcessing || Pa.useManualTiming ? W.timestamp : performance.now()), Ve),
1839
1839
  set: (t) => {
1840
1840
  Ve = t, queueMicrotask(Ol);
1841
1841
  }
@@ -1856,7 +1856,7 @@ function _l(t) {
1856
1856
  }
1857
1857
  const Bl = 4;
1858
1858
  function Dr(t, e, n = 1) {
1859
- mt(n <= Bl, `Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);
1859
+ pt(n <= Bl, `Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);
1860
1860
  const [i, s] = _l(t);
1861
1861
  if (!i)
1862
1862
  return;
@@ -1913,10 +1913,10 @@ Kt.translateY = Kt.y;
1913
1913
  const Mr = (t) => (e) => e.test(t), $l = {
1914
1914
  test: (t) => t === "auto",
1915
1915
  parse: (t) => t
1916
- }, kr = [Ht, S, at, vt, za, Ha, $l], zi = (t) => kr.find(Mr(t)), Dt = /* @__PURE__ */ new Set();
1917
- let bn = !1, Tn = !1;
1916
+ }, kr = [Ht, S, ot, yt, za, Ha, $l], zi = (t) => kr.find(Mr(t)), Dt = /* @__PURE__ */ new Set();
1917
+ let Tn = !1, bn = !1;
1918
1918
  function Lr() {
1919
- if (Tn) {
1919
+ if (bn) {
1920
1920
  const t = Array.from(Dt).filter((i) => i.needsMeasurement), e = new Set(t.map((i) => i.element)), n = /* @__PURE__ */ new Map();
1921
1921
  e.forEach((i) => {
1922
1922
  const s = Wl(i);
@@ -1932,11 +1932,11 @@ function Lr() {
1932
1932
  i.suspendedScrollY !== void 0 && window.scrollTo(0, i.suspendedScrollY);
1933
1933
  });
1934
1934
  }
1935
- Tn = !1, bn = !1, Dt.forEach((t) => t.complete()), Dt.clear();
1935
+ bn = !1, Tn = !1, Dt.forEach((t) => t.complete()), Dt.clear();
1936
1936
  }
1937
1937
  function Or() {
1938
1938
  Dt.forEach((t) => {
1939
- t.readKeyframes(), t.needsMeasurement && (Tn = !0);
1939
+ t.readKeyframes(), t.needsMeasurement && (bn = !0);
1940
1940
  });
1941
1941
  }
1942
1942
  function Kl() {
@@ -1947,7 +1947,7 @@ class ti {
1947
1947
  this.isComplete = !1, this.isAsync = !1, this.needsMeasurement = !1, this.isScheduled = !1, this.unresolvedKeyframes = [...e], this.onComplete = n, this.name = i, this.motionValue = s, this.element = o, this.isAsync = r;
1948
1948
  }
1949
1949
  scheduleResolve() {
1950
- this.isScheduled = !0, this.isAsync ? (Dt.add(this), bn || (bn = !0, M.read(Or), M.resolveKeyframes(Lr))) : (this.readKeyframes(), this.complete());
1950
+ this.isScheduled = !0, this.isAsync ? (Dt.add(this), Tn || (Tn = !0, k.read(Or), k.resolveKeyframes(Lr))) : (this.readKeyframes(), this.complete());
1951
1951
  }
1952
1952
  readKeyframes() {
1953
1953
  const { unresolvedKeyframes: e, name: n, element: i, motionValue: s } = this;
@@ -1993,7 +1993,7 @@ const ei = (t, e) => (n) => !!(me(n) && Ka.test(n) && n.startsWith(t) || e && !G
1993
1993
  [n]: parseFloat(r),
1994
1994
  alpha: a !== void 0 ? parseFloat(a) : 1
1995
1995
  };
1996
- }, Gl = (t) => xt(0, 255, t), on = {
1996
+ }, Gl = (t) => Pt(0, 255, t), on = {
1997
1997
  ...Ht,
1998
1998
  transform: (t) => Math.round(Gl(t))
1999
1999
  }, Et = {
@@ -2017,8 +2017,8 @@ const wn = {
2017
2017
  }, It = {
2018
2018
  test: ei("hsl", "hue"),
2019
2019
  parse: jr("hue", "saturation", "lightness"),
2020
- 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)) + ")"
2021
- }, z = {
2020
+ transform: ({ hue: t, saturation: e, lightness: n, alpha: i = 1 }) => "hsla(" + Math.round(t) + ", " + ot.transform(ne(e)) + ", " + ot.transform(ne(n)) + ", " + ne(ee.transform(i)) + ")"
2021
+ }, H = {
2022
2022
  test: (t) => Et.test(t) || wn.test(t) || It.test(t),
2023
2023
  parse: (t) => Et.test(t) ? Et.parse(t) : It.test(t) ? It.parse(t) : wn.parse(t),
2024
2024
  transform: (t) => me(t) ? t : t.hasOwnProperty("red") ? Et.transform(t) : It.transform(t)
@@ -2035,7 +2035,7 @@ function le(t) {
2035
2035
  var: []
2036
2036
  }, s = [];
2037
2037
  let o = 0;
2038
- const a = e.replace(ql, (l) => (z.test(l) ? (i.color.push(o), s.push(_r), n.push(z.parse(l))) : l.startsWith(Xl) ? (i.var.push(o), s.push(Yl), n.push(l)) : (i.number.push(o), s.push(Fr), n.push(parseFloat(l))), ++o, Yi)).split(Yi);
2038
+ const a = e.replace(ql, (l) => (H.test(l) ? (i.color.push(o), s.push(_r), n.push(H.parse(l))) : l.startsWith(Xl) ? (i.var.push(o), s.push(Yl), n.push(l)) : (i.number.push(o), s.push(Fr), n.push(parseFloat(l))), ++o, Yi)).split(Yi);
2039
2039
  return { values: n, split: a, indexes: i, types: s };
2040
2040
  }
2041
2041
  function Br(t) {
@@ -2048,7 +2048,7 @@ function Ir(t) {
2048
2048
  for (let r = 0; r < i; r++)
2049
2049
  if (o += e[r], s[r] !== void 0) {
2050
2050
  const a = n[r];
2051
- a === Fr ? o += ne(s[r]) : a === _r ? o += z.transform(s[r]) : o += s[r];
2051
+ a === Fr ? o += ne(s[r]) : a === _r ? o += H.transform(s[r]) : o += s[r];
2052
2052
  }
2053
2053
  return o;
2054
2054
  };
@@ -2058,7 +2058,7 @@ function Jl(t) {
2058
2058
  const e = Br(t);
2059
2059
  return Ir(t)(e.map(Zl));
2060
2060
  }
2061
- const bt = {
2061
+ const xt = {
2062
2062
  test: zl,
2063
2063
  parse: Br,
2064
2064
  createTransformer: Ir,
@@ -2076,7 +2076,7 @@ function tc(t) {
2076
2076
  return i !== n && (o *= 100), e + "(" + o + s + ")";
2077
2077
  }
2078
2078
  const ec = /\b([a-z-]*)\(.*?\)/gu, Sn = {
2079
- ...bt,
2079
+ ...xt,
2080
2080
  getAnimatableNone: (t) => {
2081
2081
  const e = t.match(ec);
2082
2082
  return e ? e.map(tc).join(" ") : t;
@@ -2084,23 +2084,23 @@ const ec = /\b([a-z-]*)\(.*?\)/gu, Sn = {
2084
2084
  }, nc = {
2085
2085
  ...fr,
2086
2086
  // Color props
2087
- color: z,
2088
- backgroundColor: z,
2089
- outlineColor: z,
2090
- fill: z,
2091
- stroke: z,
2087
+ color: H,
2088
+ backgroundColor: H,
2089
+ outlineColor: H,
2090
+ fill: H,
2091
+ stroke: H,
2092
2092
  // Border props
2093
- borderColor: z,
2094
- borderTopColor: z,
2095
- borderRightColor: z,
2096
- borderBottomColor: z,
2097
- borderLeftColor: z,
2093
+ borderColor: H,
2094
+ borderTopColor: H,
2095
+ borderRightColor: H,
2096
+ borderBottomColor: H,
2097
+ borderLeftColor: H,
2098
2098
  filter: Sn,
2099
2099
  WebkitFilter: Sn
2100
2100
  }, ni = (t) => nc[t];
2101
2101
  function Nr(t, e) {
2102
2102
  let n = ni(t);
2103
- return n !== Sn && (n = bt), n.getAnimatableNone ? n.getAnimatableNone(e) : void 0;
2103
+ return n !== Sn && (n = xt), n.getAnimatableNone ? n.getAnimatableNone(e) : void 0;
2104
2104
  }
2105
2105
  const ic = /* @__PURE__ */ new Set(["auto", "none", "0"]);
2106
2106
  function sc(t, e, n) {
@@ -2173,7 +2173,7 @@ function Wr(t) {
2173
2173
  return () => (e === void 0 && (e = t()), e);
2174
2174
  }
2175
2175
  const Xi = (t, e) => e === "zIndex" ? !1 : !!(typeof t == "number" || Array.isArray(t) || typeof t == "string" && // It's animatable if we have a string
2176
- (bt.test(t) || t === "0") && // And it contains numbers and/or colors
2176
+ (xt.test(t) || t === "0") && // And it contains numbers and/or colors
2177
2177
  !t.startsWith("url("));
2178
2178
  function rc(t) {
2179
2179
  const e = t[0];
@@ -2261,9 +2261,9 @@ function Gr(t, e, n) {
2261
2261
  const an = 1e-3, lc = 0.01, qi = 10, cc = 0.05, uc = 1;
2262
2262
  function fc({ duration: t = 800, bounce: e = 0.25, velocity: n = 0, mass: i = 1 }) {
2263
2263
  let s, o;
2264
- Gt(t <= dt(qi), "Spring duration must be 10 seconds or less");
2264
+ Gt(t <= ht(qi), "Spring duration must be 10 seconds or less");
2265
2265
  let r = 1 - e;
2266
- r = xt(cc, uc, r), t = xt(lc, qi, pt(t)), r < 1 ? (s = (c) => {
2266
+ r = Pt(cc, uc, r), t = Pt(lc, qi, dt(t)), r < 1 ? (s = (c) => {
2267
2267
  const u = c * r, f = u * t, d = u - n, p = Cn(c, r), m = Math.exp(-f);
2268
2268
  return an - d / p * m;
2269
2269
  }, o = (c) => {
@@ -2277,7 +2277,7 @@ function fc({ duration: t = 800, bounce: e = 0.25, velocity: n = 0, mass: i = 1
2277
2277
  return u * f;
2278
2278
  });
2279
2279
  const a = 5 / t, l = dc(s, o, a);
2280
- if (t = dt(t), isNaN(l))
2280
+ if (t = ht(t), isNaN(l))
2281
2281
  return {
2282
2282
  stiffness: 100,
2283
2283
  damping: 10,
@@ -2328,8 +2328,8 @@ function gc(t) {
2328
2328
  function Hr({ keyframes: t, restDelta: e, restSpeed: n, ...i }) {
2329
2329
  const s = t[0], o = t[t.length - 1], r = { done: !1, value: s }, { stiffness: a, damping: l, mass: c, duration: u, velocity: f, isResolvedFromDuration: d } = gc({
2330
2330
  ...i,
2331
- velocity: -pt(i.velocity || 0)
2332
- }), p = f || 0, m = l / (2 * Math.sqrt(a * c)), x = o - s, T = pt(Math.sqrt(a / c)), P = Math.abs(x) < 5;
2331
+ velocity: -dt(i.velocity || 0)
2332
+ }), p = f || 0, m = l / (2 * Math.sqrt(a * c)), x = o - s, T = dt(Math.sqrt(a / c)), P = Math.abs(x) < 5;
2333
2333
  n || (n = P ? 0.01 : 2), e || (e = P ? 5e-3 : 0.5);
2334
2334
  let y;
2335
2335
  if (m < 1) {
@@ -2343,8 +2343,8 @@ function Hr({ keyframes: t, restDelta: e, restSpeed: n, ...i }) {
2343
2343
  else {
2344
2344
  const v = T * Math.sqrt(m * m - 1);
2345
2345
  y = (w) => {
2346
- const A = Math.exp(-m * T * w), L = Math.min(v * w, 300);
2347
- return o - A * ((p + m * T * x) * Math.sinh(L) + v * x * Math.cosh(L)) / v;
2346
+ const A = Math.exp(-m * T * w), j = Math.min(v * w, 300);
2347
+ return o - A * ((p + m * T * x) * Math.sinh(j) + v * x * Math.cosh(j)) / v;
2348
2348
  };
2349
2349
  }
2350
2350
  return {
@@ -2356,8 +2356,8 @@ function Hr({ keyframes: t, restDelta: e, restSpeed: n, ...i }) {
2356
2356
  else {
2357
2357
  let A = p;
2358
2358
  v !== 0 && (m < 1 ? A = Gr(y, v, w) : A = 0);
2359
- const L = Math.abs(A) <= n, q = Math.abs(o - w) <= e;
2360
- r.done = L && q;
2359
+ const j = Math.abs(A) <= n, q = Math.abs(o - w) <= e;
2360
+ r.done = j && q;
2361
2361
  }
2362
2362
  return r.value = r.done ? o : w, r;
2363
2363
  }
@@ -2372,12 +2372,12 @@ function Ji({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: i = 3
2372
2372
  const T = f + x, P = r === void 0 ? T : r(T);
2373
2373
  P !== T && (x = P - f);
2374
2374
  const y = (R) => -x * Math.exp(-R / i), v = (R) => P + y(R), w = (R) => {
2375
- const W = y(R), H = v(R);
2376
- d.done = Math.abs(W) <= c, d.value = d.done ? P : H;
2375
+ const U = y(R), G = v(R);
2376
+ d.done = Math.abs(U) <= c, d.value = d.done ? P : G;
2377
2377
  };
2378
- let A, L;
2378
+ let A, j;
2379
2379
  const q = (R) => {
2380
- p(d.value) && (A = R, L = Hr({
2380
+ p(d.value) && (A = R, j = Hr({
2381
2381
  keyframes: [d.value, m(d.value)],
2382
2382
  velocity: Gr(v, R, d.value),
2383
2383
  // TODO: This should be passing * 1000
@@ -2390,8 +2390,8 @@ function Ji({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: i = 3
2390
2390
  return q(0), {
2391
2391
  calculatedDuration: null,
2392
2392
  next: (R) => {
2393
- let W = !1;
2394
- return !L && A === void 0 && (W = !0, w(R), q(R)), A !== void 0 && R >= A ? L.next(R - A) : (!W && w(R), d);
2393
+ let U = !1;
2394
+ return !j && A === void 0 && (U = !0, w(R), q(R)), A !== void 0 && R >= A ? j.next(R - A) : (!U && w(R), d);
2395
2395
  }
2396
2396
  };
2397
2397
  }
@@ -2405,15 +2405,15 @@ function Pc(t, e, n, i, s) {
2405
2405
  }
2406
2406
  function ye(t, e, n, i) {
2407
2407
  if (t === e && n === i)
2408
- return G;
2408
+ return K;
2409
2409
  const s = (o) => Pc(o, 0, 1, t, n);
2410
2410
  return (o) => o === 0 || o === 1 ? o : zr(s(o), e, i);
2411
2411
  }
2412
- const xc = ye(0.42, 0, 1, 1), bc = ye(0, 0, 0.58, 1), Yr = ye(0.42, 0, 0.58, 1), Tc = (t) => Array.isArray(t) && typeof t[0] != "number", Xr = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, qr = (t) => (e) => 1 - t(1 - e), ii = (t) => 1 - Math.sin(Math.acos(t)), Zr = qr(ii), wc = Xr(ii), Jr = ye(0.33, 1.53, 0.69, 0.99), si = qr(Jr), Sc = Xr(si), Cc = (t) => (t *= 2) < 1 ? 0.5 * si(t) : 0.5 * (2 - Math.pow(2, -10 * (t - 1))), Qi = {
2413
- linear: G,
2412
+ const xc = ye(0.42, 0, 1, 1), Tc = ye(0, 0, 0.58, 1), Yr = ye(0.42, 0, 0.58, 1), bc = (t) => Array.isArray(t) && typeof t[0] != "number", Xr = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, qr = (t) => (e) => 1 - t(1 - e), ii = (t) => 1 - Math.sin(Math.acos(t)), Zr = qr(ii), wc = Xr(ii), Jr = ye(0.33, 1.53, 0.69, 0.99), si = qr(Jr), Sc = Xr(si), Cc = (t) => (t *= 2) < 1 ? 0.5 * si(t) : 0.5 * (2 - Math.pow(2, -10 * (t - 1))), Qi = {
2413
+ linear: K,
2414
2414
  easeIn: xc,
2415
2415
  easeInOut: Yr,
2416
- easeOut: bc,
2416
+ easeOut: Tc,
2417
2417
  circIn: ii,
2418
2418
  circInOut: wc,
2419
2419
  circOut: Zr,
@@ -2423,16 +2423,16 @@ const xc = ye(0.42, 0, 1, 1), bc = ye(0, 0, 0.58, 1), Yr = ye(0.42, 0, 0.58, 1),
2423
2423
  anticipate: Cc
2424
2424
  }, ts = (t) => {
2425
2425
  if (Array.isArray(t)) {
2426
- mt(t.length === 4, "Cubic bezier arrays must contain four numerical values.");
2426
+ pt(t.length === 4, "Cubic bezier arrays must contain four numerical values.");
2427
2427
  const [e, n, i, s] = t;
2428
2428
  return ye(e, n, i, s);
2429
2429
  } else if (typeof t == "string")
2430
- return mt(Qi[t] !== void 0, `Invalid easing type '${t}'`), Qi[t];
2430
+ return pt(Qi[t] !== void 0, `Invalid easing type '${t}'`), Qi[t];
2431
2431
  return t;
2432
2432
  }, ce = (t, e, n) => {
2433
2433
  const i = e - t;
2434
2434
  return i === 0 ? 1 : (n - t) / i;
2435
- }, j = (t, e, n) => t + (e - t) * n;
2435
+ }, F = (t, e, n) => t + (e - t) * n;
2436
2436
  function ln(t, e, n) {
2437
2437
  return n < 0 && (n += 1), n > 1 && (n -= 1), n < 1 / 6 ? t + (e - t) * 6 * n : n < 1 / 2 ? e : n < 2 / 3 ? t + (e - t) * (2 / 3 - n) * 6 : t;
2438
2438
  }
@@ -2471,16 +2471,16 @@ const ns = (t, e) => {
2471
2471
  if (!n || !i)
2472
2472
  return Oe(t, e);
2473
2473
  const s = { ...n };
2474
- return (o) => (s.red = cn(n.red, i.red, o), s.green = cn(n.green, i.green, o), s.blue = cn(n.blue, i.blue, o), s.alpha = j(n.alpha, i.alpha, o), Et.transform(s));
2474
+ return (o) => (s.red = cn(n.red, i.red, o), s.green = cn(n.green, i.green, o), s.blue = cn(n.blue, i.blue, o), s.alpha = F(n.alpha, i.alpha, o), Et.transform(s));
2475
2475
  }, An = /* @__PURE__ */ new Set(["none", "hidden"]);
2476
2476
  function Ec(t, e) {
2477
2477
  return An.has(t) ? (n) => n <= 0 ? t : e : (n) => n >= 1 ? e : t;
2478
2478
  }
2479
2479
  function Dc(t, e) {
2480
- return (n) => j(t, e, n);
2480
+ return (n) => F(t, e, n);
2481
2481
  }
2482
2482
  function ri(t) {
2483
- return typeof t == "number" ? Dc : typeof t == "string" ? Kn(t) ? Oe : z.test(t) ? ns : Lc : Array.isArray(t) ? Qr : typeof t == "object" ? z.test(t) ? ns : Mc : Oe;
2483
+ return typeof t == "number" ? Dc : typeof t == "string" ? Kn(t) ? Oe : H.test(t) ? ns : Lc : Array.isArray(t) ? Qr : typeof t == "object" ? H.test(t) ? ns : Mc : Oe;
2484
2484
  }
2485
2485
  function Qr(t, e) {
2486
2486
  const n = [...t], i = n.length, s = t.map((o, r) => ri(o)(o, e[r]));
@@ -2510,19 +2510,19 @@ function kc(t, e) {
2510
2510
  return i;
2511
2511
  }
2512
2512
  const Lc = (t, e) => {
2513
- const n = bt.createTransformer(e), i = le(t), s = le(e);
2514
- return i.indexes.var.length === s.indexes.var.length && i.indexes.color.length === s.indexes.color.length && i.indexes.number.length >= s.indexes.number.length ? An.has(t) && !s.values.length || An.has(e) && !i.values.length ? Ec(t, e) : ht(Qr(kc(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));
2513
+ const n = xt.createTransformer(e), i = le(t), s = le(e);
2514
+ return i.indexes.var.length === s.indexes.var.length && i.indexes.color.length === s.indexes.color.length && i.indexes.number.length >= s.indexes.number.length ? An.has(t) && !s.values.length || An.has(e) && !i.values.length ? Ec(t, e) : ft(Qr(kc(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));
2515
2515
  };
2516
2516
  function to(t, e, n) {
2517
- return typeof t == "number" && typeof e == "number" && typeof n == "number" ? j(t, e, n) : ri(t)(t, e);
2517
+ return typeof t == "number" && typeof e == "number" && typeof n == "number" ? F(t, e, n) : ri(t)(t, e);
2518
2518
  }
2519
2519
  function Oc(t, e, n) {
2520
2520
  const i = [], s = n || to, o = t.length - 1;
2521
2521
  for (let r = 0; r < o; r++) {
2522
2522
  let a = s(t[r], t[r + 1]);
2523
2523
  if (e) {
2524
- const l = Array.isArray(e) ? e[r] || G : e;
2525
- a = ht(l, a);
2524
+ const l = Array.isArray(e) ? e[r] || K : e;
2525
+ a = ft(l, a);
2526
2526
  }
2527
2527
  i.push(a);
2528
2528
  }
@@ -2530,7 +2530,7 @@ function Oc(t, e, n) {
2530
2530
  }
2531
2531
  function jc(t, e, { clamp: n = !0, ease: i, mixer: s } = {}) {
2532
2532
  const o = t.length;
2533
- if (mt(o === e.length, "Both input and output ranges must be the same length"), o === 1)
2533
+ if (pt(o === e.length, "Both input and output ranges must be the same length"), o === 1)
2534
2534
  return () => e[0];
2535
2535
  if (o === 2 && t[0] === t[1])
2536
2536
  return () => e[1];
@@ -2543,13 +2543,13 @@ function jc(t, e, { clamp: n = !0, ease: i, mixer: s } = {}) {
2543
2543
  const f = ce(t[u], t[u + 1], c);
2544
2544
  return r[u](f);
2545
2545
  };
2546
- return n ? (c) => l(xt(t[0], t[o - 1], c)) : l;
2546
+ return n ? (c) => l(Pt(t[0], t[o - 1], c)) : l;
2547
2547
  }
2548
2548
  function Fc(t, e) {
2549
2549
  const n = t[t.length - 1];
2550
2550
  for (let i = 1; i <= e; i++) {
2551
2551
  const s = ce(0, e, i);
2552
- t.push(j(n, 1, s));
2552
+ t.push(F(n, 1, s));
2553
2553
  }
2554
2554
  }
2555
2555
  function _c(t) {
@@ -2563,7 +2563,7 @@ function Ic(t, e) {
2563
2563
  return t.map(() => e || Yr).splice(0, t.length - 1);
2564
2564
  }
2565
2565
  function je({ duration: t = 300, keyframes: e, times: n, ease: i = "easeInOut" }) {
2566
- const s = Tc(i) ? i.map(ts) : ts(i), o = {
2566
+ const s = bc(i) ? i.map(ts) : ts(i), o = {
2567
2567
  done: !1,
2568
2568
  value: e[0]
2569
2569
  }, r = Bc(
@@ -2591,13 +2591,13 @@ function Nc(t) {
2591
2591
  const Uc = (t) => {
2592
2592
  const e = ({ timestamp: n }) => t(n);
2593
2593
  return {
2594
- start: () => M.update(e, !0),
2595
- stop: () => gt(e),
2594
+ start: () => k.update(e, !0),
2595
+ stop: () => mt(e),
2596
2596
  /**
2597
2597
  * If we're processing this frame we can use the
2598
2598
  * framelocked timestamp to keep things in sync.
2599
2599
  */
2600
- now: () => $.isProcessing ? $.timestamp : Pt.now()
2600
+ now: () => W.isProcessing ? W.timestamp : vt.now()
2601
2601
  };
2602
2602
  }, Wc = {
2603
2603
  decay: Ji,
@@ -2621,7 +2621,7 @@ class oi extends $r {
2621
2621
  initPlayback(e) {
2622
2622
  const { type: n = "keyframes", repeat: i = 0, repeatDelay: s = 0, repeatType: o, velocity: r = 0 } = this.options, a = Wc[n] || je;
2623
2623
  let l, c;
2624
- a !== je && typeof e[0] != "number" && (process.env.NODE_ENV !== "production" && mt(e.length === 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${e}`), l = ht($c, to(e[0], e[1])), e = [0, 100]);
2624
+ 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($c, to(e[0], e[1])), e = [0, 100]);
2625
2625
  const u = a({ ...this.options, keyframes: e });
2626
2626
  o === "mirror" && (c = a({
2627
2627
  ...this.options,
@@ -2658,32 +2658,32 @@ class oi extends $r {
2658
2658
  let v = this.currentTime, w = o;
2659
2659
  if (p) {
2660
2660
  const R = Math.min(this.currentTime, u) / f;
2661
- let W = Math.floor(R), H = R % 1;
2662
- !H && R >= 1 && (H = 1), H === 1 && W--, W = Math.min(W, p + 1), !!(W % 2) && (m === "reverse" ? (H = 1 - H, x && (H -= x / f)) : m === "mirror" && (w = r)), v = xt(0, 1, H) * f;
2661
+ let U = Math.floor(R), G = R % 1;
2662
+ !G && R >= 1 && (G = 1), G === 1 && U--, U = Math.min(U, p + 1), !!(U % 2) && (m === "reverse" ? (G = 1 - G, x && (G -= x / f)) : m === "mirror" && (w = r)), v = Pt(0, 1, G) * f;
2663
2663
  }
2664
2664
  const A = y ? { done: !1, value: l[0] } : w.next(v);
2665
2665
  a && (A.value = a(A.value));
2666
- let { done: L } = A;
2667
- !y && c !== null && (L = this.speed >= 0 ? this.currentTime >= u : this.currentTime <= 0);
2668
- const q = this.holdTime === null && (this.state === "finished" || this.state === "running" && L);
2666
+ let { done: j } = A;
2667
+ !y && c !== null && (j = this.speed >= 0 ? this.currentTime >= u : this.currentTime <= 0);
2668
+ const q = this.holdTime === null && (this.state === "finished" || this.state === "running" && j);
2669
2669
  return q && s !== void 0 && (A.value = He(l, this.options, s)), T && T(A.value), q && this.finish(), A;
2670
2670
  }
2671
2671
  get duration() {
2672
2672
  const { resolved: e } = this;
2673
- return e ? pt(e.calculatedDuration) : 0;
2673
+ return e ? dt(e.calculatedDuration) : 0;
2674
2674
  }
2675
2675
  get time() {
2676
- return pt(this.currentTime);
2676
+ return dt(this.currentTime);
2677
2677
  }
2678
2678
  set time(e) {
2679
- e = dt(e), this.currentTime = e, this.holdTime !== null || this.speed === 0 ? this.holdTime = e : this.driver && (this.startTime = this.driver.now() - e / this.speed);
2679
+ e = ht(e), this.currentTime = e, this.holdTime !== null || this.speed === 0 ? this.holdTime = e : this.driver && (this.startTime = this.driver.now() - e / this.speed);
2680
2680
  }
2681
2681
  get speed() {
2682
2682
  return this.playbackSpeed;
2683
2683
  }
2684
2684
  set speed(e) {
2685
2685
  const n = this.playbackSpeed !== e;
2686
- this.playbackSpeed = e, n && (this.time = pt(this.currentTime));
2686
+ this.playbackSpeed = e, n && (this.time = dt(this.currentTime));
2687
2687
  }
2688
2688
  play() {
2689
2689
  if (this.resolver.isScheduled || this.resolver.resume(), !this._resolved) {
@@ -2801,7 +2801,7 @@ class ss extends $r {
2801
2801
  e = x.keyframes, e.length === 1 && (e[1] = e[0]), s = x.duration, o = x.times, r = x.ease, a = "keyframes";
2802
2802
  }
2803
2803
  const u = Gc(l.owner.current, c, e, { ...this.options, duration: s, times: o, ease: r });
2804
- return u.startTime = Pt.now(), this.pendingTimeline ? (u.timeline = this.pendingTimeline, this.pendingTimeline = void 0) : u.onfinish = () => {
2804
+ return u.startTime = vt.now(), this.pendingTimeline ? (u.timeline = this.pendingTimeline, this.pendingTimeline = void 0) : u.onfinish = () => {
2805
2805
  const { onComplete: f } = this.options;
2806
2806
  l.set(He(e, this.options, n)), f && f(), this.cancel(), this.resolveFinishedPromise();
2807
2807
  }, {
@@ -2818,21 +2818,21 @@ class ss extends $r {
2818
2818
  if (!e)
2819
2819
  return 0;
2820
2820
  const { duration: n } = e;
2821
- return pt(n);
2821
+ return dt(n);
2822
2822
  }
2823
2823
  get time() {
2824
2824
  const { resolved: e } = this;
2825
2825
  if (!e)
2826
2826
  return 0;
2827
2827
  const { animation: n } = e;
2828
- return pt(n.currentTime || 0);
2828
+ return dt(n.currentTime || 0);
2829
2829
  }
2830
2830
  set time(e) {
2831
2831
  const { resolved: n } = this;
2832
2832
  if (!n)
2833
2833
  return;
2834
2834
  const { animation: i } = n;
2835
- i.currentTime = dt(e);
2835
+ i.currentTime = ht(e);
2836
2836
  }
2837
2837
  get speed() {
2838
2838
  const { resolved: e } = this;
@@ -2865,11 +2865,11 @@ class ss extends $r {
2865
2865
  else {
2866
2866
  const { resolved: n } = this;
2867
2867
  if (!n)
2868
- return G;
2868
+ return K;
2869
2869
  const { animation: i } = n;
2870
2870
  i.timeline = e, i.onfinish = null;
2871
2871
  }
2872
- return G;
2872
+ return K;
2873
2873
  }
2874
2874
  play() {
2875
2875
  if (this.isStopped)
@@ -2906,7 +2906,7 @@ class ss extends $r {
2906
2906
  ease: r,
2907
2907
  times: a,
2908
2908
  isGenerator: !0
2909
- }), m = dt(this.time);
2909
+ }), m = ht(this.time);
2910
2910
  c.setWithVelocity(p.sample(m - Fe).value, p.sample(m).value, Fe);
2911
2911
  }
2912
2912
  const { onStop: l } = this.options;
@@ -2935,7 +2935,7 @@ function qc(t, e) {
2935
2935
  const { currentTime: s } = e, r = (s === null ? 0 : s.value) / 100;
2936
2936
  n !== r && t(r), n = r;
2937
2937
  };
2938
- return M.update(i, !0), () => gt(i);
2938
+ return k.update(i, !0), () => mt(i);
2939
2939
  }
2940
2940
  const Zc = Wr(() => window.ScrollTimeline !== void 0);
2941
2941
  class Jc {
@@ -3007,7 +3007,7 @@ class Jc {
3007
3007
  const li = (t, e, n, i = {}, s, o, r) => (a) => {
3008
3008
  const l = Qn(i, t) || {}, c = l.delay || i.delay || 0;
3009
3009
  let { elapsed: u = 0 } = i;
3010
- u = u - dt(c);
3010
+ u = u - ht(c);
3011
3011
  let f = {
3012
3012
  keyframes: Array.isArray(n) ? n : [null, n],
3013
3013
  ease: "easeOut",
@@ -3028,12 +3028,12 @@ const li = (t, e, n, i = {}, s, o, r) => (a) => {
3028
3028
  kl(l) || (f = {
3029
3029
  ...f,
3030
3030
  ...Ml(t, f)
3031
- }), f.duration && (f.duration = dt(f.duration)), f.repeatDelay && (f.repeatDelay = dt(f.repeatDelay)), f.from !== void 0 && (f.keyframes[0] = f.from);
3031
+ }), f.duration && (f.duration = ht(f.duration)), f.repeatDelay && (f.repeatDelay = ht(f.repeatDelay)), f.from !== void 0 && (f.keyframes[0] = f.from);
3032
3032
  let d = !1;
3033
3033
  if ((f.type === !1 || f.duration === 0 && !f.repeatDelay) && (f.duration = 0, f.delay === 0 && (d = !0)), d && !o && e.get() !== void 0) {
3034
3034
  const p = He(f.keyframes, l);
3035
3035
  if (p !== void 0)
3036
- return M.update(() => {
3036
+ return k.update(() => {
3037
3037
  f.onUpdate(p), f.onComplete();
3038
3038
  }), new Jc([]);
3039
3039
  }
@@ -3080,12 +3080,12 @@ class so {
3080
3080
  */
3081
3081
  constructor(e, n = {}) {
3082
3082
  this.version = "11.3.19", this.canTrackVelocity = null, this.events = {}, this.updateAndNotify = (i, s = !0) => {
3083
- const o = Pt.now();
3083
+ const o = vt.now();
3084
3084
  this.updatedAt !== o && this.setPrevFrameValue(), this.prev = this.current, this.setCurrent(i), this.current !== this.prev && this.events.change && this.events.change.notify(this.current), s && this.events.renderRequest && this.events.renderRequest.notify(this.current);
3085
3085
  }, this.hasAnimated = !1, this.setCurrent(e), this.owner = n.owner;
3086
3086
  }
3087
3087
  setCurrent(e) {
3088
- this.current = e, this.updatedAt = Pt.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = Qc(this.current));
3088
+ this.current = e, this.updatedAt = vt.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = Qc(this.current));
3089
3089
  }
3090
3090
  setPrevFrameValue(e = this.current) {
3091
3091
  this.prevFrameValue = e, this.prevUpdatedAt = this.updatedAt;
@@ -3137,7 +3137,7 @@ class so {
3137
3137
  this.events[e] || (this.events[e] = new ci());
3138
3138
  const i = this.events[e].add(n);
3139
3139
  return e === "change" ? () => {
3140
- i(), M.read(() => {
3140
+ i(), k.read(() => {
3141
3141
  this.events.change.getSize() || this.stop();
3142
3142
  });
3143
3143
  } : i;
@@ -3206,7 +3206,7 @@ class so {
3206
3206
  * @public
3207
3207
  */
3208
3208
  getVelocity() {
3209
- const e = Pt.now();
3209
+ const e = vt.now();
3210
3210
  if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > os)
3211
3211
  return 0;
3212
3212
  const n = Math.min(this.updatedAt - this.prevUpdatedAt, os);
@@ -3305,7 +3305,7 @@ class nu extends so {
3305
3305
  }
3306
3306
  }
3307
3307
  function iu(t) {
3308
- return !!(Y(t) && t.add);
3308
+ return !!(z(t) && t.add);
3309
3309
  }
3310
3310
  function Rn(t, e) {
3311
3311
  var n;
@@ -3337,7 +3337,7 @@ function oo(t, e, { delay: n = 0, transitionOverride: i, type: s } = {}) {
3337
3337
  if (window.HandoffAppearAnimations) {
3338
3338
  const P = ro(t);
3339
3339
  if (P) {
3340
- const y = window.HandoffAppearAnimations(P, f, d, M);
3340
+ const y = window.HandoffAppearAnimations(P, f, d, k);
3341
3341
  y !== null && (m.elapsed = y, x = !0);
3342
3342
  }
3343
3343
  }
@@ -3346,7 +3346,7 @@ function oo(t, e, { delay: n = 0, transitionOverride: i, type: s } = {}) {
3346
3346
  T && c.push(T);
3347
3347
  }
3348
3348
  return a && Promise.all(c).then(() => {
3349
- M.update(() => {
3349
+ k.update(() => {
3350
3350
  a && eu(t, a);
3351
3351
  });
3352
3352
  }), c;
@@ -3418,35 +3418,35 @@ function fu(t) {
3418
3418
  for (let T = 0; T < cu; T++) {
3419
3419
  const P = lu[T], y = n[P], v = c[P] !== void 0 ? c[P] : u[P], w = oe(v), A = P === l ? y.isActive : null;
3420
3420
  A === !1 && (m = T);
3421
- let L = v === u[P] && v !== c[P] && w;
3422
- if (L && i && t.manuallyAnimateOnMount && (L = !1), y.protectedKeys = { ...p }, // If it isn't active and hasn't *just* been set as inactive
3421
+ let j = v === u[P] && v !== c[P] && w;
3422
+ if (j && i && t.manuallyAnimateOnMount && (j = !1), y.protectedKeys = { ...p }, // If it isn't active and hasn't *just* been set as inactive
3423
3423
  !y.isActive && A === null || // If we didn't and don't have any defined prop for this animation type
3424
3424
  !v && !y.prevProp || // Or if the prop doesn't define an animation
3425
3425
  ae(v) || typeof v == "boolean")
3426
3426
  continue;
3427
3427
  let R = hu(y.prevProp, v) || // If we're making this variant active, we want to always make it active
3428
- P === l && y.isActive && !L && w || // If we removed a higher-priority variant (i is in reverse order)
3429
- T > m && w, W = !1;
3430
- const H = Array.isArray(v) ? v : [v];
3431
- let rt = H.reduce(s(P), {});
3428
+ P === l && y.isActive && !j && w || // If we removed a higher-priority variant (i is in reverse order)
3429
+ T > m && w, U = !1;
3430
+ const G = Array.isArray(v) ? v : [v];
3431
+ let rt = G.reduce(s(P), {});
3432
3432
  A === !1 && (rt = {});
3433
- const { prevResolvedValues: O = {} } = y, U = {
3434
- ...O,
3433
+ const { prevResolvedValues: wt = {} } = y, Z = {
3434
+ ...wt,
3435
3435
  ...rt
3436
- }, J = (F) => {
3437
- R = !0, d.has(F) && (W = !0, d.delete(F)), y.needsAnimating[F] = !0;
3438
- const tt = t.getValue(F);
3439
- tt && (tt.liveStyle = !1);
3436
+ }, M = (L) => {
3437
+ R = !0, d.has(L) && (U = !0, d.delete(L)), y.needsAnimating[L] = !0;
3438
+ const Y = t.getValue(L);
3439
+ Y && (Y.liveStyle = !1);
3440
3440
  };
3441
- for (const F in U) {
3442
- const tt = rt[F], Lt = O[F];
3443
- if (p.hasOwnProperty(F))
3441
+ for (const L in Z) {
3442
+ const Y = rt[L], Lt = wt[L];
3443
+ if (p.hasOwnProperty(L))
3444
3444
  continue;
3445
3445
  let Ot = !1;
3446
- Pn(tt) && Pn(Lt) ? Ot = !Rr(tt, Lt) : Ot = tt !== Lt, Ot ? tt != null ? J(F) : d.add(F) : tt !== void 0 && d.has(F) ? J(F) : y.protectedKeys[F] = !0;
3446
+ Pn(Y) && Pn(Lt) ? Ot = !Rr(Y, Lt) : Ot = Y !== Lt, Ot ? Y != null ? M(L) : d.add(L) : Y !== void 0 && d.has(L) ? M(L) : y.protectedKeys[L] = !0;
3447
3447
  }
3448
- y.prevProp = v, y.prevResolvedValues = rt, y.isActive && (p = { ...p, ...rt }), i && t.blockInitialAnimation && (R = !1), R && (!L || W) && f.push(...H.map((F) => ({
3449
- animation: F,
3448
+ y.prevProp = v, y.prevResolvedValues = rt, y.isActive && (p = { ...p, ...rt }), i && t.blockInitialAnimation && (R = !1), R && (!j || U) && f.push(...G.map((L) => ({
3449
+ animation: L,
3450
3450
  options: { type: P }
3451
3451
  })));
3452
3452
  }
@@ -3505,7 +3505,7 @@ function as() {
3505
3505
  exit: Ct()
3506
3506
  };
3507
3507
  }
3508
- class du extends wt {
3508
+ class du extends bt {
3509
3509
  /**
3510
3510
  * We dynamically generate the AnimationState manager as it contains a reference
3511
3511
  * to the underlying animation library. We only want to load that if we load this,
@@ -3534,7 +3534,7 @@ class du extends wt {
3534
3534
  }
3535
3535
  }
3536
3536
  let pu = 0;
3537
- class mu extends wt {
3537
+ class mu extends bt {
3538
3538
  constructor() {
3539
3539
  super(...arguments), this.id = pu++;
3540
3540
  }
@@ -3574,12 +3574,12 @@ class ao {
3574
3574
  const f = fn(this.lastMoveEventInfo, this.history), d = this.startEvent !== null, p = yu(f.offset, { x: 0, y: 0 }) >= 3;
3575
3575
  if (!d && !p)
3576
3576
  return;
3577
- const { point: m } = f, { timestamp: x } = $;
3577
+ const { point: m } = f, { timestamp: x } = W;
3578
3578
  this.history.push({ ...m, timestamp: x });
3579
3579
  const { onStart: T, onMove: P } = this.handlers;
3580
3580
  d || (T && T(this.lastMoveEvent, f), this.startEvent = this.lastMoveEvent), P && P(this.lastMoveEvent, f);
3581
3581
  }, this.handlePointerMove = (f, d) => {
3582
- this.lastMoveEvent = f, this.lastMoveEventInfo = un(d, this.transformPagePoint), M.update(this.updatePoint, !0);
3582
+ this.lastMoveEvent = f, this.lastMoveEventInfo = un(d, this.transformPagePoint), k.update(this.updatePoint, !0);
3583
3583
  }, this.handlePointerUp = (f, d) => {
3584
3584
  this.end();
3585
3585
  const { onEnd: p, onSessionEnd: m, resumeAnimation: x } = this.handlers;
@@ -3587,19 +3587,19 @@ class ao {
3587
3587
  return;
3588
3588
  const T = fn(f.type === "pointercancel" ? this.lastMoveEventInfo : un(d, this.transformPagePoint), this.history);
3589
3589
  this.startEvent && p && p(f, T), m && m(f, T);
3590
- }, !Tr(e))
3590
+ }, !br(e))
3591
3591
  return;
3592
3592
  this.dragSnapToOrigin = o, this.handlers = n, this.transformPagePoint = i, this.contextWindow = s || window;
3593
- const r = Ke(e), a = un(r, this.transformPagePoint), { point: l } = a, { timestamp: c } = $;
3593
+ const r = Ke(e), a = un(r, this.transformPagePoint), { point: l } = a, { timestamp: c } = W;
3594
3594
  this.history = [{ ...l, timestamp: c }];
3595
3595
  const { onSessionStart: u } = n;
3596
- u && u(e, fn(a, this.history)), this.removeListeners = ht(ft(this.contextWindow, "pointermove", this.handlePointerMove), ft(this.contextWindow, "pointerup", this.handlePointerUp), ft(this.contextWindow, "pointercancel", this.handlePointerUp));
3596
+ u && u(e, fn(a, this.history)), this.removeListeners = ft(ut(this.contextWindow, "pointermove", this.handlePointerMove), ut(this.contextWindow, "pointerup", this.handlePointerUp), ut(this.contextWindow, "pointercancel", this.handlePointerUp));
3597
3597
  }
3598
3598
  updateHandlers(e) {
3599
3599
  this.handlers = e;
3600
3600
  }
3601
3601
  end() {
3602
- this.removeListeners && this.removeListeners(), gt(this.updatePoint);
3602
+ this.removeListeners && this.removeListeners(), mt(this.updatePoint);
3603
3603
  }
3604
3604
  }
3605
3605
  function un(t, e) {
@@ -3627,11 +3627,11 @@ function Pu(t, e) {
3627
3627
  return { x: 0, y: 0 };
3628
3628
  let n = t.length - 1, i = null;
3629
3629
  const s = lo(t);
3630
- for (; n >= 0 && (i = t[n], !(s.timestamp - i.timestamp > dt(e))); )
3630
+ for (; n >= 0 && (i = t[n], !(s.timestamp - i.timestamp > ht(e))); )
3631
3631
  n--;
3632
3632
  if (!i)
3633
3633
  return { x: 0, y: 0 };
3634
- const o = pt(s.timestamp - i.timestamp);
3634
+ const o = dt(s.timestamp - i.timestamp);
3635
3635
  if (o === 0)
3636
3636
  return { x: 0, y: 0 };
3637
3637
  const r = {
@@ -3640,7 +3640,7 @@ function Pu(t, e) {
3640
3640
  };
3641
3641
  return r.x === 1 / 0 && (r.x = 0), r.y === 1 / 0 && (r.y = 0), r;
3642
3642
  }
3643
- const co = 1e-4, xu = 1 - co, bu = 1 + co, uo = 0.01, Tu = 0 - uo, wu = 0 + uo;
3643
+ const co = 1e-4, xu = 1 - co, Tu = 1 + co, uo = 0.01, bu = 0 - uo, wu = 0 + uo;
3644
3644
  function Q(t) {
3645
3645
  return t.max - t.min;
3646
3646
  }
@@ -3648,7 +3648,7 @@ function Su(t, e, n) {
3648
3648
  return Math.abs(t - e) <= n;
3649
3649
  }
3650
3650
  function us(t, e, n, i = 0.5) {
3651
- t.origin = i, t.originPoint = j(e.min, e.max, t.origin), t.scale = Q(n) / Q(e), t.translate = j(n.min, n.max, t.origin) - t.originPoint, (t.scale >= xu && t.scale <= bu || isNaN(t.scale)) && (t.scale = 1), (t.translate >= Tu && t.translate <= wu || isNaN(t.translate)) && (t.translate = 0);
3651
+ t.origin = i, t.originPoint = F(e.min, e.max, t.origin), t.scale = Q(n) / Q(e), t.translate = F(n.min, n.max, t.origin) - t.originPoint, (t.scale >= xu && t.scale <= Tu || isNaN(t.scale)) && (t.scale = 1), (t.translate >= bu && t.translate <= wu || isNaN(t.translate)) && (t.translate = 0);
3652
3652
  }
3653
3653
  function ie(t, e, n, i) {
3654
3654
  us(t.x, e.x, n.x, i ? i.originX : void 0), us(t.y, e.y, n.y, i ? i.originY : void 0);
@@ -3666,7 +3666,7 @@ function se(t, e, n) {
3666
3666
  hs(t.x, e.x, n.x), hs(t.y, e.y, n.y);
3667
3667
  }
3668
3668
  function Au(t, { min: e, max: n }, i) {
3669
- return e !== void 0 && t < e ? t = i ? j(e, t, i.min) : Math.max(t, e) : n !== void 0 && t > n && (t = i ? j(n, t, i.max) : Math.min(t, n)), t;
3669
+ return e !== void 0 && t < e ? t = i ? F(e, t, i.min) : Math.max(t, e) : n !== void 0 && t > n && (t = i ? F(n, t, i.max) : Math.min(t, n)), t;
3670
3670
  }
3671
3671
  function ds(t, e, n) {
3672
3672
  return {
@@ -3693,7 +3693,7 @@ function Vu(t, e) {
3693
3693
  function Eu(t, e) {
3694
3694
  let n = 0.5;
3695
3695
  const i = Q(t), s = Q(e);
3696
- 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);
3696
+ return s > i ? n = ce(e.min, e.max - i, t.min) : i > s && (n = ce(t.min, t.max - s, e.min)), Pt(0, 1, n);
3697
3697
  }
3698
3698
  function Du(t, e) {
3699
3699
  const n = {};
@@ -3727,7 +3727,7 @@ const ys = () => ({
3727
3727
  x: vs(),
3728
3728
  y: vs()
3729
3729
  });
3730
- function it(t) {
3730
+ function nt(t) {
3731
3731
  return [t("x"), t("y")];
3732
3732
  }
3733
3733
  function fo({ top: t, left: e, right: n, bottom: i }) {
@@ -3778,7 +3778,7 @@ function Mn(t, e = 0, n = 1, i, s) {
3778
3778
  function po(t, { x: e, y: n }) {
3779
3779
  Mn(t.x, e.translate, e.scale, e.originPoint), Mn(t.y, n.translate, n.scale, n.originPoint);
3780
3780
  }
3781
- const bs = 0.999999999999, Ts = 1.0000000000001;
3781
+ const Ts = 0.999999999999, bs = 1.0000000000001;
3782
3782
  function Ou(t, e, n, i = !1) {
3783
3783
  const s = n.length;
3784
3784
  if (!s)
@@ -3793,13 +3793,13 @@ function Ou(t, e, n, i = !1) {
3793
3793
  y: -o.scroll.offset.y
3794
3794
  }), r && (e.x *= r.x.scale, e.y *= r.y.scale, po(t, r)), i && At(o.latestValues) && Wt(t, o.latestValues));
3795
3795
  }
3796
- e.x < Ts && e.x > bs && (e.x = 1), e.y < Ts && e.y > bs && (e.y = 1);
3796
+ e.x < bs && e.x > Ts && (e.x = 1), e.y < bs && e.y > Ts && (e.y = 1);
3797
3797
  }
3798
3798
  function Ut(t, e) {
3799
3799
  t.min = t.min + e, t.max = t.max + e;
3800
3800
  }
3801
3801
  function ws(t, e, n, i, s = 0.5) {
3802
- const o = j(t.min, t.max, s);
3802
+ const o = F(t.min, t.max, s);
3803
3803
  Mn(t, e, n, o, i);
3804
3804
  }
3805
3805
  function Wt(t, e) {
@@ -3829,9 +3829,9 @@ class _u {
3829
3829
  const { drag: p, dragPropagation: m, onDragStart: x } = this.getProps();
3830
3830
  if (p && !m && (this.openGlobalLock && this.openGlobalLock(), this.openGlobalLock = Sr(p), !this.openGlobalLock))
3831
3831
  return;
3832
- this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), it((P) => {
3832
+ this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), nt((P) => {
3833
3833
  let y = this.getAxisMotionValue(P).get() || 0;
3834
- if (at.test(y)) {
3834
+ if (ot.test(y)) {
3835
3835
  const { projection: v } = this.visualElement;
3836
3836
  if (v && v.layout) {
3837
3837
  const w = v.layout.layoutBox[P];
@@ -3839,7 +3839,7 @@ class _u {
3839
3839
  }
3840
3840
  }
3841
3841
  this.originPoint[P] = y;
3842
- }), x && M.postRender(() => x(u, f)), (d = this.removeWillChange) === null || d === void 0 || d.call(this), this.removeWillChange = Rn(this.visualElement, "transform");
3842
+ }), x && k.postRender(() => x(u, f)), (d = this.removeWillChange) === null || d === void 0 || d.call(this), this.removeWillChange = Rn(this.visualElement, "transform");
3843
3843
  const { animationState: T } = this.visualElement;
3844
3844
  T && T.setActive("whileDrag", !0);
3845
3845
  }, r = (u, f) => {
@@ -3852,7 +3852,7 @@ class _u {
3852
3852
  return;
3853
3853
  }
3854
3854
  this.updateAxis("x", f.point, T), this.updateAxis("y", f.point, T), this.visualElement.render(), x && x(u, f);
3855
- }, a = (u, f) => this.stop(u, f), l = () => it((u) => {
3855
+ }, a = (u, f) => this.stop(u, f), l = () => nt((u) => {
3856
3856
  var f;
3857
3857
  return this.getAnimationState(u) === "paused" && ((f = this.getAxisMotionValue(u).animation) === null || f === void 0 ? void 0 : f.play());
3858
3858
  }), { dragSnapToOrigin: c } = this.getProps();
@@ -3877,7 +3877,7 @@ class _u {
3877
3877
  const { velocity: o } = n;
3878
3878
  this.startAnimation(o);
3879
3879
  const { onDragEnd: r } = this.getProps();
3880
- r && M.postRender(() => r(e, n));
3880
+ r && k.postRender(() => r(e, n));
3881
3881
  }
3882
3882
  cancel() {
3883
3883
  this.isDragging = !1;
@@ -3897,7 +3897,7 @@ class _u {
3897
3897
  resolveConstraints() {
3898
3898
  var e;
3899
3899
  const { dragConstraints: n, dragElastic: i } = this.getProps(), s = this.visualElement.projection && !this.visualElement.projection.layout ? this.visualElement.projection.measure(!1) : (e = this.visualElement.projection) === null || e === void 0 ? void 0 : e.layout, o = this.constraints;
3900
- n && Bt(n) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : n && s ? this.constraints = Ru(s.layoutBox, n) : this.constraints = !1, this.elastic = Mu(i), o !== this.constraints && s && this.constraints && !this.hasMutatedConstraints && it((r) => {
3900
+ n && Bt(n) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : n && s ? this.constraints = Ru(s.layoutBox, n) : this.constraints = !1, this.elastic = Mu(i), o !== this.constraints && s && this.constraints && !this.hasMutatedConstraints && nt((r) => {
3901
3901
  this.constraints !== !1 && this.getAxisMotionValue(r) && (this.constraints[r] = Du(s.layoutBox[r], this.constraints[r]));
3902
3902
  });
3903
3903
  }
@@ -3906,7 +3906,7 @@ class _u {
3906
3906
  if (!e || !Bt(e))
3907
3907
  return !1;
3908
3908
  const i = e.current;
3909
- mt(i !== null, "If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");
3909
+ pt(i !== null, "If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");
3910
3910
  const { projection: s } = this.visualElement;
3911
3911
  if (!s || !s.layout)
3912
3912
  return !1;
@@ -3919,7 +3919,7 @@ class _u {
3919
3919
  return r;
3920
3920
  }
3921
3921
  startAnimation(e) {
3922
- const { drag: n, dragMomentum: i, dragElastic: s, dragTransition: o, dragSnapToOrigin: r, onDragTransitionEnd: a } = this.getProps(), l = this.constraints || {}, c = it((u) => {
3922
+ const { drag: n, dragMomentum: i, dragElastic: s, dragTransition: o, dragSnapToOrigin: r, onDragTransitionEnd: a } = this.getProps(), l = this.constraints || {}, c = nt((u) => {
3923
3923
  if (!Se(u, n, this.currentDirection))
3924
3924
  return;
3925
3925
  let f = l && l[u] || {};
@@ -3944,10 +3944,10 @@ class _u {
3944
3944
  return i.start(li(e, i, 0, n, this.visualElement, !1, Rn(this.visualElement, e)));
3945
3945
  }
3946
3946
  stopAnimation() {
3947
- it((e) => this.getAxisMotionValue(e).stop());
3947
+ nt((e) => this.getAxisMotionValue(e).stop());
3948
3948
  }
3949
3949
  pauseAnimation() {
3950
- it((e) => {
3950
+ nt((e) => {
3951
3951
  var n;
3952
3952
  return (n = this.getAxisMotionValue(e).animation) === null || n === void 0 ? void 0 : n.pause();
3953
3953
  });
@@ -3967,14 +3967,14 @@ class _u {
3967
3967
  return s || this.visualElement.getValue(e, (i.initial ? i.initial[e] : void 0) || 0);
3968
3968
  }
3969
3969
  snapToCursor(e) {
3970
- it((n) => {
3970
+ nt((n) => {
3971
3971
  const { drag: i } = this.getProps();
3972
3972
  if (!Se(n, i, this.currentDirection))
3973
3973
  return;
3974
3974
  const { projection: s } = this.visualElement, o = this.getAxisMotionValue(n);
3975
3975
  if (s && s.layout) {
3976
3976
  const { min: r, max: a } = s.layout.layoutBox[n];
3977
- o.set(e[n] - j(r, a, 0.5));
3977
+ o.set(e[n] - F(r, a, 0.5));
3978
3978
  }
3979
3979
  });
3980
3980
  }
@@ -3991,7 +3991,7 @@ class _u {
3991
3991
  return;
3992
3992
  this.stopAnimation();
3993
3993
  const s = { x: 0, y: 0 };
3994
- it((r) => {
3994
+ nt((r) => {
3995
3995
  const a = this.getAxisMotionValue(r);
3996
3996
  if (a && this.constraints !== !1) {
3997
3997
  const l = a.get();
@@ -3999,27 +3999,27 @@ class _u {
3999
3999
  }
4000
4000
  });
4001
4001
  const { transformTemplate: o } = this.visualElement.getProps();
4002
- this.visualElement.current.style.transform = o ? o({}, "") : "none", i.root && i.root.updateScroll(), i.updateLayout(), this.resolveConstraints(), it((r) => {
4002
+ this.visualElement.current.style.transform = o ? o({}, "") : "none", i.root && i.root.updateScroll(), i.updateLayout(), this.resolveConstraints(), nt((r) => {
4003
4003
  if (!Se(r, e, null))
4004
4004
  return;
4005
4005
  const a = this.getAxisMotionValue(r), { min: l, max: c } = this.constraints[r];
4006
- a.set(j(l, c, s[r]));
4006
+ a.set(F(l, c, s[r]));
4007
4007
  });
4008
4008
  }
4009
4009
  addListeners() {
4010
4010
  if (!this.visualElement.current)
4011
4011
  return;
4012
4012
  Fu.set(this.visualElement, this);
4013
- const e = this.visualElement.current, n = ft(e, "pointerdown", (l) => {
4013
+ const e = this.visualElement.current, n = ut(e, "pointerdown", (l) => {
4014
4014
  const { drag: c, dragListener: u = !0 } = this.getProps();
4015
4015
  c && u && this.start(l);
4016
4016
  }), i = () => {
4017
4017
  const { dragConstraints: l } = this.getProps();
4018
4018
  Bt(l) && l.current && (this.constraints = this.resolveRefConstraints());
4019
4019
  }, { projection: s } = this.visualElement, o = s.addEventListener("measure", i);
4020
- s && !s.layout && (s.root && s.root.updateScroll(), s.updateLayout()), M.read(i);
4021
- const r = ct(window, "resize", () => this.scalePositionWithinConstraints()), a = s.addEventListener("didUpdate", ({ delta: l, hasLayoutChanged: c }) => {
4022
- this.isDragging && c && (it((u) => {
4020
+ s && !s.layout && (s.root && s.root.updateScroll(), s.updateLayout()), k.read(i);
4021
+ const r = lt(window, "resize", () => this.scalePositionWithinConstraints()), a = s.addEventListener("didUpdate", ({ delta: l, hasLayoutChanged: c }) => {
4022
+ this.isDragging && c && (nt((u) => {
4023
4023
  const f = this.getAxisMotionValue(u);
4024
4024
  f && (this.originPoint[u] += l[u].translate, f.set(f.get() + l[u].translate));
4025
4025
  }), this.visualElement.render());
@@ -4048,24 +4048,24 @@ function Bu(t, e = 10) {
4048
4048
  let n = null;
4049
4049
  return Math.abs(t.y) > e ? n = "y" : Math.abs(t.x) > e && (n = "x"), n;
4050
4050
  }
4051
- class Iu extends wt {
4051
+ class Iu extends bt {
4052
4052
  constructor(e) {
4053
- super(e), this.removeGroupControls = G, this.removeListeners = G, this.controls = new _u(e);
4053
+ super(e), this.removeGroupControls = K, this.removeListeners = K, this.controls = new _u(e);
4054
4054
  }
4055
4055
  mount() {
4056
4056
  const { dragControls: e } = this.node.getProps();
4057
- e && (this.removeGroupControls = e.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() || G;
4057
+ e && (this.removeGroupControls = e.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() || K;
4058
4058
  }
4059
4059
  unmount() {
4060
4060
  this.removeGroupControls(), this.removeListeners();
4061
4061
  }
4062
4062
  }
4063
4063
  const Ss = (t) => (e, n) => {
4064
- t && M.postRender(() => t(e, n));
4064
+ t && k.postRender(() => t(e, n));
4065
4065
  };
4066
- class Nu extends wt {
4066
+ class Nu extends bt {
4067
4067
  constructor() {
4068
- super(...arguments), this.removePointerDownListener = G;
4068
+ super(...arguments), this.removePointerDownListener = K;
4069
4069
  }
4070
4070
  onPointerDown(e) {
4071
4071
  this.session = new ao(e, this.createPanHandlers(), {
@@ -4080,12 +4080,12 @@ class Nu extends wt {
4080
4080
  onStart: Ss(n),
4081
4081
  onMove: i,
4082
4082
  onEnd: (o, r) => {
4083
- delete this.session, s && M.postRender(() => s(o, r));
4083
+ delete this.session, s && k.postRender(() => s(o, r));
4084
4084
  }
4085
4085
  };
4086
4086
  }
4087
4087
  mount() {
4088
- this.removePointerDownListener = ft(this.node.current, "pointerdown", (e) => this.onPointerDown(e));
4088
+ this.removePointerDownListener = ut(this.node.current, "pointerdown", (e) => this.onPointerDown(e));
4089
4089
  }
4090
4090
  update() {
4091
4091
  this.session && this.session.updateHandlers(this.createPanHandlers());
@@ -4095,12 +4095,12 @@ class Nu extends wt {
4095
4095
  }
4096
4096
  }
4097
4097
  function Uu() {
4098
- const t = K(Ie);
4098
+ const t = $(Ie);
4099
4099
  if (t === null)
4100
4100
  return [!0, null];
4101
4101
  const { isPresent: e, onExitComplete: n, register: i } = t, s = jn();
4102
- ut(() => i(s), []);
4103
- const o = ot(() => n && n(s), [s, n]);
4102
+ ct(() => i(s), []);
4103
+ const o = it(() => n && n(s), [s, n]);
4104
4104
  return !e && n ? [!1, o] : [!0];
4105
4105
  }
4106
4106
  const Ee = {
@@ -4132,12 +4132,12 @@ const Zt = {
4132
4132
  }
4133
4133
  }, Wu = {
4134
4134
  correct: (t, { treeScale: e, projectionDelta: n }) => {
4135
- const i = t, s = bt.parse(t);
4135
+ const i = t, s = xt.parse(t);
4136
4136
  if (s.length > 5)
4137
4137
  return i;
4138
- const o = bt.createTransformer(t), r = typeof s[0] != "number" ? 1 : 0, a = n.x.scale * e.x, l = n.y.scale * e.y;
4138
+ const o = xt.createTransformer(t), r = typeof s[0] != "number" ? 1 : 0, a = n.x.scale * e.x, l = n.y.scale * e.y;
4139
4139
  s[0 + r] /= a, s[1 + r] /= l;
4140
- const c = j(a, l, 0.5);
4140
+ const c = F(a, l, 0.5);
4141
4141
  return typeof s[2 + r] == "number" && (s[2 + r] /= c), typeof s[3 + r] == "number" && (s[3 + r] /= c), o(s);
4142
4142
  }
4143
4143
  };
@@ -4158,7 +4158,7 @@ class $u extends sa {
4158
4158
  }
4159
4159
  getSnapshotBeforeUpdate(e) {
4160
4160
  const { layoutDependency: n, visualElement: i, drag: s, isPresent: o } = this.props, r = i.projection;
4161
- return r && (r.isPresent = o, s || e.layoutDependency !== n || n === void 0 ? r.willUpdate() : this.safeToRemove(), e.isPresent !== o && (o ? r.promote() : r.relegate() || M.postRender(() => {
4161
+ return r && (r.isPresent = o, s || e.layoutDependency !== n || n === void 0 ? r.willUpdate() : this.safeToRemove(), e.isPresent !== o && (o ? r.promote() : r.relegate() || k.postRender(() => {
4162
4162
  const a = r.getStack();
4163
4163
  (!a || !a.members.length) && this.safeToRemove();
4164
4164
  }))), null;
@@ -4182,8 +4182,8 @@ class $u extends sa {
4182
4182
  }
4183
4183
  }
4184
4184
  function yo(t) {
4185
- const [e, n] = Uu(), i = K(Wn);
4186
- return I.jsx($u, { ...t, layoutGroup: i, switchLayoutGroup: K(rr), isPresent: e, safeToRemove: n });
4185
+ const [e, n] = Uu(), i = $(Wn);
4186
+ return I.jsx($u, { ...t, layoutGroup: i, switchLayoutGroup: $(rr), isPresent: e, safeToRemove: n });
4187
4187
  }
4188
4188
  const Ku = {
4189
4189
  borderRadius: {
@@ -4202,32 +4202,32 @@ const Ku = {
4202
4202
  boxShadow: Wu
4203
4203
  }, vo = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], Gu = vo.length, As = (t) => typeof t == "string" ? parseFloat(t) : t, Rs = (t) => typeof t == "number" || S.test(t);
4204
4204
  function Hu(t, e, n, i, s, o) {
4205
- s ? (t.opacity = j(
4205
+ s ? (t.opacity = F(
4206
4206
  0,
4207
4207
  // TODO Reinstate this if only child
4208
4208
  n.opacity !== void 0 ? n.opacity : 1,
4209
4209
  zu(i)
4210
- ), t.opacityExit = j(e.opacity !== void 0 ? e.opacity : 1, 0, Yu(i))) : o && (t.opacity = j(e.opacity !== void 0 ? e.opacity : 1, n.opacity !== void 0 ? n.opacity : 1, i));
4210
+ ), t.opacityExit = F(e.opacity !== void 0 ? e.opacity : 1, 0, Yu(i))) : o && (t.opacity = F(e.opacity !== void 0 ? e.opacity : 1, n.opacity !== void 0 ? n.opacity : 1, i));
4211
4211
  for (let r = 0; r < Gu; r++) {
4212
4212
  const a = `border${vo[r]}Radius`;
4213
4213
  let l = Vs(e, a), c = Vs(n, a);
4214
4214
  if (l === void 0 && c === void 0)
4215
4215
  continue;
4216
- l || (l = 0), c || (c = 0), l === 0 || c === 0 || Rs(l) === Rs(c) ? (t[a] = Math.max(j(As(l), As(c), i), 0), (at.test(c) || at.test(l)) && (t[a] += "%")) : t[a] = c;
4216
+ l || (l = 0), c || (c = 0), l === 0 || c === 0 || Rs(l) === Rs(c) ? (t[a] = Math.max(F(As(l), As(c), i), 0), (ot.test(c) || ot.test(l)) && (t[a] += "%")) : t[a] = c;
4217
4217
  }
4218
- (e.rotate || n.rotate) && (t.rotate = j(e.rotate || 0, n.rotate || 0, i));
4218
+ (e.rotate || n.rotate) && (t.rotate = F(e.rotate || 0, n.rotate || 0, i));
4219
4219
  }
4220
4220
  function Vs(t, e) {
4221
4221
  return t[e] !== void 0 ? t[e] : t.borderRadius;
4222
4222
  }
4223
- const zu = Po(0, 0.5, Zr), Yu = Po(0.5, 0.95, G);
4223
+ const zu = Po(0, 0.5, Zr), Yu = Po(0.5, 0.95, K);
4224
4224
  function Po(t, e, n) {
4225
4225
  return (i) => i < t ? 0 : i > e ? 1 : n(ce(t, e, i));
4226
4226
  }
4227
4227
  function Es(t, e) {
4228
4228
  t.min = e.min, t.max = e.max;
4229
4229
  }
4230
- function nt(t, e) {
4230
+ function et(t, e) {
4231
4231
  Es(t.x, e.x), Es(t.y, e.y);
4232
4232
  }
4233
4233
  function Ds(t, e) {
@@ -4237,9 +4237,9 @@ function Ms(t, e, n, i, s) {
4237
4237
  return t -= e, t = _e(t, 1 / n, i), s !== void 0 && (t = _e(t, 1 / s, i)), t;
4238
4238
  }
4239
4239
  function Xu(t, e = 0, n = 1, i = 0.5, s, o = t, r = t) {
4240
- if (at.test(e) && (e = parseFloat(e), e = j(r.min, r.max, e / 100) - r.min), typeof e != "number")
4240
+ if (ot.test(e) && (e = parseFloat(e), e = F(r.min, r.max, e / 100) - r.min), typeof e != "number")
4241
4241
  return;
4242
- let a = j(o.min, o.max, i);
4242
+ let a = F(o.min, o.max, i);
4243
4243
  t === o && (a -= e), t.min = Ms(t.min, e, n, a, s), t.max = Ms(t.max, e, n, a, s);
4244
4244
  }
4245
4245
  function ks(t, e, [n, i, s], o, r) {
@@ -4264,7 +4264,7 @@ function Ju(t, e) {
4264
4264
  function Fs(t, e) {
4265
4265
  return Math.round(t.min) === Math.round(e.min) && Math.round(t.max) === Math.round(e.max);
4266
4266
  }
4267
- function bo(t, e) {
4267
+ function To(t, e) {
4268
4268
  return Fs(t.x, e.x) && Fs(t.y, e.y);
4269
4269
  }
4270
4270
  function _s(t) {
@@ -4353,17 +4353,17 @@ class nf {
4353
4353
  }
4354
4354
  }
4355
4355
  function sf(t, e) {
4356
- const n = Pt.now(), i = ({ timestamp: s }) => {
4356
+ const n = vt.now(), i = ({ timestamp: s }) => {
4357
4357
  const o = s - n;
4358
- o >= e && (gt(i), t(o - e));
4358
+ o >= e && (mt(i), t(o - e));
4359
4359
  };
4360
- return M.read(i, !0), () => gt(i);
4360
+ return k.read(i, !0), () => mt(i);
4361
4361
  }
4362
4362
  function rf(t) {
4363
4363
  return t instanceof SVGElement && t.tagName !== "svg";
4364
4364
  }
4365
4365
  function of(t, e, n) {
4366
- const i = Y(t) ? t : ue(t);
4366
+ const i = z(t) ? t : ue(t);
4367
4367
  return i.start(li("", i, e, n)), i.animation;
4368
4368
  }
4369
4369
  const Rt = {
@@ -4377,11 +4377,11 @@ function pn(t, e, n, i) {
4377
4377
  const { latestValues: s } = e;
4378
4378
  s[t] && (n[t] = s[t], e.setStaticValue(t, 0), i && (i[t] = 0));
4379
4379
  }
4380
- function To(t) {
4380
+ function bo(t) {
4381
4381
  if (t.hasCheckedOptimisedAppear = !0, t.root === t)
4382
4382
  return !1;
4383
4383
  const { visualElement: e } = t.options;
4384
- return e ? ro(e) ? !0 : t.parent && !t.parent.hasCheckedOptimisedAppear ? To(t.parent) : !1 : !1;
4384
+ return e ? ro(e) ? !0 : t.parent && !t.parent.hasCheckedOptimisedAppear ? bo(t.parent) : !1 : !1;
4385
4385
  }
4386
4386
  function wo({ attachResizeListener: t, defaultParent: e, measureScroll: n, checkIsScrollRoot: i, resetTransform: s }) {
4387
4387
  return class {
@@ -4425,7 +4425,7 @@ function wo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4425
4425
  this.target = void 0, this.relativeTarget = void 0;
4426
4426
  return;
4427
4427
  }
4428
- const x = this.options.transition || u.getDefaultTransition() || Tf, { onLayoutAnimationStart: T, onLayoutAnimationComplete: P } = u.getProps(), y = !this.targetLayout || !bo(this.targetLayout, m) || p, v = !d && p;
4428
+ const x = this.options.transition || u.getDefaultTransition() || bf, { onLayoutAnimationStart: T, onLayoutAnimationComplete: P } = u.getProps(), y = !this.targetLayout || !To(this.targetLayout, m) || p, v = !d && p;
4429
4429
  if (this.options.layoutRoot || this.resumeFrom && this.resumeFrom.instance || v || d && (y || !this.currentAnimation)) {
4430
4430
  this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0), this.setAnimationOrigin(f, v);
4431
4431
  const w = {
@@ -4442,7 +4442,7 @@ function wo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4442
4442
  unmount() {
4443
4443
  this.options.layoutId && this.willUpdate(), this.root.nodes.remove(this);
4444
4444
  const r = this.getStack();
4445
- r && r.remove(this), this.parent && this.parent.children.delete(this), this.instance = void 0, gt(this.updateProjection);
4445
+ r && r.remove(this), this.parent && this.parent.children.delete(this), this.instance = void 0, mt(this.updateProjection);
4446
4446
  }
4447
4447
  // only on the root
4448
4448
  blockUpdate() {
@@ -4470,7 +4470,7 @@ function wo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4470
4470
  this.options.onExitComplete && this.options.onExitComplete();
4471
4471
  return;
4472
4472
  }
4473
- if (window.HandoffCancelAllAnimations && To(this) && window.HandoffCancelAllAnimations(), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty)
4473
+ if (window.HandoffCancelAllAnimations && bo(this) && window.HandoffCancelAllAnimations(), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty)
4474
4474
  return;
4475
4475
  this.isLayoutDirty = !0;
4476
4476
  for (let u = 0; u < this.path.length; u++) {
@@ -4489,8 +4489,8 @@ function wo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4489
4489
  return;
4490
4490
  }
4491
4491
  this.isUpdating || this.nodes.forEach(pf), this.isUpdating = !1, this.nodes.forEach(mf), this.nodes.forEach(cf), this.nodes.forEach(uf), this.clearAllSnapshots();
4492
- const a = Pt.now();
4493
- $.delta = xt(0, 1e3 / 60, a - $.timestamp), $.timestamp = a, $.isProcessing = !0, nn.update.process($), nn.preRender.process($), nn.render.process($), $.isProcessing = !1;
4492
+ const a = vt.now();
4493
+ W.delta = Pt(0, 1e3 / 60, a - W.timestamp), W.timestamp = a, W.isProcessing = !0, nn.update.process(W), nn.preRender.process(W), nn.render.process(W), W.isProcessing = !1;
4494
4494
  }
4495
4495
  didUpdate() {
4496
4496
  this.updateScheduled || (this.updateScheduled = !0, In.read(this.scheduleUpdate));
@@ -4499,10 +4499,10 @@ function wo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4499
4499
  this.nodes.forEach(df), this.sharedNodes.forEach(Pf);
4500
4500
  }
4501
4501
  scheduleUpdateProjection() {
4502
- this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, M.preRender(this.updateProjection, !1, !0));
4502
+ this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, k.preRender(this.updateProjection, !1, !0));
4503
4503
  }
4504
4504
  scheduleCheckAfterUnmount() {
4505
- M.postRender(() => {
4505
+ k.postRender(() => {
4506
4506
  this.isLayoutDirty ? this.root.didUpdate() : this.root.checkUpdateFailed();
4507
4507
  });
4508
4508
  }
@@ -4568,17 +4568,17 @@ function wo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4568
4568
  removeElementScroll(r) {
4569
4569
  var a;
4570
4570
  const l = B();
4571
- if (nt(l, r), !((a = this.scroll) === null || a === void 0) && a.wasRoot)
4571
+ if (et(l, r), !((a = this.scroll) === null || a === void 0) && a.wasRoot)
4572
4572
  return l;
4573
4573
  for (let c = 0; c < this.path.length; c++) {
4574
4574
  const u = this.path[c], { scroll: f, options: d } = u;
4575
- u !== this.root && f && d.layoutScroll && (f.wasRoot && nt(l, r), Ut(l.x, f.offset.x), Ut(l.y, f.offset.y));
4575
+ u !== this.root && f && d.layoutScroll && (f.wasRoot && et(l, r), Ut(l.x, f.offset.x), Ut(l.y, f.offset.y));
4576
4576
  }
4577
4577
  return l;
4578
4578
  }
4579
4579
  applyTransform(r, a = !1) {
4580
4580
  const l = B();
4581
- nt(l, r);
4581
+ et(l, r);
4582
4582
  for (let c = 0; c < this.path.length; c++) {
4583
4583
  const u = this.path[c];
4584
4584
  !a && u.options.layoutScroll && u.scroll && u !== u.root && Wt(l, {
@@ -4590,14 +4590,14 @@ function wo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4590
4590
  }
4591
4591
  removeTransform(r) {
4592
4592
  const a = B();
4593
- nt(a, r);
4593
+ et(a, r);
4594
4594
  for (let l = 0; l < this.path.length; l++) {
4595
4595
  const c = this.path[l];
4596
4596
  if (!c.instance || !At(c.latestValues))
4597
4597
  continue;
4598
4598
  Dn(c.latestValues) && c.updateSnapshot();
4599
4599
  const u = B(), f = c.measurePageBox();
4600
- nt(u, f), Ls(a, c.latestValues, c.snapshot ? c.snapshot.layoutBox : void 0, u);
4600
+ et(u, f), Ls(a, c.latestValues, c.snapshot ? c.snapshot.layoutBox : void 0, u);
4601
4601
  }
4602
4602
  return At(this.latestValues) && Ls(a, this.latestValues), a;
4603
4603
  }
@@ -4615,7 +4615,7 @@ function wo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4615
4615
  this.scroll = void 0, this.layout = void 0, this.snapshot = void 0, this.prevTransformTemplateValue = void 0, this.targetDelta = void 0, this.target = void 0, this.isLayoutDirty = !1;
4616
4616
  }
4617
4617
  forceRelativeParentToResolveTarget() {
4618
- this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !== $.timestamp && this.relativeParent.resolveTargetDelta(!0);
4618
+ this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !== W.timestamp && this.relativeParent.resolveTargetDelta(!0);
4619
4619
  }
4620
4620
  resolveTargetDelta(r = !1) {
4621
4621
  var a;
@@ -4626,15 +4626,15 @@ function wo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4626
4626
  return;
4627
4627
  const { layout: f, layoutId: d } = this.options;
4628
4628
  if (!(!this.layout || !(f || d))) {
4629
- if (this.resolvedRelativeTargetAt = $.timestamp, !this.targetDelta && !this.relativeTarget) {
4629
+ if (this.resolvedRelativeTargetAt = W.timestamp, !this.targetDelta && !this.relativeTarget) {
4630
4630
  const p = this.getClosestProjectingParent();
4631
- 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;
4631
+ 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), et(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
4632
4632
  }
4633
4633
  if (!(!this.relativeTarget && !this.targetDelta)) {
4634
- if (this.target || (this.target = B(), this.targetWithTransforms = B()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Cu(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : nt(this.target, this.layout.layoutBox), po(this.target, this.targetDelta)) : nt(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget) {
4634
+ if (this.target || (this.target = B(), this.targetWithTransforms = B()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Cu(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : et(this.target, this.layout.layoutBox), po(this.target, this.targetDelta)) : et(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget) {
4635
4635
  this.attemptToResolveRelativeTarget = !1;
4636
4636
  const p = this.getClosestProjectingParent();
4637
- 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;
4637
+ 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), et(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
4638
4638
  }
4639
4639
  te && Rt.resolvedTargetDeltas++;
4640
4640
  }
@@ -4651,12 +4651,12 @@ function wo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4651
4651
  var r;
4652
4652
  const a = this.getLead(), l = !!this.resumingFrom || this !== a;
4653
4653
  let c = !0;
4654
- if ((this.isProjectionDirty || !((r = this.parent) === null || r === void 0) && r.isProjectionDirty) && (c = !1), l && (this.isSharedProjectionDirty || this.isTransformDirty) && (c = !1), this.resolvedRelativeTargetAt === $.timestamp && (c = !1), c)
4654
+ if ((this.isProjectionDirty || !((r = this.parent) === null || r === void 0) && r.isProjectionDirty) && (c = !1), l && (this.isSharedProjectionDirty || this.isTransformDirty) && (c = !1), this.resolvedRelativeTargetAt === W.timestamp && (c = !1), c)
4655
4655
  return;
4656
4656
  const { layout: u, layoutId: f } = this.options;
4657
4657
  if (this.isTreeAnimating = !!(this.parent && this.parent.isTreeAnimating || this.currentAnimation || this.pendingAnimation), this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), !this.layout || !(u || f))
4658
4658
  return;
4659
- nt(this.layoutCorrected, this.layout.layoutBox);
4659
+ et(this.layoutCorrected, this.layout.layoutBox);
4660
4660
  const d = this.treeScale.x, p = this.treeScale.y;
4661
4661
  Ou(this.layoutCorrected, this.treeScale, this.path, l), a.layout && !a.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (a.target = a.layout.layoutBox, a.targetWithTransforms = B());
4662
4662
  const { target: m } = a;
@@ -4686,16 +4686,16 @@ function wo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4686
4686
  setAnimationOrigin(r, a = !1) {
4687
4687
  const l = this.snapshot, c = l ? l.latestValues : {}, u = { ...this.latestValues }, f = Nt();
4688
4688
  (!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !a;
4689
- const d = B(), p = l ? l.source : void 0, m = this.layout ? this.layout.source : void 0, x = p !== m, T = this.getStack(), P = !T || T.members.length <= 1, y = !!(x && !P && this.options.crossfade === !0 && !this.path.some(bf));
4689
+ const d = B(), p = l ? l.source : void 0, m = this.layout ? this.layout.source : void 0, x = p !== m, T = this.getStack(), P = !T || T.members.length <= 1, y = !!(x && !P && this.options.crossfade === !0 && !this.path.some(Tf));
4690
4690
  this.animationProgress = 0;
4691
4691
  let v;
4692
4692
  this.mixTargetDelta = (w) => {
4693
4693
  const A = w / 1e3;
4694
- Ws(f.x, r.x, A), Ws(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), xf(this.relativeTarget, this.relativeTargetOrigin, d, A), v && Ju(this.relativeTarget, v) && (this.isProjectionDirty = !1), v || (v = B()), nt(v, this.relativeTarget)), x && (this.animationValues = u, Hu(u, c, this.latestValues, A, y, P)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = A;
4694
+ Ws(f.x, r.x, A), Ws(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), xf(this.relativeTarget, this.relativeTargetOrigin, d, A), v && Ju(this.relativeTarget, v) && (this.isProjectionDirty = !1), v || (v = B()), et(v, this.relativeTarget)), x && (this.animationValues = u, Hu(u, c, this.latestValues, A, y, P)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = A;
4695
4695
  }, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
4696
4696
  }
4697
4697
  startAnimation(r) {
4698
- this.notifyListeners("animationStart"), this.currentAnimation && this.currentAnimation.stop(), this.resumingFrom && this.resumingFrom.currentAnimation && this.resumingFrom.currentAnimation.stop(), this.pendingAnimation && (gt(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = M.update(() => {
4698
+ this.notifyListeners("animationStart"), this.currentAnimation && this.currentAnimation.stop(), this.resumingFrom && this.resumingFrom.currentAnimation && this.resumingFrom.currentAnimation.stop(), this.pendingAnimation && (mt(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = k.update(() => {
4699
4699
  Ee.hasAnimatedSinceResize = !0, this.currentAnimation = of(0, Is, {
4700
4700
  ...r,
4701
4701
  onUpdate: (a) => {
@@ -4726,7 +4726,7 @@ function wo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4726
4726
  const d = Q(this.layout.layoutBox.y);
4727
4727
  l.y.min = r.target.y.min, l.y.max = l.y.min + d;
4728
4728
  }
4729
- nt(a, l), Wt(a, u), ie(this.projectionDeltaWithTransform, this.layoutCorrected, a, u);
4729
+ et(a, l), Wt(a, u), ie(this.projectionDeltaWithTransform, this.layoutCorrected, a, u);
4730
4730
  }
4731
4731
  }
4732
4732
  registerSharedNode(r, a) {
@@ -4834,10 +4834,10 @@ function uf(t) {
4834
4834
  const n = ((e = t.resumeFrom) === null || e === void 0 ? void 0 : e.snapshot) || t.snapshot;
4835
4835
  if (t.isLead() && t.layout && n && t.hasListeners("didUpdate")) {
4836
4836
  const { layoutBox: i, measuredBox: s } = t.layout, { animationType: o } = t.options, r = n.source !== t.layout.source;
4837
- o === "size" ? it((f) => {
4837
+ o === "size" ? nt((f) => {
4838
4838
  const d = r ? n.measuredBox[f] : n.layoutBox[f], p = Q(d);
4839
4839
  d.min = i[f].min, d.max = d.min + p;
4840
- }) : So(o, n.layoutBox, i) && it((f) => {
4840
+ }) : So(o, n.layoutBox, i) && nt((f) => {
4841
4841
  const d = r ? n.measuredBox[f] : n.layoutBox[f], p = Q(i[f]);
4842
4842
  d.max = d.min + p, t.relativeTarget && !t.currentAnimation && (t.isProjectionDirty = !0, t.relativeTarget[f].max = t.relativeTarget[f].min + p);
4843
4843
  });
@@ -4855,7 +4855,7 @@ function uf(t) {
4855
4855
  const m = B();
4856
4856
  se(m, n.layoutBox, d.layoutBox);
4857
4857
  const x = B();
4858
- se(x, i, p.layoutBox), bo(m, x) || (u = !0), f.options.layoutRoot && (t.relativeTarget = x, t.relativeTargetOrigin = m, t.relativeParent = f);
4858
+ se(x, i, p.layoutBox), To(m, x) || (u = !0), f.options.layoutRoot && (t.relativeTarget = x, t.relativeTargetOrigin = m, t.relativeParent = f);
4859
4859
  }
4860
4860
  }
4861
4861
  }
@@ -4908,21 +4908,21 @@ function Pf(t) {
4908
4908
  t.removeLeadSnapshot();
4909
4909
  }
4910
4910
  function Ws(t, e, n) {
4911
- t.translate = j(e.translate, 0, n), t.scale = j(e.scale, 1, n), t.origin = e.origin, t.originPoint = e.originPoint;
4911
+ t.translate = F(e.translate, 0, n), t.scale = F(e.scale, 1, n), t.origin = e.origin, t.originPoint = e.originPoint;
4912
4912
  }
4913
4913
  function $s(t, e, n, i) {
4914
- t.min = j(e.min, n.min, i), t.max = j(e.max, n.max, i);
4914
+ t.min = F(e.min, n.min, i), t.max = F(e.max, n.max, i);
4915
4915
  }
4916
4916
  function xf(t, e, n, i) {
4917
4917
  $s(t.x, e.x, n.x, i), $s(t.y, e.y, n.y, i);
4918
4918
  }
4919
- function bf(t) {
4919
+ function Tf(t) {
4920
4920
  return t.animationValues && t.animationValues.opacityExit !== void 0;
4921
4921
  }
4922
- const Tf = {
4922
+ const bf = {
4923
4923
  duration: 0.45,
4924
4924
  ease: [0.4, 0, 0.1, 1]
4925
- }, Ks = (t) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(t), Gs = Ks("applewebkit/") && !Ks("chrome/") ? Math.round : G;
4925
+ }, Ks = (t) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(t), Gs = Ks("applewebkit/") && !Ks("chrome/") ? Math.round : K;
4926
4926
  function Hs(t) {
4927
4927
  t.min = Gs(t.min), t.max = Gs(t.max);
4928
4928
  }
@@ -4937,7 +4937,7 @@ function Sf(t) {
4937
4937
  return t !== t.root && ((e = t.scroll) === null || e === void 0 ? void 0 : e.wasRoot);
4938
4938
  }
4939
4939
  const Cf = wo({
4940
- attachResizeListener: (t, e) => ct(t, "resize", e),
4940
+ attachResizeListener: (t, e) => lt(t, "resize", e),
4941
4941
  measureScroll: () => ({
4942
4942
  x: document.documentElement.scrollLeft || document.body.scrollLeft,
4943
4943
  y: document.documentElement.scrollTop || document.body.scrollTop
@@ -4982,9 +4982,9 @@ function Rf() {
4982
4982
  function Vf(t, e, n) {
4983
4983
  for (const i in e) {
4984
4984
  const s = e[i], o = n[i];
4985
- if (Y(s))
4985
+ if (z(s))
4986
4986
  t.addValue(i, s), process.env.NODE_ENV === "development" && ui(s.version === "11.3.19", `Attempting to mix Framer Motion versions ${s.version} with 11.3.19 may not work as expected.`);
4987
- else if (Y(o))
4987
+ else if (z(o))
4988
4988
  t.addValue(i, ue(s, { owner: t }));
4989
4989
  else if (o !== s)
4990
4990
  if (t.hasValue(i)) {
@@ -4999,7 +4999,7 @@ function Vf(t, e, n) {
4999
4999
  e[i] === void 0 && t.removeValue(i);
5000
5000
  return e;
5001
5001
  }
5002
- const zs = /* @__PURE__ */ new WeakMap(), Ef = [...kr, z, bt], Df = (t) => Ef.find(Mr(t)), Ys = [
5002
+ const zs = /* @__PURE__ */ new WeakMap(), Ef = [...kr, H, xt], Df = (t) => Ef.find(Mr(t)), Ys = [
5003
5003
  "AnimationStart",
5004
5004
  "AnimationComplete",
5005
5005
  "Update",
@@ -5023,21 +5023,21 @@ class kf {
5023
5023
  this.applyWillChange = !1, this.resolveKeyframes = (d, p, m, x) => new this.KeyframeResolver(d, p, m, x, this), this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = ti, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
5024
5024
  this.isRenderScheduled = !1, this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
5025
5025
  }, this.isRenderScheduled = !1, this.scheduleRender = () => {
5026
- this.isRenderScheduled || (this.isRenderScheduled = !0, M.render(this.render, !1, !0));
5026
+ this.isRenderScheduled || (this.isRenderScheduled = !0, k.render(this.render, !1, !0));
5027
5027
  };
5028
5028
  const { latestValues: l, renderState: c } = r;
5029
5029
  this.latestValues = l, this.baseTarget = { ...l }, this.initialValues = n.initial ? { ...l } : {}, this.renderState = c, this.parent = e, this.props = n, this.presenceContext = i, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = s, this.options = a, this.blockInitialAnimation = !!o, this.isControllingVariants = Ue(n), this.isVariantNode = ar(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
5030
5030
  const { willChange: u, ...f } = this.scrapeMotionValuesFromProps(n, {}, this);
5031
5031
  for (const d in f) {
5032
5032
  const p = f[d];
5033
- l[d] !== void 0 && Y(p) && p.set(l[d], !1);
5033
+ l[d] !== void 0 && z(p) && p.set(l[d], !1);
5034
5034
  }
5035
5035
  }
5036
5036
  mount(e) {
5037
5037
  this.current = e, zs.set(e, this), this.projection && !this.projection.instance && this.projection.mount(e), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((n, i) => this.bindToMotionValue(i, n)), Ao.current || Rf(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : kn.current, process.env.NODE_ENV !== "production" && ui(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected."), this.parent && this.parent.children.add(this), this.update(this.props, this.presenceContext);
5038
5038
  }
5039
5039
  unmount() {
5040
- zs.delete(this.current), this.projection && this.projection.unmount(), gt(this.notifyUpdate), gt(this.render), this.valueSubscriptions.forEach((e) => e()), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent && this.parent.children.delete(this);
5040
+ zs.delete(this.current), this.projection && this.projection.unmount(), mt(this.notifyUpdate), mt(this.render), this.valueSubscriptions.forEach((e) => e()), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent && this.parent.children.delete(this);
5041
5041
  for (const e in this.events)
5042
5042
  this.events[e].clear();
5043
5043
  for (const e in this.features) {
@@ -5048,7 +5048,7 @@ class kf {
5048
5048
  }
5049
5049
  bindToMotionValue(e, n) {
5050
5050
  const i = Tt.has(e), s = n.on("change", (r) => {
5051
- this.latestValues[e] = r, this.props.onUpdate && M.preRender(this.notifyUpdate), i && this.projection && (this.projection.isTransformDirty = !0);
5051
+ this.latestValues[e] = r, this.props.onUpdate && k.preRender(this.notifyUpdate), i && this.projection && (this.projection.isTransformDirty = !0);
5052
5052
  }), o = n.on("renderRequest", this.scheduleRender);
5053
5053
  this.valueSubscriptions.set(e, () => {
5054
5054
  s(), o(), n.owner && n.stop();
@@ -5179,7 +5179,7 @@ class kf {
5179
5179
  readValue(e, n) {
5180
5180
  var i;
5181
5181
  let s = this.latestValues[e] !== void 0 || !this.current ? this.latestValues[e] : (i = this.getBaseTargetFromProps(this.props, e)) !== null && i !== void 0 ? i : this.readValueFromInstance(this.current, e, this.options);
5182
- return s != null && (typeof s == "string" && (Er(s) || Vr(s)) ? s = parseFloat(s) : !Df(s) && bt.test(n) && (s = Nr(e, n)), this.setBaseTarget(e, Y(s) ? s.get() : s)), Y(s) ? s.get() : s;
5182
+ return s != null && (typeof s == "string" && (Er(s) || Vr(s)) ? s = parseFloat(s) : !Df(s) && xt.test(n) && (s = Nr(e, n)), this.setBaseTarget(e, z(s) ? s.get() : s)), z(s) ? s.get() : s;
5183
5183
  }
5184
5184
  /**
5185
5185
  * Set the base target to later animate back to. This is currently
@@ -5203,7 +5203,7 @@ class kf {
5203
5203
  if (i && s !== void 0)
5204
5204
  return s;
5205
5205
  const o = this.getBaseTargetFromProps(this.props, e);
5206
- return o !== void 0 && !Y(o) ? o : this.initialValues[e] !== void 0 && s === void 0 ? void 0 : this.baseTarget[e];
5206
+ return o !== void 0 && !z(o) ? o : this.initialValues[e] !== void 0 && s === void 0 ? void 0 : this.baseTarget[e];
5207
5207
  }
5208
5208
  on(e, n) {
5209
5209
  return this.events[e] || (this.events[e] = new ci()), this.events[e].add(n);
@@ -5254,7 +5254,7 @@ class Of extends Ro {
5254
5254
  handleChildMotionValue() {
5255
5255
  this.childSubscription && (this.childSubscription(), delete this.childSubscription);
5256
5256
  const { children: e } = this.props;
5257
- Y(e) && (this.childSubscription = e.on("change", (n) => {
5257
+ z(e) && (this.childSubscription = e.on("change", (n) => {
5258
5258
  this.current && (this.current.textContent = `${n}`);
5259
5259
  }));
5260
5260
  }
@@ -5323,7 +5323,7 @@ function Uf({ children: t, isPresent: e }) {
5323
5323
  height: 0,
5324
5324
  top: 0,
5325
5325
  left: 0
5326
- }), { nonce: o } = K(_n);
5326
+ }), { nonce: o } = $(_n);
5327
5327
  return Js(() => {
5328
5328
  const { width: r, height: a, top: l, left: c } = s.current;
5329
5329
  if (e || !i.current || !r || !a)
@@ -5383,7 +5383,7 @@ function Xs(t) {
5383
5383
  }), e;
5384
5384
  }
5385
5385
  const Kf = ({ children: t, exitBeforeEnter: e, custom: n, initial: i = !0, onExitComplete: s, presenceAffectsLayout: o = !0, mode: r = "sync" }) => {
5386
- mt(!e, "Replace exitBeforeEnter with mode='wait'");
5386
+ pt(!e, "Replace exitBeforeEnter with mode='wait'");
5387
5387
  const a = Mt(() => Xs(t), [t]), l = a.map(Ce), c = st(!0), u = st(a), f = Jn(() => /* @__PURE__ */ new Map()), [d, p] = _t(a), [m, x] = _t(a);
5388
5388
  er(() => {
5389
5389
  c.current = !1, u.current = a;
@@ -5403,17 +5403,17 @@ const Kf = ({ children: t, exitBeforeEnter: e, custom: n, initial: i = !0, onExi
5403
5403
  return;
5404
5404
  }
5405
5405
  process.env.NODE_ENV !== "production" && r === "wait" && m.length > 1 && console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);
5406
- const { forceRender: P } = K(Wn);
5406
+ const { forceRender: P } = $(Wn);
5407
5407
  return I.jsx(I.Fragment, { children: m.map((y) => {
5408
5408
  const v = Ce(y), w = a === m || l.includes(v), A = () => {
5409
5409
  if (f.has(v))
5410
5410
  f.set(v, !0);
5411
5411
  else
5412
5412
  return;
5413
- let L = !0;
5413
+ let j = !0;
5414
5414
  f.forEach((q) => {
5415
- q || (L = !1);
5416
- }), L && (P == null || P(), x(u.current), s && s());
5415
+ q || (j = !1);
5416
+ }), j && (P == null || P(), x(u.current), s && s());
5417
5417
  };
5418
5418
  return I.jsx(Wf, { 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);
5419
5419
  }) });
@@ -5480,11 +5480,11 @@ function Zf(t) {
5480
5480
  var Jf = Zf(), Vt = /* @__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))(Vt || {});
5481
5481
  const Zs = ({
5482
5482
  onMousedown: t
5483
- }) => (ut(() => (document.addEventListener("mousedown", t), () => {
5483
+ }) => (ct(() => (document.addEventListener("mousedown", t), () => {
5484
5484
  document.removeEventListener("mousedown", t);
5485
5485
  }), []), null), Qf = ({
5486
5486
  onPickerHide: t
5487
- }) => (ut(() => () => {
5487
+ }) => (ct(() => () => {
5488
5488
  t();
5489
5489
  }, []), null), th = "acrool-react-picker__root", eh = "acrool-react-picker__main-el", nh = "acrool-react-picker__picker-el", gn = {
5490
5490
  root: th,
@@ -5516,10 +5516,10 @@ const oh = (t, e, n) => {
5516
5516
  if (!i || !s)
5517
5517
  return;
5518
5518
  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;
5519
- let m = p >= d ? lt.bottom : lt.top, x = m === lt.bottom ? p : d;
5519
+ let m = p >= d ? at.bottom : at.top, x = m === at.bottom ? p : d;
5520
5520
  const T = o.width, P = r.left + T < l, y = r.right - T > 0;
5521
5521
  let v = Jt.left;
5522
- !P && y ? v = Jt.right : !P && !y && (v = Jt.left), n(m), s.style.top = m === lt.bottom ? `${r.bottom + c}px` : `${r.top + c - x}px`, s.style.left = v === Jt.left ? `${r.left + u}px` : `${r.right + u - T}px`, s.style.minWidth = `${r.width}px`, s.style.height = `${x}px`, s.style.transformOrigin = m === lt.bottom ? "top" : "bottom", s.style.flexDirection = m === lt.bottom ? "column" : "column-reverse";
5522
+ !P && y ? v = Jt.right : !P && !y && (v = Jt.left), n(m), s.style.top = m === at.bottom ? `${r.bottom + c}px` : `${r.top + c - x}px`, s.style.left = v === Jt.left ? `${r.left + u}px` : `${r.right + u - T}px`, s.style.minWidth = `${r.width}px`, s.style.height = `${x}px`, s.style.transformOrigin = m === at.bottom ? "top" : "bottom", s.style.flexDirection = m === at.bottom ? "column" : "column-reverse";
5523
5523
  }, ah = {
5524
5524
  variants: {
5525
5525
  initial: { position: "absolute", zIndex: 999, opacity: 0, transition: { type: "spring" } },
@@ -5541,10 +5541,10 @@ const oh = (t, e, n) => {
5541
5541
  anchorRef: n,
5542
5542
  onKeyDown: i
5543
5543
  }, s) => {
5544
- const o = st(null), r = da(), a = ot(() => {
5544
+ const o = st(null), r = da(), a = it(() => {
5545
5545
  oh(n, o, r.setVertical);
5546
5546
  }, [r.setVertical]);
5547
- return ut(() => {
5547
+ return ct(() => {
5548
5548
  if (n.current && o.current) {
5549
5549
  const l = rh(n.current);
5550
5550
  return l && (l.addEventListener("scroll", a), window.addEventListener("resize", a)), window.requestAnimationFrame(() => {
@@ -5573,44 +5573,52 @@ const oh = (t, e, n) => {
5573
5573
  function mh(t, e, n) {
5574
5574
  const i = Me(t);
5575
5575
  return Me((o, r) => {
5576
- const [a, l] = _t(!1), [c, u] = _t(!1), [f, d] = _t(lt.bottom), [p, m] = _t(), x = st(null), T = st(null), P = st(null), y = st(p), v = (n == null ? void 0 : n.isEnableClickOutSiteHidden) !== !1, w = (n == null ? void 0 : n.isEnableHideSave) !== !1;
5577
- ut(() => {
5576
+ const [a, l] = _t(!1), [c, u] = _t(!1), [f, d] = _t(at.bottom), [p, m] = _t(), x = st(null), T = st(null), P = st(null), y = st(p), v = (n == null ? void 0 : n.isEnableClickOutSiteHidden) !== !1, w = (n == null ? void 0 : n.isEnableHideSave) !== !1;
5577
+ ct(() => {
5578
5578
  m(o.value);
5579
- }, [JSON.stringify(o.value)]), ut(() => {
5579
+ }, [JSON.stringify(o.value)]), ct(() => {
5580
5580
  y.current = p;
5581
- }, [p]), ut(() => {
5581
+ }, [p]), ct(() => {
5582
5582
  a && m(o.value);
5583
5583
  }, [a, o.value]);
5584
- const A = ot((O) => {
5585
- switch (O.key) {
5584
+ const A = it((M) => {
5585
+ switch (M.key) {
5586
5586
  case Vt.Escape:
5587
- L(a)(O);
5587
+ j(a)(M);
5588
5588
  break;
5589
5589
  case Vt.Tab:
5590
5590
  case Vt.ShiftAndTab:
5591
- q(O);
5591
+ q(M);
5592
5592
  break;
5593
5593
  case Vt.ArrowUp:
5594
5594
  case Vt.ArrowDown:
5595
5595
  case Vt.Space:
5596
- R(O);
5596
+ R(M);
5597
5597
  break;
5598
5598
  }
5599
- }, [a]), L = ot((O) => (U) => {
5600
- O && (U.stopPropagation(), U.preventDefault(), T.current.focus(), l(!1));
5601
- }, []), q = ot((O) => {
5599
+ }, [a]), j = it((M) => (L) => {
5600
+ M && (L.stopPropagation(), L.preventDefault(), T.current.focus(), l(!1));
5601
+ }, []), q = it((M) => {
5602
5602
  T.current.focus(), l(!1), u(!1);
5603
- }, []), R = ot((O) => {
5604
- O.preventDefault(), l(!0);
5605
- }, []), W = ot((O) => {
5606
- !x.current && P.current && !P.current.contains(O.target) && u(!1);
5607
- }, []), H = ot((O) => {
5608
- var J;
5609
- const U = (J = x.current) == null ? void 0 : J.firstChild;
5610
- U && !U.contains(O.target) && P.current && !P.current.contains(O.target) && (l(!1), u(!1));
5611
- }, []), rt = ot(() => {
5603
+ }, []), R = it((M) => {
5604
+ M.preventDefault(), l(!0);
5605
+ }, []), U = it(() => {
5606
+ requestAnimationFrame(() => {
5607
+ T.current.focus(), l(!1);
5608
+ });
5609
+ }, []), G = it(() => {
5610
+ l((M) => (M && requestAnimationFrame(() => {
5611
+ T.current.focus();
5612
+ }), !M));
5613
+ }, []), rt = it((M) => {
5614
+ !x.current && P.current && !P.current.contains(M.target) && u(!1);
5615
+ }, []), wt = it((M) => {
5616
+ var Y;
5617
+ const L = (Y = x.current) == null ? void 0 : Y.firstChild;
5618
+ L && !L.contains(M.target) && P.current && !P.current.contains(M.target) && (l(!1), u(!1));
5619
+ }, []), Z = it(() => {
5612
5620
  if (typeof (o == null ? void 0 : o.onChange) > "u") {
5613
- yt.warning("@acrool/react-picker", "createPicker component props onChange is undefined, is no call");
5621
+ gt.warning("@acrool/react-picker", "createPicker component props onChange is undefined, is no call");
5614
5622
  return;
5615
5623
  }
5616
5624
  typeof y.current < "u" && w && JSON.stringify(p) !== JSON.stringify(y.current) && o.onChange(y.current);
@@ -5619,9 +5627,9 @@ function mh(t, e, n) {
5619
5627
  Fn.Provider,
5620
5628
  {
5621
5629
  value: {
5622
- hide: () => requestAnimationFrame(() => l(!1)),
5630
+ hide: U,
5623
5631
  show: () => l(!0),
5624
- toggle: () => l((O) => !O),
5632
+ toggle: G,
5625
5633
  isVisible: a,
5626
5634
  inputFocus: () => u(!0),
5627
5635
  inputBlur: () => u(!1),
@@ -5660,9 +5668,9 @@ function mh(t, e, n) {
5660
5668
  )
5661
5669
  }
5662
5670
  ) }),
5663
- a && /* @__PURE__ */ I.jsx(Qf, { onPickerHide: rt }),
5664
- v && a && /* @__PURE__ */ I.jsx(Zs, { onMousedown: H }),
5665
- c && /* @__PURE__ */ I.jsx(Zs, { onMousedown: W })
5671
+ a && /* @__PURE__ */ I.jsx(Qf, { onPickerHide: Z }),
5672
+ v && a && /* @__PURE__ */ I.jsx(Zs, { onMousedown: wt }),
5673
+ c && /* @__PURE__ */ I.jsx(Zs, { onMousedown: rt })
5666
5674
  ]
5667
5675
  }
5668
5676
  )
@@ -5672,7 +5680,7 @@ function mh(t, e, n) {
5672
5680
  }
5673
5681
  export {
5674
5682
  Jt as EHorizontal,
5675
- lt as EVertical,
5683
+ at as EVertical,
5676
5684
  hh as PickerProviderConsumer,
5677
5685
  Fn as PickerProviderContext,
5678
5686
  mh as createPicker,