@luna-park/plugin-motion 1.3.0 → 1.4.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.
@@ -95,12 +95,12 @@ var ae = (e) => e.replace(A, "$1-$2").toLowerCase(), I = (e, t) => e.indexOf(t)
95
95
  }
96
96
  return !0;
97
97
  }
98
- }, _e = (e) => R(e) ? parseFloat(e) : e, ve = Math.pow, ye = Math.sqrt, H = Math.sin, be = Math.cos, xe = Math.abs, Se = Math.floor, Ce = Math.asin, we = Math.PI, Te = Math.round, U = (e, t, n) => e < t ? t : e > n ? n : e, W = (e, t) => {
98
+ }, _e = (e) => R(e) ? parseFloat(e) : e, ve = Math.pow, ye = Math.sqrt, H = Math.sin, be = Math.cos, xe = Math.abs, Se = Math.ceil, Ce = Math.floor, we = Math.asin, Te = Math.PI, Ee = Math.round, U = (e, t, n) => e < t ? t : e > n ? n : e, W = (e, t) => {
99
99
  if (t < 0) return e;
100
- if (!t) return Te(e);
100
+ if (!t) return Ee(e);
101
101
  let n = 10 ** t;
102
- return Te(e * n) / n;
103
- }, Ee = (e, t, n) => n === 1 ? t : n === 0 ? e : e + (t - e) * n, De = (e) => e === Infinity ? v : e === -Infinity ? -v : e, Oe = (e) => e <= 1e-11 ? _ : De(W(e, 11)), G = (e) => se(e) ? [...e] : e, ke = (e, t) => {
102
+ return Ee(e * n) / n;
103
+ }, De = (e, t, n) => n === 1 ? t : n === 0 ? e : e + (t - e) * n, Oe = (e) => e === Infinity ? v : e === -Infinity ? -v : e, ke = (e) => e <= 1e-11 ? _ : Oe(W(e, 11)), G = (e) => se(e) ? [...e] : e, Ae = (e, t) => {
104
104
  let n = { ...e };
105
105
  for (let r in t) {
106
106
  let i = e[r];
@@ -113,15 +113,15 @@ var ae = (e) => e.replace(A, "$1-$2").toLowerCase(), I = (e, t) => e.indexOf(t)
113
113
  let e = a[o];
114
114
  t(a), a = e;
115
115
  }
116
- }, Ae = (e, t, n = "_prev", r = "_next") => {
116
+ }, je = (e, t, n = "_prev", r = "_next") => {
117
117
  let i = t[n], a = t[r];
118
118
  i ? i[r] = a : e._head = a, a ? a[n] = i : e._tail = i, t[n] = null, t[r] = null;
119
- }, je = (e, t, n, r = "_prev", i = "_next") => {
119
+ }, Me = (e, t, n, r = "_prev", i = "_next") => {
120
120
  let a = e._tail;
121
121
  for (; a && n && n(a, t);) a = a[r];
122
122
  let o = a ? a[i] : e._head;
123
123
  a ? a[i] = t : e._head = t, o ? o[r] = t : e._tail = t, t[r] = a, t[i] = o;
124
- }, Me = (e, t, n) => {
124
+ }, Ne = (e, t, n) => {
125
125
  let r = e.style.transform;
126
126
  if (r) {
127
127
  let i = e[h], a = 0, o = r.length, s;
@@ -144,7 +144,7 @@ var ae = (e) => e.replace(A, "$1-$2").toLowerCase(), I = (e, t) => e.indexOf(t)
144
144
  if (!B(c)) return n && (n[t] = c), c;
145
145
  }
146
146
  return t === "translate3d" ? "0px, 0px, 0px" : t === "rotate3d" ? "0, 0, 0, 0deg" : I(t, "scale") ? "1" : I(t, "rotate") || I(t, "skew") ? "0deg" : "0px";
147
- }, Ne = (e) => {
147
+ }, Pe = (e) => {
148
148
  let t = "";
149
149
  for (let n = 0, r = S.length; n < r; n++) {
150
150
  let r = S[n], i = e[r];
@@ -170,12 +170,12 @@ var ae = (e) => e.replace(A, "$1-$2").toLowerCase(), I = (e, t) => e.indexOf(t)
170
170
  r === "rotateZ" && e.rotate3d !== void 0 && (t += `rotate3d(${e.rotate3d}) `);
171
171
  }
172
172
  return e.matrix !== void 0 && (t += `matrix(${e.matrix}) `), e.matrix3d !== void 0 && (t += `matrix3d(${e.matrix3d}) `), t;
173
- }, Pe = [];
174
- function Fe(e, t) {
173
+ }, Fe = [];
174
+ function Ie(e, t) {
175
175
  if (!e) return null;
176
- let n = Pe.length;
176
+ let n = Fe.length;
177
177
  outer: for (let r = 0; r < n; r++) {
178
- let n = Pe[r];
178
+ let n = Fe[r];
179
179
  if (n.detect && !n.detect(e)) continue;
180
180
  let i = n.targetAdapters;
181
181
  for (let n = 0, r = i.length; n < r; n++) {
@@ -188,7 +188,7 @@ function Fe(e, t) {
188
188
  }
189
189
  }
190
190
  for (let r = 0; r < n; r++) {
191
- let n = Pe[r];
191
+ let n = Fe[r];
192
192
  if (n.detect && !n.detect(e)) continue;
193
193
  let i = n.propertyResolvers;
194
194
  for (let n = 0, r = i.length; n < r; n++) {
@@ -200,7 +200,7 @@ function Fe(e, t) {
200
200
  }
201
201
  //#endregion
202
202
  //#region node_modules/.pnpm/animejs@4.5.0/node_modules/animejs/dist/modules/core/colors.js
203
- var Ie = (e) => {
203
+ var Le = (e) => {
204
204
  let t = O.exec(e) || ee.exec(e), n = B(t[4]) ? 1 : +t[4];
205
205
  return [
206
206
  +t[1],
@@ -208,7 +208,7 @@ var Ie = (e) => {
208
208
  +t[3],
209
209
  n
210
210
  ];
211
- }, Le = (e) => {
211
+ }, Re = (e) => {
212
212
  let t = e.length, n = t === 4 || t === 5;
213
213
  return [
214
214
  +("0x" + e[1] + e[n ? 1 : 2]),
@@ -216,12 +216,12 @@ var Ie = (e) => {
216
216
  +("0x" + e[n ? 3 : 5] + e[n ? 3 : 6]),
217
217
  t === 5 || t === 9 ? +(("0x" + e[n ? 4 : 7] + e[n ? 4 : 8]) / 255).toFixed(3) : 1
218
218
  ];
219
- }, Re = (e, t, n) => (n < 0 && (n += 1), n > 1 && --n, n < 1 / 6 ? e + (t - e) * 6 * n : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e), ze = (e) => {
219
+ }, ze = (e, t, n) => (n < 0 && (n += 1), n > 1 && --n, n < 1 / 6 ? e + (t - e) * 6 * n : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e), Be = (e) => {
220
220
  let t = k.exec(e) || te.exec(e), n = t[1] / 360, r = t[2] / 100, i = t[3] / 100, a = B(t[4]) ? 1 : +t[4], o, s, c;
221
221
  if (r === 0) o = s = c = i;
222
222
  else {
223
223
  let e = i < .5 ? i * (1 + r) : i + r - i * r, t = 2 * i - e;
224
- o = W(Re(t, e, n + 1 / 3) * 255, 0), s = W(Re(t, e, n) * 255, 0), c = W(Re(t, e, n - 1 / 3) * 255, 0);
224
+ o = W(ze(t, e, n + 1 / 3) * 255, 0), s = W(ze(t, e, n) * 255, 0), c = W(ze(t, e, n - 1 / 3) * 255, 0);
225
225
  }
226
226
  return [
227
227
  o,
@@ -229,12 +229,12 @@ var Ie = (e) => {
229
229
  c,
230
230
  a
231
231
  ];
232
- }, Be = (e) => fe(e) ? Ie(e) : de(e) ? Le(e) : pe(e) ? ze(e) : [
232
+ }, Ve = (e) => fe(e) ? Le(e) : de(e) ? Re(e) : pe(e) ? Be(e) : [
233
233
  0,
234
234
  0,
235
235
  0,
236
236
  1
237
- ], q = (e, t) => B(e) ? t : e, Ve = (e, t) => {
237
+ ], q = (e, t) => B(e) ? t : e, He = (e, t) => {
238
238
  let n = e.match(M), r = t[p] ? t : document.documentElement, i = getComputedStyle(r)?.getPropertyValue(n[1]);
239
239
  return (!i || i.trim() === "") && n[2] && (i = n[2].trim()), i || 0;
240
240
  }, J = (e, t, n, r, i, a) => {
@@ -250,18 +250,18 @@ var Ie = (e) => {
250
250
  return i.func = o, o();
251
251
  }
252
252
  if (R(e) && I(e, "var(")) {
253
- if (!i) return Ve(e, t);
254
- let n = () => Ve(e, t);
253
+ if (!i) return He(e, t);
254
+ let n = () => He(e, t);
255
255
  return i.func = n, n();
256
256
  }
257
257
  return e;
258
- }, He = (e, t) => e[p] ? e[m] && ge(e, t) ? c.ATTRIBUTE : S.includes(t) || x.get(t) ? c.TRANSFORM : I(t, "--") ? c.CSS_VAR : t in e.style ? c.CSS : t in e ? c.OBJECT : c.ATTRIBUTE : c.OBJECT, Ue = (e, t, n) => {
258
+ }, Ue = (e, t) => e[p] ? e[m] && ge(e, t) ? c.ATTRIBUTE : S.includes(t) || x.get(t) ? c.TRANSFORM : I(t, "--") ? c.CSS_VAR : t in e.style ? c.CSS : t in e ? c.OBJECT : c.ATTRIBUTE : c.OBJECT, We = (e, t, n) => {
259
259
  let r = e.style[t];
260
260
  r && n && (n[t] = r);
261
261
  let i = r || getComputedStyle(e[g] || e).getPropertyValue(t);
262
262
  return i === "auto" ? "0" : i;
263
- }, We = (e, t, n, r) => {
264
- let i = B(n) ? He(e, t) : n, a = Fe(e, t);
263
+ }, Ge = (e, t, n, r) => {
264
+ let i = B(n) ? Ue(e, t) : n, a = Ie(e, t);
265
265
  if (a) {
266
266
  let n = a.get(e);
267
267
  return n && r && (r[t] = n), n ?? 0;
@@ -274,8 +274,8 @@ var Ie = (e) => {
274
274
  let n = e.getAttribute(t);
275
275
  return n && r && (r[t] = n), n;
276
276
  }
277
- return i === c.TRANSFORM ? Me(e, t, r) : i === c.CSS_VAR ? Ue(e, t, r).trimStart() : Ue(e, t, r);
278
- }, Ge = (e, t, n) => n === "-" ? e - t : n === "+" ? e + t : e * t, Ke = () => ({
277
+ return i === c.TRANSFORM ? Ne(e, t, r) : i === c.CSS_VAR ? We(e, t, r).trimStart() : We(e, t, r);
278
+ }, Ke = (e, t, n) => n === "-" ? e - t : n === "+" ? e + t : e * t, qe = () => ({
279
279
  t: l.NUMBER,
280
280
  n: 0,
281
281
  u: null,
@@ -291,19 +291,19 @@ var Ie = (e) => {
291
291
  let i = !r.includes(" ") && re.exec(r);
292
292
  if (i) return t.t = l.UNIT, t.n = +i[1], t.u = i[2], t;
293
293
  if (t.o) return t.n = +r, t;
294
- if (V(r)) return t.t = l.COLOR, t.d = Be(r), t;
294
+ if (V(r)) return t.t = l.COLOR, t.d = Ve(r), t;
295
295
  {
296
296
  let e = r.match(ne);
297
297
  return t.t = l.COMPLEX, t.d = e ? e.map(Number) : [], t.s = r.split(ne) || [], t;
298
298
  }
299
- }, qe = (e, t) => (t.t = e._valueType, t.n = e._toNumber, t.u = e._unit, t.o = null, t.d = G(e._toNumbers), t.s = G(e._strings), t), X = Ke(), Je = (e, t, n) => {
299
+ }, Je = (e, t) => (t.t = e._valueType, t.n = e._toNumber, t.u = e._unit, t.o = null, t.d = G(e._toNumbers), t.s = G(e._strings), t), X = qe(), Ye = (e, t, n) => {
300
300
  let r = e._modifier, i = e._fromNumbers, a = e._toNumbers, o = e._strings, s = o[0];
301
301
  for (let c = 0, l = a.length; c < l; c++) {
302
- let l = r(W(Ee(i[c], a[c], t), n)), u = o[c + 1];
302
+ let l = r(W(De(i[c], a[c], t), n)), u = o[c + 1];
303
303
  s += `${u ? l + u : l}`, e._numbers[c] = l;
304
304
  }
305
305
  return s;
306
- }, Ye = (e, t, n, r, i) => {
306
+ }, Xe = (e, t, n, r, i) => {
307
307
  let a = e.parent, o = e.duration, s = e.completed, f = e.iterationDuration, p = e.iterationCount, m = e._currentIteration, g = e._loopDelay, v = e._reversed, y = e._alternate, b = e._hasChildren, x = e._delay, S = e._currentTime, C = x + f, w = t - x, T = U(S, -x, o), E = U(w, -x, o), D = w - S, O = E > 0, ee = E >= o, k = o <= _, te = i === u.FORCE, ne = 0, re = w, A = 0;
308
308
  if (p > 1) {
309
309
  let t = f + (ee ? 0 : g), n = ~~(E / t);
@@ -319,32 +319,32 @@ var Ie = (e) => {
319
319
  let e = o._composition, n = o._currentTime, a = o._changeDuration, g = o._absoluteStartTime + o._changeDuration, _ = o._nextRep, v = o._prevRep, y = e !== d.none, b = v ? v._absoluteStartTime + v._changeDuration : 0, x = v && v.parent !== o.parent, S = !_ || _._isOverridden ? g : _.parent === o.parent ? g + _._delay : _._absoluteStartTime < _._absoluteUpdateStartTime ? _._absoluteStartTime : _._absoluteUpdateStartTime;
320
320
  if ((t || (n !== a || i <= S || v && !x && (!_ || _.parent !== o.parent)) && (n !== 0 || i >= o._absoluteStartTime || x && !o._hasFromValue && !v._isOverridden && i >= b || _ && !_._isOverridden && _.parent === o.parent && _._currentTime !== 0 && N < _._startTime)) && (!v || x || N >= o._startTime) && (!y || !o._isOverridden && (!o._isOverlapped || i <= g) && (!_ || _._isOverridden || i <= S) && (!v || v._isOverridden || (x ? i >= o._absoluteStartTime || !o._hasFromValue && i >= b : i >= b + o._delay)))) {
321
321
  let t = o._currentTime = U(N - o._startTime, 0, a), n = o._ease(t / o._updateDuration), i = o._modifier, g = o._valueType, _ = o._tweenType, v = _ === c.OBJECT, b = g === l.NUMBER, x = b && v || n === 0 || n === 1 ? -1 : F.precision, S, C;
322
- if (b) S = C = i(W(Ee(o._fromNumber, o._toNumber, n), x));
323
- else if (g === l.UNIT) C = i(W(Ee(o._fromNumber, o._toNumber, n), x)), S = `${C}${o._unit}`;
322
+ if (b) S = C = i(W(De(o._fromNumber, o._toNumber, n), x));
323
+ else if (g === l.UNIT) C = i(W(De(o._fromNumber, o._toNumber, n), x)), S = `${C}${o._unit}`;
324
324
  else if (g === l.COLOR) {
325
325
  let e = o._numbers, t = o._fromNumbers, a = o._toNumbers, s = 1 - n, c = t[0], l = t[1], u = t[2], d = a[0], f = a[1], p = a[2];
326
- e[0] = i(Math.sqrt(c * c * s + d * d * n)), e[1] = i(Math.sqrt(l * l * s + f * f * n)), e[2] = i(Math.sqrt(u * u * s + p * p * n)), e[3] = i(Ee(t[3], a[3], n)), (!o._setter || r) && (S = `rgba(${W(e[0], 0)},${W(e[1], 0)},${W(e[2], 0)},${e[3]})`);
327
- } else g === l.COMPLEX && (S = Je(o, n, x));
326
+ e[0] = i(Math.sqrt(c * c * s + d * d * n)), e[1] = i(Math.sqrt(l * l * s + f * f * n)), e[2] = i(Math.sqrt(u * u * s + p * p * n)), e[3] = i(De(t[3], a[3], n)), (!o._setter || r) && (S = `rgba(${W(e[0], 0)},${W(e[1], 0)},${W(e[2], 0)},${e[3]})`);
327
+ } else g === l.COMPLEX && (S = Ye(o, n, x));
328
328
  if (y && (o._number = C), !r && e !== d.blend) {
329
329
  let e = o.property;
330
330
  s = o.target, o._setter ? o._setter(s, C, o) : v ? s[e] = S : _ === c.ATTRIBUTE ? s.setAttribute(e, S) : (u = s.style, _ === c.TRANSFORM ? (s !== f && (f = s, p = s[h]), p[e] = S, m = 1) : _ === c.CSS ? u[e] = S : _ === c.CSS_VAR && u.setProperty(e, S)), O && (A = 1);
331
331
  } else o._value = S;
332
332
  } else n && v && !x && N < o._startTime && (o._currentTime = 0);
333
- m && o._renderTransforms && (u.transform = Ne(p), m = 0), o = o._next;
333
+ m && o._renderTransforms && (u.transform = Pe(p), m = 0), o = o._next;
334
334
  }
335
335
  !n && A && e.onRender(e);
336
336
  }
337
337
  !n && O && e.onUpdate(e);
338
338
  }
339
339
  return a && k ? !n && (a.began && !P && w > 0 && !s || P && w <= 1e-11 && s) && (e.onComplete(e), e.completed = !P) : O && ee ? p === Infinity ? e._startTime += e.duration : e._currentIteration >= p - 1 && (e.paused = !0, !s && !b && (e.completed = !0, !n && (!a || !P && a.began) && (e.onComplete(e), e._resolve(e)))) : e.completed = !1, A;
340
- }, Xe = (e, t, n, r, i) => {
340
+ }, Ze = (e, t, n, r, i) => {
341
341
  let a = e._currentIteration;
342
- if (Ye(e, t, n, r, i), e._hasChildren) {
342
+ if (Xe(e, t, n, r, i), e._hasChildren) {
343
343
  let o = e, s = o.backwards, c = r ? t : o._iterationTime, l = oe(), d = 0, f = !0;
344
344
  if (!r && o._currentIteration !== a) {
345
345
  let e = o.iterationDuration;
346
346
  K(o, (t) => {
347
- if (!s) !t.completed && !t.backwards && t._currentTime < t.iterationDuration && Ye(t, e, n, 1, u.FORCE), t.began = !1, t.completed = !1;
347
+ if (!s) !t.completed && !t.backwards && t._currentTime < t.iterationDuration && Xe(t, e, n, 1, u.FORCE), t.began = !1, t.completed = !1;
348
348
  else {
349
349
  let r = t.duration, i = t._offset + t._delay, a = i + r;
350
350
  !n && r <= 1e-11 && (!i || a === e) && t.onComplete(t);
@@ -355,22 +355,22 @@ var Ie = (e) => {
355
355
  let t = W((c - e._offset) * e._speed, 12);
356
356
  if (s && t > e._delay + e.duration) return;
357
357
  let a = e._fps < o._fps ? e.requestTick(l) : i;
358
- d += Ye(e, t, n, r, a), !e.completed && f && (f = !1);
358
+ d += Xe(e, t, n, r, a), !e.completed && f && (f = !1);
359
359
  }, s), !n && d && o.onRender(o), (f || s) && o._currentTime >= o.duration && (o.paused = !0, o.completed || (o.completed = !0, n || (o.onComplete(o), o._resolve(o))));
360
360
  }
361
- }, Ze = {}, Qe = (e, t, n) => {
361
+ }, Qe = {}, $e = (e, t, n) => {
362
362
  if (n === c.TRANSFORM) return x.get(e) || e;
363
363
  if (n === c.CSS || n === c.ATTRIBUTE && ue(t) && e in t.style) {
364
- let t = Ze[e];
364
+ let t = Qe[e];
365
365
  if (t) return t;
366
366
  {
367
367
  let t = e && ae(e);
368
- return Ze[e] = t, t;
368
+ return Qe[e] = t, t;
369
369
  }
370
370
  }
371
371
  return e;
372
- }, $e = (e, t = !1) => {
373
- if (e._hasChildren) K(e, (e) => $e(e, t), !0);
372
+ }, et = (e, t = !1) => {
373
+ if (e._hasChildren) K(e, (e) => et(e, t), !0);
374
374
  else {
375
375
  let n = e;
376
376
  n.pause(), K(n, (e) => {
@@ -390,7 +390,7 @@ var Ie = (e) => {
390
390
  let t = i.style;
391
391
  if (a === c.TRANSFORM) {
392
392
  let n = i[h];
393
- s ? delete n[r] : n[r] = o, e._renderTransforms && (Object.keys(n).length ? t.transform = Ne(n) : t.removeProperty("transform"));
393
+ s ? delete n[r] : n[r] = o, e._renderTransforms && (Object.keys(n).length ? t.transform = Pe(n) : t.removeProperty("transform"));
394
394
  } else s ? t.removeProperty(ae(r)) : t[r] = o;
395
395
  }
396
396
  }
@@ -400,7 +400,7 @@ var Ie = (e) => {
400
400
  });
401
401
  }
402
402
  return e;
403
- }, et = class {
403
+ }, tt = class {
404
404
  constructor(e = 0) {
405
405
  this.deltaTime = 0, this._currentTime = e, this._lastTickTime = e, this._startTime = e, this._lastTime = e, this._frameDuration = y / 240, this._fps = 240, this._speed = 1, this._hasChildren = !1, this._head = null, this._tail = null;
406
406
  }
@@ -426,11 +426,11 @@ var Ie = (e) => {
426
426
  let t = e - this._lastTime;
427
427
  return this.deltaTime = t, this._lastTime = e, t;
428
428
  }
429
- }, tt = {
429
+ }, nt = {
430
430
  animation: null,
431
431
  update: w
432
- }, nt = (e) => {
433
- let t = tt.animation;
432
+ }, rt = (e) => {
433
+ let t = nt.animation;
434
434
  return t || (t = {
435
435
  duration: _,
436
436
  computeDeltaTime: w,
@@ -438,7 +438,7 @@ var Ie = (e) => {
438
438
  _delay: 0,
439
439
  _head: null,
440
440
  _tail: null
441
- }, tt.animation = t, tt.update = () => {
441
+ }, nt.animation = t, nt.update = () => {
442
442
  e.forEach((e) => {
443
443
  for (let t in e) {
444
444
  let n = e[t], r = n._head;
@@ -452,9 +452,9 @@ var Ie = (e) => {
452
452
  r._toNumber = i, r._toNumbers = t;
453
453
  }
454
454
  }
455
- }), Ye(t, 1, 1, 0, u.FORCE);
455
+ }), Xe(t, 1, 1, 0, u.FORCE);
456
456
  }), t;
457
- }, rt = a ? requestAnimationFrame : setImmediate, it = a ? cancelAnimationFrame : clearImmediate, at = class extends et {
457
+ }, it = a ? requestAnimationFrame : setImmediate, at = a ? cancelAnimationFrame : clearImmediate, ot = class extends tt {
458
458
  constructor(e) {
459
459
  super(e), this.useDefaultMainLoop = !0, this.pauseOnDocumentHidden = !0, this.defaults = N, this.paused = !0, this.reqId = 0;
460
460
  }
@@ -465,16 +465,16 @@ var Ie = (e) => {
465
465
  let t = this._speed, n = this._fps, r = this._head;
466
466
  for (; r;) {
467
467
  let i = r._next;
468
- r.paused ? (Ae(this, r), this._hasChildren = !!this._tail, r._running = !1, r.completed && !r._cancelled && r.cancel()) : Xe(r, (e - r._startTime) * r._speed * t, 0, 0, r._fps < n ? r.requestTick(e) : u.AUTO), r = i;
468
+ r.paused ? (je(this, r), this._hasChildren = !!this._tail, r._running = !1, r.completed && !r._cancelled && r.cancel()) : Ze(r, (e - r._startTime) * r._speed * t, 0, 0, r._fps < n ? r.requestTick(e) : u.AUTO), r = i;
469
469
  }
470
- tt.update();
470
+ nt.update();
471
471
  }
472
472
  }
473
473
  wake() {
474
- return this.useDefaultMainLoop && !this.reqId && (this.requestTick(oe()), this.reqId = rt(ot)), this;
474
+ return this.useDefaultMainLoop && !this.reqId && (this.requestTick(oe()), this.reqId = it(st)), this;
475
475
  }
476
476
  pause() {
477
- if (this.reqId) return this.paused = !0, st();
477
+ if (this.reqId) return this.paused = !0, ct();
478
478
  }
479
479
  resume() {
480
480
  if (this.paused) return this.paused = !1, K(this, (e) => e.resetTime()), this.wake();
@@ -504,40 +504,40 @@ var Ie = (e) => {
504
504
  F.precision = e;
505
505
  }
506
506
  }, Z = /*#__PURE__*/ (() => {
507
- let e = new at(oe());
507
+ let e = new ot(oe());
508
508
  return a && (ie.engine = e, s.addEventListener("visibilitychange", () => {
509
509
  e.pauseOnDocumentHidden && (s.hidden ? e.pause() : e.resume());
510
510
  })), e;
511
- })(), ot = () => {
512
- Z._head ? (Z.reqId = rt(ot), Z.update()) : Z.reqId = 0;
513
- }, st = () => (it(Z.reqId), Z.reqId = 0, Z), ct = {
511
+ })(), st = () => {
512
+ Z._head ? (Z.reqId = it(st), Z.update()) : Z.reqId = 0;
513
+ }, ct = () => (at(Z.reqId), Z.reqId = 0, Z), lt = {
514
514
  _rep: /* @__PURE__ */ new WeakMap(),
515
515
  _add: /* @__PURE__ */ new Map()
516
- }, lt = (e, t, n = "_rep") => {
517
- let r = ct[n], i = r.get(e);
516
+ }, ut = (e, t, n = "_rep") => {
517
+ let r = lt[n], i = r.get(e);
518
518
  return i || (i = {}, r.set(e, i)), i[t] ? i[t] : i[t] = {
519
519
  _head: null,
520
520
  _tail: null
521
521
  };
522
- }, ut = (e, t) => e._isOverridden || e._absoluteStartTime > t._absoluteStartTime, dt = (e) => {
522
+ }, dt = (e, t) => e._isOverridden || e._absoluteStartTime > t._absoluteStartTime, ft = (e) => {
523
523
  e._isOverlapped = 1, e._isOverridden = 1, e._changeDuration = _, e._currentTime = _;
524
- }, ft = (e, t) => {
524
+ }, pt = (e, t) => {
525
525
  let n = e._composition;
526
526
  if (n === d.replace) {
527
527
  let n = e._absoluteStartTime;
528
- je(t, e, ut, "_prevRep", "_nextRep");
528
+ Me(t, e, dt, "_prevRep", "_nextRep");
529
529
  let r = e._prevRep;
530
530
  if (r) {
531
531
  let t = r.parent, i = r._absoluteEndTime;
532
532
  if (e.parent.id !== t.id && t.iterationCount > 1 && i + (t.duration - t.iterationDuration) > n) {
533
- dt(r);
533
+ ft(r);
534
534
  let e = r._prevRep;
535
- for (; e && e.parent.id === t.id;) dt(e), e = e._prevRep;
535
+ for (; e && e.parent.id === t.id;) ft(e), e = e._prevRep;
536
536
  }
537
537
  let a = e._absoluteUpdateStartTime;
538
538
  if (i > a) {
539
539
  let e = r._startTime, t = W(a - (i - (e + r._updateDuration)) - e, 12);
540
- r._changeDuration = t, r._currentTime = t, r._isOverlapped = 1, t < 1e-11 && dt(r);
540
+ r._changeDuration = t, r._currentTime = t, r._isOverlapped = 1, t < 1e-11 && ft(r);
541
541
  }
542
542
  let o = e.parent.parent;
543
543
  if (!o || o !== t.parent) {
@@ -558,8 +558,8 @@ var Ie = (e) => {
558
558
  }
559
559
  }
560
560
  } else if (n === d.blend) {
561
- let t = lt(e.target, e.property, "_add"), n = nt(ct._add), r = t._head;
562
- r || (r = { ...e }, r._composition = d.replace, r._updateDuration = _, r._startTime = 0, r._numbers = G(e._fromNumbers), r._number = 0, r._next = null, r._prev = null, je(t, r), je(n, r));
561
+ let t = ut(e.target, e.property, "_add"), n = rt(lt._add), r = t._head;
562
+ r || (r = { ...e }, r._composition = d.replace, r._updateDuration = _, r._startTime = 0, r._numbers = G(e._fromNumbers), r._number = 0, r._next = null, r._prev = null, Me(t, r), Me(n, r));
563
563
  let i = e._toNumber;
564
564
  if (e._fromNumber = r._fromNumber - i, e._toNumber = 0, e._numbers = G(e._fromNumbers), e._number = 0, r._fromNumber = i, e._toNumbers.length) {
565
565
  let t = G(e._toNumbers);
@@ -567,21 +567,21 @@ var Ie = (e) => {
567
567
  e._fromNumbers[n] = r._fromNumbers[n] - t, e._toNumbers[n] = 0;
568
568
  }), r._fromNumbers = t;
569
569
  }
570
- je(t, e, null, "_prevAdd", "_nextAdd");
570
+ Me(t, e, null, "_prevAdd", "_nextAdd");
571
571
  }
572
572
  return e;
573
- }, pt = (e) => {
573
+ }, mt = (e) => {
574
574
  let t = e._composition;
575
575
  if (t !== d.none) {
576
- let n = e.target, r = e.property, i = ct._rep.get(n)[r];
577
- if (Ae(i, e, "_prevRep", "_nextRep"), t === d.blend) {
578
- let t = ct._add, i = t.get(n);
576
+ let n = e.target, r = e.property, i = lt._rep.get(n)[r];
577
+ if (je(i, e, "_prevRep", "_nextRep"), t === d.blend) {
578
+ let t = lt._add, i = t.get(n);
579
579
  if (!i) return;
580
- let a = i[r], o = tt.animation;
581
- Ae(a, e, "_prevAdd", "_nextAdd");
580
+ let a = i[r], o = nt.animation;
581
+ je(a, e, "_prevAdd", "_nextAdd");
582
582
  let s = a._head;
583
583
  if (s && s === a._tail) {
584
- Ae(a, s, "_prevAdd", "_nextAdd"), Ae(o, s);
584
+ je(a, s, "_prevAdd", "_nextAdd"), je(o, s);
585
585
  let e = !0;
586
586
  for (let t in i) if (i[t]._head) {
587
587
  e = !1;
@@ -592,15 +592,15 @@ var Ie = (e) => {
592
592
  }
593
593
  }
594
594
  return e;
595
- }, mt = (e) => (e.paused = !0, e.began = !1, e.completed = !1, e), ht = (e) => e._cancelled ? (e._hasChildren ? K(e, ht) : K(e, (e) => {
596
- e._composition !== d.none && ft(e, lt(e.target, e.property));
597
- }), e._cancelled = 0, e) : e, gt = 0, _t = (e, t) => e._priority > t._priority, vt = class extends et {
595
+ }, ht = (e) => (e.paused = !0, e.began = !1, e.completed = !1, e), gt = (e) => e._cancelled ? (e._hasChildren ? K(e, gt) : K(e, (e) => {
596
+ e._composition !== d.none && pt(e, ut(e.target, e.property));
597
+ }), e._cancelled = 0, e) : e, _t = 0, vt = (e, t) => e._priority > t._priority, yt = class extends tt {
598
598
  constructor(e = {}, t = null, n = 0) {
599
- super(0), ++gt;
599
+ super(0), ++_t;
600
600
  let { id: r, delay: i, duration: a, reversed: o, alternate: s, loop: c, loopDelay: l, autoplay: u, frameRate: d, playbackRate: f, priority: p, onComplete: m, onLoop: h, onPause: g, onBegin: _, onBeforeUpdate: v, onUpdate: y } = e;
601
601
  P.current && P.current.register(this);
602
602
  let b = t ? 0 : Z._lastTickTime, x = t ? t.defaults : F.defaults, S = z(i) || B(i) ? x.delay : +i, C = z(a) || B(a) ? Infinity : +a, T = q(c, x.loop), E = q(l, x.loopDelay), D = T === !0 || T === Infinity || T < 0 ? Infinity : T + 1, O = 0;
603
- t ? O = n : (Z.reqId || Z.requestTick(oe()), O = (Z._lastTickTime - Z._startTime) * F.timeScale), this.id = B(r) ? gt : r, this.parent = t, this.duration = De((C + E) * D - E) || 1e-11, this.backwards = !1, this.paused = !0, this.began = !1, this.completed = !1, this.onBegin = _ || x.onBegin, this.onBeforeUpdate = v || x.onBeforeUpdate, this.onUpdate = y || x.onUpdate, this.onLoop = h || x.onLoop, this.onPause = g || x.onPause, this.onComplete = m || x.onComplete, this.iterationDuration = C, this.iterationCount = D, this._autoplay = !t && q(u, x.autoplay), this._offset = O, this._delay = S, this._loopDelay = E, this._iterationTime = 0, this._currentIteration = 0, this._resolve = w, this._running = !1, this._reversed = +q(o, x.reversed), this._reverse = this._reversed, this._cancelled = 0, this._alternate = q(s, x.alternate), this._prev = null, this._next = null, this._lastTickTime = b, this._startTime = b, this._lastTime = b, this._fps = q(d, x.frameRate), this._speed = q(f, x.playbackRate), this._priority = +q(p, 1);
603
+ t ? O = n : (Z.reqId || Z.requestTick(oe()), O = (Z._lastTickTime - Z._startTime) * F.timeScale), this.id = B(r) ? _t : r, this.parent = t, this.duration = Oe((C + E) * D - E) || 1e-11, this.backwards = !1, this.paused = !0, this.began = !1, this.completed = !1, this.onBegin = _ || x.onBegin, this.onBeforeUpdate = v || x.onBeforeUpdate, this.onUpdate = y || x.onUpdate, this.onLoop = h || x.onLoop, this.onPause = g || x.onPause, this.onComplete = m || x.onComplete, this.iterationDuration = C, this.iterationCount = D, this._autoplay = !t && q(u, x.autoplay), this._offset = O, this._delay = S, this._loopDelay = E, this._iterationTime = 0, this._currentIteration = 0, this._resolve = w, this._running = !1, this._reversed = +q(o, x.reversed), this._reverse = this._reversed, this._cancelled = 0, this._alternate = q(s, x.alternate), this._prev = null, this._next = null, this._lastTickTime = b, this._startTime = b, this._lastTime = b, this._fps = q(d, x.frameRate), this._speed = q(f, x.playbackRate), this._priority = +q(p, 1);
604
604
  }
605
605
  get cancelled() {
606
606
  return !!this._cancelled;
@@ -653,10 +653,10 @@ var Ie = (e) => {
653
653
  super.speed = e, this.resetTime();
654
654
  }
655
655
  reset(e = !1) {
656
- return ht(this), this._reversed && !this._reverse && (this.reversed = !1), this._iterationTime = this.iterationDuration, Xe(this, 0, 1, ~~e, u.FORCE), mt(this), this._hasChildren && K(this, mt), this;
656
+ return gt(this), this._reversed && !this._reverse && (this.reversed = !1), this._iterationTime = this.iterationDuration, Ze(this, 0, 1, ~~e, u.FORCE), ht(this), this._hasChildren && K(this, ht), this;
657
657
  }
658
658
  init(e = !1) {
659
- this.fps = this._fps, this.speed = this._speed, !e && this._hasChildren && Xe(this, this.duration, 1, ~~e, u.FORCE), this.reset(e);
659
+ this.fps = this._fps, this.speed = this._speed, !e && this._hasChildren && Ze(this, this.duration, 1, ~~e, u.FORCE), this.reset(e);
660
660
  let t = this._autoplay;
661
661
  return t === !0 ? this.resume() : t && !B(t.linked) && t.link(this), this;
662
662
  }
@@ -668,18 +668,18 @@ var Ie = (e) => {
668
668
  return this.paused ? this : (this.paused = !0, this.onPause(this), this);
669
669
  }
670
670
  resume() {
671
- return this.paused ? (this.paused = !1, this.duration <= 1e-11 && !this._hasChildren ? Xe(this, _, 0, 0, u.FORCE) : (this._running ||= (je(Z, this, _t), Z._hasChildren = !0, !0), this.resetTime(), this._startTime -= 12, Z.wake()), this) : this;
671
+ return this.paused ? (this.paused = !1, this.duration <= 1e-11 && !this._hasChildren ? Ze(this, _, 0, 0, u.FORCE) : (this._running ||= (Me(Z, this, vt), Z._hasChildren = !0, !0), this.resetTime(), this._startTime -= 12, Z.wake()), this) : this;
672
672
  }
673
673
  restart() {
674
674
  return this.reset().resume();
675
675
  }
676
676
  seek(e, t = 0, n = 0) {
677
- ht(this), this.completed = !1;
677
+ gt(this), this.completed = !1;
678
678
  let r = this.paused;
679
- return this.paused = !0, Xe(this, e + this._delay, ~~t, ~~n, u.AUTO), r ? this : this.resume();
679
+ return this.paused = !0, Ze(this, e + this._delay, ~~t, ~~n, u.AUTO), r ? this : this.resume();
680
680
  }
681
681
  alternate() {
682
- let e = this._reversed, t = this.iterationCount, n = this.iterationDuration, r = t === Infinity ? Se(v / n) : t;
682
+ let e = this._reversed, t = this.iterationCount, n = this.iterationDuration, r = t === Infinity ? Ce(v / n) : t;
683
683
  return this._reversed = +(this._alternate && !(r % 2) ? e : !e), t === Infinity ? this.iterationProgress = this._reversed ? 1 - this.iterationProgress : this.iterationProgress : this.seek(n * r - this._currentTime), this.resetTime(), this;
684
684
  }
685
685
  play() {
@@ -689,16 +689,16 @@ var Ie = (e) => {
689
689
  return this._reversed || this.alternate(), this.resume();
690
690
  }
691
691
  cancel() {
692
- return this._hasChildren ? K(this, (e) => e.cancel(), !0) : K(this, pt), this._cancelled = 1, this.pause();
692
+ return this._hasChildren ? K(this, (e) => e.cancel(), !0) : K(this, mt), this._cancelled = 1, this.pause();
693
693
  }
694
694
  stretch(e) {
695
- let t = this.duration, n = Oe(e);
695
+ let t = this.duration, n = ke(e);
696
696
  if (t === n) return this;
697
697
  let r = e / t, i = e <= _;
698
- return this.duration = i ? _ : n, this.iterationDuration = i ? _ : Oe(this.iterationDuration * r), this._offset *= r, this._delay *= r, this._loopDelay *= r, this;
698
+ return this.duration = i ? _ : n, this.iterationDuration = i ? _ : ke(this.iterationDuration * r), this._offset *= r, this._delay *= r, this._loopDelay *= r, this;
699
699
  }
700
700
  revert() {
701
- Xe(this, 0, 1, 0, u.AUTO);
701
+ Ze(this, 0, 1, 0, u.AUTO);
702
702
  let e = this._autoplay;
703
703
  return e && e.linked && e.linked === this && e.revert(), this.cancel();
704
704
  }
@@ -714,11 +714,11 @@ var Ie = (e) => {
714
714
  };
715
715
  //#endregion
716
716
  //#region node_modules/.pnpm/animejs@4.5.0/node_modules/animejs/dist/modules/core/targets.js
717
- function yt(e) {
717
+ function bt(e) {
718
718
  let t = R(e) ? P.root.querySelectorAll(e) : e;
719
719
  if (t instanceof NodeList || t instanceof HTMLCollection) return t;
720
720
  }
721
- function bt(e) {
721
+ function xt(e) {
722
722
  if (le(e)) return [];
723
723
  if (!a) return se(e) && e.flat(Infinity) || [e];
724
724
  if (se(e)) {
@@ -726,7 +726,7 @@ function bt(e) {
726
726
  for (let e = 0, r = t.length; e < r; e++) {
727
727
  let r = t[e];
728
728
  if (!le(r)) {
729
- let e = yt(r);
729
+ let e = bt(r);
730
730
  if (e) for (let t = 0, r = e.length; t < r; t++) {
731
731
  let r = e[t];
732
732
  if (!le(r)) {
@@ -750,11 +750,11 @@ function bt(e) {
750
750
  }
751
751
  return n;
752
752
  }
753
- let t = yt(e);
753
+ let t = bt(e);
754
754
  return t ? Array.from(t) : [e];
755
755
  }
756
- function xt(e) {
757
- let t = bt(e), n = t.length;
756
+ function St(e) {
757
+ let t = xt(e), n = t.length;
758
758
  for (let e = 0; e < n; e++) {
759
759
  let n = t[e];
760
760
  if (!n[f]) {
@@ -767,18 +767,18 @@ function xt(e) {
767
767
  }
768
768
  //#endregion
769
769
  //#region node_modules/.pnpm/animejs@4.5.0/node_modules/animejs/dist/modules/core/units.js
770
- var St = {
770
+ var Ct = {
771
771
  deg: 1,
772
- rad: 180 / we,
772
+ rad: 180 / Te,
773
773
  turn: 360
774
- }, Ct = {}, wt = (e, t, n, r = !1) => {
774
+ }, wt = {}, Tt = (e, t, n, r = !1) => {
775
775
  let i = t.u, a = t.n;
776
776
  if (t.t === l.UNIT && i === n) return t;
777
- let o = a + i + n, c = Ct[o];
777
+ let o = a + i + n, c = wt[o];
778
778
  if (!B(c) && !r) t.n = c;
779
779
  else {
780
780
  let r;
781
- if (i in St) r = a * St[i] / St[n];
781
+ if (i in Ct) r = a * Ct[i] / Ct[n];
782
782
  else {
783
783
  let t = e.cloneNode(), o = e.parentNode, c = o && o !== s ? o : s.body;
784
784
  c.appendChild(t);
@@ -789,21 +789,21 @@ var St = {
789
789
  let d = u / (t.offsetWidth || 100);
790
790
  c.removeChild(t), r = d * a;
791
791
  }
792
- t.n = r, Ct[o] = r;
792
+ t.n = r, wt[o] = r;
793
793
  }
794
794
  return t.t, l.UNIT, t.u = n, t;
795
- }, Tt = (e) => e, Et = (e = 1.68) => (t) => ve(t, +e), Dt = {
795
+ }, Et = (e) => e, Dt = (e = 1.68) => (t) => ve(t, +e), Ot = {
796
796
  in: (e) => (t) => e(t),
797
797
  out: (e) => (t) => 1 - e(1 - t),
798
798
  inOut: (e) => (t) => t < .5 ? e(t * 2) / 2 : 1 - e(t * -2 + 2) / 2,
799
799
  outIn: (e) => (t) => t < .5 ? (1 - e(1 - t * 2)) / 2 : (e(t * 2 - 1) + 1) / 2
800
- }, Ot = we / 2, kt = we * 2, At = {
801
- "": Et,
802
- Quad: Et(2),
803
- Cubic: Et(3),
804
- Quart: Et(4),
805
- Quint: Et(5),
806
- Sine: (e) => 1 - be(e * Ot),
800
+ }, kt = Te / 2, At = Te * 2, jt = {
801
+ "": Dt,
802
+ Quad: Dt(2),
803
+ Cubic: Dt(3),
804
+ Quart: Dt(4),
805
+ Quint: Dt(5),
806
+ Sine: (e) => 1 - be(e * kt),
807
807
  Circ: (e) => 1 - ye(1 - e * e),
808
808
  Expo: (e) => e ? ve(2, 10 * e - 10) : 0,
809
809
  Bounce: (e) => {
@@ -813,43 +813,43 @@ var St = {
813
813
  },
814
814
  Back: (e = 1.7) => (t) => (+e + 1) * t * t * t - +e * t * t,
815
815
  Elastic: (e = 1, t = .3) => {
816
- let n = U(+e, 1, 10), r = U(+t, _, 2), i = r / kt * Ce(1 / n), a = kt / r;
816
+ let n = U(+e, 1, 10), r = U(+t, _, 2), i = r / At * we(1 / n), a = At / r;
817
817
  return (e) => e === 0 || e === 1 ? e : -n * ve(2, -10 * (1 - e)) * H((1 - e - i) * a);
818
818
  }
819
- }, jt = /*#__PURE__ */ (() => {
819
+ }, Mt = /*#__PURE__ */ (() => {
820
820
  let e = {
821
- linear: Tt,
822
- none: Tt
821
+ linear: Et,
822
+ none: Et
823
823
  };
824
- for (let t in Dt) for (let n in At) {
825
- let r = At[n], i = Dt[t];
824
+ for (let t in Ot) for (let n in jt) {
825
+ let r = jt[n], i = Ot[t];
826
826
  e[t + n] = n === "" || n === "Back" || n === "Elastic" ? (e, t) => i(r(e, t)) : i(r);
827
827
  }
828
828
  return e;
829
- })(), Mt = {
830
- linear: Tt,
831
- none: Tt
832
- }, Nt = (e) => {
833
- if (Mt[e]) return Mt[e];
829
+ })(), Nt = {
830
+ linear: Et,
831
+ none: Et
832
+ }, Pt = (e) => {
833
+ if (Nt[e]) return Nt[e];
834
834
  if (e.indexOf("(") <= -1) {
835
- let t = Dt[e] || e.includes("Back") || e.includes("Elastic") ? jt[e]() : jt[e];
836
- return t ? Mt[e] = t : Tt;
835
+ let t = Ot[e] || e.includes("Back") || e.includes("Elastic") ? Mt[e]() : Mt[e];
836
+ return t ? Nt[e] = t : Et;
837
837
  }
838
838
  {
839
- let t = e.slice(0, -1).split("("), n = jt[t[0]];
840
- return n ? Mt[e] = n(...t[1].split(",")) : Tt;
839
+ let t = e.slice(0, -1).split("("), n = Mt[t[0]];
840
+ return n ? Nt[e] = n(...t[1].split(",")) : Et;
841
841
  }
842
- }, Pt = [
842
+ }, Ft = [
843
843
  "steps(",
844
844
  "irregular(",
845
845
  "linear(",
846
846
  "cubicBezier("
847
- ], Ft = (e) => {
847
+ ], It = (e) => {
848
848
  if (R(e)) {
849
- for (let t = 0, n = Pt.length; t < n; t++) if (I(e, Pt[t])) return console.warn(`String syntax for \`ease: "${e}"\` has been removed from the core and replaced by importing and passing the easing function directly: \`ease: ${e}\``), Tt;
849
+ for (let t = 0, n = Ft.length; t < n; t++) if (I(e, Ft[t])) return console.warn(`String syntax for \`ease: "${e}"\` has been removed from the core and replaced by importing and passing the easing function directly: \`ease: ${e}\``), Et;
850
850
  }
851
- return z(e) ? e : R(e) ? Nt(e) : Tt;
852
- }, Q = Ke(), $ = Ke(), It = {}, Lt = { func: null }, Rt = { func: null }, zt = [null], Bt = [null, null], Vt = { to: null }, Ht = 0, Ut = 0, Wt, Gt, Kt = (e, t) => {
851
+ return z(e) ? e : R(e) ? Pt(e) : Et;
852
+ }, Q = qe(), $ = qe(), Lt = {}, Rt = { func: null }, zt = { func: null }, Bt = [null], Vt = [null, null], Ht = { to: null }, Ut = 0, Wt = 0, Gt, Kt, qt = (e, t) => {
853
853
  let n = {};
854
854
  if (se(e)) {
855
855
  let t = [].concat(...e.map((e) => Object.keys(e))).filter(me);
@@ -890,43 +890,43 @@ var St = {
890
890
  }
891
891
  }
892
892
  return n;
893
- }, qt = class extends vt {
893
+ }, Jt = class extends yt {
894
894
  constructor(e, t, n, r, i = !1, a = 0, o) {
895
- super(t, n, r), this._head, this._tail, ++Ut;
896
- let s = xt(e), u = s.length, f = t.keyframes, p = f ? ke(Kt(f, t), t) : t, { id: m, delay: h, duration: g, ease: v, playbackEase: y, modifier: x, composition: S, onRender: C } = p, w = n ? n.defaults : F.defaults, T = q(v, w.ease), E = q(y, w.playbackEase), D = E ? Ft(E) : null, O = !B(T.ease), ee = O ? T.ease : q(v, D ? "linear" : w.ease), k = O ? T.settlingDuration : q(g, w.duration), te = q(h, w.delay), ne = x || w.modifier, re = B(S) && u >= 1e3 ? d.none : B(S) ? w.composition : S, A = this._offset + (n ? n._offset : 0);
895
+ super(t, n, r), this._head, this._tail, ++Wt;
896
+ let s = St(e), u = s.length, f = t.keyframes, p = f ? Ae(qt(f, t), t) : t, { id: m, delay: h, duration: g, ease: v, playbackEase: y, modifier: x, composition: S, onRender: C } = p, w = n ? n.defaults : F.defaults, T = q(v, w.ease), E = q(y, w.playbackEase), D = E ? It(E) : null, O = !B(T.ease), ee = O ? T.ease : q(v, D ? "linear" : w.ease), k = O ? T.settlingDuration : q(g, w.duration), te = q(h, w.delay), ne = x || w.modifier, re = B(S) && u >= 1e3 ? d.none : B(S) ? w.composition : S, A = this._offset + (n ? n._offset : 0);
897
897
  O && (T.parent = this);
898
898
  let j = NaN, M = NaN, N = 0, P = 0;
899
899
  for (let e = 0; e < u; e++) {
900
900
  let t = s[e], r = a || e, u = o || s, f = NaN, m = NaN;
901
901
  for (let e in p) if (me(e)) {
902
- let a = He(t, e), o = Fe(t, e), s = Qe(e, t, a), h = p[e], g = se(h);
903
- if (i && !g && (Bt[0] = h, Bt[1] = h, h = Bt), g) {
902
+ let a = Ue(t, e), o = Ie(t, e), s = $e(e, t, a), h = p[e], g = se(h);
903
+ if (i && !g && (Vt[0] = h, Vt[1] = h, h = Vt), g) {
904
904
  let e = h.length, t = !ce(h[0]);
905
- e === 2 && t ? (Vt.to = h, zt[0] = Vt, Wt = zt) : e > 2 && t ? (Wt = [], h.forEach((e, t) => {
906
- t ? t === 1 ? (Bt[1] = e, Wt.push(Bt)) : Wt.push(e) : Bt[0] = e;
907
- })) : Wt = h;
908
- } else zt[0] = h, Wt = zt;
905
+ e === 2 && t ? (Ht.to = h, Bt[0] = Ht, Gt = Bt) : e > 2 && t ? (Gt = [], h.forEach((e, t) => {
906
+ t ? t === 1 ? (Vt[1] = e, Gt.push(Vt)) : Gt.push(e) : Vt[0] = e;
907
+ })) : Gt = h;
908
+ } else Bt[0] = h, Gt = Bt;
909
909
  let _ = null, v = null, y = NaN, x = 0, S = 0;
910
- for (let e = Wt.length; S < e; S++) {
911
- let i = Wt[S];
912
- ce(i) ? Gt = i : (Vt.to = i, Gt = Vt), Lt.func = null, Rt.func = null;
913
- let c = J(q(Gt.composition, re), t, r, u, null, null), f = L(c) ? c : d[c];
914
- !_ && f !== d.none && (_ = lt(t, s));
915
- let p = _ ? _._tail : null, m = n && p && p.parent.parent === n ? p : v, h = J(Gt.to, t, r, u, Lt, m), g;
916
- ce(h) && !B(h.to) ? (Gt = h, g = h.to) : g = h;
917
- let C = J(Gt.from, t, r, u, Rt, m), w = Gt.ease || ee, T = J(w, t, r, u, null, m), E = z(T) || R(T) ? T : w, D = !B(E) && !B(E.ease), O = D ? E.ease : E, j = D ? E.settlingDuration : J(q(Gt.duration, e > 1 ? J(k, t, r, u, null, m) / e : k), t, r, u, null, m), M = J(q(Gt.delay, S ? 0 : te), t, r, u, null, m), F = Gt.modifier || ne, ie = !B(C), ae = !B(g), I = se(g), oe = I || ie && ae, ue = v ? x : 0, de = v ? x + M : M, fe = W(A + de, 12), pe = W(A + ue, 12);
910
+ for (let e = Gt.length; S < e; S++) {
911
+ let i = Gt[S];
912
+ ce(i) ? Kt = i : (Ht.to = i, Kt = Ht), Rt.func = null, zt.func = null;
913
+ let c = J(q(Kt.composition, re), t, r, u, null, null), f = L(c) ? c : d[c];
914
+ !_ && f !== d.none && (_ = ut(t, s));
915
+ let p = _ ? _._tail : null, m = n && p && p.parent.parent === n ? p : v, h = J(Kt.to, t, r, u, Rt, m), g;
916
+ ce(h) && !B(h.to) ? (Kt = h, g = h.to) : g = h;
917
+ let C = J(Kt.from, t, r, u, zt, m), w = Kt.ease || ee, T = J(w, t, r, u, null, m), E = z(T) || R(T) ? T : w, D = !B(E) && !B(E.ease), O = D ? E.ease : E, j = D ? E.settlingDuration : J(q(Kt.duration, e > 1 ? J(k, t, r, u, null, m) / e : k), t, r, u, null, m), M = J(q(Kt.delay, S ? 0 : te), t, r, u, null, m), F = Kt.modifier || ne, ie = !B(C), ae = !B(g), I = se(g), oe = I || ie && ae, ue = v ? x : 0, de = v ? x + M : M, fe = W(A + de, 12), pe = W(A + ue, 12);
918
918
  !P && (ie || I) && (P = 1);
919
919
  let V = v;
920
920
  if (f !== d.none) {
921
921
  let e = _._head;
922
- for (; e && e._absoluteStartTime <= fe;) if (e._isOverridden || (V = e), e = e._nextRep, e && e._absoluteStartTime >= fe) for (; e;) dt(e), e = e._nextRep;
922
+ for (; e && e._absoluteStartTime <= fe;) if (e._isOverridden || (V = e), e = e._nextRep, e && e._absoluteStartTime >= fe) for (; e;) ft(e), e = e._nextRep;
923
923
  }
924
924
  if (oe) {
925
- Y(I ? J(g[0], t, r, u, Rt, m) : C, Q), Y(I ? J(g[1], t, r, u, Lt, m) : g, $);
926
- let e = We(t, s, a, It);
925
+ Y(I ? J(g[0], t, r, u, zt, m) : C, Q), Y(I ? J(g[1], t, r, u, Rt, m) : g, $);
926
+ let e = Ge(t, s, a, Lt);
927
927
  Q.t === l.NUMBER && (V ? V._valueType === l.UNIT && (Q.t = l.UNIT, Q.u = V._unit) : (Y(e, X), X.t === l.UNIT && (Q.t = l.UNIT, Q.u = X.u)));
928
- } else ae ? Y(g, $) : v ? qe(v, $) : Y(n && V && V.parent.parent === n ? V._value : We(t, s, a, It), $), ie ? Y(C, Q) : v ? qe(v, Q) : Y(n && V && V.parent.parent === n ? V._value : We(t, s, a, It), Q);
929
- if (Q.o && (Q.n = Ge(V ? V._toNumber : Y(We(t, s, a, It), X).n, Q.n, Q.o)), $.o && ($.n = Ge(Q.n, $.n, $.o)), Q.t !== $.t) {
928
+ } else ae ? Y(g, $) : v ? Je(v, $) : Y(n && V && V.parent.parent === n ? V._value : Ge(t, s, a, Lt), $), ie ? Y(C, Q) : v ? Je(v, Q) : Y(n && V && V.parent.parent === n ? V._value : Ge(t, s, a, Lt), Q);
929
+ if (Q.o && (Q.n = Ke(V ? V._toNumber : Y(Ge(t, s, a, Lt), X).n, Q.n, Q.o)), $.o && ($.n = Ke(Q.n, $.n, $.o)), Q.t !== $.t) {
930
930
  if (Q.t === l.COMPLEX || $.t === l.COMPLEX) {
931
931
  let e = Q.t === l.COMPLEX ? Q : $, t = Q.t === l.COMPLEX ? $ : Q;
932
932
  t.t = l.COMPLEX, t.s = G(e.s), t.d = e.d.map(() => t.n);
@@ -940,25 +940,25 @@ var St = {
940
940
  }
941
941
  if (Q.u !== $.u) {
942
942
  let e = $.u ? Q : $;
943
- e = wt(t, e, $.u ? $.u : Q.u, !1);
943
+ e = Tt(t, e, $.u ? $.u : Q.u, !1);
944
944
  }
945
945
  if ($.d && Q.d && $.d.length !== Q.d.length) {
946
946
  let e = Q.d.length > $.d.length ? Q : $, t = e === Q ? $ : Q;
947
947
  t.d = e.d.map((e, n) => B(t.d[n]) ? 0 : t.d[n]), t.s = G(e.s);
948
948
  }
949
- let me = W(+j || 1e-11, 12), he = It[s];
950
- le(he) || (It[s] = null);
949
+ let me = W(+j || 1e-11, 12), he = Lt[s];
950
+ le(he) || (Lt[s] = null);
951
951
  let ge = o ? o.set : null;
952
952
  x = W(de + me, 12);
953
953
  let _e = Q.d, ve = $.d, ye = $.s, H = {
954
954
  parent: this,
955
- id: Ht++,
955
+ id: Ut++,
956
956
  property: s,
957
957
  target: t,
958
958
  _value: null,
959
- _toFunc: Lt.func,
960
- _fromFunc: Rt.func,
961
- _ease: Ft(O),
959
+ _toFunc: Rt.func,
960
+ _fromFunc: zt.func,
961
+ _ease: It(O),
962
962
  _fromNumbers: _e ? G(_e) : b,
963
963
  _toNumbers: ve ? G(ve) : b,
964
964
  _strings: ye ? G(ye) : b,
@@ -992,22 +992,22 @@ var St = {
992
992
  _prev: null,
993
993
  _next: null
994
994
  };
995
- f !== d.none && ft(H, _);
995
+ f !== d.none && pt(H, _);
996
996
  let be = H._valueType;
997
- if (be === l.COMPLEX) H._value = Je(H, 1, -1);
997
+ if (be === l.COMPLEX) H._value = Ye(H, 1, -1);
998
998
  else if (be === l.UNIT) H._value = `${F(H._toNumber)}${H._unit}`;
999
999
  else if (be === l.COLOR) {
1000
1000
  let e = $.d;
1001
1001
  H._value = `rgba(${W(e[0], 0)},${W(e[1], 0)},${W(e[2], 0)},${e[3]})`;
1002
1002
  } else H._value = F(H._toNumber);
1003
- isNaN(y) && (y = H._startTime), v = H, N++, je(this, H);
1003
+ isNaN(y) && (y = H._startTime), v = H, N++, Me(this, H);
1004
1004
  }
1005
1005
  (isNaN(M) || y < M) && (M = y), (isNaN(j) || x > j) && (j = x), a === c.TRANSFORM && (f = N - S, m = N);
1006
1006
  }
1007
1007
  if (!isNaN(f)) {
1008
1008
  let e = 0;
1009
1009
  K(this, (t) => {
1010
- e >= f && e < m && (t._renderTransforms = 1, t._composition === d.blend && K(tt.animation, (e) => {
1010
+ e >= f && e < m && (t._renderTransforms = 1, t._composition === d.blend && K(nt.animation, (e) => {
1011
1011
  e.id === t.id && (e._renderTransforms = 1);
1012
1012
  })), e++;
1013
1013
  });
@@ -1015,48 +1015,48 @@ var St = {
1015
1015
  }
1016
1016
  u || console.warn("No target found. Make sure the element you're trying to animate is accessible before creating your animation."), M ? (K(this, (e) => {
1017
1017
  e._startTime - e._delay || (e._delay -= M), e._startTime -= M;
1018
- }), j -= M) : M = 0, j || (j = _, this.iterationCount = 0), this.targets = s, this.id = B(m) ? Ut : m, this.duration = j === 1e-11 ? _ : De((j + this._loopDelay) * this.iterationCount - this._loopDelay) || 1e-11, this.onRender = C || w.onRender, this._ease = D, this._delay = M, this.iterationDuration = j, !this._autoplay && P && this.onRender(this);
1018
+ }), j -= M) : M = 0, j || (j = _, this.iterationCount = 0), this.targets = s, this.id = B(m) ? Wt : m, this.duration = j === 1e-11 ? _ : Oe((j + this._loopDelay) * this.iterationCount - this._loopDelay) || 1e-11, this.onRender = C || w.onRender, this._ease = D, this._delay = M, this.iterationDuration = j, !this._autoplay && P && this.onRender(this);
1019
1019
  }
1020
1020
  stretch(e) {
1021
1021
  let t = this.duration;
1022
- if (t === Oe(e)) return this;
1022
+ if (t === ke(e)) return this;
1023
1023
  let n = e / t;
1024
1024
  return K(this, (e) => {
1025
- e._updateDuration = Oe(e._updateDuration * n), e._changeDuration = Oe(e._changeDuration * n), e._currentTime *= n, e._delay *= n, e._startTime *= n, e._absoluteStartTime *= n, e._absoluteUpdateStartTime *= n, e._absoluteEndTime *= n;
1025
+ e._updateDuration = ke(e._updateDuration * n), e._changeDuration = ke(e._changeDuration * n), e._currentTime *= n, e._delay *= n, e._startTime *= n, e._absoluteStartTime *= n, e._absoluteUpdateStartTime *= n, e._absoluteEndTime *= n;
1026
1026
  }), super.stretch(e);
1027
1027
  }
1028
1028
  refresh() {
1029
1029
  return K(this, (e) => {
1030
1030
  let t = e._toFunc, n = e._fromFunc;
1031
- (t || n) && (n ? (Y(n(), Q), Q.u !== e._unit && e.target[p] && wt(e.target, Q, e._unit, !0), e._fromNumbers = G(Q.d), e._fromNumber = Q.n) : t && (Y(We(e.target, e.property, e._tweenType), X), e._fromNumbers = G(X.d), e._fromNumber = X.n), t && (Y(t(), $), e._toNumbers = G($.d), e._strings = G($.s), e._toNumber = $.o ? Ge(e._fromNumber, $.n, $.o) : $.n));
1031
+ (t || n) && (n ? (Y(n(), Q), Q.u !== e._unit && e.target[p] && Tt(e.target, Q, e._unit, !0), e._fromNumbers = G(Q.d), e._fromNumber = Q.n) : t && (Y(Ge(e.target, e.property, e._tweenType), X), e._fromNumbers = G(X.d), e._fromNumber = X.n), t && (Y(t(), $), e._toNumbers = G($.d), e._strings = G($.s), e._toNumber = $.o ? Ke(e._fromNumber, $.n, $.o) : $.n));
1032
1032
  }), this.duration === 1e-11 && this.restart(), this;
1033
1033
  }
1034
1034
  revert() {
1035
- return super.revert(), $e(this);
1035
+ return super.revert(), et(this);
1036
1036
  }
1037
1037
  then(e) {
1038
1038
  return super.then(e);
1039
1039
  }
1040
- }, Jt = (e, t) => F.editor ? F.editor.addAnimation(e, t) : new qt(e, t, null, 0, !1).init(), Yt = (e, t) => {
1040
+ }, Yt = (e, t) => F.editor ? F.editor.addAnimation(e, t) : new Jt(e, t, null, 0, !1).init(), Xt = (e, t) => {
1041
1041
  if (I(t, "<")) {
1042
1042
  let n = t[1] === "<", r = e._tail, i = r ? r._offset + r._delay : 0;
1043
1043
  return n ? i : i + r.duration;
1044
1044
  }
1045
- }, Xt = (e, t) => {
1045
+ }, Zt = (e, t) => {
1046
1046
  let n = e.iterationDuration;
1047
1047
  if (n === 1e-11 && (n = 0), B(t)) return n;
1048
1048
  if (L(+t)) return +t;
1049
- let r = t, i = e ? e.labels : null, a = !le(i), o = Yt(e, r), s = !B(o), c = j.exec(r);
1049
+ let r = t, i = e ? e.labels : null, a = !le(i), o = Xt(e, r), s = !B(o), c = j.exec(r);
1050
1050
  if (c) {
1051
1051
  let e = c[0], t = r.split(e), l = a && t[0] ? i[t[0]] : n;
1052
- return Ge(s ? o : a ? l : n, +t[1], e[0]);
1052
+ return Ke(s ? o : a ? l : n, +t[1], e[0]);
1053
1053
  }
1054
1054
  return s ? o : a ? B(i[r]) ? n : i[r] : n;
1055
- }, Zt = {
1055
+ }, Qt = {
1056
1056
  _head: null,
1057
1057
  _tail: null
1058
- }, Qt = (e, t, n) => {
1059
- let r = Zt._head, i;
1058
+ }, $t = (e, t, n) => {
1059
+ let r = Qt._head, i;
1060
1060
  for (; r;) {
1061
1061
  let a = r._next, o = r.$el === e, s = !t || r.property === t, c = !n || r.parent === n;
1062
1062
  if (o && s && c) {
@@ -1064,16 +1064,16 @@ var St = {
1064
1064
  try {
1065
1065
  i.commitStyles();
1066
1066
  } catch {}
1067
- i.cancel(), Ae(Zt, r);
1067
+ i.cancel(), je(Qt, r);
1068
1068
  let e = r.parent;
1069
1069
  e && (e._completed++, e.animations.length === e._completed && (e.completed = !0, e.paused = !0, e.muteCallbacks || (e.onComplete(e), e._resolve(e))));
1070
1070
  }
1071
1071
  r = a;
1072
1072
  }
1073
1073
  return i;
1074
- }, $t = (e, t, n, r, i) => {
1074
+ }, en = (e, t, n, r, i) => {
1075
1075
  let a = t.animate(r, i), o = i.delay + +i.duration * i.iterations;
1076
- a.playbackRate = e._speed, e.paused && a.pause(), e.duration < o && (e.duration = o, e.controlAnimation = a), e.animations.push(a), Qt(t, n), je(Zt, {
1076
+ a.playbackRate = e._speed, e.paused && a.pause(), e.duration < o && (e.duration = o, e.controlAnimation = a), e.animations.push(a), $t(t, n), Me(Qt, {
1077
1077
  parent: e,
1078
1078
  animation: a,
1079
1079
  $el: t,
@@ -1081,30 +1081,30 @@ var St = {
1081
1081
  _next: null,
1082
1082
  _prev: null
1083
1083
  });
1084
- let s = () => Qt(t, n, e);
1084
+ let s = () => $t(t, n, e);
1085
1085
  return a.oncancel = s, a.onremove = s, e.persist || (a.onfinish = s), a;
1086
1086
  };
1087
1087
  //#endregion
1088
1088
  //#region node_modules/.pnpm/animejs@4.5.0/node_modules/animejs/dist/modules/utils/target.js
1089
- function en(e, t, n) {
1090
- let r = xt(e);
1089
+ function tn(e, t, n) {
1090
+ let r = St(e);
1091
1091
  if (!r.length) return;
1092
- let [i] = r, a = We(i, Qe(t, i, He(i, t)));
1092
+ let [i] = r, a = Ge(i, $e(t, i, Ue(i, t)));
1093
1093
  if (B(n)) return a;
1094
1094
  if (Y(a, X), X.t === l.NUMBER || X.t === l.UNIT) {
1095
1095
  if (n === !1) return X.n;
1096
1096
  {
1097
- let e = wt(i, X, n, !1);
1097
+ let e = Tt(i, X, n, !1);
1098
1098
  return `${W(e.n, F.precision)}${e.u}`;
1099
1099
  }
1100
1100
  }
1101
1101
  }
1102
- var tn = (e, t) => {
1103
- if (!B(t)) return F.editor && F.editor.addSet ? F.editor.addSet(e, t) : (t.duration = _, t.composition = q(t.composition, d.none), new qt(e, t, null, 0, !0).resume());
1104
- }, nn = (e = w) => new vt({
1102
+ var nn = (e, t) => {
1103
+ if (!B(t)) return F.editor && F.editor.addSet ? F.editor.addSet(e, t) : (t.duration = _, t.composition = q(t.composition, d.none), new Jt(e, t, null, 0, !0).resume());
1104
+ }, rn = (e = w) => new yt({
1105
1105
  duration: 1 * F.timeScale,
1106
1106
  onComplete: e
1107
- }, null, 0).resume(), rn = (e) => {
1107
+ }, null, 0).resume(), an = (e) => {
1108
1108
  let t;
1109
1109
  return ((...n) => {
1110
1110
  let r, i, a, o, s;
@@ -1112,14 +1112,14 @@ var tn = (e, t) => {
1112
1112
  let c = e(...n);
1113
1113
  return c && !z(c) && c.revert && (t = c), B(i) || (t.currentIteration = r, t.iterationProgress = (o && r % 2 ? !a : a) ? 1 - i : i, t._startTime = s), c || w;
1114
1114
  });
1115
- }, an = () => {
1115
+ }, on = () => {
1116
1116
  let e = s.createElement("div");
1117
1117
  s.body.appendChild(e), e.style.height = "100lvh";
1118
1118
  let t = e.offsetHeight;
1119
1119
  return s.body.removeChild(e), t;
1120
- }, on = (e, t) => e && z(e) ? e(t) : e, sn = /* @__PURE__ */ new Map(), cn = class {
1120
+ }, sn = (e, t) => e && z(e) ? e(t) : e, cn = /* @__PURE__ */ new Map(), ln = class {
1121
1121
  constructor(e) {
1122
- this.element = e, this.useWin = this.element === s.body, this.winWidth = 0, this.winHeight = 0, this.width = 0, this.height = 0, this.left = 0, this.top = 0, this.scale = 1, this.zIndex = 0, this.scrollX = 0, this.scrollY = 0, this.prevScrollX = 0, this.prevScrollY = 0, this.scrollWidth = 0, this.scrollHeight = 0, this.velocity = 0, this.backwardX = !1, this.backwardY = !1, this.scrollTicker = new vt({
1122
+ this.element = e, this.useWin = this.element === s.body, this.winWidth = 0, this.winHeight = 0, this.width = 0, this.height = 0, this.left = 0, this.top = 0, this.scale = 1, this.zIndex = 0, this.scrollX = 0, this.scrollY = 0, this.prevScrollX = 0, this.prevScrollY = 0, this.scrollWidth = 0, this.scrollHeight = 0, this.velocity = 0, this.backwardX = !1, this.backwardY = !1, this.scrollTicker = new yt({
1123
1123
  autoplay: !1,
1124
1124
  onBegin: () => this.dataTimer.resume(),
1125
1125
  onUpdate: () => {
@@ -1127,20 +1127,20 @@ var tn = (e, t) => {
1127
1127
  K(this, (e) => e.handleScroll(), e);
1128
1128
  },
1129
1129
  onComplete: () => this.dataTimer.pause()
1130
- }).init(), this.dataTimer = new vt({
1130
+ }).init(), this.dataTimer = new yt({
1131
1131
  autoplay: !1,
1132
1132
  frameRate: 30,
1133
1133
  onUpdate: (e) => {
1134
1134
  let t = e.deltaTime, n = this.prevScrollX, r = this.prevScrollY, i = this.scrollX, a = this.scrollY, o = n - i, s = r - a;
1135
1135
  this.prevScrollX = i, this.prevScrollY = a, o && (this.backwardX = n > i), s && (this.backwardY = r > a), this.velocity = W(t > 0 ? Math.sqrt(o * o + s * s) / t : 0, 5);
1136
1136
  }
1137
- }).init(), this.resizeTicker = new vt({
1137
+ }).init(), this.resizeTicker = new yt({
1138
1138
  autoplay: !1,
1139
1139
  duration: 250 * F.timeScale,
1140
1140
  onComplete: () => {
1141
1141
  this.updateWindowBounds(), this.refreshScrollObservers(), this.handleScroll();
1142
1142
  }
1143
- }).init(), this.wakeTicker = new vt({
1143
+ }).init(), this.wakeTicker = new yt({
1144
1144
  autoplay: !1,
1145
1145
  duration: 500 * F.timeScale,
1146
1146
  onBegin: () => {
@@ -1156,7 +1156,7 @@ var tn = (e, t) => {
1156
1156
  this.scrollX = W(e ? o.scrollX : t.scrollLeft, 0), this.scrollY = W(e ? o.scrollY : t.scrollTop, 0);
1157
1157
  }
1158
1158
  updateWindowBounds() {
1159
- this.winWidth = o.innerWidth, this.winHeight = an();
1159
+ this.winWidth = o.innerWidth, this.winHeight = on();
1160
1160
  }
1161
1161
  updateBounds() {
1162
1162
  let e = getComputedStyle(this.element), t = this.element;
@@ -1186,31 +1186,31 @@ var tn = (e, t) => {
1186
1186
  e.type === "scroll" && this.handleScroll();
1187
1187
  }
1188
1188
  revert() {
1189
- this.scrollTicker.cancel(), this.dataTimer.cancel(), this.resizeTicker.cancel(), this.wakeTicker.cancel(), this.resizeObserver.disconnect(), (this.useWin ? o : this.element).removeEventListener("scroll", this), sn.delete(this.element);
1189
+ this.scrollTicker.cancel(), this.dataTimer.cancel(), this.resizeTicker.cancel(), this.wakeTicker.cancel(), this.resizeObserver.disconnect(), (this.useWin ? o : this.element).removeEventListener("scroll", this), cn.delete(this.element);
1190
1190
  }
1191
- }, ln = (e) => {
1192
- let t = e && bt(e)[0] || s.body, n = sn.get(t);
1193
- return n || (n = new cn(t), sn.set(t, n)), n;
1194
- }, un = (e, t, n, r, i) => {
1195
- let a = t === "min", o = t === "max", { n: s, u: c } = Y(t === "top" || t === "left" || t === "start" || a ? 0 : t === "bottom" || t === "right" || t === "end" || o ? "100%" : t === "center" ? "50%" : t, X), l = s;
1196
- return c === "%" ? l = s / 100 * n : c && (l = wt(e, X, "px", !0).n), o && r < 0 && (l += r), a && i > 0 && (l += i), l;
1191
+ }, un = (e) => {
1192
+ let t = e && xt(e)[0] || s.body, n = cn.get(t);
1193
+ return n || (n = new ln(t), cn.set(t, n)), n;
1197
1194
  }, dn = (e, t, n, r, i) => {
1195
+ let a = t === "min", o = t === "max", { n: s, u: c } = Y(t === "top" || t === "left" || t === "start" || a ? 0 : t === "bottom" || t === "right" || t === "end" || o ? "100%" : t === "center" ? "50%" : t, X), l = s;
1196
+ return c === "%" ? l = s / 100 * n : c && (l = Tt(e, X, "px", !0).n), o && r < 0 && (l += r), a && i > 0 && (l += i), l;
1197
+ }, fn = (e, t, n, r, i) => {
1198
1198
  let a;
1199
1199
  if (R(t)) {
1200
1200
  let o = j.exec(t);
1201
1201
  if (o) {
1202
- let s = o[0], c = s[0], l = t.split(s), u = l[0] === "min", d = l[0] === "max", f = un(e, l[0], n, r, i), p = un(e, l[1], n, r, i);
1202
+ let s = o[0], c = s[0], l = t.split(s), u = l[0] === "min", d = l[0] === "max", f = dn(e, l[0], n, r, i), p = dn(e, l[1], n, r, i);
1203
1203
  if (u) {
1204
- let t = Ge(un(e, "min", n), p, c);
1204
+ let t = Ke(dn(e, "min", n), p, c);
1205
1205
  a = t < f ? f : t;
1206
1206
  } else if (d) {
1207
- let t = Ge(un(e, "max", n), p, c);
1207
+ let t = Ke(dn(e, "max", n), p, c);
1208
1208
  a = t > f ? f : t;
1209
- } else a = Ge(f, p, c);
1210
- } else a = un(e, t, n, r, i);
1209
+ } else a = Ke(f, p, c);
1210
+ } else a = dn(e, t, n, r, i);
1211
1211
  } else a = t;
1212
1212
  return W(a, 0);
1213
- }, fn = (e) => {
1213
+ }, pn = (e) => {
1214
1214
  let t, n = e.targets;
1215
1215
  for (let e = 0, r = n.length; e < r; e++) {
1216
1216
  let r = n[e];
@@ -1220,7 +1220,7 @@ var tn = (e, t) => {
1220
1220
  }
1221
1221
  }
1222
1222
  return t;
1223
- }, pn = 0, mn = [
1223
+ }, mn = 0, hn = [
1224
1224
  "#FF4B4B",
1225
1225
  "#FF971B",
1226
1226
  "#FFC730",
@@ -1235,14 +1235,14 @@ var tn = (e, t) => {
1235
1235
  "#C563FE",
1236
1236
  "#FF4FCF",
1237
1237
  "#F93F8A"
1238
- ], hn = class {
1238
+ ], gn = class {
1239
1239
  constructor(e = {}) {
1240
1240
  P.current && P.current.register(this);
1241
- let t = q(e.sync, "play pause"), n = t ? Ft(t) : null, r = t && (t === "linear" || t === Tt), i = t && !(n === Tt && !r), a = t && (L(t) || t === !0 || r), o = t && R(t) && !i && !a, c = o ? t.split(" ").map((e) => () => {
1241
+ let t = q(e.sync, "play pause"), n = t ? It(t) : null, r = t && (t === "linear" || t === Et), i = t && !(n === Et && !r), a = t && (L(t) || t === !0 || r), o = t && R(t) && !i && !a, c = o ? t.split(" ").map((e) => () => {
1242
1242
  let t = this.linked;
1243
1243
  return t && t[e] ? t[e]() : null;
1244
1244
  }) : null, l = o && c.length > 2;
1245
- this.index = pn++, this.id = B(e.id) ? this.index : e.id, this.container = ln(e.container), this.target = null, this.linked = null, this.repeat = null, this.horizontal = null, this.enter = null, this.leave = null, this.sync = i || a || !!c, this.syncEase = i ? n : null, this.syncSmooth = a ? t === !0 || r ? 1 : t : null, this.onSyncEnter = c && !l && c[0] ? c[0] : w, this.onSyncLeave = c && !l && c[1] ? c[1] : w, this.onSyncEnterForward = c && l && c[0] ? c[0] : w, this.onSyncLeaveForward = c && l && c[1] ? c[1] : w, this.onSyncEnterBackward = c && l && c[2] ? c[2] : w, this.onSyncLeaveBackward = c && l && c[3] ? c[3] : w, this.onEnter = e.onEnter || w, this.onLeave = e.onLeave || w, this.onEnterForward = e.onEnterForward || w, this.onLeaveForward = e.onLeaveForward || w, this.onEnterBackward = e.onEnterBackward || w, this.onLeaveBackward = e.onLeaveBackward || w, this.onUpdate = e.onUpdate || w, this.onResize = e.onResize || w, this.onSyncComplete = e.onSyncComplete || w, this.reverted = !1, this.ready = !1, this.completed = !1, this.began = !1, this.isInView = !1, this.forceEnter = !1, this.hasEntered = !1, this.offset = 0, this.offsetStart = 0, this.offsetEnd = 0, this.distance = 0, this.prevProgress = 0, this.thresholds = [
1245
+ this.index = mn++, this.id = B(e.id) ? this.index : e.id, this.container = un(e.container), this.target = null, this.linked = null, this.repeat = null, this.horizontal = null, this.enter = null, this.leave = null, this.sync = i || a || !!c, this.syncEase = i ? n : null, this.syncSmooth = a ? t === !0 || r ? 1 : t : null, this.onSyncEnter = c && !l && c[0] ? c[0] : w, this.onSyncLeave = c && !l && c[1] ? c[1] : w, this.onSyncEnterForward = c && l && c[0] ? c[0] : w, this.onSyncLeaveForward = c && l && c[1] ? c[1] : w, this.onSyncEnterBackward = c && l && c[2] ? c[2] : w, this.onSyncLeaveBackward = c && l && c[3] ? c[3] : w, this.onEnter = e.onEnter || w, this.onLeave = e.onLeave || w, this.onEnterForward = e.onEnterForward || w, this.onLeaveForward = e.onLeaveForward || w, this.onEnterBackward = e.onEnterBackward || w, this.onLeaveBackward = e.onLeaveBackward || w, this.onUpdate = e.onUpdate || w, this.onResize = e.onResize || w, this.onSyncComplete = e.onSyncComplete || w, this.reverted = !1, this.ready = !1, this.completed = !1, this.began = !1, this.isInView = !1, this.forceEnter = !1, this.hasEntered = !1, this.offset = 0, this.offsetStart = 0, this.offsetEnd = 0, this.distance = 0, this.prevProgress = 0, this.thresholds = [
1246
1246
  "start",
1247
1247
  "end",
1248
1248
  "end",
@@ -1252,10 +1252,10 @@ var tn = (e, t) => {
1252
1252
  0,
1253
1253
  0,
1254
1254
  0
1255
- ], this.debugStyles = null, this.$debug = null, this._params = e, this._debug = q(e.debug, !1), this._next = null, this._prev = null, je(this.container, this), nn(() => {
1255
+ ], this.debugStyles = null, this.$debug = null, this._params = e, this._debug = q(e.debug, !1), this._next = null, this._prev = null, Me(this.container, this), rn(() => {
1256
1256
  if (!this.reverted) {
1257
1257
  if (!this.target) {
1258
- let t = bt(e.target)[0];
1258
+ let t = xt(e.target)[0];
1259
1259
  this.target = t || s.body, this.refresh();
1260
1260
  }
1261
1261
  this._debug && this.debug();
@@ -1266,8 +1266,8 @@ var tn = (e, t) => {
1266
1266
  if (e && (e.pause(), this.linked = e, !B(e) && !B(e.persist) && (e.persist = !0), !this._params.target)) {
1267
1267
  let t;
1268
1268
  B(e.targets) ? K(e, (e) => {
1269
- e.targets && !t && (t = fn(e));
1270
- }) : t = fn(e), this.target = t || s.body, this.refresh();
1269
+ e.targets && !t && (t = pn(e));
1270
+ }) : t = pn(e), this.target = t || s.body, this.refresh();
1271
1271
  }
1272
1272
  return this;
1273
1273
  }
@@ -1287,14 +1287,14 @@ var tn = (e, t) => {
1287
1287
  refresh() {
1288
1288
  this.ready = !0, this.reverted = !1;
1289
1289
  let e = this._params;
1290
- return this.repeat = q(on(e.repeat, this), !0), this.horizontal = q(on(e.axis, this), "y") === "x", this.enter = q(on(e.enter, this), "end start"), this.leave = q(on(e.leave, this), "start end"), this.updateBounds(), this.handleScroll(), this;
1290
+ return this.repeat = q(sn(e.repeat, this), !0), this.horizontal = q(sn(e.axis, this), "y") === "x", this.enter = q(sn(e.enter, this), "end start"), this.leave = q(sn(e.leave, this), "start end"), this.updateBounds(), this.handleScroll(), this;
1291
1291
  }
1292
1292
  removeDebug() {
1293
1293
  return this.$debug &&= (this.$debug.parentNode.removeChild(this.$debug), null), this.debugStyles && (this.debugStyles.revert(), this.$debug = null), this;
1294
1294
  }
1295
1295
  debug() {
1296
1296
  this.removeDebug();
1297
- let e = this.container, t = this.horizontal, n = e.element.querySelector(":scope > .animejs-onscroll-debug"), r = s.createElement("div"), i = s.createElement("div"), a = s.createElement("div"), o = mn[this.index % mn.length], c = e.useWin, l = c ? e.winWidth : e.width, u = c ? e.winHeight : e.height, d = e.scrollWidth, f = e.scrollHeight, p = this.container.width > 360 ? 320 : 260, m = t ? 0 : 10, h = t ? 10 : 0, g = t ? 24 : p / 2, _ = t ? g : 15, v = t ? 60 : g, y = t ? v : _, b = t ? "repeat-x" : "repeat-y", x = (e) => t ? "0px " + e + "px" : e + "px 2px", S = (e) => `linear-gradient(${t ? 90 : 0}deg, ${e} 2px, transparent 1px)`, C = (e, t, n, r, i) => `position:${e};left:${t}px;top:${n}px;width:${r}px;height:${i}px;`;
1297
+ let e = this.container, t = this.horizontal, n = e.element.querySelector(":scope > .animejs-onscroll-debug"), r = s.createElement("div"), i = s.createElement("div"), a = s.createElement("div"), o = hn[this.index % hn.length], c = e.useWin, l = c ? e.winWidth : e.width, u = c ? e.winHeight : e.height, d = e.scrollWidth, f = e.scrollHeight, p = this.container.width > 360 ? 320 : 260, m = t ? 0 : 10, h = t ? 10 : 0, g = t ? 24 : p / 2, _ = t ? g : 15, v = t ? 60 : g, y = t ? v : _, b = t ? "repeat-x" : "repeat-y", x = (e) => t ? "0px " + e + "px" : e + "px 2px", S = (e) => `linear-gradient(${t ? 90 : 0}deg, ${e} 2px, transparent 1px)`, C = (e, t, n, r, i) => `position:${e};left:${t}px;top:${n}px;width:${r}px;height:${i}px;`;
1298
1298
  r.style.cssText = `${C("absolute", m, h, t ? d : p, t ? p : f)}
1299
1299
  pointer-events: none;
1300
1300
  z-index: ${this.container.zIndex++};
@@ -1339,13 +1339,13 @@ var tn = (e, t) => {
1339
1339
  `, x.appendChild(S);
1340
1340
  let D = c - E + +!!t;
1341
1341
  x.style[t ? "left" : "top"] = `${D}px`, (r ? i : a).appendChild(x);
1342
- }), r.appendChild(i), r.appendChild(a), e.element.appendChild(r), n || r.classList.add("animejs-onscroll-debug"), this.$debug = r, en(e.element, "position") === "static" && (this.debugStyles = tn(e.element, { position: "relative " }));
1342
+ }), r.appendChild(i), r.appendChild(a), e.element.appendChild(r), n || r.classList.add("animejs-onscroll-debug"), this.$debug = r, tn(e.element, "position") === "static" && (this.debugStyles = nn(e.element, { position: "relative " }));
1343
1343
  }
1344
1344
  updateBounds() {
1345
1345
  this._debug && this.removeDebug();
1346
1346
  let e, t = this.target, n = this.container, r = this.horizontal, i = this.linked, a, o = t;
1347
1347
  for (i && (a = i.currentTime, i.seek(0, !0)); o && o !== n.element && o !== s.body;) {
1348
- let t = en(o, "position") === "sticky" && tn(o, { position: "static" });
1348
+ let t = tn(o, "position") === "sticky" && nn(o, { position: "static" });
1349
1349
  o = o.parentElement, t && (e ||= [], e.push(t));
1350
1350
  }
1351
1351
  let c = t.getBoundingClientRect(), l = n.scale, u = (r ? c.left + n.scrollX - n.left : c.top + n.scrollY - n.top) * l, d = (r ? c.width : c.height) * l, f = r ? n.width : n.height, p = (r ? n.scrollWidth : n.scrollHeight) - f, m = this.enter, h = this.leave, g = "start", _ = "end", v = "end", y = "start";
@@ -1363,7 +1363,7 @@ var tn = (e, t) => {
1363
1363
  let e = h;
1364
1364
  B(e.container) || (y = e.container), B(e.target) || (_ = e.target);
1365
1365
  } else L(h) && (y = h);
1366
- let b = dn(t, g, d), x = dn(t, _, d), S = b + u - f, C = x + u - p, w = dn(t, v, f, S, C), T = dn(t, y, f, S, C), E = b + u - w, D = x + u - T, O = D - E;
1366
+ let b = fn(t, g, d), x = fn(t, _, d), S = b + u - f, C = x + u - p, w = fn(t, v, f, S, C), T = fn(t, y, f, S, C), E = b + u - w, D = x + u - T, O = D - E;
1367
1367
  this.offset = u, this.offsetStart = E, this.offsetEnd = D, this.distance = O <= 0 ? 0 : O, this.thresholds = [
1368
1368
  g,
1369
1369
  _,
@@ -1384,7 +1384,7 @@ var tn = (e, t) => {
1384
1384
  if (r && L(r)) {
1385
1385
  if (r < 1) {
1386
1386
  let e = t < g && g === 1 ? 1e-4 : t > g && !g ? -1e-4 : 0;
1387
- g = W(Ee(t, g, Ee(.01, .2, r)) + e, 6);
1387
+ g = W(De(t, g, De(.01, .2, r)) + e, 6);
1388
1388
  }
1389
1389
  } else n && (g = n(g));
1390
1390
  m = g !== this.prevProgress, h = t === 1, m && !h && r && t && o.wakeTicker.restart();
@@ -1398,33 +1398,36 @@ var tn = (e, t) => {
1398
1398
  revert() {
1399
1399
  if (this.reverted) return;
1400
1400
  let e = this.container;
1401
- return Ae(e, this), e._head || e.revert(), this._debug && this.removeDebug(), this.reverted = !0, this.ready = !1, this;
1401
+ return je(e, this), e._head || e.revert(), this._debug && this.removeDebug(), this.reverted = !0, this.ready = !1, this;
1402
1402
  }
1403
- }, gn = (e = {}) => new hn(e), _n = (e, t = 100) => {
1403
+ }, _n = (e = {}) => new gn(e), vn = (e = 10, t) => {
1404
+ let n = t ? Se : Ce;
1405
+ return (t) => n(U(t, 0, 1) * e) * (1 / e);
1406
+ }, yn = (e, t = 100) => {
1404
1407
  let n = [];
1405
1408
  for (let r = 0; r <= t; r++) n.push(W(e(r / t), 4));
1406
1409
  return `linear(${n.join(", ")})`;
1407
- }, vn = {}, yn = (e) => {
1408
- let t = vn[e];
1410
+ }, bn = {}, xn = (e) => {
1411
+ let t = bn[e];
1409
1412
  if (t) return t;
1410
1413
  if (t = "linear", R(e)) {
1411
1414
  if (I(e, "linear") || I(e, "cubic-") || I(e, "steps") || I(e, "ease")) t = e;
1412
1415
  else if (I(e, "cubicB")) t = ae(e);
1413
1416
  else {
1414
- let n = Nt(e);
1415
- z(n) && (t = n === Tt ? "linear" : _n(n));
1417
+ let n = Pt(e);
1418
+ z(n) && (t = n === Et ? "linear" : yn(n));
1416
1419
  }
1417
- vn[e] = t;
1420
+ bn[e] = t;
1418
1421
  } else if (z(e)) {
1419
- let n = _n(e);
1422
+ let n = yn(e);
1420
1423
  n && (t = n);
1421
- } else e.ease && (t = _n(e.ease));
1424
+ } else e.ease && (t = yn(e.ease));
1422
1425
  return t;
1423
- }, bn = [
1426
+ }, Sn = [
1424
1427
  "x",
1425
1428
  "y",
1426
1429
  "z"
1427
- ], xn = [
1430
+ ], Cn = [
1428
1431
  "perspective",
1429
1432
  "width",
1430
1433
  "height",
@@ -1437,20 +1440,20 @@ var tn = (e, t) => {
1437
1440
  "borderWidth",
1438
1441
  "fontSize",
1439
1442
  "borderRadius",
1440
- ...bn
1441
- ], Sn = [...bn, ...S.filter((e) => [
1443
+ ...Sn
1444
+ ], wn = [...Sn, ...S.filter((e) => [
1442
1445
  "X",
1443
1446
  "Y",
1444
1447
  "Z"
1445
- ].some((t) => e.endsWith(t)))], Cn = null, wn = (e, t, n, r, i) => {
1448
+ ].some((t) => e.endsWith(t)))], Tn = null, En = (e, t, n, r, i) => {
1446
1449
  let a = R(t) ? t : J(t, n, r, i, null, null);
1447
- return L(a) ? xn.includes(e) || I(e, "translate") ? `${a}px` : I(e, "rotate") || I(e, "skew") ? `${a}deg` : `${a}` : a;
1448
- }, Tn = (e, t, n, r, i, a) => {
1449
- let o = "0", s = B(r) ? getComputedStyle(e)[t] : wn(t, r, e, i, a);
1450
- return o = B(n) ? se(r) ? r.map((n) => wn(t, n, e, i, a)) : s : [wn(t, n, e, i, a), s], o;
1451
- }, En = class {
1450
+ return L(a) ? Cn.includes(e) || I(e, "translate") ? `${a}px` : I(e, "rotate") || I(e, "skew") ? `${a}deg` : `${a}` : a;
1451
+ }, Dn = (e, t, n, r, i, a) => {
1452
+ let o = "0", s = B(r) ? getComputedStyle(e)[t] : En(t, r, e, i, a);
1453
+ return o = B(n) ? se(r) ? r.map((n) => En(t, n, e, i, a)) : s : [En(t, n, e, i, a), s], o;
1454
+ }, On = class {
1452
1455
  constructor(e, t) {
1453
- P.current && P.current.register(this), le(Cn) && (a && (B(CSS) || !Object.hasOwnProperty.call(CSS, "registerProperty")) ? Cn = !1 : (S.forEach((e) => {
1456
+ P.current && P.current.register(this), le(Tn) && (a && (B(CSS) || !Object.hasOwnProperty.call(CSS, "registerProperty")) ? Tn = !1 : (S.forEach((e) => {
1454
1457
  let t = I(e, "skew"), n = I(e, "scale"), r = I(e, "rotate"), i = I(e, "translate"), a = r || t, o = a ? "<angle>" : n ? "<number>" : i ? "<length-percentage>" : "*";
1455
1458
  try {
1456
1459
  CSS.registerProperty({
@@ -1460,12 +1463,12 @@ var tn = (e, t) => {
1460
1463
  initialValue: i ? "0px" : a ? "0deg" : n ? "1" : "0"
1461
1464
  });
1462
1465
  } catch {}
1463
- }), Cn = !0));
1464
- let n = xt(e);
1466
+ }), Tn = !0));
1467
+ let n = St(e);
1465
1468
  n.length || console.warn("No target found. Make sure the element you're trying to animate is accessible before creating your animation.");
1466
1469
  let r = q(t.autoplay, F.defaults.autoplay), i = r && r.link ? r : !1, o = t.alternate && t.alternate === !0, s = t.reversed && t.reversed === !0, c = q(t.loop, F.defaults.loop), l = c === !0 || c === Infinity ? Infinity : L(c) ? c + 1 : 1, u = o ? s ? "alternate-reverse" : "alternate" : s ? "reverse" : "normal", d = F.timeScale === 1 ? 1 : y;
1467
1470
  this.targets = n, this.animations = [], this.controlAnimation = null, this.onComplete = t.onComplete || F.defaults.onComplete, this.duration = 0, this.muteCallbacks = !1, this.completed = !1, this.paused = !r || i !== !1, this.reversed = s, this.persist = q(t.persist, F.defaults.persist), this.autoplay = r, this._speed = q(t.playbackRate, F.defaults.playbackRate), this._resolve = w, this._completed = 0, this._inlineStyles = [], n.forEach((e, r) => {
1468
- let i = e[h], a = Sn.some((e) => t.hasOwnProperty(e)), o = e.style, s = this._inlineStyles[r] = {}, c = q(t.ease, F.defaults.ease), f = J(c, e, r, n, null, null), p = z(f) || R(f) ? f : c, m = c.ease && c, g = yn(p), _ = (m ? m.settlingDuration : J(q(t.duration, F.defaults.duration), e, r, n, null, null)) * d, v = J(q(t.delay, F.defaults.delay), e, r, n, null, null) * d, y = q(t.composition, "replace");
1471
+ let i = e[h], a = wn.some((e) => t.hasOwnProperty(e)), o = e.style, s = this._inlineStyles[r] = {}, c = q(t.ease, F.defaults.ease), f = J(c, e, r, n, null, null), p = z(f) || R(f) ? f : c, m = c.ease && c, g = xn(p), _ = (m ? m.settlingDuration : J(q(t.duration, F.defaults.duration), e, r, n, null, null)) * d, v = J(q(t.delay, F.defaults.delay), e, r, n, null, null) * d, y = q(t.composition, "replace");
1469
1472
  for (let c in t) {
1470
1473
  if (!me(c)) continue;
1471
1474
  let f = {}, p = {
@@ -1481,14 +1484,14 @@ var tn = (e, t) => {
1481
1484
  let C;
1482
1485
  if (ce(m)) {
1483
1486
  let t = m, a = q(t.ease, g), s = a.ease && a, l = t.to, u = t.from;
1484
- if (p.duration = (s ? s.settlingDuration : J(q(t.duration, _), e, r, n, null, null)) * d, p.delay = J(q(t.delay, v), e, r, n, null, null) * d, p.composite = q(t.composition, y), p.easing = yn(a), C = Tn(e, c, u, l, r, n), h ? (f[`--${h}`] = C, i[h] = C) : f[c] = Tn(e, c, u, l, r, n), $t(this, e, c, f, p), !B(u)) {
1487
+ if (p.duration = (s ? s.settlingDuration : J(q(t.duration, _), e, r, n, null, null)) * d, p.delay = J(q(t.delay, v), e, r, n, null, null) * d, p.composite = q(t.composition, y), p.easing = xn(a), C = Dn(e, c, u, l, r, n), h ? (f[`--${h}`] = C, i[h] = C) : f[c] = Dn(e, c, u, l, r, n), en(this, e, c, f, p), !B(u)) {
1485
1488
  if (!h) o[c] = f[c][0];
1486
1489
  else {
1487
1490
  let e = `--${h}`;
1488
1491
  o.setProperty(e, f[e][0]);
1489
1492
  }
1490
1493
  }
1491
- } else C = se(m) ? m.map((t) => wn(c, t, e, r, n)) : wn(c, m, e, r, n), h ? (f[`--${h}`] = C, i[h] = C) : f[c] = C, $t(this, e, c, f, p);
1494
+ } else C = se(m) ? m.map((t) => En(c, t, e, r, n)) : En(c, m, e, r, n), h ? (f[`--${h}`] = C, i[h] = C) : f[c] = C, en(this, e, c, f, p);
1492
1495
  }
1493
1496
  if (a) {
1494
1497
  let e = "";
@@ -1576,27 +1579,27 @@ var tn = (e, t) => {
1576
1579
  };
1577
1580
  return new Promise((e) => (this._resolve = () => e(n()), this.completed && this._resolve(), this));
1578
1581
  }
1579
- }, Dn = {
1580
- animate: (e, t) => new En(e, t),
1581
- convertEase: _n
1582
- }, On = (e = 0, t = 1, n = 0) => {
1582
+ }, kn = {
1583
+ animate: (e, t) => new On(e, t),
1584
+ convertEase: yn
1585
+ }, An = (e = 0, t = 1, n = 0) => {
1583
1586
  let r = 10 ** n;
1584
1587
  return Math.floor((Math.random() * (t - e + 1 / r) + e) * r) / r;
1585
- }, kn = 0, An = (e, t = 0, n = 1, r = 0) => {
1586
- let i = e === void 0 ? kn++ : e;
1588
+ }, jn = 0, Mn = (e, t = 0, n = 1, r = 0) => {
1589
+ let i = e === void 0 ? jn++ : e;
1587
1590
  return (e = t, a = n, o = r) => {
1588
1591
  i += 1831565813, i = Math.imul(i ^ i >>> 15, i | 1), i ^= i + Math.imul(i ^ i >>> 7, i | 61);
1589
1592
  let s = 10 ** o;
1590
1593
  return Math.floor((((i ^ i >>> 14) >>> 0) / 4294967296 * (a - e + 1 / s) + e) * s) / s;
1591
1594
  };
1592
- }, jn = (e, t = On) => {
1595
+ }, Nn = (e, t = An) => {
1593
1596
  let n = e.length, r, i;
1594
1597
  for (; n;) i = t(0, --n), r = e[n], e[n] = e[i], e[i] = r;
1595
1598
  return e;
1596
- }, Mn = (e, t = {}) => {
1597
- let n = [], r = 0, i, a = null, o = t.from, s = t.reversed, c = t.ease, l = !B(c), u = l && !B(c.ease) ? c.ease : l ? Ft(c) : null, d = t.grid, f = d === !0, p = t.axis, m = t.total, h = B(o) || o === 0 || o === "first", g = o === "center", _ = o === "last", v = o === "random", y = se(o), b = se(e), x = t.use, S = _e(b ? e[0] : e), C = b ? _e(e[1]) : 0, w = re.exec((b ? e[1] : e) + ""), T = t.start || 0 + (b ? S : 0), E = t.seed, D = !B(E) && E !== !1 ? An(E === !0 ? 0 : E) : On, O = t.jitter, ee = !B(O), k = se(O), te = k ? O[0] : O || 0, ne = k ? O[1] : O || 0, A = h ? 0 : L(o) ? o : 0;
1599
+ }, Pn = (e, t = {}) => {
1600
+ let n = [], r = 0, i, a = null, o = t.from, s = t.reversed, c = t.ease, l = !B(c), u = l && !B(c.ease) ? c.ease : l ? It(c) : null, d = t.grid, f = d === !0, p = t.axis, m = t.total, h = B(o) || o === 0 || o === "first", g = o === "center", _ = o === "last", v = o === "random", y = se(o), b = se(e), x = t.use, S = _e(b ? e[0] : e), C = b ? _e(e[1]) : 0, w = re.exec((b ? e[1] : e) + ""), T = t.start || 0 + (b ? S : 0), E = t.seed, D = !B(E) && E !== !1 ? Mn(E === !0 ? 0 : E) : An, O = t.jitter, ee = !B(O), k = se(O), te = k ? O[0] : O || 0, ne = k ? O[1] : O || 0, A = h ? 0 : L(o) ? o : 0;
1598
1601
  return (e, c, l, h, E) => {
1599
- let [O] = xt(e), k = B(m) ? l.length : m, re = B(x) ? !1 : z(x) ? x(O, c, k) : We(O, x), j = L(re) || R(re) && L(+re) ? +re : c, M = j >= 0 && j < k ? j : c;
1602
+ let [O] = St(e), k = B(m) ? l.length : m, re = B(x) ? !1 : z(x) ? x(O, c, k) : Ge(O, x), j = L(re) || R(re) && L(+re) ? +re : c, M = j >= 0 && j < k ? j : c;
1600
1603
  if (g && (A = (k - 1) / 2), _ && (A = k - 1), !n.length) {
1601
1604
  if (f) {
1602
1605
  let e = !0, t = !1, r = Infinity, i = Infinity, a = Infinity, s = -Infinity, c = -Infinity, u = -Infinity, d = [], f = [], m = [];
@@ -1632,8 +1635,8 @@ var tn = (e, t) => {
1632
1635
  } else for (let e = 0; e < k; e++) if (!d) n.push(xe(A - e));
1633
1636
  else {
1634
1637
  let t = d.length, r = d[0] * d[1], i, a, s;
1635
- y ? (i = o[0] * (d[0] - 1), a = o[1] * (d[1] - 1), s = t === 3 ? (o.length >= 3 ? o[2] : .5) * (d[2] - 1) : 0) : g ? (i = (d[0] - 1) / 2, a = (d[1] - 1) / 2, s = t === 3 ? (d[2] - 1) / 2 : 0) : (i = A % d[0], a = Se(A / d[0]) % d[1], s = t === 3 ? Se(A / r) : 0);
1636
- let c = e % d[0], l = Se(e / d[0]) % d[1], u = t === 3 ? Se(e / r) : 0, f = i - c, m = a - l, h = s - u, _ = ye(f * f + m * m + (t === 3 ? h * h : 0));
1638
+ y ? (i = o[0] * (d[0] - 1), a = o[1] * (d[1] - 1), s = t === 3 ? (o.length >= 3 ? o[2] : .5) * (d[2] - 1) : 0) : g ? (i = (d[0] - 1) / 2, a = (d[1] - 1) / 2, s = t === 3 ? (d[2] - 1) / 2 : 0) : (i = A % d[0], a = Ce(A / d[0]) % d[1], s = t === 3 ? Ce(A / r) : 0);
1639
+ let c = e % d[0], l = Ce(e / d[0]) % d[1], u = t === 3 ? Ce(e / r) : 0, f = i - c, m = a - l, h = s - u, _ = ye(f * f + m * m + (t === 3 ? h * h : 0));
1637
1640
  p === "x" && (_ = -f), p === "y" && (_ = -m), p === "z" && (_ = -h), n.push(_);
1638
1641
  }
1639
1642
  r = n[0];
@@ -1646,10 +1649,10 @@ var tn = (e, t) => {
1646
1649
  a = Array(k);
1647
1650
  for (let e = 0; e < k; e++) a[e] = D(-1, 1, 4);
1648
1651
  }
1649
- v && (n = jn(n, D));
1652
+ v && (n = Nn(n, D));
1650
1653
  }
1651
1654
  let N = b ? (C - S) / r : S;
1652
- B(i) && (i = E ? Xt(E, B(t.start) ? E.iterationDuration : T) : T);
1655
+ B(i) && (i = E ? Zt(E, B(t.start) ? E.iterationDuration : T) : T);
1653
1656
  let P = i + (N * W(n[M], 2) || 0);
1654
1657
  if (ee) {
1655
1658
  let e = r ? n[M] / r : 0, t = te + (ne - te) * e;
@@ -1657,26 +1660,26 @@ var tn = (e, t) => {
1657
1660
  }
1658
1661
  return t.modifier && (P = t.modifier(P)), w && (P = `${P}${w[2]}`), P;
1659
1662
  };
1660
- }, Nn = typeof Intl < "u" && Intl.Segmenter, Pn = /\{value\}/g, Fn = /\{i\}/g, In = /(\s+)/, Ln = /^\s+$/, Rn = "line", zn = "word", Bn = "char", Vn = "data-line", Hn = null, Un = null, Wn = null, Gn = (e) => e.isWordLike || e.segment === " " || L(+e.segment), Kn = (e) => e.setAttribute("aria-hidden", "true"), qn = (e, t) => [...e.querySelectorAll(`[data-${t}]:not([data-${t}] [data-${t}])`)], Jn = {
1663
+ }, Fn = typeof Intl < "u" && Intl.Segmenter, In = /\{value\}/g, Ln = /\{i\}/g, Rn = /(\s+)/, zn = /^\s+$/, Bn = "line", Vn = "word", Hn = "char", Un = "data-line", Wn = null, Gn = null, Kn = null, qn = (e) => e.isWordLike || e.segment === " " || L(+e.segment), Jn = (e) => e.setAttribute("aria-hidden", "true"), Yn = (e, t) => [...e.querySelectorAll(`[data-${t}]:not([data-${t}] [data-${t}])`)], Xn = {
1661
1664
  line: "#00D672",
1662
1665
  word: "#FF4B4B",
1663
1666
  char: "#5A87FF"
1664
- }, Yn = (e) => {
1667
+ }, Zn = (e) => {
1665
1668
  if (!e.childElementCount && !e.textContent.trim()) {
1666
1669
  let t = e.parentElement;
1667
- e.remove(), t && Yn(t);
1670
+ e.remove(), t && Zn(t);
1668
1671
  }
1669
- }, Xn = (e, t, n) => {
1670
- let r = e.getAttribute(Vn);
1672
+ }, Qn = (e, t, n) => {
1673
+ let r = e.getAttribute(Un);
1671
1674
  if (r !== null && +r !== t || e.tagName === "BR") {
1672
1675
  n.add(e);
1673
1676
  let t = e.previousSibling, r = e.nextSibling;
1674
- t && t.nodeType === 3 && Ln.test(t.textContent) && n.add(t), r && r.nodeType === 3 && Ln.test(r.textContent) && n.add(r);
1677
+ t && t.nodeType === 3 && zn.test(t.textContent) && n.add(t), r && r.nodeType === 3 && zn.test(r.textContent) && n.add(r);
1675
1678
  }
1676
1679
  let i = e.childElementCount;
1677
- for (; i--;) Xn(e.children[i], t, n);
1680
+ for (; i--;) Qn(e.children[i], t, n);
1678
1681
  return n;
1679
- }, Zn = (e, t = {}) => {
1682
+ }, $n = (e, t = {}) => {
1680
1683
  let n = "";
1681
1684
  t ||= {};
1682
1685
  let r = R(t.class) ? ` class="${t.class}"` : "", i = q(t.clone, !1), a = q(t.wrap, !1), o = a ? a === !0 ? "clip" : a : i ? "clip" : !1;
@@ -1685,12 +1688,12 @@ var tn = (e, t) => {
1685
1688
  n += "<span>{value}</span>", n += `<span inert style="position:absolute;top:${t};left:${e};white-space:nowrap;">{value}</span>`;
1686
1689
  } else n += "{value}";
1687
1690
  return n += "</span>", a && (n += "</span>"), n;
1688
- }, Qn = (e, t, n, r, i, a, o, s, c) => {
1689
- let l = i === Rn, u = i === Bn, d = `_${i}_`, f = z(e) ? e(n) : e, p = l ? "block" : "inline-block";
1690
- Wn.innerHTML = f.replace(Pn, `<i class="${d}"></i>`).replace(Fn, `${u ? c : l ? o : s}`);
1691
- let m = Wn.content, h = m.firstElementChild, g = m.querySelector(`[data-${i}]`) || h, _ = m.querySelectorAll(`i.${d}`), v = _.length;
1691
+ }, er = (e, t, n, r, i, a, o, s, c) => {
1692
+ let l = i === Bn, u = i === Hn, d = `_${i}_`, f = z(e) ? e(n) : e, p = l ? "block" : "inline-block";
1693
+ Kn.innerHTML = f.replace(In, `<i class="${d}"></i>`).replace(Ln, `${u ? c : l ? o : s}`);
1694
+ let m = Kn.content, h = m.firstElementChild, g = m.querySelector(`[data-${i}]`) || h, _ = m.querySelectorAll(`i.${d}`), v = _.length;
1692
1695
  if (v) {
1693
- h.style.display = p, g.style.display = p, g.setAttribute(Vn, `${o}`), l || (g.setAttribute("data-word", `${s}`), u && g.setAttribute("data-char", `${c}`));
1696
+ h.style.display = p, g.style.display = p, g.setAttribute(Un, `${o}`), l || (g.setAttribute("data-word", `${s}`), u && g.setAttribute("data-char", `${c}`));
1694
1697
  let e = v;
1695
1698
  for (; e--;) {
1696
1699
  let t = _[e], r = t.parentElement;
@@ -1698,22 +1701,22 @@ var tn = (e, t) => {
1698
1701
  }
1699
1702
  t.push(g), r.appendChild(m);
1700
1703
  } else console.warn("The expression \"{value}\" is missing from the provided template.");
1701
- return a && (h.style.outline = `1px dotted ${Jn[i]}`), h;
1702
- }, $n = class {
1704
+ return a && (h.style.outline = `1px dotted ${Xn[i]}`), h;
1705
+ }, tr = class {
1703
1706
  constructor(e, t = {}) {
1704
- Hn ||= Nn ? new Nn([], { granularity: zn }) : { segment: (e) => {
1705
- let t = [], n = e.split(In);
1707
+ Wn ||= Fn ? new Fn([], { granularity: Vn }) : { segment: (e) => {
1708
+ let t = [], n = e.split(Rn);
1706
1709
  for (let e = 0, r = n.length; e < r; e++) {
1707
1710
  let r = n[e];
1708
1711
  t.push({
1709
1712
  segment: r,
1710
- isWordLike: !Ln.test(r)
1713
+ isWordLike: !zn.test(r)
1711
1714
  });
1712
1715
  }
1713
1716
  return t;
1714
- } }, Un ||= Nn ? new Nn([], { granularity: "grapheme" }) : { segment: (e) => [...e].map((e) => ({ segment: e })) }, !Wn && a && (Wn = s.createElement("template")), P.current && P.current.register(this);
1715
- let { words: n, chars: r, lines: i, accessible: o, includeSpaces: c, debug: l } = t, u = (e = se(e) ? e[0] : e) && e.nodeType ? e : (yt(e) || [])[0], d = i === !0 ? {} : i, f = n === !0 || B(n) ? {} : n, p = r === !0 ? {} : r;
1716
- this.debug = q(l, !1), this.includeSpaces = q(c, !1), this.accessible = q(o, !0), this.linesOnly = d && !f && !p, this.lineTemplate = ce(d) ? Zn(Rn, d) : d, this.wordTemplate = ce(f) || this.linesOnly ? Zn(zn, f) : f, this.charTemplate = ce(p) ? Zn(Bn, p) : p, this.$target = u, this.html = u && u.innerHTML, this.lines = [], this.words = [], this.chars = [], this.effects = [], this.effectsCleanups = [], this.cache = null, this.ready = !1, this.width = 0, this.resizeTimeout = null;
1717
+ } }, Gn ||= Fn ? new Fn([], { granularity: "grapheme" }) : { segment: (e) => [...e].map((e) => ({ segment: e })) }, !Kn && a && (Kn = s.createElement("template")), P.current && P.current.register(this);
1718
+ let { words: n, chars: r, lines: i, accessible: o, includeSpaces: c, debug: l } = t, u = (e = se(e) ? e[0] : e) && e.nodeType ? e : (bt(e) || [])[0], d = i === !0 ? {} : i, f = n === !0 || B(n) ? {} : n, p = r === !0 ? {} : r;
1719
+ this.debug = q(l, !1), this.includeSpaces = q(c, !1), this.accessible = q(o, !0), this.linesOnly = d && !f && !p, this.lineTemplate = ce(d) ? $n(Bn, d) : d, this.wordTemplate = ce(f) || this.linesOnly ? $n(Vn, f) : f, this.charTemplate = ce(p) ? $n(Hn, p) : p, this.$target = u, this.html = u && u.innerHTML, this.lines = [], this.words = [], this.chars = [], this.effects = [], this.effectsCleanups = [], this.cache = null, this.ready = !1, this.width = 0, this.resizeTimeout = null;
1717
1720
  let m = () => this.html && (d || f || p) && this.split();
1718
1721
  this.resizeObserver = new ResizeObserver(() => {
1719
1722
  clearTimeout(this.resizeTimeout), this.resizeTimeout = setTimeout(() => {
@@ -1724,7 +1727,7 @@ var tn = (e, t) => {
1724
1727
  }
1725
1728
  addEffect(e) {
1726
1729
  if (!z(e)) return console.warn("Effect must return a function."), this;
1727
- let t = rn(e);
1730
+ let t = an(e);
1728
1731
  return this.effects.push(t), this.ready && (this.effectsCleanups[this.effects.length - 1] = t(this)), this;
1729
1732
  }
1730
1733
  revert() {
@@ -1735,28 +1738,28 @@ var tn = (e, t) => {
1735
1738
  if (a === 3) {
1736
1739
  let a = e.nodeValue;
1737
1740
  if (a.trim()) {
1738
- let o = [], c = this.words, l = this.chars, u = Hn.segment(a), d = s.createDocumentFragment(), f = null;
1741
+ let o = [], c = this.words, l = this.chars, u = Wn.segment(a), d = s.createDocumentFragment(), f = null;
1739
1742
  for (let e of u) {
1740
- let t = e.segment, n = Gn(e);
1741
- if (!f || n && f && Gn(f)) o.push(t);
1743
+ let t = e.segment, n = qn(e);
1744
+ if (!f || n && f && qn(f)) o.push(t);
1742
1745
  else {
1743
1746
  let e = o.length - 1, n = o[e];
1744
- !In.test(n) && !In.test(t) ? o[e] += t : o.push(t);
1747
+ !Rn.test(n) && !Rn.test(t) ? o[e] += t : o.push(t);
1745
1748
  }
1746
1749
  f = e;
1747
1750
  }
1748
1751
  for (let e = 0, a = o.length; e < a; e++) {
1749
1752
  let a = o[e];
1750
1753
  if (a.trim()) {
1751
- let u = o[e + 1], f = r && u && !u.trim(), p = a, m = n ? Un.segment(p) : null, h = n ? s.createDocumentFragment() : s.createTextNode(f ? a + "\xA0" : a);
1754
+ let u = o[e + 1], f = r && u && !u.trim(), p = a, m = n ? Gn.segment(p) : null, h = n ? s.createDocumentFragment() : s.createTextNode(f ? a + "\xA0" : a);
1752
1755
  if (n) {
1753
1756
  let e = [...m];
1754
1757
  for (let t = 0, r = e.length; t < r; t++) {
1755
1758
  let a = e[t], o = t === r - 1 && f ? a.segment + "\xA0" : a.segment;
1756
- Qn(n, l, s.createTextNode(o), h, Bn, i, -1, c.length, l.length);
1759
+ er(n, l, s.createTextNode(o), h, Hn, i, -1, c.length, l.length);
1757
1760
  }
1758
1761
  }
1759
- t ? Qn(t, c, h, d, zn, i, -1, c.length, l.length) : n ? d.appendChild(h) : d.appendChild(s.createTextNode(a)), f && e++;
1762
+ t ? er(t, c, h, d, Vn, i, -1, c.length, l.length) : n ? d.appendChild(h) : d.appendChild(s.createTextNode(a)), f && e++;
1760
1763
  } else {
1761
1764
  if (e && r) continue;
1762
1765
  d.appendChild(s.createTextNode(a));
@@ -1771,27 +1774,27 @@ var tn = (e, t) => {
1771
1774
  }
1772
1775
  split(e = !1) {
1773
1776
  let t = this.$target, n = !!this.cache && !e, r = this.lineTemplate, i = this.wordTemplate, a = this.charTemplate, o = s.fonts.status !== "loading", c = r && o;
1774
- this.ready = !r || o, (c || e) && this.effectsCleanups.forEach((e) => z(e) && e(this)), n || (e && (t.innerHTML = this.html, this.words.length = this.chars.length = 0), this.splitNode(t), this.cache = t.innerHTML), c && (n && (t.innerHTML = this.cache), this.lines.length = 0, i && (this.words = qn(t, zn))), a && (c || i) && (this.chars = qn(t, Bn));
1777
+ this.ready = !r || o, (c || e) && this.effectsCleanups.forEach((e) => z(e) && e(this)), n || (e && (t.innerHTML = this.html, this.words.length = this.chars.length = 0), this.splitNode(t), this.cache = t.innerHTML), c && (n && (t.innerHTML = this.cache), this.lines.length = 0, i && (this.words = Yn(t, Vn))), a && (c || i) && (this.chars = Yn(t, Hn));
1775
1778
  let l = this.words.length ? this.words : this.chars, u, d = 0;
1776
1779
  for (let e = 0, t = l.length; e < t; e++) {
1777
1780
  let t = l[e], { top: n, height: r } = t.getBoundingClientRect();
1778
- !B(u) && n - u > r * .5 && d++, t.setAttribute(Vn, `${d}`);
1779
- let i = t.querySelectorAll(`[${Vn}]`), a = i.length;
1780
- for (; a--;) i[a].setAttribute(Vn, `${d}`);
1781
+ !B(u) && n - u > r * .5 && d++, t.setAttribute(Un, `${d}`);
1782
+ let i = t.querySelectorAll(`[${Un}]`), a = i.length;
1783
+ for (; a--;) i[a].setAttribute(Un, `${d}`);
1781
1784
  u = n;
1782
1785
  }
1783
1786
  if (c) {
1784
1787
  let e = s.createDocumentFragment(), n = /* @__PURE__ */ new Set(), o = [];
1785
1788
  for (let e = 0; e < d + 1; e++) {
1786
1789
  let r = t.cloneNode(!0);
1787
- Xn(r, e, /* @__PURE__ */ new Set()).forEach((e) => {
1790
+ Qn(r, e, /* @__PURE__ */ new Set()).forEach((e) => {
1788
1791
  let t = e.parentNode;
1789
1792
  t && (e.nodeType === 1 && n.add(t), t.removeChild(e));
1790
1793
  }), o.push(r);
1791
1794
  }
1792
- n.forEach(Yn);
1793
- for (let t = 0, n = o.length; t < n; t++) Qn(r, this.lines, o[t], e, Rn, this.debug, t);
1794
- t.innerHTML = "", t.appendChild(e), i && (this.words = qn(t, zn)), a && (this.chars = qn(t, Bn));
1795
+ n.forEach(Zn);
1796
+ for (let t = 0, n = o.length; t < n; t++) er(r, this.lines, o[t], e, Bn, this.debug, t);
1797
+ t.innerHTML = "", t.appendChild(e), i && (this.words = Yn(t, Vn)), a && (this.chars = Yn(t, Hn));
1795
1798
  }
1796
1799
  if (this.linesOnly) {
1797
1800
  let e = this.words, t = e.length;
@@ -1803,27 +1806,27 @@ var tn = (e, t) => {
1803
1806
  }
1804
1807
  if (this.accessible && (c || !n)) {
1805
1808
  let e = s.createElement("span");
1806
- e.style.cssText = "position:absolute;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);width:1px;height:1px;white-space:nowrap;", e.innerHTML = this.html, t.insertBefore(e, t.firstChild), this.lines.forEach(Kn), this.words.forEach(Kn), this.chars.forEach(Kn);
1809
+ e.style.cssText = "position:absolute;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);width:1px;height:1px;white-space:nowrap;", e.innerHTML = this.html, t.insertBefore(e, t.firstChild), this.lines.forEach(Jn), this.words.forEach(Jn), this.chars.forEach(Jn);
1807
1810
  }
1808
1811
  return this.width = t.offsetWidth, (c || e) && this.effects.forEach((e, t) => this.effectsCleanups[t] = e(this)), this;
1809
1812
  }
1810
1813
  refresh() {
1811
1814
  this.split(!0);
1812
1815
  }
1813
- }, er = (e, t) => new $n(e, t), tr = "1.3.26";
1814
- function nr(e, t, n) {
1816
+ }, nr = (e, t) => new tr(e, t), rr = "1.3.26";
1817
+ function ir(e, t, n) {
1815
1818
  return Math.max(e, Math.min(t, n));
1816
1819
  }
1817
- function rr(e, t, n) {
1820
+ function ar(e, t, n) {
1818
1821
  return (1 - n) * e + n * t;
1819
1822
  }
1820
- function ir(e, t, n, r) {
1821
- return rr(e, t, 1 - Math.exp(-n * r));
1823
+ function or(e, t, n, r) {
1824
+ return ar(e, t, 1 - Math.exp(-n * r));
1822
1825
  }
1823
- function ar(e, t) {
1826
+ function sr(e, t) {
1824
1827
  return (e % t + t) % t;
1825
1828
  }
1826
- var or = class {
1829
+ var cr = class {
1827
1830
  isRunning = !1;
1828
1831
  value = 0;
1829
1832
  from = 0;
@@ -1838,11 +1841,11 @@ var or = class {
1838
1841
  let t = !1;
1839
1842
  if (this.duration && this.easing) {
1840
1843
  this.currentTime += e;
1841
- let n = nr(0, this.currentTime / this.duration, 1);
1844
+ let n = ir(0, this.currentTime / this.duration, 1);
1842
1845
  t = n >= 1;
1843
1846
  let r = t ? 1 : this.easing(n);
1844
1847
  this.value = this.from + (this.to - this.from) * r;
1845
- } else this.lerp ? (this.value = ir(this.value, this.to, this.lerp * 60, e), Math.round(this.value) === Math.round(this.to) && (this.value = this.to, t = !0)) : (this.value = this.to, t = !0);
1848
+ } else this.lerp ? (this.value = or(this.value, this.to, this.lerp * 60, e), Math.round(this.value) === Math.round(this.to) && (this.value = this.to, t = !0)) : (this.value = this.to, t = !0);
1846
1849
  t && this.stop(), this.onUpdate?.(this.value, t);
1847
1850
  }
1848
1851
  stop() {
@@ -1852,7 +1855,7 @@ var or = class {
1852
1855
  this.from = this.value = e, this.to = t, this.lerp = n, this.duration = r, this.easing = i, this.currentTime = 0, this.isRunning = !0, a?.(), this.onUpdate = o;
1853
1856
  }
1854
1857
  };
1855
- function sr(e, t) {
1858
+ function lr(e, t) {
1856
1859
  let n;
1857
1860
  return function(...r) {
1858
1861
  clearTimeout(n), n = setTimeout(() => {
@@ -1860,7 +1863,7 @@ function sr(e, t) {
1860
1863
  }, t);
1861
1864
  };
1862
1865
  }
1863
- var cr = class {
1866
+ var ur = class {
1864
1867
  width = 0;
1865
1868
  height = 0;
1866
1869
  scrollHeight = 0;
@@ -1869,7 +1872,7 @@ var cr = class {
1869
1872
  wrapperResizeObserver;
1870
1873
  contentResizeObserver;
1871
1874
  constructor(e, t, { autoResize: n = !0, debounce: r = 250 } = {}) {
1872
- this.wrapper = e, this.content = t, n && (this.debouncedResize = sr(this.resize, r), this.wrapper instanceof Window ? window.addEventListener("resize", this.debouncedResize) : (this.wrapperResizeObserver = new ResizeObserver(this.debouncedResize), this.wrapperResizeObserver.observe(this.wrapper)), this.contentResizeObserver = new ResizeObserver(this.debouncedResize), this.contentResizeObserver.observe(this.content)), this.resize();
1875
+ this.wrapper = e, this.content = t, n && (this.debouncedResize = lr(this.resize, r), this.wrapper instanceof Window ? window.addEventListener("resize", this.debouncedResize) : (this.wrapperResizeObserver = new ResizeObserver(this.debouncedResize), this.wrapperResizeObserver.observe(this.wrapper)), this.contentResizeObserver = new ResizeObserver(this.debouncedResize), this.contentResizeObserver.observe(this.content)), this.resize();
1873
1876
  }
1874
1877
  destroy() {
1875
1878
  this.wrapperResizeObserver?.disconnect(), this.contentResizeObserver?.disconnect(), this.wrapper === window && this.debouncedResize && window.removeEventListener("resize", this.debouncedResize);
@@ -1889,7 +1892,7 @@ var cr = class {
1889
1892
  y: this.scrollHeight - this.height
1890
1893
  };
1891
1894
  }
1892
- }, lr = class {
1895
+ }, dr = class {
1893
1896
  events = {};
1894
1897
  emit(e, ...t) {
1895
1898
  let n = this.events[e] || [];
@@ -1906,11 +1909,11 @@ var cr = class {
1906
1909
  destroy() {
1907
1910
  this.events = {};
1908
1911
  }
1909
- }, ur = 100 / 6, dr = { passive: !1 };
1910
- function fr(e, t) {
1911
- return e === 1 ? ur : e === 2 ? t : 1;
1912
+ }, fr = 100 / 6, pr = { passive: !1 };
1913
+ function mr(e, t) {
1914
+ return e === 1 ? fr : e === 2 ? t : 1;
1912
1915
  }
1913
- var pr = class {
1916
+ var hr = class {
1914
1917
  touchStart = {
1915
1918
  x: 0,
1916
1919
  y: 0
@@ -1923,18 +1926,18 @@ var pr = class {
1923
1926
  width: 0,
1924
1927
  height: 0
1925
1928
  };
1926
- emitter = new lr();
1929
+ emitter = new dr();
1927
1930
  constructor(e, t = {
1928
1931
  wheelMultiplier: 1,
1929
1932
  touchMultiplier: 1
1930
1933
  }) {
1931
- this.element = e, this.options = t, window.addEventListener("resize", this.onWindowResize), this.onWindowResize(), this.element.addEventListener("wheel", this.onWheel, dr), this.element.addEventListener("touchstart", this.onTouchStart, dr), this.element.addEventListener("touchmove", this.onTouchMove, dr), this.element.addEventListener("touchend", this.onTouchEnd, dr);
1934
+ this.element = e, this.options = t, window.addEventListener("resize", this.onWindowResize), this.onWindowResize(), this.element.addEventListener("wheel", this.onWheel, pr), this.element.addEventListener("touchstart", this.onTouchStart, pr), this.element.addEventListener("touchmove", this.onTouchMove, pr), this.element.addEventListener("touchend", this.onTouchEnd, pr);
1932
1935
  }
1933
1936
  on(e, t) {
1934
1937
  return this.emitter.on(e, t);
1935
1938
  }
1936
1939
  destroy() {
1937
- this.emitter.destroy(), window.removeEventListener("resize", this.onWindowResize), this.element.removeEventListener("wheel", this.onWheel, dr), this.element.removeEventListener("touchstart", this.onTouchStart, dr), this.element.removeEventListener("touchmove", this.onTouchMove, dr), this.element.removeEventListener("touchend", this.onTouchEnd, dr);
1940
+ this.emitter.destroy(), window.removeEventListener("resize", this.onWindowResize), this.element.removeEventListener("wheel", this.onWheel, pr), this.element.removeEventListener("touchstart", this.onTouchStart, pr), this.element.removeEventListener("touchmove", this.onTouchMove, pr), this.element.removeEventListener("touchend", this.onTouchEnd, pr);
1938
1941
  }
1939
1942
  onTouchStart = (e) => {
1940
1943
  let { clientX: t, clientY: n } = e.targetTouches ? e.targetTouches[0] : e;
@@ -1966,7 +1969,7 @@ var pr = class {
1966
1969
  });
1967
1970
  };
1968
1971
  onWheel = (e) => {
1969
- let { deltaX: t, deltaY: n, deltaMode: r } = e, i = fr(r, this.window.width), a = fr(r, this.window.height);
1972
+ let { deltaX: t, deltaY: n, deltaMode: r } = e, i = mr(r, this.window.width), a = mr(r, this.window.height);
1970
1973
  t *= i, n *= a, t *= this.options.wheelMultiplier, n *= this.options.wheelMultiplier, this.emitter.emit("scroll", {
1971
1974
  deltaX: t,
1972
1975
  deltaY: n,
@@ -1979,7 +1982,7 @@ var pr = class {
1979
1982
  height: window.innerHeight
1980
1983
  };
1981
1984
  };
1982
- }, mr = (e) => Math.min(1, 1.001 - 2 ** (-10 * e)), hr = class {
1985
+ }, gr = (e) => Math.min(1, 1.001 - 2 ** (-10 * e)), _r = class {
1983
1986
  _isScrolling = !1;
1984
1987
  _isStopped = !1;
1985
1988
  _isLocked = !1;
@@ -1998,12 +2001,12 @@ var pr = class {
1998
2001
  options;
1999
2002
  targetScroll;
2000
2003
  animatedScroll;
2001
- animate = new or();
2002
- emitter = new lr();
2004
+ animate = new cr();
2005
+ emitter = new dr();
2003
2006
  dimensions;
2004
2007
  virtualScroll;
2005
2008
  constructor({ wrapper: e = window, content: t = document.documentElement, eventsTarget: n = e, smoothWheel: r = !0, syncTouch: i = !1, syncTouchLerp: a = .075, touchInertiaExponent: o = 1.7, duration: s, easing: c, lerp: l = .1, infinite: u = !1, orientation: d = "vertical", gestureOrientation: f = d === "horizontal" ? "both" : "vertical", touchMultiplier: p = 1, wheelMultiplier: m = 1, autoResize: h = !0, prevent: g, virtualScroll: _, overscroll: v = !0, autoRaf: y = !1, anchors: b = !1, autoToggle: x = !1, allowNestedScroll: S = !1, __experimental__naiveDimensions: C = !1, naiveDimensions: w = C, stopInertiaOnNavigate: T = !1, respectReducedMotion: E = !0 } = {}) {
2006
- window.lenisVersion = tr, window.lenis || (window.lenis = {}), window.lenis.version = tr, d === "horizontal" && (window.lenis.horizontal = !0), i === !0 && (window.lenis.touch = !0), this.isIos = /(iPad|iPhone|iPod)/g.test(navigator.userAgent), (!e || e === document.documentElement) && (e = window), typeof s == "number" && typeof c != "function" ? c = mr : typeof c == "function" && typeof s != "number" && (s = 1), this.options = {
2009
+ window.lenisVersion = rr, window.lenis || (window.lenis = {}), window.lenis.version = rr, d === "horizontal" && (window.lenis.horizontal = !0), i === !0 && (window.lenis.touch = !0), this.isIos = /(iPad|iPhone|iPod)/g.test(navigator.userAgent), (!e || e === document.documentElement) && (e = window), typeof s == "number" && typeof c != "function" ? c = gr : typeof c == "function" && typeof s != "number" && (s = 1), this.options = {
2007
2010
  wrapper: e,
2008
2011
  content: t,
2009
2012
  eventsTarget: n,
@@ -2030,7 +2033,7 @@ var pr = class {
2030
2033
  naiveDimensions: w,
2031
2034
  stopInertiaOnNavigate: T,
2032
2035
  respectReducedMotion: E
2033
- }, this.dimensions = new cr(e, t, { autoResize: h }), this.updateClassName(), this.targetScroll = this.animatedScroll = this.actualScroll, this.options.wrapper.addEventListener("scroll", this.onNativeScroll), this.options.wrapper.addEventListener("scrollend", this.onScrollEnd, { capture: !0 }), (this.options.anchors || this.options.stopInertiaOnNavigate) && this.options.wrapper.addEventListener("click", this.onClick), this.options.wrapper.addEventListener("pointerdown", this.onPointerDown), this.virtualScroll = new pr(n, {
2036
+ }, this.dimensions = new ur(e, t, { autoResize: h }), this.updateClassName(), this.targetScroll = this.animatedScroll = this.actualScroll, this.options.wrapper.addEventListener("scroll", this.onNativeScroll), this.options.wrapper.addEventListener("scrollend", this.onScrollEnd, { capture: !0 }), (this.options.anchors || this.options.stopInertiaOnNavigate) && this.options.wrapper.addEventListener("click", this.onClick), this.options.wrapper.addEventListener("pointerdown", this.onPointerDown), this.virtualScroll = new hr(n, {
2034
2037
  touchMultiplier: p,
2035
2038
  wheelMultiplier: m
2036
2039
  }), this.virtualScroll.on("scroll", this.onVirtualScroll), this.options.autoToggle && (this.checkOverflow(), this.rootElement.addEventListener("transitionend", this.onTransitionEnd)), this.options.autoRaf && (this._rafId = requestAnimationFrame(this.raf));
@@ -2229,7 +2232,7 @@ var pr = class {
2229
2232
  let e = f - this.animatedScroll;
2230
2233
  e > this.limit / 2 ? f -= this.limit : e < -this.limit / 2 && (f += this.limit);
2231
2234
  }
2232
- } else f = nr(0, f, this.limit);
2235
+ } else f = ir(0, f, this.limit);
2233
2236
  if (f === this.targetScroll) {
2234
2237
  c?.(this), l?.(this);
2235
2238
  return;
@@ -2240,7 +2243,7 @@ var pr = class {
2240
2243
  });
2241
2244
  return;
2242
2245
  }
2243
- i || (this.targetScroll = f), typeof o == "number" && typeof s != "function" ? s = mr : typeof s == "function" && typeof o != "number" && (o = 1), this.animate.fromTo(this.animatedScroll, f, {
2246
+ i || (this.targetScroll = f), typeof o == "number" && typeof s != "function" ? s = gr : typeof s == "function" && typeof o != "number" && (o = 1), this.animate.fromTo(this.animatedScroll, f, {
2244
2247
  duration: o,
2245
2248
  easing: s,
2246
2249
  lerp: a,
@@ -2299,7 +2302,7 @@ var pr = class {
2299
2302
  return this.isHorizontal ? e.scrollX ?? e.scrollLeft : e.scrollY ?? e.scrollTop;
2300
2303
  }
2301
2304
  get scroll() {
2302
- return this.options.infinite ? ar(this.animatedScroll, this.limit) : this.animatedScroll;
2305
+ return this.options.infinite ? sr(this.animatedScroll, this.limit) : this.animatedScroll;
2303
2306
  }
2304
2307
  get progress() {
2305
2308
  return this.limit === 0 ? 1 : this.scroll / this.limit;
@@ -2340,7 +2343,7 @@ var pr = class {
2340
2343
  cleanUpClassName() {
2341
2344
  for (let e of Array.from(this.rootElement.classList)) (e === "lenis" || e.startsWith("lenis-")) && this.rootElement.classList.remove(e);
2342
2345
  }
2343
- }, gr = [
2346
+ }, vr = [
2344
2347
  "linear",
2345
2348
  "outQuad",
2346
2349
  "outCubic",
@@ -2349,17 +2352,19 @@ var pr = class {
2349
2352
  "outBack",
2350
2353
  "outElastic",
2351
2354
  "outBounce"
2352
- ], _r = n({
2355
+ ], yr = n({
2356
+ anchorOffset: 0,
2357
+ anchorScroll: !1,
2353
2358
  duration: 600,
2354
2359
  ease: "outExpo",
2355
2360
  reducedMotion: "reduce",
2356
2361
  smoothScroll: !1,
2357
2362
  smoothScrollLerp: .1
2358
2363
  });
2359
- function vr(e) {
2360
- Object.assign(_r, e);
2364
+ function br(e) {
2365
+ Object.assign(yr, e);
2361
2366
  }
2362
- var yr = {
2367
+ var xr = {
2363
2368
  blink: {
2364
2369
  alternate: !0,
2365
2370
  category: "ambient",
@@ -2401,6 +2406,13 @@ var yr = {
2401
2406
  category: "emphasis",
2402
2407
  to: { y: -6 }
2403
2408
  },
2409
+ marquee: {
2410
+ category: "ambient",
2411
+ duration: 2e4,
2412
+ ease: "linear",
2413
+ loop: !0,
2414
+ marquee: !0
2415
+ },
2404
2416
  pulse: {
2405
2417
  alternate: !0,
2406
2418
  category: "ambient",
@@ -2411,13 +2423,6 @@ var yr = {
2411
2423
  },
2412
2424
  loop: !0
2413
2425
  },
2414
- "slide-down": {
2415
- category: "enter",
2416
- from: {
2417
- opacity: 0,
2418
- y: -32
2419
- }
2420
- },
2421
2426
  shake: {
2422
2427
  category: "ambient",
2423
2428
  ease: "linear",
@@ -2434,6 +2439,17 @@ var yr = {
2434
2439
  },
2435
2440
  loop: !0
2436
2441
  },
2442
+ shrink: {
2443
+ category: "emphasis",
2444
+ to: { scale: .95 }
2445
+ },
2446
+ "slide-down": {
2447
+ category: "enter",
2448
+ from: {
2449
+ opacity: 0,
2450
+ y: -32
2451
+ }
2452
+ },
2437
2453
  "slide-left": {
2438
2454
  category: "enter",
2439
2455
  from: {
@@ -2448,10 +2464,6 @@ var yr = {
2448
2464
  x: -32
2449
2465
  }
2450
2466
  },
2451
- shrink: {
2452
- category: "emphasis",
2453
- to: { scale: .95 }
2454
- },
2455
2467
  "slide-up": {
2456
2468
  category: "enter",
2457
2469
  from: {
@@ -2489,76 +2501,88 @@ var yr = {
2489
2501
  scale: .8
2490
2502
  }
2491
2503
  }
2492
- }, br = {
2504
+ }, Sr = {
2493
2505
  blur: 0,
2494
2506
  opacity: 1,
2495
2507
  rotate: 0,
2496
2508
  scale: 1,
2509
+ scaleX: 1,
2510
+ scaleY: 1,
2497
2511
  x: 0,
2498
2512
  y: 0
2499
- }, xr = {
2513
+ }, Cr = [
2514
+ "blur",
2515
+ "scale",
2516
+ "scaleX",
2517
+ "scaleY"
2518
+ ], wr = {
2500
2519
  center: .5,
2501
2520
  top: 0
2502
- }, Sr = 4, Cr = /* @__PURE__ */ new WeakMap(), wr = /* @__PURE__ */ new WeakMap();
2503
- function Tr({ from: e, to: t }, n) {
2504
- let r = {};
2505
- for (let i of Object.keys(br)) {
2506
- let a = e?.[i] ?? br[i], o = t?.[i] ?? br[i];
2507
- if (a === o) continue;
2508
- let s = o + (o - a) * Sr, c = n ? [
2509
- a,
2510
- o,
2511
- i === "blur" || i === "scale" ? Math.max(0, s) : s
2512
- ] : [a, o];
2513
- switch (i) {
2514
- case "blur":
2515
- r.filter = c.map((e) => `blur(${e}px)`);
2516
- break;
2517
- case "x":
2518
- r.translateX = c;
2519
- break;
2520
- case "y":
2521
- r.translateY = c;
2522
- break;
2523
- default: r[i] = c;
2521
+ }, Tr = 4, Er = /* @__PURE__ */ new WeakMap(), Dr = /* @__PURE__ */ new WeakMap();
2522
+ function Or({ from: e, steps: t = [], to: n }, r) {
2523
+ let i = {};
2524
+ for (let a of Object.keys(Sr)) {
2525
+ let o = [
2526
+ e,
2527
+ ...t,
2528
+ n
2529
+ ].map((e) => e?.[a] ?? Sr[a]), s = o[0], c = o.at(-1);
2530
+ if (!o.every((e) => e === s)) {
2531
+ if (r) {
2532
+ let e = c + (c - s) * Tr;
2533
+ o.push(Cr.includes(a) ? Math.max(0, e) : e);
2534
+ }
2535
+ switch (a) {
2536
+ case "blur":
2537
+ i.filter = o.map((e) => `blur(${e}px)`);
2538
+ break;
2539
+ case "x":
2540
+ i.translateX = o;
2541
+ break;
2542
+ case "y":
2543
+ i.translateY = o;
2544
+ break;
2545
+ default: i[a] = o;
2546
+ }
2524
2547
  }
2525
2548
  }
2526
- return r;
2549
+ return i;
2527
2550
  }
2528
- function Er(e) {
2551
+ function kr(e) {
2529
2552
  return e.preset === "custom" ? {
2530
2553
  category: "enter",
2531
2554
  from: e.from,
2555
+ steps: e.keyframes,
2532
2556
  to: e.to
2533
- } : yr[e.preset];
2557
+ } : xr[e.preset];
2534
2558
  }
2535
- function Dr({ options: e, preset: t, trigger: n }) {
2536
- return n === "scroll" && e.scrollMode === "continue" && !t.keyframes && !t.count;
2559
+ function Ar({ options: e, preset: t, trigger: n }) {
2560
+ return n === "scroll" && e.scrollMode === "continue" && !t.keyframes && !t.marquee && !t.count;
2537
2561
  }
2538
- function Or() {
2539
- return _r.reducedMotion === "reduce" && typeof matchMedia < "u" && matchMedia("(prefers-reduced-motion: reduce)").matches;
2562
+ function jr() {
2563
+ return yr.reducedMotion === "reduce" && typeof matchMedia < "u" && matchMedia("(prefers-reduced-motion: reduce)").matches;
2540
2564
  }
2541
- function kr(e) {
2565
+ function Mr(e) {
2542
2566
  let { state: t, ...n } = e;
2543
2567
  return JSON.stringify(n);
2544
2568
  }
2545
- function Ar({ options: e, preset: t, reduced: n }) {
2569
+ function Nr({ options: e, preset: t, reduced: n }) {
2546
2570
  return n ? !1 : e.loop === void 0 ? t.loop ?? !1 : e.loop < 0 || e.loop;
2547
2571
  }
2548
- function jr({ options: e, reduced: t }) {
2572
+ function Pr({ options: e, reduced: t }) {
2549
2573
  return t ? void 0 : e.stagger ?? (e.split ? 30 : void 0);
2550
2574
  }
2551
- function Mr(e, t = e.options.delay ?? 0) {
2575
+ function Fr(e, t = e.options.delay ?? 0) {
2552
2576
  if (e.reduced) return 0;
2553
- let n = jr(e);
2554
- return n === void 0 ? t : Mn(n, {
2577
+ let n = Pr(e);
2578
+ return n === void 0 ? t : Pn(n, {
2555
2579
  from: e.options.staggerFrom ?? "first",
2556
2580
  start: t
2557
2581
  });
2558
2582
  }
2559
- function Nr(e, t, n, r = e.options.delay ?? 0) {
2583
+ function Ir(e, t, n, r = e.options.delay ?? 0) {
2560
2584
  if (e.reduced) return 0;
2561
- let i = jr(e) ?? 0;
2585
+ let i = Pr(e) ?? 0;
2562
2586
  switch (e.options.staggerFrom) {
2563
2587
  case "last": return r + (n - 1 - t) * i;
2564
2588
  case "center": return r + Math.abs(t - (n - 1) / 2) * i;
@@ -2566,55 +2590,55 @@ function Nr(e, t, n, r = e.options.delay ?? 0) {
2566
2590
  default: return r + t * i;
2567
2591
  }
2568
2592
  }
2569
- function Pr(e) {
2593
+ function Lr(e) {
2570
2594
  let t = e.closest("[data-scroll-root]");
2571
2595
  if (t) return t;
2572
2596
  for (let t = e.parentElement; t; t = t.parentElement) if (/auto|scroll|overlay/.test(getComputedStyle(t).overflowY) && t.scrollHeight > t.clientHeight) return t;
2573
2597
  }
2574
- function Fr(e) {
2598
+ function Rr(e) {
2575
2599
  return Math.min(1, Math.max(0, e));
2576
2600
  }
2577
- function Ir(e, t, n) {
2578
- let { options: r } = e, i = t.container.height, a = t.distance || 1, o = Math.max(a - i, 0), s = xr[r.scrollAnchor ?? "top"], c = Fr((r.scrollTarget ?? 50) / 100), l = (e, t) => (i + e * o - t * i) / a, u = l(s, 1), d = l(s, c), f = Math.max(d - u, 1e-4);
2601
+ function zr(e, t, n) {
2602
+ let { options: r } = e, i = t.container.height, a = t.distance || 1, o = Math.max(a - i, 0), s = wr[r.scrollAnchor ?? "top"], c = Rr((r.scrollTarget ?? 50) / 100), l = (e, t) => (i + e * o - t * i) / a, u = l(s, 1), d = l(s, c), f = Math.max(d - u, 1e-4);
2579
2603
  if (r.scrollMode === "hold") {
2580
2604
  let e = l(s, Math.max(c, 1 - c)), t = l(1 - s, Math.min(c, 1 - c)), r = l(1 - s, 0);
2581
- return n < e ? Fr((n - u) / Math.max(e - u, 1e-4)) : n <= t ? 1 : Fr((r - n) / Math.max(r - t, 1e-4));
2605
+ return n < e ? Rr((n - u) / Math.max(e - u, 1e-4)) : n <= t ? 1 : Rr((r - n) / Math.max(r - t, 1e-4));
2582
2606
  }
2583
- return Dr(e) ? n < d ? .5 * Fr((n - u) / f) : .5 + .5 * Math.min(1, (n - d) / f / Sr) : Fr((n - u) / f);
2607
+ return Ar(e) ? n < d ? .5 * Rr((n - u) / f) : .5 + .5 * Math.min(1, (n - d) / f / Tr) : Rr((n - u) / f);
2584
2608
  }
2585
- function Lr(e) {
2586
- let t = Pr(e.element), n = gn({
2609
+ function Br(e) {
2610
+ let t = Lr(e.element), n = _n({
2587
2611
  container: t,
2588
2612
  enter: "end start",
2589
2613
  leave: "start end",
2590
- sync: (t) => Ir(e, n, t),
2614
+ sync: (t) => zr(e, n, t),
2591
2615
  target: e.element
2592
2616
  });
2593
- return Rr(e, n, t), n;
2617
+ return Vr(e, n, t), n;
2594
2618
  }
2595
- function Rr({ controller: e, element: t }, n, r) {
2619
+ function Vr({ controller: e, element: t }, n, r) {
2596
2620
  let i = new ResizeObserver(() => n.container.refresh());
2597
2621
  i.observe(t), [...(r ?? document.body).children].forEach((e) => i.observe(e)), e.cleanups.push(() => i.disconnect());
2598
2622
  }
2599
- function zr(e) {
2623
+ function Hr(e) {
2600
2624
  switch (e.trigger) {
2601
2625
  case "mount": return !0;
2602
2626
  case "visible": return e.controller.revealed;
2603
- case "scroll": return Lr(e);
2627
+ case "scroll": return Br(e);
2604
2628
  default: return !1;
2605
2629
  }
2606
2630
  }
2607
- function Br(e) {
2631
+ function Ur(e) {
2608
2632
  let t = new IntersectionObserver((n) => {
2609
- n.some((e) => e.isIntersecting) && (t.disconnect(), e.controller.revealed = !0, ui(e.controller));
2633
+ n.some((e) => e.isIntersecting) && (t.disconnect(), e.controller.revealed = !0, hi(e.controller));
2610
2634
  });
2611
2635
  t.observe(e.element), e.controller.cleanups.push(() => t.disconnect());
2612
2636
  }
2613
- var Vr = /-?\d[\d,]*(\.\d+)?/;
2614
- function Hr(e, t) {
2637
+ var Wr = /-?\d[\d,]*(\.\d+)?/;
2638
+ function Gr(e, t) {
2615
2639
  let n = document.createTreeWalker(e, NodeFilter.SHOW_TEXT);
2616
2640
  for (let e = n.nextNode(); e; e = n.nextNode()) {
2617
- let n = e, r = Vr.exec(n.data);
2641
+ let n = e, r = Wr.exec(n.data);
2618
2642
  if (r) return {
2619
2643
  decimals: r[1] ? r[1].length - 1 : 0,
2620
2644
  from: t,
@@ -2629,7 +2653,7 @@ function Hr(e, t) {
2629
2653
  };
2630
2654
  }
2631
2655
  }
2632
- function Ur(e) {
2656
+ function Kr(e) {
2633
2657
  let t = e.value.toLocaleString("en-US", {
2634
2658
  maximumFractionDigits: e.decimals,
2635
2659
  minimumFractionDigits: e.decimals,
@@ -2637,33 +2661,51 @@ function Ur(e) {
2637
2661
  });
2638
2662
  e.rendered = e.prefix + t + e.suffix, e.node.data = e.rendered;
2639
2663
  }
2640
- function Wr(e) {
2664
+ function qr(e) {
2641
2665
  e.node.data === e.rendered && (e.node.data = e.original);
2642
2666
  }
2643
- function Gr({ controller: e, options: t }, n) {
2644
- let r = (Array.isArray(n) ? n : [n]).map((e) => Hr(e, t.countFrom ?? 0)).filter((e) => !!e);
2645
- return e.cleanups.push(() => r.forEach(Wr)), r;
2667
+ function Jr({ controller: e, options: t }, n) {
2668
+ let r = (Array.isArray(n) ? n : [n]).map((e) => Gr(e, t.countFrom ?? 0)).filter((e) => !!e);
2669
+ return e.cleanups.push(() => r.forEach(qr)), r;
2646
2670
  }
2647
- function Kr(e, t) {
2648
- return Jt(e, {
2671
+ function Yr(e, t) {
2672
+ return Yt(e, {
2649
2673
  ...t,
2650
- onUpdate: () => e.forEach(Ur),
2674
+ onUpdate: () => e.forEach(Kr),
2651
2675
  value: {
2652
2676
  from: (t, n) => e[n].from,
2653
2677
  to: (t, n) => e[n].to
2654
2678
  }
2655
2679
  });
2656
2680
  }
2657
- function qr(e, t, n, r) {
2658
- return t.keyframes ? Dn.animate(e, {
2659
- ...t.keyframes,
2660
- ...n
2661
- }) : Jt(e, {
2662
- ...Tr(t, r),
2663
- ...n
2681
+ function Xr(e) {
2682
+ return { transform: ["translateX(0px)", `translateX(calc(-50% - ${(parseFloat(getComputedStyle(e).columnGap) || 0) / 2}px))`] };
2683
+ }
2684
+ function Zr({ controller: e, element: t }) {
2685
+ let n = t.style.width, r = ei(t).map((e) => {
2686
+ let t = e.cloneNode(!0);
2687
+ return t.setAttribute("aria-hidden", "true"), t;
2688
+ });
2689
+ t.append(...r), t.style.width = "max-content", e.cleanups.push(() => {
2690
+ r.forEach((e) => e.remove()), t.style.width = n;
2664
2691
  });
2665
2692
  }
2666
- function Jr(e) {
2693
+ function Qr({ element: e, options: t, preset: n }, r, i, a) {
2694
+ let o = n.marquee ? Xr(e) : n.keyframes;
2695
+ if (o) {
2696
+ let e = t.stepped ? `steps(${t.stepped})` : i.ease;
2697
+ return kn.animate(r, {
2698
+ ...o,
2699
+ ...i,
2700
+ ease: e
2701
+ });
2702
+ }
2703
+ return Yt(r, {
2704
+ ...Or(n, a),
2705
+ ...i
2706
+ });
2707
+ }
2708
+ function $r(e) {
2667
2709
  return e instanceof HTMLElement && ![
2668
2710
  "LINK",
2669
2711
  "META",
@@ -2672,16 +2714,16 @@ function Jr(e) {
2672
2714
  "TEMPLATE"
2673
2715
  ].includes(e.tagName);
2674
2716
  }
2675
- function Yr(e) {
2676
- return [...e.children].filter(Jr);
2717
+ function ei(e) {
2718
+ return [...e.children].filter($r);
2677
2719
  }
2678
- function Xr(e) {
2720
+ function ti(e) {
2679
2721
  return e.sort((e, t) => e.element.compareDocumentPosition(t.element) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1);
2680
2722
  }
2681
- function Zr({ controller: e, element: t }) {
2682
- return Cr.get(t) === e;
2723
+ function ni({ controller: e, element: t }) {
2724
+ return Er.get(t) === e;
2683
2725
  }
2684
- function Qr({ controller: e }, t) {
2726
+ function ri({ controller: e }, t) {
2685
2727
  for (let n of Array.isArray(t) ? t : [t]) {
2686
2728
  if (getComputedStyle(n).display !== "inline") continue;
2687
2729
  let t = n.style.display;
@@ -2690,114 +2732,114 @@ function Qr({ controller: e }, t) {
2690
2732
  });
2691
2733
  }
2692
2734
  }
2693
- function $r(e, t, n, r = zr(e)) {
2694
- let { controller: i, options: a, preset: o, reduced: s } = e, c = Dr(e), l = o.count ? Gr(e, t) : [];
2695
- o.count || Qr(e, t);
2735
+ function ii(e, t, n, r = Hr(e)) {
2736
+ let { controller: i, options: a, preset: o, reduced: s } = e, c = Ar(e), l = o.count ? Jr(e, t) : [];
2737
+ o.count || ri(e, t);
2696
2738
  let u = {
2697
2739
  alternate: a.alternate ?? o.alternate ?? !1,
2698
2740
  autoplay: r,
2699
2741
  delay: n,
2700
- duration: s ? 0 : a.duration ?? o.duration ?? _r.duration,
2701
- ease: a.ease ?? (c ? "linear" : o.ease ?? _r.ease),
2702
- loop: Ar(e)
2703
- }, d = o.count ? Kr(l, u) : qr(t, o, u, c);
2704
- return l.forEach(Ur), e.trigger === "visible" && !r && d.seek(0), i.animations.push(d), d;
2742
+ duration: s ? 0 : a.duration ?? o.duration ?? yr.duration,
2743
+ ease: a.stepped ? vn(a.stepped) : a.ease ?? (c ? "linear" : o.ease ?? yr.ease),
2744
+ loop: Nr(e)
2745
+ }, d = o.count ? Yr(l, u) : Qr(e, t, u, c);
2746
+ return l.forEach(Kr), e.trigger === "visible" && !r && d.seek(0), i.animations.push(d), d;
2705
2747
  }
2706
- function ei({ controller: e, element: t }, n) {
2748
+ function ai({ controller: e, element: t }, n) {
2707
2749
  let r = new MutationObserver((e) => {
2708
- let t = e.flatMap((e) => [...e.addedNodes]).filter(Jr);
2709
- (t.length || e.some((e) => [...e.removedNodes].some(Jr))) && n(t);
2750
+ let t = e.flatMap((e) => [...e.addedNodes]).filter($r);
2751
+ (t.length || e.some((e) => [...e.removedNodes].some($r))) && n(t);
2710
2752
  });
2711
2753
  r.observe(t, { childList: !0 }), e.cleanups.push(() => r.disconnect());
2712
2754
  }
2713
- function ti(e) {
2714
- $r(e, Yr(e.element), Mr(e)), ei(e, (t) => {
2715
- t.length && $r(e, t, Mr(e, 0));
2716
- }), pi(e);
2755
+ function oi(e) {
2756
+ ii(e, ei(e.element), Fr(e)), ai(e, (t) => {
2757
+ t.length && ii(e, t, Fr(e, 0));
2758
+ }), vi(e);
2717
2759
  }
2718
- function ni(e) {
2760
+ function si(e) {
2719
2761
  let t = new Map(e.map((e) => [e.element, e])), n = new IntersectionObserver((e) => {
2720
- let r = Xr(e.filter((e) => e.isIntersecting).map((e) => t.get(e.target)).filter((e) => !!e && Zr(e)));
2762
+ let r = ti(e.filter((e) => e.isIntersecting).map((e) => t.get(e.target)).filter((e) => !!e && ni(e)));
2721
2763
  r.forEach((e, t) => {
2722
2764
  n.unobserve(e.element);
2723
- let i = setTimeout(() => ui(e.controller), Nr(e, t, r.length, 0));
2765
+ let i = setTimeout(() => hi(e.controller), Ir(e, t, r.length, 0));
2724
2766
  e.controller.cleanups.push(() => clearTimeout(i));
2725
2767
  });
2726
2768
  });
2727
- for (let t of e) $r(t, t.element, t.options.delay ?? 0, !1), n.observe(t.element), t.controller.cleanups.push(() => n.unobserve(t.element));
2769
+ for (let t of e) ii(t, t.element, t.options.delay ?? 0, !1), n.observe(t.element), t.controller.cleanups.push(() => n.unobserve(t.element));
2728
2770
  }
2729
- var ri = /* @__PURE__ */ new WeakMap(), ii = 0, ai = /* @__PURE__ */ new Map();
2730
- function oi(e) {
2731
- return e ? (ri.has(e) || ri.set(e, ii++), String(ri.get(e))) : "none";
2771
+ var ci = /* @__PURE__ */ new WeakMap(), li = 0, ui = /* @__PURE__ */ new Map();
2772
+ function di(e) {
2773
+ return e ? (ci.has(e) || ci.set(e, li++), String(ci.get(e))) : "none";
2732
2774
  }
2733
- function si(e) {
2734
- ai.size || queueMicrotask(ci);
2735
- let t = `${oi(e.element.parentElement)}/${e.controller.key}`;
2736
- ai.set(t, [...ai.get(t) ?? [], e]);
2775
+ function fi(e) {
2776
+ ui.size || queueMicrotask(pi);
2777
+ let t = `${di(e.element.parentElement)}/${e.controller.key}`;
2778
+ ui.set(t, [...ui.get(t) ?? [], e]);
2737
2779
  }
2738
- function ci() {
2739
- let e = [...ai.values()];
2740
- ai = /* @__PURE__ */ new Map();
2780
+ function pi() {
2781
+ let e = [...ui.values()];
2782
+ ui = /* @__PURE__ */ new Map();
2741
2783
  for (let t of e) {
2742
- let e = Xr(t.filter(Zr));
2743
- e.length === 1 ? ti(e[0]) : e[0]?.trigger === "visible" ? ni(e) : e.forEach((t, n) => $r(t, t.element, Nr(t, n, e.length)));
2784
+ let e = ti(t.filter(ni));
2785
+ e.length === 1 ? oi(e[0]) : e[0]?.trigger === "visible" ? si(e) : e.forEach((t, n) => ii(t, t.element, Ir(t, n, e.length)));
2744
2786
  }
2745
2787
  }
2746
- function li({ controller: e, element: t }, n, r) {
2788
+ function mi({ controller: e, element: t }, n, r) {
2747
2789
  for (let i of n) t.addEventListener(i, r), e.cleanups.push(() => t.removeEventListener(i, r));
2748
2790
  }
2749
- function ui(e) {
2791
+ function hi(e) {
2750
2792
  e.animations.forEach((e) => e.play());
2751
2793
  }
2752
- function di(e) {
2794
+ function gi(e) {
2753
2795
  e.animations.forEach((t) => e.looping ? t.pause().seek(0) : t.reverse());
2754
2796
  }
2755
- function fi(e, t, n) {
2797
+ function _i(e, t, n) {
2756
2798
  if (e.state !== t) {
2757
2799
  if (e.state = t, n && !e.looping) {
2758
2800
  e.animations.forEach((e) => e.seek(t ? e.duration : 0));
2759
2801
  return;
2760
2802
  }
2761
- t ? ui(e) : di(e);
2803
+ t ? hi(e) : gi(e);
2762
2804
  }
2763
2805
  }
2764
- function pi(e) {
2806
+ function vi(e) {
2765
2807
  let { controller: t, options: n, trigger: r } = e;
2766
2808
  switch (r) {
2767
2809
  case "hover":
2768
- li(e, ["pointerenter"], () => ui(t)), li(e, ["pointerleave"], () => di(t));
2810
+ mi(e, ["pointerenter"], () => hi(t)), mi(e, ["pointerleave"], () => gi(t));
2769
2811
  break;
2770
2812
  case "press":
2771
- li(e, ["pointerdown"], () => ui(t)), li(e, [
2813
+ mi(e, ["pointerdown"], () => hi(t)), mi(e, [
2772
2814
  "pointerup",
2773
2815
  "pointerleave",
2774
2816
  "pointercancel"
2775
- ], () => di(t));
2817
+ ], () => gi(t));
2776
2818
  break;
2777
2819
  case "focus":
2778
- li(e, ["focusin"], () => ui(t)), li(e, ["focusout"], () => di(t));
2820
+ mi(e, ["focusin"], () => hi(t)), mi(e, ["focusout"], () => gi(t));
2779
2821
  break;
2780
2822
  case "state":
2781
- fi(t, !!n.state, !0);
2823
+ _i(t, !!n.state, !0);
2782
2824
  return;
2783
2825
  case "visible":
2784
- Br(e);
2826
+ Ur(e);
2785
2827
  return;
2786
2828
  default: return;
2787
2829
  }
2788
2830
  t.animations.forEach((e) => e.seek(0));
2789
2831
  }
2790
- function mi(e, t) {
2791
- hi(e);
2832
+ function yi(e, t) {
2833
+ bi(e);
2792
2834
  let n = {
2793
2835
  animations: [],
2794
2836
  cleanups: [],
2795
- key: kr(t),
2837
+ key: Mr(t),
2796
2838
  looping: !1,
2797
2839
  revealed: !1
2798
2840
  };
2799
- Cr.set(e, n);
2800
- let r = Er(t), i = Or();
2841
+ Er.set(e, n);
2842
+ let r = kr(t), i = jr();
2801
2843
  if (!r || i && (r.loop || t.trigger === "scroll")) return;
2802
2844
  let a = {
2803
2845
  controller: n,
@@ -2807,52 +2849,54 @@ function mi(e, t) {
2807
2849
  reduced: i,
2808
2850
  trigger: i && t.trigger === "visible" ? "mount" : t.trigger
2809
2851
  };
2810
- if (n.looping = Ar(a) === !0, t.split && !r.count) n.splitter = er(e, { [t.split]: !0 }), $r(a, n.splitter[t.split], Mr(a));
2811
- else if (t.stagger === void 0) $r(a, e, Mr(a));
2852
+ if (n.looping = Nr(a) === !0, r.marquee) Zr(a), ii(a, e, Fr(a)), ai(a, () => yi(e, t));
2853
+ else if (t.split && !r.count) n.splitter = nr(e, { [t.split]: !0 }), ii(a, n.splitter[t.split], Fr(a));
2854
+ else if (t.stagger === void 0) ii(a, e, Fr(a));
2812
2855
  else if (a.trigger === "mount" || a.trigger === "visible") {
2813
- si(a);
2856
+ fi(a);
2814
2857
  return;
2815
- } else $r(a, Yr(e), Mr(a)), ei(a, () => mi(e, t));
2816
- pi(a);
2858
+ } else ii(a, ei(e), Fr(a)), ai(a, () => yi(e, t));
2859
+ vi(a);
2817
2860
  }
2818
- function hi(e) {
2819
- let t = Cr.get(e);
2820
- t && (t.cleanups.forEach((e) => e()), t.animations.forEach((e) => e.revert()), t.splitter?.revert(), Cr.delete(e));
2861
+ function bi(e) {
2862
+ let t = Er.get(e);
2863
+ t && (t.cleanups.forEach((e) => e()), t.animations.forEach((e) => e.revert()), t.splitter?.revert(), Er.delete(e));
2821
2864
  }
2822
- function gi(e) {
2865
+ function xi(e) {
2823
2866
  for (let t of e) {
2824
- let e = wr.get(t);
2825
- e && mi(t, e);
2867
+ let e = Dr.get(t);
2868
+ e && yi(t, e);
2826
2869
  }
2827
2870
  }
2828
- var _i = {
2871
+ var Si = {
2829
2872
  mounted(e, { value: t }) {
2830
- wr.set(e, t), mi(e, t);
2873
+ Dr.set(e, t), yi(e, t);
2831
2874
  },
2832
2875
  unmounted(e) {
2833
- wr.delete(e), hi(e);
2876
+ Dr.delete(e), bi(e);
2834
2877
  },
2835
2878
  updated(e, { value: t }) {
2836
- wr.set(e, t);
2837
- let n = Cr.get(e);
2838
- if (!n || n.key !== kr(t)) {
2839
- mi(e, t);
2879
+ Dr.set(e, t);
2880
+ let n = Er.get(e);
2881
+ if (!n || n.key !== Mr(t)) {
2882
+ yi(e, t);
2840
2883
  return;
2841
2884
  }
2842
- t.trigger === "state" && fi(n, !!t.state, !1);
2885
+ t.trigger === "state" && _i(n, !!t.state, !1);
2843
2886
  }
2844
2887
  };
2845
- function vi(n) {
2888
+ function Ci(n) {
2846
2889
  return e((e, { slots: a }) => {
2847
2890
  let o = r();
2848
2891
  return i((t) => {
2849
- if (!o.value || !_r.smoothScroll || Or()) return;
2850
- let r = n ? o.value.closest("[data-scroll-root]") ?? void 0 : Pr(o.value);
2892
+ if (!o.value || !yr.smoothScroll || jr()) return;
2893
+ let r = n ? o.value.closest("[data-scroll-root]") ?? void 0 : Lr(o.value);
2851
2894
  if (n && !r) return;
2852
- let i = new hr({
2895
+ let i = new _r({
2896
+ anchors: yr.anchorScroll,
2853
2897
  autoRaf: !0,
2854
2898
  content: r ? o.value : void 0,
2855
- lerp: e.lerp ?? _r.smoothScrollLerp,
2899
+ lerp: e.lerp ?? yr.smoothScrollLerp,
2856
2900
  wrapper: r
2857
2901
  });
2858
2902
  t(() => i.destroy());
@@ -2862,6 +2906,6 @@ function vi(n) {
2862
2906
  props: { lerp: Number }
2863
2907
  });
2864
2908
  }
2865
- var yi = vi(!1);
2909
+ var wi = Ci(!1);
2866
2910
  //#endregion
2867
- export { _r as a, _i as c, vi as i, jt as l, vr as n, yr as o, gr as r, gi as s, yi as t };
2911
+ export { yr as a, Si as c, Ci as i, Mt as l, br as n, xr as o, vr as r, xi as s, wi as t };