gralobe 1.0.3 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/gralobe.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as M from "three";
2
- import { Controls as Or, Vector3 as se, MOUSE as tt, TOUCH as Qe, Quaternion as Yi, Spherical as Zi, Vector2 as de, Ray as kr, Plane as Ir, MathUtils as Lr, Matrix4 as Cn, Object3D as Ur } from "three";
3
- const Xi = { type: "change" }, Pi = { type: "start" }, Tn = { type: "end" }, Mt = new kr(), Wi = new Ir(), Fr = Math.cos(70 * Lr.DEG2RAD), Y = new se(), J = 2 * Math.PI, k = {
2
+ import { Controls as Or, Vector3 as se, MOUSE as tt, TOUCH as Qe, Quaternion as Yi, Spherical as Zi, Vector2 as de, Ray as kr, Plane as Lr, MathUtils as Ir, Matrix4 as Cn, Object3D as Ur } from "three";
3
+ const Xi = { type: "change" }, Pi = { type: "start" }, Tn = { type: "end" }, Mt = new kr(), Wi = new Lr(), Fr = Math.cos(70 * Ir.DEG2RAD), Y = new se(), J = 2 * Math.PI, k = {
4
4
  NONE: -1,
5
5
  ROTATE: 0,
6
6
  DOLLY: 1,
@@ -9,7 +9,7 @@ const Xi = { type: "change" }, Pi = { type: "start" }, Tn = { type: "end" }, Mt
9
9
  TOUCH_PAN: 4,
10
10
  TOUCH_DOLLY_PAN: 5,
11
11
  TOUCH_DOLLY_ROTATE: 6
12
- }, Zt = 1e-6;
12
+ }, Wt = 1e-6;
13
13
  class zr extends Or {
14
14
  /**
15
15
  * Constructs a new controls instance.
@@ -114,7 +114,7 @@ class zr extends Or {
114
114
  const s = this.object.zoom;
115
115
  this.object.zoom = Math.max(this.minZoom, Math.min(this.maxZoom, this.object.zoom / this._scale)), s !== this.object.zoom && (this.object.updateProjectionMatrix(), r = !0);
116
116
  }
117
- return this._scale = 1, this._performCursorZoom = !1, r || this._lastPosition.distanceToSquared(this.object.position) > Zt || 8 * (1 - this._lastQuaternion.dot(this.object.quaternion)) > Zt || this._lastTargetPosition.distanceToSquared(this.target) > Zt ? (this.dispatchEvent(Xi), this._lastPosition.copy(this.object.position), this._lastQuaternion.copy(this.object.quaternion), this._lastTargetPosition.copy(this.target), !0) : !1;
117
+ return this._scale = 1, this._performCursorZoom = !1, r || this._lastPosition.distanceToSquared(this.object.position) > Wt || 8 * (1 - this._lastQuaternion.dot(this.object.quaternion)) > Wt || this._lastTargetPosition.distanceToSquared(this.target) > Wt ? (this.dispatchEvent(Xi), this._lastPosition.copy(this.object.position), this._lastQuaternion.copy(this.object.quaternion), this._lastTargetPosition.copy(this.target), !0) : !1;
118
118
  }
119
119
  _getAutoRotationAngle(e) {
120
120
  return e !== null ? J / 60 * this.autoRotateSpeed * e : J / 60 / 60 * this.autoRotateSpeed;
@@ -459,7 +459,7 @@ function we(a) {
459
459
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
460
460
  return a;
461
461
  }
462
- function An(a, e) {
462
+ function Sn(a, e) {
463
463
  a.prototype = Object.create(e.prototype), a.prototype.constructor = a, a.__proto__ = e;
464
464
  }
465
465
  var he = {
@@ -473,7 +473,7 @@ var he = {
473
473
  duration: 0.5,
474
474
  overwrite: !1,
475
475
  delay: 0
476
- }, Ci, X, z, fe = 1e8, L = 1 / fe, oi = Math.PI * 2, qr = oi / 4, Qr = 0, Sn = Math.sqrt, Jr = Math.cos, es = Math.sin, Z = function(e) {
476
+ }, Ci, X, z, fe = 1e8, I = 1 / fe, oi = Math.PI * 2, qr = oi / 4, Qr = 0, An = Math.sqrt, Jr = Math.cos, es = Math.sin, Z = function(e) {
477
477
  return typeof e == "string";
478
478
  }, V = function(e) {
479
479
  return typeof e == "function";
@@ -485,36 +485,36 @@ var he = {
485
485
  return typeof e == "object";
486
486
  }, ee = function(e) {
487
487
  return e !== !1;
488
- }, Ai = function() {
488
+ }, Si = function() {
489
489
  return typeof window < "u";
490
490
  }, Rt = function(e) {
491
491
  return V(e) || Z(e);
492
492
  }, Dn = typeof ArrayBuffer == "function" && ArrayBuffer.isView || function() {
493
- }, K = Array.isArray, li = /(?:-?\.?\d|\.)+/gi, Mn = /[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g, Je = /[-+=.]*\d+[.e-]*\d*[a-z%]*/g, Xt = /[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi, Rn = /[+-]=-?[.\d]+/, On = /[^,'"\[\]\s]+/gi, ts = /^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i, N, _e, hi, Si, ce = {}, Ft = {}, kn, In = function(e) {
494
- return (Ft = at(e, ce)) && re;
493
+ }, K = Array.isArray, li = /(?:-?\.?\d|\.)+/gi, Mn = /[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g, Je = /[-+=.]*\d+[.e-]*\d*[a-z%]*/g, Kt = /[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi, Rn = /[+-]=-?[.\d]+/, On = /[^,'"\[\]\s]+/gi, ts = /^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i, N, _e, hi, Ai, ce = {}, Nt = {}, kn, Ln = function(e) {
494
+ return (Nt = at(e, ce)) && re;
495
495
  }, Di = function(e, t) {
496
496
  return console.warn("Invalid property", e, "set to", t, "Missing plugin? gsap.registerPlugin()");
497
497
  }, vt = function(e, t) {
498
498
  return !t && console.warn(e);
499
- }, Ln = function(e, t) {
500
- return e && (ce[e] = t) && Ft && (Ft[e] = t) || ce;
499
+ }, In = function(e, t) {
500
+ return e && (ce[e] = t) && Nt && (Nt[e] = t) || ce;
501
501
  }, Et = function() {
502
502
  return 0;
503
503
  }, is = {
504
504
  suppressEvents: !0,
505
505
  isStart: !0,
506
506
  kill: !1
507
- }, kt = {
507
+ }, It = {
508
508
  suppressEvents: !0,
509
509
  kill: !1
510
510
  }, ns = {
511
511
  suppressEvents: !0
512
- }, Mi = {}, Re = [], ci = {}, Un, ae = {}, Wt = {}, Ki = 30, It = [], Ri = "", Oi = function(e) {
512
+ }, Mi = {}, Re = [], ci = {}, Un, ae = {}, qt = {}, Ki = 30, Ut = [], Ri = "", Oi = function(e) {
513
513
  var t = e[0], i, n;
514
514
  if (ve(t) || V(t) || (e = [e]), !(i = (t._gsap || {}).harness)) {
515
- for (n = It.length; n-- && !It[n].targetTest(t); )
515
+ for (n = Ut.length; n-- && !Ut[n].targetTest(t); )
516
516
  ;
517
- i = It[n];
517
+ i = Ut[n];
518
518
  }
519
519
  for (n = e.length; n--; )
520
520
  e[n] && (e[n]._gsap || (e[n]._gsap = new ar(e[n], i))) || e.splice(n, 1);
@@ -536,14 +536,14 @@ var he = {
536
536
  for (var i = t.length, n = 0; e.indexOf(t[n]) < 0 && ++n < i; )
537
537
  ;
538
538
  return n < i;
539
- }, zt = function() {
539
+ }, $t = function() {
540
540
  var e = Re.length, t = Re.slice(0), i, n;
541
541
  for (ci = {}, Re.length = 0, i = 0; i < e; i++)
542
542
  n = t[i], n && n._lazy && (n.render(n._lazy[0], n._lazy[1], !0)._lazy = 0);
543
543
  }, ki = function(e) {
544
544
  return !!(e._initted || e._startAt || e.add);
545
545
  }, zn = function(e, t, i, n) {
546
- Re.length && !X && zt(), e.render(t, i, !!(X && t < 0 && ki(e))), Re.length && !X && zt();
546
+ Re.length && !X && $t(), e.render(t, i, !!(X && t < 0 && ki(e))), Re.length && !X && $t();
547
547
  }, Nn = function(e) {
548
548
  var t = parseFloat(e);
549
549
  return (t || t === 0) && (e + "").match(On).length < 2 ? t : Z(e) ? e.trim() : e;
@@ -566,7 +566,7 @@ var he = {
566
566
  for (var i in t)
567
567
  i !== "__proto__" && i !== "constructor" && i !== "prototype" && (e[i] = ve(t[i]) ? a(e[i] || (e[i] = {}), t[i]) : t[i]);
568
568
  return e;
569
- }, Nt = function(e, t) {
569
+ }, Bt = function(e, t) {
570
570
  var i = {}, n;
571
571
  for (n in e)
572
572
  n in t || (i[n] = e[n]);
@@ -587,7 +587,7 @@ var he = {
587
587
  for (o = t[r]; s && s[r] > o; )
588
588
  s = s._prev;
589
589
  return s ? (t._next = s._next, s._next = t) : (t._next = e[i], e[i] = t), t._next ? t._next._prev = t : e[n] = t, t._prev = s, t.parent = t._dp = e, t;
590
- }, jt = function(e, t, i, n) {
590
+ }, Yt = function(e, t, i, n) {
591
591
  i === void 0 && (i = "_first"), n === void 0 && (n = "_last");
592
592
  var r = t._prev, s = t._next;
593
593
  r ? r._next = s : e[i] === t && (e[i] = s), s ? s._prev = r : e[n] === t && (e[n] = r), t._next = t._prev = t.parent = null;
@@ -603,7 +603,7 @@ var he = {
603
603
  t._dirty = 1, t.totalDuration(), t = t.parent;
604
604
  return e;
605
605
  }, ui = function(e, t, i, n) {
606
- return e._startAt && (X ? e._startAt.revert(kt) : e.vars.immediateRender && !e.vars.autoRevert || e._startAt.render(t, !0, n));
606
+ return e._startAt && (X ? e._startAt.revert(It) : e.vars.immediateRender && !e.vars.autoRevert || e._startAt.render(t, !0, n));
607
607
  }, ls = function a(e) {
608
608
  return !e || e._ts && a(e.parent);
609
609
  }, Qi = function(e) {
@@ -611,27 +611,27 @@ var he = {
611
611
  }, ot = function(e, t) {
612
612
  var i = Math.floor(e = H(e / t));
613
613
  return e && i === e ? i - 1 : i;
614
- }, $t = function(e, t) {
614
+ }, Vt = function(e, t) {
615
615
  return (e - t._start) * t._ts + (t._ts >= 0 ? 0 : t._dirty ? t.totalDuration() : t._tDur);
616
- }, Ht = function(e) {
617
- return e._end = H(e._start + (e._tDur / Math.abs(e._ts || e._rts || L) || 0));
618
- }, Yt = function(e, t) {
616
+ }, Zt = function(e) {
617
+ return e._end = H(e._start + (e._tDur / Math.abs(e._ts || e._rts || I) || 0));
618
+ }, Xt = function(e, t) {
619
619
  var i = e._dp;
620
- return i && i.smoothChildTiming && e._ts && (e._start = H(i._time - (e._ts > 0 ? t / e._ts : ((e._dirty ? e.totalDuration() : e._tDur) - t) / -e._ts)), Ht(e), i._dirty || He(i, e)), e;
620
+ return i && i.smoothChildTiming && e._ts && (e._start = H(i._time - (e._ts > 0 ? t / e._ts : ((e._dirty ? e.totalDuration() : e._tDur) - t) / -e._ts)), Zt(e), i._dirty || He(i, e)), e;
621
621
  }, Vn = function(e, t) {
622
622
  var i;
623
- if ((t._time || !t._dur && t._initted || t._start < e._time && (t._dur || !t.add)) && (i = $t(e.rawTime(), t), (!t._dur || Dt(0, t.totalDuration(), i) - t._tTime > L) && t.render(i, !0)), He(e, t)._dp && e._initted && e._time >= e._dur && e._ts) {
623
+ if ((t._time || !t._dur && t._initted || t._start < e._time && (t._dur || !t.add)) && (i = Vt(e.rawTime(), t), (!t._dur || Dt(0, t.totalDuration(), i) - t._tTime > I) && t.render(i, !0)), He(e, t)._dp && e._initted && e._time >= e._dur && e._ts) {
624
624
  if (e._dur < e.duration())
625
625
  for (i = e; i._dp; )
626
626
  i.rawTime() >= 0 && i.totalTime(i._tTime), i = i._dp;
627
- e._zTime = -L;
627
+ e._zTime = -I;
628
628
  }
629
629
  }, ye = function(e, t, i, n) {
630
- return t.parent && ke(t), t._start = H((Ce(i) ? i : i || e !== N ? pe(e, i, t) : e._time) + t._delay), t._end = H(t._start + (t.totalDuration() / Math.abs(t.timeScale()) || 0)), Bn(e, t, "_first", "_last", e._sort ? "_start" : 0), di(t) || (e._recent = t), n || Vn(e, t), e._ts < 0 && Yt(e, e._tTime), e;
630
+ return t.parent && ke(t), t._start = H((Ce(i) ? i : i || e !== N ? pe(e, i, t) : e._time) + t._delay), t._end = H(t._start + (t.totalDuration() / Math.abs(t.timeScale()) || 0)), Bn(e, t, "_first", "_last", e._sort ? "_start" : 0), di(t) || (e._recent = t), n || Vn(e, t), e._ts < 0 && Xt(e, e._tTime), e;
631
631
  }, Gn = function(e, t) {
632
632
  return (ce.ScrollTrigger || Di("scrollTrigger", t)) && ce.ScrollTrigger.create(t, e);
633
633
  }, jn = function(e, t, i, n, r) {
634
- if (Li(e, t, r), !e._initted)
634
+ if (Ii(e, t, r), !e._initted)
635
635
  return 1;
636
636
  if (!i && e._pt && !X && (e._dur && e.vars.lazy !== !1 || !e._dur && e.vars.lazy) && Un !== oe.frame)
637
637
  return Re.push(e), e._lazy = [r, n], 1;
@@ -643,10 +643,10 @@ var he = {
643
643
  return t === "isFromStart" || t === "isStart";
644
644
  }, cs = function(e, t, i, n) {
645
645
  var r = e.ratio, s = t < 0 || !t && (!e._start && hs(e) && !(!e._initted && di(e)) || (e._ts < 0 || e._dp._ts < 0) && !di(e)) ? 0 : 1, o = e._rDelay, l = 0, c, h, u;
646
- if (o && e._repeat && (l = Dt(0, e._tDur, t), h = ot(l, o), e._yoyo && h & 1 && (s = 1 - s), h !== ot(e._tTime, o) && (r = 1 - s, e.vars.repeatRefresh && e._initted && e.invalidate())), s !== r || X || n || e._zTime === L || !t && e._zTime) {
646
+ if (o && e._repeat && (l = Dt(0, e._tDur, t), h = ot(l, o), e._yoyo && h & 1 && (s = 1 - s), h !== ot(e._tTime, o) && (r = 1 - s, e.vars.repeatRefresh && e._initted && e.invalidate())), s !== r || X || n || e._zTime === I || !t && e._zTime) {
647
647
  if (!e._initted && jn(e, t, n, i, l))
648
648
  return;
649
- for (u = e._zTime, e._zTime = t || (i ? L : 0), i || (i = t && !u), e.ratio = s, e._from && (s = 1 - s), e._time = 0, e._tTime = l, c = e._pt; c; )
649
+ for (u = e._zTime, e._zTime = t || (i ? I : 0), i || (i = t && !u), e.ratio = s, e._from && (s = 1 - s), e._time = 0, e._tTime = l, c = e._pt; c; )
650
650
  c.r(s, c.d), c = c._next;
651
651
  t < 0 && ui(e, t, i, !0), e._onUpdate && !i && le(e, "onUpdate"), l && e._repeat && !i && e.parent && le(e, "onRepeat"), (t >= e._tDur || t < 0) && e.ratio === s && (s && ke(e, 1), !i && !X && (le(e, s ? "onComplete" : "onReverseComplete", !0), e._prom && e._prom()));
652
652
  } else e._zTime || (e._zTime = t);
@@ -666,7 +666,7 @@ var he = {
666
666
  }
667
667
  }, lt = function(e, t, i, n) {
668
668
  var r = e._repeat, s = H(t) || 0, o = e._tTime / e._tDur;
669
- return o && !n && (e._time *= s / e._dur), e._dur = s, e._tDur = r ? r < 0 ? 1e10 : H(s * (r + 1) + e._rDelay * r) : s, o > 0 && !n && Yt(e, e._tTime = e._tDur * o), e.parent && Ht(e), i || He(e.parent, e), e;
669
+ return o && !n && (e._time *= s / e._dur), e._dur = s, e._tDur = r ? r < 0 ? 1e10 : H(s * (r + 1) + e._rDelay * r) : s, o > 0 && !n && Xt(e, e._tTime = e._tDur * o), e.parent && Zt(e), i || He(e.parent, e), e;
670
670
  }, Ji = function(e) {
671
671
  return e instanceof q ? He(e) : lt(e, e._dur);
672
672
  }, ds = {
@@ -684,14 +684,14 @@ var he = {
684
684
  s.immediateRender = ee(o.immediateRender), e < 2 ? s.runBackwards = 1 : s.startAt = t[r - 1];
685
685
  }
686
686
  return new j(t[0], s, t[r + 1]);
687
- }, Le = function(e, t) {
687
+ }, Ie = function(e, t) {
688
688
  return e || e === 0 ? t(e) : t;
689
689
  }, Dt = function(e, t, i) {
690
690
  return i < e ? e : i > t ? t : i;
691
691
  }, W = function(e, t) {
692
692
  return !Z(e) || !(t = ts.exec(e)) ? "" : t[1];
693
693
  }, ps = function(e, t, i) {
694
- return Le(i, function(n) {
694
+ return Ie(i, function(n) {
695
695
  return Dt(e, t, n);
696
696
  });
697
697
  }, pi = [].slice, Hn = function(e, t) {
@@ -702,11 +702,11 @@ var he = {
702
702
  return Z(n) && !t || Hn(n, 1) ? (r = i).push.apply(r, me(n)) : i.push(n);
703
703
  }) || i;
704
704
  }, me = function(e, t, i) {
705
- return z && !t && z.selector ? z.selector(e) : Z(e) && !i && (hi || !ht()) ? pi.call((t || Si).querySelectorAll(e), 0) : K(e) ? fs(e, i) : Hn(e) ? pi.call(e, 0) : e ? [e] : [];
705
+ return z && !t && z.selector ? z.selector(e) : Z(e) && !i && (hi || !ht()) ? pi.call((t || Ai).querySelectorAll(e), 0) : K(e) ? fs(e, i) : Hn(e) ? pi.call(e, 0) : e ? [e] : [];
706
706
  }, fi = function(e) {
707
707
  return e = me(e)[0] || vt("Invalid scope") || {}, function(t) {
708
708
  var i = e.current || e.nativeElement || e;
709
- return me(t, i.querySelectorAll ? i : i === e ? vt("Invalid scope") || Si.createElement("div") : e);
709
+ return me(t, i.querySelectorAll ? i : i === e ? vt("Invalid scope") || Ai.createElement("div") : e);
710
710
  };
711
711
  }, Yn = function(e) {
712
712
  return e.sort(function() {
@@ -731,7 +731,7 @@ var he = {
731
731
  E < d && E--;
732
732
  }
733
733
  for (g = s[d] = [], _ = l ? Math.min(E, d) * h - 0.5 : n % E, y = E === fe ? 0 : l ? d * u / E - 0.5 : n / E | 0, w = 0, C = fe, P = 0; P < d; P++)
734
- x = P % E - _, b = y - (P / E | 0), g[P] = v = c ? Math.abs(c === "y" ? b : x) : Sn(x * x + b * b), v > w && (w = v), v < C && (C = v);
734
+ x = P % E - _, b = y - (P / E | 0), g[P] = v = c ? Math.abs(c === "y" ? b : x) : An(x * x + b * b), v > w && (w = v), v < C && (C = v);
735
735
  n === "random" && Yn(g), g.max = w - C, g.min = C, g.v = d = (parseFloat(t.amount) || parseFloat(t.each) * (E > d ? d - 1 : c ? c === "y" ? d / E : E : Math.max(E, d / E)) || 0) * (n === "edges" ? -1 : 1), g.b = d < 0 ? r - d : r, g.u = W(t.amount || t.each) || 0, i = i && d < 0 ? nr(i) : i;
736
736
  }
737
737
  return d = (g[p] - g.min) / g.max || 0, H(g.b + (i ? i(d) : d) * g.v) + g.u;
@@ -744,7 +744,7 @@ var he = {
744
744
  };
745
745
  }, Xn = function(e, t) {
746
746
  var i = K(e), n, r;
747
- return !i && ve(e) && (n = i = e.radius || fe, e.values ? (e = me(e.values), (r = !Ce(e[0])) && (n *= n)) : e = mi(e.increment)), Le(t, i ? V(e) ? function(s) {
747
+ return !i && ve(e) && (n = i = e.radius || fe, e.values ? (e = me(e.values), (r = !Ce(e[0])) && (n *= n)) : e = mi(e.increment)), Ie(t, i ? V(e) ? function(s) {
748
748
  return r = e(s), Math.abs(r - s) <= n ? r : s;
749
749
  } : function(s) {
750
750
  for (var o = parseFloat(r ? s.x : s), l = parseFloat(r ? s.y : 0), c = fe, h = 0, u = e.length, p, m; u--; )
@@ -752,7 +752,7 @@ var he = {
752
752
  return h = !n || c <= n ? e[h] : s, r || h === s || Ce(s) ? h : h + W(s);
753
753
  } : mi(e));
754
754
  }, Wn = function(e, t, i, n) {
755
- return Le(K(e) ? !t : i === !0 ? !!(i = 0) : !n, function() {
755
+ return Ie(K(e) ? !t : i === !0 ? !!(i = 0) : !n, function() {
756
756
  return K(e) ? e[~~(Math.random() * e.length)] : (i = i || 1e-5) && (n = i < 1 ? Math.pow(10, (i + "").length - 2) : 1) && Math.floor(Math.round((e - i / 2 + Math.random() * (t - e + i * 0.99)) / i) * i * n) / n;
757
757
  });
758
758
  }, ms = function() {
@@ -770,17 +770,17 @@ var he = {
770
770
  }, _s = function(e, t, i) {
771
771
  return qn(e, t, 0, 1, i);
772
772
  }, Kn = function(e, t, i) {
773
- return Le(i, function(n) {
773
+ return Ie(i, function(n) {
774
774
  return e[~~t(n)];
775
775
  });
776
776
  }, ys = function a(e, t, i) {
777
777
  var n = t - e;
778
- return K(e) ? Kn(e, a(0, e.length), t) : Le(i, function(r) {
778
+ return K(e) ? Kn(e, a(0, e.length), t) : Ie(i, function(r) {
779
779
  return (n + (r - e) % n) % n + e;
780
780
  });
781
781
  }, xs = function a(e, t, i) {
782
782
  var n = t - e, r = n * 2;
783
- return K(e) ? Kn(e, a(0, e.length - 1), t) : Le(i, function(s) {
783
+ return K(e) ? Kn(e, a(0, e.length - 1), t) : Ie(i, function(s) {
784
784
  return s = (r + (s - e) % r) % r || 0, e + (s > n ? r - s : s);
785
785
  });
786
786
  }, wt = function(e) {
@@ -789,7 +789,7 @@ var he = {
789
789
  return i + e.substr(t, e.length - t);
790
790
  }, qn = function(e, t, i, n, r) {
791
791
  var s = t - e, o = n - i;
792
- return Le(r, function(l) {
792
+ return Ie(r, function(l) {
793
793
  return i + ((l - e) / s * o || 0);
794
794
  });
795
795
  }, bs = function a(e, t, i, n) {
@@ -815,13 +815,13 @@ var he = {
815
815
  } else n || (e = at(K(e) ? [] : {}, e));
816
816
  if (!h) {
817
817
  for (l in t)
818
- Ii.call(o, e, l, "get", t[l]);
818
+ Li.call(o, e, l, "get", t[l]);
819
819
  r = function(f) {
820
820
  return zi(f, o) || (s ? e.p : e);
821
821
  };
822
822
  }
823
823
  }
824
- return Le(i, r);
824
+ return Ie(i, r);
825
825
  }, en = function(e, t, i) {
826
826
  var n = e.labels, r = fe, s, o, l;
827
827
  for (s in n)
@@ -830,20 +830,20 @@ var he = {
830
830
  }, le = function(e, t, i) {
831
831
  var n = e.vars, r = n[t], s = z, o = e._ctx, l, c, h;
832
832
  if (r)
833
- return l = n[t + "Params"], c = n.callbackScope || e, i && Re.length && zt(), o && (z = o), h = l ? r.apply(c, l) : r.call(c), z = s, h;
833
+ return l = n[t + "Params"], c = n.callbackScope || e, i && Re.length && $t(), o && (z = o), h = l ? r.apply(c, l) : r.call(c), z = s, h;
834
834
  }, mt = function(e) {
835
835
  return ke(e), e.scrollTrigger && e.scrollTrigger.kill(!!X), e.progress() < 1 && le(e, "onInterrupt"), e;
836
836
  }, et, Qn = [], Jn = function(e) {
837
837
  if (e)
838
- if (e = !e.name && e.default || e, Ai() || e.headless) {
838
+ if (e = !e.name && e.default || e, Si() || e.headless) {
839
839
  var t = e.name, i = V(e), n = t && !i && e.init ? function() {
840
840
  this._props = [];
841
841
  } : e, r = {
842
842
  init: Et,
843
843
  render: zi,
844
- add: Ii,
844
+ add: Li,
845
845
  kill: Us,
846
- modifier: Ls,
846
+ modifier: Is,
847
847
  rawVars: 0
848
848
  }, s = {
849
849
  targetTest: 0,
@@ -855,52 +855,52 @@ var he = {
855
855
  if (ht(), e !== n) {
856
856
  if (ae[t])
857
857
  return;
858
- ue(n, ue(Nt(e, r), s)), at(n.prototype, at(r, Nt(e, s))), ae[n.prop = t] = n, e.targetTest && (It.push(n), Mi[t] = 1), t = (t === "css" ? "CSS" : t.charAt(0).toUpperCase() + t.substr(1)) + "Plugin";
858
+ ue(n, ue(Bt(e, r), s)), at(n.prototype, at(r, Bt(e, s))), ae[n.prop = t] = n, e.targetTest && (Ut.push(n), Mi[t] = 1), t = (t === "css" ? "CSS" : t.charAt(0).toUpperCase() + t.substr(1)) + "Plugin";
859
859
  }
860
- Ln(t, n), e.register && e.register(re, n, ie);
860
+ In(t, n), e.register && e.register(re, n, ie);
861
861
  } else
862
862
  Qn.push(e);
863
- }, I = 255, gt = {
864
- aqua: [0, I, I],
865
- lime: [0, I, 0],
863
+ }, L = 255, gt = {
864
+ aqua: [0, L, L],
865
+ lime: [0, L, 0],
866
866
  silver: [192, 192, 192],
867
867
  black: [0, 0, 0],
868
868
  maroon: [128, 0, 0],
869
869
  teal: [0, 128, 128],
870
- blue: [0, 0, I],
870
+ blue: [0, 0, L],
871
871
  navy: [0, 0, 128],
872
- white: [I, I, I],
872
+ white: [L, L, L],
873
873
  olive: [128, 128, 0],
874
- yellow: [I, I, 0],
875
- orange: [I, 165, 0],
874
+ yellow: [L, L, 0],
875
+ orange: [L, 165, 0],
876
876
  gray: [128, 128, 128],
877
877
  purple: [128, 0, 128],
878
878
  green: [0, 128, 0],
879
- red: [I, 0, 0],
880
- pink: [I, 192, 203],
881
- cyan: [0, I, I],
882
- transparent: [I, I, I, 0]
883
- }, Kt = function(e, t, i) {
884
- return e += e < 0 ? 1 : e > 1 ? -1 : 0, (e * 6 < 1 ? t + (i - t) * e * 6 : e < 0.5 ? i : e * 3 < 2 ? t + (i - t) * (2 / 3 - e) * 6 : t) * I + 0.5 | 0;
879
+ red: [L, 0, 0],
880
+ pink: [L, 192, 203],
881
+ cyan: [0, L, L],
882
+ transparent: [L, L, L, 0]
883
+ }, Qt = function(e, t, i) {
884
+ return e += e < 0 ? 1 : e > 1 ? -1 : 0, (e * 6 < 1 ? t + (i - t) * e * 6 : e < 0.5 ? i : e * 3 < 2 ? t + (i - t) * (2 / 3 - e) * 6 : t) * L + 0.5 | 0;
885
885
  }, er = function(e, t, i) {
886
- var n = e ? Ce(e) ? [e >> 16, e >> 8 & I, e & I] : 0 : gt.black, r, s, o, l, c, h, u, p, m, f;
886
+ var n = e ? Ce(e) ? [e >> 16, e >> 8 & L, e & L] : 0 : gt.black, r, s, o, l, c, h, u, p, m, f;
887
887
  if (!n) {
888
888
  if (e.substr(-1) === "," && (e = e.substr(0, e.length - 1)), gt[e])
889
889
  n = gt[e];
890
890
  else if (e.charAt(0) === "#") {
891
891
  if (e.length < 6 && (r = e.charAt(1), s = e.charAt(2), o = e.charAt(3), e = "#" + r + r + s + s + o + o + (e.length === 5 ? e.charAt(4) + e.charAt(4) : "")), e.length === 9)
892
- return n = parseInt(e.substr(1, 6), 16), [n >> 16, n >> 8 & I, n & I, parseInt(e.substr(7), 16) / 255];
893
- e = parseInt(e.substr(1), 16), n = [e >> 16, e >> 8 & I, e & I];
892
+ return n = parseInt(e.substr(1, 6), 16), [n >> 16, n >> 8 & L, n & L, parseInt(e.substr(7), 16) / 255];
893
+ e = parseInt(e.substr(1), 16), n = [e >> 16, e >> 8 & L, e & L];
894
894
  } else if (e.substr(0, 3) === "hsl") {
895
895
  if (n = f = e.match(li), !t)
896
- l = +n[0] % 360 / 360, c = +n[1] / 100, h = +n[2] / 100, s = h <= 0.5 ? h * (c + 1) : h + c - h * c, r = h * 2 - s, n.length > 3 && (n[3] *= 1), n[0] = Kt(l + 1 / 3, r, s), n[1] = Kt(l, r, s), n[2] = Kt(l - 1 / 3, r, s);
896
+ l = +n[0] % 360 / 360, c = +n[1] / 100, h = +n[2] / 100, s = h <= 0.5 ? h * (c + 1) : h + c - h * c, r = h * 2 - s, n.length > 3 && (n[3] *= 1), n[0] = Qt(l + 1 / 3, r, s), n[1] = Qt(l, r, s), n[2] = Qt(l - 1 / 3, r, s);
897
897
  else if (~e.indexOf("="))
898
898
  return n = e.match(Mn), i && n.length < 4 && (n[3] = 1), n;
899
899
  } else
900
900
  n = e.match(li) || gt.transparent;
901
901
  n = n.map(Number);
902
902
  }
903
- return t && !f && (r = n[0] / I, s = n[1] / I, o = n[2] / I, u = Math.max(r, s, o), p = Math.min(r, s, o), h = (u + p) / 2, u === p ? l = c = 0 : (m = u - p, c = h > 0.5 ? m / (2 - u - p) : m / (u + p), l = u === r ? (s - o) / m + (s < o ? 6 : 0) : u === s ? (o - r) / m + 2 : (r - s) / m + 4, l *= 60), n[0] = ~~(l + 0.5), n[1] = ~~(c * 100 + 0.5), n[2] = ~~(h * 100 + 0.5)), i && n.length < 4 && (n[3] = 1), n;
903
+ return t && !f && (r = n[0] / L, s = n[1] / L, o = n[2] / L, u = Math.max(r, s, o), p = Math.min(r, s, o), h = (u + p) / 2, u === p ? l = c = 0 : (m = u - p, c = h > 0.5 ? m / (2 - u - p) : m / (u + p), l = u === r ? (s - o) / m + (s < o ? 6 : 0) : u === s ? (o - r) / m + 2 : (r - s) / m + 4, l *= 60), n[0] = ~~(l + 0.5), n[1] = ~~(c * 100 + 0.5), n[2] = ~~(h * 100 + 0.5)), i && n.length < 4 && (n[3] = 1), n;
904
904
  }, tr = function(e) {
905
905
  var t = [], i = [], n = -1;
906
906
  return e.split(Oe).forEach(function(r) {
@@ -946,7 +946,7 @@ var he = {
946
946
  return p / (1e3 / (g || 60));
947
947
  },
948
948
  wake: function() {
949
- kn && (!hi && Ai() && (_e = hi = window, Si = _e.document || {}, ce.gsap = re, (_e.gsapVersions || (_e.gsapVersions = [])).push(re.version), In(Ft || _e.GreenSockGlobals || !_e.gsap && _e || {}), Qn.forEach(Jn)), h = typeof requestAnimationFrame < "u" && requestAnimationFrame, l && u.sleep(), c = h || function(g) {
949
+ kn && (!hi && Si() && (_e = hi = window, Ai = _e.document || {}, ce.gsap = re, (_e.gsapVersions || (_e.gsapVersions = [])).push(re.version), Ln(Nt || _e.GreenSockGlobals || !_e.gsap && _e || {}), Qn.forEach(Jn)), h = typeof requestAnimationFrame < "u" && requestAnimationFrame, l && u.sleep(), c = h || function(g) {
950
950
  return setTimeout(g, s - u.time * 1e3 + 1 | 0);
951
951
  }, Pt = 1, f(2));
952
952
  },
@@ -972,7 +972,7 @@ var he = {
972
972
  }, u;
973
973
  })(), ht = function() {
974
974
  return !Pt && oe.wake();
975
- }, S = {}, Es = /^[\d.\-M][\d.\-,\s]/, ws = /["']/g, Ps = function(e) {
975
+ }, A = {}, Es = /^[\d.\-M][\d.\-,\s]/, ws = /["']/g, Ps = function(e) {
976
976
  for (var t = {}, i = e.substr(1, e.length - 3).split(":"), n = i[0], r = 1, s = i.length, o, l, c; r < s; r++)
977
977
  l = i[r], o = r !== s - 1 ? l.lastIndexOf(",") : l.length, c = l.substr(0, o), t[n] = isNaN(c) ? c.replace(ws, "").trim() : +c, n = l.substr(o + 1).trim();
978
978
  return t;
@@ -980,8 +980,8 @@ var he = {
980
980
  var t = e.indexOf("(") + 1, i = e.indexOf(")"), n = e.indexOf("(", t);
981
981
  return e.substring(t, ~n && n < i ? e.indexOf(")", i + 1) : i);
982
982
  }, Ts = function(e) {
983
- var t = (e + "").split("("), i = S[t[0]];
984
- return i && t.length > 1 && i.config ? i.config.apply(null, ~e.indexOf("{") ? [Ps(t[1])] : Cs(e).split(",").map(Nn)) : S._CE && Es.test(e) ? S._CE("", e) : i;
983
+ var t = (e + "").split("("), i = A[t[0]];
984
+ return i && t.length > 1 && i.config ? i.config.apply(null, ~e.indexOf("{") ? [Ps(t[1])] : Cs(e).split(",").map(Nn)) : A._CE && Es.test(e) ? A._CE("", e) : i;
985
985
  }, nr = function(e) {
986
986
  return function(t) {
987
987
  return 1 - e(1 - t);
@@ -990,7 +990,7 @@ var he = {
990
990
  for (var i = e._first, n; i; )
991
991
  i instanceof q ? a(i, t) : i.vars.yoyoEase && (!i._yoyo || !i._repeat) && i._yoyo !== t && (i.timeline ? a(i.timeline, t) : (n = i._ease, i._ease = i._yEase, i._yEase = n, i._yoyo = t)), i = i._next;
992
992
  }, Ye = function(e, t) {
993
- return e && (V(e) ? e : S[e] || Ts(e)) || t;
993
+ return e && (V(e) ? e : A[e] || Ts(e)) || t;
994
994
  }, We = function(e, t, i, n) {
995
995
  i === void 0 && (i = function(l) {
996
996
  return 1 - t(1 - l);
@@ -1003,15 +1003,15 @@ var he = {
1003
1003
  easeInOut: n
1004
1004
  }, s;
1005
1005
  return te(e, function(o) {
1006
- S[o] = ce[o] = r, S[s = o.toLowerCase()] = i;
1006
+ A[o] = ce[o] = r, A[s = o.toLowerCase()] = i;
1007
1007
  for (var l in r)
1008
- S[s + (l === "easeIn" ? ".in" : l === "easeOut" ? ".out" : ".inOut")] = S[o + "." + l] = r[l];
1008
+ A[s + (l === "easeIn" ? ".in" : l === "easeOut" ? ".out" : ".inOut")] = A[o + "." + l] = r[l];
1009
1009
  }), r;
1010
1010
  }, sr = function(e) {
1011
1011
  return function(t) {
1012
1012
  return t < 0.5 ? (1 - e(1 - t * 2)) / 2 : 0.5 + e((t - 0.5) * 2) / 2;
1013
1013
  };
1014
- }, qt = function a(e, t, i) {
1014
+ }, Jt = function a(e, t, i) {
1015
1015
  var n = t >= 1 ? t : 1, r = (i || (e ? 0.3 : 0.45)) / (t < 1 ? t : 1), s = r / oi * (Math.asin(1 / n) || 0), o = function(h) {
1016
1016
  return h === 1 ? 1 : n * Math.pow(2, -10 * h) * es((h - s) * r) + 1;
1017
1017
  }, l = e === "out" ? o : e === "in" ? function(c) {
@@ -1020,7 +1020,7 @@ var he = {
1020
1020
  return r = oi / r, l.config = function(c, h) {
1021
1021
  return a(e, c, h);
1022
1022
  }, l;
1023
- }, Qt = function a(e, t) {
1023
+ }, ei = function a(e, t) {
1024
1024
  t === void 0 && (t = 1.70158);
1025
1025
  var i = function(s) {
1026
1026
  return s ? --s * s * ((t + 1) * s + t) + 1 : 0;
@@ -1043,8 +1043,8 @@ te("Linear,Quad,Cubic,Quart,Quint,Strong", function(a, e) {
1043
1043
  return i < 0.5 ? Math.pow(i * 2, t) / 2 : 1 - Math.pow((1 - i) * 2, t) / 2;
1044
1044
  });
1045
1045
  });
1046
- S.Linear.easeNone = S.none = S.Linear.easeIn;
1047
- We("Elastic", qt("in"), qt("out"), qt());
1046
+ A.Linear.easeNone = A.none = A.Linear.easeIn;
1047
+ We("Elastic", Jt("in"), Jt("out"), Jt());
1048
1048
  (function(a, e) {
1049
1049
  var t = 1 / e, i = 2 * t, n = 2.5 * t, r = function(o) {
1050
1050
  return o < t ? a * o * o : o < i ? a * Math.pow(o - 1.5 / e, 2) + 0.75 : o < n ? a * (o -= 2.25 / e) * o + 0.9375 : a * Math.pow(o - 2.625 / e, 2) + 0.984375;
@@ -1057,22 +1057,22 @@ We("Expo", function(a) {
1057
1057
  return Math.pow(2, 10 * (a - 1)) * a + a * a * a * a * a * a * (1 - a);
1058
1058
  });
1059
1059
  We("Circ", function(a) {
1060
- return -(Sn(1 - a * a) - 1);
1060
+ return -(An(1 - a * a) - 1);
1061
1061
  });
1062
1062
  We("Sine", function(a) {
1063
1063
  return a === 1 ? 1 : -Jr(a * qr) + 1;
1064
1064
  });
1065
- We("Back", Qt("in"), Qt("out"), Qt());
1066
- S.SteppedEase = S.steps = ce.SteppedEase = {
1065
+ We("Back", ei("in"), ei("out"), ei());
1066
+ A.SteppedEase = A.steps = ce.SteppedEase = {
1067
1067
  config: function(e, t) {
1068
1068
  e === void 0 && (e = 1);
1069
- var i = 1 / e, n = e + (t ? 0 : 1), r = t ? 1 : 0, s = 1 - L;
1069
+ var i = 1 / e, n = e + (t ? 0 : 1), r = t ? 1 : 0, s = 1 - I;
1070
1070
  return function(o) {
1071
1071
  return ((n * Dt(0, s, o) | 0) + r) * i;
1072
1072
  };
1073
1073
  }
1074
1074
  };
1075
- st.ease = S["quad.out"];
1075
+ st.ease = A["quad.out"];
1076
1076
  te("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt", function(a) {
1077
1077
  return Ri += a + "," + a + "Params,";
1078
1078
  });
@@ -1094,11 +1094,11 @@ var ar = function(e, t) {
1094
1094
  return this._tTime;
1095
1095
  var r = this._dp;
1096
1096
  if (r && r.smoothChildTiming && this._ts) {
1097
- for (Yt(this, i), !r._dp || r.parent || Vn(r, this); r && r.parent; )
1097
+ for (Xt(this, i), !r._dp || r.parent || Vn(r, this); r && r.parent; )
1098
1098
  r.parent._time !== r._start + (r._ts >= 0 ? r._tTime / r._ts : (r.totalDuration() - r._tTime) / -r._ts) && r.totalTime(r._tTime, !0), r = r.parent;
1099
1099
  !this.parent && this._dp.autoRemoveChildren && (this._ts > 0 && i < this._tDur || this._ts < 0 && i > 0 || !this._tDur && !i) && ye(this._dp, this, this._start - this._delay);
1100
1100
  }
1101
- return (this._tTime !== i || !this._dur && !n || this._initted && Math.abs(this._zTime) === L || !i && !this._initted && (this.add || this._ptLookup)) && (this._ts || (this._pTime = i), zn(this, i, n)), this;
1101
+ return (this._tTime !== i || !this._dur && !n || this._initted && Math.abs(this._zTime) === I || !i && !this._initted && (this.add || this._ptLookup)) && (this._ts || (this._pTime = i), zn(this, i, n)), this;
1102
1102
  }, e.time = function(i, n) {
1103
1103
  return arguments.length ? this.totalTime(Math.min(this.totalDuration(), i + Qi(this)) % (this._dur + this._rDelay) || (i ? this._dur : 0), n) : this._time;
1104
1104
  }, e.totalProgress = function(i, n) {
@@ -1110,13 +1110,13 @@ var ar = function(e, t) {
1110
1110
  return arguments.length ? this.totalTime(this._time + (i - 1) * r, n) : this._repeat ? ot(this._tTime, r) + 1 : 1;
1111
1111
  }, e.timeScale = function(i, n) {
1112
1112
  if (!arguments.length)
1113
- return this._rts === -L ? 0 : this._rts;
1113
+ return this._rts === -I ? 0 : this._rts;
1114
1114
  if (this._rts === i)
1115
1115
  return this;
1116
- var r = this.parent && this._ts ? $t(this.parent._time, this) : this._tTime;
1117
- return this._rts = +i || 0, this._ts = this._ps || i === -L ? 0 : this._rts, this.totalTime(Dt(-Math.abs(this._delay), this.totalDuration(), r), n !== !1), Ht(this), os(this);
1116
+ var r = this.parent && this._ts ? Vt(this.parent._time, this) : this._tTime;
1117
+ return this._rts = +i || 0, this._ts = this._ps || i === -I ? 0 : this._rts, this.totalTime(Dt(-Math.abs(this._delay), this.totalDuration(), r), n !== !1), Zt(this), os(this);
1118
1118
  }, e.paused = function(i) {
1119
- return arguments.length ? (this._ps !== i && (this._ps = i, i ? (this._pTime = this._tTime || Math.max(-this._delay, this.rawTime()), this._ts = this._act = 0) : (ht(), this._ts = this._rts, this.totalTime(this.parent && !this.parent.smoothChildTiming ? this.rawTime() : this._tTime || this._pTime, this.progress() === 1 && Math.abs(this._zTime) !== L && (this._tTime -= L)))), this) : this._ps;
1119
+ return arguments.length ? (this._ps !== i && (this._ps = i, i ? (this._pTime = this._tTime || Math.max(-this._delay, this.rawTime()), this._ts = this._act = 0) : (ht(), this._ts = this._rts, this.totalTime(this.parent && !this.parent.smoothChildTiming ? this.rawTime() : this._tTime || this._pTime, this.progress() === 1 && Math.abs(this._zTime) !== I && (this._tTime -= I)))), this) : this._ps;
1120
1120
  }, e.startTime = function(i) {
1121
1121
  if (arguments.length) {
1122
1122
  this._start = i;
@@ -1128,7 +1128,7 @@ var ar = function(e, t) {
1128
1128
  return this._start + (ee(i) ? this.totalDuration() : this.duration()) / Math.abs(this._ts || 1);
1129
1129
  }, e.rawTime = function(i) {
1130
1130
  var n = this.parent || this._dp;
1131
- return n ? i && (!this._ts || this._repeat && this._time && this.totalProgress() < 1) ? this._tTime % (this._dur + this._rDelay) : this._ts ? $t(n.rawTime(i), this) : this._tTime : this._tTime;
1131
+ return n ? i && (!this._ts || this._repeat && this._time && this.totalProgress() < 1) ? this._tTime % (this._dur + this._rDelay) : this._ts ? Vt(n.rawTime(i), this) : this._tTime : this._tTime;
1132
1132
  }, e.revert = function(i) {
1133
1133
  i === void 0 && (i = ns);
1134
1134
  var n = X;
@@ -1150,7 +1150,7 @@ var ar = function(e, t) {
1150
1150
  }, e.seek = function(i, n) {
1151
1151
  return this.totalTime(pe(this, i), ee(n));
1152
1152
  }, e.restart = function(i, n) {
1153
- return this.play().totalTime(i ? -this._delay : 0, ee(n)), this._dur || (this._zTime = -L), this;
1153
+ return this.play().totalTime(i ? -this._delay : 0, ee(n)), this._dur || (this._zTime = -I), this;
1154
1154
  }, e.play = function(i, n) {
1155
1155
  return i != null && this.seek(i, n), this.reversed(!1).paused(!1);
1156
1156
  }, e.reverse = function(i, n) {
@@ -1160,12 +1160,12 @@ var ar = function(e, t) {
1160
1160
  }, e.resume = function() {
1161
1161
  return this.paused(!1);
1162
1162
  }, e.reversed = function(i) {
1163
- return arguments.length ? (!!i !== this.reversed() && this.timeScale(-this._rts || (i ? -L : 0)), this) : this._rts < 0;
1163
+ return arguments.length ? (!!i !== this.reversed() && this.timeScale(-this._rts || (i ? -I : 0)), this) : this._rts < 0;
1164
1164
  }, e.invalidate = function() {
1165
- return this._initted = this._act = 0, this._zTime = -L, this;
1165
+ return this._initted = this._act = 0, this._zTime = -I, this;
1166
1166
  }, e.isActive = function() {
1167
1167
  var i = this.parent || this._dp, n = this._start, r;
1168
- return !!(!i || this._ts && this._initted && i.isActive() && (r = i.rawTime(!0)) >= n && r < this.endTime(!0) - L);
1168
+ return !!(!i || this._ts && this._initted && i.isActive() && (r = i.rawTime(!0)) >= n && r < this.endTime(!0) - I);
1169
1169
  }, e.eventCallback = function(i, n, r) {
1170
1170
  var s = this.vars;
1171
1171
  return arguments.length > 1 ? (n ? (s[i] = n, r && (s[i + "Params"] = r), i === "onUpdate" && (this._onUpdate = n)) : delete s[i], this) : s[i];
@@ -1197,13 +1197,13 @@ ue(Ct.prototype, {
1197
1197
  _ts: 1,
1198
1198
  _dp: 0,
1199
1199
  ratio: 0,
1200
- _zTime: -L,
1200
+ _zTime: -I,
1201
1201
  _prom: 0,
1202
1202
  _ps: !1,
1203
1203
  _rts: 1
1204
1204
  });
1205
1205
  var q = /* @__PURE__ */ (function(a) {
1206
- An(e, a);
1206
+ Sn(e, a);
1207
1207
  function e(i, n) {
1208
1208
  var r;
1209
1209
  return i === void 0 && (i = {}), r = a.call(this, i) || this, r.labels = {}, r.smoothChildTiming = !!i.smoothChildTiming, r.autoRemoveChildren = !!i.autoRemoveChildren, r._sort = ee(i.sortChildren), N && ye(i.parent || N, we(r), n), i.reversed && r.reverse(), i.paused && r.paused(!0), i.scrollTrigger && Gn(we(r), i.scrollTrigger), r;
@@ -1248,7 +1248,7 @@ var q = /* @__PURE__ */ (function(a) {
1248
1248
  if (m.parent !== this)
1249
1249
  return this.render(n, r, s);
1250
1250
  if (m.render(m._ts > 0 ? (p - m._start) * m._ts : (m._dirty ? m.totalDuration() : m._tDur) + (p - m._start) * m._ts, r, s), p !== this._time || !this._ts && !_) {
1251
- y = 0, f && (h += this._zTime = -L);
1251
+ y = 0, f && (h += this._zTime = -I);
1252
1252
  break;
1253
1253
  }
1254
1254
  }
@@ -1256,20 +1256,20 @@ var q = /* @__PURE__ */ (function(a) {
1256
1256
  }
1257
1257
  else {
1258
1258
  m = this._last;
1259
- for (var A = n < 0 ? n : p; m; ) {
1260
- if (f = m._prev, (m._act || A <= m._end) && m._ts && y !== m) {
1259
+ for (var S = n < 0 ? n : p; m; ) {
1260
+ if (f = m._prev, (m._act || S <= m._end) && m._ts && y !== m) {
1261
1261
  if (m.parent !== this)
1262
1262
  return this.render(n, r, s);
1263
- if (m.render(m._ts > 0 ? (A - m._start) * m._ts : (m._dirty ? m.totalDuration() : m._tDur) + (A - m._start) * m._ts, r, s || X && ki(m)), p !== this._time || !this._ts && !_) {
1264
- y = 0, f && (h += this._zTime = A ? -L : L);
1263
+ if (m.render(m._ts > 0 ? (S - m._start) * m._ts : (m._dirty ? m.totalDuration() : m._tDur) + (S - m._start) * m._ts, r, s || X && ki(m)), p !== this._time || !this._ts && !_) {
1264
+ y = 0, f && (h += this._zTime = S ? -I : I);
1265
1265
  break;
1266
1266
  }
1267
1267
  }
1268
1268
  m = f;
1269
1269
  }
1270
1270
  }
1271
- if (y && !r && (this.pause(), y.render(p >= o ? 0 : -L)._zTime = p >= o ? 1 : -1, this._ts))
1272
- return this._start = b, Ht(this), this.render(n, r, s);
1271
+ if (y && !r && (this.pause(), y.render(p >= o ? 0 : -I)._zTime = p >= o ? 1 : -1, this._ts))
1272
+ return this._start = b, Zt(this), this.render(n, r, s);
1273
1273
  this._onUpdate && !r && le(this, "onUpdate", !0), (h === l && this._tTime >= this.totalDuration() || !h && o) && (b === this._start || Math.abs(x) !== Math.abs(this._ts)) && (this._lock || ((n || !c) && (h === l && this._ts > 0 || !h && this._ts < 0) && ke(this, 1), !r && !(n < 0 && !o) && (h || o || !l) && (le(this, h === l && n >= 0 ? "onComplete" : "onReverseComplete", !0), this._prom && !(h < l && this.timeScale() > 0) && this._prom())));
1274
1274
  }
1275
1275
  return this;
@@ -1298,7 +1298,7 @@ var q = /* @__PURE__ */ (function(a) {
1298
1298
  if (r[s].vars.id === n)
1299
1299
  return r[s];
1300
1300
  }, t.remove = function(n) {
1301
- return Z(n) ? this.removeLabel(n) : V(n) ? this.killTweensOf(n) : (n.parent === this && jt(this, n), n === this._recent && (this._recent = this._last), He(this));
1301
+ return Z(n) ? this.removeLabel(n) : V(n) ? this.killTweensOf(n) : (n.parent === this && Yt(this, n), n === this._recent && (this._recent = this._last), He(this));
1302
1302
  }, t.totalTime = function(n, r) {
1303
1303
  return arguments.length ? (this._forcing = 1, !this._dp && this._ts && (this._start = H(oe.time - (this._ts > 0 ? n / this._ts : (this.totalDuration() - n) / -this._ts))), a.prototype.totalTime.call(this, n, r), this._forcing = 0, this) : this._tTime;
1304
1304
  }, t.addLabel = function(n, r) {
@@ -1314,11 +1314,11 @@ var q = /* @__PURE__ */ (function(a) {
1314
1314
  r._start === n && r.data === "isPause" && ke(r), r = r._next;
1315
1315
  }, t.killTweensOf = function(n, r, s) {
1316
1316
  for (var o = this.getTweensOf(n, s), l = o.length; l--; )
1317
- Ae !== o[l] && o[l].kill(n, r);
1317
+ Se !== o[l] && o[l].kill(n, r);
1318
1318
  return this;
1319
1319
  }, t.getTweensOf = function(n, r) {
1320
1320
  for (var s = [], o = me(n), l = this._first, c = Ce(r), h; l; )
1321
- l instanceof j ? rs(l._targets, o) && (c ? (!Ae || l._initted && l._ts) && l.globalTime(0) <= r && l.globalTime(l.totalDuration()) > r : !r || l.isActive()) && s.push(l) : (h = l.getTweensOf(o, r)).length && s.push.apply(s, h), l = l._next;
1321
+ l instanceof j ? rs(l._targets, o) && (c ? (!Se || l._initted && l._ts) && l.globalTime(0) <= r && l.globalTime(l.totalDuration()) > r : !r || l.isActive()) && s.push(l) : (h = l.getTweensOf(o, r)).length && s.push.apply(s, h), l = l._next;
1322
1322
  return s;
1323
1323
  }, t.tweenTo = function(n, r) {
1324
1324
  r = r || {};
@@ -1328,7 +1328,7 @@ var q = /* @__PURE__ */ (function(a) {
1328
1328
  immediateRender: !1,
1329
1329
  time: o,
1330
1330
  overwrite: "auto",
1331
- duration: r.duration || Math.abs((o - (c && "time" in c ? c.time : s._time)) / s.timeScale()) || L,
1331
+ duration: r.duration || Math.abs((o - (c && "time" in c ? c.time : s._time)) / s.timeScale()) || I,
1332
1332
  onStart: function() {
1333
1333
  if (s.pause(), !m) {
1334
1334
  var g = r.duration || Math.abs((o - (c && "time" in c ? c.time : s._time)) / s.timeScale());
@@ -1351,7 +1351,7 @@ var q = /* @__PURE__ */ (function(a) {
1351
1351
  }, t.previousLabel = function(n) {
1352
1352
  return n === void 0 && (n = this._time), en(this, pe(this, n), 1);
1353
1353
  }, t.currentLabel = function(n) {
1354
- return arguments.length ? this.seek(n, !0) : this.previousLabel(this._time + L);
1354
+ return arguments.length ? this.seek(n, !0) : this.previousLabel(this._time + I);
1355
1355
  }, t.shiftChildren = function(n, r, s) {
1356
1356
  s === void 0 && (s = 0);
1357
1357
  for (var o = this._first, l = this.labels, c; o; )
@@ -1381,7 +1381,7 @@ var q = /* @__PURE__ */ (function(a) {
1381
1381
  }
1382
1382
  return s._tDur;
1383
1383
  }, e.updateRoot = function(n) {
1384
- if (N._ts && (zn(N, $t(n, N)), Un = oe.frame), oe.frame >= Ki) {
1384
+ if (N._ts && (zn(N, Vt(n, N)), Un = oe.frame), oe.frame >= Ki) {
1385
1385
  Ki += he.autoSleep || 120;
1386
1386
  var r = N._first;
1387
1387
  if ((!r || !r._ts) && he.autoSleep && oe._listeners.length < 2) {
@@ -1397,9 +1397,9 @@ ue(q.prototype, {
1397
1397
  _hasPause: 0,
1398
1398
  _forcing: 0
1399
1399
  });
1400
- var As = function(e, t, i, n, r, s, o) {
1400
+ var Ss = function(e, t, i, n, r, s, o) {
1401
1401
  var l = new ie(this._pt, e, t, 0, 1, dr, null, r), c = 0, h = 0, u, p, m, f, d, g, _, y;
1402
- for (l.b = i, l.e = n, i += "", n += "", (_ = ~n.indexOf("random(")) && (n = wt(n)), s && (y = [i, n], s(y, e, t), i = y[0], n = y[1]), p = i.match(Xt) || []; u = Xt.exec(n); )
1402
+ for (l.b = i, l.e = n, i += "", n += "", (_ = ~n.indexOf("random(")) && (n = wt(n)), s && (y = [i, n], s(y, e, t), i = y[0], n = y[1]), p = i.match(Kt) || []; u = Kt.exec(n); )
1403
1403
  f = u[0], d = n.substring(c, u.index), m ? m = (m + 1) % 5 : d.substr(-5) === "rgba(" && (m = 1), f !== p[h++] && (g = parseFloat(p[h - 1]) || 0, l._pt = {
1404
1404
  _next: l._pt,
1405
1405
  p: d || h === 1 ? d : ",",
@@ -1407,14 +1407,14 @@ var As = function(e, t, i, n, r, s, o) {
1407
1407
  s: g,
1408
1408
  c: f.charAt(1) === "=" ? it(g, f) - g : parseFloat(f) - g,
1409
1409
  m: m && m < 4 ? Math.round : 0
1410
- }, c = Xt.lastIndex);
1410
+ }, c = Kt.lastIndex);
1411
1411
  return l.c = c < n.length ? n.substring(c, n.length) : "", l.fp = o, (Rn.test(n) || _) && (l.e = 0), this._pt = l, l;
1412
- }, Ii = function(e, t, i, n, r, s, o, l, c, h) {
1412
+ }, Li = function(e, t, i, n, r, s, o, l, c, h) {
1413
1413
  V(n) && (n = n(r || 0, e, s));
1414
1414
  var u = e[t], p = i !== "get" ? i : V(u) ? c ? e[t.indexOf("set") || !V(e["get" + t.substr(3)]) ? t : "get" + t.substr(3)](c) : e[t]() : u, m = V(u) ? c ? Os : cr : Ui, f;
1415
1415
  if (Z(n) && (~n.indexOf("random(") && (n = wt(n)), n.charAt(1) === "=" && (f = it(p, n) + (W(p) || 0), (f || f === 0) && (n = f))), !h || p !== n || gi)
1416
- return !isNaN(p * n) && n !== "" ? (f = new ie(this._pt, e, t, +p || 0, n - (p || 0), typeof u == "boolean" ? Is : ur, 0, m), c && (f.fp = c), o && f.modifier(o, this, e), this._pt = f) : (!u && !(t in e) && Di(t, n), As.call(this, e, t, p, n, m, l || he.stringFilter, c));
1417
- }, Ss = function(e, t, i, n, r) {
1416
+ return !isNaN(p * n) && n !== "" ? (f = new ie(this._pt, e, t, +p || 0, n - (p || 0), typeof u == "boolean" ? Ls : ur, 0, m), c && (f.fp = c), o && f.modifier(o, this, e), this._pt = f) : (!u && !(t in e) && Di(t, n), Ss.call(this, e, t, p, n, m, l || he.stringFilter, c));
1417
+ }, As = function(e, t, i, n, r) {
1418
1418
  if (V(e) && (e = bt(e, r, t, i, n)), !ve(e) || e.style && e.nodeType || K(e) || Dn(e))
1419
1419
  return Z(e) ? bt(e, r, t, i, n) : e;
1420
1420
  var s = {}, o;
@@ -1423,14 +1423,14 @@ var As = function(e, t, i, n, r, s, o) {
1423
1423
  return s;
1424
1424
  }, or = function(e, t, i, n, r, s) {
1425
1425
  var o, l, c, h;
1426
- if (ae[e] && (o = new ae[e]()).init(r, o.rawVars ? t[e] : Ss(t[e], n, r, s, i), i, n, s) !== !1 && (i._pt = l = new ie(i._pt, r, e, 0, 1, o.render, o, 0, o.priority), i !== et))
1426
+ if (ae[e] && (o = new ae[e]()).init(r, o.rawVars ? t[e] : As(t[e], n, r, s, i), i, n, s) !== !1 && (i._pt = l = new ie(i._pt, r, e, 0, 1, o.render, o, 0, o.priority), i !== et))
1427
1427
  for (c = i._ptLookup[i._targets.indexOf(r)], h = o._props.length; h--; )
1428
1428
  c[o._props[h]] = l;
1429
1429
  return o;
1430
- }, Ae, gi, Li = function a(e, t, i) {
1431
- var n = e.vars, r = n.ease, s = n.startAt, o = n.immediateRender, l = n.lazy, c = n.onUpdate, h = n.runBackwards, u = n.yoyoEase, p = n.keyframes, m = n.autoRevert, f = e._dur, d = e._startAt, g = e._targets, _ = e.parent, y = _ && _.data === "nested" ? _.vars.targets : g, x = e._overwrite === "auto" && !Ci, b = e.timeline, v, P, w, C, E, A, D, T, R, O, B, F, U;
1430
+ }, Se, gi, Ii = function a(e, t, i) {
1431
+ var n = e.vars, r = n.ease, s = n.startAt, o = n.immediateRender, l = n.lazy, c = n.onUpdate, h = n.runBackwards, u = n.yoyoEase, p = n.keyframes, m = n.autoRevert, f = e._dur, d = e._startAt, g = e._targets, _ = e.parent, y = _ && _.data === "nested" ? _.vars.targets : g, x = e._overwrite === "auto" && !Ci, b = e.timeline, v, P, w, C, E, S, D, T, R, O, B, F, U;
1432
1432
  if (b && (!p || !r) && (r = "none"), e._ease = Ye(r, st.ease), e._yEase = u ? nr(Ye(u === !0 ? r : u, st.ease)) : 0, u && e._yoyo && !e._repeat && (u = e._yEase, e._yEase = e._ease, e._ease = u), e._from = !b && !!n.runBackwards, !b || p && !n.stagger) {
1433
- if (T = g[0] ? je(g[0]).harness : 0, F = T && n[T.prop], v = Nt(n, Mi), d && (d._zTime < 0 && d.progress(1), t < 0 && h && o && !m ? d.render(-1, !0) : d.revert(h && f ? kt : is), d._lazy = 0), s) {
1433
+ if (T = g[0] ? je(g[0]).harness : 0, F = T && n[T.prop], v = Bt(n, Mi), d && (d._zTime < 0 && d.progress(1), t < 0 && h && o && !m ? d.render(-1, !0) : d.revert(h && f ? It : is), d._lazy = 0), s) {
1434
1434
  if (ke(e._startAt = j.set(g, ue({
1435
1435
  data: "isStart",
1436
1436
  overwrite: !1,
@@ -1443,7 +1443,7 @@ var As = function(e, t, i, n, r, s, o) {
1443
1443
  return le(e, "onUpdate");
1444
1444
  },
1445
1445
  stagger: 0
1446
- }, s))), e._startAt._dp = 0, e._startAt._sat = e, t < 0 && (X || !o && !m) && e._startAt.revert(kt), o && f && t <= 0 && i <= 0) {
1446
+ }, s))), e._startAt._dp = 0, e._startAt._sat = e, t < 0 && (X || !o && !m) && e._startAt.revert(It), o && f && t <= 0 && i <= 0) {
1447
1447
  t && (e._zTime = t);
1448
1448
  return;
1449
1449
  }
@@ -1458,20 +1458,20 @@ var As = function(e, t, i, n, r, s, o) {
1458
1458
  stagger: 0,
1459
1459
  parent: _
1460
1460
  //ensures that nested tweens that had a stagger are handled properly, like gsap.from(".class", {y: gsap.utils.wrap([-100,100]), stagger: 0.5})
1461
- }, v), F && (w[T.prop] = F), ke(e._startAt = j.set(g, w)), e._startAt._dp = 0, e._startAt._sat = e, t < 0 && (X ? e._startAt.revert(kt) : e._startAt.render(-1, !0)), e._zTime = t, !o)
1462
- a(e._startAt, L, L);
1461
+ }, v), F && (w[T.prop] = F), ke(e._startAt = j.set(g, w)), e._startAt._dp = 0, e._startAt._sat = e, t < 0 && (X ? e._startAt.revert(It) : e._startAt.render(-1, !0)), e._zTime = t, !o)
1462
+ a(e._startAt, I, I);
1463
1463
  else if (!t)
1464
1464
  return;
1465
1465
  }
1466
1466
  for (e._pt = e._ptCache = 0, l = f && ee(l) || l && !f, P = 0; P < g.length; P++) {
1467
- if (E = g[P], D = E._gsap || Oi(g)[P]._gsap, e._ptLookup[P] = O = {}, ci[D.id] && Re.length && zt(), B = y === g ? P : y.indexOf(E), T && (R = new T()).init(E, F || v, e, B, y) !== !1 && (e._pt = C = new ie(e._pt, E, R.name, 0, 1, R.render, R, 0, R.priority), R._props.forEach(function(Q) {
1467
+ if (E = g[P], D = E._gsap || Oi(g)[P]._gsap, e._ptLookup[P] = O = {}, ci[D.id] && Re.length && $t(), B = y === g ? P : y.indexOf(E), T && (R = new T()).init(E, F || v, e, B, y) !== !1 && (e._pt = C = new ie(e._pt, E, R.name, 0, 1, R.render, R, 0, R.priority), R._props.forEach(function(Q) {
1468
1468
  O[Q] = C;
1469
- }), R.priority && (A = 1)), !T || F)
1469
+ }), R.priority && (S = 1)), !T || F)
1470
1470
  for (w in v)
1471
- ae[w] && (R = or(w, v, e, B, E, y)) ? R.priority && (A = 1) : O[w] = C = Ii.call(e, E, w, "get", v[w], B, y, 0, n.stringFilter);
1472
- e._op && e._op[P] && e.kill(E, e._op[P]), x && e._pt && (Ae = e, N.killTweensOf(E, O, e.globalTime(t)), U = !e.parent, Ae = 0), e._pt && l && (ci[D.id] = 1);
1471
+ ae[w] && (R = or(w, v, e, B, E, y)) ? R.priority && (S = 1) : O[w] = C = Li.call(e, E, w, "get", v[w], B, y, 0, n.stringFilter);
1472
+ e._op && e._op[P] && e.kill(E, e._op[P]), x && e._pt && (Se = e, N.killTweensOf(E, O, e.globalTime(t)), U = !e.parent, Se = 0), e._pt && l && (ci[D.id] = 1);
1473
1473
  }
1474
- A && pr(e), e._onInit && e._onInit(e);
1474
+ S && pr(e), e._onInit && e._onInit(e);
1475
1475
  }
1476
1476
  e._onUpdate = c, e._initted = (!e._op || e._pt) && !U, p && t <= 0 && b.render(fe, !0, !0);
1477
1477
  }, Ds = function(e, t, i, n, r, s, o, l) {
@@ -1482,7 +1482,7 @@ var As = function(e, t, i, n, r, s, o) {
1482
1482
  for (h = h.d._pt; h && h.p !== t && h.fp !== t; )
1483
1483
  h = h._next;
1484
1484
  if (!h)
1485
- return gi = 1, e.vars[t] = "+=0", Li(e, o), gi = 0, l ? vt(t + " not eligible for reset") : 1;
1485
+ return gi = 1, e.vars[t] = "+=0", Ii(e, o), gi = 0, l ? vt(t + " not eligible for reset") : 1;
1486
1486
  c.push(h);
1487
1487
  }
1488
1488
  for (m = c.length; m--; )
@@ -1521,22 +1521,22 @@ te(lr + ",id,stagger,delay,duration,paused,scrollTrigger", function(a) {
1521
1521
  return hr[a] = 1;
1522
1522
  });
1523
1523
  var j = /* @__PURE__ */ (function(a) {
1524
- An(e, a);
1524
+ Sn(e, a);
1525
1525
  function e(i, n, r, s) {
1526
1526
  var o;
1527
1527
  typeof n == "number" && (r.duration = n, n = r, r = null), o = a.call(this, s ? n : yt(n)) || this;
1528
- var l = o.vars, c = l.duration, h = l.delay, u = l.immediateRender, p = l.stagger, m = l.overwrite, f = l.keyframes, d = l.defaults, g = l.scrollTrigger, _ = l.yoyoEase, y = n.parent || N, x = (K(i) || Dn(i) ? Ce(i[0]) : "length" in n) ? [i] : me(i), b, v, P, w, C, E, A, D;
1528
+ var l = o.vars, c = l.duration, h = l.delay, u = l.immediateRender, p = l.stagger, m = l.overwrite, f = l.keyframes, d = l.defaults, g = l.scrollTrigger, _ = l.yoyoEase, y = n.parent || N, x = (K(i) || Dn(i) ? Ce(i[0]) : "length" in n) ? [i] : me(i), b, v, P, w, C, E, S, D;
1529
1529
  if (o._targets = x.length ? Oi(x) : vt("GSAP target " + i + " not found. https://gsap.com", !he.nullTargetWarn) || [], o._ptLookup = [], o._overwrite = m, f || p || Rt(c) || Rt(h)) {
1530
1530
  if (n = o.vars, b = o.timeline = new q({
1531
1531
  data: "nested",
1532
1532
  defaults: d || {},
1533
1533
  targets: y && y.data === "nested" ? y.vars.targets : x
1534
1534
  }), b.kill(), b.parent = b._dp = we(o), b._start = 0, p || Rt(c) || Rt(h)) {
1535
- if (w = x.length, A = p && Zn(p), ve(p))
1535
+ if (w = x.length, S = p && Zn(p), ve(p))
1536
1536
  for (C in p)
1537
1537
  ~lr.indexOf(C) && (D || (D = {}), D[C] = p[C]);
1538
1538
  for (v = 0; v < w; v++)
1539
- P = Nt(n, hr), P.stagger = 0, _ && (P.yoyoEase = _), D && at(P, D), E = x[v], P.duration = +bt(c, we(o), v, E, x), P.delay = (+bt(h, we(o), v, E, x) || 0) - o._delay, !p && w === 1 && P.delay && (o._delay = h = P.delay, o._start += h, P.delay = 0), b.to(E, P, A ? A(v, E, x) : 0), b._ease = S.none;
1539
+ P = Bt(n, hr), P.stagger = 0, _ && (P.yoyoEase = _), D && at(P, D), E = x[v], P.duration = +bt(c, we(o), v, E, x), P.delay = (+bt(h, we(o), v, E, x) || 0) - o._delay, !p && w === 1 && P.delay && (o._delay = h = P.delay, o._start += h, P.delay = 0), b.to(E, P, S ? S(v, E, x) : 0), b._ease = A.none;
1540
1540
  b.duration() ? c = h = 0 : o.timeline = 0;
1541
1541
  } else if (f) {
1542
1542
  yt(ue(b.vars.defaults, {
@@ -1567,11 +1567,11 @@ var j = /* @__PURE__ */ (function(a) {
1567
1567
  c || o.duration(c = b.duration());
1568
1568
  } else
1569
1569
  o.timeline = 0;
1570
- return m === !0 && !Ci && (Ae = we(o), N.killTweensOf(x), Ae = 0), ye(y, we(o), r), n.reversed && o.reverse(), n.paused && o.paused(!0), (u || !c && !f && o._start === H(y._time) && ee(u) && ls(we(o)) && y.data !== "nested") && (o._tTime = -L, o.render(Math.max(0, -h) || 0)), g && Gn(we(o), g), o;
1570
+ return m === !0 && !Ci && (Se = we(o), N.killTweensOf(x), Se = 0), ye(y, we(o), r), n.reversed && o.reverse(), n.paused && o.paused(!0), (u || !c && !f && o._start === H(y._time) && ee(u) && ls(we(o)) && y.data !== "nested") && (o._tTime = -I, o.render(Math.max(0, -h) || 0)), g && Gn(we(o), g), o;
1571
1571
  }
1572
1572
  var t = e.prototype;
1573
1573
  return t.render = function(n, r, s) {
1574
- var o = this._time, l = this._tDur, c = this._dur, h = n < 0, u = n > l - L && !h ? l : n < L ? 0 : n, p, m, f, d, g, _, y, x, b;
1574
+ var o = this._time, l = this._tDur, c = this._dur, h = n < 0, u = n > l - I && !h ? l : n < I ? 0 : n, p, m, f, d, g, _, y, x, b;
1575
1575
  if (!c)
1576
1576
  cs(this, n, r, s);
1577
1577
  else if (u !== this._tTime || !n || s || !this._initted && this._tTime || this._startAt && this._zTime < 0 !== h || this._lazy) {
@@ -1604,13 +1604,13 @@ var j = /* @__PURE__ */ (function(a) {
1604
1604
  }, t.resetTo = function(n, r, s, o, l) {
1605
1605
  Pt || oe.wake(), this._ts || this.play();
1606
1606
  var c = Math.min(this._dur, (this._dp._time - this._start) * this._ts), h;
1607
- return this._initted || Li(this, c), h = this._ease(c / this._dur), Ds(this, n, r, s, o, h, c, l) ? this.resetTo(n, r, s, o, 1) : (Yt(this, 0), this.parent || Bn(this._dp, this, "_first", "_last", this._dp._sort ? "_start" : 0), this.render(0));
1607
+ return this._initted || Ii(this, c), h = this._ease(c / this._dur), Ds(this, n, r, s, o, h, c, l) ? this.resetTo(n, r, s, o, 1) : (Xt(this, 0), this.parent || Bn(this._dp, this, "_first", "_last", this._dp._sort ? "_start" : 0), this.render(0));
1608
1608
  }, t.kill = function(n, r) {
1609
1609
  if (r === void 0 && (r = "all"), !n && (!r || r === "all"))
1610
1610
  return this._lazy = this._pt = 0, this.parent ? mt(this) : this.scrollTrigger && this.scrollTrigger.kill(!!X), this;
1611
1611
  if (this.timeline) {
1612
1612
  var s = this.timeline.totalDuration();
1613
- return this.timeline.killTweensOf(n, r, Ae && Ae.vars.overwrite !== !0)._first || mt(this), this.parent && s !== this.timeline.totalDuration() && lt(this, this._dur * this.timeline._tDur / s, 0, 1), this;
1613
+ return this.timeline.killTweensOf(n, r, Se && Se.vars.overwrite !== !0)._first || mt(this), this.parent && s !== this.timeline.totalDuration() && lt(this, this._dur * this.timeline._tDur / s, 0, 1), this;
1614
1614
  }
1615
1615
  var o = this._targets, l = n ? me(n) : o, c = this._ptLookup, h = this._pt, u, p, m, f, d, g, _;
1616
1616
  if ((!r || r === "all") && as(o, l))
@@ -1621,7 +1621,7 @@ var j = /* @__PURE__ */ (function(a) {
1621
1621
  if (~l.indexOf(o[_])) {
1622
1622
  p = c[_], r === "all" ? (u[_] = r, f = p, m = {}) : (m = u[_] = u[_] || {}, f = r);
1623
1623
  for (d in f)
1624
- g = p && p[d], g && ((!("kill" in g.d) || g.d.kill(d) === !0) && jt(this, g, "_pt"), delete p[d]), m !== "all" && (m[d] = 1);
1624
+ g = p && p[d], g && ((!("kill" in g.d) || g.d.kill(d) === !0) && Yt(this, g, "_pt"), delete p[d]), m !== "all" && (m[d] = 1);
1625
1625
  }
1626
1626
  return this._initted && !this._pt && h && mt(this), this;
1627
1627
  }, e.to = function(n, r) {
@@ -1673,7 +1673,7 @@ var Ui = function(e, t, i) {
1673
1673
  return V(e[t]) ? cr : Ti(e[t]) && e.setAttribute ? ks : Ui;
1674
1674
  }, ur = function(e, t) {
1675
1675
  return t.set(t.t, t.p, Math.round((t.s + t.c * e) * 1e6) / 1e6, t);
1676
- }, Is = function(e, t) {
1676
+ }, Ls = function(e, t) {
1677
1677
  return t.set(t.t, t.p, !!(t.s + t.c * e), t);
1678
1678
  }, dr = function(e, t) {
1679
1679
  var i = t._pt, n = "";
@@ -1690,12 +1690,12 @@ var Ui = function(e, t, i) {
1690
1690
  }, zi = function(e, t) {
1691
1691
  for (var i = t._pt; i; )
1692
1692
  i.r(e, i.d), i = i._next;
1693
- }, Ls = function(e, t, i, n) {
1693
+ }, Is = function(e, t, i, n) {
1694
1694
  for (var r = this._pt, s; r; )
1695
1695
  s = r._next, r.p === n && r.modifier(e, t, i), r = s;
1696
1696
  }, Us = function(e) {
1697
1697
  for (var t = this._pt, i, n; t; )
1698
- n = t._next, t.p === e && !t.op || t.op === e ? jt(this, t, "_pt") : t.dep || (i = 1), t = n;
1698
+ n = t._next, t.p === e && !t.op || t.op === e ? Yt(this, t, "_pt") : t.dep || (i = 1), t = n;
1699
1699
  return !i;
1700
1700
  }, Fs = function(e, t, i, n) {
1701
1701
  n.mSet(e, t, n.m.call(n.tween, i, n.mt), n);
@@ -1728,22 +1728,22 @@ N = new q({
1728
1728
  smoothChildTiming: !0
1729
1729
  });
1730
1730
  he.stringFilter = ir;
1731
- var Ze = [], Lt = {}, zs = [], nn = 0, Ns = 0, Jt = function(e) {
1732
- return (Lt[e] || zs).map(function(t) {
1731
+ var Ze = [], Ft = {}, zs = [], nn = 0, Ns = 0, ti = function(e) {
1732
+ return (Ft[e] || zs).map(function(t) {
1733
1733
  return t();
1734
1734
  });
1735
1735
  }, _i = function() {
1736
1736
  var e = Date.now(), t = [];
1737
- e - nn > 2 && (Jt("matchMediaInit"), Ze.forEach(function(i) {
1737
+ e - nn > 2 && (ti("matchMediaInit"), Ze.forEach(function(i) {
1738
1738
  var n = i.queries, r = i.conditions, s, o, l, c;
1739
1739
  for (o in n)
1740
1740
  s = _e.matchMedia(n[o]).matches, s && (l = 1), s !== r[o] && (r[o] = s, c = 1);
1741
1741
  c && (i.revert(), l && t.push(i));
1742
- }), Jt("matchMediaRevert"), t.forEach(function(i) {
1742
+ }), ti("matchMediaRevert"), t.forEach(function(i) {
1743
1743
  return i.onMatch(i, function(n) {
1744
1744
  return i.add(null, n);
1745
1745
  });
1746
- }), nn = e, Jt("matchMedia"));
1746
+ }), nn = e, ti("matchMedia"));
1747
1747
  }, fr = /* @__PURE__ */ (function() {
1748
1748
  function a(t, i) {
1749
1749
  this.selector = i && fi(i), this.data = [], this._r = [], this.isReverted = !1, this.id = Ns++, t && this.add(t);
@@ -1820,7 +1820,7 @@ var Ze = [], Lt = {}, zs = [], nn = 0, Ns = 0, Jt = function(e) {
1820
1820
  return n.kill(i, !0);
1821
1821
  });
1822
1822
  }, a;
1823
- })(), Bt = {
1823
+ })(), Gt = {
1824
1824
  registerPlugin: function() {
1825
1825
  for (var e = arguments.length, t = new Array(e), i = 0; i < e; i++)
1826
1826
  t[i] = arguments[i];
@@ -1879,17 +1879,17 @@ var Ze = [], Lt = {}, zs = [], nn = 0, Ns = 0, Jt = function(e) {
1879
1879
  var t = e.name, i = e.effect, n = e.plugins, r = e.defaults, s = e.extendTimeline;
1880
1880
  (n || "").split(",").forEach(function(o) {
1881
1881
  return o && !ae[o] && !ce[o] && vt(t + " effect requires " + o + " plugin.");
1882
- }), Wt[t] = function(o, l, c) {
1882
+ }), qt[t] = function(o, l, c) {
1883
1883
  return i(me(o), ue(l || {}, r), c);
1884
1884
  }, s && (q.prototype[t] = function(o, l, c) {
1885
- return this.add(Wt[t](o, ve(l) ? l : (c = l) && {}, this), c);
1885
+ return this.add(qt[t](o, ve(l) ? l : (c = l) && {}, this), c);
1886
1886
  });
1887
1887
  },
1888
1888
  registerEase: function(e, t) {
1889
- S[e] = Ye(t);
1889
+ A[e] = Ye(t);
1890
1890
  },
1891
1891
  parseEase: function(e, t) {
1892
- return arguments.length ? Ye(e, t) : S;
1892
+ return arguments.length ? Ye(e, t) : A;
1893
1893
  },
1894
1894
  getById: function(e) {
1895
1895
  return N.getById(e);
@@ -1916,11 +1916,11 @@ var Ze = [], Lt = {}, zs = [], nn = 0, Ns = 0, Jt = function(e) {
1916
1916
  }) || _i();
1917
1917
  },
1918
1918
  addEventListener: function(e, t) {
1919
- var i = Lt[e] || (Lt[e] = []);
1919
+ var i = Ft[e] || (Ft[e] = []);
1920
1920
  ~i.indexOf(t) || i.push(t);
1921
1921
  },
1922
1922
  removeEventListener: function(e, t) {
1923
- var i = Lt[e], n = i && i.indexOf(t);
1923
+ var i = Ft[e], n = i && i.indexOf(t);
1924
1924
  n >= 0 && i.splice(n, 1);
1925
1925
  },
1926
1926
  utils: {
@@ -1941,20 +1941,20 @@ var Ze = [], Lt = {}, zs = [], nn = 0, Ns = 0, Jt = function(e) {
1941
1941
  interpolate: bs,
1942
1942
  shuffle: Yn
1943
1943
  },
1944
- install: In,
1945
- effects: Wt,
1944
+ install: Ln,
1945
+ effects: qt,
1946
1946
  ticker: oe,
1947
1947
  updateRoot: q.updateRoot,
1948
1948
  plugins: ae,
1949
1949
  globalTimeline: N,
1950
1950
  core: {
1951
1951
  PropTween: ie,
1952
- globals: Ln,
1952
+ globals: In,
1953
1953
  Tween: j,
1954
1954
  Timeline: q,
1955
1955
  Animation: Ct,
1956
1956
  getCache: je,
1957
- _removeLinkedListItem: jt,
1957
+ _removeLinkedListItem: Yt,
1958
1958
  reverting: function() {
1959
1959
  return X;
1960
1960
  },
@@ -1967,10 +1967,10 @@ var Ze = [], Lt = {}, zs = [], nn = 0, Ns = 0, Jt = function(e) {
1967
1967
  }
1968
1968
  };
1969
1969
  te("to,from,fromTo,delayedCall,set,killTweensOf", function(a) {
1970
- return Bt[a] = j[a];
1970
+ return Gt[a] = j[a];
1971
1971
  });
1972
1972
  oe.add(q.updateRoot);
1973
- et = Bt.to({}, {
1973
+ et = Gt.to({}, {
1974
1974
  duration: 0
1975
1975
  });
1976
1976
  var Bs = function(e, t) {
@@ -1982,7 +1982,7 @@ var Bs = function(e, t) {
1982
1982
  for (n in t)
1983
1983
  for (r = i.length; r--; )
1984
1984
  s = e._ptLookup[r][n], s && (s = s.d) && (s._pt && (s = Bs(s, n)), s && s.modifier && s.modifier(t[n], e, i[r], n));
1985
- }, ei = function(e, t) {
1985
+ }, ii = function(e, t) {
1986
1986
  return {
1987
1987
  name: e,
1988
1988
  headless: 1,
@@ -2003,7 +2003,7 @@ var Bs = function(e, t) {
2003
2003
  };
2004
2004
  }
2005
2005
  };
2006
- }, re = Bt.registerPlugin({
2006
+ }, re = Gt.registerPlugin({
2007
2007
  name: "attr",
2008
2008
  init: function(e, t, i, n, r) {
2009
2009
  var s, o, l;
@@ -2022,29 +2022,29 @@ var Bs = function(e, t) {
2022
2022
  for (var i = t.length; i--; )
2023
2023
  this.add(e, i, e[i] || 0, t[i], 0, 0, 0, 0, 0, 1);
2024
2024
  }
2025
- }, ei("roundProps", mi), ei("modifiers"), ei("snap", Xn)) || Bt;
2025
+ }, ii("roundProps", mi), ii("modifiers"), ii("snap", Xn)) || Gt;
2026
2026
  j.version = q.version = re.version = "3.13.0";
2027
2027
  kn = 1;
2028
- Ai() && ht();
2029
- S.Power0;
2030
- S.Power1;
2031
- S.Power2;
2032
- S.Power3;
2033
- S.Power4;
2034
- S.Linear;
2035
- S.Quad;
2036
- S.Cubic;
2037
- S.Quart;
2038
- S.Quint;
2039
- S.Strong;
2040
- S.Elastic;
2041
- S.Back;
2042
- S.SteppedEase;
2043
- S.Bounce;
2044
- S.Sine;
2045
- S.Expo;
2046
- S.Circ;
2047
- var rn, Se, nt, Ni, Ve, sn, $i, Gs = function() {
2028
+ Si() && ht();
2029
+ A.Power0;
2030
+ A.Power1;
2031
+ A.Power2;
2032
+ A.Power3;
2033
+ A.Power4;
2034
+ A.Linear;
2035
+ A.Quad;
2036
+ A.Cubic;
2037
+ A.Quart;
2038
+ A.Quint;
2039
+ A.Strong;
2040
+ A.Elastic;
2041
+ A.Back;
2042
+ A.SteppedEase;
2043
+ A.Bounce;
2044
+ A.Sine;
2045
+ A.Expo;
2046
+ A.Circ;
2047
+ var rn, Ae, nt, Ni, Ve, sn, $i, Gs = function() {
2048
2048
  return typeof window < "u";
2049
2049
  }, Te = {}, $e = 180 / Math.PI, rt = Math.PI / 180, Ke = Math.atan2, an = 1e8, Bi = /([A-Z])/g, js = /(left|right|width|margin|padding|x)/i, Hs = /[\s,\(]\S/, xe = {
2050
2050
  autoAlpha: "opacity,visibility",
@@ -2115,8 +2115,8 @@ var rn, Se, nt, Ni, Ve, sn, $i, Gs = function() {
2115
2115
  return i.save(n);
2116
2116
  }), i;
2117
2117
  }, xr, xi = function(e, t) {
2118
- var i = Se.createElementNS ? Se.createElementNS((t || "http://www.w3.org/1999/xhtml").replace(/^https/, "http"), e) : Se.createElement(e);
2119
- return i && i.style ? i : Se.createElement(e);
2118
+ var i = Ae.createElementNS ? Ae.createElementNS((t || "http://www.w3.org/1999/xhtml").replace(/^https/, "http"), e) : Ae.createElement(e);
2119
+ return i && i.style ? i : Ae.createElement(e);
2120
2120
  }, ge = function a(e, t, i) {
2121
2121
  var n = getComputedStyle(e);
2122
2122
  return n[t] || n.getPropertyValue(t.replace(Bi, "-$1").toLowerCase()) || n.getPropertyValue(t) || !i && a(e, ct(t) || t, 1) || "";
@@ -2128,7 +2128,7 @@ var rn, Se, nt, Ni, Ve, sn, $i, Gs = function() {
2128
2128
  ;
2129
2129
  return s < 0 ? null : (s === 3 ? "ms" : s >= 0 ? on[s] : "") + e;
2130
2130
  }, bi = function() {
2131
- Gs() && window.document && (rn = window, Se = rn.document, nt = Se.documentElement, Ve = xi("div") || {
2131
+ Gs() && window.document && (rn = window, Ae = rn.document, nt = Ae.documentElement, Ve = xi("div") || {
2132
2132
  style: {}
2133
2133
  }, xi("div"), $ = ct($), ne = $ + "Origin", Ve.style.cssText = "border-width:0;line-height:0;position:absolute;padding:0", xr = !!ct("perspective"), $i = re.core.reverting, Ni = 1);
2134
2134
  }, ln = function(e) {
@@ -2173,13 +2173,13 @@ var rn, Se, nt, Ni, Ve, sn, $i, Gs = function() {
2173
2173
  }, na = {
2174
2174
  grid: 1,
2175
2175
  flex: 1
2176
- }, Ie = function a(e, t, i, n) {
2176
+ }, Le = function a(e, t, i, n) {
2177
2177
  var r = parseFloat(i) || 0, s = (i + "").trim().substr((r + "").length) || "px", o = Ve.style, l = js.test(t), c = e.tagName.toLowerCase() === "svg", h = (c ? "client" : "offset") + (l ? "Width" : "Height"), u = 100, p = n === "px", m = n === "%", f, d, g, _;
2178
2178
  if (n === s || !r || cn[n] || cn[s])
2179
2179
  return r;
2180
2180
  if (s !== "px" && !p && (r = a(e, t, i, "px")), _ = e.getCTM && vr(e), (m || s === "%") && (Te[t] || ~t.indexOf("adius")))
2181
2181
  return f = _ ? e.getBBox()[l ? "width" : "height"] : e[h], G(m ? r / f * u : r / 100 * f);
2182
- if (o[l ? "width" : "height"] = u + (p ? s : n), d = n !== "rem" && ~t.indexOf("adius") || n === "em" && e.appendChild && !c ? e : e.parentNode, _ && (d = (e.ownerSVGElement || {}).parentNode), (!d || d === Se || !d.appendChild) && (d = Se.body), g = d._gsap, g && m && g.width && l && g.time === oe.time && !g.uncache)
2182
+ if (o[l ? "width" : "height"] = u + (p ? s : n), d = n !== "rem" && ~t.indexOf("adius") || n === "em" && e.appendChild && !c ? e : e.parentNode, _ && (d = (e.ownerSVGElement || {}).parentNode), (!d || d === Ae || !d.appendChild) && (d = Ae.body), g = d._gsap, g && m && g.width && l && g.time === oe.time && !g.uncache)
2183
2183
  return G(r / g.width * u);
2184
2184
  if (m && (t === "height" || t === "width")) {
2185
2185
  var y = e.style[t];
@@ -2189,7 +2189,7 @@ var rn, Se, nt, Ni, Ve, sn, $i, Gs = function() {
2189
2189
  return l && m && (g = je(d), g.time = oe.time, g.width = d[h]), G(p ? f * r / u : f && r ? u / f * r : 0);
2190
2190
  }, Pe = function(e, t, i, n) {
2191
2191
  var r;
2192
- return Ni || bi(), t in xe && t !== "transform" && (t = xe[t], ~t.indexOf(",") && (t = t.split(",")[0])), Te[t] && t !== "transform" ? (r = At(e, n), r = t !== "transformOrigin" ? r[t] : r.svg ? r.origin : Gt(ge(e, ne)) + " " + r.zOrigin + "px") : (r = e.style[t], (!r || r === "auto" || n || ~(r + "").indexOf("calc(")) && (r = Vt[t] && Vt[t](e, t, i) || ge(e, t) || Fn(e, t) || (t === "opacity" ? 1 : 0))), i && !~(r + "").trim().indexOf(" ") ? Ie(e, t, r, i) + i : r;
2192
+ return Ni || bi(), t in xe && t !== "transform" && (t = xe[t], ~t.indexOf(",") && (t = t.split(",")[0])), Te[t] && t !== "transform" ? (r = St(e, n), r = t !== "transformOrigin" ? r[t] : r.svg ? r.origin : Ht(ge(e, ne)) + " " + r.zOrigin + "px") : (r = e.style[t], (!r || r === "auto" || n || ~(r + "").indexOf("calc(")) && (r = jt[t] && jt[t](e, t, i) || ge(e, t) || Fn(e, t) || (t === "opacity" ? 1 : 0))), i && !~(r + "").trim().indexOf(" ") ? Le(e, t, r, i) + i : r;
2193
2193
  }, ra = function(e, t, i, n) {
2194
2194
  if (!i || i === "none") {
2195
2195
  var r = ct(t, e, 1), s = r && ge(e, r, 1);
@@ -2198,7 +2198,7 @@ var rn, Se, nt, Ni, Ve, sn, $i, Gs = function() {
2198
2198
  var o = new ie(this._pt, e.style, t, 0, 1, dr), l = 0, c = 0, h, u, p, m, f, d, g, _, y, x, b, v;
2199
2199
  if (o.b = i, o.e = n, i += "", n += "", n.substring(0, 6) === "var(--" && (n = ge(e, n.substring(4, n.indexOf(")")))), n === "auto" && (d = e.style[t], e.style[t] = n, n = ge(e, t) || n, d ? e.style[t] = d : Xe(e, t)), h = [i, n], ir(h), i = h[0], n = h[1], p = i.match(Je) || [], v = n.match(Je) || [], v.length) {
2200
2200
  for (; u = Je.exec(n); )
2201
- g = u[0], y = n.substring(l, u.index), f ? f = (f + 1) % 5 : (y.substr(-5) === "rgba(" || y.substr(-5) === "hsla(") && (f = 1), g !== (d = p[c++] || "") && (m = parseFloat(d) || 0, b = d.substr((m + "").length), g.charAt(1) === "=" && (g = it(m, g) + b), _ = parseFloat(g), x = g.substr((_ + "").length), l = Je.lastIndex - x.length, x || (x = x || he.units[t] || b, l === n.length && (n += x, o.e += x)), b !== x && (m = Ie(e, t, d, x) || 0), o._pt = {
2201
+ g = u[0], y = n.substring(l, u.index), f ? f = (f + 1) % 5 : (y.substr(-5) === "rgba(" || y.substr(-5) === "hsla(") && (f = 1), g !== (d = p[c++] || "") && (m = parseFloat(d) || 0, b = d.substr((m + "").length), g.charAt(1) === "=" && (g = it(m, g) + b), _ = parseFloat(g), x = g.substr((_ + "").length), l = Je.lastIndex - x.length, x || (x = x || he.units[t] || b, l === n.length && (n += x, o.e += x)), b !== x && (m = Le(e, t, d, x) || 0), o._pt = {
2202
2202
  _next: o._pt,
2203
2203
  p: y || c === 1 ? y : ",",
2204
2204
  //note: SVG spec allows omission of comma/space when a negative sign is wedged between two numbers, like 2.5-5.3 instead of 2.5,-5.3 but when tweening, the negative value may switch to positive, so we insert the comma just in case.
@@ -2227,9 +2227,9 @@ var rn, Se, nt, Ni, Ve, sn, $i, Gs = function() {
2227
2227
  else
2228
2228
  for (r = r.split(","), c = r.length; --c > -1; )
2229
2229
  o = r[c], Te[o] && (l = 1, o = o === "transformOrigin" ? ne : $), Xe(i, o);
2230
- l && (Xe(i, $), s && (s.svg && i.removeAttribute("transform"), n.scale = n.rotate = n.translate = "none", At(i, 1), s.uncache = 1, _r(n)));
2230
+ l && (Xe(i, $), s && (s.svg && i.removeAttribute("transform"), n.scale = n.rotate = n.translate = "none", St(i, 1), s.uncache = 1, _r(n)));
2231
2231
  }
2232
- }, Vt = {
2232
+ }, jt = {
2233
2233
  clearProps: function(e, t, i, n, r) {
2234
2234
  if (r.data !== "isFromStart") {
2235
2235
  var s = e._pt = new ie(e._pt, t, i, 0, 0, aa);
@@ -2310,29 +2310,29 @@ var rn, Se, nt, Ni, Ve, sn, $i, Gs = function() {
2310
2310
  }, vi = function(e, t, i, n, r, s) {
2311
2311
  var o = e._gsap, l = r || Vi(e, !0), c = o.xOrigin || 0, h = o.yOrigin || 0, u = o.xOffset || 0, p = o.yOffset || 0, m = l[0], f = l[1], d = l[2], g = l[3], _ = l[4], y = l[5], x = t.split(" "), b = parseFloat(x[0]) || 0, v = parseFloat(x[1]) || 0, P, w, C, E;
2312
2312
  i ? l !== Tt && (w = m * g - f * d) && (C = b * (g / w) + v * (-d / w) + (d * y - g * _) / w, E = b * (-f / w) + v * (m / w) - (m * y - f * _) / w, b = C, v = E) : (P = br(e), b = P.x + (~x[0].indexOf("%") ? b / 100 * P.width : b), v = P.y + (~(x[1] || x[0]).indexOf("%") ? v / 100 * P.height : v)), n || n !== !1 && o.smooth ? (_ = b - c, y = v - h, o.xOffset = u + (_ * m + y * d) - _, o.yOffset = p + (_ * f + y * g) - y) : o.xOffset = o.yOffset = 0, o.xOrigin = b, o.yOrigin = v, o.smooth = !!n, o.origin = t, o.originIsAbsolute = !!i, e.style[ne] = "0px 0px", s && (De(s, o, "xOrigin", c, b), De(s, o, "yOrigin", h, v), De(s, o, "xOffset", u, o.xOffset), De(s, o, "yOffset", p, o.yOffset)), e.setAttribute("data-svg-origin", b + " " + v);
2313
- }, At = function(e, t) {
2313
+ }, St = function(e, t) {
2314
2314
  var i = e._gsap || new ar(e);
2315
2315
  if ("x" in i && !t && !i.uncache)
2316
2316
  return i;
2317
- var n = e.style, r = i.scaleX < 0, s = "px", o = "deg", l = getComputedStyle(e), c = ge(e, ne) || "0", h, u, p, m, f, d, g, _, y, x, b, v, P, w, C, E, A, D, T, R, O, B, F, U, Q, ut, dt, pt, Ue, Hi, Ee, Fe;
2318
- return h = u = p = d = g = _ = y = x = b = 0, m = f = 1, i.svg = !!(e.getCTM && vr(e)), l.translate && ((l.translate !== "none" || l.scale !== "none" || l.rotate !== "none") && (n[$] = (l.translate !== "none" ? "translate3d(" + (l.translate + " 0 0").split(" ").slice(0, 3).join(", ") + ") " : "") + (l.rotate !== "none" ? "rotate(" + l.rotate + ") " : "") + (l.scale !== "none" ? "scale(" + l.scale.split(" ").join(",") + ") " : "") + (l[$] !== "none" ? l[$] : "")), n.scale = n.rotate = n.translate = "none"), w = Vi(e, i.svg), i.svg && (i.uncache ? (Q = e.getBBox(), c = i.xOrigin - Q.x + "px " + (i.yOrigin - Q.y) + "px", U = "") : U = !t && e.getAttribute("data-svg-origin"), vi(e, U || c, !!U || i.originIsAbsolute, i.smooth !== !1, w)), v = i.xOrigin || 0, P = i.yOrigin || 0, w !== Tt && (D = w[0], T = w[1], R = w[2], O = w[3], h = B = w[4], u = F = w[5], w.length === 6 ? (m = Math.sqrt(D * D + T * T), f = Math.sqrt(O * O + R * R), d = D || T ? Ke(T, D) * $e : 0, y = R || O ? Ke(R, O) * $e + d : 0, y && (f *= Math.abs(Math.cos(y * rt))), i.svg && (h -= v - (v * D + P * R), u -= P - (v * T + P * O))) : (Fe = w[6], Hi = w[7], dt = w[8], pt = w[9], Ue = w[10], Ee = w[11], h = w[12], u = w[13], p = w[14], C = Ke(Fe, Ue), g = C * $e, C && (E = Math.cos(-C), A = Math.sin(-C), U = B * E + dt * A, Q = F * E + pt * A, ut = Fe * E + Ue * A, dt = B * -A + dt * E, pt = F * -A + pt * E, Ue = Fe * -A + Ue * E, Ee = Hi * -A + Ee * E, B = U, F = Q, Fe = ut), C = Ke(-R, Ue), _ = C * $e, C && (E = Math.cos(-C), A = Math.sin(-C), U = D * E - dt * A, Q = T * E - pt * A, ut = R * E - Ue * A, Ee = O * A + Ee * E, D = U, T = Q, R = ut), C = Ke(T, D), d = C * $e, C && (E = Math.cos(C), A = Math.sin(C), U = D * E + T * A, Q = B * E + F * A, T = T * E - D * A, F = F * E - B * A, D = U, B = Q), g && Math.abs(g) + Math.abs(d) > 359.9 && (g = d = 0, _ = 180 - _), m = G(Math.sqrt(D * D + T * T + R * R)), f = G(Math.sqrt(F * F + Fe * Fe)), C = Ke(B, F), y = Math.abs(C) > 2e-4 ? C * $e : 0, b = Ee ? 1 / (Ee < 0 ? -Ee : Ee) : 0), i.svg && (U = e.getAttribute("transform"), i.forceCSS = e.setAttribute("transform", "") || !wr(ge(e, $)), U && e.setAttribute("transform", U))), Math.abs(y) > 90 && Math.abs(y) < 270 && (r ? (m *= -1, y += d <= 0 ? 180 : -180, d += d <= 0 ? 180 : -180) : (f *= -1, y += y <= 0 ? 180 : -180)), t = t || i.uncache, i.x = h - ((i.xPercent = h && (!t && i.xPercent || (Math.round(e.offsetWidth / 2) === Math.round(-h) ? -50 : 0))) ? e.offsetWidth * i.xPercent / 100 : 0) + s, i.y = u - ((i.yPercent = u && (!t && i.yPercent || (Math.round(e.offsetHeight / 2) === Math.round(-u) ? -50 : 0))) ? e.offsetHeight * i.yPercent / 100 : 0) + s, i.z = p + s, i.scaleX = G(m), i.scaleY = G(f), i.rotation = G(d) + o, i.rotationX = G(g) + o, i.rotationY = G(_) + o, i.skewX = y + o, i.skewY = x + o, i.transformPerspective = b + s, (i.zOrigin = parseFloat(c.split(" ")[2]) || !t && i.zOrigin || 0) && (n[ne] = Gt(c)), i.xOffset = i.yOffset = 0, i.force3D = he.force3D, i.renderTransform = i.svg ? la : xr ? Pr : oa, i.uncache = 0, i;
2319
- }, Gt = function(e) {
2317
+ var n = e.style, r = i.scaleX < 0, s = "px", o = "deg", l = getComputedStyle(e), c = ge(e, ne) || "0", h, u, p, m, f, d, g, _, y, x, b, v, P, w, C, E, S, D, T, R, O, B, F, U, Q, ut, dt, pt, Ue, Hi, Ee, Fe;
2318
+ return h = u = p = d = g = _ = y = x = b = 0, m = f = 1, i.svg = !!(e.getCTM && vr(e)), l.translate && ((l.translate !== "none" || l.scale !== "none" || l.rotate !== "none") && (n[$] = (l.translate !== "none" ? "translate3d(" + (l.translate + " 0 0").split(" ").slice(0, 3).join(", ") + ") " : "") + (l.rotate !== "none" ? "rotate(" + l.rotate + ") " : "") + (l.scale !== "none" ? "scale(" + l.scale.split(" ").join(",") + ") " : "") + (l[$] !== "none" ? l[$] : "")), n.scale = n.rotate = n.translate = "none"), w = Vi(e, i.svg), i.svg && (i.uncache ? (Q = e.getBBox(), c = i.xOrigin - Q.x + "px " + (i.yOrigin - Q.y) + "px", U = "") : U = !t && e.getAttribute("data-svg-origin"), vi(e, U || c, !!U || i.originIsAbsolute, i.smooth !== !1, w)), v = i.xOrigin || 0, P = i.yOrigin || 0, w !== Tt && (D = w[0], T = w[1], R = w[2], O = w[3], h = B = w[4], u = F = w[5], w.length === 6 ? (m = Math.sqrt(D * D + T * T), f = Math.sqrt(O * O + R * R), d = D || T ? Ke(T, D) * $e : 0, y = R || O ? Ke(R, O) * $e + d : 0, y && (f *= Math.abs(Math.cos(y * rt))), i.svg && (h -= v - (v * D + P * R), u -= P - (v * T + P * O))) : (Fe = w[6], Hi = w[7], dt = w[8], pt = w[9], Ue = w[10], Ee = w[11], h = w[12], u = w[13], p = w[14], C = Ke(Fe, Ue), g = C * $e, C && (E = Math.cos(-C), S = Math.sin(-C), U = B * E + dt * S, Q = F * E + pt * S, ut = Fe * E + Ue * S, dt = B * -S + dt * E, pt = F * -S + pt * E, Ue = Fe * -S + Ue * E, Ee = Hi * -S + Ee * E, B = U, F = Q, Fe = ut), C = Ke(-R, Ue), _ = C * $e, C && (E = Math.cos(-C), S = Math.sin(-C), U = D * E - dt * S, Q = T * E - pt * S, ut = R * E - Ue * S, Ee = O * S + Ee * E, D = U, T = Q, R = ut), C = Ke(T, D), d = C * $e, C && (E = Math.cos(C), S = Math.sin(C), U = D * E + T * S, Q = B * E + F * S, T = T * E - D * S, F = F * E - B * S, D = U, B = Q), g && Math.abs(g) + Math.abs(d) > 359.9 && (g = d = 0, _ = 180 - _), m = G(Math.sqrt(D * D + T * T + R * R)), f = G(Math.sqrt(F * F + Fe * Fe)), C = Ke(B, F), y = Math.abs(C) > 2e-4 ? C * $e : 0, b = Ee ? 1 / (Ee < 0 ? -Ee : Ee) : 0), i.svg && (U = e.getAttribute("transform"), i.forceCSS = e.setAttribute("transform", "") || !wr(ge(e, $)), U && e.setAttribute("transform", U))), Math.abs(y) > 90 && Math.abs(y) < 270 && (r ? (m *= -1, y += d <= 0 ? 180 : -180, d += d <= 0 ? 180 : -180) : (f *= -1, y += y <= 0 ? 180 : -180)), t = t || i.uncache, i.x = h - ((i.xPercent = h && (!t && i.xPercent || (Math.round(e.offsetWidth / 2) === Math.round(-h) ? -50 : 0))) ? e.offsetWidth * i.xPercent / 100 : 0) + s, i.y = u - ((i.yPercent = u && (!t && i.yPercent || (Math.round(e.offsetHeight / 2) === Math.round(-u) ? -50 : 0))) ? e.offsetHeight * i.yPercent / 100 : 0) + s, i.z = p + s, i.scaleX = G(m), i.scaleY = G(f), i.rotation = G(d) + o, i.rotationX = G(g) + o, i.rotationY = G(_) + o, i.skewX = y + o, i.skewY = x + o, i.transformPerspective = b + s, (i.zOrigin = parseFloat(c.split(" ")[2]) || !t && i.zOrigin || 0) && (n[ne] = Ht(c)), i.xOffset = i.yOffset = 0, i.force3D = he.force3D, i.renderTransform = i.svg ? la : xr ? Pr : oa, i.uncache = 0, i;
2319
+ }, Ht = function(e) {
2320
2320
  return (e = e.split(" "))[0] + " " + e[1];
2321
- }, ti = function(e, t, i) {
2321
+ }, ni = function(e, t, i) {
2322
2322
  var n = W(t);
2323
- return G(parseFloat(t) + parseFloat(Ie(e, "x", i + "px", n))) + n;
2323
+ return G(parseFloat(t) + parseFloat(Le(e, "x", i + "px", n))) + n;
2324
2324
  }, oa = function(e, t) {
2325
2325
  t.z = "0px", t.rotationY = t.rotationX = "0deg", t.force3D = 0, Pr(e, t);
2326
2326
  }, ze = "0deg", ft = "0px", Ne = ") ", Pr = function(e, t) {
2327
2327
  var i = t || this, n = i.xPercent, r = i.yPercent, s = i.x, o = i.y, l = i.z, c = i.rotation, h = i.rotationY, u = i.rotationX, p = i.skewX, m = i.skewY, f = i.scaleX, d = i.scaleY, g = i.transformPerspective, _ = i.force3D, y = i.target, x = i.zOrigin, b = "", v = _ === "auto" && e && e !== 1 || _ === !0;
2328
2328
  if (x && (u !== ze || h !== ze)) {
2329
2329
  var P = parseFloat(h) * rt, w = Math.sin(P), C = Math.cos(P), E;
2330
- P = parseFloat(u) * rt, E = Math.cos(P), s = ti(y, s, w * E * -x), o = ti(y, o, -Math.sin(P) * -x), l = ti(y, l, C * E * -x + x);
2330
+ P = parseFloat(u) * rt, E = Math.cos(P), s = ni(y, s, w * E * -x), o = ni(y, o, -Math.sin(P) * -x), l = ni(y, l, C * E * -x + x);
2331
2331
  }
2332
2332
  g !== ft && (b += "perspective(" + g + Ne), (n || r) && (b += "translate(" + n + "%, " + r + "%) "), (v || s !== ft || o !== ft || l !== ft) && (b += l !== ft || v ? "translate3d(" + s + ", " + o + ", " + l + ") " : "translate(" + s + ", " + o + Ne), c !== ze && (b += "rotate(" + c + Ne), h !== ze && (b += "rotateY(" + h + Ne), u !== ze && (b += "rotateX(" + u + Ne), (p !== ze || m !== ze) && (b += "skew(" + p + ", " + m + Ne), (f !== 1 || d !== 1) && (b += "scale(" + f + ", " + d + Ne), y.style[$] = b || "translate(0, 0)";
2333
2333
  }, la = function(e, t) {
2334
2334
  var i = t || this, n = i.xPercent, r = i.yPercent, s = i.x, o = i.y, l = i.rotation, c = i.skewX, h = i.skewY, u = i.scaleX, p = i.scaleY, m = i.target, f = i.xOrigin, d = i.yOrigin, g = i.xOffset, _ = i.yOffset, y = i.forceCSS, x = parseFloat(s), b = parseFloat(o), v, P, w, C, E;
2335
- l = parseFloat(l), c = parseFloat(c), h = parseFloat(h), h && (h = parseFloat(h), c += h, l += h), l || c ? (l *= rt, c *= rt, v = Math.cos(l) * u, P = Math.sin(l) * u, w = Math.sin(l - c) * -p, C = Math.cos(l - c) * p, c && (h *= rt, E = Math.tan(c - h), E = Math.sqrt(1 + E * E), w *= E, C *= E, h && (E = Math.tan(h), E = Math.sqrt(1 + E * E), v *= E, P *= E)), v = G(v), P = G(P), w = G(w), C = G(C)) : (v = u, C = p, P = w = 0), (x && !~(s + "").indexOf("px") || b && !~(o + "").indexOf("px")) && (x = Ie(m, "x", s, "px"), b = Ie(m, "y", o, "px")), (f || d || g || _) && (x = G(x + f - (f * v + d * w) + g), b = G(b + d - (f * P + d * C) + _)), (n || r) && (E = m.getBBox(), x = G(x + n / 100 * E.width), b = G(b + r / 100 * E.height)), E = "matrix(" + v + "," + P + "," + w + "," + C + "," + x + "," + b + ")", m.setAttribute("transform", E), y && (m.style[$] = E);
2335
+ l = parseFloat(l), c = parseFloat(c), h = parseFloat(h), h && (h = parseFloat(h), c += h, l += h), l || c ? (l *= rt, c *= rt, v = Math.cos(l) * u, P = Math.sin(l) * u, w = Math.sin(l - c) * -p, C = Math.cos(l - c) * p, c && (h *= rt, E = Math.tan(c - h), E = Math.sqrt(1 + E * E), w *= E, C *= E, h && (E = Math.tan(h), E = Math.sqrt(1 + E * E), v *= E, P *= E)), v = G(v), P = G(P), w = G(w), C = G(C)) : (v = u, C = p, P = w = 0), (x && !~(s + "").indexOf("px") || b && !~(o + "").indexOf("px")) && (x = Le(m, "x", s, "px"), b = Le(m, "y", o, "px")), (f || d || g || _) && (x = G(x + f - (f * v + d * w) + g), b = G(b + d - (f * P + d * C) + _)), (n || r) && (E = m.getBBox(), x = G(x + n / 100 * E.width), b = G(b + r / 100 * E.height)), E = "matrix(" + v + "," + P + "," + w + "," + C + "," + x + "," + b + ")", m.setAttribute("transform", E), y && (m.style[$] = E);
2336
2336
  }, ha = function(e, t, i, n, r) {
2337
2337
  var s = 360, o = Z(r), l = parseFloat(r) * (o && ~r.indexOf("rad") ? $e : 1), c = l - n, h = n + c + "deg", u, p;
2338
2338
  return o && (u = r.split("_")[1], u === "short" && (c %= s, c !== c % (s / 2) && (c += c < 0 ? s : -s)), u === "cw" && c < 0 ? c = (c + s * an) % s - ~~(c / s) * s : u === "ccw" && c > 0 && (c = (c - s * an) % s - ~~(c / s) * s)), e._pt = p = new ie(e._pt, t, i, n, c, Ys), p.e = h, p.u = "deg", e._props.push(i), p;
@@ -2342,16 +2342,16 @@ var rn, Se, nt, Ni, Ve, sn, $i, Gs = function() {
2342
2342
  return e;
2343
2343
  }, ca = function(e, t, i) {
2344
2344
  var n = pn({}, i._gsap), r = "perspective,force3D,transformOrigin,svgOrigin", s = i.style, o, l, c, h, u, p, m, f;
2345
- n.svg ? (c = i.getAttribute("transform"), i.setAttribute("transform", ""), s[$] = t, o = At(i, 1), Xe(i, $), i.setAttribute("transform", c)) : (c = getComputedStyle(i)[$], s[$] = t, o = At(i, 1), s[$] = c);
2345
+ n.svg ? (c = i.getAttribute("transform"), i.setAttribute("transform", ""), s[$] = t, o = St(i, 1), Xe(i, $), i.setAttribute("transform", c)) : (c = getComputedStyle(i)[$], s[$] = t, o = St(i, 1), s[$] = c);
2346
2346
  for (l in Te)
2347
- c = n[l], h = o[l], c !== h && r.indexOf(l) < 0 && (m = W(c), f = W(h), u = m !== f ? Ie(i, l, c, f) : parseFloat(c), p = parseFloat(h), e._pt = new ie(e._pt, o, l, u, p - u, yi), e._pt.u = f || 0, e._props.push(l));
2347
+ c = n[l], h = o[l], c !== h && r.indexOf(l) < 0 && (m = W(c), f = W(h), u = m !== f ? Le(i, l, c, f) : parseFloat(c), p = parseFloat(h), e._pt = new ie(e._pt, o, l, u, p - u, yi), e._pt.u = f || 0, e._props.push(l));
2348
2348
  pn(o, n);
2349
2349
  };
2350
2350
  te("padding,margin,Width,Radius", function(a, e) {
2351
2351
  var t = "Top", i = "Right", n = "Bottom", r = "Left", s = (e < 3 ? [t, i, n, r] : [t + r, t + i, n + i, n + r]).map(function(o) {
2352
2352
  return e < 2 ? a + o : "border" + o + a;
2353
2353
  });
2354
- Vt[e > 1 ? "border" + a : a] = function(o, l, c, h, u) {
2354
+ jt[e > 1 ? "border" + a : a] = function(o, l, c, h, u) {
2355
2355
  var p, m;
2356
2356
  if (arguments.length < 4)
2357
2357
  return p = s.map(function(f) {
@@ -2373,16 +2373,16 @@ var Cr = {
2373
2373
  Ni || bi(), this.styles = this.styles || yr(e), C = this.styles.props, this.tween = i;
2374
2374
  for (d in t)
2375
2375
  if (d !== "autoRound" && (h = t[d], !(ae[d] && or(d, t, i, n, e, r)))) {
2376
- if (m = typeof h, f = Vt[d], m === "function" && (h = h.call(i, n, e, r), m = typeof h), m === "string" && ~h.indexOf("random(") && (h = wt(h)), f)
2376
+ if (m = typeof h, f = jt[d], m === "function" && (h = h.call(i, n, e, r), m = typeof h), m === "string" && ~h.indexOf("random(") && (h = wt(h)), f)
2377
2377
  f(this, e, d, h, i) && (w = 1);
2378
2378
  else if (d.substr(0, 2) === "--")
2379
- c = (getComputedStyle(e).getPropertyValue(d) + "").trim(), h += "", Oe.lastIndex = 0, Oe.test(c) || (g = W(c), _ = W(h)), _ ? g !== _ && (c = Ie(e, d, c, _) + _) : g && (h += g), this.add(o, "setProperty", c, h, n, r, 0, 0, d), s.push(d), C.push(d, 0, o[d]);
2379
+ c = (getComputedStyle(e).getPropertyValue(d) + "").trim(), h += "", Oe.lastIndex = 0, Oe.test(c) || (g = W(c), _ = W(h)), _ ? g !== _ && (c = Le(e, d, c, _) + _) : g && (h += g), this.add(o, "setProperty", c, h, n, r, 0, 0, d), s.push(d), C.push(d, 0, o[d]);
2380
2380
  else if (m !== "undefined") {
2381
2381
  if (l && d in l ? (c = typeof l[d] == "function" ? l[d].call(i, n, e, r) : l[d], Z(c) && ~c.indexOf("random(") && (c = wt(c)), W(c + "") || c === "auto" || (c += he.units[d] || W(Pe(e, d)) || ""), (c + "").charAt(1) === "=" && (c = Pe(e, d))) : c = Pe(e, d), p = parseFloat(c), y = m === "string" && h.charAt(1) === "=" && h.substr(0, 2), y && (h = h.substr(2)), u = parseFloat(h), d in xe && (d === "autoAlpha" && (p === 1 && Pe(e, "visibility") === "hidden" && u && (p = 0), C.push("visibility", 0, o.visibility), De(this, o, "visibility", p ? "inherit" : "hidden", u ? "inherit" : "hidden", !u)), d !== "scale" && d !== "transform" && (d = xe[d], ~d.indexOf(",") && (d = d.split(",")[0]))), x = d in Te, x) {
2382
- if (this.styles.save(d), m === "string" && h.substring(0, 6) === "var(--" && (h = ge(e, h.substring(4, h.indexOf(")"))), u = parseFloat(h)), b || (v = e._gsap, v.renderTransform && !t.parseTransform || At(e, t.parseTransform), P = t.smoothOrigin !== !1 && v.smooth, b = this._pt = new ie(this._pt, o, $, 0, 1, v.renderTransform, v, 0, -1), b.dep = 1), d === "scale")
2382
+ if (this.styles.save(d), m === "string" && h.substring(0, 6) === "var(--" && (h = ge(e, h.substring(4, h.indexOf(")"))), u = parseFloat(h)), b || (v = e._gsap, v.renderTransform && !t.parseTransform || St(e, t.parseTransform), P = t.smoothOrigin !== !1 && v.smooth, b = this._pt = new ie(this._pt, o, $, 0, 1, v.renderTransform, v, 0, -1), b.dep = 1), d === "scale")
2383
2383
  this._pt = new ie(this._pt, v, "scaleY", v.scaleY, (y ? it(v.scaleY, y + u) : u) - v.scaleY || 0, yi), this._pt.u = 0, s.push("scaleY", d), d += "X";
2384
2384
  else if (d === "transformOrigin") {
2385
- C.push(ne, 0, o[ne]), h = sa(h), v.svg ? vi(e, h, 0, P, 0, this) : (_ = parseFloat(h.split(" ")[2]) || 0, _ !== v.zOrigin && De(this, v, "zOrigin", v.zOrigin, _), De(this, o, d, Gt(c), Gt(h)));
2385
+ C.push(ne, 0, o[ne]), h = sa(h), v.svg ? vi(e, h, 0, P, 0, this) : (_ = parseFloat(h.split(" ")[2]) || 0, _ !== v.zOrigin && De(this, v, "zOrigin", v.zOrigin, _), De(this, o, d, Ht(c), Ht(h)));
2386
2386
  continue;
2387
2387
  } else if (d === "svgOrigin") {
2388
2388
  vi(e, h, 1, P, 0, this);
@@ -2402,7 +2402,7 @@ var Cr = {
2402
2402
  }
2403
2403
  } else d in o || (d = ct(d) || d);
2404
2404
  if (x || (u || u === 0) && (p || p === 0) && !Hs.test(h) && d in o)
2405
- g = (c + "").substr((p + "").length), u || (u = 0), _ = W(h) || (d in he.units ? he.units[d] : g), g !== _ && (p = Ie(e, d, c, _)), this._pt = new ie(this._pt, x ? v : o, d, p, (y ? it(p, y + u) : u) - p, !x && (_ === "px" || d === "zIndex") && t.autoRound !== !1 ? Xs : yi), this._pt.u = _ || 0, g !== _ && _ !== "%" && (this._pt.b = c, this._pt.r = Zs);
2405
+ g = (c + "").substr((p + "").length), u || (u = 0), _ = W(h) || (d in he.units ? he.units[d] : g), g !== _ && (p = Le(e, d, c, _)), this._pt = new ie(this._pt, x ? v : o, d, p, (y ? it(p, y + u) : u) - p, !x && (_ === "px" || d === "zIndex") && t.autoRound !== !1 ? Xs : yi), this._pt.u = _ || 0, g !== _ && _ !== "%" && (this._pt.b = c, this._pt.r = Zs);
2406
2406
  else if (d in o)
2407
2407
  ra.call(this, e, d, c, y ? y + h : h);
2408
2408
  else if (d in e)
@@ -2698,7 +2698,7 @@ const da = {
2698
2698
  match: (a) => typeof a == "string",
2699
2699
  fromHexString: Ei,
2700
2700
  toHexString: Ei
2701
- }, St = {
2701
+ }, At = {
2702
2702
  isPrimitive: !0,
2703
2703
  match: (a) => typeof a == "number",
2704
2704
  fromHexString: (a) => parseInt(a.substring(1), 16),
@@ -2707,27 +2707,27 @@ const da = {
2707
2707
  isPrimitive: !1,
2708
2708
  match: (a) => Array.isArray(a) || ArrayBuffer.isView(a),
2709
2709
  fromHexString(a, e, t = 1) {
2710
- const i = St.fromHexString(a);
2710
+ const i = At.fromHexString(a);
2711
2711
  e[0] = (i >> 16 & 255) / 255 * t, e[1] = (i >> 8 & 255) / 255 * t, e[2] = (i & 255) / 255 * t;
2712
2712
  },
2713
2713
  toHexString([a, e, t], i = 1) {
2714
2714
  i = 255 / i;
2715
2715
  const n = a * i << 16 ^ e * i << 8 ^ t * i << 0;
2716
- return St.toHexString(n);
2716
+ return At.toHexString(n);
2717
2717
  }
2718
2718
  }, fa = {
2719
2719
  isPrimitive: !1,
2720
2720
  match: (a) => Object(a) === a,
2721
2721
  fromHexString(a, e, t = 1) {
2722
- const i = St.fromHexString(a);
2722
+ const i = At.fromHexString(a);
2723
2723
  e.r = (i >> 16 & 255) / 255 * t, e.g = (i >> 8 & 255) / 255 * t, e.b = (i & 255) / 255 * t;
2724
2724
  },
2725
2725
  toHexString({ r: a, g: e, b: t }, i = 1) {
2726
2726
  i = 255 / i;
2727
2727
  const n = a * i << 16 ^ e * i << 8 ^ t * i << 0;
2728
- return St.toHexString(n);
2728
+ return At.toHexString(n);
2729
2729
  }
2730
- }, ma = [da, St, pa, fa];
2730
+ }, ma = [da, At, pa, fa];
2731
2731
  function ga(a) {
2732
2732
  return ma.find((e) => e.match(a));
2733
2733
  }
@@ -2766,7 +2766,7 @@ class _a extends be {
2766
2766
  return this.$input.value = this._format.toHexString(this.getValue(), this._rgbScale), this._textFocused || (this.$text.value = this.$input.value.substring(1)), this.$display.style.backgroundColor = this.$input.value, this;
2767
2767
  }
2768
2768
  }
2769
- class ii extends be {
2769
+ class ri extends be {
2770
2770
  constructor(e, t, i) {
2771
2771
  super(e, t, i, "lil-function"), this.$button = document.createElement("button"), this.$button.appendChild(this.$name), this.$widget.appendChild(this.$button), this.$button.addEventListener("click", (n) => {
2772
2772
  n.preventDefault(), this.getValue().call(this.object), this._callOnChange();
@@ -3451,7 +3451,7 @@ class Gi {
3451
3451
  case "string":
3452
3452
  return new ba(this, e, t);
3453
3453
  case "function":
3454
- return new ii(this, e, t);
3454
+ return new ri(this, e, t);
3455
3455
  }
3456
3456
  console.error(`gui.add failed
3457
3457
  property:`, t, `
@@ -3504,7 +3504,7 @@ class Gi {
3504
3504
  */
3505
3505
  load(e, t = !0) {
3506
3506
  return e.controllers && this.controllers.forEach((i) => {
3507
- i instanceof ii || i._name in e.controllers && i.load(e.controllers[i._name]);
3507
+ i instanceof ri || i._name in e.controllers && i.load(e.controllers[i._name]);
3508
3508
  }), t && e.folders && this.folders.forEach((i) => {
3509
3509
  i._title in e.folders && i.load(e.folders[i._title]);
3510
3510
  }), this;
@@ -3535,7 +3535,7 @@ class Gi {
3535
3535
  folders: {}
3536
3536
  };
3537
3537
  return this.controllers.forEach((i) => {
3538
- if (!(i instanceof ii)) {
3538
+ if (!(i instanceof ri)) {
3539
3539
  if (i._name in t.controllers)
3540
3540
  throw new Error(`Cannot save GUI with duplicate property "${i._name}"`);
3541
3541
  t.controllers[i._name] = i.save();
@@ -3727,10 +3727,10 @@ function Ta(a, e) {
3727
3727
  }) } : mn(a, e);
3728
3728
  }
3729
3729
  function mn(a, e) {
3730
- var t = e.id, i = e.bbox, n = e.properties == null ? {} : e.properties, r = Aa(a, e);
3730
+ var t = e.id, i = e.bbox, n = e.properties == null ? {} : e.properties, r = Sa(a, e);
3731
3731
  return t == null && i == null ? { type: "Feature", properties: n, geometry: r } : i == null ? { type: "Feature", id: t, properties: n, geometry: r } : { type: "Feature", id: t, bbox: i, properties: n, geometry: r };
3732
3732
  }
3733
- function Aa(a, e) {
3733
+ function Sa(a, e) {
3734
3734
  var t = Pa(a.transform), i = a.arcs;
3735
3735
  function n(h, u) {
3736
3736
  u.length && u.pop();
@@ -3881,7 +3881,7 @@ const Tr = [
3881
3881
  { id: "858", code: "UY", name: "Uruguay", population: 3.5, gdpPerCapita: 25041, co2Emissions: 2, lifeExpectancy: 78.4, humanDevIndex: 0.83, internetUsers: 87, renewableEnergy: 55, urbanPopulation: 95.6, healthExpenditure: 9.3, educationExpenditure: 5, forestArea: 10.5, accessElectricity: 100 },
3882
3882
  { id: "188", code: "CR", name: "Costa Rica", population: 5, gdpPerCapita: 23101, co2Emissions: 1.5, lifeExpectancy: 80.8, humanDevIndex: 0.809, internetUsers: 81, renewableEnergy: 73, urbanPopulation: 81.4, healthExpenditure: 7.3, educationExpenditure: 6.7, forestArea: 59, accessElectricity: 100 },
3883
3883
  { id: "591", code: "PA", name: "Panama", population: 4.4, gdpPerCapita: 35317, co2Emissions: 2.5, lifeExpectancy: 79.2, humanDevIndex: 0.805, internetUsers: 68, renewableEnergy: 35, urbanPopulation: 68.4, healthExpenditure: 7.3, educationExpenditure: 3.2, forestArea: 62.1, accessElectricity: 95 }
3884
- ], Sa = [
3884
+ ], Aa = [
3885
3885
  {
3886
3886
  id: "humanDevIndex",
3887
3887
  name: "Human Development Index",
@@ -3987,7 +3987,7 @@ function Da(a, e) {
3987
3987
  const [t, i] = a.domain;
3988
3988
  return Math.max(0, Math.min(1, (e - t) / (i - t)));
3989
3989
  }
3990
- const ni = 2048, ri = 1024;
3990
+ const Ot = 2048, kt = 1024;
3991
3991
  class Ma {
3992
3992
  canvas;
3993
3993
  ctx;
@@ -3995,7 +3995,7 @@ class Ma {
3995
3995
  loaded = !1;
3996
3996
  statsMap;
3997
3997
  constructor() {
3998
- this.canvas = document.createElement("canvas"), this.canvas.width = ni, this.canvas.height = ri, this.ctx = this.canvas.getContext("2d"), this.statsMap = /* @__PURE__ */ new Map(), Tr.forEach((e) => {
3998
+ this.canvas = document.createElement("canvas"), this.canvas.width = Ot, this.canvas.height = kt, this.ctx = this.canvas.getContext("2d"), this.statsMap = /* @__PURE__ */ new Map(), Tr.forEach((e) => {
3999
3999
  this.statsMap.set(e.id, e);
4000
4000
  }), this.loadCountries();
4001
4001
  }
@@ -4020,7 +4020,7 @@ class Ma {
4020
4020
  * Render a choropleth texture for the given statistic
4021
4021
  */
4022
4022
  renderTexture(e) {
4023
- return this.ctx.fillStyle = "#1a3a5c", this.ctx.fillRect(0, 0, ni, ri), this.loaded ? (this.countries.forEach((t) => {
4023
+ return this.ctx.fillStyle = "#1a3a5c", this.ctx.fillRect(0, 0, Ot, kt), this.loaded ? (this.countries.forEach((t) => {
4024
4024
  const i = this.statsMap.get(t.id);
4025
4025
  if (i) {
4026
4026
  const n = e.accessor(i), r = Da(e, n), s = this.interpolateColor(e.colorScale, r);
@@ -4067,7 +4067,7 @@ class Ma {
4067
4067
  * Project lat/lon to canvas coordinates (equirectangular projection)
4068
4068
  */
4069
4069
  projectPoint(e, t) {
4070
- const i = (e + 180) / 360 * ni, n = (90 - t) / 180 * ri;
4070
+ const i = (e + 180) / 360 * Ot, n = (90 - t) / 180 * kt;
4071
4071
  return [i, n];
4072
4072
  }
4073
4073
  interpolateColor(e, t) {
@@ -4086,6 +4086,28 @@ class Ma {
4086
4086
  }
4087
4087
  return `rgb(${o}, ${l}, ${c})`;
4088
4088
  }
4089
+ /**
4090
+ * Render a choropleth texture with custom values
4091
+ */
4092
+ renderCustomTexture(e, t, i) {
4093
+ if (this.ctx.fillStyle = "#1a3a5c", this.ctx.fillRect(0, 0, Ot, kt), !this.loaded)
4094
+ return this.canvas;
4095
+ const n = e instanceof Map ? Object.fromEntries(e) : e;
4096
+ return this.countries.forEach((r) => {
4097
+ const s = n[r.id];
4098
+ if (s !== void 0) {
4099
+ const o = Math.max(0, Math.min(
4100
+ 1,
4101
+ (s - i[0]) / (i[1] - i[0])
4102
+ )), l = this.interpolateColor(t, o);
4103
+ this.ctx.fillStyle = l;
4104
+ } else
4105
+ this.ctx.fillStyle = "#2a2a2a";
4106
+ this.drawCountry(r);
4107
+ }), this.ctx.strokeStyle = "rgba(0, 0, 0, 0.3)", this.ctx.lineWidth = 0.5, this.countries.forEach((r) => {
4108
+ this.strokeCountry(r);
4109
+ }), this.canvas;
4110
+ }
4089
4111
  /**
4090
4112
  * Get canvas for debugging
4091
4113
  */
@@ -4104,6 +4126,7 @@ class Ra {
4104
4126
  visible = !1;
4105
4127
  constructor() {
4106
4128
  this.container = document.createElement("div"), this.container.id = "legend", this.container.innerHTML = `
4129
+ <div class="legend-hint">Press G to toggle globe/flat</div>
4107
4130
  <div class="legend-title"></div>
4108
4131
  <div class="legend-gradient"></div>
4109
4132
  <div class="legend-labels">
@@ -4166,6 +4189,14 @@ class Ra {
4166
4189
  color: #888;
4167
4190
  font-style: italic;
4168
4191
  }
4192
+
4193
+ .legend-hint {
4194
+ font-size: 10px;
4195
+ color: #666;
4196
+ margin-bottom: 8px;
4197
+ padding-bottom: 6px;
4198
+ border-bottom: 1px solid rgba(100, 150, 200, 0.2);
4199
+ }
4169
4200
  `, document.head.appendChild(e);
4170
4201
  }
4171
4202
  show(e) {
@@ -4185,7 +4216,7 @@ class Ra {
4185
4216
  }
4186
4217
  }
4187
4218
  var Oa = { trailer: 59 };
4188
- function Ar(a = 256) {
4219
+ function Sr(a = 256) {
4189
4220
  let e = 0, t = new Uint8Array(a);
4190
4221
  return { get buffer() {
4191
4222
  return t.buffer;
@@ -4213,7 +4244,7 @@ function Ar(a = 256) {
4213
4244
  }
4214
4245
  }
4215
4246
  var si = 12, gn = 5003, ka = [0, 1, 3, 7, 15, 31, 63, 127, 255, 511, 1023, 2047, 4095, 8191, 16383, 32767, 65535];
4216
- function Ia(a, e, t, i, n = Ar(512), r = new Uint8Array(256), s = new Int32Array(gn), o = new Int32Array(gn)) {
4247
+ function La(a, e, t, i, n = Sr(512), r = new Uint8Array(256), s = new Int32Array(gn), o = new Int32Array(gn)) {
4217
4248
  let l = s.length, c = Math.max(2, i);
4218
4249
  r.fill(0), o.fill(0), s.fill(-1);
4219
4250
  let h = 0, u = 0, p = c + 1, m = p, f = !1, d = m, g = (1 << d) - 1, _ = 1 << p - 1, y = _ + 1, x = _ + 2, b = 0, v = t[0], P = 0;
@@ -4222,7 +4253,7 @@ function Ia(a, e, t, i, n = Ar(512), r = new Uint8Array(256), s = new Int32Array
4222
4253
  let w = t.length;
4223
4254
  for (let E = 1; E < w; E++)
4224
4255
  e: {
4225
- let A = t[E], D = (A << si) + v, T = A << P ^ v;
4256
+ let S = t[E], D = (S << si) + v, T = S << P ^ v;
4226
4257
  if (s[T] === D) {
4227
4258
  v = o[T];
4228
4259
  break e;
@@ -4232,7 +4263,7 @@ function Ia(a, e, t, i, n = Ar(512), r = new Uint8Array(256), s = new Int32Array
4232
4263
  v = o[T];
4233
4264
  break e;
4234
4265
  }
4235
- C(v), v = A, x < 1 << si ? (o[T] = x++, s[T] = D) : (s.fill(-1), x = _ + 2, f = !0, C(_));
4266
+ C(v), v = S, x < 1 << si ? (o[T] = x++, s[T] = D) : (s.fill(-1), x = _ + 2, f = !0, C(_));
4236
4267
  }
4237
4268
  return C(v), C(y), n.writeByte(0), n.bytesView();
4238
4269
  function C(E) {
@@ -4243,8 +4274,8 @@ function Ia(a, e, t, i, n = Ar(512), r = new Uint8Array(256), s = new Int32Array
4243
4274
  }
4244
4275
  }
4245
4276
  }
4246
- var La = Ia;
4247
- function Sr(a, e, t) {
4277
+ var Ia = La;
4278
+ function Ar(a, e, t) {
4248
4279
  return a << 8 & 63488 | e << 2 & 992 | t >> 3;
4249
4280
  }
4250
4281
  function Dr(a, e, t, i) {
@@ -4253,10 +4284,10 @@ function Dr(a, e, t, i) {
4253
4284
  function Mr(a, e, t) {
4254
4285
  return a >> 4 << 8 | e & 240 | t >> 4;
4255
4286
  }
4256
- function Ot(a, e, t) {
4287
+ function Lt(a, e, t) {
4257
4288
  return a < e ? e : a > t ? t : a;
4258
4289
  }
4259
- function Ut(a) {
4290
+ function zt(a) {
4260
4291
  return a * a;
4261
4292
  }
4262
4293
  function _n(a, e, t) {
@@ -4268,7 +4299,7 @@ function _n(a, e, t) {
4268
4299
  let p = a[h], m = p.cnt, f = s * m / (s + m);
4269
4300
  if (!(f >= n)) {
4270
4301
  var u = 0;
4271
- u += f * Ut(p.rc - o), !(u >= n) && (u += f * Ut(p.gc - l), !(u >= n) && (u += f * Ut(p.bc - c), !(u >= n) && (n = u, i = h)));
4302
+ u += f * zt(p.rc - o), !(u >= n) && (u += f * zt(p.gc - l), !(u >= n) && (u += f * zt(p.bc - c), !(u >= n) && (n = u, i = h)));
4272
4303
  }
4273
4304
  }
4274
4305
  r.err = n, r.nn = i;
@@ -4287,7 +4318,7 @@ function Ua(a, e) {
4287
4318
  u.rc += c, u.gc += l, u.bc += o, u.cnt++;
4288
4319
  }
4289
4320
  else for (let r = 0; r < n; ++r) {
4290
- let s = a[r], o = s >> 16 & 255, l = s >> 8 & 255, c = s & 255, h = Sr(c, l, o), u = h in i ? i[h] : i[h] = ai();
4321
+ let s = a[r], o = s >> 16 & 255, l = s >> 8 & 255, c = s & 255, h = Ar(c, l, o), u = h in i ? i[h] : i[h] = ai();
4291
4322
  u.rc += c, u.gc += l, u.bc += o, u.cnt++;
4292
4323
  }
4293
4324
  return i;
@@ -4304,7 +4335,7 @@ function Fa(a, e, t = {}) {
4304
4335
  h && (O.ac *= _), O.rc *= _, O.gc *= _, O.bc *= _, u[d++] = O;
4305
4336
  }
4306
4337
  }
4307
- Ut(e) / d < 0.022 && (c = !1);
4338
+ zt(e) / d < 0.022 && (c = !1);
4308
4339
  for (var g = 0; g < d - 1; ++g) u[g].fw = g + 1, u[g + 1].bk = g, c && (u[g].cnt = Math.sqrt(u[g].cnt));
4309
4340
  c && (u[g].cnt = Math.sqrt(u[g].cnt));
4310
4341
  var y, x, b;
@@ -4324,14 +4355,14 @@ function Fa(a, e, t = {}) {
4324
4355
  for (x = 1; (b = x + x) <= f[0] && (b < f[0] && u[f[b]].err > u[f[b + 1]].err && b++, !(v <= u[y = f[b]].err)); x = b) f[x] = y;
4325
4356
  f[x] = C;
4326
4357
  }
4327
- var E = u[w.nn], A = w.cnt, D = E.cnt, _ = 1 / (A + D);
4328
- h && (w.ac = _ * (A * w.ac + D * E.ac)), w.rc = _ * (A * w.rc + D * E.rc), w.gc = _ * (A * w.gc + D * E.gc), w.bc = _ * (A * w.bc + D * E.bc), w.cnt += E.cnt, w.mtm = ++g, u[E.bk].fw = E.fw, u[E.fw].bk = E.bk, E.mtm = m;
4358
+ var E = u[w.nn], S = w.cnt, D = E.cnt, _ = 1 / (S + D);
4359
+ h && (w.ac = _ * (S * w.ac + D * E.ac)), w.rc = _ * (S * w.rc + D * E.rc), w.gc = _ * (S * w.gc + D * E.gc), w.bc = _ * (S * w.bc + D * E.bc), w.cnt += E.cnt, w.mtm = ++g, u[E.bk].fw = E.fw, u[E.fw].bk = E.bk, E.mtm = m;
4329
4360
  }
4330
4361
  let T = [];
4331
4362
  var R = 0;
4332
4363
  for (g = 0; ; ++R) {
4333
- let O = Ot(Math.round(u[g].rc), 0, 255), B = Ot(Math.round(u[g].gc), 0, 255), F = Ot(Math.round(u[g].bc), 0, 255), U = 255;
4334
- h && (U = Ot(Math.round(u[g].ac), 0, 255), o && (U = U <= (typeof o == "number" ? o : 127) ? 0 : 255), n && U <= s && (O = B = F = r, U = 0));
4364
+ let O = Lt(Math.round(u[g].rc), 0, 255), B = Lt(Math.round(u[g].gc), 0, 255), F = Lt(Math.round(u[g].bc), 0, 255), U = 255;
4365
+ h && (U = Lt(Math.round(u[g].ac), 0, 255), o && (U = U <= (typeof o == "number" ? o : 127) ? 0 : 255), n && U <= s && (O = B = F = r, U = 0));
4335
4366
  let Q = h ? [O, B, F, U] : [O, B, F];
4336
4367
  if (za(T, Q) || T.push(Q), (g = u[g].fw) == 0) break;
4337
4368
  }
@@ -4354,7 +4385,7 @@ function Na(a, e, t = "rgb565") {
4354
4385
  s[l] = d;
4355
4386
  }
4356
4387
  else {
4357
- let l = t === "rgb444" ? Mr : Sr;
4388
+ let l = t === "rgb444" ? Mr : Ar;
4358
4389
  for (let c = 0; c < n; c++) {
4359
4390
  let h = i[c], u = h >> 16 & 255, p = h >> 8 & 255, m = h & 255, f = l(m, p, u), d = f in o ? o[f] : o[f] = Ba(m, p, u, e);
4360
4391
  s[c] = d;
@@ -4392,7 +4423,7 @@ function Ge(a) {
4392
4423
  return a * a;
4393
4424
  }
4394
4425
  function Va(a = {}) {
4395
- let { initialCapacity: e = 4096, auto: t = !0 } = a, i = Ar(e), n = 5003, r = new Uint8Array(256), s = new Int32Array(n), o = new Int32Array(n), l = !1;
4426
+ let { initialCapacity: e = 4096, auto: t = !0 } = a, i = Sr(e), n = 5003, r = new Uint8Array(256), s = new Int32Array(n), o = new Int32Array(n), l = !1;
4396
4427
  return { reset() {
4397
4428
  i.reset(), l = !1;
4398
4429
  }, finish() {
@@ -4446,7 +4477,7 @@ function Ya(a, e, t, i) {
4446
4477
  } else a.writeByte(0);
4447
4478
  }
4448
4479
  function Za(a, e, t, i, n = 8, r, s, o) {
4449
- La(t, i, e, n, a, r, s, o);
4480
+ Ia(t, i, e, n, a, r, s, o);
4450
4481
  }
4451
4482
  function Me(a, e) {
4452
4483
  a.writeByte(e & 255), a.writeByte(e >> 8 & 255);
@@ -5724,7 +5755,7 @@ class uo {
5724
5755
  }
5725
5756
  async init() {
5726
5757
  const e = this.config.width || this.container.clientWidth || 800, t = this.config.height || this.container.clientHeight || 600;
5727
- this.scene = new M.Scene(), this.scene.background = new M.Color(2066), this.camera = new M.PerspectiveCamera(50, e / t, 1, 1e3), this.camera.position.set(0, 0, this.config.initialView === "flat" ? 350 : 150), this.renderer = new M.WebGLRenderer({ antialias: !0 }), this.renderer.setSize(e, t), this.renderer.setPixelRatio(Math.min(window.devicePixelRatio, 2)), this.container.appendChild(this.renderer.domElement), this.controls = new zr(this.camera, this.renderer.domElement), this.controls.enableDamping = !0, this.controls.minDistance = 80, this.controls.maxDistance = 400, this.choropleth = new Ma(), this.config.showLegend && (this.legend = new Ra()), await this.createGlobe(), this.createStars(), this.config.effects.atmosphere && this.createAtmosphere(), this.countryLabels = new no(this.container, Be), this.scene.add(this.countryLabels.getGroup()), this.globe && this.countryLabels.setGlobe(this.globe), this.countryLabels.setCamera(this.camera), this.countryLabels.setStyle(this.config.labels), this.exporter = new Xa(this.renderer, this.scene, this.camera), this.config.showControls && this.createGUI(), await this.choropleth.waitForLoad(), typeof this.config.statistic == "string" && this.setStatistic(this.config.statistic), this.morph = this.config.initialView === "globe" ? 1 : 0, this.material && (this.material.uniforms.uMorph.value = this.morph), this.countryLabels?.setMorph(this.morph), window.addEventListener("resize", this.handleResize), this.animate();
5758
+ this.scene = new M.Scene(), this.scene.background = new M.Color(2066), this.camera = new M.PerspectiveCamera(50, e / t, 1, 1e3), this.camera.position.set(0, 0, this.config.initialView === "flat" ? 350 : 150), this.renderer = new M.WebGLRenderer({ antialias: !0 }), this.renderer.setSize(e, t), this.renderer.setPixelRatio(Math.min(window.devicePixelRatio, 2)), this.container.appendChild(this.renderer.domElement), this.controls = new zr(this.camera, this.renderer.domElement), this.controls.enableDamping = !0, this.controls.minDistance = 80, this.controls.maxDistance = 400, this.choropleth = new Ma(), this.config.showLegend && (this.legend = new Ra()), await this.createGlobe(), this.createStars(), this.config.effects.atmosphere && this.createAtmosphere(), this.countryLabels = new no(this.container, Be), this.scene.add(this.countryLabels.getGroup()), this.globe && this.countryLabels.setGlobe(this.globe), this.countryLabels.setCamera(this.camera), this.countryLabels.setStyle(this.config.labels), this.exporter = new Xa(this.renderer, this.scene, this.camera), this.config.showControls && this.createGUI(), await this.choropleth.waitForLoad(), this.setStatistic(this.config.statistic), this.morph = this.config.initialView === "globe" ? 1 : 0, this.material && (this.material.uniforms.uMorph.value = this.morph), this.countryLabels?.setMorph(this.morph), window.addEventListener("resize", this.handleResize), window.addEventListener("keydown", this.handleKeydown), this.animate();
5728
5759
  }
5729
5760
  async createGlobe() {
5730
5761
  const e = await this.textureLoader.loadAsync(
@@ -5837,6 +5868,9 @@ class uo {
5837
5868
  const e = this.config.width || this.container.clientWidth, t = this.config.height || this.container.clientHeight;
5838
5869
  this.camera.aspect = e / t, this.camera.updateProjectionMatrix(), this.renderer.setSize(e, t), this.countryLabels?.resize(e, t);
5839
5870
  };
5871
+ handleKeydown = (e) => {
5872
+ this.isDestroyed || (e.key === "g" || e.key === "G") && (this.morph > 0.5 ? this.toFlat() : this.toGlobe());
5873
+ };
5840
5874
  animate = () => {
5841
5875
  if (this.isDestroyed) return;
5842
5876
  this.animationId = requestAnimationFrame(this.animate);
@@ -5885,7 +5919,7 @@ class uo {
5885
5919
  return;
5886
5920
  }
5887
5921
  this.currentStatistic = e;
5888
- const i = Sa.find((n) => n.id === e);
5922
+ const i = Aa.find((n) => n.id === e);
5889
5923
  if (i && this.choropleth) {
5890
5924
  const n = this.choropleth.renderTexture(i);
5891
5925
  if (this.material && n) {
@@ -5894,6 +5928,20 @@ class uo {
5894
5928
  }
5895
5929
  }
5896
5930
  this.legend && i && this.legend.show(i);
5931
+ } else {
5932
+ const t = e;
5933
+ if (this.currentStatistic = t.definition.id, this.choropleth) {
5934
+ const i = this.choropleth.renderCustomTexture(
5935
+ t.values,
5936
+ t.definition.colorScale,
5937
+ t.definition.domain
5938
+ );
5939
+ if (this.material && i) {
5940
+ const n = new M.CanvasTexture(i);
5941
+ n.needsUpdate = !0, this.material.uniforms.uDataTexture.value = n, this.material.uniforms.uDataOverlay.value = 1, this.material.uniforms.uDataOpacity.value = 0.7;
5942
+ }
5943
+ }
5944
+ this.legend && this.legend.show(t.definition);
5897
5945
  }
5898
5946
  }
5899
5947
  setLabels(e) {
@@ -5935,7 +5983,7 @@ class uo {
5935
5983
  this.config.width = e, this.config.height = t, this.handleResize();
5936
5984
  }
5937
5985
  destroy() {
5938
- this.isDestroyed = !0, this.animationId && cancelAnimationFrame(this.animationId), window.removeEventListener("resize", this.handleResize), this.gui?.destroy(), this.legend?.dispose(), this.countryLabels?.dispose(), this.globe?.geometry.dispose(), this.globe?.material?.dispose(), this.atmosphere?.geometry.dispose(), this.atmosphere?.material?.dispose(), this.stars?.geometry.dispose(), this.stars?.material?.dispose(), this.renderer.dispose(), this.container.removeChild(this.renderer.domElement);
5986
+ this.isDestroyed = !0, this.animationId && cancelAnimationFrame(this.animationId), window.removeEventListener("resize", this.handleResize), window.removeEventListener("keydown", this.handleKeydown), this.gui?.destroy(), this.legend?.dispose(), this.countryLabels?.dispose(), this.globe?.geometry.dispose(), this.globe?.material?.dispose(), this.atmosphere?.geometry.dispose(), this.atmosphere?.material?.dispose(), this.stars?.geometry.dispose(), this.stars?.material?.dispose(), this.renderer.dispose(), this.container.removeChild(this.renderer.domElement);
5939
5987
  }
5940
5988
  }
5941
5989
  export {