@luna-park/plugin-motion 1.0.4 → 1.1.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/README.md +124 -94
- package/dist/index.js +1824 -1642
- package/dist/runtime-_rbH5H1J.js +2639 -0
- package/dist/runtime.js +2 -2
- package/package.json +3 -2
- package/dist/runtime-DRrnUtwZ.js +0 -2003
package/dist/runtime-DRrnUtwZ.js
DELETED
|
@@ -1,2003 +0,0 @@
|
|
|
1
|
-
import { reactive as e } from "vue";
|
|
2
|
-
//#region node_modules/.pnpm/animejs@4.5.0/node_modules/animejs/dist/modules/core/consts.js
|
|
3
|
-
var t = typeof window < "u", n = t ? window : null, r = t ? document : null, i = {
|
|
4
|
-
OBJECT: 0,
|
|
5
|
-
ATTRIBUTE: 1,
|
|
6
|
-
CSS: 2,
|
|
7
|
-
TRANSFORM: 3,
|
|
8
|
-
CSS_VAR: 4
|
|
9
|
-
}, a = {
|
|
10
|
-
NUMBER: 0,
|
|
11
|
-
UNIT: 1,
|
|
12
|
-
COLOR: 2,
|
|
13
|
-
COMPLEX: 3
|
|
14
|
-
}, o = {
|
|
15
|
-
NONE: 0,
|
|
16
|
-
AUTO: 1,
|
|
17
|
-
FORCE: 2
|
|
18
|
-
}, s = {
|
|
19
|
-
replace: 0,
|
|
20
|
-
none: 1,
|
|
21
|
-
blend: 2
|
|
22
|
-
}, c = Symbol(), l = Symbol(), u = Symbol(), d = Symbol(), f = Symbol(), p = 1e-11, m = 0xe8d4a51000, h = 1e3, g = [], _ = /*#__PURE__*/ (() => {
|
|
23
|
-
let e = /* @__PURE__ */ new Map();
|
|
24
|
-
return e.set("x", "translateX"), e.set("y", "translateY"), e.set("z", "translateZ"), e;
|
|
25
|
-
})(), v = [
|
|
26
|
-
"perspective",
|
|
27
|
-
"translateX",
|
|
28
|
-
"translateY",
|
|
29
|
-
"translateZ",
|
|
30
|
-
"rotate",
|
|
31
|
-
"rotateX",
|
|
32
|
-
"rotateY",
|
|
33
|
-
"rotateZ",
|
|
34
|
-
"scale",
|
|
35
|
-
"scaleX",
|
|
36
|
-
"scaleY",
|
|
37
|
-
"scaleZ",
|
|
38
|
-
"skew",
|
|
39
|
-
"skewX",
|
|
40
|
-
"skewY"
|
|
41
|
-
], y = /*#__PURE__*/ v.reduce((e, t) => ({
|
|
42
|
-
...e,
|
|
43
|
-
[t]: t + "("
|
|
44
|
-
}), {}), b = () => {}, x = (e) => e, S = /\)\s*[-.\d]/, C = /(^#([\da-f]{3}){1,2}$)|(^#([\da-f]{4}){1,2}$)/i, w = /rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/i, T = /rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(-?\d+|-?\d*.\d+)\s*\)/i, E = /hsl\(\s*(-?\d+|-?\d*.\d+)\s*,\s*(-?\d+|-?\d*.\d+)%\s*,\s*(-?\d+|-?\d*.\d+)%\s*\)/i, D = /hsla\(\s*(-?\d+|-?\d*.\d+)\s*,\s*(-?\d+|-?\d*.\d+)%\s*,\s*(-?\d+|-?\d*.\d+)%\s*,\s*(-?\d+|-?\d*.\d+)\s*\)/i, O = /[-+]?\d*\.?\d+(?:e[-+]?\d)?/gi, k = /^([-+]?\d*\.?\d+(?:e[-+]?\d+)?)([a-z]+|%)$/i, ee = /([a-z])([A-Z])/g, A = /(\*=|\+=|-=)/, te = /var\(\s*(--[\w-]+)(?:\s*,\s*([^)]+))?\s*\)/, ne = {
|
|
45
|
-
id: null,
|
|
46
|
-
keyframes: null,
|
|
47
|
-
playbackEase: null,
|
|
48
|
-
playbackRate: 1,
|
|
49
|
-
frameRate: 240,
|
|
50
|
-
loop: 0,
|
|
51
|
-
reversed: !1,
|
|
52
|
-
alternate: !1,
|
|
53
|
-
autoplay: !0,
|
|
54
|
-
persist: !1,
|
|
55
|
-
duration: h,
|
|
56
|
-
delay: 0,
|
|
57
|
-
loopDelay: 0,
|
|
58
|
-
ease: "out(2)",
|
|
59
|
-
composition: s.replace,
|
|
60
|
-
modifier: x,
|
|
61
|
-
onBegin: b,
|
|
62
|
-
onBeforeUpdate: b,
|
|
63
|
-
onUpdate: b,
|
|
64
|
-
onLoop: b,
|
|
65
|
-
onPause: b,
|
|
66
|
-
onComplete: b,
|
|
67
|
-
onRender: b
|
|
68
|
-
}, j = {
|
|
69
|
-
current: null,
|
|
70
|
-
root: r
|
|
71
|
-
}, M = {
|
|
72
|
-
defaults: ne,
|
|
73
|
-
precision: 4,
|
|
74
|
-
timeScale: 1,
|
|
75
|
-
tickThreshold: 200,
|
|
76
|
-
editor: null
|
|
77
|
-
}, N = {
|
|
78
|
-
version: "4.5.0",
|
|
79
|
-
engine: null
|
|
80
|
-
};
|
|
81
|
-
t && (n.AnimeJS ||= [], n.AnimeJS.push(N));
|
|
82
|
-
//#endregion
|
|
83
|
-
//#region node_modules/.pnpm/animejs@4.5.0/node_modules/animejs/dist/modules/core/helpers.js
|
|
84
|
-
var P = (e) => e.replace(ee, "$1-$2").toLowerCase(), F = (e, t) => e.indexOf(t) === 0, I = Date.now, L = Array.isArray, re = (e) => e && e.constructor === Object, R = (e) => typeof e == "number" && !isNaN(e), z = (e) => typeof e == "string", B = (e) => typeof e == "function", V = (e) => e === void 0, ie = (e) => V(e) || e === null, ae = (e) => t && e instanceof SVGElement, oe = (e) => C.test(e), se = (e) => F(e, "rgb"), ce = (e) => F(e, "hsl"), le = (e) => oe(e) || (se(e) || ce(e)) && (e[e.length - 1] === ")" || !S.test(e)), ue = (e) => !M.defaults.hasOwnProperty(e), de = [
|
|
85
|
-
"opacity",
|
|
86
|
-
"rotate",
|
|
87
|
-
"overflow",
|
|
88
|
-
"color"
|
|
89
|
-
], fe = (e, t) => {
|
|
90
|
-
if (de.includes(t)) return !1;
|
|
91
|
-
if (e.getAttribute(t) || t in e) {
|
|
92
|
-
if (t === "scale") {
|
|
93
|
-
let t = e.parentNode;
|
|
94
|
-
return t && t.tagName === "filter";
|
|
95
|
-
}
|
|
96
|
-
return !0;
|
|
97
|
-
}
|
|
98
|
-
}, H = (e) => z(e) ? parseFloat(e) : e, pe = Math.pow, me = Math.sqrt, he = Math.sin, ge = Math.cos, _e = Math.abs, ve = Math.floor, U = Math.asin, ye = Math.PI, be = Math.round, W = (e, t, n) => e < t ? t : e > n ? n : e, G = (e, t) => {
|
|
99
|
-
if (t < 0) return e;
|
|
100
|
-
if (!t) return be(e);
|
|
101
|
-
let n = 10 ** t;
|
|
102
|
-
return be(e * n) / n;
|
|
103
|
-
}, xe = (e, t, n) => n === 1 ? t : n === 0 ? e : e + (t - e) * n, Se = (e) => e === Infinity ? m : e === -Infinity ? -m : e, Ce = (e) => e <= 1e-11 ? p : Se(G(e, 11)), K = (e) => L(e) ? [...e] : e, we = (e, t) => {
|
|
104
|
-
let n = { ...e };
|
|
105
|
-
for (let r in t) {
|
|
106
|
-
let i = e[r];
|
|
107
|
-
n[r] = V(i) ? t[r] : i;
|
|
108
|
-
}
|
|
109
|
-
return n;
|
|
110
|
-
}, q = (e, t, n, r = "_prev", i = "_next") => {
|
|
111
|
-
let a = e._head, o = i;
|
|
112
|
-
for (n && (a = e._tail, o = r); a;) {
|
|
113
|
-
let e = a[o];
|
|
114
|
-
t(a), a = e;
|
|
115
|
-
}
|
|
116
|
-
}, Te = (e, t, n = "_prev", r = "_next") => {
|
|
117
|
-
let i = t[n], a = t[r];
|
|
118
|
-
i ? i[r] = a : e._head = a, a ? a[n] = i : e._tail = i, t[n] = null, t[r] = null;
|
|
119
|
-
}, Ee = (e, t, n, r = "_prev", i = "_next") => {
|
|
120
|
-
let a = e._tail;
|
|
121
|
-
for (; a && n && n(a, t);) a = a[r];
|
|
122
|
-
let o = a ? a[i] : e._head;
|
|
123
|
-
a ? a[i] = t : e._head = t, o ? o[r] = t : e._tail = t, t[r] = a, t[i] = o;
|
|
124
|
-
}, De = (e, t, n) => {
|
|
125
|
-
let r = e.style.transform;
|
|
126
|
-
if (r) {
|
|
127
|
-
let i = e[d], a = 0, o = r.length, s;
|
|
128
|
-
for (; a < o;) {
|
|
129
|
-
for (; a < o && r.charCodeAt(a) === 32;) a++;
|
|
130
|
-
if (a >= o) break;
|
|
131
|
-
let e = a;
|
|
132
|
-
for (; a < o && r.charCodeAt(a) !== 40;) a++;
|
|
133
|
-
if (a >= o) break;
|
|
134
|
-
let t = r.substring(e, a), n = 1, c = a + 1, l = -1, u = -1;
|
|
135
|
-
for (a++; a < o && n > 0;) {
|
|
136
|
-
let e = r.charCodeAt(a);
|
|
137
|
-
e === 40 ? n++ : e === 41 ? n-- : e === 44 && n === 1 && (l === -1 ? l = a : u === -1 && (u = a)), a++;
|
|
138
|
-
}
|
|
139
|
-
let d = a - 1;
|
|
140
|
-
t === "translate" || t === "translate3d" ? (l === -1 ? i.translateX = r.substring(c, d).trim() : (i.translateX = r.substring(c, l).trim(), u === -1 ? i.translateY = r.substring(l + 1, d).trim() : (i.translateY = r.substring(l + 1, u).trim(), i.translateZ = r.substring(u + 1, d).trim())), s = r.substring(c, d)) : t === "scale" || t === "scale3d" ? l === -1 ? i.scale = r.substring(c, d).trim() : (i.scaleX = r.substring(c, l).trim(), u === -1 ? i.scaleY = r.substring(l + 1, d).trim() : (i.scaleY = r.substring(l + 1, u).trim(), i.scaleZ = r.substring(u + 1, d).trim())) : i[t] = r.substring(c, d);
|
|
141
|
-
}
|
|
142
|
-
if (t === "translate3d" && s) return n && (n[t] = s), s;
|
|
143
|
-
let c = i[t];
|
|
144
|
-
if (!V(c)) return n && (n[t] = c), c;
|
|
145
|
-
}
|
|
146
|
-
return t === "translate3d" ? "0px, 0px, 0px" : t === "rotate3d" ? "0, 0, 0, 0deg" : F(t, "scale") ? "1" : F(t, "rotate") || F(t, "skew") ? "0deg" : "0px";
|
|
147
|
-
}, Oe = (e) => {
|
|
148
|
-
let t = "";
|
|
149
|
-
for (let n = 0, r = v.length; n < r; n++) {
|
|
150
|
-
let r = v[n], i = e[r];
|
|
151
|
-
if (i !== void 0) {
|
|
152
|
-
if (r === "translateX") {
|
|
153
|
-
let r = e.translateY;
|
|
154
|
-
if (r !== void 0) {
|
|
155
|
-
let a = e.translateZ;
|
|
156
|
-
a === void 0 ? (t += `translate(${i},${r}) `, n += 1) : (t += `translate3d(${i},${r},${a}) `, n += 2);
|
|
157
|
-
continue;
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
if (r === "scaleX" && e.scale === void 0) {
|
|
161
|
-
let r = e.scaleY;
|
|
162
|
-
if (r !== void 0) {
|
|
163
|
-
let a = e.scaleZ;
|
|
164
|
-
a === void 0 ? (t += `scale(${i},${r}) `, n += 1) : (t += `scale3d(${i},${r},${a}) `, n += 2);
|
|
165
|
-
continue;
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
t += `${y[r]}${i}) `;
|
|
169
|
-
}
|
|
170
|
-
r === "rotateZ" && e.rotate3d !== void 0 && (t += `rotate3d(${e.rotate3d}) `);
|
|
171
|
-
}
|
|
172
|
-
return e.matrix !== void 0 && (t += `matrix(${e.matrix}) `), e.matrix3d !== void 0 && (t += `matrix3d(${e.matrix3d}) `), t;
|
|
173
|
-
}, ke = [];
|
|
174
|
-
function Ae(e, t) {
|
|
175
|
-
if (!e) return null;
|
|
176
|
-
let n = ke.length;
|
|
177
|
-
outer: for (let r = 0; r < n; r++) {
|
|
178
|
-
let n = ke[r];
|
|
179
|
-
if (n.detect && !n.detect(e)) continue;
|
|
180
|
-
let i = n.targetAdapters;
|
|
181
|
-
for (let n = 0, r = i.length; n < r; n++) {
|
|
182
|
-
let r = i[n];
|
|
183
|
-
if (r.detect(e)) {
|
|
184
|
-
let n = r.props[t];
|
|
185
|
-
if (n && (!n.gate || n.gate(e))) return n;
|
|
186
|
-
break outer;
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
for (let r = 0; r < n; r++) {
|
|
191
|
-
let n = ke[r];
|
|
192
|
-
if (n.detect && !n.detect(e)) continue;
|
|
193
|
-
let i = n.propertyResolvers;
|
|
194
|
-
for (let n = 0, r = i.length; n < r; n++) {
|
|
195
|
-
let r = i[n](e, t);
|
|
196
|
-
if (r) return r;
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
return null;
|
|
200
|
-
}
|
|
201
|
-
//#endregion
|
|
202
|
-
//#region node_modules/.pnpm/animejs@4.5.0/node_modules/animejs/dist/modules/core/colors.js
|
|
203
|
-
var je = (e) => {
|
|
204
|
-
let t = w.exec(e) || T.exec(e), n = V(t[4]) ? 1 : +t[4];
|
|
205
|
-
return [
|
|
206
|
-
+t[1],
|
|
207
|
-
+t[2],
|
|
208
|
-
+t[3],
|
|
209
|
-
n
|
|
210
|
-
];
|
|
211
|
-
}, Me = (e) => {
|
|
212
|
-
let t = e.length, n = t === 4 || t === 5;
|
|
213
|
-
return [
|
|
214
|
-
+("0x" + e[1] + e[n ? 1 : 2]),
|
|
215
|
-
+("0x" + e[n ? 2 : 3] + e[n ? 2 : 4]),
|
|
216
|
-
+("0x" + e[n ? 3 : 5] + e[n ? 3 : 6]),
|
|
217
|
-
t === 5 || t === 9 ? +(("0x" + e[n ? 4 : 7] + e[n ? 4 : 8]) / 255).toFixed(3) : 1
|
|
218
|
-
];
|
|
219
|
-
}, Ne = (e, t, n) => (n < 0 && (n += 1), n > 1 && --n, n < 1 / 6 ? e + (t - e) * 6 * n : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e), Pe = (e) => {
|
|
220
|
-
let t = E.exec(e) || D.exec(e), n = t[1] / 360, r = t[2] / 100, i = t[3] / 100, a = V(t[4]) ? 1 : +t[4], o, s, c;
|
|
221
|
-
if (r === 0) o = s = c = i;
|
|
222
|
-
else {
|
|
223
|
-
let e = i < .5 ? i * (1 + r) : i + r - i * r, t = 2 * i - e;
|
|
224
|
-
o = G(Ne(t, e, n + 1 / 3) * 255, 0), s = G(Ne(t, e, n) * 255, 0), c = G(Ne(t, e, n - 1 / 3) * 255, 0);
|
|
225
|
-
}
|
|
226
|
-
return [
|
|
227
|
-
o,
|
|
228
|
-
s,
|
|
229
|
-
c,
|
|
230
|
-
a
|
|
231
|
-
];
|
|
232
|
-
}, Fe = (e) => se(e) ? je(e) : oe(e) ? Me(e) : ce(e) ? Pe(e) : [
|
|
233
|
-
0,
|
|
234
|
-
0,
|
|
235
|
-
0,
|
|
236
|
-
1
|
|
237
|
-
], J = (e, t) => V(e) ? t : e, Ie = (e, t) => {
|
|
238
|
-
let n = e.match(te), r = t[l] ? t : document.documentElement, i = getComputedStyle(r)?.getPropertyValue(n[1]);
|
|
239
|
-
return (!i || i.trim() === "") && n[2] && (i = n[2].trim()), i || 0;
|
|
240
|
-
}, Le = (e, t, n, r, i, a) => {
|
|
241
|
-
if (B(e)) {
|
|
242
|
-
if (!i) {
|
|
243
|
-
let i = e(t, n, r, a);
|
|
244
|
-
return isNaN(+i) ? i || 0 : +i;
|
|
245
|
-
}
|
|
246
|
-
let o = () => {
|
|
247
|
-
let i = e(t, n, r, a);
|
|
248
|
-
return isNaN(+i) ? i || 0 : +i;
|
|
249
|
-
};
|
|
250
|
-
return i.func = o, o();
|
|
251
|
-
}
|
|
252
|
-
if (z(e) && F(e, "var(")) {
|
|
253
|
-
if (!i) return Ie(e, t);
|
|
254
|
-
let n = () => Ie(e, t);
|
|
255
|
-
return i.func = n, n();
|
|
256
|
-
}
|
|
257
|
-
return e;
|
|
258
|
-
}, Re = (e, t) => e[l] ? e[u] && fe(e, t) ? i.ATTRIBUTE : v.includes(t) || _.get(t) ? i.TRANSFORM : F(t, "--") ? i.CSS_VAR : t in e.style ? i.CSS : t in e ? i.OBJECT : i.ATTRIBUTE : i.OBJECT, ze = (e, t, n) => {
|
|
259
|
-
let r = e.style[t];
|
|
260
|
-
r && n && (n[t] = r);
|
|
261
|
-
let i = r || getComputedStyle(e[f] || e).getPropertyValue(t);
|
|
262
|
-
return i === "auto" ? "0" : i;
|
|
263
|
-
}, Be = (e, t, n, r) => {
|
|
264
|
-
let a = V(n) ? Re(e, t) : n, o = Ae(e, t);
|
|
265
|
-
if (o) {
|
|
266
|
-
let n = o.get(e);
|
|
267
|
-
return n && r && (r[t] = n), n ?? 0;
|
|
268
|
-
}
|
|
269
|
-
if (a === i.OBJECT) {
|
|
270
|
-
let n = e[t];
|
|
271
|
-
return n && r && (r[t] = n), n || 0;
|
|
272
|
-
}
|
|
273
|
-
if (a === i.ATTRIBUTE) {
|
|
274
|
-
let n = e.getAttribute(t);
|
|
275
|
-
return n && r && (r[t] = n), n;
|
|
276
|
-
}
|
|
277
|
-
return a === i.TRANSFORM ? De(e, t, r) : a === i.CSS_VAR ? ze(e, t, r).trimStart() : ze(e, t, r);
|
|
278
|
-
}, Ve = (e, t, n) => n === "-" ? e - t : n === "+" ? e + t : e * t, He = () => ({
|
|
279
|
-
t: a.NUMBER,
|
|
280
|
-
n: 0,
|
|
281
|
-
u: null,
|
|
282
|
-
o: null,
|
|
283
|
-
d: null,
|
|
284
|
-
s: null
|
|
285
|
-
}), Y = (e, t) => {
|
|
286
|
-
if (t.t = a.NUMBER, t.n = 0, t.u = null, t.o = null, t.d = null, t.s = null, !e) return t;
|
|
287
|
-
let n = +e;
|
|
288
|
-
if (!isNaN(n)) return t.n = n, t;
|
|
289
|
-
let r = e;
|
|
290
|
-
r[1] === "=" && (t.o = r[0], r = r.slice(2));
|
|
291
|
-
let i = !r.includes(" ") && k.exec(r);
|
|
292
|
-
if (i) return t.t = a.UNIT, t.n = +i[1], t.u = i[2], t;
|
|
293
|
-
if (t.o) return t.n = +r, t;
|
|
294
|
-
if (le(r)) return t.t = a.COLOR, t.d = Fe(r), t;
|
|
295
|
-
{
|
|
296
|
-
let e = r.match(O);
|
|
297
|
-
return t.t = a.COMPLEX, t.d = e ? e.map(Number) : [], t.s = r.split(O) || [], t;
|
|
298
|
-
}
|
|
299
|
-
}, Ue = (e, t) => (t.t = e._valueType, t.n = e._toNumber, t.u = e._unit, t.o = null, t.d = K(e._toNumbers), t.s = K(e._strings), t), X = He(), We = (e, t, n) => {
|
|
300
|
-
let r = e._modifier, i = e._fromNumbers, a = e._toNumbers, o = e._strings, s = o[0];
|
|
301
|
-
for (let c = 0, l = a.length; c < l; c++) {
|
|
302
|
-
let l = r(G(xe(i[c], a[c], t), n)), u = o[c + 1];
|
|
303
|
-
s += `${u ? l + u : l}`, e._numbers[c] = l;
|
|
304
|
-
}
|
|
305
|
-
return s;
|
|
306
|
-
}, Ge = (e, t, n, r, c) => {
|
|
307
|
-
let l = e.parent, u = e.duration, f = e.completed, m = e.iterationDuration, h = e.iterationCount, g = e._currentIteration, _ = e._loopDelay, v = e._reversed, y = e._alternate, b = e._hasChildren, x = e._delay, S = e._currentTime, C = x + m, w = t - x, T = W(S, -x, u), E = W(w, -x, u), D = w - S, O = E > 0, k = E >= u, ee = u <= p, A = c === o.FORCE, te = 0, ne = w, j = 0;
|
|
308
|
-
if (h > 1) {
|
|
309
|
-
let t = m + (k ? 0 : _), n = ~~(E / t);
|
|
310
|
-
e._currentIteration = W(n, 0, h), k && e._currentIteration--, te = e._currentIteration % 2, ne = E - n * t || 0;
|
|
311
|
-
}
|
|
312
|
-
let N = v ^ (y && te), P = e._ease, F = k ? N ? 0 : u : N ? m - ne : ne;
|
|
313
|
-
P && (F = m * P(F / m) || 0);
|
|
314
|
-
let I = (l ? l.backwards : w < S) ? !N : !!N;
|
|
315
|
-
if (e._currentTime = w, e._iterationTime = F, e.backwards = I, O && !e.began ? (e.began = !0, !n && (!l || !I && l.began) && e.onBegin(e)) : w <= 0 && (e.began = !1), !n && !b && O && e._currentIteration !== g && e.onLoop(e), A || c === o.AUTO && (t >= (l && x > 0 ? 0 : x) && t <= C || t <= x && T > x || t >= C && T !== u) || F >= C && T !== u || F <= x && T > 0 && !k || t <= T && T === u && f || k && !f && ee) {
|
|
316
|
-
if (O && (e.computeDeltaTime(T), n || e.onBeforeUpdate(e)), !b) {
|
|
317
|
-
let t = A || (I ? D * -1 : D) >= M.tickThreshold, o = G(e._offset + (l ? l._offset : 0) + x + F, 12), c = e._head, u, f, p, m, h = 0;
|
|
318
|
-
for (; c;) {
|
|
319
|
-
let e = c._composition, n = c._currentTime, l = c._changeDuration, g = c._absoluteStartTime + c._changeDuration, _ = c._nextRep, v = c._prevRep, y = e !== s.none, b = v ? v._absoluteStartTime + v._changeDuration : 0, x = v && v.parent !== c.parent, S = !_ || _._isOverridden ? g : _.parent === c.parent ? g + _._delay : _._absoluteStartTime < _._absoluteUpdateStartTime ? _._absoluteStartTime : _._absoluteUpdateStartTime;
|
|
320
|
-
if ((t || (n !== l || o <= S || v && !x && (!_ || _.parent !== c.parent)) && (n !== 0 || o >= c._absoluteStartTime || x && !c._hasFromValue && !v._isOverridden && o >= b || _ && !_._isOverridden && _.parent === c.parent && _._currentTime !== 0 && F < _._startTime)) && (!v || x || F >= c._startTime) && (!y || !c._isOverridden && (!c._isOverlapped || o <= g) && (!_ || _._isOverridden || o <= S) && (!v || v._isOverridden || (x ? o >= c._absoluteStartTime || !c._hasFromValue && o >= b : o >= b + c._delay)))) {
|
|
321
|
-
let t = c._currentTime = W(F - c._startTime, 0, l), n = c._ease(t / c._updateDuration), o = c._modifier, g = c._valueType, _ = c._tweenType, v = _ === i.OBJECT, b = g === a.NUMBER, x = b && v || n === 0 || n === 1 ? -1 : M.precision, S, C;
|
|
322
|
-
if (b) S = C = o(G(xe(c._fromNumber, c._toNumber, n), x));
|
|
323
|
-
else if (g === a.UNIT) C = o(G(xe(c._fromNumber, c._toNumber, n), x)), S = `${C}${c._unit}`;
|
|
324
|
-
else if (g === a.COLOR) {
|
|
325
|
-
let e = c._numbers, t = c._fromNumbers, i = c._toNumbers, a = 1 - n, s = t[0], l = t[1], u = t[2], d = i[0], f = i[1], p = i[2];
|
|
326
|
-
e[0] = o(Math.sqrt(s * s * a + d * d * n)), e[1] = o(Math.sqrt(l * l * a + f * f * n)), e[2] = o(Math.sqrt(u * u * a + p * p * n)), e[3] = o(xe(t[3], i[3], n)), (!c._setter || r) && (S = `rgba(${G(e[0], 0)},${G(e[1], 0)},${G(e[2], 0)},${e[3]})`);
|
|
327
|
-
} else g === a.COMPLEX && (S = We(c, n, x));
|
|
328
|
-
if (y && (c._number = C), !r && e !== s.blend) {
|
|
329
|
-
let e = c.property;
|
|
330
|
-
u = c.target, c._setter ? c._setter(u, C, c) : v ? u[e] = S : _ === i.ATTRIBUTE ? u.setAttribute(e, S) : (f = u.style, _ === i.TRANSFORM ? (u !== p && (p = u, m = u[d]), m[e] = S, h = 1) : _ === i.CSS ? f[e] = S : _ === i.CSS_VAR && f.setProperty(e, S)), O && (j = 1);
|
|
331
|
-
} else c._value = S;
|
|
332
|
-
} else n && v && !x && F < c._startTime && (c._currentTime = 0);
|
|
333
|
-
h && c._renderTransforms && (f.transform = Oe(m), h = 0), c = c._next;
|
|
334
|
-
}
|
|
335
|
-
!n && j && e.onRender(e);
|
|
336
|
-
}
|
|
337
|
-
!n && O && e.onUpdate(e);
|
|
338
|
-
}
|
|
339
|
-
return l && ee ? !n && (l.began && !I && w > 0 && !f || I && w <= 1e-11 && f) && (e.onComplete(e), e.completed = !I) : O && k ? h === Infinity ? e._startTime += e.duration : e._currentIteration >= h - 1 && (e.paused = !0, !f && !b && (e.completed = !0, !n && (!l || !I && l.began) && (e.onComplete(e), e._resolve(e)))) : e.completed = !1, j;
|
|
340
|
-
}, Ke = (e, t, n, r, i) => {
|
|
341
|
-
let a = e._currentIteration;
|
|
342
|
-
if (Ge(e, t, n, r, i), e._hasChildren) {
|
|
343
|
-
let s = e, c = s.backwards, l = r ? t : s._iterationTime, u = I(), d = 0, f = !0;
|
|
344
|
-
if (!r && s._currentIteration !== a) {
|
|
345
|
-
let e = s.iterationDuration;
|
|
346
|
-
q(s, (t) => {
|
|
347
|
-
if (!c) !t.completed && !t.backwards && t._currentTime < t.iterationDuration && Ge(t, e, n, 1, o.FORCE), t.began = !1, t.completed = !1;
|
|
348
|
-
else {
|
|
349
|
-
let r = t.duration, i = t._offset + t._delay, a = i + r;
|
|
350
|
-
!n && r <= 1e-11 && (!i || a === e) && t.onComplete(t);
|
|
351
|
-
}
|
|
352
|
-
}), n || s.onLoop(s);
|
|
353
|
-
}
|
|
354
|
-
q(s, (e) => {
|
|
355
|
-
let t = G((l - e._offset) * e._speed, 12);
|
|
356
|
-
if (c && t > e._delay + e.duration) return;
|
|
357
|
-
let a = e._fps < s._fps ? e.requestTick(u) : i;
|
|
358
|
-
d += Ge(e, t, n, r, a), !e.completed && f && (f = !1);
|
|
359
|
-
}, c), !n && d && s.onRender(s), (f || c) && s._currentTime >= s.duration && (s.paused = !0, s.completed || (s.completed = !0, n || (s.onComplete(s), s._resolve(s))));
|
|
360
|
-
}
|
|
361
|
-
}, qe = {}, Je = (e, t, n) => {
|
|
362
|
-
if (n === i.TRANSFORM) return _.get(e) || e;
|
|
363
|
-
if (n === i.CSS || n === i.ATTRIBUTE && ae(t) && e in t.style) {
|
|
364
|
-
let t = qe[e];
|
|
365
|
-
if (t) return t;
|
|
366
|
-
{
|
|
367
|
-
let t = e && P(e);
|
|
368
|
-
return qe[e] = t, t;
|
|
369
|
-
}
|
|
370
|
-
}
|
|
371
|
-
return e;
|
|
372
|
-
}, Ye = (e, t = !1) => {
|
|
373
|
-
if (e._hasChildren) q(e, (e) => Ye(e, t), !0);
|
|
374
|
-
else {
|
|
375
|
-
let n = e;
|
|
376
|
-
n.pause(), q(n, (e) => {
|
|
377
|
-
let r = e.property, a = e.target, o = e._tweenType, s = e._inlineValue, c = ie(s) || s === "";
|
|
378
|
-
if (e._setter) {
|
|
379
|
-
if (!t && !c) {
|
|
380
|
-
if (Y(s, X), X.d) {
|
|
381
|
-
let t = X.d, n = e._numbers;
|
|
382
|
-
for (let e = 0, r = t.length; e < r; e++) n[e] = t[e];
|
|
383
|
-
} else e._number = X.n;
|
|
384
|
-
e._setter(e.target, e._number, e);
|
|
385
|
-
}
|
|
386
|
-
} else if (o === i.OBJECT) !t && !c && (a[r] = s);
|
|
387
|
-
else if (a[l]) {
|
|
388
|
-
if (o === i.ATTRIBUTE) t || (c ? a.removeAttribute(r) : a.setAttribute(r, s));
|
|
389
|
-
else {
|
|
390
|
-
let t = a.style;
|
|
391
|
-
if (o === i.TRANSFORM) {
|
|
392
|
-
let n = a[d];
|
|
393
|
-
c ? delete n[r] : n[r] = s, e._renderTransforms && (Object.keys(n).length ? t.transform = Oe(n) : t.removeProperty("transform"));
|
|
394
|
-
} else c ? t.removeProperty(P(r)) : t[r] = s;
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
|
-
a[l] && n._tail === e && n.targets.forEach((e) => {
|
|
398
|
-
e.getAttribute && e.getAttribute("style") === "" && e.removeAttribute("style");
|
|
399
|
-
});
|
|
400
|
-
});
|
|
401
|
-
}
|
|
402
|
-
return e;
|
|
403
|
-
}, Xe = class {
|
|
404
|
-
constructor(e = 0) {
|
|
405
|
-
this.deltaTime = 0, this._currentTime = e, this._lastTickTime = e, this._startTime = e, this._lastTime = e, this._frameDuration = h / 240, this._fps = 240, this._speed = 1, this._hasChildren = !1, this._head = null, this._tail = null;
|
|
406
|
-
}
|
|
407
|
-
get fps() {
|
|
408
|
-
return this._fps;
|
|
409
|
-
}
|
|
410
|
-
set fps(e) {
|
|
411
|
-
let t = +e, n = t < 1e-11 ? p : t, r = h / n;
|
|
412
|
-
n > ne.frameRate && (ne.frameRate = n), this._fps = n, this._frameDuration = r;
|
|
413
|
-
}
|
|
414
|
-
get speed() {
|
|
415
|
-
return this._speed;
|
|
416
|
-
}
|
|
417
|
-
set speed(e) {
|
|
418
|
-
let t = +e;
|
|
419
|
-
this._speed = t < 1e-11 ? p : t;
|
|
420
|
-
}
|
|
421
|
-
requestTick(e) {
|
|
422
|
-
let t = this._frameDuration, n = e - this._lastTickTime, r = t * .25;
|
|
423
|
-
return n + (r < 4 ? r : 4) < t ? o.NONE : (this._lastTickTime = n >= t ? e - n % t : e, o.AUTO);
|
|
424
|
-
}
|
|
425
|
-
computeDeltaTime(e) {
|
|
426
|
-
let t = e - this._lastTime;
|
|
427
|
-
return this.deltaTime = t, this._lastTime = e, t;
|
|
428
|
-
}
|
|
429
|
-
}, Ze = {
|
|
430
|
-
animation: null,
|
|
431
|
-
update: b
|
|
432
|
-
}, Qe = (e) => {
|
|
433
|
-
let t = Ze.animation;
|
|
434
|
-
return t || (t = {
|
|
435
|
-
duration: p,
|
|
436
|
-
computeDeltaTime: b,
|
|
437
|
-
_offset: 0,
|
|
438
|
-
_delay: 0,
|
|
439
|
-
_head: null,
|
|
440
|
-
_tail: null
|
|
441
|
-
}, Ze.animation = t, Ze.update = () => {
|
|
442
|
-
e.forEach((e) => {
|
|
443
|
-
for (let t in e) {
|
|
444
|
-
let n = e[t], r = n._head;
|
|
445
|
-
if (r) {
|
|
446
|
-
let e = r._valueType, t = e === a.COMPLEX || e === a.COLOR ? K(r._fromNumbers) : null, i = r._fromNumber, o = n._tail;
|
|
447
|
-
for (; o && o !== r;) {
|
|
448
|
-
if (t) for (let e = 0, n = o._numbers.length; e < n; e++) t[e] += o._numbers[e];
|
|
449
|
-
else i += o._number;
|
|
450
|
-
o = o._prevAdd;
|
|
451
|
-
}
|
|
452
|
-
r._toNumber = i, r._toNumbers = t;
|
|
453
|
-
}
|
|
454
|
-
}
|
|
455
|
-
}), Ge(t, 1, 1, 0, o.FORCE);
|
|
456
|
-
}), t;
|
|
457
|
-
}, $e = t ? requestAnimationFrame : setImmediate, et = t ? cancelAnimationFrame : clearImmediate, tt = class extends Xe {
|
|
458
|
-
constructor(e) {
|
|
459
|
-
super(e), this.useDefaultMainLoop = !0, this.pauseOnDocumentHidden = !0, this.defaults = ne, this.paused = !0, this.reqId = 0;
|
|
460
|
-
}
|
|
461
|
-
update() {
|
|
462
|
-
let e = this._currentTime = I();
|
|
463
|
-
if (this.requestTick(e)) {
|
|
464
|
-
this.computeDeltaTime(e);
|
|
465
|
-
let t = this._speed, n = this._fps, r = this._head;
|
|
466
|
-
for (; r;) {
|
|
467
|
-
let i = r._next;
|
|
468
|
-
r.paused ? (Te(this, r), this._hasChildren = !!this._tail, r._running = !1, r.completed && !r._cancelled && r.cancel()) : Ke(r, (e - r._startTime) * r._speed * t, 0, 0, r._fps < n ? r.requestTick(e) : o.AUTO), r = i;
|
|
469
|
-
}
|
|
470
|
-
Ze.update();
|
|
471
|
-
}
|
|
472
|
-
}
|
|
473
|
-
wake() {
|
|
474
|
-
return this.useDefaultMainLoop && !this.reqId && (this.requestTick(I()), this.reqId = $e(nt)), this;
|
|
475
|
-
}
|
|
476
|
-
pause() {
|
|
477
|
-
if (this.reqId) return this.paused = !0, rt();
|
|
478
|
-
}
|
|
479
|
-
resume() {
|
|
480
|
-
if (this.paused) return this.paused = !1, q(this, (e) => e.resetTime()), this.wake();
|
|
481
|
-
}
|
|
482
|
-
get speed() {
|
|
483
|
-
return this._speed * (M.timeScale === 1 ? 1 : h);
|
|
484
|
-
}
|
|
485
|
-
set speed(e) {
|
|
486
|
-
let t = e * M.timeScale;
|
|
487
|
-
this._speed !== t && (this._speed = t, q(this, (e) => e.speed = e._speed));
|
|
488
|
-
}
|
|
489
|
-
get timeUnit() {
|
|
490
|
-
return M.timeScale === 1 ? "ms" : "s";
|
|
491
|
-
}
|
|
492
|
-
set timeUnit(e) {
|
|
493
|
-
let t = .001, n = e === "s", r = n ? t : 1;
|
|
494
|
-
if (M.timeScale !== r) {
|
|
495
|
-
M.timeScale = r, M.tickThreshold = 200 * r;
|
|
496
|
-
let e = n ? t : h;
|
|
497
|
-
this.defaults.duration *= e, this._speed *= e;
|
|
498
|
-
}
|
|
499
|
-
}
|
|
500
|
-
get precision() {
|
|
501
|
-
return M.precision;
|
|
502
|
-
}
|
|
503
|
-
set precision(e) {
|
|
504
|
-
M.precision = e;
|
|
505
|
-
}
|
|
506
|
-
}, Z = /*#__PURE__*/ (() => {
|
|
507
|
-
let e = new tt(I());
|
|
508
|
-
return t && (N.engine = e, r.addEventListener("visibilitychange", () => {
|
|
509
|
-
e.pauseOnDocumentHidden && (r.hidden ? e.pause() : e.resume());
|
|
510
|
-
})), e;
|
|
511
|
-
})(), nt = () => {
|
|
512
|
-
Z._head ? (Z.reqId = $e(nt), Z.update()) : Z.reqId = 0;
|
|
513
|
-
}, rt = () => (et(Z.reqId), Z.reqId = 0, Z), it = {
|
|
514
|
-
_rep: /* @__PURE__ */ new WeakMap(),
|
|
515
|
-
_add: /* @__PURE__ */ new Map()
|
|
516
|
-
}, at = (e, t, n = "_rep") => {
|
|
517
|
-
let r = it[n], i = r.get(e);
|
|
518
|
-
return i || (i = {}, r.set(e, i)), i[t] ? i[t] : i[t] = {
|
|
519
|
-
_head: null,
|
|
520
|
-
_tail: null
|
|
521
|
-
};
|
|
522
|
-
}, ot = (e, t) => e._isOverridden || e._absoluteStartTime > t._absoluteStartTime, st = (e) => {
|
|
523
|
-
e._isOverlapped = 1, e._isOverridden = 1, e._changeDuration = p, e._currentTime = p;
|
|
524
|
-
}, ct = (e, t) => {
|
|
525
|
-
let n = e._composition;
|
|
526
|
-
if (n === s.replace) {
|
|
527
|
-
let n = e._absoluteStartTime;
|
|
528
|
-
Ee(t, e, ot, "_prevRep", "_nextRep");
|
|
529
|
-
let r = e._prevRep;
|
|
530
|
-
if (r) {
|
|
531
|
-
let t = r.parent, i = r._absoluteEndTime;
|
|
532
|
-
if (e.parent.id !== t.id && t.iterationCount > 1 && i + (t.duration - t.iterationDuration) > n) {
|
|
533
|
-
st(r);
|
|
534
|
-
let e = r._prevRep;
|
|
535
|
-
for (; e && e.parent.id === t.id;) st(e), e = e._prevRep;
|
|
536
|
-
}
|
|
537
|
-
let a = e._absoluteUpdateStartTime;
|
|
538
|
-
if (i > a) {
|
|
539
|
-
let e = r._startTime, t = G(a - (i - (e + r._updateDuration)) - e, 12);
|
|
540
|
-
r._changeDuration = t, r._currentTime = t, r._isOverlapped = 1, t < 1e-11 && st(r);
|
|
541
|
-
}
|
|
542
|
-
let o = e.parent.parent;
|
|
543
|
-
if (!o || o !== t.parent) {
|
|
544
|
-
let e = !0;
|
|
545
|
-
if (q(t, (t) => {
|
|
546
|
-
t._isOverlapped || (e = !1);
|
|
547
|
-
}), e) {
|
|
548
|
-
let e = t.parent;
|
|
549
|
-
if (e) {
|
|
550
|
-
let n = !0;
|
|
551
|
-
q(e, (e) => {
|
|
552
|
-
e !== t && q(e, (e) => {
|
|
553
|
-
e._isOverlapped || (n = !1);
|
|
554
|
-
});
|
|
555
|
-
}), n && e.cancel();
|
|
556
|
-
} else t.cancel();
|
|
557
|
-
}
|
|
558
|
-
}
|
|
559
|
-
}
|
|
560
|
-
} else if (n === s.blend) {
|
|
561
|
-
let t = at(e.target, e.property, "_add"), n = Qe(it._add), r = t._head;
|
|
562
|
-
r || (r = { ...e }, r._composition = s.replace, r._updateDuration = p, r._startTime = 0, r._numbers = K(e._fromNumbers), r._number = 0, r._next = null, r._prev = null, Ee(t, r), Ee(n, r));
|
|
563
|
-
let i = e._toNumber;
|
|
564
|
-
if (e._fromNumber = r._fromNumber - i, e._toNumber = 0, e._numbers = K(e._fromNumbers), e._number = 0, r._fromNumber = i, e._toNumbers.length) {
|
|
565
|
-
let t = K(e._toNumbers);
|
|
566
|
-
t.forEach((t, n) => {
|
|
567
|
-
e._fromNumbers[n] = r._fromNumbers[n] - t, e._toNumbers[n] = 0;
|
|
568
|
-
}), r._fromNumbers = t;
|
|
569
|
-
}
|
|
570
|
-
Ee(t, e, null, "_prevAdd", "_nextAdd");
|
|
571
|
-
}
|
|
572
|
-
return e;
|
|
573
|
-
}, lt = (e) => {
|
|
574
|
-
let t = e._composition;
|
|
575
|
-
if (t !== s.none) {
|
|
576
|
-
let n = e.target, r = e.property, i = it._rep.get(n)[r];
|
|
577
|
-
if (Te(i, e, "_prevRep", "_nextRep"), t === s.blend) {
|
|
578
|
-
let t = it._add, i = t.get(n);
|
|
579
|
-
if (!i) return;
|
|
580
|
-
let a = i[r], o = Ze.animation;
|
|
581
|
-
Te(a, e, "_prevAdd", "_nextAdd");
|
|
582
|
-
let s = a._head;
|
|
583
|
-
if (s && s === a._tail) {
|
|
584
|
-
Te(a, s, "_prevAdd", "_nextAdd"), Te(o, s);
|
|
585
|
-
let e = !0;
|
|
586
|
-
for (let t in i) if (i[t]._head) {
|
|
587
|
-
e = !1;
|
|
588
|
-
break;
|
|
589
|
-
}
|
|
590
|
-
e && t.delete(n);
|
|
591
|
-
}
|
|
592
|
-
}
|
|
593
|
-
}
|
|
594
|
-
return e;
|
|
595
|
-
}, ut = (e) => (e.paused = !0, e.began = !1, e.completed = !1, e), dt = (e) => e._cancelled ? (e._hasChildren ? q(e, dt) : q(e, (e) => {
|
|
596
|
-
e._composition !== s.none && ct(e, at(e.target, e.property));
|
|
597
|
-
}), e._cancelled = 0, e) : e, ft = 0, pt = (e, t) => e._priority > t._priority, mt = class extends Xe {
|
|
598
|
-
constructor(e = {}, t = null, n = 0) {
|
|
599
|
-
super(0), ++ft;
|
|
600
|
-
let { id: r, delay: i, duration: a, reversed: o, alternate: s, loop: c, loopDelay: l, autoplay: u, frameRate: d, playbackRate: f, priority: p, onComplete: m, onLoop: h, onPause: g, onBegin: _, onBeforeUpdate: v, onUpdate: y } = e;
|
|
601
|
-
j.current && j.current.register(this);
|
|
602
|
-
let x = t ? 0 : Z._lastTickTime, S = t ? t.defaults : M.defaults, C = B(i) || V(i) ? S.delay : +i, w = B(a) || V(a) ? Infinity : +a, T = J(c, S.loop), E = J(l, S.loopDelay), D = T === !0 || T === Infinity || T < 0 ? Infinity : T + 1, O = 0;
|
|
603
|
-
t ? O = n : (Z.reqId || Z.requestTick(I()), O = (Z._lastTickTime - Z._startTime) * M.timeScale), this.id = V(r) ? ft : r, this.parent = t, this.duration = Se((w + E) * D - E) || 1e-11, this.backwards = !1, this.paused = !0, this.began = !1, this.completed = !1, this.onBegin = _ || S.onBegin, this.onBeforeUpdate = v || S.onBeforeUpdate, this.onUpdate = y || S.onUpdate, this.onLoop = h || S.onLoop, this.onPause = g || S.onPause, this.onComplete = m || S.onComplete, this.iterationDuration = w, this.iterationCount = D, this._autoplay = !t && J(u, S.autoplay), this._offset = O, this._delay = C, this._loopDelay = E, this._iterationTime = 0, this._currentIteration = 0, this._resolve = b, this._running = !1, this._reversed = +J(o, S.reversed), this._reverse = this._reversed, this._cancelled = 0, this._alternate = J(s, S.alternate), this._prev = null, this._next = null, this._lastTickTime = x, this._startTime = x, this._lastTime = x, this._fps = J(d, S.frameRate), this._speed = J(f, S.playbackRate), this._priority = +J(p, 1);
|
|
604
|
-
}
|
|
605
|
-
get cancelled() {
|
|
606
|
-
return !!this._cancelled;
|
|
607
|
-
}
|
|
608
|
-
set cancelled(e) {
|
|
609
|
-
e ? this.cancel() : this.reset(!0).play();
|
|
610
|
-
}
|
|
611
|
-
get currentTime() {
|
|
612
|
-
return W(G(this._currentTime, M.precision), -this._delay, this.duration);
|
|
613
|
-
}
|
|
614
|
-
set currentTime(e) {
|
|
615
|
-
let t = this.paused;
|
|
616
|
-
this.pause().seek(+e), t || this.resume();
|
|
617
|
-
}
|
|
618
|
-
get iterationCurrentTime() {
|
|
619
|
-
return W(G(this._iterationTime, M.precision), 0, this.iterationDuration);
|
|
620
|
-
}
|
|
621
|
-
set iterationCurrentTime(e) {
|
|
622
|
-
this.currentTime = this.iterationDuration * this._currentIteration + e;
|
|
623
|
-
}
|
|
624
|
-
get progress() {
|
|
625
|
-
return W(G(this._currentTime / this.duration, 10), 0, 1);
|
|
626
|
-
}
|
|
627
|
-
set progress(e) {
|
|
628
|
-
this.currentTime = this.duration * e;
|
|
629
|
-
}
|
|
630
|
-
get iterationProgress() {
|
|
631
|
-
return W(G(this._iterationTime / this.iterationDuration, 10), 0, 1);
|
|
632
|
-
}
|
|
633
|
-
set iterationProgress(e) {
|
|
634
|
-
let t = this.iterationDuration;
|
|
635
|
-
this.currentTime = t * this._currentIteration + t * e;
|
|
636
|
-
}
|
|
637
|
-
get currentIteration() {
|
|
638
|
-
return this._currentIteration;
|
|
639
|
-
}
|
|
640
|
-
set currentIteration(e) {
|
|
641
|
-
this.currentTime = this.iterationDuration * W(+e, 0, this.iterationCount - 1);
|
|
642
|
-
}
|
|
643
|
-
get reversed() {
|
|
644
|
-
return !!this._reversed;
|
|
645
|
-
}
|
|
646
|
-
set reversed(e) {
|
|
647
|
-
e ? this.reverse() : this.play();
|
|
648
|
-
}
|
|
649
|
-
get speed() {
|
|
650
|
-
return super.speed;
|
|
651
|
-
}
|
|
652
|
-
set speed(e) {
|
|
653
|
-
super.speed = e, this.resetTime();
|
|
654
|
-
}
|
|
655
|
-
reset(e = !1) {
|
|
656
|
-
return dt(this), this._reversed && !this._reverse && (this.reversed = !1), this._iterationTime = this.iterationDuration, Ke(this, 0, 1, ~~e, o.FORCE), ut(this), this._hasChildren && q(this, ut), this;
|
|
657
|
-
}
|
|
658
|
-
init(e = !1) {
|
|
659
|
-
this.fps = this._fps, this.speed = this._speed, !e && this._hasChildren && Ke(this, this.duration, 1, ~~e, o.FORCE), this.reset(e);
|
|
660
|
-
let t = this._autoplay;
|
|
661
|
-
return t === !0 ? this.resume() : t && !V(t.linked) && t.link(this), this;
|
|
662
|
-
}
|
|
663
|
-
resetTime() {
|
|
664
|
-
let e = 1 / (this._speed * Z._speed);
|
|
665
|
-
return this._startTime = I() - (this._currentTime + this._delay) * e, this;
|
|
666
|
-
}
|
|
667
|
-
pause() {
|
|
668
|
-
return this.paused ? this : (this.paused = !0, this.onPause(this), this);
|
|
669
|
-
}
|
|
670
|
-
resume() {
|
|
671
|
-
return this.paused ? (this.paused = !1, this.duration <= 1e-11 && !this._hasChildren ? Ke(this, p, 0, 0, o.FORCE) : (this._running ||= (Ee(Z, this, pt), Z._hasChildren = !0, !0), this.resetTime(), this._startTime -= 12, Z.wake()), this) : this;
|
|
672
|
-
}
|
|
673
|
-
restart() {
|
|
674
|
-
return this.reset().resume();
|
|
675
|
-
}
|
|
676
|
-
seek(e, t = 0, n = 0) {
|
|
677
|
-
dt(this), this.completed = !1;
|
|
678
|
-
let r = this.paused;
|
|
679
|
-
return this.paused = !0, Ke(this, e + this._delay, ~~t, ~~n, o.AUTO), r ? this : this.resume();
|
|
680
|
-
}
|
|
681
|
-
alternate() {
|
|
682
|
-
let e = this._reversed, t = this.iterationCount, n = this.iterationDuration, r = t === Infinity ? ve(m / n) : t;
|
|
683
|
-
return this._reversed = +(this._alternate && !(r % 2) ? e : !e), t === Infinity ? this.iterationProgress = this._reversed ? 1 - this.iterationProgress : this.iterationProgress : this.seek(n * r - this._currentTime), this.resetTime(), this;
|
|
684
|
-
}
|
|
685
|
-
play() {
|
|
686
|
-
return this._reversed && this.alternate(), this.resume();
|
|
687
|
-
}
|
|
688
|
-
reverse() {
|
|
689
|
-
return this._reversed || this.alternate(), this.resume();
|
|
690
|
-
}
|
|
691
|
-
cancel() {
|
|
692
|
-
return this._hasChildren ? q(this, (e) => e.cancel(), !0) : q(this, lt), this._cancelled = 1, this.pause();
|
|
693
|
-
}
|
|
694
|
-
stretch(e) {
|
|
695
|
-
let t = this.duration, n = Ce(e);
|
|
696
|
-
if (t === n) return this;
|
|
697
|
-
let r = e / t, i = e <= p;
|
|
698
|
-
return this.duration = i ? p : n, this.iterationDuration = i ? p : Ce(this.iterationDuration * r), this._offset *= r, this._delay *= r, this._loopDelay *= r, this;
|
|
699
|
-
}
|
|
700
|
-
revert() {
|
|
701
|
-
Ke(this, 0, 1, 0, o.AUTO);
|
|
702
|
-
let e = this._autoplay;
|
|
703
|
-
return e && e.linked && e.linked === this && e.revert(), this.cancel();
|
|
704
|
-
}
|
|
705
|
-
complete(e = 0) {
|
|
706
|
-
return this.seek(this.duration, e).cancel();
|
|
707
|
-
}
|
|
708
|
-
then(e = b) {
|
|
709
|
-
let t = this.then, n = () => {
|
|
710
|
-
this.then = null, e(this), this.then = t, this._resolve = b;
|
|
711
|
-
};
|
|
712
|
-
return new Promise((e) => (this._resolve = () => e(n()), this.completed && this._resolve(), this));
|
|
713
|
-
}
|
|
714
|
-
};
|
|
715
|
-
//#endregion
|
|
716
|
-
//#region node_modules/.pnpm/animejs@4.5.0/node_modules/animejs/dist/modules/core/targets.js
|
|
717
|
-
function ht(e) {
|
|
718
|
-
let t = z(e) ? j.root.querySelectorAll(e) : e;
|
|
719
|
-
if (t instanceof NodeList || t instanceof HTMLCollection) return t;
|
|
720
|
-
}
|
|
721
|
-
function gt(e) {
|
|
722
|
-
if (ie(e)) return [];
|
|
723
|
-
if (!t) return L(e) && e.flat(Infinity) || [e];
|
|
724
|
-
if (L(e)) {
|
|
725
|
-
let t = e.flat(Infinity), n = [];
|
|
726
|
-
for (let e = 0, r = t.length; e < r; e++) {
|
|
727
|
-
let r = t[e];
|
|
728
|
-
if (!ie(r)) {
|
|
729
|
-
let e = ht(r);
|
|
730
|
-
if (e) for (let t = 0, r = e.length; t < r; t++) {
|
|
731
|
-
let r = e[t];
|
|
732
|
-
if (!ie(r)) {
|
|
733
|
-
let e = !1;
|
|
734
|
-
for (let t = 0, i = n.length; t < i; t++) if (n[t] === r) {
|
|
735
|
-
e = !0;
|
|
736
|
-
break;
|
|
737
|
-
}
|
|
738
|
-
e || n.push(r);
|
|
739
|
-
}
|
|
740
|
-
}
|
|
741
|
-
else {
|
|
742
|
-
let e = !1;
|
|
743
|
-
for (let t = 0, i = n.length; t < i; t++) if (n[t] === r) {
|
|
744
|
-
e = !0;
|
|
745
|
-
break;
|
|
746
|
-
}
|
|
747
|
-
e || n.push(r);
|
|
748
|
-
}
|
|
749
|
-
}
|
|
750
|
-
}
|
|
751
|
-
return n;
|
|
752
|
-
}
|
|
753
|
-
let n = ht(e);
|
|
754
|
-
return n ? Array.from(n) : [e];
|
|
755
|
-
}
|
|
756
|
-
function _t(e) {
|
|
757
|
-
let t = gt(e), n = t.length;
|
|
758
|
-
for (let e = 0; e < n; e++) {
|
|
759
|
-
let n = t[e];
|
|
760
|
-
if (!n[c]) {
|
|
761
|
-
n[c] = !0;
|
|
762
|
-
let e = ae(n);
|
|
763
|
-
(n.nodeType || e) && (n[l] = !0, n[u] = e, n[d] = {});
|
|
764
|
-
}
|
|
765
|
-
}
|
|
766
|
-
return t;
|
|
767
|
-
}
|
|
768
|
-
//#endregion
|
|
769
|
-
//#region node_modules/.pnpm/animejs@4.5.0/node_modules/animejs/dist/modules/core/units.js
|
|
770
|
-
var vt = {
|
|
771
|
-
deg: 1,
|
|
772
|
-
rad: 180 / ye,
|
|
773
|
-
turn: 360
|
|
774
|
-
}, yt = {}, bt = (e, t, n, i = !1) => {
|
|
775
|
-
let o = t.u, s = t.n;
|
|
776
|
-
if (t.t === a.UNIT && o === n) return t;
|
|
777
|
-
let c = s + o + n, l = yt[c];
|
|
778
|
-
if (!V(l) && !i) t.n = l;
|
|
779
|
-
else {
|
|
780
|
-
let i;
|
|
781
|
-
if (o in vt) i = s * vt[o] / vt[n];
|
|
782
|
-
else {
|
|
783
|
-
let t = e.cloneNode(), a = e.parentNode, c = a && a !== r ? a : r.body;
|
|
784
|
-
c.appendChild(t);
|
|
785
|
-
let l = t.style;
|
|
786
|
-
l.width = 100 + o;
|
|
787
|
-
let u = t.offsetWidth || 100;
|
|
788
|
-
l.width = 100 + n;
|
|
789
|
-
let d = u / (t.offsetWidth || 100);
|
|
790
|
-
c.removeChild(t), i = d * s;
|
|
791
|
-
}
|
|
792
|
-
t.n = i, yt[c] = i;
|
|
793
|
-
}
|
|
794
|
-
return t.t, a.UNIT, t.u = n, t;
|
|
795
|
-
}, xt = (e) => e, St = (e = 1.68) => (t) => pe(t, +e), Ct = {
|
|
796
|
-
in: (e) => (t) => e(t),
|
|
797
|
-
out: (e) => (t) => 1 - e(1 - t),
|
|
798
|
-
inOut: (e) => (t) => t < .5 ? e(t * 2) / 2 : 1 - e(t * -2 + 2) / 2,
|
|
799
|
-
outIn: (e) => (t) => t < .5 ? (1 - e(1 - t * 2)) / 2 : (e(t * 2 - 1) + 1) / 2
|
|
800
|
-
}, wt = ye / 2, Tt = ye * 2, Et = {
|
|
801
|
-
"": St,
|
|
802
|
-
Quad: St(2),
|
|
803
|
-
Cubic: St(3),
|
|
804
|
-
Quart: St(4),
|
|
805
|
-
Quint: St(5),
|
|
806
|
-
Sine: (e) => 1 - ge(e * wt),
|
|
807
|
-
Circ: (e) => 1 - me(1 - e * e),
|
|
808
|
-
Expo: (e) => e ? pe(2, 10 * e - 10) : 0,
|
|
809
|
-
Bounce: (e) => {
|
|
810
|
-
let t, n = 4;
|
|
811
|
-
for (; e < ((t = pe(2, --n)) - 1) / 11;);
|
|
812
|
-
return 1 / pe(4, 3 - n) - 7.5625 * pe((t * 3 - 2) / 22 - e, 2);
|
|
813
|
-
},
|
|
814
|
-
Back: (e = 1.7) => (t) => (+e + 1) * t * t * t - +e * t * t,
|
|
815
|
-
Elastic: (e = 1, t = .3) => {
|
|
816
|
-
let n = W(+e, 1, 10), r = W(+t, p, 2), i = r / Tt * U(1 / n), a = Tt / r;
|
|
817
|
-
return (e) => e === 0 || e === 1 ? e : -n * pe(2, -10 * (1 - e)) * he((1 - e - i) * a);
|
|
818
|
-
}
|
|
819
|
-
}, Dt = /*#__PURE__ */ (() => {
|
|
820
|
-
let e = {
|
|
821
|
-
linear: xt,
|
|
822
|
-
none: xt
|
|
823
|
-
};
|
|
824
|
-
for (let t in Ct) for (let n in Et) {
|
|
825
|
-
let r = Et[n], i = Ct[t];
|
|
826
|
-
e[t + n] = n === "" || n === "Back" || n === "Elastic" ? (e, t) => i(r(e, t)) : i(r);
|
|
827
|
-
}
|
|
828
|
-
return e;
|
|
829
|
-
})(), Ot = {
|
|
830
|
-
linear: xt,
|
|
831
|
-
none: xt
|
|
832
|
-
}, kt = (e) => {
|
|
833
|
-
if (Ot[e]) return Ot[e];
|
|
834
|
-
if (e.indexOf("(") <= -1) {
|
|
835
|
-
let t = Ct[e] || e.includes("Back") || e.includes("Elastic") ? Dt[e]() : Dt[e];
|
|
836
|
-
return t ? Ot[e] = t : xt;
|
|
837
|
-
}
|
|
838
|
-
{
|
|
839
|
-
let t = e.slice(0, -1).split("("), n = Dt[t[0]];
|
|
840
|
-
return n ? Ot[e] = n(...t[1].split(",")) : xt;
|
|
841
|
-
}
|
|
842
|
-
}, At = [
|
|
843
|
-
"steps(",
|
|
844
|
-
"irregular(",
|
|
845
|
-
"linear(",
|
|
846
|
-
"cubicBezier("
|
|
847
|
-
], jt = (e) => {
|
|
848
|
-
if (z(e)) {
|
|
849
|
-
for (let t = 0, n = At.length; t < n; t++) if (F(e, At[t])) return console.warn(`String syntax for \`ease: "${e}"\` has been removed from the core and replaced by importing and passing the easing function directly: \`ease: ${e}\``), xt;
|
|
850
|
-
}
|
|
851
|
-
return B(e) ? e : z(e) ? kt(e) : xt;
|
|
852
|
-
}, Q = He(), $ = He(), Mt = {}, Nt = { func: null }, Pt = { func: null }, Ft = [null], It = [null, null], Lt = { to: null }, Rt = 0, zt = 0, Bt, Vt, Ht = (e, t) => {
|
|
853
|
-
let n = {};
|
|
854
|
-
if (L(e)) {
|
|
855
|
-
let t = [].concat(...e.map((e) => Object.keys(e))).filter(ue);
|
|
856
|
-
for (let r = 0, i = t.length; r < i; r++) {
|
|
857
|
-
let i = t[r];
|
|
858
|
-
n[i] = e.map((e) => {
|
|
859
|
-
let t = {};
|
|
860
|
-
for (let n in e) {
|
|
861
|
-
let r = e[n];
|
|
862
|
-
ue(n) ? n === i && (t.to = r) : t[n] = r;
|
|
863
|
-
}
|
|
864
|
-
return t;
|
|
865
|
-
});
|
|
866
|
-
}
|
|
867
|
-
} else {
|
|
868
|
-
let r = J(t.duration, M.defaults.duration);
|
|
869
|
-
Object.keys(e).map((t) => ({
|
|
870
|
-
o: parseFloat(t) / 100,
|
|
871
|
-
p: e[t]
|
|
872
|
-
})).sort((e, t) => e.o - t.o).forEach((e) => {
|
|
873
|
-
let t = e.o, i = e.p;
|
|
874
|
-
for (let e in i) if (ue(e)) {
|
|
875
|
-
let a = n[e];
|
|
876
|
-
a ||= n[e] = [];
|
|
877
|
-
let o = t * r, s = a.length, c = a[s - 1], l = { to: i[e] }, u = 0;
|
|
878
|
-
for (let e = 0; e < s; e++) u += a[e].duration;
|
|
879
|
-
s === 1 && (l.from = c.to), i.ease && (l.ease = i.ease), l.duration = o - (s ? u : 0), a.push(l);
|
|
880
|
-
}
|
|
881
|
-
return e;
|
|
882
|
-
});
|
|
883
|
-
for (let e in n) {
|
|
884
|
-
let t = n[e], r;
|
|
885
|
-
for (let e = 0, n = t.length; e < n; e++) {
|
|
886
|
-
let n = t[e], i = n.ease;
|
|
887
|
-
n.ease = r || void 0, r = i;
|
|
888
|
-
}
|
|
889
|
-
t[0].duration || t.shift();
|
|
890
|
-
}
|
|
891
|
-
}
|
|
892
|
-
return n;
|
|
893
|
-
}, Ut = class extends mt {
|
|
894
|
-
constructor(e, t, n, r, o = !1, c = 0, l) {
|
|
895
|
-
super(t, n, r), this._head, this._tail, ++zt;
|
|
896
|
-
let u = _t(e), d = u.length, f = t.keyframes, m = f ? we(Ht(f, t), t) : t, { id: h, delay: _, duration: v, ease: y, playbackEase: b, modifier: x, composition: S, onRender: C } = m, w = n ? n.defaults : M.defaults, T = J(y, w.ease), E = J(b, w.playbackEase), D = E ? jt(E) : null, O = !V(T.ease), k = O ? T.ease : J(y, D ? "linear" : w.ease), ee = O ? T.settlingDuration : J(v, w.duration), A = J(_, w.delay), te = x || w.modifier, ne = V(S) && d >= 1e3 ? s.none : V(S) ? w.composition : S, j = this._offset + (n ? n._offset : 0);
|
|
897
|
-
O && (T.parent = this);
|
|
898
|
-
let N = NaN, P = NaN, F = 0, I = 0;
|
|
899
|
-
for (let e = 0; e < d; e++) {
|
|
900
|
-
let t = u[e], r = c || e, d = l || u, f = NaN, p = NaN;
|
|
901
|
-
for (let e in m) if (ue(e)) {
|
|
902
|
-
let c = Re(t, e), l = Ae(t, e), u = Je(e, t, c), h = m[e], _ = L(h);
|
|
903
|
-
if (o && !_ && (It[0] = h, It[1] = h, h = It), _) {
|
|
904
|
-
let e = h.length, t = !re(h[0]);
|
|
905
|
-
e === 2 && t ? (Lt.to = h, Ft[0] = Lt, Bt = Ft) : e > 2 && t ? (Bt = [], h.forEach((e, t) => {
|
|
906
|
-
t ? t === 1 ? (It[1] = e, Bt.push(It)) : Bt.push(e) : It[0] = e;
|
|
907
|
-
})) : Bt = h;
|
|
908
|
-
} else Ft[0] = h, Bt = Ft;
|
|
909
|
-
let v = null, y = null, b = NaN, x = 0, S = 0;
|
|
910
|
-
for (let e = Bt.length; S < e; S++) {
|
|
911
|
-
let i = Bt[S];
|
|
912
|
-
re(i) ? Vt = i : (Lt.to = i, Vt = Lt), Nt.func = null, Pt.func = null;
|
|
913
|
-
let o = Le(J(Vt.composition, ne), t, r, d, null, null), f = R(o) ? o : s[o];
|
|
914
|
-
!v && f !== s.none && (v = at(t, u));
|
|
915
|
-
let p = v ? v._tail : null, m = n && p && p.parent.parent === n ? p : y, h = Le(Vt.to, t, r, d, Nt, m), _;
|
|
916
|
-
re(h) && !V(h.to) ? (Vt = h, _ = h.to) : _ = h;
|
|
917
|
-
let C = Le(Vt.from, t, r, d, Pt, m), w = Vt.ease || k, T = Le(w, t, r, d, null, m), E = B(T) || z(T) ? T : w, D = !V(E) && !V(E.ease), O = D ? E.ease : E, M = D ? E.settlingDuration : Le(J(Vt.duration, e > 1 ? Le(ee, t, r, d, null, m) / e : ee), t, r, d, null, m), N = Le(J(Vt.delay, S ? 0 : A), t, r, d, null, m), P = Vt.modifier || te, ae = !V(C), oe = !V(_), se = L(_), ce = se || ae && oe, le = y ? x : 0, ue = y ? x + N : N, de = G(j + ue, 12), fe = G(j + le, 12);
|
|
918
|
-
!I && (ae || se) && (I = 1);
|
|
919
|
-
let H = y;
|
|
920
|
-
if (f !== s.none) {
|
|
921
|
-
let e = v._head;
|
|
922
|
-
for (; e && e._absoluteStartTime <= de;) if (e._isOverridden || (H = e), e = e._nextRep, e && e._absoluteStartTime >= de) for (; e;) st(e), e = e._nextRep;
|
|
923
|
-
}
|
|
924
|
-
if (ce) {
|
|
925
|
-
Y(se ? Le(_[0], t, r, d, Pt, m) : C, Q), Y(se ? Le(_[1], t, r, d, Nt, m) : _, $);
|
|
926
|
-
let e = Be(t, u, c, Mt);
|
|
927
|
-
Q.t === a.NUMBER && (H ? H._valueType === a.UNIT && (Q.t = a.UNIT, Q.u = H._unit) : (Y(e, X), X.t === a.UNIT && (Q.t = a.UNIT, Q.u = X.u)));
|
|
928
|
-
} else oe ? Y(_, $) : y ? Ue(y, $) : Y(n && H && H.parent.parent === n ? H._value : Be(t, u, c, Mt), $), ae ? Y(C, Q) : y ? Ue(y, Q) : Y(n && H && H.parent.parent === n ? H._value : Be(t, u, c, Mt), Q);
|
|
929
|
-
if (Q.o && (Q.n = Ve(H ? H._toNumber : Y(Be(t, u, c, Mt), X).n, Q.n, Q.o)), $.o && ($.n = Ve(Q.n, $.n, $.o)), Q.t !== $.t) {
|
|
930
|
-
if (Q.t === a.COMPLEX || $.t === a.COMPLEX) {
|
|
931
|
-
let e = Q.t === a.COMPLEX ? Q : $, t = Q.t === a.COMPLEX ? $ : Q;
|
|
932
|
-
t.t = a.COMPLEX, t.s = K(e.s), t.d = e.d.map(() => t.n);
|
|
933
|
-
} else if (Q.t === a.UNIT || $.t === a.UNIT) {
|
|
934
|
-
let e = Q.t === a.UNIT ? Q : $, t = Q.t === a.UNIT ? $ : Q;
|
|
935
|
-
t.t = a.UNIT, t.u = e.u;
|
|
936
|
-
} else if (Q.t === a.COLOR || $.t === a.COLOR) {
|
|
937
|
-
let e = Q.t === a.COLOR ? Q : $, t = Q.t === a.COLOR ? $ : Q;
|
|
938
|
-
t.t = a.COLOR, t.d = e.d.map(() => 0);
|
|
939
|
-
}
|
|
940
|
-
}
|
|
941
|
-
if (Q.u !== $.u) {
|
|
942
|
-
let e = $.u ? Q : $;
|
|
943
|
-
e = bt(t, e, $.u ? $.u : Q.u, !1);
|
|
944
|
-
}
|
|
945
|
-
if ($.d && Q.d && $.d.length !== Q.d.length) {
|
|
946
|
-
let e = Q.d.length > $.d.length ? Q : $, t = e === Q ? $ : Q;
|
|
947
|
-
t.d = e.d.map((e, n) => V(t.d[n]) ? 0 : t.d[n]), t.s = K(e.s);
|
|
948
|
-
}
|
|
949
|
-
let pe = G(+M || 1e-11, 12), me = Mt[u];
|
|
950
|
-
ie(me) || (Mt[u] = null);
|
|
951
|
-
let he = l ? l.set : null;
|
|
952
|
-
x = G(ue + pe, 12);
|
|
953
|
-
let ge = Q.d, _e = $.d, ve = $.s, U = {
|
|
954
|
-
parent: this,
|
|
955
|
-
id: Rt++,
|
|
956
|
-
property: u,
|
|
957
|
-
target: t,
|
|
958
|
-
_value: null,
|
|
959
|
-
_toFunc: Nt.func,
|
|
960
|
-
_fromFunc: Pt.func,
|
|
961
|
-
_ease: jt(O),
|
|
962
|
-
_fromNumbers: ge ? K(ge) : g,
|
|
963
|
-
_toNumbers: _e ? K(_e) : g,
|
|
964
|
-
_strings: ve ? K(ve) : g,
|
|
965
|
-
_fromNumber: Q.n,
|
|
966
|
-
_toNumber: $.n,
|
|
967
|
-
_numbers: ge ? K(ge) : g,
|
|
968
|
-
_number: Q.n,
|
|
969
|
-
_unit: $.u,
|
|
970
|
-
_modifier: P,
|
|
971
|
-
_currentTime: 0,
|
|
972
|
-
_startTime: ue,
|
|
973
|
-
_delay: +N,
|
|
974
|
-
_updateDuration: pe,
|
|
975
|
-
_changeDuration: pe,
|
|
976
|
-
_absoluteStartTime: de,
|
|
977
|
-
_absoluteUpdateStartTime: fe,
|
|
978
|
-
_absoluteEndTime: G(j + x, 12),
|
|
979
|
-
_hasFromValue: ae || se ? 1 : 0,
|
|
980
|
-
_tweenType: c,
|
|
981
|
-
_setter: he,
|
|
982
|
-
_valueType: $.t,
|
|
983
|
-
_composition: f,
|
|
984
|
-
_isOverlapped: 0,
|
|
985
|
-
_isOverridden: 0,
|
|
986
|
-
_renderTransforms: 0,
|
|
987
|
-
_inlineValue: me,
|
|
988
|
-
_prevRep: null,
|
|
989
|
-
_nextRep: null,
|
|
990
|
-
_prevAdd: null,
|
|
991
|
-
_nextAdd: null,
|
|
992
|
-
_prev: null,
|
|
993
|
-
_next: null
|
|
994
|
-
};
|
|
995
|
-
f !== s.none && ct(U, v);
|
|
996
|
-
let ye = U._valueType;
|
|
997
|
-
if (ye === a.COMPLEX) U._value = We(U, 1, -1);
|
|
998
|
-
else if (ye === a.UNIT) U._value = `${P(U._toNumber)}${U._unit}`;
|
|
999
|
-
else if (ye === a.COLOR) {
|
|
1000
|
-
let e = $.d;
|
|
1001
|
-
U._value = `rgba(${G(e[0], 0)},${G(e[1], 0)},${G(e[2], 0)},${e[3]})`;
|
|
1002
|
-
} else U._value = P(U._toNumber);
|
|
1003
|
-
isNaN(b) && (b = U._startTime), y = U, F++, Ee(this, U);
|
|
1004
|
-
}
|
|
1005
|
-
(isNaN(P) || b < P) && (P = b), (isNaN(N) || x > N) && (N = x), c === i.TRANSFORM && (f = F - S, p = F);
|
|
1006
|
-
}
|
|
1007
|
-
if (!isNaN(f)) {
|
|
1008
|
-
let e = 0;
|
|
1009
|
-
q(this, (t) => {
|
|
1010
|
-
e >= f && e < p && (t._renderTransforms = 1, t._composition === s.blend && q(Ze.animation, (e) => {
|
|
1011
|
-
e.id === t.id && (e._renderTransforms = 1);
|
|
1012
|
-
})), e++;
|
|
1013
|
-
});
|
|
1014
|
-
}
|
|
1015
|
-
}
|
|
1016
|
-
d || console.warn("No target found. Make sure the element you're trying to animate is accessible before creating your animation."), P ? (q(this, (e) => {
|
|
1017
|
-
e._startTime - e._delay || (e._delay -= P), e._startTime -= P;
|
|
1018
|
-
}), N -= P) : P = 0, N || (N = p, this.iterationCount = 0), this.targets = u, this.id = V(h) ? zt : h, this.duration = N === 1e-11 ? p : Se((N + this._loopDelay) * this.iterationCount - this._loopDelay) || 1e-11, this.onRender = C || w.onRender, this._ease = D, this._delay = P, this.iterationDuration = N, !this._autoplay && I && this.onRender(this);
|
|
1019
|
-
}
|
|
1020
|
-
stretch(e) {
|
|
1021
|
-
let t = this.duration;
|
|
1022
|
-
if (t === Ce(e)) return this;
|
|
1023
|
-
let n = e / t;
|
|
1024
|
-
return q(this, (e) => {
|
|
1025
|
-
e._updateDuration = Ce(e._updateDuration * n), e._changeDuration = Ce(e._changeDuration * n), e._currentTime *= n, e._delay *= n, e._startTime *= n, e._absoluteStartTime *= n, e._absoluteUpdateStartTime *= n, e._absoluteEndTime *= n;
|
|
1026
|
-
}), super.stretch(e);
|
|
1027
|
-
}
|
|
1028
|
-
refresh() {
|
|
1029
|
-
return q(this, (e) => {
|
|
1030
|
-
let t = e._toFunc, n = e._fromFunc;
|
|
1031
|
-
(t || n) && (n ? (Y(n(), Q), Q.u !== e._unit && e.target[l] && bt(e.target, Q, e._unit, !0), e._fromNumbers = K(Q.d), e._fromNumber = Q.n) : t && (Y(Be(e.target, e.property, e._tweenType), X), e._fromNumbers = K(X.d), e._fromNumber = X.n), t && (Y(t(), $), e._toNumbers = K($.d), e._strings = K($.s), e._toNumber = $.o ? Ve(e._fromNumber, $.n, $.o) : $.n));
|
|
1032
|
-
}), this.duration === 1e-11 && this.restart(), this;
|
|
1033
|
-
}
|
|
1034
|
-
revert() {
|
|
1035
|
-
return super.revert(), Ye(this);
|
|
1036
|
-
}
|
|
1037
|
-
then(e) {
|
|
1038
|
-
return super.then(e);
|
|
1039
|
-
}
|
|
1040
|
-
}, Wt = (e, t) => M.editor ? M.editor.addAnimation(e, t) : new Ut(e, t, null, 0, !1).init(), Gt = (e, t) => {
|
|
1041
|
-
if (F(t, "<")) {
|
|
1042
|
-
let n = t[1] === "<", r = e._tail, i = r ? r._offset + r._delay : 0;
|
|
1043
|
-
return n ? i : i + r.duration;
|
|
1044
|
-
}
|
|
1045
|
-
}, Kt = (e, t) => {
|
|
1046
|
-
let n = e.iterationDuration;
|
|
1047
|
-
if (n === 1e-11 && (n = 0), V(t)) return n;
|
|
1048
|
-
if (R(+t)) return +t;
|
|
1049
|
-
let r = t, i = e ? e.labels : null, a = !ie(i), o = Gt(e, r), s = !V(o), c = A.exec(r);
|
|
1050
|
-
if (c) {
|
|
1051
|
-
let e = c[0], t = r.split(e), l = a && t[0] ? i[t[0]] : n;
|
|
1052
|
-
return Ve(s ? o : a ? l : n, +t[1], e[0]);
|
|
1053
|
-
}
|
|
1054
|
-
return s ? o : a ? V(i[r]) ? n : i[r] : n;
|
|
1055
|
-
};
|
|
1056
|
-
//#endregion
|
|
1057
|
-
//#region node_modules/.pnpm/animejs@4.5.0/node_modules/animejs/dist/modules/utils/target.js
|
|
1058
|
-
function qt(e, t, n) {
|
|
1059
|
-
let r = _t(e);
|
|
1060
|
-
if (!r.length) return;
|
|
1061
|
-
let [i] = r, o = Be(i, Je(t, i, Re(i, t)));
|
|
1062
|
-
if (V(n)) return o;
|
|
1063
|
-
if (Y(o, X), X.t === a.NUMBER || X.t === a.UNIT) {
|
|
1064
|
-
if (n === !1) return X.n;
|
|
1065
|
-
{
|
|
1066
|
-
let e = bt(i, X, n, !1);
|
|
1067
|
-
return `${G(e.n, M.precision)}${e.u}`;
|
|
1068
|
-
}
|
|
1069
|
-
}
|
|
1070
|
-
}
|
|
1071
|
-
var Jt = (e, t) => {
|
|
1072
|
-
if (!V(t)) return M.editor && M.editor.addSet ? M.editor.addSet(e, t) : (t.duration = p, t.composition = J(t.composition, s.none), new Ut(e, t, null, 0, !0).resume());
|
|
1073
|
-
}, Yt = (e = b) => new mt({
|
|
1074
|
-
duration: 1 * M.timeScale,
|
|
1075
|
-
onComplete: e
|
|
1076
|
-
}, null, 0).resume(), Xt = (e) => {
|
|
1077
|
-
let t;
|
|
1078
|
-
return ((...n) => {
|
|
1079
|
-
let r, i, a, o, s;
|
|
1080
|
-
t && (r = t.currentIteration, i = t.iterationProgress, a = t.reversed, o = t._alternate, s = t._startTime, t.revert());
|
|
1081
|
-
let c = e(...n);
|
|
1082
|
-
return c && !B(c) && c.revert && (t = c), V(i) || (t.currentIteration = r, t.iterationProgress = (o && r % 2 ? !a : a) ? 1 - i : i, t._startTime = s), c || b;
|
|
1083
|
-
});
|
|
1084
|
-
}, Zt = () => {
|
|
1085
|
-
let e = r.createElement("div");
|
|
1086
|
-
r.body.appendChild(e), e.style.height = "100lvh";
|
|
1087
|
-
let t = e.offsetHeight;
|
|
1088
|
-
return r.body.removeChild(e), t;
|
|
1089
|
-
}, Qt = (e, t) => e && B(e) ? e(t) : e, $t = /* @__PURE__ */ new Map(), en = class {
|
|
1090
|
-
constructor(e) {
|
|
1091
|
-
this.element = e, this.useWin = this.element === r.body, this.winWidth = 0, this.winHeight = 0, this.width = 0, this.height = 0, this.left = 0, this.top = 0, this.scale = 1, this.zIndex = 0, this.scrollX = 0, this.scrollY = 0, this.prevScrollX = 0, this.prevScrollY = 0, this.scrollWidth = 0, this.scrollHeight = 0, this.velocity = 0, this.backwardX = !1, this.backwardY = !1, this.scrollTicker = new mt({
|
|
1092
|
-
autoplay: !1,
|
|
1093
|
-
onBegin: () => this.dataTimer.resume(),
|
|
1094
|
-
onUpdate: () => {
|
|
1095
|
-
let e = this.backwardX || this.backwardY;
|
|
1096
|
-
q(this, (e) => e.handleScroll(), e);
|
|
1097
|
-
},
|
|
1098
|
-
onComplete: () => this.dataTimer.pause()
|
|
1099
|
-
}).init(), this.dataTimer = new mt({
|
|
1100
|
-
autoplay: !1,
|
|
1101
|
-
frameRate: 30,
|
|
1102
|
-
onUpdate: (e) => {
|
|
1103
|
-
let t = e.deltaTime, n = this.prevScrollX, r = this.prevScrollY, i = this.scrollX, a = this.scrollY, o = n - i, s = r - a;
|
|
1104
|
-
this.prevScrollX = i, this.prevScrollY = a, o && (this.backwardX = n > i), s && (this.backwardY = r > a), this.velocity = G(t > 0 ? Math.sqrt(o * o + s * s) / t : 0, 5);
|
|
1105
|
-
}
|
|
1106
|
-
}).init(), this.resizeTicker = new mt({
|
|
1107
|
-
autoplay: !1,
|
|
1108
|
-
duration: 250 * M.timeScale,
|
|
1109
|
-
onComplete: () => {
|
|
1110
|
-
this.updateWindowBounds(), this.refreshScrollObservers(), this.handleScroll();
|
|
1111
|
-
}
|
|
1112
|
-
}).init(), this.wakeTicker = new mt({
|
|
1113
|
-
autoplay: !1,
|
|
1114
|
-
duration: 500 * M.timeScale,
|
|
1115
|
-
onBegin: () => {
|
|
1116
|
-
this.scrollTicker.resume();
|
|
1117
|
-
},
|
|
1118
|
-
onComplete: () => {
|
|
1119
|
-
this.scrollTicker.pause();
|
|
1120
|
-
}
|
|
1121
|
-
}).init(), this._head = null, this._tail = null, this.updateScrollCoords(), this.updateWindowBounds(), this.updateBounds(), this.refreshScrollObservers(), this.handleScroll(), this.resizeObserver = new ResizeObserver(() => this.resizeTicker.restart()), this.resizeObserver.observe(this.element), (this.useWin ? n : this.element).addEventListener("scroll", this, !1);
|
|
1122
|
-
}
|
|
1123
|
-
updateScrollCoords() {
|
|
1124
|
-
let e = this.useWin, t = this.element;
|
|
1125
|
-
this.scrollX = G(e ? n.scrollX : t.scrollLeft, 0), this.scrollY = G(e ? n.scrollY : t.scrollTop, 0);
|
|
1126
|
-
}
|
|
1127
|
-
updateWindowBounds() {
|
|
1128
|
-
this.winWidth = n.innerWidth, this.winHeight = Zt();
|
|
1129
|
-
}
|
|
1130
|
-
updateBounds() {
|
|
1131
|
-
let e = getComputedStyle(this.element), t = this.element;
|
|
1132
|
-
this.scrollWidth = t.scrollWidth + parseFloat(e.marginLeft) + parseFloat(e.marginRight), this.scrollHeight = t.scrollHeight + parseFloat(e.marginTop) + parseFloat(e.marginBottom), this.updateWindowBounds();
|
|
1133
|
-
let n, r;
|
|
1134
|
-
if (this.useWin) n = this.winWidth, r = this.winHeight;
|
|
1135
|
-
else {
|
|
1136
|
-
let e = t.getBoundingClientRect();
|
|
1137
|
-
n = t.clientWidth, r = t.clientHeight, this.top = e.top, this.left = e.left, this.scale = e.width ? n / e.width : e.height ? r / e.height : 1;
|
|
1138
|
-
}
|
|
1139
|
-
this.width = n, this.height = r;
|
|
1140
|
-
}
|
|
1141
|
-
refreshScrollObservers() {
|
|
1142
|
-
q(this, (e) => {
|
|
1143
|
-
e.ready && e._debug && e.removeDebug();
|
|
1144
|
-
}), this.updateBounds(), q(this, (e) => {
|
|
1145
|
-
e.ready && (e.refresh(), e.onResize(e), e._debug && e.debug());
|
|
1146
|
-
});
|
|
1147
|
-
}
|
|
1148
|
-
refresh() {
|
|
1149
|
-
this.updateWindowBounds(), this.updateBounds(), this.refreshScrollObservers(), this.handleScroll();
|
|
1150
|
-
}
|
|
1151
|
-
handleScroll() {
|
|
1152
|
-
this.updateScrollCoords(), this.wakeTicker.restart();
|
|
1153
|
-
}
|
|
1154
|
-
handleEvent(e) {
|
|
1155
|
-
e.type === "scroll" && this.handleScroll();
|
|
1156
|
-
}
|
|
1157
|
-
revert() {
|
|
1158
|
-
this.scrollTicker.cancel(), this.dataTimer.cancel(), this.resizeTicker.cancel(), this.wakeTicker.cancel(), this.resizeObserver.disconnect(), (this.useWin ? n : this.element).removeEventListener("scroll", this), $t.delete(this.element);
|
|
1159
|
-
}
|
|
1160
|
-
}, tn = (e) => {
|
|
1161
|
-
let t = e && gt(e)[0] || r.body, n = $t.get(t);
|
|
1162
|
-
return n || (n = new en(t), $t.set(t, n)), n;
|
|
1163
|
-
}, nn = (e, t, n, r, i) => {
|
|
1164
|
-
let a = t === "min", o = t === "max", { n: s, u: c } = Y(t === "top" || t === "left" || t === "start" || a ? 0 : t === "bottom" || t === "right" || t === "end" || o ? "100%" : t === "center" ? "50%" : t, X), l = s;
|
|
1165
|
-
return c === "%" ? l = s / 100 * n : c && (l = bt(e, X, "px", !0).n), o && r < 0 && (l += r), a && i > 0 && (l += i), l;
|
|
1166
|
-
}, rn = (e, t, n, r, i) => {
|
|
1167
|
-
let a;
|
|
1168
|
-
if (z(t)) {
|
|
1169
|
-
let o = A.exec(t);
|
|
1170
|
-
if (o) {
|
|
1171
|
-
let s = o[0], c = s[0], l = t.split(s), u = l[0] === "min", d = l[0] === "max", f = nn(e, l[0], n, r, i), p = nn(e, l[1], n, r, i);
|
|
1172
|
-
if (u) {
|
|
1173
|
-
let t = Ve(nn(e, "min", n), p, c);
|
|
1174
|
-
a = t < f ? f : t;
|
|
1175
|
-
} else if (d) {
|
|
1176
|
-
let t = Ve(nn(e, "max", n), p, c);
|
|
1177
|
-
a = t > f ? f : t;
|
|
1178
|
-
} else a = Ve(f, p, c);
|
|
1179
|
-
} else a = nn(e, t, n, r, i);
|
|
1180
|
-
} else a = t;
|
|
1181
|
-
return G(a, 0);
|
|
1182
|
-
}, an = (e) => {
|
|
1183
|
-
let t, n = e.targets;
|
|
1184
|
-
for (let e = 0, r = n.length; e < r; e++) {
|
|
1185
|
-
let r = n[e];
|
|
1186
|
-
if (r[l]) {
|
|
1187
|
-
t = r;
|
|
1188
|
-
break;
|
|
1189
|
-
}
|
|
1190
|
-
}
|
|
1191
|
-
return t;
|
|
1192
|
-
}, on = 0, sn = [
|
|
1193
|
-
"#FF4B4B",
|
|
1194
|
-
"#FF971B",
|
|
1195
|
-
"#FFC730",
|
|
1196
|
-
"#F9F640",
|
|
1197
|
-
"#7AFF5A",
|
|
1198
|
-
"#18FF74",
|
|
1199
|
-
"#17E09B",
|
|
1200
|
-
"#3CFFEC",
|
|
1201
|
-
"#05DBE9",
|
|
1202
|
-
"#33B3F1",
|
|
1203
|
-
"#638CF9",
|
|
1204
|
-
"#C563FE",
|
|
1205
|
-
"#FF4FCF",
|
|
1206
|
-
"#F93F8A"
|
|
1207
|
-
], cn = class {
|
|
1208
|
-
constructor(e = {}) {
|
|
1209
|
-
j.current && j.current.register(this);
|
|
1210
|
-
let t = J(e.sync, "play pause"), n = t ? jt(t) : null, i = t && (t === "linear" || t === xt), a = t && !(n === xt && !i), o = t && (R(t) || t === !0 || i), s = t && z(t) && !a && !o, c = s ? t.split(" ").map((e) => () => {
|
|
1211
|
-
let t = this.linked;
|
|
1212
|
-
return t && t[e] ? t[e]() : null;
|
|
1213
|
-
}) : null, l = s && c.length > 2;
|
|
1214
|
-
this.index = on++, this.id = V(e.id) ? this.index : e.id, this.container = tn(e.container), this.target = null, this.linked = null, this.repeat = null, this.horizontal = null, this.enter = null, this.leave = null, this.sync = a || o || !!c, this.syncEase = a ? n : null, this.syncSmooth = o ? t === !0 || i ? 1 : t : null, this.onSyncEnter = c && !l && c[0] ? c[0] : b, this.onSyncLeave = c && !l && c[1] ? c[1] : b, this.onSyncEnterForward = c && l && c[0] ? c[0] : b, this.onSyncLeaveForward = c && l && c[1] ? c[1] : b, this.onSyncEnterBackward = c && l && c[2] ? c[2] : b, this.onSyncLeaveBackward = c && l && c[3] ? c[3] : b, this.onEnter = e.onEnter || b, this.onLeave = e.onLeave || b, this.onEnterForward = e.onEnterForward || b, this.onLeaveForward = e.onLeaveForward || b, this.onEnterBackward = e.onEnterBackward || b, this.onLeaveBackward = e.onLeaveBackward || b, this.onUpdate = e.onUpdate || b, this.onResize = e.onResize || b, this.onSyncComplete = e.onSyncComplete || b, this.reverted = !1, this.ready = !1, this.completed = !1, this.began = !1, this.isInView = !1, this.forceEnter = !1, this.hasEntered = !1, this.offset = 0, this.offsetStart = 0, this.offsetEnd = 0, this.distance = 0, this.prevProgress = 0, this.thresholds = [
|
|
1215
|
-
"start",
|
|
1216
|
-
"end",
|
|
1217
|
-
"end",
|
|
1218
|
-
"start"
|
|
1219
|
-
], this.coords = [
|
|
1220
|
-
0,
|
|
1221
|
-
0,
|
|
1222
|
-
0,
|
|
1223
|
-
0
|
|
1224
|
-
], this.debugStyles = null, this.$debug = null, this._params = e, this._debug = J(e.debug, !1), this._next = null, this._prev = null, Ee(this.container, this), Yt(() => {
|
|
1225
|
-
if (!this.reverted) {
|
|
1226
|
-
if (!this.target) {
|
|
1227
|
-
let t = gt(e.target)[0];
|
|
1228
|
-
this.target = t || r.body, this.refresh();
|
|
1229
|
-
}
|
|
1230
|
-
this._debug && this.debug();
|
|
1231
|
-
}
|
|
1232
|
-
});
|
|
1233
|
-
}
|
|
1234
|
-
link(e) {
|
|
1235
|
-
if (e && (e.pause(), this.linked = e, !V(e) && !V(e.persist) && (e.persist = !0), !this._params.target)) {
|
|
1236
|
-
let t;
|
|
1237
|
-
V(e.targets) ? q(e, (e) => {
|
|
1238
|
-
e.targets && !t && (t = an(e));
|
|
1239
|
-
}) : t = an(e), this.target = t || r.body, this.refresh();
|
|
1240
|
-
}
|
|
1241
|
-
return this;
|
|
1242
|
-
}
|
|
1243
|
-
get velocity() {
|
|
1244
|
-
return this.container.velocity;
|
|
1245
|
-
}
|
|
1246
|
-
get backward() {
|
|
1247
|
-
return this.horizontal ? this.container.backwardX : this.container.backwardY;
|
|
1248
|
-
}
|
|
1249
|
-
get scroll() {
|
|
1250
|
-
return this.horizontal ? this.container.scrollX : this.container.scrollY;
|
|
1251
|
-
}
|
|
1252
|
-
get progress() {
|
|
1253
|
-
let e = (this.scroll - this.offsetStart) / this.distance;
|
|
1254
|
-
return e === Infinity || isNaN(e) ? 0 : G(W(e, 0, 1), 6);
|
|
1255
|
-
}
|
|
1256
|
-
refresh() {
|
|
1257
|
-
this.ready = !0, this.reverted = !1;
|
|
1258
|
-
let e = this._params;
|
|
1259
|
-
return this.repeat = J(Qt(e.repeat, this), !0), this.horizontal = J(Qt(e.axis, this), "y") === "x", this.enter = J(Qt(e.enter, this), "end start"), this.leave = J(Qt(e.leave, this), "start end"), this.updateBounds(), this.handleScroll(), this;
|
|
1260
|
-
}
|
|
1261
|
-
removeDebug() {
|
|
1262
|
-
return this.$debug &&= (this.$debug.parentNode.removeChild(this.$debug), null), this.debugStyles && (this.debugStyles.revert(), this.$debug = null), this;
|
|
1263
|
-
}
|
|
1264
|
-
debug() {
|
|
1265
|
-
this.removeDebug();
|
|
1266
|
-
let e = this.container, t = this.horizontal, n = e.element.querySelector(":scope > .animejs-onscroll-debug"), i = r.createElement("div"), a = r.createElement("div"), o = r.createElement("div"), s = sn[this.index % sn.length], c = e.useWin, l = c ? e.winWidth : e.width, u = c ? e.winHeight : e.height, d = e.scrollWidth, f = e.scrollHeight, p = this.container.width > 360 ? 320 : 260, m = t ? 0 : 10, h = t ? 10 : 0, g = t ? 24 : p / 2, _ = t ? g : 15, v = t ? 60 : g, y = t ? v : _, b = t ? "repeat-x" : "repeat-y", x = (e) => t ? "0px " + e + "px" : e + "px 2px", S = (e) => `linear-gradient(${t ? 90 : 0}deg, ${e} 2px, transparent 1px)`, C = (e, t, n, r, i) => `position:${e};left:${t}px;top:${n}px;width:${r}px;height:${i}px;`;
|
|
1267
|
-
i.style.cssText = `${C("absolute", m, h, t ? d : p, t ? p : f)}
|
|
1268
|
-
pointer-events: none;
|
|
1269
|
-
z-index: ${this.container.zIndex++};
|
|
1270
|
-
display: flex;
|
|
1271
|
-
flex-direction: ${t ? "column" : "row"};
|
|
1272
|
-
filter: drop-shadow(0px 1px 0px rgba(0,0,0,.75));
|
|
1273
|
-
`, a.style.cssText = `${C("sticky", 0, 0, t ? l : g, t ? g : u)}`, n || (a.style.cssText += `background:
|
|
1274
|
-
${S("#FFFF")}${x(g - 10)} / 100px 100px ${b},
|
|
1275
|
-
${S("#FFF8")}${x(g - 10)} / 10px 10px ${b};
|
|
1276
|
-
`), o.style.cssText = `${C("relative", 0, 0, t ? d : g, t ? g : f)}`, n || (o.style.cssText += `background:
|
|
1277
|
-
${S("#FFFF")}${x(0)} / ${t ? "100px 10px" : "10px 100px"} ${b},
|
|
1278
|
-
${S("#FFF8")}${x(0)} / ${t ? "10px 0px" : "0px 10px"} ${b};
|
|
1279
|
-
`);
|
|
1280
|
-
let w = [" enter: ", " leave: "];
|
|
1281
|
-
this.coords.forEach((e, n) => {
|
|
1282
|
-
let i = n > 1, c = (i ? 0 : this.offset) + e, m = n % 2, h = c < y, g = c > (i ? t ? l : u : t ? d : f) - y, b = (i ? m && !h : !m && !h) || g, x = r.createElement("div"), S = r.createElement("div"), T = t ? b ? "right" : "left" : b ? "bottom" : "top", E = b ? (t ? v : _) + (i ? t ? -1 : g ? 0 : -2 : t ? -1 : -2) : +!!t;
|
|
1283
|
-
S.innerHTML = `${this.id}${w[m]}${this.thresholds[n]}`, x.style.cssText = `${C("absolute", 0, 0, v, _)}
|
|
1284
|
-
display: flex;
|
|
1285
|
-
flex-direction: ${t ? "column" : "row"};
|
|
1286
|
-
justify-content: flex-${i ? "start" : "end"};
|
|
1287
|
-
align-items: flex-${b ? "end" : "start"};
|
|
1288
|
-
border-${T}: 2px solid ${s};
|
|
1289
|
-
`, S.style.cssText = `
|
|
1290
|
-
overflow: hidden;
|
|
1291
|
-
max-width: ${p / 2 - 10}px;
|
|
1292
|
-
height: ${_};
|
|
1293
|
-
margin-${t ? b ? "right" : "left" : b ? "bottom" : "top"}: -2px;
|
|
1294
|
-
padding: 1px;
|
|
1295
|
-
font-family: ui-monospace, monospace;
|
|
1296
|
-
font-size: 10px;
|
|
1297
|
-
letter-spacing: -.025em;
|
|
1298
|
-
line-height: 9px;
|
|
1299
|
-
font-weight: 600;
|
|
1300
|
-
text-align: ${t && b || !t && !i ? "right" : "left"};
|
|
1301
|
-
white-space: pre;
|
|
1302
|
-
text-overflow: ellipsis;
|
|
1303
|
-
color: ${m ? s : "rgba(0,0,0,.75)"};
|
|
1304
|
-
background-color: ${m ? "rgba(0,0,0,.65)" : s};
|
|
1305
|
-
border: 2px solid ${m ? s : "transparent"};
|
|
1306
|
-
border-${t ? b ? "top-left" : "top-right" : b ? "top-left" : "bottom-left"}-radius: 5px;
|
|
1307
|
-
border-${t ? b ? "bottom-left" : "bottom-right" : b ? "top-right" : "bottom-right"}-radius: 5px;
|
|
1308
|
-
`, x.appendChild(S);
|
|
1309
|
-
let D = c - E + +!!t;
|
|
1310
|
-
x.style[t ? "left" : "top"] = `${D}px`, (i ? a : o).appendChild(x);
|
|
1311
|
-
}), i.appendChild(a), i.appendChild(o), e.element.appendChild(i), n || i.classList.add("animejs-onscroll-debug"), this.$debug = i, qt(e.element, "position") === "static" && (this.debugStyles = Jt(e.element, { position: "relative " }));
|
|
1312
|
-
}
|
|
1313
|
-
updateBounds() {
|
|
1314
|
-
this._debug && this.removeDebug();
|
|
1315
|
-
let e, t = this.target, n = this.container, i = this.horizontal, a = this.linked, o, s = t;
|
|
1316
|
-
for (a && (o = a.currentTime, a.seek(0, !0)); s && s !== n.element && s !== r.body;) {
|
|
1317
|
-
let t = qt(s, "position") === "sticky" && Jt(s, { position: "static" });
|
|
1318
|
-
s = s.parentElement, t && (e ||= [], e.push(t));
|
|
1319
|
-
}
|
|
1320
|
-
let c = t.getBoundingClientRect(), l = n.scale, u = (i ? c.left + n.scrollX - n.left : c.top + n.scrollY - n.top) * l, d = (i ? c.width : c.height) * l, f = i ? n.width : n.height, p = (i ? n.scrollWidth : n.scrollHeight) - f, m = this.enter, h = this.leave, g = "start", _ = "end", v = "end", y = "start";
|
|
1321
|
-
if (z(m)) {
|
|
1322
|
-
let e = m.split(" ");
|
|
1323
|
-
v = e[0], g = e.length > 1 ? e[1] : g;
|
|
1324
|
-
} else if (re(m)) {
|
|
1325
|
-
let e = m;
|
|
1326
|
-
V(e.container) || (v = e.container), V(e.target) || (g = e.target);
|
|
1327
|
-
} else R(m) && (v = m);
|
|
1328
|
-
if (z(h)) {
|
|
1329
|
-
let e = h.split(" ");
|
|
1330
|
-
y = e[0], _ = e.length > 1 ? e[1] : _;
|
|
1331
|
-
} else if (re(h)) {
|
|
1332
|
-
let e = h;
|
|
1333
|
-
V(e.container) || (y = e.container), V(e.target) || (_ = e.target);
|
|
1334
|
-
} else R(h) && (y = h);
|
|
1335
|
-
let b = rn(t, g, d), x = rn(t, _, d), S = b + u - f, C = x + u - p, w = rn(t, v, f, S, C), T = rn(t, y, f, S, C), E = b + u - w, D = x + u - T, O = D - E;
|
|
1336
|
-
this.offset = u, this.offsetStart = E, this.offsetEnd = D, this.distance = O <= 0 ? 0 : O, this.thresholds = [
|
|
1337
|
-
g,
|
|
1338
|
-
_,
|
|
1339
|
-
v,
|
|
1340
|
-
y
|
|
1341
|
-
], this.coords = [
|
|
1342
|
-
b,
|
|
1343
|
-
x,
|
|
1344
|
-
w,
|
|
1345
|
-
T
|
|
1346
|
-
], e && e.forEach((e) => e.revert()), a && a.seek(o, !0), this._debug && this.debug();
|
|
1347
|
-
}
|
|
1348
|
-
handleScroll() {
|
|
1349
|
-
if (!this.ready) return;
|
|
1350
|
-
let e = this.linked, t = this.sync, n = this.syncEase, r = this.syncSmooth, i = e && (n || r), a = this.horizontal, o = this.container, s = this.scroll, c = s <= this.offsetStart, l = s >= this.offsetEnd, u = !c && !l, d = s === this.offsetStart || s === this.offsetEnd, f = !this.hasEntered && d, p = this._debug && this.$debug, m = !1, h = !1, g = this.progress;
|
|
1351
|
-
if (c && this.began && (this.began = !1), g > 0 && !this.began && (this.began = !0), i) {
|
|
1352
|
-
let t = e.progress;
|
|
1353
|
-
if (r && R(r)) {
|
|
1354
|
-
if (r < 1) {
|
|
1355
|
-
let e = t < g && g === 1 ? 1e-4 : t > g && !g ? -1e-4 : 0;
|
|
1356
|
-
g = G(xe(t, g, xe(.01, .2, r)) + e, 6);
|
|
1357
|
-
}
|
|
1358
|
-
} else n && (g = n(g));
|
|
1359
|
-
m = g !== this.prevProgress, h = t === 1, m && !h && r && t && o.wakeTicker.restart();
|
|
1360
|
-
}
|
|
1361
|
-
if (p) {
|
|
1362
|
-
let e = a ? o.scrollY : o.scrollX;
|
|
1363
|
-
p.style[a ? "top" : "left"] = e + 10 + "px";
|
|
1364
|
-
}
|
|
1365
|
-
(u && !this.isInView || f && !this.forceEnter && !this.hasEntered) && (u && (this.isInView = !0), !this.forceEnter || !this.hasEntered ? (p && u && (p.style.zIndex = `${this.container.zIndex++}`), this.onSyncEnter(this), this.onEnter(this), this.backward ? (this.onSyncEnterBackward(this), this.onEnterBackward(this)) : (this.onSyncEnterForward(this), this.onEnterForward(this)), this.hasEntered = !0, f && (this.forceEnter = !0)) : u && (this.forceEnter = !1)), (u || !u && this.isInView) && (m = !0), m && (i && e.seek(e.duration * g), this.onUpdate(this)), !u && this.isInView && (this.isInView = !1, this.onSyncLeave(this), this.onLeave(this), this.backward ? (this.onSyncLeaveBackward(this), this.onLeaveBackward(this)) : (this.onSyncLeaveForward(this), this.onLeaveForward(this)), t && !r && (h = !0)), g >= 1 && this.began && !this.completed && (t && h || !t) && (t && this.onSyncComplete(this), this.completed = !0, (!this.repeat && !e || !this.repeat && e && e.completed) && this.revert()), g < 1 && this.completed && (this.completed = !1), this.prevProgress = g;
|
|
1366
|
-
}
|
|
1367
|
-
revert() {
|
|
1368
|
-
if (this.reverted) return;
|
|
1369
|
-
let e = this.container;
|
|
1370
|
-
return Te(e, this), e._head || e.revert(), this._debug && this.removeDebug(), this.reverted = !0, this.ready = !1, this;
|
|
1371
|
-
}
|
|
1372
|
-
}, ln = (e = {}) => new cn(e), un = (e = 0, t = 1, n = 0) => {
|
|
1373
|
-
let r = 10 ** n;
|
|
1374
|
-
return Math.floor((Math.random() * (t - e + 1 / r) + e) * r) / r;
|
|
1375
|
-
}, dn = 0, fn = (e, t = 0, n = 1, r = 0) => {
|
|
1376
|
-
let i = e === void 0 ? dn++ : e;
|
|
1377
|
-
return (e = t, a = n, o = r) => {
|
|
1378
|
-
i += 1831565813, i = Math.imul(i ^ i >>> 15, i | 1), i ^= i + Math.imul(i ^ i >>> 7, i | 61);
|
|
1379
|
-
let s = 10 ** o;
|
|
1380
|
-
return Math.floor((((i ^ i >>> 14) >>> 0) / 4294967296 * (a - e + 1 / s) + e) * s) / s;
|
|
1381
|
-
};
|
|
1382
|
-
}, pn = (e, t = un) => {
|
|
1383
|
-
let n = e.length, r, i;
|
|
1384
|
-
for (; n;) i = t(0, --n), r = e[n], e[n] = e[i], e[i] = r;
|
|
1385
|
-
return e;
|
|
1386
|
-
}, mn = (e, t = {}) => {
|
|
1387
|
-
let n = [], r = 0, i, a = null, o = t.from, s = t.reversed, c = t.ease, l = !V(c), u = l && !V(c.ease) ? c.ease : l ? jt(c) : null, d = t.grid, f = d === !0, p = t.axis, m = t.total, h = V(o) || o === 0 || o === "first", g = o === "center", _ = o === "last", v = o === "random", y = L(o), b = L(e), x = t.use, S = H(b ? e[0] : e), C = b ? H(e[1]) : 0, w = k.exec((b ? e[1] : e) + ""), T = t.start || 0 + (b ? S : 0), E = t.seed, D = !V(E) && E !== !1 ? fn(E === !0 ? 0 : E) : un, O = t.jitter, ee = !V(O), A = L(O), te = A ? O[0] : O || 0, ne = A ? O[1] : O || 0, j = h ? 0 : R(o) ? o : 0;
|
|
1388
|
-
return (e, c, l, h, E) => {
|
|
1389
|
-
let [O] = _t(e), k = V(m) ? l.length : m, A = V(x) ? !1 : B(x) ? x(O, c, k) : Be(O, x), M = R(A) || z(A) && R(+A) ? +A : c, N = M >= 0 && M < k ? M : c;
|
|
1390
|
-
if (g && (j = (k - 1) / 2), _ && (j = k - 1), !n.length) {
|
|
1391
|
-
if (f) {
|
|
1392
|
-
let e = !0, t = !1, r = Infinity, i = Infinity, a = Infinity, s = -Infinity, c = -Infinity, u = -Infinity, d = [], f = [], m = [];
|
|
1393
|
-
for (let n = 0; n < k; n++) {
|
|
1394
|
-
let o = l[n], p = 0, h = 0, g = 0, _ = !1;
|
|
1395
|
-
if (o && B(o.getBoundingClientRect)) {
|
|
1396
|
-
let e = o.getBoundingClientRect();
|
|
1397
|
-
p = e.left + e.width / 2, h = e.top + e.height / 2, _ = !0;
|
|
1398
|
-
} else {
|
|
1399
|
-
let e = o;
|
|
1400
|
-
e && R(e.x) && R(e.y) && (p = e.x, h = e.y, R(e.z) && (g = e.z, t = !0), _ = !0);
|
|
1401
|
-
}
|
|
1402
|
-
if (!_) {
|
|
1403
|
-
e = !1;
|
|
1404
|
-
break;
|
|
1405
|
-
}
|
|
1406
|
-
d.push(p), f.push(h), m.push(g), p < r && (r = p), h < i && (i = h), g < a && (a = g), p > s && (s = p), h > c && (c = h), g > u && (u = g);
|
|
1407
|
-
}
|
|
1408
|
-
if (e) {
|
|
1409
|
-
let e = d[0], l = f[0], h = m[0];
|
|
1410
|
-
y ? (e = r + o[0] * (s - r), l = i + o[1] * (c - i), h = t ? a + (o.length >= 3 ? o[2] : .5) * (u - a) : 0) : g ? (e = (r + s) / 2, l = (i + c) / 2, h = (a + u) / 2) : _ ? (e = d[k - 1], l = f[k - 1], h = m[k - 1]) : R(o) && (e = d[o], l = f[o], h = m[o]);
|
|
1411
|
-
for (let r = 0; r < k; r++) {
|
|
1412
|
-
let i = e - d[r], a = l - f[r], o = h - m[r], s = me(i * i + a * a + (t ? o * o : 0));
|
|
1413
|
-
p === "x" && (s = -i), p === "y" && (s = -a), p === "z" && (s = -o), n.push(s);
|
|
1414
|
-
}
|
|
1415
|
-
let v = Infinity;
|
|
1416
|
-
for (let e = 0; e < k; e++) {
|
|
1417
|
-
let t = _e(n[e]);
|
|
1418
|
-
t > 0 && t < v && (v = t);
|
|
1419
|
-
}
|
|
1420
|
-
if (v > 0 && v < Infinity) for (let e = 0; e < k; e++) n[e] = n[e] / v;
|
|
1421
|
-
} else for (let e = 0; e < k; e++) n.push(_e(j - e));
|
|
1422
|
-
} else for (let e = 0; e < k; e++) if (!d) n.push(_e(j - e));
|
|
1423
|
-
else {
|
|
1424
|
-
let t = d.length, r = d[0] * d[1], i, a, s;
|
|
1425
|
-
y ? (i = o[0] * (d[0] - 1), a = o[1] * (d[1] - 1), s = t === 3 ? (o.length >= 3 ? o[2] : .5) * (d[2] - 1) : 0) : g ? (i = (d[0] - 1) / 2, a = (d[1] - 1) / 2, s = t === 3 ? (d[2] - 1) / 2 : 0) : (i = j % d[0], a = ve(j / d[0]) % d[1], s = t === 3 ? ve(j / r) : 0);
|
|
1426
|
-
let c = e % d[0], l = ve(e / d[0]) % d[1], u = t === 3 ? ve(e / r) : 0, f = i - c, m = a - l, h = s - u, _ = me(f * f + m * m + (t === 3 ? h * h : 0));
|
|
1427
|
-
p === "x" && (_ = -f), p === "y" && (_ = -m), p === "z" && (_ = -h), n.push(_);
|
|
1428
|
-
}
|
|
1429
|
-
r = n[0];
|
|
1430
|
-
for (let e = 1; e < k; e++) n[e] > r && (r = n[e]);
|
|
1431
|
-
if (u || s) for (let e = 0; e < k; e++) {
|
|
1432
|
-
let t = n[e];
|
|
1433
|
-
u && (t = u(t / r) * r), s && (t = p ? -t : _e(r - t)), n[e] = t;
|
|
1434
|
-
}
|
|
1435
|
-
if (ee) {
|
|
1436
|
-
a = Array(k);
|
|
1437
|
-
for (let e = 0; e < k; e++) a[e] = D(-1, 1, 4);
|
|
1438
|
-
}
|
|
1439
|
-
v && (n = pn(n, D));
|
|
1440
|
-
}
|
|
1441
|
-
let P = b ? (C - S) / r : S;
|
|
1442
|
-
V(i) && (i = E ? Kt(E, V(t.start) ? E.iterationDuration : T) : T);
|
|
1443
|
-
let F = i + (P * G(n[N], 2) || 0);
|
|
1444
|
-
if (ee) {
|
|
1445
|
-
let e = r ? n[N] / r : 0, t = te + (ne - te) * e;
|
|
1446
|
-
F += a[N] * t;
|
|
1447
|
-
}
|
|
1448
|
-
return t.modifier && (F = t.modifier(F)), w && (F = `${F}${w[2]}`), F;
|
|
1449
|
-
};
|
|
1450
|
-
}, hn = typeof Intl < "u" && Intl.Segmenter, gn = /\{value\}/g, _n = /\{i\}/g, vn = /(\s+)/, yn = /^\s+$/, bn = "line", xn = "word", Sn = "char", Cn = "data-line", wn = null, Tn = null, En = null, Dn = (e) => e.isWordLike || e.segment === " " || R(+e.segment), On = (e) => e.setAttribute("aria-hidden", "true"), kn = (e, t) => [...e.querySelectorAll(`[data-${t}]:not([data-${t}] [data-${t}])`)], An = {
|
|
1451
|
-
line: "#00D672",
|
|
1452
|
-
word: "#FF4B4B",
|
|
1453
|
-
char: "#5A87FF"
|
|
1454
|
-
}, jn = (e) => {
|
|
1455
|
-
if (!e.childElementCount && !e.textContent.trim()) {
|
|
1456
|
-
let t = e.parentElement;
|
|
1457
|
-
e.remove(), t && jn(t);
|
|
1458
|
-
}
|
|
1459
|
-
}, Mn = (e, t, n) => {
|
|
1460
|
-
let r = e.getAttribute(Cn);
|
|
1461
|
-
if (r !== null && +r !== t || e.tagName === "BR") {
|
|
1462
|
-
n.add(e);
|
|
1463
|
-
let t = e.previousSibling, r = e.nextSibling;
|
|
1464
|
-
t && t.nodeType === 3 && yn.test(t.textContent) && n.add(t), r && r.nodeType === 3 && yn.test(r.textContent) && n.add(r);
|
|
1465
|
-
}
|
|
1466
|
-
let i = e.childElementCount;
|
|
1467
|
-
for (; i--;) Mn(e.children[i], t, n);
|
|
1468
|
-
return n;
|
|
1469
|
-
}, Nn = (e, t = {}) => {
|
|
1470
|
-
let n = "";
|
|
1471
|
-
t ||= {};
|
|
1472
|
-
let r = z(t.class) ? ` class="${t.class}"` : "", i = J(t.clone, !1), a = J(t.wrap, !1), o = a ? a === !0 ? "clip" : a : i ? "clip" : !1;
|
|
1473
|
-
if (a && (n += `<span${o ? ` style="overflow:${o};"` : ""}>`), n += `<span${r}${i ? " style=\"position:relative;\"" : ""} data-${e}="{i}">`, i) {
|
|
1474
|
-
let e = i === "left" ? "-100%" : i === "right" ? "100%" : "0", t = i === "top" ? "-100%" : i === "bottom" ? "100%" : "0";
|
|
1475
|
-
n += "<span>{value}</span>", n += `<span inert style="position:absolute;top:${t};left:${e};white-space:nowrap;">{value}</span>`;
|
|
1476
|
-
} else n += "{value}";
|
|
1477
|
-
return n += "</span>", a && (n += "</span>"), n;
|
|
1478
|
-
}, Pn = (e, t, n, r, i, a, o, s, c) => {
|
|
1479
|
-
let l = i === bn, u = i === Sn, d = `_${i}_`, f = B(e) ? e(n) : e, p = l ? "block" : "inline-block";
|
|
1480
|
-
En.innerHTML = f.replace(gn, `<i class="${d}"></i>`).replace(_n, `${u ? c : l ? o : s}`);
|
|
1481
|
-
let m = En.content, h = m.firstElementChild, g = m.querySelector(`[data-${i}]`) || h, _ = m.querySelectorAll(`i.${d}`), v = _.length;
|
|
1482
|
-
if (v) {
|
|
1483
|
-
h.style.display = p, g.style.display = p, g.setAttribute(Cn, `${o}`), l || (g.setAttribute("data-word", `${s}`), u && g.setAttribute("data-char", `${c}`));
|
|
1484
|
-
let e = v;
|
|
1485
|
-
for (; e--;) {
|
|
1486
|
-
let t = _[e], r = t.parentElement;
|
|
1487
|
-
r.style.display = p, l ? r.innerHTML = n.innerHTML : r.replaceChild(n.cloneNode(!0), t);
|
|
1488
|
-
}
|
|
1489
|
-
t.push(g), r.appendChild(m);
|
|
1490
|
-
} else console.warn("The expression \"{value}\" is missing from the provided template.");
|
|
1491
|
-
return a && (h.style.outline = `1px dotted ${An[i]}`), h;
|
|
1492
|
-
}, Fn = class {
|
|
1493
|
-
constructor(e, n = {}) {
|
|
1494
|
-
wn ||= hn ? new hn([], { granularity: xn }) : { segment: (e) => {
|
|
1495
|
-
let t = [], n = e.split(vn);
|
|
1496
|
-
for (let e = 0, r = n.length; e < r; e++) {
|
|
1497
|
-
let r = n[e];
|
|
1498
|
-
t.push({
|
|
1499
|
-
segment: r,
|
|
1500
|
-
isWordLike: !yn.test(r)
|
|
1501
|
-
});
|
|
1502
|
-
}
|
|
1503
|
-
return t;
|
|
1504
|
-
} }, Tn ||= hn ? new hn([], { granularity: "grapheme" }) : { segment: (e) => [...e].map((e) => ({ segment: e })) }, !En && t && (En = r.createElement("template")), j.current && j.current.register(this);
|
|
1505
|
-
let { words: i, chars: a, lines: o, accessible: s, includeSpaces: c, debug: l } = n, u = (e = L(e) ? e[0] : e) && e.nodeType ? e : (ht(e) || [])[0], d = o === !0 ? {} : o, f = i === !0 || V(i) ? {} : i, p = a === !0 ? {} : a;
|
|
1506
|
-
this.debug = J(l, !1), this.includeSpaces = J(c, !1), this.accessible = J(s, !0), this.linesOnly = d && !f && !p, this.lineTemplate = re(d) ? Nn(bn, d) : d, this.wordTemplate = re(f) || this.linesOnly ? Nn(xn, f) : f, this.charTemplate = re(p) ? Nn(Sn, p) : p, this.$target = u, this.html = u && u.innerHTML, this.lines = [], this.words = [], this.chars = [], this.effects = [], this.effectsCleanups = [], this.cache = null, this.ready = !1, this.width = 0, this.resizeTimeout = null;
|
|
1507
|
-
let m = () => this.html && (d || f || p) && this.split();
|
|
1508
|
-
this.resizeObserver = new ResizeObserver(() => {
|
|
1509
|
-
clearTimeout(this.resizeTimeout), this.resizeTimeout = setTimeout(() => {
|
|
1510
|
-
let e = u.offsetWidth;
|
|
1511
|
-
e !== this.width && (this.width = e, m());
|
|
1512
|
-
}, 150);
|
|
1513
|
-
}), this.lineTemplate && !this.ready ? r.fonts.ready.then(m) : m(), u ? this.resizeObserver.observe(u) : console.warn("No Text Splitter target found.");
|
|
1514
|
-
}
|
|
1515
|
-
addEffect(e) {
|
|
1516
|
-
if (!B(e)) return console.warn("Effect must return a function."), this;
|
|
1517
|
-
let t = Xt(e);
|
|
1518
|
-
return this.effects.push(t), this.ready && (this.effectsCleanups[this.effects.length - 1] = t(this)), this;
|
|
1519
|
-
}
|
|
1520
|
-
revert() {
|
|
1521
|
-
return clearTimeout(this.resizeTimeout), this.lines.length = this.words.length = this.chars.length = 0, this.resizeObserver.disconnect(), this.effectsCleanups.forEach((e) => B(e) ? e(this) : e.revert && e.revert()), this.$target.innerHTML = this.html, this;
|
|
1522
|
-
}
|
|
1523
|
-
splitNode(e) {
|
|
1524
|
-
let t = this.wordTemplate, n = this.charTemplate, i = this.includeSpaces, a = this.debug, o = e.nodeType;
|
|
1525
|
-
if (o === 3) {
|
|
1526
|
-
let o = e.nodeValue;
|
|
1527
|
-
if (o.trim()) {
|
|
1528
|
-
let s = [], c = this.words, l = this.chars, u = wn.segment(o), d = r.createDocumentFragment(), f = null;
|
|
1529
|
-
for (let e of u) {
|
|
1530
|
-
let t = e.segment, n = Dn(e);
|
|
1531
|
-
if (!f || n && f && Dn(f)) s.push(t);
|
|
1532
|
-
else {
|
|
1533
|
-
let e = s.length - 1, n = s[e];
|
|
1534
|
-
!vn.test(n) && !vn.test(t) ? s[e] += t : s.push(t);
|
|
1535
|
-
}
|
|
1536
|
-
f = e;
|
|
1537
|
-
}
|
|
1538
|
-
for (let e = 0, o = s.length; e < o; e++) {
|
|
1539
|
-
let o = s[e];
|
|
1540
|
-
if (o.trim()) {
|
|
1541
|
-
let u = s[e + 1], f = i && u && !u.trim(), p = o, m = n ? Tn.segment(p) : null, h = n ? r.createDocumentFragment() : r.createTextNode(f ? o + "\xA0" : o);
|
|
1542
|
-
if (n) {
|
|
1543
|
-
let e = [...m];
|
|
1544
|
-
for (let t = 0, i = e.length; t < i; t++) {
|
|
1545
|
-
let o = e[t], s = t === i - 1 && f ? o.segment + "\xA0" : o.segment;
|
|
1546
|
-
Pn(n, l, r.createTextNode(s), h, Sn, a, -1, c.length, l.length);
|
|
1547
|
-
}
|
|
1548
|
-
}
|
|
1549
|
-
t ? Pn(t, c, h, d, xn, a, -1, c.length, l.length) : n ? d.appendChild(h) : d.appendChild(r.createTextNode(o)), f && e++;
|
|
1550
|
-
} else {
|
|
1551
|
-
if (e && i) continue;
|
|
1552
|
-
d.appendChild(r.createTextNode(o));
|
|
1553
|
-
}
|
|
1554
|
-
}
|
|
1555
|
-
e.parentNode.replaceChild(d, e);
|
|
1556
|
-
}
|
|
1557
|
-
} else if (o === 1) {
|
|
1558
|
-
let t = [...e.childNodes];
|
|
1559
|
-
for (let e = 0, n = t.length; e < n; e++) this.splitNode(t[e]);
|
|
1560
|
-
}
|
|
1561
|
-
}
|
|
1562
|
-
split(e = !1) {
|
|
1563
|
-
let t = this.$target, n = !!this.cache && !e, i = this.lineTemplate, a = this.wordTemplate, o = this.charTemplate, s = r.fonts.status !== "loading", c = i && s;
|
|
1564
|
-
this.ready = !i || s, (c || e) && this.effectsCleanups.forEach((e) => B(e) && e(this)), n || (e && (t.innerHTML = this.html, this.words.length = this.chars.length = 0), this.splitNode(t), this.cache = t.innerHTML), c && (n && (t.innerHTML = this.cache), this.lines.length = 0, a && (this.words = kn(t, xn))), o && (c || a) && (this.chars = kn(t, Sn));
|
|
1565
|
-
let l = this.words.length ? this.words : this.chars, u, d = 0;
|
|
1566
|
-
for (let e = 0, t = l.length; e < t; e++) {
|
|
1567
|
-
let t = l[e], { top: n, height: r } = t.getBoundingClientRect();
|
|
1568
|
-
!V(u) && n - u > r * .5 && d++, t.setAttribute(Cn, `${d}`);
|
|
1569
|
-
let i = t.querySelectorAll(`[${Cn}]`), a = i.length;
|
|
1570
|
-
for (; a--;) i[a].setAttribute(Cn, `${d}`);
|
|
1571
|
-
u = n;
|
|
1572
|
-
}
|
|
1573
|
-
if (c) {
|
|
1574
|
-
let e = r.createDocumentFragment(), n = /* @__PURE__ */ new Set(), s = [];
|
|
1575
|
-
for (let e = 0; e < d + 1; e++) {
|
|
1576
|
-
let r = t.cloneNode(!0);
|
|
1577
|
-
Mn(r, e, /* @__PURE__ */ new Set()).forEach((e) => {
|
|
1578
|
-
let t = e.parentNode;
|
|
1579
|
-
t && (e.nodeType === 1 && n.add(t), t.removeChild(e));
|
|
1580
|
-
}), s.push(r);
|
|
1581
|
-
}
|
|
1582
|
-
n.forEach(jn);
|
|
1583
|
-
for (let t = 0, n = s.length; t < n; t++) Pn(i, this.lines, s[t], e, bn, this.debug, t);
|
|
1584
|
-
t.innerHTML = "", t.appendChild(e), a && (this.words = kn(t, xn)), o && (this.chars = kn(t, Sn));
|
|
1585
|
-
}
|
|
1586
|
-
if (this.linesOnly) {
|
|
1587
|
-
let e = this.words, t = e.length;
|
|
1588
|
-
for (; t--;) {
|
|
1589
|
-
let n = e[t];
|
|
1590
|
-
n.replaceWith(n.textContent);
|
|
1591
|
-
}
|
|
1592
|
-
e.length = 0;
|
|
1593
|
-
}
|
|
1594
|
-
if (this.accessible && (c || !n)) {
|
|
1595
|
-
let e = r.createElement("span");
|
|
1596
|
-
e.style.cssText = "position:absolute;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);width:1px;height:1px;white-space:nowrap;", e.innerHTML = this.html, t.insertBefore(e, t.firstChild), this.lines.forEach(On), this.words.forEach(On), this.chars.forEach(On);
|
|
1597
|
-
}
|
|
1598
|
-
return this.width = t.offsetWidth, (c || e) && this.effects.forEach((e, t) => this.effectsCleanups[t] = e(this)), this;
|
|
1599
|
-
}
|
|
1600
|
-
refresh() {
|
|
1601
|
-
this.split(!0);
|
|
1602
|
-
}
|
|
1603
|
-
}, In = (e, t) => new Fn(e, t), Ln = [
|
|
1604
|
-
"linear",
|
|
1605
|
-
"outQuad",
|
|
1606
|
-
"outCubic",
|
|
1607
|
-
"outExpo",
|
|
1608
|
-
"inOutSine",
|
|
1609
|
-
"outBack",
|
|
1610
|
-
"outElastic",
|
|
1611
|
-
"outBounce"
|
|
1612
|
-
], Rn = e({
|
|
1613
|
-
duration: 600,
|
|
1614
|
-
ease: "outExpo",
|
|
1615
|
-
reducedMotion: "reduce"
|
|
1616
|
-
});
|
|
1617
|
-
function zn(e) {
|
|
1618
|
-
Object.assign(Rn, e);
|
|
1619
|
-
}
|
|
1620
|
-
var Bn = {
|
|
1621
|
-
fade: {
|
|
1622
|
-
category: "enter",
|
|
1623
|
-
params: { opacity: { from: 0 } }
|
|
1624
|
-
},
|
|
1625
|
-
"slide-up": {
|
|
1626
|
-
category: "enter",
|
|
1627
|
-
params: {
|
|
1628
|
-
opacity: { from: 0 },
|
|
1629
|
-
translateY: { from: 32 }
|
|
1630
|
-
}
|
|
1631
|
-
},
|
|
1632
|
-
"slide-down": {
|
|
1633
|
-
category: "enter",
|
|
1634
|
-
params: {
|
|
1635
|
-
opacity: { from: 0 },
|
|
1636
|
-
translateY: { from: -32 }
|
|
1637
|
-
}
|
|
1638
|
-
},
|
|
1639
|
-
"slide-left": {
|
|
1640
|
-
category: "enter",
|
|
1641
|
-
params: {
|
|
1642
|
-
opacity: { from: 0 },
|
|
1643
|
-
translateX: { from: 32 }
|
|
1644
|
-
}
|
|
1645
|
-
},
|
|
1646
|
-
"slide-right": {
|
|
1647
|
-
category: "enter",
|
|
1648
|
-
params: {
|
|
1649
|
-
opacity: { from: 0 },
|
|
1650
|
-
translateX: { from: -32 }
|
|
1651
|
-
}
|
|
1652
|
-
},
|
|
1653
|
-
zoom: {
|
|
1654
|
-
category: "enter",
|
|
1655
|
-
params: {
|
|
1656
|
-
opacity: { from: 0 },
|
|
1657
|
-
scale: { from: .8 }
|
|
1658
|
-
}
|
|
1659
|
-
},
|
|
1660
|
-
blur: {
|
|
1661
|
-
category: "enter",
|
|
1662
|
-
params: {
|
|
1663
|
-
filter: {
|
|
1664
|
-
from: "blur(8px)",
|
|
1665
|
-
to: "blur(0px)"
|
|
1666
|
-
},
|
|
1667
|
-
opacity: { from: 0 }
|
|
1668
|
-
}
|
|
1669
|
-
},
|
|
1670
|
-
grow: {
|
|
1671
|
-
category: "emphasis",
|
|
1672
|
-
params: { scale: 1.05 }
|
|
1673
|
-
},
|
|
1674
|
-
shrink: {
|
|
1675
|
-
category: "emphasis",
|
|
1676
|
-
params: { scale: .95 }
|
|
1677
|
-
},
|
|
1678
|
-
lift: {
|
|
1679
|
-
category: "emphasis",
|
|
1680
|
-
params: { translateY: -6 }
|
|
1681
|
-
},
|
|
1682
|
-
tilt: {
|
|
1683
|
-
category: "emphasis",
|
|
1684
|
-
params: { rotate: 3 }
|
|
1685
|
-
},
|
|
1686
|
-
pulse: {
|
|
1687
|
-
alternate: !0,
|
|
1688
|
-
category: "ambient",
|
|
1689
|
-
ease: "inOutSine",
|
|
1690
|
-
loop: !0,
|
|
1691
|
-
params: { scale: 1.06 }
|
|
1692
|
-
},
|
|
1693
|
-
float: {
|
|
1694
|
-
alternate: !0,
|
|
1695
|
-
category: "ambient",
|
|
1696
|
-
ease: "inOutSine",
|
|
1697
|
-
loop: !0,
|
|
1698
|
-
params: { translateY: -8 }
|
|
1699
|
-
},
|
|
1700
|
-
spin: {
|
|
1701
|
-
category: "ambient",
|
|
1702
|
-
ease: "linear",
|
|
1703
|
-
loop: !0,
|
|
1704
|
-
params: { rotate: 360 }
|
|
1705
|
-
},
|
|
1706
|
-
shake: {
|
|
1707
|
-
category: "ambient",
|
|
1708
|
-
ease: "linear",
|
|
1709
|
-
loop: !0,
|
|
1710
|
-
params: { translateX: [
|
|
1711
|
-
0,
|
|
1712
|
-
-6,
|
|
1713
|
-
6,
|
|
1714
|
-
-6,
|
|
1715
|
-
6,
|
|
1716
|
-
0
|
|
1717
|
-
] }
|
|
1718
|
-
},
|
|
1719
|
-
blink: {
|
|
1720
|
-
alternate: !0,
|
|
1721
|
-
category: "ambient",
|
|
1722
|
-
ease: "inOutSine",
|
|
1723
|
-
loop: !0,
|
|
1724
|
-
params: { opacity: .4 }
|
|
1725
|
-
},
|
|
1726
|
-
wiggle: {
|
|
1727
|
-
alternate: !0,
|
|
1728
|
-
category: "ambient",
|
|
1729
|
-
ease: "inOutSine",
|
|
1730
|
-
loop: !0,
|
|
1731
|
-
params: { rotate: {
|
|
1732
|
-
from: -3,
|
|
1733
|
-
to: 3
|
|
1734
|
-
} }
|
|
1735
|
-
}
|
|
1736
|
-
}, Vn = {
|
|
1737
|
-
blur: 0,
|
|
1738
|
-
opacity: 1,
|
|
1739
|
-
rotate: 0,
|
|
1740
|
-
scale: 1,
|
|
1741
|
-
x: 0,
|
|
1742
|
-
y: 0
|
|
1743
|
-
}, Hn = /* @__PURE__ */ new WeakMap(), Un = /* @__PURE__ */ new WeakMap();
|
|
1744
|
-
function Wn(e) {
|
|
1745
|
-
let t = {};
|
|
1746
|
-
for (let n of Object.keys(Vn)) {
|
|
1747
|
-
let r = e.from?.[n] ?? Vn[n], i = e.to?.[n] ?? Vn[n];
|
|
1748
|
-
if (r !== i) switch (n) {
|
|
1749
|
-
case "blur":
|
|
1750
|
-
t.filter = {
|
|
1751
|
-
from: `blur(${r}px)`,
|
|
1752
|
-
to: `blur(${i}px)`
|
|
1753
|
-
};
|
|
1754
|
-
break;
|
|
1755
|
-
case "x":
|
|
1756
|
-
t.translateX = {
|
|
1757
|
-
from: r,
|
|
1758
|
-
to: i
|
|
1759
|
-
};
|
|
1760
|
-
break;
|
|
1761
|
-
case "y":
|
|
1762
|
-
t.translateY = {
|
|
1763
|
-
from: r,
|
|
1764
|
-
to: i
|
|
1765
|
-
};
|
|
1766
|
-
break;
|
|
1767
|
-
default: t[n] = {
|
|
1768
|
-
from: r,
|
|
1769
|
-
to: i
|
|
1770
|
-
};
|
|
1771
|
-
}
|
|
1772
|
-
}
|
|
1773
|
-
return {
|
|
1774
|
-
category: "enter",
|
|
1775
|
-
params: t
|
|
1776
|
-
};
|
|
1777
|
-
}
|
|
1778
|
-
function Gn(e) {
|
|
1779
|
-
return e.preset === "custom" ? Wn(e) : Bn[e.preset];
|
|
1780
|
-
}
|
|
1781
|
-
function Kn() {
|
|
1782
|
-
return Rn.reducedMotion === "reduce" && typeof matchMedia < "u" && matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
1783
|
-
}
|
|
1784
|
-
function qn(e) {
|
|
1785
|
-
let { state: t, ...n } = e;
|
|
1786
|
-
return JSON.stringify(n);
|
|
1787
|
-
}
|
|
1788
|
-
function Jn({ options: e, preset: t, reduced: n }) {
|
|
1789
|
-
return n ? !1 : e.loop === void 0 ? t.loop ?? !1 : e.loop < 0 || e.loop;
|
|
1790
|
-
}
|
|
1791
|
-
function Yn({ options: e, reduced: t }) {
|
|
1792
|
-
return t ? void 0 : e.stagger ?? (e.split ? 30 : void 0);
|
|
1793
|
-
}
|
|
1794
|
-
function Xn(e, t = e.options.delay ?? 0) {
|
|
1795
|
-
if (e.reduced) return 0;
|
|
1796
|
-
let n = Yn(e);
|
|
1797
|
-
return n === void 0 ? t : mn(n, {
|
|
1798
|
-
from: e.options.staggerFrom ?? "first",
|
|
1799
|
-
start: t
|
|
1800
|
-
});
|
|
1801
|
-
}
|
|
1802
|
-
function Zn(e, t, n, r = e.options.delay ?? 0) {
|
|
1803
|
-
if (e.reduced) return 0;
|
|
1804
|
-
let i = Yn(e) ?? 0;
|
|
1805
|
-
switch (e.options.staggerFrom) {
|
|
1806
|
-
case "last": return r + (n - 1 - t) * i;
|
|
1807
|
-
case "center": return r + Math.abs(t - (n - 1) / 2) * i;
|
|
1808
|
-
case "random": return r + Math.random() * (n - 1) * i;
|
|
1809
|
-
default: return r + t * i;
|
|
1810
|
-
}
|
|
1811
|
-
}
|
|
1812
|
-
function Qn(e) {
|
|
1813
|
-
for (let t = e.parentElement; t; t = t.parentElement) if (/auto|scroll|overlay/.test(getComputedStyle(t).overflowY) && t.scrollHeight > t.clientHeight) return t;
|
|
1814
|
-
}
|
|
1815
|
-
function $n({ controller: e, element: t, trigger: n }) {
|
|
1816
|
-
switch (n) {
|
|
1817
|
-
case "mount": return !0;
|
|
1818
|
-
case "visible": return e.revealed;
|
|
1819
|
-
case "scroll": return ln({
|
|
1820
|
-
container: Qn(t),
|
|
1821
|
-
sync: !0,
|
|
1822
|
-
target: t
|
|
1823
|
-
});
|
|
1824
|
-
default: return !1;
|
|
1825
|
-
}
|
|
1826
|
-
}
|
|
1827
|
-
function er(e) {
|
|
1828
|
-
let t = new IntersectionObserver((n) => {
|
|
1829
|
-
n.some((e) => e.isIntersecting) && (t.disconnect(), e.controller.revealed = !0, gr(e.controller));
|
|
1830
|
-
});
|
|
1831
|
-
t.observe(e.element), e.controller.cleanups.push(() => t.disconnect());
|
|
1832
|
-
}
|
|
1833
|
-
function tr(e) {
|
|
1834
|
-
return e instanceof HTMLElement && ![
|
|
1835
|
-
"LINK",
|
|
1836
|
-
"META",
|
|
1837
|
-
"SCRIPT",
|
|
1838
|
-
"STYLE",
|
|
1839
|
-
"TEMPLATE"
|
|
1840
|
-
].includes(e.tagName);
|
|
1841
|
-
}
|
|
1842
|
-
function nr(e) {
|
|
1843
|
-
return [...e.children].filter(tr);
|
|
1844
|
-
}
|
|
1845
|
-
function rr(e) {
|
|
1846
|
-
return e.sort((e, t) => e.element.compareDocumentPosition(t.element) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1);
|
|
1847
|
-
}
|
|
1848
|
-
function ir({ controller: e, element: t }) {
|
|
1849
|
-
return Hn.get(t) === e;
|
|
1850
|
-
}
|
|
1851
|
-
function ar(e, t, n, r = $n(e)) {
|
|
1852
|
-
let { controller: i, options: a, preset: o, reduced: s } = e, c = Wt(t, {
|
|
1853
|
-
...o.params,
|
|
1854
|
-
alternate: a.alternate ?? o.alternate ?? !1,
|
|
1855
|
-
autoplay: r,
|
|
1856
|
-
delay: n,
|
|
1857
|
-
duration: s ? 0 : a.duration ?? Rn.duration,
|
|
1858
|
-
ease: a.ease ?? o.ease ?? Rn.ease,
|
|
1859
|
-
loop: Jn(e)
|
|
1860
|
-
});
|
|
1861
|
-
return e.trigger === "visible" && !r && c.seek(0), i.animations.push(c), c;
|
|
1862
|
-
}
|
|
1863
|
-
function or({ controller: e, element: t }, n) {
|
|
1864
|
-
let r = new MutationObserver((e) => {
|
|
1865
|
-
let t = e.flatMap((e) => [...e.addedNodes]).filter(tr);
|
|
1866
|
-
(t.length || e.some((e) => [...e.removedNodes].some(tr))) && n(t);
|
|
1867
|
-
});
|
|
1868
|
-
r.observe(t, { childList: !0 }), e.cleanups.push(() => r.disconnect());
|
|
1869
|
-
}
|
|
1870
|
-
function sr(e) {
|
|
1871
|
-
ar(e, nr(e.element), Xn(e)), or(e, (t) => {
|
|
1872
|
-
t.length && ar(e, t, Xn(e, 0));
|
|
1873
|
-
}), yr(e);
|
|
1874
|
-
}
|
|
1875
|
-
function cr(e) {
|
|
1876
|
-
let t = new Map(e.map((e) => [e.element, e])), n = new IntersectionObserver((e) => {
|
|
1877
|
-
let r = rr(e.filter((e) => e.isIntersecting).map((e) => t.get(e.target)).filter((e) => !!e && ir(e)));
|
|
1878
|
-
r.forEach((e, t) => {
|
|
1879
|
-
n.unobserve(e.element);
|
|
1880
|
-
let i = setTimeout(() => gr(e.controller), Zn(e, t, r.length, 0));
|
|
1881
|
-
e.controller.cleanups.push(() => clearTimeout(i));
|
|
1882
|
-
});
|
|
1883
|
-
});
|
|
1884
|
-
for (let t of e) ar(t, t.element, t.options.delay ?? 0, !1), n.observe(t.element), t.controller.cleanups.push(() => n.unobserve(t.element));
|
|
1885
|
-
}
|
|
1886
|
-
var lr = /* @__PURE__ */ new WeakMap(), ur = 0, dr = /* @__PURE__ */ new Map();
|
|
1887
|
-
function fr(e) {
|
|
1888
|
-
return e ? (lr.has(e) || lr.set(e, ur++), String(lr.get(e))) : "none";
|
|
1889
|
-
}
|
|
1890
|
-
function pr(e) {
|
|
1891
|
-
dr.size || queueMicrotask(mr);
|
|
1892
|
-
let t = `${fr(e.element.parentElement)}/${e.controller.key}`;
|
|
1893
|
-
dr.set(t, [...dr.get(t) ?? [], e]);
|
|
1894
|
-
}
|
|
1895
|
-
function mr() {
|
|
1896
|
-
let e = [...dr.values()];
|
|
1897
|
-
dr = /* @__PURE__ */ new Map();
|
|
1898
|
-
for (let t of e) {
|
|
1899
|
-
let e = rr(t.filter(ir));
|
|
1900
|
-
e.length === 1 ? sr(e[0]) : e[0]?.trigger === "visible" ? cr(e) : e.forEach((t, n) => ar(t, t.element, Zn(t, n, e.length)));
|
|
1901
|
-
}
|
|
1902
|
-
}
|
|
1903
|
-
function hr({ controller: e, element: t }, n, r) {
|
|
1904
|
-
for (let i of n) t.addEventListener(i, r), e.cleanups.push(() => t.removeEventListener(i, r));
|
|
1905
|
-
}
|
|
1906
|
-
function gr(e) {
|
|
1907
|
-
e.animations.forEach((e) => e.play());
|
|
1908
|
-
}
|
|
1909
|
-
function _r(e) {
|
|
1910
|
-
e.animations.forEach((t) => e.looping ? t.pause().seek(0) : t.reverse());
|
|
1911
|
-
}
|
|
1912
|
-
function vr(e, t, n) {
|
|
1913
|
-
if (e.state !== t) {
|
|
1914
|
-
if (e.state = t, n && !e.looping) {
|
|
1915
|
-
e.animations.forEach((e) => e.seek(t ? e.duration : 0));
|
|
1916
|
-
return;
|
|
1917
|
-
}
|
|
1918
|
-
t ? gr(e) : _r(e);
|
|
1919
|
-
}
|
|
1920
|
-
}
|
|
1921
|
-
function yr(e) {
|
|
1922
|
-
let { controller: t, options: n, trigger: r } = e;
|
|
1923
|
-
switch (r) {
|
|
1924
|
-
case "hover":
|
|
1925
|
-
hr(e, ["pointerenter"], () => gr(t)), hr(e, ["pointerleave"], () => _r(t));
|
|
1926
|
-
break;
|
|
1927
|
-
case "press":
|
|
1928
|
-
hr(e, ["pointerdown"], () => gr(t)), hr(e, [
|
|
1929
|
-
"pointerup",
|
|
1930
|
-
"pointerleave",
|
|
1931
|
-
"pointercancel"
|
|
1932
|
-
], () => _r(t));
|
|
1933
|
-
break;
|
|
1934
|
-
case "focus":
|
|
1935
|
-
hr(e, ["focusin"], () => gr(t)), hr(e, ["focusout"], () => _r(t));
|
|
1936
|
-
break;
|
|
1937
|
-
case "state":
|
|
1938
|
-
vr(t, !!n.state, !0);
|
|
1939
|
-
return;
|
|
1940
|
-
case "visible":
|
|
1941
|
-
er(e);
|
|
1942
|
-
return;
|
|
1943
|
-
default: return;
|
|
1944
|
-
}
|
|
1945
|
-
t.animations.forEach((e) => e.seek(0));
|
|
1946
|
-
}
|
|
1947
|
-
function br(e, t) {
|
|
1948
|
-
xr(e);
|
|
1949
|
-
let n = {
|
|
1950
|
-
animations: [],
|
|
1951
|
-
cleanups: [],
|
|
1952
|
-
key: qn(t),
|
|
1953
|
-
looping: !1,
|
|
1954
|
-
revealed: !1
|
|
1955
|
-
};
|
|
1956
|
-
Hn.set(e, n);
|
|
1957
|
-
let r = Gn(t), i = Kn();
|
|
1958
|
-
if (!r || i && (r.loop || t.trigger === "scroll")) return;
|
|
1959
|
-
let a = {
|
|
1960
|
-
controller: n,
|
|
1961
|
-
element: e,
|
|
1962
|
-
options: t,
|
|
1963
|
-
preset: r,
|
|
1964
|
-
reduced: i,
|
|
1965
|
-
trigger: i && t.trigger === "visible" ? "mount" : t.trigger
|
|
1966
|
-
};
|
|
1967
|
-
if (n.looping = Jn(a) === !0, t.split) n.splitter = In(e, { [t.split]: !0 }), ar(a, n.splitter[t.split], Xn(a));
|
|
1968
|
-
else if (t.stagger === void 0) ar(a, e, Xn(a));
|
|
1969
|
-
else if (a.trigger === "mount" || a.trigger === "visible") {
|
|
1970
|
-
pr(a);
|
|
1971
|
-
return;
|
|
1972
|
-
} else ar(a, nr(e), Xn(a)), or(a, () => br(e, t));
|
|
1973
|
-
yr(a);
|
|
1974
|
-
}
|
|
1975
|
-
function xr(e) {
|
|
1976
|
-
let t = Hn.get(e);
|
|
1977
|
-
t && (t.cleanups.forEach((e) => e()), t.animations.forEach((e) => e.revert()), t.splitter?.revert(), Hn.delete(e));
|
|
1978
|
-
}
|
|
1979
|
-
function Sr(e) {
|
|
1980
|
-
for (let t of e) {
|
|
1981
|
-
let e = Un.get(t);
|
|
1982
|
-
e && br(t, e);
|
|
1983
|
-
}
|
|
1984
|
-
}
|
|
1985
|
-
var Cr = {
|
|
1986
|
-
mounted(e, { value: t }) {
|
|
1987
|
-
Un.set(e, t), br(e, t);
|
|
1988
|
-
},
|
|
1989
|
-
updated(e, { value: t }) {
|
|
1990
|
-
Un.set(e, t);
|
|
1991
|
-
let n = Hn.get(e);
|
|
1992
|
-
if (!n || n.key !== qn(t)) {
|
|
1993
|
-
br(e, t);
|
|
1994
|
-
return;
|
|
1995
|
-
}
|
|
1996
|
-
t.trigger === "state" && vr(n, !!t.state, !1);
|
|
1997
|
-
},
|
|
1998
|
-
unmounted(e) {
|
|
1999
|
-
Un.delete(e), xr(e);
|
|
2000
|
-
}
|
|
2001
|
-
};
|
|
2002
|
-
//#endregion
|
|
2003
|
-
export { Sr as a, Bn as i, Ln as n, Cr as o, Rn as r, Dt as s, zn as t };
|