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