react-emotion-face 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
- import { jsx as p, Fragment as Tr, jsxs as C } from "react/jsx-runtime";
1
+ import { jsx as f, Fragment as wr, jsxs as C } from "react/jsx-runtime";
2
2
  import * as Ne from "react";
3
- import wr, { createContext as xt, useRef as Z, useId as We, useContext as B, useInsertionEffect as zi, useCallback as Ue, useMemo as lt, useEffect as $e, Children as Pr, isValidElement as Ar, useLayoutEffect as Cr, useState as Cn, forwardRef as Vr, Fragment as Gi, createElement as Dr, Component as Mr } from "react";
3
+ import Tr, { createContext as xt, useRef as Z, useId as We, useContext as B, useInsertionEffect as zi, useCallback as Ue, useMemo as lt, useEffect as $e, Children as Pr, isValidElement as Ar, useLayoutEffect as Cr, useState as Cn, forwardRef as Vr, Fragment as Gi, createElement as Dr, Component as Mr } from "react";
4
4
  const _e = xt({});
5
5
  function Ke(t) {
6
6
  const e = Z(null);
@@ -53,7 +53,7 @@ function Er({ children: t, isPresent: e }) {
53
53
  `), () => {
54
54
  document.head.removeChild(u);
55
55
  };
56
- }, [e]), p(kr, { isPresent: e, childRef: i, sizeRef: s, children: Ne.cloneElement(t, { ref: i }) });
56
+ }, [e]), f(kr, { isPresent: e, childRef: i, sizeRef: s, children: Ne.cloneElement(t, { ref: i }) });
57
57
  }
58
58
  const Rr = ({ children: t, initial: e, isPresent: n, onExitComplete: i, custom: s, presenceAffectsLayout: o, mode: r }) => {
59
59
  const a = Ke(Lr), l = We(), c = Ue((h) => {
@@ -82,7 +82,7 @@ const Rr = ({ children: t, initial: e, isPresent: n, onExitComplete: i, custom:
82
82
  a.forEach((h, d) => a.set(d, !1));
83
83
  }, [n]), Ne.useEffect(() => {
84
84
  !n && !a.size && i && i();
85
- }, [n]), r === "popLayout" && (t = p(Er, { isPresent: n, children: t })), p(te.Provider, { value: u, children: t });
85
+ }, [n]), r === "popLayout" && (t = f(Er, { isPresent: n, children: t })), f(te.Provider, { value: u, children: t });
86
86
  };
87
87
  function Lr() {
88
88
  return /* @__PURE__ */ new Map();
@@ -106,12 +106,12 @@ function Vn(t) {
106
106
  }), e;
107
107
  }
108
108
  const Ge = typeof window < "u", qi = Ge ? Cr : $e, ee = ({ children: t, custom: e, initial: n = !0, onExitComplete: i, presenceAffectsLayout: s = !0, mode: o = "sync", propagate: r = !1 }) => {
109
- const [a, l] = Hi(r), c = lt(() => Vn(t), [t]), u = r && !a ? [] : c.map(Wt), h = Z(!0), d = Z(c), f = Ke(() => /* @__PURE__ */ new Map()), [m, g] = Cn(c), [v, y] = Cn(c);
109
+ const [a, l] = Hi(r), c = lt(() => Vn(t), [t]), u = r && !a ? [] : c.map(Wt), h = Z(!0), d = Z(c), p = Ke(() => /* @__PURE__ */ new Map()), [m, g] = Cn(c), [v, y] = Cn(c);
110
110
  qi(() => {
111
111
  h.current = !1, d.current = c;
112
112
  for (let P = 0; P < v.length; P++) {
113
113
  const x = Wt(v[P]);
114
- u.includes(x) ? f.delete(x) : f.get(x) !== !0 && f.set(x, !1);
114
+ u.includes(x) ? p.delete(x) : p.get(x) !== !0 && p.set(x, !1);
115
115
  }
116
116
  }, [v, u.length, u.join("-")]);
117
117
  const S = [];
@@ -126,18 +126,18 @@ const Ge = typeof window < "u", qi = Ge ? Cr : $e, ee = ({ children: t, custom:
126
126
  }
127
127
  process.env.NODE_ENV !== "production" && o === "wait" && v.length > 1 && console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);
128
128
  const { forceRender: b } = B(_e);
129
- return p(Tr, { children: v.map((P) => {
129
+ return f(wr, { children: v.map((P) => {
130
130
  const x = Wt(P), A = r && !a ? !1 : c === v || u.includes(x), k = () => {
131
- if (f.has(x))
132
- f.set(x, !0);
131
+ if (p.has(x))
132
+ p.set(x, !0);
133
133
  else
134
134
  return;
135
- let w = !0;
136
- f.forEach((L) => {
137
- L || (w = !1);
138
- }), w && (b == null || b(), y(d.current), r && (l == null || l()), i && i());
135
+ let T = !0;
136
+ p.forEach((L) => {
137
+ L || (T = !1);
138
+ }), T && (b == null || b(), y(d.current), r && (l == null || l()), i && i());
139
139
  };
140
- return p(Rr, { isPresent: A, initial: !h.current || n ? void 0 : !1, custom: A ? void 0 : e, presenceAffectsLayout: s, mode: o, onExitComplete: A ? void 0 : k, children: P }, x);
140
+ return f(Rr, { isPresent: A, initial: !h.current || n ? void 0 : !1, custom: A ? void 0 : e, presenceAffectsLayout: s, mode: o, onExitComplete: A ? void 0 : k, children: P }, x);
141
141
  }) });
142
142
  }, j = /* @__NO_SIDE_EFFECTS__ */ (t) => t;
143
143
  let St = j, J = j;
@@ -174,8 +174,8 @@ function Br(t) {
174
174
  * Schedule a process to run on the next frame.
175
175
  */
176
176
  schedule: (c, u = !1, h = !1) => {
177
- const f = h && i ? e : n;
178
- return u && o.add(c), f.has(c) || f.add(c), c;
177
+ const p = h && i ? e : n;
178
+ return u && o.add(c), p.has(c) || p.add(c), c;
179
179
  },
180
180
  /**
181
181
  * Cancel the provided callback from running on the next frame.
@@ -216,11 +216,11 @@ function Yi(t, e) {
216
216
  delta: 0,
217
217
  timestamp: 0,
218
218
  isProcessing: !1
219
- }, o = () => n = !0, r = Ut.reduce((y, S) => (y[S] = Br(o), y), {}), { read: a, resolveKeyframes: l, update: c, preRender: u, render: h, postRender: d } = r, f = () => {
219
+ }, o = () => n = !0, r = Ut.reduce((y, S) => (y[S] = Br(o), y), {}), { read: a, resolveKeyframes: l, update: c, preRender: u, render: h, postRender: d } = r, p = () => {
220
220
  const y = performance.now();
221
- n = !1, s.delta = i ? 1e3 / 60 : Math.max(Math.min(y - s.timestamp, Or), 1), s.timestamp = y, s.isProcessing = !0, a.process(s), l.process(s), c.process(s), u.process(s), h.process(s), d.process(s), s.isProcessing = !1, n && e && (i = !1, t(f));
221
+ n = !1, s.delta = i ? 1e3 / 60 : Math.max(Math.min(y - s.timestamp, Or), 1), s.timestamp = y, s.isProcessing = !0, a.process(s), l.process(s), c.process(s), u.process(s), h.process(s), d.process(s), s.isProcessing = !1, n && e && (i = !1, t(p));
222
222
  }, m = () => {
223
- n = !0, i = !0, s.isProcessing || t(f);
223
+ n = !0, i = !0, s.isProcessing || t(p);
224
224
  };
225
225
  return { schedule: Ut.reduce((y, S) => {
226
226
  const b = r[S];
@@ -396,8 +396,8 @@ function Hr(t, e, n, i, s) {
396
396
  blockInitialAnimation: c ? c.initial === !1 : !1,
397
397
  reducedMotionConfig: u
398
398
  }));
399
- const d = h.current, f = B(ts);
400
- d && !d.projection && s && (d.type === "html" || d.type === "svg") && qr(h.current, n, s, f);
399
+ const d = h.current, p = B(ts);
400
+ d && !d.projection && s && (d.type === "html" || d.type === "svg") && qr(h.current, n, s, p);
401
401
  const m = Z(!1);
402
402
  zi(() => {
403
403
  d && m.current && d.update(n, c);
@@ -445,13 +445,13 @@ function Yr({ preloadedFeatures: t, createVisualElement: e, useRender: n, useVis
445
445
  ...B(ze),
446
446
  ...c,
447
447
  layoutId: Xr(c)
448
- }, { isStatic: f } = d, m = _r(c), g = i(c, f);
449
- if (!f && Ge) {
448
+ }, { isStatic: p } = d, m = _r(c), g = i(c, p);
449
+ if (!p && Ge) {
450
450
  Qr(d, t);
451
451
  const v = Zr(d);
452
452
  h = v.MeasureLayout, m.visualElement = Hr(s, g, d, e, v.ProjectionNode);
453
453
  }
454
- return C(ie.Provider, { value: m, children: [h && m.visualElement ? p(h, { visualElement: m.visualElement, ...d }) : null, n(s, c, zr(g, m.visualElement, u), g, f, m.visualElement)] });
454
+ return C(ie.Provider, { value: m, children: [h && m.visualElement ? f(h, { visualElement: m.visualElement, ...d }) : null, n(s, c, zr(g, m.visualElement, u), g, p, m.visualElement)] });
455
455
  }
456
456
  a.displayName = `motion.${typeof s == "string" ? s : `create(${(r = (o = s.displayName) !== null && o !== void 0 ? o : s.name) !== null && r !== void 0 ? r : ""})`}`;
457
457
  const l = Vr(a);
@@ -542,7 +542,7 @@ function Je(t, e, n, i) {
542
542
  }
543
543
  return e;
544
544
  }
545
- const we = (t) => Array.isArray(t), to = (t) => !!(t && typeof t == "object" && t.mix && t.toValue), eo = (t) => we(t) ? t[t.length - 1] || 0 : t, O = (t) => !!(t && t.getVelocity);
545
+ const Te = (t) => Array.isArray(t), to = (t) => !!(t && typeof t == "object" && t.mix && t.toValue), eo = (t) => Te(t) ? t[t.length - 1] || 0 : t, O = (t) => !!(t && t.getVelocity);
546
546
  function Kt(t) {
547
547
  const e = O(t) ? t.get() : t;
548
548
  return to(e) ? e.toValue() : e;
@@ -570,8 +570,8 @@ function io(t, e, n, i) {
570
570
  const h = u ? a : r;
571
571
  if (h && typeof h != "boolean" && !se(h)) {
572
572
  const d = Array.isArray(h) ? h : [h];
573
- for (let f = 0; f < d.length; f++) {
574
- const m = Je(t, d[f]);
573
+ for (let p = 0; p < d.length; p++) {
574
+ const m = Je(t, d[p]);
575
575
  if (m) {
576
576
  const { transitionEnd: g, transition: v, ...y } = m;
577
577
  for (const S in y) {
@@ -607,60 +607,60 @@ const bt = [
607
607
  "skew",
608
608
  "skewX",
609
609
  "skewY"
610
- ], ct = new Set(bt), is = (t) => (e) => typeof e == "string" && e.startsWith(t), ss = /* @__PURE__ */ is("--"), so = /* @__PURE__ */ is("var(--"), tn = (t) => so(t) ? ro.test(t.split("/*")[0].trim()) : !1, ro = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu, rs = (t, e) => e && typeof t == "number" ? e.transform(t) : t, X = (t, e, n) => n > e ? e : n < t ? t : n, Tt = {
610
+ ], ct = new Set(bt), is = (t) => (e) => typeof e == "string" && e.startsWith(t), ss = /* @__PURE__ */ is("--"), so = /* @__PURE__ */ is("var(--"), tn = (t) => so(t) ? ro.test(t.split("/*")[0].trim()) : !1, ro = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu, rs = (t, e) => e && typeof t == "number" ? e.transform(t) : t, X = (t, e, n) => n > e ? e : n < t ? t : n, wt = {
611
611
  test: (t) => typeof t == "number",
612
612
  parse: parseFloat,
613
613
  transform: (t) => t
614
614
  }, Rt = {
615
- ...Tt,
615
+ ...wt,
616
616
  transform: (t) => X(0, 1, t)
617
617
  }, $t = {
618
- ...Tt,
618
+ ...wt,
619
619
  default: 1
620
620
  }, Ot = (t) => ({
621
621
  test: (e) => typeof e == "string" && e.endsWith(t) && e.split(" ").length === 1,
622
622
  parse: parseFloat,
623
623
  transform: (e) => `${e}${t}`
624
- }), Q = /* @__PURE__ */ Ot("deg"), G = /* @__PURE__ */ Ot("%"), T = /* @__PURE__ */ Ot("px"), oo = /* @__PURE__ */ Ot("vh"), ao = /* @__PURE__ */ Ot("vw"), Rn = {
624
+ }), Q = /* @__PURE__ */ Ot("deg"), G = /* @__PURE__ */ Ot("%"), w = /* @__PURE__ */ Ot("px"), oo = /* @__PURE__ */ Ot("vh"), ao = /* @__PURE__ */ Ot("vw"), Rn = {
625
625
  ...G,
626
626
  parse: (t) => G.parse(t) / 100,
627
627
  transform: (t) => G.transform(t * 100)
628
628
  }, lo = {
629
629
  // Border props
630
- borderWidth: T,
631
- borderTopWidth: T,
632
- borderRightWidth: T,
633
- borderBottomWidth: T,
634
- borderLeftWidth: T,
635
- borderRadius: T,
636
- radius: T,
637
- borderTopLeftRadius: T,
638
- borderTopRightRadius: T,
639
- borderBottomRightRadius: T,
640
- borderBottomLeftRadius: T,
630
+ borderWidth: w,
631
+ borderTopWidth: w,
632
+ borderRightWidth: w,
633
+ borderBottomWidth: w,
634
+ borderLeftWidth: w,
635
+ borderRadius: w,
636
+ radius: w,
637
+ borderTopLeftRadius: w,
638
+ borderTopRightRadius: w,
639
+ borderBottomRightRadius: w,
640
+ borderBottomLeftRadius: w,
641
641
  // Positioning props
642
- width: T,
643
- maxWidth: T,
644
- height: T,
645
- maxHeight: T,
646
- top: T,
647
- right: T,
648
- bottom: T,
649
- left: T,
642
+ width: w,
643
+ maxWidth: w,
644
+ height: w,
645
+ maxHeight: w,
646
+ top: w,
647
+ right: w,
648
+ bottom: w,
649
+ left: w,
650
650
  // Spacing props
651
- padding: T,
652
- paddingTop: T,
653
- paddingRight: T,
654
- paddingBottom: T,
655
- paddingLeft: T,
656
- margin: T,
657
- marginTop: T,
658
- marginRight: T,
659
- marginBottom: T,
660
- marginLeft: T,
651
+ padding: w,
652
+ paddingTop: w,
653
+ paddingRight: w,
654
+ paddingBottom: w,
655
+ paddingLeft: w,
656
+ margin: w,
657
+ marginTop: w,
658
+ marginRight: w,
659
+ marginBottom: w,
660
+ marginLeft: w,
661
661
  // Misc
662
- backgroundPositionX: T,
663
- backgroundPositionY: T
662
+ backgroundPositionX: w,
663
+ backgroundPositionY: w
664
664
  }, co = {
665
665
  rotate: Q,
666
666
  rotateX: Q,
@@ -673,27 +673,27 @@ const bt = [
673
673
  skew: Q,
674
674
  skewX: Q,
675
675
  skewY: Q,
676
- distance: T,
677
- translateX: T,
678
- translateY: T,
679
- translateZ: T,
680
- x: T,
681
- y: T,
682
- z: T,
683
- perspective: T,
684
- transformPerspective: T,
676
+ distance: w,
677
+ translateX: w,
678
+ translateY: w,
679
+ translateZ: w,
680
+ x: w,
681
+ y: w,
682
+ z: w,
683
+ perspective: w,
684
+ transformPerspective: w,
685
685
  opacity: Rt,
686
686
  originX: Rn,
687
687
  originY: Rn,
688
- originZ: T
688
+ originZ: w
689
689
  }, Ln = {
690
- ...Tt,
690
+ ...wt,
691
691
  transform: Math.round
692
692
  }, en = {
693
693
  ...lo,
694
694
  ...co,
695
695
  zIndex: Ln,
696
- size: T,
696
+ size: w,
697
697
  // SVG
698
698
  fillOpacity: Rt,
699
699
  strokeOpacity: Rt,
@@ -754,12 +754,12 @@ const po = {
754
754
  function go(t, e, n = 1, i = 0, s = !0) {
755
755
  t.pathLength = 1;
756
756
  const o = s ? po : mo;
757
- t[o.offset] = T.transform(-i);
758
- const r = T.transform(e), a = T.transform(n);
757
+ t[o.offset] = w.transform(-i);
758
+ const r = w.transform(e), a = w.transform(n);
759
759
  t[o.array] = `${r} ${a}`;
760
760
  }
761
761
  function Fn(t, e, n) {
762
- return typeof t == "string" ? t : T.transform(e + n * t);
762
+ return typeof t == "string" ? t : w.transform(e + n * t);
763
763
  }
764
764
  function yo(t, e, n) {
765
765
  const i = Fn(e, t.x, t.width), s = Fn(n, t.y, t.height);
@@ -782,8 +782,8 @@ function sn(t, {
782
782
  return;
783
783
  }
784
784
  t.attrs = t.style, t.style = {};
785
- const { attrs: d, style: f, dimensions: m } = t;
786
- d.transform && (m && (f.transform = d.transform), delete d.transform), m && (s !== void 0 || o !== void 0 || f.transform) && (f.transformOrigin = yo(m, s !== void 0 ? s : 0.5, o !== void 0 ? o : 0.5)), e !== void 0 && (d.x = e), n !== void 0 && (d.y = n), i !== void 0 && (d.scale = i), r !== void 0 && go(d, r, a, l, !1);
785
+ const { attrs: d, style: p, dimensions: m } = t;
786
+ d.transform && (m && (p.transform = d.transform), delete d.transform), m && (s !== void 0 || o !== void 0 || p.transform) && (p.transformOrigin = yo(m, s !== void 0 ? s : 0.5, o !== void 0 ? o : 0.5)), e !== void 0 && (d.x = e), n !== void 0 && (d.y = n), i !== void 0 && (d.scale = i), r !== void 0 && go(d, r, a, l, !1);
787
787
  }
788
788
  const rn = () => ({
789
789
  style: {},
@@ -904,18 +904,18 @@ function ds(t, e, n) {
904
904
  for (const i in e)
905
905
  !O(e[i]) && !us(i, n) && (t[i] = e[i]);
906
906
  }
907
- function To({ transformTemplate: t }, e) {
907
+ function wo({ transformTemplate: t }, e) {
908
908
  return lt(() => {
909
909
  const n = rn();
910
910
  return nn(n, e, t), Object.assign({}, n.vars, n.style);
911
911
  }, [e]);
912
912
  }
913
- function wo(t, e) {
913
+ function To(t, e) {
914
914
  const n = t.style || {}, i = {};
915
- return ds(i, n, t), Object.assign(i, To(t, e)), i;
915
+ return ds(i, n, t), Object.assign(i, wo(t, e)), i;
916
916
  }
917
917
  function Po(t, e) {
918
- const n = {}, i = wo(t, e);
918
+ const n = {}, i = To(t, e);
919
919
  return t.drag && t.dragListener !== !1 && (n.draggable = !1, i.userSelect = i.WebkitUserSelect = i.WebkitTouchCallout = "none", i.touchAction = t.drag === !0 ? "none" : `pan-${t.drag === "x" ? "y" : "x"}`), t.tabIndex === void 0 && (t.onTap || t.onTapStart || t.whileTap) && (n.tabIndex = 0), n.style = i, n;
920
920
  }
921
921
  function Ao(t, e, n, i) {
@@ -1192,12 +1192,12 @@ function jo(t, e, n = {}) {
1192
1192
  if (!Nn(a) || At.has(l))
1193
1193
  return;
1194
1194
  At.add(l);
1195
- const c = e(a), u = (f, m) => {
1196
- window.removeEventListener("pointerup", h), window.removeEventListener("pointercancel", d), !(!Nn(f) || !At.has(l)) && (At.delete(l), typeof c == "function" && c(f, { success: m }));
1197
- }, h = (f) => {
1198
- u(f, n.useGlobalTarget || Ss(l, f.target));
1199
- }, d = (f) => {
1200
- u(f, !1);
1195
+ const c = e(a), u = (p, m) => {
1196
+ window.removeEventListener("pointerup", h), window.removeEventListener("pointercancel", d), !(!Nn(p) || !At.has(l)) && (At.delete(l), typeof c == "function" && c(p, { success: m }));
1197
+ }, h = (p) => {
1198
+ u(p, n.useGlobalTarget || Ss(l, p.target));
1199
+ }, d = (p) => {
1200
+ u(p, !1);
1201
1201
  };
1202
1202
  window.addEventListener("pointerup", h, s), window.addEventListener("pointercancel", d, s);
1203
1203
  };
@@ -1263,7 +1263,7 @@ class pn {
1263
1263
  this.subscriptions.length = 0;
1264
1264
  }
1265
1265
  }
1266
- function Ts(t, e) {
1266
+ function ws(t, e) {
1267
1267
  return e ? t * (1e3 / e) : 0;
1268
1268
  }
1269
1269
  const Wn = 30, Uo = (t) => !isNaN(parseFloat(t));
@@ -1408,7 +1408,7 @@ class $o {
1408
1408
  if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > Wn)
1409
1409
  return 0;
1410
1410
  const n = Math.min(this.updatedAt - this.prevUpdatedAt, Wn);
1411
- return Ts(parseFloat(this.current) - parseFloat(this.prevFrameValue), n);
1411
+ return ws(parseFloat(this.current) - parseFloat(this.prevFrameValue), n);
1412
1412
  }
1413
1413
  /**
1414
1414
  * Registers a new animation to control this `MotionValue`. Only one
@@ -1484,7 +1484,7 @@ function Ce(t, e) {
1484
1484
  if (zo(n))
1485
1485
  return n.add(e);
1486
1486
  }
1487
- function ws(t) {
1487
+ function Ts(t) {
1488
1488
  return t.props[Ji];
1489
1489
  }
1490
1490
  const Ps = (t, e, n) => (((1 - 3 * n + 3 * e) * t + (3 * n - 6 * e)) * t + 3 * e) * t, Go = 1e-7, Ho = 12;
@@ -1520,7 +1520,7 @@ const Qo = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s
1520
1520
  alpha: a !== void 0 ? parseFloat(a) : 1
1521
1521
  };
1522
1522
  }, Zo = (t) => X(0, 255, t), de = {
1523
- ...Tt,
1523
+ ...wt,
1524
1524
  transform: (t) => Math.round(Zo(t))
1525
1525
  }, ot = {
1526
1526
  test: /* @__PURE__ */ vn("rgb", "red"),
@@ -1639,7 +1639,7 @@ function da(t, e, n) {
1639
1639
  for (const o of e)
1640
1640
  t[o] = js(n, s);
1641
1641
  }
1642
- const $n = (t) => t === Tt || t === T, _n = (t, e) => parseFloat(t.split(", ")[e]), Kn = (t, e) => (n, { transform: i }) => {
1642
+ const $n = (t) => t === wt || t === w, _n = (t, e) => parseFloat(t.split(", ")[e]), Kn = (t, e) => (n, { transform: i }) => {
1643
1643
  if (i === "none" || !i)
1644
1644
  return 0;
1645
1645
  const s = i.match(/^matrix3d\((.+)\)$/u);
@@ -1768,7 +1768,7 @@ function $s(t, e, n = 1) {
1768
1768
  const _s = (t) => (e) => e.test(t), Sa = {
1769
1769
  test: (t) => t === "auto",
1770
1770
  parse: (t) => t
1771
- }, Ks = [Tt, T, G, Q, ao, oo, Sa], zn = (t) => Ks.find(_s(t));
1771
+ }, Ks = [wt, w, G, Q, ao, oo, Sa], zn = (t) => Ks.find(_s(t));
1772
1772
  class zs extends Sn {
1773
1773
  constructor(e, n, i, s, o) {
1774
1774
  super(e, n, i, s, o, !0);
@@ -1835,7 +1835,7 @@ function ba(t) {
1835
1835
  if (t[n] !== e)
1836
1836
  return !0;
1837
1837
  }
1838
- function Ta(t, e, n, i) {
1838
+ function wa(t, e, n, i) {
1839
1839
  const s = t[0];
1840
1840
  if (s === null)
1841
1841
  return !1;
@@ -1844,9 +1844,9 @@ function Ta(t, e, n, i) {
1844
1844
  const o = t[t.length - 1], r = Gn(s, e), a = Gn(o, e);
1845
1845
  return St(r === a, `You are trying to animate ${e} from "${s}" to "${o}". ${s} is not an animatable value - to enable this animation set ${s} to a value animatable to ${o} via the \`style\` property.`), !r || !a ? !1 : ba(t) || (n === "spring" || cn(n)) && i;
1846
1846
  }
1847
- const wa = (t) => t !== null;
1847
+ const Ta = (t) => t !== null;
1848
1848
  function ae(t, { repeat: e, repeatType: n = "loop" }, i) {
1849
- const s = t.filter(wa), o = e && n !== "loop" && e % 2 === 1 ? 0 : s.length - 1;
1849
+ const s = t.filter(Ta), o = e && n !== "loop" && e % 2 === 1 ? 0 : s.length - 1;
1850
1850
  return !o || i === void 0 ? s[o] : i;
1851
1851
  }
1852
1852
  const Pa = 40;
@@ -1891,7 +1891,7 @@ class Gs {
1891
1891
  onKeyframesResolved(e, n) {
1892
1892
  this.resolvedAt = H.now(), this.hasAttemptedResolve = !0;
1893
1893
  const { name: i, type: s, velocity: o, delay: r, onComplete: a, onUpdate: l, isGenerator: c } = this.options;
1894
- if (!c && !Ta(e, i, s, o))
1894
+ if (!c && !wa(e, i, s, o))
1895
1895
  if (r)
1896
1896
  this.options.duration = 0;
1897
1897
  else {
@@ -2011,7 +2011,7 @@ function qs(t, e, n) {
2011
2011
  const Fa = 5;
2012
2012
  function Ys(t, e, n) {
2013
2013
  const i = Math.max(e - Fa, 0);
2014
- return Ts(n - t(i), e - i);
2014
+ return ws(n - t(i), e - i);
2015
2015
  }
2016
2016
  const D = {
2017
2017
  // Default spring physics
@@ -2047,11 +2047,11 @@ function Ba({ duration: t = D.duration, bounce: e = D.bounce, velocity: n = D.ve
2047
2047
  St(t <= /* @__PURE__ */ z(D.maxDuration), "Spring duration must be 10 seconds or less");
2048
2048
  let r = 1 - e;
2049
2049
  r = X(D.minDamping, D.maxDamping, r), t = X(D.minDuration, D.maxDuration, /* @__PURE__ */ Y(t)), r < 1 ? (s = (c) => {
2050
- const u = c * r, h = u * t, d = u - n, f = Re(c, r), m = Math.exp(-h);
2051
- return me - d / f * m;
2050
+ const u = c * r, h = u * t, d = u - n, p = Re(c, r), m = Math.exp(-h);
2051
+ return me - d / p * m;
2052
2052
  }, o = (c) => {
2053
- const h = c * r * t, d = h * n + n, f = Math.pow(r, 2) * Math.pow(c, 2) * t, m = Math.exp(-h), g = Re(Math.pow(c, 2), r);
2054
- return (-s(c) + me > 0 ? -1 : 1) * ((d - f) * m) / g;
2053
+ const h = c * r * t, d = h * n + n, p = Math.pow(r, 2) * Math.pow(c, 2) * t, m = Math.exp(-h), g = Re(Math.pow(c, 2), r);
2054
+ return (-s(c) + me > 0 ? -1 : 1) * ((d - p) * m) / g;
2055
2055
  }) : (s = (c) => {
2056
2056
  const u = Math.exp(-c * t), h = (c - n) * t + 1;
2057
2057
  return -me + u * h;
@@ -2124,7 +2124,7 @@ function Xs(t = D.visualDuration, e = D.bounce) {
2124
2124
  bounce: e
2125
2125
  } : t;
2126
2126
  let { restSpeed: i, restDelta: s } = n;
2127
- const o = n.keyframes[0], r = n.keyframes[n.keyframes.length - 1], a = { done: !1, value: o }, { stiffness: l, damping: c, mass: u, duration: h, velocity: d, isResolvedFromDuration: f } = Wa({
2127
+ const o = n.keyframes[0], r = n.keyframes[n.keyframes.length - 1], a = { done: !1, value: o }, { stiffness: l, damping: c, mass: u, duration: h, velocity: d, isResolvedFromDuration: p } = Wa({
2128
2128
  ...n,
2129
2129
  velocity: -/* @__PURE__ */ Y(n.velocity || 0)
2130
2130
  }), m = d || 0, g = c / (2 * Math.sqrt(l * u)), v = r - o, y = /* @__PURE__ */ Y(Math.sqrt(l / u)), S = Math.abs(v) < 5;
@@ -2141,21 +2141,21 @@ function Xs(t = D.visualDuration, e = D.bounce) {
2141
2141
  else {
2142
2142
  const x = y * Math.sqrt(g * g - 1);
2143
2143
  b = (A) => {
2144
- const k = Math.exp(-g * y * A), w = Math.min(x * A, 300);
2145
- return r - k * ((m + g * y * v) * Math.sinh(w) + x * v * Math.cosh(w)) / x;
2144
+ const k = Math.exp(-g * y * A), T = Math.min(x * A, 300);
2145
+ return r - k * ((m + g * y * v) * Math.sinh(T) + x * v * Math.cosh(T)) / x;
2146
2146
  };
2147
2147
  }
2148
2148
  const P = {
2149
- calculatedDuration: f && h || null,
2149
+ calculatedDuration: p && h || null,
2150
2150
  next: (x) => {
2151
2151
  const A = b(x);
2152
- if (f)
2152
+ if (p)
2153
2153
  a.done = x >= h;
2154
2154
  else {
2155
2155
  let k = 0;
2156
2156
  g < 1 && (k = x === 0 ? /* @__PURE__ */ z(m) : Ys(b, x, A));
2157
- const w = Math.abs(k) <= i, L = Math.abs(r - A) <= s;
2158
- a.done = w && L;
2157
+ const T = Math.abs(k) <= i, L = Math.abs(r - A) <= s;
2158
+ a.done = T && L;
2159
2159
  }
2160
2160
  return a.value = a.done ? r : A, a;
2161
2161
  },
@@ -2170,19 +2170,19 @@ function Xn({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: i = 3
2170
2170
  const h = t[0], d = {
2171
2171
  done: !1,
2172
2172
  value: h
2173
- }, f = (w) => a !== void 0 && w < a || l !== void 0 && w > l, m = (w) => a === void 0 ? l : l === void 0 || Math.abs(a - w) < Math.abs(l - w) ? a : l;
2173
+ }, p = (T) => a !== void 0 && T < a || l !== void 0 && T > l, m = (T) => a === void 0 ? l : l === void 0 || Math.abs(a - T) < Math.abs(l - T) ? a : l;
2174
2174
  let g = n * e;
2175
2175
  const v = h + g, y = r === void 0 ? v : r(v);
2176
2176
  y !== v && (g = y - h);
2177
- const S = (w) => -g * Math.exp(-w / i), b = (w) => y + S(w), P = (w) => {
2178
- const L = S(w), U = b(w);
2177
+ const S = (T) => -g * Math.exp(-T / i), b = (T) => y + S(T), P = (T) => {
2178
+ const L = S(T), U = b(T);
2179
2179
  d.done = Math.abs(L) <= c, d.value = d.done ? y : U;
2180
2180
  };
2181
2181
  let x, A;
2182
- const k = (w) => {
2183
- f(d.value) && (x = w, A = Xs({
2182
+ const k = (T) => {
2183
+ p(d.value) && (x = T, A = Xs({
2184
2184
  keyframes: [d.value, m(d.value)],
2185
- velocity: Ys(b, w, d.value),
2185
+ velocity: Ys(b, T, d.value),
2186
2186
  // TODO: This should be passing * 1000
2187
2187
  damping: s,
2188
2188
  stiffness: o,
@@ -2192,9 +2192,9 @@ function Xn({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: i = 3
2192
2192
  };
2193
2193
  return k(0), {
2194
2194
  calculatedDuration: null,
2195
- next: (w) => {
2195
+ next: (T) => {
2196
2196
  let L = !1;
2197
- return !A && x === void 0 && (L = !0, P(w), k(w)), x !== void 0 && w >= x ? A.next(w - x) : (!L && P(w), d);
2197
+ return !A && x === void 0 && (L = !0, P(T), k(T)), x !== void 0 && T >= x ? A.next(T - x) : (!L && P(T), d);
2198
2198
  }
2199
2199
  };
2200
2200
  }
@@ -2303,7 +2303,7 @@ const Xa = (t) => {
2303
2303
  keyframes: Qt,
2304
2304
  spring: Xs
2305
2305
  }, Za = (t) => t / 100;
2306
- class Tn extends Gs {
2306
+ class wn extends Gs {
2307
2307
  constructor(e) {
2308
2308
  super(e), this.holdTime = null, this.cancelTime = null, this.currentTime = 0, this.playbackSpeed = 1, this.pendingPlayState = "running", this.startTime = null, this.state = "idle", this.stop = () => {
2309
2309
  if (this.resolver.cancel(), this.isStopped = !0, this.state === "idle")
@@ -2328,14 +2328,14 @@ class Tn extends Gs {
2328
2328
  keyframes: [...e].reverse(),
2329
2329
  velocity: -r
2330
2330
  })), u.calculatedDuration === null && (u.calculatedDuration = ps(u));
2331
- const { calculatedDuration: h } = u, d = h + s, f = d * (i + 1) - s;
2331
+ const { calculatedDuration: h } = u, d = h + s, p = d * (i + 1) - s;
2332
2332
  return {
2333
2333
  generator: u,
2334
2334
  mirroredGenerator: c,
2335
2335
  mapPercentToKeyframes: l,
2336
2336
  calculatedDuration: h,
2337
2337
  resolvedDuration: d,
2338
- totalDuration: f
2338
+ totalDuration: p
2339
2339
  };
2340
2340
  }
2341
2341
  onPostResolved() {
@@ -2345,21 +2345,21 @@ class Tn extends Gs {
2345
2345
  tick(e, n = !1) {
2346
2346
  const { resolved: i } = this;
2347
2347
  if (!i) {
2348
- const { keyframes: w } = this.options;
2349
- return { done: !0, value: w[w.length - 1] };
2348
+ const { keyframes: T } = this.options;
2349
+ return { done: !0, value: T[T.length - 1] };
2350
2350
  }
2351
2351
  const { finalKeyframe: s, generator: o, mirroredGenerator: r, mapPercentToKeyframes: a, keyframes: l, calculatedDuration: c, totalDuration: u, resolvedDuration: h } = i;
2352
2352
  if (this.startTime === null)
2353
2353
  return o.next(0);
2354
- const { delay: d, repeat: f, repeatType: m, repeatDelay: g, onUpdate: v } = this.options;
2354
+ const { delay: d, repeat: p, repeatType: m, repeatDelay: g, onUpdate: v } = this.options;
2355
2355
  this.speed > 0 ? this.startTime = Math.min(this.startTime, e) : this.speed < 0 && (this.startTime = Math.min(e - u / this.speed, this.startTime)), n ? this.currentTime = e : this.holdTime !== null ? this.currentTime = this.holdTime : this.currentTime = Math.round(e - this.startTime) * this.speed;
2356
2356
  const y = this.currentTime - d * (this.speed >= 0 ? 1 : -1), S = this.speed >= 0 ? y < 0 : y > u;
2357
2357
  this.currentTime = Math.max(y, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = u);
2358
2358
  let b = this.currentTime, P = o;
2359
- if (f) {
2360
- const w = Math.min(this.currentTime, u) / h;
2361
- let L = Math.floor(w), U = w % 1;
2362
- !U && w >= 1 && (U = 1), U === 1 && L--, L = Math.min(L, f + 1), !!(L % 2) && (m === "reverse" ? (U = 1 - U, g && (U -= g / h)) : m === "mirror" && (P = r)), b = X(0, 1, U) * h;
2359
+ if (p) {
2360
+ const T = Math.min(this.currentTime, u) / h;
2361
+ let L = Math.floor(T), U = T % 1;
2362
+ !U && T >= 1 && (U = 1), U === 1 && L--, L = Math.min(L, p + 1), !!(L % 2) && (m === "reverse" ? (U = 1 - U, g && (U -= g / h)) : m === "mirror" && (P = r)), b = X(0, 1, U) * h;
2363
2363
  }
2364
2364
  const x = S ? { done: !1, value: l[0] } : P.next(b);
2365
2365
  a && (x.value = a(x.value));
@@ -2453,7 +2453,7 @@ function il(t) {
2453
2453
  return cn(t.type) || t.type === "spring" || !gs(t.ease);
2454
2454
  }
2455
2455
  function sl(t, e) {
2456
- const n = new Tn({
2456
+ const n = new wn({
2457
2457
  ...e,
2458
2458
  keyframes: t,
2459
2459
  repeat: 0,
@@ -2491,7 +2491,7 @@ class Jn extends Gs {
2491
2491
  if (!a.owner || !a.owner.current)
2492
2492
  return !1;
2493
2493
  if (typeof o == "string" && Yt() && rl(o) && (o = Zs[o]), il(this.options)) {
2494
- const { onComplete: h, onUpdate: d, motionValue: f, element: m, ...g } = this.options, v = sl(e, g);
2494
+ const { onComplete: h, onUpdate: d, motionValue: p, element: m, ...g } = this.options, v = sl(e, g);
2495
2495
  e = v.keyframes, e.length === 1 && (e[1] = e[0]), i = v.duration, s = v.times, o = v.ease, r = "keyframes";
2496
2496
  }
2497
2497
  const u = tl(a.owner.current, l, e, { ...this.options, duration: i, times: s, ease: o });
@@ -2599,8 +2599,8 @@ class Jn extends Gs {
2599
2599
  if (n.playState === "idle" || n.playState === "finished")
2600
2600
  return;
2601
2601
  if (this.time) {
2602
- const { motionValue: c, onUpdate: u, onComplete: h, element: d, ...f } = this.options, m = new Tn({
2603
- ...f,
2602
+ const { motionValue: c, onUpdate: u, onComplete: h, element: d, ...p } = this.options, m = new wn({
2603
+ ...p,
2604
2604
  keyframes: i,
2605
2605
  duration: s,
2606
2606
  type: o,
@@ -2654,7 +2654,7 @@ const ol = {
2654
2654
  function hl({ when: t, delay: e, delayChildren: n, staggerChildren: i, staggerDirection: s, repeat: o, repeatType: r, repeatDelay: a, from: l, elapsed: c, ...u }) {
2655
2655
  return !!Object.keys(u).length;
2656
2656
  }
2657
- const wn = (t, e, n, i = {}, s, o) => (r) => {
2657
+ const Tn = (t, e, n, i = {}, s, o) => (r) => {
2658
2658
  const a = ln(i, t) || {}, l = a.delay || i.delay || 0;
2659
2659
  let { elapsed: c = 0 } = i;
2660
2660
  c = c - /* @__PURE__ */ z(l);
@@ -2686,7 +2686,7 @@ const wn = (t, e, n, i = {}, s, o) => (r) => {
2686
2686
  u.onUpdate(d), u.onComplete();
2687
2687
  }), new ko([]);
2688
2688
  }
2689
- return !o && Jn.supports(u) ? new Jn(u) : new Tn(u);
2689
+ return !o && Jn.supports(u) ? new Jn(u) : new wn(u);
2690
2690
  };
2691
2691
  function dl({ protectedKeys: t, needsAnimating: e }, n) {
2692
2692
  const i = t.hasOwnProperty(n) && e[n] !== !0;
@@ -2698,8 +2698,8 @@ function Js(t, e, { delay: n = 0, transitionOverride: i, type: s } = {}) {
2698
2698
  i && (r = i);
2699
2699
  const c = [], u = s && t.animationState && t.animationState.getState()[s];
2700
2700
  for (const h in l) {
2701
- const d = t.getValue(h, (o = t.latestValues[h]) !== null && o !== void 0 ? o : null), f = l[h];
2702
- if (f === void 0 || u && dl(u, h))
2701
+ const d = t.getValue(h, (o = t.latestValues[h]) !== null && o !== void 0 ? o : null), p = l[h];
2702
+ if (p === void 0 || u && dl(u, h))
2703
2703
  continue;
2704
2704
  const m = {
2705
2705
  delay: n,
@@ -2707,13 +2707,13 @@ function Js(t, e, { delay: n = 0, transitionOverride: i, type: s } = {}) {
2707
2707
  };
2708
2708
  let g = !1;
2709
2709
  if (window.MotionHandoffAnimation) {
2710
- const y = ws(t);
2710
+ const y = Ts(t);
2711
2711
  if (y) {
2712
2712
  const S = window.MotionHandoffAnimation(y, h, V);
2713
2713
  S !== null && (m.startTime = S, g = !0);
2714
2714
  }
2715
2715
  }
2716
- Ce(t, h), d.start(wn(h, d, f, t.shouldReduceMotion && bs.has(h) ? { type: !1 } : m, t, g));
2716
+ Ce(t, h), d.start(Tn(h, d, p, t.shouldReduceMotion && bs.has(h) ? { type: !1 } : m, t, g));
2717
2717
  const v = d.animation;
2718
2718
  v && c.push(v);
2719
2719
  }
@@ -2791,7 +2791,7 @@ function Sl(t) {
2791
2791
  var h;
2792
2792
  const d = oe(t, u, l === "exit" ? (h = t.presenceContext) === null || h === void 0 ? void 0 : h.custom : void 0);
2793
2793
  if (d) {
2794
- const { transition: f, transitionEnd: m, ...g } = d;
2794
+ const { transition: p, transitionEnd: m, ...g } = d;
2795
2795
  c = { ...c, ...g, ...m };
2796
2796
  }
2797
2797
  return c;
@@ -2801,18 +2801,18 @@ function Sl(t) {
2801
2801
  }
2802
2802
  function r(l) {
2803
2803
  const { props: c } = t, u = tr(t.parent) || {}, h = [], d = /* @__PURE__ */ new Set();
2804
- let f = {}, m = 1 / 0;
2804
+ let p = {}, m = 1 / 0;
2805
2805
  for (let v = 0; v < vl; v++) {
2806
2806
  const y = yl[v], S = n[y], b = c[y] !== void 0 ? c[y] : u[y], P = Et(b), x = y === l ? S.isActive : null;
2807
2807
  x === !1 && (m = v);
2808
2808
  let A = b === u[y] && b !== c[y] && P;
2809
- if (A && i && t.manuallyAnimateOnMount && (A = !1), S.protectedKeys = { ...f }, // If it isn't active and hasn't *just* been set as inactive
2809
+ if (A && i && t.manuallyAnimateOnMount && (A = !1), S.protectedKeys = { ...p }, // If it isn't active and hasn't *just* been set as inactive
2810
2810
  !S.isActive && x === null || // If we didn't and don't have any defined prop for this animation type
2811
2811
  !b && !S.prevProp || // Or if the prop doesn't define an animation
2812
2812
  se(b) || typeof b == "boolean")
2813
2813
  continue;
2814
2814
  const k = bl(S.prevProp, b);
2815
- let w = k || // If we're making this variant active, we want to always make it active
2815
+ let T = k || // If we're making this variant active, we want to always make it active
2816
2816
  y === l && S.isActive && !A && P || // If we removed a higher-priority variant (i is in reverse order)
2817
2817
  v > m && P, L = !1;
2818
2818
  const U = Array.isArray(b) ? b : [b];
@@ -2822,18 +2822,18 @@ function Sl(t) {
2822
2822
  ...Pn,
2823
2823
  ...ut
2824
2824
  }, An = (I) => {
2825
- w = !0, d.has(I) && (L = !0, d.delete(I)), S.needsAnimating[I] = !0;
2825
+ T = !0, d.has(I) && (L = !0, d.delete(I)), S.needsAnimating[I] = !0;
2826
2826
  const q = t.getValue(I);
2827
2827
  q && (q.liveStyle = !1);
2828
2828
  };
2829
2829
  for (const I in br) {
2830
2830
  const q = ut[I], le = Pn[I];
2831
- if (f.hasOwnProperty(I))
2831
+ if (p.hasOwnProperty(I))
2832
2832
  continue;
2833
2833
  let ce = !1;
2834
- we(q) && we(le) ? ce = !fs(q, le) : ce = q !== le, ce ? q != null ? An(I) : d.add(I) : q !== void 0 && d.has(I) ? An(I) : S.protectedKeys[I] = !0;
2834
+ Te(q) && Te(le) ? ce = !fs(q, le) : ce = q !== le, ce ? q != null ? An(I) : d.add(I) : q !== void 0 && d.has(I) ? An(I) : S.protectedKeys[I] = !0;
2835
2835
  }
2836
- S.prevProp = b, S.prevResolvedValues = ut, S.isActive && (f = { ...f, ...ut }), i && t.blockInitialAnimation && (w = !1), w && (!(A && k) || L) && h.push(...U.map((I) => ({
2836
+ S.prevProp = b, S.prevResolvedValues = ut, S.isActive && (p = { ...p, ...ut }), i && t.blockInitialAnimation && (T = !1), T && (!(A && k) || L) && h.push(...U.map((I) => ({
2837
2837
  animation: I,
2838
2838
  options: { type: y }
2839
2839
  })));
@@ -2853,8 +2853,8 @@ function Sl(t) {
2853
2853
  if (n[l].isActive === c)
2854
2854
  return Promise.resolve();
2855
2855
  (u = t.variantChildren) === null || u === void 0 || u.forEach((d) => {
2856
- var f;
2857
- return (f = d.animationState) === null || f === void 0 ? void 0 : f.setActive(l, c);
2856
+ var p;
2857
+ return (p = d.animationState) === null || p === void 0 ? void 0 : p.setActive(l, c);
2858
2858
  }), n[l].isActive = c;
2859
2859
  const h = r(l);
2860
2860
  for (const d in n)
@@ -2900,7 +2900,7 @@ class nt {
2900
2900
  update() {
2901
2901
  }
2902
2902
  }
2903
- class Tl extends nt {
2903
+ class wl extends nt {
2904
2904
  /**
2905
2905
  * We dynamically generate the AnimationState manager as it contains a reference
2906
2906
  * to the underlying animation library. We only want to load that if we load this,
@@ -2928,10 +2928,10 @@ class Tl extends nt {
2928
2928
  this.node.animationState.reset(), (e = this.unmountControls) === null || e === void 0 || e.call(this);
2929
2929
  }
2930
2930
  }
2931
- let wl = 0;
2931
+ let Tl = 0;
2932
2932
  class Pl extends nt {
2933
2933
  constructor() {
2934
- super(...arguments), this.id = wl++;
2934
+ super(...arguments), this.id = Tl++;
2935
2935
  }
2936
2936
  update() {
2937
2937
  if (!this.node.presenceContext)
@@ -2951,7 +2951,7 @@ class Pl extends nt {
2951
2951
  }
2952
2952
  const Al = {
2953
2953
  animation: {
2954
- Feature: Tl
2954
+ Feature: wl
2955
2955
  },
2956
2956
  exit: {
2957
2957
  Feature: Pl
@@ -2982,8 +2982,8 @@ class er {
2982
2982
  if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.handlers = {}, this.contextWindow = window, this.updatePoint = () => {
2983
2983
  if (!(this.lastMoveEvent && this.lastMoveEventInfo))
2984
2984
  return;
2985
- const h = ye(this.lastMoveEventInfo, this.history), d = this.startEvent !== null, f = Vl(h.offset, { x: 0, y: 0 }) >= 3;
2986
- if (!d && !f)
2985
+ const h = ye(this.lastMoveEventInfo, this.history), d = this.startEvent !== null, p = Vl(h.offset, { x: 0, y: 0 }) >= 3;
2986
+ if (!d && !p)
2987
2987
  return;
2988
2988
  const { point: m } = h, { timestamp: g } = R;
2989
2989
  this.history.push({ ...m, timestamp: g });
@@ -2993,11 +2993,11 @@ class er {
2993
2993
  this.lastMoveEvent = h, this.lastMoveEventInfo = ge(d, this.transformPagePoint), V.update(this.updatePoint, !0);
2994
2994
  }, this.handlePointerUp = (h, d) => {
2995
2995
  this.end();
2996
- const { onEnd: f, onSessionEnd: m, resumeAnimation: g } = this.handlers;
2996
+ const { onEnd: p, onSessionEnd: m, resumeAnimation: g } = this.handlers;
2997
2997
  if (this.dragSnapToOrigin && g && g(), !(this.lastMoveEvent && this.lastMoveEventInfo))
2998
2998
  return;
2999
2999
  const v = ye(h.type === "pointercancel" ? this.lastMoveEventInfo : ge(d, this.transformPagePoint), this.history);
3000
- this.startEvent && f && f(h, v), m && m(h, v);
3000
+ this.startEvent && p && p(h, v), m && m(h, v);
3001
3001
  }, !hn(e))
3002
3002
  return;
3003
3003
  this.dragSnapToOrigin = o, this.handlers = n, this.transformPagePoint = i, this.contextWindow = s || window;
@@ -3236,8 +3236,8 @@ class Hl {
3236
3236
  const { dragSnapToOrigin: h } = this.getProps();
3237
3237
  h ? this.pauseAnimation() : this.stopAnimation(), n && this.snapToCursor(Nt(u).point);
3238
3238
  }, o = (u, h) => {
3239
- const { drag: d, dragPropagation: f, onDragStart: m } = this.getProps();
3240
- if (d && !f && (this.openDragLock && this.openDragLock(), this.openDragLock = No(d), !this.openDragLock))
3239
+ const { drag: d, dragPropagation: p, onDragStart: m } = this.getProps();
3240
+ if (d && !p && (this.openDragLock && this.openDragLock(), this.openDragLock = No(d), !this.openDragLock))
3241
3241
  return;
3242
3242
  this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), _((v) => {
3243
3243
  let y = this.getAxisMotionValue(v).get() || 0;
@@ -3253,11 +3253,11 @@ class Hl {
3253
3253
  const { animationState: g } = this.visualElement;
3254
3254
  g && g.setActive("whileDrag", !0);
3255
3255
  }, r = (u, h) => {
3256
- const { dragPropagation: d, dragDirectionLock: f, onDirectionLock: m, onDrag: g } = this.getProps();
3256
+ const { dragPropagation: d, dragDirectionLock: p, onDirectionLock: m, onDrag: g } = this.getProps();
3257
3257
  if (!d && !this.openDragLock)
3258
3258
  return;
3259
3259
  const { offset: v } = h;
3260
- if (f && this.currentDirection === null) {
3260
+ if (p && this.currentDirection === null) {
3261
3261
  this.currentDirection = ql(v), this.currentDirection !== null && m && m(this.currentDirection);
3262
3262
  return;
3263
3263
  }
@@ -3332,11 +3332,11 @@ class Hl {
3332
3332
  return;
3333
3333
  let h = l && l[u] || {};
3334
3334
  r && (h = { min: 0, max: 0 });
3335
- const d = s ? 200 : 1e6, f = s ? 40 : 1e7, m = {
3335
+ const d = s ? 200 : 1e6, p = s ? 40 : 1e7, m = {
3336
3336
  type: "inertia",
3337
3337
  velocity: i ? e[u] : 0,
3338
3338
  bounceStiffness: d,
3339
- bounceDamping: f,
3339
+ bounceDamping: p,
3340
3340
  timeConstant: 750,
3341
3341
  restDelta: 1,
3342
3342
  restSpeed: 10,
@@ -3349,7 +3349,7 @@ class Hl {
3349
3349
  }
3350
3350
  startAxisValueAnimation(e, n) {
3351
3351
  const i = this.getAxisMotionValue(e);
3352
- return Ce(this.visualElement, e), i.start(wn(e, i, 0, n, this.visualElement, !1));
3352
+ return Ce(this.visualElement, e), i.start(Tn(e, i, 0, n, this.visualElement, !1));
3353
3353
  }
3354
3354
  stopAnimation() {
3355
3355
  _((e) => this.getAxisMotionValue(e).stop());
@@ -3517,12 +3517,12 @@ const Gt = {
3517
3517
  function vi(t, e) {
3518
3518
  return e.max === e.min ? 0 : t / (e.max - e.min) * 100;
3519
3519
  }
3520
- const wt = {
3520
+ const Tt = {
3521
3521
  correct: (t, e) => {
3522
3522
  if (!e.target)
3523
3523
  return t;
3524
3524
  if (typeof t == "string")
3525
- if (T.test(t))
3525
+ if (w.test(t))
3526
3526
  t = parseFloat(t);
3527
3527
  else
3528
3528
  return t;
@@ -3582,11 +3582,11 @@ class Zl extends Mr {
3582
3582
  }
3583
3583
  function ur(t) {
3584
3584
  const [e, n] = Hi(), i = B(_e);
3585
- return p(Zl, { ...t, layoutGroup: i, switchLayoutGroup: B(ts), isPresent: e, safeToRemove: n });
3585
+ return f(Zl, { ...t, layoutGroup: i, switchLayoutGroup: B(ts), isPresent: e, safeToRemove: n });
3586
3586
  }
3587
3587
  const Jl = {
3588
3588
  borderRadius: {
3589
- ...wt,
3589
+ ...Tt,
3590
3590
  applyTo: [
3591
3591
  "borderTopLeftRadius",
3592
3592
  "borderTopRightRadius",
@@ -3594,15 +3594,15 @@ const Jl = {
3594
3594
  "borderBottomRightRadius"
3595
3595
  ]
3596
3596
  },
3597
- borderTopLeftRadius: wt,
3598
- borderTopRightRadius: wt,
3599
- borderBottomLeftRadius: wt,
3600
- borderBottomRightRadius: wt,
3597
+ borderTopLeftRadius: Tt,
3598
+ borderTopRightRadius: Tt,
3599
+ borderBottomLeftRadius: Tt,
3600
+ borderBottomRightRadius: Tt,
3601
3601
  boxShadow: Ql
3602
3602
  };
3603
3603
  function tc(t, e, n) {
3604
3604
  const i = O(t) ? t : Lt(t);
3605
- return i.start(wn("", i, e, n)), i.animation;
3605
+ return i.start(Tn("", i, e, n)), i.animation;
3606
3606
  }
3607
3607
  function ec(t) {
3608
3608
  return t instanceof SVGElement && t.tagName !== "svg";
@@ -3629,7 +3629,7 @@ function sc(t, e) {
3629
3629
  };
3630
3630
  return V.read(i, !0), () => tt(i);
3631
3631
  }
3632
- const hr = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], rc = hr.length, xi = (t) => typeof t == "string" ? parseFloat(t) : t, Si = (t) => typeof t == "number" || T.test(t);
3632
+ const hr = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], rc = hr.length, xi = (t) => typeof t == "string" ? parseFloat(t) : t, Si = (t) => typeof t == "number" || w.test(t);
3633
3633
  function oc(t, e, n, i, s, o) {
3634
3634
  s ? (t.opacity = M(
3635
3635
  0,
@@ -3653,13 +3653,13 @@ const ac = /* @__PURE__ */ dr(0, 0.5, ks), lc = /* @__PURE__ */ dr(0.5, 0.95, j)
3653
3653
  function dr(t, e, n) {
3654
3654
  return (i) => i < t ? 0 : i > e ? 1 : n(/* @__PURE__ */ gt(t, e, i));
3655
3655
  }
3656
- function Ti(t, e) {
3656
+ function wi(t, e) {
3657
3657
  t.min = e.min, t.max = e.max;
3658
3658
  }
3659
3659
  function $(t, e) {
3660
- Ti(t.x, e.x), Ti(t.y, e.y);
3660
+ wi(t.x, e.x), wi(t.y, e.y);
3661
3661
  }
3662
- function wi(t, e) {
3662
+ function Ti(t, e) {
3663
3663
  t.translate = e.translate, t.scale = e.scale, t.originPoint = e.originPoint, t.origin = e.origin;
3664
3664
  }
3665
3665
  function Pi(t, e, n, i, s) {
@@ -3760,8 +3760,8 @@ function pc(t, e, n) {
3760
3760
  let i = "";
3761
3761
  const s = t.x.translate / e.x, o = t.y.translate / e.y, r = (n == null ? void 0 : n.z) || 0;
3762
3762
  if ((s || o || r) && (i = `translate3d(${s}px, ${o}px, ${r}px) `), (e.x !== 1 || e.y !== 1) && (i += `scale(${1 / e.x}, ${1 / e.y}) `), n) {
3763
- const { transformPerspective: c, rotate: u, rotateX: h, rotateY: d, skewX: f, skewY: m } = n;
3764
- c && (i = `perspective(${c}px) ${i}`), u && (i += `rotate(${u}deg) `), h && (i += `rotateX(${h}deg) `), d && (i += `rotateY(${d}deg) `), f && (i += `skewX(${f}deg) `), m && (i += `skewY(${m}deg) `);
3763
+ const { transformPerspective: c, rotate: u, rotateX: h, rotateY: d, skewX: p, skewY: m } = n;
3764
+ c && (i = `perspective(${c}px) ${i}`), u && (i += `rotate(${u}deg) `), h && (i += `rotateX(${h}deg) `), d && (i += `rotateY(${d}deg) `), p && (i += `skewX(${p}deg) `), m && (i += `skewY(${m}deg) `);
3765
3765
  }
3766
3766
  const a = t.x.scale * e.x, l = t.y.scale * e.y;
3767
3767
  return (a !== 1 || l !== 1) && (i += `scale(${a}, ${l})`), i || "none";
@@ -3783,7 +3783,7 @@ function mr(t) {
3783
3783
  const { visualElement: e } = t.options;
3784
3784
  if (!e)
3785
3785
  return;
3786
- const n = ws(e);
3786
+ const n = Ts(e);
3787
3787
  if (window.MotionHasOptimisedAnimation(n, "transform")) {
3788
3788
  const { layout: s, layoutId: o } = t.options;
3789
3789
  window.MotionCancelOptimisedAnimation(n, "transform", V, !(s || o));
@@ -3828,12 +3828,12 @@ function gr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
3828
3828
  this.root.updateBlockedByResize = !0, h && h(), h = sc(d, 250), Gt.hasAnimatedSinceResize && (Gt.hasAnimatedSinceResize = !1, this.nodes.forEach(Fi));
3829
3829
  });
3830
3830
  }
3831
- l && this.root.registerSharedNode(l, this), this.options.animate !== !1 && u && (l || c) && this.addEventListener("didUpdate", ({ delta: h, hasLayoutChanged: d, hasRelativeTargetChanged: f, layout: m }) => {
3831
+ l && this.root.registerSharedNode(l, this), this.options.animate !== !1 && u && (l || c) && this.addEventListener("didUpdate", ({ delta: h, hasLayoutChanged: d, hasRelativeTargetChanged: p, layout: m }) => {
3832
3832
  if (this.isTreeAnimationBlocked()) {
3833
3833
  this.target = void 0, this.relativeTarget = void 0;
3834
3834
  return;
3835
3835
  }
3836
- const g = this.options.transition || u.getDefaultTransition() || kc, { onLayoutAnimationStart: v, onLayoutAnimationComplete: y } = u.getProps(), S = !this.targetLayout || !pr(this.targetLayout, m) || f, b = !d && f;
3836
+ const g = this.options.transition || u.getDefaultTransition() || kc, { onLayoutAnimationStart: v, onLayoutAnimationComplete: y } = u.getProps(), S = !this.targetLayout || !pr(this.targetLayout, m) || p, b = !d && p;
3837
3837
  if (this.options.layoutRoot || this.resumeFrom && this.resumeFrom.instance || b || d && (S || !this.currentAnimation)) {
3838
3838
  this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0), this.setAnimationOrigin(h, b);
3839
3839
  const P = {
@@ -3896,7 +3896,7 @@ function gr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
3896
3896
  this.unblockUpdate(), this.clearAllSnapshots(), this.nodes.forEach(Li);
3897
3897
  return;
3898
3898
  }
3899
- this.isUpdating || this.nodes.forEach(Tc), this.isUpdating = !1, this.nodes.forEach(wc), this.nodes.forEach(yc), this.nodes.forEach(vc), this.clearAllSnapshots();
3899
+ this.isUpdating || this.nodes.forEach(wc), this.isUpdating = !1, this.nodes.forEach(Tc), this.nodes.forEach(yc), this.nodes.forEach(vc), this.clearAllSnapshots();
3900
3900
  const a = H.now();
3901
3901
  R.delta = X(0, 1e3 / 60, a - R.timestamp), R.timestamp = a, R.isProcessing = !0, ue.update.process(R), ue.preRender.process(R), ue.render.process(R), R.isProcessing = !1;
3902
3902
  }
@@ -4035,14 +4035,14 @@ function gr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4035
4035
  const { layout: h, layoutId: d } = this.options;
4036
4036
  if (!(!this.layout || !(h || d))) {
4037
4037
  if (this.resolvedRelativeTargetAt = R.timestamp, !this.targetDelta && !this.relativeTarget) {
4038
- const f = this.getClosestProjectingParent();
4039
- f && f.layout && this.animationProgress !== 1 ? (this.relativeParent = f, this.forceRelativeParentToResolveTarget(), this.relativeTarget = E(), this.relativeTargetOrigin = E(), kt(this.relativeTargetOrigin, this.layout.layoutBox, f.layout.layoutBox), $(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
4038
+ const p = this.getClosestProjectingParent();
4039
+ p && p.layout && this.animationProgress !== 1 ? (this.relativeParent = p, this.forceRelativeParentToResolveTarget(), this.relativeTarget = E(), this.relativeTargetOrigin = E(), kt(this.relativeTargetOrigin, this.layout.layoutBox, p.layout.layoutBox), $(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
4040
4040
  }
4041
4041
  if (!(!this.relativeTarget && !this.targetDelta)) {
4042
4042
  if (this.target || (this.target = E(), this.targetWithTransforms = E()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Bl(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : $(this.target, this.layout.layoutBox), ar(this.target, this.targetDelta)) : $(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget) {
4043
4043
  this.attemptToResolveRelativeTarget = !1;
4044
- const f = this.getClosestProjectingParent();
4045
- f && !!f.resumingFrom == !!this.resumingFrom && !f.options.layoutScroll && f.target && this.animationProgress !== 1 ? (this.relativeParent = f, this.forceRelativeParentToResolveTarget(), this.relativeTarget = E(), this.relativeTargetOrigin = E(), kt(this.relativeTargetOrigin, this.target, f.target), $(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
4044
+ const p = this.getClosestProjectingParent();
4045
+ p && !!p.resumingFrom == !!this.resumingFrom && !p.options.layoutScroll && p.target && this.animationProgress !== 1 ? (this.relativeParent = p, this.forceRelativeParentToResolveTarget(), this.relativeTarget = E(), this.relativeTargetOrigin = E(), kt(this.relativeTargetOrigin, this.target, p.target), $(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
4046
4046
  }
4047
4047
  Ct && rt.resolvedTargetDeltas++;
4048
4048
  }
@@ -4065,14 +4065,14 @@ function gr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4065
4065
  if (this.isTreeAnimating = !!(this.parent && this.parent.isTreeAnimating || this.currentAnimation || this.pendingAnimation), this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), !this.layout || !(u || h))
4066
4066
  return;
4067
4067
  $(this.layoutCorrected, this.layout.layoutBox);
4068
- const d = this.treeScale.x, f = this.treeScale.y;
4068
+ const d = this.treeScale.x, p = this.treeScale.y;
4069
4069
  Kl(this.layoutCorrected, this.treeScale, this.path, l), a.layout && !a.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (a.target = a.layout.layoutBox, a.targetWithTransforms = E());
4070
4070
  const { target: m } = a;
4071
4071
  if (!m) {
4072
4072
  this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
4073
4073
  return;
4074
4074
  }
4075
- !this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (wi(this.prevProjectionDelta.x, this.projectionDelta.x), wi(this.prevProjectionDelta.y, this.projectionDelta.y)), Mt(this.projectionDelta, this.layoutCorrected, m, this.latestValues), (this.treeScale.x !== d || this.treeScale.y !== f || !Ei(this.projectionDelta.x, this.prevProjectionDelta.x) || !Ei(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", m)), Ct && rt.recalculatedProjection++;
4075
+ !this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (Ti(this.prevProjectionDelta.x, this.projectionDelta.x), Ti(this.prevProjectionDelta.y, this.projectionDelta.y)), Mt(this.projectionDelta, this.layoutCorrected, m, this.latestValues), (this.treeScale.x !== d || this.treeScale.y !== p || !Ei(this.projectionDelta.x, this.prevProjectionDelta.x) || !Ei(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", m)), Ct && rt.recalculatedProjection++;
4076
4076
  }
4077
4077
  hide() {
4078
4078
  this.isVisible = !1;
@@ -4094,7 +4094,7 @@ function gr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4094
4094
  setAnimationOrigin(r, a = !1) {
4095
4095
  const l = this.snapshot, c = l ? l.latestValues : {}, u = { ...this.latestValues }, h = ft();
4096
4096
  (!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !a;
4097
- const d = E(), f = l ? l.source : void 0, m = this.layout ? this.layout.source : void 0, g = f !== m, v = this.getStack(), y = !v || v.members.length <= 1, S = !!(g && !y && this.options.crossfade === !0 && !this.path.some(Mc));
4097
+ const d = E(), p = l ? l.source : void 0, m = this.layout ? this.layout.source : void 0, g = p !== m, v = this.getStack(), y = !v || v.members.length <= 1, S = !!(g && !y && this.options.crossfade === !0 && !this.path.some(Mc));
4098
4098
  this.animationProgress = 0;
4099
4099
  let b;
4100
4100
  this.mixTargetDelta = (P) => {
@@ -4207,8 +4207,8 @@ function gr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4207
4207
  }
4208
4208
  const d = h.animationValues || h.latestValues;
4209
4209
  this.applyTransformsToTarget(), c.transform = pc(this.projectionDeltaWithTransform, this.treeScale, d), u && (c.transform = u(d, c.transform));
4210
- const { x: f, y: m } = this.projectionDelta;
4211
- c.transformOrigin = `${f.origin * 100}% ${m.origin * 100}% 0`, h.animationValues ? c.opacity = h === this ? (l = (a = d.opacity) !== null && a !== void 0 ? a : this.latestValues.opacity) !== null && l !== void 0 ? l : 1 : this.preserveOpacity ? this.latestValues.opacity : d.opacityExit : c.opacity = h === this ? d.opacity !== void 0 ? d.opacity : "" : d.opacityExit !== void 0 ? d.opacityExit : 0;
4210
+ const { x: p, y: m } = this.projectionDelta;
4211
+ c.transformOrigin = `${p.origin * 100}% ${m.origin * 100}% 0`, h.animationValues ? c.opacity = h === this ? (l = (a = d.opacity) !== null && a !== void 0 ? a : this.latestValues.opacity) !== null && l !== void 0 ? l : 1 : this.preserveOpacity ? this.latestValues.opacity : d.opacityExit : c.opacity = h === this ? d.opacity !== void 0 ? d.opacity : "" : d.opacityExit !== void 0 ? d.opacityExit : 0;
4212
4212
  for (const g in qt) {
4213
4213
  if (d[g] === void 0)
4214
4214
  continue;
@@ -4243,11 +4243,11 @@ function vc(t) {
4243
4243
  if (t.isLead() && t.layout && n && t.hasListeners("didUpdate")) {
4244
4244
  const { layoutBox: i, measuredBox: s } = t.layout, { animationType: o } = t.options, r = n.source !== t.layout.source;
4245
4245
  o === "size" ? _((h) => {
4246
- const d = r ? n.measuredBox[h] : n.layoutBox[h], f = W(d);
4247
- d.min = i[h].min, d.max = d.min + f;
4246
+ const d = r ? n.measuredBox[h] : n.layoutBox[h], p = W(d);
4247
+ d.min = i[h].min, d.max = d.min + p;
4248
4248
  }) : yr(o, n.layoutBox, i) && _((h) => {
4249
- const d = r ? n.measuredBox[h] : n.layoutBox[h], f = W(i[h]);
4250
- d.max = d.min + f, t.relativeTarget && !t.currentAnimation && (t.isProjectionDirty = !0, t.relativeTarget[h].max = t.relativeTarget[h].min + f);
4249
+ const d = r ? n.measuredBox[h] : n.layoutBox[h], p = W(i[h]);
4250
+ d.max = d.min + p, t.relativeTarget && !t.currentAnimation && (t.isProjectionDirty = !0, t.relativeTarget[h].max = t.relativeTarget[h].min + p);
4251
4251
  });
4252
4252
  const a = ft();
4253
4253
  Mt(a, i, n.layoutBox);
@@ -4258,12 +4258,12 @@ function vc(t) {
4258
4258
  if (!t.resumeFrom) {
4259
4259
  const h = t.getClosestProjectingParent();
4260
4260
  if (h && !h.resumeFrom) {
4261
- const { snapshot: d, layout: f } = h;
4262
- if (d && f) {
4261
+ const { snapshot: d, layout: p } = h;
4262
+ if (d && p) {
4263
4263
  const m = E();
4264
4264
  kt(m, n.layoutBox, d.layoutBox);
4265
4265
  const g = E();
4266
- kt(g, i, f.layoutBox), pr(m, g) || (u = !0), h.options.layoutRoot && (t.relativeTarget = g, t.relativeTargetOrigin = m, t.relativeParent = h);
4266
+ kt(g, i, p.layoutBox), pr(m, g) || (u = !0), h.options.layoutRoot && (t.relativeTarget = g, t.relativeTargetOrigin = m, t.relativeParent = h);
4267
4267
  }
4268
4268
  }
4269
4269
  }
@@ -4293,10 +4293,10 @@ function bc(t) {
4293
4293
  function Li(t) {
4294
4294
  t.clearMeasurements();
4295
4295
  }
4296
- function Tc(t) {
4296
+ function wc(t) {
4297
4297
  t.isLayoutDirty = !1;
4298
4298
  }
4299
- function wc(t) {
4299
+ function Tc(t) {
4300
4300
  const { visualElement: e } = t.options;
4301
4301
  e && e.getProps().onBeforeLayoutMeasure && e.notify("BeforeLayoutMeasure"), t.resetTransform();
4302
4302
  }
@@ -4429,7 +4429,7 @@ class Ic extends nt {
4429
4429
  unmount() {
4430
4430
  }
4431
4431
  }
4432
- const Ie = /* @__PURE__ */ new WeakMap(), Te = /* @__PURE__ */ new WeakMap(), jc = (t) => {
4432
+ const Ie = /* @__PURE__ */ new WeakMap(), we = /* @__PURE__ */ new WeakMap(), jc = (t) => {
4433
4433
  const e = Ie.get(t.target);
4434
4434
  e && e(t);
4435
4435
  }, Nc = (t) => {
@@ -4437,8 +4437,8 @@ const Ie = /* @__PURE__ */ new WeakMap(), Te = /* @__PURE__ */ new WeakMap(), jc
4437
4437
  };
4438
4438
  function Wc({ root: t, ...e }) {
4439
4439
  const n = t || document;
4440
- Te.has(n) || Te.set(n, {});
4441
- const i = Te.get(n), s = JSON.stringify(e);
4440
+ we.has(n) || we.set(n, {});
4441
+ const i = we.get(n), s = JSON.stringify(e);
4442
4442
  return i[s] || (i[s] = new IntersectionObserver(Nc, { root: t, ...e })), i[s];
4443
4443
  }
4444
4444
  function Uc(t, e, n) {
@@ -4558,15 +4558,15 @@ class Qc {
4558
4558
  this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = Sn, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
4559
4559
  this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
4560
4560
  }, this.renderScheduledAt = 0, this.scheduleRender = () => {
4561
- const f = H.now();
4562
- this.renderScheduledAt < f && (this.renderScheduledAt = f, V.render(this.render, !1, !0));
4561
+ const p = H.now();
4562
+ this.renderScheduledAt < p && (this.renderScheduledAt = p, V.render(this.render, !1, !0));
4563
4563
  };
4564
4564
  const { latestValues: l, renderState: c, onUpdate: u } = r;
4565
4565
  this.onUpdate = u, this.latestValues = l, this.baseTarget = { ...l }, this.initialValues = n.initial ? { ...l } : {}, this.renderState = c, this.parent = e, this.props = n, this.presenceContext = i, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = s, this.options = a, this.blockInitialAnimation = !!o, this.isControllingVariants = re(n), this.isVariantNode = Zi(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
4566
4566
  const { willChange: h, ...d } = this.scrapeMotionValuesFromProps(n, {}, this);
4567
- for (const f in d) {
4568
- const m = d[f];
4569
- l[f] !== void 0 && O(m) && m.set(l[f], !1);
4567
+ for (const p in d) {
4568
+ const m = d[p];
4569
+ l[p] !== void 0 && O(m) && m.set(l[p], !1);
4570
4570
  }
4571
4571
  }
4572
4572
  mount(e) {
@@ -4982,34 +4982,42 @@ const eu = (t, e) => Ze(t) ? new tu(e) : new Jc(e, {
4982
4982
  idleAnimation: { type: "tremble", duration: 0.3 },
4983
4983
  accessories: { sweatDrop: !0 },
4984
4984
  skinColor: "#FFDAB9"
4985
+ },
4986
+ laughing: {
4987
+ eyeShape: "closed",
4988
+ eyebrowShape: "lifted",
4989
+ mouthShape: "laugh",
4990
+ idleAnimation: { type: "bounce", duration: 0.6 },
4991
+ accessories: { blush: !0 },
4992
+ skinColor: "#FFD700"
4985
4993
  }
4986
4994
  };
4987
4995
  function su({ cx: t, cy: e, animated: n }) {
4988
4996
  return /* @__PURE__ */ C("g", { className: n ? "ef-eye-blink" : "", style: { transformOrigin: `${t}px ${e}px` }, children: [
4989
- /* @__PURE__ */ p("ellipse", { cx: t, cy: e, rx: 9, ry: 11, fill: "#333" }),
4990
- /* @__PURE__ */ p("circle", { cx: t + 3, cy: e - 3, r: 2.5, fill: "white" })
4997
+ /* @__PURE__ */ f("ellipse", { cx: t, cy: e, rx: 9, ry: 11, fill: "#333" }),
4998
+ /* @__PURE__ */ f("circle", { cx: t + 3, cy: e - 3, r: 2.5, fill: "white" })
4991
4999
  ] });
4992
5000
  }
4993
5001
  function ru({ cx: t, cy: e }) {
4994
5002
  return /* @__PURE__ */ C("g", { children: [
4995
- /* @__PURE__ */ p("ellipse", { cx: t, cy: e + 2, rx: 10, ry: 5, fill: "#333" }),
4996
- /* @__PURE__ */ p("line", { x1: t - 10, y1: e - 3, x2: t + 10, y2: e - 3, stroke: "#333", strokeWidth: 2.5, strokeLinecap: "round" })
5003
+ /* @__PURE__ */ f("ellipse", { cx: t, cy: e + 2, rx: 10, ry: 5, fill: "#333" }),
5004
+ /* @__PURE__ */ f("line", { x1: t - 10, y1: e - 3, x2: t + 10, y2: e - 3, stroke: "#333", strokeWidth: 2.5, strokeLinecap: "round" })
4997
5005
  ] });
4998
5006
  }
4999
5007
  function ou({ cx: t, cy: e, animated: n }) {
5000
5008
  return /* @__PURE__ */ C("g", { className: n ? "ef-eye-blink" : "", style: { transformOrigin: `${t}px ${e}px` }, children: [
5001
- /* @__PURE__ */ p("circle", { cx: t, cy: e, r: 13, fill: "#333" }),
5002
- /* @__PURE__ */ p("circle", { cx: t + 4, cy: e - 4, r: 3.5, fill: "white" })
5009
+ /* @__PURE__ */ f("ellipse", { cx: t, cy: e, rx: 10, ry: 13, fill: "#333" }),
5010
+ /* @__PURE__ */ f("circle", { cx: t + 3, cy: e - 4, r: 3, fill: "white" })
5003
5011
  ] });
5004
5012
  }
5005
5013
  function au({ cx: t, cy: e, animated: n }) {
5006
5014
  return /* @__PURE__ */ C("g", { className: n ? "ef-eye-blink" : "", style: { transformOrigin: `${t}px ${e}px` }, children: [
5007
- /* @__PURE__ */ p("ellipse", { cx: t, cy: e + 2, rx: 9, ry: 10, fill: "#333" }),
5008
- /* @__PURE__ */ p("circle", { cx: t + 3, cy: e - 2, r: 2, fill: "white" })
5015
+ /* @__PURE__ */ f("ellipse", { cx: t, cy: e + 2, rx: 9, ry: 10, fill: "#333" }),
5016
+ /* @__PURE__ */ f("circle", { cx: t + 3, cy: e - 2, r: 2, fill: "white" })
5009
5017
  ] });
5010
5018
  }
5011
5019
  function lu({ cx: t, cy: e }) {
5012
- return /* @__PURE__ */ p("g", { children: /* @__PURE__ */ p(
5020
+ return /* @__PURE__ */ f("g", { children: /* @__PURE__ */ f(
5013
5021
  "path",
5014
5022
  {
5015
5023
  d: `M ${t} ${e + 6} C ${t - 10} ${e - 2} ${t - 14} ${e + 8} ${t} ${e + 14} C ${t + 14} ${e + 8} ${t + 10} ${e - 2} ${t} ${e + 6} Z`,
@@ -5019,7 +5027,7 @@ function lu({ cx: t, cy: e }) {
5019
5027
  ) });
5020
5028
  }
5021
5029
  function cu({ cx: t, cy: e }) {
5022
- return /* @__PURE__ */ p("g", { children: /* @__PURE__ */ p(
5030
+ return /* @__PURE__ */ f("g", { children: /* @__PURE__ */ f(
5023
5031
  "path",
5024
5032
  {
5025
5033
  d: `M ${t - 10} ${e} Q ${t} ${e - 6} ${t + 10} ${e}`,
@@ -5032,23 +5040,23 @@ function cu({ cx: t, cy: e }) {
5032
5040
  }
5033
5041
  function uu({ cx: t, cy: e, animated: n }) {
5034
5042
  return /* @__PURE__ */ C("g", { className: n ? "ef-eye-blink" : "", style: { transformOrigin: `${t}px ${e}px` }, children: [
5035
- /* @__PURE__ */ p("ellipse", { cx: t, cy: e + 3, rx: 9, ry: 6, fill: "#333" }),
5036
- /* @__PURE__ */ p("line", { x1: t - 9, y1: e - 3, x2: t + 9, y2: e - 3, stroke: "#333", strokeWidth: 2.5, strokeLinecap: "round" })
5043
+ /* @__PURE__ */ f("ellipse", { cx: t, cy: e + 3, rx: 9, ry: 6, fill: "#333" }),
5044
+ /* @__PURE__ */ f("line", { x1: t - 9, y1: e - 3, x2: t + 9, y2: e - 3, stroke: "#333", strokeWidth: 2.5, strokeLinecap: "round" })
5037
5045
  ] });
5038
5046
  }
5039
5047
  function hu({ cx: t, cy: e, animated: n }) {
5040
5048
  return /* @__PURE__ */ C("g", { className: n ? "ef-eye-blink" : "", style: { transformOrigin: `${t}px ${e}px` }, children: [
5041
- /* @__PURE__ */ p("circle", { cx: t, cy: e, r: 12, fill: "white", stroke: "#333", strokeWidth: 2 }),
5042
- /* @__PURE__ */ p("circle", { cx: t, cy: e, r: 8, fill: "#333" }),
5043
- /* @__PURE__ */ p("circle", { cx: t + 3, cy: e - 3, r: 2.5, fill: "white" })
5049
+ /* @__PURE__ */ f("circle", { cx: t, cy: e, r: 12, fill: "white", stroke: "#333", strokeWidth: 2 }),
5050
+ /* @__PURE__ */ f("circle", { cx: t, cy: e, r: 8, fill: "#333" }),
5051
+ /* @__PURE__ */ f("circle", { cx: t + 3, cy: e - 3, r: 2.5, fill: "white" })
5044
5052
  ] });
5045
5053
  }
5046
5054
  function du({ shape: t, animated: e }) {
5047
5055
  const n = [
5048
- { cx: 72, cy: 82 },
5049
- { cx: 128, cy: 82 }
5056
+ { cx: 62, cy: 95 },
5057
+ { cx: 138, cy: 95 }
5050
5058
  ];
5051
- return /* @__PURE__ */ p(ee, { mode: "wait", children: /* @__PURE__ */ p(
5059
+ return /* @__PURE__ */ f(ee, { mode: "wait", children: /* @__PURE__ */ f(
5052
5060
  N.g,
5053
5061
  {
5054
5062
  initial: { opacity: 0 },
@@ -5058,21 +5066,21 @@ function du({ shape: t, animated: e }) {
5058
5066
  children: n.map(({ cx: i, cy: s }, o) => {
5059
5067
  switch (t) {
5060
5068
  case "sleepy":
5061
- return /* @__PURE__ */ p(ru, { cx: i, cy: s }, o);
5069
+ return /* @__PURE__ */ f(ru, { cx: i, cy: s }, o);
5062
5070
  case "surprised":
5063
- return /* @__PURE__ */ p(ou, { cx: i, cy: s, animated: e }, o);
5071
+ return /* @__PURE__ */ f(ou, { cx: i, cy: s, animated: e }, o);
5064
5072
  case "sad":
5065
- return /* @__PURE__ */ p(au, { cx: i, cy: s, animated: e }, o);
5073
+ return /* @__PURE__ */ f(au, { cx: i, cy: s, animated: e }, o);
5066
5074
  case "heart":
5067
- return /* @__PURE__ */ p(lu, { cx: i, cy: s }, o);
5075
+ return /* @__PURE__ */ f(lu, { cx: i, cy: s }, o);
5068
5076
  case "closed":
5069
- return /* @__PURE__ */ p(cu, { cx: i, cy: s }, o);
5077
+ return /* @__PURE__ */ f(cu, { cx: i, cy: s }, o);
5070
5078
  case "squint":
5071
- return /* @__PURE__ */ p(uu, { cx: i, cy: s, animated: e }, o);
5079
+ return /* @__PURE__ */ f(uu, { cx: i, cy: s, animated: e }, o);
5072
5080
  case "wide":
5073
- return /* @__PURE__ */ p(hu, { cx: i, cy: s, animated: e }, o);
5081
+ return /* @__PURE__ */ f(hu, { cx: i, cy: s, animated: e }, o);
5074
5082
  default:
5075
- return /* @__PURE__ */ p(su, { cx: i, cy: s, animated: e }, o);
5083
+ return /* @__PURE__ */ f(su, { cx: i, cy: s, animated: e }, o);
5076
5084
  }
5077
5085
  })
5078
5086
  },
@@ -5084,57 +5092,57 @@ function fu({ shape: t }) {
5084
5092
  switch (t) {
5085
5093
  case "normal":
5086
5094
  return /* @__PURE__ */ C("g", { children: [
5087
- /* @__PURE__ */ p("path", { d: "M 60 62 Q 72 58 84 62", stroke: e, strokeWidth: 3.5, fill: "none", strokeLinecap: i }),
5088
- /* @__PURE__ */ p("path", { d: "M 116 62 Q 128 58 140 62", stroke: e, strokeWidth: 3.5, fill: "none", strokeLinecap: i })
5095
+ /* @__PURE__ */ f("path", { d: "M 54 74 Q 66 70 78 74", stroke: e, strokeWidth: 3.5, fill: "none", strokeLinecap: i }),
5096
+ /* @__PURE__ */ f("path", { d: "M 122 74 Q 134 70 146 74", stroke: e, strokeWidth: 3.5, fill: "none", strokeLinecap: i })
5089
5097
  ] });
5090
5098
  case "raised":
5091
5099
  return /* @__PURE__ */ C("g", { children: [
5092
- /* @__PURE__ */ p("path", { d: "M 60 56 Q 72 52 84 56", stroke: e, strokeWidth: 3.5, fill: "none", strokeLinecap: i }),
5093
- /* @__PURE__ */ p("path", { d: "M 116 56 Q 128 52 140 56", stroke: e, strokeWidth: 3.5, fill: "none", strokeLinecap: i })
5100
+ /* @__PURE__ */ f("path", { d: "M 54 68 Q 66 64 78 68", stroke: e, strokeWidth: 3.5, fill: "none", strokeLinecap: i }),
5101
+ /* @__PURE__ */ f("path", { d: "M 122 68 Q 134 64 146 68", stroke: e, strokeWidth: 3.5, fill: "none", strokeLinecap: i })
5094
5102
  ] });
5095
5103
  case "furrowed":
5096
5104
  return /* @__PURE__ */ C("g", { children: [
5097
- /* @__PURE__ */ p("path", { d: "M 60 62 Q 72 66 84 58", stroke: e, strokeWidth: 3.5, fill: "none", strokeLinecap: i }),
5098
- /* @__PURE__ */ p("path", { d: "M 116 58 Q 128 66 140 62", stroke: e, strokeWidth: 3.5, fill: "none", strokeLinecap: i })
5105
+ /* @__PURE__ */ f("path", { d: "M 54 74 Q 66 78 78 70", stroke: e, strokeWidth: 3.5, fill: "none", strokeLinecap: i }),
5106
+ /* @__PURE__ */ f("path", { d: "M 122 70 Q 134 78 146 74", stroke: e, strokeWidth: 3.5, fill: "none", strokeLinecap: i })
5099
5107
  ] });
5100
5108
  case "sad":
5101
5109
  return /* @__PURE__ */ C("g", { children: [
5102
- /* @__PURE__ */ p("path", { d: "M 60 60 Q 72 64 84 60", stroke: e, strokeWidth: 3.5, fill: "none", strokeLinecap: i }),
5103
- /* @__PURE__ */ p("path", { d: "M 116 60 Q 128 64 140 60", stroke: e, strokeWidth: 3.5, fill: "none", strokeLinecap: i })
5110
+ /* @__PURE__ */ f("path", { d: "M 54 72 Q 66 76 78 72", stroke: e, strokeWidth: 3.5, fill: "none", strokeLinecap: i }),
5111
+ /* @__PURE__ */ f("path", { d: "M 122 72 Q 134 76 146 72", stroke: e, strokeWidth: 3.5, fill: "none", strokeLinecap: i })
5104
5112
  ] });
5105
5113
  case "lifted":
5106
5114
  return /* @__PURE__ */ C("g", { children: [
5107
- /* @__PURE__ */ p("path", { d: "M 60 60 Q 72 54 84 58", stroke: e, strokeWidth: 3.5, fill: "none", strokeLinecap: i }),
5108
- /* @__PURE__ */ p("path", { d: "M 116 58 Q 128 54 140 60", stroke: e, strokeWidth: 3.5, fill: "none", strokeLinecap: i })
5115
+ /* @__PURE__ */ f("path", { d: "M 54 72 Q 66 66 78 70", stroke: e, strokeWidth: 3.5, fill: "none", strokeLinecap: i }),
5116
+ /* @__PURE__ */ f("path", { d: "M 122 70 Q 134 66 146 72", stroke: e, strokeWidth: 3.5, fill: "none", strokeLinecap: i })
5109
5117
  ] });
5110
5118
  case "flat":
5111
5119
  return /* @__PURE__ */ C("g", { children: [
5112
- /* @__PURE__ */ p("line", { x1: "60", y1: "62", x2: "84", y2: "62", stroke: e, strokeWidth: 3.5, strokeLinecap: i }),
5113
- /* @__PURE__ */ p("line", { x1: "116", y1: "62", x2: "140", y2: "62", stroke: e, strokeWidth: 3.5, strokeLinecap: i })
5120
+ /* @__PURE__ */ f("line", { x1: "54", y1: "74", x2: "78", y2: "74", stroke: e, strokeWidth: 3.5, strokeLinecap: i }),
5121
+ /* @__PURE__ */ f("line", { x1: "122", y1: "74", x2: "146", y2: "74", stroke: e, strokeWidth: 3.5, strokeLinecap: i })
5114
5122
  ] });
5115
5123
  case "asymmetric":
5116
5124
  return /* @__PURE__ */ C("g", { children: [
5117
- /* @__PURE__ */ p("path", { d: "M 60 56 Q 72 52 84 58", stroke: e, strokeWidth: 3.5, fill: "none", strokeLinecap: i }),
5118
- /* @__PURE__ */ p("path", { d: "M 116 58 Q 128 66 140 60", stroke: e, strokeWidth: 3.5, fill: "none", strokeLinecap: i })
5125
+ /* @__PURE__ */ f("path", { d: "M 54 68 Q 66 64 78 70", stroke: e, strokeWidth: 3.5, fill: "none", strokeLinecap: i }),
5126
+ /* @__PURE__ */ f("path", { d: "M 122 70 Q 134 78 146 72", stroke: e, strokeWidth: 3.5, fill: "none", strokeLinecap: i })
5119
5127
  ] });
5120
5128
  default:
5121
5129
  return /* @__PURE__ */ C("g", { children: [
5122
- /* @__PURE__ */ p("path", { d: "M 60 62 Q 72 58 84 62", stroke: e, strokeWidth: 3.5, fill: "none", strokeLinecap: i }),
5123
- /* @__PURE__ */ p("path", { d: "M 116 62 Q 128 58 140 62", stroke: e, strokeWidth: 3.5, fill: "none", strokeLinecap: i })
5130
+ /* @__PURE__ */ f("path", { d: "M 54 74 Q 66 70 78 74", stroke: e, strokeWidth: 3.5, fill: "none", strokeLinecap: i }),
5131
+ /* @__PURE__ */ f("path", { d: "M 122 74 Q 134 70 146 74", stroke: e, strokeWidth: 3.5, fill: "none", strokeLinecap: i })
5124
5132
  ] });
5125
5133
  }
5126
5134
  }
5127
5135
  const Ki = {
5128
- smile: "M 72 118 Q 100 140 128 118",
5129
- frown: "M 72 130 Q 100 112 128 130",
5130
- angry: "M 72 124 Q 100 116 128 124",
5131
- flat: "M 78 122 Q 100 122 122 122",
5132
- tight: "M 78 122 Q 100 126 122 122",
5133
- smirk: "M 78 122 Q 100 132 120 118"
5136
+ smile: "M 85 115 Q 100 130 115 115",
5137
+ frown: "M 85 125 Q 100 110 115 125",
5138
+ angry: "M 85 120 Q 100 112 115 120",
5139
+ flat: "M 90 118 Q 100 118 110 118",
5140
+ tight: "M 90 118 Q 100 122 110 118",
5141
+ smirk: "M 90 118 Q 100 125 110 110"
5134
5142
  };
5135
5143
  function pu({ shape: t }) {
5136
5144
  const e = Ki[t] || Ki.flat;
5137
- return /* @__PURE__ */ p(
5145
+ return /* @__PURE__ */ f(
5138
5146
  N.path,
5139
5147
  {
5140
5148
  d: e,
@@ -5148,25 +5156,25 @@ function pu({ shape: t }) {
5148
5156
  );
5149
5157
  }
5150
5158
  function mu() {
5151
- return /* @__PURE__ */ p("ellipse", { cx: 100, cy: 122, rx: 14, ry: 16, fill: "#333" });
5159
+ return /* @__PURE__ */ f("ellipse", { cx: 100, cy: 118, rx: 8, ry: 10, fill: "#333" });
5152
5160
  }
5153
5161
  function gu() {
5154
5162
  return /* @__PURE__ */ C("g", { children: [
5155
- /* @__PURE__ */ p("path", { d: "M 68 114 Q 100 144 132 114", stroke: "#333", strokeWidth: 3.5, fill: "#cc4444", strokeLinecap: "round" }),
5156
- /* @__PURE__ */ p("path", { d: "M 68 114 Q 100 144 132 114 Z", fill: "#cc4444" })
5163
+ /* @__PURE__ */ f("path", { d: "M 82 114 Q 100 134 118 114", stroke: "#333", strokeWidth: 3.5, fill: "#cc4444", strokeLinecap: "round" }),
5164
+ /* @__PURE__ */ f("path", { d: "M 82 114 Q 100 134 118 114 Z", fill: "#cc4444" })
5157
5165
  ] });
5158
5166
  }
5159
5167
  function yu() {
5160
5168
  return /* @__PURE__ */ C("g", { children: [
5161
- /* @__PURE__ */ p("path", { d: "M 72 116 Q 100 138 128 116", stroke: "#333", strokeWidth: 3.5, fill: "none", strokeLinecap: "round" }),
5162
- /* @__PURE__ */ p("ellipse", { cx: 100, cy: 134, rx: 10, ry: 8, fill: "#FF69B4", stroke: "#333", strokeWidth: 2 })
5169
+ /* @__PURE__ */ f("path", { d: "M 85 116 Q 100 128 115 116", stroke: "#333", strokeWidth: 3.5, fill: "none", strokeLinecap: "round" }),
5170
+ /* @__PURE__ */ f("ellipse", { cx: 100, cy: 125, rx: 8, ry: 6, fill: "#FF69B4", stroke: "#333", strokeWidth: 2 })
5163
5171
  ] });
5164
5172
  }
5165
5173
  function vu() {
5166
- return /* @__PURE__ */ p(
5174
+ return /* @__PURE__ */ f(
5167
5175
  "polyline",
5168
5176
  {
5169
- points: "72,128 84,118 96,128 108,118 120,128 128,122",
5177
+ points: "85,122 90,116 95,122 100,116 105,122 110,116 115,120",
5170
5178
  stroke: "#333",
5171
5179
  strokeWidth: 3.5,
5172
5180
  fill: "none",
@@ -5175,9 +5183,18 @@ function vu() {
5175
5183
  }
5176
5184
  );
5177
5185
  }
5178
- const xu = /* @__PURE__ */ new Set(["surprised-o", "excited-open", "silly", "zigzag"]);
5179
- function Su({ shape: t }) {
5180
- return xu.has(t) ? /* @__PURE__ */ p(ee, { mode: "wait", children: /* @__PURE__ */ C(
5186
+ function xu() {
5187
+ return /* @__PURE__ */ C("g", { children: [
5188
+ /* @__PURE__ */ f("path", { d: "M 80 112 Q 100 138 120 112", stroke: "#333", strokeWidth: 3.5, fill: "#cc4444", strokeLinecap: "round" }),
5189
+ /* @__PURE__ */ f("line", { x1: "80", y1: "112", x2: "120", y2: "112", stroke: "#333", strokeWidth: 3 }),
5190
+ /* @__PURE__ */ f("rect", { x: 83, y: 108, width: 9, height: 7, rx: 2, fill: "white", stroke: "#ccc", strokeWidth: 0.5 }),
5191
+ /* @__PURE__ */ f("rect", { x: 94, y: 107, width: 12, height: 8, rx: 2, fill: "white", stroke: "#ccc", strokeWidth: 0.5 }),
5192
+ /* @__PURE__ */ f("rect", { x: 108, y: 108, width: 9, height: 7, rx: 2, fill: "white", stroke: "#ccc", strokeWidth: 0.5 })
5193
+ ] });
5194
+ }
5195
+ const Su = /* @__PURE__ */ new Set(["surprised-o", "excited-open", "silly", "zigzag", "laugh"]);
5196
+ function bu({ shape: t }) {
5197
+ return Su.has(t) ? /* @__PURE__ */ f(ee, { mode: "wait", children: /* @__PURE__ */ C(
5181
5198
  N.g,
5182
5199
  {
5183
5200
  initial: { opacity: 0, scale: 0.8 },
@@ -5186,108 +5203,25 @@ function Su({ shape: t }) {
5186
5203
  transition: { duration: 0.2 },
5187
5204
  style: { transformOrigin: "100px 122px" },
5188
5205
  children: [
5189
- t === "surprised-o" && /* @__PURE__ */ p(mu, {}),
5190
- t === "excited-open" && /* @__PURE__ */ p(gu, {}),
5191
- t === "silly" && /* @__PURE__ */ p(yu, {}),
5192
- t === "zigzag" && /* @__PURE__ */ p(vu, {})
5206
+ t === "surprised-o" && /* @__PURE__ */ f(mu, {}),
5207
+ t === "excited-open" && /* @__PURE__ */ f(gu, {}),
5208
+ t === "silly" && /* @__PURE__ */ f(yu, {}),
5209
+ t === "zigzag" && /* @__PURE__ */ f(vu, {}),
5210
+ t === "laugh" && /* @__PURE__ */ f(xu, {})
5193
5211
  ]
5194
5212
  },
5195
5213
  t
5196
- ) }) : /* @__PURE__ */ p(pu, { shape: t });
5197
- }
5198
- function bu({ color: t, tilt: e = 0 }) {
5199
- const n = "#333";
5200
- return /* @__PURE__ */ C(
5201
- "g",
5202
- {
5203
- transform: `rotate(${e}, 100, 160)`,
5204
- style: { transformOrigin: "100px 160px" },
5205
- children: [
5206
- /* @__PURE__ */ p(
5207
- "line",
5208
- {
5209
- x1: "100",
5210
- y1: "155",
5211
- x2: "100",
5212
- y2: "175",
5213
- stroke: n,
5214
- strokeWidth: 4,
5215
- strokeLinecap: "round"
5216
- }
5217
- ),
5218
- /* @__PURE__ */ p(
5219
- "line",
5220
- {
5221
- x1: "100",
5222
- y1: "175",
5223
- x2: "100",
5224
- y2: "225",
5225
- stroke: n,
5226
- strokeWidth: 4,
5227
- strokeLinecap: "round"
5228
- }
5229
- ),
5230
- /* @__PURE__ */ p(
5231
- "line",
5232
- {
5233
- x1: "100",
5234
- y1: "185",
5235
- x2: "70",
5236
- y2: "215",
5237
- stroke: n,
5238
- strokeWidth: 4,
5239
- strokeLinecap: "round"
5240
- }
5241
- ),
5242
- /* @__PURE__ */ p(
5243
- "line",
5244
- {
5245
- x1: "100",
5246
- y1: "185",
5247
- x2: "130",
5248
- y2: "215",
5249
- stroke: n,
5250
- strokeWidth: 4,
5251
- strokeLinecap: "round"
5252
- }
5253
- ),
5254
- /* @__PURE__ */ p(
5255
- "line",
5256
- {
5257
- x1: "100",
5258
- y1: "225",
5259
- x2: "78",
5260
- y2: "265",
5261
- stroke: n,
5262
- strokeWidth: 4,
5263
- strokeLinecap: "round"
5264
- }
5265
- ),
5266
- /* @__PURE__ */ p(
5267
- "line",
5268
- {
5269
- x1: "100",
5270
- y1: "225",
5271
- x2: "122",
5272
- y2: "265",
5273
- stroke: n,
5274
- strokeWidth: 4,
5275
- strokeLinecap: "round"
5276
- }
5277
- )
5278
- ]
5279
- }
5280
- );
5214
+ ) }) : /* @__PURE__ */ f(pu, { shape: t });
5281
5215
  }
5282
- function Tu() {
5216
+ function wu() {
5283
5217
  return /* @__PURE__ */ C("g", { children: [
5284
- /* @__PURE__ */ p("ellipse", { cx: 62, cy: 100, rx: 14, ry: 8, fill: "#FF9999", opacity: 0.6 }),
5285
- /* @__PURE__ */ p("ellipse", { cx: 138, cy: 100, rx: 14, ry: 8, fill: "#FF9999", opacity: 0.6 })
5218
+ /* @__PURE__ */ f("ellipse", { cx: 62, cy: 100, rx: 14, ry: 8, fill: "#FF9999", opacity: 0.6 }),
5219
+ /* @__PURE__ */ f("ellipse", { cx: 138, cy: 100, rx: 14, ry: 8, fill: "#FF9999", opacity: 0.6 })
5286
5220
  ] });
5287
5221
  }
5288
- function wu({ animated: t }) {
5222
+ function Tu({ animated: t }) {
5289
5223
  return /* @__PURE__ */ C("g", { children: [
5290
- /* @__PURE__ */ p(
5224
+ /* @__PURE__ */ f(
5291
5225
  "ellipse",
5292
5226
  {
5293
5227
  cx: 68,
@@ -5298,7 +5232,7 @@ function wu({ animated: t }) {
5298
5232
  className: t ? "ef-tear-1" : ""
5299
5233
  }
5300
5234
  ),
5301
- /* @__PURE__ */ p(
5235
+ /* @__PURE__ */ f(
5302
5236
  "ellipse",
5303
5237
  {
5304
5238
  cx: 132,
@@ -5313,7 +5247,7 @@ function wu({ animated: t }) {
5313
5247
  }
5314
5248
  function Pu({ animated: t }) {
5315
5249
  return /* @__PURE__ */ C("g", { children: [
5316
- /* @__PURE__ */ p(
5250
+ /* @__PURE__ */ f(
5317
5251
  "text",
5318
5252
  {
5319
5253
  x: 145,
@@ -5326,7 +5260,7 @@ function Pu({ animated: t }) {
5326
5260
  children: "Z"
5327
5261
  }
5328
5262
  ),
5329
- /* @__PURE__ */ p(
5263
+ /* @__PURE__ */ f(
5330
5264
  "text",
5331
5265
  {
5332
5266
  x: 155,
@@ -5339,7 +5273,7 @@ function Pu({ animated: t }) {
5339
5273
  children: "z"
5340
5274
  }
5341
5275
  ),
5342
- /* @__PURE__ */ p(
5276
+ /* @__PURE__ */ f(
5343
5277
  "text",
5344
5278
  {
5345
5279
  x: 163,
@@ -5355,11 +5289,11 @@ function Pu({ animated: t }) {
5355
5289
  ] });
5356
5290
  }
5357
5291
  function Au({ animated: t }) {
5358
- return /* @__PURE__ */ p("g", { children: [
5292
+ return /* @__PURE__ */ f("g", { children: [
5359
5293
  { x: 148, y: 65, size: 12, cls: "ef-float-heart-1" },
5360
5294
  { x: 160, y: 50, size: 9, cls: "ef-float-heart-2" },
5361
5295
  { x: 138, y: 45, size: 7, cls: "ef-float-heart-3" }
5362
- ].map(({ x: n, y: i, size: s, cls: o }, r) => /* @__PURE__ */ p(
5296
+ ].map(({ x: n, y: i, size: s, cls: o }, r) => /* @__PURE__ */ f(
5363
5297
  "text",
5364
5298
  {
5365
5299
  x: n,
@@ -5374,7 +5308,7 @@ function Au({ animated: t }) {
5374
5308
  )) });
5375
5309
  }
5376
5310
  function Cu({ animated: t }) {
5377
- return /* @__PURE__ */ p("g", { className: t ? "ef-sweat-drop" : "", children: /* @__PURE__ */ p(
5311
+ return /* @__PURE__ */ f("g", { className: t ? "ef-sweat-drop" : "", children: /* @__PURE__ */ f(
5378
5312
  "path",
5379
5313
  {
5380
5314
  d: "M 148 68 Q 152 60 156 68 Q 156 74 152 75 Q 148 74 148 68 Z",
@@ -5385,12 +5319,12 @@ function Cu({ animated: t }) {
5385
5319
  ) });
5386
5320
  }
5387
5321
  function Vu({ animated: t }) {
5388
- return /* @__PURE__ */ p("g", { children: [
5322
+ return /* @__PURE__ */ f("g", { children: [
5389
5323
  { x: 148, y: 52, cls: "ef-sparkle-1" },
5390
5324
  { x: 155, y: 68, cls: "ef-sparkle-2" },
5391
5325
  { x: 40, y: 60, cls: "ef-sparkle-3" },
5392
5326
  { x: 48, y: 75, cls: "ef-sparkle-4" }
5393
- ].map(({ x: n, y: i, cls: s }, o) => /* @__PURE__ */ p(
5327
+ ].map(({ x: n, y: i, cls: s }, o) => /* @__PURE__ */ f(
5394
5328
  "text",
5395
5329
  {
5396
5330
  x: n,
@@ -5406,13 +5340,13 @@ function Vu({ animated: t }) {
5406
5340
  }
5407
5341
  function Du() {
5408
5342
  return /* @__PURE__ */ C("g", { className: "ef-anger-pulse", children: [
5409
- /* @__PURE__ */ p("path", { d: "M 42 52 L 50 44 L 58 52 L 50 60 Z", fill: "#FF4444", opacity: 0.85 }),
5410
- /* @__PURE__ */ p("line", { x1: "46", y1: "48", x2: "54", y2: "56", stroke: "#CC0000", strokeWidth: 2 }),
5411
- /* @__PURE__ */ p("line", { x1: "54", y1: "48", x2: "46", y2: "56", stroke: "#CC0000", strokeWidth: 2 })
5343
+ /* @__PURE__ */ f("path", { d: "M 42 52 L 50 44 L 58 52 L 50 60 Z", fill: "#FF4444", opacity: 0.85 }),
5344
+ /* @__PURE__ */ f("line", { x1: "46", y1: "48", x2: "54", y2: "56", stroke: "#CC0000", strokeWidth: 2 }),
5345
+ /* @__PURE__ */ f("line", { x1: "54", y1: "48", x2: "46", y2: "56", stroke: "#CC0000", strokeWidth: 2 })
5412
5346
  ] });
5413
5347
  }
5414
5348
  function Mu() {
5415
- return /* @__PURE__ */ p(
5349
+ return /* @__PURE__ */ f(
5416
5350
  "text",
5417
5351
  {
5418
5352
  x: 148,
@@ -5437,14 +5371,14 @@ function ku({ config: t, animated: e }) {
5437
5371
  questionMark: c
5438
5372
  } = t;
5439
5373
  return /* @__PURE__ */ C(ee, { children: [
5440
- n && /* @__PURE__ */ p(N.g, { initial: { opacity: 0 }, animate: { opacity: 1 }, exit: { opacity: 0 }, children: /* @__PURE__ */ p(Tu, {}) }, "blush"),
5441
- i && /* @__PURE__ */ p(N.g, { initial: { opacity: 0 }, animate: { opacity: 1 }, exit: { opacity: 0 }, children: /* @__PURE__ */ p(wu, { animated: e }) }, "tears"),
5442
- s && /* @__PURE__ */ p(N.g, { initial: { opacity: 0 }, animate: { opacity: 1 }, exit: { opacity: 0 }, children: /* @__PURE__ */ p(Pu, { animated: e }) }, "z"),
5443
- o && /* @__PURE__ */ p(N.g, { initial: { opacity: 0 }, animate: { opacity: 1 }, exit: { opacity: 0 }, children: /* @__PURE__ */ p(Au, { animated: e }) }, "hearts"),
5444
- r && /* @__PURE__ */ p(N.g, { initial: { opacity: 0 }, animate: { opacity: 1 }, exit: { opacity: 0 }, children: /* @__PURE__ */ p(Cu, { animated: e }) }, "sweat"),
5445
- a && /* @__PURE__ */ p(N.g, { initial: { opacity: 0 }, animate: { opacity: 1 }, exit: { opacity: 0 }, children: /* @__PURE__ */ p(Vu, { animated: e }) }, "sparkles"),
5446
- l && /* @__PURE__ */ p(N.g, { initial: { opacity: 0 }, animate: { opacity: 1 }, exit: { opacity: 0 }, children: /* @__PURE__ */ p(Du, {}) }, "anger"),
5447
- c && /* @__PURE__ */ p(N.g, { initial: { opacity: 0 }, animate: { opacity: 1 }, exit: { opacity: 0 }, children: /* @__PURE__ */ p(Mu, {}) }, "question")
5374
+ n && /* @__PURE__ */ f(N.g, { initial: { opacity: 0 }, animate: { opacity: 1 }, exit: { opacity: 0 }, children: /* @__PURE__ */ f(wu, {}) }, "blush"),
5375
+ i && /* @__PURE__ */ f(N.g, { initial: { opacity: 0 }, animate: { opacity: 1 }, exit: { opacity: 0 }, children: /* @__PURE__ */ f(Tu, { animated: e }) }, "tears"),
5376
+ s && /* @__PURE__ */ f(N.g, { initial: { opacity: 0 }, animate: { opacity: 1 }, exit: { opacity: 0 }, children: /* @__PURE__ */ f(Pu, { animated: e }) }, "z"),
5377
+ o && /* @__PURE__ */ f(N.g, { initial: { opacity: 0 }, animate: { opacity: 1 }, exit: { opacity: 0 }, children: /* @__PURE__ */ f(Au, { animated: e }) }, "hearts"),
5378
+ r && /* @__PURE__ */ f(N.g, { initial: { opacity: 0 }, animate: { opacity: 1 }, exit: { opacity: 0 }, children: /* @__PURE__ */ f(Cu, { animated: e }) }, "sweat"),
5379
+ a && /* @__PURE__ */ f(N.g, { initial: { opacity: 0 }, animate: { opacity: 1 }, exit: { opacity: 0 }, children: /* @__PURE__ */ f(Vu, { animated: e }) }, "sparkles"),
5380
+ l && /* @__PURE__ */ f(N.g, { initial: { opacity: 0 }, animate: { opacity: 1 }, exit: { opacity: 0 }, children: /* @__PURE__ */ f(Du, {}) }, "anger"),
5381
+ c && /* @__PURE__ */ f(N.g, { initial: { opacity: 0 }, animate: { opacity: 1 }, exit: { opacity: 0 }, children: /* @__PURE__ */ f(Mu, {}) }, "question")
5448
5382
  ] });
5449
5383
  }
5450
5384
  function Eu(t, e) {
@@ -5470,20 +5404,20 @@ function Eu(t, e) {
5470
5404
  return "";
5471
5405
  }
5472
5406
  }
5473
- function Ru({ config: t, color: e, animated: n, showBody: i, size: s }) {
5474
- const o = Eu(t, n), r = i ? "0 0 200 280" : "0 20 200 160", a = i ? s : s * 0.8;
5475
- return /* @__PURE__ */ p(
5407
+ function Ru({ config: t, color: e, animated: n, size: i }) {
5408
+ const s = Eu(t, n);
5409
+ return /* @__PURE__ */ f(
5476
5410
  "svg",
5477
5411
  {
5478
- width: s,
5479
- height: a,
5480
- viewBox: r,
5412
+ width: i,
5413
+ height: i,
5414
+ viewBox: "0 20 200 160",
5481
5415
  xmlns: "http://www.w3.org/2000/svg",
5482
5416
  style: { overflow: "visible", display: "block" },
5483
5417
  children: /* @__PURE__ */ C(
5484
5418
  N.g,
5485
5419
  {
5486
- className: o,
5420
+ className: s,
5487
5421
  style: { transformOrigin: "100px 140px" },
5488
5422
  animate: n && t.idleAnimation.type === "breathe" ? { scale: [1, 1.015, 1] } : n && t.idleAnimation.type === "slow-breathe" ? { scale: [1, 1.01, 1] } : n && t.idleAnimation.type === "bounce" ? { y: [0, -12, -8, 0] } : n && t.idleAnimation.type === "pulse" ? { scale: [1, 1.06, 1] } : n && t.idleAnimation.type === "headBob" ? { y: [0, -4, -2, 0], rotate: [0, -2, 2, 0] } : void 0,
5489
5423
  transition: n ? {
@@ -5492,22 +5426,25 @@ function Ru({ config: t, color: e, animated: n, showBody: i, size: s }) {
5492
5426
  ease: "easeInOut"
5493
5427
  } : void 0,
5494
5428
  children: [
5495
- /* @__PURE__ */ p(
5496
- "circle",
5429
+ /* @__PURE__ */ f(
5430
+ "rect",
5497
5431
  {
5498
- cx: 100,
5499
- cy: 90,
5500
- r: 70,
5432
+ x: 25,
5433
+ y: 25,
5434
+ width: 150,
5435
+ height: 140,
5436
+ rx: 45,
5501
5437
  fill: e,
5502
5438
  stroke: "#333",
5503
5439
  strokeWidth: 3
5504
5440
  }
5505
5441
  ),
5506
- /* @__PURE__ */ p(ku, { config: t.accessories, animated: n }),
5507
- /* @__PURE__ */ p(fu, { shape: t.eyebrowShape }),
5508
- /* @__PURE__ */ p(du, { shape: t.eyeShape, animated: n }),
5509
- /* @__PURE__ */ p(Su, { shape: t.mouthShape }),
5510
- i && /* @__PURE__ */ p(bu, { color: e, tilt: t.bodyTilt || 0 })
5442
+ /* @__PURE__ */ f("ellipse", { cx: 56, cy: 105, rx: 12, ry: 8, fill: "#ff8c8c", opacity: 0.6 }),
5443
+ /* @__PURE__ */ f("ellipse", { cx: 144, cy: 105, rx: 12, ry: 8, fill: "#ff8c8c", opacity: 0.6 }),
5444
+ /* @__PURE__ */ f(ku, { config: t.accessories, animated: n }),
5445
+ /* @__PURE__ */ f(fu, { shape: t.eyebrowShape }),
5446
+ /* @__PURE__ */ f(du, { shape: t.eyeShape, animated: n }),
5447
+ /* @__PURE__ */ f(bu, { shape: t.mouthShape })
5511
5448
  ]
5512
5449
  }
5513
5450
  )
@@ -5543,7 +5480,7 @@ function Lu({ message: t, size: e }) {
5543
5480
  },
5544
5481
  children: [
5545
5482
  t,
5546
- /* @__PURE__ */ p(
5483
+ /* @__PURE__ */ f(
5547
5484
  "div",
5548
5485
  {
5549
5486
  style: {
@@ -5558,7 +5495,7 @@ function Lu({ message: t, size: e }) {
5558
5495
  }
5559
5496
  }
5560
5497
  ),
5561
- /* @__PURE__ */ p(
5498
+ /* @__PURE__ */ f(
5562
5499
  "div",
5563
5500
  {
5564
5501
  style: {
@@ -5577,19 +5514,18 @@ function Lu({ message: t, size: e }) {
5577
5514
  }
5578
5515
  );
5579
5516
  }
5580
- function Nu({
5517
+ function Wu({
5581
5518
  emotion: t,
5582
5519
  message: e,
5583
5520
  size: n = 200,
5584
5521
  animated: i = !0,
5585
- showBody: s = !0,
5586
- color: o,
5587
- onEmotionChange: r
5522
+ color: s,
5523
+ onEmotionChange: o
5588
5524
  }) {
5589
- const a = iu[t], l = o || a.skinColor || "#FFD700";
5590
- return wr.useEffect(() => {
5591
- r == null || r(t);
5592
- }, [t, r]), /* @__PURE__ */ C(
5525
+ const r = iu[t], a = s || r.skinColor || "#FFD700";
5526
+ return Tr.useEffect(() => {
5527
+ o == null || o(t);
5528
+ }, [t, o]), /* @__PURE__ */ C(
5593
5529
  "div",
5594
5530
  {
5595
5531
  style: {
@@ -5598,17 +5534,16 @@ function Nu({
5598
5534
  width: n
5599
5535
  },
5600
5536
  children: [
5601
- /* @__PURE__ */ p(
5537
+ /* @__PURE__ */ f(
5602
5538
  Ru,
5603
5539
  {
5604
- config: a,
5605
- color: l,
5540
+ config: r,
5541
+ color: a,
5606
5542
  animated: i,
5607
- showBody: s,
5608
5543
  size: n
5609
5544
  }
5610
5545
  ),
5611
- /* @__PURE__ */ p(ee, { children: e && /* @__PURE__ */ p(
5546
+ /* @__PURE__ */ f(ee, { children: e && /* @__PURE__ */ f(
5612
5547
  Lu,
5613
5548
  {
5614
5549
  message: e,
@@ -5620,7 +5555,7 @@ function Nu({
5620
5555
  }
5621
5556
  );
5622
5557
  }
5623
- const Wu = [
5558
+ const Fu = [
5624
5559
  "happy",
5625
5560
  "sad",
5626
5561
  "angry",
@@ -5640,9 +5575,14 @@ const Wu = [
5640
5575
  "silly",
5641
5576
  "determined",
5642
5577
  "shy",
5643
- "anxious"
5578
+ "anxious",
5579
+ "laughing"
5644
5580
  ];
5581
+ function Uu() {
5582
+ return Fu;
5583
+ }
5645
5584
  export {
5646
- Wu as EMOTIONS,
5647
- Nu as EmotionFace
5585
+ Fu as EMOTIONS,
5586
+ Wu as EmotionFace,
5587
+ Uu as getEmotions
5648
5588
  };