@maycolem/stories 22.0.0 → 24.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -1,20 +1,20 @@
1
1
  import { jsx as P, jsxs as q, Fragment as Xn } from "react/jsx-runtime";
2
- import * as Vn from "react";
3
- import E, { useState as Pt, useRef as Z, useCallback as ve, createContext as Wt, useMemo as qe, useEffect as k, Fragment as Wo, useContext as st, useLayoutEffect as Ia, forwardRef as Aa, createElement as Ma } from "react";
2
+ import * as En from "react";
3
+ import V, { useState as Pt, useRef as Z, useCallback as ve, createContext as Ht, useMemo as qe, useEffect as k, Fragment as Ho, useContext as st, useLayoutEffect as Aa, forwardRef as Ma, createElement as Ia } from "react";
4
4
  import Ra from "react-dom";
5
- const La = "_ScrollMenu_hnfum_9", Oa = "_scrollContainerClassName_hnfum_16", Ba = "_itemClassName_hnfum_28", sn = {
5
+ const La = "_ScrollMenu_fzeen_9", Oa = "_scrollContainerClassName_fzeen_16", Da = "_itemClassName_fzeen_29", sn = {
6
6
  ScrollMenu: La,
7
7
  scrollContainerClassName: Oa,
8
- itemClassName: Ba
9
- }, Da = "_ProfileStory_bmzly_1", Na = "_ProfileStoryWrap_bmzly_12", Fa = "_ProfileStory__wrapImage_bmzly_26", ja = "_ProfileStory__image_bmzly_35", ka = "_ProfileStory__title_bmzly_50", $a = "_hasSeenAllStories_bmzly_59", zt = {
10
- ProfileStory: Da,
8
+ itemClassName: Da
9
+ }, Ba = "_ProfileStory_bmzly_1", Na = "_ProfileStoryWrap_bmzly_12", Fa = "_ProfileStory__wrapImage_bmzly_26", ja = "_ProfileStory__image_bmzly_35", ka = "_ProfileStory__title_bmzly_50", $a = "_hasSeenAllStories_bmzly_59", zt = {
10
+ ProfileStory: Ba,
11
11
  ProfileStoryWrap: Na,
12
12
  ProfileStory__wrapImage: Fa,
13
13
  ProfileStory__image: ja,
14
14
  ProfileStory__title: ka,
15
15
  hasSeenAllStories: $a
16
16
  };
17
- function Ho(t) {
17
+ function Wo(t) {
18
18
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
19
19
  }
20
20
  var un = { exports: {} };
@@ -56,9 +56,9 @@ function Ua() {
56
56
  })();
57
57
  }(un)), un.exports;
58
58
  }
59
- var Wa = Ua();
60
- const Ut = /* @__PURE__ */ Ho(Wa);
61
- function Ha() {
59
+ var Ha = Ua();
60
+ const Ut = /* @__PURE__ */ Wo(Ha);
61
+ function Wa() {
62
62
  const [t, e] = Pt({ width: 0, height: 0 }), n = Z();
63
63
  return [ve((o) => {
64
64
  n.current && n.current.disconnect(), o && (n.current = new ResizeObserver((a) => {
@@ -91,7 +91,7 @@ function Ga() {
91
91
  }, cn;
92
92
  }
93
93
  var Ka = Ga();
94
- const Ya = /* @__PURE__ */ Ho(Ka), zo = ({
94
+ const Ya = /* @__PURE__ */ Wo(Ka), zo = ({
95
95
  image: t,
96
96
  title: e,
97
97
  color: n,
@@ -100,7 +100,7 @@ const Ya = /* @__PURE__ */ Ho(Ka), zo = ({
100
100
  width: a,
101
101
  hasSeenAllStories: i
102
102
  }) => {
103
- const [s, { width: u, height: l }] = Ha();
103
+ const [s, { width: u, height: l }] = Wa();
104
104
  return /* @__PURE__ */ P("div", { ref: s, children: /* @__PURE__ */ q(
105
105
  "div",
106
106
  {
@@ -208,29 +208,29 @@ const xr = (t) => typeof t == "object" && t != null && t.nodeType === 1, Tr = (t
208
208
  }
209
209
  v != null && v === document.body && fn(v) && !fn(document.documentElement) || v != null && fn(v, c) && p.push(v);
210
210
  }
211
- const m = (r = (n = window.visualViewport) == null ? void 0 : n.width) != null ? r : innerWidth, y = (a = (o = window.visualViewport) == null ? void 0 : o.height) != null ? a : innerHeight, { scrollX: h, scrollY: S } = window, { height: g, width: w, top: x, right: T, bottom: R, left: B } = t.getBoundingClientRect(), { top: V, right: F, bottom: J, left: $ } = ((Q) => {
212
- const M = window.getComputedStyle(Q);
213
- return { top: parseFloat(M.scrollMarginTop) || 0, right: parseFloat(M.scrollMarginRight) || 0, bottom: parseFloat(M.scrollMarginBottom) || 0, left: parseFloat(M.scrollMarginLeft) || 0 };
211
+ const h = (r = (n = window.visualViewport) == null ? void 0 : n.width) != null ? r : innerWidth, y = (a = (o = window.visualViewport) == null ? void 0 : o.height) != null ? a : innerHeight, { scrollX: m, scrollY: S } = window, { height: g, width: w, top: x, right: T, bottom: R, left: D } = t.getBoundingClientRect(), { top: E, right: F, bottom: J, left: $ } = ((Q) => {
212
+ const I = window.getComputedStyle(Q);
213
+ return { top: parseFloat(I.scrollMarginTop) || 0, right: parseFloat(I.scrollMarginRight) || 0, bottom: parseFloat(I.scrollMarginBottom) || 0, left: parseFloat(I.scrollMarginLeft) || 0 };
214
214
  })(t);
215
- let j = s === "start" || s === "nearest" ? x - V : s === "end" ? R + J : x + g / 2 - V + J, I = u === "center" ? B + w / 2 - $ + F : u === "end" ? T + F : B - $;
215
+ let j = s === "start" || s === "nearest" ? x - E : s === "end" ? R + J : x + g / 2 - E + J, A = u === "center" ? D + w / 2 - $ + F : u === "end" ? T + F : D - $;
216
216
  const G = [];
217
217
  for (let Q = 0; Q < p.length; Q++) {
218
- const M = p[Q], { height: it, width: at, top: ut, right: U, bottom: X, left: D } = M.getBoundingClientRect();
219
- if (i === "if-needed" && x >= 0 && B >= 0 && R <= y && T <= m && x >= ut && R <= X && B >= D && T <= U) return G;
220
- const _ = getComputedStyle(M), C = parseInt(_.borderLeftWidth, 10), O = parseInt(_.borderTopWidth, 10), L = parseInt(_.borderRightWidth, 10), N = parseInt(_.borderBottomWidth, 10);
221
- let W = 0, rt = 0;
222
- const ot = "offsetWidth" in M ? M.offsetWidth - M.clientWidth - C - L : 0, et = "offsetHeight" in M ? M.offsetHeight - M.clientHeight - O - N : 0, Ct = "offsetWidth" in M ? M.offsetWidth === 0 ? 0 : at / M.offsetWidth : 0, te = "offsetHeight" in M ? M.offsetHeight === 0 ? 0 : it / M.offsetHeight : 0;
223
- if (d === M) W = s === "start" ? j : s === "end" ? j - y : s === "nearest" ? Ce(S, S + y, y, O, N, S + j, S + j + g, g) : j - y / 2, rt = u === "start" ? I : u === "center" ? I - m / 2 : u === "end" ? I - m : Ce(h, h + m, m, C, L, h + I, h + I + w, w), W = Math.max(0, W + S), rt = Math.max(0, rt + h);
218
+ const I = p[Q], { height: it, width: at, top: ut, right: U, bottom: X, left: B } = I.getBoundingClientRect();
219
+ if (i === "if-needed" && x >= 0 && D >= 0 && R <= y && T <= h && x >= ut && R <= X && D >= B && T <= U) return G;
220
+ const _ = getComputedStyle(I), C = parseInt(_.borderLeftWidth, 10), O = parseInt(_.borderTopWidth, 10), L = parseInt(_.borderRightWidth, 10), N = parseInt(_.borderBottomWidth, 10);
221
+ let H = 0, rt = 0;
222
+ const ot = "offsetWidth" in I ? I.offsetWidth - I.clientWidth - C - L : 0, et = "offsetHeight" in I ? I.offsetHeight - I.clientHeight - O - N : 0, Ct = "offsetWidth" in I ? I.offsetWidth === 0 ? 0 : at / I.offsetWidth : 0, te = "offsetHeight" in I ? I.offsetHeight === 0 ? 0 : it / I.offsetHeight : 0;
223
+ if (d === I) H = s === "start" ? j : s === "end" ? j - y : s === "nearest" ? Ce(S, S + y, y, O, N, S + j, S + j + g, g) : j - y / 2, rt = u === "start" ? A : u === "center" ? A - h / 2 : u === "end" ? A - h : Ce(m, m + h, h, C, L, m + A, m + A + w, w), H = Math.max(0, H + S), rt = Math.max(0, rt + m);
224
224
  else {
225
- W = s === "start" ? j - ut - O : s === "end" ? j - X + N + et : s === "nearest" ? Ce(ut, X, it, O, N + et, j, j + g, g) : j - (ut + it / 2) + et / 2, rt = u === "start" ? I - D - C : u === "center" ? I - (D + at / 2) + ot / 2 : u === "end" ? I - U + L + ot : Ce(D, U, at, C, L + ot, I, I + w, w);
226
- const { scrollLeft: ee, scrollTop: ne } = M;
227
- W = te === 0 ? 0 : Math.max(0, Math.min(ne + W / te, M.scrollHeight - it / te + et)), rt = Ct === 0 ? 0 : Math.max(0, Math.min(ee + rt / Ct, M.scrollWidth - at / Ct + ot)), j += ne - W, I += ee - rt;
225
+ H = s === "start" ? j - ut - O : s === "end" ? j - X + N + et : s === "nearest" ? Ce(ut, X, it, O, N + et, j, j + g, g) : j - (ut + it / 2) + et / 2, rt = u === "start" ? A - B - C : u === "center" ? A - (B + at / 2) + ot / 2 : u === "end" ? A - U + L + ot : Ce(B, U, at, C, L + ot, A, A + w, w);
226
+ const { scrollLeft: ee, scrollTop: ne } = I;
227
+ H = te === 0 ? 0 : Math.max(0, Math.min(ne + H / te, I.scrollHeight - it / te + et)), rt = Ct === 0 ? 0 : Math.max(0, Math.min(ee + rt / Ct, I.scrollWidth - at / Ct + ot)), j += ne - H, A += ee - rt;
228
228
  }
229
- G.push({ el: M, top: W, left: rt });
229
+ G.push({ el: I, top: H, left: rt });
230
230
  }
231
231
  return G;
232
232
  };
233
- function Er(t, e) {
233
+ function Vr(t, e) {
234
234
  if (!t.isConnected || !((o) => {
235
235
  let a = o;
236
236
  for (; a && a.parentNode; ) {
@@ -260,17 +260,17 @@ function us(t, e, n) {
260
260
  let r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 600, o = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : (c) => 1 + --c * c * c * c * c, a = arguments.length > 5 ? arguments[5] : void 0, i = arguments.length > 6 ? arguments[6] : void 0;
261
261
  const s = t, u = t.scrollLeft, l = t.scrollTop;
262
262
  qo({ scrollable: s, method: (c, f, d, p) => {
263
- const v = Math.ceil(c), m = Math.ceil(f);
264
- t.scrollLeft = v, t.scrollTop = m, i == null || i({ target: t, elapsed: d, value: p, left: v, top: m });
263
+ const v = Math.ceil(c), h = Math.ceil(f);
264
+ t.scrollLeft = v, t.scrollTop = h, i == null || i({ target: t, elapsed: d, value: p, left: v, top: h });
265
265
  }, startTime: Yo(), startX: u, startY: l, x: e, y: n, duration: r, ease: o, cb: a });
266
266
  }
267
267
  const ls = function(t, e) {
268
268
  const n = e || {};
269
- return ((r) => r && !r.behavior || r.behavior === "smooth")(n) ? Er(t, { block: n.block, inline: n.inline, scrollMode: n.scrollMode, boundary: n.boundary, skipOverflowHiddenElements: n.skipOverflowHiddenElements, behavior: (r) => Promise.all(r.reduce((o, a) => {
269
+ return ((r) => r && !r.behavior || r.behavior === "smooth")(n) ? Vr(t, { block: n.block, inline: n.inline, scrollMode: n.scrollMode, boundary: n.boundary, skipOverflowHiddenElements: n.skipOverflowHiddenElements, behavior: (r) => Promise.all(r.reduce((o, a) => {
270
270
  let { el: i, left: s, top: u } = a;
271
271
  const l = i.scrollLeft, c = i.scrollTop;
272
272
  return l === s && c === u ? o : [...o, new Promise((f) => us(i, s, u, n.duration, n.ease, () => f({ el: i, left: [l, s], top: [c, u] }), n.onScrollChange))];
273
- }, [])) }) : Promise.resolve(Er(t, e));
273
+ }, [])) }) : Promise.resolve(Vr(t, e));
274
274
  }, cs = (t) => Object.values(t).map((e) => e.current).filter(Boolean);
275
275
  function vn(t, e, n, r, o, a) {
276
276
  var i;
@@ -280,42 +280,42 @@ function vn(t, e, n, r, o, a) {
280
280
  return a ? s.scrollIntoView(u) : ls(s, Object.assign(Object.assign({}, o), u));
281
281
  }
282
282
  const fs = (t) => document.querySelector(`[${Go}='${t}']`), ds = (t) => document.querySelector(`[${Ko}='${t}']`);
283
- function Ee(t) {
284
- return E.isValidElement(t) && t || typeof t == "function" && E.createElement(t, null) || !!t && typeof t == "object" && E.createElement(t, null) || null;
283
+ function Ve(t) {
284
+ return V.isValidElement(t) && t || typeof t == "function" && V.createElement(t, null) || !!t && typeof t == "object" && V.createElement(t, null) || null;
285
285
  }
286
286
  const Xo = (t) => {
287
287
  var e;
288
288
  return String(((e = t == null ? void 0 : t.props) === null || e === void 0 ? void 0 : e[rs]) || String((t == null ? void 0 : t.key) || pt).replace(/^\.\$/, pt));
289
289
  };
290
- function In(t) {
290
+ function An(t) {
291
291
  return !!t && Object.prototype.hasOwnProperty.call(t, "current");
292
292
  }
293
- var vs = E.memo(function({ children: t, className: e, id: n, index: r, refs: o }) {
294
- const a = E.useRef(null);
295
- return o[String(r)] = a, E.createElement("div", { className: e, [Go]: n, [Ko]: r, ref: a }, t);
293
+ var vs = V.memo(function({ children: t, className: e, id: n, index: r, refs: o }) {
294
+ const a = V.useRef(null);
295
+ return o[String(r)] = a, V.createElement("div", { className: e, [Go]: n, [Ko]: r, ref: a }, t);
296
296
  });
297
297
  function ps({ children: t, itemClassName: e = pt, refs: n }) {
298
- const r = E.Children.toArray(t).filter(Boolean), o = E.useMemo(() => `${qa} ${e}`, [e]);
298
+ const r = V.Children.toArray(t).filter(Boolean), o = V.useMemo(() => `${qa} ${e}`, [e]);
299
299
  return r.map((a, i) => {
300
300
  const s = Xo(a);
301
- return E.createElement(vs, { className: o, id: s, key: s, refs: n, index: i }, a);
301
+ return V.createElement(vs, { className: o, id: s, key: s, refs: n, index: i }, a);
302
302
  });
303
303
  }
304
- function ms({ className: t = pt, children: e, onScroll: n = () => {
304
+ function hs({ className: t = pt, children: e, onScroll: n = () => {
305
305
  }, scrollRef: r, containerRef: o }) {
306
- const a = E.useMemo(() => `${Xa} ${t}`, [t]), i = E.useCallback((s) => {
307
- In(r) ? r.current = s : r(s), In(o) ? o.current = s : o(s);
306
+ const a = V.useMemo(() => `${Xa} ${t}`, [t]), i = V.useCallback((s) => {
307
+ An(r) ? r.current = s : r(s), An(o) ? o.current = s : o(s);
308
308
  }, [r, o]);
309
- return E.createElement("div", { className: a, onScroll: n, ref: i }, e);
309
+ return V.createElement("div", { className: a, onScroll: n, ref: i }, e);
310
310
  }
311
- const hs = E.createContext({}), gs = typeof window < "u" ? E.useLayoutEffect : E.useEffect;
311
+ const ms = V.createContext({}), gs = typeof window < "u" ? V.useLayoutEffect : V.useEffect;
312
312
  function ys({ items: t, itemsChanged: e, refs: n, options: r }) {
313
- const o = E.useRef(), a = E.useCallback((i) => {
313
+ const o = V.useRef(), a = V.useCallback((i) => {
314
314
  t.setBatch(function(s, u) {
315
315
  return [...s].map((l) => {
316
316
  var c, f, d, p;
317
- const v = l.target, m = String((f = (c = v == null ? void 0 : v.dataset) === null || c === void 0 ? void 0 : c.key) !== null && f !== void 0 ? f : pt);
318
- return [m, { index: String((p = (d = v == null ? void 0 : v.dataset) === null || d === void 0 ? void 0 : d.index) !== null && p !== void 0 ? p : pt), key: m, entry: l, visible: l.intersectionRatio >= u.ratio }];
317
+ const v = l.target, h = String((f = (c = v == null ? void 0 : v.dataset) === null || c === void 0 ? void 0 : c.key) !== null && f !== void 0 ? f : pt);
318
+ return [h, { index: String((p = (d = v == null ? void 0 : v.dataset) === null || d === void 0 ? void 0 : d.index) !== null && p !== void 0 ? p : pt), key: h, entry: l, visible: l.intersectionRatio >= u.ratio }];
319
319
  });
320
320
  }(i, r));
321
321
  }, [t, r]);
@@ -326,81 +326,81 @@ function ys({ items: t, itemsChanged: e, refs: n, options: r }) {
326
326
  };
327
327
  }, [a, e, r, n]);
328
328
  }
329
- const Ss = (t) => E.Children.toArray(t).map(Xo).filter(Boolean), Vr = { ratio: 0.9, rootMargin: "5px", threshold: [0.05, 0.5, 0.75, 0.95] }, bs = { current: {} }, Ve = () => {
329
+ const Ss = (t) => V.Children.toArray(t).map(Xo).filter(Boolean), Er = { ratio: 0.9, rootMargin: "5px", threshold: [0.05, 0.5, 0.75, 0.95] }, bs = { current: {} }, Ee = () => {
330
330
  };
331
- function Ps({ LeftArrow: t, RightArrow: e, children: n, Header: r, Footer: o, transitionDuration: a = 500, transitionBehavior: i, onInit: s = Ve, onUpdate: u = Ve, onMouseDown: l, onMouseLeave: c, onMouseUp: f, onMouseMove: d, onScroll: p = Ve, onTouchMove: v, onTouchStart: m, onTouchEnd: y, onWheel: h = Ve, options: S = Vr, scrollContainerClassName: g = pt, containerRef: w = os, itemClassName: x = pt, wrapperClassName: T = pt, apiRef: R = bs, RTL: B, noPolyfill: V }) {
332
- const F = Ee(t), J = Ee(e), $ = Ee(r), j = Ee(o), I = E.useRef(null), [G] = E.useState({}), Q = E.useMemo(() => Object.assign(Object.assign(Object.assign({}, Vr), S), { root: I.current }), [S]), M = E.useRef(new as()).current, it = function(L, N) {
333
- const [W, rt] = E.useState(pt), ot = E.useMemo(() => Ss(L), [L]);
334
- return E.useEffect(() => {
331
+ function Ps({ LeftArrow: t, RightArrow: e, children: n, Header: r, Footer: o, transitionDuration: a = 500, transitionBehavior: i, onInit: s = Ee, onUpdate: u = Ee, onMouseDown: l, onMouseLeave: c, onMouseUp: f, onMouseMove: d, onScroll: p = Ee, onTouchMove: v, onTouchStart: h, onTouchEnd: y, onWheel: m = Ee, options: S = Er, scrollContainerClassName: g = pt, containerRef: w = os, itemClassName: x = pt, wrapperClassName: T = pt, apiRef: R = bs, RTL: D, noPolyfill: E }) {
332
+ const F = Ve(t), J = Ve(e), $ = Ve(r), j = Ve(o), A = V.useRef(null), [G] = V.useState({}), Q = V.useMemo(() => Object.assign(Object.assign(Object.assign({}, Er), S), { root: A.current }), [S]), I = V.useRef(new as()).current, it = function(L, N) {
333
+ const [H, rt] = V.useState(pt), ot = V.useMemo(() => Ss(L), [L]);
334
+ return V.useEffect(() => {
335
335
  const et = ot.filter(Boolean).join(pt);
336
336
  N.toItems().filter((Ct) => !ot.includes(Ct)).forEach((Ct) => {
337
337
  N.delete(Ct);
338
338
  }), rt(et);
339
- }, [ot, N]), W;
340
- }(n, M);
341
- ys(E.useMemo(() => ({ items: M, itemsChanged: it, options: Q, refs: G }), [M, it, G, Q]));
342
- const at = E.useMemo(() => function(L, N, W) {
339
+ }, [ot, N]), H;
340
+ }(n, I);
341
+ ys(V.useMemo(() => ({ items: I, itemsChanged: it, options: Q, refs: G }), [I, it, G, Q]));
342
+ const at = V.useMemo(() => function(L, N, H) {
343
343
  var rt, ot, et;
344
- const Ct = !!(!((rt = L.first()) === null || rt === void 0) && rt.visible), te = !!(!((ot = L.last()) === null || ot === void 0) && ot.visible), ee = (H) => {
344
+ const Ct = !!(!((rt = L.first()) === null || rt === void 0) && rt.visible), te = !!(!((ot = L.last()) === null || ot === void 0) && ot.visible), ee = (W) => {
345
345
  var K;
346
- return (K = L.find((ft) => ft[1].key === String(H))) === null || K === void 0 ? void 0 : K[1];
346
+ return (K = L.find((ft) => ft[1].key === String(W))) === null || K === void 0 ? void 0 : K[1];
347
347
  }, ne = () => {
348
- var H, K;
349
- const ft = (K = (H = L.getVisible()) === null || H === void 0 ? void 0 : H[0]) === null || K === void 0 ? void 0 : K[1];
348
+ var W, K;
349
+ const ft = (K = (W = L.getVisible()) === null || W === void 0 ? void 0 : W[0]) === null || K === void 0 ? void 0 : K[1];
350
350
  return ft ? L.prev(ft) : void 0;
351
351
  }, br = () => {
352
- var H;
353
- const K = (H = L.getVisible().findLast(() => !0)) === null || H === void 0 ? void 0 : H[1];
352
+ var W;
353
+ const K = (W = L.getVisible().findLast(() => !0)) === null || W === void 0 ? void 0 : W[1];
354
354
  return K ? L.next(K) : void 0;
355
355
  }, an = (et = N == null ? void 0 : N.boundary) === null || et === void 0 ? void 0 : et.current;
356
- return { getItemById: ee, getItemElementById: fs, getItemByIndex: (H) => {
356
+ return { getItemById: ee, getItemElementById: fs, getItemByIndex: (W) => {
357
357
  var K;
358
- return (K = L.find((ft) => String(ft[1].index) === String(H))) === null || K === void 0 ? void 0 : K[1];
359
- }, getItemElementByIndex: ds, getNextElement: br, getPrevElement: ne, isFirstItemVisible: Ct, isItemVisible: (H) => L.getVisible().map((K) => K[0]).includes(String(H)), isLastItem: (H) => L.last() === ee(H), isLastItemVisible: te, scrollNext: (H, K, ft, { duration: Et, boundary: gt = an } = {}) => {
360
- const wt = H ?? (N == null ? void 0 : N.behavior);
361
- return vn(br(), wt, K || "start", ft || "nearest", { boundary: gt, duration: Et ?? (N == null ? void 0 : N.duration) }, W);
362
- }, scrollPrev: (H, K, ft, { duration: Et, boundary: gt = an } = {}) => {
363
- const wt = H ?? (N == null ? void 0 : N.behavior);
364
- return vn(ne(), wt, K || "end", ft || "nearest", { boundary: gt, duration: Et ?? (N == null ? void 0 : N.duration) }, W);
365
- }, useIsVisible: (H, K = !1) => {
366
- const [ft, Et] = E.useState(K), gt = E.useCallback((wt) => {
367
- Et(!!(wt != null && wt.visible));
358
+ return (K = L.find((ft) => String(ft[1].index) === String(W))) === null || K === void 0 ? void 0 : K[1];
359
+ }, getItemElementByIndex: ds, getNextElement: br, getPrevElement: ne, isFirstItemVisible: Ct, isItemVisible: (W) => L.getVisible().map((K) => K[0]).includes(String(W)), isLastItem: (W) => L.last() === ee(W), isLastItemVisible: te, scrollNext: (W, K, ft, { duration: Vt, boundary: gt = an } = {}) => {
360
+ const wt = W ?? (N == null ? void 0 : N.behavior);
361
+ return vn(br(), wt, K || "start", ft || "nearest", { boundary: gt, duration: Vt ?? (N == null ? void 0 : N.duration) }, H);
362
+ }, scrollPrev: (W, K, ft, { duration: Vt, boundary: gt = an } = {}) => {
363
+ const wt = W ?? (N == null ? void 0 : N.behavior);
364
+ return vn(ne(), wt, K || "end", ft || "nearest", { boundary: gt, duration: Vt ?? (N == null ? void 0 : N.duration) }, H);
365
+ }, useIsVisible: (W, K = !1) => {
366
+ const [ft, Vt] = V.useState(K), gt = V.useCallback((wt) => {
367
+ Vt(!!(wt != null && wt.visible));
368
368
  }, []);
369
- return E.useEffect(() => (L.subscribe(H, gt), () => {
370
- L.unsubscribe(H, gt);
371
- }), [H, gt]), ft;
372
- }, scrollToItem: (H, K, ft, Et, gt) => {
369
+ return V.useEffect(() => (L.subscribe(W, gt), () => {
370
+ L.unsubscribe(W, gt);
371
+ }), [W, gt]), ft;
372
+ }, scrollToItem: (W, K, ft, Vt, gt) => {
373
373
  var wt;
374
- return vn(H, K ?? (N == null ? void 0 : N.behavior), ft, Et, Object.assign(Object.assign({ boundary: an }, gt), { duration: (wt = gt == null ? void 0 : gt.duration) !== null && wt !== void 0 ? wt : N == null ? void 0 : N.duration }), W);
374
+ return vn(W, K ?? (N == null ? void 0 : N.behavior), ft, Vt, Object.assign(Object.assign({ boundary: an }, gt), { duration: (wt = gt == null ? void 0 : gt.duration) !== null && wt !== void 0 ? wt : N == null ? void 0 : N.duration }), H);
375
375
  } };
376
- }(M, { duration: a, behavior: i, boundary: I }, V), [M, a, i, V]), ut = E.useCallback(() => Object.assign(Object.assign({}, at), { items: M, scrollContainer: I }), [at, M, I]), [U, X] = E.useState(() => ut());
377
- (({ context: L, onInit: N, onUpdate: W }) => {
378
- const rt = E.useCallback(() => N(L), [N, L]), ot = E.useCallback(() => W(L), [W, L]), { items: et } = L;
379
- E.useEffect(() => (et.subscribe(bt.onInit, rt), et.subscribe(bt.onUpdate, ot), () => {
376
+ }(I, { duration: a, behavior: i, boundary: A }, E), [I, a, i, E]), ut = V.useCallback(() => Object.assign(Object.assign({}, at), { items: I, scrollContainer: A }), [at, I, A]), [U, X] = V.useState(() => ut());
377
+ (({ context: L, onInit: N, onUpdate: H }) => {
378
+ const rt = V.useCallback(() => N(L), [N, L]), ot = V.useCallback(() => H(L), [H, L]), { items: et } = L;
379
+ V.useEffect(() => (et.subscribe(bt.onInit, rt), et.subscribe(bt.onUpdate, ot), () => {
380
380
  et.unsubscribe(bt.onInit, rt), et.unsubscribe(bt.onUpdate, ot);
381
381
  }), [et, rt, ot]);
382
- })({ context: U, onInit: s, onUpdate: u }), E.useEffect(() => X(ut()), [ut]), E.useEffect(() => {
383
- In(R) ? R.current = U : R(U);
382
+ })({ context: U, onInit: s, onUpdate: u }), V.useEffect(() => X(ut()), [ut]), V.useEffect(() => {
383
+ An(R) ? R.current = U : R(U);
384
384
  }, [U, R]);
385
- const D = E.useCallback((L) => p(U, L), [p, U]), _ = E.useCallback((L) => h(U, L), [h, U]), C = E.useMemo(() => `${Za} ${T}`, [T]), O = E.useMemo(() => `${g}${B ? " rtl" : pt}`, [B, g]);
386
- return E.createElement("div", { className: C, onWheel: _, onMouseDown: l == null ? void 0 : l(U), onMouseLeave: c == null ? void 0 : c(U), onMouseUp: f == null ? void 0 : f(U), onMouseMove: d == null ? void 0 : d(U), onTouchStart: m == null ? void 0 : m(U), onTouchMove: v == null ? void 0 : v(U), onTouchEnd: y == null ? void 0 : y(U) }, E.createElement(hs.Provider, { value: U }, E.createElement("div", { className: Qa }, $), E.createElement("div", { className: Ja }, E.createElement("div", { className: ts }, F), E.createElement(ms, { className: O, onScroll: D, scrollRef: I, containerRef: w }, E.createElement(ps, { refs: G, itemClassName: x }, n)), E.createElement("div", { className: es }, J)), E.createElement("div", { className: ns }, j)));
385
+ const B = V.useCallback((L) => p(U, L), [p, U]), _ = V.useCallback((L) => m(U, L), [m, U]), C = V.useMemo(() => `${Za} ${T}`, [T]), O = V.useMemo(() => `${g}${D ? " rtl" : pt}`, [D, g]);
386
+ return V.createElement("div", { className: C, onWheel: _, onMouseDown: l == null ? void 0 : l(U), onMouseLeave: c == null ? void 0 : c(U), onMouseUp: f == null ? void 0 : f(U), onMouseMove: d == null ? void 0 : d(U), onTouchStart: h == null ? void 0 : h(U), onTouchMove: v == null ? void 0 : v(U), onTouchEnd: y == null ? void 0 : y(U) }, V.createElement(ms.Provider, { value: U }, V.createElement("div", { className: Qa }, $), V.createElement("div", { className: Ja }, V.createElement("div", { className: ts }, F), V.createElement(hs, { className: O, onScroll: B, scrollRef: A, containerRef: w }, V.createElement(ps, { refs: G, itemClassName: x }, n)), V.createElement("div", { className: es }, J)), V.createElement("div", { className: ns }, j)));
387
387
  }
388
- const ws = "_StoryPlayer_v4m0s_1", _s = "_Overlay_v4m0s_15", xs = "_StoryPlayer__Wrap_v4m0s_25", Ts = "_progressContainer_v4m0s_37", Cs = "_CloseIcon_v4m0s_41", Es = "_inline_v4m0s_57", Vs = "_progressBarContainer_v4m0s_75", Is = "_progressBar_v4m0s_75", Rt = {
388
+ const ws = "_StoryPlayer_v4m0s_1", _s = "_Overlay_v4m0s_15", xs = "_StoryPlayer__Wrap_v4m0s_25", Ts = "_progressContainer_v4m0s_37", Cs = "_CloseIcon_v4m0s_41", Vs = "_inline_v4m0s_57", Es = "_progressBarContainer_v4m0s_75", As = "_progressBar_v4m0s_75", Rt = {
389
389
  StoryPlayer: ws,
390
390
  Overlay: _s,
391
391
  StoryPlayer__Wrap: xs,
392
392
  progressContainer: Ts,
393
393
  CloseIcon: Cs,
394
- inline: Es,
395
- progressBarContainer: Vs,
396
- progressBar: Is
394
+ inline: Vs,
395
+ progressBarContainer: Es,
396
+ progressBar: As
397
397
  };
398
398
  var Y = function() {
399
399
  return Y = Object.assign || function(t) {
400
400
  for (var e, n = 1, r = arguments.length; n < r; n++) for (var o in e = arguments[n]) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
401
401
  return t;
402
402
  }, Y.apply(this, arguments);
403
- }, Zo = Wt({ stories: [], width: "100%", height: "100%", defaultDuration: 1e4, isPaused: !1 }), pn = Object.freeze({ LEFT: "left", RIGHT: "right" }), As = "Actions-styles_left__eky50", Ms = "Actions-styles_right__zguoH";
403
+ }, Zo = Ht({ stories: [], width: "100%", height: "100%", defaultDuration: 1e4, isPaused: !1 }), pn = Object.freeze({ LEFT: "left", RIGHT: "right" }), Ms = "Actions-styles_left__eky50", Is = "Actions-styles_right__zguoH";
404
404
  function Rs(t) {
405
405
  var e = t.onNextClick, n = t.onPrevClick, r = t.onPause, o = t.onResume, a = Pt(!1), i = a[0], s = a[1], u = Z(null);
406
406
  function l(d) {
@@ -423,13 +423,13 @@ function Rs(t) {
423
423
  return l(p);
424
424
  } };
425
425
  }
426
- return q(Wo, { children: [P("div", Y({ className: As }, f(pn.LEFT))), P("div", Y({ className: Ms }, f(pn.RIGHT)))] });
426
+ return q(Ho, { children: [P("div", Y({ className: Ms }, f(pn.LEFT))), P("div", Y({ className: Is }, f(pn.RIGHT)))] });
427
427
  }
428
428
  function Xe() {
429
429
  return st(Zo);
430
430
  }
431
- var Ls = "ProgressBar-styles_wrapper__oqUCo", Os = "ProgressBar-styles_bar__x0O50", Ir = 0, Ar = 0.1;
432
- function Bs(t) {
431
+ var Ls = "ProgressBar-styles_wrapper__oqUCo", Os = "ProgressBar-styles_bar__x0O50", Ar = 0, Mr = 0.1;
432
+ function Ds(t) {
433
433
  var e, n, r, o, a, i = Xe(), s = i.defaultDuration, u = i.classNames, l = Z(null), c = Z(null), f = Pt(!1), d = f[0], p = f[1];
434
434
  return k(function() {
435
435
  !t.isPaused && t.isActive && t.isActive ? p(!0) : p(!1);
@@ -437,17 +437,17 @@ function Bs(t) {
437
437
  var v;
438
438
  l.current && (t.hasStoryPassed ? l.current.style.width = "".concat((v = c == null ? void 0 : c.current) === null || v === void 0 ? void 0 : v.offsetWidth, "px") : l.current.style.width = "0px");
439
439
  }, [t.hasStoryPassed, t.isActive]), e = function(v) {
440
- var m;
441
- l.current && c.current && ((Ir = Number((l.current.style.width || "1px").slice(0, l.current.style.width.length - 2)) || 0) > c.current.offsetWidth ? p(!1) : (Ar = ((m = c == null ? void 0 : c.current) === null || m === void 0 ? void 0 : m.offsetWidth) / ((t.story.duration || s) / v), l.current.style.width = "".concat(Ir + Ar, "px")));
440
+ var h;
441
+ l.current && c.current && ((Ar = Number((l.current.style.width || "1px").slice(0, l.current.style.width.length - 2)) || 0) > c.current.offsetWidth ? p(!1) : (Mr = ((h = c == null ? void 0 : c.current) === null || h === void 0 ? void 0 : h.offsetWidth) / ((t.story.duration || s) / v), l.current.style.width = "".concat(Ar + Mr, "px")));
442
442
  }, n = d, r = Z(), o = Z(), a = Z(e), k(function() {
443
443
  a.current = e;
444
444
  }, [e]), k(function() {
445
- return n !== !1 ? (r.current = requestAnimationFrame(function v(m) {
445
+ return n !== !1 ? (r.current = requestAnimationFrame(function v(h) {
446
446
  if (o.current != null) {
447
- var y = m - o.current;
447
+ var y = h - o.current;
448
448
  a.current(y);
449
449
  }
450
- o.current = m, r.current = requestAnimationFrame(v);
450
+ o.current = h, r.current = requestAnimationFrame(v);
451
451
  }), function() {
452
452
  cancelAnimationFrame(r.current), r.current = null, o.current = null;
453
453
  }) : function() {
@@ -455,14 +455,14 @@ function Bs(t) {
455
455
  };
456
456
  }, [n]), P("div", Y({ className: "".concat(Ls, " ").concat((u == null ? void 0 : u.progressBarContainer) || ""), ref: c }, { children: P("div", { className: "".concat(Os, " ").concat((u == null ? void 0 : u.progressBar) || ""), ref: l }) }));
457
457
  }
458
- var Ds = "progress-styles_wrapper__qQPyW";
458
+ var Bs = "progress-styles_wrapper__qQPyW";
459
459
  function Ns(t) {
460
460
  var e = Xe(), n = e.stories, r = e.classNames;
461
- return P("div", Y({ className: "".concat(Ds, " ").concat((r == null ? void 0 : r.progressContainer) || ""), style: { gridTemplateColumns: "repeat(".concat(n.length, ",1fr)") } }, { children: n.map(function(o) {
462
- return P(Bs, { hasStoryPassed: o.index < t.activeStoryIndex, isActive: o.index === t.activeStoryIndex, story: o, isPaused: o.index === t.activeStoryIndex && t.isPaused }, o.index);
461
+ return P("div", Y({ className: "".concat(Bs, " ").concat((r == null ? void 0 : r.progressContainer) || ""), style: { gridTemplateColumns: "repeat(".concat(n.length, ",1fr)") } }, { children: n.map(function(o) {
462
+ return P(Ds, { hasStoryPassed: o.index < t.activeStoryIndex, isActive: o.index === t.activeStoryIndex, story: o, isPaused: o.index === t.activeStoryIndex && t.isPaused }, o.index);
463
463
  }) }));
464
464
  }
465
- var mn = Object.freeze({ IMAGE: "image", VIDEO: "video", COMPONENT: "component" }), Fs = "Story-styles_wrapper__oJP7j", js = "Story-styles_header__-rnWL", ks = "Image-styles_image__gnfW1";
465
+ var hn = Object.freeze({ IMAGE: "image", VIDEO: "video", COMPONENT: "component" }), Fs = "Story-styles_wrapper__oJP7j", js = "Story-styles_header__-rnWL", ks = "Image-styles_image__gnfW1";
466
466
  function $s(t) {
467
467
  return k(function() {
468
468
  t.onPause();
@@ -472,16 +472,16 @@ function $s(t) {
472
472
  }, 4);
473
473
  } });
474
474
  }
475
- var hn, Us = "Video-styles_video__BykuO", Ws = "Video-styles_loaderWrapper__TqVWk", Hs = "Video-styles_loader__FxxSV", zs = "Video-styles_soundIcon__ZvYXE";
475
+ var mn, Us = "Video-styles_video__BykuO", Hs = "Video-styles_loaderWrapper__TqVWk", Ws = "Video-styles_loader__FxxSV", zs = "Video-styles_soundIcon__ZvYXE";
476
476
  function Gs(t) {
477
477
  return t.type === "off" ? P("svg", Y({ xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 24 24", fill: "white" }, { children: P("path", { d: "M3 9v6h-1v-6h1zm13-7l-9 5v2.288l7-3.889v13.202l-7-3.889v2.288l9 5v-20zm-11 5h-5v10h5v-10zm17.324 4.993l1.646-1.659-1.324-1.324-1.651 1.67-1.665-1.648-1.316 1.318 1.67 1.657-1.65 1.669 1.318 1.317 1.658-1.672 1.666 1.653 1.324-1.325-1.676-1.656z" }) })) : P("svg", Y({ xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 24 24", fill: "white" }, { children: P("path", { d: "M22 0v24l-11-6v-2.278l9 4.909v-17.262l-9 4.91v-2.279l11-6zm-13 6v12h-7v-12h7zm-2 2h-3v8h3v-8z" }) }));
478
478
  }
479
- var An = "RSIsMute", Gt = typeof window > "u" ? {} : window;
479
+ var Mn = "RSIsMute", Gt = typeof window > "u" ? {} : window;
480
480
  function Ks(t) {
481
- var e, n = Xe().isPaused, r = Pt(((e = Gt == null ? void 0 : Gt.localStorage) === null || e === void 0 ? void 0 : e.getItem(An)) === "true"), o = r[0], a = r[1], i = Pt(!1), s = i[0], u = i[1], l = Z(null);
481
+ var e, n = Xe().isPaused, r = Pt(((e = Gt == null ? void 0 : Gt.localStorage) === null || e === void 0 ? void 0 : e.getItem(Mn)) === "true"), o = r[0], a = r[1], i = Pt(!1), s = i[0], u = i[1], l = Z(null);
482
482
  function c(f) {
483
483
  var d;
484
- (d = Gt == null ? void 0 : Gt.localStorage) === null || d === void 0 || d.setItem(An, String(f)), a(f);
484
+ (d = Gt == null ? void 0 : Gt.localStorage) === null || d === void 0 || d.setItem(Mn, String(f)), a(f);
485
485
  }
486
486
  return k(function() {
487
487
  t.onPause(), u(!0);
@@ -490,15 +490,15 @@ function Ks(t) {
490
490
  var f;
491
491
  c(!0), (f = l.current) === null || f === void 0 || f.play();
492
492
  }) : l.current.pause());
493
- }, [n]), q(Wo, { children: [q("video", Y({ className: Us, ref: l, playsInline: !0, "webkit-playsinline": "", controls: !1, src: t.story.url, onLoadedData: function() {
493
+ }, [n]), q(Ho, { children: [q("video", Y({ className: Us, ref: l, playsInline: !0, "webkit-playsinline": "", controls: !1, src: t.story.url, onLoadedData: function() {
494
494
  setTimeout(function() {
495
495
  t.onResume(), u(!1);
496
496
  }, 4);
497
497
  }, muted: o }, { children: [P("source", { src: t.story.url, type: "video/mp4" }), P("source", { src: t.story.url, type: "video/webm" }), P("source", { src: t.story.url, type: "video/ogg" }), P("p", { children: "Video not supported" })] })), P("div", Y({ className: zs, onClick: function() {
498
498
  return c(!o);
499
- } }, { children: P(Gs, { type: o ? "off" : "on" }) })), s && P("div", Y({ className: Ws }, { children: P("div", { className: Hs }) }))] });
499
+ } }, { children: P(Gs, { type: o ? "off" : "on" }) })), s && P("div", Y({ className: Hs }, { children: P("div", { className: Ws }) }))] });
500
500
  }
501
- (hn = Gt == null ? void 0 : Gt.localStorage) === null || hn === void 0 || hn.setItem(An, "true");
501
+ (mn = Gt == null ? void 0 : Gt.localStorage) === null || mn === void 0 || mn.setItem(Mn, "true");
502
502
  var Ys = "CustomComponents-styles_component__w87Wx";
503
503
  function qs(t) {
504
504
  return P("div", Y({ className: Ys }, { children: P(t.story.component, { pause: t.onPause, resume: t.onResume, story: t.story, isPaused: t.isPaused }) }));
@@ -524,7 +524,7 @@ function nu(t) {
524
524
  var e = Pt(!1), n = e[0], r = e[1], o = Xe().classNames;
525
525
  return k(function() {
526
526
  r(!1);
527
- }, [t.story]), q("div", Y({ className: "".concat(Fs, " ").concat((o == null ? void 0 : o.storyContainer) || "") }, { children: [t.story.type === mn.IMAGE ? P($s, Y({}, t)) : t.story.type === mn.VIDEO ? P(Ks, Y({}, t)) : t.story.type === mn.COMPONENT ? P(qs, Y({}, t)) : null, t.story.header && P("div", Y({ className: js }, { children: typeof t.story.header == "function" ? P(t.story.header, {}) : t.story.header })), P(Js, { onSeeMoreClick: function() {
527
+ }, [t.story]), q("div", Y({ className: "".concat(Fs, " ").concat((o == null ? void 0 : o.storyContainer) || "") }, { children: [t.story.type === hn.IMAGE ? P($s, Y({}, t)) : t.story.type === hn.VIDEO ? P(Ks, Y({}, t)) : t.story.type === hn.COMPONENT ? P(qs, Y({}, t)) : null, t.story.header && P("div", Y({ className: js }, { children: typeof t.story.header == "function" ? P(t.story.header, {}) : t.story.header })), P(Js, { onSeeMoreClick: function() {
528
528
  var a, i;
529
529
  t.onPause(), r(!0), (i = (a = t.story).onSeeMoreClick) === null || i === void 0 || i.call(a, t.story.index);
530
530
  }, story: t.story }), n && P(eu, { story: t.story, onClose: function() {
@@ -532,30 +532,30 @@ function nu(t) {
532
532
  } })] }));
533
533
  }
534
534
  var ru = "styles_main__-0FEu";
535
- function Mr(t) {
535
+ function Ir(t) {
536
536
  return t === void 0 && (t = 4), Number(Math.random().toFixed(t));
537
537
  }
538
538
  function ou(t) {
539
- var e, n, r, o, a, i, s, u = t.stories, l = u === void 0 ? [] : u, c = t.width, f = c === void 0 ? "100%" : c, d = t.height, p = d === void 0 ? "100%" : d, v = t.onStoryChange, m = v === void 0 ? function() {
540
- } : v, y = t.currentIndex, h = y === void 0 ? 0 : y, S = t.defaultDuration, g = S === void 0 ? 1e4 : S, w = t.onAllStoriesEnd, x = w === void 0 ? function() {
539
+ var e, n, r, o, a, i, s, u = t.stories, l = u === void 0 ? [] : u, c = t.width, f = c === void 0 ? "100%" : c, d = t.height, p = d === void 0 ? "100%" : d, v = t.onStoryChange, h = v === void 0 ? function() {
540
+ } : v, y = t.currentIndex, m = y === void 0 ? 0 : y, S = t.defaultDuration, g = S === void 0 ? 1e4 : S, w = t.onAllStoriesEnd, x = w === void 0 ? function() {
541
541
  } : w, T = t.onStoriesStart, R = T === void 0 ? function() {
542
- } : T, B = t.classNames, V = B === void 0 ? {} : B, F = t.pauseStoryWhenInActiveWindow, J = F === void 0 || F, $ = qe(function() {
542
+ } : T, D = t.classNames, E = D === void 0 ? {} : D, F = t.pauseStoryWhenInActiveWindow, J = F === void 0 || F, $ = qe(function() {
543
543
  return function(O, L) {
544
544
  var N = 0;
545
- return O.map(function(W, rt) {
546
- var ot = W.duration || L, et = ot + Mr();
547
- return et === N && (et = ot + Mr(6)), N = et, Y(Y({}, W), { index: rt, calculatedDuration: et });
545
+ return O.map(function(H, rt) {
546
+ var ot = H.duration || L, et = ot + Ir();
547
+ return et === N && (et = ot + Ir(6)), N = et, Y(Y({}, H), { index: rt, calculatedDuration: et });
548
548
  });
549
549
  }(l, g);
550
- }, [l, g]), j = Pt(), I = j[0], G = j[1], Q = l.length - 1, M = Pt(!1), it = M[0], at = M[1], ut = Z(!1), U = Z(!1);
550
+ }, [l, g]), j = Pt(), A = j[0], G = j[1], Q = l.length - 1, I = Pt(!1), it = I[0], at = I[1], ut = Z(!1), U = Z(!1);
551
551
  function X() {
552
- ut.current || (I == null ? void 0 : I.index) !== Q || (x(), ut.current = !0), (I == null ? void 0 : I.index) !== Q && G(function(O) {
552
+ ut.current || (A == null ? void 0 : A.index) !== Q || (x(), ut.current = !0), (A == null ? void 0 : A.index) !== Q && G(function(O) {
553
553
  if (!O) return $[0];
554
554
  var L = (O == null ? void 0 : O.index) + 1;
555
555
  return $[L];
556
556
  });
557
557
  }
558
- function D() {
558
+ function B() {
559
559
  at(!0);
560
560
  }
561
561
  function _() {
@@ -564,13 +564,13 @@ function ou(t) {
564
564
  k(function() {
565
565
  U.current || (U.current = !0, R());
566
566
  }, [R]), k(function() {
567
- var O = $[h];
567
+ var O = $[m];
568
568
  O && G(O);
569
- }, [h, l]), k(function() {
570
- I && m(I.index);
571
- }, [I]), n = function() {
569
+ }, [m, l]), k(function() {
570
+ A && h(A.index);
571
+ }, [A]), n = function() {
572
572
  X();
573
- }, r = (e = I == null ? void 0 : I.calculatedDuration) !== null && e !== void 0 ? e : null, o = it, a = Z(), i = Z(r), s = Z(Date.now()), k(function() {
573
+ }, r = (e = A == null ? void 0 : A.calculatedDuration) !== null && e !== void 0 ? e : null, o = it, a = Z(), i = Z(r), s = Z(Date.now()), k(function() {
574
574
  a.current = n;
575
575
  }, [n]), k(function() {
576
576
  i.current = r;
@@ -596,36 +596,36 @@ function ou(t) {
596
596
  function N() {
597
597
  L.current(!0);
598
598
  }
599
- function W() {
599
+ function H() {
600
600
  L.current(!1);
601
601
  }
602
- return window.addEventListener("focus", N), window.addEventListener("blur", W), function() {
603
- window.removeEventListener("focus", N), window.removeEventListener("blur", W);
602
+ return window.addEventListener("focus", N), window.addEventListener("blur", H), function() {
603
+ window.removeEventListener("focus", N), window.removeEventListener("blur", H);
604
604
  };
605
605
  }, []);
606
606
  }(function(O) {
607
607
  J && at(!O);
608
608
  });
609
- var C = { stories: $, width: f, height: p, defaultDuration: g, isPaused: it, classNames: V };
610
- return I ? P(Zo.Provider, Y({ value: C }, { children: q("div", Y({ className: "".concat(ru, " ").concat(V.main || ""), style: { width: f, height: p } }, { children: [P(Ns, { activeStoryIndex: I.index, isPaused: it }), P(nu, { onPause: D, onResume: _, story: I, isPaused: it }, I.index), P(Rs, { onNextClick: X, onPrevClick: function() {
611
- (I == null ? void 0 : I.index) !== 0 && G(function(O) {
609
+ var C = { stories: $, width: f, height: p, defaultDuration: g, isPaused: it, classNames: E };
610
+ return A ? P(Zo.Provider, Y({ value: C }, { children: q("div", Y({ className: "".concat(ru, " ").concat(E.main || ""), style: { width: f, height: p } }, { children: [P(Ns, { activeStoryIndex: A.index, isPaused: it }), P(nu, { onPause: B, onResume: _, story: A, isPaused: it }, A.index), P(Rs, { onNextClick: X, onPrevClick: function() {
611
+ (A == null ? void 0 : A.index) !== 0 && G(function(O) {
612
612
  if (!O) return $[0];
613
613
  var L = (O == null ? void 0 : O.index) - 1;
614
614
  return $[L];
615
615
  });
616
- }, onPause: D, onResume: _ })] })) })) : null;
616
+ }, onPause: B, onResume: _ })] })) })) : null;
617
617
  }
618
- var Mn = function(t, e) {
619
- return Mn = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
618
+ var In = function(t, e) {
619
+ return In = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
620
620
  n.__proto__ = r;
621
621
  } || function(n, r) {
622
622
  for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (n[o] = r[o]);
623
- }, Mn(t, e);
623
+ }, In(t, e);
624
624
  };
625
625
  function Jo(t, e) {
626
626
  if (typeof e != "function" && e !== null)
627
627
  throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
628
- Mn(t, e);
628
+ In(t, e);
629
629
  function n() {
630
630
  this.constructor = t;
631
631
  }
@@ -640,7 +640,7 @@ var b = function() {
640
640
  return e;
641
641
  }, b.apply(this, arguments);
642
642
  };
643
- function ht(t, e) {
643
+ function mt(t, e) {
644
644
  var n = {};
645
645
  for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
646
646
  if (t != null && typeof Object.getOwnPropertySymbols == "function")
@@ -665,12 +665,12 @@ function nt(t, e) {
665
665
  }
666
666
  return a;
667
667
  }
668
- function mt(t, e, n) {
668
+ function ht(t, e, n) {
669
669
  if (n || arguments.length === 2) for (var r = 0, o = e.length, a; r < o; r++)
670
670
  (a || !(r in e)) && (a || (a = Array.prototype.slice.call(e, 0, r)), a[r] = e[r]);
671
671
  return t.concat(a || Array.prototype.slice.call(e));
672
672
  }
673
- var Rr = "production", Qo = typeof process > "u" || process.env === void 0 ? Rr : process.env.NODE_ENV || Rr, Vt = function(t) {
673
+ var Rr = "production", Qo = typeof process > "u" || process.env === void 0 ? Rr : process.env.NODE_ENV || Rr, Et = function(t) {
674
674
  return {
675
675
  isEnabled: function(e) {
676
676
  return t.some(function(n) {
@@ -679,8 +679,8 @@ var Rr = "production", Qo = typeof process > "u" || process.env === void 0 ? Rr
679
679
  }
680
680
  };
681
681
  }, pe = {
682
- measureLayout: Vt(["layout", "layoutId", "drag"]),
683
- animation: Vt([
682
+ measureLayout: Et(["layout", "layoutId", "drag"]),
683
+ animation: Et([
684
684
  "animate",
685
685
  "exit",
686
686
  "variants",
@@ -690,18 +690,18 @@ var Rr = "production", Qo = typeof process > "u" || process.env === void 0 ? Rr
690
690
  "whileDrag",
691
691
  "whileInView"
692
692
  ]),
693
- exit: Vt(["exit"]),
694
- drag: Vt(["drag", "dragControls"]),
695
- focus: Vt(["whileFocus"]),
696
- hover: Vt(["whileHover", "onHoverStart", "onHoverEnd"]),
697
- tap: Vt(["whileTap", "onTap", "onTapStart", "onTapCancel"]),
698
- pan: Vt([
693
+ exit: Et(["exit"]),
694
+ drag: Et(["drag", "dragControls"]),
695
+ focus: Et(["whileFocus"]),
696
+ hover: Et(["whileHover", "onHoverStart", "onHoverEnd"]),
697
+ tap: Et(["whileTap", "onTap", "onTapStart", "onTapCancel"]),
698
+ pan: Et([
699
699
  "onPan",
700
700
  "onPanStart",
701
701
  "onPanSessionStart",
702
702
  "onPanEnd"
703
703
  ]),
704
- inView: Vt([
704
+ inView: Et([
705
705
  "whileInView",
706
706
  "onViewportEnter",
707
707
  "onViewportLeave"
@@ -720,7 +720,7 @@ process.env.NODE_ENV !== "production" && (be = function(t, e) {
720
720
  if (!t)
721
721
  throw new Error(e);
722
722
  });
723
- var ti = Wt({ strict: !1 }), ei = Object.keys(pe), au = ei.length;
723
+ var ti = Ht({ strict: !1 }), ei = Object.keys(pe), au = ei.length;
724
724
  function su(t, e, n) {
725
725
  var r = [], o = st(ti);
726
726
  if (!e)
@@ -728,21 +728,21 @@ function su(t, e, n) {
728
728
  Qo !== "production" && n && o.strict && vt(!1, "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");
729
729
  for (var a = 0; a < au; a++) {
730
730
  var i = ei[a], s = pe[i], u = s.isEnabled, l = s.Component;
731
- u(t) && l && r.push(Vn.createElement(l, b({ key: i }, t, { visualElement: e })));
731
+ u(t) && l && r.push(En.createElement(l, b({ key: i }, t, { visualElement: e })));
732
732
  }
733
733
  return r;
734
734
  }
735
- var Zn = Wt({
735
+ var Zn = Ht({
736
736
  transformPagePoint: function(t) {
737
737
  return t;
738
738
  },
739
739
  isStatic: !1,
740
740
  reducedMotion: "never"
741
- }), Ze = Wt({});
741
+ }), Ze = Ht({});
742
742
  function uu() {
743
743
  return st(Ze).visualElement;
744
744
  }
745
- var Je = Wt(null), Qt = typeof document < "u", Lr = Qt ? Ia : k, Rn = { current: null }, ni = !1;
745
+ var Je = Ht(null), Qt = typeof document < "u", Lr = Qt ? Aa : k, Rn = { current: null }, ni = !1;
746
746
  function lu() {
747
747
  if (ni = !0, !!Qt)
748
748
  if (window.matchMedia) {
@@ -813,7 +813,7 @@ function pu(t) {
813
813
  return e[r] = n.get();
814
814
  }), e;
815
815
  }
816
- function mu(t) {
816
+ function hu(t) {
817
817
  var e = {};
818
818
  return t.forEachValue(function(n, r) {
819
819
  return e[r] = n.getVelocity();
@@ -825,7 +825,7 @@ function oi(t, e, n, r, o) {
825
825
  }
826
826
  function Qe(t, e, n) {
827
827
  var r = t.getProps();
828
- return oi(r, e, n ?? r.custom, pu(t), mu(t));
828
+ return oi(r, e, n ?? r.custom, pu(t), hu(t));
829
829
  }
830
830
  function tn(t) {
831
831
  var e;
@@ -834,7 +834,7 @@ function tn(t) {
834
834
  function ii(t) {
835
835
  return !!(tn(t) || t.variants);
836
836
  }
837
- function hu(t, e) {
837
+ function mu(t, e) {
838
838
  if (tn(t)) {
839
839
  var n = t.initial, r = t.animate;
840
840
  return {
@@ -845,7 +845,7 @@ function hu(t, e) {
845
845
  return t.inherit !== !1 ? e : {};
846
846
  }
847
847
  function gu(t) {
848
- var e = hu(t, st(Ze)), n = e.initial, r = e.animate;
848
+ var e = mu(t, st(Ze)), n = e.initial, r = e.animate;
849
849
  return qe(function() {
850
850
  return { initial: n, animate: r };
851
851
  }, [Or(n), Or(r)]);
@@ -875,7 +875,7 @@ function Su() {
875
875
  return yu++;
876
876
  });
877
877
  }
878
- var ai = Wt({}), si = Wt({});
878
+ var ai = Ht({}), si = Ht({});
879
879
  function bu(t, e, n, r) {
880
880
  var o, a = e.layoutId, i = e.layout, s = e.drag, u = e.dragConstraints, l = e.layoutScroll, c = st(si);
881
881
  !r || !n || n != null && n.projection || (n.projection = new r(t, n.getLatestValues(), (o = n.parent) === null || o === void 0 ? void 0 : o.projection), n.projection.setOptions({
@@ -914,7 +914,7 @@ var Pu = (
914
914
  }, e.prototype.render = function() {
915
915
  return this.props.children;
916
916
  }, e;
917
- }(E.Component)
917
+ }(V.Component)
918
918
  );
919
919
  function wu(t) {
920
920
  var e = t.preloadedFeatures, n = t.createVisualElement, r = t.projectionNodeConstructor, o = t.useRender, a = t.useVisualState, i = t.Component;
@@ -922,15 +922,15 @@ function wu(t) {
922
922
  function s(u, l) {
923
923
  var c = _u(u);
924
924
  u = b(b({}, u), { layoutId: c });
925
- var f = st(Zn), d = null, p = gu(u), v = f.isStatic ? void 0 : Su(), m = a(u, f.isStatic);
926
- return !f.isStatic && Qt && (p.visualElement = du(i, m, b(b({}, f), u), n), bu(v, u, p.visualElement, r || pe.projectionNodeConstructor), d = su(u, p.visualElement, e)), Vn.createElement(
925
+ var f = st(Zn), d = null, p = gu(u), v = f.isStatic ? void 0 : Su(), h = a(u, f.isStatic);
926
+ return !f.isStatic && Qt && (p.visualElement = du(i, h, b(b({}, f), u), n), bu(v, u, p.visualElement, r || pe.projectionNodeConstructor), d = su(u, p.visualElement, e)), En.createElement(
927
927
  Pu,
928
928
  { visualElement: p.visualElement, props: b(b({}, f), u) },
929
929
  d,
930
- Vn.createElement(Ze.Provider, { value: p }, o(i, u, v, vu(m, p.visualElement, l), m, f.isStatic, p.visualElement))
930
+ En.createElement(Ze.Provider, { value: p }, o(i, u, v, vu(h, p.visualElement, l), h, f.isStatic, p.visualElement))
931
931
  );
932
932
  }
933
- return Aa(s);
933
+ return Ma(s);
934
934
  }
935
935
  function _u(t) {
936
936
  var e, n = t.layoutId, r = (e = st(ai)) === null || e === void 0 ? void 0 : e.id;
@@ -1005,30 +1005,30 @@ var ke = {};
1005
1005
  function Cu(t) {
1006
1006
  Object.assign(ke, t);
1007
1007
  }
1008
- var Ln = ["", "X", "Y", "Z"], Eu = ["translate", "scale", "rotate", "skew"], me = ["transformPerspective", "x", "y", "z"];
1009
- Eu.forEach(function(t) {
1008
+ var Ln = ["", "X", "Y", "Z"], Vu = ["translate", "scale", "rotate", "skew"], he = ["transformPerspective", "x", "y", "z"];
1009
+ Vu.forEach(function(t) {
1010
1010
  return Ln.forEach(function(e) {
1011
- return me.push(t + e);
1011
+ return he.push(t + e);
1012
1012
  });
1013
1013
  });
1014
- function Vu(t, e) {
1015
- return me.indexOf(t) - me.indexOf(e);
1014
+ function Eu(t, e) {
1015
+ return he.indexOf(t) - he.indexOf(e);
1016
1016
  }
1017
- var Iu = new Set(me);
1017
+ var Au = new Set(he);
1018
1018
  function we(t) {
1019
- return Iu.has(t);
1019
+ return Au.has(t);
1020
1020
  }
1021
- var Au = /* @__PURE__ */ new Set(["originX", "originY", "originZ"]);
1021
+ var Mu = /* @__PURE__ */ new Set(["originX", "originY", "originZ"]);
1022
1022
  function ui(t) {
1023
- return Au.has(t);
1023
+ return Mu.has(t);
1024
1024
  }
1025
1025
  function li(t, e) {
1026
1026
  var n = e.layout, r = e.layoutId;
1027
1027
  return we(t) || ui(t) || (n || r !== void 0) && (!!ke[t] || t === "opacity");
1028
1028
  }
1029
- var It = function(t) {
1029
+ var At = function(t) {
1030
1030
  return !!(t !== null && typeof t == "object" && t.getVelocity);
1031
- }, Mu = {
1031
+ }, Iu = {
1032
1032
  x: "translateX",
1033
1033
  y: "translateY",
1034
1034
  z: "translateZ",
@@ -1036,10 +1036,10 @@ var It = function(t) {
1036
1036
  };
1037
1037
  function Ru(t, e, n, r) {
1038
1038
  var o = t.transform, a = t.transformKeys, i = e.enableHardwareAcceleration, s = i === void 0 ? !0 : i, u = e.allowTransformNone, l = u === void 0 ? !0 : u, c = "";
1039
- a.sort(Vu);
1039
+ a.sort(Eu);
1040
1040
  for (var f = !1, d = a.length, p = 0; p < d; p++) {
1041
1041
  var v = a[p];
1042
- c += "".concat(Mu[v] || v, "(").concat(o[v], ") "), v === "z" && (f = !0);
1042
+ c += "".concat(Iu[v] || v, "(").concat(o[v], ") "), v === "z" && (f = !0);
1043
1043
  }
1044
1044
  return !f && s ? c += "translateZ(0)" : c = c.trim(), r ? c = r(o, n ? "" : c) : l && n && (c = "none"), c;
1045
1045
  }
@@ -1053,22 +1053,22 @@ function ci(t) {
1053
1053
  var Ou = function(t, e) {
1054
1054
  return e && typeof t == "number" ? e.transform(t) : t;
1055
1055
  };
1056
- const fi = (t, e) => (n) => Math.max(Math.min(n, e), t), ae = (t) => t % 1 ? Number(t.toFixed(5)) : t, he = /(-)?([\d]*\.?[\d])+/g, On = /(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi, Bu = /^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;
1056
+ const fi = (t, e) => (n) => Math.max(Math.min(n, e), t), ae = (t) => t % 1 ? Number(t.toFixed(5)) : t, me = /(-)?([\d]*\.?[\d])+/g, On = /(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi, Du = /^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;
1057
1057
  function _e(t) {
1058
1058
  return typeof t == "string";
1059
1059
  }
1060
- const Ht = {
1060
+ const Wt = {
1061
1061
  test: (t) => typeof t == "number",
1062
1062
  parse: parseFloat,
1063
1063
  transform: (t) => t
1064
- }, se = Object.assign(Object.assign({}, Ht), { transform: fi(0, 1) }), Ie = Object.assign(Object.assign({}, Ht), { default: 1 }), xe = (t) => ({
1064
+ }, se = Object.assign(Object.assign({}, Wt), { transform: fi(0, 1) }), Ae = Object.assign(Object.assign({}, Wt), { default: 1 }), xe = (t) => ({
1065
1065
  test: (e) => _e(e) && e.endsWith(t) && e.split(" ").length === 1,
1066
1066
  parse: parseFloat,
1067
1067
  transform: (e) => `${e}${t}`
1068
- }), Lt = xe("deg"), xt = xe("%"), A = xe("px"), Du = xe("vh"), Nu = xe("vw"), Br = Object.assign(Object.assign({}, xt), { parse: (t) => xt.parse(t) / 100, transform: (t) => xt.transform(t * 100) }), Qn = (t, e) => (n) => !!(_e(n) && Bu.test(n) && n.startsWith(t) || e && Object.prototype.hasOwnProperty.call(n, e)), di = (t, e, n) => (r) => {
1068
+ }), Lt = xe("deg"), xt = xe("%"), M = xe("px"), Bu = xe("vh"), Nu = xe("vw"), Dr = Object.assign(Object.assign({}, xt), { parse: (t) => xt.parse(t) / 100, transform: (t) => xt.transform(t * 100) }), Qn = (t, e) => (n) => !!(_e(n) && Du.test(n) && n.startsWith(t) || e && Object.prototype.hasOwnProperty.call(n, e)), di = (t, e, n) => (r) => {
1069
1069
  if (!_e(r))
1070
1070
  return r;
1071
- const [o, a, i, s] = r.match(he);
1071
+ const [o, a, i, s] = r.match(me);
1072
1072
  return {
1073
1073
  [t]: parseFloat(o),
1074
1074
  [e]: parseFloat(a),
@@ -1079,7 +1079,7 @@ const Ht = {
1079
1079
  test: Qn("hsl", "hue"),
1080
1080
  parse: di("hue", "saturation", "lightness"),
1081
1081
  transform: ({ hue: t, saturation: e, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(t) + ", " + xt.transform(ae(e)) + ", " + xt.transform(ae(n)) + ", " + ae(se.transform(r)) + ")"
1082
- }, Fu = fi(0, 255), gn = Object.assign(Object.assign({}, Ht), { transform: (t) => Math.round(Fu(t)) }), Dt = {
1082
+ }, Fu = fi(0, 255), gn = Object.assign(Object.assign({}, Wt), { transform: (t) => Math.round(Fu(t)) }), Bt = {
1083
1083
  test: Qn("rgb", "red"),
1084
1084
  parse: di("red", "green", "blue"),
1085
1085
  transform: ({ red: t, green: e, blue: n, alpha: r = 1 }) => "rgba(" + gn.transform(t) + ", " + gn.transform(e) + ", " + gn.transform(n) + ", " + ae(se.transform(r)) + ")"
@@ -1093,33 +1093,33 @@ function ju(t) {
1093
1093
  alpha: o ? parseInt(o, 16) / 255 : 1
1094
1094
  };
1095
1095
  }
1096
- const Bn = {
1096
+ const Dn = {
1097
1097
  test: Qn("#"),
1098
1098
  parse: ju,
1099
- transform: Dt.transform
1099
+ transform: Bt.transform
1100
1100
  }, ct = {
1101
- test: (t) => Dt.test(t) || Bn.test(t) || $t.test(t),
1102
- parse: (t) => Dt.test(t) ? Dt.parse(t) : $t.test(t) ? $t.parse(t) : Bn.parse(t),
1103
- transform: (t) => _e(t) ? t : t.hasOwnProperty("red") ? Dt.transform(t) : $t.transform(t)
1101
+ test: (t) => Bt.test(t) || Dn.test(t) || $t.test(t),
1102
+ parse: (t) => Bt.test(t) ? Bt.parse(t) : $t.test(t) ? $t.parse(t) : Dn.parse(t),
1103
+ transform: (t) => _e(t) ? t : t.hasOwnProperty("red") ? Bt.transform(t) : $t.transform(t)
1104
1104
  }, vi = "${c}", pi = "${n}";
1105
1105
  function ku(t) {
1106
1106
  var e, n, r, o;
1107
- return isNaN(t) && _e(t) && ((n = (e = t.match(he)) === null || e === void 0 ? void 0 : e.length) !== null && n !== void 0 ? n : 0) + ((o = (r = t.match(On)) === null || r === void 0 ? void 0 : r.length) !== null && o !== void 0 ? o : 0) > 0;
1107
+ return isNaN(t) && _e(t) && ((n = (e = t.match(me)) === null || e === void 0 ? void 0 : e.length) !== null && n !== void 0 ? n : 0) + ((o = (r = t.match(On)) === null || r === void 0 ? void 0 : r.length) !== null && o !== void 0 ? o : 0) > 0;
1108
1108
  }
1109
- function mi(t) {
1109
+ function hi(t) {
1110
1110
  typeof t == "number" && (t = `${t}`);
1111
1111
  const e = [];
1112
1112
  let n = 0;
1113
1113
  const r = t.match(On);
1114
1114
  r && (n = r.length, t = t.replace(On, vi), e.push(...r.map(ct.parse)));
1115
- const o = t.match(he);
1116
- return o && (t = t.replace(he, pi), e.push(...o.map(Ht.parse))), { values: e, numColors: n, tokenised: t };
1115
+ const o = t.match(me);
1116
+ return o && (t = t.replace(me, pi), e.push(...o.map(Wt.parse))), { values: e, numColors: n, tokenised: t };
1117
1117
  }
1118
- function hi(t) {
1119
- return mi(t).values;
1118
+ function mi(t) {
1119
+ return hi(t).values;
1120
1120
  }
1121
1121
  function gi(t) {
1122
- const { values: e, numColors: n, tokenised: r } = mi(t), o = e.length;
1122
+ const { values: e, numColors: n, tokenised: r } = hi(t), o = e.length;
1123
1123
  return (a) => {
1124
1124
  let i = r;
1125
1125
  for (let s = 0; s < o; s++)
@@ -1129,90 +1129,90 @@ function gi(t) {
1129
1129
  }
1130
1130
  const $u = (t) => typeof t == "number" ? 0 : t;
1131
1131
  function Uu(t) {
1132
- const e = hi(t);
1132
+ const e = mi(t);
1133
1133
  return gi(t)(e.map($u));
1134
1134
  }
1135
- const At = { test: ku, parse: hi, createTransformer: gi, getAnimatableNone: Uu }, Wu = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
1136
- function Hu(t) {
1135
+ const Mt = { test: ku, parse: mi, createTransformer: gi, getAnimatableNone: Uu }, Hu = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
1136
+ function Wu(t) {
1137
1137
  let [e, n] = t.slice(0, -1).split("(");
1138
1138
  if (e === "drop-shadow")
1139
1139
  return t;
1140
- const [r] = n.match(he) || [];
1140
+ const [r] = n.match(me) || [];
1141
1141
  if (!r)
1142
1142
  return t;
1143
1143
  const o = n.replace(r, "");
1144
- let a = Wu.has(e) ? 1 : 0;
1144
+ let a = Hu.has(e) ? 1 : 0;
1145
1145
  return r !== n && (a *= 100), e + "(" + a + o + ")";
1146
1146
  }
1147
- const zu = /([a-z-]*)\(.*?\)/g, Dn = Object.assign(Object.assign({}, At), { getAnimatableNone: (t) => {
1147
+ const zu = /([a-z-]*)\(.*?\)/g, Bn = Object.assign(Object.assign({}, Mt), { getAnimatableNone: (t) => {
1148
1148
  const e = t.match(zu);
1149
- return e ? e.map(Hu).join(" ") : t;
1149
+ return e ? e.map(Wu).join(" ") : t;
1150
1150
  } });
1151
- var Dr = b(b({}, Ht), { transform: Math.round }), yi = {
1151
+ var Br = b(b({}, Wt), { transform: Math.round }), yi = {
1152
1152
  // Border props
1153
- borderWidth: A,
1154
- borderTopWidth: A,
1155
- borderRightWidth: A,
1156
- borderBottomWidth: A,
1157
- borderLeftWidth: A,
1158
- borderRadius: A,
1159
- radius: A,
1160
- borderTopLeftRadius: A,
1161
- borderTopRightRadius: A,
1162
- borderBottomRightRadius: A,
1163
- borderBottomLeftRadius: A,
1153
+ borderWidth: M,
1154
+ borderTopWidth: M,
1155
+ borderRightWidth: M,
1156
+ borderBottomWidth: M,
1157
+ borderLeftWidth: M,
1158
+ borderRadius: M,
1159
+ radius: M,
1160
+ borderTopLeftRadius: M,
1161
+ borderTopRightRadius: M,
1162
+ borderBottomRightRadius: M,
1163
+ borderBottomLeftRadius: M,
1164
1164
  // Positioning props
1165
- width: A,
1166
- maxWidth: A,
1167
- height: A,
1168
- maxHeight: A,
1169
- size: A,
1170
- top: A,
1171
- right: A,
1172
- bottom: A,
1173
- left: A,
1165
+ width: M,
1166
+ maxWidth: M,
1167
+ height: M,
1168
+ maxHeight: M,
1169
+ size: M,
1170
+ top: M,
1171
+ right: M,
1172
+ bottom: M,
1173
+ left: M,
1174
1174
  // Spacing props
1175
- padding: A,
1176
- paddingTop: A,
1177
- paddingRight: A,
1178
- paddingBottom: A,
1179
- paddingLeft: A,
1180
- margin: A,
1181
- marginTop: A,
1182
- marginRight: A,
1183
- marginBottom: A,
1184
- marginLeft: A,
1175
+ padding: M,
1176
+ paddingTop: M,
1177
+ paddingRight: M,
1178
+ paddingBottom: M,
1179
+ paddingLeft: M,
1180
+ margin: M,
1181
+ marginTop: M,
1182
+ marginRight: M,
1183
+ marginBottom: M,
1184
+ marginLeft: M,
1185
1185
  // Transform props
1186
1186
  rotate: Lt,
1187
1187
  rotateX: Lt,
1188
1188
  rotateY: Lt,
1189
1189
  rotateZ: Lt,
1190
- scale: Ie,
1191
- scaleX: Ie,
1192
- scaleY: Ie,
1193
- scaleZ: Ie,
1190
+ scale: Ae,
1191
+ scaleX: Ae,
1192
+ scaleY: Ae,
1193
+ scaleZ: Ae,
1194
1194
  skew: Lt,
1195
1195
  skewX: Lt,
1196
1196
  skewY: Lt,
1197
- distance: A,
1198
- translateX: A,
1199
- translateY: A,
1200
- translateZ: A,
1201
- x: A,
1202
- y: A,
1203
- z: A,
1204
- perspective: A,
1205
- transformPerspective: A,
1197
+ distance: M,
1198
+ translateX: M,
1199
+ translateY: M,
1200
+ translateZ: M,
1201
+ x: M,
1202
+ y: M,
1203
+ z: M,
1204
+ perspective: M,
1205
+ transformPerspective: M,
1206
1206
  opacity: se,
1207
- originX: Br,
1208
- originY: Br,
1209
- originZ: A,
1207
+ originX: Dr,
1208
+ originY: Dr,
1209
+ originZ: M,
1210
1210
  // Misc
1211
- zIndex: Dr,
1211
+ zIndex: Br,
1212
1212
  // SVG
1213
1213
  fillOpacity: se,
1214
1214
  strokeOpacity: se,
1215
- numOctaves: Dr
1215
+ numOctaves: Br
1216
1216
  };
1217
1217
  function tr(t, e, n, r) {
1218
1218
  var o, a = t.style, i = t.vars, s = t.transform, u = t.transformKeys, l = t.transformOrigin;
@@ -1224,11 +1224,11 @@ function tr(t, e, n, r) {
1224
1224
  i[p] = v;
1225
1225
  continue;
1226
1226
  }
1227
- var m = yi[p], y = Ou(v, m);
1227
+ var h = yi[p], y = Ou(v, h);
1228
1228
  if (we(p)) {
1229
1229
  if (c = !0, s[p] = y, u.push(p), !d)
1230
1230
  continue;
1231
- v !== ((o = m.default) !== null && o !== void 0 ? o : 0) && (d = !1);
1231
+ v !== ((o = h.default) !== null && o !== void 0 ? o : 0) && (d = !1);
1232
1232
  } else ui(p) ? (l[p] = y, f = !0) : a[p] = y;
1233
1233
  }
1234
1234
  c ? a.transform = Ru(t, n, d, r) : r ? a.transform = r({}, "") : !e.transform && a.transform && (a.transform = "none"), f && (a.transformOrigin = Lu(l));
@@ -1244,7 +1244,7 @@ var er = function() {
1244
1244
  };
1245
1245
  function Si(t, e, n) {
1246
1246
  for (var r in e)
1247
- !It(e[r]) && !li(r, n) && (t[r] = e[r]);
1247
+ !At(e[r]) && !li(r, n) && (t[r] = e[r]);
1248
1248
  }
1249
1249
  function Gu(t, e, n) {
1250
1250
  var r = t.transformTemplate;
@@ -1344,7 +1344,7 @@ function Zu(t, e, n) {
1344
1344
  return r;
1345
1345
  }
1346
1346
  function Nr(t, e, n) {
1347
- return typeof t == "string" ? t : A.transform(e + n * t);
1347
+ return typeof t == "string" ? t : M.transform(e + n * t);
1348
1348
  }
1349
1349
  function Ju(t, e, n) {
1350
1350
  var r = Nr(e, t.x, t.width), o = Nr(n, t.y, t.height);
@@ -1357,15 +1357,15 @@ var Qu = {
1357
1357
  function tl(t, e, n, r, o) {
1358
1358
  n === void 0 && (n = 1), r === void 0 && (r = 0), t.pathLength = 1;
1359
1359
  var a = Qu;
1360
- t[a.offset] = A.transform(-r);
1361
- var i = A.transform(e), s = A.transform(n);
1360
+ t[a.offset] = M.transform(-r);
1361
+ var i = M.transform(e), s = M.transform(n);
1362
1362
  t[a.array] = "".concat(i, " ").concat(s);
1363
1363
  }
1364
1364
  function nr(t, e, n, r) {
1365
- var o = e.attrX, a = e.attrY, i = e.originX, s = e.originY, u = e.pathLength, l = e.pathSpacing, c = l === void 0 ? 1 : l, f = e.pathOffset, d = f === void 0 ? 0 : f, p = ht(e, ["attrX", "attrY", "originX", "originY", "pathLength", "pathSpacing", "pathOffset"]);
1365
+ var o = e.attrX, a = e.attrY, i = e.originX, s = e.originY, u = e.pathLength, l = e.pathSpacing, c = l === void 0 ? 1 : l, f = e.pathOffset, d = f === void 0 ? 0 : f, p = mt(e, ["attrX", "attrY", "originX", "originY", "pathLength", "pathSpacing", "pathOffset"]);
1366
1366
  tr(t, p, n, r), t.attrs = t.style, t.style = {};
1367
- var v = t.attrs, m = t.style, y = t.dimensions;
1368
- v.transform && (y && (m.transform = v.transform), delete v.transform), y && (i !== void 0 || s !== void 0 || m.transform) && (m.transformOrigin = Ju(y, i !== void 0 ? i : 0.5, s !== void 0 ? s : 0.5)), o !== void 0 && (v.x = o), a !== void 0 && (v.y = a), u !== void 0 && tl(v, u, c, d);
1367
+ var v = t.attrs, h = t.style, y = t.dimensions;
1368
+ v.transform && (y && (h.transform = v.transform), delete v.transform), y && (i !== void 0 || s !== void 0 || h.transform) && (h.transformOrigin = Ju(y, i !== void 0 ? i : 0.5, s !== void 0 ? s : 0.5)), o !== void 0 && (v.x = o), a !== void 0 && (v.y = a), u !== void 0 && tl(v, u, c, d);
1369
1369
  }
1370
1370
  var Pi = function() {
1371
1371
  return b(b({}, er()), { attrs: {} });
@@ -1385,7 +1385,7 @@ function nl(t) {
1385
1385
  t === void 0 && (t = !1);
1386
1386
  var e = function(n, r, o, a, i, s) {
1387
1387
  var u = i.latestValues, l = Jn(n) ? el : Yu, c = l(r, u, s), f = Zu(r, typeof n == "string", t), d = b(b(b({}, f), c), { ref: a });
1388
- return o && (d["data-projection-id"] = o), Ma(n, d);
1388
+ return o && (d["data-projection-id"] = o), Ia(n, d);
1389
1389
  };
1390
1390
  return e;
1391
1391
  }
@@ -1428,13 +1428,13 @@ function Ti(t, e, n, r) {
1428
1428
  function rr(t) {
1429
1429
  var e = t.style, n = {};
1430
1430
  for (var r in e)
1431
- (It(e[r]) || li(r, t)) && (n[r] = e[r]);
1431
+ (At(e[r]) || li(r, t)) && (n[r] = e[r]);
1432
1432
  return n;
1433
1433
  }
1434
1434
  function Ci(t) {
1435
1435
  var e = rr(t);
1436
1436
  for (var n in t)
1437
- if (It(t[n])) {
1437
+ if (At(t[n])) {
1438
1438
  var r = n === "x" || n === "y" ? "attr" + n.toUpperCase() : n;
1439
1439
  e[r] = t[n];
1440
1440
  }
@@ -1447,11 +1447,11 @@ var ge = function(t) {
1447
1447
  return Array.isArray(t);
1448
1448
  }, il = function(t) {
1449
1449
  return !!(t && typeof t == "object" && t.mix && t.toValue);
1450
- }, Ei = function(t) {
1450
+ }, Vi = function(t) {
1451
1451
  return ge(t) ? t[t.length - 1] || 0 : t;
1452
1452
  };
1453
1453
  function Ne(t) {
1454
- var e = It(t) ? t.get() : t;
1454
+ var e = At(t) ? t.get() : t;
1455
1455
  return il(e) ? e.toValue() : e;
1456
1456
  }
1457
1457
  function Fr(t, e, n, r) {
@@ -1463,7 +1463,7 @@ function Fr(t, e, n, r) {
1463
1463
  return i(e, u, s);
1464
1464
  }), s;
1465
1465
  }
1466
- var Vi = function(t) {
1466
+ var Ei = function(t) {
1467
1467
  return function(e, n) {
1468
1468
  var r = st(Ze), o = st(Je);
1469
1469
  return n ? Fr(t, e, r, o) : Pe(function() {
@@ -1480,12 +1480,12 @@ function al(t, e, n, r) {
1480
1480
  var d = a || u === !1, p = d ? l : u;
1481
1481
  if (p && typeof p != "boolean" && !or(p)) {
1482
1482
  var v = Array.isArray(p) ? p : [p];
1483
- v.forEach(function(m) {
1484
- var y = oi(t, m);
1483
+ v.forEach(function(h) {
1484
+ var y = oi(t, h);
1485
1485
  if (y) {
1486
- var h = y.transitionEnd;
1486
+ var m = y.transitionEnd;
1487
1487
  y.transition;
1488
- var S = ht(y, ["transitionEnd", "transition"]);
1488
+ var S = mt(y, ["transitionEnd", "transition"]);
1489
1489
  for (var g in S) {
1490
1490
  var w = S[g];
1491
1491
  if (Array.isArray(w)) {
@@ -1494,15 +1494,15 @@ function al(t, e, n, r) {
1494
1494
  }
1495
1495
  w !== null && (o[g] = w);
1496
1496
  }
1497
- for (var g in h)
1498
- o[g] = h[g];
1497
+ for (var g in m)
1498
+ o[g] = m[g];
1499
1499
  }
1500
1500
  });
1501
1501
  }
1502
1502
  return o;
1503
1503
  }
1504
1504
  var sl = {
1505
- useVisualState: Vi({
1505
+ useVisualState: Ei({
1506
1506
  scrapeMotionValuesFromProps: Ci,
1507
1507
  createRenderState: Pi,
1508
1508
  onMount: function(t, e, n) {
@@ -1521,7 +1521,7 @@ var sl = {
1521
1521
  }
1522
1522
  })
1523
1523
  }, ul = {
1524
- useVisualState: Vi({
1524
+ useVisualState: Ei({
1525
1525
  scrapeMotionValuesFromProps: rr,
1526
1526
  createRenderState: er
1527
1527
  })
@@ -1556,10 +1556,10 @@ function cl(t) {
1556
1556
  };
1557
1557
  Nn(n, "focus", e ? r : void 0), Nn(n, "blur", e ? o : void 0);
1558
1558
  }
1559
- function Ii(t) {
1559
+ function Ai(t) {
1560
1560
  return typeof PointerEvent < "u" && t instanceof PointerEvent ? t.pointerType === "mouse" : t instanceof MouseEvent;
1561
1561
  }
1562
- function Ai(t) {
1562
+ function Mi(t) {
1563
1563
  var e = !!t.touches;
1564
1564
  return e;
1565
1565
  }
@@ -1586,18 +1586,18 @@ function pl(t, e) {
1586
1586
  }
1587
1587
  function ir(t, e) {
1588
1588
  return e === void 0 && (e = "page"), {
1589
- point: Ai(t) ? vl(t, e) : pl(t, e)
1589
+ point: Mi(t) ? vl(t, e) : pl(t, e)
1590
1590
  };
1591
1591
  }
1592
- var Mi = function(t, e) {
1592
+ var Ii = function(t, e) {
1593
1593
  e === void 0 && (e = !1);
1594
1594
  var n = function(r) {
1595
1595
  return t(r, ir(r));
1596
1596
  };
1597
1597
  return e ? fl(n) : n;
1598
- }, ml = function() {
1599
- return Qt && window.onpointerdown === null;
1600
1598
  }, hl = function() {
1599
+ return Qt && window.onpointerdown === null;
1600
+ }, ml = function() {
1601
1601
  return Qt && window.ontouchstart === null;
1602
1602
  }, gl = function() {
1603
1603
  return Qt && window.onmousedown === null;
@@ -1617,13 +1617,13 @@ var Mi = function(t, e) {
1617
1617
  pointercancel: "touchcancel"
1618
1618
  };
1619
1619
  function Ri(t) {
1620
- return ml() ? t : hl() ? Sl[t] : gl() ? yl[t] : t;
1620
+ return hl() ? t : ml() ? Sl[t] : gl() ? yl[t] : t;
1621
1621
  }
1622
1622
  function qt(t, e, n, r) {
1623
- return en(t, Ri(e), Mi(n, e === "pointerdown"), r);
1623
+ return en(t, Ri(e), Ii(n, e === "pointerdown"), r);
1624
1624
  }
1625
1625
  function Ue(t, e, n, r) {
1626
- return Nn(t, Ri(e), n && Mi(n, e === "pointerdown"), r);
1626
+ return Nn(t, Ri(e), n && Ii(n, e === "pointerdown"), r);
1627
1627
  }
1628
1628
  function Li(t) {
1629
1629
  var e = null;
@@ -1649,22 +1649,22 @@ function Oi(t) {
1649
1649
  }
1650
1650
  return e;
1651
1651
  }
1652
- function Bi() {
1652
+ function Di() {
1653
1653
  var t = Oi(!0);
1654
1654
  return t ? (t(), !1) : !0;
1655
1655
  }
1656
1656
  function $r(t, e, n) {
1657
1657
  return function(r, o) {
1658
1658
  var a;
1659
- !Ii(r) || Bi() || ((a = t.animationState) === null || a === void 0 || a.setActive(z.Hover, e), n == null || n(r, o));
1659
+ !Ai(r) || Di() || ((a = t.animationState) === null || a === void 0 || a.setActive(z.Hover, e), n == null || n(r, o));
1660
1660
  };
1661
1661
  }
1662
1662
  function bl(t) {
1663
1663
  var e = t.onHoverStart, n = t.onHoverEnd, r = t.whileHover, o = t.visualElement;
1664
1664
  Ue(o, "pointerenter", e || r ? $r(o, !0, e) : void 0, { passive: !e }), Ue(o, "pointerleave", n || r ? $r(o, !1, n) : void 0, { passive: !n });
1665
1665
  }
1666
- var Di = function(t, e) {
1667
- return e ? t === e ? !0 : Di(t, e.parentElement) : !1;
1666
+ var Bi = function(t, e) {
1667
+ return e ? t === e ? !0 : Bi(t, e.parentElement) : !1;
1668
1668
  };
1669
1669
  function Ni(t) {
1670
1670
  return k(function() {
@@ -1673,17 +1673,17 @@ function Ni(t) {
1673
1673
  };
1674
1674
  }, []);
1675
1675
  }
1676
- const We = (t, e, n) => Math.min(Math.max(n, t), e), Ur = 1e-3, Pl = 0.01, Wr = 10, wl = 0.05, _l = 1;
1676
+ const He = (t, e, n) => Math.min(Math.max(n, t), e), Ur = 1e-3, Pl = 0.01, Hr = 10, wl = 0.05, _l = 1;
1677
1677
  function xl({ duration: t = 800, bounce: e = 0.25, velocity: n = 0, mass: r = 1 }) {
1678
1678
  let o, a;
1679
- be(t <= Wr * 1e3, "Spring duration must be 10 seconds or less");
1679
+ be(t <= Hr * 1e3, "Spring duration must be 10 seconds or less");
1680
1680
  let i = 1 - e;
1681
- i = We(wl, _l, i), t = We(Pl, Wr, t / 1e3), i < 1 ? (o = (l) => {
1681
+ i = He(wl, _l, i), t = He(Pl, Hr, t / 1e3), i < 1 ? (o = (l) => {
1682
1682
  const c = l * i, f = c * t, d = c - n, p = Fn(l, i), v = Math.exp(-f);
1683
1683
  return Ur - d / p * v;
1684
1684
  }, a = (l) => {
1685
- const f = l * i * t, d = f * n + n, p = Math.pow(i, 2) * Math.pow(l, 2) * t, v = Math.exp(-f), m = Fn(Math.pow(l, 2), i);
1686
- return (-o(l) + Ur > 0 ? -1 : 1) * ((d - p) * v) / m;
1685
+ const f = l * i * t, d = f * n + n, p = Math.pow(i, 2) * Math.pow(l, 2) * t, v = Math.exp(-f), h = Fn(Math.pow(l, 2), i);
1686
+ return (-o(l) + Ur > 0 ? -1 : 1) * ((d - p) * v) / h;
1687
1687
  }) : (o = (l) => {
1688
1688
  const c = Math.exp(-l * t), f = (l - n) * t + 1;
1689
1689
  return -1e-3 + c * f;
@@ -1717,56 +1717,56 @@ function Cl(t, e, n) {
1717
1717
  function Fn(t, e) {
1718
1718
  return t * Math.sqrt(1 - e * e);
1719
1719
  }
1720
- const El = ["duration", "bounce"], Vl = ["stiffness", "damping", "mass"];
1721
- function Hr(t, e) {
1720
+ const Vl = ["duration", "bounce"], El = ["stiffness", "damping", "mass"];
1721
+ function Wr(t, e) {
1722
1722
  return e.some((n) => t[n] !== void 0);
1723
1723
  }
1724
- function Il(t) {
1724
+ function Al(t) {
1725
1725
  let e = Object.assign({ velocity: 0, stiffness: 100, damping: 10, mass: 1, isResolvedFromDuration: !1 }, t);
1726
- if (!Hr(t, Vl) && Hr(t, El)) {
1726
+ if (!Wr(t, El) && Wr(t, Vl)) {
1727
1727
  const n = xl(t);
1728
1728
  e = Object.assign(Object.assign(Object.assign({}, e), n), { velocity: 0, mass: 1 }), e.isResolvedFromDuration = !0;
1729
1729
  }
1730
1730
  return e;
1731
1731
  }
1732
1732
  function ar(t) {
1733
- var { from: e = 0, to: n = 1, restSpeed: r = 2, restDelta: o } = t, a = ht(t, ["from", "to", "restSpeed", "restDelta"]);
1733
+ var { from: e = 0, to: n = 1, restSpeed: r = 2, restDelta: o } = t, a = mt(t, ["from", "to", "restSpeed", "restDelta"]);
1734
1734
  const i = { done: !1, value: e };
1735
- let { stiffness: s, damping: u, mass: l, velocity: c, duration: f, isResolvedFromDuration: d } = Il(a), p = zr, v = zr;
1736
- function m() {
1737
- const y = c ? -(c / 1e3) : 0, h = n - e, S = u / (2 * Math.sqrt(s * l)), g = Math.sqrt(s / l) / 1e3;
1735
+ let { stiffness: s, damping: u, mass: l, velocity: c, duration: f, isResolvedFromDuration: d } = Al(a), p = zr, v = zr;
1736
+ function h() {
1737
+ const y = c ? -(c / 1e3) : 0, m = n - e, S = u / (2 * Math.sqrt(s * l)), g = Math.sqrt(s / l) / 1e3;
1738
1738
  if (o === void 0 && (o = Math.min(Math.abs(n - e) / 100, 0.4)), S < 1) {
1739
1739
  const w = Fn(g, S);
1740
1740
  p = (x) => {
1741
1741
  const T = Math.exp(-S * g * x);
1742
- return n - T * ((y + S * g * h) / w * Math.sin(w * x) + h * Math.cos(w * x));
1742
+ return n - T * ((y + S * g * m) / w * Math.sin(w * x) + m * Math.cos(w * x));
1743
1743
  }, v = (x) => {
1744
1744
  const T = Math.exp(-S * g * x);
1745
- return S * g * T * (Math.sin(w * x) * (y + S * g * h) / w + h * Math.cos(w * x)) - T * (Math.cos(w * x) * (y + S * g * h) - w * h * Math.sin(w * x));
1745
+ return S * g * T * (Math.sin(w * x) * (y + S * g * m) / w + m * Math.cos(w * x)) - T * (Math.cos(w * x) * (y + S * g * m) - w * m * Math.sin(w * x));
1746
1746
  };
1747
1747
  } else if (S === 1)
1748
- p = (w) => n - Math.exp(-g * w) * (h + (y + g * h) * w);
1748
+ p = (w) => n - Math.exp(-g * w) * (m + (y + g * m) * w);
1749
1749
  else {
1750
1750
  const w = g * Math.sqrt(S * S - 1);
1751
1751
  p = (x) => {
1752
1752
  const T = Math.exp(-S * g * x), R = Math.min(w * x, 300);
1753
- return n - T * ((y + S * g * h) * Math.sinh(R) + w * h * Math.cosh(R)) / w;
1753
+ return n - T * ((y + S * g * m) * Math.sinh(R) + w * m * Math.cosh(R)) / w;
1754
1754
  };
1755
1755
  }
1756
1756
  }
1757
- return m(), {
1757
+ return h(), {
1758
1758
  next: (y) => {
1759
- const h = p(y);
1759
+ const m = p(y);
1760
1760
  if (d)
1761
1761
  i.done = y >= f;
1762
1762
  else {
1763
- const S = v(y) * 1e3, g = Math.abs(S) <= r, w = Math.abs(n - h) <= o;
1763
+ const S = v(y) * 1e3, g = Math.abs(S) <= r, w = Math.abs(n - m) <= o;
1764
1764
  i.done = g && w;
1765
1765
  }
1766
- return i.value = i.done ? n : h, i;
1766
+ return i.value = i.done ? n : m, i;
1767
1767
  },
1768
1768
  flipTarget: () => {
1769
- c = -c, [e, n] = [n, e], m();
1769
+ c = -c, [e, n] = [n, e], h();
1770
1770
  }
1771
1771
  };
1772
1772
  }
@@ -1794,18 +1794,18 @@ function Gr({ hue: t, saturation: e, lightness: n, alpha: r }) {
1794
1794
  alpha: r
1795
1795
  };
1796
1796
  }
1797
- const Al = (t, e, n) => {
1797
+ const Ml = (t, e, n) => {
1798
1798
  const r = t * t, o = e * e;
1799
1799
  return Math.sqrt(Math.max(0, n * (o - r) + r));
1800
- }, Ml = [Bn, Dt, $t], Kr = (t) => Ml.find((e) => e.test(t)), Yr = (t) => `'${t}' is not an animatable color. Use the equivalent color code instead.`, Fi = (t, e) => {
1800
+ }, Il = [Dn, Bt, $t], Kr = (t) => Il.find((e) => e.test(t)), Yr = (t) => `'${t}' is not an animatable color. Use the equivalent color code instead.`, Fi = (t, e) => {
1801
1801
  let n = Kr(t), r = Kr(e);
1802
1802
  vt(!!n, Yr(t)), vt(!!r, Yr(e));
1803
1803
  let o = n.parse(t), a = r.parse(e);
1804
- n === $t && (o = Gr(o), n = Dt), r === $t && (a = Gr(a), r = Dt);
1804
+ n === $t && (o = Gr(o), n = Bt), r === $t && (a = Gr(a), r = Bt);
1805
1805
  const i = Object.assign({}, o);
1806
1806
  return (s) => {
1807
1807
  for (const u in i)
1808
- u !== "alpha" && (i[u] = Al(o[u], a[u], s));
1808
+ u !== "alpha" && (i[u] = Ml(o[u], a[u], s));
1809
1809
  return i.alpha = tt(o.alpha, a.alpha, s), n.transform(i);
1810
1810
  };
1811
1811
  }, jn = (t) => typeof t == "number", Rl = (t, e) => (n) => e(t(n)), nn = (...t) => t.reduce(Rl);
@@ -1830,17 +1830,17 @@ const ki = (t, e) => {
1830
1830
  };
1831
1831
  };
1832
1832
  function qr(t) {
1833
- const e = At.parse(t), n = e.length;
1833
+ const e = Mt.parse(t), n = e.length;
1834
1834
  let r = 0, o = 0, a = 0;
1835
1835
  for (let i = 0; i < n; i++)
1836
1836
  r || typeof e[i] == "number" ? r++ : e[i].hue !== void 0 ? a++ : o++;
1837
1837
  return { parsed: e, numNumbers: r, numRGB: o, numHSL: a };
1838
1838
  }
1839
1839
  const $i = (t, e) => {
1840
- const n = At.createTransformer(e), r = qr(t), o = qr(e);
1840
+ const n = Mt.createTransformer(e), r = qr(t), o = qr(e);
1841
1841
  return r.numHSL === o.numHSL && r.numRGB === o.numRGB && r.numNumbers >= o.numNumbers ? nn(ki(r.parsed, o.parsed), n) : (be(!0, `Complex values '${t}' 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.`), (i) => `${i > 0 ? e : t}`);
1842
1842
  }, Ol = (t, e) => (n) => tt(t, e, n);
1843
- function Bl(t) {
1843
+ function Dl(t) {
1844
1844
  if (typeof t == "number")
1845
1845
  return Ol;
1846
1846
  if (typeof t == "string")
@@ -1850,8 +1850,8 @@ function Bl(t) {
1850
1850
  if (typeof t == "object")
1851
1851
  return Ll;
1852
1852
  }
1853
- function Dl(t, e, n) {
1854
- const r = [], o = n || Bl(t[0]), a = t.length - 1;
1853
+ function Bl(t, e, n) {
1854
+ const r = [], o = n || Dl(t[0]), a = t.length - 1;
1855
1855
  for (let i = 0; i < a; i++) {
1856
1856
  let s = o(t[i], t[i + 1]);
1857
1857
  if (e) {
@@ -1882,18 +1882,18 @@ function Fl(t, e) {
1882
1882
  function Ui(t, e, { clamp: n = !0, ease: r, mixer: o } = {}) {
1883
1883
  const a = t.length;
1884
1884
  vt(a === e.length, "Both input and output ranges must be the same length"), vt(!r || !Array.isArray(r) || r.length === a - 1, "Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."), t[0] > t[a - 1] && (t = [].concat(t), e = [].concat(e), t.reverse(), e.reverse());
1885
- const i = Dl(e, r, o), s = a === 2 ? Nl(t, i) : Fl(t, i);
1886
- return n ? (u) => s(We(t[0], t[a - 1], u)) : s;
1885
+ const i = Bl(e, r, o), s = a === 2 ? Nl(t, i) : Fl(t, i);
1886
+ return n ? (u) => s(He(t[0], t[a - 1], u)) : s;
1887
1887
  }
1888
- const rn = (t) => (e) => 1 - t(1 - e), sr = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, jl = (t) => (e) => Math.pow(e, t), Wi = (t) => (e) => e * e * ((t + 1) * e - t), kl = (t) => {
1889
- const e = Wi(t);
1888
+ const rn = (t) => (e) => 1 - t(1 - e), sr = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, jl = (t) => (e) => Math.pow(e, t), Hi = (t) => (e) => e * e * ((t + 1) * e - t), kl = (t) => {
1889
+ const e = Hi(t);
1890
1890
  return (n) => (n *= 2) < 1 ? 0.5 * e(n) : 0.5 * (2 - Math.pow(2, -10 * (n - 1)));
1891
- }, Hi = 1.525, $l = 4 / 11, Ul = 8 / 11, Wl = 9 / 10, ur = (t) => t, lr = jl(2), Hl = rn(lr), zi = sr(lr), Gi = (t) => 1 - Math.sin(Math.acos(t)), cr = rn(Gi), zl = sr(cr), fr = Wi(Hi), Gl = rn(fr), Kl = sr(fr), Yl = kl(Hi), ql = 4356 / 361, Xl = 35442 / 1805, Zl = 16061 / 1805, He = (t) => {
1891
+ }, Wi = 1.525, $l = 4 / 11, Ul = 8 / 11, Hl = 9 / 10, ur = (t) => t, lr = jl(2), Wl = rn(lr), zi = sr(lr), Gi = (t) => 1 - Math.sin(Math.acos(t)), cr = rn(Gi), zl = sr(cr), fr = Hi(Wi), Gl = rn(fr), Kl = sr(fr), Yl = kl(Wi), ql = 4356 / 361, Xl = 35442 / 1805, Zl = 16061 / 1805, We = (t) => {
1892
1892
  if (t === 1 || t === 0)
1893
1893
  return t;
1894
1894
  const e = t * t;
1895
- return t < $l ? 7.5625 * e : t < Ul ? 9.075 * e - 9.9 * t + 3.4 : t < Wl ? ql * e - Xl * t + Zl : 10.8 * t * t - 20.52 * t + 10.72;
1896
- }, Jl = rn(He), Ql = (t) => t < 0.5 ? 0.5 * (1 - He(1 - t * 2)) : 0.5 * He(t * 2 - 1) + 0.5;
1895
+ return t < $l ? 7.5625 * e : t < Ul ? 9.075 * e - 9.9 * t + 3.4 : t < Hl ? ql * e - Xl * t + Zl : 10.8 * t * t - 20.52 * t + 10.72;
1896
+ }, Jl = rn(We), Ql = (t) => t < 0.5 ? 0.5 * (1 - We(1 - t * 2)) : 0.5 * We(t * 2 - 1) + 0.5;
1897
1897
  function tc(t, e) {
1898
1898
  return t.map(() => e || zi).splice(0, t.length - 1);
1899
1899
  }
@@ -2004,32 +2004,32 @@ const dc = (t) => {
2004
2004
  };
2005
2005
  };
2006
2006
  function Zi(t) {
2007
- var e, n, { from: r, autoplay: o = !0, driver: a = dc, elapsed: i = 0, repeat: s = 0, repeatType: u = "loop", repeatDelay: l = 0, onPlay: c, onStop: f, onComplete: d, onRepeat: p, onUpdate: v } = t, m = ht(t, ["from", "autoplay", "driver", "elapsed", "repeat", "repeatType", "repeatDelay", "onPlay", "onStop", "onComplete", "onRepeat", "onUpdate"]);
2008
- let { to: y } = m, h, S = 0, g = m.duration, w, x = !1, T = !0, R;
2009
- const B = oc(m);
2010
- !((n = (e = B).needsInterpolation) === null || n === void 0) && n.call(e, r, y) && (R = Ui([0, 100], [r, y], {
2007
+ var e, n, { from: r, autoplay: o = !0, driver: a = dc, elapsed: i = 0, repeat: s = 0, repeatType: u = "loop", repeatDelay: l = 0, onPlay: c, onStop: f, onComplete: d, onRepeat: p, onUpdate: v } = t, h = mt(t, ["from", "autoplay", "driver", "elapsed", "repeat", "repeatType", "repeatDelay", "onPlay", "onStop", "onComplete", "onRepeat", "onUpdate"]);
2008
+ let { to: y } = h, m, S = 0, g = h.duration, w, x = !1, T = !0, R;
2009
+ const D = oc(h);
2010
+ !((n = (e = D).needsInterpolation) === null || n === void 0) && n.call(e, r, y) && (R = Ui([0, 100], [r, y], {
2011
2011
  clamp: !1
2012
2012
  }), r = 0, y = 100);
2013
- const V = B(Object.assign(Object.assign({}, m), { from: r, to: y }));
2013
+ const E = D(Object.assign(Object.assign({}, h), { from: r, to: y }));
2014
2014
  function F() {
2015
- S++, u === "reverse" ? (T = S % 2 === 0, i = cc(i, g, l, T)) : (i = Xi(i, g, l), u === "mirror" && V.flipTarget()), x = !1, p && p();
2015
+ S++, u === "reverse" ? (T = S % 2 === 0, i = cc(i, g, l, T)) : (i = Xi(i, g, l), u === "mirror" && E.flipTarget()), x = !1, p && p();
2016
2016
  }
2017
2017
  function J() {
2018
- h.stop(), d && d();
2018
+ m.stop(), d && d();
2019
2019
  }
2020
- function $(I) {
2021
- if (T || (I = -I), i += I, !x) {
2022
- const G = V.next(Math.max(0, i));
2020
+ function $(A) {
2021
+ if (T || (A = -A), i += A, !x) {
2022
+ const G = E.next(Math.max(0, i));
2023
2023
  w = G.value, R && (w = R(w)), x = T ? G.done : i <= 0;
2024
2024
  }
2025
2025
  v == null || v(w), x && (S === 0 && (g ?? (g = i)), S < s ? fc(i, g, l, T) && F() : J());
2026
2026
  }
2027
2027
  function j() {
2028
- c == null || c(), h = a($), h.start();
2028
+ c == null || c(), m = a($), m.start();
2029
2029
  }
2030
2030
  return o && j(), {
2031
2031
  stop: () => {
2032
- f == null || f(), h.stop();
2032
+ f == null || f(), m.stop();
2033
2033
  }
2034
2034
  };
2035
2035
  }
@@ -2038,13 +2038,13 @@ function Ji(t, e) {
2038
2038
  }
2039
2039
  function vc({ from: t = 0, velocity: e = 0, min: n, max: r, power: o = 0.8, timeConstant: a = 750, bounceStiffness: i = 500, bounceDamping: s = 10, restDelta: u = 1, modifyTarget: l, driver: c, onUpdate: f, onComplete: d, onStop: p }) {
2040
2040
  let v;
2041
- function m(g) {
2041
+ function h(g) {
2042
2042
  return n !== void 0 && g < n || r !== void 0 && g > r;
2043
2043
  }
2044
2044
  function y(g) {
2045
2045
  return n === void 0 ? r : r === void 0 || Math.abs(n - g) < Math.abs(r - g) ? n : r;
2046
2046
  }
2047
- function h(g) {
2047
+ function m(g) {
2048
2048
  v == null || v.stop(), v = Zi(Object.assign(Object.assign({}, g), {
2049
2049
  driver: c,
2050
2050
  onUpdate: (w) => {
@@ -2056,19 +2056,19 @@ function vc({ from: t = 0, velocity: e = 0, min: n, max: r, power: o = 0.8, time
2056
2056
  }));
2057
2057
  }
2058
2058
  function S(g) {
2059
- h(Object.assign({ type: "spring", stiffness: i, damping: s, restDelta: u }, g));
2059
+ m(Object.assign({ type: "spring", stiffness: i, damping: s, restDelta: u }, g));
2060
2060
  }
2061
- if (m(t))
2061
+ if (h(t))
2062
2062
  S({ from: t, velocity: e, to: y(t) });
2063
2063
  else {
2064
2064
  let g = o * e + t;
2065
2065
  typeof l < "u" && (g = l(g));
2066
2066
  const w = y(g), x = w === n ? -1 : 1;
2067
2067
  let T, R;
2068
- const B = (V) => {
2069
- T = R, R = V, e = Ji(V - T, ze().delta), (x === 1 && V > w || x === -1 && V < w) && S({ from: V, to: w, velocity: e });
2068
+ const D = (E) => {
2069
+ T = R, R = E, e = Ji(E - T, ze().delta), (x === 1 && E > w || x === -1 && E < w) && S({ from: E, to: w, velocity: e });
2070
2070
  };
2071
- h({
2071
+ m({
2072
2072
  type: "decay",
2073
2073
  from: t,
2074
2074
  velocity: e,
@@ -2076,28 +2076,28 @@ function vc({ from: t = 0, velocity: e = 0, min: n, max: r, power: o = 0.8, time
2076
2076
  power: o,
2077
2077
  restDelta: u,
2078
2078
  modifyTarget: l,
2079
- onUpdate: m(g) ? B : void 0
2079
+ onUpdate: h(g) ? D : void 0
2080
2080
  });
2081
2081
  }
2082
2082
  return {
2083
2083
  stop: () => v == null ? void 0 : v.stop()
2084
2084
  };
2085
2085
  }
2086
- const Un = (t) => t.hasOwnProperty("x") && t.hasOwnProperty("y"), Zr = (t) => Un(t) && t.hasOwnProperty("z"), Ae = (t, e) => Math.abs(t - e);
2086
+ const Un = (t) => t.hasOwnProperty("x") && t.hasOwnProperty("y"), Zr = (t) => Un(t) && t.hasOwnProperty("z"), Me = (t, e) => Math.abs(t - e);
2087
2087
  function Qi(t, e) {
2088
2088
  if (jn(t) && jn(e))
2089
- return Ae(t, e);
2089
+ return Me(t, e);
2090
2090
  if (Un(t) && Un(e)) {
2091
- const n = Ae(t.x, e.x), r = Ae(t.y, e.y), o = Zr(t) && Zr(e) ? Ae(t.z, e.z) : 0;
2091
+ const n = Me(t.x, e.x), r = Me(t.y, e.y), o = Zr(t) && Zr(e) ? Me(t.z, e.z) : 0;
2092
2092
  return Math.sqrt(Math.pow(n, 2) + Math.pow(r, 2) + Math.pow(o, 2));
2093
2093
  }
2094
2094
  }
2095
- const ta = (t, e) => 1 - 3 * e + 3 * t, ea = (t, e) => 3 * e - 6 * t, na = (t) => 3 * t, Ge = (t, e, n) => ((ta(e, n) * t + ea(e, n)) * t + na(e)) * t, ra = (t, e, n) => 3 * ta(e, n) * t * t + 2 * ea(e, n) * t + na(e), pc = 1e-7, mc = 10;
2096
- function hc(t, e, n, r, o) {
2095
+ const ta = (t, e) => 1 - 3 * e + 3 * t, ea = (t, e) => 3 * e - 6 * t, na = (t) => 3 * t, Ge = (t, e, n) => ((ta(e, n) * t + ea(e, n)) * t + na(e)) * t, ra = (t, e, n) => 3 * ta(e, n) * t * t + 2 * ea(e, n) * t + na(e), pc = 1e-7, hc = 10;
2096
+ function mc(t, e, n, r, o) {
2097
2097
  let a, i, s = 0;
2098
2098
  do
2099
2099
  i = e + (n - e) / 2, a = Ge(i, r, o) - t, a > 0 ? n = i : e = i;
2100
- while (Math.abs(a) > pc && ++s < mc);
2100
+ while (Math.abs(a) > pc && ++s < hc);
2101
2101
  return i;
2102
2102
  }
2103
2103
  const gc = 8, yc = 1e-3;
@@ -2111,21 +2111,21 @@ function Sc(t, e, n, r) {
2111
2111
  }
2112
2112
  return e;
2113
2113
  }
2114
- const je = 11, Me = 1 / (je - 1);
2114
+ const je = 11, Ie = 1 / (je - 1);
2115
2115
  function bc(t, e, n, r) {
2116
2116
  if (t === e && n === r)
2117
2117
  return ur;
2118
2118
  const o = new Float32Array(je);
2119
2119
  for (let i = 0; i < je; ++i)
2120
- o[i] = Ge(i * Me, t, n);
2120
+ o[i] = Ge(i * Ie, t, n);
2121
2121
  function a(i) {
2122
2122
  let s = 0, u = 1;
2123
2123
  const l = je - 1;
2124
2124
  for (; u !== l && o[u] <= i; ++u)
2125
- s += Me;
2125
+ s += Ie;
2126
2126
  --u;
2127
- const c = (i - o[u]) / (o[u + 1] - o[u]), f = s + c * Me, d = ra(f, t, n);
2128
- return d >= yc ? Sc(i, f, t, n) : d === 0 ? f : hc(i, s, s + Me, t, n);
2127
+ const c = (i - o[u]) / (o[u + 1] - o[u]), f = s + c * Ie, d = ra(f, t, n);
2128
+ return d >= yc ? Sc(i, f, t, n) : d === 0 ? f : mc(i, s, s + Ie, t, n);
2129
2129
  }
2130
2130
  return (i) => i === 0 || i === 1 ? i : Ge(a(i), e, r);
2131
2131
  }
@@ -2134,22 +2134,22 @@ function Pc(t) {
2134
2134
  passive: !(n || e || r || v)
2135
2135
  };
2136
2136
  function c() {
2137
- var m;
2138
- (m = u.current) === null || m === void 0 || m.call(u), u.current = null;
2137
+ var h;
2138
+ (h = u.current) === null || h === void 0 || h.call(u), u.current = null;
2139
2139
  }
2140
2140
  function f() {
2141
- var m;
2142
- return c(), s.current = !1, (m = a.animationState) === null || m === void 0 || m.setActive(z.Tap, !1), !Bi();
2141
+ var h;
2142
+ return c(), s.current = !1, (h = a.animationState) === null || h === void 0 || h.setActive(z.Tap, !1), !Di();
2143
2143
  }
2144
- function d(m, y) {
2145
- f() && (Di(a.getInstance(), m.target) ? e == null || e(m, y) : r == null || r(m, y));
2144
+ function d(h, y) {
2145
+ f() && (Bi(a.getInstance(), h.target) ? e == null || e(h, y) : r == null || r(h, y));
2146
2146
  }
2147
- function p(m, y) {
2148
- f() && (r == null || r(m, y));
2147
+ function p(h, y) {
2148
+ f() && (r == null || r(h, y));
2149
2149
  }
2150
- function v(m, y) {
2151
- var h;
2152
- c(), !s.current && (s.current = !0, u.current = nn(qt(window, "pointerup", d, l), qt(window, "pointercancel", p, l)), (h = a.animationState) === null || h === void 0 || h.setActive(z.Tap, !0), n == null || n(m, y));
2150
+ function v(h, y) {
2151
+ var m;
2152
+ c(), !s.current && (s.current = !0, u.current = nn(qt(window, "pointerup", d, l), qt(window, "pointercancel", p, l)), (m = a.animationState) === null || m === void 0 || m.setActive(z.Tap, !0), n == null || n(h, y));
2153
2153
  }
2154
2154
  Ue(a, "pointerdown", i ? v : void 0, l), Ni(c);
2155
2155
  }
@@ -2157,22 +2157,22 @@ var Jr = /* @__PURE__ */ new Set();
2157
2157
  function oa(t, e, n) {
2158
2158
  t || Jr.has(e) || (console.warn(e), Jr.add(e));
2159
2159
  }
2160
- var Wn = /* @__PURE__ */ new WeakMap(), bn = /* @__PURE__ */ new WeakMap(), wc = function(t) {
2160
+ var Hn = /* @__PURE__ */ new WeakMap(), bn = /* @__PURE__ */ new WeakMap(), wc = function(t) {
2161
2161
  var e;
2162
- (e = Wn.get(t.target)) === null || e === void 0 || e(t);
2162
+ (e = Hn.get(t.target)) === null || e === void 0 || e(t);
2163
2163
  }, _c = function(t) {
2164
2164
  t.forEach(wc);
2165
2165
  };
2166
2166
  function xc(t) {
2167
- var e = t.root, n = ht(t, ["root"]), r = e || document;
2167
+ var e = t.root, n = mt(t, ["root"]), r = e || document;
2168
2168
  bn.has(r) || bn.set(r, {});
2169
2169
  var o = bn.get(r), a = JSON.stringify(n);
2170
2170
  return o[a] || (o[a] = new IntersectionObserver(_c, b({ root: e }, n))), o[a];
2171
2171
  }
2172
2172
  function Tc(t, e, n) {
2173
2173
  var r = xc(e);
2174
- return Wn.set(t, n), r.observe(t), function() {
2175
- Wn.delete(t), r.unobserve(t);
2174
+ return Hn.set(t, n), r.observe(t), function() {
2175
+ Hn.delete(t), r.unobserve(t);
2176
2176
  };
2177
2177
  }
2178
2178
  function Cc(t) {
@@ -2181,34 +2181,34 @@ function Cc(t) {
2181
2181
  isInView: !1
2182
2182
  }), u = !!(n || r || o);
2183
2183
  i.once && s.current.hasEnteredView && (u = !1);
2184
- var l = typeof IntersectionObserver > "u" ? Ic : Vc;
2184
+ var l = typeof IntersectionObserver > "u" ? Ac : Ec;
2185
2185
  l(u, s.current, e, i);
2186
2186
  }
2187
- var Ec = {
2187
+ var Vc = {
2188
2188
  some: 0,
2189
2189
  all: 1
2190
2190
  };
2191
- function Vc(t, e, n, r) {
2191
+ function Ec(t, e, n, r) {
2192
2192
  var o = r.root, a = r.margin, i = r.amount, s = i === void 0 ? "some" : i, u = r.once;
2193
2193
  k(function() {
2194
2194
  if (t) {
2195
2195
  var l = {
2196
2196
  root: o == null ? void 0 : o.current,
2197
2197
  rootMargin: a,
2198
- threshold: typeof s == "number" ? s : Ec[s]
2198
+ threshold: typeof s == "number" ? s : Vc[s]
2199
2199
  }, c = function(f) {
2200
2200
  var d, p = f.isIntersecting;
2201
2201
  if (e.isInView !== p && (e.isInView = p, !(u && !p && e.hasEnteredView))) {
2202
2202
  p && (e.hasEnteredView = !0), (d = n.animationState) === null || d === void 0 || d.setActive(z.InView, p);
2203
- var v = n.getProps(), m = p ? v.onViewportEnter : v.onViewportLeave;
2204
- m == null || m(f);
2203
+ var v = n.getProps(), h = p ? v.onViewportEnter : v.onViewportLeave;
2204
+ h == null || h(f);
2205
2205
  }
2206
2206
  };
2207
2207
  return Tc(n.getInstance(), l, c);
2208
2208
  }
2209
2209
  }, [t, o, a, s]);
2210
2210
  }
2211
- function Ic(t, e, n, r) {
2211
+ function Ac(t, e, n, r) {
2212
2212
  var o = r.fallback, a = o === void 0 ? !0 : o;
2213
2213
  k(function() {
2214
2214
  !t || !a || (Qo !== "production" && oa(!1, "IntersectionObserver not available on this device. whileInView animations will trigger on mount."), requestAnimationFrame(function() {
@@ -2223,13 +2223,13 @@ var Nt = function(t) {
2223
2223
  return function(e) {
2224
2224
  return t(e), null;
2225
2225
  };
2226
- }, Ac = {
2226
+ }, Mc = {
2227
2227
  inView: Nt(Cc),
2228
2228
  tap: Nt(Pc),
2229
2229
  focus: Nt(cl),
2230
2230
  hover: Nt(bl)
2231
- }, Mc = 0, Rc = function() {
2232
- return Mc++;
2231
+ }, Ic = 0, Rc = function() {
2232
+ return Ic++;
2233
2233
  }, Lc = function() {
2234
2234
  return Pe(Rc);
2235
2235
  };
@@ -2263,7 +2263,7 @@ var Ke = function(t) {
2263
2263
  linear: ur,
2264
2264
  easeIn: lr,
2265
2265
  easeInOut: zi,
2266
- easeOut: Hl,
2266
+ easeOut: Wl,
2267
2267
  circIn: Gi,
2268
2268
  circInOut: zl,
2269
2269
  circOut: cr,
@@ -2273,7 +2273,7 @@ var Ke = function(t) {
2273
2273
  anticipate: Yl,
2274
2274
  bounceIn: Jl,
2275
2275
  bounceInOut: Ql,
2276
- bounceOut: He
2276
+ bounceOut: We
2277
2277
  }, to = function(t) {
2278
2278
  if (Array.isArray(t)) {
2279
2279
  vt(t.length === 4, "Cubic bezier arrays must contain four numerical values.");
@@ -2286,7 +2286,7 @@ var Ke = function(t) {
2286
2286
  return Array.isArray(t) && typeof t[0] != "number";
2287
2287
  }, eo = function(t, e) {
2288
2288
  return t === "zIndex" ? !1 : !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && // It's animatable if we have a string
2289
- At.test(e) && // And it contains numbers and/or colors
2289
+ Mt.test(e) && // And it contains numbers and/or colors
2290
2290
  !e.startsWith("url("));
2291
2291
  }, jt = function() {
2292
2292
  return {
@@ -2308,7 +2308,7 @@ var Ke = function(t) {
2308
2308
  ease: "linear",
2309
2309
  duration: 0.3
2310
2310
  };
2311
- }, Bc = function(t) {
2311
+ }, Dc = function(t) {
2312
2312
  return {
2313
2313
  type: "keyframes",
2314
2314
  duration: 0.8,
@@ -2329,9 +2329,9 @@ var Ke = function(t) {
2329
2329
  backgroundColor: Pn,
2330
2330
  color: Pn,
2331
2331
  default: Re
2332
- }, Dc = function(t, e) {
2332
+ }, Bc = function(t, e) {
2333
2333
  var n;
2334
- return ge(e) ? n = Bc : n = no[t] || no.default, b({ to: e }, n(e));
2334
+ return ge(e) ? n = Dc : n = no[t] || no.default, b({ to: e }, n(e));
2335
2335
  }, Nc = b(b({}, yi), {
2336
2336
  // Color props
2337
2337
  color: ct,
@@ -2345,23 +2345,23 @@ var Ke = function(t) {
2345
2345
  borderRightColor: ct,
2346
2346
  borderBottomColor: ct,
2347
2347
  borderLeftColor: ct,
2348
- filter: Dn,
2349
- WebkitFilter: Dn
2348
+ filter: Bn,
2349
+ WebkitFilter: Bn
2350
2350
  }), dr = function(t) {
2351
2351
  return Nc[t];
2352
2352
  };
2353
2353
  function vr(t, e) {
2354
2354
  var n, r = dr(t);
2355
- return r !== Dn && (r = At), (n = r.getAnimatableNone) === null || n === void 0 ? void 0 : n.call(r, e);
2355
+ return r !== Bn && (r = Mt), (n = r.getAnimatableNone) === null || n === void 0 ? void 0 : n.call(r, e);
2356
2356
  }
2357
2357
  function Fc(t) {
2358
2358
  t.when, t.delay, t.delayChildren, t.staggerChildren, t.staggerDirection, t.repeat, t.repeatType, t.repeatDelay, t.from;
2359
- var e = ht(t, ["when", "delay", "delayChildren", "staggerChildren", "staggerDirection", "repeat", "repeatType", "repeatDelay", "from"]);
2359
+ var e = mt(t, ["when", "delay", "delayChildren", "staggerChildren", "staggerDirection", "repeat", "repeatType", "repeatDelay", "from"]);
2360
2360
  return !!Object.keys(e).length;
2361
2361
  }
2362
2362
  var ro = !1;
2363
2363
  function jc(t) {
2364
- var e = t.ease, n = t.times, r = t.yoyo, o = t.flip, a = t.loop, i = ht(t, ["ease", "times", "yoyo", "flip", "loop"]), s = b({}, i);
2364
+ var e = t.ease, n = t.times, r = t.yoyo, o = t.flip, a = t.loop, i = mt(t, ["ease", "times", "yoyo", "flip", "loop"]), s = b({}, i);
2365
2365
  return n && (s.offset = n), i.duration && (s.duration = Ke(i.duration)), i.repeatDelay && (s.repeatDelay = Ke(i.repeatDelay)), e && (s.ease = Oc(e) ? e.map(to) : to(e)), i.type === "tween" && (s.type = "keyframes"), (r || a || o) && (be(!ro, "yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."), ro = !0, r ? s.repeatType = "reverse" : a ? s.repeatType = "loop" : o && (s.repeatType = "mirror"), s.repeat = a || r || o || i.repeat), i.type !== "spring" && (s.type = "keyframes"), s;
2366
2366
  }
2367
2367
  function kc(t, e) {
@@ -2369,13 +2369,13 @@ function kc(t, e) {
2369
2369
  return (r = (n = o.delay) !== null && n !== void 0 ? n : t.delay) !== null && r !== void 0 ? r : 0;
2370
2370
  }
2371
2371
  function $c(t) {
2372
- return Array.isArray(t.to) && t.to[0] === null && (t.to = mt([], nt(t.to), !1), t.to[0] = t.from), t;
2372
+ return Array.isArray(t.to) && t.to[0] === null && (t.to = ht([], nt(t.to), !1), t.to[0] = t.from), t;
2373
2373
  }
2374
2374
  function Uc(t, e, n) {
2375
2375
  var r;
2376
- return Array.isArray(e.to) && ((r = t.duration) !== null && r !== void 0 || (t.duration = 0.8)), $c(e), Fc(t) || (t = b(b({}, t), Dc(n, e.to))), b(b({}, e), jc(t));
2376
+ return Array.isArray(e.to) && ((r = t.duration) !== null && r !== void 0 || (t.duration = 0.8)), $c(e), Fc(t) || (t = b(b({}, t), Bc(n, e.to))), b(b({}, e), jc(t));
2377
2377
  }
2378
- function Wc(t, e, n, r, o) {
2378
+ function Hc(t, e, n, r, o) {
2379
2379
  var a, i = pr(r, t), s = (a = i.from) !== null && a !== void 0 ? a : e.get(), u = eo(t, n);
2380
2380
  s === "none" && u && typeof n == "string" ? s = vr(t, n) : oo(s) && typeof n == "string" ? s = io(n) : !Array.isArray(n) && oo(n) && typeof s == "string" && (n = io(s));
2381
2381
  var l = eo(t, s);
@@ -2399,7 +2399,7 @@ function Wc(t, e, n, r, o) {
2399
2399
  } }));
2400
2400
  }
2401
2401
  function f() {
2402
- var d, p, v = Ei(n);
2402
+ var d, p, v = Vi(n);
2403
2403
  return e.set(v), o(), (d = i == null ? void 0 : i.onUpdate) === null || d === void 0 || d.call(i, v), (p = i == null ? void 0 : i.onComplete) === null || p === void 0 || p.call(i), { stop: function() {
2404
2404
  } };
2405
2405
  }
@@ -2414,9 +2414,9 @@ function io(t) {
2414
2414
  function pr(t, e) {
2415
2415
  return t[e] || t.default || t;
2416
2416
  }
2417
- function mr(t, e, n, r) {
2417
+ function hr(t, e, n, r) {
2418
2418
  return r === void 0 && (r = {}), e.start(function(o) {
2419
- var a, i, s = Wc(t, e, n, r, o), u = kc(r, t), l = function() {
2419
+ var a, i, s = Hc(t, e, n, r, o), u = kc(r, t), l = function() {
2420
2420
  return i = s();
2421
2421
  };
2422
2422
  return u ? a = window.setTimeout(l, Ke(u)) : l(), function() {
@@ -2424,12 +2424,12 @@ function mr(t, e, n, r) {
2424
2424
  };
2425
2425
  });
2426
2426
  }
2427
- var Hc = function(t) {
2427
+ var Wc = function(t) {
2428
2428
  return /^\-?\d*\.?\d+$/.test(t);
2429
2429
  }, zc = function(t) {
2430
2430
  return /^0[^.\s]+$/.test(t);
2431
2431
  };
2432
- function hr(t, e) {
2432
+ function mr(t, e) {
2433
2433
  t.indexOf(e) === -1 && t.push(e);
2434
2434
  }
2435
2435
  function gr(t, e) {
@@ -2444,7 +2444,7 @@ var ue = (
2444
2444
  }
2445
2445
  return t.prototype.add = function(e) {
2446
2446
  var n = this;
2447
- return hr(this.subscriptions, e), function() {
2447
+ return mr(this.subscriptions, e), function() {
2448
2448
  return gr(n.subscriptions, e);
2449
2449
  };
2450
2450
  }, t.prototype.notify = function(e, n, r) {
@@ -2532,9 +2532,9 @@ var sa = function(t) {
2532
2532
  parse: function(t) {
2533
2533
  return t;
2534
2534
  }
2535
- }, ua = [Ht, A, xt, Lt, Nu, Du, Yc], re = function(t) {
2535
+ }, ua = [Wt, M, xt, Lt, Nu, Bu, Yc], re = function(t) {
2536
2536
  return ua.find(sa(t));
2537
- }, qc = mt(mt([], nt(ua), !1), [ct, At], !1), Xc = function(t) {
2537
+ }, qc = ht(ht([], nt(ua), !1), [ct, Mt], !1), Xc = function(t) {
2538
2538
  return qc.find(sa(t));
2539
2539
  };
2540
2540
  function Zc(t, e, n) {
@@ -2543,27 +2543,27 @@ function Zc(t, e, n) {
2543
2543
  function yr(t, e) {
2544
2544
  var n = Qe(t, e), r = n ? t.makeTargetAnimatable(n, !1) : {}, o = r.transitionEnd, a = o === void 0 ? {} : o;
2545
2545
  r.transition;
2546
- var i = ht(r, ["transitionEnd", "transition"]);
2546
+ var i = mt(r, ["transitionEnd", "transition"]);
2547
2547
  i = b(b({}, i), a);
2548
2548
  for (var s in i) {
2549
- var u = Ei(i[s]);
2549
+ var u = Vi(i[s]);
2550
2550
  Zc(t, s, u);
2551
2551
  }
2552
2552
  }
2553
- function Hn(t, e) {
2554
- var n = mt([], nt(e), !1).reverse();
2553
+ function Wn(t, e) {
2554
+ var n = ht([], nt(e), !1).reverse();
2555
2555
  n.forEach(function(r) {
2556
2556
  var o, a = t.getVariant(r);
2557
2557
  a && yr(t, a), (o = t.variantChildren) === null || o === void 0 || o.forEach(function(i) {
2558
- Hn(i, e);
2558
+ Wn(i, e);
2559
2559
  });
2560
2560
  });
2561
2561
  }
2562
2562
  function Jc(t, e) {
2563
2563
  if (Array.isArray(e))
2564
- return Hn(t, e);
2564
+ return Wn(t, e);
2565
2565
  if (typeof e == "string")
2566
- return Hn(t, [e]);
2566
+ return Wn(t, [e]);
2567
2567
  yr(t, e);
2568
2568
  }
2569
2569
  function Qc(t, e, n) {
@@ -2573,7 +2573,7 @@ function Qc(t, e, n) {
2573
2573
  if (u)
2574
2574
  for (var l = 0; l < u; l++) {
2575
2575
  var c = s[l], f = e[c], d = null;
2576
- Array.isArray(f) && (d = f[0]), d === null && (d = (o = (r = n[c]) !== null && r !== void 0 ? r : t.readValue(c)) !== null && o !== void 0 ? o : e[c]), d != null && (typeof d == "string" && (Hc(d) || zc(d)) ? d = parseFloat(d) : !Xc(d) && At.test(f) && (d = vr(c, f)), t.addValue(c, Jt(d)), (a = (i = n)[c]) !== null && a !== void 0 || (i[c] = d), t.setBaseTarget(c, d));
2576
+ Array.isArray(f) && (d = f[0]), d === null && (d = (o = (r = n[c]) !== null && r !== void 0 ? r : t.readValue(c)) !== null && o !== void 0 ? o : e[c]), d != null && (typeof d == "string" && (Wc(d) || zc(d)) ? d = parseFloat(d) : !Xc(d) && Mt.test(f) && (d = vr(c, f)), t.addValue(c, Jt(d)), (a = (i = n)[c]) !== null && a !== void 0 || (i[c] = d), t.setBaseTarget(c, d));
2577
2577
  }
2578
2578
  }
2579
2579
  function tf(t, e) {
@@ -2617,8 +2617,8 @@ function zn(t, e, n) {
2617
2617
  return Promise.resolve();
2618
2618
  }, u = !((r = t.variantChildren) === null || r === void 0) && r.size ? function(p) {
2619
2619
  p === void 0 && (p = 0);
2620
- var v = i.delayChildren, m = v === void 0 ? 0 : v, y = i.staggerChildren, h = i.staggerDirection;
2621
- return nf(t, e, m + p, y, h, n);
2620
+ var v = i.delayChildren, h = v === void 0 ? 0 : v, y = i.staggerChildren, m = i.staggerDirection;
2621
+ return nf(t, e, h + p, y, m, n);
2622
2622
  } : function() {
2623
2623
  return Promise.resolve();
2624
2624
  }, l = i.when;
@@ -2629,15 +2629,15 @@ function zn(t, e, n) {
2629
2629
  return Promise.all([s(), u(n.delay)]);
2630
2630
  }
2631
2631
  function ca(t, e, n) {
2632
- var r, o = n === void 0 ? {} : n, a = o.delay, i = a === void 0 ? 0 : a, s = o.transitionOverride, u = o.type, l = t.makeTargetAnimatable(e), c = l.transition, f = c === void 0 ? t.getDefaultTransition() : c, d = l.transitionEnd, p = ht(l, ["transition", "transitionEnd"]);
2632
+ var r, o = n === void 0 ? {} : n, a = o.delay, i = a === void 0 ? 0 : a, s = o.transitionOverride, u = o.type, l = t.makeTargetAnimatable(e), c = l.transition, f = c === void 0 ? t.getDefaultTransition() : c, d = l.transitionEnd, p = mt(l, ["transition", "transitionEnd"]);
2633
2633
  s && (f = s);
2634
- var v = [], m = u && ((r = t.animationState) === null || r === void 0 ? void 0 : r.getState()[u]);
2634
+ var v = [], h = u && ((r = t.animationState) === null || r === void 0 ? void 0 : r.getState()[u]);
2635
2635
  for (var y in p) {
2636
- var h = t.getValue(y), S = p[y];
2637
- if (!(!h || S === void 0 || m && af(m, y))) {
2636
+ var m = t.getValue(y), S = p[y];
2637
+ if (!(!m || S === void 0 || h && af(h, y))) {
2638
2638
  var g = b({ delay: i }, f);
2639
2639
  t.shouldReduceMotion && we(y) && (g = b(b({}, g), { type: !1, delay: 0 }));
2640
- var w = mr(y, h, S, g);
2640
+ var w = hr(y, m, S, g);
2641
2641
  v.push(w);
2642
2642
  }
2643
2643
  }
@@ -2678,7 +2678,7 @@ var Sr = [
2678
2678
  z.Tap,
2679
2679
  z.Drag,
2680
2680
  z.Exit
2681
- ], sf = mt([], nt(Sr), !1).reverse(), uf = Sr.length;
2681
+ ], sf = ht([], nt(Sr), !1).reverse(), uf = Sr.length;
2682
2682
  function lf(t) {
2683
2683
  return function(e) {
2684
2684
  return Promise.all(e.map(function(n) {
@@ -2692,7 +2692,7 @@ function cf(t) {
2692
2692
  var d = Qe(t, f);
2693
2693
  if (d) {
2694
2694
  d.transition;
2695
- var p = d.transitionEnd, v = ht(d, ["transition", "transitionEnd"]);
2695
+ var p = d.transitionEnd, v = mt(d, ["transition", "transitionEnd"]);
2696
2696
  c = b(b(b({}, c), v), p);
2697
2697
  }
2698
2698
  return c;
@@ -2704,55 +2704,55 @@ function cf(t) {
2704
2704
  e = c(t);
2705
2705
  }
2706
2706
  function u(c, f) {
2707
- for (var d, p = t.getProps(), v = t.getVariantContext(!0) || {}, m = [], y = /* @__PURE__ */ new Set(), h = {}, S = 1 / 0, g = function(R) {
2708
- var B = sf[R], V = n[B], F = (d = p[B]) !== null && d !== void 0 ? d : v[B], J = St(F), $ = B === f ? V.isActive : null;
2707
+ for (var d, p = t.getProps(), v = t.getVariantContext(!0) || {}, h = [], y = /* @__PURE__ */ new Set(), m = {}, S = 1 / 0, g = function(R) {
2708
+ var D = sf[R], E = n[D], F = (d = p[D]) !== null && d !== void 0 ? d : v[D], J = St(F), $ = D === f ? E.isActive : null;
2709
2709
  $ === !1 && (S = R);
2710
- var j = F === v[B] && F !== p[B] && J;
2711
- if (j && o && t.manuallyAnimateOnMount && (j = !1), V.protectedKeys = b({}, h), // If it isn't active and hasn't *just* been set as inactive
2712
- !V.isActive && $ === null || // If we didn't and don't have any defined prop for this animation type
2713
- !F && !V.prevProp || // Or if the prop doesn't define an animation
2710
+ var j = F === v[D] && F !== p[D] && J;
2711
+ if (j && o && t.manuallyAnimateOnMount && (j = !1), E.protectedKeys = b({}, m), // If it isn't active and hasn't *just* been set as inactive
2712
+ !E.isActive && $ === null || // If we didn't and don't have any defined prop for this animation type
2713
+ !F && !E.prevProp || // Or if the prop doesn't define an animation
2714
2714
  or(F) || typeof F == "boolean")
2715
2715
  return "continue";
2716
- var I = ff(V.prevProp, F), G = I || // If we're making this variant active, we want to always make it active
2717
- B === f && V.isActive && !j && J || // If we removed a higher-priority variant (i is in reverse order)
2718
- R > S && J, Q = Array.isArray(F) ? F : [F], M = Q.reduce(a, {});
2719
- $ === !1 && (M = {});
2720
- var it = V.prevResolvedValues, at = it === void 0 ? {} : it, ut = b(b({}, at), M), U = function(C) {
2721
- G = !0, y.delete(C), V.needsAnimating[C] = !0;
2716
+ var A = ff(E.prevProp, F), G = A || // If we're making this variant active, we want to always make it active
2717
+ D === f && E.isActive && !j && J || // If we removed a higher-priority variant (i is in reverse order)
2718
+ R > S && J, Q = Array.isArray(F) ? F : [F], I = Q.reduce(a, {});
2719
+ $ === !1 && (I = {});
2720
+ var it = E.prevResolvedValues, at = it === void 0 ? {} : it, ut = b(b({}, at), I), U = function(C) {
2721
+ G = !0, y.delete(C), E.needsAnimating[C] = !0;
2722
2722
  };
2723
2723
  for (var X in ut) {
2724
- var D = M[X], _ = at[X];
2725
- h.hasOwnProperty(X) || (D !== _ ? ge(D) && ge(_) ? !aa(D, _) || I ? U(X) : V.protectedKeys[X] = !0 : D !== void 0 ? U(X) : y.add(X) : D !== void 0 && y.has(X) ? U(X) : V.protectedKeys[X] = !0);
2724
+ var B = I[X], _ = at[X];
2725
+ m.hasOwnProperty(X) || (B !== _ ? ge(B) && ge(_) ? !aa(B, _) || A ? U(X) : E.protectedKeys[X] = !0 : B !== void 0 ? U(X) : y.add(X) : B !== void 0 && y.has(X) ? U(X) : E.protectedKeys[X] = !0);
2726
2726
  }
2727
- V.prevProp = F, V.prevResolvedValues = M, V.isActive && (h = b(b({}, h), M)), o && t.blockInitialAnimation && (G = !1), G && !j && m.push.apply(m, mt([], nt(Q.map(function(C) {
2727
+ E.prevProp = F, E.prevResolvedValues = I, E.isActive && (m = b(b({}, m), I)), o && t.blockInitialAnimation && (G = !1), G && !j && h.push.apply(h, ht([], nt(Q.map(function(C) {
2728
2728
  return {
2729
2729
  animation: C,
2730
- options: b({ type: B }, c)
2730
+ options: b({ type: D }, c)
2731
2731
  };
2732
2732
  })), !1));
2733
2733
  }, w = 0; w < uf; w++)
2734
2734
  g(w);
2735
- if (r = b({}, h), y.size) {
2735
+ if (r = b({}, m), y.size) {
2736
2736
  var x = {};
2737
2737
  y.forEach(function(R) {
2738
- var B = t.getBaseTarget(R);
2739
- B !== void 0 && (x[R] = B);
2740
- }), m.push({ animation: x });
2738
+ var D = t.getBaseTarget(R);
2739
+ D !== void 0 && (x[R] = D);
2740
+ }), h.push({ animation: x });
2741
2741
  }
2742
- var T = !!m.length;
2743
- return o && p.initial === !1 && !t.manuallyAnimateOnMount && (T = !1), o = !1, T ? e(m) : Promise.resolve();
2742
+ var T = !!h.length;
2743
+ return o && p.initial === !1 && !t.manuallyAnimateOnMount && (T = !1), o = !1, T ? e(h) : Promise.resolve();
2744
2744
  }
2745
2745
  function l(c, f, d) {
2746
2746
  var p;
2747
2747
  if (n[c].isActive === f)
2748
2748
  return Promise.resolve();
2749
2749
  (p = t.variantChildren) === null || p === void 0 || p.forEach(function(y) {
2750
- var h;
2751
- return (h = y.animationState) === null || h === void 0 ? void 0 : h.setActive(c, f);
2750
+ var m;
2751
+ return (m = y.animationState) === null || m === void 0 ? void 0 : m.setActive(c, f);
2752
2752
  }), n[c].isActive = f;
2753
2753
  var v = u(d, c);
2754
- for (var m in n)
2755
- n[m].protectedKeys = {};
2754
+ for (var h in n)
2755
+ n[h].protectedKeys = {};
2756
2756
  return v;
2757
2757
  }
2758
2758
  return {
@@ -2805,23 +2805,23 @@ var vf = {
2805
2805
  if (o.lastMoveEvent && o.lastMoveEventInfo) {
2806
2806
  var d = _n(o.lastMoveEventInfo, o.history), p = o.startEvent !== null, v = Qi(d.offset, { x: 0, y: 0 }) >= 3;
2807
2807
  if (!(!p && !v)) {
2808
- var m = d.point, y = ze().timestamp;
2809
- o.history.push(b(b({}, m), { timestamp: y }));
2810
- var h = o.handlers, S = h.onStart, g = h.onMove;
2808
+ var h = d.point, y = ze().timestamp;
2809
+ o.history.push(b(b({}, h), { timestamp: y }));
2810
+ var m = o.handlers, S = m.onStart, g = m.onMove;
2811
2811
  p || (S && S(o.lastMoveEvent, d), o.startEvent = o.lastMoveEvent), g && g(o.lastMoveEvent, d);
2812
2812
  }
2813
2813
  }
2814
2814
  }, this.handlePointerMove = function(d, p) {
2815
- if (o.lastMoveEvent = d, o.lastMoveEventInfo = wn(p, o.transformPagePoint), Ii(d) && d.buttons === 0) {
2815
+ if (o.lastMoveEvent = d, o.lastMoveEventInfo = wn(p, o.transformPagePoint), Ai(d) && d.buttons === 0) {
2816
2816
  o.handlePointerUp(d, p);
2817
2817
  return;
2818
2818
  }
2819
2819
  Tt.update(o.updatePoint, !0);
2820
2820
  }, this.handlePointerUp = function(d, p) {
2821
2821
  o.end();
2822
- var v = o.handlers, m = v.onEnd, y = v.onSessionEnd, h = _n(wn(p, o.transformPagePoint), o.history);
2823
- o.startEvent && m && m(d, h), y && y(d, h);
2824
- }, !(Ai(e) && e.touches.length > 1)) {
2822
+ var v = o.handlers, h = v.onEnd, y = v.onSessionEnd, m = _n(wn(p, o.transformPagePoint), o.history);
2823
+ o.startEvent && h && h(d, m), y && y(d, m);
2824
+ }, !(Mi(e) && e.touches.length > 1)) {
2825
2825
  this.handlers = n, this.transformPagePoint = i;
2826
2826
  var s = ir(e), u = wn(s, this.transformPagePoint), l = u.point, c = ze().timestamp;
2827
2827
  this.history = [b(b({}, l), { timestamp: c })];
@@ -2848,7 +2848,7 @@ function _n(t, e) {
2848
2848
  point: n,
2849
2849
  delta: ao(n, da(e)),
2850
2850
  offset: ao(n, pf(e)),
2851
- velocity: mf(e, 0.1)
2851
+ velocity: hf(e, 0.1)
2852
2852
  };
2853
2853
  }
2854
2854
  function pf(t) {
@@ -2857,7 +2857,7 @@ function pf(t) {
2857
2857
  function da(t) {
2858
2858
  return t[t.length - 1];
2859
2859
  }
2860
- function mf(t, e) {
2860
+ function hf(t, e) {
2861
2861
  if (t.length < 2)
2862
2862
  return { x: 0, y: 0 };
2863
2863
  for (var n = t.length - 1, r = null, o = da(t); n >= 0 && (r = t[n], !(o.timestamp - r.timestamp > Ke(e))); )
@@ -2873,26 +2873,26 @@ function mf(t, e) {
2873
2873
  };
2874
2874
  return i.x === 1 / 0 && (i.x = 0), i.y === 1 / 0 && (i.y = 0), i;
2875
2875
  }
2876
- function Mt(t) {
2876
+ function It(t) {
2877
2877
  return t.max - t.min;
2878
2878
  }
2879
2879
  function so(t, e, n) {
2880
2880
  return e === void 0 && (e = 0), n === void 0 && (n = 0.01), Qi(t, e) < n;
2881
2881
  }
2882
2882
  function uo(t, e, n, r) {
2883
- r === void 0 && (r = 0.5), t.origin = r, t.originPoint = tt(e.min, e.max, t.origin), t.scale = Mt(n) / Mt(e), (so(t.scale, 1, 1e-4) || isNaN(t.scale)) && (t.scale = 1), t.translate = tt(n.min, n.max, t.origin) - t.originPoint, (so(t.translate) || isNaN(t.translate)) && (t.translate = 0);
2883
+ r === void 0 && (r = 0.5), t.origin = r, t.originPoint = tt(e.min, e.max, t.origin), t.scale = It(n) / It(e), (so(t.scale, 1, 1e-4) || isNaN(t.scale)) && (t.scale = 1), t.translate = tt(n.min, n.max, t.origin) - t.originPoint, (so(t.translate) || isNaN(t.translate)) && (t.translate = 0);
2884
2884
  }
2885
2885
  function le(t, e, n, r) {
2886
2886
  uo(t.x, e.x, n.x, r == null ? void 0 : r.originX), uo(t.y, e.y, n.y, r == null ? void 0 : r.originY);
2887
2887
  }
2888
2888
  function lo(t, e, n) {
2889
- t.min = n.min + e.min, t.max = t.min + Mt(e);
2889
+ t.min = n.min + e.min, t.max = t.min + It(e);
2890
2890
  }
2891
- function hf(t, e, n) {
2891
+ function mf(t, e, n) {
2892
2892
  lo(t.x, e.x, n.x), lo(t.y, e.y, n.y);
2893
2893
  }
2894
2894
  function co(t, e, n) {
2895
- t.min = e.min - n.min, t.max = t.min + Mt(e);
2895
+ t.min = e.min - n.min, t.max = t.min + It(e);
2896
2896
  }
2897
2897
  function ce(t, e, n) {
2898
2898
  co(t.x, e.x, n.x), co(t.y, e.y, n.y);
@@ -2925,8 +2925,8 @@ function Sf(t, e) {
2925
2925
  };
2926
2926
  }
2927
2927
  function bf(t, e) {
2928
- var n = 0.5, r = Mt(t), o = Mt(e);
2929
- return o > r ? n = ye(e.min, e.max - r, t.min) : r > o && (n = ye(t.min, t.max - o, e.min)), We(0, 1, n);
2928
+ var n = 0.5, r = It(t), o = It(e);
2929
+ return o > r ? n = ye(e.min, e.max - r, t.min) : r > o && (n = ye(t.min, t.max - o, e.min)), He(0, 1, n);
2930
2930
  }
2931
2931
  function Pf(t, e) {
2932
2932
  var n = {};
@@ -2941,15 +2941,15 @@ function wf(t) {
2941
2941
  }
2942
2942
  function po(t, e, n) {
2943
2943
  return {
2944
- min: mo(t, e),
2945
- max: mo(t, n)
2944
+ min: ho(t, e),
2945
+ max: ho(t, n)
2946
2946
  };
2947
2947
  }
2948
- function mo(t, e) {
2948
+ function ho(t, e) {
2949
2949
  var n;
2950
2950
  return typeof t == "number" ? t : (n = t[e]) !== null && n !== void 0 ? n : 0;
2951
2951
  }
2952
- var ho = function() {
2952
+ var mo = function() {
2953
2953
  return {
2954
2954
  translate: 0,
2955
2955
  scale: 1,
@@ -2958,8 +2958,8 @@ var ho = function() {
2958
2958
  };
2959
2959
  }, fe = function() {
2960
2960
  return {
2961
- x: ho(),
2962
- y: ho()
2961
+ x: mo(),
2962
+ y: mo()
2963
2963
  };
2964
2964
  }, go = function() {
2965
2965
  return { min: 0, max: 0 };
@@ -3017,7 +3017,7 @@ function So(t, e, n, r, o) {
3017
3017
  function Kn(t, e, n, r, o) {
3018
3018
  e === void 0 && (e = 0), n === void 0 && (n = 1), t.min = So(t.min, e, n, r, o), t.max = So(t.max, e, n, r, o);
3019
3019
  }
3020
- function ma(t, e) {
3020
+ function ha(t, e) {
3021
3021
  var n = e.x, r = e.y;
3022
3022
  Kn(t.x, n.translate, n.scale, n.originPoint), Kn(t.y, r.translate, r.scale, r.originPoint);
3023
3023
  }
@@ -3028,28 +3028,28 @@ function Tf(t, e, n, r) {
3028
3028
  if (i) {
3029
3029
  e.x = e.y = 1;
3030
3030
  for (var s, u, l = 0; l < i; l++)
3031
- s = n[l], u = s.projectionDelta, ((a = (o = s.instance) === null || o === void 0 ? void 0 : o.style) === null || a === void 0 ? void 0 : a.display) !== "contents" && (r && s.options.layoutScroll && s.scroll && s !== s.root && Yt(t, { x: -s.scroll.x, y: -s.scroll.y }), u && (e.x *= u.x.scale, e.y *= u.y.scale, ma(t, u)), r && Ot(s.latestValues) && Yt(t, s.latestValues));
3031
+ s = n[l], u = s.projectionDelta, ((a = (o = s.instance) === null || o === void 0 ? void 0 : o.style) === null || a === void 0 ? void 0 : a.display) !== "contents" && (r && s.options.layoutScroll && s.scroll && s !== s.root && Yt(t, { x: -s.scroll.x, y: -s.scroll.y }), u && (e.x *= u.x.scale, e.y *= u.y.scale, ha(t, u)), r && Ot(s.latestValues) && Yt(t, s.latestValues));
3032
3032
  }
3033
3033
  }
3034
- function Bt(t, e) {
3034
+ function Dt(t, e) {
3035
3035
  t.min = t.min + e, t.max = t.max + e;
3036
3036
  }
3037
3037
  function bo(t, e, n) {
3038
3038
  var r = nt(n, 3), o = r[0], a = r[1], i = r[2], s = e[i] !== void 0 ? e[i] : 0.5, u = tt(t.min, t.max, s);
3039
3039
  Kn(t, e[o], e[a], u, e.scale);
3040
3040
  }
3041
- var Cf = ["x", "scaleX", "originX"], Ef = ["y", "scaleY", "originY"];
3041
+ var Cf = ["x", "scaleX", "originX"], Vf = ["y", "scaleY", "originY"];
3042
3042
  function Yt(t, e) {
3043
- bo(t.x, e, Cf), bo(t.y, e, Ef);
3043
+ bo(t.x, e, Cf), bo(t.y, e, Vf);
3044
3044
  }
3045
- function ha(t, e) {
3045
+ function ma(t, e) {
3046
3046
  return va(xf(t.getBoundingClientRect(), e));
3047
3047
  }
3048
- function Vf(t, e, n) {
3049
- var r = ha(t, n), o = e.scroll;
3050
- return o && (Bt(r.x, o.x), Bt(r.y, o.y)), r;
3048
+ function Ef(t, e, n) {
3049
+ var r = ma(t, n), o = e.scroll;
3050
+ return o && (Dt(r.x, o.x), Dt(r.y, o.y)), r;
3051
3051
  }
3052
- var If = /* @__PURE__ */ new WeakMap(), Af = (
3052
+ var Af = /* @__PURE__ */ new WeakMap(), Mf = (
3053
3053
  /** @class */
3054
3054
  function() {
3055
3055
  function t(e) {
@@ -3061,27 +3061,27 @@ var If = /* @__PURE__ */ new WeakMap(), Af = (
3061
3061
  var s = function(f) {
3062
3062
  r.stopAnimation(), i && r.snapToCursor(ir(f, "page").point);
3063
3063
  }, u = function(f, d) {
3064
- var p, v = r.getProps(), m = v.drag, y = v.dragPropagation, h = v.onDragStart;
3065
- m && !y && (r.openGlobalLock && r.openGlobalLock(), r.openGlobalLock = Oi(m), !r.openGlobalLock) || (r.isDragging = !0, r.currentDirection = null, r.resolveConstraints(), r.visualElement.projection && (r.visualElement.projection.isAnimationBlocked = !0, r.visualElement.projection.target = void 0), _t(function(S) {
3064
+ var p, v = r.getProps(), h = v.drag, y = v.dragPropagation, m = v.onDragStart;
3065
+ h && !y && (r.openGlobalLock && r.openGlobalLock(), r.openGlobalLock = Oi(h), !r.openGlobalLock) || (r.isDragging = !0, r.currentDirection = null, r.resolveConstraints(), r.visualElement.projection && (r.visualElement.projection.isAnimationBlocked = !0, r.visualElement.projection.target = void 0), _t(function(S) {
3066
3066
  var g, w, x = r.getAxisMotionValue(S).get() || 0;
3067
3067
  if (xt.test(x)) {
3068
3068
  var T = (w = (g = r.visualElement.projection) === null || g === void 0 ? void 0 : g.layout) === null || w === void 0 ? void 0 : w.actual[S];
3069
3069
  if (T) {
3070
- var R = Mt(T);
3070
+ var R = It(T);
3071
3071
  x = R * (parseFloat(x) / 100);
3072
3072
  }
3073
3073
  }
3074
3074
  r.originPoint[S] = x;
3075
- }), h == null || h(f, d), (p = r.visualElement.animationState) === null || p === void 0 || p.setActive(z.Drag, !0));
3075
+ }), m == null || m(f, d), (p = r.visualElement.animationState) === null || p === void 0 || p.setActive(z.Drag, !0));
3076
3076
  }, l = function(f, d) {
3077
- var p = r.getProps(), v = p.dragPropagation, m = p.dragDirectionLock, y = p.onDirectionLock, h = p.onDrag;
3077
+ var p = r.getProps(), v = p.dragPropagation, h = p.dragDirectionLock, y = p.onDirectionLock, m = p.onDrag;
3078
3078
  if (!(!v && !r.openGlobalLock)) {
3079
3079
  var S = d.offset;
3080
- if (m && r.currentDirection === null) {
3081
- r.currentDirection = Mf(S), r.currentDirection !== null && (y == null || y(r.currentDirection));
3080
+ if (h && r.currentDirection === null) {
3081
+ r.currentDirection = If(S), r.currentDirection !== null && (y == null || y(r.currentDirection));
3082
3082
  return;
3083
3083
  }
3084
- r.updateAxis("x", d.point, S), r.updateAxis("y", d.point, S), r.visualElement.syncRender(), h == null || h(f, d);
3084
+ r.updateAxis("x", d.point, S), r.updateAxis("y", d.point, S), r.visualElement.syncRender(), m == null || m(f, d);
3085
3085
  }
3086
3086
  }, c = function(f, d) {
3087
3087
  return r.stop(f, d);
@@ -3126,7 +3126,7 @@ var If = /* @__PURE__ */ new WeakMap(), Af = (
3126
3126
  var a = this.visualElement.projection;
3127
3127
  if (!a || !a.layout)
3128
3128
  return !1;
3129
- var i = Vf(o, a.root, this.visualElement.getTransformPagePoint()), s = Sf(a.layout.actual, i);
3129
+ var i = Ef(o, a.root, this.visualElement.getTransformPagePoint()), s = Sf(a.layout.actual, i);
3130
3130
  if (r) {
3131
3131
  var u = r(_f(s));
3132
3132
  this.hasMutatedConstraints = !!u, u && (s = va(u));
@@ -3138,14 +3138,14 @@ var If = /* @__PURE__ */ new WeakMap(), Af = (
3138
3138
  if (Le(d, o, n.currentDirection)) {
3139
3139
  var v = (p = c == null ? void 0 : c[d]) !== null && p !== void 0 ? p : {};
3140
3140
  u && (v = { min: 0, max: 0 });
3141
- var m = i ? 200 : 1e6, y = i ? 40 : 1e7, h = b(b({ type: "inertia", velocity: a ? e[d] : 0, bounceStiffness: m, bounceDamping: y, timeConstant: 750, restDelta: 1, restSpeed: 10 }, s), v);
3142
- return n.startAxisValueAnimation(d, h);
3141
+ var h = i ? 200 : 1e6, y = i ? 40 : 1e7, m = b(b({ type: "inertia", velocity: a ? e[d] : 0, bounceStiffness: h, bounceDamping: y, timeConstant: 750, restDelta: 1, restSpeed: 10 }, s), v);
3142
+ return n.startAxisValueAnimation(d, m);
3143
3143
  }
3144
3144
  });
3145
3145
  return Promise.all(f).then(l);
3146
3146
  }, t.prototype.startAxisValueAnimation = function(e, n) {
3147
3147
  var r = this.getAxisMotionValue(e);
3148
- return mr(e, r, 0, n);
3148
+ return hr(e, r, 0, n);
3149
3149
  }, t.prototype.stopAnimation = function() {
3150
3150
  var e = this;
3151
3151
  _t(function(n) {
@@ -3188,7 +3188,7 @@ var If = /* @__PURE__ */ new WeakMap(), Af = (
3188
3188
  }
3189
3189
  }, t.prototype.addListeners = function() {
3190
3190
  var e = this, n;
3191
- If.set(this.visualElement, this);
3191
+ Af.set(this.visualElement, this);
3192
3192
  var r = this.visualElement.getInstance(), o = qt(r, "pointerdown", function(l) {
3193
3193
  var c = e.getProps(), f = c.drag, d = c.dragListener, p = d === void 0 ? !0 : d;
3194
3194
  f && p && e.start(l);
@@ -3218,14 +3218,14 @@ var If = /* @__PURE__ */ new WeakMap(), Af = (
3218
3218
  function Le(t, e, n) {
3219
3219
  return (e === !0 || e === t) && (n === null || n === t);
3220
3220
  }
3221
- function Mf(t, e) {
3221
+ function If(t, e) {
3222
3222
  e === void 0 && (e = 10);
3223
3223
  var n = null;
3224
3224
  return Math.abs(t.y) > e ? n = "y" : Math.abs(t.x) > e && (n = "x"), n;
3225
3225
  }
3226
3226
  function Rf(t) {
3227
3227
  var e = t.dragControls, n = t.visualElement, r = Pe(function() {
3228
- return new Af(n);
3228
+ return new Mf(n);
3229
3229
  });
3230
3230
  k(function() {
3231
3231
  return e && e.subscribe(r);
@@ -3271,7 +3271,7 @@ var Of = {
3271
3271
  "SetAxisTarget",
3272
3272
  "Unmount"
3273
3273
  ];
3274
- function Bf() {
3274
+ function Df() {
3275
3275
  var t = Oe.map(function() {
3276
3276
  return new ue();
3277
3277
  }), e = {}, n = {
@@ -3293,17 +3293,17 @@ function Bf() {
3293
3293
  }, n["notify" + Oe[o]] = function() {
3294
3294
  for (var a = [], i = 0; i < arguments.length; i++)
3295
3295
  a[i] = arguments[i];
3296
- return r.notify.apply(r, mt([], nt(a), !1));
3296
+ return r.notify.apply(r, ht([], nt(a), !1));
3297
3297
  };
3298
3298
  }), n;
3299
3299
  }
3300
- function Df(t, e, n) {
3300
+ function Bf(t, e, n) {
3301
3301
  var r;
3302
3302
  for (var o in e) {
3303
3303
  var a = e[o], i = n[o];
3304
- if (It(a))
3304
+ if (At(a))
3305
3305
  t.addValue(o, a), process.env.NODE_ENV === "development" && oa(a.version === "6.5.1", "Attempting to mix Framer Motion versions ".concat(a.version, " with 6.5.1 may not work as expected."));
3306
- else if (It(i))
3306
+ else if (At(i))
3307
3307
  t.addValue(o, Jt(a));
3308
3308
  else if (i !== a)
3309
3309
  if (t.hasValue(o)) {
@@ -3319,32 +3319,32 @@ function Df(t, e, n) {
3319
3319
  var ga = function(t) {
3320
3320
  var e = t.treeType, n = e === void 0 ? "" : e, r = t.build, o = t.getBaseTarget, a = t.makeTargetAnimatable, i = t.measureViewportBox, s = t.render, u = t.readValueFromInstance, l = t.removeValueFromRenderState, c = t.sortNodePosition, f = t.scrapeMotionValuesFromProps;
3321
3321
  return function(d, p) {
3322
- var v = d.parent, m = d.props, y = d.presenceId, h = d.blockInitialAnimation, S = d.visualState, g = d.shouldReduceMotion;
3322
+ var v = d.parent, h = d.props, y = d.presenceId, m = d.blockInitialAnimation, S = d.visualState, g = d.shouldReduceMotion;
3323
3323
  p === void 0 && (p = {});
3324
- var w = !1, x = S.latestValues, T = S.renderState, R, B = Bf(), V = /* @__PURE__ */ new Map(), F = /* @__PURE__ */ new Map(), J = {}, $ = b({}, x), j;
3325
- function I() {
3326
- !R || !w || (G(), s(R, T, m.style, D.projection));
3324
+ var w = !1, x = S.latestValues, T = S.renderState, R, D = Df(), E = /* @__PURE__ */ new Map(), F = /* @__PURE__ */ new Map(), J = {}, $ = b({}, x), j;
3325
+ function A() {
3326
+ !R || !w || (G(), s(R, T, h.style, B.projection));
3327
3327
  }
3328
3328
  function G() {
3329
- r(D, T, x, p, m);
3329
+ r(B, T, x, p, h);
3330
3330
  }
3331
3331
  function Q() {
3332
- B.notifyUpdate(x);
3332
+ D.notifyUpdate(x);
3333
3333
  }
3334
- function M(_, C) {
3334
+ function I(_, C) {
3335
3335
  var O = C.onChange(function(N) {
3336
- x[_] = N, m.onUpdate && Tt.update(Q, !1, !0);
3337
- }), L = C.onRenderRequest(D.scheduleRender);
3336
+ x[_] = N, h.onUpdate && Tt.update(Q, !1, !0);
3337
+ }), L = C.onRenderRequest(B.scheduleRender);
3338
3338
  F.set(_, function() {
3339
3339
  O(), L();
3340
3340
  });
3341
3341
  }
3342
- var it = f(m);
3342
+ var it = f(h);
3343
3343
  for (var at in it) {
3344
3344
  var ut = it[at];
3345
- x[at] !== void 0 && It(ut) && ut.set(x[at], !1);
3345
+ x[at] !== void 0 && At(ut) && ut.set(x[at], !1);
3346
3346
  }
3347
- var U = tn(m), X = ii(m), D = b(b({
3347
+ var U = tn(h), X = ii(h), B = b(b({
3348
3348
  treeType: n,
3349
3349
  /**
3350
3350
  * This is a mirror of the internal instance prop, which keeps
@@ -3388,7 +3388,7 @@ var ga = function(t) {
3388
3388
  * This can be set by AnimatePresence to force components that mount
3389
3389
  * at the same time as it to mount as if they have initial={false} set.
3390
3390
  */
3391
- blockInitialAnimation: h,
3391
+ blockInitialAnimation: m,
3392
3392
  /**
3393
3393
  * Determine whether this component has mounted yet. This is mostly used
3394
3394
  * by variant children to determine whether they need to trigger their
@@ -3398,44 +3398,44 @@ var ga = function(t) {
3398
3398
  return !!R;
3399
3399
  },
3400
3400
  mount: function(_) {
3401
- w = !0, R = D.current = _, D.projection && D.projection.mount(_), X && v && !U && (j = v == null ? void 0 : v.addVariantChild(D)), V.forEach(function(C, O) {
3402
- return M(O, C);
3403
- }), v == null || v.children.add(D), D.setProps(m);
3401
+ w = !0, R = B.current = _, B.projection && B.projection.mount(_), X && v && !U && (j = v == null ? void 0 : v.addVariantChild(B)), E.forEach(function(C, O) {
3402
+ return I(O, C);
3403
+ }), v == null || v.children.add(B), B.setProps(h);
3404
3404
  },
3405
3405
  /**
3406
3406
  *
3407
3407
  */
3408
3408
  unmount: function() {
3409
3409
  var _;
3410
- (_ = D.projection) === null || _ === void 0 || _.unmount(), Zt.update(Q), Zt.render(I), F.forEach(function(C) {
3410
+ (_ = B.projection) === null || _ === void 0 || _.unmount(), Zt.update(Q), Zt.render(A), F.forEach(function(C) {
3411
3411
  return C();
3412
- }), j == null || j(), v == null || v.children.delete(D), B.clearAllListeners(), R = void 0, w = !1;
3412
+ }), j == null || j(), v == null || v.children.delete(B), D.clearAllListeners(), R = void 0, w = !1;
3413
3413
  },
3414
3414
  /**
3415
3415
  * Add a child visual element to our set of children.
3416
3416
  */
3417
3417
  addVariantChild: function(_) {
3418
- var C, O = D.getClosestVariantNode();
3418
+ var C, O = B.getClosestVariantNode();
3419
3419
  if (O)
3420
3420
  return (C = O.variantChildren) === null || C === void 0 || C.add(_), function() {
3421
3421
  return O.variantChildren.delete(_);
3422
3422
  };
3423
3423
  },
3424
3424
  sortNodePosition: function(_) {
3425
- return !c || n !== _.treeType ? 0 : c(D.getInstance(), _.getInstance());
3425
+ return !c || n !== _.treeType ? 0 : c(B.getInstance(), _.getInstance());
3426
3426
  },
3427
3427
  /**
3428
3428
  * Returns the closest variant node in the tree starting from
3429
3429
  * this visual element.
3430
3430
  */
3431
3431
  getClosestVariantNode: function() {
3432
- return X ? D : v == null ? void 0 : v.getClosestVariantNode();
3432
+ return X ? B : v == null ? void 0 : v.getClosestVariantNode();
3433
3433
  },
3434
3434
  /**
3435
3435
  * Expose the latest layoutId prop.
3436
3436
  */
3437
3437
  getLayoutId: function() {
3438
- return m.layoutId;
3438
+ return h.layoutId;
3439
3439
  },
3440
3440
  /**
3441
3441
  * Returns the current instance.
@@ -3465,7 +3465,7 @@ var ga = function(t) {
3465
3465
  * a render to reflect these changes.
3466
3466
  */
3467
3467
  setVisibility: function(_) {
3468
- D.isVisible !== _ && (D.isVisible = _, D.scheduleRender());
3468
+ B.isVisible !== _ && (B.isVisible = _, B.scheduleRender());
3469
3469
  },
3470
3470
  /**
3471
3471
  * Make a target animatable by Popmotion. For instance, if we're
@@ -3475,7 +3475,7 @@ var ga = function(t) {
3475
3475
  * and CSS variables.
3476
3476
  */
3477
3477
  makeTargetAnimatable: function(_, C) {
3478
- return C === void 0 && (C = !0), a(D, _, m, C);
3478
+ return C === void 0 && (C = !0), a(B, _, h, C);
3479
3479
  },
3480
3480
  /**
3481
3481
  * Measure the current viewport box with or without transforms.
@@ -3483,41 +3483,41 @@ var ga = function(t) {
3483
3483
  * removed with a re-render to work.
3484
3484
  */
3485
3485
  measureViewportBox: function() {
3486
- return i(R, m);
3486
+ return i(R, h);
3487
3487
  },
3488
3488
  // Motion values ========================
3489
3489
  /**
3490
3490
  * Add a motion value and bind it to this visual element.
3491
3491
  */
3492
3492
  addValue: function(_, C) {
3493
- D.hasValue(_) && D.removeValue(_), V.set(_, C), x[_] = C.get(), M(_, C);
3493
+ B.hasValue(_) && B.removeValue(_), E.set(_, C), x[_] = C.get(), I(_, C);
3494
3494
  },
3495
3495
  /**
3496
3496
  * Remove a motion value and unbind any active subscriptions.
3497
3497
  */
3498
3498
  removeValue: function(_) {
3499
3499
  var C;
3500
- V.delete(_), (C = F.get(_)) === null || C === void 0 || C(), F.delete(_), delete x[_], l(_, T);
3500
+ E.delete(_), (C = F.get(_)) === null || C === void 0 || C(), F.delete(_), delete x[_], l(_, T);
3501
3501
  },
3502
3502
  /**
3503
3503
  * Check whether we have a motion value for this key
3504
3504
  */
3505
3505
  hasValue: function(_) {
3506
- return V.has(_);
3506
+ return E.has(_);
3507
3507
  },
3508
3508
  /**
3509
3509
  * Get a motion value for this key. If called with a default
3510
3510
  * value, we'll create one if none exists.
3511
3511
  */
3512
3512
  getValue: function(_, C) {
3513
- var O = V.get(_);
3514
- return O === void 0 && C !== void 0 && (O = Jt(C), D.addValue(_, O)), O;
3513
+ var O = E.get(_);
3514
+ return O === void 0 && C !== void 0 && (O = Jt(C), B.addValue(_, O)), O;
3515
3515
  },
3516
3516
  /**
3517
3517
  * Iterate over our motion values.
3518
3518
  */
3519
3519
  forEachValue: function(_) {
3520
- return V.forEach(_);
3520
+ return E.forEach(_);
3521
3521
  },
3522
3522
  /**
3523
3523
  * If we're trying to animate to a previously unencountered value,
@@ -3541,13 +3541,13 @@ var ga = function(t) {
3541
3541
  */
3542
3542
  getBaseTarget: function(_) {
3543
3543
  if (o) {
3544
- var C = o(m, _);
3545
- if (C !== void 0 && !It(C))
3544
+ var C = o(h, _);
3545
+ if (C !== void 0 && !At(C))
3546
3546
  return C;
3547
3547
  }
3548
3548
  return $[_];
3549
3549
  }
3550
- }, B), {
3550
+ }, D), {
3551
3551
  /**
3552
3552
  * Build the renderer state based on the latest visual state.
3553
3553
  */
@@ -3558,7 +3558,7 @@ var ga = function(t) {
3558
3558
  * Schedule a render on the next animation frame.
3559
3559
  */
3560
3560
  scheduleRender: function() {
3561
- Tt.render(I, !1, !0);
3561
+ Tt.render(A, !1, !0);
3562
3562
  },
3563
3563
  /**
3564
3564
  * Synchronously fire render. It's prefered that we batch renders but
@@ -3566,16 +3566,16 @@ var ga = function(t) {
3566
3566
  * synchronously. However in those instances other measures should be taken
3567
3567
  * to batch reads/writes.
3568
3568
  */
3569
- syncRender: I,
3569
+ syncRender: A,
3570
3570
  /**
3571
3571
  * Update the provided props. Ensure any newly-added motion values are
3572
3572
  * added to our map, old ones removed, and listeners updated.
3573
3573
  */
3574
3574
  setProps: function(_) {
3575
- (_.transformTemplate || m.transformTemplate) && D.scheduleRender(), m = _, B.updatePropListeners(_), J = Df(D, f(m), J);
3575
+ (_.transformTemplate || h.transformTemplate) && B.scheduleRender(), h = _, D.updatePropListeners(_), J = Bf(B, f(h), J);
3576
3576
  },
3577
3577
  getProps: function() {
3578
- return m;
3578
+ return h;
3579
3579
  },
3580
3580
  // Variants ==============================
3581
3581
  /**
@@ -3583,16 +3583,16 @@ var ga = function(t) {
3583
3583
  */
3584
3584
  getVariant: function(_) {
3585
3585
  var C;
3586
- return (C = m.variants) === null || C === void 0 ? void 0 : C[_];
3586
+ return (C = h.variants) === null || C === void 0 ? void 0 : C[_];
3587
3587
  },
3588
3588
  /**
3589
3589
  * Returns the defined default transition on this component.
3590
3590
  */
3591
3591
  getDefaultTransition: function() {
3592
- return m.transition;
3592
+ return h.transition;
3593
3593
  },
3594
3594
  getTransformPagePoint: function() {
3595
- return m.transformPagePoint;
3595
+ return h.transformPagePoint;
3596
3596
  },
3597
3597
  /**
3598
3598
  * Used by child variant nodes to get the closest ancestor variant props.
@@ -3602,18 +3602,18 @@ var ga = function(t) {
3602
3602
  return v == null ? void 0 : v.getVariantContext();
3603
3603
  if (!U) {
3604
3604
  var C = (v == null ? void 0 : v.getVariantContext()) || {};
3605
- return m.initial !== void 0 && (C.initial = m.initial), C;
3605
+ return h.initial !== void 0 && (C.initial = h.initial), C;
3606
3606
  }
3607
3607
  for (var O = {}, L = 0; L < Nf; L++) {
3608
- var N = ya[L], W = m[N];
3609
- (St(W) || W === !1) && (O[N] = W);
3608
+ var N = ya[L], H = h[N];
3609
+ (St(H) || H === !1) && (O[N] = H);
3610
3610
  }
3611
3611
  return O;
3612
3612
  }
3613
3613
  });
3614
- return D;
3614
+ return B;
3615
3615
  };
3616
- }, ya = mt(["initial"], nt(Sr), !1), Nf = ya.length;
3616
+ }, ya = ht(["initial"], nt(Sr), !1), Nf = ya.length;
3617
3617
  function Yn(t) {
3618
3618
  return typeof t == "string" && t.startsWith("var(--");
3619
3619
  }
@@ -3635,7 +3635,7 @@ function qn(t, e, n) {
3635
3635
  }
3636
3636
  }
3637
3637
  function kf(t, e, n) {
3638
- var r, o = ht(e, []), a = t.getInstance();
3638
+ var r, o = mt(e, []), a = t.getInstance();
3639
3639
  if (!(a instanceof Element))
3640
3640
  return { target: o, transitionEnd: n };
3641
3641
  n && (n = b({}, n)), t.forEachValue(function(l) {
@@ -3669,8 +3669,8 @@ var $f = /* @__PURE__ */ new Set([
3669
3669
  return Object.keys(t).some(ba);
3670
3670
  }, Pa = function(t, e) {
3671
3671
  t.set(e, !1), t.set(e);
3672
- }, Be = function(t) {
3673
- return t === Ht || t === A;
3672
+ }, De = function(t) {
3673
+ return t === Wt || t === M;
3674
3674
  }, Po;
3675
3675
  (function(t) {
3676
3676
  t.width = "width", t.height = "height", t.left = "left", t.right = "right", t.top = "top", t.bottom = "bottom";
@@ -3688,12 +3688,12 @@ var wo = function(t, e) {
3688
3688
  var i = o.match(/^matrix\((.+)\)$/);
3689
3689
  return i ? wo(i[1], t) : 0;
3690
3690
  };
3691
- }, Wf = /* @__PURE__ */ new Set(["x", "y", "z"]), Hf = me.filter(function(t) {
3692
- return !Wf.has(t);
3691
+ }, Hf = /* @__PURE__ */ new Set(["x", "y", "z"]), Wf = he.filter(function(t) {
3692
+ return !Hf.has(t);
3693
3693
  });
3694
3694
  function zf(t) {
3695
3695
  var e = [];
3696
- return Hf.forEach(function(n) {
3696
+ return Wf.forEach(function(n) {
3697
3697
  var r = t.getValue(n);
3698
3698
  r !== void 0 && (e.push([n, r.get()]), r.set(n.startsWith("scale") ? 1 : 0));
3699
3699
  }), e.length && t.syncRender(), e;
@@ -3743,19 +3743,19 @@ var xo = {
3743
3743
  if (o.forEach(function(c) {
3744
3744
  var f = t.getValue(c);
3745
3745
  if (t.hasValue(c)) {
3746
- var d = n[c], p = re(d), v = e[c], m;
3746
+ var d = n[c], p = re(d), v = e[c], h;
3747
3747
  if (ge(v)) {
3748
- var y = v.length, h = v[0] === null ? 1 : 0;
3749
- d = v[h], p = re(d);
3750
- for (var S = h; S < y; S++)
3751
- m ? vt(re(v[S]) === m, "All keyframes must be of the same type") : (m = re(v[S]), vt(m === p || Be(p) && Be(m), "Keyframes must be of the same dimension as the current value"));
3748
+ var y = v.length, m = v[0] === null ? 1 : 0;
3749
+ d = v[m], p = re(d);
3750
+ for (var S = m; S < y; S++)
3751
+ h ? vt(re(v[S]) === h, "All keyframes must be of the same type") : (h = re(v[S]), vt(h === p || De(p) && De(h), "Keyframes must be of the same dimension as the current value"));
3752
3752
  } else
3753
- m = re(v);
3754
- if (p !== m)
3755
- if (Be(p) && Be(m)) {
3753
+ h = re(v);
3754
+ if (p !== h)
3755
+ if (De(p) && De(h)) {
3756
3756
  var g = f.get();
3757
- typeof g == "string" && f.set(parseFloat(g)), typeof v == "string" ? e[c] = parseFloat(v) : Array.isArray(v) && m === A && (e[c] = v.map(parseFloat));
3758
- } else p != null && p.transform && (m != null && m.transform) && (d === 0 || v === 0) ? d === 0 ? f.set(m.transform(d)) : e[c] = p.transform(v) : (i || (a = zf(t), i = !0), s.push(c), r[c] = r[c] !== void 0 ? r[c] : e[c], Pa(f, v));
3757
+ typeof g == "string" && f.set(parseFloat(g)), typeof v == "string" ? e[c] = parseFloat(v) : Array.isArray(v) && h === M && (e[c] = v.map(parseFloat));
3758
+ } else p != null && p.transform && (h != null && h.transform) && (d === 0 || v === 0) ? d === 0 ? f.set(h.transform(d)) : e[c] = p.transform(v) : (i || (a = zf(t), i = !0), s.push(c), r[c] = r[c] !== void 0 ? r[c] : e[c], Pa(f, v));
3759
3759
  }
3760
3760
  }), s.length) {
3761
3761
  var u = s.indexOf("height") >= 0 ? window.pageYOffset : null, l = Gf(e, t, s);
@@ -3796,7 +3796,7 @@ var wa = {
3796
3796
  },
3797
3797
  measureViewportBox: function(t, e) {
3798
3798
  var n = e.transformPagePoint;
3799
- return ha(t, n);
3799
+ return ma(t, n);
3800
3800
  },
3801
3801
  /**
3802
3802
  * Reset the transform on the current Element. This is called as part
@@ -3823,7 +3823,7 @@ var wa = {
3823
3823
  makeTargetAnimatable: function(t, e, n, r) {
3824
3824
  var o = n.transformValues;
3825
3825
  r === void 0 && (r = !0);
3826
- var a = e.transition, i = e.transitionEnd, s = ht(e, ["transition", "transitionEnd"]), u = ef(s, a || {}, t);
3826
+ var a = e.transition, i = e.transitionEnd, s = mt(e, ["transition", "transitionEnd"]), u = ef(s, a || {}, t);
3827
3827
  if (o && (i && (i = o(i)), s && (s = o(s)), u && (u = o(u))), r) {
3828
3828
  Qc(t, s, u);
3829
3829
  var l = qf(t, s, u, i);
@@ -3854,7 +3854,7 @@ var oe = {
3854
3854
  if (!e.target)
3855
3855
  return t;
3856
3856
  if (typeof t == "string")
3857
- if (A.test(t))
3857
+ if (M.test(t))
3858
3858
  t = parseFloat(t);
3859
3859
  else
3860
3860
  return t;
@@ -3864,13 +3864,13 @@ var oe = {
3864
3864
  }, Co = "_$css", td = {
3865
3865
  correct: function(t, e) {
3866
3866
  var n = e.treeScale, r = e.projectionDelta, o = t, a = t.includes("var("), i = [];
3867
- a && (t = t.replace(Sa, function(m) {
3868
- return i.push(m), Co;
3867
+ a && (t = t.replace(Sa, function(h) {
3868
+ return i.push(h), Co;
3869
3869
  }));
3870
- var s = At.parse(t);
3870
+ var s = Mt.parse(t);
3871
3871
  if (s.length > 5)
3872
3872
  return o;
3873
- var u = At.createTransformer(t), l = typeof s[0] != "number" ? 1 : 0, c = r.x.scale * n.x, f = r.y.scale * n.y;
3873
+ var u = Mt.createTransformer(t), l = typeof s[0] != "number" ? 1 : 0, c = r.x.scale * n.x, f = r.y.scale * n.y;
3874
3874
  s[0 + l] /= c, s[1 + l] /= f;
3875
3875
  var d = tt(c, f, 0.5);
3876
3876
  typeof s[2 + l] == "number" && (s[2 + l] /= d), typeof s[3 + l] == "number" && (s[3 + l] /= d);
@@ -3878,8 +3878,8 @@ var oe = {
3878
3878
  if (a) {
3879
3879
  var v = 0;
3880
3880
  p = p.replace(Co, function() {
3881
- var m = i[v];
3882
- return v++, m;
3881
+ var h = i[v];
3882
+ return v++, h;
3883
3883
  });
3884
3884
  }
3885
3885
  return p;
@@ -3916,11 +3916,11 @@ var oe = {
3916
3916
  }, e.prototype.render = function() {
3917
3917
  return null;
3918
3918
  }, e;
3919
- }(E.Component)
3919
+ }(V.Component)
3920
3920
  );
3921
3921
  function nd(t) {
3922
3922
  var e = nt(ia(), 2), n = e[0], r = e[1], o = st(ai);
3923
- return E.createElement(ed, b({}, t, { layoutGroup: o, switchLayoutGroup: st(si), isPresent: n, safeToRemove: r }));
3923
+ return V.createElement(ed, b({}, t, { layoutGroup: o, switchLayoutGroup: st(si), isPresent: n, safeToRemove: r }));
3924
3924
  }
3925
3925
  var rd = {
3926
3926
  borderRadius: b(b({}, oe), { applyTo: [
@@ -3939,8 +3939,8 @@ var rd = {
3939
3939
  };
3940
3940
  function id(t, e, n) {
3941
3941
  n === void 0 && (n = {});
3942
- var r = It(t) ? t : Jt(t);
3943
- return mr("", r, e, n), {
3942
+ var r = At(t) ? t : Jt(t);
3943
+ return hr("", r, e, n), {
3944
3944
  stop: function() {
3945
3945
  return r.stop();
3946
3946
  },
@@ -3949,10 +3949,10 @@ function id(t, e, n) {
3949
3949
  }
3950
3950
  };
3951
3951
  }
3952
- var _a = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], ad = _a.length, Eo = function(t) {
3952
+ var _a = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], ad = _a.length, Vo = function(t) {
3953
3953
  return typeof t == "string" ? parseFloat(t) : t;
3954
- }, Vo = function(t) {
3955
- return typeof t == "number" || A.test(t);
3954
+ }, Eo = function(t) {
3955
+ return typeof t == "number" || M.test(t);
3956
3956
  };
3957
3957
  function sd(t, e, n, r, o, a) {
3958
3958
  var i, s, u, l;
@@ -3964,16 +3964,16 @@ function sd(t, e, n, r, o, a) {
3964
3964
  ud(r)
3965
3965
  ), t.opacityExit = tt((s = e.opacity) !== null && s !== void 0 ? s : 1, 0, ld(r))) : a && (t.opacity = tt((u = e.opacity) !== null && u !== void 0 ? u : 1, (l = n.opacity) !== null && l !== void 0 ? l : 1, r));
3966
3966
  for (var c = 0; c < ad; c++) {
3967
- var f = "border".concat(_a[c], "Radius"), d = Io(e, f), p = Io(n, f);
3967
+ var f = "border".concat(_a[c], "Radius"), d = Ao(e, f), p = Ao(n, f);
3968
3968
  if (!(d === void 0 && p === void 0)) {
3969
3969
  d || (d = 0), p || (p = 0);
3970
- var v = d === 0 || p === 0 || Vo(d) === Vo(p);
3971
- v ? (t[f] = Math.max(tt(Eo(d), Eo(p), r), 0), (xt.test(p) || xt.test(d)) && (t[f] += "%")) : t[f] = p;
3970
+ var v = d === 0 || p === 0 || Eo(d) === Eo(p);
3971
+ v ? (t[f] = Math.max(tt(Vo(d), Vo(p), r), 0), (xt.test(p) || xt.test(d)) && (t[f] += "%")) : t[f] = p;
3972
3972
  }
3973
3973
  }
3974
3974
  (e.rotate || n.rotate) && (t.rotate = tt(e.rotate || 0, n.rotate || 0, r));
3975
3975
  }
3976
- function Io(t, e) {
3976
+ function Ao(t, e) {
3977
3977
  var n;
3978
3978
  return (n = t[e]) !== null && n !== void 0 ? n : t.borderRadius;
3979
3979
  }
@@ -3983,13 +3983,13 @@ function xa(t, e, n) {
3983
3983
  return r < t ? 0 : r > e ? 1 : n(ye(t, e, r));
3984
3984
  };
3985
3985
  }
3986
- function Ao(t, e) {
3986
+ function Mo(t, e) {
3987
3987
  t.min = e.min, t.max = e.max;
3988
3988
  }
3989
3989
  function yt(t, e) {
3990
- Ao(t.x, e.x), Ao(t.y, e.y);
3990
+ Mo(t.x, e.x), Mo(t.y, e.y);
3991
3991
  }
3992
- function Mo(t, e, n, r, o) {
3992
+ function Io(t, e, n, r, o) {
3993
3993
  return t -= e, t = Ye(t, 1 / n, r), o !== void 0 && (t = Ye(t, 1 / o, r)), t;
3994
3994
  }
3995
3995
  function cd(t, e, n, r, o, a, i) {
@@ -4000,7 +4000,7 @@ function cd(t, e, n, r, o, a, i) {
4000
4000
  }
4001
4001
  if (typeof e == "number") {
4002
4002
  var u = tt(a.min, a.max, r);
4003
- t === a && (u -= e), t.min = Mo(t.min, e, n, u, o), t.max = Mo(t.max, e, n, u, o);
4003
+ t === a && (u -= e), t.min = Io(t.min, e, n, u, o), t.max = Io(t.max, e, n, u, o);
4004
4004
  }
4005
4005
  }
4006
4006
  function Ro(t, e, n, r, o) {
@@ -4027,7 +4027,7 @@ var vd = (
4027
4027
  this.members = [];
4028
4028
  }
4029
4029
  return t.prototype.add = function(e) {
4030
- hr(this.members, e), e.scheduleRender();
4030
+ mr(this.members, e), e.scheduleRender();
4031
4031
  }, t.prototype.remove = function(e) {
4032
4032
  if (gr(this.members, e), e === this.prevLead && (this.prevLead = void 0), e === this.lead) {
4033
4033
  var n = this.members[this.members.length - 1];
@@ -4068,7 +4068,7 @@ var vd = (
4068
4068
  }, t;
4069
4069
  }()
4070
4070
  ), pd = "translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)";
4071
- function Bo(t, e, n) {
4071
+ function Do(t, e, n) {
4072
4072
  var r = t.x.translate / e.x, o = t.y.translate / e.y, a = "translate3d(".concat(r, "px, ").concat(o, "px, 0) ");
4073
4073
  if (a += "scale(".concat(1 / e.x, ", ").concat(1 / e.y, ") "), n) {
4074
4074
  var i = n.rotate, s = n.rotateX, u = n.rotateY;
@@ -4077,24 +4077,24 @@ function Bo(t, e, n) {
4077
4077
  var l = t.x.scale * e.x, c = t.y.scale * e.y;
4078
4078
  return a += "scale(".concat(l, ", ").concat(c, ")"), a === pd ? "none" : a;
4079
4079
  }
4080
- var md = function(t, e) {
4080
+ var hd = function(t, e) {
4081
4081
  return t.depth - e.depth;
4082
- }, hd = (
4082
+ }, md = (
4083
4083
  /** @class */
4084
4084
  function() {
4085
4085
  function t() {
4086
4086
  this.children = [], this.isDirty = !1;
4087
4087
  }
4088
4088
  return t.prototype.add = function(e) {
4089
- hr(this.children, e), this.isDirty = !0;
4089
+ mr(this.children, e), this.isDirty = !0;
4090
4090
  }, t.prototype.remove = function(e) {
4091
4091
  gr(this.children, e), this.isDirty = !0;
4092
4092
  }, t.prototype.forEach = function(e) {
4093
- this.isDirty && this.children.sort(md), this.isDirty = !1, this.children.forEach(e);
4093
+ this.isDirty && this.children.sort(hd), this.isDirty = !1, this.children.forEach(e);
4094
4094
  }, t;
4095
4095
  }()
4096
- ), Do = 1e3;
4097
- function Ea(t) {
4096
+ ), Bo = 1e3;
4097
+ function Va(t) {
4098
4098
  var e = t.attachResizeListener, n = t.defaultParent, r = t.measureScroll, o = t.checkIsScrollRoot, a = t.resetTransform;
4099
4099
  return (
4100
4100
  /** @class */
@@ -4105,10 +4105,10 @@ function Ea(t) {
4105
4105
  c.isUpdating && (c.isUpdating = !1, c.clearAllSnapshots());
4106
4106
  }, this.updateProjection = function() {
4107
4107
  c.nodes.forEach(wd), c.nodes.forEach(_d);
4108
- }, this.hasProjected = !1, this.isVisible = !0, this.animationProgress = 0, this.sharedNodes = /* @__PURE__ */ new Map(), this.id = s, this.latestValues = u, this.root = l ? l.root || l : this, this.path = l ? mt(mt([], nt(l.path), !1), [l], !1) : [], this.parent = l, this.depth = l ? l.depth + 1 : 0, s && this.root.registerPotentialNode(s, this);
4108
+ }, this.hasProjected = !1, this.isVisible = !0, this.animationProgress = 0, this.sharedNodes = /* @__PURE__ */ new Map(), this.id = s, this.latestValues = u, this.root = l ? l.root || l : this, this.path = l ? ht(ht([], nt(l.path), !1), [l], !1) : [], this.parent = l, this.depth = l ? l.depth + 1 : 0, s && this.root.registerPotentialNode(s, this);
4109
4109
  for (var f = 0; f < this.path.length; f++)
4110
4110
  this.path[f].shouldResetTransform = !0;
4111
- this.root === this && (this.nodes = new hd());
4111
+ this.root === this && (this.nodes = new md());
4112
4112
  }
4113
4113
  return i.prototype.addEventListener = function(s, u) {
4114
4114
  return this.eventHandlers.has(s) || this.eventHandlers.set(s, new ue()), this.eventHandlers.get(s).add(u);
@@ -4116,7 +4116,7 @@ function Ea(t) {
4116
4116
  for (var u = [], l = 1; l < arguments.length; l++)
4117
4117
  u[l - 1] = arguments[l];
4118
4118
  var c = this.eventHandlers.get(s);
4119
- c == null || c.notify.apply(c, mt([], nt(u), !1));
4119
+ c == null || c.notify.apply(c, ht([], nt(u), !1));
4120
4120
  }, i.prototype.hasListeners = function(s) {
4121
4121
  return this.eventHandlers.has(s);
4122
4122
  }, i.prototype.registerPotentialNode = function(s, u) {
@@ -4127,26 +4127,26 @@ function Ea(t) {
4127
4127
  this.isSVG = s instanceof SVGElement && s.tagName !== "svg", this.instance = s;
4128
4128
  var f = this.options, d = f.layoutId, p = f.layout, v = f.visualElement;
4129
4129
  if (v && !v.getInstance() && v.mount(s), this.root.nodes.add(this), (c = this.parent) === null || c === void 0 || c.children.add(this), this.id && this.root.potentialNodes.delete(this.id), u && (p || d) && (this.isLayoutDirty = !0), e) {
4130
- var m, y = function() {
4130
+ var h, y = function() {
4131
4131
  return l.root.updateBlockedByResize = !1;
4132
4132
  };
4133
4133
  e(s, function() {
4134
- l.root.updateBlockedByResize = !0, clearTimeout(m), m = window.setTimeout(y, 250), ie.hasAnimatedSinceResize && (ie.hasAnimatedSinceResize = !1, l.nodes.forEach(Pd));
4134
+ l.root.updateBlockedByResize = !0, clearTimeout(h), h = window.setTimeout(y, 250), ie.hasAnimatedSinceResize && (ie.hasAnimatedSinceResize = !1, l.nodes.forEach(Pd));
4135
4135
  });
4136
4136
  }
4137
- d && this.root.registerSharedNode(d, this), this.options.animate !== !1 && v && (d || p) && this.addEventListener("didUpdate", function(h) {
4138
- var S, g, w, x, T, R = h.delta, B = h.hasLayoutChanged, V = h.hasRelativeTargetChanged, F = h.layout;
4137
+ d && this.root.registerSharedNode(d, this), this.options.animate !== !1 && v && (d || p) && this.addEventListener("didUpdate", function(m) {
4138
+ var S, g, w, x, T, R = m.delta, D = m.hasLayoutChanged, E = m.hasRelativeTargetChanged, F = m.layout;
4139
4139
  if (l.isTreeAnimationBlocked()) {
4140
4140
  l.target = void 0, l.relativeTarget = void 0;
4141
4141
  return;
4142
4142
  }
4143
- var J = (g = (S = l.options.transition) !== null && S !== void 0 ? S : v.getDefaultTransition()) !== null && g !== void 0 ? g : Vd, $ = v.getProps(), j = $.onLayoutAnimationStart, I = $.onLayoutAnimationComplete, G = !l.targetLayout || !Ca(l.targetLayout, F) || V, Q = !B && V;
4144
- if (!((w = l.resumeFrom) === null || w === void 0) && w.instance || Q || B && (G || !l.currentAnimation)) {
4143
+ var J = (g = (S = l.options.transition) !== null && S !== void 0 ? S : v.getDefaultTransition()) !== null && g !== void 0 ? g : Ed, $ = v.getProps(), j = $.onLayoutAnimationStart, A = $.onLayoutAnimationComplete, G = !l.targetLayout || !Ca(l.targetLayout, F) || E, Q = !D && E;
4144
+ if (!((w = l.resumeFrom) === null || w === void 0) && w.instance || Q || D && (G || !l.currentAnimation)) {
4145
4145
  l.resumeFrom && (l.resumingFrom = l.resumeFrom, l.resumingFrom.resumingFrom = void 0), l.setAnimationOrigin(R, Q);
4146
- var M = b(b({}, pr(J, "layout")), { onPlay: j, onComplete: I });
4147
- v.shouldReduceMotion && (M.delay = 0, M.type = !1), l.startAnimation(M);
4146
+ var I = b(b({}, pr(J, "layout")), { onPlay: j, onComplete: A });
4147
+ v.shouldReduceMotion && (I.delay = 0, I.type = !1), l.startAnimation(I);
4148
4148
  } else
4149
- !B && l.animationProgress === 0 && l.finishAnimation(), l.isLead() && ((T = (x = l.options).onExitComplete) === null || T === void 0 || T.call(x));
4149
+ !D && l.animationProgress === 0 && l.finishAnimation(), l.isLead() && ((T = (x = l.options).onExitComplete) === null || T === void 0 || T.call(x));
4150
4150
  l.targetLayout = F;
4151
4151
  });
4152
4152
  }
@@ -4177,8 +4177,8 @@ function Ea(t) {
4177
4177
  var d = this.path[f];
4178
4178
  d.shouldResetTransform = !0, d.updateScroll();
4179
4179
  }
4180
- var p = this.options, v = p.layoutId, m = p.layout;
4181
- if (!(v === void 0 && !m)) {
4180
+ var p = this.options, v = p.layoutId, h = p.layout;
4181
+ if (!(v === void 0 && !h)) {
4182
4182
  var y = (c = this.options.visualElement) === null || c === void 0 ? void 0 : c.getProps().transformTemplate;
4183
4183
  this.prevTransformTemplateValue = y == null ? void 0 : y(this.latestValues, ""), this.updateSnapshot(), s && this.notifyListeners("willUpdate");
4184
4184
  }
@@ -4189,7 +4189,7 @@ function Ea(t) {
4189
4189
  this.unblockUpdate(), this.clearAllSnapshots(), this.nodes.forEach(No);
4190
4190
  return;
4191
4191
  }
4192
- this.isUpdating && (this.isUpdating = !1, this.potentialNodes.size && (this.potentialNodes.forEach(Id), this.potentialNodes.clear()), this.nodes.forEach(bd), this.nodes.forEach(gd), this.nodes.forEach(yd), this.clearAllSnapshots(), Sn.update(), Sn.preRender(), Sn.render());
4192
+ this.isUpdating && (this.isUpdating = !1, this.potentialNodes.size && (this.potentialNodes.forEach(Ad), this.potentialNodes.clear()), this.nodes.forEach(bd), this.nodes.forEach(gd), this.nodes.forEach(yd), this.clearAllSnapshots(), Sn.update(), Sn.preRender(), Sn.render());
4193
4193
  }, i.prototype.clearAllSnapshots = function() {
4194
4194
  this.nodes.forEach(Sd), this.sharedNodes.forEach(Td);
4195
4195
  }, i.prototype.scheduleUpdateProjection = function() {
@@ -4237,7 +4237,7 @@ function Ea(t) {
4237
4237
  if (!s)
4238
4238
  return lt();
4239
4239
  var u = s.measureViewportBox(), l = this.root.scroll;
4240
- return l && (Bt(u.x, l.x), Bt(u.y, l.y)), u;
4240
+ return l && (Dt(u.x, l.x), Dt(u.y, l.y)), u;
4241
4241
  }, i.prototype.removeElementScroll = function(s) {
4242
4242
  var u = lt();
4243
4243
  yt(u, s);
@@ -4247,9 +4247,9 @@ function Ea(t) {
4247
4247
  if (p) {
4248
4248
  yt(u, s);
4249
4249
  var v = this.root.scroll;
4250
- v && (Bt(u.x, -v.x), Bt(u.y, -v.y));
4250
+ v && (Dt(u.x, -v.x), Dt(u.y, -v.y));
4251
4251
  }
4252
- Bt(u.x, f.x), Bt(u.y, f.y);
4252
+ Dt(u.x, f.x), Dt(u.y, f.y);
4253
4253
  }
4254
4254
  }
4255
4255
  return u;
@@ -4286,7 +4286,7 @@ function Ea(t) {
4286
4286
  this.scroll = void 0, this.layout = void 0, this.snapshot = void 0, this.prevTransformTemplateValue = void 0, this.targetDelta = void 0, this.target = void 0, this.isLayoutDirty = !1;
4287
4287
  }, i.prototype.resolveTargetDelta = function() {
4288
4288
  var s, u = this.options, l = u.layout, c = u.layoutId;
4289
- !this.layout || !(l || c) || (!this.targetDelta && !this.relativeTarget && (this.relativeParent = this.getClosestProjectingParent(), this.relativeParent && this.relativeParent.layout && (this.relativeTarget = lt(), this.relativeTargetOrigin = lt(), ce(this.relativeTargetOrigin, this.layout.actual, this.relativeParent.layout.actual), yt(this.relativeTarget, this.relativeTargetOrigin))), !(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = lt(), this.targetWithTransforms = lt()), this.relativeTarget && this.relativeTargetOrigin && (!((s = this.relativeParent) === null || s === void 0) && s.target) ? hf(this.target, this.relativeTarget, this.relativeParent.target) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.actual) : yt(this.target, this.layout.actual), ma(this.target, this.targetDelta)) : yt(this.target, this.layout.actual), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, this.relativeParent = this.getClosestProjectingParent(), this.relativeParent && !!this.relativeParent.resumingFrom == !!this.resumingFrom && !this.relativeParent.options.layoutScroll && this.relativeParent.target && (this.relativeTarget = lt(), this.relativeTargetOrigin = lt(), ce(this.relativeTargetOrigin, this.target, this.relativeParent.target), yt(this.relativeTarget, this.relativeTargetOrigin)))));
4289
+ !this.layout || !(l || c) || (!this.targetDelta && !this.relativeTarget && (this.relativeParent = this.getClosestProjectingParent(), this.relativeParent && this.relativeParent.layout && (this.relativeTarget = lt(), this.relativeTargetOrigin = lt(), ce(this.relativeTargetOrigin, this.layout.actual, this.relativeParent.layout.actual), yt(this.relativeTarget, this.relativeTargetOrigin))), !(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = lt(), this.targetWithTransforms = lt()), this.relativeTarget && this.relativeTargetOrigin && (!((s = this.relativeParent) === null || s === void 0) && s.target) ? mf(this.target, this.relativeTarget, this.relativeParent.target) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.actual) : yt(this.target, this.layout.actual), ha(this.target, this.targetDelta)) : yt(this.target, this.layout.actual), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, this.relativeParent = this.getClosestProjectingParent(), this.relativeParent && !!this.relativeParent.resumingFrom == !!this.resumingFrom && !this.relativeParent.options.layoutScroll && this.relativeParent.target && (this.relativeTarget = lt(), this.relativeTargetOrigin = lt(), ce(this.relativeTargetOrigin, this.target, this.relativeParent.target), yt(this.relativeTarget, this.relativeTargetOrigin)))));
4290
4290
  }, i.prototype.getClosestProjectingParent = function() {
4291
4291
  if (!(!this.parent || Ot(this.parent.latestValues)))
4292
4292
  return (this.parent.relativeTarget || this.parent.targetDelta) && this.parent.layout ? this.parent : this.parent.getClosestProjectingParent();
@@ -4298,8 +4298,8 @@ function Ea(t) {
4298
4298
  var d = f.target;
4299
4299
  if (d) {
4300
4300
  this.projectionDelta || (this.projectionDelta = fe(), this.projectionDeltaWithTransform = fe());
4301
- var p = this.treeScale.x, v = this.treeScale.y, m = this.projectionTransform;
4302
- le(this.projectionDelta, this.layoutCorrected, d, this.latestValues), this.projectionTransform = Bo(this.projectionDelta, this.treeScale), (this.projectionTransform !== m || this.treeScale.x !== p || this.treeScale.y !== v) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", d));
4301
+ var p = this.treeScale.x, v = this.treeScale.y, h = this.projectionTransform;
4302
+ le(this.projectionDelta, this.layoutCorrected, d, this.latestValues), this.projectionTransform = Do(this.projectionDelta, this.treeScale), (this.projectionTransform !== h || this.treeScale.x !== p || this.treeScale.y !== v) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", d));
4303
4303
  }
4304
4304
  }
4305
4305
  }, i.prototype.hide = function() {
@@ -4314,15 +4314,15 @@ function Ea(t) {
4314
4314
  u === void 0 && (u = !1);
4315
4315
  var f = this.snapshot, d = (f == null ? void 0 : f.latestValues) || {}, p = b({}, this.latestValues), v = fe();
4316
4316
  this.relativeTarget = this.relativeTargetOrigin = void 0, this.attemptToResolveRelativeTarget = !u;
4317
- var m = lt(), y = f == null ? void 0 : f.isShared, h = (((c = this.getStack()) === null || c === void 0 ? void 0 : c.members.length) || 0) <= 1, S = !!(y && !h && this.options.crossfade === !0 && !this.path.some(Ed));
4317
+ var h = lt(), y = f == null ? void 0 : f.isShared, m = (((c = this.getStack()) === null || c === void 0 ? void 0 : c.members.length) || 0) <= 1, S = !!(y && !m && this.options.crossfade === !0 && !this.path.some(Vd));
4318
4318
  this.animationProgress = 0, this.mixTargetDelta = function(g) {
4319
4319
  var w, x = g / 1e3;
4320
- Fo(v.x, s.x, x), Fo(v.y, s.y, x), l.setTargetDelta(v), l.relativeTarget && l.relativeTargetOrigin && l.layout && (!((w = l.relativeParent) === null || w === void 0) && w.layout) && (ce(m, l.layout.actual, l.relativeParent.layout.actual), Cd(l.relativeTarget, l.relativeTargetOrigin, m, x)), y && (l.animationValues = p, sd(p, d, l.latestValues, x, S, h)), l.root.scheduleUpdateProjection(), l.scheduleRender(), l.animationProgress = x;
4320
+ Fo(v.x, s.x, x), Fo(v.y, s.y, x), l.setTargetDelta(v), l.relativeTarget && l.relativeTargetOrigin && l.layout && (!((w = l.relativeParent) === null || w === void 0) && w.layout) && (ce(h, l.layout.actual, l.relativeParent.layout.actual), Cd(l.relativeTarget, l.relativeTargetOrigin, h, x)), y && (l.animationValues = p, sd(p, d, l.latestValues, x, S, m)), l.root.scheduleUpdateProjection(), l.scheduleRender(), l.animationProgress = x;
4321
4321
  }, this.mixTargetDelta(0);
4322
4322
  }, i.prototype.startAnimation = function(s) {
4323
4323
  var u = this, l, c;
4324
4324
  this.notifyListeners("animationStart"), (l = this.currentAnimation) === null || l === void 0 || l.stop(), this.resumingFrom && ((c = this.resumingFrom.currentAnimation) === null || c === void 0 || c.stop()), this.pendingAnimation && (Zt.update(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = Tt.update(function() {
4325
- ie.hasAnimatedSinceResize = !0, u.currentAnimation = id(0, Do, b(b({}, s), { onUpdate: function(f) {
4325
+ ie.hasAnimatedSinceResize = !0, u.currentAnimation = id(0, Bo, b(b({}, s), { onUpdate: function(f) {
4326
4326
  var d;
4327
4327
  u.mixTargetDelta(f), (d = s.onUpdate) === null || d === void 0 || d.call(s, f);
4328
4328
  }, onComplete: function() {
@@ -4335,7 +4335,7 @@ function Ea(t) {
4335
4335
  this.resumingFrom && (this.resumingFrom.currentAnimation = void 0, this.resumingFrom.preserveOpacity = void 0), (s = this.getStack()) === null || s === void 0 || s.exitAnimationComplete(), this.resumingFrom = this.currentAnimation = this.animationValues = void 0, this.notifyListeners("animationComplete");
4336
4336
  }, i.prototype.finishAnimation = function() {
4337
4337
  var s;
4338
- this.currentAnimation && ((s = this.mixTargetDelta) === null || s === void 0 || s.call(this, Do), this.currentAnimation.stop()), this.completeAnimation();
4338
+ this.currentAnimation && ((s = this.mixTargetDelta) === null || s === void 0 || s.call(this, Bo), this.currentAnimation.stop()), this.completeAnimation();
4339
4339
  }, i.prototype.applyTransformsToTarget = function() {
4340
4340
  var s = this.getLead(), u = s.targetWithTransforms, l = s.target, c = s.layout, f = s.latestValues;
4341
4341
  !u || !l || !c || (yt(u, l), Yt(u, f), le(this.projectionDeltaWithTransform, this.layoutCorrected, u, f));
@@ -4390,24 +4390,24 @@ function Ea(t) {
4390
4390
  v.visibility = "";
4391
4391
  else
4392
4392
  return { visibility: "hidden" };
4393
- var m = (u = this.options.visualElement) === null || u === void 0 ? void 0 : u.getProps().transformTemplate;
4393
+ var h = (u = this.options.visualElement) === null || u === void 0 ? void 0 : u.getProps().transformTemplate;
4394
4394
  if (this.needsReset)
4395
- return this.needsReset = !1, v.opacity = "", v.pointerEvents = Ne(s.pointerEvents) || "", v.transform = m ? m(this.latestValues, "") : "none", v;
4395
+ return this.needsReset = !1, v.opacity = "", v.pointerEvents = Ne(s.pointerEvents) || "", v.transform = h ? h(this.latestValues, "") : "none", v;
4396
4396
  var y = this.getLead();
4397
4397
  if (!this.projectionDelta || !this.layout || !y.target) {
4398
- var h = {};
4399
- return this.options.layoutId && (h.opacity = (l = this.latestValues.opacity) !== null && l !== void 0 ? l : 1, h.pointerEvents = Ne(s.pointerEvents) || ""), this.hasProjected && !Ot(this.latestValues) && (h.transform = m ? m({}, "") : "none", this.hasProjected = !1), h;
4398
+ var m = {};
4399
+ return this.options.layoutId && (m.opacity = (l = this.latestValues.opacity) !== null && l !== void 0 ? l : 1, m.pointerEvents = Ne(s.pointerEvents) || ""), this.hasProjected && !Ot(this.latestValues) && (m.transform = h ? h({}, "") : "none", this.hasProjected = !1), m;
4400
4400
  }
4401
4401
  var S = y.animationValues || y.latestValues;
4402
- this.applyTransformsToTarget(), v.transform = Bo(this.projectionDeltaWithTransform, this.treeScale, S), m && (v.transform = m(S, v.transform));
4402
+ this.applyTransformsToTarget(), v.transform = Do(this.projectionDeltaWithTransform, this.treeScale, S), h && (v.transform = h(S, v.transform));
4403
4403
  var g = this.projectionDelta, w = g.x, x = g.y;
4404
4404
  v.transformOrigin = "".concat(w.origin * 100, "% ").concat(x.origin * 100, "% 0"), y.animationValues ? v.opacity = y === this ? (f = (c = S.opacity) !== null && c !== void 0 ? c : this.latestValues.opacity) !== null && f !== void 0 ? f : 1 : this.preserveOpacity ? this.latestValues.opacity : S.opacityExit : v.opacity = y === this ? (d = S.opacity) !== null && d !== void 0 ? d : "" : (p = S.opacityExit) !== null && p !== void 0 ? p : 0;
4405
4405
  for (var T in ke)
4406
4406
  if (S[T] !== void 0) {
4407
- var R = ke[T], B = R.correct, V = R.applyTo, F = B(S[T], y);
4408
- if (V)
4409
- for (var J = V.length, $ = 0; $ < J; $++)
4410
- v[V[$]] = F;
4407
+ var R = ke[T], D = R.correct, E = R.applyTo, F = D(S[T], y);
4408
+ if (E)
4409
+ for (var J = E.length, $ = 0; $ < J; $++)
4410
+ v[E[$]] = F;
4411
4411
  else
4412
4412
  v[T] = F;
4413
4413
  }
@@ -4431,10 +4431,10 @@ function yd(t) {
4431
4431
  if (t.isLead() && t.layout && a && t.hasListeners("didUpdate")) {
4432
4432
  var i = t.layout, s = i.actual, u = i.measured;
4433
4433
  t.options.animationType === "size" ? _t(function(S) {
4434
- var g = a.isShared ? a.measured[S] : a.layout[S], w = Mt(g);
4434
+ var g = a.isShared ? a.measured[S] : a.layout[S], w = It(g);
4435
4435
  g.min = s[S].min, g.max = g.min + w;
4436
4436
  }) : t.options.animationType === "position" && _t(function(S) {
4437
- var g = a.isShared ? a.measured[S] : a.layout[S], w = Mt(s[S]);
4437
+ var g = a.isShared ? a.measured[S] : a.layout[S], w = It(s[S]);
4438
4438
  g.max = g.min + w;
4439
4439
  });
4440
4440
  var l = fe();
@@ -4443,12 +4443,12 @@ function yd(t) {
4443
4443
  a.isShared ? le(c, t.applyTransform(u, !0), a.measured) : le(c, s, a.layout);
4444
4444
  var f = !Ta(l), d = !1;
4445
4445
  if (!t.resumeFrom && (t.relativeParent = t.getClosestProjectingParent(), t.relativeParent && !t.relativeParent.resumeFrom)) {
4446
- var p = t.relativeParent, v = p.snapshot, m = p.layout;
4447
- if (v && m) {
4446
+ var p = t.relativeParent, v = p.snapshot, h = p.layout;
4447
+ if (v && h) {
4448
4448
  var y = lt();
4449
4449
  ce(y, a.layout, v.layout);
4450
- var h = lt();
4451
- ce(h, s, m.actual), Ca(y, h) || (d = !0);
4450
+ var m = lt();
4451
+ ce(m, s, h.actual), Ca(y, m) || (d = !0);
4452
4452
  }
4453
4453
  }
4454
4454
  t.notifyListeners("didUpdate", {
@@ -4496,14 +4496,14 @@ function jo(t, e, n, r) {
4496
4496
  function Cd(t, e, n, r) {
4497
4497
  jo(t.x, e.x, n.x, r), jo(t.y, e.y, n.y, r);
4498
4498
  }
4499
- function Ed(t) {
4499
+ function Vd(t) {
4500
4500
  return t.animationValues && t.animationValues.opacityExit !== void 0;
4501
4501
  }
4502
- var Vd = {
4502
+ var Ed = {
4503
4503
  duration: 0.45,
4504
4504
  ease: [0.4, 0, 0.1, 1]
4505
4505
  };
4506
- function Id(t, e) {
4506
+ function Ad(t, e) {
4507
4507
  for (var n = t.root, r = t.path.length - 1; r >= 0; r--)
4508
4508
  if (t.path[r].instance) {
4509
4509
  n = t.path[r];
@@ -4518,7 +4518,7 @@ function ko(t) {
4518
4518
  function $o(t) {
4519
4519
  ko(t.x), ko(t.y);
4520
4520
  }
4521
- var Ad = Ea({
4521
+ var Md = Va({
4522
4522
  attachResizeListener: function(t, e) {
4523
4523
  return en(t, "resize", e);
4524
4524
  },
@@ -4533,7 +4533,7 @@ var Ad = Ea({
4533
4533
  }
4534
4534
  }), Tn = {
4535
4535
  current: void 0
4536
- }, Md = Ea({
4536
+ }, Id = Va({
4537
4537
  measureScroll: function(t) {
4538
4538
  return {
4539
4539
  x: t.scrollLeft,
@@ -4542,7 +4542,7 @@ var Ad = Ea({
4542
4542
  },
4543
4543
  defaultParent: function() {
4544
4544
  if (!Tn.current) {
4545
- var t = new Ad(0, {});
4545
+ var t = new Md(0, {});
4546
4546
  t.mount(window), t.setOptions({ layoutScroll: !0 }), Tn.current = t;
4547
4547
  }
4548
4548
  return Tn.current;
@@ -4553,8 +4553,8 @@ var Ad = Ea({
4553
4553
  checkIsScrollRoot: function(t) {
4554
4554
  return window.getComputedStyle(t).position === "fixed";
4555
4555
  }
4556
- }), Rd = b(b(b(b({}, vf), Ac), Of), od), Ld = /* @__PURE__ */ xu(function(t, e) {
4557
- return ll(t, e, Rd, Qf, Md);
4556
+ }), Rd = b(b(b(b({}, vf), Mc), Of), od), Ld = /* @__PURE__ */ xu(function(t, e) {
4557
+ return ll(t, e, Rd, Qf, Id);
4558
4558
  });
4559
4559
  function Od() {
4560
4560
  var t = !1, e = [], n = /* @__PURE__ */ new Set(), r = {
@@ -4592,7 +4592,7 @@ function Od() {
4592
4592
  mount: function() {
4593
4593
  return t = !0, e.forEach(function(o) {
4594
4594
  var a = o.animation, i = o.resolve;
4595
- r.start.apply(r, mt([], nt(a), !1)).then(i);
4595
+ r.start.apply(r, ht([], nt(a), !1)).then(i);
4596
4596
  }), function() {
4597
4597
  t = !1, r.stop();
4598
4598
  };
@@ -4600,17 +4600,17 @@ function Od() {
4600
4600
  };
4601
4601
  return r;
4602
4602
  }
4603
- function Bd() {
4603
+ function Dd() {
4604
4604
  var t = Pe(Od);
4605
4605
  return k(t.mount, []), t;
4606
4606
  }
4607
- var Dd = Bd;
4607
+ var Bd = Dd;
4608
4608
  const Nd = ({
4609
4609
  onClose: t,
4610
4610
  threshold: e = 0.08,
4611
4611
  children: n
4612
4612
  }) => {
4613
- const r = Z(null), o = Dd(), a = (i, s) => {
4613
+ const r = Z(null), o = Bd(), a = (i, s) => {
4614
4614
  const u = r.current;
4615
4615
  if (!u) return;
4616
4616
  const l = u.getBoundingClientRect().height;
@@ -4711,8 +4711,8 @@ const Nd = ({
4711
4711
  story: kd,
4712
4712
  BetSlip_Wrapper: $d,
4713
4713
  BetSlip_ButtonWrap: Ud
4714
- }, Wd = "es-PE";
4715
- function Hd(t, e = Wd) {
4714
+ }, Hd = "es-PE";
4715
+ function Wd(t, e = Hd) {
4716
4716
  const n = new Date(t), r = n.toLocaleDateString(e, {
4717
4717
  day: "2-digit",
4718
4718
  month: "2-digit"
@@ -4727,16 +4727,16 @@ class zd {
4727
4727
  static fromRaw(e) {
4728
4728
  var i, s, u;
4729
4729
  const n = ((s = (i = e == null ? void 0 : e.stakes) == null ? void 0 : i.find((l) => l.isEnabled)) == null ? void 0 : s.preciseValue) ?? 0, r = (u = e == null ? void 0 : e.selections) == null ? void 0 : u.map((l) => {
4730
- var y, h, S, g, w, x;
4731
- const c = parseFloat((h = (y = l == null ? void 0 : l.odd) == null ? void 0 : y.price) == null ? void 0 : h.toFixed(2)), f = Hd((S = l == null ? void 0 : l.event) == null ? void 0 : S.startDate), d = (w = (g = l == null ? void 0 : l.odd) == null ? void 0 : g.offers) == null ? void 0 : w.find((T) => T.type === 0), v = l.market.name, m = (x = l == null ? void 0 : l.bbSelections) == null ? void 0 : x.map((T) => {
4732
- var F, J, $, j, I;
4733
- const R = (F = T == null ? void 0 : T.odd) == null ? void 0 : F.price, B = parseFloat(R.toFixed(2)), V = ($ = (J = T == null ? void 0 : T.odd) == null ? void 0 : J.offers) == null ? void 0 : $.find((G) => G.type === 0);
4730
+ var y, m, S, g, w, x;
4731
+ const c = parseFloat((m = (y = l == null ? void 0 : l.odd) == null ? void 0 : y.price) == null ? void 0 : m.toFixed(2)), f = Wd((S = l == null ? void 0 : l.event) == null ? void 0 : S.startDate), d = (w = (g = l == null ? void 0 : l.odd) == null ? void 0 : g.offers) == null ? void 0 : w.find((T) => T.type === 0), v = l.market.name, h = (x = l == null ? void 0 : l.bbSelections) == null ? void 0 : x.map((T) => {
4732
+ var F, J, $, j, A;
4733
+ const R = (F = T == null ? void 0 : T.odd) == null ? void 0 : F.price, D = parseFloat(R.toFixed(2)), E = ($ = (J = T == null ? void 0 : T.odd) == null ? void 0 : J.offers) == null ? void 0 : $.find((G) => G.type === 0);
4734
4734
  return {
4735
4735
  marketName: (j = T == null ? void 0 : T.market) == null ? void 0 : j.name,
4736
- name: (I = T == null ? void 0 : T.odd) == null ? void 0 : I.name,
4737
- cuota: B,
4738
- hasPA: !!V,
4739
- paParam: V == null ? void 0 : V.parameter
4736
+ name: (A = T == null ? void 0 : T.odd) == null ? void 0 : A.name,
4737
+ cuota: D,
4738
+ hasPA: !!E,
4739
+ paParam: E == null ? void 0 : E.parameter
4740
4740
  };
4741
4741
  });
4742
4742
  return {
@@ -4747,7 +4747,7 @@ class zd {
4747
4747
  hasPA: !!d,
4748
4748
  paParam: d == null ? void 0 : d.parameter,
4749
4749
  marketName: v,
4750
- subSelections: m
4750
+ subSelections: h
4751
4751
  };
4752
4752
  }), o = parseFloat(
4753
4753
  r == null ? void 0 : r.reduce((l, c) => l * (c == null ? void 0 : c.cuota), 1).toFixed(2)
@@ -4755,7 +4755,7 @@ class zd {
4755
4755
  return { selections: r, stake: n, cuotaTotal: o, gananciaTotal: a };
4756
4756
  }
4757
4757
  }
4758
- const Gd = "_BetSlip_1q2rd_1", Kd = "_BetSlip_Title_1q2rd_14", Yd = "_SelectionItemWrap_1q2rd_21", qd = "_BetSlip_ButtonWrap_1q2rd_35", De = {
4758
+ const Gd = "_BetSlip_1q2rd_1", Kd = "_BetSlip_Title_1q2rd_14", Yd = "_SelectionItemWrap_1q2rd_21", qd = "_BetSlip_ButtonWrap_1q2rd_35", Be = {
4759
4759
  BetSlip: Gd,
4760
4760
  BetSlip_Title: Kd,
4761
4761
  SelectionItemWrap: Yd,
@@ -4817,7 +4817,7 @@ const Gd = "_BetSlip_1q2rd_1", Kd = "_BetSlip_Title_1q2rd_14", Yd = "_SelectionI
4817
4817
  }
4818
4818
  )
4819
4819
  }
4820
- ), Va = ({ children: t, href: e }) => /* @__PURE__ */ q("div", { className: Cn.PulseButton, children: [
4820
+ ), Ea = ({ children: t, href: e }) => /* @__PURE__ */ q("div", { className: Cn.PulseButton, children: [
4821
4821
  /* @__PURE__ */ P("div", { className: Cn.PulseButton_BG }),
4822
4822
  /* @__PURE__ */ q("a", { className: cv.Button, href: e, children: [
4823
4823
  t,
@@ -4825,228 +4825,30 @@ const Gd = "_BetSlip_1q2rd_1", Kd = "_BetSlip_Title_1q2rd_14", Yd = "_SelectionI
4825
4825
  ] })
4826
4826
  ] }), dv = ({ slip: t, title: e }) => {
4827
4827
  var n;
4828
- return /* @__PURE__ */ q("div", { className: De.BetSlip, children: [
4829
- /* @__PURE__ */ q("div", { className: De.SelectionItemWrap, children: [
4830
- e ? /* @__PURE__ */ P("div", { className: De.BetSlip_Title, children: e }) : null,
4828
+ return /* @__PURE__ */ q("div", { className: Be.BetSlip, children: [
4829
+ /* @__PURE__ */ q("div", { className: Be.SelectionItemWrap, children: [
4830
+ e ? /* @__PURE__ */ P("div", { className: Be.BetSlip_Title, children: e }) : null,
4831
4831
  (n = t == null ? void 0 : t.selections) == null ? void 0 : n.map((r, o) => /* @__PURE__ */ P(iv, { selection: r }, `${Date.now()}-${o}`))
4832
4832
  ] }),
4833
- /* @__PURE__ */ P("div", { className: Ut(De.BetSlip_ButtonWrap), children: /* @__PURE__ */ P(
4834
- Va,
4833
+ /* @__PURE__ */ P("div", { className: Ut(Be.BetSlip_ButtonWrap), children: /* @__PURE__ */ P(
4834
+ Ea,
4835
4835
  {
4836
4836
  href: "https://www.apuestatotal.com/apuestas-deportivas/?reservationCode=HHHH",
4837
4837
  children: t == null ? void 0 : t.cuotaTotal
4838
4838
  }
4839
4839
  ) })
4840
4840
  ] });
4841
- }, vv = {
4842
- stakes: [
4843
- {
4844
- value: 10,
4845
- type: 3,
4846
- isEnabled: !0,
4847
- isHighlighted: !1,
4848
- preciseValue: 10,
4849
- useEachWay: !1
4850
- }
4851
- ],
4852
- selections: [
4853
- {
4854
- odd: {
4855
- typeId: 2,
4856
- price: 5.5,
4857
- isMB: !1,
4858
- oddStatus: 0,
4859
- id: 2536330510,
4860
- name: "Empate",
4861
- shouldUpdate: !1
4862
- },
4863
- event: {
4864
- liveTime: "30'",
4865
- lst: "2025-06-12T17:01:07Z",
4866
- score: [1, 0],
4867
- marketIds: [
4868
- 1052552653,
4869
- 1053189570,
4870
- 1052552650,
4871
- 1052552647,
4872
- 1052552618,
4873
- 1052552652
4874
- ],
4875
- isBooked: !0,
4876
- isParlay: !1,
4877
- offers: [{ type: 6 }],
4878
- code: 281,
4879
- hasStream: !1,
4880
- extId: "fp16_bg:match:11876047",
4881
- sc: 205,
4882
- rc: !1,
4883
- pId: 16,
4884
- et: 0,
4885
- competitorIds: [86267, 93625],
4886
- sportId: 66,
4887
- catId: 602,
4888
- champId: 11347,
4889
- status: 1,
4890
- startDate: "2025-06-12T17:00:00Z",
4891
- id: 11817354,
4892
- name: "Motala AIF vs. IFK Kumla FK"
4893
- },
4894
- status: 0,
4895
- isBanker: !1,
4896
- isEnabled: !0,
4897
- sport: {
4898
- catIds: [1133, 602, 544, 517, 820, 717, 707, 598, 561, 495, 515],
4899
- typeId: 1,
4900
- iconName: "soccer",
4901
- hasLiveEvents: !1,
4902
- id: 66,
4903
- name: "Fútbol"
4904
- },
4905
- category: {
4906
- champIds: [11347, 11327],
4907
- iso: "SWE",
4908
- hasLiveEvents: !1,
4909
- id: 602,
4910
- name: "Suecia"
4911
- },
4912
- competitors: [
4913
- { id: 86267, name: "Motala AIF" },
4914
- { id: 93625, name: "IFK Kumla FK" }
4915
- ],
4916
- championship: {
4917
- offers: [{ type: 6 }],
4918
- hasLiveEvents: !1,
4919
- id: 11347,
4920
- name: "Division 2, Norrland",
4921
- category: {
4922
- champIds: [11347, 11327],
4923
- iso: "SWE",
4924
- hasLiveEvents: !1,
4925
- id: 602,
4926
- name: "Suecia"
4927
- },
4928
- sport: {
4929
- catIds: [1133, 602, 544, 517, 820, 717, 707, 598, 561, 495, 515],
4930
- typeId: 1,
4931
- iconName: "soccer",
4932
- hasLiveEvents: !1,
4933
- id: 66,
4934
- name: "Fútbol"
4935
- }
4936
- },
4937
- market: {
4938
- oddIds: [2536330509, 2536330510, 2536330511],
4939
- typeId: 1,
4940
- isMB: !1,
4941
- sportMarketId: 70472,
4942
- id: 1052552653,
4943
- name: "1x2"
4944
- },
4945
- widgetInfo: { widget: 26, page: 9, tabIndex: null, tipsterId: null }
4946
- },
4947
- {
4948
- odd: {
4949
- typeId: 7,
4950
- price: 5,
4951
- isMB: !1,
4952
- oddStatus: 0,
4953
- id: 2538213113,
4954
- name: "Ninguno",
4955
- shouldUpdate: !1
4956
- },
4957
- event: {
4958
- liveTime: "46'",
4959
- lst: "2025-06-12T16:45:08Z",
4960
- score: [4, 1],
4961
- marketIds: [2538213111, 1053170209, 1050857555, 1053149260],
4962
- isBooked: !0,
4963
- isParlay: !1,
4964
- offers: [{ type: 6 }],
4965
- code: 346,
4966
- hasStream: !1,
4967
- extId: "fp32_ar:match:283508",
4968
- sc: 343,
4969
- rc: !1,
4970
- pId: 32,
4971
- et: 0,
4972
- competitorIds: [48214, 48227],
4973
- sportId: 66,
4974
- catId: 602,
4975
- champId: 11347,
4976
- status: 1,
4977
- startDate: "2025-06-12T16:30:00Z",
4978
- id: 11826451,
4979
- name: "Tvaakers IF vs. BK Astrio"
4980
- },
4981
- status: 0,
4982
- isBanker: !1,
4983
- isEnabled: !0,
4984
- sport: {
4985
- catIds: [1133, 602, 544, 517, 820, 717, 707, 598, 561, 495, 515],
4986
- typeId: 1,
4987
- iconName: "soccer",
4988
- hasLiveEvents: !1,
4989
- id: 66,
4990
- name: "Fútbol"
4991
- },
4992
- category: {
4993
- champIds: [11347, 11327],
4994
- iso: "SWE",
4995
- hasLiveEvents: !1,
4996
- id: 602,
4997
- name: "Suecia"
4998
- },
4999
- competitors: [
5000
- { id: 48214, name: "Tvaakers IF" },
5001
- { id: 48227, name: "BK Astrio" }
5002
- ],
5003
- championship: {
5004
- offers: [{ type: 6 }],
5005
- hasLiveEvents: !1,
5006
- id: 11347,
5007
- name: "Division 2, Norrland",
5008
- category: {
5009
- champIds: [11347, 11327],
5010
- iso: "SWE",
5011
- hasLiveEvents: !1,
5012
- id: 602,
5013
- name: "Suecia"
5014
- },
5015
- sport: {
5016
- catIds: [1133, 602, 544, 517, 820, 717, 707, 598, 561, 495, 515],
5017
- typeId: 1,
5018
- iconName: "soccer",
5019
- hasLiveEvents: !1,
5020
- id: 66,
5021
- name: "Fútbol"
5022
- }
5023
- },
5024
- market: {
5025
- oddIds: [2538213111, 2538213113, 2538213112],
5026
- isAlt: !0,
5027
- typeId: 1,
5028
- isMB: !1,
5029
- sportMarketId: 70472,
5030
- id: 2538213111,
5031
- name: "Sexto gol"
5032
- },
5033
- widgetInfo: { widget: 26, page: 9, tabIndex: null, tipsterId: null }
5034
- }
5035
- ],
5036
- betType: 1,
5037
- stakeAdjustment: { type: 0, value: 0 },
5038
- fullCoverData: { type: 1, label: null }
5039
- }, pv = ({ story: t }) => {
4841
+ }, vv = ({ story: t }) => {
5040
4842
  let e = Uo;
5041
- return (t == null ? void 0 : t.type) == "promo" && (e = Uo), (t == null ? void 0 : t.type) == "betting" && (e = mv), /* @__PURE__ */ P(e, { story: t });
4843
+ return (t == null ? void 0 : t.type) == "promo" && (e = Uo), (t == null ? void 0 : t.type) == "betting" && (e = pv), /* @__PURE__ */ P(e, { story: t });
5042
4844
  }, Uo = ({ story: t }) => /* @__PURE__ */ q("div", { className: Ut(de.story), children: [
5043
4845
  /* @__PURE__ */ P("img", { src: t == null ? void 0 : t.image, alt: "" }),
5044
- t != null && t.btn_text && (t != null && t.btn_url) ? /* @__PURE__ */ P("div", { className: Ut(de.BetSlip_Wrapper), children: /* @__PURE__ */ P("div", { className: de.BetSlip_ButtonWrap, children: /* @__PURE__ */ q(Va, { href: t == null ? void 0 : t.btn_url, children: [
4846
+ t != null && t.btn_text && (t != null && t.btn_url) ? /* @__PURE__ */ P("div", { className: Ut(de.BetSlip_Wrapper), children: /* @__PURE__ */ P("div", { className: de.BetSlip_ButtonWrap, children: /* @__PURE__ */ q(Ea, { href: t == null ? void 0 : t.btn_url, children: [
5045
4847
  " ",
5046
4848
  t == null ? void 0 : t.btn_text
5047
4849
  ] }) }) }) : null
5048
- ] }), mv = ({ story: t }) => {
5049
- const e = vv;
4850
+ ] }), pv = ({ story: t }) => {
4851
+ const e = JSON.parse((t == null ? void 0 : t.coupon_result) ?? "{}");
5050
4852
  return /* @__PURE__ */ q("div", { className: Ut(de.story), children: [
5051
4853
  /* @__PURE__ */ P("img", { src: t == null ? void 0 : t.image, alt: "" }),
5052
4854
  /* @__PURE__ */ P("div", { className: de.BetSlip_Wrapper, children: /* @__PURE__ */ P(
@@ -5057,27 +4859,27 @@ const Gd = "_BetSlip_1q2rd_1", Kd = "_BetSlip_Title_1q2rd_14", Yd = "_SelectionI
5057
4859
  }
5058
4860
  ) })
5059
4861
  ] });
5060
- }, hv = "_StoryHeaderPlayer_1oqtd_1", gv = "_StoryHeaderPlayer__ProfileStory_1oqtd_18", yv = "_StoryHeaderPlayer__title_1oqtd_24", En = {
4862
+ }, hv = "_StoryHeaderPlayer_1oqtd_1", mv = "_StoryHeaderPlayer__ProfileStory_1oqtd_18", gv = "_StoryHeaderPlayer__title_1oqtd_24", Vn = {
5061
4863
  StoryHeaderPlayer: hv,
5062
- StoryHeaderPlayer__ProfileStory: gv,
5063
- StoryHeaderPlayer__title: yv
5064
- }, Sv = ({
4864
+ StoryHeaderPlayer__ProfileStory: mv,
4865
+ StoryHeaderPlayer__title: gv
4866
+ }, yv = ({
5065
4867
  story: t,
5066
4868
  onProfileClick: e = () => null,
5067
4869
  color: n,
5068
4870
  image: r
5069
- }) => /* @__PURE__ */ q("div", { className: En.StoryHeaderPlayer, children: [
4871
+ }) => /* @__PURE__ */ q("div", { className: Vn.StoryHeaderPlayer, children: [
5070
4872
  /* @__PURE__ */ P(
5071
4873
  zo,
5072
4874
  {
5073
- className: En.StoryHeaderPlayer__ProfileStory,
4875
+ className: Vn.StoryHeaderPlayer__ProfileStory,
5074
4876
  onProfileClick: e,
5075
4877
  color: n,
5076
4878
  image: r
5077
4879
  }
5078
4880
  ),
5079
- /* @__PURE__ */ P("div", { className: En.StoryHeaderPlayer__title, children: t == null ? void 0 : t.title })
5080
- ] }), bv = ({ container: t = "HOME" } = {}) => {
4881
+ /* @__PURE__ */ P("div", { className: Vn.StoryHeaderPlayer__title, children: t == null ? void 0 : t.title })
4882
+ ] }), Sv = ({ container: t = "HOME" } = {}) => {
5081
4883
  const e = "apuestotal-stories-" + t;
5082
4884
  function n() {
5083
4885
  const u = localStorage.getItem(e);
@@ -5131,7 +4933,7 @@ const Gd = "_BetSlip_1q2rd_1", Kd = "_BetSlip_Title_1q2rd_14", Yd = "_SelectionI
5131
4933
  sortProfilesBySeenStatus: s
5132
4934
  };
5133
4935
  };
5134
- function Pv(t, e) {
4936
+ function bv(t, e) {
5135
4937
  const n = ve(() => {
5136
4938
  e();
5137
4939
  }, [e]);
@@ -5148,7 +4950,7 @@ function Pv(t, e) {
5148
4950
  };
5149
4951
  }, [t, n]);
5150
4952
  }
5151
- function wv({ scroll: t, targets: e }) {
4953
+ function Pv({ scroll: t, targets: e }) {
5152
4954
  const n = Z([]), r = ve((a) => {
5153
4955
  n.current.forEach(({ el: i, originalOverflow: s }) => {
5154
4956
  i.style.overflow = s;
@@ -5188,32 +4990,32 @@ function wv({ scroll: t, targets: e }) {
5188
4990
  }
5189
4991
  const Vv = ({ className: t = "", data: e, isPortal: n = !0 }) => {
5190
4992
  var y;
5191
- const [r, o] = Pt(null), a = (h) => o(h), {
4993
+ const [r, o] = Pt(null), a = (m) => o(m), {
5192
4994
  markStorySeen: i,
5193
4995
  hasSeenAllStories: s,
5194
4996
  getNextUnseenStoryIndex: u,
5195
4997
  sortProfilesBySeenStatus: l
5196
- } = bv(), c = l(
5197
- e == null ? void 0 : e.filter((h) => h.stories.length)
4998
+ } = Sv(), c = l(
4999
+ e == null ? void 0 : e.filter((m) => m.stories.length)
5198
5000
  ), f = Z(c);
5199
5001
  k(() => {
5200
5002
  f.current = c;
5201
5003
  }, [c]);
5202
- const d = e == null ? void 0 : e.find((h) => (h == null ? void 0 : h.id) == r), p = ((y = e == null ? void 0 : e.find((h) => (h == null ? void 0 : h.id) == r)) == null ? void 0 : y.stories) ?? [];
5203
- Pv(r, () => o(null)), wv({
5004
+ const d = e == null ? void 0 : e.find((m) => (m == null ? void 0 : m.id) == r), p = ((y = e == null ? void 0 : e.find((m) => (m == null ? void 0 : m.id) == r)) == null ? void 0 : y.stories) ?? [];
5005
+ bv(r, () => o(null)), Pv({
5204
5006
  targets: [document],
5205
5007
  scroll: r ? "OFF" : "ON"
5206
5008
  });
5207
5009
  const v = () => {
5208
5010
  o(null), f.current = c;
5209
- }, m = () => {
5011
+ }, h = () => {
5210
5012
  if (!r) return null;
5211
- const h = p.map((g) => ({
5013
+ const m = p.map((g) => ({
5212
5014
  type: "component",
5213
- component: ({ pause: w, resume: x, story: T, isPaused: R }) => (i(d == null ? void 0 : d.id, g.id), /* @__PURE__ */ P(pv, { story: g })),
5015
+ component: ({ pause: w, resume: x, story: T, isPaused: R }) => (i(d == null ? void 0 : d.id, g.id), /* @__PURE__ */ P(vv, { story: g })),
5214
5016
  duration: g != null && g.duration ? (g == null ? void 0 : g.duration) * 1e3 : 7e3,
5215
5017
  header: () => /* @__PURE__ */ P(
5216
- Sv,
5018
+ yv,
5217
5019
  {
5218
5020
  color: d == null ? void 0 : d.color,
5219
5021
  image: d == null ? void 0 : d.avatar,
@@ -5238,7 +5040,7 @@ const Vv = ({ className: t = "", data: e, isPortal: n = !0 }) => {
5238
5040
  f.current = w, (x = f.current[g]) != null && x.id ? o(f.current[g].id) : (o(null), f.current = c);
5239
5041
  },
5240
5042
  currentIndex: d ? u(d) : 0,
5241
- stories: h
5043
+ stories: m
5242
5044
  },
5243
5045
  r
5244
5046
  );
@@ -5251,27 +5053,27 @@ const Vv = ({ className: t = "", data: e, isPortal: n = !0 }) => {
5251
5053
  wrapperClassName: Ut(sn.ScrollMenu, t),
5252
5054
  scrollContainerClassName: sn.scrollContainerClassName,
5253
5055
  itemClassName: sn.itemClassName,
5254
- children: c.map((h, S) => /* @__PURE__ */ P(
5056
+ children: c.map((m, S) => /* @__PURE__ */ P(
5255
5057
  zo,
5256
5058
  {
5257
- hasSeenAllStories: s(h),
5258
- onProfileClick: () => a(h == null ? void 0 : h.id),
5259
- color: h == null ? void 0 : h.color,
5260
- image: h == null ? void 0 : h.avatar,
5261
- title: h == null ? void 0 : h.name
5059
+ hasSeenAllStories: s(m),
5060
+ onProfileClick: () => a(m == null ? void 0 : m.id),
5061
+ color: m == null ? void 0 : m.color,
5062
+ image: m == null ? void 0 : m.avatar,
5063
+ title: m == null ? void 0 : m.name
5262
5064
  },
5263
- h == null ? void 0 : h.id
5065
+ m == null ? void 0 : m.id
5264
5066
  ))
5265
5067
  }
5266
5068
  ),
5267
- r != null && m()
5069
+ r != null && h()
5268
5070
  ] });
5269
5071
  };
5270
5072
  export {
5271
- pv as ManagmentStoryComponent,
5073
+ vv as ManagmentStoryComponent,
5272
5074
  Vv as ProfileStories,
5273
5075
  zo as ProfileStory,
5274
- Sv as StoryHeaderPlayer,
5076
+ yv as StoryHeaderPlayer,
5275
5077
  jd as StoryPlayer
5276
5078
  };
5277
5079
  //# sourceMappingURL=index.esm.js.map