@maycolem/stories 21.0.0 → 22.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.cjs.js +2 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +855 -857
- package/dist/index.esm.js.map +1 -1
- package/dist/stories.css +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import * as
|
|
3
|
-
import E, { useState as
|
|
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";
|
|
4
4
|
import Ra from "react-dom";
|
|
5
|
-
const La = "_ScrollMenu_hnfum_9",
|
|
5
|
+
const La = "_ScrollMenu_hnfum_9", Oa = "_scrollContainerClassName_hnfum_16", Ba = "_itemClassName_hnfum_28", sn = {
|
|
6
6
|
ScrollMenu: La,
|
|
7
|
-
scrollContainerClassName:
|
|
8
|
-
itemClassName:
|
|
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",
|
|
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
10
|
ProfileStory: Da,
|
|
11
11
|
ProfileStoryWrap: Na,
|
|
12
12
|
ProfileStory__wrapImage: Fa,
|
|
@@ -23,9 +23,9 @@ var un = { exports: {} };
|
|
|
23
23
|
Licensed under the MIT License (MIT), see
|
|
24
24
|
http://jedwatson.github.io/classnames
|
|
25
25
|
*/
|
|
26
|
-
var
|
|
26
|
+
var Pr;
|
|
27
27
|
function Ua() {
|
|
28
|
-
return
|
|
28
|
+
return Pr || (Pr = 1, function(t) {
|
|
29
29
|
(function() {
|
|
30
30
|
var e = {}.hasOwnProperty;
|
|
31
31
|
function n() {
|
|
@@ -57,10 +57,10 @@ function Ua() {
|
|
|
57
57
|
}(un)), un.exports;
|
|
58
58
|
}
|
|
59
59
|
var Wa = Ua();
|
|
60
|
-
const
|
|
60
|
+
const Ut = /* @__PURE__ */ Ho(Wa);
|
|
61
61
|
function Ha() {
|
|
62
|
-
const [t, e] =
|
|
63
|
-
return [
|
|
62
|
+
const [t, e] = Pt({ width: 0, height: 0 }), n = Z();
|
|
63
|
+
return [ve((o) => {
|
|
64
64
|
n.current && n.current.disconnect(), o && (n.current = new ResizeObserver((a) => {
|
|
65
65
|
const i = a[0];
|
|
66
66
|
if (!i) return;
|
|
@@ -69,9 +69,9 @@ function Ha() {
|
|
|
69
69
|
}), n.current.observe(o));
|
|
70
70
|
}, []), t];
|
|
71
71
|
}
|
|
72
|
-
var ln,
|
|
72
|
+
var ln, wr;
|
|
73
73
|
function za() {
|
|
74
|
-
return
|
|
74
|
+
return wr || (wr = 1, ln = { hexToRGB: (r) => {
|
|
75
75
|
let o = r;
|
|
76
76
|
return o.length === 4 && (o = o[0] + o[1] + o[1] + o[2] + o[2] + o[3] + o[3]), {
|
|
77
77
|
r: parseInt(o.substring(1, 3), 16),
|
|
@@ -80,10 +80,10 @@ function za() {
|
|
|
80
80
|
};
|
|
81
81
|
}, formatRGB: ({ r, g: o, b: a }) => `rgb(${r},${o},${a})`, formatRGBA: ({ r, g: o, b: a }, i) => `rgba(${r},${o},${a},${i})` }), ln;
|
|
82
82
|
}
|
|
83
|
-
var cn,
|
|
83
|
+
var cn, _r;
|
|
84
84
|
function Ga() {
|
|
85
|
-
if (
|
|
86
|
-
|
|
85
|
+
if (_r) return cn;
|
|
86
|
+
_r = 1;
|
|
87
87
|
const { hexToRGB: t, formatRGB: e, formatRGBA: n } = za();
|
|
88
88
|
return cn = (o, a) => {
|
|
89
89
|
const i = t(o);
|
|
@@ -101,11 +101,11 @@ const Ya = /* @__PURE__ */ Ho(Ka), zo = ({
|
|
|
101
101
|
hasSeenAllStories: i
|
|
102
102
|
}) => {
|
|
103
103
|
const [s, { width: u, height: l }] = Ha();
|
|
104
|
-
return /* @__PURE__ */
|
|
104
|
+
return /* @__PURE__ */ P("div", { ref: s, children: /* @__PURE__ */ q(
|
|
105
105
|
"div",
|
|
106
106
|
{
|
|
107
|
-
className:
|
|
108
|
-
[
|
|
107
|
+
className: Ut(zt.ProfileStory, r, {
|
|
108
|
+
[zt.hasSeenAllStories]: i
|
|
109
109
|
}),
|
|
110
110
|
onClick: o,
|
|
111
111
|
style: {
|
|
@@ -114,8 +114,8 @@ const Ya = /* @__PURE__ */ Ho(Ka), zo = ({
|
|
|
114
114
|
"--story-width": a ?? `${u}px`
|
|
115
115
|
},
|
|
116
116
|
children: [
|
|
117
|
-
/* @__PURE__ */
|
|
118
|
-
e && /* @__PURE__ */
|
|
117
|
+
/* @__PURE__ */ P("div", { className: zt.ProfileStoryWrap, children: /* @__PURE__ */ P("div", { className: zt.ProfileStory__wrapImage, children: /* @__PURE__ */ P("div", { className: zt.ProfileStory__image, children: /* @__PURE__ */ P("img", { src: t, alt: "", draggable: !1 }) }) }) }),
|
|
118
|
+
e && /* @__PURE__ */ P("div", { className: zt.ProfileStory__title, children: e })
|
|
119
119
|
]
|
|
120
120
|
}
|
|
121
121
|
) });
|
|
@@ -175,10 +175,10 @@ let is = class {
|
|
|
175
175
|
}, this.getVisible = () => this.filter((e) => e[1].visible), this.observer = new is(), this.firstRun = !0;
|
|
176
176
|
}
|
|
177
177
|
};
|
|
178
|
-
const
|
|
178
|
+
const xr = (t) => typeof t == "object" && t != null && t.nodeType === 1, Tr = (t, e) => (!e || t !== "hidden") && t !== "visible" && t !== "clip", fn = (t, e) => {
|
|
179
179
|
if (t.clientHeight < t.scrollHeight || t.clientWidth < t.scrollWidth) {
|
|
180
180
|
const n = getComputedStyle(t, null);
|
|
181
|
-
return
|
|
181
|
+
return Tr(n.overflowY, e) || Tr(n.overflowX, e) || ((r) => {
|
|
182
182
|
const o = ((a) => {
|
|
183
183
|
if (!a.ownerDocument || !a.ownerDocument.defaultView) return null;
|
|
184
184
|
try {
|
|
@@ -191,46 +191,46 @@ const wr = (t) => typeof t == "object" && t != null && t.nodeType === 1, xr = (t
|
|
|
191
191
|
})(t);
|
|
192
192
|
}
|
|
193
193
|
return !1;
|
|
194
|
-
},
|
|
194
|
+
}, Ce = (t, e, n, r, o, a, i, s) => a < t && i > e || a > t && i < e ? 0 : a <= t && s <= n || i >= e && s >= n ? a - t - r : i > e && s < n || a < t && s > n ? i - e + o : 0, ss = (t) => {
|
|
195
195
|
const e = t.parentElement;
|
|
196
196
|
return e ?? (t.getRootNode().host || null);
|
|
197
|
-
},
|
|
197
|
+
}, Cr = (t, e) => {
|
|
198
198
|
var n, r, o, a;
|
|
199
199
|
if (typeof document > "u") return [];
|
|
200
200
|
const { scrollMode: i, block: s, inline: u, boundary: l, skipOverflowHiddenElements: c } = e, f = typeof l == "function" ? l : (Q) => Q !== l;
|
|
201
|
-
if (!
|
|
201
|
+
if (!xr(t)) throw new TypeError("Invalid target");
|
|
202
202
|
const d = document.scrollingElement || document.documentElement, p = [];
|
|
203
203
|
let v = t;
|
|
204
|
-
for (;
|
|
204
|
+
for (; xr(v) && f(v); ) {
|
|
205
205
|
if (v = ss(v), v === d) {
|
|
206
206
|
p.push(v);
|
|
207
207
|
break;
|
|
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:
|
|
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
212
|
const M = window.getComputedStyle(Q);
|
|
213
213
|
return { top: parseFloat(M.scrollMarginTop) || 0, right: parseFloat(M.scrollMarginRight) || 0, bottom: parseFloat(M.scrollMarginBottom) || 0, left: parseFloat(M.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" ?
|
|
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 - $;
|
|
216
216
|
const G = [];
|
|
217
217
|
for (let Q = 0; Q < p.length; Q++) {
|
|
218
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 &&
|
|
220
|
-
const
|
|
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
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 -
|
|
223
|
-
if (d === M) W = s === "start" ? j : s === "end" ? j - y : s === "nearest" ?
|
|
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);
|
|
224
224
|
else {
|
|
225
|
-
W = s === "start" ? j - ut -
|
|
226
|
-
const { scrollLeft:
|
|
227
|
-
W =
|
|
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;
|
|
228
228
|
}
|
|
229
229
|
G.push({ el: M, top: W, left: rt });
|
|
230
230
|
}
|
|
231
231
|
return G;
|
|
232
232
|
};
|
|
233
|
-
function
|
|
233
|
+
function Er(t, e) {
|
|
234
234
|
if (!t.isConnected || !((o) => {
|
|
235
235
|
let a = o;
|
|
236
236
|
for (; a && a.parentNode; ) {
|
|
@@ -243,9 +243,9 @@ function Cr(t, e) {
|
|
|
243
243
|
const a = window.getComputedStyle(o);
|
|
244
244
|
return { top: parseFloat(a.scrollMarginTop) || 0, right: parseFloat(a.scrollMarginRight) || 0, bottom: parseFloat(a.scrollMarginBottom) || 0, left: parseFloat(a.scrollMarginLeft) || 0 };
|
|
245
245
|
})(t);
|
|
246
|
-
if (((o) => typeof o == "object" && typeof o.behavior == "function")(e)) return e.behavior(
|
|
246
|
+
if (((o) => typeof o == "object" && typeof o.behavior == "function")(e)) return e.behavior(Cr(t, e));
|
|
247
247
|
const r = typeof e == "boolean" || e == null ? void 0 : e.behavior;
|
|
248
|
-
for (const { el: o, top: a, left: i } of
|
|
248
|
+
for (const { el: o, top: a, left: i } of Cr(t, ((s) => s === !1 ? { block: "end", inline: "nearest" } : ((u) => u === Object(u) && Object.keys(u).length !== 0)(s) ? s : { block: "start", inline: "nearest" })(e))) {
|
|
249
249
|
const s = a - n.top + n.bottom, u = i - n.left + n.right;
|
|
250
250
|
o.scroll({ top: s, left: u, behavior: r });
|
|
251
251
|
}
|
|
@@ -266,11 +266,11 @@ function us(t, e, n) {
|
|
|
266
266
|
}
|
|
267
267
|
const ls = function(t, e) {
|
|
268
268
|
const n = e || {};
|
|
269
|
-
return ((r) => r && !r.behavior || r.behavior === "smooth")(n) ?
|
|
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) => {
|
|
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(
|
|
273
|
+
}, [])) }) : Promise.resolve(Er(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,14 +280,14 @@ 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
|
|
283
|
+
function Ee(t) {
|
|
284
284
|
return E.isValidElement(t) && t || typeof t == "function" && E.createElement(t, null) || !!t && typeof t == "object" && E.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
|
|
290
|
+
function In(t) {
|
|
291
291
|
return !!t && Object.prototype.hasOwnProperty.call(t, "current");
|
|
292
292
|
}
|
|
293
293
|
var vs = E.memo(function({ children: t, className: e, id: n, index: r, refs: o }) {
|
|
@@ -304,7 +304,7 @@ function ps({ children: t, itemClassName: e = pt, refs: n }) {
|
|
|
304
304
|
function ms({ className: t = pt, children: e, onScroll: n = () => {
|
|
305
305
|
}, scrollRef: r, containerRef: o }) {
|
|
306
306
|
const a = E.useMemo(() => `${Xa} ${t}`, [t]), i = E.useCallback((s) => {
|
|
307
|
-
|
|
307
|
+
In(r) ? r.current = s : r(s), In(o) ? o.current = s : o(s);
|
|
308
308
|
}, [r, o]);
|
|
309
309
|
return E.createElement("div", { className: a, onScroll: n, ref: i }, e);
|
|
310
310
|
}
|
|
@@ -326,10 +326,10 @@ 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),
|
|
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 = () => {
|
|
330
330
|
};
|
|
331
|
-
function
|
|
332
|
-
const F =
|
|
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
333
|
const [W, rt] = E.useState(pt), ot = E.useMemo(() => Ss(L), [L]);
|
|
334
334
|
return E.useEffect(() => {
|
|
335
335
|
const et = ot.filter(Boolean).join(pt);
|
|
@@ -341,37 +341,37 @@ function _s({ LeftArrow: t, RightArrow: e, children: n, Header: r, Footer: o, tr
|
|
|
341
341
|
ys(E.useMemo(() => ({ items: M, itemsChanged: it, options: Q, refs: G }), [M, it, G, Q]));
|
|
342
342
|
const at = E.useMemo(() => function(L, N, W) {
|
|
343
343
|
var rt, ot, et;
|
|
344
|
-
const Ct = !!(!((rt = L.first()) === null || rt === void 0) && rt.visible),
|
|
344
|
+
const Ct = !!(!((rt = L.first()) === null || rt === void 0) && rt.visible), te = !!(!((ot = L.last()) === null || ot === void 0) && ot.visible), ee = (H) => {
|
|
345
345
|
var K;
|
|
346
346
|
return (K = L.find((ft) => ft[1].key === String(H))) === null || K === void 0 ? void 0 : K[1];
|
|
347
|
-
},
|
|
347
|
+
}, ne = () => {
|
|
348
348
|
var H, K;
|
|
349
349
|
const ft = (K = (H = L.getVisible()) === null || H === void 0 ? void 0 : H[0]) === null || K === void 0 ? void 0 : K[1];
|
|
350
350
|
return ft ? L.prev(ft) : void 0;
|
|
351
|
-
},
|
|
351
|
+
}, br = () => {
|
|
352
352
|
var H;
|
|
353
353
|
const K = (H = L.getVisible().findLast(() => !0)) === null || H === void 0 ? void 0 : H[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:
|
|
356
|
+
return { getItemById: ee, getItemElementById: fs, getItemByIndex: (H) => {
|
|
357
357
|
var K;
|
|
358
358
|
return (K = L.find((ft) => String(ft[1].index) === String(H))) === null || K === void 0 ? void 0 : K[1];
|
|
359
|
-
}, getItemElementByIndex: ds, getNextElement:
|
|
360
|
-
const
|
|
361
|
-
return vn(
|
|
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
362
|
}, scrollPrev: (H, K, ft, { duration: Et, boundary: gt = an } = {}) => {
|
|
363
|
-
const
|
|
364
|
-
return vn(
|
|
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
365
|
}, useIsVisible: (H, K = !1) => {
|
|
366
|
-
const [ft, Et] = E.useState(K), gt = E.useCallback((
|
|
367
|
-
Et(!!(
|
|
366
|
+
const [ft, Et] = E.useState(K), gt = E.useCallback((wt) => {
|
|
367
|
+
Et(!!(wt != null && wt.visible));
|
|
368
368
|
}, []);
|
|
369
369
|
return E.useEffect(() => (L.subscribe(H, gt), () => {
|
|
370
370
|
L.unsubscribe(H, gt);
|
|
371
371
|
}), [H, gt]), ft;
|
|
372
372
|
}, scrollToItem: (H, K, ft, Et, gt) => {
|
|
373
|
-
var
|
|
374
|
-
return vn(H, K ?? (N == null ? void 0 : N.behavior), ft, Et, Object.assign(Object.assign({ boundary: an }, gt), { duration: (
|
|
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);
|
|
375
375
|
} };
|
|
376
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
377
|
(({ context: L, onInit: N, onUpdate: W }) => {
|
|
@@ -380,14 +380,14 @@ function _s({ LeftArrow: t, RightArrow: e, children: n, Header: r, Footer: o, tr
|
|
|
380
380
|
et.unsubscribe(bt.onInit, rt), et.unsubscribe(bt.onUpdate, ot);
|
|
381
381
|
}), [et, rt, ot]);
|
|
382
382
|
})({ context: U, onInit: s, onUpdate: u }), E.useEffect(() => X(ut()), [ut]), E.useEffect(() => {
|
|
383
|
-
|
|
383
|
+
In(R) ? R.current = U : R(U);
|
|
384
384
|
}, [U, R]);
|
|
385
|
-
const D = E.useCallback((L) => p(U, L), [p, U]),
|
|
386
|
-
return E.createElement("div", { className: C, onWheel:
|
|
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)));
|
|
387
387
|
}
|
|
388
|
-
const
|
|
389
|
-
StoryPlayer:
|
|
390
|
-
Overlay:
|
|
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 = {
|
|
389
|
+
StoryPlayer: ws,
|
|
390
|
+
Overlay: _s,
|
|
391
391
|
StoryPlayer__Wrap: xs,
|
|
392
392
|
progressContainer: Ts,
|
|
393
393
|
CloseIcon: Cs,
|
|
@@ -400,9 +400,9 @@ var Y = function() {
|
|
|
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 =
|
|
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";
|
|
404
404
|
function Rs(t) {
|
|
405
|
-
var e = t.onNextClick, n = t.onPrevClick, r = t.onPause, o = t.onResume, a =
|
|
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) {
|
|
407
407
|
d.stopPropagation(), d.preventDefault(), clearTimeout(u.current), u.current = setTimeout(function() {
|
|
408
408
|
r(), s(!0);
|
|
@@ -423,14 +423,14 @@ function Rs(t) {
|
|
|
423
423
|
return l(p);
|
|
424
424
|
} };
|
|
425
425
|
}
|
|
426
|
-
return q(Wo, { children: [
|
|
426
|
+
return q(Wo, { children: [P("div", Y({ className: As }, f(pn.LEFT))), P("div", Y({ className: Ms }, f(pn.RIGHT)))] });
|
|
427
427
|
}
|
|
428
428
|
function Xe() {
|
|
429
429
|
return st(Zo);
|
|
430
430
|
}
|
|
431
|
-
var Ls = "ProgressBar-styles_wrapper__oqUCo",
|
|
432
|
-
function
|
|
433
|
-
var e, n, r, o, a, i = Xe(), s = i.defaultDuration, u = i.classNames, l = Z(null), c = Z(null), f =
|
|
431
|
+
var Ls = "ProgressBar-styles_wrapper__oqUCo", Os = "ProgressBar-styles_bar__x0O50", Ir = 0, Ar = 0.1;
|
|
432
|
+
function Bs(t) {
|
|
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);
|
|
436
436
|
}, [t.isActive, t.isPaused]), k(function() {
|
|
@@ -438,7 +438,7 @@ function Os(t) {
|
|
|
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
440
|
var m;
|
|
441
|
-
l.current && c.current && ((
|
|
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")));
|
|
442
442
|
}, n = d, r = Z(), o = Z(), a = Z(e), k(function() {
|
|
443
443
|
a.current = e;
|
|
444
444
|
}, [e]), k(function() {
|
|
@@ -453,20 +453,20 @@ function Os(t) {
|
|
|
453
453
|
}) : function() {
|
|
454
454
|
r.current && (r.current = null), cancelAnimationFrame(r.current), o.current = null;
|
|
455
455
|
};
|
|
456
|
-
}, [n]),
|
|
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
458
|
var Ds = "progress-styles_wrapper__qQPyW";
|
|
459
459
|
function Ns(t) {
|
|
460
460
|
var e = Xe(), n = e.stories, r = e.classNames;
|
|
461
|
-
return
|
|
462
|
-
return
|
|
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);
|
|
463
463
|
}) }));
|
|
464
464
|
}
|
|
465
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";
|
|
466
466
|
function $s(t) {
|
|
467
467
|
return k(function() {
|
|
468
468
|
t.onPause();
|
|
469
|
-
}, []),
|
|
469
|
+
}, []), P("img", { className: ks, src: t.story.url, alt: "story", onLoad: function() {
|
|
470
470
|
setTimeout(function() {
|
|
471
471
|
t.onResume();
|
|
472
472
|
}, 4);
|
|
@@ -474,14 +474,14 @@ function $s(t) {
|
|
|
474
474
|
}
|
|
475
475
|
var hn, Us = "Video-styles_video__BykuO", Ws = "Video-styles_loaderWrapper__TqVWk", Hs = "Video-styles_loader__FxxSV", zs = "Video-styles_soundIcon__ZvYXE";
|
|
476
476
|
function Gs(t) {
|
|
477
|
-
return t.type === "off" ?
|
|
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
|
|
479
|
+
var An = "RSIsMute", Gt = typeof window > "u" ? {} : window;
|
|
480
480
|
function Ks(t) {
|
|
481
|
-
var e, n = Xe().isPaused, r =
|
|
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);
|
|
482
482
|
function c(f) {
|
|
483
483
|
var d;
|
|
484
|
-
(d =
|
|
484
|
+
(d = Gt == null ? void 0 : Gt.localStorage) === null || d === void 0 || d.setItem(An, String(f)), a(f);
|
|
485
485
|
}
|
|
486
486
|
return k(function() {
|
|
487
487
|
t.onPause(), u(!0);
|
|
@@ -494,78 +494,78 @@ function Ks(t) {
|
|
|
494
494
|
setTimeout(function() {
|
|
495
495
|
t.onResume(), u(!1);
|
|
496
496
|
}, 4);
|
|
497
|
-
}, muted: o }, { children: [
|
|
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:
|
|
499
|
+
} }, { children: P(Gs, { type: o ? "off" : "on" }) })), s && P("div", Y({ className: Ws }, { children: P("div", { className: Hs }) }))] });
|
|
500
500
|
}
|
|
501
|
-
(hn =
|
|
501
|
+
(hn = Gt == null ? void 0 : Gt.localStorage) === null || hn === void 0 || hn.setItem(An, "true");
|
|
502
502
|
var Ys = "CustomComponents-styles_component__w87Wx";
|
|
503
503
|
function qs(t) {
|
|
504
|
-
return
|
|
504
|
+
return P("div", Y({ className: Ys }, { children: P(t.story.component, { pause: t.onPause, resume: t.onResume, story: t.story, isPaused: t.isPaused }) }));
|
|
505
505
|
}
|
|
506
506
|
var Xs = "SeeMore-styles_seeMoreWrapper__kwjif", Zs = "SeeMore-styles_defaultSeeMore__-B1QW";
|
|
507
507
|
function Js(t) {
|
|
508
|
-
return t.story.seeMore ?
|
|
508
|
+
return t.story.seeMore ? P("button", Y({ type: "button", onClick: function() {
|
|
509
509
|
t.onSeeMoreClick();
|
|
510
510
|
}, className: Xs }, { children: function() {
|
|
511
511
|
var e = t.story.seeMore, n = typeof e;
|
|
512
512
|
if (["string", "boolean"].includes(n)) {
|
|
513
513
|
var r = n === "string" ? e : "See More";
|
|
514
|
-
return q("div", Y({ className: Zs }, { children: [
|
|
514
|
+
return q("div", Y({ className: Zs }, { children: [P("span", { children: "^" }), P("p", { children: r })] }));
|
|
515
515
|
}
|
|
516
|
-
return n === "function" ?
|
|
516
|
+
return n === "function" ? P(t.story.seeMore, {}) : t.story.seeMore;
|
|
517
517
|
}() })) : null;
|
|
518
518
|
}
|
|
519
519
|
var Qs = "SeeMoreComponent-styles_seeMoreComponentWrapper__0T6Ap", tu = "SeeMoreComponent-styles_closeIcon__LMm3b";
|
|
520
520
|
function eu(t) {
|
|
521
|
-
return t.story.seeMore && t.story.seeMoreComponent ? q("div", Y({ className: Qs }, { children: [
|
|
521
|
+
return t.story.seeMore && t.story.seeMoreComponent ? q("div", Y({ className: Qs }, { children: [P("button", Y({ className: tu, onClick: t.onClose }, { children: "✕" })), typeof t.story.seeMoreComponent == "function" ? P(t.story.seeMoreComponent, {}) : t.story.seeMoreComponent] })) : null;
|
|
522
522
|
}
|
|
523
523
|
function nu(t) {
|
|
524
|
-
var e =
|
|
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 ?
|
|
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() {
|
|
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
|
-
}, story: t.story }), n &&
|
|
530
|
+
}, story: t.story }), n && P(eu, { story: t.story, onClose: function() {
|
|
531
531
|
t.onResume(), r(!1);
|
|
532
532
|
} })] }));
|
|
533
533
|
}
|
|
534
534
|
var ru = "styles_main__-0FEu";
|
|
535
|
-
function
|
|
535
|
+
function Mr(t) {
|
|
536
536
|
return t === void 0 && (t = 4), Number(Math.random().toFixed(t));
|
|
537
537
|
}
|
|
538
538
|
function ou(t) {
|
|
539
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,
|
|
541
|
-
} :
|
|
542
|
-
} : T,
|
|
543
|
-
return 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() {
|
|
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() {
|
|
543
|
+
return function(O, L) {
|
|
544
544
|
var N = 0;
|
|
545
|
-
return
|
|
546
|
-
var ot = W.duration || L, et = ot +
|
|
547
|
-
return et === N && (et = ot +
|
|
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 });
|
|
548
548
|
});
|
|
549
549
|
}(l, g);
|
|
550
|
-
}, [l, g]), j =
|
|
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);
|
|
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(
|
|
553
|
-
if (!
|
|
554
|
-
var L = (
|
|
552
|
+
ut.current || (I == null ? void 0 : I.index) !== Q || (x(), ut.current = !0), (I == null ? void 0 : I.index) !== Q && G(function(O) {
|
|
553
|
+
if (!O) return $[0];
|
|
554
|
+
var L = (O == null ? void 0 : O.index) + 1;
|
|
555
555
|
return $[L];
|
|
556
556
|
});
|
|
557
557
|
}
|
|
558
558
|
function D() {
|
|
559
559
|
at(!0);
|
|
560
560
|
}
|
|
561
|
-
function
|
|
561
|
+
function _() {
|
|
562
562
|
at(!1);
|
|
563
563
|
}
|
|
564
564
|
k(function() {
|
|
565
565
|
U.current || (U.current = !0, R());
|
|
566
566
|
}, [R]), k(function() {
|
|
567
|
-
var
|
|
568
|
-
|
|
567
|
+
var O = $[h];
|
|
568
|
+
O && G(O);
|
|
569
569
|
}, [h, l]), k(function() {
|
|
570
570
|
I && m(I.index);
|
|
571
571
|
}, [I]), n = function() {
|
|
@@ -577,22 +577,22 @@ function ou(t) {
|
|
|
577
577
|
}, [r]), k(function() {
|
|
578
578
|
if (r !== null && o === !1) {
|
|
579
579
|
s.current = Date.now();
|
|
580
|
-
var
|
|
580
|
+
var O = setTimeout(function() {
|
|
581
581
|
a.current();
|
|
582
582
|
}, i.current);
|
|
583
583
|
return function() {
|
|
584
|
-
clearTimeout(
|
|
584
|
+
clearTimeout(O);
|
|
585
585
|
};
|
|
586
586
|
}
|
|
587
587
|
return function() {
|
|
588
588
|
};
|
|
589
589
|
}, [r, o]), k(function() {
|
|
590
590
|
o && (i.current = i.current - (Date.now() - s.current));
|
|
591
|
-
}, [o]), function(
|
|
592
|
-
var L = Z(
|
|
591
|
+
}, [o]), function(O) {
|
|
592
|
+
var L = Z(O);
|
|
593
593
|
k(function() {
|
|
594
|
-
L.current =
|
|
595
|
-
}, [
|
|
594
|
+
L.current = O;
|
|
595
|
+
}, [O]), k(function() {
|
|
596
596
|
function N() {
|
|
597
597
|
L.current(!0);
|
|
598
598
|
}
|
|
@@ -603,42 +603,42 @@ function ou(t) {
|
|
|
603
603
|
window.removeEventListener("focus", N), window.removeEventListener("blur", W);
|
|
604
604
|
};
|
|
605
605
|
}, []);
|
|
606
|
-
}(function(
|
|
607
|
-
J && at(!
|
|
606
|
+
}(function(O) {
|
|
607
|
+
J && at(!O);
|
|
608
608
|
});
|
|
609
609
|
var C = { stories: $, width: f, height: p, defaultDuration: g, isPaused: it, classNames: V };
|
|
610
|
-
return I ?
|
|
611
|
-
(I == null ? void 0 : I.index) !== 0 && G(function(
|
|
612
|
-
if (!
|
|
613
|
-
var L = (
|
|
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) {
|
|
612
|
+
if (!O) return $[0];
|
|
613
|
+
var L = (O == null ? void 0 : O.index) - 1;
|
|
614
614
|
return $[L];
|
|
615
615
|
});
|
|
616
|
-
}, onPause: D, onResume:
|
|
616
|
+
}, onPause: D, onResume: _ })] })) })) : null;
|
|
617
617
|
}
|
|
618
|
-
var
|
|
619
|
-
return
|
|
618
|
+
var Mn = function(t, e) {
|
|
619
|
+
return Mn = 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
|
-
},
|
|
623
|
+
}, Mn(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
|
-
|
|
628
|
+
Mn(t, e);
|
|
629
629
|
function n() {
|
|
630
630
|
this.constructor = t;
|
|
631
631
|
}
|
|
632
632
|
t.prototype = e === null ? Object.create(e) : (n.prototype = e.prototype, new n());
|
|
633
633
|
}
|
|
634
|
-
var
|
|
635
|
-
return
|
|
634
|
+
var b = function() {
|
|
635
|
+
return b = Object.assign || function(e) {
|
|
636
636
|
for (var n, r = 1, o = arguments.length; r < o; r++) {
|
|
637
637
|
n = arguments[r];
|
|
638
638
|
for (var a in n) Object.prototype.hasOwnProperty.call(n, a) && (e[a] = n[a]);
|
|
639
639
|
}
|
|
640
640
|
return e;
|
|
641
|
-
},
|
|
641
|
+
}, b.apply(this, arguments);
|
|
642
642
|
};
|
|
643
643
|
function ht(t, e) {
|
|
644
644
|
var n = {};
|
|
@@ -670,7 +670,7 @@ function mt(t, e, n) {
|
|
|
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
|
|
673
|
+
var Rr = "production", Qo = typeof process > "u" || process.env === void 0 ? Rr : process.env.NODE_ENV || Rr, Vt = function(t) {
|
|
674
674
|
return {
|
|
675
675
|
isEnabled: function(e) {
|
|
676
676
|
return t.some(function(n) {
|
|
@@ -678,7 +678,7 @@ var Mr = "production", Qo = typeof process > "u" || process.env === void 0 ? Mr
|
|
|
678
678
|
});
|
|
679
679
|
}
|
|
680
680
|
};
|
|
681
|
-
},
|
|
681
|
+
}, pe = {
|
|
682
682
|
measureLayout: Vt(["layout", "layoutId", "drag"]),
|
|
683
683
|
animation: Vt([
|
|
684
684
|
"animate",
|
|
@@ -709,57 +709,57 @@ var Mr = "production", Qo = typeof process > "u" || process.env === void 0 ? Mr
|
|
|
709
709
|
};
|
|
710
710
|
function iu(t) {
|
|
711
711
|
for (var e in t)
|
|
712
|
-
t[e] !== null && (e === "projectionNodeConstructor" ?
|
|
712
|
+
t[e] !== null && (e === "projectionNodeConstructor" ? pe.projectionNodeConstructor = t[e] : pe[e].Component = t[e]);
|
|
713
713
|
}
|
|
714
|
-
var
|
|
714
|
+
var be = function() {
|
|
715
715
|
}, vt = function() {
|
|
716
716
|
};
|
|
717
|
-
process.env.NODE_ENV !== "production" && (
|
|
717
|
+
process.env.NODE_ENV !== "production" && (be = function(t, e) {
|
|
718
718
|
!t && typeof console < "u" && console.warn(e);
|
|
719
719
|
}, vt = function(t, e) {
|
|
720
720
|
if (!t)
|
|
721
721
|
throw new Error(e);
|
|
722
722
|
});
|
|
723
|
-
var ti =
|
|
723
|
+
var ti = Wt({ 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)
|
|
727
727
|
return null;
|
|
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
|
-
var i = ei[a], s =
|
|
731
|
-
u(t) && l && r.push(
|
|
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 })));
|
|
732
732
|
}
|
|
733
733
|
return r;
|
|
734
734
|
}
|
|
735
|
-
var
|
|
735
|
+
var Zn = Wt({
|
|
736
736
|
transformPagePoint: function(t) {
|
|
737
737
|
return t;
|
|
738
738
|
},
|
|
739
739
|
isStatic: !1,
|
|
740
740
|
reducedMotion: "never"
|
|
741
|
-
}), Ze =
|
|
741
|
+
}), Ze = Wt({});
|
|
742
742
|
function uu() {
|
|
743
743
|
return st(Ze).visualElement;
|
|
744
744
|
}
|
|
745
|
-
var Je =
|
|
745
|
+
var Je = Wt(null), Qt = typeof document < "u", Lr = Qt ? Ia : k, Rn = { current: null }, ni = !1;
|
|
746
746
|
function lu() {
|
|
747
|
-
if (ni = !0, !!
|
|
747
|
+
if (ni = !0, !!Qt)
|
|
748
748
|
if (window.matchMedia) {
|
|
749
749
|
var t = window.matchMedia("(prefers-reduced-motion)"), e = function() {
|
|
750
|
-
return
|
|
750
|
+
return Rn.current = t.matches;
|
|
751
751
|
};
|
|
752
752
|
t.addListener(e), e();
|
|
753
753
|
} else
|
|
754
|
-
|
|
754
|
+
Rn.current = !1;
|
|
755
755
|
}
|
|
756
756
|
function cu() {
|
|
757
757
|
!ni && lu();
|
|
758
|
-
var t = nt(
|
|
758
|
+
var t = nt(Pt(Rn.current), 1), e = t[0];
|
|
759
759
|
return e;
|
|
760
760
|
}
|
|
761
761
|
function fu() {
|
|
762
|
-
var t = cu(), e = st(
|
|
762
|
+
var t = cu(), e = st(Zn).reducedMotion;
|
|
763
763
|
return e === "never" ? !1 : e === "always" ? !0 : t;
|
|
764
764
|
}
|
|
765
765
|
function du(t, e, n, r) {
|
|
@@ -773,25 +773,25 @@ function du(t, e, n, r) {
|
|
|
773
773
|
shouldReduceMotion: s
|
|
774
774
|
}));
|
|
775
775
|
var l = u.current;
|
|
776
|
-
return
|
|
776
|
+
return Lr(function() {
|
|
777
777
|
l == null || l.syncRender();
|
|
778
778
|
}), k(function() {
|
|
779
779
|
var c;
|
|
780
780
|
(c = l == null ? void 0 : l.animationState) === null || c === void 0 || c.animateChanges();
|
|
781
|
-
}),
|
|
781
|
+
}), Lr(function() {
|
|
782
782
|
return function() {
|
|
783
783
|
return l == null ? void 0 : l.notifyUnmount();
|
|
784
784
|
};
|
|
785
785
|
}, []), l;
|
|
786
786
|
}
|
|
787
|
-
function
|
|
787
|
+
function Kt(t) {
|
|
788
788
|
return typeof t == "object" && Object.prototype.hasOwnProperty.call(t, "current");
|
|
789
789
|
}
|
|
790
790
|
function vu(t, e, n) {
|
|
791
|
-
return
|
|
791
|
+
return ve(
|
|
792
792
|
function(r) {
|
|
793
793
|
var o;
|
|
794
|
-
r && ((o = t.mount) === null || o === void 0 || o.call(t, r)), e && (r ? e.mount(r) : e.unmount()), n && (typeof n == "function" ? n(r) :
|
|
794
|
+
r && ((o = t.mount) === null || o === void 0 || o.call(t, r)), e && (r ? e.mount(r) : e.unmount()), n && (typeof n == "function" ? n(r) : Kt(n) && (n.current = r));
|
|
795
795
|
},
|
|
796
796
|
/**
|
|
797
797
|
* Only pass a new ref callback to React if we've received a visual element
|
|
@@ -848,16 +848,16 @@ function gu(t) {
|
|
|
848
848
|
var e = hu(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)]);
|
|
852
852
|
}
|
|
853
|
-
function
|
|
853
|
+
function Or(t) {
|
|
854
854
|
return Array.isArray(t) ? t.join(" ") : t;
|
|
855
855
|
}
|
|
856
856
|
function Pe(t) {
|
|
857
857
|
var e = Z(null);
|
|
858
858
|
return e.current === null && (e.current = t()), e.current;
|
|
859
859
|
}
|
|
860
|
-
var
|
|
860
|
+
var ie = {
|
|
861
861
|
/**
|
|
862
862
|
* Global flag as to whether the tree has animated since the last time
|
|
863
863
|
* we resized the window
|
|
@@ -871,17 +871,17 @@ var ae = {
|
|
|
871
871
|
}, yu = 1;
|
|
872
872
|
function Su() {
|
|
873
873
|
return Pe(function() {
|
|
874
|
-
if (
|
|
874
|
+
if (ie.hasEverUpdated)
|
|
875
875
|
return yu++;
|
|
876
876
|
});
|
|
877
877
|
}
|
|
878
|
-
var ai =
|
|
878
|
+
var ai = Wt({}), si = Wt({});
|
|
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({
|
|
882
882
|
layoutId: a,
|
|
883
883
|
layout: i,
|
|
884
|
-
alwaysMeasureLayout: !!s || u &&
|
|
884
|
+
alwaysMeasureLayout: !!s || u && Kt(u),
|
|
885
885
|
visualElement: n,
|
|
886
886
|
scheduleRender: function() {
|
|
887
887
|
return n.scheduleRender();
|
|
@@ -898,7 +898,7 @@ function bu(t, e, n, r) {
|
|
|
898
898
|
layoutScroll: l
|
|
899
899
|
}));
|
|
900
900
|
}
|
|
901
|
-
var
|
|
901
|
+
var Pu = (
|
|
902
902
|
/** @class */
|
|
903
903
|
function(t) {
|
|
904
904
|
Jo(e, t);
|
|
@@ -916,29 +916,29 @@ var _u = (
|
|
|
916
916
|
}, e;
|
|
917
917
|
}(E.Component)
|
|
918
918
|
);
|
|
919
|
-
function
|
|
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;
|
|
921
921
|
e && iu(e);
|
|
922
922
|
function s(u, l) {
|
|
923
|
-
var c =
|
|
924
|
-
u =
|
|
925
|
-
var f = st(
|
|
926
|
-
return !f.isStatic &&
|
|
927
|
-
|
|
928
|
-
{ visualElement: p.visualElement, props:
|
|
923
|
+
var c = _u(u);
|
|
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(
|
|
927
|
+
Pu,
|
|
928
|
+
{ visualElement: p.visualElement, props: b(b({}, f), u) },
|
|
929
929
|
d,
|
|
930
|
-
|
|
930
|
+
Vn.createElement(Ze.Provider, { value: p }, o(i, u, v, vu(m, p.visualElement, l), m, f.isStatic, p.visualElement))
|
|
931
931
|
);
|
|
932
932
|
}
|
|
933
933
|
return Aa(s);
|
|
934
934
|
}
|
|
935
|
-
function
|
|
935
|
+
function _u(t) {
|
|
936
936
|
var e, n = t.layoutId, r = (e = st(ai)) === null || e === void 0 ? void 0 : e.id;
|
|
937
937
|
return r && n !== void 0 ? r + "-" + n : n;
|
|
938
938
|
}
|
|
939
939
|
function xu(t) {
|
|
940
940
|
function e(r, o) {
|
|
941
|
-
return o === void 0 && (o = {}),
|
|
941
|
+
return o === void 0 && (o = {}), wu(t(r, o));
|
|
942
942
|
}
|
|
943
943
|
if (typeof Proxy > "u")
|
|
944
944
|
return e;
|
|
@@ -981,7 +981,7 @@ var Tu = [
|
|
|
981
981
|
"use",
|
|
982
982
|
"view"
|
|
983
983
|
];
|
|
984
|
-
function
|
|
984
|
+
function Jn(t) {
|
|
985
985
|
return (
|
|
986
986
|
/**
|
|
987
987
|
* If it's not a string, it's a custom React component. Currently we only support
|
|
@@ -1005,16 +1005,16 @@ var ke = {};
|
|
|
1005
1005
|
function Cu(t) {
|
|
1006
1006
|
Object.assign(ke, t);
|
|
1007
1007
|
}
|
|
1008
|
-
var
|
|
1008
|
+
var Ln = ["", "X", "Y", "Z"], Eu = ["translate", "scale", "rotate", "skew"], me = ["transformPerspective", "x", "y", "z"];
|
|
1009
1009
|
Eu.forEach(function(t) {
|
|
1010
|
-
return
|
|
1011
|
-
return
|
|
1010
|
+
return Ln.forEach(function(e) {
|
|
1011
|
+
return me.push(t + e);
|
|
1012
1012
|
});
|
|
1013
1013
|
});
|
|
1014
1014
|
function Vu(t, e) {
|
|
1015
|
-
return
|
|
1015
|
+
return me.indexOf(t) - me.indexOf(e);
|
|
1016
1016
|
}
|
|
1017
|
-
var Iu = new Set(
|
|
1017
|
+
var Iu = new Set(me);
|
|
1018
1018
|
function we(t) {
|
|
1019
1019
|
return Iu.has(t);
|
|
1020
1020
|
}
|
|
@@ -1050,39 +1050,39 @@ function Lu(t) {
|
|
|
1050
1050
|
function ci(t) {
|
|
1051
1051
|
return t.startsWith("--");
|
|
1052
1052
|
}
|
|
1053
|
-
var
|
|
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),
|
|
1057
|
-
function
|
|
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;
|
|
1057
|
+
function _e(t) {
|
|
1058
1058
|
return typeof t == "string";
|
|
1059
1059
|
}
|
|
1060
|
-
const
|
|
1060
|
+
const Ht = {
|
|
1061
1061
|
test: (t) => typeof t == "number",
|
|
1062
1062
|
parse: parseFloat,
|
|
1063
1063
|
transform: (t) => t
|
|
1064
|
-
},
|
|
1065
|
-
test: (e) =>
|
|
1064
|
+
}, se = Object.assign(Object.assign({}, Ht), { transform: fi(0, 1) }), Ie = Object.assign(Object.assign({}, Ht), { default: 1 }), xe = (t) => ({
|
|
1065
|
+
test: (e) => _e(e) && e.endsWith(t) && e.split(" ").length === 1,
|
|
1066
1066
|
parse: parseFloat,
|
|
1067
1067
|
transform: (e) => `${e}${t}`
|
|
1068
|
-
}), Lt =
|
|
1069
|
-
if (!
|
|
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) => {
|
|
1069
|
+
if (!_e(r))
|
|
1070
1070
|
return r;
|
|
1071
|
-
const [o, a, i, s] = r.match(
|
|
1071
|
+
const [o, a, i, s] = r.match(he);
|
|
1072
1072
|
return {
|
|
1073
1073
|
[t]: parseFloat(o),
|
|
1074
1074
|
[e]: parseFloat(a),
|
|
1075
1075
|
[n]: parseFloat(i),
|
|
1076
1076
|
alpha: s !== void 0 ? parseFloat(s) : 1
|
|
1077
1077
|
};
|
|
1078
|
-
},
|
|
1079
|
-
test:
|
|
1078
|
+
}, $t = {
|
|
1079
|
+
test: Qn("hsl", "hue"),
|
|
1080
1080
|
parse: di("hue", "saturation", "lightness"),
|
|
1081
|
-
transform: ({ hue: t, saturation: e, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(t) + ", " + xt.transform(
|
|
1082
|
-
}, Fu = fi(0, 255), gn = Object.assign(Object.assign({},
|
|
1083
|
-
test:
|
|
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 = {
|
|
1083
|
+
test: Qn("rgb", "red"),
|
|
1084
1084
|
parse: di("red", "green", "blue"),
|
|
1085
|
-
transform: ({ red: t, green: e, blue: n, alpha: r = 1 }) => "rgba(" + gn.transform(t) + ", " + gn.transform(e) + ", " + gn.transform(n) + ", " + se
|
|
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)) + ")"
|
|
1086
1086
|
};
|
|
1087
1087
|
function ju(t) {
|
|
1088
1088
|
let e = "", n = "", r = "", o = "";
|
|
@@ -1094,26 +1094,26 @@ function ju(t) {
|
|
|
1094
1094
|
};
|
|
1095
1095
|
}
|
|
1096
1096
|
const Bn = {
|
|
1097
|
-
test:
|
|
1097
|
+
test: Qn("#"),
|
|
1098
1098
|
parse: ju,
|
|
1099
1099
|
transform: Dt.transform
|
|
1100
1100
|
}, ct = {
|
|
1101
|
-
test: (t) => Dt.test(t) || Bn.test(t) ||
|
|
1102
|
-
parse: (t) => Dt.test(t) ? Dt.parse(t) :
|
|
1103
|
-
transform: (t) =>
|
|
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)
|
|
1104
1104
|
}, vi = "${c}", pi = "${n}";
|
|
1105
1105
|
function ku(t) {
|
|
1106
1106
|
var e, n, r, o;
|
|
1107
|
-
return isNaN(t) &&
|
|
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;
|
|
1108
1108
|
}
|
|
1109
1109
|
function mi(t) {
|
|
1110
1110
|
typeof t == "number" && (t = `${t}`);
|
|
1111
1111
|
const e = [];
|
|
1112
1112
|
let n = 0;
|
|
1113
|
-
const r = t.match(
|
|
1114
|
-
r && (n = r.length, t = t.replace(
|
|
1115
|
-
const o = t.match(
|
|
1116
|
-
return o && (t = t.replace(
|
|
1113
|
+
const r = t.match(On);
|
|
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 };
|
|
1117
1117
|
}
|
|
1118
1118
|
function hi(t) {
|
|
1119
1119
|
return mi(t).values;
|
|
@@ -1123,7 +1123,7 @@ function gi(t) {
|
|
|
1123
1123
|
return (a) => {
|
|
1124
1124
|
let i = r;
|
|
1125
1125
|
for (let s = 0; s < o; s++)
|
|
1126
|
-
i = i.replace(s < n ? vi : pi, s < n ? ct.transform(a[s]) :
|
|
1126
|
+
i = i.replace(s < n ? vi : pi, s < n ? ct.transform(a[s]) : ae(a[s]));
|
|
1127
1127
|
return i;
|
|
1128
1128
|
};
|
|
1129
1129
|
}
|
|
@@ -1137,18 +1137,18 @@ function Hu(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(
|
|
1140
|
+
const [r] = n.match(he) || [];
|
|
1141
1141
|
if (!r)
|
|
1142
1142
|
return t;
|
|
1143
1143
|
const o = n.replace(r, "");
|
|
1144
1144
|
let a = Wu.has(e) ? 1 : 0;
|
|
1145
1145
|
return r !== n && (a *= 100), e + "(" + a + o + ")";
|
|
1146
1146
|
}
|
|
1147
|
-
const zu = /([a-z-]*)\(.*?\)/g,
|
|
1147
|
+
const zu = /([a-z-]*)\(.*?\)/g, Dn = Object.assign(Object.assign({}, At), { getAnimatableNone: (t) => {
|
|
1148
1148
|
const e = t.match(zu);
|
|
1149
1149
|
return e ? e.map(Hu).join(" ") : t;
|
|
1150
1150
|
} });
|
|
1151
|
-
var
|
|
1151
|
+
var Dr = b(b({}, Ht), { transform: Math.round }), yi = {
|
|
1152
1152
|
// Border props
|
|
1153
1153
|
borderWidth: A,
|
|
1154
1154
|
borderTopWidth: A,
|
|
@@ -1187,10 +1187,10 @@ var Or = _(_({}, zt), { transform: Math.round }), yi = {
|
|
|
1187
1187
|
rotateX: Lt,
|
|
1188
1188
|
rotateY: Lt,
|
|
1189
1189
|
rotateZ: Lt,
|
|
1190
|
-
scale:
|
|
1191
|
-
scaleX:
|
|
1192
|
-
scaleY:
|
|
1193
|
-
scaleZ:
|
|
1190
|
+
scale: Ie,
|
|
1191
|
+
scaleX: Ie,
|
|
1192
|
+
scaleY: Ie,
|
|
1193
|
+
scaleZ: Ie,
|
|
1194
1194
|
skew: Lt,
|
|
1195
1195
|
skewX: Lt,
|
|
1196
1196
|
skewY: Lt,
|
|
@@ -1203,18 +1203,18 @@ var Or = _(_({}, zt), { transform: Math.round }), yi = {
|
|
|
1203
1203
|
z: A,
|
|
1204
1204
|
perspective: A,
|
|
1205
1205
|
transformPerspective: A,
|
|
1206
|
-
opacity:
|
|
1206
|
+
opacity: se,
|
|
1207
1207
|
originX: Br,
|
|
1208
1208
|
originY: Br,
|
|
1209
1209
|
originZ: A,
|
|
1210
1210
|
// Misc
|
|
1211
|
-
zIndex:
|
|
1211
|
+
zIndex: Dr,
|
|
1212
1212
|
// SVG
|
|
1213
|
-
fillOpacity:
|
|
1214
|
-
strokeOpacity:
|
|
1215
|
-
numOctaves:
|
|
1213
|
+
fillOpacity: se,
|
|
1214
|
+
strokeOpacity: se,
|
|
1215
|
+
numOctaves: Dr
|
|
1216
1216
|
};
|
|
1217
|
-
function
|
|
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;
|
|
1219
1219
|
u.length = 0;
|
|
1220
1220
|
var c = !1, f = !1, d = !0;
|
|
@@ -1224,7 +1224,7 @@ function Qn(t, e, n, r) {
|
|
|
1224
1224
|
i[p] = v;
|
|
1225
1225
|
continue;
|
|
1226
1226
|
}
|
|
1227
|
-
var m = yi[p], y =
|
|
1227
|
+
var m = yi[p], y = Ou(v, m);
|
|
1228
1228
|
if (we(p)) {
|
|
1229
1229
|
if (c = !0, s[p] = y, u.push(p), !d)
|
|
1230
1230
|
continue;
|
|
@@ -1233,7 +1233,7 @@ function Qn(t, e, n, r) {
|
|
|
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));
|
|
1235
1235
|
}
|
|
1236
|
-
var
|
|
1236
|
+
var er = function() {
|
|
1237
1237
|
return {
|
|
1238
1238
|
style: {},
|
|
1239
1239
|
transform: {},
|
|
@@ -1249,10 +1249,10 @@ function Si(t, e, n) {
|
|
|
1249
1249
|
function Gu(t, e, n) {
|
|
1250
1250
|
var r = t.transformTemplate;
|
|
1251
1251
|
return qe(function() {
|
|
1252
|
-
var o =
|
|
1253
|
-
|
|
1252
|
+
var o = er();
|
|
1253
|
+
tr(o, e, { enableHardwareAcceleration: !n }, r);
|
|
1254
1254
|
var a = o.vars, i = o.style;
|
|
1255
|
-
return
|
|
1255
|
+
return b(b({}, a), i);
|
|
1256
1256
|
}, [e]);
|
|
1257
1257
|
}
|
|
1258
1258
|
function Ku(t, e, n) {
|
|
@@ -1343,11 +1343,11 @@ function Zu(t, e, n) {
|
|
|
1343
1343
|
t.draggable && o.startsWith("onDrag")) && (r[o] = t[o]);
|
|
1344
1344
|
return r;
|
|
1345
1345
|
}
|
|
1346
|
-
function
|
|
1346
|
+
function Nr(t, e, n) {
|
|
1347
1347
|
return typeof t == "string" ? t : A.transform(e + n * t);
|
|
1348
1348
|
}
|
|
1349
1349
|
function Ju(t, e, n) {
|
|
1350
|
-
var r =
|
|
1350
|
+
var r = Nr(e, t.x, t.width), o = Nr(n, t.y, t.height);
|
|
1351
1351
|
return "".concat(r, " ").concat(o);
|
|
1352
1352
|
}
|
|
1353
1353
|
var Qu = {
|
|
@@ -1361,38 +1361,38 @@ function tl(t, e, n, r, o) {
|
|
|
1361
1361
|
var i = A.transform(e), s = A.transform(n);
|
|
1362
1362
|
t[a.array] = "".concat(i, " ").concat(s);
|
|
1363
1363
|
}
|
|
1364
|
-
function
|
|
1364
|
+
function nr(t, e, n, r) {
|
|
1365
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"]);
|
|
1366
|
-
|
|
1366
|
+
tr(t, p, n, r), t.attrs = t.style, t.style = {};
|
|
1367
1367
|
var v = t.attrs, m = t.style, y = t.dimensions;
|
|
1368
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);
|
|
1369
1369
|
}
|
|
1370
|
-
var
|
|
1371
|
-
return
|
|
1370
|
+
var Pi = function() {
|
|
1371
|
+
return b(b({}, er()), { attrs: {} });
|
|
1372
1372
|
};
|
|
1373
1373
|
function el(t, e) {
|
|
1374
1374
|
var n = qe(function() {
|
|
1375
|
-
var o =
|
|
1376
|
-
return
|
|
1375
|
+
var o = Pi();
|
|
1376
|
+
return nr(o, e, { enableHardwareAcceleration: !1 }, t.transformTemplate), b(b({}, o.attrs), { style: b({}, o.style) });
|
|
1377
1377
|
}, [e]);
|
|
1378
1378
|
if (t.style) {
|
|
1379
1379
|
var r = {};
|
|
1380
|
-
Si(r, t.style, t), n.style =
|
|
1380
|
+
Si(r, t.style, t), n.style = b(b({}, r), n.style);
|
|
1381
1381
|
}
|
|
1382
1382
|
return n;
|
|
1383
1383
|
}
|
|
1384
1384
|
function nl(t) {
|
|
1385
1385
|
t === void 0 && (t = !1);
|
|
1386
1386
|
var e = function(n, r, o, a, i, s) {
|
|
1387
|
-
var u = i.latestValues, l =
|
|
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
1388
|
return o && (d["data-projection-id"] = o), Ma(n, d);
|
|
1389
1389
|
};
|
|
1390
1390
|
return e;
|
|
1391
1391
|
}
|
|
1392
|
-
var rl = /([a-z])([A-Z])/g, ol = "$1-$2",
|
|
1392
|
+
var rl = /([a-z])([A-Z])/g, ol = "$1-$2", wi = function(t) {
|
|
1393
1393
|
return t.replace(rl, ol).toLowerCase();
|
|
1394
1394
|
};
|
|
1395
|
-
function
|
|
1395
|
+
function _i(t, e, n, r) {
|
|
1396
1396
|
var o = e.style, a = e.vars;
|
|
1397
1397
|
Object.assign(t.style, o, r && r.getProjectionStyles(n));
|
|
1398
1398
|
for (var i in a)
|
|
@@ -1421,18 +1421,18 @@ var xi = /* @__PURE__ */ new Set([
|
|
|
1421
1421
|
"pathLength"
|
|
1422
1422
|
]);
|
|
1423
1423
|
function Ti(t, e, n, r) {
|
|
1424
|
-
|
|
1424
|
+
_i(t, e, void 0, r);
|
|
1425
1425
|
for (var o in e.attrs)
|
|
1426
|
-
t.setAttribute(xi.has(o) ? o :
|
|
1426
|
+
t.setAttribute(xi.has(o) ? o : wi(o), e.attrs[o]);
|
|
1427
1427
|
}
|
|
1428
|
-
function
|
|
1428
|
+
function rr(t) {
|
|
1429
1429
|
var e = t.style, n = {};
|
|
1430
1430
|
for (var r in e)
|
|
1431
1431
|
(It(e[r]) || li(r, t)) && (n[r] = e[r]);
|
|
1432
1432
|
return n;
|
|
1433
1433
|
}
|
|
1434
1434
|
function Ci(t) {
|
|
1435
|
-
var e =
|
|
1435
|
+
var e = rr(t);
|
|
1436
1436
|
for (var n in t)
|
|
1437
1437
|
if (It(t[n])) {
|
|
1438
1438
|
var r = n === "x" || n === "y" ? "attr" + n.toUpperCase() : n;
|
|
@@ -1440,21 +1440,21 @@ function Ci(t) {
|
|
|
1440
1440
|
}
|
|
1441
1441
|
return e;
|
|
1442
1442
|
}
|
|
1443
|
-
function
|
|
1443
|
+
function or(t) {
|
|
1444
1444
|
return typeof t == "object" && typeof t.start == "function";
|
|
1445
1445
|
}
|
|
1446
|
-
var
|
|
1446
|
+
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
1450
|
}, Ei = function(t) {
|
|
1451
|
-
return
|
|
1451
|
+
return ge(t) ? t[t.length - 1] || 0 : t;
|
|
1452
1452
|
};
|
|
1453
1453
|
function Ne(t) {
|
|
1454
1454
|
var e = It(t) ? t.get() : t;
|
|
1455
1455
|
return il(e) ? e.toValue() : e;
|
|
1456
1456
|
}
|
|
1457
|
-
function
|
|
1457
|
+
function Fr(t, e, n, r) {
|
|
1458
1458
|
var o = t.scrapeMotionValuesFromProps, a = t.createRenderState, i = t.onMount, s = {
|
|
1459
1459
|
latestValues: al(e, n, r, o),
|
|
1460
1460
|
renderState: a()
|
|
@@ -1466,8 +1466,8 @@ function Nr(t, e, n, r) {
|
|
|
1466
1466
|
var Vi = function(t) {
|
|
1467
1467
|
return function(e, n) {
|
|
1468
1468
|
var r = st(Ze), o = st(Je);
|
|
1469
|
-
return n ?
|
|
1470
|
-
return
|
|
1469
|
+
return n ? Fr(t, e, r, o) : Pe(function() {
|
|
1470
|
+
return Fr(t, e, r, o);
|
|
1471
1471
|
});
|
|
1472
1472
|
};
|
|
1473
1473
|
};
|
|
@@ -1478,7 +1478,7 @@ function al(t, e, n, r) {
|
|
|
1478
1478
|
var u = t.initial, l = t.animate, c = tn(t), f = ii(t);
|
|
1479
1479
|
e && f && !c && t.inherit !== !1 && (u ?? (u = e.initial), l ?? (l = e.animate));
|
|
1480
1480
|
var d = a || u === !1, p = d ? l : u;
|
|
1481
|
-
if (p && typeof p != "boolean" && !
|
|
1481
|
+
if (p && typeof p != "boolean" && !or(p)) {
|
|
1482
1482
|
var v = Array.isArray(p) ? p : [p];
|
|
1483
1483
|
v.forEach(function(m) {
|
|
1484
1484
|
var y = oi(t, m);
|
|
@@ -1487,12 +1487,12 @@ function al(t, e, n, r) {
|
|
|
1487
1487
|
y.transition;
|
|
1488
1488
|
var S = ht(y, ["transitionEnd", "transition"]);
|
|
1489
1489
|
for (var g in S) {
|
|
1490
|
-
var
|
|
1491
|
-
if (Array.isArray(
|
|
1492
|
-
var x = d ?
|
|
1493
|
-
|
|
1490
|
+
var w = S[g];
|
|
1491
|
+
if (Array.isArray(w)) {
|
|
1492
|
+
var x = d ? w.length - 1 : 0;
|
|
1493
|
+
w = w[x];
|
|
1494
1494
|
}
|
|
1495
|
-
|
|
1495
|
+
w !== null && (o[g] = w);
|
|
1496
1496
|
}
|
|
1497
1497
|
for (var g in h)
|
|
1498
1498
|
o[g] = h[g];
|
|
@@ -1504,7 +1504,7 @@ function al(t, e, n, r) {
|
|
|
1504
1504
|
var sl = {
|
|
1505
1505
|
useVisualState: Vi({
|
|
1506
1506
|
scrapeMotionValuesFromProps: Ci,
|
|
1507
|
-
createRenderState:
|
|
1507
|
+
createRenderState: Pi,
|
|
1508
1508
|
onMount: function(t, e, n) {
|
|
1509
1509
|
var r = n.renderState, o = n.latestValues;
|
|
1510
1510
|
try {
|
|
@@ -1517,18 +1517,18 @@ var sl = {
|
|
|
1517
1517
|
height: 0
|
|
1518
1518
|
};
|
|
1519
1519
|
}
|
|
1520
|
-
|
|
1520
|
+
nr(r, o, { enableHardwareAcceleration: !1 }, t.transformTemplate), Ti(e, r);
|
|
1521
1521
|
}
|
|
1522
1522
|
})
|
|
1523
1523
|
}, ul = {
|
|
1524
1524
|
useVisualState: Vi({
|
|
1525
|
-
scrapeMotionValuesFromProps:
|
|
1526
|
-
createRenderState:
|
|
1525
|
+
scrapeMotionValuesFromProps: rr,
|
|
1526
|
+
createRenderState: er
|
|
1527
1527
|
})
|
|
1528
1528
|
};
|
|
1529
1529
|
function ll(t, e, n, r, o) {
|
|
1530
|
-
var a = e.forwardMotionProps, i = a === void 0 ? !1 : a, s =
|
|
1531
|
-
return
|
|
1530
|
+
var a = e.forwardMotionProps, i = a === void 0 ? !1 : a, s = Jn(t) ? sl : ul;
|
|
1531
|
+
return b(b({}, s), { preloadedFeatures: n, useRender: nl(i), createVisualElement: r, projectionNodeConstructor: o, Component: t });
|
|
1532
1532
|
}
|
|
1533
1533
|
var z;
|
|
1534
1534
|
(function(t) {
|
|
@@ -1539,7 +1539,7 @@ function en(t, e, n, r) {
|
|
|
1539
1539
|
return t.removeEventListener(e, n);
|
|
1540
1540
|
};
|
|
1541
1541
|
}
|
|
1542
|
-
function
|
|
1542
|
+
function Nn(t, e, n, r) {
|
|
1543
1543
|
k(function() {
|
|
1544
1544
|
var o = t.current;
|
|
1545
1545
|
if (n && o)
|
|
@@ -1554,7 +1554,7 @@ function cl(t) {
|
|
|
1554
1554
|
var a;
|
|
1555
1555
|
(a = n.animationState) === null || a === void 0 || a.setActive(z.Focus, !1);
|
|
1556
1556
|
};
|
|
1557
|
-
|
|
1557
|
+
Nn(n, "focus", e ? r : void 0), Nn(n, "blur", e ? o : void 0);
|
|
1558
1558
|
}
|
|
1559
1559
|
function Ii(t) {
|
|
1560
1560
|
return typeof PointerEvent < "u" && t instanceof PointerEvent ? t.pointerType === "mouse" : t instanceof MouseEvent;
|
|
@@ -1584,7 +1584,7 @@ function pl(t, e) {
|
|
|
1584
1584
|
y: t[e + "Y"]
|
|
1585
1585
|
};
|
|
1586
1586
|
}
|
|
1587
|
-
function
|
|
1587
|
+
function ir(t, e) {
|
|
1588
1588
|
return e === void 0 && (e = "page"), {
|
|
1589
1589
|
point: Ai(t) ? vl(t, e) : pl(t, e)
|
|
1590
1590
|
};
|
|
@@ -1592,15 +1592,15 @@ function or(t, e) {
|
|
|
1592
1592
|
var Mi = function(t, e) {
|
|
1593
1593
|
e === void 0 && (e = !1);
|
|
1594
1594
|
var n = function(r) {
|
|
1595
|
-
return t(r,
|
|
1595
|
+
return t(r, ir(r));
|
|
1596
1596
|
};
|
|
1597
1597
|
return e ? fl(n) : n;
|
|
1598
1598
|
}, ml = function() {
|
|
1599
|
-
return
|
|
1599
|
+
return Qt && window.onpointerdown === null;
|
|
1600
1600
|
}, hl = function() {
|
|
1601
|
-
return
|
|
1601
|
+
return Qt && window.ontouchstart === null;
|
|
1602
1602
|
}, gl = function() {
|
|
1603
|
-
return
|
|
1603
|
+
return Qt && window.onmousedown === null;
|
|
1604
1604
|
}, yl = {
|
|
1605
1605
|
pointerdown: "mousedown",
|
|
1606
1606
|
pointermove: "mousemove",
|
|
@@ -1619,11 +1619,11 @@ var Mi = function(t, e) {
|
|
|
1619
1619
|
function Ri(t) {
|
|
1620
1620
|
return ml() ? t : hl() ? Sl[t] : gl() ? yl[t] : t;
|
|
1621
1621
|
}
|
|
1622
|
-
function
|
|
1622
|
+
function qt(t, e, n, r) {
|
|
1623
1623
|
return en(t, Ri(e), Mi(n, e === "pointerdown"), r);
|
|
1624
1624
|
}
|
|
1625
1625
|
function Ue(t, e, n, r) {
|
|
1626
|
-
return
|
|
1626
|
+
return Nn(t, Ri(e), n && Mi(n, e === "pointerdown"), r);
|
|
1627
1627
|
}
|
|
1628
1628
|
function Li(t) {
|
|
1629
1629
|
var e = null;
|
|
@@ -1634,34 +1634,34 @@ function Li(t) {
|
|
|
1634
1634
|
return e === null ? (e = t, n) : !1;
|
|
1635
1635
|
};
|
|
1636
1636
|
}
|
|
1637
|
-
var
|
|
1638
|
-
function
|
|
1637
|
+
var jr = Li("dragHorizontal"), kr = Li("dragVertical");
|
|
1638
|
+
function Oi(t) {
|
|
1639
1639
|
var e = !1;
|
|
1640
1640
|
if (t === "y")
|
|
1641
|
-
e =
|
|
1641
|
+
e = kr();
|
|
1642
1642
|
else if (t === "x")
|
|
1643
|
-
e =
|
|
1643
|
+
e = jr();
|
|
1644
1644
|
else {
|
|
1645
|
-
var n =
|
|
1645
|
+
var n = jr(), r = kr();
|
|
1646
1646
|
n && r ? e = function() {
|
|
1647
1647
|
n(), r();
|
|
1648
1648
|
} : (n && n(), r && r());
|
|
1649
1649
|
}
|
|
1650
1650
|
return e;
|
|
1651
1651
|
}
|
|
1652
|
-
function
|
|
1653
|
-
var t =
|
|
1652
|
+
function Bi() {
|
|
1653
|
+
var t = Oi(!0);
|
|
1654
1654
|
return t ? (t(), !1) : !0;
|
|
1655
1655
|
}
|
|
1656
|
-
function
|
|
1656
|
+
function $r(t, e, n) {
|
|
1657
1657
|
return function(r, o) {
|
|
1658
1658
|
var a;
|
|
1659
|
-
!Ii(r) ||
|
|
1659
|
+
!Ii(r) || Bi() || ((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
|
-
Ue(o, "pointerenter", e || r ?
|
|
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
1666
|
var Di = function(t, e) {
|
|
1667
1667
|
return e ? t === e ? !0 : Di(t, e.parentElement) : !1;
|
|
@@ -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),
|
|
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;
|
|
1677
1677
|
function xl({ duration: t = 800, bounce: e = 0.25, velocity: n = 0, mass: r = 1 }) {
|
|
1678
1678
|
let o, a;
|
|
1679
|
-
|
|
1679
|
+
be(t <= Wr * 1e3, "Spring duration must be 10 seconds or less");
|
|
1680
1680
|
let i = 1 - e;
|
|
1681
|
-
i = We(
|
|
1682
|
-
const c = l * i, f = c * t, d = c - n, p =
|
|
1683
|
-
return
|
|
1681
|
+
i = We(wl, _l, i), t = We(Pl, Wr, t / 1e3), i < 1 ? (o = (l) => {
|
|
1682
|
+
const c = l * i, f = c * t, d = c - n, p = Fn(l, i), v = Math.exp(-f);
|
|
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 =
|
|
1686
|
-
return (-o(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;
|
|
1687
1687
|
}) : (o = (l) => {
|
|
1688
1688
|
const c = Math.exp(-l * t), f = (l - n) * t + 1;
|
|
1689
1689
|
return -1e-3 + c * f;
|
|
@@ -1714,43 +1714,43 @@ function Cl(t, e, n) {
|
|
|
1714
1714
|
r = r - t(r) / e(r);
|
|
1715
1715
|
return r;
|
|
1716
1716
|
}
|
|
1717
|
-
function
|
|
1717
|
+
function Fn(t, e) {
|
|
1718
1718
|
return t * Math.sqrt(1 - e * e);
|
|
1719
1719
|
}
|
|
1720
1720
|
const El = ["duration", "bounce"], Vl = ["stiffness", "damping", "mass"];
|
|
1721
|
-
function
|
|
1721
|
+
function Hr(t, e) {
|
|
1722
1722
|
return e.some((n) => t[n] !== void 0);
|
|
1723
1723
|
}
|
|
1724
1724
|
function Il(t) {
|
|
1725
1725
|
let e = Object.assign({ velocity: 0, stiffness: 100, damping: 10, mass: 1, isResolvedFromDuration: !1 }, t);
|
|
1726
|
-
if (!
|
|
1726
|
+
if (!Hr(t, Vl) && Hr(t, El)) {
|
|
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
|
-
function
|
|
1732
|
+
function ar(t) {
|
|
1733
1733
|
var { from: e = 0, to: n = 1, restSpeed: r = 2, restDelta: o } = t, a = ht(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 =
|
|
1735
|
+
let { stiffness: s, damping: u, mass: l, velocity: c, duration: f, isResolvedFromDuration: d } = Il(a), p = zr, v = zr;
|
|
1736
1736
|
function m() {
|
|
1737
1737
|
const y = c ? -(c / 1e3) : 0, h = 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
|
-
const
|
|
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) /
|
|
1742
|
+
return n - T * ((y + S * g * h) / w * Math.sin(w * x) + h * Math.cos(w * x));
|
|
1743
1743
|
}, v = (x) => {
|
|
1744
1744
|
const T = Math.exp(-S * g * x);
|
|
1745
|
-
return S * g * T * (Math.sin(
|
|
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));
|
|
1746
1746
|
};
|
|
1747
1747
|
} else if (S === 1)
|
|
1748
|
-
p = (
|
|
1748
|
+
p = (w) => n - Math.exp(-g * w) * (h + (y + g * h) * w);
|
|
1749
1749
|
else {
|
|
1750
|
-
const
|
|
1750
|
+
const w = g * Math.sqrt(S * S - 1);
|
|
1751
1751
|
p = (x) => {
|
|
1752
|
-
const T = Math.exp(-S * g * x), R = Math.min(
|
|
1753
|
-
return n - T * ((y + S * g * h) * Math.sinh(R) +
|
|
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;
|
|
1754
1754
|
};
|
|
1755
1755
|
}
|
|
1756
1756
|
}
|
|
@@ -1760,8 +1760,8 @@ function ir(t) {
|
|
|
1760
1760
|
if (d)
|
|
1761
1761
|
i.done = y >= f;
|
|
1762
1762
|
else {
|
|
1763
|
-
const S = v(y) * 1e3, g = Math.abs(S) <= r,
|
|
1764
|
-
i.done = g &&
|
|
1763
|
+
const S = v(y) * 1e3, g = Math.abs(S) <= r, w = Math.abs(n - h) <= o;
|
|
1764
|
+
i.done = g && w;
|
|
1765
1765
|
}
|
|
1766
1766
|
return i.value = i.done ? n : h, i;
|
|
1767
1767
|
},
|
|
@@ -1770,15 +1770,15 @@ function ir(t) {
|
|
|
1770
1770
|
}
|
|
1771
1771
|
};
|
|
1772
1772
|
}
|
|
1773
|
-
|
|
1774
|
-
const
|
|
1773
|
+
ar.needsInterpolation = (t, e) => typeof t == "string" || typeof e == "string";
|
|
1774
|
+
const zr = (t) => 0, ye = (t, e, n) => {
|
|
1775
1775
|
const r = e - t;
|
|
1776
1776
|
return r === 0 ? 1 : (n - t) / r;
|
|
1777
1777
|
}, tt = (t, e, n) => -n * t + n * e + t;
|
|
1778
1778
|
function yn(t, e, n) {
|
|
1779
1779
|
return n < 0 && (n += 1), n > 1 && (n -= 1), n < 1 / 6 ? t + (e - t) * 6 * n : n < 1 / 2 ? e : n < 2 / 3 ? t + (e - t) * (2 / 3 - n) * 6 : t;
|
|
1780
1780
|
}
|
|
1781
|
-
function
|
|
1781
|
+
function Gr({ hue: t, saturation: e, lightness: n, alpha: r }) {
|
|
1782
1782
|
t /= 360, e /= 100, n /= 100;
|
|
1783
1783
|
let o = 0, a = 0, i = 0;
|
|
1784
1784
|
if (!e)
|
|
@@ -1797,20 +1797,20 @@ function zr({ hue: t, saturation: e, lightness: n, alpha: r }) {
|
|
|
1797
1797
|
const Al = (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,
|
|
1801
|
-
let n =
|
|
1802
|
-
vt(!!n,
|
|
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) => {
|
|
1801
|
+
let n = Kr(t), r = Kr(e);
|
|
1802
|
+
vt(!!n, Yr(t)), vt(!!r, Yr(e));
|
|
1803
1803
|
let o = n.parse(t), a = r.parse(e);
|
|
1804
|
-
n ===
|
|
1804
|
+
n === $t && (o = Gr(o), n = Dt), r === $t && (a = Gr(a), r = Dt);
|
|
1805
1805
|
const i = Object.assign({}, o);
|
|
1806
1806
|
return (s) => {
|
|
1807
1807
|
for (const u in i)
|
|
1808
1808
|
u !== "alpha" && (i[u] = Al(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);
|
|
1812
1812
|
function ji(t, e) {
|
|
1813
|
-
return
|
|
1813
|
+
return jn(t) ? (n) => tt(t, e, n) : ct.test(t) ? Fi(t, e) : $i(t, e);
|
|
1814
1814
|
}
|
|
1815
1815
|
const ki = (t, e) => {
|
|
1816
1816
|
const n = [...t], r = n.length, o = t.map((a, i) => ji(a, e[i]));
|
|
@@ -1829,7 +1829,7 @@ const ki = (t, e) => {
|
|
|
1829
1829
|
return n;
|
|
1830
1830
|
};
|
|
1831
1831
|
};
|
|
1832
|
-
function
|
|
1832
|
+
function qr(t) {
|
|
1833
1833
|
const e = At.parse(t), n = e.length;
|
|
1834
1834
|
let r = 0, o = 0, a = 0;
|
|
1835
1835
|
for (let i = 0; i < n; i++)
|
|
@@ -1837,12 +1837,12 @@ function Yr(t) {
|
|
|
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 =
|
|
1841
|
-
return r.numHSL === o.numHSL && r.numRGB === o.numRGB && r.numNumbers >= o.numNumbers ? nn(ki(r.parsed, o.parsed), n) : (
|
|
1842
|
-
},
|
|
1843
|
-
function
|
|
1840
|
+
const n = At.createTransformer(e), r = qr(t), o = qr(e);
|
|
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
|
+
}, Ol = (t, e) => (n) => tt(t, e, n);
|
|
1843
|
+
function Bl(t) {
|
|
1844
1844
|
if (typeof t == "number")
|
|
1845
|
-
return
|
|
1845
|
+
return Ol;
|
|
1846
1846
|
if (typeof t == "string")
|
|
1847
1847
|
return ct.test(t) ? Fi : $i;
|
|
1848
1848
|
if (Array.isArray(t))
|
|
@@ -1851,7 +1851,7 @@ function Ol(t) {
|
|
|
1851
1851
|
return Ll;
|
|
1852
1852
|
}
|
|
1853
1853
|
function Dl(t, e, n) {
|
|
1854
|
-
const r = [], o = n ||
|
|
1854
|
+
const r = [], o = n || Bl(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) {
|
|
@@ -1863,7 +1863,7 @@ function Dl(t, e, n) {
|
|
|
1863
1863
|
return r;
|
|
1864
1864
|
}
|
|
1865
1865
|
function Nl([t, e], [n]) {
|
|
1866
|
-
return (r) => n(
|
|
1866
|
+
return (r) => n(ye(t, e, r));
|
|
1867
1867
|
}
|
|
1868
1868
|
function Fl(t, e) {
|
|
1869
1869
|
const n = t.length, r = n - 1;
|
|
@@ -1875,7 +1875,7 @@ function Fl(t, e) {
|
|
|
1875
1875
|
;
|
|
1876
1876
|
a = u - 1;
|
|
1877
1877
|
}
|
|
1878
|
-
const s =
|
|
1878
|
+
const s = ye(t[a], t[a + 1], o);
|
|
1879
1879
|
return e[a](s);
|
|
1880
1880
|
};
|
|
1881
1881
|
}
|
|
@@ -1885,10 +1885,10 @@ function Ui(t, e, { clamp: n = !0, ease: r, mixer: o } = {}) {
|
|
|
1885
1885
|
const i = Dl(e, r, o), s = a === 2 ? Nl(t, i) : Fl(t, i);
|
|
1886
1886
|
return n ? (u) => s(We(t[0], t[a - 1], u)) : s;
|
|
1887
1887
|
}
|
|
1888
|
-
const rn = (t) => (e) => 1 - t(1 - e),
|
|
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
1889
|
const e = Wi(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,
|
|
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) => {
|
|
1892
1892
|
if (t === 1 || t === 0)
|
|
1893
1893
|
return t;
|
|
1894
1894
|
const e = t * t;
|
|
@@ -1932,14 +1932,14 @@ function rc({ velocity: t = 0, from: e = 0, power: n = 0.8, timeConstant: r = 35
|
|
|
1932
1932
|
}
|
|
1933
1933
|
};
|
|
1934
1934
|
}
|
|
1935
|
-
const
|
|
1935
|
+
const Xr = { keyframes: Fe, spring: ar, decay: rc };
|
|
1936
1936
|
function oc(t) {
|
|
1937
1937
|
if (Array.isArray(t.to))
|
|
1938
1938
|
return Fe;
|
|
1939
|
-
if (
|
|
1940
|
-
return
|
|
1939
|
+
if (Xr[t.type])
|
|
1940
|
+
return Xr[t.type];
|
|
1941
1941
|
const e = new Set(Object.keys(t));
|
|
1942
|
-
return e.has("ease") || e.has("duration") && !e.has("dampingRatio") ? Fe : e.has("dampingRatio") || e.has("stiffness") || e.has("mass") || e.has("damping") || e.has("restSpeed") || e.has("restDelta") ?
|
|
1942
|
+
return e.has("ease") || e.has("duration") && !e.has("dampingRatio") ? Fe : e.has("dampingRatio") || e.has("stiffness") || e.has("mass") || e.has("damping") || e.has("restSpeed") || e.has("restDelta") ? ar : Fe;
|
|
1943
1943
|
}
|
|
1944
1944
|
const Ki = 1 / 60 * 1e3, ic = typeof performance < "u" ? () => performance.now() : () => Date.now(), Yi = typeof window < "u" ? (t) => window.requestAnimationFrame(t) : (t) => setTimeout(() => t(ic()), Ki);
|
|
1945
1945
|
function ac(t) {
|
|
@@ -1969,24 +1969,24 @@ function ac(t) {
|
|
|
1969
1969
|
return s;
|
|
1970
1970
|
}
|
|
1971
1971
|
const sc = 40;
|
|
1972
|
-
let
|
|
1973
|
-
const
|
|
1972
|
+
let kn = !0, Se = !1, $n = !1;
|
|
1973
|
+
const Xt = {
|
|
1974
1974
|
delta: 0,
|
|
1975
1975
|
timestamp: 0
|
|
1976
|
-
},
|
|
1976
|
+
}, Te = [
|
|
1977
1977
|
"read",
|
|
1978
1978
|
"update",
|
|
1979
1979
|
"preRender",
|
|
1980
1980
|
"render",
|
|
1981
1981
|
"postRender"
|
|
1982
|
-
], on =
|
|
1982
|
+
], on = Te.reduce((t, e) => (t[e] = ac(() => Se = !0), t), {}), Tt = Te.reduce((t, e) => {
|
|
1983
1983
|
const n = on[e];
|
|
1984
|
-
return t[e] = (r, o = !1, a = !1) => (
|
|
1985
|
-
}, {}),
|
|
1986
|
-
|
|
1984
|
+
return t[e] = (r, o = !1, a = !1) => (Se || lc(), n.schedule(r, o, a)), t;
|
|
1985
|
+
}, {}), Zt = Te.reduce((t, e) => (t[e] = on[e].cancel, t), {}), Sn = Te.reduce((t, e) => (t[e] = () => on[e].process(Xt), t), {}), uc = (t) => on[t].process(Xt), qi = (t) => {
|
|
1986
|
+
Se = !1, Xt.delta = kn ? Ki : Math.max(Math.min(t - Xt.timestamp, sc), 1), Xt.timestamp = t, $n = !0, Te.forEach(uc), $n = !1, Se && (kn = !1, Yi(qi));
|
|
1987
1987
|
}, lc = () => {
|
|
1988
|
-
|
|
1989
|
-
}, ze = () =>
|
|
1988
|
+
Se = !0, kn = !0, $n || Yi(qi);
|
|
1989
|
+
}, ze = () => Xt;
|
|
1990
1990
|
function Xi(t, e, n = 0) {
|
|
1991
1991
|
return t - e - n;
|
|
1992
1992
|
}
|
|
@@ -2000,17 +2000,17 @@ const dc = (t) => {
|
|
|
2000
2000
|
const e = ({ delta: n }) => t(n);
|
|
2001
2001
|
return {
|
|
2002
2002
|
start: () => Tt.update(e, !0),
|
|
2003
|
-
stop: () =>
|
|
2003
|
+
stop: () => Zt.update(e)
|
|
2004
2004
|
};
|
|
2005
2005
|
};
|
|
2006
2006
|
function Zi(t) {
|
|
2007
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,
|
|
2009
|
-
const
|
|
2010
|
-
!((n = (e =
|
|
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], {
|
|
2011
2011
|
clamp: !1
|
|
2012
2012
|
}), r = 0, y = 100);
|
|
2013
|
-
const V =
|
|
2013
|
+
const V = B(Object.assign(Object.assign({}, m), { from: r, to: y }));
|
|
2014
2014
|
function F() {
|
|
2015
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();
|
|
2016
2016
|
}
|
|
@@ -2020,9 +2020,9 @@ function Zi(t) {
|
|
|
2020
2020
|
function $(I) {
|
|
2021
2021
|
if (T || (I = -I), i += I, !x) {
|
|
2022
2022
|
const G = V.next(Math.max(0, i));
|
|
2023
|
-
|
|
2023
|
+
w = G.value, R && (w = R(w)), x = T ? G.done : i <= 0;
|
|
2024
2024
|
}
|
|
2025
|
-
v == null || v(
|
|
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
2028
|
c == null || c(), h = a($), h.start();
|
|
@@ -2047,9 +2047,9 @@ function vc({ from: t = 0, velocity: e = 0, min: n, max: r, power: o = 0.8, time
|
|
|
2047
2047
|
function h(g) {
|
|
2048
2048
|
v == null || v.stop(), v = Zi(Object.assign(Object.assign({}, g), {
|
|
2049
2049
|
driver: c,
|
|
2050
|
-
onUpdate: (
|
|
2050
|
+
onUpdate: (w) => {
|
|
2051
2051
|
var x;
|
|
2052
|
-
f == null || f(
|
|
2052
|
+
f == null || f(w), (x = g.onUpdate) === null || x === void 0 || x.call(g, w);
|
|
2053
2053
|
},
|
|
2054
2054
|
onComplete: d,
|
|
2055
2055
|
onStop: p
|
|
@@ -2063,10 +2063,10 @@ function vc({ from: t = 0, velocity: e = 0, min: n, max: r, power: o = 0.8, time
|
|
|
2063
2063
|
else {
|
|
2064
2064
|
let g = o * e + t;
|
|
2065
2065
|
typeof l < "u" && (g = l(g));
|
|
2066
|
-
const
|
|
2066
|
+
const w = y(g), x = w === n ? -1 : 1;
|
|
2067
2067
|
let T, R;
|
|
2068
|
-
const
|
|
2069
|
-
T = R, R = V, e = Ji(V - T, ze().delta), (x === 1 && V >
|
|
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 });
|
|
2070
2070
|
};
|
|
2071
2071
|
h({
|
|
2072
2072
|
type: "decay",
|
|
@@ -2076,19 +2076,19 @@ 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) ?
|
|
2079
|
+
onUpdate: m(g) ? B : void 0
|
|
2080
2080
|
});
|
|
2081
2081
|
}
|
|
2082
2082
|
return {
|
|
2083
2083
|
stop: () => v == null ? void 0 : v.stop()
|
|
2084
2084
|
};
|
|
2085
2085
|
}
|
|
2086
|
-
const
|
|
2086
|
+
const Un = (t) => t.hasOwnProperty("x") && t.hasOwnProperty("y"), Zr = (t) => Un(t) && t.hasOwnProperty("z"), Ae = (t, e) => Math.abs(t - e);
|
|
2087
2087
|
function Qi(t, e) {
|
|
2088
|
-
if (
|
|
2089
|
-
return
|
|
2090
|
-
if (
|
|
2091
|
-
const n =
|
|
2088
|
+
if (jn(t) && jn(e))
|
|
2089
|
+
return Ae(t, e);
|
|
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;
|
|
2092
2092
|
return Math.sqrt(Math.pow(n, 2) + Math.pow(r, 2) + Math.pow(o, 2));
|
|
2093
2093
|
}
|
|
2094
2094
|
}
|
|
@@ -2111,25 +2111,25 @@ function Sc(t, e, n, r) {
|
|
|
2111
2111
|
}
|
|
2112
2112
|
return e;
|
|
2113
2113
|
}
|
|
2114
|
-
const je = 11,
|
|
2114
|
+
const je = 11, Me = 1 / (je - 1);
|
|
2115
2115
|
function bc(t, e, n, r) {
|
|
2116
2116
|
if (t === e && n === r)
|
|
2117
|
-
return
|
|
2117
|
+
return ur;
|
|
2118
2118
|
const o = new Float32Array(je);
|
|
2119
2119
|
for (let i = 0; i < je; ++i)
|
|
2120
|
-
o[i] = Ge(i *
|
|
2120
|
+
o[i] = Ge(i * Me, 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 +=
|
|
2125
|
+
s += Me;
|
|
2126
2126
|
--u;
|
|
2127
|
-
const c = (i - o[u]) / (o[u + 1] - o[u]), f = s + c *
|
|
2128
|
-
return d >= yc ? Sc(i, f, t, n) : d === 0 ? f : hc(i, s, s +
|
|
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);
|
|
2129
2129
|
}
|
|
2130
2130
|
return (i) => i === 0 || i === 1 ? i : Ge(a(i), e, r);
|
|
2131
2131
|
}
|
|
2132
|
-
function
|
|
2132
|
+
function Pc(t) {
|
|
2133
2133
|
var e = t.onTap, n = t.onTapStart, r = t.onTapCancel, o = t.whileTap, a = t.visualElement, i = e || n || r || o, s = Z(!1), u = Z(null), l = {
|
|
2134
2134
|
passive: !(n || e || r || v)
|
|
2135
2135
|
};
|
|
@@ -2139,7 +2139,7 @@ function _c(t) {
|
|
|
2139
2139
|
}
|
|
2140
2140
|
function f() {
|
|
2141
2141
|
var m;
|
|
2142
|
-
return c(), s.current = !1, (m = a.animationState) === null || m === void 0 || m.setActive(z.Tap, !1), !
|
|
2142
|
+
return c(), s.current = !1, (m = a.animationState) === null || m === void 0 || m.setActive(z.Tap, !1), !Bi();
|
|
2143
2143
|
}
|
|
2144
2144
|
function d(m, y) {
|
|
2145
2145
|
f() && (Di(a.getInstance(), m.target) ? e == null || e(m, y) : r == null || r(m, y));
|
|
@@ -2149,30 +2149,30 @@ function _c(t) {
|
|
|
2149
2149
|
}
|
|
2150
2150
|
function v(m, y) {
|
|
2151
2151
|
var h;
|
|
2152
|
-
c(), !s.current && (s.current = !0, u.current = nn(
|
|
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));
|
|
2153
2153
|
}
|
|
2154
2154
|
Ue(a, "pointerdown", i ? v : void 0, l), Ni(c);
|
|
2155
2155
|
}
|
|
2156
|
-
var
|
|
2156
|
+
var Jr = /* @__PURE__ */ new Set();
|
|
2157
2157
|
function oa(t, e, n) {
|
|
2158
|
-
t ||
|
|
2158
|
+
t || Jr.has(e) || (console.warn(e), Jr.add(e));
|
|
2159
2159
|
}
|
|
2160
|
-
var
|
|
2160
|
+
var Wn = /* @__PURE__ */ new WeakMap(), bn = /* @__PURE__ */ new WeakMap(), wc = function(t) {
|
|
2161
2161
|
var e;
|
|
2162
|
-
(e =
|
|
2163
|
-
},
|
|
2164
|
-
t.forEach(
|
|
2162
|
+
(e = Wn.get(t.target)) === null || e === void 0 || e(t);
|
|
2163
|
+
}, _c = function(t) {
|
|
2164
|
+
t.forEach(wc);
|
|
2165
2165
|
};
|
|
2166
2166
|
function xc(t) {
|
|
2167
2167
|
var e = t.root, n = ht(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
|
-
return o[a] || (o[a] = new IntersectionObserver(
|
|
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
|
|
2175
|
-
|
|
2174
|
+
return Wn.set(t, n), r.observe(t), function() {
|
|
2175
|
+
Wn.delete(t), r.unobserve(t);
|
|
2176
2176
|
};
|
|
2177
2177
|
}
|
|
2178
2178
|
function Cc(t) {
|
|
@@ -2225,7 +2225,7 @@ var Nt = function(t) {
|
|
|
2225
2225
|
};
|
|
2226
2226
|
}, Ac = {
|
|
2227
2227
|
inView: Nt(Cc),
|
|
2228
|
-
tap: Nt(
|
|
2228
|
+
tap: Nt(Pc),
|
|
2229
2229
|
focus: Nt(cl),
|
|
2230
2230
|
hover: Nt(bl)
|
|
2231
2231
|
}, Mc = 0, Rc = function() {
|
|
@@ -2259,32 +2259,32 @@ function aa(t, e) {
|
|
|
2259
2259
|
}
|
|
2260
2260
|
var Ke = function(t) {
|
|
2261
2261
|
return t * 1e3;
|
|
2262
|
-
},
|
|
2263
|
-
linear:
|
|
2264
|
-
easeIn:
|
|
2262
|
+
}, Qr = {
|
|
2263
|
+
linear: ur,
|
|
2264
|
+
easeIn: lr,
|
|
2265
2265
|
easeInOut: zi,
|
|
2266
2266
|
easeOut: Hl,
|
|
2267
2267
|
circIn: Gi,
|
|
2268
2268
|
circInOut: zl,
|
|
2269
|
-
circOut:
|
|
2270
|
-
backIn:
|
|
2269
|
+
circOut: cr,
|
|
2270
|
+
backIn: fr,
|
|
2271
2271
|
backInOut: Kl,
|
|
2272
2272
|
backOut: Gl,
|
|
2273
2273
|
anticipate: Yl,
|
|
2274
2274
|
bounceIn: Jl,
|
|
2275
2275
|
bounceInOut: Ql,
|
|
2276
2276
|
bounceOut: He
|
|
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.");
|
|
2280
2280
|
var e = nt(t, 4), n = e[0], r = e[1], o = e[2], a = e[3];
|
|
2281
2281
|
return bc(n, r, o, a);
|
|
2282
2282
|
} else if (typeof t == "string")
|
|
2283
|
-
return vt(
|
|
2283
|
+
return vt(Qr[t] !== void 0, "Invalid easing type '".concat(t, "'")), Qr[t];
|
|
2284
2284
|
return t;
|
|
2285
|
-
},
|
|
2285
|
+
}, Oc = 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
2289
|
At.test(e) && // And it contains numbers and/or colors
|
|
2290
2290
|
!e.startsWith("url("));
|
|
@@ -2295,26 +2295,26 @@ var Ke = function(t) {
|
|
|
2295
2295
|
damping: 25,
|
|
2296
2296
|
restSpeed: 10
|
|
2297
2297
|
};
|
|
2298
|
-
},
|
|
2298
|
+
}, Re = function(t) {
|
|
2299
2299
|
return {
|
|
2300
2300
|
type: "spring",
|
|
2301
2301
|
stiffness: 550,
|
|
2302
2302
|
damping: t === 0 ? 2 * Math.sqrt(550) : 30,
|
|
2303
2303
|
restSpeed: 10
|
|
2304
2304
|
};
|
|
2305
|
-
},
|
|
2305
|
+
}, Pn = function() {
|
|
2306
2306
|
return {
|
|
2307
2307
|
type: "keyframes",
|
|
2308
2308
|
ease: "linear",
|
|
2309
2309
|
duration: 0.3
|
|
2310
2310
|
};
|
|
2311
|
-
},
|
|
2311
|
+
}, Bc = function(t) {
|
|
2312
2312
|
return {
|
|
2313
2313
|
type: "keyframes",
|
|
2314
2314
|
duration: 0.8,
|
|
2315
2315
|
values: t
|
|
2316
2316
|
};
|
|
2317
|
-
},
|
|
2317
|
+
}, no = {
|
|
2318
2318
|
x: jt,
|
|
2319
2319
|
y: jt,
|
|
2320
2320
|
z: jt,
|
|
@@ -2322,17 +2322,17 @@ var Ke = function(t) {
|
|
|
2322
2322
|
rotateX: jt,
|
|
2323
2323
|
rotateY: jt,
|
|
2324
2324
|
rotateZ: jt,
|
|
2325
|
-
scaleX:
|
|
2326
|
-
scaleY:
|
|
2327
|
-
scale:
|
|
2328
|
-
opacity:
|
|
2329
|
-
backgroundColor:
|
|
2330
|
-
color:
|
|
2331
|
-
default:
|
|
2325
|
+
scaleX: Re,
|
|
2326
|
+
scaleY: Re,
|
|
2327
|
+
scale: Re,
|
|
2328
|
+
opacity: Pn,
|
|
2329
|
+
backgroundColor: Pn,
|
|
2330
|
+
color: Pn,
|
|
2331
|
+
default: Re
|
|
2332
2332
|
}, Dc = function(t, e) {
|
|
2333
2333
|
var n;
|
|
2334
|
-
return
|
|
2335
|
-
}, Nc =
|
|
2334
|
+
return ge(e) ? n = Bc : n = no[t] || no.default, b({ to: e }, n(e));
|
|
2335
|
+
}, Nc = b(b({}, yi), {
|
|
2336
2336
|
// Color props
|
|
2337
2337
|
color: ct,
|
|
2338
2338
|
backgroundColor: ct,
|
|
@@ -2345,27 +2345,27 @@ var Ke = function(t) {
|
|
|
2345
2345
|
borderRightColor: ct,
|
|
2346
2346
|
borderBottomColor: ct,
|
|
2347
2347
|
borderLeftColor: ct,
|
|
2348
|
-
filter:
|
|
2349
|
-
WebkitFilter:
|
|
2350
|
-
}),
|
|
2348
|
+
filter: Dn,
|
|
2349
|
+
WebkitFilter: Dn
|
|
2350
|
+
}), dr = function(t) {
|
|
2351
2351
|
return Nc[t];
|
|
2352
2352
|
};
|
|
2353
|
-
function
|
|
2354
|
-
var n, r =
|
|
2355
|
-
return r !==
|
|
2353
|
+
function vr(t, e) {
|
|
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);
|
|
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
2359
|
var e = ht(t, ["when", "delay", "delayChildren", "staggerChildren", "staggerDirection", "repeat", "repeatType", "repeatDelay", "from"]);
|
|
2360
2360
|
return !!Object.keys(e).length;
|
|
2361
2361
|
}
|
|
2362
|
-
var
|
|
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 =
|
|
2365
|
-
return n && (s.offset = n), i.duration && (s.duration = Ke(i.duration)), i.repeatDelay && (s.repeatDelay = Ke(i.repeatDelay)), e && (s.ease =
|
|
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);
|
|
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) {
|
|
2368
|
-
var n, r, o =
|
|
2368
|
+
var n, r, o = pr(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) {
|
|
@@ -2373,13 +2373,13 @@ function $c(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 =
|
|
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));
|
|
2377
2377
|
}
|
|
2378
2378
|
function Wc(t, e, n, r, o) {
|
|
2379
|
-
var a, i =
|
|
2380
|
-
s === "none" && u && typeof n == "string" ? s =
|
|
2381
|
-
var l =
|
|
2382
|
-
|
|
2379
|
+
var a, i = pr(r, t), s = (a = i.from) !== null && a !== void 0 ? a : e.get(), u = eo(t, n);
|
|
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
|
+
var l = eo(t, s);
|
|
2382
|
+
be(l === u, "You are trying to animate ".concat(t, ' from "').concat(s, '" to "').concat(n, '". ').concat(s, " is not an animatable value - to enable this animation set ").concat(s, " to a value animatable to ").concat(n, " via the `style` property."));
|
|
2383
2383
|
function c() {
|
|
2384
2384
|
var d = {
|
|
2385
2385
|
from: s,
|
|
@@ -2390,7 +2390,7 @@ function Wc(t, e, n, r, o) {
|
|
|
2390
2390
|
return e.set(p);
|
|
2391
2391
|
}
|
|
2392
2392
|
};
|
|
2393
|
-
return i.type === "inertia" || i.type === "decay" ? vc(
|
|
2393
|
+
return i.type === "inertia" || i.type === "decay" ? vc(b(b({}, d), i)) : Zi(b(b({}, Uc(i, d, t)), { onUpdate: function(p) {
|
|
2394
2394
|
var v;
|
|
2395
2395
|
d.onUpdate(p), (v = i.onUpdate) === null || v === void 0 || v.call(i, p);
|
|
2396
2396
|
}, onComplete: function() {
|
|
@@ -2405,16 +2405,16 @@ function Wc(t, e, n, r, o) {
|
|
|
2405
2405
|
}
|
|
2406
2406
|
return !l || !u || i.type === !1 ? f : c;
|
|
2407
2407
|
}
|
|
2408
|
-
function
|
|
2408
|
+
function oo(t) {
|
|
2409
2409
|
return t === 0 || typeof t == "string" && parseFloat(t) === 0 && t.indexOf(" ") === -1;
|
|
2410
2410
|
}
|
|
2411
|
-
function
|
|
2412
|
-
return typeof t == "number" ? 0 :
|
|
2411
|
+
function io(t) {
|
|
2412
|
+
return typeof t == "number" ? 0 : vr("", t);
|
|
2413
2413
|
}
|
|
2414
|
-
function
|
|
2414
|
+
function pr(t, e) {
|
|
2415
2415
|
return t[e] || t.default || t;
|
|
2416
2416
|
}
|
|
2417
|
-
function
|
|
2417
|
+
function mr(t, e, n, r) {
|
|
2418
2418
|
return r === void 0 && (r = {}), e.start(function(o) {
|
|
2419
2419
|
var a, i, s = Wc(t, e, n, r, o), u = kc(r, t), l = function() {
|
|
2420
2420
|
return i = s();
|
|
@@ -2429,14 +2429,14 @@ var Hc = function(t) {
|
|
|
2429
2429
|
}, zc = function(t) {
|
|
2430
2430
|
return /^0[^.\s]+$/.test(t);
|
|
2431
2431
|
};
|
|
2432
|
-
function
|
|
2432
|
+
function hr(t, e) {
|
|
2433
2433
|
t.indexOf(e) === -1 && t.push(e);
|
|
2434
2434
|
}
|
|
2435
|
-
function
|
|
2435
|
+
function gr(t, e) {
|
|
2436
2436
|
var n = t.indexOf(e);
|
|
2437
2437
|
n > -1 && t.splice(n, 1);
|
|
2438
2438
|
}
|
|
2439
|
-
var
|
|
2439
|
+
var ue = (
|
|
2440
2440
|
/** @class */
|
|
2441
2441
|
function() {
|
|
2442
2442
|
function t() {
|
|
@@ -2444,8 +2444,8 @@ var le = (
|
|
|
2444
2444
|
}
|
|
2445
2445
|
return t.prototype.add = function(e) {
|
|
2446
2446
|
var n = this;
|
|
2447
|
-
return
|
|
2448
|
-
return
|
|
2447
|
+
return hr(this.subscriptions, e), function() {
|
|
2448
|
+
return gr(n.subscriptions, e);
|
|
2449
2449
|
};
|
|
2450
2450
|
}, t.prototype.notify = function(e, n, r) {
|
|
2451
2451
|
var o = this.subscriptions.length;
|
|
@@ -2470,7 +2470,7 @@ var le = (
|
|
|
2470
2470
|
function() {
|
|
2471
2471
|
function t(e) {
|
|
2472
2472
|
var n = this;
|
|
2473
|
-
this.version = "6.5.1", this.timeDelta = 0, this.lastUpdated = 0, this.updateSubscribers = new
|
|
2473
|
+
this.version = "6.5.1", this.timeDelta = 0, this.lastUpdated = 0, this.updateSubscribers = new ue(), this.velocityUpdateSubscribers = new ue(), this.renderSubscribers = new ue(), this.canTrackVelocity = !1, this.updateAndNotify = function(r, o) {
|
|
2474
2474
|
o === void 0 && (o = !0), n.prev = n.current, n.current = r;
|
|
2475
2475
|
var a = ze(), i = a.delta, s = a.timestamp;
|
|
2476
2476
|
n.lastUpdated !== s && (n.timeDelta = i, n.lastUpdated = s, Tt.postRender(n.scheduleVelocityCheck)), n.prev !== n.current && n.updateSubscribers.notify(n.current), n.velocityUpdateSubscribers.getSize() && n.velocityUpdateSubscribers.notify(n.getVelocity()), o && n.renderSubscribers.notify(n.current);
|
|
@@ -2518,7 +2518,7 @@ var le = (
|
|
|
2518
2518
|
}, t;
|
|
2519
2519
|
}()
|
|
2520
2520
|
);
|
|
2521
|
-
function
|
|
2521
|
+
function Jt(t) {
|
|
2522
2522
|
return new Kc(t);
|
|
2523
2523
|
}
|
|
2524
2524
|
var sa = function(t) {
|
|
@@ -2532,39 +2532,39 @@ var sa = function(t) {
|
|
|
2532
2532
|
parse: function(t) {
|
|
2533
2533
|
return t;
|
|
2534
2534
|
}
|
|
2535
|
-
}, ua = [
|
|
2535
|
+
}, ua = [Ht, A, xt, Lt, Nu, Du, Yc], re = function(t) {
|
|
2536
2536
|
return ua.find(sa(t));
|
|
2537
2537
|
}, qc = mt(mt([], nt(ua), !1), [ct, At], !1), Xc = function(t) {
|
|
2538
2538
|
return qc.find(sa(t));
|
|
2539
2539
|
};
|
|
2540
2540
|
function Zc(t, e, n) {
|
|
2541
|
-
t.hasValue(e) ? t.getValue(e).set(n) : t.addValue(e,
|
|
2541
|
+
t.hasValue(e) ? t.getValue(e).set(n) : t.addValue(e, Jt(n));
|
|
2542
2542
|
}
|
|
2543
|
-
function
|
|
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
2546
|
var i = ht(r, ["transitionEnd", "transition"]);
|
|
2547
|
-
i =
|
|
2547
|
+
i = b(b({}, i), a);
|
|
2548
2548
|
for (var s in i) {
|
|
2549
2549
|
var u = Ei(i[s]);
|
|
2550
2550
|
Zc(t, s, u);
|
|
2551
2551
|
}
|
|
2552
2552
|
}
|
|
2553
|
-
function
|
|
2553
|
+
function Hn(t, e) {
|
|
2554
2554
|
var n = mt([], nt(e), !1).reverse();
|
|
2555
2555
|
n.forEach(function(r) {
|
|
2556
2556
|
var o, a = t.getVariant(r);
|
|
2557
|
-
a &&
|
|
2558
|
-
|
|
2557
|
+
a && yr(t, a), (o = t.variantChildren) === null || o === void 0 || o.forEach(function(i) {
|
|
2558
|
+
Hn(i, e);
|
|
2559
2559
|
});
|
|
2560
2560
|
});
|
|
2561
2561
|
}
|
|
2562
2562
|
function Jc(t, e) {
|
|
2563
2563
|
if (Array.isArray(e))
|
|
2564
|
-
return
|
|
2564
|
+
return Hn(t, e);
|
|
2565
2565
|
if (typeof e == "string")
|
|
2566
|
-
return
|
|
2567
|
-
|
|
2566
|
+
return Hn(t, [e]);
|
|
2567
|
+
yr(t, e);
|
|
2568
2568
|
}
|
|
2569
2569
|
function Qc(t, e, n) {
|
|
2570
2570
|
var r, o, a, i, s = Object.keys(e).filter(function(p) {
|
|
@@ -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 =
|
|
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));
|
|
2577
2577
|
}
|
|
2578
2578
|
}
|
|
2579
2579
|
function tf(t, e) {
|
|
@@ -2593,11 +2593,11 @@ function la(t, e, n) {
|
|
|
2593
2593
|
var r;
|
|
2594
2594
|
if (Array.isArray(e)) {
|
|
2595
2595
|
var o = e.map(function(i) {
|
|
2596
|
-
return
|
|
2596
|
+
return zn(t, i, n);
|
|
2597
2597
|
});
|
|
2598
2598
|
r = Promise.all(o);
|
|
2599
2599
|
} else if (typeof e == "string")
|
|
2600
|
-
r =
|
|
2600
|
+
r = zn(t, e, n);
|
|
2601
2601
|
else {
|
|
2602
2602
|
var a = typeof e == "function" ? Qe(t, e, n.custom) : e;
|
|
2603
2603
|
r = ca(t, a, n);
|
|
@@ -2606,7 +2606,7 @@ function la(t, e, n) {
|
|
|
2606
2606
|
return t.notifyAnimationComplete(e);
|
|
2607
2607
|
});
|
|
2608
2608
|
}
|
|
2609
|
-
function
|
|
2609
|
+
function zn(t, e, n) {
|
|
2610
2610
|
var r;
|
|
2611
2611
|
n === void 0 && (n = {});
|
|
2612
2612
|
var o = Qe(t, e, n.custom), a = (o || {}).transition, i = a === void 0 ? t.getDefaultTransition() || {} : a;
|
|
@@ -2635,14 +2635,14 @@ function ca(t, e, n) {
|
|
|
2635
2635
|
for (var y in p) {
|
|
2636
2636
|
var h = t.getValue(y), S = p[y];
|
|
2637
2637
|
if (!(!h || S === void 0 || m && af(m, y))) {
|
|
2638
|
-
var g =
|
|
2639
|
-
t.shouldReduceMotion && we(y) && (g =
|
|
2640
|
-
var
|
|
2641
|
-
v.push(
|
|
2638
|
+
var g = b({ delay: i }, f);
|
|
2639
|
+
t.shouldReduceMotion && we(y) && (g = b(b({}, g), { type: !1, delay: 0 }));
|
|
2640
|
+
var w = mr(y, h, S, g);
|
|
2641
|
+
v.push(w);
|
|
2642
2642
|
}
|
|
2643
2643
|
}
|
|
2644
2644
|
return Promise.all(v).then(function() {
|
|
2645
|
-
d &&
|
|
2645
|
+
d && yr(t, d);
|
|
2646
2646
|
});
|
|
2647
2647
|
}
|
|
2648
2648
|
function nf(t, e, n, r, o, a) {
|
|
@@ -2653,7 +2653,7 @@ function nf(t, e, n, r, o, a) {
|
|
|
2653
2653
|
return l === void 0 && (l = 0), s - l * r;
|
|
2654
2654
|
};
|
|
2655
2655
|
return Array.from(t.variantChildren).sort(of).forEach(function(l, c) {
|
|
2656
|
-
i.push(
|
|
2656
|
+
i.push(zn(l, e, b(b({}, a), { delay: n + u(c) })).then(function() {
|
|
2657
2657
|
return l.notifyAnimationComplete(e);
|
|
2658
2658
|
}));
|
|
2659
2659
|
}), Promise.all(i);
|
|
@@ -2670,7 +2670,7 @@ function af(t, e) {
|
|
|
2670
2670
|
var n = t.protectedKeys, r = t.needsAnimating, o = n.hasOwnProperty(e) && r[e] !== !0;
|
|
2671
2671
|
return r[e] = !1, o;
|
|
2672
2672
|
}
|
|
2673
|
-
var
|
|
2673
|
+
var Sr = [
|
|
2674
2674
|
z.Animate,
|
|
2675
2675
|
z.InView,
|
|
2676
2676
|
z.Focus,
|
|
@@ -2678,7 +2678,7 @@ var yr = [
|
|
|
2678
2678
|
z.Tap,
|
|
2679
2679
|
z.Drag,
|
|
2680
2680
|
z.Exit
|
|
2681
|
-
], sf = mt([], nt(
|
|
2681
|
+
], sf = mt([], 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) {
|
|
@@ -2693,7 +2693,7 @@ function cf(t) {
|
|
|
2693
2693
|
if (d) {
|
|
2694
2694
|
d.transition;
|
|
2695
2695
|
var p = d.transitionEnd, v = ht(d, ["transition", "transitionEnd"]);
|
|
2696
|
-
c =
|
|
2696
|
+
c = b(b(b({}, c), v), p);
|
|
2697
2697
|
}
|
|
2698
2698
|
return c;
|
|
2699
2699
|
};
|
|
@@ -2705,38 +2705,38 @@ function cf(t) {
|
|
|
2705
2705
|
}
|
|
2706
2706
|
function u(c, f) {
|
|
2707
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
|
|
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;
|
|
2709
2709
|
$ === !1 && (S = R);
|
|
2710
|
-
var j = F === v[
|
|
2711
|
-
if (j && o && t.manuallyAnimateOnMount && (j = !1), V.protectedKeys =
|
|
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
2712
|
!V.isActive && $ === null || // If we didn't and don't have any defined prop for this animation type
|
|
2713
2713
|
!F && !V.prevProp || // Or if the prop doesn't define an animation
|
|
2714
|
-
|
|
2714
|
+
or(F) || typeof F == "boolean")
|
|
2715
2715
|
return "continue";
|
|
2716
2716
|
var I = ff(V.prevProp, F), G = I || // If we're making this variant active, we want to always make it active
|
|
2717
|
-
|
|
2717
|
+
B === f && V.isActive && !j && J || // If we removed a higher-priority variant (i is in reverse order)
|
|
2718
2718
|
R > S && J, Q = Array.isArray(F) ? F : [F], M = Q.reduce(a, {});
|
|
2719
2719
|
$ === !1 && (M = {});
|
|
2720
|
-
var it = V.prevResolvedValues, at = it === void 0 ? {} : it, ut =
|
|
2720
|
+
var it = V.prevResolvedValues, at = it === void 0 ? {} : it, ut = b(b({}, at), M), U = function(C) {
|
|
2721
2721
|
G = !0, y.delete(C), V.needsAnimating[C] = !0;
|
|
2722
2722
|
};
|
|
2723
2723
|
for (var X in ut) {
|
|
2724
|
-
var D = M[X],
|
|
2725
|
-
h.hasOwnProperty(X) || (D !==
|
|
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);
|
|
2726
2726
|
}
|
|
2727
|
-
V.prevProp = F, V.prevResolvedValues = M, V.isActive && (h =
|
|
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) {
|
|
2728
2728
|
return {
|
|
2729
2729
|
animation: C,
|
|
2730
|
-
options:
|
|
2730
|
+
options: b({ type: B }, c)
|
|
2731
2731
|
};
|
|
2732
2732
|
})), !1));
|
|
2733
|
-
},
|
|
2734
|
-
g(
|
|
2735
|
-
if (r =
|
|
2733
|
+
}, w = 0; w < uf; w++)
|
|
2734
|
+
g(w);
|
|
2735
|
+
if (r = b({}, h), y.size) {
|
|
2736
2736
|
var x = {};
|
|
2737
2737
|
y.forEach(function(R) {
|
|
2738
|
-
var
|
|
2739
|
-
|
|
2738
|
+
var B = t.getBaseTarget(R);
|
|
2739
|
+
B !== void 0 && (x[R] = B);
|
|
2740
2740
|
}), m.push({ animation: x });
|
|
2741
2741
|
}
|
|
2742
2742
|
var T = !!m.length;
|
|
@@ -2783,7 +2783,7 @@ function df() {
|
|
|
2783
2783
|
var vf = {
|
|
2784
2784
|
animation: Nt(function(t) {
|
|
2785
2785
|
var e = t.visualElement, n = t.animate;
|
|
2786
|
-
e.animationState || (e.animationState = cf(e)),
|
|
2786
|
+
e.animationState || (e.animationState = cf(e)), or(n) && k(function() {
|
|
2787
2787
|
return n.subscribe(e);
|
|
2788
2788
|
}, [n]);
|
|
2789
2789
|
}),
|
|
@@ -2803,51 +2803,51 @@ var vf = {
|
|
|
2803
2803
|
var o = this, a = r === void 0 ? {} : r, i = a.transformPagePoint;
|
|
2804
2804
|
if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.handlers = {}, this.updatePoint = function() {
|
|
2805
2805
|
if (o.lastMoveEvent && o.lastMoveEventInfo) {
|
|
2806
|
-
var d =
|
|
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
2808
|
var m = d.point, y = ze().timestamp;
|
|
2809
|
-
o.history.push(
|
|
2809
|
+
o.history.push(b(b({}, m), { timestamp: y }));
|
|
2810
2810
|
var h = o.handlers, S = h.onStart, g = h.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 =
|
|
2815
|
+
if (o.lastMoveEvent = d, o.lastMoveEventInfo = wn(p, o.transformPagePoint), Ii(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 = wn(
|
|
2822
|
+
var v = o.handlers, m = v.onEnd, y = v.onSessionEnd, h = _n(wn(p, o.transformPagePoint), o.history);
|
|
2823
2823
|
o.startEvent && m && m(d, h), y && y(d, h);
|
|
2824
2824
|
}, !(Ai(e) && e.touches.length > 1)) {
|
|
2825
2825
|
this.handlers = n, this.transformPagePoint = i;
|
|
2826
|
-
var s =
|
|
2827
|
-
this.history = [
|
|
2826
|
+
var s = ir(e), u = wn(s, this.transformPagePoint), l = u.point, c = ze().timestamp;
|
|
2827
|
+
this.history = [b(b({}, l), { timestamp: c })];
|
|
2828
2828
|
var f = n.onSessionStart;
|
|
2829
|
-
f && f(e,
|
|
2829
|
+
f && f(e, _n(u, this.history)), this.removeListeners = nn(qt(window, "pointermove", this.handlePointerMove), qt(window, "pointerup", this.handlePointerUp), qt(window, "pointercancel", this.handlePointerUp));
|
|
2830
2830
|
}
|
|
2831
2831
|
}
|
|
2832
2832
|
return t.prototype.updateHandlers = function(e) {
|
|
2833
2833
|
this.handlers = e;
|
|
2834
2834
|
}, t.prototype.end = function() {
|
|
2835
|
-
this.removeListeners && this.removeListeners(),
|
|
2835
|
+
this.removeListeners && this.removeListeners(), Zt.update(this.updatePoint);
|
|
2836
2836
|
}, t;
|
|
2837
2837
|
}()
|
|
2838
2838
|
);
|
|
2839
|
-
function
|
|
2839
|
+
function wn(t, e) {
|
|
2840
2840
|
return e ? { point: e(t.point) } : t;
|
|
2841
2841
|
}
|
|
2842
|
-
function
|
|
2842
|
+
function ao(t, e) {
|
|
2843
2843
|
return { x: t.x - e.x, y: t.y - e.y };
|
|
2844
2844
|
}
|
|
2845
|
-
function
|
|
2845
|
+
function _n(t, e) {
|
|
2846
2846
|
var n = t.point;
|
|
2847
2847
|
return {
|
|
2848
2848
|
point: n,
|
|
2849
|
-
delta:
|
|
2850
|
-
offset:
|
|
2849
|
+
delta: ao(n, da(e)),
|
|
2850
|
+
offset: ao(n, pf(e)),
|
|
2851
2851
|
velocity: mf(e, 0.1)
|
|
2852
2852
|
};
|
|
2853
2853
|
}
|
|
@@ -2876,32 +2876,32 @@ function mf(t, e) {
|
|
|
2876
2876
|
function Mt(t) {
|
|
2877
2877
|
return t.max - t.min;
|
|
2878
2878
|
}
|
|
2879
|
-
function
|
|
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
|
-
function
|
|
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), (
|
|
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);
|
|
2884
2884
|
}
|
|
2885
|
-
function
|
|
2886
|
-
|
|
2885
|
+
function le(t, e, n, r) {
|
|
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
|
-
function
|
|
2888
|
+
function lo(t, e, n) {
|
|
2889
2889
|
t.min = n.min + e.min, t.max = t.min + Mt(e);
|
|
2890
2890
|
}
|
|
2891
2891
|
function hf(t, e, n) {
|
|
2892
|
-
|
|
2892
|
+
lo(t.x, e.x, n.x), lo(t.y, e.y, n.y);
|
|
2893
2893
|
}
|
|
2894
|
-
function
|
|
2894
|
+
function co(t, e, n) {
|
|
2895
2895
|
t.min = e.min - n.min, t.max = t.min + Mt(e);
|
|
2896
2896
|
}
|
|
2897
|
-
function
|
|
2898
|
-
|
|
2897
|
+
function ce(t, e, n) {
|
|
2898
|
+
co(t.x, e.x, n.x), co(t.y, e.y, n.y);
|
|
2899
2899
|
}
|
|
2900
2900
|
function gf(t, e, n) {
|
|
2901
2901
|
var r = e.min, o = e.max;
|
|
2902
2902
|
return r !== void 0 && t < r ? t = n ? tt(r, t, n.min) : Math.max(t, r) : o !== void 0 && t > o && (t = n ? tt(o, t, n.max) : Math.min(t, o)), t;
|
|
2903
2903
|
}
|
|
2904
|
-
function
|
|
2904
|
+
function fo(t, e, n) {
|
|
2905
2905
|
return {
|
|
2906
2906
|
min: e !== void 0 ? t.min + e : void 0,
|
|
2907
2907
|
max: n !== void 0 ? t.max + n - (t.max - t.min) : void 0
|
|
@@ -2910,66 +2910,66 @@ function co(t, e, n) {
|
|
|
2910
2910
|
function yf(t, e) {
|
|
2911
2911
|
var n = e.top, r = e.left, o = e.bottom, a = e.right;
|
|
2912
2912
|
return {
|
|
2913
|
-
x:
|
|
2914
|
-
y:
|
|
2913
|
+
x: fo(t.x, r, a),
|
|
2914
|
+
y: fo(t.y, n, o)
|
|
2915
2915
|
};
|
|
2916
2916
|
}
|
|
2917
|
-
function
|
|
2917
|
+
function vo(t, e) {
|
|
2918
2918
|
var n, r = e.min - t.min, o = e.max - t.max;
|
|
2919
2919
|
return e.max - e.min < t.max - t.min && (n = nt([o, r], 2), r = n[0], o = n[1]), { min: r, max: o };
|
|
2920
2920
|
}
|
|
2921
2921
|
function Sf(t, e) {
|
|
2922
2922
|
return {
|
|
2923
|
-
x:
|
|
2924
|
-
y:
|
|
2923
|
+
x: vo(t.x, e.x),
|
|
2924
|
+
y: vo(t.y, e.y)
|
|
2925
2925
|
};
|
|
2926
2926
|
}
|
|
2927
2927
|
function bf(t, e) {
|
|
2928
2928
|
var n = 0.5, r = Mt(t), o = Mt(e);
|
|
2929
|
-
return o > r ? n =
|
|
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);
|
|
2930
2930
|
}
|
|
2931
|
-
function
|
|
2931
|
+
function Pf(t, e) {
|
|
2932
2932
|
var n = {};
|
|
2933
2933
|
return e.min !== void 0 && (n.min = e.min - t.min), e.max !== void 0 && (n.max = e.max - t.min), n;
|
|
2934
2934
|
}
|
|
2935
|
-
var
|
|
2936
|
-
function
|
|
2937
|
-
return t === void 0 && (t =
|
|
2938
|
-
x:
|
|
2939
|
-
y:
|
|
2935
|
+
var Gn = 0.35;
|
|
2936
|
+
function wf(t) {
|
|
2937
|
+
return t === void 0 && (t = Gn), t === !1 ? t = 0 : t === !0 && (t = Gn), {
|
|
2938
|
+
x: po(t, "left", "right"),
|
|
2939
|
+
y: po(t, "top", "bottom")
|
|
2940
2940
|
};
|
|
2941
2941
|
}
|
|
2942
|
-
function
|
|
2942
|
+
function po(t, e, n) {
|
|
2943
2943
|
return {
|
|
2944
|
-
min:
|
|
2945
|
-
max:
|
|
2944
|
+
min: mo(t, e),
|
|
2945
|
+
max: mo(t, n)
|
|
2946
2946
|
};
|
|
2947
2947
|
}
|
|
2948
|
-
function
|
|
2948
|
+
function mo(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
|
|
2952
|
+
var ho = function() {
|
|
2953
2953
|
return {
|
|
2954
2954
|
translate: 0,
|
|
2955
2955
|
scale: 1,
|
|
2956
2956
|
origin: 0,
|
|
2957
2957
|
originPoint: 0
|
|
2958
2958
|
};
|
|
2959
|
-
},
|
|
2959
|
+
}, fe = function() {
|
|
2960
2960
|
return {
|
|
2961
|
-
x:
|
|
2962
|
-
y:
|
|
2961
|
+
x: ho(),
|
|
2962
|
+
y: ho()
|
|
2963
2963
|
};
|
|
2964
|
-
},
|
|
2964
|
+
}, go = function() {
|
|
2965
2965
|
return { min: 0, max: 0 };
|
|
2966
2966
|
}, lt = function() {
|
|
2967
2967
|
return {
|
|
2968
|
-
x:
|
|
2969
|
-
y:
|
|
2968
|
+
x: go(),
|
|
2969
|
+
y: go()
|
|
2970
2970
|
};
|
|
2971
2971
|
};
|
|
2972
|
-
function
|
|
2972
|
+
function _t(t) {
|
|
2973
2973
|
return [t("x"), t("y")];
|
|
2974
2974
|
}
|
|
2975
2975
|
function va(t) {
|
|
@@ -2979,7 +2979,7 @@ function va(t) {
|
|
|
2979
2979
|
y: { min: e, max: o }
|
|
2980
2980
|
};
|
|
2981
2981
|
}
|
|
2982
|
-
function
|
|
2982
|
+
function _f(t) {
|
|
2983
2983
|
var e = t.x, n = t.y;
|
|
2984
2984
|
return { top: n.min, right: e.max, bottom: n.max, left: e.min };
|
|
2985
2985
|
}
|
|
@@ -3001,25 +3001,25 @@ function pa(t) {
|
|
|
3001
3001
|
var e = t.scale, n = t.scaleX, r = t.scaleY;
|
|
3002
3002
|
return !xn(e) || !xn(n) || !xn(r);
|
|
3003
3003
|
}
|
|
3004
|
-
function
|
|
3005
|
-
return pa(t) ||
|
|
3004
|
+
function Ot(t) {
|
|
3005
|
+
return pa(t) || yo(t.x) || yo(t.y) || t.z || t.rotate || t.rotateX || t.rotateY;
|
|
3006
3006
|
}
|
|
3007
|
-
function
|
|
3007
|
+
function yo(t) {
|
|
3008
3008
|
return t && t !== "0%";
|
|
3009
3009
|
}
|
|
3010
3010
|
function Ye(t, e, n) {
|
|
3011
3011
|
var r = t - n, o = e * r;
|
|
3012
3012
|
return n + o;
|
|
3013
3013
|
}
|
|
3014
|
-
function
|
|
3014
|
+
function So(t, e, n, r, o) {
|
|
3015
3015
|
return o !== void 0 && (t = Ye(t, o, r)), Ye(t, n, r) + e;
|
|
3016
3016
|
}
|
|
3017
|
-
function
|
|
3018
|
-
e === void 0 && (e = 0), n === void 0 && (n = 1), t.min =
|
|
3017
|
+
function Kn(t, e, n, r, o) {
|
|
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
3020
|
function ma(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
|
}
|
|
3024
3024
|
function Tf(t, e, n, r) {
|
|
3025
3025
|
var o, a;
|
|
@@ -3028,26 +3028,26 @@ 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 &&
|
|
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));
|
|
3032
3032
|
}
|
|
3033
3033
|
}
|
|
3034
|
-
function
|
|
3034
|
+
function Bt(t, e) {
|
|
3035
3035
|
t.min = t.min + e, t.max = t.max + e;
|
|
3036
3036
|
}
|
|
3037
|
-
function
|
|
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
3041
|
var Cf = ["x", "scaleX", "originX"], Ef = ["y", "scaleY", "originY"];
|
|
3042
|
-
function
|
|
3043
|
-
|
|
3042
|
+
function Yt(t, e) {
|
|
3043
|
+
bo(t.x, e, Cf), bo(t.y, e, Ef);
|
|
3044
3044
|
}
|
|
3045
3045
|
function ha(t, e) {
|
|
3046
3046
|
return va(xf(t.getBoundingClientRect(), e));
|
|
3047
3047
|
}
|
|
3048
3048
|
function Vf(t, e, n) {
|
|
3049
3049
|
var r = ha(t, n), o = e.scroll;
|
|
3050
|
-
return o && (
|
|
3050
|
+
return o && (Bt(r.x, o.x), Bt(r.y, o.y)), r;
|
|
3051
3051
|
}
|
|
3052
3052
|
var If = /* @__PURE__ */ new WeakMap(), Af = (
|
|
3053
3053
|
/** @class */
|
|
@@ -3059,13 +3059,13 @@ var If = /* @__PURE__ */ new WeakMap(), Af = (
|
|
|
3059
3059
|
var r = this, o = n === void 0 ? {} : n, a = o.snapToCursor, i = a === void 0 ? !1 : a;
|
|
3060
3060
|
if (this.visualElement.isPresent !== !1) {
|
|
3061
3061
|
var s = function(f) {
|
|
3062
|
-
r.stopAnimation(), i && r.snapToCursor(
|
|
3062
|
+
r.stopAnimation(), i && r.snapToCursor(ir(f, "page").point);
|
|
3063
3063
|
}, u = function(f, d) {
|
|
3064
3064
|
var p, v = r.getProps(), m = v.drag, y = v.dragPropagation, h = v.onDragStart;
|
|
3065
|
-
m && !y && (r.openGlobalLock && r.openGlobalLock(), r.openGlobalLock =
|
|
3066
|
-
var g,
|
|
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) {
|
|
3066
|
+
var g, w, x = r.getAxisMotionValue(S).get() || 0;
|
|
3067
3067
|
if (xt.test(x)) {
|
|
3068
|
-
var T = (
|
|
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
3070
|
var R = Mt(T);
|
|
3071
3071
|
x = R * (parseFloat(x) / 100);
|
|
@@ -3108,18 +3108,18 @@ var If = /* @__PURE__ */ new WeakMap(), Af = (
|
|
|
3108
3108
|
!r && this.openGlobalLock && (this.openGlobalLock(), this.openGlobalLock = null), (n = this.visualElement.animationState) === null || n === void 0 || n.setActive(z.Drag, !1);
|
|
3109
3109
|
}, t.prototype.updateAxis = function(e, n, r) {
|
|
3110
3110
|
var o = this.getProps().drag;
|
|
3111
|
-
if (!(!r || !
|
|
3111
|
+
if (!(!r || !Le(e, o, this.currentDirection))) {
|
|
3112
3112
|
var a = this.getAxisMotionValue(e), i = this.originPoint[e] + r[e];
|
|
3113
3113
|
this.constraints && this.constraints[e] && (i = gf(i, this.constraints[e], this.elastic[e])), a.set(i);
|
|
3114
3114
|
}
|
|
3115
3115
|
}, t.prototype.resolveConstraints = function() {
|
|
3116
3116
|
var e = this, n = this.getProps(), r = n.dragConstraints, o = n.dragElastic, a = (this.visualElement.projection || {}).layout, i = this.constraints;
|
|
3117
|
-
r &&
|
|
3118
|
-
e.getAxisMotionValue(s) && (e.constraints[s] =
|
|
3117
|
+
r && Kt(r) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : r && a ? this.constraints = yf(a.actual, r) : this.constraints = !1, this.elastic = wf(o), i !== this.constraints && a && this.constraints && !this.hasMutatedConstraints && _t(function(s) {
|
|
3118
|
+
e.getAxisMotionValue(s) && (e.constraints[s] = Pf(a.actual[s], e.constraints[s]));
|
|
3119
3119
|
});
|
|
3120
3120
|
}, t.prototype.resolveRefConstraints = function() {
|
|
3121
3121
|
var e = this.getProps(), n = e.dragConstraints, r = e.onMeasureDragConstraints;
|
|
3122
|
-
if (!n || !
|
|
3122
|
+
if (!n || !Kt(n))
|
|
3123
3123
|
return !1;
|
|
3124
3124
|
var o = n.current;
|
|
3125
3125
|
vt(o !== null, "If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");
|
|
@@ -3128,27 +3128,27 @@ var If = /* @__PURE__ */ new WeakMap(), Af = (
|
|
|
3128
3128
|
return !1;
|
|
3129
3129
|
var i = Vf(o, a.root, this.visualElement.getTransformPagePoint()), s = Sf(a.layout.actual, i);
|
|
3130
3130
|
if (r) {
|
|
3131
|
-
var u = r(
|
|
3131
|
+
var u = r(_f(s));
|
|
3132
3132
|
this.hasMutatedConstraints = !!u, u && (s = va(u));
|
|
3133
3133
|
}
|
|
3134
3134
|
return s;
|
|
3135
3135
|
}, t.prototype.startAnimation = function(e) {
|
|
3136
|
-
var n = this, r = this.getProps(), o = r.drag, a = r.dragMomentum, i = r.dragElastic, s = r.dragTransition, u = r.dragSnapToOrigin, l = r.onDragTransitionEnd, c = this.constraints || {}, f =
|
|
3136
|
+
var n = this, r = this.getProps(), o = r.drag, a = r.dragMomentum, i = r.dragElastic, s = r.dragTransition, u = r.dragSnapToOrigin, l = r.onDragTransitionEnd, c = this.constraints || {}, f = _t(function(d) {
|
|
3137
3137
|
var p;
|
|
3138
|
-
if (
|
|
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 =
|
|
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
3142
|
return n.startAxisValueAnimation(d, h);
|
|
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
|
|
3148
|
+
return mr(e, r, 0, n);
|
|
3149
3149
|
}, t.prototype.stopAnimation = function() {
|
|
3150
3150
|
var e = this;
|
|
3151
|
-
|
|
3151
|
+
_t(function(n) {
|
|
3152
3152
|
return e.getAxisMotionValue(n).stop();
|
|
3153
3153
|
});
|
|
3154
3154
|
}, t.prototype.getAxisMotionValue = function(e) {
|
|
@@ -3156,9 +3156,9 @@ var If = /* @__PURE__ */ new WeakMap(), Af = (
|
|
|
3156
3156
|
return a || this.visualElement.getValue(e, (r = (n = this.visualElement.getProps().initial) === null || n === void 0 ? void 0 : n[e]) !== null && r !== void 0 ? r : 0);
|
|
3157
3157
|
}, t.prototype.snapToCursor = function(e) {
|
|
3158
3158
|
var n = this;
|
|
3159
|
-
|
|
3159
|
+
_t(function(r) {
|
|
3160
3160
|
var o = n.getProps().drag;
|
|
3161
|
-
if (
|
|
3161
|
+
if (Le(r, o, n.currentDirection)) {
|
|
3162
3162
|
var a = n.visualElement.projection, i = n.getAxisMotionValue(r);
|
|
3163
3163
|
if (a && a.layout) {
|
|
3164
3164
|
var s = a.layout.actual[r], u = s.min, l = s.max;
|
|
@@ -3168,10 +3168,10 @@ var If = /* @__PURE__ */ new WeakMap(), Af = (
|
|
|
3168
3168
|
});
|
|
3169
3169
|
}, t.prototype.scalePositionWithinConstraints = function() {
|
|
3170
3170
|
var e = this, n, r = this.getProps(), o = r.drag, a = r.dragConstraints, i = this.visualElement.projection;
|
|
3171
|
-
if (!(!
|
|
3171
|
+
if (!(!Kt(a) || !i || !this.constraints)) {
|
|
3172
3172
|
this.stopAnimation();
|
|
3173
3173
|
var s = { x: 0, y: 0 };
|
|
3174
|
-
|
|
3174
|
+
_t(function(l) {
|
|
3175
3175
|
var c = e.getAxisMotionValue(l);
|
|
3176
3176
|
if (c) {
|
|
3177
3177
|
var f = c.get();
|
|
@@ -3179,8 +3179,8 @@ var If = /* @__PURE__ */ new WeakMap(), Af = (
|
|
|
3179
3179
|
}
|
|
3180
3180
|
});
|
|
3181
3181
|
var u = this.visualElement.getProps().transformTemplate;
|
|
3182
|
-
this.visualElement.getInstance().style.transform = u ? u({}, "") : "none", (n = i.root) === null || n === void 0 || n.updateScroll(), i.updateLayout(), this.resolveConstraints(),
|
|
3183
|
-
if (
|
|
3182
|
+
this.visualElement.getInstance().style.transform = u ? u({}, "") : "none", (n = i.root) === null || n === void 0 || n.updateScroll(), i.updateLayout(), this.resolveConstraints(), _t(function(l) {
|
|
3183
|
+
if (Le(l, o, null)) {
|
|
3184
3184
|
var c = e.getAxisMotionValue(l), f = e.constraints[l], d = f.min, p = f.max;
|
|
3185
3185
|
c.set(tt(d, p, s[l]));
|
|
3186
3186
|
}
|
|
@@ -3189,12 +3189,12 @@ var If = /* @__PURE__ */ new WeakMap(), Af = (
|
|
|
3189
3189
|
}, t.prototype.addListeners = function() {
|
|
3190
3190
|
var e = this, n;
|
|
3191
3191
|
If.set(this.visualElement, this);
|
|
3192
|
-
var r = this.visualElement.getInstance(), o =
|
|
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);
|
|
3195
3195
|
}), a = function() {
|
|
3196
3196
|
var l = e.getProps().dragConstraints;
|
|
3197
|
-
|
|
3197
|
+
Kt(l) && (e.constraints = e.resolveRefConstraints());
|
|
3198
3198
|
}, i = this.visualElement.projection, s = i.addEventListener("measure", a);
|
|
3199
3199
|
i && !i.layout && ((n = i.root) === null || n === void 0 || n.updateScroll(), i.updateLayout()), a();
|
|
3200
3200
|
var u = en(window, "resize", function() {
|
|
@@ -3202,7 +3202,7 @@ var If = /* @__PURE__ */ new WeakMap(), Af = (
|
|
|
3202
3202
|
});
|
|
3203
3203
|
return i.addEventListener("didUpdate", function(l) {
|
|
3204
3204
|
var c = l.delta, f = l.hasLayoutChanged;
|
|
3205
|
-
e.isDragging && f && (
|
|
3205
|
+
e.isDragging && f && (_t(function(d) {
|
|
3206
3206
|
var p = e.getAxisMotionValue(d);
|
|
3207
3207
|
p && (e.originPoint[d] += c[d].translate, p.set(p.get() + c[d].translate));
|
|
3208
3208
|
}), e.visualElement.syncRender());
|
|
@@ -3210,12 +3210,12 @@ var If = /* @__PURE__ */ new WeakMap(), Af = (
|
|
|
3210
3210
|
u(), o(), s();
|
|
3211
3211
|
};
|
|
3212
3212
|
}, t.prototype.getProps = function() {
|
|
3213
|
-
var e = this.visualElement.getProps(), n = e.drag, r = n === void 0 ? !1 : n, o = e.dragDirectionLock, a = o === void 0 ? !1 : o, i = e.dragPropagation, s = i === void 0 ? !1 : i, u = e.dragConstraints, l = u === void 0 ? !1 : u, c = e.dragElastic, f = c === void 0 ?
|
|
3214
|
-
return
|
|
3213
|
+
var e = this.visualElement.getProps(), n = e.drag, r = n === void 0 ? !1 : n, o = e.dragDirectionLock, a = o === void 0 ? !1 : o, i = e.dragPropagation, s = i === void 0 ? !1 : i, u = e.dragConstraints, l = u === void 0 ? !1 : u, c = e.dragElastic, f = c === void 0 ? Gn : c, d = e.dragMomentum, p = d === void 0 ? !0 : d;
|
|
3214
|
+
return b(b({}, e), { drag: r, dragDirectionLock: a, dragPropagation: s, dragConstraints: l, dragElastic: f, dragMomentum: p });
|
|
3215
3215
|
}, t;
|
|
3216
3216
|
}()
|
|
3217
3217
|
);
|
|
3218
|
-
function
|
|
3218
|
+
function Le(t, e, n) {
|
|
3219
3219
|
return (e === !0 || e === t) && (n === null || n === t);
|
|
3220
3220
|
}
|
|
3221
3221
|
function Mf(t, e) {
|
|
@@ -3234,7 +3234,7 @@ function Rf(t) {
|
|
|
3234
3234
|
}, [r]);
|
|
3235
3235
|
}
|
|
3236
3236
|
function Lf(t) {
|
|
3237
|
-
var e = t.onPan, n = t.onPanStart, r = t.onPanEnd, o = t.onPanSessionStart, a = t.visualElement, i = e || n || r || o, s = Z(null), u = st(
|
|
3237
|
+
var e = t.onPan, n = t.onPanStart, r = t.onPanEnd, o = t.onPanSessionStart, a = t.visualElement, i = e || n || r || o, s = Z(null), u = st(Zn).transformPagePoint, l = {
|
|
3238
3238
|
onSessionStart: o,
|
|
3239
3239
|
onStart: n,
|
|
3240
3240
|
onMove: e,
|
|
@@ -3254,7 +3254,7 @@ function Lf(t) {
|
|
|
3254
3254
|
return s.current && s.current.end();
|
|
3255
3255
|
});
|
|
3256
3256
|
}
|
|
3257
|
-
var
|
|
3257
|
+
var Of = {
|
|
3258
3258
|
pan: Nt(Lf),
|
|
3259
3259
|
drag: Nt(Rf)
|
|
3260
3260
|
}, Oe = [
|
|
@@ -3271,9 +3271,9 @@ var Bf = {
|
|
|
3271
3271
|
"SetAxisTarget",
|
|
3272
3272
|
"Unmount"
|
|
3273
3273
|
];
|
|
3274
|
-
function
|
|
3274
|
+
function Bf() {
|
|
3275
3275
|
var t = Oe.map(function() {
|
|
3276
|
-
return new
|
|
3276
|
+
return new ue();
|
|
3277
3277
|
}), e = {}, n = {
|
|
3278
3278
|
clearAllListeners: function() {
|
|
3279
3279
|
return t.forEach(function(r) {
|
|
@@ -3304,13 +3304,13 @@ function Df(t, e, n) {
|
|
|
3304
3304
|
if (It(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
3306
|
else if (It(i))
|
|
3307
|
-
t.addValue(o,
|
|
3307
|
+
t.addValue(o, Jt(a));
|
|
3308
3308
|
else if (i !== a)
|
|
3309
3309
|
if (t.hasValue(o)) {
|
|
3310
3310
|
var s = t.getValue(o);
|
|
3311
3311
|
!s.hasAnimated && s.set(a);
|
|
3312
3312
|
} else
|
|
3313
|
-
t.addValue(o,
|
|
3313
|
+
t.addValue(o, Jt((r = t.getStaticValue(o)) !== null && r !== void 0 ? r : a));
|
|
3314
3314
|
}
|
|
3315
3315
|
for (var o in n)
|
|
3316
3316
|
e[o] === void 0 && t.removeValue(o);
|
|
@@ -3321,22 +3321,22 @@ var ga = function(t) {
|
|
|
3321
3321
|
return function(d, p) {
|
|
3322
3322
|
var v = d.parent, m = d.props, y = d.presenceId, h = d.blockInitialAnimation, S = d.visualState, g = d.shouldReduceMotion;
|
|
3323
3323
|
p === void 0 && (p = {});
|
|
3324
|
-
var
|
|
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
3325
|
function I() {
|
|
3326
|
-
!R || !
|
|
3326
|
+
!R || !w || (G(), s(R, T, m.style, D.projection));
|
|
3327
3327
|
}
|
|
3328
3328
|
function G() {
|
|
3329
3329
|
r(D, T, x, p, m);
|
|
3330
3330
|
}
|
|
3331
3331
|
function Q() {
|
|
3332
|
-
|
|
3332
|
+
B.notifyUpdate(x);
|
|
3333
3333
|
}
|
|
3334
|
-
function M(
|
|
3335
|
-
var
|
|
3336
|
-
x[
|
|
3334
|
+
function M(_, C) {
|
|
3335
|
+
var O = C.onChange(function(N) {
|
|
3336
|
+
x[_] = N, m.onUpdate && Tt.update(Q, !1, !0);
|
|
3337
3337
|
}), L = C.onRenderRequest(D.scheduleRender);
|
|
3338
|
-
F.set(
|
|
3339
|
-
|
|
3338
|
+
F.set(_, function() {
|
|
3339
|
+
O(), L();
|
|
3340
3340
|
});
|
|
3341
3341
|
}
|
|
3342
3342
|
var it = f(m);
|
|
@@ -3344,7 +3344,7 @@ var ga = function(t) {
|
|
|
3344
3344
|
var ut = it[at];
|
|
3345
3345
|
x[at] !== void 0 && It(ut) && ut.set(x[at], !1);
|
|
3346
3346
|
}
|
|
3347
|
-
var U = tn(m), X = ii(m), D =
|
|
3347
|
+
var U = tn(m), X = ii(m), D = b(b({
|
|
3348
3348
|
treeType: n,
|
|
3349
3349
|
/**
|
|
3350
3350
|
* This is a mirror of the internal instance prop, which keeps
|
|
@@ -3397,32 +3397,32 @@ var ga = function(t) {
|
|
|
3397
3397
|
isMounted: function() {
|
|
3398
3398
|
return !!R;
|
|
3399
3399
|
},
|
|
3400
|
-
mount: function(
|
|
3401
|
-
|
|
3402
|
-
return M(
|
|
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
3403
|
}), v == null || v.children.add(D), D.setProps(m);
|
|
3404
3404
|
},
|
|
3405
3405
|
/**
|
|
3406
3406
|
*
|
|
3407
3407
|
*/
|
|
3408
3408
|
unmount: function() {
|
|
3409
|
-
var
|
|
3410
|
-
(
|
|
3409
|
+
var _;
|
|
3410
|
+
(_ = D.projection) === null || _ === void 0 || _.unmount(), Zt.update(Q), Zt.render(I), F.forEach(function(C) {
|
|
3411
3411
|
return C();
|
|
3412
|
-
}), j == null || j(), v == null || v.children.delete(D),
|
|
3412
|
+
}), j == null || j(), v == null || v.children.delete(D), B.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
|
-
addVariantChild: function(
|
|
3418
|
-
var C,
|
|
3419
|
-
if (
|
|
3420
|
-
return (C =
|
|
3421
|
-
return
|
|
3417
|
+
addVariantChild: function(_) {
|
|
3418
|
+
var C, O = D.getClosestVariantNode();
|
|
3419
|
+
if (O)
|
|
3420
|
+
return (C = O.variantChildren) === null || C === void 0 || C.add(_), function() {
|
|
3421
|
+
return O.variantChildren.delete(_);
|
|
3422
3422
|
};
|
|
3423
3423
|
},
|
|
3424
|
-
sortNodePosition: function(
|
|
3425
|
-
return !c || n !==
|
|
3424
|
+
sortNodePosition: function(_) {
|
|
3425
|
+
return !c || n !== _.treeType ? 0 : c(D.getInstance(), _.getInstance());
|
|
3426
3426
|
},
|
|
3427
3427
|
/**
|
|
3428
3428
|
* Returns the closest variant node in the tree starting from
|
|
@@ -3446,11 +3446,11 @@ var ga = function(t) {
|
|
|
3446
3446
|
/**
|
|
3447
3447
|
* Get/set the latest static values.
|
|
3448
3448
|
*/
|
|
3449
|
-
getStaticValue: function(
|
|
3450
|
-
return x[
|
|
3449
|
+
getStaticValue: function(_) {
|
|
3450
|
+
return x[_];
|
|
3451
3451
|
},
|
|
3452
|
-
setStaticValue: function(
|
|
3453
|
-
return x[
|
|
3452
|
+
setStaticValue: function(_, C) {
|
|
3453
|
+
return x[_] = C;
|
|
3454
3454
|
},
|
|
3455
3455
|
/**
|
|
3456
3456
|
* Returns the latest motion value state. Currently only used to take
|
|
@@ -3464,8 +3464,8 @@ var ga = function(t) {
|
|
|
3464
3464
|
* Set the visiblity of the visual element. If it's changed, schedule
|
|
3465
3465
|
* a render to reflect these changes.
|
|
3466
3466
|
*/
|
|
3467
|
-
setVisibility: function(
|
|
3468
|
-
D.isVisible !==
|
|
3467
|
+
setVisibility: function(_) {
|
|
3468
|
+
D.isVisible !== _ && (D.isVisible = _, D.scheduleRender());
|
|
3469
3469
|
},
|
|
3470
3470
|
/**
|
|
3471
3471
|
* Make a target animatable by Popmotion. For instance, if we're
|
|
@@ -3474,8 +3474,8 @@ var ga = function(t) {
|
|
|
3474
3474
|
* pluggable to support Framer's custom value types like Color,
|
|
3475
3475
|
* and CSS variables.
|
|
3476
3476
|
*/
|
|
3477
|
-
makeTargetAnimatable: function(
|
|
3478
|
-
return C === void 0 && (C = !0), a(D,
|
|
3477
|
+
makeTargetAnimatable: function(_, C) {
|
|
3478
|
+
return C === void 0 && (C = !0), a(D, _, m, C);
|
|
3479
3479
|
},
|
|
3480
3480
|
/**
|
|
3481
3481
|
* Measure the current viewport box with or without transforms.
|
|
@@ -3489,65 +3489,65 @@ var ga = function(t) {
|
|
|
3489
3489
|
/**
|
|
3490
3490
|
* Add a motion value and bind it to this visual element.
|
|
3491
3491
|
*/
|
|
3492
|
-
addValue: function(
|
|
3493
|
-
D.hasValue(
|
|
3492
|
+
addValue: function(_, C) {
|
|
3493
|
+
D.hasValue(_) && D.removeValue(_), V.set(_, C), x[_] = C.get(), M(_, C);
|
|
3494
3494
|
},
|
|
3495
3495
|
/**
|
|
3496
3496
|
* Remove a motion value and unbind any active subscriptions.
|
|
3497
3497
|
*/
|
|
3498
|
-
removeValue: function(
|
|
3498
|
+
removeValue: function(_) {
|
|
3499
3499
|
var C;
|
|
3500
|
-
V.delete(
|
|
3500
|
+
V.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
|
-
hasValue: function(
|
|
3506
|
-
return V.has(
|
|
3505
|
+
hasValue: function(_) {
|
|
3506
|
+
return V.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
|
-
getValue: function(
|
|
3513
|
-
var
|
|
3514
|
-
return
|
|
3512
|
+
getValue: function(_, C) {
|
|
3513
|
+
var O = V.get(_);
|
|
3514
|
+
return O === void 0 && C !== void 0 && (O = Jt(C), D.addValue(_, O)), O;
|
|
3515
3515
|
},
|
|
3516
3516
|
/**
|
|
3517
3517
|
* Iterate over our motion values.
|
|
3518
3518
|
*/
|
|
3519
|
-
forEachValue: function(
|
|
3520
|
-
return V.forEach(
|
|
3519
|
+
forEachValue: function(_) {
|
|
3520
|
+
return V.forEach(_);
|
|
3521
3521
|
},
|
|
3522
3522
|
/**
|
|
3523
3523
|
* If we're trying to animate to a previously unencountered value,
|
|
3524
3524
|
* we need to check for it in our state and as a last resort read it
|
|
3525
3525
|
* directly from the instance (which might have performance implications).
|
|
3526
3526
|
*/
|
|
3527
|
-
readValue: function(
|
|
3527
|
+
readValue: function(_) {
|
|
3528
3528
|
var C;
|
|
3529
|
-
return (C = x[
|
|
3529
|
+
return (C = x[_]) !== null && C !== void 0 ? C : u(R, _, p);
|
|
3530
3530
|
},
|
|
3531
3531
|
/**
|
|
3532
3532
|
* Set the base target to later animate back to. This is currently
|
|
3533
3533
|
* only hydrated on creation and when we first read a value.
|
|
3534
3534
|
*/
|
|
3535
|
-
setBaseTarget: function(
|
|
3536
|
-
$[
|
|
3535
|
+
setBaseTarget: function(_, C) {
|
|
3536
|
+
$[_] = C;
|
|
3537
3537
|
},
|
|
3538
3538
|
/**
|
|
3539
3539
|
* Find the base target for a value thats been removed from all animation
|
|
3540
3540
|
* props.
|
|
3541
3541
|
*/
|
|
3542
|
-
getBaseTarget: function(
|
|
3542
|
+
getBaseTarget: function(_) {
|
|
3543
3543
|
if (o) {
|
|
3544
|
-
var C = o(m,
|
|
3544
|
+
var C = o(m, _);
|
|
3545
3545
|
if (C !== void 0 && !It(C))
|
|
3546
3546
|
return C;
|
|
3547
3547
|
}
|
|
3548
|
-
return $[
|
|
3548
|
+
return $[_];
|
|
3549
3549
|
}
|
|
3550
|
-
},
|
|
3550
|
+
}, B), {
|
|
3551
3551
|
/**
|
|
3552
3552
|
* Build the renderer state based on the latest visual state.
|
|
3553
3553
|
*/
|
|
@@ -3571,8 +3571,8 @@ var ga = function(t) {
|
|
|
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
|
-
setProps: function(
|
|
3575
|
-
(
|
|
3574
|
+
setProps: function(_) {
|
|
3575
|
+
(_.transformTemplate || m.transformTemplate) && D.scheduleRender(), m = _, B.updatePropListeners(_), J = Df(D, f(m), J);
|
|
3576
3576
|
},
|
|
3577
3577
|
getProps: function() {
|
|
3578
3578
|
return m;
|
|
@@ -3581,9 +3581,9 @@ var ga = function(t) {
|
|
|
3581
3581
|
/**
|
|
3582
3582
|
* Returns the variant definition with a given name.
|
|
3583
3583
|
*/
|
|
3584
|
-
getVariant: function(
|
|
3584
|
+
getVariant: function(_) {
|
|
3585
3585
|
var C;
|
|
3586
|
-
return (C = m.variants) === null || C === void 0 ? void 0 : C[
|
|
3586
|
+
return (C = m.variants) === null || C === void 0 ? void 0 : C[_];
|
|
3587
3587
|
},
|
|
3588
3588
|
/**
|
|
3589
3589
|
* Returns the defined default transition on this component.
|
|
@@ -3597,24 +3597,24 @@ var ga = function(t) {
|
|
|
3597
3597
|
/**
|
|
3598
3598
|
* Used by child variant nodes to get the closest ancestor variant props.
|
|
3599
3599
|
*/
|
|
3600
|
-
getVariantContext: function(
|
|
3601
|
-
if (
|
|
3600
|
+
getVariantContext: function(_) {
|
|
3601
|
+
if (_ === void 0 && (_ = !1), _)
|
|
3602
3602
|
return v == null ? void 0 : v.getVariantContext();
|
|
3603
3603
|
if (!U) {
|
|
3604
3604
|
var C = (v == null ? void 0 : v.getVariantContext()) || {};
|
|
3605
3605
|
return m.initial !== void 0 && (C.initial = m.initial), C;
|
|
3606
3606
|
}
|
|
3607
|
-
for (var
|
|
3607
|
+
for (var O = {}, L = 0; L < Nf; L++) {
|
|
3608
3608
|
var N = ya[L], W = m[N];
|
|
3609
|
-
(St(W) || W === !1) && (
|
|
3609
|
+
(St(W) || W === !1) && (O[N] = W);
|
|
3610
3610
|
}
|
|
3611
|
-
return
|
|
3611
|
+
return O;
|
|
3612
3612
|
}
|
|
3613
3613
|
});
|
|
3614
3614
|
return D;
|
|
3615
3615
|
};
|
|
3616
|
-
}, ya = mt(["initial"], nt(
|
|
3617
|
-
function
|
|
3616
|
+
}, ya = mt(["initial"], nt(Sr), !1), Nf = ya.length;
|
|
3617
|
+
function Yn(t) {
|
|
3618
3618
|
return typeof t == "string" && t.startsWith("var(--");
|
|
3619
3619
|
}
|
|
3620
3620
|
var Sa = /var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;
|
|
@@ -3626,29 +3626,29 @@ function Ff(t) {
|
|
|
3626
3626
|
return [r, o];
|
|
3627
3627
|
}
|
|
3628
3628
|
var jf = 4;
|
|
3629
|
-
function
|
|
3629
|
+
function qn(t, e, n) {
|
|
3630
3630
|
n === void 0 && (n = 1), vt(n <= jf, 'Max CSS variable fallback depth detected in property "'.concat(t, '". This may indicate a circular fallback dependency.'));
|
|
3631
3631
|
var r = nt(Ff(t), 2), o = r[0], a = r[1];
|
|
3632
3632
|
if (o) {
|
|
3633
3633
|
var i = window.getComputedStyle(e).getPropertyValue(o);
|
|
3634
|
-
return i ? i.trim() :
|
|
3634
|
+
return i ? i.trim() : Yn(a) ? qn(a, e, n + 1) : a;
|
|
3635
3635
|
}
|
|
3636
3636
|
}
|
|
3637
3637
|
function kf(t, e, n) {
|
|
3638
3638
|
var r, o = ht(e, []), a = t.getInstance();
|
|
3639
3639
|
if (!(a instanceof Element))
|
|
3640
3640
|
return { target: o, transitionEnd: n };
|
|
3641
|
-
n && (n =
|
|
3641
|
+
n && (n = b({}, n)), t.forEachValue(function(l) {
|
|
3642
3642
|
var c = l.get();
|
|
3643
|
-
if (
|
|
3644
|
-
var f =
|
|
3643
|
+
if (Yn(c)) {
|
|
3644
|
+
var f = qn(c, a);
|
|
3645
3645
|
f && l.set(f);
|
|
3646
3646
|
}
|
|
3647
3647
|
});
|
|
3648
3648
|
for (var i in o) {
|
|
3649
3649
|
var s = o[i];
|
|
3650
|
-
if (
|
|
3651
|
-
var u =
|
|
3650
|
+
if (Yn(s)) {
|
|
3651
|
+
var u = qn(s, a);
|
|
3652
3652
|
u && (o[i] = u, n && ((r = n[i]) !== null && r !== void 0 || (n[i] = s)));
|
|
3653
3653
|
}
|
|
3654
3654
|
}
|
|
@@ -3667,28 +3667,28 @@ var $f = /* @__PURE__ */ new Set([
|
|
|
3667
3667
|
return $f.has(t);
|
|
3668
3668
|
}, Uf = function(t) {
|
|
3669
3669
|
return Object.keys(t).some(ba);
|
|
3670
|
-
},
|
|
3670
|
+
}, Pa = function(t, e) {
|
|
3671
3671
|
t.set(e, !1), t.set(e);
|
|
3672
|
-
},
|
|
3673
|
-
return t ===
|
|
3674
|
-
},
|
|
3672
|
+
}, Be = function(t) {
|
|
3673
|
+
return t === Ht || t === A;
|
|
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";
|
|
3677
|
-
})(
|
|
3678
|
-
var
|
|
3677
|
+
})(Po || (Po = {}));
|
|
3678
|
+
var wo = function(t, e) {
|
|
3679
3679
|
return parseFloat(t.split(", ")[e]);
|
|
3680
|
-
},
|
|
3680
|
+
}, _o = function(t, e) {
|
|
3681
3681
|
return function(n, r) {
|
|
3682
3682
|
var o = r.transform;
|
|
3683
3683
|
if (o === "none" || !o)
|
|
3684
3684
|
return 0;
|
|
3685
3685
|
var a = o.match(/^matrix3d\((.+)\)$/);
|
|
3686
3686
|
if (a)
|
|
3687
|
-
return
|
|
3687
|
+
return wo(a[1], e);
|
|
3688
3688
|
var i = o.match(/^matrix\((.+)\)$/);
|
|
3689
|
-
return i ?
|
|
3689
|
+
return i ? wo(i[1], t) : 0;
|
|
3690
3690
|
};
|
|
3691
|
-
}, Wf = /* @__PURE__ */ new Set(["x", "y", "z"]), Hf =
|
|
3691
|
+
}, Wf = /* @__PURE__ */ new Set(["x", "y", "z"]), Hf = me.filter(function(t) {
|
|
3692
3692
|
return !Wf.has(t);
|
|
3693
3693
|
});
|
|
3694
3694
|
function zf(t) {
|
|
@@ -3698,7 +3698,7 @@ function zf(t) {
|
|
|
3698
3698
|
r !== void 0 && (e.push([n, r.get()]), r.set(n.startsWith("scale") ? 1 : 0));
|
|
3699
3699
|
}), e.length && t.syncRender(), e;
|
|
3700
3700
|
}
|
|
3701
|
-
var
|
|
3701
|
+
var xo = {
|
|
3702
3702
|
// Dimensions
|
|
3703
3703
|
width: function(t, e) {
|
|
3704
3704
|
var n = t.x, r = e.paddingLeft, o = r === void 0 ? "0" : r, a = e.paddingRight, i = a === void 0 ? "0" : a;
|
|
@@ -3725,37 +3725,37 @@ var wo = {
|
|
|
3725
3725
|
return parseFloat(r) + (n.max - n.min);
|
|
3726
3726
|
},
|
|
3727
3727
|
// Transform
|
|
3728
|
-
x:
|
|
3729
|
-
y:
|
|
3728
|
+
x: _o(4, 13),
|
|
3729
|
+
y: _o(5, 14)
|
|
3730
3730
|
}, Gf = function(t, e, n) {
|
|
3731
3731
|
var r = e.measureViewportBox(), o = e.getInstance(), a = getComputedStyle(o), i = a.display, s = {};
|
|
3732
3732
|
i === "none" && e.setStaticValue("display", t.display || "block"), n.forEach(function(l) {
|
|
3733
|
-
s[l] =
|
|
3733
|
+
s[l] = xo[l](r, a);
|
|
3734
3734
|
}), e.syncRender();
|
|
3735
3735
|
var u = e.measureViewportBox();
|
|
3736
3736
|
return n.forEach(function(l) {
|
|
3737
3737
|
var c = e.getValue(l);
|
|
3738
|
-
|
|
3738
|
+
Pa(c, s[l]), t[l] = xo[l](u, a);
|
|
3739
3739
|
}), t;
|
|
3740
3740
|
}, Kf = function(t, e, n, r) {
|
|
3741
|
-
n === void 0 && (n = {}), r === void 0 && (r = {}), e =
|
|
3741
|
+
n === void 0 && (n = {}), r === void 0 && (r = {}), e = b({}, e), r = b({}, r);
|
|
3742
3742
|
var o = Object.keys(e).filter(ba), a = [], i = !1, s = [];
|
|
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 =
|
|
3747
|
-
if (
|
|
3746
|
+
var d = n[c], p = re(d), v = e[c], m;
|
|
3747
|
+
if (ge(v)) {
|
|
3748
3748
|
var y = v.length, h = v[0] === null ? 1 : 0;
|
|
3749
|
-
d = v[h], p =
|
|
3749
|
+
d = v[h], p = re(d);
|
|
3750
3750
|
for (var S = h; S < y; S++)
|
|
3751
|
-
m ? vt(
|
|
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"));
|
|
3752
3752
|
} else
|
|
3753
|
-
m =
|
|
3753
|
+
m = re(v);
|
|
3754
3754
|
if (p !== m)
|
|
3755
|
-
if (
|
|
3755
|
+
if (Be(p) && Be(m)) {
|
|
3756
3756
|
var g = f.get();
|
|
3757
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],
|
|
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));
|
|
3759
3759
|
}
|
|
3760
3760
|
}), s.length) {
|
|
3761
3761
|
var u = s.indexOf("height") >= 0 ? window.pageYOffset : null, l = Gf(e, t, s);
|
|
@@ -3776,11 +3776,11 @@ var qf = function(t, e, n, r) {
|
|
|
3776
3776
|
function Xf(t) {
|
|
3777
3777
|
return window.getComputedStyle(t);
|
|
3778
3778
|
}
|
|
3779
|
-
var
|
|
3779
|
+
var wa = {
|
|
3780
3780
|
treeType: "dom",
|
|
3781
3781
|
readValueFromInstance: function(t, e) {
|
|
3782
3782
|
if (we(e)) {
|
|
3783
|
-
var n =
|
|
3783
|
+
var n = dr(e);
|
|
3784
3784
|
return n && n.default || 0;
|
|
3785
3785
|
} else {
|
|
3786
3786
|
var r = Xf(t);
|
|
@@ -3829,27 +3829,27 @@ var Pa = {
|
|
|
3829
3829
|
var l = qf(t, s, u, i);
|
|
3830
3830
|
i = l.transitionEnd, s = l.target;
|
|
3831
3831
|
}
|
|
3832
|
-
return
|
|
3832
|
+
return b({ transition: a, transitionEnd: i }, s);
|
|
3833
3833
|
},
|
|
3834
|
-
scrapeMotionValuesFromProps:
|
|
3834
|
+
scrapeMotionValuesFromProps: rr,
|
|
3835
3835
|
build: function(t, e, n, r, o) {
|
|
3836
|
-
t.isVisible !== void 0 && (e.style.visibility = t.isVisible ? "visible" : "hidden"),
|
|
3836
|
+
t.isVisible !== void 0 && (e.style.visibility = t.isVisible ? "visible" : "hidden"), tr(e, n, r, o.transformTemplate);
|
|
3837
3837
|
},
|
|
3838
|
-
render:
|
|
3839
|
-
}, Zf = ga(
|
|
3838
|
+
render: _i
|
|
3839
|
+
}, Zf = ga(wa), Jf = ga(b(b({}, wa), { getBaseTarget: function(t, e) {
|
|
3840
3840
|
return t[e];
|
|
3841
3841
|
}, readValueFromInstance: function(t, e) {
|
|
3842
3842
|
var n;
|
|
3843
|
-
return we(e) ? ((n =
|
|
3843
|
+
return we(e) ? ((n = dr(e)) === null || n === void 0 ? void 0 : n.default) || 0 : (e = xi.has(e) ? e : wi(e), t.getAttribute(e));
|
|
3844
3844
|
}, scrapeMotionValuesFromProps: Ci, build: function(t, e, n, r, o) {
|
|
3845
|
-
|
|
3845
|
+
nr(e, n, r, o.transformTemplate);
|
|
3846
3846
|
}, render: Ti })), Qf = function(t, e) {
|
|
3847
|
-
return
|
|
3847
|
+
return Jn(t) ? Jf(e, { enableHardwareAcceleration: !1 }) : Zf(e, { enableHardwareAcceleration: !0 });
|
|
3848
3848
|
};
|
|
3849
|
-
function
|
|
3849
|
+
function To(t, e) {
|
|
3850
3850
|
return e.max === e.min ? 0 : t / (e.max - e.min) * 100;
|
|
3851
3851
|
}
|
|
3852
|
-
var
|
|
3852
|
+
var oe = {
|
|
3853
3853
|
correct: function(t, e) {
|
|
3854
3854
|
if (!e.target)
|
|
3855
3855
|
return t;
|
|
@@ -3858,14 +3858,14 @@ var ie = {
|
|
|
3858
3858
|
t = parseFloat(t);
|
|
3859
3859
|
else
|
|
3860
3860
|
return t;
|
|
3861
|
-
var n =
|
|
3861
|
+
var n = To(t, e.target.x), r = To(t, e.target.y);
|
|
3862
3862
|
return "".concat(n, "% ").concat(r, "%");
|
|
3863
3863
|
}
|
|
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
3867
|
a && (t = t.replace(Sa, function(m) {
|
|
3868
|
-
return i.push(m),
|
|
3868
|
+
return i.push(m), Co;
|
|
3869
3869
|
}));
|
|
3870
3870
|
var s = At.parse(t);
|
|
3871
3871
|
if (s.length > 5)
|
|
@@ -3877,7 +3877,7 @@ var ie = {
|
|
|
3877
3877
|
var p = u(s);
|
|
3878
3878
|
if (a) {
|
|
3879
3879
|
var v = 0;
|
|
3880
|
-
p = p.replace(
|
|
3880
|
+
p = p.replace(Co, function() {
|
|
3881
3881
|
var m = i[v];
|
|
3882
3882
|
return v++, m;
|
|
3883
3883
|
});
|
|
@@ -3895,9 +3895,9 @@ var ie = {
|
|
|
3895
3895
|
var n = this, r = this.props, o = r.visualElement, a = r.layoutGroup, i = r.switchLayoutGroup, s = r.layoutId, u = o.projection;
|
|
3896
3896
|
Cu(rd), u && (a != null && a.group && a.group.add(u), i != null && i.register && s && i.register(u), u.root.didUpdate(), u.addEventListener("animationComplete", function() {
|
|
3897
3897
|
n.safeToRemove();
|
|
3898
|
-
}), u.setOptions(
|
|
3898
|
+
}), u.setOptions(b(b({}, u.options), { onExitComplete: function() {
|
|
3899
3899
|
return n.safeToRemove();
|
|
3900
|
-
} }))),
|
|
3900
|
+
} }))), ie.hasEverUpdated = !0;
|
|
3901
3901
|
}, e.prototype.getSnapshotBeforeUpdate = function(n) {
|
|
3902
3902
|
var r = this, o = this.props, a = o.layoutDependency, i = o.visualElement, s = o.drag, u = o.isPresent, l = i.projection;
|
|
3903
3903
|
return l && (l.isPresent = u, s || n.layoutDependency !== a || a === void 0 ? l.willUpdate() : this.safeToRemove(), n.isPresent !== u && (u ? l.promote() : l.relegate() || Tt.postRender(function() {
|
|
@@ -3920,27 +3920,27 @@ var ie = {
|
|
|
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,
|
|
3923
|
+
return E.createElement(ed, b({}, t, { layoutGroup: o, switchLayoutGroup: st(si), isPresent: n, safeToRemove: r }));
|
|
3924
3924
|
}
|
|
3925
3925
|
var rd = {
|
|
3926
|
-
borderRadius:
|
|
3926
|
+
borderRadius: b(b({}, oe), { applyTo: [
|
|
3927
3927
|
"borderTopLeftRadius",
|
|
3928
3928
|
"borderTopRightRadius",
|
|
3929
3929
|
"borderBottomLeftRadius",
|
|
3930
3930
|
"borderBottomRightRadius"
|
|
3931
3931
|
] }),
|
|
3932
|
-
borderTopLeftRadius:
|
|
3933
|
-
borderTopRightRadius:
|
|
3934
|
-
borderBottomLeftRadius:
|
|
3935
|
-
borderBottomRightRadius:
|
|
3932
|
+
borderTopLeftRadius: oe,
|
|
3933
|
+
borderTopRightRadius: oe,
|
|
3934
|
+
borderBottomLeftRadius: oe,
|
|
3935
|
+
borderBottomRightRadius: oe,
|
|
3936
3936
|
boxShadow: td
|
|
3937
3937
|
}, od = {
|
|
3938
3938
|
measureLayout: nd
|
|
3939
3939
|
};
|
|
3940
3940
|
function id(t, e, n) {
|
|
3941
3941
|
n === void 0 && (n = {});
|
|
3942
|
-
var r = It(t) ? t :
|
|
3943
|
-
return
|
|
3942
|
+
var r = It(t) ? t : Jt(t);
|
|
3943
|
+
return mr("", r, e, n), {
|
|
3944
3944
|
stop: function() {
|
|
3945
3945
|
return r.stop();
|
|
3946
3946
|
},
|
|
@@ -3949,9 +3949,9 @@ function id(t, e, n) {
|
|
|
3949
3949
|
}
|
|
3950
3950
|
};
|
|
3951
3951
|
}
|
|
3952
|
-
var
|
|
3952
|
+
var _a = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], ad = _a.length, Eo = function(t) {
|
|
3953
3953
|
return typeof t == "string" ? parseFloat(t) : t;
|
|
3954
|
-
},
|
|
3954
|
+
}, Vo = function(t) {
|
|
3955
3955
|
return typeof t == "number" || A.test(t);
|
|
3956
3956
|
};
|
|
3957
3957
|
function sd(t, e, n, r, o, a) {
|
|
@@ -3964,32 +3964,32 @@ 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(
|
|
3967
|
+
var f = "border".concat(_a[c], "Radius"), d = Io(e, f), p = Io(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 ||
|
|
3971
|
-
v ? (t[f] = Math.max(tt(
|
|
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;
|
|
3972
3972
|
}
|
|
3973
3973
|
}
|
|
3974
3974
|
(e.rotate || n.rotate) && (t.rotate = tt(e.rotate || 0, n.rotate || 0, r));
|
|
3975
3975
|
}
|
|
3976
|
-
function
|
|
3976
|
+
function Io(t, e) {
|
|
3977
3977
|
var n;
|
|
3978
3978
|
return (n = t[e]) !== null && n !== void 0 ? n : t.borderRadius;
|
|
3979
3979
|
}
|
|
3980
|
-
var ud = xa(0, 0.5,
|
|
3980
|
+
var ud = xa(0, 0.5, cr), ld = xa(0.5, 0.95, ur);
|
|
3981
3981
|
function xa(t, e, n) {
|
|
3982
3982
|
return function(r) {
|
|
3983
|
-
return r < t ? 0 : r > e ? 1 : n(
|
|
3983
|
+
return r < t ? 0 : r > e ? 1 : n(ye(t, e, r));
|
|
3984
3984
|
};
|
|
3985
3985
|
}
|
|
3986
|
-
function
|
|
3986
|
+
function Ao(t, e) {
|
|
3987
3987
|
t.min = e.min, t.max = e.max;
|
|
3988
3988
|
}
|
|
3989
3989
|
function yt(t, e) {
|
|
3990
|
-
|
|
3990
|
+
Ao(t.x, e.x), Ao(t.y, e.y);
|
|
3991
3991
|
}
|
|
3992
|
-
function
|
|
3992
|
+
function Mo(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,22 +4000,22 @@ 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 =
|
|
4003
|
+
t === a && (u -= e), t.min = Mo(t.min, e, n, u, o), t.max = Mo(t.max, e, n, u, o);
|
|
4004
4004
|
}
|
|
4005
4005
|
}
|
|
4006
|
-
function
|
|
4006
|
+
function Ro(t, e, n, r, o) {
|
|
4007
4007
|
var a = nt(n, 3), i = a[0], s = a[1], u = a[2];
|
|
4008
4008
|
cd(t, e[i], e[s], e[u], e.scale, r, o);
|
|
4009
4009
|
}
|
|
4010
4010
|
var fd = ["x", "scaleX", "originX"], dd = ["y", "scaleY", "originY"];
|
|
4011
|
-
function
|
|
4012
|
-
|
|
4011
|
+
function Lo(t, e, n, r) {
|
|
4012
|
+
Ro(t.x, e, fd, n == null ? void 0 : n.x, r == null ? void 0 : r.x), Ro(t.y, e, dd, n == null ? void 0 : n.y, r == null ? void 0 : r.y);
|
|
4013
4013
|
}
|
|
4014
|
-
function
|
|
4014
|
+
function Oo(t) {
|
|
4015
4015
|
return t.translate === 0 && t.scale === 1;
|
|
4016
4016
|
}
|
|
4017
4017
|
function Ta(t) {
|
|
4018
|
-
return
|
|
4018
|
+
return Oo(t.x) && Oo(t.y);
|
|
4019
4019
|
}
|
|
4020
4020
|
function Ca(t, e) {
|
|
4021
4021
|
return t.x.min === e.x.min && t.x.max === e.x.max && t.y.min === e.y.min && t.y.max === e.y.max;
|
|
@@ -4027,9 +4027,9 @@ var vd = (
|
|
|
4027
4027
|
this.members = [];
|
|
4028
4028
|
}
|
|
4029
4029
|
return t.prototype.add = function(e) {
|
|
4030
|
-
|
|
4030
|
+
hr(this.members, e), e.scheduleRender();
|
|
4031
4031
|
}, t.prototype.remove = function(e) {
|
|
4032
|
-
if (
|
|
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];
|
|
4034
4034
|
n && this.promote(n);
|
|
4035
4035
|
}
|
|
@@ -4086,14 +4086,14 @@ var md = function(t, e) {
|
|
|
4086
4086
|
this.children = [], this.isDirty = !1;
|
|
4087
4087
|
}
|
|
4088
4088
|
return t.prototype.add = function(e) {
|
|
4089
|
-
mr(this.children, e), this.isDirty = !0;
|
|
4090
|
-
}, t.prototype.remove = function(e) {
|
|
4091
4089
|
hr(this.children, e), this.isDirty = !0;
|
|
4090
|
+
}, t.prototype.remove = function(e) {
|
|
4091
|
+
gr(this.children, e), this.isDirty = !0;
|
|
4092
4092
|
}, t.prototype.forEach = function(e) {
|
|
4093
4093
|
this.isDirty && this.children.sort(md), this.isDirty = !1, this.children.forEach(e);
|
|
4094
4094
|
}, t;
|
|
4095
4095
|
}()
|
|
4096
|
-
),
|
|
4096
|
+
), Do = 1e3;
|
|
4097
4097
|
function Ea(t) {
|
|
4098
4098
|
var e = t.attachResizeListener, n = t.defaultParent, r = t.measureScroll, o = t.checkIsScrollRoot, a = t.resetTransform;
|
|
4099
4099
|
return (
|
|
@@ -4104,14 +4104,14 @@ function Ea(t) {
|
|
|
4104
4104
|
u === void 0 && (u = {}), l === void 0 && (l = n == null ? void 0 : n()), this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.treeScale = { x: 1, y: 1 }, this.eventHandlers = /* @__PURE__ */ new Map(), this.potentialNodes = /* @__PURE__ */ new Map(), this.checkUpdateFailed = function() {
|
|
4105
4105
|
c.isUpdating && (c.isUpdating = !1, c.clearAllSnapshots());
|
|
4106
4106
|
}, this.updateProjection = function() {
|
|
4107
|
-
c.nodes.forEach(
|
|
4107
|
+
c.nodes.forEach(wd), c.nodes.forEach(_d);
|
|
4108
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);
|
|
4109
4109
|
for (var f = 0; f < this.path.length; f++)
|
|
4110
4110
|
this.path[f].shouldResetTransform = !0;
|
|
4111
4111
|
this.root === this && (this.nodes = new hd());
|
|
4112
4112
|
}
|
|
4113
4113
|
return i.prototype.addEventListener = function(s, u) {
|
|
4114
|
-
return this.eventHandlers.has(s) || this.eventHandlers.set(s, new
|
|
4114
|
+
return this.eventHandlers.has(s) || this.eventHandlers.set(s, new ue()), this.eventHandlers.get(s).add(u);
|
|
4115
4115
|
}, i.prototype.notifyListeners = function(s) {
|
|
4116
4116
|
for (var u = [], l = 1; l < arguments.length; l++)
|
|
4117
4117
|
u[l - 1] = arguments[l];
|
|
@@ -4131,28 +4131,28 @@ function Ea(t) {
|
|
|
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),
|
|
4134
|
+
l.root.updateBlockedByResize = !0, clearTimeout(m), m = window.setTimeout(y, 250), ie.hasAnimatedSinceResize && (ie.hasAnimatedSinceResize = !1, l.nodes.forEach(Pd));
|
|
4135
4135
|
});
|
|
4136
4136
|
}
|
|
4137
4137
|
d && this.root.registerSharedNode(d, this), this.options.animate !== !1 && v && (d || p) && this.addEventListener("didUpdate", function(h) {
|
|
4138
|
-
var S, g,
|
|
4138
|
+
var S, g, w, x, T, R = h.delta, B = h.hasLayoutChanged, V = h.hasRelativeTargetChanged, F = h.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 = !
|
|
4144
|
-
if (!((
|
|
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)) {
|
|
4145
4145
|
l.resumeFrom && (l.resumingFrom = l.resumeFrom, l.resumingFrom.resumingFrom = void 0), l.setAnimationOrigin(R, Q);
|
|
4146
|
-
var M =
|
|
4146
|
+
var M = b(b({}, pr(J, "layout")), { onPlay: j, onComplete: I });
|
|
4147
4147
|
v.shouldReduceMotion && (M.delay = 0, M.type = !1), l.startAnimation(M);
|
|
4148
4148
|
} else
|
|
4149
|
-
!
|
|
4149
|
+
!B && 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
|
}
|
|
4153
4153
|
}, i.prototype.unmount = function() {
|
|
4154
4154
|
var s, u;
|
|
4155
|
-
this.options.layoutId && this.willUpdate(), this.root.nodes.remove(this), (s = this.getStack()) === null || s === void 0 || s.remove(this), (u = this.parent) === null || u === void 0 || u.children.delete(this), this.instance = void 0,
|
|
4155
|
+
this.options.layoutId && this.willUpdate(), this.root.nodes.remove(this), (s = this.getStack()) === null || s === void 0 || s.remove(this), (u = this.parent) === null || u === void 0 || u.children.delete(this), this.instance = void 0, Zt.preRender(this.updateProjection);
|
|
4156
4156
|
}, i.prototype.blockUpdate = function() {
|
|
4157
4157
|
this.updateManuallyBlocked = !0;
|
|
4158
4158
|
}, i.prototype.unblockUpdate = function() {
|
|
@@ -4186,7 +4186,7 @@ function Ea(t) {
|
|
|
4186
4186
|
}, i.prototype.didUpdate = function() {
|
|
4187
4187
|
var s = this.isUpdateBlocked();
|
|
4188
4188
|
if (s) {
|
|
4189
|
-
this.unblockUpdate(), this.clearAllSnapshots(), this.nodes.forEach(
|
|
4189
|
+
this.unblockUpdate(), this.clearAllSnapshots(), this.nodes.forEach(No);
|
|
4190
4190
|
return;
|
|
4191
4191
|
}
|
|
4192
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());
|
|
@@ -4202,7 +4202,7 @@ function Ea(t) {
|
|
|
4202
4202
|
}, i.prototype.updateSnapshot = function() {
|
|
4203
4203
|
if (!(this.snapshot || !this.instance)) {
|
|
4204
4204
|
var s = this.measure(), u = this.removeTransform(this.removeElementScroll(s));
|
|
4205
|
-
|
|
4205
|
+
$o(u), this.snapshot = {
|
|
4206
4206
|
measured: s,
|
|
4207
4207
|
layout: u,
|
|
4208
4208
|
latestValues: {}
|
|
@@ -4217,7 +4217,7 @@ function Ea(t) {
|
|
|
4217
4217
|
l.updateScroll();
|
|
4218
4218
|
}
|
|
4219
4219
|
var c = this.measure();
|
|
4220
|
-
|
|
4220
|
+
$o(c);
|
|
4221
4221
|
var f = this.layout;
|
|
4222
4222
|
this.layout = {
|
|
4223
4223
|
measured: c,
|
|
@@ -4230,14 +4230,14 @@ function Ea(t) {
|
|
|
4230
4230
|
var s;
|
|
4231
4231
|
if (a) {
|
|
4232
4232
|
var u = this.isLayoutDirty || this.shouldResetTransform, l = this.projectionDelta && !Ta(this.projectionDelta), c = (s = this.options.visualElement) === null || s === void 0 ? void 0 : s.getProps().transformTemplate, f = c == null ? void 0 : c(this.latestValues, ""), d = f !== this.prevTransformTemplateValue;
|
|
4233
|
-
u && (l ||
|
|
4233
|
+
u && (l || Ot(this.latestValues) || d) && (a(this.instance, f), this.shouldResetTransform = !1, this.scheduleRender());
|
|
4234
4234
|
}
|
|
4235
4235
|
}, i.prototype.measure = function() {
|
|
4236
4236
|
var s = this.options.visualElement;
|
|
4237
4237
|
if (!s)
|
|
4238
4238
|
return lt();
|
|
4239
4239
|
var u = s.measureViewportBox(), l = this.root.scroll;
|
|
4240
|
-
return l && (
|
|
4240
|
+
return l && (Bt(u.x, l.x), Bt(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 && (
|
|
4250
|
+
v && (Bt(u.x, -v.x), Bt(u.y, -v.y));
|
|
4251
4251
|
}
|
|
4252
|
-
|
|
4252
|
+
Bt(u.x, f.x), Bt(u.y, f.y);
|
|
4253
4253
|
}
|
|
4254
4254
|
}
|
|
4255
4255
|
return u;
|
|
@@ -4259,36 +4259,36 @@ function Ea(t) {
|
|
|
4259
4259
|
yt(l, s);
|
|
4260
4260
|
for (var c = 0; c < this.path.length; c++) {
|
|
4261
4261
|
var f = this.path[c];
|
|
4262
|
-
!u && f.options.layoutScroll && f.scroll && f !== f.root &&
|
|
4262
|
+
!u && f.options.layoutScroll && f.scroll && f !== f.root && Yt(l, {
|
|
4263
4263
|
x: -f.scroll.x,
|
|
4264
4264
|
y: -f.scroll.y
|
|
4265
|
-
}),
|
|
4265
|
+
}), Ot(f.latestValues) && Yt(l, f.latestValues);
|
|
4266
4266
|
}
|
|
4267
|
-
return
|
|
4267
|
+
return Ot(this.latestValues) && Yt(l, this.latestValues), l;
|
|
4268
4268
|
}, i.prototype.removeTransform = function(s) {
|
|
4269
4269
|
var u, l = lt();
|
|
4270
4270
|
yt(l, s);
|
|
4271
4271
|
for (var c = 0; c < this.path.length; c++) {
|
|
4272
4272
|
var f = this.path[c];
|
|
4273
|
-
if (f.instance &&
|
|
4273
|
+
if (f.instance && Ot(f.latestValues)) {
|
|
4274
4274
|
pa(f.latestValues) && f.updateSnapshot();
|
|
4275
4275
|
var d = lt(), p = f.measure();
|
|
4276
|
-
yt(d, p),
|
|
4276
|
+
yt(d, p), Lo(l, f.latestValues, (u = f.snapshot) === null || u === void 0 ? void 0 : u.layout, d);
|
|
4277
4277
|
}
|
|
4278
4278
|
}
|
|
4279
|
-
return
|
|
4279
|
+
return Ot(this.latestValues) && Lo(l, this.latestValues), l;
|
|
4280
4280
|
}, i.prototype.setTargetDelta = function(s) {
|
|
4281
4281
|
this.targetDelta = s, this.root.scheduleUpdateProjection();
|
|
4282
4282
|
}, i.prototype.setOptions = function(s) {
|
|
4283
4283
|
var u;
|
|
4284
|
-
this.options =
|
|
4284
|
+
this.options = b(b(b({}, this.options), s), { crossfade: (u = s.crossfade) !== null && u !== void 0 ? u : !0 });
|
|
4285
4285
|
}, i.prototype.clearMeasurements = function() {
|
|
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(),
|
|
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)))));
|
|
4290
4290
|
}, i.prototype.getClosestProjectingParent = function() {
|
|
4291
|
-
if (!(!this.parent ||
|
|
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();
|
|
4293
4293
|
}, i.prototype.calcProjection = function() {
|
|
4294
4294
|
var s, u = this.options, l = u.layout, c = u.layoutId;
|
|
@@ -4297,9 +4297,9 @@ function Ea(t) {
|
|
|
4297
4297
|
yt(this.layoutCorrected, this.layout.actual), Tf(this.layoutCorrected, this.treeScale, this.path, !!this.resumingFrom || this !== f);
|
|
4298
4298
|
var d = f.target;
|
|
4299
4299
|
if (d) {
|
|
4300
|
-
this.projectionDelta || (this.projectionDelta =
|
|
4300
|
+
this.projectionDelta || (this.projectionDelta = fe(), this.projectionDeltaWithTransform = fe());
|
|
4301
4301
|
var p = this.treeScale.x, v = this.treeScale.y, m = this.projectionTransform;
|
|
4302
|
-
|
|
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));
|
|
4303
4303
|
}
|
|
4304
4304
|
}
|
|
4305
4305
|
}, i.prototype.hide = function() {
|
|
@@ -4312,17 +4312,17 @@ function Ea(t) {
|
|
|
4312
4312
|
}, i.prototype.setAnimationOrigin = function(s, u) {
|
|
4313
4313
|
var l = this, c;
|
|
4314
4314
|
u === void 0 && (u = !1);
|
|
4315
|
-
var f = this.snapshot, d = (f == null ? void 0 : f.latestValues) || {}, p =
|
|
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
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));
|
|
4318
4318
|
this.animationProgress = 0, this.mixTargetDelta = function(g) {
|
|
4319
|
-
var
|
|
4320
|
-
|
|
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;
|
|
4321
4321
|
}, this.mixTargetDelta(0);
|
|
4322
4322
|
}, i.prototype.startAnimation = function(s) {
|
|
4323
4323
|
var u = this, l, c;
|
|
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 && (
|
|
4325
|
-
|
|
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) {
|
|
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,10 +4335,10 @@ 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,
|
|
4338
|
+
this.currentAnimation && ((s = this.mixTargetDelta) === null || s === void 0 || s.call(this, Do), 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
|
-
!u || !l || !c || (yt(u, l),
|
|
4341
|
+
!u || !l || !c || (yt(u, l), Yt(u, f), le(this.projectionDeltaWithTransform, this.layoutCorrected, u, f));
|
|
4342
4342
|
}, i.prototype.registerSharedNode = function(s, u) {
|
|
4343
4343
|
var l, c, f;
|
|
4344
4344
|
this.sharedNodes.has(s) || this.sharedNodes.set(s, new vd());
|
|
@@ -4369,8 +4369,8 @@ function Ea(t) {
|
|
|
4369
4369
|
}, i.prototype.resetRotation = function() {
|
|
4370
4370
|
var s = this.options.visualElement;
|
|
4371
4371
|
if (s) {
|
|
4372
|
-
for (var u = !1, l = {}, c = 0; c <
|
|
4373
|
-
var f =
|
|
4372
|
+
for (var u = !1, l = {}, c = 0; c < Ln.length; c++) {
|
|
4373
|
+
var f = Ln[c], d = "rotate" + f;
|
|
4374
4374
|
s.getStaticValue(d) && (u = !0, l[d] = s.getStaticValue(d), s.setStaticValue(d, 0));
|
|
4375
4375
|
}
|
|
4376
4376
|
if (u) {
|
|
@@ -4396,15 +4396,15 @@ function Ea(t) {
|
|
|
4396
4396
|
var y = this.getLead();
|
|
4397
4397
|
if (!this.projectionDelta || !this.layout || !y.target) {
|
|
4398
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 && !
|
|
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;
|
|
4400
4400
|
}
|
|
4401
4401
|
var S = y.animationValues || y.latestValues;
|
|
4402
4402
|
this.applyTransformsToTarget(), v.transform = Bo(this.projectionDeltaWithTransform, this.treeScale, S), m && (v.transform = m(S, v.transform));
|
|
4403
|
-
var g = this.projectionDelta,
|
|
4404
|
-
v.transformOrigin = "".concat(
|
|
4403
|
+
var g = this.projectionDelta, w = g.x, x = g.y;
|
|
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],
|
|
4407
|
+
var R = ke[T], B = R.correct, V = R.applyTo, F = B(S[T], y);
|
|
4408
4408
|
if (V)
|
|
4409
4409
|
for (var J = V.length, $ = 0; $ < J; $++)
|
|
4410
4410
|
v[V[$]] = F;
|
|
@@ -4418,7 +4418,7 @@ function Ea(t) {
|
|
|
4418
4418
|
this.root.nodes.forEach(function(s) {
|
|
4419
4419
|
var u;
|
|
4420
4420
|
return (u = s.currentAnimation) === null || u === void 0 ? void 0 : u.stop();
|
|
4421
|
-
}), this.root.nodes.forEach(
|
|
4421
|
+
}), this.root.nodes.forEach(No), this.root.sharedNodes.clear();
|
|
4422
4422
|
}, i;
|
|
4423
4423
|
}()
|
|
4424
4424
|
);
|
|
@@ -4430,25 +4430,25 @@ function yd(t) {
|
|
|
4430
4430
|
var e, n, r, o, a = (n = (e = t.resumeFrom) === null || e === void 0 ? void 0 : e.snapshot) !== null && n !== void 0 ? n : t.snapshot;
|
|
4431
4431
|
if (t.isLead() && t.layout && a && t.hasListeners("didUpdate")) {
|
|
4432
4432
|
var i = t.layout, s = i.actual, u = i.measured;
|
|
4433
|
-
t.options.animationType === "size" ?
|
|
4434
|
-
var g = a.isShared ? a.measured[S] : a.layout[S],
|
|
4435
|
-
g.min = s[S].min, g.max = g.min +
|
|
4436
|
-
}) : t.options.animationType === "position" &&
|
|
4437
|
-
var g = a.isShared ? a.measured[S] : a.layout[S],
|
|
4438
|
-
g.max = g.min +
|
|
4433
|
+
t.options.animationType === "size" ? _t(function(S) {
|
|
4434
|
+
var g = a.isShared ? a.measured[S] : a.layout[S], w = Mt(g);
|
|
4435
|
+
g.min = s[S].min, g.max = g.min + w;
|
|
4436
|
+
}) : t.options.animationType === "position" && _t(function(S) {
|
|
4437
|
+
var g = a.isShared ? a.measured[S] : a.layout[S], w = Mt(s[S]);
|
|
4438
|
+
g.max = g.min + w;
|
|
4439
4439
|
});
|
|
4440
|
-
var l =
|
|
4441
|
-
|
|
4442
|
-
var c =
|
|
4443
|
-
a.isShared ?
|
|
4440
|
+
var l = fe();
|
|
4441
|
+
le(l, s, a.layout);
|
|
4442
|
+
var c = fe();
|
|
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
4446
|
var p = t.relativeParent, v = p.snapshot, m = p.layout;
|
|
4447
4447
|
if (v && m) {
|
|
4448
4448
|
var y = lt();
|
|
4449
|
-
|
|
4449
|
+
ce(y, a.layout, v.layout);
|
|
4450
4450
|
var h = lt();
|
|
4451
|
-
|
|
4451
|
+
ce(h, s, m.actual), Ca(y, h) || (d = !0);
|
|
4452
4452
|
}
|
|
4453
4453
|
}
|
|
4454
4454
|
t.notifyListeners("didUpdate", {
|
|
@@ -4465,20 +4465,20 @@ function yd(t) {
|
|
|
4465
4465
|
function Sd(t) {
|
|
4466
4466
|
t.clearSnapshot();
|
|
4467
4467
|
}
|
|
4468
|
-
function
|
|
4468
|
+
function No(t) {
|
|
4469
4469
|
t.clearMeasurements();
|
|
4470
4470
|
}
|
|
4471
4471
|
function bd(t) {
|
|
4472
4472
|
var e = t.options.visualElement;
|
|
4473
4473
|
e != null && e.getProps().onBeforeLayoutMeasure && e.notifyBeforeLayoutMeasure(), t.resetTransform();
|
|
4474
4474
|
}
|
|
4475
|
-
function
|
|
4475
|
+
function Pd(t) {
|
|
4476
4476
|
t.finishAnimation(), t.targetDelta = t.relativeTarget = t.target = void 0;
|
|
4477
4477
|
}
|
|
4478
|
-
function
|
|
4478
|
+
function wd(t) {
|
|
4479
4479
|
t.resolveTargetDelta();
|
|
4480
4480
|
}
|
|
4481
|
-
function
|
|
4481
|
+
function _d(t) {
|
|
4482
4482
|
t.calcProjection();
|
|
4483
4483
|
}
|
|
4484
4484
|
function xd(t) {
|
|
@@ -4487,14 +4487,14 @@ function xd(t) {
|
|
|
4487
4487
|
function Td(t) {
|
|
4488
4488
|
t.removeLeadSnapshot();
|
|
4489
4489
|
}
|
|
4490
|
-
function
|
|
4490
|
+
function Fo(t, e, n) {
|
|
4491
4491
|
t.translate = tt(e.translate, 0, n), t.scale = tt(e.scale, 1, n), t.origin = e.origin, t.originPoint = e.originPoint;
|
|
4492
4492
|
}
|
|
4493
|
-
function
|
|
4493
|
+
function jo(t, e, n, r) {
|
|
4494
4494
|
t.min = tt(e.min, n.min, r), t.max = tt(e.max, n.max, r);
|
|
4495
4495
|
}
|
|
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
4499
|
function Ed(t) {
|
|
4500
4500
|
return t.animationValues && t.animationValues.opacityExit !== void 0;
|
|
@@ -4512,11 +4512,11 @@ function Id(t, e) {
|
|
|
4512
4512
|
var o = n && n !== t.root ? n.instance : document, a = o.querySelector('[data-projection-id="'.concat(e, '"]'));
|
|
4513
4513
|
a && t.mount(a, !0);
|
|
4514
4514
|
}
|
|
4515
|
-
function
|
|
4515
|
+
function ko(t) {
|
|
4516
4516
|
t.min = Math.round(t.min), t.max = Math.round(t.max);
|
|
4517
4517
|
}
|
|
4518
|
-
function
|
|
4519
|
-
|
|
4518
|
+
function $o(t) {
|
|
4519
|
+
ko(t.x), ko(t.y);
|
|
4520
4520
|
}
|
|
4521
4521
|
var Ad = Ea({
|
|
4522
4522
|
attachResizeListener: function(t, e) {
|
|
@@ -4553,10 +4553,10 @@ var Ad = Ea({
|
|
|
4553
4553
|
checkIsScrollRoot: function(t) {
|
|
4554
4554
|
return window.getComputedStyle(t).position === "fixed";
|
|
4555
4555
|
}
|
|
4556
|
-
}), Rd =
|
|
4556
|
+
}), Rd = b(b(b(b({}, vf), Ac), Of), od), Ld = /* @__PURE__ */ xu(function(t, e) {
|
|
4557
4557
|
return ll(t, e, Rd, Qf, Md);
|
|
4558
4558
|
});
|
|
4559
|
-
function
|
|
4559
|
+
function Od() {
|
|
4560
4560
|
var t = !1, e = [], n = /* @__PURE__ */ new Set(), r = {
|
|
4561
4561
|
subscribe: function(o) {
|
|
4562
4562
|
return n.add(o), function() {
|
|
@@ -4600,11 +4600,11 @@ function Bd() {
|
|
|
4600
4600
|
};
|
|
4601
4601
|
return r;
|
|
4602
4602
|
}
|
|
4603
|
-
function
|
|
4604
|
-
var t = Pe(
|
|
4603
|
+
function Bd() {
|
|
4604
|
+
var t = Pe(Od);
|
|
4605
4605
|
return k(t.mount, []), t;
|
|
4606
4606
|
}
|
|
4607
|
-
var Dd =
|
|
4607
|
+
var Dd = Bd;
|
|
4608
4608
|
const Nd = ({
|
|
4609
4609
|
onClose: t,
|
|
4610
4610
|
threshold: e = 0.08,
|
|
@@ -4619,7 +4619,7 @@ const Nd = ({
|
|
|
4619
4619
|
transition: { type: "spring", stiffness: 300, damping: 30 }
|
|
4620
4620
|
});
|
|
4621
4621
|
};
|
|
4622
|
-
return /* @__PURE__ */
|
|
4622
|
+
return /* @__PURE__ */ P(
|
|
4623
4623
|
Ld.div,
|
|
4624
4624
|
{
|
|
4625
4625
|
ref: r,
|
|
@@ -4639,7 +4639,7 @@ const Nd = ({
|
|
|
4639
4639
|
height: e = "100%",
|
|
4640
4640
|
fill: n = "white",
|
|
4641
4641
|
...r
|
|
4642
|
-
}) => /* @__PURE__ */
|
|
4642
|
+
}) => /* @__PURE__ */ P(
|
|
4643
4643
|
"svg",
|
|
4644
4644
|
{
|
|
4645
4645
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4648,7 +4648,7 @@ const Nd = ({
|
|
|
4648
4648
|
fill: "none",
|
|
4649
4649
|
viewBox: "0 0 24 24",
|
|
4650
4650
|
...r,
|
|
4651
|
-
children: /* @__PURE__ */
|
|
4651
|
+
children: /* @__PURE__ */ P(
|
|
4652
4652
|
"path",
|
|
4653
4653
|
{
|
|
4654
4654
|
fill: n,
|
|
@@ -4669,24 +4669,24 @@ const Nd = ({
|
|
|
4669
4669
|
onClose: s,
|
|
4670
4670
|
className: u = ""
|
|
4671
4671
|
}) => {
|
|
4672
|
-
const [l, c] =
|
|
4672
|
+
const [l, c] = Pt(0), f = () => {
|
|
4673
4673
|
c((v) => v + 1);
|
|
4674
4674
|
}, d = () => {
|
|
4675
4675
|
n && n(), i && f();
|
|
4676
4676
|
};
|
|
4677
|
-
if ((t == null ? void 0 : t.length) == 0) return /* @__PURE__ */
|
|
4677
|
+
if ((t == null ? void 0 : t.length) == 0) return /* @__PURE__ */ P(Xn, {});
|
|
4678
4678
|
const p = a ? ({ children: v }) => v : Nd;
|
|
4679
4679
|
return /* @__PURE__ */ q(
|
|
4680
4680
|
"div",
|
|
4681
4681
|
{
|
|
4682
|
-
className:
|
|
4682
|
+
className: Ut(Rt.StoryPlayer, u, {
|
|
4683
4683
|
[Rt.inline]: a
|
|
4684
4684
|
}),
|
|
4685
4685
|
children: [
|
|
4686
|
-
/* @__PURE__ */
|
|
4687
|
-
/* @__PURE__ */
|
|
4688
|
-
/* @__PURE__ */
|
|
4689
|
-
/* @__PURE__ */
|
|
4686
|
+
/* @__PURE__ */ P("div", { className: Rt.Overlay, onClick: r }),
|
|
4687
|
+
/* @__PURE__ */ P("div", { className: Rt.StoryPlayer__Wrap, children: /* @__PURE__ */ q(p, { onClose: s, children: [
|
|
4688
|
+
/* @__PURE__ */ P("div", { className: Rt.CloseIcon, onClick: s, children: /* @__PURE__ */ P(Fd, {}) }),
|
|
4689
|
+
/* @__PURE__ */ P(
|
|
4690
4690
|
ou,
|
|
4691
4691
|
{
|
|
4692
4692
|
onStoryChange: o,
|
|
@@ -4707,7 +4707,7 @@ const Nd = ({
|
|
|
4707
4707
|
]
|
|
4708
4708
|
}
|
|
4709
4709
|
);
|
|
4710
|
-
}, kd = "_story_1f9eg_1", $d = "_BetSlip_Wrapper_1f9eg_13", Ud = "_BetSlip_ButtonWrap_1f9eg_25",
|
|
4710
|
+
}, kd = "_story_1f9eg_1", $d = "_BetSlip_Wrapper_1f9eg_13", Ud = "_BetSlip_ButtonWrap_1f9eg_25", de = {
|
|
4711
4711
|
story: kd,
|
|
4712
4712
|
BetSlip_Wrapper: $d,
|
|
4713
4713
|
BetSlip_ButtonWrap: Ud
|
|
@@ -4727,14 +4727,14 @@ 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,
|
|
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 = (
|
|
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
4732
|
var F, J, $, j, I;
|
|
4733
|
-
const R = (F = T == null ? void 0 : T.odd) == null ? void 0 : F.price,
|
|
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);
|
|
4734
4734
|
return {
|
|
4735
4735
|
marketName: (j = T == null ? void 0 : T.market) == null ? void 0 : j.name,
|
|
4736
4736
|
name: (I = T == null ? void 0 : T.odd) == null ? void 0 : I.name,
|
|
4737
|
-
cuota:
|
|
4737
|
+
cuota: B,
|
|
4738
4738
|
hasPA: !!V,
|
|
4739
4739
|
paParam: V == null ? void 0 : V.parameter
|
|
4740
4740
|
};
|
|
@@ -4755,58 +4755,53 @@ class zd {
|
|
|
4755
4755
|
return { selections: r, stake: n, cuotaTotal: o, gananciaTotal: a };
|
|
4756
4756
|
}
|
|
4757
4757
|
}
|
|
4758
|
-
const Gd = "
|
|
4758
|
+
const Gd = "_BetSlip_1q2rd_1", Kd = "_BetSlip_Title_1q2rd_14", Yd = "_SelectionItemWrap_1q2rd_21", qd = "_BetSlip_ButtonWrap_1q2rd_35", De = {
|
|
4759
4759
|
BetSlip: Gd,
|
|
4760
4760
|
BetSlip_Title: Kd,
|
|
4761
4761
|
SelectionItemWrap: Yd,
|
|
4762
|
-
BetSlip_ButtonWrap: qd
|
|
4763
|
-
|
|
4764
|
-
|
|
4765
|
-
|
|
4766
|
-
|
|
4767
|
-
|
|
4768
|
-
|
|
4769
|
-
|
|
4770
|
-
|
|
4771
|
-
|
|
4772
|
-
|
|
4773
|
-
|
|
4774
|
-
SelectionItem__BB: av,
|
|
4775
|
-
SelectionItem__BB__mn: sv
|
|
4776
|
-
}, uv = ({ selection: t }) => {
|
|
4762
|
+
BetSlip_ButtonWrap: qd
|
|
4763
|
+
}, Xd = "_SelectionItem_1ut02_1", Zd = "_SelectionItemGrid_1ut02_11", Jd = "_SelectionItem_name_1ut02_17", Qd = "_SelectionItem_marketName_1ut02_21", tv = "_SelectionItem_hasPA_1ut02_28", ev = "_SelectionItem_fechahora_1ut02_37", nv = "_SelectionItem__Wrap_1ut02_42", rv = "_SelectionItem__BB_1ut02_47", ov = "_SelectionItem__BB__mn_1ut02_80", dt = {
|
|
4764
|
+
SelectionItem: Xd,
|
|
4765
|
+
SelectionItemGrid: Zd,
|
|
4766
|
+
SelectionItem_name: Jd,
|
|
4767
|
+
SelectionItem_marketName: Qd,
|
|
4768
|
+
SelectionItem_hasPA: tv,
|
|
4769
|
+
SelectionItem_fechahora: ev,
|
|
4770
|
+
SelectionItem__Wrap: nv,
|
|
4771
|
+
SelectionItem__BB: rv,
|
|
4772
|
+
SelectionItem__BB__mn: ov
|
|
4773
|
+
}, iv = ({ selection: t }) => {
|
|
4777
4774
|
var e, n;
|
|
4778
4775
|
return /* @__PURE__ */ q("div", { className: dt.SelectionItem, children: [
|
|
4779
4776
|
/* @__PURE__ */ q("div", { className: dt.SelectionItemGrid, children: [
|
|
4780
|
-
/* @__PURE__ */
|
|
4781
|
-
/* @__PURE__ */
|
|
4777
|
+
/* @__PURE__ */ P("div", { className: dt.SelectionItem_name, children: t != null && t.subSelections ? "Crear Apuesta" : t.name }),
|
|
4778
|
+
/* @__PURE__ */ P("div", { className: dt.SelectionItem_sc, children: t.cuota.toFixed(2) })
|
|
4782
4779
|
] }),
|
|
4783
|
-
t != null && t.subSelections ? null : /* @__PURE__ */
|
|
4784
|
-
/* @__PURE__ */
|
|
4785
|
-
t.hasPA && /* @__PURE__ */
|
|
4780
|
+
t != null && t.subSelections ? null : /* @__PURE__ */ P("div", { className: dt.SelectionItemGrid, children: /* @__PURE__ */ q("div", { className: dt.SelectionItem_marketName, children: [
|
|
4781
|
+
/* @__PURE__ */ P("div", { children: t.marketName }),
|
|
4782
|
+
t.hasPA && /* @__PURE__ */ P("div", { className: dt.SelectionItem_hasPA, children: "PA" })
|
|
4786
4783
|
] }) }),
|
|
4787
4784
|
/* @__PURE__ */ q("div", { className: dt.SelectionItemGrid, children: [
|
|
4788
|
-
/* @__PURE__ */
|
|
4789
|
-
/* @__PURE__ */
|
|
4785
|
+
/* @__PURE__ */ P("div", { className: dt.SelectionItem_event, children: t.event }),
|
|
4786
|
+
/* @__PURE__ */ P("div", { className: dt.SelectionItem_fechahora, children: t.fechaHora })
|
|
4790
4787
|
] }),
|
|
4791
|
-
t != null && t.subSelections && ((e = t == null ? void 0 : t.subSelections) == null ? void 0 : e.length) > 0 ? /* @__PURE__ */
|
|
4792
|
-
/* @__PURE__ */
|
|
4793
|
-
/* @__PURE__ */
|
|
4794
|
-
] }, o)) }) : /* @__PURE__ */
|
|
4788
|
+
t != null && t.subSelections && ((e = t == null ? void 0 : t.subSelections) == null ? void 0 : e.length) > 0 ? /* @__PURE__ */ P("div", { className: dt.SelectionItem__Wrap, children: (n = t.subSelections) == null ? void 0 : n.map((r, o) => /* @__PURE__ */ q("div", { className: dt.SelectionItem__BB, children: [
|
|
4789
|
+
/* @__PURE__ */ P("div", { className: dt.SelectionItem__BB__mn, children: r == null ? void 0 : r.marketName }),
|
|
4790
|
+
/* @__PURE__ */ P("div", { children: r == null ? void 0 : r.name })
|
|
4791
|
+
] }, o)) }) : /* @__PURE__ */ P(Xn, {})
|
|
4795
4792
|
] });
|
|
4796
|
-
},
|
|
4797
|
-
PulseButton:
|
|
4798
|
-
PulseButton_BG:
|
|
4799
|
-
|
|
4800
|
-
|
|
4801
|
-
|
|
4802
|
-
|
|
4803
|
-
/* @__PURE__ */ b("a", { className: dv.Button, href: e, children: t })
|
|
4804
|
-
] }), vv = ({
|
|
4793
|
+
}, av = "_PulseButton_1sl45_1", sv = "_PulseButton_BG_1sl45_10", uv = "_BetSlip__NextIcon_1sl45_21", Cn = {
|
|
4794
|
+
PulseButton: av,
|
|
4795
|
+
PulseButton_BG: sv,
|
|
4796
|
+
BetSlip__NextIcon: uv
|
|
4797
|
+
}, lv = "_Button_1nr6o_1", cv = {
|
|
4798
|
+
Button: lv
|
|
4799
|
+
}, fv = ({
|
|
4805
4800
|
width: t = "100%",
|
|
4806
4801
|
height: e = "100%",
|
|
4807
4802
|
fill: n = "white",
|
|
4808
4803
|
...r
|
|
4809
|
-
}) => /* @__PURE__ */
|
|
4804
|
+
}) => /* @__PURE__ */ P(
|
|
4810
4805
|
"svg",
|
|
4811
4806
|
{
|
|
4812
4807
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4814,7 +4809,7 @@ const Gd = "_BetSlip_z8bgq_1", Kd = "_BetSlip_Title_z8bgq_14", Yd = "_SelectionI
|
|
|
4814
4809
|
height: e,
|
|
4815
4810
|
fill: n,
|
|
4816
4811
|
...r,
|
|
4817
|
-
children: /* @__PURE__ */
|
|
4812
|
+
children: /* @__PURE__ */ P(
|
|
4818
4813
|
"path",
|
|
4819
4814
|
{
|
|
4820
4815
|
fill: "#fff",
|
|
@@ -4822,25 +4817,28 @@ const Gd = "_BetSlip_z8bgq_1", Kd = "_BetSlip_Title_z8bgq_14", Yd = "_SelectionI
|
|
|
4822
4817
|
}
|
|
4823
4818
|
)
|
|
4824
4819
|
}
|
|
4825
|
-
),
|
|
4820
|
+
), Va = ({ children: t, href: e }) => /* @__PURE__ */ q("div", { className: Cn.PulseButton, children: [
|
|
4821
|
+
/* @__PURE__ */ P("div", { className: Cn.PulseButton_BG }),
|
|
4822
|
+
/* @__PURE__ */ q("a", { className: cv.Button, href: e, children: [
|
|
4823
|
+
t,
|
|
4824
|
+
/* @__PURE__ */ P("div", { className: Cn.BetSlip__NextIcon, children: /* @__PURE__ */ P(fv, {}) })
|
|
4825
|
+
] })
|
|
4826
|
+
] }), dv = ({ slip: t, title: e }) => {
|
|
4826
4827
|
var n;
|
|
4827
|
-
return /* @__PURE__ */ q("div", { className:
|
|
4828
|
-
/* @__PURE__ */ q("div", { className:
|
|
4829
|
-
e ? /* @__PURE__ */
|
|
4830
|
-
(n = t == null ? void 0 : t.selections) == null ? void 0 : n.map((r, o) => /* @__PURE__ */
|
|
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,
|
|
4831
|
+
(n = t == null ? void 0 : t.selections) == null ? void 0 : n.map((r, o) => /* @__PURE__ */ P(iv, { selection: r }, `${Date.now()}-${o}`))
|
|
4831
4832
|
] }),
|
|
4832
|
-
/* @__PURE__ */
|
|
4833
|
+
/* @__PURE__ */ P("div", { className: Ut(De.BetSlip_ButtonWrap), children: /* @__PURE__ */ P(
|
|
4833
4834
|
Va,
|
|
4834
4835
|
{
|
|
4835
4836
|
href: "https://www.apuestatotal.com/apuestas-deportivas/?reservationCode=HHHH",
|
|
4836
|
-
children:
|
|
4837
|
-
/* @__PURE__ */ b("div", { className: $t.BetSlip_BtnText__Text, children: t == null ? void 0 : t.cuotaTotal }),
|
|
4838
|
-
/* @__PURE__ */ b("div", { className: $t.BetSlip__NextIcon, children: /* @__PURE__ */ b(vv, {}) })
|
|
4839
|
-
] })
|
|
4837
|
+
children: t == null ? void 0 : t.cuotaTotal
|
|
4840
4838
|
}
|
|
4841
4839
|
) })
|
|
4842
4840
|
] });
|
|
4843
|
-
},
|
|
4841
|
+
}, vv = {
|
|
4844
4842
|
stakes: [
|
|
4845
4843
|
{
|
|
4846
4844
|
value: 10,
|
|
@@ -5038,48 +5036,48 @@ const Gd = "_BetSlip_z8bgq_1", Kd = "_BetSlip_Title_z8bgq_14", Yd = "_SelectionI
|
|
|
5038
5036
|
betType: 1,
|
|
5039
5037
|
stakeAdjustment: { type: 0, value: 0 },
|
|
5040
5038
|
fullCoverData: { type: 1, label: null }
|
|
5041
|
-
},
|
|
5039
|
+
}, pv = ({ story: t }) => {
|
|
5042
5040
|
let e = Uo;
|
|
5043
|
-
return (t == null ? void 0 : t.type) == "promo" && (e = Uo), (t == null ? void 0 : t.type) == "betting" && (e =
|
|
5044
|
-
}, Uo = ({ story: t }) => /* @__PURE__ */ q("div", { className:
|
|
5045
|
-
/* @__PURE__ */
|
|
5046
|
-
t != null && t.btn_text && (t != null && t.btn_url) ? /* @__PURE__ */
|
|
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 });
|
|
5042
|
+
}, Uo = ({ story: t }) => /* @__PURE__ */ q("div", { className: Ut(de.story), children: [
|
|
5043
|
+
/* @__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: [
|
|
5047
5045
|
" ",
|
|
5048
5046
|
t == null ? void 0 : t.btn_text
|
|
5049
5047
|
] }) }) }) : null
|
|
5050
|
-
] }),
|
|
5051
|
-
const e =
|
|
5052
|
-
return /* @__PURE__ */ q("div", { className:
|
|
5053
|
-
/* @__PURE__ */
|
|
5054
|
-
/* @__PURE__ */
|
|
5055
|
-
|
|
5048
|
+
] }), mv = ({ story: t }) => {
|
|
5049
|
+
const e = vv;
|
|
5050
|
+
return /* @__PURE__ */ q("div", { className: Ut(de.story), children: [
|
|
5051
|
+
/* @__PURE__ */ P("img", { src: t == null ? void 0 : t.image, alt: "" }),
|
|
5052
|
+
/* @__PURE__ */ P("div", { className: de.BetSlip_Wrapper, children: /* @__PURE__ */ P(
|
|
5053
|
+
dv,
|
|
5056
5054
|
{
|
|
5057
5055
|
slip: zd.fromRaw(e),
|
|
5058
5056
|
title: t == null ? void 0 : t.coupon_title
|
|
5059
5057
|
}
|
|
5060
5058
|
) })
|
|
5061
5059
|
] });
|
|
5062
|
-
},
|
|
5063
|
-
StoryHeaderPlayer:
|
|
5064
|
-
StoryHeaderPlayer__ProfileStory:
|
|
5065
|
-
StoryHeaderPlayer__title:
|
|
5066
|
-
},
|
|
5060
|
+
}, hv = "_StoryHeaderPlayer_1oqtd_1", gv = "_StoryHeaderPlayer__ProfileStory_1oqtd_18", yv = "_StoryHeaderPlayer__title_1oqtd_24", En = {
|
|
5061
|
+
StoryHeaderPlayer: hv,
|
|
5062
|
+
StoryHeaderPlayer__ProfileStory: gv,
|
|
5063
|
+
StoryHeaderPlayer__title: yv
|
|
5064
|
+
}, Sv = ({
|
|
5067
5065
|
story: t,
|
|
5068
5066
|
onProfileClick: e = () => null,
|
|
5069
5067
|
color: n,
|
|
5070
5068
|
image: r
|
|
5071
|
-
}) => /* @__PURE__ */ q("div", { className:
|
|
5072
|
-
/* @__PURE__ */
|
|
5069
|
+
}) => /* @__PURE__ */ q("div", { className: En.StoryHeaderPlayer, children: [
|
|
5070
|
+
/* @__PURE__ */ P(
|
|
5073
5071
|
zo,
|
|
5074
5072
|
{
|
|
5075
|
-
className:
|
|
5073
|
+
className: En.StoryHeaderPlayer__ProfileStory,
|
|
5076
5074
|
onProfileClick: e,
|
|
5077
5075
|
color: n,
|
|
5078
5076
|
image: r
|
|
5079
5077
|
}
|
|
5080
5078
|
),
|
|
5081
|
-
/* @__PURE__ */
|
|
5082
|
-
] }),
|
|
5079
|
+
/* @__PURE__ */ P("div", { className: En.StoryHeaderPlayer__title, children: t == null ? void 0 : t.title })
|
|
5080
|
+
] }), bv = ({ container: t = "HOME" } = {}) => {
|
|
5083
5081
|
const e = "apuestotal-stories-" + t;
|
|
5084
5082
|
function n() {
|
|
5085
5083
|
const u = localStorage.getItem(e);
|
|
@@ -5133,8 +5131,8 @@ const Gd = "_BetSlip_z8bgq_1", Kd = "_BetSlip_Title_z8bgq_14", Yd = "_SelectionI
|
|
|
5133
5131
|
sortProfilesBySeenStatus: s
|
|
5134
5132
|
};
|
|
5135
5133
|
};
|
|
5136
|
-
function
|
|
5137
|
-
const n =
|
|
5134
|
+
function Pv(t, e) {
|
|
5135
|
+
const n = ve(() => {
|
|
5138
5136
|
e();
|
|
5139
5137
|
}, [e]);
|
|
5140
5138
|
k(() => {
|
|
@@ -5150,8 +5148,8 @@ function wv(t, e) {
|
|
|
5150
5148
|
};
|
|
5151
5149
|
}, [t, n]);
|
|
5152
5150
|
}
|
|
5153
|
-
function
|
|
5154
|
-
const n = Z([]), r =
|
|
5151
|
+
function wv({ scroll: t, targets: e }) {
|
|
5152
|
+
const n = Z([]), r = ve((a) => {
|
|
5155
5153
|
n.current.forEach(({ el: i, originalOverflow: s }) => {
|
|
5156
5154
|
i.style.overflow = s;
|
|
5157
5155
|
}), n.current = [], a.forEach((i) => {
|
|
@@ -5172,7 +5170,7 @@ function xv({ scroll: t, targets: e }) {
|
|
|
5172
5170
|
}), s.style.overflow = "hidden";
|
|
5173
5171
|
}) : console.warn("useScrollLock: target no soportado", i);
|
|
5174
5172
|
});
|
|
5175
|
-
}, []), o =
|
|
5173
|
+
}, []), o = ve(() => {
|
|
5176
5174
|
n.current.forEach(({ el: a, originalOverflow: i }) => {
|
|
5177
5175
|
a.style.overflow = i;
|
|
5178
5176
|
}), n.current = [];
|
|
@@ -5188,21 +5186,21 @@ function xv({ scroll: t, targets: e }) {
|
|
|
5188
5186
|
}
|
|
5189
5187
|
}, [t]), { disableScroll: r, enableScroll: o };
|
|
5190
5188
|
}
|
|
5191
|
-
const
|
|
5189
|
+
const Vv = ({ className: t = "", data: e, isPortal: n = !0 }) => {
|
|
5192
5190
|
var y;
|
|
5193
|
-
const [r, o] =
|
|
5191
|
+
const [r, o] = Pt(null), a = (h) => o(h), {
|
|
5194
5192
|
markStorySeen: i,
|
|
5195
5193
|
hasSeenAllStories: s,
|
|
5196
5194
|
getNextUnseenStoryIndex: u,
|
|
5197
5195
|
sortProfilesBySeenStatus: l
|
|
5198
|
-
} =
|
|
5196
|
+
} = bv(), c = l(
|
|
5199
5197
|
e == null ? void 0 : e.filter((h) => h.stories.length)
|
|
5200
5198
|
), f = Z(c);
|
|
5201
5199
|
k(() => {
|
|
5202
5200
|
f.current = c;
|
|
5203
5201
|
}, [c]);
|
|
5204
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) ?? [];
|
|
5205
|
-
|
|
5203
|
+
Pv(r, () => o(null)), wv({
|
|
5206
5204
|
targets: [document],
|
|
5207
5205
|
scroll: r ? "OFF" : "ON"
|
|
5208
5206
|
});
|
|
@@ -5212,10 +5210,10 @@ const Av = ({ className: t = "", data: e, isPortal: n = !0 }) => {
|
|
|
5212
5210
|
if (!r) return null;
|
|
5213
5211
|
const h = p.map((g) => ({
|
|
5214
5212
|
type: "component",
|
|
5215
|
-
component: ({ pause:
|
|
5213
|
+
component: ({ pause: w, resume: x, story: T, isPaused: R }) => (i(d == null ? void 0 : d.id, g.id), /* @__PURE__ */ P(pv, { story: g })),
|
|
5216
5214
|
duration: g != null && g.duration ? (g == null ? void 0 : g.duration) * 1e3 : 7e3,
|
|
5217
|
-
header: () => /* @__PURE__ */
|
|
5218
|
-
|
|
5215
|
+
header: () => /* @__PURE__ */ P(
|
|
5216
|
+
Sv,
|
|
5219
5217
|
{
|
|
5220
5218
|
color: d == null ? void 0 : d.color,
|
|
5221
5219
|
image: d == null ? void 0 : d.avatar,
|
|
@@ -5223,7 +5221,7 @@ const Av = ({ className: t = "", data: e, isPortal: n = !0 }) => {
|
|
|
5223
5221
|
},
|
|
5224
5222
|
g == null ? void 0 : g.id
|
|
5225
5223
|
)
|
|
5226
|
-
})), S = /* @__PURE__ */
|
|
5224
|
+
})), S = /* @__PURE__ */ P(
|
|
5227
5225
|
jd,
|
|
5228
5226
|
{
|
|
5229
5227
|
onClose: v,
|
|
@@ -5234,10 +5232,10 @@ const Av = ({ className: t = "", data: e, isPortal: n = !0 }) => {
|
|
|
5234
5232
|
var x;
|
|
5235
5233
|
const g = f.current.findIndex(
|
|
5236
5234
|
(T) => T.id == r
|
|
5237
|
-
),
|
|
5235
|
+
), w = f.current.filter(
|
|
5238
5236
|
(T) => T.id !== r
|
|
5239
5237
|
);
|
|
5240
|
-
f.current =
|
|
5238
|
+
f.current = w, (x = f.current[g]) != null && x.id ? o(f.current[g].id) : (o(null), f.current = c);
|
|
5241
5239
|
},
|
|
5242
5240
|
currentIndex: d ? u(d) : 0,
|
|
5243
5241
|
stories: h
|
|
@@ -5246,14 +5244,14 @@ const Av = ({ className: t = "", data: e, isPortal: n = !0 }) => {
|
|
|
5246
5244
|
);
|
|
5247
5245
|
return n ? Ra.createPortal(S, document.body) : S;
|
|
5248
5246
|
};
|
|
5249
|
-
return /* @__PURE__ */ q(
|
|
5250
|
-
/* @__PURE__ */
|
|
5251
|
-
|
|
5247
|
+
return /* @__PURE__ */ q(Xn, { children: [
|
|
5248
|
+
/* @__PURE__ */ P(
|
|
5249
|
+
Ps,
|
|
5252
5250
|
{
|
|
5253
|
-
wrapperClassName:
|
|
5251
|
+
wrapperClassName: Ut(sn.ScrollMenu, t),
|
|
5254
5252
|
scrollContainerClassName: sn.scrollContainerClassName,
|
|
5255
5253
|
itemClassName: sn.itemClassName,
|
|
5256
|
-
children: c.map((h, S) => /* @__PURE__ */
|
|
5254
|
+
children: c.map((h, S) => /* @__PURE__ */ P(
|
|
5257
5255
|
zo,
|
|
5258
5256
|
{
|
|
5259
5257
|
hasSeenAllStories: s(h),
|
|
@@ -5270,10 +5268,10 @@ const Av = ({ className: t = "", data: e, isPortal: n = !0 }) => {
|
|
|
5270
5268
|
] });
|
|
5271
5269
|
};
|
|
5272
5270
|
export {
|
|
5273
|
-
|
|
5274
|
-
|
|
5271
|
+
pv as ManagmentStoryComponent,
|
|
5272
|
+
Vv as ProfileStories,
|
|
5275
5273
|
zo as ProfileStory,
|
|
5276
|
-
|
|
5274
|
+
Sv as StoryHeaderPlayer,
|
|
5277
5275
|
jd as StoryPlayer
|
|
5278
5276
|
};
|
|
5279
5277
|
//# sourceMappingURL=index.esm.js.map
|