motion-v 0.2.3 → 0.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,17 +1,17 @@
1
- import { inject as Js, provide as Qs, Fragment as ti, defineComponent as Ot, Comment as ei, mergeProps as re, cloneVNode as ni, h as $t, mergeDefaults as si, ref as ii, useAttrs as ri, getCurrentInstance as oi, onMounted as In, onUnmounted as Dt, onUpdated as ai, openBlock as Ln, createBlock as Nn, unref as li, withCtx as $n, renderSlot as Kn, toRefs as ui, resolveDynamicComponent as ci, TransitionGroup as fi, Transition as hi, onBeforeUpdate as Wn, watch as kn, onBeforeUnmount as di } from "vue";
1
+ import { inject as Js, provide as Qs, Fragment as ti, defineComponent as Ot, Comment as ei, mergeProps as In, cloneVNode as ni, h as $t, mergeDefaults as si, ref as ii, useAttrs as ri, getCurrentInstance as oi, onMounted as Ln, onUnmounted as Dt, onUpdated as ai, openBlock as Nn, createBlock as $n, unref as li, withCtx as Kn, renderSlot as Wn, toRefs as ui, resolveDynamicComponent as ci, TransitionGroup as fi, Transition as hi, onBeforeUpdate as _n, watch as kn, onBeforeUnmount as di } from "vue";
2
2
  function pi(e, t) {
3
3
  e.indexOf(t) === -1 && e.push(t);
4
4
  }
5
- function _n(e, t) {
5
+ function Gn(e, t) {
6
6
  const n = e.indexOf(t);
7
7
  n > -1 && e.splice(n, 1);
8
8
  }
9
- class Gn {
9
+ class zn {
10
10
  constructor() {
11
11
  this.subscriptions = [];
12
12
  }
13
13
  add(t) {
14
- return pi(this.subscriptions, t), () => _n(this.subscriptions, t);
14
+ return pi(this.subscriptions, t), () => Gn(this.subscriptions, t);
15
15
  }
16
16
  notify(t, n, s) {
17
17
  const i = this.subscriptions.length;
@@ -34,9 +34,9 @@ class Gn {
34
34
  function oe(e, t) {
35
35
  return t ? e * (1e3 / t) : 0;
36
36
  }
37
- const We = /* @__PURE__ */ new Set();
37
+ const _e = /* @__PURE__ */ new Set();
38
38
  function Bt(e, t, n) {
39
- e || We.has(t) || (console.warn(t), We.add(t));
39
+ e || _e.has(t) || (console.warn(t), _e.add(t));
40
40
  }
41
41
  const mi = {
42
42
  skipAnimations: !1,
@@ -108,13 +108,13 @@ function vi(e, t) {
108
108
  };
109
109
  return { schedule: st.reduce((g, y) => {
110
110
  const T = o[y];
111
- return g[y] = (V, S = !1, A = !1) => (n || m(), T.schedule(V, S, A)), g;
111
+ return g[y] = (x, w = !1, A = !1) => (n || m(), T.schedule(x, w, A)), g;
112
112
  }, {}), cancel: (g) => {
113
113
  for (let y = 0; y < st.length; y++)
114
114
  o[st[y]].cancel(g);
115
115
  }, state: i, steps: o };
116
116
  }
117
- const { schedule: M, cancel: R, state: J, steps: Rl } = vi(typeof requestAnimationFrame < "u" ? requestAnimationFrame : K, !0);
117
+ const { schedule: M, cancel: R, state: J, steps: Ll } = vi(typeof requestAnimationFrame < "u" ? requestAnimationFrame : K, !0);
118
118
  let St;
119
119
  function bi() {
120
120
  St = void 0;
@@ -124,10 +124,10 @@ const N = {
124
124
  set: (e) => {
125
125
  St = e, queueMicrotask(bi);
126
126
  }
127
- }, ke = 30, wi = (e) => !isNaN(parseFloat(e)), _ = {
127
+ }, ke = 30, Si = (e) => !isNaN(parseFloat(e)), k = {
128
128
  current: void 0
129
129
  };
130
- class Si {
130
+ class wi {
131
131
  /**
132
132
  * @param init - The initiating value
133
133
  * @param config - Optional configuration options
@@ -143,7 +143,7 @@ class Si {
143
143
  }, this.hasAnimated = !1, this.setCurrent(t), this.owner = n.owner;
144
144
  }
145
145
  setCurrent(t) {
146
- this.current = t, this.updatedAt = N.now(), this.canTrackVelocity === null && t !== void 0 && (this.canTrackVelocity = wi(this.current));
146
+ this.current = t, this.updatedAt = N.now(), this.canTrackVelocity === null && t !== void 0 && (this.canTrackVelocity = Si(this.current));
147
147
  }
148
148
  setPrevFrameValue(t = this.current) {
149
149
  this.prevFrameValue = t, this.prevUpdatedAt = this.updatedAt;
@@ -192,7 +192,7 @@ class Si {
192
192
  return process.env.NODE_ENV !== "production" && Bt(!1, 'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'), this.on("change", t);
193
193
  }
194
194
  on(t, n) {
195
- this.events[t] || (this.events[t] = new Gn());
195
+ this.events[t] || (this.events[t] = new zn());
196
196
  const s = this.events[t].add(n);
197
197
  return t === "change" ? () => {
198
198
  s(), M.read(() => {
@@ -248,7 +248,7 @@ class Si {
248
248
  * @public
249
249
  */
250
250
  get() {
251
- return _.current && _.current.push(this), this.current;
251
+ return k.current && k.current.push(this), this.current;
252
252
  }
253
253
  /**
254
254
  * @public
@@ -322,13 +322,13 @@ class Si {
322
322
  }
323
323
  }
324
324
  function D(e, t) {
325
- return new Si(e, t);
325
+ return new wi(e, t);
326
326
  }
327
327
  function Rt(e) {
328
328
  let t;
329
329
  return () => (t === void 0 && (t = e()), t);
330
330
  }
331
- const zn = Rt(() => window.ScrollTimeline !== void 0);
331
+ const Un = Rt(() => window.ScrollTimeline !== void 0);
332
332
  class ae {
333
333
  constructor(t) {
334
334
  this.stop = () => this.runAll("stop"), this.animations = t.filter(Boolean);
@@ -347,7 +347,7 @@ class ae {
347
347
  this.animations[s][t] = n;
348
348
  }
349
349
  attachTimeline(t, n) {
350
- const s = this.animations.map((i) => zn() && i.attachTimeline ? i.attachTimeline(t) : n(i));
350
+ const s = this.animations.map((i) => Un() && i.attachTimeline ? i.attachTimeline(t) : n(i));
351
351
  return () => {
352
352
  s.forEach((i, r) => {
353
353
  i && i(), this.animations[r].stop();
@@ -392,28 +392,28 @@ class ae {
392
392
  }
393
393
  }
394
394
  const C = (e) => e * 1e3, B = (e) => e / 1e3, Ti = 5;
395
- function Un(e, t, n) {
395
+ function jn(e, t, n) {
396
396
  const s = Math.max(t - Ti, 0);
397
397
  return oe(n - e(s), t - s);
398
398
  }
399
- let ht = K, I = K;
400
- process.env.NODE_ENV !== "production" && (ht = (e, t) => {
399
+ let ft = K, I = K;
400
+ process.env.NODE_ENV !== "production" && (ft = (e, t) => {
401
401
  !e && typeof console < "u" && console.warn(t);
402
402
  }, I = (e, t) => {
403
403
  if (!e)
404
404
  throw new Error(t);
405
405
  });
406
- const H = (e, t, n) => n > t ? t : n < e ? e : n, Kt = 1e-3, Vi = 0.01, _e = 10, xi = 0.05, Ai = 1;
406
+ const H = (e, t, n) => n > t ? t : n < e ? e : n, Kt = 1e-3, xi = 0.01, Ge = 10, Vi = 0.05, Ai = 1;
407
407
  function Mi({ duration: e = 800, bounce: t = 0.25, velocity: n = 0, mass: s = 1 }) {
408
408
  let i, r;
409
- ht(e <= C(_e), "Spring duration must be 10 seconds or less");
409
+ ft(e <= C(Ge), "Spring duration must be 10 seconds or less");
410
410
  let o = 1 - t;
411
- o = H(xi, Ai, o), e = H(Vi, _e, B(e)), o < 1 ? (i = (u) => {
412
- const c = u * o, f = c * e, h = c - n, p = jt(u, o), m = Math.exp(-f);
411
+ o = H(Vi, Ai, o), e = H(xi, Ge, B(e)), o < 1 ? (i = (u) => {
412
+ const c = u * o, f = c * e, h = c - n, p = Ht(u, o), m = Math.exp(-f);
413
413
  return Kt - h / p * m;
414
414
  }, r = (u) => {
415
- const f = u * o * e, h = f * n + n, p = Math.pow(o, 2) * Math.pow(u, 2) * e, m = Math.exp(-f), w = jt(Math.pow(u, 2), o);
416
- return (-i(u) + Kt > 0 ? -1 : 1) * ((h - p) * m) / w;
415
+ const f = u * o * e, h = f * n + n, p = Math.pow(o, 2) * Math.pow(u, 2) * e, m = Math.exp(-f), S = Ht(Math.pow(u, 2), o);
416
+ return (-i(u) + Kt > 0 ? -1 : 1) * ((h - p) * m) / S;
417
417
  }) : (i = (u) => {
418
418
  const c = Math.exp(-u * e), f = (u - n) * e + 1;
419
419
  return -Kt + c * f;
@@ -444,11 +444,11 @@ function Pi(e, t, n) {
444
444
  s = s - e(s) / t(s);
445
445
  return s;
446
446
  }
447
- function jt(e, t) {
447
+ function Ht(e, t) {
448
448
  return e * Math.sqrt(1 - t * t);
449
449
  }
450
450
  const Ci = ["duration", "bounce"], Fi = ["stiffness", "damping", "mass"];
451
- function Ge(e, t) {
451
+ function ze(e, t) {
452
452
  return t.some((n) => e[n] !== void 0);
453
453
  }
454
454
  function Oi(e) {
@@ -460,7 +460,7 @@ function Oi(e) {
460
460
  isResolvedFromDuration: !1,
461
461
  ...e
462
462
  };
463
- if (!Ge(e, Fi) && Ge(e, Ci)) {
463
+ if (!ze(e, Fi) && ze(e, Ci)) {
464
464
  const n = Mi(e);
465
465
  t = {
466
466
  ...t,
@@ -474,71 +474,71 @@ function le({ keyframes: e, restDelta: t, restSpeed: n, ...s }) {
474
474
  const i = e[0], r = e[e.length - 1], o = { done: !1, value: i }, { stiffness: a, damping: l, mass: u, duration: c, velocity: f, isResolvedFromDuration: h } = Oi({
475
475
  ...s,
476
476
  velocity: -B(s.velocity || 0)
477
- }), p = f || 0, m = l / (2 * Math.sqrt(a * u)), w = r - i, b = B(Math.sqrt(a / u)), g = Math.abs(w) < 5;
477
+ }), p = f || 0, m = l / (2 * Math.sqrt(a * u)), S = r - i, b = B(Math.sqrt(a / u)), g = Math.abs(S) < 5;
478
478
  n || (n = g ? 0.01 : 2), t || (t = g ? 5e-3 : 0.5);
479
479
  let y;
480
480
  if (m < 1) {
481
- const T = jt(b, m);
482
- y = (V) => {
483
- const S = Math.exp(-m * b * V);
484
- return r - S * ((p + m * b * w) / T * Math.sin(T * V) + w * Math.cos(T * V));
481
+ const T = Ht(b, m);
482
+ y = (x) => {
483
+ const w = Math.exp(-m * b * x);
484
+ return r - w * ((p + m * b * S) / T * Math.sin(T * x) + S * Math.cos(T * x));
485
485
  };
486
486
  } else if (m === 1)
487
- y = (T) => r - Math.exp(-b * T) * (w + (p + b * w) * T);
487
+ y = (T) => r - Math.exp(-b * T) * (S + (p + b * S) * T);
488
488
  else {
489
489
  const T = b * Math.sqrt(m * m - 1);
490
- y = (V) => {
491
- const S = Math.exp(-m * b * V), A = Math.min(T * V, 300);
492
- return r - S * ((p + m * b * w) * Math.sinh(A) + T * w * Math.cosh(A)) / T;
490
+ y = (x) => {
491
+ const w = Math.exp(-m * b * x), A = Math.min(T * x, 300);
492
+ return r - w * ((p + m * b * S) * Math.sinh(A) + T * S * Math.cosh(A)) / T;
493
493
  };
494
494
  }
495
495
  return {
496
496
  calculatedDuration: h && c || null,
497
497
  next: (T) => {
498
- const V = y(T);
498
+ const x = y(T);
499
499
  if (h)
500
500
  o.done = T >= c;
501
501
  else {
502
- let S = 0;
503
- m < 1 && (S = T === 0 ? C(p) : Un(y, T, V));
504
- const A = Math.abs(S) <= n, F = Math.abs(r - V) <= t;
502
+ let w = 0;
503
+ m < 1 && (w = T === 0 ? C(p) : jn(y, T, x));
504
+ const A = Math.abs(w) <= n, F = Math.abs(r - x) <= t;
505
505
  o.done = A && F;
506
506
  }
507
- return o.value = o.done ? r : V, o;
507
+ return o.value = o.done ? r : x, o;
508
508
  }
509
509
  };
510
510
  }
511
- const Ht = 2e4;
512
- function jn(e) {
511
+ const Yt = 2e4;
512
+ function Hn(e) {
513
513
  let t = 0;
514
514
  const n = 50;
515
515
  let s = e.next(t);
516
- for (; !s.done && t < Ht; )
516
+ for (; !s.done && t < Yt; )
517
517
  t += n, s = e.next(t);
518
- return t >= Ht ? 1 / 0 : t;
518
+ return t >= Yt ? 1 / 0 : t;
519
519
  }
520
- function Hn(e, t = 100, n) {
521
- const s = n({ ...e, keyframes: [0, t] }), i = Math.min(jn(s), Ht);
520
+ function Yn(e, t = 100, n) {
521
+ const s = n({ ...e, keyframes: [0, t] }), i = Math.min(Hn(s), Yt);
522
522
  return {
523
523
  type: "keyframes",
524
524
  ease: (r) => s.next(i * r).value / t,
525
525
  duration: B(i)
526
526
  };
527
527
  }
528
- const dt = (e, t, n) => e + (t - e) * n, pt = (e, t, n) => {
528
+ const ht = (e, t, n) => e + (t - e) * n, dt = (e, t, n) => {
529
529
  const s = t - e;
530
530
  return s === 0 ? 1 : (n - e) / s;
531
531
  };
532
- function Yn(e, t) {
532
+ function Xn(e, t) {
533
533
  const n = e[e.length - 1];
534
534
  for (let s = 1; s <= t; s++) {
535
- const i = pt(0, t, s);
536
- e.push(dt(n, 1, i));
535
+ const i = dt(0, t, s);
536
+ e.push(ht(n, 1, i));
537
537
  }
538
538
  }
539
539
  function ue(e) {
540
540
  const t = [0];
541
- return Yn(t, e.length - 1), t;
541
+ return Xn(t, e.length - 1), t;
542
542
  }
543
543
  const P = (e) => !!(e && e.getVelocity);
544
544
  function It(e, t, n) {
@@ -552,27 +552,27 @@ function It(e, t, n) {
552
552
  function ce(e) {
553
553
  return typeof e == "object" && !Array.isArray(e);
554
554
  }
555
- function Xn(e, t, n, s) {
555
+ function qn(e, t, n, s) {
556
556
  return typeof e == "string" && ce(t) ? It(e, n, s) : e instanceof NodeList ? Array.from(e) : Array.isArray(e) ? e : [e];
557
557
  }
558
- function mt(e) {
558
+ function pt(e) {
559
559
  return typeof e == "function";
560
560
  }
561
- function ze(e, t, n, s) {
561
+ function Ue(e, t, n, s) {
562
562
  var i;
563
563
  return typeof t == "number" ? t : t.startsWith("-") || t.startsWith("+") ? Math.max(0, e + parseFloat(t)) : t === "<" ? n : (i = s.get(t)) !== null && i !== void 0 ? i : e;
564
564
  }
565
565
  const Di = (e, t, n) => {
566
566
  const s = t - e;
567
567
  return ((n - e) % s + s) % s + e;
568
- }, qn = (e) => Array.isArray(e) && typeof e[0] != "number";
568
+ }, Zn = (e) => Array.isArray(e) && typeof e[0] != "number";
569
569
  function Bi(e, t) {
570
- return qn(e) ? e[Di(0, e.length, t)] : e;
570
+ return Zn(e) ? e[Di(0, e.length, t)] : e;
571
571
  }
572
572
  function Ri(e, t, n) {
573
573
  for (let s = 0; s < e.length; s++) {
574
574
  const i = e[s];
575
- i.at > t && i.at < n && (_n(e, i), s--);
575
+ i.at > t && i.at < n && (Gn(e, i), s--);
576
576
  }
577
577
  }
578
578
  function Ii(e, t, n, s, i, r) {
@@ -580,7 +580,7 @@ function Ii(e, t, n, s, i, r) {
580
580
  for (let o = 0; o < t.length; o++)
581
581
  e.push({
582
582
  value: t[o],
583
- at: dt(i, r, s[o]),
583
+ at: ht(i, r, s[o]),
584
584
  easing: Bi(n, o)
585
585
  });
586
586
  }
@@ -597,62 +597,62 @@ function $i(e, { defaultTransition: t = {}, ...n } = {}, s, i) {
597
597
  u.set(m, f);
598
598
  continue;
599
599
  } else if (!Array.isArray(m)) {
600
- u.set(m.name, ze(f, m.at, c, u));
600
+ u.set(m.name, Ue(f, m.at, c, u));
601
601
  continue;
602
602
  }
603
- let [w, b, g = {}] = m;
604
- g.at !== void 0 && (f = ze(f, g.at, c, u));
603
+ let [S, b, g = {}] = m;
604
+ g.at !== void 0 && (f = Ue(f, g.at, c, u));
605
605
  let y = 0;
606
- const T = (V, S, A, F = 0, v = 0) => {
607
- const x = Ki(V), { delay: O = 0, times: z = ue(x), type: Nt = "keyframes", ...qs } = S;
608
- let { ease: Fe = t.ease || "easeOut", duration: L } = S;
609
- const Oe = typeof O == "function" ? O(F, v) : O, De = x.length, Be = mt(Nt) ? Nt : i == null ? void 0 : i[Nt];
610
- if (De <= 2 && Be) {
611
- let Ne = 100;
612
- if (De === 2 && _i(x)) {
613
- const Zs = x[1] - x[0];
614
- Ne = Math.abs(Zs);
606
+ const T = (x, w, A, F = 0, v = 0) => {
607
+ const V = Ki(x), { delay: O = 0, times: z = ue(V), type: Nt = "keyframes", ...qs } = w;
608
+ let { ease: Oe = t.ease || "easeOut", duration: L } = w;
609
+ const De = typeof O == "function" ? O(F, v) : O, Be = V.length, Re = pt(Nt) ? Nt : i == null ? void 0 : i[Nt];
610
+ if (Be <= 2 && Re) {
611
+ let $e = 100;
612
+ if (Be === 2 && ki(V)) {
613
+ const Zs = V[1] - V[0];
614
+ $e = Math.abs(Zs);
615
615
  }
616
- const $e = { ...qs };
617
- L !== void 0 && ($e.duration = C(L));
618
- const Ke = Hn($e, Ne, Be);
619
- Fe = Ke.ease, L = Ke.duration;
616
+ const Ke = { ...qs };
617
+ L !== void 0 && (Ke.duration = C(L));
618
+ const We = Yn(Ke, $e, Re);
619
+ Oe = We.ease, L = We.duration;
620
620
  }
621
621
  L ?? (L = r);
622
- const Re = f + Oe, Ie = Re + L;
622
+ const Ie = f + De, Le = Ie + L;
623
623
  z.length === 1 && z[0] === 0 && (z[1] = 1);
624
- const Le = z.length - x.length;
625
- Le > 0 && Yn(z, Le), x.length === 1 && x.unshift(null), Ii(A, x, Fe, z, Re, Ie), y = Math.max(Oe + L, y), h = Math.max(Ie, h);
624
+ const Ne = z.length - V.length;
625
+ Ne > 0 && Xn(z, Ne), V.length === 1 && V.unshift(null), Ii(A, V, Oe, z, Ie, Le), y = Math.max(De + L, y), h = Math.max(Le, h);
626
626
  };
627
- if (P(w)) {
628
- const V = Ue(w, a);
629
- T(b, g, je("default", V));
627
+ if (P(S)) {
628
+ const x = je(S, a);
629
+ T(b, g, He("default", x));
630
630
  } else {
631
- const V = Xn(w, b, s, l), S = V.length;
632
- for (let A = 0; A < S; A++) {
631
+ const x = qn(S, b, s, l), w = x.length;
632
+ for (let A = 0; A < w; A++) {
633
633
  b = b, g = g;
634
- const F = V[A], v = Ue(F, a);
635
- for (const x in b)
636
- T(b[x], Wi(g, x), je(x, v), A, S);
634
+ const F = x[A], v = je(F, a);
635
+ for (const V in b)
636
+ T(b[V], Wi(g, V), He(V, v), A, w);
637
637
  }
638
638
  }
639
639
  c = f, f += y;
640
640
  }
641
641
  return a.forEach((p, m) => {
642
- for (const w in p) {
643
- const b = p[w];
642
+ for (const S in p) {
643
+ const b = p[S];
644
644
  b.sort(Li);
645
645
  const g = [], y = [], T = [];
646
- for (let S = 0; S < b.length; S++) {
647
- const { at: A, value: F, easing: v } = b[S];
648
- g.push(F), y.push(pt(0, h, A)), T.push(v || "easeOut");
646
+ for (let w = 0; w < b.length; w++) {
647
+ const { at: A, value: F, easing: v } = b[w];
648
+ g.push(F), y.push(dt(0, h, A)), T.push(v || "easeOut");
649
649
  }
650
650
  y[0] !== 0 && (y.unshift(0), g.unshift(g[0]), T.unshift(Ni)), y[y.length - 1] !== 1 && (y.push(1), g.push(null)), o.has(m) || o.set(m, {
651
651
  keyframes: {},
652
652
  transition: {}
653
653
  });
654
- const V = o.get(m);
655
- V.keyframes[w] = g, V.transition[w] = {
654
+ const x = o.get(m);
655
+ x.keyframes[S] = g, x.transition[S] = {
656
656
  ...t,
657
657
  duration: h,
658
658
  ease: T,
@@ -662,10 +662,10 @@ function $i(e, { defaultTransition: t = {}, ...n } = {}, s, i) {
662
662
  }
663
663
  }), o;
664
664
  }
665
- function Ue(e, t) {
665
+ function je(e, t) {
666
666
  return !t.has(e) && t.set(e, {}), t.get(e);
667
667
  }
668
- function je(e, t) {
668
+ function He(e, t) {
669
669
  return t[e] || (t[e] = []), t[e];
670
670
  }
671
671
  function Ki(e) {
@@ -677,7 +677,7 @@ function Wi(e, t) {
677
677
  ...e[t]
678
678
  } : { ...e };
679
679
  }
680
- const ki = (e) => typeof e == "number", _i = (e) => e.every(ki), $ = /* @__PURE__ */ new WeakMap(), gt = [
680
+ const _i = (e) => typeof e == "number", ki = (e) => e.every(_i), $ = /* @__PURE__ */ new WeakMap(), mt = [
681
681
  "transformPerspective",
682
682
  "x",
683
683
  "y",
@@ -695,7 +695,7 @@ const ki = (e) => typeof e == "number", _i = (e) => e.every(ki), $ = /* @__PURE_
695
695
  "skew",
696
696
  "skewX",
697
697
  "skewY"
698
- ], X = new Set(gt), Gi = {
698
+ ], X = new Set(mt), Gi = {
699
699
  type: "spring",
700
700
  stiffness: 500,
701
701
  damping: 25,
@@ -717,29 +717,29 @@ function fe(e, t) {
717
717
  return e ? e[t] || e.default || e : void 0;
718
718
  }
719
719
  const Yi = (e) => e !== null;
720
- function yt(e, { repeat: t, repeatType: n = "loop" }, s) {
720
+ function gt(e, { repeat: t, repeatType: n = "loop" }, s) {
721
721
  const i = e.filter(Yi), r = t && n !== "loop" && t % 2 === 1 ? 0 : i.length - 1;
722
722
  return !r || s === void 0 ? i[r] : s;
723
723
  }
724
- const Zn = (e, t, n) => (((1 - 3 * n + 3 * t) * e + (3 * n - 6 * t)) * e + 3 * t) * e, Xi = 1e-7, qi = 12;
724
+ const Jn = (e, t, n) => (((1 - 3 * n + 3 * t) * e + (3 * n - 6 * t)) * e + 3 * t) * e, Xi = 1e-7, qi = 12;
725
725
  function Zi(e, t, n, s, i) {
726
726
  let r, o, a = 0;
727
727
  do
728
- o = t + (n - t) / 2, r = Zn(o, s, i) - e, r > 0 ? n = o : t = o;
728
+ o = t + (n - t) / 2, r = Jn(o, s, i) - e, r > 0 ? n = o : t = o;
729
729
  while (Math.abs(r) > Xi && ++a < qi);
730
730
  return o;
731
731
  }
732
- function vt(e, t, n, s) {
732
+ function yt(e, t, n, s) {
733
733
  if (e === t && n === s)
734
734
  return K;
735
735
  const i = (r) => Zi(r, 0, 1, e, n);
736
- return (r) => r === 0 || r === 1 ? r : Zn(i(r), t, s);
736
+ return (r) => r === 0 || r === 1 ? r : Jn(i(r), t, s);
737
737
  }
738
- const Jn = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, Qn = (e) => (t) => 1 - e(1 - t), ts = /* @__PURE__ */ vt(0.33, 1.53, 0.69, 0.99), he = /* @__PURE__ */ Qn(ts), es = /* @__PURE__ */ Jn(he), ns = (e) => (e *= 2) < 1 ? 0.5 * he(e) : 0.5 * (2 - Math.pow(2, -10 * (e - 1))), de = (e) => 1 - Math.sin(Math.acos(e)), Ji = Qn(de), ss = Jn(de), is = (e) => /^0[^.\s]+$/u.test(e);
738
+ const Qn = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, ts = (e) => (t) => 1 - e(1 - t), es = /* @__PURE__ */ yt(0.33, 1.53, 0.69, 0.99), he = /* @__PURE__ */ ts(es), ns = /* @__PURE__ */ Qn(he), ss = (e) => (e *= 2) < 1 ? 0.5 * he(e) : 0.5 * (2 - Math.pow(2, -10 * (e - 1))), de = (e) => 1 - Math.sin(Math.acos(e)), Ji = ts(de), is = Qn(de), rs = (e) => /^0[^.\s]+$/u.test(e);
739
739
  function Qi(e) {
740
- return typeof e == "number" ? e === 0 : e !== null ? e === "none" || e === "0" || is(e) : !0;
740
+ return typeof e == "number" ? e === 0 : e !== null ? e === "none" || e === "0" || rs(e) : !0;
741
741
  }
742
- const rs = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e), os = (e) => (t) => typeof t == "string" && t.startsWith(e), as = /* @__PURE__ */ os("--"), tr = /* @__PURE__ */ os("var(--"), pe = (e) => tr(e) ? er.test(e.split("/*")[0].trim()) : !1, er = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu, nr = (
742
+ const os = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e), as = (e) => (t) => typeof t == "string" && t.startsWith(e), ls = /* @__PURE__ */ as("--"), tr = /* @__PURE__ */ as("var(--"), pe = (e) => tr(e) ? er.test(e.split("/*")[0].trim()) : !1, er = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu, nr = (
743
743
  // eslint-disable-next-line redos-detector/no-unsafe-regex -- false positive, as it can match a lot of words
744
744
  /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u
745
745
  );
@@ -751,7 +751,7 @@ function sr(e) {
751
751
  return [`--${n ?? s}`, i];
752
752
  }
753
753
  const ir = 4;
754
- function ls(e, t, n = 1) {
754
+ function us(e, t, n = 1) {
755
755
  I(n <= ir, `Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);
756
756
  const [s, i] = sr(e);
757
757
  if (!s)
@@ -759,25 +759,25 @@ function ls(e, t, n = 1) {
759
759
  const r = window.getComputedStyle(t).getPropertyValue(s);
760
760
  if (r) {
761
761
  const o = r.trim();
762
- return rs(o) ? parseFloat(o) : o;
762
+ return os(o) ? parseFloat(o) : o;
763
763
  }
764
- return pe(i) ? ls(i, t, n + 1) : i;
764
+ return pe(i) ? us(i, t, n + 1) : i;
765
765
  }
766
766
  const tt = {
767
767
  test: (e) => typeof e == "number",
768
768
  parse: parseFloat,
769
769
  transform: (e) => e
770
- }, lt = {
770
+ }, at = {
771
771
  ...tt,
772
772
  transform: (e) => H(0, 1, e)
773
- }, wt = {
773
+ }, bt = {
774
774
  ...tt,
775
775
  default: 1
776
- }, bt = (e) => ({
776
+ }, vt = (e) => ({
777
777
  test: (t) => typeof t == "string" && t.endsWith(e) && t.split(" ").length === 1,
778
778
  parse: parseFloat,
779
779
  transform: (t) => `${t}${e}`
780
- }), W = /* @__PURE__ */ bt("deg"), Z = /* @__PURE__ */ bt("%"), d = /* @__PURE__ */ bt("px"), rr = /* @__PURE__ */ bt("vh"), or = /* @__PURE__ */ bt("vw"), He = {
780
+ }), W = /* @__PURE__ */ vt("deg"), Z = /* @__PURE__ */ vt("%"), d = /* @__PURE__ */ vt("px"), rr = /* @__PURE__ */ vt("vh"), or = /* @__PURE__ */ vt("vw"), Ye = {
781
781
  ...Z,
782
782
  parse: (e) => Z.parse(e) / 100,
783
783
  transform: (e) => Z.transform(e * 100)
@@ -792,17 +792,17 @@ const tt = {
792
792
  "y",
793
793
  "translateX",
794
794
  "translateY"
795
- ]), Ye = (e) => e === tt || e === d, Xe = (e, t) => parseFloat(e.split(", ")[t]), qe = (e, t) => (n, { transform: s }) => {
795
+ ]), Xe = (e) => e === tt || e === d, qe = (e, t) => parseFloat(e.split(", ")[t]), Ze = (e, t) => (n, { transform: s }) => {
796
796
  if (s === "none" || !s)
797
797
  return 0;
798
798
  const i = s.match(/^matrix3d\((.+)\)$/u);
799
799
  if (i)
800
- return Xe(i[1], t);
800
+ return qe(i[1], t);
801
801
  {
802
802
  const r = s.match(/^matrix\((.+)\)$/u);
803
- return r ? Xe(r[1], e) : 0;
803
+ return r ? qe(r[1], e) : 0;
804
804
  }
805
- }, lr = /* @__PURE__ */ new Set(["x", "y", "z"]), ur = gt.filter((e) => !lr.has(e));
805
+ }, lr = /* @__PURE__ */ new Set(["x", "y", "z"]), ur = mt.filter((e) => !lr.has(e));
806
806
  function cr(e) {
807
807
  const t = [];
808
808
  return ur.forEach((n) => {
@@ -819,18 +819,18 @@ const Q = {
819
819
  bottom: ({ y: e }, { top: t }) => parseFloat(t) + (e.max - e.min),
820
820
  right: ({ x: e }, { left: t }) => parseFloat(t) + (e.max - e.min),
821
821
  // Transform
822
- x: qe(4, 13),
823
- y: qe(5, 14)
822
+ x: Ze(4, 13),
823
+ y: Ze(5, 14)
824
824
  };
825
825
  Q.translateX = Q.x;
826
826
  Q.translateY = Q.y;
827
- const us = (e) => (t) => t.test(e), fr = {
827
+ const cs = (e) => (t) => t.test(e), fr = {
828
828
  test: (e) => e === "auto",
829
829
  parse: (e) => e
830
- }, cs = [tt, d, Z, W, or, rr, fr], Ze = (e) => cs.find(us(e)), j = /* @__PURE__ */ new Set();
831
- let Yt = !1, Xt = !1;
832
- function fs() {
833
- if (Xt) {
830
+ }, fs = [tt, d, Z, W, or, rr, fr], Je = (e) => fs.find(cs(e)), j = /* @__PURE__ */ new Set();
831
+ let Xt = !1, qt = !1;
832
+ function hs() {
833
+ if (qt) {
834
834
  const e = Array.from(j).filter((s) => s.needsMeasurement), t = new Set(e.map((s) => s.element)), n = /* @__PURE__ */ new Map();
835
835
  t.forEach((s) => {
836
836
  const i = cr(s);
@@ -846,22 +846,22 @@ function fs() {
846
846
  s.suspendedScrollY !== void 0 && window.scrollTo(0, s.suspendedScrollY);
847
847
  });
848
848
  }
849
- Xt = !1, Yt = !1, j.forEach((e) => e.complete()), j.clear();
849
+ qt = !1, Xt = !1, j.forEach((e) => e.complete()), j.clear();
850
850
  }
851
- function hs() {
851
+ function ds() {
852
852
  j.forEach((e) => {
853
- e.readKeyframes(), e.needsMeasurement && (Xt = !0);
853
+ e.readKeyframes(), e.needsMeasurement && (qt = !0);
854
854
  });
855
855
  }
856
856
  function hr() {
857
- hs(), fs();
857
+ ds(), hs();
858
858
  }
859
859
  class me {
860
860
  constructor(t, n, s, i, r, o = !1) {
861
861
  this.isComplete = !1, this.isAsync = !1, this.needsMeasurement = !1, this.isScheduled = !1, this.unresolvedKeyframes = [...t], this.onComplete = n, this.name = s, this.motionValue = i, this.element = r, this.isAsync = o;
862
862
  }
863
863
  scheduleResolve() {
864
- this.isScheduled = !0, this.isAsync ? (j.add(this), Yt || (Yt = !0, M.read(hs), M.resolveKeyframes(fs))) : (this.readKeyframes(), this.complete());
864
+ this.isScheduled = !0, this.isAsync ? (j.add(this), Xt || (Xt = !0, M.read(ds), M.resolveKeyframes(hs))) : (this.readKeyframes(), this.complete());
865
865
  }
866
866
  readKeyframes() {
867
867
  const { unresolvedKeyframes: t, name: n, element: s, motionValue: i } = this;
@@ -901,7 +901,7 @@ const rt = (e) => Math.round(e * 1e5) / 1e5, ge = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
901
901
  function dr(e) {
902
902
  return e == null;
903
903
  }
904
- const pr = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, ye = (e, t) => (n) => !!(typeof n == "string" && pr.test(n) && n.startsWith(e) || t && !dr(n) && Object.prototype.hasOwnProperty.call(n, t)), ds = (e, t, n) => (s) => {
904
+ const pr = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, ye = (e, t) => (n) => !!(typeof n == "string" && pr.test(n) && n.startsWith(e) || t && !dr(n) && Object.prototype.hasOwnProperty.call(n, t)), ps = (e, t, n) => (s) => {
905
905
  if (typeof s != "string")
906
906
  return s;
907
907
  const [i, r, o, a] = s.match(ge);
@@ -916,8 +916,8 @@ const pr = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s
916
916
  transform: (e) => Math.round(mr(e))
917
917
  }, U = {
918
918
  test: /* @__PURE__ */ ye("rgb", "red"),
919
- parse: /* @__PURE__ */ ds("red", "green", "blue"),
920
- transform: ({ red: e, green: t, blue: n, alpha: s = 1 }) => "rgba(" + Wt.transform(e) + ", " + Wt.transform(t) + ", " + Wt.transform(n) + ", " + rt(lt.transform(s)) + ")"
919
+ parse: /* @__PURE__ */ ps("red", "green", "blue"),
920
+ transform: ({ red: e, green: t, blue: n, alpha: s = 1 }) => "rgba(" + Wt.transform(e) + ", " + Wt.transform(t) + ", " + Wt.transform(n) + ", " + rt(at.transform(s)) + ")"
921
921
  };
922
922
  function gr(e) {
923
923
  let t = "", n = "", s = "", i = "";
@@ -928,60 +928,60 @@ function gr(e) {
928
928
  alpha: i ? parseInt(i, 16) / 255 : 1
929
929
  };
930
930
  }
931
- const qt = {
931
+ const Zt = {
932
932
  test: /* @__PURE__ */ ye("#"),
933
933
  parse: gr,
934
934
  transform: U.transform
935
935
  }, q = {
936
936
  test: /* @__PURE__ */ ye("hsl", "hue"),
937
- parse: /* @__PURE__ */ ds("hue", "saturation", "lightness"),
938
- transform: ({ hue: e, saturation: t, lightness: n, alpha: s = 1 }) => "hsla(" + Math.round(e) + ", " + Z.transform(rt(t)) + ", " + Z.transform(rt(n)) + ", " + rt(lt.transform(s)) + ")"
937
+ parse: /* @__PURE__ */ ps("hue", "saturation", "lightness"),
938
+ transform: ({ hue: e, saturation: t, lightness: n, alpha: s = 1 }) => "hsla(" + Math.round(e) + ", " + Z.transform(rt(t)) + ", " + Z.transform(rt(n)) + ", " + rt(at.transform(s)) + ")"
939
939
  }, E = {
940
- test: (e) => U.test(e) || qt.test(e) || q.test(e),
941
- parse: (e) => U.test(e) ? U.parse(e) : q.test(e) ? q.parse(e) : qt.parse(e),
940
+ test: (e) => U.test(e) || Zt.test(e) || q.test(e),
941
+ parse: (e) => U.test(e) ? U.parse(e) : q.test(e) ? q.parse(e) : Zt.parse(e),
942
942
  transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? U.transform(e) : q.transform(e)
943
943
  }, yr = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
944
944
  function vr(e) {
945
945
  var t, n;
946
946
  return isNaN(e) && typeof e == "string" && (((t = e.match(ge)) === null || t === void 0 ? void 0 : t.length) || 0) + (((n = e.match(yr)) === null || n === void 0 ? void 0 : n.length) || 0) > 0;
947
947
  }
948
- const ps = "number", ms = "color", br = "var", wr = "var(", Je = "${}", Sr = /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;
949
- function ut(e) {
948
+ const ms = "number", gs = "color", br = "var", Sr = "var(", Qe = "${}", wr = /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;
949
+ function lt(e) {
950
950
  const t = e.toString(), n = [], s = {
951
951
  color: [],
952
952
  number: [],
953
953
  var: []
954
954
  }, i = [];
955
955
  let r = 0;
956
- const a = t.replace(Sr, (l) => (E.test(l) ? (s.color.push(r), i.push(ms), n.push(E.parse(l))) : l.startsWith(wr) ? (s.var.push(r), i.push(br), n.push(l)) : (s.number.push(r), i.push(ps), n.push(parseFloat(l))), ++r, Je)).split(Je);
956
+ const a = t.replace(wr, (l) => (E.test(l) ? (s.color.push(r), i.push(gs), n.push(E.parse(l))) : l.startsWith(Sr) ? (s.var.push(r), i.push(br), n.push(l)) : (s.number.push(r), i.push(ms), n.push(parseFloat(l))), ++r, Qe)).split(Qe);
957
957
  return { values: n, split: a, indexes: s, types: i };
958
958
  }
959
- function gs(e) {
960
- return ut(e).values;
961
- }
962
959
  function ys(e) {
963
- const { split: t, types: n } = ut(e), s = t.length;
960
+ return lt(e).values;
961
+ }
962
+ function vs(e) {
963
+ const { split: t, types: n } = lt(e), s = t.length;
964
964
  return (i) => {
965
965
  let r = "";
966
966
  for (let o = 0; o < s; o++)
967
967
  if (r += t[o], i[o] !== void 0) {
968
968
  const a = n[o];
969
- a === ps ? r += rt(i[o]) : a === ms ? r += E.transform(i[o]) : r += i[o];
969
+ a === ms ? r += rt(i[o]) : a === gs ? r += E.transform(i[o]) : r += i[o];
970
970
  }
971
971
  return r;
972
972
  };
973
973
  }
974
974
  const Tr = (e) => typeof e == "number" ? 0 : e;
975
- function Vr(e) {
976
- const t = gs(e);
977
- return ys(e)(t.map(Tr));
975
+ function xr(e) {
976
+ const t = ys(e);
977
+ return vs(e)(t.map(Tr));
978
978
  }
979
979
  const et = {
980
980
  test: vr,
981
- parse: gs,
982
- createTransformer: ys,
983
- getAnimatableNone: Vr
984
- }, xr = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
981
+ parse: ys,
982
+ createTransformer: vs,
983
+ getAnimatableNone: xr
984
+ }, Vr = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
985
985
  function Ar(e) {
986
986
  const [t, n] = e.slice(0, -1).split("(");
987
987
  if (t === "drop-shadow")
@@ -990,16 +990,16 @@ function Ar(e) {
990
990
  if (!s)
991
991
  return e;
992
992
  const i = n.replace(s, "");
993
- let r = xr.has(t) ? 1 : 0;
993
+ let r = Vr.has(t) ? 1 : 0;
994
994
  return s !== n && (r *= 100), t + "(" + r + i + ")";
995
995
  }
996
- const Mr = /\b([a-z-]*)\(.*?\)/gu, Zt = {
996
+ const Mr = /\b([a-z-]*)\(.*?\)/gu, Jt = {
997
997
  ...et,
998
998
  getAnimatableNone: (e) => {
999
999
  const t = e.match(Mr);
1000
1000
  return t ? t.map(Ar).join(" ") : e;
1001
1001
  }
1002
- }, Jt = {
1002
+ }, Qt = {
1003
1003
  // Border props
1004
1004
  borderWidth: d,
1005
1005
  borderTopWidth: d,
@@ -1040,10 +1040,10 @@ const Mr = /\b([a-z-]*)\(.*?\)/gu, Zt = {
1040
1040
  rotateX: W,
1041
1041
  rotateY: W,
1042
1042
  rotateZ: W,
1043
- scale: wt,
1044
- scaleX: wt,
1045
- scaleY: wt,
1046
- scaleZ: wt,
1043
+ scale: bt,
1044
+ scaleX: bt,
1045
+ scaleY: bt,
1046
+ scaleZ: bt,
1047
1047
  skew: W,
1048
1048
  skewX: W,
1049
1049
  skewY: W,
@@ -1056,22 +1056,22 @@ const Mr = /\b([a-z-]*)\(.*?\)/gu, Zt = {
1056
1056
  z: d,
1057
1057
  perspective: d,
1058
1058
  transformPerspective: d,
1059
- opacity: lt,
1060
- originX: He,
1061
- originY: He,
1059
+ opacity: at,
1060
+ originX: Ye,
1061
+ originY: Ye,
1062
1062
  originZ: d
1063
- }, Qe = {
1063
+ }, tn = {
1064
1064
  ...tt,
1065
1065
  transform: Math.round
1066
1066
  }, ve = {
1067
- ...Jt,
1067
+ ...Qt,
1068
1068
  ...Er,
1069
- zIndex: Qe,
1069
+ zIndex: tn,
1070
1070
  size: d,
1071
1071
  // SVG
1072
- fillOpacity: lt,
1073
- strokeOpacity: lt,
1074
- numOctaves: Qe
1072
+ fillOpacity: at,
1073
+ strokeOpacity: at,
1074
+ numOctaves: tn
1075
1075
  }, Pr = {
1076
1076
  ...ve,
1077
1077
  // Color props
@@ -1086,25 +1086,25 @@ const Mr = /\b([a-z-]*)\(.*?\)/gu, Zt = {
1086
1086
  borderRightColor: E,
1087
1087
  borderBottomColor: E,
1088
1088
  borderLeftColor: E,
1089
- filter: Zt,
1090
- WebkitFilter: Zt
1089
+ filter: Jt,
1090
+ WebkitFilter: Jt
1091
1091
  }, be = (e) => Pr[e];
1092
- function vs(e, t) {
1092
+ function bs(e, t) {
1093
1093
  let n = be(e);
1094
- return n !== Zt && (n = et), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
1094
+ return n !== Jt && (n = et), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
1095
1095
  }
1096
1096
  const Cr = /* @__PURE__ */ new Set(["auto", "none", "0"]);
1097
1097
  function Fr(e, t, n) {
1098
1098
  let s = 0, i;
1099
1099
  for (; s < e.length && !i; ) {
1100
1100
  const r = e[s];
1101
- typeof r == "string" && !Cr.has(r) && ut(r).values.length && (i = e[s]), s++;
1101
+ typeof r == "string" && !Cr.has(r) && lt(r).values.length && (i = e[s]), s++;
1102
1102
  }
1103
1103
  if (i && n)
1104
1104
  for (const r of t)
1105
- e[r] = vs(n, i);
1105
+ e[r] = bs(n, i);
1106
1106
  }
1107
- class bs extends me {
1107
+ class Ss extends me {
1108
1108
  constructor(t, n, s, i, r) {
1109
1109
  super(t, n, s, i, r, !0);
1110
1110
  }
@@ -1116,15 +1116,15 @@ class bs extends me {
1116
1116
  for (let l = 0; l < t.length; l++) {
1117
1117
  let u = t[l];
1118
1118
  if (typeof u == "string" && (u = u.trim(), pe(u))) {
1119
- const c = ls(u, n.current);
1119
+ const c = us(u, n.current);
1120
1120
  c !== void 0 && (t[l] = c), l === t.length - 1 && (this.finalKeyframe = u);
1121
1121
  }
1122
1122
  }
1123
1123
  if (this.resolveNoneKeyframes(), !ar.has(s) || t.length !== 2)
1124
1124
  return;
1125
- const [i, r] = t, o = Ze(i), a = Ze(r);
1125
+ const [i, r] = t, o = Je(i), a = Je(r);
1126
1126
  if (o !== a)
1127
- if (Ye(o) && Ye(a))
1127
+ if (Xe(o) && Xe(a))
1128
1128
  for (let l = 0; l < t.length; l++) {
1129
1129
  const u = t[l];
1130
1130
  typeof u == "string" && (t[l] = parseFloat(u));
@@ -1159,7 +1159,7 @@ class bs extends me {
1159
1159
  }), this.resolveNoneKeyframes();
1160
1160
  }
1161
1161
  }
1162
- const tn = (e, t) => t === "zIndex" ? !1 : !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && // It's animatable if we have a string
1162
+ const en = (e, t) => t === "zIndex" ? !1 : !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && // It's animatable if we have a string
1163
1163
  (et.test(e) || e === "0") && // And it contains numbers and/or colors
1164
1164
  !e.startsWith("url("));
1165
1165
  function Or(e) {
@@ -1176,8 +1176,8 @@ function Dr(e, t, n, s) {
1176
1176
  return !1;
1177
1177
  if (t === "display" || t === "visibility")
1178
1178
  return !0;
1179
- const r = e[e.length - 1], o = tn(i, t), a = tn(r, t);
1180
- return ht(o === a, `You are trying to animate ${t} from "${i}" to "${r}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${r} via the \`style\` property.`), !o || !a ? !1 : Or(e) || (n === "spring" || mt(n)) && s;
1179
+ const r = e[e.length - 1], o = en(i, t), a = en(r, t);
1180
+ return ft(o === a, `You are trying to animate ${t} from "${i}" to "${r}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${r} via the \`style\` property.`), !o || !a ? !1 : Or(e) || (n === "spring" || pt(n)) && s;
1181
1181
  }
1182
1182
  const Br = 40;
1183
1183
  class ws {
@@ -1225,7 +1225,7 @@ class ws {
1225
1225
  if (o)
1226
1226
  this.options.duration = 0;
1227
1227
  else {
1228
- l == null || l(yt(t, this.options, n)), a == null || a(), this.resolveFinishedPromise();
1228
+ l == null || l(gt(t, this.options, n)), a == null || a(), this.resolveFinishedPromise();
1229
1229
  return;
1230
1230
  }
1231
1231
  const c = this.initPlayback(t, n);
@@ -1251,23 +1251,23 @@ class ws {
1251
1251
  });
1252
1252
  }
1253
1253
  }
1254
- function en({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: s = 325, bounceDamping: i = 10, bounceStiffness: r = 500, modifyTarget: o, min: a, max: l, restDelta: u = 0.5, restSpeed: c }) {
1254
+ function nn({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: s = 325, bounceDamping: i = 10, bounceStiffness: r = 500, modifyTarget: o, min: a, max: l, restDelta: u = 0.5, restSpeed: c }) {
1255
1255
  const f = e[0], h = {
1256
1256
  done: !1,
1257
1257
  value: f
1258
1258
  }, p = (v) => a !== void 0 && v < a || l !== void 0 && v > l, m = (v) => a === void 0 ? l : l === void 0 || Math.abs(a - v) < Math.abs(l - v) ? a : l;
1259
- let w = n * t;
1260
- const b = f + w, g = o === void 0 ? b : o(b);
1261
- g !== b && (w = g - f);
1262
- const y = (v) => -w * Math.exp(-v / s), T = (v) => g + y(v), V = (v) => {
1263
- const x = y(v), O = T(v);
1264
- h.done = Math.abs(x) <= u, h.value = h.done ? g : O;
1259
+ let S = n * t;
1260
+ const b = f + S, g = o === void 0 ? b : o(b);
1261
+ g !== b && (S = g - f);
1262
+ const y = (v) => -S * Math.exp(-v / s), T = (v) => g + y(v), x = (v) => {
1263
+ const V = y(v), O = T(v);
1264
+ h.done = Math.abs(V) <= u, h.value = h.done ? g : O;
1265
1265
  };
1266
- let S, A;
1266
+ let w, A;
1267
1267
  const F = (v) => {
1268
- p(h.value) && (S = v, A = le({
1268
+ p(h.value) && (w = v, A = le({
1269
1269
  keyframes: [h.value, m(h.value)],
1270
- velocity: Un(T, v, h.value),
1270
+ velocity: jn(T, v, h.value),
1271
1271
  // TODO: This should be passing * 1000
1272
1272
  damping: i,
1273
1273
  stiffness: r,
@@ -1278,33 +1278,33 @@ function en({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: s = 3
1278
1278
  return F(0), {
1279
1279
  calculatedDuration: null,
1280
1280
  next: (v) => {
1281
- let x = !1;
1282
- return !A && S === void 0 && (x = !0, V(v), F(v)), S !== void 0 && v >= S ? A.next(v - S) : (!x && V(v), h);
1281
+ let V = !1;
1282
+ return !A && w === void 0 && (V = !0, x(v), F(v)), w !== void 0 && v >= w ? A.next(v - w) : (!V && x(v), h);
1283
1283
  }
1284
1284
  };
1285
1285
  }
1286
- const Rr = /* @__PURE__ */ vt(0.42, 0, 1, 1), Ir = /* @__PURE__ */ vt(0, 0, 0.58, 1), Ss = /* @__PURE__ */ vt(0.42, 0, 0.58, 1), we = (e) => Array.isArray(e) && typeof e[0] == "number", nn = {
1286
+ const Rr = /* @__PURE__ */ yt(0.42, 0, 1, 1), Ir = /* @__PURE__ */ yt(0, 0, 0.58, 1), Ts = /* @__PURE__ */ yt(0.42, 0, 0.58, 1), Se = (e) => Array.isArray(e) && typeof e[0] == "number", sn = {
1287
1287
  linear: K,
1288
1288
  easeIn: Rr,
1289
- easeInOut: Ss,
1289
+ easeInOut: Ts,
1290
1290
  easeOut: Ir,
1291
1291
  circIn: de,
1292
- circInOut: ss,
1292
+ circInOut: is,
1293
1293
  circOut: Ji,
1294
1294
  backIn: he,
1295
- backInOut: es,
1296
- backOut: ts,
1297
- anticipate: ns
1298
- }, Qt = (e) => {
1299
- if (we(e)) {
1295
+ backInOut: ns,
1296
+ backOut: es,
1297
+ anticipate: ss
1298
+ }, te = (e) => {
1299
+ if (Se(e)) {
1300
1300
  I(e.length === 4, "Cubic bezier arrays must contain four numerical values.");
1301
1301
  const [t, n, s, i] = e;
1302
- return vt(t, n, s, i);
1302
+ return yt(t, n, s, i);
1303
1303
  } else if (typeof e == "string")
1304
- return I(nn[e] !== void 0, `Invalid easing type '${e}'`), nn[e];
1304
+ return I(sn[e] !== void 0, `Invalid easing type '${e}'`), sn[e];
1305
1305
  return e;
1306
- }, Lr = (e, t) => (n) => t(e(n)), Se = (...e) => e.reduce(Lr);
1307
- function kt(e, t, n) {
1306
+ }, Lr = (e, t) => (n) => t(e(n)), we = (...e) => e.reduce(Lr);
1307
+ function _t(e, t, n) {
1308
1308
  return n < 0 && (n += 1), n > 1 && (n -= 1), n < 1 / 6 ? e + (t - e) * 6 * n : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e;
1309
1309
  }
1310
1310
  function Nr({ hue: e, saturation: t, lightness: n, alpha: s }) {
@@ -1314,7 +1314,7 @@ function Nr({ hue: e, saturation: t, lightness: n, alpha: s }) {
1314
1314
  i = r = o = n;
1315
1315
  else {
1316
1316
  const a = n < 0.5 ? n * (1 + t) : n + t - n * t, l = 2 * n - a;
1317
- i = kt(l, a, e + 1 / 3), r = kt(l, a, e), o = kt(l, a, e - 1 / 3);
1317
+ i = _t(l, a, e + 1 / 3), r = _t(l, a, e), o = _t(l, a, e - 1 / 3);
1318
1318
  }
1319
1319
  return {
1320
1320
  red: Math.round(i * 255),
@@ -1323,37 +1323,37 @@ function Nr({ hue: e, saturation: t, lightness: n, alpha: s }) {
1323
1323
  alpha: s
1324
1324
  };
1325
1325
  }
1326
- function At(e, t) {
1326
+ function Vt(e, t) {
1327
1327
  return (n) => n > 0 ? t : e;
1328
1328
  }
1329
- const _t = (e, t, n) => {
1329
+ const kt = (e, t, n) => {
1330
1330
  const s = e * e, i = n * (t * t - s) + s;
1331
1331
  return i < 0 ? 0 : Math.sqrt(i);
1332
- }, $r = [qt, U, q], Kr = (e) => $r.find((t) => t.test(e));
1333
- function sn(e) {
1332
+ }, $r = [Zt, U, q], Kr = (e) => $r.find((t) => t.test(e));
1333
+ function rn(e) {
1334
1334
  const t = Kr(e);
1335
- if (ht(!!t, `'${e}' is not an animatable color. Use the equivalent color code instead.`), !t)
1335
+ if (ft(!!t, `'${e}' is not an animatable color. Use the equivalent color code instead.`), !t)
1336
1336
  return !1;
1337
1337
  let n = t.parse(e);
1338
1338
  return t === q && (n = Nr(n)), n;
1339
1339
  }
1340
- const rn = (e, t) => {
1341
- const n = sn(e), s = sn(t);
1340
+ const on = (e, t) => {
1341
+ const n = rn(e), s = rn(t);
1342
1342
  if (!n || !s)
1343
- return At(e, t);
1343
+ return Vt(e, t);
1344
1344
  const i = { ...n };
1345
- return (r) => (i.red = _t(n.red, s.red, r), i.green = _t(n.green, s.green, r), i.blue = _t(n.blue, s.blue, r), i.alpha = dt(n.alpha, s.alpha, r), U.transform(i));
1346
- }, te = /* @__PURE__ */ new Set(["none", "hidden"]);
1345
+ return (r) => (i.red = kt(n.red, s.red, r), i.green = kt(n.green, s.green, r), i.blue = kt(n.blue, s.blue, r), i.alpha = ht(n.alpha, s.alpha, r), U.transform(i));
1346
+ }, ee = /* @__PURE__ */ new Set(["none", "hidden"]);
1347
1347
  function Wr(e, t) {
1348
- return te.has(e) ? (n) => n <= 0 ? e : t : (n) => n >= 1 ? t : e;
1348
+ return ee.has(e) ? (n) => n <= 0 ? e : t : (n) => n >= 1 ? t : e;
1349
1349
  }
1350
- function kr(e, t) {
1351
- return (n) => dt(e, t, n);
1350
+ function _r(e, t) {
1351
+ return (n) => ht(e, t, n);
1352
1352
  }
1353
1353
  function Te(e) {
1354
- return typeof e == "number" ? kr : typeof e == "string" ? pe(e) ? At : E.test(e) ? rn : zr : Array.isArray(e) ? Ts : typeof e == "object" ? E.test(e) ? rn : _r : At;
1354
+ return typeof e == "number" ? _r : typeof e == "string" ? pe(e) ? Vt : E.test(e) ? on : zr : Array.isArray(e) ? xs : typeof e == "object" ? E.test(e) ? on : kr : Vt;
1355
1355
  }
1356
- function Ts(e, t) {
1356
+ function xs(e, t) {
1357
1357
  const n = [...e], s = n.length, i = e.map((r, o) => Te(r)(r, t[o]));
1358
1358
  return (r) => {
1359
1359
  for (let o = 0; o < s; o++)
@@ -1361,7 +1361,7 @@ function Ts(e, t) {
1361
1361
  return n;
1362
1362
  };
1363
1363
  }
1364
- function _r(e, t) {
1364
+ function kr(e, t) {
1365
1365
  const n = { ...e, ...t }, s = {};
1366
1366
  for (const i in n)
1367
1367
  e[i] !== void 0 && t[i] !== void 0 && (s[i] = Te(e[i])(e[i], t[i]));
@@ -1381,11 +1381,11 @@ function Gr(e, t) {
1381
1381
  return s;
1382
1382
  }
1383
1383
  const zr = (e, t) => {
1384
- const n = et.createTransformer(t), s = ut(e), i = ut(t);
1385
- return s.indexes.var.length === i.indexes.var.length && s.indexes.color.length === i.indexes.color.length && s.indexes.number.length >= i.indexes.number.length ? te.has(e) && !i.values.length || te.has(t) && !s.values.length ? Wr(e, t) : Se(Ts(Gr(s, i), i.values), n) : (ht(!0, `Complex values '${e}' and '${t}' 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.`), At(e, t));
1384
+ const n = et.createTransformer(t), s = lt(e), i = lt(t);
1385
+ return s.indexes.var.length === i.indexes.var.length && s.indexes.color.length === i.indexes.color.length && s.indexes.number.length >= i.indexes.number.length ? ee.has(e) && !i.values.length || ee.has(t) && !s.values.length ? Wr(e, t) : we(xs(Gr(s, i), i.values), n) : (ft(!0, `Complex values '${e}' and '${t}' 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.`), Vt(e, t));
1386
1386
  };
1387
1387
  function Vs(e, t, n) {
1388
- return typeof e == "number" && typeof t == "number" && typeof n == "number" ? dt(e, t, n) : Te(e)(e, t);
1388
+ return typeof e == "number" && typeof t == "number" && typeof n == "number" ? ht(e, t, n) : Te(e)(e, t);
1389
1389
  }
1390
1390
  function Ur(e, t, n) {
1391
1391
  const s = [], i = n || Vs, r = e.length - 1;
@@ -1393,13 +1393,13 @@ function Ur(e, t, n) {
1393
1393
  let a = i(e[o], e[o + 1]);
1394
1394
  if (t) {
1395
1395
  const l = Array.isArray(t) ? t[o] || K : t;
1396
- a = Se(l, a);
1396
+ a = we(l, a);
1397
1397
  }
1398
1398
  s.push(a);
1399
1399
  }
1400
1400
  return s;
1401
1401
  }
1402
- function Ve(e, t, { clamp: n = !0, ease: s, mixer: i } = {}) {
1402
+ function xe(e, t, { clamp: n = !0, ease: s, mixer: i } = {}) {
1403
1403
  const r = e.length;
1404
1404
  if (I(r === t.length, "Both input and output ranges must be the same length"), r === 1)
1405
1405
  return () => t[0];
@@ -1411,7 +1411,7 @@ function Ve(e, t, { clamp: n = !0, ease: s, mixer: i } = {}) {
1411
1411
  if (a > 1)
1412
1412
  for (; c < e.length - 2 && !(u < e[c + 1]); c++)
1413
1413
  ;
1414
- const f = pt(e[c], e[c + 1], u);
1414
+ const f = dt(e[c], e[c + 1], u);
1415
1415
  return o[c](f);
1416
1416
  };
1417
1417
  return n ? (u) => l(H(e[0], e[r - 1], u)) : l;
@@ -1420,10 +1420,10 @@ function jr(e, t) {
1420
1420
  return e.map((n) => n * t);
1421
1421
  }
1422
1422
  function Hr(e, t) {
1423
- return e.map(() => t || Ss).splice(0, e.length - 1);
1423
+ return e.map(() => t || Ts).splice(0, e.length - 1);
1424
1424
  }
1425
- function Mt({ duration: e = 300, keyframes: t, times: n, ease: s = "easeInOut" }) {
1426
- const i = qn(s) ? s.map(Qt) : Qt(s), r = {
1425
+ function At({ duration: e = 300, keyframes: t, times: n, ease: s = "easeInOut" }) {
1426
+ const i = Zn(s) ? s.map(te) : te(s), r = {
1427
1427
  done: !1,
1428
1428
  value: t[0]
1429
1429
  }, o = jr(
@@ -1431,7 +1431,7 @@ function Mt({ duration: e = 300, keyframes: t, times: n, ease: s = "easeInOut" }
1431
1431
  // TODO Maybe we should warn here if there's a length mismatch
1432
1432
  n && n.length === t.length ? n : ue(t),
1433
1433
  e
1434
- ), a = Ve(o, t, {
1434
+ ), a = xe(o, t, {
1435
1435
  ease: Array.isArray(i) ? i : Hr(t, i)
1436
1436
  });
1437
1437
  return {
@@ -1451,10 +1451,10 @@ const Yr = (e) => {
1451
1451
  now: () => J.isProcessing ? J.timestamp : N.now()
1452
1452
  };
1453
1453
  }, Xr = {
1454
- decay: en,
1455
- inertia: en,
1456
- tween: Mt,
1457
- keyframes: Mt,
1454
+ decay: nn,
1455
+ inertia: nn,
1456
+ tween: At,
1457
+ keyframes: At,
1458
1458
  spring: le
1459
1459
  }, qr = (e) => e / 100;
1460
1460
  class Lt extends ws {
@@ -1470,15 +1470,15 @@ class Lt extends ws {
1470
1470
  this.resolver = new o(r, a, n, s, i), this.resolver.scheduleResolve();
1471
1471
  }
1472
1472
  initPlayback(t) {
1473
- const { type: n = "keyframes", repeat: s = 0, repeatDelay: i = 0, repeatType: r, velocity: o = 0 } = this.options, a = mt(n) ? n : Xr[n] || Mt;
1473
+ const { type: n = "keyframes", repeat: s = 0, repeatDelay: i = 0, repeatType: r, velocity: o = 0 } = this.options, a = pt(n) ? n : Xr[n] || At;
1474
1474
  let l, u;
1475
- a !== Mt && typeof t[0] != "number" && (process.env.NODE_ENV !== "production" && I(t.length === 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`), l = Se(qr, Vs(t[0], t[1])), t = [0, 100]);
1475
+ a !== At && typeof t[0] != "number" && (process.env.NODE_ENV !== "production" && I(t.length === 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`), l = we(qr, Vs(t[0], t[1])), t = [0, 100]);
1476
1476
  const c = a({ ...this.options, keyframes: t });
1477
1477
  r === "mirror" && (u = a({
1478
1478
  ...this.options,
1479
1479
  keyframes: [...t].reverse(),
1480
1480
  velocity: -o
1481
- })), c.calculatedDuration === null && (c.calculatedDuration = jn(c));
1481
+ })), c.calculatedDuration === null && (c.calculatedDuration = Hn(c));
1482
1482
  const { calculatedDuration: f } = c, h = f + i, p = h * (s + 1) - i;
1483
1483
  return {
1484
1484
  generator: c,
@@ -1502,22 +1502,22 @@ class Lt extends ws {
1502
1502
  const { finalKeyframe: i, generator: r, mirroredGenerator: o, mapPercentToKeyframes: a, keyframes: l, calculatedDuration: u, totalDuration: c, resolvedDuration: f } = s;
1503
1503
  if (this.startTime === null)
1504
1504
  return r.next(0);
1505
- const { delay: h, repeat: p, repeatType: m, repeatDelay: w, onUpdate: b } = this.options;
1505
+ const { delay: h, repeat: p, repeatType: m, repeatDelay: S, onUpdate: b } = this.options;
1506
1506
  this.speed > 0 ? this.startTime = Math.min(this.startTime, t) : this.speed < 0 && (this.startTime = Math.min(t - c / this.speed, this.startTime)), n ? this.currentTime = t : this.holdTime !== null ? this.currentTime = this.holdTime : this.currentTime = Math.round(t - this.startTime) * this.speed;
1507
1507
  const g = this.currentTime - h * (this.speed >= 0 ? 1 : -1), y = this.speed >= 0 ? g < 0 : g > c;
1508
1508
  this.currentTime = Math.max(g, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = c);
1509
- let T = this.currentTime, V = r;
1509
+ let T = this.currentTime, x = r;
1510
1510
  if (p) {
1511
1511
  const v = Math.min(this.currentTime, c) / f;
1512
- let x = Math.floor(v), O = v % 1;
1513
- !O && v >= 1 && (O = 1), O === 1 && x--, x = Math.min(x, p + 1), !!(x % 2) && (m === "reverse" ? (O = 1 - O, w && (O -= w / f)) : m === "mirror" && (V = o)), T = H(0, 1, O) * f;
1512
+ let V = Math.floor(v), O = v % 1;
1513
+ !O && v >= 1 && (O = 1), O === 1 && V--, V = Math.min(V, p + 1), !!(V % 2) && (m === "reverse" ? (O = 1 - O, S && (O -= S / f)) : m === "mirror" && (x = o)), T = H(0, 1, O) * f;
1514
1514
  }
1515
- const S = y ? { done: !1, value: l[0] } : V.next(T);
1516
- a && (S.value = a(S.value));
1517
- let { done: A } = S;
1515
+ const w = y ? { done: !1, value: l[0] } : x.next(T);
1516
+ a && (w.value = a(w.value));
1517
+ let { done: A } = w;
1518
1518
  !y && u !== null && (A = this.speed >= 0 ? this.currentTime >= c : this.currentTime <= 0);
1519
1519
  const F = this.holdTime === null && (this.state === "finished" || this.state === "running" && A);
1520
- return F && i !== void 0 && (S.value = yt(l, this.options, i)), b && b(S.value), F && this.finish(), S;
1520
+ return F && i !== void 0 && (w.value = gt(l, this.options, i)), b && b(w.value), F && this.finish(), w;
1521
1521
  }
1522
1522
  get duration() {
1523
1523
  const { resolved: t } = this;
@@ -1592,7 +1592,7 @@ const Jr = /* @__PURE__ */ new Set([
1592
1592
  let n = "";
1593
1593
  const s = Math.max(Math.round(t / Qr), 2);
1594
1594
  for (let i = 0; i < s; i++)
1595
- n += e(pt(0, s - 1, i)) + ", ";
1595
+ n += e(dt(0, s - 1, i)) + ", ";
1596
1596
  return `linear(${n.substring(0, n.length - 2)})`;
1597
1597
  }, eo = {
1598
1598
  linearEasing: void 0
@@ -1604,7 +1604,7 @@ function no(e, t) {
1604
1604
  return (s = eo[t]) !== null && s !== void 0 ? s : n();
1605
1605
  };
1606
1606
  }
1607
- const ct = /* @__PURE__ */ no(() => {
1607
+ const ut = /* @__PURE__ */ no(() => {
1608
1608
  try {
1609
1609
  document.createElement("div").animate({ opacity: 0 }, { easing: "linear(0, 1)" });
1610
1610
  } catch {
@@ -1612,10 +1612,10 @@ const ct = /* @__PURE__ */ no(() => {
1612
1612
  }
1613
1613
  return !0;
1614
1614
  }, "linearEasing");
1615
- function xs(e) {
1616
- return !!(typeof e == "function" && ct() || !e || typeof e == "string" && (e in ee || ct()) || we(e) || Array.isArray(e) && e.every(xs));
1615
+ function As(e) {
1616
+ return !!(typeof e == "function" && ut() || !e || typeof e == "string" && (e in ne || ut()) || Se(e) || Array.isArray(e) && e.every(As));
1617
1617
  }
1618
- const it = ([e, t, n, s]) => `cubic-bezier(${e}, ${t}, ${n}, ${s})`, ee = {
1618
+ const it = ([e, t, n, s]) => `cubic-bezier(${e}, ${t}, ${n}, ${s})`, ne = {
1619
1619
  linear: "linear",
1620
1620
  ease: "ease",
1621
1621
  easeIn: "ease-in",
@@ -1626,14 +1626,14 @@ const it = ([e, t, n, s]) => `cubic-bezier(${e}, ${t}, ${n}, ${s})`, ee = {
1626
1626
  backIn: /* @__PURE__ */ it([0.31, 0.01, 0.66, -0.59]),
1627
1627
  backOut: /* @__PURE__ */ it([0.33, 1.53, 0.69, 0.99])
1628
1628
  };
1629
- function As(e, t) {
1629
+ function Ms(e, t) {
1630
1630
  if (e)
1631
- return typeof e == "function" && ct() ? to(e, t) : we(e) ? it(e) : Array.isArray(e) ? e.map((n) => As(n, t) || ee.easeOut) : ee[e];
1631
+ return typeof e == "function" && ut() ? to(e, t) : Se(e) ? it(e) : Array.isArray(e) ? e.map((n) => Ms(n, t) || ne.easeOut) : ne[e];
1632
1632
  }
1633
- function Ms(e, t, n, { delay: s = 0, duration: i = 300, repeat: r = 0, repeatType: o = "loop", ease: a, times: l } = {}) {
1633
+ function Es(e, t, n, { delay: s = 0, duration: i = 300, repeat: r = 0, repeatType: o = "loop", ease: a, times: l } = {}) {
1634
1634
  const u = { [t]: n };
1635
1635
  l && (u.offset = l);
1636
- const c = As(a, i);
1636
+ const c = Ms(a, i);
1637
1637
  return Array.isArray(c) && (u.easing = c), e.animate(u, {
1638
1638
  delay: s,
1639
1639
  duration: i,
@@ -1643,12 +1643,12 @@ function Ms(e, t, n, { delay: s = 0, duration: i = 300, repeat: r = 0, repeatTyp
1643
1643
  direction: o === "reverse" ? "alternate" : "normal"
1644
1644
  });
1645
1645
  }
1646
- function Et(e, t) {
1646
+ function Mt(e, t) {
1647
1647
  e.timeline = t, e.onfinish = null;
1648
1648
  }
1649
- const Es = /* @__PURE__ */ Rt(() => Object.hasOwnProperty.call(Element.prototype, "animate")), Pt = 10, so = 2e4;
1649
+ const Ps = /* @__PURE__ */ Rt(() => Object.hasOwnProperty.call(Element.prototype, "animate")), Et = 10, so = 2e4;
1650
1650
  function io(e) {
1651
- return mt(e.type) || e.type === "spring" || !xs(e.ease);
1651
+ return pt(e.type) || e.type === "spring" || !As(e.ease);
1652
1652
  }
1653
1653
  function ro(e, t) {
1654
1654
  const n = new Lt({
@@ -1662,41 +1662,41 @@ function ro(e, t) {
1662
1662
  const i = [];
1663
1663
  let r = 0;
1664
1664
  for (; !s.done && r < so; )
1665
- s = n.sample(r), i.push(s.value), r += Pt;
1665
+ s = n.sample(r), i.push(s.value), r += Et;
1666
1666
  return {
1667
1667
  times: void 0,
1668
1668
  keyframes: i,
1669
- duration: r - Pt,
1669
+ duration: r - Et,
1670
1670
  ease: "linear"
1671
1671
  };
1672
1672
  }
1673
- const Ps = {
1674
- anticipate: ns,
1675
- backInOut: es,
1676
- circInOut: ss
1673
+ const Cs = {
1674
+ anticipate: ss,
1675
+ backInOut: ns,
1676
+ circInOut: is
1677
1677
  };
1678
1678
  function oo(e) {
1679
- return e in Ps;
1679
+ return e in Cs;
1680
1680
  }
1681
- class on extends ws {
1681
+ class an extends ws {
1682
1682
  constructor(t) {
1683
1683
  super(t);
1684
1684
  const { name: n, motionValue: s, element: i, keyframes: r } = this.options;
1685
- this.resolver = new bs(r, (o, a) => this.onKeyframesResolved(o, a), n, s, i), this.resolver.scheduleResolve();
1685
+ this.resolver = new Ss(r, (o, a) => this.onKeyframesResolved(o, a), n, s, i), this.resolver.scheduleResolve();
1686
1686
  }
1687
1687
  initPlayback(t, n) {
1688
1688
  var s;
1689
1689
  let { duration: i = 300, times: r, ease: o, type: a, motionValue: l, name: u, startTime: c } = this.options;
1690
1690
  if (!(!((s = l.owner) === null || s === void 0) && s.current))
1691
1691
  return !1;
1692
- if (typeof o == "string" && ct() && oo(o) && (o = Ps[o]), io(this.options)) {
1693
- const { onComplete: h, onUpdate: p, motionValue: m, element: w, ...b } = this.options, g = ro(t, b);
1692
+ if (typeof o == "string" && ut() && oo(o) && (o = Cs[o]), io(this.options)) {
1693
+ const { onComplete: h, onUpdate: p, motionValue: m, element: S, ...b } = this.options, g = ro(t, b);
1694
1694
  t = g.keyframes, t.length === 1 && (t[1] = t[0]), i = g.duration, r = g.times, o = g.ease, a = "keyframes";
1695
1695
  }
1696
- const f = Ms(l.owner.current, u, t, { ...this.options, duration: i, times: r, ease: o });
1697
- return f.startTime = c ?? this.calcStartTime(), this.pendingTimeline ? (Et(f, this.pendingTimeline), this.pendingTimeline = void 0) : f.onfinish = () => {
1696
+ const f = Es(l.owner.current, u, t, { ...this.options, duration: i, times: r, ease: o });
1697
+ return f.startTime = c ?? this.calcStartTime(), this.pendingTimeline ? (Mt(f, this.pendingTimeline), this.pendingTimeline = void 0) : f.onfinish = () => {
1698
1698
  const { onComplete: h } = this.options;
1699
- l.set(yt(t, this.options, n)), h && h(), this.cancel(), this.resolveFinishedPromise();
1699
+ l.set(gt(t, this.options, n)), h && h(), this.cancel(), this.resolveFinishedPromise();
1700
1700
  }, {
1701
1701
  animation: f,
1702
1702
  duration: i,
@@ -1767,7 +1767,7 @@ class on extends ws {
1767
1767
  if (!n)
1768
1768
  return K;
1769
1769
  const { animation: s } = n;
1770
- Et(s, t);
1770
+ Mt(s, t);
1771
1771
  }
1772
1772
  return K;
1773
1773
  }
@@ -1806,8 +1806,8 @@ class on extends ws {
1806
1806
  ease: o,
1807
1807
  times: a,
1808
1808
  isGenerator: !0
1809
- }), w = C(this.time);
1810
- u.setWithVelocity(m.sample(w - Pt).value, m.sample(w).value, Pt);
1809
+ }), S = C(this.time);
1810
+ u.setWithVelocity(m.sample(S - Et).value, m.sample(S).value, Et);
1811
1811
  }
1812
1812
  const { onStop: l } = this.options;
1813
1813
  l && l(), this.cancel();
@@ -1822,7 +1822,7 @@ class on extends ws {
1822
1822
  }
1823
1823
  static supports(t) {
1824
1824
  const { motionValue: n, name: s, repeatDelay: i, repeatType: r, damping: o, type: a } = t;
1825
- return Es() && s && Jr.has(s) && n && n.owner && n.owner.current instanceof HTMLElement && /**
1825
+ return Ps() && s && Jr.has(s) && n && n.owner && n.owner.current instanceof HTMLElement && /**
1826
1826
  * If we're outputting values to onUpdate then we can't use WAAPI as there's
1827
1827
  * no way to read the value from WAAPI every frame.
1828
1828
  */
@@ -1832,7 +1832,7 @@ class on extends ws {
1832
1832
  function ao({ when: e, delay: t, delayChildren: n, staggerChildren: s, staggerDirection: i, repeat: r, repeatType: o, repeatDelay: a, from: l, elapsed: u, ...c }) {
1833
1833
  return !!Object.keys(c).length;
1834
1834
  }
1835
- const Cs = (e, t, n, s = {}, i, r) => (o) => {
1835
+ const Fs = (e, t, n, s = {}, i, r) => (o) => {
1836
1836
  const a = fe(s, e) || {}, l = a.delay || s.delay || 0;
1837
1837
  let { elapsed: u = 0 } = s;
1838
1838
  u = u - C(l);
@@ -1858,34 +1858,34 @@ const Cs = (e, t, n, s = {}, i, r) => (o) => {
1858
1858
  }), c.duration && (c.duration = C(c.duration)), c.repeatDelay && (c.repeatDelay = C(c.repeatDelay)), c.from !== void 0 && (c.keyframes[0] = c.from);
1859
1859
  let f = !1;
1860
1860
  if ((c.type === !1 || c.duration === 0 && !c.repeatDelay) && (c.duration = 0, c.delay === 0 && (f = !0)), f && !r && t.get() !== void 0) {
1861
- const h = yt(c.keyframes, a);
1861
+ const h = gt(c.keyframes, a);
1862
1862
  if (h !== void 0)
1863
1863
  return M.update(() => {
1864
1864
  c.onUpdate(h), c.onComplete();
1865
1865
  }), new ae([]);
1866
1866
  }
1867
- return !r && on.supports(c) ? new on(c) : new Lt(c);
1867
+ return !r && an.supports(c) ? new an(c) : new Lt(c);
1868
1868
  }, lo = (e) => Array.isArray(e), uo = (e) => lo(e) ? e[e.length - 1] || 0 : e;
1869
- function an(e) {
1869
+ function ln(e) {
1870
1870
  const t = [{}, {}];
1871
1871
  return e == null || e.values.forEach((n, s) => {
1872
1872
  t[0][s] = n.get(), t[1][s] = n.getVelocity();
1873
1873
  }), t;
1874
1874
  }
1875
- function Fs(e, t, n, s) {
1875
+ function Os(e, t, n, s) {
1876
1876
  if (typeof t == "function") {
1877
- const [i, r] = an(s);
1877
+ const [i, r] = ln(s);
1878
1878
  t = t(n !== void 0 ? n : e.custom, i, r);
1879
1879
  }
1880
1880
  if (typeof t == "string" && (t = e.variants && e.variants[t]), typeof t == "function") {
1881
- const [i, r] = an(s);
1881
+ const [i, r] = ln(s);
1882
1882
  t = t(n !== void 0 ? n : e.custom, i, r);
1883
1883
  }
1884
1884
  return t;
1885
1885
  }
1886
1886
  function co(e, t, n) {
1887
1887
  const s = e.getProps();
1888
- return Fs(s, t, s.custom, e);
1888
+ return Os(s, t, s.custom, e);
1889
1889
  }
1890
1890
  function fo(e, t, n) {
1891
1891
  e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, D(n));
@@ -1899,7 +1899,7 @@ function ho(e, t) {
1899
1899
  fo(e, o, a);
1900
1900
  }
1901
1901
  }
1902
- const xe = (e) => e.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), po = "framerAppearId", mo = "data-" + xe(po);
1902
+ const Ve = (e) => e.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), po = "framerAppearId", mo = "data-" + Ve(po);
1903
1903
  function go(e) {
1904
1904
  return e.props[mo];
1905
1905
  }
@@ -1915,7 +1915,7 @@ function bo({ protectedKeys: e, needsAnimating: t }, n) {
1915
1915
  const s = e.hasOwnProperty(n) && t[n] !== !0;
1916
1916
  return t[n] = !1, s;
1917
1917
  }
1918
- function wo(e, t, { delay: n = 0, transitionOverride: s, type: i } = {}) {
1918
+ function So(e, t, { delay: n = 0, transitionOverride: s, type: i } = {}) {
1919
1919
  var r;
1920
1920
  let { transition: o = e.getDefaultTransition(), transitionEnd: a, ...l } = t;
1921
1921
  s && (o = s);
@@ -1928,15 +1928,15 @@ function wo(e, t, { delay: n = 0, transitionOverride: s, type: i } = {}) {
1928
1928
  delay: n,
1929
1929
  ...fe(o || {}, f)
1930
1930
  };
1931
- let w = !1;
1931
+ let S = !1;
1932
1932
  if (window.MotionHandoffAnimation) {
1933
1933
  const g = go(e);
1934
1934
  if (g) {
1935
1935
  const y = window.MotionHandoffAnimation(g, f, M);
1936
- y !== null && (m.startTime = y, w = !0);
1936
+ y !== null && (m.startTime = y, S = !0);
1937
1937
  }
1938
1938
  }
1939
- vo(e, f), h.start(Cs(f, h, p, e.shouldReduceMotion && X.has(f) ? { type: !1 } : m, e, w));
1939
+ vo(e, f), h.start(Fs(f, h, p, e.shouldReduceMotion && X.has(f) ? { type: !1 } : m, e, S));
1940
1940
  const b = h.animation;
1941
1941
  b && u.push(b);
1942
1942
  }
@@ -1946,37 +1946,37 @@ function wo(e, t, { delay: n = 0, transitionOverride: s, type: i } = {}) {
1946
1946
  });
1947
1947
  }), u;
1948
1948
  }
1949
- function So(e) {
1949
+ function wo(e) {
1950
1950
  return e instanceof SVGElement && e.tagName !== "svg";
1951
1951
  }
1952
1952
  const To = {};
1953
- function Vo(e, { layout: t, layoutId: n }) {
1953
+ function xo(e, { layout: t, layoutId: n }) {
1954
1954
  return X.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!To[e] || e === "opacity");
1955
1955
  }
1956
- function Os(e, t, n) {
1956
+ function Ds(e, t, n) {
1957
1957
  var s;
1958
1958
  const { style: i } = e, r = {};
1959
1959
  for (const o in i)
1960
- (P(i[o]) || t.style && P(t.style[o]) || Vo(o, e) || ((s = n == null ? void 0 : n.getValue(o)) === null || s === void 0 ? void 0 : s.liveStyle) !== void 0) && (r[o] = i[o]);
1960
+ (P(i[o]) || t.style && P(t.style[o]) || xo(o, e) || ((s = n == null ? void 0 : n.getValue(o)) === null || s === void 0 ? void 0 : s.liveStyle) !== void 0) && (r[o] = i[o]);
1961
1961
  return r;
1962
1962
  }
1963
- function xo(e, t, n) {
1964
- const s = Os(e, t, n);
1963
+ function Vo(e, t, n) {
1964
+ const s = Ds(e, t, n);
1965
1965
  for (const i in e)
1966
1966
  if (P(e[i]) || P(t[i])) {
1967
- const r = gt.indexOf(i) !== -1 ? "attr" + i.charAt(0).toUpperCase() + i.substring(1) : i;
1967
+ const r = mt.indexOf(i) !== -1 ? "attr" + i.charAt(0).toUpperCase() + i.substring(1) : i;
1968
1968
  s[r] = e[i];
1969
1969
  }
1970
1970
  return s;
1971
1971
  }
1972
- const Ao = typeof window < "u", ne = { current: null }, Ds = { current: !1 };
1972
+ const Ao = typeof window < "u", se = { current: null }, Bs = { current: !1 };
1973
1973
  function Mo() {
1974
- if (Ds.current = !0, !!Ao)
1974
+ if (Bs.current = !0, !!Ao)
1975
1975
  if (window.matchMedia) {
1976
- const e = window.matchMedia("(prefers-reduced-motion)"), t = () => ne.current = e.matches;
1976
+ const e = window.matchMedia("(prefers-reduced-motion)"), t = () => se.current = e.matches;
1977
1977
  e.addListener(t), t();
1978
1978
  } else
1979
- ne.current = !1;
1979
+ se.current = !1;
1980
1980
  }
1981
1981
  function Eo(e) {
1982
1982
  return e !== null && typeof e == "object" && typeof e.start == "function";
@@ -1993,11 +1993,11 @@ const Co = [
1993
1993
  "whileDrag",
1994
1994
  "exit"
1995
1995
  ], Fo = ["initial", ...Co];
1996
- function Bs(e) {
1996
+ function Rs(e) {
1997
1997
  return Eo(e.animate) || Fo.some((t) => Po(e[t]));
1998
1998
  }
1999
1999
  function Oo(e) {
2000
- return !!(Bs(e) || e.variants);
2000
+ return !!(Rs(e) || e.variants);
2001
2001
  }
2002
2002
  function Do(e, t, n) {
2003
2003
  for (const s in t) {
@@ -2019,7 +2019,7 @@ function Do(e, t, n) {
2019
2019
  t[s] === void 0 && e.removeValue(s);
2020
2020
  return t;
2021
2021
  }
2022
- const ln = {
2022
+ const un = {
2023
2023
  animation: [
2024
2024
  "animate",
2025
2025
  "variants",
@@ -2038,15 +2038,15 @@ const ln = {
2038
2038
  pan: ["onPan", "onPanStart", "onPanSessionStart", "onPanEnd"],
2039
2039
  inView: ["whileInView", "onViewportEnter", "onViewportLeave"],
2040
2040
  layout: ["layout", "layoutId"]
2041
- }, se = {};
2042
- for (const e in ln)
2043
- se[e] = {
2044
- isEnabled: (t) => ln[e].some((n) => !!t[n])
2041
+ }, ie = {};
2042
+ for (const e in un)
2043
+ ie[e] = {
2044
+ isEnabled: (t) => un[e].some((n) => !!t[n])
2045
2045
  };
2046
- const Bo = [...cs, E, et], Ro = (e) => Bo.find(us(e)), un = () => ({ min: 0, max: 0 }), Ae = () => ({
2047
- x: un(),
2048
- y: un()
2049
- }), cn = [
2046
+ const Bo = [...fs, E, et], Ro = (e) => Bo.find(cs(e)), cn = () => ({ min: 0, max: 0 }), Ae = () => ({
2047
+ x: cn(),
2048
+ y: cn()
2049
+ }), fn = [
2050
2050
  "AnimationStart",
2051
2051
  "AnimationComplete",
2052
2052
  "Update",
@@ -2055,7 +2055,7 @@ const Bo = [...cs, E, et], Ro = (e) => Bo.find(us(e)), un = () => ({ min: 0, max
2055
2055
  "LayoutAnimationStart",
2056
2056
  "LayoutAnimationComplete"
2057
2057
  ];
2058
- class Rs {
2058
+ class Is {
2059
2059
  /**
2060
2060
  * This method takes React props and returns found MotionValues. For example, HTML
2061
2061
  * MotionValues will be found within the style prop, whereas for Three.js within attribute arrays.
@@ -2074,7 +2074,7 @@ class Rs {
2074
2074
  this.renderScheduledAt < h && (this.renderScheduledAt = h, M.render(this.render, !1, !0));
2075
2075
  };
2076
2076
  const { latestValues: l, renderState: u } = o;
2077
- this.latestValues = l, this.baseTarget = { ...l }, this.initialValues = n.initial ? { ...l } : {}, this.renderState = u, this.parent = t, this.props = n, this.presenceContext = s, this.depth = t ? t.depth + 1 : 0, this.reducedMotionConfig = i, this.options = a, this.blockInitialAnimation = !!r, this.isControllingVariants = Bs(n), this.isVariantNode = Oo(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(t && t.current);
2077
+ this.latestValues = l, this.baseTarget = { ...l }, this.initialValues = n.initial ? { ...l } : {}, this.renderState = u, this.parent = t, this.props = n, this.presenceContext = s, this.depth = t ? t.depth + 1 : 0, this.reducedMotionConfig = i, this.options = a, this.blockInitialAnimation = !!r, this.isControllingVariants = Rs(n), this.isVariantNode = Oo(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(t && t.current);
2078
2078
  const { willChange: c, ...f } = this.scrapeMotionValuesFromProps(n, {}, this);
2079
2079
  for (const h in f) {
2080
2080
  const p = f[h];
@@ -2082,7 +2082,7 @@ class Rs {
2082
2082
  }
2083
2083
  }
2084
2084
  mount(t) {
2085
- this.current = t, $.set(t, this), this.projection && !this.projection.instance && this.projection.mount(t), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((n, s) => this.bindToMotionValue(s, n)), Ds.current || Mo(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : ne.current, process.env.NODE_ENV !== "production" && Bt(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);
2085
+ this.current = t, $.set(t, this), this.projection && !this.projection.instance && this.projection.mount(t), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((n, s) => this.bindToMotionValue(s, n)), Bs.current || Mo(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : se.current, process.env.NODE_ENV !== "production" && Bt(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);
2086
2086
  }
2087
2087
  unmount() {
2088
2088
  $.delete(this.current), this.projection && this.projection.unmount(), R(this.notifyUpdate), R(this.render), this.valueSubscriptions.forEach((t) => t()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent && this.parent.children.delete(this);
@@ -2109,8 +2109,8 @@ class Rs {
2109
2109
  }
2110
2110
  updateFeatures() {
2111
2111
  let t = "animation";
2112
- for (t in se) {
2113
- const n = se[t];
2112
+ for (t in ie) {
2113
+ const n = ie[t];
2114
2114
  if (!n)
2115
2115
  continue;
2116
2116
  const { isEnabled: s, Feature: i } = n;
@@ -2143,8 +2143,8 @@ class Rs {
2143
2143
  */
2144
2144
  update(t, n) {
2145
2145
  (t.transformTemplate || this.props.transformTemplate) && this.scheduleRender(), this.prevProps = this.props, this.props = t, this.prevPresenceContext = this.presenceContext, this.presenceContext = n;
2146
- for (let s = 0; s < cn.length; s++) {
2147
- const i = cn[s];
2146
+ for (let s = 0; s < fn.length; s++) {
2147
+ const i = fn[s];
2148
2148
  this.propEventSubscriptions[i] && (this.propEventSubscriptions[i](), delete this.propEventSubscriptions[i]);
2149
2149
  const r = "on" + i, o = t[r];
2150
2150
  o && (this.propEventSubscriptions[i] = this.on(i, o));
@@ -2215,7 +2215,7 @@ class Rs {
2215
2215
  readValue(t, n) {
2216
2216
  var s;
2217
2217
  let i = this.latestValues[t] !== void 0 || !this.current ? this.latestValues[t] : (s = this.getBaseTargetFromProps(this.props, t)) !== null && s !== void 0 ? s : this.readValueFromInstance(this.current, t, this.options);
2218
- return i != null && (typeof i == "string" && (rs(i) || is(i)) ? i = parseFloat(i) : !Ro(i) && et.test(n) && (i = vs(t, n)), this.setBaseTarget(t, P(i) ? i.get() : i)), P(i) ? i.get() : i;
2218
+ return i != null && (typeof i == "string" && (os(i) || rs(i)) ? i = parseFloat(i) : !Ro(i) && et.test(n) && (i = bs(t, n)), this.setBaseTarget(t, P(i) ? i.get() : i)), P(i) ? i.get() : i;
2219
2219
  }
2220
2220
  /**
2221
2221
  * Set the base target to later animate back to. This is currently
@@ -2233,7 +2233,7 @@ class Rs {
2233
2233
  const { initial: s } = this.props;
2234
2234
  let i;
2235
2235
  if (typeof s == "string" || typeof s == "object") {
2236
- const o = Fs(this.props, s, (n = this.presenceContext) === null || n === void 0 ? void 0 : n.custom);
2236
+ const o = Os(this.props, s, (n = this.presenceContext) === null || n === void 0 ? void 0 : n.custom);
2237
2237
  o && (i = o[t]);
2238
2238
  }
2239
2239
  if (s && i !== void 0)
@@ -2242,15 +2242,15 @@ class Rs {
2242
2242
  return r !== void 0 && !P(r) ? r : this.initialValues[t] !== void 0 && i === void 0 ? void 0 : this.baseTarget[t];
2243
2243
  }
2244
2244
  on(t, n) {
2245
- return this.events[t] || (this.events[t] = new Gn()), this.events[t].add(n);
2245
+ return this.events[t] || (this.events[t] = new zn()), this.events[t].add(n);
2246
2246
  }
2247
2247
  notify(t, ...n) {
2248
2248
  this.events[t] && this.events[t].notify(...n);
2249
2249
  }
2250
2250
  }
2251
- class Is extends Rs {
2251
+ class Ls extends Is {
2252
2252
  constructor() {
2253
- super(...arguments), this.KeyframeResolver = bs;
2253
+ super(...arguments), this.KeyframeResolver = Ss;
2254
2254
  }
2255
2255
  sortInstanceNodePosition(t, n) {
2256
2256
  return t.compareDocumentPosition(n) & 2 ? 1 : -1;
@@ -2262,21 +2262,21 @@ class Is extends Rs {
2262
2262
  delete n[t], delete s[t];
2263
2263
  }
2264
2264
  }
2265
- const Ls = (e, t) => t && typeof e == "number" ? t.transform(e) : e, Io = {
2265
+ const Ns = (e, t) => t && typeof e == "number" ? t.transform(e) : e, Io = {
2266
2266
  x: "translateX",
2267
2267
  y: "translateY",
2268
2268
  z: "translateZ",
2269
2269
  transformPerspective: "perspective"
2270
- }, Lo = gt.length;
2270
+ }, Lo = mt.length;
2271
2271
  function No(e, t, n) {
2272
2272
  let s = "", i = !0;
2273
2273
  for (let r = 0; r < Lo; r++) {
2274
- const o = gt[r], a = e[o];
2274
+ const o = mt[r], a = e[o];
2275
2275
  if (a === void 0)
2276
2276
  continue;
2277
2277
  let l = !0;
2278
2278
  if (typeof a == "number" ? l = a === (o.startsWith("scale") ? 1 : 0) : l = parseFloat(a) === 0, !l || n) {
2279
- const u = Ls(a, ve[o]);
2279
+ const u = Ns(a, ve[o]);
2280
2280
  if (!l) {
2281
2281
  i = !1;
2282
2282
  const c = Io[o] || o;
@@ -2287,7 +2287,7 @@ function No(e, t, n) {
2287
2287
  }
2288
2288
  return s = s.trim(), n ? s = n(t, i ? "" : s) : i && (s = "none"), s;
2289
2289
  }
2290
- function Ns(e, t, n) {
2290
+ function $s(e, t, n) {
2291
2291
  const { style: s, vars: i, transformOrigin: r } = e;
2292
2292
  let o = !1, a = !1;
2293
2293
  for (const l in t) {
@@ -2295,11 +2295,11 @@ function Ns(e, t, n) {
2295
2295
  if (X.has(l)) {
2296
2296
  o = !0;
2297
2297
  continue;
2298
- } else if (as(l)) {
2298
+ } else if (ls(l)) {
2299
2299
  i[l] = u;
2300
2300
  continue;
2301
2301
  } else {
2302
- const c = Ls(u, ve[l]);
2302
+ const c = Ns(u, ve[l]);
2303
2303
  l.startsWith("origin") ? (a = !0, r[l] = c) : s[l] = c;
2304
2304
  }
2305
2305
  }
@@ -2308,11 +2308,11 @@ function Ns(e, t, n) {
2308
2308
  s.transformOrigin = `${l} ${u} ${c}`;
2309
2309
  }
2310
2310
  }
2311
- function fn(e, t, n) {
2311
+ function hn(e, t, n) {
2312
2312
  return typeof e == "string" ? e : d.transform(t + n * e);
2313
2313
  }
2314
2314
  function $o(e, t, n) {
2315
- const s = fn(t, e.x, e.width), i = fn(n, e.y, e.height);
2315
+ const s = hn(t, e.x, e.width), i = hn(n, e.y, e.height);
2316
2316
  return `${s} ${i}`;
2317
2317
  }
2318
2318
  const Ko = {
@@ -2322,14 +2322,14 @@ const Ko = {
2322
2322
  offset: "strokeDashoffset",
2323
2323
  array: "strokeDasharray"
2324
2324
  };
2325
- function ko(e, t, n = 1, s = 0, i = !0) {
2325
+ function _o(e, t, n = 1, s = 0, i = !0) {
2326
2326
  e.pathLength = 1;
2327
2327
  const r = i ? Ko : Wo;
2328
2328
  e[r.offset] = d.transform(-s);
2329
2329
  const o = d.transform(t), a = d.transform(n);
2330
2330
  e[r.array] = `${o} ${a}`;
2331
2331
  }
2332
- function _o(e, {
2332
+ function ko(e, {
2333
2333
  attrX: t,
2334
2334
  attrY: n,
2335
2335
  attrScale: s,
@@ -2341,15 +2341,15 @@ function _o(e, {
2341
2341
  // This is object creation, which we try to avoid per-frame.
2342
2342
  ...u
2343
2343
  }, c, f) {
2344
- if (Ns(e, u, f), c) {
2344
+ if ($s(e, u, f), c) {
2345
2345
  e.style.viewBox && (e.attrs.viewBox = e.style.viewBox);
2346
2346
  return;
2347
2347
  }
2348
2348
  e.attrs = e.style, e.style = {};
2349
2349
  const { attrs: h, style: p, dimensions: m } = e;
2350
- h.transform && (m && (p.transform = h.transform), delete h.transform), m && (i !== void 0 || r !== void 0 || p.transform) && (p.transformOrigin = $o(m, i !== void 0 ? i : 0.5, r !== void 0 ? r : 0.5)), t !== void 0 && (h.x = t), n !== void 0 && (h.y = n), s !== void 0 && (h.scale = s), o !== void 0 && ko(h, o, a, l, !1);
2350
+ h.transform && (m && (p.transform = h.transform), delete h.transform), m && (i !== void 0 || r !== void 0 || p.transform) && (p.transformOrigin = $o(m, i !== void 0 ? i : 0.5, r !== void 0 ? r : 0.5)), t !== void 0 && (h.x = t), n !== void 0 && (h.y = n), s !== void 0 && (h.scale = s), o !== void 0 && _o(h, o, a, l, !1);
2351
2351
  }
2352
- const $s = /* @__PURE__ */ new Set([
2352
+ const Ks = /* @__PURE__ */ new Set([
2353
2353
  "baseFrequency",
2354
2354
  "diffuseConstant",
2355
2355
  "kernelMatrix",
@@ -2374,18 +2374,18 @@ const $s = /* @__PURE__ */ new Set([
2374
2374
  "textLength",
2375
2375
  "lengthAdjust"
2376
2376
  ]);
2377
- function Ks(e, { style: t, vars: n }, s, i) {
2377
+ function Ws(e, { style: t, vars: n }, s, i) {
2378
2378
  Object.assign(e.style, t, i && i.getProjectionStyles(s));
2379
2379
  for (const r in n)
2380
2380
  e.style.setProperty(r, n[r]);
2381
2381
  }
2382
2382
  function Go(e, t, n, s) {
2383
- Ks(e, t, void 0, s);
2383
+ Ws(e, t, void 0, s);
2384
2384
  for (const i in t.attrs)
2385
- e.setAttribute($s.has(i) ? i : xe(i), t.attrs[i]);
2385
+ e.setAttribute(Ks.has(i) ? i : Ve(i), t.attrs[i]);
2386
2386
  }
2387
2387
  const zo = (e) => typeof e == "string" && e.toLowerCase() === "svg";
2388
- class Uo extends Is {
2388
+ class Uo extends Ls {
2389
2389
  constructor() {
2390
2390
  super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = Ae;
2391
2391
  }
@@ -2397,13 +2397,13 @@ class Uo extends Is {
2397
2397
  const s = be(n);
2398
2398
  return s && s.default || 0;
2399
2399
  }
2400
- return n = $s.has(n) ? n : xe(n), t.getAttribute(n);
2400
+ return n = Ks.has(n) ? n : Ve(n), t.getAttribute(n);
2401
2401
  }
2402
2402
  scrapeMotionValuesFromProps(t, n, s) {
2403
- return xo(t, n, s);
2403
+ return Vo(t, n, s);
2404
2404
  }
2405
2405
  build(t, n, s) {
2406
- _o(t, n, this.isSVGTag, s.transformTemplate);
2406
+ ko(t, n, this.isSVGTag, s.transformTemplate);
2407
2407
  }
2408
2408
  renderInstance(t, n, s, i) {
2409
2409
  Go(t, n, s, i);
@@ -2435,16 +2435,16 @@ function Yo(e, t) {
2435
2435
  function Xo(e) {
2436
2436
  return window.getComputedStyle(e);
2437
2437
  }
2438
- class qo extends Is {
2438
+ class qo extends Ls {
2439
2439
  constructor() {
2440
- super(...arguments), this.type = "html", this.renderInstance = Ks;
2440
+ super(...arguments), this.type = "html", this.renderInstance = Ws;
2441
2441
  }
2442
2442
  readValueFromInstance(t, n) {
2443
2443
  if (X.has(n)) {
2444
2444
  const s = be(n);
2445
2445
  return s && s.default || 0;
2446
2446
  } else {
2447
- const s = Xo(t), i = (as(n) ? s.getPropertyValue(n) : s[n]) || 0;
2447
+ const s = Xo(t), i = (ls(n) ? s.getPropertyValue(n) : s[n]) || 0;
2448
2448
  return typeof i == "string" ? i.trim() : i;
2449
2449
  }
2450
2450
  }
@@ -2452,10 +2452,10 @@ class qo extends Is {
2452
2452
  return Yo(t, n);
2453
2453
  }
2454
2454
  build(t, n, s) {
2455
- Ns(t, n, s.transformTemplate);
2455
+ $s(t, n, s.transformTemplate);
2456
2456
  }
2457
2457
  scrapeMotionValuesFromProps(t, n, s) {
2458
- return Os(t, n, s);
2458
+ return Ds(t, n, s);
2459
2459
  }
2460
2460
  handleChildMotionValue() {
2461
2461
  this.childSubscription && (this.childSubscription(), delete this.childSubscription);
@@ -2468,7 +2468,7 @@ class qo extends Is {
2468
2468
  function Zo(e, t) {
2469
2469
  return e in t;
2470
2470
  }
2471
- class Jo extends Rs {
2471
+ class Jo extends Is {
2472
2472
  constructor() {
2473
2473
  super(...arguments), this.type = "object";
2474
2474
  }
@@ -2497,7 +2497,7 @@ class Jo extends Rs {
2497
2497
  return 0;
2498
2498
  }
2499
2499
  }
2500
- function Ws(e) {
2500
+ function _s(e) {
2501
2501
  const t = {
2502
2502
  presenceContext: null,
2503
2503
  props: {},
@@ -2511,7 +2511,7 @@ function Ws(e) {
2511
2511
  },
2512
2512
  latestValues: {}
2513
2513
  }
2514
- }, n = So(e) ? new Uo(t) : new qo(t);
2514
+ }, n = wo(e) ? new Uo(t) : new qo(t);
2515
2515
  n.mount(e), $.set(e, n);
2516
2516
  }
2517
2517
  function Qo(e) {
@@ -2529,7 +2529,7 @@ function Qo(e) {
2529
2529
  }
2530
2530
  function ta(e, t, n) {
2531
2531
  const s = P(e) ? e : D(e);
2532
- return s.start(Cs("", s, t, n)), s.animation;
2532
+ return s.start(Fs("", s, t, n)), s.animation;
2533
2533
  }
2534
2534
  function ea(e, t) {
2535
2535
  return P(e) || typeof e == "number" || typeof e == "string" && !ce(t);
@@ -2539,13 +2539,13 @@ function ks(e, t, n, s) {
2539
2539
  if (ea(e, t))
2540
2540
  i.push(ta(e, ce(t) && t.default || t, n && (n.default || n)));
2541
2541
  else {
2542
- const r = Xn(e, t, s), o = r.length;
2542
+ const r = qn(e, t, s), o = r.length;
2543
2543
  I(!!o, "No valid elements provided.");
2544
2544
  for (let a = 0; a < o; a++) {
2545
- const l = r[a], u = l instanceof Element ? Ws : Qo;
2545
+ const l = r[a], u = l instanceof Element ? _s : Qo;
2546
2546
  $.has(l) || u(l);
2547
2547
  const c = $.get(l), f = { ...n };
2548
- "delay" in f && typeof f.delay == "function" && (f.delay = f.delay(a, o)), i.push(...wo(c, { ...t, transition: f }, {}));
2548
+ "delay" in f && typeof f.delay == "function" && (f.delay = f.delay(a, o)), i.push(...So(c, { ...t, transition: f }, {}));
2549
2549
  }
2550
2550
  }
2551
2551
  return i;
@@ -2582,37 +2582,37 @@ const la = /* @__PURE__ */ Rt(() => {
2582
2582
  return !1;
2583
2583
  }
2584
2584
  return !0;
2585
- }), Tt = /* @__PURE__ */ new WeakMap();
2585
+ }), wt = /* @__PURE__ */ new WeakMap();
2586
2586
  function ua(e, t, n) {
2587
2587
  for (let s = 0; s < t.length; s++)
2588
- t[s] === null && (t[s] = s === 0 ? n() : t[s - 1]), typeof t[s] == "number" && Jt[e] && (t[s] = Jt[e].transform(t[s]));
2588
+ t[s] === null && (t[s] = s === 0 ? n() : t[s - 1]), typeof t[s] == "number" && Qt[e] && (t[s] = Qt[e].transform(t[s]));
2589
2589
  !la() && t.length < 2 && t.unshift(n());
2590
2590
  }
2591
- const hn = "easeOut";
2592
- function dn(e) {
2593
- const t = Tt.get(e) || /* @__PURE__ */ new Map();
2594
- return Tt.set(e, t), Tt.get(e);
2591
+ const dn = "easeOut";
2592
+ function pn(e) {
2593
+ const t = wt.get(e) || /* @__PURE__ */ new Map();
2594
+ return wt.set(e, t), wt.get(e);
2595
2595
  }
2596
2596
  class ca {
2597
2597
  constructor(t, n, s, i) {
2598
2598
  const r = n.startsWith("--");
2599
2599
  this.setValue = r ? oa : aa, this.options = i, this.updateFinishedPromise(), I(typeof i.type != "string", `animateMini doesn't support "type" as a string. Did you mean to import { spring } from "framer-motion"?`);
2600
- const o = dn(t).get(n);
2600
+ const o = pn(t).get(n);
2601
2601
  o && o.stop();
2602
2602
  const a = () => n.startsWith("--") ? t.style.getPropertyValue(n) : window.getComputedStyle(t)[n];
2603
- if (Array.isArray(s) || (s = [s]), ua(n, s, a), mt(i.type)) {
2604
- const u = Hn(i, 100, i.type);
2605
- i.ease = ct() ? u.ease : hn, i.duration = C(u.duration), i.type = "keyframes";
2603
+ if (Array.isArray(s) || (s = [s]), ua(n, s, a), pt(i.type)) {
2604
+ const u = Yn(i, 100, i.type);
2605
+ i.ease = ut() ? u.ease : dn, i.duration = C(u.duration), i.type = "keyframes";
2606
2606
  } else
2607
- i.ease = i.ease || hn;
2607
+ i.ease = i.ease || dn;
2608
2608
  this.removeAnimation = () => {
2609
2609
  var u;
2610
- return (u = Tt.get(t)) === null || u === void 0 ? void 0 : u.delete(n);
2610
+ return (u = wt.get(t)) === null || u === void 0 ? void 0 : u.delete(n);
2611
2611
  };
2612
2612
  const l = () => {
2613
- this.setValue(t, n, yt(s, this.options)), this.cancel(), this.resolveFinishedPromise();
2613
+ this.setValue(t, n, gt(s, this.options)), this.cancel(), this.resolveFinishedPromise();
2614
2614
  };
2615
- Es() ? (this.animation = Ms(t, n, s, i), i.autoplay === !1 && this.animation.pause(), this.animation.onfinish = l, this.pendingTimeline && Et(this.animation, this.pendingTimeline), dn(t).set(n, this)) : l();
2615
+ Ps() ? (this.animation = Es(t, n, s, i), i.autoplay === !1 && this.animation.pause(), this.animation.onfinish = l, this.pendingTimeline && Mt(this.animation, this.pendingTimeline), pn(t).set(n, this)) : l();
2616
2616
  }
2617
2617
  get duration() {
2618
2618
  return B(this.options.duration || 300);
@@ -2669,7 +2669,7 @@ class ca {
2669
2669
  });
2670
2670
  }
2671
2671
  attachTimeline(t) {
2672
- return this.animation ? Et(this.animation, t) : this.pendingTimeline = t, K;
2672
+ return this.animation ? Mt(this.animation, t) : this.pendingTimeline = t, K;
2673
2673
  }
2674
2674
  }
2675
2675
  function fa(e, t, n, s) {
@@ -2693,8 +2693,8 @@ const ha = (e) => {
2693
2693
  return new ae(fa(n, s, i, e));
2694
2694
  }
2695
2695
  return t;
2696
- }, Il = /* @__PURE__ */ ha(), Vt = /* @__PURE__ */ new WeakMap();
2697
- let k;
2696
+ }, Nl = /* @__PURE__ */ ha(), Tt = /* @__PURE__ */ new WeakMap();
2697
+ let _;
2698
2698
  function da(e, t) {
2699
2699
  if (t) {
2700
2700
  const { inlineSize: n, blockSize: s } = t[0];
@@ -2706,7 +2706,7 @@ function da(e, t) {
2706
2706
  }
2707
2707
  function pa({ target: e, contentRect: t, borderBoxSize: n }) {
2708
2708
  var s;
2709
- (s = Vt.get(e)) === null || s === void 0 || s.forEach((i) => {
2709
+ (s = Tt.get(e)) === null || s === void 0 || s.forEach((i) => {
2710
2710
  i({
2711
2711
  target: e,
2712
2712
  contentSize: t,
@@ -2720,18 +2720,18 @@ function ma(e) {
2720
2720
  e.forEach(pa);
2721
2721
  }
2722
2722
  function ga() {
2723
- typeof ResizeObserver > "u" || (k = new ResizeObserver(ma));
2723
+ typeof ResizeObserver > "u" || (_ = new ResizeObserver(ma));
2724
2724
  }
2725
2725
  function ya(e, t) {
2726
- k || ga();
2726
+ _ || ga();
2727
2727
  const n = It(e);
2728
2728
  return n.forEach((s) => {
2729
- let i = Vt.get(s);
2730
- i || (i = /* @__PURE__ */ new Set(), Vt.set(s, i)), i.add(t), k == null || k.observe(s);
2729
+ let i = Tt.get(s);
2730
+ i || (i = /* @__PURE__ */ new Set(), Tt.set(s, i)), i.add(t), _ == null || _.observe(s);
2731
2731
  }), () => {
2732
2732
  n.forEach((s) => {
2733
- const i = Vt.get(s);
2734
- i == null || i.delete(t), i != null && i.size || k == null || k.unobserve(s);
2733
+ const i = Tt.get(s);
2734
+ i == null || i.delete(t), i != null && i.size || _ == null || _.unobserve(s);
2735
2735
  });
2736
2736
  };
2737
2737
  }
@@ -2755,10 +2755,10 @@ function ba(e) {
2755
2755
  xt.delete(e), !xt.size && ot && (ot = void 0);
2756
2756
  };
2757
2757
  }
2758
- function wa(e, t) {
2758
+ function Sa(e, t) {
2759
2759
  return typeof e == "function" ? ba(e) : ya(e, t);
2760
2760
  }
2761
- const Sa = 50, pn = () => ({
2761
+ const wa = 50, mn = () => ({
2762
2762
  current: 0,
2763
2763
  offset: [],
2764
2764
  progress: 0,
@@ -2769,9 +2769,9 @@ const Sa = 50, pn = () => ({
2769
2769
  velocity: 0
2770
2770
  }), Ta = () => ({
2771
2771
  time: 0,
2772
- x: pn(),
2773
- y: pn()
2774
- }), Va = {
2772
+ x: mn(),
2773
+ y: mn()
2774
+ }), xa = {
2775
2775
  x: {
2776
2776
  length: "Width",
2777
2777
  position: "Left"
@@ -2781,14 +2781,14 @@ const Sa = 50, pn = () => ({
2781
2781
  position: "Top"
2782
2782
  }
2783
2783
  };
2784
- function mn(e, t, n, s) {
2785
- const i = n[t], { length: r, position: o } = Va[t], a = i.current, l = n.time;
2786
- i.current = e[`scroll${o}`], i.scrollLength = e[`scroll${r}`] - e[`client${r}`], i.offset.length = 0, i.offset[0] = 0, i.offset[1] = i.scrollLength, i.progress = pt(0, i.scrollLength, i.current);
2784
+ function gn(e, t, n, s) {
2785
+ const i = n[t], { length: r, position: o } = xa[t], a = i.current, l = n.time;
2786
+ i.current = e[`scroll${o}`], i.scrollLength = e[`scroll${r}`] - e[`client${r}`], i.offset.length = 0, i.offset[0] = 0, i.offset[1] = i.scrollLength, i.progress = dt(0, i.scrollLength, i.current);
2787
2787
  const u = s - l;
2788
- i.velocity = u > Sa ? 0 : oe(i.current - a, u);
2788
+ i.velocity = u > wa ? 0 : oe(i.current - a, u);
2789
2789
  }
2790
- function xa(e, t, n) {
2791
- mn(e, "x", t, n), mn(e, "y", t, n), t.time = n;
2790
+ function Va(e, t, n) {
2791
+ gn(e, "x", t, n), gn(e, "y", t, n), t.time = n;
2792
2792
  }
2793
2793
  function Aa(e, t) {
2794
2794
  const n = { x: 0, y: 0 };
@@ -2829,14 +2829,14 @@ const Ma = {
2829
2829
  [0, 0],
2830
2830
  [1, 1]
2831
2831
  ]
2832
- }, ie = {
2832
+ }, re = {
2833
2833
  start: 0,
2834
2834
  center: 0.5,
2835
2835
  end: 1
2836
2836
  };
2837
- function gn(e, t, n = 0) {
2837
+ function yn(e, t, n = 0) {
2838
2838
  let s = 0;
2839
- if (e in ie && (e = ie[e]), typeof e == "string") {
2839
+ if (e in re && (e = re[e]), typeof e == "string") {
2840
2840
  const i = parseFloat(e);
2841
2841
  e.endsWith("px") ? s = i : e.endsWith("%") ? e = i / 100 : e.endsWith("vw") ? s = i / 100 * document.documentElement.clientWidth : e.endsWith("vh") ? s = i / 100 * document.documentElement.clientHeight : e = i;
2842
2842
  }
@@ -2845,7 +2845,7 @@ function gn(e, t, n = 0) {
2845
2845
  const Ea = [0, 0];
2846
2846
  function Pa(e, t, n, s) {
2847
2847
  let i = Array.isArray(e) ? e : Ea, r = 0, o = 0;
2848
- return typeof e == "number" ? i = [e, e] : typeof e == "string" && (e = e.trim(), e.includes(" ") ? i = e.split(" ") : i = [e, ie[e] ? e : "0"]), r = gn(i[0], n, s), o = gn(i[1], t), r - o;
2848
+ return typeof e == "number" ? i = [e, e] : typeof e == "string" && (e = e.trim(), e.includes(" ") ? i = e.split(" ") : i = [e, re[e] ? e : "0"]), r = yn(i[0], n, s), o = yn(i[1], t), r - o;
2849
2849
  }
2850
2850
  const Ca = { x: 0, y: 0 };
2851
2851
  function Fa(e) {
@@ -2863,7 +2863,7 @@ function Oa(e, t, n) {
2863
2863
  const p = Pa(s[h], u[o], l[o], a[r]);
2864
2864
  !c && p !== t[r].interpolatorOffsets[h] && (c = !0), t[r].offset[h] = p;
2865
2865
  }
2866
- c && (t[r].interpolate = Ve(t[r].offset, ue(s)), t[r].interpolatorOffsets = [...t[r].offset]), t[r].progress = t[r].interpolate(t[r].current);
2866
+ c && (t[r].interpolate = xe(t[r].offset, ue(s)), t[r].interpolatorOffsets = [...t[r].offset]), t[r].progress = t[r].interpolate(t[r].current);
2867
2867
  }
2868
2868
  function Da(e, t = e, n) {
2869
2869
  if (n.x.targetOffset = 0, n.y.targetOffset = 0, t !== e) {
@@ -2877,12 +2877,12 @@ function Ba(e, t, n, s = {}) {
2877
2877
  return {
2878
2878
  measure: () => Da(e, s.target, n),
2879
2879
  update: (i) => {
2880
- xa(e, n, i), (s.offset || s.target) && Oa(e, n, s);
2880
+ Va(e, n, i), (s.offset || s.target) && Oa(e, n, s);
2881
2881
  },
2882
2882
  notify: () => t(n)
2883
2883
  };
2884
2884
  }
2885
- const nt = /* @__PURE__ */ new WeakMap(), yn = /* @__PURE__ */ new WeakMap(), Gt = /* @__PURE__ */ new WeakMap(), vn = (e) => e === document.documentElement ? window : e;
2885
+ const nt = /* @__PURE__ */ new WeakMap(), vn = /* @__PURE__ */ new WeakMap(), Gt = /* @__PURE__ */ new WeakMap(), bn = (e) => e === document.documentElement ? window : e;
2886
2886
  function Me(e, { container: t = document.documentElement, ...n } = {}) {
2887
2887
  let s = Gt.get(t);
2888
2888
  s || (s = /* @__PURE__ */ new Set(), Gt.set(t, s));
@@ -2901,8 +2901,8 @@ function Me(e, { container: t = document.documentElement, ...n } = {}) {
2901
2901
  M.read(a, !1, !0), M.read(l, !1, !0), M.update(u, !1, !0);
2902
2902
  };
2903
2903
  nt.set(t, c);
2904
- const f = vn(t);
2905
- window.addEventListener("resize", c, { passive: !0 }), t !== document.documentElement && yn.set(t, wa(t, c)), f.addEventListener("scroll", c, { passive: !0 });
2904
+ const f = bn(t);
2905
+ window.addEventListener("resize", c, { passive: !0 }), t !== document.documentElement && vn.set(t, Sa(t, c)), f.addEventListener("scroll", c, { passive: !0 });
2906
2906
  }
2907
2907
  const o = nt.get(t);
2908
2908
  return M.read(o, !1, !0), () => {
@@ -2912,10 +2912,10 @@ function Me(e, { container: t = document.documentElement, ...n } = {}) {
2912
2912
  if (!l || (l.delete(r), l.size))
2913
2913
  return;
2914
2914
  const u = nt.get(t);
2915
- nt.delete(t), u && (vn(t).removeEventListener("scroll", u), (a = yn.get(t)) === null || a === void 0 || a(), window.removeEventListener("resize", u));
2915
+ nt.delete(t), u && (bn(t).removeEventListener("scroll", u), (a = vn.get(t)) === null || a === void 0 || a(), window.removeEventListener("resize", u));
2916
2916
  };
2917
2917
  }
2918
- function _s(e, t) {
2918
+ function Gs(e, t) {
2919
2919
  let n;
2920
2920
  const s = () => {
2921
2921
  const { currentTime: i } = t, o = (i === null ? 0 : i.value) / 100;
@@ -2931,30 +2931,30 @@ function Ra({ source: e, container: t, axis: n = "y" }) {
2931
2931
  return { currentTime: s, cancel: i };
2932
2932
  }
2933
2933
  const zt = /* @__PURE__ */ new Map();
2934
- function Gs({ source: e, container: t = document.documentElement, axis: n = "y" } = {}) {
2934
+ function zs({ source: e, container: t = document.documentElement, axis: n = "y" } = {}) {
2935
2935
  e && (t = e), zt.has(t) || zt.set(t, {});
2936
2936
  const s = zt.get(t);
2937
- return s[n] || (s[n] = zn() ? new ScrollTimeline({ source: t, axis: n }) : Ra({ source: t, axis: n })), s[n];
2937
+ return s[n] || (s[n] = Un() ? new ScrollTimeline({ source: t, axis: n }) : Ra({ source: t, axis: n })), s[n];
2938
2938
  }
2939
2939
  function Ia(e) {
2940
2940
  return e.length === 2;
2941
2941
  }
2942
- function zs(e) {
2942
+ function Us(e) {
2943
2943
  return e && (e.target || e.offset);
2944
2944
  }
2945
2945
  function La(e, t) {
2946
- return Ia(e) || zs(t) ? Me((n) => {
2946
+ return Ia(e) || Us(t) ? Me((n) => {
2947
2947
  e(n[t.axis].progress, n);
2948
- }, t) : _s(e, Gs(t));
2948
+ }, t) : Gs(e, zs(t));
2949
2949
  }
2950
2950
  function Na(e, t) {
2951
- if (zs(t))
2951
+ if (Us(t))
2952
2952
  return e.pause(), Me((n) => {
2953
2953
  e.time = e.duration * n[t.axis].progress;
2954
2954
  }, t);
2955
2955
  {
2956
- const n = Gs(t);
2957
- return e.attachTimeline(n, (s) => (s.pause(), _s((i) => {
2956
+ const n = zs(t);
2957
+ return e.attachTimeline(n, (s) => (s.pause(), Gs((i) => {
2958
2958
  s.time = s.duration * i;
2959
2959
  }, n)));
2960
2960
  }
@@ -2984,14 +2984,14 @@ function Wa(e, t, { root: n, margin: s, amount: i = "some" } = {}) {
2984
2984
  });
2985
2985
  return r.forEach((u) => l.observe(u)), () => l.disconnect();
2986
2986
  }
2987
- function Ll(e, t = "end") {
2987
+ function $l(e, t = "end") {
2988
2988
  return (n) => {
2989
2989
  n = t === "end" ? Math.min(n, 0.999) : Math.max(n, 1e-3);
2990
2990
  const s = n * e, i = t === "end" ? Math.floor(s) : Math.ceil(s);
2991
2991
  return H(0, 1, i / e);
2992
2992
  };
2993
2993
  }
2994
- function ka(e, t) {
2994
+ function _a(e, t) {
2995
2995
  if (e === "first")
2996
2996
  return 0;
2997
2997
  {
@@ -2999,20 +2999,20 @@ function ka(e, t) {
2999
2999
  return e === "last" ? n : n / 2;
3000
3000
  }
3001
3001
  }
3002
- function Nl(e = 0.1, { startDelay: t = 0, from: n = 0, ease: s } = {}) {
3002
+ function Kl(e = 0.1, { startDelay: t = 0, from: n = 0, ease: s } = {}) {
3003
3003
  return (i, r) => {
3004
- const o = typeof n == "number" ? n : ka(n, r), a = Math.abs(o - i);
3004
+ const o = typeof n == "number" ? n : _a(n, r), a = Math.abs(o - i);
3005
3005
  let l = e * a;
3006
3006
  if (s) {
3007
3007
  const u = r * e;
3008
- l = Qt(s)(l / u) * u;
3008
+ l = te(s)(l / u) * u;
3009
3009
  }
3010
3010
  return t + l;
3011
3011
  };
3012
3012
  }
3013
- const _a = (e) => e && typeof e == "object" && e.mix, Ga = (e) => _a(e) ? e.mix : void 0;
3013
+ const ka = (e) => e && typeof e == "object" && e.mix, Ga = (e) => ka(e) ? e.mix : void 0;
3014
3014
  function za(...e) {
3015
- const t = !Array.isArray(e[0]), n = t ? 0 : -1, s = e[0 + n], i = e[1 + n], r = e[2 + n], o = e[3 + n], a = Ve(i, r, {
3015
+ const t = !Array.isArray(e[0]), n = t ? 0 : -1, s = e[0 + n], i = e[1 + n], r = e[2 + n], o = e[3 + n], a = xe(i, r, {
3016
3016
  mixer: Ga(r[0]),
3017
3017
  ...o
3018
3018
  });
@@ -3025,16 +3025,16 @@ function Ua(e, t) {
3025
3025
  };
3026
3026
  return M.read(s, !0), () => R(s);
3027
3027
  }
3028
- function $l(e, t) {
3028
+ function Wl(e, t) {
3029
3029
  return Ua(e, C(t));
3030
3030
  }
3031
- const bn = (e, t) => Math.abs(e - t);
3032
- function Kl(e, t) {
3033
- const n = bn(e.x, t.x), s = bn(e.y, t.y);
3031
+ const Sn = (e, t) => Math.abs(e - t);
3032
+ function _l(e, t) {
3033
+ const n = Sn(e.x, t.x), s = Sn(e.y, t.y);
3034
3034
  return Math.sqrt(n ** 2 + s ** 2);
3035
3035
  }
3036
- const Wl = M, kl = st.reduce((e, t) => (e[t] = (n) => R(n), e), {});
3037
- function Us(e, t) {
3036
+ const kl = M, Gl = st.reduce((e, t) => (e[t] = (n) => R(n), e), {});
3037
+ function js(e, t) {
3038
3038
  const n = typeof e == "string" && !t ? `${e}Context` : t, s = Symbol(n);
3039
3039
  return [(o) => {
3040
3040
  const a = Js(s, o);
@@ -3050,7 +3050,7 @@ function Us(e, t) {
3050
3050
  function Y(e) {
3051
3051
  return !!(e && e.getVelocity);
3052
3052
  }
3053
- const [ja, Ha] = Us("Motion");
3053
+ const [ja, Ha] = js("Motion");
3054
3054
  function wn(e, t) {
3055
3055
  if (typeof e == "object")
3056
3056
  return e;
@@ -3079,7 +3079,7 @@ function Za(e, t) {
3079
3079
  function Ja(e, t) {
3080
3080
  return e[t] ? { ...e, ...e[t] } : { ...e };
3081
3081
  }
3082
- function Sn(e) {
3082
+ function Tn(e) {
3083
3083
  return e == null ? void 0 : e.startsWith("--");
3084
3084
  }
3085
3085
  function Qa() {
@@ -3149,7 +3149,7 @@ function il(e) {
3149
3149
  return sl.has(e);
3150
3150
  }
3151
3151
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
3152
- const Tn = (e) => typeof e < "u", Vn = {
3152
+ const xn = (e) => typeof e < "u", Vn = {
3153
3153
  syntax: "<angle>",
3154
3154
  initialValue: "0deg",
3155
3155
  toDefaultUnit: (e) => `${e}deg`
@@ -3166,22 +3166,22 @@ const Tn = (e) => typeof e < "u", Vn = {
3166
3166
  toDefaultUnit: tl
3167
3167
  },
3168
3168
  skew: Vn
3169
- }, ol = ["translate", "scale", "rotate", "skew"], al = ["", "X", "Y", "Z"], Ee = /* @__PURE__ */ new Map(), Ct = ["transformPerspective", "x", "y", "z", "translateX", "translateY", "translateZ", "scale", "scaleX", "scaleY", "rotate", "rotateX", "rotateY", "rotateZ", "skew", "skewX", "skewY"];
3169
+ }, ol = ["translate", "scale", "rotate", "skew"], al = ["", "X", "Y", "Z"], Ee = /* @__PURE__ */ new Map(), Pt = ["transformPerspective", "x", "y", "z", "translateX", "translateY", "translateZ", "scale", "scaleX", "scaleY", "rotate", "rotateX", "rotateY", "rotateZ", "skew", "skewX", "skewY"];
3170
3170
  ol.forEach((e) => {
3171
3171
  al.forEach((t) => {
3172
- Ct.push(e + t), Ee.set(
3172
+ Pt.push(e + t), Ee.set(
3173
3173
  e + t,
3174
3174
  rl[e]
3175
3175
  );
3176
3176
  });
3177
3177
  });
3178
- const ll = new Set(Ct), ul = (e) => ll.has(e), xn = {
3178
+ const ll = new Set(Pt), ul = (e) => ll.has(e), An = {
3179
3179
  x: "translateX",
3180
3180
  y: "translateY",
3181
3181
  z: "translateZ"
3182
3182
  };
3183
3183
  function cl([e], [t]) {
3184
- return Ct.indexOf(e) - Ct.indexOf(t);
3184
+ return Pt.indexOf(e) - Pt.indexOf(t);
3185
3185
  }
3186
3186
  function fl(e, [t, n]) {
3187
3187
  return `${e} ${t}(${n})`;
@@ -3199,7 +3199,7 @@ const dl = {
3199
3199
  z: 0
3200
3200
  }, pl = {
3201
3201
  get: (e, t) => {
3202
- let n = Sn(t) ? e.style.getPropertyValue(t) : getComputedStyle(e)[t];
3202
+ let n = Tn(t) ? e.style.getPropertyValue(t) : getComputedStyle(e)[t];
3203
3203
  if (!n && n !== "0") {
3204
3204
  const s = Ee.get(t);
3205
3205
  s && (n = s.initialValue);
@@ -3207,7 +3207,7 @@ const dl = {
3207
3207
  return n;
3208
3208
  },
3209
3209
  set: (e, t, n) => {
3210
- Sn(t) ? e.style.setProperty(t, n) : e.style[t] = n;
3210
+ Tn(t) ? e.style.setProperty(t, n) : e.style[t] = n;
3211
3211
  }
3212
3212
  };
3213
3213
  function Ut(e) {
@@ -3215,14 +3215,14 @@ function Ut(e) {
3215
3215
  const t = {}, n = [];
3216
3216
  for (let i in e) {
3217
3217
  let r = e[i];
3218
- r = Y(r) ? r.get() : r, ul(i) && i in xn && (i = xn[i]);
3218
+ r = Y(r) ? r.get() : r, ul(i) && i in An && (i = An[i]);
3219
3219
  let o = Array.isArray(r) ? r[0] : r;
3220
3220
  const a = Ee.get(i);
3221
3221
  a ? (o = el(r) ? (s = a.toDefaultUnit) == null ? void 0 : s.call(a, r) : r, n.push([i, o])) : t[i] = o;
3222
3222
  }
3223
3223
  return n.length && (t.transform = hl(n)), t;
3224
3224
  }
3225
- const An = {
3225
+ const Mn = {
3226
3226
  fill: !0,
3227
3227
  stroke: !0,
3228
3228
  strokeWidth: !0,
@@ -3272,8 +3272,8 @@ const An = {
3272
3272
  function ml(e) {
3273
3273
  const t = {}, n = {};
3274
3274
  for (const s in e)
3275
- if (s in An) {
3276
- const i = An[s], r = typeof i == "string" ? i : s, o = e[s];
3275
+ if (s in Mn) {
3276
+ const i = Mn[s], r = typeof i == "string" ? i : s, o = e[s];
3277
3277
  t[r] = Y(o) ? o.get() : o;
3278
3278
  } else
3279
3279
  n[s] = e[s];
@@ -3282,8 +3282,8 @@ function ml(e) {
3282
3282
  style: n
3283
3283
  };
3284
3284
  }
3285
- function js(e) {
3286
- return e ? e.flatMap((t) => t.type === ti ? js(t.children) : [t]) : [];
3285
+ function Hs(e) {
3286
+ return e ? e.flatMap((t) => t.type === ti ? Hs(t.children) : [t]) : [];
3287
3287
  }
3288
3288
  const gl = Ot({
3289
3289
  name: "PrimitiveSlot",
@@ -3293,12 +3293,12 @@ const gl = Ot({
3293
3293
  var l, u;
3294
3294
  if (!n.default)
3295
3295
  return null;
3296
- const s = js(n.default()), i = s.findIndex((c) => c.type !== ei);
3296
+ const s = Hs(n.default()), i = s.findIndex((c) => c.type !== ei);
3297
3297
  if (i === -1)
3298
3298
  return s;
3299
3299
  const r = s[i];
3300
3300
  (l = r.props) == null || delete l.ref;
3301
- const o = r.props ? re(t, r.props) : t;
3301
+ const o = r.props ? In(t, r.props) : t;
3302
3302
  t.class && ((u = r.props) != null && u.class) && delete r.props.class;
3303
3303
  const a = ni(r, o);
3304
3304
  for (const c in o)
@@ -3324,16 +3324,16 @@ const gl = Ot({
3324
3324
  return typeof s == "string" && ["area", "img", "input"].includes(s) ? () => $t(s, t) : s !== "template" ? () => $t(e.as, t, { default: n.default }) : () => $t(gl, t, { default: n.default });
3325
3325
  }
3326
3326
  });
3327
- var Hs = function() {
3328
- }, Ys = function() {
3327
+ var Ys = function() {
3328
+ }, Xs = function() {
3329
3329
  };
3330
- process.env.NODE_ENV !== "production" && (Hs = function(e, t) {
3330
+ process.env.NODE_ENV !== "production" && (Ys = function(e, t) {
3331
3331
  !e && typeof console < "u" && console.warn(t);
3332
- }, Ys = function(e, t) {
3332
+ }, Xs = function(e, t) {
3333
3333
  if (!e)
3334
3334
  throw new Error(t);
3335
3335
  });
3336
- class Xs {
3336
+ class Pe {
3337
3337
  constructor(t) {
3338
3338
  this.state = t;
3339
3339
  }
@@ -3344,9 +3344,9 @@ class vl {
3344
3344
  constructor(t) {
3345
3345
  this.features = [], this.features = [
3346
3346
  new bl(t),
3347
- new wl(t),
3348
3347
  new Sl(t),
3349
- // new DragGesture(state),
3348
+ new wl(t),
3349
+ new Vl(t),
3350
3350
  new Tl(t)
3351
3351
  ];
3352
3352
  }
@@ -3360,12 +3360,12 @@ class vl {
3360
3360
  this.features.forEach((t) => t.update());
3361
3361
  }
3362
3362
  }
3363
- function ft(e, t, n) {
3363
+ function ct(e, t, n) {
3364
3364
  e.dispatchEvent(
3365
3365
  new CustomEvent(t, { detail: { originalEvent: n } })
3366
3366
  );
3367
3367
  }
3368
- class Pe extends Xs {
3368
+ class Ce extends Pe {
3369
3369
  updateGestureSubscriptions() {
3370
3370
  const t = this.isActive();
3371
3371
  t && !this.removeGestureSubscriptions ? this.removeGestureSubscriptions = this.subscribeEvents() : !t && this.removeGestureSubscriptions && (this.removeGestureSubscriptions(), this.removeGestureSubscriptions = void 0);
@@ -3375,20 +3375,20 @@ class Pe extends Xs {
3375
3375
  (t = this.removeGestureSubscriptions) == null || t.call(this);
3376
3376
  }
3377
3377
  }
3378
- function Mn(e, t, n) {
3378
+ function En(e, t, n) {
3379
3379
  return (s) => {
3380
- s.pointerType && s.pointerType !== "mouse" || (n(), ft(e, t, s));
3380
+ s.pointerType && s.pointerType !== "mouse" || (n(), ct(e, t, s));
3381
3381
  };
3382
3382
  }
3383
- class bl extends Pe {
3383
+ class bl extends Ce {
3384
3384
  isActive() {
3385
3385
  return !!this.state.getOptions().hover;
3386
3386
  }
3387
3387
  constructor(t) {
3388
3388
  super(t), this.subscribeEvents = () => {
3389
- const n = this.state.getElement(), s = Mn(n, "hoverstart", () => {
3389
+ const n = this.state.getElement(), s = En(n, "hoverstart", () => {
3390
3390
  this.state.setActive("hover", !0);
3391
- }), i = Mn(n, "hoverend", () => {
3391
+ }), i = En(n, "hoverend", () => {
3392
3392
  this.state.setActive("hover", !1);
3393
3393
  });
3394
3394
  return n.addEventListener("pointerenter", s), n.addEventListener("pointerleave", i), () => {
@@ -3403,16 +3403,16 @@ class bl extends Pe {
3403
3403
  this.updateGestureSubscriptions();
3404
3404
  }
3405
3405
  }
3406
- class wl extends Pe {
3406
+ class Sl extends Ce {
3407
3407
  isActive() {
3408
3408
  return !!this.state.getOptions().press;
3409
3409
  }
3410
3410
  constructor(t) {
3411
3411
  super(t), this.subscribeEvents = () => {
3412
3412
  const n = this.state.getElement(), s = (r) => {
3413
- this.state.setActive("press", !1), ft(n, "pressend", r), window.removeEventListener("pointerup", s);
3413
+ this.state.setActive("press", !1), ct(n, "pressend", r), window.removeEventListener("pointerup", s);
3414
3414
  }, i = (r) => {
3415
- this.state.setActive("press", !0), ft(n, "pressstart", r), window.addEventListener("pointerup", s);
3415
+ this.state.setActive("press", !0), ct(n, "pressstart", r), window.addEventListener("pointerup", s);
3416
3416
  };
3417
3417
  return n.addEventListener("pointerdown", i), () => {
3418
3418
  n.removeEventListener("pointerdown", i), window.removeEventListener("pointerup", s);
@@ -3426,7 +3426,7 @@ class wl extends Pe {
3426
3426
  this.updateGestureSubscriptions();
3427
3427
  }
3428
3428
  }
3429
- class Sl extends Pe {
3429
+ class wl extends Ce {
3430
3430
  isActive() {
3431
3431
  return !!this.state.getOptions().inView;
3432
3432
  }
@@ -3435,9 +3435,9 @@ class Sl extends Pe {
3435
3435
  var r;
3436
3436
  const n = this.state.getElement(), { once: s, ...i } = ((r = this.state.getOptions()) == null ? void 0 : r.inViewOptions) || {};
3437
3437
  return Wa(n, (o) => {
3438
- if (this.state.setActive("inView", !0), ft(n, "viewenter", o), !s)
3438
+ if (this.state.setActive("inView", !0), ct(n, "viewenter", o), !s)
3439
3439
  return (a) => {
3440
- this.state.setActive("inView", !1), ft(n, "viewleave", a);
3440
+ this.state.setActive("inView", !1), ct(n, "viewleave", a);
3441
3441
  };
3442
3442
  }, i);
3443
3443
  };
@@ -3449,7 +3449,7 @@ class Sl extends Pe {
3449
3449
  this.updateGestureSubscriptions();
3450
3450
  }
3451
3451
  }
3452
- class Tl extends Xs {
3452
+ class Tl extends Pe {
3453
3453
  constructor() {
3454
3454
  super(...arguments), this.handlers = {};
3455
3455
  }
@@ -3498,28 +3498,53 @@ class Tl extends Xs {
3498
3498
  });
3499
3499
  }
3500
3500
  }
3501
+ function xl(e) {
3502
+ return e instanceof SVGElement && e.tagName !== "svg";
3503
+ }
3504
+ class Vl extends Pe {
3505
+ mount() {
3506
+ const t = this.state.getElement();
3507
+ if (!xl(t))
3508
+ return;
3509
+ const n = this.state.visualElement;
3510
+ M.read(() => {
3511
+ try {
3512
+ n.renderState.dimensions = typeof t.getBBox == "function" ? t.getBBox() : t.getBoundingClientRect();
3513
+ } catch {
3514
+ n.renderState.dimensions = {
3515
+ x: 0,
3516
+ y: 0,
3517
+ width: 0,
3518
+ height: 0
3519
+ };
3520
+ }
3521
+ });
3522
+ }
3523
+ unmount() {
3524
+ }
3525
+ }
3501
3526
  let G;
3502
- const En = (e) => e.next(), Vl = (e) => e.animateUpdates();
3503
- function xl() {
3527
+ const Pn = (e) => e.next(), Al = (e) => e.animateUpdates();
3528
+ function Ml() {
3504
3529
  if (!G)
3505
3530
  return;
3506
- const e = G.sort(Ml).map(Vl);
3507
- e.forEach(En), e.forEach(En), G = void 0;
3531
+ const e = G.sort(Pl).map(Al);
3532
+ e.forEach(Pn), e.forEach(Pn), G = void 0;
3508
3533
  }
3509
- function Pn(e) {
3510
- G ? qa(G, e) : (G = [e], requestAnimationFrame(xl));
3534
+ function Cn(e) {
3535
+ G ? qa(G, e) : (G = [e], requestAnimationFrame(Ml));
3511
3536
  }
3512
- function Al(e) {
3537
+ function El(e) {
3513
3538
  G && Za(G, e);
3514
3539
  }
3515
- function Ml(e, t) {
3540
+ function Pl(e, t) {
3516
3541
  return e.getDepth() - t.getDepth();
3517
3542
  }
3518
- function Cn(e, t, n) {
3543
+ function Fn(e, t, n) {
3519
3544
  return new CustomEvent(e, { detail: { target: t, isExit: n } });
3520
3545
  }
3521
- const Fn = ["initial", "animate", "inView", "hover", "press", "exit", "drag"], Ft = /* @__PURE__ */ new WeakMap();
3522
- class El {
3546
+ const On = ["initial", "animate", "inView", "hover", "press", "exit", "drag"], Ct = /* @__PURE__ */ new WeakMap();
3547
+ class Cl {
3523
3548
  constructor(t, n) {
3524
3549
  this.element = null, this.context = {}, this.activeStates = {
3525
3550
  initial: !0,
@@ -3530,21 +3555,21 @@ class El {
3530
3555
  }
3531
3556
  initContext() {
3532
3557
  var t;
3533
- for (const n of Fn)
3558
+ for (const n of On)
3534
3559
  this.context[n] = typeof this.options[n] == "string" ? this.options[n] : (t = this.parent) == null ? void 0 : t.context[n];
3535
3560
  }
3536
3561
  initTarget(t) {
3537
3562
  this.baseTarget = wn(this.options[t] || this.context[t], this.options.variants) || {}, this.target = { ...this.baseTarget };
3538
3563
  }
3539
3564
  get initial() {
3540
- return Tn(this.options.initial) ? this.options.initial : this.context.initial;
3565
+ return xn(this.options.initial) ? this.options.initial : this.context.initial;
3541
3566
  }
3542
3567
  mount(t) {
3543
3568
  var s;
3544
- Ys(
3569
+ Xs(
3545
3570
  !!t,
3546
3571
  "Animation state must be mounted with valid Element"
3547
- ), this.element = t, Ft.set(t, this), $.get(t) || Ws(t);
3572
+ ), this.element = t, Ct.set(t, this), $.get(t) || _s(t);
3548
3573
  const n = $.get(t);
3549
3574
  if (this.visualElement = n, n.update(this.options, (s = this.parent) == null ? void 0 : s.context), typeof this.initial == "object")
3550
3575
  for (const i in this.initial)
@@ -3556,24 +3581,24 @@ class El {
3556
3581
  }
3557
3582
  unmount() {
3558
3583
  var t;
3559
- Ft.delete(this.element), Al(this), (t = $.get(this.element)) == null || t.unmount(), this.featureManager.unmount();
3584
+ Ct.delete(this.element), El(this), (t = $.get(this.element)) == null || t.unmount(), this.featureManager.unmount();
3560
3585
  }
3561
3586
  update(t) {
3562
3587
  var n;
3563
- this.options = t, this.visualElement.update(this.options, (n = this.parent) == null ? void 0 : n.context), this.featureManager.update(), Pn(this);
3588
+ this.options = t, this.visualElement.update(this.options, (n = this.parent) == null ? void 0 : n.context), this.featureManager.update(), Cn(this);
3564
3589
  }
3565
3590
  setActive(t, n) {
3566
- this.element && (this.activeStates[t] = n, Pn(this));
3591
+ this.element && (this.activeStates[t] = n, Cn(this));
3567
3592
  }
3568
3593
  *animateUpdates() {
3569
3594
  const t = this.target;
3570
3595
  this.target = {};
3571
3596
  const n = {};
3572
- for (const l of Fn) {
3597
+ for (const l of On) {
3573
3598
  if (!this.activeStates[l])
3574
3599
  continue;
3575
3600
  const u = wn(
3576
- Tn(this.options[l]) ? this.options[l] : this.context[l],
3601
+ xn(this.options[l]) ? this.options[l] : this.context[l],
3577
3602
  this.options.variants
3578
3603
  );
3579
3604
  if (!u)
@@ -3605,10 +3630,10 @@ class El {
3605
3630
  if (!r.length)
3606
3631
  return;
3607
3632
  const o = this.target;
3608
- this.element.dispatchEvent(Cn("motionstart", o));
3633
+ this.element.dispatchEvent(Fn("motionstart", o));
3609
3634
  const a = this.activeStates.exit;
3610
3635
  Promise.all(r).then(() => {
3611
- this.element.dispatchEvent(Cn("motioncomplete", {
3636
+ this.element.dispatchEvent(Fn("motioncomplete", {
3612
3637
  ...o
3613
3638
  }, a));
3614
3639
  }).catch(Qa);
@@ -3629,12 +3654,12 @@ class El {
3629
3654
  return this.target;
3630
3655
  }
3631
3656
  }
3632
- const at = /* @__PURE__ */ new WeakMap();
3633
- function On(e) {
3634
- const t = at.get(e);
3635
- t && e.removeEventListener("motioncomplete", t), at.delete(e);
3657
+ const Ft = /* @__PURE__ */ new Map();
3658
+ function jt(e) {
3659
+ const t = Ft.get(e);
3660
+ t && e.removeEventListener("motioncomplete", t), Ft.delete(e);
3636
3661
  }
3637
- const [Pl, Cl] = Us("AnimatePresenceContext"), _l = /* @__PURE__ */ Ot({
3662
+ const [Fl, Ol] = js("AnimatePresenceContext"), zl = /* @__PURE__ */ Ot({
3638
3663
  name: "Motion",
3639
3664
  inheritAttrs: !1,
3640
3665
  __name: "Motion",
@@ -3669,7 +3694,7 @@ const [Pl, Cl] = Us("AnimatePresenceContext"), _l = /* @__PURE__ */ Ot({
3669
3694
  inView: void 0
3670
3695
  }),
3671
3696
  setup(e) {
3672
- const t = e, { initial: n, safeUnmount: s } = Pl({ initial: ii(void 0), safeUnmount: () => !0 }), i = ja(null), r = ri(), o = new El(
3697
+ const t = e, { initial: n, safeUnmount: s } = Fl({ initial: ii(void 0), safeUnmount: () => !0 }), i = ja(null), r = ri(), o = new Cl(
3673
3698
  {
3674
3699
  ...r,
3675
3700
  ...t
@@ -3678,7 +3703,7 @@ const [Pl, Cl] = Us("AnimatePresenceContext"), _l = /* @__PURE__ */ Ot({
3678
3703
  );
3679
3704
  Ha(o);
3680
3705
  const a = oi();
3681
- In(() => {
3706
+ Ln(() => {
3682
3707
  o.mount(a == null ? void 0 : a.vnode.el), o.update({
3683
3708
  ...r,
3684
3709
  ...t,
@@ -3699,25 +3724,27 @@ const [Pl, Cl] = Us("AnimatePresenceContext"), _l = /* @__PURE__ */ Ot({
3699
3724
  Y(r[f]) && (u[f] = r[f].get());
3700
3725
  });
3701
3726
  let c = {};
3702
- if (!o.isMounted() && il(t.as)) {
3703
- const { attributes: f, style: h } = ml(o.getTarget());
3704
- Object.assign(u, f), Object.assign(c, h, t.style);
3705
- }
3727
+ if (!o.isMounted())
3728
+ if (il(t.as)) {
3729
+ const { attributes: f, style: h } = ml(o.getTarget());
3730
+ Object.assign(u, f), Object.assign(c, h, t.style);
3731
+ } else
3732
+ Object.assign(c, t.style, o.getTarget());
3706
3733
  return c = Ut(c), u.style = Ut(c), u;
3707
3734
  }
3708
- return (u, c) => (Ln(), Nn(li(yl), re({
3735
+ return (u, c) => (Nn(), $n(li(yl), In({
3709
3736
  as: u.as,
3710
3737
  "as-child": u.asChild
3711
3738
  }, l()), {
3712
- default: $n(() => [
3713
- Kn(u.$slots, "default")
3739
+ default: Kn(() => [
3740
+ Wn(u.$slots, "default")
3714
3741
  ]),
3715
3742
  _: 3
3716
3743
  }, 16, ["as", "as-child"]));
3717
3744
  }
3718
- }), Gl = /* @__PURE__ */ Ot({
3745
+ }), Ul = /* @__PURE__ */ Ot({
3719
3746
  name: "AnimatePresence",
3720
- inheritAttrs: !1,
3747
+ inheritAttrs: !0,
3721
3748
  __name: "AnimatePresence",
3722
3749
  props: {
3723
3750
  mode: { default: "sync" },
@@ -3727,43 +3754,42 @@ const [Pl, Cl] = Us("AnimatePresenceContext"), _l = /* @__PURE__ */ Ot({
3727
3754
  },
3728
3755
  setup(e) {
3729
3756
  const t = e, { initial: n } = ui(t);
3730
- Cl({
3757
+ Ol({
3731
3758
  initial: n,
3732
3759
  safeUnmount(r) {
3733
- return !at.has(r);
3760
+ return !Ft.has(r);
3734
3761
  }
3735
3762
  });
3736
3763
  function s(r) {
3737
- const o = Ft.get(r);
3738
- o && (On(r), o.setActive("exit", !1));
3764
+ const o = Ct.get(r);
3765
+ o && (jt(r), o.setActive("exit", !1));
3739
3766
  }
3740
3767
  function i(r, o) {
3741
- const a = Ft.get(r);
3768
+ const a = Ct.get(r);
3742
3769
  if (!a)
3743
3770
  return o();
3744
- a.setActive("exit", !0), On(r);
3771
+ jt(r);
3745
3772
  function l(u) {
3746
3773
  var c;
3747
- (c = u == null ? void 0 : u.detail) != null && c.isExit && (at.delete(r), a.unmount(), o());
3774
+ (c = u == null ? void 0 : u.detail) != null && c.isExit && (jt(r), o(), r.__vnode.ctx.isUnmounted && a.unmount());
3748
3775
  }
3749
- at.set(r, l), r.addEventListener("motioncomplete", l);
3776
+ Ft.set(r, l), r.addEventListener("motioncomplete", l), a.setActive("exit", !0);
3750
3777
  }
3751
- return (r, o) => (Ln(), Nn(ci(r.multiple ? fi : hi), re({
3778
+ return (r, o) => (Nn(), $n(ci(r.multiple ? fi : hi), {
3752
3779
  tag: r.multiple ? r.as : void 0,
3753
3780
  css: !1,
3754
- mode: r.mode === "wait" ? "out-in" : void 0
3755
- }, r.$attrs, {
3781
+ mode: r.mode === "wait" ? "out-in" : void 0,
3756
3782
  onEnter: s,
3757
3783
  onLeave: i
3758
- }), {
3759
- default: $n(() => [
3760
- Kn(r.$slots, "default")
3784
+ }, {
3785
+ default: Kn(() => [
3786
+ Wn(r.$slots, "default")
3761
3787
  ]),
3762
3788
  _: 3
3763
- }, 16, ["tag", "mode"]));
3789
+ }, 40, ["tag", "mode"]));
3764
3790
  }
3765
3791
  });
3766
- function Ce(e) {
3792
+ function Fe(e) {
3767
3793
  const t = D(e()), n = () => t.set(e()), s = () => M.preRender(n, !1, !0);
3768
3794
  let i;
3769
3795
  const r = (a) => {
@@ -3779,16 +3805,16 @@ function Ce(e) {
3779
3805
  value: t
3780
3806
  };
3781
3807
  }
3782
- function Fl(e) {
3783
- _.current = [];
3784
- const { value: t, subscribe: n, unsubscribe: s } = Ce(e);
3785
- return n(_.current), _.current = void 0, Wn(() => {
3786
- s(), _.current = [], e(), n(_.current), _.current = void 0;
3808
+ function Dl(e) {
3809
+ k.current = [];
3810
+ const { value: t, subscribe: n, unsubscribe: s } = Fe(e);
3811
+ return n(k.current), k.current = void 0, _n(() => {
3812
+ s(), k.current = [], e(), n(k.current), k.current = void 0;
3787
3813
  }), t;
3788
3814
  }
3789
- function zl(e, t, n, s) {
3815
+ function jl(e, t, n, s) {
3790
3816
  if (typeof e == "function")
3791
- return Fl(e);
3817
+ return Dl(e);
3792
3818
  const i = typeof t == "function" ? t : za(t, n, s);
3793
3819
  return Array.isArray(e) ? Dn(
3794
3820
  e,
@@ -3796,7 +3822,7 @@ function zl(e, t, n, s) {
3796
3822
  ) : Dn([e], ([r]) => i(r));
3797
3823
  }
3798
3824
  function Dn(e, t) {
3799
- const n = [], { value: s, subscribe: i } = Ce(() => {
3825
+ const n = [], { value: s, subscribe: i } = Fe(() => {
3800
3826
  n.length = 0;
3801
3827
  const r = e.length;
3802
3828
  for (let o = 0; o < r; o++)
@@ -3805,20 +3831,20 @@ function Dn(e, t) {
3805
3831
  });
3806
3832
  return i(e), s;
3807
3833
  }
3808
- function Ol(e) {
3834
+ function Bl(e) {
3809
3835
  let t = 0;
3810
3836
  const n = ({ timestamp: i, delta: r }) => {
3811
3837
  t || (t = i), e(i - t, r);
3812
3838
  }, s = () => R(n);
3813
- Wn(() => {
3839
+ _n(() => {
3814
3840
  s(), M.update(n, !0);
3815
3841
  }), Dt(() => s()), M.update(n, !0);
3816
3842
  }
3817
- function Ul() {
3843
+ function Hl() {
3818
3844
  const e = D(0);
3819
- return Ol((t) => e.set(t)), e;
3845
+ return Bl((t) => e.set(t)), e;
3820
3846
  }
3821
- function jl(e, ...t) {
3847
+ function Yl(e, ...t) {
3822
3848
  const n = e.length;
3823
3849
  function s() {
3824
3850
  let o = "";
@@ -3829,13 +3855,13 @@ function jl(e, ...t) {
3829
3855
  }
3830
3856
  return o;
3831
3857
  }
3832
- const { value: i, subscribe: r } = Ce(s);
3858
+ const { value: i, subscribe: r } = Fe(s);
3833
3859
  return r(t.filter(Y)), i;
3834
3860
  }
3835
3861
  function Bn(e) {
3836
3862
  return typeof e == "number" ? e : parseFloat(e);
3837
3863
  }
3838
- function Hl(e, t = {}) {
3864
+ function Xl(e, t = {}) {
3839
3865
  let n = null;
3840
3866
  const s = D(
3841
3867
  Y(e) ? Bn(e.get()) : e
@@ -3864,12 +3890,12 @@ function Hl(e, t = {}) {
3864
3890
  }), s;
3865
3891
  }
3866
3892
  function Rn(e, t) {
3867
- Hs(
3893
+ Ys(
3868
3894
  !!(!t || t.value),
3869
3895
  `You have defined a ${e} options but the provided ref is not yet hydrated, probably because it's defined higher up the tree. Try calling useScroll() in the same component as the ref.`
3870
3896
  );
3871
3897
  }
3872
- function Dl() {
3898
+ function Rl() {
3873
3899
  return {
3874
3900
  scrollX: D(0),
3875
3901
  scrollY: D(0),
@@ -3877,12 +3903,12 @@ function Dl() {
3877
3903
  scrollYProgress: D(0)
3878
3904
  };
3879
3905
  }
3880
- function Yl({
3906
+ function ql({
3881
3907
  container: e,
3882
3908
  target: t,
3883
3909
  ...n
3884
3910
  } = {}) {
3885
- const s = Dl();
3911
+ const s = Rl();
3886
3912
  let i;
3887
3913
  const r = () => {
3888
3914
  i == null || i(), i = $a(
@@ -3896,64 +3922,81 @@ function Yl({
3896
3922
  }
3897
3923
  );
3898
3924
  };
3899
- return In(() => {
3925
+ return Ln(() => {
3900
3926
  Rn("target", t), Rn("container", e), r();
3901
3927
  }), Dt(() => i == null ? void 0 : i()), kn(
3902
3928
  () => [e == null ? void 0 : e.value, t == null ? void 0 : t.value, n.offset],
3903
3929
  r
3904
3930
  ), s;
3905
3931
  }
3932
+ const Zl = {
3933
+ motion: [
3934
+ "Motion",
3935
+ "MotionPresence"
3936
+ ]
3937
+ }, Jl = {
3938
+ utilities: [
3939
+ "useTransform",
3940
+ "useTime",
3941
+ "useMotionTemplate",
3942
+ "useSpring",
3943
+ "useScroll",
3944
+ "useMotionValue"
3945
+ ]
3946
+ };
3906
3947
  export {
3907
- Gl as AnimatePresence,
3908
- _l as Motion,
3909
- Si as MotionValue,
3948
+ Ul as AnimatePresence,
3949
+ zl as Motion,
3950
+ wi as MotionValue,
3910
3951
  ra as animate,
3911
- Il as animateMini,
3912
- ns as anticipate,
3952
+ Nl as animateMini,
3953
+ ss as anticipate,
3913
3954
  he as backIn,
3914
- es as backInOut,
3915
- ts as backOut,
3955
+ ns as backInOut,
3956
+ es as backOut,
3916
3957
  R as cancelFrame,
3917
- kl as cancelSync,
3958
+ Gl as cancelSync,
3918
3959
  de as circIn,
3919
- ss as circInOut,
3960
+ is as circInOut,
3920
3961
  Ji as circOut,
3921
3962
  H as clamp,
3963
+ Zl as components,
3922
3964
  ia as createScopedAnimate,
3923
- vt as cubicBezier,
3924
- $l as delay,
3925
- bn as distance,
3926
- Kl as distance2D,
3965
+ yt as cubicBezier,
3966
+ Wl as delay,
3967
+ Sn as distance,
3968
+ _l as distance2D,
3927
3969
  Rr as easeIn,
3928
- Ss as easeInOut,
3970
+ Ts as easeInOut,
3929
3971
  Ir as easeOut,
3930
3972
  M as frame,
3931
3973
  J as frameData,
3932
- Rl as frameSteps,
3974
+ Ll as frameSteps,
3933
3975
  Wa as inView,
3934
- en as inertia,
3935
- Ve as interpolate,
3976
+ nn as inertia,
3977
+ xe as interpolate,
3936
3978
  I as invariant,
3937
- Mt as keyframes,
3938
- Jn as mirrorEasing,
3979
+ At as keyframes,
3980
+ Qn as mirrorEasing,
3939
3981
  Vs as mix,
3940
3982
  D as motionValue,
3941
- Se as pipe,
3942
- pt as progress,
3943
- Qn as reverseEasing,
3983
+ we as pipe,
3984
+ dt as progress,
3985
+ ts as reverseEasing,
3944
3986
  $a as scroll,
3945
3987
  Me as scrollInfo,
3946
3988
  le as spring,
3947
- Nl as stagger,
3948
- Ll as steps,
3949
- Wl as sync,
3989
+ Kl as stagger,
3990
+ $l as steps,
3991
+ kl as sync,
3950
3992
  za as transform,
3951
- jl as useMotionTemplate,
3993
+ Yl as useMotionTemplate,
3952
3994
  D as useMotionValue,
3953
- Yl as useScroll,
3954
- Hl as useSpring,
3955
- Ul as useTime,
3956
- zl as useTransform,
3957
- ht as warning,
3995
+ ql as useScroll,
3996
+ Xl as useSpring,
3997
+ Hl as useTime,
3998
+ jl as useTransform,
3999
+ Jl as utilities,
4000
+ ft as warning,
3958
4001
  Di as wrap
3959
4002
  };