@fileverse-dev/ddoc 1.4.5 → 1.4.6

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.es.js CHANGED
@@ -16523,7 +16523,7 @@ var w6 = function(n) {
16523
16523
  return s ? (r.push.apply(r, Array.from(s.querySelectorAll("[aria-live]"))), v6(r, s, t, "aria-hidden")) : function() {
16524
16524
  return null;
16525
16525
  };
16526
- }, O1 = "Dialog", [EM, poe] = S1(O1), [x6, Ns] = EM(O1), CM = (n) => {
16526
+ }, O1 = "Dialog", [EM, moe] = S1(O1), [x6, Ns] = EM(O1), CM = (n) => {
16527
16527
  const {
16528
16528
  __scopeDialog: e,
16529
16529
  children: t,
@@ -16727,7 +16727,7 @@ BM.displayName = LM;
16727
16727
  function P1(n) {
16728
16728
  return n ? "open" : "closed";
16729
16729
  }
16730
- var _M = "DialogTitleWarning", [moe, FM] = a5(_M, {
16730
+ var _M = "DialogTitleWarning", [goe, FM] = a5(_M, {
16731
16731
  contentName: _l,
16732
16732
  titleName: M1,
16733
16733
  docsSlug: "dialog"
@@ -36627,7 +36627,7 @@ function _I(n) {
36627
36627
  const [e, t = "center"] = n.split("-");
36628
36628
  return [e, t];
36629
36629
  }
36630
- var G7 = MI, FI = DI, W7 = II, K7 = BI, Vx = "Popover", [jI, boe] = S1(Vx, [
36630
+ var G7 = MI, FI = DI, W7 = II, K7 = BI, Vx = "Popover", [jI, woe] = S1(Vx, [
36631
36631
  OI
36632
36632
  ]), Xh = OI(), [Q7, sc] = jI(Vx), UI = (n) => {
36633
36633
  const {
@@ -36686,7 +36686,7 @@ var HI = "PopoverTrigger", zI = U.forwardRef(
36686
36686
  }
36687
36687
  );
36688
36688
  zI.displayName = HI;
36689
- var q7 = "PopoverPortal", [woe, Y7] = jI(q7, {
36689
+ var q7 = "PopoverPortal", [Aoe, Y7] = jI(q7, {
36690
36690
  forceMount: void 0
36691
36691
  }), af = "PopoverContent", $I = U.forwardRef(
36692
36692
  (n, e) => {
@@ -54155,15 +54155,15 @@ wv = function(t, r) {
54155
54155
  }), await Promise.race(s), await ue(this, br, Av).call(this, t, r);
54156
54156
  };
54157
54157
  function Mte(n) {
54158
- return n && typeof n.send == "function" && typeof n.close == "function";
54158
+ return typeof n.send == "function" && typeof n.close == "function";
54159
54159
  }
54160
54160
  const Pte = "goerli kovan sepolia classicKotti optimism-goerli arbitrum-goerli matic-mumbai bnbt".split(" ");
54161
54161
  function Dte(n, e) {
54162
54162
  e == null && (e = {});
54163
54163
  const t = (o) => e[o] === "-" ? !1 : typeof e.exclusive == "string" ? o === e.exclusive : Array.isArray(e.exclusive) ? e.exclusive.indexOf(o) !== -1 : !0;
54164
- if (typeof n == "string" && n.match(/^https?:/))
54164
+ if (n.match(/^https?:/))
54165
54165
  return new qi(n);
54166
- if (typeof n == "string" && n.match(/^wss?:/) || Mte(n))
54166
+ if (n.match(/^wss?:/) || Mte(n))
54167
54167
  return new ZB(n);
54168
54168
  let r = null;
54169
54169
  try {
@@ -54220,8 +54220,6 @@ const Ite = async (n, e) => {
54220
54220
  name: n,
54221
54221
  isEns: !1
54222
54222
  };
54223
- if (!e)
54224
- throw new Error("cannot fetch ens name without a provider url");
54225
54223
  if (!RX(n)) return t;
54226
54224
  try {
54227
54225
  const r = await Lte(n, e);
@@ -54230,7 +54228,7 @@ const Ite = async (n, e) => {
54230
54228
  console.log(r);
54231
54229
  }
54232
54230
  return t;
54233
- }, Lte = async (n, e) => await Bte(e).lookupAddress(n), Bte = (n) => Dte(n), _R = [
54231
+ }, Lte = async (n, e) => await Bte(e).lookupAddress(n), Bte = (n) => Dte(n), _te = "https://eth-mainnet.g.alchemy.com/v2/uzKE0HT-Vc3LmUAA_dNVEt2rO8LtJGA3", _R = [
54234
54232
  "#30bced",
54235
54233
  "#6eeb83",
54236
54234
  "#fa69d1",
@@ -54239,12 +54237,12 @@ const Ite = async (n, e) => {
54239
54237
  "#db3041",
54240
54238
  "#0ad7f2",
54241
54239
  "#1bff39"
54242
- ], _te = ({
54240
+ ], Fte = ({
54243
54241
  isPreviewMode: n,
54244
54242
  initialContent: e,
54245
54243
  enableCollaboration: t,
54246
54244
  collaborationId: r,
54247
- ensProviderUrl: s,
54245
+ walletAddress: s,
54248
54246
  username: i,
54249
54247
  onAutoSave: o,
54250
54248
  onChange: a,
@@ -54272,7 +54270,7 @@ const Ite = async (n, e) => {
54272
54270
  }
54273
54271
  }), b = ht(() => {
54274
54272
  }), v = (R, M = !1) => {
54275
- if (!t || !r || !R)
54273
+ if (!t || !r)
54276
54274
  throw new Error("docId or username is not provided");
54277
54275
  f(!0);
54278
54276
  const P = new aW(r, c, {
@@ -54310,16 +54308,18 @@ const Ite = async (n, e) => {
54310
54308
  });
54311
54309
  }, [e, w]);
54312
54310
  const x = async () => {
54313
- if (!i) return;
54314
54311
  let R = i, M = !1;
54315
54312
  if (s) {
54316
- const { name: P, isEns: B } = await Ite(i, s);
54313
+ const { name: P, isEns: B } = await Ite(
54314
+ s,
54315
+ _te
54316
+ );
54317
54317
  R = P, M = B;
54318
54318
  }
54319
54319
  v(R, M);
54320
54320
  };
54321
54321
  it(() => {
54322
- t && i ? x() : b.current();
54322
+ t ? x() : b.current();
54323
54323
  }, [t]);
54324
54324
  const C = ts(
54325
54325
  () => Mx((R, M) => {
@@ -54349,7 +54349,7 @@ const Ite = async (n, e) => {
54349
54349
  connect: v,
54350
54350
  ydoc: c
54351
54351
  };
54352
- }, Fte = ({
54352
+ }, jte = ({
54353
54353
  title: n,
54354
54354
  content: e,
54355
54355
  contentClassName: t,
@@ -54400,7 +54400,7 @@ const Ite = async (n, e) => {
54400
54400
  ] })
54401
54401
  ] })
54402
54402
  }
54403
- ), jte = ({
54403
+ ), Ute = ({
54404
54404
  editor: n,
54405
54405
  uploadToIpfs: e
54406
54406
  }) => {
@@ -54479,7 +54479,7 @@ const Ite = async (n, e) => {
54479
54479
  }
54480
54480
  ),
54481
54481
  t === Ne.LINK_POPUP && /* @__PURE__ */ k.jsx(
54482
- Fte,
54482
+ jte,
54483
54483
  {
54484
54484
  open: t === Ne.LINK_POPUP,
54485
54485
  onOpenChange: () => r(Ne.NONE),
@@ -54529,7 +54529,7 @@ const Ite = async (n, e) => {
54529
54529
  transformPagePoint: (n) => n,
54530
54530
  isStatic: !1,
54531
54531
  reducedMotion: "never"
54532
- }), C0 = mi({}), k0 = mi(null), mE = typeof document < "u", gE = mE ? vf : it, r_ = mi({ strict: !1 }), yE = (n) => n.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), Ute = "framerAppearId", s_ = "data-" + yE(Ute), Vte = {
54532
+ }), C0 = mi({}), k0 = mi(null), mE = typeof document < "u", gE = mE ? vf : it, r_ = mi({ strict: !1 }), yE = (n) => n.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), Vte = "framerAppearId", s_ = "data-" + yE(Vte), Hte = {
54533
54533
  skipAnimations: !1,
54534
54534
  useManualTiming: !1
54535
54535
  };
@@ -54549,7 +54549,7 @@ class FR {
54549
54549
  this.order.length = 0, this.scheduled.clear();
54550
54550
  }
54551
54551
  }
54552
- function Hte(n) {
54552
+ function zte(n) {
54553
54553
  let e = new FR(), t = new FR(), r = 0, s = !1, i = !1;
54554
54554
  const o = /* @__PURE__ */ new WeakSet(), a = {
54555
54555
  /**
@@ -54596,18 +54596,18 @@ const Xp = [
54596
54596
  // Write
54597
54597
  "postRender"
54598
54598
  // Compute
54599
- ], zte = 40;
54599
+ ], $te = 40;
54600
54600
  function i_(n, e) {
54601
54601
  let t = !1, r = !0;
54602
54602
  const s = {
54603
54603
  delta: 0,
54604
54604
  timestamp: 0,
54605
54605
  isProcessing: !1
54606
- }, i = Xp.reduce((f, d) => (f[d] = Hte(() => t = !0), f), {}), o = (f) => {
54606
+ }, i = Xp.reduce((f, d) => (f[d] = zte(() => t = !0), f), {}), o = (f) => {
54607
54607
  i[f].process(s);
54608
54608
  }, a = () => {
54609
54609
  const f = performance.now();
54610
- t = !1, s.delta = r ? 1e3 / 60 : Math.max(Math.min(f - s.timestamp, zte), 1), s.timestamp = f, s.isProcessing = !0, Xp.forEach(o), s.isProcessing = !1, t && e && (r = !1, n(a));
54610
+ t = !1, s.delta = r ? 1e3 / 60 : Math.max(Math.min(f - s.timestamp, $te), 1), s.timestamp = f, s.isProcessing = !0, Xp.forEach(o), s.isProcessing = !1, t && e && (r = !1, n(a));
54611
54611
  }, l = () => {
54612
54612
  t = !0, r = !0, s.isProcessing || n(a);
54613
54613
  };
@@ -54616,13 +54616,13 @@ function i_(n, e) {
54616
54616
  return f[d] = (p, m = !1, y = !1) => (t || l(), h.schedule(p, m, y)), f;
54617
54617
  }, {}), cancel: (f) => Xp.forEach((d) => i[d].cancel(f)), state: s, steps: i };
54618
54618
  }
54619
- const { schedule: bE, cancel: xoe } = i_(queueMicrotask, !1);
54619
+ const { schedule: bE, cancel: Eoe } = i_(queueMicrotask, !1);
54620
54620
  function Dc(n) {
54621
54621
  return n && typeof n == "object" && Object.prototype.hasOwnProperty.call(n, "current");
54622
54622
  }
54623
54623
  const o_ = mi({});
54624
54624
  let jR = !1;
54625
- function $te(n, e, t, r, s) {
54625
+ function Gte(n, e, t, r, s) {
54626
54626
  const { visualElement: i } = Zt(C0), o = Zt(r_), a = Zt(k0), l = Zt(pE).reducedMotion, c = ht();
54627
54627
  r = r || o.renderer, !c.current && r && (c.current = r(n, {
54628
54628
  visualState: e,
@@ -54633,20 +54633,20 @@ function $te(n, e, t, r, s) {
54633
54633
  reducedMotionConfig: l
54634
54634
  }));
54635
54635
  const u = c.current, f = Zt(o_);
54636
- u && !u.projection && s && (u.type === "html" || u.type === "svg") && Wte(c.current, t, s, f), YO(() => {
54636
+ u && !u.projection && s && (u.type === "html" || u.type === "svg") && Kte(c.current, t, s, f), YO(() => {
54637
54637
  u && u.update(t, a);
54638
54638
  });
54639
54639
  const d = ht(!!(t[s_] && !window.HandoffComplete));
54640
54640
  return gE(() => {
54641
54641
  u && (u.updateFeatures(), bE.render(u.render), d.current && u.animationState && u.animationState.animateChanges());
54642
54642
  }), it(() => {
54643
- u && (!d.current && u.animationState && u.animationState.animateChanges(), d.current && (d.current = !1, jR || (jR = !0, queueMicrotask(Gte))));
54643
+ u && (!d.current && u.animationState && u.animationState.animateChanges(), d.current && (d.current = !1, jR || (jR = !0, queueMicrotask(Wte))));
54644
54644
  }), u;
54645
54645
  }
54646
- function Gte() {
54646
+ function Wte() {
54647
54647
  window.HandoffComplete = !0;
54648
54648
  }
54649
- function Wte(n, e, t, r) {
54649
+ function Kte(n, e, t, r) {
54650
54650
  const { layoutId: s, layout: i, drag: o, dragConstraints: a, layoutScroll: l, layoutRoot: c } = e;
54651
54651
  n.projection = new t(n.latestValues, e["data-framer-portal-id"] ? void 0 : a_(n.parent)), n.projection.setOptions({
54652
54652
  layoutId: s,
@@ -54671,7 +54671,7 @@ function a_(n) {
54671
54671
  if (n)
54672
54672
  return n.options.allowProjection !== !1 ? n.projection : a_(n.parent);
54673
54673
  }
54674
- function Kte(n, e, t) {
54674
+ function Qte(n, e, t) {
54675
54675
  return Ht(
54676
54676
  (r) => {
54677
54677
  r && n.mount && n.mount(r), e && (r ? e.mount(r) : e.unmount()), t && (typeof t == "function" ? t(r) : Dc(t) && (t.current = r));
@@ -54705,7 +54705,7 @@ function T0(n) {
54705
54705
  function l_(n) {
54706
54706
  return !!(T0(n) || n.variants);
54707
54707
  }
54708
- function Qte(n, e) {
54708
+ function Jte(n, e) {
54709
54709
  if (T0(n)) {
54710
54710
  const { initial: t, animate: r } = n;
54711
54711
  return {
@@ -54715,8 +54715,8 @@ function Qte(n, e) {
54715
54715
  }
54716
54716
  return n.inherit !== !1 ? e : {};
54717
54717
  }
54718
- function Jte(n) {
54719
- const { initial: e, animate: t } = Qte(n, Zt(C0));
54718
+ function qte(n) {
54719
+ const { initial: e, animate: t } = Jte(n, Zt(C0));
54720
54720
  return ts(() => ({ initial: e, animate: t }), [UR(e), UR(t)]);
54721
54721
  }
54722
54722
  function UR(n) {
@@ -54746,14 +54746,14 @@ for (const n in VR)
54746
54746
  wf[n] = {
54747
54747
  isEnabled: (e) => VR[n].some((t) => !!e[t])
54748
54748
  };
54749
- function qte(n) {
54749
+ function Yte(n) {
54750
54750
  for (const e in n)
54751
54751
  wf[e] = {
54752
54752
  ...wf[e],
54753
54753
  ...n[e]
54754
54754
  };
54755
54755
  }
54756
- const vE = mi({}), Yte = Symbol.for("motionComponentSymbol"), Tn = (n) => n;
54756
+ const vE = mi({}), Xte = Symbol.for("motionComponentSymbol"), Tn = (n) => n;
54757
54757
  let Df = Tn, lo = Tn;
54758
54758
  process.env.NODE_ENV !== "production" && (Df = (n, e) => {
54759
54759
  !n && typeof console < "u" && console.warn(e);
@@ -54761,37 +54761,37 @@ process.env.NODE_ENV !== "production" && (Df = (n, e) => {
54761
54761
  if (!n)
54762
54762
  throw new Error(e);
54763
54763
  });
54764
- function Xte({ preloadedFeatures: n, createVisualElement: e, useRender: t, useVisualState: r, Component: s }) {
54765
- n && qte(n);
54764
+ function Zte({ preloadedFeatures: n, createVisualElement: e, useRender: t, useVisualState: r, Component: s }) {
54765
+ n && Yte(n);
54766
54766
  function i(a, l) {
54767
54767
  let c;
54768
54768
  const u = {
54769
54769
  ...Zt(pE),
54770
54770
  ...a,
54771
- layoutId: Zte(a)
54772
- }, { isStatic: f } = u, d = Jte(a), h = r(a, f);
54771
+ layoutId: ene(a)
54772
+ }, { isStatic: f } = u, d = qte(a), h = r(a, f);
54773
54773
  if (!f && mE) {
54774
- ene(u, n);
54775
- const p = tne(u);
54776
- c = p.MeasureLayout, d.visualElement = $te(s, h, u, e, p.ProjectionNode);
54774
+ tne(u, n);
54775
+ const p = nne(u);
54776
+ c = p.MeasureLayout, d.visualElement = Gte(s, h, u, e, p.ProjectionNode);
54777
54777
  }
54778
- return k.jsxs(C0.Provider, { value: d, children: [c && d.visualElement ? k.jsx(c, { visualElement: d.visualElement, ...u }) : null, t(s, a, Kte(h, d.visualElement, l), h, f, d.visualElement)] });
54778
+ return k.jsxs(C0.Provider, { value: d, children: [c && d.visualElement ? k.jsx(c, { visualElement: d.visualElement, ...u }) : null, t(s, a, Qte(h, d.visualElement, l), h, f, d.visualElement)] });
54779
54779
  }
54780
54780
  const o = wr(i);
54781
- return o[Yte] = s, o;
54781
+ return o[Xte] = s, o;
54782
54782
  }
54783
- function Zte({ layoutId: n }) {
54783
+ function ene({ layoutId: n }) {
54784
54784
  const e = Zt(vE).id;
54785
54785
  return e && n !== void 0 ? e + "-" + n : n;
54786
54786
  }
54787
- function ene(n, e) {
54787
+ function tne(n, e) {
54788
54788
  const t = Zt(r_).strict;
54789
54789
  if (process.env.NODE_ENV !== "production" && e && t) {
54790
54790
  const r = "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";
54791
54791
  n.ignoreStrict ? Df(!1, r) : lo(!1, r);
54792
54792
  }
54793
54793
  }
54794
- function tne(n) {
54794
+ function nne(n) {
54795
54795
  const { drag: e, layout: t } = wf;
54796
54796
  if (!e && !t)
54797
54797
  return {};
@@ -54801,9 +54801,9 @@ function tne(n) {
54801
54801
  ProjectionNode: r.ProjectionNode
54802
54802
  };
54803
54803
  }
54804
- function nne(n) {
54804
+ function rne(n) {
54805
54805
  function e(r, s = {}) {
54806
- return Xte(n(r, s));
54806
+ return Zte(n(r, s));
54807
54807
  }
54808
54808
  if (typeof Proxy > "u")
54809
54809
  return e;
@@ -54817,7 +54817,7 @@ function nne(n) {
54817
54817
  get: (r, s) => (t.has(s) || t.set(s, e(s)), t.get(s))
54818
54818
  });
54819
54819
  }
54820
- const rne = [
54820
+ const sne = [
54821
54821
  "animate",
54822
54822
  "circle",
54823
54823
  "defs",
@@ -54857,7 +54857,7 @@ function xE(n) {
54857
54857
  /**
54858
54858
  * If it's in our list of lowercase SVG tags, it's an SVG component
54859
54859
  */
54860
- !!(rne.indexOf(n) > -1 || /**
54860
+ !!(sne.indexOf(n) > -1 || /**
54861
54861
  * If it contains a capital letter, it's an SVG component
54862
54862
  */
54863
54863
  /[A-Z]/u.test(n))
@@ -54865,7 +54865,7 @@ function xE(n) {
54865
54865
  );
54866
54866
  }
54867
54867
  const dy = {};
54868
- function sne(n) {
54868
+ function ine(n) {
54869
54869
  Object.assign(dy, n);
54870
54870
  }
54871
54871
  const sp = [
@@ -54890,24 +54890,24 @@ const sp = [
54890
54890
  function c_(n, { layout: e, layoutId: t }) {
54891
54891
  return ic.has(n) || n.startsWith("origin") || (e || t !== void 0) && (!!dy[n] || n === "opacity");
54892
54892
  }
54893
- const In = (n) => !!(n && n.getVelocity), ine = {
54893
+ const In = (n) => !!(n && n.getVelocity), one = {
54894
54894
  x: "translateX",
54895
54895
  y: "translateY",
54896
54896
  z: "translateZ",
54897
54897
  transformPerspective: "perspective"
54898
- }, one = sp.length;
54899
- function ane(n, { enableHardwareAcceleration: e = !0, allowTransformNone: t = !0 }, r, s) {
54898
+ }, ane = sp.length;
54899
+ function lne(n, { enableHardwareAcceleration: e = !0, allowTransformNone: t = !0 }, r, s) {
54900
54900
  let i = "";
54901
- for (let o = 0; o < one; o++) {
54901
+ for (let o = 0; o < ane; o++) {
54902
54902
  const a = sp[o];
54903
54903
  if (n[a] !== void 0) {
54904
- const l = ine[a] || a;
54904
+ const l = one[a] || a;
54905
54905
  i += `${l}(${n[a]}) `;
54906
54906
  }
54907
54907
  }
54908
54908
  return e && !n.z && (i += "translateZ(0)"), i = i.trim(), s ? i = s(n, r ? "" : i) : t && r && (i = "none"), i;
54909
54909
  }
54910
- const u_ = (n) => (e) => typeof e == "string" && e.startsWith(n), f_ = u_("--"), lne = u_("var(--"), EE = (n) => lne(n) ? cne.test(n.split("/*")[0].trim()) : !1, cne = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu, une = (n, e) => e && typeof n == "number" ? e.transform(n) : n, ma = (n, e, t) => t > e ? e : t < n ? n : t, If = {
54910
+ const u_ = (n) => (e) => typeof e == "string" && e.startsWith(n), f_ = u_("--"), cne = u_("var(--"), EE = (n) => cne(n) ? une.test(n.split("/*")[0].trim()) : !1, une = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu, fne = (n, e) => e && typeof n == "number" ? e.transform(n) : n, ma = (n, e, t) => t > e ? e : t < n ? n : t, If = {
54911
54911
  test: (n) => typeof n == "number",
54912
54912
  parse: parseFloat,
54913
54913
  transform: (n) => n
@@ -54917,7 +54917,7 @@ const u_ = (n) => (e) => typeof e == "string" && e.startsWith(n), f_ = u_("--"),
54917
54917
  }, Zp = {
54918
54918
  ...If,
54919
54919
  default: 1
54920
- }, vd = (n) => Math.round(n * 1e5) / 1e5, CE = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu, fne = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu, dne = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;
54920
+ }, vd = (n) => Math.round(n * 1e5) / 1e5, CE = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu, dne = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu, hne = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;
54921
54921
  function ip(n) {
54922
54922
  return typeof n == "string";
54923
54923
  }
@@ -54925,7 +54925,7 @@ const op = (n) => ({
54925
54925
  test: (e) => ip(e) && e.endsWith(n) && e.split(" ").length === 1,
54926
54926
  parse: parseFloat,
54927
54927
  transform: (e) => `${e}${n}`
54928
- }), xo = op("deg"), ii = op("%"), Be = op("px"), hne = op("vh"), pne = op("vw"), HR = {
54928
+ }), xo = op("deg"), ii = op("%"), Be = op("px"), pne = op("vh"), mne = op("vw"), HR = {
54929
54929
  ...ii,
54930
54930
  parse: (n) => ii.parse(n) / 100,
54931
54931
  transform: (n) => ii.transform(n * 100)
@@ -55009,14 +55009,14 @@ function kE(n, e, t, r) {
55009
55009
  i[f] = d;
55010
55010
  continue;
55011
55011
  }
55012
- const h = d_[f], p = une(d, h);
55012
+ const h = d_[f], p = fne(d, h);
55013
55013
  if (ic.has(f)) {
55014
55014
  if (l = !0, o[f] = p, !u)
55015
55015
  continue;
55016
55016
  d !== (h.default || 0) && (u = !1);
55017
55017
  } else f.startsWith("origin") ? (c = !0, a[f] = p) : s[f] = p;
55018
55018
  }
55019
- if (e.transform || (l || r ? s.transform = ane(n.transform, t, u, r) : s.transform && (s.transform = "none")), c) {
55019
+ if (e.transform || (l || r ? s.transform = lne(n.transform, t, u, r) : s.transform && (s.transform = "none")), c) {
55020
55020
  const { originX: f = "50%", originY: d = "50%", originZ: h = 0 } = a;
55021
55021
  s.transformOrigin = `${f} ${d} ${h}`;
55022
55022
  }
@@ -55031,21 +55031,21 @@ function h_(n, e, t) {
55031
55031
  for (const r in e)
55032
55032
  !In(e[r]) && !c_(r, t) && (n[r] = e[r]);
55033
55033
  }
55034
- function mne({ transformTemplate: n }, e, t) {
55034
+ function gne({ transformTemplate: n }, e, t) {
55035
55035
  return ts(() => {
55036
55036
  const r = SE();
55037
55037
  return kE(r, e, { enableHardwareAcceleration: !t }, n), Object.assign({}, r.vars, r.style);
55038
55038
  }, [e]);
55039
55039
  }
55040
- function gne(n, e, t) {
55040
+ function yne(n, e, t) {
55041
55041
  const r = n.style || {}, s = {};
55042
- return h_(s, r, n), Object.assign(s, mne(n, e, t)), s;
55042
+ return h_(s, r, n), Object.assign(s, gne(n, e, t)), s;
55043
55043
  }
55044
- function yne(n, e, t) {
55045
- const r = {}, s = gne(n, e, t);
55044
+ function bne(n, e, t) {
55045
+ const r = {}, s = yne(n, e, t);
55046
55046
  return n.drag && n.dragListener !== !1 && (r.draggable = !1, s.userSelect = s.WebkitUserSelect = s.WebkitTouchCallout = "none", s.touchAction = n.drag === !0 ? "none" : `pan-${n.drag === "x" ? "y" : "x"}`), n.tabIndex === void 0 && (n.onTap || n.onTapStart || n.whileTap) && (r.tabIndex = 0), r.style = s, r;
55047
55047
  }
55048
- const bne = /* @__PURE__ */ new Set([
55048
+ const wne = /* @__PURE__ */ new Set([
55049
55049
  "animate",
55050
55050
  "exit",
55051
55051
  "variants",
@@ -55078,17 +55078,17 @@ const bne = /* @__PURE__ */ new Set([
55078
55078
  "viewport"
55079
55079
  ]);
55080
55080
  function hy(n) {
55081
- return n.startsWith("while") || n.startsWith("drag") && n !== "draggable" || n.startsWith("layout") || n.startsWith("onTap") || n.startsWith("onPan") || n.startsWith("onLayout") || bne.has(n);
55081
+ return n.startsWith("while") || n.startsWith("drag") && n !== "draggable" || n.startsWith("layout") || n.startsWith("onTap") || n.startsWith("onPan") || n.startsWith("onLayout") || wne.has(n);
55082
55082
  }
55083
55083
  let p_ = (n) => !hy(n);
55084
- function wne(n) {
55084
+ function Ane(n) {
55085
55085
  n && (p_ = (e) => e.startsWith("on") ? !hy(e) : n(e));
55086
55086
  }
55087
55087
  try {
55088
- wne(require("@emotion/is-prop-valid").default);
55088
+ Ane(require("@emotion/is-prop-valid").default);
55089
55089
  } catch {
55090
55090
  }
55091
- function Ane(n, e, t) {
55091
+ function vne(n, e, t) {
55092
55092
  const r = {};
55093
55093
  for (const s in n)
55094
55094
  s === "values" && typeof n.values == "object" || (p_(s) || t === !0 && hy(s) || !e && !hy(s) || // If trying to use native HTML drag events, forward drag listeners
@@ -55098,20 +55098,20 @@ function Ane(n, e, t) {
55098
55098
  function $R(n, e, t) {
55099
55099
  return typeof n == "string" ? n : Be.transform(e + t * n);
55100
55100
  }
55101
- function vne(n, e, t) {
55101
+ function xne(n, e, t) {
55102
55102
  const r = $R(e, n.x, n.width), s = $R(t, n.y, n.height);
55103
55103
  return `${r} ${s}`;
55104
55104
  }
55105
- const xne = {
55105
+ const Ene = {
55106
55106
  offset: "stroke-dashoffset",
55107
55107
  array: "stroke-dasharray"
55108
- }, Ene = {
55108
+ }, Cne = {
55109
55109
  offset: "strokeDashoffset",
55110
55110
  array: "strokeDasharray"
55111
55111
  };
55112
- function Cne(n, e, t = 1, r = 0, s = !0) {
55112
+ function kne(n, e, t = 1, r = 0, s = !0) {
55113
55113
  n.pathLength = 1;
55114
- const i = s ? xne : Ene;
55114
+ const i = s ? Ene : Cne;
55115
55115
  n[i.offset] = Be.transform(-r);
55116
55116
  const o = Be.transform(e), a = Be.transform(t);
55117
55117
  n[i.array] = `${o} ${a}`;
@@ -55134,13 +55134,13 @@ function TE(n, {
55134
55134
  }
55135
55135
  n.attrs = n.style, n.style = {};
55136
55136
  const { attrs: h, style: p, dimensions: m } = n;
55137
- h.transform && (m && (p.transform = h.transform), delete h.transform), m && (s !== void 0 || i !== void 0 || p.transform) && (p.transformOrigin = vne(m, s !== void 0 ? s : 0.5, i !== void 0 ? i : 0.5)), e !== void 0 && (h.x = e), t !== void 0 && (h.y = t), r !== void 0 && (h.scale = r), o !== void 0 && Cne(h, o, a, l, !1);
55137
+ h.transform && (m && (p.transform = h.transform), delete h.transform), m && (s !== void 0 || i !== void 0 || p.transform) && (p.transformOrigin = xne(m, s !== void 0 ? s : 0.5, i !== void 0 ? i : 0.5)), e !== void 0 && (h.x = e), t !== void 0 && (h.y = t), r !== void 0 && (h.scale = r), o !== void 0 && kne(h, o, a, l, !1);
55138
55138
  }
55139
55139
  const m_ = () => ({
55140
55140
  ...SE(),
55141
55141
  attrs: {}
55142
55142
  }), RE = (n) => typeof n == "string" && n.toLowerCase() === "svg";
55143
- function kne(n, e, t, r) {
55143
+ function Sne(n, e, t, r) {
55144
55144
  const s = ts(() => {
55145
55145
  const i = m_();
55146
55146
  return TE(i, e, { enableHardwareAcceleration: !1 }, RE(r), n.transformTemplate), {
@@ -55154,9 +55154,9 @@ function kne(n, e, t, r) {
55154
55154
  }
55155
55155
  return s;
55156
55156
  }
55157
- function Sne(n = !1) {
55157
+ function Tne(n = !1) {
55158
55158
  return (t, r, s, { latestValues: i }, o) => {
55159
- const l = (xE(t) ? kne : yne)(r, i, o, t), c = Ane(r, typeof t == "string", n), u = t !== XO ? { ...c, ...l, ref: s } : {}, { children: f } = r, d = ts(() => In(f) ? f.get() : f, [f]);
55159
+ const l = (xE(t) ? Sne : bne)(r, i, o, t), c = vne(r, typeof t == "string", n), u = t !== XO ? { ...c, ...l, ref: s } : {}, { children: f } = r, d = ts(() => In(f) ? f.get() : f, [f]);
55160
55160
  return Pm(t, {
55161
55161
  ...u,
55162
55162
  children: d
@@ -55235,23 +55235,23 @@ function A_(n) {
55235
55235
  const e = ht(null);
55236
55236
  return e.current === null && (e.current = n()), e.current;
55237
55237
  }
55238
- const vv = (n) => Array.isArray(n), Tne = (n) => !!(n && typeof n == "object" && n.mix && n.toValue), Rne = (n) => vv(n) ? n[n.length - 1] || 0 : n;
55238
+ const vv = (n) => Array.isArray(n), Rne = (n) => !!(n && typeof n == "object" && n.mix && n.toValue), One = (n) => vv(n) ? n[n.length - 1] || 0 : n;
55239
55239
  function Om(n) {
55240
55240
  const e = In(n) ? n.get() : n;
55241
- return Tne(e) ? e.toValue() : e;
55241
+ return Rne(e) ? e.toValue() : e;
55242
55242
  }
55243
- function One({ scrapeMotionValuesFromProps: n, createRenderState: e, onMount: t }, r, s, i) {
55243
+ function Nne({ scrapeMotionValuesFromProps: n, createRenderState: e, onMount: t }, r, s, i) {
55244
55244
  const o = {
55245
- latestValues: Nne(r, s, i, n),
55245
+ latestValues: Mne(r, s, i, n),
55246
55246
  renderState: e()
55247
55247
  };
55248
55248
  return t && (o.mount = (a) => t(r, a, o)), o;
55249
55249
  }
55250
55250
  const v_ = (n) => (e, t) => {
55251
- const r = Zt(C0), s = Zt(k0), i = () => One(n, e, r, s);
55251
+ const r = Zt(C0), s = Zt(k0), i = () => Nne(n, e, r, s);
55252
55252
  return t ? i() : A_(i);
55253
55253
  };
55254
- function Nne(n, e, t, r) {
55254
+ function Mne(n, e, t, r) {
55255
55255
  const s = {}, i = r(n, {});
55256
55256
  for (const d in i)
55257
55257
  s[d] = Om(i[d]);
@@ -55278,7 +55278,7 @@ function Nne(n, e, t, r) {
55278
55278
  s[v] = m[v];
55279
55279
  }), s;
55280
55280
  }
55281
- const { schedule: mt, cancel: co, state: vn, steps: sw } = i_(typeof requestAnimationFrame < "u" ? requestAnimationFrame : Tn, !0), Mne = {
55281
+ const { schedule: mt, cancel: co, state: vn, steps: sw } = i_(typeof requestAnimationFrame < "u" ? requestAnimationFrame : Tn, !0), Pne = {
55282
55282
  useVisualState: v_({
55283
55283
  scrapeMotionValuesFromProps: w_,
55284
55284
  createRenderState: m_,
@@ -55299,17 +55299,17 @@ const { schedule: mt, cancel: co, state: vn, steps: sw } = i_(typeof requestAnim
55299
55299
  });
55300
55300
  }
55301
55301
  })
55302
- }, Pne = {
55302
+ }, Dne = {
55303
55303
  useVisualState: v_({
55304
55304
  scrapeMotionValuesFromProps: OE,
55305
55305
  createRenderState: SE
55306
55306
  })
55307
55307
  };
55308
- function Dne(n, { forwardMotionProps: e = !1 }, t, r) {
55308
+ function Ine(n, { forwardMotionProps: e = !1 }, t, r) {
55309
55309
  return {
55310
- ...xE(n) ? Mne : Pne,
55310
+ ...xE(n) ? Pne : Dne,
55311
55311
  preloadedFeatures: t,
55312
- useRender: Sne(e),
55312
+ useRender: Tne(e),
55313
55313
  createVisualElement: r,
55314
55314
  Component: n
55315
55315
  };
@@ -55326,11 +55326,11 @@ function R0(n, e = "page") {
55326
55326
  }
55327
55327
  };
55328
55328
  }
55329
- const Ine = (n) => (e) => x_(e) && n(e, R0(e));
55329
+ const Lne = (n) => (e) => x_(e) && n(e, R0(e));
55330
55330
  function Yi(n, e, t, r) {
55331
- return zi(n, e, Ine(t), r);
55331
+ return zi(n, e, Lne(t), r);
55332
55332
  }
55333
- const Lne = (n, e) => (t) => e(n(t)), Xi = (...n) => n.reduce(Lne);
55333
+ const Bne = (n, e) => (t) => e(n(t)), Xi = (...n) => n.reduce(Bne);
55334
55334
  function E_(n) {
55335
55335
  let e = null;
55336
55336
  return () => {
@@ -55379,14 +55379,14 @@ function QR(n, e) {
55379
55379
  passive: !n.getProps()[r]
55380
55380
  });
55381
55381
  }
55382
- class Bne extends Ca {
55382
+ class _ne extends Ca {
55383
55383
  mount() {
55384
55384
  this.unmount = Xi(QR(this.node, !0), QR(this.node, !1));
55385
55385
  }
55386
55386
  unmount() {
55387
55387
  }
55388
55388
  }
55389
- class _ne extends Ca {
55389
+ class Fne extends Ca {
55390
55390
  constructor() {
55391
55391
  super(...arguments), this.isActive = !1;
55392
55392
  }
@@ -55415,7 +55415,7 @@ function iw(n, e) {
55415
55415
  const t = new PointerEvent("pointer" + n);
55416
55416
  e(t, R0(t));
55417
55417
  }
55418
- class Fne extends Ca {
55418
+ class jne extends Ca {
55419
55419
  constructor() {
55420
55420
  super(...arguments), this.removeStartListeners = Tn, this.removeEndListeners = Tn, this.removeAccessibleListeners = Tn, this.startPointerPress = (e, t) => {
55421
55421
  if (this.isPressing)
@@ -55475,29 +55475,29 @@ class Fne extends Ca {
55475
55475
  this.removeStartListeners(), this.removeEndListeners(), this.removeAccessibleListeners();
55476
55476
  }
55477
55477
  }
55478
- const xv = /* @__PURE__ */ new WeakMap(), ow = /* @__PURE__ */ new WeakMap(), jne = (n) => {
55478
+ const xv = /* @__PURE__ */ new WeakMap(), ow = /* @__PURE__ */ new WeakMap(), Une = (n) => {
55479
55479
  const e = xv.get(n.target);
55480
55480
  e && e(n);
55481
- }, Une = (n) => {
55482
- n.forEach(jne);
55481
+ }, Vne = (n) => {
55482
+ n.forEach(Une);
55483
55483
  };
55484
- function Vne({ root: n, ...e }) {
55484
+ function Hne({ root: n, ...e }) {
55485
55485
  const t = n || document;
55486
55486
  ow.has(t) || ow.set(t, {});
55487
55487
  const r = ow.get(t), s = JSON.stringify(e);
55488
- return r[s] || (r[s] = new IntersectionObserver(Une, { root: n, ...e })), r[s];
55488
+ return r[s] || (r[s] = new IntersectionObserver(Vne, { root: n, ...e })), r[s];
55489
55489
  }
55490
- function Hne(n, e, t) {
55491
- const r = Vne(e);
55490
+ function zne(n, e, t) {
55491
+ const r = Hne(e);
55492
55492
  return xv.set(n, t), r.observe(n), () => {
55493
55493
  xv.delete(n), r.unobserve(n);
55494
55494
  };
55495
55495
  }
55496
- const zne = {
55496
+ const $ne = {
55497
55497
  some: 0,
55498
55498
  all: 1
55499
55499
  };
55500
- class $ne extends Ca {
55500
+ class Gne extends Ca {
55501
55501
  constructor() {
55502
55502
  super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
55503
55503
  }
@@ -55506,7 +55506,7 @@ class $ne extends Ca {
55506
55506
  const { viewport: e = {} } = this.node.getProps(), { root: t, margin: r, amount: s = "some", once: i } = e, o = {
55507
55507
  root: t ? t.current : void 0,
55508
55508
  rootMargin: r,
55509
- threshold: typeof s == "number" ? s : zne[s]
55509
+ threshold: typeof s == "number" ? s : $ne[s]
55510
55510
  }, a = (l) => {
55511
55511
  const { isIntersecting: c } = l;
55512
55512
  if (this.isInView === c || (this.isInView = c, i && !c && this.hasEnteredView))
@@ -55515,7 +55515,7 @@ class $ne extends Ca {
55515
55515
  const { onViewportEnter: u, onViewportLeave: f } = this.node.getProps(), d = c ? u : f;
55516
55516
  d && d(l);
55517
55517
  };
55518
- return Hne(this.node.current, o, a);
55518
+ return zne(this.node.current, o, a);
55519
55519
  }
55520
55520
  mount() {
55521
55521
  this.startObserver();
@@ -55524,26 +55524,26 @@ class $ne extends Ca {
55524
55524
  if (typeof IntersectionObserver > "u")
55525
55525
  return;
55526
55526
  const { props: e, prevProps: t } = this.node;
55527
- ["amount", "margin", "root"].some(Gne(e, t)) && this.startObserver();
55527
+ ["amount", "margin", "root"].some(Wne(e, t)) && this.startObserver();
55528
55528
  }
55529
55529
  unmount() {
55530
55530
  }
55531
55531
  }
55532
- function Gne({ viewport: n = {} }, { viewport: e = {} } = {}) {
55532
+ function Wne({ viewport: n = {} }, { viewport: e = {} } = {}) {
55533
55533
  return (t) => n[t] !== e[t];
55534
55534
  }
55535
- const Wne = {
55535
+ const Kne = {
55536
55536
  inView: {
55537
- Feature: $ne
55537
+ Feature: Gne
55538
55538
  },
55539
55539
  tap: {
55540
- Feature: Fne
55540
+ Feature: jne
55541
55541
  },
55542
55542
  focus: {
55543
- Feature: _ne
55543
+ Feature: Fne
55544
55544
  },
55545
55545
  hover: {
55546
- Feature: Bne
55546
+ Feature: _ne
55547
55547
  }
55548
55548
  };
55549
55549
  function T_(n, e) {
@@ -55561,63 +55561,63 @@ function O0(n, e, t) {
55561
55561
  const r = n.getProps();
55562
55562
  return NE(r, e, t !== void 0 ? t : r.custom, n);
55563
55563
  }
55564
- const Zi = (n) => n * 1e3, eo = (n) => n / 1e3, Kne = {
55564
+ const Zi = (n) => n * 1e3, eo = (n) => n / 1e3, Qne = {
55565
55565
  type: "spring",
55566
55566
  stiffness: 500,
55567
55567
  damping: 25,
55568
55568
  restSpeed: 10
55569
- }, Qne = (n) => ({
55569
+ }, Jne = (n) => ({
55570
55570
  type: "spring",
55571
55571
  stiffness: 550,
55572
55572
  damping: n === 0 ? 2 * Math.sqrt(550) : 30,
55573
55573
  restSpeed: 10
55574
- }), Jne = {
55574
+ }), qne = {
55575
55575
  type: "keyframes",
55576
55576
  duration: 0.8
55577
- }, qne = {
55577
+ }, Yne = {
55578
55578
  type: "keyframes",
55579
55579
  ease: [0.25, 0.1, 0.35, 1],
55580
55580
  duration: 0.3
55581
- }, Yne = (n, { keyframes: e }) => e.length > 2 ? Jne : ic.has(n) ? n.startsWith("scale") ? Qne(e[1]) : Kne : qne;
55582
- function Xne({ when: n, delay: e, delayChildren: t, staggerChildren: r, staggerDirection: s, repeat: i, repeatType: o, repeatDelay: a, from: l, elapsed: c, ...u }) {
55581
+ }, Xne = (n, { keyframes: e }) => e.length > 2 ? qne : ic.has(n) ? n.startsWith("scale") ? Jne(e[1]) : Qne : Yne;
55582
+ function Zne({ when: n, delay: e, delayChildren: t, staggerChildren: r, staggerDirection: s, repeat: i, repeatType: o, repeatDelay: a, from: l, elapsed: c, ...u }) {
55583
55583
  return !!Object.keys(u).length;
55584
55584
  }
55585
55585
  function ME(n, e) {
55586
55586
  return n[e] || n.default || n;
55587
55587
  }
55588
- const Zne = (n) => n !== null;
55588
+ const ere = (n) => n !== null;
55589
55589
  function N0(n, { repeat: e, repeatType: t = "loop" }, r) {
55590
- const s = n.filter(Zne), i = e && t !== "loop" && e % 2 === 1 ? 0 : s.length - 1;
55590
+ const s = n.filter(ere), i = e && t !== "loop" && e % 2 === 1 ? 0 : s.length - 1;
55591
55591
  return !i || r === void 0 ? s[i] : r;
55592
55592
  }
55593
55593
  let Nm;
55594
- function ere() {
55594
+ function tre() {
55595
55595
  Nm = void 0;
55596
55596
  }
55597
55597
  const aa = {
55598
- now: () => (Nm === void 0 && aa.set(vn.isProcessing || Vte.useManualTiming ? vn.timestamp : performance.now()), Nm),
55598
+ now: () => (Nm === void 0 && aa.set(vn.isProcessing || Hte.useManualTiming ? vn.timestamp : performance.now()), Nm),
55599
55599
  set: (n) => {
55600
- Nm = n, queueMicrotask(ere);
55600
+ Nm = n, queueMicrotask(tre);
55601
55601
  }
55602
55602
  }, R_ = (n) => /^0[^.\s]+$/u.test(n);
55603
- function tre(n) {
55603
+ function nre(n) {
55604
55604
  return typeof n == "number" ? n === 0 : n !== null ? n === "none" || n === "0" || R_(n) : !0;
55605
55605
  }
55606
- const O_ = (n) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n), nre = (
55606
+ const O_ = (n) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n), rre = (
55607
55607
  // eslint-disable-next-line redos-detector/no-unsafe-regex -- false positive, as it can match a lot of words
55608
55608
  /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u
55609
55609
  );
55610
- function rre(n) {
55611
- const e = nre.exec(n);
55610
+ function sre(n) {
55611
+ const e = rre.exec(n);
55612
55612
  if (!e)
55613
55613
  return [,];
55614
55614
  const [, t, r, s] = e;
55615
55615
  return [`--${t ?? r}`, s];
55616
55616
  }
55617
- const sre = 4;
55617
+ const ire = 4;
55618
55618
  function N_(n, e, t = 1) {
55619
- lo(t <= sre, `Max CSS variable fallback depth detected in property "${n}". This may indicate a circular fallback dependency.`);
55620
- const [r, s] = rre(n);
55619
+ lo(t <= ire, `Max CSS variable fallback depth detected in property "${n}". This may indicate a circular fallback dependency.`);
55620
+ const [r, s] = sre(n);
55621
55621
  if (!r)
55622
55622
  return;
55623
55623
  const i = window.getComputedStyle(e).getPropertyValue(r);
@@ -55627,7 +55627,7 @@ function N_(n, e, t = 1) {
55627
55627
  }
55628
55628
  return EE(s) ? N_(s, e, t + 1) : s;
55629
55629
  }
55630
- const ire = /* @__PURE__ */ new Set([
55630
+ const ore = /* @__PURE__ */ new Set([
55631
55631
  "width",
55632
55632
  "height",
55633
55633
  "top",
@@ -55648,10 +55648,10 @@ const ire = /* @__PURE__ */ new Set([
55648
55648
  const i = r.match(/^matrix\((.+)\)$/u);
55649
55649
  return i ? qR(i[1], n) : 0;
55650
55650
  }
55651
- }, ore = /* @__PURE__ */ new Set(["x", "y", "z"]), are = sp.filter((n) => !ore.has(n));
55652
- function lre(n) {
55651
+ }, are = /* @__PURE__ */ new Set(["x", "y", "z"]), lre = sp.filter((n) => !are.has(n));
55652
+ function cre(n) {
55653
55653
  const e = [];
55654
- return are.forEach((t) => {
55654
+ return lre.forEach((t) => {
55655
55655
  const r = n.getValue(t);
55656
55656
  r !== void 0 && (e.push([t, r.get()]), r.set(t.startsWith("scale") ? 1 : 0));
55657
55657
  }), e;
@@ -55670,16 +55670,16 @@ const Af = {
55670
55670
  };
55671
55671
  Af.translateX = Af.x;
55672
55672
  Af.translateY = Af.y;
55673
- const M_ = (n) => (e) => e.test(n), cre = {
55673
+ const M_ = (n) => (e) => e.test(n), ure = {
55674
55674
  test: (n) => n === "auto",
55675
55675
  parse: (n) => n
55676
- }, P_ = [If, Be, ii, xo, pne, hne, cre], XR = (n) => P_.find(M_(n)), Nl = /* @__PURE__ */ new Set();
55676
+ }, P_ = [If, Be, ii, xo, mne, pne, ure], XR = (n) => P_.find(M_(n)), Nl = /* @__PURE__ */ new Set();
55677
55677
  let Ev = !1, Cv = !1;
55678
55678
  function D_() {
55679
55679
  if (Cv) {
55680
55680
  const n = Array.from(Nl).filter((r) => r.needsMeasurement), e = new Set(n.map((r) => r.element)), t = /* @__PURE__ */ new Map();
55681
55681
  e.forEach((r) => {
55682
- const s = lre(r);
55682
+ const s = cre(r);
55683
55683
  s.length && (t.set(r, s), r.render());
55684
55684
  }), n.forEach((r) => r.measureInitialState()), e.forEach((r) => {
55685
55685
  r.render();
@@ -55699,7 +55699,7 @@ function I_() {
55699
55699
  n.readKeyframes(), n.needsMeasurement && (Cv = !0);
55700
55700
  });
55701
55701
  }
55702
- function ure() {
55702
+ function fre() {
55703
55703
  I_(), D_();
55704
55704
  }
55705
55705
  class PE {
@@ -55743,7 +55743,7 @@ class PE {
55743
55743
  this.isComplete || this.scheduleResolve();
55744
55744
  }
55745
55745
  }
55746
- const DE = (n, e) => (t) => !!(ip(t) && dne.test(t) && t.startsWith(n) || e && Object.prototype.hasOwnProperty.call(t, e)), L_ = (n, e, t) => (r) => {
55746
+ const DE = (n, e) => (t) => !!(ip(t) && hne.test(t) && t.startsWith(n) || e && Object.prototype.hasOwnProperty.call(t, e)), L_ = (n, e, t) => (r) => {
55747
55747
  if (!ip(r))
55748
55748
  return r;
55749
55749
  const [s, i, o, a] = r.match(CE);
@@ -55753,15 +55753,15 @@ const DE = (n, e) => (t) => !!(ip(t) && dne.test(t) && t.startsWith(n) || e && O
55753
55753
  [t]: parseFloat(o),
55754
55754
  alpha: a !== void 0 ? parseFloat(a) : 1
55755
55755
  };
55756
- }, fre = (n) => ma(0, 255, n), aw = {
55756
+ }, dre = (n) => ma(0, 255, n), aw = {
55757
55757
  ...If,
55758
- transform: (n) => Math.round(fre(n))
55758
+ transform: (n) => Math.round(dre(n))
55759
55759
  }, Ja = {
55760
55760
  test: DE("rgb", "red"),
55761
55761
  parse: L_("red", "green", "blue"),
55762
55762
  transform: ({ red: n, green: e, blue: t, alpha: r = 1 }) => "rgba(" + aw.transform(n) + ", " + aw.transform(e) + ", " + aw.transform(t) + ", " + vd(Ad.transform(r)) + ")"
55763
55763
  };
55764
- function dre(n) {
55764
+ function hre(n) {
55765
55765
  let e = "", t = "", r = "", s = "";
55766
55766
  return n.length > 5 ? (e = n.substring(1, 3), t = n.substring(3, 5), r = n.substring(5, 7), s = n.substring(7, 9)) : (e = n.substring(1, 2), t = n.substring(2, 3), r = n.substring(3, 4), s = n.substring(4, 5), e += e, t += t, r += r, s += s), {
55767
55767
  red: parseInt(e, 16),
@@ -55772,7 +55772,7 @@ function dre(n) {
55772
55772
  }
55773
55773
  const kv = {
55774
55774
  test: DE("#"),
55775
- parse: dre,
55775
+ parse: hre,
55776
55776
  transform: Ja.transform
55777
55777
  }, Ic = {
55778
55778
  test: DE("hsl", "hue"),
@@ -55783,11 +55783,11 @@ const kv = {
55783
55783
  parse: (n) => Ja.test(n) ? Ja.parse(n) : Ic.test(n) ? Ic.parse(n) : kv.parse(n),
55784
55784
  transform: (n) => ip(n) ? n : n.hasOwnProperty("red") ? Ja.transform(n) : Ic.transform(n)
55785
55785
  };
55786
- function hre(n) {
55786
+ function pre(n) {
55787
55787
  var e, t;
55788
- return isNaN(n) && ip(n) && (((e = n.match(CE)) === null || e === void 0 ? void 0 : e.length) || 0) + (((t = n.match(fne)) === null || t === void 0 ? void 0 : t.length) || 0) > 0;
55788
+ return isNaN(n) && ip(n) && (((e = n.match(CE)) === null || e === void 0 ? void 0 : e.length) || 0) + (((t = n.match(dne)) === null || t === void 0 ? void 0 : t.length) || 0) > 0;
55789
55789
  }
55790
- const B_ = "number", __ = "color", pre = "var", mre = "var(", ZR = "${}", gre = /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;
55790
+ const B_ = "number", __ = "color", mre = "var", gre = "var(", ZR = "${}", yre = /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;
55791
55791
  function mh(n) {
55792
55792
  const e = n.toString(), t = [], r = {
55793
55793
  color: [],
@@ -55795,7 +55795,7 @@ function mh(n) {
55795
55795
  var: []
55796
55796
  }, s = [];
55797
55797
  let i = 0;
55798
- const a = e.replace(gre, (l) => (Pn.test(l) ? (r.color.push(i), s.push(__), t.push(Pn.parse(l))) : l.startsWith(mre) ? (r.var.push(i), s.push(pre), t.push(l)) : (r.number.push(i), s.push(B_), t.push(parseFloat(l))), ++i, ZR)).split(ZR);
55798
+ const a = e.replace(yre, (l) => (Pn.test(l) ? (r.color.push(i), s.push(__), t.push(Pn.parse(l))) : l.startsWith(gre) ? (r.var.push(i), s.push(mre), t.push(l)) : (r.number.push(i), s.push(B_), t.push(parseFloat(l))), ++i, ZR)).split(ZR);
55799
55799
  return { values: t, split: a, indexes: r, types: s };
55800
55800
  }
55801
55801
  function F_(n) {
@@ -55813,18 +55813,18 @@ function j_(n) {
55813
55813
  return i;
55814
55814
  };
55815
55815
  }
55816
- const yre = (n) => typeof n == "number" ? 0 : n;
55817
- function bre(n) {
55816
+ const bre = (n) => typeof n == "number" ? 0 : n;
55817
+ function wre(n) {
55818
55818
  const e = F_(n);
55819
- return j_(n)(e.map(yre));
55819
+ return j_(n)(e.map(bre));
55820
55820
  }
55821
55821
  const ga = {
55822
- test: hre,
55822
+ test: pre,
55823
55823
  parse: F_,
55824
55824
  createTransformer: j_,
55825
- getAnimatableNone: bre
55826
- }, wre = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
55827
- function Are(n) {
55825
+ getAnimatableNone: wre
55826
+ }, Are = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
55827
+ function vre(n) {
55828
55828
  const [e, t] = n.slice(0, -1).split("(");
55829
55829
  if (e === "drop-shadow")
55830
55830
  return n;
@@ -55832,16 +55832,16 @@ function Are(n) {
55832
55832
  if (!r)
55833
55833
  return n;
55834
55834
  const s = t.replace(r, "");
55835
- let i = wre.has(e) ? 1 : 0;
55835
+ let i = Are.has(e) ? 1 : 0;
55836
55836
  return r !== t && (i *= 100), e + "(" + i + s + ")";
55837
55837
  }
55838
- const vre = /\b([a-z-]*)\(.*?\)/gu, Sv = {
55838
+ const xre = /\b([a-z-]*)\(.*?\)/gu, Sv = {
55839
55839
  ...ga,
55840
55840
  getAnimatableNone: (n) => {
55841
- const e = n.match(vre);
55842
- return e ? e.map(Are).join(" ") : n;
55841
+ const e = n.match(xre);
55842
+ return e ? e.map(vre).join(" ") : n;
55843
55843
  }
55844
- }, xre = {
55844
+ }, Ere = {
55845
55845
  ...d_,
55846
55846
  // Color props
55847
55847
  color: Pn,
@@ -55857,17 +55857,17 @@ const vre = /\b([a-z-]*)\(.*?\)/gu, Sv = {
55857
55857
  borderLeftColor: Pn,
55858
55858
  filter: Sv,
55859
55859
  WebkitFilter: Sv
55860
- }, IE = (n) => xre[n];
55860
+ }, IE = (n) => Ere[n];
55861
55861
  function U_(n, e) {
55862
55862
  let t = IE(n);
55863
55863
  return t !== Sv && (t = ga), t.getAnimatableNone ? t.getAnimatableNone(e) : void 0;
55864
55864
  }
55865
- const Ere = /* @__PURE__ */ new Set(["auto", "none", "0"]);
55866
- function Cre(n, e, t) {
55865
+ const Cre = /* @__PURE__ */ new Set(["auto", "none", "0"]);
55866
+ function kre(n, e, t) {
55867
55867
  let r = 0, s;
55868
55868
  for (; r < n.length && !s; ) {
55869
55869
  const i = n[r];
55870
- typeof i == "string" && !Ere.has(i) && mh(i).values.length && (s = n[r]), r++;
55870
+ typeof i == "string" && !Cre.has(i) && mh(i).values.length && (s = n[r]), r++;
55871
55871
  }
55872
55872
  if (s && t)
55873
55873
  for (const i of e)
@@ -55889,7 +55889,7 @@ class V_ extends PE {
55889
55889
  u !== void 0 && (e[l] = u), l === e.length - 1 && (this.finalKeyframe = c);
55890
55890
  }
55891
55891
  }
55892
- if (this.resolveNoneKeyframes(), !ire.has(r) || e.length !== 2)
55892
+ if (this.resolveNoneKeyframes(), !ore.has(r) || e.length !== 2)
55893
55893
  return;
55894
55894
  const [s, i] = e, o = XR(s), a = XR(i);
55895
55895
  if (o !== a)
@@ -55904,8 +55904,8 @@ class V_ extends PE {
55904
55904
  resolveNoneKeyframes() {
55905
55905
  const { unresolvedKeyframes: e, name: t } = this, r = [];
55906
55906
  for (let s = 0; s < e.length; s++)
55907
- tre(e[s]) && r.push(s);
55908
- r.length && Cre(e, r, t);
55907
+ nre(e[s]) && r.push(s);
55908
+ r.length && kre(e, r, t);
55909
55909
  }
55910
55910
  measureInitialState() {
55911
55911
  const { element: e, unresolvedKeyframes: t, name: r } = this;
@@ -55935,7 +55935,7 @@ function H_(n) {
55935
55935
  const eO = (n, e) => e === "zIndex" ? !1 : !!(typeof n == "number" || Array.isArray(n) || typeof n == "string" && // It's animatable if we have a string
55936
55936
  (ga.test(n) || n === "0") && // And it contains numbers and/or colors
55937
55937
  !n.startsWith("url("));
55938
- function kre(n) {
55938
+ function Sre(n) {
55939
55939
  const e = n[0];
55940
55940
  if (n.length === 1)
55941
55941
  return !0;
@@ -55943,14 +55943,14 @@ function kre(n) {
55943
55943
  if (n[t] !== e)
55944
55944
  return !0;
55945
55945
  }
55946
- function Sre(n, e, t, r) {
55946
+ function Tre(n, e, t, r) {
55947
55947
  const s = n[0];
55948
55948
  if (s === null)
55949
55949
  return !1;
55950
55950
  if (e === "display" || e === "visibility")
55951
55951
  return !0;
55952
55952
  const i = n[n.length - 1], o = eO(s, e), a = eO(i, e);
55953
- return Df(o === a, `You are trying to animate ${e} from "${s}" to "${i}". ${s} is not an animatable value - to enable this animation set ${s} to a value animatable to ${i} via the \`style\` property.`), !o || !a ? !1 : kre(n) || t === "spring" && r;
55953
+ return Df(o === a, `You are trying to animate ${e} from "${s}" to "${i}". ${s} is not an animatable value - to enable this animation set ${s} to a value animatable to ${i} via the \`style\` property.`), !o || !a ? !1 : Sre(n) || t === "spring" && r;
55954
55954
  }
55955
55955
  class z_ {
55956
55956
  constructor({ autoplay: e = !0, delay: t = 0, type: r = "keyframes", repeat: s = 0, repeatDelay: i = 0, repeatType: o = "loop", ...a }) {
@@ -55970,7 +55970,7 @@ class z_ {
55970
55970
  * This is a deoptimisation, but at its worst still batches read/writes.
55971
55971
  */
55972
55972
  get resolved() {
55973
- return !this._resolved && !this.hasAttemptedResolve && ure(), this._resolved;
55973
+ return !this._resolved && !this.hasAttemptedResolve && fre(), this._resolved;
55974
55974
  }
55975
55975
  /**
55976
55976
  * A method to be called when the keyframes resolver completes. This method
@@ -55980,7 +55980,7 @@ class z_ {
55980
55980
  onKeyframesResolved(e, t) {
55981
55981
  this.hasAttemptedResolve = !0;
55982
55982
  const { name: r, type: s, velocity: i, delay: o, onComplete: a, onUpdate: l, isGenerator: c } = this.options;
55983
- if (!c && !Sre(e, r, s, i))
55983
+ if (!c && !Tre(e, r, s, i))
55984
55984
  if (o)
55985
55985
  this.options.duration = 0;
55986
55986
  else {
@@ -56013,17 +56013,17 @@ class z_ {
56013
56013
  function $_(n, e) {
56014
56014
  return e ? n * (1e3 / e) : 0;
56015
56015
  }
56016
- const Tre = 5;
56016
+ const Rre = 5;
56017
56017
  function G_(n, e, t) {
56018
- const r = Math.max(e - Tre, 0);
56018
+ const r = Math.max(e - Rre, 0);
56019
56019
  return $_(t - n(r), e - r);
56020
56020
  }
56021
- const lw = 1e-3, Rre = 0.01, tO = 10, Ore = 0.05, Nre = 1;
56022
- function Mre({ duration: n = 800, bounce: e = 0.25, velocity: t = 0, mass: r = 1 }) {
56021
+ const lw = 1e-3, Ore = 0.01, tO = 10, Nre = 0.05, Mre = 1;
56022
+ function Pre({ duration: n = 800, bounce: e = 0.25, velocity: t = 0, mass: r = 1 }) {
56023
56023
  let s, i;
56024
56024
  Df(n <= Zi(tO), "Spring duration must be 10 seconds or less");
56025
56025
  let o = 1 - e;
56026
- o = ma(Ore, Nre, o), n = ma(Rre, tO, eo(n)), o < 1 ? (s = (c) => {
56026
+ o = ma(Nre, Mre, o), n = ma(Ore, tO, eo(n)), o < 1 ? (s = (c) => {
56027
56027
  const u = c * o, f = u * n, d = u - t, h = Tv(c, o), p = Math.exp(-f);
56028
56028
  return lw - d / h * p;
56029
56029
  }, i = (c) => {
@@ -56036,7 +56036,7 @@ function Mre({ duration: n = 800, bounce: e = 0.25, velocity: t = 0, mass: r = 1
56036
56036
  const u = Math.exp(-c * n), f = (t - c) * (n * n);
56037
56037
  return u * f;
56038
56038
  });
56039
- const a = 5 / n, l = Dre(s, i, a);
56039
+ const a = 5 / n, l = Ire(s, i, a);
56040
56040
  if (n = Zi(n), isNaN(l))
56041
56041
  return {
56042
56042
  stiffness: 100,
@@ -56052,21 +56052,21 @@ function Mre({ duration: n = 800, bounce: e = 0.25, velocity: t = 0, mass: r = 1
56052
56052
  };
56053
56053
  }
56054
56054
  }
56055
- const Pre = 12;
56056
- function Dre(n, e, t) {
56055
+ const Dre = 12;
56056
+ function Ire(n, e, t) {
56057
56057
  let r = t;
56058
- for (let s = 1; s < Pre; s++)
56058
+ for (let s = 1; s < Dre; s++)
56059
56059
  r = r - n(r) / e(r);
56060
56060
  return r;
56061
56061
  }
56062
56062
  function Tv(n, e) {
56063
56063
  return n * Math.sqrt(1 - e * e);
56064
56064
  }
56065
- const Ire = ["duration", "bounce"], Lre = ["stiffness", "damping", "mass"];
56065
+ const Lre = ["duration", "bounce"], Bre = ["stiffness", "damping", "mass"];
56066
56066
  function nO(n, e) {
56067
56067
  return e.some((t) => n[t] !== void 0);
56068
56068
  }
56069
- function Bre(n) {
56069
+ function _re(n) {
56070
56070
  let e = {
56071
56071
  velocity: 0,
56072
56072
  stiffness: 100,
@@ -56075,8 +56075,8 @@ function Bre(n) {
56075
56075
  isResolvedFromDuration: !1,
56076
56076
  ...n
56077
56077
  };
56078
- if (!nO(n, Lre) && nO(n, Ire)) {
56079
- const t = Mre(n);
56078
+ if (!nO(n, Bre) && nO(n, Lre)) {
56079
+ const t = Pre(n);
56080
56080
  e = {
56081
56081
  ...e,
56082
56082
  ...t,
@@ -56086,7 +56086,7 @@ function Bre(n) {
56086
56086
  return e;
56087
56087
  }
56088
56088
  function W_({ keyframes: n, restDelta: e, restSpeed: t, ...r }) {
56089
- const s = n[0], i = n[n.length - 1], o = { done: !1, value: s }, { stiffness: a, damping: l, mass: c, duration: u, velocity: f, isResolvedFromDuration: d } = Bre({
56089
+ const s = n[0], i = n[n.length - 1], o = { done: !1, value: s }, { stiffness: a, damping: l, mass: c, duration: u, velocity: f, isResolvedFromDuration: d } = _re({
56090
56090
  ...r,
56091
56091
  velocity: -eo(r.velocity || 0)
56092
56092
  }), h = f || 0, p = l / (2 * Math.sqrt(a * c)), m = i - s, y = eo(Math.sqrt(a / c)), b = Math.abs(m) < 5;
@@ -56155,32 +56155,32 @@ function rO({ keyframes: n, velocity: e = 0, power: t = 0.8, timeConstant: r = 3
56155
56155
  }
56156
56156
  };
56157
56157
  }
56158
- const K_ = (n, e, t) => (((1 - 3 * t + 3 * e) * n + (3 * t - 6 * e)) * n + 3 * e) * n, _re = 1e-7, Fre = 12;
56159
- function jre(n, e, t, r, s) {
56158
+ const K_ = (n, e, t) => (((1 - 3 * t + 3 * e) * n + (3 * t - 6 * e)) * n + 3 * e) * n, Fre = 1e-7, jre = 12;
56159
+ function Ure(n, e, t, r, s) {
56160
56160
  let i, o, a = 0;
56161
56161
  do
56162
56162
  o = e + (t - e) / 2, i = K_(o, r, s) - n, i > 0 ? t = o : e = o;
56163
- while (Math.abs(i) > _re && ++a < Fre);
56163
+ while (Math.abs(i) > Fre && ++a < jre);
56164
56164
  return o;
56165
56165
  }
56166
56166
  function ap(n, e, t, r) {
56167
56167
  if (n === e && t === r)
56168
56168
  return Tn;
56169
- const s = (i) => jre(i, 0, 1, n, t);
56169
+ const s = (i) => Ure(i, 0, 1, n, t);
56170
56170
  return (i) => i === 0 || i === 1 ? i : K_(s(i), e, r);
56171
56171
  }
56172
- const Ure = ap(0.42, 0, 1, 1), Vre = ap(0, 0, 0.58, 1), Q_ = ap(0.42, 0, 0.58, 1), Hre = (n) => Array.isArray(n) && typeof n[0] != "number", J_ = (n) => (e) => e <= 0.5 ? n(2 * e) / 2 : (2 - n(2 * (1 - e))) / 2, q_ = (n) => (e) => 1 - n(1 - e), LE = (n) => 1 - Math.sin(Math.acos(n)), Y_ = q_(LE), zre = J_(LE), X_ = ap(0.33, 1.53, 0.69, 0.99), BE = q_(X_), $re = J_(BE), Gre = (n) => (n *= 2) < 1 ? 0.5 * BE(n) : 0.5 * (2 - Math.pow(2, -10 * (n - 1))), sO = {
56172
+ const Vre = ap(0.42, 0, 1, 1), Hre = ap(0, 0, 0.58, 1), Q_ = ap(0.42, 0, 0.58, 1), zre = (n) => Array.isArray(n) && typeof n[0] != "number", J_ = (n) => (e) => e <= 0.5 ? n(2 * e) / 2 : (2 - n(2 * (1 - e))) / 2, q_ = (n) => (e) => 1 - n(1 - e), LE = (n) => 1 - Math.sin(Math.acos(n)), Y_ = q_(LE), $re = J_(LE), X_ = ap(0.33, 1.53, 0.69, 0.99), BE = q_(X_), Gre = J_(BE), Wre = (n) => (n *= 2) < 1 ? 0.5 * BE(n) : 0.5 * (2 - Math.pow(2, -10 * (n - 1))), sO = {
56173
56173
  linear: Tn,
56174
- easeIn: Ure,
56174
+ easeIn: Vre,
56175
56175
  easeInOut: Q_,
56176
- easeOut: Vre,
56176
+ easeOut: Hre,
56177
56177
  circIn: LE,
56178
- circInOut: zre,
56178
+ circInOut: $re,
56179
56179
  circOut: Y_,
56180
56180
  backIn: BE,
56181
- backInOut: $re,
56181
+ backInOut: Gre,
56182
56182
  backOut: X_,
56183
- anticipate: Gre
56183
+ anticipate: Wre
56184
56184
  }, iO = (n) => {
56185
56185
  if (Array.isArray(n)) {
56186
56186
  lo(n.length === 4, "Cubic bezier arrays must contain four numerical values.");
@@ -56196,7 +56196,7 @@ const Ure = ap(0.42, 0, 1, 1), Vre = ap(0, 0, 0.58, 1), Q_ = ap(0.42, 0, 0.58, 1
56196
56196
  function cw(n, e, t) {
56197
56197
  return t < 0 && (t += 1), t > 1 && (t -= 1), t < 1 / 6 ? n + (e - n) * 6 * t : t < 1 / 2 ? e : t < 2 / 3 ? n + (e - n) * (2 / 3 - t) * 6 : n;
56198
56198
  }
56199
- function Wre({ hue: n, saturation: e, lightness: t, alpha: r }) {
56199
+ function Kre({ hue: n, saturation: e, lightness: t, alpha: r }) {
56200
56200
  n /= 360, e /= 100, t /= 100;
56201
56201
  let s = 0, i = 0, o = 0;
56202
56202
  if (!e)
@@ -56218,13 +56218,13 @@ function py(n, e) {
56218
56218
  const uw = (n, e, t) => {
56219
56219
  const r = n * n, s = t * (e * e - r) + r;
56220
56220
  return s < 0 ? 0 : Math.sqrt(s);
56221
- }, Kre = [kv, Ja, Ic], Qre = (n) => Kre.find((e) => e.test(n));
56221
+ }, Qre = [kv, Ja, Ic], Jre = (n) => Qre.find((e) => e.test(n));
56222
56222
  function oO(n) {
56223
- const e = Qre(n);
56223
+ const e = Jre(n);
56224
56224
  if (Df(!!e, `'${n}' is not an animatable color. Use the equivalent color code instead.`), !e)
56225
56225
  return !1;
56226
56226
  let t = e.parse(n);
56227
- return e === Ic && (t = Wre(t)), t;
56227
+ return e === Ic && (t = Kre(t)), t;
56228
56228
  }
56229
56229
  const aO = (n, e) => {
56230
56230
  const t = oO(n), r = oO(e);
@@ -56233,14 +56233,14 @@ const aO = (n, e) => {
56233
56233
  const s = { ...t };
56234
56234
  return (i) => (s.red = uw(t.red, r.red, i), s.green = uw(t.green, r.green, i), s.blue = uw(t.blue, r.blue, i), s.alpha = _t(t.alpha, r.alpha, i), Ja.transform(s));
56235
56235
  }, Rv = /* @__PURE__ */ new Set(["none", "hidden"]);
56236
- function Jre(n, e) {
56236
+ function qre(n, e) {
56237
56237
  return Rv.has(n) ? (t) => t <= 0 ? n : e : (t) => t >= 1 ? e : n;
56238
56238
  }
56239
- function qre(n, e) {
56239
+ function Yre(n, e) {
56240
56240
  return (t) => _t(n, e, t);
56241
56241
  }
56242
56242
  function _E(n) {
56243
- return typeof n == "number" ? qre : typeof n == "string" ? EE(n) ? py : Pn.test(n) ? aO : Zre : Array.isArray(n) ? Z_ : typeof n == "object" ? Pn.test(n) ? aO : Yre : py;
56243
+ return typeof n == "number" ? Yre : typeof n == "string" ? EE(n) ? py : Pn.test(n) ? aO : ese : Array.isArray(n) ? Z_ : typeof n == "object" ? Pn.test(n) ? aO : Xre : py;
56244
56244
  }
56245
56245
  function Z_(n, e) {
56246
56246
  const t = [...n], r = t.length, s = n.map((i, o) => _E(i)(i, e[o]));
@@ -56250,7 +56250,7 @@ function Z_(n, e) {
56250
56250
  return t;
56251
56251
  };
56252
56252
  }
56253
- function Yre(n, e) {
56253
+ function Xre(n, e) {
56254
56254
  const t = { ...n, ...e }, r = {};
56255
56255
  for (const s in t)
56256
56256
  n[s] !== void 0 && e[s] !== void 0 && (r[s] = _E(n[s])(n[s], e[s]));
@@ -56260,7 +56260,7 @@ function Yre(n, e) {
56260
56260
  return t;
56261
56261
  };
56262
56262
  }
56263
- function Xre(n, e) {
56263
+ function Zre(n, e) {
56264
56264
  var t;
56265
56265
  const r = [], s = { color: 0, var: 0, number: 0 };
56266
56266
  for (let i = 0; i < e.values.length; i++) {
@@ -56269,14 +56269,14 @@ function Xre(n, e) {
56269
56269
  }
56270
56270
  return r;
56271
56271
  }
56272
- const Zre = (n, e) => {
56272
+ const ese = (n, e) => {
56273
56273
  const t = ga.createTransformer(e), r = mh(n), s = mh(e);
56274
- return r.indexes.var.length === s.indexes.var.length && r.indexes.color.length === s.indexes.color.length && r.indexes.number.length >= s.indexes.number.length ? Rv.has(n) && !s.values.length || Rv.has(e) && !r.values.length ? Jre(n, e) : Xi(Z_(Xre(r, s), s.values), t) : (Df(!0, `Complex values '${n}' and '${e}' 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.`), py(n, e));
56274
+ return r.indexes.var.length === s.indexes.var.length && r.indexes.color.length === s.indexes.color.length && r.indexes.number.length >= s.indexes.number.length ? Rv.has(n) && !s.values.length || Rv.has(e) && !r.values.length ? qre(n, e) : Xi(Z_(Zre(r, s), s.values), t) : (Df(!0, `Complex values '${n}' and '${e}' 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.`), py(n, e));
56275
56275
  };
56276
56276
  function eF(n, e, t) {
56277
56277
  return typeof n == "number" && typeof e == "number" && typeof t == "number" ? _t(n, e, t) : _E(n)(n, e);
56278
56278
  }
56279
- function ese(n, e, t) {
56279
+ function tse(n, e, t) {
56280
56280
  const r = [], s = t || eF, i = n.length - 1;
56281
56281
  for (let o = 0; o < i; o++) {
56282
56282
  let a = s(n[o], n[o + 1]);
@@ -56288,14 +56288,14 @@ function ese(n, e, t) {
56288
56288
  }
56289
56289
  return r;
56290
56290
  }
56291
- function tse(n, e, { clamp: t = !0, ease: r, mixer: s } = {}) {
56291
+ function nse(n, e, { clamp: t = !0, ease: r, mixer: s } = {}) {
56292
56292
  const i = n.length;
56293
56293
  if (lo(i === e.length, "Both input and output ranges must be the same length"), i === 1)
56294
56294
  return () => e[0];
56295
56295
  if (i === 2 && n[0] === n[1])
56296
56296
  return () => e[1];
56297
56297
  n[0] > n[i - 1] && (n = [...n].reverse(), e = [...e].reverse());
56298
- const o = ese(e, r, s), a = o.length, l = (c) => {
56298
+ const o = tse(e, r, s), a = o.length, l = (c) => {
56299
56299
  let u = 0;
56300
56300
  if (a > 1)
56301
56301
  for (; u < n.length - 2 && !(c < n[u + 1]); u++)
@@ -56305,34 +56305,34 @@ function tse(n, e, { clamp: t = !0, ease: r, mixer: s } = {}) {
56305
56305
  };
56306
56306
  return t ? (c) => l(ma(n[0], n[i - 1], c)) : l;
56307
56307
  }
56308
- function nse(n, e) {
56308
+ function rse(n, e) {
56309
56309
  const t = n[n.length - 1];
56310
56310
  for (let r = 1; r <= e; r++) {
56311
56311
  const s = gh(0, e, r);
56312
56312
  n.push(_t(t, 1, s));
56313
56313
  }
56314
56314
  }
56315
- function rse(n) {
56315
+ function sse(n) {
56316
56316
  const e = [0];
56317
- return nse(e, n.length - 1), e;
56317
+ return rse(e, n.length - 1), e;
56318
56318
  }
56319
- function sse(n, e) {
56319
+ function ise(n, e) {
56320
56320
  return n.map((t) => t * e);
56321
56321
  }
56322
- function ise(n, e) {
56322
+ function ose(n, e) {
56323
56323
  return n.map(() => e || Q_).splice(0, n.length - 1);
56324
56324
  }
56325
56325
  function my({ duration: n = 300, keyframes: e, times: t, ease: r = "easeInOut" }) {
56326
- const s = Hre(r) ? r.map(iO) : iO(r), i = {
56326
+ const s = zre(r) ? r.map(iO) : iO(r), i = {
56327
56327
  done: !1,
56328
56328
  value: e[0]
56329
- }, o = sse(
56329
+ }, o = ise(
56330
56330
  // Only use the provided offsets if they're the correct length
56331
56331
  // TODO Maybe we should warn here if there's a length mismatch
56332
- t && t.length === e.length ? t : rse(e),
56332
+ t && t.length === e.length ? t : sse(e),
56333
56333
  n
56334
- ), a = tse(o, e, {
56335
- ease: Array.isArray(s) ? s : ise(e, s)
56334
+ ), a = nse(o, e, {
56335
+ ease: Array.isArray(s) ? s : ose(e, s)
56336
56336
  });
56337
56337
  return {
56338
56338
  calculatedDuration: n,
@@ -56340,7 +56340,7 @@ function my({ duration: n = 300, keyframes: e, times: t, ease: r = "easeInOut" }
56340
56340
  };
56341
56341
  }
56342
56342
  const lO = 2e4;
56343
- function ose(n) {
56343
+ function ase(n) {
56344
56344
  let e = 0;
56345
56345
  const t = 50;
56346
56346
  let r = n.next(e);
@@ -56348,7 +56348,7 @@ function ose(n) {
56348
56348
  e += t, r = n.next(e);
56349
56349
  return e >= lO ? 1 / 0 : e;
56350
56350
  }
56351
- const ase = (n) => {
56351
+ const lse = (n) => {
56352
56352
  const e = ({ timestamp: t }) => n(t);
56353
56353
  return {
56354
56354
  start: () => mt.update(e, !0),
@@ -56359,13 +56359,13 @@ const ase = (n) => {
56359
56359
  */
56360
56360
  now: () => vn.isProcessing ? vn.timestamp : aa.now()
56361
56361
  };
56362
- }, lse = {
56362
+ }, cse = {
56363
56363
  decay: rO,
56364
56364
  inertia: rO,
56365
56365
  tween: my,
56366
56366
  keyframes: my,
56367
56367
  spring: W_
56368
- }, cse = (n) => n / 100;
56368
+ }, use = (n) => n / 100;
56369
56369
  class FE extends z_ {
56370
56370
  constructor({ KeyframeResolver: e = PE, ...t }) {
56371
56371
  super(t), this.holdTime = null, this.startTime = null, this.cancelTime = null, this.currentTime = 0, this.playbackSpeed = 1, this.pendingPlayState = "running", this.state = "idle", this.stop = () => {
@@ -56379,15 +56379,15 @@ class FE extends z_ {
56379
56379
  r && s && s.owner ? this.resolver = s.owner.resolveKeyframes(i, o, r, s) : this.resolver = new e(i, o, r, s), this.resolver.scheduleResolve();
56380
56380
  }
56381
56381
  initPlayback(e) {
56382
- const { type: t = "keyframes", repeat: r = 0, repeatDelay: s = 0, repeatType: i, velocity: o = 0 } = this.options, a = lse[t] || my;
56382
+ const { type: t = "keyframes", repeat: r = 0, repeatDelay: s = 0, repeatType: i, velocity: o = 0 } = this.options, a = cse[t] || my;
56383
56383
  let l, c;
56384
- a !== my && typeof e[0] != "number" && (process.env.NODE_ENV !== "production" && lo(e.length === 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${e}`), l = Xi(cse, eF(e[0], e[1])), e = [0, 100]);
56384
+ a !== my && typeof e[0] != "number" && (process.env.NODE_ENV !== "production" && lo(e.length === 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${e}`), l = Xi(use, eF(e[0], e[1])), e = [0, 100]);
56385
56385
  const u = a({ ...this.options, keyframes: e });
56386
56386
  i === "mirror" && (c = a({
56387
56387
  ...this.options,
56388
56388
  keyframes: [...e].reverse(),
56389
56389
  velocity: -o
56390
- })), u.calculatedDuration === null && (u.calculatedDuration = ose(u));
56390
+ })), u.calculatedDuration === null && (u.calculatedDuration = ase(u));
56391
56391
  const { calculatedDuration: f } = u, d = f + s, h = d * (r + 1) - s;
56392
56392
  return {
56393
56393
  generator: u,
@@ -56452,7 +56452,7 @@ class FE extends z_ {
56452
56452
  }
56453
56453
  if (this.isStopped)
56454
56454
  return;
56455
- const { driver: e = ase, onPlay: t } = this.options;
56455
+ const { driver: e = lse, onPlay: t } = this.options;
56456
56456
  this.driver || (this.driver = e((s) => this.tick(s))), t && t();
56457
56457
  const r = this.driver.now();
56458
56458
  this.holdTime !== null ? this.startTime = r - this.holdTime : (!this.startTime || this.state === "finished") && (this.startTime = r), this.state === "finished" && this.updateFinishedPromise(), this.cancelTime = this.startTime, this.holdTime = null, this.state = "running", this.driver.start();
@@ -56501,14 +56501,14 @@ const td = ([n, e, t, r]) => `cubic-bezier(${n}, ${e}, ${t}, ${r})`, jE = {
56501
56501
  backIn: td([0.31, 0.01, 0.66, -0.59]),
56502
56502
  backOut: td([0.33, 1.53, 0.69, 0.99])
56503
56503
  };
56504
- function use(n) {
56504
+ function fse(n) {
56505
56505
  return rF(n) || jE.easeOut;
56506
56506
  }
56507
56507
  function rF(n) {
56508
56508
  if (n)
56509
- return tF(n) ? td(n) : Array.isArray(n) ? n.map(use) : jE[n];
56509
+ return tF(n) ? td(n) : Array.isArray(n) ? n.map(fse) : jE[n];
56510
56510
  }
56511
- function fse(n, e, t, { delay: r = 0, duration: s = 300, repeat: i = 0, repeatType: o = "loop", ease: a, times: l } = {}) {
56511
+ function dse(n, e, t, { delay: r = 0, duration: s = 300, repeat: i = 0, repeatType: o = "loop", ease: a, times: l } = {}) {
56512
56512
  const c = { [e]: t };
56513
56513
  l && (c.offset = l);
56514
56514
  const u = rF(a);
@@ -56521,7 +56521,7 @@ function fse(n, e, t, { delay: r = 0, duration: s = 300, repeat: i = 0, repeatTy
56521
56521
  direction: o === "reverse" ? "alternate" : "normal"
56522
56522
  });
56523
56523
  }
56524
- const dse = H_(() => Object.hasOwnProperty.call(Element.prototype, "animate")), hse = /* @__PURE__ */ new Set([
56524
+ const hse = H_(() => Object.hasOwnProperty.call(Element.prototype, "animate")), pse = /* @__PURE__ */ new Set([
56525
56525
  "opacity",
56526
56526
  "clipPath",
56527
56527
  "filter",
@@ -56529,11 +56529,11 @@ const dse = H_(() => Object.hasOwnProperty.call(Element.prototype, "animate")),
56529
56529
  // TODO: Can be accelerated but currently disabled until https://issues.chromium.org/issues/41491098 is resolved
56530
56530
  // or until we implement support for linear() easing.
56531
56531
  // "background-color"
56532
- ]), gy = 10, pse = 2e4;
56533
- function mse(n) {
56532
+ ]), gy = 10, mse = 2e4;
56533
+ function gse(n) {
56534
56534
  return n.type === "spring" || n.name === "backgroundColor" || !nF(n.ease);
56535
56535
  }
56536
- function gse(n, e) {
56536
+ function yse(n, e) {
56537
56537
  const t = new FE({
56538
56538
  ...e,
56539
56539
  keyframes: n,
@@ -56544,7 +56544,7 @@ function gse(n, e) {
56544
56544
  let r = { done: !1, value: n[0] };
56545
56545
  const s = [];
56546
56546
  let i = 0;
56547
- for (; !r.done && i < pse; )
56547
+ for (; !r.done && i < mse; )
56548
56548
  r = t.sample(i), s.push(r.value), i += gy;
56549
56549
  return {
56550
56550
  times: void 0,
@@ -56564,11 +56564,11 @@ class cO extends z_ {
56564
56564
  let { duration: s = 300, times: i, ease: o, type: a, motionValue: l, name: c } = this.options;
56565
56565
  if (!(!((r = l.owner) === null || r === void 0) && r.current))
56566
56566
  return !1;
56567
- if (mse(this.options)) {
56568
- const { onComplete: f, onUpdate: d, motionValue: h, ...p } = this.options, m = gse(e, p);
56567
+ if (gse(this.options)) {
56568
+ const { onComplete: f, onUpdate: d, motionValue: h, ...p } = this.options, m = yse(e, p);
56569
56569
  e = m.keyframes, e.length === 1 && (e[1] = e[0]), s = m.duration, i = m.times, o = m.ease, a = "keyframes";
56570
56570
  }
56571
- const u = fse(l.owner.current, c, e, { ...this.options, duration: s, times: i, ease: o });
56571
+ const u = dse(l.owner.current, c, e, { ...this.options, duration: s, times: i, ease: o });
56572
56572
  return u.startTime = aa.now(), this.pendingTimeline ? (u.timeline = this.pendingTimeline, this.pendingTimeline = void 0) : u.onfinish = () => {
56573
56573
  const { onComplete: f } = this.options;
56574
56574
  l.set(N0(e, this.options, t)), f && f(), this.cancel(), this.resolveFinishedPromise();
@@ -56688,14 +56688,14 @@ class cO extends z_ {
56688
56688
  }
56689
56689
  static supports(e) {
56690
56690
  const { motionValue: t, name: r, repeatDelay: s, repeatType: i, damping: o, type: a } = e;
56691
- return dse() && r && hse.has(r) && t && t.owner && t.owner.current instanceof HTMLElement && /**
56691
+ return hse() && r && pse.has(r) && t && t.owner && t.owner.current instanceof HTMLElement && /**
56692
56692
  * If we're outputting values to onUpdate then we can't use WAAPI as there's
56693
56693
  * no way to read the value from WAAPI every frame.
56694
56694
  */
56695
56695
  !t.owner.getProps().onUpdate && !s && i !== "mirror" && o !== 0 && a !== "inertia";
56696
56696
  }
56697
56697
  }
56698
- function yse(n, e) {
56698
+ function bse(n, e) {
56699
56699
  let t;
56700
56700
  const r = () => {
56701
56701
  const { currentTime: s } = e, o = (s === null ? 0 : s.value) / 100;
@@ -56703,8 +56703,8 @@ function yse(n, e) {
56703
56703
  };
56704
56704
  return mt.update(r, !0), () => co(r);
56705
56705
  }
56706
- const bse = H_(() => window.ScrollTimeline !== void 0);
56707
- class wse {
56706
+ const wse = H_(() => window.ScrollTimeline !== void 0);
56707
+ class Ase {
56708
56708
  constructor(e) {
56709
56709
  this.stop = () => this.runAll("stop"), this.animations = e.filter(Boolean);
56710
56710
  }
@@ -56723,10 +56723,10 @@ class wse {
56723
56723
  }
56724
56724
  attachTimeline(e) {
56725
56725
  const t = this.animations.map((r) => {
56726
- if (bse() && r.attachTimeline)
56726
+ if (wse() && r.attachTimeline)
56727
56727
  r.attachTimeline(e);
56728
56728
  else
56729
- return r.pause(), yse((s) => {
56729
+ return r.pause(), bse((s) => {
56730
56730
  r.time = r.duration * s;
56731
56731
  }, e);
56732
56732
  });
@@ -56790,9 +56790,9 @@ const UE = (n, e, t, r = {}, s, i) => (o) => {
56790
56790
  motionValue: e,
56791
56791
  element: i ? void 0 : s
56792
56792
  };
56793
- Xne(a) || (u = {
56793
+ Zne(a) || (u = {
56794
56794
  ...u,
56795
- ...Yne(n, u)
56795
+ ...Xne(n, u)
56796
56796
  }), u.duration && (u.duration = Zi(u.duration)), u.repeatDelay && (u.repeatDelay = Zi(u.repeatDelay)), u.from !== void 0 && (u.keyframes[0] = u.from);
56797
56797
  let f = !1;
56798
56798
  if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (u.duration = 0, u.delay === 0 && (f = !0)), f && !i && e.get() !== void 0) {
@@ -56800,7 +56800,7 @@ const UE = (n, e, t, r = {}, s, i) => (o) => {
56800
56800
  if (d !== void 0)
56801
56801
  return mt.update(() => {
56802
56802
  u.onUpdate(d), u.onComplete();
56803
- }), new wse([]);
56803
+ }), new Ase([]);
56804
56804
  }
56805
56805
  return !i && cO.supports(u) ? new cO(u) : new FE(u);
56806
56806
  };
@@ -56843,8 +56843,8 @@ const uO = /* @__PURE__ */ new Set();
56843
56843
  function $E(n, e, t) {
56844
56844
  n || uO.has(e) || (console.warn(e), uO.add(e));
56845
56845
  }
56846
- const fO = 30, Ase = (n) => !isNaN(parseFloat(n));
56847
- class vse {
56846
+ const fO = 30, vse = (n) => !isNaN(parseFloat(n));
56847
+ class xse {
56848
56848
  /**
56849
56849
  * @param init - The initiating value
56850
56850
  * @param config - Optional configuration options
@@ -56860,7 +56860,7 @@ class vse {
56860
56860
  }, this.hasAnimated = !1, this.setCurrent(e), this.owner = t.owner;
56861
56861
  }
56862
56862
  setCurrent(e) {
56863
- this.current = e, this.updatedAt = aa.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = Ase(this.current));
56863
+ this.current = e, this.updatedAt = aa.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = vse(this.current));
56864
56864
  }
56865
56865
  setPrevFrameValue(e = this.current) {
56866
56866
  this.prevFrameValue = e, this.prevUpdatedAt = this.updatedAt;
@@ -57039,24 +57039,24 @@ class vse {
57039
57039
  }
57040
57040
  }
57041
57041
  function yh(n, e) {
57042
- return new vse(n, e);
57042
+ return new xse(n, e);
57043
57043
  }
57044
- function xse(n, e, t) {
57044
+ function Ese(n, e, t) {
57045
57045
  n.hasValue(e) ? n.getValue(e).set(t) : n.addValue(e, yh(t));
57046
57046
  }
57047
- function Ese(n, e) {
57047
+ function Cse(n, e) {
57048
57048
  const t = O0(n, e);
57049
57049
  let { transitionEnd: r = {}, transition: s = {}, ...i } = t || {};
57050
57050
  i = { ...i, ...r };
57051
57051
  for (const o in i) {
57052
- const a = Rne(i[o]);
57053
- xse(n, o, a);
57052
+ const a = One(i[o]);
57053
+ Ese(n, o, a);
57054
57054
  }
57055
57055
  }
57056
57056
  function sF(n) {
57057
57057
  return n.getProps()[s_];
57058
57058
  }
57059
- function Cse({ protectedKeys: n, needsAnimating: e }, t) {
57059
+ function kse({ protectedKeys: n, needsAnimating: e }, t) {
57060
57060
  const r = n.hasOwnProperty(t) && e[t] !== !0;
57061
57061
  return e[t] = !1, r;
57062
57062
  }
@@ -57068,7 +57068,7 @@ function iF(n, e, { delay: t = 0, transitionOverride: r, type: s } = {}) {
57068
57068
  const u = [], f = s && n.animationState && n.animationState.getState()[s];
57069
57069
  for (const d in l) {
57070
57070
  const h = n.getValue(d, (i = n.latestValues[d]) !== null && i !== void 0 ? i : null), p = l[d];
57071
- if (p === void 0 || f && Cse(f, d))
57071
+ if (p === void 0 || f && kse(f, d))
57072
57072
  continue;
57073
57073
  const m = {
57074
57074
  delay: t,
@@ -57089,7 +57089,7 @@ function iF(n, e, { delay: t = 0, transitionOverride: r, type: s } = {}) {
57089
57089
  }
57090
57090
  return a && Promise.all(u).then(() => {
57091
57091
  mt.update(() => {
57092
- a && Ese(n, a);
57092
+ a && Cse(n, a);
57093
57093
  });
57094
57094
  }), u;
57095
57095
  }
@@ -57100,7 +57100,7 @@ function Ov(n, e, t = {}) {
57100
57100
  t.transitionOverride && (i = t.transitionOverride);
57101
57101
  const o = s ? () => Promise.all(iF(n, s, t)) : () => Promise.resolve(), a = n.variantChildren && n.variantChildren.size ? (c = 0) => {
57102
57102
  const { delayChildren: u = 0, staggerChildren: f, staggerDirection: d } = i;
57103
- return kse(n, e, u + c, f, d, t);
57103
+ return Sse(n, e, u + c, f, d, t);
57104
57104
  } : () => Promise.resolve(), { when: l } = i;
57105
57105
  if (l) {
57106
57106
  const [c, u] = l === "beforeChildren" ? [o, a] : [a, o];
@@ -57108,19 +57108,19 @@ function Ov(n, e, t = {}) {
57108
57108
  } else
57109
57109
  return Promise.all([o(), a(t.delay)]);
57110
57110
  }
57111
- function kse(n, e, t = 0, r = 0, s = 1, i) {
57111
+ function Sse(n, e, t = 0, r = 0, s = 1, i) {
57112
57112
  const o = [], a = (n.variantChildren.size - 1) * r, l = s === 1 ? (c = 0) => c * r : (c = 0) => a - c * r;
57113
- return Array.from(n.variantChildren).sort(Sse).forEach((c, u) => {
57113
+ return Array.from(n.variantChildren).sort(Tse).forEach((c, u) => {
57114
57114
  c.notify("AnimationStart", e), o.push(Ov(c, e, {
57115
57115
  ...i,
57116
57116
  delay: t + l(u)
57117
57117
  }).then(() => c.notify("AnimationComplete", e)));
57118
57118
  }), Promise.all(o);
57119
57119
  }
57120
- function Sse(n, e) {
57120
+ function Tse(n, e) {
57121
57121
  return n.sortNodePosition(e);
57122
57122
  }
57123
- function Tse(n, e, t = {}) {
57123
+ function Rse(n, e, t = {}) {
57124
57124
  n.notify("AnimationStart", e);
57125
57125
  let r;
57126
57126
  if (Array.isArray(e)) {
@@ -57138,12 +57138,12 @@ function Tse(n, e, t = {}) {
57138
57138
  });
57139
57139
  });
57140
57140
  }
57141
- const Rse = [...wE].reverse(), Ose = wE.length;
57142
- function Nse(n) {
57143
- return (e) => Promise.all(e.map(({ animation: t, options: r }) => Tse(n, t, r)));
57144
- }
57141
+ const Ose = [...wE].reverse(), Nse = wE.length;
57145
57142
  function Mse(n) {
57146
- let e = Nse(n), t = dO(), r = !0;
57143
+ return (e) => Promise.all(e.map(({ animation: t, options: r }) => Rse(n, t, r)));
57144
+ }
57145
+ function Pse(n) {
57146
+ let e = Mse(n), t = dO(), r = !0;
57147
57147
  const s = (l) => (c, u) => {
57148
57148
  var f;
57149
57149
  const d = O0(n, u, l === "exit" ? (f = n.presenceContext) === null || f === void 0 ? void 0 : f.custom : void 0);
@@ -57159,8 +57159,8 @@ function Mse(n) {
57159
57159
  function o(l) {
57160
57160
  const c = n.getProps(), u = n.getVariantContext(!0) || {}, f = [], d = /* @__PURE__ */ new Set();
57161
57161
  let h = {}, p = 1 / 0;
57162
- for (let y = 0; y < Ose; y++) {
57163
- const b = Rse[y], v = t[b], A = c[b] !== void 0 ? c[b] : u[b], w = ph(A), x = b === l ? v.isActive : null;
57162
+ for (let y = 0; y < Nse; y++) {
57163
+ const b = Ose[y], v = t[b], A = c[b] !== void 0 ? c[b] : u[b], w = ph(A), x = b === l ? v.isActive : null;
57164
57164
  x === !1 && (p = y);
57165
57165
  let C = A === u[b] && A !== c[b] && w;
57166
57166
  if (C && r && n.manuallyAnimateOnMount && (C = !1), v.protectedKeys = { ...h }, // If it isn't active and hasn't *just* been set as inactive
@@ -57168,7 +57168,7 @@ function Mse(n) {
57168
57168
  !A && !v.prevProp || // Or if the prop doesn't define an animation
57169
57169
  S0(A) || typeof A == "boolean")
57170
57170
  continue;
57171
- let N = Pse(v.prevProp, A) || // If we're making this variant active, we want to always make it active
57171
+ let N = Dse(v.prevProp, A) || // If we're making this variant active, we want to always make it active
57172
57172
  b === l && v.isActive && !C && w || // If we removed a higher-priority variant (i is in reverse order)
57173
57173
  y > p && w, R = !1;
57174
57174
  const M = Array.isArray(A) ? A : [A];
@@ -57227,7 +57227,7 @@ function Mse(n) {
57227
57227
  }
57228
57228
  };
57229
57229
  }
57230
- function Pse(n, e) {
57230
+ function Dse(n, e) {
57231
57231
  return typeof e == "string" ? e !== n : Array.isArray(e) ? !T_(e, n) : !1;
57232
57232
  }
57233
57233
  function Ra(n = !1) {
@@ -57249,14 +57249,14 @@ function dO() {
57249
57249
  exit: Ra()
57250
57250
  };
57251
57251
  }
57252
- class Dse extends Ca {
57252
+ class Ise extends Ca {
57253
57253
  /**
57254
57254
  * We dynamically generate the AnimationState manager as it contains a reference
57255
57255
  * to the underlying animation library. We only want to load that if we load this,
57256
57256
  * so people can optionally code split it out using the `m` component.
57257
57257
  */
57258
57258
  constructor(e) {
57259
- super(e), e.animationState || (e.animationState = Mse(e));
57259
+ super(e), e.animationState || (e.animationState = Pse(e));
57260
57260
  }
57261
57261
  updateAnimationControlsSubscription() {
57262
57262
  const { animate: e } = this.node.getProps();
@@ -57277,10 +57277,10 @@ class Dse extends Ca {
57277
57277
  this.node.animationState.reset(), (e = this.unmountControls) === null || e === void 0 || e.call(this);
57278
57278
  }
57279
57279
  }
57280
- let Ise = 0;
57281
- class Lse extends Ca {
57280
+ let Lse = 0;
57281
+ class Bse extends Ca {
57282
57282
  constructor() {
57283
- super(...arguments), this.id = Ise++;
57283
+ super(...arguments), this.id = Lse++;
57284
57284
  }
57285
57285
  update() {
57286
57286
  if (!this.node.presenceContext)
@@ -57298,15 +57298,15 @@ class Lse extends Ca {
57298
57298
  unmount() {
57299
57299
  }
57300
57300
  }
57301
- const Bse = {
57301
+ const _se = {
57302
57302
  animation: {
57303
- Feature: Dse
57303
+ Feature: Ise
57304
57304
  },
57305
57305
  exit: {
57306
- Feature: Lse
57306
+ Feature: Bse
57307
57307
  }
57308
57308
  }, hO = (n, e) => Math.abs(n - e);
57309
- function _se(n, e) {
57309
+ function Fse(n, e) {
57310
57310
  const t = hO(n.x, e.x), r = hO(n.y, e.y);
57311
57311
  return Math.sqrt(t ** 2 + r ** 2);
57312
57312
  }
@@ -57315,7 +57315,7 @@ class oF {
57315
57315
  if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.handlers = {}, this.contextWindow = window, this.updatePoint = () => {
57316
57316
  if (!(this.lastMoveEvent && this.lastMoveEventInfo))
57317
57317
  return;
57318
- const f = dw(this.lastMoveEventInfo, this.history), d = this.startEvent !== null, h = _se(f.offset, { x: 0, y: 0 }) >= 3;
57318
+ const f = dw(this.lastMoveEventInfo, this.history), d = this.startEvent !== null, h = Fse(f.offset, { x: 0, y: 0 }) >= 3;
57319
57319
  if (!d && !h)
57320
57320
  return;
57321
57321
  const { point: p } = f, { timestamp: m } = vn;
@@ -57356,17 +57356,17 @@ function dw({ point: n }, e) {
57356
57356
  return {
57357
57357
  point: n,
57358
57358
  delta: pO(n, aF(e)),
57359
- offset: pO(n, Fse(e)),
57360
- velocity: jse(e, 0.1)
57359
+ offset: pO(n, jse(e)),
57360
+ velocity: Use(e, 0.1)
57361
57361
  };
57362
57362
  }
57363
- function Fse(n) {
57363
+ function jse(n) {
57364
57364
  return n[0];
57365
57365
  }
57366
57366
  function aF(n) {
57367
57367
  return n[n.length - 1];
57368
57368
  }
57369
- function jse(n, e) {
57369
+ function Use(n, e) {
57370
57370
  if (n.length < 2)
57371
57371
  return { x: 0, y: 0 };
57372
57372
  let t = n.length - 1, r = null;
@@ -57399,7 +57399,7 @@ function xd(n, e, t, r) {
57399
57399
  function gO(n, e, t) {
57400
57400
  n.min = t.min + e.min, n.max = n.min + _r(e);
57401
57401
  }
57402
- function Use(n, e, t) {
57402
+ function Vse(n, e, t) {
57403
57403
  gO(n.x, e.x, t.x), gO(n.y, e.y, t.y);
57404
57404
  }
57405
57405
  function yO(n, e, t) {
@@ -57408,7 +57408,7 @@ function yO(n, e, t) {
57408
57408
  function Ed(n, e, t) {
57409
57409
  yO(n.x, e.x, t.x), yO(n.y, e.y, t.y);
57410
57410
  }
57411
- function Vse(n, { min: e, max: t }, r) {
57411
+ function Hse(n, { min: e, max: t }, r) {
57412
57412
  return e !== void 0 && n < e ? n = r ? _t(e, n, r.min) : Math.max(n, e) : t !== void 0 && n > t && (n = r ? _t(t, n, r.max) : Math.min(n, t)), n;
57413
57413
  }
57414
57414
  function bO(n, e, t) {
@@ -57417,7 +57417,7 @@ function bO(n, e, t) {
57417
57417
  max: t !== void 0 ? n.max + t - (n.max - n.min) : void 0
57418
57418
  };
57419
57419
  }
57420
- function Hse(n, { top: e, left: t, bottom: r, right: s }) {
57420
+ function zse(n, { top: e, left: t, bottom: r, right: s }) {
57421
57421
  return {
57422
57422
  x: bO(n.x, t, s),
57423
57423
  y: bO(n.y, e, r)
@@ -57427,23 +57427,23 @@ function wO(n, e) {
57427
57427
  let t = e.min - n.min, r = e.max - n.max;
57428
57428
  return e.max - e.min < n.max - n.min && ([t, r] = [r, t]), { min: t, max: r };
57429
57429
  }
57430
- function zse(n, e) {
57430
+ function $se(n, e) {
57431
57431
  return {
57432
57432
  x: wO(n.x, e.x),
57433
57433
  y: wO(n.y, e.y)
57434
57434
  };
57435
57435
  }
57436
- function $se(n, e) {
57436
+ function Gse(n, e) {
57437
57437
  let t = 0.5;
57438
57438
  const r = _r(n), s = _r(e);
57439
57439
  return s > r ? t = gh(e.min, e.max - r, n.min) : r > s && (t = gh(n.min, n.max - s, e.min)), ma(0, 1, t);
57440
57440
  }
57441
- function Gse(n, e) {
57441
+ function Wse(n, e) {
57442
57442
  const t = {};
57443
57443
  return e.min !== void 0 && (t.min = e.min - n.min), e.max !== void 0 && (t.max = e.max - n.min), t;
57444
57444
  }
57445
57445
  const Mv = 0.35;
57446
- function Wse(n = Mv) {
57446
+ function Kse(n = Mv) {
57447
57447
  return n === !1 ? n = 0 : n === !0 && (n = Mv), {
57448
57448
  x: AO(n, "left", "right"),
57449
57449
  y: AO(n, "top", "bottom")
@@ -57479,10 +57479,10 @@ function lF({ top: n, left: e, right: t, bottom: r }) {
57479
57479
  y: { min: n, max: r }
57480
57480
  };
57481
57481
  }
57482
- function Kse({ x: n, y: e }) {
57482
+ function Qse({ x: n, y: e }) {
57483
57483
  return { top: e.min, right: n.max, bottom: e.max, left: n.min };
57484
57484
  }
57485
- function Qse(n, e) {
57485
+ function Jse(n, e) {
57486
57486
  if (!e)
57487
57487
  return n;
57488
57488
  const t = e({ x: n.left, y: n.top }), r = e({ x: n.right, y: n.bottom });
@@ -57521,7 +57521,7 @@ function Dv(n, e = 0, t = 1, r, s) {
57521
57521
  function uF(n, { x: e, y: t }) {
57522
57522
  Dv(n.x, e.translate, e.scale, e.originPoint), Dv(n.y, t.translate, t.scale, t.originPoint);
57523
57523
  }
57524
- function Jse(n, e, t, r = !1) {
57524
+ function qse(n, e, t, r = !1) {
57525
57525
  const s = t.length;
57526
57526
  if (!s)
57527
57527
  return;
@@ -57547,19 +57547,19 @@ function TO(n, e, [t, r, s]) {
57547
57547
  const i = e[s] !== void 0 ? e[s] : 0.5, o = _t(n.min, n.max, i);
57548
57548
  Dv(n, e[t], e[r], o, e.scale);
57549
57549
  }
57550
- const qse = ["x", "scaleX", "originX"], Yse = ["y", "scaleY", "originY"];
57550
+ const Yse = ["x", "scaleX", "originX"], Xse = ["y", "scaleY", "originY"];
57551
57551
  function Bc(n, e) {
57552
- TO(n.x, e, qse), TO(n.y, e, Yse);
57552
+ TO(n.x, e, Yse), TO(n.y, e, Xse);
57553
57553
  }
57554
57554
  function fF(n, e) {
57555
- return lF(Qse(n.getBoundingClientRect(), e));
57555
+ return lF(Jse(n.getBoundingClientRect(), e));
57556
57556
  }
57557
- function Xse(n, e, t) {
57557
+ function Zse(n, e, t) {
57558
57558
  const r = fF(n, t), { scroll: s } = e;
57559
57559
  return s && (To(r.x, s.offset.x), To(r.y, s.offset.y)), r;
57560
57560
  }
57561
- const dF = ({ current: n }) => n ? n.ownerDocument.defaultView : null, Zse = /* @__PURE__ */ new WeakMap();
57562
- class eie {
57561
+ const dF = ({ current: n }) => n ? n.ownerDocument.defaultView : null, eie = /* @__PURE__ */ new WeakMap();
57562
+ class tie {
57563
57563
  constructor(e) {
57564
57564
  this.openGlobalLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = { x: 0, y: 0 }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = Gt(), this.visualElement = e;
57565
57565
  }
@@ -57593,7 +57593,7 @@ class eie {
57593
57593
  return;
57594
57594
  const { offset: y } = f;
57595
57595
  if (h && this.currentDirection === null) {
57596
- this.currentDirection = tie(y), this.currentDirection !== null && p && p(this.currentDirection);
57596
+ this.currentDirection = nie(y), this.currentDirection !== null && p && p(this.currentDirection);
57597
57597
  return;
57598
57598
  }
57599
57599
  this.updateAxis("x", f.point, y), this.updateAxis("y", f.point, y), this.visualElement.render(), m && m(u, f);
@@ -57635,13 +57635,13 @@ class eie {
57635
57635
  return;
57636
57636
  const i = this.getAxisMotionValue(e);
57637
57637
  let o = this.originPoint[e] + r[e];
57638
- this.constraints && this.constraints[e] && (o = Vse(o, this.constraints[e], this.elastic[e])), i.set(o);
57638
+ this.constraints && this.constraints[e] && (o = Hse(o, this.constraints[e], this.elastic[e])), i.set(o);
57639
57639
  }
57640
57640
  resolveConstraints() {
57641
57641
  var e;
57642
57642
  const { dragConstraints: t, dragElastic: r } = this.getProps(), s = this.visualElement.projection && !this.visualElement.projection.layout ? this.visualElement.projection.measure(!1) : (e = this.visualElement.projection) === null || e === void 0 ? void 0 : e.layout, i = this.constraints;
57643
- t && Dc(t) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : t && s ? this.constraints = Hse(s.layoutBox, t) : this.constraints = !1, this.elastic = Wse(r), i !== this.constraints && s && this.constraints && !this.hasMutatedConstraints && zr((o) => {
57644
- this.constraints !== !1 && this.getAxisMotionValue(o) && (this.constraints[o] = Gse(s.layoutBox[o], this.constraints[o]));
57643
+ t && Dc(t) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : t && s ? this.constraints = zse(s.layoutBox, t) : this.constraints = !1, this.elastic = Kse(r), i !== this.constraints && s && this.constraints && !this.hasMutatedConstraints && zr((o) => {
57644
+ this.constraints !== !1 && this.getAxisMotionValue(o) && (this.constraints[o] = Wse(s.layoutBox[o], this.constraints[o]));
57645
57645
  });
57646
57646
  }
57647
57647
  resolveRefConstraints() {
@@ -57653,10 +57653,10 @@ class eie {
57653
57653
  const { projection: s } = this.visualElement;
57654
57654
  if (!s || !s.layout)
57655
57655
  return !1;
57656
- const i = Xse(r, s.root, this.visualElement.getTransformPagePoint());
57657
- let o = zse(s.layout.layoutBox, i);
57656
+ const i = Zse(r, s.root, this.visualElement.getTransformPagePoint());
57657
+ let o = $se(s.layout.layoutBox, i);
57658
57658
  if (t) {
57659
- const a = t(Kse(o));
57659
+ const a = t(Qse(o));
57660
57660
  this.hasMutatedConstraints = !!a, a && (o = lF(a));
57661
57661
  }
57662
57662
  return o;
@@ -57738,7 +57738,7 @@ class eie {
57738
57738
  const a = this.getAxisMotionValue(o);
57739
57739
  if (a && this.constraints !== !1) {
57740
57740
  const l = a.get();
57741
- s[o] = $se({ min: l, max: l }, this.constraints[o]);
57741
+ s[o] = Gse({ min: l, max: l }, this.constraints[o]);
57742
57742
  }
57743
57743
  });
57744
57744
  const { transformTemplate: i } = this.visualElement.getProps();
@@ -57752,7 +57752,7 @@ class eie {
57752
57752
  addListeners() {
57753
57753
  if (!this.visualElement.current)
57754
57754
  return;
57755
- Zse.set(this.visualElement, this);
57755
+ eie.set(this.visualElement, this);
57756
57756
  const e = this.visualElement.current, t = Yi(e, "pointerdown", (l) => {
57757
57757
  const { drag: c, dragListener: u = !0 } = this.getProps();
57758
57758
  c && u && this.start(l);
@@ -57787,13 +57787,13 @@ class eie {
57787
57787
  function em(n, e, t) {
57788
57788
  return (e === !0 || e === n) && (t === null || t === n);
57789
57789
  }
57790
- function tie(n, e = 10) {
57790
+ function nie(n, e = 10) {
57791
57791
  let t = null;
57792
57792
  return Math.abs(n.y) > e ? t = "y" : Math.abs(n.x) > e && (t = "x"), t;
57793
57793
  }
57794
- class nie extends Ca {
57794
+ class rie extends Ca {
57795
57795
  constructor(e) {
57796
- super(e), this.removeGroupControls = Tn, this.removeListeners = Tn, this.controls = new eie(e);
57796
+ super(e), this.removeGroupControls = Tn, this.removeListeners = Tn, this.controls = new tie(e);
57797
57797
  }
57798
57798
  mount() {
57799
57799
  const { dragControls: e } = this.node.getProps();
@@ -57806,7 +57806,7 @@ class nie extends Ca {
57806
57806
  const RO = (n) => (e, t) => {
57807
57807
  n && mt.postRender(() => n(e, t));
57808
57808
  };
57809
- class rie extends Ca {
57809
+ class sie extends Ca {
57810
57810
  constructor() {
57811
57811
  super(...arguments), this.removePointerDownListener = Tn;
57812
57812
  }
@@ -57837,7 +57837,7 @@ class rie extends Ca {
57837
57837
  this.removePointerDownListener(), this.session && this.session.end();
57838
57838
  }
57839
57839
  }
57840
- function sie() {
57840
+ function iie() {
57841
57841
  const n = Zt(k0);
57842
57842
  if (n === null)
57843
57843
  return [!0, null];
@@ -57871,7 +57871,7 @@ const $f = {
57871
57871
  const t = OO(n, e.target.x), r = OO(n, e.target.y);
57872
57872
  return `${t}% ${r}%`;
57873
57873
  }
57874
- }, iie = {
57874
+ }, oie = {
57875
57875
  correct: (n, { treeScale: e, projectionDelta: t }) => {
57876
57876
  const r = n, s = ga.parse(n);
57877
57877
  if (s.length > 5)
@@ -57882,7 +57882,7 @@ const $f = {
57882
57882
  return typeof s[2 + o] == "number" && (s[2 + o] /= c), typeof s[3 + o] == "number" && (s[3 + o] /= c), i(s);
57883
57883
  }
57884
57884
  };
57885
- class oie extends LF {
57885
+ class aie extends LF {
57886
57886
  /**
57887
57887
  * This only mounts projection nodes for components that
57888
57888
  * need measuring, we might want to do it for all components
@@ -57890,7 +57890,7 @@ class oie extends LF {
57890
57890
  */
57891
57891
  componentDidMount() {
57892
57892
  const { visualElement: e, layoutGroup: t, switchLayoutGroup: r, layoutId: s } = this.props, { projection: i } = e;
57893
- sne(aie), i && (t.group && t.group.add(i), r && r.register && s && r.register(i), i.root.didUpdate(), i.addEventListener("animationComplete", () => {
57893
+ ine(lie), i && (t.group && t.group.add(i), r && r.register && s && r.register(i), i.root.didUpdate(), i.addEventListener("animationComplete", () => {
57894
57894
  this.safeToRemove();
57895
57895
  }), i.setOptions({
57896
57896
  ...i.options,
@@ -57923,10 +57923,10 @@ class oie extends LF {
57923
57923
  }
57924
57924
  }
57925
57925
  function hF(n) {
57926
- const [e, t] = sie(), r = Zt(vE);
57927
- return k.jsx(oie, { ...n, layoutGroup: r, switchLayoutGroup: Zt(o_), isPresent: e, safeToRemove: t });
57926
+ const [e, t] = iie(), r = Zt(vE);
57927
+ return k.jsx(aie, { ...n, layoutGroup: r, switchLayoutGroup: Zt(o_), isPresent: e, safeToRemove: t });
57928
57928
  }
57929
- const aie = {
57929
+ const lie = {
57930
57930
  borderRadius: {
57931
57931
  ...$f,
57932
57932
  applyTo: [
@@ -57940,16 +57940,16 @@ const aie = {
57940
57940
  borderTopRightRadius: $f,
57941
57941
  borderBottomLeftRadius: $f,
57942
57942
  borderBottomRightRadius: $f,
57943
- boxShadow: iie
57944
- }, pF = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], lie = pF.length, NO = (n) => typeof n == "string" ? parseFloat(n) : n, MO = (n) => typeof n == "number" || Be.test(n);
57945
- function cie(n, e, t, r, s, i) {
57943
+ boxShadow: oie
57944
+ }, pF = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], cie = pF.length, NO = (n) => typeof n == "string" ? parseFloat(n) : n, MO = (n) => typeof n == "number" || Be.test(n);
57945
+ function uie(n, e, t, r, s, i) {
57946
57946
  s ? (n.opacity = _t(
57947
57947
  0,
57948
57948
  // TODO Reinstate this if only child
57949
57949
  t.opacity !== void 0 ? t.opacity : 1,
57950
- uie(r)
57951
- ), n.opacityExit = _t(e.opacity !== void 0 ? e.opacity : 1, 0, fie(r))) : i && (n.opacity = _t(e.opacity !== void 0 ? e.opacity : 1, t.opacity !== void 0 ? t.opacity : 1, r));
57952
- for (let o = 0; o < lie; o++) {
57950
+ fie(r)
57951
+ ), n.opacityExit = _t(e.opacity !== void 0 ? e.opacity : 1, 0, die(r))) : i && (n.opacity = _t(e.opacity !== void 0 ? e.opacity : 1, t.opacity !== void 0 ? t.opacity : 1, r));
57952
+ for (let o = 0; o < cie; o++) {
57953
57953
  const a = `border${pF[o]}Radius`;
57954
57954
  let l = PO(e, a), c = PO(t, a);
57955
57955
  if (l === void 0 && c === void 0)
@@ -57961,7 +57961,7 @@ function cie(n, e, t, r, s, i) {
57961
57961
  function PO(n, e) {
57962
57962
  return n[e] !== void 0 ? n[e] : n.borderRadius;
57963
57963
  }
57964
- const uie = mF(0, 0.5, Y_), fie = mF(0.5, 0.95, Tn);
57964
+ const fie = mF(0, 0.5, Y_), die = mF(0.5, 0.95, Tn);
57965
57965
  function mF(n, e, t) {
57966
57966
  return (r) => r < n ? 0 : r > e ? 1 : t(gh(n, e, r));
57967
57967
  }
@@ -57974,18 +57974,18 @@ function Hr(n, e) {
57974
57974
  function IO(n, e, t, r, s) {
57975
57975
  return n -= e, n = by(n, 1 / t, r), s !== void 0 && (n = by(n, 1 / s, r)), n;
57976
57976
  }
57977
- function die(n, e = 0, t = 1, r = 0.5, s, i = n, o = n) {
57977
+ function hie(n, e = 0, t = 1, r = 0.5, s, i = n, o = n) {
57978
57978
  if (ii.test(e) && (e = parseFloat(e), e = _t(o.min, o.max, e / 100) - o.min), typeof e != "number")
57979
57979
  return;
57980
57980
  let a = _t(i.min, i.max, r);
57981
57981
  n === i && (a -= e), n.min = IO(n.min, e, t, a, s), n.max = IO(n.max, e, t, a, s);
57982
57982
  }
57983
57983
  function LO(n, e, [t, r, s], i, o) {
57984
- die(n, e[t], e[r], e[s], e.scale, i, o);
57984
+ hie(n, e[t], e[r], e[s], e.scale, i, o);
57985
57985
  }
57986
- const hie = ["x", "scaleX", "originX"], pie = ["y", "scaleY", "originY"];
57986
+ const pie = ["x", "scaleX", "originX"], mie = ["y", "scaleY", "originY"];
57987
57987
  function BO(n, e, t, r) {
57988
- LO(n.x, e, hie, t ? t.x : void 0, r ? r.x : void 0), LO(n.y, e, pie, t ? t.y : void 0, r ? r.y : void 0);
57988
+ LO(n.x, e, pie, t ? t.x : void 0, r ? r.x : void 0), LO(n.y, e, mie, t ? t.y : void 0, r ? r.y : void 0);
57989
57989
  }
57990
57990
  function _O(n) {
57991
57991
  return n.translate === 0 && n.scale === 1;
@@ -57993,7 +57993,7 @@ function _O(n) {
57993
57993
  function gF(n) {
57994
57994
  return _O(n.x) && _O(n.y);
57995
57995
  }
57996
- function mie(n, e) {
57996
+ function gie(n, e) {
57997
57997
  return n.x.min === e.x.min && n.x.max === e.x.max && n.y.min === e.y.min && n.y.max === e.y.max;
57998
57998
  }
57999
57999
  function yF(n, e) {
@@ -58002,7 +58002,7 @@ function yF(n, e) {
58002
58002
  function FO(n) {
58003
58003
  return _r(n.x) / _r(n.y);
58004
58004
  }
58005
- class gie {
58005
+ class yie {
58006
58006
  constructor() {
58007
58007
  this.members = [];
58008
58008
  }
@@ -58066,8 +58066,8 @@ function jO(n, e, t) {
58066
58066
  const a = n.x.scale * e.x, l = n.y.scale * e.y;
58067
58067
  return (a !== 1 || l !== 1) && (r += `scale(${a}, ${l})`), r || "none";
58068
58068
  }
58069
- const yie = (n, e) => n.depth - e.depth;
58070
- class bie {
58069
+ const bie = (n, e) => n.depth - e.depth;
58070
+ class wie {
58071
58071
  constructor() {
58072
58072
  this.children = [], this.isDirty = !1;
58073
58073
  }
@@ -58078,28 +58078,28 @@ class bie {
58078
58078
  HE(this.children, e), this.isDirty = !0;
58079
58079
  }
58080
58080
  forEach(e) {
58081
- this.isDirty && this.children.sort(yie), this.isDirty = !1, this.children.forEach(e);
58081
+ this.isDirty && this.children.sort(bie), this.isDirty = !1, this.children.forEach(e);
58082
58082
  }
58083
58083
  }
58084
- function wie(n, e) {
58084
+ function Aie(n, e) {
58085
58085
  const t = aa.now(), r = ({ timestamp: s }) => {
58086
58086
  const i = s - t;
58087
58087
  i >= e && (co(r), n(i - e));
58088
58088
  };
58089
58089
  return mt.read(r, !0), () => co(r);
58090
58090
  }
58091
- function Aie(n) {
58091
+ function vie(n) {
58092
58092
  window.MotionDebug && window.MotionDebug.record(n);
58093
58093
  }
58094
- function vie(n) {
58094
+ function xie(n) {
58095
58095
  return n instanceof SVGElement && n.tagName !== "svg";
58096
58096
  }
58097
- function xie(n, e, t) {
58097
+ function Eie(n, e, t) {
58098
58098
  const r = In(n) ? n : yh(n);
58099
58099
  return r.start(UE("", r, e, t)), r.animation;
58100
58100
  }
58101
- const pw = ["", "X", "Y", "Z"], Eie = { visibility: "hidden" }, UO = 1e3;
58102
- let Cie = 0;
58101
+ const pw = ["", "X", "Y", "Z"], Cie = { visibility: "hidden" }, UO = 1e3;
58102
+ let kie = 0;
58103
58103
  const Da = {
58104
58104
  type: "projectionFrame",
58105
58105
  totalNodes: 0,
@@ -58119,14 +58119,14 @@ function bF(n) {
58119
58119
  function wF({ attachResizeListener: n, defaultParent: e, measureScroll: t, checkIsScrollRoot: r, resetTransform: s }) {
58120
58120
  return class {
58121
58121
  constructor(o = {}, a = e == null ? void 0 : e()) {
58122
- this.id = Cie++, 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 = () => {
58122
+ this.id = kie++, 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 = () => {
58123
58123
  this.isUpdating && (this.isUpdating = !1, this.clearAllSnapshots());
58124
58124
  }, this.updateProjection = () => {
58125
- this.projectionUpdateScheduled = !1, Da.totalNodes = Da.resolvedTargetDeltas = Da.recalculatedProjection = 0, this.nodes.forEach(Tie), this.nodes.forEach(Pie), this.nodes.forEach(Die), this.nodes.forEach(Rie), Aie(Da);
58125
+ this.projectionUpdateScheduled = !1, Da.totalNodes = Da.resolvedTargetDeltas = Da.recalculatedProjection = 0, this.nodes.forEach(Rie), this.nodes.forEach(Die), this.nodes.forEach(Iie), this.nodes.forEach(Oie), vie(Da);
58126
58126
  }, this.hasProjected = !1, this.isVisible = !0, this.animationProgress = 0, this.sharedNodes = /* @__PURE__ */ new Map(), this.latestValues = o, this.root = a ? a.root || a : this, this.path = a ? [...a.path, a] : [], this.parent = a, this.depth = a ? a.depth + 1 : 0;
58127
58127
  for (let l = 0; l < this.path.length; l++)
58128
58128
  this.path[l].shouldResetTransform = !0;
58129
- this.root === this && (this.nodes = new bie());
58129
+ this.root === this && (this.nodes = new wie());
58130
58130
  }
58131
58131
  addEventListener(o, a) {
58132
58132
  return this.eventHandlers.has(o) || this.eventHandlers.set(o, new zE()), this.eventHandlers.get(o).add(a);
@@ -58144,13 +58144,13 @@ function wF({ attachResizeListener: n, defaultParent: e, measureScroll: t, check
58144
58144
  mount(o, a = this.root.hasTreeAnimated) {
58145
58145
  if (this.instance)
58146
58146
  return;
58147
- this.isSVG = vie(o), this.instance = o;
58147
+ this.isSVG = xie(o), this.instance = o;
58148
58148
  const { layoutId: l, layout: c, visualElement: u } = this.options;
58149
58149
  if (u && !u.current && u.mount(o), this.root.nodes.add(this), this.parent && this.parent.children.add(this), a && (c || l) && (this.isLayoutDirty = !0), n) {
58150
58150
  let f;
58151
58151
  const d = () => this.root.updateBlockedByResize = !1;
58152
58152
  n(o, () => {
58153
- this.root.updateBlockedByResize = !0, f && f(), f = wie(d, 250), Mm.hasAnimatedSinceResize && (Mm.hasAnimatedSinceResize = !1, this.nodes.forEach(HO));
58153
+ this.root.updateBlockedByResize = !0, f && f(), f = Aie(d, 250), Mm.hasAnimatedSinceResize && (Mm.hasAnimatedSinceResize = !1, this.nodes.forEach(HO));
58154
58154
  });
58155
58155
  }
58156
58156
  l && this.root.registerSharedNode(l, this), this.options.animate !== !1 && u && (l || c) && this.addEventListener("didUpdate", ({ delta: f, hasLayoutChanged: d, hasRelativeTargetChanged: h, layout: p }) => {
@@ -58158,7 +58158,7 @@ function wF({ attachResizeListener: n, defaultParent: e, measureScroll: t, check
58158
58158
  this.target = void 0, this.relativeTarget = void 0;
58159
58159
  return;
58160
58160
  }
58161
- const m = this.options.transition || u.getDefaultTransition() || Fie, { onLayoutAnimationStart: y, onLayoutAnimationComplete: b } = u.getProps(), v = !this.targetLayout || !yF(this.targetLayout, p) || h, A = !d && h;
58161
+ const m = this.options.transition || u.getDefaultTransition() || jie, { onLayoutAnimationStart: y, onLayoutAnimationComplete: b } = u.getProps(), v = !this.targetLayout || !yF(this.targetLayout, p) || h, A = !d && h;
58162
58162
  if (this.options.layoutRoot || this.resumeFrom && this.resumeFrom.instance || A || d && (v || !this.currentAnimation)) {
58163
58163
  this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0), this.setAnimationOrigin(f, A);
58164
58164
  const w = {
@@ -58192,7 +58192,7 @@ function wF({ attachResizeListener: n, defaultParent: e, measureScroll: t, check
58192
58192
  }
58193
58193
  // Note: currently only running on root node
58194
58194
  startUpdate() {
58195
- this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(Iie), this.animationId++);
58195
+ this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(Lie), this.animationId++);
58196
58196
  }
58197
58197
  getTransformTemplate() {
58198
58198
  const { visualElement: o } = this.options;
@@ -58221,7 +58221,7 @@ function wF({ attachResizeListener: n, defaultParent: e, measureScroll: t, check
58221
58221
  this.unblockUpdate(), this.clearAllSnapshots(), this.nodes.forEach(VO);
58222
58222
  return;
58223
58223
  }
58224
- this.isUpdating || this.nodes.forEach(Nie), this.isUpdating = !1, this.nodes.forEach(Mie), this.nodes.forEach(kie), this.nodes.forEach(Sie), this.clearAllSnapshots();
58224
+ this.isUpdating || this.nodes.forEach(Mie), this.isUpdating = !1, this.nodes.forEach(Pie), this.nodes.forEach(Sie), this.nodes.forEach(Tie), this.clearAllSnapshots();
58225
58225
  const a = aa.now();
58226
58226
  vn.delta = ma(0, 1e3 / 60, a - vn.timestamp), vn.timestamp = a, vn.isProcessing = !0, sw.update.process(vn), sw.preRender.process(vn), sw.render.process(vn), vn.isProcessing = !1;
58227
58227
  }
@@ -58229,7 +58229,7 @@ function wF({ attachResizeListener: n, defaultParent: e, measureScroll: t, check
58229
58229
  this.updateScheduled || (this.updateScheduled = !0, bE.read(this.scheduleUpdate));
58230
58230
  }
58231
58231
  clearAllSnapshots() {
58232
- this.nodes.forEach(Oie), this.sharedNodes.forEach(Lie);
58232
+ this.nodes.forEach(Nie), this.sharedNodes.forEach(Bie);
58233
58233
  }
58234
58234
  scheduleUpdateProjection() {
58235
58235
  this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, mt.preRender(this.updateProjection, !1, !0));
@@ -58274,7 +58274,7 @@ function wF({ attachResizeListener: n, defaultParent: e, measureScroll: t, check
58274
58274
  measure(o = !0) {
58275
58275
  const a = this.measurePageBox();
58276
58276
  let l = this.removeElementScroll(a);
58277
- return o && (l = this.removeTransform(l)), jie(l), {
58277
+ return o && (l = this.removeTransform(l)), Uie(l), {
58278
58278
  animationId: this.root.animationId,
58279
58279
  measuredBox: a,
58280
58280
  layoutBox: l,
@@ -58360,7 +58360,7 @@ function wF({ attachResizeListener: n, defaultParent: e, measureScroll: t, check
58360
58360
  h && h.layout && this.animationProgress !== 1 ? (this.relativeParent = h, this.forceRelativeParentToResolveTarget(), this.relativeTarget = Gt(), this.relativeTargetOrigin = Gt(), Ed(this.relativeTargetOrigin, this.layout.layoutBox, h.layout.layoutBox), Hr(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
58361
58361
  }
58362
58362
  if (!(!this.relativeTarget && !this.targetDelta)) {
58363
- if (this.target || (this.target = Gt(), this.targetWithTransforms = Gt()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Use(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : Hr(this.target, this.layout.layoutBox), uF(this.target, this.targetDelta)) : Hr(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget) {
58363
+ if (this.target || (this.target = Gt(), this.targetWithTransforms = Gt()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Vse(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : Hr(this.target, this.layout.layoutBox), uF(this.target, this.targetDelta)) : Hr(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget) {
58364
58364
  this.attemptToResolveRelativeTarget = !1;
58365
58365
  const h = this.getClosestProjectingParent();
58366
58366
  h && !!h.resumingFrom == !!this.resumingFrom && !h.options.layoutScroll && h.target && this.animationProgress !== 1 ? (this.relativeParent = h, this.forceRelativeParentToResolveTarget(), this.relativeTarget = Gt(), this.relativeTargetOrigin = Gt(), Ed(this.relativeTargetOrigin, this.target, h.target), Hr(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
@@ -58387,7 +58387,7 @@ function wF({ attachResizeListener: n, defaultParent: e, measureScroll: t, check
58387
58387
  return;
58388
58388
  Hr(this.layoutCorrected, this.layout.layoutBox);
58389
58389
  const d = this.treeScale.x, h = this.treeScale.y;
58390
- Jse(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 = Gt());
58390
+ qse(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 = Gt());
58391
58391
  const { target: p } = a;
58392
58392
  if (!p) {
58393
58393
  this.projectionTransform && (this.projectionDelta = Lc(), this.projectionTransform = "none", this.scheduleRender());
@@ -58413,17 +58413,17 @@ function wF({ attachResizeListener: n, defaultParent: e, measureScroll: t, check
58413
58413
  setAnimationOrigin(o, a = !1) {
58414
58414
  const l = this.snapshot, c = l ? l.latestValues : {}, u = { ...this.latestValues }, f = Lc();
58415
58415
  (!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !a;
58416
- const d = Gt(), h = l ? l.source : void 0, p = this.layout ? this.layout.source : void 0, m = h !== p, y = this.getStack(), b = !y || y.members.length <= 1, v = !!(m && !b && this.options.crossfade === !0 && !this.path.some(_ie));
58416
+ const d = Gt(), h = l ? l.source : void 0, p = this.layout ? this.layout.source : void 0, m = h !== p, y = this.getStack(), b = !y || y.members.length <= 1, v = !!(m && !b && this.options.crossfade === !0 && !this.path.some(Fie));
58417
58417
  this.animationProgress = 0;
58418
58418
  let A;
58419
58419
  this.mixTargetDelta = (w) => {
58420
58420
  const x = w / 1e3;
58421
- zO(f.x, o.x, x), zO(f.y, o.y, x), this.setTargetDelta(f), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Ed(d, this.layout.layoutBox, this.relativeParent.layout.layoutBox), Bie(this.relativeTarget, this.relativeTargetOrigin, d, x), A && mie(this.relativeTarget, A) && (this.isProjectionDirty = !1), A || (A = Gt()), Hr(A, this.relativeTarget)), m && (this.animationValues = u, cie(u, c, this.latestValues, x, v, b)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = x;
58421
+ zO(f.x, o.x, x), zO(f.y, o.y, x), this.setTargetDelta(f), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Ed(d, this.layout.layoutBox, this.relativeParent.layout.layoutBox), _ie(this.relativeTarget, this.relativeTargetOrigin, d, x), A && gie(this.relativeTarget, A) && (this.isProjectionDirty = !1), A || (A = Gt()), Hr(A, this.relativeTarget)), m && (this.animationValues = u, uie(u, c, this.latestValues, x, v, b)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = x;
58422
58422
  }, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
58423
58423
  }
58424
58424
  startAnimation(o) {
58425
58425
  this.notifyListeners("animationStart"), this.currentAnimation && this.currentAnimation.stop(), this.resumingFrom && this.resumingFrom.currentAnimation && this.resumingFrom.currentAnimation.stop(), this.pendingAnimation && (co(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = mt.update(() => {
58426
- Mm.hasAnimatedSinceResize = !0, this.currentAnimation = xie(0, UO, {
58426
+ Mm.hasAnimatedSinceResize = !0, this.currentAnimation = Eie(0, UO, {
58427
58427
  ...o,
58428
58428
  onUpdate: (a) => {
58429
58429
  this.mixTargetDelta(a), o.onUpdate && o.onUpdate(a);
@@ -58457,7 +58457,7 @@ function wF({ attachResizeListener: n, defaultParent: e, measureScroll: t, check
58457
58457
  }
58458
58458
  }
58459
58459
  registerSharedNode(o, a) {
58460
- this.sharedNodes.has(o) || this.sharedNodes.set(o, new gie()), this.sharedNodes.get(o).add(a);
58460
+ this.sharedNodes.has(o) || this.sharedNodes.set(o, new yie()), this.sharedNodes.get(o).add(a);
58461
58461
  const c = a.options.initialPromotionConfig;
58462
58462
  a.promote({
58463
58463
  transition: c ? c.transition : void 0,
@@ -58513,7 +58513,7 @@ function wF({ attachResizeListener: n, defaultParent: e, measureScroll: t, check
58513
58513
  if (!this.instance || this.isSVG)
58514
58514
  return;
58515
58515
  if (!this.isVisible)
58516
- return Eie;
58516
+ return Cie;
58517
58517
  const c = {
58518
58518
  visibility: ""
58519
58519
  }, u = this.getTransformTemplate();
@@ -58553,10 +58553,10 @@ function wF({ attachResizeListener: n, defaultParent: e, measureScroll: t, check
58553
58553
  }
58554
58554
  };
58555
58555
  }
58556
- function kie(n) {
58556
+ function Sie(n) {
58557
58557
  n.updateLayout();
58558
58558
  }
58559
- function Sie(n) {
58559
+ function Tie(n) {
58560
58560
  var e;
58561
58561
  const t = ((e = n.resumeFrom) === null || e === void 0 ? void 0 : e.snapshot) || n.snapshot;
58562
58562
  if (n.isLead() && n.layout && t && n.hasListeners("didUpdate")) {
@@ -58600,38 +58600,38 @@ function Sie(n) {
58600
58600
  }
58601
58601
  n.options.transition = void 0;
58602
58602
  }
58603
- function Tie(n) {
58603
+ function Rie(n) {
58604
58604
  Da.totalNodes++, n.parent && (n.isProjecting() || (n.isProjectionDirty = n.parent.isProjectionDirty), n.isSharedProjectionDirty || (n.isSharedProjectionDirty = !!(n.isProjectionDirty || n.parent.isProjectionDirty || n.parent.isSharedProjectionDirty)), n.isTransformDirty || (n.isTransformDirty = n.parent.isTransformDirty));
58605
58605
  }
58606
- function Rie(n) {
58606
+ function Oie(n) {
58607
58607
  n.isProjectionDirty = n.isSharedProjectionDirty = n.isTransformDirty = !1;
58608
58608
  }
58609
- function Oie(n) {
58609
+ function Nie(n) {
58610
58610
  n.clearSnapshot();
58611
58611
  }
58612
58612
  function VO(n) {
58613
58613
  n.clearMeasurements();
58614
58614
  }
58615
- function Nie(n) {
58615
+ function Mie(n) {
58616
58616
  n.isLayoutDirty = !1;
58617
58617
  }
58618
- function Mie(n) {
58618
+ function Pie(n) {
58619
58619
  const { visualElement: e } = n.options;
58620
58620
  e && e.getProps().onBeforeLayoutMeasure && e.notify("BeforeLayoutMeasure"), n.resetTransform();
58621
58621
  }
58622
58622
  function HO(n) {
58623
58623
  n.finishAnimation(), n.targetDelta = n.relativeTarget = n.target = void 0, n.isProjectionDirty = !0;
58624
58624
  }
58625
- function Pie(n) {
58625
+ function Die(n) {
58626
58626
  n.resolveTargetDelta();
58627
58627
  }
58628
- function Die(n) {
58628
+ function Iie(n) {
58629
58629
  n.calcProjection();
58630
58630
  }
58631
- function Iie(n) {
58631
+ function Lie(n) {
58632
58632
  n.resetSkewAndRotation();
58633
58633
  }
58634
- function Lie(n) {
58634
+ function Bie(n) {
58635
58635
  n.removeLeadSnapshot();
58636
58636
  }
58637
58637
  function zO(n, e, t) {
@@ -58640,26 +58640,26 @@ function zO(n, e, t) {
58640
58640
  function $O(n, e, t, r) {
58641
58641
  n.min = _t(e.min, t.min, r), n.max = _t(e.max, t.max, r);
58642
58642
  }
58643
- function Bie(n, e, t, r) {
58643
+ function _ie(n, e, t, r) {
58644
58644
  $O(n.x, e.x, t.x, r), $O(n.y, e.y, t.y, r);
58645
58645
  }
58646
- function _ie(n) {
58646
+ function Fie(n) {
58647
58647
  return n.animationValues && n.animationValues.opacityExit !== void 0;
58648
58648
  }
58649
- const Fie = {
58649
+ const jie = {
58650
58650
  duration: 0.45,
58651
58651
  ease: [0.4, 0, 0.1, 1]
58652
58652
  }, GO = (n) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(n), WO = GO("applewebkit/") && !GO("chrome/") ? Math.round : Tn;
58653
58653
  function KO(n) {
58654
58654
  n.min = WO(n.min), n.max = WO(n.max);
58655
58655
  }
58656
- function jie(n) {
58656
+ function Uie(n) {
58657
58657
  KO(n.x), KO(n.y);
58658
58658
  }
58659
58659
  function AF(n, e, t) {
58660
58660
  return n === "position" || n === "preserve-aspect" && !Nv(FO(e), FO(t), 0.2);
58661
58661
  }
58662
- const Uie = wF({
58662
+ const Vie = wF({
58663
58663
  attachResizeListener: (n, e) => zi(n, "resize", e),
58664
58664
  measureScroll: () => ({
58665
58665
  x: document.documentElement.scrollLeft || document.body.scrollLeft,
@@ -58675,7 +58675,7 @@ const Uie = wF({
58675
58675
  }),
58676
58676
  defaultParent: () => {
58677
58677
  if (!gw.current) {
58678
- const n = new Uie({});
58678
+ const n = new Vie({});
58679
58679
  n.mount(window), n.setOptions({ layoutScroll: !0 }), gw.current = n;
58680
58680
  }
58681
58681
  return gw.current;
@@ -58684,17 +58684,17 @@ const Uie = wF({
58684
58684
  n.style.transform = e !== void 0 ? e : "none";
58685
58685
  },
58686
58686
  checkIsScrollRoot: (n) => window.getComputedStyle(n).position === "fixed"
58687
- }), Vie = {
58687
+ }), Hie = {
58688
58688
  pan: {
58689
- Feature: rie
58689
+ Feature: sie
58690
58690
  },
58691
58691
  drag: {
58692
- Feature: nie,
58692
+ Feature: rie,
58693
58693
  ProjectionNode: vF,
58694
58694
  MeasureLayout: hF
58695
58695
  }
58696
58696
  }, Iv = { current: null }, xF = { current: !1 };
58697
- function Hie() {
58697
+ function zie() {
58698
58698
  if (xF.current = !0, !!mE)
58699
58699
  if (window.matchMedia) {
58700
58700
  const n = window.matchMedia("(prefers-reduced-motion)"), e = () => Iv.current = n.matches;
@@ -58702,7 +58702,7 @@ function Hie() {
58702
58702
  } else
58703
58703
  Iv.current = !1;
58704
58704
  }
58705
- function zie(n, e, t) {
58705
+ function $ie(n, e, t) {
58706
58706
  const { willChange: r } = e;
58707
58707
  for (const s in e) {
58708
58708
  const i = e[s], o = t[s];
@@ -58723,7 +58723,7 @@ function zie(n, e, t) {
58723
58723
  e[s] === void 0 && n.removeValue(s);
58724
58724
  return e;
58725
58725
  }
58726
- const QO = /* @__PURE__ */ new WeakMap(), $ie = [...P_, Pn, ga], Gie = (n) => $ie.find(M_(n)), JO = [
58726
+ const QO = /* @__PURE__ */ new WeakMap(), Gie = [...P_, Pn, ga], Wie = (n) => Gie.find(M_(n)), JO = [
58727
58727
  "AnimationStart",
58728
58728
  "AnimationComplete",
58729
58729
  "Update",
@@ -58731,8 +58731,8 @@ const QO = /* @__PURE__ */ new WeakMap(), $ie = [...P_, Pn, ga], Gie = (n) => $i
58731
58731
  "LayoutMeasure",
58732
58732
  "LayoutAnimationStart",
58733
58733
  "LayoutAnimationComplete"
58734
- ], Wie = AE.length;
58735
- class Kie {
58734
+ ], Kie = AE.length;
58735
+ class Qie {
58736
58736
  /**
58737
58737
  * This method takes React props and returns found MotionValues. For example, HTML
58738
58738
  * MotionValues will be found within the style prop, whereas for Three.js within attribute arrays.
@@ -58756,7 +58756,7 @@ class Kie {
58756
58756
  }
58757
58757
  }
58758
58758
  mount(e) {
58759
- this.current = e, QO.set(e, this), this.projection && !this.projection.instance && this.projection.mount(e), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((t, r) => this.bindToMotionValue(r, t)), xF.current || Hie(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : Iv.current, process.env.NODE_ENV !== "production" && $E(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);
58759
+ this.current = e, QO.set(e, this), this.projection && !this.projection.instance && this.projection.mount(e), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((t, r) => this.bindToMotionValue(r, t)), xF.current || zie(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : Iv.current, process.env.NODE_ENV !== "production" && $E(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);
58760
58760
  }
58761
58761
  unmount() {
58762
58762
  QO.delete(this.current), this.projection && this.projection.unmount(), co(this.notifyUpdate), co(this.render), this.valueSubscriptions.forEach((e) => e()), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent && this.parent.children.delete(this);
@@ -58821,7 +58821,7 @@ class Kie {
58821
58821
  const i = "on" + s, o = e[i];
58822
58822
  o && (this.propEventSubscriptions[s] = this.on(s, o));
58823
58823
  }
58824
- this.prevMotionValues = zie(this, this.scrapeMotionValuesFromProps(e, this.prevProps, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
58824
+ this.prevMotionValues = $ie(this, this.scrapeMotionValuesFromProps(e, this.prevProps, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
58825
58825
  }
58826
58826
  getProps() {
58827
58827
  return this.props;
@@ -58852,7 +58852,7 @@ class Kie {
58852
58852
  return this.props.initial !== void 0 && (r.initial = this.props.initial), r;
58853
58853
  }
58854
58854
  const t = {};
58855
- for (let r = 0; r < Wie; r++) {
58855
+ for (let r = 0; r < Kie; r++) {
58856
58856
  const s = AE[r], i = this.props[s];
58857
58857
  (ph(i) || i === !1) && (t[s] = i);
58858
58858
  }
@@ -58901,7 +58901,7 @@ class Kie {
58901
58901
  readValue(e, t) {
58902
58902
  var r;
58903
58903
  let s = this.latestValues[e] !== void 0 || !this.current ? this.latestValues[e] : (r = this.getBaseTargetFromProps(this.props, e)) !== null && r !== void 0 ? r : this.readValueFromInstance(this.current, e, this.options);
58904
- return s != null && (typeof s == "string" && (O_(s) || R_(s)) ? s = parseFloat(s) : !Gie(s) && ga.test(t) && (s = U_(e, t)), this.setBaseTarget(e, In(s) ? s.get() : s)), In(s) ? s.get() : s;
58904
+ return s != null && (typeof s == "string" && (O_(s) || R_(s)) ? s = parseFloat(s) : !Wie(s) && ga.test(t) && (s = U_(e, t)), this.setBaseTarget(e, In(s) ? s.get() : s)), In(s) ? s.get() : s;
58905
58905
  }
58906
58906
  /**
58907
58907
  * Set the base target to later animate back to. This is currently
@@ -58934,7 +58934,7 @@ class Kie {
58934
58934
  this.events[e] && this.events[e].notify(...t);
58935
58935
  }
58936
58936
  }
58937
- class EF extends Kie {
58937
+ class EF extends Qie {
58938
58938
  constructor() {
58939
58939
  super(...arguments), this.KeyframeResolver = V_;
58940
58940
  }
@@ -58948,10 +58948,10 @@ class EF extends Kie {
58948
58948
  delete t[e], delete r[e];
58949
58949
  }
58950
58950
  }
58951
- function Qie(n) {
58951
+ function Jie(n) {
58952
58952
  return window.getComputedStyle(n);
58953
58953
  }
58954
- class Jie extends EF {
58954
+ class qie extends EF {
58955
58955
  constructor() {
58956
58956
  super(...arguments), this.type = "html";
58957
58957
  }
@@ -58960,7 +58960,7 @@ class Jie extends EF {
58960
58960
  const r = IE(t);
58961
58961
  return r && r.default || 0;
58962
58962
  } else {
58963
- const r = Qie(e), s = (f_(t) ? r.getPropertyValue(t) : r[t]) || 0;
58963
+ const r = Jie(e), s = (f_(t) ? r.getPropertyValue(t) : r[t]) || 0;
58964
58964
  return typeof s == "string" ? s.trim() : s;
58965
58965
  }
58966
58966
  }
@@ -58984,7 +58984,7 @@ class Jie extends EF {
58984
58984
  g_(e, t, r, s);
58985
58985
  }
58986
58986
  }
58987
- class qie extends EF {
58987
+ class Yie extends EF {
58988
58988
  constructor() {
58989
58989
  super(...arguments), this.type = "svg", this.isSVGTag = !1;
58990
58990
  }
@@ -59014,33 +59014,33 @@ class qie extends EF {
59014
59014
  this.isSVGTag = RE(e.tagName), super.mount(e);
59015
59015
  }
59016
59016
  }
59017
- const Yie = (n, e) => xE(n) ? new qie(e, { enableHardwareAcceleration: !1 }) : new Jie(e, {
59017
+ const Xie = (n, e) => xE(n) ? new Yie(e, { enableHardwareAcceleration: !1 }) : new qie(e, {
59018
59018
  allowProjection: n !== XO,
59019
59019
  enableHardwareAcceleration: !0
59020
- }), Xie = {
59020
+ }), Zie = {
59021
59021
  layout: {
59022
59022
  ProjectionNode: vF,
59023
59023
  MeasureLayout: hF
59024
59024
  }
59025
- }, Zie = {
59026
- ...Bse,
59027
- ...Wne,
59028
- ...Vie,
59029
- ...Xie
59030
- }, eoe = /* @__PURE__ */ nne((n, e) => Dne(n, e, Zie, Yie));
59025
+ }, eoe = {
59026
+ ..._se,
59027
+ ...Kne,
59028
+ ...Hie,
59029
+ ...Zie
59030
+ }, toe = /* @__PURE__ */ rne((n, e) => Ine(n, e, eoe, Xie));
59031
59031
  function CF() {
59032
59032
  const n = ht(!1);
59033
59033
  return gE(() => (n.current = !0, () => {
59034
59034
  n.current = !1;
59035
59035
  }), []), n;
59036
59036
  }
59037
- function toe() {
59037
+ function noe() {
59038
59038
  const n = CF(), [e, t] = et(0), r = Ht(() => {
59039
59039
  n.current && t(e + 1);
59040
59040
  }, [e]);
59041
59041
  return [Ht(() => mt.postRender(r), [r]), e];
59042
59042
  }
59043
- class noe extends U.Component {
59043
+ class roe extends U.Component {
59044
59044
  getSnapshotBeforeUpdate(e) {
59045
59045
  const t = this.props.childRef.current;
59046
59046
  if (t && e.isPresent && !this.props.isPresent) {
@@ -59058,7 +59058,7 @@ class noe extends U.Component {
59058
59058
  return this.props.children;
59059
59059
  }
59060
59060
  }
59061
- function roe({ children: n, isPresent: e }) {
59061
+ function soe({ children: n, isPresent: e }) {
59062
59062
  const t = Bv(), r = ht(null), s = ht({
59063
59063
  width: 0,
59064
59064
  height: 0,
@@ -59082,10 +59082,10 @@ function roe({ children: n, isPresent: e }) {
59082
59082
  `), () => {
59083
59083
  document.head.removeChild(u);
59084
59084
  };
59085
- }, [e]), k.jsx(noe, { isPresent: e, childRef: r, sizeRef: s, children: U.cloneElement(n, { ref: r }) });
59085
+ }, [e]), k.jsx(roe, { isPresent: e, childRef: r, sizeRef: s, children: U.cloneElement(n, { ref: r }) });
59086
59086
  }
59087
59087
  const yw = ({ children: n, initial: e, isPresent: t, onExitComplete: r, custom: s, presenceAffectsLayout: i, mode: o }) => {
59088
- const a = A_(soe), l = Bv(), c = ts(
59088
+ const a = A_(ioe), l = Bv(), c = ts(
59089
59089
  () => ({
59090
59090
  id: l,
59091
59091
  initial: e,
@@ -59111,35 +59111,35 @@ const yw = ({ children: n, initial: e, isPresent: t, onExitComplete: r, custom:
59111
59111
  a.forEach((u, f) => a.set(f, !1));
59112
59112
  }, [t]), U.useEffect(() => {
59113
59113
  !t && !a.size && r && r();
59114
- }, [t]), o === "popLayout" && (n = k.jsx(roe, { isPresent: t, children: n })), k.jsx(k0.Provider, { value: c, children: n });
59114
+ }, [t]), o === "popLayout" && (n = k.jsx(soe, { isPresent: t, children: n })), k.jsx(k0.Provider, { value: c, children: n });
59115
59115
  };
59116
- function soe() {
59116
+ function ioe() {
59117
59117
  return /* @__PURE__ */ new Map();
59118
59118
  }
59119
- function ioe(n) {
59119
+ function ooe(n) {
59120
59120
  return it(() => () => n(), []);
59121
59121
  }
59122
59122
  const Ia = (n) => n.key || "";
59123
- function ooe(n, e) {
59123
+ function aoe(n, e) {
59124
59124
  n.forEach((t) => {
59125
59125
  const r = Ia(t);
59126
59126
  e.set(r, t);
59127
59127
  });
59128
59128
  }
59129
- function aoe(n) {
59129
+ function loe(n) {
59130
59130
  const e = [];
59131
59131
  return BF.forEach(n, (t) => {
59132
59132
  _F(t) && e.push(t);
59133
59133
  }), e;
59134
59134
  }
59135
- const loe = ({ children: n, custom: e, initial: t = !0, onExitComplete: r, exitBeforeEnter: s, presenceAffectsLayout: i = !0, mode: o = "sync" }) => {
59135
+ const coe = ({ children: n, custom: e, initial: t = !0, onExitComplete: r, exitBeforeEnter: s, presenceAffectsLayout: i = !0, mode: o = "sync" }) => {
59136
59136
  lo(!s, "Replace exitBeforeEnter with mode='wait'");
59137
- const a = Zt(vE).forceRender || toe()[0], l = CF(), c = aoe(n);
59137
+ const a = Zt(vE).forceRender || noe()[0], l = CF(), c = loe(n);
59138
59138
  let u = c;
59139
59139
  const f = ht(/* @__PURE__ */ new Map()).current, d = ht(u), h = ht(/* @__PURE__ */ new Map()).current, p = ht(!0);
59140
59140
  if (gE(() => {
59141
- p.current = !1, ooe(c, h), d.current = u;
59142
- }), ioe(() => {
59141
+ p.current = !1, aoe(c, h), d.current = u;
59142
+ }), ooe(() => {
59143
59143
  p.current = !0, h.clear(), f.clear();
59144
59144
  }), p.current)
59145
59145
  return k.jsx(k.Fragment, { children: u.map((v) => k.jsx(yw, { isPresent: !0, initial: t ? void 0 : !1, presenceAffectsLayout: i, mode: o, children: v }, Ia(v))) });
@@ -59181,7 +59181,7 @@ const loe = ({ children: n, custom: e, initial: t = !0, onExitComplete: r, exitB
59181
59181
  const A = v.key;
59182
59182
  return f.has(A) ? v : k.jsx(yw, { isPresent: !0, presenceAffectsLayout: i, mode: o, children: v }, Ia(v));
59183
59183
  }), process.env.NODE_ENV !== "production" && o === "wait" && u.length > 1 && console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`), k.jsx(k.Fragment, { children: f.size ? u : u.map((v) => Lv(v)) });
59184
- }, Coe = wr(
59184
+ }, koe = wr(
59185
59185
  ({
59186
59186
  isPreviewMode: n = !1,
59187
59187
  initialContent: e,
@@ -59191,7 +59191,7 @@ const loe = ({ children: n, custom: e, initial: t = !0, onExitComplete: r, exitB
59191
59191
  onAutoSave: i,
59192
59192
  renderToolRightSection: o,
59193
59193
  renderToolLeftSection: a,
59194
- ensProviderUrl: l,
59194
+ walletAddress: l,
59195
59195
  onChange: c,
59196
59196
  handleImageUploadToIpfs: u,
59197
59197
  onCollaboratorChange: f
@@ -59202,12 +59202,12 @@ const loe = ({ children: n, custom: e, initial: t = !0, onExitComplete: r, exitB
59202
59202
  ref: b,
59203
59203
  loading: v,
59204
59204
  ydoc: A
59205
- } = _te({
59205
+ } = Fte({
59206
59206
  isPreviewMode: n,
59207
59207
  initialContent: e,
59208
59208
  enableCollaboration: t,
59209
59209
  collaborationId: r,
59210
- ensProviderUrl: l,
59210
+ walletAddress: l,
59211
59211
  username: s,
59212
59212
  onAutoSave: i,
59213
59213
  onChange: c,
@@ -59265,13 +59265,7 @@ const loe = ({ children: n, custom: e, initial: t = !0, onExitComplete: r, exitB
59265
59265
  children: [
59266
59266
  !n && /* @__PURE__ */ k.jsxs("div", { children: [
59267
59267
  /* @__PURE__ */ k.jsx(Gz, { editor: y }),
59268
- /* @__PURE__ */ k.jsx(
59269
- Xz,
59270
- {
59271
- editor: y,
59272
- appendTo: b
59273
- }
59274
- )
59268
+ /* @__PURE__ */ k.jsx(Xz, { editor: y, appendTo: b })
59275
59269
  ] }),
59276
59270
  /* @__PURE__ */ k.jsx(Zz, { isPreviewMode: n, children: /* @__PURE__ */ k.jsx(O8, { editor: y }) })
59277
59271
  ]
@@ -59279,8 +59273,8 @@ const loe = ({ children: n, custom: e, initial: t = !0, onExitComplete: r, exitB
59279
59273
  ) })
59280
59274
  }
59281
59275
  ) }),
59282
- !n && /* @__PURE__ */ k.jsx(loe, { children: !h && /* @__PURE__ */ k.jsx(
59283
- eoe.div,
59276
+ !n && /* @__PURE__ */ k.jsx(coe, { children: !h && /* @__PURE__ */ k.jsx(
59277
+ toe.div,
59284
59278
  {
59285
59279
  initial: { y: 50, opacity: 0 },
59286
59280
  animate: { y: 0, opacity: 1 },
@@ -59294,7 +59288,7 @@ const loe = ({ children: n, custom: e, initial: t = !0, onExitComplete: r, exitB
59294
59288
  // }
59295
59289
  ),
59296
59290
  children: /* @__PURE__ */ k.jsx(
59297
- jte,
59291
+ Ute,
59298
59292
  {
59299
59293
  uploadToIpfs: u,
59300
59294
  editor: y
@@ -59308,5 +59302,5 @@ const loe = ({ children: n, custom: e, initial: t = !0, onExitComplete: r, exitB
59308
59302
  }
59309
59303
  );
59310
59304
  export {
59311
- Coe as DdocEditor
59305
+ koe as DdocEditor
59312
59306
  };