renderloom 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import * as ns from "react";
2
- import Dt, { forwardRef as en, createElement as Ut, createContext as Pe, useRef as re, useLayoutEffect as Va, useEffect as Ke, useId as tn, useContext as ne, useInsertionEffect as sn, useMemo as Ge, useCallback as Gt, Children as Ra, isValidElement as Da, useState as z, Fragment as ki, Component as La } from "react";
2
+ import Dt, { forwardRef as en, createElement as Ut, createContext as Pe, useRef as re, useLayoutEffect as Va, useEffect as Ie, useId as tn, useContext as ne, useInsertionEffect as sn, useMemo as Ke, useCallback as Gt, Children as Ra, isValidElement as Da, useState as O, Fragment as ki, Component as La } from "react";
3
3
  import Ia from "react-dom";
4
4
  var Ct = { exports: {} }, ot = {};
5
5
  /**
@@ -49,7 +49,7 @@ function za() {
49
49
  function e(b) {
50
50
  if (b == null) return null;
51
51
  if (typeof b == "function")
52
- return b.$$typeof === O ? null : b.displayName || b.name || null;
52
+ return b.$$typeof === z ? null : b.displayName || b.name || null;
53
53
  if (typeof b == "string") return b;
54
54
  switch (b) {
55
55
  case y:
@@ -62,7 +62,7 @@ function za() {
62
62
  return "Suspense";
63
63
  case L:
64
64
  return "SuspenseList";
65
- case M:
65
+ case E:
66
66
  return "Activity";
67
67
  }
68
68
  if (typeof b == "object")
@@ -80,7 +80,7 @@ function za() {
80
80
  return b = b.displayName, b || (b = R.displayName || R.name || "", b = b !== "" ? "ForwardRef(" + b + ")" : "ForwardRef"), b;
81
81
  case w:
82
82
  return R = b.displayName || null, R !== null ? R : e(b.type) || "Memo";
83
- case E:
83
+ case M:
84
84
  R = b._payload, b = b._init;
85
85
  try {
86
86
  return e(b(R));
@@ -111,7 +111,7 @@ function za() {
111
111
  }
112
112
  function n(b) {
113
113
  if (b === y) return "<>";
114
- if (typeof b == "object" && b !== null && b.$$typeof === E)
114
+ if (typeof b == "object" && b !== null && b.$$typeof === M)
115
115
  return "<...>";
116
116
  try {
117
117
  var R = e(b);
@@ -152,7 +152,7 @@ function za() {
152
152
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
153
153
  )), b = this.props.ref, b !== void 0 ? b : null;
154
154
  }
155
- function u(b, R, $, K, q, ee) {
155
+ function u(b, R, $, K, Z, ee) {
156
156
  var G = $.ref;
157
157
  return b = {
158
158
  $$typeof: g,
@@ -177,7 +177,7 @@ function za() {
177
177
  configurable: !1,
178
178
  enumerable: !1,
179
179
  writable: !0,
180
- value: q
180
+ value: Z
181
181
  }), Object.defineProperty(b, "_debugTask", {
182
182
  configurable: !1,
183
183
  enumerable: !1,
@@ -185,7 +185,7 @@ function za() {
185
185
  value: ee
186
186
  }), Object.freeze && (Object.freeze(b.props), Object.freeze(b)), b;
187
187
  }
188
- function d(b, R, $, K, q, ee) {
188
+ function d(b, R, $, K, Z, ee) {
189
189
  var G = R.children;
190
190
  if (G !== void 0)
191
191
  if (K)
@@ -229,17 +229,17 @@ React keys must be passed directly to JSX without using spread:
229
229
  G,
230
230
  $,
231
231
  r(),
232
- q,
232
+ Z,
233
233
  ee
234
234
  );
235
235
  }
236
236
  function f(b) {
237
- h(b) ? b._store && (b._store.validated = 1) : typeof b == "object" && b !== null && b.$$typeof === E && (b._payload.status === "fulfilled" ? h(b._payload.value) && b._payload.value._store && (b._payload.value._store.validated = 1) : b._store && (b._store.validated = 1));
237
+ h(b) ? b._store && (b._store.validated = 1) : typeof b == "object" && b !== null && b.$$typeof === M && (b._payload.status === "fulfilled" ? h(b._payload.value) && b._payload.value._store && (b._payload.value._store.validated = 1) : b._store && (b._store.validated = 1));
238
238
  }
239
239
  function h(b) {
240
240
  return typeof b == "object" && b !== null && b.$$typeof === g;
241
241
  }
242
- var m = Dt, g = Symbol.for("react.transitional.element"), p = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), k = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), x = Symbol.for("react.consumer"), T = Symbol.for("react.context"), j = Symbol.for("react.forward_ref"), N = Symbol.for("react.suspense"), L = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), E = Symbol.for("react.lazy"), M = Symbol.for("react.activity"), O = Symbol.for("react.client.reference"), B = m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, le = Object.prototype.hasOwnProperty, ae = Array.isArray, X = console.createTask ? console.createTask : function() {
242
+ var m = Dt, g = Symbol.for("react.transitional.element"), p = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), k = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), x = Symbol.for("react.consumer"), T = Symbol.for("react.context"), j = Symbol.for("react.forward_ref"), N = Symbol.for("react.suspense"), L = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), M = Symbol.for("react.lazy"), E = Symbol.for("react.activity"), z = Symbol.for("react.client.reference"), B = m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, le = Object.prototype.hasOwnProperty, ae = Array.isArray, q = console.createTask ? console.createTask : function() {
243
243
  return null;
244
244
  };
245
245
  m = {
@@ -250,7 +250,7 @@ React keys must be passed directly to JSX without using spread:
250
250
  var _, pe = {}, U = m.react_stack_bottom_frame.bind(
251
251
  m,
252
252
  o
253
- )(), Q = X(n(o)), P = {};
253
+ )(), Q = q(n(o)), P = {};
254
254
  at.Fragment = y, at.jsx = function(b, R, $) {
255
255
  var K = 1e4 > B.recentlyCreatedOwnerStacks++;
256
256
  return d(
@@ -259,7 +259,7 @@ React keys must be passed directly to JSX without using spread:
259
259
  $,
260
260
  !1,
261
261
  K ? Error("react-stack-top-frame") : U,
262
- K ? X(n(b)) : Q
262
+ K ? q(n(b)) : Q
263
263
  );
264
264
  }, at.jsxs = function(b, R, $) {
265
265
  var K = 1e4 > B.recentlyCreatedOwnerStacks++;
@@ -269,7 +269,7 @@ React keys must be passed directly to JSX without using spread:
269
269
  $,
270
270
  !0,
271
271
  K ? Error("react-stack-top-frame") : U,
272
- K ? X(n(b)) : Q
272
+ K ? q(n(b)) : Q
273
273
  );
274
274
  };
275
275
  })()), at;
@@ -354,7 +354,7 @@ const Ua = en(
354
354
  * This source code is licensed under the ISC license.
355
355
  * See the LICENSE file in the root directory of this source tree.
356
356
  */
357
- const J = (e, t) => {
357
+ const X = (e, t) => {
358
358
  const s = en(
359
359
  ({ className: n, ...r }, o) => Ut(Ua, {
360
360
  ref: o,
@@ -378,7 +378,7 @@ const J = (e, t) => {
378
378
  const Ga = [
379
379
  ["path", { d: "m7 7 10 10", key: "1fmybs" }],
380
380
  ["path", { d: "M17 7v10H7", key: "6fjiku" }]
381
- ], Ka = J("arrow-down-right", Ga);
381
+ ], Ka = X("arrow-down-right", Ga);
382
382
  /**
383
383
  * @license lucide-react v0.562.0 - ISC
384
384
  *
@@ -388,7 +388,7 @@ const Ga = [
388
388
  const Ya = [
389
389
  ["path", { d: "m12 19-7-7 7-7", key: "1l729n" }],
390
390
  ["path", { d: "M19 12H5", key: "x3x0zl" }]
391
- ], Ha = J("arrow-left", Ya);
391
+ ], Ha = X("arrow-left", Ya);
392
392
  /**
393
393
  * @license lucide-react v0.562.0 - ISC
394
394
  *
@@ -398,7 +398,7 @@ const Ya = [
398
398
  const Xa = [
399
399
  ["path", { d: "M7 7h10v10", key: "1tivn9" }],
400
400
  ["path", { d: "M7 17 17 7", key: "1vkiza" }]
401
- ], qa = J("arrow-up-right", Xa);
401
+ ], qa = X("arrow-up-right", Xa);
402
402
  /**
403
403
  * @license lucide-react v0.562.0 - ISC
404
404
  *
@@ -414,35 +414,35 @@ const Za = [
414
414
  key: "11g9vi"
415
415
  }
416
416
  ]
417
- ], _n = J("bell", Za);
417
+ ], _n = X("bell", Za);
418
418
  /**
419
419
  * @license lucide-react v0.562.0 - ISC
420
420
  *
421
421
  * This source code is licensed under the ISC license.
422
422
  * See the LICENSE file in the root directory of this source tree.
423
423
  */
424
- const Ja = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], Qa = J("check", Ja);
424
+ const Ja = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], Qa = X("check", Ja);
425
425
  /**
426
426
  * @license lucide-react v0.562.0 - ISC
427
427
  *
428
428
  * This source code is licensed under the ISC license.
429
429
  * See the LICENSE file in the root directory of this source tree.
430
430
  */
431
- const el = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], ji = J("chevron-down", el);
431
+ const el = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], ji = X("chevron-down", el);
432
432
  /**
433
433
  * @license lucide-react v0.562.0 - ISC
434
434
  *
435
435
  * This source code is licensed under the ISC license.
436
436
  * See the LICENSE file in the root directory of this source tree.
437
437
  */
438
- const tl = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], Si = J("chevron-left", tl);
438
+ const tl = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], Si = X("chevron-left", tl);
439
439
  /**
440
440
  * @license lucide-react v0.562.0 - ISC
441
441
  *
442
442
  * This source code is licensed under the ISC license.
443
443
  * See the LICENSE file in the root directory of this source tree.
444
444
  */
445
- const sl = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], nn = J("chevron-right", sl);
445
+ const sl = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], nn = X("chevron-right", sl);
446
446
  /**
447
447
  * @license lucide-react v0.562.0 - ISC
448
448
  *
@@ -453,7 +453,7 @@ const nl = [
453
453
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
454
454
  ["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
455
455
  ["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
456
- ], Ci = J("circle-alert", nl);
456
+ ], Ci = X("circle-alert", nl);
457
457
  /**
458
458
  * @license lucide-react v0.562.0 - ISC
459
459
  *
@@ -463,7 +463,7 @@ const nl = [
463
463
  const rl = [
464
464
  ["path", { d: "M21.801 10A10 10 0 1 1 17 3.335", key: "yps3ct" }],
465
465
  ["path", { d: "m9 11 3 3L22 4", key: "1pflzl" }]
466
- ], il = J("circle-check-big", rl);
466
+ ], il = X("circle-check-big", rl);
467
467
  /**
468
468
  * @license lucide-react v0.562.0 - ISC
469
469
  *
@@ -473,7 +473,7 @@ const rl = [
473
473
  const ol = [
474
474
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
475
475
  ["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
476
- ], rs = J("circle-check", ol);
476
+ ], rs = X("circle-check", ol);
477
477
  /**
478
478
  * @license lucide-react v0.562.0 - ISC
479
479
  *
@@ -484,7 +484,7 @@ const al = [
484
484
  ["path", { d: "M12 13v8", key: "1l5pq0" }],
485
485
  ["path", { d: "M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242", key: "1pljnt" }],
486
486
  ["path", { d: "m8 17 4-4 4 4", key: "1quai1" }]
487
- ], ll = J("cloud-upload", al);
487
+ ], ll = X("cloud-upload", al);
488
488
  /**
489
489
  * @license lucide-react v0.562.0 - ISC
490
490
  *
@@ -503,7 +503,7 @@ const cl = [
503
503
  ["path", { d: "M10 9H8", key: "b1mrlr" }],
504
504
  ["path", { d: "M16 13H8", key: "t4e002" }],
505
505
  ["path", { d: "M16 17H8", key: "z1uh3a" }]
506
- ], ul = J("file-text", cl);
506
+ ], ul = X("file-text", cl);
507
507
  /**
508
508
  * @license lucide-react v0.562.0 - ISC
509
509
  *
@@ -514,7 +514,7 @@ const dl = [
514
514
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
515
515
  ["path", { d: "M12 16v-4", key: "1dtifu" }],
516
516
  ["path", { d: "M12 8h.01", key: "e9boi3" }]
517
- ], Kt = J("info", dl);
517
+ ], Kt = X("info", dl);
518
518
  /**
519
519
  * @license lucide-react v0.562.0 - ISC
520
520
  *
@@ -543,7 +543,7 @@ const fl = [
543
543
  key: "kqbvx6"
544
544
  }
545
545
  ]
546
- ], hl = J("layers", fl);
546
+ ], hl = X("layers", fl);
547
547
  /**
548
548
  * @license lucide-react v0.562.0 - ISC
549
549
  *
@@ -551,43 +551,54 @@ const fl = [
551
551
  * See the LICENSE file in the root directory of this source tree.
552
552
  */
553
553
  const ml = [
554
+ ["path", { d: "M4 5h16", key: "1tepv9" }],
555
+ ["path", { d: "M4 12h16", key: "1lakjw" }],
556
+ ["path", { d: "M4 19h16", key: "1djgab" }]
557
+ ], pl = X("menu", ml);
558
+ /**
559
+ * @license lucide-react v0.562.0 - ISC
560
+ *
561
+ * This source code is licensed under the ISC license.
562
+ * See the LICENSE file in the root directory of this source tree.
563
+ */
564
+ const gl = [
554
565
  ["path", { d: "m14 10 7-7", key: "oa77jy" }],
555
566
  ["path", { d: "M20 10h-6V4", key: "mjg0md" }],
556
567
  ["path", { d: "m3 21 7-7", key: "tjx5ai" }],
557
568
  ["path", { d: "M4 14h6v6", key: "rmj7iw" }]
558
- ], pl = J("minimize-2", ml);
569
+ ], yl = X("minimize-2", gl);
559
570
  /**
560
571
  * @license lucide-react v0.562.0 - ISC
561
572
  *
562
573
  * This source code is licensed under the ISC license.
563
574
  * See the LICENSE file in the root directory of this source tree.
564
575
  */
565
- const gl = [
576
+ const xl = [
566
577
  ["path", { d: "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8", key: "v9h5vc" }],
567
578
  ["path", { d: "M21 3v5h-5", key: "1q7to0" }],
568
579
  ["path", { d: "M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16", key: "3uifl3" }],
569
580
  ["path", { d: "M8 16H3v5", key: "1cv678" }]
570
- ], $n = J("refresh-cw", gl);
581
+ ], $n = X("refresh-cw", xl);
571
582
  /**
572
583
  * @license lucide-react v0.562.0 - ISC
573
584
  *
574
585
  * This source code is licensed under the ISC license.
575
586
  * See the LICENSE file in the root directory of this source tree.
576
587
  */
577
- const yl = [
588
+ const bl = [
578
589
  ["path", { d: "M10 11v6", key: "nco0om" }],
579
590
  ["path", { d: "M14 11v6", key: "outv1u" }],
580
591
  ["path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6", key: "miytrc" }],
581
592
  ["path", { d: "M3 6h18", key: "d0wm0j" }],
582
593
  ["path", { d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2", key: "e791ji" }]
583
- ], xl = J("trash-2", yl);
594
+ ], vl = X("trash-2", bl);
584
595
  /**
585
596
  * @license lucide-react v0.562.0 - ISC
586
597
  *
587
598
  * This source code is licensed under the ISC license.
588
599
  * See the LICENSE file in the root directory of this source tree.
589
600
  */
590
- const bl = [
601
+ const wl = [
591
602
  [
592
603
  "path",
593
604
  {
@@ -597,22 +608,22 @@ const bl = [
597
608
  ],
598
609
  ["path", { d: "M12 9v4", key: "juzpu7" }],
599
610
  ["path", { d: "M12 17h.01", key: "p32p05" }]
600
- ], rn = J("triangle-alert", bl);
611
+ ], rn = X("triangle-alert", wl);
601
612
  /**
602
613
  * @license lucide-react v0.562.0 - ISC
603
614
  *
604
615
  * This source code is licensed under the ISC license.
605
616
  * See the LICENSE file in the root directory of this source tree.
606
617
  */
607
- const vl = [
618
+ const kl = [
608
619
  ["path", { d: "M18 6 6 18", key: "1bl5f8" }],
609
620
  ["path", { d: "m6 6 12 12", key: "d8bk6v" }]
610
- ], Re = J("x", vl), on = Pe({});
621
+ ], Re = X("x", kl), on = Pe({});
611
622
  function an(e) {
612
623
  const t = re(null);
613
624
  return t.current === null && (t.current = e()), t.current;
614
625
  }
615
- const wl = typeof window < "u", Ai = wl ? Va : Ke, is = /* @__PURE__ */ Pe(null);
626
+ const Tl = typeof window < "u", Ai = Tl ? Va : Ie, is = /* @__PURE__ */ Pe(null);
616
627
  function ln(e, t) {
617
628
  e.indexOf(t) === -1 && e.push(t);
618
629
  }
@@ -638,13 +649,13 @@ const De = {}, Pi = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);
638
649
  function Ni(e) {
639
650
  return typeof e == "object" && e !== null;
640
651
  }
641
- const Ei = (e) => /^0[^.\s]+$/u.test(e);
652
+ const Mi = (e) => /^0[^.\s]+$/u.test(e);
642
653
  // @__NO_SIDE_EFFECTS__
643
- function Mi(e) {
654
+ function Ei(e) {
644
655
  let t;
645
656
  return () => (t === void 0 && (t = e()), t);
646
657
  }
647
- const me = /* @__NO_SIDE_EFFECTS__ */ (e) => e, kl = (e, t) => (s) => t(e(s)), xt = (...e) => e.reduce(kl), mt = /* @__NO_SIDE_EFFECTS__ */ (e, t, s) => {
658
+ const me = /* @__NO_SIDE_EFFECTS__ */ (e) => e, jl = (e, t) => (s) => t(e(s)), xt = (...e) => e.reduce(jl), mt = /* @__NO_SIDE_EFFECTS__ */ (e, t, s) => {
648
659
  const n = t - e;
649
660
  return n === 0 ? 1 : (s - e) / n;
650
661
  };
@@ -681,25 +692,25 @@ const Wn = /* @__PURE__ */ new Set();
681
692
  function un(e, t, s) {
682
693
  e || Wn.has(t) || (console.warn(Ps(t, s)), Wn.add(t));
683
694
  }
684
- const Ri = (e, t, s) => (((1 - 3 * s + 3 * t) * e + (3 * s - 6 * t)) * e + 3 * t) * e, Tl = 1e-7, jl = 12;
685
- function Sl(e, t, s, n, r) {
695
+ const Ri = (e, t, s) => (((1 - 3 * s + 3 * t) * e + (3 * s - 6 * t)) * e + 3 * t) * e, Sl = 1e-7, Cl = 12;
696
+ function Al(e, t, s, n, r) {
686
697
  let o, i, a = 0;
687
698
  do
688
699
  i = t + (s - t) / 2, o = Ri(i, n, r) - e, o > 0 ? s = i : t = i;
689
- while (Math.abs(o) > Tl && ++a < jl);
700
+ while (Math.abs(o) > Sl && ++a < Cl);
690
701
  return i;
691
702
  }
692
703
  function bt(e, t, s, n) {
693
704
  if (e === t && s === n)
694
705
  return me;
695
- const r = (o) => Sl(o, 0, 1, e, s);
706
+ const r = (o) => Al(o, 0, 1, e, s);
696
707
  return (o) => o === 0 || o === 1 ? o : Ri(r(o), t, n);
697
708
  }
698
- const Di = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, Li = (e) => (t) => 1 - e(1 - t), Ii = /* @__PURE__ */ bt(0.33, 1.53, 0.69, 0.99), dn = /* @__PURE__ */ Li(Ii), Oi = /* @__PURE__ */ Di(dn), zi = (e) => e >= 1 ? 1 : (e *= 2) < 1 ? 0.5 * dn(e) : 0.5 * (2 - Math.pow(2, -10 * (e - 1))), fn = (e) => 1 - Math.sin(Math.acos(e)), Fi = Li(fn), Bi = Di(fn), Cl = /* @__PURE__ */ bt(0.42, 0, 1, 1), Al = /* @__PURE__ */ bt(0, 0, 0.58, 1), _i = /* @__PURE__ */ bt(0.42, 0, 0.58, 1), Pl = (e) => Array.isArray(e) && typeof e[0] != "number", $i = (e) => Array.isArray(e) && typeof e[0] == "number", Un = {
709
+ const Di = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, Li = (e) => (t) => 1 - e(1 - t), Ii = /* @__PURE__ */ bt(0.33, 1.53, 0.69, 0.99), dn = /* @__PURE__ */ Li(Ii), Oi = /* @__PURE__ */ Di(dn), zi = (e) => e >= 1 ? 1 : (e *= 2) < 1 ? 0.5 * dn(e) : 0.5 * (2 - Math.pow(2, -10 * (e - 1))), fn = (e) => 1 - Math.sin(Math.acos(e)), Fi = Li(fn), Bi = Di(fn), Pl = /* @__PURE__ */ bt(0.42, 0, 1, 1), Nl = /* @__PURE__ */ bt(0, 0, 0.58, 1), _i = /* @__PURE__ */ bt(0.42, 0, 0.58, 1), Ml = (e) => Array.isArray(e) && typeof e[0] != "number", $i = (e) => Array.isArray(e) && typeof e[0] == "number", Un = {
699
710
  linear: me,
700
- easeIn: Cl,
711
+ easeIn: Pl,
701
712
  easeInOut: _i,
702
- easeOut: Al,
713
+ easeOut: Nl,
703
714
  circIn: fn,
704
715
  circInOut: Bi,
705
716
  circOut: Fi,
@@ -707,12 +718,12 @@ const Di = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, Li
707
718
  backInOut: Oi,
708
719
  backOut: Ii,
709
720
  anticipate: zi
710
- }, Nl = (e) => typeof e == "string", Gn = (e) => {
721
+ }, El = (e) => typeof e == "string", Gn = (e) => {
711
722
  if ($i(e)) {
712
723
  Ae(e.length === 4, "Cubic bezier arrays must contain four numerical values.", "cubic-bezier-length");
713
724
  const [t, s, n, r] = e;
714
725
  return bt(t, s, n, r);
715
- } else if (Nl(e))
726
+ } else if (El(e))
716
727
  return Ae(Un[e] !== void 0, `Invalid easing type '${e}'`, "invalid-easing-type"), Un[e];
717
728
  return e;
718
729
  }, At = [
@@ -733,7 +744,7 @@ const Di = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, Li
733
744
  "postRender"
734
745
  // Compute
735
746
  ];
736
- function El(e, t) {
747
+ function Vl(e, t) {
737
748
  let s = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), r = !1, o = !1;
738
749
  const i = /* @__PURE__ */ new WeakSet();
739
750
  let a = {
@@ -773,16 +784,16 @@ function El(e, t) {
773
784
  };
774
785
  return u;
775
786
  }
776
- const Ml = 40;
787
+ const Rl = 40;
777
788
  function Wi(e, t) {
778
789
  let s = !1, n = !0;
779
790
  const r = {
780
791
  delta: 0,
781
792
  timestamp: 0,
782
793
  isProcessing: !1
783
- }, o = () => s = !0, i = At.reduce((x, T) => (x[T] = El(o), x), {}), { setup: a, read: c, resolveKeyframes: u, preUpdate: d, update: f, preRender: h, render: m, postRender: g } = i, p = () => {
794
+ }, o = () => s = !0, i = At.reduce((x, T) => (x[T] = Vl(o), x), {}), { setup: a, read: c, resolveKeyframes: u, preUpdate: d, update: f, preRender: h, render: m, postRender: g } = i, p = () => {
784
795
  const x = De.useManualTiming, T = x ? r.timestamp : performance.now();
785
- s = !1, x || (r.delta = n ? 1e3 / 60 : Math.max(Math.min(T - r.timestamp, Ml), 1)), r.timestamp = T, r.isProcessing = !0, a.process(r), c.process(r), u.process(r), d.process(r), f.process(r), h.process(r), m.process(r), g.process(r), r.isProcessing = !1, s && t && (n = !1, e(p));
796
+ s = !1, x || (r.delta = n ? 1e3 / 60 : Math.max(Math.min(T - r.timestamp, Rl), 1)), r.timestamp = T, r.isProcessing = !0, a.process(r), c.process(r), u.process(r), d.process(r), f.process(r), h.process(r), m.process(r), g.process(r), r.isProcessing = !1, s && t && (n = !1, e(p));
786
797
  }, y = () => {
787
798
  s = !0, n = !0, r.isProcessing || e(p);
788
799
  };
@@ -796,15 +807,15 @@ function Wi(e, t) {
796
807
  }
797
808
  const { schedule: F, cancel: Le, state: ie, steps: ds } = /* @__PURE__ */ Wi(typeof requestAnimationFrame < "u" ? requestAnimationFrame : me, !0);
798
809
  let Lt;
799
- function Vl() {
810
+ function Dl() {
800
811
  Lt = void 0;
801
812
  }
802
813
  const ce = {
803
814
  now: () => (Lt === void 0 && ce.set(ie.isProcessing || De.useManualTiming ? ie.timestamp : performance.now()), Lt),
804
815
  set: (e) => {
805
- Lt = e, queueMicrotask(Vl);
816
+ Lt = e, queueMicrotask(Dl);
806
817
  }
807
- }, Ui = (e) => (t) => typeof t == "string" && t.startsWith(e), Gi = /* @__PURE__ */ Ui("--"), Rl = /* @__PURE__ */ Ui("var(--"), hn = (e) => Rl(e) ? Dl.test(e.split("/*")[0].trim()) : !1, Dl = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
818
+ }, Ui = (e) => (t) => typeof t == "string" && t.startsWith(e), Gi = /* @__PURE__ */ Ui("--"), Ll = /* @__PURE__ */ Ui("var(--"), hn = (e) => Ll(e) ? Il.test(e.split("/*")[0].trim()) : !1, Il = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
808
819
  function Kn(e) {
809
820
  return typeof e != "string" ? !1 : e.split("/*")[0].includes("var(--");
810
821
  }
@@ -819,10 +830,10 @@ const nt = {
819
830
  ...nt,
820
831
  default: 1
821
832
  }, dt = (e) => Math.round(e * 1e5) / 1e5, mn = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
822
- function Ll(e) {
833
+ function Ol(e) {
823
834
  return e == null;
824
835
  }
825
- const Il = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, pn = (e, t) => (s) => !!(typeof s == "string" && Il.test(s) && s.startsWith(e) || t && !Ll(s) && Object.prototype.hasOwnProperty.call(s, t)), Ki = (e, t, s) => (n) => {
836
+ const zl = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, pn = (e, t) => (s) => !!(typeof s == "string" && zl.test(s) && s.startsWith(e) || t && !Ol(s) && Object.prototype.hasOwnProperty.call(s, t)), Ki = (e, t, s) => (n) => {
826
837
  if (typeof n != "string")
827
838
  return n;
828
839
  const [r, o, i, a] = n.match(mn);
@@ -832,15 +843,15 @@ const Il = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s
832
843
  [s]: parseFloat(i),
833
844
  alpha: a !== void 0 ? parseFloat(a) : 1
834
845
  };
835
- }, Ol = (e) => je(0, 255, e), fs = {
846
+ }, Fl = (e) => je(0, 255, e), fs = {
836
847
  ...nt,
837
- transform: (e) => Math.round(Ol(e))
838
- }, _e = {
848
+ transform: (e) => Math.round(Fl(e))
849
+ }, $e = {
839
850
  test: /* @__PURE__ */ pn("rgb", "red"),
840
851
  parse: /* @__PURE__ */ Ki("red", "green", "blue"),
841
852
  transform: ({ red: e, green: t, blue: s, alpha: n = 1 }) => "rgba(" + fs.transform(e) + ", " + fs.transform(t) + ", " + fs.transform(s) + ", " + dt(pt.transform(n)) + ")"
842
853
  };
843
- function zl(e) {
854
+ function Bl(e) {
844
855
  let t = "", s = "", n = "", r = "";
845
856
  return e.length > 5 ? (t = e.substring(1, 3), s = e.substring(3, 5), n = e.substring(5, 7), r = e.substring(7, 9)) : (t = e.substring(1, 2), s = e.substring(2, 3), n = e.substring(3, 4), r = e.substring(4, 5), t += t, s += s, n += n, r += r), {
846
857
  red: parseInt(t, 16),
@@ -851,13 +862,13 @@ function zl(e) {
851
862
  }
852
863
  const Ns = {
853
864
  test: /* @__PURE__ */ pn("#"),
854
- parse: zl,
855
- transform: _e.transform
865
+ parse: Bl,
866
+ transform: $e.transform
856
867
  }, vt = /* @__NO_SIDE_EFFECTS__ */ (e) => ({
857
868
  test: (t) => typeof t == "string" && t.endsWith(e) && t.split(" ").length === 1,
858
869
  parse: parseFloat,
859
870
  transform: (t) => `${t}${e}`
860
- }), Ee = /* @__PURE__ */ vt("deg"), Te = /* @__PURE__ */ vt("%"), A = /* @__PURE__ */ vt("px"), Fl = /* @__PURE__ */ vt("vh"), Bl = /* @__PURE__ */ vt("vw"), Yn = {
871
+ }), Me = /* @__PURE__ */ vt("deg"), Te = /* @__PURE__ */ vt("%"), A = /* @__PURE__ */ vt("px"), _l = /* @__PURE__ */ vt("vh"), $l = /* @__PURE__ */ vt("vw"), Yn = {
861
872
  ...Te,
862
873
  parse: (e) => Te.parse(e) / 100,
863
874
  transform: (e) => Te.transform(e * 100)
@@ -865,20 +876,20 @@ const Ns = {
865
876
  test: /* @__PURE__ */ pn("hsl", "hue"),
866
877
  parse: /* @__PURE__ */ Ki("hue", "saturation", "lightness"),
867
878
  transform: ({ hue: e, saturation: t, lightness: s, alpha: n = 1 }) => "hsla(" + Math.round(e) + ", " + Te.transform(dt(t)) + ", " + Te.transform(dt(s)) + ", " + dt(pt.transform(n)) + ")"
868
- }, Z = {
869
- test: (e) => _e.test(e) || Ns.test(e) || qe.test(e),
870
- parse: (e) => _e.test(e) ? _e.parse(e) : qe.test(e) ? qe.parse(e) : Ns.parse(e),
871
- transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? _e.transform(e) : qe.transform(e),
879
+ }, J = {
880
+ test: (e) => $e.test(e) || Ns.test(e) || qe.test(e),
881
+ parse: (e) => $e.test(e) ? $e.parse(e) : qe.test(e) ? qe.parse(e) : Ns.parse(e),
882
+ transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? $e.transform(e) : qe.transform(e),
872
883
  getAnimatableNone: (e) => {
873
- const t = Z.parse(e);
874
- return t.alpha = 0, Z.transform(t);
884
+ const t = J.parse(e);
885
+ return t.alpha = 0, J.transform(t);
875
886
  }
876
- }, _l = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
877
- function $l(e) {
887
+ }, Wl = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
888
+ function Ul(e) {
878
889
  var t, s;
879
- return isNaN(e) && typeof e == "string" && (((t = e.match(mn)) == null ? void 0 : t.length) || 0) + (((s = e.match(_l)) == null ? void 0 : s.length) || 0) > 0;
890
+ return isNaN(e) && typeof e == "string" && (((t = e.match(mn)) == null ? void 0 : t.length) || 0) + (((s = e.match(Wl)) == null ? void 0 : s.length) || 0) > 0;
880
891
  }
881
- const Yi = "number", Hi = "color", Wl = "var", Ul = "var(", Hn = "${}", Gl = /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;
892
+ const Yi = "number", Hi = "color", Gl = "var", Kl = "var(", Hn = "${}", Yl = /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;
882
893
  function et(e) {
883
894
  const t = e.toString(), s = [], n = {
884
895
  color: [],
@@ -886,10 +897,10 @@ function et(e) {
886
897
  var: []
887
898
  }, r = [];
888
899
  let o = 0;
889
- const a = t.replace(Gl, (c) => (Z.test(c) ? (n.color.push(o), r.push(Hi), s.push(Z.parse(c))) : c.startsWith(Ul) ? (n.var.push(o), r.push(Wl), s.push(c)) : (n.number.push(o), r.push(Yi), s.push(parseFloat(c))), ++o, Hn)).split(Hn);
900
+ const a = t.replace(Yl, (c) => (J.test(c) ? (n.color.push(o), r.push(Hi), s.push(J.parse(c))) : c.startsWith(Kl) ? (n.var.push(o), r.push(Gl), s.push(c)) : (n.number.push(o), r.push(Yi), s.push(parseFloat(c))), ++o, Hn)).split(Hn);
890
901
  return { values: s, split: a, indexes: n, types: r };
891
902
  }
892
- function Kl(e) {
903
+ function Hl(e) {
893
904
  return et(e).values;
894
905
  }
895
906
  function Xi({ split: e, types: t }) {
@@ -899,29 +910,29 @@ function Xi({ split: e, types: t }) {
899
910
  for (let o = 0; o < s; o++)
900
911
  if (r += e[o], n[o] !== void 0) {
901
912
  const i = t[o];
902
- i === Yi ? r += dt(n[o]) : i === Hi ? r += Z.transform(n[o]) : r += n[o];
913
+ i === Yi ? r += dt(n[o]) : i === Hi ? r += J.transform(n[o]) : r += n[o];
903
914
  }
904
915
  return r;
905
916
  };
906
917
  }
907
- function Yl(e) {
918
+ function Xl(e) {
908
919
  return Xi(et(e));
909
920
  }
910
- const Hl = (e) => typeof e == "number" ? 0 : Z.test(e) ? Z.getAnimatableNone(e) : e, Xl = (e, t) => typeof e == "number" ? t != null && t.trim().endsWith("/") ? e : 0 : Hl(e);
911
- function ql(e) {
921
+ const ql = (e) => typeof e == "number" ? 0 : J.test(e) ? J.getAnimatableNone(e) : e, Zl = (e, t) => typeof e == "number" ? t != null && t.trim().endsWith("/") ? e : 0 : ql(e);
922
+ function Jl(e) {
912
923
  const t = et(e);
913
- return Xi(t)(t.values.map((n, r) => Xl(n, t.split[r])));
924
+ return Xi(t)(t.values.map((n, r) => Zl(n, t.split[r])));
914
925
  }
915
926
  const xe = {
916
- test: $l,
917
- parse: Kl,
918
- createTransformer: Yl,
919
- getAnimatableNone: ql
927
+ test: Ul,
928
+ parse: Hl,
929
+ createTransformer: Xl,
930
+ getAnimatableNone: Jl
920
931
  };
921
932
  function hs(e, t, s) {
922
933
  return s < 0 && (s += 1), s > 1 && (s -= 1), s < 1 / 6 ? e + (t - e) * 6 * s : s < 1 / 2 ? t : s < 2 / 3 ? e + (t - e) * (2 / 3 - s) * 6 : e;
923
934
  }
924
- function Zl({ hue: e, saturation: t, lightness: s, alpha: n }) {
935
+ function Ql({ hue: e, saturation: t, lightness: s, alpha: n }) {
925
936
  e /= 360, t /= 100, s /= 100;
926
937
  let r = 0, o = 0, i = 0;
927
938
  if (!t)
@@ -943,29 +954,29 @@ function Ht(e, t) {
943
954
  const W = (e, t, s) => e + (t - e) * s, ms = (e, t, s) => {
944
955
  const n = e * e, r = s * (t * t - n) + n;
945
956
  return r < 0 ? 0 : Math.sqrt(r);
946
- }, Jl = [Ns, _e, qe], Ql = (e) => Jl.find((t) => t.test(e));
957
+ }, ec = [Ns, $e, qe], tc = (e) => ec.find((t) => t.test(e));
947
958
  function Xn(e) {
948
- const t = Ql(e);
959
+ const t = tc(e);
949
960
  if (st(!!t, `'${e}' is not an animatable color. Use the equivalent color code instead.`, "color-not-animatable"), !t)
950
961
  return !1;
951
962
  let s = t.parse(e);
952
- return t === qe && (s = Zl(s)), s;
963
+ return t === qe && (s = Ql(s)), s;
953
964
  }
954
965
  const qn = (e, t) => {
955
966
  const s = Xn(e), n = Xn(t);
956
967
  if (!s || !n)
957
968
  return Ht(e, t);
958
969
  const r = { ...s };
959
- return (o) => (r.red = ms(s.red, n.red, o), r.green = ms(s.green, n.green, o), r.blue = ms(s.blue, n.blue, o), r.alpha = W(s.alpha, n.alpha, o), _e.transform(r));
960
- }, Es = /* @__PURE__ */ new Set(["none", "hidden"]);
961
- function ec(e, t) {
962
- return Es.has(e) ? (s) => s <= 0 ? e : t : (s) => s >= 1 ? t : e;
970
+ return (o) => (r.red = ms(s.red, n.red, o), r.green = ms(s.green, n.green, o), r.blue = ms(s.blue, n.blue, o), r.alpha = W(s.alpha, n.alpha, o), $e.transform(r));
971
+ }, Ms = /* @__PURE__ */ new Set(["none", "hidden"]);
972
+ function sc(e, t) {
973
+ return Ms.has(e) ? (s) => s <= 0 ? e : t : (s) => s >= 1 ? t : e;
963
974
  }
964
- function tc(e, t) {
975
+ function nc(e, t) {
965
976
  return (s) => W(e, t, s);
966
977
  }
967
978
  function gn(e) {
968
- return typeof e == "number" ? tc : typeof e == "string" ? hn(e) ? Ht : Z.test(e) ? qn : rc : Array.isArray(e) ? qi : typeof e == "object" ? Z.test(e) ? qn : sc : Ht;
979
+ return typeof e == "number" ? nc : typeof e == "string" ? hn(e) ? Ht : J.test(e) ? qn : oc : Array.isArray(e) ? qi : typeof e == "object" ? J.test(e) ? qn : rc : Ht;
969
980
  }
970
981
  function qi(e, t) {
971
982
  const s = [...e], n = s.length, r = e.map((o, i) => gn(o)(o, t[i]));
@@ -975,7 +986,7 @@ function qi(e, t) {
975
986
  return s;
976
987
  };
977
988
  }
978
- function sc(e, t) {
989
+ function rc(e, t) {
979
990
  const s = { ...e, ...t }, n = {};
980
991
  for (const r in s)
981
992
  e[r] !== void 0 && t[r] !== void 0 && (n[r] = gn(e[r])(e[r], t[r]));
@@ -985,7 +996,7 @@ function sc(e, t) {
985
996
  return s;
986
997
  };
987
998
  }
988
- function nc(e, t) {
999
+ function ic(e, t) {
989
1000
  const s = [], n = { color: 0, var: 0, number: 0 };
990
1001
  for (let r = 0; r < t.values.length; r++) {
991
1002
  const o = t.types[r], i = e.indexes[o][n[o]], a = e.values[i] ?? 0;
@@ -993,14 +1004,14 @@ function nc(e, t) {
993
1004
  }
994
1005
  return s;
995
1006
  }
996
- const rc = (e, t) => {
1007
+ const oc = (e, t) => {
997
1008
  const s = xe.createTransformer(t), n = et(e), r = et(t);
998
- return n.indexes.var.length === r.indexes.var.length && n.indexes.color.length === r.indexes.color.length && n.indexes.number.length >= r.indexes.number.length ? Es.has(e) && !r.values.length || Es.has(t) && !n.values.length ? ec(e, t) : xt(qi(nc(n, r), r.values), s) : (st(!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"), Ht(e, t));
1009
+ return n.indexes.var.length === r.indexes.var.length && n.indexes.color.length === r.indexes.color.length && n.indexes.number.length >= r.indexes.number.length ? Ms.has(e) && !r.values.length || Ms.has(t) && !n.values.length ? sc(e, t) : xt(qi(ic(n, r), r.values), s) : (st(!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"), Ht(e, t));
999
1010
  };
1000
1011
  function Zi(e, t, s) {
1001
1012
  return typeof e == "number" && typeof t == "number" && typeof s == "number" ? W(e, t, s) : gn(e)(e, t);
1002
1013
  }
1003
- const ic = (e) => {
1014
+ const ac = (e) => {
1004
1015
  const t = ({ timestamp: s }) => e(s);
1005
1016
  return {
1006
1017
  start: (s = !0) => F.update(t, s),
@@ -1026,7 +1037,7 @@ function yn(e) {
1026
1037
  t += s, n = e.next(t);
1027
1038
  return t >= Xt ? 1 / 0 : t;
1028
1039
  }
1029
- function oc(e, t = 100, s) {
1040
+ function lc(e, t = 100, s) {
1030
1041
  const n = s({ ...e, keyframes: [0, t] }), r = Math.min(yn(n), Xt);
1031
1042
  return {
1032
1043
  type: "keyframes",
@@ -1063,26 +1074,26 @@ const Y = {
1063
1074
  minDamping: 0.05,
1064
1075
  maxDamping: 1
1065
1076
  };
1066
- function Ms(e, t) {
1077
+ function Es(e, t) {
1067
1078
  return e * Math.sqrt(1 - t * t);
1068
1079
  }
1069
- const ac = 12;
1070
- function lc(e, t, s) {
1080
+ const cc = 12;
1081
+ function uc(e, t, s) {
1071
1082
  let n = s;
1072
- for (let r = 1; r < ac; r++)
1083
+ for (let r = 1; r < cc; r++)
1073
1084
  n = n - e(n) / t(n);
1074
1085
  return n;
1075
1086
  }
1076
1087
  const ps = 1e-3;
1077
- function cc({ duration: e = Y.duration, bounce: t = Y.bounce, velocity: s = Y.velocity, mass: n = Y.mass }) {
1088
+ function dc({ duration: e = Y.duration, bounce: t = Y.bounce, velocity: s = Y.velocity, mass: n = Y.mass }) {
1078
1089
  let r, o;
1079
1090
  st(e <= /* @__PURE__ */ de(Y.maxDuration), "Spring duration must be 10 seconds or less", "spring-duration-limit");
1080
1091
  let i = 1 - t;
1081
1092
  i = je(Y.minDamping, Y.maxDamping, i), e = je(Y.minDuration, Y.maxDuration, /* @__PURE__ */ he(e)), i < 1 ? (r = (u) => {
1082
- const d = u * i, f = d * e, h = d - s, m = Ms(u, i), g = Math.exp(-f);
1093
+ const d = u * i, f = d * e, h = d - s, m = Es(u, i), g = Math.exp(-f);
1083
1094
  return ps - h / m * g;
1084
1095
  }, o = (u) => {
1085
- const f = u * i * e, h = f * s + s, m = Math.pow(i, 2) * Math.pow(u, 2) * e, g = Math.exp(-f), p = Ms(Math.pow(u, 2), i);
1096
+ const f = u * i * e, h = f * s + s, m = Math.pow(i, 2) * Math.pow(u, 2) * e, g = Math.exp(-f), p = Es(Math.pow(u, 2), i);
1086
1097
  return (-r(u) + ps > 0 ? -1 : 1) * ((h - m) * g) / p;
1087
1098
  }) : (r = (u) => {
1088
1099
  const d = Math.exp(-u * e), f = (u - s) * e + 1;
@@ -1091,7 +1102,7 @@ function cc({ duration: e = Y.duration, bounce: t = Y.bounce, velocity: s = Y.ve
1091
1102
  const d = Math.exp(-u * e), f = (s - u) * (e * e);
1092
1103
  return d * f;
1093
1104
  });
1094
- const a = 5 / e, c = lc(r, o, a);
1105
+ const a = 5 / e, c = uc(r, o, a);
1095
1106
  if (e = /* @__PURE__ */ de(e), isNaN(c))
1096
1107
  return {
1097
1108
  stiffness: Y.stiffness,
@@ -1107,11 +1118,11 @@ function cc({ duration: e = Y.duration, bounce: t = Y.bounce, velocity: s = Y.ve
1107
1118
  };
1108
1119
  }
1109
1120
  }
1110
- const uc = ["duration", "bounce"], dc = ["stiffness", "damping", "mass"];
1121
+ const fc = ["duration", "bounce"], hc = ["stiffness", "damping", "mass"];
1111
1122
  function Zn(e, t) {
1112
1123
  return t.some((s) => e[s] !== void 0);
1113
1124
  }
1114
- function fc(e) {
1125
+ function mc(e) {
1115
1126
  let t = {
1116
1127
  velocity: Y.velocity,
1117
1128
  stiffness: Y.stiffness,
@@ -1120,7 +1131,7 @@ function fc(e) {
1120
1131
  isResolvedFromDuration: !1,
1121
1132
  ...e
1122
1133
  };
1123
- if (!Zn(e, dc) && Zn(e, uc))
1134
+ if (!Zn(e, hc) && Zn(e, fc))
1124
1135
  if (t.velocity = 0, e.visualDuration) {
1125
1136
  const s = e.visualDuration, n = 2 * Math.PI / (s * 1.2), r = n * n, o = 2 * je(0.05, 1, 1 - (e.bounce || 0)) * Math.sqrt(r);
1126
1137
  t = {
@@ -1130,7 +1141,7 @@ function fc(e) {
1130
1141
  damping: o
1131
1142
  };
1132
1143
  } else {
1133
- const s = cc({ ...e, velocity: 0 });
1144
+ const s = dc({ ...e, velocity: 0 });
1134
1145
  t = {
1135
1146
  ...t,
1136
1147
  ...s,
@@ -1146,66 +1157,66 @@ function qt(e = Y.visualDuration, t = Y.bounce) {
1146
1157
  bounce: t
1147
1158
  } : e;
1148
1159
  let { restSpeed: n, restDelta: r } = s;
1149
- const o = s.keyframes[0], i = s.keyframes[s.keyframes.length - 1], a = { done: !1, value: o }, { stiffness: c, damping: u, mass: d, duration: f, velocity: h, isResolvedFromDuration: m } = fc({
1160
+ const o = s.keyframes[0], i = s.keyframes[s.keyframes.length - 1], a = { done: !1, value: o }, { stiffness: c, damping: u, mass: d, duration: f, velocity: h, isResolvedFromDuration: m } = mc({
1150
1161
  ...s,
1151
1162
  velocity: -/* @__PURE__ */ he(s.velocity || 0)
1152
1163
  }), g = h || 0, p = u / (2 * Math.sqrt(c * d)), y = i - o, k = /* @__PURE__ */ he(Math.sqrt(c / d)), v = Math.abs(y) < 5;
1153
1164
  n || (n = v ? Y.restSpeed.granular : Y.restSpeed.default), r || (r = v ? Y.restDelta.granular : Y.restDelta.default);
1154
1165
  let x, T, j, N, L, w;
1155
1166
  if (p < 1)
1156
- j = Ms(k, p), N = (g + p * k * y) / j, x = (M) => {
1157
- const O = Math.exp(-p * k * M);
1158
- return i - O * (N * Math.sin(j * M) + y * Math.cos(j * M));
1159
- }, L = p * k * N + y * j, w = p * k * y - N * j, T = (M) => Math.exp(-p * k * M) * (L * Math.sin(j * M) + w * Math.cos(j * M));
1167
+ j = Es(k, p), N = (g + p * k * y) / j, x = (E) => {
1168
+ const z = Math.exp(-p * k * E);
1169
+ return i - z * (N * Math.sin(j * E) + y * Math.cos(j * E));
1170
+ }, L = p * k * N + y * j, w = p * k * y - N * j, T = (E) => Math.exp(-p * k * E) * (L * Math.sin(j * E) + w * Math.cos(j * E));
1160
1171
  else if (p === 1) {
1161
- x = (O) => i - Math.exp(-k * O) * (y + (g + k * y) * O);
1162
- const M = g + k * y;
1163
- T = (O) => Math.exp(-k * O) * (k * M * O - g);
1172
+ x = (z) => i - Math.exp(-k * z) * (y + (g + k * y) * z);
1173
+ const E = g + k * y;
1174
+ T = (z) => Math.exp(-k * z) * (k * E * z - g);
1164
1175
  } else {
1165
- const M = k * Math.sqrt(p * p - 1);
1176
+ const E = k * Math.sqrt(p * p - 1);
1166
1177
  x = (ae) => {
1167
- const X = Math.exp(-p * k * ae), _ = Math.min(M * ae, 300);
1168
- return i - X * ((g + p * k * y) * Math.sinh(_) + M * y * Math.cosh(_)) / M;
1178
+ const q = Math.exp(-p * k * ae), _ = Math.min(E * ae, 300);
1179
+ return i - q * ((g + p * k * y) * Math.sinh(_) + E * y * Math.cosh(_)) / E;
1169
1180
  };
1170
- const O = (g + p * k * y) / M, B = p * k * O - y * M, le = p * k * y - O * M;
1181
+ const z = (g + p * k * y) / E, B = p * k * z - y * E, le = p * k * y - z * E;
1171
1182
  T = (ae) => {
1172
- const X = Math.exp(-p * k * ae), _ = Math.min(M * ae, 300);
1173
- return X * (B * Math.sinh(_) + le * Math.cosh(_));
1183
+ const q = Math.exp(-p * k * ae), _ = Math.min(E * ae, 300);
1184
+ return q * (B * Math.sinh(_) + le * Math.cosh(_));
1174
1185
  };
1175
1186
  }
1176
- const E = {
1187
+ const M = {
1177
1188
  calculatedDuration: m && f || null,
1178
- velocity: (M) => /* @__PURE__ */ de(T(M)),
1179
- next: (M) => {
1189
+ velocity: (E) => /* @__PURE__ */ de(T(E)),
1190
+ next: (E) => {
1180
1191
  if (!m && p < 1) {
1181
- const B = Math.exp(-p * k * M), le = Math.sin(j * M), ae = Math.cos(j * M), X = i - B * (N * le + y * ae), _ = /* @__PURE__ */ de(B * (L * le + w * ae));
1182
- return a.done = Math.abs(_) <= n && Math.abs(i - X) <= r, a.value = a.done ? i : X, a;
1192
+ const B = Math.exp(-p * k * E), le = Math.sin(j * E), ae = Math.cos(j * E), q = i - B * (N * le + y * ae), _ = /* @__PURE__ */ de(B * (L * le + w * ae));
1193
+ return a.done = Math.abs(_) <= n && Math.abs(i - q) <= r, a.value = a.done ? i : q, a;
1183
1194
  }
1184
- const O = x(M);
1195
+ const z = x(E);
1185
1196
  if (m)
1186
- a.done = M >= f;
1197
+ a.done = E >= f;
1187
1198
  else {
1188
- const B = /* @__PURE__ */ de(T(M));
1189
- a.done = Math.abs(B) <= n && Math.abs(i - O) <= r;
1199
+ const B = /* @__PURE__ */ de(T(E));
1200
+ a.done = Math.abs(B) <= n && Math.abs(i - z) <= r;
1190
1201
  }
1191
- return a.value = a.done ? i : O, a;
1202
+ return a.value = a.done ? i : z, a;
1192
1203
  },
1193
1204
  toString: () => {
1194
- const M = Math.min(yn(E), Xt), O = Ji((B) => E.next(M * B).value, M, 30);
1195
- return M + "ms " + O;
1205
+ const E = Math.min(yn(M), Xt), z = Ji((B) => M.next(E * B).value, E, 30);
1206
+ return E + "ms " + z;
1196
1207
  },
1197
1208
  toTransition: () => {
1198
1209
  }
1199
1210
  };
1200
- return E;
1211
+ return M;
1201
1212
  }
1202
1213
  qt.applyToOptions = (e) => {
1203
- const t = oc(e, 100, qt);
1214
+ const t = lc(e, 100, qt);
1204
1215
  return e.ease = t.ease, e.duration = /* @__PURE__ */ de(t.duration), e.type = "keyframes", e;
1205
1216
  };
1206
- const hc = 5;
1217
+ const pc = 5;
1207
1218
  function Qi(e, t, s) {
1208
- const n = Math.max(t - hc, 0);
1219
+ const n = Math.max(t - pc, 0);
1209
1220
  return Vi(s - e(n), t - n);
1210
1221
  }
1211
1222
  function Vs({ keyframes: e, velocity: t = 0, power: s = 0.8, timeConstant: n = 325, bounceDamping: r = 10, bounceStiffness: o = 500, modifyTarget: i, min: a, max: c, restDelta: u = 0.5, restSpeed: d }) {
@@ -1217,8 +1228,8 @@ function Vs({ keyframes: e, velocity: t = 0, power: s = 0.8, timeConstant: n = 3
1217
1228
  const y = f + p, k = i === void 0 ? y : i(y);
1218
1229
  k !== y && (p = k - f);
1219
1230
  const v = (w) => -p * Math.exp(-w / n), x = (w) => k + v(w), T = (w) => {
1220
- const E = v(w), M = x(w);
1221
- h.done = Math.abs(E) <= u, h.value = h.done ? k : M;
1231
+ const M = v(w), E = x(w);
1232
+ h.done = Math.abs(M) <= u, h.value = h.done ? k : E;
1222
1233
  };
1223
1234
  let j, N;
1224
1235
  const L = (w) => {
@@ -1235,12 +1246,12 @@ function Vs({ keyframes: e, velocity: t = 0, power: s = 0.8, timeConstant: n = 3
1235
1246
  return L(0), {
1236
1247
  calculatedDuration: null,
1237
1248
  next: (w) => {
1238
- let E = !1;
1239
- return !N && j === void 0 && (E = !0, T(w), L(w)), j !== void 0 && w >= j ? N.next(w - j) : (!E && T(w), h);
1249
+ let M = !1;
1250
+ return !N && j === void 0 && (M = !0, T(w), L(w)), j !== void 0 && w >= j ? N.next(w - j) : (!M && T(w), h);
1240
1251
  }
1241
1252
  };
1242
1253
  }
1243
- function mc(e, t, s) {
1254
+ function gc(e, t, s) {
1244
1255
  const n = [], r = s || De.mix || Zi, o = e.length - 1;
1245
1256
  for (let i = 0; i < o; i++) {
1246
1257
  let a = r(e[i], e[i + 1]);
@@ -1252,7 +1263,7 @@ function mc(e, t, s) {
1252
1263
  }
1253
1264
  return n;
1254
1265
  }
1255
- function pc(e, t, { clamp: s = !0, ease: n, mixer: r } = {}) {
1266
+ function yc(e, t, { clamp: s = !0, ease: n, mixer: r } = {}) {
1256
1267
  const o = e.length;
1257
1268
  if (Ae(o === t.length, "Both input and output ranges must be the same length", "range-length"), o === 1)
1258
1269
  return () => t[0];
@@ -1260,7 +1271,7 @@ function pc(e, t, { clamp: s = !0, ease: n, mixer: r } = {}) {
1260
1271
  return () => t[1];
1261
1272
  const i = e[0] === e[1];
1262
1273
  e[0] > e[o - 1] && (e = [...e].reverse(), t = [...t].reverse());
1263
- const a = mc(t, n, r), c = a.length, u = (d) => {
1274
+ const a = gc(t, n, r), c = a.length, u = (d) => {
1264
1275
  if (i && d < e[0])
1265
1276
  return t[0];
1266
1277
  let f = 0;
@@ -1272,46 +1283,46 @@ function pc(e, t, { clamp: s = !0, ease: n, mixer: r } = {}) {
1272
1283
  };
1273
1284
  return s ? (d) => u(je(e[0], e[o - 1], d)) : u;
1274
1285
  }
1275
- function gc(e, t) {
1286
+ function xc(e, t) {
1276
1287
  const s = e[e.length - 1];
1277
1288
  for (let n = 1; n <= t; n++) {
1278
1289
  const r = /* @__PURE__ */ mt(0, t, n);
1279
1290
  e.push(W(s, 1, r));
1280
1291
  }
1281
1292
  }
1282
- function yc(e) {
1293
+ function bc(e) {
1283
1294
  const t = [0];
1284
- return gc(t, e.length - 1), t;
1295
+ return xc(t, e.length - 1), t;
1285
1296
  }
1286
- function xc(e, t) {
1297
+ function vc(e, t) {
1287
1298
  return e.map((s) => s * t);
1288
1299
  }
1289
- function bc(e, t) {
1300
+ function wc(e, t) {
1290
1301
  return e.map(() => t || _i).splice(0, e.length - 1);
1291
1302
  }
1292
1303
  function Ze({ duration: e = 300, keyframes: t, times: s, ease: n = "easeInOut" }) {
1293
- const r = Pl(n) ? n.map(Gn) : Gn(n), o = {
1304
+ const r = Ml(n) ? n.map(Gn) : Gn(n), o = {
1294
1305
  done: !1,
1295
1306
  value: t[0]
1296
- }, i = xc(
1307
+ }, i = vc(
1297
1308
  // Only use the provided offsets if they're the correct length
1298
1309
  // TODO Maybe we should warn here if there's a length mismatch
1299
- s && s.length === t.length ? s : yc(t),
1310
+ s && s.length === t.length ? s : bc(t),
1300
1311
  e
1301
- ), a = pc(i, t, {
1302
- ease: Array.isArray(r) ? r : bc(t, r)
1312
+ ), a = yc(i, t, {
1313
+ ease: Array.isArray(r) ? r : wc(t, r)
1303
1314
  });
1304
1315
  return {
1305
1316
  calculatedDuration: e,
1306
1317
  next: (c) => (o.value = a(c), o.done = c >= e, o)
1307
1318
  };
1308
1319
  }
1309
- const vc = (e) => e !== null;
1320
+ const kc = (e) => e !== null;
1310
1321
  function os(e, { repeat: t, repeatType: s = "loop" }, n, r = 1) {
1311
- const o = e.filter(vc), a = r < 0 || t && s !== "loop" && t % 2 === 1 ? 0 : o.length - 1;
1322
+ const o = e.filter(kc), a = r < 0 || t && s !== "loop" && t % 2 === 1 ? 0 : o.length - 1;
1312
1323
  return !a || n === void 0 ? o[a] : n;
1313
1324
  }
1314
- const wc = {
1325
+ const Tc = {
1315
1326
  decay: Vs,
1316
1327
  inertia: Vs,
1317
1328
  tween: Ze,
@@ -1319,7 +1330,7 @@ const wc = {
1319
1330
  spring: qt
1320
1331
  };
1321
1332
  function eo(e) {
1322
- typeof e.type == "string" && (e.type = wc[e.type]);
1333
+ typeof e.type == "string" && (e.type = Tc[e.type]);
1323
1334
  }
1324
1335
  class xn {
1325
1336
  constructor() {
@@ -1345,7 +1356,7 @@ class xn {
1345
1356
  return this.finished.then(t, s);
1346
1357
  }
1347
1358
  }
1348
- const kc = (e) => e / 100;
1359
+ const jc = (e) => e / 100;
1349
1360
  class Zt extends xn {
1350
1361
  constructor(t) {
1351
1362
  super(), this.state = "idle", this.startTime = null, this.isStopped = !1, this.currentTime = 0, this.holdTime = null, this.playbackSpeed = 1, this.delayState = {
@@ -1363,7 +1374,7 @@ class Zt extends xn {
1363
1374
  const { type: s = Ze, repeat: n = 0, repeatDelay: r = 0, repeatType: o, velocity: i = 0 } = t;
1364
1375
  let { keyframes: a } = t;
1365
1376
  const c = s || Ze;
1366
- process.env.NODE_ENV !== "production" && c !== Ze && Ae(a.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`, "spring-two-frames"), c !== Ze && typeof a[0] != "number" && (this.mixKeyframes = xt(kc, Zi(a[0], a[1])), a = [0, 100]);
1377
+ process.env.NODE_ENV !== "production" && c !== Ze && Ae(a.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`, "spring-two-frames"), c !== Ze && typeof a[0] != "number" && (this.mixKeyframes = xt(jc, Zi(a[0], a[1])), a = [0, 100]);
1367
1378
  const u = c({ ...t, keyframes: a });
1368
1379
  o === "mirror" && (this.mirroredGenerator = c({
1369
1380
  ...t,
@@ -1388,8 +1399,8 @@ class Zt extends xn {
1388
1399
  let x = this.currentTime, T = n;
1389
1400
  if (f) {
1390
1401
  const w = Math.min(this.currentTime, r) / a;
1391
- let E = Math.floor(w), M = w % 1;
1392
- !M && w >= 1 && (M = 1), M === 1 && E--, E = Math.min(E, f + 1), !!(E % 2) && (h === "reverse" ? (M = 1 - M, m && (M -= m / a)) : h === "mirror" && (T = i)), x = je(0, 1, M) * a;
1402
+ let M = Math.floor(w), E = w % 1;
1403
+ !E && w >= 1 && (E = 1), E === 1 && M--, M = Math.min(M, f + 1), !!(M % 2) && (h === "reverse" ? (E = 1 - E, m && (E -= m / a)) : h === "mirror" && (T = i)), x = je(0, 1, E) * a;
1393
1404
  }
1394
1405
  let j;
1395
1406
  v ? (this.delayState.value = d[0], j = this.delayState) : j = T.next(x), o && !v && (j.value = o(j.value));
@@ -1444,7 +1455,7 @@ class Zt extends xn {
1444
1455
  var r, o;
1445
1456
  if (this.isStopped)
1446
1457
  return;
1447
- const { driver: t = ic, startTime: s } = this.options;
1458
+ const { driver: t = ac, startTime: s } = this.options;
1448
1459
  this.driver || (this.driver = t((i) => this.tick(i))), (o = (r = this.options).onPlay) == null || o.call(r);
1449
1460
  const n = this.driver.now();
1450
1461
  this.state === "finished" ? (this.updateFinished(), this.startTime = n) : this.holdTime !== null ? this.startTime = n - this.holdTime : this.startTime || (this.startTime = s ?? n), this.state === "finished" && this.speed < 0 && (this.startTime += this.calculatedDuration), this.holdTime = null, this.state = "running", this.driver.start();
@@ -1477,14 +1488,14 @@ class Zt extends xn {
1477
1488
  return this.options.allowFlatten && (this.options.type = "keyframes", this.options.ease = "linear", this.initAnimation()), (s = this.driver) == null || s.stop(), t.observe(this);
1478
1489
  }
1479
1490
  }
1480
- function Tc(e) {
1491
+ function Sc(e) {
1481
1492
  for (let t = 1; t < e.length; t++)
1482
1493
  e[t] ?? (e[t] = e[t - 1]);
1483
1494
  }
1484
- const $e = (e) => e * 180 / Math.PI, Rs = (e) => {
1485
- const t = $e(Math.atan2(e[1], e[0]));
1495
+ const We = (e) => e * 180 / Math.PI, Rs = (e) => {
1496
+ const t = We(Math.atan2(e[1], e[0]));
1486
1497
  return Ds(t);
1487
- }, jc = {
1498
+ }, Cc = {
1488
1499
  x: 4,
1489
1500
  y: 5,
1490
1501
  translateX: 4,
@@ -1494,10 +1505,10 @@ const $e = (e) => e * 180 / Math.PI, Rs = (e) => {
1494
1505
  scale: (e) => (Math.abs(e[0]) + Math.abs(e[3])) / 2,
1495
1506
  rotate: Rs,
1496
1507
  rotateZ: Rs,
1497
- skewX: (e) => $e(Math.atan(e[1])),
1498
- skewY: (e) => $e(Math.atan(e[2])),
1508
+ skewX: (e) => We(Math.atan(e[1])),
1509
+ skewY: (e) => We(Math.atan(e[2])),
1499
1510
  skew: (e) => (Math.abs(e[1]) + Math.abs(e[2])) / 2
1500
- }, Ds = (e) => (e = e % 360, e < 0 && (e += 360), e), Jn = Rs, Qn = (e) => Math.sqrt(e[0] * e[0] + e[1] * e[1]), er = (e) => Math.sqrt(e[4] * e[4] + e[5] * e[5]), Sc = {
1511
+ }, Ds = (e) => (e = e % 360, e < 0 && (e += 360), e), Jn = Rs, Qn = (e) => Math.sqrt(e[0] * e[0] + e[1] * e[1]), er = (e) => Math.sqrt(e[4] * e[4] + e[5] * e[5]), Ac = {
1501
1512
  x: 12,
1502
1513
  y: 13,
1503
1514
  z: 14,
@@ -1507,12 +1518,12 @@ const $e = (e) => e * 180 / Math.PI, Rs = (e) => {
1507
1518
  scaleX: Qn,
1508
1519
  scaleY: er,
1509
1520
  scale: (e) => (Qn(e) + er(e)) / 2,
1510
- rotateX: (e) => Ds($e(Math.atan2(e[6], e[5]))),
1511
- rotateY: (e) => Ds($e(Math.atan2(-e[2], e[0]))),
1521
+ rotateX: (e) => Ds(We(Math.atan2(e[6], e[5]))),
1522
+ rotateY: (e) => Ds(We(Math.atan2(-e[2], e[0]))),
1512
1523
  rotateZ: Jn,
1513
1524
  rotate: Jn,
1514
- skewX: (e) => $e(Math.atan(e[4])),
1515
- skewY: (e) => $e(Math.atan(e[1])),
1525
+ skewX: (e) => We(Math.atan(e[4])),
1526
+ skewY: (e) => We(Math.atan(e[1])),
1516
1527
  skew: (e) => (Math.abs(e[1]) + Math.abs(e[4])) / 2
1517
1528
  };
1518
1529
  function Ls(e) {
@@ -1524,21 +1535,21 @@ function Is(e, t) {
1524
1535
  const s = e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);
1525
1536
  let n, r;
1526
1537
  if (s)
1527
- n = Sc, r = s;
1538
+ n = Ac, r = s;
1528
1539
  else {
1529
1540
  const a = e.match(/^matrix\(([-\d.e\s,]+)\)$/u);
1530
- n = jc, r = a;
1541
+ n = Cc, r = a;
1531
1542
  }
1532
1543
  if (!r)
1533
1544
  return Ls(t);
1534
- const o = n[t], i = r[1].split(",").map(Ac);
1545
+ const o = n[t], i = r[1].split(",").map(Nc);
1535
1546
  return typeof o == "function" ? o(i) : i[o];
1536
1547
  }
1537
- const Cc = (e, t) => {
1548
+ const Pc = (e, t) => {
1538
1549
  const { transform: s = "none" } = getComputedStyle(e);
1539
1550
  return Is(s, t);
1540
1551
  };
1541
- function Ac(e) {
1552
+ function Nc(e) {
1542
1553
  return parseFloat(e.trim());
1543
1554
  }
1544
1555
  const rt = [
@@ -1559,10 +1570,10 @@ const rt = [
1559
1570
  "skew",
1560
1571
  "skewX",
1561
1572
  "skewY"
1562
- ], it = new Set(rt), tr = (e) => e === nt || e === A, Pc = /* @__PURE__ */ new Set(["x", "y", "z"]), Nc = rt.filter((e) => !Pc.has(e));
1563
- function Ec(e) {
1573
+ ], it = new Set(rt), tr = (e) => e === nt || e === A, Mc = /* @__PURE__ */ new Set(["x", "y", "z"]), Ec = rt.filter((e) => !Mc.has(e));
1574
+ function Vc(e) {
1564
1575
  const t = [];
1565
- return Nc.forEach((s) => {
1576
+ return Ec.forEach((s) => {
1566
1577
  const n = e.getValue(s);
1567
1578
  n !== void 0 && (t.push([s, n.get()]), n.set(s.startsWith("scale") ? 1 : 0));
1568
1579
  }), t;
@@ -1587,13 +1598,13 @@ const Ve = {
1587
1598
  };
1588
1599
  Ve.translateX = Ve.x;
1589
1600
  Ve.translateY = Ve.y;
1590
- const We = /* @__PURE__ */ new Set();
1601
+ const Ue = /* @__PURE__ */ new Set();
1591
1602
  let Os = !1, zs = !1, Fs = !1;
1592
1603
  function to() {
1593
1604
  if (zs) {
1594
- const e = Array.from(We).filter((n) => n.needsMeasurement), t = new Set(e.map((n) => n.element)), s = /* @__PURE__ */ new Map();
1605
+ const e = Array.from(Ue).filter((n) => n.needsMeasurement), t = new Set(e.map((n) => n.element)), s = /* @__PURE__ */ new Map();
1595
1606
  t.forEach((n) => {
1596
- const r = Ec(n);
1607
+ const r = Vc(n);
1597
1608
  r.length && (s.set(n, r), n.render());
1598
1609
  }), e.forEach((n) => n.measureInitialState()), t.forEach((n) => {
1599
1610
  n.render();
@@ -1606,14 +1617,14 @@ function to() {
1606
1617
  n.suspendedScrollY !== void 0 && window.scrollTo(0, n.suspendedScrollY);
1607
1618
  });
1608
1619
  }
1609
- zs = !1, Os = !1, We.forEach((e) => e.complete(Fs)), We.clear();
1620
+ zs = !1, Os = !1, Ue.forEach((e) => e.complete(Fs)), Ue.clear();
1610
1621
  }
1611
1622
  function so() {
1612
- We.forEach((e) => {
1623
+ Ue.forEach((e) => {
1613
1624
  e.readKeyframes(), e.needsMeasurement && (zs = !0);
1614
1625
  });
1615
1626
  }
1616
- function Mc() {
1627
+ function Rc() {
1617
1628
  Fs = !0, so(), to(), Fs = !1;
1618
1629
  }
1619
1630
  class bn {
@@ -1621,7 +1632,7 @@ class bn {
1621
1632
  this.state = "pending", this.isAsync = !1, this.needsMeasurement = !1, this.unresolvedKeyframes = [...t], this.onComplete = s, this.name = n, this.motionValue = r, this.element = o, this.isAsync = i;
1622
1633
  }
1623
1634
  scheduleResolve() {
1624
- this.state = "scheduled", this.isAsync ? (We.add(this), Os || (Os = !0, F.read(so), F.resolveKeyframes(to))) : (this.readKeyframes(), this.complete());
1635
+ this.state = "scheduled", this.isAsync ? (Ue.add(this), Os || (Os = !0, F.read(so), F.resolveKeyframes(to))) : (this.readKeyframes(), this.complete());
1625
1636
  }
1626
1637
  readKeyframes() {
1627
1638
  const { unresolvedKeyframes: t, name: s, element: n, motionValue: r } = this;
@@ -1635,7 +1646,7 @@ class bn {
1635
1646
  }
1636
1647
  t[0] === void 0 && (t[0] = i), r && o === void 0 && r.set(t[0]);
1637
1648
  }
1638
- Tc(t);
1649
+ Sc(t);
1639
1650
  }
1640
1651
  setFinalKeyframe() {
1641
1652
  }
@@ -1646,25 +1657,25 @@ class bn {
1646
1657
  measureEndState() {
1647
1658
  }
1648
1659
  complete(t = !1) {
1649
- this.state = "complete", this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, t), We.delete(this);
1660
+ this.state = "complete", this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, t), Ue.delete(this);
1650
1661
  }
1651
1662
  cancel() {
1652
- this.state === "scheduled" && (We.delete(this), this.state = "pending");
1663
+ this.state === "scheduled" && (Ue.delete(this), this.state = "pending");
1653
1664
  }
1654
1665
  resume() {
1655
1666
  this.state === "pending" && this.scheduleResolve();
1656
1667
  }
1657
1668
  }
1658
- const Vc = (e) => e.startsWith("--");
1669
+ const Dc = (e) => e.startsWith("--");
1659
1670
  function no(e, t, s) {
1660
- Vc(t) ? e.style.setProperty(t, s) : e.style[t] = s;
1671
+ Dc(t) ? e.style.setProperty(t, s) : e.style[t] = s;
1661
1672
  }
1662
- const Rc = {};
1673
+ const Lc = {};
1663
1674
  function ro(e, t) {
1664
- const s = /* @__PURE__ */ Mi(e);
1665
- return () => Rc[t] ?? s();
1675
+ const s = /* @__PURE__ */ Ei(e);
1676
+ return () => Lc[t] ?? s();
1666
1677
  }
1667
- const Dc = /* @__PURE__ */ ro(() => window.ScrollTimeline !== void 0, "scrollTimeline"), io = /* @__PURE__ */ ro(() => {
1678
+ const Ic = /* @__PURE__ */ ro(() => window.ScrollTimeline !== void 0, "scrollTimeline"), io = /* @__PURE__ */ ro(() => {
1668
1679
  try {
1669
1680
  document.createElement("div").animate({ opacity: 0 }, { easing: "linear(0, 1)" });
1670
1681
  } catch {
@@ -1686,7 +1697,7 @@ function oo(e, t) {
1686
1697
  if (e)
1687
1698
  return typeof e == "function" ? io() ? Ji(e, t) : "ease-out" : $i(e) ? ut(e) : Array.isArray(e) ? e.map((s) => oo(s, t) || sr.easeOut) : sr[e];
1688
1699
  }
1689
- function Lc(e, t, s, { delay: n = 0, duration: r = 300, repeat: o = 0, repeatType: i = "loop", ease: a = "easeOut", times: c } = {}, u = void 0) {
1700
+ function Oc(e, t, s, { delay: n = 0, duration: r = 300, repeat: o = 0, repeatType: i = "loop", ease: a = "easeOut", times: c } = {}, u = void 0) {
1690
1701
  const d = {
1691
1702
  [t]: s
1692
1703
  };
@@ -1706,7 +1717,7 @@ function Lc(e, t, s, { delay: n = 0, duration: r = 300, repeat: o = 0, repeatTyp
1706
1717
  function ao(e) {
1707
1718
  return typeof e == "function" && "applyToOptions" in e;
1708
1719
  }
1709
- function Ic({ type: e, ...t }) {
1720
+ function zc({ type: e, ...t }) {
1710
1721
  return ao(e) && io() ? e.applyToOptions(t) : (t.duration ?? (t.duration = 300), t.ease ?? (t.ease = "easeOut"), t);
1711
1722
  }
1712
1723
  class lo extends xn {
@@ -1715,8 +1726,8 @@ class lo extends xn {
1715
1726
  return;
1716
1727
  const { element: s, name: n, keyframes: r, pseudoElement: o, allowFlatten: i = !1, finalKeyframe: a, onComplete: c } = t;
1717
1728
  this.isPseudoElement = !!o, this.allowFlatten = i, this.options = t, Ae(typeof t.type != "string", `Mini animate() doesn't support "type" as a string.`, "mini-spring");
1718
- const u = Ic(t);
1719
- this.animation = Lc(s, n, r, u, o), u.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
1729
+ const u = zc(t);
1730
+ this.animation = Oc(s, n, r, u, o), u.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
1720
1731
  if (this.finishedTime = this.time, !o) {
1721
1732
  const d = os(r, this.options, a, this.speed);
1722
1733
  this.updateMotionValue && this.updateMotionValue(d), no(s, n, d), this.animation.cancel();
@@ -1804,7 +1815,7 @@ class lo extends xn {
1804
1815
  */
1805
1816
  attachTimeline({ timeline: t, rangeStart: s, rangeEnd: n, observe: r }) {
1806
1817
  var o;
1807
- return this.allowFlatten && ((o = this.animation.effect) == null || o.updateTiming({ easing: "linear" })), this.animation.onfinish = null, t && Dc() ? (this.animation.timeline = t, s && (this.animation.rangeStart = s), n && (this.animation.rangeEnd = n), me) : r(this);
1818
+ return this.allowFlatten && ((o = this.animation.effect) == null || o.updateTiming({ easing: "linear" })), this.animation.onfinish = null, t && Ic() ? (this.animation.timeline = t, s && (this.animation.rangeStart = s), n && (this.animation.rangeEnd = n), me) : r(this);
1808
1819
  }
1809
1820
  }
1810
1821
  const co = {
@@ -1812,16 +1823,16 @@ const co = {
1812
1823
  backInOut: Oi,
1813
1824
  circInOut: Bi
1814
1825
  };
1815
- function Oc(e) {
1826
+ function Fc(e) {
1816
1827
  return e in co;
1817
1828
  }
1818
- function zc(e) {
1819
- typeof e.ease == "string" && Oc(e.ease) && (e.ease = co[e.ease]);
1829
+ function Bc(e) {
1830
+ typeof e.ease == "string" && Fc(e.ease) && (e.ease = co[e.ease]);
1820
1831
  }
1821
1832
  const gs = 10;
1822
- class Fc extends lo {
1833
+ class _c extends lo {
1823
1834
  constructor(t) {
1824
- zc(t), eo(t), super(t), t.startTime !== void 0 && t.autoplay !== !1 && (this.startTime = t.startTime), this.options = t;
1835
+ Bc(t), eo(t), super(t), t.startTime !== void 0 && t.autoplay !== !1 && (this.startTime = t.startTime), this.options = t;
1825
1836
  }
1826
1837
  /**
1827
1838
  * WAAPI doesn't natively have any interruption capabilities.
@@ -1849,7 +1860,7 @@ class Fc extends lo {
1849
1860
  const nr = (e, t) => t === "zIndex" ? !1 : !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && // It's animatable if we have a string
1850
1861
  (xe.test(e) || e === "0") && // And it contains numbers and/or colors
1851
1862
  !e.startsWith("url("));
1852
- function Bc(e) {
1863
+ function $c(e) {
1853
1864
  const t = e[0];
1854
1865
  if (e.length === 1)
1855
1866
  return !0;
@@ -1857,14 +1868,14 @@ function Bc(e) {
1857
1868
  if (e[s] !== t)
1858
1869
  return !0;
1859
1870
  }
1860
- function _c(e, t, s, n) {
1871
+ function Wc(e, t, s, n) {
1861
1872
  const r = e[0];
1862
1873
  if (r === null)
1863
1874
  return !1;
1864
1875
  if (t === "display" || t === "visibility")
1865
1876
  return !0;
1866
1877
  const o = e[e.length - 1], i = nr(r, t), a = nr(o, t);
1867
- return st(i === a, `You are trying to animate ${t} from "${r}" to "${o}". "${i ? o : r}" is not an animatable value.`, "value-not-animatable"), !i || !a ? !1 : Bc(e) || (s === "spring" || ao(s)) && n;
1878
+ return st(i === a, `You are trying to animate ${t} from "${r}" to "${o}". "${i ? o : r}" is not an animatable value.`, "value-not-animatable"), !i || !a ? !1 : $c(e) || (s === "spring" || ao(s)) && n;
1868
1879
  }
1869
1880
  function Bs(e) {
1870
1881
  e.duration = 0, e.type = "keyframes";
@@ -1877,14 +1888,14 @@ const uo = /* @__PURE__ */ new Set([
1877
1888
  // TODO: Can be accelerated but currently disabled until https://issues.chromium.org/issues/41491098 is resolved
1878
1889
  // or until we implement support for linear() easing.
1879
1890
  // "background-color"
1880
- ]), $c = /^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;
1881
- function Wc(e) {
1891
+ ]), Uc = /^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;
1892
+ function Gc(e) {
1882
1893
  for (let t = 0; t < e.length; t++)
1883
- if (typeof e[t] == "string" && $c.test(e[t]))
1894
+ if (typeof e[t] == "string" && Uc.test(e[t]))
1884
1895
  return !0;
1885
1896
  return !1;
1886
1897
  }
1887
- const Uc = /* @__PURE__ */ new Set([
1898
+ const Kc = /* @__PURE__ */ new Set([
1888
1899
  "color",
1889
1900
  "backgroundColor",
1890
1901
  "outlineColor",
@@ -1895,25 +1906,25 @@ const Uc = /* @__PURE__ */ new Set([
1895
1906
  "borderRightColor",
1896
1907
  "borderBottomColor",
1897
1908
  "borderLeftColor"
1898
- ]), Gc = /* @__PURE__ */ Mi(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
1899
- function Kc(e) {
1909
+ ]), Yc = /* @__PURE__ */ Ei(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
1910
+ function Hc(e) {
1900
1911
  var f;
1901
1912
  const { motionValue: t, name: s, repeatDelay: n, repeatType: r, damping: o, type: i, keyframes: a } = e;
1902
1913
  if (!(((f = t == null ? void 0 : t.owner) == null ? void 0 : f.current) instanceof HTMLElement))
1903
1914
  return !1;
1904
1915
  const { onUpdate: u, transformTemplate: d } = t.owner.getProps();
1905
- return Gc() && s && /**
1916
+ return Yc() && s && /**
1906
1917
  * Force WAAPI for color properties with browser-only color formats
1907
1918
  * (oklch, oklab, lab, lch, etc.) that the JS animation path can't parse.
1908
1919
  */
1909
- (uo.has(s) || Uc.has(s) && Wc(a)) && (s !== "transform" || !d) && /**
1920
+ (uo.has(s) || Kc.has(s) && Gc(a)) && (s !== "transform" || !d) && /**
1910
1921
  * If we're outputting values to onUpdate then we can't use WAAPI as there's
1911
1922
  * no way to read the value from WAAPI every frame.
1912
1923
  */
1913
1924
  !u && !n && r !== "mirror" && o !== 0 && i !== "inertia";
1914
1925
  }
1915
- const Yc = 40;
1916
- class Hc extends xn {
1926
+ const Xc = 40;
1927
+ class qc extends xn {
1917
1928
  constructor({ autoplay: t = !0, delay: s = 0, type: n = "keyframes", repeat: r = 0, repeatDelay: o = 0, repeatType: i = "loop", keyframes: a, name: c, motionValue: u, element: d, ...f }) {
1918
1929
  var g;
1919
1930
  super(), this.stop = () => {
@@ -1940,17 +1951,17 @@ class Hc extends xn {
1940
1951
  const { name: o, type: i, velocity: a, delay: c, isHandoff: u, onUpdate: d } = n;
1941
1952
  this.resolvedAt = ce.now();
1942
1953
  let f = !0;
1943
- _c(t, o, i, a) || (f = !1, (De.instantAnimations || !c) && (d == null || d(os(t, n, s))), t[0] = t[t.length - 1], Bs(n), n.repeat = 0);
1954
+ Wc(t, o, i, a) || (f = !1, (De.instantAnimations || !c) && (d == null || d(os(t, n, s))), t[0] = t[t.length - 1], Bs(n), n.repeat = 0);
1944
1955
  const m = {
1945
- startTime: r ? this.resolvedAt ? this.resolvedAt - this.createdAt > Yc ? this.resolvedAt : this.createdAt : this.createdAt : void 0,
1956
+ startTime: r ? this.resolvedAt ? this.resolvedAt - this.createdAt > Xc ? this.resolvedAt : this.createdAt : this.createdAt : void 0,
1946
1957
  finalKeyframe: s,
1947
1958
  ...n,
1948
1959
  keyframes: t
1949
- }, g = f && !u && Kc(m), p = (v = (k = m.motionValue) == null ? void 0 : k.owner) == null ? void 0 : v.current;
1960
+ }, g = f && !u && Hc(m), p = (v = (k = m.motionValue) == null ? void 0 : k.owner) == null ? void 0 : v.current;
1950
1961
  let y;
1951
1962
  if (g)
1952
1963
  try {
1953
- y = new Fc({
1964
+ y = new _c({
1954
1965
  ...m,
1955
1966
  element: p
1956
1967
  });
@@ -1972,7 +1983,7 @@ class Hc extends xn {
1972
1983
  }
1973
1984
  get animation() {
1974
1985
  var t;
1975
- return this._animation || ((t = this.keyframeResolver) == null || t.resume(), Mc()), this._animation;
1986
+ return this._animation || ((t = this.keyframeResolver) == null || t.resume(), Rc()), this._animation;
1976
1987
  }
1977
1988
  get duration() {
1978
1989
  return this.animation.duration;
@@ -2019,21 +2030,21 @@ function fo(e, t, s, n = 0, r = 1) {
2019
2030
  const o = Array.from(e).sort((u, d) => u.sortNodePosition(d)).indexOf(t), i = e.size, a = (i - 1) * n;
2020
2031
  return typeof s == "function" ? s(o, i) : r === 1 ? o * n : a - o * n;
2021
2032
  }
2022
- const Xc = (
2033
+ const Zc = (
2023
2034
  // eslint-disable-next-line redos-detector/no-unsafe-regex -- false positive, as it can match a lot of words
2024
2035
  /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u
2025
2036
  );
2026
- function qc(e) {
2027
- const t = Xc.exec(e);
2037
+ function Jc(e) {
2038
+ const t = Zc.exec(e);
2028
2039
  if (!t)
2029
2040
  return [,];
2030
2041
  const [, s, n, r] = t;
2031
2042
  return [`--${s ?? n}`, r];
2032
2043
  }
2033
- const Zc = 4;
2044
+ const Qc = 4;
2034
2045
  function ho(e, t, s = 1) {
2035
- Ae(s <= Zc, `Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`, "max-css-var-depth");
2036
- const [n, r] = qc(e);
2046
+ Ae(s <= Qc, `Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`, "max-css-var-depth");
2047
+ const [n, r] = Jc(e);
2037
2048
  if (!n)
2038
2049
  return;
2039
2050
  const o = window.getComputedStyle(t).getPropertyValue(n);
@@ -2043,24 +2054,24 @@ function ho(e, t, s = 1) {
2043
2054
  }
2044
2055
  return hn(r) ? ho(r, t, s + 1) : r;
2045
2056
  }
2046
- const Jc = {
2057
+ const eu = {
2047
2058
  type: "spring",
2048
2059
  stiffness: 500,
2049
2060
  damping: 25,
2050
2061
  restSpeed: 10
2051
- }, Qc = (e) => ({
2062
+ }, tu = (e) => ({
2052
2063
  type: "spring",
2053
2064
  stiffness: 550,
2054
2065
  damping: e === 0 ? 2 * Math.sqrt(550) : 30,
2055
2066
  restSpeed: 10
2056
- }), eu = {
2067
+ }), su = {
2057
2068
  type: "keyframes",
2058
2069
  duration: 0.8
2059
- }, tu = {
2070
+ }, nu = {
2060
2071
  type: "keyframes",
2061
2072
  ease: [0.25, 0.1, 0.35, 1],
2062
2073
  duration: 0.3
2063
- }, su = (e, { keyframes: t }) => t.length > 2 ? eu : it.has(e) ? e.startsWith("scale") ? Qc(t[1]) : Jc : tu;
2074
+ }, ru = (e, { keyframes: t }) => t.length > 2 ? su : it.has(e) ? e.startsWith("scale") ? tu(t[1]) : eu : nu;
2064
2075
  function mo(e, t) {
2065
2076
  if (e != null && e.inherit && t) {
2066
2077
  const { inherit: s, ...n } = e;
@@ -2072,7 +2083,7 @@ function vn(e, t) {
2072
2083
  const s = (e == null ? void 0 : e[t]) ?? (e == null ? void 0 : e.default) ?? e;
2073
2084
  return s !== e ? mo(s, e) : s;
2074
2085
  }
2075
- const nu = /* @__PURE__ */ new Set([
2086
+ const iu = /* @__PURE__ */ new Set([
2076
2087
  "when",
2077
2088
  "delay",
2078
2089
  "delayChildren",
@@ -2084,9 +2095,9 @@ const nu = /* @__PURE__ */ new Set([
2084
2095
  "from",
2085
2096
  "elapsed"
2086
2097
  ]);
2087
- function ru(e) {
2098
+ function ou(e) {
2088
2099
  for (const t in e)
2089
- if (!nu.has(t))
2100
+ if (!iu.has(t))
2090
2101
  return !0;
2091
2102
  return !1;
2092
2103
  }
@@ -2110,7 +2121,7 @@ const wn = (e, t, s, n = {}, r, o) => (i) => {
2110
2121
  motionValue: t,
2111
2122
  element: o ? void 0 : r
2112
2123
  };
2113
- ru(a) || Object.assign(d, su(e, d)), d.duration && (d.duration = /* @__PURE__ */ de(d.duration)), d.repeatDelay && (d.repeatDelay = /* @__PURE__ */ de(d.repeatDelay)), d.from !== void 0 && (d.keyframes[0] = d.from);
2124
+ ou(a) || Object.assign(d, ru(e, d)), d.duration && (d.duration = /* @__PURE__ */ de(d.duration)), d.repeatDelay && (d.repeatDelay = /* @__PURE__ */ de(d.repeatDelay)), d.from !== void 0 && (d.keyframes[0] = d.from);
2114
2125
  let f = !1;
2115
2126
  if ((d.type === !1 || d.duration === 0 && !d.repeatDelay) && (Bs(d), d.delay === 0 && (f = !0)), (De.instantAnimations || De.skipAnimations || r != null && r.shouldSkipAnimations) && (f = !0, Bs(d), d.delay = 0), d.allowFlatten = !a.type && !a.ease, f && !o && t.get() !== void 0) {
2116
2127
  const h = os(d.keyframes, a);
@@ -2121,7 +2132,7 @@ const wn = (e, t, s, n = {}, r, o) => (i) => {
2121
2132
  return;
2122
2133
  }
2123
2134
  }
2124
- return a.isSync ? new Zt(d) : new Hc(d);
2135
+ return a.isSync ? new Zt(d) : new qc(d);
2125
2136
  };
2126
2137
  function rr(e) {
2127
2138
  const t = [{}, {}];
@@ -2140,7 +2151,7 @@ function kn(e, t, s, n) {
2140
2151
  }
2141
2152
  return t;
2142
2153
  }
2143
- function Ue(e, t, s) {
2154
+ function Ge(e, t, s) {
2144
2155
  const n = e.getProps();
2145
2156
  return kn(n, t, s !== void 0 ? s : n.custom, e);
2146
2157
  }
@@ -2152,8 +2163,8 @@ const po = /* @__PURE__ */ new Set([
2152
2163
  "right",
2153
2164
  "bottom",
2154
2165
  ...rt
2155
- ]), ir = 30, iu = (e) => !isNaN(parseFloat(e));
2156
- class ou {
2166
+ ]), ir = 30, au = (e) => !isNaN(parseFloat(e));
2167
+ class lu {
2157
2168
  /**
2158
2169
  * @param init - The initiating value
2159
2170
  * @param config - Optional configuration options
@@ -2170,7 +2181,7 @@ class ou {
2170
2181
  }, this.hasAnimated = !1, this.setCurrent(t), this.owner = s.owner;
2171
2182
  }
2172
2183
  setCurrent(t) {
2173
- this.current = t, this.updatedAt = ce.now(), this.canTrackVelocity === null && t !== void 0 && (this.canTrackVelocity = iu(this.current));
2184
+ this.current = t, this.updatedAt = ce.now(), this.canTrackVelocity === null && t !== void 0 && (this.canTrackVelocity = au(this.current));
2174
2185
  }
2175
2186
  setPrevFrameValue(t = this.current) {
2176
2187
  this.prevFrameValue = t, this.prevUpdatedAt = this.updatedAt;
@@ -2356,31 +2367,31 @@ class ou {
2356
2367
  }
2357
2368
  }
2358
2369
  function tt(e, t) {
2359
- return new ou(e, t);
2370
+ return new lu(e, t);
2360
2371
  }
2361
2372
  const _s = (e) => Array.isArray(e);
2362
- function au(e, t, s) {
2373
+ function cu(e, t, s) {
2363
2374
  e.hasValue(t) ? e.getValue(t).set(s) : e.addValue(t, tt(s));
2364
2375
  }
2365
- function lu(e) {
2376
+ function uu(e) {
2366
2377
  return _s(e) ? e[e.length - 1] || 0 : e;
2367
2378
  }
2368
- function cu(e, t) {
2369
- const s = Ue(e, t);
2379
+ function du(e, t) {
2380
+ const s = Ge(e, t);
2370
2381
  let { transitionEnd: n = {}, transition: r = {}, ...o } = s || {};
2371
2382
  o = { ...o, ...n };
2372
2383
  for (const i in o) {
2373
- const a = lu(o[i]);
2374
- au(e, i, a);
2384
+ const a = uu(o[i]);
2385
+ cu(e, i, a);
2375
2386
  }
2376
2387
  }
2377
2388
  const oe = (e) => !!(e && e.getVelocity);
2378
- function uu(e) {
2389
+ function fu(e) {
2379
2390
  return !!(oe(e) && e.add);
2380
2391
  }
2381
2392
  function $s(e, t) {
2382
2393
  const s = e.getValue("willChange");
2383
- if (uu(s))
2394
+ if (fu(s))
2384
2395
  return s.add(t);
2385
2396
  if (!s && De.WillChange) {
2386
2397
  const n = new De.WillChange("auto");
@@ -2390,11 +2401,11 @@ function $s(e, t) {
2390
2401
  function Tn(e) {
2391
2402
  return e.replace(/([A-Z])/g, (t) => `-${t.toLowerCase()}`);
2392
2403
  }
2393
- const du = "framerAppearId", go = "data-" + Tn(du);
2404
+ const hu = "framerAppearId", go = "data-" + Tn(hu);
2394
2405
  function yo(e) {
2395
2406
  return e.props[go];
2396
2407
  }
2397
- function fu({ protectedKeys: e, needsAnimating: t }, s) {
2408
+ function mu({ protectedKeys: e, needsAnimating: t }, s) {
2398
2409
  const n = e.hasOwnProperty(s) && t[s] !== !0;
2399
2410
  return t[s] = !1, n;
2400
2411
  }
@@ -2407,7 +2418,7 @@ function xo(e, t, { delay: s = 0, transitionOverride: n, type: r } = {}) {
2407
2418
  const d = [], f = r && e.animationState && e.animationState.getState()[r];
2408
2419
  for (const h in a) {
2409
2420
  const m = e.getValue(h, e.latestValues[h] ?? null), g = a[h];
2410
- if (g === void 0 || f && fu(f, h))
2421
+ if (g === void 0 || f && mu(f, h))
2411
2422
  continue;
2412
2423
  const p = {
2413
2424
  delay: s,
@@ -2433,7 +2444,7 @@ function xo(e, t, { delay: s = 0, transitionOverride: n, type: r } = {}) {
2433
2444
  }
2434
2445
  if (i) {
2435
2446
  const h = () => F.update(() => {
2436
- i && cu(e, i);
2447
+ i && du(e, i);
2437
2448
  });
2438
2449
  d.length ? Promise.all(d).then(h) : h();
2439
2450
  }
@@ -2441,12 +2452,12 @@ function xo(e, t, { delay: s = 0, transitionOverride: n, type: r } = {}) {
2441
2452
  }
2442
2453
  function Ws(e, t, s = {}) {
2443
2454
  var c;
2444
- const n = Ue(e, t, s.type === "exit" ? (c = e.presenceContext) == null ? void 0 : c.custom : void 0);
2455
+ const n = Ge(e, t, s.type === "exit" ? (c = e.presenceContext) == null ? void 0 : c.custom : void 0);
2445
2456
  let { transition: r = e.getDefaultTransition() || {} } = n || {};
2446
2457
  s.transitionOverride && (r = s.transitionOverride);
2447
2458
  const o = n ? () => Promise.all(xo(e, n, s)) : () => Promise.resolve(), i = e.variantChildren && e.variantChildren.size ? (u = 0) => {
2448
2459
  const { delayChildren: d = 0, staggerChildren: f, staggerDirection: h } = r;
2449
- return hu(e, t, u, d, f, h, s);
2460
+ return pu(e, t, u, d, f, h, s);
2450
2461
  } : () => Promise.resolve(), { when: a } = r;
2451
2462
  if (a) {
2452
2463
  const [u, d] = a === "beforeChildren" ? [o, i] : [i, o];
@@ -2454,7 +2465,7 @@ function Ws(e, t, s = {}) {
2454
2465
  } else
2455
2466
  return Promise.all([o(), i(s.delay)]);
2456
2467
  }
2457
- function hu(e, t, s = 0, n = 0, r = 0, o = 1, i) {
2468
+ function pu(e, t, s = 0, n = 0, r = 0, o = 1, i) {
2458
2469
  const a = [];
2459
2470
  for (const c of e.variantChildren)
2460
2471
  c.notify("AnimationStart", t), a.push(Ws(c, t, {
@@ -2463,7 +2474,7 @@ function hu(e, t, s = 0, n = 0, r = 0, o = 1, i) {
2463
2474
  }).then(() => c.notify("AnimationComplete", t)));
2464
2475
  return Promise.all(a);
2465
2476
  }
2466
- function mu(e, t, s = {}) {
2477
+ function gu(e, t, s = {}) {
2467
2478
  e.notify("AnimationStart", t);
2468
2479
  let n;
2469
2480
  if (Array.isArray(t)) {
@@ -2472,22 +2483,22 @@ function mu(e, t, s = {}) {
2472
2483
  } else if (typeof t == "string")
2473
2484
  n = Ws(e, t, s);
2474
2485
  else {
2475
- const r = typeof t == "function" ? Ue(e, t, s.custom) : t;
2486
+ const r = typeof t == "function" ? Ge(e, t, s.custom) : t;
2476
2487
  n = Promise.all(xo(e, r, s));
2477
2488
  }
2478
2489
  return n.then(() => {
2479
2490
  e.notify("AnimationComplete", t);
2480
2491
  });
2481
2492
  }
2482
- const pu = {
2493
+ const yu = {
2483
2494
  test: (e) => e === "auto",
2484
2495
  parse: (e) => e
2485
- }, bo = (e) => (t) => t.test(e), vo = [nt, A, Te, Ee, Bl, Fl, pu], or = (e) => vo.find(bo(e));
2486
- function gu(e) {
2487
- return typeof e == "number" ? e === 0 : e !== null ? e === "none" || e === "0" || Ei(e) : !0;
2488
- }
2489
- const yu = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
2496
+ }, bo = (e) => (t) => t.test(e), vo = [nt, A, Te, Me, $l, _l, yu], or = (e) => vo.find(bo(e));
2490
2497
  function xu(e) {
2498
+ return typeof e == "number" ? e === 0 : e !== null ? e === "none" || e === "0" || Mi(e) : !0;
2499
+ }
2500
+ const bu = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
2501
+ function vu(e) {
2491
2502
  const [t, s] = e.slice(0, -1).split("(");
2492
2503
  if (t === "drop-shadow")
2493
2504
  return e;
@@ -2495,14 +2506,14 @@ function xu(e) {
2495
2506
  if (!n)
2496
2507
  return e;
2497
2508
  const r = s.replace(n, "");
2498
- let o = yu.has(t) ? 1 : 0;
2509
+ let o = bu.has(t) ? 1 : 0;
2499
2510
  return n !== s && (o *= 100), t + "(" + o + r + ")";
2500
2511
  }
2501
- const bu = /\b([a-z-]*)\(.*?\)/gu, Us = {
2512
+ const wu = /\b([a-z-]*)\(.*?\)/gu, Us = {
2502
2513
  ...xe,
2503
2514
  getAnimatableNone: (e) => {
2504
- const t = e.match(bu);
2505
- return t ? t.map(xu).join(" ") : e;
2515
+ const t = e.match(wu);
2516
+ return t ? t.map(vu).join(" ") : e;
2506
2517
  }
2507
2518
  }, Gs = {
2508
2519
  ...xe,
@@ -2513,18 +2524,18 @@ const bu = /\b([a-z-]*)\(.*?\)/gu, Us = {
2513
2524
  }, ar = {
2514
2525
  ...nt,
2515
2526
  transform: Math.round
2516
- }, vu = {
2517
- rotate: Ee,
2518
- rotateX: Ee,
2519
- rotateY: Ee,
2520
- rotateZ: Ee,
2527
+ }, ku = {
2528
+ rotate: Me,
2529
+ rotateX: Me,
2530
+ rotateY: Me,
2531
+ rotateZ: Me,
2521
2532
  scale: Pt,
2522
2533
  scaleX: Pt,
2523
2534
  scaleY: Pt,
2524
2535
  scaleZ: Pt,
2525
- skew: Ee,
2526
- skewX: Ee,
2527
- skewY: Ee,
2536
+ skew: Me,
2537
+ skewX: Me,
2538
+ skewY: Me,
2528
2539
  distance: A,
2529
2540
  translateX: A,
2530
2541
  translateY: A,
@@ -2594,47 +2605,47 @@ const bu = /\b([a-z-]*)\(.*?\)/gu, Us = {
2594
2605
  // Misc
2595
2606
  backgroundPositionX: A,
2596
2607
  backgroundPositionY: A,
2597
- ...vu,
2608
+ ...ku,
2598
2609
  zIndex: ar,
2599
2610
  // SVG
2600
2611
  fillOpacity: pt,
2601
2612
  strokeOpacity: pt,
2602
2613
  numOctaves: ar
2603
- }, wu = {
2614
+ }, Tu = {
2604
2615
  ...jn,
2605
2616
  // Color props
2606
- color: Z,
2607
- backgroundColor: Z,
2608
- outlineColor: Z,
2609
- fill: Z,
2610
- stroke: Z,
2617
+ color: J,
2618
+ backgroundColor: J,
2619
+ outlineColor: J,
2620
+ fill: J,
2621
+ stroke: J,
2611
2622
  // Border props
2612
- borderColor: Z,
2613
- borderTopColor: Z,
2614
- borderRightColor: Z,
2615
- borderBottomColor: Z,
2616
- borderLeftColor: Z,
2623
+ borderColor: J,
2624
+ borderTopColor: J,
2625
+ borderRightColor: J,
2626
+ borderBottomColor: J,
2627
+ borderLeftColor: J,
2617
2628
  filter: Us,
2618
2629
  WebkitFilter: Us,
2619
2630
  mask: Gs,
2620
2631
  WebkitMask: Gs
2621
- }, wo = (e) => wu[e], ku = /* @__PURE__ */ new Set([Us, Gs]);
2632
+ }, wo = (e) => Tu[e], ju = /* @__PURE__ */ new Set([Us, Gs]);
2622
2633
  function ko(e, t) {
2623
2634
  let s = wo(e);
2624
- return ku.has(s) || (s = xe), s.getAnimatableNone ? s.getAnimatableNone(t) : void 0;
2635
+ return ju.has(s) || (s = xe), s.getAnimatableNone ? s.getAnimatableNone(t) : void 0;
2625
2636
  }
2626
- const Tu = /* @__PURE__ */ new Set(["auto", "none", "0"]);
2627
- function ju(e, t, s) {
2637
+ const Su = /* @__PURE__ */ new Set(["auto", "none", "0"]);
2638
+ function Cu(e, t, s) {
2628
2639
  let n = 0, r;
2629
2640
  for (; n < e.length && !r; ) {
2630
2641
  const o = e[n];
2631
- typeof o == "string" && !Tu.has(o) && et(o).values.length && (r = e[n]), n++;
2642
+ typeof o == "string" && !Su.has(o) && et(o).values.length && (r = e[n]), n++;
2632
2643
  }
2633
2644
  if (r && s)
2634
2645
  for (const o of t)
2635
2646
  e[o] = ko(s, r);
2636
2647
  }
2637
- class Su extends bn {
2648
+ class Au extends bn {
2638
2649
  constructor(t, s, n, r, o) {
2639
2650
  super(t, s, n, r, o, !0);
2640
2651
  }
@@ -2668,8 +2679,8 @@ class Su extends bn {
2668
2679
  resolveNoneKeyframes() {
2669
2680
  const { unresolvedKeyframes: t, name: s } = this, n = [];
2670
2681
  for (let r = 0; r < t.length; r++)
2671
- (t[r] === null || gu(t[r])) && n.push(r);
2672
- n.length && ju(t, n, s);
2682
+ (t[r] === null || xu(t[r])) && n.push(r);
2683
+ n.length && Cu(t, n, s);
2673
2684
  }
2674
2685
  measureInitialState() {
2675
2686
  const { element: t, unresolvedKeyframes: s, name: n } = this;
@@ -2715,7 +2726,7 @@ const { schedule: Sn } = /* @__PURE__ */ Wi(queueMicrotask, !1), ye = {
2715
2726
  function So() {
2716
2727
  return ye.x || ye.y;
2717
2728
  }
2718
- function Cu(e) {
2729
+ function Pu(e) {
2719
2730
  return e === "x" || e === "y" ? ye[e] ? null : (ye[e] = !0, () => {
2720
2731
  ye[e] = !1;
2721
2732
  }) : ye.x || ye.y ? null : (ye.x = ye.y = !0, () => {
@@ -2730,10 +2741,10 @@ function Co(e, t) {
2730
2741
  };
2731
2742
  return [s, r, () => n.abort()];
2732
2743
  }
2733
- function Au(e) {
2744
+ function Nu(e) {
2734
2745
  return !(e.pointerType === "touch" || So());
2735
2746
  }
2736
- function Pu(e, t, s = {}) {
2747
+ function Mu(e, t, s = {}) {
2737
2748
  const [n, r, o] = Co(e, s);
2738
2749
  return n.forEach((i) => {
2739
2750
  let a = !1, c = !1, u;
@@ -2754,7 +2765,7 @@ function Pu(e, t, s = {}) {
2754
2765
  f(y);
2755
2766
  }
2756
2767
  }, p = (y) => {
2757
- if (!Au(y))
2768
+ if (!Nu(y))
2758
2769
  return;
2759
2770
  c = !1;
2760
2771
  const k = t(i, y);
@@ -2763,19 +2774,19 @@ function Pu(e, t, s = {}) {
2763
2774
  i.addEventListener("pointerenter", p, r), i.addEventListener("pointerdown", m, r);
2764
2775
  }), o;
2765
2776
  }
2766
- const Ao = (e, t) => t ? e === t ? !0 : Ao(e, t.parentElement) : !1, Cn = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1, Nu = /* @__PURE__ */ new Set([
2777
+ const Ao = (e, t) => t ? e === t ? !0 : Ao(e, t.parentElement) : !1, Cn = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1, Eu = /* @__PURE__ */ new Set([
2767
2778
  "BUTTON",
2768
2779
  "INPUT",
2769
2780
  "SELECT",
2770
2781
  "TEXTAREA",
2771
2782
  "A"
2772
2783
  ]);
2773
- function Eu(e) {
2774
- return Nu.has(e.tagName) || e.isContentEditable === !0;
2775
- }
2776
- const Mu = /* @__PURE__ */ new Set(["INPUT", "SELECT", "TEXTAREA"]);
2777
2784
  function Vu(e) {
2778
- return Mu.has(e.tagName) || e.isContentEditable === !0;
2785
+ return Eu.has(e.tagName) || e.isContentEditable === !0;
2786
+ }
2787
+ const Ru = /* @__PURE__ */ new Set(["INPUT", "SELECT", "TEXTAREA"]);
2788
+ function Du(e) {
2789
+ return Ru.has(e.tagName) || e.isContentEditable === !0;
2779
2790
  }
2780
2791
  const Ot = /* @__PURE__ */ new WeakSet();
2781
2792
  function lr(e) {
@@ -2786,7 +2797,7 @@ function lr(e) {
2786
2797
  function ys(e, t) {
2787
2798
  e.dispatchEvent(new PointerEvent("pointer" + t, { isPrimary: !0, bubbles: !0 }));
2788
2799
  }
2789
- const Ru = (e, t) => {
2800
+ const Lu = (e, t) => {
2790
2801
  const s = e.currentTarget;
2791
2802
  if (!s)
2792
2803
  return;
@@ -2805,7 +2816,7 @@ function cr(e) {
2805
2816
  return Cn(e) && !So();
2806
2817
  }
2807
2818
  const ur = /* @__PURE__ */ new WeakSet();
2808
- function Du(e, t, s = {}) {
2819
+ function Iu(e, t, s = {}) {
2809
2820
  const [n, r, o] = Co(e, s), i = (a) => {
2810
2821
  const c = a.currentTarget;
2811
2822
  if (!cr(a) || ur.has(a))
@@ -2821,50 +2832,50 @@ function Du(e, t, s = {}) {
2821
2832
  window.addEventListener("pointerup", f, r), window.addEventListener("pointercancel", h, r);
2822
2833
  };
2823
2834
  return n.forEach((a) => {
2824
- (s.useGlobalTarget ? window : a).addEventListener("pointerdown", i, r), It(a) && (a.addEventListener("focus", (u) => Ru(u, r)), !Eu(a) && !a.hasAttribute("tabindex") && (a.tabIndex = 0));
2835
+ (s.useGlobalTarget ? window : a).addEventListener("pointerdown", i, r), It(a) && (a.addEventListener("focus", (u) => Lu(u, r)), !Vu(a) && !a.hasAttribute("tabindex") && (a.tabIndex = 0));
2825
2836
  }), o;
2826
2837
  }
2827
2838
  function An(e) {
2828
2839
  return Ni(e) && "ownerSVGElement" in e;
2829
2840
  }
2830
2841
  const zt = /* @__PURE__ */ new WeakMap();
2831
- let Me;
2832
- const Po = (e, t, s) => (n, r) => r && r[0] ? r[0][e + "Size"] : An(n) && "getBBox" in n ? n.getBBox()[t] : n[s], Lu = /* @__PURE__ */ Po("inline", "width", "offsetWidth"), Iu = /* @__PURE__ */ Po("block", "height", "offsetHeight");
2833
- function Ou({ target: e, borderBoxSize: t }) {
2842
+ let Ee;
2843
+ const Po = (e, t, s) => (n, r) => r && r[0] ? r[0][e + "Size"] : An(n) && "getBBox" in n ? n.getBBox()[t] : n[s], Ou = /* @__PURE__ */ Po("inline", "width", "offsetWidth"), zu = /* @__PURE__ */ Po("block", "height", "offsetHeight");
2844
+ function Fu({ target: e, borderBoxSize: t }) {
2834
2845
  var s;
2835
2846
  (s = zt.get(e)) == null || s.forEach((n) => {
2836
2847
  n(e, {
2837
2848
  get width() {
2838
- return Lu(e, t);
2849
+ return Ou(e, t);
2839
2850
  },
2840
2851
  get height() {
2841
- return Iu(e, t);
2852
+ return zu(e, t);
2842
2853
  }
2843
2854
  });
2844
2855
  });
2845
2856
  }
2846
- function zu(e) {
2847
- e.forEach(Ou);
2857
+ function Bu(e) {
2858
+ e.forEach(Fu);
2848
2859
  }
2849
- function Fu() {
2850
- typeof ResizeObserver > "u" || (Me = new ResizeObserver(zu));
2860
+ function _u() {
2861
+ typeof ResizeObserver > "u" || (Ee = new ResizeObserver(Bu));
2851
2862
  }
2852
- function Bu(e, t) {
2853
- Me || Fu();
2863
+ function $u(e, t) {
2864
+ Ee || _u();
2854
2865
  const s = To(e);
2855
2866
  return s.forEach((n) => {
2856
2867
  let r = zt.get(n);
2857
- r || (r = /* @__PURE__ */ new Set(), zt.set(n, r)), r.add(t), Me == null || Me.observe(n);
2868
+ r || (r = /* @__PURE__ */ new Set(), zt.set(n, r)), r.add(t), Ee == null || Ee.observe(n);
2858
2869
  }), () => {
2859
2870
  s.forEach((n) => {
2860
2871
  const r = zt.get(n);
2861
- r == null || r.delete(t), r != null && r.size || Me == null || Me.unobserve(n);
2872
+ r == null || r.delete(t), r != null && r.size || Ee == null || Ee.unobserve(n);
2862
2873
  });
2863
2874
  };
2864
2875
  }
2865
2876
  const Ft = /* @__PURE__ */ new Set();
2866
2877
  let Je;
2867
- function _u() {
2878
+ function Wu() {
2868
2879
  Je = () => {
2869
2880
  const e = {
2870
2881
  get width() {
@@ -2877,18 +2888,18 @@ function _u() {
2877
2888
  Ft.forEach((t) => t(e));
2878
2889
  }, window.addEventListener("resize", Je);
2879
2890
  }
2880
- function $u(e) {
2881
- return Ft.add(e), Je || _u(), () => {
2891
+ function Uu(e) {
2892
+ return Ft.add(e), Je || Wu(), () => {
2882
2893
  Ft.delete(e), !Ft.size && typeof Je == "function" && (window.removeEventListener("resize", Je), Je = void 0);
2883
2894
  };
2884
2895
  }
2885
2896
  function dr(e, t) {
2886
- return typeof e == "function" ? $u(e) : Bu(e, t);
2897
+ return typeof e == "function" ? Uu(e) : $u(e, t);
2887
2898
  }
2888
- function Wu(e) {
2899
+ function Gu(e) {
2889
2900
  return An(e) && e.tagName === "svg";
2890
2901
  }
2891
- const Uu = [...vo, Z, xe], Gu = (e) => Uu.find(bo(e)), fr = () => ({
2902
+ const Ku = [...vo, J, xe], Yu = (e) => Ku.find(bo(e)), fr = () => ({
2892
2903
  translate: 0,
2893
2904
  scale: 1,
2894
2905
  origin: 0,
@@ -2899,7 +2910,7 @@ const Uu = [...vo, Z, xe], Gu = (e) => Uu.find(bo(e)), fr = () => ({
2899
2910
  }), hr = () => ({ min: 0, max: 0 }), se = () => ({
2900
2911
  x: hr(),
2901
2912
  y: hr()
2902
- }), Ku = /* @__PURE__ */ new WeakMap();
2913
+ }), Hu = /* @__PURE__ */ new WeakMap();
2903
2914
  function as(e) {
2904
2915
  return e !== null && typeof e == "object" && typeof e.start == "function";
2905
2916
  }
@@ -2921,7 +2932,7 @@ function ls(e) {
2921
2932
  function No(e) {
2922
2933
  return !!(ls(e) || e.variants);
2923
2934
  }
2924
- function Yu(e, t, s) {
2935
+ function Xu(e, t, s) {
2925
2936
  for (const n in t) {
2926
2937
  const r = t[n], o = s[n];
2927
2938
  if (oe(r))
@@ -2941,9 +2952,9 @@ function Yu(e, t, s) {
2941
2952
  t[n] === void 0 && e.removeValue(n);
2942
2953
  return t;
2943
2954
  }
2944
- const Ks = { current: null }, Eo = { current: !1 }, Hu = typeof window < "u";
2945
- function Xu() {
2946
- if (Eo.current = !0, !!Hu)
2955
+ const Ks = { current: null }, Mo = { current: !1 }, qu = typeof window < "u";
2956
+ function Zu() {
2957
+ if (Mo.current = !0, !!qu)
2947
2958
  if (window.matchMedia) {
2948
2959
  const e = window.matchMedia("(prefers-reduced-motion)"), t = () => Ks.current = e.matches;
2949
2960
  e.addEventListener("change", t), t();
@@ -2960,13 +2971,13 @@ const mr = [
2960
2971
  "LayoutAnimationComplete"
2961
2972
  ];
2962
2973
  let Jt = {};
2963
- function Mo(e) {
2974
+ function Eo(e) {
2964
2975
  Jt = e;
2965
2976
  }
2966
- function qu() {
2977
+ function Ju() {
2967
2978
  return Jt;
2968
2979
  }
2969
- class Zu {
2980
+ class Qu {
2970
2981
  /**
2971
2982
  * This method takes React props and returns found MotionValues. For example, HTML
2972
2983
  * MotionValues will be found within the style prop, whereas for Three.js within attribute arrays.
@@ -2997,7 +3008,7 @@ class Zu {
2997
3008
  if (this.hasBeenMounted)
2998
3009
  for (const r in this.initialValues)
2999
3010
  (s = this.values.get(r)) == null || s.jump(this.initialValues[r]), this.latestValues[r] = this.initialValues[r];
3000
- this.current = t, Ku.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((r, o) => this.bindToMotionValue(o, r)), this.reducedMotionConfig === "never" ? this.shouldReduceMotion = !1 : this.reducedMotionConfig === "always" ? this.shouldReduceMotion = !0 : (Eo.current || Xu(), this.shouldReduceMotion = Ks.current), process.env.NODE_ENV !== "production" && un(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected.", "reduced-motion-disabled"), this.shouldSkipAnimations = this.skipAnimationsConfig ?? !1, (n = this.parent) == null || n.addChild(this), this.update(this.props, this.presenceContext), this.hasBeenMounted = !0;
3011
+ this.current = t, Hu.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((r, o) => this.bindToMotionValue(o, r)), this.reducedMotionConfig === "never" ? this.shouldReduceMotion = !1 : this.reducedMotionConfig === "always" ? this.shouldReduceMotion = !0 : (Mo.current || Zu(), this.shouldReduceMotion = Ks.current), process.env.NODE_ENV !== "production" && un(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected.", "reduced-motion-disabled"), this.shouldSkipAnimations = this.skipAnimationsConfig ?? !1, (n = this.parent) == null || n.addChild(this), this.update(this.props, this.presenceContext), this.hasBeenMounted = !0;
3001
3012
  }
3002
3013
  unmount() {
3003
3014
  var t;
@@ -3086,7 +3097,7 @@ class Zu {
3086
3097
  const o = "on" + r, i = t[o];
3087
3098
  i && (this.propEventSubscriptions[r] = this.on(r, i));
3088
3099
  }
3089
- this.prevMotionValues = Yu(this, this.scrapeMotionValuesFromProps(t, this.prevProps || {}, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
3100
+ this.prevMotionValues = Xu(this, this.scrapeMotionValuesFromProps(t, this.prevProps || {}, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
3090
3101
  }
3091
3102
  getProps() {
3092
3103
  return this.props;
@@ -3151,7 +3162,7 @@ class Zu {
3151
3162
  */
3152
3163
  readValue(t, s) {
3153
3164
  let n = this.latestValues[t] !== void 0 || !this.current ? this.latestValues[t] : this.getBaseTargetFromProps(this.props, t) ?? this.readValueFromInstance(this.current, t, this.options);
3154
- return n != null && (typeof n == "string" && (Pi(n) || Ei(n)) ? n = parseFloat(n) : !Gu(n) && xe.test(s) && (n = ko(t, s)), this.setBaseTarget(t, oe(n) ? n.get() : n)), oe(n) ? n.get() : n;
3165
+ return n != null && (typeof n == "string" && (Pi(n) || Mi(n)) ? n = parseFloat(n) : !Yu(n) && xe.test(s) && (n = ko(t, s)), this.setBaseTarget(t, oe(n) ? n.get() : n)), oe(n) ? n.get() : n;
3155
3166
  }
3156
3167
  /**
3157
3168
  * Set the base target to later animate back to. This is currently
@@ -3187,9 +3198,9 @@ class Zu {
3187
3198
  Sn.render(this.render);
3188
3199
  }
3189
3200
  }
3190
- class Vo extends Zu {
3201
+ class Vo extends Qu {
3191
3202
  constructor() {
3192
- super(...arguments), this.KeyframeResolver = Su;
3203
+ super(...arguments), this.KeyframeResolver = Au;
3193
3204
  }
3194
3205
  sortInstanceNodePosition(t, s) {
3195
3206
  return t.compareDocumentPosition(s) & 2 ? 1 : -1;
@@ -3209,7 +3220,7 @@ class Vo extends Zu {
3209
3220
  }));
3210
3221
  }
3211
3222
  }
3212
- class Ie {
3223
+ class Oe {
3213
3224
  constructor(t) {
3214
3225
  this.isMounted = !1, this.node = t;
3215
3226
  }
@@ -3222,10 +3233,10 @@ function Ro({ top: e, left: t, right: s, bottom: n }) {
3222
3233
  y: { min: e, max: n }
3223
3234
  };
3224
3235
  }
3225
- function Ju({ x: e, y: t }) {
3236
+ function ed({ x: e, y: t }) {
3226
3237
  return { top: t.min, right: e.max, bottom: t.max, left: e.min };
3227
3238
  }
3228
- function Qu(e, t) {
3239
+ function td(e, t) {
3229
3240
  if (!t)
3230
3241
  return e;
3231
3242
  const s = t({ x: e.left, y: e.top }), n = t({ x: e.right, y: e.bottom });
@@ -3242,7 +3253,7 @@ function xs(e) {
3242
3253
  function Ys({ scale: e, scaleX: t, scaleY: s }) {
3243
3254
  return !xs(e) || !xs(t) || !xs(s);
3244
3255
  }
3245
- function Be(e) {
3256
+ function _e(e) {
3246
3257
  return Ys(e) || Do(e) || e.z || e.rotate || e.rotateX || e.rotateY || e.skewX || e.skewY;
3247
3258
  }
3248
3259
  function Do(e) {
@@ -3265,7 +3276,7 @@ function Lo(e, { x: t, y: s }) {
3265
3276
  Hs(e.x, t.translate, t.scale, t.originPoint), Hs(e.y, s.translate, s.scale, s.originPoint);
3266
3277
  }
3267
3278
  const yr = 0.999999999999, xr = 1.0000000000001;
3268
- function ed(e, t, s, n = !1) {
3279
+ function sd(e, t, s, n = !1) {
3269
3280
  var a;
3270
3281
  const r = s.length;
3271
3282
  if (!r)
@@ -3275,7 +3286,7 @@ function ed(e, t, s, n = !1) {
3275
3286
  for (let c = 0; c < r; c++) {
3276
3287
  o = s[c], i = o.projectionDelta;
3277
3288
  const { visualElement: u } = o.options;
3278
- u && u.props.style && u.props.style.display === "contents" || (n && o.options.layoutScroll && o.scroll && o !== o.root && (we(e.x, -o.scroll.offset.x), we(e.y, -o.scroll.offset.y)), i && (t.x *= i.x.scale, t.y *= i.y.scale, Lo(e, i)), n && Be(o.latestValues) && Bt(e, o.latestValues, (a = o.layout) == null ? void 0 : a.layoutBox));
3289
+ u && u.props.style && u.props.style.display === "contents" || (n && o.options.layoutScroll && o.scroll && o !== o.root && (we(e.x, -o.scroll.offset.x), we(e.y, -o.scroll.offset.y)), i && (t.x *= i.x.scale, t.y *= i.y.scale, Lo(e, i)), n && _e(o.latestValues) && Bt(e, o.latestValues, (a = o.layout) == null ? void 0 : a.layoutBox));
3279
3290
  }
3280
3291
  t.x < xr && t.x > yr && (t.x = 1), t.y < xr && t.y > yr && (t.y = 1);
3281
3292
  }
@@ -3294,21 +3305,21 @@ function Bt(e, t, s) {
3294
3305
  br(e.x, vr(t.x, n.x), t.scaleX, t.scale, t.originX), br(e.y, vr(t.y, n.y), t.scaleY, t.scale, t.originY);
3295
3306
  }
3296
3307
  function Io(e, t) {
3297
- return Ro(Qu(e.getBoundingClientRect(), t));
3308
+ return Ro(td(e.getBoundingClientRect(), t));
3298
3309
  }
3299
- function td(e, t, s) {
3310
+ function nd(e, t, s) {
3300
3311
  const n = Io(e, s), { scroll: r } = t;
3301
3312
  return r && (we(n.x, r.offset.x), we(n.y, r.offset.y)), n;
3302
3313
  }
3303
- const sd = {
3314
+ const rd = {
3304
3315
  x: "translateX",
3305
3316
  y: "translateY",
3306
3317
  z: "translateZ",
3307
3318
  transformPerspective: "perspective"
3308
- }, nd = rt.length;
3309
- function rd(e, t, s) {
3319
+ }, id = rt.length;
3320
+ function od(e, t, s) {
3310
3321
  let n = "", r = !0;
3311
- for (let o = 0; o < nd; o++) {
3322
+ for (let o = 0; o < id; o++) {
3312
3323
  const i = rt[o], a = e[i];
3313
3324
  if (a === void 0)
3314
3325
  continue;
@@ -3323,7 +3334,7 @@ function rd(e, t, s) {
3323
3334
  const u = jo(a, jn[i]);
3324
3335
  if (!c) {
3325
3336
  r = !1;
3326
- const d = sd[i] || i;
3337
+ const d = rd[i] || i;
3327
3338
  n += `${d}(${u}) `;
3328
3339
  }
3329
3340
  s && (t[i] = u);
@@ -3331,7 +3342,7 @@ function rd(e, t, s) {
3331
3342
  }
3332
3343
  return n = n.trim(), s ? n = s(t, r ? "" : n) : r && (n = "none"), n;
3333
3344
  }
3334
- function En(e, t, s) {
3345
+ function Mn(e, t, s) {
3335
3346
  const { style: n, vars: r, transformOrigin: o } = e;
3336
3347
  let i = !1, a = !1;
3337
3348
  for (const c in t) {
@@ -3347,7 +3358,7 @@ function En(e, t, s) {
3347
3358
  c.startsWith("origin") ? (a = !0, o[c] = d) : n[c] = d;
3348
3359
  }
3349
3360
  }
3350
- if (t.transform || (i || s ? n.transform = rd(t, e.transform, s) : n.transform && (n.transform = "none")), a) {
3361
+ if (t.transform || (i || s ? n.transform = od(t, e.transform, s) : n.transform && (n.transform = "none")), a) {
3351
3362
  const { originX: c = "50%", originY: u = "50%", originZ: d = 0 } = o;
3352
3363
  n.transformOrigin = `${c} ${u} ${d}`;
3353
3364
  }
@@ -3376,7 +3387,7 @@ const lt = {
3376
3387
  const s = wr(e, t.target.x), n = wr(e, t.target.y);
3377
3388
  return `${s}% ${n}%`;
3378
3389
  }
3379
- }, id = {
3390
+ }, ad = {
3380
3391
  correct: (e, { treeScale: t, projectionDelta: s }) => {
3381
3392
  const n = e, r = xe.parse(e);
3382
3393
  if (r.length > 5)
@@ -3400,12 +3411,12 @@ const lt = {
3400
3411
  borderTopRightRadius: lt,
3401
3412
  borderBottomLeftRadius: lt,
3402
3413
  borderBottomRightRadius: lt,
3403
- boxShadow: id
3414
+ boxShadow: ad
3404
3415
  };
3405
3416
  function zo(e, { layout: t, layoutId: s }) {
3406
3417
  return it.has(e) || e.startsWith("origin") || (t || s !== void 0) && (!!Xs[e] || e === "opacity");
3407
3418
  }
3408
- function Mn(e, t, s) {
3419
+ function En(e, t, s) {
3409
3420
  var i;
3410
3421
  const n = e.style, r = t == null ? void 0 : t.style, o = {};
3411
3422
  if (!n)
@@ -3414,19 +3425,19 @@ function Mn(e, t, s) {
3414
3425
  (oe(n[a]) || r && oe(r[a]) || zo(a, e) || ((i = s == null ? void 0 : s.getValue(a)) == null ? void 0 : i.liveStyle) !== void 0) && (o[a] = n[a]);
3415
3426
  return o;
3416
3427
  }
3417
- function od(e) {
3428
+ function ld(e) {
3418
3429
  return window.getComputedStyle(e);
3419
3430
  }
3420
- class ad extends Vo {
3431
+ class cd extends Vo {
3421
3432
  constructor() {
3422
3433
  super(...arguments), this.type = "html", this.renderInstance = Oo;
3423
3434
  }
3424
3435
  readValueFromInstance(t, s) {
3425
3436
  var n;
3426
3437
  if (it.has(s))
3427
- return (n = this.projection) != null && n.isProjecting ? Ls(s) : Cc(t, s);
3438
+ return (n = this.projection) != null && n.isProjecting ? Ls(s) : Pc(t, s);
3428
3439
  {
3429
- const r = od(t), o = (Gi(s) ? r.getPropertyValue(s) : r[s]) || 0;
3440
+ const r = ld(t), o = (Gi(s) ? r.getPropertyValue(s) : r[s]) || 0;
3430
3441
  return typeof o == "string" ? o.trim() : o;
3431
3442
  }
3432
3443
  }
@@ -3434,25 +3445,25 @@ class ad extends Vo {
3434
3445
  return Io(t, s);
3435
3446
  }
3436
3447
  build(t, s, n) {
3437
- En(t, s, n.transformTemplate);
3448
+ Mn(t, s, n.transformTemplate);
3438
3449
  }
3439
3450
  scrapeMotionValuesFromProps(t, s, n) {
3440
- return Mn(t, s, n);
3451
+ return En(t, s, n);
3441
3452
  }
3442
3453
  }
3443
- const ld = {
3454
+ const ud = {
3444
3455
  offset: "stroke-dashoffset",
3445
3456
  array: "stroke-dasharray"
3446
- }, cd = {
3457
+ }, dd = {
3447
3458
  offset: "strokeDashoffset",
3448
3459
  array: "strokeDasharray"
3449
3460
  };
3450
- function ud(e, t, s = 1, n = 0, r = !0) {
3461
+ function fd(e, t, s = 1, n = 0, r = !0) {
3451
3462
  e.pathLength = 1;
3452
- const o = r ? ld : cd;
3463
+ const o = r ? ud : dd;
3453
3464
  e[o.offset] = `${-n}`, e[o.array] = `${t} ${s}`;
3454
3465
  }
3455
- const dd = [
3466
+ const hd = [
3456
3467
  "offsetDistance",
3457
3468
  "offsetPath",
3458
3469
  "offsetRotate",
@@ -3468,16 +3479,16 @@ function Fo(e, {
3468
3479
  // This is object creation, which we try to avoid per-frame.
3469
3480
  ...a
3470
3481
  }, c, u, d) {
3471
- if (En(e, a, u), c) {
3482
+ if (Mn(e, a, u), c) {
3472
3483
  e.style.viewBox && (e.attrs.viewBox = e.style.viewBox);
3473
3484
  return;
3474
3485
  }
3475
3486
  e.attrs = e.style, e.style = {};
3476
3487
  const { attrs: f, style: h } = e;
3477
3488
  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 = (d == null ? void 0 : d.transformBox) ?? "fill-box", delete f.transformBox);
3478
- for (const m of dd)
3489
+ for (const m of hd)
3479
3490
  f[m] !== void 0 && (h[m] = f[m], delete f[m]);
3480
- t !== void 0 && (f.x = t), s !== void 0 && (f.y = s), n !== void 0 && (f.scale = n), r !== void 0 && ud(f, r, o, i, !1);
3491
+ t !== void 0 && (f.x = t), s !== void 0 && (f.y = s), n !== void 0 && (f.scale = n), r !== void 0 && fd(f, r, o, i, !1);
3481
3492
  }
3482
3493
  const Bo = /* @__PURE__ */ new Set([
3483
3494
  "baseFrequency",
@@ -3504,13 +3515,13 @@ const Bo = /* @__PURE__ */ new Set([
3504
3515
  "textLength",
3505
3516
  "lengthAdjust"
3506
3517
  ]), _o = (e) => typeof e == "string" && e.toLowerCase() === "svg";
3507
- function fd(e, t, s, n) {
3518
+ function md(e, t, s, n) {
3508
3519
  Oo(e, t, void 0, n);
3509
3520
  for (const r in t.attrs)
3510
3521
  e.setAttribute(Bo.has(r) ? r : Tn(r), t.attrs[r]);
3511
3522
  }
3512
3523
  function $o(e, t, s) {
3513
- const n = Mn(e, t, s);
3524
+ const n = En(e, t, s);
3514
3525
  for (const r in e)
3515
3526
  if (oe(e[r]) || oe(t[r])) {
3516
3527
  const o = rt.indexOf(r) !== -1 ? "attr" + r.charAt(0).toUpperCase() + r.substring(1) : r;
@@ -3518,7 +3529,7 @@ function $o(e, t, s) {
3518
3529
  }
3519
3530
  return n;
3520
3531
  }
3521
- class hd extends Vo {
3532
+ class pd extends Vo {
3522
3533
  constructor() {
3523
3534
  super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = se;
3524
3535
  }
@@ -3539,13 +3550,13 @@ class hd extends Vo {
3539
3550
  Fo(t, s, this.isSVGTag, n.transformTemplate, n.style);
3540
3551
  }
3541
3552
  renderInstance(t, s, n, r) {
3542
- fd(t, s, n, r);
3553
+ md(t, s, n, r);
3543
3554
  }
3544
3555
  mount(t) {
3545
3556
  this.isSVGTag = _o(t.tagName), super.mount(t);
3546
3557
  }
3547
3558
  }
3548
- const md = Nn.length;
3559
+ const gd = Nn.length;
3549
3560
  function Wo(e) {
3550
3561
  if (!e)
3551
3562
  return;
@@ -3554,7 +3565,7 @@ function Wo(e) {
3554
3565
  return e.props.initial !== void 0 && (s.initial = e.props.initial), s;
3555
3566
  }
3556
3567
  const t = {};
3557
- for (let s = 0; s < md; s++) {
3568
+ for (let s = 0; s < gd; s++) {
3558
3569
  const n = Nn[s], r = e.props[n];
3559
3570
  (gt(r) || r === !1) && (t[n] = r);
3560
3571
  }
@@ -3571,15 +3582,15 @@ function Uo(e, t) {
3571
3582
  return !1;
3572
3583
  return !0;
3573
3584
  }
3574
- const pd = [...Pn].reverse(), gd = Pn.length;
3575
- function yd(e) {
3576
- return (t) => Promise.all(t.map(({ animation: s, options: n }) => mu(e, s, n)));
3585
+ const yd = [...Pn].reverse(), xd = Pn.length;
3586
+ function bd(e) {
3587
+ return (t) => Promise.all(t.map(({ animation: s, options: n }) => gu(e, s, n)));
3577
3588
  }
3578
- function xd(e) {
3579
- let t = yd(e), s = kr(), n = !0, r = !1;
3589
+ function vd(e) {
3590
+ let t = bd(e), s = kr(), n = !0, r = !1;
3580
3591
  const o = (u) => (d, f) => {
3581
3592
  var m;
3582
- const h = Ue(e, f, u === "exit" ? (m = e.presenceContext) == null ? void 0 : m.custom : void 0);
3593
+ const h = Ge(e, f, u === "exit" ? (m = e.presenceContext) == null ? void 0 : m.custom : void 0);
3583
3594
  if (h) {
3584
3595
  const { transition: g, transitionEnd: p, ...y } = h;
3585
3596
  d = { ...d, ...y, ...p };
@@ -3592,8 +3603,8 @@ function xd(e) {
3592
3603
  function a(u) {
3593
3604
  const { props: d } = e, f = Wo(e.parent) || {}, h = [], m = /* @__PURE__ */ new Set();
3594
3605
  let g = {}, p = 1 / 0;
3595
- for (let k = 0; k < gd; k++) {
3596
- const v = pd[k], x = s[v], T = d[v] !== void 0 ? d[v] : f[v], j = gt(T), N = v === u ? x.isActive : null;
3606
+ for (let k = 0; k < xd; k++) {
3607
+ const v = yd[k], x = s[v], T = d[v] !== void 0 ? d[v] : f[v], j = gt(T), N = v === u ? x.isActive : null;
3597
3608
  N === !1 && (p = k);
3598
3609
  let L = T === f[v] && T !== d[v] && j;
3599
3610
  if (L && (n || r) && e.manuallyAnimateOnMount && (L = !1), x.protectedKeys = { ...g }, // If it isn't active and hasn't *just* been set as inactive
@@ -3608,18 +3619,18 @@ function xd(e) {
3608
3619
  });
3609
3620
  continue;
3610
3621
  }
3611
- const w = bd(x.prevProp, T);
3612
- let E = w || // If we're making this variant active, we want to always make it active
3622
+ const w = wd(x.prevProp, T);
3623
+ let M = w || // If we're making this variant active, we want to always make it active
3613
3624
  v === u && x.isActive && !L && j || // If we removed a higher-priority variant (i is in reverse order)
3614
- k > p && j, M = !1;
3615
- const O = Array.isArray(T) ? T : [T];
3616
- let B = O.reduce(o(v), {});
3625
+ k > p && j, E = !1;
3626
+ const z = Array.isArray(T) ? T : [T];
3627
+ let B = z.reduce(o(v), {});
3617
3628
  N === !1 && (B = {});
3618
3629
  const { prevResolvedValues: le = {} } = x, ae = {
3619
3630
  ...le,
3620
3631
  ...B
3621
- }, X = (U) => {
3622
- E = !0, m.has(U) && (M = !0, m.delete(U)), x.needsAnimating[U] = !0;
3632
+ }, q = (U) => {
3633
+ M = !0, m.has(U) && (E = !0, m.delete(U)), x.needsAnimating[U] = !0;
3623
3634
  const Q = e.getValue(U);
3624
3635
  Q && (Q.liveStyle = !1);
3625
3636
  };
@@ -3628,14 +3639,14 @@ function xd(e) {
3628
3639
  if (g.hasOwnProperty(U))
3629
3640
  continue;
3630
3641
  let b = !1;
3631
- _s(Q) && _s(P) ? b = !Uo(Q, P) : b = Q !== P, b ? Q != null ? X(U) : m.add(U) : Q !== void 0 && m.has(U) ? X(U) : x.protectedKeys[U] = !0;
3642
+ _s(Q) && _s(P) ? b = !Uo(Q, P) : b = Q !== P, b ? Q != null ? q(U) : m.add(U) : Q !== void 0 && m.has(U) ? q(U) : x.protectedKeys[U] = !0;
3632
3643
  }
3633
- x.prevProp = T, x.prevResolvedValues = B, x.isActive && (g = { ...g, ...B }), (n || r) && e.blockInitialAnimation && (E = !1);
3644
+ x.prevProp = T, x.prevResolvedValues = B, x.isActive && (g = { ...g, ...B }), (n || r) && e.blockInitialAnimation && (M = !1);
3634
3645
  const _ = L && w;
3635
- E && (!_ || M) && h.push(...O.map((U) => {
3646
+ M && (!_ || E) && h.push(...z.map((U) => {
3636
3647
  const Q = { type: v };
3637
3648
  if (typeof U == "string" && (n || r) && !_ && e.manuallyAnimateOnMount && e.parent) {
3638
- const { parent: P } = e, b = Ue(P, U);
3649
+ const { parent: P } = e, b = Ge(P, U);
3639
3650
  if (P.enteringChildren && b) {
3640
3651
  const { delayChildren: R } = b.transition || {};
3641
3652
  Q.delay = fo(P.enteringChildren, e, R);
@@ -3650,7 +3661,7 @@ function xd(e) {
3650
3661
  if (m.size) {
3651
3662
  const k = {};
3652
3663
  if (typeof d.initial != "boolean") {
3653
- const v = Ue(e, Array.isArray(d.initial) ? d.initial[0] : d.initial);
3664
+ const v = Ge(e, Array.isArray(d.initial) ? d.initial[0] : d.initial);
3654
3665
  v && v.transition && (k.transition = v.transition);
3655
3666
  }
3656
3667
  m.forEach((v) => {
@@ -3684,10 +3695,10 @@ function xd(e) {
3684
3695
  }
3685
3696
  };
3686
3697
  }
3687
- function bd(e, t) {
3698
+ function wd(e, t) {
3688
3699
  return typeof t == "string" ? t !== e : Array.isArray(t) ? !Uo(t, e) : !1;
3689
3700
  }
3690
- function ze(e = !1) {
3701
+ function Fe(e = !1) {
3691
3702
  return {
3692
3703
  isActive: e,
3693
3704
  protectedKeys: {},
@@ -3697,13 +3708,13 @@ function ze(e = !1) {
3697
3708
  }
3698
3709
  function kr() {
3699
3710
  return {
3700
- animate: ze(!0),
3701
- whileInView: ze(),
3702
- whileHover: ze(),
3703
- whileTap: ze(),
3704
- whileDrag: ze(),
3705
- whileFocus: ze(),
3706
- exit: ze()
3711
+ animate: Fe(!0),
3712
+ whileInView: Fe(),
3713
+ whileHover: Fe(),
3714
+ whileTap: Fe(),
3715
+ whileDrag: Fe(),
3716
+ whileFocus: Fe(),
3717
+ exit: Fe()
3707
3718
  };
3708
3719
  }
3709
3720
  function qs(e, t) {
@@ -3715,15 +3726,15 @@ function ge(e, t) {
3715
3726
  function Tr(e, t) {
3716
3727
  e.translate = t.translate, e.scale = t.scale, e.originPoint = t.originPoint, e.origin = t.origin;
3717
3728
  }
3718
- const Go = 1e-4, vd = 1 - Go, wd = 1 + Go, Ko = 0.01, kd = 0 - Ko, Td = 0 + Ko;
3729
+ const Go = 1e-4, kd = 1 - Go, Td = 1 + Go, Ko = 0.01, jd = 0 - Ko, Sd = 0 + Ko;
3719
3730
  function ue(e) {
3720
3731
  return e.max - e.min;
3721
3732
  }
3722
- function jd(e, t, s) {
3733
+ function Cd(e, t, s) {
3723
3734
  return Math.abs(e - t) <= s;
3724
3735
  }
3725
3736
  function jr(e, t, s, n = 0.5) {
3726
- e.origin = n, e.originPoint = W(t.min, t.max, e.origin), e.scale = ue(s) / ue(t), e.translate = W(s.min, s.max, e.origin) - e.originPoint, (e.scale >= vd && e.scale <= wd || isNaN(e.scale)) && (e.scale = 1), (e.translate >= kd && e.translate <= Td || isNaN(e.translate)) && (e.translate = 0);
3737
+ e.origin = n, e.originPoint = W(t.min, t.max, e.origin), e.scale = ue(s) / ue(t), e.translate = W(s.min, s.max, e.origin) - e.originPoint, (e.scale >= kd && e.scale <= Td || isNaN(e.scale)) && (e.scale = 1), (e.translate >= jd && e.translate <= Sd || isNaN(e.translate)) && (e.translate = 0);
3727
3738
  }
3728
3739
  function ft(e, t, s, n) {
3729
3740
  jr(e.x, t.x, s.x, n ? n.originX : void 0), jr(e.y, t.y, s.y, n ? n.originY : void 0);
@@ -3732,7 +3743,7 @@ function Sr(e, t, s, n = 0) {
3732
3743
  const r = n ? W(s.min, s.max, n) : s.min;
3733
3744
  e.min = r + t.min, e.max = e.min + ue(t);
3734
3745
  }
3735
- function Sd(e, t, s, n) {
3746
+ function Ad(e, t, s, n) {
3736
3747
  Sr(e.x, t.x, s.x, n == null ? void 0 : n.x), Sr(e.y, t.y, s.y, n == null ? void 0 : n.y);
3737
3748
  }
3738
3749
  function Cr(e, t, s, n = 0) {
@@ -3745,30 +3756,30 @@ function es(e, t, s, n) {
3745
3756
  function Ar(e, t, s, n, r) {
3746
3757
  return e -= t, e = Qt(e, 1 / s, n), r !== void 0 && (e = Qt(e, 1 / r, n)), e;
3747
3758
  }
3748
- function Cd(e, t = 0, s = 1, n = 0.5, r, o = e, i = e) {
3759
+ function Pd(e, t = 0, s = 1, n = 0.5, r, o = e, i = e) {
3749
3760
  if (Te.test(t) && (t = parseFloat(t), t = W(i.min, i.max, t / 100) - i.min), typeof t != "number")
3750
3761
  return;
3751
3762
  let a = W(o.min, o.max, n);
3752
3763
  e === o && (a -= t), e.min = Ar(e.min, t, s, a, r), e.max = Ar(e.max, t, s, a, r);
3753
3764
  }
3754
3765
  function Pr(e, t, [s, n, r], o, i) {
3755
- Cd(e, t[s], t[n], t[r], t.scale, o, i);
3766
+ Pd(e, t[s], t[n], t[r], t.scale, o, i);
3756
3767
  }
3757
- const Ad = ["x", "scaleX", "originX"], Pd = ["y", "scaleY", "originY"];
3768
+ const Nd = ["x", "scaleX", "originX"], Md = ["y", "scaleY", "originY"];
3758
3769
  function Nr(e, t, s, n) {
3759
- Pr(e.x, t, Ad, s ? s.x : void 0, n ? n.x : void 0), Pr(e.y, t, Pd, s ? s.y : void 0, n ? n.y : void 0);
3770
+ Pr(e.x, t, Nd, s ? s.x : void 0, n ? n.x : void 0), Pr(e.y, t, Md, s ? s.y : void 0, n ? n.y : void 0);
3760
3771
  }
3761
- function Er(e) {
3772
+ function Mr(e) {
3762
3773
  return e.translate === 0 && e.scale === 1;
3763
3774
  }
3764
3775
  function Yo(e) {
3765
- return Er(e.x) && Er(e.y);
3776
+ return Mr(e.x) && Mr(e.y);
3766
3777
  }
3767
- function Mr(e, t) {
3778
+ function Er(e, t) {
3768
3779
  return e.min === t.min && e.max === t.max;
3769
3780
  }
3770
- function Nd(e, t) {
3771
- return Mr(e.x, t.x) && Mr(e.y, t.y);
3781
+ function Ed(e, t) {
3782
+ return Er(e.x, t.x) && Er(e.y, t.y);
3772
3783
  }
3773
3784
  function Vr(e, t) {
3774
3785
  return Math.round(e.min) === Math.round(t.min) && Math.round(e.max) === Math.round(t.max);
@@ -3785,7 +3796,7 @@ function Dr(e, t) {
3785
3796
  function ve(e) {
3786
3797
  return [e("x"), e("y")];
3787
3798
  }
3788
- function Ed(e, t, s) {
3799
+ function Vd(e, t, s) {
3789
3800
  let n = "";
3790
3801
  const r = e.x.translate / t.x, o = e.y.translate / t.y, i = (s == null ? void 0 : s.z) || 0;
3791
3802
  if ((r || o || i) && (n = `translate3d(${r}px, ${o}px, ${i}px) `), (t.x !== 1 || t.y !== 1) && (n += `scale(${1 / t.x}, ${1 / t.y}) `), s) {
@@ -3800,10 +3811,10 @@ const Xo = [
3800
3811
  "borderTopRightRadius",
3801
3812
  "borderBottomLeftRadius",
3802
3813
  "borderBottomRightRadius"
3803
- ], Md = Xo.length, Lr = (e) => typeof e == "string" ? parseFloat(e) : e, Ir = (e) => typeof e == "number" || A.test(e);
3804
- function Vd(e, t, s, n, r, o) {
3805
- r ? (e.opacity = W(0, s.opacity ?? 1, Rd(n)), e.opacityExit = W(t.opacity ?? 1, 0, Dd(n))) : o && (e.opacity = W(t.opacity ?? 1, s.opacity ?? 1, n));
3806
- for (let i = 0; i < Md; i++) {
3814
+ ], Rd = Xo.length, Lr = (e) => typeof e == "string" ? parseFloat(e) : e, Ir = (e) => typeof e == "number" || A.test(e);
3815
+ function Dd(e, t, s, n, r, o) {
3816
+ r ? (e.opacity = W(0, s.opacity ?? 1, Ld(n)), e.opacityExit = W(t.opacity ?? 1, 0, Id(n))) : o && (e.opacity = W(t.opacity ?? 1, s.opacity ?? 1, n));
3817
+ for (let i = 0; i < Rd; i++) {
3807
3818
  const a = Xo[i];
3808
3819
  let c = Or(t, a), u = Or(s, a);
3809
3820
  if (c === void 0 && u === void 0)
@@ -3815,19 +3826,19 @@ function Vd(e, t, s, n, r, o) {
3815
3826
  function Or(e, t) {
3816
3827
  return e[t] !== void 0 ? e[t] : e.borderRadius;
3817
3828
  }
3818
- const Rd = /* @__PURE__ */ qo(0, 0.5, Fi), Dd = /* @__PURE__ */ qo(0.5, 0.95, me);
3829
+ const Ld = /* @__PURE__ */ qo(0, 0.5, Fi), Id = /* @__PURE__ */ qo(0.5, 0.95, me);
3819
3830
  function qo(e, t, s) {
3820
3831
  return (n) => n < e ? 0 : n > t ? 1 : s(/* @__PURE__ */ mt(e, t, n));
3821
3832
  }
3822
- function Ld(e, t, s) {
3833
+ function Od(e, t, s) {
3823
3834
  const n = oe(e) ? e : tt(e);
3824
3835
  return n.start(wn("", n, t, s)), n.animation;
3825
3836
  }
3826
3837
  function yt(e, t, s, n = { passive: !0 }) {
3827
3838
  return e.addEventListener(t, s, n), () => e.removeEventListener(t, s);
3828
3839
  }
3829
- const Id = (e, t) => e.depth - t.depth;
3830
- class Od {
3840
+ const zd = (e, t) => e.depth - t.depth;
3841
+ class Fd {
3831
3842
  constructor() {
3832
3843
  this.children = [], this.isDirty = !1;
3833
3844
  }
@@ -3838,10 +3849,10 @@ class Od {
3838
3849
  Yt(this.children, t), this.isDirty = !0;
3839
3850
  }
3840
3851
  forEach(t) {
3841
- this.isDirty && this.children.sort(Id), this.isDirty = !1, this.children.forEach(t);
3852
+ this.isDirty && this.children.sort(zd), this.isDirty = !1, this.children.forEach(t);
3842
3853
  }
3843
3854
  }
3844
- function zd(e, t) {
3855
+ function Bd(e, t) {
3845
3856
  const s = ce.now(), n = ({ timestamp: r }) => {
3846
3857
  const o = r - s;
3847
3858
  o >= t && (Le(n), e(o - t));
@@ -3851,7 +3862,7 @@ function zd(e, t) {
3851
3862
  function _t(e) {
3852
3863
  return oe(e) ? e.get() : e;
3853
3864
  }
3854
- class Fd {
3865
+ class _d {
3855
3866
  constructor() {
3856
3867
  this.members = [];
3857
3868
  }
@@ -3915,8 +3926,8 @@ const $t = {
3915
3926
  * update will be given a `data-projection-id` attribute.
3916
3927
  */
3917
3928
  hasEverUpdated: !1
3918
- }, bs = ["", "X", "Y", "Z"], Bd = 1e3;
3919
- let _d = 0;
3929
+ }, bs = ["", "X", "Y", "Z"], $d = 1e3;
3930
+ let Wd = 0;
3920
3931
  function vs(e, t, s, n) {
3921
3932
  const { latestValues: r } = t;
3922
3933
  r[e] && (s[e] = r[e], t.setStaticValue(e, 0), n && (n[e] = 0));
@@ -3938,14 +3949,14 @@ function Zo(e) {
3938
3949
  function Jo({ attachResizeListener: e, defaultParent: t, measureScroll: s, checkIsScrollRoot: n, resetTransform: r }) {
3939
3950
  return class {
3940
3951
  constructor(i = {}, a = t == null ? void 0 : t()) {
3941
- this.id = _d++, this.animationId = 0, this.animationCommitId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = { x: 1, y: 1 }, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.layoutVersion = 0, this.updateScheduled = !1, this.scheduleUpdate = () => this.update(), this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
3952
+ this.id = Wd++, this.animationId = 0, this.animationCommitId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = { x: 1, y: 1 }, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.layoutVersion = 0, this.updateScheduled = !1, this.scheduleUpdate = () => this.update(), this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
3942
3953
  this.isUpdating && (this.isUpdating = !1, this.clearAllSnapshots());
3943
3954
  }, this.updateProjection = () => {
3944
- this.projectionUpdateScheduled = !1, this.nodes.forEach(Ud), this.nodes.forEach(qd), this.nodes.forEach(Zd), this.nodes.forEach(Gd);
3955
+ this.projectionUpdateScheduled = !1, this.nodes.forEach(Kd), this.nodes.forEach(Jd), this.nodes.forEach(Qd), this.nodes.forEach(Yd);
3945
3956
  }, this.resolvedRelativeTargetAt = 0, this.linkedParentVersion = 0, this.hasProjected = !1, this.isVisible = !0, this.animationProgress = 0, this.sharedNodes = /* @__PURE__ */ new Map(), this.latestValues = i, this.root = a ? a.root || a : this, this.path = a ? [...a.path, a] : [], this.parent = a, this.depth = a ? a.depth + 1 : 0;
3946
3957
  for (let c = 0; c < this.path.length; c++)
3947
3958
  this.path[c].shouldResetTransform = !0;
3948
- this.root === this && (this.nodes = new Od());
3959
+ this.root === this && (this.nodes = new Fd());
3949
3960
  }
3950
3961
  addEventListener(i, a) {
3951
3962
  return this.eventHandlers.has(i) || this.eventHandlers.set(i, new cn()), this.eventHandlers.get(i).add(a);
@@ -3963,7 +3974,7 @@ function Jo({ attachResizeListener: e, defaultParent: t, measureScroll: s, check
3963
3974
  mount(i) {
3964
3975
  if (this.instance)
3965
3976
  return;
3966
- this.isSVG = An(i) && !Wu(i), this.instance = i;
3977
+ this.isSVG = An(i) && !Gu(i), this.instance = i;
3967
3978
  const { layoutId: a, layout: c, visualElement: u } = this.options;
3968
3979
  if (u && !u.current && u.mount(i), this.root.nodes.add(this), this.parent && this.parent.children.add(this), this.root.hasTreeAnimated && (c || a) && (this.isLayoutDirty = !0), e) {
3969
3980
  let d, f = 0;
@@ -3972,7 +3983,7 @@ function Jo({ attachResizeListener: e, defaultParent: t, measureScroll: s, check
3972
3983
  f = window.innerWidth;
3973
3984
  }), e(i, () => {
3974
3985
  const m = window.innerWidth;
3975
- m !== f && (f = m, this.root.updateBlockedByResize = !0, d && d(), d = zd(h, 250), $t.hasAnimatedSinceResize && ($t.hasAnimatedSinceResize = !1, this.nodes.forEach(Br)));
3986
+ m !== f && (f = m, this.root.updateBlockedByResize = !0, d && d(), d = Bd(h, 250), $t.hasAnimatedSinceResize && ($t.hasAnimatedSinceResize = !1, this.nodes.forEach(Br)));
3976
3987
  });
3977
3988
  }
3978
3989
  a && this.root.registerSharedNode(a, this), this.options.animate !== !1 && u && (a || c) && this.addEventListener("didUpdate", ({ delta: d, hasLayoutChanged: f, hasRelativeLayoutChanged: h, layout: m }) => {
@@ -3980,7 +3991,7 @@ function Jo({ attachResizeListener: e, defaultParent: t, measureScroll: s, check
3980
3991
  this.target = void 0, this.relativeTarget = void 0;
3981
3992
  return;
3982
3993
  }
3983
- const g = this.options.transition || u.getDefaultTransition() || sf, { onLayoutAnimationStart: p, onLayoutAnimationComplete: y } = u.getProps(), k = !this.targetLayout || !Ho(this.targetLayout, m), v = !f && h;
3994
+ const g = this.options.transition || u.getDefaultTransition() || rf, { onLayoutAnimationStart: p, onLayoutAnimationComplete: y } = u.getProps(), k = !this.targetLayout || !Ho(this.targetLayout, m), v = !f && h;
3984
3995
  if (this.options.layoutRoot || this.resumeFrom || v || f && (k || !this.currentAnimation)) {
3985
3996
  this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0);
3986
3997
  const x = {
@@ -4014,7 +4025,7 @@ function Jo({ attachResizeListener: e, defaultParent: t, measureScroll: s, check
4014
4025
  }
4015
4026
  // Note: currently only running on root node
4016
4027
  startUpdate() {
4017
- this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(Jd), this.animationId++);
4028
+ this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(ef), this.animationId++);
4018
4029
  }
4019
4030
  getTransformTemplate() {
4020
4031
  const { visualElement: i } = this.options;
@@ -4041,14 +4052,14 @@ function Jo({ attachResizeListener: e, defaultParent: t, measureScroll: s, check
4041
4052
  update() {
4042
4053
  if (this.updateScheduled = !1, this.isUpdateBlocked()) {
4043
4054
  const c = this.updateBlockedByResize;
4044
- this.unblockUpdate(), this.updateBlockedByResize = !1, this.clearAllSnapshots(), c && this.nodes.forEach(Yd), this.nodes.forEach(zr);
4055
+ this.unblockUpdate(), this.updateBlockedByResize = !1, this.clearAllSnapshots(), c && this.nodes.forEach(Xd), this.nodes.forEach(zr);
4045
4056
  return;
4046
4057
  }
4047
4058
  if (this.animationId <= this.animationCommitId) {
4048
4059
  this.nodes.forEach(Fr);
4049
4060
  return;
4050
4061
  }
4051
- this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(Hd), this.nodes.forEach(Xd), this.nodes.forEach($d), this.nodes.forEach(Wd)) : this.nodes.forEach(Fr), this.clearAllSnapshots();
4062
+ this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(qd), this.nodes.forEach(Zd), this.nodes.forEach(Ud), this.nodes.forEach(Gd)) : this.nodes.forEach(Fr), this.clearAllSnapshots();
4052
4063
  const a = ce.now();
4053
4064
  ie.delta = je(0, 1e3 / 60, a - ie.timestamp), ie.timestamp = a, ie.isProcessing = !0, ds.update.process(ie), ds.preRender.process(ie), ds.render.process(ie), ie.isProcessing = !1;
4054
4065
  }
@@ -4056,7 +4067,7 @@ function Jo({ attachResizeListener: e, defaultParent: t, measureScroll: s, check
4056
4067
  this.updateScheduled || (this.updateScheduled = !0, Sn.read(this.scheduleUpdate));
4057
4068
  }
4058
4069
  clearAllSnapshots() {
4059
- this.nodes.forEach(Kd), this.sharedNodes.forEach(Qd);
4070
+ this.nodes.forEach(Hd), this.sharedNodes.forEach(tf);
4060
4071
  }
4061
4072
  scheduleUpdateProjection() {
4062
4073
  this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, F.preRender(this.updateProjection, !1, !0));
@@ -4100,12 +4111,12 @@ function Jo({ attachResizeListener: e, defaultParent: t, measureScroll: s, check
4100
4111
  if (!r)
4101
4112
  return;
4102
4113
  const i = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, a = this.projectionDelta && !Yo(this.projectionDelta), c = this.getTransformTemplate(), u = c ? c(this.latestValues, "") : void 0, d = u !== this.prevTransformTemplateValue;
4103
- i && this.instance && (a || Be(this.latestValues) || d) && (r(this.instance, u), this.shouldResetTransform = !1, this.scheduleRender());
4114
+ i && this.instance && (a || _e(this.latestValues) || d) && (r(this.instance, u), this.shouldResetTransform = !1, this.scheduleRender());
4104
4115
  }
4105
4116
  measure(i = !0) {
4106
4117
  const a = this.measurePageBox();
4107
4118
  let c = this.removeElementScroll(a);
4108
- return i && (c = this.removeTransform(c)), nf(c), {
4119
+ return i && (c = this.removeTransform(c)), of(c), {
4109
4120
  animationId: this.root.animationId,
4110
4121
  measuredBox: a,
4111
4122
  layoutBox: c,
@@ -4119,7 +4130,7 @@ function Jo({ attachResizeListener: e, defaultParent: t, measureScroll: s, check
4119
4130
  if (!i)
4120
4131
  return se();
4121
4132
  const a = i.measureViewportBox();
4122
- if (!(((u = this.scroll) == null ? void 0 : u.wasRoot) || this.path.some(rf))) {
4133
+ if (!(((u = this.scroll) == null ? void 0 : u.wasRoot) || this.path.some(af))) {
4123
4134
  const { scroll: d } = this.root;
4124
4135
  d && (we(a.x, d.offset.x), we(a.y, d.offset.y));
4125
4136
  }
@@ -4142,9 +4153,9 @@ function Jo({ attachResizeListener: e, defaultParent: t, measureScroll: s, check
4142
4153
  ge(u, i);
4143
4154
  for (let h = 0; h < this.path.length; h++) {
4144
4155
  const m = this.path[h];
4145
- !a && m.options.layoutScroll && m.scroll && m !== m.root && (we(u.x, -m.scroll.offset.x), we(u.y, -m.scroll.offset.y)), Be(m.latestValues) && Bt(u, m.latestValues, (d = m.layout) == null ? void 0 : d.layoutBox);
4156
+ !a && m.options.layoutScroll && m.scroll && m !== m.root && (we(u.x, -m.scroll.offset.x), we(u.y, -m.scroll.offset.y)), _e(m.latestValues) && Bt(u, m.latestValues, (d = m.layout) == null ? void 0 : d.layoutBox);
4146
4157
  }
4147
- return Be(this.latestValues) && Bt(u, this.latestValues, (f = this.layout) == null ? void 0 : f.layoutBox), u;
4158
+ return _e(this.latestValues) && Bt(u, this.latestValues, (f = this.layout) == null ? void 0 : f.layoutBox), u;
4148
4159
  }
4149
4160
  removeTransform(i) {
4150
4161
  var c;
@@ -4152,12 +4163,12 @@ function Jo({ attachResizeListener: e, defaultParent: t, measureScroll: s, check
4152
4163
  ge(a, i);
4153
4164
  for (let u = 0; u < this.path.length; u++) {
4154
4165
  const d = this.path[u];
4155
- if (!Be(d.latestValues))
4166
+ if (!_e(d.latestValues))
4156
4167
  continue;
4157
4168
  let f;
4158
4169
  d.instance && (Ys(d.latestValues) && d.updateSnapshot(), f = se(), ge(f, d.measurePageBox())), Nr(a, d.latestValues, (c = d.snapshot) == null ? void 0 : c.layoutBox, f);
4159
4170
  }
4160
- return Be(this.latestValues) && Nr(a, this.latestValues), a;
4171
+ return _e(this.latestValues) && Nr(a, this.latestValues), a;
4161
4172
  }
4162
4173
  setTargetDelta(i) {
4163
4174
  this.targetDelta = i, this.root.scheduleUpdateProjection(), this.isProjectionDirty = !0;
@@ -4187,7 +4198,7 @@ function Jo({ attachResizeListener: e, defaultParent: t, measureScroll: s, check
4187
4198
  return;
4188
4199
  this.resolvedRelativeTargetAt = ie.timestamp;
4189
4200
  const h = this.getClosestProjectingParent();
4190
- h && this.linkedParentVersion !== h.layoutVersion && !h.options.layoutRoot && this.removeRelativeTarget(), !this.targetDelta && !this.relativeTarget && (this.options.layoutAnchor !== !1 && h && h.layout ? this.createRelativeTarget(h, this.layout.layoutBox, h.layout.layoutBox) : this.removeRelativeTarget()), !(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = se(), this.targetWithTransforms = se()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Sd(this.target, this.relativeTarget, this.relativeParent.target, this.options.layoutAnchor || void 0)) : this.targetDelta ? (this.resumingFrom ? this.applyTransform(this.layout.layoutBox, !1, this.target) : ge(this.target, this.layout.layoutBox), Lo(this.target, this.targetDelta)) : ge(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, this.options.layoutAnchor !== !1 && h && !!h.resumingFrom == !!this.resumingFrom && !h.options.layoutScroll && h.target && this.animationProgress !== 1 ? this.createRelativeTarget(h, this.target, h.target) : this.relativeParent = this.relativeTarget = void 0));
4201
+ h && this.linkedParentVersion !== h.layoutVersion && !h.options.layoutRoot && this.removeRelativeTarget(), !this.targetDelta && !this.relativeTarget && (this.options.layoutAnchor !== !1 && h && h.layout ? this.createRelativeTarget(h, this.layout.layoutBox, h.layout.layoutBox) : this.removeRelativeTarget()), !(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = se(), this.targetWithTransforms = se()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Ad(this.target, this.relativeTarget, this.relativeParent.target, this.options.layoutAnchor || void 0)) : this.targetDelta ? (this.resumingFrom ? this.applyTransform(this.layout.layoutBox, !1, this.target) : ge(this.target, this.layout.layoutBox), Lo(this.target, this.targetDelta)) : ge(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, this.options.layoutAnchor !== !1 && h && !!h.resumingFrom == !!this.resumingFrom && !h.options.layoutScroll && h.target && this.animationProgress !== 1 ? this.createRelativeTarget(h, this.target, h.target) : this.relativeParent = this.relativeTarget = void 0));
4191
4202
  }
4192
4203
  getClosestProjectingParent() {
4193
4204
  if (!(!this.parent || Ys(this.parent.latestValues) || Do(this.parent.latestValues)))
@@ -4213,7 +4224,7 @@ function Jo({ attachResizeListener: e, defaultParent: t, measureScroll: s, check
4213
4224
  return;
4214
4225
  ge(this.layoutCorrected, this.layout.layoutBox);
4215
4226
  const f = this.treeScale.x, h = this.treeScale.y;
4216
- ed(this.layoutCorrected, this.treeScale, this.path, a), i.layout && !i.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (i.target = i.layout.layoutBox, i.targetWithTransforms = se());
4227
+ sd(this.layoutCorrected, this.treeScale, this.path, a), i.layout && !i.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (i.target = i.layout.layoutBox, i.targetWithTransforms = se());
4217
4228
  const { target: m } = i;
4218
4229
  if (!m) {
4219
4230
  this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
@@ -4241,18 +4252,18 @@ function Jo({ attachResizeListener: e, defaultParent: t, measureScroll: s, check
4241
4252
  setAnimationOrigin(i, a = !1) {
4242
4253
  const c = this.snapshot, u = c ? c.latestValues : {}, d = { ...this.latestValues }, f = Qe();
4243
4254
  (!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !a;
4244
- const h = se(), m = c ? c.source : void 0, g = this.layout ? this.layout.source : void 0, p = m !== g, y = this.getStack(), k = !y || y.members.length <= 1, v = !!(p && !k && this.options.crossfade === !0 && !this.path.some(tf));
4255
+ const h = se(), m = c ? c.source : void 0, g = this.layout ? this.layout.source : void 0, p = m !== g, y = this.getStack(), k = !y || y.members.length <= 1, v = !!(p && !k && this.options.crossfade === !0 && !this.path.some(nf));
4245
4256
  this.animationProgress = 0;
4246
4257
  let x;
4247
4258
  this.mixTargetDelta = (T) => {
4248
4259
  const j = T / 1e3;
4249
- _r(f.x, i.x, j), _r(f.y, i.y, j), this.setTargetDelta(f), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (es(h, this.layout.layoutBox, this.relativeParent.layout.layoutBox, this.options.layoutAnchor || void 0), ef(this.relativeTarget, this.relativeTargetOrigin, h, j), x && Nd(this.relativeTarget, x) && (this.isProjectionDirty = !1), x || (x = se()), ge(x, this.relativeTarget)), p && (this.animationValues = d, Vd(d, u, this.latestValues, j, v, k)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = j;
4260
+ _r(f.x, i.x, j), _r(f.y, i.y, j), this.setTargetDelta(f), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (es(h, this.layout.layoutBox, this.relativeParent.layout.layoutBox, this.options.layoutAnchor || void 0), sf(this.relativeTarget, this.relativeTargetOrigin, h, j), x && Ed(this.relativeTarget, x) && (this.isProjectionDirty = !1), x || (x = se()), ge(x, this.relativeTarget)), p && (this.animationValues = d, Dd(d, u, this.latestValues, j, v, k)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = j;
4250
4261
  }, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
4251
4262
  }
4252
4263
  startAnimation(i) {
4253
4264
  var a, c, u;
4254
4265
  this.notifyListeners("animationStart"), (a = this.currentAnimation) == null || a.stop(), (u = (c = this.resumingFrom) == null ? void 0 : c.currentAnimation) == null || u.stop(), this.pendingAnimation && (Le(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = F.update(() => {
4255
- $t.hasAnimatedSinceResize = !0, this.motionValue || (this.motionValue = tt(0)), this.motionValue.jump(0, !1), this.currentAnimation = Ld(this.motionValue, [0, 1e3], {
4266
+ $t.hasAnimatedSinceResize = !0, this.motionValue || (this.motionValue = tt(0)), this.motionValue.jump(0, !1), this.currentAnimation = Od(this.motionValue, [0, 1e3], {
4256
4267
  ...i,
4257
4268
  velocity: 0,
4258
4269
  isSync: !0,
@@ -4273,7 +4284,7 @@ function Jo({ attachResizeListener: e, defaultParent: t, measureScroll: s, check
4273
4284
  i && i.exitAnimationComplete(), this.resumingFrom = this.currentAnimation = this.animationValues = void 0, this.notifyListeners("animationComplete");
4274
4285
  }
4275
4286
  finishAnimation() {
4276
- this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(Bd), this.currentAnimation.stop()), this.completeAnimation();
4287
+ this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta($d), this.currentAnimation.stop()), this.completeAnimation();
4277
4288
  }
4278
4289
  applyTransformsToTarget() {
4279
4290
  const i = this.getLead();
@@ -4290,7 +4301,7 @@ function Jo({ attachResizeListener: e, defaultParent: t, measureScroll: s, check
4290
4301
  }
4291
4302
  }
4292
4303
  registerSharedNode(i, a) {
4293
- this.sharedNodes.has(i) || this.sharedNodes.set(i, new Fd()), this.sharedNodes.get(i).add(a);
4304
+ this.sharedNodes.has(i) || this.sharedNodes.set(i, new _d()), this.sharedNodes.get(i).add(a);
4294
4305
  const u = a.options.initialPromotionConfig;
4295
4306
  a.promote({
4296
4307
  transition: u ? u.transition : void 0,
@@ -4355,13 +4366,13 @@ function Jo({ attachResizeListener: e, defaultParent: t, measureScroll: s, check
4355
4366
  }
4356
4367
  const u = this.getLead();
4357
4368
  if (!this.projectionDelta || !this.layout || !u.target) {
4358
- this.options.layoutId && (i.opacity = this.latestValues.opacity !== void 0 ? this.latestValues.opacity : 1, i.pointerEvents = _t(a == null ? void 0 : a.pointerEvents) || ""), this.hasProjected && !Be(this.latestValues) && (i.transform = c ? c({}, "") : "none", this.hasProjected = !1);
4369
+ this.options.layoutId && (i.opacity = this.latestValues.opacity !== void 0 ? this.latestValues.opacity : 1, i.pointerEvents = _t(a == null ? void 0 : a.pointerEvents) || ""), this.hasProjected && !_e(this.latestValues) && (i.transform = c ? c({}, "") : "none", this.hasProjected = !1);
4359
4370
  return;
4360
4371
  }
4361
4372
  i.visibility = "";
4362
4373
  const d = u.animationValues || u.latestValues;
4363
4374
  this.applyTransformsToTarget();
4364
- let f = Ed(this.projectionDeltaWithTransform, this.treeScale, d);
4375
+ let f = Vd(this.projectionDeltaWithTransform, this.treeScale, d);
4365
4376
  c && (f = c(d, f)), i.transform = f;
4366
4377
  const { x: h, y: m } = this.projectionDelta;
4367
4378
  i.transformOrigin = `${h.origin * 100}% ${m.origin * 100}% 0`, u.animationValues ? i.opacity = u === this ? d.opacity ?? this.latestValues.opacity ?? 1 : this.preserveOpacity ? this.latestValues.opacity : d.opacityExit : i.opacity = u === this ? d.opacity !== void 0 ? d.opacity : "" : d.opacityExit !== void 0 ? d.opacityExit : 0;
@@ -4390,10 +4401,10 @@ function Jo({ attachResizeListener: e, defaultParent: t, measureScroll: s, check
4390
4401
  }
4391
4402
  };
4392
4403
  }
4393
- function $d(e) {
4404
+ function Ud(e) {
4394
4405
  e.updateLayout();
4395
4406
  }
4396
- function Wd(e) {
4407
+ function Gd(e) {
4397
4408
  var s;
4398
4409
  const t = ((s = e.resumeFrom) == null ? void 0 : s.snapshot) || e.snapshot;
4399
4410
  if (e.isLead() && e.layout && t && e.hasListeners("didUpdate")) {
@@ -4442,44 +4453,44 @@ function Wd(e) {
4442
4453
  }
4443
4454
  e.options.transition = void 0;
4444
4455
  }
4445
- function Ud(e) {
4456
+ function Kd(e) {
4446
4457
  e.parent && (e.isProjecting() || (e.isProjectionDirty = e.parent.isProjectionDirty), e.isSharedProjectionDirty || (e.isSharedProjectionDirty = !!(e.isProjectionDirty || e.parent.isProjectionDirty || e.parent.isSharedProjectionDirty)), e.isTransformDirty || (e.isTransformDirty = e.parent.isTransformDirty));
4447
4458
  }
4448
- function Gd(e) {
4459
+ function Yd(e) {
4449
4460
  e.isProjectionDirty = e.isSharedProjectionDirty = e.isTransformDirty = !1;
4450
4461
  }
4451
- function Kd(e) {
4462
+ function Hd(e) {
4452
4463
  e.clearSnapshot();
4453
4464
  }
4454
4465
  function zr(e) {
4455
4466
  e.clearMeasurements();
4456
4467
  }
4457
- function Yd(e) {
4468
+ function Xd(e) {
4458
4469
  e.isLayoutDirty = !0, e.updateLayout();
4459
4470
  }
4460
4471
  function Fr(e) {
4461
4472
  e.isLayoutDirty = !1;
4462
4473
  }
4463
- function Hd(e) {
4474
+ function qd(e) {
4464
4475
  e.isAnimationBlocked && e.layout && !e.isLayoutDirty && (e.snapshot = e.layout, e.isLayoutDirty = !0);
4465
4476
  }
4466
- function Xd(e) {
4477
+ function Zd(e) {
4467
4478
  const { visualElement: t } = e.options;
4468
4479
  t && t.getProps().onBeforeLayoutMeasure && t.notify("BeforeLayoutMeasure"), e.resetTransform();
4469
4480
  }
4470
4481
  function Br(e) {
4471
4482
  e.finishAnimation(), e.targetDelta = e.relativeTarget = e.target = void 0, e.isProjectionDirty = !0;
4472
4483
  }
4473
- function qd(e) {
4484
+ function Jd(e) {
4474
4485
  e.resolveTargetDelta();
4475
4486
  }
4476
- function Zd(e) {
4487
+ function Qd(e) {
4477
4488
  e.calcProjection();
4478
4489
  }
4479
- function Jd(e) {
4490
+ function ef(e) {
4480
4491
  e.resetSkewAndRotation();
4481
4492
  }
4482
- function Qd(e) {
4493
+ function tf(e) {
4483
4494
  e.removeLeadSnapshot();
4484
4495
  }
4485
4496
  function _r(e, t, s) {
@@ -4488,30 +4499,30 @@ function _r(e, t, s) {
4488
4499
  function $r(e, t, s, n) {
4489
4500
  e.min = W(t.min, s.min, n), e.max = W(t.max, s.max, n);
4490
4501
  }
4491
- function ef(e, t, s, n) {
4502
+ function sf(e, t, s, n) {
4492
4503
  $r(e.x, t.x, s.x, n), $r(e.y, t.y, s.y, n);
4493
4504
  }
4494
- function tf(e) {
4505
+ function nf(e) {
4495
4506
  return e.animationValues && e.animationValues.opacityExit !== void 0;
4496
4507
  }
4497
- const sf = {
4508
+ const rf = {
4498
4509
  duration: 0.45,
4499
4510
  ease: [0.4, 0, 0.1, 1]
4500
4511
  }, Wr = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), Ur = Wr("applewebkit/") && !Wr("chrome/") ? Math.round : me;
4501
4512
  function Gr(e) {
4502
4513
  e.min = Ur(e.min), e.max = Ur(e.max);
4503
4514
  }
4504
- function nf(e) {
4515
+ function of(e) {
4505
4516
  Gr(e.x), Gr(e.y);
4506
4517
  }
4507
4518
  function Qo(e, t, s) {
4508
- return e === "position" || e === "preserve-aspect" && !jd(Rr(t), Rr(s), 0.2);
4519
+ return e === "position" || e === "preserve-aspect" && !Cd(Rr(t), Rr(s), 0.2);
4509
4520
  }
4510
- function rf(e) {
4521
+ function af(e) {
4511
4522
  var t;
4512
4523
  return e !== e.root && ((t = e.scroll) == null ? void 0 : t.wasRoot);
4513
4524
  }
4514
- const of = Jo({
4525
+ const lf = Jo({
4515
4526
  attachResizeListener: (e, t) => yt(e, "resize", t),
4516
4527
  measureScroll: () => {
4517
4528
  var e, t;
@@ -4530,7 +4541,7 @@ const of = Jo({
4530
4541
  }),
4531
4542
  defaultParent: () => {
4532
4543
  if (!ws.current) {
4533
- const e = new of({});
4544
+ const e = new lf({});
4534
4545
  e.mount(window), e.setOptions({ layoutScroll: !0 }), ws.current = e;
4535
4546
  }
4536
4547
  return ws.current;
@@ -4549,7 +4560,7 @@ function Kr(e, t) {
4549
4560
  return e(t);
4550
4561
  e != null && (e.current = t);
4551
4562
  }
4552
- function af(...e) {
4563
+ function cf(...e) {
4553
4564
  return (t) => {
4554
4565
  let s = !1;
4555
4566
  const n = e.map((r) => {
@@ -4565,10 +4576,10 @@ function af(...e) {
4565
4576
  };
4566
4577
  };
4567
4578
  }
4568
- function lf(...e) {
4569
- return ns.useCallback(af(...e), e);
4579
+ function uf(...e) {
4580
+ return ns.useCallback(cf(...e), e);
4570
4581
  }
4571
- class cf extends ns.Component {
4582
+ class df extends ns.Component {
4572
4583
  getSnapshotBeforeUpdate(t) {
4573
4584
  const s = this.props.childRef.current;
4574
4585
  if (It(s) && t.isPresent && !this.props.isPresent && this.props.pop !== !1) {
@@ -4586,7 +4597,7 @@ class cf extends ns.Component {
4586
4597
  return this.props.children;
4587
4598
  }
4588
4599
  }
4589
- function uf({ children: e, isPresent: t, anchorX: s, anchorY: n, root: r, pop: o }) {
4600
+ function ff({ children: e, isPresent: t, anchorX: s, anchorY: n, root: r, pop: o }) {
4590
4601
  var h;
4591
4602
  const i = tn(), a = re(null), c = re({
4592
4603
  width: 0,
@@ -4595,7 +4606,7 @@ function uf({ children: e, isPresent: t, anchorX: s, anchorY: n, root: r, pop: o
4595
4606
  left: 0,
4596
4607
  right: 0,
4597
4608
  bottom: 0
4598
- }), { nonce: u } = ne(Vn), d = ((h = e.props) == null ? void 0 : h.ref) ?? (e == null ? void 0 : e.ref), f = lf(a, d);
4609
+ }), { nonce: u } = ne(Vn), d = ((h = e.props) == null ? void 0 : h.ref) ?? (e == null ? void 0 : e.ref), f = uf(a, d);
4599
4610
  return sn(() => {
4600
4611
  const { width: m, height: g, top: p, left: y, right: k, bottom: v } = c.current;
4601
4612
  if (t || o === !1 || !a.current || !m || !g)
@@ -4617,11 +4628,11 @@ function uf({ children: e, isPresent: t, anchorX: s, anchorY: n, root: r, pop: o
4617
4628
  var L;
4618
4629
  (L = a.current) == null || L.removeAttribute("data-motion-pop-id"), N.contains(j) && N.removeChild(j);
4619
4630
  };
4620
- }, [t]), l.jsx(cf, { isPresent: t, childRef: a, sizeRef: c, pop: o, children: o === !1 ? e : ns.cloneElement(e, { ref: f }) });
4631
+ }, [t]), l.jsx(df, { isPresent: t, childRef: a, sizeRef: c, pop: o, children: o === !1 ? e : ns.cloneElement(e, { ref: f }) });
4621
4632
  }
4622
- const df = ({ children: e, initial: t, isPresent: s, onExitComplete: n, custom: r, presenceAffectsLayout: o, mode: i, anchorX: a, anchorY: c, root: u }) => {
4623
- const d = an(ff), f = tn();
4624
- let h = !0, m = Ge(() => (h = !1, {
4633
+ const hf = ({ children: e, initial: t, isPresent: s, onExitComplete: n, custom: r, presenceAffectsLayout: o, mode: i, anchorX: a, anchorY: c, root: u }) => {
4634
+ const d = an(mf), f = tn();
4635
+ let h = !0, m = Ke(() => (h = !1, {
4625
4636
  id: f,
4626
4637
  initial: t,
4627
4638
  isPresent: s,
@@ -4635,13 +4646,13 @@ const df = ({ children: e, initial: t, isPresent: s, onExitComplete: n, custom:
4635
4646
  },
4636
4647
  register: (g) => (d.set(g, !1), () => d.delete(g))
4637
4648
  }), [s, d, n]);
4638
- return o && h && (m = { ...m }), Ge(() => {
4649
+ return o && h && (m = { ...m }), Ke(() => {
4639
4650
  d.forEach((g, p) => d.set(p, !1));
4640
4651
  }, [s]), ns.useEffect(() => {
4641
4652
  !s && !d.size && n && n();
4642
- }, [s]), e = l.jsx(uf, { pop: i === "popLayout", isPresent: s, anchorX: a, anchorY: c, root: u, children: e }), l.jsx(is.Provider, { value: m, children: e });
4653
+ }, [s]), e = l.jsx(ff, { pop: i === "popLayout", isPresent: s, anchorX: a, anchorY: c, root: u, children: e }), l.jsx(is.Provider, { value: m, children: e });
4643
4654
  };
4644
- function ff() {
4655
+ function mf() {
4645
4656
  return /* @__PURE__ */ new Map();
4646
4657
  }
4647
4658
  function ta(e = !0) {
@@ -4649,7 +4660,7 @@ function ta(e = !0) {
4649
4660
  if (t === null)
4650
4661
  return [!0, null];
4651
4662
  const { isPresent: s, onExitComplete: n, register: r } = t, o = tn();
4652
- Ke(() => {
4663
+ Ie(() => {
4653
4664
  if (e)
4654
4665
  return r(o);
4655
4666
  }, [e]);
@@ -4664,31 +4675,31 @@ function Yr(e) {
4664
4675
  }), t;
4665
4676
  }
4666
4677
  const fe = ({ children: e, custom: t, initial: s = !0, onExitComplete: n, presenceAffectsLayout: r = !0, mode: o = "sync", propagate: i = !1, anchorX: a = "left", anchorY: c = "top", root: u }) => {
4667
- const [d, f] = ta(i), h = Ge(() => Yr(e), [e]), m = i && !d ? [] : h.map(Nt), g = re(!0), p = re(h), y = an(() => /* @__PURE__ */ new Map()), k = re(/* @__PURE__ */ new Set()), [v, x] = z(h), [T, j] = z(h);
4678
+ const [d, f] = ta(i), h = Ke(() => Yr(e), [e]), m = i && !d ? [] : h.map(Nt), g = re(!0), p = re(h), y = an(() => /* @__PURE__ */ new Map()), k = re(/* @__PURE__ */ new Set()), [v, x] = O(h), [T, j] = O(h);
4668
4679
  Ai(() => {
4669
4680
  g.current = !1, p.current = h;
4670
4681
  for (let w = 0; w < T.length; w++) {
4671
- const E = Nt(T[w]);
4672
- m.includes(E) ? (y.delete(E), k.current.delete(E)) : y.get(E) !== !0 && y.set(E, !1);
4682
+ const M = Nt(T[w]);
4683
+ m.includes(M) ? (y.delete(M), k.current.delete(M)) : y.get(M) !== !0 && y.set(M, !1);
4673
4684
  }
4674
4685
  }, [T, m.length, m.join("-")]);
4675
4686
  const N = [];
4676
4687
  if (h !== v) {
4677
4688
  let w = [...h];
4678
- for (let E = 0; E < T.length; E++) {
4679
- const M = T[E], O = Nt(M);
4680
- m.includes(O) || (w.splice(E, 0, M), N.push(M));
4689
+ for (let M = 0; M < T.length; M++) {
4690
+ const E = T[M], z = Nt(E);
4691
+ m.includes(z) || (w.splice(M, 0, E), N.push(E));
4681
4692
  }
4682
4693
  return o === "wait" && N.length && (w = N), j(Yr(w)), x(h), null;
4683
4694
  }
4684
4695
  process.env.NODE_ENV !== "production" && o === "wait" && T.length > 1 && console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);
4685
4696
  const { forceRender: L } = ne(on);
4686
4697
  return l.jsx(l.Fragment, { children: T.map((w) => {
4687
- const E = Nt(w), M = i && !d ? !1 : h === T || m.includes(E), O = () => {
4688
- if (k.current.has(E))
4698
+ const M = Nt(w), E = i && !d ? !1 : h === T || m.includes(M), z = () => {
4699
+ if (k.current.has(M))
4689
4700
  return;
4690
- if (y.has(E))
4691
- k.current.add(E), y.set(E, !0);
4701
+ if (y.has(M))
4702
+ k.current.add(M), y.set(M, !0);
4692
4703
  else
4693
4704
  return;
4694
4705
  let B = !0;
@@ -4696,7 +4707,7 @@ const fe = ({ children: e, custom: t, initial: s = !0, onExitComplete: n, presen
4696
4707
  le || (B = !1);
4697
4708
  }), B && (L == null || L(), j(p.current), i && (f == null || f()), n && n());
4698
4709
  };
4699
- return l.jsx(df, { isPresent: M, initial: !g.current || s ? void 0 : !1, custom: t, presenceAffectsLayout: r, mode: o, root: u, onExitComplete: M ? void 0 : O, anchorX: a, anchorY: c, children: w }, E);
4710
+ return l.jsx(hf, { isPresent: E, initial: !g.current || s ? void 0 : !1, custom: t, presenceAffectsLayout: r, mode: o, root: u, onExitComplete: E ? void 0 : z, anchorX: a, anchorY: c, children: w }, M);
4700
4711
  }) });
4701
4712
  }, sa = Pe({ strict: !1 }), Hr = {
4702
4713
  animation: [
@@ -4719,7 +4730,7 @@ const fe = ({ children: e, custom: t, initial: s = !0, onExitComplete: n, presen
4719
4730
  layout: ["layout", "layoutId"]
4720
4731
  };
4721
4732
  let Xr = !1;
4722
- function hf() {
4733
+ function pf() {
4723
4734
  if (Xr)
4724
4735
  return;
4725
4736
  const e = {};
@@ -4727,21 +4738,21 @@ function hf() {
4727
4738
  e[t] = {
4728
4739
  isEnabled: (s) => Hr[t].some((n) => !!s[n])
4729
4740
  };
4730
- Mo(e), Xr = !0;
4741
+ Eo(e), Xr = !0;
4731
4742
  }
4732
4743
  function na() {
4733
- return hf(), qu();
4744
+ return pf(), Ju();
4734
4745
  }
4735
- function mf(e) {
4746
+ function gf(e) {
4736
4747
  const t = na();
4737
4748
  for (const s in e)
4738
4749
  t[s] = {
4739
4750
  ...t[s],
4740
4751
  ...e[s]
4741
4752
  };
4742
- Mo(t);
4753
+ Eo(t);
4743
4754
  }
4744
- const pf = /* @__PURE__ */ new Set([
4755
+ const yf = /* @__PURE__ */ new Set([
4745
4756
  "animate",
4746
4757
  "exit",
4747
4758
  "variants",
@@ -4775,17 +4786,17 @@ const pf = /* @__PURE__ */ new Set([
4775
4786
  "viewport"
4776
4787
  ]);
4777
4788
  function ts(e) {
4778
- return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") || pf.has(e);
4789
+ return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") || yf.has(e);
4779
4790
  }
4780
4791
  let ra = (e) => !ts(e);
4781
- function gf(e) {
4792
+ function xf(e) {
4782
4793
  typeof e == "function" && (ra = (t) => t.startsWith("on") ? !ts(t) : e(t));
4783
4794
  }
4784
4795
  try {
4785
- gf(require("@emotion/is-prop-valid").default);
4796
+ xf(require("@emotion/is-prop-valid").default);
4786
4797
  } catch {
4787
4798
  }
4788
- function yf(e, t, s) {
4799
+ function bf(e, t, s) {
4789
4800
  const n = {};
4790
4801
  for (const r in e)
4791
4802
  r === "values" && typeof e.values == "object" || oe(e[r]) || (ra(r) || s === !0 && ts(r) || !t && !ts(r) || // If trying to use native HTML drag events, forward drag listeners
@@ -4793,7 +4804,7 @@ function yf(e, t, s) {
4793
4804
  return n;
4794
4805
  }
4795
4806
  const cs = /* @__PURE__ */ Pe({});
4796
- function xf(e, t) {
4807
+ function vf(e, t) {
4797
4808
  if (ls(e)) {
4798
4809
  const { initial: s, animate: n } = e;
4799
4810
  return {
@@ -4803,9 +4814,9 @@ function xf(e, t) {
4803
4814
  }
4804
4815
  return e.inherit !== !1 ? t : {};
4805
4816
  }
4806
- function bf(e) {
4807
- const { initial: t, animate: s } = xf(e, ne(cs));
4808
- return Ge(() => ({ initial: t, animate: s }), [qr(t), qr(s)]);
4817
+ function wf(e) {
4818
+ const { initial: t, animate: s } = vf(e, ne(cs));
4819
+ return Ke(() => ({ initial: t, animate: s }), [qr(t), qr(s)]);
4809
4820
  }
4810
4821
  function qr(e) {
4811
4822
  return Array.isArray(e) ? e.join(" ") : e;
@@ -4820,26 +4831,26 @@ function ia(e, t, s) {
4820
4831
  for (const n in t)
4821
4832
  !oe(t[n]) && !zo(n, s) && (e[n] = t[n]);
4822
4833
  }
4823
- function vf({ transformTemplate: e }, t) {
4824
- return Ge(() => {
4834
+ function kf({ transformTemplate: e }, t) {
4835
+ return Ke(() => {
4825
4836
  const s = Rn();
4826
- return En(s, t, e), Object.assign({}, s.vars, s.style);
4837
+ return Mn(s, t, e), Object.assign({}, s.vars, s.style);
4827
4838
  }, [t]);
4828
4839
  }
4829
- function wf(e, t) {
4840
+ function Tf(e, t) {
4830
4841
  const s = e.style || {}, n = {};
4831
- return ia(n, s, e), Object.assign(n, vf(e, t)), n;
4842
+ return ia(n, s, e), Object.assign(n, kf(e, t)), n;
4832
4843
  }
4833
- function kf(e, t) {
4834
- const s = {}, n = wf(e, t);
4844
+ function jf(e, t) {
4845
+ const s = {}, n = Tf(e, t);
4835
4846
  return e.drag && e.dragListener !== !1 && (s.draggable = !1, n.userSelect = n.WebkitUserSelect = n.WebkitTouchCallout = "none", n.touchAction = e.drag === !0 ? "none" : `pan-${e.drag === "x" ? "y" : "x"}`), e.tabIndex === void 0 && (e.onTap || e.onTapStart || e.whileTap) && (s.tabIndex = 0), s.style = n, s;
4836
4847
  }
4837
4848
  const oa = () => ({
4838
4849
  ...Rn(),
4839
4850
  attrs: {}
4840
4851
  });
4841
- function Tf(e, t, s, n) {
4842
- const r = Ge(() => {
4852
+ function Sf(e, t, s, n) {
4853
+ const r = Ke(() => {
4843
4854
  const o = oa();
4844
4855
  return Fo(o, t, _o(n), e.transformTemplate, e.style), {
4845
4856
  ...o.attrs,
@@ -4852,7 +4863,7 @@ function Tf(e, t, s, n) {
4852
4863
  }
4853
4864
  return r;
4854
4865
  }
4855
- const jf = [
4866
+ const Cf = [
4856
4867
  "animate",
4857
4868
  "circle",
4858
4869
  "defs",
@@ -4892,27 +4903,27 @@ function Dn(e) {
4892
4903
  /**
4893
4904
  * If it's in our list of lowercase SVG tags, it's an SVG component
4894
4905
  */
4895
- !!(jf.indexOf(e) > -1 || /**
4906
+ !!(Cf.indexOf(e) > -1 || /**
4896
4907
  * If it contains a capital letter, it's an SVG component
4897
4908
  */
4898
4909
  /[A-Z]/u.test(e))
4899
4910
  )
4900
4911
  );
4901
4912
  }
4902
- function Sf(e, t, s, { latestValues: n }, r, o = !1, i) {
4903
- const c = (i ?? Dn(e) ? Tf : kf)(t, n, r, e), u = yf(t, typeof e == "string", o), d = e !== ki ? { ...u, ...c, ref: s } : {}, { children: f } = t, h = Ge(() => oe(f) ? f.get() : f, [f]);
4913
+ function Af(e, t, s, { latestValues: n }, r, o = !1, i) {
4914
+ const c = (i ?? Dn(e) ? Sf : jf)(t, n, r, e), u = bf(t, typeof e == "string", o), d = e !== ki ? { ...u, ...c, ref: s } : {}, { children: f } = t, h = Ke(() => oe(f) ? f.get() : f, [f]);
4904
4915
  return Ut(e, {
4905
4916
  ...d,
4906
4917
  children: h
4907
4918
  });
4908
4919
  }
4909
- function Cf({ scrapeMotionValuesFromProps: e, createRenderState: t }, s, n, r) {
4920
+ function Pf({ scrapeMotionValuesFromProps: e, createRenderState: t }, s, n, r) {
4910
4921
  return {
4911
- latestValues: Af(s, n, r, e),
4922
+ latestValues: Nf(s, n, r, e),
4912
4923
  renderState: t()
4913
4924
  };
4914
4925
  }
4915
- function Af(e, t, s, n) {
4926
+ function Nf(e, t, s, n) {
4916
4927
  const r = {}, o = n(e, {});
4917
4928
  for (const h in o)
4918
4929
  r[h] = _t(o[h]);
@@ -4944,16 +4955,16 @@ function Af(e, t, s, n) {
4944
4955
  return r;
4945
4956
  }
4946
4957
  const aa = (e) => (t, s) => {
4947
- const n = ne(cs), r = ne(is), o = () => Cf(e, t, n, r);
4958
+ const n = ne(cs), r = ne(is), o = () => Pf(e, t, n, r);
4948
4959
  return s ? o() : an(o);
4949
- }, Pf = /* @__PURE__ */ aa({
4950
- scrapeMotionValuesFromProps: Mn,
4960
+ }, Mf = /* @__PURE__ */ aa({
4961
+ scrapeMotionValuesFromProps: En,
4951
4962
  createRenderState: Rn
4952
- }), Nf = /* @__PURE__ */ aa({
4963
+ }), Ef = /* @__PURE__ */ aa({
4953
4964
  scrapeMotionValuesFromProps: $o,
4954
4965
  createRenderState: oa
4955
- }), Ef = Symbol.for("motionComponentSymbol");
4956
- function Mf(e, t, s) {
4966
+ }), Vf = Symbol.for("motionComponentSymbol");
4967
+ function Rf(e, t, s) {
4957
4968
  const n = re(s);
4958
4969
  sn(() => {
4959
4970
  n.current = s;
@@ -4976,7 +4987,7 @@ const la = Pe({});
4976
4987
  function Xe(e) {
4977
4988
  return e && typeof e == "object" && Object.prototype.hasOwnProperty.call(e, "current");
4978
4989
  }
4979
- function Vf(e, t, s, n, r, o) {
4990
+ function Df(e, t, s, n, r, o) {
4980
4991
  var x, T;
4981
4992
  const { visualElement: i } = ne(cs), a = ne(sa), c = ne(is), u = ne(Vn), d = u.reducedMotion, f = u.skipAnimations, h = re(null), m = re(!1);
4982
4993
  n = n || a.renderer, !h.current && n && (h.current = n(e, {
@@ -4990,7 +5001,7 @@ function Vf(e, t, s, n, r, o) {
4990
5001
  isSVG: o
4991
5002
  }), m.current && h.current && (h.current.manuallyAnimateOnMount = !0));
4992
5003
  const g = h.current, p = ne(la);
4993
- g && !g.projection && r && (g.type === "html" || g.type === "svg") && Rf(h.current, s, r, p);
5004
+ g && !g.projection && r && (g.type === "html" || g.type === "svg") && Lf(h.current, s, r, p);
4994
5005
  const y = re(!1);
4995
5006
  sn(() => {
4996
5007
  g && y.current && g.update(s, c);
@@ -4998,14 +5009,14 @@ function Vf(e, t, s, n, r, o) {
4998
5009
  const k = s[go], v = re(!!k && typeof window < "u" && !((x = window.MotionHandoffIsComplete) != null && x.call(window, k)) && ((T = window.MotionHasOptimisedAnimation) == null ? void 0 : T.call(window, k)));
4999
5010
  return Ai(() => {
5000
5011
  m.current = !0, g && (y.current = !0, window.MotionIsMounted = !0, g.updateFeatures(), g.scheduleRenderMicrotask(), v.current && g.animationState && g.animationState.animateChanges());
5001
- }), Ke(() => {
5012
+ }), Ie(() => {
5002
5013
  g && (!v.current && g.animationState && g.animationState.animateChanges(), v.current && (queueMicrotask(() => {
5003
5014
  var j;
5004
5015
  (j = window.MotionHandoffMarkAsComplete) == null || j.call(window, k);
5005
5016
  }), v.current = !1), g.enteringChildren = void 0);
5006
5017
  }), g;
5007
5018
  }
5008
- function Rf(e, t, s, n) {
5019
+ function Lf(e, t, s, n) {
5009
5020
  const { layoutId: r, layout: o, drag: i, dragConstraints: a, layoutScroll: c, layoutRoot: u, layoutAnchor: d, layoutCrossfade: f } = t;
5010
5021
  e.projection = new s(e.latestValues, t["data-framer-portal-id"] ? void 0 : ca(e.parent)), e.projection.setOptions({
5011
5022
  layoutId: r,
@@ -5032,38 +5043,38 @@ function ca(e) {
5032
5043
  return e.options.allowProjection !== !1 ? e.projection : ca(e.parent);
5033
5044
  }
5034
5045
  function ks(e, { forwardMotionProps: t = !1, type: s } = {}, n, r) {
5035
- n && mf(n);
5036
- const o = s ? s === "svg" : Dn(e), i = o ? Nf : Pf;
5046
+ n && gf(n);
5047
+ const o = s ? s === "svg" : Dn(e), i = o ? Ef : Mf;
5037
5048
  function a(u, d) {
5038
5049
  let f;
5039
5050
  const h = {
5040
5051
  ...ne(Vn),
5041
5052
  ...u,
5042
- layoutId: Df(u)
5043
- }, { isStatic: m } = h, g = bf(u), p = i(u, m);
5053
+ layoutId: If(u)
5054
+ }, { isStatic: m } = h, g = wf(u), p = i(u, m);
5044
5055
  if (!m && typeof window < "u") {
5045
- Lf(h, n);
5046
- const y = If(h);
5047
- f = y.MeasureLayout, g.visualElement = Vf(e, p, h, r, y.ProjectionNode, o);
5056
+ Of(h, n);
5057
+ const y = zf(h);
5058
+ f = y.MeasureLayout, g.visualElement = Df(e, p, h, r, y.ProjectionNode, o);
5048
5059
  }
5049
- return l.jsxs(cs.Provider, { value: g, children: [f && g.visualElement ? l.jsx(f, { visualElement: g.visualElement, ...h }) : null, Sf(e, u, Mf(p, g.visualElement, d), p, m, t, o)] });
5060
+ return l.jsxs(cs.Provider, { value: g, children: [f && g.visualElement ? l.jsx(f, { visualElement: g.visualElement, ...h }) : null, Af(e, u, Rf(p, g.visualElement, d), p, m, t, o)] });
5050
5061
  }
5051
5062
  a.displayName = `motion.${typeof e == "string" ? e : `create(${e.displayName ?? e.name ?? ""})`}`;
5052
5063
  const c = en(a);
5053
- return c[Ef] = e, c;
5064
+ return c[Vf] = e, c;
5054
5065
  }
5055
- function Df({ layoutId: e }) {
5066
+ function If({ layoutId: e }) {
5056
5067
  const t = ne(on).id;
5057
5068
  return t && e !== void 0 ? t + "-" + e : e;
5058
5069
  }
5059
- function Lf(e, t) {
5070
+ function Of(e, t) {
5060
5071
  const s = ne(sa).strict;
5061
5072
  if (process.env.NODE_ENV !== "production" && t && s) {
5062
5073
  const n = "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";
5063
5074
  e.ignoreStrict ? st(!1, n, "lazy-strict-mode") : Ae(!1, n, "lazy-strict-mode");
5064
5075
  }
5065
5076
  }
5066
- function If(e) {
5077
+ function zf(e) {
5067
5078
  const t = na(), { drag: s, layout: n } = t;
5068
5079
  if (!s && !n)
5069
5080
  return {};
@@ -5073,7 +5084,7 @@ function If(e) {
5073
5084
  ProjectionNode: r.ProjectionNode
5074
5085
  };
5075
5086
  }
5076
- function Of(e, t) {
5087
+ function Ff(e, t) {
5077
5088
  if (typeof Proxy > "u")
5078
5089
  return ks;
5079
5090
  const s = /* @__PURE__ */ new Map(), n = (o, i) => ks(o, i, e, t), r = (o, i) => (process.env.NODE_ENV !== "production" && un(!1, "motion() is deprecated. Use motion.create() instead."), n(o, i));
@@ -5086,17 +5097,17 @@ function Of(e, t) {
5086
5097
  get: (o, i) => i === "create" ? n : (s.has(i) || s.set(i, ks(i, void 0, e, t)), s.get(i))
5087
5098
  });
5088
5099
  }
5089
- const zf = (e, t) => t.isSVG ?? Dn(e) ? new hd(t) : new ad(t, {
5100
+ const Bf = (e, t) => t.isSVG ?? Dn(e) ? new pd(t) : new cd(t, {
5090
5101
  allowProjection: e !== ki
5091
5102
  });
5092
- class Ff extends Ie {
5103
+ class _f extends Oe {
5093
5104
  /**
5094
5105
  * We dynamically generate the AnimationState manager as it contains a reference
5095
5106
  * to the underlying animation library. We only want to load that if we load this,
5096
5107
  * so people can optionally code split it out using the `m` component.
5097
5108
  */
5098
5109
  constructor(t) {
5099
- super(t), t.animationState || (t.animationState = xd(t));
5110
+ super(t), t.animationState || (t.animationState = vd(t));
5100
5111
  }
5101
5112
  updateAnimationControlsSubscription() {
5102
5113
  const { animate: t } = this.node.getProps();
@@ -5117,10 +5128,10 @@ class Ff extends Ie {
5117
5128
  this.node.animationState.reset(), (t = this.unmountControls) == null || t.call(this);
5118
5129
  }
5119
5130
  }
5120
- let Bf = 0;
5121
- class _f extends Ie {
5131
+ let $f = 0;
5132
+ class Wf extends Oe {
5122
5133
  constructor() {
5123
- super(...arguments), this.id = Bf++, this.isExitComplete = !1;
5134
+ super(...arguments), this.id = $f++, this.isExitComplete = !1;
5124
5135
  }
5125
5136
  update() {
5126
5137
  var o;
@@ -5133,7 +5144,7 @@ class _f extends Ie {
5133
5144
  if (this.isExitComplete) {
5134
5145
  const { initial: i, custom: a } = this.node.getProps();
5135
5146
  if (typeof i == "string") {
5136
- const c = Ue(this.node, i, a);
5147
+ const c = Ge(this.node, i, a);
5137
5148
  if (c) {
5138
5149
  const { transition: u, transitionEnd: d, ...f } = c;
5139
5150
  for (const h in f)
@@ -5158,12 +5169,12 @@ class _f extends Ie {
5158
5169
  unmount() {
5159
5170
  }
5160
5171
  }
5161
- const $f = {
5172
+ const Uf = {
5162
5173
  animation: {
5163
- Feature: Ff
5174
+ Feature: _f
5164
5175
  },
5165
5176
  exit: {
5166
- Feature: _f
5177
+ Feature: Wf
5167
5178
  }
5168
5179
  };
5169
5180
  function wt(e) {
@@ -5174,12 +5185,12 @@ function wt(e) {
5174
5185
  }
5175
5186
  };
5176
5187
  }
5177
- const Wf = (e) => (t) => Cn(t) && e(t, wt(t));
5188
+ const Gf = (e) => (t) => Cn(t) && e(t, wt(t));
5178
5189
  function ht(e, t, s, n) {
5179
- return yt(e, t, Wf(s), n);
5190
+ return yt(e, t, Gf(s), n);
5180
5191
  }
5181
5192
  const ua = ({ current: e }) => e ? e.ownerDocument.defaultView : null, Zr = (e, t) => Math.abs(e - t);
5182
- function Uf(e, t) {
5193
+ function Kf(e, t) {
5183
5194
  const s = Zr(e.x, t.x), n = Zr(e.y, t.y);
5184
5195
  return Math.sqrt(s ** 2 + n ** 2);
5185
5196
  }
@@ -5193,8 +5204,8 @@ class da {
5193
5204
  }, this.updatePoint = () => {
5194
5205
  if (!(this.lastMoveEvent && this.lastMoveEventInfo))
5195
5206
  return;
5196
- this.lastRawMoveEventInfo && (this.lastMoveEventInfo = Et(this.lastRawMoveEventInfo, this.transformPagePoint));
5197
- const m = Ts(this.lastMoveEventInfo, this.history), g = this.startEvent !== null, p = Uf(m.offset, { x: 0, y: 0 }) >= this.distanceThreshold;
5207
+ this.lastRawMoveEventInfo && (this.lastMoveEventInfo = Mt(this.lastRawMoveEventInfo, this.transformPagePoint));
5208
+ const m = Ts(this.lastMoveEventInfo, this.history), g = this.startEvent !== null, p = Kf(m.offset, { x: 0, y: 0 }) >= this.distanceThreshold;
5198
5209
  if (!g && !p)
5199
5210
  return;
5200
5211
  const { point: y } = m, { timestamp: k } = ie;
@@ -5202,18 +5213,18 @@ class da {
5202
5213
  const { onStart: v, onMove: x } = this.handlers;
5203
5214
  g || (v && v(this.lastMoveEvent, m), this.startEvent = this.lastMoveEvent), x && x(this.lastMoveEvent, m);
5204
5215
  }, this.handlePointerMove = (m, g) => {
5205
- this.lastMoveEvent = m, this.lastRawMoveEventInfo = g, this.lastMoveEventInfo = Et(g, this.transformPagePoint), F.update(this.updatePoint, !0);
5216
+ this.lastMoveEvent = m, this.lastRawMoveEventInfo = g, this.lastMoveEventInfo = Mt(g, this.transformPagePoint), F.update(this.updatePoint, !0);
5206
5217
  }, this.handlePointerUp = (m, g) => {
5207
5218
  this.end();
5208
5219
  const { onEnd: p, onSessionEnd: y, resumeAnimation: k } = this.handlers;
5209
5220
  if ((this.dragSnapToOrigin || !this.startEvent) && k && k(), !(this.lastMoveEvent && this.lastMoveEventInfo))
5210
5221
  return;
5211
- const v = Ts(m.type === "pointercancel" ? this.lastMoveEventInfo : Et(g, this.transformPagePoint), this.history);
5222
+ const v = Ts(m.type === "pointercancel" ? this.lastMoveEventInfo : Mt(g, this.transformPagePoint), this.history);
5212
5223
  this.startEvent && p && p(m, v), y && y(m, v);
5213
5224
  }, !Cn(t))
5214
5225
  return;
5215
5226
  this.dragSnapToOrigin = o, this.handlers = s, this.transformPagePoint = n, this.distanceThreshold = i, this.contextWindow = r || window;
5216
- const c = wt(t), u = Et(c, this.transformPagePoint), { point: d } = u, { timestamp: f } = ie;
5227
+ const c = wt(t), u = Mt(c, this.transformPagePoint), { point: d } = u, { timestamp: f } = ie;
5217
5228
  this.history = [{ ...d, timestamp: f }];
5218
5229
  const { onSessionStart: h } = s;
5219
5230
  h && h(t, Ts(u, this.history)), this.removeListeners = xt(ht(this.contextWindow, "pointermove", this.handlePointerMove), ht(this.contextWindow, "pointerup", this.handlePointerUp), ht(this.contextWindow, "pointercancel", this.handlePointerUp)), a && this.startScrollTracking(a);
@@ -5264,7 +5275,7 @@ class da {
5264
5275
  this.removeListeners && this.removeListeners(), this.removeScrollListeners && this.removeScrollListeners(), this.scrollPositions.clear(), Le(this.updatePoint);
5265
5276
  }
5266
5277
  }
5267
- function Et(e, t) {
5278
+ function Mt(e, t) {
5268
5279
  return t ? { point: t(e.point) } : e;
5269
5280
  }
5270
5281
  function Qr(e, t) {
@@ -5274,17 +5285,17 @@ function Ts({ point: e }, t) {
5274
5285
  return {
5275
5286
  point: e,
5276
5287
  delta: Qr(e, fa(t)),
5277
- offset: Qr(e, Gf(t)),
5278
- velocity: Kf(t, 0.1)
5288
+ offset: Qr(e, Yf(t)),
5289
+ velocity: Hf(t, 0.1)
5279
5290
  };
5280
5291
  }
5281
- function Gf(e) {
5292
+ function Yf(e) {
5282
5293
  return e[0];
5283
5294
  }
5284
5295
  function fa(e) {
5285
5296
  return e[e.length - 1];
5286
5297
  }
5287
- function Kf(e, t) {
5298
+ function Hf(e, t) {
5288
5299
  if (e.length < 2)
5289
5300
  return { x: 0, y: 0 };
5290
5301
  let s = e.length - 1, n = null;
@@ -5303,7 +5314,7 @@ function Kf(e, t) {
5303
5314
  };
5304
5315
  return i.x === 1 / 0 && (i.x = 0), i.y === 1 / 0 && (i.y = 0), i;
5305
5316
  }
5306
- function Yf(e, { min: t, max: s }, n) {
5317
+ function Xf(e, { min: t, max: s }, n) {
5307
5318
  return t !== void 0 && e < t ? e = n ? W(t, e, n.min) : Math.max(e, t) : s !== void 0 && e > s && (e = n ? W(s, e, n.max) : Math.min(e, s)), e;
5308
5319
  }
5309
5320
  function ei(e, t, s) {
@@ -5312,7 +5323,7 @@ function ei(e, t, s) {
5312
5323
  max: s !== void 0 ? e.max + s - (e.max - e.min) : void 0
5313
5324
  };
5314
5325
  }
5315
- function Hf(e, { top: t, left: s, bottom: n, right: r }) {
5326
+ function qf(e, { top: t, left: s, bottom: n, right: r }) {
5316
5327
  return {
5317
5328
  x: ei(e.x, s, r),
5318
5329
  y: ei(e.y, t, n)
@@ -5322,23 +5333,23 @@ function ti(e, t) {
5322
5333
  let s = t.min - e.min, n = t.max - e.max;
5323
5334
  return t.max - t.min < e.max - e.min && ([s, n] = [n, s]), { min: s, max: n };
5324
5335
  }
5325
- function Xf(e, t) {
5336
+ function Zf(e, t) {
5326
5337
  return {
5327
5338
  x: ti(e.x, t.x),
5328
5339
  y: ti(e.y, t.y)
5329
5340
  };
5330
5341
  }
5331
- function qf(e, t) {
5342
+ function Jf(e, t) {
5332
5343
  let s = 0.5;
5333
5344
  const n = ue(e), r = ue(t);
5334
5345
  return r > n ? s = /* @__PURE__ */ mt(t.min, t.max - n, e.min) : n > r && (s = /* @__PURE__ */ mt(e.min, e.max - r, t.min)), je(0, 1, s);
5335
5346
  }
5336
- function Zf(e, t) {
5347
+ function Qf(e, t) {
5337
5348
  const s = {};
5338
5349
  return t.min !== void 0 && (s.min = t.min - e.min), t.max !== void 0 && (s.max = t.max - e.min), s;
5339
5350
  }
5340
5351
  const Zs = 0.35;
5341
- function Jf(e = Zs) {
5352
+ function eh(e = Zs) {
5342
5353
  return e === !1 ? e = 0 : e === !0 && (e = Zs), {
5343
5354
  x: si(e, "left", "right"),
5344
5355
  y: si(e, "top", "bottom")
@@ -5353,8 +5364,8 @@ function si(e, t, s) {
5353
5364
  function ni(e, t) {
5354
5365
  return typeof e == "number" ? e : e[t] || 0;
5355
5366
  }
5356
- const Qf = /* @__PURE__ */ new WeakMap();
5357
- class eh {
5367
+ const th = /* @__PURE__ */ new WeakMap();
5368
+ class sh {
5358
5369
  constructor(t) {
5359
5370
  this.openDragLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = { x: 0, y: 0 }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = se(), this.latestPointerEvent = null, this.latestPanInfo = null, this.visualElement = t;
5360
5371
  }
@@ -5366,7 +5377,7 @@ class eh {
5366
5377
  s && this.snapToCursor(wt(f).point), this.stopAnimation();
5367
5378
  }, i = (f, h) => {
5368
5379
  const { drag: m, dragPropagation: g, onDragStart: p } = this.getProps();
5369
- if (m && !g && (this.openDragLock && this.openDragLock(), this.openDragLock = Cu(m), !this.openDragLock))
5380
+ if (m && !g && (this.openDragLock && this.openDragLock(), this.openDragLock = Pu(m), !this.openDragLock))
5370
5381
  return;
5371
5382
  this.latestPointerEvent = f, this.latestPanInfo = h, this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), ve((k) => {
5372
5383
  let v = this.getAxisMotionValue(k).get() || 0;
@@ -5388,7 +5399,7 @@ class eh {
5388
5399
  return;
5389
5400
  const { offset: k } = h;
5390
5401
  if (g && this.currentDirection === null) {
5391
- this.currentDirection = sh(k), this.currentDirection !== null && p && p(this.currentDirection);
5402
+ this.currentDirection = rh(k), this.currentDirection !== null && p && p(this.currentDirection);
5392
5403
  return;
5393
5404
  }
5394
5405
  this.updateAxis("x", h.point, k), this.updateAxis("y", h.point, k), this.visualElement.render(), y && F.update(() => y(f, h), !1, !0);
@@ -5445,17 +5456,17 @@ class eh {
5445
5456
  }
5446
5457
  updateAxis(t, s, n) {
5447
5458
  const { drag: r } = this.getProps();
5448
- if (!n || !Mt(t, r, this.currentDirection))
5459
+ if (!n || !Et(t, r, this.currentDirection))
5449
5460
  return;
5450
5461
  const o = this.getAxisMotionValue(t);
5451
5462
  let i = this.originPoint[t] + n[t];
5452
- this.constraints && this.constraints[t] && (i = Yf(i, this.constraints[t], this.elastic[t])), o.set(i);
5463
+ this.constraints && this.constraints[t] && (i = Xf(i, this.constraints[t], this.elastic[t])), o.set(i);
5453
5464
  }
5454
5465
  resolveConstraints() {
5455
5466
  var o;
5456
5467
  const { dragConstraints: t, dragElastic: s } = this.getProps(), n = this.visualElement.projection && !this.visualElement.projection.layout ? this.visualElement.projection.measure(!1) : (o = this.visualElement.projection) == null ? void 0 : o.layout, r = this.constraints;
5457
- t && Xe(t) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : t && n ? this.constraints = Hf(n.layoutBox, t) : this.constraints = !1, this.elastic = Jf(s), r !== this.constraints && !Xe(t) && n && this.constraints && !this.hasMutatedConstraints && ve((i) => {
5458
- this.constraints !== !1 && this.getAxisMotionValue(i) && (this.constraints[i] = Zf(n.layoutBox[i], this.constraints[i]));
5468
+ t && Xe(t) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : t && n ? this.constraints = qf(n.layoutBox, t) : this.constraints = !1, this.elastic = eh(s), r !== this.constraints && !Xe(t) && n && this.constraints && !this.hasMutatedConstraints && ve((i) => {
5469
+ this.constraints !== !1 && this.getAxisMotionValue(i) && (this.constraints[i] = Qf(n.layoutBox[i], this.constraints[i]));
5459
5470
  });
5460
5471
  }
5461
5472
  resolveRefConstraints() {
@@ -5467,17 +5478,17 @@ class eh {
5467
5478
  const { projection: r } = this.visualElement;
5468
5479
  if (!r || !r.layout)
5469
5480
  return !1;
5470
- const o = td(n, r.root, this.visualElement.getTransformPagePoint());
5471
- let i = Xf(r.layout.layoutBox, o);
5481
+ const o = nd(n, r.root, this.visualElement.getTransformPagePoint());
5482
+ let i = Zf(r.layout.layoutBox, o);
5472
5483
  if (s) {
5473
- const a = s(Ju(i));
5484
+ const a = s(ed(i));
5474
5485
  this.hasMutatedConstraints = !!a, a && (i = Ro(a));
5475
5486
  }
5476
5487
  return i;
5477
5488
  }
5478
5489
  startAnimation(t) {
5479
5490
  const { drag: s, dragMomentum: n, dragElastic: r, dragTransition: o, dragSnapToOrigin: i, onDragTransitionEnd: a } = this.getProps(), c = this.constraints || {}, u = ve((d) => {
5480
- if (!Mt(d, s, this.currentDirection))
5491
+ if (!Et(d, s, this.currentDirection))
5481
5492
  return;
5482
5493
  let f = c && c[d] || {};
5483
5494
  (i === !0 || i === d) && (f = { min: 0, max: 0 });
@@ -5516,7 +5527,7 @@ class eh {
5516
5527
  snapToCursor(t) {
5517
5528
  ve((s) => {
5518
5529
  const { drag: n } = this.getProps();
5519
- if (!Mt(s, n, this.currentDirection))
5530
+ if (!Et(s, n, this.currentDirection))
5520
5531
  return;
5521
5532
  const { projection: r } = this.visualElement, o = this.getAxisMotionValue(s);
5522
5533
  if (r && r.layout) {
@@ -5542,12 +5553,12 @@ class eh {
5542
5553
  const a = this.getAxisMotionValue(i);
5543
5554
  if (a && this.constraints !== !1) {
5544
5555
  const c = a.get();
5545
- r[i] = qf({ min: c, max: c }, this.constraints[i]);
5556
+ r[i] = Jf({ min: c, max: c }, this.constraints[i]);
5546
5557
  }
5547
5558
  });
5548
5559
  const { transformTemplate: o } = this.visualElement.getProps();
5549
5560
  this.visualElement.current.style.transform = o ? o({}, "") : "none", n.root && n.root.updateScroll(), n.updateLayout(), this.constraints = !1, this.resolveConstraints(), ve((i) => {
5550
- if (!Mt(i, t, null))
5561
+ if (!Et(i, t, null))
5551
5562
  return;
5552
5563
  const a = this.getAxisMotionValue(i), { min: c, max: u } = this.constraints[i];
5553
5564
  a.set(W(c, u, r[i]));
@@ -5556,15 +5567,15 @@ class eh {
5556
5567
  addListeners() {
5557
5568
  if (!this.visualElement.current)
5558
5569
  return;
5559
- Qf.set(this.visualElement, this);
5570
+ th.set(this.visualElement, this);
5560
5571
  const t = this.visualElement.current, s = ht(t, "pointerdown", (u) => {
5561
- const { drag: d, dragListener: f = !0 } = this.getProps(), h = u.target, m = h !== t && Vu(h);
5572
+ const { drag: d, dragListener: f = !0 } = this.getProps(), h = u.target, m = h !== t && Du(h);
5562
5573
  d && f && !m && this.start(u);
5563
5574
  });
5564
5575
  let n;
5565
5576
  const r = () => {
5566
5577
  const { dragConstraints: u } = this.getProps();
5567
- Xe(u) && u.current && (this.constraints = this.resolveRefConstraints(), n || (n = th(t, u.current, () => this.scalePositionWithinConstraints())));
5578
+ Xe(u) && u.current && (this.constraints = this.resolveRefConstraints(), n || (n = nh(t, u.current, () => this.scalePositionWithinConstraints())));
5568
5579
  }, { projection: o } = this.visualElement, i = o.addEventListener("measure", r);
5569
5580
  o && !o.layout && (o.root && o.root.updateScroll(), o.updateLayout()), F.read(r);
5570
5581
  const a = yt(window, "resize", () => this.scalePositionWithinConstraints()), c = o.addEventListener("didUpdate", (({ delta: u, hasLayoutChanged: d }) => {
@@ -5600,22 +5611,22 @@ function ri(e) {
5600
5611
  e();
5601
5612
  };
5602
5613
  }
5603
- function th(e, t, s) {
5614
+ function nh(e, t, s) {
5604
5615
  const n = dr(e, ri(s)), r = dr(t, ri(s));
5605
5616
  return () => {
5606
5617
  n(), r();
5607
5618
  };
5608
5619
  }
5609
- function Mt(e, t, s) {
5620
+ function Et(e, t, s) {
5610
5621
  return (t === !0 || t === e) && (s === null || s === e);
5611
5622
  }
5612
- function sh(e, t = 10) {
5623
+ function rh(e, t = 10) {
5613
5624
  let s = null;
5614
5625
  return Math.abs(e.y) > t ? s = "y" : Math.abs(e.x) > t && (s = "x"), s;
5615
5626
  }
5616
- class nh extends Ie {
5627
+ class ih extends Oe {
5617
5628
  constructor(t) {
5618
- super(t), this.removeGroupControls = me, this.removeListeners = me, this.controls = new eh(t);
5629
+ super(t), this.removeGroupControls = me, this.removeListeners = me, this.controls = new sh(t);
5619
5630
  }
5620
5631
  mount() {
5621
5632
  const { dragControls: t } = this.node.getProps();
@@ -5632,7 +5643,7 @@ class nh extends Ie {
5632
5643
  const js = (e) => (t, s) => {
5633
5644
  e && F.update(() => e(t, s), !1, !0);
5634
5645
  };
5635
- class rh extends Ie {
5646
+ class oh extends Oe {
5636
5647
  constructor() {
5637
5648
  super(...arguments), this.removePointerDownListener = me;
5638
5649
  }
@@ -5664,7 +5675,7 @@ class rh extends Ie {
5664
5675
  }
5665
5676
  }
5666
5677
  let Ss = !1;
5667
- class ih extends La {
5678
+ class ah extends La {
5668
5679
  /**
5669
5680
  * This only mounts projection nodes for components that
5670
5681
  * need measuring, we might want to do it for all components
@@ -5710,14 +5721,14 @@ class ih extends La {
5710
5721
  }
5711
5722
  function ha(e) {
5712
5723
  const [t, s] = ta(), n = ne(on);
5713
- return l.jsx(ih, { ...e, layoutGroup: n, switchLayoutGroup: ne(la), isPresent: t, safeToRemove: s });
5724
+ return l.jsx(ah, { ...e, layoutGroup: n, switchLayoutGroup: ne(la), isPresent: t, safeToRemove: s });
5714
5725
  }
5715
- const oh = {
5726
+ const lh = {
5716
5727
  pan: {
5717
- Feature: rh
5728
+ Feature: oh
5718
5729
  },
5719
5730
  drag: {
5720
- Feature: nh,
5731
+ Feature: ih,
5721
5732
  ProjectionNode: ea,
5722
5733
  MeasureLayout: ha
5723
5734
  }
@@ -5728,15 +5739,15 @@ function ii(e, t, s) {
5728
5739
  const r = "onHover" + s, o = n[r];
5729
5740
  o && F.postRender(() => o(t, wt(t)));
5730
5741
  }
5731
- class ah extends Ie {
5742
+ class ch extends Oe {
5732
5743
  mount() {
5733
5744
  const { current: t } = this.node;
5734
- t && (this.unmount = Pu(t, (s, n) => (ii(this.node, n, "Start"), (r) => ii(this.node, r, "End"))));
5745
+ t && (this.unmount = Mu(t, (s, n) => (ii(this.node, n, "Start"), (r) => ii(this.node, r, "End"))));
5735
5746
  }
5736
5747
  unmount() {
5737
5748
  }
5738
5749
  }
5739
- class lh extends Ie {
5750
+ class uh extends Oe {
5740
5751
  constructor() {
5741
5752
  super(...arguments), this.isActive = !1;
5742
5753
  }
@@ -5766,13 +5777,13 @@ function oi(e, t, s) {
5766
5777
  const r = "onTap" + (s === "End" ? "" : s), o = n[r];
5767
5778
  o && F.postRender(() => o(t, wt(t)));
5768
5779
  }
5769
- class ch extends Ie {
5780
+ class dh extends Oe {
5770
5781
  mount() {
5771
5782
  const { current: t } = this.node;
5772
5783
  if (!t)
5773
5784
  return;
5774
5785
  const { globalTapTarget: s, propagate: n } = this.node.props;
5775
- this.unmount = Du(t, (r, o) => (oi(this.node, o, "Start"), (i, { success: a }) => oi(this.node, i, a ? "End" : "Cancel")), {
5786
+ this.unmount = Iu(t, (r, o) => (oi(this.node, o, "Start"), (i, { success: a }) => oi(this.node, i, a ? "End" : "Cancel")), {
5776
5787
  useGlobalTarget: s,
5777
5788
  stopPropagation: (n == null ? void 0 : n.tap) === !1
5778
5789
  });
@@ -5780,29 +5791,29 @@ class ch extends Ie {
5780
5791
  unmount() {
5781
5792
  }
5782
5793
  }
5783
- const Js = /* @__PURE__ */ new WeakMap(), Cs = /* @__PURE__ */ new WeakMap(), uh = (e) => {
5794
+ const Js = /* @__PURE__ */ new WeakMap(), Cs = /* @__PURE__ */ new WeakMap(), fh = (e) => {
5784
5795
  const t = Js.get(e.target);
5785
5796
  t && t(e);
5786
- }, dh = (e) => {
5787
- e.forEach(uh);
5797
+ }, hh = (e) => {
5798
+ e.forEach(fh);
5788
5799
  };
5789
- function fh({ root: e, ...t }) {
5800
+ function mh({ root: e, ...t }) {
5790
5801
  const s = e || document;
5791
5802
  Cs.has(s) || Cs.set(s, {});
5792
5803
  const n = Cs.get(s), r = JSON.stringify(t);
5793
- return n[r] || (n[r] = new IntersectionObserver(dh, { root: e, ...t })), n[r];
5804
+ return n[r] || (n[r] = new IntersectionObserver(hh, { root: e, ...t })), n[r];
5794
5805
  }
5795
- function hh(e, t, s) {
5796
- const n = fh(t);
5806
+ function ph(e, t, s) {
5807
+ const n = mh(t);
5797
5808
  return Js.set(e, s), n.observe(e), () => {
5798
5809
  Js.delete(e), n.unobserve(e);
5799
5810
  };
5800
5811
  }
5801
- const mh = {
5812
+ const gh = {
5802
5813
  some: 0,
5803
5814
  all: 1
5804
5815
  };
5805
- class ph extends Ie {
5816
+ class yh extends Oe {
5806
5817
  constructor() {
5807
5818
  super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
5808
5819
  }
@@ -5812,7 +5823,7 @@ class ph extends Ie {
5812
5823
  const { viewport: t = {} } = this.node.getProps(), { root: s, margin: n, amount: r = "some", once: o } = t, i = {
5813
5824
  root: s ? s.current : void 0,
5814
5825
  rootMargin: n,
5815
- threshold: typeof r == "number" ? r : mh[r]
5826
+ threshold: typeof r == "number" ? r : gh[r]
5816
5827
  }, a = (u) => {
5817
5828
  const { isIntersecting: d } = u;
5818
5829
  if (this.isInView === d || (this.isInView = d, o && !d && this.hasEnteredView))
@@ -5821,7 +5832,7 @@ class ph extends Ie {
5821
5832
  const { onViewportEnter: f, onViewportLeave: h } = this.node.getProps(), m = d ? f : h;
5822
5833
  m && m(u);
5823
5834
  };
5824
- this.stopObserver = hh(this.node.current, i, a);
5835
+ this.stopObserver = ph(this.node.current, i, a);
5825
5836
  }
5826
5837
  mount() {
5827
5838
  this.startObserver();
@@ -5830,40 +5841,40 @@ class ph extends Ie {
5830
5841
  if (typeof IntersectionObserver > "u")
5831
5842
  return;
5832
5843
  const { props: t, prevProps: s } = this.node;
5833
- ["amount", "margin", "root"].some(gh(t, s)) && this.startObserver();
5844
+ ["amount", "margin", "root"].some(xh(t, s)) && this.startObserver();
5834
5845
  }
5835
5846
  unmount() {
5836
5847
  var t;
5837
5848
  (t = this.stopObserver) == null || t.call(this), this.hasEnteredView = !1, this.isInView = !1;
5838
5849
  }
5839
5850
  }
5840
- function gh({ viewport: e = {} }, { viewport: t = {} } = {}) {
5851
+ function xh({ viewport: e = {} }, { viewport: t = {} } = {}) {
5841
5852
  return (s) => e[s] !== t[s];
5842
5853
  }
5843
- const yh = {
5854
+ const bh = {
5844
5855
  inView: {
5845
- Feature: ph
5856
+ Feature: yh
5846
5857
  },
5847
5858
  tap: {
5848
- Feature: ch
5859
+ Feature: dh
5849
5860
  },
5850
5861
  focus: {
5851
- Feature: lh
5862
+ Feature: uh
5852
5863
  },
5853
5864
  hover: {
5854
- Feature: ah
5865
+ Feature: ch
5855
5866
  }
5856
- }, xh = {
5867
+ }, vh = {
5857
5868
  layout: {
5858
5869
  ProjectionNode: ea,
5859
5870
  MeasureLayout: ha
5860
5871
  }
5861
- }, bh = {
5862
- ...$f,
5863
- ...yh,
5864
- ...oh,
5865
- ...xh
5866
- }, I = /* @__PURE__ */ Of(bh, zf);
5872
+ }, wh = {
5873
+ ...Uf,
5874
+ ...bh,
5875
+ ...lh,
5876
+ ...vh
5877
+ }, I = /* @__PURE__ */ Ff(wh, Bf);
5867
5878
  function ma(e) {
5868
5879
  var t, s, n = "";
5869
5880
  if (typeof e == "string" || typeof e == "number") n += e;
@@ -5873,40 +5884,40 @@ function ma(e) {
5873
5884
  } else for (s in e) e[s] && (n && (n += " "), n += s);
5874
5885
  return n;
5875
5886
  }
5876
- function vh() {
5887
+ function kh() {
5877
5888
  for (var e, t, s = 0, n = "", r = arguments.length; s < r; s++) (e = arguments[s]) && (t = ma(e)) && (n && (n += " "), n += t);
5878
5889
  return n;
5879
5890
  }
5880
- const wh = (e, t) => {
5891
+ const Th = (e, t) => {
5881
5892
  const s = new Array(e.length + t.length);
5882
5893
  for (let n = 0; n < e.length; n++)
5883
5894
  s[n] = e[n];
5884
5895
  for (let n = 0; n < t.length; n++)
5885
5896
  s[e.length + n] = t[n];
5886
5897
  return s;
5887
- }, kh = (e, t) => ({
5898
+ }, jh = (e, t) => ({
5888
5899
  classGroupId: e,
5889
5900
  validator: t
5890
5901
  }), pa = (e = /* @__PURE__ */ new Map(), t = null, s) => ({
5891
5902
  nextPart: e,
5892
5903
  validators: t,
5893
5904
  classGroupId: s
5894
- }), ss = "-", ai = [], Th = "arbitrary..", jh = (e) => {
5895
- const t = Ch(e), {
5905
+ }), ss = "-", ai = [], Sh = "arbitrary..", Ch = (e) => {
5906
+ const t = Ph(e), {
5896
5907
  conflictingClassGroups: s,
5897
5908
  conflictingClassGroupModifiers: n
5898
5909
  } = e;
5899
5910
  return {
5900
5911
  getClassGroupId: (i) => {
5901
5912
  if (i.startsWith("[") && i.endsWith("]"))
5902
- return Sh(i);
5913
+ return Ah(i);
5903
5914
  const a = i.split(ss), c = a[0] === "" && a.length > 1 ? 1 : 0;
5904
5915
  return ga(a, c, t);
5905
5916
  },
5906
5917
  getConflictingClassGroupIds: (i, a) => {
5907
5918
  if (a) {
5908
5919
  const c = n[i], u = s[i];
5909
- return c ? u ? wh(u, c) : c : u || ai;
5920
+ return c ? u ? Th(u, c) : c : u || ai;
5910
5921
  }
5911
5922
  return s[i] || ai;
5912
5923
  }
@@ -5928,16 +5939,16 @@ const wh = (e, t) => {
5928
5939
  if (d.validator(a))
5929
5940
  return d.classGroupId;
5930
5941
  }
5931
- }, Sh = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
5942
+ }, Ah = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
5932
5943
  const t = e.slice(1, -1), s = t.indexOf(":"), n = t.slice(0, s);
5933
- return n ? Th + n : void 0;
5934
- })(), Ch = (e) => {
5944
+ return n ? Sh + n : void 0;
5945
+ })(), Ph = (e) => {
5935
5946
  const {
5936
5947
  theme: t,
5937
5948
  classGroups: s
5938
5949
  } = e;
5939
- return Ah(s, t);
5940
- }, Ah = (e, t) => {
5950
+ return Nh(s, t);
5951
+ }, Nh = (e, t) => {
5941
5952
  const s = pa();
5942
5953
  for (const n in e) {
5943
5954
  const r = e[n];
@@ -5948,28 +5959,28 @@ const wh = (e, t) => {
5948
5959
  const r = e.length;
5949
5960
  for (let o = 0; o < r; o++) {
5950
5961
  const i = e[o];
5951
- Ph(i, t, s, n);
5962
+ Mh(i, t, s, n);
5952
5963
  }
5953
- }, Ph = (e, t, s, n) => {
5964
+ }, Mh = (e, t, s, n) => {
5954
5965
  if (typeof e == "string") {
5955
- Nh(e, t, s);
5966
+ Eh(e, t, s);
5956
5967
  return;
5957
5968
  }
5958
5969
  if (typeof e == "function") {
5959
- Eh(e, t, s, n);
5970
+ Vh(e, t, s, n);
5960
5971
  return;
5961
5972
  }
5962
- Mh(e, t, s, n);
5963
- }, Nh = (e, t, s) => {
5973
+ Rh(e, t, s, n);
5974
+ }, Eh = (e, t, s) => {
5964
5975
  const n = e === "" ? t : ya(t, e);
5965
5976
  n.classGroupId = s;
5966
- }, Eh = (e, t, s, n) => {
5967
- if (Vh(e)) {
5977
+ }, Vh = (e, t, s, n) => {
5978
+ if (Dh(e)) {
5968
5979
  Ln(e(n), t, s, n);
5969
5980
  return;
5970
5981
  }
5971
- t.validators === null && (t.validators = []), t.validators.push(kh(s, e));
5972
- }, Mh = (e, t, s, n) => {
5982
+ t.validators === null && (t.validators = []), t.validators.push(jh(s, e));
5983
+ }, Rh = (e, t, s, n) => {
5973
5984
  const r = Object.entries(e), o = r.length;
5974
5985
  for (let i = 0; i < o; i++) {
5975
5986
  const [a, c] = r[i];
@@ -5984,7 +5995,7 @@ const wh = (e, t) => {
5984
5995
  a || (a = pa(), s.nextPart.set(i, a)), s = a;
5985
5996
  }
5986
5997
  return s;
5987
- }, Vh = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Rh = (e) => {
5998
+ }, Dh = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Lh = (e) => {
5988
5999
  if (e < 1)
5989
6000
  return {
5990
6001
  get: () => {
@@ -6008,13 +6019,13 @@ const wh = (e, t) => {
6008
6019
  o in s ? s[o] = i : r(o, i);
6009
6020
  }
6010
6021
  };
6011
- }, Qs = "!", li = ":", Dh = [], ci = (e, t, s, n, r) => ({
6022
+ }, Qs = "!", li = ":", Ih = [], ci = (e, t, s, n, r) => ({
6012
6023
  modifiers: e,
6013
6024
  hasImportantModifier: t,
6014
6025
  baseClassName: s,
6015
6026
  maybePostfixModifierPosition: n,
6016
6027
  isExternal: r
6017
- }), Lh = (e) => {
6028
+ }), Oh = (e) => {
6018
6029
  const {
6019
6030
  prefix: t,
6020
6031
  experimentalParseClassName: s
@@ -6051,7 +6062,7 @@ const wh = (e, t) => {
6051
6062
  };
6052
6063
  if (t) {
6053
6064
  const r = t + li, o = n;
6054
- n = (i) => i.startsWith(r) ? o(i.slice(r.length)) : ci(Dh, !1, i, void 0, !0);
6065
+ n = (i) => i.startsWith(r) ? o(i.slice(r.length)) : ci(Ih, !1, i, void 0, !0);
6055
6066
  }
6056
6067
  if (s) {
6057
6068
  const r = n;
@@ -6061,7 +6072,7 @@ const wh = (e, t) => {
6061
6072
  });
6062
6073
  }
6063
6074
  return n;
6064
- }, Ih = (e) => {
6075
+ }, zh = (e) => {
6065
6076
  const t = /* @__PURE__ */ new Map();
6066
6077
  return e.orderSensitiveModifiers.forEach((s, n) => {
6067
6078
  t.set(s, 1e6 + n);
@@ -6074,26 +6085,26 @@ const wh = (e, t) => {
6074
6085
  }
6075
6086
  return r.length > 0 && (r.sort(), n.push(...r)), n;
6076
6087
  };
6077
- }, Oh = (e) => ({
6078
- cache: Rh(e.cacheSize),
6079
- parseClassName: Lh(e),
6080
- sortModifiers: Ih(e),
6081
- postfixLookupClassGroupIds: zh(e),
6082
- ...jh(e)
6083
- }), zh = (e) => {
6088
+ }, Fh = (e) => ({
6089
+ cache: Lh(e.cacheSize),
6090
+ parseClassName: Oh(e),
6091
+ sortModifiers: zh(e),
6092
+ postfixLookupClassGroupIds: Bh(e),
6093
+ ...Ch(e)
6094
+ }), Bh = (e) => {
6084
6095
  const t = /* @__PURE__ */ Object.create(null), s = e.postfixLookupClassGroups;
6085
6096
  if (s)
6086
6097
  for (let n = 0; n < s.length; n++)
6087
6098
  t[s[n]] = !0;
6088
6099
  return t;
6089
- }, Fh = /\s+/, Bh = (e, t) => {
6100
+ }, _h = /\s+/, $h = (e, t) => {
6090
6101
  const {
6091
6102
  parseClassName: s,
6092
6103
  getClassGroupId: n,
6093
6104
  getConflictingClassGroupIds: r,
6094
6105
  sortModifiers: o,
6095
6106
  postfixLookupClassGroupIds: i
6096
- } = t, a = [], c = e.trim().split(Fh);
6107
+ } = t, a = [], c = e.trim().split(_h);
6097
6108
  let u = "";
6098
6109
  for (let d = c.length - 1; d >= 0; d -= 1) {
6099
6110
  const f = c[d], {
@@ -6138,7 +6149,7 @@ const wh = (e, t) => {
6138
6149
  u = f + (u.length > 0 ? " " + u : u);
6139
6150
  }
6140
6151
  return u;
6141
- }, _h = (...e) => {
6152
+ }, Wh = (...e) => {
6142
6153
  let t = 0, s, n, r = "";
6143
6154
  for (; t < e.length; )
6144
6155
  (s = e[t++]) && (n = xa(s)) && (r && (r += " "), r += n);
@@ -6150,34 +6161,34 @@ const wh = (e, t) => {
6150
6161
  for (let n = 0; n < e.length; n++)
6151
6162
  e[n] && (t = xa(e[n])) && (s && (s += " "), s += t);
6152
6163
  return s;
6153
- }, $h = (e, ...t) => {
6164
+ }, Uh = (e, ...t) => {
6154
6165
  let s, n, r, o;
6155
6166
  const i = (c) => {
6156
6167
  const u = t.reduce((d, f) => f(d), e());
6157
- return s = Oh(u), n = s.cache.get, r = s.cache.set, o = a, a(c);
6168
+ return s = Fh(u), n = s.cache.get, r = s.cache.set, o = a, a(c);
6158
6169
  }, a = (c) => {
6159
6170
  const u = n(c);
6160
6171
  if (u)
6161
6172
  return u;
6162
- const d = Bh(c, s);
6173
+ const d = $h(c, s);
6163
6174
  return r(c, d), d;
6164
6175
  };
6165
- return o = i, (...c) => o(_h(...c));
6166
- }, Wh = [], te = (e) => {
6167
- const t = (s) => s[e] || Wh;
6176
+ return o = i, (...c) => o(Wh(...c));
6177
+ }, Gh = [], te = (e) => {
6178
+ const t = (s) => s[e] || Gh;
6168
6179
  return t.isThemeGetter = !0, t;
6169
- }, ba = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, va = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Uh = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Gh = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Kh = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Yh = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Hh = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Xh = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Ne = (e) => Uh.test(e), D = (e) => !!e && !Number.isNaN(Number(e)), be = (e) => !!e && Number.isInteger(Number(e)), As = (e) => e.endsWith("%") && D(e.slice(0, -1)), Ce = (e) => Gh.test(e), wa = () => !0, qh = (e) => (
6180
+ }, ba = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, va = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Kh = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Yh = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Hh = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Xh = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, qh = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Zh = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Ne = (e) => Kh.test(e), D = (e) => !!e && !Number.isNaN(Number(e)), be = (e) => !!e && Number.isInteger(Number(e)), As = (e) => e.endsWith("%") && D(e.slice(0, -1)), Ce = (e) => Yh.test(e), wa = () => !0, Jh = (e) => (
6170
6181
  // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
6171
6182
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
6172
6183
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
6173
- Kh.test(e) && !Yh.test(e)
6174
- ), In = () => !1, Zh = (e) => Hh.test(e), Jh = (e) => Xh.test(e), Qh = (e) => !S(e) && !C(e), em = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), tm = (e) => Oe(e, ja, In), S = (e) => ba.test(e), Fe = (e) => Oe(e, Sa, qh), ui = (e) => Oe(e, cm, D), sm = (e) => Oe(e, Aa, wa), nm = (e) => Oe(e, Ca, In), di = (e) => Oe(e, ka, In), rm = (e) => Oe(e, Ta, Jh), Vt = (e) => Oe(e, Pa, Zh), C = (e) => va.test(e), ct = (e) => Ye(e, Sa), im = (e) => Ye(e, Ca), fi = (e) => Ye(e, ka), om = (e) => Ye(e, ja), am = (e) => Ye(e, Ta), Rt = (e) => Ye(e, Pa, !0), lm = (e) => Ye(e, Aa, !0), Oe = (e, t, s) => {
6184
+ Hh.test(e) && !Xh.test(e)
6185
+ ), In = () => !1, Qh = (e) => qh.test(e), em = (e) => Zh.test(e), tm = (e) => !S(e) && !C(e), sm = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), nm = (e) => ze(e, ja, In), S = (e) => ba.test(e), Be = (e) => ze(e, Sa, Jh), ui = (e) => ze(e, dm, D), rm = (e) => ze(e, Aa, wa), im = (e) => ze(e, Ca, In), di = (e) => ze(e, ka, In), om = (e) => ze(e, Ta, em), Vt = (e) => ze(e, Pa, Qh), C = (e) => va.test(e), ct = (e) => Ye(e, Sa), am = (e) => Ye(e, Ca), fi = (e) => Ye(e, ka), lm = (e) => Ye(e, ja), cm = (e) => Ye(e, Ta), Rt = (e) => Ye(e, Pa, !0), um = (e) => Ye(e, Aa, !0), ze = (e, t, s) => {
6175
6186
  const n = ba.exec(e);
6176
6187
  return n ? n[1] ? t(n[1]) : s(n[2]) : !1;
6177
6188
  }, Ye = (e, t, s = !1) => {
6178
6189
  const n = va.exec(e);
6179
6190
  return n ? n[1] ? t(n[1]) : s : !1;
6180
- }, ka = (e) => e === "position" || e === "percentage", Ta = (e) => e === "image" || e === "url", ja = (e) => e === "length" || e === "size" || e === "bg-size", Sa = (e) => e === "length", cm = (e) => e === "number", Ca = (e) => e === "family-name", Aa = (e) => e === "number" || e === "weight", Pa = (e) => e === "shadow", um = () => {
6191
+ }, ka = (e) => e === "position" || e === "percentage", Ta = (e) => e === "image" || e === "url", ja = (e) => e === "length" || e === "size" || e === "bg-size", Sa = (e) => e === "length", dm = (e) => e === "number", Ca = (e) => e === "family-name", Aa = (e) => e === "number" || e === "weight", Pa = (e) => e === "shadow", fm = () => {
6181
6192
  const e = te("color"), t = te("font"), s = te("text"), n = te("font-weight"), r = te("tracking"), o = te("leading"), i = te("breakpoint"), a = te("container"), c = te("spacing"), u = te("radius"), d = te("shadow"), f = te("inset-shadow"), h = te("text-shadow"), m = te("drop-shadow"), g = te("blur"), p = te("perspective"), y = te("aspect"), k = te("ease"), v = te("animate"), x = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], T = () => [
6182
6193
  "center",
6183
6194
  "top",
@@ -6196,15 +6207,15 @@ const wh = (e, t) => {
6196
6207
  "bottom-left",
6197
6208
  // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
6198
6209
  "left-bottom"
6199
- ], j = () => [...T(), C, S], N = () => ["auto", "hidden", "clip", "visible", "scroll"], L = () => ["auto", "contain", "none"], w = () => [C, S, c], E = () => [Ne, "full", "auto", ...w()], M = () => [be, "none", "subgrid", C, S], O = () => ["auto", {
6210
+ ], j = () => [...T(), C, S], N = () => ["auto", "hidden", "clip", "visible", "scroll"], L = () => ["auto", "contain", "none"], w = () => [C, S, c], M = () => [Ne, "full", "auto", ...w()], E = () => [be, "none", "subgrid", C, S], z = () => ["auto", {
6200
6211
  span: ["full", be, C, S]
6201
- }, be, C, S], B = () => [be, "auto", C, S], le = () => ["auto", "min", "max", "fr", C, S], ae = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], X = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], _ = () => ["auto", ...w()], pe = () => [Ne, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...w()], U = () => [Ne, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...w()], Q = () => [Ne, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...w()], P = () => [e, C, S], b = () => [...T(), fi, di, {
6212
+ }, be, C, S], B = () => [be, "auto", C, S], le = () => ["auto", "min", "max", "fr", C, S], ae = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], q = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], _ = () => ["auto", ...w()], pe = () => [Ne, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...w()], U = () => [Ne, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...w()], Q = () => [Ne, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...w()], P = () => [e, C, S], b = () => [...T(), fi, di, {
6202
6213
  position: [C, S]
6203
6214
  }], R = () => ["no-repeat", {
6204
6215
  repeat: ["", "x", "y", "space", "round"]
6205
- }], $ = () => ["auto", "cover", "contain", om, tm, {
6216
+ }], $ = () => ["auto", "cover", "contain", lm, nm, {
6206
6217
  size: [C, S]
6207
- }], K = () => [As, ct, Fe], q = () => [
6218
+ }], K = () => [As, ct, Be], Z = () => [
6208
6219
  // Deprecated since Tailwind CSS v4.0.0
6209
6220
  "",
6210
6221
  "none",
@@ -6212,7 +6223,7 @@ const wh = (e, t) => {
6212
6223
  u,
6213
6224
  C,
6214
6225
  S
6215
- ], ee = () => ["", D, ct, Fe], G = () => ["solid", "dashed", "dotted", "double"], Se = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], H = () => [D, As, fi, di], kt = () => [
6226
+ ], ee = () => ["", D, ct, Be], G = () => ["solid", "dashed", "dotted", "double"], Se = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], H = () => [D, As, fi, di], kt = () => [
6216
6227
  // Deprecated since Tailwind CSS v4.0.0
6217
6228
  "",
6218
6229
  "none",
@@ -6231,7 +6242,7 @@ const wh = (e, t) => {
6231
6242
  container: [Ce],
6232
6243
  "drop-shadow": [Ce],
6233
6244
  ease: ["in", "out", "in-out"],
6234
- font: [Qh],
6245
+ font: [tm],
6235
6246
  "font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
6236
6247
  "inset-shadow": [Ce],
6237
6248
  leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
@@ -6271,7 +6282,7 @@ const wh = (e, t) => {
6271
6282
  * Container Name
6272
6283
  * @see https://tailwindcss.com/docs/responsive-design#named-containers
6273
6284
  */
6274
- "container-named": [em],
6285
+ "container-named": [sm],
6275
6286
  /**
6276
6287
  * Columns
6277
6288
  * @see https://tailwindcss.com/docs/columns
@@ -6409,21 +6420,21 @@ const wh = (e, t) => {
6409
6420
  * @see https://tailwindcss.com/docs/top-right-bottom-left
6410
6421
  */
6411
6422
  inset: [{
6412
- inset: E()
6423
+ inset: M()
6413
6424
  }],
6414
6425
  /**
6415
6426
  * Inset Inline
6416
6427
  * @see https://tailwindcss.com/docs/top-right-bottom-left
6417
6428
  */
6418
6429
  "inset-x": [{
6419
- "inset-x": E()
6430
+ "inset-x": M()
6420
6431
  }],
6421
6432
  /**
6422
6433
  * Inset Block
6423
6434
  * @see https://tailwindcss.com/docs/top-right-bottom-left
6424
6435
  */
6425
6436
  "inset-y": [{
6426
- "inset-y": E()
6437
+ "inset-y": M()
6427
6438
  }],
6428
6439
  /**
6429
6440
  * Inset Inline Start
@@ -6431,12 +6442,12 @@ const wh = (e, t) => {
6431
6442
  * @todo class group will be renamed to `inset-s` in next major release
6432
6443
  */
6433
6444
  start: [{
6434
- "inset-s": E(),
6445
+ "inset-s": M(),
6435
6446
  /**
6436
6447
  * @deprecated since Tailwind CSS v4.2.0 in favor of `inset-s-*` utilities.
6437
6448
  * @see https://github.com/tailwindlabs/tailwindcss/pull/19613
6438
6449
  */
6439
- start: E()
6450
+ start: M()
6440
6451
  }],
6441
6452
  /**
6442
6453
  * Inset Inline End
@@ -6444,54 +6455,54 @@ const wh = (e, t) => {
6444
6455
  * @todo class group will be renamed to `inset-e` in next major release
6445
6456
  */
6446
6457
  end: [{
6447
- "inset-e": E(),
6458
+ "inset-e": M(),
6448
6459
  /**
6449
6460
  * @deprecated since Tailwind CSS v4.2.0 in favor of `inset-e-*` utilities.
6450
6461
  * @see https://github.com/tailwindlabs/tailwindcss/pull/19613
6451
6462
  */
6452
- end: E()
6463
+ end: M()
6453
6464
  }],
6454
6465
  /**
6455
6466
  * Inset Block Start
6456
6467
  * @see https://tailwindcss.com/docs/top-right-bottom-left
6457
6468
  */
6458
6469
  "inset-bs": [{
6459
- "inset-bs": E()
6470
+ "inset-bs": M()
6460
6471
  }],
6461
6472
  /**
6462
6473
  * Inset Block End
6463
6474
  * @see https://tailwindcss.com/docs/top-right-bottom-left
6464
6475
  */
6465
6476
  "inset-be": [{
6466
- "inset-be": E()
6477
+ "inset-be": M()
6467
6478
  }],
6468
6479
  /**
6469
6480
  * Top
6470
6481
  * @see https://tailwindcss.com/docs/top-right-bottom-left
6471
6482
  */
6472
6483
  top: [{
6473
- top: E()
6484
+ top: M()
6474
6485
  }],
6475
6486
  /**
6476
6487
  * Right
6477
6488
  * @see https://tailwindcss.com/docs/top-right-bottom-left
6478
6489
  */
6479
6490
  right: [{
6480
- right: E()
6491
+ right: M()
6481
6492
  }],
6482
6493
  /**
6483
6494
  * Bottom
6484
6495
  * @see https://tailwindcss.com/docs/top-right-bottom-left
6485
6496
  */
6486
6497
  bottom: [{
6487
- bottom: E()
6498
+ bottom: M()
6488
6499
  }],
6489
6500
  /**
6490
6501
  * Left
6491
6502
  * @see https://tailwindcss.com/docs/top-right-bottom-left
6492
6503
  */
6493
6504
  left: [{
6494
- left: E()
6505
+ left: M()
6495
6506
  }],
6496
6507
  /**
6497
6508
  * Visibility
@@ -6562,14 +6573,14 @@ const wh = (e, t) => {
6562
6573
  * @see https://tailwindcss.com/docs/grid-template-columns
6563
6574
  */
6564
6575
  "grid-cols": [{
6565
- "grid-cols": M()
6576
+ "grid-cols": E()
6566
6577
  }],
6567
6578
  /**
6568
6579
  * Grid Column Start / End
6569
6580
  * @see https://tailwindcss.com/docs/grid-column
6570
6581
  */
6571
6582
  "col-start-end": [{
6572
- col: O()
6583
+ col: z()
6573
6584
  }],
6574
6585
  /**
6575
6586
  * Grid Column Start
@@ -6590,14 +6601,14 @@ const wh = (e, t) => {
6590
6601
  * @see https://tailwindcss.com/docs/grid-template-rows
6591
6602
  */
6592
6603
  "grid-rows": [{
6593
- "grid-rows": M()
6604
+ "grid-rows": E()
6594
6605
  }],
6595
6606
  /**
6596
6607
  * Grid Row Start / End
6597
6608
  * @see https://tailwindcss.com/docs/grid-row
6598
6609
  */
6599
6610
  "row-start-end": [{
6600
- row: O()
6611
+ row: z()
6601
6612
  }],
6602
6613
  /**
6603
6614
  * Grid Row Start
@@ -6667,14 +6678,14 @@ const wh = (e, t) => {
6667
6678
  * @see https://tailwindcss.com/docs/justify-items
6668
6679
  */
6669
6680
  "justify-items": [{
6670
- "justify-items": [...X(), "normal"]
6681
+ "justify-items": [...q(), "normal"]
6671
6682
  }],
6672
6683
  /**
6673
6684
  * Justify Self
6674
6685
  * @see https://tailwindcss.com/docs/justify-self
6675
6686
  */
6676
6687
  "justify-self": [{
6677
- "justify-self": ["auto", ...X()]
6688
+ "justify-self": ["auto", ...q()]
6678
6689
  }],
6679
6690
  /**
6680
6691
  * Align Content
@@ -6688,7 +6699,7 @@ const wh = (e, t) => {
6688
6699
  * @see https://tailwindcss.com/docs/align-items
6689
6700
  */
6690
6701
  "align-items": [{
6691
- items: [...X(), {
6702
+ items: [...q(), {
6692
6703
  baseline: ["", "last"]
6693
6704
  }]
6694
6705
  }],
@@ -6697,7 +6708,7 @@ const wh = (e, t) => {
6697
6708
  * @see https://tailwindcss.com/docs/align-self
6698
6709
  */
6699
6710
  "align-self": [{
6700
- self: ["auto", ...X(), {
6711
+ self: ["auto", ...q(), {
6701
6712
  baseline: ["", "last"]
6702
6713
  }]
6703
6714
  }],
@@ -6713,14 +6724,14 @@ const wh = (e, t) => {
6713
6724
  * @see https://tailwindcss.com/docs/place-items
6714
6725
  */
6715
6726
  "place-items": [{
6716
- "place-items": [...X(), "baseline"]
6727
+ "place-items": [...q(), "baseline"]
6717
6728
  }],
6718
6729
  /**
6719
6730
  * Place Self
6720
6731
  * @see https://tailwindcss.com/docs/place-self
6721
6732
  */
6722
6733
  "place-self": [{
6723
- "place-self": ["auto", ...X()]
6734
+ "place-self": ["auto", ...q()]
6724
6735
  }],
6725
6736
  // Spacing
6726
6737
  /**
@@ -7020,7 +7031,7 @@ const wh = (e, t) => {
7020
7031
  * @see https://tailwindcss.com/docs/font-size
7021
7032
  */
7022
7033
  "font-size": [{
7023
- text: ["base", s, ct, Fe]
7034
+ text: ["base", s, ct, Be]
7024
7035
  }],
7025
7036
  /**
7026
7037
  * Font Smoothing
@@ -7037,7 +7048,7 @@ const wh = (e, t) => {
7037
7048
  * @see https://tailwindcss.com/docs/font-weight
7038
7049
  */
7039
7050
  "font-weight": [{
7040
- font: [n, lm, sm]
7051
+ font: [n, um, rm]
7041
7052
  }],
7042
7053
  /**
7043
7054
  * Font Stretch
@@ -7051,7 +7062,7 @@ const wh = (e, t) => {
7051
7062
  * @see https://tailwindcss.com/docs/font-family
7052
7063
  */
7053
7064
  "font-family": [{
7054
- font: [im, nm, t]
7065
+ font: [am, im, t]
7055
7066
  }],
7056
7067
  /**
7057
7068
  * Font Feature Settings
@@ -7175,7 +7186,7 @@ const wh = (e, t) => {
7175
7186
  * @see https://tailwindcss.com/docs/text-decoration-thickness
7176
7187
  */
7177
7188
  "text-decoration-thickness": [{
7178
- decoration: [D, "from-font", "auto", C, Fe]
7189
+ decoration: [D, "from-font", "auto", C, Be]
7179
7190
  }],
7180
7191
  /**
7181
7192
  * Text Decoration Color
@@ -7320,7 +7331,7 @@ const wh = (e, t) => {
7320
7331
  }, be, C, S],
7321
7332
  radial: ["", C, S],
7322
7333
  conic: [be, C, S]
7323
- }, am, rm]
7334
+ }, cm, om]
7324
7335
  }],
7325
7336
  /**
7326
7337
  * Background Color
@@ -7379,105 +7390,105 @@ const wh = (e, t) => {
7379
7390
  * @see https://tailwindcss.com/docs/border-radius
7380
7391
  */
7381
7392
  rounded: [{
7382
- rounded: q()
7393
+ rounded: Z()
7383
7394
  }],
7384
7395
  /**
7385
7396
  * Border Radius Start
7386
7397
  * @see https://tailwindcss.com/docs/border-radius
7387
7398
  */
7388
7399
  "rounded-s": [{
7389
- "rounded-s": q()
7400
+ "rounded-s": Z()
7390
7401
  }],
7391
7402
  /**
7392
7403
  * Border Radius End
7393
7404
  * @see https://tailwindcss.com/docs/border-radius
7394
7405
  */
7395
7406
  "rounded-e": [{
7396
- "rounded-e": q()
7407
+ "rounded-e": Z()
7397
7408
  }],
7398
7409
  /**
7399
7410
  * Border Radius Top
7400
7411
  * @see https://tailwindcss.com/docs/border-radius
7401
7412
  */
7402
7413
  "rounded-t": [{
7403
- "rounded-t": q()
7414
+ "rounded-t": Z()
7404
7415
  }],
7405
7416
  /**
7406
7417
  * Border Radius Right
7407
7418
  * @see https://tailwindcss.com/docs/border-radius
7408
7419
  */
7409
7420
  "rounded-r": [{
7410
- "rounded-r": q()
7421
+ "rounded-r": Z()
7411
7422
  }],
7412
7423
  /**
7413
7424
  * Border Radius Bottom
7414
7425
  * @see https://tailwindcss.com/docs/border-radius
7415
7426
  */
7416
7427
  "rounded-b": [{
7417
- "rounded-b": q()
7428
+ "rounded-b": Z()
7418
7429
  }],
7419
7430
  /**
7420
7431
  * Border Radius Left
7421
7432
  * @see https://tailwindcss.com/docs/border-radius
7422
7433
  */
7423
7434
  "rounded-l": [{
7424
- "rounded-l": q()
7435
+ "rounded-l": Z()
7425
7436
  }],
7426
7437
  /**
7427
7438
  * Border Radius Start Start
7428
7439
  * @see https://tailwindcss.com/docs/border-radius
7429
7440
  */
7430
7441
  "rounded-ss": [{
7431
- "rounded-ss": q()
7442
+ "rounded-ss": Z()
7432
7443
  }],
7433
7444
  /**
7434
7445
  * Border Radius Start End
7435
7446
  * @see https://tailwindcss.com/docs/border-radius
7436
7447
  */
7437
7448
  "rounded-se": [{
7438
- "rounded-se": q()
7449
+ "rounded-se": Z()
7439
7450
  }],
7440
7451
  /**
7441
7452
  * Border Radius End End
7442
7453
  * @see https://tailwindcss.com/docs/border-radius
7443
7454
  */
7444
7455
  "rounded-ee": [{
7445
- "rounded-ee": q()
7456
+ "rounded-ee": Z()
7446
7457
  }],
7447
7458
  /**
7448
7459
  * Border Radius End Start
7449
7460
  * @see https://tailwindcss.com/docs/border-radius
7450
7461
  */
7451
7462
  "rounded-es": [{
7452
- "rounded-es": q()
7463
+ "rounded-es": Z()
7453
7464
  }],
7454
7465
  /**
7455
7466
  * Border Radius Top Left
7456
7467
  * @see https://tailwindcss.com/docs/border-radius
7457
7468
  */
7458
7469
  "rounded-tl": [{
7459
- "rounded-tl": q()
7470
+ "rounded-tl": Z()
7460
7471
  }],
7461
7472
  /**
7462
7473
  * Border Radius Top Right
7463
7474
  * @see https://tailwindcss.com/docs/border-radius
7464
7475
  */
7465
7476
  "rounded-tr": [{
7466
- "rounded-tr": q()
7477
+ "rounded-tr": Z()
7467
7478
  }],
7468
7479
  /**
7469
7480
  * Border Radius Bottom Right
7470
7481
  * @see https://tailwindcss.com/docs/border-radius
7471
7482
  */
7472
7483
  "rounded-br": [{
7473
- "rounded-br": q()
7484
+ "rounded-br": Z()
7474
7485
  }],
7475
7486
  /**
7476
7487
  * Border Radius Bottom Left
7477
7488
  * @see https://tailwindcss.com/docs/border-radius
7478
7489
  */
7479
7490
  "rounded-bl": [{
7480
- "rounded-bl": q()
7491
+ "rounded-bl": Z()
7481
7492
  }],
7482
7493
  /**
7483
7494
  * Border Width
@@ -7697,7 +7708,7 @@ const wh = (e, t) => {
7697
7708
  * @see https://tailwindcss.com/docs/outline-width
7698
7709
  */
7699
7710
  "outline-w": [{
7700
- outline: ["", D, ct, Fe]
7711
+ outline: ["", D, ct, Be]
7701
7712
  }],
7702
7713
  /**
7703
7714
  * Outline Color
@@ -7772,7 +7783,7 @@ const wh = (e, t) => {
7772
7783
  * @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
7773
7784
  */
7774
7785
  "ring-offset-w": [{
7775
- "ring-offset": [D, Fe]
7786
+ "ring-offset": [D, Be]
7776
7787
  }],
7777
7788
  /**
7778
7789
  * Ring Offset Color
@@ -8785,7 +8796,7 @@ const wh = (e, t) => {
8785
8796
  * @see https://tailwindcss.com/docs/stroke-width
8786
8797
  */
8787
8798
  "stroke-w": [{
8788
- stroke: [D, ct, Fe, ui]
8799
+ stroke: [D, ct, Be, ui]
8789
8800
  }],
8790
8801
  /**
8791
8802
  * Stroke
@@ -8862,16 +8873,16 @@ const wh = (e, t) => {
8862
8873
  postfixLookupClassGroups: ["container-type"],
8863
8874
  orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
8864
8875
  };
8865
- }, dm = /* @__PURE__ */ $h(um);
8876
+ }, hm = /* @__PURE__ */ Uh(fm);
8866
8877
  function V(...e) {
8867
- return dm(vh(e));
8878
+ return hm(kh(e));
8868
8879
  }
8869
- const bm = ({
8880
+ const wm = ({
8870
8881
  title: e,
8871
8882
  children: t,
8872
8883
  className: s
8873
8884
  }) => {
8874
- const [n, r] = z(!1);
8885
+ const [n, r] = O(!1);
8875
8886
  return /* @__PURE__ */ l.jsxs("div", { className: V("glass-card overflow-hidden p-0 border border-border/50", s), children: [
8876
8887
  /* @__PURE__ */ l.jsxs(
8877
8888
  "button",
@@ -8919,14 +8930,14 @@ const bm = ({
8919
8930
  title: "var(--alert-info-title, #1e3a8a)",
8920
8931
  desc: "var(--alert-info-desc, #1d4ed8)"
8921
8932
  }
8922
- }, vm = ({
8933
+ }, km = ({
8923
8934
  title: e,
8924
8935
  description: t,
8925
8936
  variant: s = "info",
8926
8937
  dismissible: n = !1,
8927
8938
  className: r
8928
8939
  }) => {
8929
- const [o, i] = z(!0), a = mi[s] || mi.info, c = {
8940
+ const [o, i] = O(!0), a = mi[s] || mi.info, c = {
8930
8941
  success: /* @__PURE__ */ l.jsx(rs, { size: 18, style: { color: a.title } }),
8931
8942
  error: /* @__PURE__ */ l.jsx(Ci, { size: 18, style: { color: a.title } }),
8932
8943
  warning: /* @__PURE__ */ l.jsx(rn, { size: 18, style: { color: a.title } }),
@@ -8971,7 +8982,7 @@ const bm = ({
8971
8982
  offline: "bg-zinc-400 ring-zinc-400/20",
8972
8983
  busy: "bg-destructive ring-destructive/20",
8973
8984
  syncing: "bg-primary ring-primary/20 animate-pulse"
8974
- }, wm = ({
8985
+ }, Tm = ({
8975
8986
  src: e,
8976
8987
  alt: t = "User Profile",
8977
8988
  name: s = "",
@@ -9100,7 +9111,7 @@ const bm = ({
9100
9111
  )
9101
9112
  ] }),
9102
9113
  s && /* @__PURE__ */ l.jsx("span", { className: "text-sm font-semibold text-foreground leading-none", children: s })
9103
- ] }), km = ({
9114
+ ] }), jm = ({
9104
9115
  initialMode: e = "login",
9105
9116
  // 'login' | 'register' | 'forgot'
9106
9117
  onLogin: t,
@@ -9110,7 +9121,7 @@ const bm = ({
9110
9121
  title: o = "Ether UI Console",
9111
9122
  className: i
9112
9123
  }) => {
9113
- const [a, c] = z(e), [u, d] = z(""), [f, h] = z(""), [m, g] = z(""), [p, y] = z(!1), [k, v] = z(!1), [x, T] = z(!1), j = async (N) => {
9124
+ const [a, c] = O(e), [u, d] = O(""), [f, h] = O(""), [m, g] = O(""), [p, y] = O(!1), [k, v] = O(!1), [x, T] = O(!1), j = async (N) => {
9114
9125
  N.preventDefault(), T(!0);
9115
9126
  try {
9116
9127
  a === "login" && t ? await t({ email: f, password: m, rememberMe: p }) : a === "register" && s ? await s({ name: u, email: f, password: m, acceptTerms: k }) : a === "forgot" && n && await n({ email: f });
@@ -9317,7 +9328,7 @@ const bm = ({
9317
9328
  )
9318
9329
  ] }) })
9319
9330
  ] });
9320
- }, fm = ({ children: e, variant: t = "default", className: s }) => {
9331
+ }, mm = ({ children: e, variant: t = "default", className: s }) => {
9321
9332
  const n = {
9322
9333
  default: "bg-secondary text-secondary-foreground border-border",
9323
9334
  primary: "bg-primary text-primary-foreground border-primary",
@@ -9330,7 +9341,7 @@ const bm = ({
9330
9341
  n[t],
9331
9342
  s
9332
9343
  ), children: e });
9333
- }, hm = ({ isOpen: e, onClose: t, title: s, children: n, className: r, width: o }) => /* @__PURE__ */ l.jsx(fe, { children: e && /* @__PURE__ */ l.jsxs("div", { className: "fixed inset-0 z-50 flex items-center justify-center p-4", children: [
9344
+ }, pm = ({ isOpen: e, onClose: t, title: s, children: n, className: r, width: o }) => /* @__PURE__ */ l.jsx(fe, { children: e && /* @__PURE__ */ l.jsxs("div", { className: "fixed inset-0 z-50 flex items-center justify-center p-4", children: [
9334
9345
  /* @__PURE__ */ l.jsx(
9335
9346
  I.div,
9336
9347
  {
@@ -9368,7 +9379,7 @@ const bm = ({
9368
9379
  ]
9369
9380
  }
9370
9381
  )
9371
- ] }) }), Tm = ({
9382
+ ] }) }), Sm = ({
9372
9383
  isOpen: e,
9373
9384
  onClose: t,
9374
9385
  onConfirm: s,
@@ -9378,13 +9389,13 @@ const bm = ({
9378
9389
  cancelText: i = "Cancel",
9379
9390
  confirmVariant: a = "destructive",
9380
9391
  loading: c = !1
9381
- }) => /* @__PURE__ */ l.jsx(hm, { isOpen: e, onClose: t, title: n, className: "max-w-md", children: /* @__PURE__ */ l.jsxs("div", { className: "space-y-6", children: [
9392
+ }) => /* @__PURE__ */ l.jsx(pm, { isOpen: e, onClose: t, title: n, className: "max-w-md", children: /* @__PURE__ */ l.jsxs("div", { className: "space-y-6", children: [
9382
9393
  /* @__PURE__ */ l.jsx("p", { className: "text-sm text-muted-foreground leading-relaxed", children: r }),
9383
9394
  /* @__PURE__ */ l.jsxs("div", { className: "flex items-center justify-end gap-3", children: [
9384
9395
  /* @__PURE__ */ l.jsx(ke, { variant: "ghost", onClick: t, disabled: c, children: i }),
9385
9396
  /* @__PURE__ */ l.jsx(ke, { variant: a, onClick: s, loading: c, children: o })
9386
9397
  ] })
9387
- ] }) }), jm = ({
9398
+ ] }) }), Cm = ({
9388
9399
  label: e,
9389
9400
  options: t = [],
9390
9401
  value: s,
@@ -9392,8 +9403,8 @@ const bm = ({
9392
9403
  placeholder: r = "Select option",
9393
9404
  className: o
9394
9405
  }) => {
9395
- const [i, a] = z(!1), c = re(null), u = t.find((d) => d.value === s);
9396
- return Ke(() => {
9406
+ const [i, a] = O(!1), c = re(null), u = t.find((d) => d.value === s);
9407
+ return Ie(() => {
9397
9408
  const d = (f) => {
9398
9409
  c.current && !c.current.contains(f.target) && a(!1);
9399
9410
  };
@@ -9441,14 +9452,14 @@ const bm = ({
9441
9452
  }
9442
9453
  ) })
9443
9454
  ] });
9444
- }, Sm = ({
9455
+ }, Am = ({
9445
9456
  onFilesAdded: e,
9446
9457
  accept: t = "*",
9447
9458
  maxFiles: s = 5,
9448
9459
  maxSizeMB: n = 10,
9449
9460
  className: r
9450
9461
  }) => {
9451
- const [o, i] = z(!1), [a, c] = z([]), u = re(null), d = (p) => {
9462
+ const [o, i] = O(!1), [a, c] = O([]), u = re(null), d = (p) => {
9452
9463
  p.preventDefault(), p.stopPropagation(), p.type === "dragenter" || p.type === "dragover" ? i(!0) : p.type === "dragleave" && i(!1);
9453
9464
  }, f = (p) => {
9454
9465
  const y = Array.from(p).map((v) => {
@@ -9600,7 +9611,7 @@ const bm = ({
9600
9611
  }
9601
9612
  ) })
9602
9613
  ] });
9603
- }, Cm = ({
9614
+ }, Pm = ({
9604
9615
  isOpen: e = !1,
9605
9616
  onClose: t,
9606
9617
  notifications: s = [],
@@ -9645,7 +9656,7 @@ const bm = ({
9645
9656
  onClick: n,
9646
9657
  className: "p-2 hover:bg-secondary rounded-xl text-muted-foreground hover:text-destructive cursor-pointer transition-colors",
9647
9658
  title: "Clear All",
9648
- children: /* @__PURE__ */ l.jsx(xl, { size: 16 })
9659
+ children: /* @__PURE__ */ l.jsx(vl, { size: 16 })
9649
9660
  }
9650
9661
  ),
9651
9662
  /* @__PURE__ */ l.jsx(
@@ -9721,7 +9732,7 @@ const bm = ({
9721
9732
  ]
9722
9733
  }
9723
9734
  )
9724
- ] }) }), Am = ({
9735
+ ] }) }), Nm = ({
9725
9736
  currentPage: e = 1,
9726
9737
  totalPages: t = 1,
9727
9738
  onPageChange: s,
@@ -9798,8 +9809,8 @@ const bm = ({
9798
9809
  )
9799
9810
  ] }) })
9800
9811
  ] })
9801
- ] }), Pm = ({ children: e, content: t }) => {
9802
- const [s, n] = z(!1), [r, o] = z({ x: 0, y: 0 }), i = re(null), a = () => {
9812
+ ] }), Mm = ({ children: e, content: t }) => {
9813
+ const [s, n] = O(!1), [r, o] = O({ x: 0, y: 0 }), i = re(null), a = () => {
9803
9814
  if (i.current) {
9804
9815
  const d = i.current.getBoundingClientRect();
9805
9816
  o({
@@ -9808,7 +9819,7 @@ const bm = ({
9808
9819
  });
9809
9820
  }
9810
9821
  };
9811
- Ke(() => (s && (a(), window.addEventListener("scroll", a), window.addEventListener("resize", a)), () => {
9822
+ Ie(() => (s && (a(), window.addEventListener("scroll", a), window.addEventListener("resize", a)), () => {
9812
9823
  window.removeEventListener("scroll", a), window.removeEventListener("resize", a);
9813
9824
  }), [s]);
9814
9825
  const c = () => {
@@ -9852,7 +9863,7 @@ const bm = ({
9852
9863
  ]
9853
9864
  }
9854
9865
  );
9855
- }, Nm = ({
9866
+ }, Em = ({
9856
9867
  value: e = 0,
9857
9868
  // 0 to 100
9858
9869
  size: t = 80,
@@ -9896,7 +9907,7 @@ const bm = ({
9896
9907
  "%"
9897
9908
  ] })
9898
9909
  ] });
9899
- }, Em = ({
9910
+ }, Vm = ({
9900
9911
  checked: e = !1,
9901
9912
  onChange: t,
9902
9913
  label: s,
@@ -9937,40 +9948,87 @@ const bm = ({
9937
9948
  )
9938
9949
  ] }),
9939
9950
  s && /* @__PURE__ */ l.jsx("span", { className: "text-sm font-semibold text-foreground leading-none", children: s })
9940
- ] }), Mm = ({
9951
+ ] }), Rm = ({
9941
9952
  collapsed: e = !1,
9942
9953
  onToggle: t,
9943
9954
  logo: s,
9944
9955
  title: n = "RenderLoom",
9945
9956
  children: r,
9946
9957
  footer: o,
9947
- className: i
9948
- }) => /* @__PURE__ */ l.jsxs("aside", { className: V(
9949
- "h-screen bg-card/45 backdrop-blur-xl border-r border-border/40 flex flex-col transition-all duration-300 ease-in-out shrink-0 text-left relative z-30",
9950
- e ? "w-0 -translate-x-full md:w-20 md:translate-x-0 overflow-hidden border-r-0 md:border-r border-border/20" : "w-64 translate-x-0 border-r border-border/40",
9951
- i
9952
- ), children: [
9953
- /* @__PURE__ */ l.jsxs("div", { className: V(
9954
- "flex border-b border-border/20 shrink-0 transition-all duration-300",
9955
- e ? "flex-col items-center justify-center gap-2.5 py-4 px-1 min-h-[88px]" : "flex-row items-center justify-between p-4 min-h-[72px]"
9956
- ), children: [
9957
- /* @__PURE__ */ l.jsxs("div", { className: V("flex items-center gap-3 overflow-hidden", e && "justify-center"), children: [
9958
- s && /* @__PURE__ */ l.jsx("div", { className: "text-primary shrink-0 transition-transform duration-300", children: s }),
9959
- !e && /* @__PURE__ */ l.jsx("span", { className: "font-extrabold text-base text-foreground tracking-tight whitespace-nowrap animate-[fadeIn_0.2s_ease-out]", children: n })
9960
- ] }),
9961
- /* @__PURE__ */ l.jsx(
9958
+ className: i,
9959
+ showMobileToggle: a = !0
9960
+ // 👈 Added prop to disable built-in toggle
9961
+ }) => {
9962
+ const [c, u] = O(!1), [d, f] = O(!1);
9963
+ Ie(() => {
9964
+ const p = () => {
9965
+ const y = window.innerWidth < 768;
9966
+ u(y), y || f(!1);
9967
+ };
9968
+ return p(), window.addEventListener("resize", p), () => window.removeEventListener("resize", p);
9969
+ }, []);
9970
+ const h = () => {
9971
+ if (c) {
9972
+ const p = !d;
9973
+ f(p), t && t(!p);
9974
+ } else
9975
+ t && t(!e);
9976
+ }, m = () => {
9977
+ c && (f(!1), t && t(!0));
9978
+ }, g = c ? !d : e;
9979
+ return /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
9980
+ c && g && a && /* @__PURE__ */ l.jsx(
9962
9981
  "button",
9963
9982
  {
9964
9983
  type: "button",
9965
- onClick: () => t && t(!e),
9966
- className: "hidden md:flex p-1.5 hover:bg-secondary/60 rounded-xl border border-border/20 text-muted-foreground hover:text-foreground cursor-pointer shrink-0 transition-colors",
9967
- children: e ? /* @__PURE__ */ l.jsx(nn, { size: 14 }) : /* @__PURE__ */ l.jsx(Si, { size: 14 })
9984
+ onClick: h,
9985
+ className: "fixed top-4 left-4 z-40 p-2.5 rounded-xl bg-card/85 backdrop-blur-xl border border-border/40 text-foreground shadow-lg hover:bg-secondary/60 cursor-pointer md:hidden transition-colors animate-[fadeIn_0.2s_ease-out]",
9986
+ children: /* @__PURE__ */ l.jsx(pl, { size: 18 })
9968
9987
  }
9969
- )
9970
- ] }),
9971
- /* @__PURE__ */ l.jsx("div", { className: "flex-1 py-4 px-3 space-y-1.5 overflow-y-auto custom-scrollbar", children: r }),
9972
- o && /* @__PURE__ */ l.jsx("div", { className: "p-3 border-t border-border/20 min-h-[72px] flex items-center overflow-hidden shrink-0", children: o })
9973
- ] }), Vm = ({
9988
+ ),
9989
+ c && !g && /* @__PURE__ */ l.jsx(
9990
+ "div",
9991
+ {
9992
+ onClick: h,
9993
+ className: "fixed inset-0 bg-black/60 backdrop-blur-sm z-35 md:hidden transition-opacity duration-300"
9994
+ }
9995
+ ),
9996
+ /* @__PURE__ */ l.jsxs("aside", { className: V(
9997
+ "h-screen bg-card/45 backdrop-blur-xl border-r border-border/40 flex flex-col transition-all duration-300 ease-in-out shrink-0 text-left relative z-30",
9998
+ c ? "fixed top-0 bottom-0 left-0" : "",
9999
+ g ? "w-0 -translate-x-full md:w-20 md:translate-x-0 overflow-hidden border-r-0 md:border-r border-border/20" : "w-64 translate-x-0 border-r border-border/40",
10000
+ i
10001
+ ), children: [
10002
+ /* @__PURE__ */ l.jsxs("div", { className: V(
10003
+ "flex border-b border-border/20 shrink-0 transition-all duration-300",
10004
+ g ? "flex-col items-center justify-center gap-2.5 py-4 px-1 min-h-[88px]" : "flex-row items-center justify-between p-4 min-h-[72px]"
10005
+ ), children: [
10006
+ /* @__PURE__ */ l.jsxs("div", { className: V("flex items-center gap-3 overflow-hidden", g && "justify-center"), children: [
10007
+ s && /* @__PURE__ */ l.jsx("div", { className: "text-primary shrink-0 transition-transform duration-300", children: s }),
10008
+ !g && /* @__PURE__ */ l.jsx("span", { className: "font-extrabold text-base text-foreground tracking-tight whitespace-nowrap animate-[fadeIn_0.2s_ease-out]", children: n })
10009
+ ] }),
10010
+ /* @__PURE__ */ l.jsx(
10011
+ "button",
10012
+ {
10013
+ type: "button",
10014
+ onClick: h,
10015
+ className: "p-1.5 hover:bg-secondary/60 rounded-xl border border-border/20 text-muted-foreground hover:text-foreground cursor-pointer shrink-0 transition-colors",
10016
+ children: g ? /* @__PURE__ */ l.jsx(nn, { size: 14 }) : /* @__PURE__ */ l.jsx(Si, { size: 14 })
10017
+ }
10018
+ )
10019
+ ] }),
10020
+ /* @__PURE__ */ l.jsx(
10021
+ "div",
10022
+ {
10023
+ className: "flex-1 py-4 px-3 space-y-1.5 overflow-y-auto custom-scrollbar",
10024
+ onClickCapture: m,
10025
+ children: r
10026
+ }
10027
+ ),
10028
+ o && /* @__PURE__ */ l.jsx("div", { className: "p-3 border-t border-border/20 min-h-[72px] flex items-center overflow-hidden shrink-0", children: o })
10029
+ ] })
10030
+ ] });
10031
+ }, Dm = ({
9974
10032
  icon: e,
9975
10033
  label: t,
9976
10034
  active: s = !1,
@@ -10001,7 +10059,7 @@ const bm = ({
10001
10059
  )
10002
10060
  ]
10003
10061
  }
10004
- ), Rm = ({
10062
+ ), Lm = ({
10005
10063
  min: e = 0,
10006
10064
  max: t = 100,
10007
10065
  step: s = 1,
@@ -10053,7 +10111,7 @@ const bm = ({
10053
10111
  ` })
10054
10112
  ] })
10055
10113
  ] });
10056
- }, Dm = ({
10114
+ }, Im = ({
10057
10115
  size: e = "md",
10058
10116
  // sm, md, lg
10059
10117
  className: t
@@ -10092,7 +10150,7 @@ const bm = ({
10092
10150
  ]
10093
10151
  }
10094
10152
  ) });
10095
- }, Lm = ({
10153
+ }, Om = ({
10096
10154
  title: e,
10097
10155
  value: t,
10098
10156
  change: s,
@@ -10122,7 +10180,7 @@ const bm = ({
10122
10180
  r && /* @__PURE__ */ l.jsx("span", { className: "text-xs text-muted-foreground font-medium", children: r })
10123
10181
  ] })
10124
10182
  ] })
10125
- ] }), Im = ({
10183
+ ] }), zm = ({
10126
10184
  checked: e = !1,
10127
10185
  onChange: t,
10128
10186
  label: s,
@@ -10157,8 +10215,8 @@ const bm = ({
10157
10215
  )
10158
10216
  ] }),
10159
10217
  s && /* @__PURE__ */ l.jsx("span", { className: "text-sm font-semibold text-foreground", children: s })
10160
- ] }), Na = Pe(), Om = ({ children: e }) => {
10161
- const [t, s] = z([]), [n, r] = z(-1), [o, i] = z("IDLE"), [a, c] = z(""), [u, d] = z({ success: 0, failed: 0, skipped: 0, noLedger: 0, items: [] }), [f, h] = z(null), m = re(!1), g = (v, x = "", T) => {
10218
+ ] }), Na = Pe(), Fm = ({ children: e }) => {
10219
+ const [t, s] = O([]), [n, r] = O(-1), [o, i] = O("IDLE"), [a, c] = O(""), [u, d] = O({ success: 0, failed: 0, skipped: 0, noLedger: 0, items: [] }), [f, h] = O(null), m = re(!1), g = (v, x = "", T) => {
10162
10220
  s(v), c(x || "Batch Processing"), r(0), i("SYNCING"), d({ success: 0, failed: 0, skipped: 0, noLedger: 0, items: [] }), h(() => T);
10163
10221
  }, p = () => {
10164
10222
  s([]), r(-1), i("IDLE"), d({ success: 0, failed: 0, skipped: 0, noLedger: 0, items: [] }), h(null);
@@ -10169,10 +10227,10 @@ const bm = ({
10169
10227
  try {
10170
10228
  const x = await f(v), T = typeof x == "string" ? x : x.status || "SUCCESS", j = (x == null ? void 0 : x.message) || "", N = (x == null ? void 0 : x.name) || v.name || "Task Item", L = (x == null ? void 0 : x.detail) || v.detail || "";
10171
10229
  d((w) => {
10172
- const E = T.toLowerCase() === "success" ? "success" : T.toLowerCase() === "failed" ? "failed" : T.toLowerCase() === "skipped" ? "skipped" : "noLedger";
10230
+ const M = T.toLowerCase() === "success" ? "success" : T.toLowerCase() === "failed" ? "failed" : T.toLowerCase() === "skipped" ? "skipped" : "noLedger";
10173
10231
  return {
10174
10232
  ...w,
10175
- [E]: w[E] + 1,
10233
+ [M]: w[M] + 1,
10176
10234
  items: [{
10177
10235
  name: N,
10178
10236
  detail: L,
@@ -10196,7 +10254,7 @@ const bm = ({
10196
10254
  m.current = !1, n + 1 < t.length ? r((x) => x + 1) : i("COMPLETED");
10197
10255
  }
10198
10256
  };
10199
- Ke(() => {
10257
+ Ie(() => {
10200
10258
  o === "SYNCING" && y();
10201
10259
  }, [n, o, f]);
10202
10260
  const k = t.length > 0 ? Math.round((n + (o === "COMPLETED" ? 1 : 0)) / t.length * 100) : 0;
@@ -10210,12 +10268,12 @@ const bm = ({
10210
10268
  addToQueue: g,
10211
10269
  clearQueue: p
10212
10270
  }, children: e });
10213
- }, mm = () => {
10271
+ }, gm = () => {
10214
10272
  const e = ne(Na);
10215
10273
  if (!e) throw new Error("useSync must be used within a SyncProvider");
10216
10274
  return e;
10217
- }, zm = () => {
10218
- const { status: e, results: t, currentIndex: s, queue: n, progress: r, batchName: o, clearQueue: i } = mm(), [a, c] = z(!1), [u, d] = z(!1);
10275
+ }, Bm = () => {
10276
+ const { status: e, results: t, currentIndex: s, queue: n, progress: r, batchName: o, clearQueue: i } = gm(), [a, c] = O(!1), [u, d] = O(!1);
10219
10277
  if (e === "IDLE") return null;
10220
10278
  const f = n[s] || {};
10221
10279
  return /* @__PURE__ */ l.jsx(fe, { children: /* @__PURE__ */ l.jsx(
@@ -10258,7 +10316,7 @@ const bm = ({
10258
10316
  h.stopPropagation(), c(!0);
10259
10317
  },
10260
10318
  className: "p-1 hover:bg-secondary rounded-md text-muted-foreground transition-colors cursor-pointer",
10261
- children: /* @__PURE__ */ l.jsx(pl, { size: 14 })
10319
+ children: /* @__PURE__ */ l.jsx(yl, { size: 14 })
10262
10320
  }
10263
10321
  ),
10264
10322
  e === "COMPLETED" && /* @__PURE__ */ l.jsx(
@@ -10295,7 +10353,7 @@ const bm = ({
10295
10353
  /* @__PURE__ */ l.jsxs("div", { className: "flex items-center justify-between", children: [
10296
10354
  /* @__PURE__ */ l.jsx("span", { className: "font-bold text-[11px] truncate max-w-[200px]", children: h.name }),
10297
10355
  /* @__PURE__ */ l.jsx(
10298
- fm,
10356
+ mm,
10299
10357
  {
10300
10358
  variant: h.status === "SUCCESS" || h.status === "SENT" ? "success" : h.status === "FAILED" ? "danger" : h.status === "SKIPPED" ? "warning" : "secondary",
10301
10359
  className: "text-[8px] px-1 py-0 font-extrabold",
@@ -10328,7 +10386,7 @@ const bm = ({
10328
10386
  ] })
10329
10387
  }
10330
10388
  ) });
10331
- }, Fm = ({
10389
+ }, _m = ({
10332
10390
  columns: e = [],
10333
10391
  data: t = [],
10334
10392
  loading: s = !1,
@@ -10362,7 +10420,7 @@ const bm = ({
10362
10420
  },
10363
10421
  o.id || i
10364
10422
  )) })
10365
- ] }) }) }), Bm = ({
10423
+ ] }) }) }), $m = ({
10366
10424
  tags: e = [],
10367
10425
  onChange: t,
10368
10426
  label: s,
@@ -10370,7 +10428,7 @@ const bm = ({
10370
10428
  maxTags: r = 10,
10371
10429
  className: o
10372
10430
  }) => {
10373
- const [i, a] = z(""), [c, u] = z(!1), d = re(null), f = re(null), h = (p) => {
10431
+ const [i, a] = O(""), [c, u] = O(!1), d = re(null), f = re(null), h = (p) => {
10374
10432
  if (p.key === "Enter" || p.key === ",") {
10375
10433
  p.preventDefault();
10376
10434
  const y = i.trim().replace(/,/g, "");
@@ -10445,7 +10503,7 @@ const bm = ({
10445
10503
  }
10446
10504
  )
10447
10505
  ] });
10448
- }, _m = ({
10506
+ }, Wm = ({
10449
10507
  tabs: e = [],
10450
10508
  // array of { label: string, value: string }
10451
10509
  activeTab: t,
@@ -10482,7 +10540,7 @@ const bm = ({
10482
10540
  danger: "bg-destructive ring-destructive/20",
10483
10541
  running: "bg-primary ring-primary/20 animate-pulse",
10484
10542
  pending: "bg-zinc-400 ring-zinc-400/20"
10485
- }, $m = ({
10543
+ }, Um = ({
10486
10544
  title: e,
10487
10545
  timestamp: t,
10488
10546
  description: s,
@@ -10512,7 +10570,7 @@ const bm = ({
10512
10570
  ] }),
10513
10571
  s && /* @__PURE__ */ l.jsx("p", { className: "text-xs text-muted-foreground leading-relaxed font-medium", children: s })
10514
10572
  ] })
10515
- ] }), Wm = ({
10573
+ ] }), Gm = ({
10516
10574
  children: e,
10517
10575
  className: t
10518
10576
  }) => {
@@ -10532,7 +10590,7 @@ const bm = ({
10532
10590
  warning: "border-amber-500/20 bg-amber-500/10",
10533
10591
  info: "border-blue-500/20 bg-blue-500/10",
10534
10592
  default: "border-border bg-background"
10535
- }, pm = ({ toasts: e, removeToast: t }) => /* @__PURE__ */ l.jsx("div", { className: "fixed bottom-4 right-4 z-[9999] flex flex-col gap-3 p-4 max-w-sm w-full pointer-events-none", children: /* @__PURE__ */ l.jsx(fe, { children: e.map((s) => /* @__PURE__ */ l.jsxs(
10593
+ }, ym = ({ toasts: e, removeToast: t }) => /* @__PURE__ */ l.jsx("div", { className: "fixed bottom-4 right-4 z-[9999] flex flex-col gap-3 p-4 max-w-sm w-full pointer-events-none", children: /* @__PURE__ */ l.jsx(fe, { children: e.map((s) => /* @__PURE__ */ l.jsxs(
10536
10594
  I.div,
10537
10595
  {
10538
10596
  initial: { opacity: 0, y: 20, scale: 0.95 },
@@ -10557,13 +10615,13 @@ const bm = ({
10557
10615
  ]
10558
10616
  },
10559
10617
  s.id
10560
- )) }) }), Ea = Pe(), Um = () => {
10561
- const e = ne(Ea);
10618
+ )) }) }), Ma = Pe(), Km = () => {
10619
+ const e = ne(Ma);
10562
10620
  if (!e)
10563
10621
  throw new Error("useToast must be used within a ToastProvider");
10564
10622
  return e;
10565
- }, Gm = ({ children: e }) => {
10566
- const [t, s] = z([]), n = Gt(({ title: i, description: a, variant: c = "default", duration: u = 5e3 }) => {
10623
+ }, Ym = ({ children: e }) => {
10624
+ const [t, s] = O([]), n = Gt(({ title: i, description: a, variant: c = "default", duration: u = 5e3 }) => {
10567
10625
  const d = Math.random().toString(36).substr(2, 9);
10568
10626
  s((f) => [...f, { id: d, title: i, description: a, variant: c, duration: u }]), u !== 1 / 0 && setTimeout(() => {
10569
10627
  r(d);
@@ -10578,65 +10636,65 @@ const bm = ({
10578
10636
  custom: (i) => n(i),
10579
10637
  dismiss: (i) => r(i)
10580
10638
  };
10581
- return /* @__PURE__ */ l.jsxs(Ea.Provider, { value: { toast: o }, children: [
10639
+ return /* @__PURE__ */ l.jsxs(Ma.Provider, { value: { toast: o }, children: [
10582
10640
  e,
10583
- /* @__PURE__ */ l.jsx(pm, { toasts: t, removeToast: r })
10641
+ /* @__PURE__ */ l.jsx(ym, { toasts: t, removeToast: r })
10584
10642
  ] });
10585
- }, Ma = Pe(), Km = ({ children: e, defaultTheme: t = "light" }) => {
10586
- const [s, n] = z(() => {
10643
+ }, Ea = Pe(), Hm = ({ children: e, defaultTheme: t = "light" }) => {
10644
+ const [s, n] = O(() => {
10587
10645
  if (typeof window > "u") return !1;
10588
10646
  const i = new URLSearchParams(window.location.search).get("theme");
10589
10647
  if (i) return i === "dark";
10590
10648
  const a = localStorage.getItem("theme");
10591
10649
  return a ? a === "dark" : window.matchMedia("(prefers-color-scheme: dark)").matches;
10592
10650
  });
10593
- Ke(() => {
10651
+ Ie(() => {
10594
10652
  s ? (document.documentElement.classList.add("dark"), localStorage.setItem("theme", "dark")) : (document.documentElement.classList.remove("dark"), localStorage.setItem("theme", "light"));
10595
10653
  }, [s]);
10596
10654
  const r = () => n((o) => !o);
10597
- return /* @__PURE__ */ l.jsx(Ma.Provider, { value: { isDark: s, toggleTheme: r, setIsDark: n }, children: e });
10598
- }, Ym = () => {
10599
- const e = ne(Ma);
10655
+ return /* @__PURE__ */ l.jsx(Ea.Provider, { value: { isDark: s, toggleTheme: r, setIsDark: n }, children: e });
10656
+ }, Xm = () => {
10657
+ const e = ne(Ea);
10600
10658
  if (!e) throw new Error("useTheme must be used within a ThemeProvider");
10601
10659
  return e;
10602
10660
  };
10603
10661
  export {
10604
- bm as Accordion,
10605
- vm as Alert,
10606
- km as AuthPage,
10607
- wm as Avatar,
10608
- fm as Badge,
10662
+ wm as Accordion,
10663
+ km as Alert,
10664
+ jm as AuthPage,
10665
+ Tm as Avatar,
10666
+ mm as Badge,
10609
10667
  ke as Button,
10610
10668
  Wt as Card,
10611
10669
  yi as Checkbox,
10612
- Tm as ConfirmationModal,
10613
- jm as Dropdown,
10614
- Sm as Dropzone,
10670
+ Sm as ConfirmationModal,
10671
+ Cm as Dropdown,
10672
+ Am as Dropzone,
10615
10673
  He as Input,
10616
- hm as Modal,
10617
- Cm as NotificationCenter,
10618
- Am as Pagination,
10619
- Pm as PortalTooltip,
10620
- Nm as ProgressCircle,
10621
- Em as Radio,
10622
- Mm as Sidebar,
10623
- Vm as SidebarItem,
10624
- Rm as Slider,
10625
- Dm as Spinner,
10626
- Lm as StatsCard,
10627
- Im as Switch,
10628
- zm as SyncProgressHUD,
10629
- Om as SyncProvider,
10630
- Fm as Table,
10631
- _m as Tabs,
10632
- Bm as TagInput,
10633
- Km as ThemeProvider,
10634
- Wm as Timeline,
10635
- $m as TimelineItem,
10636
- Gm as ToastProvider,
10674
+ pm as Modal,
10675
+ Pm as NotificationCenter,
10676
+ Nm as Pagination,
10677
+ Mm as PortalTooltip,
10678
+ Em as ProgressCircle,
10679
+ Vm as Radio,
10680
+ Rm as Sidebar,
10681
+ Dm as SidebarItem,
10682
+ Lm as Slider,
10683
+ Im as Spinner,
10684
+ Om as StatsCard,
10685
+ zm as Switch,
10686
+ Bm as SyncProgressHUD,
10687
+ Fm as SyncProvider,
10688
+ _m as Table,
10689
+ Wm as Tabs,
10690
+ $m as TagInput,
10691
+ Hm as ThemeProvider,
10692
+ Gm as Timeline,
10693
+ Um as TimelineItem,
10694
+ Ym as ToastProvider,
10637
10695
  V as cn,
10638
- mm as useSync,
10639
- Ym as useTheme,
10640
- Um as useToast
10696
+ gm as useSync,
10697
+ Xm as useTheme,
10698
+ Km as useToast
10641
10699
  };
10642
10700
  //# sourceMappingURL=renderloom.js.map