-
Notifications
You must be signed in to change notification settings - Fork 0
/
gsap.min.js
11 lines (9 loc) · 73.4 KB
/
gsap.min.js
1
2
3
4
5
6
7
8
9
10
/*!
* GSAP 3.4.0
* https://greensock.com
*
* @license Copyright 2020, GreenSock. All rights reserved.
* Subject to the terms at https://greensock.com/standard-license or for Club GreenSock members, the agreement issued with that membership.
* @author: Jack Doyle, jack@greensock.com
*/
!function (t, e) { "object" == typeof exports && "undefined" != typeof module ? e(exports) : "function" == typeof define && define.amd ? define(["exports"], e) : e((t = t || self).window = t.window || {}) }(this, function (e) { "use strict"; function _inheritsLoose(t, e) { t.prototype = Object.create(e.prototype), (t.prototype.constructor = t).__proto__ = e } function _assertThisInitialized(t) { if (void 0 === t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return t } function n(t) { return "string" == typeof t } function o(t) { return "function" == typeof t } function p(t) { return "number" == typeof t } function q(t) { return void 0 === t } function r(t) { return "object" == typeof t } function s(t) { return !1 !== t } function t() { return "undefined" != typeof window } function u(t) { return o(t) || n(t) } function K(t) { return (l = pt(t, at)) && ie } function L(t, e) { return console.warn("Invalid property", t, "set to", e, "Missing plugin? gsap.registerPlugin()") } function M(t, e) { return !e && console.warn(t) } function N(t, e) { return t && (at[t] = e) && l && (l[t] = e) || at } function O() { return 0 } function Y(t) { var e, i, n = t[0]; if (r(n) || o(n) || (t = [t]), !(e = (n._gsap || {}).harness)) { for (i = dt.length; i-- && !dt[i].targetTest(n);); e = dt[i] } for (i = t.length; i--;)t[i] && (t[i]._gsap || (t[i]._gsap = new Et(t[i], e))) || t.splice(i, 1); return t } function Z(t) { return t._gsap || Y(yt(t))[0]._gsap } function $(t, e) { var r = t[e]; return o(r) ? t[e]() : q(r) && t.getAttribute(e) || r } function _(t, e) { return (t = t.split(",")).forEach(e) || t } function aa(t) { return Math.round(1e5 * t) / 1e5 || 0 } function ba(t, e) { for (var r = e.length, i = 0; t.indexOf(e[i]) < 0 && ++i < r;); return i < r } function ca(t, e, r) { var i, n = p(t[1]), a = (n ? 2 : 1) + (e < 2 ? 0 : 1), o = t[a]; if (n && (o.duration = t[1]), o.parent = r, e) { for (i = o; r && !("immediateRender" in i);)i = r.vars.defaults || {}, r = s(r.vars.inherit) && r.parent; o.immediateRender = s(i.immediateRender), e < 2 ? o.runBackwards = 1 : o.startAt = t[a - 1] } return o } function da() { var t, e, r = ot.length, i = ot.slice(0); for (ut = {}, t = ot.length = 0; t < r; t++)(e = i[t]) && e._lazy && (e.render(e._lazy[0], e._lazy[1], !0)._lazy = 0) } function ea(t, e, r, i) { ot.length && da(), t.render(e, r, i), ot.length && da() } function fa(t) { var e = parseFloat(t); return (e || 0 === e) && (t + "").match(nt).length < 2 ? e : t } function ga(t) { return t } function ha(t, e) { for (var r in e) r in t || (t[r] = e[r]); return t } function ia(t, e) { for (var r in e) r in t || "duration" === r || "ease" === r || (t[r] = e[r]) } function ka(t, e) { for (var i in e) t[i] = r(e[i]) ? ka(t[i] || (t[i] = {}), e[i]) : e[i]; return t } function la(t, e) { var r, i = {}; for (r in t) r in e || (i[r] = t[r]); return i } function ma(t) { var e = t.parent || E, r = t.keyframes ? ia : ha; if (s(t.inherit)) for (; e;)r(t, e.vars.defaults), e = e.parent || e._dp; return t } function pa(t, e, r, i) { void 0 === r && (r = "_first"), void 0 === i && (i = "_last"); var n = e._prev, a = e._next; n ? n._next = a : t[r] === e && (t[r] = a), a ? a._prev = n : t[i] === e && (t[i] = n), e._next = e._prev = e.parent = null } function qa(t, e) { !t.parent || e && !t.parent.autoRemoveChildren || t.parent.remove(t), t._act = 0 } function ra(t) { for (var e = t; e;)e._dirty = 1, e = e.parent; return t } function ua(t) { return t._repeat ? _t(t._tTime, t = t.duration() + t._rDelay) * t : 0 } function wa(t, e) { return (t - e._start) * e._ts + (0 <= e._ts ? 0 : e._dirty ? e.totalDuration() : e._tDur) } function xa(t) { return t._end = aa(t._start + (t._tDur / Math.abs(t._ts || t._rts || R) || 0)) } function ya(t, e) { var r = t._dp; return r && r.smoothChildTiming && t._ts && (t._start = aa(t._dp._time - (0 < t._ts ? e / t._ts : ((t._dirty ? t.totalDuration() : t._tDur) - e) / -t._ts)), xa(t), r._dirty || ra(r)), t } function za(t, e) { var r; if ((e._time || e._initted && !e._dur) && (r = wa(t.rawTime(), e), (!e._dur || gt(0, e.totalDuration(), r) - e._tTime > R) && e.render(r, !0)), ra(t)._dp && t._initted && t._time >= t._dur && t._ts) { if (t._dur < t.duration()) for (r = t; r._dp;)0 <= r.rawTime() && r.totalTime(r._tTime), r = r._dp; t._zTime = -R } } function Aa(t, e, r, i) { return e.parent && qa(e), e._start = aa(r + e._delay), e._end = aa(e._start + (e.totalDuration() / Math.abs(e.timeScale()) || 0)), function _addLinkedListItem(t, e, r, i, n) { void 0 === r && (r = "_first"), void 0 === i && (i = "_last"); var a, s = t[i]; if (n) for (a = e[n]; s && s[n] > a;)s = s._prev; s ? (e._next = s._next, s._next = e) : (e._next = t[r], t[r] = e), e._next ? e._next._prev = e : t[i] = e, e._prev = s, e.parent = e._dp = t }(t, e, "_first", "_last", t._sort ? "_start" : 0), t._recent = e, i || za(t, e), t } function Ba(t, e) { return (at.ScrollTrigger || L("scrollTrigger", e)) && at.ScrollTrigger.create(e, t) } function Ca(t, e, r, i) { return qt(t, e), t._initted ? !r && t._pt && (t._dur && !1 !== t.vars.lazy || !t._dur && t.vars.lazy) && d !== Mt.frame ? (ot.push(t), t._lazy = [e, i], 1) : void 0 : 1 } function Fa(t, e, r) { var i = t._repeat, n = aa(e) || 0; return t._dur = n, t._tDur = i ? i < 0 ? 1e10 : aa(n * (i + 1) + t._rDelay * i) : n, t._time > n && (t._time = n, t._tTime = Math.min(t._tTime, t._tDur)), r || ra(t.parent), t.parent && xa(t), t } function Ga(t) { return t instanceof Rt ? ra(t) : Fa(t, t._dur) } function Ia(t, e) { var r, i, a = t.labels, s = t._recent || mt, o = t.duration() >= z ? s.endTime(!1) : t._dur; return n(e) && (isNaN(e) || e in a) ? "<" === (r = e.charAt(0)) || ">" === r ? ("<" === r ? s._start : s.endTime(0 <= s._repeat)) + (parseFloat(e.substr(1)) || 0) : (r = e.indexOf("=")) < 0 ? (e in a || (a[e] = o), a[e]) : (i = +(e.charAt(r - 1) + e.substr(r + 1)), 1 < r ? Ia(t, e.substr(0, r - 1)) + i : o + i) : null == e ? o : +e } function Ja(t, e) { return t || 0 === t ? e(t) : e } function La(t) { return (t + "").substr((parseFloat(t) + "").length) } function Oa(t, e) { return t && r(t) && "length" in t && (!e && !t.length || t.length - 1 in t && r(t[0])) && !t.nodeType && t !== i } function Ra(t) { return t.sort(function () { return .5 - Math.random() }) } function Sa(t) { if (o(t)) return t; var p = r(t) ? t : { each: t }, _ = Ft(p.ease), m = p.from || 0, g = parseFloat(p.base) || 0, v = {}, e = 0 < m && m < 1, y = isNaN(m) || e, T = p.axis, b = m, w = m; return n(m) ? b = w = { center: .5, edges: .5, end: 1 }[m] || 0 : !e && y && (b = m[0], w = m[1]), function (t, e, r) { var i, n, a, s, o, u, h, l, f, d = (r || p).length, c = v[d]; if (!c) { if (!(f = "auto" === p.grid ? 0 : (p.grid || [1, z])[1])) { for (h = -z; h < (h = r[f++].getBoundingClientRect().left) && f < d;); f-- } for (c = v[d] = [], i = y ? Math.min(f, d) * b - .5 : m % f, n = y ? d * w / f - .5 : m / f | 0, l = z, u = h = 0; u < d; u++)a = u % f - i, s = n - (u / f | 0), c[u] = o = T ? Math.abs("y" === T ? s : a) : j(a * a + s * s), h < o && (h = o), o < l && (l = o); "random" === m && Ra(c), c.max = h - l, c.min = l, c.v = d = (parseFloat(p.amount) || parseFloat(p.each) * (d < f ? d - 1 : T ? "y" === T ? d / f : f : Math.max(f, d / f)) || 0) * ("edges" === m ? -1 : 1), c.b = d < 0 ? g - d : g, c.u = La(p.amount || p.each) || 0, _ = _ && d < 0 ? Dt(_) : _ } return d = (c[t] - c.min) / c.max || 0, aa(c.b + (_ ? _(d) : d) * c.v) + c.u } } function Ta(e) { var r = e < 1 ? Math.pow(10, (e + "").length - 2) : 1; return function (t) { return Math.floor(Math.round(parseFloat(t) / e) * e * r) / r + (p(t) ? 0 : La(t)) } } function Ua(u, t) { var h, l, e = J(u); return !e && r(u) && (h = e = u.radius || z, u.values ? (u = yt(u.values), (l = !p(u[0])) && (h *= h)) : u = Ta(u.increment)), Ja(t, e ? o(u) ? function (t) { return l = u(t), Math.abs(l - t) <= h ? l : t } : function (t) { for (var e, r, i = parseFloat(l ? t.x : t), n = parseFloat(l ? t.y : 0), a = z, s = 0, o = u.length; o--;)(e = l ? (e = u[o].x - i) * e + (r = u[o].y - n) * r : Math.abs(u[o] - i)) < a && (a = e, s = o); return s = !h || a <= h ? u[s] : t, l || s === t || p(t) ? s : s + La(t) } : Ta(u)) } function Va(t, e, r, i) { return Ja(J(t) ? !e : !0 === r ? !!(r = 0) : !i, function () { return J(t) ? t[~~(Math.random() * t.length)] : (r = r || 1e-5) && (i = r < 1 ? Math.pow(10, (r + "").length - 2) : 1) && Math.floor(Math.round((t + Math.random() * (e - t)) / r) * r * i) / i }) } function Za(e, r, t) { return Ja(t, function (t) { return e[~~r(t)] }) } function ab(t) { for (var e, r, i, n, a = 0, s = ""; ~(e = t.indexOf("random(", a));)i = t.indexOf(")", e), n = "[" === t.charAt(e + 7), r = t.substr(e + 7, i - e - 7).match(n ? nt : W), s += t.substr(a, e - a) + Va(n ? r : +r[0], +r[1], +r[2] || 1e-5), a = i + 1; return s + t.substr(a, t.length - a) } function db(t, e, r) { var i, n, a, s = t.labels, o = z; for (i in s) (n = s[i] - e) < 0 == !!r && n && o > (n = Math.abs(n)) && (a = i, o = n); return a } function fb(t) { return qa(t), t.progress() < 1 && bt(t, "onInterrupt"), t } function kb(t, e, r) { return (6 * (t = t < 0 ? t + 1 : 1 < t ? t - 1 : t) < 1 ? e + (r - e) * t * 6 : t < .5 ? r : 3 * t < 2 ? e + (r - e) * (2 / 3 - t) * 6 : e) * wt + .5 | 0 } function lb(t, e, r) { var i, n, a, s, o, u, h, l, f, d, c = t ? p(t) ? [t >> 16, t >> 8 & wt, t & wt] : 0 : xt.black; if (!c) { if ("," === t.substr(-1) && (t = t.substr(0, t.length - 1)), xt[t]) c = xt[t]; else if ("#" === t.charAt(0)) 4 === t.length && (t = "#" + (i = t.charAt(1)) + i + (n = t.charAt(2)) + n + (a = t.charAt(3)) + a), c = [(t = parseInt(t.substr(1), 16)) >> 16, t >> 8 & wt, t & wt]; else if ("hsl" === t.substr(0, 3)) if (c = d = t.match(W), e) { if (~t.indexOf("=")) return c = t.match(H), r && c.length < 4 && (c[3] = 1), c } else s = +c[0] % 360 / 360, o = c[1] / 100, i = 2 * (u = c[2] / 100) - (n = u <= .5 ? u * (o + 1) : u + o - u * o), 3 < c.length && (c[3] *= 1), c[0] = kb(s + 1 / 3, i, n), c[1] = kb(s, i, n), c[2] = kb(s - 1 / 3, i, n); else c = t.match(W) || xt.transparent; c = c.map(Number) } return e && !d && (i = c[0] / wt, n = c[1] / wt, a = c[2] / wt, u = ((h = Math.max(i, n, a)) + (l = Math.min(i, n, a))) / 2, h === l ? s = o = 0 : (f = h - l, o = .5 < u ? f / (2 - h - l) : f / (h + l), s = h === i ? (n - a) / f + (n < a ? 6 : 0) : h === n ? (a - i) / f + 2 : (i - n) / f + 4, s *= 60), c[0] = ~~(s + .5), c[1] = ~~(100 * o + .5), c[2] = ~~(100 * u + .5)), r && c.length < 4 && (c[3] = 1), c } function mb(t) { var r = [], i = [], n = -1; return t.split(kt).forEach(function (t) { var e = t.match(tt) || []; r.push.apply(r, e), i.push(n += e.length + 1) }), r.c = i, r } function nb(t, e, r) { var i, n, a, s, o = "", u = (t + o).match(kt), h = e ? "hsla(" : "rgba(", l = 0; if (!u) return t; if (u = u.map(function (t) { return (t = lb(t, e, 1)) && h + (e ? t[0] + "," + t[1] + "%," + t[2] + "%," + t[3] : t.join(",")) + ")" }), r && (a = mb(t), (i = r.c).join(o) !== a.c.join(o))) for (s = (n = t.replace(kt, "1").split(tt)).length - 1; l < s; l++)o += n[l] + (~i.indexOf(l) ? u.shift() || h + "0,0,0,0)" : (a.length ? a : u.length ? u : r).shift()); if (!n) for (s = (n = t.split(kt)).length - 1; l < s; l++)o += n[l] + u[l]; return o + n[s] } function qb(t) { var e, r = t.join(" "); if (kt.lastIndex = 0, kt.test(r)) return e = Ot.test(r), t[1] = nb(t[1], e), t[0] = nb(t[0], e, mb(t[1])), !0 } function yb(t) { var e = (t + "").split("("), r = At[e[0]]; return r && 1 < e.length && r.config ? r.config.apply(null, ~t.indexOf("{") ? [function _parseObjectInString(t) { for (var e, r, i, n = {}, a = t.substr(1, t.length - 3).split(":"), s = a[0], o = 1, u = a.length; o < u; o++)r = a[o], e = o !== u - 1 ? r.lastIndexOf(",") : r.length, i = r.substr(0, e), n[s] = isNaN(i) ? i.replace(St, "").trim() : +i, s = r.substr(e + 1).trim(); return n }(e[1])] : rt.exec(t)[1].split(",").map(fa)) : At._CE && Pt.test(t) ? At._CE("", t) : r } function Ab(t, e) { for (var r, i = t._first; i;)i instanceof Rt ? Ab(i, e) : !i.vars.yoyoEase || i._yoyo && i._repeat || i._yoyo === e || (i.timeline ? Ab(i.timeline, e) : (r = i._ease, i._ease = i._yEase, i._yEase = r, i._yoyo = e)), i = i._next } function Cb(t, e, r, i) { void 0 === r && (r = function easeOut(t) { return 1 - e(1 - t) }), void 0 === i && (i = function easeInOut(t) { return t < .5 ? e(2 * t) / 2 : 1 - e(2 * (1 - t)) / 2 }); var n, a = { easeIn: e, easeOut: r, easeInOut: i }; return _(t, function (t) { for (var e in At[t] = at[t] = a, At[n = t.toLowerCase()] = r, a) At[n + ("easeIn" === e ? ".in" : "easeOut" === e ? ".out" : ".inOut")] = At[t + "." + e] = a[e] }), a } function Db(e) { return function (t) { return t < .5 ? (1 - e(1 - 2 * t)) / 2 : .5 + e(2 * (t - .5)) / 2 } } function Eb(r, t, e) { function il(t) { return 1 === t ? 1 : i * Math.pow(2, -10 * t) * Q((t - a) * n) + 1 } var i = 1 <= t ? t : 1, n = (e || (r ? .3 : .45)) / (t < 1 ? t : 1), a = n / B * (Math.asin(1 / i) || 0), s = "out" === r ? il : "in" === r ? function (t) { return 1 - il(1 - t) } : Db(il); return n = B / n, s.config = function (t, e) { return Eb(r, t, e) }, s } function Fb(e, r) { function ql(t) { return t ? --t * t * ((r + 1) * t + r) + 1 : 0 } void 0 === r && (r = 1.70158); var t = "out" === e ? ql : "in" === e ? function (t) { return 1 - ql(1 - t) } : Db(ql); return t.config = function (t) { return Fb(e, t) }, t } var E, i, a, h, l, f, d, c, m, g, v, y, T, b, w, x, k, C, A, P, S, D, F, U = { autoSleep: 120, force3D: "auto", nullTargetWarn: 1, units: { lineHeight: "" } }, I = { duration: .5, overwrite: !1, delay: 0 }, z = 1e8, R = 1 / z, B = 2 * Math.PI, X = B / 4, V = 0, j = Math.sqrt, G = Math.cos, Q = Math.sin, J = Array.isArray, W = /(?:-?\.?\d|\.)+/gi, H = /[-+=.]*\d+[.e\-+]*\d*[e\-\+]*\d*/g, tt = /[-+=.]*\d+[.e-]*\d*[a-z%]*/g, et = /[-+=.]*\d+(?:\.|e-|e)*\d*/gi, rt = /\(([^()]+)\)/i, it = /[+-]=-?[\.\d]+/, nt = /[#\-+.]*\b[a-z\d-=+%.]+/gi, at = {}, st = {}, ot = [], ut = {}, ht = {}, lt = {}, ft = 30, dt = [], ct = "", pt = function _merge(t, e) { for (var r in e) t[r] = e[r]; return t }, _t = function _animationCycle(t, e) { return (t /= e) && ~~t === t ? ~~t - 1 : ~~t }, mt = { _start: 0, endTime: O }, gt = function _clamp(t, e, r) { return r < t ? t : e < r ? e : r }, vt = [].slice, yt = function toArray(t, e) { return !n(t) || e || !a && Ct() ? J(t) ? function _flatten(t, e, r) { return void 0 === r && (r = []), t.forEach(function (t) { return n(t) && !e || Oa(t, 1) ? r.push.apply(r, yt(t)) : r.push(t) }) || r }(t, e) : Oa(t) ? vt.call(t, 0) : t ? [t] : [] : vt.call(h.querySelectorAll(t), 0) }, Tt = function mapRange(e, t, r, i, n) { var a = t - e, s = i - r; return Ja(n, function (t) { return r + ((t - e) / a * s || 0) }) }, bt = function _callback(t, e, r) { var i, n, a = t.vars, s = a[e]; if (s) return i = a[e + "Params"], n = a.callbackScope || t, r && ot.length && da(), i ? s.apply(n, i) : s.call(n) }, wt = 255, xt = { aqua: [0, wt, wt], lime: [0, wt, 0], silver: [192, 192, 192], black: [0, 0, 0], maroon: [128, 0, 0], teal: [0, 128, 128], blue: [0, 0, wt], navy: [0, 0, 128], white: [wt, wt, wt], olive: [128, 128, 0], yellow: [wt, wt, 0], orange: [wt, 165, 0], gray: [128, 128, 128], purple: [128, 0, 128], green: [0, 128, 0], red: [wt, 0, 0], pink: [wt, 192, 203], cyan: [0, wt, wt], transparent: [wt, wt, wt, 0] }, kt = function () { var t, e = "(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3}){1,2}\\b"; for (t in xt) e += "|" + t + "\\b"; return new RegExp(e + ")", "gi") }(), Ot = /hsl[a]?\(/, Mt = (b = Date.now, w = 500, x = 33, k = b(), C = k, P = A = 1 / 240, T = { time: 0, frame: 0, tick: function tick() { kk(!0) }, wake: function wake() { f && (!a && t() && (i = a = window, h = i.document || {}, at.gsap = ie, (i.gsapVersions || (i.gsapVersions = [])).push(ie.version), K(l || i.GreenSockGlobals || !i.gsap && i || {}), y = i.requestAnimationFrame), g && T.sleep(), v = y || function (t) { return setTimeout(t, 1e3 * (P - T.time) + 1 | 0) }, m = 1, kk(2)) }, sleep: function sleep() { (y ? i.cancelAnimationFrame : clearTimeout)(g), m = 0, v = O }, lagSmoothing: function lagSmoothing(t, e) { w = t || 1e8, x = Math.min(e, w, 0) }, fps: function fps(t) { A = 1 / (t || 240), P = T.time + A }, add: function add(t) { S.indexOf(t) < 0 && S.push(t), Ct() }, remove: function remove(t) { var e; ~(e = S.indexOf(t)) && S.splice(e, 1) }, _listeners: S = [] }), Ct = function _wake() { return !m && Mt.wake() }, At = {}, Pt = /^[\d.\-M][\d.\-,\s]/, St = /["']/g, Dt = function _invertEase(e) { return function (t) { return 1 - e(1 - t) } }, Ft = function _parseEase(t, e) { return t && (o(t) ? t : At[t] || yb(t)) || e }; function kk(e) { var t, r, i = b() - C, n = !0 === e; w < i && (k += i - x), C += i, T.time = (C - k) / 1e3, (0 < (t = T.time - P) || n) && (T.frame++, P += t + (A <= t ? .004 : A - t), r = 1), n || (g = v(kk)), r && S.forEach(function (t) { return t(T.time, i, T.frame, e) }) } function Hl(t) { return t < F ? D * t * t : t < .7272727272727273 ? D * Math.pow(t - 1.5 / 2.75, 2) + .75 : t < .9090909090909092 ? D * (t -= 2.25 / 2.75) * t + .9375 : D * Math.pow(t - 2.625 / 2.75, 2) + .984375 } _("Linear,Quad,Cubic,Quart,Quint,Strong", function (t, e) { var r = e < 5 ? e + 1 : e; Cb(t + ",Power" + (r - 1), e ? function (t) { return Math.pow(t, r) } : function (t) { return t }, function (t) { return 1 - Math.pow(1 - t, r) }, function (t) { return t < .5 ? Math.pow(2 * t, r) / 2 : 1 - Math.pow(2 * (1 - t), r) / 2 }) }), At.Linear.easeNone = At.none = At.Linear.easeIn, Cb("Elastic", Eb("in"), Eb("out"), Eb()), D = 7.5625, F = 1 / 2.75, Cb("Bounce", function (t) { return 1 - Hl(1 - t) }, Hl), Cb("Expo", function (t) { return t ? Math.pow(2, 10 * (t - 1)) : 0 }), Cb("Circ", function (t) { return -(j(1 - t * t) - 1) }), Cb("Sine", function (t) { return 1 === t ? 1 : 1 - G(t * X) }), Cb("Back", Fb("in"), Fb("out"), Fb()), At.SteppedEase = At.steps = at.SteppedEase = { config: function config(t, e) { void 0 === t && (t = 1); var r = 1 / t, i = t + (e ? 0 : 1), n = e ? 1 : 0; return function (t) { return ((i * gt(0, .99999999, t) | 0) + n) * r } } }, I.ease = At["quad.out"], _("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt", function (t) { return ct += t + "," + t + "Params," }); var zt, Et = function GSCache(t, e) { this.id = V++, (t._gsap = this).target = t, this.harness = e, this.get = e ? e.get : $, this.set = e ? e.getSetter : Gt }, It = ((zt = Animation.prototype).delay = function delay(t) { return t || 0 === t ? (this.parent && this.parent.smoothChildTiming && this.startTime(this._start + t - this._delay), this._delay = t, this) : this._delay }, zt.duration = function duration(t) { return arguments.length ? this.totalDuration(0 < this._repeat ? t + (t + this._rDelay) * this._repeat : t) : this.totalDuration() && this._dur }, zt.totalDuration = function totalDuration(t) { if (!arguments.length) return this._tDur; this._dirty = 0; var e = this._time / this._dur || 0; return Fa(this, this._repeat < 0 ? t : (t - this._repeat * this._rDelay) / (this._repeat + 1)), this._tTime ? ya(this, e * t + ua(this)) : this }, zt.totalTime = function totalTime(t, e) { if (Ct(), !arguments.length) return this._tTime; var r = this._dp; if (r && r.smoothChildTiming && this._ts) { for (ya(this, t); r.parent;)r.parent._time !== r._start + (0 <= r._ts ? r._tTime / r._ts : (r.totalDuration() - r._tTime) / -r._ts) && r.totalTime(r._tTime, !0), r = r.parent; !this.parent && this._dp.autoRemoveChildren && (0 < this._ts && t < this._tDur || this._ts < 0 && 0 < t || !this._tDur && !t) && Aa(this._dp, this, this._start - this._delay) } return (this._tTime !== t || !this._dur && !e || this._initted && Math.abs(this._zTime) === R || !t && !this._initted) && (this._ts || (this._pTime = t), ea(this, t, e)), this }, zt.time = function time(t, e) { return arguments.length ? this.totalTime(Math.min(this.totalDuration(), t + ua(this)) % this._dur || (t ? this._dur : 0), e) : this._time }, zt.totalProgress = function totalProgress(t, e) { return arguments.length ? this.totalTime(this.totalDuration() * t, e) : this.totalDuration() ? Math.min(1, this._tTime / this._tDur) : this.ratio }, zt.progress = function progress(t, e) { return arguments.length ? this.totalTime(this.duration() * (!this._yoyo || 1 & this.iteration() ? t : 1 - t) + ua(this), e) : this.duration() ? Math.min(1, this._time / this._dur) : this.ratio }, zt.iteration = function iteration(t, e) { var r = this.duration() + this._rDelay; return arguments.length ? this.totalTime(this._time + (t - 1) * r, e) : this._repeat ? _t(this._tTime, r) + 1 : 1 }, zt.timeScale = function timeScale(t) { if (!arguments.length) return this._rts === -R ? 0 : this._rts; if (this._rts === t) return this; var e = this.parent && this._ts ? wa(this.parent._time, this) : this._tTime; return this._rts = +t || 0, this._ts = this._ps || t === -R ? 0 : this._rts, function _recacheAncestors(t) { for (var e = t.parent; e && e.parent;)e._dirty = 1, e.totalDuration(), e = e.parent; return t }(this.totalTime(gt(-this._delay, this._tDur, e), !0)) }, zt.paused = function paused(t) { return arguments.length ? (this._ps !== t && ((this._ps = t) ? (this._pTime = this._tTime || Math.max(-this._delay, this.rawTime()), this._ts = this._act = 0) : (Ct(), this._ts = this._rts, this.totalTime(this.parent && !this.parent.smoothChildTiming ? this.rawTime() : this._tTime || this._pTime, 1 === this.progress() && (this._tTime -= R) && Math.abs(this._zTime) !== R))), this) : this._ps }, zt.startTime = function startTime(t) { if (arguments.length) { this._start = t; var e = this.parent || this._dp; return !e || !e._sort && this.parent || Aa(e, this, t - this._delay), this } return this._start }, zt.endTime = function endTime(t) { return this._start + (s(t) ? this.totalDuration() : this.duration()) / Math.abs(this._ts) }, zt.rawTime = function rawTime(t) { var e = this.parent || this._dp; return e ? t && (!this._ts || this._repeat && this._time && this.totalProgress() < 1) ? this._tTime % (this._dur + this._rDelay) : this._ts ? wa(e.rawTime(t), this) : this._tTime : this._tTime }, zt.globalTime = function globalTime(t) { for (var e = this, r = arguments.length ? t : e.rawTime(); e;)r = e._start + r / (e._ts || 1), e = e._dp; return r }, zt.repeat = function repeat(t) { return arguments.length ? (this._repeat = t, Ga(this)) : this._repeat }, zt.repeatDelay = function repeatDelay(t) { return arguments.length ? (this._rDelay = t, Ga(this)) : this._rDelay }, zt.yoyo = function yoyo(t) { return arguments.length ? (this._yoyo = t, this) : this._yoyo }, zt.seek = function seek(t, e) { return this.totalTime(Ia(this, t), s(e)) }, zt.restart = function restart(t, e) { return this.play().totalTime(t ? -this._delay : 0, s(e)) }, zt.play = function play(t, e) { return null != t && this.seek(t, e), this.reversed(!1).paused(!1) }, zt.reverse = function reverse(t, e) { return null != t && this.seek(t || this.totalDuration(), e), this.reversed(!0).paused(!1) }, zt.pause = function pause(t, e) { return null != t && this.seek(t, e), this.paused(!0) }, zt.resume = function resume() { return this.paused(!1) }, zt.reversed = function reversed(t) { return arguments.length ? (!!t !== this.reversed() && this.timeScale(-this._rts || (t ? -R : 0)), this) : this._rts < 0 }, zt.invalidate = function invalidate() { return this._initted = 0, this._zTime = -R, this }, zt.isActive = function isActive() { var t, e = this.parent || this._dp, r = this._start; return !(e && !(this._ts && this._initted && e.isActive() && (t = e.rawTime(!0)) >= r && t < this.endTime(!0) - R)) }, zt.eventCallback = function eventCallback(t, e, r) { var i = this.vars; return 1 < arguments.length ? (e ? (i[t] = e, r && (i[t + "Params"] = r), "onUpdate" === t && (this._onUpdate = e)) : delete i[t], this) : i[t] }, zt.then = function then(t) { var i = this; return new Promise(function (e) { function Zm() { var t = i.then; i.then = null, o(r) && (r = r(i)) && (r.then || r === i) && (i.then = t), e(r), i.then = t } var r = o(t) ? t : ga; i._initted && 1 === i.totalProgress() && 0 <= i._ts || !i._tTime && i._ts < 0 ? Zm() : i._prom = Zm }) }, zt.kill = function kill() { fb(this) }, Animation); function Animation(t, e) { var r = t.parent || E; this.vars = t, this._delay = +t.delay || 0, (this._repeat = t.repeat || 0) && (this._rDelay = t.repeatDelay || 0, this._yoyo = !!t.yoyo || !!t.yoyoEase), this._ts = 1, Fa(this, +t.duration, 1), this.data = t.data, m || Mt.wake(), r && Aa(r, this, e || 0 === e ? e : r._time, 1), t.reversed && this.reverse(), t.paused && this.paused(!0) } ha(It.prototype, { _time: 0, _start: 0, _end: 0, _tTime: 0, _tDur: 0, _dirty: 0, _repeat: 0, _yoyo: !1, parent: null, _initted: !1, _rDelay: 0, _ts: 1, _dp: 0, ratio: 0, _zTime: -R, _prom: 0, _ps: !1, _rts: 1 }); var Rt = function (i) { function Timeline(t, e) { var r; return void 0 === t && (t = {}), (r = i.call(this, t, e) || this).labels = {}, r.smoothChildTiming = !!t.smoothChildTiming, r.autoRemoveChildren = !!t.autoRemoveChildren, r._sort = s(t.sortChildren), r.parent && za(r.parent, _assertThisInitialized(r)), t.scrollTrigger && Ba(_assertThisInitialized(r), t.scrollTrigger), r } _inheritsLoose(Timeline, i); var t = Timeline.prototype; return t.to = function to(t, e, r, i) { return new Xt(t, ca(arguments, 0, this), Ia(this, p(e) ? i : r)), this }, t.from = function from(t, e, r, i) { return new Xt(t, ca(arguments, 1, this), Ia(this, p(e) ? i : r)), this }, t.fromTo = function fromTo(t, e, r, i, n) { return new Xt(t, ca(arguments, 2, this), Ia(this, p(e) ? n : i)), this }, t.set = function set(t, e, r) { return e.duration = 0, e.parent = this, ma(e).repeatDelay || (e.repeat = 0), e.immediateRender = !!e.immediateRender, new Xt(t, e, Ia(this, r), 1), this }, t.call = function call(t, e, r) { return Aa(this, Xt.delayedCall(0, t, e), Ia(this, r)) }, t.staggerTo = function staggerTo(t, e, r, i, n, a, s) { return r.duration = e, r.stagger = r.stagger || i, r.onComplete = a, r.onCompleteParams = s, r.parent = this, new Xt(t, r, Ia(this, n)), this }, t.staggerFrom = function staggerFrom(t, e, r, i, n, a, o) { return r.runBackwards = 1, ma(r).immediateRender = s(r.immediateRender), this.staggerTo(t, e, r, i, n, a, o) }, t.staggerFromTo = function staggerFromTo(t, e, r, i, n, a, o, u) { return i.startAt = r, ma(i).immediateRender = s(i.immediateRender), this.staggerTo(t, e, i, n, a, o, u) }, t.render = function render(t, e, r) { var i, n, a, s, o, u, h, l, f, d, c, p, _ = this._time, m = this._dirty ? this.totalDuration() : this._tDur, g = this._dur, v = this !== E && m - R < t && 0 <= t ? m : t < R ? 0 : t, y = this._zTime < 0 != t < 0 && (this._initted || !g); if (v !== this._tTime || r || y) { if (_ !== this._time && g && (v += this._time - _, t += this._time - _), i = v, f = this._start, u = !(l = this._ts), y && (g || (_ = this._zTime), !t && e || (this._zTime = t)), this._repeat && (c = this._yoyo, o = g + this._rDelay, (g < (i = aa(v % o)) || m === v) && (i = g), (s = ~~(v / o)) && s === v / o && (i = g, s--), d = _t(this._tTime, o), !_ && this._tTime && d !== s && (d = s), c && 1 & s && (i = g - i, p = 1), s !== d && !this._lock)) { var T = c && 1 & d, b = T === (c && 1 & s); if (s < d && (T = !T), _ = T ? 0 : g, this._lock = 1, this.render(_ || (p ? 0 : aa(s * o)), e, !g)._lock = 0, !e && this.parent && bt(this, "onRepeat"), this.vars.repeatRefresh && !p && (this.invalidate()._lock = 1), _ !== this._time || u != !this._ts) return this; if (b && (this._lock = 2, _ = T ? g + 1e-4 : -1e-4, this.render(_, !0), this.vars.repeatRefresh && !p && this.invalidate()), this._lock = 0, !this._ts && !u) return this; Ab(this, p) } if (this._hasPause && !this._forcing && this._lock < 2 && (h = function _findNextPauseTween(t, e, r) { var i; if (e < r) for (i = t._first; i && i._start <= r;) { if (!i._dur && "isPause" === i.data && i._start > e) return i; i = i._next } else for (i = t._last; i && i._start >= r;) { if (!i._dur && "isPause" === i.data && i._start < e) return i; i = i._prev } }(this, aa(_), aa(i))) && (v -= i - (i = h._start)), this._tTime = v, this._time = i, this._act = !l, this._initted || (this._onUpdate = this.vars.onUpdate, this._initted = 1, this._zTime = t), _ || !i || e || bt(this, "onStart"), _ <= i && 0 <= t) for (n = this._first; n;) { if (a = n._next, (n._act || i >= n._start) && n._ts && h !== n) { if (n.parent !== this) return this.render(t, e, r); if (n.render(0 < n._ts ? (i - n._start) * n._ts : (n._dirty ? n.totalDuration() : n._tDur) + (i - n._start) * n._ts, e, r), i !== this._time || !this._ts && !u) { h = 0, a && (v += this._zTime = -R); break } } n = a } else { n = this._last; for (var w = t < 0 ? t : i; n;) { if (a = n._prev, (n._act || w <= n._end) && n._ts && h !== n) { if (n.parent !== this) return this.render(t, e, r); if (n.render(0 < n._ts ? (w - n._start) * n._ts : (n._dirty ? n.totalDuration() : n._tDur) + (w - n._start) * n._ts, e, r), i !== this._time || !this._ts && !u) { h = 0, a && (v += this._zTime = w ? -R : R); break } } n = a } } if (h && !e && (this.pause(), h.render(_ <= i ? 0 : -R)._zTime = _ <= i ? 1 : -1, this._ts)) return this._start = f, xa(this), this.render(t, e, r); this._onUpdate && !e && bt(this, "onUpdate", !0), (v === m && m >= this.totalDuration() || !v && _) && (f !== this._start && Math.abs(l) === Math.abs(this._ts) || this._lock || (!t && g || !(v === m && 0 < this._ts || !v && this._ts < 0) || qa(this, 1), e || t < 0 && !_ || !v && !_ || (bt(this, v === m ? "onComplete" : "onReverseComplete", !0), !this._prom || v < m && 0 < this.timeScale() || this._prom()))) } return this }, t.add = function add(t, e) { var r = this; if (p(e) || (e = Ia(this, e)), !(t instanceof It)) { if (J(t)) return t.forEach(function (t) { return r.add(t, e) }), ra(this); if (n(t)) return this.addLabel(t, e); if (!o(t)) return this; t = Xt.delayedCall(0, t) } return this !== t ? Aa(this, t, e) : this }, t.getChildren = function getChildren(t, e, r, i) { void 0 === t && (t = !0), void 0 === e && (e = !0), void 0 === r && (r = !0), void 0 === i && (i = -z); for (var n = [], a = this._first; a;)a._start >= i && (a instanceof Xt ? e && n.push(a) : (r && n.push(a), t && n.push.apply(n, a.getChildren(!0, e, r)))), a = a._next; return n }, t.getById = function getById(t) { for (var e = this.getChildren(1, 1, 1), r = e.length; r--;)if (e[r].vars.id === t) return e[r] }, t.remove = function remove(t) { return n(t) ? this.removeLabel(t) : o(t) ? this.killTweensOf(t) : (pa(this, t), t === this._recent && (this._recent = this._last), ra(this)) }, t.totalTime = function totalTime(t, e) { return arguments.length ? (this._forcing = 1, !this._dp && this._ts && (this._start = aa(Mt.time - (0 < this._ts ? t / this._ts : (this.totalDuration() - t) / -this._ts))), i.prototype.totalTime.call(this, t, e), this._forcing = 0, this) : this._tTime }, t.addLabel = function addLabel(t, e) { return this.labels[t] = Ia(this, e), this }, t.removeLabel = function removeLabel(t) { return delete this.labels[t], this }, t.addPause = function addPause(t, e, r) { var i = Xt.delayedCall(0, e || O, r); return i.data = "isPause", this._hasPause = 1, Aa(this, i, Ia(this, t)) }, t.removePause = function removePause(t) { var e = this._first; for (t = Ia(this, t); e;)e._start === t && "isPause" === e.data && qa(e), e = e._next }, t.killTweensOf = function killTweensOf(t, e, r) { for (var i = this.getTweensOf(t, r), n = i.length; n--;)Lt !== i[n] && i[n].kill(t, e); return this }, t.getTweensOf = function getTweensOf(t, e) { for (var r, i = [], n = yt(t), a = this._first, s = p(e); a;)a instanceof Xt ? ba(a._targets, n) && (s ? (!Lt || a._initted && a._ts) && a.globalTime(0) <= e && a.globalTime(a.totalDuration()) > e : !e || a.isActive()) && i.push(a) : (r = a.getTweensOf(n, e)).length && i.push.apply(i, r), a = a._next; return i }, t.tweenTo = function tweenTo(t, e) { e = e || {}; var r = this, i = Ia(r, t), n = e.startAt, a = e.onStart, s = e.onStartParams, o = Xt.to(r, ha(e, { ease: "none", lazy: !1, time: i, duration: e.duration || Math.abs((i - (n && "time" in n ? n.time : r._time)) / r.timeScale()) || R, onStart: function onStart() { r.pause(); var t = e.duration || Math.abs((i - r._time) / r.timeScale()); o._dur !== t && Fa(o, t).render(o._time, !0, !0), a && a.apply(o, s || []) } })); return o }, t.tweenFromTo = function tweenFromTo(t, e, r) { return this.tweenTo(e, ha({ startAt: { time: Ia(this, t) } }, r)) }, t.recent = function recent() { return this._recent }, t.nextLabel = function nextLabel(t) { return void 0 === t && (t = this._time), db(this, Ia(this, t)) }, t.previousLabel = function previousLabel(t) { return void 0 === t && (t = this._time), db(this, Ia(this, t), 1) }, t.currentLabel = function currentLabel(t) { return arguments.length ? this.seek(t, !0) : this.previousLabel(this._time + R) }, t.shiftChildren = function shiftChildren(t, e, r) { void 0 === r && (r = 0); for (var i, n = this._first, a = this.labels; n;)n._start >= r && (n._start += t), n = n._next; if (e) for (i in a) a[i] >= r && (a[i] += t); return ra(this) }, t.invalidate = function invalidate() { var t = this._first; for (this._lock = 0; t;)t.invalidate(), t = t._next; return i.prototype.invalidate.call(this) }, t.clear = function clear(t) { void 0 === t && (t = !0); for (var e, r = this._first; r;)e = r._next, this.remove(r), r = e; return this._time = this._tTime = this._pTime = 0, t && (this.labels = {}), ra(this) }, t.totalDuration = function totalDuration(t) { var e, r, i, n, a = 0, s = this, o = s._last, u = z; if (arguments.length) return s.timeScale((s._repeat < 0 ? s.duration() : s.totalDuration()) / (s.reversed() ? -t : t)); if (s._dirty) { for (n = s.parent; o;)e = o._prev, o._dirty && o.totalDuration(), u < (i = o._start) && s._sort && o._ts && !s._lock ? (s._lock = 1, Aa(s, o, i - o._delay, 1)._lock = 0) : u = i, i < 0 && o._ts && (a -= i, (!n && !s._dp || n && n.smoothChildTiming) && (s._start += i / s._ts, s._time -= i, s._tTime -= i), s.shiftChildren(-i, !1, -Infinity), u = 0), a < (r = xa(o)) && o._ts && (a = r), o = e; Fa(s, s === E && s._time > a ? s._time : a, 1), s._dirty = 0 } return s._tDur }, Timeline.updateRoot = function updateRoot(t) { if (E._ts && (ea(E, wa(t, E)), d = Mt.frame), Mt.frame >= ft) { ft += U.autoSleep || 120; var e = E._first; if ((!e || !e._ts) && U.autoSleep && Mt._listeners.length < 2) { for (; e && !e._ts;)e = e._next; e || Mt.sleep() } } }, Timeline }(It); ha(Rt.prototype, { _lock: 0, _hasPause: 0, _forcing: 0 }); function Mb(t, e, i, a, s, u) { var h, l, f, d; if (ht[t] && !1 !== (h = new ht[t]).init(s, h.rawVars ? e[t] : function _processVars(t, e, i, a, s) { if (o(t) && (t = Yt(t, s, e, i, a)), !r(t) || t.style && t.nodeType || J(t)) return n(t) ? Yt(t, s, e, i, a) : t; var u, h = {}; for (u in t) h[u] = Yt(t[u], s, e, i, a); return h }(e[t], a, s, u, i), i, a, u) && (i._pt = l = new ee(i._pt, s, t, 0, 1, h.render, h, 0, h.priority), i !== c)) for (f = i._ptLookup[i._targets.indexOf(s)], d = h._props.length; d--;)f[h._props[d]] = l; return h } var Lt, Bt = function _addPropTween(t, e, r, i, a, s, u, h, l) { o(i) && (i = i(a || 0, t, s)); var f, d = t[e], c = "get" !== r ? r : o(d) ? l ? t[e.indexOf("set") || !o(t["get" + e.substr(3)]) ? e : "get" + e.substr(3)](l) : t[e]() : d, p = o(d) ? l ? jt : Vt : Zt; if (n(i) && (~i.indexOf("random(") && (i = ab(i)), "=" === i.charAt(1) && (i = parseFloat(c) + parseFloat(i.substr(2)) * ("-" === i.charAt(0) ? -1 : 1) + (La(c) || 0))), c !== i) return isNaN(c * i) ? (d || e in t || L(e, i), function _addComplexStringPropTween(t, e, r, i, n, a, s) { var o, u, h, l, f, d, c, p, _ = new ee(this._pt, t, e, 0, 1, Wt, null, n), m = 0, g = 0; for (_.b = r, _.e = i, r += "", (c = ~(i += "").indexOf("random(")) && (i = ab(i)), a && (a(p = [r, i], t, e), r = p[0], i = p[1]), u = r.match(et) || []; o = et.exec(i);)l = o[0], f = i.substring(m, o.index), h ? h = (h + 1) % 5 : "rgba(" === f.substr(-5) && (h = 1), l !== u[g++] && (d = parseFloat(u[g - 1]) || 0, _._pt = { _next: _._pt, p: f || 1 === g ? f : ",", s: d, c: "=" === l.charAt(1) ? parseFloat(l.substr(2)) * ("-" === l.charAt(0) ? -1 : 1) : parseFloat(l) - d, m: h && h < 4 ? Math.round : 0 }, m = et.lastIndex); return _.c = m < i.length ? i.substring(m, i.length) : "", _.fp = s, (it.test(i) || c) && (_.e = 0), this._pt = _ }.call(this, t, e, c, i, p, h || U.stringFilter, l)) : (f = new ee(this._pt, t, e, +c || 0, i - (c || 0), "boolean" == typeof d ? Jt : Qt, 0, p), l && (f.fp = l), u && f.modifier(u, this, t), this._pt = f) }, qt = function _initTween(t, e) { var r, i, n, a, o, u, h, l, f, d, c, p, _ = t.vars, m = _.ease, g = _.startAt, v = _.immediateRender, y = _.lazy, T = _.onUpdate, b = _.onUpdateParams, w = _.callbackScope, x = _.runBackwards, k = _.yoyoEase, O = _.keyframes, M = _.autoRevert, C = t._dur, A = t._startAt, P = t._targets, S = t.parent, D = S && "nested" === S.data ? S.parent._targets : P, F = "auto" === t._overwrite, z = t.timeline; if (!z || O && m || (m = "none"), t._ease = Ft(m, I.ease), t._yEase = k ? Dt(Ft(!0 === k ? m : k, I.ease)) : 0, k && t._yoyo && !t._repeat && (k = t._yEase, t._yEase = t._ease, t._ease = k), !z) { if (p = (l = P[0] ? Z(P[0]).harness : 0) && _[l.prop], r = la(_, st), A && A.render(-1, !0).kill(), g) { if (qa(t._startAt = Xt.set(P, ha({ data: "isStart", overwrite: !1, parent: S, immediateRender: !0, lazy: s(y), startAt: null, delay: 0, onUpdate: T, onUpdateParams: b, callbackScope: w, stagger: 0 }, g))), v) if (0 < e) M || (t._startAt = 0); else if (C && !(e < 0 && A)) return void (t._zTime = e) } else if (x && C) if (A) M || (t._startAt = 0); else if (e && (v = !1), n = ha({ overwrite: !1, data: "isFromStart", lazy: v && s(y), immediateRender: v, stagger: 0, parent: S }, r), p && (n[l.prop] = p), qa(t._startAt = Xt.set(P, n)), v) { if (!e) return } else _initTween(t._startAt, R); for (t._pt = 0, y = C && s(y) || y && !C, i = 0; i < P.length; i++) { if (h = (o = P[i])._gsap || Y(P)[i]._gsap, t._ptLookup[i] = d = {}, ut[h.id] && da(), c = D === P ? i : D.indexOf(o), l && !1 !== (f = new l).init(o, p || r, t, c, D) && (t._pt = a = new ee(t._pt, o, f.name, 0, 1, f.render, f, 0, f.priority), f._props.forEach(function (t) { d[t] = a }), f.priority && (u = 1)), !l || p) for (n in r) ht[n] && (f = Mb(n, r, t, c, o, D)) ? f.priority && (u = 1) : d[n] = a = Bt.call(t, o, n, "get", r[n], c, D, 0, _.stringFilter); t._op && t._op[i] && t.kill(o, t._op[i]), F && t._pt && (Lt = t, E.killTweensOf(o, d, t.globalTime(0)), Lt = 0), t._pt && y && (ut[h.id] = 1) } u && te(t), t._onInit && t._onInit(t) } t._from = !z && !!_.runBackwards, t._onUpdate = T, t._initted = !!t.parent }, Yt = function _parseFuncOrString(t, e, r, i, a) { return o(t) ? t.call(e, r, i, a) : n(t) && ~t.indexOf("random(") ? ab(t) : t }, Nt = ct + "repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase", Ut = (Nt + ",id,stagger,delay,duration,paused,scrollTrigger").split(","), Xt = function (D) { function Tween(t, e, i, n) { var a; "number" == typeof e && (i.duration = e, e = i, i = null); var o, h, l, f, d, c, _, m, g = (a = D.call(this, n ? e : ma(e), i) || this).vars, v = g.duration, y = g.delay, T = g.immediateRender, b = g.stagger, w = g.overwrite, x = g.keyframes, k = g.defaults, C = g.scrollTrigger, A = g.yoyoEase, P = a.parent, S = (J(t) ? p(t[0]) : "length" in e) ? [t] : yt(t); if (a._targets = S.length ? Y(S) : M("GSAP target " + t + " not found. https://greensock.com", !U.nullTargetWarn) || [], a._ptLookup = [], a._overwrite = w, x || b || u(v) || u(y)) { if (e = a.vars, (o = a.timeline = new Rt({ data: "nested", defaults: k || {} })).kill(), o.parent = _assertThisInitialized(a), x) ha(o.vars.defaults, { ease: "none" }), x.forEach(function (t) { return o.to(S, t, ">") }); else { if (f = S.length, _ = b ? Sa(b) : O, r(b)) for (d in b) ~Nt.indexOf(d) && ((m = m || {})[d] = b[d]); for (h = 0; h < f; h++) { for (d in l = {}, e) Ut.indexOf(d) < 0 && (l[d] = e[d]); l.stagger = 0, A && (l.yoyoEase = A), m && pt(l, m), c = S[h], l.duration = +Yt(v, _assertThisInitialized(a), h, c, S), l.delay = (+Yt(y, _assertThisInitialized(a), h, c, S) || 0) - a._delay, !b && 1 === f && l.delay && (a._delay = y = l.delay, a._start += y, l.delay = 0), o.to(c, l, _(h, c, S)) } o.duration() ? v = y = 0 : a.timeline = 0 } v || a.duration(v = o.duration()) } else a.timeline = 0; return !0 === w && (Lt = _assertThisInitialized(a), E.killTweensOf(S), Lt = 0), P && za(P, _assertThisInitialized(a)), (T || !v && !x && a._start === aa(P._time) && s(T) && function _hasNoPausedAncestors(t) { return !t || t._ts && _hasNoPausedAncestors(t.parent) }(_assertThisInitialized(a)) && "nested" !== P.data) && (a._tTime = -R, a.render(Math.max(0, -y))), C && Ba(_assertThisInitialized(a), C), a } _inheritsLoose(Tween, D); var t = Tween.prototype; return t.render = function render(t, e, r) { var i, n, a, s, o, u, h, l, f, d = this._time, c = this._tDur, p = this._dur, _ = c - R < t && 0 <= t ? c : t < R ? 0 : t; if (p) { if (_ !== this._tTime || !t || r || this._startAt && this._zTime < 0 != t < 0) { if (i = _, l = this.timeline, this._repeat) { if (s = p + this._rDelay, (p < (i = aa(_ % s)) || c === _) && (i = p), (a = ~~(_ / s)) && a === _ / s && (i = p, a--), (u = this._yoyo && 1 & a) && (f = this._yEase, i = p - i), o = _t(this._tTime, s), i === d && !r && this._initted) return this; a !== o && (l && this._yEase && Ab(l, u), !this.vars.repeatRefresh || u || this._lock || (this._lock = r = 1, this.render(aa(s * a), !0).invalidate()._lock = 0)) } if (!this._initted) { if (Ca(this, t < 0 ? t : i, r, e)) return this._tTime = 0, this; if (p !== this._dur) return this.render(t, e, r) } for (this._tTime = _, this._time = i, !this._act && this._ts && (this._act = 1, this._lazy = 0), this.ratio = h = (f || this._ease)(i / p), this._from && (this.ratio = h = 1 - h), !i || d || e || bt(this, "onStart"), n = this._pt; n;)n.r(h, n.d), n = n._next; l && l.render(t < 0 ? t : !i && u ? -R : l._dur * h, e, r) || this._startAt && (this._zTime = t), this._onUpdate && !e && (t < 0 && this._startAt && this._startAt.render(t, !0, r), bt(this, "onUpdate")), this._repeat && a !== o && this.vars.onRepeat && !e && this.parent && bt(this, "onRepeat"), _ !== this._tDur && _ || this._tTime !== _ || (t < 0 && this._startAt && !this._onUpdate && this._startAt.render(t, !0, !0), !t && p || !(_ === this._tDur && 0 < this._ts || !_ && this._ts < 0) || qa(this, 1), e || t < 0 && !d || !_ && !d || (bt(this, _ === c ? "onComplete" : "onReverseComplete", !0), !this._prom || _ < c && 0 < this.timeScale() || this._prom())) } } else !function _renderZeroDurationTween(t, e, r, i) { var n, a, s = t.ratio, o = e < 0 || !e && s && !t._start && t._zTime > R && !t._dp._lock || t._ts < 0 || t._dp._ts < 0 ? 0 : 1, u = t._rDelay, h = 0; if (u && t._repeat && (h = gt(0, t._tDur, e), _t(h, u) !== (a = _t(t._tTime, u)) && (s = 1 - o, t.vars.repeatRefresh && t._initted && t.invalidate())), t._initted || !Ca(t, e, i, r)) if (o !== s || i || t._zTime === R || !e && t._zTime) { for (a = t._zTime, t._zTime = e || (r ? R : 0), r = r || e && !a, t.ratio = o, t._from && (o = 1 - o), t._time = 0, t._tTime = h, r || bt(t, "onStart"), n = t._pt; n;)n.r(o, n.d), n = n._next; t._startAt && e < 0 && t._startAt.render(e, !0, !0), t._onUpdate && !r && bt(t, "onUpdate"), h && t._repeat && !r && t.parent && bt(t, "onRepeat"), (e >= t._tDur || e < 0) && t.ratio === o && (o && qa(t, 1), r || (bt(t, o ? "onComplete" : "onReverseComplete", !0), t._prom && t._prom())) } else t._zTime || (t._zTime = e) }(this, t, e, r); return this }, t.targets = function targets() { return this._targets }, t.invalidate = function invalidate() { return this._pt = this._op = this._startAt = this._onUpdate = this._act = this._lazy = 0, this._ptLookup = [], this.timeline && this.timeline.invalidate(), D.prototype.invalidate.call(this) }, t.kill = function kill(t, e) { if (void 0 === e && (e = "all"), !(t || e && "all" !== e) && (this._lazy = 0, this.parent)) return fb(this); if (this.timeline) { var r = this.timeline.totalDuration(); return this.timeline.killTweensOf(t, e, Lt && !0 !== Lt.vars.overwrite)._first || fb(this), this.parent && r !== this.timeline.totalDuration() && Fa(this, this._dur * this.timeline._tDur / r), this } var i, a, s, o, u, h, l, f = this._targets, d = t ? yt(t) : f, c = this._ptLookup, p = this._pt; if ((!e || "all" === e) && function _arraysMatch(t, e) { for (var r = t.length, i = r === e.length; i && r-- && t[r] === e[r];); return r < 0 }(f, d)) return fb(this); for (i = this._op = this._op || [], "all" !== e && (n(e) && (u = {}, _(e, function (t) { return u[t] = 1 }), e = u), e = function _addAliasesToVars(t, e) { var r, i, n, a, s = t[0] ? Z(t[0]).harness : 0, o = s && s.aliases; if (!o) return e; for (i in r = pt({}, e), o) if (i in r) for (n = (a = o[i].split(",")).length; n--;)r[a[n]] = r[i]; return r }(f, e)), l = f.length; l--;)if (~d.indexOf(f[l])) for (u in a = c[l], "all" === e ? (i[l] = e, o = a, s = {}) : (s = i[l] = i[l] || {}, o = e), o) (h = a && a[u]) && ("kill" in h.d && !0 !== h.d.kill(u) || pa(this, h, "_pt"), delete a[u]), "all" !== s && (s[u] = 1); return this._initted && !this._pt && p && fb(this), this }, Tween.to = function to(t, e, r) { return new Tween(t, e, r) }, Tween.from = function from(t, e) { return new Tween(t, ca(arguments, 1)) }, Tween.delayedCall = function delayedCall(t, e, r, i) { return new Tween(e, 0, { immediateRender: !1, lazy: !1, overwrite: !1, delay: t, onComplete: e, onReverseComplete: e, onCompleteParams: r, onReverseCompleteParams: r, callbackScope: i }) }, Tween.fromTo = function fromTo(t, e, r) { return new Tween(t, ca(arguments, 2)) }, Tween.set = function set(t, e) { return e.duration = 0, e.repeatDelay || (e.repeat = 0), new Tween(t, e) }, Tween.killTweensOf = function killTweensOf(t, e, r) { return E.killTweensOf(t, e, r) }, Tween }(It); ha(Xt.prototype, { _targets: [], _lazy: 0, _startAt: 0, _op: 0, _onInit: 0 }), _("staggerTo,staggerFrom,staggerFromTo", function (r) { Xt[r] = function () { var t = new Rt, e = vt.call(arguments, 0); return e.splice("staggerFromTo" === r ? 5 : 4, 0, 0), t[r].apply(t, e) } }); function Xb(t, e, r) { return t.setAttribute(e, r) } function dc(t, e, r, i) { i.mSet(t, e, i.m.call(i.tween, r, i.mt), i) } var Zt = function _setterPlain(t, e, r) { return t[e] = r }, Vt = function _setterFunc(t, e, r) { return t[e](r) }, jt = function _setterFuncWithParam(t, e, r, i) { return t[e](i.fp, r) }, Gt = function _getSetter(t, e) { return o(t[e]) ? Vt : q(t[e]) && t.setAttribute ? Xb : Zt }, Qt = function _renderPlain(t, e) { return e.set(e.t, e.p, Math.round(1e4 * (e.s + e.c * t)) / 1e4, e) }, Jt = function _renderBoolean(t, e) { return e.set(e.t, e.p, !!(e.s + e.c * t), e) }, Wt = function _renderComplexString(t, e) { var r = e._pt, i = ""; if (!t && e.b) i = e.b; else if (1 === t && e.e) i = e.e; else { for (; r;)i = r.p + (r.m ? r.m(r.s + r.c * t) : Math.round(1e4 * (r.s + r.c * t)) / 1e4) + i, r = r._next; i += e.c } e.set(e.t, e.p, i, e) }, $t = function _renderPropTweens(t, e) { for (var r = e._pt; r;)r.r(t, r.d), r = r._next }, Ht = function _addPluginModifier(t, e, r, i) { for (var n, a = this._pt; a;)n = a._next, a.p === i && a.modifier(t, e, r), a = n }, Kt = function _killPropTweensOf(t) { for (var e, r, i = this._pt; i;)r = i._next, i.p === t && !i.op || i.op === t ? pa(this, i, "_pt") : i.dep || (e = 1), i = r; return !e }, te = function _sortPropTweensByPriority(t) { for (var e, r, i, n, a = t._pt; a;) { for (e = a._next, r = i; r && r.pr > a.pr;)r = r._next; (a._prev = r ? r._prev : n) ? a._prev._next = a : i = a, (a._next = r) ? r._prev = a : n = a, a = e } t._pt = i }, ee = (PropTween.prototype.modifier = function modifier(t, e, r) { this.mSet = this.mSet || this.set, this.set = dc, this.m = t, this.mt = r, this.tween = e }, PropTween); function PropTween(t, e, r, i, n, a, s, o, u) { this.t = e, this.s = i, this.c = n, this.p = r, this.r = a || Qt, this.d = s || this, this.set = o || Zt, this.pr = u || 0, (this._next = t) && (t._prev = this) } _(ct + "parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger", function (t) { return st[t] = 1 }), at.TweenMax = at.TweenLite = Xt, at.TimelineLite = at.TimelineMax = Rt, E = new Rt({ sortChildren: !1, defaults: I, autoRemoveChildren: !0, id: "root", smoothChildTiming: !0 }), U.stringFilter = qb; var re = { registerPlugin: function registerPlugin() { for (var t = arguments.length, e = new Array(t), r = 0; r < t; r++)e[r] = arguments[r]; e.forEach(function (t) { return function _createPlugin(t) { var e = (t = !t.name && t.default || t).name, r = o(t), i = e && !r && t.init ? function () { this._props = [] } : t, n = { init: O, render: $t, add: Bt, kill: Kt, modifier: Ht, rawVars: 0 }, a = { targetTest: 0, get: 0, getSetter: Gt, aliases: {}, register: 0 }; if (Ct(), t !== i) { if (ht[e]) return; ha(i, ha(la(t, n), a)), pt(i.prototype, pt(n, la(t, a))), ht[i.prop = e] = i, t.targetTest && (dt.push(i), st[e] = 1), e = ("css" === e ? "CSS" : e.charAt(0).toUpperCase() + e.substr(1)) + "Plugin" } N(e, i), t.register && t.register(ie, i, ee) }(t) }) }, timeline: function timeline(t) { return new Rt(t) }, getTweensOf: function getTweensOf(t, e) { return E.getTweensOf(t, e) }, getProperty: function getProperty(i, t, e, r) { n(i) && (i = yt(i)[0]); var a = Z(i || {}).get, s = e ? ga : fa; return "native" === e && (e = ""), i ? t ? s((ht[t] && ht[t].get || a)(i, t, e, r)) : function (t, e, r) { return s((ht[t] && ht[t].get || a)(i, t, e, r)) } : i }, quickSetter: function quickSetter(r, e, i) { if (1 < (r = yt(r)).length) { var n = r.map(function (t) { return ie.quickSetter(t, e, i) }), a = n.length; return function (t) { for (var e = a; e--;)n[e](t) } } r = r[0] || {}; var s = ht[e], o = Z(r), u = o.harness && (o.harness.aliases || {})[e] || e, h = s ? function (t) { var e = new s; c._pt = 0, e.init(r, i ? t + i : t, c, 0, [r]), e.render(1, e), c._pt && $t(1, c) } : o.set(r, u); return s ? h : function (t) { return h(r, u, i ? t + i : t, o, 1) } }, isTweening: function isTweening(t) { return 0 < E.getTweensOf(t, !0).length }, defaults: function defaults(t) { return t && t.ease && (t.ease = Ft(t.ease, I.ease)), ka(I, t || {}) }, config: function config(t) { return ka(U, t || {}) }, registerEffect: function registerEffect(t) { var n = t.name, i = t.effect, e = t.plugins, a = t.defaults, s = t.extendTimeline; (e || "").split(",").forEach(function (t) { return t && !ht[t] && !at[t] && M(n + " effect requires " + t + " plugin.") }), lt[n] = function (t, e, r) { return i(yt(t), ha(e || {}, a), r) }, s && (Rt.prototype[n] = function (t, e, i) { return this.add(lt[n](t, r(e) ? e : (i = e) && {}, this), i) }) }, registerEase: function registerEase(t, e) { At[t] = Ft(e) }, parseEase: function parseEase(t, e) { return arguments.length ? Ft(t, e) : At }, getById: function getById(t) { return E.getById(t) }, exportRoot: function exportRoot(t, e) { void 0 === t && (t = {}); var r, i, n = new Rt(t); for (n.smoothChildTiming = s(t.smoothChildTiming), E.remove(n), n._dp = 0, n._time = n._tTime = E._time, r = E._first; r;)i = r._next, !e && !r._dur && r instanceof Xt && r.vars.onComplete === r._targets[0] || Aa(n, r, r._start - r._delay), r = i; return Aa(E, n, 0), n }, utils: { wrap: function wrap(e, t, r) { var i = t - e; return J(e) ? Za(e, wrap(0, e.length), t) : Ja(r, function (t) { return (i + (t - e) % i) % i + e }) }, wrapYoyo: function wrapYoyo(e, t, r) { var i = t - e, n = 2 * i; return J(e) ? Za(e, wrapYoyo(0, e.length - 1), t) : Ja(r, function (t) { return e + (i < (t = (n + (t - e) % n) % n || 0) ? n - t : t) }) }, distribute: Sa, random: Va, snap: Ua, normalize: function normalize(t, e, r) { return Tt(t, e, 0, 1, r) }, getUnit: La, clamp: function clamp(e, r, t) { return Ja(t, function (t) { return gt(e, r, t) }) }, splitColor: lb, toArray: yt, mapRange: Tt, pipe: function pipe() { for (var t = arguments.length, e = new Array(t), r = 0; r < t; r++)e[r] = arguments[r]; return function (t) { return e.reduce(function (t, e) { return e(t) }, t) } }, unitize: function unitize(e, r) { return function (t) { return e(parseFloat(t)) + (r || La(t)) } }, interpolate: function interpolate(e, r, t, i) { var a = isNaN(e + r) ? 0 : function (t) { return (1 - t) * e + t * r }; if (!a) { var s, o, u, h, l, f = n(e), d = {}; if (!0 === t && (i = 1) && (t = null), f) e = { p: e }, r = { p: r }; else if (J(e) && !J(r)) { for (u = [], h = e.length, l = h - 2, o = 1; o < h; o++)u.push(interpolate(e[o - 1], e[o])); h--, a = function func(t) { t *= h; var e = Math.min(l, ~~t); return u[e](t - e) }, t = r } else i || (e = pt(J(e) ? [] : {}, e)); if (!u) { for (s in r) Bt.call(d, e, s, "get", r[s]); a = function func(t) { return $t(t, d) || (f ? e.p : e) } } } return Ja(t, a) }, shuffle: Ra }, install: K, effects: lt, ticker: Mt, updateRoot: Rt.updateRoot, plugins: ht, globalTimeline: E, core: { PropTween: ee, globals: N, Tween: Xt, Timeline: Rt, Animation: It, getCache: Z, _removeLinkedListItem: pa } }; _("to,from,fromTo,delayedCall,set,killTweensOf", function (t) { return re[t] = Xt[t] }), Mt.add(Rt.updateRoot), c = re.to({}, { duration: 0 }); function hc(t, e) { for (var r = t._pt; r && r.p !== e && r.op !== e && r.fp !== e;)r = r._next; return r } function jc(t, a) { return { name: t, rawVars: 1, init: function init(t, i, e) { e._onInit = function (t) { var e, r; if (n(i) && (e = {}, _(i, function (t) { return e[t] = 1 }), i = e), a) { for (r in e = {}, i) e[r] = a(i[r]); i = e } !function _addModifiers(t, e) { var r, i, n, a = t._targets; for (r in e) for (i = a.length; i--;)(n = (n = t._ptLookup[i][r]) && n.d) && (n._pt && (n = hc(n, r)), n && n.modifier && n.modifier(e[r], t, a[i], r)) }(t, i) } } } } var ie = re.registerPlugin({ name: "attr", init: function init(t, e, r, i, n) { var a, s; for (a in e) (s = this.add(t, "setAttribute", (t.getAttribute(a) || 0) + "", e[a], i, n, 0, 0, a)) && (s.op = a), this._props.push(a) } }, { name: "endArray", init: function init(t, e) { for (var r = e.length; r--;)this.add(t, r, t[r] || 0, e[r]) } }, jc("roundProps", Ta), jc("modifiers"), jc("snap", Ua)) || re; Xt.version = Rt.version = ie.version = "3.4.0", f = 1, t() && Ct(); function Uc(t, e) { return e.set(e.t, e.p, Math.round(1e4 * (e.s + e.c * t)) / 1e4 + e.u, e) } function Vc(t, e) { return e.set(e.t, e.p, 1 === t ? e.e : Math.round(1e4 * (e.s + e.c * t)) / 1e4 + e.u, e) } function Wc(t, e) { return e.set(e.t, e.p, t ? Math.round(1e4 * (e.s + e.c * t)) / 1e4 + e.u : e.b, e) } function Xc(t, e) { var r = e.s + e.c * t; e.set(e.t, e.p, ~~(r + (r < 0 ? -.5 : .5)) + e.u, e) } function Yc(t, e) { return e.set(e.t, e.p, t ? e.e : e.b, e) } function Zc(t, e) { return e.set(e.t, e.p, 1 !== t ? e.b : e.e, e) } function $c(t, e, r) { return t.style[e] = r } function _c(t, e, r) { return t.style.setProperty(e, r) } function ad(t, e, r) { return t._gsap[e] = r } function bd(t, e, r) { return t._gsap.scaleX = t._gsap.scaleY = r } function cd(t, e, r, i, n) { var a = t._gsap; a.scaleX = a.scaleY = r, a.renderTransform(n, a) } function dd(t, e, r, i, n) { var a = t._gsap; a[e] = r, a.renderTransform(n, a) } function hd(t, e) { var r = ae.createElementNS ? ae.createElementNS((e || "http://www.w3.org/1999/xhtml").replace(/^https/, "http"), t) : ae.createElement(t); return r.style ? r : ae.createElement(t) } function id(t, e, r) { var i = getComputedStyle(t); return i[e] || i.getPropertyValue(e.replace(Ee, "-$1").toLowerCase()) || i.getPropertyValue(e) || !r && id(t, Ne(e) || e, 1) || "" } function ld() { (function _windowExists() { return "undefined" != typeof window })() && window.document && (ne = window, ae = ne.document, se = ae.documentElement, ue = hd("div") || { style: {} }, he = hd("div"), Be = Ne(Be), qe = Be + "Origin", ue.style.cssText = "border-width:0;line-height:0;position:absolute;padding:0", fe = !!Ne("perspective"), oe = 1) } function md(t) { var e, r = hd("svg", this.ownerSVGElement && this.ownerSVGElement.getAttribute("xmlns") || "http://www.w3.org/2000/svg"), i = this.parentNode, n = this.nextSibling, a = this.style.cssText; if (se.appendChild(r), r.appendChild(this), this.style.display = "block", t) try { e = this.getBBox(), this._gsapBBox = this.getBBox, this.getBBox = md } catch (t) { } else this._gsapBBox && (e = this._gsapBBox()); return i && (n ? i.insertBefore(this, n) : i.appendChild(this)), se.removeChild(r), this.style.cssText = a, e } function nd(t, e) { for (var r = e.length; r--;)if (t.hasAttribute(e[r])) return t.getAttribute(e[r]) } function od(e) { var r; try { r = e.getBBox() } catch (t) { r = md.call(e, !0) } return r && (r.width || r.height) || e.getBBox === md || (r = md.call(e, !0)), !r || r.width || r.x || r.y ? r : { x: +nd(e, ["x", "cx", "x1"]) || 0, y: +nd(e, ["y", "cy", "y1"]) || 0, width: 0, height: 0 } } function pd(t) { return !(!t.getCTM || t.parentNode && !t.ownerSVGElement || !od(t)) } function qd(t, e) { if (e) { var r = t.style; e in Se && e !== qe && (e = Be), r.removeProperty ? ("ms" !== e.substr(0, 2) && "webkit" !== e.substr(0, 6) || (e = "-" + e), r.removeProperty(e.replace(Ee, "-$1").toLowerCase())) : r.removeAttribute(e) } } function rd(t, e, r, i, n, a) { var s = new ee(t._pt, e, r, 0, 1, a ? Zc : Yc); return (t._pt = s).b = i, s.e = n, t._props.push(r), s } function td(t, e, r, i) { var n, a, s, o, u = parseFloat(r) || 0, h = (r + "").trim().substr((u + "").length) || "px", l = ue.style, f = Ie.test(e), d = "svg" === t.tagName.toLowerCase(), c = (d ? "client" : "offset") + (f ? "Width" : "Height"), p = "px" === i, _ = "%" === i; return i === h || !u || Ue[i] || Ue[h] ? u : ("px" === h || p || (u = td(t, e, r, "px")), o = t.getCTM && pd(t), _ && (Se[e] || ~e.indexOf("adius")) ? aa(u / (o ? t.getBBox()[f ? "width" : "height"] : t[c]) * 100) : (l[f ? "width" : "height"] = 100 + (p ? h : i), a = ~e.indexOf("adius") || "em" === i && t.appendChild && !d ? t : t.parentNode, o && (a = (t.ownerSVGElement || {}).parentNode), a && a !== ae && a.appendChild || (a = ae.body), (s = a._gsap) && _ && s.width && f && s.time === Mt.time ? aa(u / s.width * 100) : (!_ && "%" !== h || (l.position = id(t, "position")), a === t && (l.position = "static"), a.appendChild(ue), n = ue[c], a.removeChild(ue), l.position = "absolute", f && _ && ((s = Z(a)).time = Mt.time, s.width = a[c]), aa(p ? n * u / 100 : n && u ? 100 / n * u : 0)))) } function ud(t, e, r, i) { var n; return oe || ld(), e in Le && "transform" !== e && ~(e = Le[e]).indexOf(",") && (e = e.split(",")[0]), Se[e] && "transform" !== e ? (n = Ge(t, i), n = "transformOrigin" !== e ? n[e] : Qe(id(t, qe)) + " " + n.zOrigin + "px") : (n = t.style[e]) && "auto" !== n && !i && !~(n + "").indexOf("calc(") || (n = Ze[e] && Ze[e](t, e, r) || id(t, e) || $(t, e) || ("opacity" === e ? 1 : 0)), r && !~(n + "").indexOf(" ") ? td(t, e, n, r) + r : n } function vd(t, e, r, i) { if (!r || "none" === r) { var n = Ne(e, t, 1), a = n && id(t, n, 1); a && a !== r ? (e = n, r = a) : "borderColor" === e && (r = id(t, "borderTopColor")) } var s, o, u, h, l, f, d, c, p, _, m, g, v = new ee(this._pt, t.style, e, 0, 1, Wt), y = 0, T = 0; if (v.b = r, v.e = i, r += "", "auto" === (i += "") && (t.style[e] = i, i = id(t, e) || i, t.style[e] = r), qb(s = [r, i]), i = s[1], u = (r = s[0]).match(tt) || [], (i.match(tt) || []).length) { for (; o = tt.exec(i);)d = o[0], p = i.substring(y, o.index), l ? l = (l + 1) % 5 : "rgba(" !== p.substr(-5) && "hsla(" !== p.substr(-5) || (l = 1), d !== (f = u[T++] || "") && (h = parseFloat(f) || 0, m = f.substr((h + "").length), (g = "=" === d.charAt(1) ? +(d.charAt(0) + "1") : 0) && (d = d.substr(2)), c = parseFloat(d), _ = d.substr((c + "").length), y = tt.lastIndex - _.length, _ || (_ = _ || U.units[e] || m, y === i.length && (i += _, v.e += _)), m !== _ && (h = td(t, e, f, _) || 0), v._pt = { _next: v._pt, p: p || 1 === T ? p : ",", s: h, c: g ? g * c : c - h, m: l && l < 4 ? Math.round : 0 }); v.c = y < i.length ? i.substring(y, i.length) : "" } else v.r = "display" === e && "none" === i ? Zc : Yc; return it.test(i) && (v.e = 0), this._pt = v } function xd(t) { var e = t.split(" "), r = e[0], i = e[1] || "50%"; return "top" !== r && "bottom" !== r && "left" !== i && "right" !== i || (t = r, r = i, i = t), e[0] = Xe[r] || r, e[1] = Xe[i] || i, e.join(" ") } function yd(t, e) { if (e.tween && e.tween._time === e.tween._dur) { var r, i, n, a = e.t, s = a.style, o = e.u, u = a._gsap; if ("all" === o || !0 === o) s.cssText = "", i = 1; else for (n = (o = o.split(",")).length; -1 < --n;)r = o[n], Se[r] && (i = 1, r = "transformOrigin" === r ? qe : Be), qd(a, r); i && (qd(a, Be), u && (u.svg && a.removeAttribute("transform"), Ge(a, 1), u.uncache = 1)) } } function Cd(t) { return "matrix(1, 0, 0, 1, 0, 0)" === t || "none" === t || !t } function Dd(t) { var e = id(t, Be); return Cd(e) ? Ve : e.substr(7).match(H).map(aa) } function Ed(t, e) { var r, i, n, a, s = t._gsap || Z(t), o = t.style, u = Dd(t); return s.svg && t.getAttribute("transform") ? "1,0,0,1,0,0" === (u = [(n = t.transform.baseVal.consolidate().matrix).a, n.b, n.c, n.d, n.e, n.f]).join(",") ? Ve : u : (u !== Ve || t.offsetParent || t === se || s.svg || (n = o.display, o.display = "block", (r = t.parentNode) && t.offsetParent || (a = 1, i = t.nextSibling, se.appendChild(t)), u = Dd(t), n ? o.display = n : qd(t, "display"), a && (i ? r.insertBefore(t, i) : r ? r.appendChild(t) : se.removeChild(t))), e && 6 < u.length ? [u[0], u[1], u[4], u[5], u[12], u[13]] : u) } function Fd(t, e, r, i, n, a) { var s, o, u, h = t._gsap, l = n || Ed(t, !0), f = h.xOrigin || 0, d = h.yOrigin || 0, c = h.xOffset || 0, p = h.yOffset || 0, _ = l[0], m = l[1], g = l[2], v = l[3], y = l[4], T = l[5], b = e.split(" "), w = parseFloat(b[0]) || 0, x = parseFloat(b[1]) || 0; r ? l !== Ve && (o = _ * v - m * g) && (u = w * (-m / o) + x * (_ / o) - (_ * T - m * y) / o, w = w * (v / o) + x * (-g / o) + (g * T - v * y) / o, x = u) : (w = (s = od(t)).x + (~b[0].indexOf("%") ? w / 100 * s.width : w), x = s.y + (~(b[1] || b[0]).indexOf("%") ? x / 100 * s.height : x)), i || !1 !== i && h.smooth ? (y = w - f, T = x - d, h.xOffset = c + (y * _ + T * g) - y, h.yOffset = p + (y * m + T * v) - T) : h.xOffset = h.yOffset = 0, h.xOrigin = w, h.yOrigin = x, h.smooth = !!i, h.origin = e, h.originIsAbsolute = !!r, t.style[qe] = "0px 0px", a && (rd(a, h, "xOrigin", f, w), rd(a, h, "yOrigin", d, x), rd(a, h, "xOffset", c, h.xOffset), rd(a, h, "yOffset", p, h.yOffset)), t.setAttribute("data-svg-origin", w + " " + x) } function Id(t, e, r) { var i = La(e); return aa(parseFloat(e) + parseFloat(td(t, "x", r + "px", i))) + i } function Pd(t, e, r, i, a, s) { var o, u, h = 360, l = n(a), f = parseFloat(a) * (l && ~a.indexOf("rad") ? De : 1), d = s ? f * s : f - i, c = i + d + "deg"; return l && ("short" === (o = a.split("_")[1]) && (d %= h) !== d % 180 && (d += d < 0 ? h : -h), "cw" === o && d < 0 ? d = (d + 36e9) % h - ~~(d / h) * h : "ccw" === o && 0 < d && (d = (d - 36e9) % h - ~~(d / h) * h)), t._pt = u = new ee(t._pt, e, r, i, d, Vc), u.e = c, u.u = "deg", t._props.push(r), u } function Qd(t, e, r) { var i, n, a, s, o, u, h, l = he.style, f = r._gsap; for (n in l.cssText = getComputedStyle(r).cssText + ";position:absolute;display:block;", l[Be] = e, ae.body.appendChild(he), i = Ge(he, 1), Se) (a = f[n]) !== (s = i[n]) && "perspective,force3D,transformOrigin,svgOrigin".indexOf(n) < 0 && (o = La(a) !== (h = La(s)) ? td(r, n, a, h) : parseFloat(a), u = parseFloat(s), t._pt = new ee(t._pt, f, n, o, u - o, Uc), t._pt.u = h || 0, t._props.push(n)); ae.body.removeChild(he) } var ne, ae, se, oe, ue, he, le, fe, de = At.Power0, ce = At.Power1, pe = At.Power2, _e = At.Power3, me = At.Power4, ge = At.Linear, ve = At.Quad, ye = At.Cubic, Te = At.Quart, be = At.Quint, we = At.Strong, xe = At.Elastic, ke = At.Back, Oe = At.SteppedEase, Me = At.Bounce, Ce = At.Sine, Ae = At.Expo, Pe = At.Circ, Se = {}, De = 180 / Math.PI, Fe = Math.PI / 180, ze = Math.atan2, Ee = /([A-Z])/g, Ie = /(?:left|right|width|margin|padding|x)/i, Re = /[\s,\(]\S/, Le = { autoAlpha: "opacity,visibility", scale: "scaleX,scaleY", alpha: "opacity" }, Be = "transform", qe = Be + "Origin", Ye = "O,Moz,ms,Ms,Webkit".split(","), Ne = function _checkPropPrefix(t, e, r) { var i = (e || ue).style, n = 5; if (t in i && !r) return t; for (t = t.charAt(0).toUpperCase() + t.substr(1); n-- && !(Ye[n] + t in i);); return n < 0 ? null : (3 === n ? "ms" : 0 <= n ? Ye[n] : "") + t }, Ue = { deg: 1, rad: 1, turn: 1 }, Xe = { top: "0%", bottom: "100%", left: "0%", right: "100%", center: "50%" }, Ze = { clearProps: function clearProps(t, e, r, i, n) { if ("isFromStart" !== n.data) { var a = t._pt = new ee(t._pt, e, r, 0, 0, yd); return a.u = i, a.pr = -10, a.tween = n, t._props.push(r), 1 } } }, Ve = [1, 0, 0, 1, 0, 0], je = {}, Ge = function _parseTransform(t, e) { var r = t._gsap || new Et(t); if ("x" in r && !e && !r.uncache) return r; var i, n, a, s, o, u, h, l, f, d, c, p, _, m, g, v, y, T, b, w, x, k, O, M, C, A, P, S, D, F, z, E, I = t.style, R = r.scaleX < 0, L = "deg", B = id(t, qe) || "0"; return i = n = a = u = h = l = f = d = c = 0, s = o = 1, r.svg = !(!t.getCTM || !pd(t)), m = Ed(t, r.svg), r.svg && (M = !r.uncache && t.getAttribute("data-svg-origin"), Fd(t, M || B, !!M || r.originIsAbsolute, !1 !== r.smooth, m)), p = r.xOrigin || 0, _ = r.yOrigin || 0, m !== Ve && (T = m[0], b = m[1], w = m[2], x = m[3], i = k = m[4], n = O = m[5], 6 === m.length ? (s = Math.sqrt(T * T + b * b), o = Math.sqrt(x * x + w * w), u = T || b ? ze(b, T) * De : 0, (f = w || x ? ze(w, x) * De + u : 0) && (o *= Math.cos(f * Fe)), r.svg && (i -= p - (p * T + _ * w), n -= _ - (p * b + _ * x))) : (E = m[6], F = m[7], P = m[8], S = m[9], D = m[10], z = m[11], i = m[12], n = m[13], a = m[14], h = (g = ze(E, D)) * De, g && (M = k * (v = Math.cos(-g)) + P * (y = Math.sin(-g)), C = O * v + S * y, A = E * v + D * y, P = k * -y + P * v, S = O * -y + S * v, D = E * -y + D * v, z = F * -y + z * v, k = M, O = C, E = A), l = (g = ze(-w, D)) * De, g && (v = Math.cos(-g), z = x * (y = Math.sin(-g)) + z * v, T = M = T * v - P * y, b = C = b * v - S * y, w = A = w * v - D * y), u = (g = ze(b, T)) * De, g && (M = T * (v = Math.cos(g)) + b * (y = Math.sin(g)), C = k * v + O * y, b = b * v - T * y, O = O * v - k * y, T = M, k = C), h && 359.9 < Math.abs(h) + Math.abs(u) && (h = u = 0, l = 180 - l), s = aa(Math.sqrt(T * T + b * b + w * w)), o = aa(Math.sqrt(O * O + E * E)), g = ze(k, O), f = 2e-4 < Math.abs(g) ? g * De : 0, c = z ? 1 / (z < 0 ? -z : z) : 0), r.svg && (M = t.getAttribute("transform"), r.forceCSS = t.setAttribute("transform", "") || !Cd(id(t, Be)), M && t.setAttribute("transform", M))), 90 < Math.abs(f) && Math.abs(f) < 270 && (R ? (s *= -1, f += u <= 0 ? 180 : -180, u += u <= 0 ? 180 : -180) : (o *= -1, f += f <= 0 ? 180 : -180)), r.x = ((r.xPercent = i && Math.round(t.offsetWidth / 2) === Math.round(-i) ? -50 : 0) ? 0 : i) + "px", r.y = ((r.yPercent = n && Math.round(t.offsetHeight / 2) === Math.round(-n) ? -50 : 0) ? 0 : n) + "px", r.z = a + "px", r.scaleX = aa(s), r.scaleY = aa(o), r.rotation = aa(u) + L, r.rotationX = aa(h) + L, r.rotationY = aa(l) + L, r.skewX = f + L, r.skewY = d + L, r.transformPerspective = c + "px", (r.zOrigin = parseFloat(B.split(" ")[2]) || 0) && (I[qe] = Qe(B)), r.xOffset = r.yOffset = 0, r.force3D = U.force3D, r.renderTransform = r.svg ? tr : fe ? Ke : Je, r.uncache = 0, r }, Qe = function _firstTwoOnly(t) { return (t = t.split(" "))[0] + " " + t[1] }, Je = function _renderNon3DTransforms(t, e) { e.z = "0px", e.rotationY = e.rotationX = "0deg", e.force3D = 0, Ke(t, e) }, We = "0deg", $e = "0px", He = ") ", Ke = function _renderCSSTransforms(t, e) { var r = e || this, i = r.xPercent, n = r.yPercent, a = r.x, s = r.y, o = r.z, u = r.rotation, h = r.rotationY, l = r.rotationX, f = r.skewX, d = r.skewY, c = r.scaleX, p = r.scaleY, _ = r.transformPerspective, m = r.force3D, g = r.target, v = r.zOrigin, y = "", T = "auto" === m && t && 1 !== t || !0 === m; if (v && (l !== We || h !== We)) { var b, w = parseFloat(h) * Fe, x = Math.sin(w), k = Math.cos(w); w = parseFloat(l) * Fe, b = Math.cos(w), a = Id(g, a, x * b * -v), s = Id(g, s, -Math.sin(w) * -v), o = Id(g, o, k * b * -v + v) } _ !== $e && (y += "perspective(" + _ + He), (i || n) && (y += "translate(" + i + "%, " + n + "%) "), !T && a === $e && s === $e && o === $e || (y += o !== $e || T ? "translate3d(" + a + ", " + s + ", " + o + ") " : "translate(" + a + ", " + s + He), u !== We && (y += "rotate(" + u + He), h !== We && (y += "rotateY(" + h + He), l !== We && (y += "rotateX(" + l + He), f === We && d === We || (y += "skew(" + f + ", " + d + He), 1 === c && 1 === p || (y += "scale(" + c + ", " + p + He), g.style[Be] = y || "translate(0, 0)" }, tr = function _renderSVGTransforms(t, e) { var r, i, n, a, s, o = e || this, u = o.xPercent, h = o.yPercent, l = o.x, f = o.y, d = o.rotation, c = o.skewX, p = o.skewY, _ = o.scaleX, m = o.scaleY, g = o.target, v = o.xOrigin, y = o.yOrigin, T = o.xOffset, b = o.yOffset, w = o.forceCSS, x = parseFloat(l), k = parseFloat(f); d = parseFloat(d), c = parseFloat(c), (p = parseFloat(p)) && (c += p = parseFloat(p), d += p), d || c ? (d *= Fe, c *= Fe, r = Math.cos(d) * _, i = Math.sin(d) * _, n = Math.sin(d - c) * -m, a = Math.cos(d - c) * m, c && (p *= Fe, s = Math.tan(c - p), n *= s = Math.sqrt(1 + s * s), a *= s, p && (s = Math.tan(p), r *= s = Math.sqrt(1 + s * s), i *= s)), r = aa(r), i = aa(i), n = aa(n), a = aa(a)) : (r = _, a = m, i = n = 0), (x && !~(l + "").indexOf("px") || k && !~(f + "").indexOf("px")) && (x = td(g, "x", l, "px"), k = td(g, "y", f, "px")), (v || y || T || b) && (x = aa(x + v - (v * r + y * n) + T), k = aa(k + y - (v * i + y * a) + b)), (u || h) && (s = g.getBBox(), x = aa(x + u / 100 * s.width), k = aa(k + h / 100 * s.height)), s = "matrix(" + r + "," + i + "," + n + "," + a + "," + x + "," + k + ")", g.setAttribute("transform", s), w && (g.style[Be] = s) }; _("padding,margin,Width,Radius", function (e, r) { var t = "Right", i = "Bottom", n = "Left", o = (r < 3 ? ["Top", t, i, n] : ["Top" + n, "Top" + t, i + t, i + n]).map(function (t) { return r < 2 ? e + t : "border" + t + e }); Ze[1 < r ? "border" + e : e] = function (e, t, r, i, n) { var a, s; if (arguments.length < 4) return a = o.map(function (t) { return ud(e, t, r) }), 5 === (s = a.join(" ")).split(a[0]).length ? a[0] : s; a = (i + "").split(" "), s = {}, o.forEach(function (t, e) { return s[t] = a[e] = a[e] || a[(e - 1) / 2 | 0] }), e.init(t, s, n) } }); var er, rr, ir, nr = { name: "css", register: ld, targetTest: function targetTest(t) { return t.style && t.nodeType }, init: function init(t, e, r, i, n) { var a, s, o, u, h, l, f, d, c, p, _, m, g, v, y, T = this._props, b = t.style; for (f in oe || ld(), e) if ("autoRound" !== f && (s = e[f], !ht[f] || !Mb(f, e, r, i, t, n))) if (h = typeof s, l = Ze[f], "function" === h && (h = typeof (s = s.call(r, i, t, n))), "string" === h && ~s.indexOf("random(") && (s = ab(s)), l) l(this, t, f, s, r) && (y = 1); else if ("--" === f.substr(0, 2)) this.add(b, "setProperty", getComputedStyle(t).getPropertyValue(f) + "", s + "", i, n, 0, 0, f); else { if (a = ud(t, f), u = parseFloat(a), (p = "string" === h && "=" === s.charAt(1) ? +(s.charAt(0) + "1") : 0) && (s = s.substr(2)), o = parseFloat(s), f in Le && ("autoAlpha" === f && (1 === u && "hidden" === ud(t, "visibility") && o && (u = 0), rd(this, b, "visibility", u ? "inherit" : "hidden", o ? "inherit" : "hidden", !o)), "scale" !== f && "transform" !== f && ~(f = Le[f]).indexOf(",") && (f = f.split(",")[0])), _ = f in Se) if (m || ((g = t._gsap).renderTransform || Ge(t), v = !1 !== e.smoothOrigin && g.smooth, (m = this._pt = new ee(this._pt, b, Be, 0, 1, g.renderTransform, g, 0, -1)).dep = 1), "scale" === f) this._pt = new ee(this._pt, g, "scaleY", g.scaleY, p ? p * o : o - g.scaleY), T.push("scaleY", f), f += "X"; else { if ("transformOrigin" === f) { s = xd(s), g.svg ? Fd(t, s, 0, v, 0, this) : ((c = parseFloat(s.split(" ")[2]) || 0) !== g.zOrigin && rd(this, g, "zOrigin", g.zOrigin, c), rd(this, b, f, Qe(a), Qe(s))); continue } if ("svgOrigin" === f) { Fd(t, s, 1, v, 0, this); continue } if (f in je) { Pd(this, g, f, u, s, p); continue } if ("smoothOrigin" === f) { rd(this, g, "smooth", g.smooth, s); continue } if ("force3D" === f) { g[f] = s; continue } if ("transform" === f) { Qd(this, s, t); continue } } else f in b || (f = Ne(f) || f); if (_ || (o || 0 === o) && (u || 0 === u) && !Re.test(s) && f in b) (d = (a + "").substr((u + "").length)) !== (c = (s + "").substr(((o = o || 0) + "").length) || (f in U.units ? U.units[f] : d)) && (u = td(t, f, a, c)), this._pt = new ee(this._pt, _ ? g : b, f, u, p ? p * o : o - u, "px" !== c || !1 === e.autoRound || _ ? Uc : Xc), this._pt.u = c || 0, d !== c && (this._pt.b = a, this._pt.r = Wc); else if (f in b) vd.call(this, t, f, a, s); else { if (!(f in t)) { L(f, s); continue } this.add(t, f, t[f], s, i, n) } T.push(f) } y && te(this) }, get: ud, aliases: Le, getSetter: function getSetter(t, e, r) { var i = Le[e]; return i && i.indexOf(",") < 0 && (e = i), e in Se && e !== qe && (t._gsap.x || ud(t, "x")) ? r && le === r ? "scale" === e ? bd : ad : (le = r || {}) && ("scale" === e ? cd : dd) : t.style && !q(t.style[e]) ? $c : ~e.indexOf("-") ? _c : Gt(t, e) }, core: { _removeProperty: qd, _getMatrix: Ed } }; ie.utils.checkPrefix = Ne, ir = _((er = "x,y,z,scale,scaleX,scaleY,xPercent,yPercent") + "," + (rr = "rotation,rotationX,rotationY,skewX,skewY") + ",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective", function (t) { Se[t] = 1 }), _(rr, function (t) { U.units[t] = "deg", je[t] = 1 }), Le[ir[13]] = er + "," + rr, _("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY", function (t) { var e = t.split(":"); Le[e[1]] = ir[e[0]] }), _("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective", function (t) { U.units[t] = "px" }), ie.registerPlugin(nr); var ar = ie.registerPlugin(nr) || ie, sr = ar.core.Tween; e.Back = ke, e.Bounce = Me, e.CSSPlugin = nr, e.Circ = Pe, e.Cubic = ye, e.Elastic = xe, e.Expo = Ae, e.Linear = ge, e.Power0 = de, e.Power1 = ce, e.Power2 = pe, e.Power3 = _e, e.Power4 = me, e.Quad = ve, e.Quart = Te, e.Quint = be, e.Sine = Ce, e.SteppedEase = Oe, e.Strong = we, e.TimelineLite = Rt, e.TimelineMax = Rt, e.TweenLite = Xt, e.TweenMax = sr, e.default = ar, e.gsap = ar; if (typeof (window) === "undefined" || window !== e) { Object.defineProperty(e, "__esModule", { value: !0 }) } else { delete e.default } });