vue-pointer-boxes 0.0.0-stage → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2516 @@
1
+ import { ref as Fi, computed as Ni, onMounted as nn, nextTick as sn, onBeforeUnmount as on, openBlock as Ii, createElementBlock as Bi, normalizeStyle as Wi, createElementVNode as an, renderSlot as ln, toDisplayString as fn, createCommentVNode as un, createApp as hn } from "vue";
2
+ function Dt(l) {
3
+ if (l === void 0)
4
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
5
+ return l;
6
+ }
7
+ function or(l, t) {
8
+ l.prototype = Object.create(t.prototype), l.prototype.constructor = l, l.__proto__ = t;
9
+ }
10
+ /*!
11
+ * GSAP 3.15.1
12
+ * https://gsap.com
13
+ *
14
+ * @license Copyright 2008-2026, GreenSock. All rights reserved.
15
+ * Subject to the terms at https://gsap.com/standard-license
16
+ * @author: Jack Doyle, jack@greensock.com
17
+ */
18
+ var yt = {
19
+ autoSleep: 120,
20
+ force3D: "auto",
21
+ nullTargetWarn: 1,
22
+ units: {
23
+ lineHeight: ""
24
+ }
25
+ }, we = {
26
+ duration: 0.5,
27
+ overwrite: !1,
28
+ delay: 0
29
+ }, gi, rt, X, bt = 1e8, B = 1 / bt, ni = Math.PI * 2, cn = ni / 4, _n = 0, ar = Math.sqrt, dn = Math.cos, pn = Math.sin, it = function(t) {
30
+ return typeof t == "string";
31
+ }, K = function(t) {
32
+ return typeof t == "function";
33
+ }, At = function(t) {
34
+ return typeof t == "number";
35
+ }, mi = function(t) {
36
+ return typeof t > "u";
37
+ }, Ot = function(t) {
38
+ return typeof t == "object";
39
+ }, ft = function(t) {
40
+ return t !== !1;
41
+ }, yi = function() {
42
+ return typeof window < "u";
43
+ }, Ee = function(t) {
44
+ return K(t) || it(t);
45
+ }, lr = typeof ArrayBuffer == "function" && ArrayBuffer.isView || function() {
46
+ }, st = Array.isArray, gn = /random\([^)]+\)/g, mn = /,\s*/g, Vi = /(?:-?\.?\d|\.)+/gi, fr = /[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g, se = /[-+=.]*\d+[.e-]*\d*[a-z%]*/g, Ze = /[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi, ur = /[+-]=-?[.\d]+/, yn = /[^,'"\[\]\s]+/gi, xn = /^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i, $, Ct, si, xi, xt = {}, Ie = {}, hr, cr = function(t) {
47
+ return (Ie = ue(t, xt)) && _t;
48
+ }, vi = function(t, e) {
49
+ return console.warn("Invalid property", t, "set to", e, "Missing plugin? gsap.registerPlugin()");
50
+ }, be = function(t, e) {
51
+ return !e && console.warn(t);
52
+ }, _r = function(t, e) {
53
+ return t && (xt[t] = e) && Ie && (Ie[t] = e) || xt;
54
+ }, Se = function() {
55
+ return 0;
56
+ }, vn = {
57
+ suppressEvents: !0,
58
+ isStart: !0,
59
+ kill: !1
60
+ }, Ae = {
61
+ suppressEvents: !0,
62
+ kill: !1
63
+ }, Tn = {
64
+ suppressEvents: !0
65
+ }, Ti = {}, Wt = [], oi = {}, dr, dt = {}, Ke = {}, Yi = 30, Le = [], wi = "", bi = function(t) {
66
+ var e = t[0], i, r;
67
+ if (Ot(e) || K(e) || (t = [t]), !(i = (e._gsap || {}).harness)) {
68
+ for (r = Le.length; r-- && !Le[r].targetTest(e); )
69
+ ;
70
+ i = Le[r];
71
+ }
72
+ for (r = t.length; r--; )
73
+ t[r] && (t[r]._gsap || (t[r]._gsap = new Fr(t[r], i))) || t.splice(r, 1);
74
+ return t;
75
+ }, Qt = function(t) {
76
+ return t._gsap || bi(St(t))[0]._gsap;
77
+ }, pr = function(t, e, i) {
78
+ return (i = t[e]) && K(i) ? t[e]() : mi(i) && t.getAttribute && t.getAttribute(e) || i;
79
+ }, ut = function(t, e) {
80
+ return (t = t.split(",")).forEach(e) || t;
81
+ }, J = function(t) {
82
+ return Math.round(t * 1e5) / 1e5 || 0;
83
+ }, G = function(t) {
84
+ return Math.round(t * 1e7) / 1e7 || 0;
85
+ }, ae = function(t, e) {
86
+ var i = e.charAt(0), r = parseFloat(e.substr(2));
87
+ return t = parseFloat(t), i === "+" ? t + r : i === "-" ? t - r : i === "*" ? t * r : t / r;
88
+ }, wn = function(t, e) {
89
+ for (var i = e.length, r = 0; t.indexOf(e[r]) < 0 && ++r < i; )
90
+ ;
91
+ return r < i;
92
+ }, Be = function() {
93
+ var t = Wt.length, e = Wt.slice(0), i, r;
94
+ for (oi = {}, Wt.length = 0, i = 0; i < t; i++)
95
+ r = e[i], r && r._lazy && (r.render(r._lazy[0], r._lazy[1], !0)._lazy = 0);
96
+ }, Si = function(t) {
97
+ return !!(t._initted || t._startAt || t.add);
98
+ }, gr = function(t, e, i, r) {
99
+ Wt.length && !rt && Be(), t.render(e, i, !!(rt && e < 0 && Si(t))), Wt.length && !rt && Be();
100
+ }, mr = function(t) {
101
+ var e = parseFloat(t);
102
+ return (e || e === 0) && (t + "").match(yn).length < 2 ? e : it(t) ? t.trim() : t;
103
+ }, yr = function(t) {
104
+ return t;
105
+ }, vt = function(t, e) {
106
+ for (var i in e)
107
+ i in t || (t[i] = e[i]);
108
+ return t;
109
+ }, bn = function(t) {
110
+ return function(e, i) {
111
+ for (var r in i)
112
+ r in e || r === "duration" && t || r === "ease" || (e[r] = i[r]);
113
+ };
114
+ }, ue = function(t, e) {
115
+ for (var i in e)
116
+ t[i] = e[i];
117
+ return t;
118
+ }, Ui = function l(t, e) {
119
+ for (var i in e)
120
+ i !== "__proto__" && i !== "constructor" && i !== "prototype" && (t[i] = Ot(e[i]) ? l(t[i] || (t[i] = {}), e[i]) : e[i]);
121
+ return t;
122
+ }, We = function(t, e) {
123
+ var i = {}, r;
124
+ for (r in t)
125
+ r in e || (i[r] = t[r]);
126
+ return i;
127
+ }, xe = function(t) {
128
+ var e = t.parent || $, i = t.keyframes ? bn(st(t.keyframes)) : vt;
129
+ if (ft(t.inherit))
130
+ for (; e; )
131
+ i(t, e.vars.defaults), e = e.parent || e._dp;
132
+ return t;
133
+ }, Sn = function(t, e) {
134
+ for (var i = t.length, r = i === e.length; r && i-- && t[i] === e[i]; )
135
+ ;
136
+ return i < 0;
137
+ }, xr = function(t, e, i, r, n) {
138
+ var s = t[r], o;
139
+ if (n)
140
+ for (o = e[n]; s && s[n] > o; )
141
+ s = s._prev;
142
+ return s ? (e._next = s._next, s._next = e) : (e._next = t[i], t[i] = e), e._next ? e._next._prev = e : t[r] = e, e._prev = s, e.parent = e._dp = t, e;
143
+ }, Ge = function(t, e, i, r) {
144
+ i === void 0 && (i = "_first"), r === void 0 && (r = "_last");
145
+ var n = e._prev, s = e._next;
146
+ n ? n._next = s : t[i] === e && (t[i] = s), s ? s._prev = n : t[r] === e && (t[r] = n), e._next = e._prev = e.parent = null;
147
+ }, Yt = function(t, e) {
148
+ t.parent && (!e || t.parent.autoRemoveChildren) && t.parent.remove && t.parent.remove(t), t._act = 0;
149
+ }, Jt = function(t, e) {
150
+ if (t && (!e || e._end > t._dur || e._start < 0))
151
+ for (var i = t; i; )
152
+ i._dirty = 1, i = i.parent;
153
+ return t;
154
+ }, kn = function(t) {
155
+ for (var e = t.parent; e && e.parent; )
156
+ e._dirty = 1, e.totalDuration(), e = e.parent;
157
+ return t;
158
+ }, ai = function(t, e, i, r) {
159
+ return t._startAt && (rt ? t._startAt.revert(Ae) : t.vars.immediateRender && !t.vars.autoRevert || t._startAt.render(e, !0, r));
160
+ }, Cn = function l(t) {
161
+ return !t || t._ts && l(t.parent);
162
+ }, qi = function(t) {
163
+ return t._repeat ? he(t._tTime, t = t.duration() + t._rDelay) * t : 0;
164
+ }, he = function(t, e) {
165
+ var i = Math.floor(t = G(t / e));
166
+ return t && i === t ? i - 1 : i;
167
+ }, Ve = function(t, e) {
168
+ return (t - e._start) * e._ts + (e._ts >= 0 ? 0 : e._dirty ? e.totalDuration() : e._tDur);
169
+ }, $e = function(t) {
170
+ return t._end = G(t._start + (t._tDur / Math.abs(t._ts || t._rts || B) || 0));
171
+ }, je = function(t, e) {
172
+ var i = t._dp;
173
+ return i && i.smoothChildTiming && t._ts && (t._start = G(i._time - (t._ts > 0 ? e / t._ts : ((t._dirty ? t.totalDuration() : t._tDur) - e) / -t._ts)), $e(t), i._dirty || Jt(i, t)), t;
174
+ }, vr = function(t, e) {
175
+ var i;
176
+ if ((e._time || !e._dur && e._initted || e._start < t._time && (e._dur || !e.add)) && (i = Ve(t.rawTime(), e), (!e._dur || De(0, e.totalDuration(), i) - e._tTime > B) && e.render(i, !0)), Jt(t, e)._dp && t._initted && t._time >= t._dur && t._ts) {
177
+ if (t._dur < t.duration())
178
+ for (i = t; i._dp; )
179
+ i.rawTime() >= 0 && i.totalTime(i._tTime), i = i._dp;
180
+ t._zTime = -B;
181
+ }
182
+ }, Pt = function(t, e, i, r) {
183
+ return e.parent && Yt(e), e._start = G((At(i) ? i : !i && Ye(e) && (!t._last || t._last._start >= t._time) ? t._last ? t._last._start : t._time : i || t !== $ ? wt(t, i, e) : t._time) + e._delay), e._end = G(e._start + (e.totalDuration() / Math.abs(e.timeScale()) || 0)), xr(t, e, "_first", "_last", t._sort ? "_start" : 0), Ye(e) || (t._recent = e), r || vr(t, e), t._ts < 0 && je(t, t._tTime), t;
184
+ }, Tr = function(t, e) {
185
+ return (xt.ScrollTrigger || vi("scrollTrigger", e)) && xt.ScrollTrigger.create(e, t);
186
+ }, wr = function(t, e, i, r, n) {
187
+ if (Ci(t, e, n), !t._initted)
188
+ return 1;
189
+ if (!i && t._pt && !rt && (t._dur && t.vars.lazy !== !1 || !t._dur && t.vars.lazy) && dr !== pt.frame)
190
+ return Wt.push(t), t._lazy = [n, r], 1;
191
+ }, Pn = function l(t) {
192
+ var e = t.parent;
193
+ return e && e._ts && e._initted && !e._lock && (e.rawTime() < 0 || l(e));
194
+ }, Ye = function(t) {
195
+ var e = t.data;
196
+ return e === "isFromStart" || e === "isStart";
197
+ }, Mn = function(t, e, i, r) {
198
+ var n = t.ratio, s = e < 0 || !e && (!t._start && Pn(t) && !(!t._initted && Ye(t)) || (t._ts < 0 || t._dp._ts < 0) && !Ye(t)) ? 0 : 1, o = t._rDelay, a = 0, f, u, _;
199
+ if (o && t._repeat && (a = De(0, t._tDur, e), u = he(a, o), t._yoyo && u & 1 && (s = 1 - s), u !== he(t._tTime, o) && (n = 1 - s, t.vars.repeatRefresh && t._initted && t.invalidate())), s !== n || rt || r || t._zTime === B || !e && t._zTime) {
200
+ if (!t._initted && wr(t, e, r, i, a))
201
+ return;
202
+ for (_ = t._zTime, t._zTime = e || (i ? B : 0), i || (i = e && !_), t.ratio = s, t._from && (s = 1 - s), t._time = 0, t._tTime = a, f = t._pt; f; )
203
+ f.r(s, f.d), f = f._next;
204
+ e < 0 && ai(t, e, i, !0), t._onUpdate && !i && gt(t, "onUpdate"), a && t._repeat && !i && t.parent && gt(t, "onRepeat"), (e >= t._tDur || e < 0) && t.ratio === s && (s && Yt(t, 1), !i && !rt && (gt(t, s ? "onComplete" : "onReverseComplete", !0), t._prom && t._prom()));
205
+ } else t._zTime || (t._zTime = e);
206
+ }, On = function(t, e, i) {
207
+ var r;
208
+ if (i > e)
209
+ for (r = t._first; r && r._start <= i; ) {
210
+ if (r.data === "isPause" && r._start > e)
211
+ return r;
212
+ r = r._next;
213
+ }
214
+ else
215
+ for (r = t._last; r && r._start >= i; ) {
216
+ if (r.data === "isPause" && r._start < e)
217
+ return r;
218
+ r = r._prev;
219
+ }
220
+ }, ce = function(t, e, i, r) {
221
+ var n = t._repeat, s = G(e) || 0, o = t._tTime / t._tDur;
222
+ return o && !r && (t._time *= s / t._dur), t._dur = s, t._tDur = n ? n < 0 ? 1e10 : G(s * (n + 1) + t._rDelay * n) : s, o > 0 && !r && je(t, t._tTime = t._tDur * o), t.parent && $e(t), i || Jt(t.parent, t), t;
223
+ }, Hi = function(t) {
224
+ return t instanceof lt ? Jt(t) : ce(t, t._dur);
225
+ }, Rn = {
226
+ _start: 0,
227
+ endTime: Se,
228
+ totalDuration: Se
229
+ }, wt = function l(t, e, i) {
230
+ var r = t.labels, n = t._recent || Rn, s = t.duration() >= bt ? n.endTime(!1) : t._dur, o, a, f;
231
+ return it(e) && (isNaN(e) || e in r) ? (a = e.charAt(0), f = e.substr(-1) === "%", o = e.indexOf("="), a === "<" || a === ">" ? (o >= 0 && (e = e.replace(/=/, "")), (a === "<" ? n._start : n.endTime(n._repeat >= 0)) + (parseFloat(e.substr(1)) || 0) * (f ? (o < 0 ? n : i).totalDuration() / 100 : 1)) : o < 0 ? (e in r || (r[e] = s), r[e]) : (a = parseFloat(e.charAt(o - 1) + e.substr(o + 1)), f && i && (a = a / 100 * (st(i) ? i[0] : i).totalDuration()), o > 1 ? l(t, e.substr(0, o - 1), i) + a : s + a)) : e == null ? s : +e;
232
+ }, ve = function(t, e, i) {
233
+ var r = At(e[1]), n = (r ? 2 : 1) + (t < 2 ? 0 : 1), s = e[n], o, a;
234
+ if (r && (s.duration = e[1]), s.parent = i, t) {
235
+ for (o = s, a = i; a && !("immediateRender" in o); )
236
+ o = a.vars.defaults || {}, a = ft(a.vars.inherit) && a.parent;
237
+ s.immediateRender = ft(o.immediateRender), t < 2 ? s.runBackwards = 1 : s.startAt = e[n - 1];
238
+ }
239
+ return new et(e[0], s, e[n + 1]);
240
+ }, Ht = function(t, e) {
241
+ return t || t === 0 ? e(t) : e;
242
+ }, De = function(t, e, i) {
243
+ return i < t ? t : i > e ? e : i;
244
+ }, nt = function(t, e) {
245
+ return !it(t) || !(e = xn.exec(t)) ? "" : e[1];
246
+ }, Dn = function(t, e, i) {
247
+ return Ht(i, function(r) {
248
+ return De(t, e, r);
249
+ });
250
+ }, li = [].slice, br = function(t, e) {
251
+ return t && Ot(t) && "length" in t && (!e && !t.length || t.length - 1 in t && Ot(t[0])) && !t.nodeType && t !== Ct;
252
+ }, En = function(t, e, i) {
253
+ return i === void 0 && (i = []), t.forEach(function(r) {
254
+ var n;
255
+ return it(r) && !e || br(r, 1) ? (n = i).push.apply(n, St(r)) : i.push(r);
256
+ }) || i;
257
+ }, St = function(t, e, i) {
258
+ return X && !e && X.selector ? X.selector(t) : it(t) && !i && (si || !_e()) ? li.call((e || xi).querySelectorAll(t), 0) : st(t) ? En(t, i) : br(t) ? li.call(t, 0) : t ? [t] : [];
259
+ }, fi = function(t) {
260
+ return t = St(t)[0] || be("Invalid scope") || {}, function(e) {
261
+ var i = t.current || t.nativeElement || t;
262
+ return St(e, i.querySelectorAll ? i : i === t ? be("Invalid scope") || xi.createElement("div") : t);
263
+ };
264
+ }, Sr = function(t) {
265
+ return t.sort(function() {
266
+ return 0.5 - Math.random();
267
+ });
268
+ }, kr = function(t) {
269
+ if (K(t))
270
+ return t;
271
+ var e = Ot(t) ? t : {
272
+ each: t
273
+ }, i = te(e.ease), r = e.from || 0, n = parseFloat(e.base) || 0, s = {}, o = r > 0 && r < 1, a = isNaN(r) || o, f = e.axis, u = r, _ = r;
274
+ return it(r) ? u = _ = {
275
+ center: 0.5,
276
+ edges: 0.5,
277
+ end: 1
278
+ }[r] || 0 : !o && a && (u = r[0], _ = r[1]), function(d, g, m) {
279
+ var h = (m || e).length, y = s[h], x, v, w, b, T, M, S, C, k;
280
+ if (!y) {
281
+ if (k = e.grid === "auto" ? 0 : (e.grid || [1, bt])[1], !k) {
282
+ for (S = -bt; S < (S = m[k++].getBoundingClientRect().left) && k < h; )
283
+ ;
284
+ k < h && k--;
285
+ }
286
+ for (y = s[h] = [], x = a ? Math.min(k, h) * u - 0.5 : r % k, v = k === bt ? 0 : a ? h * _ / k - 0.5 : r / k | 0, S = 0, C = bt, M = 0; M < h; M++)
287
+ w = M % k - x, b = v - (M / k | 0), y[M] = T = f ? Math.abs(f === "y" ? b : w) : ar(w * w + b * b), T > S && (S = T), T < C && (C = T);
288
+ r === "random" && Sr(y), y.max = S - C, y.min = C, y.v = h = (parseFloat(e.amount) || parseFloat(e.each) * (k > h ? h - 1 : f ? f === "y" ? h / k : k : Math.max(k, h / k)) || 0) * (r === "edges" ? -1 : 1), y.b = h < 0 ? n - h : n, y.u = nt(e.amount || e.each) || 0, i = i && h < 0 ? Hn(i) : i;
289
+ }
290
+ return h = (y[d] - y.min) / y.max || 0, G(y.b + (i ? i(h) : h) * y.v) + y.u;
291
+ };
292
+ }, ui = function(t) {
293
+ var e = Math.pow(10, ((t + "").split(".")[1] || "").length);
294
+ return function(i) {
295
+ var r = G(Math.round(parseFloat(i) / t) * t * e);
296
+ return (r - r % 1) / e + (At(i) ? 0 : nt(i));
297
+ };
298
+ }, Cr = function(t, e) {
299
+ var i = st(t), r, n;
300
+ return !i && Ot(t) && (r = i = t.radius || bt, t.values ? (t = St(t.values), (n = !At(t[0])) && (r *= r)) : t = ui(t.increment)), Ht(e, i ? K(t) ? function(s) {
301
+ return n = t(s), Math.abs(n - s) <= r ? n : s;
302
+ } : function(s) {
303
+ for (var o = parseFloat(n ? s.x : s), a = parseFloat(n ? s.y : 0), f = bt, u = 0, _ = t.length, d, g; _--; )
304
+ n ? (d = t[_].x - o, g = t[_].y - a, d = d * d + g * g) : d = Math.abs(t[_] - o), d < f && (f = d, u = _);
305
+ return u = !r || f <= r ? t[u] : s, n || u === s || At(s) ? u : u + nt(s);
306
+ } : ui(t));
307
+ }, Pr = function(t, e, i, r) {
308
+ return Ht(st(t) ? !e : i === !0 ? !!(i = 0) : !r, function() {
309
+ return st(t) ? t[~~(Math.random() * t.length)] : (i = i || 1e-5) && (r = i < 1 ? Math.pow(10, (i + "").length - 2) : 1) && Math.floor(Math.round((t - i / 2 + Math.random() * (e - t + i * 0.99)) / i) * i * r) / r;
310
+ });
311
+ }, An = function() {
312
+ for (var t = arguments.length, e = new Array(t), i = 0; i < t; i++)
313
+ e[i] = arguments[i];
314
+ return function(r) {
315
+ return e.reduce(function(n, s) {
316
+ return s(n);
317
+ }, r);
318
+ };
319
+ }, Ln = function(t, e) {
320
+ return function(i) {
321
+ return t(parseFloat(i)) + (e || nt(i));
322
+ };
323
+ }, zn = function(t, e, i) {
324
+ return Or(t, e, 0, 1, i);
325
+ }, Mr = function(t, e, i) {
326
+ return Ht(i, function(r) {
327
+ return t[~~e(r)];
328
+ });
329
+ }, Fn = function l(t, e, i) {
330
+ var r = e - t;
331
+ return st(t) ? Mr(t, l(0, t.length), e) : Ht(i, function(n) {
332
+ return (r + (n - t) % r) % r + t;
333
+ });
334
+ }, Nn = function l(t, e, i) {
335
+ var r = e - t, n = r * 2;
336
+ return st(t) ? Mr(t, l(0, t.length - 1), e) : Ht(i, function(s) {
337
+ return s = (n + (s - t) % n) % n || 0, t + (s > r ? n - s : s);
338
+ });
339
+ }, ke = function(t) {
340
+ return t.replace(gn, function(e) {
341
+ var i = e.indexOf("[") + 1, r = e.substring(i || 7, i ? e.indexOf("]") : e.length - 1).split(mn);
342
+ return Pr(i ? r : +r[0], i ? 0 : +r[1], +r[2] || 1e-5);
343
+ });
344
+ }, Or = function(t, e, i, r, n) {
345
+ var s = e - t, o = r - i;
346
+ return Ht(n, function(a) {
347
+ return i + ((a - t) / s * o || 0);
348
+ });
349
+ }, In = function l(t, e, i, r) {
350
+ var n = isNaN(t + e) ? 0 : function(g) {
351
+ return (1 - g) * t + g * e;
352
+ };
353
+ if (!n) {
354
+ var s = it(t), o = {}, a, f, u, _, d;
355
+ if (i === !0 && (r = 1) && (i = null), s)
356
+ t = {
357
+ p: t
358
+ }, e = {
359
+ p: e
360
+ };
361
+ else if (st(t) && !st(e)) {
362
+ for (u = [], _ = t.length, d = _ - 2, f = 1; f < _; f++)
363
+ u.push(l(t[f - 1], t[f]));
364
+ _--, n = function(m) {
365
+ m *= _;
366
+ var h = Math.min(d, ~~m);
367
+ return u[h](m - h);
368
+ }, i = e;
369
+ } else r || (t = ue(st(t) ? [] : {}, t));
370
+ if (!u) {
371
+ for (a in e)
372
+ ki.call(o, t, a, "get", e[a]);
373
+ n = function(m) {
374
+ return Oi(m, o) || (s ? t.p : t);
375
+ };
376
+ }
377
+ }
378
+ return Ht(i, n);
379
+ }, Xi = function(t, e, i) {
380
+ var r = t.labels, n = bt, s, o, a;
381
+ for (s in r)
382
+ o = r[s] - e, o < 0 == !!i && o && n > (o = Math.abs(o)) && (a = s, n = o);
383
+ return a;
384
+ }, gt = function(t, e, i) {
385
+ var r = t.vars, n = r[e], s = X, o = t._ctx, a, f, u;
386
+ if (n)
387
+ return a = r[e + "Params"], f = r.callbackScope || t, i && Wt.length && Be(), o && (X = o), u = a ? n.apply(f, a) : n.call(f), X = s, u;
388
+ }, me = function(t) {
389
+ return Yt(t), t.scrollTrigger && t.scrollTrigger.kill(!!rt), t.progress() < 1 && gt(t, "onInterrupt"), t;
390
+ }, oe, Rr = [], Dr = function(t) {
391
+ if (t)
392
+ if (t = !t.name && t.default || t, yi() || t.headless) {
393
+ var e = t.name, i = K(t), r = e && !i && t.init ? function() {
394
+ this._props = [];
395
+ } : t, n = {
396
+ init: Se,
397
+ render: Oi,
398
+ add: ki,
399
+ kill: es,
400
+ modifier: ts,
401
+ rawVars: 0
402
+ }, s = {
403
+ targetTest: 0,
404
+ get: 0,
405
+ getSetter: Mi,
406
+ aliases: {},
407
+ register: 0
408
+ };
409
+ if (_e(), t !== r) {
410
+ if (dt[e])
411
+ return;
412
+ vt(r, vt(We(t, n), s)), ue(r.prototype, ue(n, We(t, s))), dt[r.prop = e] = r, t.targetTest && (Le.push(r), Ti[e] = 1), e = (e === "css" ? "CSS" : e.charAt(0).toUpperCase() + e.substr(1)) + "Plugin";
413
+ }
414
+ _r(e, r), t.register && t.register(_t, r, ht);
415
+ } else
416
+ Rr.push(t);
417
+ }, W = 255, ye = {
418
+ aqua: [0, W, W],
419
+ lime: [0, W, 0],
420
+ silver: [192, 192, 192],
421
+ black: [0, 0, 0],
422
+ maroon: [128, 0, 0],
423
+ teal: [0, 128, 128],
424
+ blue: [0, 0, W],
425
+ navy: [0, 0, 128],
426
+ white: [W, W, W],
427
+ olive: [128, 128, 0],
428
+ yellow: [W, W, 0],
429
+ orange: [W, 165, 0],
430
+ gray: [128, 128, 128],
431
+ purple: [128, 0, 128],
432
+ green: [0, 128, 0],
433
+ red: [W, 0, 0],
434
+ pink: [W, 192, 203],
435
+ cyan: [0, W, W],
436
+ transparent: [W, W, W, 0]
437
+ }, Qe = function(t, e, i) {
438
+ return t += t < 0 ? 1 : t > 1 ? -1 : 0, (t * 6 < 1 ? e + (i - e) * t * 6 : t < 0.5 ? i : t * 3 < 2 ? e + (i - e) * (2 / 3 - t) * 6 : e) * W + 0.5 | 0;
439
+ }, Er = function(t, e, i) {
440
+ var r = t ? At(t) ? [t >> 16, t >> 8 & W, t & W] : 0 : ye.black, n, s, o, a, f, u, _, d, g, m;
441
+ if (!r) {
442
+ if (t.substr(-1) === "," && (t = t.substr(0, t.length - 1)), ye[t])
443
+ r = ye[t];
444
+ else if (t.charAt(0) === "#") {
445
+ if (t.length < 6 && (n = t.charAt(1), s = t.charAt(2), o = t.charAt(3), t = "#" + n + n + s + s + o + o + (t.length === 5 ? t.charAt(4) + t.charAt(4) : "")), t.length === 9)
446
+ return r = parseInt(t.substr(1, 6), 16), [r >> 16, r >> 8 & W, r & W, parseInt(t.substr(7), 16) / 255];
447
+ t = parseInt(t.substr(1), 16), r = [t >> 16, t >> 8 & W, t & W];
448
+ } else if (t.substr(0, 3) === "hsl") {
449
+ if (r = m = t.match(Vi), !e)
450
+ a = +r[0] % 360 / 360, f = +r[1] / 100, u = +r[2] / 100, s = u <= 0.5 ? u * (f + 1) : u + f - u * f, n = u * 2 - s, r.length > 3 && (r[3] *= 1), r[0] = Qe(a + 1 / 3, n, s), r[1] = Qe(a, n, s), r[2] = Qe(a - 1 / 3, n, s);
451
+ else if (~t.indexOf("="))
452
+ return r = t.match(fr), i && r.length < 4 && (r[3] = 1), r;
453
+ } else
454
+ r = t.match(Vi) || ye.transparent;
455
+ r = r.map(Number);
456
+ }
457
+ return e && !m && (n = r[0] / W, s = r[1] / W, o = r[2] / W, _ = Math.max(n, s, o), d = Math.min(n, s, o), u = (_ + d) / 2, _ === d ? a = f = 0 : (g = _ - d, f = u > 0.5 ? g / (2 - _ - d) : g / (_ + d), a = _ === n ? (s - o) / g + (s < o ? 6 : 0) : _ === s ? (o - n) / g + 2 : (n - s) / g + 4, a *= 60), r[0] = ~~(a + 0.5), r[1] = ~~(f * 100 + 0.5), r[2] = ~~(u * 100 + 0.5)), i && r.length < 4 && (r[3] = 1), r;
458
+ }, Ar = function(t) {
459
+ var e = [], i = [], r = -1;
460
+ return t.split(Vt).forEach(function(n) {
461
+ var s = n.match(se) || [];
462
+ e.push.apply(e, s), i.push(r += s.length + 1);
463
+ }), e.c = i, e;
464
+ }, Gi = function(t, e, i) {
465
+ var r = "", n = (t + r).match(Vt), s = e ? "hsla(" : "rgba(", o = 0, a, f, u, _;
466
+ if (!n)
467
+ return t;
468
+ if (n = n.map(function(d) {
469
+ return (d = Er(d, e, 1)) && s + (e ? d[0] + "," + d[1] + "%," + d[2] + "%," + d[3] : d.join(",")) + ")";
470
+ }), i && (u = Ar(t), a = i.c, a.join(r) !== u.c.join(r)))
471
+ for (f = t.replace(Vt, "1").split(se), _ = f.length - 1; o < _; o++)
472
+ r += f[o] + (~a.indexOf(o) ? n.shift() || s + "0,0,0,0)" : (u.length ? u : n.length ? n : i).shift());
473
+ if (!f)
474
+ for (f = t.split(Vt), _ = f.length - 1; o < _; o++)
475
+ r += f[o] + n[o];
476
+ return r + f[_];
477
+ }, Vt = function() {
478
+ var l = "(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b", t;
479
+ for (t in ye)
480
+ l += "|" + t + "\\b";
481
+ return new RegExp(l + ")", "gi");
482
+ }(), Bn = /hsl[a]?\(/, Lr = function(t) {
483
+ var e = t.join(" "), i;
484
+ if (Vt.lastIndex = 0, Vt.test(e))
485
+ return i = Bn.test(e), t[1] = Gi(t[1], i), t[0] = Gi(t[0], i, Ar(t[1])), !0;
486
+ }, Ce, pt = function() {
487
+ var l = Date.now, t = 500, e = 33, i = l(), r = i, n = 1e3 / 240, s = n, o = [], a, f, u, _, d, g, m = function h(y) {
488
+ var x = l() - r, v = y === !0, w, b, T, M;
489
+ if ((x > t || x < 0) && (i += x - e), r += x, T = r - i, w = T - s, (w > 0 || v) && (M = ++_.frame, d = T - _.time * 1e3, _.time = T = T / 1e3, s += w + (w >= n ? 0 : n - w), b = 1), v || (a = f(h)), b)
490
+ for (g = 0; g < o.length; g++)
491
+ o[g](T, d, M, y);
492
+ };
493
+ return _ = {
494
+ time: 0,
495
+ frame: 0,
496
+ tick: function() {
497
+ m(!0);
498
+ },
499
+ deltaRatio: function(y) {
500
+ return d / (1e3 / (y || 60));
501
+ },
502
+ wake: function() {
503
+ hr && (!si && yi() && (Ct = si = window, xi = Ct.document || {}, xt.gsap = _t, (Ct.gsapVersions || (Ct.gsapVersions = [])).push(_t.version), cr(Ie || Ct.GreenSockGlobals || !Ct.gsap && Ct || {}), Rr.forEach(Dr)), u = typeof requestAnimationFrame < "u" && requestAnimationFrame, a && _.sleep(), f = u || function(y) {
504
+ return setTimeout(y, s - _.time * 1e3 + 1 | 0);
505
+ }, Ce = 1, m(2));
506
+ },
507
+ sleep: function() {
508
+ (u ? cancelAnimationFrame : clearTimeout)(a), Ce = 0, f = Se;
509
+ },
510
+ lagSmoothing: function(y, x) {
511
+ t = y || 1 / 0, e = Math.min(x || 33, t);
512
+ },
513
+ fps: function(y) {
514
+ n = 1e3 / (y || 240), s = _.time * 1e3 + n;
515
+ },
516
+ add: function(y, x, v) {
517
+ var w = x ? function(b, T, M, S) {
518
+ y(b, T, M, S), _.remove(w);
519
+ } : y;
520
+ return _.remove(y), o[v ? "unshift" : "push"](w), _e(), w;
521
+ },
522
+ remove: function(y, x) {
523
+ ~(x = o.indexOf(y)) && o.splice(x, 1) && g >= x && g--;
524
+ },
525
+ _listeners: o
526
+ }, _;
527
+ }(), _e = function() {
528
+ return !Ce && pt.wake();
529
+ }, F = {}, Wn = /^[\d.\-M][\d.\-,\s]/, Vn = /["']/g, Yn = function(t) {
530
+ for (var e = {}, i = t.substr(1, t.length - 3).split(":"), r = i[0], n = 1, s = i.length, o, a, f; n < s; n++)
531
+ a = i[n], o = n !== s - 1 ? a.lastIndexOf(",") : a.length, f = a.substr(0, o), e[r] = isNaN(f) ? f.replace(Vn, "").trim() : +f, r = a.substr(o + 1).trim();
532
+ return e;
533
+ }, Un = function(t) {
534
+ var e = t.indexOf("(") + 1, i = t.indexOf(")"), r = t.indexOf("(", e);
535
+ return t.substring(e, ~r && r < i ? t.indexOf(")", i + 1) : i);
536
+ }, qn = function(t) {
537
+ var e = (t + "").split("("), i = F[e[0]];
538
+ return i && e.length > 1 && i.config ? i.config.apply(null, ~t.indexOf("{") ? [Yn(e[1])] : Un(t).split(",").map(mr)) : F._CE && Wn.test(t) ? F._CE("", t) : i;
539
+ }, Hn = function(t) {
540
+ return function(e) {
541
+ return 1 - t(1 - e);
542
+ };
543
+ }, te = function(t, e) {
544
+ return t && (K(t) ? t : F[t] || qn(t)) || e;
545
+ }, ie = function(t, e, i, r) {
546
+ i === void 0 && (i = function(a) {
547
+ return 1 - e(1 - a);
548
+ }), r === void 0 && (r = function(a) {
549
+ return a < 0.5 ? e(a * 2) / 2 : 1 - e((1 - a) * 2) / 2;
550
+ });
551
+ var n = {
552
+ easeIn: e,
553
+ easeOut: i,
554
+ easeInOut: r
555
+ }, s;
556
+ return ut(t, function(o) {
557
+ F[o] = xt[o] = n, F[s = o.toLowerCase()] = i;
558
+ for (var a in n)
559
+ F[s + (a === "easeIn" ? ".in" : a === "easeOut" ? ".out" : ".inOut")] = F[o + "." + a] = n[a];
560
+ }), n;
561
+ }, zr = function(t) {
562
+ return function(e) {
563
+ return e < 0.5 ? (1 - t(1 - e * 2)) / 2 : 0.5 + t((e - 0.5) * 2) / 2;
564
+ };
565
+ }, Je = function l(t, e, i) {
566
+ var r = e >= 1 ? e : 1, n = (i || (t ? 0.3 : 0.45)) / (e < 1 ? e : 1), s = n / ni * (Math.asin(1 / r) || 0), o = function(u) {
567
+ return u === 1 ? 1 : r * Math.pow(2, -10 * u) * pn((u - s) * n) + 1;
568
+ }, a = t === "out" ? o : t === "in" ? function(f) {
569
+ return 1 - o(1 - f);
570
+ } : zr(o);
571
+ return n = ni / n, a.config = function(f, u) {
572
+ return l(t, f, u);
573
+ }, a;
574
+ }, ti = function l(t, e) {
575
+ e === void 0 && (e = 1.70158);
576
+ var i = function(s) {
577
+ return s ? --s * s * ((e + 1) * s + e) + 1 : 0;
578
+ }, r = t === "out" ? i : t === "in" ? function(n) {
579
+ return 1 - i(1 - n);
580
+ } : zr(i);
581
+ return r.config = function(n) {
582
+ return l(t, n);
583
+ }, r;
584
+ };
585
+ ut("Linear,Quad,Cubic,Quart,Quint,Strong", function(l, t) {
586
+ var e = t < 5 ? t + 1 : t;
587
+ ie(l + ",Power" + (e - 1), t ? function(i) {
588
+ return Math.pow(i, e);
589
+ } : function(i) {
590
+ return i;
591
+ }, function(i) {
592
+ return 1 - Math.pow(1 - i, e);
593
+ }, function(i) {
594
+ return i < 0.5 ? Math.pow(i * 2, e) / 2 : 1 - Math.pow((1 - i) * 2, e) / 2;
595
+ });
596
+ });
597
+ F.Linear.easeNone = F.none = F.Linear.easeIn;
598
+ ie("Elastic", Je("in"), Je("out"), Je());
599
+ (function(l, t) {
600
+ var e = 1 / t, i = 2 * e, r = 2.5 * e, n = function(o) {
601
+ return o < e ? l * o * o : o < i ? l * Math.pow(o - 1.5 / t, 2) + 0.75 : o < r ? l * (o -= 2.25 / t) * o + 0.9375 : l * Math.pow(o - 2.625 / t, 2) + 0.984375;
602
+ };
603
+ ie("Bounce", function(s) {
604
+ return 1 - n(1 - s);
605
+ }, n);
606
+ })(7.5625, 2.75);
607
+ ie("Expo", function(l) {
608
+ return Math.pow(2, 10 * (l - 1)) * l + l * l * l * l * l * l * (1 - l);
609
+ });
610
+ ie("Circ", function(l) {
611
+ return -(ar(1 - l * l) - 1);
612
+ });
613
+ ie("Sine", function(l) {
614
+ return l === 1 ? 1 : -dn(l * cn) + 1;
615
+ });
616
+ ie("Back", ti("in"), ti("out"), ti());
617
+ F.SteppedEase = F.steps = xt.SteppedEase = {
618
+ config: function(t, e) {
619
+ t === void 0 && (t = 1);
620
+ var i = 1 / t, r = t + (e ? 0 : 1), n = e ? 1 : 0, s = 1 - B;
621
+ return function(o) {
622
+ return ((r * De(0, s, o) | 0) + n) * i;
623
+ };
624
+ }
625
+ };
626
+ we.ease = F["quad.out"];
627
+ ut("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt", function(l) {
628
+ return wi += l + "," + l + "Params,";
629
+ });
630
+ var Fr = function(t, e) {
631
+ this.id = _n++, t._gsap = this, this.target = t, this.harness = e, this.get = e ? e.get : pr, this.set = e ? e.getSetter : Mi;
632
+ }, Pe = /* @__PURE__ */ function() {
633
+ function l(e) {
634
+ 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, ce(this, +e.duration, 1, 1), this.data = e.data, X && (this._ctx = X, X.data.push(this)), Ce || pt.wake();
635
+ }
636
+ var t = l.prototype;
637
+ return t.delay = function(i) {
638
+ return i || i === 0 ? (this.parent && this.parent.smoothChildTiming && this.startTime(this._start + i - this._delay), this._delay = i, this) : this._delay;
639
+ }, t.duration = function(i) {
640
+ return arguments.length ? this.totalDuration(this._repeat > 0 ? i + (i + this._rDelay) * this._repeat : i) : this.totalDuration() && this._dur;
641
+ }, t.totalDuration = function(i) {
642
+ return arguments.length ? (this._dirty = 0, ce(this, this._repeat < 0 ? i : (i - this._repeat * this._rDelay) / (this._repeat + 1))) : this._tDur;
643
+ }, t.totalTime = function(i, r) {
644
+ if (_e(), !arguments.length)
645
+ return this._tTime;
646
+ var n = this._dp;
647
+ if (n && n.smoothChildTiming && this._ts) {
648
+ for (je(this, i), !n._dp || n.parent || vr(n, this); n && n.parent; )
649
+ 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;
650
+ !this.parent && this._dp.autoRemoveChildren && (this._ts > 0 && i < this._tDur || this._ts < 0 && i > 0 || !this._tDur && !i) && Pt(this._dp, this, this._start - this._delay);
651
+ }
652
+ return (this._tTime !== i || !this._dur && !r || this._initted && Math.abs(this._zTime) === B || !this._initted && this._dur && i || !i && !this._initted && (this.add || this._ptLookup)) && (this._ts || (this._pTime = i), gr(this, i, r)), this;
653
+ }, t.time = function(i, r) {
654
+ return arguments.length ? this.totalTime(Math.min(this.totalDuration(), i + qi(this)) % (this._dur + this._rDelay) || (i ? this._dur : 0), r) : this._time;
655
+ }, t.totalProgress = function(i, r) {
656
+ return arguments.length ? this.totalTime(this.totalDuration() * i, r) : this.totalDuration() ? Math.min(1, this._tTime / this._tDur) : this.rawTime() >= 0 && this._initted ? 1 : 0;
657
+ }, t.progress = function(i, r) {
658
+ return arguments.length ? this.totalTime(this.duration() * (this._yoyo && !(this.iteration() & 1) ? 1 - i : i) + qi(this), r) : this.duration() ? Math.min(1, this._time / this._dur) : this.rawTime() > 0 ? 1 : 0;
659
+ }, t.iteration = function(i, r) {
660
+ var n = this.duration() + this._rDelay;
661
+ return arguments.length ? this.totalTime(this._time + (i - 1) * n, r) : this._repeat ? he(this._tTime, n) + 1 : 1;
662
+ }, t.timeScale = function(i, r) {
663
+ if (!arguments.length)
664
+ return this._rts === -B ? 0 : this._rts;
665
+ if (this._rts === i)
666
+ return this;
667
+ var n = this.parent && this._ts ? Ve(this.parent._time, this) : this._tTime, s = this._rts < 0;
668
+ this._rts = +i || 0, this._ts = this._ps || i === -B ? 0 : this._rts;
669
+ var o = this.totalDuration();
670
+ return (s !== this._rts < 0 || n > 0 && n < o) && this.totalTime(De(-Math.abs(this._delay), o, n), r !== !1), $e(this), kn(this);
671
+ }, t.paused = function(i) {
672
+ if (!arguments.length)
673
+ return this._ps;
674
+ if (this._ps !== i)
675
+ if (this._ps = i, i)
676
+ this._pTime = this._tTime || Math.max(-this._delay, this.rawTime()), this._ts = this._act = 0;
677
+ else {
678
+ _e(), this._ts = this._rts;
679
+ var r = this.parent && !this.parent.smoothChildTiming ? this.rawTime() : this._tTime || this._pTime, n = this.progress() === 1 && Math.abs(this._zTime) !== B, s;
680
+ if (n)
681
+ for (this._tTime -= B, s = this._first; s; ) {
682
+ if (!s._dur && s._zTime < 0 && s._ts && s._start <= r + B) {
683
+ n = !1;
684
+ break;
685
+ }
686
+ s = s._next;
687
+ }
688
+ this.totalTime(r, n);
689
+ }
690
+ return this;
691
+ }, t.startTime = function(i) {
692
+ if (arguments.length) {
693
+ this._start = G(i);
694
+ var r = this.parent || this._dp;
695
+ return r && (r._sort || !this.parent) && Pt(r, this, this._start - this._delay), this;
696
+ }
697
+ return this._start;
698
+ }, t.endTime = function(i) {
699
+ return this._start + (ft(i) ? this.totalDuration() : this.duration()) / Math.abs(this._ts || 1);
700
+ }, t.rawTime = function(i) {
701
+ var r = this.parent || this._dp;
702
+ return r ? i && (!this._ts || this._repeat && this._time && this.totalProgress() < 1) ? this._tTime % (this._dur + this._rDelay) : this._ts ? Ve(r.rawTime(i), this) : this._tTime : this._tTime;
703
+ }, t.revert = function(i) {
704
+ i === void 0 && (i = Tn);
705
+ var r = rt;
706
+ return rt = i, Si(this) && (this.timeline && this.timeline.revert(i), this.totalTime(-0.01, i.suppressEvents)), this.data !== "nested" && i.kill !== !1 && this.kill(), rt = r, this;
707
+ }, t.globalTime = function(i) {
708
+ for (var r = this, n = arguments.length ? i : r.rawTime(); r; )
709
+ n = r._start + n / (Math.abs(r._ts) || 1), r = r._dp;
710
+ return !this.parent && this._sat ? this._sat.globalTime(i) : n;
711
+ }, t.repeat = function(i) {
712
+ return arguments.length ? (this._repeat = i === 1 / 0 ? -2 : i, Hi(this)) : this._repeat === -2 ? 1 / 0 : this._repeat;
713
+ }, t.repeatDelay = function(i) {
714
+ if (arguments.length) {
715
+ var r = this._time;
716
+ return this._rDelay = i, Hi(this), r ? this.time(r) : this;
717
+ }
718
+ return this._rDelay;
719
+ }, t.yoyo = function(i) {
720
+ return arguments.length ? (this._yoyo = i, this) : this._yoyo;
721
+ }, t.seek = function(i, r) {
722
+ return this.totalTime(wt(this, i), ft(r));
723
+ }, t.restart = function(i, r) {
724
+ return this.play().totalTime(i ? -this._delay : 0, ft(r)), this._dur || (this._zTime = -B), this;
725
+ }, t.play = function(i, r) {
726
+ return i != null && this.seek(i, r), this.reversed(!1).paused(!1);
727
+ }, t.reverse = function(i, r) {
728
+ return i != null && this.seek(i || this.totalDuration(), r), this.reversed(!0).paused(!1);
729
+ }, t.pause = function(i, r) {
730
+ return i != null && this.seek(i, r), this.paused(!0);
731
+ }, t.resume = function() {
732
+ return this.paused(!1);
733
+ }, t.reversed = function(i) {
734
+ return arguments.length ? (!!i !== this.reversed() && this.timeScale(-this._rts || (i ? -B : 0)), this) : this._rts < 0;
735
+ }, t.invalidate = function() {
736
+ return this._initted = this._act = 0, this._zTime = -B, this;
737
+ }, t.isActive = function() {
738
+ var i = this.parent || this._dp, r = this._start, n;
739
+ return !!(!i || this._ts && this._initted && i.isActive() && (n = i.rawTime(!0)) >= r && n < this.endTime(!0) - B);
740
+ }, t.eventCallback = function(i, r, n) {
741
+ var s = this.vars;
742
+ return arguments.length > 1 ? (r ? (s[i] = r, n && (s[i + "Params"] = n), i === "onUpdate" && (this._onUpdate = r)) : delete s[i], this) : s[i];
743
+ }, t.then = function(i) {
744
+ var r = this, n = r._prom;
745
+ return new Promise(function(s) {
746
+ var o = K(i) ? i : yr, a = function() {
747
+ var u = r.then;
748
+ r.then = null, n && n(), K(o) && (o = o(r)) && (o.then || o === r) && (r.then = u), s(o), r.then = u;
749
+ };
750
+ r._initted && r.totalProgress() === 1 && r._ts >= 0 || !r._tTime && r._ts < 0 ? a() : r._prom = a;
751
+ });
752
+ }, t.kill = function() {
753
+ me(this);
754
+ }, l;
755
+ }();
756
+ vt(Pe.prototype, {
757
+ _time: 0,
758
+ _start: 0,
759
+ _end: 0,
760
+ _tTime: 0,
761
+ _tDur: 0,
762
+ _dirty: 0,
763
+ _repeat: 0,
764
+ _yoyo: !1,
765
+ parent: null,
766
+ _initted: !1,
767
+ _rDelay: 0,
768
+ _ts: 1,
769
+ _dp: 0,
770
+ ratio: 0,
771
+ _zTime: -B,
772
+ _prom: 0,
773
+ _ps: !1,
774
+ _rts: 1
775
+ });
776
+ var lt = /* @__PURE__ */ function(l) {
777
+ or(t, l);
778
+ function t(i, r) {
779
+ var n;
780
+ return i === void 0 && (i = {}), n = l.call(this, i) || this, n.labels = {}, n.smoothChildTiming = !!i.smoothChildTiming, n.autoRemoveChildren = !!i.autoRemoveChildren, n._sort = ft(i.sortChildren), $ && Pt(i.parent || $, Dt(n), r), i.reversed && n.reverse(), i.paused && n.paused(!0), i.scrollTrigger && Tr(Dt(n), i.scrollTrigger), n;
781
+ }
782
+ var e = t.prototype;
783
+ return e.to = function(r, n, s) {
784
+ return ve(0, arguments, this), this;
785
+ }, e.from = function(r, n, s) {
786
+ return ve(1, arguments, this), this;
787
+ }, e.fromTo = function(r, n, s, o) {
788
+ return ve(2, arguments, this), this;
789
+ }, e.set = function(r, n, s) {
790
+ return n.duration = 0, n.parent = this, xe(n).repeatDelay || (n.repeat = 0), n.immediateRender = !!n.immediateRender, new et(r, n, wt(this, s), 1), this;
791
+ }, e.call = function(r, n, s) {
792
+ return Pt(this, et.delayedCall(0, r, n), s);
793
+ }, e.staggerTo = function(r, n, s, o, a, f, u) {
794
+ return s.duration = n, s.stagger = s.stagger || o, s.onComplete = f, s.onCompleteParams = u, s.parent = this, new et(r, s, wt(this, a)), this;
795
+ }, e.staggerFrom = function(r, n, s, o, a, f, u) {
796
+ return s.runBackwards = 1, xe(s).immediateRender = ft(s.immediateRender), this.staggerTo(r, n, s, o, a, f, u);
797
+ }, e.staggerFromTo = function(r, n, s, o, a, f, u, _) {
798
+ return o.startAt = s, xe(o).immediateRender = ft(o.immediateRender), this.staggerTo(r, n, o, a, f, u, _);
799
+ }, e.render = function(r, n, s) {
800
+ var o = this._time, a = this._dirty ? this.totalDuration() : this._tDur, f = this._dur, u = r <= 0 ? 0 : G(r), _ = this._zTime < 0 != r < 0 && (this._initted || !f), d, g, m, h, y, x, v, w, b, T, M, S;
801
+ if (this !== $ && u > a && r >= 0 && (u = a), u !== this._tTime || s || _) {
802
+ if (o !== this._time && f && (u += this._time - o, r += this._time - o), d = u, b = this._start, w = this._ts, x = !w, _ && (f || (o = this._zTime), (r || !n) && (this._zTime = r)), this._repeat) {
803
+ if (M = this._yoyo, y = f + this._rDelay, this._repeat < -1 && r < 0)
804
+ return this.totalTime(y * 100 + r, n, s);
805
+ if (d = G(u % y), u === a ? (h = this._repeat, d = f) : (T = G(u / y), h = ~~T, h && h === T && (d = f, h--), d > f && (d = f)), T = he(this._tTime, y), !o && this._tTime && T !== h && this._tTime - T * y - this._dur <= 0 && (T = h), M && h & 1 && (d = f - d, S = 1), h !== T && !this._lock) {
806
+ var C = M && T & 1, k = C === (M && h & 1);
807
+ if (h < T && (C = !C), o = C ? 0 : u % f ? f : u, this._lock = 1, this.render(o || (S ? 0 : G(h * y)), n, !f)._lock = 0, this._tTime = u, !n && this.parent && gt(this, "onRepeat"), this.vars.repeatRefresh && !S && (this.invalidate()._lock = 1, T = h), o && o !== this._time || x !== !this._ts || this.vars.onRepeat && !this.parent && !this._act)
808
+ return this;
809
+ if (f = this._dur, a = this._tDur, k && (this._lock = 2, o = C ? f : -1e-4, this.render(o, !0), this.vars.repeatRefresh && !S && this.invalidate()), this._lock = 0, !this._ts && !x)
810
+ return this;
811
+ }
812
+ }
813
+ if (this._hasPause && !this._forcing && this._lock < 2 && (v = On(this, G(o), G(d)), v && (u -= d - (d = v._start))), this._tTime = u, this._time = d, this._act = !!w, this._initted || (this._onUpdate = this.vars.onUpdate, this._initted = 1, this._zTime = r, o = 0), !o && u && f && !n && !T && (gt(this, "onStart"), this._tTime !== u))
814
+ return this;
815
+ if (d >= o && r >= 0)
816
+ for (g = this._first; g; ) {
817
+ if (m = g._next, (g._act || d >= g._start) && g._ts && v !== g) {
818
+ if (g.parent !== this)
819
+ return this.render(r, n, s);
820
+ if (g.render(g._ts > 0 ? (d - g._start) * g._ts : (g._dirty ? g.totalDuration() : g._tDur) + (d - g._start) * g._ts, n, s), d !== this._time || !this._ts && !x) {
821
+ v = 0, m && (u += this._zTime = -B);
822
+ break;
823
+ }
824
+ }
825
+ g = m;
826
+ }
827
+ else {
828
+ g = this._last;
829
+ for (var E = r < 0 ? r : d; g; ) {
830
+ if (m = g._prev, (g._act || E <= g._end) && g._ts && v !== g) {
831
+ if (g.parent !== this)
832
+ return this.render(r, n, s);
833
+ if (g.render(g._ts > 0 ? (E - g._start) * g._ts : (g._dirty ? g.totalDuration() : g._tDur) + (E - g._start) * g._ts, n, s || rt && Si(g)), d !== this._time || !this._ts && !x) {
834
+ v = 0, m && (u += this._zTime = E ? -B : B);
835
+ break;
836
+ }
837
+ }
838
+ g = m;
839
+ }
840
+ }
841
+ if (v && !n && (this.pause(), v.render(d >= o ? 0 : -B)._zTime = d >= o ? 1 : -1, this._ts))
842
+ return this._start = b, $e(this), this.render(r, n, s);
843
+ this._onUpdate && !n && gt(this, "onUpdate", !0), (u === a && this._tTime >= this.totalDuration() || !u && o) && (b === this._start || Math.abs(w) !== Math.abs(this._ts)) && (this._lock || ((r || !f) && (u === a && this._ts > 0 || !u && this._ts < 0) && Yt(this, 1), !n && !(r < 0 && !o) && (u || o || !a) && (gt(this, u === a && r >= 0 ? "onComplete" : "onReverseComplete", !0), this._prom && !(u < a && this.timeScale() > 0) && this._prom())));
844
+ }
845
+ return this;
846
+ }, e.add = function(r, n) {
847
+ var s = this;
848
+ if (At(n) || (n = wt(this, n, r)), !(r instanceof Pe)) {
849
+ if (st(r))
850
+ return r.forEach(function(o) {
851
+ return s.add(o, n);
852
+ }), this;
853
+ if (it(r))
854
+ return this.addLabel(r, n);
855
+ if (K(r))
856
+ r = et.delayedCall(0, r);
857
+ else
858
+ return this;
859
+ }
860
+ return this !== r ? Pt(this, r, n) : this;
861
+ }, e.getChildren = function(r, n, s, o) {
862
+ r === void 0 && (r = !0), n === void 0 && (n = !0), s === void 0 && (s = !0), o === void 0 && (o = -bt);
863
+ for (var a = [], f = this._first; f; )
864
+ f._start >= o && (f instanceof et ? n && a.push(f) : (s && a.push(f), r && a.push.apply(a, f.getChildren(!0, n, s)))), f = f._next;
865
+ return a;
866
+ }, e.getById = function(r) {
867
+ for (var n = this.getChildren(1, 1, 1), s = n.length; s--; )
868
+ if (n[s].vars.id === r)
869
+ return n[s];
870
+ }, e.remove = function(r) {
871
+ return it(r) ? this.removeLabel(r) : K(r) ? this.killTweensOf(r) : (r.parent === this && Ge(this, r), r === this._recent && (this._recent = this._last), Jt(this));
872
+ }, e.totalTime = function(r, n) {
873
+ return arguments.length ? (this._forcing = 1, !this._dp && this._ts && (this._start = G(pt.time - (this._ts > 0 ? r / this._ts : (this.totalDuration() - r) / -this._ts))), l.prototype.totalTime.call(this, r, n), this._forcing = 0, this) : this._tTime;
874
+ }, e.addLabel = function(r, n) {
875
+ return this.labels[r] = wt(this, n), this;
876
+ }, e.removeLabel = function(r) {
877
+ return delete this.labels[r], this;
878
+ }, e.addPause = function(r, n, s) {
879
+ var o = et.delayedCall(0, n || Se, s);
880
+ return o.data = "isPause", this._hasPause = 1, Pt(this, o, wt(this, r));
881
+ }, e.removePause = function(r) {
882
+ var n = this._first;
883
+ for (r = wt(this, r); n; )
884
+ n._start === r && n.data === "isPause" && Yt(n), n = n._next;
885
+ }, e.killTweensOf = function(r, n, s) {
886
+ for (var o = this.getTweensOf(r, s), a = o.length; a--; )
887
+ Nt !== o[a] && o[a].kill(r, n);
888
+ return this;
889
+ }, e.getTweensOf = function(r, n) {
890
+ for (var s = [], o = St(r), a = this._first, f = At(n), u; a; )
891
+ a instanceof et ? wn(a._targets, o) && (f ? (!Nt || a._initted && a._ts) && a.globalTime(0) <= n && a.globalTime(a.totalDuration()) > n : !n || a.isActive()) && s.push(a) : (u = a.getTweensOf(o, n)).length && s.push.apply(s, u), a = a._next;
892
+ return s;
893
+ }, e.tweenTo = function(r, n) {
894
+ n = n || {};
895
+ var s = this, o = wt(s, r), a = n, f = a.startAt, u = a.onStart, _ = a.onStartParams, d = a.immediateRender, g, m = et.to(s, vt({
896
+ ease: n.ease || "none",
897
+ lazy: !1,
898
+ immediateRender: !1,
899
+ time: o,
900
+ overwrite: "auto",
901
+ duration: n.duration || Math.abs((o - (f && "time" in f ? f.time : s._time)) / s.timeScale()) || B,
902
+ onStart: function() {
903
+ if (s.pause(), !g) {
904
+ var y = n.duration || Math.abs((o - (f && "time" in f ? f.time : s._time)) / s.timeScale());
905
+ m._dur !== y && ce(m, y, 0, 1).render(m._time, !0, !0), g = 1;
906
+ }
907
+ u && u.apply(m, _ || []);
908
+ }
909
+ }, n));
910
+ return d ? m.render(0) : m;
911
+ }, e.tweenFromTo = function(r, n, s) {
912
+ return this.tweenTo(n, vt({
913
+ startAt: {
914
+ time: wt(this, r)
915
+ }
916
+ }, s));
917
+ }, e.recent = function() {
918
+ return this._recent;
919
+ }, e.nextLabel = function(r) {
920
+ return r === void 0 && (r = this._time), Xi(this, wt(this, r));
921
+ }, e.previousLabel = function(r) {
922
+ return r === void 0 && (r = this._time), Xi(this, wt(this, r), 1);
923
+ }, e.currentLabel = function(r) {
924
+ return arguments.length ? this.seek(r, !0) : this.previousLabel(this._time + B);
925
+ }, e.shiftChildren = function(r, n, s) {
926
+ s === void 0 && (s = 0);
927
+ var o = this._first, a = this.labels, f;
928
+ for (r = G(r); o; )
929
+ o._start >= s && (o._start += r, o._end += r), o = o._next;
930
+ if (n)
931
+ for (f in a)
932
+ a[f] >= s && (a[f] += r);
933
+ return Jt(this);
934
+ }, e.invalidate = function(r) {
935
+ var n = this._first;
936
+ for (this._lock = 0; n; )
937
+ n.invalidate(r), n = n._next;
938
+ return l.prototype.invalidate.call(this, r);
939
+ }, e.clear = function(r) {
940
+ r === void 0 && (r = !0);
941
+ for (var n = this._first, s; n; )
942
+ s = n._next, this.remove(n), n = s;
943
+ return this._dp && (this._time = this._tTime = this._pTime = 0), r && (this.labels = {}), Jt(this);
944
+ }, e.totalDuration = function(r) {
945
+ var n = 0, s = this, o = s._last, a = bt, f, u, _;
946
+ if (arguments.length)
947
+ return s.timeScale((s._repeat < 0 ? s.duration() : s.totalDuration()) / (s.reversed() ? -r : r));
948
+ if (s._dirty) {
949
+ for (_ = s.parent; o; )
950
+ f = o._prev, o._dirty && o.totalDuration(), u = o._start, u > a && s._sort && o._ts && !s._lock ? (s._lock = 1, Pt(s, o, u - o._delay, 1)._lock = 0) : a = u, u < 0 && o._ts && (n -= u, (!_ && !s._dp || _ && _.smoothChildTiming) && (s._start += G(u / s._ts), s._time -= u, s._tTime -= u), s.shiftChildren(-u, !1, -1 / 0), a = 0), o._end > n && o._ts && (n = o._end), o = f;
951
+ ce(s, s === $ && s._time > n ? s._time : n, 1, 1), s._dirty = 0;
952
+ }
953
+ return s._tDur;
954
+ }, t.updateRoot = function(r) {
955
+ if ($._ts && (gr($, Ve(r, $)), dr = pt.frame), pt.frame >= Yi) {
956
+ Yi += yt.autoSleep || 120;
957
+ var n = $._first;
958
+ if ((!n || !n._ts) && yt.autoSleep && pt._listeners.length < 2) {
959
+ for (; n && !n._ts; )
960
+ n = n._next;
961
+ n || pt.sleep();
962
+ }
963
+ }
964
+ }, t;
965
+ }(Pe);
966
+ vt(lt.prototype, {
967
+ _lock: 0,
968
+ _hasPause: 0,
969
+ _forcing: 0
970
+ });
971
+ var Xn = function(t, e, i, r, n, s, o) {
972
+ var a = new ht(this._pt, t, e, 0, 1, Vr, null, n), f = 0, u = 0, _, d, g, m, h, y, x, v;
973
+ for (a.b = i, a.e = r, i += "", r += "", (x = ~r.indexOf("random(")) && (r = ke(r)), s && (v = [i, r], s(v, t, e), i = v[0], r = v[1]), d = i.match(Ze) || []; _ = Ze.exec(r); )
974
+ m = _[0], h = r.substring(f, _.index), g ? g = (g + 1) % 5 : h.substr(-5) === "rgba(" && (g = 1), m !== d[u++] && (y = parseFloat(d[u - 1]) || 0, a._pt = {
975
+ _next: a._pt,
976
+ p: h || u === 1 ? h : ",",
977
+ //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.
978
+ s: y,
979
+ c: m.charAt(1) === "=" ? ae(y, m) - y : parseFloat(m) - y,
980
+ m: g && g < 4 ? Math.round : 0
981
+ }, f = Ze.lastIndex);
982
+ return a.c = f < r.length ? r.substring(f, r.length) : "", a.fp = o, (ur.test(r) || x) && (a.e = 0), this._pt = a, a;
983
+ }, ki = function(t, e, i, r, n, s, o, a, f, u) {
984
+ K(r) && (r = r(n || 0, t, s));
985
+ var _ = t[e], d = i !== "get" ? i : K(_) ? f ? t[e.indexOf("set") || !K(t["get" + e.substr(3)]) ? e : "get" + e.substr(3)](f) : t[e]() : _, g = K(_) ? f ? Kn : Br : Pi, m;
986
+ if (it(r) && (~r.indexOf("random(") && (r = ke(r)), r.charAt(1) === "=" && (m = ae(d, r) + (nt(d) || 0), (m || m === 0) && (r = m))), !u || d !== r || hi)
987
+ return !isNaN(d * r) && r !== "" ? (m = new ht(this._pt, t, e, +d || 0, r - (d || 0), typeof _ == "boolean" ? Jn : Wr, 0, g), f && (m.fp = f), o && m.modifier(o, this, t), this._pt = m) : (!_ && !(e in t) && vi(e, r), Xn.call(this, t, e, d, r, g, a || yt.stringFilter, f));
988
+ }, Gn = function(t, e, i, r, n) {
989
+ if (K(t) && (t = Te(t, n, e, i, r)), !Ot(t) || t.style && t.nodeType || st(t) || lr(t))
990
+ return it(t) ? Te(t, n, e, i, r) : t;
991
+ var s = {}, o;
992
+ for (o in t)
993
+ s[o] = Te(t[o], n, e, i, r);
994
+ return s;
995
+ }, Nr = function(t, e, i, r, n, s) {
996
+ var o, a, f, u;
997
+ if (dt[t] && (o = new dt[t]()).init(n, o.rawVars ? e[t] : Gn(e[t], r, n, s, i), i, r, s) !== !1 && (i._pt = a = new ht(i._pt, n, t, 0, 1, o.render, o, 0, o.priority), i !== oe))
998
+ for (f = i._ptLookup[i._targets.indexOf(n)], u = o._props.length; u--; )
999
+ f[o._props[u]] = a;
1000
+ return o;
1001
+ }, Nt, hi, Ci = function l(t, e, i) {
1002
+ var r = t.vars, n = r.ease, s = r.startAt, o = r.immediateRender, a = r.lazy, f = r.onUpdate, u = r.runBackwards, _ = r.yoyoEase, d = r.keyframes, g = r.autoRevert, m = t._dur, h = t._startAt, y = t._targets, x = t.parent, v = x && x.data === "nested" ? x.vars.targets : y, w = t._overwrite === "auto" && !gi, b = t.timeline, T = r.easeReverse || _, M, S, C, k, E, H, V, Y, U, tt, Q, q, ot;
1003
+ if (b && (!d || !n) && (n = "none"), t._ease = te(n, we.ease), t._rEase = T && (te(T) || t._ease), t._from = !b && !!r.runBackwards, t._from && (t.ratio = 1), !b || d && !r.stagger) {
1004
+ if (Y = y[0] ? Qt(y[0]).harness : 0, q = Y && r[Y.prop], M = We(r, Ti), h && (h._zTime < 0 && h.progress(1), e < 0 && u && o && !g ? h.render(-1, !0) : h.revert(u && m ? Ae : vn), h._lazy = 0), s) {
1005
+ if (Yt(t._startAt = et.set(y, vt({
1006
+ data: "isStart",
1007
+ overwrite: !1,
1008
+ parent: x,
1009
+ immediateRender: !0,
1010
+ lazy: !h && ft(a),
1011
+ startAt: null,
1012
+ delay: 0,
1013
+ onUpdate: f && function() {
1014
+ return gt(t, "onUpdate");
1015
+ },
1016
+ stagger: 0
1017
+ }, s))), t._startAt._dp = 0, t._startAt._sat = t, e < 0 && (rt || !o && !g) && t._startAt.revert(Ae), o && m && e <= 0 && i <= 0) {
1018
+ e && (t._zTime = e);
1019
+ return;
1020
+ }
1021
+ } else if (u && m && !h) {
1022
+ if (e && (o = !1), C = vt({
1023
+ overwrite: !1,
1024
+ data: "isFromStart",
1025
+ //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.
1026
+ lazy: o && !h && ft(a),
1027
+ immediateRender: o,
1028
+ //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)
1029
+ stagger: 0,
1030
+ parent: x
1031
+ //ensures that nested tweens that had a stagger are handled properly, like gsap.from(".class", {y: gsap.utils.wrap([-100,100]), stagger: 0.5})
1032
+ }, M), q && (C[Y.prop] = q), Yt(t._startAt = et.set(y, C)), t._startAt._dp = 0, t._startAt._sat = t, e < 0 && (rt ? t._startAt.revert(Ae) : t._startAt.render(-1, !0)), t._zTime = e, !o)
1033
+ l(t._startAt, B, B);
1034
+ else if (!e)
1035
+ return;
1036
+ }
1037
+ for (t._pt = t._ptCache = 0, a = m && ft(a) || a && !m, S = 0; S < y.length; S++) {
1038
+ if (E = y[S], V = E._gsap || bi(y)[S]._gsap, t._ptLookup[S] = tt = {}, oi[V.id] && Wt.length && Be(), Q = v === y ? S : v.indexOf(E), Y && (U = new Y()).init(E, q || M, t, Q, v) !== !1 && (t._pt = k = new ht(t._pt, E, U.name, 0, 1, U.render, U, 0, U.priority), U._props.forEach(function(Rt) {
1039
+ tt[Rt] = k;
1040
+ }), U.priority && (H = 1)), !Y || q)
1041
+ for (C in M)
1042
+ dt[C] && (U = Nr(C, M, t, Q, E, v)) ? U.priority && (H = 1) : tt[C] = k = ki.call(t, E, C, "get", M[C], Q, v, 0, r.stringFilter);
1043
+ t._op && t._op[S] && t.kill(E, t._op[S]), w && t._pt && (Nt = t, $.killTweensOf(E, tt, t.globalTime(e)), ot = !t.parent, Nt = 0), t._pt && a && (oi[V.id] = 1);
1044
+ }
1045
+ H && Yr(t), t._onInit && t._onInit(t);
1046
+ }
1047
+ t._onUpdate = f, t._initted = (!t._op || t._pt) && !ot, d && e <= 0 && b.render(bt, !0, !0);
1048
+ }, $n = function(t, e, i, r, n, s, o, a) {
1049
+ var f = (t._pt && t._ptCache || (t._ptCache = {}))[e], u, _, d, g;
1050
+ if (!f)
1051
+ for (f = t._ptCache[e] = [], d = t._ptLookup, g = t._targets.length; g--; ) {
1052
+ if (u = d[g][e], u && u.d && u.d._pt)
1053
+ for (u = u.d._pt; u && u.p !== e && u.fp !== e; )
1054
+ u = u._next;
1055
+ if (!u)
1056
+ return hi = 1, t.vars[e] = "+=0", Ci(t, o), hi = 0, a ? be(e + " not eligible for reset. Try splitting into individual properties") : 1;
1057
+ f.push(u);
1058
+ }
1059
+ for (g = f.length; g--; )
1060
+ _ = f[g], u = _._pt || _, u.s = (r || r === 0) && !n ? r : u.s + (r || 0) + s * u.c, u.c = i - u.s, _.e && (_.e = J(i) + nt(_.e)), _.b && (_.b = u.s + nt(_.b));
1061
+ }, jn = function(t, e) {
1062
+ var i = t[0] ? Qt(t[0]).harness : 0, r = i && i.aliases, n, s, o, a;
1063
+ if (!r)
1064
+ return e;
1065
+ n = ue({}, e);
1066
+ for (s in r)
1067
+ if (s in n)
1068
+ for (a = r[s].split(","), o = a.length; o--; )
1069
+ n[a[o]] = n[s];
1070
+ return n;
1071
+ }, Zn = function(t, e, i, r) {
1072
+ var n = e.ease || r || "power1.inOut", s, o;
1073
+ if (st(e))
1074
+ o = i[t] || (i[t] = []), e.forEach(function(a, f) {
1075
+ return o.push({
1076
+ t: f / (e.length - 1) * 100,
1077
+ v: a,
1078
+ e: n
1079
+ });
1080
+ });
1081
+ else
1082
+ for (s in e)
1083
+ o = i[s] || (i[s] = []), s === "ease" || o.push({
1084
+ t: parseFloat(t),
1085
+ v: e[s],
1086
+ e: n
1087
+ });
1088
+ }, Te = function(t, e, i, r, n) {
1089
+ return K(t) ? t.call(e, i, r, n) : it(t) && ~t.indexOf("random(") ? ke(t) : t;
1090
+ }, Ue = wi + "repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,easeReverse,autoRevert", Ir = {};
1091
+ ut(Ue + ",id,stagger,delay,duration,paused,scrollTrigger", function(l) {
1092
+ return Ir[l] = 1;
1093
+ });
1094
+ Ue = Ue.split(",");
1095
+ var et = /* @__PURE__ */ function(l) {
1096
+ or(t, l);
1097
+ function t(i, r, n, s) {
1098
+ var o;
1099
+ typeof r == "number" && (n.duration = r, r = n, n = null), o = l.call(this, s ? r : xe(r)) || this;
1100
+ var a = o.vars, f = a.duration, u = a.delay, _ = a.immediateRender, d = a.stagger, g = a.overwrite, m = a.keyframes, h = a.defaults, y = a.scrollTrigger, x = r.parent || $, v = (st(i) || lr(i) ? At(i[0]) : "length" in r) ? [i] : St(i), w, b, T, M, S, C, k, E;
1101
+ if (o._targets = v.length ? bi(v) : be("GSAP target " + i + " not found. https://gsap.com", !yt.nullTargetWarn) || [], o._ptLookup = [], o._overwrite = g, m || d || Ee(f) || Ee(u)) {
1102
+ r = o.vars;
1103
+ var H = r.easeReverse || r.yoyoEase;
1104
+ if (w = o.timeline = new lt({
1105
+ data: "nested",
1106
+ defaults: h || {},
1107
+ targets: x && x.data === "nested" ? x.vars.targets : v
1108
+ }), w.kill(), w.parent = w._dp = Dt(o), w._start = 0, d || Ee(f) || Ee(u)) {
1109
+ if (M = v.length, k = d && kr(d), Ot(d))
1110
+ for (S in d)
1111
+ ~Ue.indexOf(S) && (E || (E = {}), E[S] = d[S]);
1112
+ for (b = 0; b < M; b++)
1113
+ T = We(r, Ir), T.stagger = 0, H && (T.easeReverse = H), E && ue(T, E), C = v[b], T.duration = +Te(f, Dt(o), b, C, v), T.delay = (+Te(u, Dt(o), b, C, v) || 0) - o._delay, !d && M === 1 && T.delay && (o._delay = u = T.delay, o._start += u, T.delay = 0), w.to(C, T, k ? k(b, C, v) : 0), w._ease = F.none;
1114
+ w.duration() ? f = u = 0 : o.timeline = 0;
1115
+ } else if (m) {
1116
+ xe(vt(w.vars.defaults, {
1117
+ ease: "none"
1118
+ })), w._ease = te(m.ease || r.ease || "none");
1119
+ var V = 0, Y, U, tt;
1120
+ if (st(m))
1121
+ m.forEach(function(Q) {
1122
+ return w.to(v, Q, ">");
1123
+ }), w.duration();
1124
+ else {
1125
+ T = {};
1126
+ for (S in m)
1127
+ S === "ease" || S === "easeEach" || Zn(S, m[S], T, m.easeEach);
1128
+ for (S in T)
1129
+ for (Y = T[S].sort(function(Q, q) {
1130
+ return Q.t - q.t;
1131
+ }), V = 0, b = 0; b < Y.length; b++)
1132
+ U = Y[b], tt = {
1133
+ ease: U.e,
1134
+ duration: (U.t - (b ? Y[b - 1].t : 0)) / 100 * f
1135
+ }, tt[S] = U.v, w.to(v, tt, V), V += tt.duration;
1136
+ w.duration() < f && w.to({}, {
1137
+ duration: f - w.duration()
1138
+ });
1139
+ }
1140
+ }
1141
+ f || o.duration(f = w.duration());
1142
+ } else
1143
+ o.timeline = 0;
1144
+ return g === !0 && !gi && (Nt = Dt(o), $.killTweensOf(v), Nt = 0), Pt(x, Dt(o), n), r.reversed && o.reverse(), r.paused && o.paused(!0), (_ || !f && !m && o._start === G(x._time) && ft(_) && Cn(Dt(o)) && x.data !== "nested") && (o._tTime = -B, o.render(Math.max(0, -u) || 0)), y && Tr(Dt(o), y), o;
1145
+ }
1146
+ var e = t.prototype;
1147
+ return e.render = function(r, n, s) {
1148
+ var o = this._time, a = this._tDur, f = this._dur, u = r < 0, _ = r > a - B && !u ? a : r < B ? 0 : r, d, g, m, h, y, x, v, w;
1149
+ if (!f)
1150
+ Mn(this, r, n, s);
1151
+ else if (_ !== this._tTime || !r || s || !this._initted && this._tTime || this._startAt && this._zTime < 0 !== u || this._lazy) {
1152
+ if (d = _, w = this.timeline, this._repeat) {
1153
+ if (h = f + this._rDelay, this._repeat < -1 && u)
1154
+ return this.totalTime(h * 100 + r, n, s);
1155
+ if (d = G(_ % h), _ === a ? (m = this._repeat, d = f) : (y = G(_ / h), m = ~~y, m && m === y ? (d = f, m--) : d > f && (d = f)), x = this._yoyo && m & 1, x && (d = f - d), y = he(this._tTime, h), d === o && !s && this._initted && m === y)
1156
+ return this._tTime = _, this;
1157
+ m !== y && this.vars.repeatRefresh && !x && !this._lock && d !== h && this._initted && (this._lock = s = 1, this.render(G(h * m), !0).invalidate()._lock = 0);
1158
+ }
1159
+ if (!this._initted) {
1160
+ if (wr(this, u ? r : d, s, n, _))
1161
+ return this._tTime = 0, this;
1162
+ if (o !== this._time && !(s && this.vars.repeatRefresh && m !== y))
1163
+ return this;
1164
+ if (f !== this._dur)
1165
+ return this.render(r, n, s);
1166
+ }
1167
+ if (this._rEase) {
1168
+ var b = d < o;
1169
+ if (b !== this._inv) {
1170
+ var T = b ? o : f - o;
1171
+ this._inv = b, this._from && (this.ratio = 1 - this.ratio), this._invRatio = this.ratio, this._invTime = o, this._invRecip = T ? (b ? -1 : 1) / T : 0, this._invScale = b ? -this.ratio : 1 - this.ratio, this._invEase = b ? this._rEase : this._ease;
1172
+ }
1173
+ this.ratio = v = this._invRatio + this._invScale * this._invEase((d - this._invTime) * this._invRecip);
1174
+ } else
1175
+ this.ratio = v = this._ease(d / f);
1176
+ if (this._from && (this.ratio = v = 1 - v), this._tTime = _, this._time = d, !this._act && this._ts && (this._act = 1, this._lazy = 0), !o && _ && !n && !y && (gt(this, "onStart"), this._tTime !== _))
1177
+ return this;
1178
+ for (g = this._pt; g; )
1179
+ g.r(v, g.d), g = g._next;
1180
+ w && w.render(r < 0 ? r : w._dur * w._ease(d / this._dur), n, s) || this._startAt && (this._zTime = r), this._onUpdate && !n && (u && ai(this, r, n, s), gt(this, "onUpdate")), this._repeat && m !== y && this.vars.onRepeat && !n && this.parent && gt(this, "onRepeat"), (_ === this._tDur || !_) && this._tTime === _ && (u && !this._onUpdate && ai(this, r, !0, !0), (r || !f) && (_ === this._tDur && this._ts > 0 || !_ && this._ts < 0) && Yt(this, 1), !n && !(u && !o) && (_ || o || x) && (gt(this, _ === a ? "onComplete" : "onReverseComplete", !0), this._prom && !(_ < a && this.timeScale() > 0) && this._prom()));
1181
+ }
1182
+ return this;
1183
+ }, e.targets = function() {
1184
+ return this._targets;
1185
+ }, e.invalidate = function(r) {
1186
+ return (!r || !this.vars.runBackwards) && (this._startAt = 0), this._pt = this._op = this._onUpdate = this._lazy = this.ratio = 0, this._ptLookup = [], this.timeline && this.timeline.invalidate(r), l.prototype.invalidate.call(this, r);
1187
+ }, e.resetTo = function(r, n, s, o, a) {
1188
+ Ce || pt.wake(), this._ts || this.play();
1189
+ var f = Math.min(this._dur, (this._dp._time - this._start) * this._ts), u;
1190
+ return this._initted || Ci(this, f), u = this._ease(f / this._dur), $n(this, r, n, s, o, u, f, a) ? this.resetTo(r, n, s, o, 1) : (je(this, 0), this.parent || xr(this._dp, this, "_first", "_last", this._dp._sort ? "_start" : 0), this.render(0));
1191
+ }, e.kill = function(r, n) {
1192
+ if (n === void 0 && (n = "all"), !r && (!n || n === "all"))
1193
+ return this._lazy = this._pt = 0, this.parent ? me(this) : this.scrollTrigger && this.scrollTrigger.kill(!!rt), this;
1194
+ if (this.timeline) {
1195
+ var s = this.timeline.totalDuration();
1196
+ return this.timeline.killTweensOf(r, n, Nt && Nt.vars.overwrite !== !0)._first || me(this), this.parent && s !== this.timeline.totalDuration() && ce(this, this._dur * this.timeline._tDur / s, 0, 1), this;
1197
+ }
1198
+ var o = this._targets, a = r ? St(r) : o, f = this._ptLookup, u = this._pt, _, d, g, m, h, y, x;
1199
+ if ((!n || n === "all") && Sn(o, a))
1200
+ return n === "all" && (this._pt = 0), me(this);
1201
+ for (_ = this._op = this._op || [], n !== "all" && (it(n) && (h = {}, ut(n, function(v) {
1202
+ return h[v] = 1;
1203
+ }), n = h), n = jn(o, n)), x = o.length; x--; )
1204
+ if (~a.indexOf(o[x])) {
1205
+ d = f[x], n === "all" ? (_[x] = n, m = d, g = {}) : (g = _[x] = _[x] || {}, m = n);
1206
+ for (h in m)
1207
+ y = d && d[h], y && ((!("kill" in y.d) || y.d.kill(h) === !0) && Ge(this, y, "_pt"), delete d[h]), g !== "all" && (g[h] = 1);
1208
+ }
1209
+ return this._initted && !this._pt && u && me(this), this;
1210
+ }, t.to = function(r, n) {
1211
+ return new t(r, n, arguments[2]);
1212
+ }, t.from = function(r, n) {
1213
+ return ve(1, arguments);
1214
+ }, t.delayedCall = function(r, n, s, o) {
1215
+ return new t(n, 0, {
1216
+ immediateRender: !1,
1217
+ lazy: !1,
1218
+ overwrite: !1,
1219
+ delay: r,
1220
+ onComplete: n,
1221
+ onReverseComplete: n,
1222
+ onCompleteParams: s,
1223
+ onReverseCompleteParams: s,
1224
+ callbackScope: o
1225
+ });
1226
+ }, t.fromTo = function(r, n, s) {
1227
+ return ve(2, arguments);
1228
+ }, t.set = function(r, n) {
1229
+ return n.duration = 0, n.repeatDelay || (n.repeat = 0), new t(r, n);
1230
+ }, t.killTweensOf = function(r, n, s) {
1231
+ return $.killTweensOf(r, n, s);
1232
+ }, t;
1233
+ }(Pe);
1234
+ vt(et.prototype, {
1235
+ _targets: [],
1236
+ _lazy: 0,
1237
+ _startAt: 0,
1238
+ _op: 0,
1239
+ _onInit: 0
1240
+ });
1241
+ ut("staggerTo,staggerFrom,staggerFromTo", function(l) {
1242
+ et[l] = function() {
1243
+ var t = new lt(), e = li.call(arguments, 0);
1244
+ return e.splice(l === "staggerFromTo" ? 5 : 4, 0, 0), t[l].apply(t, e);
1245
+ };
1246
+ });
1247
+ var Pi = function(t, e, i) {
1248
+ return t[e] = i;
1249
+ }, Br = function(t, e, i) {
1250
+ return t[e](i);
1251
+ }, Kn = function(t, e, i, r) {
1252
+ return t[e](r.fp, i);
1253
+ }, Qn = function(t, e, i) {
1254
+ return t.setAttribute(e, i);
1255
+ }, Mi = function(t, e) {
1256
+ return K(t[e]) ? Br : mi(t[e]) && t.setAttribute ? Qn : Pi;
1257
+ }, Wr = function(t, e) {
1258
+ return e.set(e.t, e.p, Math.round((e.s + e.c * t) * 1e6) / 1e6, e);
1259
+ }, Jn = function(t, e) {
1260
+ return e.set(e.t, e.p, !!(e.s + e.c * t), e);
1261
+ }, Vr = function(t, e) {
1262
+ var i = e._pt, r = "";
1263
+ if (!t && e.b)
1264
+ r = e.b;
1265
+ else if (t === 1 && e.e)
1266
+ r = e.e;
1267
+ else {
1268
+ for (; i; )
1269
+ r = i.p + (i.m ? i.m(i.s + i.c * t) : Math.round((i.s + i.c * t) * 1e4) / 1e4) + r, i = i._next;
1270
+ r += e.c;
1271
+ }
1272
+ e.set(e.t, e.p, r, e);
1273
+ }, Oi = function(t, e) {
1274
+ for (var i = e._pt; i; )
1275
+ i.r(t, i.d), i = i._next;
1276
+ }, ts = function(t, e, i, r) {
1277
+ for (var n = this._pt, s; n; )
1278
+ s = n._next, n.p === r && n.modifier(t, e, i), n = s;
1279
+ }, es = function(t) {
1280
+ for (var e = this._pt, i, r; e; )
1281
+ r = e._next, e.p === t && !e.op || e.op === t ? Ge(this, e, "_pt") : e.dep || (i = 1), e = r;
1282
+ return !i;
1283
+ }, is = function(t, e, i, r) {
1284
+ r.mSet(t, e, r.m.call(r.tween, i, r.mt), r);
1285
+ }, Yr = function(t) {
1286
+ for (var e = t._pt, i, r, n, s; e; ) {
1287
+ for (i = e._next, r = n; r && r.pr > e.pr; )
1288
+ r = r._next;
1289
+ (e._prev = r ? r._prev : s) ? e._prev._next = e : n = e, (e._next = r) ? r._prev = e : s = e, e = i;
1290
+ }
1291
+ t._pt = n;
1292
+ }, ht = /* @__PURE__ */ function() {
1293
+ function l(e, i, r, n, s, o, a, f, u) {
1294
+ this.t = i, this.s = n, this.c = s, this.p = r, this.r = o || Wr, this.d = a || this, this.set = f || Pi, this.pr = u || 0, this._next = e, e && (e._prev = this);
1295
+ }
1296
+ var t = l.prototype;
1297
+ return t.modifier = function(i, r, n) {
1298
+ this.mSet = this.mSet || this.set, this.set = is, this.m = i, this.mt = n, this.tween = r;
1299
+ }, l;
1300
+ }();
1301
+ ut(wi + "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,easeReverse", function(l) {
1302
+ return Ti[l] = 1;
1303
+ });
1304
+ xt.TweenMax = xt.TweenLite = et;
1305
+ xt.TimelineLite = xt.TimelineMax = lt;
1306
+ $ = new lt({
1307
+ sortChildren: !1,
1308
+ defaults: we,
1309
+ autoRemoveChildren: !0,
1310
+ id: "root",
1311
+ smoothChildTiming: !0
1312
+ });
1313
+ yt.stringFilter = Lr;
1314
+ var ee = [], ze = {}, rs = [], $i = 0, ns = 0, ei = function(t) {
1315
+ return (ze[t] || rs).map(function(e) {
1316
+ return e();
1317
+ });
1318
+ }, Me = function() {
1319
+ var t = Date.now(), e = [];
1320
+ t - $i > 2 && (ei("matchMediaInit"), ee.forEach(function(i) {
1321
+ var r = i.queries, n = i.conditions, s, o, a, f;
1322
+ for (o in r)
1323
+ s = Ct.matchMedia(r[o]).matches, s && (a = 1), s !== n[o] && (n[o] = s, f = 1);
1324
+ f && (i.revert(), a && e.push(i));
1325
+ }), ei("matchMediaRevert"), e.forEach(function(i) {
1326
+ return i.onMatch(i, function(r) {
1327
+ return i.add(null, r);
1328
+ });
1329
+ }), $i = t, ei("matchMedia"));
1330
+ }, Ur = /* @__PURE__ */ function() {
1331
+ function l(e, i) {
1332
+ this.selector = i && fi(i), this.data = [], this._r = [], this.isReverted = !1, this.id = ns++, e && this.add(e);
1333
+ }
1334
+ var t = l.prototype;
1335
+ return t.add = function(i, r, n) {
1336
+ K(i) && (n = r, r = i, i = K);
1337
+ var s = this, o = function() {
1338
+ var f = X, u = s.selector, _;
1339
+ return f && f !== s && f.data.push(s), n && (s.selector = fi(n)), X = s, _ = r.apply(s, arguments), K(_) && s._r.push(_), X = f, s.selector = u, s.isReverted = !1, _;
1340
+ };
1341
+ return s.last = o, i === K ? o(s, function(a) {
1342
+ return s.add(null, a);
1343
+ }) : i ? s[i] = o : o;
1344
+ }, t.ignore = function(i) {
1345
+ var r = X;
1346
+ X = null, i(this), X = r;
1347
+ }, t.getTweens = function() {
1348
+ var i = [];
1349
+ return this.data.forEach(function(r) {
1350
+ return r instanceof l ? i.push.apply(i, r.getTweens()) : r instanceof et && !(r.parent && r.parent.data === "nested") && i.push(r);
1351
+ }), i;
1352
+ }, t.clear = function() {
1353
+ this._r.length = this.data.length = 0;
1354
+ }, t.kill = function(i, r) {
1355
+ var n = this;
1356
+ if (i ? function() {
1357
+ for (var o = n.getTweens(), a = n.data.length, f; a--; )
1358
+ f = n.data[a], f.data === "isFlip" && (f.revert(), f.getChildren(!0, !0, !1).forEach(function(u) {
1359
+ return o.splice(o.indexOf(u), 1);
1360
+ }));
1361
+ for (o.map(function(u) {
1362
+ return {
1363
+ g: u._dur || u._delay || u._sat && !u._sat.vars.immediateRender ? u.globalTime(0) : -1 / 0,
1364
+ t: u
1365
+ };
1366
+ }).sort(function(u, _) {
1367
+ return _.g - u.g || -1 / 0;
1368
+ }).forEach(function(u) {
1369
+ return u.t.revert(i);
1370
+ }), a = n.data.length; a--; )
1371
+ f = n.data[a], f instanceof lt ? f.data !== "nested" && (f.scrollTrigger && f.scrollTrigger.revert(), f.kill()) : !(f instanceof et) && f.revert && f.revert(i);
1372
+ n._r.forEach(function(u) {
1373
+ return u(i, n);
1374
+ }), n.isReverted = !0;
1375
+ }() : this.data.forEach(function(o) {
1376
+ return o.kill && o.kill();
1377
+ }), this.clear(), r) {
1378
+ for (var s = ee.length; s--; )
1379
+ ee[s].id === this.id && ee.splice(s, 1);
1380
+ this._mqs && this._mqs.forEach(function(o) {
1381
+ return o.removeListener ? o.removeListener(Me) : o.removeEventListener("change", Me);
1382
+ }), this._mqs = null;
1383
+ }
1384
+ }, t.revert = function(i) {
1385
+ this.kill(i || {});
1386
+ }, l;
1387
+ }(), ss = /* @__PURE__ */ function() {
1388
+ function l(e) {
1389
+ this.contexts = [], this.scope = e, X && X.data.push(this);
1390
+ }
1391
+ var t = l.prototype;
1392
+ return t.add = function(i, r, n) {
1393
+ Ot(i) || (i = {
1394
+ matches: i
1395
+ });
1396
+ var s = new Ur(0, n || this.scope), o = s.conditions = {}, a, f, u;
1397
+ X && !s.selector && (s.selector = X.selector), this.contexts.push(s), r = s.add("onMatch", r), s.queries = i;
1398
+ for (f in i)
1399
+ f === "all" ? u = 1 : (a = Ct.matchMedia(i[f]), a && (ee.indexOf(s) < 0 && ee.push(s), (o[f] = a.matches) && (u = 1), a.addListener ? a.addListener(Me) : a.addEventListener("change", Me), (s._mqs || (s._mqs = [])).push(a)));
1400
+ return u && r(s, function(_) {
1401
+ return s.add(null, _);
1402
+ }), this;
1403
+ }, t.revert = function(i) {
1404
+ this.kill(i || {});
1405
+ }, t.kill = function(i) {
1406
+ this.contexts.forEach(function(r) {
1407
+ return r.kill(i, !0);
1408
+ });
1409
+ }, l;
1410
+ }(), qe = {
1411
+ registerPlugin: function() {
1412
+ for (var t = arguments.length, e = new Array(t), i = 0; i < t; i++)
1413
+ e[i] = arguments[i];
1414
+ e.forEach(function(r) {
1415
+ return Dr(r);
1416
+ });
1417
+ },
1418
+ timeline: function(t) {
1419
+ return new lt(t);
1420
+ },
1421
+ getTweensOf: function(t, e) {
1422
+ return $.getTweensOf(t, e);
1423
+ },
1424
+ getProperty: function(t, e, i, r) {
1425
+ it(t) && (t = St(t)[0]);
1426
+ var n = Qt(t || {}).get, s = i ? yr : mr;
1427
+ return i === "native" && (i = ""), t && (e ? s((dt[e] && dt[e].get || n)(t, e, i, r)) : function(o, a, f) {
1428
+ return s((dt[o] && dt[o].get || n)(t, o, a, f));
1429
+ });
1430
+ },
1431
+ quickSetter: function(t, e, i) {
1432
+ if (t = St(t), t.length > 1) {
1433
+ var r = t.map(function(u) {
1434
+ return _t.quickSetter(u, e, i);
1435
+ }), n = r.length;
1436
+ return function(u) {
1437
+ for (var _ = n; _--; )
1438
+ r[_](u);
1439
+ };
1440
+ }
1441
+ t = t[0] || {};
1442
+ var s = dt[e], o = Qt(t), a = o.harness && (o.harness.aliases || {})[e] || e, f = s ? function(u) {
1443
+ var _ = new s();
1444
+ oe._pt = 0, _.init(t, i ? u + i : u, oe, 0, [t]), _.render(1, _), oe._pt && Oi(1, oe);
1445
+ } : o.set(t, a);
1446
+ return s ? f : function(u) {
1447
+ return f(t, a, i ? u + i : u, o, 1);
1448
+ };
1449
+ },
1450
+ quickTo: function(t, e, i) {
1451
+ var r, n = _t.to(t, vt((r = {}, r[e] = "+=0.1", r.paused = !0, r.stagger = 0, r), i || {})), s = function(a, f, u) {
1452
+ return n.resetTo(e, a, f, u);
1453
+ };
1454
+ return s.tween = n, s;
1455
+ },
1456
+ isTweening: function(t) {
1457
+ return $.getTweensOf(t, !0).length > 0;
1458
+ },
1459
+ defaults: function(t) {
1460
+ return t && t.ease && (t.ease = te(t.ease, we.ease)), Ui(we, t || {});
1461
+ },
1462
+ config: function(t) {
1463
+ return Ui(yt, t || {});
1464
+ },
1465
+ registerEffect: function(t) {
1466
+ var e = t.name, i = t.effect, r = t.plugins, n = t.defaults, s = t.extendTimeline;
1467
+ (r || "").split(",").forEach(function(o) {
1468
+ return o && !dt[o] && !xt[o] && be(e + " effect requires " + o + " plugin.");
1469
+ }), Ke[e] = function(o, a, f) {
1470
+ return i(St(o), vt(a || {}, n), f);
1471
+ }, s && (lt.prototype[e] = function(o, a, f) {
1472
+ return this.add(Ke[e](o, Ot(a) ? a : (f = a) && {}, this), f);
1473
+ });
1474
+ },
1475
+ registerEase: function(t, e) {
1476
+ F[t] = te(e);
1477
+ },
1478
+ parseEase: function(t, e) {
1479
+ return arguments.length ? te(t, e) : F;
1480
+ },
1481
+ getById: function(t) {
1482
+ return $.getById(t);
1483
+ },
1484
+ exportRoot: function(t, e) {
1485
+ t === void 0 && (t = {});
1486
+ var i = new lt(t), r, n;
1487
+ for (i.smoothChildTiming = ft(t.smoothChildTiming), $.remove(i), i._dp = 0, i._time = i._tTime = $._time, r = $._first; r; )
1488
+ n = r._next, (e || !(!r._dur && r instanceof et && r.vars.onComplete === r._targets[0])) && Pt(i, r, r._start - r._delay), r = n;
1489
+ return Pt($, i, 0), i;
1490
+ },
1491
+ context: function(t, e) {
1492
+ return t ? new Ur(t, e) : X;
1493
+ },
1494
+ matchMedia: function(t) {
1495
+ return new ss(t);
1496
+ },
1497
+ matchMediaRefresh: function() {
1498
+ return ee.forEach(function(t) {
1499
+ var e = t.conditions, i, r;
1500
+ for (r in e)
1501
+ e[r] && (e[r] = !1, i = 1);
1502
+ i && t.revert();
1503
+ }) || Me();
1504
+ },
1505
+ addEventListener: function(t, e) {
1506
+ var i = ze[t] || (ze[t] = []);
1507
+ ~i.indexOf(e) || i.push(e);
1508
+ },
1509
+ removeEventListener: function(t, e) {
1510
+ var i = ze[t], r = i && i.indexOf(e);
1511
+ r >= 0 && i.splice(r, 1);
1512
+ },
1513
+ utils: {
1514
+ wrap: Fn,
1515
+ wrapYoyo: Nn,
1516
+ distribute: kr,
1517
+ random: Pr,
1518
+ snap: Cr,
1519
+ normalize: zn,
1520
+ getUnit: nt,
1521
+ clamp: Dn,
1522
+ splitColor: Er,
1523
+ toArray: St,
1524
+ selector: fi,
1525
+ mapRange: Or,
1526
+ pipe: An,
1527
+ unitize: Ln,
1528
+ interpolate: In,
1529
+ shuffle: Sr
1530
+ },
1531
+ install: cr,
1532
+ effects: Ke,
1533
+ ticker: pt,
1534
+ updateRoot: lt.updateRoot,
1535
+ plugins: dt,
1536
+ globalTimeline: $,
1537
+ core: {
1538
+ PropTween: ht,
1539
+ globals: _r,
1540
+ Tween: et,
1541
+ Timeline: lt,
1542
+ Animation: Pe,
1543
+ getCache: Qt,
1544
+ _removeLinkedListItem: Ge,
1545
+ reverting: function() {
1546
+ return rt;
1547
+ },
1548
+ context: function(t) {
1549
+ return t && X && (X.data.push(t), t._ctx = X), X;
1550
+ },
1551
+ suppressOverwrites: function(t) {
1552
+ return gi = t;
1553
+ }
1554
+ }
1555
+ };
1556
+ ut("to,from,fromTo,delayedCall,set,killTweensOf", function(l) {
1557
+ return qe[l] = et[l];
1558
+ });
1559
+ pt.add(lt.updateRoot);
1560
+ oe = qe.to({}, {
1561
+ duration: 0
1562
+ });
1563
+ var os = function(t, e) {
1564
+ for (var i = t._pt; i && i.p !== e && i.op !== e && i.fp !== e; )
1565
+ i = i._next;
1566
+ return i;
1567
+ }, as = function(t, e) {
1568
+ var i = t._targets, r, n, s;
1569
+ for (r in e)
1570
+ for (n = i.length; n--; )
1571
+ s = t._ptLookup[n][r], s && (s = s.d) && (s._pt && (s = os(s, r)), s && s.modifier && s.modifier(e[r], t, i[n], r));
1572
+ }, ii = function(t, e) {
1573
+ return {
1574
+ name: t,
1575
+ headless: 1,
1576
+ rawVars: 1,
1577
+ //don't pre-process function-based values or "random()" strings.
1578
+ init: function(r, n, s) {
1579
+ s._onInit = function(o) {
1580
+ var a, f;
1581
+ if (it(n) && (a = {}, ut(n, function(u) {
1582
+ return a[u] = 1;
1583
+ }), n = a), e) {
1584
+ a = {};
1585
+ for (f in n)
1586
+ a[f] = e(n[f]);
1587
+ n = a;
1588
+ }
1589
+ as(o, n);
1590
+ };
1591
+ }
1592
+ };
1593
+ }, _t = qe.registerPlugin({
1594
+ name: "attr",
1595
+ init: function(t, e, i, r, n) {
1596
+ var s, o, a;
1597
+ this.tween = i;
1598
+ for (s in e)
1599
+ a = t.getAttribute(s) || "", o = this.add(t, "setAttribute", (a || 0) + "", e[s], r, n, 0, 0, s), o.op = s, o.b = a, this._props.push(s);
1600
+ },
1601
+ render: function(t, e) {
1602
+ for (var i = e._pt; i; )
1603
+ rt ? i.set(i.t, i.p, i.b, i) : i.r(t, i.d), i = i._next;
1604
+ }
1605
+ }, {
1606
+ name: "endArray",
1607
+ headless: 1,
1608
+ init: function(t, e) {
1609
+ for (var i = e.length; i--; )
1610
+ this.add(t, i, t[i] || 0, e[i], 0, 0, 0, 0, 0, 1);
1611
+ }
1612
+ }, ii("roundProps", ui), ii("modifiers"), ii("snap", Cr)) || qe;
1613
+ et.version = lt.version = _t.version = "3.15.1";
1614
+ hr = 1;
1615
+ yi() && _e();
1616
+ F.Power0;
1617
+ F.Power1;
1618
+ F.Power2;
1619
+ F.Power3;
1620
+ F.Power4;
1621
+ F.Linear;
1622
+ F.Quad;
1623
+ F.Cubic;
1624
+ F.Quart;
1625
+ F.Quint;
1626
+ F.Strong;
1627
+ F.Elastic;
1628
+ F.Back;
1629
+ F.SteppedEase;
1630
+ F.Bounce;
1631
+ F.Sine;
1632
+ F.Expo;
1633
+ F.Circ;
1634
+ /*!
1635
+ * CSSPlugin 3.15.1
1636
+ * https://gsap.com
1637
+ *
1638
+ * Copyright 2008-2026, GreenSock. All rights reserved.
1639
+ * Subject to the terms at https://gsap.com/standard-license
1640
+ * @author: Jack Doyle, jack@greensock.com
1641
+ */
1642
+ var ji, It, le, Ri, Kt, Zi, Di, ls = function() {
1643
+ return typeof window < "u";
1644
+ }, Lt = {}, Zt = 180 / Math.PI, fe = Math.PI / 180, ne = Math.atan2, Ki = 1e8, Ei = /([A-Z])/g, fs = /(left|right|width|margin|padding|x)/i, us = /[\s,\(]\S/, Mt = {
1645
+ autoAlpha: "opacity,visibility",
1646
+ scale: "scaleX,scaleY",
1647
+ alpha: "opacity"
1648
+ }, ci = function(t, e) {
1649
+ return e.set(e.t, e.p, Math.round((e.s + e.c * t) * 1e4) / 1e4 + e.u, e);
1650
+ }, hs = function(t, e) {
1651
+ return e.set(e.t, e.p, t === 1 ? e.e : Math.round((e.s + e.c * t) * 1e4) / 1e4 + e.u, e);
1652
+ }, cs = function(t, e) {
1653
+ return e.set(e.t, e.p, t ? Math.round((e.s + e.c * t) * 1e4) / 1e4 + e.u : e.b, e);
1654
+ }, _s = function(t, e) {
1655
+ 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);
1656
+ }, ds = function(t, e) {
1657
+ var i = e.s + e.c * t;
1658
+ e.set(e.t, e.p, ~~(i + (i < 0 ? -0.5 : 0.5)) + e.u, e);
1659
+ }, qr = function(t, e) {
1660
+ return e.set(e.t, e.p, t ? e.e : e.b, e);
1661
+ }, Hr = function(t, e) {
1662
+ return e.set(e.t, e.p, t !== 1 ? e.b : e.e, e);
1663
+ }, ps = function(t, e, i) {
1664
+ return t.style[e] = i;
1665
+ }, gs = function(t, e, i) {
1666
+ return t.style.setProperty(e, i);
1667
+ }, ms = function(t, e, i) {
1668
+ return t._gsap[e] = i;
1669
+ }, ys = function(t, e, i) {
1670
+ return t._gsap.scaleX = t._gsap.scaleY = i;
1671
+ }, xs = function(t, e, i, r, n) {
1672
+ var s = t._gsap;
1673
+ s.scaleX = s.scaleY = i, s.renderTransform(n, s);
1674
+ }, vs = function(t, e, i, r, n) {
1675
+ var s = t._gsap;
1676
+ s[e] = i, s.renderTransform(n, s);
1677
+ }, j = "transform", ct = j + "Origin", Ts = function l(t, e) {
1678
+ var i = this, r = this.target, n = r.style, s = r._gsap;
1679
+ if (t in Lt && n) {
1680
+ if (this.tfm = this.tfm || {}, t !== "transform")
1681
+ t = Mt[t] || t, ~t.indexOf(",") ? t.split(",").forEach(function(o) {
1682
+ return i.tfm[o] = Et(r, o);
1683
+ }) : this.tfm[t] = s.x ? s[t] : Et(r, t), t === ct && (this.tfm.zOrigin = s.zOrigin);
1684
+ else
1685
+ return Mt.transform.split(",").forEach(function(o) {
1686
+ return l.call(i, o, e);
1687
+ });
1688
+ if (this.props.indexOf(j) >= 0)
1689
+ return;
1690
+ s.svg && (this.svgo = r.getAttribute("data-svg-origin"), this.props.push(ct, e, "")), t = j;
1691
+ }
1692
+ (n || e) && this.props.push(t, e, n[t]);
1693
+ }, Xr = function(t) {
1694
+ t.translate && (t.removeProperty("translate"), t.removeProperty("scale"), t.removeProperty("rotate"));
1695
+ }, ws = function() {
1696
+ var t = this.props, e = this.target, i = e.style, r = e._gsap, n, s;
1697
+ for (n = 0; n < t.length; n += 3)
1698
+ t[n + 1] ? t[n + 1] === 2 ? e[t[n]](t[n + 2]) : e[t[n]] = t[n + 2] : t[n + 2] ? i[t[n]] = t[n + 2] : i.removeProperty(t[n].substr(0, 2) === "--" ? t[n] : t[n].replace(Ei, "-$1").toLowerCase());
1699
+ if (this.tfm) {
1700
+ for (s in this.tfm)
1701
+ r[s] = this.tfm[s];
1702
+ r.svg && (r.renderTransform(), e.setAttribute("data-svg-origin", this.svgo || "")), n = Di(), (!n || !n.isStart) && !i[j] && (Xr(i), r.zOrigin && i[ct] && (i[ct] += " " + r.zOrigin + "px", r.zOrigin = 0, r.renderTransform()), r.uncache = 1);
1703
+ }
1704
+ }, Gr = function(t, e) {
1705
+ var i = {
1706
+ target: t,
1707
+ props: [],
1708
+ revert: ws,
1709
+ save: Ts
1710
+ };
1711
+ return t._gsap || _t.core.getCache(t), e && t.style && t.nodeType && e.split(",").forEach(function(r) {
1712
+ return i.save(r);
1713
+ }), i;
1714
+ }, $r, _i = function(t, e) {
1715
+ var i = It.createElementNS ? It.createElementNS((e || "http://www.w3.org/1999/xhtml").replace(/^https/, "http"), t) : It.createElement(t);
1716
+ return i && i.style ? i : It.createElement(t);
1717
+ }, mt = function l(t, e, i) {
1718
+ var r = getComputedStyle(t);
1719
+ return r[e] || r.getPropertyValue(e.replace(Ei, "-$1").toLowerCase()) || r.getPropertyValue(e) || !i && l(t, de(e) || e, 1) || "";
1720
+ }, Qi = "O,Moz,ms,Ms,Webkit".split(","), de = function(t, e, i) {
1721
+ var r = e || Kt, n = r.style, s = 5;
1722
+ if (t in n && !i)
1723
+ return t;
1724
+ for (t = t.charAt(0).toUpperCase() + t.substr(1); s-- && !(Qi[s] + t in n); )
1725
+ ;
1726
+ return s < 0 ? null : (s === 3 ? "ms" : s >= 0 ? Qi[s] : "") + t;
1727
+ }, di = function() {
1728
+ ls() && window.document && (ji = window, It = ji.document, le = It.documentElement, Kt = _i("div") || {
1729
+ style: {}
1730
+ }, _i("div"), j = de(j), ct = j + "Origin", Kt.style.cssText = "border-width:0;line-height:0;position:absolute;padding:0", $r = !!de("perspective"), Di = _t.core.reverting, Ri = 1);
1731
+ }, Ji = function(t) {
1732
+ var e = t.ownerSVGElement, i = _i("svg", e && e.getAttribute("xmlns") || "http://www.w3.org/2000/svg"), r = t.cloneNode(!0), n;
1733
+ r.style.display = "block", i.appendChild(r), le.appendChild(i);
1734
+ try {
1735
+ n = r.getBBox();
1736
+ } catch {
1737
+ }
1738
+ return i.removeChild(r), le.removeChild(i), n;
1739
+ }, tr = function(t, e) {
1740
+ for (var i = e.length; i--; )
1741
+ if (t.hasAttribute(e[i]))
1742
+ return t.getAttribute(e[i]);
1743
+ }, jr = function(t) {
1744
+ var e, i;
1745
+ try {
1746
+ e = t.getBBox();
1747
+ } catch {
1748
+ e = Ji(t), i = 1;
1749
+ }
1750
+ return e && (e.width || e.height) || i || (e = Ji(t)), e && !e.width && !e.x && !e.y ? {
1751
+ x: +tr(t, ["x", "cx", "x1"]) || 0,
1752
+ y: +tr(t, ["y", "cy", "y1"]) || 0,
1753
+ width: 0,
1754
+ height: 0
1755
+ } : e;
1756
+ }, Zr = function(t) {
1757
+ return !!(t.getCTM && (!t.parentNode || t.ownerSVGElement) && jr(t));
1758
+ }, Ut = function(t, e) {
1759
+ if (e) {
1760
+ var i = t.style, r;
1761
+ e in Lt && e !== ct && (e = j), i.removeProperty ? (r = e.substr(0, 2), (r === "ms" || e.substr(0, 6) === "webkit") && (e = "-" + e), i.removeProperty(r === "--" ? e : e.replace(Ei, "-$1").toLowerCase())) : i.removeAttribute(e);
1762
+ }
1763
+ }, Bt = function(t, e, i, r, n, s) {
1764
+ var o = new ht(t._pt, e, i, 0, 1, s ? Hr : qr);
1765
+ return t._pt = o, o.b = r, o.e = n, t._props.push(i), o;
1766
+ }, er = {
1767
+ deg: 1,
1768
+ rad: 1,
1769
+ turn: 1
1770
+ }, bs = {
1771
+ grid: 1,
1772
+ flex: 1
1773
+ }, qt = function l(t, e, i, r) {
1774
+ var n = parseFloat(i) || 0, s = (i + "").trim().substr((n + "").length) || "px", o = Kt.style, a = fs.test(e), f = t.tagName.toLowerCase() === "svg", u = (f ? "client" : "offset") + (a ? "Width" : "Height"), _ = 100, d = r === "px", g = r === "%", m, h, y, x;
1775
+ if (r === s || !n || er[r] || er[s])
1776
+ return n;
1777
+ if (s !== "px" && !d && (n = l(t, e, i, "px")), x = t.getCTM && Zr(t), (g || s === "%") && (Lt[e] || ~e.indexOf("adius")))
1778
+ return m = x ? t.getBBox()[a ? "width" : "height"] : t[u], J(g ? n / m * _ : n / 100 * m);
1779
+ if (o[a ? "width" : "height"] = _ + (d ? s : r), h = r !== "rem" && ~e.indexOf("adius") || r === "em" && t.appendChild && !f ? t : t.parentNode, x && (h = (t.ownerSVGElement || {}).parentNode), (!h || h === It || !h.appendChild) && (h = It.body), y = h._gsap, y && g && y.width && a && y.time === pt.time && !y.uncache)
1780
+ return J(n / y.width * _);
1781
+ if (g && (e === "height" || e === "width")) {
1782
+ var v = t.style[e];
1783
+ t.style[e] = _ + r, m = t[u], v ? t.style[e] = v : Ut(t, e);
1784
+ } else
1785
+ (g || s === "%") && !bs[mt(h, "display")] && (o.position = mt(t, "position")), h === t && (o.position = "static"), h.appendChild(Kt), m = Kt[u], h.removeChild(Kt), o.position = "absolute";
1786
+ return a && g && (y = Qt(h), y.time = pt.time, y.width = h[u]), J(d ? m * n / _ : m && n ? _ / m * n : 0);
1787
+ }, Et = function(t, e, i, r) {
1788
+ var n;
1789
+ return Ri || di(), e in Mt && e !== "transform" && (e = Mt[e], ~e.indexOf(",") && (e = e.split(",")[0])), Lt[e] && e !== "transform" ? (n = Re(t, r), n = e !== "transformOrigin" ? n[e] : n.svg ? n.origin : Xe(mt(t, ct)) + " " + n.zOrigin + "px") : (n = t.style[e], (!n || n === "auto" || r || ~(n + "").indexOf("calc(")) && (n = He[e] && He[e](t, e, i) || mt(t, e) || pr(t, e) || (e === "opacity" ? 1 : 0))), i && !~(n + "").trim().indexOf(" ") ? qt(t, e, n, i) + i : n;
1790
+ }, Ss = function(t, e, i, r) {
1791
+ if (!i || i === "none") {
1792
+ var n = de(e, t, 1), s = n && mt(t, n, 1);
1793
+ s && s !== i ? (e = n, i = s) : e === "borderColor" && (i = mt(t, "borderTopColor"));
1794
+ }
1795
+ var o = new ht(this._pt, t.style, e, 0, 1, Vr), a = 0, f = 0, u, _, d, g, m, h, y, x, v, w, b, T;
1796
+ if (o.b = i, o.e = r, i += "", r += "", r.substring(0, 6) === "var(--" && (r = mt(t, r.substring(4, r.indexOf(")")))), r === "auto" && (h = t.style[e], t.style[e] = r, r = mt(t, e) || r, h ? t.style[e] = h : Ut(t, e)), u = [i, r], Lr(u), i = u[0], r = u[1], d = i.match(se) || [], T = r.match(se) || [], T.length) {
1797
+ for (; _ = se.exec(r); )
1798
+ y = _[0], v = r.substring(a, _.index), m ? m = (m + 1) % 5 : (v.substr(-5) === "rgba(" || v.substr(-5) === "hsla(") && (m = 1), y !== (h = d[f++] || "") && (g = parseFloat(h) || 0, b = h.substr((g + "").length), y.charAt(1) === "=" && (y = ae(g, y) + b), x = parseFloat(y), w = y.substr((x + "").length), a = se.lastIndex - w.length, w || (w = w || yt.units[e] || b, a === r.length && (r += w, o.e += w)), b !== w && (g = qt(t, e, h, w) || 0), o._pt = {
1799
+ _next: o._pt,
1800
+ p: v || f === 1 ? v : ",",
1801
+ //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.
1802
+ s: g,
1803
+ c: x - g,
1804
+ m: m && m < 4 || e === "zIndex" ? Math.round : 0
1805
+ });
1806
+ o.c = a < r.length ? r.substring(a, r.length) : "";
1807
+ } else
1808
+ o.r = e === "display" && r === "none" ? Hr : qr;
1809
+ return ur.test(r) && (o.e = 0), this._pt = o, o;
1810
+ }, ir = {
1811
+ top: "0%",
1812
+ bottom: "100%",
1813
+ left: "0%",
1814
+ right: "100%",
1815
+ center: "50%"
1816
+ }, ks = function(t) {
1817
+ var e = t.split(" "), i = e[0], r = e[1] || "50%";
1818
+ return (i === "top" || i === "bottom" || r === "left" || r === "right") && (t = i, i = r, r = t), e[0] = ir[i] || i, e[1] = ir[r] || r, e.join(" ");
1819
+ }, Cs = function(t, e) {
1820
+ if (e.tween && e.tween._time === e.tween._dur) {
1821
+ var i = e.t, r = i.style, n = e.u, s = i._gsap, o, a, f;
1822
+ if (n === "all" || n === !0)
1823
+ r.cssText = "", a = 1;
1824
+ else
1825
+ for (n = n.split(","), f = n.length; --f > -1; )
1826
+ o = n[f], Lt[o] && (a = 1, o = o === "transformOrigin" ? ct : j), Ut(i, o);
1827
+ a && (Ut(i, j), s && (s.svg && i.removeAttribute("transform"), r.scale = r.rotate = r.translate = "none", Re(i, 1), s.uncache = 1, Xr(r)));
1828
+ }
1829
+ }, He = {
1830
+ clearProps: function(t, e, i, r, n) {
1831
+ if (n.data !== "isFromStart") {
1832
+ var s = t._pt = new ht(t._pt, e, i, 0, 0, Cs);
1833
+ return s.u = r, s.pr = -10, s.tween = n, t._props.push(i), 1;
1834
+ }
1835
+ }
1836
+ /* className feature (about 0.4kb gzipped).
1837
+ , className(plugin, target, property, endValue, tween) {
1838
+ let _renderClassName = (ratio, data) => {
1839
+ data.css.render(ratio, data.css);
1840
+ if (!ratio || ratio === 1) {
1841
+ let inline = data.rmv,
1842
+ target = data.t,
1843
+ p;
1844
+ target.setAttribute("class", ratio ? data.e : data.b);
1845
+ for (p in inline) {
1846
+ _removeProperty(target, p);
1847
+ }
1848
+ }
1849
+ },
1850
+ _getAllStyles = (target) => {
1851
+ let styles = {},
1852
+ computed = getComputedStyle(target),
1853
+ p;
1854
+ for (p in computed) {
1855
+ if (isNaN(p) && p !== "cssText" && p !== "length") {
1856
+ styles[p] = computed[p];
1857
+ }
1858
+ }
1859
+ _setDefaults(styles, _parseTransform(target, 1));
1860
+ return styles;
1861
+ },
1862
+ startClassList = target.getAttribute("class"),
1863
+ style = target.style,
1864
+ cssText = style.cssText,
1865
+ cache = target._gsap,
1866
+ classPT = cache.classPT,
1867
+ inlineToRemoveAtEnd = {},
1868
+ 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) : "")},
1869
+ changingVars = {},
1870
+ startVars = _getAllStyles(target),
1871
+ transformRelated = /(transform|perspective)/i,
1872
+ endVars, p;
1873
+ if (classPT) {
1874
+ classPT.r(1, classPT.d);
1875
+ _removeLinkedListItem(classPT.d.plugin, classPT, "_pt");
1876
+ }
1877
+ target.setAttribute("class", data.e);
1878
+ endVars = _getAllStyles(target, true);
1879
+ target.setAttribute("class", startClassList);
1880
+ for (p in endVars) {
1881
+ if (endVars[p] !== startVars[p] && !transformRelated.test(p)) {
1882
+ changingVars[p] = endVars[p];
1883
+ if (!style[p] && style[p] !== "0") {
1884
+ inlineToRemoveAtEnd[p] = 1;
1885
+ }
1886
+ }
1887
+ }
1888
+ cache.classPT = plugin._pt = new PropTween(plugin._pt, target, "className", 0, 0, _renderClassName, data, 0, -11);
1889
+ 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/.
1890
+ 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).
1891
+ }
1892
+ _parseTransform(target, true); //to clear the caching of transforms
1893
+ data.css = new gsap.plugins.css();
1894
+ data.css.init(target, changingVars, tween);
1895
+ plugin._props.push(...data.css._props);
1896
+ return 1;
1897
+ }
1898
+ */
1899
+ }, Oe = [1, 0, 0, 1, 0, 0], Kr = {}, Qr = function(t) {
1900
+ return t === "matrix(1, 0, 0, 1, 0, 0)" || t === "none" || !t;
1901
+ }, rr = function(t) {
1902
+ var e = mt(t, j);
1903
+ return Qr(e) ? Oe : e.substr(7).match(fr).map(J);
1904
+ }, Ai = function(t, e) {
1905
+ var i = t._gsap || Qt(t), r = t.style, n = rr(t), s, o, a, f;
1906
+ return i.svg && t.getAttribute("transform") ? (a = t.transform.baseVal.consolidate().matrix, n = [a.a, a.b, a.c, a.d, a.e, a.f], n.join(",") === "1,0,0,1,0,0" ? Oe : n) : (n === Oe && !t.offsetParent && t !== le && !i.svg && (a = r.display, r.display = "block", s = t.parentNode, (!s || !t.offsetParent && !t.getBoundingClientRect().width) && (f = 1, o = t.nextElementSibling, le.appendChild(t)), n = rr(t), a ? r.display = a : Ut(t, "display"), f && (o ? s.insertBefore(t, o) : s ? s.appendChild(t) : le.removeChild(t))), e && n.length > 6 ? [n[0], n[1], n[4], n[5], n[12], n[13]] : n);
1907
+ }, pi = function(t, e, i, r, n, s) {
1908
+ var o = t._gsap, a = n || Ai(t, !0), f = o.xOrigin || 0, u = o.yOrigin || 0, _ = o.xOffset || 0, d = o.yOffset || 0, g = a[0], m = a[1], h = a[2], y = a[3], x = a[4], v = a[5], w = e.split(" "), b = parseFloat(w[0]) || 0, T = parseFloat(w[1]) || 0, M, S, C, k;
1909
+ i ? a !== Oe && (S = g * y - m * h) && (C = b * (y / S) + T * (-h / S) + (h * v - y * x) / S, k = b * (-m / S) + T * (g / S) - (g * v - m * x) / S, b = C, T = k) : (M = jr(t), b = M.x + (~w[0].indexOf("%") ? b / 100 * M.width : b), T = M.y + (~(w[1] || w[0]).indexOf("%") ? T / 100 * M.height : T)), r || r !== !1 && o.smooth ? (x = b - f, v = T - u, o.xOffset = _ + (x * g + v * h) - x, o.yOffset = d + (x * m + v * y) - v) : o.xOffset = o.yOffset = 0, o.xOrigin = b, o.yOrigin = T, o.smooth = !!r, o.origin = e, o.originIsAbsolute = !!i, t.style[ct] = "0px 0px", s && (Bt(s, o, "xOrigin", f, b), Bt(s, o, "yOrigin", u, T), Bt(s, o, "xOffset", _, o.xOffset), Bt(s, o, "yOffset", d, o.yOffset)), t.setAttribute("data-svg-origin", b + " " + T);
1910
+ }, Re = function(t, e) {
1911
+ var i = t._gsap || new Fr(t);
1912
+ if ("x" in i && !e && !i.uncache)
1913
+ return i;
1914
+ var r = t.style, n = i.scaleX < 0, s = "px", o = "deg", a = getComputedStyle(t), f = mt(t, ct) || "0", u, _, d, g, m, h, y, x, v, w, b, T, M, S, C, k, E, H, V, Y, U, tt, Q, q, ot, Rt, zt, Xt, kt, c, P, p;
1915
+ return u = _ = d = h = y = x = v = w = b = 0, g = m = 1, i.svg = !!(t.getCTM && Zr(t)), a.translate && ((a.translate !== "none" || a.scale !== "none" || a.rotate !== "none") && (r[j] = (a.translate !== "none" ? "translate3d(" + (a.translate + " 0 0").split(" ").slice(0, 3).join(", ") + ") " : "") + (a.rotate !== "none" ? "rotate(" + a.rotate + ") " : "") + (a.scale !== "none" ? "scale(" + a.scale.split(" ").join(",") + ") " : "") + (a[j] !== "none" ? a[j] : "")), r.scale = r.rotate = r.translate = "none"), S = Ai(t, i.svg), i.svg && (i.uncache ? (ot = t.getBBox(), f = i.xOrigin - ot.x + "px " + (i.yOrigin - ot.y) + "px", q = "") : q = !e && t.getAttribute("data-svg-origin"), pi(t, q || f, !!q || i.originIsAbsolute, i.smooth !== !1, S)), T = i.xOrigin || 0, M = i.yOrigin || 0, S !== Oe && (H = S[0], V = S[1], Y = S[2], U = S[3], u = tt = S[4], _ = Q = S[5], S.length === 6 ? (g = Math.sqrt(H * H + V * V), m = Math.sqrt(U * U + Y * Y), h = H || V ? ne(V, H) * Zt : 0, v = Y || U ? ne(Y, U) * Zt + h : 0, v && (m *= Math.abs(Math.cos(v * fe))), i.svg && (u -= T - (T * H + M * Y), _ -= M - (T * V + M * U))) : (p = S[6], c = S[7], zt = S[8], Xt = S[9], kt = S[10], P = S[11], u = S[12], _ = S[13], d = S[14], C = ne(p, kt), y = C * Zt, C && (k = Math.cos(-C), E = Math.sin(-C), q = tt * k + zt * E, ot = Q * k + Xt * E, Rt = p * k + kt * E, zt = tt * -E + zt * k, Xt = Q * -E + Xt * k, kt = p * -E + kt * k, P = c * -E + P * k, tt = q, Q = ot, p = Rt), C = ne(-Y, kt), x = C * Zt, C && (k = Math.cos(-C), E = Math.sin(-C), q = H * k - zt * E, ot = V * k - Xt * E, Rt = Y * k - kt * E, P = U * E + P * k, H = q, V = ot, Y = Rt), C = ne(V, H), h = C * Zt, C && (k = Math.cos(C), E = Math.sin(C), q = H * k + V * E, ot = tt * k + Q * E, V = V * k - H * E, Q = Q * k - tt * E, H = q, tt = ot), y && Math.abs(y) + Math.abs(h) > 359.9 && (y = h = 0, x = 180 - x), g = J(Math.sqrt(H * H + V * V + Y * Y)), m = J(Math.sqrt(Q * Q + p * p)), C = ne(tt, Q), v = Math.abs(C) > 2e-4 ? C * Zt : 0, b = P ? 1 / (P < 0 ? -P : P) : 0), i.svg && (q = t.getAttribute("transform"), i.forceCSS = t.setAttribute("transform", "") || !Qr(mt(t, j)), q && t.setAttribute("transform", q))), Math.abs(v) > 90 && Math.abs(v) < 270 && (n ? (g *= -1, v += h <= 0 ? 180 : -180, h += h <= 0 ? 180 : -180) : (m *= -1, v += v <= 0 ? 180 : -180)), e = e || i.uncache, i.x = u - ((i.xPercent = u && (!e && i.xPercent || (Math.round(t.offsetWidth / 2) === Math.round(-u) ? -50 : 0))) ? t.offsetWidth * i.xPercent / 100 : 0) + s, i.y = _ - ((i.yPercent = _ && (!e && i.yPercent || (Math.round(t.offsetHeight / 2) === Math.round(-_) ? -50 : 0))) ? t.offsetHeight * i.yPercent / 100 : 0) + s, i.z = d + s, i.scaleX = J(g), i.scaleY = J(m), i.rotation = J(h) + o, i.rotationX = J(y) + o, i.rotationY = J(x) + o, i.skewX = v + o, i.skewY = w + o, i.transformPerspective = b + s, (i.zOrigin = parseFloat(f.split(" ")[2]) || !e && i.zOrigin || 0) && (r[ct] = Xe(f)), i.xOffset = i.yOffset = 0, i.force3D = yt.force3D, i.renderTransform = i.svg ? Ms : $r ? Jr : Ps, i.uncache = 0, i;
1916
+ }, Xe = function(t) {
1917
+ return (t = t.split(" "))[0] + " " + t[1];
1918
+ }, ri = function(t, e, i) {
1919
+ var r = nt(e);
1920
+ return J(parseFloat(e) + parseFloat(qt(t, "x", i + "px", r))) + r;
1921
+ }, Ps = function(t, e) {
1922
+ e.z = "0px", e.rotationY = e.rotationX = "0deg", e.force3D = 0, Jr(t, e);
1923
+ }, $t = "0deg", ge = "0px", jt = ") ", Jr = function(t, e) {
1924
+ var i = e || this, r = i.xPercent, n = i.yPercent, s = i.x, o = i.y, a = i.z, f = i.rotation, u = i.rotationY, _ = i.rotationX, d = i.skewX, g = i.skewY, m = i.scaleX, h = i.scaleY, y = i.transformPerspective, x = i.force3D, v = i.target, w = i.zOrigin, b = "", T = x === "auto" && t && t !== 1 || x === !0;
1925
+ if (w && (_ !== $t || u !== $t)) {
1926
+ var M = parseFloat(u) * fe, S = Math.sin(M), C = Math.cos(M), k;
1927
+ M = parseFloat(_) * fe, k = Math.cos(M), s = ri(v, s, S * k * -w), o = ri(v, o, -Math.sin(M) * -w), a = ri(v, a, C * k * -w + w);
1928
+ }
1929
+ y !== ge && (b += "perspective(" + y + jt), (r || n) && (b += "translate(" + r + "%, " + n + "%) "), (T || s !== ge || o !== ge || a !== ge) && (b += a !== ge || T ? "translate3d(" + s + ", " + o + ", " + a + ") " : "translate(" + s + ", " + o + jt), f !== $t && (b += "rotate(" + f + jt), u !== $t && (b += "rotateY(" + u + jt), _ !== $t && (b += "rotateX(" + _ + jt), (d !== $t || g !== $t) && (b += "skew(" + d + ", " + g + jt), (m !== 1 || h !== 1) && (b += "scale(" + m + ", " + h + jt), v.style[j] = b || "translate(0, 0)";
1930
+ }, Ms = function(t, e) {
1931
+ var i = e || this, r = i.xPercent, n = i.yPercent, s = i.x, o = i.y, a = i.rotation, f = i.skewX, u = i.skewY, _ = i.scaleX, d = i.scaleY, g = i.target, m = i.xOrigin, h = i.yOrigin, y = i.xOffset, x = i.yOffset, v = i.forceCSS, w = parseFloat(s), b = parseFloat(o), T, M, S, C, k;
1932
+ a = parseFloat(a), f = parseFloat(f), u = parseFloat(u), u && (u = parseFloat(u), f += u, a += u), a || f ? (a *= fe, f *= fe, T = Math.cos(a) * _, M = Math.sin(a) * _, S = Math.sin(a - f) * -d, C = Math.cos(a - f) * d, f && (u *= fe, k = Math.tan(f - u), k = Math.sqrt(1 + k * k), S *= k, C *= k, u && (k = Math.tan(u), k = Math.sqrt(1 + k * k), T *= k, M *= k)), T = J(T), M = J(M), S = J(S), C = J(C)) : (T = _, C = d, M = S = 0), (w && !~(s + "").indexOf("px") || b && !~(o + "").indexOf("px")) && (w = qt(g, "x", s, "px"), b = qt(g, "y", o, "px")), (m || h || y || x) && (w = J(w + m - (m * T + h * S) + y), b = J(b + h - (m * M + h * C) + x)), (r || n) && (k = g.getBBox(), w = J(w + r / 100 * k.width), b = J(b + n / 100 * k.height)), k = "matrix(" + T + "," + M + "," + S + "," + C + "," + w + "," + b + ")", g.setAttribute("transform", k), v && (g.style[j] = k);
1933
+ }, Os = function(t, e, i, r, n) {
1934
+ var s = 360, o = it(n), a = parseFloat(n) * (o && ~n.indexOf("rad") ? Zt : 1), f = a - r, u = r + f + "deg", _, d;
1935
+ return o && (_ = n.split("_")[1], _ === "short" && (f %= s, f !== f % (s / 2) && (f += f < 0 ? s : -s)), _ === "cw" && f < 0 ? f = (f + s * Ki) % s - ~~(f / s) * s : _ === "ccw" && f > 0 && (f = (f - s * Ki) % s - ~~(f / s) * s)), t._pt = d = new ht(t._pt, e, i, r, f, hs), d.e = u, d.u = "deg", t._props.push(i), d;
1936
+ }, nr = function(t, e) {
1937
+ for (var i in e)
1938
+ t[i] = e[i];
1939
+ return t;
1940
+ }, Rs = function(t, e, i) {
1941
+ var r = nr({}, i._gsap), n = "perspective,force3D,transformOrigin,svgOrigin", s = i.style, o, a, f, u, _, d, g, m;
1942
+ r.svg ? (f = i.getAttribute("transform"), i.setAttribute("transform", ""), s[j] = e, o = Re(i, 1), Ut(i, j), i.setAttribute("transform", f)) : (f = getComputedStyle(i)[j], s[j] = e, o = Re(i, 1), s[j] = f);
1943
+ for (a in Lt)
1944
+ f = r[a], u = o[a], f !== u && n.indexOf(a) < 0 && (g = nt(f), m = nt(u), _ = g !== m ? qt(i, a, f, m) : parseFloat(f), d = parseFloat(u), t._pt = new ht(t._pt, o, a, _, d - _, ci), t._pt.u = m || 0, t._props.push(a));
1945
+ nr(o, r);
1946
+ };
1947
+ ut("padding,margin,Width,Radius", function(l, t) {
1948
+ var e = "Top", i = "Right", r = "Bottom", n = "Left", s = (t < 3 ? [e, i, r, n] : [e + n, e + i, r + i, r + n]).map(function(o) {
1949
+ return t < 2 ? l + o : "border" + o + l;
1950
+ });
1951
+ He[t > 1 ? "border" + l : l] = function(o, a, f, u, _) {
1952
+ var d, g;
1953
+ if (arguments.length < 4)
1954
+ return d = s.map(function(m) {
1955
+ return Et(o, m, f);
1956
+ }), g = d.join(" "), g.split(d[0]).length === 5 ? d[0] : g;
1957
+ d = (u + "").split(" "), g = {}, s.forEach(function(m, h) {
1958
+ return g[m] = d[h] = d[h] || d[(h - 1) / 2 | 0];
1959
+ }), o.init(a, g, _);
1960
+ };
1961
+ });
1962
+ var tn = {
1963
+ name: "css",
1964
+ register: di,
1965
+ targetTest: function(t) {
1966
+ return t.style && t.nodeType;
1967
+ },
1968
+ init: function(t, e, i, r, n) {
1969
+ var s = this._props, o = t.style, a = i.vars.startAt, f, u, _, d, g, m, h, y, x, v, w, b, T, M, S, C, k;
1970
+ Ri || di(), this.styles = this.styles || Gr(t), C = this.styles.props, this.tween = i;
1971
+ for (h in e)
1972
+ if (h !== "autoRound" && (u = e[h], !(dt[h] && Nr(h, e, i, r, t, n)))) {
1973
+ if (g = typeof u, m = He[h], g === "function" && (u = u.call(i, r, t, n), g = typeof u), g === "string" && ~u.indexOf("random(") && (u = ke(u)), m)
1974
+ m(this, t, h, u, i) && (S = 1);
1975
+ else if (h.substr(0, 2) === "--")
1976
+ f = (getComputedStyle(t).getPropertyValue(h) + "").trim(), u += "", Vt.lastIndex = 0, Vt.test(f) || (y = nt(f), x = nt(u), x ? y !== x && (f = qt(t, h, f, x) + x) : y && (u += y)), this.add(o, "setProperty", f, u, r, n, 0, 0, h), s.push(h), C.push(h, 0, o[h]);
1977
+ else if (g !== "undefined") {
1978
+ if (a && h in a ? (f = typeof a[h] == "function" ? a[h].call(i, r, t, n) : a[h], it(f) && ~f.indexOf("random(") && (f = ke(f)), nt(f + "") || f === "auto" || (f += yt.units[h] || nt(Et(t, h)) || ""), (f + "").charAt(1) === "=" && (f = Et(t, h))) : f = Et(t, h), d = parseFloat(f), v = g === "string" && u.charAt(1) === "=" && u.substr(0, 2), v && (u = u.substr(2)), _ = parseFloat(u), h in Mt && (h === "autoAlpha" && (d === 1 && Et(t, "visibility") === "hidden" && _ && (d = 0), C.push("visibility", 0, o.visibility), Bt(this, o, "visibility", d ? "inherit" : "hidden", _ ? "inherit" : "hidden", !_)), h !== "scale" && h !== "transform" && (h = Mt[h], ~h.indexOf(",") && (h = h.split(",")[0]))), w = h in Lt, w) {
1979
+ if (this.styles.save(h), k = u, g === "string" && u.substring(0, 6) === "var(--") {
1980
+ if (u = mt(t, u.substring(4, u.indexOf(")"))), u.substring(0, 5) === "calc(") {
1981
+ var E = t.style.perspective;
1982
+ t.style.perspective = u, u = mt(t, "perspective"), E ? t.style.perspective = E : Ut(t, "perspective");
1983
+ }
1984
+ _ = parseFloat(u);
1985
+ }
1986
+ if (b || (T = t._gsap, T.renderTransform && !e.parseTransform || Re(t, e.parseTransform), M = e.smoothOrigin !== !1 && T.smooth, b = this._pt = new ht(this._pt, o, j, 0, 1, T.renderTransform, T, 0, -1), b.dep = 1), h === "scale")
1987
+ this._pt = new ht(this._pt, T, "scaleY", T.scaleY, (v ? ae(T.scaleY, v + _) : _) - T.scaleY || 0, ci), this._pt.u = 0, s.push("scaleY", h), h += "X";
1988
+ else if (h === "transformOrigin") {
1989
+ C.push(ct, 0, o[ct]), u = ks(u), T.svg ? pi(t, u, 0, M, 0, this) : (x = parseFloat(u.split(" ")[2]) || 0, x !== T.zOrigin && Bt(this, T, "zOrigin", T.zOrigin, x), Bt(this, o, h, Xe(f), Xe(u)));
1990
+ continue;
1991
+ } else if (h === "svgOrigin") {
1992
+ pi(t, u, 1, M, 0, this);
1993
+ continue;
1994
+ } else if (h in Kr) {
1995
+ Os(this, T, h, d, v ? ae(d, v + u) : u);
1996
+ continue;
1997
+ } else if (h === "smoothOrigin") {
1998
+ Bt(this, T, "smooth", T.smooth, u);
1999
+ continue;
2000
+ } else if (h === "force3D") {
2001
+ T[h] = u;
2002
+ continue;
2003
+ } else if (h === "transform") {
2004
+ Rs(this, u, t);
2005
+ continue;
2006
+ }
2007
+ } else h in o || (h = de(h) || h);
2008
+ if (w || (_ || _ === 0) && (d || d === 0) && !us.test(u) && h in o)
2009
+ y = (f + "").substr((d + "").length), _ || (_ = 0), x = nt(u) || (h in yt.units ? yt.units[h] : y), y !== x && (d = qt(t, h, f, x)), this._pt = new ht(this._pt, w ? T : o, h, d, (v ? ae(d, v + _) : _) - d, !w && (x === "px" || h === "zIndex") && e.autoRound !== !1 ? ds : ci), this._pt.u = x || 0, w && k !== u ? (this._pt.b = f, this._pt.e = k, this._pt.r = _s) : y !== x && x !== "%" && (this._pt.b = f, this._pt.r = cs);
2010
+ else if (h in o)
2011
+ Ss.call(this, t, h, f, v ? v + u : u);
2012
+ else if (h in t)
2013
+ this.add(t, h, f || t[h], v ? v + u : u, r, n);
2014
+ else if (h !== "parseTransform") {
2015
+ vi(h, u);
2016
+ continue;
2017
+ }
2018
+ w || (h in o ? C.push(h, 0, o[h]) : typeof t[h] == "function" ? C.push(h, 2, t[h]()) : C.push(h, 1, f || t[h])), s.push(h);
2019
+ }
2020
+ }
2021
+ S && Yr(this);
2022
+ },
2023
+ render: function(t, e) {
2024
+ if (e.tween._time || !Di())
2025
+ for (var i = e._pt; i; )
2026
+ i.r(t, i.d), i = i._next;
2027
+ else
2028
+ e.styles.revert();
2029
+ },
2030
+ get: Et,
2031
+ aliases: Mt,
2032
+ getSetter: function(t, e, i) {
2033
+ var r = Mt[e];
2034
+ return r && r.indexOf(",") < 0 && (e = r), e in Lt && e !== ct && (t._gsap.x || Et(t, "x")) ? i && Zi === i ? e === "scale" ? ys : ms : (Zi = i || {}) && (e === "scale" ? xs : vs) : t.style && !mi(t.style[e]) ? ps : ~e.indexOf("-") ? gs : Mi(t, e);
2035
+ },
2036
+ core: {
2037
+ _removeProperty: Ut,
2038
+ _getMatrix: Ai
2039
+ }
2040
+ };
2041
+ _t.utils.checkPrefix = de;
2042
+ _t.core.getStyleSaver = Gr;
2043
+ (function(l, t, e, i) {
2044
+ var r = ut(l + "," + t + "," + e, function(n) {
2045
+ Lt[n] = 1;
2046
+ });
2047
+ ut(t, function(n) {
2048
+ yt.units[n] = "deg", Kr[n] = 1;
2049
+ }), Mt[r[13]] = l + "," + t, ut(i, function(n) {
2050
+ var s = n.split(":");
2051
+ Mt[s[1]] = r[s[0]];
2052
+ });
2053
+ })("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");
2054
+ ut("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective", function(l) {
2055
+ yt.units[l] = "px";
2056
+ });
2057
+ _t.registerPlugin(tn);
2058
+ var Fe = _t.registerPlugin(tn) || _t;
2059
+ Fe.core.Tween;
2060
+ const Ds = `
2061
+ .vpb-root{position:relative;width:100%;overflow-x:clip;color:#2c2e3a;font-family:system-ui,'Segoe UI',Roboto,sans-serif;}
2062
+ .vpb-pointer-layer{position:fixed;top:0;left:0;width:100vw;height:100vh;pointer-events:none;overflow:hidden;z-index:var(--vpb-pointer-z,9999);}
2063
+ .vpb-box{/* 用户写的元素:占位容器,不动 */}
2064
+ .vpb-box.show{/* 父 box 被激活时给个整体标记 */}
2065
+ .vpb-inner{position:absolute;left:0;top:0;background:#fff;box-shadow:0 4px 14px rgba(40,50,80,.08);display:flex;align-items:center;justify-content:center;font-weight:500;color:#5a5e75;border:1px solid rgba(120,130,170,.15);overflow:hidden;opacity:0;transition:opacity .5s ease,box-shadow .3s ease;will-change:left,top,width,height,border-radius;pointer-events:none;user-select:none;box-sizing:border-box;}
2066
+ .vpb-box.show .vpb-inner{opacity:1;}
2067
+ .vpb-box.dragging .vpb-inner{box-shadow:0 10px 36px rgba(70,120,200,.28),0 0 0 2px rgba(100,160,255,.5);border-color:rgba(100,160,255,.4);}
2068
+ .vpb-box.done .vpb-inner{box-shadow:0 14px 40px rgba(70,180,140,.3),0 0 0 2px rgba(100,200,160,.55);border-color:rgba(100,200,160,.45);color:#3a7a65;}
2069
+ .vpb-inner .vpb-text{white-space:nowrap;pointer-events:none;user-select:none;}
2070
+ .vpb-box.big-text-box .vpb-inner .vpb-text{white-space:normal;text-align:justify;line-height:1.65;font-size:.82rem;letter-spacing:.3px;}
2071
+ .vpb-cursor-mock{position:absolute;width:var(--vpb-pointer-size,26px);height:var(--vpb-pointer-size,26px);pointer-events:none;transform:translate(-50%,-50%);opacity:var(--vpb-idle-opacity,.35);filter:drop-shadow(0 0 3px currentColor);will-change:left,top,opacity,filter;transition:opacity .25s ease,filter .25s ease,width .25s ease,height .25s ease;}
2072
+ .vpb-cursor-mock svg{display:block;width:100%;height:100%;overflow:visible;}
2073
+ .vpb-cursor-mock svg path{fill:currentColor;stroke:#e8eaf2;stroke-width:1;stroke-linejoin:round;stroke-opacity:.7;}
2074
+ .vpb-cursor-mock.near{opacity:var(--vpb-near-opacity,.75);filter:drop-shadow(0 0 10px currentColor) brightness(1.4);}
2075
+ .vpb-cursor-mock.dragging{width:var(--vpb-pointer-drag-size,38px);height:var(--vpb-pointer-drag-size,38px);opacity:1;filter:drop-shadow(0 0 16px currentColor) drop-shadow(0 0 32px currentColor) brightness(1.7);}
2076
+ .vpb-cursor-mock.dragging svg path{stroke:#fff;stroke-opacity:.95;}
2077
+ .vpb-cursor-mock.typing-cursor svg{display:none;}
2078
+ .vpb-cursor-mock.typing-cursor{width:2px;height:1.3em;opacity:1;filter:none;background:#3a7a65;border-radius:1px;animation:vpb-type-blink .6s step-end infinite;transform:translate(-50%,-.65em);}
2079
+ @keyframes vpb-type-blink{0%,100%{opacity:1}50%{opacity:0}}
2080
+ .vpb-drag-line{position:absolute;pointer-events:none;height:2px;background:linear-gradient(90deg,rgba(100,160,255,0),rgba(100,160,255,.85));transform-origin:0 50%;opacity:0;}
2081
+ .vpb-hint{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);background:rgba(255,255,255,.9);padding:10px 22px;border-radius:40px;font-size:.8rem;color:#6b6f85;border:1px solid rgba(120,130,170,.18);box-shadow:0 4px 16px rgba(40,50,80,.08);pointer-events:none;letter-spacing:1px;z-index:10000;}
2082
+ @media(max-width:600px){.vpb-hint{font-size:.7rem;width:85%;text-align:center}}
2083
+ `, sr = "vpb-injected-styles";
2084
+ function Es() {
2085
+ if (typeof document > "u" || document.getElementById(sr)) return;
2086
+ const l = document.createElement("style");
2087
+ l.id = sr, l.textContent = Ds, document.head.appendChild(l);
2088
+ }
2089
+ const As = {
2090
+ key: 0,
2091
+ class: "vpb-hint"
2092
+ }, Ls = '<svg viewBox="0 0 32 32"><path d="M8 4L24 16L16 18L20 26L16 28L12 20L8 24L8 4Z" fill="currentColor" stroke="#e8eaf2" stroke-width="1" stroke-linejoin="round" stroke-opacity="0.7"/></svg>', Ne = {
2093
+ __name: "PointerBoxes",
2094
+ props: {
2095
+ selector: { type: String, default: ".vpb-box" },
2096
+ scanRoot: { type: [String, Object], default: null },
2097
+ // 初始尺寸(全局默认,可被 data-* 覆盖)
2098
+ initialWidth: { type: Number, default: 48 },
2099
+ initialHeight: { type: Number, default: 48 },
2100
+ initialRadius: { type: Number, default: 10 },
2101
+ // 指针
2102
+ pointerCount: { type: Number, default: 20 },
2103
+ pointerSize: { type: Number, default: 26 },
2104
+ pointerDragSize: { type: Number, default: 38 },
2105
+ minSpeed: { type: Number, default: 0.3 },
2106
+ maxSpeed: { type: Number, default: 1.1 },
2107
+ nearRadius: { type: Number, default: 150 },
2108
+ lockRadius: { type: Number, default: 90 },
2109
+ idleOpacity: { type: Number, default: 0.35 },
2110
+ nearOpacity: { type: Number, default: 0.75 },
2111
+ pointerZIndex: { type: Number, default: 9999 },
2112
+ hideNativeCursor: { type: Boolean, default: !0 },
2113
+ // 动画
2114
+ normalStagger: { type: Number, default: 0.14 },
2115
+ bigTextStagger: { type: Number, default: 0.045 },
2116
+ typeDelay: { type: Number, default: 700 },
2117
+ autoResetDistance: { type: Number, default: 500 },
2118
+ // 颜色
2119
+ background: { type: String, default: "#f4f5fa" },
2120
+ darkSaturation: { type: Number, default: 15 },
2121
+ darkLightness: { type: Number, default: 28 },
2122
+ brightSaturation: { type: Number, default: 75 },
2123
+ brightLightness: { type: Number, default: 62 },
2124
+ hintText: { type: String, default: "" }
2125
+ },
2126
+ emits: ["dragstart", "dragend", "typed", "ready"],
2127
+ setup(l, { expose: t, emit: e }) {
2128
+ const i = {
2129
+ br: [1, 1],
2130
+ tr: [1, -1],
2131
+ bl: [-1, 1],
2132
+ tl: [-1, -1],
2133
+ right: [1, 0],
2134
+ left: [-1, 0],
2135
+ down: [0, 1],
2136
+ up: [0, -1]
2137
+ }, r = l, n = e, s = Fi(null), o = Fi(null), a = Ni(() => ({
2138
+ background: r.background,
2139
+ cursor: r.hideNativeCursor ? "none" : "auto",
2140
+ "--vpb-pointer-size": r.pointerSize + "px",
2141
+ "--vpb-pointer-drag-size": r.pointerDragSize + "px",
2142
+ "--vpb-idle-opacity": String(r.idleOpacity),
2143
+ "--vpb-near-opacity": String(r.nearOpacity)
2144
+ })), f = Ni(() => ({ zIndex: String(r.pointerZIndex) })), u = (c, P) => {
2145
+ const p = parseFloat(c);
2146
+ return Number.isFinite(p) ? p : P;
2147
+ }, _ = (c) => Array.isArray(c) ? [Math.sign(c[0] || 0), Math.sign(c[1] || 0)] : i[c] || [1, 1], d = (c) => `hsl(${c}, ${r.darkSaturation}%, ${r.darkLightness}%)`, g = (c) => `hsl(${c}, ${r.brightSaturation}%, ${r.brightLightness}%)`;
2148
+ let m = [], h = [], y = null, x = null, v = null;
2149
+ const w = /* @__PURE__ */ new Set(), b = [], T = (c, P) => {
2150
+ const p = setTimeout(() => {
2151
+ w.delete(p), c();
2152
+ }, P);
2153
+ return w.add(p), p;
2154
+ };
2155
+ function M(c, P) {
2156
+ const p = getComputedStyle(c), D = c.offsetWidth || 0, O = c.offsetHeight || 0;
2157
+ let z = c.dataset.text !== void 0 ? c.dataset.text : P ?? "";
2158
+ return {
2159
+ finalW: u(c.dataset.width, D || 190),
2160
+ finalH: u(c.dataset.height, O || 190),
2161
+ finalR: u(c.dataset.radius, parseFloat(p.borderRadius) || 18),
2162
+ text: z,
2163
+ dir: _(c.dataset.dir),
2164
+ rate: u(c.dataset.growthRate, 2.8),
2165
+ bigText: c.hasAttribute("data-big-text") || c.classList.contains("big-text-box"),
2166
+ placeholder: c.dataset.placeholder || "·",
2167
+ initW: u(c.dataset.initialWidth, r.initialWidth),
2168
+ initH: u(c.dataset.initialHeight, r.initialHeight),
2169
+ initR: u(c.dataset.initialRadius, r.initialRadius)
2170
+ };
2171
+ }
2172
+ function S(c) {
2173
+ const P = c.el.getBoundingClientRect();
2174
+ return {
2175
+ left: P.left,
2176
+ top: P.top,
2177
+ width: c.cfg.finalW,
2178
+ height: c.cfg.finalH,
2179
+ right: P.left + c.cfg.finalW,
2180
+ bottom: P.top + c.cfg.finalH
2181
+ };
2182
+ }
2183
+ function C() {
2184
+ m = [];
2185
+ const c = r.scanRoot ? typeof r.scanRoot == "string" ? document.querySelector(r.scanRoot) : r.scanRoot : s.value;
2186
+ if (!c) return;
2187
+ const P = Array.from(c.querySelectorAll(r.selector));
2188
+ (c.matches && c.matches(r.selector) ? [c, ...P] : P).forEach((O, z) => {
2189
+ getComputedStyle(O).position === "static" && (O.style.position = "relative");
2190
+ let A = O.querySelector(":scope > .vpb-inner"), L = null;
2191
+ if (A)
2192
+ L = A._span || A.querySelector("span.vpb-text");
2193
+ else {
2194
+ A = document.createElement("div"), A.className = "vpb-inner";
2195
+ const N = Array.from(O.childNodes), at = [];
2196
+ N.forEach((Z) => {
2197
+ Z.nodeType === Node.ELEMENT_NODE && Z.classList.contains("vpb-box") ? at.push(Z) : A.appendChild(Z);
2198
+ }), L = A.querySelector(":scope > span.vpb-text"), L || (L = document.createElement("span"), L.className = "vpb-text", Array.from(A.childNodes).forEach((Z) => {
2199
+ (Z.nodeType === Node.TEXT_NODE && Z.textContent.trim() || Z.nodeType === Node.ELEMENT_NODE) && L.appendChild(Z);
2200
+ }), A.appendChild(L)), A._span = L, O.appendChild(A), at.forEach((Z) => O.appendChild(Z));
2201
+ }
2202
+ const R = M(O, L ? L.textContent.trim() : "");
2203
+ A.style.position = "absolute", A.style.left = "0", A.style.top = "0", A.style.opacity = "0", A.style.width = R.initW + "px", A.style.height = R.initH + "px", A.style.borderRadius = R.initR + "px", m.push({
2204
+ i: z,
2205
+ el: O,
2206
+ inner: A,
2207
+ span: A._span || A.querySelector("span.vpb-text"),
2208
+ cfg: R,
2209
+ parentIdx: -1,
2210
+ children: [],
2211
+ state: 0,
2212
+ stretch: 0,
2213
+ maxStretch: Math.max(R.finalW - R.initW, R.finalH - R.initH, 1),
2214
+ dragPointerIdx: -1,
2215
+ dragLine: null,
2216
+ _signX: 1,
2217
+ _signY: 1
2218
+ });
2219
+ }), m.forEach((O) => {
2220
+ let z = O.el.parentElement;
2221
+ for (; z; ) {
2222
+ const I = m.findIndex((A) => A.el === z);
2223
+ if (I >= 0) {
2224
+ O.parentIdx = I, m[I].children.push(O.i);
2225
+ break;
2226
+ }
2227
+ z = z.parentElement;
2228
+ }
2229
+ });
2230
+ }
2231
+ function k(c) {
2232
+ if (c.parentIdx < 0) return !0;
2233
+ const P = m[c.parentIdx];
2234
+ return P && P.state === 3;
2235
+ }
2236
+ function E(c) {
2237
+ c.state === 0 && k(c) && (c.state = 1, c.el.classList.add("show"), c.inner.style.opacity = "", c.span && (c.span.textContent = ""));
2238
+ }
2239
+ function H(c) {
2240
+ c.state = 0, c.stretch = 0, c.dragPointerIdx = -1, c.el.classList.remove("show", "dragging", "done", "typing"), c.inner.style.opacity = "0", c.inner.style.width = c.cfg.initW + "px", c.inner.style.height = c.cfg.initH + "px", c.inner.style.borderRadius = c.cfg.initR + "px", c.inner.style.left = "", c.inner.style.top = "", c.span.style.fontSize = "0.9rem", c.span.style.opacity = "1", c.span.innerHTML = "", c.span.textContent = c.cfg.placeholder, c.dragLine && (c.dragLine.remove(), c.dragLine = null), c.children.forEach((P) => H(m[P]));
2241
+ }
2242
+ function V() {
2243
+ const c = o.value;
2244
+ if (!c) return;
2245
+ c.innerHTML = "", h.length = 0;
2246
+ const P = window.innerWidth, p = window.innerHeight;
2247
+ for (let D = 0; D < r.pointerCount; D++) {
2248
+ const O = document.createElement("div");
2249
+ O.className = "vpb-cursor-mock", O.innerHTML = Ls;
2250
+ const z = Math.floor(Math.random() * 360), I = Math.random() * Math.PI * 2, A = r.minSpeed + Math.random() * (r.maxSpeed - r.minSpeed), L = 30 + Math.random() * Math.max(P - 60, 1), R = 30 + Math.random() * Math.max(p - 60, 1);
2251
+ O.style.color = d(z), O.style.left = L + "px", O.style.top = R + "px", c.appendChild(O), h.push({
2252
+ el: O,
2253
+ x: L,
2254
+ y: R,
2255
+ vx: Math.cos(I) * A,
2256
+ vy: Math.sin(I) * A,
2257
+ hue: z,
2258
+ lockedBox: -1,
2259
+ cooldown: 0,
2260
+ typing: !1
2261
+ });
2262
+ }
2263
+ }
2264
+ function Y(c, P) {
2265
+ if (c.state !== 1) return;
2266
+ const p = h[P];
2267
+ if (!p || p.lockedBox >= 0 || p.typing) return;
2268
+ for (const pe of m) if (pe !== c && pe.dragPointerIdx === P) return;
2269
+ c.state = 2, c.dragPointerIdx = P, c.stretch = 0, p.lockedBox = c.i, p.el.classList.add("dragging"), p.el.classList.remove("near"), p.el.style.color = g(p.hue), c.el.classList.add("dragging"), n("dragstart", { index: c.i });
2270
+ const D = S(c), O = D.left + c.cfg.finalW / 2, z = D.top + c.cfg.finalH / 2, I = c.cfg.dir, A = Math.sign(I[0]) || 1, L = Math.sign(I[1]) || 1, R = O - A * c.cfg.finalW / 2, N = z - L * c.cfg.finalH / 2, at = A !== 0 ? R + A * c.cfg.initW : O, Z = L !== 0 ? N + L * c.cfg.initH : z;
2271
+ p.x = at, p.y = Z, p.vx = A * 3 || 0.1, p.vy = L * 3 || 0.1, p.el.style.left = at + "px", p.el.style.top = Z + "px", c._signX = A, c._signY = L;
2272
+ const Tt = c.el.getBoundingClientRect();
2273
+ let Ft = A >= 0 ? R - Tt.left : R - Tt.left - c.cfg.initW, re = L >= 0 ? N - Tt.top : N - Tt.top - c.cfg.initH;
2274
+ A === 0 && (Ft = O - Tt.left - c.cfg.initW / 2), L === 0 && (re = z - Tt.top - c.cfg.initH / 2), c.inner.style.position = "absolute", c.inner.style.left = Ft + "px", c.inner.style.top = re + "px", c.inner.style.width = c.cfg.initW + "px", c.inner.style.height = c.cfg.initH + "px", c.inner.style.borderRadius = c.cfg.initR + "px";
2275
+ const Gt = document.createElement("div");
2276
+ Gt.className = "vpb-drag-line", o.value.appendChild(Gt), c.dragLine = Gt;
2277
+ }
2278
+ function U(c) {
2279
+ const P = S(c), p = c.el.getBoundingClientRect();
2280
+ c.inner.style.left = P.left - p.left + "px", c.inner.style.top = P.top - p.top + "px", c.inner.style.width = c.cfg.finalW + "px", c.inner.style.height = c.cfg.finalH + "px", c.inner.style.borderRadius = c.cfg.finalR + "px", c.span.style.opacity = "0", c.span.innerHTML = "", c.span.textContent = "";
2281
+ const D = c.dragPointerIdx;
2282
+ if (c.dragPointerIdx = -1, c.stretch = c.maxStretch, c.state = 3, c.el.classList.remove("dragging"), c.el.classList.add("done"), c.dragLine && (c.dragLine.remove(), c.dragLine = null), n("dragend", { index: c.i }), D >= 0 && h[D]) {
2283
+ const O = h[D];
2284
+ O.el.classList.remove("dragging"), O.el.classList.add("typing-cursor"), O.el.style.color = d(O.hue), O.lockedBox = -1, O.cooldown = 9999, O.typing = !0;
2285
+ }
2286
+ c.children.forEach((O) => {
2287
+ const z = m[O];
2288
+ z.state === 0 && E(z);
2289
+ }), T(() => tt(c, D), 400);
2290
+ }
2291
+ function tt(c, P) {
2292
+ const p = Q(c);
2293
+ if (!p) {
2294
+ if (c.el.classList.remove("typing"), P >= 0 && h[P]) {
2295
+ const R = h[P];
2296
+ R.el.classList.remove("typing-cursor"), R.typing = !1, R.cooldown = 0;
2297
+ }
2298
+ return;
2299
+ }
2300
+ c.span.style.opacity = "1", c.span.style.fontSize = c.cfg.bigText ? "0.82rem" : "1.8rem", c.span.innerHTML = "";
2301
+ for (const R of p) {
2302
+ const N = document.createElement("span");
2303
+ N.className = "vpb-char", N.textContent = R, N.style.display = "inline-block", N.style.opacity = "0", N.style.transform = "translateY(8px) scale(0.7)", N.style.filter = "blur(3px)", c.span.appendChild(N);
2304
+ }
2305
+ const D = Array.from(c.span.querySelectorAll(".vpb-char"));
2306
+ c.el.classList.add("typing");
2307
+ const O = S(c), z = O.left + O.width / 2, I = O.top + O.height / 2;
2308
+ if (P >= 0 && h[P]) {
2309
+ const R = h[P];
2310
+ R.vx = 0, R.vy = 0, R.cooldown = D.length + 120, R.el.classList.add("typing-cursor"), b.push(Fe.to(R, {
2311
+ x: z,
2312
+ y: I,
2313
+ duration: 0.6,
2314
+ ease: "power2.out",
2315
+ onUpdate: () => {
2316
+ R.el.style.left = R.x.toFixed(1) + "px", R.el.style.top = R.y.toFixed(1) + "px";
2317
+ }
2318
+ }));
2319
+ }
2320
+ const A = c.cfg.bigText ? r.bigTextStagger : r.normalStagger, L = Fe.timeline({
2321
+ delay: r.typeDelay / 1e3,
2322
+ onComplete: () => {
2323
+ if (P >= 0 && h[P]) {
2324
+ const R = h[P];
2325
+ R.el.classList.remove("typing-cursor"), R.typing = !1, R.cooldown = 0;
2326
+ const N = Math.random() * Math.PI * 2;
2327
+ R.vx = Math.cos(N) * 1.8, R.vy = Math.sin(N) * 1.8;
2328
+ }
2329
+ c.el.classList.remove("typing"), n("typed", { index: c.i, text: p });
2330
+ }
2331
+ });
2332
+ b.push(L), L.to(D, {
2333
+ opacity: 1,
2334
+ y: 0,
2335
+ scale: 1,
2336
+ filter: "blur(0px)",
2337
+ duration: 0.22,
2338
+ ease: "back.out(1.5)",
2339
+ stagger: A
2340
+ });
2341
+ }
2342
+ function Q(c) {
2343
+ return c.cfg.text && c.cfg.text.trim() ? c.cfg.text.trim() : c.span.textContent.trim();
2344
+ }
2345
+ let q = 0;
2346
+ function ot() {
2347
+ const c = window.innerWidth, P = window.innerHeight;
2348
+ for (const p of h)
2349
+ if (!(p.lockedBox >= 0 || p.typing)) {
2350
+ if (p.cooldown > 0)
2351
+ p.cooldown--, p.x += p.vx, p.y += p.vy, p.x < -40 && (p.x = c + 40), p.x > c + 40 && (p.x = -40), p.y < -40 && (p.y = P + 40), p.y > P + 40 && (p.y = -40);
2352
+ else {
2353
+ if (Math.random() < 0.015) {
2354
+ const z = Math.atan2(p.vy, p.vx) + (Math.random() - 0.5) * 0.6, I = Math.hypot(p.vx, p.vy);
2355
+ p.vx = Math.cos(z) * I, p.vy = Math.sin(z) * I;
2356
+ }
2357
+ p.x += p.vx, p.y += p.vy;
2358
+ const D = 20;
2359
+ if (p.x < D && (p.x = D, p.vx *= -0.9), p.x > c - D && (p.x = c - D, p.vx *= -0.9), p.y < D && (p.y = D, p.vy *= -0.9), p.y > P - D && (p.y = P - D, p.vy *= -0.9), Math.hypot(p.vx, p.vy) < 0.3) {
2360
+ const z = Math.random() * Math.PI * 2;
2361
+ p.vx = Math.cos(z) * 0.9, p.vy = Math.sin(z) * 0.9;
2362
+ }
2363
+ }
2364
+ p.el.classList.remove("near"), p.el.style.left = p.x.toFixed(1) + "px", p.el.style.top = p.y.toFixed(1) + "px";
2365
+ }
2366
+ for (const p of m) {
2367
+ if (p.state !== 1) continue;
2368
+ const D = S(p), O = D.left + D.width / 2, z = D.top + D.height / 2;
2369
+ let I = -1, A = 1 / 0;
2370
+ for (let R = 0; R < h.length; R++) {
2371
+ const N = h[R];
2372
+ if (N.lockedBox >= 0 || N.cooldown > 0 || N.typing) continue;
2373
+ const at = Math.hypot(N.x - O, N.y - z);
2374
+ at < A && (A = at, I = R);
2375
+ }
2376
+ if (I < 0) continue;
2377
+ const L = h[I];
2378
+ if (A < r.nearRadius) {
2379
+ L.el.classList.add("near");
2380
+ const R = O - L.x, N = z - L.y, at = Math.hypot(R, N) || 1, Z = 0.08 * (1 - A / r.nearRadius);
2381
+ L.vx += R / at * Z, L.vy += N / at * Z;
2382
+ }
2383
+ A < r.lockRadius && Y(p, I);
2384
+ }
2385
+ for (const p of m) {
2386
+ if (p.state !== 2 || p.dragPointerIdx < 0) continue;
2387
+ const D = h[p.dragPointerIdx];
2388
+ if (!D) {
2389
+ U(p);
2390
+ continue;
2391
+ }
2392
+ p.stretch = Math.min(p.maxStretch, p.stretch + p.cfg.rate);
2393
+ const O = p.stretch / p.maxStretch, z = p.cfg.initW + (p.cfg.finalW - p.cfg.initW) * O, I = p.cfg.initH + (p.cfg.finalH - p.cfg.initH) * O, A = p.cfg.initR + (p.cfg.finalR - p.cfg.initR) * O, L = p._signX, R = p._signY, N = S(p), at = N.left + N.width / 2, Z = N.top + N.height / 2, Tt = at - L * p.cfg.finalW / 2, Ft = Z - R * p.cfg.finalH / 2;
2394
+ D.x = L !== 0 ? Tt + L * z : at, D.y = R !== 0 ? Ft + R * I : Z;
2395
+ let re = L >= 0 ? Tt : Tt - z, Gt = R >= 0 ? Ft : Ft - I;
2396
+ L === 0 && (re = at - z / 2), R === 0 && (Gt = Z - I / 2);
2397
+ const pe = p.el.getBoundingClientRect();
2398
+ if (re -= pe.left, Gt -= pe.top, p.inner.style.width = z.toFixed(1) + "px", p.inner.style.height = I.toFixed(1) + "px", p.inner.style.borderRadius = A.toFixed(1) + "px", p.inner.style.left = re.toFixed(1) + "px", p.inner.style.top = Gt.toFixed(1) + "px", p.span.style.fontSize = "0.9rem", p.span.textContent = p.cfg.placeholder, D.el.style.left = D.x.toFixed(1) + "px", D.el.style.top = D.y.toFixed(1) + "px", p.dragLine) {
2399
+ const Li = D.x - Tt, zi = D.y - Ft, en = Math.hypot(Li, zi), rn = Math.atan2(zi, Li);
2400
+ p.dragLine.style.left = Tt + "px", p.dragLine.style.top = Ft + "px", p.dragLine.style.width = en.toFixed(1) + "px", p.dragLine.style.transform = `rotate(${rn}rad)`, p.dragLine.style.opacity = "1";
2401
+ }
2402
+ p.stretch >= p.maxStretch - 0.5 && U(p);
2403
+ }
2404
+ if (q++, q >= 30) {
2405
+ q = 0;
2406
+ for (const p of m) {
2407
+ if (p.state !== 3) continue;
2408
+ const D = S(p), O = p.inner.getBoundingClientRect();
2409
+ if (Math.abs(O.left - D.left) + Math.abs(O.top - D.top) + Math.abs(O.width - p.cfg.finalW) + Math.abs(O.height - p.cfg.finalH) > 4) {
2410
+ const I = p.el.getBoundingClientRect();
2411
+ p.inner.style.left = D.left - I.left + "px", p.inner.style.top = D.top - I.top + "px", p.inner.style.width = p.cfg.finalW + "px", p.inner.style.height = p.cfg.finalH + "px", p.inner.style.borderRadius = p.cfg.finalR + "px";
2412
+ }
2413
+ }
2414
+ }
2415
+ y = requestAnimationFrame(ot);
2416
+ }
2417
+ function Rt() {
2418
+ if (typeof IntersectionObserver > "u") {
2419
+ m.forEach(E);
2420
+ return;
2421
+ }
2422
+ x && x.disconnect(), x = new IntersectionObserver((c) => {
2423
+ for (const P of c) {
2424
+ const p = m.find((D) => D.el === P.target);
2425
+ if (p) {
2426
+ if (P.isIntersecting) {
2427
+ E(p);
2428
+ continue;
2429
+ }
2430
+ if (p.state === 1) {
2431
+ const D = P.boundingClientRect;
2432
+ (D.bottom < -r.autoResetDistance || D.top > window.innerHeight + r.autoResetDistance) && H(p);
2433
+ }
2434
+ }
2435
+ }
2436
+ }, { rootMargin: "300px 0px 300px 0px", threshold: 0.01 }), m.forEach((c) => x.observe(c.el));
2437
+ }
2438
+ function zt() {
2439
+ clearTimeout(v), v = setTimeout(() => {
2440
+ V(), m.forEach((c) => {
2441
+ if (c.state === 3) {
2442
+ c.inner.style.width = c.cfg.finalW + "px", c.inner.style.height = c.cfg.finalH + "px", c.inner.style.borderRadius = c.cfg.finalR + "px";
2443
+ const P = S(c), p = c.el.getBoundingClientRect();
2444
+ c.inner.style.left = P.left - p.left + "px", c.inner.style.top = P.top - p.top + "px";
2445
+ }
2446
+ });
2447
+ }, 150);
2448
+ }
2449
+ function Xt() {
2450
+ w.forEach((c) => clearTimeout(c)), w.clear(), b.forEach((c) => {
2451
+ try {
2452
+ c.kill && c.kill();
2453
+ } catch {
2454
+ }
2455
+ }), b.length = 0, m.forEach((c) => {
2456
+ c.dragLine && c.dragLine.remove();
2457
+ }), m = [], x && (x.disconnect(), x = null);
2458
+ }
2459
+ function kt() {
2460
+ Xt(), C(), V(), Rt();
2461
+ }
2462
+ return nn(async () => {
2463
+ Es(), await sn(), C(), V(), Rt(), window.addEventListener("resize", zt), y = requestAnimationFrame(ot), n("ready", { count: m.length });
2464
+ }), on(() => {
2465
+ y && cancelAnimationFrame(y), y = null, window.removeEventListener("resize", zt), clearTimeout(v), w.forEach((c) => clearTimeout(c)), w.clear(), b.forEach((c) => {
2466
+ try {
2467
+ c.kill && c.kill();
2468
+ } catch {
2469
+ }
2470
+ }), b.length = 0, x && (x.disconnect(), x = null), h.forEach((c) => {
2471
+ try {
2472
+ Fe.killTweensOf(c);
2473
+ } catch {
2474
+ }
2475
+ c.el.remove();
2476
+ }), h = [], m.forEach((c) => c.dragLine && c.dragLine.remove()), m = [];
2477
+ }), t({ restart: kt, resetAll: kt }), (c, P) => (Ii(), Bi("div", {
2478
+ ref_key: "rootEl",
2479
+ ref: s,
2480
+ class: "vpb-root",
2481
+ style: Wi(a.value)
2482
+ }, [
2483
+ an("div", {
2484
+ ref_key: "layerEl",
2485
+ ref: o,
2486
+ class: "vpb-pointer-layer",
2487
+ style: Wi(f.value)
2488
+ }, null, 4),
2489
+ ln(c.$slots, "default"),
2490
+ l.hintText ? (Ii(), Bi("div", As, fn(l.hintText), 1)) : un("", !0)
2491
+ ], 4));
2492
+ }
2493
+ };
2494
+ Ne.install = (l) => {
2495
+ l.component("PointerBoxes", Ne), l.component("VuePointerBoxes", Ne);
2496
+ };
2497
+ function Fs(l, t = {}) {
2498
+ const e = typeof l == "string" ? document.querySelector(l) : l;
2499
+ if (!e) throw new Error(`[vue-pointer-boxes] 挂载目标不存在: ${l}`);
2500
+ const i = e.innerHTML, r = t.props || t, n = hn(Ne, r);
2501
+ if (n.mount(e), i && i.trim()) {
2502
+ const s = e.querySelector(".vpb-root");
2503
+ if (s) {
2504
+ const o = document.createElement("div");
2505
+ o.className = "vpb-user-slot", o.innerHTML = i;
2506
+ const a = s.querySelector(".vpb-hint");
2507
+ a ? s.insertBefore(o, a) : s.appendChild(o);
2508
+ }
2509
+ }
2510
+ return n;
2511
+ }
2512
+ export {
2513
+ Ne as PointerBoxes,
2514
+ Ne as default,
2515
+ Fs as mount
2516
+ };