@ukpc-lib/react 0.2.2 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { b as Wa, r as b, j as O, a as ws, R as za, p as z, d as Ha, s as $a, S as qa, L as Ga } from "./react-to-web-component-8933be15.js";
1
+ import { b as Wa, r as b, j as R, a as ws, R as za, p as W, d as Ha, s as $a, S as qa, L as Ga } from "./react-to-web-component-8933be15.js";
2
2
  function Ss(t, e) {
3
3
  return function() {
4
4
  return t.apply(e, arguments);
@@ -16,7 +16,7 @@ function Ya(t) {
16
16
  let e;
17
17
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && Es(t.buffer), e;
18
18
  }
19
- const Ja = tn("string"), tt = tn("function"), Ps = tn("number"), en = (t) => t !== null && typeof t == "object", Za = (t) => t === !0 || t === !1, ke = (t) => {
19
+ const Ja = tn("string"), tt = tn("function"), Ps = tn("number"), en = (t) => t !== null && typeof t == "object", Za = (t) => t === !0 || t === !1, Le = (t) => {
20
20
  if (Qe(t) !== "object")
21
21
  return !1;
22
22
  const e = ar(t);
@@ -53,7 +53,7 @@ const As = (() => typeof globalThis < "u" ? globalThis : typeof self < "u" ? sel
53
53
  function Bn() {
54
54
  const { caseless: t } = Cs(this) && this || {}, e = {}, n = (r, i) => {
55
55
  const o = t && Ts(e, i) || i;
56
- ke(e[o]) && ke(r) ? e[o] = Bn(e[o], r) : ke(r) ? e[o] = Bn({}, r) : Qt(r) ? e[o] = r.slice() : e[o] = r;
56
+ Le(e[o]) && Le(r) ? e[o] = Bn(e[o], r) : Le(r) ? e[o] = Bn({}, r) : Qt(r) ? e[o] = r.slice() : e[o] = r;
57
57
  };
58
58
  for (let r = 0, i = arguments.length; r < i; r++)
59
59
  arguments[r] && be(arguments[r], n);
@@ -180,7 +180,7 @@ const Tl = (t) => {
180
180
  isNumber: Ps,
181
181
  isBoolean: Za,
182
182
  isObject: en,
183
- isPlainObject: ke,
183
+ isPlainObject: Le,
184
184
  isUndefined: de,
185
185
  isDate: Qa,
186
186
  isFile: tl,
@@ -248,7 +248,7 @@ v.inherits(V, Error, {
248
248
  };
249
249
  }
250
250
  });
251
- const Vs = V.prototype, Ls = {};
251
+ const Vs = V.prototype, ks = {};
252
252
  [
253
253
  "ERR_BAD_OPTION_VALUE",
254
254
  "ERR_BAD_OPTION",
@@ -264,9 +264,9 @@ const Vs = V.prototype, Ls = {};
264
264
  "ERR_INVALID_URL"
265
265
  // eslint-disable-next-line func-names
266
266
  ].forEach((t) => {
267
- Ls[t] = { value: t };
267
+ ks[t] = { value: t };
268
268
  });
269
- Object.defineProperties(V, Ls);
269
+ Object.defineProperties(V, ks);
270
270
  Object.defineProperty(Vs, "isAxiosError", { value: !0 });
271
271
  V.from = (t, e, n, r, i, o) => {
272
272
  const s = Object.create(Vs);
@@ -371,11 +371,11 @@ function zr(t) {
371
371
  function lr(t, e) {
372
372
  this._pairs = [], t && nn(t, this, e);
373
373
  }
374
- const ks = lr.prototype;
375
- ks.append = function(e, n) {
374
+ const Ls = lr.prototype;
375
+ Ls.append = function(e, n) {
376
376
  this._pairs.push([e, n]);
377
377
  };
378
- ks.toString = function(e) {
378
+ Ls.toString = function(e) {
379
379
  const n = e ? function(r) {
380
380
  return e.call(this, r, zr);
381
381
  } : zr;
@@ -383,13 +383,13 @@ ks.toString = function(e) {
383
383
  return n(i[0]) + "=" + n(i[1]);
384
384
  }, "").join("&");
385
385
  };
386
- function Ll(t) {
386
+ function kl(t) {
387
387
  return encodeURIComponent(t).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
388
388
  }
389
389
  function Ds(t, e, n) {
390
390
  if (!e)
391
391
  return t;
392
- const r = n && n.encode || Ll, i = n && n.serialize;
392
+ const r = n && n.encode || kl, i = n && n.serialize;
393
393
  let o;
394
394
  if (i ? o = i(e, n) : o = v.isURLSearchParams(e) ? e.toString() : new lr(e, n).toString(r), o) {
395
395
  const s = t.indexOf("#");
@@ -451,27 +451,27 @@ class Ml {
451
451
  });
452
452
  }
453
453
  }
454
- const Hr = Ml, js = {
454
+ const Hr = Ml, _s = {
455
455
  silentJSONParsing: !0,
456
456
  forcedJSONParsing: !0,
457
457
  clarifyTimeoutError: !1
458
- }, kl = typeof URLSearchParams < "u" ? URLSearchParams : lr, Dl = typeof FormData < "u" ? FormData : null, jl = typeof Blob < "u" ? Blob : null, _l = {
458
+ }, Ll = typeof URLSearchParams < "u" ? URLSearchParams : lr, Dl = typeof FormData < "u" ? FormData : null, _l = typeof Blob < "u" ? Blob : null, jl = {
459
459
  isBrowser: !0,
460
460
  classes: {
461
- URLSearchParams: kl,
461
+ URLSearchParams: Ll,
462
462
  FormData: Dl,
463
- Blob: jl
463
+ Blob: _l
464
464
  },
465
465
  protocols: ["http", "https", "file", "blob", "url", "data"]
466
- }, _s = typeof window < "u" && typeof document < "u", Nl = ((t) => _s && ["ReactNative", "NativeScript", "NS"].indexOf(t) < 0)(typeof navigator < "u" && navigator.product), Fl = (() => typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
466
+ }, js = typeof window < "u" && typeof document < "u", Nl = ((t) => js && ["ReactNative", "NativeScript", "NS"].indexOf(t) < 0)(typeof navigator < "u" && navigator.product), Fl = (() => typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
467
467
  self instanceof WorkerGlobalScope && typeof self.importScripts == "function")(), Bl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
468
468
  __proto__: null,
469
- hasBrowserEnv: _s,
469
+ hasBrowserEnv: js,
470
470
  hasStandardBrowserEnv: Nl,
471
471
  hasStandardBrowserWebWorkerEnv: Fl
472
472
  }, Symbol.toStringTag, { value: "Module" })), at = {
473
473
  ...Bl,
474
- ..._l
474
+ ...jl
475
475
  };
476
476
  function Il(t, e) {
477
477
  return nn(t, new at.classes.URLSearchParams(), Object.assign({
@@ -517,7 +517,7 @@ function zl(t, e, n) {
517
517
  return (n || JSON.stringify)(t);
518
518
  }
519
519
  const cr = {
520
- transitional: js,
520
+ transitional: _s,
521
521
  adapter: ["xhr", "http"],
522
522
  transformRequest: [function(e, n) {
523
523
  const r = n.getContentType() || "", i = r.indexOf("application/json") > -1, o = v.isObject(e);
@@ -951,7 +951,7 @@ const rc = typeof XMLHttpRequest < "u", ic = rc && function(t) {
951
951
  r(new V("Network Error", V.ERR_NETWORK, t, u)), u = null;
952
952
  }, u.ontimeout = function() {
953
953
  let g = t.timeout ? "timeout of " + t.timeout + "ms exceeded" : "timeout exceeded";
954
- const x = t.transitional || js;
954
+ const x = t.transitional || _s;
955
955
  t.timeoutErrorMessage && (g = t.timeoutErrorMessage), r(new V(
956
956
  g,
957
957
  x.clarifyTimeoutError ? V.ETIMEDOUT : V.ECONNABORTED,
@@ -1257,7 +1257,7 @@ v.forEach(["post", "put", "patch"], function(e) {
1257
1257
  }
1258
1258
  Be.prototype[e] = n(), Be.prototype[e + "Form"] = n(!0);
1259
1259
  });
1260
- const je = Be;
1260
+ const _e = Be;
1261
1261
  class hr {
1262
1262
  constructor(e) {
1263
1263
  if (typeof e != "function")
@@ -1405,32 +1405,32 @@ Object.entries(zn).forEach(([t, e]) => {
1405
1405
  });
1406
1406
  const uc = zn;
1407
1407
  function Ws(t) {
1408
- const e = new je(t), n = Ss(je.prototype.request, e);
1409
- return v.extend(n, je.prototype, e, { allOwnKeys: !0 }), v.extend(n, e, null, { allOwnKeys: !0 }), n.create = function(i) {
1408
+ const e = new _e(t), n = Ss(_e.prototype.request, e);
1409
+ return v.extend(n, _e.prototype, e, { allOwnKeys: !0 }), v.extend(n, e, null, { allOwnKeys: !0 }), n.create = function(i) {
1410
1410
  return Ws(Yt(t, i));
1411
1411
  }, n;
1412
1412
  }
1413
- const U = Ws(ur);
1414
- U.Axios = je;
1415
- U.CanceledError = xe;
1416
- U.CancelToken = ac;
1417
- U.isCancel = Fs;
1418
- U.VERSION = Us;
1419
- U.toFormData = nn;
1420
- U.AxiosError = V;
1421
- U.Cancel = U.CanceledError;
1422
- U.all = function(e) {
1413
+ const I = Ws(ur);
1414
+ I.Axios = _e;
1415
+ I.CanceledError = xe;
1416
+ I.CancelToken = ac;
1417
+ I.isCancel = Fs;
1418
+ I.VERSION = Us;
1419
+ I.toFormData = nn;
1420
+ I.AxiosError = V;
1421
+ I.Cancel = I.CanceledError;
1422
+ I.all = function(e) {
1423
1423
  return Promise.all(e);
1424
1424
  };
1425
- U.spread = lc;
1426
- U.isAxiosError = cc;
1427
- U.mergeConfig = Yt;
1428
- U.AxiosHeaders = ht;
1429
- U.formToJSON = (t) => Ns(v.isHTMLForm(t) ? new FormData(t) : t);
1430
- U.getAdapter = Is.getAdapter;
1431
- U.HttpStatusCode = uc;
1432
- U.default = U;
1433
- const fc = U;
1425
+ I.spread = lc;
1426
+ I.isAxiosError = cc;
1427
+ I.mergeConfig = Yt;
1428
+ I.AxiosHeaders = ht;
1429
+ I.formToJSON = (t) => Ns(v.isHTMLForm(t) ? new FormData(t) : t);
1430
+ I.getAdapter = Is.getAdapter;
1431
+ I.HttpStatusCode = uc;
1432
+ I.default = I;
1433
+ const fc = I;
1434
1434
  var hc = typeof global == "object" && global && global.Object === Object && global;
1435
1435
  const dc = hc;
1436
1436
  var pc = typeof self == "object" && self && self.Object === Object && self, mc = dc || pc || Function("return this")();
@@ -1469,15 +1469,15 @@ function Vc(t) {
1469
1469
  ;
1470
1470
  return e;
1471
1471
  }
1472
- var Lc = /^\s+/;
1472
+ var kc = /^\s+/;
1473
1473
  function Mc(t) {
1474
- return t && t.slice(0, Vc(t) + 1).replace(Lc, "");
1474
+ return t && t.slice(0, Vc(t) + 1).replace(kc, "");
1475
1475
  }
1476
1476
  function Ue(t) {
1477
1477
  var e = typeof t;
1478
1478
  return t != null && (e == "object" || e == "function");
1479
1479
  }
1480
- var Zr = 0 / 0, kc = /^[-+]0x[0-9a-f]+$/i, Dc = /^0b[01]+$/i, jc = /^0o[0-7]+$/i, _c = parseInt;
1480
+ var Zr = 0 / 0, Lc = /^[-+]0x[0-9a-f]+$/i, Dc = /^0b[01]+$/i, _c = /^0o[0-7]+$/i, jc = parseInt;
1481
1481
  function Qr(t) {
1482
1482
  if (typeof t == "number")
1483
1483
  return t;
@@ -1491,41 +1491,41 @@ function Qr(t) {
1491
1491
  return t === 0 ? t : +t;
1492
1492
  t = Mc(t);
1493
1493
  var n = Dc.test(t);
1494
- return n || jc.test(t) ? _c(t.slice(2), n ? 2 : 8) : kc.test(t) ? Zr : +t;
1494
+ return n || _c.test(t) ? jc(t.slice(2), n ? 2 : 8) : Lc.test(t) ? Zr : +t;
1495
1495
  }
1496
1496
  var Nc = function() {
1497
1497
  return zs.Date.now();
1498
1498
  };
1499
1499
  const Sn = Nc;
1500
1500
  var Fc = "Expected a function", Bc = Math.max, Ic = Math.min;
1501
- function _e(t, e, n) {
1501
+ function je(t, e, n) {
1502
1502
  var r, i, o, s, a, l, c = 0, f = !1, u = !1, h = !0;
1503
1503
  if (typeof t != "function")
1504
1504
  throw new TypeError(Fc);
1505
1505
  e = Qr(e) || 0, Ue(n) && (f = !!n.leading, u = "maxWait" in n, o = u ? Bc(Qr(n.maxWait) || 0, e) : o, h = "trailing" in n ? !!n.trailing : h);
1506
- function d(A) {
1507
- var P = r, T = i;
1508
- return r = i = void 0, c = A, s = t.apply(T, P), s;
1506
+ function d(P) {
1507
+ var T = r, A = i;
1508
+ return r = i = void 0, c = P, s = t.apply(A, T), s;
1509
1509
  }
1510
- function p(A) {
1511
- return c = A, a = setTimeout(x, e), f ? d(A) : s;
1510
+ function p(P) {
1511
+ return c = P, a = setTimeout(x, e), f ? d(P) : s;
1512
1512
  }
1513
- function m(A) {
1514
- var P = A - l, T = A - c, C = e - P;
1515
- return u ? Ic(C, o - T) : C;
1513
+ function m(P) {
1514
+ var T = P - l, A = P - c, O = e - T;
1515
+ return u ? Ic(O, o - A) : O;
1516
1516
  }
1517
- function g(A) {
1518
- var P = A - l, T = A - c;
1519
- return l === void 0 || P >= e || P < 0 || u && T >= o;
1517
+ function g(P) {
1518
+ var T = P - l, A = P - c;
1519
+ return l === void 0 || T >= e || T < 0 || u && A >= o;
1520
1520
  }
1521
1521
  function x() {
1522
- var A = Sn();
1523
- if (g(A))
1524
- return w(A);
1525
- a = setTimeout(x, m(A));
1522
+ var P = Sn();
1523
+ if (g(P))
1524
+ return w(P);
1525
+ a = setTimeout(x, m(P));
1526
1526
  }
1527
- function w(A) {
1528
- return a = void 0, h && r ? d(A) : (r = i = void 0, s);
1527
+ function w(P) {
1528
+ return a = void 0, h && r ? d(P) : (r = i = void 0, s);
1529
1529
  }
1530
1530
  function y() {
1531
1531
  a !== void 0 && clearTimeout(a), c = 0, r = l = i = a = void 0;
@@ -1534,8 +1534,8 @@ function _e(t, e, n) {
1534
1534
  return a === void 0 ? s : w(Sn());
1535
1535
  }
1536
1536
  function E() {
1537
- var A = Sn(), P = g(A);
1538
- if (r = arguments, i = this, l = A, P) {
1537
+ var P = Sn(), T = g(P);
1538
+ if (r = arguments, i = this, l = P, T) {
1539
1539
  if (a === void 0)
1540
1540
  return p(l);
1541
1541
  if (u)
@@ -1550,7 +1550,7 @@ function Wc(t, e, n) {
1550
1550
  var r = !0, i = !0;
1551
1551
  if (typeof t != "function")
1552
1552
  throw new TypeError(Uc);
1553
- return Ue(n) && (r = "leading" in n ? !!n.leading : r, i = "trailing" in n ? !!n.trailing : i), _e(t, e, {
1553
+ return Ue(n) && (r = "leading" in n ? !!n.leading : r, i = "trailing" in n ? !!n.trailing : i), je(t, e, {
1554
1554
  leading: r,
1555
1555
  maxWait: e,
1556
1556
  trailing: i
@@ -1672,10 +1672,10 @@ var $c = /* @__PURE__ */ Object.freeze({
1672
1672
  if (!(!r.draggedAxis || !r.contentWrapperEl)) {
1673
1673
  var g, x = r.axis[r.draggedAxis].track, w = (s = (o = x.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 = (c = r.elStyles) === null || c === void 0 ? void 0 : c[r.axis[r.draggedAxis].sizeAttr]) !== null && f !== void 0 ? f : "0px", 10);
1674
1674
  i.preventDefault(), i.stopPropagation(), r.draggedAxis === "y" ? g = i.pageY : g = i.pageX;
1675
- var A = g - ((h = (u = x.rect) === null || u === void 0 ? void 0 : u[r.axis[r.draggedAxis].offsetAttr]) !== null && h !== void 0 ? h : 0) - r.axis[r.draggedAxis].dragOffset;
1676
- A = r.draggedAxis === "x" && r.isRtl ? ((p = (d = x.rect) === null || d === void 0 ? void 0 : d[r.axis[r.draggedAxis].sizeAttr]) !== null && p !== void 0 ? p : 0) - y.size - A : A;
1677
- var P = A / (w - y.size), T = P * (S - E);
1678
- r.draggedAxis === "x" && r.isRtl && (T = !((m = t.getRtlHelpers()) === null || m === void 0) && m.isScrollingToNegative ? -T : T), r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr] = T;
1675
+ var P = g - ((h = (u = x.rect) === null || u === void 0 ? void 0 : u[r.axis[r.draggedAxis].offsetAttr]) !== null && h !== void 0 ? h : 0) - r.axis[r.draggedAxis].dragOffset;
1676
+ P = r.draggedAxis === "x" && r.isRtl ? ((p = (d = x.rect) === null || d === void 0 ? void 0 : d[r.axis[r.draggedAxis].sizeAttr]) !== null && p !== void 0 ? p : 0) - y.size - P : P;
1677
+ var T = P / (w - y.size), A = T * (S - E);
1678
+ r.draggedAxis === "x" && r.isRtl && (A = !((m = t.getRtlHelpers()) === null || m === void 0) && m.isScrollingToNegative ? -A : A), r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr] = A;
1679
1679
  }
1680
1680
  }, this.onEndDrag = function(i) {
1681
1681
  var o = En(r.el), s = vt(r.el);
@@ -1713,7 +1713,7 @@ var $c = /* @__PURE__ */ Object.freeze({
1713
1713
  }
1714
1714
  }, typeof this.el != "object" || !this.el.nodeName)
1715
1715
  throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));
1716
- this.onMouseMove = Wc(this._onMouseMove, 64), this.onWindowResize = _e(this._onWindowResize, 64, { leading: !0 }), this.onStopScrolling = _e(this._onStopScrolling, this.stopScrollDelay), this.onMouseEntered = _e(this._onMouseEntered, this.stopScrollDelay), this.init();
1716
+ this.onMouseMove = Wc(this._onMouseMove, 64), this.onWindowResize = je(this._onWindowResize, 64, { leading: !0 }), this.onStopScrolling = je(this._onStopScrolling, this.stopScrollDelay), this.onMouseEntered = je(this._onMouseEntered, this.stopScrollDelay), this.init();
1717
1717
  }
1718
1718
  return t.getRtlHelpers = function() {
1719
1719
  if (t.rtlHelpers)
@@ -2090,7 +2090,7 @@ const ii = {
2090
2090
  pink: "#E81F76"
2091
2091
  };
2092
2092
  function eu() {
2093
- return /* @__PURE__ */ O.jsxs(
2093
+ return /* @__PURE__ */ R.jsxs(
2094
2094
  "svg",
2095
2095
  {
2096
2096
  width: "22",
@@ -2099,7 +2099,7 @@ function eu() {
2099
2099
  fill: "none",
2100
2100
  xmlns: "http://www.w3.org/2000/svg",
2101
2101
  children: [
2102
- /* @__PURE__ */ O.jsx(
2102
+ /* @__PURE__ */ R.jsx(
2103
2103
  "path",
2104
2104
  {
2105
2105
  fillRule: "evenodd",
@@ -2111,7 +2111,7 @@ function eu() {
2111
2111
  strokeLinejoin: "round"
2112
2112
  }
2113
2113
  ),
2114
- /* @__PURE__ */ O.jsx(
2114
+ /* @__PURE__ */ R.jsx(
2115
2115
  "path",
2116
2116
  {
2117
2117
  d: "M10.9942 6.89636V11.6737",
@@ -2121,7 +2121,7 @@ function eu() {
2121
2121
  strokeLinejoin: "round"
2122
2122
  }
2123
2123
  ),
2124
- /* @__PURE__ */ O.jsx(
2124
+ /* @__PURE__ */ R.jsx(
2125
2125
  "path",
2126
2126
  {
2127
2127
  d: "M10.9941 15.1038H11.0049",
@@ -2142,7 +2142,7 @@ const nu = {
2142
2142
  fontFamily: "inherit"
2143
2143
  }, ru = (t) => {
2144
2144
  D.error(t, {
2145
- icon: /* @__PURE__ */ O.jsx(eu, {}),
2145
+ icon: /* @__PURE__ */ R.jsx(eu, {}),
2146
2146
  position: "bottom-right",
2147
2147
  style: {
2148
2148
  ...nu,
@@ -2382,9 +2382,9 @@ const we = [
2382
2382
  "skew",
2383
2383
  "skewX",
2384
2384
  "skewY"
2385
- ], _t = new Set(we);
2385
+ ], jt = new Set(we);
2386
2386
  function lo(t, { layout: e, layoutId: n }) {
2387
- return _t.has(t) || t.startsWith("origin") || (e || n !== void 0) && (!!ze[t] || t === "opacity");
2387
+ return jt.has(t) || t.startsWith("origin") || (e || n !== void 0) && (!!ze[t] || t === "opacity");
2388
2388
  }
2389
2389
  const K = (t) => !!(t && t.getVelocity), yu = {
2390
2390
  x: "translateX",
@@ -2421,7 +2421,7 @@ const Ee = (t) => ({
2421
2421
  test: (e) => Se(e) && e.endsWith(t) && e.split(" ").length === 1,
2422
2422
  parse: parseFloat,
2423
2423
  transform: (e) => `${e}${t}`
2424
- }), wt = Ee("deg"), lt = Ee("%"), R = Ee("px"), Eu = Ee("vh"), Pu = Ee("vw"), ai = {
2424
+ }), wt = Ee("deg"), lt = Ee("%"), C = Ee("px"), Eu = Ee("vh"), Pu = Ee("vw"), ai = {
2425
2425
  ...lt,
2426
2426
  parse: (t) => lt.parse(t) / 100,
2427
2427
  transform: (t) => lt.transform(t * 100)
@@ -2430,38 +2430,38 @@ const Ee = (t) => ({
2430
2430
  transform: Math.round
2431
2431
  }, ho = {
2432
2432
  // Border props
2433
- borderWidth: R,
2434
- borderTopWidth: R,
2435
- borderRightWidth: R,
2436
- borderBottomWidth: R,
2437
- borderLeftWidth: R,
2438
- borderRadius: R,
2439
- radius: R,
2440
- borderTopLeftRadius: R,
2441
- borderTopRightRadius: R,
2442
- borderBottomRightRadius: R,
2443
- borderBottomLeftRadius: R,
2433
+ borderWidth: C,
2434
+ borderTopWidth: C,
2435
+ borderRightWidth: C,
2436
+ borderBottomWidth: C,
2437
+ borderLeftWidth: C,
2438
+ borderRadius: C,
2439
+ radius: C,
2440
+ borderTopLeftRadius: C,
2441
+ borderTopRightRadius: C,
2442
+ borderBottomRightRadius: C,
2443
+ borderBottomLeftRadius: C,
2444
2444
  // Positioning props
2445
- width: R,
2446
- maxWidth: R,
2447
- height: R,
2448
- maxHeight: R,
2449
- size: R,
2450
- top: R,
2451
- right: R,
2452
- bottom: R,
2453
- left: R,
2445
+ width: C,
2446
+ maxWidth: C,
2447
+ height: C,
2448
+ maxHeight: C,
2449
+ size: C,
2450
+ top: C,
2451
+ right: C,
2452
+ bottom: C,
2453
+ left: C,
2454
2454
  // Spacing props
2455
- padding: R,
2456
- paddingTop: R,
2457
- paddingRight: R,
2458
- paddingBottom: R,
2459
- paddingLeft: R,
2460
- margin: R,
2461
- marginTop: R,
2462
- marginRight: R,
2463
- marginBottom: R,
2464
- marginLeft: R,
2455
+ padding: C,
2456
+ paddingTop: C,
2457
+ paddingRight: C,
2458
+ paddingBottom: C,
2459
+ paddingLeft: C,
2460
+ margin: C,
2461
+ marginTop: C,
2462
+ marginRight: C,
2463
+ marginBottom: C,
2464
+ marginLeft: C,
2465
2465
  // Transform props
2466
2466
  rotate: wt,
2467
2467
  rotateX: wt,
@@ -2474,19 +2474,19 @@ const Ee = (t) => ({
2474
2474
  skew: wt,
2475
2475
  skewX: wt,
2476
2476
  skewY: wt,
2477
- distance: R,
2478
- translateX: R,
2479
- translateY: R,
2480
- translateZ: R,
2481
- x: R,
2482
- y: R,
2483
- z: R,
2484
- perspective: R,
2485
- transformPerspective: R,
2477
+ distance: C,
2478
+ translateX: C,
2479
+ translateY: C,
2480
+ translateZ: C,
2481
+ x: C,
2482
+ y: C,
2483
+ z: C,
2484
+ perspective: C,
2485
+ transformPerspective: C,
2486
2486
  opacity: ce,
2487
2487
  originX: ai,
2488
2488
  originY: ai,
2489
- originZ: R,
2489
+ originZ: C,
2490
2490
  // Misc
2491
2491
  zIndex: li,
2492
2492
  // SVG
@@ -2504,7 +2504,7 @@ function br(t, e, n, r) {
2504
2504
  continue;
2505
2505
  }
2506
2506
  const d = ho[u], p = wu(h, d);
2507
- if (_t.has(u)) {
2507
+ if (jt.has(u)) {
2508
2508
  if (l = !0, s[u] = p, !f)
2509
2509
  continue;
2510
2510
  h !== (d.default || 0) && (f = !1);
@@ -2592,24 +2592,24 @@ function Vu(t, e, n) {
2592
2592
  return r;
2593
2593
  }
2594
2594
  function ci(t, e, n) {
2595
- return typeof t == "string" ? t : R.transform(e + n * t);
2595
+ return typeof t == "string" ? t : C.transform(e + n * t);
2596
2596
  }
2597
- function Lu(t, e, n) {
2597
+ function ku(t, e, n) {
2598
2598
  const r = ci(e, t.x, t.width), i = ci(n, t.y, t.height);
2599
2599
  return `${r} ${i}`;
2600
2600
  }
2601
2601
  const Mu = {
2602
2602
  offset: "stroke-dashoffset",
2603
2603
  array: "stroke-dasharray"
2604
- }, ku = {
2604
+ }, Lu = {
2605
2605
  offset: "strokeDashoffset",
2606
2606
  array: "strokeDasharray"
2607
2607
  };
2608
2608
  function Du(t, e, n = 1, r = 0, i = !0) {
2609
2609
  t.pathLength = 1;
2610
- const o = i ? Mu : ku;
2611
- t[o.offset] = R.transform(-r);
2612
- const s = R.transform(e), a = R.transform(n);
2610
+ const o = i ? Mu : Lu;
2611
+ t[o.offset] = C.transform(-r);
2612
+ const s = C.transform(e), a = C.transform(n);
2613
2613
  t[o.array] = `${s} ${a}`;
2614
2614
  }
2615
2615
  function wr(t, {
@@ -2630,13 +2630,13 @@ function wr(t, {
2630
2630
  }
2631
2631
  t.attrs = t.style, t.style = {};
2632
2632
  const { attrs: d, style: p, dimensions: m } = t;
2633
- d.transform && (m && (p.transform = d.transform), delete d.transform), m && (i !== void 0 || o !== void 0 || p.transform) && (p.transformOrigin = Lu(m, i !== void 0 ? i : 0.5, o !== void 0 ? o : 0.5)), e !== void 0 && (d.x = e), n !== void 0 && (d.y = n), r !== void 0 && (d.scale = r), s !== void 0 && Du(d, s, a, l, !1);
2633
+ d.transform && (m && (p.transform = d.transform), delete d.transform), m && (i !== void 0 || o !== void 0 || p.transform) && (p.transformOrigin = ku(m, i !== void 0 ? i : 0.5, o !== void 0 ? o : 0.5)), e !== void 0 && (d.x = e), n !== void 0 && (d.y = n), r !== void 0 && (d.scale = r), s !== void 0 && Du(d, s, a, l, !1);
2634
2634
  }
2635
2635
  const go = () => ({
2636
2636
  ...xr(),
2637
2637
  attrs: {}
2638
2638
  }), Sr = (t) => typeof t == "string" && t.toLowerCase() === "svg";
2639
- function ju(t, e, n, r) {
2639
+ function _u(t, e, n, r) {
2640
2640
  const i = b.useMemo(() => {
2641
2641
  const o = go();
2642
2642
  return wr(o, e, { enableHardwareAcceleration: !1 }, Sr(r), t.transformTemplate), {
@@ -2650,9 +2650,9 @@ function ju(t, e, n, r) {
2650
2650
  }
2651
2651
  return i;
2652
2652
  }
2653
- function _u(t = !1) {
2653
+ function ju(t = !1) {
2654
2654
  return (n, r, i, { latestValues: o }, s) => {
2655
- const l = (vr(n) ? ju : Cu)(r, o, s, n), f = {
2655
+ const l = (vr(n) ? _u : Cu)(r, o, s, n), f = {
2656
2656
  ...Vu(r, typeof n == "string", t),
2657
2657
  ...l,
2658
2658
  ref: i
@@ -2763,7 +2763,7 @@ function Uu(t, e, n, r) {
2763
2763
  i[w] = m[w];
2764
2764
  }), i;
2765
2765
  }
2766
- const N = (t) => t;
2766
+ const F = (t) => t;
2767
2767
  class ui {
2768
2768
  constructor() {
2769
2769
  this.order = [], this.scheduled = /* @__PURE__ */ new Set();
@@ -2839,12 +2839,12 @@ function Hu(t, e) {
2839
2839
  return u[h] = (p, m = !1, g = !1) => (n || l(), d.schedule(p, m, g)), u;
2840
2840
  }, {}), cancel: (u) => Oe.forEach((h) => o[h].cancel(u)), state: i, steps: o };
2841
2841
  }
2842
- const { schedule: M, cancel: mt, state: q, steps: Pn } = Hu(typeof requestAnimationFrame < "u" ? requestAnimationFrame : N, !0), $u = {
2842
+ const { schedule: L, cancel: mt, state: q, steps: Pn } = Hu(typeof requestAnimationFrame < "u" ? requestAnimationFrame : F, !0), $u = {
2843
2843
  useVisualState: wo({
2844
2844
  scrapeMotionValuesFromProps: xo,
2845
2845
  createRenderState: go,
2846
2846
  onMount: (t, e, { renderState: n, latestValues: r }) => {
2847
- M.read(() => {
2847
+ L.read(() => {
2848
2848
  try {
2849
2849
  n.dimensions = typeof e.getBBox == "function" ? e.getBBox() : e.getBoundingClientRect();
2850
2850
  } catch {
@@ -2855,7 +2855,7 @@ const { schedule: M, cancel: mt, state: q, steps: Pn } = Hu(typeof requestAnimat
2855
2855
  height: 0
2856
2856
  };
2857
2857
  }
2858
- }), M.render(() => {
2858
+ }), L.render(() => {
2859
2859
  wr(n, r, { enableHardwareAcceleration: !1 }, Sr(e.tagName), t.transformTemplate), bo(e, n);
2860
2860
  });
2861
2861
  }
@@ -2870,7 +2870,7 @@ function Gu(t, { forwardMotionProps: e = !1 }, n, r) {
2870
2870
  return {
2871
2871
  ...vr(t) ? $u : qu,
2872
2872
  preloadedFeatures: n,
2873
- useRender: _u(e),
2873
+ useRender: ju(e),
2874
2874
  createVisualElement: r,
2875
2875
  Component: t
2876
2876
  };
@@ -2932,7 +2932,7 @@ function di(t, e) {
2932
2932
  if (o.pointerType === "touch" || To())
2933
2933
  return;
2934
2934
  const a = t.getProps();
2935
- t.animationState && a.whileHover && t.animationState.setActive("whileHover", e), a[r] && M.update(() => a[r](o, s));
2935
+ t.animationState && a.whileHover && t.animationState.setActive("whileHover", e), a[r] && L.update(() => a[r](o, s));
2936
2936
  };
2937
2937
  return dt(t.current, n, i, {
2938
2938
  passive: !t.getProps()[r]
@@ -2976,7 +2976,7 @@ function Tn(t, e) {
2976
2976
  }
2977
2977
  class Zu extends Rt {
2978
2978
  constructor() {
2979
- super(...arguments), this.removeStartListeners = N, this.removeEndListeners = N, this.removeAccessibleListeners = N, this.startPointerPress = (e, n) => {
2979
+ super(...arguments), this.removeStartListeners = F, this.removeEndListeners = F, this.removeAccessibleListeners = F, this.startPointerPress = (e, n) => {
2980
2980
  if (this.isPressing)
2981
2981
  return;
2982
2982
  this.removeEndListeners();
@@ -2984,7 +2984,7 @@ class Zu extends Rt {
2984
2984
  if (!this.checkPressEnd())
2985
2985
  return;
2986
2986
  const { onTap: c, onTapCancel: f, globalTapTarget: u } = this.node.getProps();
2987
- M.update(() => {
2987
+ L.update(() => {
2988
2988
  !u && !Ao(this.node.current, a.target) ? f && f(a, l) : c && c(a, l);
2989
2989
  });
2990
2990
  }, { passive: !(r.onTap || r.onPointerUp) }), s = dt(window, "pointercancel", (a, l) => this.cancelPress(a, l), { passive: !(r.onTapCancel || r.onPointerCancel) });
@@ -2996,7 +2996,7 @@ class Zu extends Rt {
2996
2996
  const s = (a) => {
2997
2997
  a.key !== "Enter" || !this.checkPressEnd() || Tn("up", (l, c) => {
2998
2998
  const { onTap: f } = this.node.getProps();
2999
- f && M.update(() => f(l, c));
2999
+ f && L.update(() => f(l, c));
3000
3000
  });
3001
3001
  };
3002
3002
  this.removeEndListeners(), this.removeEndListeners = ft(this.node.current, "keyup", s), Tn("down", (a, l) => {
@@ -3011,7 +3011,7 @@ class Zu extends Rt {
3011
3011
  startPress(e, n) {
3012
3012
  this.isPressing = !0;
3013
3013
  const { onTapStart: r, whileTap: i } = this.node.getProps();
3014
- i && this.node.animationState && this.node.animationState.setActive("whileTap", !0), r && M.update(() => r(e, n));
3014
+ i && this.node.animationState && this.node.animationState.setActive("whileTap", !0), r && L.update(() => r(e, n));
3015
3015
  }
3016
3016
  checkPressEnd() {
3017
3017
  return this.removeEndListeners(), this.isPressing = !1, this.node.getProps().whileTap && this.node.animationState && this.node.animationState.setActive("whileTap", !1), !To();
@@ -3020,7 +3020,7 @@ class Zu extends Rt {
3020
3020
  if (!this.checkPressEnd())
3021
3021
  return;
3022
3022
  const { onTapCancel: r } = this.node.getProps();
3023
- r && M.update(() => r(e, n));
3023
+ r && L.update(() => r(e, n));
3024
3024
  }
3025
3025
  mount() {
3026
3026
  const e = this.node.getProps(), n = dt(e.globalTapTarget ? window : this.node.current, "pointerdown", this.startPointerPress, { passive: !(e.onTapStart || e.onPointerStart) }), r = ft(this.node.current, "focus", this.startAccessiblePress);
@@ -3124,7 +3124,7 @@ function fn(t, e, n) {
3124
3124
  const r = t.getProps();
3125
3125
  return Pr(r, e, n !== void 0 ? n : r.custom, lf(t), cf(t));
3126
3126
  }
3127
- let uf = N, Tr = N;
3127
+ let uf = F, Tr = F;
3128
3128
  const Tt = (t) => t * 1e3, pt = (t) => t / 1e3, ff = {
3129
3129
  current: !1
3130
3130
  }, Ro = (t) => Array.isArray(t) && typeof t[0] == "number";
@@ -3142,14 +3142,14 @@ const oe = ([t, e, n, r]) => `cubic-bezier(${t}, ${e}, ${n}, ${r})`, Vo = {
3142
3142
  backIn: oe([0.31, 0.01, 0.66, -0.59]),
3143
3143
  backOut: oe([0.33, 1.53, 0.69, 0.99])
3144
3144
  };
3145
- function Lo(t) {
3145
+ function ko(t) {
3146
3146
  if (t)
3147
- return Ro(t) ? oe(t) : Array.isArray(t) ? t.map(Lo) : Vo[t];
3147
+ return Ro(t) ? oe(t) : Array.isArray(t) ? t.map(ko) : Vo[t];
3148
3148
  }
3149
3149
  function hf(t, e, n, { delay: r = 0, duration: i, repeat: o = 0, repeatType: s = "loop", ease: a, times: l } = {}) {
3150
3150
  const c = { [e]: n };
3151
3151
  l && (c.offset = l);
3152
- const f = Lo(a);
3152
+ const f = ko(a);
3153
3153
  return Array.isArray(f) && (c.easing = f), t.animate(c, {
3154
3154
  delay: r,
3155
3155
  duration: i,
@@ -3173,18 +3173,18 @@ function gf(t, e, n, r, i) {
3173
3173
  }
3174
3174
  function Pe(t, e, n, r) {
3175
3175
  if (t === e && n === r)
3176
- return N;
3176
+ return F;
3177
3177
  const i = (o) => gf(o, 0, 1, t, n);
3178
3178
  return (o) => o === 0 || o === 1 ? o : Mo(i(o), e, r);
3179
3179
  }
3180
- const yf = Pe(0.42, 0, 1, 1), vf = Pe(0, 0, 0.58, 1), ko = Pe(0.42, 0, 0.58, 1), bf = (t) => Array.isArray(t) && typeof t[0] != "number", Do = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, jo = (t) => (e) => 1 - t(1 - e), Ar = (t) => 1 - Math.sin(Math.acos(t)), _o = jo(Ar), xf = Do(Ar), No = Pe(0.33, 1.53, 0.69, 0.99), Cr = jo(No), wf = Do(Cr), Sf = (t) => (t *= 2) < 1 ? 0.5 * Cr(t) : 0.5 * (2 - Math.pow(2, -10 * (t - 1))), Ef = {
3181
- linear: N,
3180
+ const yf = Pe(0.42, 0, 1, 1), vf = Pe(0, 0, 0.58, 1), Lo = Pe(0.42, 0, 0.58, 1), bf = (t) => Array.isArray(t) && typeof t[0] != "number", Do = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, _o = (t) => (e) => 1 - t(1 - e), Ar = (t) => 1 - Math.sin(Math.acos(t)), jo = _o(Ar), xf = Do(Ar), No = Pe(0.33, 1.53, 0.69, 0.99), Cr = _o(No), wf = Do(Cr), Sf = (t) => (t *= 2) < 1 ? 0.5 * Cr(t) : 0.5 * (2 - Math.pow(2, -10 * (t - 1))), Ef = {
3181
+ linear: F,
3182
3182
  easeIn: yf,
3183
- easeInOut: ko,
3183
+ easeInOut: Lo,
3184
3184
  easeOut: vf,
3185
3185
  circIn: Ar,
3186
3186
  circInOut: xf,
3187
- circOut: _o,
3187
+ circOut: jo,
3188
3188
  backIn: Cr,
3189
3189
  backInOut: wf,
3190
3190
  backOut: No,
@@ -3277,7 +3277,7 @@ const Io = {
3277
3277
  regex: xu,
3278
3278
  countKey: "Vars",
3279
3279
  token: "${v}",
3280
- parse: N
3280
+ parse: F
3281
3281
  }, Uo = {
3282
3282
  regex: fo,
3283
3283
  countKey: "Colors",
@@ -3317,7 +3317,7 @@ function Ho(t) {
3317
3317
  };
3318
3318
  }
3319
3319
  const Vf = (t) => typeof t == "number" ? 0 : t;
3320
- function Lf(t) {
3320
+ function kf(t) {
3321
3321
  const e = zo(t);
3322
3322
  return Ho(t)(e.map(Vf));
3323
3323
  }
@@ -3325,7 +3325,7 @@ const Ct = {
3325
3325
  test: Of,
3326
3326
  parse: zo,
3327
3327
  createTransformer: Ho,
3328
- getAnimatableNone: Lf
3328
+ getAnimatableNone: kf
3329
3329
  }, $o = (t, e) => (n) => `${n > 0 ? e : t}`;
3330
3330
  function qo(t, e) {
3331
3331
  return typeof t == "number" ? (n) => j(t, e, n) : G.test(t) ? Bo(t, e) : t.startsWith("var(") ? $o(t, e) : Xo(t, e);
@@ -3353,15 +3353,15 @@ const Go = (t, e) => {
3353
3353
  const r = e - t;
3354
3354
  return r === 0 ? 1 : (n - t) / r;
3355
3355
  }, gi = (t, e) => (n) => j(t, e, n);
3356
- function kf(t) {
3356
+ function Lf(t) {
3357
3357
  return typeof t == "number" ? gi : typeof t == "string" ? G.test(t) ? Bo : Xo : Array.isArray(t) ? Go : typeof t == "object" ? Mf : gi;
3358
3358
  }
3359
3359
  function Df(t, e, n) {
3360
- const r = [], i = n || kf(t[0]), o = t.length - 1;
3360
+ const r = [], i = n || Lf(t[0]), o = t.length - 1;
3361
3361
  for (let s = 0; s < o; s++) {
3362
3362
  let a = i(t[s], t[s + 1]);
3363
3363
  if (e) {
3364
- const l = Array.isArray(e) ? e[s] || N : e;
3364
+ const l = Array.isArray(e) ? e[s] || F : e;
3365
3365
  a = Pt(l, a);
3366
3366
  }
3367
3367
  r.push(a);
@@ -3383,22 +3383,22 @@ function Ko(t, e, { clamp: n = !0, ease: r, mixer: i } = {}) {
3383
3383
  };
3384
3384
  return n ? (c) => l(At(t[0], t[o - 1], c)) : l;
3385
3385
  }
3386
- function jf(t, e) {
3386
+ function _f(t, e) {
3387
3387
  const n = t[t.length - 1];
3388
3388
  for (let r = 1; r <= e; r++) {
3389
3389
  const i = ge(0, e, r);
3390
3390
  t.push(j(n, 1, i));
3391
3391
  }
3392
3392
  }
3393
- function _f(t) {
3393
+ function jf(t) {
3394
3394
  const e = [0];
3395
- return jf(e, t.length - 1), e;
3395
+ return _f(e, t.length - 1), e;
3396
3396
  }
3397
3397
  function Nf(t, e) {
3398
3398
  return t.map((n) => n * e);
3399
3399
  }
3400
3400
  function Ff(t, e) {
3401
- return t.map(() => e || ko).splice(0, t.length - 1);
3401
+ return t.map(() => e || Lo).splice(0, t.length - 1);
3402
3402
  }
3403
3403
  function Ge({ duration: t = 300, keyframes: e, times: n, ease: r = "easeInOut" }) {
3404
3404
  const i = bf(r) ? r.map(pi) : pi(r), o = {
@@ -3407,7 +3407,7 @@ function Ge({ duration: t = 300, keyframes: e, times: n, ease: r = "easeInOut" }
3407
3407
  }, s = Nf(
3408
3408
  // Only use the provided offsets if they're the correct length
3409
3409
  // TODO Maybe we should warn here if there's a length mismatch
3410
- n && n.length === e.length ? n : _f(e),
3410
+ n && n.length === e.length ? n : jf(e),
3411
3411
  t
3412
3412
  ), a = Ko(s, e, {
3413
3413
  ease: Array.isArray(i) ? i : Ff(e, i)
@@ -3425,20 +3425,20 @@ function Jo(t, e, n) {
3425
3425
  const r = Math.max(e - Bf, 0);
3426
3426
  return Yo(n - t(r), e - r);
3427
3427
  }
3428
- const Ln = 1e-3, If = 0.01, yi = 10, Uf = 0.05, Wf = 1;
3428
+ const kn = 1e-3, If = 0.01, yi = 10, Uf = 0.05, Wf = 1;
3429
3429
  function zf({ duration: t = 800, bounce: e = 0.25, velocity: n = 0, mass: r = 1 }) {
3430
3430
  let i, o;
3431
3431
  uf(t <= Tt(yi));
3432
3432
  let s = 1 - e;
3433
3433
  s = At(Uf, Wf, s), t = At(If, yi, pt(t)), s < 1 ? (i = (c) => {
3434
3434
  const f = c * s, u = f * t, h = f - n, d = Xn(c, s), p = Math.exp(-u);
3435
- return Ln - h / d * p;
3435
+ return kn - h / d * p;
3436
3436
  }, o = (c) => {
3437
3437
  const u = c * s * t, h = u * n + n, d = Math.pow(s, 2) * Math.pow(c, 2) * t, p = Math.exp(-u), m = Xn(Math.pow(c, 2), s);
3438
- return (-i(c) + Ln > 0 ? -1 : 1) * ((h - d) * p) / m;
3438
+ return (-i(c) + kn > 0 ? -1 : 1) * ((h - d) * p) / m;
3439
3439
  }) : (i = (c) => {
3440
3440
  const f = Math.exp(-c * t), u = (c - n) * t + 1;
3441
- return -Ln + f * u;
3441
+ return -kn + f * u;
3442
3442
  }, o = (c) => {
3443
3443
  const f = Math.exp(-c * t), u = (n - c) * (t * t);
3444
3444
  return f * u;
@@ -3510,8 +3510,8 @@ function Zo({ keyframes: t, restDelta: e, restSpeed: n, ...r }) {
3510
3510
  else {
3511
3511
  const y = g * Math.sqrt(p * p - 1);
3512
3512
  w = (S) => {
3513
- const E = Math.exp(-p * g * S), A = Math.min(y * S, 300);
3514
- return o - E * ((d + p * g * m) * Math.sinh(A) + y * m * Math.cosh(A)) / y;
3513
+ const E = Math.exp(-p * g * S), P = Math.min(y * S, 300);
3514
+ return o - E * ((d + p * g * m) * Math.sinh(P) + y * m * Math.cosh(P)) / y;
3515
3515
  };
3516
3516
  }
3517
3517
  return {
@@ -3523,8 +3523,8 @@ function Zo({ keyframes: t, restDelta: e, restSpeed: n, ...r }) {
3523
3523
  else {
3524
3524
  let E = d;
3525
3525
  y !== 0 && (p < 1 ? E = Jo(w, y, S) : E = 0);
3526
- const A = Math.abs(E) <= n, P = Math.abs(o - S) <= e;
3527
- s.done = A && P;
3526
+ const P = Math.abs(E) <= n, T = Math.abs(o - S) <= e;
3527
+ s.done = P && T;
3528
3528
  }
3529
3529
  return s.value = s.done ? o : S, s;
3530
3530
  }
@@ -3534,37 +3534,37 @@ function bi({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: r = 3
3534
3534
  const u = t[0], h = {
3535
3535
  done: !1,
3536
3536
  value: u
3537
- }, d = (T) => a !== void 0 && T < a || l !== void 0 && T > l, p = (T) => a === void 0 ? l : l === void 0 || Math.abs(a - T) < Math.abs(l - T) ? a : l;
3537
+ }, d = (A) => a !== void 0 && A < a || l !== void 0 && A > l, p = (A) => a === void 0 ? l : l === void 0 || Math.abs(a - A) < Math.abs(l - A) ? a : l;
3538
3538
  let m = n * e;
3539
3539
  const g = u + m, x = s === void 0 ? g : s(g);
3540
3540
  x !== g && (m = x - u);
3541
- const w = (T) => -m * Math.exp(-T / r), y = (T) => x + w(T), S = (T) => {
3542
- const C = w(T), F = y(T);
3543
- h.done = Math.abs(C) <= c, h.value = h.done ? x : F;
3541
+ const w = (A) => -m * Math.exp(-A / r), y = (A) => x + w(A), S = (A) => {
3542
+ const O = w(A), N = y(A);
3543
+ h.done = Math.abs(O) <= c, h.value = h.done ? x : N;
3544
3544
  };
3545
- let E, A;
3546
- const P = (T) => {
3547
- d(h.value) && (E = T, A = Zo({
3545
+ let E, P;
3546
+ const T = (A) => {
3547
+ d(h.value) && (E = A, P = Zo({
3548
3548
  keyframes: [h.value, p(h.value)],
3549
- velocity: Jo(y, T, h.value),
3549
+ velocity: Jo(y, A, h.value),
3550
3550
  damping: i,
3551
3551
  stiffness: o,
3552
3552
  restDelta: c,
3553
3553
  restSpeed: f
3554
3554
  }));
3555
3555
  };
3556
- return P(0), {
3556
+ return T(0), {
3557
3557
  calculatedDuration: null,
3558
- next: (T) => {
3559
- let C = !1;
3560
- return !A && E === void 0 && (C = !0, S(T), P(T)), E !== void 0 && T > E ? A.next(T - E) : (!C && S(T), h);
3558
+ next: (A) => {
3559
+ let O = !1;
3560
+ return !P && E === void 0 && (O = !0, S(A), T(A)), E !== void 0 && A > E ? P.next(A - E) : (!O && S(A), h);
3561
3561
  }
3562
3562
  };
3563
3563
  }
3564
3564
  const Kf = (t) => {
3565
3565
  const e = ({ timestamp: n }) => t(n);
3566
3566
  return {
3567
- start: () => M.update(e, !0),
3567
+ start: () => L.update(e, !0),
3568
3568
  stop: () => mt(e),
3569
3569
  /**
3570
3570
  * If we're processing this frame we can use the
@@ -3591,8 +3591,8 @@ const Yf = {
3591
3591
  function Xe({ autoplay: t = !0, delay: e = 0, driver: n = Kf, keyframes: r, type: i = "keyframes", repeat: o = 0, repeatDelay: s = 0, repeatType: a = "loop", onPlay: l, onStop: c, onComplete: f, onUpdate: u, ...h }) {
3592
3592
  let d = 1, p = !1, m, g;
3593
3593
  const x = () => {
3594
- g = new Promise((L) => {
3595
- m = L;
3594
+ g = new Promise((M) => {
3595
+ m = M;
3596
3596
  });
3597
3597
  };
3598
3598
  x();
@@ -3603,87 +3603,87 @@ function Xe({ autoplay: t = !0, delay: e = 0, driver: n = Kf, keyframes: r, type
3603
3603
  clamp: !1
3604
3604
  }), r = [0, 100]);
3605
3605
  const E = y({ ...h, keyframes: r });
3606
- let A;
3607
- a === "mirror" && (A = y({
3606
+ let P;
3607
+ a === "mirror" && (P = y({
3608
3608
  ...h,
3609
3609
  keyframes: [...r].reverse(),
3610
3610
  velocity: -(h.velocity || 0)
3611
3611
  }));
3612
- let P = "idle", T = null, C = null, F = null;
3612
+ let T = "idle", A = null, O = null, N = null;
3613
3613
  E.calculatedDuration === null && o && (E.calculatedDuration = wi(E));
3614
- const { calculatedDuration: _ } = E;
3615
- let k = 1 / 0, B = 1 / 0;
3616
- _ !== null && (k = _ + s, B = k * (o + 1) - s);
3614
+ const { calculatedDuration: k } = E;
3615
+ let _ = 1 / 0, z = 1 / 0;
3616
+ k !== null && (_ = k + s, z = _ * (o + 1) - s);
3617
3617
  let H = 0;
3618
- const rt = (L) => {
3619
- if (C === null)
3618
+ const rt = (M) => {
3619
+ if (O === null)
3620
3620
  return;
3621
- d > 0 && (C = Math.min(C, L)), d < 0 && (C = Math.min(L - B / d, C)), T !== null ? H = T : H = Math.round(L - C) * d;
3622
- const Bt = H - e * (d >= 0 ? 1 : -1), It = d >= 0 ? Bt < 0 : Bt > B;
3623
- H = Math.max(Bt, 0), P === "finished" && T === null && (H = B);
3621
+ d > 0 && (O = Math.min(O, M)), d < 0 && (O = Math.min(M - z / d, O)), A !== null ? H = A : H = Math.round(M - O) * d;
3622
+ const Bt = H - e * (d >= 0 ? 1 : -1), It = d >= 0 ? Bt < 0 : Bt > z;
3623
+ H = Math.max(Bt, 0), T === "finished" && A === null && (H = z);
3624
3624
  let gn = H, Ot = E;
3625
3625
  if (o) {
3626
- const ee = Math.min(H, B) / k;
3626
+ const ee = Math.min(H, z) / _;
3627
3627
  let Vt = Math.floor(ee), et = ee % 1;
3628
- !et && ee >= 1 && (et = 1), et === 1 && Vt--, Vt = Math.min(Vt, o + 1), !!(Vt % 2) && (a === "reverse" ? (et = 1 - et, s && (et -= s / k)) : a === "mirror" && (Ot = A)), gn = At(0, 1, et) * k;
3628
+ !et && ee >= 1 && (et = 1), et === 1 && Vt--, Vt = Math.min(Vt, o + 1), !!(Vt % 2) && (a === "reverse" ? (et = 1 - et, s && (et -= s / _)) : a === "mirror" && (Ot = P)), gn = At(0, 1, et) * _;
3629
3629
  }
3630
3630
  const ut = It ? { done: !1, value: r[0] } : Ot.next(gn);
3631
3631
  S && (ut.value = S(ut.value));
3632
3632
  let { done: Ut } = ut;
3633
- !It && _ !== null && (Ut = d >= 0 ? H >= B : H <= 0);
3634
- const Wt = T === null && (P === "finished" || P === "running" && Ut);
3633
+ !It && k !== null && (Ut = d >= 0 ? H >= z : H <= 0);
3634
+ const Wt = A === null && (T === "finished" || T === "running" && Ut);
3635
3635
  return u && u(ut.value), Wt && $(), ut;
3636
- }, W = () => {
3636
+ }, U = () => {
3637
3637
  w && w.stop(), w = void 0;
3638
3638
  }, it = () => {
3639
- P = "idle", W(), m(), x(), C = F = null;
3639
+ T = "idle", U(), m(), x(), O = N = null;
3640
3640
  }, $ = () => {
3641
- P = "finished", f && f(), W(), m();
3641
+ T = "finished", f && f(), U(), m();
3642
3642
  }, gt = () => {
3643
3643
  if (p)
3644
3644
  return;
3645
3645
  w || (w = n(rt));
3646
- const L = w.now();
3647
- l && l(), T !== null ? C = L - T : (!C || P === "finished") && (C = L), P === "finished" && x(), F = C, T = null, P = "running", w.start();
3646
+ const M = w.now();
3647
+ l && l(), A !== null ? O = M - A : (!O || T === "finished") && (O = M), T === "finished" && x(), N = O, A = null, T = "running", w.start();
3648
3648
  };
3649
3649
  t && gt();
3650
3650
  const Ft = {
3651
- then(L, Bt) {
3652
- return g.then(L, Bt);
3651
+ then(M, Bt) {
3652
+ return g.then(M, Bt);
3653
3653
  },
3654
3654
  get time() {
3655
3655
  return pt(H);
3656
3656
  },
3657
- set time(L) {
3658
- L = Tt(L), H = L, T !== null || !w || d === 0 ? T = L : C = w.now() - L / d;
3657
+ set time(M) {
3658
+ M = Tt(M), H = M, A !== null || !w || d === 0 ? A = M : O = w.now() - M / d;
3659
3659
  },
3660
3660
  get duration() {
3661
- const L = E.calculatedDuration === null ? wi(E) : E.calculatedDuration;
3662
- return pt(L);
3661
+ const M = E.calculatedDuration === null ? wi(E) : E.calculatedDuration;
3662
+ return pt(M);
3663
3663
  },
3664
3664
  get speed() {
3665
3665
  return d;
3666
3666
  },
3667
- set speed(L) {
3668
- L === d || !w || (d = L, Ft.time = pt(H));
3667
+ set speed(M) {
3668
+ M === d || !w || (d = M, Ft.time = pt(H));
3669
3669
  },
3670
3670
  get state() {
3671
- return P;
3671
+ return T;
3672
3672
  },
3673
3673
  play: gt,
3674
3674
  pause: () => {
3675
- P = "paused", T = H;
3675
+ T = "paused", A = H;
3676
3676
  },
3677
3677
  stop: () => {
3678
- p = !0, P !== "idle" && (P = "idle", c && c(), it());
3678
+ p = !0, T !== "idle" && (T = "idle", c && c(), it());
3679
3679
  },
3680
3680
  cancel: () => {
3681
- F !== null && rt(F), it();
3681
+ N !== null && rt(N), it();
3682
3682
  },
3683
3683
  complete: () => {
3684
- P = "finished";
3684
+ T = "finished";
3685
3685
  },
3686
- sample: (L) => (C = 0, rt(L))
3686
+ sample: (M) => (O = 0, rt(M))
3687
3687
  };
3688
3688
  return Ft;
3689
3689
  }
@@ -3717,10 +3717,10 @@ function nh(t, e, { onUpdate: n, onComplete: r, ...i }) {
3717
3717
  });
3718
3718
  let S = { done: !1, value: u[0] };
3719
3719
  const E = [];
3720
- let A = 0;
3721
- for (; !S.done && A < th; )
3722
- S = y.sample(A), E.push(S.value), A += Ve;
3723
- p = void 0, u = E, h = A - Ve, d = "linear";
3720
+ let P = 0;
3721
+ for (; !S.done && P < th; )
3722
+ S = y.sample(P), E.push(S.value), P += Ve;
3723
+ p = void 0, u = E, h = P - Ve, d = "linear";
3724
3724
  }
3725
3725
  const m = hf(t.owner.current, e, u, {
3726
3726
  ...i,
@@ -3738,7 +3738,7 @@ function nh(t, e, { onUpdate: n, onComplete: r, ...i }) {
3738
3738
  }), g = () => {
3739
3739
  c = !1, m.cancel();
3740
3740
  }, x = () => {
3741
- c = !0, M.update(g), a(), f();
3741
+ c = !0, L.update(g), a(), f();
3742
3742
  };
3743
3743
  return m.onfinish = () => {
3744
3744
  c || (t.set(df(u, i)), r && r(), x());
@@ -3747,7 +3747,7 @@ function nh(t, e, { onUpdate: n, onComplete: r, ...i }) {
3747
3747
  return l.then(y, S);
3748
3748
  },
3749
3749
  attachTimeline(y) {
3750
- return m.timeline = y, m.onfinish = null, N;
3750
+ return m.timeline = y, m.onfinish = null, F;
3751
3751
  },
3752
3752
  get time() {
3753
3753
  return pt(m.currentTime || 0);
@@ -3792,12 +3792,12 @@ function rh({ keyframes: t, delay: e, onUpdate: n, onComplete: r }) {
3792
3792
  time: 0,
3793
3793
  speed: 1,
3794
3794
  duration: 0,
3795
- play: N,
3796
- pause: N,
3797
- stop: N,
3795
+ play: F,
3796
+ pause: F,
3797
+ stop: F,
3798
3798
  then: (o) => (o(), Promise.resolve()),
3799
- cancel: N,
3800
- complete: N
3799
+ cancel: F,
3800
+ complete: F
3801
3801
  });
3802
3802
  return e ? Xe({
3803
3803
  keyframes: [0, 1],
@@ -3823,7 +3823,7 @@ const ih = {
3823
3823
  type: "keyframes",
3824
3824
  ease: [0.25, 0.1, 0.35, 1],
3825
3825
  duration: 0.3
3826
- }, lh = (t, { keyframes: e }) => e.length > 2 ? oh : _t.has(t) ? t.startsWith("scale") ? sh(e[1]) : ih : ah, Kn = (t, e) => t === "zIndex" ? !1 : !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && // It's animatable if we have a string
3826
+ }, lh = (t, { keyframes: e }) => e.length > 2 ? oh : jt.has(t) ? t.startsWith("scale") ? sh(e[1]) : ih : ah, Kn = (t, e) => t === "zIndex" ? !1 : !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && // It's animatable if we have a string
3827
3827
  (Ct.test(e) || e === "0") && // And it contains numbers and/or colors
3828
3828
  !e.startsWith("url(")), ch = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
3829
3829
  function uh(t) {
@@ -3895,7 +3895,7 @@ function Vr(t, e) {
3895
3895
  }
3896
3896
  const gh = {
3897
3897
  skipAnimations: !1
3898
- }, Lr = (t, e, n, r = {}) => (i) => {
3898
+ }, kr = (t, e, n, r = {}) => (i) => {
3899
3899
  const o = Vr(r, t) || {}, s = o.delay || r.delay || 0;
3900
3900
  let { elapsed: a = 0 } = r;
3901
3901
  a = a - Tt(s);
@@ -3943,7 +3943,7 @@ const ea = (t) => /^\-?\d*\.?\d+$/.test(t);
3943
3943
  function Mr(t, e) {
3944
3944
  t.indexOf(e) === -1 && t.push(e);
3945
3945
  }
3946
- function kr(t, e) {
3946
+ function Lr(t, e) {
3947
3947
  const n = t.indexOf(e);
3948
3948
  n > -1 && t.splice(n, 1);
3949
3949
  }
@@ -3952,7 +3952,7 @@ class Dr {
3952
3952
  this.subscriptions = [];
3953
3953
  }
3954
3954
  add(e) {
3955
- return Mr(this.subscriptions, e), () => kr(this.subscriptions, e);
3955
+ return Mr(this.subscriptions, e), () => Lr(this.subscriptions, e);
3956
3956
  }
3957
3957
  notify(e, n, r) {
3958
3958
  const i = this.subscriptions.length;
@@ -3986,8 +3986,8 @@ class vh {
3986
3986
  this.version = "10.18.0", this.timeDelta = 0, this.lastUpdated = 0, this.canTrackVelocity = !1, this.events = {}, this.updateAndNotify = (r, i = !0) => {
3987
3987
  this.prev = this.current, this.current = r;
3988
3988
  const { delta: o, timestamp: s } = q;
3989
- 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);
3990
- }, this.scheduleVelocityCheck = () => M.postRender(this.velocityCheck), this.velocityCheck = ({ timestamp: r }) => {
3989
+ this.lastUpdated !== s && (this.timeDelta = o, this.lastUpdated = s, L.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);
3990
+ }, this.scheduleVelocityCheck = () => L.postRender(this.velocityCheck), this.velocityCheck = ({ timestamp: r }) => {
3991
3991
  r !== this.lastUpdated && (this.prev = this.current, this.events.velocityChange && this.events.velocityChange.notify(this.getVelocity()));
3992
3992
  }, this.hasAnimated = !1, this.prev = this.current = e, this.canTrackVelocity = yh(this.current), this.owner = n.owner;
3993
3993
  }
@@ -4038,7 +4038,7 @@ class vh {
4038
4038
  this.events[e] || (this.events[e] = new Dr());
4039
4039
  const r = this.events[e].add(n);
4040
4040
  return e === "change" ? () => {
4041
- r(), M.read(() => {
4041
+ r(), L.read(() => {
4042
4042
  this.events.change.getSize() || this.stop();
4043
4043
  });
4044
4044
  } : r;
@@ -4169,7 +4169,7 @@ function Jt(t, e) {
4169
4169
  const na = (t) => (e) => e.test(t), bh = {
4170
4170
  test: (t) => t === "auto",
4171
4171
  parse: (t) => t
4172
- }, ra = [Nt, R, lt, wt, Pu, Eu, bh], ie = (t) => ra.find(na(t)), xh = [...ra, G, Ct], wh = (t) => xh.find(na(t));
4172
+ }, ra = [Nt, C, lt, wt, Pu, Eu, bh], ie = (t) => ra.find(na(t)), xh = [...ra, G, Ct], wh = (t) => xh.find(na(t));
4173
4173
  function Sh(t, e, n) {
4174
4174
  t.hasValue(e) ? t.getValue(e).set(n) : t.addValue(e, Jt(n));
4175
4175
  }
@@ -4238,14 +4238,14 @@ function ia(t, e, { delay: n = 0, transitionOverride: r, type: i } = {}) {
4238
4238
  if (window.HandoffAppearAnimations) {
4239
4239
  const x = t.getProps()[io];
4240
4240
  if (x) {
4241
- const w = window.HandoffAppearAnimations(x, u, h, M);
4241
+ const w = window.HandoffAppearAnimations(x, u, h, L);
4242
4242
  w !== null && (p.elapsed = w, p.isHandoff = !0);
4243
4243
  }
4244
4244
  }
4245
4245
  let m = !p.isHandoff && !Rh(h, d);
4246
4246
  if (p.type === "spring" && (h.getVelocity() || p.velocity) && (m = !1), h.animation && (m = !1), m)
4247
4247
  continue;
4248
- h.start(Lr(u, h, d, t.shouldReduceMotion && _t.has(u) ? { type: !1 } : p));
4248
+ h.start(kr(u, h, d, t.shouldReduceMotion && jt.has(u) ? { type: !1 } : p));
4249
4249
  const g = h.animation;
4250
4250
  Ke(l) && (l.add(u), g.then(() => l.remove(u))), c.push(g);
4251
4251
  }
@@ -4279,7 +4279,7 @@ function Oh(t, e, n = 0, r = 0, i = 1, o) {
4279
4279
  function Vh(t, e) {
4280
4280
  return t.sortNodePosition(e);
4281
4281
  }
4282
- function Lh(t, e, n = {}) {
4282
+ function kh(t, e, n = {}) {
4283
4283
  t.notify("AnimationStart", e);
4284
4284
  let r;
4285
4285
  if (Array.isArray(e)) {
@@ -4293,11 +4293,11 @@ function Lh(t, e, n = {}) {
4293
4293
  }
4294
4294
  return r.then(() => t.notify("AnimationComplete", e));
4295
4295
  }
4296
- const Mh = [...gr].reverse(), kh = gr.length;
4296
+ const Mh = [...gr].reverse(), Lh = gr.length;
4297
4297
  function Dh(t) {
4298
- return (e) => Promise.all(e.map(({ animation: n, options: r }) => Lh(t, n, r)));
4298
+ return (e) => Promise.all(e.map(({ animation: n, options: r }) => kh(t, n, r)));
4299
4299
  }
4300
- function jh(t) {
4300
+ function _h(t) {
4301
4301
  let e = Dh(t);
4302
4302
  const n = Nh();
4303
4303
  let r = !0;
@@ -4315,36 +4315,36 @@ function jh(t) {
4315
4315
  function s(l, c) {
4316
4316
  const f = t.getProps(), u = t.getVariantContext(!0) || {}, h = [], d = /* @__PURE__ */ new Set();
4317
4317
  let p = {}, m = 1 / 0;
4318
- for (let x = 0; x < kh; x++) {
4319
- const w = Mh[x], y = n[w], S = f[w] !== void 0 ? f[w] : u[w], E = pe(S), A = w === c ? y.isActive : null;
4320
- A === !1 && (m = x);
4321
- let P = S === u[w] && S !== f[w] && E;
4322
- if (P && r && t.manuallyAnimateOnMount && (P = !1), y.protectedKeys = { ...p }, // If it isn't active and hasn't *just* been set as inactive
4323
- !y.isActive && A === null || // If we didn't and don't have any defined prop for this animation type
4318
+ for (let x = 0; x < Lh; x++) {
4319
+ const w = Mh[x], y = n[w], S = f[w] !== void 0 ? f[w] : u[w], E = pe(S), P = w === c ? y.isActive : null;
4320
+ P === !1 && (m = x);
4321
+ let T = S === u[w] && S !== f[w] && E;
4322
+ if (T && r && t.manuallyAnimateOnMount && (T = !1), y.protectedKeys = { ...p }, // If it isn't active and hasn't *just* been set as inactive
4323
+ !y.isActive && P === null || // If we didn't and don't have any defined prop for this animation type
4324
4324
  !S && !y.prevProp || // Or if the prop doesn't define an animation
4325
4325
  an(S) || typeof S == "boolean")
4326
4326
  continue;
4327
- let C = _h(y.prevProp, S) || // If we're making this variant active, we want to always make it active
4328
- w === c && y.isActive && !P && E || // If we removed a higher-priority variant (i is in reverse order)
4329
- x > m && E, F = !1;
4330
- const _ = Array.isArray(S) ? S : [S];
4331
- let k = _.reduce(i, {});
4332
- A === !1 && (k = {});
4333
- const { prevResolvedValues: B = {} } = y, H = {
4334
- ...B,
4335
- ...k
4336
- }, rt = (W) => {
4337
- C = !0, d.has(W) && (F = !0, d.delete(W)), y.needsAnimating[W] = !0;
4327
+ let O = jh(y.prevProp, S) || // If we're making this variant active, we want to always make it active
4328
+ w === c && y.isActive && !T && E || // If we removed a higher-priority variant (i is in reverse order)
4329
+ x > m && E, N = !1;
4330
+ const k = Array.isArray(S) ? S : [S];
4331
+ let _ = k.reduce(i, {});
4332
+ P === !1 && (_ = {});
4333
+ const { prevResolvedValues: z = {} } = y, H = {
4334
+ ...z,
4335
+ ..._
4336
+ }, rt = (U) => {
4337
+ O = !0, d.has(U) && (N = !0, d.delete(U)), y.needsAnimating[U] = !0;
4338
4338
  };
4339
- for (const W in H) {
4340
- const it = k[W], $ = B[W];
4341
- if (p.hasOwnProperty(W))
4339
+ for (const U in H) {
4340
+ const it = _[U], $ = z[U];
4341
+ if (p.hasOwnProperty(U))
4342
4342
  continue;
4343
4343
  let gt = !1;
4344
- $e(it) && $e($) ? gt = !Co(it, $) : gt = it !== $, gt ? it !== void 0 ? rt(W) : d.add(W) : it !== void 0 && d.has(W) ? rt(W) : y.protectedKeys[W] = !0;
4344
+ $e(it) && $e($) ? gt = !Co(it, $) : gt = it !== $, gt ? it !== void 0 ? rt(U) : d.add(U) : it !== void 0 && d.has(U) ? rt(U) : y.protectedKeys[U] = !0;
4345
4345
  }
4346
- y.prevProp = S, y.prevResolvedValues = k, y.isActive && (p = { ...p, ...k }), r && t.blockInitialAnimation && (C = !1), C && (!P || F) && h.push(..._.map((W) => ({
4347
- animation: W,
4346
+ y.prevProp = S, y.prevResolvedValues = _, y.isActive && (p = { ...p, ..._ }), r && t.blockInitialAnimation && (O = !1), O && (!T || N) && h.push(...k.map((U) => ({
4347
+ animation: U,
4348
4348
  options: { type: w, ...l }
4349
4349
  })));
4350
4350
  }
@@ -4378,10 +4378,10 @@ function jh(t) {
4378
4378
  getState: () => n
4379
4379
  };
4380
4380
  }
4381
- function _h(t, e) {
4381
+ function jh(t, e) {
4382
4382
  return typeof e == "string" ? e !== t : Array.isArray(e) ? !Co(e, t) : !1;
4383
4383
  }
4384
- function Lt(t = !1) {
4384
+ function kt(t = !1) {
4385
4385
  return {
4386
4386
  isActive: t,
4387
4387
  protectedKeys: {},
@@ -4391,13 +4391,13 @@ function Lt(t = !1) {
4391
4391
  }
4392
4392
  function Nh() {
4393
4393
  return {
4394
- animate: Lt(!0),
4395
- whileInView: Lt(),
4396
- whileHover: Lt(),
4397
- whileTap: Lt(),
4398
- whileDrag: Lt(),
4399
- whileFocus: Lt(),
4400
- exit: Lt()
4394
+ animate: kt(!0),
4395
+ whileInView: kt(),
4396
+ whileHover: kt(),
4397
+ whileTap: kt(),
4398
+ whileDrag: kt(),
4399
+ whileFocus: kt(),
4400
+ exit: kt()
4401
4401
  };
4402
4402
  }
4403
4403
  class Fh extends Rt {
@@ -4407,7 +4407,7 @@ class Fh extends Rt {
4407
4407
  * so people can optionally code split it out using the `m` component.
4408
4408
  */
4409
4409
  constructor(e) {
4410
- super(e), e.animationState || (e.animationState = jh(e));
4410
+ super(e), e.animationState || (e.animationState = _h(e));
4411
4411
  }
4412
4412
  updateAnimationControlsSubscription() {
4413
4413
  const { animate: e } = this.node.getProps();
@@ -4464,7 +4464,7 @@ class sa {
4464
4464
  if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.handlers = {}, this.contextWindow = window, this.updatePoint = () => {
4465
4465
  if (!(this.lastMoveEvent && this.lastMoveEventInfo))
4466
4466
  return;
4467
- const u = kn(this.lastMoveEventInfo, this.history), h = this.startEvent !== null, d = Wh(u.offset, { x: 0, y: 0 }) >= 3;
4467
+ const u = Ln(this.lastMoveEventInfo, this.history), h = this.startEvent !== null, d = Wh(u.offset, { x: 0, y: 0 }) >= 3;
4468
4468
  if (!h && !d)
4469
4469
  return;
4470
4470
  const { point: p } = u, { timestamp: m } = q;
@@ -4472,13 +4472,13 @@ class sa {
4472
4472
  const { onStart: g, onMove: x } = this.handlers;
4473
4473
  h || (g && g(this.lastMoveEvent, u), this.startEvent = this.lastMoveEvent), x && x(this.lastMoveEvent, u);
4474
4474
  }, this.handlePointerMove = (u, h) => {
4475
- this.lastMoveEvent = u, this.lastMoveEventInfo = Mn(h, this.transformPagePoint), M.update(this.updatePoint, !0);
4475
+ this.lastMoveEvent = u, this.lastMoveEventInfo = Mn(h, this.transformPagePoint), L.update(this.updatePoint, !0);
4476
4476
  }, this.handlePointerUp = (u, h) => {
4477
4477
  this.end();
4478
4478
  const { onEnd: d, onSessionEnd: p, resumeAnimation: m } = this.handlers;
4479
4479
  if (this.dragSnapToOrigin && m && m(), !(this.lastMoveEvent && this.lastMoveEventInfo))
4480
4480
  return;
4481
- const g = kn(u.type === "pointercancel" ? this.lastMoveEventInfo : Mn(h, this.transformPagePoint), this.history);
4481
+ const g = Ln(u.type === "pointercancel" ? this.lastMoveEventInfo : Mn(h, this.transformPagePoint), this.history);
4482
4482
  this.startEvent && d && d(u, g), p && p(u, g);
4483
4483
  }, !So(e))
4484
4484
  return;
@@ -4486,7 +4486,7 @@ class sa {
4486
4486
  const s = un(e), a = Mn(s, this.transformPagePoint), { point: l } = a, { timestamp: c } = q;
4487
4487
  this.history = [{ ...l, timestamp: c }];
4488
4488
  const { onSessionStart: f } = n;
4489
- f && f(e, kn(a, this.history)), this.removeListeners = Pt(dt(this.contextWindow, "pointermove", this.handlePointerMove), dt(this.contextWindow, "pointerup", this.handlePointerUp), dt(this.contextWindow, "pointercancel", this.handlePointerUp));
4489
+ f && f(e, Ln(a, this.history)), this.removeListeners = Pt(dt(this.contextWindow, "pointermove", this.handlePointerMove), dt(this.contextWindow, "pointerup", this.handlePointerUp), dt(this.contextWindow, "pointercancel", this.handlePointerUp));
4490
4490
  }
4491
4491
  updateHandlers(e) {
4492
4492
  this.handlers = e;
@@ -4501,7 +4501,7 @@ function Mn(t, e) {
4501
4501
  function Ei(t, e) {
4502
4502
  return { x: t.x - e.x, y: t.y - e.y };
4503
4503
  }
4504
- function kn({ point: t }, e) {
4504
+ function Ln({ point: t }, e) {
4505
4505
  return {
4506
4506
  point: t,
4507
4507
  delta: Ei(t, oa(e)),
@@ -4607,15 +4607,15 @@ function Oi(t, e, n) {
4607
4607
  function Vi(t, e) {
4608
4608
  return typeof t == "number" ? t : t[e] || 0;
4609
4609
  }
4610
- const Li = () => ({
4610
+ const ki = () => ({
4611
4611
  translate: 0,
4612
4612
  scale: 1,
4613
4613
  origin: 0,
4614
4614
  originPoint: 0
4615
4615
  }), Xt = () => ({
4616
- x: Li(),
4617
- y: Li()
4618
- }), Mi = () => ({ min: 0, max: 0 }), I = () => ({
4616
+ x: ki(),
4617
+ y: ki()
4618
+ }), Mi = () => ({ min: 0, max: 0 }), B = () => ({
4619
4619
  x: Mi(),
4620
4620
  y: Mi()
4621
4621
  });
@@ -4652,9 +4652,9 @@ function Mt(t) {
4652
4652
  return tr(t) || la(t) || t.z || t.rotate || t.rotateX || t.rotateY;
4653
4653
  }
4654
4654
  function la(t) {
4655
- return ki(t.x) || ki(t.y);
4655
+ return Li(t.x) || Li(t.y);
4656
4656
  }
4657
- function ki(t) {
4657
+ function Li(t) {
4658
4658
  return t && t !== "0%";
4659
4659
  }
4660
4660
  function Ye(t, e, n) {
@@ -4684,21 +4684,21 @@ function td(t, e, n, r = !1) {
4684
4684
  y: -o.scroll.offset.y
4685
4685
  }), s && (e.x *= s.x.scale, e.y *= s.y.scale, ca(t, s)), r && Mt(o.latestValues) && Kt(t, o.latestValues));
4686
4686
  }
4687
- e.x = ji(e.x), e.y = ji(e.y);
4687
+ e.x = _i(e.x), e.y = _i(e.y);
4688
4688
  }
4689
- function ji(t) {
4689
+ function _i(t) {
4690
4690
  return Number.isInteger(t) || t > 1.0000000000001 || t < 0.999999999999 ? t : 1;
4691
4691
  }
4692
4692
  function St(t, e) {
4693
4693
  t.min = t.min + e, t.max = t.max + e;
4694
4694
  }
4695
- function _i(t, e, [n, r, i]) {
4695
+ function ji(t, e, [n, r, i]) {
4696
4696
  const o = e[i] !== void 0 ? e[i] : 0.5, s = j(t.min, t.max, o);
4697
4697
  er(t, e[n], e[r], s, e.scale);
4698
4698
  }
4699
4699
  const ed = ["x", "scaleX", "originX"], nd = ["y", "scaleY", "originY"];
4700
4700
  function Kt(t, e) {
4701
- _i(t.x, e, ed), _i(t.y, e, nd);
4701
+ ji(t.x, e, ed), ji(t.y, e, nd);
4702
4702
  }
4703
4703
  function ua(t, e) {
4704
4704
  return aa(Qh(t.getBoundingClientRect(), e));
@@ -4710,7 +4710,7 @@ function rd(t, e, n) {
4710
4710
  const fa = ({ current: t }) => t ? t.ownerDocument.defaultView : null, id = /* @__PURE__ */ new WeakMap();
4711
4711
  class sd {
4712
4712
  constructor(e) {
4713
- this.openGlobalLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = { x: 0, y: 0 }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = I(), this.visualElement = e;
4713
+ this.openGlobalLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = { x: 0, y: 0 }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = B(), this.visualElement = e;
4714
4714
  }
4715
4715
  start(e, { snapToCursor: n = !1 } = {}) {
4716
4716
  const { presenceContext: r } = this.visualElement;
@@ -4733,7 +4733,7 @@ class sd {
4733
4733
  }
4734
4734
  }
4735
4735
  this.originPoint[g] = x;
4736
- }), p && M.update(() => p(f, u), !1, !0);
4736
+ }), p && L.update(() => p(f, u), !1, !0);
4737
4737
  const { animationState: m } = this.visualElement;
4738
4738
  m && m.setActive("whileDrag", !0);
4739
4739
  }, s = (f, u) => {
@@ -4769,7 +4769,7 @@ class sd {
4769
4769
  const { velocity: i } = n;
4770
4770
  this.startAnimation(i);
4771
4771
  const { onDragEnd: o } = this.getProps();
4772
- o && M.update(() => o(e, n));
4772
+ o && L.update(() => o(e, n));
4773
4773
  }
4774
4774
  cancel() {
4775
4775
  this.isDragging = !1;
@@ -4780,7 +4780,7 @@ class sd {
4780
4780
  }
4781
4781
  updateAxis(e, n, r) {
4782
4782
  const { drag: i } = this.getProps();
4783
- if (!r || !Le(e, i, this.currentDirection))
4783
+ if (!r || !ke(e, i, this.currentDirection))
4784
4784
  return;
4785
4785
  const o = this.getAxisMotionValue(e);
4786
4786
  let s = this.originPoint[e] + r[e];
@@ -4810,7 +4810,7 @@ class sd {
4810
4810
  }
4811
4811
  startAnimation(e) {
4812
4812
  const { drag: n, dragMomentum: r, dragElastic: i, dragTransition: o, dragSnapToOrigin: s, onDragTransitionEnd: a } = this.getProps(), l = this.constraints || {}, c = Q((f) => {
4813
- if (!Le(f, n, this.currentDirection))
4813
+ if (!ke(f, n, this.currentDirection))
4814
4814
  return;
4815
4815
  let u = l && l[f] || {};
4816
4816
  s && (u = { min: 0, max: 0 });
@@ -4831,7 +4831,7 @@ class sd {
4831
4831
  }
4832
4832
  startAxisValueAnimation(e, n) {
4833
4833
  const r = this.getAxisMotionValue(e);
4834
- return r.start(Lr(e, r, 0, n));
4834
+ return r.start(kr(e, r, 0, n));
4835
4835
  }
4836
4836
  stopAnimation() {
4837
4837
  Q((e) => this.getAxisMotionValue(e).stop());
@@ -4859,7 +4859,7 @@ class sd {
4859
4859
  snapToCursor(e) {
4860
4860
  Q((n) => {
4861
4861
  const { drag: r } = this.getProps();
4862
- if (!Le(n, r, this.currentDirection))
4862
+ if (!ke(n, r, this.currentDirection))
4863
4863
  return;
4864
4864
  const { projection: i } = this.visualElement, o = this.getAxisMotionValue(n);
4865
4865
  if (i && i.layout) {
@@ -4890,7 +4890,7 @@ class sd {
4890
4890
  });
4891
4891
  const { transformTemplate: o } = this.visualElement.getProps();
4892
4892
  this.visualElement.current.style.transform = o ? o({}, "") : "none", r.root && r.root.updateScroll(), r.updateLayout(), this.resolveConstraints(), Q((s) => {
4893
- if (!Le(s, e, null))
4893
+ if (!ke(s, e, null))
4894
4894
  return;
4895
4895
  const a = this.getAxisMotionValue(s), { min: l, max: c } = this.constraints[s];
4896
4896
  a.set(j(l, c, i[s]));
@@ -4931,7 +4931,7 @@ class sd {
4931
4931
  };
4932
4932
  }
4933
4933
  }
4934
- function Le(t, e, n) {
4934
+ function ke(t, e, n) {
4935
4935
  return (e === !0 || e === t) && (n === null || n === t);
4936
4936
  }
4937
4937
  function od(t, e = 10) {
@@ -4940,22 +4940,22 @@ function od(t, e = 10) {
4940
4940
  }
4941
4941
  class ad extends Rt {
4942
4942
  constructor(e) {
4943
- super(e), this.removeGroupControls = N, this.removeListeners = N, this.controls = new sd(e);
4943
+ super(e), this.removeGroupControls = F, this.removeListeners = F, this.controls = new sd(e);
4944
4944
  }
4945
4945
  mount() {
4946
4946
  const { dragControls: e } = this.node.getProps();
4947
- e && (this.removeGroupControls = e.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() || N;
4947
+ e && (this.removeGroupControls = e.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() || F;
4948
4948
  }
4949
4949
  unmount() {
4950
4950
  this.removeGroupControls(), this.removeListeners();
4951
4951
  }
4952
4952
  }
4953
4953
  const Ni = (t) => (e, n) => {
4954
- t && M.update(() => t(e, n));
4954
+ t && L.update(() => t(e, n));
4955
4955
  };
4956
4956
  class ld extends Rt {
4957
4957
  constructor() {
4958
- super(...arguments), this.removePointerDownListener = N;
4958
+ super(...arguments), this.removePointerDownListener = F;
4959
4959
  }
4960
4960
  onPointerDown(e) {
4961
4961
  this.session = new sa(e, this.createPanHandlers(), {
@@ -4970,7 +4970,7 @@ class ld extends Rt {
4970
4970
  onStart: Ni(n),
4971
4971
  onMove: r,
4972
4972
  onEnd: (o, s) => {
4973
- delete this.session, i && M.update(() => i(o, s));
4973
+ delete this.session, i && L.update(() => i(o, s));
4974
4974
  }
4975
4975
  };
4976
4976
  }
@@ -5011,7 +5011,7 @@ const se = {
5011
5011
  if (!e.target)
5012
5012
  return t;
5013
5013
  if (typeof t == "string")
5014
- if (R.test(t))
5014
+ if (C.test(t))
5015
5015
  t = parseFloat(t);
5016
5016
  else
5017
5017
  return t;
@@ -5046,7 +5046,7 @@ class fd extends ws.Component {
5046
5046
  }
5047
5047
  getSnapshotBeforeUpdate(e) {
5048
5048
  const { layoutDependency: n, visualElement: r, drag: i, isPresent: o } = this.props, s = r.projection;
5049
- return s && (s.isPresent = o, i || e.layoutDependency !== n || n === void 0 ? s.willUpdate() : this.safeToRemove(), e.isPresent !== o && (o ? s.promote() : s.relegate() || M.postRender(() => {
5049
+ return s && (s.isPresent = o, i || e.layoutDependency !== n || n === void 0 ? s.willUpdate() : this.safeToRemove(), e.isPresent !== o && (o ? s.promote() : s.relegate() || L.postRender(() => {
5050
5050
  const a = s.getStack();
5051
5051
  (!a || !a.members.length) && this.safeToRemove();
5052
5052
  }))), null;
@@ -5088,7 +5088,7 @@ const hd = {
5088
5088
  borderBottomLeftRadius: se,
5089
5089
  borderBottomRightRadius: se,
5090
5090
  boxShadow: ud
5091
- }, da = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], dd = da.length, Bi = (t) => typeof t == "string" ? parseFloat(t) : t, Ii = (t) => typeof t == "number" || R.test(t);
5091
+ }, da = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], dd = da.length, Bi = (t) => typeof t == "string" ? parseFloat(t) : t, Ii = (t) => typeof t == "number" || C.test(t);
5092
5092
  function pd(t, e, n, r, i, o) {
5093
5093
  i ? (t.opacity = j(
5094
5094
  0,
@@ -5108,7 +5108,7 @@ function pd(t, e, n, r, i, o) {
5108
5108
  function Ui(t, e) {
5109
5109
  return t[e] !== void 0 ? t[e] : t.borderRadius;
5110
5110
  }
5111
- const md = pa(0, 0.5, _o), gd = pa(0.5, 0.95, N);
5111
+ const md = pa(0, 0.5, jo), gd = pa(0.5, 0.95, F);
5112
5112
  function pa(t, e, n) {
5113
5113
  return (r) => r < t ? 0 : r > e ? 1 : n(ge(t, e, r));
5114
5114
  }
@@ -5157,7 +5157,7 @@ class wd {
5157
5157
  Mr(this.members, e), e.scheduleRender();
5158
5158
  }
5159
5159
  remove(e) {
5160
- if (kr(this.members, e), e === this.prevLead && (this.prevLead = void 0), e === this.lead) {
5160
+ if (Lr(this.members, e), e === this.prevLead && (this.prevLead = void 0), e === this.lead) {
5161
5161
  const n = this.members[this.members.length - 1];
5162
5162
  n && this.promote(n);
5163
5163
  }
@@ -5222,7 +5222,7 @@ class Ed {
5222
5222
  Mr(this.children, e), this.isDirty = !0;
5223
5223
  }
5224
5224
  remove(e) {
5225
- kr(this.children, e), this.isDirty = !0;
5225
+ Lr(this.children, e), this.isDirty = !0;
5226
5226
  }
5227
5227
  forEach(e) {
5228
5228
  this.isDirty && this.children.sort(Sd), this.isDirty = !1, this.children.forEach(e);
@@ -5233,7 +5233,7 @@ function Pd(t, e) {
5233
5233
  const o = i - n;
5234
5234
  o >= e && (mt(r), t(o - e));
5235
5235
  };
5236
- return M.read(r, !0), () => mt(r);
5236
+ return L.read(r, !0), () => mt(r);
5237
5237
  }
5238
5238
  function Td(t) {
5239
5239
  window.MotionDebug && window.MotionDebug.record(t);
@@ -5243,11 +5243,11 @@ function Ad(t) {
5243
5243
  }
5244
5244
  function Cd(t, e, n) {
5245
5245
  const r = K(t) ? t : Jt(t);
5246
- return r.start(Lr("", r, e, n)), r.animation;
5246
+ return r.start(kr("", r, e, n)), r.animation;
5247
5247
  }
5248
5248
  const Ki = ["", "X", "Y", "Z"], Rd = { visibility: "hidden" }, Yi = 1e3;
5249
5249
  let Od = 0;
5250
- const kt = {
5250
+ const Lt = {
5251
5251
  type: "projectionFrame",
5252
5252
  totalNodes: 0,
5253
5253
  resolvedTargetDeltas: 0,
@@ -5259,7 +5259,7 @@ function ya({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
5259
5259
  this.id = Od++, 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 = () => {
5260
5260
  this.isUpdating && (this.isUpdating = !1, this.clearAllSnapshots());
5261
5261
  }, this.updateProjection = () => {
5262
- this.projectionUpdateScheduled = !1, kt.totalNodes = kt.resolvedTargetDeltas = kt.recalculatedProjection = 0, this.nodes.forEach(Md), this.nodes.forEach(Nd), this.nodes.forEach(Fd), this.nodes.forEach(kd), Td(kt);
5262
+ this.projectionUpdateScheduled = !1, Lt.totalNodes = Lt.resolvedTargetDeltas = Lt.recalculatedProjection = 0, this.nodes.forEach(Md), this.nodes.forEach(Nd), this.nodes.forEach(Fd), this.nodes.forEach(Ld), Td(Lt);
5263
5263
  }, 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;
5264
5264
  for (let l = 0; l < this.path.length; l++)
5265
5265
  this.path[l].shouldResetTransform = !0;
@@ -5358,7 +5358,7 @@ function ya({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
5358
5358
  this.unblockUpdate(), this.clearAllSnapshots(), this.nodes.forEach(Ji);
5359
5359
  return;
5360
5360
  }
5361
- this.isUpdating || this.nodes.forEach(jd), this.isUpdating = !1, this.nodes.forEach(_d), this.nodes.forEach(Vd), this.nodes.forEach(Ld), this.clearAllSnapshots();
5361
+ this.isUpdating || this.nodes.forEach(_d), this.isUpdating = !1, this.nodes.forEach(jd), this.nodes.forEach(Vd), this.nodes.forEach(kd), this.clearAllSnapshots();
5362
5362
  const a = performance.now();
5363
5363
  q.delta = At(0, 1e3 / 60, a - q.timestamp), q.timestamp = a, q.isProcessing = !0, Pn.update.process(q), Pn.preRender.process(q), Pn.render.process(q), q.isProcessing = !1;
5364
5364
  }
@@ -5369,10 +5369,10 @@ function ya({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
5369
5369
  this.nodes.forEach(Dd), this.sharedNodes.forEach(Id);
5370
5370
  }
5371
5371
  scheduleUpdateProjection() {
5372
- this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, M.preRender(this.updateProjection, !1, !0));
5372
+ this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, L.preRender(this.updateProjection, !1, !0));
5373
5373
  }
5374
5374
  scheduleCheckAfterUnmount() {
5375
- M.postRender(() => {
5375
+ L.postRender(() => {
5376
5376
  this.isLayoutDirty ? this.root.didUpdate() : this.root.checkUpdateFailed();
5377
5377
  });
5378
5378
  }
@@ -5389,7 +5389,7 @@ function ya({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
5389
5389
  for (let l = 0; l < this.path.length; l++)
5390
5390
  this.path[l].updateScroll();
5391
5391
  const s = this.layout;
5392
- this.layout = this.measure(!1), this.layoutCorrected = I(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
5392
+ this.layout = this.measure(!1), this.layoutCorrected = B(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
5393
5393
  const { visualElement: a } = this.options;
5394
5394
  a && a.notify("LayoutMeasure", this.layout.layoutBox, s ? s.layoutBox : void 0);
5395
5395
  }
@@ -5422,12 +5422,12 @@ function ya({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
5422
5422
  measurePageBox() {
5423
5423
  const { visualElement: s } = this.options;
5424
5424
  if (!s)
5425
- return I();
5425
+ return B();
5426
5426
  const a = s.measureViewportBox(), { scroll: l } = this.root;
5427
5427
  return l && (St(a.x, l.offset.x), St(a.y, l.offset.y)), a;
5428
5428
  }
5429
5429
  removeElementScroll(s) {
5430
- const a = I();
5430
+ const a = B();
5431
5431
  Z(a, s);
5432
5432
  for (let l = 0; l < this.path.length; l++) {
5433
5433
  const c = this.path[l], { scroll: f, options: u } = c;
@@ -5443,7 +5443,7 @@ function ya({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
5443
5443
  return a;
5444
5444
  }
5445
5445
  applyTransform(s, a = !1) {
5446
- const l = I();
5446
+ const l = B();
5447
5447
  Z(l, s);
5448
5448
  for (let c = 0; c < this.path.length; c++) {
5449
5449
  const f = this.path[c];
@@ -5455,14 +5455,14 @@ function ya({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
5455
5455
  return Mt(this.latestValues) && Kt(l, this.latestValues), l;
5456
5456
  }
5457
5457
  removeTransform(s) {
5458
- const a = I();
5458
+ const a = B();
5459
5459
  Z(a, s);
5460
5460
  for (let l = 0; l < this.path.length; l++) {
5461
5461
  const c = this.path[l];
5462
5462
  if (!c.instance || !Mt(c.latestValues))
5463
5463
  continue;
5464
5464
  tr(c.latestValues) && c.updateSnapshot();
5465
- const f = I(), u = c.measurePageBox();
5465
+ const f = B(), u = c.measurePageBox();
5466
5466
  Z(f, u), $i(a, c.latestValues, c.snapshot ? c.snapshot.layoutBox : void 0, f);
5467
5467
  }
5468
5468
  return Mt(this.latestValues) && $i(a, this.latestValues), a;
@@ -5494,15 +5494,15 @@ function ya({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
5494
5494
  if (!(!this.layout || !(u || h))) {
5495
5495
  if (this.resolvedRelativeTargetAt = q.timestamp, !this.targetDelta && !this.relativeTarget) {
5496
5496
  const d = this.getClosestProjectingParent();
5497
- d && d.layout && this.animationProgress !== 1 ? (this.relativeParent = d, this.forceRelativeParentToResolveTarget(), this.relativeTarget = I(), this.relativeTargetOrigin = I(), he(this.relativeTargetOrigin, this.layout.layoutBox, d.layout.layoutBox), Z(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
5497
+ d && d.layout && this.animationProgress !== 1 ? (this.relativeParent = d, this.forceRelativeParentToResolveTarget(), this.relativeTarget = B(), this.relativeTargetOrigin = B(), he(this.relativeTargetOrigin, this.layout.layoutBox, d.layout.layoutBox), Z(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
5498
5498
  }
5499
5499
  if (!(!this.relativeTarget && !this.targetDelta)) {
5500
- if (this.target || (this.target = I(), this.targetWithTransforms = I()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), $h(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : Z(this.target, this.layout.layoutBox), ca(this.target, this.targetDelta)) : Z(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget) {
5500
+ if (this.target || (this.target = B(), this.targetWithTransforms = B()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), $h(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : Z(this.target, this.layout.layoutBox), ca(this.target, this.targetDelta)) : Z(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget) {
5501
5501
  this.attemptToResolveRelativeTarget = !1;
5502
5502
  const d = this.getClosestProjectingParent();
5503
- d && !!d.resumingFrom == !!this.resumingFrom && !d.options.layoutScroll && d.target && this.animationProgress !== 1 ? (this.relativeParent = d, this.forceRelativeParentToResolveTarget(), this.relativeTarget = I(), this.relativeTargetOrigin = I(), he(this.relativeTargetOrigin, this.target, d.target), Z(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
5503
+ d && !!d.resumingFrom == !!this.resumingFrom && !d.options.layoutScroll && d.target && this.animationProgress !== 1 ? (this.relativeParent = d, this.forceRelativeParentToResolveTarget(), this.relativeTarget = B(), this.relativeTargetOrigin = B(), he(this.relativeTargetOrigin, this.target, d.target), Z(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
5504
5504
  }
5505
- kt.resolvedTargetDeltas++;
5505
+ Lt.resolvedTargetDeltas++;
5506
5506
  }
5507
5507
  }
5508
5508
  }
@@ -5532,7 +5532,7 @@ function ya({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
5532
5532
  }
5533
5533
  this.projectionDelta || (this.projectionDelta = Xt(), this.projectionDeltaWithTransform = Xt());
5534
5534
  const m = this.projectionTransform;
5535
- fe(this.projectionDelta, this.layoutCorrected, p, this.latestValues), this.projectionTransform = Xi(this.projectionDelta, this.treeScale), (this.projectionTransform !== m || this.treeScale.x !== h || this.treeScale.y !== d) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", p)), kt.recalculatedProjection++;
5535
+ fe(this.projectionDelta, this.layoutCorrected, p, this.latestValues), this.projectionTransform = Xi(this.projectionDelta, this.treeScale), (this.projectionTransform !== m || this.treeScale.x !== h || this.treeScale.y !== d) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", p)), Lt.recalculatedProjection++;
5536
5536
  }
5537
5537
  hide() {
5538
5538
  this.isVisible = !1;
@@ -5550,16 +5550,16 @@ function ya({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
5550
5550
  setAnimationOrigin(s, a = !1) {
5551
5551
  const l = this.snapshot, c = l ? l.latestValues : {}, f = { ...this.latestValues }, u = Xt();
5552
5552
  (!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !a;
5553
- const h = I(), d = l ? l.source : void 0, p = this.layout ? this.layout.source : void 0, m = d !== p, g = this.getStack(), x = !g || g.members.length <= 1, w = !!(m && !x && this.options.crossfade === !0 && !this.path.some(Wd));
5553
+ const h = B(), d = l ? l.source : void 0, p = this.layout ? this.layout.source : void 0, m = d !== p, g = this.getStack(), x = !g || g.members.length <= 1, w = !!(m && !x && this.options.crossfade === !0 && !this.path.some(Wd));
5554
5554
  this.animationProgress = 0;
5555
5555
  let y;
5556
5556
  this.mixTargetDelta = (S) => {
5557
5557
  const E = S / 1e3;
5558
- Qi(u.x, s.x, E), Qi(u.y, s.y, E), this.setTargetDelta(u), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (he(h, this.layout.layoutBox, this.relativeParent.layout.layoutBox), Ud(this.relativeTarget, this.relativeTargetOrigin, h, E), y && xd(this.relativeTarget, y) && (this.isProjectionDirty = !1), y || (y = I()), Z(y, this.relativeTarget)), m && (this.animationValues = f, pd(f, c, this.latestValues, E, w, x)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = E;
5558
+ Qi(u.x, s.x, E), Qi(u.y, s.y, E), this.setTargetDelta(u), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (he(h, this.layout.layoutBox, this.relativeParent.layout.layoutBox), Ud(this.relativeTarget, this.relativeTargetOrigin, h, E), y && xd(this.relativeTarget, y) && (this.isProjectionDirty = !1), y || (y = B()), Z(y, this.relativeTarget)), m && (this.animationValues = f, pd(f, c, this.latestValues, E, w, x)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = E;
5559
5559
  }, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
5560
5560
  }
5561
5561
  startAnimation(s) {
5562
- this.notifyListeners("animationStart"), this.currentAnimation && this.currentAnimation.stop(), this.resumingFrom && this.resumingFrom.currentAnimation && this.resumingFrom.currentAnimation.stop(), this.pendingAnimation && (mt(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = M.update(() => {
5562
+ this.notifyListeners("animationStart"), this.currentAnimation && this.currentAnimation.stop(), this.resumingFrom && this.resumingFrom.currentAnimation && this.resumingFrom.currentAnimation.stop(), this.pendingAnimation && (mt(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = L.update(() => {
5563
5563
  Fe.hasAnimatedSinceResize = !0, this.currentAnimation = Cd(0, Yi, {
5564
5564
  ...s,
5565
5565
  onUpdate: (a) => {
@@ -5584,7 +5584,7 @@ function ya({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
5584
5584
  let { targetWithTransforms: a, target: l, layout: c, latestValues: f } = s;
5585
5585
  if (!(!a || !l || !c)) {
5586
5586
  if (this !== s && this.layout && c && va(this.options.animationType, this.layout.layoutBox, c.layoutBox)) {
5587
- l = this.target || I();
5587
+ l = this.target || B();
5588
5588
  const u = J(this.layout.layoutBox.x);
5589
5589
  l.x.min = s.target.x.min, l.x.max = l.x.min + u;
5590
5590
  const h = J(this.layout.layoutBox.y);
@@ -5694,7 +5694,7 @@ function ya({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
5694
5694
  function Vd(t) {
5695
5695
  t.updateLayout();
5696
5696
  }
5697
- function Ld(t) {
5697
+ function kd(t) {
5698
5698
  var e;
5699
5699
  const n = ((e = t.resumeFrom) === null || e === void 0 ? void 0 : e.snapshot) || t.snapshot;
5700
5700
  if (t.isLead() && t.layout && n && t.hasListeners("didUpdate")) {
@@ -5717,9 +5717,9 @@ function Ld(t) {
5717
5717
  if (u && !u.resumeFrom) {
5718
5718
  const { snapshot: h, layout: d } = u;
5719
5719
  if (h && d) {
5720
- const p = I();
5720
+ const p = B();
5721
5721
  he(p, n.layoutBox, h.layoutBox);
5722
- const m = I();
5722
+ const m = B();
5723
5723
  he(m, r, d.layoutBox), ga(p, m) || (f = !0), u.options.layoutRoot && (t.relativeTarget = m, t.relativeTargetOrigin = p, t.relativeParent = u);
5724
5724
  }
5725
5725
  }
@@ -5739,9 +5739,9 @@ function Ld(t) {
5739
5739
  t.options.transition = void 0;
5740
5740
  }
5741
5741
  function Md(t) {
5742
- kt.totalNodes++, t.parent && (t.isProjecting() || (t.isProjectionDirty = t.parent.isProjectionDirty), t.isSharedProjectionDirty || (t.isSharedProjectionDirty = !!(t.isProjectionDirty || t.parent.isProjectionDirty || t.parent.isSharedProjectionDirty)), t.isTransformDirty || (t.isTransformDirty = t.parent.isTransformDirty));
5742
+ Lt.totalNodes++, t.parent && (t.isProjecting() || (t.isProjectionDirty = t.parent.isProjectionDirty), t.isSharedProjectionDirty || (t.isSharedProjectionDirty = !!(t.isProjectionDirty || t.parent.isProjectionDirty || t.parent.isSharedProjectionDirty)), t.isTransformDirty || (t.isTransformDirty = t.parent.isTransformDirty));
5743
5743
  }
5744
- function kd(t) {
5744
+ function Ld(t) {
5745
5745
  t.isProjectionDirty = t.isSharedProjectionDirty = t.isTransformDirty = !1;
5746
5746
  }
5747
5747
  function Dd(t) {
@@ -5750,10 +5750,10 @@ function Dd(t) {
5750
5750
  function Ji(t) {
5751
5751
  t.clearMeasurements();
5752
5752
  }
5753
- function jd(t) {
5753
+ function _d(t) {
5754
5754
  t.isLayoutDirty = !1;
5755
5755
  }
5756
- function _d(t) {
5756
+ function jd(t) {
5757
5757
  const { visualElement: e } = t.options;
5758
5758
  e && e.getProps().onBeforeLayoutMeasure && e.notify("BeforeLayoutMeasure"), t.resetTransform();
5759
5759
  }
@@ -5787,7 +5787,7 @@ function Wd(t) {
5787
5787
  const zd = {
5788
5788
  duration: 0.45,
5789
5789
  ease: [0.4, 0, 0.1, 1]
5790
- }, es = (t) => typeof navigator < "u" && navigator.userAgent.toLowerCase().includes(t), ns = es("applewebkit/") && !es("chrome/") ? Math.round : N;
5790
+ }, es = (t) => typeof navigator < "u" && navigator.userAgent.toLowerCase().includes(t), ns = es("applewebkit/") && !es("chrome/") ? Math.round : F;
5791
5791
  function rs(t) {
5792
5792
  t.min = ns(t.min), t.max = ns(t.max);
5793
5793
  }
@@ -5804,7 +5804,7 @@ const $d = ya({
5804
5804
  y: document.documentElement.scrollTop || document.body.scrollTop
5805
5805
  }),
5806
5806
  checkIsScrollRoot: () => !0
5807
- }), jn = {
5807
+ }), _n = {
5808
5808
  current: void 0
5809
5809
  }, ba = ya({
5810
5810
  measureScroll: (t) => ({
@@ -5812,11 +5812,11 @@ const $d = ya({
5812
5812
  y: t.scrollTop
5813
5813
  }),
5814
5814
  defaultParent: () => {
5815
- if (!jn.current) {
5815
+ if (!_n.current) {
5816
5816
  const t = new $d({});
5817
- t.mount(window), t.setOptions({ layoutScroll: !0 }), jn.current = t;
5817
+ t.mount(window), t.setOptions({ layoutScroll: !0 }), _n.current = t;
5818
5818
  }
5819
- return jn.current;
5819
+ return _n.current;
5820
5820
  },
5821
5821
  resetTransform: (t, e) => {
5822
5822
  t.style.transform = e !== void 0 ? e : "none";
@@ -5881,7 +5881,7 @@ const Yd = /* @__PURE__ */ new Set([
5881
5881
  "y",
5882
5882
  "translateX",
5883
5883
  "translateY"
5884
- ]), xa = (t) => Yd.has(t), Jd = (t) => Object.keys(t).some(xa), is = (t) => t === Nt || t === R, ss = (t, e) => parseFloat(t.split(", ")[e]), os = (t, e) => (n, { transform: r }) => {
5884
+ ]), xa = (t) => Yd.has(t), Jd = (t) => Object.keys(t).some(xa), is = (t) => t === Nt || t === C, ss = (t, e) => parseFloat(t.split(", ")[e]), os = (t, e) => (n, { transform: r }) => {
5885
5885
  if (r === "none" || !r)
5886
5886
  return 0;
5887
5887
  const i = r.match(/^matrix3d\((.+)\)$/);
@@ -5945,7 +5945,7 @@ const ep = (t, e, n) => {
5945
5945
  if (u !== d)
5946
5946
  if (is(u) && is(d)) {
5947
5947
  const p = c.get();
5948
- typeof p == "string" && c.set(parseFloat(p)), typeof h == "string" ? e[l] = parseFloat(h) : Array.isArray(h) && d === R && (e[l] = h.map(parseFloat));
5948
+ typeof p == "string" && c.set(parseFloat(p)), typeof h == "string" ? e[l] = parseFloat(h) : Array.isArray(h) && d === C && (e[l] = h.map(parseFloat));
5949
5949
  } else
5950
5950
  u != null && u.transform && (d != null && d.transform) && (f === 0 || h === 0) ? f === 0 ? c.set(d.transform(f)) : e[l] = u.transform(h) : (s || (o = tp(t), s = !0), a.push(l), r[l] = r[l] !== void 0 ? r[l] : e[l], c.jump(h));
5951
5951
  }), a.length) {
@@ -6005,7 +6005,7 @@ class cp {
6005
6005
  constructor({ parent: e, props: n, presenceContext: r, reducedMotionConfig: i, visualState: o }, s = {}) {
6006
6006
  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 = () => {
6007
6007
  this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
6008
- }, this.scheduleRender = () => M.render(this.render, !1, !0);
6008
+ }, this.scheduleRender = () => L.render(this.render, !1, !0);
6009
6009
  const { latestValues: a, renderState: l } = o;
6010
6010
  this.latestValues = a, this.baseTarget = { ...a }, this.initialValues = n.initial ? { ...a } : {}, this.renderState = l, this.parent = e, this.props = n, this.presenceContext = r, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = i, this.options = s, this.isControllingVariants = ln(n), this.isVariantNode = so(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
6011
6011
  const { willChange: c, ...f } = this.scrapeMotionValuesFromProps(n, {});
@@ -6036,8 +6036,8 @@ class cp {
6036
6036
  this.current = null;
6037
6037
  }
6038
6038
  bindToMotionValue(e, n) {
6039
- const r = _t.has(e), i = n.on("change", (s) => {
6040
- this.latestValues[e] = s, this.props.onUpdate && M.update(this.notifyUpdate, !1, !0), r && this.projection && (this.projection.isTransformDirty = !0);
6039
+ const r = jt.has(e), i = n.on("change", (s) => {
6040
+ this.latestValues[e] = s, this.props.onUpdate && L.update(this.notifyUpdate, !1, !0), r && this.projection && (this.projection.isTransformDirty = !0);
6041
6041
  }), o = n.on("renderRequest", this.scheduleRender);
6042
6042
  this.valueSubscriptions.set(e, () => {
6043
6043
  i(), o();
@@ -6091,7 +6091,7 @@ class cp {
6091
6091
  * removed with a re-render to work.
6092
6092
  */
6093
6093
  measureViewportBox() {
6094
- return this.current ? this.measureInstanceViewportBox(this.current, this.props) : I();
6094
+ return this.current ? this.measureInstanceViewportBox(this.current, this.props) : B();
6095
6095
  }
6096
6096
  getStaticValue(e) {
6097
6097
  return this.latestValues[e];
@@ -6259,7 +6259,7 @@ class fp extends Ea {
6259
6259
  super(...arguments), this.type = "html";
6260
6260
  }
6261
6261
  readValueFromInstance(e, n) {
6262
- if (_t.has(n)) {
6262
+ if (jt.has(n)) {
6263
6263
  const r = Or(n);
6264
6264
  return r && r.default || 0;
6265
6265
  } else {
@@ -6295,14 +6295,14 @@ class hp extends Ea {
6295
6295
  return e[n];
6296
6296
  }
6297
6297
  readValueFromInstance(e, n) {
6298
- if (_t.has(n)) {
6298
+ if (jt.has(n)) {
6299
6299
  const r = Or(n);
6300
6300
  return r && r.default || 0;
6301
6301
  }
6302
6302
  return n = vo.has(n) ? n : mr(n), e.getAttribute(n);
6303
6303
  }
6304
6304
  measureInstanceViewportBox() {
6305
- return I();
6305
+ return B();
6306
6306
  }
6307
6307
  scrapeMotionValuesFromProps(e, n) {
6308
6308
  return xo(e, n);
@@ -6348,10 +6348,10 @@ function ye() {
6348
6348
  return t;
6349
6349
  }, ye.apply(this, arguments);
6350
6350
  }
6351
- var jt;
6351
+ var _t;
6352
6352
  (function(t) {
6353
6353
  t.Pop = "POP", t.Push = "PUSH", t.Replace = "REPLACE";
6354
- })(jt || (jt = {}));
6354
+ })(_t || (_t = {}));
6355
6355
  const cs = "popstate";
6356
6356
  function yp(t) {
6357
6357
  t === void 0 && (t = {});
@@ -6429,7 +6429,7 @@ function bp(t, e, n, r) {
6429
6429
  let {
6430
6430
  window: i = document.defaultView,
6431
6431
  v5Compat: o = !1
6432
- } = r, s = i.history, a = jt.Pop, l = null, c = f();
6432
+ } = r, s = i.history, a = _t.Pop, l = null, c = f();
6433
6433
  c == null && (c = 0, s.replaceState(ye({}, s.state, {
6434
6434
  idx: c
6435
6435
  }), ""));
@@ -6439,7 +6439,7 @@ function bp(t, e, n, r) {
6439
6439
  }).idx;
6440
6440
  }
6441
6441
  function u() {
6442
- a = jt.Pop;
6442
+ a = _t.Pop;
6443
6443
  let g = f(), x = g == null ? null : g - c;
6444
6444
  c = g, l && l({
6445
6445
  action: a,
@@ -6448,7 +6448,7 @@ function bp(t, e, n, r) {
6448
6448
  });
6449
6449
  }
6450
6450
  function h(g, x) {
6451
- a = jt.Push;
6451
+ a = _t.Push;
6452
6452
  let w = ir(m.location, g, x);
6453
6453
  n && n(w, g), c = f() + 1;
6454
6454
  let y = us(w, c), S = m.createHref(w);
@@ -6466,7 +6466,7 @@ function bp(t, e, n, r) {
6466
6466
  });
6467
6467
  }
6468
6468
  function d(g, x) {
6469
- a = jt.Replace;
6469
+ a = _t.Replace;
6470
6470
  let w = ir(m.location, g, x);
6471
6471
  n && n(w, g), c = f();
6472
6472
  let y = us(w, c), S = m.createHref(w);
@@ -6545,7 +6545,7 @@ function wp(t, e) {
6545
6545
  i === ".." ? n.length > 1 && n.pop() : i !== "." && n.push(i);
6546
6546
  }), n.length > 1 ? n.join("/") : "/";
6547
6547
  }
6548
- function _n(t, e, n, r) {
6548
+ function jn(t, e, n, r) {
6549
6549
  return "Cannot include a '" + t + "' character in a manually specified " + ("`to." + e + "` field [" + JSON.stringify(r) + "]. Please separate it out to the ") + ("`to." + n + "` field. Alternatively you may provide the full path as ") + 'a string in <Link to="..."> and the router will parse it for you.';
6550
6550
  }
6551
6551
  function Sp(t) {
@@ -6558,7 +6558,7 @@ function Ta(t, e) {
6558
6558
  function Aa(t, e, n, r) {
6559
6559
  r === void 0 && (r = !1);
6560
6560
  let i;
6561
- typeof t == "string" ? i = hn(t) : (i = ye({}, t), nt(!i.pathname || !i.pathname.includes("?"), _n("?", "pathname", "search", i)), nt(!i.pathname || !i.pathname.includes("#"), _n("#", "pathname", "hash", i)), nt(!i.search || !i.search.includes("#"), _n("#", "search", "hash", i)));
6561
+ typeof t == "string" ? i = hn(t) : (i = ye({}, t), nt(!i.pathname || !i.pathname.includes("?"), jn("?", "pathname", "search", i)), nt(!i.pathname || !i.pathname.includes("#"), jn("#", "pathname", "hash", i)), nt(!i.search || !i.search.includes("#"), jn("#", "search", "hash", i)));
6562
6562
  let o = t === "" || i.pathname === "", s = o ? "/" : i.pathname, a;
6563
6563
  if (s == null)
6564
6564
  a = n;
@@ -6599,7 +6599,7 @@ function Ze() {
6599
6599
  return t;
6600
6600
  }, Ze.apply(this, arguments);
6601
6601
  }
6602
- const Oa = /* @__PURE__ */ b.createContext(null), te = /* @__PURE__ */ b.createContext(null), jr = /* @__PURE__ */ b.createContext(null), dn = /* @__PURE__ */ b.createContext({
6602
+ const Oa = /* @__PURE__ */ b.createContext(null), te = /* @__PURE__ */ b.createContext(null), _r = /* @__PURE__ */ b.createContext(null), dn = /* @__PURE__ */ b.createContext({
6603
6603
  outlet: null,
6604
6604
  matches: [],
6605
6605
  isDataRoute: !1
@@ -6616,7 +6616,7 @@ function Ap(t, e) {
6616
6616
  hash: o,
6617
6617
  pathname: s,
6618
6618
  search: a
6619
- } = La(t, {
6619
+ } = ka(t, {
6620
6620
  relative: n
6621
6621
  }), l = s;
6622
6622
  return r !== "/" && (l = s === "/" ? r : Ca([r, s])), i.createHref({
@@ -6626,10 +6626,10 @@ function Ap(t, e) {
6626
6626
  });
6627
6627
  }
6628
6628
  function pn() {
6629
- return b.useContext(jr) != null;
6629
+ return b.useContext(_r) != null;
6630
6630
  }
6631
6631
  function mn() {
6632
- return pn() || nt(!1), b.useContext(jr).location;
6632
+ return pn() || nt(!1), b.useContext(_r).location;
6633
6633
  }
6634
6634
  function Va(t) {
6635
6635
  b.useContext(te).static || b.useLayoutEffect(t);
@@ -6664,7 +6664,7 @@ function Rp() {
6664
6664
  t == null && e !== "/" && (u.pathname = u.pathname === "/" ? e : Ca([e, u.pathname])), (f.replace ? r.replace : r.push)(u, f.state, f);
6665
6665
  }, [e, r, s, o, t]);
6666
6666
  }
6667
- function La(t, e) {
6667
+ function ka(t, e) {
6668
6668
  let {
6669
6669
  relative: n
6670
6670
  } = e === void 0 ? {} : e, {
@@ -6678,9 +6678,9 @@ function La(t, e) {
6678
6678
  }
6679
6679
  var Ma = /* @__PURE__ */ function(t) {
6680
6680
  return t.UseBlocker = "useBlocker", t.UseRevalidator = "useRevalidator", t.UseNavigateStable = "useNavigate", t;
6681
- }(Ma || {}), ka = /* @__PURE__ */ function(t) {
6681
+ }(Ma || {}), La = /* @__PURE__ */ function(t) {
6682
6682
  return t.UseBlocker = "useBlocker", t.UseLoaderData = "useLoaderData", t.UseActionData = "useActionData", t.UseRouteError = "useRouteError", t.UseNavigation = "useNavigation", t.UseRouteLoaderData = "useRouteLoaderData", t.UseMatches = "useMatches", t.UseRevalidator = "useRevalidator", t.UseNavigateStable = "useNavigate", t.UseRouteId = "useRouteId", t;
6683
- }(ka || {});
6683
+ }(La || {});
6684
6684
  function Op(t) {
6685
6685
  let e = b.useContext(Oa);
6686
6686
  return e || nt(!1), e;
@@ -6689,14 +6689,14 @@ function Vp(t) {
6689
6689
  let e = b.useContext(dn);
6690
6690
  return e || nt(!1), e;
6691
6691
  }
6692
- function Lp(t) {
6692
+ function kp(t) {
6693
6693
  let e = Vp(), n = e.matches[e.matches.length - 1];
6694
6694
  return n.route.id || nt(!1), n.route.id;
6695
6695
  }
6696
6696
  function Mp() {
6697
6697
  let {
6698
6698
  router: t
6699
- } = Op(Ma.UseNavigateStable), e = Lp(ka.UseNavigateStable), n = b.useRef(!1);
6699
+ } = Op(Ma.UseNavigateStable), e = kp(La.UseNavigateStable), n = b.useRef(!1);
6700
6700
  return Va(() => {
6701
6701
  n.current = !0;
6702
6702
  }), b.useCallback(function(i, o) {
@@ -6705,12 +6705,12 @@ function Mp() {
6705
6705
  }, o)));
6706
6706
  }, [t, e]);
6707
6707
  }
6708
- function kp(t) {
6708
+ function Lp(t) {
6709
6709
  let {
6710
6710
  basename: e = "/",
6711
6711
  children: n = null,
6712
6712
  location: r,
6713
- navigationType: i = jt.Pop,
6713
+ navigationType: i = _t.Pop,
6714
6714
  navigator: o,
6715
6715
  static: s = !1,
6716
6716
  future: a
@@ -6746,7 +6746,7 @@ function kp(t) {
6746
6746
  }, [l, f, u, h, d, p, i]);
6747
6747
  return m == null ? null : /* @__PURE__ */ b.createElement(te.Provider, {
6748
6748
  value: c
6749
- }, /* @__PURE__ */ b.createElement(jr.Provider, {
6749
+ }, /* @__PURE__ */ b.createElement(_r.Provider, {
6750
6750
  children: n,
6751
6751
  value: m
6752
6752
  }));
@@ -6781,13 +6781,13 @@ function Dp(t, e) {
6781
6781
  i = r[o], !(e.indexOf(i) >= 0) && (n[i] = t[i]);
6782
6782
  return n;
6783
6783
  }
6784
- function jp(t) {
6784
+ function _p(t) {
6785
6785
  return !!(t.metaKey || t.altKey || t.ctrlKey || t.shiftKey);
6786
6786
  }
6787
- function _p(t, e) {
6787
+ function jp(t, e) {
6788
6788
  return t.button === 0 && // Ignore everything but left clicks
6789
6789
  (!e || e === "_self") && // Let browser handle "target=_blank" etc.
6790
- !jp(t);
6790
+ !_p(t);
6791
6791
  }
6792
6792
  const Np = ["onClick", "relative", "reloadDocument", "replace", "state", "target", "to", "preventScrollReset", "unstable_viewTransition"], Fp = "6";
6793
6793
  try {
@@ -6814,7 +6814,7 @@ function Ip(t) {
6814
6814
  } = r || {}, f = b.useCallback((u) => {
6815
6815
  c && hs ? hs(() => l(u)) : l(u);
6816
6816
  }, [l, c]);
6817
- return b.useLayoutEffect(() => s.listen(f), [s, f]), /* @__PURE__ */ b.createElement(kp, {
6817
+ return b.useLayoutEffect(() => s.listen(f), [s, f]), /* @__PURE__ */ b.createElement(Lp, {
6818
6818
  basename: e,
6819
6819
  children: n,
6820
6820
  location: a.location,
@@ -6882,11 +6882,11 @@ function Hp(t, e) {
6882
6882
  preventScrollReset: o,
6883
6883
  relative: s,
6884
6884
  unstable_viewTransition: a
6885
- } = e === void 0 ? {} : e, l = Cp(), c = mn(), f = La(t, {
6885
+ } = e === void 0 ? {} : e, l = Cp(), c = mn(), f = ka(t, {
6886
6886
  relative: s
6887
6887
  });
6888
6888
  return b.useCallback((u) => {
6889
- if (_p(u, n)) {
6889
+ if (jp(u, n)) {
6890
6890
  u.preventDefault();
6891
6891
  let h = r !== void 0 ? r : Je(c) === Je(f);
6892
6892
  l(t, {
@@ -6976,11 +6976,11 @@ function Yp(t) {
6976
6976
  function Jp(t) {
6977
6977
  this.parameters = /* @__PURE__ */ Object.create(null), this.type = t;
6978
6978
  }
6979
- var Ht = /* @__PURE__ */ new Map(), ja = function(e) {
6979
+ var Ht = /* @__PURE__ */ new Map(), _a = function(e) {
6980
6980
  return e.cloneNode(!0);
6981
6981
  }, gs = function() {
6982
6982
  return window.location.protocol === "file:";
6983
- }, _a = function(e, n, r) {
6983
+ }, ja = function(e, n, r) {
6984
6984
  var i = new XMLHttpRequest();
6985
6985
  i.onreadystatechange = function() {
6986
6986
  try {
@@ -7014,7 +7014,7 @@ var Ht = /* @__PURE__ */ new Map(), ja = function(e) {
7014
7014
  setTimeout(function() {
7015
7015
  if (Array.isArray(Et[e])) {
7016
7016
  var l = Ht.get(e), c = Et[e][s];
7017
- l instanceof SVGSVGElement && c(null, ja(l)), l instanceof Error && c(l), s === Et[e].length - 1 && delete Et[e];
7017
+ l instanceof SVGSVGElement && c(null, _a(l)), l instanceof Error && c(l), s === Et[e].length - 1 && delete Et[e];
7018
7018
  }
7019
7019
  }, 0);
7020
7020
  }, r = 0, i = Et[e].length; r < i; r++)
@@ -7027,16 +7027,16 @@ var Ht = /* @__PURE__ */ new Map(), ja = function(e) {
7027
7027
  return;
7028
7028
  }
7029
7029
  if (i instanceof SVGSVGElement) {
7030
- r(null, ja(i));
7030
+ r(null, _a(i));
7031
7031
  return;
7032
7032
  }
7033
7033
  }
7034
- Ht.set(e, void 0), ys(e, r), _a(e, n, function(o, s) {
7034
+ Ht.set(e, void 0), ys(e, r), ja(e, n, function(o, s) {
7035
7035
  var a;
7036
7036
  o ? Ht.set(e, o) : ((a = s.responseXML) === null || a === void 0 ? void 0 : a.documentElement) instanceof SVGSVGElement && Ht.set(e, s.responseXML.documentElement), Zp(e);
7037
7037
  });
7038
7038
  }, tm = function(e, n, r) {
7039
- _a(e, n, function(i, o) {
7039
+ ja(e, n, function(i, o) {
7040
7040
  var s;
7041
7041
  i ? r(i) : ((s = o.responseXML) === null || s === void 0 ? void 0 : s.documentElement) instanceof SVGSVGElement && r(null, o.responseXML.documentElement);
7042
7042
  });
@@ -7088,17 +7088,17 @@ var Ht = /* @__PURE__ */ new Map(), ja = function(e) {
7088
7088
  path: [],
7089
7089
  pattern: ["fill", "stroke"],
7090
7090
  radialGradient: ["fill", "stroke"]
7091
- }, S, E, A, P, T;
7091
+ }, S, E, P, T, A;
7092
7092
  Object.keys(y).forEach(function($) {
7093
- S = $, A = y[$], E = u.querySelectorAll(S + "[id]");
7093
+ S = $, P = y[$], E = u.querySelectorAll(S + "[id]");
7094
7094
  for (var gt = function(It, gn) {
7095
- P = E[It].id, T = P + "-" + nm();
7095
+ T = E[It].id, A = T + "-" + nm();
7096
7096
  var Ot;
7097
- Array.prototype.forEach.call(A, function(yn) {
7098
- Ot = u.querySelectorAll("[" + yn + '*="' + P + '"]');
7097
+ Array.prototype.forEach.call(P, function(yn) {
7098
+ Ot = u.querySelectorAll("[" + yn + '*="' + T + '"]');
7099
7099
  for (var Te = 0, Ua = Ot.length; Te < Ua; Te++) {
7100
7100
  var Br = Ot[Te].getAttribute(yn);
7101
- Br && !Br.match(new RegExp('url\\("?#' + P + '"?\\)')) || Ot[Te].setAttribute(yn, "url(#" + T + ")");
7101
+ Br && !Br.match(new RegExp('url\\("?#' + T + '"?\\)')) || Ot[Te].setAttribute(yn, "url(#" + A + ")");
7102
7102
  }
7103
7103
  });
7104
7104
  for (var ut = u.querySelectorAll("[*|href]"), Ut = [], Wt = 0, ee = ut.length; Wt < ee; Wt++) {
@@ -7106,18 +7106,18 @@ var Ht = /* @__PURE__ */ new Map(), ja = function(e) {
7106
7106
  Vt && Vt.toString() === "#" + E[It].id && Ut.push(ut[Wt]);
7107
7107
  }
7108
7108
  for (var et = 0, Fr = Ut.length; et < Fr; et++)
7109
- Ut[et].setAttributeNS(Fn, "href", "#" + T);
7110
- E[It].id = T;
7111
- }, Ft = 0, L = E.length; Ft < L; Ft++)
7109
+ Ut[et].setAttributeNS(Fn, "href", "#" + A);
7110
+ E[It].id = A;
7111
+ }, Ft = 0, M = E.length; Ft < M; Ft++)
7112
7112
  gt(Ft);
7113
7113
  });
7114
7114
  }
7115
7115
  u.removeAttribute("xmlns:a");
7116
- for (var C = u.querySelectorAll("script"), F = [], _, k, B = 0, H = C.length; B < H; B++)
7117
- k = C[B].getAttribute("type"), (!k || k === "application/ecmascript" || k === "application/javascript" || k === "text/javascript") && (_ = C[B].innerText || C[B].textContent, _ && F.push(_), u.removeChild(C[B]));
7118
- if (F.length > 0 && (n === "always" || n === "once" && !vs[l])) {
7119
- for (var rt = 0, W = F.length; rt < W; rt++)
7120
- new Function(F[rt])(window);
7116
+ for (var O = u.querySelectorAll("script"), N = [], k, _, z = 0, H = O.length; z < H; z++)
7117
+ _ = O[z].getAttribute("type"), (!_ || _ === "application/ecmascript" || _ === "application/javascript" || _ === "text/javascript") && (k = O[z].innerText || O[z].textContent, k && N.push(k), u.removeChild(O[z]));
7118
+ if (N.length > 0 && (n === "always" || n === "once" && !vs[l])) {
7119
+ for (var rt = 0, U = N.length; rt < U; rt++)
7120
+ new Function(N[rt])(window);
7121
7121
  vs[l] = !0;
7122
7122
  }
7123
7123
  var it = u.querySelectorAll("style");
@@ -7136,12 +7136,12 @@ var Ht = /* @__PURE__ */ new Map(), ja = function(e) {
7136
7136
  } : l, f = r.cacheRequests, u = 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, x = g === void 0 ? !0 : g;
7137
7137
  if (e && "length" in e)
7138
7138
  for (var w = 0, y = 0, S = e.length; y < S; y++)
7139
- bs(e[y], d, x, u, m, c, function(E, A) {
7140
- a(E, A), e && "length" in e && e.length === ++w && o(w);
7139
+ bs(e[y], d, x, u, m, c, function(E, P) {
7140
+ a(E, P), e && "length" in e && e.length === ++w && o(w);
7141
7141
  });
7142
7142
  else
7143
- e ? bs(e, d, x, u, m, c, function(E, A) {
7144
- a(E, A), o(1), e = null;
7143
+ e ? bs(e, d, x, u, m, c, function(E, P) {
7144
+ a(E, P), o(1), e = null;
7145
7145
  }) : o(0);
7146
7146
  }, sm = function(e) {
7147
7147
  var n = (e == null ? void 0 : e.ownerDocument) || document;
@@ -7154,7 +7154,7 @@ var Ht = /* @__PURE__ */ new Map(), ja = function(e) {
7154
7154
  if (e[i] !== n[i])
7155
7155
  return !0;
7156
7156
  return !1;
7157
- }, am = ["afterInjection", "beforeInjection", "desc", "evalScripts", "fallback", "httpRequestWithCredentials", "loading", "renumerateIRIElements", "src", "title", "useRequestCache", "wrapper"], Me = "http://www.w3.org/2000/svg", xs = "http://www.w3.org/1999/xlink", _r = /* @__PURE__ */ function(t) {
7157
+ }, am = ["afterInjection", "beforeInjection", "desc", "evalScripts", "fallback", "httpRequestWithCredentials", "loading", "renumerateIRIElements", "src", "title", "useRequestCache", "wrapper"], Me = "http://www.w3.org/2000/svg", xs = "http://www.w3.org/1999/xlink", jr = /* @__PURE__ */ function(t) {
7158
7158
  $p(e, t);
7159
7159
  function e() {
7160
7160
  for (var r, i = arguments.length, o = new Array(i), s = 0; s < i; s++)
@@ -7172,9 +7172,9 @@ var Ht = /* @__PURE__ */ new Map(), ja = function(e) {
7172
7172
  if (this.reactWrapper instanceof sm(this.reactWrapper).Node) {
7173
7173
  var o = this.props, s = o.desc, a = o.evalScripts, l = o.httpRequestWithCredentials, c = o.renumerateIRIElements, f = o.src, u = o.title, h = o.useRequestCache, d = this.props.onError, p = this.props.beforeInjection, m = this.props.afterInjection, g = this.props.wrapper, x, w;
7174
7174
  g === "svg" ? (x = document.createElementNS(Me, g), x.setAttribute("xmlns", Me), x.setAttribute("xmlns:xlink", xs), w = document.createElementNS(Me, g)) : (x = document.createElement(g), w = document.createElement(g)), x.appendChild(w), w.dataset.src = f, this.nonReactWrapper = this.reactWrapper.appendChild(x);
7175
- var y = function(P) {
7175
+ var y = function(T) {
7176
7176
  if (i.removeSVG(), !i._isMounted) {
7177
- d(P);
7177
+ d(T);
7178
7178
  return;
7179
7179
  }
7180
7180
  i.setState(function() {
@@ -7183,11 +7183,11 @@ var Ht = /* @__PURE__ */ new Map(), ja = function(e) {
7183
7183
  isLoading: !1
7184
7184
  };
7185
7185
  }, function() {
7186
- d(P);
7186
+ d(T);
7187
7187
  });
7188
- }, S = function(P, T) {
7189
- if (P) {
7190
- y(P);
7188
+ }, S = function(T, A) {
7189
+ if (T) {
7190
+ y(T);
7191
7191
  return;
7192
7192
  }
7193
7193
  i._isMounted && i.setState(function() {
@@ -7196,28 +7196,28 @@ var Ht = /* @__PURE__ */ new Map(), ja = function(e) {
7196
7196
  };
7197
7197
  }, function() {
7198
7198
  try {
7199
- m(T);
7200
- } catch (C) {
7201
- y(C);
7199
+ m(A);
7200
+ } catch (O) {
7201
+ y(O);
7202
7202
  }
7203
7203
  });
7204
- }, E = function(P) {
7205
- if (P.setAttribute("role", "img"), s) {
7206
- var T = P.querySelector(":scope > desc");
7207
- T && P.removeChild(T);
7208
- var C = document.createElement("desc");
7209
- C.innerHTML = s, P.prepend(C);
7204
+ }, E = function(T) {
7205
+ if (T.setAttribute("role", "img"), s) {
7206
+ var A = T.querySelector(":scope > desc");
7207
+ A && T.removeChild(A);
7208
+ var O = document.createElement("desc");
7209
+ O.innerHTML = s, T.prepend(O);
7210
7210
  }
7211
7211
  if (u) {
7212
- var F = P.querySelector(":scope > title");
7213
- F && P.removeChild(F);
7214
- var _ = document.createElement("title");
7215
- _.innerHTML = u, P.prepend(_);
7212
+ var N = T.querySelector(":scope > title");
7213
+ N && T.removeChild(N);
7214
+ var k = document.createElement("title");
7215
+ k.innerHTML = u, T.prepend(k);
7216
7216
  }
7217
7217
  try {
7218
- p(P);
7219
- } catch (k) {
7220
- y(k);
7218
+ p(T);
7219
+ } catch (_) {
7220
+ y(_);
7221
7221
  }
7222
7222
  };
7223
7223
  im(w, {
@@ -7259,7 +7259,7 @@ var Ht = /* @__PURE__ */ new Map(), ja = function(e) {
7259
7259
  } : {}), this.state.isLoading && s && /* @__PURE__ */ b.createElement(s, null), this.state.hasError && o && /* @__PURE__ */ b.createElement(o, null));
7260
7260
  }, e;
7261
7261
  }(b.Component);
7262
- _r.defaultProps = {
7262
+ jr.defaultProps = {
7263
7263
  afterInjection: function() {
7264
7264
  },
7265
7265
  beforeInjection: function() {
@@ -7276,23 +7276,23 @@ _r.defaultProps = {
7276
7276
  useRequestCache: !0,
7277
7277
  wrapper: "div"
7278
7278
  };
7279
- _r.propTypes = {
7280
- afterInjection: z.func,
7281
- beforeInjection: z.func,
7282
- desc: z.string,
7283
- evalScripts: z.oneOf(["always", "once", "never"]),
7284
- fallback: z.oneOfType([z.func, z.object, z.string]),
7285
- httpRequestWithCredentials: z.bool,
7286
- loading: z.oneOfType([z.func, z.object, z.string]),
7287
- onError: z.func,
7288
- renumerateIRIElements: z.bool,
7289
- src: z.string.isRequired,
7290
- title: z.string,
7291
- useRequestCache: z.bool,
7292
- wrapper: z.oneOf(["div", "span", "svg"])
7279
+ jr.propTypes = {
7280
+ afterInjection: W.func,
7281
+ beforeInjection: W.func,
7282
+ desc: W.string,
7283
+ evalScripts: W.oneOf(["always", "once", "never"]),
7284
+ fallback: W.oneOfType([W.func, W.object, W.string]),
7285
+ httpRequestWithCredentials: W.bool,
7286
+ loading: W.oneOfType([W.func, W.object, W.string]),
7287
+ onError: W.func,
7288
+ renumerateIRIElements: W.bool,
7289
+ src: W.string.isRequired,
7290
+ title: W.string,
7291
+ useRequestCache: W.bool,
7292
+ wrapper: W.oneOf(["div", "span", "svg"])
7293
7293
  };
7294
7294
  function lm(t) {
7295
- return /* @__PURE__ */ O.jsx(
7295
+ return /* @__PURE__ */ R.jsx(
7296
7296
  "svg",
7297
7297
  {
7298
7298
  xmlns: "http://www.w3.org/2000/svg",
@@ -7301,7 +7301,7 @@ function lm(t) {
7301
7301
  fill: "currentColor",
7302
7302
  viewBox: "0 0 16 16",
7303
7303
  ...t,
7304
- children: /* @__PURE__ */ O.jsx(
7304
+ children: /* @__PURE__ */ R.jsx(
7305
7305
  "path",
7306
7306
  {
7307
7307
  fill: "currenColor",
@@ -7322,7 +7322,7 @@ function cm(t) {
7322
7322
  });
7323
7323
  }
7324
7324
  }, [n]), r ? e : Ha.createPortal(
7325
- /* @__PURE__ */ O.jsx(
7325
+ /* @__PURE__ */ R.jsx(
7326
7326
  "div",
7327
7327
  {
7328
7328
  style: {
@@ -7338,36 +7338,9 @@ function cm(t) {
7338
7338
  );
7339
7339
  }
7340
7340
  function Na({ item: t, level: e = 0, ...n }) {
7341
- var P;
7342
- const { isActive: r, isCollapsed: i, expanded: o, toggleExpand: s } = n, a = `level-${e}`, l = i ? "collapsed" : "expanded", c = r(t.id) ? "active" : "", f = (T, C = a) => `${T} ${C} ${l} ${c}`, u = !!((P = t.children) != null && P.length), [h, d] = b.useState(!1), p = b.useRef();
7343
- function m(T) {
7344
- var k;
7345
- const { level: C, hovered: F, parentRef: _ } = T;
7346
- return !u || i && C >= 2 && !F ? null : /* @__PURE__ */ O.jsx(
7347
- cm,
7348
- {
7349
- parentRef: _,
7350
- onlyChild: !i || i && C < 2,
7351
- children: /* @__PURE__ */ O.jsx(
7352
- gp.div,
7353
- {
7354
- className: f("menu-item__dropdown", `level-${C}`),
7355
- initial: {
7356
- height: i || o(t.id) ? "auto" : 0
7357
- },
7358
- animate: {
7359
- height: i || o(t.id) ? "auto" : 0
7360
- },
7361
- transition: { duration: 0.2 },
7362
- children: (k = t.children) == null ? void 0 : k.map((B) => /* @__PURE__ */ b.createElement(Na, { ...n, key: B.id, item: B, level: C }))
7363
- },
7364
- +i
7365
- )
7366
- }
7367
- );
7368
- }
7369
- const g = window.location.origin, x = t.path && t.path.includes("http") ? new URL(t.path) : { origin: "", pathname: "" }, w = window.location.pathname.split("/")[1], y = x.pathname.split("/")[1], S = n.ssr || !g.includes("local") && g !== x.origin || y !== w, E = u ? "div" : S ? "a" : zp, A = t.path || "#";
7370
- return /* @__PURE__ */ O.jsxs(
7341
+ var O, N;
7342
+ const { isActive: r, isCollapsed: i, expanded: o, toggleExpand: s } = n, a = `level-${e}`, l = i ? "collapsed" : "expanded", c = r(t.id) ? "active" : "", f = (k, _ = a) => `${k} ${_} ${l} ${c}`, u = !!((O = t.children) != null && O.length), [h, d] = b.useState(!1), p = b.useRef(), m = window.location.origin, g = t.path && t.path.includes("http") ? new URL(t.path) : { origin: "", pathname: "" }, x = window.location.pathname.split("/")[1], w = g.pathname.split("/")[1], y = n.ssr || !m.includes("local") && m !== g.origin || w !== x, S = u ? "div" : y ? "a" : zp, E = t.path || "#", P = e + 1, T = u && !(i && P >= 2 && !h), A = i || e === 0 ? void 0 : `${e}rem`;
7343
+ return /* @__PURE__ */ R.jsxs(
7371
7344
  "div",
7372
7345
  {
7373
7346
  ref: p,
@@ -7375,22 +7348,24 @@ function Na({ item: t, level: e = 0, ...n }) {
7375
7348
  onMouseEnter: () => i && d(!0),
7376
7349
  onMouseLeave: () => i && d(!1),
7377
7350
  children: [
7378
- /* @__PURE__ */ O.jsxs(
7379
- E,
7351
+ /* @__PURE__ */ R.jsxs(
7352
+ S,
7380
7353
  {
7381
- to: A,
7382
- href: A,
7354
+ to: E,
7355
+ href: E,
7383
7356
  style: {
7384
- paddingLeft: `${i ? "0.5rem" : `${e * 1}rem`}`
7357
+ paddingLeft: A,
7358
+ transition: "all 0.3s"
7359
+ // transitionDelay: '0.1s',
7385
7360
  },
7386
7361
  className: f("menu-item__link"),
7387
- onClick: (T) => {
7388
- u && (T.preventDefault(), i || s(t.id));
7362
+ onClick: (k) => {
7363
+ u && (k.preventDefault(), i || s(t.id));
7389
7364
  },
7390
7365
  children: [
7391
- e !== 0 && /* @__PURE__ */ O.jsx(um, { cls: f, item: t }),
7392
- /* @__PURE__ */ O.jsx("span", { className: f("menu-item__label"), children: t.name }),
7393
- u && /* @__PURE__ */ O.jsx("div", { className: f("menu-item__icon-arrow__wrapper"), children: /* @__PURE__ */ O.jsx(
7366
+ e !== 0 && /* @__PURE__ */ R.jsx(um, { cls: f, item: t }),
7367
+ /* @__PURE__ */ R.jsx("span", { className: f("menu-item__label"), children: t.name }),
7368
+ u && /* @__PURE__ */ R.jsx("div", { className: f("menu-item__icon-arrow__wrapper"), children: /* @__PURE__ */ R.jsx(
7394
7369
  lm,
7395
7370
  {
7396
7371
  className: f(
@@ -7401,10 +7376,37 @@ function Na({ item: t, level: e = 0, ...n }) {
7401
7376
  ]
7402
7377
  }
7403
7378
  ),
7404
- m({ level: e + 1, hovered: h, parentRef: p })
7379
+ T && /* @__PURE__ */ R.jsx(
7380
+ cm,
7381
+ {
7382
+ parentRef: p,
7383
+ onlyChild: !i || i && P < 2,
7384
+ children: /* @__PURE__ */ R.jsx(
7385
+ gp.div,
7386
+ {
7387
+ className: f("menu-item__dropdown", `level-${P}`),
7388
+ initial: {
7389
+ height: i || o(t.id) ? "auto" : 0
7390
+ },
7391
+ animate: {
7392
+ height: i || o(t.id) ? "auto" : 0
7393
+ },
7394
+ transition: { duration: 0.25 },
7395
+ children: (N = t.children) == null ? void 0 : N.map((k) => /* @__PURE__ */ b.createElement(
7396
+ Na,
7397
+ {
7398
+ ...n,
7399
+ key: k.id,
7400
+ item: k,
7401
+ level: P
7402
+ }
7403
+ ))
7404
+ }
7405
+ )
7406
+ }
7407
+ )
7405
7408
  ]
7406
- },
7407
- t.id
7409
+ }
7408
7410
  );
7409
7411
  }
7410
7412
  function um({ item: t, cls: e }) {
@@ -7412,7 +7414,7 @@ function um({ item: t, cls: e }) {
7412
7414
  const [n, r] = b.useState(!t.icon), i = () => {
7413
7415
  r(!0);
7414
7416
  }, o = (s = t.icon) == null ? void 0 : s.endsWith(".svg");
7415
- return /* @__PURE__ */ O.jsx("div", { className: e("menu-item__icon"), children: n ? /* @__PURE__ */ O.jsx(
7417
+ return /* @__PURE__ */ R.jsx("div", { className: e("menu-item__icon"), children: n ? /* @__PURE__ */ R.jsx(
7416
7418
  "div",
7417
7419
  {
7418
7420
  style: {
@@ -7426,17 +7428,17 @@ function um({ item: t, cls: e }) {
7426
7428
  },
7427
7429
  children: (a = t.name.trim().at(0)) == null ? void 0 : a.toUpperCase()
7428
7430
  }
7429
- ) : o ? /* @__PURE__ */ O.jsx(
7430
- _r,
7431
+ ) : o ? /* @__PURE__ */ R.jsx(
7432
+ jr,
7431
7433
  {
7432
7434
  src: t.icon,
7433
7435
  beforeInjection: (l) => {
7434
7436
  l.setAttribute("style", "margin: 0 auto;"), l.querySelectorAll("path").forEach((f) => {
7435
- f.setAttribute("stroke", "currentColor");
7437
+ f.hasAttribute("fill") && f.setAttribute("fill", "currentColor"), f.hasAttribute("stroke") && f.setAttribute("stroke", "currentColor");
7436
7438
  });
7437
7439
  }
7438
7440
  }
7439
- ) : /* @__PURE__ */ O.jsx(
7441
+ ) : /* @__PURE__ */ R.jsx(
7440
7442
  "img",
7441
7443
  {
7442
7444
  src: t.icon || "/",
@@ -7447,7 +7449,7 @@ function um({ item: t, cls: e }) {
7447
7449
  ) });
7448
7450
  }
7449
7451
  function fm() {
7450
- return /* @__PURE__ */ O.jsx(
7452
+ return /* @__PURE__ */ R.jsx(
7451
7453
  "svg",
7452
7454
  {
7453
7455
  xmlns: "http://www.w3.org/2000/svg",
@@ -7457,12 +7459,12 @@ function fm() {
7457
7459
  stroke: "currentColor",
7458
7460
  strokeWidth: "0",
7459
7461
  viewBox: "0 0 24 24",
7460
- children: /* @__PURE__ */ O.jsx("path", { d: "M21 18v2H3v-2h18zM6.596 3.903L8.01 5.318 4.828 8.5 8.01 11.68l-1.414 1.415L2 8.5l4.596-4.597zM21 11v2h-9v-2h9zm0-7v2h-9V4h9z" })
7462
+ children: /* @__PURE__ */ R.jsx("path", { d: "M21 18v2H3v-2h18zM6.596 3.903L8.01 5.318 4.828 8.5 8.01 11.68l-1.414 1.415L2 8.5l4.596-4.597zM21 11v2h-9v-2h9zm0-7v2h-9V4h9z" })
7461
7463
  }
7462
7464
  );
7463
7465
  }
7464
7466
  function hm() {
7465
- return /* @__PURE__ */ O.jsx(
7467
+ return /* @__PURE__ */ R.jsx(
7466
7468
  "svg",
7467
7469
  {
7468
7470
  xmlns: "http://www.w3.org/2000/svg",
@@ -7472,12 +7474,12 @@ function hm() {
7472
7474
  stroke: "currentColor",
7473
7475
  strokeWidth: "0",
7474
7476
  viewBox: "0 0 24 24",
7475
- children: /* @__PURE__ */ O.jsx("path", { d: "M3 4h18v2H3V4zm0 7h18v2H3v-2zm0 7h18v2H3v-2z" })
7477
+ children: /* @__PURE__ */ R.jsx("path", { d: "M3 4h18v2H3V4zm0 7h18v2H3v-2zm0 7h18v2H3v-2z" })
7476
7478
  }
7477
7479
  );
7478
7480
  }
7479
7481
  function dm(t) {
7480
- return /* @__PURE__ */ O.jsx(
7482
+ return /* @__PURE__ */ R.jsx(
7481
7483
  "svg",
7482
7484
  {
7483
7485
  xmlns: "http://www.w3.org/2000/svg",
@@ -7486,7 +7488,7 @@ function dm(t) {
7486
7488
  fill: "none",
7487
7489
  viewBox: "0 0 18 20",
7488
7490
  ...t,
7489
- children: /* @__PURE__ */ O.jsx(
7491
+ children: /* @__PURE__ */ R.jsx(
7490
7492
  "path",
7491
7493
  {
7492
7494
  fill: "#E01B00",
@@ -7498,20 +7500,12 @@ function dm(t) {
7498
7500
  }
7499
7501
  );
7500
7502
  }
7501
- const pm = `.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;color:#85858a}.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}
7503
+ const pm = `.wrap-section{padding:0 8px;transition:all .3s}.wrap-section.collapsed{padding:0 4px}.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}.side-bar.expanded{width:17rem}.side-bar.collapsed{width:64px}.side-bar__wrap-btn-logout,.side-bar__btn-logout{margin:40px 0}.side-bar__logout-btn__text{margin-left:12px;font-size:.875rem;opacity:1}.side-bar__logout-btn__text.collapsed{opacity:0;transition:ease-in-out .2s;transition-delay:.15s}.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;color:#85858a}.side-bar__logout-btn{width:100%;text-align:left;display:flex;flex-direction:row;align-items:center;padding:8px 16px 8px 18.6665px;min-height:48px;border-radius:.375rem;overflow:hidden;transition:all .3s ease-in-out}.side-bar__logout-btn:hover{background-color:#919eab14}.side-bar__icon-logout{flex-shrink:0}.menu-item__wrapper{display:flex;flex-direction:column;position:relative;width:100%}.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.collapsed.level-1{padding-left:calc(.5rem + 7.665px)!important}.menu-item__link.active{background-color:#009d4f1a!important;color:#009d4f!important}.menu-item__link.level-0{height:37px}.menu-item__link.menu-item__link.collapsed.level-0{padding:0;height:0;transition:all .15s}.menu-item__icon{width:1.5rem;height:1.5rem;flex-shrink:0;display:grid;place-items:center}.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;opacity:1;transition:all .15s ease-in-out}.menu-item__label.level-1.collapsed{text-overflow:unset}.menu-item__label.active{color:inherit}.menu-item__label.collapsed{margin-left:8px;font-size:.75rem;line-height:1rem}.menu-item__label.collapsed.level-0,.menu-item__label.collapsed.level-1{font-size:.875rem;opacity:0;transition-delay:.15s}.menu-item__label.level-0{color:#85858a;margin-left:0}.menu-item__icon-arrow__wrapper{display:grid;place-items:center;position:absolute;top:50%;transform:translateY(-50%);right:0}.menu-item__icon-arrow__wrapper.expanded{right:4px}.menu-item__icon-arrow__wrapper.level-0.collapsed{display:none}.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,.menu-item__dropdown>*{margin-top:4px}.menu-item__dropdown:first-of-type{margin-top:0}.menu-item__dropdown>*:first-child{margin-top:0}.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{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}.side-bar__menu.collapsed .simplebar-track.simplebar-vertical{display:none}
7502
7504
  `;
7503
7505
  function mm(t) {
7504
- return /* @__PURE__ */ O.jsx(
7505
- qa,
7506
- {
7507
- styles: [Xc, pm],
7508
- style: { position: "sticky", zIndex: 1200 },
7509
- children: /* @__PURE__ */ O.jsx(gm, { ...t })
7510
- }
7511
- );
7512
- }
7513
- function gm(t) {
7514
- const { baseUrl: e, menuPath: n } = t, r = mn(), [i, o] = b.useState([]), [s, a] = b.useState(!1), [l, c] = b.useState({}), f = Nr(i), [u, h] = b.useState(window.location.href);
7506
+ const { baseUrl: e, menuPath: n } = t, r = mn(), [i, o] = b.useState([]), [s, a] = b.useState(
7507
+ localStorage.getItem("isCollapsed") === "true"
7508
+ ), [l, c] = b.useState({}), f = Nr(i), [u, h] = b.useState(window.location.href);
7515
7509
  b.useEffect(() => {
7516
7510
  h(window.location.href);
7517
7511
  }, [r]);
@@ -7525,60 +7519,44 @@ function gm(t) {
7525
7519
  [E]: !l[E]
7526
7520
  });
7527
7521
  }, m = () => {
7528
- a(!s);
7522
+ a(!s), localStorage.setItem("isCollapsed", JSON.stringify(!s));
7529
7523
  };
7530
7524
  b.useLayoutEffect(() => {
7531
7525
  (async () => {
7532
- var A, P;
7526
+ var P, T;
7533
7527
  try {
7534
- const C = e + (n || "/global-menu-config/api/v1/menu-items/user"), { data: F } = await fc.get(C, {
7528
+ const O = e + (n || "/global-menu-config/api/v1/menu-items/user"), { data: N } = await fc.get(O, {
7535
7529
  withCredentials: !0
7536
7530
  });
7537
- let _ = F.map((B) => ({
7538
- ...B,
7531
+ let k = N.map((z) => ({
7532
+ ...z,
7539
7533
  parentKey: 0
7540
7534
  }));
7541
- _ = Ia(_), t.replacePath && (_ = Ba(_, t.replacePath));
7542
- const k = vm(_);
7543
- c(k), o(_);
7544
- } catch (T) {
7545
- console.log(T), ru(
7546
- ((P = (A = T.response) == null ? void 0 : A.data) == null ? void 0 : P.errorMessage) || "Have error when get menu items"
7535
+ k = Ia(k), t.replacePath && (k = Ba(k, t.replacePath));
7536
+ const _ = ym(k);
7537
+ c(_), o(k);
7538
+ } catch (A) {
7539
+ console.log(A), ru(
7540
+ ((T = (P = A.response) == null ? void 0 : P.data) == null ? void 0 : T.errorMessage) || "Have error when get menu items"
7547
7541
  );
7548
7542
  }
7549
7543
  })();
7550
7544
  }, [e, n, t.replacePath]);
7551
7545
  const [g, x] = b.useState(!1), w = s ? "collapsed" : "expanded", y = (E) => `${E} ${w}`, S = b.useRef(null);
7552
- return b.useLayoutEffect(() => {
7553
- var T;
7554
- const E = localStorage.getItem("scrollPos");
7555
- E && S.current && setTimeout(() => {
7556
- const C = S.current.getScrollElement();
7557
- C.scrollTop = parseInt(E);
7558
- }, 0);
7559
- const A = () => {
7560
- if (S.current) {
7561
- const C = S.current.getScrollElement();
7562
- localStorage.setItem("scrollPos", C.scrollTop.toString());
7563
- }
7564
- }, P = (T = S.current) == null ? void 0 : T.getScrollElement();
7565
- return P == null || P.addEventListener("scroll", A), () => {
7566
- P == null || P.removeEventListener("scroll", A);
7567
- };
7568
- }, [i]), /* @__PURE__ */ O.jsxs("div", { className: y("side-bar"), children: [
7569
- /* @__PURE__ */ O.jsx("div", { className: y("side-bar__wrapper-toggle-btn"), children: /* @__PURE__ */ O.jsx(
7546
+ return /* @__PURE__ */ R.jsxs("div", { className: y("side-bar"), children: [
7547
+ /* @__PURE__ */ R.jsx("div", { className: y("wrap-section side-bar__wrapper-toggle-btn"), children: /* @__PURE__ */ R.jsx(
7570
7548
  "button",
7571
7549
  {
7572
7550
  className: "icon-btn side-bar__toggle-btn",
7573
7551
  onClick: m,
7574
- children: s ? /* @__PURE__ */ O.jsx(hm, {}) : /* @__PURE__ */ O.jsx(fm, {})
7552
+ children: s ? /* @__PURE__ */ R.jsx(hm, {}) : /* @__PURE__ */ R.jsx(fm, {})
7575
7553
  }
7576
7554
  ) }),
7577
- /* @__PURE__ */ O.jsx(
7555
+ /* @__PURE__ */ R.jsx(
7578
7556
  Zs,
7579
7557
  {
7580
7558
  ref: S,
7581
- className: y("side-bar__menu"),
7559
+ className: y("wrap-section side-bar__menu"),
7582
7560
  style: {
7583
7561
  marginTop: 24,
7584
7562
  flex: 1,
@@ -7587,14 +7565,14 @@ function gm(t) {
7587
7565
  overflowX: "hidden"
7588
7566
  },
7589
7567
  children: i.map((E) => {
7590
- const A = (P) => d.some((T) => T.id === P);
7591
- return /* @__PURE__ */ O.jsx(
7568
+ const P = (T) => d.some((A) => A.id === T);
7569
+ return /* @__PURE__ */ R.jsx(
7592
7570
  Na,
7593
7571
  {
7594
7572
  item: E,
7595
- isActive: A,
7573
+ isActive: P,
7596
7574
  isCollapsed: s,
7597
- expanded: (P) => l[P],
7575
+ expanded: (T) => l[T],
7598
7576
  toggleExpand: p,
7599
7577
  replacePath: t.replacePath,
7600
7578
  ssr: t.ssr
@@ -7604,19 +7582,19 @@ function gm(t) {
7604
7582
  })
7605
7583
  }
7606
7584
  ),
7607
- /* @__PURE__ */ O.jsxs("div", { className: y("side-bar__wrap-btn-logout"), children: [
7608
- /* @__PURE__ */ O.jsxs(
7585
+ /* @__PURE__ */ R.jsxs("div", { className: y("wrap-section side-bar__wrap-btn-logout"), children: [
7586
+ /* @__PURE__ */ R.jsxs(
7609
7587
  "button",
7610
7588
  {
7611
7589
  className: y("side-bar__logout-btn"),
7612
7590
  onClick: () => x(!0),
7613
7591
  children: [
7614
- /* @__PURE__ */ O.jsx(dm, {}),
7615
- /* @__PURE__ */ O.jsx("span", { className: y("side-bar__logout-btn__text"), children: "Logout" })
7592
+ /* @__PURE__ */ R.jsx(dm, { className: y("side-bar__icon-logout") }),
7593
+ /* @__PURE__ */ R.jsx("span", { className: y("side-bar__logout-btn__text"), children: "Logout" })
7616
7594
  ]
7617
7595
  }
7618
7596
  ),
7619
- /* @__PURE__ */ O.jsx(
7597
+ /* @__PURE__ */ R.jsx(
7620
7598
  Ga,
7621
7599
  {
7622
7600
  isOpen: g,
@@ -7633,7 +7611,7 @@ function Nr(t) {
7633
7611
  e.push(n), n.children && (e = e.concat(Nr(n.children)));
7634
7612
  return e;
7635
7613
  }
7636
- function ym(t, e) {
7614
+ function gm(t, e) {
7637
7615
  const n = new URL(t).searchParams, r = new URL(e).searchParams;
7638
7616
  return Array.from(r).filter(
7639
7617
  ([i, o]) => o === n.get(i)
@@ -7643,7 +7621,7 @@ function Fa(t, e) {
7643
7621
  const n = new URL(e), r = t.filter((s) => s.path && s.path.includes("http")).map((s) => ({
7644
7622
  item: s,
7645
7623
  itemUrl: new URL(s.path),
7646
- matchingParamsCount: ym(e, s.path)
7624
+ matchingParamsCount: gm(e, s.path)
7647
7625
  })).sort((s, a) => {
7648
7626
  const l = new URL(s.itemUrl).searchParams, c = new URL(a.itemUrl).searchParams;
7649
7627
  return Array.from(l).length - Array.from(c).length;
@@ -7664,15 +7642,25 @@ function Ia(t) {
7664
7642
  path: window.location.origin + n.path
7665
7643
  } : (n.children && (n.children = Ia(n.children)), n));
7666
7644
  }
7667
- function vm(t) {
7645
+ function ym(t) {
7668
7646
  const e = Nr(t), n = Fa(e, window.location.href), r = {};
7669
7647
  return n.forEach((i) => r[i.id] = !0), e.forEach((i) => {
7670
7648
  var o;
7671
7649
  (o = i.children) != null && o.length && (r[i.id] = !0);
7672
7650
  }), r;
7673
7651
  }
7652
+ function vm(t) {
7653
+ return /* @__PURE__ */ R.jsx(
7654
+ qa,
7655
+ {
7656
+ styles: [Xc, pm],
7657
+ style: { position: "sticky", zIndex: 1200 },
7658
+ children: /* @__PURE__ */ R.jsx(mm, { ...t })
7659
+ }
7660
+ );
7661
+ }
7674
7662
  function bm(t) {
7675
- return /* @__PURE__ */ O.jsx(Ip, { children: /* @__PURE__ */ O.jsx(mm, { ...t, ssr: !0 }) });
7663
+ return /* @__PURE__ */ R.jsx(Ip, { children: /* @__PURE__ */ R.jsx(vm, { ...t, ssr: !0 }) });
7676
7664
  }
7677
7665
  {
7678
7666
  const t = $a(bm, {
@@ -7688,7 +7676,7 @@ function bm(t) {
7688
7676
  customElements.define("global-menu", t);
7689
7677
  }
7690
7678
  export {
7691
- mm as G,
7679
+ vm as G,
7692
7680
  ve as _,
7693
7681
  Da as a,
7694
7682
  Em as b,