@versini/sassysaint 8.115.1 → 8.117.0

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 (83) hide show
  1. package/dist/chunks/{AboutChangelog.h8uZDiRa.js → AboutChangelog.Bn_KfUZc.js} +2 -2
  2. package/dist/chunks/{AboutEntry.Dm-VAlos.js → AboutEntry.GETrm77g.js} +7 -7
  3. package/dist/chunks/{App.kZ7zFOCZ.js → App.BzCbkgv8.js} +2478 -2344
  4. package/dist/chunks/BubbleActions.CbQ9BHWl.js +174 -0
  5. package/dist/chunks/{ButtonIconDelete.CMTWH4G_.js → ButtonIconDelete.B5IpSZrD.js} +112 -100
  6. package/dist/chunks/{Chart.DjDJmuv4.js → Chart.Czhhtzdx.js} +2 -2
  7. package/dist/chunks/{ChatBubbleAssistant.Ct1kuBfY.js → ChatBubbleAssistant.DESMaXGq.js} +682 -663
  8. package/dist/chunks/{ChatBubbleUser.DWjAo_57.js → ChatBubbleUser.B_Sniupu.js} +39 -33
  9. package/dist/chunks/{ChatHistoryTable.CPGJDP3u.js → ChatHistoryTable.LPF05gFQ.js} +136 -110
  10. package/dist/chunks/{HistoryEntry.vorKgBkE.js → HistoryEntry.CbyRX9rD.js} +148 -138
  11. package/dist/chunks/{LoginEntry.DMTx7dAX.js → LoginEntry.Bf8vuUIL.js} +4 -4
  12. package/dist/chunks/{LogoEntry.QCG_Oqpu.js → LogoEntry.yn5_B-fa.js} +193 -176
  13. package/dist/chunks/{MemoriesEntry.NKPDzd6E.js → MemoriesEntry.Bljvi6W9.js} +5 -5
  14. package/dist/chunks/{ProfileEntry.D4nsWyk-.js → ProfileEntry.DitROf-m.js} +4 -4
  15. package/dist/chunks/SettingsEntry.DUMuo462.js +446 -0
  16. package/dist/chunks/{UsageEntry.3E-1gpeB.js → UsageEntry.CFMWYodz.js} +5 -5
  17. package/dist/chunks/{_baseUniq.C9w-5slz.js → _baseUniq.D6y3dh-S.js} +1 -1
  18. package/dist/chunks/{arc.Bhkeu8Ne.js → arc.CitIvzp8.js} +1 -1
  19. package/dist/chunks/{architecture-U656AL7Q.BQ0dLOXF.js → architecture-U656AL7Q.IEP3vDFZ.js} +1 -1
  20. package/dist/chunks/{architectureDiagram-VXUJARFQ.PMB1snGu.js → architectureDiagram-VXUJARFQ.BhDBUrYi.js} +4 -4
  21. package/dist/chunks/{blockDiagram-VD42YOAC.cc6SS-Ut.js → blockDiagram-VD42YOAC.BFTM8GAn.js} +5 -5
  22. package/dist/chunks/{browser.-b7MIoe3.js → browser.DK_o_vwl.js} +1 -1
  23. package/dist/chunks/{c4Diagram-YG6GDRKO.CkH4zhHB.js → c4Diagram-YG6GDRKO.B1vLaqvZ.js} +2 -2
  24. package/dist/chunks/{channel.BZF7A0lk.js → channel.PCRnhDz7.js} +1 -1
  25. package/dist/chunks/{chunk-4BX2VUAB.Cp0rcpX_.js → chunk-4BX2VUAB.C6rU7w6S.js} +1 -1
  26. package/dist/chunks/{chunk-55IACEB6.vT382srr.js → chunk-55IACEB6.BpJZHN1o.js} +1 -1
  27. package/dist/chunks/{chunk-B4BG7PRW.D1UQqJBC.js → chunk-B4BG7PRW.F4PL3cMr.js} +4 -4
  28. package/dist/chunks/{chunk-DI55MBZ5.BGj41J2L.js → chunk-DI55MBZ5.BF8GKejt.js} +3 -3
  29. package/dist/chunks/{chunk-FMBD7UC4.DbK41wsg.js → chunk-FMBD7UC4.B1OYwU0R.js} +1 -1
  30. package/dist/chunks/{chunk-QN33PNHL.CKXkOIKW.js → chunk-QN33PNHL.BD5brt5t.js} +1 -1
  31. package/dist/chunks/{chunk-QZHKN3VN.BqCNNrna.js → chunk-QZHKN3VN.D5WYYv36.js} +1 -1
  32. package/dist/chunks/{chunk-TZMSLE5B.GMeazl5c.js → chunk-TZMSLE5B.C-MZAsEe.js} +1 -1
  33. package/dist/chunks/{classDiagram-2ON5EDUG.D9HdU8dF.js → classDiagram-2ON5EDUG.C5vYqJ4o.js} +2 -2
  34. package/dist/chunks/{classDiagram-v2-WZHVMYZB.D9HdU8dF.js → classDiagram-v2-WZHVMYZB.C5vYqJ4o.js} +2 -2
  35. package/dist/chunks/{clone.BvA919-S.js → clone.REJ_Pnlj.js} +1 -1
  36. package/dist/chunks/{cose-bilkent-S5V4N54A.Cgu7-tFO.js → cose-bilkent-S5V4N54A.DXqAwGZ0.js} +2 -2
  37. package/dist/chunks/{dagre-6UL2VRFP.BknfeRUw.js → dagre-6UL2VRFP.CoGy5JIV.js} +5 -5
  38. package/dist/chunks/{diagram-PSM6KHXK.C_6k_6p5.js → diagram-PSM6KHXK.D9vCcidT.js} +4 -4
  39. package/dist/chunks/{diagram-QEK2KX5R.DJy76ACj.js → diagram-QEK2KX5R.6csREdR0.js} +3 -3
  40. package/dist/chunks/{diagram-S2PKOQOG.CfC-dKeX.js → diagram-S2PKOQOG.YPf4qVIj.js} +3 -3
  41. package/dist/chunks/{erDiagram-Q2GNP2WA.Dq-M4wvK.js → erDiagram-Q2GNP2WA.CGV8xXOX.js} +4 -4
  42. package/dist/chunks/{flowDiagram-NV44I4VS.CWEOg9vI.js → flowDiagram-NV44I4VS.eQKIimm7.js} +5 -5
  43. package/dist/chunks/{ganttDiagram-JELNMOA3.B7lZEF5Y.js → ganttDiagram-JELNMOA3.BazHhqv4.js} +2 -2
  44. package/dist/chunks/{gitGraph-F6HP7TQM.BpsZ10rD.js → gitGraph-F6HP7TQM.Cb-fQXsF.js} +1 -1
  45. package/dist/chunks/{gitGraphDiagram-NY62KEGX.BEr46lqB.js → gitGraphDiagram-NY62KEGX.Dvqk5LX3.js} +4 -4
  46. package/dist/chunks/{graph.duUTsfAo.js → graph.CgbRK_Pv.js} +2 -2
  47. package/dist/chunks/{index.C7L6Qy0p.js → index.BEg4_Utt.js} +1 -1
  48. package/dist/chunks/{index.CQB6p5rc.js → index.BMJ9q_CF.js} +3 -3
  49. package/dist/chunks/{index.BEImwMfM.js → index.BkL02aS1.js} +3 -3
  50. package/dist/chunks/{index.BocHTBAX.js → index.BkPtehbe.js} +1 -1
  51. package/dist/chunks/{index.CZzUkzEP.js → index.Bzms2RRF.js} +1 -1
  52. package/dist/chunks/{index.1lyseSZD.js → index.CX_kqcF4.js} +1 -1
  53. package/dist/chunks/{index.Duppkty5.js → index.DzZEadJV.js} +1 -1
  54. package/dist/chunks/{index.D5GVHxAW.js → index.OAZ5W9VH.js} +5 -2
  55. package/dist/chunks/{index.C8LhNQL3.js → index.hL-ju5aR.js} +1 -1
  56. package/dist/chunks/{info-NVLQJR56.rpoj5hAd.js → info-NVLQJR56.53x0eQWW.js} +1 -1
  57. package/dist/chunks/{infoDiagram-WHAUD3N6.1qgGbBxV.js → infoDiagram-WHAUD3N6.BlrSZ-3e.js} +2 -2
  58. package/dist/chunks/{journeyDiagram-XKPGCS4Q.BrzX8o5P.js → journeyDiagram-XKPGCS4Q.CJqy8tkA.js} +4 -4
  59. package/dist/chunks/{kanban-definition-3W4ZIXB7.CuQZY6Sy.js → kanban-definition-3W4ZIXB7.CRKN0s6T.js} +2 -2
  60. package/dist/chunks/{layout.Ch_nETSB.js → layout.B3vPW_pZ.js} +4 -4
  61. package/dist/chunks/{mermaid-parser.core.Bqz_hY8U.js → mermaid-parser.core.ChRIRaJW.js} +10 -10
  62. package/dist/chunks/{min.B-XpJzFe.js → min.CnRvIY0R.js} +2 -2
  63. package/dist/chunks/{mindmap-definition-VGOIOE7T.DM10BWV6.js → mindmap-definition-VGOIOE7T.D_ABLFPV.js} +4 -4
  64. package/dist/chunks/{packet-BFZMPI3H.DxbiL8bi.js → packet-BFZMPI3H.CxGfStzw.js} +1 -1
  65. package/dist/chunks/{pie-7BOR55EZ.DlLaqQ8p.js → pie-7BOR55EZ.DNt3EJ4F.js} +1 -1
  66. package/dist/chunks/{pieDiagram-ADFJNKIX.PKqZ_L7B.js → pieDiagram-ADFJNKIX.DIQfkreO.js} +4 -4
  67. package/dist/chunks/{quadrantDiagram-AYHSOK5B.4Y46BKFd.js → quadrantDiagram-AYHSOK5B.CiwquW9n.js} +1 -1
  68. package/dist/chunks/{radar-NHE76QYJ.Bu4ymprr.js → radar-NHE76QYJ.BjalOWfU.js} +1 -1
  69. package/dist/chunks/{rehype-mermaid.BhbxArqE.js → rehype-mermaid.DiVW4LDn.js} +33 -33
  70. package/dist/chunks/{requirementDiagram-UZGBJVZJ.DdL8pOOk.js → requirementDiagram-UZGBJVZJ.zxucHbPP.js} +3 -3
  71. package/dist/chunks/{sankeyDiagram-TZEHDZUN.DHQdQ9qa.js → sankeyDiagram-TZEHDZUN.DD-PyOn-.js} +1 -1
  72. package/dist/chunks/{sequenceDiagram-WL72ISMW.CUg9rPpB.js → sequenceDiagram-WL72ISMW.DR9lsGWA.js} +3 -3
  73. package/dist/chunks/{stateDiagram-FKZM4ZOC.CRkwSlLY.js → stateDiagram-FKZM4ZOC.CsNkAXRg.js} +4 -4
  74. package/dist/chunks/{stateDiagram-v2-4FDKWEC3.BLmOYFdB.js → stateDiagram-v2-4FDKWEC3.8NFC4sNp.js} +2 -2
  75. package/dist/chunks/{timeline-definition-IT6M3QCI.DouwaOHK.js → timeline-definition-IT6M3QCI.KVweqk-o.js} +2 -2
  76. package/dist/chunks/{treemap-KMMF4GRG.DSo16U9j.js → treemap-KMMF4GRG.VQYaLH7h.js} +1 -1
  77. package/dist/chunks/{useMarkdown.dHVgqkuN.js → useMarkdown.BwBe50mc.js} +8 -8
  78. package/dist/chunks/{xychartDiagram-PRI3JC2R.CQx23hyH.js → xychartDiagram-PRI3JC2R.DLJNhHkJ.js} +1 -1
  79. package/dist/components/SassySaint/SassySaint.js +1 -1
  80. package/dist/index.js +3 -3
  81. package/package.json +4 -4
  82. package/dist/chunks/Bubble.CaOJA6px.js +0 -144
  83. package/dist/chunks/SettingsEntry.ktYNthLp.js +0 -456
@@ -1,17 +1,18 @@
1
- import { jsx as rs } from "react/jsx-runtime";
2
- import { n as as, useUserPreferences as os, formatTimestamp as vt } from "./index.D5GVHxAW.js";
3
- import { numberFormatter as ls, pluralize as us, AsyncBubble as cs } from "./App.kZ7zFOCZ.js";
4
- import Ht from "clsx";
5
- import fs, { useState as Ae, useEffect as Zt, useContext as Vt } from "react";
6
- import { useMarkdown as hs } from "./useMarkdown.dHVgqkuN.js";
7
- import { ChatContext as ds, AppContext as ps } from "./LogoEntry.QCG_Oqpu.js";
1
+ import { jsx as vt } from "react/jsx-runtime";
2
+ import { n as as, useUserPreferences as os, formatTimestamp as Vt } from "./index.OAZ5W9VH.js";
3
+ import { numberFormatter as ls, pluralize as us, Bubble as cs } from "./App.BzCbkgv8.js";
4
+ import Zt from "clsx";
5
+ import fs, { useState as Ae, useEffect as Jt, useContext as St } from "react";
6
+ import { useMarkdown as hs } from "./useMarkdown.BwBe50mc.js";
7
+ import { ChatContext as ds, AppContext as ps } from "./LogoEntry.yn5_B-fa.js";
8
+ import { BubbleActions as ms } from "./BubbleActions.CbQ9BHWl.js";
8
9
  const Me = {
9
10
  isEmpty: !0
10
11
  };
11
- function ms(e, t) {
12
+ function gs(e, t) {
12
13
  e.indexOf(t) === -1 && e.push(t);
13
14
  }
14
- function Jt(e, t) {
15
+ function Qt(e, t) {
15
16
  const n = e.indexOf(t);
16
17
  n > -1 && e.splice(n, 1);
17
18
  }
@@ -28,26 +29,26 @@ process.env.NODE_ENV !== "production" && (de = (e, t, n) => {
28
29
  if (!e)
29
30
  throw new Error(Pe(t, n));
30
31
  });
31
- const I = {}, Qt = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);
32
- function gs(e) {
32
+ const I = {}, en = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);
33
+ function ys(e) {
33
34
  return typeof e == "object" && e !== null;
34
35
  }
35
- const en = (e) => /^0[^.\s]+$/u.test(e);
36
+ const tn = (e) => /^0[^.\s]+$/u.test(e);
36
37
  // @__NO_SIDE_EFFECTS__
37
38
  function qe(e) {
38
39
  let t;
39
40
  return () => (t === void 0 && (t = e()), t);
40
41
  }
41
- const H = /* @__NO_SIDE_EFFECTS__ */ (e) => e, ys = (e, t) => (n) => t(e(n)), He = (...e) => e.reduce(ys), Ze = /* @__NO_SIDE_EFFECTS__ */ (e, t, n) => {
42
+ const H = /* @__NO_SIDE_EFFECTS__ */ (e) => e, bs = (e, t) => (n) => t(e(n)), He = (...e) => e.reduce(bs), Ze = /* @__NO_SIDE_EFFECTS__ */ (e, t, n) => {
42
43
  const s = t - e;
43
44
  return s === 0 ? 1 : (n - e) / s;
44
45
  };
45
- class tn {
46
+ class nn {
46
47
  constructor() {
47
48
  this.subscriptions = [];
48
49
  }
49
50
  add(t) {
50
- return ms(this.subscriptions, t), () => Jt(this.subscriptions, t);
51
+ return gs(this.subscriptions, t), () => Qt(this.subscriptions, t);
51
52
  }
52
53
  notify(t, n, s) {
53
54
  const i = this.subscriptions.length;
@@ -68,53 +69,53 @@ class tn {
68
69
  }
69
70
  }
70
71
  const O = /* @__NO_SIDE_EFFECTS__ */ (e) => e * 1e3, P = /* @__NO_SIDE_EFFECTS__ */ (e) => e / 1e3;
71
- function nn(e, t) {
72
+ function sn(e, t) {
72
73
  return t ? e * (1e3 / t) : 0;
73
74
  }
74
- const St = /* @__PURE__ */ new Set();
75
- function sn(e, t, n) {
76
- e || St.has(t) || (console.warn(Pe(t, n)), St.add(t));
75
+ const wt = /* @__PURE__ */ new Set();
76
+ function rn(e, t, n) {
77
+ e || wt.has(t) || (console.warn(Pe(t, n)), wt.add(t));
77
78
  }
78
- const bs = (e, t, n) => {
79
+ const Ts = (e, t, n) => {
79
80
  const s = t - e;
80
81
  return ((n - e) % s + s) % s + e;
81
- }, rn = (e, t, n) => (((1 - 3 * n + 3 * t) * e + (3 * n - 6 * t)) * e + 3 * t) * e, Ts = 1e-7, vs = 12;
82
- function Vs(e, t, n, s, i) {
82
+ }, an = (e, t, n) => (((1 - 3 * n + 3 * t) * e + (3 * n - 6 * t)) * e + 3 * t) * e, vs = 1e-7, Vs = 12;
83
+ function Ss(e, t, n, s, i) {
83
84
  let r, a, o = 0;
84
85
  do
85
- a = t + (n - t) / 2, r = rn(a, s, i) - e, r > 0 ? n = a : t = a;
86
- while (Math.abs(r) > Ts && ++o < vs);
86
+ a = t + (n - t) / 2, r = an(a, s, i) - e, r > 0 ? n = a : t = a;
87
+ while (Math.abs(r) > vs && ++o < Vs);
87
88
  return a;
88
89
  }
89
90
  function pe(e, t, n, s) {
90
91
  if (e === t && n === s)
91
92
  return H;
92
- const i = (r) => Vs(r, 0, 1, e, n);
93
- return (r) => r === 0 || r === 1 ? r : rn(i(r), t, s);
93
+ const i = (r) => Ss(r, 0, 1, e, n);
94
+ return (r) => r === 0 || r === 1 ? r : an(i(r), t, s);
94
95
  }
95
- const an = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, on = (e) => (t) => 1 - e(1 - t), ln = /* @__PURE__ */ pe(0.33, 1.53, 0.69, 0.99), Je = /* @__PURE__ */ on(ln), un = /* @__PURE__ */ an(Je), cn = (e) => (e *= 2) < 1 ? 0.5 * Je(e) : 0.5 * (2 - Math.pow(2, -10 * (e - 1))), Qe = (e) => 1 - Math.sin(Math.acos(e)), Ss = on(Qe), fn = an(Qe), ws = /* @__PURE__ */ pe(0.42, 0, 1, 1), xs = /* @__PURE__ */ pe(0, 0, 0.58, 1), hn = /* @__PURE__ */ pe(0.42, 0, 0.58, 1), dn = (e) => Array.isArray(e) && typeof e[0] != "number";
96
- function pn(e, t) {
97
- return dn(e) ? e[bs(0, e.length, t)] : e;
96
+ const on = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, ln = (e) => (t) => 1 - e(1 - t), un = /* @__PURE__ */ pe(0.33, 1.53, 0.69, 0.99), Je = /* @__PURE__ */ ln(un), cn = /* @__PURE__ */ on(Je), fn = (e) => (e *= 2) < 1 ? 0.5 * Je(e) : 0.5 * (2 - Math.pow(2, -10 * (e - 1))), Qe = (e) => 1 - Math.sin(Math.acos(e)), ws = ln(Qe), hn = on(Qe), xs = /* @__PURE__ */ pe(0.42, 0, 1, 1), As = /* @__PURE__ */ pe(0, 0, 0.58, 1), dn = /* @__PURE__ */ pe(0.42, 0, 0.58, 1), pn = (e) => Array.isArray(e) && typeof e[0] != "number";
97
+ function mn(e, t) {
98
+ return pn(e) ? e[Ts(0, e.length, t)] : e;
98
99
  }
99
- const mn = (e) => Array.isArray(e) && typeof e[0] == "number", wt = {
100
+ const gn = (e) => Array.isArray(e) && typeof e[0] == "number", xt = {
100
101
  linear: H,
101
- easeIn: ws,
102
- easeInOut: hn,
103
- easeOut: xs,
102
+ easeIn: xs,
103
+ easeInOut: dn,
104
+ easeOut: As,
104
105
  circIn: Qe,
105
- circInOut: fn,
106
- circOut: Ss,
106
+ circInOut: hn,
107
+ circOut: ws,
107
108
  backIn: Je,
108
- backInOut: un,
109
- backOut: ln,
110
- anticipate: cn
111
- }, As = (e) => typeof e == "string", xt = (e) => {
112
- if (mn(e)) {
109
+ backInOut: cn,
110
+ backOut: un,
111
+ anticipate: fn
112
+ }, Ms = (e) => typeof e == "string", At = (e) => {
113
+ if (gn(e)) {
113
114
  k(e.length === 4, "Cubic bezier arrays must contain four numerical values.", "cubic-bezier-length");
114
115
  const [t, n, s, i] = e;
115
116
  return pe(t, n, s, i);
116
- } else if (As(e))
117
- return k(wt[e] !== void 0, `Invalid easing type '${e}'`, "invalid-easing-type"), wt[e];
117
+ } else if (Ms(e))
118
+ return k(xt[e] !== void 0, `Invalid easing type '${e}'`, "invalid-easing-type"), xt[e];
118
119
  return e;
119
120
  }, be = [
120
121
  "setup",
@@ -134,7 +135,7 @@ const mn = (e) => Array.isArray(e) && typeof e[0] == "number", wt = {
134
135
  "postRender"
135
136
  // Compute
136
137
  ];
137
- function Ms(e, t) {
138
+ function Cs(e, t) {
138
139
  let n = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set(), i = !1, r = !1;
139
140
  const a = /* @__PURE__ */ new WeakSet();
140
141
  let o = {
@@ -150,8 +151,8 @@ function Ms(e, t) {
150
151
  * Schedule a process to run on the next frame.
151
152
  */
152
153
  schedule: (u, f = !1, h = !1) => {
153
- const y = h && i ? n : s;
154
- return f && a.add(u), y.has(u) || y.add(u), u;
154
+ const m = h && i ? n : s;
155
+ return f && a.add(u), m.has(u) || m.add(u), u;
155
156
  },
156
157
  /**
157
158
  * Cancel the provided callback from running on the next frame.
@@ -172,28 +173,28 @@ function Ms(e, t) {
172
173
  };
173
174
  return c;
174
175
  }
175
- const Cs = 40;
176
- function gn(e, t) {
176
+ const Ds = 40;
177
+ function yn(e, t) {
177
178
  let n = !1, s = !0;
178
179
  const i = {
179
180
  delta: 0,
180
181
  timestamp: 0,
181
182
  isProcessing: !1
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 = () => {
183
+ }, r = () => n = !0, a = be.reduce((S, w) => (S[w] = Cs(r), S), {}), { setup: o, read: l, resolveKeyframes: c, preUpdate: u, update: f, preRender: h, render: g, postRender: m } = a, T = () => {
183
184
  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));
185
+ n = !1, I.useManualTiming || (i.delta = s ? 1e3 / 60 : Math.max(Math.min(S - i.timestamp, Ds), 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), m.process(i), i.isProcessing = !1, n && t && (s = !1, e(T));
185
186
  }, V = () => {
186
- n = !0, s = !0, i.isProcessing || e(b);
187
+ n = !0, s = !0, i.isProcessing || e(T);
187
188
  };
188
- return { schedule: be.reduce((S, v) => {
189
- const p = a[v];
190
- return S[v] = (w, C = !1, m = !1) => (n || V(), p.schedule(w, C, m)), S;
189
+ return { schedule: be.reduce((S, w) => {
190
+ const d = a[w];
191
+ return S[w] = (y, M = !1, b = !1) => (n || V(), d.schedule(y, M, b)), S;
191
192
  }, {}), cancel: (S) => {
192
- for (let v = 0; v < be.length; v++)
193
- a[be[v]].cancel(S);
193
+ for (let w = 0; w < be.length; w++)
194
+ a[be[w]].cancel(S);
194
195
  }, state: i, steps: a };
195
196
  }
196
- const { schedule: K, cancel: Oe, state: Ve } = /* @__PURE__ */ gn(typeof requestAnimationFrame < "u" ? requestAnimationFrame : H, !0);
197
+ const { schedule: K, cancel: Oe, state: Ve } = /* @__PURE__ */ yn(typeof requestAnimationFrame < "u" ? requestAnimationFrame : H, !0);
197
198
  let ve;
198
199
  function Fs() {
199
200
  ve = void 0;
@@ -203,7 +204,7 @@ const R = {
203
204
  set: (e) => {
204
205
  ve = e, queueMicrotask(Fs);
205
206
  }
206
- }, yn = (e) => (t) => typeof t == "string" && t.startsWith(e), bn = /* @__PURE__ */ yn("--"), Ds = /* @__PURE__ */ yn("var(--"), et = (e) => Ds(e) ? Es.test(e.split("/*")[0].trim()) : !1, Es = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu, Z = {
207
+ }, bn = (e) => (t) => typeof t == "string" && t.startsWith(e), Tn = /* @__PURE__ */ bn("--"), Es = /* @__PURE__ */ bn("var(--"), et = (e) => Es(e) ? Rs.test(e.split("/*")[0].trim()) : !1, Rs = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu, Z = {
207
208
  test: (e) => typeof e == "number",
208
209
  parse: parseFloat,
209
210
  transform: (e) => e
@@ -214,10 +215,10 @@ const R = {
214
215
  ...Z,
215
216
  default: 1
216
217
  }, oe = (e) => Math.round(e * 1e5) / 1e5, tt = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
217
- function Rs(e) {
218
+ function Ps(e) {
218
219
  return e == null;
219
220
  }
220
- const Ps = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, nt = (e, t) => (n) => !!(typeof n == "string" && Ps.test(n) && n.startsWith(e) || t && !Rs(n) && Object.prototype.hasOwnProperty.call(n, t)), Tn = (e, t, n) => (s) => {
221
+ const Os = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, nt = (e, t) => (n) => !!(typeof n == "string" && Os.test(n) && n.startsWith(e) || t && !Ps(n) && Object.prototype.hasOwnProperty.call(n, t)), vn = (e, t, n) => (s) => {
221
222
  if (typeof s != "string")
222
223
  return s;
223
224
  const [i, r, a, o] = s.match(tt);
@@ -227,15 +228,15 @@ const Ps = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s
227
228
  [n]: parseFloat(a),
228
229
  alpha: o !== void 0 ? parseFloat(o) : 1
229
230
  };
230
- }, Os = (e) => Y(0, 255, e), Ce = {
231
+ }, Ns = (e) => Y(0, 255, e), Ce = {
231
232
  ...Z,
232
- transform: (e) => Math.round(Os(e))
233
+ transform: (e) => Math.round(Ns(e))
233
234
  }, _ = {
234
235
  test: /* @__PURE__ */ nt("rgb", "red"),
235
- parse: /* @__PURE__ */ Tn("red", "green", "blue"),
236
+ parse: /* @__PURE__ */ vn("red", "green", "blue"),
236
237
  transform: ({ red: e, green: t, blue: n, alpha: s = 1 }) => "rgba(" + Ce.transform(e) + ", " + Ce.transform(t) + ", " + Ce.transform(n) + ", " + oe(le.transform(s)) + ")"
237
238
  };
238
- function Ns(e) {
239
+ function ks(e) {
239
240
  let t = "", n = "", s = "", i = "";
240
241
  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), {
241
242
  red: parseInt(t, 16),
@@ -246,33 +247,33 @@ function Ns(e) {
246
247
  }
247
248
  const Ne = {
248
249
  test: /* @__PURE__ */ nt("#"),
249
- parse: Ns,
250
+ parse: ks,
250
251
  transform: _.transform
251
252
  }, me = /* @__NO_SIDE_EFFECTS__ */ (e) => ({
252
253
  test: (t) => typeof t == "string" && t.endsWith(e) && t.split(" ").length === 1,
253
254
  parse: parseFloat,
254
255
  transform: (t) => `${t}${e}`
255
- }), L = /* @__PURE__ */ me("deg"), q = /* @__PURE__ */ me("%"), d = /* @__PURE__ */ me("px"), ks = /* @__PURE__ */ me("vh"), Bs = /* @__PURE__ */ me("vw"), At = {
256
+ }), L = /* @__PURE__ */ me("deg"), q = /* @__PURE__ */ me("%"), p = /* @__PURE__ */ me("px"), Bs = /* @__PURE__ */ me("vh"), Is = /* @__PURE__ */ me("vw"), Mt = {
256
257
  ...q,
257
258
  parse: (e) => q.parse(e) / 100,
258
259
  transform: (e) => q.transform(e * 100)
259
260
  }, z = {
260
261
  test: /* @__PURE__ */ nt("hsl", "hue"),
261
- parse: /* @__PURE__ */ Tn("hue", "saturation", "lightness"),
262
+ parse: /* @__PURE__ */ vn("hue", "saturation", "lightness"),
262
263
  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)) + ")"
263
- }, F = {
264
+ }, D = {
264
265
  test: (e) => _.test(e) || Ne.test(e) || z.test(e),
265
266
  parse: (e) => _.test(e) ? _.parse(e) : z.test(e) ? z.parse(e) : Ne.parse(e),
266
267
  transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? _.transform(e) : z.transform(e),
267
268
  getAnimatableNone: (e) => {
268
- const t = F.parse(e);
269
- return t.alpha = 0, F.transform(t);
269
+ const t = D.parse(e);
270
+ return t.alpha = 0, D.transform(t);
270
271
  }
271
- }, Is = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
272
- function Ks(e) {
273
- return isNaN(e) && typeof e == "string" && (e.match(tt)?.length || 0) + (e.match(Is)?.length || 0) > 0;
272
+ }, Ks = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
273
+ function $s(e) {
274
+ return isNaN(e) && typeof e == "string" && (e.match(tt)?.length || 0) + (e.match(Ks)?.length || 0) > 0;
274
275
  }
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;
276
+ const Vn = "number", Sn = "color", Ls = "var", Ws = "var(", Ct = "${}", _s = /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;
276
277
  function ue(e) {
277
278
  const t = e.toString(), n = [], s = {
278
279
  color: [],
@@ -280,46 +281,46 @@ function ue(e) {
280
281
  var: []
281
282
  }, i = [];
282
283
  let r = 0;
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);
284
+ const o = t.replace(_s, (l) => (D.test(l) ? (s.color.push(r), i.push(Sn), n.push(D.parse(l))) : l.startsWith(Ws) ? (s.var.push(r), i.push(Ls), n.push(l)) : (s.number.push(r), i.push(Vn), n.push(parseFloat(l))), ++r, Ct)).split(Ct);
284
285
  return { values: n, split: o, indexes: s, types: i };
285
286
  }
286
- function Sn(e) {
287
+ function wn(e) {
287
288
  return ue(e).values;
288
289
  }
289
- function wn(e) {
290
+ function xn(e) {
290
291
  const { split: t, types: n } = ue(e), s = t.length;
291
292
  return (i) => {
292
293
  let r = "";
293
294
  for (let a = 0; a < s; a++)
294
295
  if (r += t[a], i[a] !== void 0) {
295
296
  const o = n[a];
296
- o === vn ? r += oe(i[a]) : o === Vn ? r += F.transform(i[a]) : r += i[a];
297
+ o === Vn ? r += oe(i[a]) : o === Sn ? r += D.transform(i[a]) : r += i[a];
297
298
  }
298
299
  return r;
299
300
  };
300
301
  }
301
- const _s = (e) => typeof e == "number" ? 0 : F.test(e) ? F.getAnimatableNone(e) : e;
302
- function js(e) {
303
- const t = Sn(e);
304
- return wn(e)(t.map(_s));
302
+ const js = (e) => typeof e == "number" ? 0 : D.test(e) ? D.getAnimatableNone(e) : e;
303
+ function Us(e) {
304
+ const t = wn(e);
305
+ return xn(e)(t.map(js));
305
306
  }
306
307
  const W = {
307
- test: Ks,
308
- parse: Sn,
309
- createTransformer: wn,
310
- getAnimatableNone: js
308
+ test: $s,
309
+ parse: wn,
310
+ createTransformer: xn,
311
+ getAnimatableNone: Us
311
312
  };
312
- function Fe(e, t, n) {
313
+ function De(e, t, n) {
313
314
  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;
314
315
  }
315
- function Us({ hue: e, saturation: t, lightness: n, alpha: s }) {
316
+ function Gs({ hue: e, saturation: t, lightness: n, alpha: s }) {
316
317
  e /= 360, t /= 100, n /= 100;
317
318
  let i = 0, r = 0, a = 0;
318
319
  if (!t)
319
320
  i = r = a = n;
320
321
  else {
321
322
  const o = n < 0.5 ? n * (1 + t) : n + t - n * t, l = 2 * n - o;
322
- i = Fe(l, o, e + 1 / 3), r = Fe(l, o, e), a = Fe(l, o, e - 1 / 3);
323
+ i = De(l, o, e + 1 / 3), r = De(l, o, e), a = De(l, o, e - 1 / 3);
323
324
  }
324
325
  return {
325
326
  red: Math.round(i * 255),
@@ -331,34 +332,34 @@ function Us({ hue: e, saturation: t, lightness: n, alpha: s }) {
331
332
  function Se(e, t) {
332
333
  return (n) => n > 0 ? t : e;
333
334
  }
334
- const J = (e, t, n) => e + (t - e) * n, De = (e, t, n) => {
335
+ const J = (e, t, n) => e + (t - e) * n, Fe = (e, t, n) => {
335
336
  const s = e * e, i = n * (t * t - s) + s;
336
337
  return i < 0 ? 0 : Math.sqrt(i);
337
- }, Gs = [Ne, _, z], Ys = (e) => Gs.find((t) => t.test(e));
338
- function Ct(e) {
339
- const t = Ys(e);
338
+ }, Ys = [Ne, _, z], zs = (e) => Ys.find((t) => t.test(e));
339
+ function Dt(e) {
340
+ const t = zs(e);
340
341
  if (de(!!t, `'${e}' is not an animatable color. Use the equivalent color code instead.`, "color-not-animatable"), !t)
341
342
  return !1;
342
343
  let n = t.parse(e);
343
- return t === z && (n = Us(n)), n;
344
+ return t === z && (n = Gs(n)), n;
344
345
  }
345
346
  const Ft = (e, t) => {
346
- const n = Ct(e), s = Ct(t);
347
+ const n = Dt(e), s = Dt(t);
347
348
  if (!n || !s)
348
349
  return Se(e, t);
349
350
  const i = { ...n };
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
+ return (r) => (i.red = Fe(n.red, s.red, r), i.green = Fe(n.green, s.green, r), i.blue = Fe(n.blue, s.blue, r), i.alpha = J(n.alpha, s.alpha, r), _.transform(i));
351
352
  }, ke = /* @__PURE__ */ new Set(["none", "hidden"]);
352
- function zs(e, t) {
353
+ function Xs(e, t) {
353
354
  return ke.has(e) ? (n) => n <= 0 ? e : t : (n) => n >= 1 ? t : e;
354
355
  }
355
- function Xs(e, t) {
356
+ function qs(e, t) {
356
357
  return (n) => J(e, t, n);
357
358
  }
358
359
  function st(e) {
359
- return typeof e == "number" ? Xs : typeof e == "string" ? et(e) ? Se : F.test(e) ? Ft : Zs : Array.isArray(e) ? xn : typeof e == "object" ? F.test(e) ? Ft : qs : Se;
360
+ return typeof e == "number" ? qs : typeof e == "string" ? et(e) ? Se : D.test(e) ? Ft : Js : Array.isArray(e) ? An : typeof e == "object" ? D.test(e) ? Ft : Hs : Se;
360
361
  }
361
- function xn(e, t) {
362
+ function An(e, t) {
362
363
  const n = [...e], s = n.length, i = e.map((r, a) => st(r)(r, t[a]));
363
364
  return (r) => {
364
365
  for (let a = 0; a < s; a++)
@@ -366,7 +367,7 @@ function xn(e, t) {
366
367
  return n;
367
368
  };
368
369
  }
369
- function qs(e, t) {
370
+ function Hs(e, t) {
370
371
  const n = { ...e, ...t }, s = {};
371
372
  for (const i in n)
372
373
  e[i] !== void 0 && t[i] !== void 0 && (s[i] = st(e[i])(e[i], t[i]));
@@ -376,7 +377,7 @@ function qs(e, t) {
376
377
  return n;
377
378
  };
378
379
  }
379
- function Hs(e, t) {
380
+ function Zs(e, t) {
380
381
  const n = [], s = { color: 0, var: 0, number: 0 };
381
382
  for (let i = 0; i < t.values.length; i++) {
382
383
  const r = t.types[i], a = e.indexes[r][s[r]], o = e.values[a] ?? 0;
@@ -384,14 +385,14 @@ function Hs(e, t) {
384
385
  }
385
386
  return n;
386
387
  }
387
- const Zs = (e, t) => {
388
+ const Js = (e, t) => {
388
389
  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));
390
+ 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 ? Xs(e, t) : He(An(Zs(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));
390
391
  };
391
- function An(e, t, n) {
392
+ function Mn(e, t, n) {
392
393
  return typeof e == "number" && typeof t == "number" && typeof n == "number" ? J(e, t, n) : st(e)(e, t);
393
394
  }
394
- const Js = (e) => {
395
+ const Qs = (e) => {
395
396
  const t = ({ timestamp: n }) => e(n);
396
397
  return {
397
398
  start: (n = !0) => K.update(t, n),
@@ -402,7 +403,7 @@ const Js = (e) => {
402
403
  */
403
404
  now: () => Ve.isProcessing ? Ve.timestamp : R.now()
404
405
  };
405
- }, Mn = (e, t, n = 10) => {
406
+ }, Cn = (e, t, n = 10) => {
406
407
  let s = "";
407
408
  const i = Math.max(Math.round(t / n), 2);
408
409
  for (let r = 0; r < i; r++)
@@ -417,7 +418,7 @@ function it(e) {
417
418
  t += n, s = e.next(t);
418
419
  return t >= we ? 1 / 0 : t;
419
420
  }
420
- function Cn(e, t = 100, n) {
421
+ function Dn(e, t = 100, n) {
421
422
  const s = n({ ...e, keyframes: [0, t] }), i = Math.min(it(s), we);
422
423
  return {
423
424
  type: "keyframes",
@@ -425,12 +426,12 @@ function Cn(e, t = 100, n) {
425
426
  duration: /* @__PURE__ */ P(i)
426
427
  };
427
428
  }
428
- const Qs = 5;
429
+ const ei = 5;
429
430
  function Fn(e, t, n) {
430
- const s = Math.max(t - Qs, 0);
431
- return nn(n - e(s), t - s);
431
+ const s = Math.max(t - ei, 0);
432
+ return sn(n - e(s), t - s);
432
433
  }
433
- const M = {
434
+ const C = {
434
435
  // Default spring physics
435
436
  stiffness: 100,
436
437
  damping: 10,
@@ -459,16 +460,16 @@ const M = {
459
460
  minDamping: 0.05,
460
461
  maxDamping: 1
461
462
  }, Ee = 1e-3;
462
- function ei({ duration: e = M.duration, bounce: t = M.bounce, velocity: n = M.velocity, mass: s = M.mass }) {
463
+ function ti({ duration: e = C.duration, bounce: t = C.bounce, velocity: n = C.velocity, mass: s = C.mass }) {
463
464
  let i, r;
464
- de(e <= /* @__PURE__ */ O(M.maxDuration), "Spring duration must be 10 seconds or less", "spring-duration-limit");
465
+ de(e <= /* @__PURE__ */ O(C.maxDuration), "Spring duration must be 10 seconds or less", "spring-duration-limit");
465
466
  let a = 1 - t;
466
- a = Y(M.minDamping, M.maxDamping, a), e = Y(M.minDuration, M.maxDuration, /* @__PURE__ */ P(e)), a < 1 ? (i = (c) => {
467
- const u = c * a, f = u * e, h = u - n, g = Be(c, a), y = Math.exp(-f);
468
- return Ee - h / g * y;
467
+ a = Y(C.minDamping, C.maxDamping, a), e = Y(C.minDuration, C.maxDuration, /* @__PURE__ */ P(e)), a < 1 ? (i = (c) => {
468
+ const u = c * a, f = u * e, h = u - n, g = Be(c, a), m = Math.exp(-f);
469
+ return Ee - h / g * m;
469
470
  }, r = (c) => {
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);
471
- return (-i(c) + Ee > 0 ? -1 : 1) * ((h - g) * y) / b;
471
+ const f = c * a * e, h = f * n + n, g = Math.pow(a, 2) * Math.pow(c, 2) * e, m = Math.exp(-f), T = Be(Math.pow(c, 2), a);
472
+ return (-i(c) + Ee > 0 ? -1 : 1) * ((h - g) * m) / T;
472
473
  }) : (i = (c) => {
473
474
  const u = Math.exp(-c * e), f = (c - n) * e + 1;
474
475
  return -Ee + u * f;
@@ -476,11 +477,11 @@ function ei({ duration: e = M.duration, bounce: t = M.bounce, velocity: n = M.ve
476
477
  const u = Math.exp(-c * e), f = (n - c) * (e * e);
477
478
  return u * f;
478
479
  });
479
- const o = 5 / e, l = ni(i, r, o);
480
+ const o = 5 / e, l = si(i, r, o);
480
481
  if (e = /* @__PURE__ */ O(e), isNaN(l))
481
482
  return {
482
- stiffness: M.stiffness,
483
- damping: M.damping,
483
+ stiffness: C.stiffness,
484
+ damping: C.damping,
484
485
  duration: e
485
486
  };
486
487
  {
@@ -492,120 +493,120 @@ function ei({ duration: e = M.duration, bounce: t = M.bounce, velocity: n = M.ve
492
493
  };
493
494
  }
494
495
  }
495
- const ti = 12;
496
- function ni(e, t, n) {
496
+ const ni = 12;
497
+ function si(e, t, n) {
497
498
  let s = n;
498
- for (let i = 1; i < ti; i++)
499
+ for (let i = 1; i < ni; i++)
499
500
  s = s - e(s) / t(s);
500
501
  return s;
501
502
  }
502
503
  function Be(e, t) {
503
504
  return e * Math.sqrt(1 - t * t);
504
505
  }
505
- const si = ["duration", "bounce"], ii = ["stiffness", "damping", "mass"];
506
- function Dt(e, t) {
506
+ const ii = ["duration", "bounce"], ri = ["stiffness", "damping", "mass"];
507
+ function Et(e, t) {
507
508
  return t.some((n) => e[n] !== void 0);
508
509
  }
509
- function ri(e) {
510
+ function ai(e) {
510
511
  let t = {
511
- velocity: M.velocity,
512
- stiffness: M.stiffness,
513
- damping: M.damping,
514
- mass: M.mass,
512
+ velocity: C.velocity,
513
+ stiffness: C.stiffness,
514
+ damping: C.damping,
515
+ mass: C.mass,
515
516
  isResolvedFromDuration: !1,
516
517
  ...e
517
518
  };
518
- if (!Dt(e, ii) && Dt(e, si))
519
+ if (!Et(e, ri) && Et(e, ii))
519
520
  if (e.visualDuration) {
520
521
  const n = e.visualDuration, s = 2 * Math.PI / (n * 1.2), i = s * s, r = 2 * Y(0.05, 1, 1 - (e.bounce || 0)) * Math.sqrt(i);
521
522
  t = {
522
523
  ...t,
523
- mass: M.mass,
524
+ mass: C.mass,
524
525
  stiffness: i,
525
526
  damping: r
526
527
  };
527
528
  } else {
528
- const n = ei(e);
529
+ const n = ti(e);
529
530
  t = {
530
531
  ...t,
531
532
  ...n,
532
- mass: M.mass
533
+ mass: C.mass
533
534
  }, t.isResolvedFromDuration = !0;
534
535
  }
535
536
  return t;
536
537
  }
537
- function ce(e = M.visualDuration, t = M.bounce) {
538
+ function ce(e = C.visualDuration, t = C.bounce) {
538
539
  const n = typeof e != "object" ? {
539
540
  visualDuration: e,
540
541
  keyframes: [0, 1],
541
542
  bounce: t
542
543
  } : e;
543
544
  let { restSpeed: s, restDelta: i } = n;
544
- const r = n.keyframes[0], a = n.keyframes[n.keyframes.length - 1], o = { done: !1, value: r }, { stiffness: l, damping: c, mass: u, duration: f, velocity: h, isResolvedFromDuration: g } = ri({
545
+ const r = n.keyframes[0], a = n.keyframes[n.keyframes.length - 1], o = { done: !1, value: r }, { stiffness: l, damping: c, mass: u, duration: f, velocity: h, isResolvedFromDuration: g } = ai({
545
546
  ...n,
546
547
  velocity: -/* @__PURE__ */ P(n.velocity || 0)
547
- }), y = h || 0, b = c / (2 * Math.sqrt(l * u)), V = a - r, T = /* @__PURE__ */ P(Math.sqrt(l / u)), A = Math.abs(V) < 5;
548
- s || (s = A ? M.restSpeed.granular : M.restSpeed.default), i || (i = A ? M.restDelta.granular : M.restDelta.default);
548
+ }), m = h || 0, T = c / (2 * Math.sqrt(l * u)), V = a - r, v = /* @__PURE__ */ P(Math.sqrt(l / u)), A = Math.abs(V) < 5;
549
+ s || (s = A ? C.restSpeed.granular : C.restSpeed.default), i || (i = A ? C.restDelta.granular : C.restDelta.default);
549
550
  let S;
550
- if (b < 1) {
551
- const p = Be(T, b);
552
- S = (w) => {
553
- const C = Math.exp(-b * T * w);
554
- return a - C * ((y + b * T * V) / p * Math.sin(p * w) + V * Math.cos(p * w));
551
+ if (T < 1) {
552
+ const d = Be(v, T);
553
+ S = (y) => {
554
+ const M = Math.exp(-T * v * y);
555
+ return a - M * ((m + T * v * V) / d * Math.sin(d * y) + V * Math.cos(d * y));
555
556
  };
556
- } else if (b === 1)
557
- S = (p) => a - Math.exp(-T * p) * (V + (y + T * V) * p);
557
+ } else if (T === 1)
558
+ S = (d) => a - Math.exp(-v * d) * (V + (m + v * V) * d);
558
559
  else {
559
- const p = T * Math.sqrt(b * b - 1);
560
- S = (w) => {
561
- const C = Math.exp(-b * T * w), m = Math.min(p * w, 300);
562
- return a - C * ((y + b * T * V) * Math.sinh(m) + p * V * Math.cosh(m)) / p;
560
+ const d = v * Math.sqrt(T * T - 1);
561
+ S = (y) => {
562
+ const M = Math.exp(-T * v * y), b = Math.min(d * y, 300);
563
+ return a - M * ((m + T * v * V) * Math.sinh(b) + d * V * Math.cosh(b)) / d;
563
564
  };
564
565
  }
565
- const v = {
566
+ const w = {
566
567
  calculatedDuration: g && f || null,
567
- next: (p) => {
568
- const w = S(p);
568
+ next: (d) => {
569
+ const y = S(d);
569
570
  if (g)
570
- o.done = p >= f;
571
+ o.done = d >= f;
571
572
  else {
572
- let C = p === 0 ? y : 0;
573
- b < 1 && (C = p === 0 ? /* @__PURE__ */ O(y) : Fn(S, p, w));
574
- const m = Math.abs(C) <= s, x = Math.abs(a - w) <= i;
575
- o.done = m && x;
573
+ let M = d === 0 ? m : 0;
574
+ T < 1 && (M = d === 0 ? /* @__PURE__ */ O(m) : Fn(S, d, y));
575
+ const b = Math.abs(M) <= s, x = Math.abs(a - y) <= i;
576
+ o.done = b && x;
576
577
  }
577
- return o.value = o.done ? a : w, o;
578
+ return o.value = o.done ? a : y, o;
578
579
  },
579
580
  toString: () => {
580
- const p = Math.min(it(v), we), w = Mn((C) => v.next(p * C).value, p, 30);
581
- return p + "ms " + w;
581
+ const d = Math.min(it(w), we), y = Cn((M) => w.next(d * M).value, d, 30);
582
+ return d + "ms " + y;
582
583
  },
583
584
  toTransition: () => {
584
585
  }
585
586
  };
586
- return v;
587
+ return w;
587
588
  }
588
589
  ce.applyToOptions = (e) => {
589
- const t = Cn(e, 100, ce);
590
+ const t = Dn(e, 100, ce);
590
591
  return e.ease = t.ease, e.duration = /* @__PURE__ */ O(t.duration), e.type = "keyframes", e;
591
592
  };
592
593
  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 }) {
593
594
  const f = e[0], h = {
594
595
  done: !1,
595
596
  value: f
596
- }, g = (m) => o !== void 0 && m < o || l !== void 0 && m > l, y = (m) => o === void 0 ? l : l === void 0 || Math.abs(o - m) < Math.abs(l - m) ? o : l;
597
- let b = n * t;
598
- const V = f + b, T = a === void 0 ? V : a(V);
599
- T !== V && (b = T - f);
600
- const A = (m) => -b * Math.exp(-m / s), S = (m) => T + A(m), v = (m) => {
601
- const x = A(m), E = S(m);
602
- h.done = Math.abs(x) <= c, h.value = h.done ? T : E;
597
+ }, g = (b) => o !== void 0 && b < o || l !== void 0 && b > l, m = (b) => o === void 0 ? l : l === void 0 || Math.abs(o - b) < Math.abs(l - b) ? o : l;
598
+ let T = n * t;
599
+ const V = f + T, v = a === void 0 ? V : a(V);
600
+ v !== V && (T = v - f);
601
+ const A = (b) => -T * Math.exp(-b / s), S = (b) => v + A(b), w = (b) => {
602
+ const x = A(b), E = S(b);
603
+ h.done = Math.abs(x) <= c, h.value = h.done ? v : E;
603
604
  };
604
- let p, w;
605
- const C = (m) => {
606
- g(h.value) && (p = m, w = ce({
607
- keyframes: [h.value, y(h.value)],
608
- velocity: Fn(S, m, h.value),
605
+ let d, y;
606
+ const M = (b) => {
607
+ g(h.value) && (d = b, y = ce({
608
+ keyframes: [h.value, m(h.value)],
609
+ velocity: Fn(S, b, h.value),
609
610
  // TODO: This should be passing * 1000
610
611
  damping: i,
611
612
  stiffness: r,
@@ -613,16 +614,16 @@ function Ie({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: s = 3
613
614
  restSpeed: u
614
615
  }));
615
616
  };
616
- return C(0), {
617
+ return M(0), {
617
618
  calculatedDuration: null,
618
- next: (m) => {
619
+ next: (b) => {
619
620
  let x = !1;
620
- return !w && p === void 0 && (x = !0, v(m), C(m)), p !== void 0 && m >= p ? w.next(m - p) : (!x && v(m), h);
621
+ return !y && d === void 0 && (x = !0, w(b), M(b)), d !== void 0 && b >= d ? y.next(b - d) : (!x && w(b), h);
621
622
  }
622
623
  };
623
624
  }
624
- function ai(e, t, n) {
625
- const s = [], i = n || I.mix || An, r = e.length - 1;
625
+ function oi(e, t, n) {
626
+ const s = [], i = n || I.mix || Mn, r = e.length - 1;
626
627
  for (let a = 0; a < r; a++) {
627
628
  let o = i(e[a], e[a + 1]);
628
629
  if (t) {
@@ -633,7 +634,7 @@ function ai(e, t, n) {
633
634
  }
634
635
  return s;
635
636
  }
636
- function oi(e, t, { clamp: n = !0, ease: s, mixer: i } = {}) {
637
+ function li(e, t, { clamp: n = !0, ease: s, mixer: i } = {}) {
637
638
  const r = e.length;
638
639
  if (k(r === t.length, "Both input and output ranges must be the same length", "range-length"), r === 1)
639
640
  return () => t[0];
@@ -641,7 +642,7 @@ function oi(e, t, { clamp: n = !0, ease: s, mixer: i } = {}) {
641
642
  return () => t[1];
642
643
  const a = e[0] === e[1];
643
644
  e[0] > e[r - 1] && (e = [...e].reverse(), t = [...t].reverse());
644
- const o = ai(t, s, i), l = o.length, c = (u) => {
645
+ const o = oi(t, s, i), l = o.length, c = (u) => {
645
646
  if (a && u < e[0])
646
647
  return t[0];
647
648
  let f = 0;
@@ -653,54 +654,54 @@ function oi(e, t, { clamp: n = !0, ease: s, mixer: i } = {}) {
653
654
  };
654
655
  return n ? (u) => c(Y(e[0], e[r - 1], u)) : c;
655
656
  }
656
- function Dn(e, t) {
657
+ function En(e, t) {
657
658
  const n = e[e.length - 1];
658
659
  for (let s = 1; s <= t; s++) {
659
660
  const i = /* @__PURE__ */ Ze(0, t, s);
660
661
  e.push(J(n, 1, i));
661
662
  }
662
663
  }
663
- function En(e) {
664
+ function Rn(e) {
664
665
  const t = [0];
665
- return Dn(t, e.length - 1), t;
666
+ return En(t, e.length - 1), t;
666
667
  }
667
- function li(e, t) {
668
+ function ui(e, t) {
668
669
  return e.map((n) => n * t);
669
670
  }
670
- function ui(e, t) {
671
- return e.map(() => t || hn).splice(0, e.length - 1);
671
+ function ci(e, t) {
672
+ return e.map(() => t || dn).splice(0, e.length - 1);
672
673
  }
673
674
  function X({ duration: e = 300, keyframes: t, times: n, ease: s = "easeInOut" }) {
674
- const i = dn(s) ? s.map(xt) : xt(s), r = {
675
+ const i = pn(s) ? s.map(At) : At(s), r = {
675
676
  done: !1,
676
677
  value: t[0]
677
- }, a = li(
678
+ }, a = ui(
678
679
  // Only use the provided offsets if they're the correct length
679
680
  // TODO Maybe we should warn here if there's a length mismatch
680
- n && n.length === t.length ? n : En(t),
681
+ n && n.length === t.length ? n : Rn(t),
681
682
  e
682
- ), o = oi(a, t, {
683
- ease: Array.isArray(i) ? i : ui(t, i)
683
+ ), o = li(a, t, {
684
+ ease: Array.isArray(i) ? i : ci(t, i)
684
685
  });
685
686
  return {
686
687
  calculatedDuration: e,
687
688
  next: (l) => (r.value = o(l), r.done = l >= e, r)
688
689
  };
689
690
  }
690
- const ci = (e) => e !== null;
691
+ const fi = (e) => e !== null;
691
692
  function rt(e, { repeat: t, repeatType: n = "loop" }, s, i = 1) {
692
- const r = e.filter(ci), o = i < 0 || t && n !== "loop" && t % 2 === 1 ? 0 : r.length - 1;
693
+ const r = e.filter(fi), o = i < 0 || t && n !== "loop" && t % 2 === 1 ? 0 : r.length - 1;
693
694
  return !o || s === void 0 ? r[o] : s;
694
695
  }
695
- const fi = {
696
+ const hi = {
696
697
  decay: Ie,
697
698
  inertia: Ie,
698
699
  tween: X,
699
700
  keyframes: X,
700
701
  spring: ce
701
702
  };
702
- function Rn(e) {
703
- typeof e.type == "string" && (e.type = fi[e.type]);
703
+ function Pn(e) {
704
+ typeof e.type == "string" && (e.type = hi[e.type]);
704
705
  }
705
706
  class at {
706
707
  constructor() {
@@ -726,7 +727,7 @@ class at {
726
727
  return this.finished.then(t, n);
727
728
  }
728
729
  }
729
- const hi = (e) => e / 100;
730
+ const di = (e) => e / 100;
730
731
  class ot extends at {
731
732
  constructor(t) {
732
733
  super(), this.state = "idle", this.startTime = null, this.isStopped = !1, this.currentTime = 0, this.holdTime = null, this.playbackSpeed = 1, this.stop = () => {
@@ -736,11 +737,11 @@ class ot extends at {
736
737
  }
737
738
  initAnimation() {
738
739
  const { options: t } = this;
739
- Rn(t);
740
+ Pn(t);
740
741
  const { type: n = X, repeat: s = 0, repeatDelay: i = 0, repeatType: r, velocity: a = 0 } = t;
741
742
  let { keyframes: o } = t;
742
743
  const l = n || X;
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]);
744
+ 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(di, Mn(o[0], o[1])), o = [0, 100]);
744
745
  const c = l({ ...t, keyframes: o });
745
746
  r === "mirror" && (this.mirroredGenerator = l({
746
747
  ...t,
@@ -758,22 +759,22 @@ class ot extends at {
758
759
  const { generator: s, totalDuration: i, mixKeyframes: r, mirroredGenerator: a, resolvedDuration: o, calculatedDuration: l } = this;
759
760
  if (this.startTime === null)
760
761
  return s.next(0);
761
- const { delay: c = 0, keyframes: u, repeat: f, repeatType: h, repeatDelay: g, type: y, onUpdate: b, finalKeyframe: V } = this.options;
762
+ const { delay: c = 0, keyframes: u, repeat: f, repeatType: h, repeatDelay: g, type: m, onUpdate: T, finalKeyframe: V } = this.options;
762
763
  this.speed > 0 ? this.startTime = Math.min(this.startTime, t) : this.speed < 0 && (this.startTime = Math.min(t - i / this.speed, this.startTime)), n ? this.currentTime = t : this.updateTime(t);
763
- const T = this.currentTime - c * (this.playbackSpeed >= 0 ? 1 : -1), A = this.playbackSpeed >= 0 ? T < 0 : T > i;
764
- this.currentTime = Math.max(T, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = i);
765
- let S = this.currentTime, v = s;
764
+ const v = this.currentTime - c * (this.playbackSpeed >= 0 ? 1 : -1), A = this.playbackSpeed >= 0 ? v < 0 : v > i;
765
+ this.currentTime = Math.max(v, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = i);
766
+ let S = this.currentTime, w = s;
766
767
  if (f) {
767
- const m = Math.min(this.currentTime, i) / o;
768
- let x = Math.floor(m), E = m % 1;
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;
768
+ const b = Math.min(this.currentTime, i) / o;
769
+ let x = Math.floor(b), E = b % 1;
770
+ !E && b >= 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" && (w = a)), S = Y(0, 1, E) * o;
770
771
  }
771
- const p = A ? { done: !1, value: u[0] } : v.next(S);
772
- r && (p.value = r(p.value));
773
- let { done: w } = p;
774
- !A && l !== null && (w = this.playbackSpeed >= 0 ? this.currentTime >= i : this.currentTime <= 0);
775
- const C = this.holdTime === null && (this.state === "finished" || this.state === "running" && w);
776
- return C && y !== Ie && (p.value = rt(u, this.options, V, this.speed)), b && b(p.value), C && this.finish(), p;
772
+ const d = A ? { done: !1, value: u[0] } : w.next(S);
773
+ r && (d.value = r(d.value));
774
+ let { done: y } = d;
775
+ !A && l !== null && (y = this.playbackSpeed >= 0 ? this.currentTime >= i : this.currentTime <= 0);
776
+ const M = this.holdTime === null && (this.state === "finished" || this.state === "running" && y);
777
+ return M && m !== Ie && (d.value = rt(u, this.options, V, this.speed)), T && T(d.value), M && this.finish(), d;
777
778
  }
778
779
  /**
779
780
  * Allows the returned animation to be awaited or promise-chained. Currently
@@ -807,7 +808,7 @@ class ot extends at {
807
808
  play() {
808
809
  if (this.isStopped)
809
810
  return;
810
- const { driver: t = Js, startTime: n } = this.options;
811
+ const { driver: t = Qs, startTime: n } = this.options;
811
812
  this.driver || (this.driver = t((i) => this.tick(i))), this.options.onPlay?.();
812
813
  const s = this.driver.now();
813
814
  this.state === "finished" ? (this.updateFinished(), this.startTime = s) : this.holdTime !== null ? this.startTime = s - this.holdTime : this.startTime || (this.startTime = n ?? s), this.state === "finished" && this.speed < 0 && (this.startTime += this.calculatedDuration), this.holdTime = null, this.state = "running", this.driver.start();
@@ -837,14 +838,14 @@ class ot extends at {
837
838
  return this.options.allowFlatten && (this.options.type = "keyframes", this.options.ease = "linear", this.initAnimation()), this.driver?.stop(), t.observe(this);
838
839
  }
839
840
  }
840
- function di(e) {
841
+ function pi(e) {
841
842
  for (let t = 1; t < e.length; t++)
842
843
  e[t] ?? (e[t] = e[t - 1]);
843
844
  }
844
845
  const j = (e) => e * 180 / Math.PI, Ke = (e) => {
845
846
  const t = j(Math.atan2(e[1], e[0]));
846
847
  return $e(t);
847
- }, pi = {
848
+ }, mi = {
848
849
  x: 4,
849
850
  y: 5,
850
851
  translateX: 4,
@@ -857,20 +858,20 @@ const j = (e) => e * 180 / Math.PI, Ke = (e) => {
857
858
  skewX: (e) => j(Math.atan(e[1])),
858
859
  skewY: (e) => j(Math.atan(e[2])),
859
860
  skew: (e) => (Math.abs(e[1]) + Math.abs(e[2])) / 2
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 = {
861
+ }, $e = (e) => (e = e % 360, e < 0 && (e += 360), e), Rt = Ke, Pt = (e) => Math.sqrt(e[0] * e[0] + e[1] * e[1]), Ot = (e) => Math.sqrt(e[4] * e[4] + e[5] * e[5]), gi = {
861
862
  x: 12,
862
863
  y: 13,
863
864
  z: 14,
864
865
  translateX: 12,
865
866
  translateY: 13,
866
867
  translateZ: 14,
867
- scaleX: Rt,
868
- scaleY: Pt,
869
- scale: (e) => (Rt(e) + Pt(e)) / 2,
868
+ scaleX: Pt,
869
+ scaleY: Ot,
870
+ scale: (e) => (Pt(e) + Ot(e)) / 2,
870
871
  rotateX: (e) => $e(j(Math.atan2(e[6], e[5]))),
871
872
  rotateY: (e) => $e(j(Math.atan2(-e[2], e[0]))),
872
- rotateZ: Et,
873
- rotate: Et,
873
+ rotateZ: Rt,
874
+ rotate: Rt,
874
875
  skewX: (e) => j(Math.atan(e[4])),
875
876
  skewY: (e) => j(Math.atan(e[1])),
876
877
  skew: (e) => (Math.abs(e[1]) + Math.abs(e[4])) / 2
@@ -884,21 +885,21 @@ function We(e, t) {
884
885
  const n = e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);
885
886
  let s, i;
886
887
  if (n)
887
- s = mi, i = n;
888
+ s = gi, i = n;
888
889
  else {
889
890
  const o = e.match(/^matrix\(([-\d.e\s,]+)\)$/u);
890
- s = pi, i = o;
891
+ s = mi, i = o;
891
892
  }
892
893
  if (!i)
893
894
  return Le(t);
894
- const r = s[t], a = i[1].split(",").map(yi);
895
+ const r = s[t], a = i[1].split(",").map(bi);
895
896
  return typeof r == "function" ? r(a) : a[r];
896
897
  }
897
- const gi = (e, t) => {
898
+ const yi = (e, t) => {
898
899
  const { transform: n = "none" } = getComputedStyle(e);
899
900
  return We(n, t);
900
901
  };
901
- function yi(e) {
902
+ function bi(e) {
902
903
  return parseFloat(e.trim());
903
904
  }
904
905
  const Q = [
@@ -919,10 +920,10 @@ const Q = [
919
920
  "skew",
920
921
  "skewX",
921
922
  "skewY"
922
- ], ee = new Set(Q), Ot = (e) => e === Z || e === d, bi = /* @__PURE__ */ new Set(["x", "y", "z"]), Ti = Q.filter((e) => !bi.has(e));
923
- function vi(e) {
923
+ ], ee = new Set(Q), Nt = (e) => e === Z || e === p, Ti = /* @__PURE__ */ new Set(["x", "y", "z"]), vi = Q.filter((e) => !Ti.has(e));
924
+ function Vi(e) {
924
925
  const t = [];
925
- return Ti.forEach((n) => {
926
+ return vi.forEach((n) => {
926
927
  const s = e.getValue(n);
927
928
  s !== void 0 && (t.push([n, s.get()]), s.set(n.startsWith("scale") ? 1 : 0));
928
929
  }), t;
@@ -943,11 +944,11 @@ U.translateX = U.x;
943
944
  U.translateY = U.y;
944
945
  const G = /* @__PURE__ */ new Set();
945
946
  let _e = !1, je = !1, Ue = !1;
946
- function Pn() {
947
+ function On() {
947
948
  if (je) {
948
949
  const e = Array.from(G).filter((s) => s.needsMeasurement), t = new Set(e.map((s) => s.element)), n = /* @__PURE__ */ new Map();
949
950
  t.forEach((s) => {
950
- const i = vi(s);
951
+ const i = Vi(s);
951
952
  i.length && (n.set(s, i), s.render());
952
953
  }), e.forEach((s) => s.measureInitialState()), t.forEach((s) => {
953
954
  s.render();
@@ -961,20 +962,20 @@ function Pn() {
961
962
  }
962
963
  je = !1, _e = !1, G.forEach((e) => e.complete(Ue)), G.clear();
963
964
  }
964
- function On() {
965
+ function Nn() {
965
966
  G.forEach((e) => {
966
967
  e.readKeyframes(), e.needsMeasurement && (je = !0);
967
968
  });
968
969
  }
969
- function Vi() {
970
- Ue = !0, On(), Pn(), Ue = !1;
970
+ function Si() {
971
+ Ue = !0, Nn(), On(), Ue = !1;
971
972
  }
972
973
  class lt {
973
974
  constructor(t, n, s, i, r, a = !1) {
974
975
  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;
975
976
  }
976
977
  scheduleResolve() {
977
- this.state = "scheduled", this.isAsync ? (G.add(this), _e || (_e = !0, K.read(On), K.resolveKeyframes(Pn))) : (this.readKeyframes(), this.complete());
978
+ this.state = "scheduled", this.isAsync ? (G.add(this), _e || (_e = !0, K.read(Nn), K.resolveKeyframes(On))) : (this.readKeyframes(), this.complete());
978
979
  }
979
980
  readKeyframes() {
980
981
  const { unresolvedKeyframes: t, name: n, element: s, motionValue: i } = this;
@@ -988,7 +989,7 @@ class lt {
988
989
  }
989
990
  t[0] === void 0 && (t[0] = a), i && r === void 0 && i.set(t[0]);
990
991
  }
991
- di(t);
992
+ pi(t);
992
993
  }
993
994
  setFinalKeyframe() {
994
995
  }
@@ -1008,23 +1009,23 @@ class lt {
1008
1009
  this.state === "pending" && this.scheduleResolve();
1009
1010
  }
1010
1011
  }
1011
- const Si = (e) => e.startsWith("--");
1012
- function wi(e, t, n) {
1013
- Si(t) ? e.style.setProperty(t, n) : e.style[t] = n;
1012
+ const wi = (e) => e.startsWith("--");
1013
+ function xi(e, t, n) {
1014
+ wi(t) ? e.style.setProperty(t, n) : e.style[t] = n;
1014
1015
  }
1015
- const xi = /* @__PURE__ */ qe(() => window.ScrollTimeline !== void 0), Ai = {};
1016
- function Mi(e, t) {
1016
+ const Ai = /* @__PURE__ */ qe(() => window.ScrollTimeline !== void 0), Mi = {};
1017
+ function Ci(e, t) {
1017
1018
  const n = /* @__PURE__ */ qe(e);
1018
- return () => Ai[t] ?? n();
1019
+ return () => Mi[t] ?? n();
1019
1020
  }
1020
- const Nn = /* @__PURE__ */ Mi(() => {
1021
+ const kn = /* @__PURE__ */ Ci(() => {
1021
1022
  try {
1022
1023
  document.createElement("div").animate({ opacity: 0 }, { easing: "linear(0, 1)" });
1023
1024
  } catch {
1024
1025
  return !1;
1025
1026
  }
1026
1027
  return !0;
1027
- }, "linearEasing"), ae = ([e, t, n, s]) => `cubic-bezier(${e}, ${t}, ${n}, ${s})`, Nt = {
1028
+ }, "linearEasing"), ae = ([e, t, n, s]) => `cubic-bezier(${e}, ${t}, ${n}, ${s})`, kt = {
1028
1029
  linear: "linear",
1029
1030
  ease: "ease",
1030
1031
  easeIn: "ease-in",
@@ -1035,16 +1036,16 @@ const Nn = /* @__PURE__ */ Mi(() => {
1035
1036
  backIn: /* @__PURE__ */ ae([0.31, 0.01, 0.66, -0.59]),
1036
1037
  backOut: /* @__PURE__ */ ae([0.33, 1.53, 0.69, 0.99])
1037
1038
  };
1038
- function kn(e, t) {
1039
+ function Bn(e, t) {
1039
1040
  if (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];
1041
+ return typeof e == "function" ? kn() ? Cn(e, t) : "ease-out" : gn(e) ? ae(e) : Array.isArray(e) ? e.map((n) => Bn(n, t) || kt.easeOut) : kt[e];
1041
1042
  }
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) {
1043
+ function Di(e, t, n, { delay: s = 0, duration: i = 300, repeat: r = 0, repeatType: a = "loop", ease: o = "easeOut", times: l } = {}, c = void 0) {
1043
1044
  const u = {
1044
1045
  [t]: n
1045
1046
  };
1046
1047
  l && (u.offset = l);
1047
- const f = kn(o, i);
1048
+ const f = Bn(o, i);
1048
1049
  Array.isArray(f) && (u.easing = f);
1049
1050
  const h = {
1050
1051
  delay: s,
@@ -1060,19 +1061,19 @@ function ut(e) {
1060
1061
  return typeof e == "function" && "applyToOptions" in e;
1061
1062
  }
1062
1063
  function Fi({ type: e, ...t }) {
1063
- return ut(e) && Nn() ? e.applyToOptions(t) : (t.duration ?? (t.duration = 300), t.ease ?? (t.ease = "easeOut"), t);
1064
+ return ut(e) && kn() ? e.applyToOptions(t) : (t.duration ?? (t.duration = 300), t.ease ?? (t.ease = "easeOut"), t);
1064
1065
  }
1065
- class Di extends at {
1066
+ class Ei extends at {
1066
1067
  constructor(t) {
1067
1068
  if (super(), this.finishedTime = null, this.isStopped = !1, !t)
1068
1069
  return;
1069
1070
  const { element: n, name: s, keyframes: i, pseudoElement: r, allowFlatten: a = !1, finalKeyframe: o, onComplete: l } = t;
1070
1071
  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");
1071
1072
  const c = Fi(t);
1072
- this.animation = Ci(n, s, i, c, r), c.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
1073
+ this.animation = Di(n, s, i, c, r), c.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
1073
1074
  if (this.finishedTime = this.time, !r) {
1074
1075
  const u = rt(i, this.options, o, this.speed);
1075
- this.updateMotionValue ? this.updateMotionValue(u) : wi(n, s, u), this.animation.cancel();
1076
+ this.updateMotionValue ? this.updateMotionValue(u) : xi(n, s, u), this.animation.cancel();
1076
1077
  }
1077
1078
  l?.(), this.notifyFinished();
1078
1079
  };
@@ -1151,24 +1152,24 @@ class Di extends at {
1151
1152
  * Attaches a timeline to the animation, for instance the `ScrollTimeline`.
1152
1153
  */
1153
1154
  attachTimeline({ timeline: t, observe: n }) {
1154
- return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, t && xi() ? (this.animation.timeline = t, H) : n(this);
1155
+ return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, t && Ai() ? (this.animation.timeline = t, H) : n(this);
1155
1156
  }
1156
1157
  }
1157
- const Bn = {
1158
- anticipate: cn,
1159
- backInOut: un,
1160
- circInOut: fn
1158
+ const In = {
1159
+ anticipate: fn,
1160
+ backInOut: cn,
1161
+ circInOut: hn
1161
1162
  };
1162
- function Ei(e) {
1163
- return e in Bn;
1164
- }
1165
1163
  function Ri(e) {
1166
- typeof e.ease == "string" && Ei(e.ease) && (e.ease = Bn[e.ease]);
1164
+ return e in In;
1167
1165
  }
1168
- const kt = 10;
1169
- class Pi extends Di {
1166
+ function Pi(e) {
1167
+ typeof e.ease == "string" && Ri(e.ease) && (e.ease = In[e.ease]);
1168
+ }
1169
+ const Bt = 10;
1170
+ class Oi extends Ei {
1170
1171
  constructor(t) {
1171
- Ri(t), Rn(t), super(t), t.startTime && (this.startTime = t.startTime), this.options = t;
1172
+ Pi(t), Pn(t), super(t), t.startTime && (this.startTime = t.startTime), this.options = t;
1172
1173
  }
1173
1174
  /**
1174
1175
  * WAAPI doesn't natively have any interruption capabilities.
@@ -1190,13 +1191,13 @@ class Pi extends Di {
1190
1191
  ...a,
1191
1192
  autoplay: !1
1192
1193
  }), l = /* @__PURE__ */ O(this.finishedTime ?? this.time);
1193
- n.setWithVelocity(o.sample(l - kt).value, o.sample(l).value, kt), o.stop();
1194
+ n.setWithVelocity(o.sample(l - Bt).value, o.sample(l).value, Bt), o.stop();
1194
1195
  }
1195
1196
  }
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
+ const It = (e, t) => t === "zIndex" ? !1 : !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && // It's animatable if we have a string
1197
1198
  (W.test(e) || e === "0") && // And it contains numbers and/or colors
1198
1199
  !e.startsWith("url("));
1199
- function Oi(e) {
1200
+ function Ni(e) {
1200
1201
  const t = e[0];
1201
1202
  if (e.length === 1)
1202
1203
  return !0;
@@ -1204,39 +1205,39 @@ function Oi(e) {
1204
1205
  if (e[n] !== t)
1205
1206
  return !0;
1206
1207
  }
1207
- function Ni(e, t, n, s) {
1208
+ function ki(e, t, n, s) {
1208
1209
  const i = e[0];
1209
1210
  if (i === null)
1210
1211
  return !1;
1211
1212
  if (t === "display" || t === "visibility")
1212
1213
  return !0;
1213
- const r = e[e.length - 1], a = Bt(i, t), o = Bt(r, t);
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;
1214
+ const r = e[e.length - 1], a = It(i, t), o = It(r, t);
1215
+ 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 : Ni(e) || (n === "spring" || ut(n)) && s;
1215
1216
  }
1216
1217
  function Ge(e) {
1217
1218
  e.duration = 0, e.type = "keyframes";
1218
1219
  }
1219
- const ki = /* @__PURE__ */ new Set([
1220
+ const Bi = /* @__PURE__ */ new Set([
1220
1221
  "opacity",
1221
1222
  "clipPath",
1222
1223
  "filter",
1223
1224
  "transform"
1224
1225
  // TODO: Could be re-enabled now we have support for linear() easing
1225
1226
  // "background-color"
1226
- ]), Bi = /* @__PURE__ */ qe(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
1227
- function Ii(e) {
1227
+ ]), Ii = /* @__PURE__ */ qe(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
1228
+ function Ki(e) {
1228
1229
  const { motionValue: t, name: n, repeatDelay: s, repeatType: i, damping: r, type: a } = e;
1229
1230
  if (!(t?.owner?.current instanceof HTMLElement))
1230
1231
  return !1;
1231
1232
  const { onUpdate: l, transformTemplate: c } = t.owner.getProps();
1232
- return Bi() && n && ki.has(n) && (n !== "transform" || !c) && /**
1233
+ return Ii() && n && Bi.has(n) && (n !== "transform" || !c) && /**
1233
1234
  * If we're outputting values to onUpdate then we can't use WAAPI as there's
1234
1235
  * no way to read the value from WAAPI every frame.
1235
1236
  */
1236
1237
  !l && !s && i !== "mirror" && r !== 0 && a !== "inertia";
1237
1238
  }
1238
- const Ki = 40;
1239
- class $i extends at {
1239
+ const $i = 40;
1240
+ class Li extends at {
1240
1241
  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 }) {
1241
1242
  super(), this.stop = () => {
1242
1243
  this._animation && (this._animation.stop(), this.stopTimeline?.()), this.keyframeResolver?.cancel();
@@ -1253,18 +1254,18 @@ class $i extends at {
1253
1254
  element: u,
1254
1255
  ...f
1255
1256
  }, g = u?.KeyframeResolver || lt;
1256
- this.keyframeResolver = new g(o, (y, b, V) => this.onKeyframesResolved(y, b, h, !V), l, c, u), this.keyframeResolver?.scheduleResolve();
1257
+ this.keyframeResolver = new g(o, (m, T, V) => this.onKeyframesResolved(m, T, h, !V), l, c, u), this.keyframeResolver?.scheduleResolve();
1257
1258
  }
1258
1259
  onKeyframesResolved(t, n, s, i) {
1259
1260
  this.keyframeResolver = void 0;
1260
1261
  const { name: r, type: a, velocity: o, delay: l, isHandoff: c, onUpdate: u } = s;
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);
1262
+ this.resolvedAt = R.now(), ki(t, r, a, o) || ((I.instantAnimations || !l) && u?.(rt(t, s, n)), t[0] = t[t.length - 1], Ge(s), s.repeat = 0);
1262
1263
  const h = {
1263
- startTime: i ? this.resolvedAt ? this.resolvedAt - this.createdAt > Ki ? this.resolvedAt : this.createdAt : this.createdAt : void 0,
1264
+ startTime: i ? this.resolvedAt ? this.resolvedAt - this.createdAt > $i ? this.resolvedAt : this.createdAt : this.createdAt : void 0,
1264
1265
  finalKeyframe: n,
1265
1266
  ...s,
1266
1267
  keyframes: t
1267
- }, g = !c && Ii(h) ? new Pi({
1268
+ }, g = !c && Ki(h) ? new Oi({
1268
1269
  ...h,
1269
1270
  element: h.motionValue.owner.current
1270
1271
  }) : new ot(h);
@@ -1278,7 +1279,7 @@ class $i extends at {
1278
1279
  });
1279
1280
  }
1280
1281
  get animation() {
1281
- return this._animation || (this.keyframeResolver?.resume(), Vi()), this._animation;
1282
+ return this._animation || (this.keyframeResolver?.resume(), Si()), this._animation;
1282
1283
  }
1283
1284
  get duration() {
1284
1285
  return this.animation.duration;
@@ -1320,7 +1321,7 @@ class $i extends at {
1320
1321
  this._animation && this.animation.cancel(), this.keyframeResolver?.cancel();
1321
1322
  }
1322
1323
  }
1323
- class Li {
1324
+ class Wi {
1324
1325
  constructor(t) {
1325
1326
  this.stop = () => this.runAll("stop"), this.animations = t.filter(Boolean);
1326
1327
  }
@@ -1364,10 +1365,10 @@ class Li {
1364
1365
  return this.getAll("startTime");
1365
1366
  }
1366
1367
  get duration() {
1367
- return It(this.animations, "duration");
1368
+ return Kt(this.animations, "duration");
1368
1369
  }
1369
1370
  get iterationDuration() {
1370
- return It(this.animations, "iterationDuration");
1371
+ return Kt(this.animations, "iterationDuration");
1371
1372
  }
1372
1373
  runAll(t) {
1373
1374
  this.animations.forEach((n) => n[t]());
@@ -1385,7 +1386,7 @@ class Li {
1385
1386
  this.runAll("complete");
1386
1387
  }
1387
1388
  }
1388
- function It(e, t) {
1389
+ function Kt(e, t) {
1389
1390
  let n = 0;
1390
1391
  for (let s = 0; s < e.length; s++) {
1391
1392
  const i = e[s][t];
@@ -1393,40 +1394,40 @@ function It(e, t) {
1393
1394
  }
1394
1395
  return n;
1395
1396
  }
1396
- class Wi extends Li {
1397
+ class _i extends Wi {
1397
1398
  then(t, n) {
1398
1399
  return this.finished.finally(t).then(() => {
1399
1400
  });
1400
1401
  }
1401
1402
  }
1402
- const _i = (
1403
+ const ji = (
1403
1404
  // eslint-disable-next-line redos-detector/no-unsafe-regex -- false positive, as it can match a lot of words
1404
1405
  /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u
1405
1406
  );
1406
- function ji(e) {
1407
- const t = _i.exec(e);
1407
+ function Ui(e) {
1408
+ const t = ji.exec(e);
1408
1409
  if (!t)
1409
1410
  return [,];
1410
1411
  const [, n, s, i] = t;
1411
1412
  return [`--${n ?? s}`, i];
1412
1413
  }
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);
1414
+ const Gi = 4;
1415
+ function Kn(e, t, n = 1) {
1416
+ k(n <= Gi, `Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`, "max-css-var-depth");
1417
+ const [s, i] = Ui(e);
1417
1418
  if (!s)
1418
1419
  return;
1419
1420
  const r = window.getComputedStyle(t).getPropertyValue(s);
1420
1421
  if (r) {
1421
1422
  const a = r.trim();
1422
- return Qt(a) ? parseFloat(a) : a;
1423
+ return en(a) ? parseFloat(a) : a;
1423
1424
  }
1424
- return et(i) ? In(i, t, n + 1) : i;
1425
+ return et(i) ? Kn(i, t, n + 1) : i;
1425
1426
  }
1426
- function Kn(e, t) {
1427
+ function $n(e, t) {
1427
1428
  return e?.[t] ?? e?.default ?? e;
1428
1429
  }
1429
- const $n = /* @__PURE__ */ new Set([
1430
+ const Ln = /* @__PURE__ */ new Set([
1430
1431
  "width",
1431
1432
  "height",
1432
1433
  "top",
@@ -1434,15 +1435,15 @@ const $n = /* @__PURE__ */ new Set([
1434
1435
  "right",
1435
1436
  "bottom",
1436
1437
  ...Q
1437
- ]), Gi = {
1438
+ ]), Yi = {
1438
1439
  test: (e) => e === "auto",
1439
1440
  parse: (e) => e
1440
- }, Ln = (e) => (t) => t.test(e), Wn = [Z, d, q, L, Bs, ks, Gi], Kt = (e) => Wn.find(Ln(e));
1441
- function Yi(e) {
1442
- return typeof e == "number" ? e === 0 : e !== null ? e === "none" || e === "0" || en(e) : !0;
1441
+ }, Wn = (e) => (t) => t.test(e), _n = [Z, p, q, L, Is, Bs, Yi], $t = (e) => _n.find(Wn(e));
1442
+ function zi(e) {
1443
+ return typeof e == "number" ? e === 0 : e !== null ? e === "none" || e === "0" || tn(e) : !0;
1443
1444
  }
1444
- const zi = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
1445
- function Xi(e) {
1445
+ const Xi = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
1446
+ function qi(e) {
1446
1447
  const [t, n] = e.slice(0, -1).split("(");
1447
1448
  if (t === "drop-shadow")
1448
1449
  return e;
@@ -1450,19 +1451,19 @@ function Xi(e) {
1450
1451
  if (!s)
1451
1452
  return e;
1452
1453
  const i = n.replace(s, "");
1453
- let r = zi.has(t) ? 1 : 0;
1454
+ let r = Xi.has(t) ? 1 : 0;
1454
1455
  return s !== n && (r *= 100), t + "(" + r + i + ")";
1455
1456
  }
1456
- const qi = /\b([a-z-]*)\(.*?\)/gu, Ye = {
1457
+ const Hi = /\b([a-z-]*)\(.*?\)/gu, Ye = {
1457
1458
  ...W,
1458
1459
  getAnimatableNone: (e) => {
1459
- const t = e.match(qi);
1460
- return t ? t.map(Xi).join(" ") : e;
1460
+ const t = e.match(Hi);
1461
+ return t ? t.map(qi).join(" ") : e;
1461
1462
  }
1462
- }, $t = {
1463
+ }, Lt = {
1463
1464
  ...Z,
1464
1465
  transform: Math.round
1465
- }, Hi = {
1466
+ }, Zi = {
1466
1467
  rotate: L,
1467
1468
  rotateX: L,
1468
1469
  rotateY: L,
@@ -1474,94 +1475,94 @@ const qi = /\b([a-z-]*)\(.*?\)/gu, Ye = {
1474
1475
  skew: L,
1475
1476
  skewX: L,
1476
1477
  skewY: L,
1477
- distance: d,
1478
- translateX: d,
1479
- translateY: d,
1480
- translateZ: d,
1481
- x: d,
1482
- y: d,
1483
- z: d,
1484
- perspective: d,
1485
- transformPerspective: d,
1478
+ distance: p,
1479
+ translateX: p,
1480
+ translateY: p,
1481
+ translateZ: p,
1482
+ x: p,
1483
+ y: p,
1484
+ z: p,
1485
+ perspective: p,
1486
+ transformPerspective: p,
1486
1487
  opacity: le,
1487
- originX: At,
1488
- originY: At,
1489
- originZ: d
1488
+ originX: Mt,
1489
+ originY: Mt,
1490
+ originZ: p
1490
1491
  }, ct = {
1491
1492
  // Border props
1492
- borderWidth: d,
1493
- borderTopWidth: d,
1494
- borderRightWidth: d,
1495
- borderBottomWidth: d,
1496
- borderLeftWidth: d,
1497
- borderRadius: d,
1498
- radius: d,
1499
- borderTopLeftRadius: d,
1500
- borderTopRightRadius: d,
1501
- borderBottomRightRadius: d,
1502
- borderBottomLeftRadius: d,
1493
+ borderWidth: p,
1494
+ borderTopWidth: p,
1495
+ borderRightWidth: p,
1496
+ borderBottomWidth: p,
1497
+ borderLeftWidth: p,
1498
+ borderRadius: p,
1499
+ radius: p,
1500
+ borderTopLeftRadius: p,
1501
+ borderTopRightRadius: p,
1502
+ borderBottomRightRadius: p,
1503
+ borderBottomLeftRadius: p,
1503
1504
  // Positioning props
1504
- width: d,
1505
- maxWidth: d,
1506
- height: d,
1507
- maxHeight: d,
1508
- top: d,
1509
- right: d,
1510
- bottom: d,
1511
- left: d,
1505
+ width: p,
1506
+ maxWidth: p,
1507
+ height: p,
1508
+ maxHeight: p,
1509
+ top: p,
1510
+ right: p,
1511
+ bottom: p,
1512
+ left: p,
1512
1513
  // Spacing props
1513
- padding: d,
1514
- paddingTop: d,
1515
- paddingRight: d,
1516
- paddingBottom: d,
1517
- paddingLeft: d,
1518
- margin: d,
1519
- marginTop: d,
1520
- marginRight: d,
1521
- marginBottom: d,
1522
- marginLeft: d,
1514
+ padding: p,
1515
+ paddingTop: p,
1516
+ paddingRight: p,
1517
+ paddingBottom: p,
1518
+ paddingLeft: p,
1519
+ margin: p,
1520
+ marginTop: p,
1521
+ marginRight: p,
1522
+ marginBottom: p,
1523
+ marginLeft: p,
1523
1524
  // Misc
1524
- backgroundPositionX: d,
1525
- backgroundPositionY: d,
1526
- ...Hi,
1527
- zIndex: $t,
1525
+ backgroundPositionX: p,
1526
+ backgroundPositionY: p,
1527
+ ...Zi,
1528
+ zIndex: Lt,
1528
1529
  // SVG
1529
1530
  fillOpacity: le,
1530
1531
  strokeOpacity: le,
1531
- numOctaves: $t
1532
- }, Zi = {
1532
+ numOctaves: Lt
1533
+ }, Ji = {
1533
1534
  ...ct,
1534
1535
  // Color props
1535
- color: F,
1536
- backgroundColor: F,
1537
- outlineColor: F,
1538
- fill: F,
1539
- stroke: F,
1536
+ color: D,
1537
+ backgroundColor: D,
1538
+ outlineColor: D,
1539
+ fill: D,
1540
+ stroke: D,
1540
1541
  // Border props
1541
- borderColor: F,
1542
- borderTopColor: F,
1543
- borderRightColor: F,
1544
- borderBottomColor: F,
1545
- borderLeftColor: F,
1542
+ borderColor: D,
1543
+ borderTopColor: D,
1544
+ borderRightColor: D,
1545
+ borderBottomColor: D,
1546
+ borderLeftColor: D,
1546
1547
  filter: Ye,
1547
1548
  WebkitFilter: Ye
1548
- }, _n = (e) => Zi[e];
1549
- function jn(e, t) {
1550
- let n = _n(e);
1549
+ }, jn = (e) => Ji[e];
1550
+ function Un(e, t) {
1551
+ let n = jn(e);
1551
1552
  return n !== Ye && (n = W), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
1552
1553
  }
1553
- const Ji = /* @__PURE__ */ new Set(["auto", "none", "0"]);
1554
- function Qi(e, t, n) {
1554
+ const Qi = /* @__PURE__ */ new Set(["auto", "none", "0"]);
1555
+ function er(e, t, n) {
1555
1556
  let s = 0, i;
1556
1557
  for (; s < e.length && !i; ) {
1557
1558
  const r = e[s];
1558
- typeof r == "string" && !Ji.has(r) && ue(r).values.length && (i = e[s]), s++;
1559
+ typeof r == "string" && !Qi.has(r) && ue(r).values.length && (i = e[s]), s++;
1559
1560
  }
1560
1561
  if (i && n)
1561
1562
  for (const r of t)
1562
- e[r] = jn(n, i);
1563
+ e[r] = Un(n, i);
1563
1564
  }
1564
- class er extends lt {
1565
+ class tr extends lt {
1565
1566
  constructor(t, n, s, i, r) {
1566
1567
  super(t, n, s, i, r, !0);
1567
1568
  }
@@ -1573,15 +1574,15 @@ class er extends lt {
1573
1574
  for (let l = 0; l < t.length; l++) {
1574
1575
  let c = t[l];
1575
1576
  if (typeof c == "string" && (c = c.trim(), et(c))) {
1576
- const u = In(c, n.current);
1577
+ const u = Kn(c, n.current);
1577
1578
  u !== void 0 && (t[l] = u), l === t.length - 1 && (this.finalKeyframe = c);
1578
1579
  }
1579
1580
  }
1580
- if (this.resolveNoneKeyframes(), !$n.has(s) || t.length !== 2)
1581
+ if (this.resolveNoneKeyframes(), !Ln.has(s) || t.length !== 2)
1581
1582
  return;
1582
- const [i, r] = t, a = Kt(i), o = Kt(r);
1583
+ const [i, r] = t, a = $t(i), o = $t(r);
1583
1584
  if (a !== o)
1584
- if (Ot(a) && Ot(o))
1585
+ if (Nt(a) && Nt(o))
1585
1586
  for (let l = 0; l < t.length; l++) {
1586
1587
  const c = t[l];
1587
1588
  typeof c == "string" && (t[l] = parseFloat(c));
@@ -1591,8 +1592,8 @@ class er extends lt {
1591
1592
  resolveNoneKeyframes() {
1592
1593
  const { unresolvedKeyframes: t, name: n } = this, s = [];
1593
1594
  for (let i = 0; i < t.length; i++)
1594
- (t[i] === null || Yi(t[i])) && s.push(i);
1595
- s.length && Qi(t, s, n);
1595
+ (t[i] === null || zi(t[i])) && s.push(i);
1596
+ s.length && er(t, s, n);
1596
1597
  }
1597
1598
  measureInitialState() {
1598
1599
  const { element: t, unresolvedKeyframes: n, name: s } = this;
@@ -1614,7 +1615,7 @@ class er extends lt {
1614
1615
  }), this.resolveNoneKeyframes();
1615
1616
  }
1616
1617
  }
1617
- function tr(e, t, n) {
1618
+ function nr(e, t, n) {
1618
1619
  if (e instanceof EventTarget)
1619
1620
  return [e];
1620
1621
  if (typeof e == "string") {
@@ -1624,8 +1625,8 @@ function tr(e, t, n) {
1624
1625
  }
1625
1626
  return Array.from(e);
1626
1627
  }
1627
- const Un = (e, t) => t && typeof e == "number" ? t.transform(e) : e, Lt = 30, nr = (e) => !isNaN(parseFloat(e));
1628
- class sr {
1628
+ const Gn = (e, t) => t && typeof e == "number" ? t.transform(e) : e, Wt = 30, sr = (e) => !isNaN(parseFloat(e));
1629
+ class ir {
1629
1630
  /**
1630
1631
  * @param init - The initiating value
1631
1632
  * @param config - Optional configuration options
@@ -1641,7 +1642,7 @@ class sr {
1641
1642
  }, this.hasAnimated = !1, this.setCurrent(t), this.owner = n.owner;
1642
1643
  }
1643
1644
  setCurrent(t) {
1644
- this.current = t, this.updatedAt = R.now(), this.canTrackVelocity === null && t !== void 0 && (this.canTrackVelocity = nr(this.current));
1645
+ this.current = t, this.updatedAt = R.now(), this.canTrackVelocity === null && t !== void 0 && (this.canTrackVelocity = sr(this.current));
1645
1646
  }
1646
1647
  setPrevFrameValue(t = this.current) {
1647
1648
  this.prevFrameValue = t, this.prevUpdatedAt = this.updatedAt;
@@ -1687,10 +1688,10 @@ class sr {
1687
1688
  * @deprecated
1688
1689
  */
1689
1690
  onChange(t) {
1690
- return process.env.NODE_ENV !== "production" && sn(!1, 'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'), this.on("change", t);
1691
+ return process.env.NODE_ENV !== "production" && rn(!1, 'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'), this.on("change", t);
1691
1692
  }
1692
1693
  on(t, n) {
1693
- this.events[t] || (this.events[t] = new tn());
1694
+ this.events[t] || (this.events[t] = new nn());
1694
1695
  const s = this.events[t].add(n);
1695
1696
  return t === "change" ? () => {
1696
1697
  s(), K.read(() => {
@@ -1770,10 +1771,10 @@ class sr {
1770
1771
  */
1771
1772
  getVelocity() {
1772
1773
  const t = R.now();
1773
- if (!this.canTrackVelocity || this.prevFrameValue === void 0 || t - this.updatedAt > Lt)
1774
+ if (!this.canTrackVelocity || this.prevFrameValue === void 0 || t - this.updatedAt > Wt)
1774
1775
  return 0;
1775
- const n = Math.min(this.updatedAt - this.prevUpdatedAt, Lt);
1776
- return nn(parseFloat(this.current) - parseFloat(this.prevFrameValue), n);
1776
+ const n = Math.min(this.updatedAt - this.prevUpdatedAt, Wt);
1777
+ return sn(parseFloat(this.current) - parseFloat(this.prevFrameValue), n);
1777
1778
  }
1778
1779
  /**
1779
1780
  * Registers a new animation to control this `MotionValue`. Only one
@@ -1825,129 +1826,129 @@ class sr {
1825
1826
  }
1826
1827
  }
1827
1828
  function fe(e, t) {
1828
- return new sr(e, t);
1829
+ return new ir(e, t);
1829
1830
  }
1830
- const { schedule: ir } = /* @__PURE__ */ gn(queueMicrotask, !1);
1831
- function Gn(e) {
1832
- return gs(e) && "ownerSVGElement" in e;
1831
+ const { schedule: rr } = /* @__PURE__ */ yn(queueMicrotask, !1);
1832
+ function Yn(e) {
1833
+ return ys(e) && "ownerSVGElement" in e;
1833
1834
  }
1834
- function rr(e) {
1835
- return Gn(e) && e.tagName === "svg";
1835
+ function ar(e) {
1836
+ return Yn(e) && e.tagName === "svg";
1836
1837
  }
1837
- const D = (e) => !!(e && e.getVelocity), ar = [...Wn, F, W], or = (e) => ar.find(Ln(e));
1838
+ const F = (e) => !!(e && e.getVelocity), or = [..._n, D, W], lr = (e) => or.find(Wn(e));
1838
1839
  function ft(e) {
1839
1840
  return typeof e == "object" && !Array.isArray(e);
1840
1841
  }
1841
- function Yn(e, t, n, s) {
1842
- return typeof e == "string" && ft(t) ? tr(e, n, s) : e instanceof NodeList ? Array.from(e) : Array.isArray(e) ? e : [e];
1842
+ function zn(e, t, n, s) {
1843
+ return typeof e == "string" && ft(t) ? nr(e, n, s) : e instanceof NodeList ? Array.from(e) : Array.isArray(e) ? e : [e];
1843
1844
  }
1844
- function lr(e, t, n) {
1845
+ function ur(e, t, n) {
1845
1846
  return e * (t + 1);
1846
1847
  }
1847
- function Wt(e, t, n, s) {
1848
+ function _t(e, t, n, s) {
1848
1849
  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;
1849
1850
  }
1850
- function ur(e, t, n) {
1851
+ function cr(e, t, n) {
1851
1852
  for (let s = 0; s < e.length; s++) {
1852
1853
  const i = e[s];
1853
- i.at > t && i.at < n && (Jt(e, i), s--);
1854
+ i.at > t && i.at < n && (Qt(e, i), s--);
1854
1855
  }
1855
1856
  }
1856
- function cr(e, t, n, s, i, r) {
1857
- ur(e, i, r);
1857
+ function fr(e, t, n, s, i, r) {
1858
+ cr(e, i, r);
1858
1859
  for (let a = 0; a < t.length; a++)
1859
1860
  e.push({
1860
1861
  value: t[a],
1861
1862
  at: J(i, r, s[a]),
1862
- easing: pn(n, a)
1863
+ easing: mn(n, a)
1863
1864
  });
1864
1865
  }
1865
- function fr(e, t) {
1866
+ function hr(e, t) {
1866
1867
  for (let n = 0; n < e.length; n++)
1867
1868
  e[n] = e[n] / (t + 1);
1868
1869
  }
1869
- function hr(e, t) {
1870
+ function dr(e, t) {
1870
1871
  return e.at === t.at ? e.value === null ? 1 : t.value === null ? -1 : 0 : e.at - t.at;
1871
1872
  }
1872
- const dr = "easeInOut", pr = 20;
1873
- function mr(e, { defaultTransition: t = {}, ...n } = {}, s, i) {
1873
+ const pr = "easeInOut", mr = 20;
1874
+ function gr(e, { defaultTransition: t = {}, ...n } = {}, s, i) {
1874
1875
  const r = t.duration || 0.3, a = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), l = {}, c = /* @__PURE__ */ new Map();
1875
1876
  let u = 0, f = 0, h = 0;
1876
1877
  for (let g = 0; g < e.length; g++) {
1877
- const y = e[g];
1878
- if (typeof y == "string") {
1879
- c.set(y, f);
1878
+ const m = e[g];
1879
+ if (typeof m == "string") {
1880
+ c.set(m, f);
1880
1881
  continue;
1881
- } else if (!Array.isArray(y)) {
1882
- c.set(y.name, Wt(f, y.at, u, c));
1882
+ } else if (!Array.isArray(m)) {
1883
+ c.set(m.name, _t(f, m.at, u, c));
1883
1884
  continue;
1884
1885
  }
1885
- let [b, V, T = {}] = y;
1886
- T.at !== void 0 && (f = Wt(f, T.at, u, c));
1886
+ let [T, V, v = {}] = m;
1887
+ v.at !== void 0 && (f = _t(f, v.at, u, c));
1887
1888
  let A = 0;
1888
- const S = (v, p, w, C = 0, m = 0) => {
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;
1891
- const pt = typeof E == "function" ? E(C, m) : E, mt = x.length, gt = ut(xe) ? xe : i?.[xe || "keyframes"];
1889
+ const S = (w, d, y, M = 0, b = 0) => {
1890
+ const x = yr(w), { delay: E = 0, times: N = Rn(x), type: xe = "keyframes", repeat: te, repeatType: Ma, repeatDelay: Ca = 0, ...rs } = d;
1891
+ let { ease: $ = t.ease || "easeOut", duration: B } = d;
1892
+ const pt = typeof E == "function" ? E(M, b) : E, mt = x.length, gt = ut(xe) ? xe : i?.[xe || "keyframes"];
1892
1893
  if (mt <= 2 && gt) {
1893
1894
  let ne = 100;
1894
- if (mt === 2 && Tr(x)) {
1895
+ if (mt === 2 && vr(x)) {
1895
1896
  const se = x[1] - x[0];
1896
1897
  ne = Math.abs(se);
1897
1898
  }
1898
- const ge = { ...is };
1899
+ const ge = { ...rs };
1899
1900
  B !== void 0 && (ge.duration = /* @__PURE__ */ O(B));
1900
- const ye = Cn(ge, ne, gt);
1901
+ const ye = Dn(ge, ne, gt);
1901
1902
  $ = ye.ease, B = ye.duration;
1902
1903
  }
1903
1904
  B ?? (B = r);
1904
1905
  const yt = f + pt;
1905
1906
  N.length === 1 && N[0] === 0 && (N[1] = 1);
1906
1907
  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);
1908
+ if (bt > 0 && En(N, bt), x.length === 1 && x.unshift(null), te) {
1909
+ k(te < mr, "Repeat count too high, must be less than 20", "repeat-count-high"), B = ur(B, te);
1909
1910
  const ne = [...x], ge = [...N];
1910
1911
  $ = Array.isArray($) ? [...$] : [$];
1911
1912
  const ye = [...$];
1912
1913
  for (let se = 0; se < te; se++) {
1913
1914
  x.push(...ne);
1914
1915
  for (let ie = 0; ie < ne.length; ie++)
1915
- N.push(ge[ie] + (se + 1)), $.push(ie === 0 ? "linear" : pn(ye, ie - 1));
1916
+ N.push(ge[ie] + (se + 1)), $.push(ie === 0 ? "linear" : mn(ye, ie - 1));
1916
1917
  }
1917
- fr(N, te);
1918
+ hr(N, te);
1918
1919
  }
1919
1920
  const Tt = yt + B;
1920
- cr(w, x, $, N, yt, Tt), A = Math.max(pt + B, A), h = Math.max(Tt, h);
1921
+ fr(y, x, $, N, yt, Tt), A = Math.max(pt + B, A), h = Math.max(Tt, h);
1921
1922
  };
1922
- if (D(b)) {
1923
- const v = _t(b, o);
1924
- S(V, T, jt("default", v));
1923
+ if (F(T)) {
1924
+ const w = jt(T, o);
1925
+ S(V, v, Ut("default", w));
1925
1926
  } else {
1926
- const v = Yn(b, V, s, l), p = v.length;
1927
- for (let w = 0; w < p; w++) {
1928
- V = V, T = T;
1929
- const C = v[w], m = _t(C, o);
1927
+ const w = zn(T, V, s, l), d = w.length;
1928
+ for (let y = 0; y < d; y++) {
1929
+ V = V, v = v;
1930
+ const M = w[y], b = jt(M, o);
1930
1931
  for (const x in V)
1931
- S(V[x], yr(T, x), jt(x, m), w, p);
1932
+ S(V[x], br(v, x), Ut(x, b), y, d);
1932
1933
  }
1933
1934
  }
1934
1935
  u = f, f += A;
1935
1936
  }
1936
- return o.forEach((g, y) => {
1937
- for (const b in g) {
1938
- const V = g[b];
1939
- V.sort(hr);
1940
- const T = [], A = [], S = [];
1941
- for (let p = 0; p < V.length; p++) {
1942
- const { at: w, value: C, easing: m } = V[p];
1943
- T.push(C), A.push(/* @__PURE__ */ Ze(0, h, w)), S.push(m || "easeOut");
1937
+ return o.forEach((g, m) => {
1938
+ for (const T in g) {
1939
+ const V = g[T];
1940
+ V.sort(dr);
1941
+ const v = [], A = [], S = [];
1942
+ for (let d = 0; d < V.length; d++) {
1943
+ const { at: y, value: M, easing: b } = V[d];
1944
+ v.push(M), A.push(/* @__PURE__ */ Ze(0, h, y)), S.push(b || "easeOut");
1944
1945
  }
1945
- A[0] !== 0 && (A.unshift(0), T.unshift(T[0]), S.unshift(dr)), A[A.length - 1] !== 1 && (A.push(1), T.push(null)), a.has(y) || a.set(y, {
1946
+ A[0] !== 0 && (A.unshift(0), v.unshift(v[0]), S.unshift(pr)), A[A.length - 1] !== 1 && (A.push(1), v.push(null)), a.has(m) || a.set(m, {
1946
1947
  keyframes: {},
1947
1948
  transition: {}
1948
1949
  });
1949
- const v = a.get(y);
1950
- v.keyframes[b] = T, v.transition[b] = {
1950
+ const w = a.get(m);
1951
+ w.keyframes[T] = v, w.transition[T] = {
1951
1952
  ...t,
1952
1953
  duration: h,
1953
1954
  ease: S,
@@ -1957,102 +1958,102 @@ function mr(e, { defaultTransition: t = {}, ...n } = {}, s, i) {
1957
1958
  }
1958
1959
  }), a;
1959
1960
  }
1960
- function _t(e, t) {
1961
+ function jt(e, t) {
1961
1962
  return !t.has(e) && t.set(e, {}), t.get(e);
1962
1963
  }
1963
- function jt(e, t) {
1964
+ function Ut(e, t) {
1964
1965
  return t[e] || (t[e] = []), t[e];
1965
1966
  }
1966
- function gr(e) {
1967
+ function yr(e) {
1967
1968
  return Array.isArray(e) ? e : [e];
1968
1969
  }
1969
- function yr(e, t) {
1970
+ function br(e, t) {
1970
1971
  return e && e[t] ? {
1971
1972
  ...e,
1972
1973
  ...e[t]
1973
1974
  } : { ...e };
1974
1975
  }
1975
- const br = (e) => typeof e == "number", Tr = (e) => e.every(br), he = /* @__PURE__ */ new WeakMap(), vr = (e) => Array.isArray(e);
1976
- function Ut(e) {
1976
+ const Tr = (e) => typeof e == "number", vr = (e) => e.every(Tr), he = /* @__PURE__ */ new WeakMap(), Vr = (e) => Array.isArray(e);
1977
+ function Gt(e) {
1977
1978
  const t = [{}, {}];
1978
1979
  return e?.values.forEach((n, s) => {
1979
1980
  t[0][s] = n.get(), t[1][s] = n.getVelocity();
1980
1981
  }), t;
1981
1982
  }
1982
- function zn(e, t, n, s) {
1983
+ function Xn(e, t, n, s) {
1983
1984
  if (typeof t == "function") {
1984
- const [i, r] = Ut(s);
1985
+ const [i, r] = Gt(s);
1985
1986
  t = t(n !== void 0 ? n : e.custom, i, r);
1986
1987
  }
1987
1988
  if (typeof t == "string" && (t = e.variants && e.variants[t]), typeof t == "function") {
1988
- const [i, r] = Ut(s);
1989
+ const [i, r] = Gt(s);
1989
1990
  t = t(n !== void 0 ? n : e.custom, i, r);
1990
1991
  }
1991
1992
  return t;
1992
1993
  }
1993
- function Vr(e, t, n) {
1994
+ function Sr(e, t, n) {
1994
1995
  const s = e.getProps();
1995
- return zn(s, t, s.custom, e);
1996
+ return Xn(s, t, s.custom, e);
1996
1997
  }
1997
- function Sr(e, t, n) {
1998
+ function wr(e, t, n) {
1998
1999
  e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, fe(n));
1999
2000
  }
2000
- function wr(e) {
2001
- return vr(e) ? e[e.length - 1] || 0 : e;
2001
+ function xr(e) {
2002
+ return Vr(e) ? e[e.length - 1] || 0 : e;
2002
2003
  }
2003
- function xr(e, t) {
2004
- const n = Vr(e, t);
2004
+ function Ar(e, t) {
2005
+ const n = Sr(e, t);
2005
2006
  let { transitionEnd: s = {}, transition: i = {}, ...r } = n || {};
2006
2007
  r = { ...r, ...s };
2007
2008
  for (const a in r) {
2008
- const o = wr(r[a]);
2009
- Sr(e, a, o);
2009
+ const o = xr(r[a]);
2010
+ wr(e, a, o);
2010
2011
  }
2011
2012
  }
2012
- function Ar(e) {
2013
- return !!(D(e) && e.add);
2013
+ function Mr(e) {
2014
+ return !!(F(e) && e.add);
2014
2015
  }
2015
- function Mr(e, t) {
2016
+ function Cr(e, t) {
2016
2017
  const n = e.getValue("willChange");
2017
- if (Ar(n))
2018
+ if (Mr(n))
2018
2019
  return n.add(t);
2019
2020
  if (!n && I.WillChange) {
2020
2021
  const s = new I.WillChange("auto");
2021
2022
  e.addValue("willChange", s), s.add(t);
2022
2023
  }
2023
2024
  }
2024
- const ht = (e) => e.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), Cr = "framerAppearId", Fr = "data-" + ht(Cr);
2025
- function Dr(e) {
2025
+ const ht = (e) => e.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), Dr = "framerAppearId", Fr = "data-" + ht(Dr);
2026
+ function Er(e) {
2026
2027
  return e.props[Fr];
2027
2028
  }
2028
- const Er = (e) => e !== null;
2029
- function Rr(e, { repeat: t, repeatType: n = "loop" }, s) {
2030
- const i = e.filter(Er), r = t && n !== "loop" && t % 2 === 1 ? 0 : i.length - 1;
2029
+ const Rr = (e) => e !== null;
2030
+ function Pr(e, { repeat: t, repeatType: n = "loop" }, s) {
2031
+ const i = e.filter(Rr), r = t && n !== "loop" && t % 2 === 1 ? 0 : i.length - 1;
2031
2032
  return i[r];
2032
2033
  }
2033
- const Pr = {
2034
+ const Or = {
2034
2035
  type: "spring",
2035
2036
  stiffness: 500,
2036
2037
  damping: 25,
2037
2038
  restSpeed: 10
2038
- }, Or = (e) => ({
2039
+ }, Nr = (e) => ({
2039
2040
  type: "spring",
2040
2041
  stiffness: 550,
2041
2042
  damping: e === 0 ? 2 * Math.sqrt(550) : 30,
2042
2043
  restSpeed: 10
2043
- }), Nr = {
2044
+ }), kr = {
2044
2045
  type: "keyframes",
2045
2046
  duration: 0.8
2046
- }, kr = {
2047
+ }, Br = {
2047
2048
  type: "keyframes",
2048
2049
  ease: [0.25, 0.1, 0.35, 1],
2049
2050
  duration: 0.3
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 }) {
2051
+ }, Ir = (e, { keyframes: t }) => t.length > 2 ? kr : ee.has(e) ? e.startsWith("scale") ? Nr(t[1]) : Or : Br;
2052
+ function Kr({ when: e, delay: t, delayChildren: n, staggerChildren: s, staggerDirection: i, repeat: r, repeatType: a, repeatDelay: o, from: l, elapsed: c, ...u }) {
2052
2053
  return !!Object.keys(u).length;
2053
2054
  }
2054
- const Xn = (e, t, n, s = {}, i, r) => (a) => {
2055
- const o = Kn(s, e) || {}, l = o.delay || s.delay || 0;
2055
+ const qn = (e, t, n, s = {}, i, r) => (a) => {
2056
+ const o = $n(s, e) || {}, l = o.delay || s.delay || 0;
2056
2057
  let { elapsed: c = 0 } = s;
2057
2058
  c = c - /* @__PURE__ */ O(l);
2058
2059
  const u = {
@@ -2071,10 +2072,10 @@ const Xn = (e, t, n, s = {}, i, r) => (a) => {
2071
2072
  motionValue: t,
2072
2073
  element: r ? void 0 : i
2073
2074
  };
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);
2075
+ Kr(o) || Object.assign(u, Ir(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);
2075
2076
  let f = !1;
2076
2077
  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) {
2077
- const h = Rr(u.keyframes, o);
2078
+ const h = Pr(u.keyframes, o);
2078
2079
  if (h !== void 0) {
2079
2080
  K.update(() => {
2080
2081
  u.onUpdate(h), u.onComplete();
@@ -2082,51 +2083,51 @@ const Xn = (e, t, n, s = {}, i, r) => (a) => {
2082
2083
  return;
2083
2084
  }
2084
2085
  }
2085
- return o.isSync ? new ot(u) : new $i(u);
2086
+ return o.isSync ? new ot(u) : new Li(u);
2086
2087
  };
2087
- function Kr({ protectedKeys: e, needsAnimating: t }, n) {
2088
+ function $r({ protectedKeys: e, needsAnimating: t }, n) {
2088
2089
  const s = e.hasOwnProperty(n) && t[n] !== !0;
2089
2090
  return t[n] = !1, s;
2090
2091
  }
2091
- function $r(e, t, { delay: n = 0, transitionOverride: s, type: i } = {}) {
2092
+ function Lr(e, t, { delay: n = 0, transitionOverride: s, type: i } = {}) {
2092
2093
  let { transition: r = e.getDefaultTransition(), transitionEnd: a, ...o } = t;
2093
2094
  s && (r = s);
2094
2095
  const l = [], c = i && e.animationState && e.animationState.getState()[i];
2095
2096
  for (const u in o) {
2096
2097
  const f = e.getValue(u, e.latestValues[u] ?? null), h = o[u];
2097
- if (h === void 0 || c && Kr(c, u))
2098
+ if (h === void 0 || c && $r(c, u))
2098
2099
  continue;
2099
2100
  const g = {
2100
2101
  delay: n,
2101
- ...Kn(r || {}, u)
2102
- }, y = f.get();
2103
- if (y !== void 0 && !f.isAnimating && !Array.isArray(h) && h === y && !g.velocity)
2102
+ ...$n(r || {}, u)
2103
+ }, m = f.get();
2104
+ if (m !== void 0 && !f.isAnimating && !Array.isArray(h) && h === m && !g.velocity)
2104
2105
  continue;
2105
- let b = !1;
2106
+ let T = !1;
2106
2107
  if (window.MotionHandoffAnimation) {
2107
- const T = Dr(e);
2108
- if (T) {
2109
- const A = window.MotionHandoffAnimation(T, u, K);
2110
- A !== null && (g.startTime = A, b = !0);
2108
+ const v = Er(e);
2109
+ if (v) {
2110
+ const A = window.MotionHandoffAnimation(v, u, K);
2111
+ A !== null && (g.startTime = A, T = !0);
2111
2112
  }
2112
2113
  }
2113
- Mr(e, u), f.start(Xn(u, f, h, e.shouldReduceMotion && $n.has(u) ? { type: !1 } : g, e, b));
2114
+ Cr(e, u), f.start(qn(u, f, h, e.shouldReduceMotion && Ln.has(u) ? { type: !1 } : g, e, T));
2114
2115
  const V = f.animation;
2115
2116
  V && l.push(V);
2116
2117
  }
2117
2118
  return a && Promise.all(l).then(() => {
2118
2119
  K.update(() => {
2119
- a && xr(e, a);
2120
+ a && Ar(e, a);
2120
2121
  });
2121
2122
  }), l;
2122
2123
  }
2123
- function Lr({ top: e, left: t, right: n, bottom: s }) {
2124
+ function Wr({ top: e, left: t, right: n, bottom: s }) {
2124
2125
  return {
2125
2126
  x: { min: t, max: n },
2126
2127
  y: { min: e, max: s }
2127
2128
  };
2128
2129
  }
2129
- function Wr(e, t) {
2130
+ function _r(e, t) {
2130
2131
  if (!t)
2131
2132
  return e;
2132
2133
  const n = t({ x: e.left, y: e.top }), s = t({ x: e.right, y: e.bottom });
@@ -2137,10 +2138,10 @@ function Wr(e, t) {
2137
2138
  right: s.x
2138
2139
  };
2139
2140
  }
2140
- function _r(e, t) {
2141
- return Lr(Wr(e.getBoundingClientRect(), t));
2141
+ function jr(e, t) {
2142
+ return Wr(_r(e.getBoundingClientRect(), t));
2142
2143
  }
2143
- const Gt = {
2144
+ const Yt = {
2144
2145
  animation: [
2145
2146
  "animate",
2146
2147
  "variants",
@@ -2160,29 +2161,29 @@ const Gt = {
2160
2161
  inView: ["whileInView", "onViewportEnter", "onViewportLeave"],
2161
2162
  layout: ["layout", "layoutId"]
2162
2163
  }, ze = {};
2163
- for (const e in Gt)
2164
+ for (const e in Yt)
2164
2165
  ze[e] = {
2165
- isEnabled: (t) => Gt[e].some((n) => !!t[n])
2166
+ isEnabled: (t) => Yt[e].some((n) => !!t[n])
2166
2167
  };
2167
- const Yt = () => ({ min: 0, max: 0 }), dt = () => ({
2168
- x: Yt(),
2169
- y: Yt()
2170
- }), jr = typeof window < "u", Xe = { current: null }, qn = { current: !1 };
2171
- function Ur() {
2172
- if (qn.current = !0, !!jr)
2168
+ const zt = () => ({ min: 0, max: 0 }), dt = () => ({
2169
+ x: zt(),
2170
+ y: zt()
2171
+ }), Ur = typeof window < "u", Xe = { current: null }, Hn = { current: !1 };
2172
+ function Gr() {
2173
+ if (Hn.current = !0, !!Ur)
2173
2174
  if (window.matchMedia) {
2174
2175
  const e = window.matchMedia("(prefers-reduced-motion)"), t = () => Xe.current = e.matches;
2175
2176
  e.addEventListener("change", t), t();
2176
2177
  } else
2177
2178
  Xe.current = !1;
2178
2179
  }
2179
- function Gr(e) {
2180
+ function Yr(e) {
2180
2181
  return e !== null && typeof e == "object" && typeof e.start == "function";
2181
2182
  }
2182
- function Yr(e) {
2183
+ function zr(e) {
2183
2184
  return typeof e == "string" || Array.isArray(e);
2184
2185
  }
2185
- const zr = [
2186
+ const Xr = [
2186
2187
  "animate",
2187
2188
  "whileInView",
2188
2189
  "whileFocus",
@@ -2190,19 +2191,19 @@ const zr = [
2190
2191
  "whileTap",
2191
2192
  "whileDrag",
2192
2193
  "exit"
2193
- ], Xr = ["initial", ...zr];
2194
- function Hn(e) {
2195
- return Gr(e.animate) || Xr.some((t) => Yr(e[t]));
2194
+ ], qr = ["initial", ...Xr];
2195
+ function Zn(e) {
2196
+ return Yr(e.animate) || qr.some((t) => zr(e[t]));
2196
2197
  }
2197
- function qr(e) {
2198
- return !!(Hn(e) || e.variants);
2198
+ function Hr(e) {
2199
+ return !!(Zn(e) || e.variants);
2199
2200
  }
2200
- function Hr(e, t, n) {
2201
+ function Zr(e, t, n) {
2201
2202
  for (const s in t) {
2202
2203
  const i = t[s], r = n[s];
2203
- if (D(i))
2204
+ if (F(i))
2204
2205
  e.addValue(s, i);
2205
- else if (D(r))
2206
+ else if (F(r))
2206
2207
  e.addValue(s, fe(i, { owner: e }));
2207
2208
  else if (r !== i)
2208
2209
  if (e.hasValue(s)) {
@@ -2217,7 +2218,7 @@ function Hr(e, t, n) {
2217
2218
  t[s] === void 0 && e.removeValue(s);
2218
2219
  return t;
2219
2220
  }
2220
- const zt = [
2221
+ const Xt = [
2221
2222
  "AnimationStart",
2222
2223
  "AnimationComplete",
2223
2224
  "Update",
@@ -2226,7 +2227,7 @@ const zt = [
2226
2227
  "LayoutAnimationStart",
2227
2228
  "LayoutAnimationComplete"
2228
2229
  ];
2229
- class Zn {
2230
+ class Jn {
2230
2231
  /**
2231
2232
  * This method takes React props and returns found MotionValues. For example, HTML
2232
2233
  * MotionValues will be found within the style prop, whereas for Three.js within attribute arrays.
@@ -2245,15 +2246,15 @@ class Zn {
2245
2246
  this.renderScheduledAt < h && (this.renderScheduledAt = h, K.render(this.render, !1, !0));
2246
2247
  };
2247
2248
  const { latestValues: l, renderState: c } = a;
2248
- this.latestValues = l, this.baseTarget = { ...l }, this.initialValues = n.initial ? { ...l } : {}, this.renderState = c, this.parent = t, this.props = n, this.presenceContext = s, this.depth = t ? t.depth + 1 : 0, this.reducedMotionConfig = i, this.options = o, this.blockInitialAnimation = !!r, this.isControllingVariants = Hn(n), this.isVariantNode = qr(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(t && t.current);
2249
+ this.latestValues = l, this.baseTarget = { ...l }, this.initialValues = n.initial ? { ...l } : {}, this.renderState = c, this.parent = t, this.props = n, this.presenceContext = s, this.depth = t ? t.depth + 1 : 0, this.reducedMotionConfig = i, this.options = o, this.blockInitialAnimation = !!r, this.isControllingVariants = Zn(n), this.isVariantNode = Hr(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(t && t.current);
2249
2250
  const { willChange: u, ...f } = this.scrapeMotionValuesFromProps(n, {}, this);
2250
2251
  for (const h in f) {
2251
2252
  const g = f[h];
2252
- l[h] !== void 0 && D(g) && g.set(l[h]);
2253
+ l[h] !== void 0 && F(g) && g.set(l[h]);
2253
2254
  }
2254
2255
  }
2255
2256
  mount(t) {
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);
2257
+ 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)), Hn.current || Gr(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : Xe.current, process.env.NODE_ENV !== "production" && rn(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);
2257
2258
  }
2258
2259
  unmount() {
2259
2260
  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);
@@ -2322,13 +2323,13 @@ class Zn {
2322
2323
  */
2323
2324
  update(t, n) {
2324
2325
  (t.transformTemplate || this.props.transformTemplate) && this.scheduleRender(), this.prevProps = this.props, this.props = t, this.prevPresenceContext = this.presenceContext, this.presenceContext = n;
2325
- for (let s = 0; s < zt.length; s++) {
2326
- const i = zt[s];
2326
+ for (let s = 0; s < Xt.length; s++) {
2327
+ const i = Xt[s];
2327
2328
  this.propEventSubscriptions[i] && (this.propEventSubscriptions[i](), delete this.propEventSubscriptions[i]);
2328
2329
  const r = "on" + i, a = t[r];
2329
2330
  a && (this.propEventSubscriptions[i] = this.on(i, a));
2330
2331
  }
2331
- this.prevMotionValues = Hr(this, this.scrapeMotionValuesFromProps(t, this.prevProps, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
2332
+ this.prevMotionValues = Zr(this, this.scrapeMotionValuesFromProps(t, this.prevProps, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
2332
2333
  }
2333
2334
  getProps() {
2334
2335
  return this.props;
@@ -2393,7 +2394,7 @@ class Zn {
2393
2394
  */
2394
2395
  readValue(t, n) {
2395
2396
  let s = this.latestValues[t] !== void 0 || !this.current ? this.latestValues[t] : this.getBaseTargetFromProps(this.props, t) ?? this.readValueFromInstance(this.current, t, this.options);
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;
2397
+ return s != null && (typeof s == "string" && (en(s) || tn(s)) ? s = parseFloat(s) : !lr(s) && W.test(n) && (s = Un(t, n)), this.setBaseTarget(t, F(s) ? s.get() : s)), F(s) ? s.get() : s;
2397
2398
  }
2398
2399
  /**
2399
2400
  * Set the base target to later animate back to. This is currently
@@ -2410,27 +2411,27 @@ class Zn {
2410
2411
  const { initial: n } = this.props;
2411
2412
  let s;
2412
2413
  if (typeof n == "string" || typeof n == "object") {
2413
- const r = zn(this.props, n, this.presenceContext?.custom);
2414
+ const r = Xn(this.props, n, this.presenceContext?.custom);
2414
2415
  r && (s = r[t]);
2415
2416
  }
2416
2417
  if (n && s !== void 0)
2417
2418
  return s;
2418
2419
  const i = this.getBaseTargetFromProps(this.props, t);
2419
- return i !== void 0 && !D(i) ? i : this.initialValues[t] !== void 0 && s === void 0 ? void 0 : this.baseTarget[t];
2420
+ return i !== void 0 && !F(i) ? i : this.initialValues[t] !== void 0 && s === void 0 ? void 0 : this.baseTarget[t];
2420
2421
  }
2421
2422
  on(t, n) {
2422
- return this.events[t] || (this.events[t] = new tn()), this.events[t].add(n);
2423
+ return this.events[t] || (this.events[t] = new nn()), this.events[t].add(n);
2423
2424
  }
2424
2425
  notify(t, ...n) {
2425
2426
  this.events[t] && this.events[t].notify(...n);
2426
2427
  }
2427
2428
  scheduleRenderMicrotask() {
2428
- ir.render(this.render);
2429
+ rr.render(this.render);
2429
2430
  }
2430
2431
  }
2431
- class Jn extends Zn {
2432
+ class Qn extends Jn {
2432
2433
  constructor() {
2433
- super(...arguments), this.KeyframeResolver = er;
2434
+ super(...arguments), this.KeyframeResolver = tr;
2434
2435
  }
2435
2436
  sortInstanceNodePosition(t, n) {
2436
2437
  return t.compareDocumentPosition(n) & 2 ? 1 : -1;
@@ -2444,29 +2445,29 @@ class Jn extends Zn {
2444
2445
  handleChildMotionValue() {
2445
2446
  this.childSubscription && (this.childSubscription(), delete this.childSubscription);
2446
2447
  const { children: t } = this.props;
2447
- D(t) && (this.childSubscription = t.on("change", (n) => {
2448
+ F(t) && (this.childSubscription = t.on("change", (n) => {
2448
2449
  this.current && (this.current.textContent = `${n}`);
2449
2450
  }));
2450
2451
  }
2451
2452
  }
2452
- const Zr = {
2453
+ const Jr = {
2453
2454
  x: "translateX",
2454
2455
  y: "translateY",
2455
2456
  z: "translateZ",
2456
2457
  transformPerspective: "perspective"
2457
- }, Jr = Q.length;
2458
- function Qr(e, t, n) {
2458
+ }, Qr = Q.length;
2459
+ function ea(e, t, n) {
2459
2460
  let s = "", i = !0;
2460
- for (let r = 0; r < Jr; r++) {
2461
+ for (let r = 0; r < Qr; r++) {
2461
2462
  const a = Q[r], o = e[a];
2462
2463
  if (o === void 0)
2463
2464
  continue;
2464
2465
  let l = !0;
2465
2466
  if (typeof o == "number" ? l = o === (a.startsWith("scale") ? 1 : 0) : l = parseFloat(o) === 0, !l || n) {
2466
- const c = Un(o, ct[a]);
2467
+ const c = Gn(o, ct[a]);
2467
2468
  if (!l) {
2468
2469
  i = !1;
2469
- const u = Zr[a] || a;
2470
+ const u = Jr[a] || a;
2470
2471
  s += `${u}(${c}) `;
2471
2472
  }
2472
2473
  n && (t[a] = c);
@@ -2474,7 +2475,7 @@ function Qr(e, t, n) {
2474
2475
  }
2475
2476
  return s = s.trim(), n ? s = n(t, i ? "" : s) : i && (s = "none"), s;
2476
2477
  }
2477
- function Qn(e, t, n) {
2478
+ function es(e, t, n) {
2478
2479
  const { style: s, vars: i, transformOrigin: r } = e;
2479
2480
  let a = !1, o = !1;
2480
2481
  for (const l in t) {
@@ -2482,20 +2483,20 @@ function Qn(e, t, n) {
2482
2483
  if (ee.has(l)) {
2483
2484
  a = !0;
2484
2485
  continue;
2485
- } else if (bn(l)) {
2486
+ } else if (Tn(l)) {
2486
2487
  i[l] = c;
2487
2488
  continue;
2488
2489
  } else {
2489
- const u = Un(c, ct[l]);
2490
+ const u = Gn(c, ct[l]);
2490
2491
  l.startsWith("origin") ? (o = !0, r[l] = u) : s[l] = u;
2491
2492
  }
2492
2493
  }
2493
- if (t.transform || (a || n ? s.transform = Qr(t, e.transform, n) : s.transform && (s.transform = "none")), o) {
2494
+ if (t.transform || (a || n ? s.transform = ea(t, e.transform, n) : s.transform && (s.transform = "none")), o) {
2494
2495
  const { originX: l = "50%", originY: c = "50%", originZ: u = 0 } = r;
2495
2496
  s.transformOrigin = `${l} ${c} ${u}`;
2496
2497
  }
2497
2498
  }
2498
- function es(e, { style: t, vars: n }, s, i) {
2499
+ function ts(e, { style: t, vars: n }, s, i) {
2499
2500
  const r = e.style;
2500
2501
  let a;
2501
2502
  for (a in t)
@@ -2504,7 +2505,7 @@ function es(e, { style: t, vars: n }, s, i) {
2504
2505
  for (a in n)
2505
2506
  r.setProperty(a, n[a]);
2506
2507
  }
2507
- function Xt(e, t) {
2508
+ function qt(e, t) {
2508
2509
  return t.max === t.min ? 0 : e / (t.max - t.min) * 100;
2509
2510
  }
2510
2511
  const re = {
@@ -2512,14 +2513,14 @@ const re = {
2512
2513
  if (!t.target)
2513
2514
  return e;
2514
2515
  if (typeof e == "string")
2515
- if (d.test(e))
2516
+ if (p.test(e))
2516
2517
  e = parseFloat(e);
2517
2518
  else
2518
2519
  return e;
2519
- const n = Xt(e, t.target.x), s = Xt(e, t.target.y);
2520
+ const n = qt(e, t.target.x), s = qt(e, t.target.y);
2520
2521
  return `${n}% ${s}%`;
2521
2522
  }
2522
- }, ea = {
2523
+ }, ta = {
2523
2524
  correct: (e, { treeScale: t, projectionDelta: n }) => {
2524
2525
  const s = e, i = W.parse(e);
2525
2526
  if (i.length > 5)
@@ -2529,7 +2530,7 @@ const re = {
2529
2530
  const c = J(o, l, 0.5);
2530
2531
  return typeof i[2 + a] == "number" && (i[2 + a] /= c), typeof i[3 + a] == "number" && (i[3 + a] /= c), r(i);
2531
2532
  }
2532
- }, ta = {
2533
+ }, na = {
2533
2534
  borderRadius: {
2534
2535
  ...re,
2535
2536
  applyTo: [
@@ -2543,51 +2544,51 @@ const re = {
2543
2544
  borderTopRightRadius: re,
2544
2545
  borderBottomLeftRadius: re,
2545
2546
  borderBottomRightRadius: re,
2546
- boxShadow: ea
2547
+ boxShadow: ta
2547
2548
  };
2548
- function na(e, { layout: t, layoutId: n }) {
2549
- return ee.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!ta[e] || e === "opacity");
2549
+ function sa(e, { layout: t, layoutId: n }) {
2550
+ return ee.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!na[e] || e === "opacity");
2550
2551
  }
2551
- function ts(e, t, n) {
2552
+ function ns(e, t, n) {
2552
2553
  const { style: s } = e, i = {};
2553
2554
  for (const r in s)
2554
- (D(s[r]) || t.style && D(t.style[r]) || na(r, e) || n?.getValue(r)?.liveStyle !== void 0) && (i[r] = s[r]);
2555
+ (F(s[r]) || t.style && F(t.style[r]) || sa(r, e) || n?.getValue(r)?.liveStyle !== void 0) && (i[r] = s[r]);
2555
2556
  return i;
2556
2557
  }
2557
- function sa(e) {
2558
+ function ia(e) {
2558
2559
  return window.getComputedStyle(e);
2559
2560
  }
2560
- class ia extends Jn {
2561
+ class ra extends Qn {
2561
2562
  constructor() {
2562
- super(...arguments), this.type = "html", this.renderInstance = es;
2563
+ super(...arguments), this.type = "html", this.renderInstance = ts;
2563
2564
  }
2564
2565
  readValueFromInstance(t, n) {
2565
2566
  if (ee.has(n))
2566
- return this.projection?.isProjecting ? Le(n) : gi(t, n);
2567
+ return this.projection?.isProjecting ? Le(n) : yi(t, n);
2567
2568
  {
2568
- const s = sa(t), i = (bn(n) ? s.getPropertyValue(n) : s[n]) || 0;
2569
+ const s = ia(t), i = (Tn(n) ? s.getPropertyValue(n) : s[n]) || 0;
2569
2570
  return typeof i == "string" ? i.trim() : i;
2570
2571
  }
2571
2572
  }
2572
2573
  measureInstanceViewportBox(t, { transformPagePoint: n }) {
2573
- return _r(t, n);
2574
+ return jr(t, n);
2574
2575
  }
2575
2576
  build(t, n, s) {
2576
- Qn(t, n, s.transformTemplate);
2577
+ es(t, n, s.transformTemplate);
2577
2578
  }
2578
2579
  scrapeMotionValuesFromProps(t, n, s) {
2579
- return ts(t, n, s);
2580
+ return ns(t, n, s);
2580
2581
  }
2581
2582
  }
2582
- function ra(e, t) {
2583
+ function aa(e, t) {
2583
2584
  return e in t;
2584
2585
  }
2585
- class aa extends Zn {
2586
+ class oa extends Jn {
2586
2587
  constructor() {
2587
2588
  super(...arguments), this.type = "object";
2588
2589
  }
2589
2590
  readValueFromInstance(t, n) {
2590
- if (ra(n, t)) {
2591
+ if (aa(n, t)) {
2591
2592
  const s = t[n];
2592
2593
  if (typeof s == "string" || typeof s == "number")
2593
2594
  return s;
@@ -2611,21 +2612,21 @@ class aa extends Zn {
2611
2612
  return 0;
2612
2613
  }
2613
2614
  }
2614
- const oa = {
2615
+ const la = {
2615
2616
  offset: "stroke-dashoffset",
2616
2617
  array: "stroke-dasharray"
2617
- }, la = {
2618
+ }, ua = {
2618
2619
  offset: "strokeDashoffset",
2619
2620
  array: "strokeDasharray"
2620
2621
  };
2621
- function ua(e, t, n = 1, s = 0, i = !0) {
2622
+ function ca(e, t, n = 1, s = 0, i = !0) {
2622
2623
  e.pathLength = 1;
2623
- const r = i ? oa : la;
2624
- e[r.offset] = d.transform(-s);
2625
- const a = d.transform(t), o = d.transform(n);
2624
+ const r = i ? la : ua;
2625
+ e[r.offset] = p.transform(-s);
2626
+ const a = p.transform(t), o = p.transform(n);
2626
2627
  e[r.array] = `${a} ${o}`;
2627
2628
  }
2628
- function ca(e, {
2629
+ function fa(e, {
2629
2630
  attrX: t,
2630
2631
  attrY: n,
2631
2632
  attrScale: s,
@@ -2635,15 +2636,15 @@ function ca(e, {
2635
2636
  // This is object creation, which we try to avoid per-frame.
2636
2637
  ...o
2637
2638
  }, l, c, u) {
2638
- if (Qn(e, o, c), l) {
2639
+ if (es(e, o, c), l) {
2639
2640
  e.style.viewBox && (e.attrs.viewBox = e.style.viewBox);
2640
2641
  return;
2641
2642
  }
2642
2643
  e.attrs = e.style, e.style = {};
2643
2644
  const { attrs: f, style: h } = e;
2644
- f.transform && (h.transform = f.transform, delete f.transform), (h.transform || f.transformOrigin) && (h.transformOrigin = f.transformOrigin ?? "50% 50%", delete f.transformOrigin), h.transform && (h.transformBox = u?.transformBox ?? "fill-box", delete f.transformBox), t !== void 0 && (f.x = t), n !== void 0 && (f.y = n), s !== void 0 && (f.scale = s), i !== void 0 && ua(f, i, r, a, !1);
2645
+ f.transform && (h.transform = f.transform, delete f.transform), (h.transform || f.transformOrigin) && (h.transformOrigin = f.transformOrigin ?? "50% 50%", delete f.transformOrigin), h.transform && (h.transformBox = u?.transformBox ?? "fill-box", delete f.transformBox), t !== void 0 && (f.x = t), n !== void 0 && (f.y = n), s !== void 0 && (f.scale = s), i !== void 0 && ca(f, i, r, a, !1);
2645
2646
  }
2646
- const ns = /* @__PURE__ */ new Set([
2647
+ const ss = /* @__PURE__ */ new Set([
2647
2648
  "baseFrequency",
2648
2649
  "diffuseConstant",
2649
2650
  "kernelMatrix",
@@ -2667,22 +2668,22 @@ const ns = /* @__PURE__ */ new Set([
2667
2668
  "startOffset",
2668
2669
  "textLength",
2669
2670
  "lengthAdjust"
2670
- ]), fa = (e) => typeof e == "string" && e.toLowerCase() === "svg";
2671
- function ha(e, t, n, s) {
2672
- es(e, t, void 0, s);
2671
+ ]), ha = (e) => typeof e == "string" && e.toLowerCase() === "svg";
2672
+ function da(e, t, n, s) {
2673
+ ts(e, t, void 0, s);
2673
2674
  for (const i in t.attrs)
2674
- e.setAttribute(ns.has(i) ? i : ht(i), t.attrs[i]);
2675
+ e.setAttribute(ss.has(i) ? i : ht(i), t.attrs[i]);
2675
2676
  }
2676
- function da(e, t, n) {
2677
- const s = ts(e, t, n);
2677
+ function pa(e, t, n) {
2678
+ const s = ns(e, t, n);
2678
2679
  for (const i in e)
2679
- if (D(e[i]) || D(t[i])) {
2680
+ if (F(e[i]) || F(t[i])) {
2680
2681
  const r = Q.indexOf(i) !== -1 ? "attr" + i.charAt(0).toUpperCase() + i.substring(1) : i;
2681
2682
  s[r] = e[i];
2682
2683
  }
2683
2684
  return s;
2684
2685
  }
2685
- class pa extends Jn {
2686
+ class ma extends Qn {
2686
2687
  constructor() {
2687
2688
  super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = dt;
2688
2689
  }
@@ -2691,25 +2692,25 @@ class pa extends Jn {
2691
2692
  }
2692
2693
  readValueFromInstance(t, n) {
2693
2694
  if (ee.has(n)) {
2694
- const s = _n(n);
2695
+ const s = jn(n);
2695
2696
  return s && s.default || 0;
2696
2697
  }
2697
- return n = ns.has(n) ? n : ht(n), t.getAttribute(n);
2698
+ return n = ss.has(n) ? n : ht(n), t.getAttribute(n);
2698
2699
  }
2699
2700
  scrapeMotionValuesFromProps(t, n, s) {
2700
- return da(t, n, s);
2701
+ return pa(t, n, s);
2701
2702
  }
2702
2703
  build(t, n, s) {
2703
- ca(t, n, this.isSVGTag, s.transformTemplate, s.style);
2704
+ fa(t, n, this.isSVGTag, s.transformTemplate, s.style);
2704
2705
  }
2705
2706
  renderInstance(t, n, s, i) {
2706
- ha(t, n, s, i);
2707
+ da(t, n, s, i);
2707
2708
  }
2708
2709
  mount(t) {
2709
- this.isSVGTag = fa(t.tagName), super.mount(t);
2710
+ this.isSVGTag = ha(t.tagName), super.mount(t);
2710
2711
  }
2711
2712
  }
2712
- function ma(e) {
2713
+ function ga(e) {
2713
2714
  const t = {
2714
2715
  presenceContext: null,
2715
2716
  props: {},
@@ -2723,10 +2724,10 @@ function ma(e) {
2723
2724
  },
2724
2725
  latestValues: {}
2725
2726
  }
2726
- }, n = Gn(e) && !rr(e) ? new pa(t) : new ia(t);
2727
+ }, n = Yn(e) && !ar(e) ? new ma(t) : new ra(t);
2727
2728
  n.mount(e), he.set(e, n);
2728
2729
  }
2729
- function ga(e) {
2730
+ function ya(e) {
2730
2731
  const t = {
2731
2732
  presenceContext: null,
2732
2733
  props: {},
@@ -2736,64 +2737,64 @@ function ga(e) {
2736
2737
  },
2737
2738
  latestValues: {}
2738
2739
  }
2739
- }, n = new aa(t);
2740
+ }, n = new oa(t);
2740
2741
  n.mount(e), he.set(e, n);
2741
2742
  }
2742
- function ya(e, t, n) {
2743
- const s = D(e) ? e : fe(e);
2744
- return s.start(Xn("", s, t, n)), s.animation;
2743
+ function ba(e, t, n) {
2744
+ const s = F(e) ? e : fe(e);
2745
+ return s.start(qn("", s, t, n)), s.animation;
2745
2746
  }
2746
- function ba(e, t) {
2747
- return D(e) || typeof e == "number" || typeof e == "string" && !ft(t);
2747
+ function Ta(e, t) {
2748
+ return F(e) || typeof e == "number" || typeof e == "string" && !ft(t);
2748
2749
  }
2749
- function ss(e, t, n, s) {
2750
+ function is(e, t, n, s) {
2750
2751
  const i = [];
2751
- if (ba(e, t))
2752
- i.push(ya(e, ft(t) && t.default || t, n && (n.default || n)));
2752
+ if (Ta(e, t))
2753
+ i.push(ba(e, ft(t) && t.default || t, n && (n.default || n)));
2753
2754
  else {
2754
- const r = Yn(e, t, s), a = r.length;
2755
+ const r = zn(e, t, s), a = r.length;
2755
2756
  k(!!a, "No valid elements provided.", "no-valid-elements");
2756
2757
  for (let o = 0; o < a; o++) {
2757
2758
  const l = r[o];
2758
2759
  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");
2759
- const c = l instanceof Element ? ma : ga;
2760
+ const c = l instanceof Element ? ga : ya;
2760
2761
  he.has(l) || c(l);
2761
2762
  const u = he.get(l), f = { ...n };
2762
- "delay" in f && typeof f.delay == "function" && (f.delay = f.delay(o, a)), i.push(...$r(u, { ...t, transition: f }, {}));
2763
+ "delay" in f && typeof f.delay == "function" && (f.delay = f.delay(o, a)), i.push(...Lr(u, { ...t, transition: f }, {}));
2763
2764
  }
2764
2765
  }
2765
2766
  return i;
2766
2767
  }
2767
- function Ta(e, t, n) {
2768
+ function va(e, t, n) {
2768
2769
  const s = [];
2769
- return mr(e, t, n, { spring: ce }).forEach(({ keyframes: r, transition: a }, o) => {
2770
- s.push(...ss(o, r, a));
2770
+ return gr(e, t, n, { spring: ce }).forEach(({ keyframes: r, transition: a }, o) => {
2771
+ s.push(...is(o, r, a));
2771
2772
  }), s;
2772
2773
  }
2773
- function va(e) {
2774
+ function Va(e) {
2774
2775
  return Array.isArray(e) && e.some(Array.isArray);
2775
2776
  }
2776
- function Va(e) {
2777
+ function Sa(e) {
2777
2778
  function t(n, s, i) {
2778
2779
  let r = [], a;
2779
- if (va(n))
2780
- r = Ta(n, s, e);
2780
+ if (Va(n))
2781
+ r = va(n, s, e);
2781
2782
  else {
2782
2783
  const { onComplete: l, ...c } = i || {};
2783
- typeof l == "function" && (a = l), r = ss(n, s, c, e);
2784
+ typeof l == "function" && (a = l), r = is(n, s, c, e);
2784
2785
  }
2785
- const o = new Wi(r);
2786
+ const o = new _i(r);
2786
2787
  return a && o.finished.then(a), o;
2787
2788
  }
2788
2789
  return t;
2789
2790
  }
2790
- const Sa = Va(), Re = "";
2791
- function wa(e, t = !0) {
2791
+ const wa = Sa(), Re = "";
2792
+ function xa(e, t = !0) {
2792
2793
  const [n, s] = Ae(0), [i, r] = Ae(0), [a, o] = Ae(e);
2793
- return a !== e && (o(e), r(e.startsWith(a) ? n : 0)), Zt(() => {
2794
+ return a !== e && (o(e), r(e.startsWith(a) ? n : 0)), Jt(() => {
2794
2795
  if (!t)
2795
2796
  return;
2796
- const l = Sa(
2797
+ const l = wa(
2797
2798
  // The starting value for the animation (current cursor position).
2798
2799
  i,
2799
2800
  // The target value: total number of characters.
@@ -2812,62 +2813,80 @@ function wa(e, t = !0) {
2812
2813
  return () => l.stop();
2813
2814
  }, [i, e, t]), t ? e.split(Re).slice(0, n).join(Re) : e;
2814
2815
  }
2815
- const qt = {
2816
+ const Ht = {
2816
2817
  MODEL: "Model",
2817
2818
  USAGE: "Session usage"
2818
- }, xa = Ht("max-w-[99cqw]", "mt-3"), Na = fs.memo(
2819
+ }, Aa = Zt("max-w-[99cqw]", "mt-3"), Ba = fs.memo(
2819
2820
  ({
2820
2821
  content: e,
2821
2822
  annotations: t,
2822
2823
  smooth: n = !1,
2823
- isLastAssistantMessage: s = !1
2824
+ isLastAssistantMessage: s = !1,
2825
+ messageIndex: i,
2826
+ messages: r
2824
2827
  }) => {
2825
- const i = wa(e, n), {
2828
+ const a = xa(e, n), {
2826
2829
  state: {
2827
- streaming: r,
2828
- restoredModel: a,
2829
- restoredTimestamp: o,
2830
- tokenUsage: l,
2831
- lastStreamingTimestamp: c
2830
+ streaming: o,
2831
+ restoredModel: l,
2832
+ restoredTimestamp: c,
2833
+ tokenUsage: u,
2834
+ lastStreamingTimestamp: f
2832
2835
  }
2833
- } = Vt(ds), {
2834
- state: { fullScreen: u }
2835
- } = Vt(ps), f = t?.model || a, h = l, [g, y] = hs(), { user: b, getAccessToken: V } = as(), { data: T } = os({
2836
- user: b?.username,
2837
- getAccessToken: V
2838
- }), A = T?.showDetails || !1, S = Ht("prose-li:ps-3", {
2839
- "max-w-xs sm:max-w-3xl": !u
2840
- }), v = [];
2841
- return A && (f && (s ? v.push({
2842
- key: qt.MODEL,
2843
- value: f
2844
- }) : v.push(Me)), h && (s ? v.push({
2845
- key: qt.USAGE,
2846
- value: `${ls.format(h)} ${us(
2847
- "token",
2848
- h
2849
- )}`
2850
- }) : v.push(Me)), (c || o) && (s ? v.push({
2851
- value: c ? vt(c) : vt(o || "")
2852
- }) : v.push(Me))), Zt(() => {
2853
- i && y(i);
2854
- }, [i, y]), /* @__PURE__ */ rs(
2836
+ } = St(ds), {
2837
+ state: { fullScreen: h }
2838
+ } = St(ps), g = t?.model || l, m = u, [T, V] = hs(), { user: v, getAccessToken: A } = as(), { data: S } = os({
2839
+ user: v?.username,
2840
+ getAccessToken: A
2841
+ }), w = S?.showDetails || !1, d = Zt("prose-li:ps-3", {
2842
+ "max-w-xs sm:max-w-3xl": !h
2843
+ }), y = [];
2844
+ if (w) {
2845
+ if (g && (s ? y.push({
2846
+ key: Ht.MODEL,
2847
+ value: g
2848
+ }) : y.push(Me)), m)
2849
+ if (s) {
2850
+ const M = m === -1 ? "N/A" : `${ls.format(m)} ${us(
2851
+ "token",
2852
+ m
2853
+ )}`;
2854
+ y.push({
2855
+ key: Ht.USAGE,
2856
+ value: M
2857
+ });
2858
+ } else
2859
+ y.push(Me);
2860
+ (f || c) && (s ? y.push({
2861
+ value: f ? Vt(f) : Vt(c || "")
2862
+ }) : y.push(Me));
2863
+ }
2864
+ return Jt(() => {
2865
+ a && V(a);
2866
+ }, [a, V]), /* @__PURE__ */ vt(
2855
2867
  cs,
2856
2868
  {
2857
2869
  tail: !0,
2858
- copyToClipboardMode: "light",
2859
- copyToClipboardFocusMode: "light",
2860
- copyToClipboard: r ? "loading..." : e,
2861
- footer: v,
2862
- className: xa,
2870
+ footer: y,
2871
+ className: Aa,
2863
2872
  footerClassName: "text-copy-medium",
2864
- contentClassName: S,
2873
+ contentClassName: d,
2865
2874
  noMaxWidth: !0,
2866
- children: g
2875
+ action: /* @__PURE__ */ vt(
2876
+ ms,
2877
+ {
2878
+ streaming: o,
2879
+ content: e,
2880
+ messageIndex: i,
2881
+ messages: r,
2882
+ annotations: t
2883
+ }
2884
+ ),
2885
+ children: T
2867
2886
  }
2868
2887
  );
2869
2888
  }
2870
2889
  );
2871
2890
  export {
2872
- Na as default
2891
+ Ba as default
2873
2892
  };