@telegraph/combobox 0.0.89 → 0.0.91

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.
@@ -4,21 +4,21 @@ import * as Zs from "@radix-ui/react-portal";
4
4
  import { useControllableState as Js } from "@radix-ui/react-use-controllable-state";
5
5
  import * as er from "@radix-ui/react-visually-hidden";
6
6
  import { Button as ae } from "@telegraph/button";
7
- import { useComposedRefs as An } from "@telegraph/compose-refs";
7
+ import { useComposedRefs as Cn } from "@telegraph/compose-refs";
8
8
  import { RefToTgphRef as tr } from "@telegraph/helpers";
9
9
  import { Icon as Mn } from "@telegraph/icon";
10
10
  import { Input as nr } from "@telegraph/input";
11
11
  import { Stack as ie, Box as Pn } from "@telegraph/layout";
12
12
  import { Menu as Be } from "@telegraph/menu";
13
13
  import { Text as gt } from "@telegraph/typography";
14
- import { ChevronDown as sr, X as yt, Search as Rn, Plus as rr } from "lucide-react";
15
- import b, { createContext as ce, useRef as ye, useLayoutEffect as ir, useEffect as bt, useState as or, useContext as B, useMemo as Le, useCallback as ar, useInsertionEffect as cr, forwardRef as ur, Fragment as Fn, createElement as lr } from "react";
14
+ import { X as yt, ChevronDown as sr, Plus as rr, Search as Rn } from "lucide-react";
15
+ import b, { createContext as ce, useRef as ge, useLayoutEffect as ir, useEffect as bt, useState as or, useContext as B, useMemo as Le, useCallback as ar, useInsertionEffect as cr, forwardRef as ur, Fragment as Fn, createElement as lr } from "react";
16
16
  import { Tag as vt } from "@telegraph/tag";
17
17
  import { Tooltip as fr } from "@telegraph/tooltip";
18
18
  import { TooltipIfTruncated as Dn } from "@telegraph/truncate";
19
19
  const dr = ce({});
20
20
  function hr(e) {
21
- const t = ye(null);
21
+ const t = ge(null);
22
22
  return t.current === null && (t.current = e()), t.current;
23
23
  }
24
24
  const Tt = typeof window < "u", pr = Tt ? ir : bt, On = /* @__PURE__ */ ce(null);
@@ -29,13 +29,13 @@ function gr(e, t) {
29
29
  const n = e.indexOf(t);
30
30
  n > -1 && e.splice(n, 1);
31
31
  }
32
- const J = (e, t, n) => n > t ? t : n < e ? e : n;
33
- let ue = () => {
34
- }, U = () => {
32
+ const Z = (e, t, n) => n > t ? t : n < e ? e : n;
33
+ let xe = () => {
34
+ }, J = () => {
35
35
  };
36
- process.env.NODE_ENV !== "production" && (ue = (e, t) => {
36
+ process.env.NODE_ENV !== "production" && (xe = (e, t) => {
37
37
  !e && typeof console < "u" && console.warn(t);
38
- }, U = (e, t) => {
38
+ }, J = (e, t) => {
39
39
  if (!e)
40
40
  throw new Error(t);
41
41
  });
@@ -49,7 +49,7 @@ function wt(e) {
49
49
  let t;
50
50
  return () => (t === void 0 && (t = e()), t);
51
51
  }
52
- const le = /* @__NO_SIDE_EFFECTS__ */ (e) => e, br = (e, t) => (n) => t(e(n)), Ne = (...e) => e.reduce(br), kn = /* @__NO_SIDE_EFFECTS__ */ (e, t, n) => {
52
+ const ue = /* @__NO_SIDE_EFFECTS__ */ (e) => e, br = (e, t) => (n) => t(e(n)), Ne = (...e) => e.reduce(br), kn = /* @__NO_SIDE_EFFECTS__ */ (e, t, n) => {
53
53
  const s = t - e;
54
54
  return s === 0 ? 1 : (n - e) / s;
55
55
  };
@@ -96,12 +96,12 @@ function wr(e, t, n, s, r) {
96
96
  }
97
97
  function Se(e, t, n, s) {
98
98
  if (e === t && n === s)
99
- return le;
99
+ return ue;
100
100
  const r = (i) => wr(i, 0, 1, e, n);
101
101
  return (i) => i === 0 || i === 1 ? i : Kn(r(i), t, s);
102
102
  }
103
- const $n = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, jn = (e) => (t) => 1 - e(1 - t), Wn = /* @__PURE__ */ Se(0.33, 1.53, 0.69, 0.99), xt = /* @__PURE__ */ jn(Wn), _n = /* @__PURE__ */ $n(xt), Hn = (e) => (e *= 2) < 1 ? 0.5 * xt(e) : 0.5 * (2 - Math.pow(2, -10 * (e - 1))), St = (e) => 1 - Math.sin(Math.acos(e)), xr = jn(St), Gn = $n(St), Sr = /* @__PURE__ */ Se(0.42, 0, 1, 1), Vr = /* @__PURE__ */ Se(0, 0, 0.58, 1), Un = /* @__PURE__ */ Se(0.42, 0, 0.58, 1), Cr = (e) => Array.isArray(e) && typeof e[0] != "number", zn = (e) => Array.isArray(e) && typeof e[0] == "number", qt = {
104
- linear: le,
103
+ const $n = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, jn = (e) => (t) => 1 - e(1 - t), Wn = /* @__PURE__ */ Se(0.33, 1.53, 0.69, 0.99), xt = /* @__PURE__ */ jn(Wn), _n = /* @__PURE__ */ $n(xt), Hn = (e) => (e *= 2) < 1 ? 0.5 * xt(e) : 0.5 * (2 - Math.pow(2, -10 * (e - 1))), St = (e) => 1 - Math.sin(Math.acos(e)), xr = jn(St), Gn = $n(St), Sr = /* @__PURE__ */ Se(0.42, 0, 1, 1), Vr = /* @__PURE__ */ Se(0, 0, 0.58, 1), Un = /* @__PURE__ */ Se(0.42, 0, 0.58, 1), Ar = (e) => Array.isArray(e) && typeof e[0] != "number", zn = (e) => Array.isArray(e) && typeof e[0] == "number", qt = {
104
+ linear: ue,
105
105
  easeIn: Sr,
106
106
  easeInOut: Un,
107
107
  easeOut: Vr,
@@ -112,15 +112,15 @@ const $n = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, jn
112
112
  backInOut: _n,
113
113
  backOut: Wn,
114
114
  anticipate: Hn
115
- }, Ar = (e) => typeof e == "string", Xt = (e) => {
115
+ }, Cr = (e) => typeof e == "string", Xt = (e) => {
116
116
  if (zn(e)) {
117
- U(e.length === 4, "Cubic bezier arrays must contain four numerical values.");
117
+ J(e.length === 4, "Cubic bezier arrays must contain four numerical values.");
118
118
  const [t, n, s, r] = e;
119
119
  return Se(t, n, s, r);
120
- } else if (Ar(e))
121
- return U(qt[e] !== void 0, `Invalid easing type '${e}'`), qt[e];
120
+ } else if (Cr(e))
121
+ return J(qt[e] !== void 0, `Invalid easing type '${e}'`), qt[e];
122
122
  return e;
123
- }, Ce = [
123
+ }, Ae = [
124
124
  "setup",
125
125
  // Compute
126
126
  "read",
@@ -183,21 +183,21 @@ function Yn(e, t) {
183
183
  delta: 0,
184
184
  timestamp: 0,
185
185
  isProcessing: !1
186
- }, i = () => n = !0, o = Ce.reduce((v, A) => (v[A] = Mr(i), v), {}), { setup: a, read: u, resolveKeyframes: l, preUpdate: c, update: d, preRender: f, render: h, postRender: m } = o, g = () => {
186
+ }, i = () => n = !0, o = Ae.reduce((v, C) => (v[C] = Mr(i), v), {}), { setup: a, read: u, resolveKeyframes: l, preUpdate: c, update: d, preRender: f, render: h, postRender: m } = o, g = () => {
187
187
  const v = j.useManualTiming ? r.timestamp : performance.now();
188
188
  n = !1, j.useManualTiming || (r.delta = s ? 1e3 / 60 : Math.max(Math.min(v - r.timestamp, Pr), 1)), r.timestamp = v, r.isProcessing = !0, a.process(r), u.process(r), l.process(r), c.process(r), d.process(r), f.process(r), h.process(r), m.process(r), r.isProcessing = !1, n && t && (s = !1, e(g));
189
189
  }, y = () => {
190
190
  n = !0, s = !0, r.isProcessing || e(g);
191
191
  };
192
- return { schedule: Ce.reduce((v, A) => {
193
- const S = o[A];
194
- return v[A] = (C, M = !1, V = !1) => (n || y(), S.schedule(C, M, V)), v;
192
+ return { schedule: Ae.reduce((v, C) => {
193
+ const S = o[C];
194
+ return v[C] = (A, M = !1, V = !1) => (n || y(), S.schedule(A, M, V)), v;
195
195
  }, {}), cancel: (v) => {
196
- for (let A = 0; A < Ce.length; A++)
197
- o[Ce[A]].cancel(v);
196
+ for (let C = 0; C < Ae.length; C++)
197
+ o[Ae[C]].cancel(v);
198
198
  }, state: r, steps: o };
199
199
  }
200
- const { schedule: L, cancel: Qe, state: Fe, steps: $c } = /* @__PURE__ */ Yn(typeof requestAnimationFrame < "u" ? requestAnimationFrame : le, !0);
200
+ const { schedule: L, cancel: Ze, state: Fe } = /* @__PURE__ */ Yn(typeof requestAnimationFrame < "u" ? requestAnimationFrame : ue, !0);
201
201
  let Me;
202
202
  function Rr() {
203
203
  Me = void 0;
@@ -207,37 +207,37 @@ const k = {
207
207
  set: (e) => {
208
208
  Me = e, queueMicrotask(Rr);
209
209
  }
210
- }, qn = (e) => (t) => typeof t == "string" && t.startsWith(e), Xn = /* @__PURE__ */ qn("--"), Fr = /* @__PURE__ */ qn("var(--"), Vt = (e) => Fr(e) ? Dr.test(e.split("/*")[0].trim()) : !1, Dr = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu, fe = {
210
+ }, qn = (e) => (t) => typeof t == "string" && t.startsWith(e), Xn = /* @__PURE__ */ qn("--"), Fr = /* @__PURE__ */ qn("var(--"), Vt = (e) => Fr(e) ? Dr.test(e.split("/*")[0].trim()) : !1, Dr = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu, le = {
211
211
  test: (e) => typeof e == "number",
212
212
  parse: parseFloat,
213
213
  transform: (e) => e
214
- }, ve = {
215
- ...fe,
216
- transform: (e) => J(0, 1, e)
217
- }, Ae = {
218
- ...fe,
214
+ }, be = {
215
+ ...le,
216
+ transform: (e) => Z(0, 1, e)
217
+ }, Ce = {
218
+ ...le,
219
219
  default: 1
220
- }, be = (e) => Math.round(e * 1e5) / 1e5, Ct = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
220
+ }, ye = (e) => Math.round(e * 1e5) / 1e5, At = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
221
221
  function Or(e) {
222
222
  return e == null;
223
223
  }
224
- const Er = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, At = (e, t) => (n) => !!(typeof n == "string" && Er.test(n) && n.startsWith(e) || t && !Or(n) && Object.prototype.hasOwnProperty.call(n, t)), Qn = (e, t, n) => (s) => {
224
+ const Er = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, Ct = (e, t) => (n) => !!(typeof n == "string" && Er.test(n) && n.startsWith(e) || t && !Or(n) && Object.prototype.hasOwnProperty.call(n, t)), Qn = (e, t, n) => (s) => {
225
225
  if (typeof s != "string")
226
226
  return s;
227
- const [r, i, o, a] = s.match(Ct);
227
+ const [r, i, o, a] = s.match(At);
228
228
  return {
229
229
  [e]: parseFloat(r),
230
230
  [t]: parseFloat(i),
231
231
  [n]: parseFloat(o),
232
232
  alpha: a !== void 0 ? parseFloat(a) : 1
233
233
  };
234
- }, Ir = (e) => J(0, 255, e), Ge = {
235
- ...fe,
234
+ }, Ir = (e) => Z(0, 255, e), Ge = {
235
+ ...le,
236
236
  transform: (e) => Math.round(Ir(e))
237
- }, q = {
238
- test: /* @__PURE__ */ At("rgb", "red"),
237
+ }, Y = {
238
+ test: /* @__PURE__ */ Ct("rgb", "red"),
239
239
  parse: /* @__PURE__ */ Qn("red", "green", "blue"),
240
- transform: ({ red: e, green: t, blue: n, alpha: s = 1 }) => "rgba(" + Ge.transform(e) + ", " + Ge.transform(t) + ", " + Ge.transform(n) + ", " + be(ve.transform(s)) + ")"
240
+ transform: ({ red: e, green: t, blue: n, alpha: s = 1 }) => "rgba(" + Ge.transform(e) + ", " + Ge.transform(t) + ", " + Ge.transform(n) + ", " + ye(be.transform(s)) + ")"
241
241
  };
242
242
  function kr(e) {
243
243
  let t = "", n = "", s = "", r = "";
@@ -248,10 +248,10 @@ function kr(e) {
248
248
  alpha: r ? parseInt(r, 16) / 255 : 1
249
249
  };
250
250
  }
251
- const Ze = {
252
- test: /* @__PURE__ */ At("#"),
251
+ const Je = {
252
+ test: /* @__PURE__ */ Ct("#"),
253
253
  parse: kr,
254
- transform: q.transform
254
+ transform: Y.transform
255
255
  }, Ve = /* @__NO_SIDE_EFFECTS__ */ (e) => ({
256
256
  test: (t) => typeof t == "string" && t.endsWith(e) && t.split(" ").length === 1,
257
257
  parse: parseFloat,
@@ -261,13 +261,13 @@ const Ze = {
261
261
  parse: (e) => re.parse(e) / 100,
262
262
  transform: (e) => re.transform(e * 100)
263
263
  }, ne = {
264
- test: /* @__PURE__ */ At("hsl", "hue"),
264
+ test: /* @__PURE__ */ Ct("hsl", "hue"),
265
265
  parse: /* @__PURE__ */ Qn("hue", "saturation", "lightness"),
266
- transform: ({ hue: e, saturation: t, lightness: n, alpha: s = 1 }) => "hsla(" + Math.round(e) + ", " + re.transform(be(t)) + ", " + re.transform(be(n)) + ", " + be(ve.transform(s)) + ")"
266
+ transform: ({ hue: e, saturation: t, lightness: n, alpha: s = 1 }) => "hsla(" + Math.round(e) + ", " + re.transform(ye(t)) + ", " + re.transform(ye(n)) + ", " + ye(be.transform(s)) + ")"
267
267
  }, R = {
268
- test: (e) => q.test(e) || Ze.test(e) || ne.test(e),
269
- parse: (e) => q.test(e) ? q.parse(e) : ne.test(e) ? ne.parse(e) : Ze.parse(e),
270
- transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? q.transform(e) : ne.transform(e),
268
+ test: (e) => Y.test(e) || Je.test(e) || ne.test(e),
269
+ parse: (e) => Y.test(e) ? Y.parse(e) : ne.test(e) ? ne.parse(e) : Je.parse(e),
270
+ transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? Y.transform(e) : ne.transform(e),
271
271
  getAnimatableNone: (e) => {
272
272
  const t = R.parse(e);
273
273
  return t.alpha = 0, R.transform(t);
@@ -275,10 +275,10 @@ const Ze = {
275
275
  }, Nr = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
276
276
  function Kr(e) {
277
277
  var t, n;
278
- return isNaN(e) && typeof e == "string" && (((t = e.match(Ct)) == null ? void 0 : t.length) || 0) + (((n = e.match(Nr)) == null ? void 0 : n.length) || 0) > 0;
278
+ return isNaN(e) && typeof e == "string" && (((t = e.match(At)) == null ? void 0 : t.length) || 0) + (((n = e.match(Nr)) == null ? void 0 : n.length) || 0) > 0;
279
279
  }
280
280
  const Zn = "number", Jn = "color", $r = "var", jr = "var(", Zt = "${}", Wr = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;
281
- function Te(e) {
281
+ function ve(e) {
282
282
  const t = e.toString(), n = [], s = {
283
283
  color: [],
284
284
  number: [],
@@ -289,16 +289,16 @@ function Te(e) {
289
289
  return { values: n, split: a, indexes: s, types: r };
290
290
  }
291
291
  function es(e) {
292
- return Te(e).values;
292
+ return ve(e).values;
293
293
  }
294
294
  function ts(e) {
295
- const { split: t, types: n } = Te(e), s = t.length;
295
+ const { split: t, types: n } = ve(e), s = t.length;
296
296
  return (r) => {
297
297
  let i = "";
298
298
  for (let o = 0; o < s; o++)
299
299
  if (i += t[o], r[o] !== void 0) {
300
300
  const a = n[o];
301
- a === Zn ? i += be(r[o]) : a === Jn ? i += R.transform(r[o]) : i += r[o];
301
+ a === Zn ? i += ye(r[o]) : a === Jn ? i += R.transform(r[o]) : i += r[o];
302
302
  }
303
303
  return i;
304
304
  };
@@ -308,7 +308,7 @@ function Hr(e) {
308
308
  const t = es(e);
309
309
  return ts(e)(t.map(_r));
310
310
  }
311
- const de = {
311
+ const fe = {
312
312
  test: Kr,
313
313
  parse: es,
314
314
  createTransformer: ts,
@@ -339,10 +339,10 @@ function De(e, t) {
339
339
  const Ke = (e, t, n) => e + (t - e) * n, ze = (e, t, n) => {
340
340
  const s = e * e, r = n * (t * t - s) + s;
341
341
  return r < 0 ? 0 : Math.sqrt(r);
342
- }, Ur = [Ze, q, ne], zr = (e) => Ur.find((t) => t.test(e));
342
+ }, Ur = [Je, Y, ne], zr = (e) => Ur.find((t) => t.test(e));
343
343
  function Jt(e) {
344
344
  const t = zr(e);
345
- if (ue(!!t, `'${e}' is not an animatable color. Use the equivalent color code instead.`), !t)
345
+ if (xe(!!t, `'${e}' is not an animatable color. Use the equivalent color code instead.`), !t)
346
346
  return !1;
347
347
  let n = t.parse(e);
348
348
  return t === ne && (n = Gr(n)), n;
@@ -352,10 +352,10 @@ const en = (e, t) => {
352
352
  if (!n || !s)
353
353
  return De(e, t);
354
354
  const r = { ...n };
355
- return (i) => (r.red = ze(n.red, s.red, i), r.green = ze(n.green, s.green, i), r.blue = ze(n.blue, s.blue, i), r.alpha = Ke(n.alpha, s.alpha, i), q.transform(r));
356
- }, Je = /* @__PURE__ */ new Set(["none", "hidden"]);
355
+ return (i) => (r.red = ze(n.red, s.red, i), r.green = ze(n.green, s.green, i), r.blue = ze(n.blue, s.blue, i), r.alpha = Ke(n.alpha, s.alpha, i), Y.transform(r));
356
+ }, et = /* @__PURE__ */ new Set(["none", "hidden"]);
357
357
  function Yr(e, t) {
358
- return Je.has(e) ? (n) => n <= 0 ? e : t : (n) => n >= 1 ? t : e;
358
+ return et.has(e) ? (n) => n <= 0 ? e : t : (n) => n >= 1 ? t : e;
359
359
  }
360
360
  function qr(e, t) {
361
361
  return (n) => Ke(e, t, n);
@@ -390,8 +390,8 @@ function Qr(e, t) {
390
390
  return n;
391
391
  }
392
392
  const Zr = (e, t) => {
393
- const n = de.createTransformer(t), s = Te(e), r = Te(t);
394
- return s.indexes.var.length === r.indexes.var.length && s.indexes.color.length === r.indexes.color.length && s.indexes.number.length >= r.indexes.number.length ? Je.has(e) && !r.values.length || Je.has(t) && !s.values.length ? Yr(e, t) : Ne(ns(Qr(s, r), r.values), n) : (ue(!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.`), De(e, t));
393
+ const n = fe.createTransformer(t), s = ve(e), r = ve(t);
394
+ return s.indexes.var.length === r.indexes.var.length && s.indexes.color.length === r.indexes.color.length && s.indexes.number.length >= r.indexes.number.length ? et.has(e) && !r.values.length || et.has(t) && !s.values.length ? Yr(e, t) : Ne(ns(Qr(s, r), r.values), n) : (xe(!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.`), De(e, t));
395
395
  };
396
396
  function ss(e, t, n) {
397
397
  return typeof e == "number" && typeof t == "number" && typeof n == "number" ? Ke(e, t, n) : Mt(e)(e, t);
@@ -400,7 +400,7 @@ const Jr = (e) => {
400
400
  const t = ({ timestamp: n }) => e(n);
401
401
  return {
402
402
  start: (n = !0) => L.update(t, n),
403
- stop: () => Qe(t),
403
+ stop: () => Ze(t),
404
404
  /**
405
405
  * If we're processing this frame we can use the
406
406
  * framelocked timestamp to keep things in sync.
@@ -463,20 +463,20 @@ const P = {
463
463
  // in seconds
464
464
  minDamping: 0.05,
465
465
  maxDamping: 1
466
- }, tn = 1e-3;
466
+ }, Ye = 1e-3;
467
467
  function ni({ duration: e = P.duration, bounce: t = P.bounce, velocity: n = P.velocity, mass: s = P.mass }) {
468
468
  let r, i;
469
- ue(e <= /* @__PURE__ */ N(P.maxDuration), "Spring duration must be 10 seconds or less");
469
+ xe(e <= /* @__PURE__ */ N(P.maxDuration), "Spring duration must be 10 seconds or less");
470
470
  let o = 1 - t;
471
- o = J(P.minDamping, P.maxDamping, o), e = J(P.minDuration, P.maxDuration, /* @__PURE__ */ $(e)), o < 1 ? (r = (l) => {
472
- const c = l * o, d = c * e, f = c - n, h = et(l, o), m = Math.exp(-d);
473
- return tn - f / h * m;
471
+ o = Z(P.minDamping, P.maxDamping, o), e = Z(P.minDuration, P.maxDuration, /* @__PURE__ */ $(e)), o < 1 ? (r = (l) => {
472
+ const c = l * o, d = c * e, f = c - n, h = tt(l, o), m = Math.exp(-d);
473
+ return Ye - f / h * m;
474
474
  }, i = (l) => {
475
- const d = l * o * e, f = d * n + n, h = Math.pow(o, 2) * Math.pow(l, 2) * e, m = Math.exp(-d), g = et(Math.pow(l, 2), o);
476
- return (-r(l) + tn > 0 ? -1 : 1) * ((f - h) * m) / g;
475
+ const d = l * o * e, f = d * n + n, h = Math.pow(o, 2) * Math.pow(l, 2) * e, m = Math.exp(-d), g = tt(Math.pow(l, 2), o);
476
+ return (-r(l) + Ye > 0 ? -1 : 1) * ((f - h) * m) / g;
477
477
  }) : (r = (l) => {
478
478
  const c = Math.exp(-l * e), d = (l - n) * e + 1;
479
- return -1e-3 + c * d;
479
+ return -Ye + c * d;
480
480
  }, i = (l) => {
481
481
  const c = Math.exp(-l * e), d = (n - l) * (e * e);
482
482
  return c * d;
@@ -504,11 +504,11 @@ function ri(e, t, n) {
504
504
  s = s - e(s) / t(s);
505
505
  return s;
506
506
  }
507
- function et(e, t) {
507
+ function tt(e, t) {
508
508
  return e * Math.sqrt(1 - t * t);
509
509
  }
510
510
  const ii = ["duration", "bounce"], oi = ["stiffness", "damping", "mass"];
511
- function nn(e, t) {
511
+ function tn(e, t) {
512
512
  return t.some((n) => e[n] !== void 0);
513
513
  }
514
514
  function ai(e) {
@@ -520,9 +520,9 @@ function ai(e) {
520
520
  isResolvedFromDuration: !1,
521
521
  ...e
522
522
  };
523
- if (!nn(e, oi) && nn(e, ii))
523
+ if (!tn(e, oi) && tn(e, ii))
524
524
  if (e.visualDuration) {
525
- const n = e.visualDuration, s = 2 * Math.PI / (n * 1.2), r = s * s, i = 2 * J(0.05, 1, 1 - (e.bounce || 0)) * Math.sqrt(r);
525
+ const n = e.visualDuration, s = 2 * Math.PI / (n * 1.2), r = s * s, i = 2 * Z(0.05, 1, 1 - (e.bounce || 0)) * Math.sqrt(r);
526
526
  t = {
527
527
  ...t,
528
528
  mass: P.mass,
@@ -553,48 +553,48 @@ function Ee(e = P.visualDuration, t = P.bounce) {
553
553
  s || (s = x ? P.restSpeed.granular : P.restSpeed.default), r || (r = x ? P.restDelta.granular : P.restDelta.default);
554
554
  let v;
555
555
  if (g < 1) {
556
- const S = et(p, g);
557
- v = (C) => {
558
- const M = Math.exp(-g * p * C);
559
- return o - M * ((m + g * p * y) / S * Math.sin(S * C) + y * Math.cos(S * C));
556
+ const S = tt(p, g);
557
+ v = (A) => {
558
+ const M = Math.exp(-g * p * A);
559
+ return o - M * ((m + g * p * y) / S * Math.sin(S * A) + y * Math.cos(S * A));
560
560
  };
561
561
  } else if (g === 1)
562
562
  v = (S) => o - Math.exp(-p * S) * (y + (m + p * y) * S);
563
563
  else {
564
564
  const S = p * Math.sqrt(g * g - 1);
565
- v = (C) => {
566
- const M = Math.exp(-g * p * C), V = Math.min(S * C, 300);
565
+ v = (A) => {
566
+ const M = Math.exp(-g * p * A), V = Math.min(S * A, 300);
567
567
  return o - M * ((m + g * p * y) * Math.sinh(V) + S * y * Math.cosh(V)) / S;
568
568
  };
569
569
  }
570
- const A = {
570
+ const C = {
571
571
  calculatedDuration: h && d || null,
572
572
  next: (S) => {
573
- const C = v(S);
573
+ const A = v(S);
574
574
  if (h)
575
575
  a.done = S >= d;
576
576
  else {
577
577
  let M = S === 0 ? m : 0;
578
- g < 1 && (M = S === 0 ? /* @__PURE__ */ N(m) : is(v, S, C));
579
- const V = Math.abs(M) <= s, F = Math.abs(o - C) <= r;
578
+ g < 1 && (M = S === 0 ? /* @__PURE__ */ N(m) : is(v, S, A));
579
+ const V = Math.abs(M) <= s, F = Math.abs(o - A) <= r;
580
580
  a.done = V && F;
581
581
  }
582
- return a.value = a.done ? o : C, a;
582
+ return a.value = a.done ? o : A, a;
583
583
  },
584
584
  toString: () => {
585
- const S = Math.min(Pt(A), Oe), C = rs((M) => A.next(S * M).value, S, 30);
586
- return S + "ms " + C;
585
+ const S = Math.min(Pt(C), Oe), A = rs((M) => C.next(S * M).value, S, 30);
586
+ return S + "ms " + A;
587
587
  },
588
588
  toTransition: () => {
589
589
  }
590
590
  };
591
- return A;
591
+ return C;
592
592
  }
593
593
  Ee.applyToOptions = (e) => {
594
594
  const t = ei(e, 100, Ee);
595
595
  return e.ease = t.ease, e.duration = /* @__PURE__ */ N(t.duration), e.type = "keyframes", e;
596
596
  };
597
- function tt({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: s = 325, bounceDamping: r = 10, bounceStiffness: i = 500, modifyTarget: o, min: a, max: u, restDelta: l = 0.5, restSpeed: c }) {
597
+ function nt({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: s = 325, bounceDamping: r = 10, bounceStiffness: i = 500, modifyTarget: o, min: a, max: u, restDelta: l = 0.5, restSpeed: c }) {
598
598
  const d = e[0], f = {
599
599
  done: !1,
600
600
  value: d
@@ -602,13 +602,13 @@ function tt({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: s = 3
602
602
  let g = n * t;
603
603
  const y = d + g, p = o === void 0 ? y : o(y);
604
604
  p !== y && (g = p - d);
605
- const x = (V) => -g * Math.exp(-V / s), v = (V) => p + x(V), A = (V) => {
605
+ const x = (V) => -g * Math.exp(-V / s), v = (V) => p + x(V), C = (V) => {
606
606
  const F = x(V), I = v(V);
607
607
  f.done = Math.abs(F) <= l, f.value = f.done ? p : I;
608
608
  };
609
- let S, C;
609
+ let S, A;
610
610
  const M = (V) => {
611
- h(f.value) && (S = V, C = Ee({
611
+ h(f.value) && (S = V, A = Ee({
612
612
  keyframes: [f.value, m(f.value)],
613
613
  velocity: is(v, V, f.value),
614
614
  // TODO: This should be passing * 1000
@@ -622,7 +622,7 @@ function tt({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: s = 3
622
622
  calculatedDuration: null,
623
623
  next: (V) => {
624
624
  let F = !1;
625
- return !C && S === void 0 && (F = !0, A(V), M(V)), S !== void 0 && V >= S ? C.next(V - S) : (!F && A(V), f);
625
+ return !A && S === void 0 && (F = !0, C(V), M(V)), S !== void 0 && V >= S ? A.next(V - S) : (!F && C(V), f);
626
626
  }
627
627
  };
628
628
  }
@@ -631,7 +631,7 @@ function ci(e, t, n) {
631
631
  for (let o = 0; o < i; o++) {
632
632
  let a = r(e[o], e[o + 1]);
633
633
  if (t) {
634
- const u = Array.isArray(t) ? t[o] || le : t;
634
+ const u = Array.isArray(t) ? t[o] || ue : t;
635
635
  a = Ne(u, a);
636
636
  }
637
637
  s.push(a);
@@ -640,7 +640,7 @@ function ci(e, t, n) {
640
640
  }
641
641
  function ui(e, t, { clamp: n = !0, ease: s, mixer: r } = {}) {
642
642
  const i = e.length;
643
- if (U(i === t.length, "Both input and output ranges must be the same length"), i === 1)
643
+ if (J(i === t.length, "Both input and output ranges must be the same length"), i === 1)
644
644
  return () => t[0];
645
645
  if (i === 2 && t[0] === t[1])
646
646
  return () => t[1];
@@ -656,7 +656,7 @@ function ui(e, t, { clamp: n = !0, ease: s, mixer: r } = {}) {
656
656
  const f = /* @__PURE__ */ kn(e[d], e[d + 1], c);
657
657
  return a[d](f);
658
658
  };
659
- return n ? (c) => l(J(e[0], e[i - 1], c)) : l;
659
+ return n ? (c) => l(Z(e[0], e[i - 1], c)) : l;
660
660
  }
661
661
  function li(e, t) {
662
662
  const n = e[e.length - 1];
@@ -676,7 +676,7 @@ function hi(e, t) {
676
676
  return e.map(() => t || Un).splice(0, e.length - 1);
677
677
  }
678
678
  function se({ duration: e = 300, keyframes: t, times: n, ease: s = "easeInOut" }) {
679
- const r = Cr(s) ? s.map(Xt) : Xt(s), i = {
679
+ const r = Ar(s) ? s.map(Xt) : Xt(s), i = {
680
680
  done: !1,
681
681
  value: t[0]
682
682
  }, o = di(
@@ -698,8 +698,8 @@ function Rt(e, { repeat: t, repeatType: n = "loop" }, s, r = 1) {
698
698
  return !a || s === void 0 ? i[a] : s;
699
699
  }
700
700
  const mi = {
701
- decay: tt,
702
- inertia: tt,
701
+ decay: nt,
702
+ inertia: nt,
703
703
  tween: se,
704
704
  keyframes: se,
705
705
  spring: Ee
@@ -746,7 +746,7 @@ class Dt extends Ft {
746
746
  const { type: n = se, repeat: s = 0, repeatDelay: r = 0, repeatType: i, velocity: o = 0 } = t;
747
747
  let { keyframes: a } = t;
748
748
  const u = n || se;
749
- process.env.NODE_ENV !== "production" && u !== se && U(a.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`), u !== se && typeof a[0] != "number" && (this.mixKeyframes = Ne(gi, ss(a[0], a[1])), a = [0, 100]);
749
+ process.env.NODE_ENV !== "production" && u !== se && J(a.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`), u !== se && typeof a[0] != "number" && (this.mixKeyframes = Ne(gi, ss(a[0], a[1])), a = [0, 100]);
750
750
  const l = u({ ...t, keyframes: a });
751
751
  i === "mirror" && (this.mirroredGenerator = u({
752
752
  ...t,
@@ -768,18 +768,18 @@ class Dt extends Ft {
768
768
  this.speed > 0 ? this.startTime = Math.min(this.startTime, t) : this.speed < 0 && (this.startTime = Math.min(t - r / this.speed, this.startTime)), n ? this.currentTime = t : this.updateTime(t);
769
769
  const p = this.currentTime - l * (this.playbackSpeed >= 0 ? 1 : -1), x = this.playbackSpeed >= 0 ? p < 0 : p > r;
770
770
  this.currentTime = Math.max(p, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = r);
771
- let v = this.currentTime, A = s;
771
+ let v = this.currentTime, C = s;
772
772
  if (d) {
773
773
  const V = Math.min(this.currentTime, r) / a;
774
774
  let F = Math.floor(V), I = V % 1;
775
- !I && V >= 1 && (I = 1), I === 1 && F--, F = Math.min(F, d + 1), !!(F % 2) && (f === "reverse" ? (I = 1 - I, h && (I -= h / a)) : f === "mirror" && (A = o)), v = J(0, 1, I) * a;
775
+ !I && V >= 1 && (I = 1), I === 1 && F--, F = Math.min(F, d + 1), !!(F % 2) && (f === "reverse" ? (I = 1 - I, h && (I -= h / a)) : f === "mirror" && (C = o)), v = Z(0, 1, I) * a;
776
776
  }
777
- const S = x ? { done: !1, value: c[0] } : A.next(v);
777
+ const S = x ? { done: !1, value: c[0] } : C.next(v);
778
778
  i && (S.value = i(S.value));
779
- let { done: C } = S;
780
- !x && u !== null && (C = this.playbackSpeed >= 0 ? this.currentTime >= r : this.currentTime <= 0);
781
- const M = this.holdTime === null && (this.state === "finished" || this.state === "running" && C);
782
- return M && m !== tt && (S.value = Rt(c, this.options, y, this.speed)), g && g(S.value), M && this.finish(), S;
779
+ let { done: A } = S;
780
+ !x && u !== null && (A = this.playbackSpeed >= 0 ? this.currentTime >= r : this.currentTime <= 0);
781
+ const M = this.holdTime === null && (this.state === "finished" || this.state === "running" && A);
782
+ return M && m !== nt && (S.value = Rt(c, this.options, y, this.speed)), g && g(S.value), M && this.finish(), S;
783
783
  }
784
784
  /**
785
785
  * Allows the returned animation to be awaited or promise-chained. Currently
@@ -848,9 +848,9 @@ function yi(e) {
848
848
  for (let t = 1; t < e.length; t++)
849
849
  e[t] ?? (e[t] = e[t - 1]);
850
850
  }
851
- const X = (e) => e * 180 / Math.PI, nt = (e) => {
852
- const t = X(Math.atan2(e[1], e[0]));
853
- return st(t);
851
+ const q = (e) => e * 180 / Math.PI, st = (e) => {
852
+ const t = q(Math.atan2(e[1], e[0]));
853
+ return rt(t);
854
854
  }, bi = {
855
855
  x: 4,
856
856
  y: 5,
@@ -859,35 +859,35 @@ const X = (e) => e * 180 / Math.PI, nt = (e) => {
859
859
  scaleX: 0,
860
860
  scaleY: 3,
861
861
  scale: (e) => (Math.abs(e[0]) + Math.abs(e[3])) / 2,
862
- rotate: nt,
863
- rotateZ: nt,
864
- skewX: (e) => X(Math.atan(e[1])),
865
- skewY: (e) => X(Math.atan(e[2])),
862
+ rotate: st,
863
+ rotateZ: st,
864
+ skewX: (e) => q(Math.atan(e[1])),
865
+ skewY: (e) => q(Math.atan(e[2])),
866
866
  skew: (e) => (Math.abs(e[1]) + Math.abs(e[2])) / 2
867
- }, st = (e) => (e = e % 360, e < 0 && (e += 360), e), sn = nt, rn = (e) => Math.sqrt(e[0] * e[0] + e[1] * e[1]), on = (e) => Math.sqrt(e[4] * e[4] + e[5] * e[5]), vi = {
867
+ }, rt = (e) => (e = e % 360, e < 0 && (e += 360), e), nn = st, sn = (e) => Math.sqrt(e[0] * e[0] + e[1] * e[1]), rn = (e) => Math.sqrt(e[4] * e[4] + e[5] * e[5]), vi = {
868
868
  x: 12,
869
869
  y: 13,
870
870
  z: 14,
871
871
  translateX: 12,
872
872
  translateY: 13,
873
873
  translateZ: 14,
874
- scaleX: rn,
875
- scaleY: on,
876
- scale: (e) => (rn(e) + on(e)) / 2,
877
- rotateX: (e) => st(X(Math.atan2(e[6], e[5]))),
878
- rotateY: (e) => st(X(Math.atan2(-e[2], e[0]))),
879
- rotateZ: sn,
880
- rotate: sn,
881
- skewX: (e) => X(Math.atan(e[4])),
882
- skewY: (e) => X(Math.atan(e[1])),
874
+ scaleX: sn,
875
+ scaleY: rn,
876
+ scale: (e) => (sn(e) + rn(e)) / 2,
877
+ rotateX: (e) => rt(q(Math.atan2(e[6], e[5]))),
878
+ rotateY: (e) => rt(q(Math.atan2(-e[2], e[0]))),
879
+ rotateZ: nn,
880
+ rotate: nn,
881
+ skewX: (e) => q(Math.atan(e[4])),
882
+ skewY: (e) => q(Math.atan(e[1])),
883
883
  skew: (e) => (Math.abs(e[1]) + Math.abs(e[4])) / 2
884
884
  };
885
- function rt(e) {
885
+ function it(e) {
886
886
  return e.includes("scale") ? 1 : 0;
887
887
  }
888
- function it(e, t) {
888
+ function ot(e, t) {
889
889
  if (!e || e === "none")
890
- return rt(t);
890
+ return it(t);
891
891
  const n = e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);
892
892
  let s, r;
893
893
  if (n)
@@ -897,18 +897,18 @@ function it(e, t) {
897
897
  s = bi, r = a;
898
898
  }
899
899
  if (!r)
900
- return rt(t);
900
+ return it(t);
901
901
  const i = s[t], o = r[1].split(",").map(wi);
902
902
  return typeof i == "function" ? i(o) : o[i];
903
903
  }
904
904
  const Ti = (e, t) => {
905
905
  const { transform: n = "none" } = getComputedStyle(e);
906
- return it(n, t);
906
+ return ot(n, t);
907
907
  };
908
908
  function wi(e) {
909
909
  return parseFloat(e.trim());
910
910
  }
911
- const he = [
911
+ const de = [
912
912
  "transformPerspective",
913
913
  "x",
914
914
  "y",
@@ -926,7 +926,7 @@ const he = [
926
926
  "skew",
927
927
  "skewX",
928
928
  "skewY"
929
- ], pe = new Set(he), an = (e) => e === fe || e === T, xi = /* @__PURE__ */ new Set(["x", "y", "z"]), Si = he.filter((e) => !xi.has(e));
929
+ ], he = new Set(de), on = (e) => e === le || e === T, xi = /* @__PURE__ */ new Set(["x", "y", "z"]), Si = de.filter((e) => !xi.has(e));
930
930
  function Vi(e) {
931
931
  const t = [];
932
932
  return Si.forEach((n) => {
@@ -934,7 +934,7 @@ function Vi(e) {
934
934
  s !== void 0 && (t.push([n, s.get()]), s.set(n.startsWith("scale") ? 1 : 0));
935
935
  }), t;
936
936
  }
937
- const Q = {
937
+ const X = {
938
938
  // Dimensions
939
939
  width: ({ x: e }, { paddingLeft: t = "0", paddingRight: n = "0" }) => e.max - e.min - parseFloat(t) - parseFloat(n),
940
940
  height: ({ y: e }, { paddingTop: t = "0", paddingBottom: n = "0" }) => e.max - e.min - parseFloat(t) - parseFloat(n),
@@ -943,16 +943,16 @@ const Q = {
943
943
  bottom: ({ y: e }, { top: t }) => parseFloat(t) + (e.max - e.min),
944
944
  right: ({ x: e }, { left: t }) => parseFloat(t) + (e.max - e.min),
945
945
  // Transform
946
- x: (e, { transform: t }) => it(t, "x"),
947
- y: (e, { transform: t }) => it(t, "y")
946
+ x: (e, { transform: t }) => ot(t, "x"),
947
+ y: (e, { transform: t }) => ot(t, "y")
948
948
  };
949
- Q.translateX = Q.x;
950
- Q.translateY = Q.y;
951
- const Z = /* @__PURE__ */ new Set();
952
- let ot = !1, at = !1, ct = !1;
949
+ X.translateX = X.x;
950
+ X.translateY = X.y;
951
+ const Q = /* @__PURE__ */ new Set();
952
+ let at = !1, ct = !1, ut = !1;
953
953
  function as() {
954
- if (at) {
955
- const e = Array.from(Z).filter((s) => s.needsMeasurement), t = new Set(e.map((s) => s.element)), n = /* @__PURE__ */ new Map();
954
+ if (ct) {
955
+ const e = Array.from(Q).filter((s) => s.needsMeasurement), t = new Set(e.map((s) => s.element)), n = /* @__PURE__ */ new Map();
956
956
  t.forEach((s) => {
957
957
  const r = Vi(s);
958
958
  r.length && (n.set(s, r), s.render());
@@ -967,22 +967,22 @@ function as() {
967
967
  s.suspendedScrollY !== void 0 && window.scrollTo(0, s.suspendedScrollY);
968
968
  });
969
969
  }
970
- at = !1, ot = !1, Z.forEach((e) => e.complete(ct)), Z.clear();
970
+ ct = !1, at = !1, Q.forEach((e) => e.complete(ut)), Q.clear();
971
971
  }
972
972
  function cs() {
973
- Z.forEach((e) => {
974
- e.readKeyframes(), e.needsMeasurement && (at = !0);
973
+ Q.forEach((e) => {
974
+ e.readKeyframes(), e.needsMeasurement && (ct = !0);
975
975
  });
976
976
  }
977
- function Ci() {
978
- ct = !0, cs(), as(), ct = !1;
977
+ function Ai() {
978
+ ut = !0, cs(), as(), ut = !1;
979
979
  }
980
980
  class Ot {
981
981
  constructor(t, n, s, r, i, o = !1) {
982
982
  this.state = "pending", this.isAsync = !1, this.needsMeasurement = !1, this.unresolvedKeyframes = [...t], this.onComplete = n, this.name = s, this.motionValue = r, this.element = i, this.isAsync = o;
983
983
  }
984
984
  scheduleResolve() {
985
- this.state = "scheduled", this.isAsync ? (Z.add(this), ot || (ot = !0, L.read(cs), L.resolveKeyframes(as))) : (this.readKeyframes(), this.complete());
985
+ this.state = "scheduled", this.isAsync ? (Q.add(this), at || (at = !0, L.read(cs), L.resolveKeyframes(as))) : (this.readKeyframes(), this.complete());
986
986
  }
987
987
  readKeyframes() {
988
988
  const { unresolvedKeyframes: t, name: n, element: s, motionValue: r } = this;
@@ -1007,18 +1007,18 @@ class Ot {
1007
1007
  measureEndState() {
1008
1008
  }
1009
1009
  complete(t = !1) {
1010
- this.state = "complete", this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, t), Z.delete(this);
1010
+ this.state = "complete", this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, t), Q.delete(this);
1011
1011
  }
1012
1012
  cancel() {
1013
- this.state === "scheduled" && (Z.delete(this), this.state = "pending");
1013
+ this.state === "scheduled" && (Q.delete(this), this.state = "pending");
1014
1014
  }
1015
1015
  resume() {
1016
1016
  this.state === "pending" && this.scheduleResolve();
1017
1017
  }
1018
1018
  }
1019
- const Ai = (e) => e.startsWith("--");
1019
+ const Ci = (e) => e.startsWith("--");
1020
1020
  function Mi(e, t, n) {
1021
- Ai(t) ? e.style.setProperty(t, n) : e.style[t] = n;
1021
+ Ci(t) ? e.style.setProperty(t, n) : e.style[t] = n;
1022
1022
  }
1023
1023
  const Pi = /* @__PURE__ */ wt(() => window.ScrollTimeline !== void 0), Ri = {};
1024
1024
  function Fi(e, t) {
@@ -1032,20 +1032,20 @@ const us = /* @__PURE__ */ Fi(() => {
1032
1032
  return !1;
1033
1033
  }
1034
1034
  return !0;
1035
- }, "linearEasing"), ge = ([e, t, n, s]) => `cubic-bezier(${e}, ${t}, ${n}, ${s})`, cn = {
1035
+ }, "linearEasing"), me = ([e, t, n, s]) => `cubic-bezier(${e}, ${t}, ${n}, ${s})`, an = {
1036
1036
  linear: "linear",
1037
1037
  ease: "ease",
1038
1038
  easeIn: "ease-in",
1039
1039
  easeOut: "ease-out",
1040
1040
  easeInOut: "ease-in-out",
1041
- circIn: /* @__PURE__ */ ge([0, 0.65, 0.55, 1]),
1042
- circOut: /* @__PURE__ */ ge([0.55, 0, 1, 0.45]),
1043
- backIn: /* @__PURE__ */ ge([0.31, 0.01, 0.66, -0.59]),
1044
- backOut: /* @__PURE__ */ ge([0.33, 1.53, 0.69, 0.99])
1041
+ circIn: /* @__PURE__ */ me([0, 0.65, 0.55, 1]),
1042
+ circOut: /* @__PURE__ */ me([0.55, 0, 1, 0.45]),
1043
+ backIn: /* @__PURE__ */ me([0.31, 0.01, 0.66, -0.59]),
1044
+ backOut: /* @__PURE__ */ me([0.33, 1.53, 0.69, 0.99])
1045
1045
  };
1046
1046
  function ls(e, t) {
1047
1047
  if (e)
1048
- return typeof e == "function" ? us() ? rs(e, t) : "ease-out" : zn(e) ? ge(e) : Array.isArray(e) ? e.map((n) => ls(n, t) || cn.easeOut) : cn[e];
1048
+ return typeof e == "function" ? us() ? rs(e, t) : "ease-out" : zn(e) ? me(e) : Array.isArray(e) ? e.map((n) => ls(n, t) || an.easeOut) : an[e];
1049
1049
  }
1050
1050
  function Di(e, t, n, { delay: s = 0, duration: r = 300, repeat: i = 0, repeatType: o = "loop", ease: a = "easeOut", times: u } = {}, l = void 0) {
1051
1051
  const c = {
@@ -1075,7 +1075,7 @@ class Ei extends Ft {
1075
1075
  if (super(), this.finishedTime = null, this.isStopped = !1, !t)
1076
1076
  return;
1077
1077
  const { element: n, name: s, keyframes: r, pseudoElement: i, allowFlatten: o = !1, finalKeyframe: a, onComplete: u } = t;
1078
- this.isPseudoElement = !!i, this.allowFlatten = o, this.options = t, U(typeof t.type != "string", `animateMini doesn't support "type" as a string. Did you mean to import { spring } from "motion"?`);
1078
+ this.isPseudoElement = !!i, this.allowFlatten = o, this.options = t, J(typeof t.type != "string", `animateMini doesn't support "type" as a string. Did you mean to import { spring } from "motion"?`);
1079
1079
  const l = Oi(t);
1080
1080
  this.animation = Di(n, s, r, l, i), l.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
1081
1081
  if (this.finishedTime = this.time, !i) {
@@ -1159,7 +1159,7 @@ class Ei extends Ft {
1159
1159
  */
1160
1160
  attachTimeline({ timeline: t, observe: n }) {
1161
1161
  var s;
1162
- return this.allowFlatten && ((s = this.animation.effect) == null || s.updateTiming({ easing: "linear" })), this.animation.onfinish = null, t && Pi() ? (this.animation.timeline = t, le) : n(this);
1162
+ return this.allowFlatten && ((s = this.animation.effect) == null || s.updateTiming({ easing: "linear" })), this.animation.onfinish = null, t && Pi() ? (this.animation.timeline = t, ue) : n(this);
1163
1163
  }
1164
1164
  }
1165
1165
  const ds = {
@@ -1173,7 +1173,7 @@ function Ii(e) {
1173
1173
  function ki(e) {
1174
1174
  typeof e.ease == "string" && Ii(e.ease) && (e.ease = ds[e.ease]);
1175
1175
  }
1176
- const un = 10;
1176
+ const cn = 10;
1177
1177
  class Bi extends Ei {
1178
1178
  constructor(t) {
1179
1179
  ki(t), os(t), super(t), t.startTime && (this.startTime = t.startTime), this.options = t;
@@ -1198,11 +1198,11 @@ class Bi extends Ei {
1198
1198
  ...o,
1199
1199
  autoplay: !1
1200
1200
  }), u = /* @__PURE__ */ N(this.finishedTime ?? this.time);
1201
- n.setWithVelocity(a.sample(u - un).value, a.sample(u).value, un), a.stop();
1201
+ n.setWithVelocity(a.sample(u - cn).value, a.sample(u).value, cn), a.stop();
1202
1202
  }
1203
1203
  }
1204
- const ln = (e, t) => t === "zIndex" ? !1 : !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && // It's animatable if we have a string
1205
- (de.test(e) || e === "0") && // And it contains numbers and/or colors
1204
+ const un = (e, t) => t === "zIndex" ? !1 : !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && // It's animatable if we have a string
1205
+ (fe.test(e) || e === "0") && // And it contains numbers and/or colors
1206
1206
  !e.startsWith("url("));
1207
1207
  function Li(e) {
1208
1208
  const t = e[0];
@@ -1218,8 +1218,8 @@ function Ni(e, t, n, s) {
1218
1218
  return !1;
1219
1219
  if (t === "display" || t === "visibility")
1220
1220
  return !0;
1221
- const i = e[e.length - 1], o = ln(r, t), a = ln(i, t);
1222
- return ue(o === a, `You are trying to animate ${t} from "${r}" to "${i}". ${r} is not an animatable value - to enable this animation set ${r} to a value animatable to ${i} via the \`style\` property.`), !o || !a ? !1 : Li(e) || (n === "spring" || fs(n)) && s;
1221
+ const i = e[e.length - 1], o = un(r, t), a = un(i, t);
1222
+ return xe(o === a, `You are trying to animate ${t} from "${r}" to "${i}". ${r} is not an animatable value - to enable this animation set ${r} to a value animatable to ${i} via the \`style\` property.`), !o || !a ? !1 : Li(e) || (n === "spring" || fs(n)) && s;
1223
1223
  }
1224
1224
  function hs(e) {
1225
1225
  return yr(e) && "offsetHeight" in e;
@@ -1279,7 +1279,7 @@ class _i extends Ft {
1279
1279
  ...f,
1280
1280
  element: f.motionValue.owner.current
1281
1281
  }) : new Dt(f);
1282
- h.finished.then(() => this.notifyFinished()).catch(le), this.pendingTimeline && (this.stopTimeline = h.attachTimeline(this.pendingTimeline), this.pendingTimeline = void 0), this._animation = h;
1282
+ h.finished.then(() => this.notifyFinished()).catch(ue), this.pendingTimeline && (this.stopTimeline = h.attachTimeline(this.pendingTimeline), this.pendingTimeline = void 0), this._animation = h;
1283
1283
  }
1284
1284
  get finished() {
1285
1285
  return this._animation ? this.animation.finished : this._finished;
@@ -1290,7 +1290,7 @@ class _i extends Ft {
1290
1290
  }
1291
1291
  get animation() {
1292
1292
  var t;
1293
- return this._animation || ((t = this.keyframeResolver) == null || t.resume(), Ci()), this._animation;
1293
+ return this._animation || ((t = this.keyframeResolver) == null || t.resume(), Ai()), this._animation;
1294
1294
  }
1295
1295
  get duration() {
1296
1296
  return this.animation.duration;
@@ -1343,7 +1343,7 @@ function Gi(e) {
1343
1343
  }
1344
1344
  const Ui = 4;
1345
1345
  function ps(e, t, n = 1) {
1346
- U(n <= Ui, `Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);
1346
+ J(n <= Ui, `Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);
1347
1347
  const [s, r] = Gi(e);
1348
1348
  if (!s)
1349
1349
  return;
@@ -1364,11 +1364,11 @@ const gs = /* @__PURE__ */ new Set([
1364
1364
  "left",
1365
1365
  "right",
1366
1366
  "bottom",
1367
- ...he
1367
+ ...de
1368
1368
  ]), zi = {
1369
1369
  test: (e) => e === "auto",
1370
1370
  parse: (e) => e
1371
- }, ys = (e) => (t) => t.test(e), bs = [fe, T, re, W, Lr, Br, zi], fn = (e) => bs.find(ys(e));
1371
+ }, ys = (e) => (t) => t.test(e), bs = [le, T, re, W, Lr, Br, zi], ln = (e) => bs.find(ys(e));
1372
1372
  function Yi(e) {
1373
1373
  return typeof e == "number" ? e === 0 : e !== null ? e === "none" || e === "0" || In(e) : !0;
1374
1374
  }
@@ -1377,31 +1377,31 @@ function Xi(e) {
1377
1377
  const [t, n] = e.slice(0, -1).split("(");
1378
1378
  if (t === "drop-shadow")
1379
1379
  return e;
1380
- const [s] = n.match(Ct) || [];
1380
+ const [s] = n.match(At) || [];
1381
1381
  if (!s)
1382
1382
  return e;
1383
1383
  const r = n.replace(s, "");
1384
1384
  let i = qi.has(t) ? 1 : 0;
1385
1385
  return s !== n && (i *= 100), t + "(" + i + r + ")";
1386
1386
  }
1387
- const Qi = /\b([a-z-]*)\(.*?\)/gu, ut = {
1388
- ...de,
1387
+ const Qi = /\b([a-z-]*)\(.*?\)/gu, lt = {
1388
+ ...fe,
1389
1389
  getAnimatableNone: (e) => {
1390
1390
  const t = e.match(Qi);
1391
1391
  return t ? t.map(Xi).join(" ") : e;
1392
1392
  }
1393
- }, dn = {
1394
- ...fe,
1393
+ }, fn = {
1394
+ ...le,
1395
1395
  transform: Math.round
1396
1396
  }, Zi = {
1397
1397
  rotate: W,
1398
1398
  rotateX: W,
1399
1399
  rotateY: W,
1400
1400
  rotateZ: W,
1401
- scale: Ae,
1402
- scaleX: Ae,
1403
- scaleY: Ae,
1404
- scaleZ: Ae,
1401
+ scale: Ce,
1402
+ scaleX: Ce,
1403
+ scaleY: Ce,
1404
+ scaleZ: Ce,
1405
1405
  skew: W,
1406
1406
  skewX: W,
1407
1407
  skewY: W,
@@ -1414,7 +1414,7 @@ const Qi = /\b([a-z-]*)\(.*?\)/gu, ut = {
1414
1414
  z: T,
1415
1415
  perspective: T,
1416
1416
  transformPerspective: T,
1417
- opacity: ve,
1417
+ opacity: be,
1418
1418
  originX: Qt,
1419
1419
  originY: Qt,
1420
1420
  originZ: T
@@ -1455,11 +1455,11 @@ const Qi = /\b([a-z-]*)\(.*?\)/gu, ut = {
1455
1455
  backgroundPositionX: T,
1456
1456
  backgroundPositionY: T,
1457
1457
  ...Zi,
1458
- zIndex: dn,
1458
+ zIndex: fn,
1459
1459
  // SVG
1460
- fillOpacity: ve,
1461
- strokeOpacity: ve,
1462
- numOctaves: dn
1460
+ fillOpacity: be,
1461
+ strokeOpacity: be,
1462
+ numOctaves: fn
1463
1463
  }, Ji = {
1464
1464
  ...Et,
1465
1465
  // Color props
@@ -1474,19 +1474,19 @@ const Qi = /\b([a-z-]*)\(.*?\)/gu, ut = {
1474
1474
  borderRightColor: R,
1475
1475
  borderBottomColor: R,
1476
1476
  borderLeftColor: R,
1477
- filter: ut,
1478
- WebkitFilter: ut
1477
+ filter: lt,
1478
+ WebkitFilter: lt
1479
1479
  }, vs = (e) => Ji[e];
1480
1480
  function Ts(e, t) {
1481
1481
  let n = vs(e);
1482
- return n !== ut && (n = de), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
1482
+ return n !== lt && (n = fe), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
1483
1483
  }
1484
1484
  const eo = /* @__PURE__ */ new Set(["auto", "none", "0"]);
1485
1485
  function to(e, t, n) {
1486
1486
  let s = 0, r;
1487
1487
  for (; s < e.length && !r; ) {
1488
1488
  const i = e[s];
1489
- typeof i == "string" && !eo.has(i) && Te(i).values.length && (r = e[s]), s++;
1489
+ typeof i == "string" && !eo.has(i) && ve(i).values.length && (r = e[s]), s++;
1490
1490
  }
1491
1491
  if (r && n)
1492
1492
  for (const i of t)
@@ -1510,14 +1510,14 @@ class no extends Ot {
1510
1510
  }
1511
1511
  if (this.resolveNoneKeyframes(), !gs.has(s) || t.length !== 2)
1512
1512
  return;
1513
- const [r, i] = t, o = fn(r), a = fn(i);
1513
+ const [r, i] = t, o = ln(r), a = ln(i);
1514
1514
  if (o !== a)
1515
- if (an(o) && an(a))
1515
+ if (on(o) && on(a))
1516
1516
  for (let u = 0; u < t.length; u++) {
1517
1517
  const l = t[u];
1518
1518
  typeof l == "string" && (t[u] = parseFloat(l));
1519
1519
  }
1520
- else Q[s] && (this.needsMeasurement = !0);
1520
+ else X[s] && (this.needsMeasurement = !0);
1521
1521
  }
1522
1522
  resolveNoneKeyframes() {
1523
1523
  const { unresolvedKeyframes: t, name: n } = this, s = [];
@@ -1529,7 +1529,7 @@ class no extends Ot {
1529
1529
  const { element: t, unresolvedKeyframes: n, name: s } = this;
1530
1530
  if (!t || !t.current)
1531
1531
  return;
1532
- s === "height" && (this.suspendedScrollY = window.pageYOffset), this.measuredOrigin = Q[s](t.measureViewportBox(), window.getComputedStyle(t.current)), n[0] = this.measuredOrigin;
1532
+ s === "height" && (this.suspendedScrollY = window.pageYOffset), this.measuredOrigin = X[s](t.measureViewportBox(), window.getComputedStyle(t.current)), n[0] = this.measuredOrigin;
1533
1533
  const r = n[n.length - 1];
1534
1534
  r !== void 0 && t.getValue(s, r).jump(r, !1);
1535
1535
  }
@@ -1541,7 +1541,7 @@ class no extends Ot {
1541
1541
  const r = t.getValue(n);
1542
1542
  r && r.jump(this.measuredOrigin, !1);
1543
1543
  const i = s.length - 1, o = s[i];
1544
- s[i] = Q[n](t.measureViewportBox(), window.getComputedStyle(t.current)), o !== null && this.finalKeyframe === void 0 && (this.finalKeyframe = o), (a = this.removedTransforms) != null && a.length && this.removedTransforms.forEach(([u, l]) => {
1544
+ s[i] = X[n](t.measureViewportBox(), window.getComputedStyle(t.current)), o !== null && this.finalKeyframe === void 0 && (this.finalKeyframe = o), (a = this.removedTransforms) != null && a.length && this.removedTransforms.forEach(([u, l]) => {
1545
1545
  t.getValue(u).set(l);
1546
1546
  }), this.resolveNoneKeyframes();
1547
1547
  }
@@ -1550,12 +1550,13 @@ function so(e, t, n) {
1550
1550
  if (e instanceof EventTarget)
1551
1551
  return [e];
1552
1552
  if (typeof e == "string") {
1553
- const r = document.querySelectorAll(e);
1553
+ let s = document;
1554
+ const r = (n == null ? void 0 : n[e]) ?? s.querySelectorAll(e);
1554
1555
  return r ? Array.from(r) : [];
1555
1556
  }
1556
1557
  return Array.from(e);
1557
1558
  }
1558
- const ws = (e, t) => t && typeof e == "number" ? t.transform(e) : e, hn = 30, ro = (e) => !isNaN(parseFloat(e));
1559
+ const ws = (e, t) => t && typeof e == "number" ? t.transform(e) : e, dn = 30, ro = (e) => !isNaN(parseFloat(e));
1559
1560
  class io {
1560
1561
  /**
1561
1562
  * @param init - The initiating value
@@ -1704,9 +1705,9 @@ class io {
1704
1705
  */
1705
1706
  getVelocity() {
1706
1707
  const t = k.now();
1707
- if (!this.canTrackVelocity || this.prevFrameValue === void 0 || t - this.updatedAt > hn)
1708
+ if (!this.canTrackVelocity || this.prevFrameValue === void 0 || t - this.updatedAt > dn)
1708
1709
  return 0;
1709
- const n = Math.min(this.updatedAt - this.prevUpdatedAt, hn);
1710
+ const n = Math.min(this.updatedAt - this.prevUpdatedAt, dn);
1710
1711
  return Ln(parseFloat(this.current) - parseFloat(this.prevFrameValue), n);
1711
1712
  }
1712
1713
  /**
@@ -1762,8 +1763,7 @@ class io {
1762
1763
  function Ie(e, t) {
1763
1764
  return new io(e, t);
1764
1765
  }
1765
- const { schedule: oo, cancel: jc } = /* @__PURE__ */ Yn(queueMicrotask, !1), ao = {
1766
- x: !1,
1766
+ const { schedule: oo } = /* @__PURE__ */ Yn(queueMicrotask, !1), ao = {
1767
1767
  y: !1
1768
1768
  };
1769
1769
  function co() {
@@ -1777,18 +1777,18 @@ function xs(e, t) {
1777
1777
  };
1778
1778
  return [n, r, () => s.abort()];
1779
1779
  }
1780
- function pn(e) {
1780
+ function hn(e) {
1781
1781
  return !(e.pointerType === "touch" || co());
1782
1782
  }
1783
1783
  function uo(e, t, n = {}) {
1784
1784
  const [s, r, i] = xs(e, n), o = (a) => {
1785
- if (!pn(a))
1785
+ if (!hn(a))
1786
1786
  return;
1787
1787
  const { target: u } = a, l = t(u, a);
1788
1788
  if (typeof l != "function" || !u)
1789
1789
  return;
1790
1790
  const c = (d) => {
1791
- pn(d) && (l(d), u.removeEventListener("pointerleave", c));
1791
+ hn(d) && (l(d), u.removeEventListener("pointerleave", c));
1792
1792
  };
1793
1793
  u.addEventListener("pointerleave", c, r);
1794
1794
  };
@@ -1807,40 +1807,40 @@ function ho(e) {
1807
1807
  return fo.has(e.tagName) || e.tabIndex !== -1;
1808
1808
  }
1809
1809
  const Pe = /* @__PURE__ */ new WeakSet();
1810
- function mn(e) {
1810
+ function pn(e) {
1811
1811
  return (t) => {
1812
1812
  t.key === "Enter" && e(t);
1813
1813
  };
1814
1814
  }
1815
- function Ye(e, t) {
1815
+ function qe(e, t) {
1816
1816
  e.dispatchEvent(new PointerEvent("pointer" + t, { isPrimary: !0, bubbles: !0 }));
1817
1817
  }
1818
1818
  const po = (e, t) => {
1819
1819
  const n = e.currentTarget;
1820
1820
  if (!n)
1821
1821
  return;
1822
- const s = mn(() => {
1822
+ const s = pn(() => {
1823
1823
  if (Pe.has(n))
1824
1824
  return;
1825
- Ye(n, "down");
1826
- const r = mn(() => {
1827
- Ye(n, "up");
1828
- }), i = () => Ye(n, "cancel");
1825
+ qe(n, "down");
1826
+ const r = pn(() => {
1827
+ qe(n, "up");
1828
+ }), i = () => qe(n, "cancel");
1829
1829
  n.addEventListener("keyup", r, t), n.addEventListener("blur", i, t);
1830
1830
  });
1831
1831
  n.addEventListener("keydown", s, t), n.addEventListener("blur", () => n.removeEventListener("keydown", s), t);
1832
1832
  };
1833
- function gn(e) {
1833
+ function mn(e) {
1834
1834
  return lo(e) && !0;
1835
1835
  }
1836
1836
  function mo(e, t, n = {}) {
1837
1837
  const [s, r, i] = xs(e, n), o = (a) => {
1838
1838
  const u = a.currentTarget;
1839
- if (!gn(a))
1839
+ if (!mn(a))
1840
1840
  return;
1841
1841
  Pe.add(u);
1842
1842
  const l = t(u, a), c = (h, m) => {
1843
- window.removeEventListener("pointerup", d), window.removeEventListener("pointercancel", f), Pe.has(u) && Pe.delete(u), gn(h) && typeof l == "function" && l(h, { success: m });
1843
+ window.removeEventListener("pointerup", d), window.removeEventListener("pointercancel", f), Pe.has(u) && Pe.delete(u), mn(h) && typeof l == "function" && l(h, { success: m });
1844
1844
  }, d = (h) => {
1845
1845
  c(h, u === window || u === document || n.useGlobalTarget || Ss(u, h.target));
1846
1846
  }, f = (h) => {
@@ -1852,11 +1852,11 @@ function mo(e, t, n = {}) {
1852
1852
  (n.useGlobalTarget ? window : a).addEventListener("pointerdown", o, r), hs(a) && (a.addEventListener("focus", (l) => po(l, r)), !ho(a) && !a.hasAttribute("tabindex") && (a.tabIndex = 0));
1853
1853
  }), i;
1854
1854
  }
1855
- const E = (e) => !!(e && e.getVelocity), go = [...bs, R, de], yo = (e) => go.find(ys(e)), Vs = ce({
1855
+ const E = (e) => !!(e && e.getVelocity), go = [...bs, R, fe], yo = (e) => go.find(ys(e)), Vs = ce({
1856
1856
  transformPagePoint: (e) => e,
1857
1857
  isStatic: !1,
1858
1858
  reducedMotion: "never"
1859
- }), It = ce({ strict: !1 }), yn = {
1859
+ }), It = ce({ strict: !1 }), gn = {
1860
1860
  animation: [
1861
1861
  "animate",
1862
1862
  "variants",
@@ -1876,11 +1876,11 @@ const E = (e) => !!(e && e.getVelocity), go = [...bs, R, de], yo = (e) => go.fin
1876
1876
  inView: ["whileInView", "onViewportEnter", "onViewportLeave"],
1877
1877
  layout: ["layout", "layoutId"]
1878
1878
  }, oe = {};
1879
- for (const e in yn)
1879
+ for (const e in gn)
1880
1880
  oe[e] = {
1881
- isEnabled: (t) => yn[e].some((n) => !!t[n])
1881
+ isEnabled: (t) => gn[e].some((n) => !!t[n])
1882
1882
  };
1883
- function lt(e) {
1883
+ function yn(e) {
1884
1884
  for (const t in e)
1885
1885
  oe[t] = {
1886
1886
  ...oe[t],
@@ -1888,18 +1888,18 @@ function lt(e) {
1888
1888
  };
1889
1889
  }
1890
1890
  function bo({ children: e, features: t, strict: n = !1 }) {
1891
- const [, s] = or(!qe(t)), r = ye(void 0);
1892
- if (!qe(t)) {
1891
+ const [, s] = or(!Xe(t)), r = ge(void 0);
1892
+ if (!Xe(t)) {
1893
1893
  const { renderer: i, ...o } = t;
1894
- r.current = i, lt(o);
1894
+ r.current = i, yn(o);
1895
1895
  }
1896
1896
  return bt(() => {
1897
- qe(t) && t().then(({ renderer: i, ...o }) => {
1898
- lt(o), r.current = i, s(!0);
1897
+ Xe(t) && t().then(({ renderer: i, ...o }) => {
1898
+ yn(o), r.current = i, s(!0);
1899
1899
  });
1900
1900
  }, []), w(It.Provider, { value: { renderer: r.current, strict: n }, children: e });
1901
1901
  }
1902
- function qe(e) {
1902
+ function Xe(e) {
1903
1903
  return typeof e == "function";
1904
1904
  }
1905
1905
  const vo = /* @__PURE__ */ new Set([
@@ -1937,9 +1937,9 @@ const vo = /* @__PURE__ */ new Set([
1937
1937
  function ke(e) {
1938
1938
  return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") || vo.has(e);
1939
1939
  }
1940
- let Cs = (e) => !ke(e);
1940
+ let As = (e) => !ke(e);
1941
1941
  function To(e) {
1942
- typeof e == "function" && (Cs = (t) => t.startsWith("on") ? !ke(t) : e(t));
1942
+ typeof e == "function" && (As = (t) => t.startsWith("on") ? !ke(t) : e(t));
1943
1943
  }
1944
1944
  try {
1945
1945
  To(require("@emotion/is-prop-valid").default);
@@ -1948,7 +1948,7 @@ try {
1948
1948
  function wo(e, t, n) {
1949
1949
  const s = {};
1950
1950
  for (const r in e)
1951
- r === "values" && typeof e.values == "object" || (Cs(r) || n === !0 && ke(r) || !t && !ke(r) || // If trying to use native HTML drag events, forward drag listeners
1951
+ r === "values" && typeof e.values == "object" || (As(r) || n === !0 && ke(r) || !t && !ke(r) || // If trying to use native HTML drag events, forward drag listeners
1952
1952
  e.draggable && r.startsWith("onDrag")) && (s[r] = e[r]);
1953
1953
  return s;
1954
1954
  }
@@ -1956,7 +1956,7 @@ const $e = /* @__PURE__ */ ce({});
1956
1956
  function je(e) {
1957
1957
  return e !== null && typeof e == "object" && typeof e.start == "function";
1958
1958
  }
1959
- function we(e) {
1959
+ function Te(e) {
1960
1960
  return typeof e == "string" || Array.isArray(e);
1961
1961
  }
1962
1962
  const kt = [
@@ -1969,17 +1969,17 @@ const kt = [
1969
1969
  "exit"
1970
1970
  ], Bt = ["initial", ...kt];
1971
1971
  function We(e) {
1972
- return je(e.animate) || Bt.some((t) => we(e[t]));
1972
+ return je(e.animate) || Bt.some((t) => Te(e[t]));
1973
1973
  }
1974
- function As(e) {
1974
+ function Cs(e) {
1975
1975
  return !!(We(e) || e.variants);
1976
1976
  }
1977
1977
  function xo(e, t) {
1978
1978
  if (We(e)) {
1979
1979
  const { initial: n, animate: s } = e;
1980
1980
  return {
1981
- initial: n === !1 || we(n) ? n : void 0,
1982
- animate: we(s) ? s : void 0
1981
+ initial: n === !1 || Te(n) ? n : void 0,
1982
+ animate: Te(s) ? s : void 0
1983
1983
  };
1984
1984
  }
1985
1985
  return e.inherit !== !1 ? t : {};
@@ -1995,7 +1995,7 @@ const Vo = Symbol.for("motionComponentSymbol");
1995
1995
  function Ms(e) {
1996
1996
  return e && typeof e == "object" && Object.prototype.hasOwnProperty.call(e, "current");
1997
1997
  }
1998
- function Co(e, t, n) {
1998
+ function Ao(e, t, n) {
1999
1999
  return ar(
2000
2000
  (s) => {
2001
2001
  s && e.onMount && e.onMount(s), t && (s ? t.mount(s) : t.unmount()), n && (typeof n == "function" ? n(s) : Ms(n) && (n.current = s));
@@ -2008,10 +2008,10 @@ function Co(e, t, n) {
2008
2008
  [t]
2009
2009
  );
2010
2010
  }
2011
- const Lt = (e) => e.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), Ao = "framerAppearId", Ps = "data-" + Lt(Ao), Mo = ce({});
2011
+ const Lt = (e) => e.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), Co = "framerAppearId", Ps = "data-" + Lt(Co), Mo = ce({});
2012
2012
  function Po(e, t, n, s, r) {
2013
2013
  var g, y;
2014
- const { visualElement: i } = B($e), o = B(It), a = B(On), u = B(Vs).reducedMotion, l = ye(null);
2014
+ const { visualElement: i } = B($e), o = B(It), a = B(On), u = B(Vs).reducedMotion, l = ge(null);
2015
2015
  s = s || o.renderer, !l.current && s && (l.current = s(e, {
2016
2016
  visualState: t,
2017
2017
  parent: i,
@@ -2022,11 +2022,11 @@ function Po(e, t, n, s, r) {
2022
2022
  }));
2023
2023
  const c = l.current, d = B(Mo);
2024
2024
  c && !c.projection && r && (c.type === "html" || c.type === "svg") && Ro(l.current, n, r, d);
2025
- const f = ye(!1);
2025
+ const f = ge(!1);
2026
2026
  cr(() => {
2027
2027
  c && f.current && c.update(n, a);
2028
2028
  });
2029
- const h = n[Ps], m = ye(!!h && !((g = window.MotionHandoffIsComplete) != null && g.call(window, h)) && ((y = window.MotionHasOptimisedAnimation) == null ? void 0 : y.call(window, h)));
2029
+ const h = n[Ps], m = ge(!!h && !((g = window.MotionHandoffIsComplete) != null && g.call(window, h)) && ((y = window.MotionHasOptimisedAnimation) == null ? void 0 : y.call(window, h)));
2030
2030
  return pr(() => {
2031
2031
  c && (f.current = !0, window.MotionIsMounted = !0, c.updateFeatures(), oo.render(c.render), m.current && c.animationState && c.animationState.animateChanges());
2032
2032
  }), bt(() => {
@@ -2062,7 +2062,6 @@ function Rs(e) {
2062
2062
  return e.options.allowProjection !== !1 ? e.projection : Rs(e.parent);
2063
2063
  }
2064
2064
  function Fo({ preloadedFeatures: e, createVisualElement: t, useRender: n, useVisualState: s, Component: r }) {
2065
- e && lt(e);
2066
2065
  function i(a, u) {
2067
2066
  let l;
2068
2067
  const c = {
@@ -2075,7 +2074,7 @@ function Fo({ preloadedFeatures: e, createVisualElement: t, useRender: n, useVis
2075
2074
  const m = Eo(c);
2076
2075
  l = m.MeasureLayout, f.visualElement = Po(r, h, c, t, m.ProjectionNode);
2077
2076
  }
2078
- return G($e.Provider, { value: f, children: [l && f.visualElement ? w(l, { visualElement: f.visualElement, ...c }) : null, n(r, a, Co(h, f.visualElement, u), h, d, f.visualElement)] });
2077
+ return G($e.Provider, { value: f, children: [l && f.visualElement ? w(l, { visualElement: f.visualElement, ...c }) : null, n(r, a, Ao(h, f.visualElement, u), h, d, f.visualElement)] });
2079
2078
  }
2080
2079
  i.displayName = `motion.${typeof r == "string" ? r : `create(${r.displayName ?? r.name ?? ""})`}`;
2081
2080
  const o = ur(i);
@@ -2086,11 +2085,7 @@ function Do({ layoutId: e }) {
2086
2085
  return t && e !== void 0 ? t + "-" + e : e;
2087
2086
  }
2088
2087
  function Oo(e, t) {
2089
- const n = B(It).strict;
2090
- if (process.env.NODE_ENV !== "production" && t && n) {
2091
- const s = "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";
2092
- e.ignoreStrict ? ue(!1, s) : U(!1, s);
2093
- }
2088
+ B(It).strict, process.env.NODE_ENV;
2094
2089
  }
2095
2090
  function Eo(e) {
2096
2091
  const { drag: t, layout: n } = oe;
@@ -2104,18 +2099,18 @@ function Eo(e) {
2104
2099
  }
2105
2100
  const Io = {};
2106
2101
  function Fs(e, { layout: t, layoutId: n }) {
2107
- return pe.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!Io[e] || e === "opacity");
2102
+ return he.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!Io[e] || e === "opacity");
2108
2103
  }
2109
2104
  const ko = {
2110
2105
  x: "translateX",
2111
2106
  y: "translateY",
2112
2107
  z: "translateZ",
2113
2108
  transformPerspective: "perspective"
2114
- }, Bo = he.length;
2109
+ }, Bo = de.length;
2115
2110
  function Lo(e, t, n) {
2116
2111
  let s = "", r = !0;
2117
2112
  for (let i = 0; i < Bo; i++) {
2118
- const o = he[i], a = e[o];
2113
+ const o = de[i], a = e[o];
2119
2114
  if (a === void 0)
2120
2115
  continue;
2121
2116
  let u = !0;
@@ -2136,7 +2131,7 @@ function Nt(e, t, n) {
2136
2131
  let o = !1, a = !1;
2137
2132
  for (const u in t) {
2138
2133
  const l = t[u];
2139
- if (pe.has(u)) {
2134
+ if (he.has(u)) {
2140
2135
  o = !0;
2141
2136
  continue;
2142
2137
  } else if (Xn(u)) {
@@ -2317,7 +2312,7 @@ function qo(e, t, n, s) {
2317
2312
  for (const f in i)
2318
2313
  r[f] = zo(i[f]);
2319
2314
  let { initial: o, animate: a } = e;
2320
- const u = We(e), l = As(e);
2315
+ const u = We(e), l = Cs(e);
2321
2316
  t && l && !u && e.inherit !== !1 && (o === void 0 && (o = t.initial), a === void 0 && (a = t.animate));
2322
2317
  let c = n ? n.initial === !1 : !1;
2323
2318
  c = c || o === !1;
@@ -2331,8 +2326,8 @@ function qo(e, t, n, s) {
2331
2326
  for (const x in p) {
2332
2327
  let v = p[x];
2333
2328
  if (Array.isArray(v)) {
2334
- const A = c ? v.length - 1 : 0;
2335
- v = v[A];
2329
+ const C = c ? v.length - 1 : 0;
2330
+ v = v[C];
2336
2331
  }
2337
2332
  v !== null && (r[x] = v);
2338
2333
  }
@@ -2360,7 +2355,7 @@ function Bs(e, t, n) {
2360
2355
  const s = Wt(e, t, n);
2361
2356
  for (const r in e)
2362
2357
  if (E(e[r]) || E(t[r])) {
2363
- const i = he.indexOf(r) !== -1 ? "attr" + r.charAt(0).toUpperCase() + r.substring(1) : r;
2358
+ const i = de.indexOf(r) !== -1 ? "attr" + r.charAt(0).toUpperCase() + r.substring(1) : r;
2364
2359
  s[i] = e[r];
2365
2360
  }
2366
2361
  return s;
@@ -2384,7 +2379,7 @@ function Zo(e, t) {
2384
2379
  };
2385
2380
  }
2386
2381
  const Ls = /* @__PURE__ */ Zo();
2387
- function xe(e, t, n) {
2382
+ function we(e, t, n) {
2388
2383
  const s = e.getProps();
2389
2384
  return jt(s, t, n !== void 0 ? n : s.custom, e);
2390
2385
  }
@@ -2396,7 +2391,7 @@ function ea(e) {
2396
2391
  return ft(e) ? e[e.length - 1] || 0 : e;
2397
2392
  }
2398
2393
  function ta(e, t) {
2399
- const n = xe(e, t);
2394
+ const n = we(e, t);
2400
2395
  let { transitionEnd: s = {}, transition: r = {}, ...i } = n || {};
2401
2396
  i = { ...i, ...s };
2402
2397
  for (const o in i) {
@@ -2441,7 +2436,7 @@ const aa = {
2441
2436
  type: "keyframes",
2442
2437
  ease: [0.25, 0.1, 0.35, 1],
2443
2438
  duration: 0.3
2444
- }, fa = (e, { keyframes: t }) => t.length > 2 ? ua : pe.has(e) ? e.startsWith("scale") ? ca(t[1]) : aa : la;
2439
+ }, fa = (e, { keyframes: t }) => t.length > 2 ? ua : he.has(e) ? e.startsWith("scale") ? ca(t[1]) : aa : la;
2445
2440
  function da({ when: e, delay: t, delayChildren: n, staggerChildren: s, staggerDirection: r, repeat: i, repeatType: o, repeatDelay: a, from: u, elapsed: l, ...c }) {
2446
2441
  return !!Object.keys(c).length;
2447
2442
  }
@@ -2516,7 +2511,7 @@ function Ns(e, t, { delay: n = 0, transitionOverride: s, type: r } = {}) {
2516
2511
  }
2517
2512
  function dt(e, t, n = {}) {
2518
2513
  var u;
2519
- const s = xe(e, t, n.type === "exit" ? (u = e.presenceContext) == null ? void 0 : u.custom : void 0);
2514
+ const s = we(e, t, n.type === "exit" ? (u = e.presenceContext) == null ? void 0 : u.custom : void 0);
2520
2515
  let { transition: r = e.getDefaultTransition() || {} } = s || {};
2521
2516
  n.transitionOverride && (r = n.transitionOverride);
2522
2517
  const i = s ? () => Promise.all(Ns(e, s, n)) : () => Promise.resolve(), o = e.variantChildren && e.variantChildren.size ? (l = 0) => {
@@ -2553,7 +2548,7 @@ function ya(e, t, n = {}) {
2553
2548
  } else if (typeof t == "string")
2554
2549
  s = dt(e, t, n);
2555
2550
  else {
2556
- const r = typeof t == "function" ? xe(e, t, n.custom) : t;
2551
+ const r = typeof t == "function" ? we(e, t, n.custom) : t;
2557
2552
  s = Promise.all(Ns(e, r, n));
2558
2553
  }
2559
2554
  return s.then(() => {
@@ -2582,7 +2577,7 @@ function $s(e) {
2582
2577
  const t = {};
2583
2578
  for (let n = 0; n < ba; n++) {
2584
2579
  const s = Bt[n], r = e.props[s];
2585
- (we(r) || r === !1) && (t[s] = r);
2580
+ (Te(r) || r === !1) && (t[s] = r);
2586
2581
  }
2587
2582
  return t;
2588
2583
  }
@@ -2594,7 +2589,7 @@ function xa(e) {
2594
2589
  let t = wa(e), n = Tn(), s = !0;
2595
2590
  const r = (u) => (l, c) => {
2596
2591
  var f;
2597
- const d = xe(e, c, u === "exit" ? (f = e.presenceContext) == null ? void 0 : f.custom : void 0);
2592
+ const d = we(e, c, u === "exit" ? (f = e.presenceContext) == null ? void 0 : f.custom : void 0);
2598
2593
  if (d) {
2599
2594
  const { transition: h, transitionEnd: m, ...g } = d;
2600
2595
  l = { ...l, ...g, ...m };
@@ -2608,18 +2603,18 @@ function xa(e) {
2608
2603
  const { props: l } = e, c = $s(e.parent) || {}, d = [], f = /* @__PURE__ */ new Set();
2609
2604
  let h = {}, m = 1 / 0;
2610
2605
  for (let y = 0; y < Ta; y++) {
2611
- const p = va[y], x = n[p], v = l[p] !== void 0 ? l[p] : c[p], A = we(v), S = p === u ? x.isActive : null;
2606
+ const p = va[y], x = n[p], v = l[p] !== void 0 ? l[p] : c[p], C = Te(v), S = p === u ? x.isActive : null;
2612
2607
  S === !1 && (m = y);
2613
- let C = v === c[p] && v !== l[p] && A;
2614
- if (C && s && e.manuallyAnimateOnMount && (C = !1), x.protectedKeys = { ...h }, // If it isn't active and hasn't *just* been set as inactive
2608
+ let A = v === c[p] && v !== l[p] && C;
2609
+ if (A && s && e.manuallyAnimateOnMount && (A = !1), x.protectedKeys = { ...h }, // If it isn't active and hasn't *just* been set as inactive
2615
2610
  !x.isActive && S === null || // If we didn't and don't have any defined prop for this animation type
2616
2611
  !v && !x.prevProp || // Or if the prop doesn't define an animation
2617
2612
  je(v) || typeof v == "boolean")
2618
2613
  continue;
2619
2614
  const M = Sa(x.prevProp, v);
2620
2615
  let V = M || // If we're making this variant active, we want to always make it active
2621
- p === u && x.isActive && !C && A || // If we removed a higher-priority variant (i is in reverse order)
2622
- y > m && A, F = !1;
2616
+ p === u && x.isActive && !A && C || // If we removed a higher-priority variant (i is in reverse order)
2617
+ y > m && C, F = !1;
2623
2618
  const I = Array.isArray(v) ? v : [v];
2624
2619
  let te = I.reduce(r(p), {});
2625
2620
  S === !1 && (te = {});
@@ -2638,7 +2633,7 @@ function xa(e) {
2638
2633
  let He = !1;
2639
2634
  ft(K) && ft(_e) ? He = !Ks(K, _e) : He = K !== _e, He ? K != null ? Ut(O) : f.add(O) : K !== void 0 && f.has(O) ? Ut(O) : x.protectedKeys[O] = !0;
2640
2635
  }
2641
- x.prevProp = v, x.prevResolvedValues = te, x.isActive && (h = { ...h, ...te }), s && e.blockInitialAnimation && (V = !1), V && (!(C && M) || F) && d.push(...I.map((O) => ({
2636
+ x.prevProp = v, x.prevResolvedValues = te, x.isActive && (h = { ...h, ...te }), s && e.blockInitialAnimation && (V = !1), V && (!(A && M) || F) && d.push(...I.map((O) => ({
2642
2637
  animation: O,
2643
2638
  options: { type: p }
2644
2639
  })));
@@ -2646,7 +2641,7 @@ function xa(e) {
2646
2641
  if (f.size) {
2647
2642
  const y = {};
2648
2643
  if (typeof l.initial != "boolean") {
2649
- const p = xe(e, Array.isArray(l.initial) ? l.initial[0] : l.initial);
2644
+ const p = we(e, Array.isArray(l.initial) ? l.initial[0] : l.initial);
2650
2645
  p && p.transition && (y.transition = p.transition);
2651
2646
  }
2652
2647
  f.forEach((p) => {
@@ -2683,7 +2678,7 @@ function xa(e) {
2683
2678
  function Sa(e, t) {
2684
2679
  return typeof t == "string" ? t !== e : Array.isArray(t) ? !Ks(t, e) : !1;
2685
2680
  }
2686
- function Y(e = !1) {
2681
+ function z(e = !1) {
2687
2682
  return {
2688
2683
  isActive: e,
2689
2684
  protectedKeys: {},
@@ -2693,23 +2688,23 @@ function Y(e = !1) {
2693
2688
  }
2694
2689
  function Tn() {
2695
2690
  return {
2696
- animate: Y(!0),
2697
- whileInView: Y(),
2698
- whileHover: Y(),
2699
- whileTap: Y(),
2700
- whileDrag: Y(),
2701
- whileFocus: Y(),
2702
- exit: Y()
2691
+ animate: z(!0),
2692
+ whileInView: z(),
2693
+ whileHover: z(),
2694
+ whileTap: z(),
2695
+ whileDrag: z(),
2696
+ whileFocus: z(),
2697
+ exit: z()
2703
2698
  };
2704
2699
  }
2705
- class me {
2700
+ class pe {
2706
2701
  constructor(t) {
2707
2702
  this.isMounted = !1, this.node = t;
2708
2703
  }
2709
2704
  update() {
2710
2705
  }
2711
2706
  }
2712
- class Va extends me {
2707
+ class Va extends pe {
2713
2708
  /**
2714
2709
  * We dynamically generate the AnimationState manager as it contains a reference
2715
2710
  * to the underlying animation library. We only want to load that if we load this,
@@ -2737,10 +2732,10 @@ class Va extends me {
2737
2732
  this.node.animationState.reset(), (t = this.unmountControls) == null || t.call(this);
2738
2733
  }
2739
2734
  }
2740
- let Ca = 0;
2741
- class Aa extends me {
2735
+ let Aa = 0;
2736
+ class Ca extends pe {
2742
2737
  constructor() {
2743
- super(...arguments), this.id = Ca++;
2738
+ super(...arguments), this.id = Aa++;
2744
2739
  }
2745
2740
  update() {
2746
2741
  if (!this.node.presenceContext)
@@ -2765,7 +2760,7 @@ const Ma = {
2765
2760
  Feature: Va
2766
2761
  },
2767
2762
  exit: {
2768
- Feature: Aa
2763
+ Feature: Ca
2769
2764
  }
2770
2765
  };
2771
2766
  function wn(e, t, n, s = { passive: !0 }) {
@@ -2809,7 +2804,7 @@ function Sn(e, t, n) {
2809
2804
  const r = "onHover" + n, i = s[r];
2810
2805
  i && L.postRender(() => i(t, js(t)));
2811
2806
  }
2812
- class Da extends me {
2807
+ class Da extends pe {
2813
2808
  mount() {
2814
2809
  const { current: t } = this.node;
2815
2810
  t && (this.unmount = uo(t, (n, s) => (Sn(this.node, s, "Start"), (r) => Sn(this.node, r, "End"))));
@@ -2817,7 +2812,7 @@ class Da extends me {
2817
2812
  unmount() {
2818
2813
  }
2819
2814
  }
2820
- class Oa extends me {
2815
+ class Oa extends pe {
2821
2816
  constructor() {
2822
2817
  super(...arguments), this.isActive = !1;
2823
2818
  }
@@ -2847,7 +2842,7 @@ function Vn(e, t, n) {
2847
2842
  const r = "onTap" + (n === "End" ? "" : n), i = s[r];
2848
2843
  i && L.postRender(() => i(t, js(t)));
2849
2844
  }
2850
- class Ea extends me {
2845
+ class Ea extends pe {
2851
2846
  mount() {
2852
2847
  const { current: t } = this.node;
2853
2848
  t && (this.unmount = mo(t, (n, s) => (Vn(this.node, s, "Start"), (r, { success: i }) => Vn(this.node, r, i ? "End" : "Cancel")), { useGlobalTarget: this.node.props.globalTapTarget }));
@@ -2855,7 +2850,7 @@ class Ea extends me {
2855
2850
  unmount() {
2856
2851
  }
2857
2852
  }
2858
- const ht = /* @__PURE__ */ new WeakMap(), Xe = /* @__PURE__ */ new WeakMap(), Ia = (e) => {
2853
+ const ht = /* @__PURE__ */ new WeakMap(), Qe = /* @__PURE__ */ new WeakMap(), Ia = (e) => {
2859
2854
  const t = ht.get(e.target);
2860
2855
  t && t(e);
2861
2856
  }, ka = (e) => {
@@ -2863,8 +2858,8 @@ const ht = /* @__PURE__ */ new WeakMap(), Xe = /* @__PURE__ */ new WeakMap(), Ia
2863
2858
  };
2864
2859
  function Ba({ root: e, ...t }) {
2865
2860
  const n = e || document;
2866
- Xe.has(n) || Xe.set(n, {});
2867
- const s = Xe.get(n), r = JSON.stringify(t);
2861
+ Qe.has(n) || Qe.set(n, {});
2862
+ const s = Qe.get(n), r = JSON.stringify(t);
2868
2863
  return s[r] || (s[r] = new IntersectionObserver(ka, { root: e, ...t })), s[r];
2869
2864
  }
2870
2865
  function La(e, t, n) {
@@ -2877,7 +2872,7 @@ const Na = {
2877
2872
  some: 0,
2878
2873
  all: 1
2879
2874
  };
2880
- class Ka extends me {
2875
+ class Ka extends pe {
2881
2876
  constructor() {
2882
2877
  super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
2883
2878
  }
@@ -2955,7 +2950,7 @@ function Ha(e, t, n) {
2955
2950
  t[s] === void 0 && e.removeValue(s);
2956
2951
  return t;
2957
2952
  }
2958
- const Cn = [
2953
+ const An = [
2959
2954
  "AnimationStart",
2960
2955
  "AnimationComplete",
2961
2956
  "Update",
@@ -2983,7 +2978,7 @@ class Ga {
2983
2978
  this.renderScheduledAt < f && (this.renderScheduledAt = f, L.render(this.render, !1, !0));
2984
2979
  };
2985
2980
  const { latestValues: u, renderState: l } = o;
2986
- this.latestValues = u, this.baseTarget = { ...u }, this.initialValues = n.initial ? { ...u } : {}, this.renderState = l, this.parent = t, this.props = n, this.presenceContext = s, this.depth = t ? t.depth + 1 : 0, this.reducedMotionConfig = r, this.options = a, this.blockInitialAnimation = !!i, this.isControllingVariants = We(n), this.isVariantNode = As(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(t && t.current);
2981
+ this.latestValues = u, this.baseTarget = { ...u }, this.initialValues = n.initial ? { ...u } : {}, this.renderState = l, this.parent = t, this.props = n, this.presenceContext = s, this.depth = t ? t.depth + 1 : 0, this.reducedMotionConfig = r, this.options = a, this.blockInitialAnimation = !!i, this.isControllingVariants = We(n), this.isVariantNode = Cs(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(t && t.current);
2987
2982
  const { willChange: c, ...d } = this.scrapeMotionValuesFromProps(n, {}, this);
2988
2983
  for (const f in d) {
2989
2984
  const h = d[f];
@@ -2994,7 +2989,7 @@ class Ga {
2994
2989
  this.current = t, _a.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)), _s.current || Wa(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : pt.current, process.env.NODE_ENV !== "production" && Nn(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected."), this.parent && this.parent.children.add(this), this.update(this.props, this.presenceContext);
2995
2990
  }
2996
2991
  unmount() {
2997
- this.projection && this.projection.unmount(), Qe(this.notifyUpdate), Qe(this.render), this.valueSubscriptions.forEach((t) => t()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent && this.parent.children.delete(this);
2992
+ this.projection && this.projection.unmount(), Ze(this.notifyUpdate), Ze(this.render), this.valueSubscriptions.forEach((t) => t()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent && this.parent.children.delete(this);
2998
2993
  for (const t in this.events)
2999
2994
  this.events[t].clear();
3000
2995
  for (const t in this.features) {
@@ -3005,7 +3000,7 @@ class Ga {
3005
3000
  }
3006
3001
  bindToMotionValue(t, n) {
3007
3002
  this.valueSubscriptions.has(t) && this.valueSubscriptions.get(t)();
3008
- const s = pe.has(t);
3003
+ const s = he.has(t);
3009
3004
  s && this.onBindTransform && this.onBindTransform();
3010
3005
  const r = n.on("change", (a) => {
3011
3006
  this.latestValues[t] = a, this.props.onUpdate && L.preRender(this.notifyUpdate), s && this.projection && (this.projection.isTransformDirty = !0);
@@ -3054,8 +3049,8 @@ class Ga {
3054
3049
  */
3055
3050
  update(t, n) {
3056
3051
  (t.transformTemplate || this.props.transformTemplate) && this.scheduleRender(), this.prevProps = this.props, this.props = t, this.prevPresenceContext = this.presenceContext, this.presenceContext = n;
3057
- for (let s = 0; s < Cn.length; s++) {
3058
- const r = Cn[s];
3052
+ for (let s = 0; s < An.length; s++) {
3053
+ const r = An[s];
3059
3054
  this.propEventSubscriptions[r] && (this.propEventSubscriptions[r](), delete this.propEventSubscriptions[r]);
3060
3055
  const i = "on" + r, o = t[i];
3061
3056
  o && (this.propEventSubscriptions[r] = this.on(r, o));
@@ -3125,7 +3120,7 @@ class Ga {
3125
3120
  */
3126
3121
  readValue(t, n) {
3127
3122
  let s = this.latestValues[t] !== void 0 || !this.current ? this.latestValues[t] : this.getBaseTargetFromProps(this.props, t) ?? this.readValueFromInstance(this.current, t, this.options);
3128
- return s != null && (typeof s == "string" && (En(s) || In(s)) ? s = parseFloat(s) : !yo(s) && de.test(n) && (s = Ts(t, n)), this.setBaseTarget(t, E(s) ? s.get() : s)), E(s) ? s.get() : s;
3123
+ return s != null && (typeof s == "string" && (En(s) || In(s)) ? s = parseFloat(s) : !yo(s) && fe.test(n) && (s = Ts(t, n)), this.setBaseTarget(t, E(s) ? s.get() : s)), E(s) ? s.get() : s;
3129
3124
  }
3130
3125
  /**
3131
3126
  * Set the base target to later animate back to. This is currently
@@ -3197,8 +3192,8 @@ class za extends Hs {
3197
3192
  }
3198
3193
  readValueFromInstance(t, n) {
3199
3194
  var s;
3200
- if (pe.has(n))
3201
- return (s = this.projection) != null && s.isProjecting ? rt(n) : Ti(t, n);
3195
+ if (he.has(n))
3196
+ return (s = this.projection) != null && s.isProjecting ? it(n) : Ti(t, n);
3202
3197
  {
3203
3198
  const r = Ua(t), i = (Xn(n) ? r.getPropertyValue(n) : r[n]) || 0;
3204
3199
  return typeof i == "string" ? i.trim() : i;
@@ -3252,7 +3247,7 @@ class qa extends Hs {
3252
3247
  return t[n];
3253
3248
  }
3254
3249
  readValueFromInstance(t, n) {
3255
- if (pe.has(n)) {
3250
+ if (he.has(n)) {
3256
3251
  const s = vs(n);
3257
3252
  return s && s.default || 0;
3258
3253
  }
@@ -3282,7 +3277,7 @@ const Xa = (e, t) => $t(e) ? new qa(t) : new za(t, {
3282
3277
  1: "6",
3283
3278
  2: "8",
3284
3279
  3: "10"
3285
- }, z = (e) => Array.isArray(e), ee = (e) => typeof e == "object" && !Array.isArray(e) || typeof e == "string" || !e, Ja = (e) => {
3280
+ }, U = (e) => Array.isArray(e), ee = (e) => typeof e == "object" && !Array.isArray(e) || typeof e == "string" || !e, Ja = (e) => {
3286
3281
  const t = (r, i = []) => (b.Children.toArray(r).forEach((a) => {
3287
3282
  b.isValidElement(a) && (a.props.value ? i.push(a) : a.props.children && t(a.props.children, i));
3288
3283
  }), i);
@@ -3341,7 +3336,7 @@ const Xa = (e, t) => $t(e) ? new qa(t) : new za(t, {
3341
3336
  }) => {
3342
3337
  const n = b.useContext(D), s = () => {
3343
3338
  var i, o;
3344
- if (z(n.value)) {
3339
+ if (U(n.value)) {
3345
3340
  const a = n.onValueChange;
3346
3341
  a == null || a([]);
3347
3342
  }
@@ -3355,7 +3350,7 @@ const Xa = (e, t) => $t(e) ? new qa(t) : new za(t, {
3355
3350
  var i;
3356
3351
  if (ee(n.value))
3357
3352
  return n.clearable && n.value;
3358
- if (z(n.value))
3353
+ if (U(n.value))
3359
3354
  return n.clearable && ((i = n.value) == null ? void 0 : i.length) > 0;
3360
3355
  }, [n.clearable, n.value]) ? /* @__PURE__ */ w(fr, { label: "Clear field", ...e, children: /* @__PURE__ */ w(
3361
3356
  ae,
@@ -3426,7 +3421,7 @@ const Xa = (e, t) => $t(e) ? new qa(t) : new za(t, {
3426
3421
  ) });
3427
3422
  }, oc = ({ children: e }) => {
3428
3423
  const t = b.useContext(D);
3429
- if (!z(t.value)) return null;
3424
+ if (!U(t.value)) return null;
3430
3425
  const n = t.layout || "truncate", r = (t.value.length - 2).toString().split("");
3431
3426
  return /* @__PURE__ */ G(
3432
3427
  ie,
@@ -3593,7 +3588,7 @@ const Xa = (e, t) => $t(e) ? new qa(t) : new za(t, {
3593
3588
  children: h,
3594
3589
  ...m
3595
3590
  }) => {
3596
- const g = b.useId(), y = b.useId(), p = b.useRef(null), x = b.useRef(null), v = b.useRef(null), A = b.useMemo(() => Ja(h), [h]), [S, C] = b.useState(""), [M = !1, V] = Js({
3591
+ const g = b.useId(), y = b.useId(), p = b.useRef(null), x = b.useRef(null), v = b.useRef(null), C = b.useMemo(() => Ja(h), [h]), [S, A] = b.useState(""), [M = !1, V] = Js({
3597
3592
  prop: i,
3598
3593
  defaultProp: a ?? !1,
3599
3594
  onChange: o
@@ -3601,7 +3596,7 @@ const Xa = (e, t) => $t(e) ? new qa(t) : new za(t, {
3601
3596
  V((I) => !I);
3602
3597
  }, [V]);
3603
3598
  return b.useEffect(() => {
3604
- M || C("");
3599
+ M || A("");
3605
3600
  }, [M]), /* @__PURE__ */ w(
3606
3601
  D.Provider,
3607
3602
  {
@@ -3621,13 +3616,13 @@ const Xa = (e, t) => $t(e) ? new qa(t) : new za(t, {
3621
3616
  clearable: n,
3622
3617
  disabled: s,
3623
3618
  searchQuery: S,
3624
- setSearchQuery: C,
3619
+ setSearchQuery: A,
3625
3620
  triggerRef: p,
3626
3621
  searchRef: x,
3627
3622
  contentRef: v,
3628
3623
  errored: c,
3629
3624
  layout: f,
3630
- options: A,
3625
+ options: C,
3631
3626
  legacyBehavior: r
3632
3627
  },
3633
3628
  children: /* @__PURE__ */ w(
@@ -3644,7 +3639,7 @@ const Xa = (e, t) => $t(e) ? new qa(t) : new za(t, {
3644
3639
  );
3645
3640
  }, pc = () => {
3646
3641
  const e = b.useContext(D);
3647
- if (e.value && z(e.value)) {
3642
+ if (e.value && U(e.value)) {
3648
3643
  const t = e.layout || "truncate";
3649
3644
  return e.value.length === 0 ? /* @__PURE__ */ w(_.TriggerPlaceholder, {}) : /* @__PURE__ */ w(bo, { features: Qa, children: /* @__PURE__ */ w(_.TriggerTagsContainer, { children: e.value.map((n, s) => {
3650
3645
  const r = H(n, e.legacyBehavior);
@@ -3667,12 +3662,12 @@ const Xa = (e, t) => $t(e) ? new qa(t) : new za(t, {
3667
3662
  s.options,
3668
3663
  s.legacyBehavior
3669
3664
  );
3670
- if (z(s.value))
3665
+ if (U(s.value))
3671
3666
  return s.value.map(
3672
3667
  (o) => mt(o, s.options, s.legacyBehavior)
3673
3668
  );
3674
3669
  }
3675
- }, [s.value, s.options, s.legacyBehavior]), i = b.useCallback(() => r ? ee(r) ? (r == null ? void 0 : r.label) || (r == null ? void 0 : r.value) || s.placeholder : z(r) && r.map((o) => (o == null ? void 0 : o.label) || (o == null ? void 0 : o.value)).join(", ") || s.placeholder : s.placeholder, [r, s.placeholder]);
3670
+ }, [s.value, s.options, s.legacyBehavior]), i = b.useCallback(() => r ? ee(r) ? (r == null ? void 0 : r.label) || (r == null ? void 0 : r.value) || s.placeholder : U(r) && r.map((o) => (o == null ? void 0 : o.label) || (o == null ? void 0 : o.value)).join(", ") || s.placeholder : s.placeholder, [r, s.placeholder]);
3676
3671
  return /* @__PURE__ */ w(
3677
3672
  Be.Trigger,
3678
3673
  {
@@ -3738,7 +3733,7 @@ const Xa = (e, t) => $t(e) ? new qa(t) : new za(t, {
3738
3733
  tgphRef: n,
3739
3734
  ...s
3740
3735
  }) => {
3741
- const r = b.useContext(D), i = b.useRef(!1), o = An(n, r.contentRef), a = b.useRef(null), [u, l] = b.useState(0), [c, d] = b.useState(!1), f = b.useCallback(
3736
+ const r = b.useContext(D), i = b.useRef(!1), o = Cn(n, r.contentRef), a = b.useRef(null), [u, l] = b.useState(0), [c, d] = b.useState(!1), f = b.useCallback(
3742
3737
  (h) => {
3743
3738
  const m = h == null ? void 0 : h.getBoundingClientRect();
3744
3739
  m && l(m.height), c || d(!0);
@@ -3835,7 +3830,7 @@ const Xa = (e, t) => $t(e) ? new qa(t) : new za(t, {
3835
3830
  children: t || r,
3836
3831
  value: e,
3837
3832
  searchQuery: o.searchQuery
3838
- }), d = z(l) ? l.some(
3833
+ }), d = U(l) ? l.some(
3839
3834
  (h) => H(h, o.legacyBehavior) === e
3840
3835
  ) : H(l, o.legacyBehavior) === e, f = (h) => {
3841
3836
  var g, y;
@@ -3847,9 +3842,9 @@ const Xa = (e, t) => $t(e) ? new qa(t) : new za(t, {
3847
3842
  if (ee(l)) {
3848
3843
  const p = o.onValueChange;
3849
3844
  o.legacyBehavior === !0 ? p == null || p({ value: e, label: t }) : p == null || p(e);
3850
- } else if (z(l)) {
3845
+ } else if (U(l)) {
3851
3846
  const p = o.onValueChange, x = o.value, v = d ? x.filter(
3852
- (A) => H(A, o.legacyBehavior) !== e
3847
+ (C) => H(C, o.legacyBehavior) !== e
3853
3848
  ) : [
3854
3849
  ...x,
3855
3850
  // TODO: Remove this once { value, label } option is deprecated
@@ -3889,7 +3884,7 @@ const Xa = (e, t) => $t(e) ? new qa(t) : new za(t, {
3889
3884
  ...i
3890
3885
  }) => {
3891
3886
  var d;
3892
- const o = b.useId(), a = b.useContext(D), u = An(n, a.searchRef), l = s ?? a.searchQuery, c = r ?? a.setSearchQuery;
3887
+ const o = b.useId(), a = b.useContext(D), u = Cn(n, a.searchRef), l = s ?? a.searchQuery, c = r ?? a.setSearchQuery;
3893
3888
  return b.useEffect(() => {
3894
3889
  var m;
3895
3890
  const f = (g) => {
@@ -3988,7 +3983,7 @@ const Xa = (e, t) => $t(e) ? new qa(t) : new za(t, {
3988
3983
  selected: s,
3989
3984
  onSelect: () => {
3990
3985
  var u;
3991
- if (n && o.value && o.searchQuery) {
3986
+ if (n && o.searchQuery) {
3992
3987
  const l = r === !0 ? { value: o.searchQuery } : o.searchQuery;
3993
3988
  n(l), (u = o.setSearchQuery) == null || u.call(o, "");
3994
3989
  }