@arthurzakharov/ui-kit 2.9.0 → 2.11.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/animations/fade-grow/fade-grow.component.js +1 -1
- package/dist/animations/fade-scale/fade-scale.component.js +1 -1
- package/dist/animations/fade-slide/fade-slide.component.js +1 -1
- package/dist/animations/rotate/rotate.component.js +1 -1
- package/dist/assets/timetable-C4OGIa6M.css +1 -0
- package/dist/components/dialog/dialog.component.js +2 -2
- package/dist/components/payment/components/glass/glass.component.js +2 -2
- package/dist/components/sign-cta-tracker/index.d.ts +1 -0
- package/dist/components/sign-cta-tracker/index.js +4 -0
- package/dist/components/sign-cta-tracker/sign-cta-tracker.component.d.ts +6 -0
- package/dist/components/sign-cta-tracker/sign-cta-tracker.component.js +49 -0
- package/dist/components/timetable/index.d.ts +1 -0
- package/dist/components/timetable/index.js +4 -0
- package/dist/components/timetable/timetable.component.d.ts +6 -0
- package/dist/components/timetable/timetable.component.js +16 -0
- package/dist/{index-CPvYWadf.js → index-xNojbyIY.js} +1 -1
- package/dist/main.d.ts +3 -1
- package/dist/main.js +138 -95
- package/dist/{proxy-CmTphuYR.js → proxy-BK6LJoDO.js} +299 -311
- package/dist/resolve-elements-BwynSVFO.js +14 -0
- package/dist/utils/functions/functions.util.d.ts +42 -1
- package/dist/utils/functions/functions.util.js +221 -33
- package/dist/utils/functions/index.js +43 -8
- package/package.json +2 -1
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { createContext as Tt, useRef as it, useLayoutEffect as Fr, useEffect as _e, useContext as O, useId as Ir, useCallback as $s, useMemo as ne, Fragment as zs, createElement as Or, useInsertionEffect as Hs, forwardRef as jr, Component as Nr } from "react";
|
|
2
2
|
import { jsxs as Ur, jsx as Gs } from "react/jsx-runtime";
|
|
3
|
-
|
|
3
|
+
import { r as _s } from "./resolve-elements-BwynSVFO.js";
|
|
4
|
+
const Xs = Tt({});
|
|
4
5
|
function Wr(t) {
|
|
5
6
|
const e = it(null);
|
|
6
7
|
return e.current === null && (e.current = t()), e.current;
|
|
7
8
|
}
|
|
8
|
-
const
|
|
9
|
+
const Ys = typeof window < "u", Kr = Ys ? Fr : _e, Xe = /* @__PURE__ */ Tt(null);
|
|
9
10
|
function Ye(t, e) {
|
|
10
11
|
t.indexOf(e) === -1 && t.push(e);
|
|
11
12
|
}
|
|
@@ -14,25 +15,25 @@ function Xt(t, e) {
|
|
|
14
15
|
n > -1 && t.splice(n, 1);
|
|
15
16
|
}
|
|
16
17
|
const X = (t, e, n) => n > e ? e : n < t ? t : n;
|
|
17
|
-
function
|
|
18
|
+
function Pe(t, e) {
|
|
18
19
|
return e ? `${t}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${e}` : t;
|
|
19
20
|
}
|
|
20
21
|
let xt = () => {
|
|
21
22
|
}, Y = () => {
|
|
22
23
|
};
|
|
23
24
|
typeof process < "u" && process.env?.NODE_ENV !== "production" && (xt = (t, e, n) => {
|
|
24
|
-
!t && typeof console < "u" && console.warn(
|
|
25
|
+
!t && typeof console < "u" && console.warn(Pe(e, n));
|
|
25
26
|
}, Y = (t, e, n) => {
|
|
26
27
|
if (!t)
|
|
27
|
-
throw new Error(
|
|
28
|
+
throw new Error(Pe(e, n));
|
|
28
29
|
});
|
|
29
|
-
const q = {},
|
|
30
|
-
function
|
|
30
|
+
const q = {}, qs = (t) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);
|
|
31
|
+
function Zs(t) {
|
|
31
32
|
return typeof t == "object" && t !== null;
|
|
32
33
|
}
|
|
33
|
-
const
|
|
34
|
+
const Js = (t) => /^0[^.\s]+$/u.test(t);
|
|
34
35
|
// @__NO_SIDE_EFFECTS__
|
|
35
|
-
function
|
|
36
|
+
function Qs(t) {
|
|
36
37
|
let e;
|
|
37
38
|
return () => (e === void 0 && (e = t()), e);
|
|
38
39
|
}
|
|
@@ -66,18 +67,18 @@ class qe {
|
|
|
66
67
|
}
|
|
67
68
|
}
|
|
68
69
|
const K = /* @__NO_SIDE_EFFECTS__ */ (t) => t * 1e3, U = /* @__NO_SIDE_EFFECTS__ */ (t) => t / 1e3;
|
|
69
|
-
function
|
|
70
|
+
function ti(t, e) {
|
|
70
71
|
return e ? t * (1e3 / e) : 0;
|
|
71
72
|
}
|
|
72
73
|
const Dn = /* @__PURE__ */ new Set();
|
|
73
74
|
function Ze(t, e, n) {
|
|
74
|
-
t || Dn.has(e) || (console.warn(
|
|
75
|
+
t || Dn.has(e) || (console.warn(Pe(e, n)), Dn.add(e));
|
|
75
76
|
}
|
|
76
|
-
const
|
|
77
|
+
const ei = (t, e, n) => (((1 - 3 * n + 3 * e) * t + (3 * n - 6 * e)) * t + 3 * e) * t, zr = 1e-7, Hr = 12;
|
|
77
78
|
function Gr(t, e, n, s, i) {
|
|
78
79
|
let o, r, a = 0;
|
|
79
80
|
do
|
|
80
|
-
r = e + (n - e) / 2, o =
|
|
81
|
+
r = e + (n - e) / 2, o = ei(r, s, i) - t, o > 0 ? n = r : e = r;
|
|
81
82
|
while (Math.abs(o) > zr && ++a < Hr);
|
|
82
83
|
return r;
|
|
83
84
|
}
|
|
@@ -85,22 +86,22 @@ function Ft(t, e, n, s) {
|
|
|
85
86
|
if (t === e && n === s)
|
|
86
87
|
return W;
|
|
87
88
|
const i = (o) => Gr(o, 0, 1, t, n);
|
|
88
|
-
return (o) => o === 0 || o === 1 ? o :
|
|
89
|
+
return (o) => o === 0 || o === 1 ? o : ei(i(o), e, s);
|
|
89
90
|
}
|
|
90
|
-
const
|
|
91
|
+
const ni = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, si = (t) => (e) => 1 - t(1 - e), ii = /* @__PURE__ */ Ft(0.33, 1.53, 0.69, 0.99), Je = /* @__PURE__ */ si(ii), ri = /* @__PURE__ */ ni(Je), oi = (t) => (t *= 2) < 1 ? 0.5 * Je(t) : 0.5 * (2 - Math.pow(2, -10 * (t - 1))), Qe = (t) => 1 - Math.sin(Math.acos(t)), ai = si(Qe), li = ni(Qe), _r = /* @__PURE__ */ Ft(0.42, 0, 1, 1), Xr = /* @__PURE__ */ Ft(0, 0, 0.58, 1), ci = /* @__PURE__ */ Ft(0.42, 0, 0.58, 1), Yr = (t) => Array.isArray(t) && typeof t[0] != "number", ui = (t) => Array.isArray(t) && typeof t[0] == "number", Mn = {
|
|
91
92
|
linear: W,
|
|
92
93
|
easeIn: _r,
|
|
93
|
-
easeInOut:
|
|
94
|
+
easeInOut: ci,
|
|
94
95
|
easeOut: Xr,
|
|
95
96
|
circIn: Qe,
|
|
96
|
-
circInOut:
|
|
97
|
-
circOut:
|
|
97
|
+
circInOut: li,
|
|
98
|
+
circOut: ai,
|
|
98
99
|
backIn: Je,
|
|
99
|
-
backInOut:
|
|
100
|
-
backOut:
|
|
101
|
-
anticipate:
|
|
100
|
+
backInOut: ri,
|
|
101
|
+
backOut: ii,
|
|
102
|
+
anticipate: oi
|
|
102
103
|
}, qr = (t) => typeof t == "string", Cn = (t) => {
|
|
103
|
-
if (
|
|
104
|
+
if (ui(t)) {
|
|
104
105
|
Y(t.length === 4, "Cubic bezier arrays must contain four numerical values.", "cubic-bezier-length");
|
|
105
106
|
const [e, n, s, i] = t;
|
|
106
107
|
return Ft(e, n, s, i);
|
|
@@ -164,27 +165,27 @@ function Zr(t, e) {
|
|
|
164
165
|
return c;
|
|
165
166
|
}
|
|
166
167
|
const Jr = 40;
|
|
167
|
-
function
|
|
168
|
+
function hi(t, e) {
|
|
168
169
|
let n = !1, s = !0;
|
|
169
170
|
const i = {
|
|
170
171
|
delta: 0,
|
|
171
172
|
timestamp: 0,
|
|
172
173
|
isProcessing: !1
|
|
173
|
-
}, o = () => n = !0, r = jt.reduce((y,
|
|
174
|
+
}, o = () => n = !0, r = jt.reduce((y, S) => (y[S] = Zr(o), y), {}), { setup: a, read: l, resolveKeyframes: c, preUpdate: u, update: h, preRender: f, render: d, postRender: m } = r, v = () => {
|
|
174
175
|
const y = q.useManualTiming ? i.timestamp : performance.now();
|
|
175
176
|
n = !1, q.useManualTiming || (i.delta = s ? 1e3 / 60 : Math.max(Math.min(y - i.timestamp, Jr), 1)), i.timestamp = y, i.isProcessing = !0, a.process(i), l.process(i), c.process(i), u.process(i), h.process(i), f.process(i), d.process(i), m.process(i), i.isProcessing = !1, n && e && (s = !1, t(v));
|
|
176
177
|
}, g = () => {
|
|
177
178
|
n = !0, s = !0, i.isProcessing || t(v);
|
|
178
179
|
};
|
|
179
|
-
return { schedule: jt.reduce((y,
|
|
180
|
-
const w = r[
|
|
181
|
-
return y[
|
|
180
|
+
return { schedule: jt.reduce((y, S) => {
|
|
181
|
+
const w = r[S];
|
|
182
|
+
return y[S] = (b, C = !1, P = !1) => (n || g(), w.schedule(b, C, P)), y;
|
|
182
183
|
}, {}), cancel: (y) => {
|
|
183
|
-
for (let
|
|
184
|
-
r[jt[
|
|
184
|
+
for (let S = 0; S < jt.length; S++)
|
|
185
|
+
r[jt[S]].cancel(y);
|
|
185
186
|
}, state: i, steps: r };
|
|
186
187
|
}
|
|
187
|
-
const { schedule:
|
|
188
|
+
const { schedule: V, cancel: Q, state: L, steps: oe } = /* @__PURE__ */ hi(typeof requestAnimationFrame < "u" ? requestAnimationFrame : W, !0);
|
|
188
189
|
let Wt;
|
|
189
190
|
function Qr() {
|
|
190
191
|
Wt = void 0;
|
|
@@ -194,7 +195,7 @@ const B = {
|
|
|
194
195
|
set: (t) => {
|
|
195
196
|
Wt = t, queueMicrotask(Qr);
|
|
196
197
|
}
|
|
197
|
-
},
|
|
198
|
+
}, fi = (t) => (e) => typeof e == "string" && e.startsWith(t), di = /* @__PURE__ */ fi("--"), to = /* @__PURE__ */ fi("var(--"), tn = (t) => to(t) ? eo.test(t.split("/*")[0].trim()) : !1, eo = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
|
|
198
199
|
function En(t) {
|
|
199
200
|
return typeof t != "string" ? !1 : t.split("/*")[0].includes("var(--");
|
|
200
201
|
}
|
|
@@ -208,11 +209,11 @@ const wt = {
|
|
|
208
209
|
}, Nt = {
|
|
209
210
|
...wt,
|
|
210
211
|
default: 1
|
|
211
|
-
},
|
|
212
|
+
}, At = (t) => Math.round(t * 1e5) / 1e5, en = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
|
|
212
213
|
function no(t) {
|
|
213
214
|
return t == null;
|
|
214
215
|
}
|
|
215
|
-
const so = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, nn = (t, e) => (n) => !!(typeof n == "string" && so.test(n) && n.startsWith(t) || e && !no(n) && Object.prototype.hasOwnProperty.call(n, e)),
|
|
216
|
+
const so = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, nn = (t, e) => (n) => !!(typeof n == "string" && so.test(n) && n.startsWith(t) || e && !no(n) && Object.prototype.hasOwnProperty.call(n, e)), mi = (t, e, n) => (s) => {
|
|
216
217
|
if (typeof s != "string")
|
|
217
218
|
return s;
|
|
218
219
|
const [i, o, r, a] = s.match(en);
|
|
@@ -227,8 +228,8 @@ const so = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s
|
|
|
227
228
|
transform: (t) => Math.round(io(t))
|
|
228
229
|
}, rt = {
|
|
229
230
|
test: /* @__PURE__ */ nn("rgb", "red"),
|
|
230
|
-
parse: /* @__PURE__ */
|
|
231
|
-
transform: ({ red: t, green: e, blue: n, alpha: s = 1 }) => "rgba(" + ae.transform(t) + ", " + ae.transform(e) + ", " + ae.transform(n) + ", " +
|
|
231
|
+
parse: /* @__PURE__ */ mi("red", "green", "blue"),
|
|
232
|
+
transform: ({ red: t, green: e, blue: n, alpha: s = 1 }) => "rgba(" + ae.transform(t) + ", " + ae.transform(e) + ", " + ae.transform(n) + ", " + At(Et.transform(s)) + ")"
|
|
232
233
|
};
|
|
233
234
|
function ro(t) {
|
|
234
235
|
let e = "", n = "", s = "", i = "";
|
|
@@ -253,8 +254,8 @@ const be = {
|
|
|
253
254
|
transform: (t) => _.transform(t * 100)
|
|
254
255
|
}, ht = {
|
|
255
256
|
test: /* @__PURE__ */ nn("hsl", "hue"),
|
|
256
|
-
parse: /* @__PURE__ */
|
|
257
|
-
transform: ({ hue: t, saturation: e, lightness: n, alpha: s = 1 }) => "hsla(" + Math.round(t) + ", " + _.transform(
|
|
257
|
+
parse: /* @__PURE__ */ mi("hue", "saturation", "lightness"),
|
|
258
|
+
transform: ({ hue: t, saturation: e, lightness: n, alpha: s = 1 }) => "hsla(" + Math.round(t) + ", " + _.transform(At(e)) + ", " + _.transform(At(n)) + ", " + At(Et.transform(s)) + ")"
|
|
258
259
|
}, M = {
|
|
259
260
|
test: (t) => rt.test(t) || be.test(t) || ht.test(t),
|
|
260
261
|
parse: (t) => rt.test(t) ? rt.parse(t) : ht.test(t) ? ht.parse(t) : be.parse(t),
|
|
@@ -267,7 +268,7 @@ const be = {
|
|
|
267
268
|
function co(t) {
|
|
268
269
|
return isNaN(t) && typeof t == "string" && (t.match(en)?.length || 0) + (t.match(lo)?.length || 0) > 0;
|
|
269
270
|
}
|
|
270
|
-
const
|
|
271
|
+
const pi = "number", gi = "color", uo = "var", ho = "var(", Ln = "${}", fo = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;
|
|
271
272
|
function Rt(t) {
|
|
272
273
|
const e = t.toString(), n = [], s = {
|
|
273
274
|
color: [],
|
|
@@ -275,33 +276,33 @@ function Rt(t) {
|
|
|
275
276
|
var: []
|
|
276
277
|
}, i = [];
|
|
277
278
|
let o = 0;
|
|
278
|
-
const a = e.replace(fo, (l) => (M.test(l) ? (s.color.push(o), i.push(
|
|
279
|
+
const a = e.replace(fo, (l) => (M.test(l) ? (s.color.push(o), i.push(gi), n.push(M.parse(l))) : l.startsWith(ho) ? (s.var.push(o), i.push(uo), n.push(l)) : (s.number.push(o), i.push(pi), n.push(parseFloat(l))), ++o, Ln)).split(Ln);
|
|
279
280
|
return { values: n, split: a, indexes: s, types: i };
|
|
280
281
|
}
|
|
281
|
-
function
|
|
282
|
+
function yi(t) {
|
|
282
283
|
return Rt(t).values;
|
|
283
284
|
}
|
|
284
|
-
function
|
|
285
|
+
function vi(t) {
|
|
285
286
|
const { split: e, types: n } = Rt(t), s = e.length;
|
|
286
287
|
return (i) => {
|
|
287
288
|
let o = "";
|
|
288
289
|
for (let r = 0; r < s; r++)
|
|
289
290
|
if (o += e[r], i[r] !== void 0) {
|
|
290
291
|
const a = n[r];
|
|
291
|
-
a ===
|
|
292
|
+
a === pi ? o += At(i[r]) : a === gi ? o += M.transform(i[r]) : o += i[r];
|
|
292
293
|
}
|
|
293
294
|
return o;
|
|
294
295
|
};
|
|
295
296
|
}
|
|
296
297
|
const mo = (t) => typeof t == "number" ? 0 : M.test(t) ? M.getAnimatableNone(t) : t;
|
|
297
298
|
function po(t) {
|
|
298
|
-
const e =
|
|
299
|
-
return
|
|
299
|
+
const e = yi(t);
|
|
300
|
+
return vi(t)(e.map(mo));
|
|
300
301
|
}
|
|
301
302
|
const H = {
|
|
302
303
|
test: co,
|
|
303
|
-
parse:
|
|
304
|
-
createTransformer:
|
|
304
|
+
parse: yi,
|
|
305
|
+
createTransformer: vi,
|
|
305
306
|
getAnimatableNone: po
|
|
306
307
|
};
|
|
307
308
|
function le(t, e, n) {
|
|
@@ -343,17 +344,17 @@ const Bn = (t, e) => {
|
|
|
343
344
|
return Yt(t, e);
|
|
344
345
|
const i = { ...n };
|
|
345
346
|
return (o) => (i.red = ce(n.red, s.red, o), i.green = ce(n.green, s.green, o), i.blue = ce(n.blue, s.blue, o), i.alpha = D(n.alpha, s.alpha, o), rt.transform(i));
|
|
346
|
-
},
|
|
347
|
+
}, Ve = /* @__PURE__ */ new Set(["none", "hidden"]);
|
|
347
348
|
function To(t, e) {
|
|
348
|
-
return
|
|
349
|
+
return Ve.has(t) ? (n) => n <= 0 ? t : e : (n) => n >= 1 ? e : t;
|
|
349
350
|
}
|
|
350
351
|
function xo(t, e) {
|
|
351
352
|
return (n) => D(t, e, n);
|
|
352
353
|
}
|
|
353
354
|
function sn(t) {
|
|
354
|
-
return typeof t == "number" ? xo : typeof t == "string" ? tn(t) ? Yt : M.test(t) ? Bn :
|
|
355
|
+
return typeof t == "number" ? xo : typeof t == "string" ? tn(t) ? Yt : M.test(t) ? Bn : Po : Array.isArray(t) ? Ti : typeof t == "object" ? M.test(t) ? Bn : wo : Yt;
|
|
355
356
|
}
|
|
356
|
-
function
|
|
357
|
+
function Ti(t, e) {
|
|
357
358
|
const n = [...t], s = n.length, i = t.map((o, r) => sn(o)(o, e[r]));
|
|
358
359
|
return (o) => {
|
|
359
360
|
for (let r = 0; r < s; r++)
|
|
@@ -371,7 +372,7 @@ function wo(t, e) {
|
|
|
371
372
|
return n;
|
|
372
373
|
};
|
|
373
374
|
}
|
|
374
|
-
function
|
|
375
|
+
function So(t, e) {
|
|
375
376
|
const n = [], s = { color: 0, var: 0, number: 0 };
|
|
376
377
|
for (let i = 0; i < e.values.length; i++) {
|
|
377
378
|
const o = e.types[i], r = t.indexes[o][s[o]], a = t.values[r] ?? 0;
|
|
@@ -379,17 +380,17 @@ function Po(t, e) {
|
|
|
379
380
|
}
|
|
380
381
|
return n;
|
|
381
382
|
}
|
|
382
|
-
const
|
|
383
|
+
const Po = (t, e) => {
|
|
383
384
|
const n = H.createTransformer(e), s = Rt(t), i = Rt(e);
|
|
384
|
-
return s.indexes.var.length === i.indexes.var.length && s.indexes.color.length === i.indexes.color.length && s.indexes.number.length >= i.indexes.number.length ?
|
|
385
|
+
return s.indexes.var.length === i.indexes.var.length && s.indexes.color.length === i.indexes.color.length && s.indexes.number.length >= i.indexes.number.length ? Ve.has(t) && !i.values.length || Ve.has(e) && !s.values.length ? To(t, e) : Bt(Ti(So(s, i), i.values), n) : (xt(!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.`, "complex-values-different"), Yt(t, e));
|
|
385
386
|
};
|
|
386
|
-
function
|
|
387
|
+
function xi(t, e, n) {
|
|
387
388
|
return typeof t == "number" && typeof e == "number" && typeof n == "number" ? D(t, e, n) : sn(t)(t, e);
|
|
388
389
|
}
|
|
389
390
|
const bo = (t) => {
|
|
390
391
|
const e = ({ timestamp: n }) => t(n);
|
|
391
392
|
return {
|
|
392
|
-
start: (n = !0) =>
|
|
393
|
+
start: (n = !0) => V.update(e, n),
|
|
393
394
|
stop: () => Q(e),
|
|
394
395
|
/**
|
|
395
396
|
* If we're processing this frame we can use the
|
|
@@ -397,7 +398,7 @@ const bo = (t) => {
|
|
|
397
398
|
*/
|
|
398
399
|
now: () => L.isProcessing ? L.timestamp : B.now()
|
|
399
400
|
};
|
|
400
|
-
},
|
|
401
|
+
}, wi = (t, e, n = 10) => {
|
|
401
402
|
let s = "";
|
|
402
403
|
const i = Math.max(Math.round(e / n), 2);
|
|
403
404
|
for (let o = 0; o < i; o++)
|
|
@@ -412,7 +413,7 @@ function rn(t) {
|
|
|
412
413
|
e += n, s = t.next(e);
|
|
413
414
|
return e >= qt ? 1 / 0 : e;
|
|
414
415
|
}
|
|
415
|
-
function
|
|
416
|
+
function Vo(t, e = 100, n) {
|
|
416
417
|
const s = n({ ...t, keyframes: [0, e] }), i = Math.min(rn(s), qt);
|
|
417
418
|
return {
|
|
418
419
|
type: "keyframes",
|
|
@@ -420,12 +421,12 @@ function Ao(t, e = 100, n) {
|
|
|
420
421
|
duration: /* @__PURE__ */ U(i)
|
|
421
422
|
};
|
|
422
423
|
}
|
|
423
|
-
const
|
|
424
|
-
function
|
|
425
|
-
const s = Math.max(e -
|
|
426
|
-
return
|
|
424
|
+
const Ao = 5;
|
|
425
|
+
function Si(t, e, n) {
|
|
426
|
+
const s = Math.max(e - Ao, 0);
|
|
427
|
+
return ti(n - t(s), e - s);
|
|
427
428
|
}
|
|
428
|
-
const
|
|
429
|
+
const A = {
|
|
429
430
|
// Default spring physics
|
|
430
431
|
stiffness: 100,
|
|
431
432
|
damping: 10,
|
|
@@ -454,15 +455,15 @@ const V = {
|
|
|
454
455
|
minDamping: 0.05,
|
|
455
456
|
maxDamping: 1
|
|
456
457
|
}, ue = 1e-3;
|
|
457
|
-
function Do({ duration: t =
|
|
458
|
+
function Do({ duration: t = A.duration, bounce: e = A.bounce, velocity: n = A.velocity, mass: s = A.mass }) {
|
|
458
459
|
let i, o;
|
|
459
|
-
xt(t <= /* @__PURE__ */ K(
|
|
460
|
+
xt(t <= /* @__PURE__ */ K(A.maxDuration), "Spring duration must be 10 seconds or less", "spring-duration-limit");
|
|
460
461
|
let r = 1 - e;
|
|
461
|
-
r = X(
|
|
462
|
-
const u = c * r, h = u * t, f = u - n, d =
|
|
462
|
+
r = X(A.minDamping, A.maxDamping, r), t = X(A.minDuration, A.maxDuration, /* @__PURE__ */ U(t)), r < 1 ? (i = (c) => {
|
|
463
|
+
const u = c * r, h = u * t, f = u - n, d = Ae(c, r), m = Math.exp(-h);
|
|
463
464
|
return ue - f / d * m;
|
|
464
465
|
}, o = (c) => {
|
|
465
|
-
const h = c * r * t, f = h * n + n, d = Math.pow(r, 2) * Math.pow(c, 2) * t, m = Math.exp(-h), v =
|
|
466
|
+
const h = c * r * t, f = h * n + n, d = Math.pow(r, 2) * Math.pow(c, 2) * t, m = Math.exp(-h), v = Ae(Math.pow(c, 2), r);
|
|
466
467
|
return (-i(c) + ue > 0 ? -1 : 1) * ((f - d) * m) / v;
|
|
467
468
|
}) : (i = (c) => {
|
|
468
469
|
const u = Math.exp(-c * t), h = (c - n) * t + 1;
|
|
@@ -474,8 +475,8 @@ function Do({ duration: t = V.duration, bounce: e = V.bounce, velocity: n = V.ve
|
|
|
474
475
|
const a = 5 / t, l = Co(i, o, a);
|
|
475
476
|
if (t = /* @__PURE__ */ K(t), isNaN(l))
|
|
476
477
|
return {
|
|
477
|
-
stiffness:
|
|
478
|
-
damping:
|
|
478
|
+
stiffness: A.stiffness,
|
|
479
|
+
damping: A.damping,
|
|
479
480
|
duration: t
|
|
480
481
|
};
|
|
481
482
|
{
|
|
@@ -494,7 +495,7 @@ function Co(t, e, n) {
|
|
|
494
495
|
s = s - t(s) / e(s);
|
|
495
496
|
return s;
|
|
496
497
|
}
|
|
497
|
-
function
|
|
498
|
+
function Ae(t, e) {
|
|
498
499
|
return t * Math.sqrt(1 - e * e);
|
|
499
500
|
}
|
|
500
501
|
const Eo = ["duration", "bounce"], Ro = ["stiffness", "damping", "mass"];
|
|
@@ -503,10 +504,10 @@ function Fn(t, e) {
|
|
|
503
504
|
}
|
|
504
505
|
function Lo(t) {
|
|
505
506
|
let e = {
|
|
506
|
-
velocity:
|
|
507
|
-
stiffness:
|
|
508
|
-
damping:
|
|
509
|
-
mass:
|
|
507
|
+
velocity: A.velocity,
|
|
508
|
+
stiffness: A.stiffness,
|
|
509
|
+
damping: A.damping,
|
|
510
|
+
mass: A.mass,
|
|
510
511
|
isResolvedFromDuration: !1,
|
|
511
512
|
...t
|
|
512
513
|
};
|
|
@@ -515,7 +516,7 @@ function Lo(t) {
|
|
|
515
516
|
const n = t.visualDuration, s = 2 * Math.PI / (n * 1.2), i = s * s, o = 2 * X(0.05, 1, 1 - (t.bounce || 0)) * Math.sqrt(i);
|
|
516
517
|
e = {
|
|
517
518
|
...e,
|
|
518
|
-
mass:
|
|
519
|
+
mass: A.mass,
|
|
519
520
|
stiffness: i,
|
|
520
521
|
damping: o
|
|
521
522
|
};
|
|
@@ -524,12 +525,12 @@ function Lo(t) {
|
|
|
524
525
|
e = {
|
|
525
526
|
...e,
|
|
526
527
|
...n,
|
|
527
|
-
mass:
|
|
528
|
+
mass: A.mass
|
|
528
529
|
}, e.isResolvedFromDuration = !0;
|
|
529
530
|
}
|
|
530
531
|
return e;
|
|
531
532
|
}
|
|
532
|
-
function Zt(t =
|
|
533
|
+
function Zt(t = A.visualDuration, e = A.bounce) {
|
|
533
534
|
const n = typeof t != "object" ? {
|
|
534
535
|
visualDuration: t,
|
|
535
536
|
keyframes: [0, 1],
|
|
@@ -540,10 +541,10 @@ function Zt(t = V.visualDuration, e = V.bounce) {
|
|
|
540
541
|
...n,
|
|
541
542
|
velocity: -/* @__PURE__ */ U(n.velocity || 0)
|
|
542
543
|
}), m = f || 0, v = c / (2 * Math.sqrt(l * u)), g = r - o, p = /* @__PURE__ */ U(Math.sqrt(l / u)), x = Math.abs(g) < 5;
|
|
543
|
-
s || (s = x ?
|
|
544
|
+
s || (s = x ? A.restSpeed.granular : A.restSpeed.default), i || (i = x ? A.restDelta.granular : A.restDelta.default);
|
|
544
545
|
let y;
|
|
545
546
|
if (v < 1) {
|
|
546
|
-
const w =
|
|
547
|
+
const w = Ae(p, v);
|
|
547
548
|
y = (b) => {
|
|
548
549
|
const C = Math.exp(-v * p * b);
|
|
549
550
|
return r - C * ((m + v * p * g) / w * Math.sin(w * b) + g * Math.cos(w * b));
|
|
@@ -553,11 +554,11 @@ function Zt(t = V.visualDuration, e = V.bounce) {
|
|
|
553
554
|
else {
|
|
554
555
|
const w = p * Math.sqrt(v * v - 1);
|
|
555
556
|
y = (b) => {
|
|
556
|
-
const C = Math.exp(-v * p * b),
|
|
557
|
-
return r - C * ((m + v * p * g) * Math.sinh(
|
|
557
|
+
const C = Math.exp(-v * p * b), P = Math.min(w * b, 300);
|
|
558
|
+
return r - C * ((m + v * p * g) * Math.sinh(P) + w * g * Math.cosh(P)) / w;
|
|
558
559
|
};
|
|
559
560
|
}
|
|
560
|
-
const
|
|
561
|
+
const S = {
|
|
561
562
|
calculatedDuration: d && h || null,
|
|
562
563
|
next: (w) => {
|
|
563
564
|
const b = y(w);
|
|
@@ -565,42 +566,42 @@ function Zt(t = V.visualDuration, e = V.bounce) {
|
|
|
565
566
|
a.done = w >= h;
|
|
566
567
|
else {
|
|
567
568
|
let C = w === 0 ? m : 0;
|
|
568
|
-
v < 1 && (C = w === 0 ? /* @__PURE__ */ K(m) :
|
|
569
|
-
const
|
|
570
|
-
a.done =
|
|
569
|
+
v < 1 && (C = w === 0 ? /* @__PURE__ */ K(m) : Si(y, w, b));
|
|
570
|
+
const P = Math.abs(C) <= s, I = Math.abs(r - b) <= i;
|
|
571
|
+
a.done = P && I;
|
|
571
572
|
}
|
|
572
573
|
return a.value = a.done ? r : b, a;
|
|
573
574
|
},
|
|
574
575
|
toString: () => {
|
|
575
|
-
const w = Math.min(rn(
|
|
576
|
+
const w = Math.min(rn(S), qt), b = wi((C) => S.next(w * C).value, w, 30);
|
|
576
577
|
return w + "ms " + b;
|
|
577
578
|
},
|
|
578
579
|
toTransition: () => {
|
|
579
580
|
}
|
|
580
581
|
};
|
|
581
|
-
return
|
|
582
|
+
return S;
|
|
582
583
|
}
|
|
583
584
|
Zt.applyToOptions = (t) => {
|
|
584
|
-
const e =
|
|
585
|
+
const e = Vo(t, 100, Zt);
|
|
585
586
|
return t.ease = e.ease, t.duration = /* @__PURE__ */ K(e.duration), t.type = "keyframes", t;
|
|
586
587
|
};
|
|
587
588
|
function De({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: s = 325, bounceDamping: i = 10, bounceStiffness: o = 500, modifyTarget: r, min: a, max: l, restDelta: c = 0.5, restSpeed: u }) {
|
|
588
589
|
const h = t[0], f = {
|
|
589
590
|
done: !1,
|
|
590
591
|
value: h
|
|
591
|
-
}, d = (
|
|
592
|
+
}, d = (P) => a !== void 0 && P < a || l !== void 0 && P > l, m = (P) => a === void 0 ? l : l === void 0 || Math.abs(a - P) < Math.abs(l - P) ? a : l;
|
|
592
593
|
let v = n * e;
|
|
593
594
|
const g = h + v, p = r === void 0 ? g : r(g);
|
|
594
595
|
p !== g && (v = p - h);
|
|
595
|
-
const x = (
|
|
596
|
-
const I = x(
|
|
596
|
+
const x = (P) => -v * Math.exp(-P / s), y = (P) => p + x(P), S = (P) => {
|
|
597
|
+
const I = x(P), j = y(P);
|
|
597
598
|
f.done = Math.abs(I) <= c, f.value = f.done ? p : j;
|
|
598
599
|
};
|
|
599
600
|
let w, b;
|
|
600
|
-
const C = (
|
|
601
|
-
d(f.value) && (w =
|
|
601
|
+
const C = (P) => {
|
|
602
|
+
d(f.value) && (w = P, b = Zt({
|
|
602
603
|
keyframes: [f.value, m(f.value)],
|
|
603
|
-
velocity:
|
|
604
|
+
velocity: Si(y, P, f.value),
|
|
604
605
|
// TODO: This should be passing * 1000
|
|
605
606
|
damping: i,
|
|
606
607
|
stiffness: o,
|
|
@@ -610,14 +611,14 @@ function De({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: s = 3
|
|
|
610
611
|
};
|
|
611
612
|
return C(0), {
|
|
612
613
|
calculatedDuration: null,
|
|
613
|
-
next: (
|
|
614
|
+
next: (P) => {
|
|
614
615
|
let I = !1;
|
|
615
|
-
return !b && w === void 0 && (I = !0, P
|
|
616
|
+
return !b && w === void 0 && (I = !0, S(P), C(P)), w !== void 0 && P >= w ? b.next(P - w) : (!I && S(P), f);
|
|
616
617
|
}
|
|
617
618
|
};
|
|
618
619
|
}
|
|
619
620
|
function ko(t, e, n) {
|
|
620
|
-
const s = [], i = n || q.mix ||
|
|
621
|
+
const s = [], i = n || q.mix || xi, o = t.length - 1;
|
|
621
622
|
for (let r = 0; r < o; r++) {
|
|
622
623
|
let a = i(t[r], t[r + 1]);
|
|
623
624
|
if (e) {
|
|
@@ -663,7 +664,7 @@ function Oo(t, e) {
|
|
|
663
664
|
return t.map((n) => n * e);
|
|
664
665
|
}
|
|
665
666
|
function jo(t, e) {
|
|
666
|
-
return t.map(() => e ||
|
|
667
|
+
return t.map(() => e || ci).splice(0, t.length - 1);
|
|
667
668
|
}
|
|
668
669
|
function ft({ duration: t = 300, keyframes: e, times: n, ease: s = "easeInOut" }) {
|
|
669
670
|
const i = Yr(s) ? s.map(Cn) : Cn(s), o = {
|
|
@@ -735,7 +736,7 @@ class ln extends an {
|
|
|
735
736
|
const { type: n = ft, repeat: s = 0, repeatDelay: i = 0, repeatType: o, velocity: r = 0 } = e;
|
|
736
737
|
let { keyframes: a } = e;
|
|
737
738
|
const l = n || ft;
|
|
738
|
-
process.env.NODE_ENV !== "production" && l !== ft && Y(a.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`, "spring-two-frames"), l !== ft && typeof a[0] != "number" && (this.mixKeyframes = Bt(Wo,
|
|
739
|
+
process.env.NODE_ENV !== "production" && l !== ft && Y(a.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`, "spring-two-frames"), l !== ft && typeof a[0] != "number" && (this.mixKeyframes = Bt(Wo, xi(a[0], a[1])), a = [0, 100]);
|
|
739
740
|
const c = l({ ...e, keyframes: a });
|
|
740
741
|
o === "mirror" && (this.mirroredGenerator = l({
|
|
741
742
|
...e,
|
|
@@ -757,13 +758,13 @@ class ln extends an {
|
|
|
757
758
|
this.speed > 0 ? this.startTime = Math.min(this.startTime, e) : this.speed < 0 && (this.startTime = Math.min(e - i / this.speed, this.startTime)), n ? this.currentTime = e : this.updateTime(e);
|
|
758
759
|
const p = this.currentTime - c * (this.playbackSpeed >= 0 ? 1 : -1), x = this.playbackSpeed >= 0 ? p < 0 : p > i;
|
|
759
760
|
this.currentTime = Math.max(p, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = i);
|
|
760
|
-
let y = this.currentTime,
|
|
761
|
+
let y = this.currentTime, S = s;
|
|
761
762
|
if (h) {
|
|
762
|
-
const
|
|
763
|
-
let I = Math.floor(
|
|
764
|
-
!j &&
|
|
763
|
+
const P = Math.min(this.currentTime, i) / a;
|
|
764
|
+
let I = Math.floor(P), j = P % 1;
|
|
765
|
+
!j && P >= 1 && (j = 1), j === 1 && I--, I = Math.min(I, h + 1), I % 2 && (f === "reverse" ? (j = 1 - j, d && (j -= d / a)) : f === "mirror" && (S = r)), y = X(0, 1, j) * a;
|
|
765
766
|
}
|
|
766
|
-
const w = x ? { done: !1, value: u[0] } :
|
|
767
|
+
const w = x ? { done: !1, value: u[0] } : S.next(y);
|
|
767
768
|
o && (w.value = o(w.value));
|
|
768
769
|
let { done: b } = w;
|
|
769
770
|
!x && l !== null && (b = this.playbackSpeed >= 0 ? this.currentTime >= i : this.currentTime <= 0);
|
|
@@ -896,7 +897,7 @@ const Ho = (t, e) => {
|
|
|
896
897
|
function Go(t) {
|
|
897
898
|
return parseFloat(t.trim());
|
|
898
899
|
}
|
|
899
|
-
const
|
|
900
|
+
const St = [
|
|
900
901
|
"transformPerspective",
|
|
901
902
|
"x",
|
|
902
903
|
"y",
|
|
@@ -914,7 +915,7 @@ const Pt = [
|
|
|
914
915
|
"skew",
|
|
915
916
|
"skewX",
|
|
916
917
|
"skewY"
|
|
917
|
-
],
|
|
918
|
+
], Pt = new Set(St), Nn = (t) => t === wt || t === T, _o = /* @__PURE__ */ new Set(["x", "y", "z"]), Xo = St.filter((t) => !_o.has(t));
|
|
918
919
|
function Yo(t) {
|
|
919
920
|
const e = [];
|
|
920
921
|
return Xo.forEach((n) => {
|
|
@@ -938,7 +939,7 @@ J.translateX = J.x;
|
|
|
938
939
|
J.translateY = J.y;
|
|
939
940
|
const at = /* @__PURE__ */ new Set();
|
|
940
941
|
let Le = !1, ke = !1, Be = !1;
|
|
941
|
-
function
|
|
942
|
+
function bi() {
|
|
942
943
|
if (ke) {
|
|
943
944
|
const t = Array.from(at).filter((s) => s.needsMeasurement), e = new Set(t.map((s) => s.element)), n = /* @__PURE__ */ new Map();
|
|
944
945
|
e.forEach((s) => {
|
|
@@ -956,20 +957,20 @@ function Si() {
|
|
|
956
957
|
}
|
|
957
958
|
ke = !1, Le = !1, at.forEach((t) => t.complete(Be)), at.clear();
|
|
958
959
|
}
|
|
959
|
-
function
|
|
960
|
+
function Vi() {
|
|
960
961
|
at.forEach((t) => {
|
|
961
962
|
t.readKeyframes(), t.needsMeasurement && (ke = !0);
|
|
962
963
|
});
|
|
963
964
|
}
|
|
964
965
|
function qo() {
|
|
965
|
-
Be = !0,
|
|
966
|
+
Be = !0, Vi(), bi(), Be = !1;
|
|
966
967
|
}
|
|
967
968
|
class cn {
|
|
968
969
|
constructor(e, n, s, i, o, r = !1) {
|
|
969
970
|
this.state = "pending", this.isAsync = !1, this.needsMeasurement = !1, this.unresolvedKeyframes = [...e], this.onComplete = n, this.name = s, this.motionValue = i, this.element = o, this.isAsync = r;
|
|
970
971
|
}
|
|
971
972
|
scheduleResolve() {
|
|
972
|
-
this.state = "scheduled", this.isAsync ? (at.add(this), Le || (Le = !0,
|
|
973
|
+
this.state = "scheduled", this.isAsync ? (at.add(this), Le || (Le = !0, V.read(Vi), V.resolveKeyframes(bi))) : (this.readKeyframes(), this.complete());
|
|
973
974
|
}
|
|
974
975
|
readKeyframes() {
|
|
975
976
|
const { unresolvedKeyframes: e, name: n, element: s, motionValue: i } = this;
|
|
@@ -1009,37 +1010,37 @@ function Jo(t, e, n) {
|
|
|
1009
1010
|
}
|
|
1010
1011
|
const Qo = {};
|
|
1011
1012
|
function Ai(t, e) {
|
|
1012
|
-
const n = /* @__PURE__ */
|
|
1013
|
+
const n = /* @__PURE__ */ Qs(t);
|
|
1013
1014
|
return () => Qo[e] ?? n();
|
|
1014
1015
|
}
|
|
1015
|
-
const ta = /* @__PURE__ */ Ai(() => window.ScrollTimeline !== void 0, "scrollTimeline"),
|
|
1016
|
+
const ta = /* @__PURE__ */ Ai(() => window.ScrollTimeline !== void 0, "scrollTimeline"), Di = /* @__PURE__ */ Ai(() => {
|
|
1016
1017
|
try {
|
|
1017
1018
|
document.createElement("div").animate({ opacity: 0 }, { easing: "linear(0, 1)" });
|
|
1018
1019
|
} catch {
|
|
1019
1020
|
return !1;
|
|
1020
1021
|
}
|
|
1021
1022
|
return !0;
|
|
1022
|
-
}, "linearEasing"),
|
|
1023
|
+
}, "linearEasing"), Vt = ([t, e, n, s]) => `cubic-bezier(${t}, ${e}, ${n}, ${s})`, Un = {
|
|
1023
1024
|
linear: "linear",
|
|
1024
1025
|
ease: "ease",
|
|
1025
1026
|
easeIn: "ease-in",
|
|
1026
1027
|
easeOut: "ease-out",
|
|
1027
1028
|
easeInOut: "ease-in-out",
|
|
1028
|
-
circIn: /* @__PURE__ */
|
|
1029
|
-
circOut: /* @__PURE__ */
|
|
1030
|
-
backIn: /* @__PURE__ */
|
|
1031
|
-
backOut: /* @__PURE__ */
|
|
1029
|
+
circIn: /* @__PURE__ */ Vt([0, 0.65, 0.55, 1]),
|
|
1030
|
+
circOut: /* @__PURE__ */ Vt([0.55, 0, 1, 0.45]),
|
|
1031
|
+
backIn: /* @__PURE__ */ Vt([0.31, 0.01, 0.66, -0.59]),
|
|
1032
|
+
backOut: /* @__PURE__ */ Vt([0.33, 1.53, 0.69, 0.99])
|
|
1032
1033
|
};
|
|
1033
|
-
function
|
|
1034
|
+
function Mi(t, e) {
|
|
1034
1035
|
if (t)
|
|
1035
|
-
return typeof t == "function" ?
|
|
1036
|
+
return typeof t == "function" ? Di() ? wi(t, e) : "ease-out" : ui(t) ? Vt(t) : Array.isArray(t) ? t.map((n) => Mi(n, e) || Un.easeOut) : Un[t];
|
|
1036
1037
|
}
|
|
1037
1038
|
function ea(t, e, n, { delay: s = 0, duration: i = 300, repeat: o = 0, repeatType: r = "loop", ease: a = "easeOut", times: l } = {}, c = void 0) {
|
|
1038
1039
|
const u = {
|
|
1039
1040
|
[e]: n
|
|
1040
1041
|
};
|
|
1041
1042
|
l && (u.offset = l);
|
|
1042
|
-
const h =
|
|
1043
|
+
const h = Mi(a, i);
|
|
1043
1044
|
Array.isArray(h) && (u.easing = h);
|
|
1044
1045
|
const f = {
|
|
1045
1046
|
delay: s,
|
|
@@ -1051,13 +1052,13 @@ function ea(t, e, n, { delay: s = 0, duration: i = 300, repeat: o = 0, repeatTyp
|
|
|
1051
1052
|
};
|
|
1052
1053
|
return c && (f.pseudoElement = c), t.animate(u, f);
|
|
1053
1054
|
}
|
|
1054
|
-
function
|
|
1055
|
+
function Ci(t) {
|
|
1055
1056
|
return typeof t == "function" && "applyToOptions" in t;
|
|
1056
1057
|
}
|
|
1057
1058
|
function na({ type: t, ...e }) {
|
|
1058
|
-
return
|
|
1059
|
+
return Ci(t) && Di() ? t.applyToOptions(e) : (e.duration ?? (e.duration = 300), e.ease ?? (e.ease = "easeOut"), e);
|
|
1059
1060
|
}
|
|
1060
|
-
class
|
|
1061
|
+
class Ei extends an {
|
|
1061
1062
|
constructor(e) {
|
|
1062
1063
|
if (super(), this.finishedTime = null, this.isStopped = !1, this.manualStartTime = null, !e)
|
|
1063
1064
|
return;
|
|
@@ -1150,19 +1151,19 @@ class Ci extends an {
|
|
|
1150
1151
|
return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, e && ta() ? (this.animation.timeline = e, W) : n(this);
|
|
1151
1152
|
}
|
|
1152
1153
|
}
|
|
1153
|
-
const
|
|
1154
|
-
anticipate:
|
|
1155
|
-
backInOut:
|
|
1156
|
-
circInOut:
|
|
1154
|
+
const Ri = {
|
|
1155
|
+
anticipate: oi,
|
|
1156
|
+
backInOut: ri,
|
|
1157
|
+
circInOut: li
|
|
1157
1158
|
};
|
|
1158
1159
|
function sa(t) {
|
|
1159
|
-
return t in
|
|
1160
|
+
return t in Ri;
|
|
1160
1161
|
}
|
|
1161
1162
|
function ia(t) {
|
|
1162
|
-
typeof t.ease == "string" && sa(t.ease) && (t.ease =
|
|
1163
|
+
typeof t.ease == "string" && sa(t.ease) && (t.ease = Ri[t.ease]);
|
|
1163
1164
|
}
|
|
1164
1165
|
const he = 10;
|
|
1165
|
-
class ra extends
|
|
1166
|
+
class ra extends Ei {
|
|
1166
1167
|
constructor(e) {
|
|
1167
1168
|
ia(e), Pi(e), super(e), e.startTime !== void 0 && (this.startTime = e.startTime), this.options = e;
|
|
1168
1169
|
}
|
|
@@ -1207,7 +1208,7 @@ function aa(t, e, n, s) {
|
|
|
1207
1208
|
if (e === "display" || e === "visibility")
|
|
1208
1209
|
return !0;
|
|
1209
1210
|
const o = t[t.length - 1], r = Wn(i, e), a = Wn(o, e);
|
|
1210
|
-
return xt(r === a, `You are trying to animate ${e} from "${i}" to "${o}". "${r ? o : i}" is not an animatable value.`, "value-not-animatable"), !r || !a ? !1 : oa(t) || (n === "spring" ||
|
|
1211
|
+
return xt(r === a, `You are trying to animate ${e} from "${i}" to "${o}". "${r ? o : i}" is not an animatable value.`, "value-not-animatable"), !r || !a ? !1 : oa(t) || (n === "spring" || Ci(n)) && s;
|
|
1211
1212
|
}
|
|
1212
1213
|
function Fe(t) {
|
|
1213
1214
|
t.duration = 0, t.type = "keyframes";
|
|
@@ -1219,7 +1220,7 @@ const la = /* @__PURE__ */ new Set([
|
|
|
1219
1220
|
"transform"
|
|
1220
1221
|
// TODO: Could be re-enabled now we have support for linear() easing
|
|
1221
1222
|
// "background-color"
|
|
1222
|
-
]), ca = /* @__PURE__ */
|
|
1223
|
+
]), ca = /* @__PURE__ */ Qs(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
|
|
1223
1224
|
function ua(t) {
|
|
1224
1225
|
const { motionValue: e, name: n, repeatDelay: s, repeatType: i, damping: o, type: r } = t;
|
|
1225
1226
|
if (!(e?.owner?.current instanceof HTMLElement))
|
|
@@ -1318,7 +1319,7 @@ class fa extends an {
|
|
|
1318
1319
|
this._animation && this.animation.cancel(), this.keyframeResolver?.cancel();
|
|
1319
1320
|
}
|
|
1320
1321
|
}
|
|
1321
|
-
function
|
|
1322
|
+
function Li(t, e, n, s = 0, i = 1) {
|
|
1322
1323
|
const o = Array.from(t).sort((c, u) => c.sortNodePosition(u)).indexOf(e), r = t.size, a = (r - 1) * s;
|
|
1323
1324
|
return typeof n == "function" ? n(o, r) : i === 1 ? o * s : a - o * s;
|
|
1324
1325
|
}
|
|
@@ -1334,7 +1335,7 @@ function ma(t) {
|
|
|
1334
1335
|
return [`--${n ?? s}`, i];
|
|
1335
1336
|
}
|
|
1336
1337
|
const pa = 4;
|
|
1337
|
-
function
|
|
1338
|
+
function ki(t, e, n = 1) {
|
|
1338
1339
|
Y(n <= pa, `Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`, "max-css-var-depth");
|
|
1339
1340
|
const [s, i] = ma(t);
|
|
1340
1341
|
if (!s)
|
|
@@ -1342,9 +1343,9 @@ function Li(t, e, n = 1) {
|
|
|
1342
1343
|
const o = window.getComputedStyle(e).getPropertyValue(s);
|
|
1343
1344
|
if (o) {
|
|
1344
1345
|
const r = o.trim();
|
|
1345
|
-
return
|
|
1346
|
+
return qs(r) ? parseFloat(r) : r;
|
|
1346
1347
|
}
|
|
1347
|
-
return tn(i) ?
|
|
1348
|
+
return tn(i) ? ki(i, e, n + 1) : i;
|
|
1348
1349
|
}
|
|
1349
1350
|
const ga = {
|
|
1350
1351
|
type: "spring",
|
|
@@ -1363,12 +1364,12 @@ const ga = {
|
|
|
1363
1364
|
type: "keyframes",
|
|
1364
1365
|
ease: [0.25, 0.1, 0.35, 1],
|
|
1365
1366
|
duration: 0.3
|
|
1366
|
-
}, xa = (t, { keyframes: e }) => e.length > 2 ? va :
|
|
1367
|
-
function
|
|
1367
|
+
}, xa = (t, { keyframes: e }) => e.length > 2 ? va : Pt.has(t) ? t.startsWith("scale") ? ya(e[1]) : ga : Ta, wa = (t) => t !== null;
|
|
1368
|
+
function Sa(t, { repeat: e, repeatType: n = "loop" }, s) {
|
|
1368
1369
|
const i = t.filter(wa), o = e && n !== "loop" && e % 2 === 1 ? 0 : i.length - 1;
|
|
1369
1370
|
return i[o];
|
|
1370
1371
|
}
|
|
1371
|
-
function
|
|
1372
|
+
function Bi(t, e) {
|
|
1372
1373
|
if (t?.inherit && e) {
|
|
1373
1374
|
const { inherit: n, ...s } = t;
|
|
1374
1375
|
return { ...e, ...s };
|
|
@@ -1377,9 +1378,9 @@ function ki(t, e) {
|
|
|
1377
1378
|
}
|
|
1378
1379
|
function un(t, e) {
|
|
1379
1380
|
const n = t?.[e] ?? t?.default ?? t;
|
|
1380
|
-
return n !== t ?
|
|
1381
|
+
return n !== t ? Bi(n, t) : n;
|
|
1381
1382
|
}
|
|
1382
|
-
function
|
|
1383
|
+
function Pa({ when: t, delay: e, delayChildren: n, staggerChildren: s, staggerDirection: i, repeat: o, repeatType: r, repeatDelay: a, from: l, elapsed: c, ...u }) {
|
|
1383
1384
|
return !!Object.keys(u).length;
|
|
1384
1385
|
}
|
|
1385
1386
|
const hn = (t, e, n, s = {}, i, o) => (r) => {
|
|
@@ -1402,12 +1403,12 @@ const hn = (t, e, n, s = {}, i, o) => (r) => {
|
|
|
1402
1403
|
motionValue: e,
|
|
1403
1404
|
element: o ? void 0 : i
|
|
1404
1405
|
};
|
|
1405
|
-
|
|
1406
|
+
Pa(a) || Object.assign(u, xa(t, u)), u.duration && (u.duration = /* @__PURE__ */ K(u.duration)), u.repeatDelay && (u.repeatDelay = /* @__PURE__ */ K(u.repeatDelay)), u.from !== void 0 && (u.keyframes[0] = u.from);
|
|
1406
1407
|
let h = !1;
|
|
1407
1408
|
if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (Fe(u), u.delay === 0 && (h = !0)), (q.instantAnimations || q.skipAnimations || i?.shouldSkipAnimations) && (h = !0, Fe(u), u.delay = 0), u.allowFlatten = !a.type && !a.ease, h && !o && e.get() !== void 0) {
|
|
1408
|
-
const f =
|
|
1409
|
+
const f = Sa(u.keyframes, a);
|
|
1409
1410
|
if (f !== void 0) {
|
|
1410
|
-
|
|
1411
|
+
V.update(() => {
|
|
1411
1412
|
u.onUpdate(f), u.onComplete();
|
|
1412
1413
|
});
|
|
1413
1414
|
return;
|
|
@@ -1436,16 +1437,16 @@ function yt(t, e, n) {
|
|
|
1436
1437
|
const s = t.getProps();
|
|
1437
1438
|
return fn(s, e, n !== void 0 ? n : s.custom, t);
|
|
1438
1439
|
}
|
|
1439
|
-
const
|
|
1440
|
+
const Fi = /* @__PURE__ */ new Set([
|
|
1440
1441
|
"width",
|
|
1441
1442
|
"height",
|
|
1442
1443
|
"top",
|
|
1443
1444
|
"left",
|
|
1444
1445
|
"right",
|
|
1445
1446
|
"bottom",
|
|
1446
|
-
...
|
|
1447
|
+
...St
|
|
1447
1448
|
]), $n = 30, ba = (t) => !isNaN(parseFloat(t));
|
|
1448
|
-
class
|
|
1449
|
+
class Va {
|
|
1449
1450
|
/**
|
|
1450
1451
|
* @param init - The initiating value
|
|
1451
1452
|
* @param config - Optional configuration options
|
|
@@ -1513,7 +1514,7 @@ class Aa {
|
|
|
1513
1514
|
this.events[e] || (this.events[e] = new qe());
|
|
1514
1515
|
const s = this.events[e].add(n);
|
|
1515
1516
|
return e === "change" ? () => {
|
|
1516
|
-
s(),
|
|
1517
|
+
s(), V.read(() => {
|
|
1517
1518
|
this.events.change.getSize() || this.stop();
|
|
1518
1519
|
});
|
|
1519
1520
|
} : s;
|
|
@@ -1593,7 +1594,7 @@ class Aa {
|
|
|
1593
1594
|
if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > $n)
|
|
1594
1595
|
return 0;
|
|
1595
1596
|
const n = Math.min(this.updatedAt - this.prevUpdatedAt, $n);
|
|
1596
|
-
return
|
|
1597
|
+
return ti(parseFloat(this.current) - parseFloat(this.prevFrameValue), n);
|
|
1597
1598
|
}
|
|
1598
1599
|
/**
|
|
1599
1600
|
* Registers a new animation to control this `MotionValue`. Only one
|
|
@@ -1645,10 +1646,10 @@ class Aa {
|
|
|
1645
1646
|
}
|
|
1646
1647
|
}
|
|
1647
1648
|
function vt(t, e) {
|
|
1648
|
-
return new
|
|
1649
|
+
return new Va(t, e);
|
|
1649
1650
|
}
|
|
1650
1651
|
const Ie = (t) => Array.isArray(t);
|
|
1651
|
-
function
|
|
1652
|
+
function Aa(t, e, n) {
|
|
1652
1653
|
t.hasValue(e) ? t.getValue(e).set(n) : t.addValue(e, vt(n));
|
|
1653
1654
|
}
|
|
1654
1655
|
function Da(t) {
|
|
@@ -1660,7 +1661,7 @@ function Ma(t, e) {
|
|
|
1660
1661
|
o = { ...o, ...s };
|
|
1661
1662
|
for (const r in o) {
|
|
1662
1663
|
const a = Da(o[r]);
|
|
1663
|
-
|
|
1664
|
+
Aa(t, r, a);
|
|
1664
1665
|
}
|
|
1665
1666
|
}
|
|
1666
1667
|
const k = (t) => !!(t && t.getVelocity);
|
|
@@ -1679,18 +1680,18 @@ function Oe(t, e) {
|
|
|
1679
1680
|
function dn(t) {
|
|
1680
1681
|
return t.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`);
|
|
1681
1682
|
}
|
|
1682
|
-
const Ea = "framerAppearId",
|
|
1683
|
-
function
|
|
1684
|
-
return t.props[
|
|
1683
|
+
const Ea = "framerAppearId", Ii = "data-" + dn(Ea);
|
|
1684
|
+
function Oi(t) {
|
|
1685
|
+
return t.props[Ii];
|
|
1685
1686
|
}
|
|
1686
1687
|
function Ra({ protectedKeys: t, needsAnimating: e }, n) {
|
|
1687
1688
|
const s = t.hasOwnProperty(n) && e[n] !== !0;
|
|
1688
1689
|
return e[n] = !1, s;
|
|
1689
1690
|
}
|
|
1690
|
-
function
|
|
1691
|
+
function ji(t, e, { delay: n = 0, transitionOverride: s, type: i } = {}) {
|
|
1691
1692
|
let { transition: o, transitionEnd: r, ...a } = e;
|
|
1692
1693
|
const l = t.getDefaultTransition();
|
|
1693
|
-
o = o ?
|
|
1694
|
+
o = o ? Bi(o, l) : l;
|
|
1694
1695
|
const c = o?.reduceMotion;
|
|
1695
1696
|
s && (o = s);
|
|
1696
1697
|
const u = [], h = i && t.animationState && t.animationState.getState()[i];
|
|
@@ -1706,20 +1707,20 @@ function Oi(t, e, { delay: n = 0, transitionOverride: s, type: i } = {}) {
|
|
|
1706
1707
|
continue;
|
|
1707
1708
|
let p = !1;
|
|
1708
1709
|
if (window.MotionHandoffAnimation) {
|
|
1709
|
-
const
|
|
1710
|
-
if (
|
|
1711
|
-
const w = window.MotionHandoffAnimation(
|
|
1710
|
+
const S = Oi(t);
|
|
1711
|
+
if (S) {
|
|
1712
|
+
const w = window.MotionHandoffAnimation(S, f, V);
|
|
1712
1713
|
w !== null && (v.startTime = w, p = !0);
|
|
1713
1714
|
}
|
|
1714
1715
|
}
|
|
1715
1716
|
Oe(t, f);
|
|
1716
1717
|
const x = c ?? t.shouldReduceMotion;
|
|
1717
|
-
d.start(hn(f, d, m, x &&
|
|
1718
|
+
d.start(hn(f, d, m, x && Fi.has(f) ? { type: !1 } : v, t, p));
|
|
1718
1719
|
const y = d.animation;
|
|
1719
1720
|
y && u.push(y);
|
|
1720
1721
|
}
|
|
1721
1722
|
if (r) {
|
|
1722
|
-
const f = () =>
|
|
1723
|
+
const f = () => V.update(() => {
|
|
1723
1724
|
r && Ma(t, r);
|
|
1724
1725
|
});
|
|
1725
1726
|
u.length ? Promise.all(u).then(f) : f();
|
|
@@ -1730,7 +1731,7 @@ function je(t, e, n = {}) {
|
|
|
1730
1731
|
const s = yt(t, e, n.type === "exit" ? t.presenceContext?.custom : void 0);
|
|
1731
1732
|
let { transition: i = t.getDefaultTransition() || {} } = s || {};
|
|
1732
1733
|
n.transitionOverride && (i = n.transitionOverride);
|
|
1733
|
-
const o = s ? () => Promise.all(
|
|
1734
|
+
const o = s ? () => Promise.all(ji(t, s, n)) : () => Promise.resolve(), r = t.variantChildren && t.variantChildren.size ? (l = 0) => {
|
|
1734
1735
|
const { delayChildren: c = 0, staggerChildren: u, staggerDirection: h } = i;
|
|
1735
1736
|
return La(t, e, l, c, u, h, n);
|
|
1736
1737
|
} : () => Promise.resolve(), { when: a } = i;
|
|
@@ -1745,7 +1746,7 @@ function La(t, e, n = 0, s = 0, i = 0, o = 1, r) {
|
|
|
1745
1746
|
for (const l of t.variantChildren)
|
|
1746
1747
|
l.notify("AnimationStart", e), a.push(je(l, e, {
|
|
1747
1748
|
...r,
|
|
1748
|
-
delay: n + (typeof s == "function" ? 0 : s) +
|
|
1749
|
+
delay: n + (typeof s == "function" ? 0 : s) + Li(t.variantChildren, l, s, i, o)
|
|
1749
1750
|
}).then(() => l.notify("AnimationComplete", e)));
|
|
1750
1751
|
return Promise.all(a);
|
|
1751
1752
|
}
|
|
@@ -1759,7 +1760,7 @@ function ka(t, e, n = {}) {
|
|
|
1759
1760
|
s = je(t, e, n);
|
|
1760
1761
|
else {
|
|
1761
1762
|
const i = typeof e == "function" ? yt(t, e, n.custom) : e;
|
|
1762
|
-
s = Promise.all(
|
|
1763
|
+
s = Promise.all(ji(t, i, n));
|
|
1763
1764
|
}
|
|
1764
1765
|
return s.then(() => {
|
|
1765
1766
|
t.notify("AnimationComplete", e);
|
|
@@ -1768,9 +1769,9 @@ function ka(t, e, n = {}) {
|
|
|
1768
1769
|
const Ba = {
|
|
1769
1770
|
test: (t) => t === "auto",
|
|
1770
1771
|
parse: (t) => t
|
|
1771
|
-
},
|
|
1772
|
+
}, Ni = (t) => (e) => e.test(t), Ui = [wt, T, _, Z, ao, oo, Ba], zn = (t) => Ui.find(Ni(t));
|
|
1772
1773
|
function Fa(t) {
|
|
1773
|
-
return typeof t == "number" ? t === 0 : t !== null ? t === "none" || t === "0" ||
|
|
1774
|
+
return typeof t == "number" ? t === 0 : t !== null ? t === "none" || t === "0" || Js(t) : !0;
|
|
1774
1775
|
}
|
|
1775
1776
|
const Ia = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
|
|
1776
1777
|
function Oa(t) {
|
|
@@ -1904,9 +1905,9 @@ const ja = /\b([a-z-]*)\(.*?\)/gu, Ne = {
|
|
|
1904
1905
|
WebkitFilter: Ne,
|
|
1905
1906
|
mask: Ue,
|
|
1906
1907
|
WebkitMask: Ue
|
|
1907
|
-
},
|
|
1908
|
-
function
|
|
1909
|
-
let n =
|
|
1908
|
+
}, Wi = (t) => Ua[t], Wa = /* @__PURE__ */ new Set([Ne, Ue]);
|
|
1909
|
+
function Ki(t, e) {
|
|
1910
|
+
let n = Wi(t);
|
|
1910
1911
|
return Wa.has(n) || (n = H), n.getAnimatableNone ? n.getAnimatableNone(e) : void 0;
|
|
1911
1912
|
}
|
|
1912
1913
|
const Ka = /* @__PURE__ */ new Set(["auto", "none", "0"]);
|
|
@@ -1918,7 +1919,7 @@ function $a(t, e, n) {
|
|
|
1918
1919
|
}
|
|
1919
1920
|
if (i && n)
|
|
1920
1921
|
for (const o of e)
|
|
1921
|
-
t[o] =
|
|
1922
|
+
t[o] = Ki(n, i);
|
|
1922
1923
|
}
|
|
1923
1924
|
class za extends cn {
|
|
1924
1925
|
constructor(e, n, s, i, o) {
|
|
@@ -1932,11 +1933,11 @@ class za extends cn {
|
|
|
1932
1933
|
for (let u = 0; u < e.length; u++) {
|
|
1933
1934
|
let h = e[u];
|
|
1934
1935
|
if (typeof h == "string" && (h = h.trim(), tn(h))) {
|
|
1935
|
-
const f =
|
|
1936
|
+
const f = ki(h, n.current);
|
|
1936
1937
|
f !== void 0 && (e[u] = f), u === e.length - 1 && (this.finalKeyframe = h);
|
|
1937
1938
|
}
|
|
1938
1939
|
}
|
|
1939
|
-
if (this.resolveNoneKeyframes(), !
|
|
1940
|
+
if (this.resolveNoneKeyframes(), !Fi.has(s) || e.length !== 2)
|
|
1940
1941
|
return;
|
|
1941
1942
|
const [i, o] = e, r = zn(i), a = zn(o), l = En(i), c = En(o);
|
|
1942
1943
|
if (l !== c && J[s]) {
|
|
@@ -1985,24 +1986,11 @@ const Ha = /* @__PURE__ */ new Set([
|
|
|
1985
1986
|
// TODO: Can be accelerated but currently disabled until https://issues.chromium.org/issues/41491098 is resolved
|
|
1986
1987
|
// or until we implement support for linear() easing.
|
|
1987
1988
|
// "background-color"
|
|
1988
|
-
]);
|
|
1989
|
-
function Ki(t, e, n) {
|
|
1990
|
-
if (t == null)
|
|
1991
|
-
return [];
|
|
1992
|
-
if (t instanceof EventTarget)
|
|
1993
|
-
return [t];
|
|
1994
|
-
if (typeof t == "string") {
|
|
1995
|
-
let s = document;
|
|
1996
|
-
const i = n?.[t] ?? s.querySelectorAll(t);
|
|
1997
|
-
return i ? Array.from(i) : [];
|
|
1998
|
-
}
|
|
1999
|
-
return Array.from(t).filter((s) => s != null);
|
|
2000
|
-
}
|
|
2001
|
-
const $i = (t, e) => e && typeof t == "number" ? e.transform(t) : t;
|
|
1989
|
+
]), $i = (t, e) => e && typeof t == "number" ? e.transform(t) : t;
|
|
2002
1990
|
function Ga(t) {
|
|
2003
|
-
return
|
|
1991
|
+
return Zs(t) && "offsetHeight" in t;
|
|
2004
1992
|
}
|
|
2005
|
-
const { schedule: pn } = /* @__PURE__ */
|
|
1993
|
+
const { schedule: pn } = /* @__PURE__ */ hi(queueMicrotask, !1), z = {
|
|
2006
1994
|
x: !1,
|
|
2007
1995
|
y: !1
|
|
2008
1996
|
};
|
|
@@ -2017,7 +2005,7 @@ function _a(t) {
|
|
|
2017
2005
|
});
|
|
2018
2006
|
}
|
|
2019
2007
|
function Hi(t, e) {
|
|
2020
|
-
const n =
|
|
2008
|
+
const n = _s(t), s = new AbortController(), i = {
|
|
2021
2009
|
passive: !0,
|
|
2022
2010
|
...e,
|
|
2023
2011
|
signal: s.signal
|
|
@@ -2119,7 +2107,7 @@ function el(t, e, n = {}) {
|
|
|
2119
2107
|
}), o;
|
|
2120
2108
|
}
|
|
2121
2109
|
function yn(t) {
|
|
2122
|
-
return
|
|
2110
|
+
return Zs(t) && "ownerSVGElement" in t;
|
|
2123
2111
|
}
|
|
2124
2112
|
const $t = /* @__PURE__ */ new WeakMap();
|
|
2125
2113
|
let zt;
|
|
@@ -2144,7 +2132,7 @@ function ol() {
|
|
|
2144
2132
|
}
|
|
2145
2133
|
function al(t, e) {
|
|
2146
2134
|
zt || ol();
|
|
2147
|
-
const n =
|
|
2135
|
+
const n = _s(t);
|
|
2148
2136
|
return n.forEach((s) => {
|
|
2149
2137
|
let i = $t.get(s);
|
|
2150
2138
|
i || (i = /* @__PURE__ */ new Set(), $t.set(s, i)), i.add(e), zt?.observe(s);
|
|
@@ -2181,7 +2169,7 @@ function Yn(t, e) {
|
|
|
2181
2169
|
function ul(t) {
|
|
2182
2170
|
return yn(t) && t.tagName === "svg";
|
|
2183
2171
|
}
|
|
2184
|
-
const hl = [...
|
|
2172
|
+
const hl = [...Ui, M, H], fl = (t) => hl.find(Ni(t)), qn = () => ({
|
|
2185
2173
|
translate: 0,
|
|
2186
2174
|
scale: 1,
|
|
2187
2175
|
origin: 0,
|
|
@@ -2275,7 +2263,7 @@ class vl {
|
|
|
2275
2263
|
this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
|
|
2276
2264
|
}, this.renderScheduledAt = 0, this.scheduleRender = () => {
|
|
2277
2265
|
const d = B.now();
|
|
2278
|
-
this.renderScheduledAt < d && (this.renderScheduledAt = d,
|
|
2266
|
+
this.renderScheduledAt < d && (this.renderScheduledAt = d, V.render(this.render, !1, !0));
|
|
2279
2267
|
};
|
|
2280
2268
|
const { latestValues: c, renderState: u } = a;
|
|
2281
2269
|
this.latestValues = c, this.baseTarget = { ...c }, this.initialValues = n.initial ? { ...c } : {}, this.renderState = u, this.parent = e, this.props = n, this.presenceContext = s, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = i, this.skipAnimationsConfig = o, this.options = l, this.blockInitialAnimation = !!r, this.isControllingVariants = ie(n), this.isVariantNode = Xi(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
|
|
@@ -2309,7 +2297,7 @@ class vl {
|
|
|
2309
2297
|
}
|
|
2310
2298
|
bindToMotionValue(e, n) {
|
|
2311
2299
|
if (this.valueSubscriptions.has(e) && this.valueSubscriptions.get(e)(), n.accelerate && Ha.has(e) && this.current instanceof HTMLElement) {
|
|
2312
|
-
const { factory: r, keyframes: a, times: l, ease: c, duration: u } = n.accelerate, h = new
|
|
2300
|
+
const { factory: r, keyframes: a, times: l, ease: c, duration: u } = n.accelerate, h = new Ei({
|
|
2313
2301
|
element: this.current,
|
|
2314
2302
|
name: e,
|
|
2315
2303
|
keyframes: a,
|
|
@@ -2322,10 +2310,10 @@ class vl {
|
|
|
2322
2310
|
});
|
|
2323
2311
|
return;
|
|
2324
2312
|
}
|
|
2325
|
-
const s =
|
|
2313
|
+
const s = Pt.has(e);
|
|
2326
2314
|
s && this.onBindTransform && this.onBindTransform();
|
|
2327
2315
|
const i = n.on("change", (r) => {
|
|
2328
|
-
this.latestValues[e] = r, this.props.onUpdate &&
|
|
2316
|
+
this.latestValues[e] = r, this.props.onUpdate && V.preRender(this.notifyUpdate), s && this.projection && (this.projection.isTransformDirty = !0), this.scheduleRender();
|
|
2329
2317
|
});
|
|
2330
2318
|
let o;
|
|
2331
2319
|
typeof window < "u" && window.MotionCheckAppearSync && (o = window.MotionCheckAppearSync(this, e, n)), this.valueSubscriptions.set(e, () => {
|
|
@@ -2442,7 +2430,7 @@ class vl {
|
|
|
2442
2430
|
*/
|
|
2443
2431
|
readValue(e, n) {
|
|
2444
2432
|
let s = this.latestValues[e] !== void 0 || !this.current ? this.latestValues[e] : this.getBaseTargetFromProps(this.props, e) ?? this.readValueFromInstance(this.current, e, this.options);
|
|
2445
|
-
return s != null && (typeof s == "string" && (
|
|
2433
|
+
return s != null && (typeof s == "string" && (qs(s) || Js(s)) ? s = parseFloat(s) : !fl(s) && H.test(n) && (s = Ki(e, n)), this.setBaseTarget(e, k(s) ? s.get() : s)), k(s) ? s.get() : s;
|
|
2446
2434
|
}
|
|
2447
2435
|
/**
|
|
2448
2436
|
* Set the base target to later animate back to. This is currently
|
|
@@ -2584,20 +2572,20 @@ function gt(t, e) {
|
|
|
2584
2572
|
function er(t, e) {
|
|
2585
2573
|
return Ji(xl(t.getBoundingClientRect(), e));
|
|
2586
2574
|
}
|
|
2587
|
-
function
|
|
2575
|
+
function Sl(t, e, n) {
|
|
2588
2576
|
const s = er(t, n), { scroll: i } = e;
|
|
2589
2577
|
return i && (pt(s.x, i.offset.x), pt(s.y, i.offset.y)), s;
|
|
2590
2578
|
}
|
|
2591
|
-
const
|
|
2579
|
+
const Pl = {
|
|
2592
2580
|
x: "translateX",
|
|
2593
2581
|
y: "translateY",
|
|
2594
2582
|
z: "translateZ",
|
|
2595
2583
|
transformPerspective: "perspective"
|
|
2596
|
-
}, bl =
|
|
2597
|
-
function
|
|
2584
|
+
}, bl = St.length;
|
|
2585
|
+
function Vl(t, e, n) {
|
|
2598
2586
|
let s = "", i = !0;
|
|
2599
2587
|
for (let o = 0; o < bl; o++) {
|
|
2600
|
-
const r =
|
|
2588
|
+
const r = St[o], a = t[r];
|
|
2601
2589
|
if (a === void 0)
|
|
2602
2590
|
continue;
|
|
2603
2591
|
let l = !0;
|
|
@@ -2611,7 +2599,7 @@ function Al(t, e, n) {
|
|
|
2611
2599
|
const c = $i(a, mn[r]);
|
|
2612
2600
|
if (!l) {
|
|
2613
2601
|
i = !1;
|
|
2614
|
-
const u =
|
|
2602
|
+
const u = Pl[r] || r;
|
|
2615
2603
|
s += `${u}(${c}) `;
|
|
2616
2604
|
}
|
|
2617
2605
|
n && (e[r] = c);
|
|
@@ -2624,10 +2612,10 @@ function xn(t, e, n) {
|
|
|
2624
2612
|
let r = !1, a = !1;
|
|
2625
2613
|
for (const l in e) {
|
|
2626
2614
|
const c = e[l];
|
|
2627
|
-
if (
|
|
2615
|
+
if (Pt.has(l)) {
|
|
2628
2616
|
r = !0;
|
|
2629
2617
|
continue;
|
|
2630
|
-
} else if (
|
|
2618
|
+
} else if (di(l)) {
|
|
2631
2619
|
i[l] = c;
|
|
2632
2620
|
continue;
|
|
2633
2621
|
} else {
|
|
@@ -2635,7 +2623,7 @@ function xn(t, e, n) {
|
|
|
2635
2623
|
l.startsWith("origin") ? (a = !0, o[l] = u) : s[l] = u;
|
|
2636
2624
|
}
|
|
2637
2625
|
}
|
|
2638
|
-
if (e.transform || (r || n ? s.transform =
|
|
2626
|
+
if (e.transform || (r || n ? s.transform = Vl(e, t.transform, n) : s.transform && (s.transform = "none")), a) {
|
|
2639
2627
|
const { originX: l = "50%", originY: c = "50%", originZ: u = 0 } = o;
|
|
2640
2628
|
s.transformOrigin = `${l} ${c} ${u}`;
|
|
2641
2629
|
}
|
|
@@ -2664,7 +2652,7 @@ const bt = {
|
|
|
2664
2652
|
const n = is(t, e.target.x), s = is(t, e.target.y);
|
|
2665
2653
|
return `${n}% ${s}%`;
|
|
2666
2654
|
}
|
|
2667
|
-
},
|
|
2655
|
+
}, Al = {
|
|
2668
2656
|
correct: (t, { treeScale: e, projectionDelta: n }) => {
|
|
2669
2657
|
const s = t, i = H.parse(t);
|
|
2670
2658
|
if (i.length > 5)
|
|
@@ -2688,10 +2676,10 @@ const bt = {
|
|
|
2688
2676
|
borderTopRightRadius: bt,
|
|
2689
2677
|
borderBottomLeftRadius: bt,
|
|
2690
2678
|
borderBottomRightRadius: bt,
|
|
2691
|
-
boxShadow:
|
|
2679
|
+
boxShadow: Al
|
|
2692
2680
|
};
|
|
2693
2681
|
function sr(t, { layout: e, layoutId: n }) {
|
|
2694
|
-
return
|
|
2682
|
+
return Pt.has(t) || t.startsWith("origin") || (e || n !== void 0) && (!!ze[t] || t === "opacity");
|
|
2695
2683
|
}
|
|
2696
2684
|
function wn(t, e, n) {
|
|
2697
2685
|
const s = t.style, i = e?.style, o = {};
|
|
@@ -2709,10 +2697,10 @@ class Ml extends Zi {
|
|
|
2709
2697
|
super(...arguments), this.type = "html", this.renderInstance = nr;
|
|
2710
2698
|
}
|
|
2711
2699
|
readValueFromInstance(e, n) {
|
|
2712
|
-
if (
|
|
2700
|
+
if (Pt.has(n))
|
|
2713
2701
|
return this.projection?.isProjecting ? Ee(n) : Ho(e, n);
|
|
2714
2702
|
{
|
|
2715
|
-
const s = Dl(e), i = (
|
|
2703
|
+
const s = Dl(e), i = (di(n) ? s.getPropertyValue(n) : s[n]) || 0;
|
|
2716
2704
|
return typeof i == "string" ? i.trim() : i;
|
|
2717
2705
|
}
|
|
2718
2706
|
}
|
|
@@ -2799,7 +2787,7 @@ function ar(t, e, n) {
|
|
|
2799
2787
|
const s = wn(t, e, n);
|
|
2800
2788
|
for (const i in t)
|
|
2801
2789
|
if (k(t[i]) || k(e[i])) {
|
|
2802
|
-
const o =
|
|
2790
|
+
const o = St.indexOf(i) !== -1 ? "attr" + i.charAt(0).toUpperCase() + i.substring(1) : i;
|
|
2803
2791
|
s[o] = t[i];
|
|
2804
2792
|
}
|
|
2805
2793
|
return s;
|
|
@@ -2812,8 +2800,8 @@ class Bl extends Zi {
|
|
|
2812
2800
|
return e[n];
|
|
2813
2801
|
}
|
|
2814
2802
|
readValueFromInstance(e, n) {
|
|
2815
|
-
if (
|
|
2816
|
-
const s =
|
|
2803
|
+
if (Pt.has(n)) {
|
|
2804
|
+
const s = Wi(n);
|
|
2817
2805
|
return s && s.default || 0;
|
|
2818
2806
|
}
|
|
2819
2807
|
return n = rr.has(n) ? n : dn(n), e.getAttribute(n);
|
|
@@ -2878,9 +2866,9 @@ function Nl(t) {
|
|
|
2878
2866
|
const { props: c } = t, u = lr(t.parent) || {}, h = [], f = /* @__PURE__ */ new Set();
|
|
2879
2867
|
let d = {}, m = 1 / 0;
|
|
2880
2868
|
for (let g = 0; g < Ol; g++) {
|
|
2881
|
-
const p = Il[g], x = n[p], y = c[p] !== void 0 ? c[p] : u[p],
|
|
2869
|
+
const p = Il[g], x = n[p], y = c[p] !== void 0 ? c[p] : u[p], S = Lt(y), w = p === l ? x.isActive : null;
|
|
2882
2870
|
w === !1 && (m = g);
|
|
2883
|
-
let b = y === u[p] && y !== c[p] &&
|
|
2871
|
+
let b = y === u[p] && y !== c[p] && S;
|
|
2884
2872
|
if (b && s && t.manuallyAnimateOnMount && (b = !1), x.protectedKeys = { ...d }, // If it isn't active and hasn't *just* been set as inactive
|
|
2885
2873
|
!x.isActive && w === null || // If we didn't and don't have any defined prop for this animation type
|
|
2886
2874
|
!y && !x.prevProp || // Or if the prop doesn't define an animation
|
|
@@ -2894,17 +2882,17 @@ function Nl(t) {
|
|
|
2894
2882
|
continue;
|
|
2895
2883
|
}
|
|
2896
2884
|
const C = Ul(x.prevProp, y);
|
|
2897
|
-
let
|
|
2898
|
-
p === l && x.isActive && !b &&
|
|
2899
|
-
g > m &&
|
|
2885
|
+
let P = C || // If we're making this variant active, we want to always make it active
|
|
2886
|
+
p === l && x.isActive && !b && S || // If we removed a higher-priority variant (i is in reverse order)
|
|
2887
|
+
g > m && S, I = !1;
|
|
2900
2888
|
const j = Array.isArray(y) ? y : [y];
|
|
2901
2889
|
let lt = j.reduce(i(p), {});
|
|
2902
2890
|
w === !1 && (lt = {});
|
|
2903
2891
|
const { prevResolvedValues: bn = {} } = x, kr = {
|
|
2904
2892
|
...bn,
|
|
2905
2893
|
...lt
|
|
2906
|
-
},
|
|
2907
|
-
|
|
2894
|
+
}, Vn = (R) => {
|
|
2895
|
+
P = !0, f.has(R) && (I = !0, f.delete(R)), x.needsAnimating[R] = !0;
|
|
2908
2896
|
const N = t.getValue(R);
|
|
2909
2897
|
N && (N.liveStyle = !1);
|
|
2910
2898
|
};
|
|
@@ -2913,17 +2901,17 @@ function Nl(t) {
|
|
|
2913
2901
|
if (d.hasOwnProperty(R))
|
|
2914
2902
|
continue;
|
|
2915
2903
|
let ct = !1;
|
|
2916
|
-
Ie(N) && Ie(et) ? ct = !cr(N, et) : ct = N !== et, ct ? N != null ?
|
|
2904
|
+
Ie(N) && Ie(et) ? ct = !cr(N, et) : ct = N !== et, ct ? N != null ? Vn(R) : f.add(R) : N !== void 0 && f.has(R) ? Vn(R) : x.protectedKeys[R] = !0;
|
|
2917
2905
|
}
|
|
2918
|
-
x.prevProp = y, x.prevResolvedValues = lt, x.isActive && (d = { ...d, ...lt }), s && t.blockInitialAnimation && (
|
|
2919
|
-
const
|
|
2920
|
-
|
|
2906
|
+
x.prevProp = y, x.prevResolvedValues = lt, x.isActive && (d = { ...d, ...lt }), s && t.blockInitialAnimation && (P = !1);
|
|
2907
|
+
const An = b && C;
|
|
2908
|
+
P && (!An || I) && h.push(...j.map((R) => {
|
|
2921
2909
|
const N = { type: p };
|
|
2922
|
-
if (typeof R == "string" && s && !
|
|
2910
|
+
if (typeof R == "string" && s && !An && t.manuallyAnimateOnMount && t.parent) {
|
|
2923
2911
|
const { parent: et } = t, ct = yt(et, R);
|
|
2924
2912
|
if (et.enteringChildren && ct) {
|
|
2925
2913
|
const { delayChildren: Br } = ct.transition || {};
|
|
2926
|
-
N.delay =
|
|
2914
|
+
N.delay = Li(et.enteringChildren, t, Br);
|
|
2927
2915
|
}
|
|
2928
2916
|
}
|
|
2929
2917
|
return {
|
|
@@ -3089,7 +3077,7 @@ function Ql(t, e, n, s, i, o) {
|
|
|
3089
3077
|
function ws(t, e) {
|
|
3090
3078
|
return t[e] !== void 0 ? t[e] : t.borderRadius;
|
|
3091
3079
|
}
|
|
3092
|
-
const tc = /* @__PURE__ */ pr(0, 0.5,
|
|
3080
|
+
const tc = /* @__PURE__ */ pr(0, 0.5, ai), ec = /* @__PURE__ */ pr(0.5, 0.95, W);
|
|
3093
3081
|
function pr(t, e, n) {
|
|
3094
3082
|
return (s) => s < t ? 0 : s > e ? 1 : n(/* @__PURE__ */ Ct(t, e, s));
|
|
3095
3083
|
}
|
|
@@ -3120,7 +3108,7 @@ function rc(t, e) {
|
|
|
3120
3108
|
const o = i - n;
|
|
3121
3109
|
o >= e && (Q(s), t(o - e));
|
|
3122
3110
|
};
|
|
3123
|
-
return
|
|
3111
|
+
return V.setup(s, !0), () => Q(s);
|
|
3124
3112
|
}
|
|
3125
3113
|
function Gt(t) {
|
|
3126
3114
|
return k(t) ? t.get() : t;
|
|
@@ -3215,10 +3203,10 @@ function gr(t) {
|
|
|
3215
3203
|
const { visualElement: e } = t.options;
|
|
3216
3204
|
if (!e)
|
|
3217
3205
|
return;
|
|
3218
|
-
const n =
|
|
3206
|
+
const n = Oi(e);
|
|
3219
3207
|
if (window.MotionHasOptimisedAnimation(n, "transform")) {
|
|
3220
3208
|
const { layout: i, layoutId: o } = t.options;
|
|
3221
|
-
window.MotionCancelOptimisedAnimation(n, "transform",
|
|
3209
|
+
window.MotionCancelOptimisedAnimation(n, "transform", V, !(i || o));
|
|
3222
3210
|
}
|
|
3223
3211
|
const { parent: s } = t;
|
|
3224
3212
|
s && !s.hasCheckedOptimisedAppear && gr(s);
|
|
@@ -3256,7 +3244,7 @@ function yr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
3256
3244
|
if (c && !c.current && c.mount(r), this.root.nodes.add(this), this.parent && this.parent.children.add(this), this.root.hasTreeAnimated && (l || a) && (this.isLayoutDirty = !0), t) {
|
|
3257
3245
|
let u, h = 0;
|
|
3258
3246
|
const f = () => this.root.updateBlockedByResize = !1;
|
|
3259
|
-
|
|
3247
|
+
V.read(() => {
|
|
3260
3248
|
h = window.innerWidth;
|
|
3261
3249
|
}), t(r, () => {
|
|
3262
3250
|
const d = window.innerWidth;
|
|
@@ -3328,14 +3316,14 @@ function yr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
3328
3316
|
}
|
|
3329
3317
|
update() {
|
|
3330
3318
|
if (this.updateScheduled = !1, this.isUpdateBlocked()) {
|
|
3331
|
-
this.unblockUpdate(), this.clearAllSnapshots(), this.nodes.forEach(
|
|
3319
|
+
this.unblockUpdate(), this.clearAllSnapshots(), this.nodes.forEach(Ss);
|
|
3332
3320
|
return;
|
|
3333
3321
|
}
|
|
3334
3322
|
if (this.animationId <= this.animationCommitId) {
|
|
3335
|
-
this.nodes.forEach(
|
|
3323
|
+
this.nodes.forEach(Ps);
|
|
3336
3324
|
return;
|
|
3337
3325
|
}
|
|
3338
|
-
this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(mc), this.nodes.forEach(cc), this.nodes.forEach(uc)) : this.nodes.forEach(
|
|
3326
|
+
this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(mc), this.nodes.forEach(cc), this.nodes.forEach(uc)) : this.nodes.forEach(Ps), this.clearAllSnapshots();
|
|
3339
3327
|
const a = B.now();
|
|
3340
3328
|
L.delta = X(0, 1e3 / 60, a - L.timestamp), L.timestamp = a, L.isProcessing = !0, oe.update.process(L), oe.preRender.process(L), oe.render.process(L), L.isProcessing = !1;
|
|
3341
3329
|
}
|
|
@@ -3346,10 +3334,10 @@ function yr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
3346
3334
|
this.nodes.forEach(dc), this.sharedNodes.forEach(vc);
|
|
3347
3335
|
}
|
|
3348
3336
|
scheduleUpdateProjection() {
|
|
3349
|
-
this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0,
|
|
3337
|
+
this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, V.preRender(this.updateProjection, !1, !0));
|
|
3350
3338
|
}
|
|
3351
3339
|
scheduleCheckAfterUnmount() {
|
|
3352
|
-
|
|
3340
|
+
V.postRender(() => {
|
|
3353
3341
|
this.isLayoutDirty ? this.root.didUpdate() : this.root.checkUpdateFailed();
|
|
3354
3342
|
});
|
|
3355
3343
|
}
|
|
@@ -3392,7 +3380,7 @@ function yr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
3392
3380
|
measure(r = !0) {
|
|
3393
3381
|
const a = this.measurePageBox();
|
|
3394
3382
|
let l = this.removeElementScroll(a);
|
|
3395
|
-
return r && (l = this.removeTransform(l)),
|
|
3383
|
+
return r && (l = this.removeTransform(l)), Sc(l), {
|
|
3396
3384
|
animationId: this.root.animationId,
|
|
3397
3385
|
measuredBox: a,
|
|
3398
3386
|
layoutBox: l,
|
|
@@ -3405,7 +3393,7 @@ function yr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
3405
3393
|
if (!r)
|
|
3406
3394
|
return E();
|
|
3407
3395
|
const a = r.measureViewportBox();
|
|
3408
|
-
if (!(this.scroll?.wasRoot || this.path.some(
|
|
3396
|
+
if (!(this.scroll?.wasRoot || this.path.some(Pc))) {
|
|
3409
3397
|
const { scroll: c } = this.root;
|
|
3410
3398
|
c && (pt(a.x, c.offset.x), pt(a.y, c.offset.y));
|
|
3411
3399
|
}
|
|
@@ -3528,13 +3516,13 @@ function yr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
3528
3516
|
const f = E(), d = l ? l.source : void 0, m = this.layout ? this.layout.source : void 0, v = d !== m, g = this.getStack(), p = !g || g.members.length <= 1, x = !!(v && !p && this.options.crossfade === !0 && !this.path.some(xc));
|
|
3529
3517
|
this.animationProgress = 0;
|
|
3530
3518
|
let y;
|
|
3531
|
-
this.mixTargetDelta = (
|
|
3532
|
-
const w =
|
|
3533
|
-
|
|
3519
|
+
this.mixTargetDelta = (S) => {
|
|
3520
|
+
const w = S / 1e3;
|
|
3521
|
+
Vs(h.x, r.x, w), Vs(h.y, r.y, w), this.setTargetDelta(h), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (te(f, this.layout.layoutBox, this.relativeParent.layout.layoutBox), Tc(this.relativeTarget, this.relativeTargetOrigin, f, w), y && ql(this.relativeTarget, y) && (this.isProjectionDirty = !1), y || (y = E()), $(y, this.relativeTarget)), v && (this.animationValues = u, Ql(u, c, this.latestValues, w, x, p)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = w;
|
|
3534
3522
|
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
|
|
3535
3523
|
}
|
|
3536
3524
|
startAnimation(r) {
|
|
3537
|
-
this.notifyListeners("animationStart"), this.currentAnimation?.stop(), this.resumingFrom?.currentAnimation?.stop(), this.pendingAnimation && (Q(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation =
|
|
3525
|
+
this.notifyListeners("animationStart"), this.currentAnimation?.stop(), this.resumingFrom?.currentAnimation?.stop(), this.pendingAnimation && (Q(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = V.update(() => {
|
|
3538
3526
|
_t.hasAnimatedSinceResize = !0, this.motionValue || (this.motionValue = vt(0)), this.motionValue.jump(0, !1), this.currentAnimation = nc(this.motionValue, [0, 1e3], {
|
|
3539
3527
|
...r,
|
|
3540
3528
|
velocity: 0,
|
|
@@ -3652,8 +3640,8 @@ function yr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
3652
3640
|
const { correct: v, applyTo: g, isCSSVariable: p } = ze[m], x = h === "none" ? u[m] : v(u[m], c);
|
|
3653
3641
|
if (g) {
|
|
3654
3642
|
const y = g.length;
|
|
3655
|
-
for (let
|
|
3656
|
-
r[g[
|
|
3643
|
+
for (let S = 0; S < y; S++)
|
|
3644
|
+
r[g[S]] = x;
|
|
3657
3645
|
} else
|
|
3658
3646
|
p ? this.options.visualElement.renderState.vars[m] = x : r[m] = x;
|
|
3659
3647
|
}
|
|
@@ -3664,7 +3652,7 @@ function yr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
3664
3652
|
}
|
|
3665
3653
|
// Only run on root
|
|
3666
3654
|
resetTree() {
|
|
3667
|
-
this.root.nodes.forEach((r) => r.currentAnimation?.stop()), this.root.nodes.forEach(
|
|
3655
|
+
this.root.nodes.forEach((r) => r.currentAnimation?.stop()), this.root.nodes.forEach(Ss), this.root.sharedNodes.clear();
|
|
3668
3656
|
}
|
|
3669
3657
|
};
|
|
3670
3658
|
}
|
|
@@ -3723,10 +3711,10 @@ function fc(t) {
|
|
|
3723
3711
|
function dc(t) {
|
|
3724
3712
|
t.clearSnapshot();
|
|
3725
3713
|
}
|
|
3726
|
-
function
|
|
3714
|
+
function Ss(t) {
|
|
3727
3715
|
t.clearMeasurements();
|
|
3728
3716
|
}
|
|
3729
|
-
function
|
|
3717
|
+
function Ps(t) {
|
|
3730
3718
|
t.isLayoutDirty = !1;
|
|
3731
3719
|
}
|
|
3732
3720
|
function mc(t) {
|
|
@@ -3748,14 +3736,14 @@ function yc(t) {
|
|
|
3748
3736
|
function vc(t) {
|
|
3749
3737
|
t.removeLeadSnapshot();
|
|
3750
3738
|
}
|
|
3751
|
-
function
|
|
3739
|
+
function Vs(t, e, n) {
|
|
3752
3740
|
t.translate = D(e.translate, 0, n), t.scale = D(e.scale, 1, n), t.origin = e.origin, t.originPoint = e.originPoint;
|
|
3753
3741
|
}
|
|
3754
|
-
function
|
|
3742
|
+
function As(t, e, n, s) {
|
|
3755
3743
|
t.min = D(e.min, n.min, s), t.max = D(e.max, n.max, s);
|
|
3756
3744
|
}
|
|
3757
3745
|
function Tc(t, e, n, s) {
|
|
3758
|
-
|
|
3746
|
+
As(t.x, e.x, n.x, s), As(t.y, e.y, n.y, s);
|
|
3759
3747
|
}
|
|
3760
3748
|
function xc(t) {
|
|
3761
3749
|
return t.animationValues && t.animationValues.opacityExit !== void 0;
|
|
@@ -3767,13 +3755,13 @@ const wc = {
|
|
|
3767
3755
|
function Cs(t) {
|
|
3768
3756
|
t.min = Ms(t.min), t.max = Ms(t.max);
|
|
3769
3757
|
}
|
|
3770
|
-
function
|
|
3758
|
+
function Sc(t) {
|
|
3771
3759
|
Cs(t.x), Cs(t.y);
|
|
3772
3760
|
}
|
|
3773
3761
|
function vr(t, e, n) {
|
|
3774
3762
|
return t === "position" || t === "preserve-aspect" && !Hl(ys(e), ys(n), 0.2);
|
|
3775
3763
|
}
|
|
3776
|
-
function
|
|
3764
|
+
function Pc(t) {
|
|
3777
3765
|
return t !== t.root && t.scroll?.wasRoot;
|
|
3778
3766
|
}
|
|
3779
3767
|
const bc = yr({
|
|
@@ -3806,7 +3794,7 @@ const bc = yr({
|
|
|
3806
3794
|
isStatic: !1,
|
|
3807
3795
|
reducedMotion: "never"
|
|
3808
3796
|
});
|
|
3809
|
-
function
|
|
3797
|
+
function Vc(t = !0) {
|
|
3810
3798
|
const e = O(Xe);
|
|
3811
3799
|
if (e === null)
|
|
3812
3800
|
return [!0, null];
|
|
@@ -3839,7 +3827,7 @@ const wr = Tt({ strict: !1 }), Es = {
|
|
|
3839
3827
|
layout: ["layout", "layoutId"]
|
|
3840
3828
|
};
|
|
3841
3829
|
let Rs = !1;
|
|
3842
|
-
function
|
|
3830
|
+
function Ac() {
|
|
3843
3831
|
if (Rs)
|
|
3844
3832
|
return;
|
|
3845
3833
|
const t = {};
|
|
@@ -3849,11 +3837,11 @@ function Vc() {
|
|
|
3849
3837
|
};
|
|
3850
3838
|
qi(t), Rs = !0;
|
|
3851
3839
|
}
|
|
3852
|
-
function
|
|
3853
|
-
return
|
|
3840
|
+
function Sr() {
|
|
3841
|
+
return Ac(), yl();
|
|
3854
3842
|
}
|
|
3855
3843
|
function Dc(t) {
|
|
3856
|
-
const e =
|
|
3844
|
+
const e = Sr();
|
|
3857
3845
|
for (const n in t)
|
|
3858
3846
|
e[n] = {
|
|
3859
3847
|
...e[n],
|
|
@@ -3897,9 +3885,9 @@ const Mc = /* @__PURE__ */ new Set([
|
|
|
3897
3885
|
function ee(t) {
|
|
3898
3886
|
return t.startsWith("while") || t.startsWith("drag") && t !== "draggable" || t.startsWith("layout") || t.startsWith("onTap") || t.startsWith("onPan") || t.startsWith("onLayout") || Mc.has(t);
|
|
3899
3887
|
}
|
|
3900
|
-
let
|
|
3888
|
+
let Pr = (t) => !ee(t);
|
|
3901
3889
|
function Cc(t) {
|
|
3902
|
-
typeof t == "function" && (
|
|
3890
|
+
typeof t == "function" && (Pr = (e) => e.startsWith("on") ? !ee(e) : t(e));
|
|
3903
3891
|
}
|
|
3904
3892
|
try {
|
|
3905
3893
|
Cc(require("@emotion/is-prop-valid").default);
|
|
@@ -3908,7 +3896,7 @@ try {
|
|
|
3908
3896
|
function Ec(t, e, n) {
|
|
3909
3897
|
const s = {};
|
|
3910
3898
|
for (const i in t)
|
|
3911
|
-
i === "values" && typeof t.values == "object" || (
|
|
3899
|
+
i === "values" && typeof t.values == "object" || (Pr(i) || n === !0 && ee(i) || !e && !ee(i) || // If trying to use native HTML drag events, forward drag listeners
|
|
3912
3900
|
t.draggable && i.startsWith("onDrag")) && (s[i] = t[i]);
|
|
3913
3901
|
return s;
|
|
3914
3902
|
}
|
|
@@ -3930,7 +3918,7 @@ function Lc(t) {
|
|
|
3930
3918
|
function Ls(t) {
|
|
3931
3919
|
return Array.isArray(t) ? t.join(" ") : t;
|
|
3932
3920
|
}
|
|
3933
|
-
const
|
|
3921
|
+
const Sn = () => ({
|
|
3934
3922
|
style: {},
|
|
3935
3923
|
transform: {},
|
|
3936
3924
|
transformOrigin: {},
|
|
@@ -3942,7 +3930,7 @@ function br(t, e, n) {
|
|
|
3942
3930
|
}
|
|
3943
3931
|
function kc({ transformTemplate: t }, e) {
|
|
3944
3932
|
return ne(() => {
|
|
3945
|
-
const n =
|
|
3933
|
+
const n = Sn();
|
|
3946
3934
|
return xn(n, e, t), Object.assign({}, n.vars, n.style);
|
|
3947
3935
|
}, [e]);
|
|
3948
3936
|
}
|
|
@@ -3954,13 +3942,13 @@ function Fc(t, e) {
|
|
|
3954
3942
|
const n = {}, s = Bc(t, e);
|
|
3955
3943
|
return t.drag && t.dragListener !== !1 && (n.draggable = !1, s.userSelect = s.WebkitUserSelect = s.WebkitTouchCallout = "none", s.touchAction = t.drag === !0 ? "none" : `pan-${t.drag === "x" ? "y" : "x"}`), t.tabIndex === void 0 && (t.onTap || t.onTapStart || t.whileTap) && (n.tabIndex = 0), n.style = s, n;
|
|
3956
3944
|
}
|
|
3957
|
-
const
|
|
3958
|
-
...
|
|
3945
|
+
const Vr = () => ({
|
|
3946
|
+
...Sn(),
|
|
3959
3947
|
attrs: {}
|
|
3960
3948
|
});
|
|
3961
3949
|
function Ic(t, e, n, s) {
|
|
3962
3950
|
const i = ne(() => {
|
|
3963
|
-
const o =
|
|
3951
|
+
const o = Vr();
|
|
3964
3952
|
return ir(o, e, or(s), t.transformTemplate, t.style), {
|
|
3965
3953
|
...o.attrs,
|
|
3966
3954
|
style: { ...o.style }
|
|
@@ -3999,7 +3987,7 @@ const Oc = [
|
|
|
3999
3987
|
"use",
|
|
4000
3988
|
"view"
|
|
4001
3989
|
];
|
|
4002
|
-
function
|
|
3990
|
+
function Pn(t) {
|
|
4003
3991
|
return (
|
|
4004
3992
|
/**
|
|
4005
3993
|
* If it's not a string, it's a custom React component. Currently we only support
|
|
@@ -4020,7 +4008,7 @@ function Sn(t) {
|
|
|
4020
4008
|
);
|
|
4021
4009
|
}
|
|
4022
4010
|
function jc(t, e, n, { latestValues: s }, i, o = !1, r) {
|
|
4023
|
-
const l = (r ??
|
|
4011
|
+
const l = (r ?? Pn(t) ? Ic : Fc)(e, s, i, t), c = Ec(e, typeof t == "string", o), u = t !== zs ? { ...c, ...l, ref: n } : {}, { children: h } = e, f = ne(() => k(h) ? h.get() : h, [h]);
|
|
4024
4012
|
return Or(t, {
|
|
4025
4013
|
...u,
|
|
4026
4014
|
children: f
|
|
@@ -4051,8 +4039,8 @@ function Uc(t, e, n, s) {
|
|
|
4051
4039
|
for (const x in p) {
|
|
4052
4040
|
let y = p[x];
|
|
4053
4041
|
if (Array.isArray(y)) {
|
|
4054
|
-
const
|
|
4055
|
-
y = y[
|
|
4042
|
+
const S = u ? y.length - 1 : 0;
|
|
4043
|
+
y = y[S];
|
|
4056
4044
|
}
|
|
4057
4045
|
y !== null && (i[x] = y);
|
|
4058
4046
|
}
|
|
@@ -4063,15 +4051,15 @@ function Uc(t, e, n, s) {
|
|
|
4063
4051
|
}
|
|
4064
4052
|
return i;
|
|
4065
4053
|
}
|
|
4066
|
-
const
|
|
4054
|
+
const Ar = (t) => (e, n) => {
|
|
4067
4055
|
const s = O(re), i = O(Xe), o = () => Nc(t, e, s, i);
|
|
4068
4056
|
return n ? o() : Wr(o);
|
|
4069
|
-
}, Wc = /* @__PURE__ */
|
|
4057
|
+
}, Wc = /* @__PURE__ */ Ar({
|
|
4070
4058
|
scrapeMotionValuesFromProps: wn,
|
|
4071
|
-
createRenderState:
|
|
4072
|
-
}), Kc = /* @__PURE__ */
|
|
4059
|
+
createRenderState: Sn
|
|
4060
|
+
}), Kc = /* @__PURE__ */ Ar({
|
|
4073
4061
|
scrapeMotionValuesFromProps: ar,
|
|
4074
|
-
createRenderState:
|
|
4062
|
+
createRenderState: Vr
|
|
4075
4063
|
}), $c = /* @__PURE__ */ Symbol.for("motionComponentSymbol");
|
|
4076
4064
|
function zc(t, e, n) {
|
|
4077
4065
|
const s = it(n);
|
|
@@ -4112,7 +4100,7 @@ function Hc(t, e, n, s, i, o) {
|
|
|
4112
4100
|
Hs(() => {
|
|
4113
4101
|
m && g.current && m.update(n, l);
|
|
4114
4102
|
});
|
|
4115
|
-
const p = n[
|
|
4103
|
+
const p = n[Ii], x = it(!!p && !window.MotionHandoffIsComplete?.(p) && window.MotionHasOptimisedAnimation?.(p));
|
|
4116
4104
|
return Kr(() => {
|
|
4117
4105
|
d.current = !0, m && (g.current = !0, window.MotionIsMounted = !0, m.updateFeatures(), m.scheduleRenderMicrotask(), x.current && m.animationState && m.animationState.animateChanges());
|
|
4118
4106
|
}), _e(() => {
|
|
@@ -4148,7 +4136,7 @@ function Mr(t) {
|
|
|
4148
4136
|
}
|
|
4149
4137
|
function ye(t, { forwardMotionProps: e = !1, type: n } = {}, s, i) {
|
|
4150
4138
|
s && Dc(s);
|
|
4151
|
-
const o = n ? n === "svg" :
|
|
4139
|
+
const o = n ? n === "svg" : Pn(t), r = o ? Kc : Wc;
|
|
4152
4140
|
function a(c, u) {
|
|
4153
4141
|
let h;
|
|
4154
4142
|
const f = {
|
|
@@ -4156,7 +4144,7 @@ function ye(t, { forwardMotionProps: e = !1, type: n } = {}, s, i) {
|
|
|
4156
4144
|
...c,
|
|
4157
4145
|
layoutId: _c(c)
|
|
4158
4146
|
}, { isStatic: d } = f, m = Lc(c), v = r(c, d);
|
|
4159
|
-
if (!d &&
|
|
4147
|
+
if (!d && Ys) {
|
|
4160
4148
|
Xc(f, s);
|
|
4161
4149
|
const g = Yc(f);
|
|
4162
4150
|
h = g.MeasureLayout, m.visualElement = Hc(t, v, f, i, g.ProjectionNode, o);
|
|
@@ -4168,7 +4156,7 @@ function ye(t, { forwardMotionProps: e = !1, type: n } = {}, s, i) {
|
|
|
4168
4156
|
return l[$c] = t, l;
|
|
4169
4157
|
}
|
|
4170
4158
|
function _c({ layoutId: t }) {
|
|
4171
|
-
const e = O(
|
|
4159
|
+
const e = O(Xs).id;
|
|
4172
4160
|
return e && t !== void 0 ? e + "-" + t : t;
|
|
4173
4161
|
}
|
|
4174
4162
|
function Xc(t, e) {
|
|
@@ -4179,7 +4167,7 @@ function Xc(t, e) {
|
|
|
4179
4167
|
}
|
|
4180
4168
|
}
|
|
4181
4169
|
function Yc(t) {
|
|
4182
|
-
const e =
|
|
4170
|
+
const e = Sr(), { drag: n, layout: s } = e;
|
|
4183
4171
|
if (!n && !s)
|
|
4184
4172
|
return {};
|
|
4185
4173
|
const i = { ...n, ...s };
|
|
@@ -4201,7 +4189,7 @@ function qc(t, e) {
|
|
|
4201
4189
|
get: (o, r) => r === "create" ? s : (n.has(r) || n.set(r, ye(r, void 0, t, e)), n.get(r))
|
|
4202
4190
|
});
|
|
4203
4191
|
}
|
|
4204
|
-
const Zc = (t, e) => e.isSVG ??
|
|
4192
|
+
const Zc = (t, e) => e.isSVG ?? Pn(t) ? new Bl(e) : new Ml(e, {
|
|
4205
4193
|
allowProjection: t !== zs
|
|
4206
4194
|
});
|
|
4207
4195
|
class Jc extends tt {
|
|
@@ -4297,7 +4285,7 @@ class Er {
|
|
|
4297
4285
|
const { onStart: x, onMove: y } = this.handlers;
|
|
4298
4286
|
m || (x && x(this.lastMoveEvent, d), this.startEvent = this.lastMoveEvent), y && y(this.lastMoveEvent, d);
|
|
4299
4287
|
}, this.handlePointerMove = (d, m) => {
|
|
4300
|
-
this.lastMoveEvent = d, this.lastMoveEventInfo = ve(m, this.transformPagePoint),
|
|
4288
|
+
this.lastMoveEvent = d, this.lastMoveEventInfo = ve(m, this.transformPagePoint), V.update(this.updatePoint, !0);
|
|
4301
4289
|
}, this.handlePointerUp = (d, m) => {
|
|
4302
4290
|
this.end();
|
|
4303
4291
|
const { onEnd: v, onSessionEnd: g, resumeAnimation: p } = this.handlers;
|
|
@@ -4350,7 +4338,7 @@ class Er {
|
|
|
4350
4338
|
x: e.scrollLeft,
|
|
4351
4339
|
y: e.scrollTop
|
|
4352
4340
|
}, o = { x: i.x - n.x, y: i.y - n.y };
|
|
4353
|
-
o.x === 0 && o.y === 0 || (s ? this.lastMoveEventInfo && (this.lastMoveEventInfo.point.x += o.x, this.lastMoveEventInfo.point.y += o.y) : this.history.length > 0 && (this.history[0].x -= o.x, this.history[0].y -= o.y), this.scrollPositions.set(e, i),
|
|
4341
|
+
o.x === 0 && o.y === 0 || (s ? this.lastMoveEventInfo && (this.lastMoveEventInfo.point.x += o.x, this.lastMoveEventInfo.point.y += o.y) : this.history.length > 0 && (this.history[0].x -= o.x, this.history[0].y -= o.y), this.scrollPositions.set(e, i), V.update(this.updatePoint, !0));
|
|
4354
4342
|
}
|
|
4355
4343
|
updateHandlers(e) {
|
|
4356
4344
|
this.handlers = e;
|
|
@@ -4468,12 +4456,12 @@ class du {
|
|
|
4468
4456
|
if (_.test(x)) {
|
|
4469
4457
|
const { projection: y } = this.visualElement;
|
|
4470
4458
|
if (y && y.layout) {
|
|
4471
|
-
const
|
|
4472
|
-
|
|
4459
|
+
const S = y.layout.layoutBox[p];
|
|
4460
|
+
S && (x = F(S) * (parseFloat(x) / 100));
|
|
4473
4461
|
}
|
|
4474
4462
|
}
|
|
4475
4463
|
this.originPoint[p] = x;
|
|
4476
|
-
}), v &&
|
|
4464
|
+
}), v && V.update(() => v(h, f), !1, !0), Oe(this.visualElement, "transform");
|
|
4477
4465
|
const { animationState: g } = this.visualElement;
|
|
4478
4466
|
g && g.setActive("whileDrag", !0);
|
|
4479
4467
|
}, a = (h, f) => {
|
|
@@ -4486,7 +4474,7 @@ class du {
|
|
|
4486
4474
|
this.currentDirection = pu(p), this.currentDirection !== null && v && v(this.currentDirection);
|
|
4487
4475
|
return;
|
|
4488
4476
|
}
|
|
4489
|
-
this.updateAxis("x", f.point, p), this.updateAxis("y", f.point, p), this.visualElement.render(), g &&
|
|
4477
|
+
this.updateAxis("x", f.point, p), this.updateAxis("y", f.point, p), this.visualElement.render(), g && V.update(() => g(h, f), !1, !0);
|
|
4490
4478
|
}, l = (h, f) => {
|
|
4491
4479
|
this.latestPointerEvent = h, this.latestPanInfo = f, this.stop(h, f), this.latestPointerEvent = null, this.latestPanInfo = null;
|
|
4492
4480
|
}, c = () => {
|
|
@@ -4517,7 +4505,7 @@ class du {
|
|
|
4517
4505
|
const { velocity: r } = i;
|
|
4518
4506
|
this.startAnimation(r);
|
|
4519
4507
|
const { onDragEnd: a } = this.getProps();
|
|
4520
|
-
a &&
|
|
4508
|
+
a && V.postRender(() => a(s, i));
|
|
4521
4509
|
}
|
|
4522
4510
|
/**
|
|
4523
4511
|
* @internal
|
|
@@ -4561,7 +4549,7 @@ class du {
|
|
|
4561
4549
|
const { projection: i } = this.visualElement;
|
|
4562
4550
|
if (!i || !i.layout)
|
|
4563
4551
|
return !1;
|
|
4564
|
-
const o =
|
|
4552
|
+
const o = Sl(s, i.root, this.visualElement.getTransformPagePoint());
|
|
4565
4553
|
let r = lu(i.layout.layoutBox, o);
|
|
4566
4554
|
if (n) {
|
|
4567
4555
|
const a = n(Tl(r));
|
|
@@ -4660,7 +4648,7 @@ class du {
|
|
|
4660
4648
|
const { dragConstraints: c } = this.getProps();
|
|
4661
4649
|
ut(c) && c.current && (this.constraints = this.resolveRefConstraints(), s || (s = mu(e, c.current, () => this.scalePositionWithinConstraints())));
|
|
4662
4650
|
}, { projection: o } = this.visualElement, r = o.addEventListener("measure", i);
|
|
4663
|
-
o && !o.layout && (o.root && o.root.updateScroll(), o.updateLayout()),
|
|
4651
|
+
o && !o.layout && (o.root && o.root.updateScroll(), o.updateLayout()), V.read(i);
|
|
4664
4652
|
const a = kt(window, "resize", () => this.scalePositionWithinConstraints()), l = o.addEventListener("didUpdate", (({ delta: c, hasLayoutChanged: u }) => {
|
|
4665
4653
|
this.isDragging && u && (G((h) => {
|
|
4666
4654
|
const f = this.getAxisMotionValue(h);
|
|
@@ -4724,7 +4712,7 @@ class gu extends tt {
|
|
|
4724
4712
|
}
|
|
4725
4713
|
}
|
|
4726
4714
|
const xe = (t) => (e, n) => {
|
|
4727
|
-
t &&
|
|
4715
|
+
t && V.update(() => t(e, n), !1, !0);
|
|
4728
4716
|
};
|
|
4729
4717
|
class yu extends tt {
|
|
4730
4718
|
constructor() {
|
|
@@ -4743,7 +4731,7 @@ class yu extends tt {
|
|
|
4743
4731
|
onStart: xe(n),
|
|
4744
4732
|
onMove: xe(s),
|
|
4745
4733
|
onEnd: (o, r) => {
|
|
4746
|
-
delete this.session, i &&
|
|
4734
|
+
delete this.session, i && V.postRender(() => i(o, r));
|
|
4747
4735
|
}
|
|
4748
4736
|
};
|
|
4749
4737
|
}
|
|
@@ -4779,7 +4767,7 @@ class vu extends Nr {
|
|
|
4779
4767
|
return r && (r.isPresent = o, e.layoutDependency !== n && r.setOptions({
|
|
4780
4768
|
...r.options,
|
|
4781
4769
|
layoutDependency: n
|
|
4782
|
-
}), we = !0, i || e.layoutDependency !== n || n === void 0 || e.isPresent !== o ? r.willUpdate() : this.safeToRemove(), e.isPresent !== o && (o ? r.promote() : r.relegate() ||
|
|
4770
|
+
}), we = !0, i || e.layoutDependency !== n || n === void 0 || e.isPresent !== o ? r.willUpdate() : this.safeToRemove(), e.isPresent !== o && (o ? r.promote() : r.relegate() || V.postRender(() => {
|
|
4783
4771
|
const a = r.getStack();
|
|
4784
4772
|
(!a || !a.members.length) && this.safeToRemove();
|
|
4785
4773
|
}))), null;
|
|
@@ -4803,7 +4791,7 @@ class vu extends Nr {
|
|
|
4803
4791
|
}
|
|
4804
4792
|
}
|
|
4805
4793
|
function Lr(t) {
|
|
4806
|
-
const [e, n] =
|
|
4794
|
+
const [e, n] = Vc(), s = O(Xs);
|
|
4807
4795
|
return Gs(vu, { ...t, layoutGroup: s, switchLayoutGroup: O(Dr), isPresent: e, safeToRemove: n });
|
|
4808
4796
|
}
|
|
4809
4797
|
const Tu = {
|
|
@@ -4820,7 +4808,7 @@ function Ws(t, e, n) {
|
|
|
4820
4808
|
const { props: s } = t;
|
|
4821
4809
|
t.animationState && s.whileHover && t.animationState.setActive("whileHover", n === "Start");
|
|
4822
4810
|
const i = "onHover" + n, o = s[i];
|
|
4823
|
-
o &&
|
|
4811
|
+
o && V.postRender(() => o(e, Ot(e)));
|
|
4824
4812
|
}
|
|
4825
4813
|
class xu extends tt {
|
|
4826
4814
|
mount() {
|
|
@@ -4858,9 +4846,9 @@ function Ks(t, e, n) {
|
|
|
4858
4846
|
return;
|
|
4859
4847
|
t.animationState && s.whileTap && t.animationState.setActive("whileTap", n === "Start");
|
|
4860
4848
|
const i = "onTap" + (n === "End" ? "" : n), o = s[i];
|
|
4861
|
-
o &&
|
|
4849
|
+
o && V.postRender(() => o(e, Ot(e)));
|
|
4862
4850
|
}
|
|
4863
|
-
class
|
|
4851
|
+
class Su extends tt {
|
|
4864
4852
|
mount() {
|
|
4865
4853
|
const { current: e } = this.node;
|
|
4866
4854
|
if (!e)
|
|
@@ -4874,20 +4862,20 @@ class Pu extends tt {
|
|
|
4874
4862
|
unmount() {
|
|
4875
4863
|
}
|
|
4876
4864
|
}
|
|
4877
|
-
const Ge = /* @__PURE__ */ new WeakMap(),
|
|
4865
|
+
const Ge = /* @__PURE__ */ new WeakMap(), Se = /* @__PURE__ */ new WeakMap(), Pu = (t) => {
|
|
4878
4866
|
const e = Ge.get(t.target);
|
|
4879
4867
|
e && e(t);
|
|
4880
4868
|
}, bu = (t) => {
|
|
4881
|
-
t.forEach(
|
|
4869
|
+
t.forEach(Pu);
|
|
4882
4870
|
};
|
|
4883
|
-
function
|
|
4871
|
+
function Vu({ root: t, ...e }) {
|
|
4884
4872
|
const n = t || document;
|
|
4885
|
-
|
|
4886
|
-
const s =
|
|
4873
|
+
Se.has(n) || Se.set(n, {});
|
|
4874
|
+
const s = Se.get(n), i = JSON.stringify(e);
|
|
4887
4875
|
return s[i] || (s[i] = new IntersectionObserver(bu, { root: t, ...e })), s[i];
|
|
4888
4876
|
}
|
|
4889
|
-
function
|
|
4890
|
-
const s =
|
|
4877
|
+
function Au(t, e, n) {
|
|
4878
|
+
const s = Vu(e);
|
|
4891
4879
|
return Ge.set(t, n), s.observe(t), () => {
|
|
4892
4880
|
Ge.delete(t), s.unobserve(t);
|
|
4893
4881
|
};
|
|
@@ -4914,7 +4902,7 @@ class Mu extends tt {
|
|
|
4914
4902
|
const { onViewportEnter: u, onViewportLeave: h } = this.node.getProps(), f = c ? u : h;
|
|
4915
4903
|
f && f(l);
|
|
4916
4904
|
};
|
|
4917
|
-
return
|
|
4905
|
+
return Au(this.node.current, r, a);
|
|
4918
4906
|
}
|
|
4919
4907
|
mount() {
|
|
4920
4908
|
this.startObserver();
|
|
@@ -4936,7 +4924,7 @@ const Eu = {
|
|
|
4936
4924
|
Feature: Mu
|
|
4937
4925
|
},
|
|
4938
4926
|
tap: {
|
|
4939
|
-
Feature:
|
|
4927
|
+
Feature: Su
|
|
4940
4928
|
},
|
|
4941
4929
|
focus: {
|
|
4942
4930
|
Feature: wu
|
|
@@ -4954,14 +4942,14 @@ const Eu = {
|
|
|
4954
4942
|
...Eu,
|
|
4955
4943
|
...Tu,
|
|
4956
4944
|
...Ru
|
|
4957
|
-
},
|
|
4945
|
+
}, ju = /* @__PURE__ */ qc(Lu, Zc);
|
|
4958
4946
|
export {
|
|
4959
|
-
|
|
4947
|
+
Xs as L,
|
|
4960
4948
|
xr as M,
|
|
4961
4949
|
Xe as P,
|
|
4962
|
-
|
|
4950
|
+
Vc as a,
|
|
4963
4951
|
Kr as b,
|
|
4964
4952
|
Ga as i,
|
|
4965
|
-
|
|
4953
|
+
ju as m,
|
|
4966
4954
|
Wr as u
|
|
4967
4955
|
};
|