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

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
- 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";
1
+ import * as kn from "react";
2
+ import Ln, { createContext as kt, useContext as K, 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 On, 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,25 +49,25 @@ 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
- }, 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?"),
58
+ }, jn = kt({
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);
70
- var yn = { exports: {} }, Xt = {};
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
+ }), fh = jn.Consumer, da = () => K(jn);
70
+ var gn = { exports: {} }, Xt = {};
71
71
  /**
72
72
  * @license React
73
73
  * react-jsx-runtime.production.min.js
@@ -77,12 +77,12 @@ var yn = { exports: {} }, Xt = {};
77
77
  * This source code is licensed under the MIT license found in the
78
78
  * LICENSE file in the root directory of this source tree.
79
79
  */
80
- var Mi;
80
+ var Di;
81
81
  function pa() {
82
- if (Mi)
82
+ if (Di)
83
83
  return Xt;
84
- Mi = 1;
85
- var t = On, e = Symbol.for("react.element"), n = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, s = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
84
+ Di = 1;
85
+ var t = Ln, e = Symbol.for("react.element"), n = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, s = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
86
86
  function r(a, l, c) {
87
87
  var u, f = {}, d = null, p = null;
88
88
  c !== void 0 && (d = "" + c), l.key !== void 0 && (d = "" + l.key), l.ref !== void 0 && (p = l.ref);
@@ -105,10 +105,10 @@ var qt = {};
105
105
  * This source code is licensed under the MIT license found in the
106
106
  * LICENSE file in the root directory of this source tree.
107
107
  */
108
- var ki;
108
+ var Mi;
109
109
  function ma() {
110
- return ki || (ki = 1, process.env.NODE_ENV !== "production" && function() {
111
- var t = On, e = Symbol.for("react.element"), n = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), r = Symbol.for("react.provider"), a = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), d = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), m = Symbol.iterator, x = "@@iterator";
110
+ return Mi || (Mi = 1, process.env.NODE_ENV !== "production" && function() {
111
+ var t = Ln, e = Symbol.for("react.element"), n = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), r = Symbol.for("react.provider"), a = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), d = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), m = Symbol.iterator, x = "@@iterator";
112
112
  function T(h) {
113
113
  if (h === null || typeof h != "object")
114
114
  return null;
@@ -125,18 +125,18 @@ function ma() {
125
125
  }
126
126
  function v(h, g, b) {
127
127
  {
128
- var C = P.ReactDebugCurrentFrame, D = C.getStackAddendum();
129
- D !== "" && (g += "%s", b = b.concat([D]));
130
- var k = b.map(function(E) {
128
+ var C = P.ReactDebugCurrentFrame, k = C.getStackAddendum();
129
+ k !== "" && (g += "%s", b = b.concat([k]));
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;
136
+ var w = !1, A = !1, j = !1, q = !1, R = !1, W;
137
137
  W = Symbol.for("react.module.reference");
138
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
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.
@@ -146,13 +146,13 @@ function ma() {
146
146
  var C = h.displayName;
147
147
  if (C)
148
148
  return C;
149
- var D = g.displayName || g.name || "";
150
- return D !== "" ? b + "(" + D + ")" : b;
149
+ var k = g.displayName || g.name || "";
150
+ return k !== "" ? b + "(" + k + ")" : 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 k = h, O = k._payload, E = k._init;
191
191
  try {
192
- return U(E(k));
192
+ return Z(E(O));
193
193
  } catch {
194
194
  return null;
195
195
  }
@@ -197,18 +197,18 @@ function ma() {
197
197
  }
198
198
  return null;
199
199
  }
200
- var J = Object.assign, F = 0, tt, Lt, Ot, hi, di, pi, mi;
201
- function gi() {
200
+ var M = Object.assign, D = 0, U, Lt, Ot, fi, hi, di, pi;
201
+ function mi() {
202
202
  }
203
- gi.__reactDisabledLog = !0;
203
+ mi.__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 (D === 0) {
207
+ U = console.log, Lt = console.info, Ot = console.warn, fi = console.error, hi = console.group, di = console.groupCollapsed, pi = console.groupEnd;
208
208
  var h = {
209
209
  configurable: !0,
210
210
  enumerable: !0,
211
- value: gi,
211
+ value: mi,
212
212
  writable: !0
213
213
  };
214
214
  Object.defineProperties(console, {
@@ -221,42 +221,42 @@ function ma() {
221
221
  groupEnd: h
222
222
  });
223
223
  }
224
- F++;
224
+ D++;
225
225
  }
226
226
  }
227
227
  function Do() {
228
228
  {
229
- if (F--, F === 0) {
229
+ if (D--, D === 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: U
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
+ value: fi
247
+ }),
248
+ group: M({}, h, {
246
249
  value: hi
247
250
  }),
248
- group: J({}, h, {
251
+ groupCollapsed: M({}, h, {
249
252
  value: di
250
253
  }),
251
- groupCollapsed: J({}, h, {
254
+ groupEnd: M({}, h, {
252
255
  value: pi
253
- }),
254
- groupEnd: J({}, h, {
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
+ D < 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;
@@ -265,8 +265,8 @@ function ma() {
265
265
  if (Ye === void 0)
266
266
  try {
267
267
  throw Error();
268
- } catch (D) {
269
- var C = D.stack.trim().match(/\n( *(at )?)/);
268
+ } catch (k) {
269
+ var C = k.stack.trim().match(/\n( *(at )?)/);
270
270
  Ye = C && C[1] || "";
271
271
  }
272
272
  return `
@@ -278,7 +278,7 @@ function ma() {
278
278
  var Mo = typeof WeakMap == "function" ? WeakMap : Map;
279
279
  Pe = new Mo();
280
280
  }
281
- function yi(h, g) {
281
+ function gi(h, g) {
282
282
  if (!h || Xe)
283
283
  return "";
284
284
  {
@@ -288,10 +288,10 @@ function ma() {
288
288
  }
289
289
  var C;
290
290
  Xe = !0;
291
- var D = Error.prepareStackTrace;
291
+ var k = 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,53 +304,53 @@ 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
- `), _ = V.length - 1, N = X.length - 1; _ >= 1 && N >= 0 && V[_] !== X[N]; )
331
+ `), B = V.length - 1, N = X.length - 1; B >= 1 && N >= 0 && V[B] !== X[N]; )
332
332
  N--;
333
- for (; _ >= 1 && N >= 0; _--, N--)
334
- if (V[_] !== X[N]) {
335
- if (_ !== 1 || N !== 1)
333
+ for (; B >= 1 && N >= 0; B--, N--)
334
+ if (V[B] !== X[N]) {
335
+ if (B !== 1 || N !== 1)
336
336
  do
337
- if (_--, N--, N < 0 || V[_] !== X[N]) {
338
- var et = `
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;
337
+ if (B--, N--, N < 0 || V[B] !== X[N]) {
338
+ var tt = `
339
+ ` + V[B].replace(" at new ", " at ");
340
+ return h.displayName && tt.includes("<anonymous>") && (tt = tt.replace("<anonymous>", h.displayName)), typeof h == "function" && Pe.set(h, tt), tt;
341
341
  }
342
- while (_ >= 1 && N >= 0);
342
+ while (B >= 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 = k;
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;
351
351
  }
352
352
  function ko(h, g, b) {
353
- return yi(h, !1);
353
+ return gi(h, !1);
354
354
  }
355
355
  function Lo(h) {
356
356
  var g = h.prototype;
@@ -360,7 +360,7 @@ function ma() {
360
360
  if (h == null)
361
361
  return "";
362
362
  if (typeof h == "function")
363
- return yi(h, Lo(h));
363
+ return gi(h, Lo(h));
364
364
  if (typeof h == "string")
365
365
  return ve(h);
366
366
  switch (h) {
@@ -376,28 +376,28 @@ 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, k = C._payload, O = C._init;
380
380
  try {
381
- return xe(k(D), g, b);
381
+ return xe(O(k), g, b);
382
382
  } catch {
383
383
  }
384
384
  }
385
385
  }
386
386
  return "";
387
387
  }
388
- var zt = Object.prototype.hasOwnProperty, vi = {}, Pi = P.ReactDebugCurrentFrame;
389
- function be(h) {
388
+ var zt = Object.prototype.hasOwnProperty, yi = {}, vi = P.ReactDebugCurrentFrame;
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
- Pi.setExtraStackFrame(b);
392
+ vi.setExtraStackFrame(b);
393
393
  } else
394
- Pi.setExtraStackFrame(null);
394
+ vi.setExtraStackFrame(null);
395
395
  }
396
- function Oo(h, g, b, C, D) {
396
+ function Oo(h, g, b, C, k) {
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") {
@@ -405,10 +405,10 @@ function ma() {
405
405
  throw X.name = "Invariant Violation", X;
406
406
  }
407
407
  V = h[E](g, E, C, b, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
408
- } catch (_) {
409
- V = _;
408
+ } catch (B) {
409
+ V = B;
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(k), 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 yi) && (yi[V.message] = !0, Te(k), y("Failed %s type: %s", b, V.message), Te(null));
412
412
  }
413
413
  }
414
414
  }
@@ -424,24 +424,24 @@ function ma() {
424
424
  }
425
425
  function _o(h) {
426
426
  try {
427
- return xi(h), !1;
427
+ return Pi(h), !1;
428
428
  } catch {
429
429
  return !0;
430
430
  }
431
431
  }
432
- function xi(h) {
432
+ function Pi(h) {
433
433
  return "" + h;
434
434
  }
435
- function bi(h) {
435
+ function xi(h) {
436
436
  if (_o(h))
437
- return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Fo(h)), xi(h);
437
+ return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Fo(h)), Pi(h);
438
438
  }
439
439
  var Yt = P.ReactCurrentOwner, Bo = {
440
440
  key: !0,
441
441
  ref: !0,
442
442
  __self: !0,
443
443
  __source: !0
444
- }, Ti, wi, Ze;
444
+ }, Ti, bi, Ze;
445
445
  Ze = {};
446
446
  function Io(h) {
447
447
  if (zt.call(h, "ref")) {
@@ -461,8 +461,8 @@ 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) {
@@ -479,7 +479,7 @@ function ma() {
479
479
  function $o(h, g) {
480
480
  {
481
481
  var b = function() {
482
- wi || (wi = !0, y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", g));
482
+ bi || (bi = !0, y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", g));
483
483
  };
484
484
  b.isReactWarning = !0, Object.defineProperty(h, "ref", {
485
485
  get: b,
@@ -487,7 +487,7 @@ function 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, k, 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,
@@ -513,44 +513,44 @@ function ma() {
513
513
  configurable: !1,
514
514
  enumerable: !1,
515
515
  writable: !1,
516
- value: D
516
+ value: k
517
517
  }), Object.freeze && (Object.freeze(V.props), Object.freeze(V)), V;
518
518
  };
519
- function Go(h, g, b, C, D) {
519
+ function Go(h, g, b, C, k) {
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 && (xi(b), V = "" + b), No(g) && (xi(g.key), V = "" + g.key), Io(g) && (X = g.ref, Uo(g, k));
523
+ for (O in g)
524
+ zt.call(g, O) && !Bo.hasOwnProperty(O) && (E[O] = g[O]);
525
525
  if (h && h.defaultProps) {
526
- var _ = h.defaultProps;
527
- for (k in _)
528
- E[k] === void 0 && (E[k] = _[k]);
526
+ var B = h.defaultProps;
527
+ for (O in B)
528
+ E[O] === void 0 && (E[O] = B[O]);
529
529
  }
530
530
  if (V || X) {
531
531
  var N = typeof h == "function" ? h.displayName || h.name || "Unknown" : h;
532
532
  V && Wo(E, N), X && $o(E, N);
533
533
  }
534
- return Ko(h, V, X, D, C, Yt.current, E);
534
+ return Ko(h, V, X, k, C, Yt.current, E);
535
535
  }
536
536
  }
537
- var Je = P.ReactCurrentOwner, Si = P.ReactDebugCurrentFrame;
537
+ var Je = P.ReactCurrentOwner, wi = P.ReactDebugCurrentFrame;
538
538
  function jt(h) {
539
539
  if (h) {
540
540
  var g = h._owner, b = xe(h.type, h._source, g ? g.type : null);
541
- Si.setExtraStackFrame(b);
541
+ wi.setExtraStackFrame(b);
542
542
  } else
543
- Si.setExtraStackFrame(null);
543
+ wi.setExtraStackFrame(null);
544
544
  }
545
545
  var Qe;
546
546
  Qe = !1;
547
547
  function tn(h) {
548
548
  return typeof h == "object" && h !== null && h.$$typeof === e;
549
549
  }
550
- function Ci() {
550
+ function Si() {
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
 
@@ -570,10 +570,10 @@ Check your code at ` + g + ":" + b + ".";
570
570
  return "";
571
571
  }
572
572
  }
573
- var Ai = {};
573
+ var Ci = {};
574
574
  function zo(h) {
575
575
  {
576
- var g = Ci();
576
+ var g = Si();
577
577
  if (!g) {
578
578
  var b = typeof h == "string" ? h : h.displayName || h.name;
579
579
  b && (g = `
@@ -583,35 +583,35 @@ Check the top-level render call using <` + b + ">.");
583
583
  return g;
584
584
  }
585
585
  }
586
- function Ri(h, g) {
586
+ function Ai(h, g) {
587
587
  {
588
588
  if (!h._store || h._store.validated || h.key != null)
589
589
  return;
590
590
  h._store.validated = !0;
591
591
  var b = zo(g);
592
- if (Ai[b])
592
+ if (Ci[b])
593
593
  return;
594
- Ai[b] = !0;
594
+ Ci[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
- function Vi(h, g) {
599
+ function Ri(h, g) {
600
600
  {
601
601
  if (typeof h != "object")
602
602
  return;
603
603
  if (qe(h))
604
604
  for (var b = 0; b < h.length; b++) {
605
605
  var C = h[b];
606
- tn(C) && Ri(C, g);
606
+ tn(C) && Ai(C, g);
607
607
  }
608
608
  else if (tn(h))
609
609
  h._store && (h._store.validated = !0);
610
610
  else if (h) {
611
- var D = T(h);
612
- if (typeof D == "function" && D !== h.entries)
613
- for (var k = D.call(h), E; !(E = k.next()).done; )
614
- tn(E.value) && Ri(E.value, g);
611
+ var k = T(h);
612
+ if (typeof k == "function" && k !== h.entries)
613
+ for (var O = k.call(h), E; !(E = O.next()).done; )
614
+ tn(E.value) && Ai(E.value, g);
615
615
  }
616
616
  }
617
617
  }
@@ -630,12 +630,12 @@ 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);
638
- y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", D || "Unknown");
637
+ var k = Z(g);
638
+ y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", k || "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.");
641
641
  }
@@ -652,66 +652,66 @@ Check the top-level render call using <` + b + ">.");
652
652
  h.ref !== null && (jt(h), y("Invalid attribute `ref` supplied to `React.Fragment`."), jt(null));
653
653
  }
654
654
  }
655
- var Ei = {};
656
- function Di(h, g, b, C, D, k) {
655
+ var Vi = {};
656
+ function Ei(h, g, b, C, k, O) {
657
657
  {
658
658
  var E = H(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
- var X = Ho(D);
663
- X ? V += X : V += Ci();
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);
662
+ var X = Ho(k);
663
+ X ? V += X : V += Si();
664
+ var B;
665
+ h === null ? B = "null" : qe(h) ? B = "array" : h !== void 0 && h.$$typeof === e ? (B = "<" + (Z(h.type) || "Unknown") + " />", V = " Did you accidentally export a JSX literal instead of a component?") : B = 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", B, V);
666
666
  }
667
- var N = Go(h, g, b, D, k);
667
+ var N = Go(h, g, b, k, 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
+ Ri(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
+ Ri(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}";
687
- if (!Ei[St + en]) {
688
- var ta = Z.length > 0 ? "{" + Z.join(": ..., ") + ": ...}" : "{}";
686
+ }), en = J.length > 0 ? "{key: someKey, " + J.join(": ..., ") + ": ...}" : "{key: someKey}";
687
+ if (!Vi[St + en]) {
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} />
692
692
  React keys must be passed directly to JSX without using spread:
693
693
  let props = %s;
694
- <%s key={someKey} {...props} />`, en, St, ta, St), Ei[St + en] = !0;
694
+ <%s key={someKey} {...props} />`, en, St, ta, St), Vi[St + en] = !0;
695
695
  }
696
696
  }
697
697
  return h === i ? Xo(N) : Yo(N), N;
698
698
  }
699
699
  }
700
700
  function qo(h, g, b) {
701
- return Di(h, g, b, !0);
701
+ return Ei(h, g, b, !0);
702
702
  }
703
703
  function Zo(h, g, b) {
704
- return Di(h, g, b, !1);
704
+ return Ei(h, g, b, !1);
705
705
  }
706
706
  var Jo = Zo, Qo = qo;
707
707
  qt.Fragment = i, qt.jsx = Jo, qt.jsxs = Qo;
708
708
  }()), qt;
709
709
  }
710
- process.env.NODE_ENV === "production" ? yn.exports = pa() : yn.exports = ma();
711
- var I = yn.exports, ga = Object.defineProperty, ya = (t, e, n) => e in t ? ga(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, vn = (t, e, n) => (ya(t, typeof e != "symbol" ? e + "" : e, n), n);
712
- class tr extends On.Component {
710
+ process.env.NODE_ENV === "production" ? gn.exports = pa() : gn.exports = ma();
711
+ var _ = gn.exports, ga = Object.defineProperty, ya = (t, e, n) => e in t ? ga(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, yn = (t, e, n) => (ya(t, typeof e != "symbol" ? e + "" : e, n), n);
712
+ class tr extends Ln.Component {
713
713
  constructor(e) {
714
- super(e), vn(this, "_el"), vn(this, "renderPortal", () => aa.createPortal(
714
+ super(e), yn(this, "_el"), yn(this, "renderPortal", () => aa.createPortal(
715
715
  this.props.children,
716
716
  this._el
717
717
  ));
@@ -733,14 +733,14 @@ class tr extends On.Component {
733
733
  return this.renderPortal();
734
734
  }
735
735
  }
736
- vn(tr, "defaultProps", {
736
+ yn(tr, "defaultProps", {
737
737
  containerSelector: () => document.body
738
738
  });
739
- const _n = kt({
739
+ const Fn = 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), _n = typeof window < "u", er = _n ? 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,35 +795,35 @@ 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
- const { schedule: In, cancel: dh } = sr(queueMicrotask, !1);
819
+ const { schedule: Bn, cancel: hh } = sr(queueMicrotask, !1);
820
820
  function Bt(t) {
821
821
  return t && typeof t == "object" && Object.prototype.hasOwnProperty.call(t, "current");
822
822
  }
823
823
  const rr = kt({});
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();
824
+ let ki = !1;
825
+ function ba(t, e, n, i, s) {
826
+ const { visualElement: o } = K(Be), r = K(nr), a = K(Ie), l = K(Fn).reducedMotion, c = st();
827
827
  i = i || r.renderer, !c.current && i && (c.current = i(t, {
828
828
  visualState: e,
829
829
  parent: o,
@@ -838,9 +838,9 @@ function Ta(t, e, n, i, s) {
838
838
  });
839
839
  const d = st(!!(n[ir] && !window.HandoffComplete));
840
840
  return er(() => {
841
- u && (u.updateFeatures(), In.render(u.render), d.current && u.animationState && u.animationState.animateChanges());
842
- }), ut(() => {
843
- u && (!d.current && u.animationState && u.animationState.animateChanges(), d.current && (d.current = !1, Li || (Li = !0, queueMicrotask(wa))));
841
+ u && (u.updateFeatures(), Bn.render(u.render), d.current && u.animationState && u.animationState.animateChanges());
842
+ }), ct(() => {
843
+ u && (!d.current && u.animationState && u.animationState.animateChanges(), d.current && (d.current = !1, ki || (ki = !0, queueMicrotask(wa))));
844
844
  }), u;
845
845
  }
846
846
  function wa() {
@@ -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
  },
@@ -889,7 +889,7 @@ function oe(t) {
889
889
  function ae(t) {
890
890
  return t !== null && typeof t == "object" && typeof t.start == "function";
891
891
  }
892
- const Nn = [
892
+ const In = [
893
893
  "animate",
894
894
  "whileInView",
895
895
  "whileFocus",
@@ -897,9 +897,9 @@ const Nn = [
897
897
  "whileTap",
898
898
  "whileDrag",
899
899
  "exit"
900
- ], Un = ["initial", ...Nn];
900
+ ], Nn = ["initial", ...In];
901
901
  function Ue(t) {
902
- return ae(t.animate) || Un.some((e) => oe(t[e]));
902
+ return ae(t.animate) || Nn.some((e) => oe(t[e]));
903
903
  }
904
904
  function ar(t) {
905
905
  return !!(Ue(t) || t.variants);
@@ -916,12 +916,12 @@ function Aa(t, e) {
916
916
  }
917
917
  function Ra(t) {
918
918
  const { initial: e, animate: n } = Aa(t, K(Be));
919
- return Mt(() => ({ initial: e, animate: n }), [Oi(e), Oi(n)]);
919
+ return Mt(() => ({ initial: e, animate: n }), [Li(e), Li(n)]);
920
920
  }
921
- function Oi(t) {
921
+ function Li(t) {
922
922
  return Array.isArray(t) ? t.join(" ") : t;
923
923
  }
924
- const ji = {
924
+ const Oi = {
925
925
  animation: [
926
926
  "animate",
927
927
  "variants",
@@ -941,9 +941,9 @@ const ji = {
941
941
  inView: ["whileInView", "onViewportEnter", "onViewportLeave"],
942
942
  layout: ["layout", "layoutId"]
943
943
  }, $t = {};
944
- for (const t in ji)
944
+ for (const t in Oi)
945
945
  $t[t] = {
946
- isEnabled: (e) => ji[t].some((n) => !!e[n])
946
+ isEnabled: (e) => Oi[t].some((n) => !!e[n])
947
947
  };
948
948
  function Va(t) {
949
949
  for (const e in 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 Un = kt({}), Ea = Symbol.for("motionComponentSymbol"), G = (t) => t;
956
+ let Gt = G, pt = G;
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,29 +965,29 @@ 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
+ ...K(Fn),
969
969
  ...a,
970
970
  layoutId: Ma(a)
971
971
  }, { isStatic: f } = u, d = Ra(a), p = i(a, f);
972
- if (!f && Bn) {
972
+ if (!f && _n) {
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
- 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)] });
977
+ return _.jsxs(Be.Provider, { value: d, children: [c && d.visualElement ? _.jsx(c, { visualElement: d.visualElement, ...u }) : null, n(s, a, Ca(p, d.visualElement, l), p, f, d.visualElement)] });
978
978
  }
979
979
  const r = Me(o);
980
980
  return r[Ea] = s, r;
981
981
  }
982
982
  function Ma({ layoutId: t }) {
983
- const e = K(Wn).id;
983
+ const e = K(Un).id;
984
984
  return e && t !== void 0 ? e + "-" + t : t;
985
985
  }
986
986
  function ka(t, e) {
987
987
  const n = K(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) {
@@ -1043,7 +1043,7 @@ const ja = [
1043
1043
  "use",
1044
1044
  "view"
1045
1045
  ];
1046
- function $n(t) {
1046
+ function Wn(t) {
1047
1047
  return (
1048
1048
  /**
1049
1049
  * If it's not a string, it's a custom React component. Currently we only support
@@ -1106,17 +1106,17 @@ 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(--"), $n = (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
1119
- }, ne = (t) => Math.round(t * 1e5) / 1e5, Gn = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu, $a = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu, Ka = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;
1119
+ }, ne = (t) => Math.round(t * 1e5) / 1e5, Kn = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu, $a = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu, Ka = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;
1120
1120
  function me(t) {
1121
1121
  return typeof t == "string";
1122
1122
  }
@@ -1127,11 +1127,11 @@ 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)
1134
- }, _i = {
1130
+ }), yt = ge("deg"), ot = ge("%"), S = ge("px"), Ha = ge("vh"), za = ge("vw"), ji = {
1131
+ ...ot,
1132
+ parse: (t) => ot.parse(t) / 100,
1133
+ transform: (t) => ot.transform(t * 100)
1134
+ }, Fi = {
1135
1135
  ...Ht,
1136
1136
  transform: Math.round
1137
1137
  }, fr = {
@@ -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,
@@ -1190,19 +1190,19 @@ const ge = (t) => ({
1190
1190
  perspective: S,
1191
1191
  transformPerspective: S,
1192
1192
  opacity: ee,
1193
- originX: Fi,
1194
- originY: Fi,
1193
+ originX: ji,
1194
+ originY: ji,
1195
1195
  originZ: S,
1196
1196
  // Misc
1197
- zIndex: _i,
1197
+ zIndex: Fi,
1198
1198
  backgroundPositionX: S,
1199
1199
  backgroundPositionY: S,
1200
1200
  // SVG
1201
1201
  fillOpacity: ee,
1202
1202
  strokeOpacity: ee,
1203
- numOctaves: _i
1203
+ numOctaves: Fi
1204
1204
  };
1205
- function Hn(t, e, n) {
1205
+ function Gn(t, e, n) {
1206
1206
  const { style: i, vars: s, transform: o, transformOrigin: r } = t;
1207
1207
  let a = !1, l = !1, c = !0;
1208
1208
  for (const u in e) {
@@ -1224,7 +1224,7 @@ function Hn(t, e, n) {
1224
1224
  i.transformOrigin = `${u} ${f} ${d}`;
1225
1225
  }
1226
1226
  }
1227
- const zn = () => ({
1227
+ const Hn = () => ({
1228
1228
  style: {},
1229
1229
  transform: {},
1230
1230
  transformOrigin: {},
@@ -1236,8 +1236,8 @@ function hr(t, e, n) {
1236
1236
  }
1237
1237
  function Ya({ transformTemplate: t }, e) {
1238
1238
  return Mt(() => {
1239
- const n = zn();
1240
- return Hn(n, e, t), Object.assign({}, n.vars, n.style);
1239
+ const n = Hn();
1240
+ return Gn(n, e, t), Object.assign({}, n.vars, n.style);
1241
1241
  }, [e]);
1242
1242
  }
1243
1243
  function Xa(t, e) {
@@ -1298,11 +1298,11 @@ function Qa(t, e, n) {
1298
1298
  t.draggable && s.startsWith("onDrag")) && (i[s] = t[s]);
1299
1299
  return i;
1300
1300
  }
1301
- function Bi(t, e, n) {
1301
+ function _i(t, e, n) {
1302
1302
  return typeof t == "string" ? t : S.transform(e + n * t);
1303
1303
  }
1304
1304
  function tl(t, e, n) {
1305
- const i = Bi(e, t.x, t.width), s = Bi(n, t.y, t.height);
1305
+ const i = _i(e, t.x, t.width), s = _i(n, t.y, t.height);
1306
1306
  return `${i} ${s}`;
1307
1307
  }
1308
1308
  const el = {
@@ -1319,7 +1319,7 @@ function il(t, e, n = 1, i = 0, s = !0) {
1319
1319
  const r = S.transform(e), a = S.transform(n);
1320
1320
  t[o.array] = `${r} ${a}`;
1321
1321
  }
1322
- function Yn(t, {
1322
+ function zn(t, {
1323
1323
  attrX: e,
1324
1324
  attrY: n,
1325
1325
  attrScale: i,
@@ -1331,7 +1331,7 @@ function Yn(t, {
1331
1331
  // This is object creation, which we try to avoid per-frame.
1332
1332
  ...c
1333
1333
  }, u, f) {
1334
- if (Hn(t, c, f), u) {
1334
+ if (Gn(t, c, f), u) {
1335
1335
  t.style.viewBox && (t.attrs.viewBox = t.style.viewBox);
1336
1336
  return;
1337
1337
  }
@@ -1340,13 +1340,13 @@ function Yn(t, {
1340
1340
  d.transform && (m && (p.transform = d.transform), delete d.transform), m && (s !== void 0 || o !== void 0 || p.transform) && (p.transformOrigin = tl(m, s !== void 0 ? s : 0.5, o !== void 0 ? o : 0.5)), e !== void 0 && (d.x = e), n !== void 0 && (d.y = n), i !== void 0 && (d.scale = i), r !== void 0 && il(d, r, a, l, !1);
1341
1341
  }
1342
1342
  const pr = () => ({
1343
- ...zn(),
1343
+ ...Hn(),
1344
1344
  attrs: {}
1345
- }), Xn = (t) => typeof t == "string" && t.toLowerCase() === "svg";
1345
+ }), Yn = (t) => typeof t == "string" && t.toLowerCase() === "svg";
1346
1346
  function sl(t, e, n, i) {
1347
1347
  const s = Mt(() => {
1348
1348
  const o = pr();
1349
- return Yn(o, e, Xn(i), t.transformTemplate), {
1349
+ return zn(o, e, Yn(i), t.transformTemplate), {
1350
1350
  ...o.attrs,
1351
1351
  style: { ...o.style }
1352
1352
  };
@@ -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 = (Wn(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]);
1363
1363
  return ia(n, {
1364
1364
  ...u,
1365
1365
  children: d
@@ -1401,7 +1401,7 @@ function yr(t, e, n, i) {
1401
1401
  for (const s in e.attrs)
1402
1402
  t.setAttribute(gr.has(s) ? s : Ne(s), e.attrs[s]);
1403
1403
  }
1404
- function qn(t, e, n) {
1404
+ function Xn(t, e, n) {
1405
1405
  var i;
1406
1406
  const { style: s } = t, o = {};
1407
1407
  for (const r in s)
@@ -1409,7 +1409,7 @@ function qn(t, e, n) {
1409
1409
  return n && s && typeof s.willChange == "string" && (n.applyWillChange = !1), o;
1410
1410
  }
1411
1411
  function vr(t, e, n) {
1412
- const i = qn(t, e, n);
1412
+ const i = Xn(t, e, n);
1413
1413
  for (const s in t)
1414
1414
  if (Y(t[s]) || Y(e[s])) {
1415
1415
  const o = pe.indexOf(s) !== -1 ? "attr" + s.charAt(0).toUpperCase() + s.substring(1) : s;
@@ -1417,28 +1417,28 @@ function vr(t, e, n) {
1417
1417
  }
1418
1418
  return i;
1419
1419
  }
1420
- function Ii(t) {
1420
+ function Bi(t) {
1421
1421
  const e = [{}, {}];
1422
1422
  return t == null || t.values.forEach((n, i) => {
1423
1423
  e[0][i] = n.get(), e[1][i] = n.getVelocity();
1424
1424
  }), e;
1425
1425
  }
1426
- function Zn(t, e, n, i) {
1426
+ function qn(t, e, n, i) {
1427
1427
  if (typeof e == "function") {
1428
- const [s, o] = Ii(i);
1428
+ const [s, o] = Bi(i);
1429
1429
  e = e(n !== void 0 ? n : t.custom, s, o);
1430
1430
  }
1431
1431
  if (typeof e == "string" && (e = t.variants && t.variants[e]), typeof e == "function") {
1432
- const [s, o] = Ii(i);
1432
+ const [s, o] = Bi(i);
1433
1433
  e = e(n !== void 0 ? n : t.custom, s, o);
1434
1434
  }
1435
1435
  return e;
1436
1436
  }
1437
- function Jn(t) {
1437
+ function Zn(t) {
1438
1438
  const e = st(null);
1439
1439
  return e.current === null && (e.current = t()), e.current;
1440
1440
  }
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;
1441
+ const vn = (t) => Array.isArray(t), ol = (t) => !!(t && typeof t == "object" && t.mix && t.toValue), al = (t) => vn(t) ? t[t.length - 1] || 0 : t;
1442
1442
  function Re(t) {
1443
1443
  const e = Y(t) ? t.get() : t;
1444
1444
  return ol(e) ? e.toValue() : e;
@@ -1472,18 +1472,18 @@ 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) => {
1475
+ const Tr = (t) => (e, n) => {
1476
1476
  const i = K(Be), s = K(Ie), o = () => ll(t, e, i, s, n);
1477
- return n ? o() : Jn(o);
1477
+ return n ? o() : Zn(o);
1478
1478
  };
1479
1479
  function cl(t, e) {
1480
1480
  const n = xr(e);
1481
1481
  n && We(t, n);
1482
1482
  }
1483
- function Ni(t, e, n) {
1483
+ function Ii(t, e, n) {
1484
1484
  const i = Array.isArray(e) ? e : [e];
1485
1485
  for (let s = 0; s < i.length; s++) {
1486
- const o = Zn(t, i[s]);
1486
+ const o = qn(t, i[s]);
1487
1487
  if (o) {
1488
1488
  const { transitionEnd: r, transition: a, ...l } = o;
1489
1489
  n(l, r);
@@ -1501,7 +1501,7 @@ function ul(t, e, n, i, s) {
1501
1501
  let m = n ? n.initial === !1 : !1;
1502
1502
  m = m || u === !1;
1503
1503
  const x = m ? f : u;
1504
- return x && typeof x != "boolean" && !ae(x) && Ni(t, x, (T, P) => {
1504
+ return x && typeof x != "boolean" && !ae(x) && Ii(t, x, (T, P) => {
1505
1505
  for (const y in T) {
1506
1506
  let v = T[y];
1507
1507
  if (Array.isArray(v)) {
@@ -1512,17 +1512,17 @@ function ul(t, e, n, i, s) {
1512
1512
  }
1513
1513
  for (const y in P)
1514
1514
  r[y] = P[y];
1515
- }), l && (f && u !== !1 && !ae(f) && Ni(t, f, (T) => {
1515
+ }), l && (f && u !== !1 && !ae(f) && Ii(t, f, (T) => {
1516
1516
  for (const P in T)
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: L, cancel: mt, state: $, steps: nn } = sr(typeof requestAnimationFrame < "u" ? requestAnimationFrame : G, !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
+ L.read(() => {
1526
1526
  try {
1527
1527
  n.dimensions = typeof e.getBBox == "function" ? e.getBBox() : e.getBoundingClientRect();
1528
1528
  } catch {
@@ -1533,31 +1533,31 @@ const { schedule: M, cancel: gt, state: $, steps: nn } = sr(typeof requestAnimat
1533
1533
  height: 0
1534
1534
  };
1535
1535
  }
1536
- }), M.render(() => {
1537
- Yn(n, i, Xn(e.tagName), t.transformTemplate), yr(e, n);
1536
+ }), L.render(() => {
1537
+ zn(n, i, Yn(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
- scrapeMotionValuesFromProps: qn,
1545
- createRenderState: zn
1544
+ scrapeMotionValuesFromProps: Xn,
1545
+ createRenderState: Hn
1546
1546
  })
1547
1547
  };
1548
1548
  function dl(t, { forwardMotionProps: e = !1 }, n, i) {
1549
1549
  return {
1550
- ...$n(t) ? fl : hl,
1550
+ ...Wn(t) ? fl : hl,
1551
1551
  preloadedFeatures: n,
1552
1552
  useRender: rl(e),
1553
1553
  createVisualElement: 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 () => {
@@ -1580,15 +1580,15 @@ function wr(t) {
1580
1580
  return e === null ? (e = t, n) : !1;
1581
1581
  };
1582
1582
  }
1583
- const Ui = wr("dragHorizontal"), Wi = wr("dragVertical");
1583
+ const Ni = wr("dragHorizontal"), Ui = wr("dragVertical");
1584
1584
  function Sr(t) {
1585
1585
  let e = !1;
1586
1586
  if (t === "y")
1587
- e = Wi();
1588
- else if (t === "x")
1589
1587
  e = Ui();
1588
+ else if (t === "x")
1589
+ e = Ni();
1590
1590
  else {
1591
- const n = Ui(), i = Wi();
1591
+ const n = Ni(), i = Ui();
1592
1592
  n && i ? e = () => {
1593
1593
  n(), i();
1594
1594
  } : (n && n(), i && i());
@@ -1599,34 +1599,34 @@ 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
  }
1606
1606
  update() {
1607
1607
  }
1608
1608
  }
1609
- function $i(t, e) {
1609
+ function Wi(t, e) {
1610
1610
  const n = e ? "pointerenter" : "pointerleave", i = e ? "onHoverStart" : "onHoverEnd", s = (o, r) => {
1611
1611
  if (o.pointerType === "touch" || Cr())
1612
1612
  return;
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 && L.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(Wi(this.node, !0), Wi(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
1660
  super(...arguments), this.removeStartListeners = G, this.removeEndListeners = G, this.removeAccessibleListeners = G, 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 && L.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 && L.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 && L.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,41 +1703,41 @@ 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 && L.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();
1716
1716
  }
1717
1717
  }
1718
- const xn = /* @__PURE__ */ new WeakMap(), rn = /* @__PURE__ */ new WeakMap(), Pl = (t) => {
1719
- const e = xn.get(t.target);
1718
+ const Pn = /* @__PURE__ */ new WeakMap(), rn = /* @__PURE__ */ new WeakMap(), Pl = (t) => {
1719
+ const e = Pn.get(t.target);
1720
1720
  e && e(t);
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);
1732
- return xn.set(t, n), i.observe(t), () => {
1733
- xn.delete(t), i.unobserve(t);
1730
+ function bl(t, e, n) {
1731
+ const i = Tl(e);
1732
+ return Pn.set(t, n), i.observe(t), () => {
1733
+ Pn.delete(t), i.unobserve(t);
1734
1734
  };
1735
1735
  }
1736
1736
  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();
@@ -1799,9 +1799,9 @@ function Rr(t, e) {
1799
1799
  }
1800
1800
  function Ge(t, e, n) {
1801
1801
  const i = t.getProps();
1802
- return Zn(i, e, n !== void 0 ? n : i.custom, t);
1802
+ return qn(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,
@@ -1822,7 +1822,7 @@ const dt = (t) => t * 1e3, pt = (t) => t / 1e3, Rl = {
1822
1822
  function kl({ when: t, delay: e, delayChildren: n, staggerChildren: i, staggerDirection: s, repeat: o, repeatType: r, repeatDelay: a, from: l, elapsed: c, ...u }) {
1823
1823
  return !!Object.keys(u).length;
1824
1824
  }
1825
- function Qn(t, e) {
1825
+ function Jn(t, e) {
1826
1826
  return t[e] || t.default || t;
1827
1827
  }
1828
1828
  const Ll = (t) => t !== null;
@@ -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($.isProcessing || Pa.useManualTiming ? $.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;
@@ -1865,7 +1865,7 @@ function Dr(t, e, n = 1) {
1865
1865
  const r = o.trim();
1866
1866
  return Er(r) ? parseFloat(r) : r;
1867
1867
  }
1868
- return Kn(s) ? Dr(s, e, n + 1) : s;
1868
+ return $n(s) ? Dr(s, e, n + 1) : s;
1869
1869
  }
1870
1870
  const Il = /* @__PURE__ */ new Set([
1871
1871
  "width",
@@ -1878,15 +1878,15 @@ const Il = /* @__PURE__ */ new Set([
1878
1878
  "y",
1879
1879
  "translateX",
1880
1880
  "translateY"
1881
- ]), Ki = (t) => t === Ht || t === S, Gi = (t, e) => parseFloat(t.split(", ")[e]), Hi = (t, e) => (n, { transform: i }) => {
1881
+ ]), $i = (t) => t === Ht || t === S, Ki = (t, e) => parseFloat(t.split(", ")[e]), Gi = (t, e) => (n, { transform: i }) => {
1882
1882
  if (i === "none" || !i)
1883
1883
  return 0;
1884
1884
  const s = i.match(/^matrix3d\((.+)\)$/u);
1885
1885
  if (s)
1886
- return Gi(s[1], e);
1886
+ return Ki(s[1], e);
1887
1887
  {
1888
1888
  const o = i.match(/^matrix\((.+)\)$/u);
1889
- return o ? Gi(o[1], t) : 0;
1889
+ return o ? Ki(o[1], t) : 0;
1890
1890
  }
1891
1891
  }, Nl = /* @__PURE__ */ new Set(["x", "y", "z"]), Ul = pe.filter((t) => !Nl.has(t));
1892
1892
  function Wl(t) {
@@ -1905,16 +1905,16 @@ const Kt = {
1905
1905
  bottom: ({ y: t }, { top: e }) => parseFloat(e) + (t.max - t.min),
1906
1906
  right: ({ x: t }, { left: e }) => parseFloat(e) + (t.max - t.min),
1907
1907
  // Transform
1908
- x: Hi(4, 13),
1909
- y: Hi(5, 14)
1908
+ x: Gi(4, 13),
1909
+ y: Gi(5, 14)
1910
1910
  };
1911
1911
  Kt.translateX = Kt.x;
1912
1912
  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], Hi = (t) => kr.find(Mr(t)), Dt = /* @__PURE__ */ new Set();
1917
+ let xn = !1, Tn = !1;
1918
1918
  function Lr() {
1919
1919
  if (Tn) {
1920
1920
  const t = Array.from(Dt).filter((i) => i.needsMeasurement), e = new Set(t.map((i) => i.element)), n = /* @__PURE__ */ new Map();
@@ -1932,7 +1932,7 @@ 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
+ Tn = !1, xn = !1, Dt.forEach((t) => t.complete()), Dt.clear();
1936
1936
  }
1937
1937
  function Or() {
1938
1938
  Dt.forEach((t) => {
@@ -1942,12 +1942,12 @@ function Or() {
1942
1942
  function Kl() {
1943
1943
  Or(), Lr();
1944
1944
  }
1945
- class ti {
1945
+ class Qn {
1946
1946
  constructor(e, n, i, s, o, r = !1) {
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), xn || (xn = !0, L.read(Or), L.resolveKeyframes(Lr))) : (this.readKeyframes(), this.complete());
1951
1951
  }
1952
1952
  readKeyframes() {
1953
1953
  const { unresolvedKeyframes: e, name: n, element: i, motionValue: s } = this;
@@ -1983,21 +1983,21 @@ class ti {
1983
1983
  this.isComplete || this.scheduleResolve();
1984
1984
  }
1985
1985
  }
1986
- const ei = (t, e) => (n) => !!(me(n) && Ka.test(n) && n.startsWith(t) || e && !Ga(n) && Object.prototype.hasOwnProperty.call(n, e)), jr = (t, e, n) => (i) => {
1986
+ const ti = (t, e) => (n) => !!(me(n) && Ka.test(n) && n.startsWith(t) || e && !Ga(n) && Object.prototype.hasOwnProperty.call(n, e)), jr = (t, e, n) => (i) => {
1987
1987
  if (!me(i))
1988
1988
  return i;
1989
- const [s, o, r, a] = i.match(Gn);
1989
+ const [s, o, r, a] = i.match(Kn);
1990
1990
  return {
1991
1991
  [t]: parseFloat(s),
1992
1992
  [e]: parseFloat(o),
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 = {
2000
- test: ei("rgb", "red"),
2000
+ test: ti("rgb", "red"),
2001
2001
  parse: jr("red", "green", "blue"),
2002
2002
  transform: ({ red: t, green: e, blue: n, alpha: i = 1 }) => "rgba(" + on.transform(t) + ", " + on.transform(e) + ", " + on.transform(n) + ", " + ne(ee.transform(i)) + ")"
2003
2003
  };
@@ -2010,24 +2010,24 @@ function Hl(t) {
2010
2010
  alpha: s ? parseInt(s, 16) / 255 : 1
2011
2011
  };
2012
2012
  }
2013
- const wn = {
2014
- test: ei("#"),
2013
+ const bn = {
2014
+ test: ti("#"),
2015
2015
  parse: Hl,
2016
2016
  transform: Et.transform
2017
2017
  }, It = {
2018
- test: ei("hsl", "hue"),
2018
+ test: ti("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)) + ")"
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
2021
  }, z = {
2022
- test: (t) => Et.test(t) || wn.test(t) || It.test(t),
2023
- parse: (t) => Et.test(t) ? Et.parse(t) : It.test(t) ? It.parse(t) : wn.parse(t),
2022
+ test: (t) => Et.test(t) || bn.test(t) || It.test(t),
2023
+ parse: (t) => Et.test(t) ? Et.parse(t) : It.test(t) ? It.parse(t) : bn.parse(t),
2024
2024
  transform: (t) => me(t) ? t : t.hasOwnProperty("red") ? Et.transform(t) : It.transform(t)
2025
2025
  };
2026
2026
  function zl(t) {
2027
2027
  var e, n;
2028
- return isNaN(t) && me(t) && (((e = t.match(Gn)) === null || e === void 0 ? void 0 : e.length) || 0) + (((n = t.match($a)) === null || n === void 0 ? void 0 : n.length) || 0) > 0;
2028
+ return isNaN(t) && me(t) && (((e = t.match(Kn)) === null || e === void 0 ? void 0 : e.length) || 0) + (((n = t.match($a)) === null || n === void 0 ? void 0 : n.length) || 0) > 0;
2029
2029
  }
2030
- const Fr = "number", _r = "color", Yl = "var", Xl = "var(", Yi = "${}", ql = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;
2030
+ const Fr = "number", _r = "color", Yl = "var", Xl = "var(", zi = "${}", ql = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;
2031
2031
  function le(t) {
2032
2032
  const e = t.toString(), n = [], i = {
2033
2033
  color: [],
@@ -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) => (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, zi)).split(zi);
2039
2039
  return { values: n, split: a, indexes: i, types: s };
2040
2040
  }
2041
2041
  function Br(t) {
@@ -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,
@@ -2068,15 +2068,15 @@ function tc(t) {
2068
2068
  const [e, n] = t.slice(0, -1).split("(");
2069
2069
  if (e === "drop-shadow")
2070
2070
  return t;
2071
- const [i] = n.match(Gn) || [];
2071
+ const [i] = n.match(Kn) || [];
2072
2072
  if (!i)
2073
2073
  return t;
2074
2074
  const s = n.replace(i, "");
2075
2075
  let o = Ql.has(e) ? 1 : 0;
2076
2076
  return i !== n && (o *= 100), e + "(" + o + s + ")";
2077
2077
  }
2078
- const ec = /\b([a-z-]*)\(.*?\)/gu, Sn = {
2079
- ...bt,
2078
+ const ec = /\b([a-z-]*)\(.*?\)/gu, wn = {
2079
+ ...xt,
2080
2080
  getAnimatableNone: (t) => {
2081
2081
  const e = t.match(ec);
2082
2082
  return e ? e.map(tc).join(" ") : t;
@@ -2095,12 +2095,12 @@ const ec = /\b([a-z-]*)\(.*?\)/gu, Sn = {
2095
2095
  borderRightColor: z,
2096
2096
  borderBottomColor: z,
2097
2097
  borderLeftColor: z,
2098
- filter: Sn,
2099
- WebkitFilter: Sn
2100
- }, ni = (t) => nc[t];
2098
+ filter: wn,
2099
+ WebkitFilter: wn
2100
+ }, ei = (t) => nc[t];
2101
2101
  function Nr(t, e) {
2102
- let n = ni(t);
2103
- return n !== Sn && (n = bt), n.getAnimatableNone ? n.getAnimatableNone(e) : void 0;
2102
+ let n = ei(t);
2103
+ return n !== wn && (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) {
@@ -2113,7 +2113,7 @@ function sc(t, e, n) {
2113
2113
  for (const o of e)
2114
2114
  t[o] = Nr(n, s);
2115
2115
  }
2116
- class Ur extends ti {
2116
+ class Ur extends Qn {
2117
2117
  constructor(e, n, i, s) {
2118
2118
  super(e, n, i, s, s == null ? void 0 : s.owner, !0);
2119
2119
  }
@@ -2124,16 +2124,16 @@ class Ur extends ti {
2124
2124
  super.readKeyframes();
2125
2125
  for (let l = 0; l < e.length; l++) {
2126
2126
  let c = e[l];
2127
- if (typeof c == "string" && (c = c.trim(), Kn(c))) {
2127
+ if (typeof c == "string" && (c = c.trim(), $n(c))) {
2128
2128
  const u = Dr(c, n.current);
2129
2129
  u !== void 0 && (e[l] = u), l === e.length - 1 && (this.finalKeyframe = c);
2130
2130
  }
2131
2131
  }
2132
2132
  if (this.resolveNoneKeyframes(), !Il.has(i) || e.length !== 2)
2133
2133
  return;
2134
- const [s, o] = e, r = zi(s), a = zi(o);
2134
+ const [s, o] = e, r = Hi(s), a = Hi(o);
2135
2135
  if (r !== a)
2136
- if (Ki(r) && Ki(a))
2136
+ if ($i(r) && $i(a))
2137
2137
  for (let l = 0; l < e.length; l++) {
2138
2138
  const c = e[l];
2139
2139
  typeof c == "string" && (e[l] = parseFloat(c));
@@ -2172,8 +2172,8 @@ function Wr(t) {
2172
2172
  let e;
2173
2173
  return () => (e === void 0 && (e = t()), e);
2174
2174
  }
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
2175
+ const Yi = (t, e) => e === "zIndex" ? !1 : !!(typeof t == "number" || Array.isArray(t) || typeof t == "string" && // It's animatable if we have a string
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];
@@ -2189,7 +2189,7 @@ function oc(t, e, n, i) {
2189
2189
  return !1;
2190
2190
  if (e === "display" || e === "visibility")
2191
2191
  return !0;
2192
- const o = t[t.length - 1], r = Xi(s, e), a = Xi(o, e);
2192
+ const o = t[t.length - 1], r = Yi(s, e), a = Yi(o, e);
2193
2193
  return Gt(r === a, `You are trying to animate ${e} from "${s}" to "${o}". ${s} is not an animatable value - to enable this animation set ${s} to a value animatable to ${o} via the \`style\` property.`), !r || !a ? !1 : rc(t) || n === "spring" && i;
2194
2194
  }
2195
2195
  class $r {
@@ -2258,16 +2258,16 @@ function Gr(t, e, n) {
2258
2258
  const i = Math.max(e - ac, 0);
2259
2259
  return Kr(n - t(i), e - i);
2260
2260
  }
2261
- const an = 1e-3, lc = 0.01, qi = 10, cc = 0.05, uc = 1;
2261
+ const an = 1e-3, lc = 0.01, Xi = 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(Xi), "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) => {
2267
- const u = c * r, f = u * t, d = u - n, p = Cn(c, r), m = Math.exp(-f);
2266
+ r = Pt(cc, uc, r), t = Pt(lc, Xi, dt(t)), r < 1 ? (s = (c) => {
2267
+ const u = c * r, f = u * t, d = u - n, p = Sn(c, r), m = Math.exp(-f);
2268
2268
  return an - d / p * m;
2269
2269
  }, o = (c) => {
2270
- const f = c * r * t, d = f * n + n, p = Math.pow(r, 2) * Math.pow(c, 2) * t, m = Math.exp(-f), x = Cn(Math.pow(c, 2), r);
2270
+ const f = c * r * t, d = f * n + n, p = Math.pow(r, 2) * Math.pow(c, 2) * t, m = Math.exp(-f), x = Sn(Math.pow(c, 2), r);
2271
2271
  return (-s(c) + an > 0 ? -1 : 1) * ((d - p) * m) / x;
2272
2272
  }) : (s = (c) => {
2273
2273
  const u = Math.exp(-c * t), f = (c - n) * t + 1;
@@ -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,
@@ -2299,11 +2299,11 @@ function dc(t, e, n) {
2299
2299
  i = i - t(i) / e(i);
2300
2300
  return i;
2301
2301
  }
2302
- function Cn(t, e) {
2302
+ function Sn(t, e) {
2303
2303
  return t * Math.sqrt(1 - e * e);
2304
2304
  }
2305
2305
  const pc = ["duration", "bounce"], mc = ["stiffness", "damping", "mass"];
2306
- function Zi(t, e) {
2306
+ function qi(t, e) {
2307
2307
  return e.some((n) => t[n] !== void 0);
2308
2308
  }
2309
2309
  function gc(t) {
@@ -2315,7 +2315,7 @@ function gc(t) {
2315
2315
  isResolvedFromDuration: !1,
2316
2316
  ...t
2317
2317
  };
2318
- if (!Zi(t, mc) && Zi(t, pc)) {
2318
+ if (!qi(t, mc) && qi(t, pc)) {
2319
2319
  const n = fc(t);
2320
2320
  e = {
2321
2321
  ...e,
@@ -2328,12 +2328,12 @@ 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) {
2336
- const v = Cn(T, m);
2336
+ const v = Sn(T, m);
2337
2337
  y = (w) => {
2338
2338
  const A = Math.exp(-m * T * w);
2339
2339
  return o - A * ((p + m * T * x) / v * Math.sin(v * w) + x * Math.cos(v * w));
@@ -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,14 +2356,14 @@ 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
  }
2364
2364
  };
2365
2365
  }
2366
- function Ji({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: i = 325, bounceDamping: s = 10, bounceStiffness: o = 500, modifyTarget: r, min: a, max: l, restDelta: c = 0.5, restSpeed: u }) {
2366
+ function Zi({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: i = 325, bounceDamping: s = 10, bounceStiffness: o = 500, modifyTarget: r, min: a, max: l, restDelta: c = 0.5, restSpeed: u }) {
2367
2367
  const f = t[0], d = {
2368
2368
  done: !1,
2369
2369
  value: f
@@ -2375,9 +2375,9 @@ function Ji({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: i = 3
2375
2375
  const W = y(R), H = v(R);
2376
2376
  d.done = Math.abs(W) <= c, d.value = d.done ? P : H;
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
@@ -2391,7 +2391,7 @@ function Ji({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: i = 3
2391
2391
  calculatedDuration: null,
2392
2392
  next: (R) => {
2393
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);
2394
+ return !j && A === void 0 && (W = !0, w(R), q(R)), A !== void 0 && R >= A ? j.next(R - A) : (!W && w(R), d);
2395
2395
  }
2396
2396
  };
2397
2397
  }
@@ -2409,30 +2409,30 @@ function ye(t, e, n, i) {
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 = {
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), ni = (t) => 1 - Math.sin(Math.acos(t)), Zr = qr(ni), wc = Xr(ni), Jr = ye(0.33, 1.53, 0.69, 0.99), ii = qr(Jr), Sc = Xr(ii), Cc = (t) => (t *= 2) < 1 ? 0.5 * ii(t) : 0.5 * (2 - Math.pow(2, -10 * (t - 1))), Ji = {
2413
2413
  linear: G,
2414
2414
  easeIn: xc,
2415
2415
  easeInOut: Yr,
2416
- easeOut: bc,
2417
- circIn: ii,
2416
+ easeOut: Tc,
2417
+ circIn: ni,
2418
2418
  circInOut: wc,
2419
2419
  circOut: Zr,
2420
- backIn: si,
2420
+ backIn: ii,
2421
2421
  backInOut: Sc,
2422
2422
  backOut: Jr,
2423
2423
  anticipate: Cc
2424
- }, ts = (t) => {
2424
+ }, Qi = (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(Ji[t] !== void 0, `Invalid easing type '${t}'`), Ji[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
  }
@@ -2458,32 +2458,32 @@ function Oe(t, e) {
2458
2458
  const cn = (t, e, n) => {
2459
2459
  const i = t * t, s = n * (e * e - i) + i;
2460
2460
  return s < 0 ? 0 : Math.sqrt(s);
2461
- }, Rc = [wn, Et, It], Vc = (t) => Rc.find((e) => e.test(t));
2462
- function es(t) {
2461
+ }, Rc = [bn, Et, It], Vc = (t) => Rc.find((e) => e.test(t));
2462
+ function ts(t) {
2463
2463
  const e = Vc(t);
2464
2464
  if (Gt(!!e, `'${t}' is not an animatable color. Use the equivalent color code instead.`), !e)
2465
2465
  return !1;
2466
2466
  let n = e.parse(t);
2467
2467
  return e === It && (n = Ac(n)), n;
2468
2468
  }
2469
- const ns = (t, e) => {
2470
- const n = es(t), i = es(e);
2469
+ const es = (t, e) => {
2470
+ const n = ts(t), i = ts(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));
2475
- }, An = /* @__PURE__ */ new Set(["none", "hidden"]);
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
+ }, Cn = /* @__PURE__ */ new Set(["none", "hidden"]);
2476
2476
  function Ec(t, e) {
2477
- return An.has(t) ? (n) => n <= 0 ? t : e : (n) => n >= 1 ? e : t;
2477
+ return Cn.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
- 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;
2482
+ function si(t) {
2483
+ return typeof t == "number" ? Dc : typeof t == "string" ? $n(t) ? Oe : z.test(t) ? es : Lc : Array.isArray(t) ? Qr : typeof t == "object" ? z.test(t) ? es : Mc : Oe;
2484
2484
  }
2485
2485
  function Qr(t, e) {
2486
- const n = [...t], i = n.length, s = t.map((o, r) => ri(o)(o, e[r]));
2486
+ const n = [...t], i = n.length, s = t.map((o, r) => si(o)(o, e[r]));
2487
2487
  return (o) => {
2488
2488
  for (let r = 0; r < i; r++)
2489
2489
  n[r] = s[r](o);
@@ -2493,7 +2493,7 @@ function Qr(t, e) {
2493
2493
  function Mc(t, e) {
2494
2494
  const n = { ...t, ...e }, i = {};
2495
2495
  for (const s in n)
2496
- t[s] !== void 0 && e[s] !== void 0 && (i[s] = ri(t[s])(t[s], e[s]));
2496
+ t[s] !== void 0 && e[s] !== void 0 && (i[s] = si(t[s])(t[s], e[s]));
2497
2497
  return (s) => {
2498
2498
  for (const o in i)
2499
2499
  n[o] = i[o](s);
@@ -2510,11 +2510,11 @@ 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 ? Cn.has(t) && !s.values.length || Cn.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) : si(t)(t, e);
2518
2518
  }
2519
2519
  function Oc(t, e, n) {
2520
2520
  const i = [], s = n || to, o = t.length - 1;
@@ -2522,7 +2522,7 @@ function Oc(t, e, n) {
2522
2522
  let a = s(t[r], t[r + 1]);
2523
2523
  if (e) {
2524
2524
  const l = Array.isArray(e) ? e[r] || G : e;
2525
- a = ht(l, a);
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(Qi) : Qi(i), o = {
2567
2567
  done: !1,
2568
2568
  value: e[0]
2569
2569
  }, r = Bc(
@@ -2579,35 +2579,35 @@ function je({ duration: t = 300, keyframes: e, times: n, ease: i = "easeInOut" }
2579
2579
  next: (l) => (o.value = a(l), o.done = l >= t, o)
2580
2580
  };
2581
2581
  }
2582
- const is = 2e4;
2582
+ const ns = 2e4;
2583
2583
  function Nc(t) {
2584
2584
  let e = 0;
2585
2585
  const n = 50;
2586
2586
  let i = t.next(e);
2587
- for (; !i.done && e < is; )
2587
+ for (; !i.done && e < ns; )
2588
2588
  e += n, i = t.next(e);
2589
- return e >= is ? 1 / 0 : e;
2589
+ return e >= ns ? 1 / 0 : e;
2590
2590
  }
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: () => L.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: () => $.isProcessing ? $.timestamp : vt.now()
2601
2601
  };
2602
2602
  }, Wc = {
2603
- decay: Ji,
2604
- inertia: Ji,
2603
+ decay: Zi,
2604
+ inertia: Zi,
2605
2605
  tween: je,
2606
2606
  keyframes: je,
2607
2607
  spring: Hr
2608
2608
  }, $c = (t) => t / 100;
2609
- class oi extends $r {
2610
- constructor({ KeyframeResolver: e = ti, ...n }) {
2609
+ class ri extends $r {
2610
+ constructor({ KeyframeResolver: e = Qn, ...n }) {
2611
2611
  super(n), this.holdTime = null, this.startTime = null, this.cancelTime = null, this.currentTime = 0, this.playbackSpeed = 1, this.pendingPlayState = "running", this.state = "idle", this.stop = () => {
2612
2612
  if (this.resolver.cancel(), this.isStopped = !0, this.state === "idle")
2613
2613
  return;
@@ -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,
@@ -2659,31 +2659,31 @@ class oi extends $r {
2659
2659
  if (p) {
2660
2660
  const R = Math.min(this.currentTime, u) / f;
2661
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;
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 = Pt(0, 1, H) * 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) {
@@ -2728,9 +2728,9 @@ class oi extends $r {
2728
2728
  }
2729
2729
  const eo = (t) => Array.isArray(t) && typeof t[0] == "number";
2730
2730
  function no(t) {
2731
- return !!(!t || typeof t == "string" && t in ai || eo(t) || Array.isArray(t) && t.every(no));
2731
+ return !!(!t || typeof t == "string" && t in oi || eo(t) || Array.isArray(t) && t.every(no));
2732
2732
  }
2733
- const Qt = ([t, e, n, i]) => `cubic-bezier(${t}, ${e}, ${n}, ${i})`, ai = {
2733
+ const Qt = ([t, e, n, i]) => `cubic-bezier(${t}, ${e}, ${n}, ${i})`, oi = {
2734
2734
  linear: "linear",
2735
2735
  ease: "ease",
2736
2736
  easeIn: "ease-in",
@@ -2742,11 +2742,11 @@ const Qt = ([t, e, n, i]) => `cubic-bezier(${t}, ${e}, ${n}, ${i})`, ai = {
2742
2742
  backOut: Qt([0.33, 1.53, 0.69, 0.99])
2743
2743
  };
2744
2744
  function Kc(t) {
2745
- return io(t) || ai.easeOut;
2745
+ return io(t) || oi.easeOut;
2746
2746
  }
2747
2747
  function io(t) {
2748
2748
  if (t)
2749
- return eo(t) ? Qt(t) : Array.isArray(t) ? t.map(Kc) : ai[t];
2749
+ return eo(t) ? Qt(t) : Array.isArray(t) ? t.map(Kc) : oi[t];
2750
2750
  }
2751
2751
  function Gc(t, e, n, { delay: i = 0, duration: s = 300, repeat: o = 0, repeatType: r = "loop", ease: a, times: l } = {}) {
2752
2752
  const c = { [e]: n };
@@ -2766,7 +2766,7 @@ function Yc(t) {
2766
2766
  return t.type === "spring" || !no(t.ease);
2767
2767
  }
2768
2768
  function Xc(t, e) {
2769
- const n = new oi({
2769
+ const n = new ri({
2770
2770
  ...e,
2771
2771
  keyframes: t,
2772
2772
  repeat: 0,
@@ -2785,7 +2785,7 @@ function Xc(t, e) {
2785
2785
  ease: "linear"
2786
2786
  };
2787
2787
  }
2788
- class ss extends $r {
2788
+ class is extends $r {
2789
2789
  constructor(e) {
2790
2790
  super(e);
2791
2791
  const { name: n, motionValue: i, keyframes: s } = this.options;
@@ -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;
@@ -2898,7 +2898,7 @@ class ss extends $r {
2898
2898
  if (n.playState === "idle" || n.playState === "finished")
2899
2899
  return;
2900
2900
  if (this.time) {
2901
- const { motionValue: c, onUpdate: u, onComplete: f, ...d } = this.options, p = new oi({
2901
+ const { motionValue: c, onUpdate: u, onComplete: f, ...d } = this.options, p = new ri({
2902
2902
  ...d,
2903
2903
  keyframes: i,
2904
2904
  duration: s,
@@ -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 L.update(i, !0), () => mt(i);
2939
2939
  }
2940
2940
  const Zc = Wr(() => window.ScrollTimeline !== void 0);
2941
2941
  class Jc {
@@ -3004,10 +3004,10 @@ class Jc {
3004
3004
  this.runAll("complete");
3005
3005
  }
3006
3006
  }
3007
- const li = (t, e, n, i = {}, s, o, r) => (a) => {
3008
- const l = Qn(i, t) || {}, c = l.delay || i.delay || 0;
3007
+ const ai = (t, e, n, i = {}, s, o, r) => (a) => {
3008
+ const l = Jn(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,18 +3028,18 @@ 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 L.update(() => {
3037
3037
  f.onUpdate(p), f.onComplete();
3038
3038
  }), new Jc([]);
3039
3039
  }
3040
- return !o && ss.supports(f) ? new ss(f) : new oi(f);
3040
+ return !o && is.supports(f) ? new is(f) : new ri(f);
3041
3041
  };
3042
- class ci {
3042
+ class li {
3043
3043
  constructor() {
3044
3044
  this.subscriptions = [];
3045
3045
  }
@@ -3064,11 +3064,11 @@ class ci {
3064
3064
  this.subscriptions.length = 0;
3065
3065
  }
3066
3066
  }
3067
- const rs = /* @__PURE__ */ new Set();
3068
- function ui(t, e, n) {
3069
- t || rs.has(e) || (console.warn(e), n && console.warn(n), rs.add(e));
3067
+ const ss = /* @__PURE__ */ new Set();
3068
+ function ci(t, e, n) {
3069
+ t || ss.has(e) || (console.warn(e), n && console.warn(n), ss.add(e));
3070
3070
  }
3071
- const os = 30, Qc = (t) => !isNaN(parseFloat(t));
3071
+ const rs = 30, Qc = (t) => !isNaN(parseFloat(t));
3072
3072
  class so {
3073
3073
  /**
3074
3074
  * @param init - The initiating value
@@ -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;
@@ -3131,13 +3131,13 @@ class so {
3131
3131
  * @deprecated
3132
3132
  */
3133
3133
  onChange(e) {
3134
- return process.env.NODE_ENV !== "production" && ui(!1, 'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'), this.on("change", e);
3134
+ return process.env.NODE_ENV !== "production" && ci(!1, 'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'), this.on("change", e);
3135
3135
  }
3136
3136
  on(e, n) {
3137
- this.events[e] || (this.events[e] = new ci());
3137
+ this.events[e] || (this.events[e] = new li());
3138
3138
  const i = this.events[e].add(n);
3139
3139
  return e === "change" ? () => {
3140
- i(), M.read(() => {
3140
+ i(), L.read(() => {
3141
3141
  this.events.change.getSize() || this.stop();
3142
3142
  });
3143
3143
  } : i;
@@ -3206,10 +3206,10 @@ class so {
3206
3206
  * @public
3207
3207
  */
3208
3208
  getVelocity() {
3209
- const e = Pt.now();
3210
- if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > os)
3209
+ const e = vt.now();
3210
+ if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > rs)
3211
3211
  return 0;
3212
- const n = Math.min(this.updatedAt - this.prevUpdatedAt, os);
3212
+ const n = Math.min(this.updatedAt - this.prevUpdatedAt, rs);
3213
3213
  return Kr(parseFloat(this.current) - parseFloat(this.prevFrameValue), n);
3214
3214
  }
3215
3215
  /**
@@ -3307,7 +3307,7 @@ class nu extends so {
3307
3307
  function iu(t) {
3308
3308
  return !!(Y(t) && t.add);
3309
3309
  }
3310
- function Rn(t, e) {
3310
+ function An(t, e) {
3311
3311
  var n;
3312
3312
  if (!t.applyWillChange)
3313
3313
  return;
@@ -3331,27 +3331,27 @@ function oo(t, e, { delay: n = 0, transitionOverride: i, type: s } = {}) {
3331
3331
  const m = {
3332
3332
  delay: n,
3333
3333
  elapsed: 0,
3334
- ...Qn(r || {}, f)
3334
+ ...Jn(r || {}, f)
3335
3335
  };
3336
3336
  let x = !1;
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, L);
3341
3341
  y !== null && (m.elapsed = y, x = !0);
3342
3342
  }
3343
3343
  }
3344
- d.start(li(f, d, p, t.shouldReduceMotion && Tt.has(f) ? { type: !1 } : m, t, x, Rn(t, f)));
3344
+ d.start(ai(f, d, p, t.shouldReduceMotion && Tt.has(f) ? { type: !1 } : m, t, x, An(t, f)));
3345
3345
  const T = d.animation;
3346
3346
  T && c.push(T);
3347
3347
  }
3348
3348
  return a && Promise.all(c).then(() => {
3349
- M.update(() => {
3349
+ L.update(() => {
3350
3350
  a && eu(t, a);
3351
3351
  });
3352
3352
  }), c;
3353
3353
  }
3354
- function Vn(t, e, n = {}) {
3354
+ function Rn(t, e, n = {}) {
3355
3355
  var i;
3356
3356
  const s = Ge(t, e, n.type === "exit" ? (i = t.presenceContext) === null || i === void 0 ? void 0 : i.custom : void 0);
3357
3357
  let { transition: o = t.getDefaultTransition() || {} } = s || {};
@@ -3369,7 +3369,7 @@ function Vn(t, e, n = {}) {
3369
3369
  function ru(t, e, n = 0, i = 0, s = 1, o) {
3370
3370
  const r = [], a = (t.variantChildren.size - 1) * i, l = s === 1 ? (c = 0) => c * i : (c = 0) => a - c * i;
3371
3371
  return Array.from(t.variantChildren).sort(ou).forEach((c, u) => {
3372
- c.notify("AnimationStart", e), r.push(Vn(c, e, {
3372
+ c.notify("AnimationStart", e), r.push(Rn(c, e, {
3373
3373
  ...o,
3374
3374
  delay: n + l(u)
3375
3375
  }).then(() => c.notify("AnimationComplete", e)));
@@ -3382,10 +3382,10 @@ function au(t, e, n = {}) {
3382
3382
  t.notify("AnimationStart", e);
3383
3383
  let i;
3384
3384
  if (Array.isArray(e)) {
3385
- const s = e.map((o) => Vn(t, o, n));
3385
+ const s = e.map((o) => Rn(t, o, n));
3386
3386
  i = Promise.all(s);
3387
3387
  } else if (typeof e == "string")
3388
- i = Vn(t, e, n);
3388
+ i = Rn(t, e, n);
3389
3389
  else {
3390
3390
  const s = typeof e == "function" ? Ge(t, e, n.custom) : e;
3391
3391
  i = Promise.all(oo(t, s, n));
@@ -3394,12 +3394,12 @@ function au(t, e, n = {}) {
3394
3394
  t.notify("AnimationComplete", e);
3395
3395
  });
3396
3396
  }
3397
- const lu = [...Nn].reverse(), cu = Nn.length;
3397
+ const lu = [...In].reverse(), cu = In.length;
3398
3398
  function uu(t) {
3399
3399
  return (e) => Promise.all(e.map(({ animation: n, options: i }) => au(t, n, i)));
3400
3400
  }
3401
3401
  function fu(t) {
3402
- let e = uu(t), n = as(), i = !0;
3402
+ let e = uu(t), n = os(), i = !0;
3403
3403
  const s = (l) => (c, u) => {
3404
3404
  var f;
3405
3405
  const d = Ge(t, u, l === "exit" ? (f = t.presenceContext) === null || f === void 0 ? void 0 : f.custom : void 0);
@@ -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)
3428
+ P === l && y.isActive && !j && w || // If we removed a higher-priority variant (i is in reverse order)
3429
3429
  T > m && w, W = !1;
3430
3430
  const H = Array.isArray(v) ? v : [v];
3431
3431
  let rt = H.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 = (D) => {
3437
+ R = !0, d.has(D) && (W = !0, d.delete(D)), y.needsAnimating[D] = !0;
3438
+ const U = t.getValue(D);
3439
+ U && (U.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 D in Z) {
3442
+ const U = rt[D], Lt = wt[D];
3443
+ if (p.hasOwnProperty(D))
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
+ vn(U) && vn(Lt) ? Ot = !Rr(U, Lt) : Ot = U !== Lt, Ot ? U != null ? M(D) : d.add(D) : U !== void 0 && d.has(D) ? M(D) : y.protectedKeys[D] = !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 || W) && f.push(...H.map((D) => ({
3449
+ animation: D,
3450
3450
  options: { type: P }
3451
3451
  })));
3452
3452
  }
@@ -3479,7 +3479,7 @@ function fu(t) {
3479
3479
  setAnimateFunction: o,
3480
3480
  getState: () => n,
3481
3481
  reset: () => {
3482
- n = as(), i = !0;
3482
+ n = os(), i = !0;
3483
3483
  }
3484
3484
  };
3485
3485
  }
@@ -3494,7 +3494,7 @@ function Ct(t = !1) {
3494
3494
  prevResolvedValues: {}
3495
3495
  };
3496
3496
  }
3497
- function as() {
3497
+ function os() {
3498
3498
  return {
3499
3499
  animate: Ct(!0),
3500
3500
  whileInView: Ct(),
@@ -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
  }
@@ -3561,9 +3561,9 @@ const gu = {
3561
3561
  exit: {
3562
3562
  Feature: mu
3563
3563
  }
3564
- }, ls = (t, e) => Math.abs(t - e);
3564
+ }, as = (t, e) => Math.abs(t - e);
3565
3565
  function yu(t, e) {
3566
- const n = ls(t.x, e.x), i = ls(t.y, e.y);
3566
+ const n = as(t.x, e.x), i = as(t.y, e.y);
3567
3567
  return Math.sqrt(n ** 2 + i ** 2);
3568
3568
  }
3569
3569
  class ao {
@@ -3579,7 +3579,7 @@ class ao {
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), L.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,32 +3587,32 @@ 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
3593
  const r = Ke(e), a = un(r, this.transformPagePoint), { point: l } = a, { timestamp: c } = $;
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) {
3606
3606
  return e ? { point: e(t.point) } : t;
3607
3607
  }
3608
- function cs(t, e) {
3608
+ function ls(t, e) {
3609
3609
  return { x: t.x - e.x, y: t.y - e.y };
3610
3610
  }
3611
3611
  function fn({ point: t }, e) {
3612
3612
  return {
3613
3613
  point: t,
3614
- delta: cs(t, lo(e)),
3615
- offset: cs(t, vu(e)),
3614
+ delta: ls(t, lo(e)),
3615
+ offset: ls(t, vu(e)),
3616
3616
  velocity: Pu(e, 0.1)
3617
3617
  };
3618
3618
  }
@@ -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,35 +3640,35 @@ 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
  }
3647
3647
  function Su(t, e, n) {
3648
3648
  return Math.abs(t - e) <= n;
3649
3649
  }
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);
3650
+ function cs(t, e, n, i = 0.5) {
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
- us(t.x, e.x, n.x, i ? i.originX : void 0), us(t.y, e.y, n.y, i ? i.originY : void 0);
3654
+ cs(t.x, e.x, n.x, i ? i.originX : void 0), cs(t.y, e.y, n.y, i ? i.originY : void 0);
3655
3655
  }
3656
- function fs(t, e, n) {
3656
+ function us(t, e, n) {
3657
3657
  t.min = n.min + e.min, t.max = t.min + Q(e);
3658
3658
  }
3659
3659
  function Cu(t, e, n) {
3660
- fs(t.x, e.x, n.x), fs(t.y, e.y, n.y);
3660
+ us(t.x, e.x, n.x), us(t.y, e.y, n.y);
3661
3661
  }
3662
- function hs(t, e, n) {
3662
+ function fs(t, e, n) {
3663
3663
  t.min = e.min - n.min, t.max = t.min + Q(e);
3664
3664
  }
3665
3665
  function se(t, e, n) {
3666
- hs(t.x, e.x, n.x), hs(t.y, e.y, n.y);
3666
+ fs(t.x, e.x, n.x), fs(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
- function ds(t, e, n) {
3671
+ function hs(t, e, n) {
3672
3672
  return {
3673
3673
  min: e !== void 0 ? t.min + e : void 0,
3674
3674
  max: n !== void 0 ? t.max + n - (t.max - t.min) : void 0
@@ -3676,58 +3676,58 @@ function ds(t, e, n) {
3676
3676
  }
3677
3677
  function Ru(t, { top: e, left: n, bottom: i, right: s }) {
3678
3678
  return {
3679
- x: ds(t.x, n, s),
3680
- y: ds(t.y, e, i)
3679
+ x: hs(t.x, n, s),
3680
+ y: hs(t.y, e, i)
3681
3681
  };
3682
3682
  }
3683
- function ps(t, e) {
3683
+ function ds(t, e) {
3684
3684
  let n = e.min - t.min, i = e.max - t.max;
3685
3685
  return e.max - e.min < t.max - t.min && ([n, i] = [i, n]), { min: n, max: i };
3686
3686
  }
3687
3687
  function Vu(t, e) {
3688
3688
  return {
3689
- x: ps(t.x, e.x),
3690
- y: ps(t.y, e.y)
3689
+ x: ds(t.x, e.x),
3690
+ y: ds(t.y, e.y)
3691
3691
  };
3692
3692
  }
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 = {};
3700
3700
  return e.min !== void 0 && (n.min = e.min - t.min), e.max !== void 0 && (n.max = e.max - t.min), n;
3701
3701
  }
3702
- const En = 0.35;
3703
- function Mu(t = En) {
3704
- return t === !1 ? t = 0 : t === !0 && (t = En), {
3705
- x: ms(t, "left", "right"),
3706
- y: ms(t, "top", "bottom")
3702
+ const Vn = 0.35;
3703
+ function Mu(t = Vn) {
3704
+ return t === !1 ? t = 0 : t === !0 && (t = Vn), {
3705
+ x: ps(t, "left", "right"),
3706
+ y: ps(t, "top", "bottom")
3707
3707
  };
3708
3708
  }
3709
- function ms(t, e, n) {
3709
+ function ps(t, e, n) {
3710
3710
  return {
3711
- min: gs(t, e),
3712
- max: gs(t, n)
3711
+ min: ms(t, e),
3712
+ max: ms(t, n)
3713
3713
  };
3714
3714
  }
3715
- function gs(t, e) {
3715
+ function ms(t, e) {
3716
3716
  return typeof t == "number" ? t : t[e] || 0;
3717
3717
  }
3718
- const ys = () => ({
3718
+ const gs = () => ({
3719
3719
  translate: 0,
3720
3720
  scale: 1,
3721
3721
  origin: 0,
3722
3722
  originPoint: 0
3723
3723
  }), Nt = () => ({
3724
+ x: gs(),
3725
+ y: gs()
3726
+ }), ys = () => ({ min: 0, max: 0 }), I = () => ({
3724
3727
  x: ys(),
3725
3728
  y: ys()
3726
- }), vs = () => ({ min: 0, max: 0 }), B = () => ({
3727
- x: vs(),
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 }) {
@@ -3753,32 +3753,32 @@ function Lu(t, e) {
3753
3753
  function hn(t) {
3754
3754
  return t === void 0 || t === 1;
3755
3755
  }
3756
- function Dn({ scale: t, scaleX: e, scaleY: n }) {
3756
+ function En({ scale: t, scaleX: e, scaleY: n }) {
3757
3757
  return !hn(t) || !hn(e) || !hn(n);
3758
3758
  }
3759
3759
  function At(t) {
3760
- return Dn(t) || ho(t) || t.z || t.rotate || t.rotateX || t.rotateY || t.skewX || t.skewY;
3760
+ return En(t) || ho(t) || t.z || t.rotate || t.rotateX || t.rotateY || t.skewX || t.skewY;
3761
3761
  }
3762
3762
  function ho(t) {
3763
- return Ps(t.x) || Ps(t.y);
3763
+ return vs(t.x) || vs(t.y);
3764
3764
  }
3765
- function Ps(t) {
3765
+ function vs(t) {
3766
3766
  return t && t !== "0%";
3767
3767
  }
3768
3768
  function _e(t, e, n) {
3769
3769
  const i = t - n, s = e * i;
3770
3770
  return n + s;
3771
3771
  }
3772
- function xs(t, e, n, i, s) {
3772
+ function Ps(t, e, n, i, s) {
3773
3773
  return s !== void 0 && (t = _e(t, s, i)), _e(t, n, i) + e;
3774
3774
  }
3775
- function Mn(t, e = 0, n = 1, i, s) {
3776
- t.min = xs(t.min, e, n, i, s), t.max = xs(t.max, e, n, i, s);
3775
+ function Dn(t, e = 0, n = 1, i, s) {
3776
+ t.min = Ps(t.min, e, n, i, s), t.max = Ps(t.max, e, n, i, s);
3777
3777
  }
3778
3778
  function po(t, { x: e, y: n }) {
3779
- Mn(t.x, e.translate, e.scale, e.originPoint), Mn(t.y, n.translate, n.scale, n.originPoint);
3779
+ Dn(t.x, e.translate, e.scale, e.originPoint), Dn(t.y, n.translate, n.scale, n.originPoint);
3780
3780
  }
3781
- const bs = 0.999999999999, Ts = 1.0000000000001;
3781
+ const xs = 0.999999999999, Ts = 1.0000000000001;
3782
3782
  function Ou(t, e, n, i = !1) {
3783
3783
  const s = n.length;
3784
3784
  if (!s)
@@ -3793,17 +3793,17 @@ 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 < Ts && e.x > xs && (e.x = 1), e.y < Ts && e.y > xs && (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
- function ws(t, e, n, i, s = 0.5) {
3802
- const o = j(t.min, t.max, s);
3803
- Mn(t, e, n, o, i);
3801
+ function bs(t, e, n, i, s = 0.5) {
3802
+ const o = F(t.min, t.max, s);
3803
+ Dn(t, e, n, o, i);
3804
3804
  }
3805
3805
  function Wt(t, e) {
3806
- ws(t.x, e.x, e.scaleX, e.scale, e.originX), ws(t.y, e.y, e.scaleY, e.scale, e.originY);
3806
+ bs(t.x, e.x, e.scaleX, e.scale, e.originX), bs(t.y, e.y, e.scaleY, e.scale, e.originY);
3807
3807
  }
3808
3808
  function mo(t, e) {
3809
3809
  return fo(Lu(t.getBoundingClientRect(), e));
@@ -3815,7 +3815,7 @@ function ju(t, e, n) {
3815
3815
  const go = ({ current: t }) => t ? t.ownerDocument.defaultView : null, Fu = /* @__PURE__ */ new WeakMap();
3816
3816
  class _u {
3817
3817
  constructor(e) {
3818
- this.openGlobalLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = { x: 0, y: 0 }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = B(), this.visualElement = e;
3818
+ this.openGlobalLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = { x: 0, y: 0 }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = I(), this.visualElement = e;
3819
3819
  }
3820
3820
  start(e, { snapToCursor: n = !1 } = {}) {
3821
3821
  const { presenceContext: i } = this.visualElement;
@@ -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 && L.postRender(() => x(u, f)), (d = this.removeWillChange) === null || d === void 0 || d.call(this), this.removeWillChange = An(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 && L.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] || {};
@@ -3941,13 +3941,13 @@ class _u {
3941
3941
  }
3942
3942
  startAxisValueAnimation(e, n) {
3943
3943
  const i = this.getAxisMotionValue(e);
3944
- return i.start(li(e, i, 0, n, this.visualElement, !1, Rn(this.visualElement, e)));
3944
+ return i.start(ai(e, i, 0, n, this.visualElement, !1, An(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()), L.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());
@@ -4029,7 +4029,7 @@ class _u {
4029
4029
  };
4030
4030
  }
4031
4031
  getProps() {
4032
- const e = this.visualElement.getProps(), { drag: n = !1, dragDirectionLock: i = !1, dragPropagation: s = !1, dragConstraints: o = !1, dragElastic: r = En, dragMomentum: a = !0 } = e;
4032
+ const e = this.visualElement.getProps(), { drag: n = !1, dragDirectionLock: i = !1, dragPropagation: s = !1, dragConstraints: o = !1, dragElastic: r = Vn, dragMomentum: a = !0 } = e;
4033
4033
  return {
4034
4034
  ...e,
4035
4035
  drag: n,
@@ -4048,7 +4048,7 @@ 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
4053
  super(e), this.removeGroupControls = G, this.removeListeners = G, this.controls = new _u(e);
4054
4054
  }
@@ -4060,10 +4060,10 @@ class Iu extends wt {
4060
4060
  this.removeGroupControls(), this.removeListeners();
4061
4061
  }
4062
4062
  }
4063
- const Ss = (t) => (e, n) => {
4064
- t && M.postRender(() => t(e, n));
4063
+ const ws = (t) => (e, n) => {
4064
+ t && L.postRender(() => t(e, n));
4065
4065
  };
4066
- class Nu extends wt {
4066
+ class Nu extends bt {
4067
4067
  constructor() {
4068
4068
  super(...arguments), this.removePointerDownListener = G;
4069
4069
  }
@@ -4076,16 +4076,16 @@ class Nu extends wt {
4076
4076
  createPanHandlers() {
4077
4077
  const { onPanSessionStart: e, onPanStart: n, onPan: i, onPanEnd: s } = this.node.getProps();
4078
4078
  return {
4079
- onSessionStart: Ss(e),
4080
- onStart: Ss(n),
4079
+ onSessionStart: ws(e),
4080
+ onStart: ws(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 && L.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());
@@ -4098,9 +4098,9 @@ function Uu() {
4098
4098
  const t = K(Ie);
4099
4099
  if (t === null)
4100
4100
  return [!0, null];
4101
- const { isPresent: e, onExitComplete: n, register: i } = t, s = jn();
4102
- ut(() => i(s), []);
4103
- const o = ot(() => n && n(s), [s, n]);
4101
+ const { isPresent: e, onExitComplete: n, register: i } = t, s = On();
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 = {
@@ -4115,7 +4115,7 @@ const Ee = {
4115
4115
  */
4116
4116
  hasEverUpdated: !1
4117
4117
  };
4118
- function Cs(t, e) {
4118
+ function Ss(t, e) {
4119
4119
  return e.max === e.min ? 0 : t / (e.max - e.min) * 100;
4120
4120
  }
4121
4121
  const Zt = {
@@ -4127,17 +4127,17 @@ const Zt = {
4127
4127
  t = parseFloat(t);
4128
4128
  else
4129
4129
  return t;
4130
- const n = Cs(t, e.target.x), i = Cs(t, e.target.y);
4130
+ const n = Ss(t, e.target.x), i = Ss(t, e.target.y);
4131
4131
  return `${n}% ${i}%`;
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,14 +4158,14 @@ 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() || L.postRender(() => {
4162
4162
  const a = r.getStack();
4163
4163
  (!a || !a.members.length) && this.safeToRemove();
4164
4164
  }))), null;
4165
4165
  }
4166
4166
  componentDidUpdate() {
4167
4167
  const { projection: e } = this.props.visualElement;
4168
- e && (e.root.didUpdate(), In.postRender(() => {
4168
+ e && (e.root.didUpdate(), Bn.postRender(() => {
4169
4169
  !e.currentAnimation && e.isLead() && this.safeToRemove();
4170
4170
  }));
4171
4171
  }
@@ -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 = K(Un);
4186
+ return _.jsx($u, { ...t, layoutGroup: i, switchLayoutGroup: K(rr), isPresent: e, safeToRemove: n });
4187
4187
  }
4188
4188
  const Ku = {
4189
4189
  borderRadius: {
@@ -4200,77 +4200,77 @@ const Ku = {
4200
4200
  borderBottomLeftRadius: Zt,
4201
4201
  borderBottomRightRadius: Zt,
4202
4202
  boxShadow: Wu
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);
4203
+ }, vo = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], Gu = vo.length, Cs = (t) => typeof t == "string" ? parseFloat(t) : t, As = (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
- let l = Vs(e, a), c = Vs(n, a);
4213
+ let l = Rs(e, a), c = Rs(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 || As(l) === As(c) ? (t[a] = Math.max(F(Cs(l), Cs(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
- function Vs(t, e) {
4220
+ function Rs(t, e) {
4221
4221
  return t[e] !== void 0 ? t[e] : t.borderRadius;
4222
4222
  }
4223
4223
  const zu = Po(0, 0.5, Zr), Yu = Po(0.5, 0.95, G);
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
- function Es(t, e) {
4227
+ function Vs(t, e) {
4228
4228
  t.min = e.min, t.max = e.max;
4229
4229
  }
4230
- function nt(t, e) {
4231
- Es(t.x, e.x), Es(t.y, e.y);
4230
+ function et(t, e) {
4231
+ Vs(t.x, e.x), Vs(t.y, e.y);
4232
4232
  }
4233
- function Ds(t, e) {
4233
+ function Es(t, e) {
4234
4234
  t.translate = e.translate, t.scale = e.scale, t.originPoint = e.originPoint, t.origin = e.origin;
4235
4235
  }
4236
- function Ms(t, e, n, i, s) {
4236
+ function Ds(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);
4243
- t === o && (a -= e), t.min = Ms(t.min, e, n, a, s), t.max = Ms(t.max, e, n, a, s);
4242
+ let a = F(o.min, o.max, i);
4243
+ t === o && (a -= e), t.min = Ds(t.min, e, n, a, s), t.max = Ds(t.max, e, n, a, s);
4244
4244
  }
4245
- function ks(t, e, [n, i, s], o, r) {
4245
+ function Ms(t, e, [n, i, s], o, r) {
4246
4246
  Xu(t, e[n], e[i], e[s], e.scale, o, r);
4247
4247
  }
4248
4248
  const qu = ["x", "scaleX", "originX"], Zu = ["y", "scaleY", "originY"];
4249
- function Ls(t, e, n, i) {
4250
- ks(t.x, e, qu, n ? n.x : void 0, i ? i.x : void 0), ks(t.y, e, Zu, n ? n.y : void 0, i ? i.y : void 0);
4249
+ function ks(t, e, n, i) {
4250
+ Ms(t.x, e, qu, n ? n.x : void 0, i ? i.x : void 0), Ms(t.y, e, Zu, n ? n.y : void 0, i ? i.y : void 0);
4251
4251
  }
4252
- function Os(t) {
4252
+ function Ls(t) {
4253
4253
  return t.translate === 0 && t.scale === 1;
4254
4254
  }
4255
4255
  function xo(t) {
4256
- return Os(t.x) && Os(t.y);
4256
+ return Ls(t.x) && Ls(t.y);
4257
4257
  }
4258
- function js(t, e) {
4258
+ function Os(t, e) {
4259
4259
  return t.min === e.min && t.max === e.max;
4260
4260
  }
4261
4261
  function Ju(t, e) {
4262
- return js(t.x, e.x) && js(t.y, e.y);
4262
+ return Os(t.x, e.x) && Os(t.y, e.y);
4263
4263
  }
4264
- function Fs(t, e) {
4264
+ function js(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) {
4268
- return Fs(t.x, e.x) && Fs(t.y, e.y);
4267
+ function To(t, e) {
4268
+ return js(t.x, e.x) && js(t.y, e.y);
4269
4269
  }
4270
- function _s(t) {
4270
+ function Fs(t) {
4271
4271
  return Q(t.x) / Q(t.y);
4272
4272
  }
4273
- function Bs(t, e) {
4273
+ function _s(t, e) {
4274
4274
  return t.translate === e.translate && t.scale === e.scale && t.originPoint === e.originPoint;
4275
4275
  }
4276
4276
  class Qu {
@@ -4353,35 +4353,35 @@ 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 L.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
4366
  const i = Y(t) ? t : ue(t);
4367
- return i.start(li("", i, e, n)), i.animation;
4367
+ return i.start(ai("", i, e, n)), i.animation;
4368
4368
  }
4369
4369
  const Rt = {
4370
4370
  type: "projectionFrame",
4371
4371
  totalNodes: 0,
4372
4372
  resolvedTargetDeltas: 0,
4373
4373
  recalculatedProjection: 0
4374
- }, te = typeof window < "u" && window.MotionDebug !== void 0, dn = ["", "X", "Y", "Z"], af = { visibility: "hidden" }, Is = 1e3;
4374
+ }, te = typeof window < "u" && window.MotionDebug !== void 0, dn = ["", "X", "Y", "Z"], af = { visibility: "hidden" }, Bs = 1e3;
4375
4375
  let lf = 0;
4376
4376
  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 {
@@ -4396,7 +4396,7 @@ function wo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4396
4396
  this.root === this && (this.nodes = new nf());
4397
4397
  }
4398
4398
  addEventListener(r, a) {
4399
- return this.eventHandlers.has(r) || this.eventHandlers.set(r, new ci()), this.eventHandlers.get(r).add(a);
4399
+ return this.eventHandlers.has(r) || this.eventHandlers.set(r, new li()), this.eventHandlers.get(r).add(a);
4400
4400
  }
4401
4401
  notifyListeners(r, ...a) {
4402
4402
  const l = this.eventHandlers.get(r);
@@ -4417,7 +4417,7 @@ function wo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4417
4417
  let f;
4418
4418
  const d = () => this.root.updateBlockedByResize = !1;
4419
4419
  t(r, () => {
4420
- this.root.updateBlockedByResize = !0, f && f(), f = sf(d, 250), Ee.hasAnimatedSinceResize && (Ee.hasAnimatedSinceResize = !1, this.nodes.forEach(Us));
4420
+ this.root.updateBlockedByResize = !0, f && f(), f = sf(d, 250), Ee.hasAnimatedSinceResize && (Ee.hasAnimatedSinceResize = !1, this.nodes.forEach(Ns));
4421
4421
  });
4422
4422
  }
4423
4423
  l && this.root.registerSharedNode(l, this), this.options.animate !== !1 && u && (l || c) && this.addEventListener("didUpdate", ({ delta: f, hasLayoutChanged: d, hasRelativeTargetChanged: p, layout: m }) => {
@@ -4425,24 +4425,24 @@ 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 = {
4432
- ...Qn(x, "layout"),
4432
+ ...Jn(x, "layout"),
4433
4433
  onPlay: T,
4434
4434
  onComplete: P
4435
4435
  };
4436
4436
  (u.shouldReduceMotion || this.options.layoutRoot) && (w.delay = 0, w.type = !1), this.startAnimation(w);
4437
4437
  } else
4438
- d || Us(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
4438
+ d || Ns(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
4439
4439
  this.targetLayout = m;
4440
4440
  });
4441
4441
  }
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++) {
@@ -4485,24 +4485,24 @@ function wo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4485
4485
  }
4486
4486
  update() {
4487
4487
  if (this.updateScheduled = !1, this.isUpdateBlocked()) {
4488
- this.unblockUpdate(), this.clearAllSnapshots(), this.nodes.forEach(Ns);
4488
+ this.unblockUpdate(), this.clearAllSnapshots(), this.nodes.forEach(Is);
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
+ $.delta = Pt(0, 1e3 / 60, a - $.timestamp), $.timestamp = a, $.isProcessing = !0, nn.update.process($), nn.preRender.process($), nn.render.process($), $.isProcessing = !1;
4494
4494
  }
4495
4495
  didUpdate() {
4496
- this.updateScheduled || (this.updateScheduled = !0, In.read(this.scheduleUpdate));
4496
+ this.updateScheduled || (this.updateScheduled = !0, Bn.read(this.scheduleUpdate));
4497
4497
  }
4498
4498
  clearAllSnapshots() {
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, L.preRender(this.updateProjection, !1, !0));
4503
4503
  }
4504
4504
  scheduleCheckAfterUnmount() {
4505
- M.postRender(() => {
4505
+ L.postRender(() => {
4506
4506
  this.isLayoutDirty ? this.root.didUpdate() : this.root.checkUpdateFailed();
4507
4507
  });
4508
4508
  }
@@ -4519,7 +4519,7 @@ function wo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4519
4519
  for (let l = 0; l < this.path.length; l++)
4520
4520
  this.path[l].updateScroll();
4521
4521
  const r = this.layout;
4522
- this.layout = this.measure(!1), this.layoutCorrected = B(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
4522
+ this.layout = this.measure(!1), this.layoutCorrected = I(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
4523
4523
  const { visualElement: a } = this.options;
4524
4524
  a && a.notify("LayoutMeasure", this.layout.layoutBox, r ? r.layoutBox : void 0);
4525
4525
  }
@@ -4557,7 +4557,7 @@ function wo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4557
4557
  var r;
4558
4558
  const { visualElement: a } = this.options;
4559
4559
  if (!a)
4560
- return B();
4560
+ return I();
4561
4561
  const l = a.measureViewportBox();
4562
4562
  if (!(((r = this.scroll) === null || r === void 0 ? void 0 : r.wasRoot) || this.path.some(Sf))) {
4563
4563
  const { scroll: u } = this.root;
@@ -4567,18 +4567,18 @@ function wo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4567
4567
  }
4568
4568
  removeElementScroll(r) {
4569
4569
  var a;
4570
- const l = B();
4571
- if (nt(l, r), !((a = this.scroll) === null || a === void 0) && a.wasRoot)
4570
+ const l = I();
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
- const l = B();
4581
- nt(l, r);
4580
+ const l = I();
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, {
@@ -4589,17 +4589,17 @@ function wo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4589
4589
  return At(this.latestValues) && Wt(l, this.latestValues), l;
4590
4590
  }
4591
4591
  removeTransform(r) {
4592
- const a = B();
4593
- nt(a, r);
4592
+ const a = I();
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
- Dn(c.latestValues) && c.updateSnapshot();
4599
- const u = B(), f = c.measurePageBox();
4600
- nt(u, f), Ls(a, c.latestValues, c.snapshot ? c.snapshot.layoutBox : void 0, u);
4598
+ En(c.latestValues) && c.updateSnapshot();
4599
+ const u = I(), f = c.measurePageBox();
4600
+ et(u, f), ks(a, c.latestValues, c.snapshot ? c.snapshot.layoutBox : void 0, u);
4601
4601
  }
4602
- return At(this.latestValues) && Ls(a, this.latestValues), a;
4602
+ return At(this.latestValues) && ks(a, this.latestValues), a;
4603
4603
  }
4604
4604
  setTargetDelta(r) {
4605
4605
  this.targetDelta = r, this.root.scheduleUpdateProjection(), this.isProjectionDirty = !0;
@@ -4628,20 +4628,20 @@ function wo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4628
4628
  if (!(!this.layout || !(f || d))) {
4629
4629
  if (this.resolvedRelativeTargetAt = $.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 = I(), this.relativeTargetOrigin = I(), 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 = I(), this.targetWithTransforms = I()), 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 = I(), this.relativeTargetOrigin = I(), 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
  }
4641
4641
  }
4642
4642
  }
4643
4643
  getClosestProjectingParent() {
4644
- if (!(!this.parent || Dn(this.parent.latestValues) || ho(this.parent.latestValues)))
4644
+ if (!(!this.parent || En(this.parent.latestValues) || ho(this.parent.latestValues)))
4645
4645
  return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();
4646
4646
  }
4647
4647
  isProjecting() {
@@ -4656,15 +4656,15 @@ function wo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
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
- 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());
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 = I());
4662
4662
  const { target: m } = a;
4663
4663
  if (!m) {
4664
4664
  this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
4665
4665
  return;
4666
4666
  }
4667
- !this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (Ds(this.prevProjectionDelta.x, this.projectionDelta.x), Ds(this.prevProjectionDelta.y, this.projectionDelta.y)), ie(this.projectionDelta, this.layoutCorrected, m, this.latestValues), (this.treeScale.x !== d || this.treeScale.y !== p || !Bs(this.projectionDelta.x, this.prevProjectionDelta.x) || !Bs(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", m)), te && Rt.recalculatedProjection++;
4667
+ !this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (Es(this.prevProjectionDelta.x, this.projectionDelta.x), Es(this.prevProjectionDelta.y, this.projectionDelta.y)), ie(this.projectionDelta, this.layoutCorrected, m, this.latestValues), (this.treeScale.x !== d || this.treeScale.y !== p || !_s(this.projectionDelta.x, this.prevProjectionDelta.x) || !_s(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", m)), te && Rt.recalculatedProjection++;
4668
4668
  }
4669
4669
  hide() {
4670
4670
  this.isVisible = !1;
@@ -4686,17 +4686,17 @@ 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 = I(), 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
+ Us(f.x, r.x, A), Us(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 = I()), 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(() => {
4699
- Ee.hasAnimatedSinceResize = !0, this.currentAnimation = of(0, Is, {
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 = L.update(() => {
4699
+ Ee.hasAnimatedSinceResize = !0, this.currentAnimation = of(0, Bs, {
4700
4700
  ...r,
4701
4701
  onUpdate: (a) => {
4702
4702
  this.mixTargetDelta(a), r.onUpdate && r.onUpdate(a);
@@ -4713,20 +4713,20 @@ function wo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4713
4713
  r && r.exitAnimationComplete(), this.resumingFrom = this.currentAnimation = this.animationValues = void 0, this.notifyListeners("animationComplete");
4714
4714
  }
4715
4715
  finishAnimation() {
4716
- this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(Is), this.currentAnimation.stop()), this.completeAnimation();
4716
+ this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(Bs), this.currentAnimation.stop()), this.completeAnimation();
4717
4717
  }
4718
4718
  applyTransformsToTarget() {
4719
4719
  const r = this.getLead();
4720
4720
  let { targetWithTransforms: a, target: l, layout: c, latestValues: u } = r;
4721
4721
  if (!(!a || !l || !c)) {
4722
4722
  if (this !== r && this.layout && c && So(this.options.animationType, this.layout.layoutBox, c.layoutBox)) {
4723
- l = this.target || B();
4723
+ l = this.target || I();
4724
4724
  const f = Q(this.layout.layoutBox.x);
4725
4725
  l.x.min = r.target.x.min, l.x.max = l.x.min + f;
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) {
@@ -4822,7 +4822,7 @@ function wo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4822
4822
  this.root.nodes.forEach((r) => {
4823
4823
  var a;
4824
4824
  return (a = r.currentAnimation) === null || a === void 0 ? void 0 : a.stop();
4825
- }), this.root.nodes.forEach(Ns), this.root.sharedNodes.clear();
4825
+ }), this.root.nodes.forEach(Is), this.root.sharedNodes.clear();
4826
4826
  }
4827
4827
  };
4828
4828
  }
@@ -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
  });
@@ -4852,10 +4852,10 @@ function uf(t) {
4852
4852
  if (f && !f.resumeFrom) {
4853
4853
  const { snapshot: d, layout: p } = f;
4854
4854
  if (d && p) {
4855
- const m = B();
4855
+ const m = I();
4856
4856
  se(m, n.layoutBox, d.layoutBox);
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);
4857
+ const x = I();
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
  }
@@ -4882,7 +4882,7 @@ function hf(t) {
4882
4882
  function df(t) {
4883
4883
  t.clearSnapshot();
4884
4884
  }
4885
- function Ns(t) {
4885
+ function Is(t) {
4886
4886
  t.clearMeasurements();
4887
4887
  }
4888
4888
  function pf(t) {
@@ -4892,7 +4892,7 @@ function mf(t) {
4892
4892
  const { visualElement: e } = t.options;
4893
4893
  e && e.getProps().onBeforeLayoutMeasure && e.notify("BeforeLayoutMeasure"), t.resetTransform();
4894
4894
  }
4895
- function Us(t) {
4895
+ function Ns(t) {
4896
4896
  t.finishAnimation(), t.targetDelta = t.relativeTarget = t.target = void 0, t.isProjectionDirty = !0;
4897
4897
  }
4898
4898
  function gf(t) {
@@ -4907,37 +4907,37 @@ function vf(t) {
4907
4907
  function Pf(t) {
4908
4908
  t.removeLeadSnapshot();
4909
4909
  }
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;
4910
+ function Us(t, e, n) {
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
- function $s(t, e, n, i) {
4914
- t.min = j(e.min, n.min, i), t.max = j(e.max, n.max, i);
4913
+ function Ws(t, e, n, 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
- $s(t.x, e.x, n.x, i), $s(t.y, e.y, n.y, i);
4917
+ Ws(t.x, e.x, n.x, i), Ws(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;
4926
- function Hs(t) {
4927
- t.min = Gs(t.min), t.max = Gs(t.max);
4925
+ }, $s = (t) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(t), Ks = $s("applewebkit/") && !$s("chrome/") ? Math.round : G;
4926
+ function Gs(t) {
4927
+ t.min = Ks(t.min), t.max = Ks(t.max);
4928
4928
  }
4929
4929
  function wf(t) {
4930
- Hs(t.x), Hs(t.y);
4930
+ Gs(t.x), Gs(t.y);
4931
4931
  }
4932
4932
  function So(t, e, n) {
4933
- return t === "position" || t === "preserve-aspect" && !Su(_s(e), _s(n), 0.2);
4933
+ return t === "position" || t === "preserve-aspect" && !Su(Fs(e), Fs(n), 0.2);
4934
4934
  }
4935
4935
  function Sf(t) {
4936
4936
  var e;
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
@@ -4970,20 +4970,20 @@ const Cf = wo({
4970
4970
  ProjectionNode: Co,
4971
4971
  MeasureLayout: yo
4972
4972
  }
4973
- }, kn = { current: null }, Ao = { current: !1 };
4973
+ }, Mn = { current: null }, Ao = { current: !1 };
4974
4974
  function Rf() {
4975
- if (Ao.current = !0, !!Bn)
4975
+ if (Ao.current = !0, !!_n)
4976
4976
  if (window.matchMedia) {
4977
- const t = window.matchMedia("(prefers-reduced-motion)"), e = () => kn.current = t.matches;
4977
+ const t = window.matchMedia("(prefers-reduced-motion)"), e = () => Mn.current = t.matches;
4978
4978
  t.addListener(e), e();
4979
4979
  } else
4980
- kn.current = !1;
4980
+ Mn.current = !1;
4981
4981
  }
4982
4982
  function Vf(t, e, n) {
4983
4983
  for (const i in e) {
4984
4984
  const s = e[i], o = n[i];
4985
4985
  if (Y(s))
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.`);
4986
+ t.addValue(i, s), process.env.NODE_ENV === "development" && ci(s.version === "11.3.19", `Attempting to mix Framer Motion versions ${s.version} with 11.3.19 may not work as expected.`);
4987
4987
  else if (Y(o))
4988
4988
  t.addValue(i, ue(s, { owner: t }));
4989
4989
  else if (o !== s)
@@ -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 Hs = /* @__PURE__ */ new WeakMap(), Ef = [...kr, z, xt], Df = (t) => Ef.find(Mr(t)), zs = [
5003
5003
  "AnimationStart",
5004
5004
  "AnimationComplete",
5005
5005
  "Update",
@@ -5007,7 +5007,7 @@ const zs = /* @__PURE__ */ new WeakMap(), Ef = [...kr, z, bt], Df = (t) => Ef.fi
5007
5007
  "LayoutMeasure",
5008
5008
  "LayoutAnimationStart",
5009
5009
  "LayoutAnimationComplete"
5010
- ], Mf = Un.length;
5010
+ ], Mf = Nn.length;
5011
5011
  class kf {
5012
5012
  /**
5013
5013
  * This method takes React props and returns found MotionValues. For example, HTML
@@ -5020,10 +5020,10 @@ class kf {
5020
5020
  return {};
5021
5021
  }
5022
5022
  constructor({ parent: e, props: n, presenceContext: i, reducedMotionConfig: s, blockInitialAnimation: o, visualState: r }, a = {}) {
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 = () => {
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 = Qn, 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, L.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);
@@ -5034,10 +5034,10 @@ class kf {
5034
5034
  }
5035
5035
  }
5036
5036
  mount(e) {
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);
5037
+ this.current = e, Hs.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 : Mn.current, process.env.NODE_ENV !== "production" && ci(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
+ Hs.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 && L.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();
@@ -5079,7 +5079,7 @@ class kf {
5079
5079
  * removed with a re-render to work.
5080
5080
  */
5081
5081
  measureViewportBox() {
5082
- return this.current ? this.measureInstanceViewportBox(this.current, this.props) : B();
5082
+ return this.current ? this.measureInstanceViewportBox(this.current, this.props) : I();
5083
5083
  }
5084
5084
  getStaticValue(e) {
5085
5085
  return this.latestValues[e];
@@ -5093,8 +5093,8 @@ class kf {
5093
5093
  */
5094
5094
  update(e, n) {
5095
5095
  (e.transformTemplate || this.props.transformTemplate) && this.scheduleRender(), this.prevProps = this.props, this.props = e, this.prevPresenceContext = this.presenceContext, this.presenceContext = n;
5096
- for (let i = 0; i < Ys.length; i++) {
5097
- const s = Ys[i];
5096
+ for (let i = 0; i < zs.length; i++) {
5097
+ const s = zs[i];
5098
5098
  this.propEventSubscriptions[s] && (this.propEventSubscriptions[s](), delete this.propEventSubscriptions[s]);
5099
5099
  const o = "on" + s, r = e[o];
5100
5100
  r && (this.propEventSubscriptions[s] = this.on(s, r));
@@ -5131,7 +5131,7 @@ class kf {
5131
5131
  }
5132
5132
  const n = {};
5133
5133
  for (let i = 0; i < Mf; i++) {
5134
- const s = Un[i], o = this.props[s];
5134
+ const s = Nn[i], o = this.props[s];
5135
5135
  (oe(o) || o === !1) && (n[s] = o);
5136
5136
  }
5137
5137
  return n;
@@ -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, Y(s) ? s.get() : s)), Y(s) ? s.get() : s;
5183
5183
  }
5184
5184
  /**
5185
5185
  * Set the base target to later animate back to. This is currently
@@ -5197,7 +5197,7 @@ class kf {
5197
5197
  const { initial: i } = this.props;
5198
5198
  let s;
5199
5199
  if (typeof i == "string" || typeof i == "object") {
5200
- const r = Zn(this.props, i, (n = this.presenceContext) === null || n === void 0 ? void 0 : n.custom);
5200
+ const r = qn(this.props, i, (n = this.presenceContext) === null || n === void 0 ? void 0 : n.custom);
5201
5201
  r && (s = r[e]);
5202
5202
  }
5203
5203
  if (i && s !== void 0)
@@ -5206,7 +5206,7 @@ class kf {
5206
5206
  return o !== void 0 && !Y(o) ? o : this.initialValues[e] !== void 0 && s === void 0 ? void 0 : this.baseTarget[e];
5207
5207
  }
5208
5208
  on(e, n) {
5209
- return this.events[e] || (this.events[e] = new ci()), this.events[e].add(n);
5209
+ return this.events[e] || (this.events[e] = new li()), this.events[e].add(n);
5210
5210
  }
5211
5211
  notify(e, ...n) {
5212
5212
  this.events[e] && this.events[e].notify(...n);
@@ -5235,7 +5235,7 @@ class Of extends Ro {
5235
5235
  }
5236
5236
  readValueFromInstance(e, n) {
5237
5237
  if (Tt.has(n)) {
5238
- const i = ni(n);
5238
+ const i = ei(n);
5239
5239
  return i && i.default || 0;
5240
5240
  } else {
5241
5241
  const i = Lf(e), s = (ur(n) ? i.getPropertyValue(n) : i[n]) || 0;
@@ -5246,10 +5246,10 @@ class Of extends Ro {
5246
5246
  return mo(e, n);
5247
5247
  }
5248
5248
  build(e, n, i) {
5249
- Hn(e, n, i.transformTemplate);
5249
+ Gn(e, n, i.transformTemplate);
5250
5250
  }
5251
5251
  scrapeMotionValuesFromProps(e, n, i) {
5252
- return qn(e, n, i);
5252
+ return Xn(e, n, i);
5253
5253
  }
5254
5254
  handleChildMotionValue() {
5255
5255
  this.childSubscription && (this.childSubscription(), delete this.childSubscription);
@@ -5261,14 +5261,14 @@ class Of extends Ro {
5261
5261
  }
5262
5262
  class jf extends Ro {
5263
5263
  constructor() {
5264
- super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = B;
5264
+ super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = I;
5265
5265
  }
5266
5266
  getBaseTargetFromProps(e, n) {
5267
5267
  return e[n];
5268
5268
  }
5269
5269
  readValueFromInstance(e, n) {
5270
5270
  if (Tt.has(n)) {
5271
- const i = ni(n);
5271
+ const i = ei(n);
5272
5272
  return i && i.default || 0;
5273
5273
  }
5274
5274
  return n = gr.has(n) ? n : Ne(n), e.getAttribute(n);
@@ -5277,16 +5277,16 @@ class jf extends Ro {
5277
5277
  return vr(e, n, i);
5278
5278
  }
5279
5279
  build(e, n, i) {
5280
- Yn(e, n, this.isSVGTag, i.transformTemplate);
5280
+ zn(e, n, this.isSVGTag, i.transformTemplate);
5281
5281
  }
5282
5282
  renderInstance(e, n, i, s) {
5283
5283
  yr(e, n, i, s);
5284
5284
  }
5285
5285
  mount(e) {
5286
- this.isSVGTag = Xn(e.tagName), super.mount(e);
5286
+ this.isSVGTag = Yn(e.tagName), super.mount(e);
5287
5287
  }
5288
5288
  }
5289
- const Ff = (t, e) => $n(t) ? new jf(e) : new Of(e, {
5289
+ const Ff = (t, e) => Wn(t) ? new jf(e) : new Of(e, {
5290
5290
  allowProjection: t !== Qs
5291
5291
  }), _f = {
5292
5292
  layout: {
@@ -5299,7 +5299,7 @@ const Ff = (t, e) => $n(t) ? new jf(e) : new Of(e, {
5299
5299
  ...Af,
5300
5300
  ..._f
5301
5301
  }, If = /* @__PURE__ */ Oa((t, e) => dl(t, e, Bf, Ff));
5302
- class Nf extends Ln.Component {
5302
+ class Nf extends kn.Component {
5303
5303
  getSnapshotBeforeUpdate(e) {
5304
5304
  const n = this.props.childRef.current;
5305
5305
  if (n && e.isPresent && !this.props.isPresent) {
@@ -5318,12 +5318,12 @@ class Nf extends Ln.Component {
5318
5318
  }
5319
5319
  }
5320
5320
  function Uf({ children: t, isPresent: e }) {
5321
- const n = jn(), i = st(null), s = st({
5321
+ const n = On(), i = st(null), s = st({
5322
5322
  width: 0,
5323
5323
  height: 0,
5324
5324
  top: 0,
5325
5325
  left: 0
5326
- }), { nonce: o } = K(_n);
5326
+ }), { nonce: o } = K(Fn);
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)
@@ -5341,10 +5341,10 @@ function Uf({ children: t, isPresent: e }) {
5341
5341
  `), () => {
5342
5342
  document.head.removeChild(u);
5343
5343
  };
5344
- }, [e]), I.jsx(Nf, { isPresent: e, childRef: i, sizeRef: s, children: Ln.cloneElement(t, { ref: i }) });
5344
+ }, [e]), _.jsx(Nf, { isPresent: e, childRef: i, sizeRef: s, children: kn.cloneElement(t, { ref: i }) });
5345
5345
  }
5346
5346
  const Wf = ({ children: t, initial: e, isPresent: n, onExitComplete: i, custom: s, presenceAffectsLayout: o, mode: r }) => {
5347
- const a = Jn($f), l = jn(), c = Mt(
5347
+ const a = Zn($f), l = On(), c = Mt(
5348
5348
  () => ({
5349
5349
  id: l,
5350
5350
  initial: e,
@@ -5368,23 +5368,23 @@ const Wf = ({ children: t, initial: e, isPresent: n, onExitComplete: i, custom:
5368
5368
  );
5369
5369
  return Mt(() => {
5370
5370
  a.forEach((u, f) => a.set(f, !1));
5371
- }, [n]), Ln.useEffect(() => {
5371
+ }, [n]), kn.useEffect(() => {
5372
5372
  !n && !a.size && i && i();
5373
- }, [n]), r === "popLayout" && (t = I.jsx(Uf, { isPresent: n, children: t })), I.jsx(Ie.Provider, { value: c, children: t });
5373
+ }, [n]), r === "popLayout" && (t = _.jsx(Uf, { isPresent: n, children: t })), _.jsx(Ie.Provider, { value: c, children: t });
5374
5374
  };
5375
5375
  function $f() {
5376
5376
  return /* @__PURE__ */ new Map();
5377
5377
  }
5378
5378
  const Ce = (t) => t.key || "";
5379
- function Xs(t) {
5379
+ function Ys(t) {
5380
5380
  const e = [];
5381
5381
  return ra.forEach(t, (n) => {
5382
5382
  oa(n) && e.push(n);
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'");
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);
5386
+ pt(!e, "Replace exitBeforeEnter with mode='wait'");
5387
+ const a = Mt(() => Ys(t), [t]), l = a.map(Ce), c = st(!0), u = st(a), f = Zn(() => /* @__PURE__ */ new Map()), [d, p] = _t(a), [m, x] = _t(a);
5388
5388
  er(() => {
5389
5389
  c.current = !1, u.current = a;
5390
5390
  for (let y = 0; y < m.length; y++) {
@@ -5399,45 +5399,45 @@ const Kf = ({ children: t, exitBeforeEnter: e, custom: n, initial: i = !0, onExi
5399
5399
  const w = m[v], A = Ce(w);
5400
5400
  l.includes(A) || (y.splice(v, 0, w), T.push(w));
5401
5401
  }
5402
- r === "wait" && T.length && (y = T), x(Xs(y)), p(a);
5402
+ r === "wait" && T.length && (y = T), x(Ys(y)), p(a);
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);
5407
- return I.jsx(I.Fragment, { children: m.map((y) => {
5406
+ const { forceRender: P } = K(Un);
5407
+ return _.jsx(_.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
- 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);
5418
+ return _.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
  }) });
5420
5420
  };
5421
5421
  function De(t) {
5422
5422
  var e = new Error(t);
5423
5423
  return e.source = "ulid", e;
5424
5424
  }
5425
- var fi = "0123456789ABCDEFGHJKMNPQRSTVWXYZ", re = fi.length, qs = Math.pow(2, 48) - 1, Gf = 10, Hf = 16;
5425
+ var ui = "0123456789ABCDEFGHJKMNPQRSTVWXYZ", re = ui.length, Xs = Math.pow(2, 48) - 1, Gf = 10, Hf = 16;
5426
5426
  function zf(t) {
5427
5427
  var e = Math.floor(t() * re);
5428
- return e === re && (e = re - 1), fi.charAt(e);
5428
+ return e === re && (e = re - 1), ui.charAt(e);
5429
5429
  }
5430
5430
  function Yf(t, e) {
5431
5431
  if (isNaN(t))
5432
5432
  throw new Error(t + " must be a number");
5433
- if (t > qs)
5434
- throw De("cannot encode time greater than " + qs);
5433
+ if (t > Xs)
5434
+ throw De("cannot encode time greater than " + Xs);
5435
5435
  if (t < 0)
5436
5436
  throw De("time must be positive");
5437
5437
  if (Number.isInteger(t) === !1)
5438
5438
  throw De("time must be an integer");
5439
5439
  for (var n = void 0, i = ""; e > 0; e--)
5440
- n = t % re, i = fi.charAt(n) + i, t = (t - n) / re;
5440
+ n = t % re, i = ui.charAt(n) + i, t = (t - n) / re;
5441
5441
  return i;
5442
5442
  }
5443
5443
  function Xf(t, e) {
@@ -5478,27 +5478,26 @@ function Zf(t) {
5478
5478
  };
5479
5479
  }
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
- const Zs = ({
5481
+ const qs = ({
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
- }, []), null), th = "acrool-react-picker__root", eh = "acrool-react-picker__main-el", nh = "acrool-react-picker__picker-el", gn = {
5490
- root: th,
5489
+ }, []), null), th = "acrool-react-picker__main-el", eh = "acrool-react-picker__picker-el", Zs = {
5491
5490
  "main-el": "acrool-react-picker__main-el",
5492
- mainEl: eh,
5491
+ mainEl: th,
5493
5492
  "picker-el": "acrool-react-picker__picker-el",
5494
- pickerEl: nh
5493
+ pickerEl: eh
5495
5494
  }, Vo = (t, e) => (n) => {
5496
5495
  e.current = n, t && (typeof t == "function" ? t(n) : t && (t.current = n));
5497
- }, ih = "acrool-react-picker__motion-animation-wrapper", sh = {
5496
+ }, nh = "acrool-react-picker__motion-animation-wrapper", ih = {
5498
5497
  "motion-animation-wrapper": "acrool-react-picker__motion-animation-wrapper",
5499
- motionAnimationWrapper: ih
5498
+ motionAnimationWrapper: nh
5500
5499
  }, Ae = /* @__PURE__ */ new WeakMap();
5501
- function rh(t) {
5500
+ function sh(t) {
5502
5501
  if (Ae.has(t))
5503
5502
  return Ae.get(t);
5504
5503
  let e = t.parentElement;
@@ -5510,17 +5509,17 @@ function rh(t) {
5510
5509
  }
5511
5510
  return Ae.set(t, window), window;
5512
5511
  }
5513
- const oh = (t, e, n) => {
5512
+ const rh = (t, e, n) => {
5514
5513
  var w;
5515
5514
  const i = (w = t.current) == null ? void 0 : w.firstChild, s = e.current;
5516
5515
  if (!i || !s)
5517
5516
  return;
5518
5517
  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;
5518
+ let m = p >= d ? at.bottom : at.top, x = m === at.bottom ? p : d;
5520
5519
  const T = o.width, P = r.left + T < l, y = r.right - T > 0;
5521
5520
  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";
5523
- }, ah = {
5521
+ !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";
5522
+ }, oh = {
5524
5523
  variants: {
5525
5524
  initial: { position: "absolute", zIndex: 999, opacity: 0, transition: { type: "spring" } },
5526
5525
  show: { opacity: 1, transition: { type: "just" } },
@@ -5535,93 +5534,106 @@ const oh = (t, e, n) => {
5535
5534
  duration: 0.05
5536
5535
  }
5537
5536
  }
5538
- }, lh = ({
5537
+ }, ah = ({
5539
5538
  children: t,
5540
5539
  isDebug: e = !1,
5541
5540
  anchorRef: n,
5542
5541
  onKeyDown: i
5543
5542
  }, s) => {
5544
- const o = st(null), r = da(), a = ot(() => {
5545
- oh(n, o, r.setVertical);
5543
+ const o = st(null), r = da(), a = it(() => {
5544
+ rh(n, o, r.setVertical);
5546
5545
  }, [r.setVertical]);
5547
- return ut(() => {
5546
+ return ct(() => {
5548
5547
  if (n.current && o.current) {
5549
- const l = rh(n.current);
5548
+ const l = sh(n.current);
5550
5549
  return l && (l.addEventListener("scroll", a), window.addEventListener("resize", a)), window.requestAnimationFrame(() => {
5551
5550
  o.current && (o.current.style.display = "flex", a());
5552
5551
  }), () => {
5553
5552
  l && (l.removeEventListener("scroll", a), window.removeEventListener("resize", a));
5554
5553
  };
5555
5554
  }
5556
- }, [r.isVisible]), /* @__PURE__ */ I.jsx(
5555
+ }, [r.isVisible]), /* @__PURE__ */ _.jsx(
5557
5556
  If.div,
5558
5557
  {
5559
5558
  ref: Vo(s, o),
5560
5559
  transition: { type: "spring", duration: 0.2 },
5561
5560
  style: { display: "none" },
5562
- className: sh.motionAnimationWrapper,
5561
+ className: ih.motionAnimationWrapper,
5563
5562
  "data-debug": e ? "" : void 0,
5564
- variants: ah.variants,
5563
+ variants: oh.variants,
5565
5564
  initial: "initial",
5566
5565
  animate: "show",
5567
5566
  exit: "exit",
5568
5567
  tabIndex: 0,
5568
+ onKeyDown: i,
5569
5569
  children: t
5570
5570
  }
5571
5571
  );
5572
- }, ch = Me(lh);
5573
- function mh(t, e, n) {
5572
+ }, lh = Me(ah);
5573
+ function ph(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) => {
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(() => {
5599
+ }, [a]), j = it((M) => (D) => {
5600
+ var U;
5601
+ M && (D.stopPropagation(), D.preventDefault(), (U = T.current) == null || U.focus(), l(!1));
5602
+ }, []), q = it((M) => {
5603
+ var D;
5604
+ (D = T.current) == null || D.focus(), l(!1), u(!1);
5605
+ }, []), R = it((M) => {
5606
+ M.preventDefault(), l(!0);
5607
+ }, []), W = it(() => {
5608
+ requestAnimationFrame(() => {
5609
+ var M;
5610
+ (M = T.current) == null || M.focus(), l(!1);
5611
+ });
5612
+ }, []), H = it(() => {
5613
+ l((M) => (M && requestAnimationFrame(() => {
5614
+ var D;
5615
+ (D = T.current) == null || D.focus();
5616
+ }), !M));
5617
+ }, []), rt = it((M) => {
5618
+ !x.current && P.current && !P.current.contains(M.target) && u(!1);
5619
+ }, []), wt = it((M) => {
5620
+ var U;
5621
+ const D = (U = x.current) == null ? void 0 : U.firstChild;
5622
+ D && !D.contains(M.target) && P.current && !P.current.contains(M.target) && (l(!1), u(!1));
5623
+ }, []), Z = it(() => {
5612
5624
  if (typeof (o == null ? void 0 : o.onChange) > "u") {
5613
- yt.warning("@acrool/react-picker", "createPicker component props onChange is undefined, is no call");
5625
+ gt.warning("@acrool/react-picker", "createPicker component props onChange is undefined, is no call");
5614
5626
  return;
5615
5627
  }
5616
5628
  typeof y.current < "u" && w && JSON.stringify(p) !== JSON.stringify(y.current) && o.onChange(y.current);
5617
5629
  }, [p, o.onChange, w]);
5618
- return /* @__PURE__ */ I.jsx(
5619
- Fn.Provider,
5630
+ return /* @__PURE__ */ _.jsx(
5631
+ jn.Provider,
5620
5632
  {
5621
5633
  value: {
5622
- hide: () => requestAnimationFrame(() => l(!1)),
5634
+ hide: W,
5623
5635
  show: () => l(!0),
5624
- toggle: () => l((O) => !O),
5636
+ toggle: H,
5625
5637
  isVisible: a,
5626
5638
  inputFocus: () => u(!0),
5627
5639
  inputBlur: () => u(!1),
@@ -5631,50 +5643,52 @@ function mh(t, e, n) {
5631
5643
  vertical: f,
5632
5644
  setVertical: d
5633
5645
  },
5634
- children: /* @__PURE__ */ I.jsxs(
5635
- "div",
5636
- {
5637
- className: gn.root,
5638
- onKeyDown: A,
5639
- children: [
5640
- /* @__PURE__ */ I.jsx("div", { ref: P, className: gn.mainEl, children: /* @__PURE__ */ I.jsx(
5646
+ children: /* @__PURE__ */ _.jsxs(_.Fragment, { children: [
5647
+ /* @__PURE__ */ _.jsx(
5648
+ "div",
5649
+ {
5650
+ ref: P,
5651
+ className: Zs.mainEl,
5652
+ onKeyDown: A,
5653
+ children: /* @__PURE__ */ _.jsx(
5641
5654
  i,
5642
5655
  {
5643
5656
  ...o,
5644
5657
  ref: Vo(r, T)
5645
5658
  }
5646
- ) }),
5647
- /* @__PURE__ */ I.jsx(Kf, { children: a && /* @__PURE__ */ I.jsx(
5648
- tr,
5659
+ )
5660
+ }
5661
+ ),
5662
+ /* @__PURE__ */ _.jsx(Kf, { children: a && /* @__PURE__ */ _.jsx(
5663
+ tr,
5664
+ {
5665
+ id: `acrool-react-picker-${Jf().toLowerCase()}`,
5666
+ className: Zs.pickerEl,
5667
+ children: /* @__PURE__ */ _.jsx(
5668
+ lh,
5649
5669
  {
5650
- id: `acrool-react-picker-${Jf().toLowerCase()}`,
5651
- className: gn.pickerEl,
5652
- children: /* @__PURE__ */ I.jsx(
5653
- ch,
5654
- {
5655
- ref: x,
5656
- anchorRef: P,
5657
- isDebug: n == null ? void 0 : n.isDebug,
5658
- children: /* @__PURE__ */ I.jsx(e, { ...o })
5659
- }
5660
- )
5670
+ ref: x,
5671
+ anchorRef: P,
5672
+ isDebug: n == null ? void 0 : n.isDebug,
5673
+ onKeyDown: A,
5674
+ children: /* @__PURE__ */ _.jsx(e, { ...o })
5661
5675
  }
5662
- ) }),
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 })
5666
- ]
5667
- }
5668
- )
5676
+ )
5677
+ }
5678
+ ) }),
5679
+ a && /* @__PURE__ */ _.jsx(Qf, { onPickerHide: Z }),
5680
+ v && a && /* @__PURE__ */ _.jsx(qs, { onMousedown: wt }),
5681
+ c && /* @__PURE__ */ _.jsx(qs, { onMousedown: rt })
5682
+ ] })
5669
5683
  }
5670
5684
  );
5671
5685
  });
5672
5686
  }
5673
5687
  export {
5674
5688
  Jt as EHorizontal,
5675
- lt as EVertical,
5676
- hh as PickerProviderConsumer,
5677
- Fn as PickerProviderContext,
5678
- mh as createPicker,
5689
+ at as EVertical,
5690
+ fh as PickerProviderConsumer,
5691
+ jn as PickerProviderContext,
5692
+ ph as createPicker,
5679
5693
  da as usePicker
5680
5694
  };