@versini/sassysaint 8.107.2 → 8.107.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/dist/chunks/{AboutChangelog.-F_kMw74.js → AboutChangelog.DeRcKN5H.js} +2 -2
  2. package/dist/chunks/{AboutEntry.DR75PxCw.js → AboutEntry.6mTHwkfb.js} +7 -7
  3. package/dist/chunks/{App.3M79T1qj.js → App.DTjbiLAP.js} +1753 -2012
  4. package/dist/chunks/{Bubble.CA6Nm1l0.js → Bubble.ltolxxta.js} +47 -86
  5. package/dist/chunks/{Chart.DwZeH0GA.js → Chart.BzOmOhOW.js} +2 -2
  6. package/dist/chunks/{ChatBubbleAssistant.Bm-gE-ev.js → ChatBubbleAssistant.lGE_8ao1.js} +200 -213
  7. package/dist/chunks/{ChatBubbleUser.lLvteBf3.js → ChatBubbleUser.DC661ePq.js} +28 -41
  8. package/dist/chunks/{ChatHistoryTable.yS0g-92Q.js → ChatHistoryTable.BkRFWpsA.js} +108 -125
  9. package/dist/chunks/{Table.AnN2X7VF.js → DeleteButtonIcon.P0LgJDjE.js} +125 -116
  10. package/dist/chunks/{HistoryEntry.DfNmYlfN.js → HistoryEntry.uUjsDuT0.js} +6 -6
  11. package/dist/chunks/{LoginEntry.BccxHPtX.js → LoginEntry.BGZdTDwf.js} +4 -4
  12. package/dist/chunks/{LogoEntry.CFw0uv25.js → LogoEntry.Bpddd0yA.js} +301 -430
  13. package/dist/chunks/{MemoriesEntry.Cdao1cmo.js → MemoriesEntry.BYQm9cuU.js} +164 -169
  14. package/dist/chunks/{ProfileEntry.b8NaUHNW.js → ProfileEntry.BqcZXSeT.js} +4 -4
  15. package/dist/chunks/{SettingsEntry.CjuYtYSp.js → SettingsEntry.BdC5Vyof.js} +5 -5
  16. package/dist/chunks/{UsageEntry.cp-aSBF9.js → UsageEntry._O8Q6TwS.js} +5 -5
  17. package/dist/chunks/index.Bi0z4EE1.js +90 -0
  18. package/dist/chunks/{index.CgpXJ39e.js → index.BlviGqw0.js} +4 -4
  19. package/dist/chunks/{index.BSdZTOf6.js → index.BxbWxVtd.js} +1 -1
  20. package/dist/chunks/index.C70LcKzU.js +279 -0
  21. package/dist/chunks/{index.CLVeqfU3.js → index.CYcieK1H.js} +34 -47
  22. package/dist/chunks/{index.Dbw9MfpE.js → index.CaofbEIP.js} +3 -19
  23. package/dist/chunks/{index.B6FhZIr6.js → index.D2nN0rC6.js} +1 -1
  24. package/dist/chunks/{index.DhQEm5fx.js → index.DG-VhqKw.js} +1 -1
  25. package/dist/chunks/{index.DYkMD3_1.js → index.DuxTgnco.js} +56 -69
  26. package/dist/chunks/{index.DHLA2Fes.js → index.s8Izh8-Q.js} +2 -2
  27. package/dist/chunks/{useMarkdown.CoVPoXwW.js → useMarkdown.DjEZz9lH.js} +316 -329
  28. package/dist/components/SassySaint/SassySaint.js +1 -1
  29. package/dist/index.js +3 -7
  30. package/dist/style.css +1 -14
  31. package/package.json +5 -5
  32. package/dist/chunks/index.BAdB50GZ.js +0 -103
  33. package/dist/chunks/index.CyKPGk1D.js +0 -305
@@ -1,23 +1,10 @@
1
1
  import { jsx as rs } from "react/jsx-runtime";
2
- import { n as as, useUserPreferences as os, formatTimestamp as vt } from "./index.Dbw9MfpE.js";
3
- import { numberFormatter as ls, pluralize as us, AsyncBubble as cs } from "./App.3M79T1qj.js";
2
+ import { n as as, useUserPreferences as os, formatTimestamp as vt } from "./index.CaofbEIP.js";
3
+ import { numberFormatter as ls, pluralize as us, AsyncBubble as cs } from "./App.DTjbiLAP.js";
4
4
  import Ht from "clsx";
5
5
  import fs, { useState as Ae, useEffect as Zt, useContext as Vt } from "react";
6
- import { useMarkdown as hs } from "./useMarkdown.CoVPoXwW.js";
7
- import { ChatContext as ds, AppContext as ps } from "./LogoEntry.CFw0uv25.js";
8
- /*!
9
- @versini/ui-bubble v10.1.0
10
- © 2025 gizmette.com
11
- */
12
- try {
13
- window.__VERSINI_UI_BUBBLE__ || (window.__VERSINI_UI_BUBBLE__ = {
14
- version: "10.1.0",
15
- buildTime: "12/22/2025 07:40 PM EST",
16
- homepage: "https://www.npmjs.com/package/@versini/ui-bubble",
17
- license: "MIT"
18
- });
19
- } catch {
20
- }
6
+ import { useMarkdown as hs } from "./useMarkdown.DjEZz9lH.js";
7
+ import { ChatContext as ds, AppContext as ps } from "./LogoEntry.Bpddd0yA.js";
21
8
  const Me = {
22
9
  isEmpty: !0
23
10
  };
@@ -33,15 +20,15 @@ function Pe(e, t) {
33
20
  return t ? `${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}` : e;
34
21
  }
35
22
  let de = () => {
36
- }, I = () => {
23
+ }, k = () => {
37
24
  };
38
25
  process.env.NODE_ENV !== "production" && (de = (e, t, n) => {
39
26
  !e && typeof console < "u" && console.warn(Pe(t, n));
40
- }, I = (e, t, n) => {
27
+ }, k = (e, t, n) => {
41
28
  if (!e)
42
29
  throw new Error(Pe(t, n));
43
30
  });
44
- const k = {}, Qt = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);
31
+ const I = {}, Qt = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);
45
32
  function gs(e) {
46
33
  return typeof e == "object" && e !== null;
47
34
  }
@@ -123,11 +110,11 @@ const mn = (e) => Array.isArray(e) && typeof e[0] == "number", wt = {
123
110
  anticipate: cn
124
111
  }, As = (e) => typeof e == "string", xt = (e) => {
125
112
  if (mn(e)) {
126
- I(e.length === 4, "Cubic bezier arrays must contain four numerical values.", "cubic-bezier-length");
113
+ k(e.length === 4, "Cubic bezier arrays must contain four numerical values.", "cubic-bezier-length");
127
114
  const [t, n, s, i] = e;
128
115
  return pe(t, n, s, i);
129
116
  } else if (As(e))
130
- return I(wt[e] !== void 0, `Invalid easing type '${e}'`, "invalid-easing-type"), wt[e];
117
+ return k(wt[e] !== void 0, `Invalid easing type '${e}'`, "invalid-easing-type"), wt[e];
131
118
  return e;
132
119
  }, be = [
133
120
  "setup",
@@ -193,8 +180,8 @@ function gn(e, t) {
193
180
  timestamp: 0,
194
181
  isProcessing: !1
195
182
  }, r = () => n = !0, a = be.reduce((S, v) => (S[v] = Ms(r), S), {}), { setup: o, read: l, resolveKeyframes: c, preUpdate: u, update: f, preRender: h, render: g, postRender: y } = a, b = () => {
196
- const S = k.useManualTiming ? i.timestamp : performance.now();
197
- n = !1, k.useManualTiming || (i.delta = s ? 1e3 / 60 : Math.max(Math.min(S - i.timestamp, Cs), 1)), i.timestamp = S, i.isProcessing = !0, o.process(i), l.process(i), c.process(i), u.process(i), f.process(i), h.process(i), g.process(i), y.process(i), i.isProcessing = !1, n && t && (s = !1, e(b));
183
+ const S = I.useManualTiming ? i.timestamp : performance.now();
184
+ n = !1, I.useManualTiming || (i.delta = s ? 1e3 / 60 : Math.max(Math.min(S - i.timestamp, Cs), 1)), i.timestamp = S, i.isProcessing = !0, o.process(i), l.process(i), c.process(i), u.process(i), f.process(i), h.process(i), g.process(i), y.process(i), i.isProcessing = !1, n && t && (s = !1, e(b));
198
185
  }, V = () => {
199
186
  n = !0, s = !0, i.isProcessing || e(b);
200
187
  };
@@ -212,7 +199,7 @@ function Fs() {
212
199
  ve = void 0;
213
200
  }
214
201
  const R = {
215
- now: () => (ve === void 0 && R.set(Ve.isProcessing || k.useManualTiming ? Ve.timestamp : performance.now()), ve),
202
+ now: () => (ve === void 0 && R.set(Ve.isProcessing || I.useManualTiming ? Ve.timestamp : performance.now()), ve),
216
203
  set: (e) => {
217
204
  ve = e, queueMicrotask(Fs);
218
205
  }
@@ -243,12 +230,12 @@ const Ps = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s
243
230
  }, Os = (e) => Y(0, 255, e), Ce = {
244
231
  ...Z,
245
232
  transform: (e) => Math.round(Os(e))
246
- }, W = {
233
+ }, _ = {
247
234
  test: /* @__PURE__ */ nt("rgb", "red"),
248
235
  parse: /* @__PURE__ */ Tn("red", "green", "blue"),
249
236
  transform: ({ red: e, green: t, blue: n, alpha: s = 1 }) => "rgba(" + Ce.transform(e) + ", " + Ce.transform(t) + ", " + Ce.transform(n) + ", " + oe(le.transform(s)) + ")"
250
237
  };
251
- function Bs(e) {
238
+ function Ns(e) {
252
239
  let t = "", n = "", s = "", i = "";
253
240
  return e.length > 5 ? (t = e.substring(1, 3), n = e.substring(3, 5), s = e.substring(5, 7), i = e.substring(7, 9)) : (t = e.substring(1, 2), n = e.substring(2, 3), s = e.substring(3, 4), i = e.substring(4, 5), t += t, n += n, s += s, i += i), {
254
241
  red: parseInt(t, 16),
@@ -257,15 +244,15 @@ function Bs(e) {
257
244
  alpha: i ? parseInt(i, 16) / 255 : 1
258
245
  };
259
246
  }
260
- const Be = {
247
+ const Ne = {
261
248
  test: /* @__PURE__ */ nt("#"),
262
- parse: Bs,
263
- transform: W.transform
249
+ parse: Ns,
250
+ transform: _.transform
264
251
  }, me = /* @__NO_SIDE_EFFECTS__ */ (e) => ({
265
252
  test: (t) => typeof t == "string" && t.endsWith(e) && t.split(" ").length === 1,
266
253
  parse: parseFloat,
267
254
  transform: (t) => `${t}${e}`
268
- }), $ = /* @__PURE__ */ me("deg"), q = /* @__PURE__ */ me("%"), d = /* @__PURE__ */ me("px"), Is = /* @__PURE__ */ me("vh"), Ns = /* @__PURE__ */ me("vw"), At = {
255
+ }), L = /* @__PURE__ */ me("deg"), q = /* @__PURE__ */ me("%"), d = /* @__PURE__ */ me("px"), ks = /* @__PURE__ */ me("vh"), Bs = /* @__PURE__ */ me("vw"), At = {
269
256
  ...q,
270
257
  parse: (e) => q.parse(e) / 100,
271
258
  transform: (e) => q.transform(e * 100)
@@ -274,18 +261,18 @@ const Be = {
274
261
  parse: /* @__PURE__ */ Tn("hue", "saturation", "lightness"),
275
262
  transform: ({ hue: e, saturation: t, lightness: n, alpha: s = 1 }) => "hsla(" + Math.round(e) + ", " + q.transform(oe(t)) + ", " + q.transform(oe(n)) + ", " + oe(le.transform(s)) + ")"
276
263
  }, F = {
277
- test: (e) => W.test(e) || Be.test(e) || z.test(e),
278
- parse: (e) => W.test(e) ? W.parse(e) : z.test(e) ? z.parse(e) : Be.parse(e),
279
- transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? W.transform(e) : z.transform(e),
264
+ test: (e) => _.test(e) || Ne.test(e) || z.test(e),
265
+ parse: (e) => _.test(e) ? _.parse(e) : z.test(e) ? z.parse(e) : Ne.parse(e),
266
+ transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? _.transform(e) : z.transform(e),
280
267
  getAnimatableNone: (e) => {
281
268
  const t = F.parse(e);
282
269
  return t.alpha = 0, F.transform(t);
283
270
  }
284
- }, ks = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
271
+ }, Is = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
285
272
  function Ks(e) {
286
- return isNaN(e) && typeof e == "string" && (e.match(tt)?.length || 0) + (e.match(ks)?.length || 0) > 0;
273
+ return isNaN(e) && typeof e == "string" && (e.match(tt)?.length || 0) + (e.match(Is)?.length || 0) > 0;
287
274
  }
288
- const vn = "number", Vn = "color", _s = "var", $s = "var(", Mt = "${}", Ls = /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;
275
+ const vn = "number", Vn = "color", $s = "var", Ls = "var(", Mt = "${}", Ws = /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;
289
276
  function ue(e) {
290
277
  const t = e.toString(), n = [], s = {
291
278
  color: [],
@@ -293,7 +280,7 @@ function ue(e) {
293
280
  var: []
294
281
  }, i = [];
295
282
  let r = 0;
296
- const o = t.replace(Ls, (l) => (F.test(l) ? (s.color.push(r), i.push(Vn), n.push(F.parse(l))) : l.startsWith($s) ? (s.var.push(r), i.push(_s), n.push(l)) : (s.number.push(r), i.push(vn), n.push(parseFloat(l))), ++r, Mt)).split(Mt);
283
+ const o = t.replace(Ws, (l) => (F.test(l) ? (s.color.push(r), i.push(Vn), n.push(F.parse(l))) : l.startsWith(Ls) ? (s.var.push(r), i.push($s), n.push(l)) : (s.number.push(r), i.push(vn), n.push(parseFloat(l))), ++r, Mt)).split(Mt);
297
284
  return { values: n, split: o, indexes: s, types: i };
298
285
  }
299
286
  function Sn(e) {
@@ -311,21 +298,21 @@ function wn(e) {
311
298
  return r;
312
299
  };
313
300
  }
314
- const Ws = (e) => typeof e == "number" ? 0 : F.test(e) ? F.getAnimatableNone(e) : e;
315
- function Us(e) {
301
+ const _s = (e) => typeof e == "number" ? 0 : F.test(e) ? F.getAnimatableNone(e) : e;
302
+ function js(e) {
316
303
  const t = Sn(e);
317
- return wn(e)(t.map(Ws));
304
+ return wn(e)(t.map(_s));
318
305
  }
319
- const L = {
306
+ const W = {
320
307
  test: Ks,
321
308
  parse: Sn,
322
309
  createTransformer: wn,
323
- getAnimatableNone: Us
310
+ getAnimatableNone: js
324
311
  };
325
312
  function Fe(e, t, n) {
326
313
  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;
327
314
  }
328
- function js({ hue: e, saturation: t, lightness: n, alpha: s }) {
315
+ function Us({ hue: e, saturation: t, lightness: n, alpha: s }) {
329
316
  e /= 360, t /= 100, n /= 100;
330
317
  let i = 0, r = 0, a = 0;
331
318
  if (!t)
@@ -347,23 +334,23 @@ function Se(e, t) {
347
334
  const J = (e, t, n) => e + (t - e) * n, De = (e, t, n) => {
348
335
  const s = e * e, i = n * (t * t - s) + s;
349
336
  return i < 0 ? 0 : Math.sqrt(i);
350
- }, Gs = [Be, W, z], Ys = (e) => Gs.find((t) => t.test(e));
337
+ }, Gs = [Ne, _, z], Ys = (e) => Gs.find((t) => t.test(e));
351
338
  function Ct(e) {
352
339
  const t = Ys(e);
353
340
  if (de(!!t, `'${e}' is not an animatable color. Use the equivalent color code instead.`, "color-not-animatable"), !t)
354
341
  return !1;
355
342
  let n = t.parse(e);
356
- return t === z && (n = js(n)), n;
343
+ return t === z && (n = Us(n)), n;
357
344
  }
358
345
  const Ft = (e, t) => {
359
346
  const n = Ct(e), s = Ct(t);
360
347
  if (!n || !s)
361
348
  return Se(e, t);
362
349
  const i = { ...n };
363
- return (r) => (i.red = De(n.red, s.red, r), i.green = De(n.green, s.green, r), i.blue = De(n.blue, s.blue, r), i.alpha = J(n.alpha, s.alpha, r), W.transform(i));
364
- }, Ie = /* @__PURE__ */ new Set(["none", "hidden"]);
350
+ return (r) => (i.red = De(n.red, s.red, r), i.green = De(n.green, s.green, r), i.blue = De(n.blue, s.blue, r), i.alpha = J(n.alpha, s.alpha, r), _.transform(i));
351
+ }, ke = /* @__PURE__ */ new Set(["none", "hidden"]);
365
352
  function zs(e, t) {
366
- return Ie.has(e) ? (n) => n <= 0 ? e : t : (n) => n >= 1 ? t : e;
353
+ return ke.has(e) ? (n) => n <= 0 ? e : t : (n) => n >= 1 ? t : e;
367
354
  }
368
355
  function Xs(e, t) {
369
356
  return (n) => J(e, t, n);
@@ -398,8 +385,8 @@ function Hs(e, t) {
398
385
  return n;
399
386
  }
400
387
  const Zs = (e, t) => {
401
- const n = L.createTransformer(t), s = ue(e), i = ue(t);
402
- 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 ? Ie.has(e) && !i.values.length || Ie.has(t) && !s.values.length ? zs(e, t) : He(xn(Hs(s, i), i.values), n) : (de(!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.`, "complex-values-different"), Se(e, t));
388
+ const n = W.createTransformer(t), s = ue(e), i = ue(t);
389
+ 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 ? ke.has(e) && !i.values.length || ke.has(t) && !s.values.length ? zs(e, t) : He(xn(Hs(s, i), i.values), n) : (de(!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.`, "complex-values-different"), Se(e, t));
403
390
  };
404
391
  function An(e, t, n) {
405
392
  return typeof e == "number" && typeof t == "number" && typeof n == "number" ? J(e, t, n) : st(e)(e, t);
@@ -477,10 +464,10 @@ function ei({ duration: e = M.duration, bounce: t = M.bounce, velocity: n = M.ve
477
464
  de(e <= /* @__PURE__ */ O(M.maxDuration), "Spring duration must be 10 seconds or less", "spring-duration-limit");
478
465
  let a = 1 - t;
479
466
  a = Y(M.minDamping, M.maxDamping, a), e = Y(M.minDuration, M.maxDuration, /* @__PURE__ */ P(e)), a < 1 ? (i = (c) => {
480
- const u = c * a, f = u * e, h = u - n, g = Ne(c, a), y = Math.exp(-f);
467
+ const u = c * a, f = u * e, h = u - n, g = Be(c, a), y = Math.exp(-f);
481
468
  return Ee - h / g * y;
482
469
  }, r = (c) => {
483
- const f = c * a * e, h = f * n + n, g = Math.pow(a, 2) * Math.pow(c, 2) * e, y = Math.exp(-f), b = Ne(Math.pow(c, 2), a);
470
+ const f = c * a * e, h = f * n + n, g = Math.pow(a, 2) * Math.pow(c, 2) * e, y = Math.exp(-f), b = Be(Math.pow(c, 2), a);
484
471
  return (-i(c) + Ee > 0 ? -1 : 1) * ((h - g) * y) / b;
485
472
  }) : (i = (c) => {
486
473
  const u = Math.exp(-c * e), f = (c - n) * e + 1;
@@ -512,7 +499,7 @@ function ni(e, t, n) {
512
499
  s = s - e(s) / t(s);
513
500
  return s;
514
501
  }
515
- function Ne(e, t) {
502
+ function Be(e, t) {
516
503
  return e * Math.sqrt(1 - t * t);
517
504
  }
518
505
  const si = ["duration", "bounce"], ii = ["stiffness", "damping", "mass"];
@@ -561,7 +548,7 @@ function ce(e = M.visualDuration, t = M.bounce) {
561
548
  s || (s = A ? M.restSpeed.granular : M.restSpeed.default), i || (i = A ? M.restDelta.granular : M.restDelta.default);
562
549
  let S;
563
550
  if (b < 1) {
564
- const p = Ne(T, b);
551
+ const p = Be(T, b);
565
552
  S = (w) => {
566
553
  const C = Math.exp(-b * T * w);
567
554
  return a - C * ((y + b * T * V) / p * Math.sin(p * w) + V * Math.cos(p * w));
@@ -602,7 +589,7 @@ ce.applyToOptions = (e) => {
602
589
  const t = Cn(e, 100, ce);
603
590
  return e.ease = t.ease, e.duration = /* @__PURE__ */ O(t.duration), e.type = "keyframes", e;
604
591
  };
605
- function ke({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: s = 325, bounceDamping: i = 10, bounceStiffness: r = 500, modifyTarget: a, min: o, max: l, restDelta: c = 0.5, restSpeed: u }) {
592
+ function Ie({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: s = 325, bounceDamping: i = 10, bounceStiffness: r = 500, modifyTarget: a, min: o, max: l, restDelta: c = 0.5, restSpeed: u }) {
606
593
  const f = e[0], h = {
607
594
  done: !1,
608
595
  value: f
@@ -635,7 +622,7 @@ function ke({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: s = 3
635
622
  };
636
623
  }
637
624
  function ai(e, t, n) {
638
- const s = [], i = n || k.mix || An, r = e.length - 1;
625
+ const s = [], i = n || I.mix || An, r = e.length - 1;
639
626
  for (let a = 0; a < r; a++) {
640
627
  let o = i(e[a], e[a + 1]);
641
628
  if (t) {
@@ -648,7 +635,7 @@ function ai(e, t, n) {
648
635
  }
649
636
  function oi(e, t, { clamp: n = !0, ease: s, mixer: i } = {}) {
650
637
  const r = e.length;
651
- if (I(r === t.length, "Both input and output ranges must be the same length", "range-length"), r === 1)
638
+ if (k(r === t.length, "Both input and output ranges must be the same length", "range-length"), r === 1)
652
639
  return () => t[0];
653
640
  if (r === 2 && t[0] === t[1])
654
641
  return () => t[1];
@@ -706,8 +693,8 @@ function rt(e, { repeat: t, repeatType: n = "loop" }, s, i = 1) {
706
693
  return !o || s === void 0 ? r[o] : s;
707
694
  }
708
695
  const fi = {
709
- decay: ke,
710
- inertia: ke,
696
+ decay: Ie,
697
+ inertia: Ie,
711
698
  tween: X,
712
699
  keyframes: X,
713
700
  spring: ce
@@ -753,7 +740,7 @@ class ot extends at {
753
740
  const { type: n = X, repeat: s = 0, repeatDelay: i = 0, repeatType: r, velocity: a = 0 } = t;
754
741
  let { keyframes: o } = t;
755
742
  const l = n || X;
756
- process.env.NODE_ENV !== "production" && l !== X && I(o.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${o}`, "spring-two-frames"), l !== X && typeof o[0] != "number" && (this.mixKeyframes = He(hi, An(o[0], o[1])), o = [0, 100]);
743
+ process.env.NODE_ENV !== "production" && l !== X && k(o.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${o}`, "spring-two-frames"), l !== X && typeof o[0] != "number" && (this.mixKeyframes = He(hi, An(o[0], o[1])), o = [0, 100]);
757
744
  const c = l({ ...t, keyframes: o });
758
745
  r === "mirror" && (this.mirroredGenerator = l({
759
746
  ...t,
@@ -779,14 +766,14 @@ class ot extends at {
779
766
  if (f) {
780
767
  const m = Math.min(this.currentTime, i) / o;
781
768
  let x = Math.floor(m), E = m % 1;
782
- !E && m >= 1 && (E = 1), E === 1 && x--, x = Math.min(x, f + 1), !!(x % 2) && (h === "reverse" ? (E = 1 - E, g && (E -= g / o)) : h === "mirror" && (v = a)), S = Y(0, 1, E) * o;
769
+ !E && m >= 1 && (E = 1), E === 1 && x--, x = Math.min(x, f + 1), x % 2 && (h === "reverse" ? (E = 1 - E, g && (E -= g / o)) : h === "mirror" && (v = a)), S = Y(0, 1, E) * o;
783
770
  }
784
771
  const p = A ? { done: !1, value: u[0] } : v.next(S);
785
772
  r && (p.value = r(p.value));
786
773
  let { done: w } = p;
787
774
  !A && l !== null && (w = this.playbackSpeed >= 0 ? this.currentTime >= i : this.currentTime <= 0);
788
775
  const C = this.holdTime === null && (this.state === "finished" || this.state === "running" && w);
789
- return C && y !== ke && (p.value = rt(u, this.options, V, this.speed)), b && b(p.value), C && this.finish(), p;
776
+ return C && y !== Ie && (p.value = rt(u, this.options, V, this.speed)), b && b(p.value), C && this.finish(), p;
790
777
  }
791
778
  /**
792
779
  * Allows the returned animation to be awaited or promise-chained. Currently
@@ -854,9 +841,9 @@ function di(e) {
854
841
  for (let t = 1; t < e.length; t++)
855
842
  e[t] ?? (e[t] = e[t - 1]);
856
843
  }
857
- const U = (e) => e * 180 / Math.PI, Ke = (e) => {
858
- const t = U(Math.atan2(e[1], e[0]));
859
- return _e(t);
844
+ const j = (e) => e * 180 / Math.PI, Ke = (e) => {
845
+ const t = j(Math.atan2(e[1], e[0]));
846
+ return $e(t);
860
847
  }, pi = {
861
848
  x: 4,
862
849
  y: 5,
@@ -867,10 +854,10 @@ const U = (e) => e * 180 / Math.PI, Ke = (e) => {
867
854
  scale: (e) => (Math.abs(e[0]) + Math.abs(e[3])) / 2,
868
855
  rotate: Ke,
869
856
  rotateZ: Ke,
870
- skewX: (e) => U(Math.atan(e[1])),
871
- skewY: (e) => U(Math.atan(e[2])),
857
+ skewX: (e) => j(Math.atan(e[1])),
858
+ skewY: (e) => j(Math.atan(e[2])),
872
859
  skew: (e) => (Math.abs(e[1]) + Math.abs(e[2])) / 2
873
- }, _e = (e) => (e = e % 360, e < 0 && (e += 360), e), Et = Ke, Rt = (e) => Math.sqrt(e[0] * e[0] + e[1] * e[1]), Pt = (e) => Math.sqrt(e[4] * e[4] + e[5] * e[5]), mi = {
860
+ }, $e = (e) => (e = e % 360, e < 0 && (e += 360), e), Et = Ke, Rt = (e) => Math.sqrt(e[0] * e[0] + e[1] * e[1]), Pt = (e) => Math.sqrt(e[4] * e[4] + e[5] * e[5]), mi = {
874
861
  x: 12,
875
862
  y: 13,
876
863
  z: 14,
@@ -880,20 +867,20 @@ const U = (e) => e * 180 / Math.PI, Ke = (e) => {
880
867
  scaleX: Rt,
881
868
  scaleY: Pt,
882
869
  scale: (e) => (Rt(e) + Pt(e)) / 2,
883
- rotateX: (e) => _e(U(Math.atan2(e[6], e[5]))),
884
- rotateY: (e) => _e(U(Math.atan2(-e[2], e[0]))),
870
+ rotateX: (e) => $e(j(Math.atan2(e[6], e[5]))),
871
+ rotateY: (e) => $e(j(Math.atan2(-e[2], e[0]))),
885
872
  rotateZ: Et,
886
873
  rotate: Et,
887
- skewX: (e) => U(Math.atan(e[4])),
888
- skewY: (e) => U(Math.atan(e[1])),
874
+ skewX: (e) => j(Math.atan(e[4])),
875
+ skewY: (e) => j(Math.atan(e[1])),
889
876
  skew: (e) => (Math.abs(e[1]) + Math.abs(e[4])) / 2
890
877
  };
891
- function $e(e) {
878
+ function Le(e) {
892
879
  return e.includes("scale") ? 1 : 0;
893
880
  }
894
- function Le(e, t) {
881
+ function We(e, t) {
895
882
  if (!e || e === "none")
896
- return $e(t);
883
+ return Le(t);
897
884
  const n = e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);
898
885
  let s, i;
899
886
  if (n)
@@ -903,13 +890,13 @@ function Le(e, t) {
903
890
  s = pi, i = o;
904
891
  }
905
892
  if (!i)
906
- return $e(t);
893
+ return Le(t);
907
894
  const r = s[t], a = i[1].split(",").map(yi);
908
895
  return typeof r == "function" ? r(a) : a[r];
909
896
  }
910
897
  const gi = (e, t) => {
911
898
  const { transform: n = "none" } = getComputedStyle(e);
912
- return Le(n, t);
899
+ return We(n, t);
913
900
  };
914
901
  function yi(e) {
915
902
  return parseFloat(e.trim());
@@ -940,7 +927,7 @@ function vi(e) {
940
927
  s !== void 0 && (t.push([n, s.get()]), s.set(n.startsWith("scale") ? 1 : 0));
941
928
  }), t;
942
929
  }
943
- const j = {
930
+ const U = {
944
931
  // Dimensions
945
932
  width: ({ x: e }, { paddingLeft: t = "0", paddingRight: n = "0" }) => e.max - e.min - parseFloat(t) - parseFloat(n),
946
933
  height: ({ y: e }, { paddingTop: t = "0", paddingBottom: n = "0" }) => e.max - e.min - parseFloat(t) - parseFloat(n),
@@ -949,15 +936,15 @@ const j = {
949
936
  bottom: ({ y: e }, { top: t }) => parseFloat(t) + (e.max - e.min),
950
937
  right: ({ x: e }, { left: t }) => parseFloat(t) + (e.max - e.min),
951
938
  // Transform
952
- x: (e, { transform: t }) => Le(t, "x"),
953
- y: (e, { transform: t }) => Le(t, "y")
939
+ x: (e, { transform: t }) => We(t, "x"),
940
+ y: (e, { transform: t }) => We(t, "y")
954
941
  };
955
- j.translateX = j.x;
956
- j.translateY = j.y;
942
+ U.translateX = U.x;
943
+ U.translateY = U.y;
957
944
  const G = /* @__PURE__ */ new Set();
958
- let We = !1, Ue = !1, je = !1;
945
+ let _e = !1, je = !1, Ue = !1;
959
946
  function Pn() {
960
- if (Ue) {
947
+ if (je) {
961
948
  const e = Array.from(G).filter((s) => s.needsMeasurement), t = new Set(e.map((s) => s.element)), n = /* @__PURE__ */ new Map();
962
949
  t.forEach((s) => {
963
950
  const i = vi(s);
@@ -972,22 +959,22 @@ function Pn() {
972
959
  s.suspendedScrollY !== void 0 && window.scrollTo(0, s.suspendedScrollY);
973
960
  });
974
961
  }
975
- Ue = !1, We = !1, G.forEach((e) => e.complete(je)), G.clear();
962
+ je = !1, _e = !1, G.forEach((e) => e.complete(Ue)), G.clear();
976
963
  }
977
964
  function On() {
978
965
  G.forEach((e) => {
979
- e.readKeyframes(), e.needsMeasurement && (Ue = !0);
966
+ e.readKeyframes(), e.needsMeasurement && (je = !0);
980
967
  });
981
968
  }
982
969
  function Vi() {
983
- je = !0, On(), Pn(), je = !1;
970
+ Ue = !0, On(), Pn(), Ue = !1;
984
971
  }
985
972
  class lt {
986
973
  constructor(t, n, s, i, r, a = !1) {
987
974
  this.state = "pending", this.isAsync = !1, this.needsMeasurement = !1, this.unresolvedKeyframes = [...t], this.onComplete = n, this.name = s, this.motionValue = i, this.element = r, this.isAsync = a;
988
975
  }
989
976
  scheduleResolve() {
990
- this.state = "scheduled", this.isAsync ? (G.add(this), We || (We = !0, K.read(On), K.resolveKeyframes(Pn))) : (this.readKeyframes(), this.complete());
977
+ this.state = "scheduled", this.isAsync ? (G.add(this), _e || (_e = !0, K.read(On), K.resolveKeyframes(Pn))) : (this.readKeyframes(), this.complete());
991
978
  }
992
979
  readKeyframes() {
993
980
  const { unresolvedKeyframes: t, name: n, element: s, motionValue: i } = this;
@@ -1030,14 +1017,14 @@ function Mi(e, t) {
1030
1017
  const n = /* @__PURE__ */ qe(e);
1031
1018
  return () => Ai[t] ?? n();
1032
1019
  }
1033
- const Bn = /* @__PURE__ */ Mi(() => {
1020
+ const Nn = /* @__PURE__ */ Mi(() => {
1034
1021
  try {
1035
1022
  document.createElement("div").animate({ opacity: 0 }, { easing: "linear(0, 1)" });
1036
1023
  } catch {
1037
1024
  return !1;
1038
1025
  }
1039
1026
  return !0;
1040
- }, "linearEasing"), ae = ([e, t, n, s]) => `cubic-bezier(${e}, ${t}, ${n}, ${s})`, Bt = {
1027
+ }, "linearEasing"), ae = ([e, t, n, s]) => `cubic-bezier(${e}, ${t}, ${n}, ${s})`, Nt = {
1041
1028
  linear: "linear",
1042
1029
  ease: "ease",
1043
1030
  easeIn: "ease-in",
@@ -1048,16 +1035,16 @@ const Bn = /* @__PURE__ */ Mi(() => {
1048
1035
  backIn: /* @__PURE__ */ ae([0.31, 0.01, 0.66, -0.59]),
1049
1036
  backOut: /* @__PURE__ */ ae([0.33, 1.53, 0.69, 0.99])
1050
1037
  };
1051
- function In(e, t) {
1038
+ function kn(e, t) {
1052
1039
  if (e)
1053
- return typeof e == "function" ? Bn() ? Mn(e, t) : "ease-out" : mn(e) ? ae(e) : Array.isArray(e) ? e.map((n) => In(n, t) || Bt.easeOut) : Bt[e];
1040
+ return typeof e == "function" ? Nn() ? Mn(e, t) : "ease-out" : mn(e) ? ae(e) : Array.isArray(e) ? e.map((n) => kn(n, t) || Nt.easeOut) : Nt[e];
1054
1041
  }
1055
1042
  function Ci(e, t, n, { delay: s = 0, duration: i = 300, repeat: r = 0, repeatType: a = "loop", ease: o = "easeOut", times: l } = {}, c = void 0) {
1056
1043
  const u = {
1057
1044
  [t]: n
1058
1045
  };
1059
1046
  l && (u.offset = l);
1060
- const f = In(o, i);
1047
+ const f = kn(o, i);
1061
1048
  Array.isArray(f) && (u.easing = f);
1062
1049
  const h = {
1063
1050
  delay: s,
@@ -1073,14 +1060,14 @@ function ut(e) {
1073
1060
  return typeof e == "function" && "applyToOptions" in e;
1074
1061
  }
1075
1062
  function Fi({ type: e, ...t }) {
1076
- return ut(e) && Bn() ? e.applyToOptions(t) : (t.duration ?? (t.duration = 300), t.ease ?? (t.ease = "easeOut"), t);
1063
+ return ut(e) && Nn() ? e.applyToOptions(t) : (t.duration ?? (t.duration = 300), t.ease ?? (t.ease = "easeOut"), t);
1077
1064
  }
1078
1065
  class Di extends at {
1079
1066
  constructor(t) {
1080
1067
  if (super(), this.finishedTime = null, this.isStopped = !1, !t)
1081
1068
  return;
1082
1069
  const { element: n, name: s, keyframes: i, pseudoElement: r, allowFlatten: a = !1, finalKeyframe: o, onComplete: l } = t;
1083
- this.isPseudoElement = !!r, this.allowFlatten = a, this.options = t, I(typeof t.type != "string", `Mini animate() doesn't support "type" as a string.`, "mini-spring");
1070
+ this.isPseudoElement = !!r, this.allowFlatten = a, this.options = t, k(typeof t.type != "string", `Mini animate() doesn't support "type" as a string.`, "mini-spring");
1084
1071
  const c = Fi(t);
1085
1072
  this.animation = Ci(n, s, i, c, r), c.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
1086
1073
  if (this.finishedTime = this.time, !r) {
@@ -1167,18 +1154,18 @@ class Di extends at {
1167
1154
  return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, t && xi() ? (this.animation.timeline = t, H) : n(this);
1168
1155
  }
1169
1156
  }
1170
- const Nn = {
1157
+ const Bn = {
1171
1158
  anticipate: cn,
1172
1159
  backInOut: un,
1173
1160
  circInOut: fn
1174
1161
  };
1175
1162
  function Ei(e) {
1176
- return e in Nn;
1163
+ return e in Bn;
1177
1164
  }
1178
1165
  function Ri(e) {
1179
- typeof e.ease == "string" && Ei(e.ease) && (e.ease = Nn[e.ease]);
1166
+ typeof e.ease == "string" && Ei(e.ease) && (e.ease = Bn[e.ease]);
1180
1167
  }
1181
- const It = 10;
1168
+ const kt = 10;
1182
1169
  class Pi extends Di {
1183
1170
  constructor(t) {
1184
1171
  Ri(t), Rn(t), super(t), t.startTime && (this.startTime = t.startTime), this.options = t;
@@ -1203,11 +1190,11 @@ class Pi extends Di {
1203
1190
  ...a,
1204
1191
  autoplay: !1
1205
1192
  }), l = /* @__PURE__ */ O(this.finishedTime ?? this.time);
1206
- n.setWithVelocity(o.sample(l - It).value, o.sample(l).value, It), o.stop();
1193
+ n.setWithVelocity(o.sample(l - kt).value, o.sample(l).value, kt), o.stop();
1207
1194
  }
1208
1195
  }
1209
- const Nt = (e, t) => t === "zIndex" ? !1 : !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && // It's animatable if we have a string
1210
- (L.test(e) || e === "0") && // And it contains numbers and/or colors
1196
+ const Bt = (e, t) => t === "zIndex" ? !1 : !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && // It's animatable if we have a string
1197
+ (W.test(e) || e === "0") && // And it contains numbers and/or colors
1211
1198
  !e.startsWith("url("));
1212
1199
  function Oi(e) {
1213
1200
  const t = e[0];
@@ -1217,39 +1204,39 @@ function Oi(e) {
1217
1204
  if (e[n] !== t)
1218
1205
  return !0;
1219
1206
  }
1220
- function Bi(e, t, n, s) {
1207
+ function Ni(e, t, n, s) {
1221
1208
  const i = e[0];
1222
1209
  if (i === null)
1223
1210
  return !1;
1224
1211
  if (t === "display" || t === "visibility")
1225
1212
  return !0;
1226
- const r = e[e.length - 1], a = Nt(i, t), o = Nt(r, t);
1213
+ const r = e[e.length - 1], a = Bt(i, t), o = Bt(r, t);
1227
1214
  return de(a === o, `You are trying to animate ${t} from "${i}" to "${r}". "${a ? r : i}" is not an animatable value.`, "value-not-animatable"), !a || !o ? !1 : Oi(e) || (n === "spring" || ut(n)) && s;
1228
1215
  }
1229
1216
  function Ge(e) {
1230
1217
  e.duration = 0, e.type = "keyframes";
1231
1218
  }
1232
- const Ii = /* @__PURE__ */ new Set([
1219
+ const ki = /* @__PURE__ */ new Set([
1233
1220
  "opacity",
1234
1221
  "clipPath",
1235
1222
  "filter",
1236
1223
  "transform"
1237
1224
  // TODO: Could be re-enabled now we have support for linear() easing
1238
1225
  // "background-color"
1239
- ]), Ni = /* @__PURE__ */ qe(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
1240
- function ki(e) {
1226
+ ]), Bi = /* @__PURE__ */ qe(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
1227
+ function Ii(e) {
1241
1228
  const { motionValue: t, name: n, repeatDelay: s, repeatType: i, damping: r, type: a } = e;
1242
1229
  if (!(t?.owner?.current instanceof HTMLElement))
1243
1230
  return !1;
1244
1231
  const { onUpdate: l, transformTemplate: c } = t.owner.getProps();
1245
- return Ni() && n && Ii.has(n) && (n !== "transform" || !c) && /**
1232
+ return Bi() && n && ki.has(n) && (n !== "transform" || !c) && /**
1246
1233
  * If we're outputting values to onUpdate then we can't use WAAPI as there's
1247
1234
  * no way to read the value from WAAPI every frame.
1248
1235
  */
1249
1236
  !l && !s && i !== "mirror" && r !== 0 && a !== "inertia";
1250
1237
  }
1251
1238
  const Ki = 40;
1252
- class _i extends at {
1239
+ class $i extends at {
1253
1240
  constructor({ autoplay: t = !0, delay: n = 0, type: s = "keyframes", repeat: i = 0, repeatDelay: r = 0, repeatType: a = "loop", keyframes: o, name: l, motionValue: c, element: u, ...f }) {
1254
1241
  super(), this.stop = () => {
1255
1242
  this._animation && (this._animation.stop(), this.stopTimeline?.()), this.keyframeResolver?.cancel();
@@ -1271,13 +1258,13 @@ class _i extends at {
1271
1258
  onKeyframesResolved(t, n, s, i) {
1272
1259
  this.keyframeResolver = void 0;
1273
1260
  const { name: r, type: a, velocity: o, delay: l, isHandoff: c, onUpdate: u } = s;
1274
- this.resolvedAt = R.now(), Bi(t, r, a, o) || ((k.instantAnimations || !l) && u?.(rt(t, s, n)), t[0] = t[t.length - 1], Ge(s), s.repeat = 0);
1261
+ this.resolvedAt = R.now(), Ni(t, r, a, o) || ((I.instantAnimations || !l) && u?.(rt(t, s, n)), t[0] = t[t.length - 1], Ge(s), s.repeat = 0);
1275
1262
  const h = {
1276
1263
  startTime: i ? this.resolvedAt ? this.resolvedAt - this.createdAt > Ki ? this.resolvedAt : this.createdAt : this.createdAt : void 0,
1277
1264
  finalKeyframe: n,
1278
1265
  ...s,
1279
1266
  keyframes: t
1280
- }, g = !c && ki(h) ? new Pi({
1267
+ }, g = !c && Ii(h) ? new Pi({
1281
1268
  ...h,
1282
1269
  element: h.motionValue.owner.current
1283
1270
  }) : new ot(h);
@@ -1333,7 +1320,7 @@ class _i extends at {
1333
1320
  this._animation && this.animation.cancel(), this.keyframeResolver?.cancel();
1334
1321
  }
1335
1322
  }
1336
- class $i {
1323
+ class Li {
1337
1324
  constructor(t) {
1338
1325
  this.stop = () => this.runAll("stop"), this.animations = t.filter(Boolean);
1339
1326
  }
@@ -1377,10 +1364,10 @@ class $i {
1377
1364
  return this.getAll("startTime");
1378
1365
  }
1379
1366
  get duration() {
1380
- return kt(this.animations, "duration");
1367
+ return It(this.animations, "duration");
1381
1368
  }
1382
1369
  get iterationDuration() {
1383
- return kt(this.animations, "iterationDuration");
1370
+ return It(this.animations, "iterationDuration");
1384
1371
  }
1385
1372
  runAll(t) {
1386
1373
  this.animations.forEach((n) => n[t]());
@@ -1398,7 +1385,7 @@ class $i {
1398
1385
  this.runAll("complete");
1399
1386
  }
1400
1387
  }
1401
- function kt(e, t) {
1388
+ function It(e, t) {
1402
1389
  let n = 0;
1403
1390
  for (let s = 0; s < e.length; s++) {
1404
1391
  const i = e[s][t];
@@ -1406,27 +1393,27 @@ function kt(e, t) {
1406
1393
  }
1407
1394
  return n;
1408
1395
  }
1409
- class Li extends $i {
1396
+ class Wi extends Li {
1410
1397
  then(t, n) {
1411
1398
  return this.finished.finally(t).then(() => {
1412
1399
  });
1413
1400
  }
1414
1401
  }
1415
- const Wi = (
1402
+ const _i = (
1416
1403
  // eslint-disable-next-line redos-detector/no-unsafe-regex -- false positive, as it can match a lot of words
1417
1404
  /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u
1418
1405
  );
1419
- function Ui(e) {
1420
- const t = Wi.exec(e);
1406
+ function ji(e) {
1407
+ const t = _i.exec(e);
1421
1408
  if (!t)
1422
1409
  return [,];
1423
1410
  const [, n, s, i] = t;
1424
1411
  return [`--${n ?? s}`, i];
1425
1412
  }
1426
- const ji = 4;
1427
- function kn(e, t, n = 1) {
1428
- I(n <= ji, `Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`, "max-css-var-depth");
1429
- const [s, i] = Ui(e);
1413
+ const Ui = 4;
1414
+ function In(e, t, n = 1) {
1415
+ k(n <= Ui, `Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`, "max-css-var-depth");
1416
+ const [s, i] = ji(e);
1430
1417
  if (!s)
1431
1418
  return;
1432
1419
  const r = window.getComputedStyle(t).getPropertyValue(s);
@@ -1434,12 +1421,12 @@ function kn(e, t, n = 1) {
1434
1421
  const a = r.trim();
1435
1422
  return Qt(a) ? parseFloat(a) : a;
1436
1423
  }
1437
- return et(i) ? kn(i, t, n + 1) : i;
1424
+ return et(i) ? In(i, t, n + 1) : i;
1438
1425
  }
1439
1426
  function Kn(e, t) {
1440
1427
  return e?.[t] ?? e?.default ?? e;
1441
1428
  }
1442
- const _n = /* @__PURE__ */ new Set([
1429
+ const $n = /* @__PURE__ */ new Set([
1443
1430
  "width",
1444
1431
  "height",
1445
1432
  "top",
@@ -1450,7 +1437,7 @@ const _n = /* @__PURE__ */ new Set([
1450
1437
  ]), Gi = {
1451
1438
  test: (e) => e === "auto",
1452
1439
  parse: (e) => e
1453
- }, $n = (e) => (t) => t.test(e), Ln = [Z, d, q, $, Ns, Is, Gi], Kt = (e) => Ln.find($n(e));
1440
+ }, Ln = (e) => (t) => t.test(e), Wn = [Z, d, q, L, Bs, ks, Gi], Kt = (e) => Wn.find(Ln(e));
1454
1441
  function Yi(e) {
1455
1442
  return typeof e == "number" ? e === 0 : e !== null ? e === "none" || e === "0" || en(e) : !0;
1456
1443
  }
@@ -1467,26 +1454,26 @@ function Xi(e) {
1467
1454
  return s !== n && (r *= 100), t + "(" + r + i + ")";
1468
1455
  }
1469
1456
  const qi = /\b([a-z-]*)\(.*?\)/gu, Ye = {
1470
- ...L,
1457
+ ...W,
1471
1458
  getAnimatableNone: (e) => {
1472
1459
  const t = e.match(qi);
1473
1460
  return t ? t.map(Xi).join(" ") : e;
1474
1461
  }
1475
- }, _t = {
1462
+ }, $t = {
1476
1463
  ...Z,
1477
1464
  transform: Math.round
1478
1465
  }, Hi = {
1479
- rotate: $,
1480
- rotateX: $,
1481
- rotateY: $,
1482
- rotateZ: $,
1466
+ rotate: L,
1467
+ rotateX: L,
1468
+ rotateY: L,
1469
+ rotateZ: L,
1483
1470
  scale: Te,
1484
1471
  scaleX: Te,
1485
1472
  scaleY: Te,
1486
1473
  scaleZ: Te,
1487
- skew: $,
1488
- skewX: $,
1489
- skewY: $,
1474
+ skew: L,
1475
+ skewX: L,
1476
+ skewY: L,
1490
1477
  distance: d,
1491
1478
  translateX: d,
1492
1479
  translateY: d,
@@ -1537,11 +1524,11 @@ const qi = /\b([a-z-]*)\(.*?\)/gu, Ye = {
1537
1524
  backgroundPositionX: d,
1538
1525
  backgroundPositionY: d,
1539
1526
  ...Hi,
1540
- zIndex: _t,
1527
+ zIndex: $t,
1541
1528
  // SVG
1542
1529
  fillOpacity: le,
1543
1530
  strokeOpacity: le,
1544
- numOctaves: _t
1531
+ numOctaves: $t
1545
1532
  }, Zi = {
1546
1533
  ...ct,
1547
1534
  // Color props
@@ -1558,10 +1545,10 @@ const qi = /\b([a-z-]*)\(.*?\)/gu, Ye = {
1558
1545
  borderLeftColor: F,
1559
1546
  filter: Ye,
1560
1547
  WebkitFilter: Ye
1561
- }, Wn = (e) => Zi[e];
1562
- function Un(e, t) {
1563
- let n = Wn(e);
1564
- return n !== Ye && (n = L), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
1548
+ }, _n = (e) => Zi[e];
1549
+ function jn(e, t) {
1550
+ let n = _n(e);
1551
+ return n !== Ye && (n = W), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
1565
1552
  }
1566
1553
  const Ji = /* @__PURE__ */ new Set(["auto", "none", "0"]);
1567
1554
  function Qi(e, t, n) {
@@ -1572,7 +1559,7 @@ function Qi(e, t, n) {
1572
1559
  }
1573
1560
  if (i && n)
1574
1561
  for (const r of t)
1575
- e[r] = Un(n, i);
1562
+ e[r] = jn(n, i);
1576
1563
  }
1577
1564
  class er extends lt {
1578
1565
  constructor(t, n, s, i, r) {
@@ -1586,11 +1573,11 @@ class er extends lt {
1586
1573
  for (let l = 0; l < t.length; l++) {
1587
1574
  let c = t[l];
1588
1575
  if (typeof c == "string" && (c = c.trim(), et(c))) {
1589
- const u = kn(c, n.current);
1576
+ const u = In(c, n.current);
1590
1577
  u !== void 0 && (t[l] = u), l === t.length - 1 && (this.finalKeyframe = c);
1591
1578
  }
1592
1579
  }
1593
- if (this.resolveNoneKeyframes(), !_n.has(s) || t.length !== 2)
1580
+ if (this.resolveNoneKeyframes(), !$n.has(s) || t.length !== 2)
1594
1581
  return;
1595
1582
  const [i, r] = t, a = Kt(i), o = Kt(r);
1596
1583
  if (a !== o)
@@ -1599,7 +1586,7 @@ class er extends lt {
1599
1586
  const c = t[l];
1600
1587
  typeof c == "string" && (t[l] = parseFloat(c));
1601
1588
  }
1602
- else j[s] && (this.needsMeasurement = !0);
1589
+ else U[s] && (this.needsMeasurement = !0);
1603
1590
  }
1604
1591
  resolveNoneKeyframes() {
1605
1592
  const { unresolvedKeyframes: t, name: n } = this, s = [];
@@ -1611,7 +1598,7 @@ class er extends lt {
1611
1598
  const { element: t, unresolvedKeyframes: n, name: s } = this;
1612
1599
  if (!t || !t.current)
1613
1600
  return;
1614
- s === "height" && (this.suspendedScrollY = window.pageYOffset), this.measuredOrigin = j[s](t.measureViewportBox(), window.getComputedStyle(t.current)), n[0] = this.measuredOrigin;
1601
+ s === "height" && (this.suspendedScrollY = window.pageYOffset), this.measuredOrigin = U[s](t.measureViewportBox(), window.getComputedStyle(t.current)), n[0] = this.measuredOrigin;
1615
1602
  const i = n[n.length - 1];
1616
1603
  i !== void 0 && t.getValue(s, i).jump(i, !1);
1617
1604
  }
@@ -1622,7 +1609,7 @@ class er extends lt {
1622
1609
  const i = t.getValue(n);
1623
1610
  i && i.jump(this.measuredOrigin, !1);
1624
1611
  const r = s.length - 1, a = s[r];
1625
- s[r] = j[n](t.measureViewportBox(), window.getComputedStyle(t.current)), a !== null && this.finalKeyframe === void 0 && (this.finalKeyframe = a), this.removedTransforms?.length && this.removedTransforms.forEach(([o, l]) => {
1612
+ s[r] = U[n](t.measureViewportBox(), window.getComputedStyle(t.current)), a !== null && this.finalKeyframe === void 0 && (this.finalKeyframe = a), this.removedTransforms?.length && this.removedTransforms.forEach(([o, l]) => {
1626
1613
  t.getValue(o).set(l);
1627
1614
  }), this.resolveNoneKeyframes();
1628
1615
  }
@@ -1637,7 +1624,7 @@ function tr(e, t, n) {
1637
1624
  }
1638
1625
  return Array.from(e);
1639
1626
  }
1640
- const jn = (e, t) => t && typeof e == "number" ? t.transform(e) : e, $t = 30, nr = (e) => !isNaN(parseFloat(e));
1627
+ const Un = (e, t) => t && typeof e == "number" ? t.transform(e) : e, Lt = 30, nr = (e) => !isNaN(parseFloat(e));
1641
1628
  class sr {
1642
1629
  /**
1643
1630
  * @param init - The initiating value
@@ -1783,9 +1770,9 @@ class sr {
1783
1770
  */
1784
1771
  getVelocity() {
1785
1772
  const t = R.now();
1786
- if (!this.canTrackVelocity || this.prevFrameValue === void 0 || t - this.updatedAt > $t)
1773
+ if (!this.canTrackVelocity || this.prevFrameValue === void 0 || t - this.updatedAt > Lt)
1787
1774
  return 0;
1788
- const n = Math.min(this.updatedAt - this.prevUpdatedAt, $t);
1775
+ const n = Math.min(this.updatedAt - this.prevUpdatedAt, Lt);
1789
1776
  return nn(parseFloat(this.current) - parseFloat(this.prevFrameValue), n);
1790
1777
  }
1791
1778
  /**
@@ -1847,7 +1834,7 @@ function Gn(e) {
1847
1834
  function rr(e) {
1848
1835
  return Gn(e) && e.tagName === "svg";
1849
1836
  }
1850
- const D = (e) => !!(e && e.getVelocity), ar = [...Ln, F, L], or = (e) => ar.find($n(e));
1837
+ const D = (e) => !!(e && e.getVelocity), ar = [...Wn, F, W], or = (e) => ar.find(Ln(e));
1851
1838
  function ft(e) {
1852
1839
  return typeof e == "object" && !Array.isArray(e);
1853
1840
  }
@@ -1857,7 +1844,7 @@ function Yn(e, t, n, s) {
1857
1844
  function lr(e, t, n) {
1858
1845
  return e * (t + 1);
1859
1846
  }
1860
- function Lt(e, t, n, s) {
1847
+ function Wt(e, t, n, s) {
1861
1848
  return typeof t == "number" ? t : t.startsWith("-") || t.startsWith("+") ? Math.max(0, e + parseFloat(t)) : t === "<" ? n : t.startsWith("<") ? Math.max(0, n + parseFloat(t.slice(1))) : s.get(t) ?? e;
1862
1849
  }
1863
1850
  function ur(e, t, n) {
@@ -1892,15 +1879,15 @@ function mr(e, { defaultTransition: t = {}, ...n } = {}, s, i) {
1892
1879
  c.set(y, f);
1893
1880
  continue;
1894
1881
  } else if (!Array.isArray(y)) {
1895
- c.set(y.name, Lt(f, y.at, u, c));
1882
+ c.set(y.name, Wt(f, y.at, u, c));
1896
1883
  continue;
1897
1884
  }
1898
1885
  let [b, V, T = {}] = y;
1899
- T.at !== void 0 && (f = Lt(f, T.at, u, c));
1886
+ T.at !== void 0 && (f = Wt(f, T.at, u, c));
1900
1887
  let A = 0;
1901
1888
  const S = (v, p, w, C = 0, m = 0) => {
1902
- const x = gr(v), { delay: E = 0, times: B = En(x), type: xe = "keyframes", repeat: te, repeatType: Aa, repeatDelay: Ma = 0, ...is } = p;
1903
- let { ease: _ = t.ease || "easeOut", duration: N } = p;
1889
+ const x = gr(v), { delay: E = 0, times: N = En(x), type: xe = "keyframes", repeat: te, repeatType: Aa, repeatDelay: Ma = 0, ...is } = p;
1890
+ let { ease: $ = t.ease || "easeOut", duration: B } = p;
1904
1891
  const pt = typeof E == "function" ? E(C, m) : E, mt = x.length, gt = ut(xe) ? xe : i?.[xe || "keyframes"];
1905
1892
  if (mt <= 2 && gt) {
1906
1893
  let ne = 100;
@@ -1909,39 +1896,39 @@ function mr(e, { defaultTransition: t = {}, ...n } = {}, s, i) {
1909
1896
  ne = Math.abs(se);
1910
1897
  }
1911
1898
  const ge = { ...is };
1912
- N !== void 0 && (ge.duration = /* @__PURE__ */ O(N));
1899
+ B !== void 0 && (ge.duration = /* @__PURE__ */ O(B));
1913
1900
  const ye = Cn(ge, ne, gt);
1914
- _ = ye.ease, N = ye.duration;
1901
+ $ = ye.ease, B = ye.duration;
1915
1902
  }
1916
- N ?? (N = r);
1903
+ B ?? (B = r);
1917
1904
  const yt = f + pt;
1918
- B.length === 1 && B[0] === 0 && (B[1] = 1);
1919
- const bt = B.length - x.length;
1920
- if (bt > 0 && Dn(B, bt), x.length === 1 && x.unshift(null), te) {
1921
- I(te < pr, "Repeat count too high, must be less than 20", "repeat-count-high"), N = lr(N, te);
1922
- const ne = [...x], ge = [...B];
1923
- _ = Array.isArray(_) ? [..._] : [_];
1924
- const ye = [..._];
1905
+ N.length === 1 && N[0] === 0 && (N[1] = 1);
1906
+ const bt = N.length - x.length;
1907
+ if (bt > 0 && Dn(N, bt), x.length === 1 && x.unshift(null), te) {
1908
+ k(te < pr, "Repeat count too high, must be less than 20", "repeat-count-high"), B = lr(B, te);
1909
+ const ne = [...x], ge = [...N];
1910
+ $ = Array.isArray($) ? [...$] : [$];
1911
+ const ye = [...$];
1925
1912
  for (let se = 0; se < te; se++) {
1926
1913
  x.push(...ne);
1927
1914
  for (let ie = 0; ie < ne.length; ie++)
1928
- B.push(ge[ie] + (se + 1)), _.push(ie === 0 ? "linear" : pn(ye, ie - 1));
1915
+ N.push(ge[ie] + (se + 1)), $.push(ie === 0 ? "linear" : pn(ye, ie - 1));
1929
1916
  }
1930
- fr(B, te);
1917
+ fr(N, te);
1931
1918
  }
1932
- const Tt = yt + N;
1933
- cr(w, x, _, B, yt, Tt), A = Math.max(pt + N, A), h = Math.max(Tt, h);
1919
+ const Tt = yt + B;
1920
+ cr(w, x, $, N, yt, Tt), A = Math.max(pt + B, A), h = Math.max(Tt, h);
1934
1921
  };
1935
1922
  if (D(b)) {
1936
- const v = Wt(b, o);
1937
- S(V, T, Ut("default", v));
1923
+ const v = _t(b, o);
1924
+ S(V, T, jt("default", v));
1938
1925
  } else {
1939
1926
  const v = Yn(b, V, s, l), p = v.length;
1940
1927
  for (let w = 0; w < p; w++) {
1941
1928
  V = V, T = T;
1942
- const C = v[w], m = Wt(C, o);
1929
+ const C = v[w], m = _t(C, o);
1943
1930
  for (const x in V)
1944
- S(V[x], yr(T, x), Ut(x, m), w, p);
1931
+ S(V[x], yr(T, x), jt(x, m), w, p);
1945
1932
  }
1946
1933
  }
1947
1934
  u = f, f += A;
@@ -1970,10 +1957,10 @@ function mr(e, { defaultTransition: t = {}, ...n } = {}, s, i) {
1970
1957
  }
1971
1958
  }), a;
1972
1959
  }
1973
- function Wt(e, t) {
1960
+ function _t(e, t) {
1974
1961
  return !t.has(e) && t.set(e, {}), t.get(e);
1975
1962
  }
1976
- function Ut(e, t) {
1963
+ function jt(e, t) {
1977
1964
  return t[e] || (t[e] = []), t[e];
1978
1965
  }
1979
1966
  function gr(e) {
@@ -1986,7 +1973,7 @@ function yr(e, t) {
1986
1973
  } : { ...e };
1987
1974
  }
1988
1975
  const br = (e) => typeof e == "number", Tr = (e) => e.every(br), he = /* @__PURE__ */ new WeakMap(), vr = (e) => Array.isArray(e);
1989
- function jt(e) {
1976
+ function Ut(e) {
1990
1977
  const t = [{}, {}];
1991
1978
  return e?.values.forEach((n, s) => {
1992
1979
  t[0][s] = n.get(), t[1][s] = n.getVelocity();
@@ -1994,11 +1981,11 @@ function jt(e) {
1994
1981
  }
1995
1982
  function zn(e, t, n, s) {
1996
1983
  if (typeof t == "function") {
1997
- const [i, r] = jt(s);
1984
+ const [i, r] = Ut(s);
1998
1985
  t = t(n !== void 0 ? n : e.custom, i, r);
1999
1986
  }
2000
1987
  if (typeof t == "string" && (t = e.variants && e.variants[t]), typeof t == "function") {
2001
- const [i, r] = jt(s);
1988
+ const [i, r] = Ut(s);
2002
1989
  t = t(n !== void 0 ? n : e.custom, i, r);
2003
1990
  }
2004
1991
  return t;
@@ -2029,8 +2016,8 @@ function Mr(e, t) {
2029
2016
  const n = e.getValue("willChange");
2030
2017
  if (Ar(n))
2031
2018
  return n.add(t);
2032
- if (!n && k.WillChange) {
2033
- const s = new k.WillChange("auto");
2019
+ if (!n && I.WillChange) {
2020
+ const s = new I.WillChange("auto");
2034
2021
  e.addValue("willChange", s), s.add(t);
2035
2022
  }
2036
2023
  }
@@ -2053,15 +2040,15 @@ const Pr = {
2053
2040
  stiffness: 550,
2054
2041
  damping: e === 0 ? 2 * Math.sqrt(550) : 30,
2055
2042
  restSpeed: 10
2056
- }), Br = {
2043
+ }), Nr = {
2057
2044
  type: "keyframes",
2058
2045
  duration: 0.8
2059
- }, Ir = {
2046
+ }, kr = {
2060
2047
  type: "keyframes",
2061
2048
  ease: [0.25, 0.1, 0.35, 1],
2062
2049
  duration: 0.3
2063
- }, Nr = (e, { keyframes: t }) => t.length > 2 ? Br : ee.has(e) ? e.startsWith("scale") ? Or(t[1]) : Pr : Ir;
2064
- function kr({ when: e, delay: t, delayChildren: n, staggerChildren: s, staggerDirection: i, repeat: r, repeatType: a, repeatDelay: o, from: l, elapsed: c, ...u }) {
2050
+ }, Br = (e, { keyframes: t }) => t.length > 2 ? Nr : ee.has(e) ? e.startsWith("scale") ? Or(t[1]) : Pr : kr;
2051
+ function Ir({ when: e, delay: t, delayChildren: n, staggerChildren: s, staggerDirection: i, repeat: r, repeatType: a, repeatDelay: o, from: l, elapsed: c, ...u }) {
2065
2052
  return !!Object.keys(u).length;
2066
2053
  }
2067
2054
  const Xn = (e, t, n, s = {}, i, r) => (a) => {
@@ -2084,9 +2071,9 @@ const Xn = (e, t, n, s = {}, i, r) => (a) => {
2084
2071
  motionValue: t,
2085
2072
  element: r ? void 0 : i
2086
2073
  };
2087
- kr(o) || Object.assign(u, Nr(e, u)), u.duration && (u.duration = /* @__PURE__ */ O(u.duration)), u.repeatDelay && (u.repeatDelay = /* @__PURE__ */ O(u.repeatDelay)), u.from !== void 0 && (u.keyframes[0] = u.from);
2074
+ Ir(o) || Object.assign(u, Br(e, u)), u.duration && (u.duration = /* @__PURE__ */ O(u.duration)), u.repeatDelay && (u.repeatDelay = /* @__PURE__ */ O(u.repeatDelay)), u.from !== void 0 && (u.keyframes[0] = u.from);
2088
2075
  let f = !1;
2089
- if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (Ge(u), u.delay === 0 && (f = !0)), (k.instantAnimations || k.skipAnimations) && (f = !0, Ge(u), u.delay = 0), u.allowFlatten = !o.type && !o.ease, f && !r && t.get() !== void 0) {
2076
+ if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (Ge(u), u.delay === 0 && (f = !0)), (I.instantAnimations || I.skipAnimations) && (f = !0, Ge(u), u.delay = 0), u.allowFlatten = !o.type && !o.ease, f && !r && t.get() !== void 0) {
2090
2077
  const h = Rr(u.keyframes, o);
2091
2078
  if (h !== void 0) {
2092
2079
  K.update(() => {
@@ -2095,13 +2082,13 @@ const Xn = (e, t, n, s = {}, i, r) => (a) => {
2095
2082
  return;
2096
2083
  }
2097
2084
  }
2098
- return o.isSync ? new ot(u) : new _i(u);
2085
+ return o.isSync ? new ot(u) : new $i(u);
2099
2086
  };
2100
2087
  function Kr({ protectedKeys: e, needsAnimating: t }, n) {
2101
2088
  const s = e.hasOwnProperty(n) && t[n] !== !0;
2102
2089
  return t[n] = !1, s;
2103
2090
  }
2104
- function _r(e, t, { delay: n = 0, transitionOverride: s, type: i } = {}) {
2091
+ function $r(e, t, { delay: n = 0, transitionOverride: s, type: i } = {}) {
2105
2092
  let { transition: r = e.getDefaultTransition(), transitionEnd: a, ...o } = t;
2106
2093
  s && (r = s);
2107
2094
  const l = [], c = i && e.animationState && e.animationState.getState()[i];
@@ -2123,7 +2110,7 @@ function _r(e, t, { delay: n = 0, transitionOverride: s, type: i } = {}) {
2123
2110
  A !== null && (g.startTime = A, b = !0);
2124
2111
  }
2125
2112
  }
2126
- Mr(e, u), f.start(Xn(u, f, h, e.shouldReduceMotion && _n.has(u) ? { type: !1 } : g, e, b));
2113
+ Mr(e, u), f.start(Xn(u, f, h, e.shouldReduceMotion && $n.has(u) ? { type: !1 } : g, e, b));
2127
2114
  const V = f.animation;
2128
2115
  V && l.push(V);
2129
2116
  }
@@ -2133,13 +2120,13 @@ function _r(e, t, { delay: n = 0, transitionOverride: s, type: i } = {}) {
2133
2120
  });
2134
2121
  }), l;
2135
2122
  }
2136
- function $r({ top: e, left: t, right: n, bottom: s }) {
2123
+ function Lr({ top: e, left: t, right: n, bottom: s }) {
2137
2124
  return {
2138
2125
  x: { min: t, max: n },
2139
2126
  y: { min: e, max: s }
2140
2127
  };
2141
2128
  }
2142
- function Lr(e, t) {
2129
+ function Wr(e, t) {
2143
2130
  if (!t)
2144
2131
  return e;
2145
2132
  const n = t({ x: e.left, y: e.top }), s = t({ x: e.right, y: e.bottom });
@@ -2150,8 +2137,8 @@ function Lr(e, t) {
2150
2137
  right: s.x
2151
2138
  };
2152
2139
  }
2153
- function Wr(e, t) {
2154
- return $r(Lr(e.getBoundingClientRect(), t));
2140
+ function _r(e, t) {
2141
+ return Lr(Wr(e.getBoundingClientRect(), t));
2155
2142
  }
2156
2143
  const Gt = {
2157
2144
  animation: [
@@ -2180,9 +2167,9 @@ for (const e in Gt)
2180
2167
  const Yt = () => ({ min: 0, max: 0 }), dt = () => ({
2181
2168
  x: Yt(),
2182
2169
  y: Yt()
2183
- }), Ur = typeof window < "u", Xe = { current: null }, qn = { current: !1 };
2184
- function jr() {
2185
- if (qn.current = !0, !!Ur)
2170
+ }), jr = typeof window < "u", Xe = { current: null }, qn = { current: !1 };
2171
+ function Ur() {
2172
+ if (qn.current = !0, !!jr)
2186
2173
  if (window.matchMedia) {
2187
2174
  const e = window.matchMedia("(prefers-reduced-motion)"), t = () => Xe.current = e.matches;
2188
2175
  e.addEventListener("change", t), t();
@@ -2266,7 +2253,7 @@ class Zn {
2266
2253
  }
2267
2254
  }
2268
2255
  mount(t) {
2269
- this.current = t, he.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)), qn.current || jr(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : Xe.current, process.env.NODE_ENV !== "production" && sn(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected.", "reduced-motion-disabled"), this.parent?.addChild(this), this.update(this.props, this.presenceContext);
2256
+ this.current = t, he.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)), qn.current || Ur(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : Xe.current, process.env.NODE_ENV !== "production" && sn(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected.", "reduced-motion-disabled"), this.parent?.addChild(this), this.update(this.props, this.presenceContext);
2270
2257
  }
2271
2258
  unmount() {
2272
2259
  this.projection && this.projection.unmount(), Oe(this.notifyUpdate), Oe(this.render), this.valueSubscriptions.forEach((t) => t()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent?.removeChild(this);
@@ -2406,7 +2393,7 @@ class Zn {
2406
2393
  */
2407
2394
  readValue(t, n) {
2408
2395
  let s = this.latestValues[t] !== void 0 || !this.current ? this.latestValues[t] : this.getBaseTargetFromProps(this.props, t) ?? this.readValueFromInstance(this.current, t, this.options);
2409
- return s != null && (typeof s == "string" && (Qt(s) || en(s)) ? s = parseFloat(s) : !or(s) && L.test(n) && (s = Un(t, n)), this.setBaseTarget(t, D(s) ? s.get() : s)), D(s) ? s.get() : s;
2396
+ return s != null && (typeof s == "string" && (Qt(s) || en(s)) ? s = parseFloat(s) : !or(s) && W.test(n) && (s = jn(t, n)), this.setBaseTarget(t, D(s) ? s.get() : s)), D(s) ? s.get() : s;
2410
2397
  }
2411
2398
  /**
2412
2399
  * Set the base target to later animate back to. This is currently
@@ -2476,7 +2463,7 @@ function Qr(e, t, n) {
2476
2463
  continue;
2477
2464
  let l = !0;
2478
2465
  if (typeof o == "number" ? l = o === (a.startsWith("scale") ? 1 : 0) : l = parseFloat(o) === 0, !l || n) {
2479
- const c = jn(o, ct[a]);
2466
+ const c = Un(o, ct[a]);
2480
2467
  if (!l) {
2481
2468
  i = !1;
2482
2469
  const u = Zr[a] || a;
@@ -2499,7 +2486,7 @@ function Qn(e, t, n) {
2499
2486
  i[l] = c;
2500
2487
  continue;
2501
2488
  } else {
2502
- const u = jn(c, ct[l]);
2489
+ const u = Un(c, ct[l]);
2503
2490
  l.startsWith("origin") ? (o = !0, r[l] = u) : s[l] = u;
2504
2491
  }
2505
2492
  }
@@ -2534,10 +2521,10 @@ const re = {
2534
2521
  }
2535
2522
  }, ea = {
2536
2523
  correct: (e, { treeScale: t, projectionDelta: n }) => {
2537
- const s = e, i = L.parse(e);
2524
+ const s = e, i = W.parse(e);
2538
2525
  if (i.length > 5)
2539
2526
  return s;
2540
- const r = L.createTransformer(e), a = typeof i[0] != "number" ? 1 : 0, o = n.x.scale * t.x, l = n.y.scale * t.y;
2527
+ const r = W.createTransformer(e), a = typeof i[0] != "number" ? 1 : 0, o = n.x.scale * t.x, l = n.y.scale * t.y;
2541
2528
  i[0 + a] /= o, i[1 + a] /= l;
2542
2529
  const c = J(o, l, 0.5);
2543
2530
  return typeof i[2 + a] == "number" && (i[2 + a] /= c), typeof i[3 + a] == "number" && (i[3 + a] /= c), r(i);
@@ -2576,14 +2563,14 @@ class ia extends Jn {
2576
2563
  }
2577
2564
  readValueFromInstance(t, n) {
2578
2565
  if (ee.has(n))
2579
- return this.projection?.isProjecting ? $e(n) : gi(t, n);
2566
+ return this.projection?.isProjecting ? Le(n) : gi(t, n);
2580
2567
  {
2581
2568
  const s = sa(t), i = (bn(n) ? s.getPropertyValue(n) : s[n]) || 0;
2582
2569
  return typeof i == "string" ? i.trim() : i;
2583
2570
  }
2584
2571
  }
2585
2572
  measureInstanceViewportBox(t, { transformPagePoint: n }) {
2586
- return Wr(t, n);
2573
+ return _r(t, n);
2587
2574
  }
2588
2575
  build(t, n, s) {
2589
2576
  Qn(t, n, s.transformTemplate);
@@ -2704,7 +2691,7 @@ class pa extends Jn {
2704
2691
  }
2705
2692
  readValueFromInstance(t, n) {
2706
2693
  if (ee.has(n)) {
2707
- const s = Wn(n);
2694
+ const s = _n(n);
2708
2695
  return s && s.default || 0;
2709
2696
  }
2710
2697
  return n = ns.has(n) ? n : ht(n), t.getAttribute(n);
@@ -2765,14 +2752,14 @@ function ss(e, t, n, s) {
2765
2752
  i.push(ya(e, ft(t) && t.default || t, n && (n.default || n)));
2766
2753
  else {
2767
2754
  const r = Yn(e, t, s), a = r.length;
2768
- I(!!a, "No valid elements provided.", "no-valid-elements");
2755
+ k(!!a, "No valid elements provided.", "no-valid-elements");
2769
2756
  for (let o = 0; o < a; o++) {
2770
2757
  const l = r[o];
2771
- I(l !== null, "You're trying to perform an animation on null. Ensure that selectors are correctly finding elements and refs are correctly hydrated.", "animate-null");
2758
+ k(l !== null, "You're trying to perform an animation on null. Ensure that selectors are correctly finding elements and refs are correctly hydrated.", "animate-null");
2772
2759
  const c = l instanceof Element ? ma : ga;
2773
2760
  he.has(l) || c(l);
2774
2761
  const u = he.get(l), f = { ...n };
2775
- "delay" in f && typeof f.delay == "function" && (f.delay = f.delay(o, a)), i.push(..._r(u, { ...t, transition: f }, {}));
2762
+ "delay" in f && typeof f.delay == "function" && (f.delay = f.delay(o, a)), i.push(...$r(u, { ...t, transition: f }, {}));
2776
2763
  }
2777
2764
  }
2778
2765
  return i;
@@ -2795,7 +2782,7 @@ function Va(e) {
2795
2782
  const { onComplete: l, ...c } = i || {};
2796
2783
  typeof l == "function" && (a = l), r = ss(n, s, c, e);
2797
2784
  }
2798
- const o = new Li(r);
2785
+ const o = new Wi(r);
2799
2786
  return a && o.finished.then(a), o;
2800
2787
  }
2801
2788
  return t;
@@ -2828,7 +2815,7 @@ function wa(e, t = !0) {
2828
2815
  const qt = {
2829
2816
  MODEL: "Model",
2830
2817
  USAGE: "Session usage"
2831
- }, xa = Ht("max-w-[99cqw]", "mt-3"), Ba = fs.memo(
2818
+ }, xa = Ht("max-w-[99cqw]", "mt-3"), Na = fs.memo(
2832
2819
  ({
2833
2820
  content: e,
2834
2821
  annotations: t,
@@ -2882,5 +2869,5 @@ const qt = {
2882
2869
  }
2883
2870
  );
2884
2871
  export {
2885
- Ba as default
2872
+ Na as default
2886
2873
  };