@ukpc-lib/react 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
- import { r as w, R as Ia, g as Wa, e as ws, a as Ua, j as R, p as I, S as za, L as Ha, s as $a } from "../index-6ba7e1d4.js";
1
+ import { r as w, R as Ia, g as Wa, e as ws, a as Ua, j as R, p as W, S as za, L as Ha, s as $a } from "../index-6ba7e1d4.js";
2
2
  /**
3
- * @remix-run/router v1.15.0
3
+ * @remix-run/router v1.14.2
4
4
  *
5
5
  * Copyright (c) Remix Software Inc.
6
6
  *
@@ -125,9 +125,9 @@ function Xa(e, t, n, r) {
125
125
  let y = Ir(x, u), S = m.createHref(x);
126
126
  try {
127
127
  s.pushState(y, "", S);
128
- } catch (E) {
129
- if (E instanceof DOMException && E.name === "DataCloneError")
130
- throw E;
128
+ } catch (T) {
129
+ if (T instanceof DOMException && T.name === "DataCloneError")
130
+ throw T;
131
131
  i.location.assign(S);
132
132
  }
133
133
  o && l && l({
@@ -251,7 +251,7 @@ new Set(Ps);
251
251
  const el = ["get", ...Ps];
252
252
  new Set(el);
253
253
  /**
254
- * React Router v6.22.0
254
+ * React Router v6.21.3
255
255
  *
256
256
  * Copyright (c) Remix Software Inc.
257
257
  *
@@ -425,7 +425,7 @@ function ll(e) {
425
425
  new Promise(() => {
426
426
  });
427
427
  /**
428
- * React Router DOM v6.22.0
428
+ * React Router DOM v6.21.3
429
429
  *
430
430
  * Copyright (c) Remix Software Inc.
431
431
  *
@@ -460,13 +460,8 @@ function fl(e, t) {
460
460
  (!t || t === "_self") && // Let browser handle "target=_blank" etc.
461
461
  !ul(e);
462
462
  }
463
- const hl = ["onClick", "relative", "reloadDocument", "replace", "state", "target", "to", "preventScrollReset", "unstable_viewTransition"], dl = "6";
464
- try {
465
- window.__reactRouterVersion = dl;
466
- } catch {
467
- }
468
- const pl = "startTransition", Ur = Ia[pl];
469
- function ml(e) {
463
+ const hl = ["onClick", "relative", "reloadDocument", "replace", "state", "target", "to", "preventScrollReset", "unstable_viewTransition"], dl = "startTransition", Ur = Ia[dl];
464
+ function pl(e) {
470
465
  let {
471
466
  basename: t,
472
467
  children: n,
@@ -494,7 +489,7 @@ function ml(e) {
494
489
  future: r
495
490
  });
496
491
  }
497
- const gl = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", yl = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, vl = /* @__PURE__ */ w.forwardRef(function(t, n) {
492
+ const ml = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", gl = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, yl = /* @__PURE__ */ w.forwardRef(function(t, n) {
498
493
  let {
499
494
  onClick: r,
500
495
  relative: i,
@@ -508,15 +503,15 @@ const gl = typeof window < "u" && typeof window.document < "u" && typeof window.
508
503
  } = t, h = cl(t, hl), {
509
504
  basename: d
510
505
  } = w.useContext(Qe), p, m = !1;
511
- if (typeof u == "string" && yl.test(u) && (p = u, gl))
506
+ if (typeof u == "string" && gl.test(u) && (p = u, ml))
512
507
  try {
513
- let y = new URL(window.location.href), S = u.startsWith("//") ? new URL(y.protocol + u) : new URL(u), E = Ss(S.pathname, d);
514
- S.origin === y.origin && E != null ? u = E + S.search + S.hash : m = !0;
508
+ let y = new URL(window.location.href), S = u.startsWith("//") ? new URL(y.protocol + u) : new URL(u), T = Ss(S.pathname, d);
509
+ S.origin === y.origin && T != null ? u = T + S.search + S.hash : m = !0;
515
510
  } catch {
516
511
  }
517
512
  let g = tl(u, {
518
513
  relative: i
519
- }), b = bl(u, {
514
+ }), b = vl(u, {
520
515
  replace: s,
521
516
  state: a,
522
517
  target: l,
@@ -545,7 +540,7 @@ var Hr;
545
540
  (function(e) {
546
541
  e.UseFetcher = "useFetcher", e.UseFetchers = "useFetchers", e.UseScrollRestoration = "useScrollRestoration";
547
542
  })(Hr || (Hr = {}));
548
- function bl(e, t) {
543
+ function vl(e, t) {
549
544
  let {
550
545
  target: n,
551
546
  replace: r,
@@ -570,57 +565,57 @@ function bl(e, t) {
570
565
  }
571
566
  }, [u, l, f, r, i, n, e, o, s, a]);
572
567
  }
573
- var xl = typeof global == "object" && global && global.Object === Object && global;
574
- const wl = xl;
575
- var Sl = typeof self == "object" && self && self.Object === Object && self, El = wl || Sl || Function("return this")();
576
- const Ms = El;
577
- var Tl = Ms.Symbol;
578
- const It = Tl;
579
- var Ls = Object.prototype, Al = Ls.hasOwnProperty, Pl = Ls.toString, nt = It ? It.toStringTag : void 0;
580
- function Cl(e) {
581
- var t = Al.call(e, nt), n = e[nt];
568
+ var bl = typeof global == "object" && global && global.Object === Object && global;
569
+ const xl = bl;
570
+ var wl = typeof self == "object" && self && self.Object === Object && self, Sl = xl || wl || Function("return this")();
571
+ const Ms = Sl;
572
+ var El = Ms.Symbol;
573
+ const It = El;
574
+ var Ls = Object.prototype, Tl = Ls.hasOwnProperty, Al = Ls.toString, nt = It ? It.toStringTag : void 0;
575
+ function Pl(e) {
576
+ var t = Tl.call(e, nt), n = e[nt];
582
577
  try {
583
578
  e[nt] = void 0;
584
579
  var r = !0;
585
580
  } catch {
586
581
  }
587
- var i = Pl.call(e);
582
+ var i = Al.call(e);
588
583
  return r && (t ? e[nt] = n : delete e[nt]), i;
589
584
  }
590
- var Rl = Object.prototype, Ol = Rl.toString;
591
- function Vl(e) {
592
- return Ol.call(e);
585
+ var Cl = Object.prototype, Rl = Cl.toString;
586
+ function Ol(e) {
587
+ return Rl.call(e);
593
588
  }
594
- var kl = "[object Null]", Ml = "[object Undefined]", $r = It ? It.toStringTag : void 0;
595
- function Ll(e) {
596
- return e == null ? e === void 0 ? Ml : kl : $r && $r in Object(e) ? Cl(e) : Vl(e);
589
+ var Vl = "[object Null]", kl = "[object Undefined]", $r = It ? It.toStringTag : void 0;
590
+ function Ml(e) {
591
+ return e == null ? e === void 0 ? kl : Vl : $r && $r in Object(e) ? Pl(e) : Ol(e);
597
592
  }
598
- function Dl(e) {
593
+ function Ll(e) {
599
594
  return e != null && typeof e == "object";
600
595
  }
601
- var jl = "[object Symbol]";
602
- function _l(e) {
603
- return typeof e == "symbol" || Dl(e) && Ll(e) == jl;
596
+ var Dl = "[object Symbol]";
597
+ function jl(e) {
598
+ return typeof e == "symbol" || Ll(e) && Ml(e) == Dl;
604
599
  }
605
- var Fl = /\s/;
606
- function Nl(e) {
607
- for (var t = e.length; t-- && Fl.test(e.charAt(t)); )
600
+ var _l = /\s/;
601
+ function Fl(e) {
602
+ for (var t = e.length; t-- && _l.test(e.charAt(t)); )
608
603
  ;
609
604
  return t;
610
605
  }
611
- var Bl = /^\s+/;
612
- function Il(e) {
613
- return e && e.slice(0, Nl(e) + 1).replace(Bl, "");
606
+ var Nl = /^\s+/;
607
+ function Bl(e) {
608
+ return e && e.slice(0, Fl(e) + 1).replace(Nl, "");
614
609
  }
615
610
  function Wt(e) {
616
611
  var t = typeof e;
617
612
  return e != null && (t == "object" || t == "function");
618
613
  }
619
- var qr = 0 / 0, Wl = /^[-+]0x[0-9a-f]+$/i, Ul = /^0b[01]+$/i, zl = /^0o[0-7]+$/i, Hl = parseInt;
614
+ var qr = 0 / 0, Il = /^[-+]0x[0-9a-f]+$/i, Wl = /^0b[01]+$/i, Ul = /^0o[0-7]+$/i, zl = parseInt;
620
615
  function Gr(e) {
621
616
  if (typeof e == "number")
622
617
  return e;
623
- if (_l(e))
618
+ if (jl(e))
624
619
  return qr;
625
620
  if (Wt(e)) {
626
621
  var t = typeof e.valueOf == "function" ? e.valueOf() : e;
@@ -628,43 +623,43 @@ function Gr(e) {
628
623
  }
629
624
  if (typeof e != "string")
630
625
  return e === 0 ? e : +e;
631
- e = Il(e);
632
- var n = Ul.test(e);
633
- return n || zl.test(e) ? Hl(e.slice(2), n ? 2 : 8) : Wl.test(e) ? qr : +e;
626
+ e = Bl(e);
627
+ var n = Wl.test(e);
628
+ return n || Ul.test(e) ? zl(e.slice(2), n ? 2 : 8) : Il.test(e) ? qr : +e;
634
629
  }
635
- var $l = function() {
630
+ var Hl = function() {
636
631
  return Ms.Date.now();
637
632
  };
638
- const bn = $l;
639
- var ql = "Expected a function", Gl = Math.max, Xl = Math.min;
633
+ const bn = Hl;
634
+ var $l = "Expected a function", ql = Math.max, Gl = Math.min;
640
635
  function Mt(e, t, n) {
641
636
  var r, i, o, s, a, l, u = 0, f = !1, c = !1, h = !0;
642
637
  if (typeof e != "function")
643
- throw new TypeError(ql);
644
- t = Gr(t) || 0, Wt(n) && (f = !!n.leading, c = "maxWait" in n, o = c ? Gl(Gr(n.maxWait) || 0, t) : o, h = "trailing" in n ? !!n.trailing : h);
645
- function d(T) {
638
+ throw new TypeError($l);
639
+ t = Gr(t) || 0, Wt(n) && (f = !!n.leading, c = "maxWait" in n, o = c ? ql(Gr(n.maxWait) || 0, t) : o, h = "trailing" in n ? !!n.trailing : h);
640
+ function d(E) {
646
641
  var A = r, P = i;
647
- return r = i = void 0, u = T, s = e.apply(P, A), s;
642
+ return r = i = void 0, u = E, s = e.apply(P, A), s;
648
643
  }
649
- function p(T) {
650
- return u = T, a = setTimeout(b, t), f ? d(T) : s;
644
+ function p(E) {
645
+ return u = E, a = setTimeout(b, t), f ? d(E) : s;
651
646
  }
652
- function m(T) {
653
- var A = T - l, P = T - u, O = t - A;
654
- return c ? Xl(O, o - P) : O;
647
+ function m(E) {
648
+ var A = E - l, P = E - u, O = t - A;
649
+ return c ? Gl(O, o - P) : O;
655
650
  }
656
- function g(T) {
657
- var A = T - l, P = T - u;
651
+ function g(E) {
652
+ var A = E - l, P = E - u;
658
653
  return l === void 0 || A >= t || A < 0 || c && P >= o;
659
654
  }
660
655
  function b() {
661
- var T = bn();
662
- if (g(T))
663
- return x(T);
664
- a = setTimeout(b, m(T));
656
+ var E = bn();
657
+ if (g(E))
658
+ return x(E);
659
+ a = setTimeout(b, m(E));
665
660
  }
666
- function x(T) {
667
- return a = void 0, h && r ? d(T) : (r = i = void 0, s);
661
+ function x(E) {
662
+ return a = void 0, h && r ? d(E) : (r = i = void 0, s);
668
663
  }
669
664
  function y() {
670
665
  a !== void 0 && clearTimeout(a), u = 0, r = l = i = a = void 0;
@@ -672,9 +667,9 @@ function Mt(e, t, n) {
672
667
  function S() {
673
668
  return a === void 0 ? s : x(bn());
674
669
  }
675
- function E() {
676
- var T = bn(), A = g(T);
677
- if (r = arguments, i = this, l = T, A) {
670
+ function T() {
671
+ var E = bn(), A = g(E);
672
+ if (r = arguments, i = this, l = E, A) {
678
673
  if (a === void 0)
679
674
  return p(l);
680
675
  if (c)
@@ -682,21 +677,21 @@ function Mt(e, t, n) {
682
677
  }
683
678
  return a === void 0 && (a = setTimeout(b, t)), s;
684
679
  }
685
- return E.cancel = y, E.flush = S, E;
680
+ return T.cancel = y, T.flush = S, T;
686
681
  }
687
- var Kl = "Expected a function";
688
- function Yl(e, t, n) {
682
+ var Xl = "Expected a function";
683
+ function Kl(e, t, n) {
689
684
  var r = !0, i = !0;
690
685
  if (typeof e != "function")
691
- throw new TypeError(Kl);
686
+ throw new TypeError(Xl);
692
687
  return Wt(n) && (r = "leading" in n ? !!n.leading : r, i = "trailing" in n ? !!n.trailing : i), Mt(e, t, {
693
688
  leading: r,
694
689
  maxWait: t,
695
690
  trailing: i
696
691
  });
697
692
  }
698
- var Jl = !!(typeof window < "u" && window.document && window.document.createElement), Zl = Jl;
699
- const Ds = /* @__PURE__ */ Wa(Zl);
693
+ var Yl = !!(typeof window < "u" && window.document && window.document.createElement), Jl = Yl;
694
+ const Ds = /* @__PURE__ */ Wa(Jl);
700
695
  var $e = function() {
701
696
  return $e = Object.assign || function(t) {
702
697
  for (var n, r = 1, i = arguments.length; r < i; r++) {
@@ -764,7 +759,7 @@ function Bs(e, t) {
764
759
  function Is(e) {
765
760
  return ".".concat(e.split(" ").join("."));
766
761
  }
767
- var Ql = /* @__PURE__ */ Object.freeze({
762
+ var Zl = /* @__PURE__ */ Object.freeze({
768
763
  __proto__: null,
769
764
  getElementWindow: js,
770
765
  getElementDocument: _s,
@@ -772,7 +767,7 @@ var Ql = /* @__PURE__ */ Object.freeze({
772
767
  addClasses: Ns,
773
768
  removeClasses: Bs,
774
769
  classNamesToQuery: Is
775
- }), ye = js, xn = _s, ec = Fs, ve = Ns, be = Bs, G = Is, At = (
770
+ }), ye = js, xn = _s, Ql = Fs, ve = Ns, be = Bs, X = Is, At = (
776
771
  /** @class */
777
772
  function() {
778
773
  function e(t, n) {
@@ -809,11 +804,11 @@ var Ql = /* @__PURE__ */ Object.freeze({
809
804
  }, this.drag = function(i) {
810
805
  var o, s, a, l, u, f, c, h, d, p, m;
811
806
  if (!(!r.draggedAxis || !r.contentWrapperEl)) {
812
- var g, b = r.axis[r.draggedAxis].track, x = (s = (o = b.rect) === null || o === void 0 ? void 0 : o[r.axis[r.draggedAxis].sizeAttr]) !== null && s !== void 0 ? s : 0, y = r.axis[r.draggedAxis].scrollbar, S = (l = (a = r.contentWrapperEl) === null || a === void 0 ? void 0 : a[r.axis[r.draggedAxis].scrollSizeAttr]) !== null && l !== void 0 ? l : 0, E = parseInt((f = (u = r.elStyles) === null || u === void 0 ? void 0 : u[r.axis[r.draggedAxis].sizeAttr]) !== null && f !== void 0 ? f : "0px", 10);
807
+ var g, b = r.axis[r.draggedAxis].track, x = (s = (o = b.rect) === null || o === void 0 ? void 0 : o[r.axis[r.draggedAxis].sizeAttr]) !== null && s !== void 0 ? s : 0, y = r.axis[r.draggedAxis].scrollbar, S = (l = (a = r.contentWrapperEl) === null || a === void 0 ? void 0 : a[r.axis[r.draggedAxis].scrollSizeAttr]) !== null && l !== void 0 ? l : 0, T = parseInt((f = (u = r.elStyles) === null || u === void 0 ? void 0 : u[r.axis[r.draggedAxis].sizeAttr]) !== null && f !== void 0 ? f : "0px", 10);
813
808
  i.preventDefault(), i.stopPropagation(), r.draggedAxis === "y" ? g = i.pageY : g = i.pageX;
814
- var T = g - ((h = (c = b.rect) === null || c === void 0 ? void 0 : c[r.axis[r.draggedAxis].offsetAttr]) !== null && h !== void 0 ? h : 0) - r.axis[r.draggedAxis].dragOffset;
815
- T = r.draggedAxis === "x" && r.isRtl ? ((p = (d = b.rect) === null || d === void 0 ? void 0 : d[r.axis[r.draggedAxis].sizeAttr]) !== null && p !== void 0 ? p : 0) - y.size - T : T;
816
- var A = T / (x - y.size), P = A * (S - E);
809
+ var E = g - ((h = (c = b.rect) === null || c === void 0 ? void 0 : c[r.axis[r.draggedAxis].offsetAttr]) !== null && h !== void 0 ? h : 0) - r.axis[r.draggedAxis].dragOffset;
810
+ E = r.draggedAxis === "x" && r.isRtl ? ((p = (d = b.rect) === null || d === void 0 ? void 0 : d[r.axis[r.draggedAxis].sizeAttr]) !== null && p !== void 0 ? p : 0) - y.size - E : E;
811
+ var A = E / (x - y.size), P = A * (S - T);
817
812
  r.draggedAxis === "x" && r.isRtl && (P = !((m = e.getRtlHelpers()) === null || m === void 0) && m.isScrollingToNegative ? -P : P), r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr] = P;
818
813
  }
819
814
  }, this.onEndDrag = function(i) {
@@ -852,7 +847,7 @@ var Ql = /* @__PURE__ */ Object.freeze({
852
847
  }
853
848
  }, typeof this.el != "object" || !this.el.nodeName)
854
849
  throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));
855
- this.onMouseMove = Yl(this._onMouseMove, 64), this.onWindowResize = Mt(this._onWindowResize, 64, { leading: !0 }), this.onStopScrolling = Mt(this._onStopScrolling, this.stopScrollDelay), this.onMouseEntered = Mt(this._onMouseEntered, this.stopScrollDelay), this.init();
850
+ this.onMouseMove = Kl(this._onMouseMove, 64), this.onWindowResize = Mt(this._onWindowResize, 64, { leading: !0 }), this.onStopScrolling = Mt(this._onStopScrolling, this.stopScrollDelay), this.onMouseEntered = Mt(this._onMouseEntered, this.stopScrollDelay), this.init();
856
851
  }
857
852
  return e.getRtlHelpers = function() {
858
853
  if (e.rtlHelpers)
@@ -888,7 +883,7 @@ var Ql = /* @__PURE__ */ Object.freeze({
888
883
  Ds && (this.initDOM(), this.rtlHelpers = e.getRtlHelpers(), this.scrollbarWidth = this.getScrollbarWidth(), this.recalculate(), this.initListeners());
889
884
  }, e.prototype.initDOM = function() {
890
885
  var t, n;
891
- this.wrapperEl = this.el.querySelector(G(this.classNames.wrapper)), this.contentWrapperEl = this.options.scrollableNode || this.el.querySelector(G(this.classNames.contentWrapper)), this.contentEl = this.options.contentNode || this.el.querySelector(G(this.classNames.contentEl)), this.offsetEl = this.el.querySelector(G(this.classNames.offset)), this.maskEl = this.el.querySelector(G(this.classNames.mask)), this.placeholderEl = this.findChild(this.wrapperEl, G(this.classNames.placeholder)), this.heightAutoObserverWrapperEl = this.el.querySelector(G(this.classNames.heightAutoObserverWrapperEl)), this.heightAutoObserverEl = this.el.querySelector(G(this.classNames.heightAutoObserverEl)), this.axis.x.track.el = this.findChild(this.el, "".concat(G(this.classNames.track)).concat(G(this.classNames.horizontal))), this.axis.y.track.el = this.findChild(this.el, "".concat(G(this.classNames.track)).concat(G(this.classNames.vertical))), this.axis.x.scrollbar.el = ((t = this.axis.x.track.el) === null || t === void 0 ? void 0 : t.querySelector(G(this.classNames.scrollbar))) || null, this.axis.y.scrollbar.el = ((n = this.axis.y.track.el) === null || n === void 0 ? void 0 : n.querySelector(G(this.classNames.scrollbar))) || null, this.options.autoHide || (ve(this.axis.x.scrollbar.el, this.classNames.visible), ve(this.axis.y.scrollbar.el, this.classNames.visible));
886
+ this.wrapperEl = this.el.querySelector(X(this.classNames.wrapper)), this.contentWrapperEl = this.options.scrollableNode || this.el.querySelector(X(this.classNames.contentWrapper)), this.contentEl = this.options.contentNode || this.el.querySelector(X(this.classNames.contentEl)), this.offsetEl = this.el.querySelector(X(this.classNames.offset)), this.maskEl = this.el.querySelector(X(this.classNames.mask)), this.placeholderEl = this.findChild(this.wrapperEl, X(this.classNames.placeholder)), this.heightAutoObserverWrapperEl = this.el.querySelector(X(this.classNames.heightAutoObserverWrapperEl)), this.heightAutoObserverEl = this.el.querySelector(X(this.classNames.heightAutoObserverEl)), this.axis.x.track.el = this.findChild(this.el, "".concat(X(this.classNames.track)).concat(X(this.classNames.horizontal))), this.axis.y.track.el = this.findChild(this.el, "".concat(X(this.classNames.track)).concat(X(this.classNames.vertical))), this.axis.x.scrollbar.el = ((t = this.axis.x.track.el) === null || t === void 0 ? void 0 : t.querySelector(X(this.classNames.scrollbar))) || null, this.axis.y.scrollbar.el = ((n = this.axis.y.track.el) === null || n === void 0 ? void 0 : n.querySelector(X(this.classNames.scrollbar))) || null, this.options.autoHide || (ve(this.axis.x.scrollbar.el, this.classNames.visible), ve(this.axis.y.scrollbar.el, this.classNames.visible));
892
887
  }, e.prototype.initListeners = function() {
893
888
  var t = this, n, r = ye(this.el);
894
889
  if (this.el.addEventListener("mouseenter", this.onMouseEnter), this.el.addEventListener("pointerdown", this.onPointerEvent, !0), this.el.addEventListener("mousemove", this.onMouseMove), this.el.addEventListener("mouseleave", this.onMouseLeave), (n = this.contentWrapperEl) === null || n === void 0 || n.addEventListener("scroll", this.onScroll), r.addEventListener("resize", this.onWindowResize), !!this.contentEl) {
@@ -1020,7 +1015,7 @@ var Ql = /* @__PURE__ */ Object.freeze({
1020
1015
  scrollableNode: null,
1021
1016
  contentNode: null,
1022
1017
  autoHide: !0
1023
- }, e.getOptions = ec, e.helpers = Ql, e;
1018
+ }, e.getOptions = Ql, e.helpers = Zl, e;
1024
1019
  }()
1025
1020
  ), Y = function() {
1026
1021
  return Y = Object.assign || function(t) {
@@ -1032,7 +1027,7 @@ var Ql = /* @__PURE__ */ Object.freeze({
1032
1027
  return t;
1033
1028
  }, Y.apply(this, arguments);
1034
1029
  };
1035
- function tc(e, t) {
1030
+ function ec(e, t) {
1036
1031
  var n = {};
1037
1032
  for (var r in e)
1038
1033
  Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
@@ -1042,7 +1037,7 @@ function tc(e, t) {
1042
1037
  return n;
1043
1038
  }
1044
1039
  var Ws = w.forwardRef(function(e, t) {
1045
- var n = e.children, r = e.scrollableNodeProps, i = r === void 0 ? {} : r, o = tc(e, ["children", "scrollableNodeProps"]), s = w.useRef(), a = w.useRef(), l = w.useRef(), u = {}, f = {};
1040
+ var n = e.children, r = e.scrollableNodeProps, i = r === void 0 ? {} : r, o = ec(e, ["children", "scrollableNodeProps"]), s = w.useRef(), a = w.useRef(), l = w.useRef(), u = {}, f = {};
1046
1041
  Object.keys(o).forEach(function(d) {
1047
1042
  Object.prototype.hasOwnProperty.call(At.defaultOptions, d) ? u[d] = o[d] : f[d] = o[d];
1048
1043
  });
@@ -1103,8 +1098,8 @@ const Us = w.createContext({
1103
1098
  transformPagePoint: (e) => e,
1104
1099
  isStatic: !1,
1105
1100
  reducedMotion: "never"
1106
- }), rn = w.createContext({}), lr = w.createContext(null), sn = typeof document < "u", nc = sn ? w.useLayoutEffect : w.useEffect, zs = w.createContext({ strict: !1 }), cr = (e) => e.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase(), rc = "framerAppearId", Hs = "data-" + cr(rc);
1107
- function ic(e, t, n, r) {
1101
+ }), rn = w.createContext({}), lr = w.createContext(null), sn = typeof document < "u", tc = sn ? w.useLayoutEffect : w.useEffect, zs = w.createContext({ strict: !1 }), cr = (e) => e.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase(), nc = "framerAppearId", Hs = "data-" + cr(nc);
1102
+ function rc(e, t, n, r) {
1108
1103
  const { visualElement: i } = w.useContext(rn), o = w.useContext(zs), s = w.useContext(lr), a = w.useContext(Us).reducedMotion, l = w.useRef();
1109
1104
  r = r || o.renderer, !l.current && r && (l.current = r(e, {
1110
1105
  visualState: t,
@@ -1119,7 +1114,7 @@ function ic(e, t, n, r) {
1119
1114
  u && u.update(n, s);
1120
1115
  });
1121
1116
  const f = w.useRef(!!(n[Hs] && !window.HandoffComplete));
1122
- return nc(() => {
1117
+ return tc(() => {
1123
1118
  u && (u.render(), f.current && u.animationState && u.animationState.animateChanges());
1124
1119
  }), w.useEffect(() => {
1125
1120
  u && (u.updateFeatures(), !f.current && u.animationState && u.animationState.animateChanges(), f.current && (f.current = !1, window.HandoffComplete = !0));
@@ -1128,7 +1123,7 @@ function ic(e, t, n, r) {
1128
1123
  function qe(e) {
1129
1124
  return e && typeof e == "object" && Object.prototype.hasOwnProperty.call(e, "current");
1130
1125
  }
1131
- function sc(e, t, n) {
1126
+ function ic(e, t, n) {
1132
1127
  return w.useCallback(
1133
1128
  (r) => {
1134
1129
  r && e.mount && e.mount(r), t && (r ? t.mount(r) : t.unmount()), n && (typeof n == "function" ? n(r) : qe(n) && (n.current = r));
@@ -1162,7 +1157,7 @@ function an(e) {
1162
1157
  function $s(e) {
1163
1158
  return !!(an(e) || e.variants);
1164
1159
  }
1165
- function oc(e, t) {
1160
+ function sc(e, t) {
1166
1161
  if (an(e)) {
1167
1162
  const { initial: n, animate: r } = e;
1168
1163
  return {
@@ -1172,8 +1167,8 @@ function oc(e, t) {
1172
1167
  }
1173
1168
  return e.inherit !== !1 ? t : {};
1174
1169
  }
1175
- function ac(e) {
1176
- const { initial: t, animate: n } = oc(e, w.useContext(rn));
1170
+ function oc(e) {
1171
+ const { initial: t, animate: n } = sc(e, w.useContext(rn));
1177
1172
  return w.useMemo(() => ({ initial: t, animate: n }), [Yr(t), Yr(n)]);
1178
1173
  }
1179
1174
  function Yr(e) {
@@ -1203,25 +1198,25 @@ for (const e in Jr)
1203
1198
  mt[e] = {
1204
1199
  isEnabled: (t) => Jr[e].some((n) => !!t[n])
1205
1200
  };
1206
- function lc(e) {
1201
+ function ac(e) {
1207
1202
  for (const t in e)
1208
1203
  mt[t] = {
1209
1204
  ...mt[t],
1210
1205
  ...e[t]
1211
1206
  };
1212
1207
  }
1213
- const qs = w.createContext({}), Gs = w.createContext({}), cc = Symbol.for("motionComponentSymbol");
1214
- function uc({ preloadedFeatures: e, createVisualElement: t, useRender: n, useVisualState: r, Component: i }) {
1215
- e && lc(e);
1208
+ const qs = w.createContext({}), Gs = w.createContext({}), lc = Symbol.for("motionComponentSymbol");
1209
+ function cc({ preloadedFeatures: e, createVisualElement: t, useRender: n, useVisualState: r, Component: i }) {
1210
+ e && ac(e);
1216
1211
  function o(a, l) {
1217
1212
  let u;
1218
1213
  const f = {
1219
1214
  ...w.useContext(Us),
1220
1215
  ...a,
1221
- layoutId: fc(a)
1222
- }, { isStatic: c } = f, h = ac(a), d = r(a, c);
1216
+ layoutId: uc(a)
1217
+ }, { isStatic: c } = f, h = oc(a), d = r(a, c);
1223
1218
  if (!c && sn) {
1224
- h.visualElement = ic(i, d, f, t);
1219
+ h.visualElement = rc(i, d, f, t);
1225
1220
  const p = w.useContext(Gs), m = w.useContext(zs).strict;
1226
1221
  h.visualElement && (u = h.visualElement.loadFeatures(
1227
1222
  // Note: Pass the full new combined props to correctly re-render dynamic feature components.
@@ -1235,19 +1230,19 @@ function uc({ preloadedFeatures: e, createVisualElement: t, useRender: n, useVis
1235
1230
  rn.Provider,
1236
1231
  { value: h },
1237
1232
  u && h.visualElement ? w.createElement(u, { visualElement: h.visualElement, ...f }) : null,
1238
- n(i, a, sc(d, h.visualElement, l), d, c, h.visualElement)
1233
+ n(i, a, ic(d, h.visualElement, l), d, c, h.visualElement)
1239
1234
  );
1240
1235
  }
1241
1236
  const s = w.forwardRef(o);
1242
- return s[cc] = i, s;
1237
+ return s[lc] = i, s;
1243
1238
  }
1244
- function fc({ layoutId: e }) {
1239
+ function uc({ layoutId: e }) {
1245
1240
  const t = w.useContext(qs).id;
1246
1241
  return t && e !== void 0 ? t + "-" + e : e;
1247
1242
  }
1248
- function hc(e) {
1243
+ function fc(e) {
1249
1244
  function t(r, i = {}) {
1250
- return uc(e(r, i));
1245
+ return cc(e(r, i));
1251
1246
  }
1252
1247
  if (typeof Proxy > "u")
1253
1248
  return t;
@@ -1261,7 +1256,7 @@ function hc(e) {
1261
1256
  get: (r, i) => (n.has(i) || n.set(i, t(i)), n.get(i))
1262
1257
  });
1263
1258
  }
1264
- const dc = [
1259
+ const hc = [
1265
1260
  "animate",
1266
1261
  "circle",
1267
1262
  "defs",
@@ -1301,7 +1296,7 @@ function hr(e) {
1301
1296
  /**
1302
1297
  * If it's in our list of lowercase SVG tags, it's an SVG component
1303
1298
  */
1304
- !!(dc.indexOf(e) > -1 || /**
1299
+ !!(hc.indexOf(e) > -1 || /**
1305
1300
  * If it contains a capital letter, it's an SVG component
1306
1301
  */
1307
1302
  /[A-Z]/.test(e))
@@ -1309,7 +1304,7 @@ function hr(e) {
1309
1304
  );
1310
1305
  }
1311
1306
  const Ut = {};
1312
- function pc(e) {
1307
+ function dc(e) {
1313
1308
  Object.assign(Ut, e);
1314
1309
  }
1315
1310
  const vt = [
@@ -1334,24 +1329,24 @@ const vt = [
1334
1329
  function Xs(e, { layout: t, layoutId: n }) {
1335
1330
  return _e.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!Ut[e] || e === "opacity");
1336
1331
  }
1337
- const X = (e) => !!(e && e.getVelocity), mc = {
1332
+ const K = (e) => !!(e && e.getVelocity), pc = {
1338
1333
  x: "translateX",
1339
1334
  y: "translateY",
1340
1335
  z: "translateZ",
1341
1336
  transformPerspective: "perspective"
1342
- }, gc = vt.length;
1343
- function yc(e, { enableHardwareAcceleration: t = !0, allowTransformNone: n = !0 }, r, i) {
1337
+ }, mc = vt.length;
1338
+ function gc(e, { enableHardwareAcceleration: t = !0, allowTransformNone: n = !0 }, r, i) {
1344
1339
  let o = "";
1345
- for (let s = 0; s < gc; s++) {
1340
+ for (let s = 0; s < mc; s++) {
1346
1341
  const a = vt[s];
1347
1342
  if (e[a] !== void 0) {
1348
- const l = mc[a] || a;
1343
+ const l = pc[a] || a;
1349
1344
  o += `${l}(${e[a]}) `;
1350
1345
  }
1351
1346
  }
1352
1347
  return t && !e.z && (o += "translateZ(0)"), o = o.trim(), i ? o = i(e, r ? "" : o) : n && r && (o = "none"), o;
1353
1348
  }
1354
- const Ks = (e) => (t) => typeof t == "string" && t.startsWith(e), Ys = Ks("--"), Wn = Ks("var(--"), vc = /var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g, bc = (e, t) => t && typeof e == "number" ? t.transform(e) : e, Pe = (e, t, n) => Math.min(Math.max(n, e), t), Fe = {
1349
+ const Ks = (e) => (t) => typeof t == "string" && t.startsWith(e), Ys = Ks("--"), Wn = Ks("var(--"), yc = /var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g, vc = (e, t) => t && typeof e == "number" ? t.transform(e) : e, Pe = (e, t, n) => Math.min(Math.max(n, e), t), Fe = {
1355
1350
  test: (e) => typeof e == "number",
1356
1351
  parse: parseFloat,
1357
1352
  transform: (e) => e
@@ -1361,7 +1356,7 @@ const Ks = (e) => (t) => typeof t == "string" && t.startsWith(e), Ys = Ks("--"),
1361
1356
  }, Pt = {
1362
1357
  ...Fe,
1363
1358
  default: 1
1364
- }, lt = (e) => Math.round(e * 1e5) / 1e5, ln = /(-)?([\d]*\.?[\d])+/g, Js = /(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi, xc = /^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;
1359
+ }, lt = (e) => Math.round(e * 1e5) / 1e5, ln = /(-)?([\d]*\.?[\d])+/g, Js = /(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi, bc = /^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;
1365
1360
  function bt(e) {
1366
1361
  return typeof e == "string";
1367
1362
  }
@@ -1369,7 +1364,7 @@ const xt = (e) => ({
1369
1364
  test: (t) => bt(t) && t.endsWith(e) && t.split(" ").length === 1,
1370
1365
  parse: parseFloat,
1371
1366
  transform: (t) => `${t}${e}`
1372
- }), we = xt("deg"), le = xt("%"), C = xt("px"), wc = xt("vh"), Sc = xt("vw"), Zr = {
1367
+ }), we = xt("deg"), le = xt("%"), C = xt("px"), xc = xt("vh"), wc = xt("vw"), Zr = {
1373
1368
  ...le,
1374
1369
  parse: (e) => le.parse(e) / 100,
1375
1370
  transform: (e) => le.transform(e * 100)
@@ -1451,7 +1446,7 @@ function dr(e, t, n, r) {
1451
1446
  o[c] = h;
1452
1447
  continue;
1453
1448
  }
1454
- const d = Zs[c], p = bc(h, d);
1449
+ const d = Zs[c], p = vc(h, d);
1455
1450
  if (_e.has(c)) {
1456
1451
  if (l = !0, s[c] = p, !f)
1457
1452
  continue;
@@ -1459,7 +1454,7 @@ function dr(e, t, n, r) {
1459
1454
  } else
1460
1455
  c.startsWith("origin") ? (u = !0, a[c] = p) : i[c] = p;
1461
1456
  }
1462
- if (t.transform || (l || r ? i.transform = yc(e.transform, n, f, r) : i.transform && (i.transform = "none")), u) {
1457
+ if (t.transform || (l || r ? i.transform = gc(e.transform, n, f, r) : i.transform && (i.transform = "none")), u) {
1463
1458
  const { originX: c = "50%", originY: h = "50%", originZ: d = 0 } = a;
1464
1459
  i.transformOrigin = `${c} ${h} ${d}`;
1465
1460
  }
@@ -1472,23 +1467,23 @@ const pr = () => ({
1472
1467
  });
1473
1468
  function Qs(e, t, n) {
1474
1469
  for (const r in t)
1475
- !X(t[r]) && !Xs(r, n) && (e[r] = t[r]);
1470
+ !K(t[r]) && !Xs(r, n) && (e[r] = t[r]);
1476
1471
  }
1477
- function Ec({ transformTemplate: e }, t, n) {
1472
+ function Sc({ transformTemplate: e }, t, n) {
1478
1473
  return w.useMemo(() => {
1479
1474
  const r = pr();
1480
1475
  return dr(r, t, { enableHardwareAcceleration: !n }, e), Object.assign({}, r.vars, r.style);
1481
1476
  }, [t]);
1482
1477
  }
1483
- function Tc(e, t, n) {
1478
+ function Ec(e, t, n) {
1484
1479
  const r = e.style || {}, i = {};
1485
- return Qs(i, r, e), Object.assign(i, Ec(e, t, n)), e.transformValues ? e.transformValues(i) : i;
1480
+ return Qs(i, r, e), Object.assign(i, Sc(e, t, n)), e.transformValues ? e.transformValues(i) : i;
1486
1481
  }
1487
- function Ac(e, t, n) {
1488
- const r = {}, i = Tc(e, t, n);
1482
+ function Tc(e, t, n) {
1483
+ const r = {}, i = Ec(e, t, n);
1489
1484
  return e.drag && e.dragListener !== !1 && (r.draggable = !1, i.userSelect = i.WebkitUserSelect = i.WebkitTouchCallout = "none", i.touchAction = e.drag === !0 ? "none" : `pan-${e.drag === "x" ? "y" : "x"}`), e.tabIndex === void 0 && (e.onTap || e.onTapStart || e.whileTap) && (r.tabIndex = 0), r.style = i, r;
1490
1485
  }
1491
- const Pc = /* @__PURE__ */ new Set([
1486
+ const Ac = /* @__PURE__ */ new Set([
1492
1487
  "animate",
1493
1488
  "exit",
1494
1489
  "variants",
@@ -1522,17 +1517,17 @@ const Pc = /* @__PURE__ */ new Set([
1522
1517
  "viewport"
1523
1518
  ]);
1524
1519
  function zt(e) {
1525
- return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") || Pc.has(e);
1520
+ return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") || Ac.has(e);
1526
1521
  }
1527
1522
  let eo = (e) => !zt(e);
1528
- function Cc(e) {
1523
+ function Pc(e) {
1529
1524
  e && (eo = (t) => t.startsWith("on") ? !zt(t) : e(t));
1530
1525
  }
1531
1526
  try {
1532
- Cc(require("@emotion/is-prop-valid").default);
1527
+ Pc(require("@emotion/is-prop-valid").default);
1533
1528
  } catch {
1534
1529
  }
1535
- function Rc(e, t, n) {
1530
+ function Cc(e, t, n) {
1536
1531
  const r = {};
1537
1532
  for (const i in e)
1538
1533
  i === "values" && typeof e.values == "object" || (eo(i) || n === !0 && zt(i) || !t && !zt(i) || // If trying to use native HTML drag events, forward drag listeners
@@ -1542,20 +1537,20 @@ function Rc(e, t, n) {
1542
1537
  function ei(e, t, n) {
1543
1538
  return typeof e == "string" ? e : C.transform(t + n * e);
1544
1539
  }
1545
- function Oc(e, t, n) {
1540
+ function Rc(e, t, n) {
1546
1541
  const r = ei(t, e.x, e.width), i = ei(n, e.y, e.height);
1547
1542
  return `${r} ${i}`;
1548
1543
  }
1549
- const Vc = {
1544
+ const Oc = {
1550
1545
  offset: "stroke-dashoffset",
1551
1546
  array: "stroke-dasharray"
1552
- }, kc = {
1547
+ }, Vc = {
1553
1548
  offset: "strokeDashoffset",
1554
1549
  array: "strokeDasharray"
1555
1550
  };
1556
- function Mc(e, t, n = 1, r = 0, i = !0) {
1551
+ function kc(e, t, n = 1, r = 0, i = !0) {
1557
1552
  e.pathLength = 1;
1558
- const o = i ? Vc : kc;
1553
+ const o = i ? Oc : Vc;
1559
1554
  e[o.offset] = C.transform(-r);
1560
1555
  const s = C.transform(t), a = C.transform(n);
1561
1556
  e[o.array] = `${s} ${a}`;
@@ -1578,13 +1573,13 @@ function mr(e, {
1578
1573
  }
1579
1574
  e.attrs = e.style, e.style = {};
1580
1575
  const { attrs: d, style: p, dimensions: m } = e;
1581
- d.transform && (m && (p.transform = d.transform), delete d.transform), m && (i !== void 0 || o !== void 0 || p.transform) && (p.transformOrigin = Oc(m, i !== void 0 ? i : 0.5, o !== void 0 ? o : 0.5)), t !== void 0 && (d.x = t), n !== void 0 && (d.y = n), r !== void 0 && (d.scale = r), s !== void 0 && Mc(d, s, a, l, !1);
1576
+ d.transform && (m && (p.transform = d.transform), delete d.transform), m && (i !== void 0 || o !== void 0 || p.transform) && (p.transformOrigin = Rc(m, i !== void 0 ? i : 0.5, o !== void 0 ? o : 0.5)), t !== void 0 && (d.x = t), n !== void 0 && (d.y = n), r !== void 0 && (d.scale = r), s !== void 0 && kc(d, s, a, l, !1);
1582
1577
  }
1583
1578
  const to = () => ({
1584
1579
  ...pr(),
1585
1580
  attrs: {}
1586
1581
  }), gr = (e) => typeof e == "string" && e.toLowerCase() === "svg";
1587
- function Lc(e, t, n, r) {
1582
+ function Mc(e, t, n, r) {
1588
1583
  const i = w.useMemo(() => {
1589
1584
  const o = to();
1590
1585
  return mr(o, t, { enableHardwareAcceleration: !1 }, gr(r), e.transformTemplate), {
@@ -1598,13 +1593,13 @@ function Lc(e, t, n, r) {
1598
1593
  }
1599
1594
  return i;
1600
1595
  }
1601
- function Dc(e = !1) {
1596
+ function Lc(e = !1) {
1602
1597
  return (n, r, i, { latestValues: o }, s) => {
1603
- const l = (hr(n) ? Lc : Ac)(r, o, s, n), f = {
1604
- ...Rc(r, typeof n == "string", e),
1598
+ const l = (hr(n) ? Mc : Tc)(r, o, s, n), f = {
1599
+ ...Cc(r, typeof n == "string", e),
1605
1600
  ...l,
1606
1601
  ref: i
1607
- }, { children: c } = r, h = w.useMemo(() => X(c) ? c.get() : c, [c]);
1602
+ }, { children: c } = r, h = w.useMemo(() => K(c) ? c.get() : c, [c]);
1608
1603
  return w.createElement(n, {
1609
1604
  ...f,
1610
1605
  children: h
@@ -1649,13 +1644,13 @@ function io(e, t, n, r) {
1649
1644
  function yr(e, t) {
1650
1645
  const { style: n } = e, r = {};
1651
1646
  for (const i in n)
1652
- (X(n[i]) || t.style && X(t.style[i]) || Xs(i, e)) && (r[i] = n[i]);
1647
+ (K(n[i]) || t.style && K(t.style[i]) || Xs(i, e)) && (r[i] = n[i]);
1653
1648
  return r;
1654
1649
  }
1655
1650
  function so(e, t) {
1656
1651
  const n = yr(e, t);
1657
1652
  for (const r in e)
1658
- if (X(e[r]) || X(t[r])) {
1653
+ if (K(e[r]) || K(t[r])) {
1659
1654
  const i = vt.indexOf(r) !== -1 ? "attr" + r.charAt(0).toUpperCase() + r.substring(1) : r;
1660
1655
  n[i] = e[r];
1661
1656
  }
@@ -1664,27 +1659,27 @@ function so(e, t) {
1664
1659
  function vr(e, t, n, r = {}, i = {}) {
1665
1660
  return typeof t == "function" && (t = t(n !== void 0 ? n : e.custom, r, i)), typeof t == "string" && (t = e.variants && e.variants[t]), typeof t == "function" && (t = t(n !== void 0 ? n : e.custom, r, i)), t;
1666
1661
  }
1667
- function jc(e) {
1662
+ function Dc(e) {
1668
1663
  const t = w.useRef(null);
1669
1664
  return t.current === null && (t.current = e()), t.current;
1670
1665
  }
1671
- const Ht = (e) => Array.isArray(e), _c = (e) => !!(e && typeof e == "object" && e.mix && e.toValue), Fc = (e) => Ht(e) ? e[e.length - 1] || 0 : e;
1666
+ const Ht = (e) => Array.isArray(e), jc = (e) => !!(e && typeof e == "object" && e.mix && e.toValue), _c = (e) => Ht(e) ? e[e.length - 1] || 0 : e;
1672
1667
  function Lt(e) {
1673
- const t = X(e) ? e.get() : e;
1674
- return _c(t) ? t.toValue() : t;
1668
+ const t = K(e) ? e.get() : e;
1669
+ return jc(t) ? t.toValue() : t;
1675
1670
  }
1676
- function Nc({ scrapeMotionValuesFromProps: e, createRenderState: t, onMount: n }, r, i, o) {
1671
+ function Fc({ scrapeMotionValuesFromProps: e, createRenderState: t, onMount: n }, r, i, o) {
1677
1672
  const s = {
1678
- latestValues: Bc(r, i, o, e),
1673
+ latestValues: Nc(r, i, o, e),
1679
1674
  renderState: t()
1680
1675
  };
1681
1676
  return n && (s.mount = (a) => n(r, a, s)), s;
1682
1677
  }
1683
1678
  const oo = (e) => (t, n) => {
1684
- const r = w.useContext(rn), i = w.useContext(lr), o = () => Nc(e, t, r, i);
1685
- return n ? o() : jc(o);
1679
+ const r = w.useContext(rn), i = w.useContext(lr), o = () => Fc(e, t, r, i);
1680
+ return n ? o() : Dc(o);
1686
1681
  };
1687
- function Bc(e, t, n, r) {
1682
+ function Nc(e, t, n, r) {
1688
1683
  const i = {}, o = r(e, {});
1689
1684
  for (const h in o)
1690
1685
  i[h] = Lt(o[h]);
@@ -1728,7 +1723,7 @@ class ti {
1728
1723
  this.order.length = 0, this.scheduled.clear();
1729
1724
  }
1730
1725
  }
1731
- function Ic(e) {
1726
+ function Bc(e) {
1732
1727
  let t = new ti(), n = new ti(), r = 0, i = !1, o = !1;
1733
1728
  const s = /* @__PURE__ */ new WeakSet(), a = {
1734
1729
  /**
@@ -1769,16 +1764,16 @@ const Ct = [
1769
1764
  "preRender",
1770
1765
  "render",
1771
1766
  "postRender"
1772
- ], Wc = 40;
1773
- function Uc(e, t) {
1767
+ ], Ic = 40;
1768
+ function Wc(e, t) {
1774
1769
  let n = !1, r = !0;
1775
1770
  const i = {
1776
1771
  delta: 0,
1777
1772
  timestamp: 0,
1778
1773
  isProcessing: !1
1779
- }, o = Ct.reduce((c, h) => (c[h] = Ic(() => n = !0), c), {}), s = (c) => o[c].process(i), a = () => {
1774
+ }, o = Ct.reduce((c, h) => (c[h] = Bc(() => n = !0), c), {}), s = (c) => o[c].process(i), a = () => {
1780
1775
  const c = performance.now();
1781
- n = !1, i.delta = r ? 1e3 / 60 : Math.max(Math.min(c - i.timestamp, Wc), 1), i.timestamp = c, i.isProcessing = !0, Ct.forEach(s), i.isProcessing = !1, n && t && (r = !1, e(a));
1776
+ n = !1, i.delta = r ? 1e3 / 60 : Math.max(Math.min(c - i.timestamp, Ic), 1), i.timestamp = c, i.isProcessing = !0, Ct.forEach(s), i.isProcessing = !1, n && t && (r = !1, e(a));
1782
1777
  }, l = () => {
1783
1778
  n = !0, r = !0, i.isProcessing || e(a);
1784
1779
  };
@@ -1787,7 +1782,7 @@ function Uc(e, t) {
1787
1782
  return c[h] = (p, m = !1, g = !1) => (n || l(), d.schedule(p, m, g)), c;
1788
1783
  }, {}), cancel: (c) => Ct.forEach((h) => o[h].cancel(c)), state: i, steps: o };
1789
1784
  }
1790
- const { schedule: M, cancel: me, state: $, steps: wn } = Uc(typeof requestAnimationFrame < "u" ? requestAnimationFrame : j, !0), zc = {
1785
+ const { schedule: M, cancel: me, state: q, steps: wn } = Wc(typeof requestAnimationFrame < "u" ? requestAnimationFrame : j, !0), Uc = {
1791
1786
  useVisualState: oo({
1792
1787
  scrapeMotionValuesFromProps: so,
1793
1788
  createRenderState: to,
@@ -1808,17 +1803,17 @@ const { schedule: M, cancel: me, state: $, steps: wn } = Uc(typeof requestAnimat
1808
1803
  });
1809
1804
  }
1810
1805
  })
1811
- }, Hc = {
1806
+ }, zc = {
1812
1807
  useVisualState: oo({
1813
1808
  scrapeMotionValuesFromProps: yr,
1814
1809
  createRenderState: pr
1815
1810
  })
1816
1811
  };
1817
- function $c(e, { forwardMotionProps: t = !1 }, n, r) {
1812
+ function Hc(e, { forwardMotionProps: t = !1 }, n, r) {
1818
1813
  return {
1819
- ...hr(e) ? zc : Hc,
1814
+ ...hr(e) ? Uc : zc,
1820
1815
  preloadedFeatures: n,
1821
- useRender: Dc(t),
1816
+ useRender: Lc(t),
1822
1817
  createVisualElement: r,
1823
1818
  Component: e
1824
1819
  };
@@ -1835,11 +1830,11 @@ function cn(e, t = "page") {
1835
1830
  }
1836
1831
  };
1837
1832
  }
1838
- const qc = (e) => (t) => ao(t) && e(t, cn(t));
1833
+ const $c = (e) => (t) => ao(t) && e(t, cn(t));
1839
1834
  function he(e, t, n, r) {
1840
- return fe(e, t, qc(n), r);
1835
+ return fe(e, t, $c(n), r);
1841
1836
  }
1842
- const Gc = (e, t) => (n) => t(e(n)), Te = (...e) => e.reduce(Gc);
1837
+ const qc = (e, t) => (n) => t(e(n)), Te = (...e) => e.reduce(qc);
1843
1838
  function lo(e) {
1844
1839
  let t = null;
1845
1840
  return () => {
@@ -1886,14 +1881,14 @@ function ii(e, t) {
1886
1881
  passive: !e.getProps()[r]
1887
1882
  });
1888
1883
  }
1889
- class Xc extends Re {
1884
+ class Gc extends Re {
1890
1885
  mount() {
1891
1886
  this.unmount = Te(ii(this.node, !0), ii(this.node, !1));
1892
1887
  }
1893
1888
  unmount() {
1894
1889
  }
1895
1890
  }
1896
- class Kc extends Re {
1891
+ class Xc extends Re {
1897
1892
  constructor() {
1898
1893
  super(...arguments), this.isActive = !1;
1899
1894
  }
@@ -1922,7 +1917,7 @@ function Sn(e, t) {
1922
1917
  const n = new PointerEvent("pointer" + e);
1923
1918
  t(n, cn(n));
1924
1919
  }
1925
- class Yc extends Re {
1920
+ class Kc extends Re {
1926
1921
  constructor() {
1927
1922
  super(...arguments), this.removeStartListeners = j, this.removeEndListeners = j, this.removeAccessibleListeners = j, this.startPointerPress = (t, n) => {
1928
1923
  if (this.isPressing)
@@ -1978,29 +1973,29 @@ class Yc extends Re {
1978
1973
  this.removeStartListeners(), this.removeEndListeners(), this.removeAccessibleListeners();
1979
1974
  }
1980
1975
  }
1981
- const Un = /* @__PURE__ */ new WeakMap(), En = /* @__PURE__ */ new WeakMap(), Jc = (e) => {
1976
+ const Un = /* @__PURE__ */ new WeakMap(), En = /* @__PURE__ */ new WeakMap(), Yc = (e) => {
1982
1977
  const t = Un.get(e.target);
1983
1978
  t && t(e);
1984
- }, Zc = (e) => {
1985
- e.forEach(Jc);
1979
+ }, Jc = (e) => {
1980
+ e.forEach(Yc);
1986
1981
  };
1987
- function Qc({ root: e, ...t }) {
1982
+ function Zc({ root: e, ...t }) {
1988
1983
  const n = e || document;
1989
1984
  En.has(n) || En.set(n, {});
1990
1985
  const r = En.get(n), i = JSON.stringify(t);
1991
- return r[i] || (r[i] = new IntersectionObserver(Zc, { root: e, ...t })), r[i];
1986
+ return r[i] || (r[i] = new IntersectionObserver(Jc, { root: e, ...t })), r[i];
1992
1987
  }
1993
- function eu(e, t, n) {
1994
- const r = Qc(t);
1988
+ function Qc(e, t, n) {
1989
+ const r = Zc(t);
1995
1990
  return Un.set(e, n), r.observe(e), () => {
1996
1991
  Un.delete(e), r.unobserve(e);
1997
1992
  };
1998
1993
  }
1999
- const tu = {
1994
+ const eu = {
2000
1995
  some: 0,
2001
1996
  all: 1
2002
1997
  };
2003
- class nu extends Re {
1998
+ class tu extends Re {
2004
1999
  constructor() {
2005
2000
  super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
2006
2001
  }
@@ -2009,7 +2004,7 @@ class nu extends Re {
2009
2004
  const { viewport: t = {} } = this.node.getProps(), { root: n, margin: r, amount: i = "some", once: o } = t, s = {
2010
2005
  root: n ? n.current : void 0,
2011
2006
  rootMargin: r,
2012
- threshold: typeof i == "number" ? i : tu[i]
2007
+ threshold: typeof i == "number" ? i : eu[i]
2013
2008
  }, a = (l) => {
2014
2009
  const { isIntersecting: u } = l;
2015
2010
  if (this.isInView === u || (this.isInView = u, o && !u && this.hasEnteredView))
@@ -2018,7 +2013,7 @@ class nu extends Re {
2018
2013
  const { onViewportEnter: f, onViewportLeave: c } = this.node.getProps(), h = u ? f : c;
2019
2014
  h && h(l);
2020
2015
  };
2021
- return eu(this.node.current, s, a);
2016
+ return Qc(this.node.current, s, a);
2022
2017
  }
2023
2018
  mount() {
2024
2019
  this.startObserver();
@@ -2027,26 +2022,26 @@ class nu extends Re {
2027
2022
  if (typeof IntersectionObserver > "u")
2028
2023
  return;
2029
2024
  const { props: t, prevProps: n } = this.node;
2030
- ["amount", "margin", "root"].some(ru(t, n)) && this.startObserver();
2025
+ ["amount", "margin", "root"].some(nu(t, n)) && this.startObserver();
2031
2026
  }
2032
2027
  unmount() {
2033
2028
  }
2034
2029
  }
2035
- function ru({ viewport: e = {} }, { viewport: t = {} } = {}) {
2030
+ function nu({ viewport: e = {} }, { viewport: t = {} } = {}) {
2036
2031
  return (n) => e[n] !== t[n];
2037
2032
  }
2038
- const iu = {
2033
+ const ru = {
2039
2034
  inView: {
2040
- Feature: nu
2035
+ Feature: tu
2041
2036
  },
2042
2037
  tap: {
2043
- Feature: Yc
2038
+ Feature: Kc
2044
2039
  },
2045
2040
  focus: {
2046
- Feature: Kc
2041
+ Feature: Xc
2047
2042
  },
2048
2043
  hover: {
2049
- Feature: Xc
2044
+ Feature: Gc
2050
2045
  }
2051
2046
  };
2052
2047
  function ho(e, t) {
@@ -2060,20 +2055,20 @@ function ho(e, t) {
2060
2055
  return !1;
2061
2056
  return !0;
2062
2057
  }
2063
- function su(e) {
2058
+ function iu(e) {
2064
2059
  const t = {};
2065
2060
  return e.values.forEach((n, r) => t[r] = n.get()), t;
2066
2061
  }
2067
- function ou(e) {
2062
+ function su(e) {
2068
2063
  const t = {};
2069
2064
  return e.values.forEach((n, r) => t[r] = n.getVelocity()), t;
2070
2065
  }
2071
2066
  function un(e, t, n) {
2072
2067
  const r = e.getProps();
2073
- return vr(r, t, n !== void 0 ? n : r.custom, su(e), ou(e));
2068
+ return vr(r, t, n !== void 0 ? n : r.custom, iu(e), su(e));
2074
2069
  }
2075
- let au = j, br = j;
2076
- const Ae = (e) => e * 1e3, de = (e) => e / 1e3, lu = {
2070
+ let ou = j, br = j;
2071
+ const Ae = (e) => e * 1e3, de = (e) => e / 1e3, au = {
2077
2072
  current: !1
2078
2073
  }, po = (e) => Array.isArray(e) && typeof e[0] == "number";
2079
2074
  function mo(e) {
@@ -2094,7 +2089,7 @@ function yo(e) {
2094
2089
  if (e)
2095
2090
  return po(e) ? ot(e) : Array.isArray(e) ? e.map(yo) : go[e];
2096
2091
  }
2097
- function cu(e, t, n, { delay: r = 0, duration: i, repeat: o = 0, repeatType: s = "loop", ease: a, times: l } = {}) {
2092
+ function lu(e, t, n, { delay: r = 0, duration: i, repeat: o = 0, repeatType: s = "loop", ease: a, times: l } = {}) {
2098
2093
  const u = { [t]: n };
2099
2094
  l && (u.offset = l);
2100
2095
  const f = yo(a);
@@ -2107,45 +2102,45 @@ function cu(e, t, n, { delay: r = 0, duration: i, repeat: o = 0, repeatType: s =
2107
2102
  direction: s === "reverse" ? "alternate" : "normal"
2108
2103
  });
2109
2104
  }
2110
- function uu(e, { repeat: t, repeatType: n = "loop" }) {
2105
+ function cu(e, { repeat: t, repeatType: n = "loop" }) {
2111
2106
  const r = t && n !== "loop" && t % 2 === 1 ? 0 : e.length - 1;
2112
2107
  return e[r];
2113
2108
  }
2114
- const vo = (e, t, n) => (((1 - 3 * n + 3 * t) * e + (3 * n - 6 * t)) * e + 3 * t) * e, fu = 1e-7, hu = 12;
2115
- function du(e, t, n, r, i) {
2109
+ const vo = (e, t, n) => (((1 - 3 * n + 3 * t) * e + (3 * n - 6 * t)) * e + 3 * t) * e, uu = 1e-7, fu = 12;
2110
+ function hu(e, t, n, r, i) {
2116
2111
  let o, s, a = 0;
2117
2112
  do
2118
2113
  s = t + (n - t) / 2, o = vo(s, r, i) - e, o > 0 ? n = s : t = s;
2119
- while (Math.abs(o) > fu && ++a < hu);
2114
+ while (Math.abs(o) > uu && ++a < fu);
2120
2115
  return s;
2121
2116
  }
2122
2117
  function wt(e, t, n, r) {
2123
2118
  if (e === t && n === r)
2124
2119
  return j;
2125
- const i = (o) => du(o, 0, 1, e, n);
2120
+ const i = (o) => hu(o, 0, 1, e, n);
2126
2121
  return (o) => o === 0 || o === 1 ? o : vo(i(o), t, r);
2127
2122
  }
2128
- const pu = wt(0.42, 0, 1, 1), mu = wt(0, 0, 0.58, 1), bo = wt(0.42, 0, 0.58, 1), gu = (e) => Array.isArray(e) && typeof e[0] != "number", xo = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, wo = (e) => (t) => 1 - e(1 - t), xr = (e) => 1 - Math.sin(Math.acos(e)), So = wo(xr), yu = xo(xr), Eo = wt(0.33, 1.53, 0.69, 0.99), wr = wo(Eo), vu = xo(wr), bu = (e) => (e *= 2) < 1 ? 0.5 * wr(e) : 0.5 * (2 - Math.pow(2, -10 * (e - 1))), xu = {
2123
+ const du = wt(0.42, 0, 1, 1), pu = wt(0, 0, 0.58, 1), bo = wt(0.42, 0, 0.58, 1), mu = (e) => Array.isArray(e) && typeof e[0] != "number", xo = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, wo = (e) => (t) => 1 - e(1 - t), xr = (e) => 1 - Math.sin(Math.acos(e)), So = wo(xr), gu = xo(xr), Eo = wt(0.33, 1.53, 0.69, 0.99), wr = wo(Eo), yu = xo(wr), vu = (e) => (e *= 2) < 1 ? 0.5 * wr(e) : 0.5 * (2 - Math.pow(2, -10 * (e - 1))), bu = {
2129
2124
  linear: j,
2130
- easeIn: pu,
2125
+ easeIn: du,
2131
2126
  easeInOut: bo,
2132
- easeOut: mu,
2127
+ easeOut: pu,
2133
2128
  circIn: xr,
2134
- circInOut: yu,
2129
+ circInOut: gu,
2135
2130
  circOut: So,
2136
2131
  backIn: wr,
2137
- backInOut: vu,
2132
+ backInOut: yu,
2138
2133
  backOut: Eo,
2139
- anticipate: bu
2134
+ anticipate: vu
2140
2135
  }, si = (e) => {
2141
2136
  if (Array.isArray(e)) {
2142
2137
  br(e.length === 4);
2143
2138
  const [t, n, r, i] = e;
2144
2139
  return wt(t, n, r, i);
2145
2140
  } else if (typeof e == "string")
2146
- return xu[e];
2141
+ return bu[e];
2147
2142
  return e;
2148
- }, Sr = (e, t) => (n) => !!(bt(n) && xc.test(n) && n.startsWith(e) || t && Object.prototype.hasOwnProperty.call(n, t)), To = (e, t, n) => (r) => {
2143
+ }, Sr = (e, t) => (n) => !!(bt(n) && bc.test(n) && n.startsWith(e) || t && Object.prototype.hasOwnProperty.call(n, t)), To = (e, t, n) => (r) => {
2149
2144
  if (!bt(r))
2150
2145
  return r;
2151
2146
  const [i, o, s, a] = r.match(ln);
@@ -2155,15 +2150,15 @@ const pu = wt(0.42, 0, 1, 1), mu = wt(0, 0, 0.58, 1), bo = wt(0.42, 0, 0.58, 1),
2155
2150
  [n]: parseFloat(s),
2156
2151
  alpha: a !== void 0 ? parseFloat(a) : 1
2157
2152
  };
2158
- }, wu = (e) => Pe(0, 255, e), Tn = {
2153
+ }, xu = (e) => Pe(0, 255, e), Tn = {
2159
2154
  ...Fe,
2160
- transform: (e) => Math.round(wu(e))
2155
+ transform: (e) => Math.round(xu(e))
2161
2156
  }, je = {
2162
2157
  test: Sr("rgb", "red"),
2163
2158
  parse: To("red", "green", "blue"),
2164
2159
  transform: ({ red: e, green: t, blue: n, alpha: r = 1 }) => "rgba(" + Tn.transform(e) + ", " + Tn.transform(t) + ", " + Tn.transform(n) + ", " + lt(at.transform(r)) + ")"
2165
2160
  };
2166
- function Su(e) {
2161
+ function wu(e) {
2167
2162
  let t = "", n = "", r = "", i = "";
2168
2163
  return e.length > 5 ? (t = e.substring(1, 3), n = e.substring(3, 5), r = e.substring(5, 7), i = e.substring(7, 9)) : (t = e.substring(1, 2), n = e.substring(2, 3), r = e.substring(3, 4), i = e.substring(4, 5), t += t, n += n, r += r, i += i), {
2169
2164
  red: parseInt(t, 16),
@@ -2174,13 +2169,13 @@ function Su(e) {
2174
2169
  }
2175
2170
  const zn = {
2176
2171
  test: Sr("#"),
2177
- parse: Su,
2172
+ parse: wu,
2178
2173
  transform: je.transform
2179
2174
  }, Ge = {
2180
2175
  test: Sr("hsl", "hue"),
2181
2176
  parse: To("hue", "saturation", "lightness"),
2182
2177
  transform: ({ hue: e, saturation: t, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(e) + ", " + le.transform(lt(t)) + ", " + le.transform(lt(n)) + ", " + lt(at.transform(r)) + ")"
2183
- }, q = {
2178
+ }, G = {
2184
2179
  test: (e) => je.test(e) || zn.test(e) || Ge.test(e),
2185
2180
  parse: (e) => je.test(e) ? je.parse(e) : Ge.test(e) ? Ge.parse(e) : zn.parse(e),
2186
2181
  transform: (e) => bt(e) ? e : e.hasOwnProperty("red") ? je.transform(e) : Ge.transform(e)
@@ -2188,7 +2183,7 @@ const zn = {
2188
2183
  function An(e, t, n) {
2189
2184
  return n < 0 && (n += 1), n > 1 && (n -= 1), n < 1 / 6 ? e + (t - e) * 6 * n : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e;
2190
2185
  }
2191
- function Eu({ hue: e, saturation: t, lightness: n, alpha: r }) {
2186
+ function Su({ hue: e, saturation: t, lightness: n, alpha: r }) {
2192
2187
  e /= 360, t /= 100, n /= 100;
2193
2188
  let i = 0, o = 0, s = 0;
2194
2189
  if (!t)
@@ -2207,22 +2202,22 @@ function Eu({ hue: e, saturation: t, lightness: n, alpha: r }) {
2207
2202
  const Pn = (e, t, n) => {
2208
2203
  const r = e * e;
2209
2204
  return Math.sqrt(Math.max(0, n * (t * t - r) + r));
2210
- }, Tu = [zn, je, Ge], Au = (e) => Tu.find((t) => t.test(e));
2205
+ }, Eu = [zn, je, Ge], Tu = (e) => Eu.find((t) => t.test(e));
2211
2206
  function oi(e) {
2212
- const t = Au(e);
2207
+ const t = Tu(e);
2213
2208
  let n = t.parse(e);
2214
- return t === Ge && (n = Eu(n)), n;
2209
+ return t === Ge && (n = Su(n)), n;
2215
2210
  }
2216
2211
  const Ao = (e, t) => {
2217
2212
  const n = oi(e), r = oi(t), i = { ...n };
2218
2213
  return (o) => (i.red = Pn(n.red, r.red, o), i.green = Pn(n.green, r.green, o), i.blue = Pn(n.blue, r.blue, o), i.alpha = D(n.alpha, r.alpha, o), je.transform(i));
2219
2214
  };
2220
- function Pu(e) {
2215
+ function Au(e) {
2221
2216
  var t, n;
2222
2217
  return isNaN(e) && bt(e) && (((t = e.match(ln)) === null || t === void 0 ? void 0 : t.length) || 0) + (((n = e.match(Js)) === null || n === void 0 ? void 0 : n.length) || 0) > 0;
2223
2218
  }
2224
2219
  const Po = {
2225
- regex: vc,
2220
+ regex: yc,
2226
2221
  countKey: "Vars",
2227
2222
  token: "${v}",
2228
2223
  parse: j
@@ -2230,7 +2225,7 @@ const Po = {
2230
2225
  regex: Js,
2231
2226
  countKey: "Colors",
2232
2227
  token: "${c}",
2233
- parse: q.parse
2228
+ parse: G.parse
2234
2229
  }, Ro = {
2235
2230
  regex: ln,
2236
2231
  countKey: "Numbers",
@@ -2260,23 +2255,23 @@ function Vo(e) {
2260
2255
  return (s) => {
2261
2256
  let a = i;
2262
2257
  for (let l = 0; l < o; l++)
2263
- l < r ? a = a.replace(Po.token, s[l]) : l < r + n ? a = a.replace(Co.token, q.transform(s[l])) : a = a.replace(Ro.token, lt(s[l]));
2258
+ l < r ? a = a.replace(Po.token, s[l]) : l < r + n ? a = a.replace(Co.token, G.transform(s[l])) : a = a.replace(Ro.token, lt(s[l]));
2264
2259
  return a;
2265
2260
  };
2266
2261
  }
2267
- const Cu = (e) => typeof e == "number" ? 0 : e;
2268
- function Ru(e) {
2262
+ const Pu = (e) => typeof e == "number" ? 0 : e;
2263
+ function Cu(e) {
2269
2264
  const t = Oo(e);
2270
- return Vo(e)(t.map(Cu));
2265
+ return Vo(e)(t.map(Pu));
2271
2266
  }
2272
2267
  const Ce = {
2273
- test: Pu,
2268
+ test: Au,
2274
2269
  parse: Oo,
2275
2270
  createTransformer: Vo,
2276
- getAnimatableNone: Ru
2271
+ getAnimatableNone: Cu
2277
2272
  }, ko = (e, t) => (n) => `${n > 0 ? t : e}`;
2278
2273
  function Mo(e, t) {
2279
- return typeof e == "number" ? (n) => D(e, t, n) : q.test(e) ? Ao(e, t) : e.startsWith("var(") ? ko(e, t) : Do(e, t);
2274
+ return typeof e == "number" ? (n) => D(e, t, n) : G.test(e) ? Ao(e, t) : e.startsWith("var(") ? ko(e, t) : Do(e, t);
2280
2275
  }
2281
2276
  const Lo = (e, t) => {
2282
2277
  const n = [...e], r = n.length, i = e.map((o, s) => Mo(o, t[s]));
@@ -2285,7 +2280,7 @@ const Lo = (e, t) => {
2285
2280
  n[s] = i[s](o);
2286
2281
  return n;
2287
2282
  };
2288
- }, Ou = (e, t) => {
2283
+ }, Ru = (e, t) => {
2289
2284
  const n = { ...e, ...t }, r = {};
2290
2285
  for (const i in n)
2291
2286
  e[i] !== void 0 && t[i] !== void 0 && (r[i] = Mo(e[i], t[i]));
@@ -2301,11 +2296,11 @@ const Lo = (e, t) => {
2301
2296
  const r = t - e;
2302
2297
  return r === 0 ? 1 : (n - e) / r;
2303
2298
  }, ai = (e, t) => (n) => D(e, t, n);
2304
- function Vu(e) {
2305
- return typeof e == "number" ? ai : typeof e == "string" ? q.test(e) ? Ao : Do : Array.isArray(e) ? Lo : typeof e == "object" ? Ou : ai;
2299
+ function Ou(e) {
2300
+ return typeof e == "number" ? ai : typeof e == "string" ? G.test(e) ? Ao : Do : Array.isArray(e) ? Lo : typeof e == "object" ? Ru : ai;
2306
2301
  }
2307
- function ku(e, t, n) {
2308
- const r = [], i = n || Vu(e[0]), o = e.length - 1;
2302
+ function Vu(e, t, n) {
2303
+ const r = [], i = n || Ou(e[0]), o = e.length - 1;
2309
2304
  for (let s = 0; s < o; s++) {
2310
2305
  let a = i(e[s], e[s + 1]);
2311
2306
  if (t) {
@@ -2321,7 +2316,7 @@ function jo(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {
2321
2316
  if (br(o === t.length), o === 1)
2322
2317
  return () => t[0];
2323
2318
  e[0] > e[o - 1] && (e = [...e].reverse(), t = [...t].reverse());
2324
- const s = ku(t, r, i), a = s.length, l = (u) => {
2319
+ const s = Vu(t, r, i), a = s.length, l = (u) => {
2325
2320
  let f = 0;
2326
2321
  if (a > 1)
2327
2322
  for (; f < e.length - 2 && !(u < e[f + 1]); f++)
@@ -2331,34 +2326,34 @@ function jo(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {
2331
2326
  };
2332
2327
  return n ? (u) => l(Pe(e[0], e[o - 1], u)) : l;
2333
2328
  }
2334
- function Mu(e, t) {
2329
+ function ku(e, t) {
2335
2330
  const n = e[e.length - 1];
2336
2331
  for (let r = 1; r <= t; r++) {
2337
2332
  const i = gt(0, t, r);
2338
2333
  e.push(D(n, 1, i));
2339
2334
  }
2340
2335
  }
2341
- function Lu(e) {
2336
+ function Mu(e) {
2342
2337
  const t = [0];
2343
- return Mu(t, e.length - 1), t;
2338
+ return ku(t, e.length - 1), t;
2344
2339
  }
2345
- function Du(e, t) {
2340
+ function Lu(e, t) {
2346
2341
  return e.map((n) => n * t);
2347
2342
  }
2348
- function ju(e, t) {
2343
+ function Du(e, t) {
2349
2344
  return e.map(() => t || bo).splice(0, e.length - 1);
2350
2345
  }
2351
2346
  function qt({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut" }) {
2352
- const i = gu(r) ? r.map(si) : si(r), o = {
2347
+ const i = mu(r) ? r.map(si) : si(r), o = {
2353
2348
  done: !1,
2354
2349
  value: t[0]
2355
- }, s = Du(
2350
+ }, s = Lu(
2356
2351
  // Only use the provided offsets if they're the correct length
2357
2352
  // TODO Maybe we should warn here if there's a length mismatch
2358
- n && n.length === t.length ? n : Lu(t),
2353
+ n && n.length === t.length ? n : Mu(t),
2359
2354
  e
2360
2355
  ), a = jo(s, t, {
2361
- ease: Array.isArray(i) ? i : ju(t, i)
2356
+ ease: Array.isArray(i) ? i : Du(t, i)
2362
2357
  });
2363
2358
  return {
2364
2359
  calculatedDuration: e,
@@ -2368,17 +2363,17 @@ function qt({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut" }
2368
2363
  function _o(e, t) {
2369
2364
  return t ? e * (1e3 / t) : 0;
2370
2365
  }
2371
- const _u = 5;
2366
+ const ju = 5;
2372
2367
  function Fo(e, t, n) {
2373
- const r = Math.max(t - _u, 0);
2368
+ const r = Math.max(t - ju, 0);
2374
2369
  return _o(n - e(r), t - r);
2375
2370
  }
2376
- const Rn = 1e-3, Fu = 0.01, li = 10, Nu = 0.05, Bu = 1;
2377
- function Iu({ duration: e = 800, bounce: t = 0.25, velocity: n = 0, mass: r = 1 }) {
2371
+ const Rn = 1e-3, _u = 0.01, li = 10, Fu = 0.05, Nu = 1;
2372
+ function Bu({ duration: e = 800, bounce: t = 0.25, velocity: n = 0, mass: r = 1 }) {
2378
2373
  let i, o;
2379
- au(e <= Ae(li));
2374
+ ou(e <= Ae(li));
2380
2375
  let s = 1 - t;
2381
- s = Pe(Nu, Bu, s), e = Pe(Fu, li, de(e)), s < 1 ? (i = (u) => {
2376
+ s = Pe(Fu, Nu, s), e = Pe(_u, li, de(e)), s < 1 ? (i = (u) => {
2382
2377
  const f = u * s, c = f * e, h = f - n, d = Hn(u, s), p = Math.exp(-c);
2383
2378
  return Rn - h / d * p;
2384
2379
  }, o = (u) => {
@@ -2391,7 +2386,7 @@ function Iu({ duration: e = 800, bounce: t = 0.25, velocity: n = 0, mass: r = 1
2391
2386
  const f = Math.exp(-u * e), c = (n - u) * (e * e);
2392
2387
  return f * c;
2393
2388
  });
2394
- const a = 5 / e, l = Uu(i, o, a);
2389
+ const a = 5 / e, l = Wu(i, o, a);
2395
2390
  if (e = Ae(e), isNaN(l))
2396
2391
  return {
2397
2392
  stiffness: 100,
@@ -2407,21 +2402,21 @@ function Iu({ duration: e = 800, bounce: t = 0.25, velocity: n = 0, mass: r = 1
2407
2402
  };
2408
2403
  }
2409
2404
  }
2410
- const Wu = 12;
2411
- function Uu(e, t, n) {
2405
+ const Iu = 12;
2406
+ function Wu(e, t, n) {
2412
2407
  let r = n;
2413
- for (let i = 1; i < Wu; i++)
2408
+ for (let i = 1; i < Iu; i++)
2414
2409
  r = r - e(r) / t(r);
2415
2410
  return r;
2416
2411
  }
2417
2412
  function Hn(e, t) {
2418
2413
  return e * Math.sqrt(1 - t * t);
2419
2414
  }
2420
- const zu = ["duration", "bounce"], Hu = ["stiffness", "damping", "mass"];
2415
+ const Uu = ["duration", "bounce"], zu = ["stiffness", "damping", "mass"];
2421
2416
  function ci(e, t) {
2422
2417
  return t.some((n) => e[n] !== void 0);
2423
2418
  }
2424
- function $u(e) {
2419
+ function Hu(e) {
2425
2420
  let t = {
2426
2421
  velocity: 0,
2427
2422
  stiffness: 100,
@@ -2430,8 +2425,8 @@ function $u(e) {
2430
2425
  isResolvedFromDuration: !1,
2431
2426
  ...e
2432
2427
  };
2433
- if (!ci(e, Hu) && ci(e, zu)) {
2434
- const n = Iu(e);
2428
+ if (!ci(e, zu) && ci(e, Uu)) {
2429
+ const n = Bu(e);
2435
2430
  t = {
2436
2431
  ...t,
2437
2432
  ...n,
@@ -2441,7 +2436,7 @@ function $u(e) {
2441
2436
  return t;
2442
2437
  }
2443
2438
  function No({ keyframes: e, restDelta: t, restSpeed: n, ...r }) {
2444
- const i = e[0], o = e[e.length - 1], s = { done: !1, value: i }, { stiffness: a, damping: l, mass: u, duration: f, velocity: c, isResolvedFromDuration: h } = $u({
2439
+ const i = e[0], o = e[e.length - 1], s = { done: !1, value: i }, { stiffness: a, damping: l, mass: u, duration: f, velocity: c, isResolvedFromDuration: h } = Hu({
2445
2440
  ...r,
2446
2441
  velocity: -de(r.velocity || 0)
2447
2442
  }), d = c || 0, p = l / (2 * Math.sqrt(a * u)), m = o - i, g = de(Math.sqrt(a / u)), b = Math.abs(m) < 5;
@@ -2450,16 +2445,16 @@ function No({ keyframes: e, restDelta: t, restSpeed: n, ...r }) {
2450
2445
  if (p < 1) {
2451
2446
  const y = Hn(g, p);
2452
2447
  x = (S) => {
2453
- const E = Math.exp(-p * g * S);
2454
- return o - E * ((d + p * g * m) / y * Math.sin(y * S) + m * Math.cos(y * S));
2448
+ const T = Math.exp(-p * g * S);
2449
+ return o - T * ((d + p * g * m) / y * Math.sin(y * S) + m * Math.cos(y * S));
2455
2450
  };
2456
2451
  } else if (p === 1)
2457
2452
  x = (y) => o - Math.exp(-g * y) * (m + (d + g * m) * y);
2458
2453
  else {
2459
2454
  const y = g * Math.sqrt(p * p - 1);
2460
2455
  x = (S) => {
2461
- const E = Math.exp(-p * g * S), T = Math.min(y * S, 300);
2462
- return o - E * ((d + p * g * m) * Math.sinh(T) + y * m * Math.cosh(T)) / y;
2456
+ const T = Math.exp(-p * g * S), E = Math.min(y * S, 300);
2457
+ return o - T * ((d + p * g * m) * Math.sinh(E) + y * m * Math.cosh(E)) / y;
2463
2458
  };
2464
2459
  }
2465
2460
  return {
@@ -2469,10 +2464,10 @@ function No({ keyframes: e, restDelta: t, restSpeed: n, ...r }) {
2469
2464
  if (h)
2470
2465
  s.done = y >= f;
2471
2466
  else {
2472
- let E = d;
2473
- y !== 0 && (p < 1 ? E = Fo(x, y, S) : E = 0);
2474
- const T = Math.abs(E) <= n, A = Math.abs(o - S) <= t;
2475
- s.done = T && A;
2467
+ let T = d;
2468
+ y !== 0 && (p < 1 ? T = Fo(x, y, S) : T = 0);
2469
+ const E = Math.abs(T) <= n, A = Math.abs(o - S) <= t;
2470
+ s.done = E && A;
2476
2471
  }
2477
2472
  return s.value = s.done ? o : S, s;
2478
2473
  }
@@ -2487,12 +2482,12 @@ function ui({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: r = 3
2487
2482
  const g = c + m, b = s === void 0 ? g : s(g);
2488
2483
  b !== g && (m = b - c);
2489
2484
  const x = (P) => -m * Math.exp(-P / r), y = (P) => b + x(P), S = (P) => {
2490
- const O = x(P), W = y(P);
2491
- h.done = Math.abs(O) <= u, h.value = h.done ? b : W;
2485
+ const O = x(P), _ = y(P);
2486
+ h.done = Math.abs(O) <= u, h.value = h.done ? b : _;
2492
2487
  };
2493
- let E, T;
2488
+ let T, E;
2494
2489
  const A = (P) => {
2495
- d(h.value) && (E = P, T = No({
2490
+ d(h.value) && (T = P, E = No({
2496
2491
  keyframes: [h.value, p(h.value)],
2497
2492
  velocity: Fo(y, P, h.value),
2498
2493
  damping: i,
@@ -2505,11 +2500,11 @@ function ui({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: r = 3
2505
2500
  calculatedDuration: null,
2506
2501
  next: (P) => {
2507
2502
  let O = !1;
2508
- return !T && E === void 0 && (O = !0, S(P), A(P)), E !== void 0 && P > E ? T.next(P - E) : (!O && S(P), h);
2503
+ return !E && T === void 0 && (O = !0, S(P), A(P)), T !== void 0 && P > T ? E.next(P - T) : (!O && S(P), h);
2509
2504
  }
2510
2505
  };
2511
2506
  }
2512
- const qu = (e) => {
2507
+ const $u = (e) => {
2513
2508
  const t = ({ timestamp: n }) => e(n);
2514
2509
  return {
2515
2510
  start: () => M.update(t, !0),
@@ -2518,7 +2513,7 @@ const qu = (e) => {
2518
2513
  * If we're processing this frame we can use the
2519
2514
  * framelocked timestamp to keep things in sync.
2520
2515
  */
2521
- now: () => $.isProcessing ? $.timestamp : performance.now()
2516
+ now: () => q.isProcessing ? q.timestamp : performance.now()
2522
2517
  };
2523
2518
  }, fi = 2e4;
2524
2519
  function hi(e) {
@@ -2529,14 +2524,14 @@ function hi(e) {
2529
2524
  t += n, r = e.next(t);
2530
2525
  return t >= fi ? 1 / 0 : t;
2531
2526
  }
2532
- const Gu = {
2527
+ const qu = {
2533
2528
  decay: ui,
2534
2529
  inertia: ui,
2535
2530
  tween: qt,
2536
2531
  keyframes: qt,
2537
2532
  spring: No
2538
2533
  };
2539
- function Gt({ autoplay: e = !0, delay: t = 0, driver: n = qu, keyframes: r, type: i = "keyframes", repeat: o = 0, repeatDelay: s = 0, repeatType: a = "loop", onPlay: l, onStop: u, onComplete: f, onUpdate: c, ...h }) {
2534
+ function Gt({ autoplay: e = !0, delay: t = 0, driver: n = $u, keyframes: r, type: i = "keyframes", repeat: o = 0, repeatDelay: s = 0, repeatType: a = "loop", onPlay: l, onStop: u, onComplete: f, onUpdate: c, ...h }) {
2540
2535
  let d = 1, p = !1, m, g;
2541
2536
  const b = () => {
2542
2537
  g = new Promise((k) => {
@@ -2545,54 +2540,54 @@ function Gt({ autoplay: e = !0, delay: t = 0, driver: n = qu, keyframes: r, type
2545
2540
  };
2546
2541
  b();
2547
2542
  let x;
2548
- const y = Gu[i] || qt;
2543
+ const y = qu[i] || qt;
2549
2544
  let S;
2550
2545
  y !== qt && typeof r[0] != "number" && (S = jo([0, 100], r, {
2551
2546
  clamp: !1
2552
2547
  }), r = [0, 100]);
2553
- const E = y({ ...h, keyframes: r });
2554
- let T;
2555
- a === "mirror" && (T = y({
2548
+ const T = y({ ...h, keyframes: r });
2549
+ let E;
2550
+ a === "mirror" && (E = y({
2556
2551
  ...h,
2557
2552
  keyframes: [...r].reverse(),
2558
2553
  velocity: -(h.velocity || 0)
2559
2554
  }));
2560
- let A = "idle", P = null, O = null, W = null;
2561
- E.calculatedDuration === null && o && (E.calculatedDuration = hi(E));
2562
- const { calculatedDuration: K } = E;
2563
- let N = 1 / 0, H = 1 / 0;
2564
- K !== null && (N = K + s, H = N * (o + 1) - s);
2555
+ let A = "idle", P = null, O = null, _ = null;
2556
+ T.calculatedDuration === null && o && (T.calculatedDuration = hi(T));
2557
+ const { calculatedDuration: H } = T;
2558
+ let B = 1 / 0, $ = 1 / 0;
2559
+ H !== null && (B = H + s, $ = B * (o + 1) - s);
2565
2560
  let U = 0;
2566
2561
  const re = (k) => {
2567
2562
  if (O === null)
2568
2563
  return;
2569
- d > 0 && (O = Math.min(O, k)), d < 0 && (O = Math.min(k - H / d, O)), P !== null ? U = P : U = Math.round(k - O) * d;
2570
- const Be = U - t * (d >= 0 ? 1 : -1), Ie = d >= 0 ? Be < 0 : Be > H;
2571
- U = Math.max(Be, 0), A === "finished" && P === null && (U = H);
2572
- let gn = U, Oe = E;
2564
+ d > 0 && (O = Math.min(O, k)), d < 0 && (O = Math.min(k - $ / d, O)), P !== null ? U = P : U = Math.round(k - O) * d;
2565
+ const Be = U - t * (d >= 0 ? 1 : -1), Ie = d >= 0 ? Be < 0 : Be > $;
2566
+ U = Math.max(Be, 0), A === "finished" && P === null && (U = $);
2567
+ let gn = U, Oe = T;
2573
2568
  if (o) {
2574
- const tt = Math.min(U, H) / N;
2569
+ const tt = Math.min(U, $) / B;
2575
2570
  let Ve = Math.floor(tt), te = tt % 1;
2576
- !te && tt >= 1 && (te = 1), te === 1 && Ve--, Ve = Math.min(Ve, o + 1), !!(Ve % 2) && (a === "reverse" ? (te = 1 - te, s && (te -= s / N)) : a === "mirror" && (Oe = T)), gn = Pe(0, 1, te) * N;
2571
+ !te && tt >= 1 && (te = 1), te === 1 && Ve--, Ve = Math.min(Ve, o + 1), !!(Ve % 2) && (a === "reverse" ? (te = 1 - te, s && (te -= s / B)) : a === "mirror" && (Oe = E)), gn = Pe(0, 1, te) * B;
2577
2572
  }
2578
2573
  const ue = Ie ? { done: !1, value: r[0] } : Oe.next(gn);
2579
2574
  S && (ue.value = S(ue.value));
2580
2575
  let { done: We } = ue;
2581
- !Ie && K !== null && (We = d >= 0 ? U >= H : U <= 0);
2576
+ !Ie && H !== null && (We = d >= 0 ? U >= $ : U <= 0);
2582
2577
  const Ue = P === null && (A === "finished" || A === "running" && We);
2583
2578
  return c && c(ue.value), Ue && z(), ue;
2584
- }, B = () => {
2579
+ }, I = () => {
2585
2580
  x && x.stop(), x = void 0;
2586
2581
  }, ie = () => {
2587
- A = "idle", B(), m(), b(), O = W = null;
2582
+ A = "idle", I(), m(), b(), O = _ = null;
2588
2583
  }, z = () => {
2589
- A = "finished", f && f(), B(), m();
2584
+ A = "finished", f && f(), I(), m();
2590
2585
  }, ge = () => {
2591
2586
  if (p)
2592
2587
  return;
2593
2588
  x || (x = n(re));
2594
2589
  const k = x.now();
2595
- l && l(), P !== null ? O = k - P : (!O || A === "finished") && (O = k), A === "finished" && b(), W = O, P = null, A = "running", x.start();
2590
+ l && l(), P !== null ? O = k - P : (!O || A === "finished") && (O = k), A === "finished" && b(), _ = O, P = null, A = "running", x.start();
2596
2591
  };
2597
2592
  e && ge();
2598
2593
  const Ne = {
@@ -2606,7 +2601,7 @@ function Gt({ autoplay: e = !0, delay: t = 0, driver: n = qu, keyframes: r, type
2606
2601
  k = Ae(k), U = k, P !== null || !x || d === 0 ? P = k : O = x.now() - k / d;
2607
2602
  },
2608
2603
  get duration() {
2609
- const k = E.calculatedDuration === null ? hi(E) : E.calculatedDuration;
2604
+ const k = T.calculatedDuration === null ? hi(T) : T.calculatedDuration;
2610
2605
  return de(k);
2611
2606
  },
2612
2607
  get speed() {
@@ -2626,7 +2621,7 @@ function Gt({ autoplay: e = !0, delay: t = 0, driver: n = qu, keyframes: r, type
2626
2621
  p = !0, A !== "idle" && (A = "idle", u && u(), ie());
2627
2622
  },
2628
2623
  cancel: () => {
2629
- W !== null && re(W), ie();
2624
+ _ !== null && re(_), ie();
2630
2625
  },
2631
2626
  complete: () => {
2632
2627
  A = "finished";
@@ -2635,19 +2630,19 @@ function Gt({ autoplay: e = !0, delay: t = 0, driver: n = qu, keyframes: r, type
2635
2630
  };
2636
2631
  return Ne;
2637
2632
  }
2638
- function Xu(e) {
2633
+ function Gu(e) {
2639
2634
  let t;
2640
2635
  return () => (t === void 0 && (t = e()), t);
2641
2636
  }
2642
- const Ku = Xu(() => Object.hasOwnProperty.call(Element.prototype, "animate")), Yu = /* @__PURE__ */ new Set([
2637
+ const Xu = Gu(() => Object.hasOwnProperty.call(Element.prototype, "animate")), Ku = /* @__PURE__ */ new Set([
2643
2638
  "opacity",
2644
2639
  "clipPath",
2645
2640
  "filter",
2646
2641
  "transform",
2647
2642
  "backgroundColor"
2648
- ]), Rt = 10, Ju = 2e4, Zu = (e, t) => t.type === "spring" || e === "backgroundColor" || !mo(t.ease);
2649
- function Qu(e, t, { onUpdate: n, onComplete: r, ...i }) {
2650
- if (!(Ku() && Yu.has(t) && !i.repeatDelay && i.repeatType !== "mirror" && i.damping !== 0 && i.type !== "inertia"))
2643
+ ]), Rt = 10, Yu = 2e4, Ju = (e, t) => t.type === "spring" || e === "backgroundColor" || !mo(t.ease);
2644
+ function Zu(e, t, { onUpdate: n, onComplete: r, ...i }) {
2645
+ if (!(Xu() && Ku.has(t) && !i.repeatDelay && i.repeatType !== "mirror" && i.damping !== 0 && i.type !== "inertia"))
2651
2646
  return !1;
2652
2647
  let s = !1, a, l, u = !1;
2653
2648
  const f = () => {
@@ -2657,20 +2652,20 @@ function Qu(e, t, { onUpdate: n, onComplete: r, ...i }) {
2657
2652
  };
2658
2653
  f();
2659
2654
  let { keyframes: c, duration: h = 300, ease: d, times: p } = i;
2660
- if (Zu(t, i)) {
2655
+ if (Ju(t, i)) {
2661
2656
  const y = Gt({
2662
2657
  ...i,
2663
2658
  repeat: 0,
2664
2659
  delay: 0
2665
2660
  });
2666
2661
  let S = { done: !1, value: c[0] };
2667
- const E = [];
2668
- let T = 0;
2669
- for (; !S.done && T < Ju; )
2670
- S = y.sample(T), E.push(S.value), T += Rt;
2671
- p = void 0, c = E, h = T - Rt, d = "linear";
2662
+ const T = [];
2663
+ let E = 0;
2664
+ for (; !S.done && E < Yu; )
2665
+ S = y.sample(E), T.push(S.value), E += Rt;
2666
+ p = void 0, c = T, h = E - Rt, d = "linear";
2672
2667
  }
2673
- const m = cu(e.owner.current, t, c, {
2668
+ const m = lu(e.owner.current, t, c, {
2674
2669
  ...i,
2675
2670
  duration: h,
2676
2671
  /**
@@ -2689,7 +2684,7 @@ function Qu(e, t, { onUpdate: n, onComplete: r, ...i }) {
2689
2684
  u = !0, M.update(g), a(), f();
2690
2685
  };
2691
2686
  return m.onfinish = () => {
2692
- u || (e.set(uu(c, i)), r && r(), b());
2687
+ u || (e.set(cu(c, i)), r && r(), b());
2693
2688
  }, {
2694
2689
  then(y, S) {
2695
2690
  return l.then(y, S);
@@ -2735,7 +2730,7 @@ function Qu(e, t, { onUpdate: n, onComplete: r, ...i }) {
2735
2730
  cancel: b
2736
2731
  };
2737
2732
  }
2738
- function ef({ keyframes: e, delay: t, onUpdate: n, onComplete: r }) {
2733
+ function Qu({ keyframes: e, delay: t, onUpdate: n, onComplete: r }) {
2739
2734
  const i = () => (n && n(e[e.length - 1]), r && r(), {
2740
2735
  time: 0,
2741
2736
  speed: 1,
@@ -2754,27 +2749,27 @@ function ef({ keyframes: e, delay: t, onUpdate: n, onComplete: r }) {
2754
2749
  onComplete: i
2755
2750
  }) : i();
2756
2751
  }
2757
- const tf = {
2752
+ const ef = {
2758
2753
  type: "spring",
2759
2754
  stiffness: 500,
2760
2755
  damping: 25,
2761
2756
  restSpeed: 10
2762
- }, nf = (e) => ({
2757
+ }, tf = (e) => ({
2763
2758
  type: "spring",
2764
2759
  stiffness: 550,
2765
2760
  damping: e === 0 ? 2 * Math.sqrt(550) : 30,
2766
2761
  restSpeed: 10
2767
- }), rf = {
2762
+ }), nf = {
2768
2763
  type: "keyframes",
2769
2764
  duration: 0.8
2770
- }, sf = {
2765
+ }, rf = {
2771
2766
  type: "keyframes",
2772
2767
  ease: [0.25, 0.1, 0.35, 1],
2773
2768
  duration: 0.3
2774
- }, of = (e, { keyframes: t }) => t.length > 2 ? rf : _e.has(e) ? e.startsWith("scale") ? nf(t[1]) : tf : sf, $n = (e, t) => e === "zIndex" ? !1 : !!(typeof t == "number" || Array.isArray(t) || typeof t == "string" && // It's animatable if we have a string
2769
+ }, sf = (e, { keyframes: t }) => t.length > 2 ? nf : _e.has(e) ? e.startsWith("scale") ? tf(t[1]) : ef : rf, $n = (e, t) => e === "zIndex" ? !1 : !!(typeof t == "number" || Array.isArray(t) || typeof t == "string" && // It's animatable if we have a string
2775
2770
  (Ce.test(t) || t === "0") && // And it contains numbers and/or colors
2776
- !t.startsWith("url(")), af = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
2777
- function lf(e) {
2771
+ !t.startsWith("url(")), of = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
2772
+ function af(e) {
2778
2773
  const [t, n] = e.slice(0, -1).split("(");
2779
2774
  if (t === "drop-shadow")
2780
2775
  return e;
@@ -2782,44 +2777,44 @@ function lf(e) {
2782
2777
  if (!r)
2783
2778
  return e;
2784
2779
  const i = n.replace(r, "");
2785
- let o = af.has(t) ? 1 : 0;
2780
+ let o = of.has(t) ? 1 : 0;
2786
2781
  return r !== n && (o *= 100), t + "(" + o + i + ")";
2787
2782
  }
2788
- const cf = /([a-z-]*)\(.*?\)/g, qn = {
2783
+ const lf = /([a-z-]*)\(.*?\)/g, qn = {
2789
2784
  ...Ce,
2790
2785
  getAnimatableNone: (e) => {
2791
- const t = e.match(cf);
2792
- return t ? t.map(lf).join(" ") : e;
2786
+ const t = e.match(lf);
2787
+ return t ? t.map(af).join(" ") : e;
2793
2788
  }
2794
- }, uf = {
2789
+ }, cf = {
2795
2790
  ...Zs,
2796
2791
  // Color props
2797
- color: q,
2798
- backgroundColor: q,
2799
- outlineColor: q,
2800
- fill: q,
2801
- stroke: q,
2792
+ color: G,
2793
+ backgroundColor: G,
2794
+ outlineColor: G,
2795
+ fill: G,
2796
+ stroke: G,
2802
2797
  // Border props
2803
- borderColor: q,
2804
- borderTopColor: q,
2805
- borderRightColor: q,
2806
- borderBottomColor: q,
2807
- borderLeftColor: q,
2798
+ borderColor: G,
2799
+ borderTopColor: G,
2800
+ borderRightColor: G,
2801
+ borderBottomColor: G,
2802
+ borderLeftColor: G,
2808
2803
  filter: qn,
2809
2804
  WebkitFilter: qn
2810
- }, Er = (e) => uf[e];
2805
+ }, Er = (e) => cf[e];
2811
2806
  function Bo(e, t) {
2812
2807
  let n = Er(e);
2813
2808
  return n !== qn && (n = Ce), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
2814
2809
  }
2815
2810
  const Io = (e) => /^0[^.\s]+$/.test(e);
2816
- function ff(e) {
2811
+ function uf(e) {
2817
2812
  if (typeof e == "number")
2818
2813
  return e === 0;
2819
2814
  if (e !== null)
2820
2815
  return e === "none" || e === "0" || Io(e);
2821
2816
  }
2822
- function hf(e, t, n, r) {
2817
+ function ff(e, t, n, r) {
2823
2818
  const i = $n(t, n);
2824
2819
  let o;
2825
2820
  Array.isArray(n) ? o = [...n] : o = [null, n];
@@ -2827,7 +2822,7 @@ function hf(e, t, n, r) {
2827
2822
  let a;
2828
2823
  const l = [];
2829
2824
  for (let u = 0; u < o.length; u++)
2830
- o[u] === null && (o[u] = u === 0 ? s : o[u - 1]), ff(o[u]) && l.push(u), typeof o[u] == "string" && o[u] !== "none" && o[u] !== "0" && (a = o[u]);
2825
+ o[u] === null && (o[u] = u === 0 ? s : o[u - 1]), uf(o[u]) && l.push(u), typeof o[u] == "string" && o[u] !== "none" && o[u] !== "0" && (a = o[u]);
2831
2826
  if (i && l.length && a)
2832
2827
  for (let u = 0; u < l.length; u++) {
2833
2828
  const f = l[u];
@@ -2835,19 +2830,19 @@ function hf(e, t, n, r) {
2835
2830
  }
2836
2831
  return o;
2837
2832
  }
2838
- function df({ when: e, delay: t, delayChildren: n, staggerChildren: r, staggerDirection: i, repeat: o, repeatType: s, repeatDelay: a, from: l, elapsed: u, ...f }) {
2833
+ function hf({ when: e, delay: t, delayChildren: n, staggerChildren: r, staggerDirection: i, repeat: o, repeatType: s, repeatDelay: a, from: l, elapsed: u, ...f }) {
2839
2834
  return !!Object.keys(f).length;
2840
2835
  }
2841
2836
  function Tr(e, t) {
2842
2837
  return e[t] || e.default || e;
2843
2838
  }
2844
- const pf = {
2839
+ const df = {
2845
2840
  skipAnimations: !1
2846
2841
  }, Ar = (e, t, n, r = {}) => (i) => {
2847
2842
  const o = Tr(r, e) || {}, s = o.delay || r.delay || 0;
2848
2843
  let { elapsed: a = 0 } = r;
2849
2844
  a = a - Ae(s);
2850
- const l = hf(t, e, n, o), u = l[0], f = l[l.length - 1], c = $n(e, u), h = $n(e, f);
2845
+ const l = ff(t, e, n, o), u = l[0], f = l[l.length - 1], c = $n(e, u), h = $n(e, f);
2851
2846
  let d = {
2852
2847
  keyframes: l,
2853
2848
  velocity: t.getVelocity(),
@@ -2861,11 +2856,11 @@ const pf = {
2861
2856
  i(), o.onComplete && o.onComplete();
2862
2857
  }
2863
2858
  };
2864
- if (df(o) || (d = {
2859
+ if (hf(o) || (d = {
2865
2860
  ...d,
2866
- ...of(e, d)
2867
- }), d.duration && (d.duration = Ae(d.duration)), d.repeatDelay && (d.repeatDelay = Ae(d.repeatDelay)), !c || !h || lu.current || o.type === !1 || pf.skipAnimations)
2868
- return ef(d);
2861
+ ...sf(e, d)
2862
+ }), d.duration && (d.duration = Ae(d.duration)), d.repeatDelay && (d.repeatDelay = Ae(d.repeatDelay)), !c || !h || au.current || o.type === !1 || df.skipAnimations)
2863
+ return Qu(d);
2869
2864
  if (
2870
2865
  /**
2871
2866
  * If this is a handoff animation, the optimised animation will be running via
@@ -2878,14 +2873,14 @@ const pf = {
2878
2873
  */
2879
2874
  !t.owner.getProps().onUpdate
2880
2875
  ) {
2881
- const p = Qu(t, e, d);
2876
+ const p = Zu(t, e, d);
2882
2877
  if (p)
2883
2878
  return p;
2884
2879
  }
2885
2880
  return Gt(d);
2886
2881
  };
2887
2882
  function Xt(e) {
2888
- return !!(X(e) && e.add);
2883
+ return !!(K(e) && e.add);
2889
2884
  }
2890
2885
  const Wo = (e) => /^\-?\d*\.?\d+$/.test(e);
2891
2886
  function Pr(e, t) {
@@ -2920,8 +2915,8 @@ class Rr {
2920
2915
  this.subscriptions.length = 0;
2921
2916
  }
2922
2917
  }
2923
- const mf = (e) => !isNaN(parseFloat(e));
2924
- class gf {
2918
+ const pf = (e) => !isNaN(parseFloat(e));
2919
+ class mf {
2925
2920
  /**
2926
2921
  * @param init - The initiating value
2927
2922
  * @param config - Optional configuration options
@@ -2933,11 +2928,11 @@ class gf {
2933
2928
  constructor(t, n = {}) {
2934
2929
  this.version = "10.18.0", this.timeDelta = 0, this.lastUpdated = 0, this.canTrackVelocity = !1, this.events = {}, this.updateAndNotify = (r, i = !0) => {
2935
2930
  this.prev = this.current, this.current = r;
2936
- const { delta: o, timestamp: s } = $;
2931
+ const { delta: o, timestamp: s } = q;
2937
2932
  this.lastUpdated !== s && (this.timeDelta = o, this.lastUpdated = s, M.postRender(this.scheduleVelocityCheck)), this.prev !== this.current && this.events.change && this.events.change.notify(this.current), this.events.velocityChange && this.events.velocityChange.notify(this.getVelocity()), i && this.events.renderRequest && this.events.renderRequest.notify(this.current);
2938
2933
  }, this.scheduleVelocityCheck = () => M.postRender(this.velocityCheck), this.velocityCheck = ({ timestamp: r }) => {
2939
2934
  r !== this.lastUpdated && (this.prev = this.current, this.events.velocityChange && this.events.velocityChange.notify(this.getVelocity()));
2940
- }, this.hasAnimated = !1, this.prev = this.current = t, this.canTrackVelocity = mf(this.current), this.owner = n.owner;
2935
+ }, this.hasAnimated = !1, this.prev = this.current = t, this.canTrackVelocity = pf(this.current), this.owner = n.owner;
2941
2936
  }
2942
2937
  /**
2943
2938
  * Adds a function that will be notified when the `MotionValue` is updated.
@@ -3112,41 +3107,41 @@ class gf {
3112
3107
  }
3113
3108
  }
3114
3109
  function Ye(e, t) {
3115
- return new gf(e, t);
3110
+ return new mf(e, t);
3116
3111
  }
3117
- const Uo = (e) => (t) => t.test(e), yf = {
3112
+ const Uo = (e) => (t) => t.test(e), gf = {
3118
3113
  test: (e) => e === "auto",
3119
3114
  parse: (e) => e
3120
- }, zo = [Fe, C, le, we, Sc, wc, yf], rt = (e) => zo.find(Uo(e)), vf = [...zo, q, Ce], bf = (e) => vf.find(Uo(e));
3121
- function xf(e, t, n) {
3115
+ }, zo = [Fe, C, le, we, wc, xc, gf], rt = (e) => zo.find(Uo(e)), yf = [...zo, G, Ce], vf = (e) => yf.find(Uo(e));
3116
+ function bf(e, t, n) {
3122
3117
  e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, Ye(n));
3123
3118
  }
3124
- function wf(e, t) {
3119
+ function xf(e, t) {
3125
3120
  const n = un(e, t);
3126
3121
  let { transitionEnd: r = {}, transition: i = {}, ...o } = n ? e.makeTargetAnimatable(n, !1) : {};
3127
3122
  o = { ...o, ...r };
3128
3123
  for (const s in o) {
3129
- const a = Fc(o[s]);
3130
- xf(e, s, a);
3124
+ const a = _c(o[s]);
3125
+ bf(e, s, a);
3131
3126
  }
3132
3127
  }
3133
- function Sf(e, t, n) {
3128
+ function wf(e, t, n) {
3134
3129
  var r, i;
3135
3130
  const o = Object.keys(t).filter((a) => !e.hasValue(a)), s = o.length;
3136
3131
  if (s)
3137
3132
  for (let a = 0; a < s; a++) {
3138
3133
  const l = o[a], u = t[l];
3139
3134
  let f = null;
3140
- Array.isArray(u) && (f = u[0]), f === null && (f = (i = (r = n[l]) !== null && r !== void 0 ? r : e.readValue(l)) !== null && i !== void 0 ? i : t[l]), f != null && (typeof f == "string" && (Wo(f) || Io(f)) ? f = parseFloat(f) : !bf(f) && Ce.test(u) && (f = Bo(l, u)), e.addValue(l, Ye(f, { owner: e })), n[l] === void 0 && (n[l] = f), f !== null && e.setBaseTarget(l, f));
3135
+ Array.isArray(u) && (f = u[0]), f === null && (f = (i = (r = n[l]) !== null && r !== void 0 ? r : e.readValue(l)) !== null && i !== void 0 ? i : t[l]), f != null && (typeof f == "string" && (Wo(f) || Io(f)) ? f = parseFloat(f) : !vf(f) && Ce.test(u) && (f = Bo(l, u)), e.addValue(l, Ye(f, { owner: e })), n[l] === void 0 && (n[l] = f), f !== null && e.setBaseTarget(l, f));
3141
3136
  }
3142
3137
  }
3143
- function Ef(e, t) {
3138
+ function Sf(e, t) {
3144
3139
  return t ? (t[e] || t.default || t).from : void 0;
3145
3140
  }
3146
- function Tf(e, t, n) {
3141
+ function Ef(e, t, n) {
3147
3142
  const r = {};
3148
3143
  for (const i in e) {
3149
- const o = Ef(i, t);
3144
+ const o = Sf(i, t);
3150
3145
  if (o !== void 0)
3151
3146
  r[i] = o;
3152
3147
  else {
@@ -3156,11 +3151,11 @@ function Tf(e, t, n) {
3156
3151
  }
3157
3152
  return r;
3158
3153
  }
3159
- function Af({ protectedKeys: e, needsAnimating: t }, n) {
3154
+ function Tf({ protectedKeys: e, needsAnimating: t }, n) {
3160
3155
  const r = e.hasOwnProperty(n) && t[n] !== !0;
3161
3156
  return t[n] = !1, r;
3162
3157
  }
3163
- function Pf(e, t) {
3158
+ function Af(e, t) {
3164
3159
  const n = e.get();
3165
3160
  if (Array.isArray(t)) {
3166
3161
  for (let r = 0; r < t.length; r++)
@@ -3176,7 +3171,7 @@ function Ho(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
3176
3171
  const u = [], f = i && e.animationState && e.animationState.getState()[i];
3177
3172
  for (const c in a) {
3178
3173
  const h = e.getValue(c), d = a[c];
3179
- if (!h || d === void 0 || f && Af(f, c))
3174
+ if (!h || d === void 0 || f && Tf(f, c))
3180
3175
  continue;
3181
3176
  const p = {
3182
3177
  delay: n,
@@ -3190,7 +3185,7 @@ function Ho(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
3190
3185
  x !== null && (p.elapsed = x, p.isHandoff = !0);
3191
3186
  }
3192
3187
  }
3193
- let m = !p.isHandoff && !Pf(h, d);
3188
+ let m = !p.isHandoff && !Af(h, d);
3194
3189
  if (p.type === "spring" && (h.getVelocity() || p.velocity) && (m = !1), h.animation && (m = !1), m)
3195
3190
  continue;
3196
3191
  h.start(Ar(c, h, d, e.shouldReduceMotion && _e.has(c) ? { type: !1 } : p));
@@ -3198,7 +3193,7 @@ function Ho(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
3198
3193
  Xt(l) && (l.add(c), g.then(() => l.remove(c))), u.push(g);
3199
3194
  }
3200
3195
  return s && Promise.all(u).then(() => {
3201
- s && wf(e, s);
3196
+ s && xf(e, s);
3202
3197
  }), u;
3203
3198
  }
3204
3199
  function Gn(e, t, n = {}) {
@@ -3207,7 +3202,7 @@ function Gn(e, t, n = {}) {
3207
3202
  n.transitionOverride && (i = n.transitionOverride);
3208
3203
  const o = r ? () => Promise.all(Ho(e, r, n)) : () => Promise.resolve(), s = e.variantChildren && e.variantChildren.size ? (l = 0) => {
3209
3204
  const { delayChildren: u = 0, staggerChildren: f, staggerDirection: c } = i;
3210
- return Cf(e, t, u + l, f, c, n);
3205
+ return Pf(e, t, u + l, f, c, n);
3211
3206
  } : () => Promise.resolve(), { when: a } = i;
3212
3207
  if (a) {
3213
3208
  const [l, u] = a === "beforeChildren" ? [o, s] : [s, o];
@@ -3215,19 +3210,19 @@ function Gn(e, t, n = {}) {
3215
3210
  } else
3216
3211
  return Promise.all([o(), s(n.delay)]);
3217
3212
  }
3218
- function Cf(e, t, n = 0, r = 0, i = 1, o) {
3213
+ function Pf(e, t, n = 0, r = 0, i = 1, o) {
3219
3214
  const s = [], a = (e.variantChildren.size - 1) * r, l = i === 1 ? (u = 0) => u * r : (u = 0) => a - u * r;
3220
- return Array.from(e.variantChildren).sort(Rf).forEach((u, f) => {
3215
+ return Array.from(e.variantChildren).sort(Cf).forEach((u, f) => {
3221
3216
  u.notify("AnimationStart", t), s.push(Gn(u, t, {
3222
3217
  ...o,
3223
3218
  delay: n + l(f)
3224
3219
  }).then(() => u.notify("AnimationComplete", t)));
3225
3220
  }), Promise.all(s);
3226
3221
  }
3227
- function Rf(e, t) {
3222
+ function Cf(e, t) {
3228
3223
  return e.sortNodePosition(t);
3229
3224
  }
3230
- function Of(e, t, n = {}) {
3225
+ function Rf(e, t, n = {}) {
3231
3226
  e.notify("AnimationStart", t);
3232
3227
  let r;
3233
3228
  if (Array.isArray(t)) {
@@ -3241,13 +3236,13 @@ function Of(e, t, n = {}) {
3241
3236
  }
3242
3237
  return r.then(() => e.notify("AnimationComplete", t));
3243
3238
  }
3244
- const Vf = [...ur].reverse(), kf = ur.length;
3245
- function Mf(e) {
3246
- return (t) => Promise.all(t.map(({ animation: n, options: r }) => Of(e, n, r)));
3239
+ const Of = [...ur].reverse(), Vf = ur.length;
3240
+ function kf(e) {
3241
+ return (t) => Promise.all(t.map(({ animation: n, options: r }) => Rf(e, n, r)));
3247
3242
  }
3248
- function Lf(e) {
3249
- let t = Mf(e);
3250
- const n = jf();
3243
+ function Mf(e) {
3244
+ let t = kf(e);
3245
+ const n = Df();
3251
3246
  let r = !0;
3252
3247
  const i = (l, u) => {
3253
3248
  const f = un(e, u);
@@ -3263,36 +3258,36 @@ function Lf(e) {
3263
3258
  function s(l, u) {
3264
3259
  const f = e.getProps(), c = e.getVariantContext(!0) || {}, h = [], d = /* @__PURE__ */ new Set();
3265
3260
  let p = {}, m = 1 / 0;
3266
- for (let b = 0; b < kf; b++) {
3267
- const x = Vf[b], y = n[x], S = f[x] !== void 0 ? f[x] : c[x], E = pt(S), T = x === u ? y.isActive : null;
3268
- T === !1 && (m = b);
3269
- let A = S === c[x] && S !== f[x] && E;
3261
+ for (let b = 0; b < Vf; b++) {
3262
+ const x = Of[b], y = n[x], S = f[x] !== void 0 ? f[x] : c[x], T = pt(S), E = x === u ? y.isActive : null;
3263
+ E === !1 && (m = b);
3264
+ let A = S === c[x] && S !== f[x] && T;
3270
3265
  if (A && r && e.manuallyAnimateOnMount && (A = !1), y.protectedKeys = { ...p }, // If it isn't active and hasn't *just* been set as inactive
3271
- !y.isActive && T === null || // If we didn't and don't have any defined prop for this animation type
3266
+ !y.isActive && E === null || // If we didn't and don't have any defined prop for this animation type
3272
3267
  !S && !y.prevProp || // Or if the prop doesn't define an animation
3273
3268
  on(S) || typeof S == "boolean")
3274
3269
  continue;
3275
- let O = Df(y.prevProp, S) || // If we're making this variant active, we want to always make it active
3276
- x === u && y.isActive && !A && E || // If we removed a higher-priority variant (i is in reverse order)
3277
- b > m && E, W = !1;
3278
- const K = Array.isArray(S) ? S : [S];
3279
- let N = K.reduce(i, {});
3280
- T === !1 && (N = {});
3281
- const { prevResolvedValues: H = {} } = y, U = {
3282
- ...H,
3283
- ...N
3284
- }, re = (B) => {
3285
- O = !0, d.has(B) && (W = !0, d.delete(B)), y.needsAnimating[B] = !0;
3270
+ let O = Lf(y.prevProp, S) || // If we're making this variant active, we want to always make it active
3271
+ x === u && y.isActive && !A && T || // If we removed a higher-priority variant (i is in reverse order)
3272
+ b > m && T, _ = !1;
3273
+ const H = Array.isArray(S) ? S : [S];
3274
+ let B = H.reduce(i, {});
3275
+ E === !1 && (B = {});
3276
+ const { prevResolvedValues: $ = {} } = y, U = {
3277
+ ...$,
3278
+ ...B
3279
+ }, re = (I) => {
3280
+ O = !0, d.has(I) && (_ = !0, d.delete(I)), y.needsAnimating[I] = !0;
3286
3281
  };
3287
- for (const B in U) {
3288
- const ie = N[B], z = H[B];
3289
- if (p.hasOwnProperty(B))
3282
+ for (const I in U) {
3283
+ const ie = B[I], z = $[I];
3284
+ if (p.hasOwnProperty(I))
3290
3285
  continue;
3291
3286
  let ge = !1;
3292
- Ht(ie) && Ht(z) ? ge = !ho(ie, z) : ge = ie !== z, ge ? ie !== void 0 ? re(B) : d.add(B) : ie !== void 0 && d.has(B) ? re(B) : y.protectedKeys[B] = !0;
3287
+ Ht(ie) && Ht(z) ? ge = !ho(ie, z) : ge = ie !== z, ge ? ie !== void 0 ? re(I) : d.add(I) : ie !== void 0 && d.has(I) ? re(I) : y.protectedKeys[I] = !0;
3293
3288
  }
3294
- y.prevProp = S, y.prevResolvedValues = N, y.isActive && (p = { ...p, ...N }), r && e.blockInitialAnimation && (O = !1), O && (!A || W) && h.push(...K.map((B) => ({
3295
- animation: B,
3289
+ y.prevProp = S, y.prevResolvedValues = B, y.isActive && (p = { ...p, ...B }), r && e.blockInitialAnimation && (O = !1), O && (!A || _) && h.push(...H.map((I) => ({
3290
+ animation: I,
3296
3291
  options: { type: x, ...l }
3297
3292
  })));
3298
3293
  }
@@ -3326,7 +3321,7 @@ function Lf(e) {
3326
3321
  getState: () => n
3327
3322
  };
3328
3323
  }
3329
- function Df(e, t) {
3324
+ function Lf(e, t) {
3330
3325
  return typeof t == "string" ? t !== e : Array.isArray(t) ? !ho(t, e) : !1;
3331
3326
  }
3332
3327
  function ke(e = !1) {
@@ -3337,7 +3332,7 @@ function ke(e = !1) {
3337
3332
  prevResolvedValues: {}
3338
3333
  };
3339
3334
  }
3340
- function jf() {
3335
+ function Df() {
3341
3336
  return {
3342
3337
  animate: ke(!0),
3343
3338
  whileInView: ke(),
@@ -3348,14 +3343,14 @@ function jf() {
3348
3343
  exit: ke()
3349
3344
  };
3350
3345
  }
3351
- class _f extends Re {
3346
+ class jf extends Re {
3352
3347
  /**
3353
3348
  * We dynamically generate the AnimationState manager as it contains a reference
3354
3349
  * to the underlying animation library. We only want to load that if we load this,
3355
3350
  * so people can optionally code split it out using the `m` component.
3356
3351
  */
3357
3352
  constructor(t) {
3358
- super(t), t.animationState || (t.animationState = Lf(t));
3353
+ super(t), t.animationState || (t.animationState = Mf(t));
3359
3354
  }
3360
3355
  updateAnimationControlsSubscription() {
3361
3356
  const { animate: t } = this.node.getProps();
@@ -3374,10 +3369,10 @@ class _f extends Re {
3374
3369
  unmount() {
3375
3370
  }
3376
3371
  }
3377
- let Ff = 0;
3378
- class Nf extends Re {
3372
+ let _f = 0;
3373
+ class Ff extends Re {
3379
3374
  constructor() {
3380
- super(...arguments), this.id = Ff++;
3375
+ super(...arguments), this.id = _f++;
3381
3376
  }
3382
3377
  update() {
3383
3378
  if (!this.node.presenceContext)
@@ -3395,15 +3390,15 @@ class Nf extends Re {
3395
3390
  unmount() {
3396
3391
  }
3397
3392
  }
3398
- const Bf = {
3393
+ const Nf = {
3399
3394
  animation: {
3400
- Feature: _f
3395
+ Feature: jf
3401
3396
  },
3402
3397
  exit: {
3403
- Feature: Nf
3398
+ Feature: Ff
3404
3399
  }
3405
3400
  }, di = (e, t) => Math.abs(e - t);
3406
- function If(e, t) {
3401
+ function Bf(e, t) {
3407
3402
  const n = di(e.x, t.x), r = di(e.y, t.y);
3408
3403
  return Math.sqrt(n ** 2 + r ** 2);
3409
3404
  }
@@ -3412,10 +3407,10 @@ class $o {
3412
3407
  if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.handlers = {}, this.contextWindow = window, this.updatePoint = () => {
3413
3408
  if (!(this.lastMoveEvent && this.lastMoveEventInfo))
3414
3409
  return;
3415
- const c = Vn(this.lastMoveEventInfo, this.history), h = this.startEvent !== null, d = If(c.offset, { x: 0, y: 0 }) >= 3;
3410
+ const c = Vn(this.lastMoveEventInfo, this.history), h = this.startEvent !== null, d = Bf(c.offset, { x: 0, y: 0 }) >= 3;
3416
3411
  if (!h && !d)
3417
3412
  return;
3418
- const { point: p } = c, { timestamp: m } = $;
3413
+ const { point: p } = c, { timestamp: m } = q;
3419
3414
  this.history.push({ ...p, timestamp: m });
3420
3415
  const { onStart: g, onMove: b } = this.handlers;
3421
3416
  h || (g && g(this.lastMoveEvent, c), this.startEvent = this.lastMoveEvent), b && b(this.lastMoveEvent, c);
@@ -3431,7 +3426,7 @@ class $o {
3431
3426
  }, !ao(t))
3432
3427
  return;
3433
3428
  this.dragSnapToOrigin = o, this.handlers = n, this.transformPagePoint = r, this.contextWindow = i || window;
3434
- const s = cn(t), a = On(s, this.transformPagePoint), { point: l } = a, { timestamp: u } = $;
3429
+ const s = cn(t), a = On(s, this.transformPagePoint), { point: l } = a, { timestamp: u } = q;
3435
3430
  this.history = [{ ...l, timestamp: u }];
3436
3431
  const { onSessionStart: f } = n;
3437
3432
  f && f(t, Vn(a, this.history)), this.removeListeners = Te(he(this.contextWindow, "pointermove", this.handlePointerMove), he(this.contextWindow, "pointerup", this.handlePointerUp), he(this.contextWindow, "pointercancel", this.handlePointerUp));
@@ -3453,17 +3448,17 @@ function Vn({ point: e }, t) {
3453
3448
  return {
3454
3449
  point: e,
3455
3450
  delta: pi(e, qo(t)),
3456
- offset: pi(e, Wf(t)),
3457
- velocity: Uf(t, 0.1)
3451
+ offset: pi(e, If(t)),
3452
+ velocity: Wf(t, 0.1)
3458
3453
  };
3459
3454
  }
3460
- function Wf(e) {
3455
+ function If(e) {
3461
3456
  return e[0];
3462
3457
  }
3463
3458
  function qo(e) {
3464
3459
  return e[e.length - 1];
3465
3460
  }
3466
- function Uf(e, t) {
3461
+ function Wf(e, t) {
3467
3462
  if (e.length < 2)
3468
3463
  return { x: 0, y: 0 };
3469
3464
  let n = e.length - 1, r = null;
@@ -3496,7 +3491,7 @@ function ct(e, t, n, r) {
3496
3491
  function gi(e, t, n) {
3497
3492
  e.min = n.min + t.min, e.max = e.min + J(t);
3498
3493
  }
3499
- function zf(e, t, n) {
3494
+ function Uf(e, t, n) {
3500
3495
  gi(e.x, t.x, n.x), gi(e.y, t.y, n.y);
3501
3496
  }
3502
3497
  function yi(e, t, n) {
@@ -3505,7 +3500,7 @@ function yi(e, t, n) {
3505
3500
  function ut(e, t, n) {
3506
3501
  yi(e.x, t.x, n.x), yi(e.y, t.y, n.y);
3507
3502
  }
3508
- function Hf(e, { min: t, max: n }, r) {
3503
+ function zf(e, { min: t, max: n }, r) {
3509
3504
  return t !== void 0 && e < t ? e = r ? D(t, e, r.min) : Math.max(e, t) : n !== void 0 && e > n && (e = r ? D(n, e, r.max) : Math.min(e, n)), e;
3510
3505
  }
3511
3506
  function vi(e, t, n) {
@@ -3514,7 +3509,7 @@ function vi(e, t, n) {
3514
3509
  max: n !== void 0 ? e.max + n - (e.max - e.min) : void 0
3515
3510
  };
3516
3511
  }
3517
- function $f(e, { top: t, left: n, bottom: r, right: i }) {
3512
+ function Hf(e, { top: t, left: n, bottom: r, right: i }) {
3518
3513
  return {
3519
3514
  x: vi(e.x, n, i),
3520
3515
  y: vi(e.y, t, r)
@@ -3524,23 +3519,23 @@ function bi(e, t) {
3524
3519
  let n = t.min - e.min, r = t.max - e.max;
3525
3520
  return t.max - t.min < e.max - e.min && ([n, r] = [r, n]), { min: n, max: r };
3526
3521
  }
3527
- function qf(e, t) {
3522
+ function $f(e, t) {
3528
3523
  return {
3529
3524
  x: bi(e.x, t.x),
3530
3525
  y: bi(e.y, t.y)
3531
3526
  };
3532
3527
  }
3533
- function Gf(e, t) {
3528
+ function qf(e, t) {
3534
3529
  let n = 0.5;
3535
3530
  const r = J(e), i = J(t);
3536
3531
  return i > r ? n = gt(t.min, t.max - r, e.min) : r > i && (n = gt(e.min, e.max - i, t.min)), Pe(0, 1, n);
3537
3532
  }
3538
- function Xf(e, t) {
3533
+ function Gf(e, t) {
3539
3534
  const n = {};
3540
3535
  return t.min !== void 0 && (n.min = t.min - e.min), t.max !== void 0 && (n.max = t.max - e.min), n;
3541
3536
  }
3542
3537
  const Kn = 0.35;
3543
- function Kf(e = Kn) {
3538
+ function Xf(e = Kn) {
3544
3539
  return e === !1 ? e = 0 : e === !0 && (e = Kn), {
3545
3540
  x: xi(e, "left", "right"),
3546
3541
  y: xi(e, "top", "bottom")
@@ -3563,7 +3558,7 @@ const Si = () => ({
3563
3558
  }), Xe = () => ({
3564
3559
  x: Si(),
3565
3560
  y: Si()
3566
- }), Ei = () => ({ min: 0, max: 0 }), _ = () => ({
3561
+ }), Ei = () => ({ min: 0, max: 0 }), F = () => ({
3567
3562
  x: Ei(),
3568
3563
  y: Ei()
3569
3564
  });
@@ -3576,10 +3571,10 @@ function Go({ top: e, left: t, right: n, bottom: r }) {
3576
3571
  y: { min: e, max: r }
3577
3572
  };
3578
3573
  }
3579
- function Yf({ x: e, y: t }) {
3574
+ function Kf({ x: e, y: t }) {
3580
3575
  return { top: t.min, right: e.max, bottom: t.max, left: e.min };
3581
3576
  }
3582
- function Jf(e, t) {
3577
+ function Yf(e, t) {
3583
3578
  if (!t)
3584
3579
  return e;
3585
3580
  const n = t({ x: e.left, y: e.top }), r = t({ x: e.right, y: e.bottom });
@@ -3618,7 +3613,7 @@ function Jn(e, t = 0, n = 1, r, i) {
3618
3613
  function Ko(e, { x: t, y: n }) {
3619
3614
  Jn(e.x, t.translate, t.scale, t.originPoint), Jn(e.y, n.translate, n.scale, n.originPoint);
3620
3615
  }
3621
- function Zf(e, t, n, r = !1) {
3616
+ function Jf(e, t, n, r = !1) {
3622
3617
  const i = n.length;
3623
3618
  if (!i)
3624
3619
  return;
@@ -3644,21 +3639,21 @@ function Ci(e, t, [n, r, i]) {
3644
3639
  const o = t[i] !== void 0 ? t[i] : 0.5, s = D(e.min, e.max, o);
3645
3640
  Jn(e, t[n], t[r], s, t.scale);
3646
3641
  }
3647
- const Qf = ["x", "scaleX", "originX"], eh = ["y", "scaleY", "originY"];
3642
+ const Zf = ["x", "scaleX", "originX"], Qf = ["y", "scaleY", "originY"];
3648
3643
  function Ke(e, t) {
3649
- Ci(e.x, t, Qf), Ci(e.y, t, eh);
3644
+ Ci(e.x, t, Zf), Ci(e.y, t, Qf);
3650
3645
  }
3651
3646
  function Yo(e, t) {
3652
- return Go(Jf(e.getBoundingClientRect(), t));
3647
+ return Go(Yf(e.getBoundingClientRect(), t));
3653
3648
  }
3654
- function th(e, t, n) {
3649
+ function eh(e, t, n) {
3655
3650
  const r = Yo(e, n), { scroll: i } = t;
3656
3651
  return i && (Se(r.x, i.offset.x), Se(r.y, i.offset.y)), r;
3657
3652
  }
3658
- const Jo = ({ current: e }) => e ? e.ownerDocument.defaultView : null, nh = /* @__PURE__ */ new WeakMap();
3659
- class rh {
3653
+ const Jo = ({ current: e }) => e ? e.ownerDocument.defaultView : null, th = /* @__PURE__ */ new WeakMap();
3654
+ class nh {
3660
3655
  constructor(t) {
3661
- this.openGlobalLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = { x: 0, y: 0 }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = _(), this.visualElement = t;
3656
+ this.openGlobalLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = { x: 0, y: 0 }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = F(), this.visualElement = t;
3662
3657
  }
3663
3658
  start(t, { snapToCursor: n = !1 } = {}) {
3664
3659
  const { presenceContext: r } = this.visualElement;
@@ -3690,7 +3685,7 @@ class rh {
3690
3685
  return;
3691
3686
  const { offset: g } = c;
3692
3687
  if (d && this.currentDirection === null) {
3693
- this.currentDirection = ih(g), this.currentDirection !== null && p && p(this.currentDirection);
3688
+ this.currentDirection = rh(g), this.currentDirection !== null && p && p(this.currentDirection);
3694
3689
  return;
3695
3690
  }
3696
3691
  this.updateAxis("x", c.point, g), this.updateAxis("y", c.point, g), this.visualElement.render(), m && m(f, c);
@@ -3732,13 +3727,13 @@ class rh {
3732
3727
  return;
3733
3728
  const o = this.getAxisMotionValue(t);
3734
3729
  let s = this.originPoint[t] + r[t];
3735
- this.constraints && this.constraints[t] && (s = Hf(s, this.constraints[t], this.elastic[t])), o.set(s);
3730
+ this.constraints && this.constraints[t] && (s = zf(s, this.constraints[t], this.elastic[t])), o.set(s);
3736
3731
  }
3737
3732
  resolveConstraints() {
3738
3733
  var t;
3739
3734
  const { dragConstraints: n, dragElastic: r } = this.getProps(), i = this.visualElement.projection && !this.visualElement.projection.layout ? this.visualElement.projection.measure(!1) : (t = this.visualElement.projection) === null || t === void 0 ? void 0 : t.layout, o = this.constraints;
3740
- n && qe(n) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : n && i ? this.constraints = $f(i.layoutBox, n) : this.constraints = !1, this.elastic = Kf(r), o !== this.constraints && i && this.constraints && !this.hasMutatedConstraints && Q((s) => {
3741
- this.getAxisMotionValue(s) && (this.constraints[s] = Xf(i.layoutBox[s], this.constraints[s]));
3735
+ n && qe(n) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : n && i ? this.constraints = Hf(i.layoutBox, n) : this.constraints = !1, this.elastic = Xf(r), o !== this.constraints && i && this.constraints && !this.hasMutatedConstraints && Q((s) => {
3736
+ this.getAxisMotionValue(s) && (this.constraints[s] = Gf(i.layoutBox[s], this.constraints[s]));
3742
3737
  });
3743
3738
  }
3744
3739
  resolveRefConstraints() {
@@ -3748,10 +3743,10 @@ class rh {
3748
3743
  const r = t.current, { projection: i } = this.visualElement;
3749
3744
  if (!i || !i.layout)
3750
3745
  return !1;
3751
- const o = th(r, i.root, this.visualElement.getTransformPagePoint());
3752
- let s = qf(i.layout.layoutBox, o);
3746
+ const o = eh(r, i.root, this.visualElement.getTransformPagePoint());
3747
+ let s = $f(i.layout.layoutBox, o);
3753
3748
  if (n) {
3754
- const a = n(Yf(s));
3749
+ const a = n(Kf(s));
3755
3750
  this.hasMutatedConstraints = !!a, a && (s = Go(a));
3756
3751
  }
3757
3752
  return s;
@@ -3833,7 +3828,7 @@ class rh {
3833
3828
  const a = this.getAxisMotionValue(s);
3834
3829
  if (a) {
3835
3830
  const l = a.get();
3836
- i[s] = Gf({ min: l, max: l }, this.constraints[s]);
3831
+ i[s] = qf({ min: l, max: l }, this.constraints[s]);
3837
3832
  }
3838
3833
  });
3839
3834
  const { transformTemplate: o } = this.visualElement.getProps();
@@ -3847,7 +3842,7 @@ class rh {
3847
3842
  addListeners() {
3848
3843
  if (!this.visualElement.current)
3849
3844
  return;
3850
- nh.set(this.visualElement, this);
3845
+ th.set(this.visualElement, this);
3851
3846
  const t = this.visualElement.current, n = he(t, "pointerdown", (l) => {
3852
3847
  const { drag: u, dragListener: f = !0 } = this.getProps();
3853
3848
  u && f && this.start(l);
@@ -3882,13 +3877,13 @@ class rh {
3882
3877
  function Ot(e, t, n) {
3883
3878
  return (t === !0 || t === e) && (n === null || n === e);
3884
3879
  }
3885
- function ih(e, t = 10) {
3880
+ function rh(e, t = 10) {
3886
3881
  let n = null;
3887
3882
  return Math.abs(e.y) > t ? n = "y" : Math.abs(e.x) > t && (n = "x"), n;
3888
3883
  }
3889
- class sh extends Re {
3884
+ class ih extends Re {
3890
3885
  constructor(t) {
3891
- super(t), this.removeGroupControls = j, this.removeListeners = j, this.controls = new rh(t);
3886
+ super(t), this.removeGroupControls = j, this.removeListeners = j, this.controls = new nh(t);
3892
3887
  }
3893
3888
  mount() {
3894
3889
  const { dragControls: t } = this.node.getProps();
@@ -3901,7 +3896,7 @@ class sh extends Re {
3901
3896
  const Ri = (e) => (t, n) => {
3902
3897
  e && M.update(() => e(t, n));
3903
3898
  };
3904
- class oh extends Re {
3899
+ class sh extends Re {
3905
3900
  constructor() {
3906
3901
  super(...arguments), this.removePointerDownListener = j;
3907
3902
  }
@@ -3932,7 +3927,7 @@ class oh extends Re {
3932
3927
  this.removePointerDownListener(), this.session && this.session.end();
3933
3928
  }
3934
3929
  }
3935
- function ah() {
3930
+ function oh() {
3936
3931
  const e = w.useContext(lr);
3937
3932
  if (e === null)
3938
3933
  return [!0, null];
@@ -3966,7 +3961,7 @@ const it = {
3966
3961
  const n = Oi(e, t.target.x), r = Oi(e, t.target.y);
3967
3962
  return `${n}% ${r}%`;
3968
3963
  }
3969
- }, lh = {
3964
+ }, ah = {
3970
3965
  correct: (e, { treeScale: t, projectionDelta: n }) => {
3971
3966
  const r = e, i = Ce.parse(e);
3972
3967
  if (i.length > 5)
@@ -3977,7 +3972,7 @@ const it = {
3977
3972
  return typeof i[2 + s] == "number" && (i[2 + s] /= u), typeof i[3 + s] == "number" && (i[3 + s] /= u), o(i);
3978
3973
  }
3979
3974
  };
3980
- class ch extends ws.Component {
3975
+ class lh extends ws.Component {
3981
3976
  /**
3982
3977
  * This only mounts projection nodes for components that
3983
3978
  * need measuring, we might want to do it for all components
@@ -3985,7 +3980,7 @@ class ch extends ws.Component {
3985
3980
  */
3986
3981
  componentDidMount() {
3987
3982
  const { visualElement: t, layoutGroup: n, switchLayoutGroup: r, layoutId: i } = this.props, { projection: o } = t;
3988
- pc(uh), o && (n.group && n.group.add(o), r && r.register && i && r.register(o), o.root.didUpdate(), o.addEventListener("animationComplete", () => {
3983
+ dc(ch), o && (n.group && n.group.add(o), r && r.register && i && r.register(o), o.root.didUpdate(), o.addEventListener("animationComplete", () => {
3989
3984
  this.safeToRemove();
3990
3985
  }), o.setOptions({
3991
3986
  ...o.options,
@@ -4018,10 +4013,10 @@ class ch extends ws.Component {
4018
4013
  }
4019
4014
  }
4020
4015
  function Zo(e) {
4021
- const [t, n] = ah(), r = w.useContext(qs);
4022
- return ws.createElement(ch, { ...e, layoutGroup: r, switchLayoutGroup: w.useContext(Gs), isPresent: t, safeToRemove: n });
4016
+ const [t, n] = oh(), r = w.useContext(qs);
4017
+ return ws.createElement(lh, { ...e, layoutGroup: r, switchLayoutGroup: w.useContext(Gs), isPresent: t, safeToRemove: n });
4023
4018
  }
4024
- const uh = {
4019
+ const ch = {
4025
4020
  borderRadius: {
4026
4021
  ...it,
4027
4022
  applyTo: [
@@ -4035,16 +4030,16 @@ const uh = {
4035
4030
  borderTopRightRadius: it,
4036
4031
  borderBottomLeftRadius: it,
4037
4032
  borderBottomRightRadius: it,
4038
- boxShadow: lh
4039
- }, Qo = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], fh = Qo.length, Vi = (e) => typeof e == "string" ? parseFloat(e) : e, ki = (e) => typeof e == "number" || C.test(e);
4040
- function hh(e, t, n, r, i, o) {
4033
+ boxShadow: ah
4034
+ }, Qo = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], uh = Qo.length, Vi = (e) => typeof e == "string" ? parseFloat(e) : e, ki = (e) => typeof e == "number" || C.test(e);
4035
+ function fh(e, t, n, r, i, o) {
4041
4036
  i ? (e.opacity = D(
4042
4037
  0,
4043
4038
  // TODO Reinstate this if only child
4044
4039
  n.opacity !== void 0 ? n.opacity : 1,
4045
- dh(r)
4046
- ), e.opacityExit = D(t.opacity !== void 0 ? t.opacity : 1, 0, ph(r))) : o && (e.opacity = D(t.opacity !== void 0 ? t.opacity : 1, n.opacity !== void 0 ? n.opacity : 1, r));
4047
- for (let s = 0; s < fh; s++) {
4040
+ hh(r)
4041
+ ), e.opacityExit = D(t.opacity !== void 0 ? t.opacity : 1, 0, dh(r))) : o && (e.opacity = D(t.opacity !== void 0 ? t.opacity : 1, n.opacity !== void 0 ? n.opacity : 1, r));
4042
+ for (let s = 0; s < uh; s++) {
4048
4043
  const a = `border${Qo[s]}Radius`;
4049
4044
  let l = Mi(t, a), u = Mi(n, a);
4050
4045
  if (l === void 0 && u === void 0)
@@ -4056,7 +4051,7 @@ function hh(e, t, n, r, i, o) {
4056
4051
  function Mi(e, t) {
4057
4052
  return e[t] !== void 0 ? e[t] : e.borderRadius;
4058
4053
  }
4059
- const dh = ea(0, 0.5, So), ph = ea(0.5, 0.95, j);
4054
+ const hh = ea(0, 0.5, So), dh = ea(0.5, 0.95, j);
4060
4055
  function ea(e, t, n) {
4061
4056
  return (r) => r < e ? 0 : r > t ? 1 : n(gt(e, t, r));
4062
4057
  }
@@ -4069,18 +4064,18 @@ function Z(e, t) {
4069
4064
  function Di(e, t, n, r, i) {
4070
4065
  return e -= t, e = Kt(e, 1 / n, r), i !== void 0 && (e = Kt(e, 1 / i, r)), e;
4071
4066
  }
4072
- function mh(e, t = 0, n = 1, r = 0.5, i, o = e, s = e) {
4067
+ function ph(e, t = 0, n = 1, r = 0.5, i, o = e, s = e) {
4073
4068
  if (le.test(t) && (t = parseFloat(t), t = D(s.min, s.max, t / 100) - s.min), typeof t != "number")
4074
4069
  return;
4075
4070
  let a = D(o.min, o.max, r);
4076
4071
  e === o && (a -= t), e.min = Di(e.min, t, n, a, i), e.max = Di(e.max, t, n, a, i);
4077
4072
  }
4078
4073
  function ji(e, t, [n, r, i], o, s) {
4079
- mh(e, t[n], t[r], t[i], t.scale, o, s);
4074
+ ph(e, t[n], t[r], t[i], t.scale, o, s);
4080
4075
  }
4081
- const gh = ["x", "scaleX", "originX"], yh = ["y", "scaleY", "originY"];
4076
+ const mh = ["x", "scaleX", "originX"], gh = ["y", "scaleY", "originY"];
4082
4077
  function _i(e, t, n, r) {
4083
- ji(e.x, t, gh, n ? n.x : void 0, r ? r.x : void 0), ji(e.y, t, yh, n ? n.y : void 0, r ? r.y : void 0);
4078
+ ji(e.x, t, mh, n ? n.x : void 0, r ? r.x : void 0), ji(e.y, t, gh, n ? n.y : void 0, r ? r.y : void 0);
4084
4079
  }
4085
4080
  function Fi(e) {
4086
4081
  return e.translate === 0 && e.scale === 1;
@@ -4088,7 +4083,7 @@ function Fi(e) {
4088
4083
  function ta(e) {
4089
4084
  return Fi(e.x) && Fi(e.y);
4090
4085
  }
4091
- function vh(e, t) {
4086
+ function yh(e, t) {
4092
4087
  return e.x.min === t.x.min && e.x.max === t.x.max && e.y.min === t.y.min && e.y.max === t.y.max;
4093
4088
  }
4094
4089
  function na(e, t) {
@@ -4097,7 +4092,7 @@ function na(e, t) {
4097
4092
  function Ni(e) {
4098
4093
  return J(e.x) / J(e.y);
4099
4094
  }
4100
- class bh {
4095
+ class vh {
4101
4096
  constructor() {
4102
4097
  this.members = [];
4103
4098
  }
@@ -4161,8 +4156,8 @@ function Bi(e, t, n) {
4161
4156
  const s = e.x.scale * t.x, a = e.y.scale * t.y;
4162
4157
  return (s !== 1 || a !== 1) && (r += `scale(${s}, ${a})`), r || "none";
4163
4158
  }
4164
- const xh = (e, t) => e.depth - t.depth;
4165
- class wh {
4159
+ const bh = (e, t) => e.depth - t.depth;
4160
+ class xh {
4166
4161
  constructor() {
4167
4162
  this.children = [], this.isDirty = !1;
4168
4163
  }
@@ -4173,28 +4168,28 @@ class wh {
4173
4168
  Cr(this.children, t), this.isDirty = !0;
4174
4169
  }
4175
4170
  forEach(t) {
4176
- this.isDirty && this.children.sort(xh), this.isDirty = !1, this.children.forEach(t);
4171
+ this.isDirty && this.children.sort(bh), this.isDirty = !1, this.children.forEach(t);
4177
4172
  }
4178
4173
  }
4179
- function Sh(e, t) {
4174
+ function wh(e, t) {
4180
4175
  const n = performance.now(), r = ({ timestamp: i }) => {
4181
4176
  const o = i - n;
4182
4177
  o >= t && (me(r), e(o - t));
4183
4178
  };
4184
4179
  return M.read(r, !0), () => me(r);
4185
4180
  }
4186
- function Eh(e) {
4181
+ function Sh(e) {
4187
4182
  window.MotionDebug && window.MotionDebug.record(e);
4188
4183
  }
4189
- function Th(e) {
4184
+ function Eh(e) {
4190
4185
  return e instanceof SVGElement && e.tagName !== "svg";
4191
4186
  }
4192
- function Ah(e, t, n) {
4193
- const r = X(e) ? e : Ye(e);
4187
+ function Th(e, t, n) {
4188
+ const r = K(e) ? e : Ye(e);
4194
4189
  return r.start(Ar("", r, t, n)), r.animation;
4195
4190
  }
4196
- const Ii = ["", "X", "Y", "Z"], Ph = { visibility: "hidden" }, Wi = 1e3;
4197
- let Ch = 0;
4191
+ const Ii = ["", "X", "Y", "Z"], Ah = { visibility: "hidden" }, Wi = 1e3;
4192
+ let Ph = 0;
4198
4193
  const Le = {
4199
4194
  type: "projectionFrame",
4200
4195
  totalNodes: 0,
@@ -4204,14 +4199,14 @@ const Le = {
4204
4199
  function ra({ attachResizeListener: e, defaultParent: t, measureScroll: n, checkIsScrollRoot: r, resetTransform: i }) {
4205
4200
  return class {
4206
4201
  constructor(s = {}, a = t == null ? void 0 : t()) {
4207
- this.id = Ch++, this.animationId = 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.treeScale = { x: 1, y: 1 }, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.updateScheduled = !1, this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
4202
+ this.id = Ph++, this.animationId = 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.treeScale = { x: 1, y: 1 }, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.updateScheduled = !1, this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
4208
4203
  this.isUpdating && (this.isUpdating = !1, this.clearAllSnapshots());
4209
4204
  }, this.updateProjection = () => {
4210
- this.projectionUpdateScheduled = !1, Le.totalNodes = Le.resolvedTargetDeltas = Le.recalculatedProjection = 0, this.nodes.forEach(Vh), this.nodes.forEach(jh), this.nodes.forEach(_h), this.nodes.forEach(kh), Eh(Le);
4205
+ this.projectionUpdateScheduled = !1, Le.totalNodes = Le.resolvedTargetDeltas = Le.recalculatedProjection = 0, this.nodes.forEach(Oh), this.nodes.forEach(Dh), this.nodes.forEach(jh), this.nodes.forEach(Vh), Sh(Le);
4211
4206
  }, this.hasProjected = !1, this.isVisible = !0, this.animationProgress = 0, this.sharedNodes = /* @__PURE__ */ new Map(), this.latestValues = s, this.root = a ? a.root || a : this, this.path = a ? [...a.path, a] : [], this.parent = a, this.depth = a ? a.depth + 1 : 0;
4212
4207
  for (let l = 0; l < this.path.length; l++)
4213
4208
  this.path[l].shouldResetTransform = !0;
4214
- this.root === this && (this.nodes = new wh());
4209
+ this.root === this && (this.nodes = new xh());
4215
4210
  }
4216
4211
  addEventListener(s, a) {
4217
4212
  return this.eventHandlers.has(s) || this.eventHandlers.set(s, new Rr()), this.eventHandlers.get(s).add(a);
@@ -4229,13 +4224,13 @@ function ra({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
4229
4224
  mount(s, a = this.root.hasTreeAnimated) {
4230
4225
  if (this.instance)
4231
4226
  return;
4232
- this.isSVG = Th(s), this.instance = s;
4227
+ this.isSVG = Eh(s), this.instance = s;
4233
4228
  const { layoutId: l, layout: u, visualElement: f } = this.options;
4234
4229
  if (f && !f.current && f.mount(s), this.root.nodes.add(this), this.parent && this.parent.children.add(this), a && (u || l) && (this.isLayoutDirty = !0), e) {
4235
4230
  let c;
4236
4231
  const h = () => this.root.updateBlockedByResize = !1;
4237
4232
  e(s, () => {
4238
- this.root.updateBlockedByResize = !0, c && c(), c = Sh(h, 250), Dt.hasAnimatedSinceResize && (Dt.hasAnimatedSinceResize = !1, this.nodes.forEach(zi));
4233
+ this.root.updateBlockedByResize = !0, c && c(), c = wh(h, 250), Dt.hasAnimatedSinceResize && (Dt.hasAnimatedSinceResize = !1, this.nodes.forEach(zi));
4239
4234
  });
4240
4235
  }
4241
4236
  l && this.root.registerSharedNode(l, this), this.options.animate !== !1 && f && (l || u) && this.addEventListener("didUpdate", ({ delta: c, hasLayoutChanged: h, hasRelativeTargetChanged: d, layout: p }) => {
@@ -4243,7 +4238,7 @@ function ra({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
4243
4238
  this.target = void 0, this.relativeTarget = void 0;
4244
4239
  return;
4245
4240
  }
4246
- const m = this.options.transition || f.getDefaultTransition() || Wh, { onLayoutAnimationStart: g, onLayoutAnimationComplete: b } = f.getProps(), x = !this.targetLayout || !na(this.targetLayout, p) || d, y = !h && d;
4241
+ const m = this.options.transition || f.getDefaultTransition() || Ih, { onLayoutAnimationStart: g, onLayoutAnimationComplete: b } = f.getProps(), x = !this.targetLayout || !na(this.targetLayout, p) || d, y = !h && d;
4247
4242
  if (this.options.layoutRoot || this.resumeFrom && this.resumeFrom.instance || y || h && (x || !this.currentAnimation)) {
4248
4243
  this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0), this.setAnimationOrigin(c, y);
4249
4244
  const S = {
@@ -4277,7 +4272,7 @@ function ra({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
4277
4272
  }
4278
4273
  // Note: currently only running on root node
4279
4274
  startUpdate() {
4280
- this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(Fh), this.animationId++);
4275
+ this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(_h), this.animationId++);
4281
4276
  }
4282
4277
  getTransformTemplate() {
4283
4278
  const { visualElement: s } = this.options;
@@ -4306,15 +4301,15 @@ function ra({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
4306
4301
  this.unblockUpdate(), this.clearAllSnapshots(), this.nodes.forEach(Ui);
4307
4302
  return;
4308
4303
  }
4309
- this.isUpdating || this.nodes.forEach(Lh), this.isUpdating = !1, this.nodes.forEach(Dh), this.nodes.forEach(Rh), this.nodes.forEach(Oh), this.clearAllSnapshots();
4304
+ this.isUpdating || this.nodes.forEach(Mh), this.isUpdating = !1, this.nodes.forEach(Lh), this.nodes.forEach(Ch), this.nodes.forEach(Rh), this.clearAllSnapshots();
4310
4305
  const a = performance.now();
4311
- $.delta = Pe(0, 1e3 / 60, a - $.timestamp), $.timestamp = a, $.isProcessing = !0, wn.update.process($), wn.preRender.process($), wn.render.process($), $.isProcessing = !1;
4306
+ q.delta = Pe(0, 1e3 / 60, a - q.timestamp), q.timestamp = a, q.isProcessing = !0, wn.update.process(q), wn.preRender.process(q), wn.render.process(q), q.isProcessing = !1;
4312
4307
  }
4313
4308
  didUpdate() {
4314
4309
  this.updateScheduled || (this.updateScheduled = !0, queueMicrotask(() => this.update()));
4315
4310
  }
4316
4311
  clearAllSnapshots() {
4317
- this.nodes.forEach(Mh), this.sharedNodes.forEach(Nh);
4312
+ this.nodes.forEach(kh), this.sharedNodes.forEach(Fh);
4318
4313
  }
4319
4314
  scheduleUpdateProjection() {
4320
4315
  this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, M.preRender(this.updateProjection, !1, !0));
@@ -4337,7 +4332,7 @@ function ra({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
4337
4332
  for (let l = 0; l < this.path.length; l++)
4338
4333
  this.path[l].updateScroll();
4339
4334
  const s = this.layout;
4340
- this.layout = this.measure(!1), this.layoutCorrected = _(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
4335
+ this.layout = this.measure(!1), this.layoutCorrected = F(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
4341
4336
  const { visualElement: a } = this.options;
4342
4337
  a && a.notify("LayoutMeasure", this.layout.layoutBox, s ? s.layoutBox : void 0);
4343
4338
  }
@@ -4359,7 +4354,7 @@ function ra({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
4359
4354
  measure(s = !0) {
4360
4355
  const a = this.measurePageBox();
4361
4356
  let l = this.removeElementScroll(a);
4362
- return s && (l = this.removeTransform(l)), Uh(l), {
4357
+ return s && (l = this.removeTransform(l)), Wh(l), {
4363
4358
  animationId: this.root.animationId,
4364
4359
  measuredBox: a,
4365
4360
  layoutBox: l,
@@ -4370,12 +4365,12 @@ function ra({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
4370
4365
  measurePageBox() {
4371
4366
  const { visualElement: s } = this.options;
4372
4367
  if (!s)
4373
- return _();
4368
+ return F();
4374
4369
  const a = s.measureViewportBox(), { scroll: l } = this.root;
4375
4370
  return l && (Se(a.x, l.offset.x), Se(a.y, l.offset.y)), a;
4376
4371
  }
4377
4372
  removeElementScroll(s) {
4378
- const a = _();
4373
+ const a = F();
4379
4374
  Z(a, s);
4380
4375
  for (let l = 0; l < this.path.length; l++) {
4381
4376
  const u = this.path[l], { scroll: f, options: c } = u;
@@ -4391,7 +4386,7 @@ function ra({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
4391
4386
  return a;
4392
4387
  }
4393
4388
  applyTransform(s, a = !1) {
4394
- const l = _();
4389
+ const l = F();
4395
4390
  Z(l, s);
4396
4391
  for (let u = 0; u < this.path.length; u++) {
4397
4392
  const f = this.path[u];
@@ -4403,14 +4398,14 @@ function ra({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
4403
4398
  return Me(this.latestValues) && Ke(l, this.latestValues), l;
4404
4399
  }
4405
4400
  removeTransform(s) {
4406
- const a = _();
4401
+ const a = F();
4407
4402
  Z(a, s);
4408
4403
  for (let l = 0; l < this.path.length; l++) {
4409
4404
  const u = this.path[l];
4410
4405
  if (!u.instance || !Me(u.latestValues))
4411
4406
  continue;
4412
4407
  Yn(u.latestValues) && u.updateSnapshot();
4413
- const f = _(), c = u.measurePageBox();
4408
+ const f = F(), c = u.measurePageBox();
4414
4409
  Z(f, c), _i(a, u.latestValues, u.snapshot ? u.snapshot.layoutBox : void 0, f);
4415
4410
  }
4416
4411
  return Me(this.latestValues) && _i(a, this.latestValues), a;
@@ -4429,7 +4424,7 @@ function ra({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
4429
4424
  this.scroll = void 0, this.layout = void 0, this.snapshot = void 0, this.prevTransformTemplateValue = void 0, this.targetDelta = void 0, this.target = void 0, this.isLayoutDirty = !1;
4430
4425
  }
4431
4426
  forceRelativeParentToResolveTarget() {
4432
- this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !== $.timestamp && this.relativeParent.resolveTargetDelta(!0);
4427
+ this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !== q.timestamp && this.relativeParent.resolveTargetDelta(!0);
4433
4428
  }
4434
4429
  resolveTargetDelta(s = !1) {
4435
4430
  var a;
@@ -4440,15 +4435,15 @@ function ra({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
4440
4435
  return;
4441
4436
  const { layout: c, layoutId: h } = this.options;
4442
4437
  if (!(!this.layout || !(c || h))) {
4443
- if (this.resolvedRelativeTargetAt = $.timestamp, !this.targetDelta && !this.relativeTarget) {
4438
+ if (this.resolvedRelativeTargetAt = q.timestamp, !this.targetDelta && !this.relativeTarget) {
4444
4439
  const d = this.getClosestProjectingParent();
4445
- d && d.layout && this.animationProgress !== 1 ? (this.relativeParent = d, this.forceRelativeParentToResolveTarget(), this.relativeTarget = _(), this.relativeTargetOrigin = _(), ut(this.relativeTargetOrigin, this.layout.layoutBox, d.layout.layoutBox), Z(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
4440
+ d && d.layout && this.animationProgress !== 1 ? (this.relativeParent = d, this.forceRelativeParentToResolveTarget(), this.relativeTarget = F(), this.relativeTargetOrigin = F(), ut(this.relativeTargetOrigin, this.layout.layoutBox, d.layout.layoutBox), Z(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
4446
4441
  }
4447
4442
  if (!(!this.relativeTarget && !this.targetDelta)) {
4448
- if (this.target || (this.target = _(), this.targetWithTransforms = _()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), zf(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : Z(this.target, this.layout.layoutBox), Ko(this.target, this.targetDelta)) : Z(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget) {
4443
+ if (this.target || (this.target = F(), this.targetWithTransforms = F()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Uf(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : Z(this.target, this.layout.layoutBox), Ko(this.target, this.targetDelta)) : Z(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget) {
4449
4444
  this.attemptToResolveRelativeTarget = !1;
4450
4445
  const d = this.getClosestProjectingParent();
4451
- d && !!d.resumingFrom == !!this.resumingFrom && !d.options.layoutScroll && d.target && this.animationProgress !== 1 ? (this.relativeParent = d, this.forceRelativeParentToResolveTarget(), this.relativeTarget = _(), this.relativeTargetOrigin = _(), ut(this.relativeTargetOrigin, this.target, d.target), Z(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
4446
+ d && !!d.resumingFrom == !!this.resumingFrom && !d.options.layoutScroll && d.target && this.animationProgress !== 1 ? (this.relativeParent = d, this.forceRelativeParentToResolveTarget(), this.relativeTarget = F(), this.relativeTargetOrigin = F(), ut(this.relativeTargetOrigin, this.target, d.target), Z(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
4452
4447
  }
4453
4448
  Le.resolvedTargetDeltas++;
4454
4449
  }
@@ -4465,14 +4460,14 @@ function ra({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
4465
4460
  var s;
4466
4461
  const a = this.getLead(), l = !!this.resumingFrom || this !== a;
4467
4462
  let u = !0;
4468
- if ((this.isProjectionDirty || !((s = this.parent) === null || s === void 0) && s.isProjectionDirty) && (u = !1), l && (this.isSharedProjectionDirty || this.isTransformDirty) && (u = !1), this.resolvedRelativeTargetAt === $.timestamp && (u = !1), u)
4463
+ if ((this.isProjectionDirty || !((s = this.parent) === null || s === void 0) && s.isProjectionDirty) && (u = !1), l && (this.isSharedProjectionDirty || this.isTransformDirty) && (u = !1), this.resolvedRelativeTargetAt === q.timestamp && (u = !1), u)
4469
4464
  return;
4470
4465
  const { layout: f, layoutId: c } = this.options;
4471
4466
  if (this.isTreeAnimating = !!(this.parent && this.parent.isTreeAnimating || this.currentAnimation || this.pendingAnimation), this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), !this.layout || !(f || c))
4472
4467
  return;
4473
4468
  Z(this.layoutCorrected, this.layout.layoutBox);
4474
4469
  const h = this.treeScale.x, d = this.treeScale.y;
4475
- Zf(this.layoutCorrected, this.treeScale, this.path, l), a.layout && !a.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (a.target = a.layout.layoutBox);
4470
+ Jf(this.layoutCorrected, this.treeScale, this.path, l), a.layout && !a.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (a.target = a.layout.layoutBox);
4476
4471
  const { target: p } = a;
4477
4472
  if (!p) {
4478
4473
  this.projectionTransform && (this.projectionDelta = Xe(), this.projectionTransform = "none", this.scheduleRender());
@@ -4498,17 +4493,17 @@ function ra({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
4498
4493
  setAnimationOrigin(s, a = !1) {
4499
4494
  const l = this.snapshot, u = l ? l.latestValues : {}, f = { ...this.latestValues }, c = Xe();
4500
4495
  (!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !a;
4501
- const h = _(), d = l ? l.source : void 0, p = this.layout ? this.layout.source : void 0, m = d !== p, g = this.getStack(), b = !g || g.members.length <= 1, x = !!(m && !b && this.options.crossfade === !0 && !this.path.some(Ih));
4496
+ const h = F(), d = l ? l.source : void 0, p = this.layout ? this.layout.source : void 0, m = d !== p, g = this.getStack(), b = !g || g.members.length <= 1, x = !!(m && !b && this.options.crossfade === !0 && !this.path.some(Bh));
4502
4497
  this.animationProgress = 0;
4503
4498
  let y;
4504
4499
  this.mixTargetDelta = (S) => {
4505
- const E = S / 1e3;
4506
- Hi(c.x, s.x, E), Hi(c.y, s.y, E), this.setTargetDelta(c), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (ut(h, this.layout.layoutBox, this.relativeParent.layout.layoutBox), Bh(this.relativeTarget, this.relativeTargetOrigin, h, E), y && vh(this.relativeTarget, y) && (this.isProjectionDirty = !1), y || (y = _()), Z(y, this.relativeTarget)), m && (this.animationValues = f, hh(f, u, this.latestValues, E, x, b)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = E;
4500
+ const T = S / 1e3;
4501
+ Hi(c.x, s.x, T), Hi(c.y, s.y, T), this.setTargetDelta(c), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (ut(h, this.layout.layoutBox, this.relativeParent.layout.layoutBox), Nh(this.relativeTarget, this.relativeTargetOrigin, h, T), y && yh(this.relativeTarget, y) && (this.isProjectionDirty = !1), y || (y = F()), Z(y, this.relativeTarget)), m && (this.animationValues = f, fh(f, u, this.latestValues, T, x, b)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = T;
4507
4502
  }, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
4508
4503
  }
4509
4504
  startAnimation(s) {
4510
4505
  this.notifyListeners("animationStart"), this.currentAnimation && this.currentAnimation.stop(), this.resumingFrom && this.resumingFrom.currentAnimation && this.resumingFrom.currentAnimation.stop(), this.pendingAnimation && (me(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = M.update(() => {
4511
- Dt.hasAnimatedSinceResize = !0, this.currentAnimation = Ah(0, Wi, {
4506
+ Dt.hasAnimatedSinceResize = !0, this.currentAnimation = Th(0, Wi, {
4512
4507
  ...s,
4513
4508
  onUpdate: (a) => {
4514
4509
  this.mixTargetDelta(a), s.onUpdate && s.onUpdate(a);
@@ -4532,7 +4527,7 @@ function ra({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
4532
4527
  let { targetWithTransforms: a, target: l, layout: u, latestValues: f } = s;
4533
4528
  if (!(!a || !l || !u)) {
4534
4529
  if (this !== s && this.layout && u && ia(this.options.animationType, this.layout.layoutBox, u.layoutBox)) {
4535
- l = this.target || _();
4530
+ l = this.target || F();
4536
4531
  const c = J(this.layout.layoutBox.x);
4537
4532
  l.x.min = s.target.x.min, l.x.max = l.x.min + c;
4538
4533
  const h = J(this.layout.layoutBox.y);
@@ -4542,7 +4537,7 @@ function ra({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
4542
4537
  }
4543
4538
  }
4544
4539
  registerSharedNode(s, a) {
4545
- this.sharedNodes.has(s) || this.sharedNodes.set(s, new bh()), this.sharedNodes.get(s).add(a);
4540
+ this.sharedNodes.has(s) || this.sharedNodes.set(s, new vh()), this.sharedNodes.get(s).add(a);
4546
4541
  const u = a.options.initialPromotionConfig;
4547
4542
  a.promote({
4548
4543
  transition: u ? u.transition : void 0,
@@ -4599,7 +4594,7 @@ function ra({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
4599
4594
  if (!this.instance || this.isSVG)
4600
4595
  return;
4601
4596
  if (!this.isVisible)
4602
- return Ph;
4597
+ return Ah;
4603
4598
  const u = {
4604
4599
  visibility: ""
4605
4600
  }, f = this.getTransformTemplate();
@@ -4639,10 +4634,10 @@ function ra({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
4639
4634
  }
4640
4635
  };
4641
4636
  }
4642
- function Rh(e) {
4637
+ function Ch(e) {
4643
4638
  e.updateLayout();
4644
4639
  }
4645
- function Oh(e) {
4640
+ function Rh(e) {
4646
4641
  var t;
4647
4642
  const n = ((t = e.resumeFrom) === null || t === void 0 ? void 0 : t.snapshot) || e.snapshot;
4648
4643
  if (e.isLead() && e.layout && n && e.hasListeners("didUpdate")) {
@@ -4665,9 +4660,9 @@ function Oh(e) {
4665
4660
  if (c && !c.resumeFrom) {
4666
4661
  const { snapshot: h, layout: d } = c;
4667
4662
  if (h && d) {
4668
- const p = _();
4663
+ const p = F();
4669
4664
  ut(p, n.layoutBox, h.layoutBox);
4670
- const m = _();
4665
+ const m = F();
4671
4666
  ut(m, r, d.layoutBox), na(p, m) || (f = !0), c.options.layoutRoot && (e.relativeTarget = m, e.relativeTargetOrigin = p, e.relativeParent = c);
4672
4667
  }
4673
4668
  }
@@ -4686,38 +4681,38 @@ function Oh(e) {
4686
4681
  }
4687
4682
  e.options.transition = void 0;
4688
4683
  }
4689
- function Vh(e) {
4684
+ function Oh(e) {
4690
4685
  Le.totalNodes++, 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));
4691
4686
  }
4692
- function kh(e) {
4687
+ function Vh(e) {
4693
4688
  e.isProjectionDirty = e.isSharedProjectionDirty = e.isTransformDirty = !1;
4694
4689
  }
4695
- function Mh(e) {
4690
+ function kh(e) {
4696
4691
  e.clearSnapshot();
4697
4692
  }
4698
4693
  function Ui(e) {
4699
4694
  e.clearMeasurements();
4700
4695
  }
4701
- function Lh(e) {
4696
+ function Mh(e) {
4702
4697
  e.isLayoutDirty = !1;
4703
4698
  }
4704
- function Dh(e) {
4699
+ function Lh(e) {
4705
4700
  const { visualElement: t } = e.options;
4706
4701
  t && t.getProps().onBeforeLayoutMeasure && t.notify("BeforeLayoutMeasure"), e.resetTransform();
4707
4702
  }
4708
4703
  function zi(e) {
4709
4704
  e.finishAnimation(), e.targetDelta = e.relativeTarget = e.target = void 0, e.isProjectionDirty = !0;
4710
4705
  }
4711
- function jh(e) {
4706
+ function Dh(e) {
4712
4707
  e.resolveTargetDelta();
4713
4708
  }
4714
- function _h(e) {
4709
+ function jh(e) {
4715
4710
  e.calcProjection();
4716
4711
  }
4717
- function Fh(e) {
4712
+ function _h(e) {
4718
4713
  e.resetRotation();
4719
4714
  }
4720
- function Nh(e) {
4715
+ function Fh(e) {
4721
4716
  e.removeLeadSnapshot();
4722
4717
  }
4723
4718
  function Hi(e, t, n) {
@@ -4726,26 +4721,26 @@ function Hi(e, t, n) {
4726
4721
  function $i(e, t, n, r) {
4727
4722
  e.min = D(t.min, n.min, r), e.max = D(t.max, n.max, r);
4728
4723
  }
4729
- function Bh(e, t, n, r) {
4724
+ function Nh(e, t, n, r) {
4730
4725
  $i(e.x, t.x, n.x, r), $i(e.y, t.y, n.y, r);
4731
4726
  }
4732
- function Ih(e) {
4727
+ function Bh(e) {
4733
4728
  return e.animationValues && e.animationValues.opacityExit !== void 0;
4734
4729
  }
4735
- const Wh = {
4730
+ const Ih = {
4736
4731
  duration: 0.45,
4737
4732
  ease: [0.4, 0, 0.1, 1]
4738
4733
  }, qi = (e) => typeof navigator < "u" && navigator.userAgent.toLowerCase().includes(e), Gi = qi("applewebkit/") && !qi("chrome/") ? Math.round : j;
4739
4734
  function Xi(e) {
4740
4735
  e.min = Gi(e.min), e.max = Gi(e.max);
4741
4736
  }
4742
- function Uh(e) {
4737
+ function Wh(e) {
4743
4738
  Xi(e.x), Xi(e.y);
4744
4739
  }
4745
4740
  function ia(e, t, n) {
4746
4741
  return e === "position" || e === "preserve-aspect" && !Xn(Ni(t), Ni(n), 0.2);
4747
4742
  }
4748
- const zh = ra({
4743
+ const Uh = ra({
4749
4744
  attachResizeListener: (e, t) => fe(e, "resize", t),
4750
4745
  measureScroll: () => ({
4751
4746
  x: document.documentElement.scrollLeft || document.body.scrollLeft,
@@ -4761,7 +4756,7 @@ const zh = ra({
4761
4756
  }),
4762
4757
  defaultParent: () => {
4763
4758
  if (!Mn.current) {
4764
- const e = new zh({});
4759
+ const e = new Uh({});
4765
4760
  e.mount(window), e.setOptions({ layoutScroll: !0 }), Mn.current = e;
4766
4761
  }
4767
4762
  return Mn.current;
@@ -4770,25 +4765,25 @@ const zh = ra({
4770
4765
  e.style.transform = t !== void 0 ? t : "none";
4771
4766
  },
4772
4767
  checkIsScrollRoot: (e) => window.getComputedStyle(e).position === "fixed"
4773
- }), Hh = {
4768
+ }), zh = {
4774
4769
  pan: {
4775
- Feature: oh
4770
+ Feature: sh
4776
4771
  },
4777
4772
  drag: {
4778
- Feature: sh,
4773
+ Feature: ih,
4779
4774
  ProjectionNode: sa,
4780
4775
  MeasureLayout: Zo
4781
4776
  }
4782
- }, $h = /var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;
4783
- function qh(e) {
4784
- const t = $h.exec(e);
4777
+ }, Hh = /var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;
4778
+ function $h(e) {
4779
+ const t = Hh.exec(e);
4785
4780
  if (!t)
4786
4781
  return [,];
4787
4782
  const [, n, r] = t;
4788
4783
  return [n, r];
4789
4784
  }
4790
4785
  function Zn(e, t, n = 1) {
4791
- const [r, i] = qh(e);
4786
+ const [r, i] = $h(e);
4792
4787
  if (!r)
4793
4788
  return;
4794
4789
  const o = window.getComputedStyle(t).getPropertyValue(r);
@@ -4798,7 +4793,7 @@ function Zn(e, t, n = 1) {
4798
4793
  } else
4799
4794
  return Wn(i) ? Zn(i, t, n + 1) : i;
4800
4795
  }
4801
- function Gh(e, { ...t }, n) {
4796
+ function qh(e, { ...t }, n) {
4802
4797
  const r = e.current;
4803
4798
  if (!(r instanceof Element))
4804
4799
  return { target: t, transitionEnd: n };
@@ -4818,7 +4813,7 @@ function Gh(e, { ...t }, n) {
4818
4813
  }
4819
4814
  return { target: t, transitionEnd: n };
4820
4815
  }
4821
- const Xh = /* @__PURE__ */ new Set([
4816
+ const Gh = /* @__PURE__ */ new Set([
4822
4817
  "width",
4823
4818
  "height",
4824
4819
  "top",
@@ -4829,7 +4824,7 @@ const Xh = /* @__PURE__ */ new Set([
4829
4824
  "y",
4830
4825
  "translateX",
4831
4826
  "translateY"
4832
- ]), oa = (e) => Xh.has(e), Kh = (e) => Object.keys(e).some(oa), Ki = (e) => e === Fe || e === C, Yi = (e, t) => parseFloat(e.split(", ")[t]), Ji = (e, t) => (n, { transform: r }) => {
4827
+ ]), oa = (e) => Gh.has(e), Xh = (e) => Object.keys(e).some(oa), Ki = (e) => e === Fe || e === C, Yi = (e, t) => parseFloat(e.split(", ")[t]), Ji = (e, t) => (n, { transform: r }) => {
4833
4828
  if (r === "none" || !r)
4834
4829
  return 0;
4835
4830
  const i = r.match(/^matrix3d\((.+)\)$/);
@@ -4839,10 +4834,10 @@ const Xh = /* @__PURE__ */ new Set([
4839
4834
  const o = r.match(/^matrix\((.+)\)$/);
4840
4835
  return o ? Yi(o[1], e) : 0;
4841
4836
  }
4842
- }, Yh = /* @__PURE__ */ new Set(["x", "y", "z"]), Jh = vt.filter((e) => !Yh.has(e));
4843
- function Zh(e) {
4837
+ }, Kh = /* @__PURE__ */ new Set(["x", "y", "z"]), Yh = vt.filter((e) => !Kh.has(e));
4838
+ function Jh(e) {
4844
4839
  const t = [];
4845
- return Jh.forEach((n) => {
4840
+ return Yh.forEach((n) => {
4846
4841
  const r = e.getValue(n);
4847
4842
  r !== void 0 && (t.push([n, r.get()]), r.set(n.startsWith("scale") ? 1 : 0));
4848
4843
  }), t.length && e.render(), t;
@@ -4861,7 +4856,7 @@ const Je = {
4861
4856
  };
4862
4857
  Je.translateX = Je.x;
4863
4858
  Je.translateY = Je.y;
4864
- const Qh = (e, t, n) => {
4859
+ const Zh = (e, t, n) => {
4865
4860
  const r = t.measureViewportBox(), i = t.current, o = getComputedStyle(i), { display: s } = o, a = {};
4866
4861
  s === "none" && t.setStaticValue("display", e.display || "block"), n.forEach((u) => {
4867
4862
  a[u] = Je[u](r, o);
@@ -4871,7 +4866,7 @@ const Qh = (e, t, n) => {
4871
4866
  const f = t.getValue(u);
4872
4867
  f && f.jump(a[u]), e[u] = Je[u](l, o);
4873
4868
  }), e;
4874
- }, ed = (e, t, n = {}, r = {}) => {
4869
+ }, Qh = (e, t, n = {}, r = {}) => {
4875
4870
  t = { ...t }, r = { ...r };
4876
4871
  const i = Object.keys(t).filter(oa);
4877
4872
  let o = [], s = !1;
@@ -4895,23 +4890,23 @@ const Qh = (e, t, n) => {
4895
4890
  const p = u.get();
4896
4891
  typeof p == "string" && u.set(parseFloat(p)), typeof h == "string" ? t[l] = parseFloat(h) : Array.isArray(h) && d === C && (t[l] = h.map(parseFloat));
4897
4892
  } else
4898
- c != null && c.transform && (d != null && d.transform) && (f === 0 || h === 0) ? f === 0 ? u.set(d.transform(f)) : t[l] = c.transform(h) : (s || (o = Zh(e), s = !0), a.push(l), r[l] = r[l] !== void 0 ? r[l] : t[l], u.jump(h));
4893
+ c != null && c.transform && (d != null && d.transform) && (f === 0 || h === 0) ? f === 0 ? u.set(d.transform(f)) : t[l] = c.transform(h) : (s || (o = Jh(e), s = !0), a.push(l), r[l] = r[l] !== void 0 ? r[l] : t[l], u.jump(h));
4899
4894
  }), a.length) {
4900
- const l = a.indexOf("height") >= 0 ? window.pageYOffset : null, u = Qh(t, e, a);
4895
+ const l = a.indexOf("height") >= 0 ? window.pageYOffset : null, u = Zh(t, e, a);
4901
4896
  return o.length && o.forEach(([f, c]) => {
4902
4897
  e.getValue(f).set(c);
4903
4898
  }), e.render(), sn && l !== null && window.scrollTo({ top: l }), { target: u, transitionEnd: r };
4904
4899
  } else
4905
4900
  return { target: t, transitionEnd: r };
4906
4901
  };
4907
- function td(e, t, n, r) {
4908
- return Kh(t) ? ed(e, t, n, r) : { target: t, transitionEnd: r };
4902
+ function ed(e, t, n, r) {
4903
+ return Xh(t) ? Qh(e, t, n, r) : { target: t, transitionEnd: r };
4909
4904
  }
4910
- const nd = (e, t, n, r) => {
4911
- const i = Gh(e, t, r);
4912
- return t = i.target, r = i.transitionEnd, td(e, t, n, r);
4905
+ const td = (e, t, n, r) => {
4906
+ const i = qh(e, t, r);
4907
+ return t = i.target, r = i.transitionEnd, ed(e, t, n, r);
4913
4908
  }, Qn = { current: null }, aa = { current: !1 };
4914
- function rd() {
4909
+ function nd() {
4915
4910
  if (aa.current = !0, !!sn)
4916
4911
  if (window.matchMedia) {
4917
4912
  const e = window.matchMedia("(prefers-reduced-motion)"), t = () => Qn.current = e.matches;
@@ -4919,13 +4914,13 @@ function rd() {
4919
4914
  } else
4920
4915
  Qn.current = !1;
4921
4916
  }
4922
- function id(e, t, n) {
4917
+ function rd(e, t, n) {
4923
4918
  const { willChange: r } = t;
4924
4919
  for (const i in t) {
4925
4920
  const o = t[i], s = n[i];
4926
- if (X(o))
4921
+ if (K(o))
4927
4922
  e.addValue(i, o), Xt(r) && r.add(i);
4928
- else if (X(s))
4923
+ else if (K(s))
4929
4924
  e.addValue(i, Ye(o, { owner: e })), Xt(r) && r.remove(i);
4930
4925
  else if (s !== o)
4931
4926
  if (e.hasValue(i)) {
@@ -4940,7 +4935,7 @@ function id(e, t, n) {
4940
4935
  t[i] === void 0 && e.removeValue(i);
4941
4936
  return t;
4942
4937
  }
4943
- const Zi = /* @__PURE__ */ new WeakMap(), la = Object.keys(mt), sd = la.length, Qi = [
4938
+ const Zi = /* @__PURE__ */ new WeakMap(), la = Object.keys(mt), id = la.length, Qi = [
4944
4939
  "AnimationStart",
4945
4940
  "AnimationComplete",
4946
4941
  "Update",
@@ -4948,8 +4943,8 @@ const Zi = /* @__PURE__ */ new WeakMap(), la = Object.keys(mt), sd = la.length,
4948
4943
  "LayoutMeasure",
4949
4944
  "LayoutAnimationStart",
4950
4945
  "LayoutAnimationComplete"
4951
- ], od = fr.length;
4952
- class ad {
4946
+ ], sd = fr.length;
4947
+ class od {
4953
4948
  constructor({ parent: t, props: n, presenceContext: r, reducedMotionConfig: i, visualState: o }, s = {}) {
4954
4949
  this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.values = /* @__PURE__ */ new Map(), this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
4955
4950
  this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
@@ -4959,7 +4954,7 @@ class ad {
4959
4954
  const { willChange: u, ...f } = this.scrapeMotionValuesFromProps(n, {});
4960
4955
  for (const c in f) {
4961
4956
  const h = f[c];
4962
- a[c] !== void 0 && X(h) && (h.set(a[c], !1), Xt(u) && u.add(c));
4957
+ a[c] !== void 0 && K(h) && (h.set(a[c], !1), Xt(u) && u.add(c));
4963
4958
  }
4964
4959
  }
4965
4960
  /**
@@ -4973,7 +4968,7 @@ class ad {
4973
4968
  return {};
4974
4969
  }
4975
4970
  mount(t) {
4976
- this.current = t, Zi.set(t, this), this.projection && !this.projection.instance && this.projection.mount(t), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((n, r) => this.bindToMotionValue(r, n)), aa.current || rd(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : Qn.current, this.parent && this.parent.children.add(this), this.update(this.props, this.presenceContext);
4971
+ this.current = t, Zi.set(t, this), this.projection && !this.projection.instance && this.projection.mount(t), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((n, r) => this.bindToMotionValue(r, n)), aa.current || nd(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : Qn.current, this.parent && this.parent.children.add(this), this.update(this.props, this.presenceContext);
4977
4972
  }
4978
4973
  unmount() {
4979
4974
  Zi.delete(this.current), this.projection && this.projection.unmount(), me(this.notifyUpdate), me(this.render), this.valueSubscriptions.forEach((t) => t()), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent && this.parent.children.delete(this);
@@ -4996,7 +4991,7 @@ class ad {
4996
4991
  }
4997
4992
  loadFeatures({ children: t, ...n }, r, i, o) {
4998
4993
  let s, a;
4999
- for (let l = 0; l < sd; l++) {
4994
+ for (let l = 0; l < id; l++) {
5000
4995
  const u = la[l], { isEnabled: f, Feature: c, ProjectionNode: h, MeasureLayout: d } = mt[u];
5001
4996
  h && (s = h), f(n) && (!this.features[u] && c && (this.features[u] = new c(this)), d && (a = d));
5002
4997
  }
@@ -5039,7 +5034,7 @@ class ad {
5039
5034
  * removed with a re-render to work.
5040
5035
  */
5041
5036
  measureViewportBox() {
5042
- return this.current ? this.measureInstanceViewportBox(this.current, this.props) : _();
5037
+ return this.current ? this.measureInstanceViewportBox(this.current, this.props) : F();
5043
5038
  }
5044
5039
  getStaticValue(t) {
5045
5040
  return this.latestValues[t];
@@ -5069,7 +5064,7 @@ class ad {
5069
5064
  const o = t["on" + i];
5070
5065
  o && (this.propEventSubscriptions[i] = this.on(i, o));
5071
5066
  }
5072
- this.prevMotionValues = id(this, this.scrapeMotionValuesFromProps(t, this.prevProps), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
5067
+ this.prevMotionValues = rd(this, this.scrapeMotionValuesFromProps(t, this.prevProps), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
5073
5068
  }
5074
5069
  getProps() {
5075
5070
  return this.props;
@@ -5100,7 +5095,7 @@ class ad {
5100
5095
  return this.props.initial !== void 0 && (r.initial = this.props.initial), r;
5101
5096
  }
5102
5097
  const n = {};
5103
- for (let r = 0; r < od; r++) {
5098
+ for (let r = 0; r < sd; r++) {
5104
5099
  const i = fr[r], o = this.props[i];
5105
5100
  (pt(o) || o === !1) && (n[i] = o);
5106
5101
  }
@@ -5166,7 +5161,7 @@ class ad {
5166
5161
  if (r && i !== void 0)
5167
5162
  return i;
5168
5163
  const o = this.getBaseTargetFromProps(this.props, t);
5169
- return o !== void 0 && !X(o) ? o : this.initialValues[t] !== void 0 && i === void 0 ? void 0 : this.baseTarget[t];
5164
+ return o !== void 0 && !K(o) ? o : this.initialValues[t] !== void 0 && i === void 0 ? void 0 : this.baseTarget[t];
5170
5165
  }
5171
5166
  on(t, n) {
5172
5167
  return this.events[t] || (this.events[t] = new Rr()), this.events[t].add(n);
@@ -5175,7 +5170,7 @@ class ad {
5175
5170
  this.events[t] && this.events[t].notify(...n);
5176
5171
  }
5177
5172
  }
5178
- class ca extends ad {
5173
+ class ca extends od {
5179
5174
  sortInstanceNodePosition(t, n) {
5180
5175
  return t.compareDocumentPosition(n) & 2 ? 1 : -1;
5181
5176
  }
@@ -5186,10 +5181,10 @@ class ca extends ad {
5186
5181
  delete n[t], delete r[t];
5187
5182
  }
5188
5183
  makeTargetAnimatableFromInstance({ transition: t, transitionEnd: n, ...r }, { transformValues: i }, o) {
5189
- let s = Tf(r, t || {}, this);
5184
+ let s = Ef(r, t || {}, this);
5190
5185
  if (i && (n && (n = i(n)), r && (r = i(r)), s && (s = i(s))), o) {
5191
- Sf(this, r, s);
5192
- const a = nd(this, r, s, n);
5186
+ wf(this, r, s);
5187
+ const a = td(this, r, s, n);
5193
5188
  n = a.transitionEnd, r = a.target;
5194
5189
  }
5195
5190
  return {
@@ -5199,10 +5194,10 @@ class ca extends ad {
5199
5194
  };
5200
5195
  }
5201
5196
  }
5202
- function ld(e) {
5197
+ function ad(e) {
5203
5198
  return window.getComputedStyle(e);
5204
5199
  }
5205
- class cd extends ca {
5200
+ class ld extends ca {
5206
5201
  constructor() {
5207
5202
  super(...arguments), this.type = "html";
5208
5203
  }
@@ -5211,7 +5206,7 @@ class cd extends ca {
5211
5206
  const r = Er(n);
5212
5207
  return r && r.default || 0;
5213
5208
  } else {
5214
- const r = ld(t), i = (Ys(n) ? r.getPropertyValue(n) : r[n]) || 0;
5209
+ const r = ad(t), i = (Ys(n) ? r.getPropertyValue(n) : r[n]) || 0;
5215
5210
  return typeof i == "string" ? i.trim() : i;
5216
5211
  }
5217
5212
  }
@@ -5227,7 +5222,7 @@ class cd extends ca {
5227
5222
  handleChildMotionValue() {
5228
5223
  this.childSubscription && (this.childSubscription(), delete this.childSubscription);
5229
5224
  const { children: t } = this.props;
5230
- X(t) && (this.childSubscription = t.on("change", (n) => {
5225
+ K(t) && (this.childSubscription = t.on("change", (n) => {
5231
5226
  this.current && (this.current.textContent = `${n}`);
5232
5227
  }));
5233
5228
  }
@@ -5235,7 +5230,7 @@ class cd extends ca {
5235
5230
  no(t, n, r, i);
5236
5231
  }
5237
5232
  }
5238
- class ud extends ca {
5233
+ class cd extends ca {
5239
5234
  constructor() {
5240
5235
  super(...arguments), this.type = "svg", this.isSVGTag = !1;
5241
5236
  }
@@ -5250,7 +5245,7 @@ class ud extends ca {
5250
5245
  return n = ro.has(n) ? n : cr(n), t.getAttribute(n);
5251
5246
  }
5252
5247
  measureInstanceViewportBox() {
5253
- return _();
5248
+ return F();
5254
5249
  }
5255
5250
  scrapeMotionValuesFromProps(t, n) {
5256
5251
  return so(t, n);
@@ -5265,18 +5260,18 @@ class ud extends ca {
5265
5260
  this.isSVGTag = gr(t.tagName), super.mount(t);
5266
5261
  }
5267
5262
  }
5268
- const fd = (e, t) => hr(e) ? new ud(t, { enableHardwareAcceleration: !1 }) : new cd(t, { enableHardwareAcceleration: !0 }), hd = {
5263
+ const ud = (e, t) => hr(e) ? new cd(t, { enableHardwareAcceleration: !1 }) : new ld(t, { enableHardwareAcceleration: !0 }), fd = {
5269
5264
  layout: {
5270
5265
  ProjectionNode: sa,
5271
5266
  MeasureLayout: Zo
5272
5267
  }
5273
- }, dd = {
5274
- ...Bf,
5275
- ...iu,
5276
- ...Hh,
5277
- ...hd
5278
- }, ua = /* @__PURE__ */ hc((e, t) => $c(e, t, dd, fd));
5279
- function pd(e) {
5268
+ }, hd = {
5269
+ ...Nf,
5270
+ ...ru,
5271
+ ...zh,
5272
+ ...fd
5273
+ }, ua = /* @__PURE__ */ fc((e, t) => Hc(e, t, hd, ud));
5274
+ function dd(e) {
5280
5275
  const { children: t, parentRef: n, onlyChild: r } = e, [i, o] = w.useState({ top: 0, left: 0 });
5281
5276
  return w.useLayoutEffect(() => {
5282
5277
  if (n.current) {
@@ -5302,7 +5297,7 @@ function pd(e) {
5302
5297
  n.current
5303
5298
  );
5304
5299
  }
5305
- function md(e) {
5300
+ function pd(e) {
5306
5301
  return /* @__PURE__ */ R.jsx(
5307
5302
  "svg",
5308
5303
  {
@@ -5322,7 +5317,7 @@ function md(e) {
5322
5317
  }
5323
5318
  );
5324
5319
  }
5325
- function gd(e, t) {
5320
+ function md(e, t) {
5326
5321
  if (e == null)
5327
5322
  return {};
5328
5323
  var n = {}, r = Object.keys(e), i, o;
@@ -5345,7 +5340,7 @@ function er(e, t) {
5345
5340
  return r.__proto__ = i, r;
5346
5341
  }, er(e, t);
5347
5342
  }
5348
- function yd(e, t) {
5343
+ function gd(e, t) {
5349
5344
  e.prototype = Object.create(t.prototype), e.prototype.constructor = e, er(e, t);
5350
5345
  }
5351
5346
  function Ln(e, t, n) {
@@ -5359,36 +5354,36 @@ function Ln(e, t, n) {
5359
5354
  * Copyright(c) 2015 Douglas Christopher Wilson
5360
5355
  * MIT Licensed
5361
5356
  */
5362
- var es = /; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g, vd = /\\([\u000b\u0020-\u00ff])/g, bd = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/, xd = wd;
5363
- function wd(e) {
5357
+ var es = /; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g, yd = /\\([\u000b\u0020-\u00ff])/g, vd = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/, bd = xd;
5358
+ function xd(e) {
5364
5359
  if (!e)
5365
5360
  throw new TypeError("argument string is required");
5366
- var t = typeof e == "object" ? Sd(e) : e;
5361
+ var t = typeof e == "object" ? wd(e) : e;
5367
5362
  if (typeof t != "string")
5368
5363
  throw new TypeError("argument string is required to be a string");
5369
5364
  var n = t.indexOf(";"), r = n !== -1 ? t.slice(0, n).trim() : t.trim();
5370
- if (!bd.test(r))
5365
+ if (!vd.test(r))
5371
5366
  throw new TypeError("invalid media type");
5372
- var i = new Ed(r.toLowerCase());
5367
+ var i = new Sd(r.toLowerCase());
5373
5368
  if (n !== -1) {
5374
5369
  var o, s, a;
5375
5370
  for (es.lastIndex = n; s = es.exec(t); ) {
5376
5371
  if (s.index !== n)
5377
5372
  throw new TypeError("invalid parameter format");
5378
- n += s[0].length, o = s[1].toLowerCase(), a = s[2], a.charCodeAt(0) === 34 && (a = a.slice(1, -1), a.indexOf("\\") !== -1 && (a = a.replace(vd, "$1"))), i.parameters[o] = a;
5373
+ n += s[0].length, o = s[1].toLowerCase(), a = s[2], a.charCodeAt(0) === 34 && (a = a.slice(1, -1), a.indexOf("\\") !== -1 && (a = a.replace(yd, "$1"))), i.parameters[o] = a;
5379
5374
  }
5380
5375
  if (n !== t.length)
5381
5376
  throw new TypeError("invalid parameter format");
5382
5377
  }
5383
5378
  return i;
5384
5379
  }
5385
- function Sd(e) {
5380
+ function wd(e) {
5386
5381
  var t;
5387
5382
  if (typeof e.getHeader == "function" ? t = e.getHeader("content-type") : typeof e.headers == "object" && (t = e.headers && e.headers["content-type"]), typeof t != "string")
5388
5383
  throw new TypeError("content-type header is missing from object");
5389
5384
  return t;
5390
5385
  }
5391
- function Ed(e) {
5386
+ function Sd(e) {
5392
5387
  this.parameters = /* @__PURE__ */ Object.create(null), this.type = e;
5393
5388
  }
5394
5389
  var He = /* @__PURE__ */ new Map(), fa = function(t) {
@@ -5403,7 +5398,7 @@ var He = /* @__PURE__ */ new Map(), fa = function(t) {
5403
5398
  var o = i.getResponseHeader("Content-Type");
5404
5399
  if (!o)
5405
5400
  throw new Error("Content type not found");
5406
- var s = xd(o).type;
5401
+ var s = bd(o).type;
5407
5402
  if (!(s === "image/svg+xml" || s === "text/plain"))
5408
5403
  throw new Error("Invalid content type: ".concat(s));
5409
5404
  }
@@ -5424,7 +5419,7 @@ var He = /* @__PURE__ */ new Map(), fa = function(t) {
5424
5419
  }, i.open("GET", t), i.withCredentials = n, i.overrideMimeType && i.overrideMimeType("text/xml"), i.send();
5425
5420
  }, Ee = {}, ns = function(t, n) {
5426
5421
  Ee[t] = Ee[t] || [], Ee[t].push(n);
5427
- }, Td = function(t) {
5422
+ }, Ed = function(t) {
5428
5423
  for (var n = function(s, a) {
5429
5424
  setTimeout(function() {
5430
5425
  if (Array.isArray(Ee[t])) {
@@ -5434,7 +5429,7 @@ var He = /* @__PURE__ */ new Map(), fa = function(t) {
5434
5429
  }, 0);
5435
5430
  }, r = 0, i = Ee[t].length; r < i; r++)
5436
5431
  n(r);
5437
- }, Ad = function(t, n, r) {
5432
+ }, Td = function(t, n, r) {
5438
5433
  if (He.has(t)) {
5439
5434
  var i = He.get(t);
5440
5435
  if (i === void 0) {
@@ -5448,16 +5443,16 @@ var He = /* @__PURE__ */ new Map(), fa = function(t) {
5448
5443
  }
5449
5444
  He.set(t, void 0), ns(t, r), ha(t, n, function(o, s) {
5450
5445
  var a;
5451
- o ? He.set(t, o) : ((a = s.responseXML) === null || a === void 0 ? void 0 : a.documentElement) instanceof SVGSVGElement && He.set(t, s.responseXML.documentElement), Td(t);
5446
+ o ? He.set(t, o) : ((a = s.responseXML) === null || a === void 0 ? void 0 : a.documentElement) instanceof SVGSVGElement && He.set(t, s.responseXML.documentElement), Ed(t);
5452
5447
  });
5453
- }, Pd = function(t, n, r) {
5448
+ }, Ad = function(t, n, r) {
5454
5449
  ha(t, n, function(i, o) {
5455
5450
  var s;
5456
5451
  i ? r(i) : ((s = o.responseXML) === null || s === void 0 ? void 0 : s.documentElement) instanceof SVGSVGElement && r(null, o.responseXML.documentElement);
5457
5452
  });
5458
- }, Cd = 0, Rd = function() {
5459
- return ++Cd;
5460
- }, se = [], rs = {}, Od = "http://www.w3.org/2000/svg", Dn = "http://www.w3.org/1999/xlink", is = function(t, n, r, i, o, s, a) {
5453
+ }, Pd = 0, Cd = function() {
5454
+ return ++Pd;
5455
+ }, se = [], rs = {}, Rd = "http://www.w3.org/2000/svg", Dn = "http://www.w3.org/1999/xlink", is = function(t, n, r, i, o, s, a) {
5461
5456
  var l = t.getAttribute("data-src") || t.getAttribute("src");
5462
5457
  if (!l) {
5463
5458
  a(new Error("Invalid data-src or src attribute"));
@@ -5468,7 +5463,7 @@ var He = /* @__PURE__ */ new Map(), fa = function(t) {
5468
5463
  return;
5469
5464
  }
5470
5465
  se.push(t), t.setAttribute("src", "");
5471
- var u = i ? Ad : Pd;
5466
+ var u = i ? Td : Ad;
5472
5467
  u(l, o, function(f, c) {
5473
5468
  if (!c) {
5474
5469
  se.splice(se.indexOf(t), 1), t = null, a(f);
@@ -5503,13 +5498,13 @@ var He = /* @__PURE__ */ new Map(), fa = function(t) {
5503
5498
  path: [],
5504
5499
  pattern: ["fill", "stroke"],
5505
5500
  radialGradient: ["fill", "stroke"]
5506
- }, S, E, T, A, P;
5501
+ }, S, T, E, A, P;
5507
5502
  Object.keys(y).forEach(function(z) {
5508
- S = z, T = y[z], E = c.querySelectorAll(S + "[id]");
5503
+ S = z, E = y[z], T = c.querySelectorAll(S + "[id]");
5509
5504
  for (var ge = function(Ie, gn) {
5510
- A = E[Ie].id, P = A + "-" + Rd();
5505
+ A = T[Ie].id, P = A + "-" + Cd();
5511
5506
  var Oe;
5512
- Array.prototype.forEach.call(T, function(yn) {
5507
+ Array.prototype.forEach.call(E, function(yn) {
5513
5508
  Oe = c.querySelectorAll("[" + yn + '*="' + A + '"]');
5514
5509
  for (var Tt = 0, Ba = Oe.length; Tt < Ba; Tt++) {
5515
5510
  var Nr = Oe[Tt].getAttribute(yn);
@@ -5518,50 +5513,50 @@ var He = /* @__PURE__ */ new Map(), fa = function(t) {
5518
5513
  });
5519
5514
  for (var ue = c.querySelectorAll("[*|href]"), We = [], Ue = 0, tt = ue.length; Ue < tt; Ue++) {
5520
5515
  var Ve = ue[Ue].getAttributeNS(Dn, "href");
5521
- Ve && Ve.toString() === "#" + E[Ie].id && We.push(ue[Ue]);
5516
+ Ve && Ve.toString() === "#" + T[Ie].id && We.push(ue[Ue]);
5522
5517
  }
5523
5518
  for (var te = 0, Fr = We.length; te < Fr; te++)
5524
5519
  We[te].setAttributeNS(Dn, "href", "#" + P);
5525
- E[Ie].id = P;
5526
- }, Ne = 0, k = E.length; Ne < k; Ne++)
5520
+ T[Ie].id = P;
5521
+ }, Ne = 0, k = T.length; Ne < k; Ne++)
5527
5522
  ge(Ne);
5528
5523
  });
5529
5524
  }
5530
5525
  c.removeAttribute("xmlns:a");
5531
- for (var O = c.querySelectorAll("script"), W = [], K, N, H = 0, U = O.length; H < U; H++)
5532
- N = O[H].getAttribute("type"), (!N || N === "application/ecmascript" || N === "application/javascript" || N === "text/javascript") && (K = O[H].innerText || O[H].textContent, K && W.push(K), c.removeChild(O[H]));
5533
- if (W.length > 0 && (n === "always" || n === "once" && !rs[l])) {
5534
- for (var re = 0, B = W.length; re < B; re++)
5535
- new Function(W[re])(window);
5526
+ for (var O = c.querySelectorAll("script"), _ = [], H, B, $ = 0, U = O.length; $ < U; $++)
5527
+ B = O[$].getAttribute("type"), (!B || B === "application/ecmascript" || B === "application/javascript" || B === "text/javascript") && (H = O[$].innerText || O[$].textContent, H && _.push(H), c.removeChild(O[$]));
5528
+ if (_.length > 0 && (n === "always" || n === "once" && !rs[l])) {
5529
+ for (var re = 0, I = _.length; re < I; re++)
5530
+ new Function(_[re])(window);
5536
5531
  rs[l] = !0;
5537
5532
  }
5538
5533
  var ie = c.querySelectorAll("style");
5539
5534
  if (Array.prototype.forEach.call(ie, function(z) {
5540
5535
  z.textContent += "";
5541
- }), c.setAttribute("xmlns", Od), c.setAttribute("xmlns:xlink", Dn), s(c), !t.parentNode) {
5536
+ }), c.setAttribute("xmlns", Rd), c.setAttribute("xmlns:xlink", Dn), s(c), !t.parentNode) {
5542
5537
  se.splice(se.indexOf(t), 1), t = null, a(new Error("Parent node is null"));
5543
5538
  return;
5544
5539
  }
5545
5540
  t.parentNode.replaceChild(c, t), se.splice(se.indexOf(t), 1), t = null, a(null, c);
5546
5541
  });
5547
- }, Vd = function(t, n) {
5542
+ }, Od = function(t, n) {
5548
5543
  var r = n === void 0 ? {} : n, i = r.afterAll, o = i === void 0 ? function() {
5549
5544
  } : i, s = r.afterEach, a = s === void 0 ? function() {
5550
5545
  } : s, l = r.beforeEach, u = l === void 0 ? function() {
5551
5546
  } : l, f = r.cacheRequests, c = f === void 0 ? !0 : f, h = r.evalScripts, d = h === void 0 ? "never" : h, p = r.httpRequestWithCredentials, m = p === void 0 ? !1 : p, g = r.renumerateIRIElements, b = g === void 0 ? !0 : g;
5552
5547
  if (t && "length" in t)
5553
5548
  for (var x = 0, y = 0, S = t.length; y < S; y++)
5554
- is(t[y], d, b, c, m, u, function(E, T) {
5555
- a(E, T), t && "length" in t && t.length === ++x && o(x);
5549
+ is(t[y], d, b, c, m, u, function(T, E) {
5550
+ a(T, E), t && "length" in t && t.length === ++x && o(x);
5556
5551
  });
5557
5552
  else
5558
- t ? is(t, d, b, c, m, u, function(E, T) {
5559
- a(E, T), o(1), t = null;
5553
+ t ? is(t, d, b, c, m, u, function(T, E) {
5554
+ a(T, E), o(1), t = null;
5560
5555
  }) : o(0);
5561
- }, kd = function(t) {
5556
+ }, Vd = function(t) {
5562
5557
  var n = (t == null ? void 0 : t.ownerDocument) || document;
5563
5558
  return n.defaultView || window;
5564
- }, Md = function(t, n) {
5559
+ }, kd = function(t, n) {
5565
5560
  for (var r in t)
5566
5561
  if (!(r in n))
5567
5562
  return !0;
@@ -5569,8 +5564,8 @@ var He = /* @__PURE__ */ new Map(), fa = function(t) {
5569
5564
  if (t[i] !== n[i])
5570
5565
  return !0;
5571
5566
  return !1;
5572
- }, Ld = ["afterInjection", "beforeInjection", "desc", "evalScripts", "fallback", "httpRequestWithCredentials", "loading", "renumerateIRIElements", "src", "title", "useRequestCache", "wrapper"], Vt = "http://www.w3.org/2000/svg", ss = "http://www.w3.org/1999/xlink", Or = /* @__PURE__ */ function(e) {
5573
- yd(t, e);
5567
+ }, Md = ["afterInjection", "beforeInjection", "desc", "evalScripts", "fallback", "httpRequestWithCredentials", "loading", "renumerateIRIElements", "src", "title", "useRequestCache", "wrapper"], Vt = "http://www.w3.org/2000/svg", ss = "http://www.w3.org/1999/xlink", Or = /* @__PURE__ */ function(e) {
5568
+ gd(t, e);
5574
5569
  function t() {
5575
5570
  for (var r, i = arguments.length, o = new Array(i), s = 0; s < i; s++)
5576
5571
  o[s] = arguments[s];
@@ -5584,7 +5579,7 @@ var He = /* @__PURE__ */ new Map(), fa = function(t) {
5584
5579
  var n = t.prototype;
5585
5580
  return n.renderSVG = function() {
5586
5581
  var i = this;
5587
- if (this.reactWrapper instanceof kd(this.reactWrapper).Node) {
5582
+ if (this.reactWrapper instanceof Vd(this.reactWrapper).Node) {
5588
5583
  var o = this.props, s = o.desc, a = o.evalScripts, l = o.httpRequestWithCredentials, u = o.renumerateIRIElements, f = o.src, c = o.title, h = o.useRequestCache, d = this.props.onError, p = this.props.beforeInjection, m = this.props.afterInjection, g = this.props.wrapper, b, x;
5589
5584
  g === "svg" ? (b = document.createElementNS(Vt, g), b.setAttribute("xmlns", Vt), b.setAttribute("xmlns:xlink", ss), x = document.createElementNS(Vt, g)) : (b = document.createElement(g), x = document.createElement(g)), b.appendChild(x), x.dataset.src = f, this.nonReactWrapper = this.reactWrapper.appendChild(b);
5590
5585
  var y = function(A) {
@@ -5616,7 +5611,7 @@ var He = /* @__PURE__ */ new Map(), fa = function(t) {
5616
5611
  y(O);
5617
5612
  }
5618
5613
  });
5619
- }, E = function(A) {
5614
+ }, T = function(A) {
5620
5615
  if (A.setAttribute("role", "img"), s) {
5621
5616
  var P = A.querySelector(":scope > desc");
5622
5617
  P && A.removeChild(P);
@@ -5624,20 +5619,20 @@ var He = /* @__PURE__ */ new Map(), fa = function(t) {
5624
5619
  O.innerHTML = s, A.prepend(O);
5625
5620
  }
5626
5621
  if (c) {
5627
- var W = A.querySelector(":scope > title");
5628
- W && A.removeChild(W);
5629
- var K = document.createElement("title");
5630
- K.innerHTML = c, A.prepend(K);
5622
+ var _ = A.querySelector(":scope > title");
5623
+ _ && A.removeChild(_);
5624
+ var H = document.createElement("title");
5625
+ H.innerHTML = c, A.prepend(H);
5631
5626
  }
5632
5627
  try {
5633
5628
  p(A);
5634
- } catch (N) {
5635
- y(N);
5629
+ } catch (B) {
5630
+ y(B);
5636
5631
  }
5637
5632
  };
5638
- Vd(x, {
5633
+ Od(x, {
5639
5634
  afterEach: S,
5640
- beforeEach: E,
5635
+ beforeEach: T,
5641
5636
  cacheRequests: h,
5642
5637
  evalScripts: a,
5643
5638
  httpRequestWithCredentials: l,
@@ -5651,7 +5646,7 @@ var He = /* @__PURE__ */ new Map(), fa = function(t) {
5651
5646
  this._isMounted = !0, this.renderSVG();
5652
5647
  }, n.componentDidUpdate = function(i) {
5653
5648
  var o = this;
5654
- Md(Yt({}, i), this.props) && this.setState(function() {
5649
+ kd(Yt({}, i), this.props) && this.setState(function() {
5655
5650
  return o.initialState;
5656
5651
  }, function() {
5657
5652
  o.removeSVG(), o.renderSVG();
@@ -5665,7 +5660,7 @@ var He = /* @__PURE__ */ new Map(), fa = function(t) {
5665
5660
  i.httpRequestWithCredentials;
5666
5661
  var s = i.loading;
5667
5662
  i.renumerateIRIElements, i.src, i.title, i.useRequestCache;
5668
- var a = i.wrapper, l = gd(i, Ld), u = a;
5663
+ var a = i.wrapper, l = md(i, Md), u = a;
5669
5664
  return /* @__PURE__ */ w.createElement(u, Yt({}, l, {
5670
5665
  ref: this.refCallback
5671
5666
  }, a === "svg" ? {
@@ -5692,48 +5687,48 @@ Or.defaultProps = {
5692
5687
  wrapper: "div"
5693
5688
  };
5694
5689
  Or.propTypes = {
5695
- afterInjection: I.func,
5696
- beforeInjection: I.func,
5697
- desc: I.string,
5698
- evalScripts: I.oneOf(["always", "once", "never"]),
5699
- fallback: I.oneOfType([I.func, I.object, I.string]),
5700
- httpRequestWithCredentials: I.bool,
5701
- loading: I.oneOfType([I.func, I.object, I.string]),
5702
- onError: I.func,
5703
- renumerateIRIElements: I.bool,
5704
- src: I.string.isRequired,
5705
- title: I.string,
5706
- useRequestCache: I.bool,
5707
- wrapper: I.oneOf(["div", "span", "svg"])
5690
+ afterInjection: W.func,
5691
+ beforeInjection: W.func,
5692
+ desc: W.string,
5693
+ evalScripts: W.oneOf(["always", "once", "never"]),
5694
+ fallback: W.oneOfType([W.func, W.object, W.string]),
5695
+ httpRequestWithCredentials: W.bool,
5696
+ loading: W.oneOfType([W.func, W.object, W.string]),
5697
+ onError: W.func,
5698
+ renumerateIRIElements: W.bool,
5699
+ src: W.string.isRequired,
5700
+ title: W.string,
5701
+ useRequestCache: W.bool,
5702
+ wrapper: W.oneOf(["div", "span", "svg"])
5708
5703
  };
5709
5704
  function da({ item: e, level: t = 0, ...n }) {
5710
- var b;
5711
- const { isActive: r, isCollapsed: i, expanded: o, toggleExpand: s } = n, a = `level-${t}`, l = i ? "collapsed" : "expanded", u = r(e.id) ? "active" : "", f = (x, y = a) => `${x} ${y} ${l} ${u}`, c = !!((b = e.children) != null && b.length), [h, d] = w.useState(!1), p = w.useRef();
5712
- function m(x) {
5713
- var T;
5714
- const { level: y, hovered: S, parentRef: E } = x;
5715
- return !c || i && y >= 2 && !S ? null : /* @__PURE__ */ R.jsx(
5716
- pd,
5705
+ var T;
5706
+ const { isActive: r, isCollapsed: i, expanded: o, toggleExpand: s } = n, a = `level-${t}`, l = i ? "collapsed" : "expanded", u = r(e.id) ? "active" : "", f = (E, A = a) => `${E} ${A} ${l} ${u}`, c = !!((T = e.children) != null && T.length), [h, d] = w.useState(!1), p = w.useRef();
5707
+ function m(E) {
5708
+ var _;
5709
+ const { level: A, hovered: P, parentRef: O } = E;
5710
+ return !c || i && A >= 2 && !P ? null : /* @__PURE__ */ R.jsx(
5711
+ dd,
5717
5712
  {
5718
- parentRef: E,
5719
- onlyChild: !i || i && y < 2,
5713
+ parentRef: O,
5714
+ onlyChild: !i || i && A < 2,
5720
5715
  children: /* @__PURE__ */ R.jsx(
5721
5716
  ua.div,
5722
5717
  {
5723
- className: f("menu-item__dropdown", `level-${y}`),
5718
+ className: f("menu-item__dropdown", `level-${A}`),
5724
5719
  initial: { height: i ? "auto" : 0 },
5725
5720
  animate: {
5726
5721
  height: i || o(e.id) ? "auto" : 0
5727
5722
  },
5728
5723
  transition: { duration: 0.2 },
5729
- children: (T = e.children) == null ? void 0 : T.map((A) => /* @__PURE__ */ w.createElement(da, { ...n, key: A.id, item: A, level: y }))
5724
+ children: (_ = e.children) == null ? void 0 : _.map((H) => /* @__PURE__ */ w.createElement(da, { ...n, key: H.id, item: H, level: A }))
5730
5725
  },
5731
5726
  +i
5732
5727
  )
5733
5728
  }
5734
5729
  );
5735
5730
  }
5736
- const g = c ? "div" : vl;
5731
+ const g = c ? "#" : e.path || "#", b = window.location.pathname.split("/")[1], x = g.split("/")[1], y = b !== x && g !== "#" ? window.location.origin + g : g, S = c ? "div" : y.includes("https") ? "a" : yl;
5737
5732
  return /* @__PURE__ */ R.jsxs(
5738
5733
  "div",
5739
5734
  {
@@ -5743,21 +5738,21 @@ function da({ item: e, level: t = 0, ...n }) {
5743
5738
  onMouseLeave: () => i && d(!1),
5744
5739
  children: [
5745
5740
  /* @__PURE__ */ R.jsxs(
5746
- g,
5741
+ S,
5747
5742
  {
5748
- to: c ? "#" : e.path || "#",
5743
+ to: y,
5749
5744
  style: {
5750
5745
  paddingLeft: `${i ? "0.5rem" : `${t * 1}rem`}`
5751
5746
  },
5752
5747
  className: f("menu-item__link"),
5753
- onClick: (x) => {
5754
- c && (x.preventDefault(), i || s(e.id));
5748
+ onClick: (E) => {
5749
+ c && (E.preventDefault(), i || s(e.id));
5755
5750
  },
5756
5751
  children: [
5757
- t !== 0 && /* @__PURE__ */ R.jsx(Dd, { cls: f, item: e }),
5752
+ t !== 0 && /* @__PURE__ */ R.jsx(Ld, { cls: f, item: e }),
5758
5753
  /* @__PURE__ */ R.jsx("span", { className: f("menu-item__label"), children: e.name }),
5759
5754
  c && /* @__PURE__ */ R.jsx("div", { className: f("menu-item__icon-arrow__wrapper"), children: /* @__PURE__ */ R.jsx(
5760
- md,
5755
+ pd,
5761
5756
  {
5762
5757
  className: f(
5763
5758
  `menu-item__icon-arrow__icon ${o(e.id) ? "open" : "close"}`
@@ -5773,7 +5768,7 @@ function da({ item: e, level: t = 0, ...n }) {
5773
5768
  e.id
5774
5769
  );
5775
5770
  }
5776
- function Dd({ item: e, cls: t }) {
5771
+ function Ld({ item: e, cls: t }) {
5777
5772
  var s, a;
5778
5773
  const [n, r] = w.useState(!1), i = () => {
5779
5774
  r(!0);
@@ -5829,7 +5824,7 @@ function pa(e, t, n = []) {
5829
5824
  }
5830
5825
  return null;
5831
5826
  }
5832
- function jd(e) {
5827
+ function Dd(e) {
5833
5828
  return /* @__PURE__ */ R.jsx(
5834
5829
  "svg",
5835
5830
  {
@@ -5856,28 +5851,28 @@ function ma(e, t) {
5856
5851
  return e.apply(t, arguments);
5857
5852
  };
5858
5853
  }
5859
- const { toString: _d } = Object.prototype, { getPrototypeOf: Vr } = Object, fn = ((e) => (t) => {
5860
- const n = _d.call(t);
5854
+ const { toString: jd } = Object.prototype, { getPrototypeOf: Vr } = Object, fn = ((e) => (t) => {
5855
+ const n = jd.call(t);
5861
5856
  return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
5862
5857
  })(/* @__PURE__ */ Object.create(null)), ce = (e) => (e = e.toLowerCase(), (t) => fn(t) === e), hn = (e) => (t) => typeof t === e, { isArray: et } = Array, yt = hn("undefined");
5863
- function Fd(e) {
5858
+ function _d(e) {
5864
5859
  return e !== null && !yt(e) && e.constructor !== null && !yt(e.constructor) && ee(e.constructor.isBuffer) && e.constructor.isBuffer(e);
5865
5860
  }
5866
5861
  const ga = ce("ArrayBuffer");
5867
- function Nd(e) {
5862
+ function Fd(e) {
5868
5863
  let t;
5869
5864
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && ga(e.buffer), t;
5870
5865
  }
5871
- const Bd = hn("string"), ee = hn("function"), ya = hn("number"), dn = (e) => e !== null && typeof e == "object", Id = (e) => e === !0 || e === !1, jt = (e) => {
5866
+ const Nd = hn("string"), ee = hn("function"), ya = hn("number"), dn = (e) => e !== null && typeof e == "object", Bd = (e) => e === !0 || e === !1, jt = (e) => {
5872
5867
  if (fn(e) !== "object")
5873
5868
  return !1;
5874
5869
  const t = Vr(e);
5875
5870
  return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
5876
- }, Wd = ce("Date"), Ud = ce("File"), zd = ce("Blob"), Hd = ce("FileList"), $d = (e) => dn(e) && ee(e.pipe), qd = (e) => {
5871
+ }, Id = ce("Date"), Wd = ce("File"), Ud = ce("Blob"), zd = ce("FileList"), Hd = (e) => dn(e) && ee(e.pipe), $d = (e) => {
5877
5872
  let t;
5878
5873
  return e && (typeof FormData == "function" && e instanceof FormData || ee(e.append) && ((t = fn(e)) === "formdata" || // detect form-data instance
5879
5874
  t === "object" && ee(e.toString) && e.toString() === "[object FormData]"));
5880
- }, Gd = ce("URLSearchParams"), Xd = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
5875
+ }, qd = ce("URLSearchParams"), Gd = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
5881
5876
  function St(e, t, { allOwnKeys: n = !1 } = {}) {
5882
5877
  if (e === null || typeof e > "u")
5883
5878
  return;
@@ -5911,13 +5906,13 @@ function tr() {
5911
5906
  arguments[r] && St(arguments[r], n);
5912
5907
  return t;
5913
5908
  }
5914
- const Kd = (e, t, n, { allOwnKeys: r } = {}) => (St(t, (i, o) => {
5909
+ const Xd = (e, t, n, { allOwnKeys: r } = {}) => (St(t, (i, o) => {
5915
5910
  n && ee(i) ? e[o] = ma(i, n) : e[o] = i;
5916
- }, { allOwnKeys: r }), e), Yd = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Jd = (e, t, n, r) => {
5911
+ }, { allOwnKeys: r }), e), Kd = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Yd = (e, t, n, r) => {
5917
5912
  e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
5918
5913
  value: t.prototype
5919
5914
  }), n && Object.assign(e.prototype, n);
5920
- }, Zd = (e, t, n, r) => {
5915
+ }, Jd = (e, t, n, r) => {
5921
5916
  let i, o, s;
5922
5917
  const a = {};
5923
5918
  if (t = t || {}, e == null)
@@ -5928,11 +5923,11 @@ const Kd = (e, t, n, { allOwnKeys: r } = {}) => (St(t, (i, o) => {
5928
5923
  e = n !== !1 && Vr(e);
5929
5924
  } while (e && (!n || n(e, t)) && e !== Object.prototype);
5930
5925
  return t;
5931
- }, Qd = (e, t, n) => {
5926
+ }, Zd = (e, t, n) => {
5932
5927
  e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
5933
5928
  const r = e.indexOf(t, n);
5934
5929
  return r !== -1 && r === n;
5935
- }, ep = (e) => {
5930
+ }, Qd = (e) => {
5936
5931
  if (!e)
5937
5932
  return null;
5938
5933
  if (et(e))
@@ -5944,31 +5939,31 @@ const Kd = (e, t, n, { allOwnKeys: r } = {}) => (St(t, (i, o) => {
5944
5939
  for (; t-- > 0; )
5945
5940
  n[t] = e[t];
5946
5941
  return n;
5947
- }, tp = ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Vr(Uint8Array)), np = (e, t) => {
5942
+ }, ep = ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Vr(Uint8Array)), tp = (e, t) => {
5948
5943
  const r = (e && e[Symbol.iterator]).call(e);
5949
5944
  let i;
5950
5945
  for (; (i = r.next()) && !i.done; ) {
5951
5946
  const o = i.value;
5952
5947
  t.call(e, o[0], o[1]);
5953
5948
  }
5954
- }, rp = (e, t) => {
5949
+ }, np = (e, t) => {
5955
5950
  let n;
5956
5951
  const r = [];
5957
5952
  for (; (n = e.exec(t)) !== null; )
5958
5953
  r.push(n);
5959
5954
  return r;
5960
- }, ip = ce("HTMLFormElement"), sp = (e) => e.toLowerCase().replace(
5955
+ }, rp = ce("HTMLFormElement"), ip = (e) => e.toLowerCase().replace(
5961
5956
  /[-_\s]([a-z\d])(\w*)/g,
5962
5957
  function(n, r, i) {
5963
5958
  return r.toUpperCase() + i;
5964
5959
  }
5965
- ), as = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), op = ce("RegExp"), wa = (e, t) => {
5960
+ ), as = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), sp = ce("RegExp"), wa = (e, t) => {
5966
5961
  const n = Object.getOwnPropertyDescriptors(e), r = {};
5967
5962
  St(n, (i, o) => {
5968
5963
  let s;
5969
5964
  (s = t(i, o, e)) !== !1 && (r[o] = s || i);
5970
5965
  }), Object.defineProperties(e, r);
5971
- }, ap = (e) => {
5966
+ }, op = (e) => {
5972
5967
  wa(e, (t, n) => {
5973
5968
  if (ee(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
5974
5969
  return !1;
@@ -5983,29 +5978,29 @@ const Kd = (e, t, n, { allOwnKeys: r } = {}) => (St(t, (i, o) => {
5983
5978
  });
5984
5979
  }
5985
5980
  });
5986
- }, lp = (e, t) => {
5981
+ }, ap = (e, t) => {
5987
5982
  const n = {}, r = (i) => {
5988
5983
  i.forEach((o) => {
5989
5984
  n[o] = !0;
5990
5985
  });
5991
5986
  };
5992
5987
  return et(e) ? r(e) : r(String(e).split(t)), n;
5993
- }, cp = () => {
5994
- }, up = (e, t) => (e = +e, Number.isFinite(e) ? e : t), jn = "abcdefghijklmnopqrstuvwxyz", ls = "0123456789", Sa = {
5988
+ }, lp = () => {
5989
+ }, cp = (e, t) => (e = +e, Number.isFinite(e) ? e : t), jn = "abcdefghijklmnopqrstuvwxyz", ls = "0123456789", Sa = {
5995
5990
  DIGIT: ls,
5996
5991
  ALPHA: jn,
5997
5992
  ALPHA_DIGIT: jn + jn.toUpperCase() + ls
5998
- }, fp = (e = 16, t = Sa.ALPHA_DIGIT) => {
5993
+ }, up = (e = 16, t = Sa.ALPHA_DIGIT) => {
5999
5994
  let n = "";
6000
5995
  const { length: r } = t;
6001
5996
  for (; e--; )
6002
5997
  n += t[Math.random() * r | 0];
6003
5998
  return n;
6004
5999
  };
6005
- function hp(e) {
6000
+ function fp(e) {
6006
6001
  return !!(e && ee(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
6007
6002
  }
6008
- const dp = (e) => {
6003
+ const hp = (e) => {
6009
6004
  const t = new Array(10), n = (r, i) => {
6010
6005
  if (dn(r)) {
6011
6006
  if (t.indexOf(r) >= 0)
@@ -6022,59 +6017,59 @@ const dp = (e) => {
6022
6017
  return r;
6023
6018
  };
6024
6019
  return n(e, 0);
6025
- }, pp = ce("AsyncFunction"), mp = (e) => e && (dn(e) || ee(e)) && ee(e.then) && ee(e.catch), v = {
6020
+ }, dp = ce("AsyncFunction"), pp = (e) => e && (dn(e) || ee(e)) && ee(e.then) && ee(e.catch), v = {
6026
6021
  isArray: et,
6027
6022
  isArrayBuffer: ga,
6028
- isBuffer: Fd,
6029
- isFormData: qd,
6030
- isArrayBufferView: Nd,
6031
- isString: Bd,
6023
+ isBuffer: _d,
6024
+ isFormData: $d,
6025
+ isArrayBufferView: Fd,
6026
+ isString: Nd,
6032
6027
  isNumber: ya,
6033
- isBoolean: Id,
6028
+ isBoolean: Bd,
6034
6029
  isObject: dn,
6035
6030
  isPlainObject: jt,
6036
6031
  isUndefined: yt,
6037
- isDate: Wd,
6038
- isFile: Ud,
6039
- isBlob: zd,
6040
- isRegExp: op,
6032
+ isDate: Id,
6033
+ isFile: Wd,
6034
+ isBlob: Ud,
6035
+ isRegExp: sp,
6041
6036
  isFunction: ee,
6042
- isStream: $d,
6043
- isURLSearchParams: Gd,
6044
- isTypedArray: tp,
6045
- isFileList: Hd,
6037
+ isStream: Hd,
6038
+ isURLSearchParams: qd,
6039
+ isTypedArray: ep,
6040
+ isFileList: zd,
6046
6041
  forEach: St,
6047
6042
  merge: tr,
6048
- extend: Kd,
6049
- trim: Xd,
6050
- stripBOM: Yd,
6051
- inherits: Jd,
6052
- toFlatObject: Zd,
6043
+ extend: Xd,
6044
+ trim: Gd,
6045
+ stripBOM: Kd,
6046
+ inherits: Yd,
6047
+ toFlatObject: Jd,
6053
6048
  kindOf: fn,
6054
6049
  kindOfTest: ce,
6055
- endsWith: Qd,
6056
- toArray: ep,
6057
- forEachEntry: np,
6058
- matchAll: rp,
6059
- isHTMLForm: ip,
6050
+ endsWith: Zd,
6051
+ toArray: Qd,
6052
+ forEachEntry: tp,
6053
+ matchAll: np,
6054
+ isHTMLForm: rp,
6060
6055
  hasOwnProperty: as,
6061
6056
  hasOwnProp: as,
6062
6057
  // an alias to avoid ESLint no-prototype-builtins detection
6063
6058
  reduceDescriptors: wa,
6064
- freezeMethods: ap,
6065
- toObjectSet: lp,
6066
- toCamelCase: sp,
6067
- noop: cp,
6068
- toFiniteNumber: up,
6059
+ freezeMethods: op,
6060
+ toObjectSet: ap,
6061
+ toCamelCase: ip,
6062
+ noop: lp,
6063
+ toFiniteNumber: cp,
6069
6064
  findKey: va,
6070
6065
  global: ba,
6071
6066
  isContextDefined: xa,
6072
6067
  ALPHABET: Sa,
6073
- generateString: fp,
6074
- isSpecCompliantForm: hp,
6075
- toJSONObject: dp,
6076
- isAsyncFn: pp,
6077
- isThenable: mp
6068
+ generateString: up,
6069
+ isSpecCompliantForm: fp,
6070
+ toJSONObject: hp,
6071
+ isAsyncFn: dp,
6072
+ isThenable: pp
6078
6073
  };
6079
6074
  function V(e, t, n, r, i) {
6080
6075
  Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), r && (this.request = r), i && (this.response = i);
@@ -6126,7 +6121,7 @@ V.from = (e, t, n, r, i, o) => {
6126
6121
  return l !== Error.prototype;
6127
6122
  }, (a) => a !== "isAxiosError"), V.call(s, e.message, t, n, r, i), s.cause = e, s.name = e.name, o && Object.assign(s, o), s;
6128
6123
  };
6129
- const gp = null;
6124
+ const mp = null;
6130
6125
  function nr(e) {
6131
6126
  return v.isPlainObject(e) || v.isArray(e);
6132
6127
  }
@@ -6138,10 +6133,10 @@ function cs(e, t, n) {
6138
6133
  return i = Aa(i), !n && o ? "[" + i + "]" : i;
6139
6134
  }).join(n ? "." : "") : t;
6140
6135
  }
6141
- function yp(e) {
6136
+ function gp(e) {
6142
6137
  return v.isArray(e) && !e.some(nr);
6143
6138
  }
6144
- const vp = v.toFlatObject(v, {}, null, function(t) {
6139
+ const yp = v.toFlatObject(v, {}, null, function(t) {
6145
6140
  return /^is[A-Z]/.test(t);
6146
6141
  });
6147
6142
  function pn(e, t, n) {
@@ -6171,7 +6166,7 @@ function pn(e, t, n) {
6171
6166
  if (p && !g && typeof p == "object") {
6172
6167
  if (v.endsWith(m, "{}"))
6173
6168
  m = r ? m : m.slice(0, -2), p = JSON.stringify(p);
6174
- else if (v.isArray(p) && yp(p) || (v.isFileList(p) || v.endsWith(m, "[]")) && (b = v.toArray(p)))
6169
+ else if (v.isArray(p) && gp(p) || (v.isFileList(p) || v.endsWith(m, "[]")) && (b = v.toArray(p)))
6175
6170
  return m = Aa(m), b.forEach(function(y, S) {
6176
6171
  !(v.isUndefined(y) || y === null) && t.append(
6177
6172
  // eslint-disable-next-line no-nested-ternary
@@ -6182,7 +6177,7 @@ function pn(e, t, n) {
6182
6177
  }
6183
6178
  return nr(p) ? !0 : (t.append(cs(g, m, o), u(p)), !1);
6184
6179
  }
6185
- const c = [], h = Object.assign(vp, {
6180
+ const c = [], h = Object.assign(yp, {
6186
6181
  defaultVisitor: f,
6187
6182
  convertValue: u,
6188
6183
  isVisitable: nr
@@ -6235,13 +6230,13 @@ Pa.toString = function(t) {
6235
6230
  return n(i[0]) + "=" + n(i[1]);
6236
6231
  }, "").join("&");
6237
6232
  };
6238
- function bp(e) {
6233
+ function vp(e) {
6239
6234
  return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
6240
6235
  }
6241
6236
  function Ca(e, t, n) {
6242
6237
  if (!t)
6243
6238
  return e;
6244
- const r = n && n.encode || bp, i = n && n.serialize;
6239
+ const r = n && n.encode || vp, i = n && n.serialize;
6245
6240
  let o;
6246
6241
  if (i ? o = i(t, n) : o = v.isURLSearchParams(t) ? t.toString() : new kr(t, n).toString(r), o) {
6247
6242
  const s = e.indexOf("#");
@@ -6249,7 +6244,7 @@ function Ca(e, t, n) {
6249
6244
  }
6250
6245
  return e;
6251
6246
  }
6252
- class xp {
6247
+ class bp {
6253
6248
  constructor() {
6254
6249
  this.handlers = [];
6255
6250
  }
@@ -6303,39 +6298,39 @@ class xp {
6303
6298
  });
6304
6299
  }
6305
6300
  }
6306
- const fs = xp, Ra = {
6301
+ const fs = bp, Ra = {
6307
6302
  silentJSONParsing: !0,
6308
6303
  forcedJSONParsing: !0,
6309
6304
  clarifyTimeoutError: !1
6310
- }, wp = typeof URLSearchParams < "u" ? URLSearchParams : kr, Sp = typeof FormData < "u" ? FormData : null, Ep = typeof Blob < "u" ? Blob : null, Tp = {
6305
+ }, xp = typeof URLSearchParams < "u" ? URLSearchParams : kr, wp = typeof FormData < "u" ? FormData : null, Sp = typeof Blob < "u" ? Blob : null, Ep = {
6311
6306
  isBrowser: !0,
6312
6307
  classes: {
6313
- URLSearchParams: wp,
6314
- FormData: Sp,
6315
- Blob: Ep
6308
+ URLSearchParams: xp,
6309
+ FormData: wp,
6310
+ Blob: Sp
6316
6311
  },
6317
6312
  protocols: ["http", "https", "file", "blob", "url", "data"]
6318
- }, Oa = typeof window < "u" && typeof document < "u", Ap = ((e) => Oa && ["ReactNative", "NativeScript", "NS"].indexOf(e) < 0)(typeof navigator < "u" && navigator.product), Pp = (() => typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
6319
- self instanceof WorkerGlobalScope && typeof self.importScripts == "function")(), Cp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6313
+ }, Oa = typeof window < "u" && typeof document < "u", Tp = ((e) => Oa && ["ReactNative", "NativeScript", "NS"].indexOf(e) < 0)(typeof navigator < "u" && navigator.product), Ap = (() => typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
6314
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function")(), Pp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6320
6315
  __proto__: null,
6321
6316
  hasBrowserEnv: Oa,
6322
- hasStandardBrowserEnv: Ap,
6323
- hasStandardBrowserWebWorkerEnv: Pp
6317
+ hasStandardBrowserEnv: Tp,
6318
+ hasStandardBrowserWebWorkerEnv: Ap
6324
6319
  }, Symbol.toStringTag, { value: "Module" })), ae = {
6325
- ...Cp,
6326
- ...Tp
6320
+ ...Pp,
6321
+ ...Ep
6327
6322
  };
6328
- function Rp(e, t) {
6323
+ function Cp(e, t) {
6329
6324
  return pn(e, new ae.classes.URLSearchParams(), Object.assign({
6330
6325
  visitor: function(n, r, i, o) {
6331
6326
  return ae.isNode && v.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
6332
6327
  }
6333
6328
  }, t));
6334
6329
  }
6335
- function Op(e) {
6330
+ function Rp(e) {
6336
6331
  return v.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
6337
6332
  }
6338
- function Vp(e) {
6333
+ function Op(e) {
6339
6334
  const t = {}, n = Object.keys(e);
6340
6335
  let r;
6341
6336
  const i = n.length;
@@ -6350,17 +6345,17 @@ function Va(e) {
6350
6345
  if (s === "__proto__")
6351
6346
  return !0;
6352
6347
  const a = Number.isFinite(+s), l = o >= n.length;
6353
- return s = !s && v.isArray(i) ? i.length : s, l ? (v.hasOwnProp(i, s) ? i[s] = [i[s], r] : i[s] = r, !a) : ((!i[s] || !v.isObject(i[s])) && (i[s] = []), t(n, r, i[s], o) && v.isArray(i[s]) && (i[s] = Vp(i[s])), !a);
6348
+ return s = !s && v.isArray(i) ? i.length : s, l ? (v.hasOwnProp(i, s) ? i[s] = [i[s], r] : i[s] = r, !a) : ((!i[s] || !v.isObject(i[s])) && (i[s] = []), t(n, r, i[s], o) && v.isArray(i[s]) && (i[s] = Op(i[s])), !a);
6354
6349
  }
6355
6350
  if (v.isFormData(e) && v.isFunction(e.entries)) {
6356
6351
  const n = {};
6357
6352
  return v.forEachEntry(e, (r, i) => {
6358
- t(Op(r), i, n, 0);
6353
+ t(Rp(r), i, n, 0);
6359
6354
  }), n;
6360
6355
  }
6361
6356
  return null;
6362
6357
  }
6363
- function kp(e, t, n) {
6358
+ function Vp(e, t, n) {
6364
6359
  if (v.isString(e))
6365
6360
  try {
6366
6361
  return (t || JSON.parse)(e), v.trim(e);
@@ -6376,7 +6371,7 @@ const Mr = {
6376
6371
  transformRequest: [function(t, n) {
6377
6372
  const r = n.getContentType() || "", i = r.indexOf("application/json") > -1, o = v.isObject(t);
6378
6373
  if (o && v.isHTMLForm(t) && (t = new FormData(t)), v.isFormData(t))
6379
- return i ? JSON.stringify(Va(t)) : t;
6374
+ return i && i ? JSON.stringify(Va(t)) : t;
6380
6375
  if (v.isArrayBuffer(t) || v.isBuffer(t) || v.isStream(t) || v.isFile(t) || v.isBlob(t))
6381
6376
  return t;
6382
6377
  if (v.isArrayBufferView(t))
@@ -6386,7 +6381,7 @@ const Mr = {
6386
6381
  let a;
6387
6382
  if (o) {
6388
6383
  if (r.indexOf("application/x-www-form-urlencoded") > -1)
6389
- return Rp(t, this.formSerializer).toString();
6384
+ return Cp(t, this.formSerializer).toString();
6390
6385
  if ((a = v.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
6391
6386
  const l = this.env && this.env.FormData;
6392
6387
  return pn(
@@ -6396,7 +6391,7 @@ const Mr = {
6396
6391
  );
6397
6392
  }
6398
6393
  }
6399
- return o || i ? (n.setContentType("application/json", !1), kp(t)) : t;
6394
+ return o || i ? (n.setContentType("application/json", !1), Vp(t)) : t;
6400
6395
  }],
6401
6396
  transformResponse: [function(t) {
6402
6397
  const n = this.transitional || Mr.transitional, r = n && n.forcedJSONParsing, i = this.responseType === "json";
@@ -6437,7 +6432,7 @@ const Mr = {
6437
6432
  v.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
6438
6433
  Mr.headers[e] = {};
6439
6434
  });
6440
- const Lr = Mr, Mp = v.toObjectSet([
6435
+ const Lr = Mr, kp = v.toObjectSet([
6441
6436
  "age",
6442
6437
  "authorization",
6443
6438
  "content-length",
@@ -6455,12 +6450,12 @@ const Lr = Mr, Mp = v.toObjectSet([
6455
6450
  "referer",
6456
6451
  "retry-after",
6457
6452
  "user-agent"
6458
- ]), Lp = (e) => {
6453
+ ]), Mp = (e) => {
6459
6454
  const t = {};
6460
6455
  let n, r, i;
6461
6456
  return e && e.split(`
6462
6457
  `).forEach(function(s) {
6463
- i = s.indexOf(":"), n = s.substring(0, i).trim().toLowerCase(), r = s.substring(i + 1).trim(), !(!n || t[n] && Mp[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
6458
+ i = s.indexOf(":"), n = s.substring(0, i).trim().toLowerCase(), r = s.substring(i + 1).trim(), !(!n || t[n] && kp[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
6464
6459
  }), t;
6465
6460
  }, hs = Symbol("internals");
6466
6461
  function st(e) {
@@ -6469,14 +6464,14 @@ function st(e) {
6469
6464
  function _t(e) {
6470
6465
  return e === !1 || e == null ? e : v.isArray(e) ? e.map(_t) : String(e);
6471
6466
  }
6472
- function Dp(e) {
6467
+ function Lp(e) {
6473
6468
  const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
6474
6469
  let r;
6475
6470
  for (; r = n.exec(e); )
6476
6471
  t[r[1]] = r[2];
6477
6472
  return t;
6478
6473
  }
6479
- const jp = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
6474
+ const Dp = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
6480
6475
  function _n(e, t, n, r, i) {
6481
6476
  if (v.isFunction(r))
6482
6477
  return r.call(this, t, n);
@@ -6487,10 +6482,10 @@ function _n(e, t, n, r, i) {
6487
6482
  return r.test(t);
6488
6483
  }
6489
6484
  }
6490
- function _p(e) {
6485
+ function jp(e) {
6491
6486
  return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
6492
6487
  }
6493
- function Fp(e, t) {
6488
+ function _p(e, t) {
6494
6489
  const n = v.toCamelCase(" " + t);
6495
6490
  ["get", "set", "has"].forEach((r) => {
6496
6491
  Object.defineProperty(e, r + n, {
@@ -6515,7 +6510,7 @@ class mn {
6515
6510
  (!c || i[c] === void 0 || u === !0 || u === void 0 && i[c] !== !1) && (i[c || l] = _t(a));
6516
6511
  }
6517
6512
  const s = (a, l) => v.forEach(a, (u, f) => o(u, f, l));
6518
- return v.isPlainObject(t) || t instanceof this.constructor ? s(t, n) : v.isString(t) && (t = t.trim()) && !jp(t) ? s(Lp(t), n) : t != null && o(n, t, r), this;
6513
+ return v.isPlainObject(t) || t instanceof this.constructor ? s(t, n) : v.isString(t) && (t = t.trim()) && !Dp(t) ? s(Mp(t), n) : t != null && o(n, t, r), this;
6519
6514
  }
6520
6515
  get(t, n) {
6521
6516
  if (t = st(t), t) {
@@ -6525,7 +6520,7 @@ class mn {
6525
6520
  if (!n)
6526
6521
  return i;
6527
6522
  if (n === !0)
6528
- return Dp(i);
6523
+ return Lp(i);
6529
6524
  if (v.isFunction(n))
6530
6525
  return n.call(this, i, r);
6531
6526
  if (v.isRegExp(n))
@@ -6569,7 +6564,7 @@ class mn {
6569
6564
  n[s] = _t(i), delete n[o];
6570
6565
  return;
6571
6566
  }
6572
- const a = t ? _p(o) : String(o).trim();
6567
+ const a = t ? jp(o) : String(o).trim();
6573
6568
  a !== o && delete n[o], n[a] = _t(i), r[a] = !0;
6574
6569
  }), this;
6575
6570
  }
@@ -6605,7 +6600,7 @@ class mn {
6605
6600
  }).accessors, i = this.prototype;
6606
6601
  function o(s) {
6607
6602
  const a = st(s);
6608
- r[a] || (Fp(i, s), r[a] = !0);
6603
+ r[a] || (_p(i, s), r[a] = !0);
6609
6604
  }
6610
6605
  return v.isArray(t) ? t.forEach(o) : o(t), this;
6611
6606
  }
@@ -6638,7 +6633,7 @@ function Et(e, t, n) {
6638
6633
  v.inherits(Et, V, {
6639
6634
  __CANCEL__: !0
6640
6635
  });
6641
- function Np(e, t, n) {
6636
+ function Fp(e, t, n) {
6642
6637
  const r = n.config.validateStatus;
6643
6638
  !n.status || !r || r(n.status) ? e(n) : t(new V(
6644
6639
  "Request failed with status code " + n.status,
@@ -6648,7 +6643,7 @@ function Np(e, t, n) {
6648
6643
  n
6649
6644
  ));
6650
6645
  }
6651
- const Bp = ae.hasStandardBrowserEnv ? (
6646
+ const Np = ae.hasStandardBrowserEnv ? (
6652
6647
  // Standard browser envs support document.cookie
6653
6648
  {
6654
6649
  write(e, t, n, r, i, o) {
@@ -6675,16 +6670,16 @@ const Bp = ae.hasStandardBrowserEnv ? (
6675
6670
  }
6676
6671
  }
6677
6672
  );
6678
- function Ip(e) {
6673
+ function Bp(e) {
6679
6674
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
6680
6675
  }
6681
- function Wp(e, t) {
6676
+ function Ip(e, t) {
6682
6677
  return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
6683
6678
  }
6684
6679
  function Ma(e, t) {
6685
- return e && !Ip(t) ? Wp(e, t) : t;
6680
+ return e && !Bp(t) ? Ip(e, t) : t;
6686
6681
  }
6687
- const Up = ae.hasStandardBrowserEnv ? (
6682
+ const Wp = ae.hasStandardBrowserEnv ? (
6688
6683
  // Standard browser envs have full support of the APIs needed to test
6689
6684
  // whether the request URL is of the same origin as current location.
6690
6685
  function() {
@@ -6716,11 +6711,11 @@ const Up = ae.hasStandardBrowserEnv ? (
6716
6711
  };
6717
6712
  }()
6718
6713
  );
6719
- function zp(e) {
6714
+ function Up(e) {
6720
6715
  const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
6721
6716
  return t && t[1] || "";
6722
6717
  }
6723
- function Hp(e, t) {
6718
+ function zp(e, t) {
6724
6719
  e = e || 10;
6725
6720
  const n = new Array(e), r = new Array(e);
6726
6721
  let i = 0, o = 0, s;
@@ -6738,7 +6733,7 @@ function Hp(e, t) {
6738
6733
  }
6739
6734
  function ds(e, t) {
6740
6735
  let n = 0;
6741
- const r = Hp(50, 250);
6736
+ const r = zp(50, 250);
6742
6737
  return (i) => {
6743
6738
  const o = i.loaded, s = i.lengthComputable ? i.total : void 0, a = o - n, l = r(a), u = o <= s;
6744
6739
  n = o;
@@ -6754,7 +6749,7 @@ function ds(e, t) {
6754
6749
  f[t ? "download" : "upload"] = !0, e(f);
6755
6750
  };
6756
6751
  }
6757
- const $p = typeof XMLHttpRequest < "u", qp = $p && function(e) {
6752
+ const Hp = typeof XMLHttpRequest < "u", $p = Hp && function(e) {
6758
6753
  return new Promise(function(n, r) {
6759
6754
  let i = e.data;
6760
6755
  const o = pe.from(e.headers).normalize();
@@ -6791,7 +6786,7 @@ const $p = typeof XMLHttpRequest < "u", qp = $p && function(e) {
6791
6786
  config: e,
6792
6787
  request: c
6793
6788
  };
6794
- Np(function(y) {
6789
+ Fp(function(y) {
6795
6790
  n(y), u();
6796
6791
  }, function(y) {
6797
6792
  r(y), u();
@@ -6812,8 +6807,8 @@ const $p = typeof XMLHttpRequest < "u", qp = $p && function(e) {
6812
6807
  e,
6813
6808
  c
6814
6809
  )), c = null;
6815
- }, ae.hasStandardBrowserEnv && (a && v.isFunction(a) && (a = a(e)), a || a !== !1 && Up(h))) {
6816
- const m = e.xsrfHeaderName && e.xsrfCookieName && Bp.read(e.xsrfCookieName);
6810
+ }, ae.hasStandardBrowserEnv && (a && v.isFunction(a) && (a = a(e)), a || a !== !1 && Wp(h))) {
6811
+ const m = e.xsrfHeaderName && e.xsrfCookieName && Np.read(e.xsrfCookieName);
6817
6812
  m && o.set(e.xsrfHeaderName, m);
6818
6813
  }
6819
6814
  i === void 0 && o.setContentType(null), "setRequestHeader" in c && v.forEach(o.toJSON(), function(g, b) {
@@ -6821,7 +6816,7 @@ const $p = typeof XMLHttpRequest < "u", qp = $p && function(e) {
6821
6816
  }), v.isUndefined(e.withCredentials) || (c.withCredentials = !!e.withCredentials), s && s !== "json" && (c.responseType = e.responseType), typeof e.onDownloadProgress == "function" && c.addEventListener("progress", ds(e.onDownloadProgress, !0)), typeof e.onUploadProgress == "function" && c.upload && c.upload.addEventListener("progress", ds(e.onUploadProgress)), (e.cancelToken || e.signal) && (l = (m) => {
6822
6817
  c && (r(!m || m.type ? new Et(null, e, c) : m), c.abort(), c = null);
6823
6818
  }, e.cancelToken && e.cancelToken.subscribe(l), e.signal && (e.signal.aborted ? l() : e.signal.addEventListener("abort", l)));
6824
- const p = zp(h);
6819
+ const p = Up(h);
6825
6820
  if (p && ae.protocols.indexOf(p) === -1) {
6826
6821
  r(new V("Unsupported protocol " + p + ":", V.ERR_BAD_REQUEST, e));
6827
6822
  return;
@@ -6829,8 +6824,8 @@ const $p = typeof XMLHttpRequest < "u", qp = $p && function(e) {
6829
6824
  c.send(i || null);
6830
6825
  });
6831
6826
  }, rr = {
6832
- http: gp,
6833
- xhr: qp
6827
+ http: mp,
6828
+ xhr: $p
6834
6829
  };
6835
6830
  v.forEach(rr, (e, t) => {
6836
6831
  if (e) {
@@ -6841,7 +6836,7 @@ v.forEach(rr, (e, t) => {
6841
6836
  Object.defineProperty(e, "adapterName", { value: t });
6842
6837
  }
6843
6838
  });
6844
- const ps = (e) => `- ${e}`, Gp = (e) => v.isFunction(e) || e === null || e === !1, La = {
6839
+ const ps = (e) => `- ${e}`, qp = (e) => v.isFunction(e) || e === null || e === !1, La = {
6845
6840
  getAdapter: (e) => {
6846
6841
  e = v.isArray(e) ? e : [e];
6847
6842
  const { length: t } = e;
@@ -6850,7 +6845,7 @@ const ps = (e) => `- ${e}`, Gp = (e) => v.isFunction(e) || e === null || e === !
6850
6845
  for (let o = 0; o < t; o++) {
6851
6846
  n = e[o];
6852
6847
  let s;
6853
- if (r = n, !Gp(n) && (r = rr[(s = String(n)).toLowerCase()], r === void 0))
6848
+ if (r = n, !qp(n) && (r = rr[(s = String(n)).toLowerCase()], r === void 0))
6854
6849
  throw new V(`Unknown adapter '${s}'`);
6855
6850
  if (r)
6856
6851
  break;
@@ -6961,7 +6956,7 @@ function Ze(e, t) {
6961
6956
  v.isUndefined(h) && c !== a || (n[f] = h);
6962
6957
  }), n;
6963
6958
  }
6964
- const Da = "1.6.7", Dr = {};
6959
+ const Da = "1.6.5", Dr = {};
6965
6960
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
6966
6961
  Dr[e] = function(r) {
6967
6962
  return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
@@ -6986,7 +6981,7 @@ Dr.transitional = function(t, n, r) {
6986
6981
  )), t ? t(o, s, a) : !0;
6987
6982
  };
6988
6983
  };
6989
- function Xp(e, t, n) {
6984
+ function Gp(e, t, n) {
6990
6985
  if (typeof e != "object")
6991
6986
  throw new V("options must be an object", V.ERR_BAD_OPTION_VALUE);
6992
6987
  const r = Object.keys(e);
@@ -7004,7 +6999,7 @@ function Xp(e, t, n) {
7004
6999
  }
7005
7000
  }
7006
7001
  const ir = {
7007
- assertOptions: Xp,
7002
+ assertOptions: Gp,
7008
7003
  validators: Dr
7009
7004
  }, xe = ir.validators;
7010
7005
  class Jt {
@@ -7022,21 +7017,7 @@ class Jt {
7022
7017
  *
7023
7018
  * @returns {Promise} The Promise to be fulfilled
7024
7019
  */
7025
- async request(t, n) {
7026
- try {
7027
- return await this._request(t, n);
7028
- } catch (r) {
7029
- if (r instanceof Error) {
7030
- let i;
7031
- Error.captureStackTrace ? Error.captureStackTrace(i = {}) : i = new Error();
7032
- const o = i.stack ? i.stack.replace(/^.+\n/, "") : "";
7033
- r.stack ? o && !String(r.stack).endsWith(o.replace(/^.+\n.+\n/, "")) && (r.stack += `
7034
- ` + o) : r.stack = o;
7035
- }
7036
- throw r;
7037
- }
7038
- }
7039
- _request(t, n) {
7020
+ request(t, n) {
7040
7021
  typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = Ze(this.defaults, n);
7041
7022
  const { transitional: r, paramsSerializer: i, headers: o } = n;
7042
7023
  r !== void 0 && ir.assertOptions(r, {
@@ -7194,13 +7175,13 @@ class jr {
7194
7175
  };
7195
7176
  }
7196
7177
  }
7197
- const Kp = jr;
7198
- function Yp(e) {
7178
+ const Xp = jr;
7179
+ function Kp(e) {
7199
7180
  return function(n) {
7200
7181
  return e.apply(null, n);
7201
7182
  };
7202
7183
  }
7203
- function Jp(e) {
7184
+ function Yp(e) {
7204
7185
  return v.isObject(e) && e.isAxiosError === !0;
7205
7186
  }
7206
7187
  const sr = {
@@ -7271,36 +7252,36 @@ const sr = {
7271
7252
  Object.entries(sr).forEach(([e, t]) => {
7272
7253
  sr[t] = e;
7273
7254
  });
7274
- const Zp = sr;
7255
+ const Jp = sr;
7275
7256
  function ja(e) {
7276
7257
  const t = new Ft(e), n = ma(Ft.prototype.request, t);
7277
7258
  return v.extend(n, Ft.prototype, t, { allOwnKeys: !0 }), v.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(i) {
7278
7259
  return ja(Ze(e, i));
7279
7260
  }, n;
7280
7261
  }
7281
- const F = ja(Lr);
7282
- F.Axios = Ft;
7283
- F.CanceledError = Et;
7284
- F.CancelToken = Kp;
7285
- F.isCancel = ka;
7286
- F.VERSION = Da;
7287
- F.toFormData = pn;
7288
- F.AxiosError = V;
7289
- F.Cancel = F.CanceledError;
7290
- F.all = function(t) {
7262
+ const N = ja(Lr);
7263
+ N.Axios = Ft;
7264
+ N.CanceledError = Et;
7265
+ N.CancelToken = Xp;
7266
+ N.isCancel = ka;
7267
+ N.VERSION = Da;
7268
+ N.toFormData = pn;
7269
+ N.AxiosError = V;
7270
+ N.Cancel = N.CanceledError;
7271
+ N.all = function(t) {
7291
7272
  return Promise.all(t);
7292
7273
  };
7293
- F.spread = Yp;
7294
- F.isAxiosError = Jp;
7295
- F.mergeConfig = Ze;
7296
- F.AxiosHeaders = pe;
7297
- F.formToJSON = (e) => Va(v.isHTMLForm(e) ? new FormData(e) : e);
7298
- F.getAdapter = La.getAdapter;
7299
- F.HttpStatusCode = Zp;
7300
- F.default = F;
7301
- const Qp = F, em = `[data-simplebar]{position:relative;flex-direction:column;flex-wrap:wrap;justify-content:flex-start;align-content:flex-start;align-items:flex-start}.simplebar-wrapper{overflow:hidden;width:inherit;height:inherit;max-width:inherit;max-height:inherit}.simplebar-mask{direction:inherit;position:absolute;overflow:hidden;padding:0;margin:0;left:0;top:0;bottom:0;right:0;width:auto!important;height:auto!important;z-index:0}.simplebar-offset{direction:inherit!important;box-sizing:inherit!important;resize:none!important;position:absolute;top:0;left:0;bottom:0;right:0;padding:0;margin:0;-webkit-overflow-scrolling:touch}.simplebar-content-wrapper{direction:inherit;box-sizing:border-box!important;position:relative;display:block;height:100%;width:auto;max-width:100%;max-height:100%;overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.simplebar-content-wrapper::-webkit-scrollbar,.simplebar-hide-scrollbar::-webkit-scrollbar{display:none;width:0;height:0}.simplebar-content:after,.simplebar-content:before{content:" ";display:table}.simplebar-placeholder{max-height:100%;max-width:100%;width:100%;pointer-events:none}.simplebar-height-auto-observer-wrapper{box-sizing:inherit!important;height:100%;width:100%;max-width:1px;position:relative;float:left;max-height:1px;overflow:hidden;z-index:-1;padding:0;margin:0;pointer-events:none;flex-grow:inherit;flex-shrink:0;flex-basis:0}.simplebar-height-auto-observer{box-sizing:inherit;display:block;opacity:0;position:absolute;top:0;left:0;height:1000%;width:1000%;min-height:1px;min-width:1px;overflow:hidden;pointer-events:none;z-index:-1}.simplebar-track{z-index:1;position:absolute;right:0;bottom:0;pointer-events:none;overflow:hidden}[data-simplebar].simplebar-dragging,[data-simplebar].simplebar-dragging .simplebar-content{pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}[data-simplebar].simplebar-dragging .simplebar-track{pointer-events:all}.simplebar-scrollbar{position:absolute;left:0;right:0;min-height:10px}.simplebar-scrollbar:before{position:absolute;content:"";background:#000;border-radius:7px;left:2px;right:2px;opacity:0;transition:opacity .2s .5s linear}.simplebar-scrollbar.simplebar-visible:before{opacity:.5;transition-delay:0s;transition-duration:0s}.simplebar-track.simplebar-vertical{top:0;width:11px}.simplebar-scrollbar:before{top:2px;bottom:2px;left:2px;right:2px}.simplebar-track.simplebar-horizontal{left:0;height:11px}.simplebar-track.simplebar-horizontal .simplebar-scrollbar{right:auto;left:0;top:0;bottom:0;min-height:0;min-width:10px;width:auto}[data-simplebar-direction=rtl] .simplebar-track.simplebar-vertical{right:auto;left:0}.simplebar-dummy-scrollbar-size{direction:rtl;position:fixed;opacity:0;visibility:hidden;height:500px;width:500px;overflow-y:hidden;overflow-x:scroll;-ms-overflow-style:scrollbar!important}.simplebar-dummy-scrollbar-size>div{width:200%;height:200%;margin:10px 0}.simplebar-hide-scrollbar{position:fixed;left:0;visibility:hidden;overflow-y:scroll;scrollbar-width:none;-ms-overflow-style:none}
7274
+ N.spread = Kp;
7275
+ N.isAxiosError = Yp;
7276
+ N.mergeConfig = Ze;
7277
+ N.AxiosHeaders = pe;
7278
+ N.formToJSON = (e) => Va(v.isHTMLForm(e) ? new FormData(e) : e);
7279
+ N.getAdapter = La.getAdapter;
7280
+ N.HttpStatusCode = Jp;
7281
+ N.default = N;
7282
+ const Zp = N, Qp = `[data-simplebar]{position:relative;flex-direction:column;flex-wrap:wrap;justify-content:flex-start;align-content:flex-start;align-items:flex-start}.simplebar-wrapper{overflow:hidden;width:inherit;height:inherit;max-width:inherit;max-height:inherit}.simplebar-mask{direction:inherit;position:absolute;overflow:hidden;padding:0;margin:0;left:0;top:0;bottom:0;right:0;width:auto!important;height:auto!important;z-index:0}.simplebar-offset{direction:inherit!important;box-sizing:inherit!important;resize:none!important;position:absolute;top:0;left:0;bottom:0;right:0;padding:0;margin:0;-webkit-overflow-scrolling:touch}.simplebar-content-wrapper{direction:inherit;box-sizing:border-box!important;position:relative;display:block;height:100%;width:auto;max-width:100%;max-height:100%;overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.simplebar-content-wrapper::-webkit-scrollbar,.simplebar-hide-scrollbar::-webkit-scrollbar{display:none;width:0;height:0}.simplebar-content:after,.simplebar-content:before{content:" ";display:table}.simplebar-placeholder{max-height:100%;max-width:100%;width:100%;pointer-events:none}.simplebar-height-auto-observer-wrapper{box-sizing:inherit!important;height:100%;width:100%;max-width:1px;position:relative;float:left;max-height:1px;overflow:hidden;z-index:-1;padding:0;margin:0;pointer-events:none;flex-grow:inherit;flex-shrink:0;flex-basis:0}.simplebar-height-auto-observer{box-sizing:inherit;display:block;opacity:0;position:absolute;top:0;left:0;height:1000%;width:1000%;min-height:1px;min-width:1px;overflow:hidden;pointer-events:none;z-index:-1}.simplebar-track{z-index:1;position:absolute;right:0;bottom:0;pointer-events:none;overflow:hidden}[data-simplebar].simplebar-dragging,[data-simplebar].simplebar-dragging .simplebar-content{pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}[data-simplebar].simplebar-dragging .simplebar-track{pointer-events:all}.simplebar-scrollbar{position:absolute;left:0;right:0;min-height:10px}.simplebar-scrollbar:before{position:absolute;content:"";background:#000;border-radius:7px;left:2px;right:2px;opacity:0;transition:opacity .2s .5s linear}.simplebar-scrollbar.simplebar-visible:before{opacity:.5;transition-delay:0s;transition-duration:0s}.simplebar-track.simplebar-vertical{top:0;width:11px}.simplebar-scrollbar:before{top:2px;bottom:2px;left:2px;right:2px}.simplebar-track.simplebar-horizontal{left:0;height:11px}.simplebar-track.simplebar-horizontal .simplebar-scrollbar{right:auto;left:0;top:0;bottom:0;min-height:0;min-width:10px;width:auto}[data-simplebar-direction=rtl] .simplebar-track.simplebar-vertical{right:auto;left:0}.simplebar-dummy-scrollbar-size{direction:rtl;position:fixed;opacity:0;visibility:hidden;height:500px;width:500px;overflow-y:hidden;overflow-x:scroll;-ms-overflow-style:scrollbar!important}.simplebar-dummy-scrollbar-size>div{width:200%;height:200%;margin:10px 0}.simplebar-hide-scrollbar{position:fixed;left:0;visibility:hidden;overflow-y:scroll;scrollbar-width:none;-ms-overflow-style:none}
7302
7283
  `;
7303
- function tm() {
7284
+ function em() {
7304
7285
  return /* @__PURE__ */ R.jsxs(
7305
7286
  "svg",
7306
7287
  {
@@ -7333,7 +7314,7 @@ function tm() {
7333
7314
  }
7334
7315
  );
7335
7316
  }
7336
- function nm() {
7317
+ function tm() {
7337
7318
  return /* @__PURE__ */ R.jsx(
7338
7319
  "svg",
7339
7320
  {
@@ -7355,11 +7336,11 @@ function nm() {
7355
7336
  }
7356
7337
  );
7357
7338
  }
7358
- const rm = `.side-bar{display:flex;flex-direction:column;max-width:18rem;height:calc(100vh - 64px);border-right:1px solid #ddd;background-color:#fafafa;transition:all .3s;padding:0 8px}.side-bar.expanded{width:18rem}.side-bar.collapsed{width:64px;padding-left:4px;padding-right:4px}.side-bar__menu{margin-left:-8px;margin-right:-8px;padding-left:8px;padding-right:8px}.side-bar__menu.collapsed{margin-left:-4px;margin-right:-4px;padding-left:4px;padding-right:4px}.side-bar__wrap-btn-logout,.side-bar__btn-logout{margin:40px 0}.side-bar__logout-btn__text{margin-left:12px}.side-bar__logout-btn__text.collapsed{display:none}.side-bar__wrapper-toggle-btn{display:flex;flex-direction:row;justify-content:flex-end;transition:all .3s;margin-right:-8px;margin-top:40px}.side-bar__wrapper-toggle-btn.collapsed{justify-content:center;width:100%}.side-bar__toggle-btn{margin-top:-6px}.side-bar__logout-btn{width:100%;text-align:left;display:flex;flex-direction:row;align-items:center;padding:0 16px;min-height:48px;border-radius:.375rem}.side-bar__logout-btn:hover{background-color:#919eab14}.side-bar__logout-btn.collapsed{justify-content:center}.menu-item__wrapper{display:flex;flex-direction:column;position:relative;width:100%;margin-top:4px}.menu-item__wrapper:first-child,.menu-item__wrapper.collapsed{margin-top:0}.menu-item__wrapper.collapsed.level-1{margin-top:4px}.menu-item__link{display:flex;flex-direction:row;border-radius:.375rem;align-items:center;padding:.5rem;position:relative;height:48px;cursor:pointer;color:#85858a}.menu-item__link:hover{background-color:#919eab14}.menu-item__link.active{background-color:#009d4f1a!important;color:#009d4f!important}.menu-item__link.level-0{height:auto}.menu-item__link.menu-item__link.collapsed.level-0{display:none}.menu-item__icon{width:1.5rem;height:1.5rem;flex-shrink:0}.menu-item__icon.collapsed.level-1{width:100%}.menu-item__icon.collapsed.level-1>*{margin:0 auto}.menu-item__label{font-size:.875rem;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%;flex-shrink:1;margin-left:12px;padding-right:12px;color:#292929}.menu-item__label.active{color:inherit}.menu-item__label.collapsed{margin-left:8px;font-size:.75rem;line-height:1rem}.menu-item__label.collapsed.level-1{text-align:center;margin-left:0;display:none}.menu-item__label.level-0{color:#85858a}.menu-item__icon-arrow__wrapper{display:grid;place-items:center;position:absolute;top:50%;transform:translateY(-50%);right:-3px}.menu-item__icon-arrow__wrapper.expanded{right:0}.menu-item__icon-arrow__icon{transition:all .3s!important;transform:rotate(-90deg)!important}.menu-item__icon-arrow__icon.active{color:inherit}.menu-item__icon-arrow__icon.expanded.open{transform:rotate(0)!important}.menu-item__dropdown.collapsed{background-color:#fafafa;border:1px solid #ddd;box-shadow:#0000001a 0 10px 15px -3px,#0000000d 0 4px 6px -2px;border-radius:4px;width:180px;max-width:180px;padding:4px;z-index:1200}.menu-item__dropdown.collapsed .menu-item__link{height:40px}.menu-item__dropdown.collapsed .menu-item__link.level-1{height:48px}.menu-item__dropdown.collapsed.level-1{width:auto;max-width:unset;box-shadow:none;border:none;padding:0;background-color:unset}.menu-item__dropdown.expanded{margin-top:4px;overflow:hidden}.icon-btn{display:inline-flex;align-items:center;justify-content:center;padding:8px;border-radius:50%;background-color:transparent;transition:background-color .3s ease;border:none}.icon-btn:hover{background-color:var(--btn-bg-hover)}.simplebar-scrollbar:before{background-color:#0000002d}
7359
- `, _r = (e) => typeof e == "number" && !isNaN(e), ft = (e) => typeof e == "string", _a = (e) => typeof e == "function", im = (e) => w.isValidElement(e) || ft(e) || _a(e) || _r(e), oe = /* @__PURE__ */ new Map();
7339
+ const nm = `.side-bar{display:flex;flex-direction:column;max-width:18rem;height:calc(100vh - 64px);border-right:1px solid #ddd;background-color:#fafafa;transition:all .3s;padding:0 8px}.side-bar.expanded{width:18rem}.side-bar.collapsed{width:64px;padding-left:4px;padding-right:4px}.side-bar__menu{margin-left:-8px;margin-right:-8px;padding-left:8px;padding-right:8px}.side-bar__menu.collapsed{margin-left:-4px;margin-right:-4px;padding-left:4px;padding-right:4px}.side-bar__wrap-btn-logout,.side-bar__btn-logout{margin:40px 0}.side-bar__logout-btn__text{margin-left:12px}.side-bar__logout-btn__text.collapsed{display:none}.side-bar__wrapper-toggle-btn{display:flex;flex-direction:row;justify-content:flex-end;transition:all .3s;margin-right:-8px;margin-top:40px}.side-bar__wrapper-toggle-btn.collapsed{justify-content:center;width:100%}.side-bar__toggle-btn{margin-top:-6px}.side-bar__logout-btn{width:100%;text-align:left;display:flex;flex-direction:row;align-items:center;padding:0 16px;min-height:48px;border-radius:.375rem}.side-bar__logout-btn:hover{background-color:#919eab14}.side-bar__logout-btn.collapsed{justify-content:center}.menu-item__wrapper{display:flex;flex-direction:column;position:relative;width:100%;margin-top:4px}.menu-item__wrapper:first-child,.menu-item__wrapper.collapsed{margin-top:0}.menu-item__wrapper.collapsed.level-1{margin-top:4px}.menu-item__link{display:flex;flex-direction:row;border-radius:.375rem;align-items:center;padding:.5rem;position:relative;height:48px;cursor:pointer;color:#85858a}.menu-item__link:hover{background-color:#919eab14}.menu-item__link.active{background-color:#009d4f1a!important;color:#009d4f!important}.menu-item__link.level-0{height:auto}.menu-item__link.menu-item__link.collapsed.level-0{display:none}.menu-item__icon{width:1.5rem;height:1.5rem;flex-shrink:0}.menu-item__icon.collapsed.level-1{width:100%}.menu-item__icon.collapsed.level-1>*{margin:0 auto}.menu-item__label{font-size:.875rem;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%;flex-shrink:1;margin-left:12px;padding-right:12px;color:#292929}.menu-item__label.active{color:inherit}.menu-item__label.collapsed{margin-left:8px;font-size:.75rem;line-height:1rem}.menu-item__label.collapsed.level-1{text-align:center;margin-left:0;display:none}.menu-item__label.level-0{color:#85858a}.menu-item__icon-arrow__wrapper{display:grid;place-items:center;position:absolute;top:50%;transform:translateY(-50%);right:-3px}.menu-item__icon-arrow__wrapper.expanded{right:0}.menu-item__icon-arrow__icon{transition:all .3s!important;transform:rotate(-90deg)!important}.menu-item__icon-arrow__icon.active{color:inherit}.menu-item__icon-arrow__icon.expanded.open{transform:rotate(0)!important}.menu-item__dropdown.collapsed{background-color:#fafafa;border:1px solid #ddd;box-shadow:#0000001a 0 10px 15px -3px,#0000000d 0 4px 6px -2px;border-radius:4px;width:180px;max-width:180px;padding:4px;z-index:1200}.menu-item__dropdown.collapsed .menu-item__link{height:40px}.menu-item__dropdown.collapsed .menu-item__link.level-1{height:48px}.menu-item__dropdown.collapsed.level-1{width:auto;max-width:unset;box-shadow:none;border:none;padding:0;background-color:unset}.menu-item__dropdown.expanded{margin-top:4px;overflow:hidden}.icon-btn{display:inline-flex;align-items:center;justify-content:center;padding:8px;border-radius:50%;background-color:transparent;transition:background-color .3s ease;border:none}.icon-btn:hover{background-color:var(--btn-bg-hover)}.simplebar-scrollbar:before{background-color:#0000002d}
7340
+ `, _r = (e) => typeof e == "number" && !isNaN(e), ft = (e) => typeof e == "string", _a = (e) => typeof e == "function", rm = (e) => w.isValidElement(e) || ft(e) || _a(e) || _r(e), oe = /* @__PURE__ */ new Map();
7360
7341
  let or = [];
7361
7342
  const vs = /* @__PURE__ */ new Set(), Fa = () => oe.size > 0;
7362
- function sm(e, t) {
7343
+ function im(e, t) {
7363
7344
  var n;
7364
7345
  if (t)
7365
7346
  return !((n = oe.get(t)) == null || !n.isToastActive(e));
@@ -7368,8 +7349,8 @@ function sm(e, t) {
7368
7349
  i.isToastActive(e) && (r = !0);
7369
7350
  }), r;
7370
7351
  }
7371
- function om(e, t) {
7372
- im(e) && (Fa() || or.push({ content: e, options: t }), oe.forEach((n) => {
7352
+ function sm(e, t) {
7353
+ rm(e) && (Fa() || or.push({ content: e, options: t }), oe.forEach((n) => {
7373
7354
  n.buildToast(e, t);
7374
7355
  }));
7375
7356
  }
@@ -7378,16 +7359,16 @@ function bs(e, t) {
7378
7359
  t != null && t != null && t.containerId ? (t == null ? void 0 : t.containerId) === n.id && n.toggle(e, t == null ? void 0 : t.id) : n.toggle(e, t == null ? void 0 : t.id);
7379
7360
  });
7380
7361
  }
7381
- let am = 1;
7382
- const Na = () => "" + am++;
7383
- function lm(e) {
7362
+ let om = 1;
7363
+ const Na = () => "" + om++;
7364
+ function am(e) {
7384
7365
  return e && (ft(e.toastId) || _r(e.toastId)) ? e.toastId : Na();
7385
7366
  }
7386
7367
  function ht(e, t) {
7387
- return om(e, t), t.toastId;
7368
+ return sm(e, t), t.toastId;
7388
7369
  }
7389
7370
  function Zt(e, t) {
7390
- return { ...t, type: t && t.type || e, toastId: lm(t) };
7371
+ return { ...t, type: t && t.type || e, toastId: am(t) };
7391
7372
  }
7392
7373
  function kt(e) {
7393
7374
  return (t, n) => ht(t, Zt(e, n));
@@ -7426,7 +7407,7 @@ L.loading = (e, t) => ht(e, Zt("default", { isLoading: !0, autoClose: !1, closeO
7426
7407
  e === void 0 && (e = {}), oe.forEach((t) => {
7427
7408
  !t.props.limit || e.containerId && t.id !== e.containerId || t.clearQueue();
7428
7409
  });
7429
- }, L.isActive = sm, L.update = function(e, t) {
7410
+ }, L.isActive = im, L.update = function(e, t) {
7430
7411
  t === void 0 && (t = {});
7431
7412
  const n = ((r, i) => {
7432
7413
  var o;
@@ -7482,7 +7463,7 @@ const xs = {
7482
7463
  containedButtonString: "#000000",
7483
7464
  pink: "#E81F76"
7484
7465
  };
7485
- function cm() {
7466
+ function lm() {
7486
7467
  return /* @__PURE__ */ R.jsxs(
7487
7468
  "svg",
7488
7469
  {
@@ -7528,27 +7509,27 @@ function cm() {
7528
7509
  }
7529
7510
  );
7530
7511
  }
7531
- const um = {
7512
+ const cm = {
7532
7513
  paddingLeft: "16px",
7533
7514
  borderLeft: "2px solid",
7534
7515
  boxShadow: "none",
7535
7516
  fontFamily: "inherit"
7536
- }, fm = (e) => {
7517
+ }, um = (e) => {
7537
7518
  L.error(e, {
7538
- icon: /* @__PURE__ */ R.jsx(cm, {}),
7519
+ icon: /* @__PURE__ */ R.jsx(lm, {}),
7539
7520
  position: "bottom-right",
7540
7521
  style: {
7541
- ...um,
7522
+ ...cm,
7542
7523
  background: "#F7E4E1",
7543
7524
  borderColor: xs.danger,
7544
7525
  color: xs.danger
7545
7526
  }
7546
7527
  });
7547
7528
  };
7548
- function hm(e) {
7549
- return /* @__PURE__ */ R.jsx(za, { styles: [em, rm], style: { zIndex: 1200 }, children: /* @__PURE__ */ R.jsx(dm, { ...e }) });
7529
+ function fm(e) {
7530
+ return /* @__PURE__ */ R.jsx(za, { styles: [Qp, nm], style: { zIndex: 1200 }, children: /* @__PURE__ */ R.jsx(hm, { ...e }) });
7550
7531
  }
7551
- function dm(e) {
7532
+ function hm(e) {
7552
7533
  const { baseUrl: t, menuPath: n, logout: r } = e, i = nn(), [o, s] = w.useState([]), [a, l] = w.useState(!1), u = (pa(o, i.pathname) || []).filter((x) => x.parentKey !== 0), [f, c] = w.useState({}), h = (x) => {
7553
7534
  c({
7554
7535
  ...f,
@@ -7559,17 +7540,17 @@ function dm(e) {
7559
7540
  };
7560
7541
  w.useEffect(() => {
7561
7542
  (async () => {
7562
- const y = t + (n || "/global-menu-config/api/v1/menu-items/user"), S = await Qp.get(y, {
7543
+ const y = t + (n || "/global-menu-config/api/v1/menu-items/user"), S = await Zp.get(y, {
7563
7544
  withCredentials: !0
7564
- }).then((T) => T.data).catch((T) => {
7545
+ }).then((E) => E.data).catch((E) => {
7565
7546
  var A, P;
7566
- fm(
7567
- ((P = (A = T.response) == null ? void 0 : A.data) == null ? void 0 : P.errorMessage) || "Have error when get menu items"
7547
+ um(
7548
+ ((P = (A = E.response) == null ? void 0 : A.data) == null ? void 0 : P.errorMessage) || "Have error when get menu items"
7568
7549
  );
7569
- }), E = {};
7570
- S.forEach((T) => {
7571
- T.children && (E[T.id] = !0);
7572
- }), c(E), s(S.map((T) => ({ ...T, parentKey: 0 })));
7550
+ }), T = {};
7551
+ S.forEach((E) => {
7552
+ E.children && (T[E.id] = !0);
7553
+ }), c(T), s(S.map((E) => ({ ...E, parentKey: 0 })));
7573
7554
  })();
7574
7555
  }, [t, n]);
7575
7556
  const [p, m] = w.useState(!1), g = a ? "collapsed" : "expanded", b = (x) => `${x} ${g}`;
@@ -7579,7 +7560,7 @@ function dm(e) {
7579
7560
  {
7580
7561
  className: "icon-btn side-bar__toggle-btn",
7581
7562
  onClick: d,
7582
- children: a ? /* @__PURE__ */ R.jsx(tm, {}) : /* @__PURE__ */ R.jsx(nm, {})
7563
+ children: a ? /* @__PURE__ */ R.jsx(em, {}) : /* @__PURE__ */ R.jsx(tm, {})
7583
7564
  }
7584
7565
  ) }),
7585
7566
  /* @__PURE__ */ R.jsx(
@@ -7594,7 +7575,7 @@ function dm(e) {
7594
7575
  overflowX: "hidden"
7595
7576
  },
7596
7577
  children: o.map((x) => {
7597
- const y = (S) => u.some((E) => E.id === S);
7578
+ const y = (S) => u.some((T) => T.id === S);
7598
7579
  return /* @__PURE__ */ R.jsx(
7599
7580
  da,
7600
7581
  {
@@ -7616,7 +7597,7 @@ function dm(e) {
7616
7597
  className: b("side-bar__logout-btn"),
7617
7598
  onClick: () => m(!0),
7618
7599
  children: [
7619
- /* @__PURE__ */ R.jsx(jd, {}),
7600
+ /* @__PURE__ */ R.jsx(Dd, {}),
7620
7601
  /* @__PURE__ */ R.jsx("span", { className: b("side-bar__logout-btn__text"), children: "Logout" })
7621
7602
  ]
7622
7603
  }
@@ -7632,10 +7613,10 @@ function dm(e) {
7632
7613
  ] })
7633
7614
  ] });
7634
7615
  }
7635
- function pm(e) {
7636
- return /* @__PURE__ */ R.jsx(ml, { children: /* @__PURE__ */ R.jsx(hm, { ...e }) });
7616
+ function dm(e) {
7617
+ return /* @__PURE__ */ R.jsx(pl, { children: /* @__PURE__ */ R.jsx(fm, { ...e }) });
7637
7618
  }
7638
- const mm = $a(pm, {
7619
+ const pm = $a(dm, {
7639
7620
  props: {
7640
7621
  baseUrl: "string",
7641
7622
  menuPath: "string",
@@ -7643,4 +7624,4 @@ const mm = $a(pm, {
7643
7624
  }
7644
7625
  // shadow: 'open',
7645
7626
  });
7646
- customElements.define("global-menu", mm);
7627
+ customElements.define("global-menu", pm);