@scbt-ecom/ui 0.42.3 → 0.42.5

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.
@@ -629,7 +629,7 @@ React keys must be passed directly to JSX without using spread:
629
629
  }
630
630
  process.env.NODE_ENV === "production" ? Ar.exports = Jc() : Ar.exports = Qc();
631
631
  var A = Ar.exports;
632
- const Dy = ({ children: e, className: t, ...n }) => /* @__PURE__ */ A.jsx("section", { className: W("pb-16 desktop:pb-20", t), ...n, children: e }), Oy = ({ children: e, offset: t = !0, className: n, ...r }) => /* @__PURE__ */ A.jsx("div", { className: W("m-auto w-full max-w-[636px] desktop:max-w-[1140px]", { "mobile:px-4": t }, n), ...r, children: e }), io = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, oo = Hc, Rt = (e, t) => (n) => {
632
+ const Oy = ({ children: e, className: t, ...n }) => /* @__PURE__ */ A.jsx("section", { className: W("pb-16 desktop:pb-20", t), ...n, children: e }), My = ({ children: e, offset: t = !0, className: n, ...r }) => /* @__PURE__ */ A.jsx("div", { className: W("m-auto w-full max-w-[636px] desktop:max-w-[1140px]", { "mobile:px-4": t }, n), ...r, children: e }), io = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, oo = Hc, Rt = (e, t) => (n) => {
633
633
  var r;
634
634
  if ((t == null ? void 0 : t.variants) == null) return oo(e, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
635
635
  const { variants: i, defaultVariants: o } = t, s = Object.keys(i).map((c) => {
@@ -757,7 +757,7 @@ const Dy = ({ children: e, className: t, ...n }) => /* @__PURE__ */ A.jsx("secti
757
757
  isFull: !1
758
758
  }
759
759
  }
760
- ), My = Gr(
760
+ ), Vy = Gr(
761
761
  ({
762
762
  intent: e,
763
763
  size: t,
@@ -786,17 +786,17 @@ const Dy = ({ children: e, className: t, ...n }) => /* @__PURE__ */ A.jsx("secti
786
786
  ] })
787
787
  }
788
788
  )
789
- ), Vy = ({ phone: e, text: t, classes: n, ...r }) => /* @__PURE__ */ A.jsxs("div", { className: W("flex w-max flex-col", n == null ? void 0 : n.wrapper), ...r, children: [
789
+ ), ou = (e) => `${e[0]} ${e.slice(1, 4)} ${e.slice(4, 7)}-${e.slice(7, 9)}-${e.slice(9)}`, ky = ({ phone: e, text: t, classes: n, ...r }) => /* @__PURE__ */ A.jsxs("div", { className: W("flex w-max flex-col", n == null ? void 0 : n.wrapper), ...r, children: [
790
790
  /* @__PURE__ */ A.jsx(
791
791
  "a",
792
792
  {
793
793
  href: `tel:${e}`,
794
794
  className: W("mob-body-medium-l ml-auto text-color-dark desktop:desk-body-medium-l", n == null ? void 0 : n.link),
795
- children: e
795
+ children: ou(e)
796
796
  }
797
797
  ),
798
798
  /* @__PURE__ */ A.jsx("p", { className: W("desk-body-regular-s text-color-tetriary", n == null ? void 0 : n.text), children: t })
799
- ] }), ky = ({ children: e, className: t, ...n }) => /* @__PURE__ */ A.jsx(
799
+ ] }), Ly = ({ children: e, className: t, ...n }) => /* @__PURE__ */ A.jsx(
800
800
  "span",
801
801
  {
802
802
  className: W(
@@ -816,7 +816,7 @@ const In = Ct(null), Qr = Ct({
816
816
  isStatic: !1,
817
817
  reducedMotion: "never"
818
818
  });
819
- class ou extends x.Component {
819
+ class su extends x.Component {
820
820
  getSnapshotBeforeUpdate(t) {
821
821
  const n = this.props.childRef.current;
822
822
  if (n && t.isPresent && !this.props.isPresent) {
@@ -834,7 +834,7 @@ class ou extends x.Component {
834
834
  return this.props.children;
835
835
  }
836
836
  }
837
- function su({ children: e, isPresent: t }) {
837
+ function au({ children: e, isPresent: t }) {
838
838
  const n = Xr(), r = ke(null), i = ke({
839
839
  width: 0,
840
840
  height: 0,
@@ -858,10 +858,10 @@ function su({ children: e, isPresent: t }) {
858
858
  `), () => {
859
859
  document.head.removeChild(u);
860
860
  };
861
- }, [t]), A.jsx(ou, { isPresent: t, childRef: r, sizeRef: i, children: x.cloneElement(e, { ref: r }) });
861
+ }, [t]), A.jsx(su, { isPresent: t, childRef: r, sizeRef: i, children: x.cloneElement(e, { ref: r }) });
862
862
  }
863
- const au = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i, presenceAffectsLayout: o, mode: s }) => {
864
- const a = Jr(lu), l = Xr(), c = qr((f) => {
863
+ const lu = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i, presenceAffectsLayout: o, mode: s }) => {
864
+ const a = Jr(cu), l = Xr(), c = qr((f) => {
865
865
  a.set(f, !0);
866
866
  for (const d of a.values())
867
867
  if (!d)
@@ -887,9 +887,9 @@ const au = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom:
887
887
  a.forEach((f, d) => a.set(d, !1));
888
888
  }, [n]), x.useEffect(() => {
889
889
  !n && !a.size && r && r();
890
- }, [n]), s === "popLayout" && (e = A.jsx(su, { isPresent: n, children: e })), A.jsx(In.Provider, { value: u, children: e });
890
+ }, [n]), s === "popLayout" && (e = A.jsx(au, { isPresent: n, children: e })), A.jsx(In.Provider, { value: u, children: e });
891
891
  };
892
- function lu() {
892
+ function cu() {
893
893
  return /* @__PURE__ */ new Map();
894
894
  }
895
895
  function Zs(e = !0) {
@@ -910,7 +910,7 @@ function so(e) {
910
910
  Gc(n) && t.push(n);
911
911
  }), t;
912
912
  }
913
- const ei = typeof window < "u", Js = ei ? Gs : _n, cu = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenceAffectsLayout: i = !0, mode: o = "sync", propagate: s = !1 }) => {
913
+ const ei = typeof window < "u", Js = ei ? Gs : _n, uu = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenceAffectsLayout: i = !0, mode: o = "sync", propagate: s = !1 }) => {
914
914
  const [a, l] = Zs(s), c = nt(() => so(e), [e]), u = s && !a ? [] : c.map(fn), f = ke(!0), d = ke(c), h = Jr(() => /* @__PURE__ */ new Map()), [g, m] = Cn(c), [y, v] = Cn(c);
915
915
  Js(() => {
916
916
  f.current = !1, d.current = c;
@@ -942,7 +942,7 @@ const ei = typeof window < "u", Js = ei ? Gs : _n, cu = ({ children: e, custom:
942
942
  k || (R = !1);
943
943
  }), R && (P == null || P(), v(d.current), s && (l == null || l()), r && r());
944
944
  };
945
- return A.jsx(au, { isPresent: E, initial: !f.current || n ? void 0 : !1, custom: E ? void 0 : t, presenceAffectsLayout: i, mode: o, onExitComplete: E ? void 0 : C, children: S }, b);
945
+ return A.jsx(lu, { isPresent: E, initial: !f.current || n ? void 0 : !1, custom: E ? void 0 : t, presenceAffectsLayout: i, mode: o, onExitComplete: E ? void 0 : C, children: S }, b);
946
946
  }) });
947
947
  }, ae = /* @__NO_SIDE_EFFECTS__ */ (e) => e;
948
948
  let Dt = ae, je = ae;
@@ -960,10 +960,10 @@ function ti(e) {
960
960
  const bt = /* @__NO_SIDE_EFFECTS__ */ (e, t, n) => {
961
961
  const r = t - e;
962
962
  return r === 0 ? 1 : (n - e) / r;
963
- }, ve = /* @__NO_SIDE_EFFECTS__ */ (e) => e * 1e3, Ee = /* @__NO_SIDE_EFFECTS__ */ (e) => e / 1e3, uu = {
963
+ }, ve = /* @__NO_SIDE_EFFECTS__ */ (e) => e * 1e3, Ee = /* @__NO_SIDE_EFFECTS__ */ (e) => e / 1e3, fu = {
964
964
  useManualTiming: !1
965
965
  };
966
- function fu(e) {
966
+ function du(e) {
967
967
  let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), r = !1, i = !1;
968
968
  const o = /* @__PURE__ */ new WeakSet();
969
969
  let s = {
@@ -1014,16 +1014,16 @@ const dn = [
1014
1014
  // Write
1015
1015
  "postRender"
1016
1016
  // Compute
1017
- ], du = 40;
1017
+ ], hu = 40;
1018
1018
  function Qs(e, t) {
1019
1019
  let n = !1, r = !0;
1020
1020
  const i = {
1021
1021
  delta: 0,
1022
1022
  timestamp: 0,
1023
1023
  isProcessing: !1
1024
- }, o = () => n = !0, s = dn.reduce((v, w) => (v[w] = fu(o), v), {}), { read: a, resolveKeyframes: l, update: c, preRender: u, render: f, postRender: d } = s, h = () => {
1024
+ }, o = () => n = !0, s = dn.reduce((v, w) => (v[w] = du(o), v), {}), { read: a, resolveKeyframes: l, update: c, preRender: u, render: f, postRender: d } = s, h = () => {
1025
1025
  const v = performance.now();
1026
- n = !1, i.delta = r ? 1e3 / 60 : Math.max(Math.min(v - i.timestamp, du), 1), i.timestamp = v, i.isProcessing = !0, a.process(i), l.process(i), c.process(i), u.process(i), f.process(i), d.process(i), i.isProcessing = !1, n && t && (r = !1, e(h));
1026
+ n = !1, i.delta = r ? 1e3 / 60 : Math.max(Math.min(v - i.timestamp, hu), 1), i.timestamp = v, i.isProcessing = !0, a.process(i), l.process(i), c.process(i), u.process(i), f.process(i), d.process(i), i.isProcessing = !1, n && t && (r = !1, e(h));
1027
1027
  }, g = () => {
1028
1028
  n = !0, r = !0, i.isProcessing || e(h);
1029
1029
  };
@@ -1059,14 +1059,14 @@ for (const e in ao)
1059
1059
  Pt[e] = {
1060
1060
  isEnabled: (t) => ao[e].some((n) => !!t[n])
1061
1061
  };
1062
- function hu(e) {
1062
+ function pu(e) {
1063
1063
  for (const t in e)
1064
1064
  Pt[t] = {
1065
1065
  ...Pt[t],
1066
1066
  ...e[t]
1067
1067
  };
1068
1068
  }
1069
- const pu = /* @__PURE__ */ new Set([
1069
+ const mu = /* @__PURE__ */ new Set([
1070
1070
  "animate",
1071
1071
  "exit",
1072
1072
  "variants",
@@ -1099,17 +1099,17 @@ const pu = /* @__PURE__ */ new Set([
1099
1099
  "viewport"
1100
1100
  ]);
1101
1101
  function Rn(e) {
1102
- return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") || pu.has(e);
1102
+ return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") || mu.has(e);
1103
1103
  }
1104
1104
  let ta = (e) => !Rn(e);
1105
- function mu(e) {
1105
+ function gu(e) {
1106
1106
  e && (ta = (t) => t.startsWith("on") ? !Rn(t) : e(t));
1107
1107
  }
1108
1108
  try {
1109
- mu(require("@emotion/is-prop-valid").default);
1109
+ gu(require("@emotion/is-prop-valid").default);
1110
1110
  } catch {
1111
1111
  }
1112
- function gu(e, t, n) {
1112
+ function yu(e, t, n) {
1113
1113
  const r = {};
1114
1114
  for (const i in e)
1115
1115
  i === "values" && typeof e.values == "object" || (ta(i) || n === !0 && Rn(i) || !t && !Rn(i) || // If trying to use native HTML drag events, forward drag listeners
@@ -1120,7 +1120,7 @@ const lo = /* @__PURE__ */ new Set();
1120
1120
  function Wn(e, t, n) {
1121
1121
  e || lo.has(t) || (console.warn(t), lo.add(t));
1122
1122
  }
1123
- function yu(e) {
1123
+ function vu(e) {
1124
1124
  if (typeof Proxy > "u")
1125
1125
  return e;
1126
1126
  const t = /* @__PURE__ */ new Map(), n = (...r) => (process.env.NODE_ENV !== "production" && Wn(!1, "motion() is deprecated. Use motion.create() instead."), e(...r));
@@ -1155,7 +1155,7 @@ function zn(e) {
1155
1155
  function na(e) {
1156
1156
  return !!(zn(e) || e.variants);
1157
1157
  }
1158
- function vu(e, t) {
1158
+ function xu(e, t) {
1159
1159
  if (zn(e)) {
1160
1160
  const { initial: n, animate: r } = e;
1161
1161
  return {
@@ -1165,18 +1165,18 @@ function vu(e, t) {
1165
1165
  }
1166
1166
  return e.inherit !== !1 ? t : {};
1167
1167
  }
1168
- function xu(e) {
1169
- const { initial: t, animate: n } = vu(e, re($n));
1168
+ function wu(e) {
1169
+ const { initial: t, animate: n } = xu(e, re($n));
1170
1170
  return nt(() => ({ initial: t, animate: n }), [co(t), co(n)]);
1171
1171
  }
1172
1172
  function co(e) {
1173
1173
  return Array.isArray(e) ? e.join(" ") : e;
1174
1174
  }
1175
- const wu = Symbol.for("motionComponentSymbol");
1175
+ const bu = Symbol.for("motionComponentSymbol");
1176
1176
  function pt(e) {
1177
1177
  return e && typeof e == "object" && Object.prototype.hasOwnProperty.call(e, "current");
1178
1178
  }
1179
- function bu(e, t, n) {
1179
+ function Pu(e, t, n) {
1180
1180
  return qr(
1181
1181
  (r) => {
1182
1182
  r && e.onMount && e.onMount(r), t && (r ? t.mount(r) : t.unmount()), n && (typeof n == "function" ? n(r) : pt(n) && (n.current = r));
@@ -1189,8 +1189,8 @@ function bu(e, t, n) {
1189
1189
  [t]
1190
1190
  );
1191
1191
  }
1192
- const ii = (e) => e.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), Pu = "framerAppearId", ra = "data-" + ii(Pu), { schedule: oi } = Qs(queueMicrotask, !1), ia = Ct({});
1193
- function Su(e, t, n, r, i) {
1192
+ const ii = (e) => e.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), Su = "framerAppearId", ra = "data-" + ii(Su), { schedule: oi } = Qs(queueMicrotask, !1), ia = Ct({});
1193
+ function Tu(e, t, n, r, i) {
1194
1194
  var o, s;
1195
1195
  const { visualElement: a } = re($n), l = re(ea), c = re(In), u = re(Qr).reducedMotion, f = ke(null);
1196
1196
  r = r || l.renderer, !f.current && r && (f.current = r(e, {
@@ -1202,7 +1202,7 @@ function Su(e, t, n, r, i) {
1202
1202
  reducedMotionConfig: u
1203
1203
  }));
1204
1204
  const d = f.current, h = re(ia);
1205
- d && !d.projection && i && (d.type === "html" || d.type === "svg") && Tu(f.current, n, i, h);
1205
+ d && !d.projection && i && (d.type === "html" || d.type === "svg") && Au(f.current, n, i, h);
1206
1206
  const g = ke(!1);
1207
1207
  Ys(() => {
1208
1208
  d && g.current && d.update(n, c);
@@ -1217,7 +1217,7 @@ function Su(e, t, n, r, i) {
1217
1217
  }), y.current = !1));
1218
1218
  }), d;
1219
1219
  }
1220
- function Tu(e, t, n, r) {
1220
+ function Au(e, t, n, r) {
1221
1221
  const { layoutId: i, layout: o, drag: s, dragConstraints: a, layoutScroll: l, layoutRoot: c } = t;
1222
1222
  e.projection = new n(e.latestValues, t["data-framer-portal-id"] ? void 0 : oa(e.parent)), e.projection.setOptions({
1223
1223
  layoutId: i,
@@ -1241,39 +1241,39 @@ function oa(e) {
1241
1241
  if (e)
1242
1242
  return e.options.allowProjection !== !1 ? e.projection : oa(e.parent);
1243
1243
  }
1244
- function Au({ preloadedFeatures: e, createVisualElement: t, useRender: n, useVisualState: r, Component: i }) {
1244
+ function Eu({ preloadedFeatures: e, createVisualElement: t, useRender: n, useVisualState: r, Component: i }) {
1245
1245
  var o, s;
1246
- e && hu(e);
1246
+ e && pu(e);
1247
1247
  function a(c, u) {
1248
1248
  let f;
1249
1249
  const d = {
1250
1250
  ...re(Qr),
1251
1251
  ...c,
1252
- layoutId: Eu(c)
1253
- }, { isStatic: h } = d, g = xu(c), m = r(c, h);
1252
+ layoutId: Cu(c)
1253
+ }, { isStatic: h } = d, g = wu(c), m = r(c, h);
1254
1254
  if (!h && ei) {
1255
- Cu(d, e);
1256
- const y = Ru(d);
1257
- f = y.MeasureLayout, g.visualElement = Su(i, m, d, t, y.ProjectionNode);
1255
+ Ru(d, e);
1256
+ const y = Du(d);
1257
+ f = y.MeasureLayout, g.visualElement = Tu(i, m, d, t, y.ProjectionNode);
1258
1258
  }
1259
- return A.jsxs($n.Provider, { value: g, children: [f && g.visualElement ? A.jsx(f, { visualElement: g.visualElement, ...d }) : null, n(i, c, bu(m, g.visualElement, u), m, h, g.visualElement)] });
1259
+ return A.jsxs($n.Provider, { value: g, children: [f && g.visualElement ? A.jsx(f, { visualElement: g.visualElement, ...d }) : null, n(i, c, Pu(m, g.visualElement, u), m, h, g.visualElement)] });
1260
1260
  }
1261
1261
  a.displayName = `motion.${typeof i == "string" ? i : `create(${(s = (o = i.displayName) !== null && o !== void 0 ? o : i.name) !== null && s !== void 0 ? s : ""})`}`;
1262
1262
  const l = Gr(a);
1263
- return l[wu] = i, l;
1263
+ return l[bu] = i, l;
1264
1264
  }
1265
- function Eu({ layoutId: e }) {
1265
+ function Cu({ layoutId: e }) {
1266
1266
  const t = re(Zr).id;
1267
1267
  return t && e !== void 0 ? t + "-" + e : e;
1268
1268
  }
1269
- function Cu(e, t) {
1269
+ function Ru(e, t) {
1270
1270
  const n = re(ea).strict;
1271
1271
  if (process.env.NODE_ENV !== "production" && t && n) {
1272
1272
  const r = "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";
1273
1273
  e.ignoreStrict ? Dt(!1, r) : je(!1, r);
1274
1274
  }
1275
1275
  }
1276
- function Ru(e) {
1276
+ function Du(e) {
1277
1277
  const { drag: t, layout: n } = Pt;
1278
1278
  if (!t && !n)
1279
1279
  return {};
@@ -1283,7 +1283,7 @@ function Ru(e) {
1283
1283
  ProjectionNode: r.ProjectionNode
1284
1284
  };
1285
1285
  }
1286
- const Du = [
1286
+ const Ou = [
1287
1287
  "animate",
1288
1288
  "circle",
1289
1289
  "defs",
@@ -1323,7 +1323,7 @@ function si(e) {
1323
1323
  /**
1324
1324
  * If it's in our list of lowercase SVG tags, it's an SVG component
1325
1325
  */
1326
- !!(Du.indexOf(e) > -1 || /**
1326
+ !!(Ou.indexOf(e) > -1 || /**
1327
1327
  * If it contains a capital letter, it's an SVG component
1328
1328
  */
1329
1329
  /[A-Z]/u.test(e))
@@ -1347,23 +1347,23 @@ function ai(e, t, n, r) {
1347
1347
  }
1348
1348
  return t;
1349
1349
  }
1350
- const Er = (e) => Array.isArray(e), Ou = (e) => !!(e && typeof e == "object" && e.mix && e.toValue), Mu = (e) => Er(e) ? e[e.length - 1] || 0 : e, ie = (e) => !!(e && e.getVelocity);
1350
+ const Er = (e) => Array.isArray(e), Mu = (e) => !!(e && typeof e == "object" && e.mix && e.toValue), Vu = (e) => Er(e) ? e[e.length - 1] || 0 : e, ie = (e) => !!(e && e.getVelocity);
1351
1351
  function bn(e) {
1352
1352
  const t = ie(e) ? e.get() : e;
1353
- return Ou(t) ? t.toValue() : t;
1353
+ return Mu(t) ? t.toValue() : t;
1354
1354
  }
1355
- function Vu({ scrapeMotionValuesFromProps: e, createRenderState: t, onUpdate: n }, r, i, o) {
1355
+ function ku({ scrapeMotionValuesFromProps: e, createRenderState: t, onUpdate: n }, r, i, o) {
1356
1356
  const s = {
1357
- latestValues: ku(r, i, o, e),
1357
+ latestValues: Lu(r, i, o, e),
1358
1358
  renderState: t()
1359
1359
  };
1360
1360
  return n && (s.onMount = (a) => n({ props: r, current: a, ...s }), s.onUpdate = (a) => n(a)), s;
1361
1361
  }
1362
1362
  const sa = (e) => (t, n) => {
1363
- const r = re($n), i = re(In), o = () => Vu(e, t, r, i);
1363
+ const r = re($n), i = re(In), o = () => ku(e, t, r, i);
1364
1364
  return n ? o() : Jr(o);
1365
1365
  };
1366
- function ku(e, t, n, r) {
1366
+ function Lu(e, t, n, r) {
1367
1367
  const i = {}, o = r(e, {});
1368
1368
  for (const d in o)
1369
1369
  i[d] = bn(o[d]);
@@ -1412,7 +1412,7 @@ const Ot = [
1412
1412
  "skew",
1413
1413
  "skewX",
1414
1414
  "skewY"
1415
- ], ot = new Set(Ot), aa = (e) => (t) => typeof t == "string" && t.startsWith(e), la = /* @__PURE__ */ aa("--"), Lu = /* @__PURE__ */ aa("var(--"), li = (e) => Lu(e) ? ju.test(e.split("/*")[0].trim()) : !1, ju = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu, ca = (e, t) => t && typeof e == "number" ? t.transform(e) : e, Ce = (e, t, n) => n > t ? t : n < e ? e : n, Mt = {
1415
+ ], ot = new Set(Ot), aa = (e) => (t) => typeof t == "string" && t.startsWith(e), la = /* @__PURE__ */ aa("--"), ju = /* @__PURE__ */ aa("var(--"), li = (e) => ju(e) ? Fu.test(e.split("/*")[0].trim()) : !1, Fu = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu, ca = (e, t) => t && typeof e == "number" ? t.transform(e) : e, Ce = (e, t, n) => n > t ? t : n < e ? e : n, Mt = {
1416
1416
  test: (e) => typeof e == "number",
1417
1417
  parse: parseFloat,
1418
1418
  transform: (e) => e
@@ -1426,11 +1426,11 @@ const Ot = [
1426
1426
  test: (t) => typeof t == "string" && t.endsWith(e) && t.split(" ").length === 1,
1427
1427
  parse: parseFloat,
1428
1428
  transform: (t) => `${t}${e}`
1429
- }), Me = /* @__PURE__ */ Jt("deg"), xe = /* @__PURE__ */ Jt("%"), O = /* @__PURE__ */ Jt("px"), Fu = /* @__PURE__ */ Jt("vh"), Nu = /* @__PURE__ */ Jt("vw"), fo = {
1429
+ }), Me = /* @__PURE__ */ Jt("deg"), xe = /* @__PURE__ */ Jt("%"), O = /* @__PURE__ */ Jt("px"), Nu = /* @__PURE__ */ Jt("vh"), Bu = /* @__PURE__ */ Jt("vw"), fo = {
1430
1430
  ...xe,
1431
1431
  parse: (e) => xe.parse(e) / 100,
1432
1432
  transform: (e) => xe.transform(e * 100)
1433
- }, Bu = {
1433
+ }, _u = {
1434
1434
  // Border props
1435
1435
  borderWidth: O,
1436
1436
  borderTopWidth: O,
@@ -1466,7 +1466,7 @@ const Ot = [
1466
1466
  // Misc
1467
1467
  backgroundPositionX: O,
1468
1468
  backgroundPositionY: O
1469
- }, _u = {
1469
+ }, Iu = {
1470
1470
  rotate: Me,
1471
1471
  rotateX: Me,
1472
1472
  rotateY: Me,
@@ -1495,23 +1495,23 @@ const Ot = [
1495
1495
  ...Mt,
1496
1496
  transform: Math.round
1497
1497
  }, ci = {
1498
- ...Bu,
1499
1498
  ..._u,
1499
+ ...Iu,
1500
1500
  zIndex: ho,
1501
1501
  size: O,
1502
1502
  // SVG
1503
1503
  fillOpacity: Yt,
1504
1504
  strokeOpacity: Yt,
1505
1505
  numOctaves: ho
1506
- }, Iu = {
1506
+ }, Wu = {
1507
1507
  x: "translateX",
1508
1508
  y: "translateY",
1509
1509
  z: "translateZ",
1510
1510
  transformPerspective: "perspective"
1511
- }, Wu = Ot.length;
1512
- function $u(e, t, n) {
1511
+ }, $u = Ot.length;
1512
+ function Uu(e, t, n) {
1513
1513
  let r = "", i = !0;
1514
- for (let o = 0; o < Wu; o++) {
1514
+ for (let o = 0; o < $u; o++) {
1515
1515
  const s = Ot[o], a = e[s];
1516
1516
  if (a === void 0)
1517
1517
  continue;
@@ -1520,7 +1520,7 @@ function $u(e, t, n) {
1520
1520
  const c = ca(a, ci[s]);
1521
1521
  if (!l) {
1522
1522
  i = !1;
1523
- const u = Iu[s] || s;
1523
+ const u = Wu[s] || s;
1524
1524
  r += `${u}(${c}) `;
1525
1525
  }
1526
1526
  n && (t[s] = c);
@@ -1544,21 +1544,21 @@ function ui(e, t, n) {
1544
1544
  l.startsWith("origin") ? (a = !0, o[l] = u) : r[l] = u;
1545
1545
  }
1546
1546
  }
1547
- if (t.transform || (s || n ? r.transform = $u(t, e.transform, n) : r.transform && (r.transform = "none")), a) {
1547
+ if (t.transform || (s || n ? r.transform = Uu(t, e.transform, n) : r.transform && (r.transform = "none")), a) {
1548
1548
  const { originX: l = "50%", originY: c = "50%", originZ: u = 0 } = o;
1549
1549
  r.transformOrigin = `${l} ${c} ${u}`;
1550
1550
  }
1551
1551
  }
1552
- const Uu = {
1552
+ const zu = {
1553
1553
  offset: "stroke-dashoffset",
1554
1554
  array: "stroke-dasharray"
1555
- }, zu = {
1555
+ }, Ku = {
1556
1556
  offset: "strokeDashoffset",
1557
1557
  array: "strokeDasharray"
1558
1558
  };
1559
- function Ku(e, t, n = 1, r = 0, i = !0) {
1559
+ function Hu(e, t, n = 1, r = 0, i = !0) {
1560
1560
  e.pathLength = 1;
1561
- const o = i ? Uu : zu;
1561
+ const o = i ? zu : Ku;
1562
1562
  e[o.offset] = O.transform(-r);
1563
1563
  const s = O.transform(t), a = O.transform(n);
1564
1564
  e[o.array] = `${s} ${a}`;
@@ -1566,7 +1566,7 @@ function Ku(e, t, n = 1, r = 0, i = !0) {
1566
1566
  function po(e, t, n) {
1567
1567
  return typeof e == "string" ? e : O.transform(t + n * e);
1568
1568
  }
1569
- function Hu(e, t, n) {
1569
+ function Yu(e, t, n) {
1570
1570
  const r = po(t, e.x, e.width), i = po(n, e.y, e.height);
1571
1571
  return `${r} ${i}`;
1572
1572
  }
@@ -1588,7 +1588,7 @@ function fi(e, {
1588
1588
  }
1589
1589
  e.attrs = e.style, e.style = {};
1590
1590
  const { attrs: d, style: h, dimensions: g } = e;
1591
- d.transform && (g && (h.transform = d.transform), delete d.transform), g && (i !== void 0 || o !== void 0 || h.transform) && (h.transformOrigin = Hu(g, i !== void 0 ? i : 0.5, o !== void 0 ? o : 0.5)), t !== void 0 && (d.x = t), n !== void 0 && (d.y = n), r !== void 0 && (d.scale = r), s !== void 0 && Ku(d, s, a, l, !1);
1591
+ d.transform && (g && (h.transform = d.transform), delete d.transform), g && (i !== void 0 || o !== void 0 || h.transform) && (h.transformOrigin = Yu(g, i !== void 0 ? i : 0.5, o !== void 0 ? o : 0.5)), t !== void 0 && (d.x = t), n !== void 0 && (d.y = n), r !== void 0 && (d.scale = r), s !== void 0 && Hu(d, s, a, l, !1);
1592
1592
  }
1593
1593
  const di = () => ({
1594
1594
  style: {},
@@ -1635,7 +1635,7 @@ function ha(e, t, n, r) {
1635
1635
  e.setAttribute(da.has(i) ? i : ii(i), t.attrs[i]);
1636
1636
  }
1637
1637
  const Dn = {};
1638
- function Yu(e) {
1638
+ function Gu(e) {
1639
1639
  Object.assign(Dn, e);
1640
1640
  }
1641
1641
  function pa(e, { layout: t, layoutId: n }) {
@@ -1657,7 +1657,7 @@ function ma(e, t, n) {
1657
1657
  }
1658
1658
  return r;
1659
1659
  }
1660
- function Gu(e, t) {
1660
+ function Xu(e, t) {
1661
1661
  try {
1662
1662
  t.dimensions = typeof e.getBBox == "function" ? e.getBBox() : e.getBoundingClientRect();
1663
1663
  } catch {
@@ -1669,7 +1669,7 @@ function Gu(e, t) {
1669
1669
  };
1670
1670
  }
1671
1671
  }
1672
- const mo = ["x", "y", "width", "height", "cx", "cy", "r"], Xu = {
1672
+ const mo = ["x", "y", "width", "height", "cx", "cy", "r"], qu = {
1673
1673
  useVisualState: sa({
1674
1674
  scrapeMotionValuesFromProps: ma,
1675
1675
  createRenderState: ua,
@@ -1693,13 +1693,13 @@ const mo = ["x", "y", "width", "height", "cx", "cy", "r"], Xu = {
1693
1693
  e[l] !== t[l] && (s = !0);
1694
1694
  }
1695
1695
  s && U.read(() => {
1696
- Gu(n, r), U.render(() => {
1696
+ Xu(n, r), U.render(() => {
1697
1697
  fi(r, i, hi(n.tagName), e.transformTemplate), ha(n, r);
1698
1698
  });
1699
1699
  });
1700
1700
  }
1701
1701
  })
1702
- }, qu = {
1702
+ }, Zu = {
1703
1703
  useVisualState: sa({
1704
1704
  scrapeMotionValuesFromProps: pi,
1705
1705
  createRenderState: di
@@ -1709,21 +1709,21 @@ function ga(e, t, n) {
1709
1709
  for (const r in t)
1710
1710
  !ie(t[r]) && !pa(r, n) && (e[r] = t[r]);
1711
1711
  }
1712
- function Zu({ transformTemplate: e }, t) {
1712
+ function Ju({ transformTemplate: e }, t) {
1713
1713
  return nt(() => {
1714
1714
  const n = di();
1715
1715
  return ui(n, t, e), Object.assign({}, n.vars, n.style);
1716
1716
  }, [t]);
1717
1717
  }
1718
- function Ju(e, t) {
1718
+ function Qu(e, t) {
1719
1719
  const n = e.style || {}, r = {};
1720
- return ga(r, n, e), Object.assign(r, Zu(e, t)), r;
1720
+ return ga(r, n, e), Object.assign(r, Ju(e, t)), r;
1721
1721
  }
1722
- function Qu(e, t) {
1723
- const n = {}, r = Ju(e, t);
1722
+ function ef(e, t) {
1723
+ const n = {}, r = Qu(e, t);
1724
1724
  return e.drag && e.dragListener !== !1 && (n.draggable = !1, r.userSelect = r.WebkitUserSelect = r.WebkitTouchCallout = "none", r.touchAction = e.drag === !0 ? "none" : `pan-${e.drag === "x" ? "y" : "x"}`), e.tabIndex === void 0 && (e.onTap || e.onTapStart || e.whileTap) && (n.tabIndex = 0), n.style = r, n;
1725
1725
  }
1726
- function ef(e, t, n, r) {
1726
+ function tf(e, t, n, r) {
1727
1727
  const i = nt(() => {
1728
1728
  const o = ua();
1729
1729
  return fi(o, t, hi(r), e.transformTemplate), {
@@ -1737,25 +1737,25 @@ function ef(e, t, n, r) {
1737
1737
  }
1738
1738
  return i;
1739
1739
  }
1740
- function tf(e = !1) {
1740
+ function nf(e = !1) {
1741
1741
  return (n, r, i, { latestValues: o }, s) => {
1742
- const l = (si(n) ? ef : Qu)(r, o, s, n), c = gu(r, typeof n == "string", e), u = n !== Xs ? { ...c, ...l, ref: i } : {}, { children: f } = r, d = nt(() => ie(f) ? f.get() : f, [f]);
1742
+ const l = (si(n) ? tf : ef)(r, o, s, n), c = yu(r, typeof n == "string", e), u = n !== Xs ? { ...c, ...l, ref: i } : {}, { children: f } = r, d = nt(() => ie(f) ? f.get() : f, [f]);
1743
1743
  return Xc(n, {
1744
1744
  ...u,
1745
1745
  children: d
1746
1746
  });
1747
1747
  };
1748
1748
  }
1749
- function nf(e, t) {
1749
+ function rf(e, t) {
1750
1750
  return function(r, { forwardMotionProps: i } = { forwardMotionProps: !1 }) {
1751
1751
  const s = {
1752
- ...si(r) ? Xu : qu,
1752
+ ...si(r) ? qu : Zu,
1753
1753
  preloadedFeatures: e,
1754
- useRender: tf(i),
1754
+ useRender: nf(i),
1755
1755
  createVisualElement: t,
1756
1756
  Component: r
1757
1757
  };
1758
- return Au(s);
1758
+ return Eu(s);
1759
1759
  };
1760
1760
  }
1761
1761
  function ya(e, t) {
@@ -1773,8 +1773,8 @@ function Kn(e, t, n) {
1773
1773
  const r = e.getProps();
1774
1774
  return ai(r, t, n !== void 0 ? n : r.custom, e);
1775
1775
  }
1776
- const rf = /* @__PURE__ */ ti(() => window.ScrollTimeline !== void 0);
1777
- class of {
1776
+ const of = /* @__PURE__ */ ti(() => window.ScrollTimeline !== void 0);
1777
+ class sf {
1778
1778
  constructor(t) {
1779
1779
  this.stop = () => this.runAll("stop"), this.animations = t.filter(Boolean);
1780
1780
  }
@@ -1793,7 +1793,7 @@ class of {
1793
1793
  }
1794
1794
  attachTimeline(t, n) {
1795
1795
  const r = this.animations.map((i) => {
1796
- if (rf() && i.attachTimeline)
1796
+ if (of() && i.attachTimeline)
1797
1797
  return i.attachTimeline(t);
1798
1798
  if (typeof n == "function")
1799
1799
  return n(i);
@@ -1844,7 +1844,7 @@ class of {
1844
1844
  this.runAll("complete");
1845
1845
  }
1846
1846
  }
1847
- class sf extends of {
1847
+ class af extends sf {
1848
1848
  then(t, n) {
1849
1849
  return Promise.all(this.animations).then(t).catch(n);
1850
1850
  }
@@ -1867,17 +1867,17 @@ function gi(e) {
1867
1867
  function go(e, t) {
1868
1868
  e.timeline = t, e.onfinish = null;
1869
1869
  }
1870
- const yi = (e) => Array.isArray(e) && typeof e[0] == "number", af = {
1870
+ const yi = (e) => Array.isArray(e) && typeof e[0] == "number", lf = {
1871
1871
  linearEasing: void 0
1872
1872
  };
1873
- function lf(e, t) {
1873
+ function cf(e, t) {
1874
1874
  const n = /* @__PURE__ */ ti(e);
1875
1875
  return () => {
1876
1876
  var r;
1877
- return (r = af[t]) !== null && r !== void 0 ? r : n();
1877
+ return (r = lf[t]) !== null && r !== void 0 ? r : n();
1878
1878
  };
1879
1879
  }
1880
- const On = /* @__PURE__ */ lf(() => {
1880
+ const On = /* @__PURE__ */ cf(() => {
1881
1881
  try {
1882
1882
  document.createElement("div").animate({ opacity: 0 }, { easing: "linear(0, 1)" });
1883
1883
  } catch {
@@ -1916,7 +1916,7 @@ const pe = {
1916
1916
  function Pa() {
1917
1917
  return pe.x || pe.y;
1918
1918
  }
1919
- function cf(e, t, n) {
1919
+ function uf(e, t, n) {
1920
1920
  var r;
1921
1921
  if (e instanceof Element)
1922
1922
  return [e];
@@ -1928,7 +1928,7 @@ function cf(e, t, n) {
1928
1928
  return Array.from(e);
1929
1929
  }
1930
1930
  function Sa(e, t) {
1931
- const n = cf(e), r = new AbortController(), i = {
1931
+ const n = uf(e), r = new AbortController(), i = {
1932
1932
  passive: !0,
1933
1933
  ...t,
1934
1934
  signal: r.signal
@@ -1940,7 +1940,7 @@ function yo(e) {
1940
1940
  t.pointerType === "touch" || Pa() || e(t);
1941
1941
  };
1942
1942
  }
1943
- function uf(e, t, n = {}) {
1943
+ function ff(e, t, n = {}) {
1944
1944
  const [r, i, o] = Sa(e, n), s = yo((a) => {
1945
1945
  const { target: l } = a, c = t(a);
1946
1946
  if (typeof c != "function" || !l)
@@ -1954,15 +1954,15 @@ function uf(e, t, n = {}) {
1954
1954
  a.addEventListener("pointerenter", s, i);
1955
1955
  }), o;
1956
1956
  }
1957
- const Ta = (e, t) => t ? e === t ? !0 : Ta(e, t.parentElement) : !1, vi = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1, ff = /* @__PURE__ */ new Set([
1957
+ const Ta = (e, t) => t ? e === t ? !0 : Ta(e, t.parentElement) : !1, vi = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1, df = /* @__PURE__ */ new Set([
1958
1958
  "BUTTON",
1959
1959
  "INPUT",
1960
1960
  "SELECT",
1961
1961
  "TEXTAREA",
1962
1962
  "A"
1963
1963
  ]);
1964
- function df(e) {
1965
- return ff.has(e.tagName) || e.tabIndex !== -1;
1964
+ function hf(e) {
1965
+ return df.has(e.tagName) || e.tabIndex !== -1;
1966
1966
  }
1967
1967
  const It = /* @__PURE__ */ new WeakSet();
1968
1968
  function vo(e) {
@@ -1973,7 +1973,7 @@ function vo(e) {
1973
1973
  function or(e, t) {
1974
1974
  e.dispatchEvent(new PointerEvent("pointer" + t, { isPrimary: !0, bubbles: !0 }));
1975
1975
  }
1976
- const hf = (e, t) => {
1976
+ const pf = (e, t) => {
1977
1977
  const n = e.currentTarget;
1978
1978
  if (!n)
1979
1979
  return;
@@ -1991,7 +1991,7 @@ const hf = (e, t) => {
1991
1991
  function xo(e) {
1992
1992
  return vi(e) && !Pa();
1993
1993
  }
1994
- function pf(e, t, n = {}) {
1994
+ function mf(e, t, n = {}) {
1995
1995
  const [r, i, o] = Sa(e, n), s = (a) => {
1996
1996
  const l = a.currentTarget;
1997
1997
  if (!xo(a) || It.has(l))
@@ -2007,10 +2007,10 @@ function pf(e, t, n = {}) {
2007
2007
  window.addEventListener("pointerup", f, i), window.addEventListener("pointercancel", d, i);
2008
2008
  };
2009
2009
  return r.forEach((a) => {
2010
- !df(a) && a.getAttribute("tabindex") === null && (a.tabIndex = 0), (n.useGlobalTarget ? window : a).addEventListener("pointerdown", s, i), a.addEventListener("focus", (c) => hf(c, i), i);
2010
+ !hf(a) && a.getAttribute("tabindex") === null && (a.tabIndex = 0), (n.useGlobalTarget ? window : a).addEventListener("pointerdown", s, i), a.addEventListener("focus", (c) => pf(c, i), i);
2011
2011
  }), o;
2012
2012
  }
2013
- function mf(e) {
2013
+ function gf(e) {
2014
2014
  return e === "x" || e === "y" ? pe[e] ? null : (pe[e] = !0, () => {
2015
2015
  pe[e] = !1;
2016
2016
  }) : pe.x || pe.y ? null : (pe.x = pe.y = !0, () => {
@@ -2027,13 +2027,13 @@ const Aa = /* @__PURE__ */ new Set([
2027
2027
  ...Ot
2028
2028
  ]);
2029
2029
  let Pn;
2030
- function gf() {
2030
+ function yf() {
2031
2031
  Pn = void 0;
2032
2032
  }
2033
2033
  const we = {
2034
- now: () => (Pn === void 0 && we.set(te.isProcessing || uu.useManualTiming ? te.timestamp : performance.now()), Pn),
2034
+ now: () => (Pn === void 0 && we.set(te.isProcessing || fu.useManualTiming ? te.timestamp : performance.now()), Pn),
2035
2035
  set: (e) => {
2036
- Pn = e, queueMicrotask(gf);
2036
+ Pn = e, queueMicrotask(yf);
2037
2037
  }
2038
2038
  };
2039
2039
  function xi(e, t) {
@@ -2071,8 +2071,8 @@ class bi {
2071
2071
  function Ea(e, t) {
2072
2072
  return t ? e * (1e3 / t) : 0;
2073
2073
  }
2074
- const wo = 30, yf = (e) => !isNaN(parseFloat(e));
2075
- class vf {
2074
+ const wo = 30, vf = (e) => !isNaN(parseFloat(e));
2075
+ class xf {
2076
2076
  /**
2077
2077
  * @param init - The initiating value
2078
2078
  * @param config - Optional configuration options
@@ -2088,7 +2088,7 @@ class vf {
2088
2088
  }, this.hasAnimated = !1, this.setCurrent(t), this.owner = n.owner;
2089
2089
  }
2090
2090
  setCurrent(t) {
2091
- this.current = t, this.updatedAt = we.now(), this.canTrackVelocity === null && t !== void 0 && (this.canTrackVelocity = yf(this.current));
2091
+ this.current = t, this.updatedAt = we.now(), this.canTrackVelocity === null && t !== void 0 && (this.canTrackVelocity = vf(this.current));
2092
2092
  }
2093
2093
  setPrevFrameValue(t = this.current) {
2094
2094
  this.prevFrameValue = t, this.prevUpdatedAt = this.updatedAt;
@@ -2267,54 +2267,54 @@ class vf {
2267
2267
  }
2268
2268
  }
2269
2269
  function Gt(e, t) {
2270
- return new vf(e, t);
2270
+ return new xf(e, t);
2271
2271
  }
2272
- function xf(e, t, n) {
2272
+ function wf(e, t, n) {
2273
2273
  e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, Gt(n));
2274
2274
  }
2275
- function wf(e, t) {
2275
+ function bf(e, t) {
2276
2276
  const n = Kn(e, t);
2277
2277
  let { transitionEnd: r = {}, transition: i = {}, ...o } = n || {};
2278
2278
  o = { ...o, ...r };
2279
2279
  for (const s in o) {
2280
- const a = Mu(o[s]);
2281
- xf(e, s, a);
2280
+ const a = Vu(o[s]);
2281
+ wf(e, s, a);
2282
2282
  }
2283
2283
  }
2284
- function bf(e) {
2284
+ function Pf(e) {
2285
2285
  return !!(ie(e) && e.add);
2286
2286
  }
2287
2287
  function Dr(e, t) {
2288
2288
  const n = e.getValue("willChange");
2289
- if (bf(n))
2289
+ if (Pf(n))
2290
2290
  return n.add(t);
2291
2291
  }
2292
2292
  function Ca(e) {
2293
2293
  return e.props[ra];
2294
2294
  }
2295
- const Ra = (e, t, n) => (((1 - 3 * n + 3 * t) * e + (3 * n - 6 * t)) * e + 3 * t) * e, Pf = 1e-7, Sf = 12;
2296
- function Tf(e, t, n, r, i) {
2295
+ const Ra = (e, t, n) => (((1 - 3 * n + 3 * t) * e + (3 * n - 6 * t)) * e + 3 * t) * e, Sf = 1e-7, Tf = 12;
2296
+ function Af(e, t, n, r, i) {
2297
2297
  let o, s, a = 0;
2298
2298
  do
2299
2299
  s = t + (n - t) / 2, o = Ra(s, r, i) - e, o > 0 ? n = s : t = s;
2300
- while (Math.abs(o) > Pf && ++a < Sf);
2300
+ while (Math.abs(o) > Sf && ++a < Tf);
2301
2301
  return s;
2302
2302
  }
2303
2303
  function Qt(e, t, n, r) {
2304
2304
  if (e === t && n === r)
2305
2305
  return ae;
2306
- const i = (o) => Tf(o, 0, 1, e, n);
2306
+ const i = (o) => Af(o, 0, 1, e, n);
2307
2307
  return (o) => o === 0 || o === 1 ? o : Ra(i(o), t, r);
2308
2308
  }
2309
2309
  const Da = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, Oa = (e) => (t) => 1 - e(1 - t), Ma = /* @__PURE__ */ Qt(0.33, 1.53, 0.69, 0.99), Pi = /* @__PURE__ */ Oa(Ma), Va = /* @__PURE__ */ Da(Pi), ka = (e) => (e *= 2) < 1 ? 0.5 * Pi(e) : 0.5 * (2 - Math.pow(2, -10 * (e - 1))), Si = (e) => 1 - Math.sin(Math.acos(e)), La = Oa(Si), ja = Da(Si), Fa = (e) => /^0[^.\s]+$/u.test(e);
2310
- function Af(e) {
2310
+ function Ef(e) {
2311
2311
  return typeof e == "number" ? e === 0 : e !== null ? e === "none" || e === "0" || Fa(e) : !0;
2312
2312
  }
2313
2313
  const $t = (e) => Math.round(e * 1e5) / 1e5, Ti = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
2314
- function Ef(e) {
2314
+ function Cf(e) {
2315
2315
  return e == null;
2316
2316
  }
2317
- const Cf = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, Ai = (e, t) => (n) => !!(typeof n == "string" && Cf.test(n) && n.startsWith(e) || t && !Ef(n) && Object.prototype.hasOwnProperty.call(n, t)), Na = (e, t, n) => (r) => {
2317
+ const Rf = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, Ai = (e, t) => (n) => !!(typeof n == "string" && Rf.test(n) && n.startsWith(e) || t && !Cf(n) && Object.prototype.hasOwnProperty.call(n, t)), Na = (e, t, n) => (r) => {
2318
2318
  if (typeof r != "string")
2319
2319
  return r;
2320
2320
  const [i, o, s, a] = r.match(Ti);
@@ -2324,15 +2324,15 @@ const Cf = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s
2324
2324
  [n]: parseFloat(s),
2325
2325
  alpha: a !== void 0 ? parseFloat(a) : 1
2326
2326
  };
2327
- }, Rf = (e) => Ce(0, 255, e), sr = {
2327
+ }, Df = (e) => Ce(0, 255, e), sr = {
2328
2328
  ...Mt,
2329
- transform: (e) => Math.round(Rf(e))
2329
+ transform: (e) => Math.round(Df(e))
2330
2330
  }, et = {
2331
2331
  test: /* @__PURE__ */ Ai("rgb", "red"),
2332
2332
  parse: /* @__PURE__ */ Na("red", "green", "blue"),
2333
2333
  transform: ({ red: e, green: t, blue: n, alpha: r = 1 }) => "rgba(" + sr.transform(e) + ", " + sr.transform(t) + ", " + sr.transform(n) + ", " + $t(Yt.transform(r)) + ")"
2334
2334
  };
2335
- function Df(e) {
2335
+ function Of(e) {
2336
2336
  let t = "", n = "", r = "", i = "";
2337
2337
  return e.length > 5 ? (t = e.substring(1, 3), n = e.substring(3, 5), r = e.substring(5, 7), i = e.substring(7, 9)) : (t = e.substring(1, 2), n = e.substring(2, 3), r = e.substring(3, 4), i = e.substring(4, 5), t += t, n += n, r += r, i += i), {
2338
2338
  red: parseInt(t, 16),
@@ -2343,7 +2343,7 @@ function Df(e) {
2343
2343
  }
2344
2344
  const Or = {
2345
2345
  test: /* @__PURE__ */ Ai("#"),
2346
- parse: Df,
2346
+ parse: Of,
2347
2347
  transform: et.transform
2348
2348
  }, mt = {
2349
2349
  test: /* @__PURE__ */ Ai("hsl", "hue"),
@@ -2353,12 +2353,12 @@ const Or = {
2353
2353
  test: (e) => et.test(e) || Or.test(e) || mt.test(e),
2354
2354
  parse: (e) => et.test(e) ? et.parse(e) : mt.test(e) ? mt.parse(e) : Or.parse(e),
2355
2355
  transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? et.transform(e) : mt.transform(e)
2356
- }, Of = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
2357
- function Mf(e) {
2356
+ }, Mf = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
2357
+ function Vf(e) {
2358
2358
  var t, n;
2359
- return isNaN(e) && typeof e == "string" && (((t = e.match(Ti)) === null || t === void 0 ? void 0 : t.length) || 0) + (((n = e.match(Of)) === null || n === void 0 ? void 0 : n.length) || 0) > 0;
2359
+ return isNaN(e) && typeof e == "string" && (((t = e.match(Ti)) === null || t === void 0 ? void 0 : t.length) || 0) + (((n = e.match(Mf)) === null || n === void 0 ? void 0 : n.length) || 0) > 0;
2360
2360
  }
2361
- const Ba = "number", _a = "color", Vf = "var", kf = "var(", bo = "${}", Lf = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;
2361
+ const Ba = "number", _a = "color", kf = "var", Lf = "var(", bo = "${}", jf = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;
2362
2362
  function Xt(e) {
2363
2363
  const t = e.toString(), n = [], r = {
2364
2364
  color: [],
@@ -2366,7 +2366,7 @@ function Xt(e) {
2366
2366
  var: []
2367
2367
  }, i = [];
2368
2368
  let o = 0;
2369
- const a = t.replace(Lf, (l) => (ne.test(l) ? (r.color.push(o), i.push(_a), n.push(ne.parse(l))) : l.startsWith(kf) ? (r.var.push(o), i.push(Vf), n.push(l)) : (r.number.push(o), i.push(Ba), n.push(parseFloat(l))), ++o, bo)).split(bo);
2369
+ const a = t.replace(jf, (l) => (ne.test(l) ? (r.color.push(o), i.push(_a), n.push(ne.parse(l))) : l.startsWith(Lf) ? (r.var.push(o), i.push(kf), n.push(l)) : (r.number.push(o), i.push(Ba), n.push(parseFloat(l))), ++o, bo)).split(bo);
2370
2370
  return { values: n, split: a, indexes: r, types: i };
2371
2371
  }
2372
2372
  function Ia(e) {
@@ -2384,18 +2384,18 @@ function Wa(e) {
2384
2384
  return o;
2385
2385
  };
2386
2386
  }
2387
- const jf = (e) => typeof e == "number" ? 0 : e;
2388
- function Ff(e) {
2387
+ const Ff = (e) => typeof e == "number" ? 0 : e;
2388
+ function Nf(e) {
2389
2389
  const t = Ia(e);
2390
- return Wa(e)(t.map(jf));
2390
+ return Wa(e)(t.map(Ff));
2391
2391
  }
2392
2392
  const Ne = {
2393
- test: Mf,
2393
+ test: Vf,
2394
2394
  parse: Ia,
2395
2395
  createTransformer: Wa,
2396
- getAnimatableNone: Ff
2397
- }, Nf = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
2398
- function Bf(e) {
2396
+ getAnimatableNone: Nf
2397
+ }, Bf = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
2398
+ function _f(e) {
2399
2399
  const [t, n] = e.slice(0, -1).split("(");
2400
2400
  if (t === "drop-shadow")
2401
2401
  return e;
@@ -2403,16 +2403,16 @@ function Bf(e) {
2403
2403
  if (!r)
2404
2404
  return e;
2405
2405
  const i = n.replace(r, "");
2406
- let o = Nf.has(t) ? 1 : 0;
2406
+ let o = Bf.has(t) ? 1 : 0;
2407
2407
  return r !== n && (o *= 100), t + "(" + o + i + ")";
2408
2408
  }
2409
- const _f = /\b([a-z-]*)\(.*?\)/gu, Mr = {
2409
+ const If = /\b([a-z-]*)\(.*?\)/gu, Mr = {
2410
2410
  ...Ne,
2411
2411
  getAnimatableNone: (e) => {
2412
- const t = e.match(_f);
2413
- return t ? t.map(Bf).join(" ") : e;
2412
+ const t = e.match(If);
2413
+ return t ? t.map(_f).join(" ") : e;
2414
2414
  }
2415
- }, If = {
2415
+ }, Wf = {
2416
2416
  ...ci,
2417
2417
  // Color props
2418
2418
  color: ne,
@@ -2428,17 +2428,17 @@ const _f = /\b([a-z-]*)\(.*?\)/gu, Mr = {
2428
2428
  borderLeftColor: ne,
2429
2429
  filter: Mr,
2430
2430
  WebkitFilter: Mr
2431
- }, Ei = (e) => If[e];
2431
+ }, Ei = (e) => Wf[e];
2432
2432
  function $a(e, t) {
2433
2433
  let n = Ei(e);
2434
2434
  return n !== Mr && (n = Ne), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
2435
2435
  }
2436
- const Wf = /* @__PURE__ */ new Set(["auto", "none", "0"]);
2437
- function $f(e, t, n) {
2436
+ const $f = /* @__PURE__ */ new Set(["auto", "none", "0"]);
2437
+ function Uf(e, t, n) {
2438
2438
  let r = 0, i;
2439
2439
  for (; r < e.length && !i; ) {
2440
2440
  const o = e[r];
2441
- typeof o == "string" && !Wf.has(o) && Xt(o).values.length && (i = e[r]), r++;
2441
+ typeof o == "string" && !$f.has(o) && Xt(o).values.length && (i = e[r]), r++;
2442
2442
  }
2443
2443
  if (i && n)
2444
2444
  for (const o of t)
@@ -2454,10 +2454,10 @@ const Po = (e) => e === Mt || e === O, So = (e, t) => parseFloat(e.split(", ")[t
2454
2454
  const o = r.match(/^matrix\((.+)\)$/u);
2455
2455
  return o ? So(o[1], e) : 0;
2456
2456
  }
2457
- }, Uf = /* @__PURE__ */ new Set(["x", "y", "z"]), zf = Ot.filter((e) => !Uf.has(e));
2458
- function Kf(e) {
2457
+ }, zf = /* @__PURE__ */ new Set(["x", "y", "z"]), Kf = Ot.filter((e) => !zf.has(e));
2458
+ function Hf(e) {
2459
2459
  const t = [];
2460
- return zf.forEach((n) => {
2460
+ return Kf.forEach((n) => {
2461
2461
  const r = e.getValue(n);
2462
2462
  r !== void 0 && (t.push([n, r.get()]), r.set(n.startsWith("scale") ? 1 : 0));
2463
2463
  }), t;
@@ -2482,7 +2482,7 @@ function Ua() {
2482
2482
  if (kr) {
2483
2483
  const e = Array.from(tt).filter((r) => r.needsMeasurement), t = new Set(e.map((r) => r.element)), n = /* @__PURE__ */ new Map();
2484
2484
  t.forEach((r) => {
2485
- const i = Kf(r);
2485
+ const i = Hf(r);
2486
2486
  i.length && (n.set(r, i), r.render());
2487
2487
  }), e.forEach((r) => r.measureInitialState()), t.forEach((r) => {
2488
2488
  r.render();
@@ -2502,7 +2502,7 @@ function za() {
2502
2502
  e.readKeyframes(), e.needsMeasurement && (kr = !0);
2503
2503
  });
2504
2504
  }
2505
- function Hf() {
2505
+ function Yf() {
2506
2506
  za(), Ua();
2507
2507
  }
2508
2508
  class Ci {
@@ -2546,21 +2546,21 @@ class Ci {
2546
2546
  this.isComplete || this.scheduleResolve();
2547
2547
  }
2548
2548
  }
2549
- const Ka = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e), Yf = (
2549
+ const Ka = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e), Gf = (
2550
2550
  // eslint-disable-next-line redos-detector/no-unsafe-regex -- false positive, as it can match a lot of words
2551
2551
  /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u
2552
2552
  );
2553
- function Gf(e) {
2554
- const t = Yf.exec(e);
2553
+ function Xf(e) {
2554
+ const t = Gf.exec(e);
2555
2555
  if (!t)
2556
2556
  return [,];
2557
2557
  const [, n, r, i] = t;
2558
2558
  return [`--${n ?? r}`, i];
2559
2559
  }
2560
- const Xf = 4;
2560
+ const qf = 4;
2561
2561
  function Ha(e, t, n = 1) {
2562
- je(n <= Xf, `Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);
2563
- const [r, i] = Gf(e);
2562
+ je(n <= qf, `Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);
2563
+ const [r, i] = Xf(e);
2564
2564
  if (!r)
2565
2565
  return;
2566
2566
  const o = window.getComputedStyle(t).getPropertyValue(r);
@@ -2570,10 +2570,10 @@ function Ha(e, t, n = 1) {
2570
2570
  }
2571
2571
  return li(i) ? Ha(i, t, n + 1) : i;
2572
2572
  }
2573
- const Ya = (e) => (t) => t.test(e), qf = {
2573
+ const Ya = (e) => (t) => t.test(e), Zf = {
2574
2574
  test: (e) => e === "auto",
2575
2575
  parse: (e) => e
2576
- }, Ga = [Mt, O, xe, Me, Nu, Fu, qf], Ao = (e) => Ga.find(Ya(e));
2576
+ }, Ga = [Mt, O, xe, Me, Bu, Nu, Zf], Ao = (e) => Ga.find(Ya(e));
2577
2577
  class Xa extends Ci {
2578
2578
  constructor(t, n, r, i, o) {
2579
2579
  super(t, n, r, i, o, !0);
@@ -2605,8 +2605,8 @@ class Xa extends Ci {
2605
2605
  resolveNoneKeyframes() {
2606
2606
  const { unresolvedKeyframes: t, name: n } = this, r = [];
2607
2607
  for (let i = 0; i < t.length; i++)
2608
- Af(t[i]) && r.push(i);
2609
- r.length && $f(t, r, n);
2608
+ Ef(t[i]) && r.push(i);
2609
+ r.length && Uf(t, r, n);
2610
2610
  }
2611
2611
  measureInitialState() {
2612
2612
  const { element: t, unresolvedKeyframes: n, name: r } = this;
@@ -2632,7 +2632,7 @@ class Xa extends Ci {
2632
2632
  const Eo = (e, t) => t === "zIndex" ? !1 : !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && // It's animatable if we have a string
2633
2633
  (Ne.test(e) || e === "0") && // And it contains numbers and/or colors
2634
2634
  !e.startsWith("url("));
2635
- function Zf(e) {
2635
+ function Jf(e) {
2636
2636
  const t = e[0];
2637
2637
  if (e.length === 1)
2638
2638
  return !0;
@@ -2640,21 +2640,21 @@ function Zf(e) {
2640
2640
  if (e[n] !== t)
2641
2641
  return !0;
2642
2642
  }
2643
- function Jf(e, t, n, r) {
2643
+ function Qf(e, t, n, r) {
2644
2644
  const i = e[0];
2645
2645
  if (i === null)
2646
2646
  return !1;
2647
2647
  if (t === "display" || t === "visibility")
2648
2648
  return !0;
2649
2649
  const o = e[e.length - 1], s = Eo(i, t), a = Eo(o, t);
2650
- return Dt(s === a, `You are trying to animate ${t} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`), !s || !a ? !1 : Zf(e) || (n === "spring" || gi(n)) && r;
2650
+ return Dt(s === a, `You are trying to animate ${t} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`), !s || !a ? !1 : Jf(e) || (n === "spring" || gi(n)) && r;
2651
2651
  }
2652
- const Qf = (e) => e !== null;
2652
+ const ed = (e) => e !== null;
2653
2653
  function Hn(e, { repeat: t, repeatType: n = "loop" }, r) {
2654
- const i = e.filter(Qf), o = t && n !== "loop" && t % 2 === 1 ? 0 : i.length - 1;
2654
+ const i = e.filter(ed), o = t && n !== "loop" && t % 2 === 1 ? 0 : i.length - 1;
2655
2655
  return !o || r === void 0 ? i[o] : r;
2656
2656
  }
2657
- const ed = 40;
2657
+ const td = 40;
2658
2658
  class qa {
2659
2659
  constructor({ autoplay: t = !0, delay: n = 0, type: r = "keyframes", repeat: i = 0, repeatDelay: o = 0, repeatType: s = "loop", ...a }) {
2660
2660
  this.isStopped = !1, this.hasAttemptedResolve = !1, this.createdAt = we.now(), this.options = {
@@ -2678,7 +2678,7 @@ class qa {
2678
2678
  * to avoid a sudden jump into the animation.
2679
2679
  */
2680
2680
  calcStartTime() {
2681
- return this.resolvedAt ? this.resolvedAt - this.createdAt > ed ? this.resolvedAt : this.createdAt : this.createdAt;
2681
+ return this.resolvedAt ? this.resolvedAt - this.createdAt > td ? this.resolvedAt : this.createdAt : this.createdAt;
2682
2682
  }
2683
2683
  /**
2684
2684
  * A getter for resolved data. If keyframes are not yet resolved, accessing
@@ -2686,7 +2686,7 @@ class qa {
2686
2686
  * This is a deoptimisation, but at its worst still batches read/writes.
2687
2687
  */
2688
2688
  get resolved() {
2689
- return !this._resolved && !this.hasAttemptedResolve && Hf(), this._resolved;
2689
+ return !this._resolved && !this.hasAttemptedResolve && Yf(), this._resolved;
2690
2690
  }
2691
2691
  /**
2692
2692
  * A method to be called when the keyframes resolver completes. This method
@@ -2696,7 +2696,7 @@ class qa {
2696
2696
  onKeyframesResolved(t, n) {
2697
2697
  this.resolvedAt = we.now(), this.hasAttemptedResolve = !0;
2698
2698
  const { name: r, type: i, velocity: o, delay: s, onComplete: a, onUpdate: l, isGenerator: c } = this.options;
2699
- if (!c && !Jf(t, r, i, o))
2699
+ if (!c && !Qf(t, r, i, o))
2700
2700
  if (s)
2701
2701
  this.options.duration = 0;
2702
2702
  else {
@@ -2733,7 +2733,7 @@ const G = (e, t, n) => e + (t - e) * n;
2733
2733
  function ar(e, t, n) {
2734
2734
  return n < 0 && (n += 1), n > 1 && (n -= 1), n < 1 / 6 ? e + (t - e) * 6 * n : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e;
2735
2735
  }
2736
- function td({ hue: e, saturation: t, lightness: n, alpha: r }) {
2736
+ function nd({ hue: e, saturation: t, lightness: n, alpha: r }) {
2737
2737
  e /= 360, t /= 100, n /= 100;
2738
2738
  let i = 0, o = 0, s = 0;
2739
2739
  if (!t)
@@ -2755,13 +2755,13 @@ function Mn(e, t) {
2755
2755
  const lr = (e, t, n) => {
2756
2756
  const r = e * e, i = n * (t * t - r) + r;
2757
2757
  return i < 0 ? 0 : Math.sqrt(i);
2758
- }, nd = [Or, et, mt], rd = (e) => nd.find((t) => t.test(e));
2758
+ }, rd = [Or, et, mt], id = (e) => rd.find((t) => t.test(e));
2759
2759
  function Co(e) {
2760
- const t = rd(e);
2760
+ const t = id(e);
2761
2761
  if (Dt(!!t, `'${e}' is not an animatable color. Use the equivalent color code instead.`), !t)
2762
2762
  return !1;
2763
2763
  let n = t.parse(e);
2764
- return t === mt && (n = td(n)), n;
2764
+ return t === mt && (n = nd(n)), n;
2765
2765
  }
2766
2766
  const Ro = (e, t) => {
2767
2767
  const n = Co(e), r = Co(t);
@@ -2769,15 +2769,15 @@ const Ro = (e, t) => {
2769
2769
  return Mn(e, t);
2770
2770
  const i = { ...n };
2771
2771
  return (o) => (i.red = lr(n.red, r.red, o), i.green = lr(n.green, r.green, o), i.blue = lr(n.blue, r.blue, o), i.alpha = G(n.alpha, r.alpha, o), et.transform(i));
2772
- }, id = (e, t) => (n) => t(e(n)), en = (...e) => e.reduce(id), Lr = /* @__PURE__ */ new Set(["none", "hidden"]);
2773
- function od(e, t) {
2772
+ }, od = (e, t) => (n) => t(e(n)), en = (...e) => e.reduce(od), Lr = /* @__PURE__ */ new Set(["none", "hidden"]);
2773
+ function sd(e, t) {
2774
2774
  return Lr.has(e) ? (n) => n <= 0 ? e : t : (n) => n >= 1 ? t : e;
2775
2775
  }
2776
- function sd(e, t) {
2776
+ function ad(e, t) {
2777
2777
  return (n) => G(e, t, n);
2778
2778
  }
2779
2779
  function Ri(e) {
2780
- return typeof e == "number" ? sd : typeof e == "string" ? li(e) ? Mn : ne.test(e) ? Ro : cd : Array.isArray(e) ? Za : typeof e == "object" ? ne.test(e) ? Ro : ad : Mn;
2780
+ return typeof e == "number" ? ad : typeof e == "string" ? li(e) ? Mn : ne.test(e) ? Ro : ud : Array.isArray(e) ? Za : typeof e == "object" ? ne.test(e) ? Ro : ld : Mn;
2781
2781
  }
2782
2782
  function Za(e, t) {
2783
2783
  const n = [...e], r = n.length, i = e.map((o, s) => Ri(o)(o, t[s]));
@@ -2787,7 +2787,7 @@ function Za(e, t) {
2787
2787
  return n;
2788
2788
  };
2789
2789
  }
2790
- function ad(e, t) {
2790
+ function ld(e, t) {
2791
2791
  const n = { ...e, ...t }, r = {};
2792
2792
  for (const i in n)
2793
2793
  e[i] !== void 0 && t[i] !== void 0 && (r[i] = Ri(e[i])(e[i], t[i]));
@@ -2797,7 +2797,7 @@ function ad(e, t) {
2797
2797
  return n;
2798
2798
  };
2799
2799
  }
2800
- function ld(e, t) {
2800
+ function cd(e, t) {
2801
2801
  var n;
2802
2802
  const r = [], i = { color: 0, var: 0, number: 0 };
2803
2803
  for (let o = 0; o < t.values.length; o++) {
@@ -2806,16 +2806,16 @@ function ld(e, t) {
2806
2806
  }
2807
2807
  return r;
2808
2808
  }
2809
- const cd = (e, t) => {
2809
+ const ud = (e, t) => {
2810
2810
  const n = Ne.createTransformer(t), r = Xt(e), i = Xt(t);
2811
- return r.indexes.var.length === i.indexes.var.length && r.indexes.color.length === i.indexes.color.length && r.indexes.number.length >= i.indexes.number.length ? Lr.has(e) && !i.values.length || Lr.has(t) && !r.values.length ? od(e, t) : en(Za(ld(r, i), i.values), n) : (Dt(!0, `Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`), Mn(e, t));
2811
+ return r.indexes.var.length === i.indexes.var.length && r.indexes.color.length === i.indexes.color.length && r.indexes.number.length >= i.indexes.number.length ? Lr.has(e) && !i.values.length || Lr.has(t) && !r.values.length ? sd(e, t) : en(Za(cd(r, i), i.values), n) : (Dt(!0, `Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`), Mn(e, t));
2812
2812
  };
2813
2813
  function Ja(e, t, n) {
2814
2814
  return typeof e == "number" && typeof t == "number" && typeof n == "number" ? G(e, t, n) : Ri(e)(e, t);
2815
2815
  }
2816
- const ud = 5;
2816
+ const fd = 5;
2817
2817
  function Qa(e, t, n) {
2818
- const r = Math.max(t - ud, 0);
2818
+ const r = Math.max(t - fd, 0);
2819
2819
  return Ea(n - e(r), t - r);
2820
2820
  }
2821
2821
  const Y = {
@@ -2847,7 +2847,7 @@ const Y = {
2847
2847
  minDamping: 0.05,
2848
2848
  maxDamping: 1
2849
2849
  }, Do = 1e-3;
2850
- function fd({ duration: e = Y.duration, bounce: t = Y.bounce, velocity: n = Y.velocity, mass: r = Y.mass }) {
2850
+ function dd({ duration: e = Y.duration, bounce: t = Y.bounce, velocity: n = Y.velocity, mass: r = Y.mass }) {
2851
2851
  let i, o;
2852
2852
  Dt(e <= /* @__PURE__ */ ve(Y.maxDuration), "Spring duration must be 10 seconds or less");
2853
2853
  let s = 1 - t;
@@ -2864,7 +2864,7 @@ function fd({ duration: e = Y.duration, bounce: t = Y.bounce, velocity: n = Y.ve
2864
2864
  const u = Math.exp(-c * e), f = (n - c) * (e * e);
2865
2865
  return u * f;
2866
2866
  });
2867
- const a = 5 / e, l = hd(i, o, a);
2867
+ const a = 5 / e, l = pd(i, o, a);
2868
2868
  if (e = /* @__PURE__ */ ve(e), isNaN(l))
2869
2869
  return {
2870
2870
  stiffness: Y.stiffness,
@@ -2880,21 +2880,21 @@ function fd({ duration: e = Y.duration, bounce: t = Y.bounce, velocity: n = Y.ve
2880
2880
  };
2881
2881
  }
2882
2882
  }
2883
- const dd = 12;
2884
- function hd(e, t, n) {
2883
+ const hd = 12;
2884
+ function pd(e, t, n) {
2885
2885
  let r = n;
2886
- for (let i = 1; i < dd; i++)
2886
+ for (let i = 1; i < hd; i++)
2887
2887
  r = r - e(r) / t(r);
2888
2888
  return r;
2889
2889
  }
2890
2890
  function jr(e, t) {
2891
2891
  return e * Math.sqrt(1 - t * t);
2892
2892
  }
2893
- const pd = ["duration", "bounce"], md = ["stiffness", "damping", "mass"];
2893
+ const md = ["duration", "bounce"], gd = ["stiffness", "damping", "mass"];
2894
2894
  function Oo(e, t) {
2895
2895
  return t.some((n) => e[n] !== void 0);
2896
2896
  }
2897
- function gd(e) {
2897
+ function yd(e) {
2898
2898
  let t = {
2899
2899
  velocity: Y.velocity,
2900
2900
  stiffness: Y.stiffness,
@@ -2903,7 +2903,7 @@ function gd(e) {
2903
2903
  isResolvedFromDuration: !1,
2904
2904
  ...e
2905
2905
  };
2906
- if (!Oo(e, md) && Oo(e, pd))
2906
+ if (!Oo(e, gd) && Oo(e, md))
2907
2907
  if (e.visualDuration) {
2908
2908
  const n = e.visualDuration, r = 2 * Math.PI / (n * 1.2), i = r * r, o = 2 * Ce(0.05, 1, 1 - (e.bounce || 0)) * Math.sqrt(i);
2909
2909
  t = {
@@ -2913,7 +2913,7 @@ function gd(e) {
2913
2913
  damping: o
2914
2914
  };
2915
2915
  } else {
2916
- const n = fd(e);
2916
+ const n = dd(e);
2917
2917
  t = {
2918
2918
  ...t,
2919
2919
  ...n,
@@ -2929,7 +2929,7 @@ function el(e = Y.visualDuration, t = Y.bounce) {
2929
2929
  bounce: t
2930
2930
  } : e;
2931
2931
  let { restSpeed: r, restDelta: i } = n;
2932
- const o = n.keyframes[0], s = n.keyframes[n.keyframes.length - 1], a = { done: !1, value: o }, { stiffness: l, damping: c, mass: u, duration: f, velocity: d, isResolvedFromDuration: h } = gd({
2932
+ const o = n.keyframes[0], s = n.keyframes[n.keyframes.length - 1], a = { done: !1, value: o }, { stiffness: l, damping: c, mass: u, duration: f, velocity: d, isResolvedFromDuration: h } = yd({
2933
2933
  ...n,
2934
2934
  velocity: -/* @__PURE__ */ Ee(n.velocity || 0)
2935
2935
  }), g = d || 0, m = c / (2 * Math.sqrt(l * u)), y = s - o, v = /* @__PURE__ */ Ee(Math.sqrt(l / u)), w = Math.abs(y) < 5;
@@ -3003,11 +3003,11 @@ function Mo({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: r = 3
3003
3003
  }
3004
3004
  };
3005
3005
  }
3006
- const yd = /* @__PURE__ */ Qt(0.42, 0, 1, 1), vd = /* @__PURE__ */ Qt(0, 0, 0.58, 1), tl = /* @__PURE__ */ Qt(0.42, 0, 0.58, 1), xd = (e) => Array.isArray(e) && typeof e[0] != "number", Vo = {
3006
+ const vd = /* @__PURE__ */ Qt(0.42, 0, 1, 1), xd = /* @__PURE__ */ Qt(0, 0, 0.58, 1), tl = /* @__PURE__ */ Qt(0.42, 0, 0.58, 1), wd = (e) => Array.isArray(e) && typeof e[0] != "number", Vo = {
3007
3007
  linear: ae,
3008
- easeIn: yd,
3008
+ easeIn: vd,
3009
3009
  easeInOut: tl,
3010
- easeOut: vd,
3010
+ easeOut: xd,
3011
3011
  circIn: Si,
3012
3012
  circInOut: ja,
3013
3013
  circOut: La,
@@ -3024,7 +3024,7 @@ const yd = /* @__PURE__ */ Qt(0.42, 0, 1, 1), vd = /* @__PURE__ */ Qt(0, 0, 0.58
3024
3024
  return je(Vo[e] !== void 0, `Invalid easing type '${e}'`), Vo[e];
3025
3025
  return e;
3026
3026
  };
3027
- function wd(e, t, n) {
3027
+ function bd(e, t, n) {
3028
3028
  const r = [], i = n || Ja, o = e.length - 1;
3029
3029
  for (let s = 0; s < o; s++) {
3030
3030
  let a = i(e[s], e[s + 1]);
@@ -3036,7 +3036,7 @@ function wd(e, t, n) {
3036
3036
  }
3037
3037
  return r;
3038
3038
  }
3039
- function bd(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {
3039
+ function Pd(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {
3040
3040
  const o = e.length;
3041
3041
  if (je(o === t.length, "Both input and output ranges must be the same length"), o === 1)
3042
3042
  return () => t[0];
@@ -3044,7 +3044,7 @@ function bd(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {
3044
3044
  return () => t[1];
3045
3045
  const s = e[0] === e[1];
3046
3046
  e[0] > e[o - 1] && (e = [...e].reverse(), t = [...t].reverse());
3047
- const a = wd(t, r, i), l = a.length, c = (u) => {
3047
+ const a = bd(t, r, i), l = a.length, c = (u) => {
3048
3048
  if (s && u < e[0])
3049
3049
  return t[0];
3050
3050
  let f = 0;
@@ -3056,41 +3056,41 @@ function bd(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {
3056
3056
  };
3057
3057
  return n ? (u) => c(Ce(e[0], e[o - 1], u)) : c;
3058
3058
  }
3059
- function Pd(e, t) {
3059
+ function Sd(e, t) {
3060
3060
  const n = e[e.length - 1];
3061
3061
  for (let r = 1; r <= t; r++) {
3062
3062
  const i = /* @__PURE__ */ bt(0, t, r);
3063
3063
  e.push(G(n, 1, i));
3064
3064
  }
3065
3065
  }
3066
- function Sd(e) {
3066
+ function Td(e) {
3067
3067
  const t = [0];
3068
- return Pd(t, e.length - 1), t;
3068
+ return Sd(t, e.length - 1), t;
3069
3069
  }
3070
- function Td(e, t) {
3070
+ function Ad(e, t) {
3071
3071
  return e.map((n) => n * t);
3072
3072
  }
3073
- function Ad(e, t) {
3073
+ function Ed(e, t) {
3074
3074
  return e.map(() => t || tl).splice(0, e.length - 1);
3075
3075
  }
3076
3076
  function Vn({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut" }) {
3077
- const i = xd(r) ? r.map(ko) : ko(r), o = {
3077
+ const i = wd(r) ? r.map(ko) : ko(r), o = {
3078
3078
  done: !1,
3079
3079
  value: t[0]
3080
- }, s = Td(
3080
+ }, s = Ad(
3081
3081
  // Only use the provided offsets if they're the correct length
3082
3082
  // TODO Maybe we should warn here if there's a length mismatch
3083
- n && n.length === t.length ? n : Sd(t),
3083
+ n && n.length === t.length ? n : Td(t),
3084
3084
  e
3085
- ), a = bd(s, t, {
3086
- ease: Array.isArray(i) ? i : Ad(t, i)
3085
+ ), a = Pd(s, t, {
3086
+ ease: Array.isArray(i) ? i : Ed(t, i)
3087
3087
  });
3088
3088
  return {
3089
3089
  calculatedDuration: e,
3090
3090
  next: (l) => (o.value = a(l), o.done = l >= e, o)
3091
3091
  };
3092
3092
  }
3093
- const Ed = (e) => {
3093
+ const Cd = (e) => {
3094
3094
  const t = ({ timestamp: n }) => e(n);
3095
3095
  return {
3096
3096
  start: () => U.update(t, !0),
@@ -3101,13 +3101,13 @@ const Ed = (e) => {
3101
3101
  */
3102
3102
  now: () => te.isProcessing ? te.timestamp : we.now()
3103
3103
  };
3104
- }, Cd = {
3104
+ }, Rd = {
3105
3105
  decay: Mo,
3106
3106
  inertia: Mo,
3107
3107
  tween: Vn,
3108
3108
  keyframes: Vn,
3109
3109
  spring: el
3110
- }, Rd = (e) => e / 100;
3110
+ }, Dd = (e) => e / 100;
3111
3111
  class Di extends qa {
3112
3112
  constructor(t) {
3113
3113
  super(t), this.holdTime = null, this.cancelTime = null, this.currentTime = 0, this.playbackSpeed = 1, this.pendingPlayState = "running", this.startTime = null, this.state = "idle", this.stop = () => {
@@ -3124,9 +3124,9 @@ class Di extends qa {
3124
3124
  super.flatten(), this._resolved && Object.assign(this._resolved, this.initPlayback(this._resolved.keyframes));
3125
3125
  }
3126
3126
  initPlayback(t) {
3127
- const { type: n = "keyframes", repeat: r = 0, repeatDelay: i = 0, repeatType: o, velocity: s = 0 } = this.options, a = gi(n) ? n : Cd[n] || Vn;
3127
+ const { type: n = "keyframes", repeat: r = 0, repeatDelay: i = 0, repeatType: o, velocity: s = 0 } = this.options, a = gi(n) ? n : Rd[n] || Vn;
3128
3128
  let l, c;
3129
- a !== Vn && typeof t[0] != "number" && (process.env.NODE_ENV !== "production" && je(t.length === 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`), l = en(Rd, Ja(t[0], t[1])), t = [0, 100]);
3129
+ a !== Vn && typeof t[0] != "number" && (process.env.NODE_ENV !== "production" && je(t.length === 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`), l = en(Dd, Ja(t[0], t[1])), t = [0, 100]);
3130
3130
  const u = a({ ...this.options, keyframes: t });
3131
3131
  o === "mirror" && (c = a({
3132
3132
  ...this.options,
@@ -3197,7 +3197,7 @@ class Di extends qa {
3197
3197
  }
3198
3198
  if (this.isStopped)
3199
3199
  return;
3200
- const { driver: t = Ed, onPlay: n, startTime: r } = this.options;
3200
+ const { driver: t = Cd, onPlay: n, startTime: r } = this.options;
3201
3201
  this.driver || (this.driver = t((o) => this.tick(o))), n && n();
3202
3202
  const i = this.driver.now();
3203
3203
  this.holdTime !== null ? this.startTime = i - this.holdTime : this.startTime ? this.state === "finished" && (this.startTime = i) : this.startTime = r ?? this.calcStartTime(), this.state === "finished" && this.updateFinishedPromise(), this.cancelTime = this.startTime, this.holdTime = null, this.state = "running", this.driver.start();
@@ -3231,7 +3231,7 @@ class Di extends qa {
3231
3231
  return this.startTime = 0, this.tick(t, !0);
3232
3232
  }
3233
3233
  }
3234
- const Dd = /* @__PURE__ */ new Set([
3234
+ const Od = /* @__PURE__ */ new Set([
3235
3235
  "opacity",
3236
3236
  "clipPath",
3237
3237
  "filter",
@@ -3240,7 +3240,7 @@ const Dd = /* @__PURE__ */ new Set([
3240
3240
  // or until we implement support for linear() easing.
3241
3241
  // "background-color"
3242
3242
  ]);
3243
- function Od(e, t, n, { delay: r = 0, duration: i = 300, repeat: o = 0, repeatType: s = "loop", ease: a = "easeInOut", times: l } = {}) {
3243
+ function Md(e, t, n, { delay: r = 0, duration: i = 300, repeat: o = 0, repeatType: s = "loop", ease: a = "easeInOut", times: l } = {}) {
3244
3244
  const c = { [t]: n };
3245
3245
  l && (c.offset = l);
3246
3246
  const u = ba(a, i);
@@ -3253,11 +3253,11 @@ function Od(e, t, n, { delay: r = 0, duration: i = 300, repeat: o = 0, repeatTyp
3253
3253
  direction: s === "reverse" ? "alternate" : "normal"
3254
3254
  });
3255
3255
  }
3256
- const Md = /* @__PURE__ */ ti(() => Object.hasOwnProperty.call(Element.prototype, "animate")), kn = 10, Vd = 2e4;
3257
- function kd(e) {
3256
+ const Vd = /* @__PURE__ */ ti(() => Object.hasOwnProperty.call(Element.prototype, "animate")), kn = 10, kd = 2e4;
3257
+ function Ld(e) {
3258
3258
  return gi(e.type) || e.type === "spring" || !wa(e.ease);
3259
3259
  }
3260
- function Ld(e, t) {
3260
+ function jd(e, t) {
3261
3261
  const n = new Di({
3262
3262
  ...t,
3263
3263
  keyframes: e,
@@ -3268,7 +3268,7 @@ function Ld(e, t) {
3268
3268
  let r = { done: !1, value: e[0] };
3269
3269
  const i = [];
3270
3270
  let o = 0;
3271
- for (; !r.done && o < Vd; )
3271
+ for (; !r.done && o < kd; )
3272
3272
  r = n.sample(o), i.push(r.value), o += kn;
3273
3273
  return {
3274
3274
  times: void 0,
@@ -3282,7 +3282,7 @@ const nl = {
3282
3282
  backInOut: Va,
3283
3283
  circInOut: ja
3284
3284
  };
3285
- function jd(e) {
3285
+ function Fd(e) {
3286
3286
  return e in nl;
3287
3287
  }
3288
3288
  class Lo extends qa {
@@ -3295,11 +3295,11 @@ class Lo extends qa {
3295
3295
  let { duration: r = 300, times: i, ease: o, type: s, motionValue: a, name: l, startTime: c } = this.options;
3296
3296
  if (!a.owner || !a.owner.current)
3297
3297
  return !1;
3298
- if (typeof o == "string" && On() && jd(o) && (o = nl[o]), kd(this.options)) {
3299
- const { onComplete: f, onUpdate: d, motionValue: h, element: g, ...m } = this.options, y = Ld(t, m);
3298
+ if (typeof o == "string" && On() && Fd(o) && (o = nl[o]), Ld(this.options)) {
3299
+ const { onComplete: f, onUpdate: d, motionValue: h, element: g, ...m } = this.options, y = jd(t, m);
3300
3300
  t = y.keyframes, t.length === 1 && (t[1] = t[0]), r = y.duration, i = y.times, o = y.ease, s = "keyframes";
3301
3301
  }
3302
- const u = Od(a.owner.current, l, t, { ...this.options, duration: r, times: i, ease: o });
3302
+ const u = Md(a.owner.current, l, t, { ...this.options, duration: r, times: i, ease: o });
3303
3303
  return u.startTime = c ?? this.calcStartTime(), this.pendingTimeline ? (go(u, this.pendingTimeline), this.pendingTimeline = void 0) : u.onfinish = () => {
3304
3304
  const { onComplete: f } = this.options;
3305
3305
  a.set(Hn(t, this.options, n)), f && f(), this.cancel(), this.resolveFinishedPromise();
@@ -3431,32 +3431,32 @@ class Lo extends qa {
3431
3431
  if (!n || !n.owner || !(n.owner.current instanceof HTMLElement))
3432
3432
  return !1;
3433
3433
  const { onUpdate: l, transformTemplate: c } = n.owner.getProps();
3434
- return Md() && r && Dd.has(r) && /**
3434
+ return Vd() && r && Od.has(r) && /**
3435
3435
  * If we're outputting values to onUpdate then we can't use WAAPI as there's
3436
3436
  * no way to read the value from WAAPI every frame.
3437
3437
  */
3438
3438
  !l && !c && !i && o !== "mirror" && s !== 0 && a !== "inertia";
3439
3439
  }
3440
3440
  }
3441
- const Fd = {
3441
+ const Nd = {
3442
3442
  type: "spring",
3443
3443
  stiffness: 500,
3444
3444
  damping: 25,
3445
3445
  restSpeed: 10
3446
- }, Nd = (e) => ({
3446
+ }, Bd = (e) => ({
3447
3447
  type: "spring",
3448
3448
  stiffness: 550,
3449
3449
  damping: e === 0 ? 2 * Math.sqrt(550) : 30,
3450
3450
  restSpeed: 10
3451
- }), Bd = {
3451
+ }), _d = {
3452
3452
  type: "keyframes",
3453
3453
  duration: 0.8
3454
- }, _d = {
3454
+ }, Id = {
3455
3455
  type: "keyframes",
3456
3456
  ease: [0.25, 0.1, 0.35, 1],
3457
3457
  duration: 0.3
3458
- }, Id = (e, { keyframes: t }) => t.length > 2 ? Bd : ot.has(e) ? e.startsWith("scale") ? Nd(t[1]) : Fd : _d;
3459
- function Wd({ when: e, delay: t, delayChildren: n, staggerChildren: r, staggerDirection: i, repeat: o, repeatType: s, repeatDelay: a, from: l, elapsed: c, ...u }) {
3458
+ }, Wd = (e, { keyframes: t }) => t.length > 2 ? _d : ot.has(e) ? e.startsWith("scale") ? Bd(t[1]) : Nd : Id;
3459
+ function $d({ when: e, delay: t, delayChildren: n, staggerChildren: r, staggerDirection: i, repeat: o, repeatType: s, repeatDelay: a, from: l, elapsed: c, ...u }) {
3460
3460
  return !!Object.keys(u).length;
3461
3461
  }
3462
3462
  const Oi = (e, t, n, r = {}, i, o) => (s) => {
@@ -3479,9 +3479,9 @@ const Oi = (e, t, n, r = {}, i, o) => (s) => {
3479
3479
  motionValue: t,
3480
3480
  element: o ? void 0 : i
3481
3481
  };
3482
- Wd(a) || (u = {
3482
+ $d(a) || (u = {
3483
3483
  ...u,
3484
- ...Id(e, u)
3484
+ ...Wd(e, u)
3485
3485
  }), u.duration && (u.duration = /* @__PURE__ */ ve(u.duration)), u.repeatDelay && (u.repeatDelay = /* @__PURE__ */ ve(u.repeatDelay)), u.from !== void 0 && (u.keyframes[0] = u.from);
3486
3486
  let f = !1;
3487
3487
  if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (u.duration = 0, u.delay === 0 && (f = !0)), f && !o && t.get() !== void 0) {
@@ -3489,11 +3489,11 @@ const Oi = (e, t, n, r = {}, i, o) => (s) => {
3489
3489
  if (d !== void 0)
3490
3490
  return U.update(() => {
3491
3491
  u.onUpdate(d), u.onComplete();
3492
- }), new sf([]);
3492
+ }), new af([]);
3493
3493
  }
3494
3494
  return !o && Lo.supports(u) ? new Lo(u) : new Di(u);
3495
3495
  };
3496
- function $d({ protectedKeys: e, needsAnimating: t }, n) {
3496
+ function Ud({ protectedKeys: e, needsAnimating: t }, n) {
3497
3497
  const r = e.hasOwnProperty(n) && t[n] !== !0;
3498
3498
  return t[n] = !1, r;
3499
3499
  }
@@ -3504,7 +3504,7 @@ function rl(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
3504
3504
  const c = [], u = i && e.animationState && e.animationState.getState()[i];
3505
3505
  for (const f in l) {
3506
3506
  const d = e.getValue(f, (o = e.latestValues[f]) !== null && o !== void 0 ? o : null), h = l[f];
3507
- if (h === void 0 || u && $d(u, f))
3507
+ if (h === void 0 || u && Ud(u, f))
3508
3508
  continue;
3509
3509
  const g = {
3510
3510
  delay: n,
@@ -3524,7 +3524,7 @@ function rl(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
3524
3524
  }
3525
3525
  return a && Promise.all(c).then(() => {
3526
3526
  U.update(() => {
3527
- a && wf(e, a);
3527
+ a && bf(e, a);
3528
3528
  });
3529
3529
  }), c;
3530
3530
  }
@@ -3535,7 +3535,7 @@ function Fr(e, t, n = {}) {
3535
3535
  n.transitionOverride && (o = n.transitionOverride);
3536
3536
  const s = i ? () => Promise.all(rl(e, i, n)) : () => Promise.resolve(), a = e.variantChildren && e.variantChildren.size ? (c = 0) => {
3537
3537
  const { delayChildren: u = 0, staggerChildren: f, staggerDirection: d } = o;
3538
- return Ud(e, t, u + c, f, d, n);
3538
+ return zd(e, t, u + c, f, d, n);
3539
3539
  } : () => Promise.resolve(), { when: l } = o;
3540
3540
  if (l) {
3541
3541
  const [c, u] = l === "beforeChildren" ? [s, a] : [a, s];
@@ -3543,19 +3543,19 @@ function Fr(e, t, n = {}) {
3543
3543
  } else
3544
3544
  return Promise.all([s(), a(n.delay)]);
3545
3545
  }
3546
- function Ud(e, t, n = 0, r = 0, i = 1, o) {
3546
+ function zd(e, t, n = 0, r = 0, i = 1, o) {
3547
3547
  const s = [], a = (e.variantChildren.size - 1) * r, l = i === 1 ? (c = 0) => c * r : (c = 0) => a - c * r;
3548
- return Array.from(e.variantChildren).sort(zd).forEach((c, u) => {
3548
+ return Array.from(e.variantChildren).sort(Kd).forEach((c, u) => {
3549
3549
  c.notify("AnimationStart", t), s.push(Fr(c, t, {
3550
3550
  ...o,
3551
3551
  delay: n + l(u)
3552
3552
  }).then(() => c.notify("AnimationComplete", t)));
3553
3553
  }), Promise.all(s);
3554
3554
  }
3555
- function zd(e, t) {
3555
+ function Kd(e, t) {
3556
3556
  return e.sortNodePosition(t);
3557
3557
  }
3558
- function Kd(e, t, n = {}) {
3558
+ function Hd(e, t, n = {}) {
3559
3559
  e.notify("AnimationStart", t);
3560
3560
  let r;
3561
3561
  if (Array.isArray(t)) {
@@ -3571,7 +3571,7 @@ function Kd(e, t, n = {}) {
3571
3571
  e.notify("AnimationComplete", t);
3572
3572
  });
3573
3573
  }
3574
- const Hd = ri.length;
3574
+ const Yd = ri.length;
3575
3575
  function il(e) {
3576
3576
  if (!e)
3577
3577
  return;
@@ -3580,18 +3580,18 @@ function il(e) {
3580
3580
  return e.props.initial !== void 0 && (n.initial = e.props.initial), n;
3581
3581
  }
3582
3582
  const t = {};
3583
- for (let n = 0; n < Hd; n++) {
3583
+ for (let n = 0; n < Yd; n++) {
3584
3584
  const r = ri[n], i = e.props[r];
3585
3585
  (Ht(i) || i === !1) && (t[r] = i);
3586
3586
  }
3587
3587
  return t;
3588
3588
  }
3589
- const Yd = [...ni].reverse(), Gd = ni.length;
3590
- function Xd(e) {
3591
- return (t) => Promise.all(t.map(({ animation: n, options: r }) => Kd(e, n, r)));
3592
- }
3589
+ const Gd = [...ni].reverse(), Xd = ni.length;
3593
3590
  function qd(e) {
3594
- let t = Xd(e), n = jo(), r = !0;
3591
+ return (t) => Promise.all(t.map(({ animation: n, options: r }) => Hd(e, n, r)));
3592
+ }
3593
+ function Zd(e) {
3594
+ let t = qd(e), n = jo(), r = !0;
3595
3595
  const i = (l) => (c, u) => {
3596
3596
  var f;
3597
3597
  const d = Kn(e, u, l === "exit" ? (f = e.presenceContext) === null || f === void 0 ? void 0 : f.custom : void 0);
@@ -3607,8 +3607,8 @@ function qd(e) {
3607
3607
  function s(l) {
3608
3608
  const { props: c } = e, u = il(e.parent) || {}, f = [], d = /* @__PURE__ */ new Set();
3609
3609
  let h = {}, g = 1 / 0;
3610
- for (let y = 0; y < Gd; y++) {
3611
- const v = Yd[y], w = n[v], P = c[v] !== void 0 ? c[v] : u[v], S = Ht(P), b = v === l ? w.isActive : null;
3610
+ for (let y = 0; y < Xd; y++) {
3611
+ const v = Gd[y], w = n[v], P = c[v] !== void 0 ? c[v] : u[v], S = Ht(P), b = v === l ? w.isActive : null;
3612
3612
  b === !1 && (g = y);
3613
3613
  let E = P === u[v] && P !== c[v] && S;
3614
3614
  if (E && r && e.manuallyAnimateOnMount && (E = !1), w.protectedKeys = { ...h }, // If it isn't active and hasn't *just* been set as inactive
@@ -3616,7 +3616,7 @@ function qd(e) {
3616
3616
  !P && !w.prevProp || // Or if the prop doesn't define an animation
3617
3617
  Un(P) || typeof P == "boolean")
3618
3618
  continue;
3619
- const C = Zd(w.prevProp, P);
3619
+ const C = Jd(w.prevProp, P);
3620
3620
  let R = C || // If we're making this variant active, we want to always make it active
3621
3621
  v === l && w.isActive && !E && S || // If we removed a higher-priority variant (i is in reverse order)
3622
3622
  y > g && S, k = !1;
@@ -3676,7 +3676,7 @@ function qd(e) {
3676
3676
  }
3677
3677
  };
3678
3678
  }
3679
- function Zd(e, t) {
3679
+ function Jd(e, t) {
3680
3680
  return typeof t == "string" ? t !== e : Array.isArray(t) ? !ya(t, e) : !1;
3681
3681
  }
3682
3682
  function Ze(e = !1) {
@@ -3705,14 +3705,14 @@ class $e {
3705
3705
  update() {
3706
3706
  }
3707
3707
  }
3708
- class Jd extends $e {
3708
+ class Qd extends $e {
3709
3709
  /**
3710
3710
  * We dynamically generate the AnimationState manager as it contains a reference
3711
3711
  * to the underlying animation library. We only want to load that if we load this,
3712
3712
  * so people can optionally code split it out using the `m` component.
3713
3713
  */
3714
3714
  constructor(t) {
3715
- super(t), t.animationState || (t.animationState = qd(t));
3715
+ super(t), t.animationState || (t.animationState = Zd(t));
3716
3716
  }
3717
3717
  updateAnimationControlsSubscription() {
3718
3718
  const { animate: t } = this.node.getProps();
@@ -3733,10 +3733,10 @@ class Jd extends $e {
3733
3733
  this.node.animationState.reset(), (t = this.unmountControls) === null || t === void 0 || t.call(this);
3734
3734
  }
3735
3735
  }
3736
- let Qd = 0;
3737
- class eh extends $e {
3736
+ let eh = 0;
3737
+ class th extends $e {
3738
3738
  constructor() {
3739
- super(...arguments), this.id = Qd++;
3739
+ super(...arguments), this.id = eh++;
3740
3740
  }
3741
3741
  update() {
3742
3742
  if (!this.node.presenceContext)
@@ -3754,12 +3754,12 @@ class eh extends $e {
3754
3754
  unmount() {
3755
3755
  }
3756
3756
  }
3757
- const th = {
3757
+ const nh = {
3758
3758
  animation: {
3759
- Feature: Jd
3759
+ Feature: Qd
3760
3760
  },
3761
3761
  exit: {
3762
- Feature: eh
3762
+ Feature: th
3763
3763
  }
3764
3764
  };
3765
3765
  function qt(e, t, n, r = { passive: !0 }) {
@@ -3773,12 +3773,12 @@ function tn(e) {
3773
3773
  }
3774
3774
  };
3775
3775
  }
3776
- const nh = (e) => (t) => vi(t) && e(t, tn(t));
3776
+ const rh = (e) => (t) => vi(t) && e(t, tn(t));
3777
3777
  function Ut(e, t, n, r) {
3778
- return qt(e, t, nh(n), r);
3778
+ return qt(e, t, rh(n), r);
3779
3779
  }
3780
3780
  const Fo = (e, t) => Math.abs(e - t);
3781
- function rh(e, t) {
3781
+ function ih(e, t) {
3782
3782
  const n = Fo(e.x, t.x), r = Fo(e.y, t.y);
3783
3783
  return Math.sqrt(n ** 2 + r ** 2);
3784
3784
  }
@@ -3787,7 +3787,7 @@ class ol {
3787
3787
  if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.handlers = {}, this.contextWindow = window, this.updatePoint = () => {
3788
3788
  if (!(this.lastMoveEvent && this.lastMoveEventInfo))
3789
3789
  return;
3790
- const f = ur(this.lastMoveEventInfo, this.history), d = this.startEvent !== null, h = rh(f.offset, { x: 0, y: 0 }) >= 3;
3790
+ const f = ur(this.lastMoveEventInfo, this.history), d = this.startEvent !== null, h = ih(f.offset, { x: 0, y: 0 }) >= 3;
3791
3791
  if (!d && !h)
3792
3792
  return;
3793
3793
  const { point: g } = f, { timestamp: m } = te;
@@ -3828,17 +3828,17 @@ function ur({ point: e }, t) {
3828
3828
  return {
3829
3829
  point: e,
3830
3830
  delta: No(e, sl(t)),
3831
- offset: No(e, ih(t)),
3832
- velocity: oh(t, 0.1)
3831
+ offset: No(e, oh(t)),
3832
+ velocity: sh(t, 0.1)
3833
3833
  };
3834
3834
  }
3835
- function ih(e) {
3835
+ function oh(e) {
3836
3836
  return e[0];
3837
3837
  }
3838
3838
  function sl(e) {
3839
3839
  return e[e.length - 1];
3840
3840
  }
3841
- function oh(e, t) {
3841
+ function sh(e, t) {
3842
3842
  if (e.length < 2)
3843
3843
  return { x: 0, y: 0 };
3844
3844
  let n = e.length - 1, r = null;
@@ -3856,15 +3856,15 @@ function oh(e, t) {
3856
3856
  };
3857
3857
  return s.x === 1 / 0 && (s.x = 0), s.y === 1 / 0 && (s.y = 0), s;
3858
3858
  }
3859
- const al = 1e-4, sh = 1 - al, ah = 1 + al, ll = 0.01, lh = 0 - ll, ch = 0 + ll;
3859
+ const al = 1e-4, ah = 1 - al, lh = 1 + al, ll = 0.01, ch = 0 - ll, uh = 0 + ll;
3860
3860
  function ue(e) {
3861
3861
  return e.max - e.min;
3862
3862
  }
3863
- function uh(e, t, n) {
3863
+ function fh(e, t, n) {
3864
3864
  return Math.abs(e - t) <= n;
3865
3865
  }
3866
3866
  function Bo(e, t, n, r = 0.5) {
3867
- e.origin = r, e.originPoint = G(t.min, t.max, e.origin), e.scale = ue(n) / ue(t), e.translate = G(n.min, n.max, e.origin) - e.originPoint, (e.scale >= sh && e.scale <= ah || isNaN(e.scale)) && (e.scale = 1), (e.translate >= lh && e.translate <= ch || isNaN(e.translate)) && (e.translate = 0);
3867
+ e.origin = r, e.originPoint = G(t.min, t.max, e.origin), e.scale = ue(n) / ue(t), e.translate = G(n.min, n.max, e.origin) - e.originPoint, (e.scale >= ah && e.scale <= lh || isNaN(e.scale)) && (e.scale = 1), (e.translate >= ch && e.translate <= uh || isNaN(e.translate)) && (e.translate = 0);
3868
3868
  }
3869
3869
  function zt(e, t, n, r) {
3870
3870
  Bo(e.x, t.x, n.x, r ? r.originX : void 0), Bo(e.y, t.y, n.y, r ? r.originY : void 0);
@@ -3872,7 +3872,7 @@ function zt(e, t, n, r) {
3872
3872
  function _o(e, t, n) {
3873
3873
  e.min = n.min + t.min, e.max = e.min + ue(t);
3874
3874
  }
3875
- function fh(e, t, n) {
3875
+ function dh(e, t, n) {
3876
3876
  _o(e.x, t.x, n.x), _o(e.y, t.y, n.y);
3877
3877
  }
3878
3878
  function Io(e, t, n) {
@@ -3881,7 +3881,7 @@ function Io(e, t, n) {
3881
3881
  function Kt(e, t, n) {
3882
3882
  Io(e.x, t.x, n.x), Io(e.y, t.y, n.y);
3883
3883
  }
3884
- function dh(e, { min: t, max: n }, r) {
3884
+ function hh(e, { min: t, max: n }, r) {
3885
3885
  return t !== void 0 && e < t ? e = r ? G(t, e, r.min) : Math.max(e, t) : n !== void 0 && e > n && (e = r ? G(n, e, r.max) : Math.min(e, n)), e;
3886
3886
  }
3887
3887
  function Wo(e, t, n) {
@@ -3890,7 +3890,7 @@ function Wo(e, t, n) {
3890
3890
  max: n !== void 0 ? e.max + n - (e.max - e.min) : void 0
3891
3891
  };
3892
3892
  }
3893
- function hh(e, { top: t, left: n, bottom: r, right: i }) {
3893
+ function ph(e, { top: t, left: n, bottom: r, right: i }) {
3894
3894
  return {
3895
3895
  x: Wo(e.x, n, i),
3896
3896
  y: Wo(e.y, t, r)
@@ -3900,23 +3900,23 @@ function $o(e, t) {
3900
3900
  let n = t.min - e.min, r = t.max - e.max;
3901
3901
  return t.max - t.min < e.max - e.min && ([n, r] = [r, n]), { min: n, max: r };
3902
3902
  }
3903
- function ph(e, t) {
3903
+ function mh(e, t) {
3904
3904
  return {
3905
3905
  x: $o(e.x, t.x),
3906
3906
  y: $o(e.y, t.y)
3907
3907
  };
3908
3908
  }
3909
- function mh(e, t) {
3909
+ function gh(e, t) {
3910
3910
  let n = 0.5;
3911
3911
  const r = ue(e), i = ue(t);
3912
3912
  return i > r ? n = /* @__PURE__ */ bt(t.min, t.max - r, e.min) : r > i && (n = /* @__PURE__ */ bt(e.min, e.max - i, t.min)), Ce(0, 1, n);
3913
3913
  }
3914
- function gh(e, t) {
3914
+ function yh(e, t) {
3915
3915
  const n = {};
3916
3916
  return t.min !== void 0 && (n.min = t.min - e.min), t.max !== void 0 && (n.max = t.max - e.min), n;
3917
3917
  }
3918
3918
  const Nr = 0.35;
3919
- function yh(e = Nr) {
3919
+ function vh(e = Nr) {
3920
3920
  return e === !1 ? e = 0 : e === !0 && (e = Nr), {
3921
3921
  x: Uo(e, "left", "right"),
3922
3922
  y: Uo(e, "top", "bottom")
@@ -3952,10 +3952,10 @@ function cl({ top: e, left: t, right: n, bottom: r }) {
3952
3952
  y: { min: e, max: r }
3953
3953
  };
3954
3954
  }
3955
- function vh({ x: e, y: t }) {
3955
+ function xh({ x: e, y: t }) {
3956
3956
  return { top: t.min, right: e.max, bottom: t.max, left: e.min };
3957
3957
  }
3958
- function xh(e, t) {
3958
+ function wh(e, t) {
3959
3959
  if (!t)
3960
3960
  return e;
3961
3961
  const n = t({ x: e.left, y: e.top }), r = t({ x: e.right, y: e.bottom });
@@ -3995,7 +3995,7 @@ function fl(e, { x: t, y: n }) {
3995
3995
  _r(e.x, t.translate, t.scale, t.originPoint), _r(e.y, n.translate, n.scale, n.originPoint);
3996
3996
  }
3997
3997
  const Xo = 0.999999999999, qo = 1.0000000000001;
3998
- function wh(e, t, n, r = !1) {
3998
+ function bh(e, t, n, r = !1) {
3999
3999
  const i = n.length;
4000
4000
  if (!i)
4001
4001
  return;
@@ -4022,14 +4022,14 @@ function vt(e, t) {
4022
4022
  Zo(e.x, t.x, t.scaleX, t.scale, t.originX), Zo(e.y, t.y, t.scaleY, t.scale, t.originY);
4023
4023
  }
4024
4024
  function dl(e, t) {
4025
- return cl(xh(e.getBoundingClientRect(), t));
4025
+ return cl(wh(e.getBoundingClientRect(), t));
4026
4026
  }
4027
- function bh(e, t, n) {
4027
+ function Ph(e, t, n) {
4028
4028
  const r = dl(e, n), { scroll: i } = t;
4029
4029
  return i && (yt(r.x, i.offset.x), yt(r.y, i.offset.y)), r;
4030
4030
  }
4031
- const hl = ({ current: e }) => e ? e.ownerDocument.defaultView : null, Ph = /* @__PURE__ */ new WeakMap();
4032
- class Sh {
4031
+ const hl = ({ current: e }) => e ? e.ownerDocument.defaultView : null, Sh = /* @__PURE__ */ new WeakMap();
4032
+ class Th {
4033
4033
  constructor(t) {
4034
4034
  this.openDragLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = { x: 0, y: 0 }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = Z(), this.visualElement = t;
4035
4035
  }
@@ -4042,7 +4042,7 @@ class Sh {
4042
4042
  f ? this.pauseAnimation() : this.stopAnimation(), n && this.snapToCursor(tn(u).point);
4043
4043
  }, o = (u, f) => {
4044
4044
  const { drag: d, dragPropagation: h, onDragStart: g } = this.getProps();
4045
- if (d && !h && (this.openDragLock && this.openDragLock(), this.openDragLock = mf(d), !this.openDragLock))
4045
+ if (d && !h && (this.openDragLock && this.openDragLock(), this.openDragLock = gf(d), !this.openDragLock))
4046
4046
  return;
4047
4047
  this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), he((y) => {
4048
4048
  let v = this.getAxisMotionValue(y).get() || 0;
@@ -4063,7 +4063,7 @@ class Sh {
4063
4063
  return;
4064
4064
  const { offset: y } = f;
4065
4065
  if (h && this.currentDirection === null) {
4066
- this.currentDirection = Th(y), this.currentDirection !== null && g && g(this.currentDirection);
4066
+ this.currentDirection = Ah(y), this.currentDirection !== null && g && g(this.currentDirection);
4067
4067
  return;
4068
4068
  }
4069
4069
  this.updateAxis("x", f.point, y), this.updateAxis("y", f.point, y), this.visualElement.render(), m && m(u, f);
@@ -4105,13 +4105,13 @@ class Sh {
4105
4105
  return;
4106
4106
  const o = this.getAxisMotionValue(t);
4107
4107
  let s = this.originPoint[t] + r[t];
4108
- this.constraints && this.constraints[t] && (s = dh(s, this.constraints[t], this.elastic[t])), o.set(s);
4108
+ this.constraints && this.constraints[t] && (s = hh(s, this.constraints[t], this.elastic[t])), o.set(s);
4109
4109
  }
4110
4110
  resolveConstraints() {
4111
4111
  var t;
4112
4112
  const { dragConstraints: n, dragElastic: r } = this.getProps(), i = this.visualElement.projection && !this.visualElement.projection.layout ? this.visualElement.projection.measure(!1) : (t = this.visualElement.projection) === null || t === void 0 ? void 0 : t.layout, o = this.constraints;
4113
- n && pt(n) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : n && i ? this.constraints = hh(i.layoutBox, n) : this.constraints = !1, this.elastic = yh(r), o !== this.constraints && i && this.constraints && !this.hasMutatedConstraints && he((s) => {
4114
- this.constraints !== !1 && this.getAxisMotionValue(s) && (this.constraints[s] = gh(i.layoutBox[s], this.constraints[s]));
4113
+ n && pt(n) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : n && i ? this.constraints = ph(i.layoutBox, n) : this.constraints = !1, this.elastic = vh(r), o !== this.constraints && i && this.constraints && !this.hasMutatedConstraints && he((s) => {
4114
+ this.constraints !== !1 && this.getAxisMotionValue(s) && (this.constraints[s] = yh(i.layoutBox[s], this.constraints[s]));
4115
4115
  });
4116
4116
  }
4117
4117
  resolveRefConstraints() {
@@ -4123,10 +4123,10 @@ class Sh {
4123
4123
  const { projection: i } = this.visualElement;
4124
4124
  if (!i || !i.layout)
4125
4125
  return !1;
4126
- const o = bh(r, i.root, this.visualElement.getTransformPagePoint());
4127
- let s = ph(i.layout.layoutBox, o);
4126
+ const o = Ph(r, i.root, this.visualElement.getTransformPagePoint());
4127
+ let s = mh(i.layout.layoutBox, o);
4128
4128
  if (n) {
4129
- const a = n(vh(s));
4129
+ const a = n(xh(s));
4130
4130
  this.hasMutatedConstraints = !!a, a && (s = cl(a));
4131
4131
  }
4132
4132
  return s;
@@ -4208,7 +4208,7 @@ class Sh {
4208
4208
  const a = this.getAxisMotionValue(s);
4209
4209
  if (a && this.constraints !== !1) {
4210
4210
  const l = a.get();
4211
- i[s] = mh({ min: l, max: l }, this.constraints[s]);
4211
+ i[s] = gh({ min: l, max: l }, this.constraints[s]);
4212
4212
  }
4213
4213
  });
4214
4214
  const { transformTemplate: o } = this.visualElement.getProps();
@@ -4222,7 +4222,7 @@ class Sh {
4222
4222
  addListeners() {
4223
4223
  if (!this.visualElement.current)
4224
4224
  return;
4225
- Ph.set(this.visualElement, this);
4225
+ Sh.set(this.visualElement, this);
4226
4226
  const t = this.visualElement.current, n = Ut(t, "pointerdown", (l) => {
4227
4227
  const { drag: c, dragListener: u = !0 } = this.getProps();
4228
4228
  c && u && this.start(l);
@@ -4257,13 +4257,13 @@ class Sh {
4257
4257
  function pn(e, t, n) {
4258
4258
  return (t === !0 || t === e) && (n === null || n === e);
4259
4259
  }
4260
- function Th(e, t = 10) {
4260
+ function Ah(e, t = 10) {
4261
4261
  let n = null;
4262
4262
  return Math.abs(e.y) > t ? n = "y" : Math.abs(e.x) > t && (n = "x"), n;
4263
4263
  }
4264
- class Ah extends $e {
4264
+ class Eh extends $e {
4265
4265
  constructor(t) {
4266
- super(t), this.removeGroupControls = ae, this.removeListeners = ae, this.controls = new Sh(t);
4266
+ super(t), this.removeGroupControls = ae, this.removeListeners = ae, this.controls = new Th(t);
4267
4267
  }
4268
4268
  mount() {
4269
4269
  const { dragControls: t } = this.node.getProps();
@@ -4276,7 +4276,7 @@ class Ah extends $e {
4276
4276
  const Jo = (e) => (t, n) => {
4277
4277
  e && U.postRender(() => e(t, n));
4278
4278
  };
4279
- class Eh extends $e {
4279
+ class Ch extends $e {
4280
4280
  constructor() {
4281
4281
  super(...arguments), this.removePointerDownListener = ae;
4282
4282
  }
@@ -4334,7 +4334,7 @@ const Bt = {
4334
4334
  const n = Qo(e, t.target.x), r = Qo(e, t.target.y);
4335
4335
  return `${n}% ${r}%`;
4336
4336
  }
4337
- }, Ch = {
4337
+ }, Rh = {
4338
4338
  correct: (e, { treeScale: t, projectionDelta: n }) => {
4339
4339
  const r = e, i = Ne.parse(e);
4340
4340
  if (i.length > 5)
@@ -4345,7 +4345,7 @@ const Bt = {
4345
4345
  return typeof i[2 + s] == "number" && (i[2 + s] /= c), typeof i[3 + s] == "number" && (i[3 + s] /= c), o(i);
4346
4346
  }
4347
4347
  };
4348
- class Rh extends qc {
4348
+ class Dh extends qc {
4349
4349
  /**
4350
4350
  * This only mounts projection nodes for components that
4351
4351
  * need measuring, we might want to do it for all components
@@ -4353,7 +4353,7 @@ class Rh extends qc {
4353
4353
  */
4354
4354
  componentDidMount() {
4355
4355
  const { visualElement: t, layoutGroup: n, switchLayoutGroup: r, layoutId: i } = this.props, { projection: o } = t;
4356
- Yu(Dh), o && (n.group && n.group.add(o), r && r.register && i && r.register(o), o.root.didUpdate(), o.addEventListener("animationComplete", () => {
4356
+ Gu(Oh), o && (n.group && n.group.add(o), r && r.register && i && r.register(o), o.root.didUpdate(), o.addEventListener("animationComplete", () => {
4357
4357
  this.safeToRemove();
4358
4358
  }), o.setOptions({
4359
4359
  ...o.options,
@@ -4387,9 +4387,9 @@ class Rh extends qc {
4387
4387
  }
4388
4388
  function pl(e) {
4389
4389
  const [t, n] = Zs(), r = re(Zr);
4390
- return A.jsx(Rh, { ...e, layoutGroup: r, switchLayoutGroup: re(ia), isPresent: t, safeToRemove: n });
4390
+ return A.jsx(Dh, { ...e, layoutGroup: r, switchLayoutGroup: re(ia), isPresent: t, safeToRemove: n });
4391
4391
  }
4392
- const Dh = {
4392
+ const Oh = {
4393
4393
  borderRadius: {
4394
4394
  ...Bt,
4395
4395
  applyTo: [
@@ -4403,17 +4403,17 @@ const Dh = {
4403
4403
  borderTopRightRadius: Bt,
4404
4404
  borderBottomLeftRadius: Bt,
4405
4405
  borderBottomRightRadius: Bt,
4406
- boxShadow: Ch
4406
+ boxShadow: Rh
4407
4407
  };
4408
- function Oh(e, t, n) {
4408
+ function Mh(e, t, n) {
4409
4409
  const r = ie(e) ? e : Gt(e);
4410
4410
  return r.start(Oi("", r, t, n)), r.animation;
4411
4411
  }
4412
- function Mh(e) {
4412
+ function Vh(e) {
4413
4413
  return e instanceof SVGElement && e.tagName !== "svg";
4414
4414
  }
4415
- const Vh = (e, t) => e.depth - t.depth;
4416
- class kh {
4415
+ const kh = (e, t) => e.depth - t.depth;
4416
+ class Lh {
4417
4417
  constructor() {
4418
4418
  this.children = [], this.isDirty = !1;
4419
4419
  }
@@ -4424,25 +4424,25 @@ class kh {
4424
4424
  wi(this.children, t), this.isDirty = !0;
4425
4425
  }
4426
4426
  forEach(t) {
4427
- this.isDirty && this.children.sort(Vh), this.isDirty = !1, this.children.forEach(t);
4427
+ this.isDirty && this.children.sort(kh), this.isDirty = !1, this.children.forEach(t);
4428
4428
  }
4429
4429
  }
4430
- function Lh(e, t) {
4430
+ function jh(e, t) {
4431
4431
  const n = we.now(), r = ({ timestamp: i }) => {
4432
4432
  const o = i - n;
4433
4433
  o >= t && (Fe(r), e(o - t));
4434
4434
  };
4435
4435
  return U.read(r, !0), () => Fe(r);
4436
4436
  }
4437
- const ml = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], jh = ml.length, es = (e) => typeof e == "string" ? parseFloat(e) : e, ts = (e) => typeof e == "number" || O.test(e);
4438
- function Fh(e, t, n, r, i, o) {
4437
+ const ml = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], Fh = ml.length, es = (e) => typeof e == "string" ? parseFloat(e) : e, ts = (e) => typeof e == "number" || O.test(e);
4438
+ function Nh(e, t, n, r, i, o) {
4439
4439
  i ? (e.opacity = G(
4440
4440
  0,
4441
4441
  // TODO Reinstate this if only child
4442
4442
  n.opacity !== void 0 ? n.opacity : 1,
4443
- Nh(r)
4444
- ), e.opacityExit = G(t.opacity !== void 0 ? t.opacity : 1, 0, Bh(r))) : o && (e.opacity = G(t.opacity !== void 0 ? t.opacity : 1, n.opacity !== void 0 ? n.opacity : 1, r));
4445
- for (let s = 0; s < jh; s++) {
4443
+ Bh(r)
4444
+ ), e.opacityExit = G(t.opacity !== void 0 ? t.opacity : 1, 0, _h(r))) : o && (e.opacity = G(t.opacity !== void 0 ? t.opacity : 1, n.opacity !== void 0 ? n.opacity : 1, r));
4445
+ for (let s = 0; s < Fh; s++) {
4446
4446
  const a = `border${ml[s]}Radius`;
4447
4447
  let l = ns(t, a), c = ns(n, a);
4448
4448
  if (l === void 0 && c === void 0)
@@ -4454,7 +4454,7 @@ function Fh(e, t, n, r, i, o) {
4454
4454
  function ns(e, t) {
4455
4455
  return e[t] !== void 0 ? e[t] : e.borderRadius;
4456
4456
  }
4457
- const Nh = /* @__PURE__ */ gl(0, 0.5, La), Bh = /* @__PURE__ */ gl(0.5, 0.95, ae);
4457
+ const Bh = /* @__PURE__ */ gl(0, 0.5, La), _h = /* @__PURE__ */ gl(0.5, 0.95, ae);
4458
4458
  function gl(e, t, n) {
4459
4459
  return (r) => r < e ? 0 : r > t ? 1 : n(/* @__PURE__ */ bt(e, t, r));
4460
4460
  }
@@ -4470,18 +4470,18 @@ function is(e, t) {
4470
4470
  function os(e, t, n, r, i) {
4471
4471
  return e -= t, e = Ln(e, 1 / n, r), i !== void 0 && (e = Ln(e, 1 / i, r)), e;
4472
4472
  }
4473
- function _h(e, t = 0, n = 1, r = 0.5, i, o = e, s = e) {
4473
+ function Ih(e, t = 0, n = 1, r = 0.5, i, o = e, s = e) {
4474
4474
  if (xe.test(t) && (t = parseFloat(t), t = G(s.min, s.max, t / 100) - s.min), typeof t != "number")
4475
4475
  return;
4476
4476
  let a = G(o.min, o.max, r);
4477
4477
  e === o && (a -= t), e.min = os(e.min, t, n, a, i), e.max = os(e.max, t, n, a, i);
4478
4478
  }
4479
4479
  function ss(e, t, [n, r, i], o, s) {
4480
- _h(e, t[n], t[r], t[i], t.scale, o, s);
4480
+ Ih(e, t[n], t[r], t[i], t.scale, o, s);
4481
4481
  }
4482
- const Ih = ["x", "scaleX", "originX"], Wh = ["y", "scaleY", "originY"];
4482
+ const Wh = ["x", "scaleX", "originX"], $h = ["y", "scaleY", "originY"];
4483
4483
  function as(e, t, n, r) {
4484
- ss(e.x, t, Ih, n ? n.x : void 0, r ? r.x : void 0), ss(e.y, t, Wh, n ? n.y : void 0, r ? r.y : void 0);
4484
+ ss(e.x, t, Wh, n ? n.x : void 0, r ? r.x : void 0), ss(e.y, t, $h, n ? n.y : void 0, r ? r.y : void 0);
4485
4485
  }
4486
4486
  function ls(e) {
4487
4487
  return e.translate === 0 && e.scale === 1;
@@ -4492,7 +4492,7 @@ function yl(e) {
4492
4492
  function cs(e, t) {
4493
4493
  return e.min === t.min && e.max === t.max;
4494
4494
  }
4495
- function $h(e, t) {
4495
+ function Uh(e, t) {
4496
4496
  return cs(e.x, t.x) && cs(e.y, t.y);
4497
4497
  }
4498
4498
  function us(e, t) {
@@ -4507,7 +4507,7 @@ function fs(e) {
4507
4507
  function ds(e, t) {
4508
4508
  return e.translate === t.translate && e.scale === t.scale && e.originPoint === t.originPoint;
4509
4509
  }
4510
- class Uh {
4510
+ class zh {
4511
4511
  constructor() {
4512
4512
  this.members = [];
4513
4513
  }
@@ -4561,7 +4561,7 @@ class Uh {
4561
4561
  this.lead && this.lead.snapshot && (this.lead.snapshot = void 0);
4562
4562
  }
4563
4563
  }
4564
- function zh(e, t, n) {
4564
+ function Kh(e, t, n) {
4565
4565
  let r = "";
4566
4566
  const i = e.x.translate / t.x, o = e.y.translate / t.y, s = (n == null ? void 0 : n.z) || 0;
4567
4567
  if ((i || o || s) && (r = `translate3d(${i}px, ${o}px, ${s}px) `), (t.x !== 1 || t.y !== 1) && (r += `scale(${1 / t.x}, ${1 / t.y}) `), n) {
@@ -4576,8 +4576,8 @@ const Qe = {
4576
4576
  totalNodes: 0,
4577
4577
  resolvedTargetDeltas: 0,
4578
4578
  recalculatedProjection: 0
4579
- }, Wt = typeof window < "u" && window.MotionDebug !== void 0, dr = ["", "X", "Y", "Z"], Kh = { visibility: "hidden" }, hs = 1e3;
4580
- let Hh = 0;
4579
+ }, Wt = typeof window < "u" && window.MotionDebug !== void 0, dr = ["", "X", "Y", "Z"], Hh = { visibility: "hidden" }, hs = 1e3;
4580
+ let Yh = 0;
4581
4581
  function hr(e, t, n, r) {
4582
4582
  const { latestValues: i } = t;
4583
4583
  i[e] && (n[e] = i[e], t.setStaticValue(e, 0), r && (r[e] = 0));
@@ -4599,14 +4599,14 @@ function xl(e) {
4599
4599
  function wl({ attachResizeListener: e, defaultParent: t, measureScroll: n, checkIsScrollRoot: r, resetTransform: i }) {
4600
4600
  return class {
4601
4601
  constructor(s = {}, a = t == null ? void 0 : t()) {
4602
- this.id = Hh++, 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.hasCheckedOptimisedAppear = !1, this.treeScale = { x: 1, y: 1 }, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.updateScheduled = !1, this.scheduleUpdate = () => this.update(), this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
4602
+ this.id = Yh++, 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.hasCheckedOptimisedAppear = !1, this.treeScale = { x: 1, y: 1 }, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.updateScheduled = !1, this.scheduleUpdate = () => this.update(), this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
4603
4603
  this.isUpdating && (this.isUpdating = !1, this.clearAllSnapshots());
4604
4604
  }, this.updateProjection = () => {
4605
- this.projectionUpdateScheduled = !1, Wt && (Qe.totalNodes = Qe.resolvedTargetDeltas = Qe.recalculatedProjection = 0), this.nodes.forEach(Xh), this.nodes.forEach(ep), this.nodes.forEach(tp), this.nodes.forEach(qh), Wt && window.MotionDebug.record(Qe);
4605
+ this.projectionUpdateScheduled = !1, Wt && (Qe.totalNodes = Qe.resolvedTargetDeltas = Qe.recalculatedProjection = 0), this.nodes.forEach(qh), this.nodes.forEach(tp), this.nodes.forEach(np), this.nodes.forEach(Zh), Wt && window.MotionDebug.record(Qe);
4606
4606
  }, this.resolvedRelativeTargetAt = 0, 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;
4607
4607
  for (let l = 0; l < this.path.length; l++)
4608
4608
  this.path[l].shouldResetTransform = !0;
4609
- this.root === this && (this.nodes = new kh());
4609
+ this.root === this && (this.nodes = new Lh());
4610
4610
  }
4611
4611
  addEventListener(s, a) {
4612
4612
  return this.eventHandlers.has(s) || this.eventHandlers.set(s, new bi()), this.eventHandlers.get(s).add(a);
@@ -4624,13 +4624,13 @@ function wl({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
4624
4624
  mount(s, a = this.root.hasTreeAnimated) {
4625
4625
  if (this.instance)
4626
4626
  return;
4627
- this.isSVG = Mh(s), this.instance = s;
4627
+ this.isSVG = Vh(s), this.instance = s;
4628
4628
  const { layoutId: l, layout: c, visualElement: u } = this.options;
4629
4629
  if (u && !u.current && u.mount(s), this.root.nodes.add(this), this.parent && this.parent.children.add(this), a && (c || l) && (this.isLayoutDirty = !0), e) {
4630
4630
  let f;
4631
4631
  const d = () => this.root.updateBlockedByResize = !1;
4632
4632
  e(s, () => {
4633
- this.root.updateBlockedByResize = !0, f && f(), f = Lh(d, 250), Sn.hasAnimatedSinceResize && (Sn.hasAnimatedSinceResize = !1, this.nodes.forEach(ms));
4633
+ this.root.updateBlockedByResize = !0, f && f(), f = jh(d, 250), Sn.hasAnimatedSinceResize && (Sn.hasAnimatedSinceResize = !1, this.nodes.forEach(ms));
4634
4634
  });
4635
4635
  }
4636
4636
  l && this.root.registerSharedNode(l, this), this.options.animate !== !1 && u && (l || c) && this.addEventListener("didUpdate", ({ delta: f, hasLayoutChanged: d, hasRelativeTargetChanged: h, layout: g }) => {
@@ -4638,7 +4638,7 @@ function wl({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
4638
4638
  this.target = void 0, this.relativeTarget = void 0;
4639
4639
  return;
4640
4640
  }
4641
- const m = this.options.transition || u.getDefaultTransition() || sp, { onLayoutAnimationStart: y, onLayoutAnimationComplete: v } = u.getProps(), w = !this.targetLayout || !vl(this.targetLayout, g) || h, P = !d && h;
4641
+ const m = this.options.transition || u.getDefaultTransition() || ap, { onLayoutAnimationStart: y, onLayoutAnimationComplete: v } = u.getProps(), w = !this.targetLayout || !vl(this.targetLayout, g) || h, P = !d && h;
4642
4642
  if (this.options.layoutRoot || this.resumeFrom && this.resumeFrom.instance || P || d && (w || !this.currentAnimation)) {
4643
4643
  this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0), this.setAnimationOrigin(f, P);
4644
4644
  const S = {
@@ -4672,7 +4672,7 @@ function wl({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
4672
4672
  }
4673
4673
  // Note: currently only running on root node
4674
4674
  startUpdate() {
4675
- this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(np), this.animationId++);
4675
+ this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(rp), this.animationId++);
4676
4676
  }
4677
4677
  getTransformTemplate() {
4678
4678
  const { visualElement: s } = this.options;
@@ -4701,7 +4701,7 @@ function wl({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
4701
4701
  this.unblockUpdate(), this.clearAllSnapshots(), this.nodes.forEach(ps);
4702
4702
  return;
4703
4703
  }
4704
- this.isUpdating || this.nodes.forEach(Jh), this.isUpdating = !1, this.nodes.forEach(Qh), this.nodes.forEach(Yh), this.nodes.forEach(Gh), this.clearAllSnapshots();
4704
+ this.isUpdating || this.nodes.forEach(Qh), this.isUpdating = !1, this.nodes.forEach(ep), this.nodes.forEach(Gh), this.nodes.forEach(Xh), this.clearAllSnapshots();
4705
4705
  const a = we.now();
4706
4706
  te.delta = Ce(0, 1e3 / 60, a - te.timestamp), te.timestamp = a, te.isProcessing = !0, ir.update.process(te), ir.preRender.process(te), ir.render.process(te), te.isProcessing = !1;
4707
4707
  }
@@ -4709,7 +4709,7 @@ function wl({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
4709
4709
  this.updateScheduled || (this.updateScheduled = !0, oi.read(this.scheduleUpdate));
4710
4710
  }
4711
4711
  clearAllSnapshots() {
4712
- this.nodes.forEach(Zh), this.sharedNodes.forEach(rp);
4712
+ this.nodes.forEach(Jh), this.sharedNodes.forEach(ip);
4713
4713
  }
4714
4714
  scheduleUpdateProjection() {
4715
4715
  this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, U.preRender(this.updateProjection, !1, !0));
@@ -4758,7 +4758,7 @@ function wl({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
4758
4758
  measure(s = !0) {
4759
4759
  const a = this.measurePageBox();
4760
4760
  let l = this.removeElementScroll(a);
4761
- return s && (l = this.removeTransform(l)), ap(l), {
4761
+ return s && (l = this.removeTransform(l)), lp(l), {
4762
4762
  animationId: this.root.animationId,
4763
4763
  measuredBox: a,
4764
4764
  layoutBox: l,
@@ -4772,7 +4772,7 @@ function wl({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
4772
4772
  if (!a)
4773
4773
  return Z();
4774
4774
  const l = a.measureViewportBox();
4775
- if (!(((s = this.scroll) === null || s === void 0 ? void 0 : s.wasRoot) || this.path.some(lp))) {
4775
+ if (!(((s = this.scroll) === null || s === void 0 ? void 0 : s.wasRoot) || this.path.some(cp))) {
4776
4776
  const { scroll: u } = this.root;
4777
4777
  u && (yt(l.x, u.offset.x), yt(l.y, u.offset.y));
4778
4778
  }
@@ -4844,7 +4844,7 @@ function wl({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
4844
4844
  h && h.layout && this.animationProgress !== 1 ? (this.relativeParent = h, this.forceRelativeParentToResolveTarget(), this.relativeTarget = Z(), this.relativeTargetOrigin = Z(), Kt(this.relativeTargetOrigin, this.layout.layoutBox, h.layout.layoutBox), de(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
4845
4845
  }
4846
4846
  if (!(!this.relativeTarget && !this.targetDelta)) {
4847
- if (this.target || (this.target = Z(), this.targetWithTransforms = Z()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), fh(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : de(this.target, this.layout.layoutBox), fl(this.target, this.targetDelta)) : de(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget) {
4847
+ if (this.target || (this.target = Z(), this.targetWithTransforms = Z()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), dh(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : de(this.target, this.layout.layoutBox), fl(this.target, this.targetDelta)) : de(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget) {
4848
4848
  this.attemptToResolveRelativeTarget = !1;
4849
4849
  const h = this.getClosestProjectingParent();
4850
4850
  h && !!h.resumingFrom == !!this.resumingFrom && !h.options.layoutScroll && h.target && this.animationProgress !== 1 ? (this.relativeParent = h, this.forceRelativeParentToResolveTarget(), this.relativeTarget = Z(), this.relativeTargetOrigin = Z(), Kt(this.relativeTargetOrigin, this.target, h.target), de(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
@@ -4871,7 +4871,7 @@ function wl({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
4871
4871
  return;
4872
4872
  de(this.layoutCorrected, this.layout.layoutBox);
4873
4873
  const d = this.treeScale.x, h = this.treeScale.y;
4874
- wh(this.layoutCorrected, this.treeScale, this.path, l), a.layout && !a.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (a.target = a.layout.layoutBox, a.targetWithTransforms = Z());
4874
+ bh(this.layoutCorrected, this.treeScale, this.path, l), a.layout && !a.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (a.target = a.layout.layoutBox, a.targetWithTransforms = Z());
4875
4875
  const { target: g } = a;
4876
4876
  if (!g) {
4877
4877
  this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
@@ -4899,17 +4899,17 @@ function wl({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
4899
4899
  setAnimationOrigin(s, a = !1) {
4900
4900
  const l = this.snapshot, c = l ? l.latestValues : {}, u = { ...this.latestValues }, f = gt();
4901
4901
  (!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !a;
4902
- const d = Z(), h = l ? l.source : void 0, g = this.layout ? this.layout.source : void 0, m = h !== g, y = this.getStack(), v = !y || y.members.length <= 1, w = !!(m && !v && this.options.crossfade === !0 && !this.path.some(op));
4902
+ const d = Z(), h = l ? l.source : void 0, g = this.layout ? this.layout.source : void 0, m = h !== g, y = this.getStack(), v = !y || y.members.length <= 1, w = !!(m && !v && this.options.crossfade === !0 && !this.path.some(sp));
4903
4903
  this.animationProgress = 0;
4904
4904
  let P;
4905
4905
  this.mixTargetDelta = (S) => {
4906
4906
  const b = S / 1e3;
4907
- gs(f.x, s.x, b), gs(f.y, s.y, b), this.setTargetDelta(f), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Kt(d, this.layout.layoutBox, this.relativeParent.layout.layoutBox), ip(this.relativeTarget, this.relativeTargetOrigin, d, b), P && $h(this.relativeTarget, P) && (this.isProjectionDirty = !1), P || (P = Z()), de(P, this.relativeTarget)), m && (this.animationValues = u, Fh(u, c, this.latestValues, b, w, v)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = b;
4907
+ gs(f.x, s.x, b), gs(f.y, s.y, b), this.setTargetDelta(f), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Kt(d, this.layout.layoutBox, this.relativeParent.layout.layoutBox), op(this.relativeTarget, this.relativeTargetOrigin, d, b), P && Uh(this.relativeTarget, P) && (this.isProjectionDirty = !1), P || (P = Z()), de(P, this.relativeTarget)), m && (this.animationValues = u, Nh(u, c, this.latestValues, b, w, v)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = b;
4908
4908
  }, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
4909
4909
  }
4910
4910
  startAnimation(s) {
4911
4911
  this.notifyListeners("animationStart"), this.currentAnimation && this.currentAnimation.stop(), this.resumingFrom && this.resumingFrom.currentAnimation && this.resumingFrom.currentAnimation.stop(), this.pendingAnimation && (Fe(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = U.update(() => {
4912
- Sn.hasAnimatedSinceResize = !0, this.currentAnimation = Oh(0, hs, {
4912
+ Sn.hasAnimatedSinceResize = !0, this.currentAnimation = Mh(0, hs, {
4913
4913
  ...s,
4914
4914
  onUpdate: (a) => {
4915
4915
  this.mixTargetDelta(a), s.onUpdate && s.onUpdate(a);
@@ -4943,7 +4943,7 @@ function wl({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
4943
4943
  }
4944
4944
  }
4945
4945
  registerSharedNode(s, a) {
4946
- this.sharedNodes.has(s) || this.sharedNodes.set(s, new Uh()), this.sharedNodes.get(s).add(a);
4946
+ this.sharedNodes.has(s) || this.sharedNodes.set(s, new zh()), this.sharedNodes.get(s).add(a);
4947
4947
  const c = a.options.initialPromotionConfig;
4948
4948
  a.promote({
4949
4949
  transition: c ? c.transition : void 0,
@@ -4999,7 +4999,7 @@ function wl({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
4999
4999
  if (!this.instance || this.isSVG)
5000
5000
  return;
5001
5001
  if (!this.isVisible)
5002
- return Kh;
5002
+ return Hh;
5003
5003
  const c = {
5004
5004
  visibility: ""
5005
5005
  }, u = this.getTransformTemplate();
@@ -5011,7 +5011,7 @@ function wl({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
5011
5011
  return this.options.layoutId && (m.opacity = this.latestValues.opacity !== void 0 ? this.latestValues.opacity : 1, m.pointerEvents = bn(s == null ? void 0 : s.pointerEvents) || ""), this.hasProjected && !Je(this.latestValues) && (m.transform = u ? u({}, "") : "none", this.hasProjected = !1), m;
5012
5012
  }
5013
5013
  const d = f.animationValues || f.latestValues;
5014
- this.applyTransformsToTarget(), c.transform = zh(this.projectionDeltaWithTransform, this.treeScale, d), u && (c.transform = u(d, c.transform));
5014
+ this.applyTransformsToTarget(), c.transform = Kh(this.projectionDeltaWithTransform, this.treeScale, d), u && (c.transform = u(d, c.transform));
5015
5015
  const { x: h, y: g } = this.projectionDelta;
5016
5016
  c.transformOrigin = `${h.origin * 100}% ${g.origin * 100}% 0`, f.animationValues ? c.opacity = f === this ? (l = (a = d.opacity) !== null && a !== void 0 ? a : this.latestValues.opacity) !== null && l !== void 0 ? l : 1 : this.preserveOpacity ? this.latestValues.opacity : d.opacityExit : c.opacity = f === this ? d.opacity !== void 0 ? d.opacity : "" : d.opacityExit !== void 0 ? d.opacityExit : 0;
5017
5017
  for (const m in Dn) {
@@ -5039,10 +5039,10 @@ function wl({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
5039
5039
  }
5040
5040
  };
5041
5041
  }
5042
- function Yh(e) {
5042
+ function Gh(e) {
5043
5043
  e.updateLayout();
5044
5044
  }
5045
- function Gh(e) {
5045
+ function Xh(e) {
5046
5046
  var t;
5047
5047
  const n = ((t = e.resumeFrom) === null || t === void 0 ? void 0 : t.snapshot) || e.snapshot;
5048
5048
  if (e.isLead() && e.layout && n && e.hasListeners("didUpdate")) {
@@ -5086,38 +5086,38 @@ function Gh(e) {
5086
5086
  }
5087
5087
  e.options.transition = void 0;
5088
5088
  }
5089
- function Xh(e) {
5089
+ function qh(e) {
5090
5090
  Wt && Qe.totalNodes++, e.parent && (e.isProjecting() || (e.isProjectionDirty = e.parent.isProjectionDirty), e.isSharedProjectionDirty || (e.isSharedProjectionDirty = !!(e.isProjectionDirty || e.parent.isProjectionDirty || e.parent.isSharedProjectionDirty)), e.isTransformDirty || (e.isTransformDirty = e.parent.isTransformDirty));
5091
5091
  }
5092
- function qh(e) {
5092
+ function Zh(e) {
5093
5093
  e.isProjectionDirty = e.isSharedProjectionDirty = e.isTransformDirty = !1;
5094
5094
  }
5095
- function Zh(e) {
5095
+ function Jh(e) {
5096
5096
  e.clearSnapshot();
5097
5097
  }
5098
5098
  function ps(e) {
5099
5099
  e.clearMeasurements();
5100
5100
  }
5101
- function Jh(e) {
5101
+ function Qh(e) {
5102
5102
  e.isLayoutDirty = !1;
5103
5103
  }
5104
- function Qh(e) {
5104
+ function ep(e) {
5105
5105
  const { visualElement: t } = e.options;
5106
5106
  t && t.getProps().onBeforeLayoutMeasure && t.notify("BeforeLayoutMeasure"), e.resetTransform();
5107
5107
  }
5108
5108
  function ms(e) {
5109
5109
  e.finishAnimation(), e.targetDelta = e.relativeTarget = e.target = void 0, e.isProjectionDirty = !0;
5110
5110
  }
5111
- function ep(e) {
5111
+ function tp(e) {
5112
5112
  e.resolveTargetDelta();
5113
5113
  }
5114
- function tp(e) {
5114
+ function np(e) {
5115
5115
  e.calcProjection();
5116
5116
  }
5117
- function np(e) {
5117
+ function rp(e) {
5118
5118
  e.resetSkewAndRotation();
5119
5119
  }
5120
- function rp(e) {
5120
+ function ip(e) {
5121
5121
  e.removeLeadSnapshot();
5122
5122
  }
5123
5123
  function gs(e, t, n) {
@@ -5126,30 +5126,30 @@ function gs(e, t, n) {
5126
5126
  function ys(e, t, n, r) {
5127
5127
  e.min = G(t.min, n.min, r), e.max = G(t.max, n.max, r);
5128
5128
  }
5129
- function ip(e, t, n, r) {
5129
+ function op(e, t, n, r) {
5130
5130
  ys(e.x, t.x, n.x, r), ys(e.y, t.y, n.y, r);
5131
5131
  }
5132
- function op(e) {
5132
+ function sp(e) {
5133
5133
  return e.animationValues && e.animationValues.opacityExit !== void 0;
5134
5134
  }
5135
- const sp = {
5135
+ const ap = {
5136
5136
  duration: 0.45,
5137
5137
  ease: [0.4, 0, 0.1, 1]
5138
5138
  }, vs = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), xs = vs("applewebkit/") && !vs("chrome/") ? Math.round : ae;
5139
5139
  function ws(e) {
5140
5140
  e.min = xs(e.min), e.max = xs(e.max);
5141
5141
  }
5142
- function ap(e) {
5142
+ function lp(e) {
5143
5143
  ws(e.x), ws(e.y);
5144
5144
  }
5145
5145
  function bl(e, t, n) {
5146
- return e === "position" || e === "preserve-aspect" && !uh(fs(t), fs(n), 0.2);
5146
+ return e === "position" || e === "preserve-aspect" && !fh(fs(t), fs(n), 0.2);
5147
5147
  }
5148
- function lp(e) {
5148
+ function cp(e) {
5149
5149
  var t;
5150
5150
  return e !== e.root && ((t = e.scroll) === null || t === void 0 ? void 0 : t.wasRoot);
5151
5151
  }
5152
- const cp = wl({
5152
+ const up = wl({
5153
5153
  attachResizeListener: (e, t) => qt(e, "resize", t),
5154
5154
  measureScroll: () => ({
5155
5155
  x: document.documentElement.scrollLeft || document.body.scrollLeft,
@@ -5165,7 +5165,7 @@ const cp = wl({
5165
5165
  }),
5166
5166
  defaultParent: () => {
5167
5167
  if (!pr.current) {
5168
- const e = new cp({});
5168
+ const e = new up({});
5169
5169
  e.mount(window), e.setOptions({ layoutScroll: !0 }), pr.current = e;
5170
5170
  }
5171
5171
  return pr.current;
@@ -5174,12 +5174,12 @@ const cp = wl({
5174
5174
  e.style.transform = t !== void 0 ? t : "none";
5175
5175
  },
5176
5176
  checkIsScrollRoot: (e) => window.getComputedStyle(e).position === "fixed"
5177
- }), up = {
5177
+ }), fp = {
5178
5178
  pan: {
5179
- Feature: Eh
5179
+ Feature: Ch
5180
5180
  },
5181
5181
  drag: {
5182
- Feature: Ah,
5182
+ Feature: Eh,
5183
5183
  ProjectionNode: Pl,
5184
5184
  MeasureLayout: pl
5185
5185
  }
@@ -5190,15 +5190,15 @@ function bs(e, t, n) {
5190
5190
  const i = "onHover" + n, o = r[i];
5191
5191
  o && U.postRender(() => o(t, tn(t)));
5192
5192
  }
5193
- class fp extends $e {
5193
+ class dp extends $e {
5194
5194
  mount() {
5195
5195
  const { current: t } = this.node;
5196
- t && (this.unmount = uf(t, (n) => (bs(this.node, n, "Start"), (r) => bs(this.node, r, "End"))));
5196
+ t && (this.unmount = ff(t, (n) => (bs(this.node, n, "Start"), (r) => bs(this.node, r, "End"))));
5197
5197
  }
5198
5198
  unmount() {
5199
5199
  }
5200
5200
  }
5201
- class dp extends $e {
5201
+ class hp extends $e {
5202
5202
  constructor() {
5203
5203
  super(...arguments), this.isActive = !1;
5204
5204
  }
@@ -5226,37 +5226,37 @@ function Ps(e, t, n) {
5226
5226
  const i = "onTap" + (n === "End" ? "" : n), o = r[i];
5227
5227
  o && U.postRender(() => o(t, tn(t)));
5228
5228
  }
5229
- class hp extends $e {
5229
+ class pp extends $e {
5230
5230
  mount() {
5231
5231
  const { current: t } = this.node;
5232
- t && (this.unmount = pf(t, (n) => (Ps(this.node, n, "Start"), (r, { success: i }) => Ps(this.node, r, i ? "End" : "Cancel")), { useGlobalTarget: this.node.props.globalTapTarget }));
5232
+ t && (this.unmount = mf(t, (n) => (Ps(this.node, n, "Start"), (r, { success: i }) => Ps(this.node, r, i ? "End" : "Cancel")), { useGlobalTarget: this.node.props.globalTapTarget }));
5233
5233
  }
5234
5234
  unmount() {
5235
5235
  }
5236
5236
  }
5237
- const Ir = /* @__PURE__ */ new WeakMap(), mr = /* @__PURE__ */ new WeakMap(), pp = (e) => {
5237
+ const Ir = /* @__PURE__ */ new WeakMap(), mr = /* @__PURE__ */ new WeakMap(), mp = (e) => {
5238
5238
  const t = Ir.get(e.target);
5239
5239
  t && t(e);
5240
- }, mp = (e) => {
5241
- e.forEach(pp);
5240
+ }, gp = (e) => {
5241
+ e.forEach(mp);
5242
5242
  };
5243
- function gp({ root: e, ...t }) {
5243
+ function yp({ root: e, ...t }) {
5244
5244
  const n = e || document;
5245
5245
  mr.has(n) || mr.set(n, {});
5246
5246
  const r = mr.get(n), i = JSON.stringify(t);
5247
- return r[i] || (r[i] = new IntersectionObserver(mp, { root: e, ...t })), r[i];
5247
+ return r[i] || (r[i] = new IntersectionObserver(gp, { root: e, ...t })), r[i];
5248
5248
  }
5249
- function yp(e, t, n) {
5250
- const r = gp(t);
5249
+ function vp(e, t, n) {
5250
+ const r = yp(t);
5251
5251
  return Ir.set(e, n), r.observe(e), () => {
5252
5252
  Ir.delete(e), r.unobserve(e);
5253
5253
  };
5254
5254
  }
5255
- const vp = {
5255
+ const xp = {
5256
5256
  some: 0,
5257
5257
  all: 1
5258
5258
  };
5259
- class xp extends $e {
5259
+ class wp extends $e {
5260
5260
  constructor() {
5261
5261
  super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
5262
5262
  }
@@ -5265,7 +5265,7 @@ class xp extends $e {
5265
5265
  const { viewport: t = {} } = this.node.getProps(), { root: n, margin: r, amount: i = "some", once: o } = t, s = {
5266
5266
  root: n ? n.current : void 0,
5267
5267
  rootMargin: r,
5268
- threshold: typeof i == "number" ? i : vp[i]
5268
+ threshold: typeof i == "number" ? i : xp[i]
5269
5269
  }, a = (l) => {
5270
5270
  const { isIntersecting: c } = l;
5271
5271
  if (this.isInView === c || (this.isInView = c, o && !c && this.hasEnteredView))
@@ -5274,7 +5274,7 @@ class xp extends $e {
5274
5274
  const { onViewportEnter: u, onViewportLeave: f } = this.node.getProps(), d = c ? u : f;
5275
5275
  d && d(l);
5276
5276
  };
5277
- return yp(this.node.current, s, a);
5277
+ return vp(this.node.current, s, a);
5278
5278
  }
5279
5279
  mount() {
5280
5280
  this.startObserver();
@@ -5283,34 +5283,34 @@ class xp extends $e {
5283
5283
  if (typeof IntersectionObserver > "u")
5284
5284
  return;
5285
5285
  const { props: t, prevProps: n } = this.node;
5286
- ["amount", "margin", "root"].some(wp(t, n)) && this.startObserver();
5286
+ ["amount", "margin", "root"].some(bp(t, n)) && this.startObserver();
5287
5287
  }
5288
5288
  unmount() {
5289
5289
  }
5290
5290
  }
5291
- function wp({ viewport: e = {} }, { viewport: t = {} } = {}) {
5291
+ function bp({ viewport: e = {} }, { viewport: t = {} } = {}) {
5292
5292
  return (n) => e[n] !== t[n];
5293
5293
  }
5294
- const bp = {
5294
+ const Pp = {
5295
5295
  inView: {
5296
- Feature: xp
5296
+ Feature: wp
5297
5297
  },
5298
5298
  tap: {
5299
- Feature: hp
5299
+ Feature: pp
5300
5300
  },
5301
5301
  focus: {
5302
- Feature: dp
5302
+ Feature: hp
5303
5303
  },
5304
5304
  hover: {
5305
- Feature: fp
5305
+ Feature: dp
5306
5306
  }
5307
- }, Pp = {
5307
+ }, Sp = {
5308
5308
  layout: {
5309
5309
  ProjectionNode: Pl,
5310
5310
  MeasureLayout: pl
5311
5311
  }
5312
5312
  }, Wr = { current: null }, Sl = { current: !1 };
5313
- function Sp() {
5313
+ function Tp() {
5314
5314
  if (Sl.current = !0, !!ei)
5315
5315
  if (window.matchMedia) {
5316
5316
  const e = window.matchMedia("(prefers-reduced-motion)"), t = () => Wr.current = e.matches;
@@ -5318,8 +5318,8 @@ function Sp() {
5318
5318
  } else
5319
5319
  Wr.current = !1;
5320
5320
  }
5321
- const Tp = [...Ga, ne, Ne], Ap = (e) => Tp.find(Ya(e)), Ss = /* @__PURE__ */ new WeakMap();
5322
- function Ep(e, t, n) {
5321
+ const Ap = [...Ga, ne, Ne], Ep = (e) => Ap.find(Ya(e)), Ss = /* @__PURE__ */ new WeakMap();
5322
+ function Cp(e, t, n) {
5323
5323
  for (const r in t) {
5324
5324
  const i = t[r], o = n[r];
5325
5325
  if (ie(i))
@@ -5348,7 +5348,7 @@ const Ts = [
5348
5348
  "LayoutAnimationStart",
5349
5349
  "LayoutAnimationComplete"
5350
5350
  ];
5351
- class Cp {
5351
+ class Rp {
5352
5352
  /**
5353
5353
  * This method takes React props and returns found MotionValues. For example, HTML
5354
5354
  * MotionValues will be found within the style prop, whereas for Three.js within attribute arrays.
@@ -5375,7 +5375,7 @@ class Cp {
5375
5375
  }
5376
5376
  }
5377
5377
  mount(t) {
5378
- this.current = t, Ss.set(t, this), this.projection && !this.projection.instance && this.projection.mount(t), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((n, r) => this.bindToMotionValue(r, n)), Sl.current || Sp(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : Wr.current, process.env.NODE_ENV !== "production" && Wn(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected."), this.parent && this.parent.children.add(this), this.update(this.props, this.presenceContext);
5378
+ this.current = t, Ss.set(t, this), this.projection && !this.projection.instance && this.projection.mount(t), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((n, r) => this.bindToMotionValue(r, n)), Sl.current || Tp(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : Wr.current, process.env.NODE_ENV !== "production" && Wn(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected."), this.parent && this.parent.children.add(this), this.update(this.props, this.presenceContext);
5379
5379
  }
5380
5380
  unmount() {
5381
5381
  Ss.delete(this.current), this.projection && this.projection.unmount(), Fe(this.notifyUpdate), Fe(this.render), this.valueSubscriptions.forEach((t) => t()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent && this.parent.children.delete(this);
@@ -5442,7 +5442,7 @@ class Cp {
5442
5442
  const o = "on" + i, s = t[o];
5443
5443
  s && (this.propEventSubscriptions[i] = this.on(i, s));
5444
5444
  }
5445
- this.prevMotionValues = Ep(this, this.scrapeMotionValuesFromProps(t, this.prevProps, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue(), this.onUpdate && this.onUpdate(this);
5445
+ this.prevMotionValues = Cp(this, this.scrapeMotionValuesFromProps(t, this.prevProps, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue(), this.onUpdate && this.onUpdate(this);
5446
5446
  }
5447
5447
  getProps() {
5448
5448
  return this.props;
@@ -5508,7 +5508,7 @@ class Cp {
5508
5508
  readValue(t, n) {
5509
5509
  var r;
5510
5510
  let i = this.latestValues[t] !== void 0 || !this.current ? this.latestValues[t] : (r = this.getBaseTargetFromProps(this.props, t)) !== null && r !== void 0 ? r : this.readValueFromInstance(this.current, t, this.options);
5511
- return i != null && (typeof i == "string" && (Ka(i) || Fa(i)) ? i = parseFloat(i) : !Ap(i) && Ne.test(n) && (i = $a(t, n)), this.setBaseTarget(t, ie(i) ? i.get() : i)), ie(i) ? i.get() : i;
5511
+ return i != null && (typeof i == "string" && (Ka(i) || Fa(i)) ? i = parseFloat(i) : !Ep(i) && Ne.test(n) && (i = $a(t, n)), this.setBaseTarget(t, ie(i) ? i.get() : i)), ie(i) ? i.get() : i;
5512
5512
  }
5513
5513
  /**
5514
5514
  * Set the base target to later animate back to. This is currently
@@ -5541,7 +5541,7 @@ class Cp {
5541
5541
  this.events[t] && this.events[t].notify(...n);
5542
5542
  }
5543
5543
  }
5544
- class Tl extends Cp {
5544
+ class Tl extends Rp {
5545
5545
  constructor() {
5546
5546
  super(...arguments), this.KeyframeResolver = Xa;
5547
5547
  }
@@ -5562,10 +5562,10 @@ class Tl extends Cp {
5562
5562
  }));
5563
5563
  }
5564
5564
  }
5565
- function Rp(e) {
5565
+ function Dp(e) {
5566
5566
  return window.getComputedStyle(e);
5567
5567
  }
5568
- class Dp extends Tl {
5568
+ class Op extends Tl {
5569
5569
  constructor() {
5570
5570
  super(...arguments), this.type = "html", this.renderInstance = fa;
5571
5571
  }
@@ -5574,7 +5574,7 @@ class Dp extends Tl {
5574
5574
  const r = Ei(n);
5575
5575
  return r && r.default || 0;
5576
5576
  } else {
5577
- const r = Rp(t), i = (la(n) ? r.getPropertyValue(n) : r[n]) || 0;
5577
+ const r = Dp(t), i = (la(n) ? r.getPropertyValue(n) : r[n]) || 0;
5578
5578
  return typeof i == "string" ? i.trim() : i;
5579
5579
  }
5580
5580
  }
@@ -5588,7 +5588,7 @@ class Dp extends Tl {
5588
5588
  return pi(t, n, r);
5589
5589
  }
5590
5590
  }
5591
- class Op extends Tl {
5591
+ class Mp extends Tl {
5592
5592
  constructor() {
5593
5593
  super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = Z;
5594
5594
  }
@@ -5615,14 +5615,14 @@ class Op extends Tl {
5615
5615
  this.isSVGTag = hi(t.tagName), super.mount(t);
5616
5616
  }
5617
5617
  }
5618
- const Mp = (e, t) => si(e) ? new Op(t) : new Dp(t, {
5618
+ const Vp = (e, t) => si(e) ? new Mp(t) : new Op(t, {
5619
5619
  allowProjection: e !== Xs
5620
- }), Vp = /* @__PURE__ */ nf({
5621
- ...th,
5622
- ...bp,
5623
- ...up,
5624
- ...Pp
5625
- }, Mp), Al = /* @__PURE__ */ yu(Vp), kp = {
5620
+ }), kp = /* @__PURE__ */ rf({
5621
+ ...nh,
5622
+ ...Pp,
5623
+ ...fp,
5624
+ ...Sp
5625
+ }, Vp), Al = /* @__PURE__ */ vu(kp), Lp = {
5626
5626
  initial: "collapsed",
5627
5627
  animate: "expanded",
5628
5628
  exit: "collapsed",
@@ -5634,7 +5634,7 @@ const Mp = (e, t) => si(e) ? new Op(t) : new Dp(t, {
5634
5634
  duration: 0.3,
5635
5635
  ease: [0.04, 0.62, 0.23, 0.98]
5636
5636
  }
5637
- }, Lp = {
5637
+ }, jp = {
5638
5638
  arrows: {
5639
5639
  filePath: "arrows.svg",
5640
5640
  items: {
@@ -5890,16 +5890,16 @@ const Mp = (e, t) => si(e) ? new Op(t) : new Dp(t, {
5890
5890
  }
5891
5891
  }
5892
5892
  }
5893
- }, jp = (e) => {
5893
+ }, Fp = (e) => {
5894
5894
  const [t, n] = e.split("/"), {
5895
5895
  filePath: r,
5896
5896
  items: {
5897
5897
  [n]: { viewBox: i, width: o, height: s }
5898
5898
  }
5899
- } = Lp[t], a = o === s ? "xy" : o > s ? "x" : "y";
5899
+ } = jp[t], a = o === s ? "xy" : o > s ? "x" : "y";
5900
5900
  return { filePath: r, iconName: n, viewBox: i, axis: a };
5901
5901
  }, Ae = ({ name: e, className: t, ...n }) => {
5902
- const { viewBox: r, filePath: i, iconName: o, axis: s } = jp(e);
5902
+ const { viewBox: r, filePath: i, iconName: o, axis: s } = Fp(e);
5903
5903
  return /* @__PURE__ */ A.jsx(
5904
5904
  "svg",
5905
5905
  {
@@ -5931,16 +5931,16 @@ const Mp = (e, t) => si(e) ? new Op(t) : new Dp(t, {
5931
5931
  ) })
5932
5932
  );
5933
5933
  El.displayName = "AccordionHeader";
5934
- const Fp = Gr(
5934
+ const Np = Gr(
5935
5935
  ({ children: e, label: t, classes: n, defaultOpen: r = !1, icon: i }, o) => {
5936
5936
  const [s, a] = Cn(r), l = () => a((c) => !c);
5937
5937
  return /* @__PURE__ */ A.jsx("div", { className: W("flex flex-col gap-5", n == null ? void 0 : n.root), children: /* @__PURE__ */ A.jsxs("div", { className: W("w-full disabled:text-color-dark", n == null ? void 0 : n.wrapper), children: [
5938
5938
  /* @__PURE__ */ A.jsx(El, { icon: i, classes: n == null ? void 0 : n.header, isOpen: s, onClick: l, children: t }),
5939
- /* @__PURE__ */ A.jsx(cu, { mode: "sync", initial: !1, children: s && /* @__PURE__ */ A.jsx(
5939
+ /* @__PURE__ */ A.jsx(uu, { mode: "sync", initial: !1, children: s && /* @__PURE__ */ A.jsx(
5940
5940
  Al.div,
5941
5941
  {
5942
5942
  ref: o,
5943
- ...kp,
5943
+ ...Lp,
5944
5944
  className: W(
5945
5945
  "desk-body-regular-l max-w-[680px] overflow-hidden bg-color-transparent text-color-dark",
5946
5946
  n == null ? void 0 : n.content
@@ -5951,7 +5951,7 @@ const Fp = Gr(
5951
5951
  ] }) });
5952
5952
  }
5953
5953
  );
5954
- Fp.displayName = "Accordion";
5954
+ Np.displayName = "Accordion";
5955
5955
  function Le(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
5956
5956
  return function(i) {
5957
5957
  if (e == null || e(i), n === !1 || !i.defaultPrevented)
@@ -6012,9 +6012,9 @@ function Rl(e, t = []) {
6012
6012
  );
6013
6013
  };
6014
6014
  };
6015
- return i.scopeName = e, [r, Np(i, ...t)];
6015
+ return i.scopeName = e, [r, Bp(i, ...t)];
6016
6016
  }
6017
- function Np(...e) {
6017
+ function Bp(...e) {
6018
6018
  const t = e[0];
6019
6019
  if (e.length === 1) return t;
6020
6020
  const n = () => {
@@ -6033,7 +6033,7 @@ function Np(...e) {
6033
6033
  return n.scopeName = t.scopeName, n;
6034
6034
  }
6035
6035
  var Mi = x.forwardRef((e, t) => {
6036
- const { children: n, ...r } = e, i = x.Children.toArray(n), o = i.find(_p);
6036
+ const { children: n, ...r } = e, i = x.Children.toArray(n), o = i.find(Ip);
6037
6037
  if (o) {
6038
6038
  const s = o.props.children, a = i.map((l) => l === o ? x.Children.count(s) > 1 ? x.Children.only(null) : x.isValidElement(s) ? s.props.children : null : l);
6039
6039
  return /* @__PURE__ */ A.jsx($r, { ...r, ref: t, children: x.isValidElement(s) ? x.cloneElement(s, void 0, a) : null });
@@ -6044,21 +6044,17 @@ Mi.displayName = "Slot";
6044
6044
  var $r = x.forwardRef((e, t) => {
6045
6045
  const { children: n, ...r } = e;
6046
6046
  if (x.isValidElement(n)) {
6047
- const i = Wp(n);
6048
- return x.cloneElement(n, {
6049
- ...Ip(r, n.props),
6050
- // @ts-ignore
6051
- ref: t ? Cl(t, i) : i
6052
- });
6047
+ const i = $p(n), o = Wp(r, n.props);
6048
+ return n.type !== x.Fragment && (o.ref = t ? Cl(t, i) : i), x.cloneElement(n, o);
6053
6049
  }
6054
6050
  return x.Children.count(n) > 1 ? x.Children.only(null) : null;
6055
6051
  });
6056
6052
  $r.displayName = "SlotClone";
6057
- var Bp = ({ children: e }) => /* @__PURE__ */ A.jsx(A.Fragment, { children: e });
6058
- function _p(e) {
6059
- return x.isValidElement(e) && e.type === Bp;
6053
+ var _p = ({ children: e }) => /* @__PURE__ */ A.jsx(A.Fragment, { children: e });
6054
+ function Ip(e) {
6055
+ return x.isValidElement(e) && e.type === _p;
6060
6056
  }
6061
- function Ip(e, t) {
6057
+ function Wp(e, t) {
6062
6058
  const n = { ...t };
6063
6059
  for (const r in t) {
6064
6060
  const i = e[r], o = t[r];
@@ -6068,12 +6064,12 @@ function Ip(e, t) {
6068
6064
  }
6069
6065
  return { ...e, ...n };
6070
6066
  }
6071
- function Wp(e) {
6067
+ function $p(e) {
6072
6068
  var r, i;
6073
6069
  let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning;
6074
6070
  return n ? e.ref : (t = (i = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : i.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
6075
6071
  }
6076
- var $p = [
6072
+ var Up = [
6077
6073
  "a",
6078
6074
  "button",
6079
6075
  "div",
@@ -6090,14 +6086,14 @@ var $p = [
6090
6086
  "span",
6091
6087
  "svg",
6092
6088
  "ul"
6093
- ], Oe = $p.reduce((e, t) => {
6089
+ ], Oe = Up.reduce((e, t) => {
6094
6090
  const n = x.forwardRef((r, i) => {
6095
6091
  const { asChild: o, ...s } = r, a = o ? Mi : t;
6096
6092
  return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ A.jsx(a, { ...s, ref: i });
6097
6093
  });
6098
6094
  return n.displayName = `Primitive.${t}`, { ...e, [t]: n };
6099
6095
  }, {});
6100
- function Up(e, t) {
6096
+ function zp(e, t) {
6101
6097
  e && qs.flushSync(() => e.dispatchEvent(t));
6102
6098
  }
6103
6099
  function Be(e) {
@@ -6109,7 +6105,7 @@ function Be(e) {
6109
6105
  return (r = t.current) == null ? void 0 : r.call(t, ...n);
6110
6106
  }, []);
6111
6107
  }
6112
- function zp(e, t = globalThis == null ? void 0 : globalThis.document) {
6108
+ function Kp(e, t = globalThis == null ? void 0 : globalThis.document) {
6113
6109
  const n = Be(e);
6114
6110
  x.useEffect(() => {
6115
6111
  const r = (i) => {
@@ -6118,7 +6114,7 @@ function zp(e, t = globalThis == null ? void 0 : globalThis.document) {
6118
6114
  return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
6119
6115
  }, [n, t]);
6120
6116
  }
6121
- var Kp = "DismissableLayer", Ur = "dismissableLayer.update", Hp = "dismissableLayer.pointerDownOutside", Yp = "dismissableLayer.focusOutside", Es, Dl = x.createContext({
6117
+ var Hp = "DismissableLayer", Ur = "dismissableLayer.update", Yp = "dismissableLayer.pointerDownOutside", Gp = "dismissableLayer.focusOutside", Es, Dl = x.createContext({
6122
6118
  layers: /* @__PURE__ */ new Set(),
6123
6119
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
6124
6120
  branches: /* @__PURE__ */ new Set()
@@ -6132,14 +6128,14 @@ var Kp = "DismissableLayer", Ur = "dismissableLayer.update", Hp = "dismissableLa
6132
6128
  onInteractOutside: s,
6133
6129
  onDismiss: a,
6134
6130
  ...l
6135
- } = e, c = x.useContext(Dl), [u, f] = x.useState(null), d = (u == null ? void 0 : u.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, h] = x.useState({}), g = Ue(t, (C) => f(C)), m = Array.from(c.layers), [y] = [...c.layersWithOutsidePointerEventsDisabled].slice(-1), v = m.indexOf(y), w = u ? m.indexOf(u) : -1, P = c.layersWithOutsidePointerEventsDisabled.size > 0, S = w >= v, b = qp((C) => {
6131
+ } = e, c = x.useContext(Dl), [u, f] = x.useState(null), d = (u == null ? void 0 : u.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, h] = x.useState({}), g = Ue(t, (C) => f(C)), m = Array.from(c.layers), [y] = [...c.layersWithOutsidePointerEventsDisabled].slice(-1), v = m.indexOf(y), w = u ? m.indexOf(u) : -1, P = c.layersWithOutsidePointerEventsDisabled.size > 0, S = w >= v, b = Zp((C) => {
6136
6132
  const R = C.target, k = [...c.branches].some((j) => j.contains(R));
6137
6133
  !S || k || (i == null || i(C), s == null || s(C), C.defaultPrevented || a == null || a());
6138
- }, d), E = Zp((C) => {
6134
+ }, d), E = Jp((C) => {
6139
6135
  const R = C.target;
6140
6136
  [...c.branches].some((j) => j.contains(R)) || (o == null || o(C), s == null || s(C), C.defaultPrevented || a == null || a());
6141
6137
  }, d);
6142
- return zp((C) => {
6138
+ return Kp((C) => {
6143
6139
  w === c.layers.size - 1 && (r == null || r(C), !C.defaultPrevented && a && (C.preventDefault(), a()));
6144
6140
  }, d), x.useEffect(() => {
6145
6141
  if (u)
@@ -6170,8 +6166,8 @@ var Kp = "DismissableLayer", Ur = "dismissableLayer.update", Hp = "dismissableLa
6170
6166
  );
6171
6167
  }
6172
6168
  );
6173
- Ol.displayName = Kp;
6174
- var Gp = "DismissableLayerBranch", Xp = x.forwardRef((e, t) => {
6169
+ Ol.displayName = Hp;
6170
+ var Xp = "DismissableLayerBranch", qp = x.forwardRef((e, t) => {
6175
6171
  const n = x.useContext(Dl), r = x.useRef(null), i = Ue(t, r);
6176
6172
  return x.useEffect(() => {
6177
6173
  const o = r.current;
@@ -6181,8 +6177,8 @@ var Gp = "DismissableLayerBranch", Xp = x.forwardRef((e, t) => {
6181
6177
  };
6182
6178
  }, [n.branches]), /* @__PURE__ */ A.jsx(Oe.div, { ...e, ref: i });
6183
6179
  });
6184
- Xp.displayName = Gp;
6185
- function qp(e, t = globalThis == null ? void 0 : globalThis.document) {
6180
+ qp.displayName = Xp;
6181
+ function Zp(e, t = globalThis == null ? void 0 : globalThis.document) {
6186
6182
  const n = Be(e), r = x.useRef(!1), i = x.useRef(() => {
6187
6183
  });
6188
6184
  return x.useEffect(() => {
@@ -6190,7 +6186,7 @@ function qp(e, t = globalThis == null ? void 0 : globalThis.document) {
6190
6186
  if (a.target && !r.current) {
6191
6187
  let l = function() {
6192
6188
  Ml(
6193
- Hp,
6189
+ Yp,
6194
6190
  n,
6195
6191
  c,
6196
6192
  { discrete: !0 }
@@ -6212,11 +6208,11 @@ function qp(e, t = globalThis == null ? void 0 : globalThis.document) {
6212
6208
  onPointerDownCapture: () => r.current = !0
6213
6209
  };
6214
6210
  }
6215
- function Zp(e, t = globalThis == null ? void 0 : globalThis.document) {
6211
+ function Jp(e, t = globalThis == null ? void 0 : globalThis.document) {
6216
6212
  const n = Be(e), r = x.useRef(!1);
6217
6213
  return x.useEffect(() => {
6218
6214
  const i = (o) => {
6219
- o.target && !r.current && Ml(Yp, n, { originalEvent: o }, {
6215
+ o.target && !r.current && Ml(Gp, n, { originalEvent: o }, {
6220
6216
  discrete: !1
6221
6217
  });
6222
6218
  };
@@ -6232,26 +6228,26 @@ function Cs() {
6232
6228
  }
6233
6229
  function Ml(e, t, n, { discrete: r }) {
6234
6230
  const i = n.originalEvent.target, o = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
6235
- t && i.addEventListener(e, t, { once: !0 }), r ? Up(i, o) : i.dispatchEvent(o);
6231
+ t && i.addEventListener(e, t, { once: !0 }), r ? zp(i, o) : i.dispatchEvent(o);
6236
6232
  }
6237
6233
  var rt = globalThis != null && globalThis.document ? x.useLayoutEffect : () => {
6238
- }, Jp = x.useId || (() => {
6239
- }), Qp = 0;
6240
- function em(e) {
6241
- const [t, n] = x.useState(Jp());
6234
+ }, Qp = x.useId || (() => {
6235
+ }), em = 0;
6236
+ function tm(e) {
6237
+ const [t, n] = x.useState(Qp());
6242
6238
  return rt(() => {
6243
- n((r) => r ?? String(Qp++));
6239
+ n((r) => r ?? String(em++));
6244
6240
  }, [e]), t ? `radix-${t}` : "";
6245
6241
  }
6246
- const tm = ["top", "right", "bottom", "left"], _e = Math.min, le = Math.max, jn = Math.round, mn = Math.floor, be = (e) => ({
6242
+ const nm = ["top", "right", "bottom", "left"], _e = Math.min, le = Math.max, jn = Math.round, mn = Math.floor, be = (e) => ({
6247
6243
  x: e,
6248
6244
  y: e
6249
- }), nm = {
6245
+ }), rm = {
6250
6246
  left: "right",
6251
6247
  right: "left",
6252
6248
  bottom: "top",
6253
6249
  top: "bottom"
6254
- }, rm = {
6250
+ }, im = {
6255
6251
  start: "end",
6256
6252
  end: "start"
6257
6253
  };
@@ -6279,20 +6275,20 @@ function Ie(e) {
6279
6275
  function Li(e) {
6280
6276
  return Vi(Ie(e));
6281
6277
  }
6282
- function im(e, t, n) {
6278
+ function om(e, t, n) {
6283
6279
  n === void 0 && (n = !1);
6284
6280
  const r = Vt(e), i = Li(e), o = ki(i);
6285
6281
  let s = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
6286
6282
  return t.reference[o] > t.floating[o] && (s = Fn(s)), [s, Fn(s)];
6287
6283
  }
6288
- function om(e) {
6284
+ function sm(e) {
6289
6285
  const t = Fn(e);
6290
6286
  return [Kr(e), t, Kr(t)];
6291
6287
  }
6292
6288
  function Kr(e) {
6293
- return e.replace(/start|end/g, (t) => rm[t]);
6289
+ return e.replace(/start|end/g, (t) => im[t]);
6294
6290
  }
6295
- function sm(e, t, n) {
6291
+ function am(e, t, n) {
6296
6292
  const r = ["left", "right"], i = ["right", "left"], o = ["top", "bottom"], s = ["bottom", "top"];
6297
6293
  switch (e) {
6298
6294
  case "top":
@@ -6305,15 +6301,15 @@ function sm(e, t, n) {
6305
6301
  return [];
6306
6302
  }
6307
6303
  }
6308
- function am(e, t, n, r) {
6304
+ function lm(e, t, n, r) {
6309
6305
  const i = Vt(e);
6310
- let o = sm(De(e), n === "start", r);
6306
+ let o = am(De(e), n === "start", r);
6311
6307
  return i && (o = o.map((s) => s + "-" + i), t && (o = o.concat(o.map(Kr)))), o;
6312
6308
  }
6313
6309
  function Fn(e) {
6314
- return e.replace(/left|right|bottom|top/g, (t) => nm[t]);
6310
+ return e.replace(/left|right|bottom|top/g, (t) => rm[t]);
6315
6311
  }
6316
- function lm(e) {
6312
+ function cm(e) {
6317
6313
  return {
6318
6314
  top: 0,
6319
6315
  right: 0,
@@ -6323,7 +6319,7 @@ function lm(e) {
6323
6319
  };
6324
6320
  }
6325
6321
  function Vl(e) {
6326
- return typeof e != "number" ? lm(e) : {
6322
+ return typeof e != "number" ? cm(e) : {
6327
6323
  top: e,
6328
6324
  right: e,
6329
6325
  bottom: e,
@@ -6396,7 +6392,7 @@ function Rs(e, t, n) {
6396
6392
  }
6397
6393
  return h;
6398
6394
  }
6399
- const cm = async (e, t, n) => {
6395
+ const um = async (e, t, n) => {
6400
6396
  const {
6401
6397
  placement: r = "bottom",
6402
6398
  strategy: i = "absolute",
@@ -6502,7 +6498,7 @@ async function Tt(e, t) {
6502
6498
  right: (b.right - v.right + g.right) / S.x
6503
6499
  };
6504
6500
  }
6505
- const um = (e) => ({
6501
+ const fm = (e) => ({
6506
6502
  name: "arrow",
6507
6503
  options: e,
6508
6504
  async fn(t) {
@@ -6539,7 +6535,7 @@ const um = (e) => ({
6539
6535
  reset: K
6540
6536
  };
6541
6537
  }
6542
- }), fm = function(e) {
6538
+ }), dm = function(e) {
6543
6539
  return e === void 0 && (e = {}), {
6544
6540
  name: "flip",
6545
6541
  options: e,
@@ -6563,12 +6559,12 @@ const um = (e) => ({
6563
6559
  } = Re(e, t);
6564
6560
  if ((n = o.arrow) != null && n.alignmentOffset)
6565
6561
  return {};
6566
- const v = De(i), w = Ie(a), P = De(a) === a, S = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), b = d || (P || !m ? [Fn(a)] : om(a)), E = g !== "none";
6567
- !d && E && b.push(...am(a, m, g, S));
6562
+ const v = De(i), w = Ie(a), P = De(a) === a, S = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), b = d || (P || !m ? [Fn(a)] : sm(a)), E = g !== "none";
6563
+ !d && E && b.push(...lm(a, m, g, S));
6568
6564
  const C = [a, ...b], R = await Tt(t, y), k = [];
6569
6565
  let j = ((r = o.flip) == null ? void 0 : r.overflows) || [];
6570
6566
  if (u && k.push(R[v]), f) {
6571
- const B = im(i, s, S);
6567
+ const B = om(i, s, S);
6572
6568
  k.push(R[B[0]], R[B[1]]);
6573
6569
  }
6574
6570
  if (j = [...j, {
@@ -6628,9 +6624,9 @@ function Ds(e, t) {
6628
6624
  };
6629
6625
  }
6630
6626
  function Os(e) {
6631
- return tm.some((t) => e[t] >= 0);
6627
+ return nm.some((t) => e[t] >= 0);
6632
6628
  }
6633
- const dm = function(e) {
6629
+ const hm = function(e) {
6634
6630
  return e === void 0 && (e = {}), {
6635
6631
  name: "hide",
6636
6632
  options: e,
@@ -6672,7 +6668,7 @@ const dm = function(e) {
6672
6668
  }
6673
6669
  };
6674
6670
  };
6675
- async function hm(e, t) {
6671
+ async function pm(e, t) {
6676
6672
  const {
6677
6673
  placement: n,
6678
6674
  platform: r,
@@ -6699,7 +6695,7 @@ async function hm(e, t) {
6699
6695
  y: h * u
6700
6696
  };
6701
6697
  }
6702
- const pm = function(e) {
6698
+ const mm = function(e) {
6703
6699
  return e === void 0 && (e = 0), {
6704
6700
  name: "offset",
6705
6701
  options: e,
@@ -6710,7 +6706,7 @@ const pm = function(e) {
6710
6706
  y: o,
6711
6707
  placement: s,
6712
6708
  middlewareData: a
6713
- } = t, l = await hm(t, e);
6709
+ } = t, l = await pm(t, e);
6714
6710
  return s === ((n = a.offset) == null ? void 0 : n.placement) && (r = a.arrow) != null && r.alignmentOffset ? {} : {
6715
6711
  x: i + l.x,
6716
6712
  y: o + l.y,
@@ -6721,7 +6717,7 @@ const pm = function(e) {
6721
6717
  };
6722
6718
  }
6723
6719
  };
6724
- }, mm = function(e) {
6720
+ }, gm = function(e) {
6725
6721
  return e === void 0 && (e = {}), {
6726
6722
  name: "shift",
6727
6723
  options: e,
@@ -6777,7 +6773,7 @@ const pm = function(e) {
6777
6773
  };
6778
6774
  }
6779
6775
  };
6780
- }, gm = function(e) {
6776
+ }, ym = function(e) {
6781
6777
  return e === void 0 && (e = {}), {
6782
6778
  options: e,
6783
6779
  fn(t) {
@@ -6819,7 +6815,7 @@ const pm = function(e) {
6819
6815
  };
6820
6816
  }
6821
6817
  };
6822
- }, ym = function(e) {
6818
+ }, vm = function(e) {
6823
6819
  return e === void 0 && (e = {}), {
6824
6820
  name: "size",
6825
6821
  options: e,
@@ -6895,7 +6891,7 @@ function nn(e) {
6895
6891
  } = ge(e);
6896
6892
  return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !["inline", "contents"].includes(i);
6897
6893
  }
6898
- function vm(e) {
6894
+ function xm(e) {
6899
6895
  return ["table", "td", "th"].includes(kt(e));
6900
6896
  }
6901
6897
  function Gn(e) {
@@ -6911,7 +6907,7 @@ function ji(e) {
6911
6907
  const t = Fi(), n = me(e) ? ge(e) : e;
6912
6908
  return ["transform", "translate", "scale", "rotate", "perspective"].some((r) => n[r] ? n[r] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((r) => (n.willChange || "").includes(r)) || ["paint", "layout", "strict", "content"].some((r) => (n.contain || "").includes(r));
6913
6909
  }
6914
- function xm(e) {
6910
+ function wm(e) {
6915
6911
  let t = We(e);
6916
6912
  for (; Pe(t) && !At(t); ) {
6917
6913
  if (ji(t))
@@ -6997,15 +6993,15 @@ function xt(e) {
6997
6993
  y: a
6998
6994
  };
6999
6995
  }
7000
- const wm = /* @__PURE__ */ be(0);
6996
+ const bm = /* @__PURE__ */ be(0);
7001
6997
  function Fl(e) {
7002
6998
  const t = ce(e);
7003
- return !Fi() || !t.visualViewport ? wm : {
6999
+ return !Fi() || !t.visualViewport ? bm : {
7004
7000
  x: t.visualViewport.offsetLeft,
7005
7001
  y: t.visualViewport.offsetTop
7006
7002
  };
7007
7003
  }
7008
- function bm(e, t, n) {
7004
+ function Pm(e, t, n) {
7009
7005
  return t === void 0 && (t = !1), !n || t && n !== ce(e) ? !1 : t;
7010
7006
  }
7011
7007
  function it(e, t, n, r) {
@@ -7013,7 +7009,7 @@ function it(e, t, n, r) {
7013
7009
  const i = e.getBoundingClientRect(), o = Ni(e);
7014
7010
  let s = be(1);
7015
7011
  t && (r ? me(r) && (s = xt(r)) : s = xt(e));
7016
- const a = bm(o, n, r) ? Fl(o) : be(0);
7012
+ const a = Pm(o, n, r) ? Fl(o) : be(0);
7017
7013
  let l = (i.left + a.x) / s.x, c = (i.top + a.y) / s.y, u = i.width / s.x, f = i.height / s.y;
7018
7014
  if (o) {
7019
7015
  const d = ce(o), h = r && me(r) ? ce(r) : r;
@@ -7045,7 +7041,7 @@ function Nl(e, t, n) {
7045
7041
  y: o
7046
7042
  };
7047
7043
  }
7048
- function Pm(e) {
7044
+ function Sm(e) {
7049
7045
  let {
7050
7046
  elements: t,
7051
7047
  rect: n,
@@ -7072,10 +7068,10 @@ function Pm(e) {
7072
7068
  y: n.y * c.y - l.scrollTop * c.y + u.y + d.y
7073
7069
  };
7074
7070
  }
7075
- function Sm(e) {
7071
+ function Tm(e) {
7076
7072
  return Array.from(e.getClientRects());
7077
7073
  }
7078
- function Tm(e) {
7074
+ function Am(e) {
7079
7075
  const t = Se(e), n = Xn(e), r = e.ownerDocument.body, i = le(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), o = le(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
7080
7076
  let s = -n.scrollLeft + Bi(e);
7081
7077
  const a = -n.scrollTop;
@@ -7086,7 +7082,7 @@ function Tm(e) {
7086
7082
  y: a
7087
7083
  };
7088
7084
  }
7089
- function Am(e, t) {
7085
+ function Em(e, t) {
7090
7086
  const n = ce(e), r = Se(e), i = n.visualViewport;
7091
7087
  let o = r.clientWidth, s = r.clientHeight, a = 0, l = 0;
7092
7088
  if (i) {
@@ -7101,7 +7097,7 @@ function Am(e, t) {
7101
7097
  y: l
7102
7098
  };
7103
7099
  }
7104
- function Em(e, t) {
7100
+ function Cm(e, t) {
7105
7101
  const n = it(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, o = Pe(e) ? xt(e) : be(1), s = e.clientWidth * o.x, a = e.clientHeight * o.y, l = i * o.x, c = r * o.y;
7106
7102
  return {
7107
7103
  width: s,
@@ -7113,11 +7109,11 @@ function Em(e, t) {
7113
7109
  function Vs(e, t, n) {
7114
7110
  let r;
7115
7111
  if (t === "viewport")
7116
- r = Am(e, n);
7112
+ r = Em(e, n);
7117
7113
  else if (t === "document")
7118
- r = Tm(Se(e));
7114
+ r = Am(Se(e));
7119
7115
  else if (me(t))
7120
- r = Em(t, n);
7116
+ r = Cm(t, n);
7121
7117
  else {
7122
7118
  const i = Fl(e);
7123
7119
  r = {
@@ -7133,7 +7129,7 @@ function Bl(e, t) {
7133
7129
  const n = We(e);
7134
7130
  return n === t || !me(n) || At(n) ? !1 : ge(n).position === "fixed" || Bl(n, t);
7135
7131
  }
7136
- function Cm(e, t) {
7132
+ function Rm(e, t) {
7137
7133
  const n = t.get(e);
7138
7134
  if (n)
7139
7135
  return n;
@@ -7146,14 +7142,14 @@ function Cm(e, t) {
7146
7142
  }
7147
7143
  return t.set(e, r), r;
7148
7144
  }
7149
- function Rm(e) {
7145
+ function Dm(e) {
7150
7146
  let {
7151
7147
  element: t,
7152
7148
  boundary: n,
7153
7149
  rootBoundary: r,
7154
7150
  strategy: i
7155
7151
  } = e;
7156
- const s = [...n === "clippingAncestors" ? Gn(t) ? [] : Cm(t, this._c) : [].concat(n), r], a = s[0], l = s.reduce((c, u) => {
7152
+ const s = [...n === "clippingAncestors" ? Gn(t) ? [] : Rm(t, this._c) : [].concat(n), r], a = s[0], l = s.reduce((c, u) => {
7157
7153
  const f = Vs(t, u, i);
7158
7154
  return c.top = le(f.top, c.top), c.right = _e(f.right, c.right), c.bottom = _e(f.bottom, c.bottom), c.left = le(f.left, c.left), c;
7159
7155
  }, Vs(t, a, i));
@@ -7164,7 +7160,7 @@ function Rm(e) {
7164
7160
  y: l.top
7165
7161
  };
7166
7162
  }
7167
- function Dm(e) {
7163
+ function Om(e) {
7168
7164
  const {
7169
7165
  width: t,
7170
7166
  height: n
@@ -7174,7 +7170,7 @@ function Dm(e) {
7174
7170
  height: n
7175
7171
  };
7176
7172
  }
7177
- function Om(e, t, n) {
7173
+ function Mm(e, t, n) {
7178
7174
  const r = Pe(t), i = Se(t), o = n === "fixed", s = it(e, !0, o, t);
7179
7175
  let a = {
7180
7176
  scrollLeft: 0,
@@ -7219,14 +7215,14 @@ function _l(e, t) {
7219
7215
  return n;
7220
7216
  }
7221
7217
  let r = ks(e, t);
7222
- for (; r && vm(r) && gr(r); )
7218
+ for (; r && xm(r) && gr(r); )
7223
7219
  r = ks(r, t);
7224
- return r && At(r) && gr(r) && !ji(r) ? n : r || xm(e) || n;
7220
+ return r && At(r) && gr(r) && !ji(r) ? n : r || wm(e) || n;
7225
7221
  }
7226
- const Mm = async function(e) {
7222
+ const Vm = async function(e) {
7227
7223
  const t = this.getOffsetParent || _l, n = this.getDimensions, r = await n(e.floating);
7228
7224
  return {
7229
- reference: Om(e.reference, await t(e.floating), e.strategy),
7225
+ reference: Mm(e.reference, await t(e.floating), e.strategy),
7230
7226
  floating: {
7231
7227
  x: 0,
7232
7228
  y: 0,
@@ -7235,25 +7231,25 @@ const Mm = async function(e) {
7235
7231
  }
7236
7232
  };
7237
7233
  };
7238
- function Vm(e) {
7234
+ function km(e) {
7239
7235
  return ge(e).direction === "rtl";
7240
7236
  }
7241
- const km = {
7242
- convertOffsetParentRelativeRectToViewportRelativeRect: Pm,
7237
+ const Lm = {
7238
+ convertOffsetParentRelativeRectToViewportRelativeRect: Sm,
7243
7239
  getDocumentElement: Se,
7244
- getClippingRect: Rm,
7240
+ getClippingRect: Dm,
7245
7241
  getOffsetParent: _l,
7246
- getElementRects: Mm,
7247
- getClientRects: Sm,
7248
- getDimensions: Dm,
7242
+ getElementRects: Vm,
7243
+ getClientRects: Tm,
7244
+ getDimensions: Om,
7249
7245
  getScale: xt,
7250
7246
  isElement: me,
7251
- isRTL: Vm
7247
+ isRTL: km
7252
7248
  };
7253
7249
  function Il(e, t) {
7254
7250
  return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
7255
7251
  }
7256
- function Lm(e, t) {
7252
+ function jm(e, t) {
7257
7253
  let n = null, r;
7258
7254
  const i = Se(e);
7259
7255
  function o() {
@@ -7299,7 +7295,7 @@ function Lm(e, t) {
7299
7295
  }
7300
7296
  return s(!0), o;
7301
7297
  }
7302
- function jm(e, t, n, r) {
7298
+ function Fm(e, t, n, r) {
7303
7299
  r === void 0 && (r = {});
7304
7300
  const {
7305
7301
  ancestorScroll: i = !0,
@@ -7313,7 +7309,7 @@ function jm(e, t, n, r) {
7313
7309
  passive: !0
7314
7310
  }), o && v.addEventListener("resize", n);
7315
7311
  });
7316
- const f = c && a ? Lm(c, n) : null;
7312
+ const f = c && a ? jm(c, n) : null;
7317
7313
  let d = -1, h = null;
7318
7314
  s && (h = new ResizeObserver((v) => {
7319
7315
  let [w] = v;
@@ -7335,15 +7331,15 @@ function jm(e, t, n, r) {
7335
7331
  }), f == null || f(), (v = h) == null || v.disconnect(), h = null, l && cancelAnimationFrame(g);
7336
7332
  };
7337
7333
  }
7338
- const jy = Tt, Fm = pm, Nm = mm, Bm = fm, _m = ym, Im = dm, Ls = um, Wm = gm, $m = (e, t, n) => {
7334
+ const Fy = Tt, Nm = mm, Bm = gm, _m = dm, Im = vm, Wm = hm, Ls = fm, $m = ym, Um = (e, t, n) => {
7339
7335
  const r = /* @__PURE__ */ new Map(), i = {
7340
- platform: km,
7336
+ platform: Lm,
7341
7337
  ...n
7342
7338
  }, o = {
7343
7339
  ...i.platform,
7344
7340
  _c: r
7345
7341
  };
7346
- return cm(e, t, {
7342
+ return um(e, t, {
7347
7343
  ...i,
7348
7344
  platform: o
7349
7345
  });
@@ -7392,7 +7388,7 @@ function yr(e) {
7392
7388
  t.current = e;
7393
7389
  }), t;
7394
7390
  }
7395
- function Um(e) {
7391
+ function zm(e) {
7396
7392
  e === void 0 && (e = {});
7397
7393
  const {
7398
7394
  placement: t = "bottom",
@@ -7427,7 +7423,7 @@ function Um(e) {
7427
7423
  strategy: n,
7428
7424
  middleware: d
7429
7425
  };
7430
- z.current && (V.platform = z.current), $m(E.current, C.current, V).then((H) => {
7426
+ z.current && (V.platform = z.current), Um(E.current, C.current, V).then((H) => {
7431
7427
  const ee = {
7432
7428
  ...H,
7433
7429
  // The floating element's position may be recomputed while it's closed
@@ -7494,7 +7490,7 @@ function Um(e) {
7494
7490
  floatingStyles: L
7495
7491
  }), [u, _, Q, K, L]);
7496
7492
  }
7497
- const zm = (e) => {
7493
+ const Km = (e) => {
7498
7494
  function t(n) {
7499
7495
  return {}.hasOwnProperty.call(n, "current");
7500
7496
  }
@@ -7515,17 +7511,14 @@ const zm = (e) => {
7515
7511
  }).fn(n) : {};
7516
7512
  }
7517
7513
  };
7518
- }, Km = (e, t) => ({
7519
- ...Fm(e),
7520
- options: [e, t]
7521
- }), Hm = (e, t) => ({
7514
+ }, Hm = (e, t) => ({
7522
7515
  ...Nm(e),
7523
7516
  options: [e, t]
7524
7517
  }), Ym = (e, t) => ({
7525
- ...Wm(e),
7518
+ ...Bm(e),
7526
7519
  options: [e, t]
7527
7520
  }), Gm = (e, t) => ({
7528
- ...Bm(e),
7521
+ ...$m(e),
7529
7522
  options: [e, t]
7530
7523
  }), Xm = (e, t) => ({
7531
7524
  ..._m(e),
@@ -7534,10 +7527,13 @@ const zm = (e) => {
7534
7527
  ...Im(e),
7535
7528
  options: [e, t]
7536
7529
  }), Zm = (e, t) => ({
7537
- ...zm(e),
7530
+ ...Wm(e),
7531
+ options: [e, t]
7532
+ }), Jm = (e, t) => ({
7533
+ ...Km(e),
7538
7534
  options: [e, t]
7539
7535
  });
7540
- var Jm = "Arrow", $l = x.forwardRef((e, t) => {
7536
+ var Qm = "Arrow", $l = x.forwardRef((e, t) => {
7541
7537
  const { children: n, width: r = 10, height: i = 5, ...o } = e;
7542
7538
  return /* @__PURE__ */ A.jsx(
7543
7539
  Oe.svg,
@@ -7552,9 +7548,9 @@ var Jm = "Arrow", $l = x.forwardRef((e, t) => {
7552
7548
  }
7553
7549
  );
7554
7550
  });
7555
- $l.displayName = Jm;
7556
- var Qm = $l;
7557
- function eg(e) {
7551
+ $l.displayName = Qm;
7552
+ var eg = $l;
7553
+ function tg(e) {
7558
7554
  const [t, n] = x.useState(void 0);
7559
7555
  return rt(() => {
7560
7556
  if (e) {
@@ -7576,9 +7572,9 @@ function eg(e) {
7576
7572
  n(void 0);
7577
7573
  }, [e]), t;
7578
7574
  }
7579
- var _i = "Popper", [Ul, zl] = Rl(_i), [tg, Kl] = Ul(_i), Hl = (e) => {
7575
+ var _i = "Popper", [Ul, zl] = Rl(_i), [ng, Kl] = Ul(_i), Hl = (e) => {
7580
7576
  const { __scopePopper: t, children: n } = e, [r, i] = x.useState(null);
7581
- return /* @__PURE__ */ A.jsx(tg, { scope: t, anchor: r, onAnchorChange: i, children: n });
7577
+ return /* @__PURE__ */ A.jsx(ng, { scope: t, anchor: r, onAnchorChange: i, children: n });
7582
7578
  };
7583
7579
  Hl.displayName = _i;
7584
7580
  var Yl = "PopperAnchor", Gl = x.forwardRef(
@@ -7590,7 +7586,7 @@ var Yl = "PopperAnchor", Gl = x.forwardRef(
7590
7586
  }
7591
7587
  );
7592
7588
  Gl.displayName = Yl;
7593
- var Ii = "PopperContent", [ng, rg] = Ul(Ii), Xl = x.forwardRef(
7589
+ var Ii = "PopperContent", [rg, ig] = Ul(Ii), Xl = x.forwardRef(
7594
7590
  (e, t) => {
7595
7591
  var st, He, at, Ye, an, jt;
7596
7592
  const {
@@ -7608,40 +7604,40 @@ var Ii = "PopperContent", [ng, rg] = Ul(Ii), Xl = x.forwardRef(
7608
7604
  updatePositionStrategy: h = "optimized",
7609
7605
  onPlaced: g,
7610
7606
  ...m
7611
- } = e, y = Kl(Ii, n), [v, w] = x.useState(null), P = Ue(t, (Ge) => w(Ge)), [S, b] = x.useState(null), E = eg(S), C = (E == null ? void 0 : E.width) ?? 0, R = (E == null ? void 0 : E.height) ?? 0, k = r + (o !== "center" ? "-" + o : ""), j = typeof u == "number" ? u : { top: 0, right: 0, bottom: 0, left: 0, ...u }, z = Array.isArray(c) ? c : [c], X = z.length > 0, _ = {
7607
+ } = e, y = Kl(Ii, n), [v, w] = x.useState(null), P = Ue(t, (Ge) => w(Ge)), [S, b] = x.useState(null), E = tg(S), C = (E == null ? void 0 : E.width) ?? 0, R = (E == null ? void 0 : E.height) ?? 0, k = r + (o !== "center" ? "-" + o : ""), j = typeof u == "number" ? u : { top: 0, right: 0, bottom: 0, left: 0, ...u }, z = Array.isArray(c) ? c : [c], X = z.length > 0, _ = {
7612
7608
  padding: j,
7613
- boundary: z.filter(og),
7609
+ boundary: z.filter(sg),
7614
7610
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
7615
7611
  altBoundary: X
7616
- }, { refs: B, floatingStyles: Q, placement: K, isPositioned: L, middlewareData: V } = Um({
7612
+ }, { refs: B, floatingStyles: Q, placement: K, isPositioned: L, middlewareData: V } = zm({
7617
7613
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
7618
7614
  strategy: "fixed",
7619
7615
  placement: k,
7620
- whileElementsMounted: (...Ge) => jm(...Ge, {
7616
+ whileElementsMounted: (...Ge) => Fm(...Ge, {
7621
7617
  animationFrame: h === "always"
7622
7618
  }),
7623
7619
  elements: {
7624
7620
  reference: y.anchor
7625
7621
  },
7626
7622
  middleware: [
7627
- Km({ mainAxis: i + R, alignmentAxis: s }),
7628
- l && Hm({
7623
+ Hm({ mainAxis: i + R, alignmentAxis: s }),
7624
+ l && Ym({
7629
7625
  mainAxis: !0,
7630
7626
  crossAxis: !1,
7631
- limiter: f === "partial" ? Ym() : void 0,
7627
+ limiter: f === "partial" ? Gm() : void 0,
7632
7628
  ..._
7633
7629
  }),
7634
- l && Gm({ ..._ }),
7635
- Xm({
7630
+ l && Xm({ ..._ }),
7631
+ qm({
7636
7632
  ..._,
7637
7633
  apply: ({ elements: Ge, rects: ln, availableWidth: lt, availableHeight: Xe }) => {
7638
7634
  const { width: cn, height: un } = ln.reference, Te = Ge.floating.style;
7639
7635
  Te.setProperty("--radix-popper-available-width", `${lt}px`), Te.setProperty("--radix-popper-available-height", `${Xe}px`), Te.setProperty("--radix-popper-anchor-width", `${cn}px`), Te.setProperty("--radix-popper-anchor-height", `${un}px`);
7640
7636
  }
7641
7637
  }),
7642
- S && Zm({ element: S, padding: a }),
7643
- sg({ arrowWidth: C, arrowHeight: R }),
7644
- d && qm({ strategy: "referenceHidden", ..._ })
7638
+ S && Jm({ element: S, padding: a }),
7639
+ ag({ arrowWidth: C, arrowHeight: R }),
7640
+ d && Zm({ strategy: "referenceHidden", ..._ })
7645
7641
  ]
7646
7642
  }), [H, ee] = Jl(K), Ke = Be(g);
7647
7643
  rt(() => {
@@ -7675,7 +7671,7 @@ var Ii = "PopperContent", [ng, rg] = Ul(Ii), Xl = x.forwardRef(
7675
7671
  },
7676
7672
  dir: e.dir,
7677
7673
  children: /* @__PURE__ */ A.jsx(
7678
- ng,
7674
+ rg,
7679
7675
  {
7680
7676
  scope: n,
7681
7677
  placedSide: H,
@@ -7705,13 +7701,13 @@ var Ii = "PopperContent", [ng, rg] = Ul(Ii), Xl = x.forwardRef(
7705
7701
  }
7706
7702
  );
7707
7703
  Xl.displayName = Ii;
7708
- var ql = "PopperArrow", ig = {
7704
+ var ql = "PopperArrow", og = {
7709
7705
  top: "bottom",
7710
7706
  right: "left",
7711
7707
  bottom: "top",
7712
7708
  left: "right"
7713
7709
  }, Zl = x.forwardRef(function(t, n) {
7714
- const { __scopePopper: r, ...i } = t, o = rg(ql, r), s = ig[o.placedSide];
7710
+ const { __scopePopper: r, ...i } = t, o = ig(ql, r), s = og[o.placedSide];
7715
7711
  return (
7716
7712
  // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
7717
7713
  // doesn't report size as we'd expect on SVG elements.
@@ -7740,7 +7736,7 @@ var ql = "PopperArrow", ig = {
7740
7736
  visibility: o.shouldHideArrow ? "hidden" : void 0
7741
7737
  },
7742
7738
  children: /* @__PURE__ */ A.jsx(
7743
- Qm,
7739
+ eg,
7744
7740
  {
7745
7741
  ...i,
7746
7742
  ref: n,
@@ -7756,10 +7752,10 @@ var ql = "PopperArrow", ig = {
7756
7752
  );
7757
7753
  });
7758
7754
  Zl.displayName = ql;
7759
- function og(e) {
7755
+ function sg(e) {
7760
7756
  return e !== null;
7761
7757
  }
7762
- var sg = (e) => ({
7758
+ var ag = (e) => ({
7763
7759
  name: "transformOrigin",
7764
7760
  options: e,
7765
7761
  fn(t) {
@@ -7773,24 +7769,24 @@ function Jl(e) {
7773
7769
  const [t, n = "center"] = e.split("-");
7774
7770
  return [t, n];
7775
7771
  }
7776
- var ag = Hl, Ql = Gl, lg = Xl, cg = Zl, ug = "Portal", ec = x.forwardRef((e, t) => {
7772
+ var lg = Hl, Ql = Gl, cg = Xl, ug = Zl, fg = "Portal", ec = x.forwardRef((e, t) => {
7777
7773
  var a;
7778
7774
  const { container: n, ...r } = e, [i, o] = x.useState(!1);
7779
7775
  rt(() => o(!0), []);
7780
7776
  const s = n || i && ((a = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : a.body);
7781
7777
  return s ? Zc.createPortal(/* @__PURE__ */ A.jsx(Oe.div, { ...r, ref: t }), s) : null;
7782
7778
  });
7783
- ec.displayName = ug;
7784
- function fg(e, t) {
7779
+ ec.displayName = fg;
7780
+ function dg(e, t) {
7785
7781
  return x.useReducer((n, r) => t[n][r] ?? n, e);
7786
7782
  }
7787
7783
  var Wi = (e) => {
7788
- const { present: t, children: n } = e, r = dg(t), i = typeof n == "function" ? n({ present: r.isPresent }) : x.Children.only(n), o = Ue(r.ref, hg(i));
7784
+ const { present: t, children: n } = e, r = hg(t), i = typeof n == "function" ? n({ present: r.isPresent }) : x.Children.only(n), o = Ue(r.ref, pg(i));
7789
7785
  return typeof n == "function" || r.isPresent ? x.cloneElement(i, { ref: o }) : null;
7790
7786
  };
7791
7787
  Wi.displayName = "Presence";
7792
- function dg(e) {
7793
- const [t, n] = x.useState(), r = x.useRef({}), i = x.useRef(e), o = x.useRef("none"), s = e ? "mounted" : "unmounted", [a, l] = fg(s, {
7788
+ function hg(e) {
7789
+ const [t, n] = x.useState(), r = x.useRef({}), i = x.useRef(e), o = x.useRef("none"), s = e ? "mounted" : "unmounted", [a, l] = dg(s, {
7794
7790
  mounted: {
7795
7791
  UNMOUNT: "unmounted",
7796
7792
  ANIMATION_OUT: "unmountSuspended"
@@ -7841,18 +7837,18 @@ function dg(e) {
7841
7837
  function gn(e) {
7842
7838
  return (e == null ? void 0 : e.animationName) || "none";
7843
7839
  }
7844
- function hg(e) {
7840
+ function pg(e) {
7845
7841
  var r, i;
7846
7842
  let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning;
7847
7843
  return n ? e.ref : (t = (i = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : i.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
7848
7844
  }
7849
- function pg({
7845
+ function mg({
7850
7846
  prop: e,
7851
7847
  defaultProp: t,
7852
7848
  onChange: n = () => {
7853
7849
  }
7854
7850
  }) {
7855
- const [r, i] = mg({ defaultProp: t, onChange: n }), o = e !== void 0, s = o ? e : r, a = Be(n), l = x.useCallback(
7851
+ const [r, i] = gg({ defaultProp: t, onChange: n }), o = e !== void 0, s = o ? e : r, a = Be(n), l = x.useCallback(
7856
7852
  (c) => {
7857
7853
  if (o) {
7858
7854
  const f = typeof c == "function" ? c(e) : c;
@@ -7864,7 +7860,7 @@ function pg({
7864
7860
  );
7865
7861
  return [s, l];
7866
7862
  }
7867
- function mg({
7863
+ function gg({
7868
7864
  defaultProp: e,
7869
7865
  onChange: t
7870
7866
  }) {
@@ -7874,7 +7870,7 @@ function mg({
7874
7870
  }, [r, i, o]), n;
7875
7871
  }
7876
7872
  var vr = 0;
7877
- function gg() {
7873
+ function yg() {
7878
7874
  x.useEffect(() => {
7879
7875
  const e = document.querySelectorAll("[data-radix-focus-guard]");
7880
7876
  return document.body.insertAdjacentElement("afterbegin", e[0] ?? Fs()), document.body.insertAdjacentElement("beforeend", e[1] ?? Fs()), vr++, () => {
@@ -7886,7 +7882,7 @@ function Fs() {
7886
7882
  const e = document.createElement("span");
7887
7883
  return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
7888
7884
  }
7889
- var xr = "focusScope.autoFocusOnMount", wr = "focusScope.autoFocusOnUnmount", Ns = { bubbles: !1, cancelable: !0 }, yg = "FocusScope", tc = x.forwardRef((e, t) => {
7885
+ var xr = "focusScope.autoFocusOnMount", wr = "focusScope.autoFocusOnUnmount", Ns = { bubbles: !1, cancelable: !0 }, vg = "FocusScope", tc = x.forwardRef((e, t) => {
7890
7886
  const {
7891
7887
  loop: n = !1,
7892
7888
  trapped: r = !1,
@@ -7929,7 +7925,7 @@ var xr = "focusScope.autoFocusOnMount", wr = "focusScope.autoFocusOnUnmount", Ns
7929
7925
  const m = document.activeElement;
7930
7926
  if (!a.contains(m)) {
7931
7927
  const v = new CustomEvent(xr, Ns);
7932
- a.addEventListener(xr, c), a.dispatchEvent(v), v.defaultPrevented || (vg(Sg(nc(a)), { select: !0 }), document.activeElement === m && Ve(a));
7928
+ a.addEventListener(xr, c), a.dispatchEvent(v), v.defaultPrevented || (xg(Tg(nc(a)), { select: !0 }), document.activeElement === m && Ve(a));
7933
7929
  }
7934
7930
  return () => {
7935
7931
  a.removeEventListener(xr, c), setTimeout(() => {
@@ -7944,7 +7940,7 @@ var xr = "focusScope.autoFocusOnMount", wr = "focusScope.autoFocusOnUnmount", Ns
7944
7940
  if (!n && !r || h.paused) return;
7945
7941
  const y = m.key === "Tab" && !m.altKey && !m.ctrlKey && !m.metaKey, v = document.activeElement;
7946
7942
  if (y && v) {
7947
- const w = m.currentTarget, [P, S] = xg(w);
7943
+ const w = m.currentTarget, [P, S] = wg(w);
7948
7944
  P && S ? !m.shiftKey && v === S ? (m.preventDefault(), n && Ve(P, { select: !0 })) : m.shiftKey && v === P && (m.preventDefault(), n && Ve(S, { select: !0 })) : v === w && m.preventDefault();
7949
7945
  }
7950
7946
  },
@@ -7952,13 +7948,13 @@ var xr = "focusScope.autoFocusOnMount", wr = "focusScope.autoFocusOnUnmount", Ns
7952
7948
  );
7953
7949
  return /* @__PURE__ */ A.jsx(Oe.div, { tabIndex: -1, ...s, ref: d, onKeyDown: g });
7954
7950
  });
7955
- tc.displayName = yg;
7956
- function vg(e, { select: t = !1 } = {}) {
7951
+ tc.displayName = vg;
7952
+ function xg(e, { select: t = !1 } = {}) {
7957
7953
  const n = document.activeElement;
7958
7954
  for (const r of e)
7959
7955
  if (Ve(r, { select: t }), document.activeElement !== n) return;
7960
7956
  }
7961
- function xg(e) {
7957
+ function wg(e) {
7962
7958
  const t = nc(e), n = Bs(t, e), r = Bs(t.reverse(), e);
7963
7959
  return [n, r];
7964
7960
  }
@@ -7974,9 +7970,9 @@ function nc(e) {
7974
7970
  }
7975
7971
  function Bs(e, t) {
7976
7972
  for (const n of e)
7977
- if (!wg(n, { upTo: t })) return n;
7973
+ if (!bg(n, { upTo: t })) return n;
7978
7974
  }
7979
- function wg(e, { upTo: t }) {
7975
+ function bg(e, { upTo: t }) {
7980
7976
  if (getComputedStyle(e).visibility === "hidden") return !0;
7981
7977
  for (; e; ) {
7982
7978
  if (t !== void 0 && e === t) return !1;
@@ -7985,17 +7981,17 @@ function wg(e, { upTo: t }) {
7985
7981
  }
7986
7982
  return !1;
7987
7983
  }
7988
- function bg(e) {
7984
+ function Pg(e) {
7989
7985
  return e instanceof HTMLInputElement && "select" in e;
7990
7986
  }
7991
7987
  function Ve(e, { select: t = !1 } = {}) {
7992
7988
  if (e && e.focus) {
7993
7989
  const n = document.activeElement;
7994
- e.focus({ preventScroll: !0 }), e !== n && bg(e) && t && e.select();
7990
+ e.focus({ preventScroll: !0 }), e !== n && Pg(e) && t && e.select();
7995
7991
  }
7996
7992
  }
7997
- var _s = Pg();
7998
- function Pg() {
7993
+ var _s = Sg();
7994
+ function Sg() {
7999
7995
  let e = [];
8000
7996
  return {
8001
7997
  add(t) {
@@ -8012,17 +8008,17 @@ function Is(e, t) {
8012
8008
  const n = [...e], r = n.indexOf(t);
8013
8009
  return r !== -1 && n.splice(r, 1), n;
8014
8010
  }
8015
- function Sg(e) {
8011
+ function Tg(e) {
8016
8012
  return e.filter((t) => t.tagName !== "A");
8017
8013
  }
8018
- var Tg = function(e) {
8014
+ var Ag = function(e) {
8019
8015
  if (typeof document > "u")
8020
8016
  return null;
8021
8017
  var t = Array.isArray(e) ? e[0] : e;
8022
8018
  return t.ownerDocument.body;
8023
8019
  }, ft = /* @__PURE__ */ new WeakMap(), yn = /* @__PURE__ */ new WeakMap(), vn = {}, br = 0, rc = function(e) {
8024
8020
  return e && (e.host || rc(e.parentNode));
8025
- }, Ag = function(e, t) {
8021
+ }, Eg = function(e, t) {
8026
8022
  return t.map(function(n) {
8027
8023
  if (e.contains(n))
8028
8024
  return n;
@@ -8031,8 +8027,8 @@ var Tg = function(e) {
8031
8027
  }).filter(function(n) {
8032
8028
  return !!n;
8033
8029
  });
8034
- }, Eg = function(e, t, n, r) {
8035
- var i = Ag(t, Array.isArray(e) ? e : [e]);
8030
+ }, Cg = function(e, t, n, r) {
8031
+ var i = Eg(t, Array.isArray(e) ? e : [e]);
8036
8032
  vn[n] || (vn[n] = /* @__PURE__ */ new WeakMap());
8037
8033
  var o = vn[n], s = [], a = /* @__PURE__ */ new Set(), l = new Set(i), c = function(f) {
8038
8034
  !f || a.has(f) || (a.add(f), c(f.parentNode));
@@ -8057,10 +8053,10 @@ var Tg = function(e) {
8057
8053
  ft.set(f, d), o.set(f, h), d || (yn.has(f) || f.removeAttribute(r), yn.delete(f)), h || f.removeAttribute(n);
8058
8054
  }), br--, br || (ft = /* @__PURE__ */ new WeakMap(), ft = /* @__PURE__ */ new WeakMap(), yn = /* @__PURE__ */ new WeakMap(), vn = {});
8059
8055
  };
8060
- }, Cg = function(e, t, n) {
8056
+ }, Rg = function(e, t, n) {
8061
8057
  n === void 0 && (n = "data-aria-hidden");
8062
- var r = Array.from(Array.isArray(e) ? e : [e]), i = Tg(e);
8063
- return i ? (r.push.apply(r, Array.from(i.querySelectorAll("[aria-live]"))), Eg(r, i, n, "aria-hidden")) : function() {
8058
+ var r = Array.from(Array.isArray(e) ? e : [e]), i = Ag(e);
8059
+ return i ? (r.push.apply(r, Array.from(i.querySelectorAll("[aria-live]"))), Cg(r, i, n, "aria-hidden")) : function() {
8064
8060
  return null;
8065
8061
  };
8066
8062
  }, ye = function() {
@@ -8080,7 +8076,7 @@ function ic(e, t) {
8080
8076
  t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
8081
8077
  return n;
8082
8078
  }
8083
- function Fy(e, t, n, r) {
8079
+ function Ny(e, t, n, r) {
8084
8080
  function i(o) {
8085
8081
  return o instanceof n ? o : new n(function(s) {
8086
8082
  s(o);
@@ -8107,16 +8103,16 @@ function Fy(e, t, n, r) {
8107
8103
  c((r = r.apply(e, t || [])).next());
8108
8104
  });
8109
8105
  }
8110
- function Rg(e, t, n) {
8106
+ function Dg(e, t, n) {
8111
8107
  if (n || arguments.length === 2) for (var r = 0, i = t.length, o; r < i; r++)
8112
8108
  (o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
8113
8109
  return e.concat(o || Array.prototype.slice.call(t));
8114
8110
  }
8115
- var An = "right-scroll-bar-position", En = "width-before-scroll-bar", Dg = "with-scroll-bars-hidden", Og = "--removed-body-scroll-bar-size";
8111
+ var An = "right-scroll-bar-position", En = "width-before-scroll-bar", Og = "with-scroll-bars-hidden", Mg = "--removed-body-scroll-bar-size";
8116
8112
  function Pr(e, t) {
8117
8113
  return typeof e == "function" ? e(t) : e && (e.current = t), e;
8118
8114
  }
8119
- function Mg(e, t) {
8115
+ function Vg(e, t) {
8120
8116
  var n = Cn(function() {
8121
8117
  return {
8122
8118
  // value
@@ -8137,14 +8133,14 @@ function Mg(e, t) {
8137
8133
  })[0];
8138
8134
  return n.callback = t, n.facade;
8139
8135
  }
8140
- var Vg = typeof window < "u" ? x.useLayoutEffect : x.useEffect, Ws = /* @__PURE__ */ new WeakMap();
8141
- function kg(e, t) {
8142
- var n = Mg(null, function(r) {
8136
+ var kg = typeof window < "u" ? x.useLayoutEffect : x.useEffect, Ws = /* @__PURE__ */ new WeakMap();
8137
+ function Lg(e, t) {
8138
+ var n = Vg(null, function(r) {
8143
8139
  return e.forEach(function(i) {
8144
8140
  return Pr(i, r);
8145
8141
  });
8146
8142
  });
8147
- return Vg(function() {
8143
+ return kg(function() {
8148
8144
  var r = Ws.get(n);
8149
8145
  if (r) {
8150
8146
  var i = new Set(r), o = new Set(e), s = n.current;
@@ -8157,11 +8153,11 @@ function kg(e, t) {
8157
8153
  Ws.set(n, e);
8158
8154
  }, [e]), n;
8159
8155
  }
8160
- function Lg(e) {
8156
+ function jg(e) {
8161
8157
  return e;
8162
8158
  }
8163
- function jg(e, t) {
8164
- t === void 0 && (t = Lg);
8159
+ function Fg(e, t) {
8160
+ t === void 0 && (t = jg);
8165
8161
  var n = [], r = !1, i = {
8166
8162
  read: function() {
8167
8163
  if (r)
@@ -8215,9 +8211,9 @@ function jg(e, t) {
8215
8211
  };
8216
8212
  return i;
8217
8213
  }
8218
- function Fg(e) {
8214
+ function Ng(e) {
8219
8215
  e === void 0 && (e = {});
8220
- var t = jg(null);
8216
+ var t = Fg(null);
8221
8217
  return t.options = ye({ async: !0, ssr: !1 }, e), t;
8222
8218
  }
8223
8219
  var oc = function(e) {
@@ -8230,16 +8226,16 @@ var oc = function(e) {
8230
8226
  return x.createElement(r, ye({}, n));
8231
8227
  };
8232
8228
  oc.isSideCarExport = !0;
8233
- function Ng(e, t) {
8229
+ function Bg(e, t) {
8234
8230
  return e.useMedium(t), oc;
8235
8231
  }
8236
- var sc = Fg(), Sr = function() {
8232
+ var sc = Ng(), Sr = function() {
8237
8233
  }, qn = x.forwardRef(function(e, t) {
8238
8234
  var n = x.useRef(null), r = x.useState({
8239
8235
  onScrollCapture: Sr,
8240
8236
  onWheelCapture: Sr,
8241
8237
  onTouchMoveCapture: Sr
8242
- }), i = r[0], o = r[1], s = e.forwardProps, a = e.children, l = e.className, c = e.removeScrollBar, u = e.enabled, f = e.shards, d = e.sideCar, h = e.noIsolation, g = e.inert, m = e.allowPinchZoom, y = e.as, v = y === void 0 ? "div" : y, w = e.gapMode, P = ic(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), S = d, b = kg([n, t]), E = ye(ye({}, P), i);
8238
+ }), i = r[0], o = r[1], s = e.forwardProps, a = e.children, l = e.className, c = e.removeScrollBar, u = e.enabled, f = e.shards, d = e.sideCar, h = e.noIsolation, g = e.inert, m = e.allowPinchZoom, y = e.as, v = y === void 0 ? "div" : y, w = e.gapMode, P = ic(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), S = d, b = Lg([n, t]), E = ye(ye({}, P), i);
8243
8239
  return x.createElement(
8244
8240
  x.Fragment,
8245
8241
  null,
@@ -8256,37 +8252,37 @@ qn.classNames = {
8256
8252
  fullWidth: En,
8257
8253
  zeroRight: An
8258
8254
  };
8259
- var Bg = function() {
8255
+ var _g = function() {
8260
8256
  if (typeof __webpack_nonce__ < "u")
8261
8257
  return __webpack_nonce__;
8262
8258
  };
8263
- function _g() {
8259
+ function Ig() {
8264
8260
  if (!document)
8265
8261
  return null;
8266
8262
  var e = document.createElement("style");
8267
8263
  e.type = "text/css";
8268
- var t = Bg();
8264
+ var t = _g();
8269
8265
  return t && e.setAttribute("nonce", t), e;
8270
8266
  }
8271
- function Ig(e, t) {
8267
+ function Wg(e, t) {
8272
8268
  e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
8273
8269
  }
8274
- function Wg(e) {
8270
+ function $g(e) {
8275
8271
  var t = document.head || document.getElementsByTagName("head")[0];
8276
8272
  t.appendChild(e);
8277
8273
  }
8278
- var $g = function() {
8274
+ var Ug = function() {
8279
8275
  var e = 0, t = null;
8280
8276
  return {
8281
8277
  add: function(n) {
8282
- e == 0 && (t = _g()) && (Ig(t, n), Wg(t)), e++;
8278
+ e == 0 && (t = Ig()) && (Wg(t, n), $g(t)), e++;
8283
8279
  },
8284
8280
  remove: function() {
8285
8281
  e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
8286
8282
  }
8287
8283
  };
8288
- }, Ug = function() {
8289
- var e = $g();
8284
+ }, zg = function() {
8285
+ var e = Ug();
8290
8286
  return function(t, n) {
8291
8287
  x.useEffect(function() {
8292
8288
  return e.add(t), function() {
@@ -8295,35 +8291,35 @@ var $g = function() {
8295
8291
  }, [t && n]);
8296
8292
  };
8297
8293
  }, ac = function() {
8298
- var e = Ug(), t = function(n) {
8294
+ var e = zg(), t = function(n) {
8299
8295
  var r = n.styles, i = n.dynamic;
8300
8296
  return e(r, i), null;
8301
8297
  };
8302
8298
  return t;
8303
- }, zg = {
8299
+ }, Kg = {
8304
8300
  left: 0,
8305
8301
  top: 0,
8306
8302
  right: 0,
8307
8303
  gap: 0
8308
8304
  }, Tr = function(e) {
8309
8305
  return parseInt(e || "", 10) || 0;
8310
- }, Kg = function(e) {
8306
+ }, Hg = function(e) {
8311
8307
  var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], i = t[e === "padding" ? "paddingRight" : "marginRight"];
8312
8308
  return [Tr(n), Tr(r), Tr(i)];
8313
- }, Hg = function(e) {
8309
+ }, Yg = function(e) {
8314
8310
  if (e === void 0 && (e = "margin"), typeof window > "u")
8315
- return zg;
8316
- var t = Kg(e), n = document.documentElement.clientWidth, r = window.innerWidth;
8311
+ return Kg;
8312
+ var t = Hg(e), n = document.documentElement.clientWidth, r = window.innerWidth;
8317
8313
  return {
8318
8314
  left: t[0],
8319
8315
  top: t[1],
8320
8316
  right: t[2],
8321
8317
  gap: Math.max(0, r - n + t[2] - t[0])
8322
8318
  };
8323
- }, Yg = ac(), wt = "data-scroll-locked", Gg = function(e, t, n, r) {
8319
+ }, Gg = ac(), wt = "data-scroll-locked", Xg = function(e, t, n, r) {
8324
8320
  var i = e.left, o = e.top, s = e.right, a = e.gap;
8325
8321
  return n === void 0 && (n = "margin"), `
8326
- .`.concat(Dg, ` {
8322
+ .`.concat(Og, ` {
8327
8323
  overflow: hidden `).concat(r, `;
8328
8324
  padding-right: `).concat(a, "px ").concat(r, `;
8329
8325
  }
@@ -8361,26 +8357,26 @@ var $g = function() {
8361
8357
  }
8362
8358
 
8363
8359
  body[`).concat(wt, `] {
8364
- `).concat(Og, ": ").concat(a, `px;
8360
+ `).concat(Mg, ": ").concat(a, `px;
8365
8361
  }
8366
8362
  `);
8367
8363
  }, $s = function() {
8368
8364
  var e = parseInt(document.body.getAttribute(wt) || "0", 10);
8369
8365
  return isFinite(e) ? e : 0;
8370
- }, Xg = function() {
8366
+ }, qg = function() {
8371
8367
  x.useEffect(function() {
8372
8368
  return document.body.setAttribute(wt, ($s() + 1).toString()), function() {
8373
8369
  var e = $s() - 1;
8374
8370
  e <= 0 ? document.body.removeAttribute(wt) : document.body.setAttribute(wt, e.toString());
8375
8371
  };
8376
8372
  }, []);
8377
- }, qg = function(e) {
8373
+ }, Zg = function(e) {
8378
8374
  var t = e.noRelative, n = e.noImportant, r = e.gapMode, i = r === void 0 ? "margin" : r;
8379
- Xg();
8375
+ qg();
8380
8376
  var o = x.useMemo(function() {
8381
- return Hg(i);
8377
+ return Yg(i);
8382
8378
  }, [i]);
8383
- return x.createElement(Yg, { styles: Gg(o, !t, i, n ? "" : "!important") });
8379
+ return x.createElement(Gg, { styles: Xg(o, !t, i, n ? "" : "!important") });
8384
8380
  }, Yr = !1;
8385
8381
  if (typeof window < "u")
8386
8382
  try {
@@ -8393,7 +8389,7 @@ if (typeof window < "u")
8393
8389
  } catch {
8394
8390
  Yr = !1;
8395
8391
  }
8396
- var dt = Yr ? { passive: !1 } : !1, Zg = function(e) {
8392
+ var dt = Yr ? { passive: !1 } : !1, Jg = function(e) {
8397
8393
  return e.tagName === "TEXTAREA";
8398
8394
  }, lc = function(e, t) {
8399
8395
  if (!(e instanceof Element))
@@ -8402,11 +8398,11 @@ var dt = Yr ? { passive: !1 } : !1, Zg = function(e) {
8402
8398
  return (
8403
8399
  // not-not-scrollable
8404
8400
  n[t] !== "hidden" && // contains scroll inside self
8405
- !(n.overflowY === n.overflowX && !Zg(e) && n[t] === "visible")
8401
+ !(n.overflowY === n.overflowX && !Jg(e) && n[t] === "visible")
8406
8402
  );
8407
- }, Jg = function(e) {
8408
- return lc(e, "overflowY");
8409
8403
  }, Qg = function(e) {
8404
+ return lc(e, "overflowY");
8405
+ }, ey = function(e) {
8410
8406
  return lc(e, "overflowX");
8411
8407
  }, Us = function(e, t) {
8412
8408
  var n = t.ownerDocument, r = t;
@@ -8421,14 +8417,14 @@ var dt = Yr ? { passive: !1 } : !1, Zg = function(e) {
8421
8417
  r = r.parentNode;
8422
8418
  } while (r && r !== n.body);
8423
8419
  return !1;
8424
- }, ey = function(e) {
8420
+ }, ty = function(e) {
8425
8421
  var t = e.scrollTop, n = e.scrollHeight, r = e.clientHeight;
8426
8422
  return [
8427
8423
  t,
8428
8424
  n,
8429
8425
  r
8430
8426
  ];
8431
- }, ty = function(e) {
8427
+ }, ny = function(e) {
8432
8428
  var t = e.scrollLeft, n = e.scrollWidth, r = e.clientWidth;
8433
8429
  return [
8434
8430
  t,
@@ -8436,13 +8432,13 @@ var dt = Yr ? { passive: !1 } : !1, Zg = function(e) {
8436
8432
  r
8437
8433
  ];
8438
8434
  }, cc = function(e, t) {
8439
- return e === "v" ? Jg(t) : Qg(t);
8435
+ return e === "v" ? Qg(t) : ey(t);
8440
8436
  }, uc = function(e, t) {
8441
- return e === "v" ? ey(t) : ty(t);
8442
- }, ny = function(e, t) {
8437
+ return e === "v" ? ty(t) : ny(t);
8438
+ }, ry = function(e, t) {
8443
8439
  return e === "h" && t === "rtl" ? -1 : 1;
8444
- }, ry = function(e, t, n, r, i) {
8445
- var o = ny(e, window.getComputedStyle(t).direction), s = o * r, a = n.target, l = t.contains(a), c = !1, u = s > 0, f = 0, d = 0;
8440
+ }, iy = function(e, t, n, r, i) {
8441
+ var o = ry(e, window.getComputedStyle(t).direction), s = o * r, a = n.target, l = t.contains(a), c = !1, u = s > 0, f = 0, d = 0;
8446
8442
  do {
8447
8443
  var h = uc(e, a), g = h[0], m = h[1], y = h[2], v = m - y - o * g;
8448
8444
  (g || v) && cc(e, a) && (f += v, d += g), a instanceof ShadowRoot ? a = a.host : a = a.parentNode;
@@ -8458,22 +8454,22 @@ var dt = Yr ? { passive: !1 } : !1, Zg = function(e) {
8458
8454
  return [e.deltaX, e.deltaY];
8459
8455
  }, Ks = function(e) {
8460
8456
  return e && "current" in e ? e.current : e;
8461
- }, iy = function(e, t) {
8457
+ }, oy = function(e, t) {
8462
8458
  return e[0] === t[0] && e[1] === t[1];
8463
- }, oy = function(e) {
8459
+ }, sy = function(e) {
8464
8460
  return `
8465
8461
  .block-interactivity-`.concat(e, ` {pointer-events: none;}
8466
8462
  .allow-interactivity-`).concat(e, ` {pointer-events: all;}
8467
8463
  `);
8468
- }, sy = 0, ht = [];
8469
- function ay(e) {
8470
- var t = x.useRef([]), n = x.useRef([0, 0]), r = x.useRef(), i = x.useState(sy++)[0], o = x.useState(ac)[0], s = x.useRef(e);
8464
+ }, ay = 0, ht = [];
8465
+ function ly(e) {
8466
+ var t = x.useRef([]), n = x.useRef([0, 0]), r = x.useRef(), i = x.useState(ay++)[0], o = x.useState(ac)[0], s = x.useRef(e);
8471
8467
  x.useEffect(function() {
8472
8468
  s.current = e;
8473
8469
  }, [e]), x.useEffect(function() {
8474
8470
  if (e.inert) {
8475
8471
  document.body.classList.add("block-interactivity-".concat(i));
8476
- var m = Rg([e.lockRef.current], (e.shards || []).map(Ks), !0).filter(Boolean);
8472
+ var m = Dg([e.lockRef.current], (e.shards || []).map(Ks), !0).filter(Boolean);
8477
8473
  return m.forEach(function(y) {
8478
8474
  return y.classList.add("allow-interactivity-".concat(i));
8479
8475
  }), function() {
@@ -8497,12 +8493,12 @@ function ay(e) {
8497
8493
  if (!r.current && "changedTouches" in m && (P || S) && (r.current = b), !b)
8498
8494
  return !0;
8499
8495
  var k = r.current || b;
8500
- return ry(k, y, m, k === "h" ? P : S);
8496
+ return iy(k, y, m, k === "h" ? P : S);
8501
8497
  }, []), l = x.useCallback(function(m) {
8502
8498
  var y = m;
8503
8499
  if (!(!ht.length || ht[ht.length - 1] !== o)) {
8504
8500
  var v = "deltaY" in y ? zs(y) : wn(y), w = t.current.filter(function(b) {
8505
- return b.name === y.type && (b.target === y.target || y.target === b.shadowParent) && iy(b.delta, v);
8501
+ return b.name === y.type && (b.target === y.target || y.target === b.shadowParent) && oy(b.delta, v);
8506
8502
  })[0];
8507
8503
  if (w && w.should) {
8508
8504
  y.cancelable && y.preventDefault();
@@ -8516,7 +8512,7 @@ function ay(e) {
8516
8512
  }
8517
8513
  }
8518
8514
  }, []), c = x.useCallback(function(m, y, v, w) {
8519
- var P = { name: m, delta: y, target: v, should: w, shadowParent: ly(v) };
8515
+ var P = { name: m, delta: y, target: v, should: w, shadowParent: cy(v) };
8520
8516
  t.current.push(P), setTimeout(function() {
8521
8517
  t.current = t.current.filter(function(S) {
8522
8518
  return S !== P;
@@ -8544,23 +8540,23 @@ function ay(e) {
8544
8540
  return x.createElement(
8545
8541
  x.Fragment,
8546
8542
  null,
8547
- g ? x.createElement(o, { styles: oy(i) }) : null,
8548
- h ? x.createElement(qg, { gapMode: e.gapMode }) : null
8543
+ g ? x.createElement(o, { styles: sy(i) }) : null,
8544
+ h ? x.createElement(Zg, { gapMode: e.gapMode }) : null
8549
8545
  );
8550
8546
  }
8551
- function ly(e) {
8547
+ function cy(e) {
8552
8548
  for (var t = null; e !== null; )
8553
8549
  e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
8554
8550
  return t;
8555
8551
  }
8556
- const cy = Ng(sc, ay);
8552
+ const uy = Bg(sc, ly);
8557
8553
  var fc = x.forwardRef(function(e, t) {
8558
- return x.createElement(qn, ye({}, e, { ref: t, sideCar: cy }));
8554
+ return x.createElement(qn, ye({}, e, { ref: t, sideCar: uy }));
8559
8555
  });
8560
8556
  fc.classNames = qn.classNames;
8561
- var $i = "Popover", [dc, Ny] = Rl($i, [
8557
+ var $i = "Popover", [dc, By] = Rl($i, [
8562
8558
  zl
8563
- ]), rn = zl(), [uy, ze] = dc($i), hc = (e) => {
8559
+ ]), rn = zl(), [fy, ze] = dc($i), hc = (e) => {
8564
8560
  const {
8565
8561
  __scopePopover: t,
8566
8562
  children: n,
@@ -8568,16 +8564,16 @@ var $i = "Popover", [dc, Ny] = Rl($i, [
8568
8564
  defaultOpen: i,
8569
8565
  onOpenChange: o,
8570
8566
  modal: s = !1
8571
- } = e, a = rn(t), l = x.useRef(null), [c, u] = x.useState(!1), [f = !1, d] = pg({
8567
+ } = e, a = rn(t), l = x.useRef(null), [c, u] = x.useState(!1), [f = !1, d] = mg({
8572
8568
  prop: r,
8573
8569
  defaultProp: i,
8574
8570
  onChange: o
8575
8571
  });
8576
- return /* @__PURE__ */ A.jsx(ag, { ...a, children: /* @__PURE__ */ A.jsx(
8577
- uy,
8572
+ return /* @__PURE__ */ A.jsx(lg, { ...a, children: /* @__PURE__ */ A.jsx(
8573
+ fy,
8578
8574
  {
8579
8575
  scope: t,
8580
- contentId: em(),
8576
+ contentId: tm(),
8581
8577
  triggerRef: l,
8582
8578
  open: f,
8583
8579
  onOpenChange: d,
@@ -8591,13 +8587,13 @@ var $i = "Popover", [dc, Ny] = Rl($i, [
8591
8587
  ) });
8592
8588
  };
8593
8589
  hc.displayName = $i;
8594
- var pc = "PopoverAnchor", fy = x.forwardRef(
8590
+ var pc = "PopoverAnchor", dy = x.forwardRef(
8595
8591
  (e, t) => {
8596
8592
  const { __scopePopover: n, ...r } = e, i = ze(pc, n), o = rn(n), { onCustomAnchorAdd: s, onCustomAnchorRemove: a } = i;
8597
8593
  return x.useEffect(() => (s(), () => a()), [s, a]), /* @__PURE__ */ A.jsx(Ql, { ...o, ...r, ref: t });
8598
8594
  }
8599
8595
  );
8600
- fy.displayName = pc;
8596
+ dy.displayName = pc;
8601
8597
  var mc = "PopoverTrigger", gc = x.forwardRef(
8602
8598
  (e, t) => {
8603
8599
  const { __scopePopover: n, ...r } = e, i = ze(mc, n), o = rn(n), s = Ue(t, i.triggerRef), a = /* @__PURE__ */ A.jsx(
@@ -8617,26 +8613,26 @@ var mc = "PopoverTrigger", gc = x.forwardRef(
8617
8613
  }
8618
8614
  );
8619
8615
  gc.displayName = mc;
8620
- var Ui = "PopoverPortal", [dy, hy] = dc(Ui, {
8616
+ var Ui = "PopoverPortal", [hy, py] = dc(Ui, {
8621
8617
  forceMount: void 0
8622
8618
  }), yc = (e) => {
8623
8619
  const { __scopePopover: t, forceMount: n, children: r, container: i } = e, o = ze(Ui, t);
8624
- return /* @__PURE__ */ A.jsx(dy, { scope: t, forceMount: n, children: /* @__PURE__ */ A.jsx(Wi, { present: n || o.open, children: /* @__PURE__ */ A.jsx(ec, { asChild: !0, container: i, children: r }) }) });
8620
+ return /* @__PURE__ */ A.jsx(hy, { scope: t, forceMount: n, children: /* @__PURE__ */ A.jsx(Wi, { present: n || o.open, children: /* @__PURE__ */ A.jsx(ec, { asChild: !0, container: i, children: r }) }) });
8625
8621
  };
8626
8622
  yc.displayName = Ui;
8627
8623
  var Et = "PopoverContent", vc = x.forwardRef(
8628
8624
  (e, t) => {
8629
- const n = hy(Et, e.__scopePopover), { forceMount: r = n.forceMount, ...i } = e, o = ze(Et, e.__scopePopover);
8630
- return /* @__PURE__ */ A.jsx(Wi, { present: r || o.open, children: o.modal ? /* @__PURE__ */ A.jsx(py, { ...i, ref: t }) : /* @__PURE__ */ A.jsx(my, { ...i, ref: t }) });
8625
+ const n = py(Et, e.__scopePopover), { forceMount: r = n.forceMount, ...i } = e, o = ze(Et, e.__scopePopover);
8626
+ return /* @__PURE__ */ A.jsx(Wi, { present: r || o.open, children: o.modal ? /* @__PURE__ */ A.jsx(my, { ...i, ref: t }) : /* @__PURE__ */ A.jsx(gy, { ...i, ref: t }) });
8631
8627
  }
8632
8628
  );
8633
8629
  vc.displayName = Et;
8634
- var py = x.forwardRef(
8630
+ var my = x.forwardRef(
8635
8631
  (e, t) => {
8636
8632
  const n = ze(Et, e.__scopePopover), r = x.useRef(null), i = Ue(t, r), o = x.useRef(!1);
8637
8633
  return x.useEffect(() => {
8638
8634
  const s = r.current;
8639
- if (s) return Cg(s);
8635
+ if (s) return Rg(s);
8640
8636
  }, []), /* @__PURE__ */ A.jsx(fc, { as: Mi, allowPinchZoom: !0, children: /* @__PURE__ */ A.jsx(
8641
8637
  xc,
8642
8638
  {
@@ -8664,7 +8660,7 @@ var py = x.forwardRef(
8664
8660
  }
8665
8661
  ) });
8666
8662
  }
8667
- ), my = x.forwardRef(
8663
+ ), gy = x.forwardRef(
8668
8664
  (e, t) => {
8669
8665
  const n = ze(Et, e.__scopePopover), r = x.useRef(!1), i = x.useRef(!1);
8670
8666
  return /* @__PURE__ */ A.jsx(
@@ -8701,7 +8697,7 @@ var py = x.forwardRef(
8701
8697
  onInteractOutside: u,
8702
8698
  ...f
8703
8699
  } = e, d = ze(Et, n), h = rn(n);
8704
- return gg(), /* @__PURE__ */ A.jsx(
8700
+ return yg(), /* @__PURE__ */ A.jsx(
8705
8701
  tc,
8706
8702
  {
8707
8703
  asChild: !0,
@@ -8720,7 +8716,7 @@ var py = x.forwardRef(
8720
8716
  onFocusOutside: c,
8721
8717
  onDismiss: () => d.onOpenChange(!1),
8722
8718
  children: /* @__PURE__ */ A.jsx(
8723
- lg,
8719
+ cg,
8724
8720
  {
8725
8721
  "data-state": Sc(d.open),
8726
8722
  role: "dialog",
@@ -8758,18 +8754,18 @@ var py = x.forwardRef(
8758
8754
  }
8759
8755
  );
8760
8756
  bc.displayName = wc;
8761
- var gy = "PopoverArrow", Pc = x.forwardRef(
8757
+ var yy = "PopoverArrow", Pc = x.forwardRef(
8762
8758
  (e, t) => {
8763
8759
  const { __scopePopover: n, ...r } = e, i = rn(n);
8764
- return /* @__PURE__ */ A.jsx(cg, { ...i, ...r, ref: t });
8760
+ return /* @__PURE__ */ A.jsx(ug, { ...i, ...r, ref: t });
8765
8761
  }
8766
8762
  );
8767
- Pc.displayName = gy;
8763
+ Pc.displayName = yy;
8768
8764
  function Sc(e) {
8769
8765
  return e ? "open" : "closed";
8770
8766
  }
8771
- var yy = hc, vy = gc, xy = yc, wy = vc, by = bc, Py = Pc;
8772
- const By = ({
8767
+ var vy = hc, xy = gc, wy = yc, by = vc, Py = bc, Sy = Pc;
8768
+ const _y = ({
8773
8769
  triggerElement: e,
8774
8770
  classes: t,
8775
8771
  sideOffset: n = 4,
@@ -8782,17 +8778,17 @@ const By = ({
8782
8778
  arrowPadding: c,
8783
8779
  portalContainer: u,
8784
8780
  ...f
8785
- }) => /* @__PURE__ */ A.jsxs(yy, { defaultOpen: s, children: [
8781
+ }) => /* @__PURE__ */ A.jsxs(vy, { defaultOpen: s, children: [
8786
8782
  /* @__PURE__ */ A.jsx("div", { className: W("flex w-max items-center gap-2", t == null ? void 0 : t.root), children: /* @__PURE__ */ A.jsx(
8787
- vy,
8783
+ xy,
8788
8784
  {
8789
8785
  "aria-label": "tooltip",
8790
8786
  className: W("flex cursor-pointer items-center justify-center", t == null ? void 0 : t.trigger),
8791
8787
  children: e
8792
8788
  }
8793
8789
  ) }),
8794
- /* @__PURE__ */ A.jsx(xy, { container: u, children: /* @__PURE__ */ A.jsxs(
8795
- wy,
8790
+ /* @__PURE__ */ A.jsx(wy, { container: u, children: /* @__PURE__ */ A.jsxs(
8791
+ by,
8796
8792
  {
8797
8793
  className: W(
8798
8794
  "desk-body-regular-m flex w-fit max-w-64 items-start gap-2 rounded-sm bg-color-white p-4 shadow-sm outline-none",
@@ -8808,7 +8804,7 @@ const By = ({
8808
8804
  children: [
8809
8805
  l,
8810
8806
  /* @__PURE__ */ A.jsx(
8811
- by,
8807
+ Py,
8812
8808
  {
8813
8809
  "aria-label": "Close",
8814
8810
  className: W("flex size-5 items-center justify-center outline-0 outline-transparent", t == null ? void 0 : t.closeTrigger),
@@ -8824,11 +8820,11 @@ const By = ({
8824
8820
  )
8825
8821
  }
8826
8822
  ),
8827
- /* @__PURE__ */ A.jsx(Py, { width: 12, height: 6, className: W("fill-white", t == null ? void 0 : t.arrowIcon) })
8823
+ /* @__PURE__ */ A.jsx(Sy, { width: 12, height: 6, className: W("fill-white", t == null ? void 0 : t.arrowIcon) })
8828
8824
  ]
8829
8825
  }
8830
8826
  ) })
8831
- ] }), Sy = Rt("", {
8827
+ ] }), Ty = Rt("", {
8832
8828
  variants: {
8833
8829
  as: {
8834
8830
  h1: "mob-headline-bold-m desktop:desk-headline-bold-l",
@@ -8840,17 +8836,17 @@ const By = ({
8840
8836
  defaultVariants: {
8841
8837
  as: "h2"
8842
8838
  }
8843
- }), _y = ({ as: e = "h2", children: t, className: n, ...r }) => {
8839
+ }), Iy = ({ as: e = "h2", children: t, className: n, ...r }) => {
8844
8840
  const i = e;
8845
- return /* @__PURE__ */ A.jsx(i, { className: W(Sy({ as: e }), n), ...r, children: t });
8846
- }, Iy = {
8841
+ return /* @__PURE__ */ A.jsx(i, { className: W(Ty({ as: e }), n), ...r, children: t });
8842
+ }, Wy = {
8847
8843
  main: /* @__PURE__ */ A.jsx(Ae, { name: "brandLogos/logoMain" }),
8848
8844
  white: /* @__PURE__ */ A.jsx(Ae, { name: "brandLogos/logoWhite" }),
8849
8845
  gray: /* @__PURE__ */ A.jsx(Ae, { name: "brandLogos/logoGray" }),
8850
8846
  black: /* @__PURE__ */ A.jsx(Ae, { name: "brandLogos/logoBlack" }),
8851
8847
  business: /* @__PURE__ */ A.jsx(Ae, { name: "brandLogos/logoBusiness" }),
8852
8848
  insurance: /* @__PURE__ */ A.jsx(Ae, { name: "brandLogos/logoInsurance" })
8853
- }, Ty = Rt(
8849
+ }, Ay = Rt(
8854
8850
  "group outline-none transition-all duration-100 p-[2px] rounded-sm border border-solid border-transparent hover:underline underline-offset-4",
8855
8851
  {
8856
8852
  variants: {
@@ -8879,7 +8875,7 @@ const By = ({
8879
8875
  withUnderline: !1
8880
8876
  }
8881
8877
  }
8882
- ), Ay = Rt("size-6", {
8878
+ ), Ey = Rt("size-6", {
8883
8879
  variants: {
8884
8880
  intent: {
8885
8881
  blue: "text-icon-primary-default group-hover:text-icon-primary-hover group-focus:text-icon-primary-default ",
@@ -8895,56 +8891,56 @@ const By = ({
8895
8891
  intent: "blue",
8896
8892
  disabled: !1
8897
8893
  }
8898
- }), Wy = ({ intent: e, children: t, disabled: n, size: r, icon: i, classes: o, withUnderline: s, ...a }) => /* @__PURE__ */ A.jsxs("a", { className: W(Ty({ intent: e, withUnderline: s, disabled: n, size: r }), o == null ? void 0 : o.link), ...a, children: [
8894
+ }), $y = ({ intent: e, children: t, disabled: n, size: r, icon: i, classes: o, withUnderline: s, ...a }) => /* @__PURE__ */ A.jsxs("a", { className: W(Ay({ intent: e, withUnderline: s, disabled: n, size: r }), o == null ? void 0 : o.link), ...a, children: [
8899
8895
  t,
8900
- i && /* @__PURE__ */ A.jsx(Ae, { name: i, className: W(Ay({ intent: e, disabled: n }), o == null ? void 0 : o.icon) })
8896
+ i && /* @__PURE__ */ A.jsx(Ae, { name: i, className: W(Ey({ intent: e, disabled: n }), o == null ? void 0 : o.icon) })
8901
8897
  ] });
8902
8898
  export {
8903
- Fp as A,
8904
- My as B,
8905
- Wy as C,
8899
+ Np as A,
8900
+ Vy as B,
8901
+ $y as C,
8906
8902
  Ol as D,
8907
- jy as E,
8903
+ Fy as E,
8908
8904
  le as F,
8909
8905
  jn as G,
8910
- _y as H,
8906
+ Iy as H,
8911
8907
  Ae as I,
8912
8908
  _e as J,
8913
- Hm as K,
8909
+ Ym as K,
8914
8910
  ru as L,
8915
- Gm as M,
8916
- Xm as N,
8917
- jm as O,
8918
- Vy as P,
8919
- eg as Q,
8920
- Oy as R,
8921
- Dy as S,
8922
- Fy as _,
8923
- By as a,
8924
- Iy as b,
8911
+ Xm as M,
8912
+ qm as N,
8913
+ Fm as O,
8914
+ ky as P,
8915
+ tg as Q,
8916
+ My as R,
8917
+ Oy as S,
8918
+ Ny as _,
8919
+ _y as a,
8920
+ Wy as b,
8925
8921
  Rt as c,
8926
- ky as d,
8922
+ Ly as d,
8927
8923
  Oe as e,
8928
8924
  Rl as f,
8929
8925
  zl as g,
8930
- pg as h,
8931
- ag as i,
8926
+ mg as h,
8927
+ lg as i,
8932
8928
  A as j,
8933
8929
  Ue as k,
8934
8930
  Ql as l,
8935
8931
  Al as m,
8936
8932
  Le as n,
8937
8933
  Wi as o,
8938
- cg as p,
8939
- lg as q,
8940
- Bp as r,
8934
+ ug as p,
8935
+ cg as q,
8936
+ _p as r,
8941
8937
  Mi as s,
8942
8938
  Be as t,
8943
- em as u,
8944
- cu as v,
8945
- Um as w,
8939
+ tm as u,
8940
+ uu as v,
8941
+ zm as w,
8946
8942
  me as x,
8947
8943
  Re as y,
8948
- Km as z
8944
+ Hm as z
8949
8945
  };
8950
- //# sourceMappingURL=CustomLink-DRb2l2sC.js.map
8946
+ //# sourceMappingURL=CustomLink-BrBUFe53.js.map