gralobe 1.0.2 → 1.0.3
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 +99 -98
- package/dist/gralobe.js.map +1 -1
- package/dist/gralobe.umd.cjs +1 -1
- package/dist/gralobe.umd.cjs.map +1 -1
- package/dist/index.d.ts +2 -0
- package/package.json +1 -1
package/dist/gralobe.js
CHANGED
|
@@ -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
|
|
462
|
+
function An(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,
|
|
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) {
|
|
477
477
|
return typeof e == "string";
|
|
478
478
|
}, V = function(e) {
|
|
479
479
|
return typeof e == "function";
|
|
@@ -485,12 +485,12 @@ var he = {
|
|
|
485
485
|
return typeof e == "object";
|
|
486
486
|
}, ee = function(e) {
|
|
487
487
|
return e !== !1;
|
|
488
|
-
},
|
|
488
|
+
}, Ai = 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,
|
|
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
494
|
return (Ft = 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()");
|
|
@@ -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 ||
|
|
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] : [];
|
|
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") ||
|
|
709
|
+
return me(t, i.querySelectorAll ? i : i === e ? vt("Invalid scope") || Si.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) :
|
|
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);
|
|
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;
|
|
@@ -835,7 +835,7 @@ var he = {
|
|
|
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,
|
|
838
|
+
if (e = !e.name && e.default || e, Ai() || 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 = {
|
|
@@ -946,7 +946,7 @@ var he = {
|
|
|
946
946
|
return p / (1e3 / (g || 60));
|
|
947
947
|
},
|
|
948
948
|
wake: function() {
|
|
949
|
-
kn && (!hi &&
|
|
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) {
|
|
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
|
-
},
|
|
975
|
+
}, S = {}, 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 =
|
|
984
|
-
return i && t.length > 1 && i.config ? i.config.apply(null, ~e.indexOf("{") ? [Ps(t[1])] : Cs(e).split(",").map(Nn)) :
|
|
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;
|
|
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 :
|
|
993
|
+
return e && (V(e) ? e : S[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,9 +1003,9 @@ var he = {
|
|
|
1003
1003
|
easeInOut: n
|
|
1004
1004
|
}, s;
|
|
1005
1005
|
return te(e, function(o) {
|
|
1006
|
-
|
|
1006
|
+
S[o] = ce[o] = r, S[s = o.toLowerCase()] = i;
|
|
1007
1007
|
for (var l in r)
|
|
1008
|
-
|
|
1008
|
+
S[s + (l === "easeIn" ? ".in" : l === "easeOut" ? ".out" : ".inOut")] = S[o + "." + l] = r[l];
|
|
1009
1009
|
}), r;
|
|
1010
1010
|
}, sr = function(e) {
|
|
1011
1011
|
return function(t) {
|
|
@@ -1043,7 +1043,7 @@ 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
|
-
|
|
1046
|
+
S.Linear.easeNone = S.none = S.Linear.easeIn;
|
|
1047
1047
|
We("Elastic", qt("in"), qt("out"), qt());
|
|
1048
1048
|
(function(a, e) {
|
|
1049
1049
|
var t = 1 / e, i = 2 * t, n = 2.5 * t, r = function(o) {
|
|
@@ -1057,13 +1057,13 @@ 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 -(
|
|
1060
|
+
return -(Sn(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
1065
|
We("Back", Qt("in"), Qt("out"), Qt());
|
|
1066
|
-
|
|
1066
|
+
S.SteppedEase = S.steps = ce.SteppedEase = {
|
|
1067
1067
|
config: function(e, t) {
|
|
1068
1068
|
e === void 0 && (e = 1);
|
|
1069
1069
|
var i = 1 / e, n = e + (t ? 0 : 1), r = t ? 1 : 0, s = 1 - L;
|
|
@@ -1072,7 +1072,7 @@ A.SteppedEase = A.steps = ce.SteppedEase = {
|
|
|
1072
1072
|
};
|
|
1073
1073
|
}
|
|
1074
1074
|
};
|
|
1075
|
-
st.ease =
|
|
1075
|
+
st.ease = S["quad.out"];
|
|
1076
1076
|
te("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt", function(a) {
|
|
1077
1077
|
return Ri += a + "," + a + "Params,";
|
|
1078
1078
|
});
|
|
@@ -1203,7 +1203,7 @@ ue(Ct.prototype, {
|
|
|
1203
1203
|
_rts: 1
|
|
1204
1204
|
});
|
|
1205
1205
|
var q = /* @__PURE__ */ (function(a) {
|
|
1206
|
-
|
|
1206
|
+
An(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;
|
|
@@ -1256,12 +1256,12 @@ var q = /* @__PURE__ */ (function(a) {
|
|
|
1256
1256
|
}
|
|
1257
1257
|
else {
|
|
1258
1258
|
m = this._last;
|
|
1259
|
-
for (var
|
|
1260
|
-
if (f = m._prev, (m._act ||
|
|
1259
|
+
for (var A = n < 0 ? n : p; m; ) {
|
|
1260
|
+
if (f = m._prev, (m._act || A <= 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 ? (
|
|
1264
|
-
y = 0, f && (h += this._zTime =
|
|
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);
|
|
1265
1265
|
break;
|
|
1266
1266
|
}
|
|
1267
1267
|
}
|
|
@@ -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
|
-
|
|
1317
|
+
Ae !== 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 ? (!
|
|
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;
|
|
1322
1322
|
return s;
|
|
1323
1323
|
}, t.tweenTo = function(n, r) {
|
|
1324
1324
|
r = r || {};
|
|
@@ -1397,7 +1397,7 @@ ue(q.prototype, {
|
|
|
1397
1397
|
_hasPause: 0,
|
|
1398
1398
|
_forcing: 0
|
|
1399
1399
|
});
|
|
1400
|
-
var
|
|
1400
|
+
var As = 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
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); )
|
|
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 = {
|
|
@@ -1413,8 +1413,8 @@ var Ss = function(e, t, i, n, r, s, o) {
|
|
|
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),
|
|
1417
|
-
},
|
|
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) {
|
|
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,12 +1423,12 @@ var Ss = 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] :
|
|
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))
|
|
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
|
-
},
|
|
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,
|
|
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;
|
|
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
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) {
|
|
1434
1434
|
if (ke(e._startAt = j.set(g, ue({
|
|
@@ -1466,12 +1466,12 @@ var Ss = function(e, t, i, n, r, s, o) {
|
|
|
1466
1466
|
for (e._pt = e._ptCache = 0, l = f && ee(l) || l && !f, P = 0; P < g.length; P++) {
|
|
1467
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) {
|
|
1468
1468
|
O[Q] = C;
|
|
1469
|
-
}), R.priority && (
|
|
1469
|
+
}), R.priority && (A = 1)), !T || F)
|
|
1470
1470
|
for (w in v)
|
|
1471
|
-
ae[w] && (R = or(w, v, e, B, E, y)) ? R.priority && (
|
|
1472
|
-
e._op && e._op[P] && e.kill(E, e._op[P]), x && e._pt && (
|
|
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);
|
|
1473
1473
|
}
|
|
1474
|
-
|
|
1474
|
+
A && 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) {
|
|
@@ -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
|
-
|
|
1524
|
+
An(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,
|
|
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;
|
|
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,
|
|
1535
|
+
if (w = x.length, A = 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,
|
|
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;
|
|
1540
1540
|
b.duration() ? c = h = 0 : o.timeline = 0;
|
|
1541
1541
|
} else if (f) {
|
|
1542
1542
|
yt(ue(b.vars.defaults, {
|
|
@@ -1567,7 +1567,7 @@ 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 && (
|
|
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;
|
|
1571
1571
|
}
|
|
1572
1572
|
var t = e.prototype;
|
|
1573
1573
|
return t.render = function(n, r, s) {
|
|
@@ -1610,7 +1610,7 @@ var j = /* @__PURE__ */ (function(a) {
|
|
|
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,
|
|
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;
|
|
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))
|
|
@@ -1886,10 +1886,10 @@ var Ze = [], Lt = {}, zs = [], nn = 0, Ns = 0, Jt = function(e) {
|
|
|
1886
1886
|
});
|
|
1887
1887
|
},
|
|
1888
1888
|
registerEase: function(e, t) {
|
|
1889
|
-
|
|
1889
|
+
S[e] = Ye(t);
|
|
1890
1890
|
},
|
|
1891
1891
|
parseEase: function(e, t) {
|
|
1892
|
-
return arguments.length ? Ye(e, t) :
|
|
1892
|
+
return arguments.length ? Ye(e, t) : S;
|
|
1893
1893
|
},
|
|
1894
1894
|
getById: function(e) {
|
|
1895
1895
|
return N.getById(e);
|
|
@@ -2025,26 +2025,26 @@ var Bs = function(e, t) {
|
|
|
2025
2025
|
}, ei("roundProps", mi), ei("modifiers"), ei("snap", Xn)) || Bt;
|
|
2026
2026
|
j.version = q.version = re.version = "3.13.0";
|
|
2027
2027
|
kn = 1;
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
var rn,
|
|
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() {
|
|
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, Ae, 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 =
|
|
2119
|
-
return i && i.style ? i :
|
|
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);
|
|
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, Ae, 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,
|
|
2131
|
+
Gs() && window.document && (rn = window, Se = rn.document, nt = Se.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) {
|
|
@@ -2179,7 +2179,7 @@ var rn, Ae, nt, Ni, Ve, sn, $i, Gs = function() {
|
|
|
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 ===
|
|
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)
|
|
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, Ae, 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 =
|
|
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;
|
|
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);
|
|
@@ -2227,7 +2227,7 @@ var rn, Ae, 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",
|
|
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)));
|
|
2231
2231
|
}
|
|
2232
2232
|
}, Vt = {
|
|
2233
2233
|
clearProps: function(e, t, i, n, r) {
|
|
@@ -2310,12 +2310,12 @@ var rn, Ae, 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
|
-
},
|
|
2313
|
+
}, At = 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,
|
|
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),
|
|
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
2319
|
}, Gt = function(e) {
|
|
2320
2320
|
return (e = e.split(" "))[0] + " " + e[1];
|
|
2321
2321
|
}, ti = function(e, t, i) {
|
|
@@ -2342,7 +2342,7 @@ var rn, Ae, 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 =
|
|
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);
|
|
2346
2346
|
for (l in Te)
|
|
2347
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));
|
|
2348
2348
|
pn(o, n);
|
|
@@ -2379,7 +2379,7 @@ var Cr = {
|
|
|
2379
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]);
|
|
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 ||
|
|
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")
|
|
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
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)));
|
|
@@ -2698,7 +2698,7 @@ const da = {
|
|
|
2698
2698
|
match: (a) => typeof a == "string",
|
|
2699
2699
|
fromHexString: Ei,
|
|
2700
2700
|
toHexString: Ei
|
|
2701
|
-
},
|
|
2701
|
+
}, St = {
|
|
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 =
|
|
2710
|
+
const i = St.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
|
|
2716
|
+
return St.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 =
|
|
2722
|
+
const i = St.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
|
|
2728
|
+
return St.toHexString(n);
|
|
2729
2729
|
}
|
|
2730
|
-
}, ma = [da,
|
|
2730
|
+
}, ma = [da, St, pa, fa];
|
|
2731
2731
|
function ga(a) {
|
|
2732
2732
|
return ma.find((e) => e.match(a));
|
|
2733
2733
|
}
|
|
@@ -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 =
|
|
3730
|
+
var t = e.id, i = e.bbox, n = e.properties == null ? {} : e.properties, r = Aa(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
|
|
3733
|
+
function Aa(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
|
-
],
|
|
3884
|
+
], Sa = [
|
|
3885
3885
|
{
|
|
3886
3886
|
id: "humanDevIndex",
|
|
3887
3887
|
name: "Human Development Index",
|
|
@@ -4185,7 +4185,7 @@ class Ra {
|
|
|
4185
4185
|
}
|
|
4186
4186
|
}
|
|
4187
4187
|
var Oa = { trailer: 59 };
|
|
4188
|
-
function
|
|
4188
|
+
function Ar(a = 256) {
|
|
4189
4189
|
let e = 0, t = new Uint8Array(a);
|
|
4190
4190
|
return { get buffer() {
|
|
4191
4191
|
return t.buffer;
|
|
@@ -4213,7 +4213,7 @@ function Sr(a = 256) {
|
|
|
4213
4213
|
}
|
|
4214
4214
|
}
|
|
4215
4215
|
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 =
|
|
4216
|
+
function Ia(a, e, t, i, n = Ar(512), r = new Uint8Array(256), s = new Int32Array(gn), o = new Int32Array(gn)) {
|
|
4217
4217
|
let l = s.length, c = Math.max(2, i);
|
|
4218
4218
|
r.fill(0), o.fill(0), s.fill(-1);
|
|
4219
4219
|
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 +4222,7 @@ function Ia(a, e, t, i, n = Sr(512), r = new Uint8Array(256), s = new Int32Array
|
|
|
4222
4222
|
let w = t.length;
|
|
4223
4223
|
for (let E = 1; E < w; E++)
|
|
4224
4224
|
e: {
|
|
4225
|
-
let
|
|
4225
|
+
let A = t[E], D = (A << si) + v, T = A << P ^ v;
|
|
4226
4226
|
if (s[T] === D) {
|
|
4227
4227
|
v = o[T];
|
|
4228
4228
|
break e;
|
|
@@ -4232,7 +4232,7 @@ function Ia(a, e, t, i, n = Sr(512), r = new Uint8Array(256), s = new Int32Array
|
|
|
4232
4232
|
v = o[T];
|
|
4233
4233
|
break e;
|
|
4234
4234
|
}
|
|
4235
|
-
C(v), v =
|
|
4235
|
+
C(v), v = A, x < 1 << si ? (o[T] = x++, s[T] = D) : (s.fill(-1), x = _ + 2, f = !0, C(_));
|
|
4236
4236
|
}
|
|
4237
4237
|
return C(v), C(y), n.writeByte(0), n.bytesView();
|
|
4238
4238
|
function C(E) {
|
|
@@ -4244,7 +4244,7 @@ function Ia(a, e, t, i, n = Sr(512), r = new Uint8Array(256), s = new Int32Array
|
|
|
4244
4244
|
}
|
|
4245
4245
|
}
|
|
4246
4246
|
var La = Ia;
|
|
4247
|
-
function
|
|
4247
|
+
function Sr(a, e, t) {
|
|
4248
4248
|
return a << 8 & 63488 | e << 2 & 992 | t >> 3;
|
|
4249
4249
|
}
|
|
4250
4250
|
function Dr(a, e, t, i) {
|
|
@@ -4287,7 +4287,7 @@ function Ua(a, e) {
|
|
|
4287
4287
|
u.rc += c, u.gc += l, u.bc += o, u.cnt++;
|
|
4288
4288
|
}
|
|
4289
4289
|
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 =
|
|
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();
|
|
4291
4291
|
u.rc += c, u.gc += l, u.bc += o, u.cnt++;
|
|
4292
4292
|
}
|
|
4293
4293
|
return i;
|
|
@@ -4324,8 +4324,8 @@ function Fa(a, e, t = {}) {
|
|
|
4324
4324
|
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
4325
|
f[x] = C;
|
|
4326
4326
|
}
|
|
4327
|
-
var E = u[w.nn],
|
|
4328
|
-
h && (w.ac = _ * (
|
|
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;
|
|
4329
4329
|
}
|
|
4330
4330
|
let T = [];
|
|
4331
4331
|
var R = 0;
|
|
@@ -4354,7 +4354,7 @@ function Na(a, e, t = "rgb565") {
|
|
|
4354
4354
|
s[l] = d;
|
|
4355
4355
|
}
|
|
4356
4356
|
else {
|
|
4357
|
-
let l = t === "rgb444" ? Mr :
|
|
4357
|
+
let l = t === "rgb444" ? Mr : Sr;
|
|
4358
4358
|
for (let c = 0; c < n; c++) {
|
|
4359
4359
|
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
4360
|
s[c] = d;
|
|
@@ -4392,7 +4392,7 @@ function Ge(a) {
|
|
|
4392
4392
|
return a * a;
|
|
4393
4393
|
}
|
|
4394
4394
|
function Va(a = {}) {
|
|
4395
|
-
let { initialCapacity: e = 4096, auto: t = !0 } = a, i =
|
|
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;
|
|
4396
4396
|
return { reset() {
|
|
4397
4397
|
i.reset(), l = !1;
|
|
4398
4398
|
}, finish() {
|
|
@@ -5668,10 +5668,11 @@ void main() {
|
|
|
5668
5668
|
statistic: "lifeExpectancy",
|
|
5669
5669
|
autoRotate: !1,
|
|
5670
5670
|
initialView: "globe",
|
|
5671
|
-
showControls: !
|
|
5671
|
+
showControls: !1,
|
|
5672
5672
|
showLegend: !0,
|
|
5673
5673
|
effects: {
|
|
5674
5674
|
atmosphereIntensity: 0,
|
|
5675
|
+
atmosphere: !1,
|
|
5675
5676
|
clouds: !1,
|
|
5676
5677
|
starTwinkle: !0
|
|
5677
5678
|
},
|
|
@@ -5723,7 +5724,7 @@ class uo {
|
|
|
5723
5724
|
}
|
|
5724
5725
|
async init() {
|
|
5725
5726
|
const e = this.config.width || this.container.clientWidth || 800, t = this.config.height || this.container.clientHeight || 600;
|
|
5726
|
-
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.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();
|
|
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();
|
|
5727
5728
|
}
|
|
5728
5729
|
async createGlobe() {
|
|
5729
5730
|
const e = await this.textureLoader.loadAsync(
|
|
@@ -5884,7 +5885,7 @@ class uo {
|
|
|
5884
5885
|
return;
|
|
5885
5886
|
}
|
|
5886
5887
|
this.currentStatistic = e;
|
|
5887
|
-
const i =
|
|
5888
|
+
const i = Sa.find((n) => n.id === e);
|
|
5888
5889
|
if (i && this.choropleth) {
|
|
5889
5890
|
const n = this.choropleth.renderTexture(i);
|
|
5890
5891
|
if (this.material && n) {
|
|
@@ -5928,7 +5929,7 @@ class uo {
|
|
|
5928
5929
|
await this.exporter.startVideoRecording(e), await new Promise((i) => setTimeout(i, t * 1e3)), this.exporter.stopVideoRecording();
|
|
5929
5930
|
}
|
|
5930
5931
|
setEffects(e) {
|
|
5931
|
-
Object.assign(this.config.effects, e), this.material && (e.clouds !== void 0 && (this.material.uniforms.uClouds.value = e.clouds ? 1 : 0), e.cloudSpeed !== void 0 && (this.material.uniforms.uCloudSpeed.value = e.cloudSpeed), e.cloudOpacity !== void 0 && (this.material.uniforms.uCloudOpacity.value = e.cloudOpacity), e.atmosphereIntensity !== void 0 && (this.material.uniforms.uAtmosphereIntensity.value = e.atmosphereIntensity), e.gridLines !== void 0 && (this.material.uniforms.uGridLines.value = e.gridLines ? 1 : 0), e.gridOpacity !== void 0 && (this.material.uniforms.uGridOpacity.value = e.gridOpacity), e.glowPulse !== void 0 && (this.material.uniforms.uGlowPulse.value = e.glowPulse ? 1 : 0), e.starTwinkle !== void 0 && this.stars && (this.stars.material.uniforms.uTwinkle.value = e.starTwinkle ? 1 : 0));
|
|
5932
|
+
Object.assign(this.config.effects, e), this.material && (e.atmosphere !== void 0 && (e.atmosphere && !this.atmosphere ? this.createAtmosphere() : !e.atmosphere && this.atmosphere && (this.scene.remove(this.atmosphere), this.atmosphere.geometry.dispose(), this.atmosphere.material.dispose(), this.atmosphere = null)), e.clouds !== void 0 && (this.material.uniforms.uClouds.value = e.clouds ? 1 : 0), e.cloudSpeed !== void 0 && (this.material.uniforms.uCloudSpeed.value = e.cloudSpeed), e.cloudOpacity !== void 0 && (this.material.uniforms.uCloudOpacity.value = e.cloudOpacity), e.atmosphereIntensity !== void 0 && (this.material.uniforms.uAtmosphereIntensity.value = e.atmosphereIntensity), e.gridLines !== void 0 && (this.material.uniforms.uGridLines.value = e.gridLines ? 1 : 0), e.gridOpacity !== void 0 && (this.material.uniforms.uGridOpacity.value = e.gridOpacity), e.glowPulse !== void 0 && (this.material.uniforms.uGlowPulse.value = e.glowPulse ? 1 : 0), e.starTwinkle !== void 0 && this.stars && (this.stars.material.uniforms.uTwinkle.value = e.starTwinkle ? 1 : 0));
|
|
5932
5933
|
}
|
|
5933
5934
|
resize(e, t) {
|
|
5934
5935
|
this.config.width = e, this.config.height = t, this.handleResize();
|