lumina-slides 8.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +133 -0
- package/dist/api-docs.json +4469 -0
- package/dist/deck.json +93 -0
- package/dist/layout-features.json +72 -0
- package/dist/layout-half.json +52 -0
- package/dist/layout-statement.json +33 -0
- package/dist/layout-steps.json +37 -0
- package/dist/layout-timeline.json +37 -0
- package/dist/lumina-slides.js +2776 -0
- package/dist/lumina-slides.umd.cjs +15 -0
- package/dist/style.css +1 -0
- package/package.json +54 -0
|
@@ -0,0 +1,2776 @@
|
|
|
1
|
+
var an = Object.defineProperty;
|
|
2
|
+
var on = (o, t, e) => t in o ? an(o, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[t] = e;
|
|
3
|
+
var Ae = (o, t, e) => on(o, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
+
import { reactive as ln, readonly as un, inject as Ye, computed as pt, onMounted as nr, onUnmounted as sr, defineComponent as Kt, ref as ar, createElementBlock as B, openBlock as A, createElementVNode as P, createCommentVNode as mt, createVNode as Fi, normalizeStyle as fn, Transition as Li, withCtx as Gt, toDisplayString as I, unref as Tt, createBlock as ue, resolveDynamicComponent as hn, normalizeClass as Pt, nextTick as cn, renderSlot as $i, Fragment as qe, renderList as Xe, createTextVNode as dn, createApp as _n } from "vue";
|
|
5
|
+
const Oe = Symbol("LuminaStore"), pn = {
|
|
6
|
+
loop: !1,
|
|
7
|
+
navigation: !0,
|
|
8
|
+
keyboard: !0,
|
|
9
|
+
touch: !0,
|
|
10
|
+
debug: !1,
|
|
11
|
+
theme: "default",
|
|
12
|
+
ui: {
|
|
13
|
+
visible: !0,
|
|
14
|
+
showProgressBar: !0,
|
|
15
|
+
showSlideCount: !0,
|
|
16
|
+
showControls: !0
|
|
17
|
+
},
|
|
18
|
+
keys: {
|
|
19
|
+
next: ["ArrowRight", " ", "Enter"],
|
|
20
|
+
prev: ["ArrowLeft", "Backspace"]
|
|
21
|
+
},
|
|
22
|
+
animation: {
|
|
23
|
+
enabled: !0,
|
|
24
|
+
type: "cascade",
|
|
25
|
+
durationIn: 1,
|
|
26
|
+
durationOut: 0.5,
|
|
27
|
+
stagger: 0.1,
|
|
28
|
+
ease: "power3.out"
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
function mn(o = {}) {
|
|
32
|
+
const t = ln({
|
|
33
|
+
deck: null,
|
|
34
|
+
currentIndex: 0,
|
|
35
|
+
options: { ...pn, ...o },
|
|
36
|
+
isReady: !1
|
|
37
|
+
}), e = () => !t.deck || t.deck.slides.length === 0 ? null : t.deck.slides[t.currentIndex] || null, i = () => t.deck ? t.options.loop ? !0 : t.currentIndex < t.deck.slides.length - 1 : !1, r = () => t.deck ? t.options.loop ? !0 : t.currentIndex > 0 : !1, n = () => !t.deck || t.deck.slides.length <= 1 ? 0 : t.currentIndex / (t.deck.slides.length - 1);
|
|
38
|
+
function s(h) {
|
|
39
|
+
t.options = { ...t.options, ...h }, h.theme && (h.theme, t.options.theme = h.theme), h.ui && (t.options.ui = { ...t.options.ui, ...h.ui }), h.keys && (t.options.keys = { ...t.options.keys, ...h.keys }), h.animation && (t.options.animation = { ...t.options.animation, ...h.animation });
|
|
40
|
+
}
|
|
41
|
+
function a(h) {
|
|
42
|
+
if (!h || !Array.isArray(h.slides)) {
|
|
43
|
+
console.error("[LuminaStore] Invalid deck format");
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
t.deck = h, t.currentIndex = 0, t.isReady = !0;
|
|
47
|
+
}
|
|
48
|
+
function l() {
|
|
49
|
+
var d;
|
|
50
|
+
if (!i()) return;
|
|
51
|
+
const h = ((d = t.deck) == null ? void 0 : d.slides.length) || 0;
|
|
52
|
+
t.options.loop ? t.currentIndex = (t.currentIndex + 1) % h : t.currentIndex++;
|
|
53
|
+
}
|
|
54
|
+
function u() {
|
|
55
|
+
var d;
|
|
56
|
+
if (!r()) return;
|
|
57
|
+
const h = ((d = t.deck) == null ? void 0 : d.slides.length) || 0;
|
|
58
|
+
t.options.loop ? t.currentIndex = (t.currentIndex - 1 + h) % h : t.currentIndex--;
|
|
59
|
+
}
|
|
60
|
+
function f(h) {
|
|
61
|
+
t.deck && h >= 0 && h < t.deck.slides.length && (t.currentIndex = h);
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
state: un(t),
|
|
65
|
+
currentSlide: e,
|
|
66
|
+
hasNext: i,
|
|
67
|
+
hasPrev: r,
|
|
68
|
+
progress: n,
|
|
69
|
+
setOptions: s,
|
|
70
|
+
loadDeck: a,
|
|
71
|
+
next: l,
|
|
72
|
+
prev: u,
|
|
73
|
+
goto: f
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
function gn() {
|
|
77
|
+
const o = Ye(Oe);
|
|
78
|
+
if (!o)
|
|
79
|
+
throw new Error("Lumina: Component must be used within a Lumina instance.");
|
|
80
|
+
return {
|
|
81
|
+
// State
|
|
82
|
+
slide: pt(() => o.currentSlide()),
|
|
83
|
+
index: pt(() => o.state.currentIndex),
|
|
84
|
+
total: pt(() => {
|
|
85
|
+
var t;
|
|
86
|
+
return ((t = o.state.deck) == null ? void 0 : t.slides.length) || 0;
|
|
87
|
+
}),
|
|
88
|
+
// Actions
|
|
89
|
+
next: o.next,
|
|
90
|
+
prev: o.prev,
|
|
91
|
+
goto: o.goto,
|
|
92
|
+
options: o.state.options
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
function yn() {
|
|
96
|
+
const o = Ye(Oe);
|
|
97
|
+
if (!o) return;
|
|
98
|
+
let t = 0;
|
|
99
|
+
const e = 300, i = (r) => {
|
|
100
|
+
var u, f;
|
|
101
|
+
const { options: n } = o.state;
|
|
102
|
+
if (!n.keyboard || !n.navigation) return;
|
|
103
|
+
const s = Date.now();
|
|
104
|
+
if (s - t < e) return;
|
|
105
|
+
const a = ((u = n.keys) == null ? void 0 : u.next) || [], l = ((f = n.keys) == null ? void 0 : f.prev) || [];
|
|
106
|
+
a.includes(r.key) ? (o.next(), t = s) : l.includes(r.key) && (o.prev(), t = s);
|
|
107
|
+
};
|
|
108
|
+
nr(() => {
|
|
109
|
+
window.addEventListener("keydown", i);
|
|
110
|
+
}), sr(() => {
|
|
111
|
+
window.removeEventListener("keydown", i);
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
class vn {
|
|
115
|
+
constructor() {
|
|
116
|
+
Ae(this, "handlers", /* @__PURE__ */ new Map());
|
|
117
|
+
}
|
|
118
|
+
on(t, e) {
|
|
119
|
+
this.handlers.has(t) || this.handlers.set(t, /* @__PURE__ */ new Set()), this.handlers.get(t).add(e);
|
|
120
|
+
}
|
|
121
|
+
off(t, e) {
|
|
122
|
+
const i = this.handlers.get(t);
|
|
123
|
+
i && i.delete(e);
|
|
124
|
+
}
|
|
125
|
+
emit(t, e) {
|
|
126
|
+
const i = this.handlers.get(t);
|
|
127
|
+
i && i.forEach((r) => {
|
|
128
|
+
try {
|
|
129
|
+
r(e);
|
|
130
|
+
} catch (n) {
|
|
131
|
+
console.error(`[LuminaBus] Error in handler for event "${t}":`, n);
|
|
132
|
+
}
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
clear() {
|
|
136
|
+
this.handlers.clear();
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
const _e = new vn();
|
|
140
|
+
function kt(o) {
|
|
141
|
+
if (o === void 0)
|
|
142
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
143
|
+
return o;
|
|
144
|
+
}
|
|
145
|
+
function or(o, t) {
|
|
146
|
+
o.prototype = Object.create(t.prototype), o.prototype.constructor = o, o.__proto__ = t;
|
|
147
|
+
}
|
|
148
|
+
/*!
|
|
149
|
+
* GSAP 3.14.2
|
|
150
|
+
* https://gsap.com
|
|
151
|
+
*
|
|
152
|
+
* @license Copyright 2008-2025, GreenSock. All rights reserved.
|
|
153
|
+
* Subject to the terms at https://gsap.com/standard-license
|
|
154
|
+
* @author: Jack Doyle, jack@greensock.com
|
|
155
|
+
*/
|
|
156
|
+
var lt = {
|
|
157
|
+
autoSleep: 120,
|
|
158
|
+
force3D: "auto",
|
|
159
|
+
nullTargetWarn: 1,
|
|
160
|
+
units: {
|
|
161
|
+
lineHeight: ""
|
|
162
|
+
}
|
|
163
|
+
}, re = {
|
|
164
|
+
duration: 0.5,
|
|
165
|
+
overwrite: !1,
|
|
166
|
+
delay: 0
|
|
167
|
+
}, gi, K, F, ct = 1e8, R = 1 / ct, ri = Math.PI * 2, xn = ri / 4, bn = 0, lr = Math.sqrt, wn = Math.cos, Tn = Math.sin, W = function(t) {
|
|
168
|
+
return typeof t == "string";
|
|
169
|
+
}, V = function(t) {
|
|
170
|
+
return typeof t == "function";
|
|
171
|
+
}, Ot = function(t) {
|
|
172
|
+
return typeof t == "number";
|
|
173
|
+
}, yi = function(t) {
|
|
174
|
+
return typeof t > "u";
|
|
175
|
+
}, bt = function(t) {
|
|
176
|
+
return typeof t == "object";
|
|
177
|
+
}, J = function(t) {
|
|
178
|
+
return t !== !1;
|
|
179
|
+
}, vi = function() {
|
|
180
|
+
return typeof window < "u";
|
|
181
|
+
}, Ee = function(t) {
|
|
182
|
+
return V(t) || W(t);
|
|
183
|
+
}, ur = typeof ArrayBuffer == "function" && ArrayBuffer.isView || function() {
|
|
184
|
+
}, Q = Array.isArray, kn = /random\([^)]+\)/g, Sn = /,\s*/g, Ni = /(?:-?\.?\d|\.)+/gi, fr = /[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g, Zt = /[-+=.]*\d+[.e-]*\d*[a-z%]*/g, Ke = /[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi, hr = /[+-]=-?[.\d]+/, Pn = /[^,'"\[\]\s]+/gi, On = /^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i, $, yt, ni, xi, ut = {}, Fe = {}, cr, dr = function(t) {
|
|
185
|
+
return (Fe = ne(t, ut)) && rt;
|
|
186
|
+
}, bi = function(t, e) {
|
|
187
|
+
return console.warn("Invalid property", t, "set to", e, "Missing plugin? gsap.registerPlugin()");
|
|
188
|
+
}, xe = function(t, e) {
|
|
189
|
+
return !e && console.warn(t);
|
|
190
|
+
}, _r = function(t, e) {
|
|
191
|
+
return t && (ut[t] = e) && Fe && (Fe[t] = e) || ut;
|
|
192
|
+
}, be = function() {
|
|
193
|
+
return 0;
|
|
194
|
+
}, Cn = {
|
|
195
|
+
suppressEvents: !0,
|
|
196
|
+
isStart: !0,
|
|
197
|
+
kill: !1
|
|
198
|
+
}, Re = {
|
|
199
|
+
suppressEvents: !0,
|
|
200
|
+
kill: !1
|
|
201
|
+
}, Mn = {
|
|
202
|
+
suppressEvents: !0
|
|
203
|
+
}, wi = {}, Et = [], si = {}, pr, nt = {}, He = {}, Bi = 30, ze = [], Ti = "", ki = function(t) {
|
|
204
|
+
var e = t[0], i, r;
|
|
205
|
+
if (bt(e) || V(e) || (t = [t]), !(i = (e._gsap || {}).harness)) {
|
|
206
|
+
for (r = ze.length; r-- && !ze[r].targetTest(e); )
|
|
207
|
+
;
|
|
208
|
+
i = ze[r];
|
|
209
|
+
}
|
|
210
|
+
for (r = t.length; r--; )
|
|
211
|
+
t[r] && (t[r]._gsap || (t[r]._gsap = new Nr(t[r], i))) || t.splice(r, 1);
|
|
212
|
+
return t;
|
|
213
|
+
}, qt = function(t) {
|
|
214
|
+
return t._gsap || ki(dt(t))[0]._gsap;
|
|
215
|
+
}, mr = function(t, e, i) {
|
|
216
|
+
return (i = t[e]) && V(i) ? t[e]() : yi(i) && t.getAttribute && t.getAttribute(e) || i;
|
|
217
|
+
}, tt = function(t, e) {
|
|
218
|
+
return (t = t.split(",")).forEach(e) || t;
|
|
219
|
+
}, U = function(t) {
|
|
220
|
+
return Math.round(t * 1e5) / 1e5 || 0;
|
|
221
|
+
}, L = function(t) {
|
|
222
|
+
return Math.round(t * 1e7) / 1e7 || 0;
|
|
223
|
+
}, te = function(t, e) {
|
|
224
|
+
var i = e.charAt(0), r = parseFloat(e.substr(2));
|
|
225
|
+
return t = parseFloat(t), i === "+" ? t + r : i === "-" ? t - r : i === "*" ? t * r : t / r;
|
|
226
|
+
}, Dn = function(t, e) {
|
|
227
|
+
for (var i = e.length, r = 0; t.indexOf(e[r]) < 0 && ++r < i; )
|
|
228
|
+
;
|
|
229
|
+
return r < i;
|
|
230
|
+
}, Le = function() {
|
|
231
|
+
var t = Et.length, e = Et.slice(0), i, r;
|
|
232
|
+
for (si = {}, Et.length = 0, i = 0; i < t; i++)
|
|
233
|
+
r = e[i], r && r._lazy && (r.render(r._lazy[0], r._lazy[1], !0)._lazy = 0);
|
|
234
|
+
}, Si = function(t) {
|
|
235
|
+
return !!(t._initted || t._startAt || t.add);
|
|
236
|
+
}, gr = function(t, e, i, r) {
|
|
237
|
+
Et.length && !K && Le(), t.render(e, i, !!(K && e < 0 && Si(t))), Et.length && !K && Le();
|
|
238
|
+
}, yr = function(t) {
|
|
239
|
+
var e = parseFloat(t);
|
|
240
|
+
return (e || e === 0) && (t + "").match(Pn).length < 2 ? e : W(t) ? t.trim() : t;
|
|
241
|
+
}, vr = function(t) {
|
|
242
|
+
return t;
|
|
243
|
+
}, ft = function(t, e) {
|
|
244
|
+
for (var i in e)
|
|
245
|
+
i in t || (t[i] = e[i]);
|
|
246
|
+
return t;
|
|
247
|
+
}, An = function(t) {
|
|
248
|
+
return function(e, i) {
|
|
249
|
+
for (var r in i)
|
|
250
|
+
r in e || r === "duration" && t || r === "ease" || (e[r] = i[r]);
|
|
251
|
+
};
|
|
252
|
+
}, ne = function(t, e) {
|
|
253
|
+
for (var i in e)
|
|
254
|
+
t[i] = e[i];
|
|
255
|
+
return t;
|
|
256
|
+
}, Vi = function o(t, e) {
|
|
257
|
+
for (var i in e)
|
|
258
|
+
i !== "__proto__" && i !== "constructor" && i !== "prototype" && (t[i] = bt(e[i]) ? o(t[i] || (t[i] = {}), e[i]) : e[i]);
|
|
259
|
+
return t;
|
|
260
|
+
}, $e = function(t, e) {
|
|
261
|
+
var i = {}, r;
|
|
262
|
+
for (r in t)
|
|
263
|
+
r in e || (i[r] = t[r]);
|
|
264
|
+
return i;
|
|
265
|
+
}, ge = function(t) {
|
|
266
|
+
var e = t.parent || $, i = t.keyframes ? An(Q(t.keyframes)) : ft;
|
|
267
|
+
if (J(t.inherit))
|
|
268
|
+
for (; e; )
|
|
269
|
+
i(t, e.vars.defaults), e = e.parent || e._dp;
|
|
270
|
+
return t;
|
|
271
|
+
}, En = function(t, e) {
|
|
272
|
+
for (var i = t.length, r = i === e.length; r && i-- && t[i] === e[i]; )
|
|
273
|
+
;
|
|
274
|
+
return i < 0;
|
|
275
|
+
}, xr = function(t, e, i, r, n) {
|
|
276
|
+
var s = t[r], a;
|
|
277
|
+
if (n)
|
|
278
|
+
for (a = e[n]; s && s[n] > a; )
|
|
279
|
+
s = s._prev;
|
|
280
|
+
return s ? (e._next = s._next, s._next = e) : (e._next = t[i], t[i] = e), e._next ? e._next._prev = e : t[r] = e, e._prev = s, e.parent = e._dp = t, e;
|
|
281
|
+
}, je = function(t, e, i, r) {
|
|
282
|
+
i === void 0 && (i = "_first"), r === void 0 && (r = "_last");
|
|
283
|
+
var n = e._prev, s = e._next;
|
|
284
|
+
n ? n._next = s : t[i] === e && (t[i] = s), s ? s._prev = n : t[r] === e && (t[r] = n), e._next = e._prev = e.parent = null;
|
|
285
|
+
}, zt = function(t, e) {
|
|
286
|
+
t.parent && (!e || t.parent.autoRemoveChildren) && t.parent.remove && t.parent.remove(t), t._act = 0;
|
|
287
|
+
}, Xt = function(t, e) {
|
|
288
|
+
if (t && (!e || e._end > t._dur || e._start < 0))
|
|
289
|
+
for (var i = t; i; )
|
|
290
|
+
i._dirty = 1, i = i.parent;
|
|
291
|
+
return t;
|
|
292
|
+
}, Rn = function(t) {
|
|
293
|
+
for (var e = t.parent; e && e.parent; )
|
|
294
|
+
e._dirty = 1, e.totalDuration(), e = e.parent;
|
|
295
|
+
return t;
|
|
296
|
+
}, ai = function(t, e, i, r) {
|
|
297
|
+
return t._startAt && (K ? t._startAt.revert(Re) : t.vars.immediateRender && !t.vars.autoRevert || t._startAt.render(e, !0, r));
|
|
298
|
+
}, zn = function o(t) {
|
|
299
|
+
return !t || t._ts && o(t.parent);
|
|
300
|
+
}, Ui = function(t) {
|
|
301
|
+
return t._repeat ? se(t._tTime, t = t.duration() + t._rDelay) * t : 0;
|
|
302
|
+
}, se = function(t, e) {
|
|
303
|
+
var i = Math.floor(t = L(t / e));
|
|
304
|
+
return t && i === t ? i - 1 : i;
|
|
305
|
+
}, Ne = function(t, e) {
|
|
306
|
+
return (t - e._start) * e._ts + (e._ts >= 0 ? 0 : e._dirty ? e.totalDuration() : e._tDur);
|
|
307
|
+
}, We = function(t) {
|
|
308
|
+
return t._end = L(t._start + (t._tDur / Math.abs(t._ts || t._rts || R) || 0));
|
|
309
|
+
}, Ge = function(t, e) {
|
|
310
|
+
var i = t._dp;
|
|
311
|
+
return i && i.smoothChildTiming && t._ts && (t._start = L(i._time - (t._ts > 0 ? e / t._ts : ((t._dirty ? t.totalDuration() : t._tDur) - e) / -t._ts)), We(t), i._dirty || Xt(i, t)), t;
|
|
312
|
+
}, br = function(t, e) {
|
|
313
|
+
var i;
|
|
314
|
+
if ((e._time || !e._dur && e._initted || e._start < t._time && (e._dur || !e.add)) && (i = Ne(t.rawTime(), e), (!e._dur || Ce(0, e.totalDuration(), i) - e._tTime > R) && e.render(i, !0)), Xt(t, e)._dp && t._initted && t._time >= t._dur && t._ts) {
|
|
315
|
+
if (t._dur < t.duration())
|
|
316
|
+
for (i = t; i._dp; )
|
|
317
|
+
i.rawTime() >= 0 && i.totalTime(i._tTime), i = i._dp;
|
|
318
|
+
t._zTime = -R;
|
|
319
|
+
}
|
|
320
|
+
}, vt = function(t, e, i, r) {
|
|
321
|
+
return e.parent && zt(e), e._start = L((Ot(i) ? i : i || t !== $ ? ht(t, i, e) : t._time) + e._delay), e._end = L(e._start + (e.totalDuration() / Math.abs(e.timeScale()) || 0)), xr(t, e, "_first", "_last", t._sort ? "_start" : 0), oi(e) || (t._recent = e), r || br(t, e), t._ts < 0 && Ge(t, t._tTime), t;
|
|
322
|
+
}, wr = function(t, e) {
|
|
323
|
+
return (ut.ScrollTrigger || bi("scrollTrigger", e)) && ut.ScrollTrigger.create(e, t);
|
|
324
|
+
}, Tr = function(t, e, i, r, n) {
|
|
325
|
+
if (Oi(t, e, n), !t._initted)
|
|
326
|
+
return 1;
|
|
327
|
+
if (!i && t._pt && !K && (t._dur && t.vars.lazy !== !1 || !t._dur && t.vars.lazy) && pr !== st.frame)
|
|
328
|
+
return Et.push(t), t._lazy = [n, r], 1;
|
|
329
|
+
}, In = function o(t) {
|
|
330
|
+
var e = t.parent;
|
|
331
|
+
return e && e._ts && e._initted && !e._lock && (e.rawTime() < 0 || o(e));
|
|
332
|
+
}, oi = function(t) {
|
|
333
|
+
var e = t.data;
|
|
334
|
+
return e === "isFromStart" || e === "isStart";
|
|
335
|
+
}, Fn = function(t, e, i, r) {
|
|
336
|
+
var n = t.ratio, s = e < 0 || !e && (!t._start && In(t) && !(!t._initted && oi(t)) || (t._ts < 0 || t._dp._ts < 0) && !oi(t)) ? 0 : 1, a = t._rDelay, l = 0, u, f, h;
|
|
337
|
+
if (a && t._repeat && (l = Ce(0, t._tDur, e), f = se(l, a), t._yoyo && f & 1 && (s = 1 - s), f !== se(t._tTime, a) && (n = 1 - s, t.vars.repeatRefresh && t._initted && t.invalidate())), s !== n || K || r || t._zTime === R || !e && t._zTime) {
|
|
338
|
+
if (!t._initted && Tr(t, e, r, i, l))
|
|
339
|
+
return;
|
|
340
|
+
for (h = t._zTime, t._zTime = e || (i ? R : 0), i || (i = e && !h), t.ratio = s, t._from && (s = 1 - s), t._time = 0, t._tTime = l, u = t._pt; u; )
|
|
341
|
+
u.r(s, u.d), u = u._next;
|
|
342
|
+
e < 0 && ai(t, e, i, !0), t._onUpdate && !i && at(t, "onUpdate"), l && t._repeat && !i && t.parent && at(t, "onRepeat"), (e >= t._tDur || e < 0) && t.ratio === s && (s && zt(t, 1), !i && !K && (at(t, s ? "onComplete" : "onReverseComplete", !0), t._prom && t._prom()));
|
|
343
|
+
} else t._zTime || (t._zTime = e);
|
|
344
|
+
}, Ln = function(t, e, i) {
|
|
345
|
+
var r;
|
|
346
|
+
if (i > e)
|
|
347
|
+
for (r = t._first; r && r._start <= i; ) {
|
|
348
|
+
if (r.data === "isPause" && r._start > e)
|
|
349
|
+
return r;
|
|
350
|
+
r = r._next;
|
|
351
|
+
}
|
|
352
|
+
else
|
|
353
|
+
for (r = t._last; r && r._start >= i; ) {
|
|
354
|
+
if (r.data === "isPause" && r._start < e)
|
|
355
|
+
return r;
|
|
356
|
+
r = r._prev;
|
|
357
|
+
}
|
|
358
|
+
}, ae = function(t, e, i, r) {
|
|
359
|
+
var n = t._repeat, s = L(e) || 0, a = t._tTime / t._tDur;
|
|
360
|
+
return a && !r && (t._time *= s / t._dur), t._dur = s, t._tDur = n ? n < 0 ? 1e10 : L(s * (n + 1) + t._rDelay * n) : s, a > 0 && !r && Ge(t, t._tTime = t._tDur * a), t.parent && We(t), i || Xt(t.parent, t), t;
|
|
361
|
+
}, Yi = function(t) {
|
|
362
|
+
return t instanceof Z ? Xt(t) : ae(t, t._dur);
|
|
363
|
+
}, $n = {
|
|
364
|
+
_start: 0,
|
|
365
|
+
endTime: be,
|
|
366
|
+
totalDuration: be
|
|
367
|
+
}, ht = function o(t, e, i) {
|
|
368
|
+
var r = t.labels, n = t._recent || $n, s = t.duration() >= ct ? n.endTime(!1) : t._dur, a, l, u;
|
|
369
|
+
return W(e) && (isNaN(e) || e in r) ? (l = e.charAt(0), u = e.substr(-1) === "%", a = e.indexOf("="), l === "<" || l === ">" ? (a >= 0 && (e = e.replace(/=/, "")), (l === "<" ? n._start : n.endTime(n._repeat >= 0)) + (parseFloat(e.substr(1)) || 0) * (u ? (a < 0 ? n : i).totalDuration() / 100 : 1)) : a < 0 ? (e in r || (r[e] = s), r[e]) : (l = parseFloat(e.charAt(a - 1) + e.substr(a + 1)), u && i && (l = l / 100 * (Q(i) ? i[0] : i).totalDuration()), a > 1 ? o(t, e.substr(0, a - 1), i) + l : s + l)) : e == null ? s : +e;
|
|
370
|
+
}, ye = function(t, e, i) {
|
|
371
|
+
var r = Ot(e[1]), n = (r ? 2 : 1) + (t < 2 ? 0 : 1), s = e[n], a, l;
|
|
372
|
+
if (r && (s.duration = e[1]), s.parent = i, t) {
|
|
373
|
+
for (a = s, l = i; l && !("immediateRender" in a); )
|
|
374
|
+
a = l.vars.defaults || {}, l = J(l.vars.inherit) && l.parent;
|
|
375
|
+
s.immediateRender = J(a.immediateRender), t < 2 ? s.runBackwards = 1 : s.startAt = e[n - 1];
|
|
376
|
+
}
|
|
377
|
+
return new q(e[0], s, e[n + 1]);
|
|
378
|
+
}, Lt = function(t, e) {
|
|
379
|
+
return t || t === 0 ? e(t) : e;
|
|
380
|
+
}, Ce = function(t, e, i) {
|
|
381
|
+
return i < t ? t : i > e ? e : i;
|
|
382
|
+
}, H = function(t, e) {
|
|
383
|
+
return !W(t) || !(e = On.exec(t)) ? "" : e[1];
|
|
384
|
+
}, Nn = function(t, e, i) {
|
|
385
|
+
return Lt(i, function(r) {
|
|
386
|
+
return Ce(t, e, r);
|
|
387
|
+
});
|
|
388
|
+
}, li = [].slice, kr = function(t, e) {
|
|
389
|
+
return t && bt(t) && "length" in t && (!e && !t.length || t.length - 1 in t && bt(t[0])) && !t.nodeType && t !== yt;
|
|
390
|
+
}, Bn = function(t, e, i) {
|
|
391
|
+
return i === void 0 && (i = []), t.forEach(function(r) {
|
|
392
|
+
var n;
|
|
393
|
+
return W(r) && !e || kr(r, 1) ? (n = i).push.apply(n, dt(r)) : i.push(r);
|
|
394
|
+
}) || i;
|
|
395
|
+
}, dt = function(t, e, i) {
|
|
396
|
+
return F && !e && F.selector ? F.selector(t) : W(t) && !i && (ni || !oe()) ? li.call((e || xi).querySelectorAll(t), 0) : Q(t) ? Bn(t, i) : kr(t) ? li.call(t, 0) : t ? [t] : [];
|
|
397
|
+
}, ui = function(t) {
|
|
398
|
+
return t = dt(t)[0] || xe("Invalid scope") || {}, function(e) {
|
|
399
|
+
var i = t.current || t.nativeElement || t;
|
|
400
|
+
return dt(e, i.querySelectorAll ? i : i === t ? xe("Invalid scope") || xi.createElement("div") : t);
|
|
401
|
+
};
|
|
402
|
+
}, Sr = function(t) {
|
|
403
|
+
return t.sort(function() {
|
|
404
|
+
return 0.5 - Math.random();
|
|
405
|
+
});
|
|
406
|
+
}, Pr = function(t) {
|
|
407
|
+
if (V(t))
|
|
408
|
+
return t;
|
|
409
|
+
var e = bt(t) ? t : {
|
|
410
|
+
each: t
|
|
411
|
+
}, i = jt(e.ease), r = e.from || 0, n = parseFloat(e.base) || 0, s = {}, a = r > 0 && r < 1, l = isNaN(r) || a, u = e.axis, f = r, h = r;
|
|
412
|
+
return W(r) ? f = h = {
|
|
413
|
+
center: 0.5,
|
|
414
|
+
edges: 0.5,
|
|
415
|
+
end: 1
|
|
416
|
+
}[r] || 0 : !a && l && (f = r[0], h = r[1]), function(d, _, m) {
|
|
417
|
+
var c = (m || e).length, p = s[c], y, v, w, x, g, T, k, S, b;
|
|
418
|
+
if (!p) {
|
|
419
|
+
if (b = e.grid === "auto" ? 0 : (e.grid || [1, ct])[1], !b) {
|
|
420
|
+
for (k = -ct; k < (k = m[b++].getBoundingClientRect().left) && b < c; )
|
|
421
|
+
;
|
|
422
|
+
b < c && b--;
|
|
423
|
+
}
|
|
424
|
+
for (p = s[c] = [], y = l ? Math.min(b, c) * f - 0.5 : r % b, v = b === ct ? 0 : l ? c * h / b - 0.5 : r / b | 0, k = 0, S = ct, T = 0; T < c; T++)
|
|
425
|
+
w = T % b - y, x = v - (T / b | 0), p[T] = g = u ? Math.abs(u === "y" ? x : w) : lr(w * w + x * x), g > k && (k = g), g < S && (S = g);
|
|
426
|
+
r === "random" && Sr(p), p.max = k - S, p.min = S, p.v = c = (parseFloat(e.amount) || parseFloat(e.each) * (b > c ? c - 1 : u ? u === "y" ? c / b : b : Math.max(b, c / b)) || 0) * (r === "edges" ? -1 : 1), p.b = c < 0 ? n - c : n, p.u = H(e.amount || e.each) || 0, i = i && c < 0 ? Fr(i) : i;
|
|
427
|
+
}
|
|
428
|
+
return c = (p[d] - p.min) / p.max || 0, L(p.b + (i ? i(c) : c) * p.v) + p.u;
|
|
429
|
+
};
|
|
430
|
+
}, fi = function(t) {
|
|
431
|
+
var e = Math.pow(10, ((t + "").split(".")[1] || "").length);
|
|
432
|
+
return function(i) {
|
|
433
|
+
var r = L(Math.round(parseFloat(i) / t) * t * e);
|
|
434
|
+
return (r - r % 1) / e + (Ot(i) ? 0 : H(i));
|
|
435
|
+
};
|
|
436
|
+
}, Or = function(t, e) {
|
|
437
|
+
var i = Q(t), r, n;
|
|
438
|
+
return !i && bt(t) && (r = i = t.radius || ct, t.values ? (t = dt(t.values), (n = !Ot(t[0])) && (r *= r)) : t = fi(t.increment)), Lt(e, i ? V(t) ? function(s) {
|
|
439
|
+
return n = t(s), Math.abs(n - s) <= r ? n : s;
|
|
440
|
+
} : function(s) {
|
|
441
|
+
for (var a = parseFloat(n ? s.x : s), l = parseFloat(n ? s.y : 0), u = ct, f = 0, h = t.length, d, _; h--; )
|
|
442
|
+
n ? (d = t[h].x - a, _ = t[h].y - l, d = d * d + _ * _) : d = Math.abs(t[h] - a), d < u && (u = d, f = h);
|
|
443
|
+
return f = !r || u <= r ? t[f] : s, n || f === s || Ot(s) ? f : f + H(s);
|
|
444
|
+
} : fi(t));
|
|
445
|
+
}, Cr = function(t, e, i, r) {
|
|
446
|
+
return Lt(Q(t) ? !e : i === !0 ? !!(i = 0) : !r, function() {
|
|
447
|
+
return Q(t) ? t[~~(Math.random() * t.length)] : (i = i || 1e-5) && (r = i < 1 ? Math.pow(10, (i + "").length - 2) : 1) && Math.floor(Math.round((t - i / 2 + Math.random() * (e - t + i * 0.99)) / i) * i * r) / r;
|
|
448
|
+
});
|
|
449
|
+
}, Vn = function() {
|
|
450
|
+
for (var t = arguments.length, e = new Array(t), i = 0; i < t; i++)
|
|
451
|
+
e[i] = arguments[i];
|
|
452
|
+
return function(r) {
|
|
453
|
+
return e.reduce(function(n, s) {
|
|
454
|
+
return s(n);
|
|
455
|
+
}, r);
|
|
456
|
+
};
|
|
457
|
+
}, Un = function(t, e) {
|
|
458
|
+
return function(i) {
|
|
459
|
+
return t(parseFloat(i)) + (e || H(i));
|
|
460
|
+
};
|
|
461
|
+
}, Yn = function(t, e, i) {
|
|
462
|
+
return Dr(t, e, 0, 1, i);
|
|
463
|
+
}, Mr = function(t, e, i) {
|
|
464
|
+
return Lt(i, function(r) {
|
|
465
|
+
return t[~~e(r)];
|
|
466
|
+
});
|
|
467
|
+
}, qn = function o(t, e, i) {
|
|
468
|
+
var r = e - t;
|
|
469
|
+
return Q(t) ? Mr(t, o(0, t.length), e) : Lt(i, function(n) {
|
|
470
|
+
return (r + (n - t) % r) % r + t;
|
|
471
|
+
});
|
|
472
|
+
}, Xn = function o(t, e, i) {
|
|
473
|
+
var r = e - t, n = r * 2;
|
|
474
|
+
return Q(t) ? Mr(t, o(0, t.length - 1), e) : Lt(i, function(s) {
|
|
475
|
+
return s = (n + (s - t) % n) % n || 0, t + (s > r ? n - s : s);
|
|
476
|
+
});
|
|
477
|
+
}, we = function(t) {
|
|
478
|
+
return t.replace(kn, function(e) {
|
|
479
|
+
var i = e.indexOf("[") + 1, r = e.substring(i || 7, i ? e.indexOf("]") : e.length - 1).split(Sn);
|
|
480
|
+
return Cr(i ? r : +r[0], i ? 0 : +r[1], +r[2] || 1e-5);
|
|
481
|
+
});
|
|
482
|
+
}, Dr = function(t, e, i, r, n) {
|
|
483
|
+
var s = e - t, a = r - i;
|
|
484
|
+
return Lt(n, function(l) {
|
|
485
|
+
return i + ((l - t) / s * a || 0);
|
|
486
|
+
});
|
|
487
|
+
}, jn = function o(t, e, i, r) {
|
|
488
|
+
var n = isNaN(t + e) ? 0 : function(_) {
|
|
489
|
+
return (1 - _) * t + _ * e;
|
|
490
|
+
};
|
|
491
|
+
if (!n) {
|
|
492
|
+
var s = W(t), a = {}, l, u, f, h, d;
|
|
493
|
+
if (i === !0 && (r = 1) && (i = null), s)
|
|
494
|
+
t = {
|
|
495
|
+
p: t
|
|
496
|
+
}, e = {
|
|
497
|
+
p: e
|
|
498
|
+
};
|
|
499
|
+
else if (Q(t) && !Q(e)) {
|
|
500
|
+
for (f = [], h = t.length, d = h - 2, u = 1; u < h; u++)
|
|
501
|
+
f.push(o(t[u - 1], t[u]));
|
|
502
|
+
h--, n = function(m) {
|
|
503
|
+
m *= h;
|
|
504
|
+
var c = Math.min(d, ~~m);
|
|
505
|
+
return f[c](m - c);
|
|
506
|
+
}, i = e;
|
|
507
|
+
} else r || (t = ne(Q(t) ? [] : {}, t));
|
|
508
|
+
if (!f) {
|
|
509
|
+
for (l in e)
|
|
510
|
+
Pi.call(a, t, l, "get", e[l]);
|
|
511
|
+
n = function(m) {
|
|
512
|
+
return Di(m, a) || (s ? t.p : t);
|
|
513
|
+
};
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
return Lt(i, n);
|
|
517
|
+
}, qi = function(t, e, i) {
|
|
518
|
+
var r = t.labels, n = ct, s, a, l;
|
|
519
|
+
for (s in r)
|
|
520
|
+
a = r[s] - e, a < 0 == !!i && a && n > (a = Math.abs(a)) && (l = s, n = a);
|
|
521
|
+
return l;
|
|
522
|
+
}, at = function(t, e, i) {
|
|
523
|
+
var r = t.vars, n = r[e], s = F, a = t._ctx, l, u, f;
|
|
524
|
+
if (n)
|
|
525
|
+
return l = r[e + "Params"], u = r.callbackScope || t, i && Et.length && Le(), a && (F = a), f = l ? n.apply(u, l) : n.call(u), F = s, f;
|
|
526
|
+
}, pe = function(t) {
|
|
527
|
+
return zt(t), t.scrollTrigger && t.scrollTrigger.kill(!!K), t.progress() < 1 && at(t, "onInterrupt"), t;
|
|
528
|
+
}, Jt, Ar = [], Er = function(t) {
|
|
529
|
+
if (t)
|
|
530
|
+
if (t = !t.name && t.default || t, vi() || t.headless) {
|
|
531
|
+
var e = t.name, i = V(t), r = e && !i && t.init ? function() {
|
|
532
|
+
this._props = [];
|
|
533
|
+
} : t, n = {
|
|
534
|
+
init: be,
|
|
535
|
+
render: Di,
|
|
536
|
+
add: Pi,
|
|
537
|
+
kill: ls,
|
|
538
|
+
modifier: os,
|
|
539
|
+
rawVars: 0
|
|
540
|
+
}, s = {
|
|
541
|
+
targetTest: 0,
|
|
542
|
+
get: 0,
|
|
543
|
+
getSetter: Mi,
|
|
544
|
+
aliases: {},
|
|
545
|
+
register: 0
|
|
546
|
+
};
|
|
547
|
+
if (oe(), t !== r) {
|
|
548
|
+
if (nt[e])
|
|
549
|
+
return;
|
|
550
|
+
ft(r, ft($e(t, n), s)), ne(r.prototype, ne(n, $e(t, s))), nt[r.prop = e] = r, t.targetTest && (ze.push(r), wi[e] = 1), e = (e === "css" ? "CSS" : e.charAt(0).toUpperCase() + e.substr(1)) + "Plugin";
|
|
551
|
+
}
|
|
552
|
+
_r(e, r), t.register && t.register(rt, r, et);
|
|
553
|
+
} else
|
|
554
|
+
Ar.push(t);
|
|
555
|
+
}, E = 255, me = {
|
|
556
|
+
aqua: [0, E, E],
|
|
557
|
+
lime: [0, E, 0],
|
|
558
|
+
silver: [192, 192, 192],
|
|
559
|
+
black: [0, 0, 0],
|
|
560
|
+
maroon: [128, 0, 0],
|
|
561
|
+
teal: [0, 128, 128],
|
|
562
|
+
blue: [0, 0, E],
|
|
563
|
+
navy: [0, 0, 128],
|
|
564
|
+
white: [E, E, E],
|
|
565
|
+
olive: [128, 128, 0],
|
|
566
|
+
yellow: [E, E, 0],
|
|
567
|
+
orange: [E, 165, 0],
|
|
568
|
+
gray: [128, 128, 128],
|
|
569
|
+
purple: [128, 0, 128],
|
|
570
|
+
green: [0, 128, 0],
|
|
571
|
+
red: [E, 0, 0],
|
|
572
|
+
pink: [E, 192, 203],
|
|
573
|
+
cyan: [0, E, E],
|
|
574
|
+
transparent: [E, E, E, 0]
|
|
575
|
+
}, Qe = function(t, e, i) {
|
|
576
|
+
return t += t < 0 ? 1 : t > 1 ? -1 : 0, (t * 6 < 1 ? e + (i - e) * t * 6 : t < 0.5 ? i : t * 3 < 2 ? e + (i - e) * (2 / 3 - t) * 6 : e) * E + 0.5 | 0;
|
|
577
|
+
}, Rr = function(t, e, i) {
|
|
578
|
+
var r = t ? Ot(t) ? [t >> 16, t >> 8 & E, t & E] : 0 : me.black, n, s, a, l, u, f, h, d, _, m;
|
|
579
|
+
if (!r) {
|
|
580
|
+
if (t.substr(-1) === "," && (t = t.substr(0, t.length - 1)), me[t])
|
|
581
|
+
r = me[t];
|
|
582
|
+
else if (t.charAt(0) === "#") {
|
|
583
|
+
if (t.length < 6 && (n = t.charAt(1), s = t.charAt(2), a = t.charAt(3), t = "#" + n + n + s + s + a + a + (t.length === 5 ? t.charAt(4) + t.charAt(4) : "")), t.length === 9)
|
|
584
|
+
return r = parseInt(t.substr(1, 6), 16), [r >> 16, r >> 8 & E, r & E, parseInt(t.substr(7), 16) / 255];
|
|
585
|
+
t = parseInt(t.substr(1), 16), r = [t >> 16, t >> 8 & E, t & E];
|
|
586
|
+
} else if (t.substr(0, 3) === "hsl") {
|
|
587
|
+
if (r = m = t.match(Ni), !e)
|
|
588
|
+
l = +r[0] % 360 / 360, u = +r[1] / 100, f = +r[2] / 100, s = f <= 0.5 ? f * (u + 1) : f + u - f * u, n = f * 2 - s, r.length > 3 && (r[3] *= 1), r[0] = Qe(l + 1 / 3, n, s), r[1] = Qe(l, n, s), r[2] = Qe(l - 1 / 3, n, s);
|
|
589
|
+
else if (~t.indexOf("="))
|
|
590
|
+
return r = t.match(fr), i && r.length < 4 && (r[3] = 1), r;
|
|
591
|
+
} else
|
|
592
|
+
r = t.match(Ni) || me.transparent;
|
|
593
|
+
r = r.map(Number);
|
|
594
|
+
}
|
|
595
|
+
return e && !m && (n = r[0] / E, s = r[1] / E, a = r[2] / E, h = Math.max(n, s, a), d = Math.min(n, s, a), f = (h + d) / 2, h === d ? l = u = 0 : (_ = h - d, u = f > 0.5 ? _ / (2 - h - d) : _ / (h + d), l = h === n ? (s - a) / _ + (s < a ? 6 : 0) : h === s ? (a - n) / _ + 2 : (n - s) / _ + 4, l *= 60), r[0] = ~~(l + 0.5), r[1] = ~~(u * 100 + 0.5), r[2] = ~~(f * 100 + 0.5)), i && r.length < 4 && (r[3] = 1), r;
|
|
596
|
+
}, zr = function(t) {
|
|
597
|
+
var e = [], i = [], r = -1;
|
|
598
|
+
return t.split(Rt).forEach(function(n) {
|
|
599
|
+
var s = n.match(Zt) || [];
|
|
600
|
+
e.push.apply(e, s), i.push(r += s.length + 1);
|
|
601
|
+
}), e.c = i, e;
|
|
602
|
+
}, Xi = function(t, e, i) {
|
|
603
|
+
var r = "", n = (t + r).match(Rt), s = e ? "hsla(" : "rgba(", a = 0, l, u, f, h;
|
|
604
|
+
if (!n)
|
|
605
|
+
return t;
|
|
606
|
+
if (n = n.map(function(d) {
|
|
607
|
+
return (d = Rr(d, e, 1)) && s + (e ? d[0] + "," + d[1] + "%," + d[2] + "%," + d[3] : d.join(",")) + ")";
|
|
608
|
+
}), i && (f = zr(t), l = i.c, l.join(r) !== f.c.join(r)))
|
|
609
|
+
for (u = t.replace(Rt, "1").split(Zt), h = u.length - 1; a < h; a++)
|
|
610
|
+
r += u[a] + (~l.indexOf(a) ? n.shift() || s + "0,0,0,0)" : (f.length ? f : n.length ? n : i).shift());
|
|
611
|
+
if (!u)
|
|
612
|
+
for (u = t.split(Rt), h = u.length - 1; a < h; a++)
|
|
613
|
+
r += u[a] + n[a];
|
|
614
|
+
return r + u[h];
|
|
615
|
+
}, Rt = function() {
|
|
616
|
+
var o = "(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b", t;
|
|
617
|
+
for (t in me)
|
|
618
|
+
o += "|" + t + "\\b";
|
|
619
|
+
return new RegExp(o + ")", "gi");
|
|
620
|
+
}(), Wn = /hsl[a]?\(/, Ir = function(t) {
|
|
621
|
+
var e = t.join(" "), i;
|
|
622
|
+
if (Rt.lastIndex = 0, Rt.test(e))
|
|
623
|
+
return i = Wn.test(e), t[1] = Xi(t[1], i), t[0] = Xi(t[0], i, zr(t[1])), !0;
|
|
624
|
+
}, Te, st = function() {
|
|
625
|
+
var o = Date.now, t = 500, e = 33, i = o(), r = i, n = 1e3 / 240, s = n, a = [], l, u, f, h, d, _, m = function c(p) {
|
|
626
|
+
var y = o() - r, v = p === !0, w, x, g, T;
|
|
627
|
+
if ((y > t || y < 0) && (i += y - e), r += y, g = r - i, w = g - s, (w > 0 || v) && (T = ++h.frame, d = g - h.time * 1e3, h.time = g = g / 1e3, s += w + (w >= n ? 4 : n - w), x = 1), v || (l = u(c)), x)
|
|
628
|
+
for (_ = 0; _ < a.length; _++)
|
|
629
|
+
a[_](g, d, T, p);
|
|
630
|
+
};
|
|
631
|
+
return h = {
|
|
632
|
+
time: 0,
|
|
633
|
+
frame: 0,
|
|
634
|
+
tick: function() {
|
|
635
|
+
m(!0);
|
|
636
|
+
},
|
|
637
|
+
deltaRatio: function(p) {
|
|
638
|
+
return d / (1e3 / (p || 60));
|
|
639
|
+
},
|
|
640
|
+
wake: function() {
|
|
641
|
+
cr && (!ni && vi() && (yt = ni = window, xi = yt.document || {}, ut.gsap = rt, (yt.gsapVersions || (yt.gsapVersions = [])).push(rt.version), dr(Fe || yt.GreenSockGlobals || !yt.gsap && yt || {}), Ar.forEach(Er)), f = typeof requestAnimationFrame < "u" && requestAnimationFrame, l && h.sleep(), u = f || function(p) {
|
|
642
|
+
return setTimeout(p, s - h.time * 1e3 + 1 | 0);
|
|
643
|
+
}, Te = 1, m(2));
|
|
644
|
+
},
|
|
645
|
+
sleep: function() {
|
|
646
|
+
(f ? cancelAnimationFrame : clearTimeout)(l), Te = 0, u = be;
|
|
647
|
+
},
|
|
648
|
+
lagSmoothing: function(p, y) {
|
|
649
|
+
t = p || 1 / 0, e = Math.min(y || 33, t);
|
|
650
|
+
},
|
|
651
|
+
fps: function(p) {
|
|
652
|
+
n = 1e3 / (p || 240), s = h.time * 1e3 + n;
|
|
653
|
+
},
|
|
654
|
+
add: function(p, y, v) {
|
|
655
|
+
var w = y ? function(x, g, T, k) {
|
|
656
|
+
p(x, g, T, k), h.remove(w);
|
|
657
|
+
} : p;
|
|
658
|
+
return h.remove(p), a[v ? "unshift" : "push"](w), oe(), w;
|
|
659
|
+
},
|
|
660
|
+
remove: function(p, y) {
|
|
661
|
+
~(y = a.indexOf(p)) && a.splice(y, 1) && _ >= y && _--;
|
|
662
|
+
},
|
|
663
|
+
_listeners: a
|
|
664
|
+
}, h;
|
|
665
|
+
}(), oe = function() {
|
|
666
|
+
return !Te && st.wake();
|
|
667
|
+
}, C = {}, Gn = /^[\d.\-M][\d.\-,\s]/, Kn = /["']/g, Hn = function(t) {
|
|
668
|
+
for (var e = {}, i = t.substr(1, t.length - 3).split(":"), r = i[0], n = 1, s = i.length, a, l, u; n < s; n++)
|
|
669
|
+
l = i[n], a = n !== s - 1 ? l.lastIndexOf(",") : l.length, u = l.substr(0, a), e[r] = isNaN(u) ? u.replace(Kn, "").trim() : +u, r = l.substr(a + 1).trim();
|
|
670
|
+
return e;
|
|
671
|
+
}, Qn = function(t) {
|
|
672
|
+
var e = t.indexOf("(") + 1, i = t.indexOf(")"), r = t.indexOf("(", e);
|
|
673
|
+
return t.substring(e, ~r && r < i ? t.indexOf(")", i + 1) : i);
|
|
674
|
+
}, Zn = function(t) {
|
|
675
|
+
var e = (t + "").split("("), i = C[e[0]];
|
|
676
|
+
return i && e.length > 1 && i.config ? i.config.apply(null, ~t.indexOf("{") ? [Hn(e[1])] : Qn(t).split(",").map(yr)) : C._CE && Gn.test(t) ? C._CE("", t) : i;
|
|
677
|
+
}, Fr = function(t) {
|
|
678
|
+
return function(e) {
|
|
679
|
+
return 1 - t(1 - e);
|
|
680
|
+
};
|
|
681
|
+
}, Lr = function o(t, e) {
|
|
682
|
+
for (var i = t._first, r; i; )
|
|
683
|
+
i instanceof Z ? o(i, e) : i.vars.yoyoEase && (!i._yoyo || !i._repeat) && i._yoyo !== e && (i.timeline ? o(i.timeline, e) : (r = i._ease, i._ease = i._yEase, i._yEase = r, i._yoyo = e)), i = i._next;
|
|
684
|
+
}, jt = function(t, e) {
|
|
685
|
+
return t && (V(t) ? t : C[t] || Zn(t)) || e;
|
|
686
|
+
}, Ht = function(t, e, i, r) {
|
|
687
|
+
i === void 0 && (i = function(l) {
|
|
688
|
+
return 1 - e(1 - l);
|
|
689
|
+
}), r === void 0 && (r = function(l) {
|
|
690
|
+
return l < 0.5 ? e(l * 2) / 2 : 1 - e((1 - l) * 2) / 2;
|
|
691
|
+
});
|
|
692
|
+
var n = {
|
|
693
|
+
easeIn: e,
|
|
694
|
+
easeOut: i,
|
|
695
|
+
easeInOut: r
|
|
696
|
+
}, s;
|
|
697
|
+
return tt(t, function(a) {
|
|
698
|
+
C[a] = ut[a] = n, C[s = a.toLowerCase()] = i;
|
|
699
|
+
for (var l in n)
|
|
700
|
+
C[s + (l === "easeIn" ? ".in" : l === "easeOut" ? ".out" : ".inOut")] = C[a + "." + l] = n[l];
|
|
701
|
+
}), n;
|
|
702
|
+
}, $r = function(t) {
|
|
703
|
+
return function(e) {
|
|
704
|
+
return e < 0.5 ? (1 - t(1 - e * 2)) / 2 : 0.5 + t((e - 0.5) * 2) / 2;
|
|
705
|
+
};
|
|
706
|
+
}, Ze = function o(t, e, i) {
|
|
707
|
+
var r = e >= 1 ? e : 1, n = (i || (t ? 0.3 : 0.45)) / (e < 1 ? e : 1), s = n / ri * (Math.asin(1 / r) || 0), a = function(f) {
|
|
708
|
+
return f === 1 ? 1 : r * Math.pow(2, -10 * f) * Tn((f - s) * n) + 1;
|
|
709
|
+
}, l = t === "out" ? a : t === "in" ? function(u) {
|
|
710
|
+
return 1 - a(1 - u);
|
|
711
|
+
} : $r(a);
|
|
712
|
+
return n = ri / n, l.config = function(u, f) {
|
|
713
|
+
return o(t, u, f);
|
|
714
|
+
}, l;
|
|
715
|
+
}, Je = function o(t, e) {
|
|
716
|
+
e === void 0 && (e = 1.70158);
|
|
717
|
+
var i = function(s) {
|
|
718
|
+
return s ? --s * s * ((e + 1) * s + e) + 1 : 0;
|
|
719
|
+
}, r = t === "out" ? i : t === "in" ? function(n) {
|
|
720
|
+
return 1 - i(1 - n);
|
|
721
|
+
} : $r(i);
|
|
722
|
+
return r.config = function(n) {
|
|
723
|
+
return o(t, n);
|
|
724
|
+
}, r;
|
|
725
|
+
};
|
|
726
|
+
tt("Linear,Quad,Cubic,Quart,Quint,Strong", function(o, t) {
|
|
727
|
+
var e = t < 5 ? t + 1 : t;
|
|
728
|
+
Ht(o + ",Power" + (e - 1), t ? function(i) {
|
|
729
|
+
return Math.pow(i, e);
|
|
730
|
+
} : function(i) {
|
|
731
|
+
return i;
|
|
732
|
+
}, function(i) {
|
|
733
|
+
return 1 - Math.pow(1 - i, e);
|
|
734
|
+
}, function(i) {
|
|
735
|
+
return i < 0.5 ? Math.pow(i * 2, e) / 2 : 1 - Math.pow((1 - i) * 2, e) / 2;
|
|
736
|
+
});
|
|
737
|
+
});
|
|
738
|
+
C.Linear.easeNone = C.none = C.Linear.easeIn;
|
|
739
|
+
Ht("Elastic", Ze("in"), Ze("out"), Ze());
|
|
740
|
+
(function(o, t) {
|
|
741
|
+
var e = 1 / t, i = 2 * e, r = 2.5 * e, n = function(a) {
|
|
742
|
+
return a < e ? o * a * a : a < i ? o * Math.pow(a - 1.5 / t, 2) + 0.75 : a < r ? o * (a -= 2.25 / t) * a + 0.9375 : o * Math.pow(a - 2.625 / t, 2) + 0.984375;
|
|
743
|
+
};
|
|
744
|
+
Ht("Bounce", function(s) {
|
|
745
|
+
return 1 - n(1 - s);
|
|
746
|
+
}, n);
|
|
747
|
+
})(7.5625, 2.75);
|
|
748
|
+
Ht("Expo", function(o) {
|
|
749
|
+
return Math.pow(2, 10 * (o - 1)) * o + o * o * o * o * o * o * (1 - o);
|
|
750
|
+
});
|
|
751
|
+
Ht("Circ", function(o) {
|
|
752
|
+
return -(lr(1 - o * o) - 1);
|
|
753
|
+
});
|
|
754
|
+
Ht("Sine", function(o) {
|
|
755
|
+
return o === 1 ? 1 : -wn(o * xn) + 1;
|
|
756
|
+
});
|
|
757
|
+
Ht("Back", Je("in"), Je("out"), Je());
|
|
758
|
+
C.SteppedEase = C.steps = ut.SteppedEase = {
|
|
759
|
+
config: function(t, e) {
|
|
760
|
+
t === void 0 && (t = 1);
|
|
761
|
+
var i = 1 / t, r = t + (e ? 0 : 1), n = e ? 1 : 0, s = 1 - R;
|
|
762
|
+
return function(a) {
|
|
763
|
+
return ((r * Ce(0, s, a) | 0) + n) * i;
|
|
764
|
+
};
|
|
765
|
+
}
|
|
766
|
+
};
|
|
767
|
+
re.ease = C["quad.out"];
|
|
768
|
+
tt("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt", function(o) {
|
|
769
|
+
return Ti += o + "," + o + "Params,";
|
|
770
|
+
});
|
|
771
|
+
var Nr = function(t, e) {
|
|
772
|
+
this.id = bn++, t._gsap = this, this.target = t, this.harness = e, this.get = e ? e.get : mr, this.set = e ? e.getSetter : Mi;
|
|
773
|
+
}, ke = /* @__PURE__ */ function() {
|
|
774
|
+
function o(e) {
|
|
775
|
+
this.vars = e, this._delay = +e.delay || 0, (this._repeat = e.repeat === 1 / 0 ? -2 : e.repeat || 0) && (this._rDelay = e.repeatDelay || 0, this._yoyo = !!e.yoyo || !!e.yoyoEase), this._ts = 1, ae(this, +e.duration, 1, 1), this.data = e.data, F && (this._ctx = F, F.data.push(this)), Te || st.wake();
|
|
776
|
+
}
|
|
777
|
+
var t = o.prototype;
|
|
778
|
+
return t.delay = function(i) {
|
|
779
|
+
return i || i === 0 ? (this.parent && this.parent.smoothChildTiming && this.startTime(this._start + i - this._delay), this._delay = i, this) : this._delay;
|
|
780
|
+
}, t.duration = function(i) {
|
|
781
|
+
return arguments.length ? this.totalDuration(this._repeat > 0 ? i + (i + this._rDelay) * this._repeat : i) : this.totalDuration() && this._dur;
|
|
782
|
+
}, t.totalDuration = function(i) {
|
|
783
|
+
return arguments.length ? (this._dirty = 0, ae(this, this._repeat < 0 ? i : (i - this._repeat * this._rDelay) / (this._repeat + 1))) : this._tDur;
|
|
784
|
+
}, t.totalTime = function(i, r) {
|
|
785
|
+
if (oe(), !arguments.length)
|
|
786
|
+
return this._tTime;
|
|
787
|
+
var n = this._dp;
|
|
788
|
+
if (n && n.smoothChildTiming && this._ts) {
|
|
789
|
+
for (Ge(this, i), !n._dp || n.parent || br(n, this); n && n.parent; )
|
|
790
|
+
n.parent._time !== n._start + (n._ts >= 0 ? n._tTime / n._ts : (n.totalDuration() - n._tTime) / -n._ts) && n.totalTime(n._tTime, !0), n = n.parent;
|
|
791
|
+
!this.parent && this._dp.autoRemoveChildren && (this._ts > 0 && i < this._tDur || this._ts < 0 && i > 0 || !this._tDur && !i) && vt(this._dp, this, this._start - this._delay);
|
|
792
|
+
}
|
|
793
|
+
return (this._tTime !== i || !this._dur && !r || this._initted && Math.abs(this._zTime) === R || !this._initted && this._dur && i || !i && !this._initted && (this.add || this._ptLookup)) && (this._ts || (this._pTime = i), gr(this, i, r)), this;
|
|
794
|
+
}, t.time = function(i, r) {
|
|
795
|
+
return arguments.length ? this.totalTime(Math.min(this.totalDuration(), i + Ui(this)) % (this._dur + this._rDelay) || (i ? this._dur : 0), r) : this._time;
|
|
796
|
+
}, t.totalProgress = function(i, r) {
|
|
797
|
+
return arguments.length ? this.totalTime(this.totalDuration() * i, r) : this.totalDuration() ? Math.min(1, this._tTime / this._tDur) : this.rawTime() >= 0 && this._initted ? 1 : 0;
|
|
798
|
+
}, t.progress = function(i, r) {
|
|
799
|
+
return arguments.length ? this.totalTime(this.duration() * (this._yoyo && !(this.iteration() & 1) ? 1 - i : i) + Ui(this), r) : this.duration() ? Math.min(1, this._time / this._dur) : this.rawTime() > 0 ? 1 : 0;
|
|
800
|
+
}, t.iteration = function(i, r) {
|
|
801
|
+
var n = this.duration() + this._rDelay;
|
|
802
|
+
return arguments.length ? this.totalTime(this._time + (i - 1) * n, r) : this._repeat ? se(this._tTime, n) + 1 : 1;
|
|
803
|
+
}, t.timeScale = function(i, r) {
|
|
804
|
+
if (!arguments.length)
|
|
805
|
+
return this._rts === -R ? 0 : this._rts;
|
|
806
|
+
if (this._rts === i)
|
|
807
|
+
return this;
|
|
808
|
+
var n = this.parent && this._ts ? Ne(this.parent._time, this) : this._tTime;
|
|
809
|
+
return this._rts = +i || 0, this._ts = this._ps || i === -R ? 0 : this._rts, this.totalTime(Ce(-Math.abs(this._delay), this.totalDuration(), n), r !== !1), We(this), Rn(this);
|
|
810
|
+
}, t.paused = function(i) {
|
|
811
|
+
return arguments.length ? (this._ps !== i && (this._ps = i, i ? (this._pTime = this._tTime || Math.max(-this._delay, this.rawTime()), this._ts = this._act = 0) : (oe(), this._ts = this._rts, this.totalTime(this.parent && !this.parent.smoothChildTiming ? this.rawTime() : this._tTime || this._pTime, this.progress() === 1 && Math.abs(this._zTime) !== R && (this._tTime -= R)))), this) : this._ps;
|
|
812
|
+
}, t.startTime = function(i) {
|
|
813
|
+
if (arguments.length) {
|
|
814
|
+
this._start = L(i);
|
|
815
|
+
var r = this.parent || this._dp;
|
|
816
|
+
return r && (r._sort || !this.parent) && vt(r, this, this._start - this._delay), this;
|
|
817
|
+
}
|
|
818
|
+
return this._start;
|
|
819
|
+
}, t.endTime = function(i) {
|
|
820
|
+
return this._start + (J(i) ? this.totalDuration() : this.duration()) / Math.abs(this._ts || 1);
|
|
821
|
+
}, t.rawTime = function(i) {
|
|
822
|
+
var r = this.parent || this._dp;
|
|
823
|
+
return r ? i && (!this._ts || this._repeat && this._time && this.totalProgress() < 1) ? this._tTime % (this._dur + this._rDelay) : this._ts ? Ne(r.rawTime(i), this) : this._tTime : this._tTime;
|
|
824
|
+
}, t.revert = function(i) {
|
|
825
|
+
i === void 0 && (i = Mn);
|
|
826
|
+
var r = K;
|
|
827
|
+
return K = i, Si(this) && (this.timeline && this.timeline.revert(i), this.totalTime(-0.01, i.suppressEvents)), this.data !== "nested" && i.kill !== !1 && this.kill(), K = r, this;
|
|
828
|
+
}, t.globalTime = function(i) {
|
|
829
|
+
for (var r = this, n = arguments.length ? i : r.rawTime(); r; )
|
|
830
|
+
n = r._start + n / (Math.abs(r._ts) || 1), r = r._dp;
|
|
831
|
+
return !this.parent && this._sat ? this._sat.globalTime(i) : n;
|
|
832
|
+
}, t.repeat = function(i) {
|
|
833
|
+
return arguments.length ? (this._repeat = i === 1 / 0 ? -2 : i, Yi(this)) : this._repeat === -2 ? 1 / 0 : this._repeat;
|
|
834
|
+
}, t.repeatDelay = function(i) {
|
|
835
|
+
if (arguments.length) {
|
|
836
|
+
var r = this._time;
|
|
837
|
+
return this._rDelay = i, Yi(this), r ? this.time(r) : this;
|
|
838
|
+
}
|
|
839
|
+
return this._rDelay;
|
|
840
|
+
}, t.yoyo = function(i) {
|
|
841
|
+
return arguments.length ? (this._yoyo = i, this) : this._yoyo;
|
|
842
|
+
}, t.seek = function(i, r) {
|
|
843
|
+
return this.totalTime(ht(this, i), J(r));
|
|
844
|
+
}, t.restart = function(i, r) {
|
|
845
|
+
return this.play().totalTime(i ? -this._delay : 0, J(r)), this._dur || (this._zTime = -R), this;
|
|
846
|
+
}, t.play = function(i, r) {
|
|
847
|
+
return i != null && this.seek(i, r), this.reversed(!1).paused(!1);
|
|
848
|
+
}, t.reverse = function(i, r) {
|
|
849
|
+
return i != null && this.seek(i || this.totalDuration(), r), this.reversed(!0).paused(!1);
|
|
850
|
+
}, t.pause = function(i, r) {
|
|
851
|
+
return i != null && this.seek(i, r), this.paused(!0);
|
|
852
|
+
}, t.resume = function() {
|
|
853
|
+
return this.paused(!1);
|
|
854
|
+
}, t.reversed = function(i) {
|
|
855
|
+
return arguments.length ? (!!i !== this.reversed() && this.timeScale(-this._rts || (i ? -R : 0)), this) : this._rts < 0;
|
|
856
|
+
}, t.invalidate = function() {
|
|
857
|
+
return this._initted = this._act = 0, this._zTime = -R, this;
|
|
858
|
+
}, t.isActive = function() {
|
|
859
|
+
var i = this.parent || this._dp, r = this._start, n;
|
|
860
|
+
return !!(!i || this._ts && this._initted && i.isActive() && (n = i.rawTime(!0)) >= r && n < this.endTime(!0) - R);
|
|
861
|
+
}, t.eventCallback = function(i, r, n) {
|
|
862
|
+
var s = this.vars;
|
|
863
|
+
return arguments.length > 1 ? (r ? (s[i] = r, n && (s[i + "Params"] = n), i === "onUpdate" && (this._onUpdate = r)) : delete s[i], this) : s[i];
|
|
864
|
+
}, t.then = function(i) {
|
|
865
|
+
var r = this, n = r._prom;
|
|
866
|
+
return new Promise(function(s) {
|
|
867
|
+
var a = V(i) ? i : vr, l = function() {
|
|
868
|
+
var f = r.then;
|
|
869
|
+
r.then = null, n && n(), V(a) && (a = a(r)) && (a.then || a === r) && (r.then = f), s(a), r.then = f;
|
|
870
|
+
};
|
|
871
|
+
r._initted && r.totalProgress() === 1 && r._ts >= 0 || !r._tTime && r._ts < 0 ? l() : r._prom = l;
|
|
872
|
+
});
|
|
873
|
+
}, t.kill = function() {
|
|
874
|
+
pe(this);
|
|
875
|
+
}, o;
|
|
876
|
+
}();
|
|
877
|
+
ft(ke.prototype, {
|
|
878
|
+
_time: 0,
|
|
879
|
+
_start: 0,
|
|
880
|
+
_end: 0,
|
|
881
|
+
_tTime: 0,
|
|
882
|
+
_tDur: 0,
|
|
883
|
+
_dirty: 0,
|
|
884
|
+
_repeat: 0,
|
|
885
|
+
_yoyo: !1,
|
|
886
|
+
parent: null,
|
|
887
|
+
_initted: !1,
|
|
888
|
+
_rDelay: 0,
|
|
889
|
+
_ts: 1,
|
|
890
|
+
_dp: 0,
|
|
891
|
+
ratio: 0,
|
|
892
|
+
_zTime: -R,
|
|
893
|
+
_prom: 0,
|
|
894
|
+
_ps: !1,
|
|
895
|
+
_rts: 1
|
|
896
|
+
});
|
|
897
|
+
var Z = /* @__PURE__ */ function(o) {
|
|
898
|
+
or(t, o);
|
|
899
|
+
function t(i, r) {
|
|
900
|
+
var n;
|
|
901
|
+
return i === void 0 && (i = {}), n = o.call(this, i) || this, n.labels = {}, n.smoothChildTiming = !!i.smoothChildTiming, n.autoRemoveChildren = !!i.autoRemoveChildren, n._sort = J(i.sortChildren), $ && vt(i.parent || $, kt(n), r), i.reversed && n.reverse(), i.paused && n.paused(!0), i.scrollTrigger && wr(kt(n), i.scrollTrigger), n;
|
|
902
|
+
}
|
|
903
|
+
var e = t.prototype;
|
|
904
|
+
return e.to = function(r, n, s) {
|
|
905
|
+
return ye(0, arguments, this), this;
|
|
906
|
+
}, e.from = function(r, n, s) {
|
|
907
|
+
return ye(1, arguments, this), this;
|
|
908
|
+
}, e.fromTo = function(r, n, s, a) {
|
|
909
|
+
return ye(2, arguments, this), this;
|
|
910
|
+
}, e.set = function(r, n, s) {
|
|
911
|
+
return n.duration = 0, n.parent = this, ge(n).repeatDelay || (n.repeat = 0), n.immediateRender = !!n.immediateRender, new q(r, n, ht(this, s), 1), this;
|
|
912
|
+
}, e.call = function(r, n, s) {
|
|
913
|
+
return vt(this, q.delayedCall(0, r, n), s);
|
|
914
|
+
}, e.staggerTo = function(r, n, s, a, l, u, f) {
|
|
915
|
+
return s.duration = n, s.stagger = s.stagger || a, s.onComplete = u, s.onCompleteParams = f, s.parent = this, new q(r, s, ht(this, l)), this;
|
|
916
|
+
}, e.staggerFrom = function(r, n, s, a, l, u, f) {
|
|
917
|
+
return s.runBackwards = 1, ge(s).immediateRender = J(s.immediateRender), this.staggerTo(r, n, s, a, l, u, f);
|
|
918
|
+
}, e.staggerFromTo = function(r, n, s, a, l, u, f, h) {
|
|
919
|
+
return a.startAt = s, ge(a).immediateRender = J(a.immediateRender), this.staggerTo(r, n, a, l, u, f, h);
|
|
920
|
+
}, e.render = function(r, n, s) {
|
|
921
|
+
var a = this._time, l = this._dirty ? this.totalDuration() : this._tDur, u = this._dur, f = r <= 0 ? 0 : L(r), h = this._zTime < 0 != r < 0 && (this._initted || !u), d, _, m, c, p, y, v, w, x, g, T, k;
|
|
922
|
+
if (this !== $ && f > l && r >= 0 && (f = l), f !== this._tTime || s || h) {
|
|
923
|
+
if (a !== this._time && u && (f += this._time - a, r += this._time - a), d = f, x = this._start, w = this._ts, y = !w, h && (u || (a = this._zTime), (r || !n) && (this._zTime = r)), this._repeat) {
|
|
924
|
+
if (T = this._yoyo, p = u + this._rDelay, this._repeat < -1 && r < 0)
|
|
925
|
+
return this.totalTime(p * 100 + r, n, s);
|
|
926
|
+
if (d = L(f % p), f === l ? (c = this._repeat, d = u) : (g = L(f / p), c = ~~g, c && c === g && (d = u, c--), d > u && (d = u)), g = se(this._tTime, p), !a && this._tTime && g !== c && this._tTime - g * p - this._dur <= 0 && (g = c), T && c & 1 && (d = u - d, k = 1), c !== g && !this._lock) {
|
|
927
|
+
var S = T && g & 1, b = S === (T && c & 1);
|
|
928
|
+
if (c < g && (S = !S), a = S ? 0 : f % u ? u : f, this._lock = 1, this.render(a || (k ? 0 : L(c * p)), n, !u)._lock = 0, this._tTime = f, !n && this.parent && at(this, "onRepeat"), this.vars.repeatRefresh && !k && (this.invalidate()._lock = 1, g = c), a && a !== this._time || y !== !this._ts || this.vars.onRepeat && !this.parent && !this._act)
|
|
929
|
+
return this;
|
|
930
|
+
if (u = this._dur, l = this._tDur, b && (this._lock = 2, a = S ? u : -1e-4, this.render(a, !0), this.vars.repeatRefresh && !k && this.invalidate()), this._lock = 0, !this._ts && !y)
|
|
931
|
+
return this;
|
|
932
|
+
Lr(this, k);
|
|
933
|
+
}
|
|
934
|
+
}
|
|
935
|
+
if (this._hasPause && !this._forcing && this._lock < 2 && (v = Ln(this, L(a), L(d)), v && (f -= d - (d = v._start))), this._tTime = f, this._time = d, this._act = !w, this._initted || (this._onUpdate = this.vars.onUpdate, this._initted = 1, this._zTime = r, a = 0), !a && f && u && !n && !g && (at(this, "onStart"), this._tTime !== f))
|
|
936
|
+
return this;
|
|
937
|
+
if (d >= a && r >= 0)
|
|
938
|
+
for (_ = this._first; _; ) {
|
|
939
|
+
if (m = _._next, (_._act || d >= _._start) && _._ts && v !== _) {
|
|
940
|
+
if (_.parent !== this)
|
|
941
|
+
return this.render(r, n, s);
|
|
942
|
+
if (_.render(_._ts > 0 ? (d - _._start) * _._ts : (_._dirty ? _.totalDuration() : _._tDur) + (d - _._start) * _._ts, n, s), d !== this._time || !this._ts && !y) {
|
|
943
|
+
v = 0, m && (f += this._zTime = -R);
|
|
944
|
+
break;
|
|
945
|
+
}
|
|
946
|
+
}
|
|
947
|
+
_ = m;
|
|
948
|
+
}
|
|
949
|
+
else {
|
|
950
|
+
_ = this._last;
|
|
951
|
+
for (var O = r < 0 ? r : d; _; ) {
|
|
952
|
+
if (m = _._prev, (_._act || O <= _._end) && _._ts && v !== _) {
|
|
953
|
+
if (_.parent !== this)
|
|
954
|
+
return this.render(r, n, s);
|
|
955
|
+
if (_.render(_._ts > 0 ? (O - _._start) * _._ts : (_._dirty ? _.totalDuration() : _._tDur) + (O - _._start) * _._ts, n, s || K && Si(_)), d !== this._time || !this._ts && !y) {
|
|
956
|
+
v = 0, m && (f += this._zTime = O ? -R : R);
|
|
957
|
+
break;
|
|
958
|
+
}
|
|
959
|
+
}
|
|
960
|
+
_ = m;
|
|
961
|
+
}
|
|
962
|
+
}
|
|
963
|
+
if (v && !n && (this.pause(), v.render(d >= a ? 0 : -R)._zTime = d >= a ? 1 : -1, this._ts))
|
|
964
|
+
return this._start = x, We(this), this.render(r, n, s);
|
|
965
|
+
this._onUpdate && !n && at(this, "onUpdate", !0), (f === l && this._tTime >= this.totalDuration() || !f && a) && (x === this._start || Math.abs(w) !== Math.abs(this._ts)) && (this._lock || ((r || !u) && (f === l && this._ts > 0 || !f && this._ts < 0) && zt(this, 1), !n && !(r < 0 && !a) && (f || a || !l) && (at(this, f === l && r >= 0 ? "onComplete" : "onReverseComplete", !0), this._prom && !(f < l && this.timeScale() > 0) && this._prom())));
|
|
966
|
+
}
|
|
967
|
+
return this;
|
|
968
|
+
}, e.add = function(r, n) {
|
|
969
|
+
var s = this;
|
|
970
|
+
if (Ot(n) || (n = ht(this, n, r)), !(r instanceof ke)) {
|
|
971
|
+
if (Q(r))
|
|
972
|
+
return r.forEach(function(a) {
|
|
973
|
+
return s.add(a, n);
|
|
974
|
+
}), this;
|
|
975
|
+
if (W(r))
|
|
976
|
+
return this.addLabel(r, n);
|
|
977
|
+
if (V(r))
|
|
978
|
+
r = q.delayedCall(0, r);
|
|
979
|
+
else
|
|
980
|
+
return this;
|
|
981
|
+
}
|
|
982
|
+
return this !== r ? vt(this, r, n) : this;
|
|
983
|
+
}, e.getChildren = function(r, n, s, a) {
|
|
984
|
+
r === void 0 && (r = !0), n === void 0 && (n = !0), s === void 0 && (s = !0), a === void 0 && (a = -ct);
|
|
985
|
+
for (var l = [], u = this._first; u; )
|
|
986
|
+
u._start >= a && (u instanceof q ? n && l.push(u) : (s && l.push(u), r && l.push.apply(l, u.getChildren(!0, n, s)))), u = u._next;
|
|
987
|
+
return l;
|
|
988
|
+
}, e.getById = function(r) {
|
|
989
|
+
for (var n = this.getChildren(1, 1, 1), s = n.length; s--; )
|
|
990
|
+
if (n[s].vars.id === r)
|
|
991
|
+
return n[s];
|
|
992
|
+
}, e.remove = function(r) {
|
|
993
|
+
return W(r) ? this.removeLabel(r) : V(r) ? this.killTweensOf(r) : (r.parent === this && je(this, r), r === this._recent && (this._recent = this._last), Xt(this));
|
|
994
|
+
}, e.totalTime = function(r, n) {
|
|
995
|
+
return arguments.length ? (this._forcing = 1, !this._dp && this._ts && (this._start = L(st.time - (this._ts > 0 ? r / this._ts : (this.totalDuration() - r) / -this._ts))), o.prototype.totalTime.call(this, r, n), this._forcing = 0, this) : this._tTime;
|
|
996
|
+
}, e.addLabel = function(r, n) {
|
|
997
|
+
return this.labels[r] = ht(this, n), this;
|
|
998
|
+
}, e.removeLabel = function(r) {
|
|
999
|
+
return delete this.labels[r], this;
|
|
1000
|
+
}, e.addPause = function(r, n, s) {
|
|
1001
|
+
var a = q.delayedCall(0, n || be, s);
|
|
1002
|
+
return a.data = "isPause", this._hasPause = 1, vt(this, a, ht(this, r));
|
|
1003
|
+
}, e.removePause = function(r) {
|
|
1004
|
+
var n = this._first;
|
|
1005
|
+
for (r = ht(this, r); n; )
|
|
1006
|
+
n._start === r && n.data === "isPause" && zt(n), n = n._next;
|
|
1007
|
+
}, e.killTweensOf = function(r, n, s) {
|
|
1008
|
+
for (var a = this.getTweensOf(r, s), l = a.length; l--; )
|
|
1009
|
+
Mt !== a[l] && a[l].kill(r, n);
|
|
1010
|
+
return this;
|
|
1011
|
+
}, e.getTweensOf = function(r, n) {
|
|
1012
|
+
for (var s = [], a = dt(r), l = this._first, u = Ot(n), f; l; )
|
|
1013
|
+
l instanceof q ? Dn(l._targets, a) && (u ? (!Mt || l._initted && l._ts) && l.globalTime(0) <= n && l.globalTime(l.totalDuration()) > n : !n || l.isActive()) && s.push(l) : (f = l.getTweensOf(a, n)).length && s.push.apply(s, f), l = l._next;
|
|
1014
|
+
return s;
|
|
1015
|
+
}, e.tweenTo = function(r, n) {
|
|
1016
|
+
n = n || {};
|
|
1017
|
+
var s = this, a = ht(s, r), l = n, u = l.startAt, f = l.onStart, h = l.onStartParams, d = l.immediateRender, _, m = q.to(s, ft({
|
|
1018
|
+
ease: n.ease || "none",
|
|
1019
|
+
lazy: !1,
|
|
1020
|
+
immediateRender: !1,
|
|
1021
|
+
time: a,
|
|
1022
|
+
overwrite: "auto",
|
|
1023
|
+
duration: n.duration || Math.abs((a - (u && "time" in u ? u.time : s._time)) / s.timeScale()) || R,
|
|
1024
|
+
onStart: function() {
|
|
1025
|
+
if (s.pause(), !_) {
|
|
1026
|
+
var p = n.duration || Math.abs((a - (u && "time" in u ? u.time : s._time)) / s.timeScale());
|
|
1027
|
+
m._dur !== p && ae(m, p, 0, 1).render(m._time, !0, !0), _ = 1;
|
|
1028
|
+
}
|
|
1029
|
+
f && f.apply(m, h || []);
|
|
1030
|
+
}
|
|
1031
|
+
}, n));
|
|
1032
|
+
return d ? m.render(0) : m;
|
|
1033
|
+
}, e.tweenFromTo = function(r, n, s) {
|
|
1034
|
+
return this.tweenTo(n, ft({
|
|
1035
|
+
startAt: {
|
|
1036
|
+
time: ht(this, r)
|
|
1037
|
+
}
|
|
1038
|
+
}, s));
|
|
1039
|
+
}, e.recent = function() {
|
|
1040
|
+
return this._recent;
|
|
1041
|
+
}, e.nextLabel = function(r) {
|
|
1042
|
+
return r === void 0 && (r = this._time), qi(this, ht(this, r));
|
|
1043
|
+
}, e.previousLabel = function(r) {
|
|
1044
|
+
return r === void 0 && (r = this._time), qi(this, ht(this, r), 1);
|
|
1045
|
+
}, e.currentLabel = function(r) {
|
|
1046
|
+
return arguments.length ? this.seek(r, !0) : this.previousLabel(this._time + R);
|
|
1047
|
+
}, e.shiftChildren = function(r, n, s) {
|
|
1048
|
+
s === void 0 && (s = 0);
|
|
1049
|
+
var a = this._first, l = this.labels, u;
|
|
1050
|
+
for (r = L(r); a; )
|
|
1051
|
+
a._start >= s && (a._start += r, a._end += r), a = a._next;
|
|
1052
|
+
if (n)
|
|
1053
|
+
for (u in l)
|
|
1054
|
+
l[u] >= s && (l[u] += r);
|
|
1055
|
+
return Xt(this);
|
|
1056
|
+
}, e.invalidate = function(r) {
|
|
1057
|
+
var n = this._first;
|
|
1058
|
+
for (this._lock = 0; n; )
|
|
1059
|
+
n.invalidate(r), n = n._next;
|
|
1060
|
+
return o.prototype.invalidate.call(this, r);
|
|
1061
|
+
}, e.clear = function(r) {
|
|
1062
|
+
r === void 0 && (r = !0);
|
|
1063
|
+
for (var n = this._first, s; n; )
|
|
1064
|
+
s = n._next, this.remove(n), n = s;
|
|
1065
|
+
return this._dp && (this._time = this._tTime = this._pTime = 0), r && (this.labels = {}), Xt(this);
|
|
1066
|
+
}, e.totalDuration = function(r) {
|
|
1067
|
+
var n = 0, s = this, a = s._last, l = ct, u, f, h;
|
|
1068
|
+
if (arguments.length)
|
|
1069
|
+
return s.timeScale((s._repeat < 0 ? s.duration() : s.totalDuration()) / (s.reversed() ? -r : r));
|
|
1070
|
+
if (s._dirty) {
|
|
1071
|
+
for (h = s.parent; a; )
|
|
1072
|
+
u = a._prev, a._dirty && a.totalDuration(), f = a._start, f > l && s._sort && a._ts && !s._lock ? (s._lock = 1, vt(s, a, f - a._delay, 1)._lock = 0) : l = f, f < 0 && a._ts && (n -= f, (!h && !s._dp || h && h.smoothChildTiming) && (s._start += L(f / s._ts), s._time -= f, s._tTime -= f), s.shiftChildren(-f, !1, -1 / 0), l = 0), a._end > n && a._ts && (n = a._end), a = u;
|
|
1073
|
+
ae(s, s === $ && s._time > n ? s._time : n, 1, 1), s._dirty = 0;
|
|
1074
|
+
}
|
|
1075
|
+
return s._tDur;
|
|
1076
|
+
}, t.updateRoot = function(r) {
|
|
1077
|
+
if ($._ts && (gr($, Ne(r, $)), pr = st.frame), st.frame >= Bi) {
|
|
1078
|
+
Bi += lt.autoSleep || 120;
|
|
1079
|
+
var n = $._first;
|
|
1080
|
+
if ((!n || !n._ts) && lt.autoSleep && st._listeners.length < 2) {
|
|
1081
|
+
for (; n && !n._ts; )
|
|
1082
|
+
n = n._next;
|
|
1083
|
+
n || st.sleep();
|
|
1084
|
+
}
|
|
1085
|
+
}
|
|
1086
|
+
}, t;
|
|
1087
|
+
}(ke);
|
|
1088
|
+
ft(Z.prototype, {
|
|
1089
|
+
_lock: 0,
|
|
1090
|
+
_hasPause: 0,
|
|
1091
|
+
_forcing: 0
|
|
1092
|
+
});
|
|
1093
|
+
var Jn = function(t, e, i, r, n, s, a) {
|
|
1094
|
+
var l = new et(this._pt, t, e, 0, 1, Xr, null, n), u = 0, f = 0, h, d, _, m, c, p, y, v;
|
|
1095
|
+
for (l.b = i, l.e = r, i += "", r += "", (y = ~r.indexOf("random(")) && (r = we(r)), s && (v = [i, r], s(v, t, e), i = v[0], r = v[1]), d = i.match(Ke) || []; h = Ke.exec(r); )
|
|
1096
|
+
m = h[0], c = r.substring(u, h.index), _ ? _ = (_ + 1) % 5 : c.substr(-5) === "rgba(" && (_ = 1), m !== d[f++] && (p = parseFloat(d[f - 1]) || 0, l._pt = {
|
|
1097
|
+
_next: l._pt,
|
|
1098
|
+
p: c || f === 1 ? c : ",",
|
|
1099
|
+
//note: SVG spec allows omission of comma/space when a negative sign is wedged between two numbers, like 2.5-5.3 instead of 2.5,-5.3 but when tweening, the negative value may switch to positive, so we insert the comma just in case.
|
|
1100
|
+
s: p,
|
|
1101
|
+
c: m.charAt(1) === "=" ? te(p, m) - p : parseFloat(m) - p,
|
|
1102
|
+
m: _ && _ < 4 ? Math.round : 0
|
|
1103
|
+
}, u = Ke.lastIndex);
|
|
1104
|
+
return l.c = u < r.length ? r.substring(u, r.length) : "", l.fp = a, (hr.test(r) || y) && (l.e = 0), this._pt = l, l;
|
|
1105
|
+
}, Pi = function(t, e, i, r, n, s, a, l, u, f) {
|
|
1106
|
+
V(r) && (r = r(n || 0, t, s));
|
|
1107
|
+
var h = t[e], d = i !== "get" ? i : V(h) ? u ? t[e.indexOf("set") || !V(t["get" + e.substr(3)]) ? e : "get" + e.substr(3)](u) : t[e]() : h, _ = V(h) ? u ? ns : Yr : Ci, m;
|
|
1108
|
+
if (W(r) && (~r.indexOf("random(") && (r = we(r)), r.charAt(1) === "=" && (m = te(d, r) + (H(d) || 0), (m || m === 0) && (r = m))), !f || d !== r || hi)
|
|
1109
|
+
return !isNaN(d * r) && r !== "" ? (m = new et(this._pt, t, e, +d || 0, r - (d || 0), typeof h == "boolean" ? as : qr, 0, _), u && (m.fp = u), a && m.modifier(a, this, t), this._pt = m) : (!h && !(e in t) && bi(e, r), Jn.call(this, t, e, d, r, _, l || lt.stringFilter, u));
|
|
1110
|
+
}, ts = function(t, e, i, r, n) {
|
|
1111
|
+
if (V(t) && (t = ve(t, n, e, i, r)), !bt(t) || t.style && t.nodeType || Q(t) || ur(t))
|
|
1112
|
+
return W(t) ? ve(t, n, e, i, r) : t;
|
|
1113
|
+
var s = {}, a;
|
|
1114
|
+
for (a in t)
|
|
1115
|
+
s[a] = ve(t[a], n, e, i, r);
|
|
1116
|
+
return s;
|
|
1117
|
+
}, Br = function(t, e, i, r, n, s) {
|
|
1118
|
+
var a, l, u, f;
|
|
1119
|
+
if (nt[t] && (a = new nt[t]()).init(n, a.rawVars ? e[t] : ts(e[t], r, n, s, i), i, r, s) !== !1 && (i._pt = l = new et(i._pt, n, t, 0, 1, a.render, a, 0, a.priority), i !== Jt))
|
|
1120
|
+
for (u = i._ptLookup[i._targets.indexOf(n)], f = a._props.length; f--; )
|
|
1121
|
+
u[a._props[f]] = l;
|
|
1122
|
+
return a;
|
|
1123
|
+
}, Mt, hi, Oi = function o(t, e, i) {
|
|
1124
|
+
var r = t.vars, n = r.ease, s = r.startAt, a = r.immediateRender, l = r.lazy, u = r.onUpdate, f = r.runBackwards, h = r.yoyoEase, d = r.keyframes, _ = r.autoRevert, m = t._dur, c = t._startAt, p = t._targets, y = t.parent, v = y && y.data === "nested" ? y.vars.targets : p, w = t._overwrite === "auto" && !gi, x = t.timeline, g, T, k, S, b, O, M, D, z, G, X, Y, j;
|
|
1125
|
+
if (x && (!d || !n) && (n = "none"), t._ease = jt(n, re.ease), t._yEase = h ? Fr(jt(h === !0 ? n : h, re.ease)) : 0, h && t._yoyo && !t._repeat && (h = t._yEase, t._yEase = t._ease, t._ease = h), t._from = !x && !!r.runBackwards, !x || d && !r.stagger) {
|
|
1126
|
+
if (D = p[0] ? qt(p[0]).harness : 0, Y = D && r[D.prop], g = $e(r, wi), c && (c._zTime < 0 && c.progress(1), e < 0 && f && a && !_ ? c.render(-1, !0) : c.revert(f && m ? Re : Cn), c._lazy = 0), s) {
|
|
1127
|
+
if (zt(t._startAt = q.set(p, ft({
|
|
1128
|
+
data: "isStart",
|
|
1129
|
+
overwrite: !1,
|
|
1130
|
+
parent: y,
|
|
1131
|
+
immediateRender: !0,
|
|
1132
|
+
lazy: !c && J(l),
|
|
1133
|
+
startAt: null,
|
|
1134
|
+
delay: 0,
|
|
1135
|
+
onUpdate: u && function() {
|
|
1136
|
+
return at(t, "onUpdate");
|
|
1137
|
+
},
|
|
1138
|
+
stagger: 0
|
|
1139
|
+
}, s))), t._startAt._dp = 0, t._startAt._sat = t, e < 0 && (K || !a && !_) && t._startAt.revert(Re), a && m && e <= 0 && i <= 0) {
|
|
1140
|
+
e && (t._zTime = e);
|
|
1141
|
+
return;
|
|
1142
|
+
}
|
|
1143
|
+
} else if (f && m && !c) {
|
|
1144
|
+
if (e && (a = !1), k = ft({
|
|
1145
|
+
overwrite: !1,
|
|
1146
|
+
data: "isFromStart",
|
|
1147
|
+
//we tag the tween with as "isFromStart" so that if [inside a plugin] we need to only do something at the very END of a tween, we have a way of identifying this tween as merely the one that's setting the beginning values for a "from()" tween. For example, clearProps in CSSPlugin should only get applied at the very END of a tween and without this tag, from(...{height:100, clearProps:"height", delay:1}) would wipe the height at the beginning of the tween and after 1 second, it'd kick back in.
|
|
1148
|
+
lazy: a && !c && J(l),
|
|
1149
|
+
immediateRender: a,
|
|
1150
|
+
//zero-duration tweens render immediately by default, but if we're not specifically instructed to render this tween immediately, we should skip this and merely _init() to record the starting values (rendering them immediately would push them to completion which is wasteful in that case - we'd have to render(-1) immediately after)
|
|
1151
|
+
stagger: 0,
|
|
1152
|
+
parent: y
|
|
1153
|
+
//ensures that nested tweens that had a stagger are handled properly, like gsap.from(".class", {y: gsap.utils.wrap([-100,100]), stagger: 0.5})
|
|
1154
|
+
}, g), Y && (k[D.prop] = Y), zt(t._startAt = q.set(p, k)), t._startAt._dp = 0, t._startAt._sat = t, e < 0 && (K ? t._startAt.revert(Re) : t._startAt.render(-1, !0)), t._zTime = e, !a)
|
|
1155
|
+
o(t._startAt, R, R);
|
|
1156
|
+
else if (!e)
|
|
1157
|
+
return;
|
|
1158
|
+
}
|
|
1159
|
+
for (t._pt = t._ptCache = 0, l = m && J(l) || l && !m, T = 0; T < p.length; T++) {
|
|
1160
|
+
if (b = p[T], M = b._gsap || ki(p)[T]._gsap, t._ptLookup[T] = G = {}, si[M.id] && Et.length && Le(), X = v === p ? T : v.indexOf(b), D && (z = new D()).init(b, Y || g, t, X, v) !== !1 && (t._pt = S = new et(t._pt, b, z.name, 0, 1, z.render, z, 0, z.priority), z._props.forEach(function(_t) {
|
|
1161
|
+
G[_t] = S;
|
|
1162
|
+
}), z.priority && (O = 1)), !D || Y)
|
|
1163
|
+
for (k in g)
|
|
1164
|
+
nt[k] && (z = Br(k, g, t, X, b, v)) ? z.priority && (O = 1) : G[k] = S = Pi.call(t, b, k, "get", g[k], X, v, 0, r.stringFilter);
|
|
1165
|
+
t._op && t._op[T] && t.kill(b, t._op[T]), w && t._pt && (Mt = t, $.killTweensOf(b, G, t.globalTime(e)), j = !t.parent, Mt = 0), t._pt && l && (si[M.id] = 1);
|
|
1166
|
+
}
|
|
1167
|
+
O && jr(t), t._onInit && t._onInit(t);
|
|
1168
|
+
}
|
|
1169
|
+
t._onUpdate = u, t._initted = (!t._op || t._pt) && !j, d && e <= 0 && x.render(ct, !0, !0);
|
|
1170
|
+
}, es = function(t, e, i, r, n, s, a, l) {
|
|
1171
|
+
var u = (t._pt && t._ptCache || (t._ptCache = {}))[e], f, h, d, _;
|
|
1172
|
+
if (!u)
|
|
1173
|
+
for (u = t._ptCache[e] = [], d = t._ptLookup, _ = t._targets.length; _--; ) {
|
|
1174
|
+
if (f = d[_][e], f && f.d && f.d._pt)
|
|
1175
|
+
for (f = f.d._pt; f && f.p !== e && f.fp !== e; )
|
|
1176
|
+
f = f._next;
|
|
1177
|
+
if (!f)
|
|
1178
|
+
return hi = 1, t.vars[e] = "+=0", Oi(t, a), hi = 0, l ? xe(e + " not eligible for reset") : 1;
|
|
1179
|
+
u.push(f);
|
|
1180
|
+
}
|
|
1181
|
+
for (_ = u.length; _--; )
|
|
1182
|
+
h = u[_], f = h._pt || h, f.s = (r || r === 0) && !n ? r : f.s + (r || 0) + s * f.c, f.c = i - f.s, h.e && (h.e = U(i) + H(h.e)), h.b && (h.b = f.s + H(h.b));
|
|
1183
|
+
}, is = function(t, e) {
|
|
1184
|
+
var i = t[0] ? qt(t[0]).harness : 0, r = i && i.aliases, n, s, a, l;
|
|
1185
|
+
if (!r)
|
|
1186
|
+
return e;
|
|
1187
|
+
n = ne({}, e);
|
|
1188
|
+
for (s in r)
|
|
1189
|
+
if (s in n)
|
|
1190
|
+
for (l = r[s].split(","), a = l.length; a--; )
|
|
1191
|
+
n[l[a]] = n[s];
|
|
1192
|
+
return n;
|
|
1193
|
+
}, rs = function(t, e, i, r) {
|
|
1194
|
+
var n = e.ease || r || "power1.inOut", s, a;
|
|
1195
|
+
if (Q(e))
|
|
1196
|
+
a = i[t] || (i[t] = []), e.forEach(function(l, u) {
|
|
1197
|
+
return a.push({
|
|
1198
|
+
t: u / (e.length - 1) * 100,
|
|
1199
|
+
v: l,
|
|
1200
|
+
e: n
|
|
1201
|
+
});
|
|
1202
|
+
});
|
|
1203
|
+
else
|
|
1204
|
+
for (s in e)
|
|
1205
|
+
a = i[s] || (i[s] = []), s === "ease" || a.push({
|
|
1206
|
+
t: parseFloat(t),
|
|
1207
|
+
v: e[s],
|
|
1208
|
+
e: n
|
|
1209
|
+
});
|
|
1210
|
+
}, ve = function(t, e, i, r, n) {
|
|
1211
|
+
return V(t) ? t.call(e, i, r, n) : W(t) && ~t.indexOf("random(") ? we(t) : t;
|
|
1212
|
+
}, Vr = Ti + "repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert", Ur = {};
|
|
1213
|
+
tt(Vr + ",id,stagger,delay,duration,paused,scrollTrigger", function(o) {
|
|
1214
|
+
return Ur[o] = 1;
|
|
1215
|
+
});
|
|
1216
|
+
var q = /* @__PURE__ */ function(o) {
|
|
1217
|
+
or(t, o);
|
|
1218
|
+
function t(i, r, n, s) {
|
|
1219
|
+
var a;
|
|
1220
|
+
typeof r == "number" && (n.duration = r, r = n, n = null), a = o.call(this, s ? r : ge(r)) || this;
|
|
1221
|
+
var l = a.vars, u = l.duration, f = l.delay, h = l.immediateRender, d = l.stagger, _ = l.overwrite, m = l.keyframes, c = l.defaults, p = l.scrollTrigger, y = l.yoyoEase, v = r.parent || $, w = (Q(i) || ur(i) ? Ot(i[0]) : "length" in r) ? [i] : dt(i), x, g, T, k, S, b, O, M;
|
|
1222
|
+
if (a._targets = w.length ? ki(w) : xe("GSAP target " + i + " not found. https://gsap.com", !lt.nullTargetWarn) || [], a._ptLookup = [], a._overwrite = _, m || d || Ee(u) || Ee(f)) {
|
|
1223
|
+
if (r = a.vars, x = a.timeline = new Z({
|
|
1224
|
+
data: "nested",
|
|
1225
|
+
defaults: c || {},
|
|
1226
|
+
targets: v && v.data === "nested" ? v.vars.targets : w
|
|
1227
|
+
}), x.kill(), x.parent = x._dp = kt(a), x._start = 0, d || Ee(u) || Ee(f)) {
|
|
1228
|
+
if (k = w.length, O = d && Pr(d), bt(d))
|
|
1229
|
+
for (S in d)
|
|
1230
|
+
~Vr.indexOf(S) && (M || (M = {}), M[S] = d[S]);
|
|
1231
|
+
for (g = 0; g < k; g++)
|
|
1232
|
+
T = $e(r, Ur), T.stagger = 0, y && (T.yoyoEase = y), M && ne(T, M), b = w[g], T.duration = +ve(u, kt(a), g, b, w), T.delay = (+ve(f, kt(a), g, b, w) || 0) - a._delay, !d && k === 1 && T.delay && (a._delay = f = T.delay, a._start += f, T.delay = 0), x.to(b, T, O ? O(g, b, w) : 0), x._ease = C.none;
|
|
1233
|
+
x.duration() ? u = f = 0 : a.timeline = 0;
|
|
1234
|
+
} else if (m) {
|
|
1235
|
+
ge(ft(x.vars.defaults, {
|
|
1236
|
+
ease: "none"
|
|
1237
|
+
})), x._ease = jt(m.ease || r.ease || "none");
|
|
1238
|
+
var D = 0, z, G, X;
|
|
1239
|
+
if (Q(m))
|
|
1240
|
+
m.forEach(function(Y) {
|
|
1241
|
+
return x.to(w, Y, ">");
|
|
1242
|
+
}), x.duration();
|
|
1243
|
+
else {
|
|
1244
|
+
T = {};
|
|
1245
|
+
for (S in m)
|
|
1246
|
+
S === "ease" || S === "easeEach" || rs(S, m[S], T, m.easeEach);
|
|
1247
|
+
for (S in T)
|
|
1248
|
+
for (z = T[S].sort(function(Y, j) {
|
|
1249
|
+
return Y.t - j.t;
|
|
1250
|
+
}), D = 0, g = 0; g < z.length; g++)
|
|
1251
|
+
G = z[g], X = {
|
|
1252
|
+
ease: G.e,
|
|
1253
|
+
duration: (G.t - (g ? z[g - 1].t : 0)) / 100 * u
|
|
1254
|
+
}, X[S] = G.v, x.to(w, X, D), D += X.duration;
|
|
1255
|
+
x.duration() < u && x.to({}, {
|
|
1256
|
+
duration: u - x.duration()
|
|
1257
|
+
});
|
|
1258
|
+
}
|
|
1259
|
+
}
|
|
1260
|
+
u || a.duration(u = x.duration());
|
|
1261
|
+
} else
|
|
1262
|
+
a.timeline = 0;
|
|
1263
|
+
return _ === !0 && !gi && (Mt = kt(a), $.killTweensOf(w), Mt = 0), vt(v, kt(a), n), r.reversed && a.reverse(), r.paused && a.paused(!0), (h || !u && !m && a._start === L(v._time) && J(h) && zn(kt(a)) && v.data !== "nested") && (a._tTime = -R, a.render(Math.max(0, -f) || 0)), p && wr(kt(a), p), a;
|
|
1264
|
+
}
|
|
1265
|
+
var e = t.prototype;
|
|
1266
|
+
return e.render = function(r, n, s) {
|
|
1267
|
+
var a = this._time, l = this._tDur, u = this._dur, f = r < 0, h = r > l - R && !f ? l : r < R ? 0 : r, d, _, m, c, p, y, v, w, x;
|
|
1268
|
+
if (!u)
|
|
1269
|
+
Fn(this, r, n, s);
|
|
1270
|
+
else if (h !== this._tTime || !r || s || !this._initted && this._tTime || this._startAt && this._zTime < 0 !== f || this._lazy) {
|
|
1271
|
+
if (d = h, w = this.timeline, this._repeat) {
|
|
1272
|
+
if (c = u + this._rDelay, this._repeat < -1 && f)
|
|
1273
|
+
return this.totalTime(c * 100 + r, n, s);
|
|
1274
|
+
if (d = L(h % c), h === l ? (m = this._repeat, d = u) : (p = L(h / c), m = ~~p, m && m === p ? (d = u, m--) : d > u && (d = u)), y = this._yoyo && m & 1, y && (x = this._yEase, d = u - d), p = se(this._tTime, c), d === a && !s && this._initted && m === p)
|
|
1275
|
+
return this._tTime = h, this;
|
|
1276
|
+
m !== p && (w && this._yEase && Lr(w, y), this.vars.repeatRefresh && !y && !this._lock && d !== c && this._initted && (this._lock = s = 1, this.render(L(c * m), !0).invalidate()._lock = 0));
|
|
1277
|
+
}
|
|
1278
|
+
if (!this._initted) {
|
|
1279
|
+
if (Tr(this, f ? r : d, s, n, h))
|
|
1280
|
+
return this._tTime = 0, this;
|
|
1281
|
+
if (a !== this._time && !(s && this.vars.repeatRefresh && m !== p))
|
|
1282
|
+
return this;
|
|
1283
|
+
if (u !== this._dur)
|
|
1284
|
+
return this.render(r, n, s);
|
|
1285
|
+
}
|
|
1286
|
+
if (this._tTime = h, this._time = d, !this._act && this._ts && (this._act = 1, this._lazy = 0), this.ratio = v = (x || this._ease)(d / u), this._from && (this.ratio = v = 1 - v), !a && h && !n && !p && (at(this, "onStart"), this._tTime !== h))
|
|
1287
|
+
return this;
|
|
1288
|
+
for (_ = this._pt; _; )
|
|
1289
|
+
_.r(v, _.d), _ = _._next;
|
|
1290
|
+
w && w.render(r < 0 ? r : w._dur * w._ease(d / this._dur), n, s) || this._startAt && (this._zTime = r), this._onUpdate && !n && (f && ai(this, r, n, s), at(this, "onUpdate")), this._repeat && m !== p && this.vars.onRepeat && !n && this.parent && at(this, "onRepeat"), (h === this._tDur || !h) && this._tTime === h && (f && !this._onUpdate && ai(this, r, !0, !0), (r || !u) && (h === this._tDur && this._ts > 0 || !h && this._ts < 0) && zt(this, 1), !n && !(f && !a) && (h || a || y) && (at(this, h === l ? "onComplete" : "onReverseComplete", !0), this._prom && !(h < l && this.timeScale() > 0) && this._prom()));
|
|
1291
|
+
}
|
|
1292
|
+
return this;
|
|
1293
|
+
}, e.targets = function() {
|
|
1294
|
+
return this._targets;
|
|
1295
|
+
}, e.invalidate = function(r) {
|
|
1296
|
+
return (!r || !this.vars.runBackwards) && (this._startAt = 0), this._pt = this._op = this._onUpdate = this._lazy = this.ratio = 0, this._ptLookup = [], this.timeline && this.timeline.invalidate(r), o.prototype.invalidate.call(this, r);
|
|
1297
|
+
}, e.resetTo = function(r, n, s, a, l) {
|
|
1298
|
+
Te || st.wake(), this._ts || this.play();
|
|
1299
|
+
var u = Math.min(this._dur, (this._dp._time - this._start) * this._ts), f;
|
|
1300
|
+
return this._initted || Oi(this, u), f = this._ease(u / this._dur), es(this, r, n, s, a, f, u, l) ? this.resetTo(r, n, s, a, 1) : (Ge(this, 0), this.parent || xr(this._dp, this, "_first", "_last", this._dp._sort ? "_start" : 0), this.render(0));
|
|
1301
|
+
}, e.kill = function(r, n) {
|
|
1302
|
+
if (n === void 0 && (n = "all"), !r && (!n || n === "all"))
|
|
1303
|
+
return this._lazy = this._pt = 0, this.parent ? pe(this) : this.scrollTrigger && this.scrollTrigger.kill(!!K), this;
|
|
1304
|
+
if (this.timeline) {
|
|
1305
|
+
var s = this.timeline.totalDuration();
|
|
1306
|
+
return this.timeline.killTweensOf(r, n, Mt && Mt.vars.overwrite !== !0)._first || pe(this), this.parent && s !== this.timeline.totalDuration() && ae(this, this._dur * this.timeline._tDur / s, 0, 1), this;
|
|
1307
|
+
}
|
|
1308
|
+
var a = this._targets, l = r ? dt(r) : a, u = this._ptLookup, f = this._pt, h, d, _, m, c, p, y;
|
|
1309
|
+
if ((!n || n === "all") && En(a, l))
|
|
1310
|
+
return n === "all" && (this._pt = 0), pe(this);
|
|
1311
|
+
for (h = this._op = this._op || [], n !== "all" && (W(n) && (c = {}, tt(n, function(v) {
|
|
1312
|
+
return c[v] = 1;
|
|
1313
|
+
}), n = c), n = is(a, n)), y = a.length; y--; )
|
|
1314
|
+
if (~l.indexOf(a[y])) {
|
|
1315
|
+
d = u[y], n === "all" ? (h[y] = n, m = d, _ = {}) : (_ = h[y] = h[y] || {}, m = n);
|
|
1316
|
+
for (c in m)
|
|
1317
|
+
p = d && d[c], p && ((!("kill" in p.d) || p.d.kill(c) === !0) && je(this, p, "_pt"), delete d[c]), _ !== "all" && (_[c] = 1);
|
|
1318
|
+
}
|
|
1319
|
+
return this._initted && !this._pt && f && pe(this), this;
|
|
1320
|
+
}, t.to = function(r, n) {
|
|
1321
|
+
return new t(r, n, arguments[2]);
|
|
1322
|
+
}, t.from = function(r, n) {
|
|
1323
|
+
return ye(1, arguments);
|
|
1324
|
+
}, t.delayedCall = function(r, n, s, a) {
|
|
1325
|
+
return new t(n, 0, {
|
|
1326
|
+
immediateRender: !1,
|
|
1327
|
+
lazy: !1,
|
|
1328
|
+
overwrite: !1,
|
|
1329
|
+
delay: r,
|
|
1330
|
+
onComplete: n,
|
|
1331
|
+
onReverseComplete: n,
|
|
1332
|
+
onCompleteParams: s,
|
|
1333
|
+
onReverseCompleteParams: s,
|
|
1334
|
+
callbackScope: a
|
|
1335
|
+
});
|
|
1336
|
+
}, t.fromTo = function(r, n, s) {
|
|
1337
|
+
return ye(2, arguments);
|
|
1338
|
+
}, t.set = function(r, n) {
|
|
1339
|
+
return n.duration = 0, n.repeatDelay || (n.repeat = 0), new t(r, n);
|
|
1340
|
+
}, t.killTweensOf = function(r, n, s) {
|
|
1341
|
+
return $.killTweensOf(r, n, s);
|
|
1342
|
+
}, t;
|
|
1343
|
+
}(ke);
|
|
1344
|
+
ft(q.prototype, {
|
|
1345
|
+
_targets: [],
|
|
1346
|
+
_lazy: 0,
|
|
1347
|
+
_startAt: 0,
|
|
1348
|
+
_op: 0,
|
|
1349
|
+
_onInit: 0
|
|
1350
|
+
});
|
|
1351
|
+
tt("staggerTo,staggerFrom,staggerFromTo", function(o) {
|
|
1352
|
+
q[o] = function() {
|
|
1353
|
+
var t = new Z(), e = li.call(arguments, 0);
|
|
1354
|
+
return e.splice(o === "staggerFromTo" ? 5 : 4, 0, 0), t[o].apply(t, e);
|
|
1355
|
+
};
|
|
1356
|
+
});
|
|
1357
|
+
var Ci = function(t, e, i) {
|
|
1358
|
+
return t[e] = i;
|
|
1359
|
+
}, Yr = function(t, e, i) {
|
|
1360
|
+
return t[e](i);
|
|
1361
|
+
}, ns = function(t, e, i, r) {
|
|
1362
|
+
return t[e](r.fp, i);
|
|
1363
|
+
}, ss = function(t, e, i) {
|
|
1364
|
+
return t.setAttribute(e, i);
|
|
1365
|
+
}, Mi = function(t, e) {
|
|
1366
|
+
return V(t[e]) ? Yr : yi(t[e]) && t.setAttribute ? ss : Ci;
|
|
1367
|
+
}, qr = function(t, e) {
|
|
1368
|
+
return e.set(e.t, e.p, Math.round((e.s + e.c * t) * 1e6) / 1e6, e);
|
|
1369
|
+
}, as = function(t, e) {
|
|
1370
|
+
return e.set(e.t, e.p, !!(e.s + e.c * t), e);
|
|
1371
|
+
}, Xr = function(t, e) {
|
|
1372
|
+
var i = e._pt, r = "";
|
|
1373
|
+
if (!t && e.b)
|
|
1374
|
+
r = e.b;
|
|
1375
|
+
else if (t === 1 && e.e)
|
|
1376
|
+
r = e.e;
|
|
1377
|
+
else {
|
|
1378
|
+
for (; i; )
|
|
1379
|
+
r = i.p + (i.m ? i.m(i.s + i.c * t) : Math.round((i.s + i.c * t) * 1e4) / 1e4) + r, i = i._next;
|
|
1380
|
+
r += e.c;
|
|
1381
|
+
}
|
|
1382
|
+
e.set(e.t, e.p, r, e);
|
|
1383
|
+
}, Di = function(t, e) {
|
|
1384
|
+
for (var i = e._pt; i; )
|
|
1385
|
+
i.r(t, i.d), i = i._next;
|
|
1386
|
+
}, os = function(t, e, i, r) {
|
|
1387
|
+
for (var n = this._pt, s; n; )
|
|
1388
|
+
s = n._next, n.p === r && n.modifier(t, e, i), n = s;
|
|
1389
|
+
}, ls = function(t) {
|
|
1390
|
+
for (var e = this._pt, i, r; e; )
|
|
1391
|
+
r = e._next, e.p === t && !e.op || e.op === t ? je(this, e, "_pt") : e.dep || (i = 1), e = r;
|
|
1392
|
+
return !i;
|
|
1393
|
+
}, us = function(t, e, i, r) {
|
|
1394
|
+
r.mSet(t, e, r.m.call(r.tween, i, r.mt), r);
|
|
1395
|
+
}, jr = function(t) {
|
|
1396
|
+
for (var e = t._pt, i, r, n, s; e; ) {
|
|
1397
|
+
for (i = e._next, r = n; r && r.pr > e.pr; )
|
|
1398
|
+
r = r._next;
|
|
1399
|
+
(e._prev = r ? r._prev : s) ? e._prev._next = e : n = e, (e._next = r) ? r._prev = e : s = e, e = i;
|
|
1400
|
+
}
|
|
1401
|
+
t._pt = n;
|
|
1402
|
+
}, et = /* @__PURE__ */ function() {
|
|
1403
|
+
function o(e, i, r, n, s, a, l, u, f) {
|
|
1404
|
+
this.t = i, this.s = n, this.c = s, this.p = r, this.r = a || qr, this.d = l || this, this.set = u || Ci, this.pr = f || 0, this._next = e, e && (e._prev = this);
|
|
1405
|
+
}
|
|
1406
|
+
var t = o.prototype;
|
|
1407
|
+
return t.modifier = function(i, r, n) {
|
|
1408
|
+
this.mSet = this.mSet || this.set, this.set = us, this.m = i, this.mt = n, this.tween = r;
|
|
1409
|
+
}, o;
|
|
1410
|
+
}();
|
|
1411
|
+
tt(Ti + "parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger", function(o) {
|
|
1412
|
+
return wi[o] = 1;
|
|
1413
|
+
});
|
|
1414
|
+
ut.TweenMax = ut.TweenLite = q;
|
|
1415
|
+
ut.TimelineLite = ut.TimelineMax = Z;
|
|
1416
|
+
$ = new Z({
|
|
1417
|
+
sortChildren: !1,
|
|
1418
|
+
defaults: re,
|
|
1419
|
+
autoRemoveChildren: !0,
|
|
1420
|
+
id: "root",
|
|
1421
|
+
smoothChildTiming: !0
|
|
1422
|
+
});
|
|
1423
|
+
lt.stringFilter = Ir;
|
|
1424
|
+
var Wt = [], Ie = {}, fs = [], ji = 0, hs = 0, ti = function(t) {
|
|
1425
|
+
return (Ie[t] || fs).map(function(e) {
|
|
1426
|
+
return e();
|
|
1427
|
+
});
|
|
1428
|
+
}, ci = function() {
|
|
1429
|
+
var t = Date.now(), e = [];
|
|
1430
|
+
t - ji > 2 && (ti("matchMediaInit"), Wt.forEach(function(i) {
|
|
1431
|
+
var r = i.queries, n = i.conditions, s, a, l, u;
|
|
1432
|
+
for (a in r)
|
|
1433
|
+
s = yt.matchMedia(r[a]).matches, s && (l = 1), s !== n[a] && (n[a] = s, u = 1);
|
|
1434
|
+
u && (i.revert(), l && e.push(i));
|
|
1435
|
+
}), ti("matchMediaRevert"), e.forEach(function(i) {
|
|
1436
|
+
return i.onMatch(i, function(r) {
|
|
1437
|
+
return i.add(null, r);
|
|
1438
|
+
});
|
|
1439
|
+
}), ji = t, ti("matchMedia"));
|
|
1440
|
+
}, Wr = /* @__PURE__ */ function() {
|
|
1441
|
+
function o(e, i) {
|
|
1442
|
+
this.selector = i && ui(i), this.data = [], this._r = [], this.isReverted = !1, this.id = hs++, e && this.add(e);
|
|
1443
|
+
}
|
|
1444
|
+
var t = o.prototype;
|
|
1445
|
+
return t.add = function(i, r, n) {
|
|
1446
|
+
V(i) && (n = r, r = i, i = V);
|
|
1447
|
+
var s = this, a = function() {
|
|
1448
|
+
var u = F, f = s.selector, h;
|
|
1449
|
+
return u && u !== s && u.data.push(s), n && (s.selector = ui(n)), F = s, h = r.apply(s, arguments), V(h) && s._r.push(h), F = u, s.selector = f, s.isReverted = !1, h;
|
|
1450
|
+
};
|
|
1451
|
+
return s.last = a, i === V ? a(s, function(l) {
|
|
1452
|
+
return s.add(null, l);
|
|
1453
|
+
}) : i ? s[i] = a : a;
|
|
1454
|
+
}, t.ignore = function(i) {
|
|
1455
|
+
var r = F;
|
|
1456
|
+
F = null, i(this), F = r;
|
|
1457
|
+
}, t.getTweens = function() {
|
|
1458
|
+
var i = [];
|
|
1459
|
+
return this.data.forEach(function(r) {
|
|
1460
|
+
return r instanceof o ? i.push.apply(i, r.getTweens()) : r instanceof q && !(r.parent && r.parent.data === "nested") && i.push(r);
|
|
1461
|
+
}), i;
|
|
1462
|
+
}, t.clear = function() {
|
|
1463
|
+
this._r.length = this.data.length = 0;
|
|
1464
|
+
}, t.kill = function(i, r) {
|
|
1465
|
+
var n = this;
|
|
1466
|
+
if (i ? function() {
|
|
1467
|
+
for (var a = n.getTweens(), l = n.data.length, u; l--; )
|
|
1468
|
+
u = n.data[l], u.data === "isFlip" && (u.revert(), u.getChildren(!0, !0, !1).forEach(function(f) {
|
|
1469
|
+
return a.splice(a.indexOf(f), 1);
|
|
1470
|
+
}));
|
|
1471
|
+
for (a.map(function(f) {
|
|
1472
|
+
return {
|
|
1473
|
+
g: f._dur || f._delay || f._sat && !f._sat.vars.immediateRender ? f.globalTime(0) : -1 / 0,
|
|
1474
|
+
t: f
|
|
1475
|
+
};
|
|
1476
|
+
}).sort(function(f, h) {
|
|
1477
|
+
return h.g - f.g || -1 / 0;
|
|
1478
|
+
}).forEach(function(f) {
|
|
1479
|
+
return f.t.revert(i);
|
|
1480
|
+
}), l = n.data.length; l--; )
|
|
1481
|
+
u = n.data[l], u instanceof Z ? u.data !== "nested" && (u.scrollTrigger && u.scrollTrigger.revert(), u.kill()) : !(u instanceof q) && u.revert && u.revert(i);
|
|
1482
|
+
n._r.forEach(function(f) {
|
|
1483
|
+
return f(i, n);
|
|
1484
|
+
}), n.isReverted = !0;
|
|
1485
|
+
}() : this.data.forEach(function(a) {
|
|
1486
|
+
return a.kill && a.kill();
|
|
1487
|
+
}), this.clear(), r)
|
|
1488
|
+
for (var s = Wt.length; s--; )
|
|
1489
|
+
Wt[s].id === this.id && Wt.splice(s, 1);
|
|
1490
|
+
}, t.revert = function(i) {
|
|
1491
|
+
this.kill(i || {});
|
|
1492
|
+
}, o;
|
|
1493
|
+
}(), cs = /* @__PURE__ */ function() {
|
|
1494
|
+
function o(e) {
|
|
1495
|
+
this.contexts = [], this.scope = e, F && F.data.push(this);
|
|
1496
|
+
}
|
|
1497
|
+
var t = o.prototype;
|
|
1498
|
+
return t.add = function(i, r, n) {
|
|
1499
|
+
bt(i) || (i = {
|
|
1500
|
+
matches: i
|
|
1501
|
+
});
|
|
1502
|
+
var s = new Wr(0, n || this.scope), a = s.conditions = {}, l, u, f;
|
|
1503
|
+
F && !s.selector && (s.selector = F.selector), this.contexts.push(s), r = s.add("onMatch", r), s.queries = i;
|
|
1504
|
+
for (u in i)
|
|
1505
|
+
u === "all" ? f = 1 : (l = yt.matchMedia(i[u]), l && (Wt.indexOf(s) < 0 && Wt.push(s), (a[u] = l.matches) && (f = 1), l.addListener ? l.addListener(ci) : l.addEventListener("change", ci)));
|
|
1506
|
+
return f && r(s, function(h) {
|
|
1507
|
+
return s.add(null, h);
|
|
1508
|
+
}), this;
|
|
1509
|
+
}, t.revert = function(i) {
|
|
1510
|
+
this.kill(i || {});
|
|
1511
|
+
}, t.kill = function(i) {
|
|
1512
|
+
this.contexts.forEach(function(r) {
|
|
1513
|
+
return r.kill(i, !0);
|
|
1514
|
+
});
|
|
1515
|
+
}, o;
|
|
1516
|
+
}(), Be = {
|
|
1517
|
+
registerPlugin: function() {
|
|
1518
|
+
for (var t = arguments.length, e = new Array(t), i = 0; i < t; i++)
|
|
1519
|
+
e[i] = arguments[i];
|
|
1520
|
+
e.forEach(function(r) {
|
|
1521
|
+
return Er(r);
|
|
1522
|
+
});
|
|
1523
|
+
},
|
|
1524
|
+
timeline: function(t) {
|
|
1525
|
+
return new Z(t);
|
|
1526
|
+
},
|
|
1527
|
+
getTweensOf: function(t, e) {
|
|
1528
|
+
return $.getTweensOf(t, e);
|
|
1529
|
+
},
|
|
1530
|
+
getProperty: function(t, e, i, r) {
|
|
1531
|
+
W(t) && (t = dt(t)[0]);
|
|
1532
|
+
var n = qt(t || {}).get, s = i ? vr : yr;
|
|
1533
|
+
return i === "native" && (i = ""), t && (e ? s((nt[e] && nt[e].get || n)(t, e, i, r)) : function(a, l, u) {
|
|
1534
|
+
return s((nt[a] && nt[a].get || n)(t, a, l, u));
|
|
1535
|
+
});
|
|
1536
|
+
},
|
|
1537
|
+
quickSetter: function(t, e, i) {
|
|
1538
|
+
if (t = dt(t), t.length > 1) {
|
|
1539
|
+
var r = t.map(function(f) {
|
|
1540
|
+
return rt.quickSetter(f, e, i);
|
|
1541
|
+
}), n = r.length;
|
|
1542
|
+
return function(f) {
|
|
1543
|
+
for (var h = n; h--; )
|
|
1544
|
+
r[h](f);
|
|
1545
|
+
};
|
|
1546
|
+
}
|
|
1547
|
+
t = t[0] || {};
|
|
1548
|
+
var s = nt[e], a = qt(t), l = a.harness && (a.harness.aliases || {})[e] || e, u = s ? function(f) {
|
|
1549
|
+
var h = new s();
|
|
1550
|
+
Jt._pt = 0, h.init(t, i ? f + i : f, Jt, 0, [t]), h.render(1, h), Jt._pt && Di(1, Jt);
|
|
1551
|
+
} : a.set(t, l);
|
|
1552
|
+
return s ? u : function(f) {
|
|
1553
|
+
return u(t, l, i ? f + i : f, a, 1);
|
|
1554
|
+
};
|
|
1555
|
+
},
|
|
1556
|
+
quickTo: function(t, e, i) {
|
|
1557
|
+
var r, n = rt.to(t, ft((r = {}, r[e] = "+=0.1", r.paused = !0, r.stagger = 0, r), i || {})), s = function(l, u, f) {
|
|
1558
|
+
return n.resetTo(e, l, u, f);
|
|
1559
|
+
};
|
|
1560
|
+
return s.tween = n, s;
|
|
1561
|
+
},
|
|
1562
|
+
isTweening: function(t) {
|
|
1563
|
+
return $.getTweensOf(t, !0).length > 0;
|
|
1564
|
+
},
|
|
1565
|
+
defaults: function(t) {
|
|
1566
|
+
return t && t.ease && (t.ease = jt(t.ease, re.ease)), Vi(re, t || {});
|
|
1567
|
+
},
|
|
1568
|
+
config: function(t) {
|
|
1569
|
+
return Vi(lt, t || {});
|
|
1570
|
+
},
|
|
1571
|
+
registerEffect: function(t) {
|
|
1572
|
+
var e = t.name, i = t.effect, r = t.plugins, n = t.defaults, s = t.extendTimeline;
|
|
1573
|
+
(r || "").split(",").forEach(function(a) {
|
|
1574
|
+
return a && !nt[a] && !ut[a] && xe(e + " effect requires " + a + " plugin.");
|
|
1575
|
+
}), He[e] = function(a, l, u) {
|
|
1576
|
+
return i(dt(a), ft(l || {}, n), u);
|
|
1577
|
+
}, s && (Z.prototype[e] = function(a, l, u) {
|
|
1578
|
+
return this.add(He[e](a, bt(l) ? l : (u = l) && {}, this), u);
|
|
1579
|
+
});
|
|
1580
|
+
},
|
|
1581
|
+
registerEase: function(t, e) {
|
|
1582
|
+
C[t] = jt(e);
|
|
1583
|
+
},
|
|
1584
|
+
parseEase: function(t, e) {
|
|
1585
|
+
return arguments.length ? jt(t, e) : C;
|
|
1586
|
+
},
|
|
1587
|
+
getById: function(t) {
|
|
1588
|
+
return $.getById(t);
|
|
1589
|
+
},
|
|
1590
|
+
exportRoot: function(t, e) {
|
|
1591
|
+
t === void 0 && (t = {});
|
|
1592
|
+
var i = new Z(t), r, n;
|
|
1593
|
+
for (i.smoothChildTiming = J(t.smoothChildTiming), $.remove(i), i._dp = 0, i._time = i._tTime = $._time, r = $._first; r; )
|
|
1594
|
+
n = r._next, (e || !(!r._dur && r instanceof q && r.vars.onComplete === r._targets[0])) && vt(i, r, r._start - r._delay), r = n;
|
|
1595
|
+
return vt($, i, 0), i;
|
|
1596
|
+
},
|
|
1597
|
+
context: function(t, e) {
|
|
1598
|
+
return t ? new Wr(t, e) : F;
|
|
1599
|
+
},
|
|
1600
|
+
matchMedia: function(t) {
|
|
1601
|
+
return new cs(t);
|
|
1602
|
+
},
|
|
1603
|
+
matchMediaRefresh: function() {
|
|
1604
|
+
return Wt.forEach(function(t) {
|
|
1605
|
+
var e = t.conditions, i, r;
|
|
1606
|
+
for (r in e)
|
|
1607
|
+
e[r] && (e[r] = !1, i = 1);
|
|
1608
|
+
i && t.revert();
|
|
1609
|
+
}) || ci();
|
|
1610
|
+
},
|
|
1611
|
+
addEventListener: function(t, e) {
|
|
1612
|
+
var i = Ie[t] || (Ie[t] = []);
|
|
1613
|
+
~i.indexOf(e) || i.push(e);
|
|
1614
|
+
},
|
|
1615
|
+
removeEventListener: function(t, e) {
|
|
1616
|
+
var i = Ie[t], r = i && i.indexOf(e);
|
|
1617
|
+
r >= 0 && i.splice(r, 1);
|
|
1618
|
+
},
|
|
1619
|
+
utils: {
|
|
1620
|
+
wrap: qn,
|
|
1621
|
+
wrapYoyo: Xn,
|
|
1622
|
+
distribute: Pr,
|
|
1623
|
+
random: Cr,
|
|
1624
|
+
snap: Or,
|
|
1625
|
+
normalize: Yn,
|
|
1626
|
+
getUnit: H,
|
|
1627
|
+
clamp: Nn,
|
|
1628
|
+
splitColor: Rr,
|
|
1629
|
+
toArray: dt,
|
|
1630
|
+
selector: ui,
|
|
1631
|
+
mapRange: Dr,
|
|
1632
|
+
pipe: Vn,
|
|
1633
|
+
unitize: Un,
|
|
1634
|
+
interpolate: jn,
|
|
1635
|
+
shuffle: Sr
|
|
1636
|
+
},
|
|
1637
|
+
install: dr,
|
|
1638
|
+
effects: He,
|
|
1639
|
+
ticker: st,
|
|
1640
|
+
updateRoot: Z.updateRoot,
|
|
1641
|
+
plugins: nt,
|
|
1642
|
+
globalTimeline: $,
|
|
1643
|
+
core: {
|
|
1644
|
+
PropTween: et,
|
|
1645
|
+
globals: _r,
|
|
1646
|
+
Tween: q,
|
|
1647
|
+
Timeline: Z,
|
|
1648
|
+
Animation: ke,
|
|
1649
|
+
getCache: qt,
|
|
1650
|
+
_removeLinkedListItem: je,
|
|
1651
|
+
reverting: function() {
|
|
1652
|
+
return K;
|
|
1653
|
+
},
|
|
1654
|
+
context: function(t) {
|
|
1655
|
+
return t && F && (F.data.push(t), t._ctx = F), F;
|
|
1656
|
+
},
|
|
1657
|
+
suppressOverwrites: function(t) {
|
|
1658
|
+
return gi = t;
|
|
1659
|
+
}
|
|
1660
|
+
}
|
|
1661
|
+
};
|
|
1662
|
+
tt("to,from,fromTo,delayedCall,set,killTweensOf", function(o) {
|
|
1663
|
+
return Be[o] = q[o];
|
|
1664
|
+
});
|
|
1665
|
+
st.add(Z.updateRoot);
|
|
1666
|
+
Jt = Be.to({}, {
|
|
1667
|
+
duration: 0
|
|
1668
|
+
});
|
|
1669
|
+
var ds = function(t, e) {
|
|
1670
|
+
for (var i = t._pt; i && i.p !== e && i.op !== e && i.fp !== e; )
|
|
1671
|
+
i = i._next;
|
|
1672
|
+
return i;
|
|
1673
|
+
}, _s = function(t, e) {
|
|
1674
|
+
var i = t._targets, r, n, s;
|
|
1675
|
+
for (r in e)
|
|
1676
|
+
for (n = i.length; n--; )
|
|
1677
|
+
s = t._ptLookup[n][r], s && (s = s.d) && (s._pt && (s = ds(s, r)), s && s.modifier && s.modifier(e[r], t, i[n], r));
|
|
1678
|
+
}, ei = function(t, e) {
|
|
1679
|
+
return {
|
|
1680
|
+
name: t,
|
|
1681
|
+
headless: 1,
|
|
1682
|
+
rawVars: 1,
|
|
1683
|
+
//don't pre-process function-based values or "random()" strings.
|
|
1684
|
+
init: function(r, n, s) {
|
|
1685
|
+
s._onInit = function(a) {
|
|
1686
|
+
var l, u;
|
|
1687
|
+
if (W(n) && (l = {}, tt(n, function(f) {
|
|
1688
|
+
return l[f] = 1;
|
|
1689
|
+
}), n = l), e) {
|
|
1690
|
+
l = {};
|
|
1691
|
+
for (u in n)
|
|
1692
|
+
l[u] = e(n[u]);
|
|
1693
|
+
n = l;
|
|
1694
|
+
}
|
|
1695
|
+
_s(a, n);
|
|
1696
|
+
};
|
|
1697
|
+
}
|
|
1698
|
+
};
|
|
1699
|
+
}, rt = Be.registerPlugin({
|
|
1700
|
+
name: "attr",
|
|
1701
|
+
init: function(t, e, i, r, n) {
|
|
1702
|
+
var s, a, l;
|
|
1703
|
+
this.tween = i;
|
|
1704
|
+
for (s in e)
|
|
1705
|
+
l = t.getAttribute(s) || "", a = this.add(t, "setAttribute", (l || 0) + "", e[s], r, n, 0, 0, s), a.op = s, a.b = l, this._props.push(s);
|
|
1706
|
+
},
|
|
1707
|
+
render: function(t, e) {
|
|
1708
|
+
for (var i = e._pt; i; )
|
|
1709
|
+
K ? i.set(i.t, i.p, i.b, i) : i.r(t, i.d), i = i._next;
|
|
1710
|
+
}
|
|
1711
|
+
}, {
|
|
1712
|
+
name: "endArray",
|
|
1713
|
+
headless: 1,
|
|
1714
|
+
init: function(t, e) {
|
|
1715
|
+
for (var i = e.length; i--; )
|
|
1716
|
+
this.add(t, i, t[i] || 0, e[i], 0, 0, 0, 0, 0, 1);
|
|
1717
|
+
}
|
|
1718
|
+
}, ei("roundProps", fi), ei("modifiers"), ei("snap", Or)) || Be;
|
|
1719
|
+
q.version = Z.version = rt.version = "3.14.2";
|
|
1720
|
+
cr = 1;
|
|
1721
|
+
vi() && oe();
|
|
1722
|
+
C.Power0;
|
|
1723
|
+
C.Power1;
|
|
1724
|
+
C.Power2;
|
|
1725
|
+
C.Power3;
|
|
1726
|
+
C.Power4;
|
|
1727
|
+
C.Linear;
|
|
1728
|
+
C.Quad;
|
|
1729
|
+
C.Cubic;
|
|
1730
|
+
C.Quart;
|
|
1731
|
+
C.Quint;
|
|
1732
|
+
C.Strong;
|
|
1733
|
+
C.Elastic;
|
|
1734
|
+
C.Back;
|
|
1735
|
+
C.SteppedEase;
|
|
1736
|
+
C.Bounce;
|
|
1737
|
+
C.Sine;
|
|
1738
|
+
C.Expo;
|
|
1739
|
+
C.Circ;
|
|
1740
|
+
/*!
|
|
1741
|
+
* CSSPlugin 3.14.2
|
|
1742
|
+
* https://gsap.com
|
|
1743
|
+
*
|
|
1744
|
+
* Copyright 2008-2025, GreenSock. All rights reserved.
|
|
1745
|
+
* Subject to the terms at https://gsap.com/standard-license
|
|
1746
|
+
* @author: Jack Doyle, jack@greensock.com
|
|
1747
|
+
*/
|
|
1748
|
+
var Wi, Dt, ee, Ai, Yt, Gi, Ei, ps = function() {
|
|
1749
|
+
return typeof window < "u";
|
|
1750
|
+
}, Ct = {}, Ut = 180 / Math.PI, ie = Math.PI / 180, Qt = Math.atan2, Ki = 1e8, Ri = /([A-Z])/g, ms = /(left|right|width|margin|padding|x)/i, gs = /[\s,\(]\S/, xt = {
|
|
1751
|
+
autoAlpha: "opacity,visibility",
|
|
1752
|
+
scale: "scaleX,scaleY",
|
|
1753
|
+
alpha: "opacity"
|
|
1754
|
+
}, di = function(t, e) {
|
|
1755
|
+
return e.set(e.t, e.p, Math.round((e.s + e.c * t) * 1e4) / 1e4 + e.u, e);
|
|
1756
|
+
}, ys = function(t, e) {
|
|
1757
|
+
return e.set(e.t, e.p, t === 1 ? e.e : Math.round((e.s + e.c * t) * 1e4) / 1e4 + e.u, e);
|
|
1758
|
+
}, vs = function(t, e) {
|
|
1759
|
+
return e.set(e.t, e.p, t ? Math.round((e.s + e.c * t) * 1e4) / 1e4 + e.u : e.b, e);
|
|
1760
|
+
}, xs = function(t, e) {
|
|
1761
|
+
return e.set(e.t, e.p, t === 1 ? e.e : t ? Math.round((e.s + e.c * t) * 1e4) / 1e4 + e.u : e.b, e);
|
|
1762
|
+
}, bs = function(t, e) {
|
|
1763
|
+
var i = e.s + e.c * t;
|
|
1764
|
+
e.set(e.t, e.p, ~~(i + (i < 0 ? -0.5 : 0.5)) + e.u, e);
|
|
1765
|
+
}, Gr = function(t, e) {
|
|
1766
|
+
return e.set(e.t, e.p, t ? e.e : e.b, e);
|
|
1767
|
+
}, Kr = function(t, e) {
|
|
1768
|
+
return e.set(e.t, e.p, t !== 1 ? e.b : e.e, e);
|
|
1769
|
+
}, ws = function(t, e, i) {
|
|
1770
|
+
return t.style[e] = i;
|
|
1771
|
+
}, Ts = function(t, e, i) {
|
|
1772
|
+
return t.style.setProperty(e, i);
|
|
1773
|
+
}, ks = function(t, e, i) {
|
|
1774
|
+
return t._gsap[e] = i;
|
|
1775
|
+
}, Ss = function(t, e, i) {
|
|
1776
|
+
return t._gsap.scaleX = t._gsap.scaleY = i;
|
|
1777
|
+
}, Ps = function(t, e, i, r, n) {
|
|
1778
|
+
var s = t._gsap;
|
|
1779
|
+
s.scaleX = s.scaleY = i, s.renderTransform(n, s);
|
|
1780
|
+
}, Os = function(t, e, i, r, n) {
|
|
1781
|
+
var s = t._gsap;
|
|
1782
|
+
s[e] = i, s.renderTransform(n, s);
|
|
1783
|
+
}, N = "transform", it = N + "Origin", Cs = function o(t, e) {
|
|
1784
|
+
var i = this, r = this.target, n = r.style, s = r._gsap;
|
|
1785
|
+
if (t in Ct && n) {
|
|
1786
|
+
if (this.tfm = this.tfm || {}, t !== "transform")
|
|
1787
|
+
t = xt[t] || t, ~t.indexOf(",") ? t.split(",").forEach(function(a) {
|
|
1788
|
+
return i.tfm[a] = St(r, a);
|
|
1789
|
+
}) : this.tfm[t] = s.x ? s[t] : St(r, t), t === it && (this.tfm.zOrigin = s.zOrigin);
|
|
1790
|
+
else
|
|
1791
|
+
return xt.transform.split(",").forEach(function(a) {
|
|
1792
|
+
return o.call(i, a, e);
|
|
1793
|
+
});
|
|
1794
|
+
if (this.props.indexOf(N) >= 0)
|
|
1795
|
+
return;
|
|
1796
|
+
s.svg && (this.svgo = r.getAttribute("data-svg-origin"), this.props.push(it, e, "")), t = N;
|
|
1797
|
+
}
|
|
1798
|
+
(n || e) && this.props.push(t, e, n[t]);
|
|
1799
|
+
}, Hr = function(t) {
|
|
1800
|
+
t.translate && (t.removeProperty("translate"), t.removeProperty("scale"), t.removeProperty("rotate"));
|
|
1801
|
+
}, Ms = function() {
|
|
1802
|
+
var t = this.props, e = this.target, i = e.style, r = e._gsap, n, s;
|
|
1803
|
+
for (n = 0; n < t.length; n += 3)
|
|
1804
|
+
t[n + 1] ? t[n + 1] === 2 ? e[t[n]](t[n + 2]) : e[t[n]] = t[n + 2] : t[n + 2] ? i[t[n]] = t[n + 2] : i.removeProperty(t[n].substr(0, 2) === "--" ? t[n] : t[n].replace(Ri, "-$1").toLowerCase());
|
|
1805
|
+
if (this.tfm) {
|
|
1806
|
+
for (s in this.tfm)
|
|
1807
|
+
r[s] = this.tfm[s];
|
|
1808
|
+
r.svg && (r.renderTransform(), e.setAttribute("data-svg-origin", this.svgo || "")), n = Ei(), (!n || !n.isStart) && !i[N] && (Hr(i), r.zOrigin && i[it] && (i[it] += " " + r.zOrigin + "px", r.zOrigin = 0, r.renderTransform()), r.uncache = 1);
|
|
1809
|
+
}
|
|
1810
|
+
}, Qr = function(t, e) {
|
|
1811
|
+
var i = {
|
|
1812
|
+
target: t,
|
|
1813
|
+
props: [],
|
|
1814
|
+
revert: Ms,
|
|
1815
|
+
save: Cs
|
|
1816
|
+
};
|
|
1817
|
+
return t._gsap || rt.core.getCache(t), e && t.style && t.nodeType && e.split(",").forEach(function(r) {
|
|
1818
|
+
return i.save(r);
|
|
1819
|
+
}), i;
|
|
1820
|
+
}, Zr, _i = function(t, e) {
|
|
1821
|
+
var i = Dt.createElementNS ? Dt.createElementNS((e || "http://www.w3.org/1999/xhtml").replace(/^https/, "http"), t) : Dt.createElement(t);
|
|
1822
|
+
return i && i.style ? i : Dt.createElement(t);
|
|
1823
|
+
}, ot = function o(t, e, i) {
|
|
1824
|
+
var r = getComputedStyle(t);
|
|
1825
|
+
return r[e] || r.getPropertyValue(e.replace(Ri, "-$1").toLowerCase()) || r.getPropertyValue(e) || !i && o(t, le(e) || e, 1) || "";
|
|
1826
|
+
}, Hi = "O,Moz,ms,Ms,Webkit".split(","), le = function(t, e, i) {
|
|
1827
|
+
var r = e || Yt, n = r.style, s = 5;
|
|
1828
|
+
if (t in n && !i)
|
|
1829
|
+
return t;
|
|
1830
|
+
for (t = t.charAt(0).toUpperCase() + t.substr(1); s-- && !(Hi[s] + t in n); )
|
|
1831
|
+
;
|
|
1832
|
+
return s < 0 ? null : (s === 3 ? "ms" : s >= 0 ? Hi[s] : "") + t;
|
|
1833
|
+
}, pi = function() {
|
|
1834
|
+
ps() && window.document && (Wi = window, Dt = Wi.document, ee = Dt.documentElement, Yt = _i("div") || {
|
|
1835
|
+
style: {}
|
|
1836
|
+
}, _i("div"), N = le(N), it = N + "Origin", Yt.style.cssText = "border-width:0;line-height:0;position:absolute;padding:0", Zr = !!le("perspective"), Ei = rt.core.reverting, Ai = 1);
|
|
1837
|
+
}, Qi = function(t) {
|
|
1838
|
+
var e = t.ownerSVGElement, i = _i("svg", e && e.getAttribute("xmlns") || "http://www.w3.org/2000/svg"), r = t.cloneNode(!0), n;
|
|
1839
|
+
r.style.display = "block", i.appendChild(r), ee.appendChild(i);
|
|
1840
|
+
try {
|
|
1841
|
+
n = r.getBBox();
|
|
1842
|
+
} catch {
|
|
1843
|
+
}
|
|
1844
|
+
return i.removeChild(r), ee.removeChild(i), n;
|
|
1845
|
+
}, Zi = function(t, e) {
|
|
1846
|
+
for (var i = e.length; i--; )
|
|
1847
|
+
if (t.hasAttribute(e[i]))
|
|
1848
|
+
return t.getAttribute(e[i]);
|
|
1849
|
+
}, Jr = function(t) {
|
|
1850
|
+
var e, i;
|
|
1851
|
+
try {
|
|
1852
|
+
e = t.getBBox();
|
|
1853
|
+
} catch {
|
|
1854
|
+
e = Qi(t), i = 1;
|
|
1855
|
+
}
|
|
1856
|
+
return e && (e.width || e.height) || i || (e = Qi(t)), e && !e.width && !e.x && !e.y ? {
|
|
1857
|
+
x: +Zi(t, ["x", "cx", "x1"]) || 0,
|
|
1858
|
+
y: +Zi(t, ["y", "cy", "y1"]) || 0,
|
|
1859
|
+
width: 0,
|
|
1860
|
+
height: 0
|
|
1861
|
+
} : e;
|
|
1862
|
+
}, tn = function(t) {
|
|
1863
|
+
return !!(t.getCTM && (!t.parentNode || t.ownerSVGElement) && Jr(t));
|
|
1864
|
+
}, It = function(t, e) {
|
|
1865
|
+
if (e) {
|
|
1866
|
+
var i = t.style, r;
|
|
1867
|
+
e in Ct && e !== it && (e = N), i.removeProperty ? (r = e.substr(0, 2), (r === "ms" || e.substr(0, 6) === "webkit") && (e = "-" + e), i.removeProperty(r === "--" ? e : e.replace(Ri, "-$1").toLowerCase())) : i.removeAttribute(e);
|
|
1868
|
+
}
|
|
1869
|
+
}, At = function(t, e, i, r, n, s) {
|
|
1870
|
+
var a = new et(t._pt, e, i, 0, 1, s ? Kr : Gr);
|
|
1871
|
+
return t._pt = a, a.b = r, a.e = n, t._props.push(i), a;
|
|
1872
|
+
}, Ji = {
|
|
1873
|
+
deg: 1,
|
|
1874
|
+
rad: 1,
|
|
1875
|
+
turn: 1
|
|
1876
|
+
}, Ds = {
|
|
1877
|
+
grid: 1,
|
|
1878
|
+
flex: 1
|
|
1879
|
+
}, Ft = function o(t, e, i, r) {
|
|
1880
|
+
var n = parseFloat(i) || 0, s = (i + "").trim().substr((n + "").length) || "px", a = Yt.style, l = ms.test(e), u = t.tagName.toLowerCase() === "svg", f = (u ? "client" : "offset") + (l ? "Width" : "Height"), h = 100, d = r === "px", _ = r === "%", m, c, p, y;
|
|
1881
|
+
if (r === s || !n || Ji[r] || Ji[s])
|
|
1882
|
+
return n;
|
|
1883
|
+
if (s !== "px" && !d && (n = o(t, e, i, "px")), y = t.getCTM && tn(t), (_ || s === "%") && (Ct[e] || ~e.indexOf("adius")))
|
|
1884
|
+
return m = y ? t.getBBox()[l ? "width" : "height"] : t[f], U(_ ? n / m * h : n / 100 * m);
|
|
1885
|
+
if (a[l ? "width" : "height"] = h + (d ? s : r), c = r !== "rem" && ~e.indexOf("adius") || r === "em" && t.appendChild && !u ? t : t.parentNode, y && (c = (t.ownerSVGElement || {}).parentNode), (!c || c === Dt || !c.appendChild) && (c = Dt.body), p = c._gsap, p && _ && p.width && l && p.time === st.time && !p.uncache)
|
|
1886
|
+
return U(n / p.width * h);
|
|
1887
|
+
if (_ && (e === "height" || e === "width")) {
|
|
1888
|
+
var v = t.style[e];
|
|
1889
|
+
t.style[e] = h + r, m = t[f], v ? t.style[e] = v : It(t, e);
|
|
1890
|
+
} else
|
|
1891
|
+
(_ || s === "%") && !Ds[ot(c, "display")] && (a.position = ot(t, "position")), c === t && (a.position = "static"), c.appendChild(Yt), m = Yt[f], c.removeChild(Yt), a.position = "absolute";
|
|
1892
|
+
return l && _ && (p = qt(c), p.time = st.time, p.width = c[f]), U(d ? m * n / h : m && n ? h / m * n : 0);
|
|
1893
|
+
}, St = function(t, e, i, r) {
|
|
1894
|
+
var n;
|
|
1895
|
+
return Ai || pi(), e in xt && e !== "transform" && (e = xt[e], ~e.indexOf(",") && (e = e.split(",")[0])), Ct[e] && e !== "transform" ? (n = Pe(t, r), n = e !== "transformOrigin" ? n[e] : n.svg ? n.origin : Ue(ot(t, it)) + " " + n.zOrigin + "px") : (n = t.style[e], (!n || n === "auto" || r || ~(n + "").indexOf("calc(")) && (n = Ve[e] && Ve[e](t, e, i) || ot(t, e) || mr(t, e) || (e === "opacity" ? 1 : 0))), i && !~(n + "").trim().indexOf(" ") ? Ft(t, e, n, i) + i : n;
|
|
1896
|
+
}, As = function(t, e, i, r) {
|
|
1897
|
+
if (!i || i === "none") {
|
|
1898
|
+
var n = le(e, t, 1), s = n && ot(t, n, 1);
|
|
1899
|
+
s && s !== i ? (e = n, i = s) : e === "borderColor" && (i = ot(t, "borderTopColor"));
|
|
1900
|
+
}
|
|
1901
|
+
var a = new et(this._pt, t.style, e, 0, 1, Xr), l = 0, u = 0, f, h, d, _, m, c, p, y, v, w, x, g;
|
|
1902
|
+
if (a.b = i, a.e = r, i += "", r += "", r.substring(0, 6) === "var(--" && (r = ot(t, r.substring(4, r.indexOf(")")))), r === "auto" && (c = t.style[e], t.style[e] = r, r = ot(t, e) || r, c ? t.style[e] = c : It(t, e)), f = [i, r], Ir(f), i = f[0], r = f[1], d = i.match(Zt) || [], g = r.match(Zt) || [], g.length) {
|
|
1903
|
+
for (; h = Zt.exec(r); )
|
|
1904
|
+
p = h[0], v = r.substring(l, h.index), m ? m = (m + 1) % 5 : (v.substr(-5) === "rgba(" || v.substr(-5) === "hsla(") && (m = 1), p !== (c = d[u++] || "") && (_ = parseFloat(c) || 0, x = c.substr((_ + "").length), p.charAt(1) === "=" && (p = te(_, p) + x), y = parseFloat(p), w = p.substr((y + "").length), l = Zt.lastIndex - w.length, w || (w = w || lt.units[e] || x, l === r.length && (r += w, a.e += w)), x !== w && (_ = Ft(t, e, c, w) || 0), a._pt = {
|
|
1905
|
+
_next: a._pt,
|
|
1906
|
+
p: v || u === 1 ? v : ",",
|
|
1907
|
+
//note: SVG spec allows omission of comma/space when a negative sign is wedged between two numbers, like 2.5-5.3 instead of 2.5,-5.3 but when tweening, the negative value may switch to positive, so we insert the comma just in case.
|
|
1908
|
+
s: _,
|
|
1909
|
+
c: y - _,
|
|
1910
|
+
m: m && m < 4 || e === "zIndex" ? Math.round : 0
|
|
1911
|
+
});
|
|
1912
|
+
a.c = l < r.length ? r.substring(l, r.length) : "";
|
|
1913
|
+
} else
|
|
1914
|
+
a.r = e === "display" && r === "none" ? Kr : Gr;
|
|
1915
|
+
return hr.test(r) && (a.e = 0), this._pt = a, a;
|
|
1916
|
+
}, tr = {
|
|
1917
|
+
top: "0%",
|
|
1918
|
+
bottom: "100%",
|
|
1919
|
+
left: "0%",
|
|
1920
|
+
right: "100%",
|
|
1921
|
+
center: "50%"
|
|
1922
|
+
}, Es = function(t) {
|
|
1923
|
+
var e = t.split(" "), i = e[0], r = e[1] || "50%";
|
|
1924
|
+
return (i === "top" || i === "bottom" || r === "left" || r === "right") && (t = i, i = r, r = t), e[0] = tr[i] || i, e[1] = tr[r] || r, e.join(" ");
|
|
1925
|
+
}, Rs = function(t, e) {
|
|
1926
|
+
if (e.tween && e.tween._time === e.tween._dur) {
|
|
1927
|
+
var i = e.t, r = i.style, n = e.u, s = i._gsap, a, l, u;
|
|
1928
|
+
if (n === "all" || n === !0)
|
|
1929
|
+
r.cssText = "", l = 1;
|
|
1930
|
+
else
|
|
1931
|
+
for (n = n.split(","), u = n.length; --u > -1; )
|
|
1932
|
+
a = n[u], Ct[a] && (l = 1, a = a === "transformOrigin" ? it : N), It(i, a);
|
|
1933
|
+
l && (It(i, N), s && (s.svg && i.removeAttribute("transform"), r.scale = r.rotate = r.translate = "none", Pe(i, 1), s.uncache = 1, Hr(r)));
|
|
1934
|
+
}
|
|
1935
|
+
}, Ve = {
|
|
1936
|
+
clearProps: function(t, e, i, r, n) {
|
|
1937
|
+
if (n.data !== "isFromStart") {
|
|
1938
|
+
var s = t._pt = new et(t._pt, e, i, 0, 0, Rs);
|
|
1939
|
+
return s.u = r, s.pr = -10, s.tween = n, t._props.push(i), 1;
|
|
1940
|
+
}
|
|
1941
|
+
}
|
|
1942
|
+
/* className feature (about 0.4kb gzipped).
|
|
1943
|
+
, className(plugin, target, property, endValue, tween) {
|
|
1944
|
+
let _renderClassName = (ratio, data) => {
|
|
1945
|
+
data.css.render(ratio, data.css);
|
|
1946
|
+
if (!ratio || ratio === 1) {
|
|
1947
|
+
let inline = data.rmv,
|
|
1948
|
+
target = data.t,
|
|
1949
|
+
p;
|
|
1950
|
+
target.setAttribute("class", ratio ? data.e : data.b);
|
|
1951
|
+
for (p in inline) {
|
|
1952
|
+
_removeProperty(target, p);
|
|
1953
|
+
}
|
|
1954
|
+
}
|
|
1955
|
+
},
|
|
1956
|
+
_getAllStyles = (target) => {
|
|
1957
|
+
let styles = {},
|
|
1958
|
+
computed = getComputedStyle(target),
|
|
1959
|
+
p;
|
|
1960
|
+
for (p in computed) {
|
|
1961
|
+
if (isNaN(p) && p !== "cssText" && p !== "length") {
|
|
1962
|
+
styles[p] = computed[p];
|
|
1963
|
+
}
|
|
1964
|
+
}
|
|
1965
|
+
_setDefaults(styles, _parseTransform(target, 1));
|
|
1966
|
+
return styles;
|
|
1967
|
+
},
|
|
1968
|
+
startClassList = target.getAttribute("class"),
|
|
1969
|
+
style = target.style,
|
|
1970
|
+
cssText = style.cssText,
|
|
1971
|
+
cache = target._gsap,
|
|
1972
|
+
classPT = cache.classPT,
|
|
1973
|
+
inlineToRemoveAtEnd = {},
|
|
1974
|
+
data = {t:target, plugin:plugin, rmv:inlineToRemoveAtEnd, b:startClassList, e:(endValue.charAt(1) !== "=") ? endValue : startClassList.replace(new RegExp("(?:\\s|^)" + endValue.substr(2) + "(?![\\w-])"), "") + ((endValue.charAt(0) === "+") ? " " + endValue.substr(2) : "")},
|
|
1975
|
+
changingVars = {},
|
|
1976
|
+
startVars = _getAllStyles(target),
|
|
1977
|
+
transformRelated = /(transform|perspective)/i,
|
|
1978
|
+
endVars, p;
|
|
1979
|
+
if (classPT) {
|
|
1980
|
+
classPT.r(1, classPT.d);
|
|
1981
|
+
_removeLinkedListItem(classPT.d.plugin, classPT, "_pt");
|
|
1982
|
+
}
|
|
1983
|
+
target.setAttribute("class", data.e);
|
|
1984
|
+
endVars = _getAllStyles(target, true);
|
|
1985
|
+
target.setAttribute("class", startClassList);
|
|
1986
|
+
for (p in endVars) {
|
|
1987
|
+
if (endVars[p] !== startVars[p] && !transformRelated.test(p)) {
|
|
1988
|
+
changingVars[p] = endVars[p];
|
|
1989
|
+
if (!style[p] && style[p] !== "0") {
|
|
1990
|
+
inlineToRemoveAtEnd[p] = 1;
|
|
1991
|
+
}
|
|
1992
|
+
}
|
|
1993
|
+
}
|
|
1994
|
+
cache.classPT = plugin._pt = new PropTween(plugin._pt, target, "className", 0, 0, _renderClassName, data, 0, -11);
|
|
1995
|
+
if (style.cssText !== cssText) { //only apply if things change. Otherwise, in cases like a background-image that's pulled dynamically, it could cause a refresh. See https://gsap.com/forums/topic/20368-possible-gsap-bug-switching-classnames-in-chrome/.
|
|
1996
|
+
style.cssText = cssText; //we recorded cssText before we swapped classes and ran _getAllStyles() because in cases when a className tween is overwritten, we remove all the related tweening properties from that class change (otherwise class-specific stuff can't override properties we've directly set on the target's style object due to specificity).
|
|
1997
|
+
}
|
|
1998
|
+
_parseTransform(target, true); //to clear the caching of transforms
|
|
1999
|
+
data.css = new gsap.plugins.css();
|
|
2000
|
+
data.css.init(target, changingVars, tween);
|
|
2001
|
+
plugin._props.push(...data.css._props);
|
|
2002
|
+
return 1;
|
|
2003
|
+
}
|
|
2004
|
+
*/
|
|
2005
|
+
}, Se = [1, 0, 0, 1, 0, 0], en = {}, rn = function(t) {
|
|
2006
|
+
return t === "matrix(1, 0, 0, 1, 0, 0)" || t === "none" || !t;
|
|
2007
|
+
}, er = function(t) {
|
|
2008
|
+
var e = ot(t, N);
|
|
2009
|
+
return rn(e) ? Se : e.substr(7).match(fr).map(U);
|
|
2010
|
+
}, zi = function(t, e) {
|
|
2011
|
+
var i = t._gsap || qt(t), r = t.style, n = er(t), s, a, l, u;
|
|
2012
|
+
return i.svg && t.getAttribute("transform") ? (l = t.transform.baseVal.consolidate().matrix, n = [l.a, l.b, l.c, l.d, l.e, l.f], n.join(",") === "1,0,0,1,0,0" ? Se : n) : (n === Se && !t.offsetParent && t !== ee && !i.svg && (l = r.display, r.display = "block", s = t.parentNode, (!s || !t.offsetParent && !t.getBoundingClientRect().width) && (u = 1, a = t.nextElementSibling, ee.appendChild(t)), n = er(t), l ? r.display = l : It(t, "display"), u && (a ? s.insertBefore(t, a) : s ? s.appendChild(t) : ee.removeChild(t))), e && n.length > 6 ? [n[0], n[1], n[4], n[5], n[12], n[13]] : n);
|
|
2013
|
+
}, mi = function(t, e, i, r, n, s) {
|
|
2014
|
+
var a = t._gsap, l = n || zi(t, !0), u = a.xOrigin || 0, f = a.yOrigin || 0, h = a.xOffset || 0, d = a.yOffset || 0, _ = l[0], m = l[1], c = l[2], p = l[3], y = l[4], v = l[5], w = e.split(" "), x = parseFloat(w[0]) || 0, g = parseFloat(w[1]) || 0, T, k, S, b;
|
|
2015
|
+
i ? l !== Se && (k = _ * p - m * c) && (S = x * (p / k) + g * (-c / k) + (c * v - p * y) / k, b = x * (-m / k) + g * (_ / k) - (_ * v - m * y) / k, x = S, g = b) : (T = Jr(t), x = T.x + (~w[0].indexOf("%") ? x / 100 * T.width : x), g = T.y + (~(w[1] || w[0]).indexOf("%") ? g / 100 * T.height : g)), r || r !== !1 && a.smooth ? (y = x - u, v = g - f, a.xOffset = h + (y * _ + v * c) - y, a.yOffset = d + (y * m + v * p) - v) : a.xOffset = a.yOffset = 0, a.xOrigin = x, a.yOrigin = g, a.smooth = !!r, a.origin = e, a.originIsAbsolute = !!i, t.style[it] = "0px 0px", s && (At(s, a, "xOrigin", u, x), At(s, a, "yOrigin", f, g), At(s, a, "xOffset", h, a.xOffset), At(s, a, "yOffset", d, a.yOffset)), t.setAttribute("data-svg-origin", x + " " + g);
|
|
2016
|
+
}, Pe = function(t, e) {
|
|
2017
|
+
var i = t._gsap || new Nr(t);
|
|
2018
|
+
if ("x" in i && !e && !i.uncache)
|
|
2019
|
+
return i;
|
|
2020
|
+
var r = t.style, n = i.scaleX < 0, s = "px", a = "deg", l = getComputedStyle(t), u = ot(t, it) || "0", f, h, d, _, m, c, p, y, v, w, x, g, T, k, S, b, O, M, D, z, G, X, Y, j, _t, De, fe, he, $t, Ii, wt, Nt;
|
|
2021
|
+
return f = h = d = c = p = y = v = w = x = 0, _ = m = 1, i.svg = !!(t.getCTM && tn(t)), l.translate && ((l.translate !== "none" || l.scale !== "none" || l.rotate !== "none") && (r[N] = (l.translate !== "none" ? "translate3d(" + (l.translate + " 0 0").split(" ").slice(0, 3).join(", ") + ") " : "") + (l.rotate !== "none" ? "rotate(" + l.rotate + ") " : "") + (l.scale !== "none" ? "scale(" + l.scale.split(" ").join(",") + ") " : "") + (l[N] !== "none" ? l[N] : "")), r.scale = r.rotate = r.translate = "none"), k = zi(t, i.svg), i.svg && (i.uncache ? (_t = t.getBBox(), u = i.xOrigin - _t.x + "px " + (i.yOrigin - _t.y) + "px", j = "") : j = !e && t.getAttribute("data-svg-origin"), mi(t, j || u, !!j || i.originIsAbsolute, i.smooth !== !1, k)), g = i.xOrigin || 0, T = i.yOrigin || 0, k !== Se && (M = k[0], D = k[1], z = k[2], G = k[3], f = X = k[4], h = Y = k[5], k.length === 6 ? (_ = Math.sqrt(M * M + D * D), m = Math.sqrt(G * G + z * z), c = M || D ? Qt(D, M) * Ut : 0, v = z || G ? Qt(z, G) * Ut + c : 0, v && (m *= Math.abs(Math.cos(v * ie))), i.svg && (f -= g - (g * M + T * z), h -= T - (g * D + T * G))) : (Nt = k[6], Ii = k[7], fe = k[8], he = k[9], $t = k[10], wt = k[11], f = k[12], h = k[13], d = k[14], S = Qt(Nt, $t), p = S * Ut, S && (b = Math.cos(-S), O = Math.sin(-S), j = X * b + fe * O, _t = Y * b + he * O, De = Nt * b + $t * O, fe = X * -O + fe * b, he = Y * -O + he * b, $t = Nt * -O + $t * b, wt = Ii * -O + wt * b, X = j, Y = _t, Nt = De), S = Qt(-z, $t), y = S * Ut, S && (b = Math.cos(-S), O = Math.sin(-S), j = M * b - fe * O, _t = D * b - he * O, De = z * b - $t * O, wt = G * O + wt * b, M = j, D = _t, z = De), S = Qt(D, M), c = S * Ut, S && (b = Math.cos(S), O = Math.sin(S), j = M * b + D * O, _t = X * b + Y * O, D = D * b - M * O, Y = Y * b - X * O, M = j, X = _t), p && Math.abs(p) + Math.abs(c) > 359.9 && (p = c = 0, y = 180 - y), _ = U(Math.sqrt(M * M + D * D + z * z)), m = U(Math.sqrt(Y * Y + Nt * Nt)), S = Qt(X, Y), v = Math.abs(S) > 2e-4 ? S * Ut : 0, x = wt ? 1 / (wt < 0 ? -wt : wt) : 0), i.svg && (j = t.getAttribute("transform"), i.forceCSS = t.setAttribute("transform", "") || !rn(ot(t, N)), j && t.setAttribute("transform", j))), Math.abs(v) > 90 && Math.abs(v) < 270 && (n ? (_ *= -1, v += c <= 0 ? 180 : -180, c += c <= 0 ? 180 : -180) : (m *= -1, v += v <= 0 ? 180 : -180)), e = e || i.uncache, i.x = f - ((i.xPercent = f && (!e && i.xPercent || (Math.round(t.offsetWidth / 2) === Math.round(-f) ? -50 : 0))) ? t.offsetWidth * i.xPercent / 100 : 0) + s, i.y = h - ((i.yPercent = h && (!e && i.yPercent || (Math.round(t.offsetHeight / 2) === Math.round(-h) ? -50 : 0))) ? t.offsetHeight * i.yPercent / 100 : 0) + s, i.z = d + s, i.scaleX = U(_), i.scaleY = U(m), i.rotation = U(c) + a, i.rotationX = U(p) + a, i.rotationY = U(y) + a, i.skewX = v + a, i.skewY = w + a, i.transformPerspective = x + s, (i.zOrigin = parseFloat(u.split(" ")[2]) || !e && i.zOrigin || 0) && (r[it] = Ue(u)), i.xOffset = i.yOffset = 0, i.force3D = lt.force3D, i.renderTransform = i.svg ? Is : Zr ? nn : zs, i.uncache = 0, i;
|
|
2022
|
+
}, Ue = function(t) {
|
|
2023
|
+
return (t = t.split(" "))[0] + " " + t[1];
|
|
2024
|
+
}, ii = function(t, e, i) {
|
|
2025
|
+
var r = H(e);
|
|
2026
|
+
return U(parseFloat(e) + parseFloat(Ft(t, "x", i + "px", r))) + r;
|
|
2027
|
+
}, zs = function(t, e) {
|
|
2028
|
+
e.z = "0px", e.rotationY = e.rotationX = "0deg", e.force3D = 0, nn(t, e);
|
|
2029
|
+
}, Bt = "0deg", ce = "0px", Vt = ") ", nn = function(t, e) {
|
|
2030
|
+
var i = e || this, r = i.xPercent, n = i.yPercent, s = i.x, a = i.y, l = i.z, u = i.rotation, f = i.rotationY, h = i.rotationX, d = i.skewX, _ = i.skewY, m = i.scaleX, c = i.scaleY, p = i.transformPerspective, y = i.force3D, v = i.target, w = i.zOrigin, x = "", g = y === "auto" && t && t !== 1 || y === !0;
|
|
2031
|
+
if (w && (h !== Bt || f !== Bt)) {
|
|
2032
|
+
var T = parseFloat(f) * ie, k = Math.sin(T), S = Math.cos(T), b;
|
|
2033
|
+
T = parseFloat(h) * ie, b = Math.cos(T), s = ii(v, s, k * b * -w), a = ii(v, a, -Math.sin(T) * -w), l = ii(v, l, S * b * -w + w);
|
|
2034
|
+
}
|
|
2035
|
+
p !== ce && (x += "perspective(" + p + Vt), (r || n) && (x += "translate(" + r + "%, " + n + "%) "), (g || s !== ce || a !== ce || l !== ce) && (x += l !== ce || g ? "translate3d(" + s + ", " + a + ", " + l + ") " : "translate(" + s + ", " + a + Vt), u !== Bt && (x += "rotate(" + u + Vt), f !== Bt && (x += "rotateY(" + f + Vt), h !== Bt && (x += "rotateX(" + h + Vt), (d !== Bt || _ !== Bt) && (x += "skew(" + d + ", " + _ + Vt), (m !== 1 || c !== 1) && (x += "scale(" + m + ", " + c + Vt), v.style[N] = x || "translate(0, 0)";
|
|
2036
|
+
}, Is = function(t, e) {
|
|
2037
|
+
var i = e || this, r = i.xPercent, n = i.yPercent, s = i.x, a = i.y, l = i.rotation, u = i.skewX, f = i.skewY, h = i.scaleX, d = i.scaleY, _ = i.target, m = i.xOrigin, c = i.yOrigin, p = i.xOffset, y = i.yOffset, v = i.forceCSS, w = parseFloat(s), x = parseFloat(a), g, T, k, S, b;
|
|
2038
|
+
l = parseFloat(l), u = parseFloat(u), f = parseFloat(f), f && (f = parseFloat(f), u += f, l += f), l || u ? (l *= ie, u *= ie, g = Math.cos(l) * h, T = Math.sin(l) * h, k = Math.sin(l - u) * -d, S = Math.cos(l - u) * d, u && (f *= ie, b = Math.tan(u - f), b = Math.sqrt(1 + b * b), k *= b, S *= b, f && (b = Math.tan(f), b = Math.sqrt(1 + b * b), g *= b, T *= b)), g = U(g), T = U(T), k = U(k), S = U(S)) : (g = h, S = d, T = k = 0), (w && !~(s + "").indexOf("px") || x && !~(a + "").indexOf("px")) && (w = Ft(_, "x", s, "px"), x = Ft(_, "y", a, "px")), (m || c || p || y) && (w = U(w + m - (m * g + c * k) + p), x = U(x + c - (m * T + c * S) + y)), (r || n) && (b = _.getBBox(), w = U(w + r / 100 * b.width), x = U(x + n / 100 * b.height)), b = "matrix(" + g + "," + T + "," + k + "," + S + "," + w + "," + x + ")", _.setAttribute("transform", b), v && (_.style[N] = b);
|
|
2039
|
+
}, Fs = function(t, e, i, r, n) {
|
|
2040
|
+
var s = 360, a = W(n), l = parseFloat(n) * (a && ~n.indexOf("rad") ? Ut : 1), u = l - r, f = r + u + "deg", h, d;
|
|
2041
|
+
return a && (h = n.split("_")[1], h === "short" && (u %= s, u !== u % (s / 2) && (u += u < 0 ? s : -s)), h === "cw" && u < 0 ? u = (u + s * Ki) % s - ~~(u / s) * s : h === "ccw" && u > 0 && (u = (u - s * Ki) % s - ~~(u / s) * s)), t._pt = d = new et(t._pt, e, i, r, u, ys), d.e = f, d.u = "deg", t._props.push(i), d;
|
|
2042
|
+
}, ir = function(t, e) {
|
|
2043
|
+
for (var i in e)
|
|
2044
|
+
t[i] = e[i];
|
|
2045
|
+
return t;
|
|
2046
|
+
}, Ls = function(t, e, i) {
|
|
2047
|
+
var r = ir({}, i._gsap), n = "perspective,force3D,transformOrigin,svgOrigin", s = i.style, a, l, u, f, h, d, _, m;
|
|
2048
|
+
r.svg ? (u = i.getAttribute("transform"), i.setAttribute("transform", ""), s[N] = e, a = Pe(i, 1), It(i, N), i.setAttribute("transform", u)) : (u = getComputedStyle(i)[N], s[N] = e, a = Pe(i, 1), s[N] = u);
|
|
2049
|
+
for (l in Ct)
|
|
2050
|
+
u = r[l], f = a[l], u !== f && n.indexOf(l) < 0 && (_ = H(u), m = H(f), h = _ !== m ? Ft(i, l, u, m) : parseFloat(u), d = parseFloat(f), t._pt = new et(t._pt, a, l, h, d - h, di), t._pt.u = m || 0, t._props.push(l));
|
|
2051
|
+
ir(a, r);
|
|
2052
|
+
};
|
|
2053
|
+
tt("padding,margin,Width,Radius", function(o, t) {
|
|
2054
|
+
var e = "Top", i = "Right", r = "Bottom", n = "Left", s = (t < 3 ? [e, i, r, n] : [e + n, e + i, r + i, r + n]).map(function(a) {
|
|
2055
|
+
return t < 2 ? o + a : "border" + a + o;
|
|
2056
|
+
});
|
|
2057
|
+
Ve[t > 1 ? "border" + o : o] = function(a, l, u, f, h) {
|
|
2058
|
+
var d, _;
|
|
2059
|
+
if (arguments.length < 4)
|
|
2060
|
+
return d = s.map(function(m) {
|
|
2061
|
+
return St(a, m, u);
|
|
2062
|
+
}), _ = d.join(" "), _.split(d[0]).length === 5 ? d[0] : _;
|
|
2063
|
+
d = (f + "").split(" "), _ = {}, s.forEach(function(m, c) {
|
|
2064
|
+
return _[m] = d[c] = d[c] || d[(c - 1) / 2 | 0];
|
|
2065
|
+
}), a.init(l, _, h);
|
|
2066
|
+
};
|
|
2067
|
+
});
|
|
2068
|
+
var sn = {
|
|
2069
|
+
name: "css",
|
|
2070
|
+
register: pi,
|
|
2071
|
+
targetTest: function(t) {
|
|
2072
|
+
return t.style && t.nodeType;
|
|
2073
|
+
},
|
|
2074
|
+
init: function(t, e, i, r, n) {
|
|
2075
|
+
var s = this._props, a = t.style, l = i.vars.startAt, u, f, h, d, _, m, c, p, y, v, w, x, g, T, k, S, b;
|
|
2076
|
+
Ai || pi(), this.styles = this.styles || Qr(t), S = this.styles.props, this.tween = i;
|
|
2077
|
+
for (c in e)
|
|
2078
|
+
if (c !== "autoRound" && (f = e[c], !(nt[c] && Br(c, e, i, r, t, n)))) {
|
|
2079
|
+
if (_ = typeof f, m = Ve[c], _ === "function" && (f = f.call(i, r, t, n), _ = typeof f), _ === "string" && ~f.indexOf("random(") && (f = we(f)), m)
|
|
2080
|
+
m(this, t, c, f, i) && (k = 1);
|
|
2081
|
+
else if (c.substr(0, 2) === "--")
|
|
2082
|
+
u = (getComputedStyle(t).getPropertyValue(c) + "").trim(), f += "", Rt.lastIndex = 0, Rt.test(u) || (p = H(u), y = H(f), y ? p !== y && (u = Ft(t, c, u, y) + y) : p && (f += p)), this.add(a, "setProperty", u, f, r, n, 0, 0, c), s.push(c), S.push(c, 0, a[c]);
|
|
2083
|
+
else if (_ !== "undefined") {
|
|
2084
|
+
if (l && c in l ? (u = typeof l[c] == "function" ? l[c].call(i, r, t, n) : l[c], W(u) && ~u.indexOf("random(") && (u = we(u)), H(u + "") || u === "auto" || (u += lt.units[c] || H(St(t, c)) || ""), (u + "").charAt(1) === "=" && (u = St(t, c))) : u = St(t, c), d = parseFloat(u), v = _ === "string" && f.charAt(1) === "=" && f.substr(0, 2), v && (f = f.substr(2)), h = parseFloat(f), c in xt && (c === "autoAlpha" && (d === 1 && St(t, "visibility") === "hidden" && h && (d = 0), S.push("visibility", 0, a.visibility), At(this, a, "visibility", d ? "inherit" : "hidden", h ? "inherit" : "hidden", !h)), c !== "scale" && c !== "transform" && (c = xt[c], ~c.indexOf(",") && (c = c.split(",")[0]))), w = c in Ct, w) {
|
|
2085
|
+
if (this.styles.save(c), b = f, _ === "string" && f.substring(0, 6) === "var(--") {
|
|
2086
|
+
if (f = ot(t, f.substring(4, f.indexOf(")"))), f.substring(0, 5) === "calc(") {
|
|
2087
|
+
var O = t.style.perspective;
|
|
2088
|
+
t.style.perspective = f, f = ot(t, "perspective"), O ? t.style.perspective = O : It(t, "perspective");
|
|
2089
|
+
}
|
|
2090
|
+
h = parseFloat(f);
|
|
2091
|
+
}
|
|
2092
|
+
if (x || (g = t._gsap, g.renderTransform && !e.parseTransform || Pe(t, e.parseTransform), T = e.smoothOrigin !== !1 && g.smooth, x = this._pt = new et(this._pt, a, N, 0, 1, g.renderTransform, g, 0, -1), x.dep = 1), c === "scale")
|
|
2093
|
+
this._pt = new et(this._pt, g, "scaleY", g.scaleY, (v ? te(g.scaleY, v + h) : h) - g.scaleY || 0, di), this._pt.u = 0, s.push("scaleY", c), c += "X";
|
|
2094
|
+
else if (c === "transformOrigin") {
|
|
2095
|
+
S.push(it, 0, a[it]), f = Es(f), g.svg ? mi(t, f, 0, T, 0, this) : (y = parseFloat(f.split(" ")[2]) || 0, y !== g.zOrigin && At(this, g, "zOrigin", g.zOrigin, y), At(this, a, c, Ue(u), Ue(f)));
|
|
2096
|
+
continue;
|
|
2097
|
+
} else if (c === "svgOrigin") {
|
|
2098
|
+
mi(t, f, 1, T, 0, this);
|
|
2099
|
+
continue;
|
|
2100
|
+
} else if (c in en) {
|
|
2101
|
+
Fs(this, g, c, d, v ? te(d, v + f) : f);
|
|
2102
|
+
continue;
|
|
2103
|
+
} else if (c === "smoothOrigin") {
|
|
2104
|
+
At(this, g, "smooth", g.smooth, f);
|
|
2105
|
+
continue;
|
|
2106
|
+
} else if (c === "force3D") {
|
|
2107
|
+
g[c] = f;
|
|
2108
|
+
continue;
|
|
2109
|
+
} else if (c === "transform") {
|
|
2110
|
+
Ls(this, f, t);
|
|
2111
|
+
continue;
|
|
2112
|
+
}
|
|
2113
|
+
} else c in a || (c = le(c) || c);
|
|
2114
|
+
if (w || (h || h === 0) && (d || d === 0) && !gs.test(f) && c in a)
|
|
2115
|
+
p = (u + "").substr((d + "").length), h || (h = 0), y = H(f) || (c in lt.units ? lt.units[c] : p), p !== y && (d = Ft(t, c, u, y)), this._pt = new et(this._pt, w ? g : a, c, d, (v ? te(d, v + h) : h) - d, !w && (y === "px" || c === "zIndex") && e.autoRound !== !1 ? bs : di), this._pt.u = y || 0, w && b !== f ? (this._pt.b = u, this._pt.e = b, this._pt.r = xs) : p !== y && y !== "%" && (this._pt.b = u, this._pt.r = vs);
|
|
2116
|
+
else if (c in a)
|
|
2117
|
+
As.call(this, t, c, u, v ? v + f : f);
|
|
2118
|
+
else if (c in t)
|
|
2119
|
+
this.add(t, c, u || t[c], v ? v + f : f, r, n);
|
|
2120
|
+
else if (c !== "parseTransform") {
|
|
2121
|
+
bi(c, f);
|
|
2122
|
+
continue;
|
|
2123
|
+
}
|
|
2124
|
+
w || (c in a ? S.push(c, 0, a[c]) : typeof t[c] == "function" ? S.push(c, 2, t[c]()) : S.push(c, 1, u || t[c])), s.push(c);
|
|
2125
|
+
}
|
|
2126
|
+
}
|
|
2127
|
+
k && jr(this);
|
|
2128
|
+
},
|
|
2129
|
+
render: function(t, e) {
|
|
2130
|
+
if (e.tween._time || !Ei())
|
|
2131
|
+
for (var i = e._pt; i; )
|
|
2132
|
+
i.r(t, i.d), i = i._next;
|
|
2133
|
+
else
|
|
2134
|
+
e.styles.revert();
|
|
2135
|
+
},
|
|
2136
|
+
get: St,
|
|
2137
|
+
aliases: xt,
|
|
2138
|
+
getSetter: function(t, e, i) {
|
|
2139
|
+
var r = xt[e];
|
|
2140
|
+
return r && r.indexOf(",") < 0 && (e = r), e in Ct && e !== it && (t._gsap.x || St(t, "x")) ? i && Gi === i ? e === "scale" ? Ss : ks : (Gi = i || {}) && (e === "scale" ? Ps : Os) : t.style && !yi(t.style[e]) ? ws : ~e.indexOf("-") ? Ts : Mi(t, e);
|
|
2141
|
+
},
|
|
2142
|
+
core: {
|
|
2143
|
+
_removeProperty: It,
|
|
2144
|
+
_getMatrix: zi
|
|
2145
|
+
}
|
|
2146
|
+
};
|
|
2147
|
+
rt.utils.checkPrefix = le;
|
|
2148
|
+
rt.core.getStyleSaver = Qr;
|
|
2149
|
+
(function(o, t, e, i) {
|
|
2150
|
+
var r = tt(o + "," + t + "," + e, function(n) {
|
|
2151
|
+
Ct[n] = 1;
|
|
2152
|
+
});
|
|
2153
|
+
tt(t, function(n) {
|
|
2154
|
+
lt.units[n] = "deg", en[n] = 1;
|
|
2155
|
+
}), xt[r[13]] = o + "," + t, tt(i, function(n) {
|
|
2156
|
+
var s = n.split(":");
|
|
2157
|
+
xt[s[1]] = r[s[0]];
|
|
2158
|
+
});
|
|
2159
|
+
})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent", "rotation,rotationX,rotationY,skewX,skewY", "transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective", "0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");
|
|
2160
|
+
tt("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective", function(o) {
|
|
2161
|
+
lt.units[o] = "px";
|
|
2162
|
+
});
|
|
2163
|
+
rt.registerPlugin(sn);
|
|
2164
|
+
var gt = rt.registerPlugin(sn) || rt;
|
|
2165
|
+
gt.core.Tween;
|
|
2166
|
+
const $s = { class: "h-screen w-screen relative flex flex-col bg-[#030303] text-white overflow-hidden" }, Ns = { class: "absolute inset-0 z-0 overflow-hidden pointer-events-none" }, Bs = {
|
|
2167
|
+
key: 0,
|
|
2168
|
+
class: "absolute top-0 right-0 p-6 z-50 flex gap-4 pointer-events-auto"
|
|
2169
|
+
}, Vs = {
|
|
2170
|
+
key: 0,
|
|
2171
|
+
class: "fixed right-0 top-0 h-full w-full md:w-[450px] bg-[#0a0a0a]/95 backdrop-blur-2xl border-l border-white/10 z-[100] p-6 shadow-2xl overflow-auto text-left"
|
|
2172
|
+
}, Us = { class: "text-[10px] font-mono text-green-400 whitespace-pre-wrap" }, Ys = { class: "flex-1 w-full relative overflow-y-auto overflow-x-hidden z-10 scroll-smooth" }, qs = {
|
|
2173
|
+
key: 1,
|
|
2174
|
+
class: "fixed bottom-0 left-0 w-full z-40 px-8 py-6 bg-gradient-to-t from-black via-black/80 to-transparent flex justify-between items-end pointer-events-none"
|
|
2175
|
+
}, Xs = {
|
|
2176
|
+
key: 0,
|
|
2177
|
+
class: "pointer-events-auto text-left"
|
|
2178
|
+
}, js = { class: "text-[10px] font-bold text-gray-500 tracking-[0.2em] uppercase mb-1" }, Ws = { class: "flex items-center gap-2 text-white/50 text-sm font-mono" }, Gs = {
|
|
2179
|
+
key: 0,
|
|
2180
|
+
class: "h-px w-8 bg-white/20"
|
|
2181
|
+
}, Ks = {
|
|
2182
|
+
key: 1,
|
|
2183
|
+
class: "flex-1"
|
|
2184
|
+
}, Hs = {
|
|
2185
|
+
key: 2,
|
|
2186
|
+
class: "pointer-events-auto flex gap-3"
|
|
2187
|
+
}, Qs = ["disabled"], Zs = ["disabled"], Js = /* @__PURE__ */ Kt({
|
|
2188
|
+
__name: "LuminaDeck",
|
|
2189
|
+
setup(o) {
|
|
2190
|
+
const { slide: t, index: e, total: i, next: r, prev: n, options: s } = gn(), a = Ye(Oe), l = pt(() => a.hasNext()), u = pt(() => a.hasPrev()), f = pt(() => {
|
|
2191
|
+
var x, g;
|
|
2192
|
+
return (g = (x = a.state.deck) == null ? void 0 : x.meta) == null ? void 0 : g.title;
|
|
2193
|
+
}), h = pt(() => a.state.options.ui), d = pt(() => a.state.options.navigation);
|
|
2194
|
+
yn();
|
|
2195
|
+
const _ = ar({ showJson: !1 }), m = pt(() => s.debug), c = pt(() => !t.value || !t.value.type ? null : `layout-${t.value.type}`), p = pt(() => {
|
|
2196
|
+
var x, g, T, k, S, b, O, M;
|
|
2197
|
+
return {
|
|
2198
|
+
backgroundColor: ((g = (x = t.value) == null ? void 0 : x.meta) == null ? void 0 : g.orbColor) || "#3b82f6",
|
|
2199
|
+
width: "60vw",
|
|
2200
|
+
height: "60vw",
|
|
2201
|
+
top: ((S = (k = (T = t.value) == null ? void 0 : T.meta) == null ? void 0 : k.orbPos) == null ? void 0 : S.top) || "-20%",
|
|
2202
|
+
left: ((M = (O = (b = t.value) == null ? void 0 : b.meta) == null ? void 0 : O.orbPos) == null ? void 0 : M.left) || "-10%"
|
|
2203
|
+
};
|
|
2204
|
+
}), y = (x) => {
|
|
2205
|
+
_e.emit("action", x);
|
|
2206
|
+
}, v = (x, g) => {
|
|
2207
|
+
const T = x;
|
|
2208
|
+
T.style.opacity = "1", g();
|
|
2209
|
+
}, w = (x, g) => {
|
|
2210
|
+
var O, M, D;
|
|
2211
|
+
const { options: T } = a.state;
|
|
2212
|
+
if (((O = T.animation) == null ? void 0 : O.enabled) === !1) {
|
|
2213
|
+
g();
|
|
2214
|
+
return;
|
|
2215
|
+
}
|
|
2216
|
+
const k = ((M = T.animation) == null ? void 0 : M.durationOut) || 0.5, S = ((D = T.animation) == null ? void 0 : D.type) || "cascade", b = gt.timeline({ onComplete: g });
|
|
2217
|
+
S === "fade" ? b.to(x, { opacity: 0, duration: k }) : S === "zoom" ? b.to(x, { opacity: 0, scale: 1.1, duration: k }) : b.to(x, {
|
|
2218
|
+
opacity: 0,
|
|
2219
|
+
y: -20,
|
|
2220
|
+
// Slight move up
|
|
2221
|
+
duration: k,
|
|
2222
|
+
ease: "power2.in"
|
|
2223
|
+
});
|
|
2224
|
+
};
|
|
2225
|
+
return (x, g) => {
|
|
2226
|
+
var T, k, S, b;
|
|
2227
|
+
return A(), B("div", $s, [
|
|
2228
|
+
P("div", Ns, [
|
|
2229
|
+
P("div", {
|
|
2230
|
+
class: "ambient-orb",
|
|
2231
|
+
style: fn(p.value)
|
|
2232
|
+
}, null, 4),
|
|
2233
|
+
g[3] || (g[3] = P("div", {
|
|
2234
|
+
class: "absolute inset-0 opacity-[0.04]",
|
|
2235
|
+
style: { "background-image": "url('https://grainy-gradients.vercel.app/noise.svg')" }
|
|
2236
|
+
}, null, -1))
|
|
2237
|
+
]),
|
|
2238
|
+
m.value ? (A(), B("div", Bs, [
|
|
2239
|
+
P("button", {
|
|
2240
|
+
onClick: g[0] || (g[0] = (O) => _.value.showJson = !_.value.showJson),
|
|
2241
|
+
class: "w-8 h-8 rounded-full glass-panel flex items-center justify-center text-gray-400 hover:text-white transition",
|
|
2242
|
+
title: "JSON"
|
|
2243
|
+
}, [...g[4] || (g[4] = [
|
|
2244
|
+
P("i", { class: "fa-solid fa-code text-xs" }, null, -1)
|
|
2245
|
+
])])
|
|
2246
|
+
])) : mt("", !0),
|
|
2247
|
+
Fi(Li, { name: "slide-fade" }, {
|
|
2248
|
+
default: Gt(() => [
|
|
2249
|
+
_.value.showJson ? (A(), B("div", Vs, [
|
|
2250
|
+
P("pre", Us, I(JSON.stringify(Tt(t), null, 2)), 1)
|
|
2251
|
+
])) : mt("", !0)
|
|
2252
|
+
]),
|
|
2253
|
+
_: 1
|
|
2254
|
+
}),
|
|
2255
|
+
P("main", Ys, [
|
|
2256
|
+
Fi(Li, {
|
|
2257
|
+
css: !1,
|
|
2258
|
+
onLeave: w,
|
|
2259
|
+
onEnter: v,
|
|
2260
|
+
mode: "out-in"
|
|
2261
|
+
}, {
|
|
2262
|
+
default: Gt(() => [
|
|
2263
|
+
c.value ? (A(), ue(hn(c.value), {
|
|
2264
|
+
key: Tt(e),
|
|
2265
|
+
data: Tt(t),
|
|
2266
|
+
onAction: y,
|
|
2267
|
+
class: "min-h-full w-full"
|
|
2268
|
+
}, null, 40, ["data"])) : mt("", !0)
|
|
2269
|
+
]),
|
|
2270
|
+
_: 1
|
|
2271
|
+
})
|
|
2272
|
+
]),
|
|
2273
|
+
(T = h.value) != null && T.visible ? (A(), B("div", qs, [
|
|
2274
|
+
(k = h.value) != null && k.showSlideCount ? (A(), B("div", Xs, [
|
|
2275
|
+
P("h2", js, I(f.value), 1),
|
|
2276
|
+
P("div", Ws, [
|
|
2277
|
+
P("span", null, I((Tt(e) + 1).toString().padStart(2, "0")), 1),
|
|
2278
|
+
(S = h.value) != null && S.showProgressBar ? (A(), B("div", Gs)) : mt("", !0),
|
|
2279
|
+
P("span", null, I(Tt(i).toString().padStart(2, "0")), 1)
|
|
2280
|
+
])
|
|
2281
|
+
])) : (A(), B("div", Ks)),
|
|
2282
|
+
(b = h.value) != null && b.showControls ? (A(), B("div", Hs, [
|
|
2283
|
+
P("button", {
|
|
2284
|
+
onClick: g[1] || (g[1] = //@ts-ignore
|
|
2285
|
+
(...O) => Tt(n) && Tt(n)(...O)),
|
|
2286
|
+
class: Pt(["w-12 h-12 rounded-full glass-panel hover:bg-white/10 flex items-center justify-center transition active:scale-95", !u.value || !d.value ? "opacity-30 cursor-not-allowed" : ""]),
|
|
2287
|
+
disabled: !u.value || !d.value
|
|
2288
|
+
}, [...g[5] || (g[5] = [
|
|
2289
|
+
P("i", { class: "fa-solid fa-arrow-left" }, null, -1)
|
|
2290
|
+
])], 10, Qs),
|
|
2291
|
+
P("button", {
|
|
2292
|
+
onClick: g[2] || (g[2] = //@ts-ignore
|
|
2293
|
+
(...O) => Tt(r) && Tt(r)(...O)),
|
|
2294
|
+
class: Pt(["w-12 h-12 rounded-full bg-white text-black hover:scale-105 flex items-center justify-center transition shadow-lg active:scale-95", !l.value || !d.value ? "opacity-30 cursor-not-allowed" : ""]),
|
|
2295
|
+
disabled: !l.value || !d.value
|
|
2296
|
+
}, [...g[6] || (g[6] = [
|
|
2297
|
+
P("i", { class: "fa-solid fa-arrow-right" }, null, -1)
|
|
2298
|
+
])], 10, Zs)
|
|
2299
|
+
])) : mt("", !0)
|
|
2300
|
+
])) : mt("", !0)
|
|
2301
|
+
]);
|
|
2302
|
+
};
|
|
2303
|
+
}
|
|
2304
|
+
});
|
|
2305
|
+
function ta(o, t) {
|
|
2306
|
+
const e = Ye(Oe);
|
|
2307
|
+
let i = null;
|
|
2308
|
+
const r = () => {
|
|
2309
|
+
if (!o.value || !e) return;
|
|
2310
|
+
i == null || i.revert();
|
|
2311
|
+
const { enabled: n, type: s, durationIn: a, stagger: l, ease: u } = e.state.options.animation || {};
|
|
2312
|
+
if (n === !1) {
|
|
2313
|
+
gt.set(o.value.querySelectorAll(".reveal-up, .reveal-zoom, .reveal-content > *, .reveal-card, .reveal-img"), {
|
|
2314
|
+
opacity: 1,
|
|
2315
|
+
y: 0,
|
|
2316
|
+
scale: 1,
|
|
2317
|
+
visibility: "visible"
|
|
2318
|
+
});
|
|
2319
|
+
return;
|
|
2320
|
+
}
|
|
2321
|
+
i = gt.context(() => {
|
|
2322
|
+
const f = o.value, h = s === "fade", d = s === "slide", _ = s === "zoom", m = h ? 0 : d ? 80 : 40, c = _ ? 0.8 : s === "cascade" ? 0.95 : 1;
|
|
2323
|
+
gt.set(".reveal-up", { y: m, opacity: 0 }), gt.set(".reveal-zoom", { scale: c, opacity: 0 }), gt.set(".reveal-content > *", { y: h ? 0 : 30, opacity: 0 }), gt.set(".reveal-card", { y: h ? 0 : 50, opacity: 0, scale: c }), gt.set(".reveal-img", { scale: 1.1, opacity: 0 });
|
|
2324
|
+
const p = gt.timeline({
|
|
2325
|
+
defaults: {
|
|
2326
|
+
ease: u || "power3.out",
|
|
2327
|
+
duration: a || 0.8
|
|
2328
|
+
},
|
|
2329
|
+
onComplete: t
|
|
2330
|
+
});
|
|
2331
|
+
f.querySelector(".reveal-img") && p.to(".reveal-img", {
|
|
2332
|
+
scale: 1,
|
|
2333
|
+
opacity: 1,
|
|
2334
|
+
duration: (a || 1) * 1.2,
|
|
2335
|
+
ease: "expo.out"
|
|
2336
|
+
}, 0);
|
|
2337
|
+
const y = a || 0.8, v = l || 0.1;
|
|
2338
|
+
f.querySelectorAll(".reveal-card").length && p.to(".reveal-card", {
|
|
2339
|
+
y: 0,
|
|
2340
|
+
opacity: 1,
|
|
2341
|
+
scale: 1,
|
|
2342
|
+
duration: y,
|
|
2343
|
+
stagger: v,
|
|
2344
|
+
ease: d ? "expo.out" : "back.out(1.2)"
|
|
2345
|
+
}, 0.2);
|
|
2346
|
+
const w = f.querySelectorAll(".reveal-content > *");
|
|
2347
|
+
w.length && p.to(w, {
|
|
2348
|
+
y: 0,
|
|
2349
|
+
opacity: 1,
|
|
2350
|
+
duration: y,
|
|
2351
|
+
stagger: v / 2
|
|
2352
|
+
}, 0.3), f.querySelectorAll(".reveal-up").length && p.to(".reveal-up", {
|
|
2353
|
+
y: 0,
|
|
2354
|
+
opacity: 1,
|
|
2355
|
+
duration: y,
|
|
2356
|
+
stagger: v
|
|
2357
|
+
}, 0.2), f.querySelector(".reveal-zoom") && p.to(".reveal-zoom", {
|
|
2358
|
+
scale: 1,
|
|
2359
|
+
opacity: 1,
|
|
2360
|
+
duration: y * 1.2,
|
|
2361
|
+
ease: "expo.out"
|
|
2362
|
+
}, 0.1);
|
|
2363
|
+
}, o);
|
|
2364
|
+
};
|
|
2365
|
+
return nr(() => {
|
|
2366
|
+
cn(() => {
|
|
2367
|
+
r();
|
|
2368
|
+
});
|
|
2369
|
+
}), sr(() => {
|
|
2370
|
+
i == null || i.revert();
|
|
2371
|
+
}), { animateIn: r };
|
|
2372
|
+
}
|
|
2373
|
+
const ea = { class: "absolute inset-0 z-0 pointer-events-none" }, ia = { class: "relative z-10 w-full h-full" }, Me = /* @__PURE__ */ Kt({
|
|
2374
|
+
__name: "BaseSlide",
|
|
2375
|
+
props: {
|
|
2376
|
+
data: {},
|
|
2377
|
+
customClass: {}
|
|
2378
|
+
},
|
|
2379
|
+
setup(o) {
|
|
2380
|
+
const t = ar(null);
|
|
2381
|
+
return ta(t), (e, i) => (A(), B("div", {
|
|
2382
|
+
ref_key: "container",
|
|
2383
|
+
ref: t,
|
|
2384
|
+
class: Pt(["w-full min-h-full relative text-white", o.customClass])
|
|
2385
|
+
}, [
|
|
2386
|
+
P("div", ea, [
|
|
2387
|
+
$i(e.$slots, "background")
|
|
2388
|
+
]),
|
|
2389
|
+
P("div", ia, [
|
|
2390
|
+
$i(e.$slots, "default")
|
|
2391
|
+
])
|
|
2392
|
+
], 2));
|
|
2393
|
+
}
|
|
2394
|
+
}), ra = { class: "min-h-screen flex flex-col justify-center items-center text-center p-8 relative" }, na = { class: "reveal-zoom max-w-5xl z-10" }, sa = {
|
|
2395
|
+
key: 0,
|
|
2396
|
+
class: "inline-block px-4 py-1 rounded-full border border-white/10 bg-white/5 text-sm font-medium tracking-widest uppercase mb-10 text-[var(--lumina-primary)]",
|
|
2397
|
+
style: { color: "var(--lumina-colors-primary, #3b82f6)" }
|
|
2398
|
+
}, aa = {
|
|
2399
|
+
class: "font-heading font-bold leading-[0.9] tracking-tight mb-8 text-transparent bg-clip-text bg-gradient-to-b from-white to-gray-500",
|
|
2400
|
+
style: { "font-size": "clamp(3rem, 10vw, 8rem)" }
|
|
2401
|
+
}, oa = {
|
|
2402
|
+
key: 1,
|
|
2403
|
+
class: "text-xl md:text-3xl font-light max-w-3xl mx-auto leading-normal",
|
|
2404
|
+
style: { color: "var(--lumina-colors-muted, #9ca3af)" }
|
|
2405
|
+
}, la = /* @__PURE__ */ Kt({
|
|
2406
|
+
__name: "LayoutStatement",
|
|
2407
|
+
props: {
|
|
2408
|
+
data: {}
|
|
2409
|
+
},
|
|
2410
|
+
setup(o) {
|
|
2411
|
+
return (t, e) => (A(), ue(Me, { data: o.data }, {
|
|
2412
|
+
default: Gt(() => [
|
|
2413
|
+
P("div", ra, [
|
|
2414
|
+
P("div", na, [
|
|
2415
|
+
o.data.tag ? (A(), B("span", sa, I(o.data.tag), 1)) : mt("", !0),
|
|
2416
|
+
P("h1", aa, I(o.data.title), 1),
|
|
2417
|
+
o.data.subtitle ? (A(), B("p", oa, I(o.data.subtitle), 1)) : mt("", !0)
|
|
2418
|
+
])
|
|
2419
|
+
])
|
|
2420
|
+
]),
|
|
2421
|
+
_: 1
|
|
2422
|
+
}, 8, ["data"]));
|
|
2423
|
+
}
|
|
2424
|
+
}), ua = { class: "min-h-screen w-full flex flex-col lg:block relative" }, fa = ["src"], ha = { class: "reveal-content max-w-xl" }, ca = {
|
|
2425
|
+
class: "text-xs font-bold uppercase tracking-[0.2em] mb-6 block",
|
|
2426
|
+
style: { color: "var(--lumina-colors-primary, #3b82f6)" }
|
|
2427
|
+
}, da = { class: "text-4xl lg:text-6xl font-heading font-bold leading-tight mb-8 text-white" }, _a = {
|
|
2428
|
+
class: "space-y-6 text-lg leading-relaxed font-light mb-10",
|
|
2429
|
+
style: { color: "var(--lumina-colors-muted, #9ca3af)" }
|
|
2430
|
+
}, pa = {
|
|
2431
|
+
key: 0,
|
|
2432
|
+
class: "pt-6 border-t border-white/10"
|
|
2433
|
+
}, ma = /* @__PURE__ */ Kt({
|
|
2434
|
+
__name: "LayoutHalf",
|
|
2435
|
+
props: {
|
|
2436
|
+
data: {}
|
|
2437
|
+
},
|
|
2438
|
+
emits: ["action"],
|
|
2439
|
+
setup(o) {
|
|
2440
|
+
return (t, e) => (A(), ue(Me, {
|
|
2441
|
+
data: o.data,
|
|
2442
|
+
customClass: "bg-[var(--lumina-bg)]"
|
|
2443
|
+
}, {
|
|
2444
|
+
default: Gt(() => [
|
|
2445
|
+
P("div", ua, [
|
|
2446
|
+
P("div", {
|
|
2447
|
+
class: Pt(["relative h-[40vh] lg:h-full lg:w-1/2 lg:fixed lg:top-0 overflow-hidden z-0", o.data.imageSide === "right" ? "lg:right-0 order-1" : "lg:left-0 order-1"])
|
|
2448
|
+
}, [
|
|
2449
|
+
e[1] || (e[1] = P("div", { class: "absolute inset-0 bg-black/20 z-10" }, null, -1)),
|
|
2450
|
+
P("img", {
|
|
2451
|
+
src: o.data.image,
|
|
2452
|
+
class: "w-full h-full object-cover reveal-img scale-110 origin-center",
|
|
2453
|
+
alt: "Slide Image"
|
|
2454
|
+
}, null, 8, fa)
|
|
2455
|
+
], 2),
|
|
2456
|
+
P("div", {
|
|
2457
|
+
class: Pt(["relative z-10 w-full lg:w-1/2 min-h-[60vh] lg:min-h-screen flex flex-col justify-center p-8 lg:p-24 order-2 bg-[#050505]", o.data.imageSide === "right" ? "lg:mr-[50%]" : "lg:ml-[50%]"])
|
|
2458
|
+
}, [
|
|
2459
|
+
P("div", ha, [
|
|
2460
|
+
P("span", ca, I(o.data.tag), 1),
|
|
2461
|
+
P("h1", da, I(o.data.title), 1),
|
|
2462
|
+
P("div", _a, [
|
|
2463
|
+
(A(!0), B(qe, null, Xe(o.data.paragraphs, (i, r) => (A(), B("p", { key: r }, I(i), 1))), 128))
|
|
2464
|
+
]),
|
|
2465
|
+
o.data.cta ? (A(), B("div", pa, [
|
|
2466
|
+
P("button", {
|
|
2467
|
+
onClick: e[0] || (e[0] = (i) => t.$emit("action", { type: "cta", label: o.data.cta })),
|
|
2468
|
+
class: "px-8 py-4 bg-white text-black font-bold rounded-lg hover:bg-gray-200 transition flex items-center gap-3"
|
|
2469
|
+
}, [
|
|
2470
|
+
dn(I(o.data.cta) + " ", 1),
|
|
2471
|
+
e[2] || (e[2] = P("i", { class: "fa-solid fa-arrow-right" }, null, -1))
|
|
2472
|
+
])
|
|
2473
|
+
])) : mt("", !0)
|
|
2474
|
+
])
|
|
2475
|
+
], 2)
|
|
2476
|
+
])
|
|
2477
|
+
]),
|
|
2478
|
+
_: 1
|
|
2479
|
+
}, 8, ["data"]));
|
|
2480
|
+
}
|
|
2481
|
+
}), ga = { class: "min-h-screen w-full flex flex-col justify-center p-8 lg:p-24" }, ya = { class: "mb-16 reveal-up text-center lg:text-left max-w-4xl" }, va = { class: "text-5xl font-heading font-bold mb-4" }, xa = {
|
|
2482
|
+
class: "text-xl",
|
|
2483
|
+
style: { color: "var(--lumina-colors-muted, #9ca3af)" }
|
|
2484
|
+
}, ba = { class: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 w-full" }, wa = {
|
|
2485
|
+
class: "w-12 h-12 rounded-xl bg-white/5 flex items-center justify-center text-xl mb-6 group-hover:scale-110 transition duration-300",
|
|
2486
|
+
style: { color: "var(--lumina-colors-primary, #3b82f6)" }
|
|
2487
|
+
}, Ta = { class: "text-2xl font-bold mb-3 text-white" }, ka = {
|
|
2488
|
+
class: "leading-relaxed",
|
|
2489
|
+
style: { color: "var(--lumina-colors-muted, #9ca3af)" }
|
|
2490
|
+
}, Sa = /* @__PURE__ */ Kt({
|
|
2491
|
+
__name: "LayoutFeatures",
|
|
2492
|
+
props: {
|
|
2493
|
+
data: {}
|
|
2494
|
+
},
|
|
2495
|
+
setup(o) {
|
|
2496
|
+
return (t, e) => (A(), ue(Me, { data: o.data }, {
|
|
2497
|
+
default: Gt(() => [
|
|
2498
|
+
P("div", ga, [
|
|
2499
|
+
P("div", ya, [
|
|
2500
|
+
P("h2", va, I(o.data.title), 1),
|
|
2501
|
+
P("p", xa, I(o.data.description), 1)
|
|
2502
|
+
]),
|
|
2503
|
+
P("div", ba, [
|
|
2504
|
+
(A(!0), B(qe, null, Xe(o.data.features, (i, r) => (A(), B("div", {
|
|
2505
|
+
key: r,
|
|
2506
|
+
class: "glass-panel p-8 rounded-3xl hover:bg-white/5 transition duration-500 reveal-card group border-t border-white/5 hover:border-blue-500/50"
|
|
2507
|
+
}, [
|
|
2508
|
+
P("div", wa, [
|
|
2509
|
+
P("i", {
|
|
2510
|
+
class: Pt(["fa-solid", i.icon])
|
|
2511
|
+
}, null, 2)
|
|
2512
|
+
]),
|
|
2513
|
+
P("h3", Ta, I(i.title), 1),
|
|
2514
|
+
P("p", ka, I(i.desc), 1)
|
|
2515
|
+
]))), 128))
|
|
2516
|
+
])
|
|
2517
|
+
])
|
|
2518
|
+
]),
|
|
2519
|
+
_: 1
|
|
2520
|
+
}, 8, ["data"]));
|
|
2521
|
+
}
|
|
2522
|
+
}), Pa = { class: "min-h-screen w-full flex flex-col justify-center p-8 lg:p-24" }, Oa = { class: "text-center mb-16 reveal-up" }, Ca = { class: "text-5xl font-heading font-bold mb-4" }, Ma = {
|
|
2523
|
+
key: 0,
|
|
2524
|
+
class: "text-xl opacity-60"
|
|
2525
|
+
}, Da = { class: "relative max-w-4xl mx-auto w-full" }, Aa = { class: "space-y-12" }, Ea = { class: "text-sm font-bold tracking-widest uppercase text-blue-400 mb-1" }, Ra = { class: "text-2xl font-bold" }, za = { class: "text-lg opacity-60 leading-relaxed" }, Ia = /* @__PURE__ */ Kt({
|
|
2526
|
+
__name: "LayoutTimeline",
|
|
2527
|
+
props: {
|
|
2528
|
+
data: {}
|
|
2529
|
+
},
|
|
2530
|
+
setup(o) {
|
|
2531
|
+
return (t, e) => (A(), ue(Me, { data: o.data }, {
|
|
2532
|
+
default: Gt(() => [
|
|
2533
|
+
P("div", Pa, [
|
|
2534
|
+
P("div", Oa, [
|
|
2535
|
+
P("h2", Ca, I(o.data.title), 1),
|
|
2536
|
+
o.data.subtitle ? (A(), B("p", Ma, I(o.data.subtitle), 1)) : mt("", !0)
|
|
2537
|
+
]),
|
|
2538
|
+
P("div", Da, [
|
|
2539
|
+
e[1] || (e[1] = P("div", { class: "absolute left-4 md:left-1/2 top-0 bottom-0 w-0.5 bg-white/20 -translate-x-1/2 reveal-zoom origin-top" }, null, -1)),
|
|
2540
|
+
P("div", Aa, [
|
|
2541
|
+
(A(!0), B(qe, null, Xe(o.data.timeline, (i, r) => (A(), B("div", {
|
|
2542
|
+
key: r,
|
|
2543
|
+
class: Pt(["relative flex flex-col md:flex-row gap-8 md:gap-0 items-start md:items-center reveal-card", r % 2 === 0 ? "" : "md:flex-row-reverse"])
|
|
2544
|
+
}, [
|
|
2545
|
+
P("div", {
|
|
2546
|
+
class: Pt(["w-full md:w-1/2 pl-12 md:pl-0 flex flex-col justify-center", r % 2 === 0 ? "md:pr-12 md:text-right md:items-end" : "md:pl-12 md:text-left md:items-start"])
|
|
2547
|
+
}, [
|
|
2548
|
+
P("span", Ea, I(i.date), 1),
|
|
2549
|
+
P("h3", Ra, I(i.title), 1)
|
|
2550
|
+
], 2),
|
|
2551
|
+
e[0] || (e[0] = P("div", { class: "absolute left-4 md:left-1/2 -translate-x-1/2 w-4 h-4 rounded-full bg-blue-500 shadow-[0_0_20px_rgba(59,130,246,0.5)] border-4 border-[#030303] z-10" }, null, -1)),
|
|
2552
|
+
P("div", {
|
|
2553
|
+
class: Pt(["w-full md:w-1/2 pl-12 md:pl-0", r % 2 === 0 ? "md:pl-12" : "md:pr-12 md:text-right"])
|
|
2554
|
+
}, [
|
|
2555
|
+
P("p", za, I(i.description), 1)
|
|
2556
|
+
], 2)
|
|
2557
|
+
], 2))), 128))
|
|
2558
|
+
])
|
|
2559
|
+
])
|
|
2560
|
+
])
|
|
2561
|
+
]),
|
|
2562
|
+
_: 1
|
|
2563
|
+
}, 8, ["data"]));
|
|
2564
|
+
}
|
|
2565
|
+
}), Fa = { class: "min-h-screen w-full flex flex-col justify-center p-8 lg:p-12" }, La = { class: "mb-20 text-center reveal-up" }, $a = { class: "text-5xl font-heading font-bold mb-4" }, Na = {
|
|
2566
|
+
key: 0,
|
|
2567
|
+
class: "text-xl opacity-60 max-w-2xl mx-auto"
|
|
2568
|
+
}, Ba = { class: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 w-full max-w-7xl mx-auto relative" }, Va = { class: "w-20 h-20 rounded-2xl bg-[#111] border border-white/10 flex items-center justify-center text-2xl font-bold mb-6 relative z-10 group-hover:scale-110 transition duration-300 shadow-2xl mx-auto lg:mx-0" }, Ua = { class: "text-transparent bg-clip-text bg-gradient-to-br from-white to-gray-600" }, Ya = { class: "text-xl font-bold mb-3" }, qa = { class: "text-sm leading-relaxed opacity-60" }, Xa = /* @__PURE__ */ Kt({
|
|
2569
|
+
__name: "LayoutSteps",
|
|
2570
|
+
props: {
|
|
2571
|
+
data: {}
|
|
2572
|
+
},
|
|
2573
|
+
setup(o) {
|
|
2574
|
+
return (t, e) => (A(), ue(Me, { data: o.data }, {
|
|
2575
|
+
default: Gt(() => [
|
|
2576
|
+
P("div", Fa, [
|
|
2577
|
+
P("div", La, [
|
|
2578
|
+
P("h2", $a, I(o.data.title), 1),
|
|
2579
|
+
o.data.subtitle ? (A(), B("p", Na, I(o.data.subtitle), 1)) : mt("", !0)
|
|
2580
|
+
]),
|
|
2581
|
+
P("div", Ba, [
|
|
2582
|
+
e[0] || (e[0] = P("div", { class: "hidden lg:block absolute top-[2.5rem] left-0 right-0 h-0.5 bg-gradient-to-r from-transparent via-white/20 to-transparent reveal-zoom origin-left" }, null, -1)),
|
|
2583
|
+
(A(!0), B(qe, null, Xe(o.data.steps, (i, r) => (A(), B("div", {
|
|
2584
|
+
key: r,
|
|
2585
|
+
class: "relative glass-panel p-8 rounded-2xl border border-white/5 reveal-card group hover:bg-white/5 transition duration-500"
|
|
2586
|
+
}, [
|
|
2587
|
+
P("div", Va, [
|
|
2588
|
+
P("span", Ua, I(i.step), 1)
|
|
2589
|
+
]),
|
|
2590
|
+
P("h3", Ya, I(i.title), 1),
|
|
2591
|
+
P("p", qa, I(i.description), 1)
|
|
2592
|
+
]))), 128))
|
|
2593
|
+
])
|
|
2594
|
+
])
|
|
2595
|
+
]),
|
|
2596
|
+
_: 1
|
|
2597
|
+
}, 8, ["data"]));
|
|
2598
|
+
}
|
|
2599
|
+
}), de = {
|
|
2600
|
+
default: {
|
|
2601
|
+
colors: {
|
|
2602
|
+
primary: "#3b82f6",
|
|
2603
|
+
background: "#030303",
|
|
2604
|
+
text: "#ffffff",
|
|
2605
|
+
muted: "#9ca3af"
|
|
2606
|
+
},
|
|
2607
|
+
fonts: {
|
|
2608
|
+
heading: "Inter, sans-serif",
|
|
2609
|
+
body: "Inter, sans-serif",
|
|
2610
|
+
mono: "monospace"
|
|
2611
|
+
}
|
|
2612
|
+
},
|
|
2613
|
+
ocean: {
|
|
2614
|
+
colors: {
|
|
2615
|
+
primary: "#06b6d4",
|
|
2616
|
+
// Cyan
|
|
2617
|
+
background: "#0f172a",
|
|
2618
|
+
// Slate 900
|
|
2619
|
+
text: "#f0f9ff",
|
|
2620
|
+
muted: "#94a3b8"
|
|
2621
|
+
},
|
|
2622
|
+
fonts: {
|
|
2623
|
+
heading: "Outfit, sans-serif",
|
|
2624
|
+
body: "Inter, sans-serif"
|
|
2625
|
+
}
|
|
2626
|
+
},
|
|
2627
|
+
midnight: {
|
|
2628
|
+
colors: {
|
|
2629
|
+
primary: "#6366f1",
|
|
2630
|
+
// Indigo
|
|
2631
|
+
background: "#000000",
|
|
2632
|
+
text: "#e0e7ff",
|
|
2633
|
+
muted: "#6b7280"
|
|
2634
|
+
}
|
|
2635
|
+
},
|
|
2636
|
+
forest: {
|
|
2637
|
+
colors: {
|
|
2638
|
+
primary: "#10b981",
|
|
2639
|
+
// Emerald
|
|
2640
|
+
background: "#022c22",
|
|
2641
|
+
// Dark Green
|
|
2642
|
+
text: "#ecfdf5",
|
|
2643
|
+
muted: "#6ee7b7"
|
|
2644
|
+
}
|
|
2645
|
+
},
|
|
2646
|
+
cyber: {
|
|
2647
|
+
colors: {
|
|
2648
|
+
primary: "#f472b6",
|
|
2649
|
+
// Pink
|
|
2650
|
+
background: "#18181b",
|
|
2651
|
+
// Zinc 900
|
|
2652
|
+
text: "#ffffff",
|
|
2653
|
+
muted: "#a1a1aa"
|
|
2654
|
+
},
|
|
2655
|
+
fonts: {
|
|
2656
|
+
heading: "Orbitron, sans-serif",
|
|
2657
|
+
body: "Rajdhani, sans-serif"
|
|
2658
|
+
}
|
|
2659
|
+
},
|
|
2660
|
+
latte: {
|
|
2661
|
+
colors: {
|
|
2662
|
+
primary: "#d97706",
|
|
2663
|
+
// Amber
|
|
2664
|
+
background: "#fffbeb",
|
|
2665
|
+
// Amber 50
|
|
2666
|
+
text: "#451a03",
|
|
2667
|
+
// Amber 900
|
|
2668
|
+
muted: "#92400e"
|
|
2669
|
+
},
|
|
2670
|
+
fonts: {
|
|
2671
|
+
heading: "Playfair Display, serif",
|
|
2672
|
+
body: "Lato, sans-serif"
|
|
2673
|
+
}
|
|
2674
|
+
}
|
|
2675
|
+
}, rr = "lumina-theme-styles";
|
|
2676
|
+
class ja {
|
|
2677
|
+
/**
|
|
2678
|
+
* Injects the requested theme into the document head.
|
|
2679
|
+
* If a string is provided, it looks up the preset.
|
|
2680
|
+
* If an object is provided, it merges it with the default preset.
|
|
2681
|
+
*
|
|
2682
|
+
* @param theme - A preset name ('ocean', 'cyber') or a partial ThemeConfig object.
|
|
2683
|
+
*/
|
|
2684
|
+
static inject(t) {
|
|
2685
|
+
let e;
|
|
2686
|
+
typeof t == "string" ? e = de[t] || de.default : (e = { ...de.default, ...t }, t.colors && (e.colors = { ...de.default.colors, ...t.colors }), t.fonts && (e.fonts = { ...de.default.fonts, ...t.fonts }));
|
|
2687
|
+
let i = document.getElementById(rr);
|
|
2688
|
+
i || (i = document.createElement("style"), i.id = rr, document.head.appendChild(i));
|
|
2689
|
+
const r = this.generateVars(e);
|
|
2690
|
+
i.innerHTML = `:root { ${r} }`;
|
|
2691
|
+
}
|
|
2692
|
+
/**
|
|
2693
|
+
* Converts a ThemeConfig object into a CSS string of standard variables.
|
|
2694
|
+
* Also generates RGB triplets for use with alpha channels (e.g. `rgba(var(--color), 0.5)`).
|
|
2695
|
+
*
|
|
2696
|
+
* @param theme - The resolved theme configuration.
|
|
2697
|
+
* @returns A string of CSS variables.
|
|
2698
|
+
*/
|
|
2699
|
+
static generateVars(t) {
|
|
2700
|
+
const e = [];
|
|
2701
|
+
if (t.colors) {
|
|
2702
|
+
for (const [i, r] of Object.entries(t.colors))
|
|
2703
|
+
if (r) {
|
|
2704
|
+
e.push(`--lumina-${i}: ${r};`);
|
|
2705
|
+
const n = this.hexToRgb(r);
|
|
2706
|
+
n && e.push(`--lumina-${i}-rgb: ${n.r}, ${n.g}, ${n.b};`);
|
|
2707
|
+
}
|
|
2708
|
+
}
|
|
2709
|
+
if (t.fonts)
|
|
2710
|
+
for (const [i, r] of Object.entries(t.fonts))
|
|
2711
|
+
r && e.push(`--lumina-font-${i}: ${r};`);
|
|
2712
|
+
return e.join(" ");
|
|
2713
|
+
}
|
|
2714
|
+
/**
|
|
2715
|
+
* Helper to parse a Hex color string into RGB components.
|
|
2716
|
+
* @param hex - Hex string (e.g. "#ffffff" or "000")
|
|
2717
|
+
* @returns Object with r, g, b values or null if invalid.
|
|
2718
|
+
*/
|
|
2719
|
+
static hexToRgb(t) {
|
|
2720
|
+
const e = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);
|
|
2721
|
+
return e ? {
|
|
2722
|
+
r: parseInt(e[1], 16),
|
|
2723
|
+
g: parseInt(e[2], 16),
|
|
2724
|
+
b: parseInt(e[3], 16)
|
|
2725
|
+
} : null;
|
|
2726
|
+
}
|
|
2727
|
+
}
|
|
2728
|
+
class Ka {
|
|
2729
|
+
/**
|
|
2730
|
+
* Creates a new Lumina instance.
|
|
2731
|
+
*
|
|
2732
|
+
* @param selector - CSS selector for the container element (e.g. '#app').
|
|
2733
|
+
* @param options - Configuration options (theme, loop, keys, etc.).
|
|
2734
|
+
*/
|
|
2735
|
+
constructor(t, e = {}) {
|
|
2736
|
+
Ae(this, "app");
|
|
2737
|
+
Ae(this, "store");
|
|
2738
|
+
this.selector = t, this.store = mn(e), e.theme && ja.inject(e.theme), this.app = _n(Js), this.app.provide(Oe, this.store), this.app.component("layout-statement", la), this.app.component("layout-half", ma), this.app.component("layout-features", Sa), this.app.component("layout-timeline", Ia), this.app.component("layout-steps", Xa), this.app.mount(this.selector);
|
|
2739
|
+
}
|
|
2740
|
+
/**
|
|
2741
|
+
* Loads a Deck object into the engine.
|
|
2742
|
+
* Use this to start the presentation or switch decks dynamically.
|
|
2743
|
+
*
|
|
2744
|
+
* @param deckData - The Deck object containing meta and slides.
|
|
2745
|
+
*/
|
|
2746
|
+
load(t) {
|
|
2747
|
+
this.store.loadDeck(t), _e.emit("ready", t);
|
|
2748
|
+
}
|
|
2749
|
+
/**
|
|
2750
|
+
* Subscribes to an engine event.
|
|
2751
|
+
* Wrapper around the internal EventBus.
|
|
2752
|
+
*
|
|
2753
|
+
* @param event - Event name ('ready', 'slideChange', 'action', 'error').
|
|
2754
|
+
* @param handler - Callback function.
|
|
2755
|
+
*/
|
|
2756
|
+
on(t, e) {
|
|
2757
|
+
_e.on(t, e);
|
|
2758
|
+
}
|
|
2759
|
+
/**
|
|
2760
|
+
* Unsubscribes from an engine event.
|
|
2761
|
+
*
|
|
2762
|
+
* @param event - Event name.
|
|
2763
|
+
* @param handler - The callback function to remove.
|
|
2764
|
+
*/
|
|
2765
|
+
off(t, e) {
|
|
2766
|
+
_e.off(t, e);
|
|
2767
|
+
}
|
|
2768
|
+
destroy() {
|
|
2769
|
+
this.app && (this.app.unmount(), this.app = null), _e.clear();
|
|
2770
|
+
}
|
|
2771
|
+
}
|
|
2772
|
+
export {
|
|
2773
|
+
Ka as Lumina,
|
|
2774
|
+
Js as LuminaDeck,
|
|
2775
|
+
_e as bus
|
|
2776
|
+
};
|