
s; )
c(n, r = t[s++]) && (~P(o, r) || o.push(r));
return o
}
}
, z = function() {};
s(s.S, "Object", {
getPrototypeOf: n.getProto = n.getProto || function(t) {
return t = g(t),
c(t, w) ? t[w] : "function" == typeof t.constructor && t instanceof t.constructor ? t.constructor.prototype : t instanceof Object ? S : null
}
,
getOwnPropertyNames: n.getNames = n.getNames || N(F, F.length, !0),
create: n.create = n.create || function(t, e) {
var i;
return null !== t ? (z.prototype = d(t),
i = new z,
z.prototype = null,
i[w] = t) : i = I(),
void 0 === e ? i : M(i, e)
}
,
keys: n.getKeys = n.getKeys || N(D, E, !1)
});
var L = function(t, e, i) {
if (!(e in C)) {
for (var r = [], n = 0; n < e; n++)
r[n] = "a[" + n + "]";
C[e] = Function("F,a", "return new F(" + r.join(",") + ")")
}
return C[e](t, i)
};
s(s.P, "Function", {
bind: function(t) {
var e = m(this)
, i = j.call(arguments, 1)
, r = function() {
var n = i.concat(j.call(arguments));
return this instanceof r ? L(e, n.length, n) : f(e, n, t)
};
return _(e.prototype) && (r.prototype = e.prototype),
r
}
}),
s(s.P + s.F * p(function() {
l && j.call(l)
}), "Array", {
slice: function(t, e) {
var i = $(this.length)
, r = h(this);
if (e = void 0 === e ? i : e,
"Array" == r)
return j.call(this, t, e);
for (var n = x(t, i), s = x(e, i), o = $(s - n), a = Array(o), l = 0; l < o; l++)
a[l] = "String" == r ? this.charAt(n + l) : this[n + l];
return a
}
}),
s(s.P + s.F * (b != Object), "Array", {
join: function(t) {
return k.call(b(this), void 0 === t ? "," : t)
}
}),
s(s.S, "Array", {
isArray: t("./$.is-array")
});
var B = function(t) {
return function(e, i) {
m(e);
var r = b(this)
, n = $(r.length)
, s = t ? n - 1 : 0
, o = t ? -1 : 1;
if (arguments.length < 2)
for (; ; ) {
if (s in r) {
i = r[s],
s += o;
break
}
if (s += o,
t ? s < 0 : n <= s)
throw TypeError("Reduce of empty array with no initial value")
}
for (; t ? s >= 0 : n > s; s += o)
s in r && (i = e(i, r[s], s, this));
return i
}
}
, X = function(t) {
return function(e) {
return t(this, e, arguments[1])
}
};
s(s.P, "Array", {
forEach: n.each = n.each || X(T(0)),
map: X(T(1)),
filter: X(T(2)),
some: X(T(3)),
every: X(T(4)),
reduce: B(!1),
reduceRight: B(!0),
indexOf: X(P),
lastIndexOf: function(t, e) {
var i = v(this)
, r = $(i.length)
, n = r - 1;
for (arguments.length > 1 && (n = Math.min(n, y(e))),
n < 0 && (n = $(r + n)); n >= 0; n--)
if (n in i && i[n] === t)
return n;
return -1
}
}),
s(s.S, "Date", {
now: function() {
return +new Date
}
});
var U = function(t) {
return t > 9 ? t : "0" + t
};
s(s.P + s.F * (p(function() {
return "0385-07-25T07:06:39.999Z" != new Date(-5e13 - 1).toISOString()
}) || !p(function() {
new Date(NaN).toISOString()
})), "Date", {
toISOString: function() {
if (!isFinite(this))
throw RangeError("Invalid time value");
var t = this
, e = t.getUTCFullYear()
, i = t.getUTCMilliseconds()
, r = e < 0 ? "-" : e > 9999 ? "+" : "";
return r + ("00000" + Math.abs(e)).slice(r ? -6 : -4) + "-" + U(t.getUTCMonth() + 1) + "-" + U(t.getUTCDate()) + "T" + U(t.getUTCHours()) + ":" + U(t.getUTCMinutes()) + ":" + U(t.getUTCSeconds()) + "." + (i > 99 ? i : "0" + U(i)) + "Z"
}
})
}
, {
"./$": 46,
"./$.a-function": 2,
"./$.an-object": 4,
"./$.array-includes": 7,
"./$.array-methods": 8,
"./$.cof": 11,
"./$.descriptors": 19,
"./$.dom-create": 20,
"./$.export": 22,
"./$.fails": 24,
"./$.has": 30,
"./$.html": 32,
"./$.invoke": 33,
"./$.iobject": 34,
"./$.is-array": 36,
"./$.is-object": 38,
"./$.property-desc": 60,
"./$.to-index": 77,
"./$.to-integer": 78,
"./$.to-iobject": 79,
"./$.to-length": 80,
"./$.to-object": 81,
"./$.uid": 83
}],
100: [function(t, e, i) {
var r = t("./$.export");
r(r.P, "Array", {
copyWithin: t("./$.array-copy-within")
}),
t("./$.add-to-unscopables")("copyWithin")
}
, {
"./$.add-to-unscopables": 3,
"./$.array-copy-within": 5,
"./$.export": 22
}],
101: [function(t, e, i) {
var r = t("./$.export");
r(r.P, "Array", {
fill: t("./$.array-fill")
}),
t("./$.add-to-unscopables")("fill")
}
, {
"./$.add-to-unscopables": 3,
"./$.array-fill": 6,
"./$.export": 22
}],
102: [function(t, e, i) {
"use strict";
var r = t("./$.export")
, n = t("./$.array-methods")(6)
, s = "findIndex"
, o = !0;
s in [] && Array(1)[s](function() {
o = !1
}),
r(r.P + r.F * o, "Array", {
findIndex: function(t) {
return n(this, t, arguments.length > 1 ? arguments[1] : void 0)
}
}),
t("./$.add-to-unscopables")(s)
}
, {
"./$.add-to-unscopables": 3,
"./$.array-methods": 8,
"./$.export": 22
}],
103: [function(t, e, i) {
"use strict";
var r = t("./$.export")
, n = t("./$.array-methods")(5)
, s = "find"
, o = !0;
s in [] && Array(1)[s](function() {
o = !1
}),
r(r.P + r.F * o, "Array", {
find: function(t) {
return n(this, t, arguments.length > 1 ? arguments[1] : void 0)
}
}),
t("./$.add-to-unscopables")(s)
}
, {
"./$.add-to-unscopables": 3,
"./$.array-methods": 8,
"./$.export": 22
}],
104: [function(t, e, i) {
"use strict";
var r = t("./$.ctx")
, n = t("./$.export")
, s = t("./$.to-object")
, o = t("./$.iter-call")
, a = t("./$.is-array-iter")
, l = t("./$.to-length")
, u = t("./core.get-iterator-method");
n(n.S + n.F * !t("./$.iter-detect")(function(t) {
Array.from(t)
}), "Array", {
from: function(t) {
var e, i, n, c, h = s(t), f = "function" == typeof this ? this : Array, p = arguments, d = p.length, m = d > 1 ? p[1] : void 0, _ = void 0 !== m, g = 0, v = u(h);
if (_ && (m = r(m, d > 2 ? p[2] : void 0, 2)),
void 0 == v || f == Array && a(v))
for (e = l(h.length),
i = new f(e); e > g; g++)
i[g] = _ ? m(h[g], g) : h[g];
else
for (c = v.call(h),
i = new f; !(n = c.next()).done; g++)
i[g] = _ ? o(c, m, [n.value, g], !0) : n.value;
return i.length = g,
i
}
})
}
, {
"./$.ctx": 17,
"./$.export": 22,
"./$.is-array-iter": 35,
"./$.iter-call": 40,
"./$.iter-detect": 43,
"./$.to-length": 80,
"./$.to-object": 81,
"./core.get-iterator-method": 88
}],
105: [function(t, e, i) {
"use strict";
var r = t("./$.add-to-unscopables")
, n = t("./$.iter-step")
, s = t("./$.iterators")
, o = t("./$.to-iobject");
e.exports = t("./$.iter-define")(Array, "Array", function(t, e) {
this._t = o(t),
this._i = 0,
this._k = e
}, function() {
var t = this._t
, e = this._k
, i = this._i++;
return !t || i >= t.length ? (this._t = void 0,
n(1)) : "keys" == e ? n(0, i) : "values" == e ? n(0, t[i]) : n(0, [i, t[i]])
}, "values"),
s.Arguments = s.Array,
r("keys"),
r("values"),
r("entries")
}
, {
"./$.add-to-unscopables": 3,
"./$.iter-define": 42,
"./$.iter-step": 44,
"./$.iterators": 45,
"./$.to-iobject": 79
}],
106: [function(t, e, i) {
"use strict";
var r = t("./$.export");
r(r.S + r.F * t("./$.fails")(function() {
function t() {}
return !(Array.of.call(t)instanceof t)
}), "Array", {
of: function() {
for (var t = 0, e = arguments, i = e.length, r = new ("function" == typeof this ? this : Array)(i); i > t; )
r[t] = e[t++];
return r.length = i,
r
}
})
}
, {
"./$.export": 22,
"./$.fails": 24
}],
107: [function(t, e, i) {
t("./$.set-species")("Array")
}
, {
"./$.set-species": 66
}],
108: [function(t, e, i) {
"use strict";
var r = t("./$")
, n = t("./$.is-object")
, s = t("./$.wks")("hasInstance")
, o = Function.prototype;
s in o || r.setDesc(o, s, {
value: function(t) {
if ("function" != typeof this || !n(t))
return !1;
if (!n(this.prototype))
return t instanceof this;
for (; t = r.getProto(t); )
if (this.prototype === t)
return !0;
return !1
}
})
}
, {
"./$": 46,
"./$.is-object": 38,
"./$.wks": 84
}],
109: [function(t, e, i) {
var r = t("./$").setDesc
, n = t("./$.property-desc")
, s = t("./$.has")
, o = Function.prototype
, a = /^\s*function ([^ (]*)/
, l = "name";
l in o || t("./$.descriptors") && r(o, l, {
configurable: !0,
get: function() {
var t = ("" + this).match(a)
, e = t ? t[1] : "";
return s(this, l) || r(this, l, n(5, e)),
e
}
})
}
, {
"./$": 46,
"./$.descriptors": 19,
"./$.has": 30,
"./$.property-desc": 60
}],
110: [function(t, e, i) {
"use strict";
var r = t("./$.collection-strong");
t("./$.collection")("Map", function(t) {
return function() {
return t(this, arguments.length > 0 ? arguments[0] : void 0)
}
}, {
get: function(t) {
var e = r.getEntry(this, t);
return e && e.v
},
set: function(t, e) {
return r.def(this, 0 === t ? 0 : t, e)
}
}, r, !0)
}
, {
"./$.collection": 15,
"./$.collection-strong": 12
}],
111: [function(t, e, i) {
var r = t("./$.export")
, n = t("./$.math-log1p")
, s = Math.sqrt
, o = Math.acosh;
r(r.S + r.F * !(o && 710 == Math.floor(o(Number.MAX_VALUE))), "Math", {
acosh: function(t) {
return (t = +t) < 1 ? NaN : t > 94906265.62425156 ? Math.log(t) + Math.LN2 : n(t - 1 + s(t - 1) * s(t + 1))
}
})
}
, {
"./$.export": 22,
"./$.math-log1p": 50
}],
112: [function(t, e, i) {
function r(t) {
return isFinite(t = +t) && 0 != t ? t < 0 ? -r(-t) : Math.log(t + Math.sqrt(t * t + 1)) : t
}
var n = t("./$.export");
n(n.S, "Math", {
asinh: r
})
}
, {
"./$.export": 22
}],
113: [function(t, e, i) {
var r = t("./$.export");
r(r.S, "Math", {
atanh: function(t) {
return 0 == (t = +t) ? t : Math.log((1 + t) / (1 - t)) / 2
}
})
}
, {
"./$.export": 22
}],
114: [function(t, e, i) {
var r = t("./$.export")
, n = t("./$.math-sign");
r(r.S, "Math", {
cbrt: function(t) {
return n(t = +t) * Math.pow(Math.abs(t), 1 / 3)
}
})
}
, {
"./$.export": 22,
"./$.math-sign": 51
}],
115: [function(t, e, i) {
var r = t("./$.export");
r(r.S, "Math", {
clz32: function(t) {
return (t >>>= 0) ? 31 - Math.floor(Math.log(t + .5) * Math.LOG2E) : 32
}
})
}
, {
"./$.export": 22
}],
116: [function(t, e, i) {
var r = t("./$.export")
, n = Math.exp;
r(r.S, "Math", {
cosh: function(t) {
return (n(t = +t) + n(-t)) / 2
}
})
}
, {
"./$.export": 22
}],
117: [function(t, e, i) {
var r = t("./$.export");
r(r.S, "Math", {
expm1: t("./$.math-expm1")
})
}
, {
"./$.export": 22,
"./$.math-expm1": 49
}],
118: [function(t, e, i) {
var r = t("./$.export")
, n = t("./$.math-sign")
, s = Math.pow
, o = s(2, -52)
, a = s(2, -23)
, l = s(2, 127) * (2 - a)
, u = s(2, -126)
, c = function(t) {
return t + 1 / o - 1 / o
};
r(r.S, "Math", {
fround: function(t) {
var e, i, r = Math.abs(t), s = n(t);
return r < u ? s * c(r / u / a) * u * a : (e = (1 + a / o) * r,
i = e - (e - r),
i > l || i != i ? s * (1 / 0) : s * i)
}
})
}
, {
"./$.export": 22,
"./$.math-sign": 51
}],
119: [function(t, e, i) {
var r = t("./$.export")
, n = Math.abs;
r(r.S, "Math", {
hypot: function(t, e) {
for (var i, r, s = 0, o = 0, a = arguments, l = a.length, u = 0; o < l; )
i = n(a[o++]),
u < i ? (r = u / i,
s = s * r * r + 1,
u = i) : i > 0 ? (r = i / u,
s += r * r) : s += i;
return u === 1 / 0 ? 1 / 0 : u * Math.sqrt(s)
}
})
}
, {
"./$.export": 22
}],
120: [function(t, e, i) {
var r = t("./$.export")
, n = Math.imul;
r(r.S + r.F * t("./$.fails")(function() {
return n(4294967295, 5) != -5 || 2 != n.length
}), "Math", {
imul: function(t, e) {
var i = 65535
, r = +t
, n = +e
, s = i & r
, o = i & n;
return 0 | s * o + ((i & r >>> 16) * o + s * (i & n >>> 16) << 16 >>> 0)
}
})
}
, {
"./$.export": 22,
"./$.fails": 24
}],
121: [function(t, e, i) {
var r = t("./$.export");
r(r.S, "Math", {
log10: function(t) {
return Math.log(t) / Math.LN10
}
})
}
, {
"./$.export": 22
}],
122: [function(t, e, i) {
var r = t("./$.export");
r(r.S, "Math", {
log1p: t("./$.math-log1p")
})
}
, {
"./$.export": 22,
"./$.math-log1p": 50
}],
123: [function(t, e, i) {
var r = t("./$.export");
r(r.S, "Math", {
log2: function(t) {
return Math.log(t) / Math.LN2
}
})
}
, {
"./$.export": 22
}],
124: [function(t, e, i) {
var r = t("./$.export");
r(r.S, "Math", {
sign: t("./$.math-sign")
})
}
, {
"./$.export": 22,
"./$.math-sign": 51
}],
125: [function(t, e, i) {
var r = t("./$.export")
, n = t("./$.math-expm1")
, s = Math.exp;
r(r.S + r.F * t("./$.fails")(function() {
return !Math.sinh(-2e-17) != -2e-17
}), "Math", {
sinh: function(t) {
return Math.abs(t = +t) < 1 ? (n(t) - n(-t)) / 2 : (s(t - 1) - s(-t - 1)) * (Math.E / 2)
}
})
}
, {
"./$.export": 22,
"./$.fails": 24,
"./$.math-expm1": 49
}],
126: [function(t, e, i) {
var r = t("./$.export")
, n = t("./$.math-expm1")
, s = Math.exp;
r(r.S, "Math", {
tanh: function(t) {
var e = n(t = +t)
, i = n(-t);
return e == 1 / 0 ? 1 : i == 1 / 0 ? -1 : (e - i) / (s(t) + s(-t))
}
})
}
, {
"./$.export": 22,
"./$.math-expm1": 49
}],
127: [function(t, e, i) {
var r = t("./$.export");
r(r.S, "Math", {
trunc: function(t) {
return (t > 0 ? Math.floor : Math.ceil)(t)
}
})
}
, {
"./$.export": 22
}],
128: [function(t, e, i) {
"use strict";
var r = t("./$")
, n = t("./$.global")
, s = t("./$.has")
, o = t("./$.cof")
, a = t("./$.to-primitive")
, l = t("./$.fails")
, u = t("./$.string-trim").trim
, c = "Number"
, h = n[c]
, f = h
, p = h.prototype
, d = o(r.create(p)) == c
, m = "trim"in String.prototype
, _ = function(t) {
var e = a(t, !1);
if ("string" == typeof e && e.length > 2) {
e = m ? e.trim() : u(e, 3);
var i, r, n, s = e.charCodeAt(0);
if (43 === s || 45 === s) {
if (i = e.charCodeAt(2),
88 === i || 120 === i)
return NaN
} else if (48 === s) {
switch (e.charCodeAt(1)) {
case 66:
case 98:
r = 2,
n = 49;
break;
case 79:
case 111:
r = 8,
n = 55;
break;
default:
return +e
}
for (var o, l = e.slice(2), c = 0, h = l.length; c < h; c++)
if (o = l.charCodeAt(c),
o < 48 || o > n)
return NaN;
return parseInt(l, r)
}
}
return +e
};
h(" 0o1") && h("0b1") && !h("+0x1") || (h = function(t) {
var e = arguments.length < 1 ? 0 : t
, i = this;
return i instanceof h && (d ? l(function() {
p.valueOf.call(i)
}) : o(i) != c) ? new f(_(e)) : _(e)
}
,
r.each.call(t("./$.descriptors") ? r.getNames(f) : "MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","), function(t) {
s(f, t) && !s(h, t) && r.setDesc(h, t, r.getDesc(f, t))
}),
h.prototype = p,
p.constructor = h,
t("./$.redefine")(n, c, h))
}
, {
"./$": 46,
"./$.cof": 11,
"./$.descriptors": 19,
"./$.fails": 24,
"./$.global": 29,
"./$.has": 30,
"./$.redefine": 62,
"./$.string-trim": 75,
"./$.to-primitive": 82
}],
129: [function(t, e, i) {
var r = t("./$.export");
r(r.S, "Number", {
EPSILON: Math.pow(2, -52)
})
}
, {
"./$.export": 22
}],
130: [function(t, e, i) {
var r = t("./$.export")
, n = t("./$.global").isFinite;
r(r.S, "Number", {
isFinite: function(t) {
return "number" == typeof t && n(t)
}
})
}
, {
"./$.export": 22,
"./$.global": 29
}],
131: [function(t, e, i) {
var r = t("./$.export");
r(r.S, "Number", {
isInteger: t("./$.is-integer")
})
}
, {
"./$.export": 22,
"./$.is-integer": 37
}],
132: [function(t, e, i) {
var r = t("./$.export");
r(r.S, "Number", {
isNaN: function(t) {
return t != t
}
})
}
, {
"./$.export": 22
}],
133: [function(t, e, i) {
var r = t("./$.export")
, n = t("./$.is-integer")
, s = Math.abs;
r(r.S, "Number", {
isSafeInteger: function(t) {
return n(t) && s(t) <= 9007199254740991
}
})
}
, {
"./$.export": 22,
"./$.is-integer": 37
}],
134: [function(t, e, i) {
var r = t("./$.export");
r(r.S, "Number", {
MAX_SAFE_INTEGER: 9007199254740991
})
}
, {
"./$.export": 22
}],
135: [function(t, e, i) {
var r = t("./$.export");
r(r.S, "Number", {
MIN_SAFE_INTEGER: -9007199254740991
})
}
, {
"./$.export": 22
}],
136: [function(t, e, i) {
var r = t("./$.export");
r(r.S, "Number", {
parseFloat: parseFloat
})
}
, {
"./$.export": 22
}],
137: [function(t, e, i) {
var r = t("./$.export");
r(r.S, "Number", {
parseInt: parseInt
})
}
, {
"./$.export": 22
}],
138: [function(t, e, i) {
var r = t("./$.export");
r(r.S + r.F, "Object", {
assign: t("./$.object-assign")
})
}
, {
"./$.export": 22,
"./$.object-assign": 53
}],
139: [function(t, e, i) {
var r = t("./$.is-object");
t("./$.object-sap")("freeze", function(t) {
return function(e) {
return t && r(e) ? t(e) : e
}
})
}
, {
"./$.is-object": 38,
"./$.object-sap": 55
}],
140: [function(t, e, i) {
var r = t("./$.to-iobject");
t("./$.object-sap")("getOwnPropertyDescriptor", function(t) {
return function(e, i) {
return t(r(e), i)
}
})
}
, {
"./$.object-sap": 55,
"./$.to-iobject": 79
}],
141: [function(t, e, i) {
t("./$.object-sap")("getOwnPropertyNames", function() {
return t("./$.get-names").get
})
}
, {
"./$.get-names": 28,
"./$.object-sap": 55
}],
142: [function(t, e, i) {
var r = t("./$.to-object");
t("./$.object-sap")("getPrototypeOf", function(t) {
return function(e) {
return t(r(e))
}
})
}
, {
"./$.object-sap": 55,
"./$.to-object": 81
}],
143: [function(t, e, i) {
var r = t("./$.is-object");
t("./$.object-sap")("isExtensible", function(t) {
return function(e) {
return !!r(e) && (!t || t(e))
}
})
}
, {
"./$.is-object": 38,
"./$.object-sap": 55
}],
144: [function(t, e, i) {
var r = t("./$.is-object");
t("./$.object-sap")("isFrozen", function(t) {
return function(e) {
return !r(e) || !!t && t(e)
}
})
}
, {
"./$.is-object": 38,
"./$.object-sap": 55
}],
145: [function(t, e, i) {
var r = t("./$.is-object");
t("./$.object-sap")("isSealed", function(t) {
return function(e) {
return !r(e) || !!t && t(e)
}
})
}
, {
"./$.is-object": 38,
"./$.object-sap": 55
}],
146: [function(t, e, i) {
var r = t("./$.export");
r(r.S, "Object", {
is: t("./$.same-value")
})
}
, {
"./$.export": 22,
"./$.same-value": 64
}],
147: [function(t, e, i) {
var r = t("./$.to-object");
t("./$.object-sap")("keys", function(t) {
return function(e) {
return t(r(e))
}
})
}
, {
"./$.object-sap": 55,
"./$.to-object": 81
}],
148: [function(t, e, i) {
var r = t("./$.is-object");
t("./$.object-sap")("preventExtensions", function(t) {
return function(e) {
return t && r(e) ? t(e) : e
}
})
}
, {
"./$.is-object": 38,
"./$.object-sap": 55
}],
149: [function(t, e, i) {
var r = t("./$.is-object");
t("./$.object-sap")("seal", function(t) {
return function(e) {
return t && r(e) ? t(e) : e
}
})
}
, {
"./$.is-object": 38,
"./$.object-sap": 55
}],
150: [function(t, e, i) {
var r = t("./$.export");
r(r.S, "Object", {
setPrototypeOf: t("./$.set-proto").set
})
}
, {
"./$.export": 22,
"./$.set-proto": 65
}],
151: [function(t, e, i) {
"use strict";
var r = t("./$.classof")
, n = {};
n[t("./$.wks")("toStringTag")] = "z",
n + "" != "[object z]" && t("./$.redefine")(Object.prototype, "toString", function() {
return "[object " + r(this) + "]"
}, !0)
}
, {
"./$.classof": 10,
"./$.redefine": 62,
"./$.wks": 84
}],
152: [function(t, e, i) {
"use strict";
var r, n = t("./$"), s = t("./$.library"), o = t("./$.global"), a = t("./$.ctx"), l = t("./$.classof"), u = t("./$.export"), c = t("./$.is-object"), h = t("./$.an-object"), f = t("./$.a-function"), p = t("./$.strict-new"), d = t("./$.for-of"), m = t("./$.set-proto").set, _ = t("./$.same-value"), g = t("./$.wks")("species"), v = t("./$.species-constructor"), y = t("./$.microtask"), x = "Promise", $ = o.process, b = "process" == l($), w = o[x], T = function() {}, P = function(t) {
var e, i = new w(T);
return t && (i.constructor = function(t) {
t(T, T)
}
),
(e = w.resolve(i))["catch"](T),
e === i
}, S = function() {
function e(t) {
var i = new w(t);
return m(i, e.prototype),
i
}
var i = !1;
try {
if (i = w && w.resolve && P(),
m(e, w),
e.prototype = n.create(w.prototype, {
constructor: {
value: e
}
}),
e.resolve(5).then(function() {})instanceof e || (i = !1),
i && t("./$.descriptors")) {
var r = !1;
w.resolve(n.setDesc({}, "then", {
get: function() {
r = !0
}
})),
i = r
}
} catch (s) {
i = !1
}
return i
}(), O = function(t, e) {
return !(!s || t !== w || e !== r) || _(t, e)
}, j = function(t) {
var e = h(t)[g];
return void 0 != e ? e : t
}, k = function(t) {
var e;
return !(!c(t) || "function" != typeof (e = t.then)) && e
}, R = function(t) {
var e, i;
this.promise = new t(function(t, r) {
if (void 0 !== e || void 0 !== i)
throw TypeError("Bad Promise constructor");
e = t,
i = r
}
),
this.resolve = f(e),
this.reject = f(i)
}, A = function(t) {
try {
t()
} catch (e) {
return {
error: e
}
}
}, M = function(t, e) {
if (!t.n) {
t.n = !0;
var i = t.c;
y(function() {
for (var r = t.v, n = 1 == t.s, s = 0, a = function(e) {
var i, s, o = n ? e.ok : e.fail, a = e.resolve, l = e.reject;
try {
o ? (n || (t.h = !0),
i = o === !0 ? r : o(r),
i === e.promise ? l(TypeError("Promise-chain cycle")) : (s = k(i)) ? s.call(i, a, l) : a(i)) : l(r)
} catch (u) {
l(u)
}
}; i.length > s; )
a(i[s++]);
i.length = 0,
t.n = !1,
e && setTimeout(function() {
var e, i, n = t.p;
C(n) && (b ? $.emit("unhandledRejection", r, n) : (e = o.onunhandledrejection) ? e({
promise: n,
reason: r
}) : (i = o.console) && i.error && i.error("Unhandled promise rejection", r)),
t.a = void 0
}, 1)
})
}
}, C = function(t) {
var e, i = t._d, r = i.a || i.c, n = 0;
if (i.h)
return !1;
for (; r.length > n; )
if (e = r[n++],
e.fail || !C(e.promise))
return !1;
return !0
}, D = function(t) {
var e = this;
e.d || (e.d = !0,
e = e.r || e,
e.v = t,
e.s = 2,
e.a = e.c.slice(),
M(e, !0))
}, F = function(t) {
var e, i = this;
if (!i.d) {
i.d = !0,
i = i.r || i;
try {
if (i.p === t)
throw TypeError("Promise can't be resolved itself");
(e = k(t)) ? y(function() {
var r = {
r: i,
d: !1
};
try {
e.call(t, a(F, r, 1), a(D, r, 1))
} catch (n) {
D.call(r, n)
}
}) : (i.v = t,
i.s = 1,
M(i, !1))
} catch (r) {
D.call({
r: i,
d: !1
}, r)
}
}
};
S || (w = function(t) {
f(t);
var e = this._d = {
p: p(this, w, x),
c: [],
a: void 0,
s: 0,
d: !1,
v: void 0,
h: !1,
n: !1
};
try {
t(a(F, e, 1), a(D, e, 1))
} catch (i) {
D.call(e, i)
}
}
,
t("./$.redefine-all")(w.prototype, {
then: function(t, e) {
var i = new R(v(this, w))
, r = i.promise
, n = this._d;
return i.ok = "function" != typeof t || t,
i.fail = "function" == typeof e && e,
n.c.push(i),
n.a && n.a.push(i),
n.s && M(n, !1),
r
},
"catch": function(t) {
return this.then(void 0, t)
}
})),
u(u.G + u.W + u.F * !S, {
Promise: w
}),
t("./$.set-to-string-tag")(w, x),
t("./$.set-species")(x),
r = t("./$.core")[x],
u(u.S + u.F * !S, x, {
reject: function(t) {
var e = new R(this)
, i = e.reject;
return i(t),
e.promise
}
}),
u(u.S + u.F * (!S || P(!0)), x, {
resolve: function(t) {
if (t instanceof w && O(t.constructor, this))
return t;
var e = new R(this)
, i = e.resolve;
return i(t),
e.promise
}
}),
u(u.S + u.F * !(S && t("./$.iter-detect")(function(t) {
w.all(t)["catch"](function() {})
})), x, {
all: function(t) {
var e = j(this)
, i = new R(e)
, r = i.resolve
, s = i.reject
, o = []
, a = A(function() {
d(t, !1, o.push, o);
var i = o.length
, a = Array(i);
i ? n.each.call(o, function(t, n) {
var o = !1;
e.resolve(t).then(function(t) {
o || (o = !0,
a[n] = t,
--i || r(a))
}, s)
}) : r(a)
});
return a && s(a.error),
i.promise
},
race: function(t) {
var e = j(this)
, i = new R(e)
, r = i.reject
, n = A(function() {
d(t, !1, function(t) {
e.resolve(t).then(i.resolve, r)
})
});
return n && r(n.error),
i.promise
}
})
}
, {
"./$": 46,
"./$.a-function": 2,
"./$.an-object": 4,
"./$.classof": 10,
"./$.core": 16,
"./$.ctx": 17,
"./$.descriptors": 19,
"./$.export": 22,
"./$.for-of": 27,
"./$.global": 29,
"./$.is-object": 38,
"./$.iter-detect": 43,
"./$.library": 48,
"./$.microtask": 52,
"./$.redefine-all": 61,
"./$.same-value": 64,
"./$.set-proto": 65,
"./$.set-species": 66,
"./$.set-to-string-tag": 67,
"./$.species-constructor": 69,
"./$.strict-new": 70,
"./$.wks": 84
}],
153: [function(t, e, i) {
var r = t("./$.export")
, n = Function.apply
, s = t("./$.an-object");
r(r.S, "Reflect", {
apply: function(t, e, i) {
return n.call(t, e, s(i))
}
})
}
, {
"./$.an-object": 4,
"./$.export": 22
}],
154: [function(t, e, i) {
var r = t("./$")
, n = t("./$.export")
, s = t("./$.a-function")
, o = t("./$.an-object")
, a = t("./$.is-object")
, l = Function.bind || t("./$.core").Function.prototype.bind;
n(n.S + n.F * t("./$.fails")(function() {
function t() {}
return !(Reflect.construct(function() {}, [], t)instanceof t)
}), "Reflect", {
construct: function(t, e) {
s(t),
o(e);
var i = arguments.length < 3 ? t : s(arguments[2]);
if (t == i) {
switch (e.length) {
case 0:
return new t;
case 1:
return new t(e[0]);
case 2:
return new t(e[0],e[1]);
case 3:
return new t(e[0],e[1],e[2]);
case 4:
return new t(e[0],e[1],e[2],e[3])
}
var n = [null];
return n.push.apply(n, e),
new (l.apply(t, n))
}
var u = i.prototype
, c = r.create(a(u) ? u : Object.prototype)
, h = Function.apply.call(t, c, e);
return a(h) ? h : c
}
})
}
, {
"./$": 46,
"./$.a-function": 2,
"./$.an-object": 4,
"./$.core": 16,
"./$.export": 22,
"./$.fails": 24,
"./$.is-object": 38
}],
155: [function(t, e, i) {
var r = t("./$")
, n = t("./$.export")
, s = t("./$.an-object");
n(n.S + n.F * t("./$.fails")(function() {
Reflect.defineProperty(r.setDesc({}, 1, {
value: 1
}), 1, {
value: 2
})
}), "Reflect", {
defineProperty: function(t, e, i) {
s(t);
try {
return r.setDesc(t, e, i),
!0
} catch (n) {
return !1
}
}
})
}
, {
"./$": 46,
"./$.an-object": 4,
"./$.export": 22,
"./$.fails": 24
}],
156: [function(t, e, i) {
var r = t("./$.export")
, n = t("./$").getDesc
, s = t("./$.an-object");
r(r.S, "Reflect", {
deleteProperty: function(t, e) {
var i = n(s(t), e);
return !(i && !i.configurable) && delete t[e]
}
})
}
, {
"./$": 46,
"./$.an-object": 4,
"./$.export": 22
}],
157: [function(t, e, i) {
"use strict";
var r = t("./$.export")
, n = t("./$.an-object")
, s = function(t) {
this._t = n(t),
this._i = 0;
var e, i = this._k = [];
for (e in t)
i.push(e)
};
t("./$.iter-create")(s, "Object", function() {
var t, e = this, i = e._k;
do
if (e._i >= i.length)
return {
value: void 0,
done: !0
};
while (!((t = i[e._i++])in e._t));
return {
value: t,
done: !1
}
}),
r(r.S, "Reflect", {
enumerate: function(t) {
return new s(t)
}
})
}
, {
"./$.an-object": 4,
"./$.export": 22,
"./$.iter-create": 41
}],
158: [function(t, e, i) {
var r = t("./$")
, n = t("./$.export")
, s = t("./$.an-object");
n(n.S, "Reflect", {
getOwnPropertyDescriptor: function(t, e) {
return r.getDesc(s(t), e)
}
})
}
, {
"./$": 46,
"./$.an-object": 4,
"./$.export": 22
}],
159: [function(t, e, i) {
var r = t("./$.export")
, n = t("./$").getProto
, s = t("./$.an-object");
r(r.S, "Reflect", {
getPrototypeOf: function(t) {
return n(s(t))
}
})
}
, {
"./$": 46,
"./$.an-object": 4,
"./$.export": 22
}],
160: [function(t, e, i) {
function r(t, e) {
var i, o, u = arguments.length < 3 ? t : arguments[2];
return l(t) === u ? t[e] : (i = n.getDesc(t, e)) ? s(i, "value") ? i.value : void 0 !== i.get ? i.get.call(u) : void 0 : a(o = n.getProto(t)) ? r(o, e, u) : void 0
}
var n = t("./$")
, s = t("./$.has")
, o = t("./$.export")
, a = t("./$.is-object")
, l = t("./$.an-object");
o(o.S, "Reflect", {
get: r
})
}
, {
"./$": 46,
"./$.an-object": 4,
"./$.export": 22,
"./$.has": 30,
"./$.is-object": 38
}],
161: [function(t, e, i) {
var r = t("./$.export");
r(r.S, "Reflect", {
has: function(t, e) {
return e in t
}
})
}
, {
"./$.export": 22
}],
162: [function(t, e, i) {
var r = t("./$.export")
, n = t("./$.an-object")
, s = Object.isExtensible;
r(r.S, "Reflect", {
isExtensible: function(t) {
return n(t),
!s || s(t)
}
})
}
, {
"./$.an-object": 4,
"./$.export": 22
}],
163: [function(t, e, i) {
var r = t("./$.export");
r(r.S, "Reflect", {
ownKeys: t("./$.own-keys")
})
}
, {
"./$.export": 22,
"./$.own-keys": 57
}],
164: [function(t, e, i) {
var r = t("./$.export")
, n = t("./$.an-object")
, s = Object.preventExtensions;
r(r.S, "Reflect", {
preventExtensions: function(t) {
n(t);
try {
return s && s(t),
!0
} catch (e) {
return !1
}
}
})
}
, {
"./$.an-object": 4,
"./$.export": 22
}],
165: [function(t, e, i) {
var r = t("./$.export")
, n = t("./$.set-proto");
n && r(r.S, "Reflect", {
setPrototypeOf: function(t, e) {
n.check(t, e);
try {
return n.set(t, e),
!0
} catch (i) {
return !1
}
}
})
}
, {
"./$.export": 22,
"./$.set-proto": 65
}],
166: [function(t, e, i) {
function r(t, e, i) {
var o, c, h = arguments.length < 4 ? t : arguments[3], f = n.getDesc(l(t), e);
if (!f) {
if (u(c = n.getProto(t)))
return r(c, e, i, h);
f = a(0)
}
return s(f, "value") ? !(f.writable === !1 || !u(h)) && (o = n.getDesc(h, e) || a(0),
o.value = i,
n.setDesc(h, e, o),
!0) : void 0 !== f.set && (f.set.call(h, i),
!0)
}
var n = t("./$")
, s = t("./$.has")
, o = t("./$.export")
, a = t("./$.property-desc")
, l = t("./$.an-object")
, u = t("./$.is-object");
o(o.S, "Reflect", {
set: r
})
}
, {
"./$": 46,
"./$.an-object": 4,
"./$.export": 22,
"./$.has": 30,
"./$.is-object": 38,
"./$.property-desc": 60
}],
167: [function(t, e, i) {
var r = t("./$")
, n = t("./$.global")
, s = t("./$.is-regexp")
, o = t("./$.flags")
, a = n.RegExp
, l = a
, u = a.prototype
, c = /a/g
, h = /a/g
, f = new a(c) !== c;
!t("./$.descriptors") || f && !t("./$.fails")(function() {
return h[t("./$.wks")("match")] = !1,
a(c) != c || a(h) == h || "/a/i" != a(c, "i")
}) || (a = function(t, e) {
var i = s(t)
, r = void 0 === e;
return this instanceof a || !i || t.constructor !== a || !r ? f ? new l(i && !r ? t.source : t,e) : l((i = t instanceof a) ? t.source : t, i && r ? o.call(t) : e) : t
}
,
r.each.call(r.getNames(l), function(t) {
t in a || r.setDesc(a, t, {
configurable: !0,
get: function() {
return l[t]
},
set: function(e) {
l[t] = e
}
})
}),
u.constructor = a,
a.prototype = u,
t("./$.redefine")(n, "RegExp", a)),
t("./$.set-species")("RegExp")
}
, {
"./$": 46,
"./$.descriptors": 19,
"./$.fails": 24,
"./$.flags": 26,
"./$.global": 29,
"./$.is-regexp": 39,
"./$.redefine": 62,
"./$.set-species": 66,
"./$.wks": 84
}],
168: [function(t, e, i) {
var r = t("./$");
t("./$.descriptors") && "g" != /./g.flags && r.setDesc(RegExp.prototype, "flags", {
configurable: !0,
get: t("./$.flags")
})
}
, {
"./$": 46,
"./$.descriptors": 19,
"./$.flags": 26
}],
169: [function(t, e, i) {
t("./$.fix-re-wks")("match", 1, function(t, e) {
return function(i) {
"use strict";
var r = t(this)
, n = void 0 == i ? void 0 : i[e];
return void 0 !== n ? n.call(i, r) : new RegExp(i)[e](String(r))
}
})
}
, {
"./$.fix-re-wks": 25
}],
170: [function(t, e, i) {
t("./$.fix-re-wks")("replace", 2, function(t, e, i) {
return function(r, n) {
"use strict";
var s = t(this)
, o = void 0 == r ? void 0 : r[e];
return void 0 !== o ? o.call(r, s, n) : i.call(String(s), r, n)
}
})
}
, {
"./$.fix-re-wks": 25
}],
171: [function(t, e, i) {
t("./$.fix-re-wks")("search", 1, function(t, e) {
return function(i) {
"use strict";
var r = t(this)
, n = void 0 == i ? void 0 : i[e];
return void 0 !== n ? n.call(i, r) : new RegExp(i)[e](String(r))
}
})
}
, {
"./$.fix-re-wks": 25
}],
172: [function(t, e, i) {
t("./$.fix-re-wks")("split", 2, function(t, e, i) {
return function(r, n) {
"use strict";
var s = t(this)
, o = void 0 == r ? void 0 : r[e];
return void 0 !== o ? o.call(r, s, n) : i.call(String(s), r, n)
}
})
}
, {
"./$.fix-re-wks": 25
}],
173: [function(t, e, i) {
"use strict";
var r = t("./$.collection-strong");
t("./$.collection")("Set", function(t) {
return function() {
return t(this, arguments.length > 0 ? arguments[0] : void 0)
}
}, {
add: function(t) {
return r.def(this, t = 0 === t ? 0 : t, t)
}
}, r)
}
, {
"./$.collection": 15,
"./$.collection-strong": 12
}],
174: [function(t, e, i) {
"use strict";
var r = t("./$.export")
, n = t("./$.string-at")(!1);
r(r.P, "String", {
codePointAt: function(t) {
return n(this, t)
}
})
}
, {
"./$.export": 22,
"./$.string-at": 71
}],
175: [function(t, e, i) {
"use strict";
var r = t("./$.export")
, n = t("./$.to-length")
, s = t("./$.string-context")
, o = "endsWith"
, a = ""[o];
r(r.P + r.F * t("./$.fails-is-regexp")(o), "String", {
endsWith: function(t) {
var e = s(this, t, o)
, i = arguments
, r = i.length > 1 ? i[1] : void 0
, l = n(e.length)
, u = void 0 === r ? l : Math.min(n(r), l)
, c = String(t);
return a ? a.call(e, c, u) : e.slice(u - c.length, u) === c
}
})
}
, {
"./$.export": 22,
"./$.fails-is-regexp": 23,
"./$.string-context": 72,
"./$.to-length": 80
}],
176: [function(t, e, i) {
var r = t("./$.export")
, n = t("./$.to-index")
, s = String.fromCharCode
, o = String.fromCodePoint;
r(r.S + r.F * (!!o && 1 != o.length), "String", {
fromCodePoint: function(t) {
for (var e, i = [], r = arguments, o = r.length, a = 0; o > a; ) {
if (e = +r[a++],
n(e, 1114111) !== e)
throw RangeError(e + " is not a valid code point");
i.push(e < 65536 ? s(e) : s(((e -= 65536) >> 10) + 55296, e % 1024 + 56320))
}
return i.join("")
}
})
}
, {
"./$.export": 22,
"./$.to-index": 77
}],
177: [function(t, e, i) {
"use strict";
var r = t("./$.export")
, n = t("./$.string-context")
, s = "includes";
r(r.P + r.F * t("./$.fails-is-regexp")(s), "String", {
includes: function(t) {
return !!~n(this, t, s).indexOf(t, arguments.length > 1 ? arguments[1] : void 0)
}
})
}
, {
"./$.export": 22,
"./$.fails-is-regexp": 23,
"./$.string-context": 72
}],
178: [function(t, e, i) {
"use strict";
var r = t("./$.string-at")(!0);
t("./$.iter-define")(String, "String", function(t) {
this._t = String(t),
this._i = 0
}, function() {
var t, e = this._t, i = this._i;
return i >= e.length ? {
value: void 0,
done: !0
} : (t = r(e, i),
this._i += t.length,
{
value: t,
done: !1
})
})
}
, {
"./$.iter-define": 42,
"./$.string-at": 71
}],
179: [function(t, e, i) {
var r = t("./$.export")
, n = t("./$.to-iobject")
, s = t("./$.to-length");
r(r.S, "String", {
raw: function(t) {
for (var e = n(t.raw), i = s(e.length), r = arguments, o = r.length, a = [], l = 0; i > l; )
a.push(String(e[l++])),
l < o && a.push(String(r[l]));
return a.join("")
}
})
}
, {
"./$.export": 22,
"./$.to-iobject": 79,
"./$.to-length": 80
}],
180: [function(t, e, i) {
var r = t("./$.export");
r(r.P, "String", {
repeat: t("./$.string-repeat")
})
}
, {
"./$.export": 22,
"./$.string-repeat": 74
}],
181: [function(t, e, i) {
"use strict";
var r = t("./$.export")
, n = t("./$.to-length")
, s = t("./$.string-context")
, o = "startsWith"
, a = ""[o];
r(r.P + r.F * t("./$.fails-is-regexp")(o), "String", {
startsWith: function(t) {
var e = s(this, t, o)
, i = arguments
, r = n(Math.min(i.length > 1 ? i[1] : void 0, e.length))
, l = String(t);
return a ? a.call(e, l, r) : e.slice(r, r + l.length) === l
}
})
}
, {
"./$.export": 22,
"./$.fails-is-regexp": 23,
"./$.string-context": 72,
"./$.to-length": 80
}],
182: [function(t, e, i) {
"use strict";
t("./$.string-trim")("trim", function(t) {
return function() {
return t(this, 3)
}
})
}
, {
"./$.string-trim": 75
}],
183: [function(t, e, i) {
"use strict";
var r = t("./$")
, n = t("./$.global")
, s = t("./$.has")
, o = t("./$.descriptors")
, a = t("./$.export")
, l = t("./$.redefine")
, u = t("./$.fails")
, c = t("./$.shared")
, h = t("./$.set-to-string-tag")
, f = t("./$.uid")
, p = t("./$.wks")
, d = t("./$.keyof")
, m = t("./$.get-names")
, _ = t("./$.enum-keys")
, g = t("./$.is-array")
, v = t("./$.an-object")
, y = t("./$.to-iobject")
, x = t("./$.property-desc")
, $ = r.getDesc
, b = r.setDesc
, w = r.create
, T = m.get
, P = n.Symbol
, S = n.JSON
, O = S && S.stringify
, j = !1
, k = p("_hidden")
, R = r.isEnum
, A = c("symbol-registry")
, M = c("symbols")
, C = "function" == typeof P
, D = Object.prototype
, F = o && u(function() {
return 7 != w(b({}, "a", {
get: function() {
return b(this, "a", {
value: 7
}).a
}
})).a
}) ? function(t, e, i) {
var r = $(D, e);
r && delete D[e],
b(t, e, i),
r && t !== D && b(D, e, r)
}
: b
, E = function(t) {
var e = M[t] = w(P.prototype);
return e._k = t,
o && j && F(D, t, {
configurable: !0,
set: function(e) {
s(this, k) && s(this[k], t) && (this[k][t] = !1),
F(this, t, x(1, e))
}
}),
e
}
, I = function(t) {
return "symbol" == typeof t
}
, N = function(t, e, i) {
return i && s(M, e) ? (i.enumerable ? (s(t, k) && t[k][e] && (t[k][e] = !1),
i = w(i, {
enumerable: x(0, !1)
})) : (s(t, k) || b(t, k, x(1, {})),
t[k][e] = !0),
F(t, e, i)) : b(t, e, i)
}
, z = function(t, e) {
v(t);
for (var i, r = _(e = y(e)), n = 0, s = r.length; s > n; )
N(t, i = r[n++], e[i]);
return t
}
, L = function(t, e) {
return void 0 === e ? w(t) : z(w(t), e)
}
, B = function(t) {
var e = R.call(this, t);
return !(e || !s(this, t) || !s(M, t) || s(this, k) && this[k][t]) || e
}
, X = function(t, e) {
var i = $(t = y(t), e);
return !i || !s(M, e) || s(t, k) && t[k][e] || (i.enumerable = !0),
i
}
, U = function(t) {
for (var e, i = T(y(t)), r = [], n = 0; i.length > n; )
s(M, e = i[n++]) || e == k || r.push(e);
return r
}
, Y = function(t) {
for (var e, i = T(y(t)), r = [], n = 0; i.length > n; )
s(M, e = i[n++]) && r.push(M[e]);
return r
}
, G = function(t) {
if (void 0 !== t && !I(t)) {
for (var e, i, r = [t], n = 1, s = arguments; s.length > n; )
r.push(s[n++]);
return e = r[1],
"function" == typeof e && (i = e),
!i && g(e) || (e = function(t, e) {
if (i && (e = i.call(this, t, e)),
!I(e))
return e
}
),
r[1] = e,
O.apply(S, r)
}
}
, q = u(function() {
var t = P();
return "[null]" != O([t]) || "{}" != O({
a: t
}) || "{}" != O(Object(t))
});
C || (P = function() {
if (I(this))
throw TypeError("Symbol is not a constructor");
return E(f(arguments.length > 0 ? arguments[0] : void 0));
}
,
l(P.prototype, "toString", function() {
return this._k
}),
I = function(t) {
return t instanceof P
}
,
r.create = L,
r.isEnum = B,
r.getDesc = X,
r.setDesc = N,
r.setDescs = z,
r.getNames = m.get = U,
r.getSymbols = Y,
o && !t("./$.library") && l(D, "propertyIsEnumerable", B, !0));
var W = {
"for": function(t) {
return s(A, t += "") ? A[t] : A[t] = P(t)
},
keyFor: function(t) {
return d(A, t)
},
useSetter: function() {
j = !0
},
useSimple: function() {
j = !1
}
};
r.each.call("hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","), function(t) {
var e = p(t);
W[t] = C ? e : E(e)
}),
j = !0,
a(a.G + a.W, {
Symbol: P
}),
a(a.S, "Symbol", W),
a(a.S + a.F * !C, "Object", {
create: L,
defineProperty: N,
defineProperties: z,
getOwnPropertyDescriptor: X,
getOwnPropertyNames: U,
getOwnPropertySymbols: Y
}),
S && a(a.S + a.F * (!C || q), "JSON", {
stringify: G
}),
h(P, "Symbol"),
h(Math, "Math", !0),
h(n.JSON, "JSON", !0)
}
, {
"./$": 46,
"./$.an-object": 4,
"./$.descriptors": 19,
"./$.enum-keys": 21,
"./$.export": 22,
"./$.fails": 24,
"./$.get-names": 28,
"./$.global": 29,
"./$.has": 30,
"./$.is-array": 36,
"./$.keyof": 47,
"./$.library": 48,
"./$.property-desc": 60,
"./$.redefine": 62,
"./$.set-to-string-tag": 67,
"./$.shared": 68,
"./$.to-iobject": 79,
"./$.uid": 83,
"./$.wks": 84
}],
184: [function(t, e, i) {
"use strict";
var r = t("./$")
, n = t("./$.redefine")
, s = t("./$.collection-weak")
, o = t("./$.is-object")
, a = t("./$.has")
, l = s.frozenStore
, u = s.WEAK
, c = Object.isExtensible || o
, h = {}
, f = t("./$.collection")("WeakMap", function(t) {
return function() {
return t(this, arguments.length > 0 ? arguments[0] : void 0)
}
}, {
get: function(t) {
if (o(t)) {
if (!c(t))
return l(this).get(t);
if (a(t, u))
return t[u][this._i]
}
},
set: function(t, e) {
return s.def(this, t, e)
}
}, s, !0, !0);
7 != (new f).set((Object.freeze || Object)(h), 7).get(h) && r.each.call(["delete", "has", "get", "set"], function(t) {
var e = f.prototype
, i = e[t];
n(e, t, function(e, r) {
if (o(e) && !c(e)) {
var n = l(this)[t](e, r);
return "set" == t ? this : n
}
return i.call(this, e, r)
})
})
}
, {
"./$": 46,
"./$.collection": 15,
"./$.collection-weak": 14,
"./$.has": 30,
"./$.is-object": 38,
"./$.redefine": 62
}],
185: [function(t, e, i) {
"use strict";
var r = t("./$.collection-weak");
t("./$.collection")("WeakSet", function(t) {
return function() {
return t(this, arguments.length > 0 ? arguments[0] : void 0)
}
}, {
add: function(t) {
return r.def(this, t, !0)
}
}, r, !1, !0)
}
, {
"./$.collection": 15,
"./$.collection-weak": 14
}],
186: [function(t, e, i) {
"use strict";
var r = t("./$.export")
, n = t("./$.array-includes")(!0);
r(r.P, "Array", {
includes: function(t) {
return n(this, t, arguments.length > 1 ? arguments[1] : void 0)
}
}),
t("./$.add-to-unscopables")("includes")
}
, {
"./$.add-to-unscopables": 3,
"./$.array-includes": 7,
"./$.export": 22
}],
187: [function(t, e, i) {
var r = t("./$.export");
r(r.P, "Map", {
toJSON: t("./$.collection-to-json")("Map")
})
}
, {
"./$.collection-to-json": 13,
"./$.export": 22
}],
188: [function(t, e, i) {
var r = t("./$.export")
, n = t("./$.object-to-array")(!0);
r(r.S, "Object", {
entries: function(t) {
return n(t)
}
})
}
, {
"./$.export": 22,
"./$.object-to-array": 56
}],
189: [function(t, e, i) {
var r = t("./$")
, n = t("./$.export")
, s = t("./$.own-keys")
, o = t("./$.to-iobject")
, a = t("./$.property-desc");
n(n.S, "Object", {
getOwnPropertyDescriptors: function(t) {
for (var e, i, n = o(t), l = r.setDesc, u = r.getDesc, c = s(n), h = {}, f = 0; c.length > f; )
i = u(n, e = c[f++]),
e in h ? l(h, e, a(0, i)) : h[e] = i;
return h
}
})
}
, {
"./$": 46,
"./$.export": 22,
"./$.own-keys": 57,
"./$.property-desc": 60,
"./$.to-iobject": 79
}],
190: [function(t, e, i) {
var r = t("./$.export")
, n = t("./$.object-to-array")(!1);
r(r.S, "Object", {
values: function(t) {
return n(t)
}
})
}
, {
"./$.export": 22,
"./$.object-to-array": 56
}],
191: [function(t, e, i) {
var r = t("./$.export")
, n = t("./$.replacer")(/[\\^$*+?.()|[\]{}]/g, "\\$&");
r(r.S, "RegExp", {
escape: function(t) {
return n(t)
}
})
}
, {
"./$.export": 22,
"./$.replacer": 63
}],
192: [function(t, e, i) {
var r = t("./$.export");
r(r.P, "Set", {
toJSON: t("./$.collection-to-json")("Set")
})
}
, {
"./$.collection-to-json": 13,
"./$.export": 22
}],
193: [function(t, e, i) {
"use strict";
var r = t("./$.export")
, n = t("./$.string-at")(!0);
r(r.P, "String", {
at: function(t) {
return n(this, t)
}
})
}
, {
"./$.export": 22,
"./$.string-at": 71
}],
194: [function(t, e, i) {
"use strict";
var r = t("./$.export")
, n = t("./$.string-pad");
r(r.P, "String", {
padLeft: function(t) {
return n(this, t, arguments.length > 1 ? arguments[1] : void 0, !0)
}
})
}
, {
"./$.export": 22,
"./$.string-pad": 73
}],
195: [function(t, e, i) {
"use strict";
var r = t("./$.export")
, n = t("./$.string-pad");
r(r.P, "String", {
padRight: function(t) {
return n(this, t, arguments.length > 1 ? arguments[1] : void 0, !1)
}
})
}
, {
"./$.export": 22,
"./$.string-pad": 73
}],
196: [function(t, e, i) {
"use strict";
t("./$.string-trim")("trimLeft", function(t) {
return function() {
return t(this, 1)
}
})
}
, {
"./$.string-trim": 75
}],
197: [function(t, e, i) {
"use strict";
t("./$.string-trim")("trimRight", function(t) {
return function() {
return t(this, 2)
}
})
}
, {
"./$.string-trim": 75
}],
198: [function(t, e, i) {
var r = t("./$")
, n = t("./$.export")
, s = t("./$.ctx")
, o = t("./$.core").Array || Array
, a = {}
, l = function(t, e) {
r.each.call(t.split(","), function(t) {
void 0 == e && t in o ? a[t] = o[t] : t in [] && (a[t] = s(Function.call, [][t], e))
})
};
l("pop,reverse,shift,keys,values,entries", 1),
l("indexOf,every,some,forEach,map,filter,find,findIndex,includes", 3),
l("join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill"),
n(n.S, "Array", a)
}
, {
"./$": 46,
"./$.core": 16,
"./$.ctx": 17,
"./$.export": 22
}],
199: [function(t, e, i) {
t("./es6.array.iterator");
var r = t("./$.global")
, n = t("./$.hide")
, s = t("./$.iterators")
, o = t("./$.wks")("iterator")
, a = r.NodeList
, l = r.HTMLCollection
, u = a && a.prototype
, c = l && l.prototype
, h = s.NodeList = s.HTMLCollection = s.Array;
u && !u[o] && n(u, o, h),
c && !c[o] && n(c, o, h)
}
, {
"./$.global": 29,
"./$.hide": 31,
"./$.iterators": 45,
"./$.wks": 84,
"./es6.array.iterator": 105
}],
200: [function(t, e, i) {
var r = t("./$.export")
, n = t("./$.task");
r(r.G + r.B, {
setImmediate: n.set,
clearImmediate: n.clear
})
}
, {
"./$.export": 22,
"./$.task": 76
}],
201: [function(t, e, i) {
var r = t("./$.global")
, n = t("./$.export")
, s = t("./$.invoke")
, o = t("./$.partial")
, a = r.navigator
, l = !!a && /MSIE .\./.test(a.userAgent)
, u = function(t) {
return l ? function(e, i) {
return t(s(o, [].slice.call(arguments, 2), "function" == typeof e ? e : Function(e)), i)
}
: t
};
n(n.G + n.B + n.F * l, {
setTimeout: u(r.setTimeout),
setInterval: u(r.setInterval)
})
}
, {
"./$.export": 22,
"./$.global": 29,
"./$.invoke": 33,
"./$.partial": 58
}],
202: [function(t, e, i) {
t("./modules/es5"),
t("./modules/es6.symbol"),
t("./modules/es6.object.assign"),
t("./modules/es6.object.is"),
t("./modules/es6.object.set-prototype-of"),
t("./modules/es6.object.to-string"),
t("./modules/es6.object.freeze"),
t("./modules/es6.object.seal"),
t("./modules/es6.object.prevent-extensions"),
t("./modules/es6.object.is-frozen"),
t("./modules/es6.object.is-sealed"),
t("./modules/es6.object.is-extensible"),
t("./modules/es6.object.get-own-property-descriptor"),
t("./modules/es6.object.get-prototype-of"),
t("./modules/es6.object.keys"),
t("./modules/es6.object.get-own-property-names"),
t("./modules/es6.function.name"),
t("./modules/es6.function.has-instance"),
t("./modules/es6.number.constructor"),
t("./modules/es6.number.epsilon"),
t("./modules/es6.number.is-finite"),
t("./modules/es6.number.is-integer"),
t("./modules/es6.number.is-nan"),
t("./modules/es6.number.is-safe-integer"),
t("./modules/es6.number.max-safe-integer"),
t("./modules/es6.number.min-safe-integer"),
t("./modules/es6.number.parse-float"),
t("./modules/es6.number.parse-int"),
t("./modules/es6.math.acosh"),
t("./modules/es6.math.asinh"),
t("./modules/es6.math.atanh"),
t("./modules/es6.math.cbrt"),
t("./modules/es6.math.clz32"),
t("./modules/es6.math.cosh"),
t("./modules/es6.math.expm1"),
t("./modules/es6.math.fround"),
t("./modules/es6.math.hypot"),
t("./modules/es6.math.imul"),
t("./modules/es6.math.log10"),
t("./modules/es6.math.log1p"),
t("./modules/es6.math.log2"),
t("./modules/es6.math.sign"),
t("./modules/es6.math.sinh"),
t("./modules/es6.math.tanh"),
t("./modules/es6.math.trunc"),
t("./modules/es6.string.from-code-point"),
t("./modules/es6.string.raw"),
t("./modules/es6.string.trim"),
t("./modules/es6.string.iterator"),
t("./modules/es6.string.code-point-at"),
t("./modules/es6.string.ends-with"),
t("./modules/es6.string.includes"),
t("./modules/es6.string.repeat"),
t("./modules/es6.string.starts-with"),
t("./modules/es6.array.from"),
t("./modules/es6.array.of"),
t("./modules/es6.array.iterator"),
t("./modules/es6.array.species"),
t("./modules/es6.array.copy-within"),
t("./modules/es6.array.fill"),
t("./modules/es6.array.find"),
t("./modules/es6.array.find-index"),
t("./modules/es6.regexp.constructor"),
t("./modules/es6.regexp.flags"),
t("./modules/es6.regexp.match"),
t("./modules/es6.regexp.replace"),
t("./modules/es6.regexp.search"),
t("./modules/es6.regexp.split"),
t("./modules/es6.promise"),
t("./modules/es6.map"),
t("./modules/es6.set"),
t("./modules/es6.weak-map"),
t("./modules/es6.weak-set"),
t("./modules/es6.reflect.apply"),
t("./modules/es6.reflect.construct"),
t("./modules/es6.reflect.define-property"),
t("./modules/es6.reflect.delete-property"),
t("./modules/es6.reflect.enumerate"),
t("./modules/es6.reflect.get"),
t("./modules/es6.reflect.get-own-property-descriptor"),
t("./modules/es6.reflect.get-prototype-of"),
t("./modules/es6.reflect.has"),
t("./modules/es6.reflect.is-extensible"),
t("./modules/es6.reflect.own-keys"),
t("./modules/es6.reflect.prevent-extensions"),
t("./modules/es6.reflect.set"),
t("./modules/es6.reflect.set-prototype-of"),
t("./modules/es7.array.includes"),
t("./modules/es7.string.at"),
t("./modules/es7.string.pad-left"),
t("./modules/es7.string.pad-right"),
t("./modules/es7.string.trim-left"),
t("./modules/es7.string.trim-right"),
t("./modules/es7.regexp.escape"),
t("./modules/es7.object.get-own-property-descriptors"),
t("./modules/es7.object.values"),
t("./modules/es7.object.entries"),
t("./modules/es7.map.to-json"),
t("./modules/es7.set.to-json"),
t("./modules/js.array.statics"),
t("./modules/web.timers"),
t("./modules/web.immediate"),
t("./modules/web.dom.iterable"),
e.exports = t("./modules/$.core")
}
, {
"./modules/$.core": 16,
"./modules/es5": 99,
"./modules/es6.array.copy-within": 100,
"./modules/es6.array.fill": 101,
"./modules/es6.array.find": 103,
"./modules/es6.array.find-index": 102,
"./modules/es6.array.from": 104,
"./modules/es6.array.iterator": 105,
"./modules/es6.array.of": 106,
"./modules/es6.array.species": 107,
"./modules/es6.function.has-instance": 108,
"./modules/es6.function.name": 109,
"./modules/es6.map": 110,
"./modules/es6.math.acosh": 111,
"./modules/es6.math.asinh": 112,
"./modules/es6.math.atanh": 113,
"./modules/es6.math.cbrt": 114,
"./modules/es6.math.clz32": 115,
"./modules/es6.math.cosh": 116,
"./modules/es6.math.expm1": 117,
"./modules/es6.math.fround": 118,
"./modules/es6.math.hypot": 119,
"./modules/es6.math.imul": 120,
"./modules/es6.math.log10": 121,
"./modules/es6.math.log1p": 122,
"./modules/es6.math.log2": 123,
"./modules/es6.math.sign": 124,
"./modules/es6.math.sinh": 125,
"./modules/es6.math.tanh": 126,
"./modules/es6.math.trunc": 127,
"./modules/es6.number.constructor": 128,
"./modules/es6.number.epsilon": 129,
"./modules/es6.number.is-finite": 130,
"./modules/es6.number.is-integer": 131,
"./modules/es6.number.is-nan": 132,
"./modules/es6.number.is-safe-integer": 133,
"./modules/es6.number.max-safe-integer": 134,
"./modules/es6.number.min-safe-integer": 135,
"./modules/es6.number.parse-float": 136,
"./modules/es6.number.parse-int": 137,
"./modules/es6.object.assign": 138,
"./modules/es6.object.freeze": 139,
"./modules/es6.object.get-own-property-descriptor": 140,
"./modules/es6.object.get-own-property-names": 141,
"./modules/es6.object.get-prototype-of": 142,
"./modules/es6.object.is": 146,
"./modules/es6.object.is-extensible": 143,
"./modules/es6.object.is-frozen": 144,
"./modules/es6.object.is-sealed": 145,
"./modules/es6.object.keys": 147,
"./modules/es6.object.prevent-extensions": 148,
"./modules/es6.object.seal": 149,
"./modules/es6.object.set-prototype-of": 150,
"./modules/es6.object.to-string": 151,
"./modules/es6.promise": 152,
"./modules/es6.reflect.apply": 153,
"./modules/es6.reflect.construct": 154,
"./modules/es6.reflect.define-property": 155,
"./modules/es6.reflect.delete-property": 156,
"./modules/es6.reflect.enumerate": 157,
"./modules/es6.reflect.get": 160,
"./modules/es6.reflect.get-own-property-descriptor": 158,
"./modules/es6.reflect.get-prototype-of": 159,
"./modules/es6.reflect.has": 161,
"./modules/es6.reflect.is-extensible": 162,
"./modules/es6.reflect.own-keys": 163,
"./modules/es6.reflect.prevent-extensions": 164,
"./modules/es6.reflect.set": 166,
"./modules/es6.reflect.set-prototype-of": 165,
"./modules/es6.regexp.constructor": 167,
"./modules/es6.regexp.flags": 168,
"./modules/es6.regexp.match": 169,
"./modules/es6.regexp.replace": 170,
"./modules/es6.regexp.search": 171,
"./modules/es6.regexp.split": 172,
"./modules/es6.set": 173,
"./modules/es6.string.code-point-at": 174,
"./modules/es6.string.ends-with": 175,
"./modules/es6.string.from-code-point": 176,
"./modules/es6.string.includes": 177,
"./modules/es6.string.iterator": 178,
"./modules/es6.string.raw": 179,
"./modules/es6.string.repeat": 180,
"./modules/es6.string.starts-with": 181,
"./modules/es6.string.trim": 182,
"./modules/es6.symbol": 183,
"./modules/es6.weak-map": 184,
"./modules/es6.weak-set": 185,
"./modules/es7.array.includes": 186,
"./modules/es7.map.to-json": 187,
"./modules/es7.object.entries": 188,
"./modules/es7.object.get-own-property-descriptors": 189,
"./modules/es7.object.values": 190,
"./modules/es7.regexp.escape": 191,
"./modules/es7.set.to-json": 192,
"./modules/es7.string.at": 193,
"./modules/es7.string.pad-left": 194,
"./modules/es7.string.pad-right": 195,
"./modules/es7.string.trim-left": 196,
"./modules/es7.string.trim-right": 197,
"./modules/js.array.statics": 198,
"./modules/web.dom.iterable": 199,
"./modules/web.immediate": 200,
"./modules/web.timers": 201
}],
203: [function(t, e, i) {
(function(t) {
var i = "undefined" != typeof e && e.exports && "undefined" != typeof t ? t : this || window;
(i._gsQueue || (i._gsQueue = [])).push(function() {
"use strict";
i._gsDefine("TweenMax", ["core.Animation", "core.SimpleTimeline", "TweenLite"], function(t, e, i) {
var r = function(t) {
var e, i = [], r = t.length;
for (e = 0; e !== r; i.push(t[e++]))
;
return i
}
, n = function(t, e, i) {
var r, n, s = t.cycle;
for (r in s)
n = s[r],
t[r] = "function" == typeof n ? n(i, e[i]) : n[i % n.length];
delete t.cycle
}
, s = function(t, e, r) {
i.call(this, t, e, r),
this._cycle = 0,
this._yoyo = this.vars.yoyo === !0,
this._repeat = this.vars.repeat || 0,
this._repeatDelay = this.vars.repeatDelay || 0,
this._dirty = !0,
this.render = s.prototype.render
}
, o = 1e-10
, a = i._internals
, l = a.isSelector
, u = a.isArray
, c = s.prototype = i.to({}, .1, {})
, h = [];
s.version = "1.19.1",
c.constructor = s,
c.kill()._gc = !1,
s.killTweensOf = s.killDelayedCallsTo = i.killTweensOf,
s.getTweensOf = i.getTweensOf,
s.lagSmoothing = i.lagSmoothing,
s.ticker = i.ticker,
s.render = i.render,
c.invalidate = function() {
return this._yoyo = this.vars.yoyo === !0,
this._repeat = this.vars.repeat || 0,
this._repeatDelay = this.vars.repeatDelay || 0,
this._uncache(!0),
i.prototype.invalidate.call(this)
}
,
c.updateTo = function(t, e) {
var r, n = this.ratio, s = this.vars.immediateRender || t.immediateRender;
e && this._startTime < this._timeline._time && (this._startTime = this._timeline._time,
this._uncache(!1),
this._gc ? this._enabled(!0, !1) : this._timeline.insert(this, this._startTime - this._delay));
for (r in t)
this.vars[r] = t[r];
if (this._initted || s)
if (e)
this._initted = !1,
s && this.render(0, !0, !0);
else if (this._gc && this._enabled(!0, !1),
this._notifyPluginsOfEnabled && this._firstPT && i._onPluginEvent("_onDisable", this),
this._time / this._duration > .998) {
var o = this._totalTime;
this.render(0, !0, !1),
this._initted = !1,
this.render(o, !0, !1)
} else if (this._initted = !1,
this._init(),
this._time > 0 || s)
for (var a, l = 1 / (1 - n), u = this._firstPT; u; )
a = u.s + u.c,
u.c *= l,
u.s = a - u.c,
u = u._next;
return this
}
,
c.render = function(t, e, i) {
this._initted || 0 === this._duration && this.vars.repeat && this.invalidate();
var r, n, s, l, u, c, h, f, p = this._dirty ? this.totalDuration() : this._totalDuration, d = this._time, m = this._totalTime, _ = this._cycle, g = this._duration, v = this._rawPrevTime;
if (t >= p - 1e-7 && t >= 0 ? (this._totalTime = p,
this._cycle = this._repeat,
this._yoyo && 0 !== (1 & this._cycle) ? (this._time = 0,
this.ratio = this._ease._calcEnd ? this._ease.getRatio(0) : 0) : (this._time = g,
this.ratio = this._ease._calcEnd ? this._ease.getRatio(1) : 1),
this._reversed || (r = !0,
n = "onComplete",
i = i || this._timeline.autoRemoveChildren),
0 === g && (this._initted || !this.vars.lazy || i) && (this._startTime === this._timeline._duration && (t = 0),
(v < 0 || t <= 0 && t >= -1e-7 || v === o && "isPause" !== this.data) && v !== t && (i = !0,
v > o && (n = "onReverseComplete")),
this._rawPrevTime = f = !e || t || v === t ? t : o)) : t < 1e-7 ? (this._totalTime = this._time = this._cycle = 0,
this.ratio = this._ease._calcEnd ? this._ease.getRatio(0) : 0,
(0 !== m || 0 === g && v > 0) && (n = "onReverseComplete",
r = this._reversed),
t < 0 && (this._active = !1,
0 === g && (this._initted || !this.vars.lazy || i) && (v >= 0 && (i = !0),
this._rawPrevTime = f = !e || t || v === t ? t : o)),
this._initted || (i = !0)) : (this._totalTime = this._time = t,
0 !== this._repeat && (l = g + this._repeatDelay,
this._cycle = this._totalTime / l >> 0,
0 !== this._cycle && this._cycle === this._totalTime / l && m <= t && this._cycle--,
this._time = this._totalTime - this._cycle * l,
this._yoyo && 0 !== (1 & this._cycle) && (this._time = g - this._time),
this._time > g ? this._time = g : this._time < 0 && (this._time = 0)),
this._easeType ? (u = this._time / g,
c = this._easeType,
h = this._easePower,
(1 === c || 3 === c && u >= .5) && (u = 1 - u),
3 === c && (u *= 2),
1 === h ? u *= u : 2 === h ? u *= u * u : 3 === h ? u *= u * u * u : 4 === h && (u *= u * u * u * u),
1 === c ? this.ratio = 1 - u : 2 === c ? this.ratio = u : this._time / g < .5 ? this.ratio = u / 2 : this.ratio = 1 - u / 2) : this.ratio = this._ease.getRatio(this._time / g)),
d === this._time && !i && _ === this._cycle)
return void (m !== this._totalTime && this._onUpdate && (e || this._callback("onUpdate")));
if (!this._initted) {
if (this._init(),
!this._initted || this._gc)
return;
if (!i && this._firstPT && (this.vars.lazy !== !1 && this._duration || this.vars.lazy && !this._duration))
return this._time = d,
this._totalTime = m,
this._rawPrevTime = v,
this._cycle = _,
a.lazyTweens.push(this),
void (this._lazy = [t, e]);
this._time && !r ? this.ratio = this._ease.getRatio(this._time / g) : r && this._ease._calcEnd && (this.ratio = this._ease.getRatio(0 === this._time ? 0 : 1))
}
for (this._lazy !== !1 && (this._lazy = !1),
this._active || !this._paused && this._time !== d && t >= 0 && (this._active = !0),
0 === m && (2 === this._initted && t > 0 && this._init(),
this._startAt && (t >= 0 ? this._startAt.render(t, e, i) : n || (n = "_dummyGS")),
this.vars.onStart && (0 === this._totalTime && 0 !== g || e || this._callback("onStart"))),
s = this._firstPT; s; )
s.f ? s.t[s.p](s.c * this.ratio + s.s) : s.t[s.p] = s.c * this.ratio + s.s,
s = s._next;
this._onUpdate && (t < 0 && this._startAt && this._startTime && this._startAt.render(t, e, i),
e || (this._totalTime !== m || n) && this._callback("onUpdate")),
this._cycle !== _ && (e || this._gc || this.vars.onRepeat && this._callback("onRepeat")),
n && (this._gc && !i || (t < 0 && this._startAt && !this._onUpdate && this._startTime && this._startAt.render(t, e, i),
r && (this._timeline.autoRemoveChildren && this._enabled(!1, !1),
this._active = !1),
!e && this.vars[n] && this._callback(n),
0 === g && this._rawPrevTime === o && f !== o && (this._rawPrevTime = 0)))
}
,
s.to = function(t, e, i) {
return new s(t,e,i)
}
,
s.from = function(t, e, i) {
return i.runBackwards = !0,
i.immediateRender = 0 != i.immediateRender,
new s(t,e,i)
}
,
s.fromTo = function(t, e, i, r) {
return r.startAt = i,
r.immediateRender = 0 != r.immediateRender && 0 != i.immediateRender,
new s(t,e,r)
}
,
s.staggerTo = s.allTo = function(t, e, o, a, c, f, p) {
a = a || 0;
var d, m, _, g, v = 0, y = [], x = function() {
o.onComplete && o.onComplete.apply(o.onCompleteScope || this, arguments),
c.apply(p || o.callbackScope || this, f || h)
}, $ = o.cycle, b = o.startAt && o.startAt.cycle;
for (u(t) || ("string" == typeof t && (t = i.selector(t) || t),
l(t) && (t = r(t))),
t = t || [],
a < 0 && (t = r(t),
t.reverse(),
a *= -1),
d = t.length - 1,
_ = 0; _ <= d; _++) {
m = {};
for (g in o)
m[g] = o[g];
if ($ && (n(m, t, _),
null != m.duration && (e = m.duration,
delete m.duration)),
b) {
b = m.startAt = {};
for (g in o.startAt)
b[g] = o.startAt[g];
n(m.startAt, t, _)
}
m.delay = v + (m.delay || 0),
_ === d && c && (m.onComplete = x),
y[_] = new s(t[_],e,m),
v += a
}
return y
}
,
s.staggerFrom = s.allFrom = function(t, e, i, r, n, o, a) {
return i.runBackwards = !0,
i.immediateRender = 0 != i.immediateRender,
s.staggerTo(t, e, i, r, n, o, a)
}
,
s.staggerFromTo = s.allFromTo = function(t, e, i, r, n, o, a, l) {
return r.startAt = i,
r.immediateRender = 0 != r.immediateRender && 0 != i.immediateRender,
s.staggerTo(t, e, r, n, o, a, l)
}
,
s.delayedCall = function(t, e, i, r, n) {
return new s(e,0,{
delay: t,
onComplete: e,
onCompleteParams: i,
callbackScope: r,
onReverseComplete: e,
onReverseCompleteParams: i,
immediateRender: !1,
useFrames: n,
overwrite: 0
})
}
,
s.set = function(t, e) {
return new s(t,0,e)
}
,
s.isTweening = function(t) {
return i.getTweensOf(t, !0).length > 0
}
;
var f = function(t, e) {
for (var r = [], n = 0, s = t._first; s; )
s instanceof i ? r[n++] = s : (e && (r[n++] = s),
r = r.concat(f(s, e)),
n = r.length),
s = s._next;
return r
}
, p = s.getAllTweens = function(e) {
return f(t._rootTimeline, e).concat(f(t._rootFramesTimeline, e))
}
;
s.killAll = function(t, i, r, n) {
null == i && (i = !0),
null == r && (r = !0);
var s, o, a, l = p(0 != n), u = l.length, c = i && r && n;
for (a = 0; a < u; a++)
o = l[a],
(c || o instanceof e || (s = o.target === o.vars.onComplete) && r || i && !s) && (t ? o.totalTime(o._reversed ? 0 : o.totalDuration()) : o._enabled(!1, !1))
}
,
s.killChildTweensOf = function(t, e) {
if (null != t) {
var n, o, c, h, f, p = a.tweenLookup;
if ("string" == typeof t && (t = i.selector(t) || t),
l(t) && (t = r(t)),
u(t))
for (h = t.length; --h > -1; )
s.killChildTweensOf(t[h], e);
else {
n = [];
for (c in p)
for (o = p[c].target.parentNode; o; )
o === t && (n = n.concat(p[c].tweens)),
o = o.parentNode;
for (f = n.length,
h = 0; h < f; h++)
e && n[h].totalTime(n[h].totalDuration()),
n[h]._enabled(!1, !1)
}
}
}
;
var d = function(t, i, r, n) {
i = i !== !1,
r = r !== !1,
n = n !== !1;
for (var s, o, a = p(n), l = i && r && n, u = a.length; --u > -1; )
o = a[u],
(l || o instanceof e || (s = o.target === o.vars.onComplete) && r || i && !s) && o.paused(t)
};
return s.pauseAll = function(t, e, i) {
d(!0, t, e, i)
}
,
s.resumeAll = function(t, e, i) {
d(!1, t, e, i)
}
,
s.globalTimeScale = function(e) {
var r = t._rootTimeline
, n = i.ticker.time;
return arguments.length ? (e = e || o,
r._startTime = n - (n - r._startTime) * r._timeScale / e,
r = t._rootFramesTimeline,
n = i.ticker.frame,
r._startTime = n - (n - r._startTime) * r._timeScale / e,
r._timeScale = t._rootTimeline._timeScale = e,
e) : r._timeScale
}
,
c.progress = function(t, e) {
return arguments.length ? this.totalTime(this.duration() * (this._yoyo && 0 !== (1 & this._cycle) ? 1 - t : t) + this._cycle * (this._duration + this._repeatDelay), e) : this._time / this.duration()
}
,
c.totalProgress = function(t, e) {
return arguments.length ? this.totalTime(this.totalDuration() * t, e) : this._totalTime / this.totalDuration()
}
,
c.time = function(t, e) {
return arguments.length ? (this._dirty && this.totalDuration(),
t > this._duration && (t = this._duration),
this._yoyo && 0 !== (1 & this._cycle) ? t = this._duration - t + this._cycle * (this._duration + this._repeatDelay) : 0 !== this._repeat && (t += this._cycle * (this._duration + this._repeatDelay)),
this.totalTime(t, e)) : this._time
}
,
c.duration = function(e) {
return arguments.length ? t.prototype.duration.call(this, e) : this._duration
}
,
c.totalDuration = function(t) {
return arguments.length ? this._repeat === -1 ? this : this.duration((t - this._repeat * this._repeatDelay) / (this._repeat + 1)) : (this._dirty && (this._totalDuration = this._repeat === -1 ? 999999999999 : this._duration * (this._repeat + 1) + this._repeatDelay * this._repeat,
this._dirty = !1),
this._totalDuration)
}
,
c.repeat = function(t) {
return arguments.length ? (this._repeat = t,
this._uncache(!0)) : this._repeat
}
,
c.repeatDelay = function(t) {
return arguments.length ? (this._repeatDelay = t,
this._uncache(!0)) : this._repeatDelay
}
,
c.yoyo = function(t) {
return arguments.length ? (this._yoyo = t,
this) : this._yoyo
}
,
s
}, !0),
i._gsDefine("TimelineLite", ["core.Animation", "core.SimpleTimeline", "TweenLite"], function(t, e, r) {
var n = function(t) {
e.call(this, t),
this._labels = {},
this.autoRemoveChildren = this.vars.autoRemoveChildren === !0,
this.smoothChildTiming = this.vars.smoothChildTiming === !0,
this._sortChildren = !0,
this._onUpdate = this.vars.onUpdate;
var i, r, n = this.vars;
for (r in n)
i = n[r],
u(i) && i.join("").indexOf("{self}") !== -1 && (n[r] = this._swapSelfInParams(i));
u(n.tweens) && this.add(n.tweens, 0, n.align, n.stagger)
}
, s = 1e-10
, o = r._internals
, a = n._internals = {}
, l = o.isSelector
, u = o.isArray
, c = o.lazyTweens
, h = o.lazyRender
, f = i._gsDefine.globals
, p = function(t) {
var e, i = {};
for (e in t)
i[e] = t[e];
return i
}
, d = function(t, e, i) {
var r, n, s = t.cycle;
for (r in s)
n = s[r],
t[r] = "function" == typeof n ? n(i, e[i]) : n[i % n.length];
delete t.cycle
}
, m = a.pauseCallback = function() {}
, _ = function(t) {
var e, i = [], r = t.length;
for (e = 0; e !== r; i.push(t[e++]))
;
return i
}
, g = n.prototype = new e;
return n.version = "1.19.1",
g.constructor = n,
g.kill()._gc = g._forcingPlayhead = g._hasPause = !1,
g.to = function(t, e, i, n) {
var s = i.repeat && f.TweenMax || r;
return e ? this.add(new s(t,e,i), n) : this.set(t, i, n)
}
,
g.from = function(t, e, i, n) {
return this.add((i.repeat && f.TweenMax || r).from(t, e, i), n)
}
,
g.fromTo = function(t, e, i, n, s) {
var o = n.repeat && f.TweenMax || r;
return e ? this.add(o.fromTo(t, e, i, n), s) : this.set(t, n, s)
}
,
g.staggerTo = function(t, e, i, s, o, a, u, c) {
var h, f, m = new n({
onComplete: a,
onCompleteParams: u,
callbackScope: c,
smoothChildTiming: this.smoothChildTiming
}), g = i.cycle;
for ("string" == typeof t && (t = r.selector(t) || t),
t = t || [],
l(t) && (t = _(t)),
s = s || 0,
s < 0 && (t = _(t),
t.reverse(),
s *= -1),
f = 0; f < t.length; f++)
h = p(i),
h.startAt && (h.startAt = p(h.startAt),
h.startAt.cycle && d(h.startAt, t, f)),
g && (d(h, t, f),
null != h.duration && (e = h.duration,
delete h.duration)),
m.to(t[f], e, h, f * s);
return this.add(m, o)
}
,
g.staggerFrom = function(t, e, i, r, n, s, o, a) {
return i.immediateRender = 0 != i.immediateRender,
i.runBackwards = !0,
this.staggerTo(t, e, i, r, n, s, o, a)
}
,
g.staggerFromTo = function(t, e, i, r, n, s, o, a, l) {
return r.startAt = i,
r.immediateRender = 0 != r.immediateRender && 0 != i.immediateRender,
this.staggerTo(t, e, r, n, s, o, a, l)
}
,
g.call = function(t, e, i, n) {
return this.add(r.delayedCall(0, t, e, i), n)
}
,
g.set = function(t, e, i) {
return i = this._parseTimeOrLabel(i, 0, !0),
null == e.immediateRender && (e.immediateRender = i === this._time && !this._paused),
this.add(new r(t,0,e), i)
}
,
n.exportRoot = function(t, e) {
t = t || {},
null == t.smoothChildTiming && (t.smoothChildTiming = !0);
var i, s, o = new n(t), a = o._timeline;
for (null == e && (e = !0),
a._remove(o, !0),
o._startTime = 0,
o._rawPrevTime = o._time = o._totalTime = a._time,
i = a._first; i; )
s = i._next,
e && i instanceof r && i.target === i.vars.onComplete || o.add(i, i._startTime - i._delay),
i = s;
return a.add(o, 0),
o
}
,
g.add = function(i, s, o, a) {
var l, c, h, f, p, d;
if ("number" != typeof s && (s = this._parseTimeOrLabel(s, 0, !0, i)),
!(i instanceof t)) {
if (i instanceof Array || i && i.push && u(i)) {
for (o = o || "normal",
a = a || 0,
l = s,
c = i.length,
h = 0; h < c; h++)
u(f = i[h]) && (f = new n({
tweens: f
})),
this.add(f, l),
"string" != typeof f && "function" != typeof f && ("sequence" === o ? l = f._startTime + f.totalDuration() / f._timeScale : "start" === o && (f._startTime -= f.delay())),
l += a;
return this._uncache(!0)
}
if ("string" == typeof i)
return this.addLabel(i, s);
if ("function" != typeof i)
throw "Cannot add " + i + " into the timeline; it is not a tween, timeline, function, or string.";
i = r.delayedCall(0, i)
}
if (e.prototype.add.call(this, i, s),
(this._gc || this._time === this._duration) && !this._paused && this._duration < this.duration())
for (p = this,
d = p.rawTime() > i._startTime; p._timeline; )
d && p._timeline.smoothChildTiming ? p.totalTime(p._totalTime, !0) : p._gc && p._enabled(!0, !1),
p = p._timeline;
return this
}
,
g.remove = function(e) {
if (e instanceof t) {
this._remove(e, !1);
var i = e._timeline = e.vars.useFrames ? t._rootFramesTimeline : t._rootTimeline;
return e._startTime = (e._paused ? e._pauseTime : i._time) - (e._reversed ? e.totalDuration() - e._totalTime : e._totalTime) / e._timeScale,
this
}
if (e instanceof Array || e && e.push && u(e)) {
for (var r = e.length; --r > -1; )
this.remove(e[r]);
return this
}
return "string" == typeof e ? this.removeLabel(e) : this.kill(null, e)
}
,
g._remove = function(t, i) {
e.prototype._remove.call(this, t, i);
var r = this._last;
return r ? this._time > this.duration() && (this._time = this._duration,
this._totalTime = this._totalDuration) : this._time = this._totalTime = this._duration = this._totalDuration = 0,
this
}
,
g.append = function(t, e) {
return this.add(t, this._parseTimeOrLabel(null, e, !0, t))
}
,
g.insert = g.insertMultiple = function(t, e, i, r) {
return this.add(t, e || 0, i, r)
}
,
g.appendMultiple = function(t, e, i, r) {
return this.add(t, this._parseTimeOrLabel(null, e, !0, t), i, r)
}
,
g.addLabel = function(t, e) {
return this._labels[t] = this._parseTimeOrLabel(e),
this
}
,
g.addPause = function(t, e, i, n) {
var s = r.delayedCall(0, m, i, n || this);
return s.vars.onComplete = s.vars.onReverseComplete = e,
s.data = "isPause",
this._hasPause = !0,
this.add(s, t)
}
,
g.removeLabel = function(t) {
return delete this._labels[t],
this
}
,
g.getLabelTime = function(t) {
return null != this._labels[t] ? this._labels[t] : -1
}
,
g._parseTimeOrLabel = function(e, i, r, n) {
var s;
if (n instanceof t && n.timeline === this)
this.remove(n);
else if (n && (n instanceof Array || n.push && u(n)))
for (s = n.length; --s > -1; )
n[s]instanceof t && n[s].timeline === this && this.remove(n[s]);
if ("string" == typeof i)
return this._parseTimeOrLabel(i, r && "number" == typeof e && null == this._labels[i] ? e - this.duration() : 0, r);
if (i = i || 0,
"string" != typeof e || !isNaN(e) && null == this._labels[e])
null == e && (e = this.duration());
else {
if (s = e.indexOf("="),
s === -1)
return null == this._labels[e] ? r ? this._labels[e] = this.duration() + i : i : this._labels[e] + i;
i = parseInt(e.charAt(s - 1) + "1", 10) * Number(e.substr(s + 1)),
e = s > 1 ? this._parseTimeOrLabel(e.substr(0, s - 1), 0, r) : this.duration()
}
return Number(e) + i
}
,
g.seek = function(t, e) {
return this.totalTime("number" == typeof t ? t : this._parseTimeOrLabel(t), e !== !1)
}
,
g.stop = function() {
return this.paused(!0)
}
,
g.gotoAndPlay = function(t, e) {
return this.play(t, e)
}
,
g.gotoAndStop = function(t, e) {
return this.pause(t, e)
}
,
g.render = function(t, e, i) {
this._gc && this._enabled(!0, !1);
var r, n, o, a, l, u, f, p = this._dirty ? this.totalDuration() : this._totalDuration, d = this._time, m = this._startTime, _ = this._timeScale, g = this._paused;
if (t >= p - 1e-7 && t >= 0)
this._totalTime = this._time = p,
this._reversed || this._hasPausedChild() || (n = !0,
a = "onComplete",
l = !!this._timeline.autoRemoveChildren,
0 === this._duration && (t <= 0 && t >= -1e-7 || this._rawPrevTime < 0 || this._rawPrevTime === s) && this._rawPrevTime !== t && this._first && (l = !0,
this._rawPrevTime > s && (a = "onReverseComplete"))),
this._rawPrevTime = this._duration || !e || t || this._rawPrevTime === t ? t : s,
t = p + 1e-4;
else if (t < 1e-7)
if (this._totalTime = this._time = 0,
(0 !== d || 0 === this._duration && this._rawPrevTime !== s && (this._rawPrevTime > 0 || t < 0 && this._rawPrevTime >= 0)) && (a = "onReverseComplete",
n = this._reversed),
t < 0)
this._active = !1,
this._timeline.autoRemoveChildren && this._reversed ? (l = n = !0,
a = "onReverseComplete") : this._rawPrevTime >= 0 && this._first && (l = !0),
this._rawPrevTime = t;
else {
if (this._rawPrevTime = this._duration || !e || t || this._rawPrevTime === t ? t : s,
0 === t && n)
for (r = this._first; r && 0 === r._startTime; )
r._duration || (n = !1),
r = r._next;
t = 0,
this._initted || (l = !0)
}
else {
if (this._hasPause && !this._forcingPlayhead && !e) {
if (t >= d)
for (r = this._first; r && r._startTime <= t && !u; )
r._duration || "isPause" !== r.data || r.ratio || 0 === r._startTime && 0 === this._rawPrevTime || (u = r),
r = r._next;
else
for (r = this._last; r && r._startTime >= t && !u; )
r._duration || "isPause" === r.data && r._rawPrevTime > 0 && (u = r),
r = r._prev;
u && (this._time = t = u._startTime,
this._totalTime = t + this._cycle * (this._totalDuration + this._repeatDelay))
}
this._totalTime = this._time = this._rawPrevTime = t
}
if (this._time !== d && this._first || i || l || u) {
if (this._initted || (this._initted = !0),
this._active || !this._paused && this._time !== d && t > 0 && (this._active = !0),
0 === d && this.vars.onStart && (0 === this._time && this._duration || e || this._callback("onStart")),
f = this._time,
f >= d)
for (r = this._first; r && (o = r._next,
f === this._time && (!this._paused || g)); )
(r._active || r._startTime <= f && !r._paused && !r._gc) && (u === r && this.pause(),
r._reversed ? r.render((r._dirty ? r.totalDuration() : r._totalDuration) - (t - r._startTime) * r._timeScale, e, i) : r.render((t - r._startTime) * r._timeScale, e, i)),
r = o;
else
for (r = this._last; r && (o = r._prev,
f === this._time && (!this._paused || g)); ) {
if (r._active || r._startTime <= d && !r._paused && !r._gc) {
if (u === r) {
for (u = r._prev; u && u.endTime() > this._time; )
u.render(u._reversed ? u.totalDuration() - (t - u._startTime) * u._timeScale : (t - u._startTime) * u._timeScale, e, i),
u = u._prev;
u = null,
this.pause()
}
r._reversed ? r.render((r._dirty ? r.totalDuration() : r._totalDuration) - (t - r._startTime) * r._timeScale, e, i) : r.render((t - r._startTime) * r._timeScale, e, i)
}
r = o
}
this._onUpdate && (e || (c.length && h(),
this._callback("onUpdate"))),
a && (this._gc || m !== this._startTime && _ === this._timeScale || (0 === this._time || p >= this.totalDuration()) && (n && (c.length && h(),
this._timeline.autoRemoveChildren && this._enabled(!1, !1),
this._active = !1),
!e && this.vars[a] && this._callback(a)))
}
}
,
g._hasPausedChild = function() {
for (var t = this._first; t; ) {
if (t._paused || t instanceof n && t._hasPausedChild())
return !0;
t = t._next
}
return !1
}
,
g.getChildren = function(t, e, i, n) {
n = n || -9999999999;
for (var s = [], o = this._first, a = 0; o; )
o._startTime < n || (o instanceof r ? e !== !1 && (s[a++] = o) : (i !== !1 && (s[a++] = o),
t !== !1 && (s = s.concat(o.getChildren(!0, e, i)),
a = s.length))),
o = o._next;
return s
}
,
g.getTweensOf = function(t, e) {
var i, n, s = this._gc, o = [], a = 0;
for (s && this._enabled(!0, !0),
i = r.getTweensOf(t),
n = i.length; --n > -1; )
(i[n].timeline === this || e && this._contains(i[n])) && (o[a++] = i[n]);
return s && this._enabled(!1, !0),
o
}
,
g.recent = function() {
return this._recent
}
,
g._contains = function(t) {
for (var e = t.timeline; e; ) {
if (e === this)
return !0;
e = e.timeline
}
return !1
}
,
g.shiftChildren = function(t, e, i) {
i = i || 0;
for (var r, n = this._first, s = this._labels; n; )
n._startTime >= i && (n._startTime += t),
n = n._next;
if (e)
for (r in s)
s[r] >= i && (s[r] += t);
return this._uncache(!0)
}
,
g._kill = function(t, e) {
if (!t && !e)
return this._enabled(!1, !1);
for (var i = e ? this.getTweensOf(e) : this.getChildren(!0, !0, !1), r = i.length, n = !1; --r > -1; )
i[r]._kill(t, e) && (n = !0);
return n
}
,
g.clear = function(t) {
var e = this.getChildren(!1, !0, !0)
, i = e.length;
for (this._time = this._totalTime = 0; --i > -1; )
e[i]._enabled(!1, !1);
return t !== !1 && (this._labels = {}),
this._uncache(!0)
}
,
g.invalidate = function() {
for (var e = this._first; e; )
e.invalidate(),
e = e._next;
return t.prototype.invalidate.call(this)
}
,
g._enabled = function(t, i) {
if (t === this._gc)
for (var r = this._first; r; )
r._enabled(t, !0),
r = r._next;
return e.prototype._enabled.call(this, t, i)
}
,
g.totalTime = function(e, i, r) {
this._forcingPlayhead = !0;
var n = t.prototype.totalTime.apply(this, arguments);
return this._forcingPlayhead = !1,
n
}
,
g.duration = function(t) {
return arguments.length ? (0 !== this.duration() && 0 !== t && this.timeScale(this._duration / t),
this) : (this._dirty && this.totalDuration(),
this._duration)
}
,
g.totalDuration = function(t) {
if (!arguments.length) {
if (this._dirty) {
for (var e, i, r = 0, n = this._last, s = 999999999999; n; )
e = n._prev,
n._dirty && n.totalDuration(),
n._startTime > s && this._sortChildren && !n._paused ? this.add(n, n._startTime - n._delay) : s = n._startTime,
n._startTime < 0 && !n._paused && (r -= n._startTime,
this._timeline.smoothChildTiming && (this._startTime += n._startTime / this._timeScale),
this.shiftChildren(-n._startTime, !1, -9999999999),
s = 0),
i = n._startTime + n._totalDuration / n._timeScale,
i > r && (r = i),
n = e;
this._duration = this._totalDuration = r,
this._dirty = !1
}
return this._totalDuration
}
return t && this.totalDuration() ? this.timeScale(this._totalDuration / t) : this
}
,
g.paused = function(e) {
if (!e)
for (var i = this._first, r = this._time; i; )
i._startTime === r && "isPause" === i.data && (i._rawPrevTime = 0),
i = i._next;
return t.prototype.paused.apply(this, arguments)
}
,
g.usesFrames = function() {
for (var e = this._timeline; e._timeline; )
e = e._timeline;
return e === t._rootFramesTimeline
}
,
g.rawTime = function(t) {
return t && (this._paused || this._repeat && this.time() > 0 && this.totalProgress() < 1) ? this._totalTime % (this._duration + this._repeatDelay) : this._paused ? this._totalTime : (this._timeline.rawTime(t) - this._startTime) * this._timeScale
}
,
n
}, !0),
i._gsDefine("TimelineMax", ["TimelineLite", "TweenLite", "easing.Ease"], function(t, e, r) {
var n = function(e) {
t.call(this, e),
this._repeat = this.vars.repeat || 0,
this._repeatDelay = this.vars.repeatDelay || 0,
this._cycle = 0,
this._yoyo = this.vars.yoyo === !0,
this._dirty = !0
}
, s = 1e-10
, o = e._internals
, a = o.lazyTweens
, l = o.lazyRender
, u = i._gsDefine.globals
, c = new r(null,null,1,0)
, h = n.prototype = new t;
return h.constructor = n,
h.kill()._gc = !1,
n.version = "1.19.1",
h.invalidate = function() {
return this._yoyo = this.vars.yoyo === !0,
this._repeat = this.vars.repeat || 0,
this._repeatDelay = this.vars.repeatDelay || 0,
this._uncache(!0),
t.prototype.invalidate.call(this)
}
,
h.addCallback = function(t, i, r, n) {
return this.add(e.delayedCall(0, t, r, n), i)
}
,
h.removeCallback = function(t, e) {
if (t)
if (null == e)
this._kill(null, t);
else
for (var i = this.getTweensOf(t, !1), r = i.length, n = this._parseTimeOrLabel(e); --r > -1; )
i[r]._startTime === n && i[r]._enabled(!1, !1);
return this
}
,
h.removePause = function(e) {
return this.removeCallback(t._internals.pauseCallback, e)
}
,
h.tweenTo = function(t, i) {
i = i || {};
var r, n, s, o = {
ease: c,
useFrames: this.usesFrames(),
immediateRender: !1
}, a = i.repeat && u.TweenMax || e;
for (n in i)
o[n] = i[n];
return o.time = this._parseTimeOrLabel(t),
r = Math.abs(Number(o.time) - this._time) / this._timeScale || .001,
s = new a(this,r,o),
o.onStart = function() {
s.target.paused(!0),
s.vars.time !== s.target.time() && r === s.duration() && s.duration(Math.abs(s.vars.time - s.target.time()) / s.target._timeScale),
i.onStart && i.onStart.apply(i.onStartScope || i.callbackScope || s, i.onStartParams || [])
}
,
s
}
,
h.tweenFromTo = function(t, e, i) {
i = i || {},
t = this._parseTimeOrLabel(t),
i.startAt = {
onComplete: this.seek,
onCompleteParams: [t],
callbackScope: this
},
i.immediateRender = i.immediateRender !== !1;
var r = this.tweenTo(e, i);
return r.duration(Math.abs(r.vars.time - t) / this._timeScale || .001)
}
,
h.render = function(t, e, i) {
this._gc && this._enabled(!0, !1);
var r, n, o, u, c, h, f, p, d = this._dirty ? this.totalDuration() : this._totalDuration, m = this._duration, _ = this._time, g = this._totalTime, v = this._startTime, y = this._timeScale, x = this._rawPrevTime, $ = this._paused, b = this._cycle;
if (t >= d - 1e-7 && t >= 0)
this._locked || (this._totalTime = d,
this._cycle = this._repeat),
this._reversed || this._hasPausedChild() || (n = !0,
u = "onComplete",
c = !!this._timeline.autoRemoveChildren,
0 === this._duration && (t <= 0 && t >= -1e-7 || x < 0 || x === s) && x !== t && this._first && (c = !0,
x > s && (u = "onReverseComplete"))),
this._rawPrevTime = this._duration || !e || t || this._rawPrevTime === t ? t : s,
this._yoyo && 0 !== (1 & this._cycle) ? this._time = t = 0 : (this._time = m,
t = m + 1e-4);
else if (t < 1e-7)
if (this._locked || (this._totalTime = this._cycle = 0),
this._time = 0,
(0 !== _ || 0 === m && x !== s && (x > 0 || t < 0 && x >= 0) && !this._locked) && (u = "onReverseComplete",
n = this._reversed),
t < 0)
this._active = !1,
this._timeline.autoRemoveChildren && this._reversed ? (c = n = !0,
u = "onReverseComplete") : x >= 0 && this._first && (c = !0),
this._rawPrevTime = t;
else {
if (this._rawPrevTime = m || !e || t || this._rawPrevTime === t ? t : s,
0 === t && n)
for (r = this._first; r && 0 === r._startTime; )
r._duration || (n = !1),
r = r._next;
t = 0,
this._initted || (c = !0)
}
else if (0 === m && x < 0 && (c = !0),
this._time = this._rawPrevTime = t,
this._locked || (this._totalTime = t,
0 !== this._repeat && (h = m + this._repeatDelay,
this._cycle = this._totalTime / h >> 0,
0 !== this._cycle && this._cycle === this._totalTime / h && g <= t && this._cycle--,
this._time = this._totalTime - this._cycle * h,
this._yoyo && 0 !== (1 & this._cycle) && (this._time = m - this._time),
this._time > m ? (this._time = m,
t = m + 1e-4) : this._time < 0 ? this._time = t = 0 : t = this._time)),
this._hasPause && !this._forcingPlayhead && !e && t < m) {
if (t = this._time,
t >= _ || this._repeat && b !== this._cycle)
for (r = this._first; r && r._startTime <= t && !f; )
r._duration || "isPause" !== r.data || r.ratio || 0 === r._startTime && 0 === this._rawPrevTime || (f = r),
r = r._next;
else
for (r = this._last; r && r._startTime >= t && !f; )
r._duration || "isPause" === r.data && r._rawPrevTime > 0 && (f = r),
r = r._prev;
f && (this._time = t = f._startTime,
this._totalTime = t + this._cycle * (this._totalDuration + this._repeatDelay))
}
if (this._cycle !== b && !this._locked) {
var w = this._yoyo && 0 !== (1 & b)
, T = w === (this._yoyo && 0 !== (1 & this._cycle))
, P = this._totalTime
, S = this._cycle
, O = this._rawPrevTime
, j = this._time;
if (this._totalTime = b * m,
this._cycle < b ? w = !w : this._totalTime += m,
this._time = _,
this._rawPrevTime = 0 === m ? x - 1e-4 : x,
this._cycle = b,
this._locked = !0,
_ = w ? 0 : m,
this.render(_, e, 0 === m),
e || this._gc || this.vars.onRepeat && (this._cycle = S,
this._locked = !1,
this._callback("onRepeat")),
_ !== this._time)
return;
if (T && (this._cycle = b,
this._locked = !0,
_ = w ? m + 1e-4 : -1e-4,
this.render(_, !0, !1)),
this._locked = !1,
this._paused && !$)
return;
this._time = j,
this._totalTime = P,
this._cycle = S,
this._rawPrevTime = O
}
if (!(this._time !== _ && this._first || i || c || f))
return void (g !== this._totalTime && this._onUpdate && (e || this._callback("onUpdate")));
if (this._initted || (this._initted = !0),
this._active || !this._paused && this._totalTime !== g && t > 0 && (this._active = !0),
0 === g && this.vars.onStart && (0 === this._totalTime && this._totalDuration || e || this._callback("onStart")),
p = this._time,
p >= _)
for (r = this._first; r && (o = r._next,
p === this._time && (!this._paused || $)); )
(r._active || r._startTime <= this._time && !r._paused && !r._gc) && (f === r && this.pause(),
r._reversed ? r.render((r._dirty ? r.totalDuration() : r._totalDuration) - (t - r._startTime) * r._timeScale, e, i) : r.render((t - r._startTime) * r._timeScale, e, i)),
r = o;
else
for (r = this._last; r && (o = r._prev,
p === this._time && (!this._paused || $)); ) {
if (r._active || r._startTime <= _ && !r._paused && !r._gc) {
if (f === r) {
for (f = r._prev; f && f.endTime() > this._time; )
f.render(f._reversed ? f.totalDuration() - (t - f._startTime) * f._timeScale : (t - f._startTime) * f._timeScale, e, i),
f = f._prev;
f = null,
this.pause()
}
r._reversed ? r.render((r._dirty ? r.totalDuration() : r._totalDuration) - (t - r._startTime) * r._timeScale, e, i) : r.render((t - r._startTime) * r._timeScale, e, i)
}
r = o
}
this._onUpdate && (e || (a.length && l(),
this._callback("onUpdate"))),
u && (this._locked || this._gc || v !== this._startTime && y === this._timeScale || (0 === this._time || d >= this.totalDuration()) && (n && (a.length && l(),
this._timeline.autoRemoveChildren && this._enabled(!1, !1),
this._active = !1),
!e && this.vars[u] && this._callback(u)))
}
,
h.getActive = function(t, e, i) {
null == t && (t = !0),
null == e && (e = !0),
null == i && (i = !1);
var r, n, s = [], o = this.getChildren(t, e, i), a = 0, l = o.length;
for (r = 0; r < l; r++)
n = o[r],
n.isActive() && (s[a++] = n);
return s
}
,
h.getLabelAfter = function(t) {
t || 0 !== t && (t = this._time);
var e, i = this.getLabelsArray(), r = i.length;
for (e = 0; e < r; e++)
if (i[e].time > t)
return i[e].name;
return null
}
,
h.getLabelBefore = function(t) {
null == t && (t = this._time);
for (var e = this.getLabelsArray(), i = e.length; --i > -1; )
if (e[i].time < t)
return e[i].name;
return null
}
,
h.getLabelsArray = function() {
var t, e = [], i = 0;
for (t in this._labels)
e[i++] = {
time: this._labels[t],
name: t
};
return e.sort(function(t, e) {
return t.time - e.time
}),
e
}
,
h.invalidate = function() {
return this._locked = !1,
t.prototype.invalidate.call(this)
}
,
h.progress = function(t, e) {
return arguments.length ? this.totalTime(this.duration() * (this._yoyo && 0 !== (1 & this._cycle) ? 1 - t : t) + this._cycle * (this._duration + this._repeatDelay), e) : this._time / this.duration()
}
,
h.totalProgress = function(t, e) {
return arguments.length ? this.totalTime(this.totalDuration() * t, e) : this._totalTime / this.totalDuration()
}
,
h.totalDuration = function(e) {
return arguments.length ? this._repeat !== -1 && e ? this.timeScale(this.totalDuration() / e) : this : (this._dirty && (t.prototype.totalDuration.call(this),
this._totalDuration = this._repeat === -1 ? 999999999999 : this._duration * (this._repeat + 1) + this._repeatDelay * this._repeat),
this._totalDuration)
}
,
h.time = function(t, e) {
return arguments.length ? (this._dirty && this.totalDuration(),
t > this._duration && (t = this._duration),
this._yoyo && 0 !== (1 & this._cycle) ? t = this._duration - t + this._cycle * (this._duration + this._repeatDelay) : 0 !== this._repeat && (t += this._cycle * (this._duration + this._repeatDelay)),
this.totalTime(t, e)) : this._time
}
,
h.repeat = function(t) {
return arguments.length ? (this._repeat = t,
this._uncache(!0)) : this._repeat
}
,
h.repeatDelay = function(t) {
return arguments.length ? (this._repeatDelay = t,
this._uncache(!0)) : this._repeatDelay
}
,
h.yoyo = function(t) {
return arguments.length ? (this._yoyo = t,
this) : this._yoyo
}
,
h.currentLabel = function(t) {
return arguments.length ? this.seek(t, !0) : this.getLabelBefore(this._time + 1e-8)
}
,
n
}, !0),
function() {
var t = 180 / Math.PI
, e = []
, r = []
, n = []
, s = {}
, o = i._gsDefine.globals
, a = function(t, e, i, r) {
i === r && (i = r - (r - e) / 1e6),
t === e && (e = t + (i - t) / 1e6),
this.a = t,
this.b = e,
this.c = i,
this.d = r,
this.da = r - t,
this.ca = i - t,
this.ba = e - t
}
, l = ",x,y,z,left,top,right,bottom,marginTop,marginLeft,marginRight,marginBottom,paddingLeft,paddingTop,paddingRight,paddingBottom,backgroundPosition,backgroundPosition_y,"
, u = function(t, e, i, r) {
var n = {
a: t
}
, s = {}
, o = {}
, a = {
c: r
}
, l = (t + e) / 2
, u = (e + i) / 2
, c = (i + r) / 2
, h = (l + u) / 2
, f = (u + c) / 2
, p = (f - h) / 8;
return n.b = l + (t - l) / 4,
s.b = h + p,
n.c = s.a = (n.b + s.b) / 2,
s.c = o.a = (h + f) / 2,
o.b = f - p,
a.b = c + (r - c) / 4,
o.c = a.a = (o.b + a.b) / 2,
[n, s, o, a]
}
, c = function(t, i, s, o, a) {
var l, c, h, f, p, d, m, _, g, v, y, x, $, b = t.length - 1, w = 0, T = t[0].a;
for (l = 0; l < b; l++)
p = t[w],
c = p.a,
h = p.d,
f = t[w + 1].d,
a ? (y = e[l],
x = r[l],
$ = (x + y) * i * .25 / (o ? .5 : n[l] || .5),
d = h - (h - c) * (o ? .5 * i : 0 !== y ? $ / y : 0),
m = h + (f - h) * (o ? .5 * i : 0 !== x ? $ / x : 0),
_ = h - (d + ((m - d) * (3 * y / (y + x) + .5) / 4 || 0))) : (d = h - (h - c) * i * .5,
m = h + (f - h) * i * .5,
_ = h - (d + m) / 2),
d += _,
m += _,
p.c = g = d,
0 !== l ? p.b = T : p.b = T = p.a + .6 * (p.c - p.a),
p.da = h - c,
p.ca = g - c,
p.ba = T - c,
s ? (v = u(c, T, g, h),
t.splice(w, 1, v[0], v[1], v[2], v[3]),
w += 4) : w++,
T = m;
p = t[w],
p.b = T,
p.c = T + .4 * (p.d - T),
p.da = p.d - p.a,
p.ca = p.c - p.a,
p.ba = T - p.a,
s && (v = u(p.a, T, p.c, p.d),
t.splice(w, 1, v[0], v[1], v[2], v[3]))
}
, h = function(t, i, n, s) {
var o, l, u, c, h, f, p = [];
if (s)
for (t = [s].concat(t),
l = t.length; --l > -1; )
"string" == typeof (f = t[l][i]) && "=" === f.charAt(1) && (t[l][i] = s[i] + Number(f.charAt(0) + f.substr(2)));
if (o = t.length - 2,
o < 0)
return p[0] = new a(t[0][i],0,0,t[o < -1 ? 0 : 1][i]),
p;
for (l = 0; l < o; l++)
u = t[l][i],
c = t[l + 1][i],
p[l] = new a(u,0,0,c),
n && (h = t[l + 2][i],
e[l] = (e[l] || 0) + (c - u) * (c - u),
r[l] = (r[l] || 0) + (h - c) * (h - c));
return p[l] = new a(t[l][i],0,0,t[l + 1][i]),
p
}
, f = function(t, i, o, a, u, f) {
var p, d, m, _, g, v, y, x, $ = {}, b = [], w = f || t[0];
u = "string" == typeof u ? "," + u + "," : l,
null == i && (i = 1);
for (d in t[0])
b.push(d);
if (t.length > 1) {
for (x = t[t.length - 1],
y = !0,
p = b.length; --p > -1; )
if (d = b[p],
Math.abs(w[d] - x[d]) > .05) {
y = !1;
break
}
y && (t = t.concat(),
f && t.unshift(f),
t.push(t[1]),
f = t[t.length - 3])
}
for (e.length = r.length = n.length = 0,
p = b.length; --p > -1; )
d = b[p],
s[d] = u.indexOf("," + d + ",") !== -1,
$[d] = h(t, d, s[d], f);
for (p = e.length; --p > -1; )
e[p] = Math.sqrt(e[p]),
r[p] = Math.sqrt(r[p]);
if (!a) {
for (p = b.length; --p > -1; )
if (s[d])
for (m = $[b[p]],
v = m.length - 1,
_ = 0; _ < v; _++)
g = m[_ + 1].da / r[_] + m[_].da / e[_] || 0,
n[_] = (n[_] || 0) + g * g;
for (p = n.length; --p > -1; )
n[p] = Math.sqrt(n[p])
}
for (p = b.length,
_ = o ? 4 : 1; --p > -1; )
d = b[p],
m = $[d],
c(m, i, o, a, s[d]),
y && (m.splice(0, _),
m.splice(m.length - _, _));
return $
}
, p = function(t, e, i) {
e = e || "soft";
var r, n, s, o, l, u, c, h, f, p, d, m = {}, _ = "cubic" === e ? 3 : 2, g = "soft" === e, v = [];
if (g && i && (t = [i].concat(t)),
null == t || t.length < _ + 1)
throw "invalid Bezier data";
for (f in t[0])
v.push(f);
for (u = v.length; --u > -1; ) {
for (f = v[u],
m[f] = l = [],
p = 0,
h = t.length,
c = 0; c < h; c++)
r = null == i ? t[c][f] : "string" == typeof (d = t[c][f]) && "=" === d.charAt(1) ? i[f] + Number(d.charAt(0) + d.substr(2)) : Number(d),
g && c > 1 && c < h - 1 && (l[p++] = (r + l[p - 2]) / 2),
l[p++] = r;
for (h = p - _ + 1,
p = 0,
c = 0; c < h; c += _)
r = l[c],
n = l[c + 1],
s = l[c + 2],
o = 2 === _ ? 0 : l[c + 3],
l[p++] = d = 3 === _ ? new a(r,n,s,o) : new a(r,(2 * n + r) / 3,(2 * n + s) / 3,s);
l.length = p
}
return m
}
, d = function(t, e, i) {
for (var r, n, s, o, a, l, u, c, h, f, p, d = 1 / i, m = t.length; --m > -1; )
for (f = t[m],
s = f.a,
o = f.d - s,
a = f.c - s,
l = f.b - s,
r = n = 0,
c = 1; c <= i; c++)
u = d * c,
h = 1 - u,
r = n - (n = (u * u * o + 3 * h * (u * a + h * l)) * u),
p = m * i + c - 1,
e[p] = (e[p] || 0) + r * r
}
, m = function(t, e) {
e = e >> 0 || 6;
var i, r, n, s, o = [], a = [], l = 0, u = 0, c = e - 1, h = [], f = [];
for (i in t)
d(t[i], o, e);
for (n = o.length,
r = 0; r < n; r++)
l += Math.sqrt(o[r]),
s = r % e,
f[s] = l,
s === c && (u += l,
s = r / e >> 0,
h[s] = f,
a[s] = u,
l = 0,
f = []);
return {
length: u,
lengths: a,
segments: h
}
}
, _ = i._gsDefine.plugin({
propName: "bezier",
priority: -1,
version: "1.3.7",
API: 2,
global: !0,
init: function(t, e, i) {
this._target = t,
e instanceof Array && (e = {
values: e
}),
this._func = {},
this._mod = {},
this._props = [],
this._timeRes = null == e.timeResolution ? 6 : parseInt(e.timeResolution, 10);
var r, n, s, o, a, l = e.values || [], u = {}, c = l[0], h = e.autoRotate || i.vars.orientToBezier;
this._autoRotate = h ? h instanceof Array ? h : [["x", "y", "rotation", h === !0 ? 0 : Number(h) || 0]] : null;
for (r in c)
this._props.push(r);
for (s = this._props.length; --s > -1; )
r = this._props[s],
this._overwriteProps.push(r),
n = this._func[r] = "function" == typeof t[r],
u[r] = n ? t[r.indexOf("set") || "function" != typeof t["get" + r.substr(3)] ? r : "get" + r.substr(3)]() : parseFloat(t[r]),
a || u[r] !== l[0][r] && (a = u);
if (this._beziers = "cubic" !== e.type && "quadratic" !== e.type && "soft" !== e.type ? f(l, isNaN(e.curviness) ? 1 : e.curviness, !1, "thruBasic" === e.type, e.correlate, a) : p(l, e.type, u),
this._segCount = this._beziers[r].length,
this._timeRes) {
var d = m(this._beziers, this._timeRes);
this._length = d.length,
this._lengths = d.lengths,
this._segments = d.segments,
this._l1 = this._li = this._s1 = this._si = 0,
this._l2 = this._lengths[0],
this._curSeg = this._segments[0],
this._s2 = this._curSeg[0],
this._prec = 1 / this._curSeg.length
}
if (h = this._autoRotate)
for (this._initialRotations = [],
h[0]instanceof Array || (this._autoRotate = h = [h]),
s = h.length; --s > -1; ) {
for (o = 0; o < 3; o++)
r = h[s][o],
this._func[r] = "function" == typeof t[r] && t[r.indexOf("set") || "function" != typeof t["get" + r.substr(3)] ? r : "get" + r.substr(3)];
r = h[s][2],
this._initialRotations[s] = (this._func[r] ? this._func[r].call(this._target) : this._target[r]) || 0,
this._overwriteProps.push(r)
}
return this._startRatio = i.vars.runBackwards ? 1 : 0,
!0
},
set: function(e) {
var i, r, n, s, o, a, l, u, c, h, f = this._segCount, p = this._func, d = this._target, m = e !== this._startRatio;
if (this._timeRes) {
if (c = this._lengths,
h = this._curSeg,
e *= this._length,
n = this._li,
e > this._l2 && n < f - 1) {
for (u = f - 1; n < u && (this._l2 = c[++n]) <= e; )
;
this._l1 = c[n - 1],
this._li = n,
this._curSeg = h = this._segments[n],
this._s2 = h[this._s1 = this._si = 0]
} else if (e < this._l1 && n > 0) {
for (; n > 0 && (this._l1 = c[--n]) >= e; )
;
0 === n && e < this._l1 ? this._l1 = 0 : n++,
this._l2 = c[n],
this._li = n,
this._curSeg = h = this._segments[n],
this._s1 = h[(this._si = h.length - 1) - 1] || 0,
this._s2 = h[this._si]
}
if (i = n,
e -= this._l1,
n = this._si,
e > this._s2 && n < h.length - 1) {
for (u = h.length - 1; n < u && (this._s2 = h[++n]) <= e; )
;
this._s1 = h[n - 1],
this._si = n
} else if (e < this._s1 && n > 0) {
for (; n > 0 && (this._s1 = h[--n]) >= e; )
;
0 === n && e < this._s1 ? this._s1 = 0 : n++,
this._s2 = h[n],
this._si = n
}
a = (n + (e - this._s1) / (this._s2 - this._s1)) * this._prec || 0
} else
i = e < 0 ? 0 : e >= 1 ? f - 1 : f * e >> 0,
a = (e - i * (1 / f)) * f;
for (r = 1 - a,
n = this._props.length; --n > -1; )
s = this._props[n],
o = this._beziers[s][i],
l = (a * a * o.da + 3 * r * (a * o.ca + r * o.ba)) * a + o.a,
this._mod[s] && (l = this._mod[s](l, d)),
p[s] ? d[s](l) : d[s] = l;
if (this._autoRotate) {
var _, g, v, y, x, $, b, w = this._autoRotate;
for (n = w.length; --n > -1; )
s = w[n][2],
$ = w[n][3] || 0,
b = w[n][4] === !0 ? 1 : t,
o = this._beziers[w[n][0]],
_ = this._beziers[w[n][1]],
o && _ && (o = o[i],
_ = _[i],
g = o.a + (o.b - o.a) * a,
y = o.b + (o.c - o.b) * a,
g += (y - g) * a,
y += (o.c + (o.d - o.c) * a - y) * a,
v = _.a + (_.b - _.a) * a,
x = _.b + (_.c - _.b) * a,
v += (x - v) * a,
x += (_.c + (_.d - _.c) * a - x) * a,
l = m ? Math.atan2(x - v, y - g) * b + $ : this._initialRotations[n],
this._mod[s] && (l = this._mod[s](l, d)),
p[s] ? d[s](l) : d[s] = l)
}
}
})
, g = _.prototype;
_.bezierThrough = f,
_.cubicToQuadratic = u,
_._autoCSS = !0,
_.quadraticToCubic = function(t, e, i) {
return new a(t,(2 * e + t) / 3,(2 * e + i) / 3,i)
}
,
_._cssRegister = function() {
var t = o.CSSPlugin;
if (t) {
var e = t._internals
, i = e._parseToProxy
, r = e._setPluginRatio
, n = e.CSSPropTween;
e._registerComplexSpecialProp("bezier", {
parser: function(t, e, s, o, a, l) {
e instanceof Array && (e = {
values: e
}),
l = new _;
var u, c, h, f = e.values, p = f.length - 1, d = [], m = {};
if (p < 0)
return a;
for (u = 0; u <= p; u++)
h = i(t, f[u], o, a, l, p !== u),
d[u] = h.end;
for (c in e)
m[c] = e[c];
return m.values = d,
a = new n(t,"bezier",0,0,h.pt,2),
a.data = h,
a.plugin = l,
a.setRatio = r,
0 === m.autoRotate && (m.autoRotate = !0),
!m.autoRotate || m.autoRotate instanceof Array || (u = m.autoRotate === !0 ? 0 : Number(m.autoRotate),
m.autoRotate = null != h.end.left ? [["left", "top", "rotation", u, !1]] : null != h.end.x && [["x", "y", "rotation", u, !1]]),
m.autoRotate && (o._transform || o._enableTransforms(!1),
h.autoRotate = o._target._gsTransform,
h.proxy.rotation = h.autoRotate.rotation || 0,
o._overwriteProps.push("rotation")),
l._onInitTween(h.proxy, m, o._tween),
a
}
})
}
}
,
g._mod = function(t) {
for (var e, i = this._overwriteProps, r = i.length; --r > -1; )
e = t[i[r]],
e && "function" == typeof e && (this._mod[i[r]] = e)
}
,
g._kill = function(t) {
var e, i, r = this._props;
for (e in this._beziers)
if (e in t)
for (delete this._beziers[e],
delete this._func[e],
i = r.length; --i > -1; )
r[i] === e && r.splice(i, 1);
if (r = this._autoRotate)
for (i = r.length; --i > -1; )
t[r[i][2]] && r.splice(i, 1);
return this._super._kill.call(this, t)
}
}(),
i._gsDefine("plugins.CSSPlugin", ["plugins.TweenPlugin", "TweenLite"], function(t, e) {
var r, n, s, o, a = function() {
t.call(this, "css"),
this._overwriteProps.length = 0,
this.setRatio = a.prototype.setRatio
}, l = i._gsDefine.globals, u = {}, c = a.prototype = new t("css");
c.constructor = a,
a.version = "1.19.1",
a.API = 2,
a.defaultTransformPerspective = 0,
a.defaultSkewType = "compensated",
a.defaultSmoothOrigin = !0,
c = "px",
a.suffixMap = {
top: c,
right: c,
bottom: c,
left: c,
width: c,
height: c,
fontSize: c,
padding: c,
margin: c,
perspective: c,
lineHeight: ""
};
var h, f, p, d, m, _, g, v, y = /(?:\-|\.|\b)(\d|\.|e\-)+/g, x = /(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g, $ = /(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi, b = /(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g, w = /(?:\d|\-|\+|=|#|\.)*/g, T = /opacity *= *([^)]*)/i, P = /opacity:([^;]*)/i, S = /alpha\(opacity *=.+?\)/i, O = /^(rgb|hsl)/, j = /([A-Z])/g, k = /-([a-z])/gi, R = /(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi, A = function(t, e) {
return e.toUpperCase()
}, M = /(?:Left|Right|Width)/i, C = /(M11|M12|M21|M22)=[\d\-\.e]+/gi, D = /progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i, F = /,(?=[^\)]*(?:\(|$))/gi, E = /[\s,\(]/i, I = Math.PI / 180, N = 180 / Math.PI, z = {}, L = {
style: {}
}, B = i.document || {
createElement: function() {
return L
}
}, X = function(t, e) {
return B.createElementNS ? B.createElementNS(e || "http://www.w3.org/1999/xhtml", t) : B.createElement(t)
}, U = X("div"), Y = X("img"), G = a._internals = {
_specialProps: u
}, q = (i.navigator || {}).userAgent || "", W = function() {
var t = q.indexOf("Android")
, e = X("a");
return p = q.indexOf("Safari") !== -1 && q.indexOf("Chrome") === -1 && (t === -1 || parseFloat(q.substr(t + 8, 2)) > 3),
m = p && parseFloat(q.substr(q.indexOf("Version/") + 8, 2)) < 6,
d = q.indexOf("Firefox") !== -1,
(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(q) || /Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(q)) && (_ = parseFloat(RegExp.$1)),
!!e && (e.style.cssText = "top:1px;opacity:.55;",
/^0.55/.test(e.style.opacity))
}(), V = function(t) {
return T.test("string" == typeof t ? t : (t.currentStyle ? t.currentStyle.filter : t.style.filter) || "") ? parseFloat(RegExp.$1) / 100 : 1
}, Z = function(t) {
i.console && console.log(t)
}, K = "", H = "", Q = function(t, e) {
e = e || U;
var i, r, n = e.style;
if (void 0 !== n[t])
return t;
for (t = t.charAt(0).toUpperCase() + t.substr(1),
i = ["O", "Moz", "ms", "Ms", "Webkit"],
r = 5; --r > -1 && void 0 === n[i[r] + t]; )
;
return r >= 0 ? (H = 3 === r ? "ms" : i[r],
K = "-" + H.toLowerCase() + "-",
H + t) : null
}, J = B.defaultView ? B.defaultView.getComputedStyle : function() {}
, tt = a.getStyle = function(t, e, i, r, n) {
var s;
return W || "opacity" !== e ? (!r && t.style[e] ? s = t.style[e] : (i = i || J(t)) ? s = i[e] || i.getPropertyValue(e) || i.getPropertyValue(e.replace(j, "-$1").toLowerCase()) : t.currentStyle && (s = t.currentStyle[e]),
null == n || s && "none" !== s && "auto" !== s && "auto auto" !== s ? s : n) : V(t)
}
, et = G.convertToPixels = function(t, i, r, n, s) {
if ("px" === n || !n)
return r;
if ("auto" === n || !r)
return 0;
var o, l, u, c = M.test(i), h = t, f = U.style, p = r < 0, d = 1 === r;
if (p && (r = -r),
d && (r *= 100),
"%" === n && i.indexOf("border") !== -1)
o = r / 100 * (c ? t.clientWidth : t.clientHeight);
else {
if (f.cssText = "border:0 solid red;position:" + tt(t, "position") + ";line-height:0;",
"%" !== n && h.appendChild && "v" !== n.charAt(0) && "rem" !== n)
f[c ? "borderLeftWidth" : "borderTopWidth"] = r + n;
else {
if (h = t.parentNode || B.body,
l = h._gsCache,
u = e.ticker.frame,
l && c && l.time === u)
return l.width * r / 100;
f[c ? "width" : "height"] = r + n
}
h.appendChild(U),
o = parseFloat(U[c ? "offsetWidth" : "offsetHeight"]),
h.removeChild(U),
c && "%" === n && a.cacheWidths !== !1 && (l = h._gsCache = h._gsCache || {},
l.time = u,
l.width = o / r * 100),
0 !== o || s || (o = et(t, i, r, n, !0))
}
return d && (o /= 100),
p ? -o : o
}
, it = G.calculateOffset = function(t, e, i) {
if ("absolute" !== tt(t, "position", i))
return 0;
var r = "left" === e ? "Left" : "Top"
, n = tt(t, "margin" + r, i);
return t["offset" + r] - (et(t, e, parseFloat(n), n.replace(w, "")) || 0)
}
, rt = function(t, e) {
var i, r, n, s = {};
if (e = e || J(t, null))
if (i = e.length)
for (; --i > -1; )
n = e[i],
n.indexOf("-transform") !== -1 && Rt !== n || (s[n.replace(k, A)] = e.getPropertyValue(n));
else
for (i in e)
i.indexOf("Transform") !== -1 && kt !== i || (s[i] = e[i]);
else if (e = t.currentStyle || t.style)
for (i in e)
"string" == typeof i && void 0 === s[i] && (s[i.replace(k, A)] = e[i]);
return W || (s.opacity = V(t)),
r = Yt(t, e, !1),
s.rotation = r.rotation,
s.skewX = r.skewX,
s.scaleX = r.scaleX,
s.scaleY = r.scaleY,
s.x = r.x,
s.y = r.y,
Mt && (s.z = r.z,
s.rotationX = r.rotationX,
s.rotationY = r.rotationY,
s.scaleZ = r.scaleZ),
s.filters && delete s.filters,
s
}, nt = function(t, e, i, r, n) {
var s, o, a, l = {}, u = t.style;
for (o in i)
"cssText" !== o && "length" !== o && isNaN(o) && (e[o] !== (s = i[o]) || n && n[o]) && o.indexOf("Origin") === -1 && ("number" != typeof s && "string" != typeof s || (l[o] = "auto" !== s || "left" !== o && "top" !== o ? "" !== s && "auto" !== s && "none" !== s || "string" != typeof e[o] || "" === e[o].replace(b, "") ? s : 0 : it(t, o),
void 0 !== u[o] && (a = new yt(u,o,u[o],a))));
if (r)
for (o in r)
"className" !== o && (l[o] = r[o]);
return {
difs: l,
firstMPT: a
}
}, st = {
width: ["Left", "Right"],
height: ["Top", "Bottom"]
}, ot = ["marginLeft", "marginRight", "marginTop", "marginBottom"], at = function(t, e, i) {
if ("svg" === (t.nodeName + "").toLowerCase())
return (i || J(t))[e] || 0;
if (t.getCTM && Bt(t))
return t.getBBox()[e] || 0;
var r = parseFloat("width" === e ? t.offsetWidth : t.offsetHeight)
, n = st[e]
, s = n.length;
for (i = i || J(t, null); --s > -1; )
r -= parseFloat(tt(t, "padding" + n[s], i, !0)) || 0,
r -= parseFloat(tt(t, "border" + n[s] + "Width", i, !0)) || 0;
return r
}, lt = function(t, e) {
if ("contain" === t || "auto" === t || "auto auto" === t)
return t + " ";
null != t && "" !== t || (t = "0 0");
var i, r = t.split(" "), n = t.indexOf("left") !== -1 ? "0%" : t.indexOf("right") !== -1 ? "100%" : r[0], s = t.indexOf("top") !== -1 ? "0%" : t.indexOf("bottom") !== -1 ? "100%" : r[1];
if (r.length > 3 && !e) {
for (r = t.split(", ").join(",").split(","),
t = [],
i = 0; i < r.length; i++)
t.push(lt(r[i]));
return t.join(",")
}
return null == s ? s = "center" === n ? "50%" : "0" : "center" === s && (s = "50%"),
("center" === n || isNaN(parseFloat(n)) && (n + "").indexOf("=") === -1) && (n = "50%"),
t = n + " " + s + (r.length > 2 ? " " + r[2] : ""),
e && (e.oxp = n.indexOf("%") !== -1,
e.oyp = s.indexOf("%") !== -1,
e.oxr = "=" === n.charAt(1),
e.oyr = "=" === s.charAt(1),
e.ox = parseFloat(n.replace(b, "")),
e.oy = parseFloat(s.replace(b, "")),
e.v = t),
e || t
}, ut = function(t, e) {
return "function" == typeof t && (t = t(v, g)),
"string" == typeof t && "=" === t.charAt(1) ? parseInt(t.charAt(0) + "1", 10) * parseFloat(t.substr(2)) : parseFloat(t) - parseFloat(e) || 0
}, ct = function(t, e) {
return "function" == typeof t && (t = t(v, g)),
null == t ? e : "string" == typeof t && "=" === t.charAt(1) ? parseInt(t.charAt(0) + "1", 10) * parseFloat(t.substr(2)) + e : parseFloat(t) || 0
}, ht = function(t, e, i, r) {
var n, s, o, a, l, u = 1e-6;
return "function" == typeof t && (t = t(v, g)),
null == t ? a = e : "number" == typeof t ? a = t : (n = 360,
s = t.split("_"),
l = "=" === t.charAt(1),
o = (l ? parseInt(t.charAt(0) + "1", 10) * parseFloat(s[0].substr(2)) : parseFloat(s[0])) * (t.indexOf("rad") === -1 ? 1 : N) - (l ? 0 : e),
s.length && (r && (r[i] = e + o),
t.indexOf("short") !== -1 && (o %= n,
o !== o % (n / 2) && (o = o < 0 ? o + n : o - n)),
t.indexOf("_cw") !== -1 && o < 0 ? o = (o + 9999999999 * n) % n - (o / n | 0) * n : t.indexOf("ccw") !== -1 && o > 0 && (o = (o - 9999999999 * n) % n - (o / n | 0) * n)),
a = e + o),
a < u && a > -u && (a = 0),
a
}, ft = {
aqua: [0, 255, 255],
lime: [0, 255, 0],
silver: [192, 192, 192],
black: [0, 0, 0],
maroon: [128, 0, 0],
teal: [0, 128, 128],
blue: [0, 0, 255],
navy: [0, 0, 128],
white: [255, 255, 255],
fuchsia: [255, 0, 255],
olive: [128, 128, 0],
yellow: [255, 255, 0],
orange: [255, 165, 0],
gray: [128, 128, 128],
purple: [128, 0, 128],
green: [0, 128, 0],
red: [255, 0, 0],
pink: [255, 192, 203],
cyan: [0, 255, 255],
transparent: [255, 255, 255, 0]
}, pt = function(t, e, i) {
return t = t < 0 ? t + 1 : t > 1 ? t - 1 : t,
255 * (6 * t < 1 ? e + (i - e) * t * 6 : t < .5 ? i : 3 * t < 2 ? e + (i - e) * (2 / 3 - t) * 6 : e) + .5 | 0
}, dt = a.parseColor = function(t, e) {
var i, r, n, s, o, a, l, u, c, h, f;
if (t)
if ("number" == typeof t)
i = [t >> 16, t >> 8 & 255, 255 & t];
else {
if ("," === t.charAt(t.length - 1) && (t = t.substr(0, t.length - 1)),
ft[t])
i = ft[t];
else if ("#" === t.charAt(0))
4 === t.length && (r = t.charAt(1),
n = t.charAt(2),
s = t.charAt(3),
t = "#" + r + r + n + n + s + s),
t = parseInt(t.substr(1), 16),
i = [t >> 16, t >> 8 & 255, 255 & t];
else if ("hsl" === t.substr(0, 3))
if (i = f = t.match(y),
e) {
if (t.indexOf("=") !== -1)
return t.match(x)
} else
o = Number(i[0]) % 360 / 360,
a = Number(i[1]) / 100,
l = Number(i[2]) / 100,
n = l <= .5 ? l * (a + 1) : l + a - l * a,
r = 2 * l - n,
i.length > 3 && (i[3] = Number(t[3])),
i[0] = pt(o + 1 / 3, r, n),
i[1] = pt(o, r, n),
i[2] = pt(o - 1 / 3, r, n);
else
i = t.match(y) || ft.transparent;
i[0] = Number(i[0]),
i[1] = Number(i[1]),
i[2] = Number(i[2]),
i.length > 3 && (i[3] = Number(i[3]))
}
else
i = ft.black;
return e && !f && (r = i[0] / 255,
n = i[1] / 255,
s = i[2] / 255,
u = Math.max(r, n, s),
c = Math.min(r, n, s),
l = (u + c) / 2,
u === c ? o = a = 0 : (h = u - c,
a = l > .5 ? h / (2 - u - c) : h / (u + c),
o = u === r ? (n - s) / h + (n < s ? 6 : 0) : u === n ? (s - r) / h + 2 : (r - n) / h + 4,
o *= 60),
i[0] = o + .5 | 0,
i[1] = 100 * a + .5 | 0,
i[2] = 100 * l + .5 | 0),
i
}
, mt = function(t, e) {
var i, r, n, s = t.match(_t) || [], o = 0, a = s.length ? "" : t;
for (i = 0; i < s.length; i++)
r = s[i],
n = t.substr(o, t.indexOf(r, o) - o),
o += n.length + r.length,
r = dt(r, e),
3 === r.length && r.push(1),
a += n + (e ? "hsla(" + r[0] + "," + r[1] + "%," + r[2] + "%," + r[3] : "rgba(" + r.join(",")) + ")";
return a + t.substr(o)
}, _t = "(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3}){1,2}\\b";
for (c in ft)
_t += "|" + c + "\\b";
_t = new RegExp(_t + ")","gi"),
a.colorStringFilter = function(t) {
var e, i = t[0] + t[1];
_t.test(i) && (e = i.indexOf("hsl(") !== -1 || i.indexOf("hsla(") !== -1,
t[0] = mt(t[0], e),
t[1] = mt(t[1], e)),
_t.lastIndex = 0
}
,
e.defaultStringFilter || (e.defaultStringFilter = a.colorStringFilter);
var gt = function(t, e, i, r) {
if (null == t)
return function(t) {
return t
}
;
var n, s = e ? (t.match(_t) || [""])[0] : "", o = t.split(s).join("").match($) || [], a = t.substr(0, t.indexOf(o[0])), l = ")" === t.charAt(t.length - 1) ? ")" : "", u = t.indexOf(" ") !== -1 ? " " : ",", c = o.length, h = c > 0 ? o[0].replace(y, "") : "";
return c ? n = e ? function(t) {
var e, f, p, d;
if ("number" == typeof t)
t += h;
else if (r && F.test(t)) {
for (d = t.replace(F, "|").split("|"),
p = 0; p < d.length; p++)
d[p] = n(d[p]);
return d.join(",")
}
if (e = (t.match(_t) || [s])[0],
f = t.split(e).join("").match($) || [],
p = f.length,
c > p--)
for (; ++p < c; )
f[p] = i ? f[(p - 1) / 2 | 0] : o[p];
return a + f.join(u) + u + e + l + (t.indexOf("inset") !== -1 ? " inset" : "")
}
: function(t) {
var e, s, f;
if ("number" == typeof t)
t += h;
else if (r && F.test(t)) {
for (s = t.replace(F, "|").split("|"),
f = 0; f < s.length; f++)
s[f] = n(s[f]);
return s.join(",")
}
if (e = t.match($) || [],
f = e.length,
c > f--)
for (; ++f < c; )
e[f] = i ? e[(f - 1) / 2 | 0] : o[f];
return a + e.join(u) + l
}
: function(t) {
return t
}
}
, vt = function(t) {
return t = t.split(","),
function(e, i, r, n, s, o, a) {
var l, u = (i + "").split(" ");
for (a = {},
l = 0; l < 4; l++)
a[t[l]] = u[l] = u[l] || u[(l - 1) / 2 >> 0];
return n.parse(e, a, s, o)
}
}
, yt = (G._setPluginRatio = function(t) {
this.plugin.setRatio(t);
for (var e, i, r, n, s, o = this.data, a = o.proxy, l = o.firstMPT, u = 1e-6; l; )
e = a[l.v],
l.r ? e = Math.round(e) : e < u && e > -u && (e = 0),
l.t[l.p] = e,
l = l._next;
if (o.autoRotate && (o.autoRotate.rotation = o.mod ? o.mod(a.rotation, this.t) : a.rotation),
1 === t || 0 === t)
for (l = o.firstMPT,
s = 1 === t ? "e" : "b"; l; ) {
if (i = l.t,
i.type) {
if (1 === i.type) {
for (n = i.xs0 + i.s + i.xs1,
r = 1; r < i.l; r++)
n += i["xn" + r] + i["xs" + (r + 1)];
i[s] = n
}
} else
i[s] = i.s + i.xs0;
l = l._next
}
}
,
function(t, e, i, r, n) {
this.t = t,
this.p = e,
this.v = i,
this.r = n,
r && (r._prev = this,
this._next = r)
}
)
, xt = (G._parseToProxy = function(t, e, i, r, n, s) {
var o, a, l, u, c, h = r, f = {}, p = {}, d = i._transform, m = z;
for (i._transform = null,
z = e,
r = c = i.parse(t, e, r, n),
z = m,
s && (i._transform = d,
h && (h._prev = null,
h._prev && (h._prev._next = null))); r && r !== h; ) {
if (r.type <= 1 && (a = r.p,
p[a] = r.s + r.c,
f[a] = r.s,
s || (u = new yt(r,"s",a,u,r.r),
r.c = 0),
1 === r.type))
for (o = r.l; --o > 0; )
l = "xn" + o,
a = r.p + "_" + l,
p[a] = r.data[l],
f[a] = r[l],
s || (u = new yt(r,l,a,u,r.rxp[l]));
r = r._next
}
return {
proxy: f,
end: p,
firstMPT: u,
pt: c
}
}
,
G.CSSPropTween = function(t, e, i, n, s, a, l, u, c, h, f) {
this.t = t,
this.p = e,
this.s = i,
this.c = n,
this.n = l || e,
t instanceof xt || o.push(this.n),
this.r = u,
this.type = a || 0,
c && (this.pr = c,
r = !0),
this.b = void 0 === h ? i : h,
this.e = void 0 === f ? i + n : f,
s && (this._next = s,
s._prev = this)
}
)
, $t = function(t, e, i, r, n, s) {
var o = new xt(t,e,i,r - i,n,(-1),s);
return o.b = i,
o.e = o.xs0 = r,
o
}
, bt = a.parseComplex = function(t, e, i, r, n, s, o, l, u, c) {
i = i || s || "",
"function" == typeof r && (r = r(v, g)),
o = new xt(t,e,0,0,o,c ? 2 : 1,null,(!1),l,i,r),
r += "",
n && _t.test(r + i) && (r = [i, r],
a.colorStringFilter(r),
i = r[0],
r = r[1]);
var f, p, d, m, _, $, b, w, T, P, S, O, j, k = i.split(", ").join(",").split(" "), R = r.split(", ").join(",").split(" "), A = k.length, M = h !== !1;
for (r.indexOf(",") === -1 && i.indexOf(",") === -1 || (k = k.join(" ").replace(F, ", ").split(" "),
R = R.join(" ").replace(F, ", ").split(" "),
A = k.length),
A !== R.length && (k = (s || "").split(" "),
A = k.length),
o.plugin = u,
o.setRatio = c,
_t.lastIndex = 0,
f = 0; f < A; f++)
if (m = k[f],
_ = R[f],
w = parseFloat(m),
w || 0 === w)
o.appendXtra("", w, ut(_, w), _.replace(x, ""), M && _.indexOf("px") !== -1, !0);
else if (n && _t.test(m))
O = _.indexOf(")") + 1,
O = ")" + (O ? _.substr(O) : ""),
j = _.indexOf("hsl") !== -1 && W,
m = dt(m, j),
_ = dt(_, j),
T = m.length + _.length > 6,
T && !W && 0 === _[3] ? (o["xs" + o.l] += o.l ? " transparent" : "transparent",
o.e = o.e.split(R[f]).join("transparent")) : (W || (T = !1),
j ? o.appendXtra(T ? "hsla(" : "hsl(", m[0], ut(_[0], m[0]), ",", !1, !0).appendXtra("", m[1], ut(_[1], m[1]), "%,", !1).appendXtra("", m[2], ut(_[2], m[2]), T ? "%," : "%" + O, !1) : o.appendXtra(T ? "rgba(" : "rgb(", m[0], _[0] - m[0], ",", !0, !0).appendXtra("", m[1], _[1] - m[1], ",", !0).appendXtra("", m[2], _[2] - m[2], T ? "," : O, !0),
T && (m = m.length < 4 ? 1 : m[3],
o.appendXtra("", m, (_.length < 4 ? 1 : _[3]) - m, O, !1))),
_t.lastIndex = 0;
else if ($ = m.match(y)) {
if (b = _.match(x),
!b || b.length !== $.length)
return o;
for (d = 0,
p = 0; p < $.length; p++)
S = $[p],
P = m.indexOf(S, d),
o.appendXtra(m.substr(d, P - d), Number(S), ut(b[p], S), "", M && "px" === m.substr(P + S.length, 2), 0 === p),
d = P + S.length;
o["xs" + o.l] += m.substr(d)
} else
o["xs" + o.l] += o.l || o["xs" + o.l] ? " " + _ : _;
if (r.indexOf("=") !== -1 && o.data) {
for (O = o.xs0 + o.data.s,
f = 1; f < o.l; f++)
O += o["xs" + f] + o.data["xn" + f];
o.e = O + o["xs" + f]
}
return o.l || (o.type = -1,
o.xs0 = o.e),
o.xfirst || o
}
, wt = 9;
for (c = xt.prototype,
c.l = c.pr = 0; --wt > 0; )
c["xn" + wt] = 0,
c["xs" + wt] = "";
c.xs0 = "",
c._next = c._prev = c.xfirst = c.data = c.plugin = c.setRatio = c.rxp = null,
c.appendXtra = function(t, e, i, r, n, s) {
var o = this
, a = o.l;
return o["xs" + a] += s && (a || o["xs" + a]) ? " " + t : t || "",
i || 0 === a || o.plugin ? (o.l++,
o.type = o.setRatio ? 2 : 1,
o["xs" + o.l] = r || "",
a > 0 ? (o.data["xn" + a] = e + i,
o.rxp["xn" + a] = n,
o["xn" + a] = e,
o.plugin || (o.xfirst = new xt(o,"xn" + a,e,i,o.xfirst || o,0,o.n,n,o.pr),
o.xfirst.xs0 = 0),
o) : (o.data = {
s: e + i
},
o.rxp = {},
o.s = e,
o.c = i,
o.r = n,
o)) : (o["xs" + a] += e + (r || ""),
o)
}
;
var Tt = function(t, e) {
e = e || {},
this.p = e.prefix ? Q(t) || t : t,
u[t] = u[this.p] = this,
this.format = e.formatter || gt(e.defaultValue, e.color, e.collapsible, e.multi),
e.parser && (this.parse = e.parser),
this.clrs = e.color,
this.multi = e.multi,
this.keyword = e.keyword,
this.dflt = e.defaultValue,
this.pr = e.priority || 0
}
, Pt = G._registerComplexSpecialProp = function(t, e, i) {
"object" != typeof e && (e = {
parser: i
});
var r, n, s = t.split(","), o = e.defaultValue;
for (i = i || [o],
r = 0; r < s.length; r++)
e.prefix = 0 === r && e.prefix,
e.defaultValue = i[r] || o,
n = new Tt(s[r],e)
}
, St = G._registerPluginProp = function(t) {
if (!u[t]) {
var e = t.charAt(0).toUpperCase() + t.substr(1) + "Plugin";
Pt(t, {
parser: function(t, i, r, n, s, o, a) {
var c = l.com.greensock.plugins[e];
return c ? (c._cssRegister(),
u[r].parse(t, i, r, n, s, o, a)) : (Z("Error: " + e + " js file not loaded."),
s)
}
})
}
}
;
c = Tt.prototype,
c.parseComplex = function(t, e, i, r, n, s) {
var o, a, l, u, c, h, f = this.keyword;
if (this.multi && (F.test(i) || F.test(e) ? (a = e.replace(F, "|").split("|"),
l = i.replace(F, "|").split("|")) : f && (a = [e],
l = [i])),
l) {
for (u = l.length > a.length ? l.length : a.length,
o = 0; o < u; o++)
e = a[o] = a[o] || this.dflt,
i = l[o] = l[o] || this.dflt,
f && (c = e.indexOf(f),
h = i.indexOf(f),
c !== h && (h === -1 ? a[o] = a[o].split(f).join("") : c === -1 && (a[o] += " " + f)));
e = a.join(", "),
i = l.join(", ")
}
return bt(t, this.p, e, i, this.clrs, this.dflt, r, this.pr, n, s)
}
,
c.parse = function(t, e, i, r, n, o, a) {
return this.parseComplex(t.style, this.format(tt(t, this.p, s, !1, this.dflt)), this.format(e), n, o)
}
,
a.registerSpecialProp = function(t, e, i) {
Pt(t, {
parser: function(t, r, n, s, o, a, l) {
var u = new xt(t,n,0,0,o,2,n,(!1),i);
return u.plugin = a,
u.setRatio = e(t, r, s._tween, n),
u
},
priority: i
})
}
,
a.useSVGTransformAttr = !0;
var Ot, jt = "scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent".split(","), kt = Q("transform"), Rt = K + "transform", At = Q("transformOrigin"), Mt = null !== Q("perspective"), Ct = G.Transform = function() {
this.perspective = parseFloat(a.defaultTransformPerspective) || 0,
this.force3D = !(a.defaultForce3D === !1 || !Mt) && (a.defaultForce3D || "auto")
}
, Dt = i.SVGElement, Ft = function(t, e, i) {
var r, n = B.createElementNS("http://www.w3.org/2000/svg", t), s = /([a-z])([A-Z])/g;
for (r in i)
n.setAttributeNS(null, r.replace(s, "$1-$2").toLowerCase(), i[r]);
return e.appendChild(n),
n
}, Et = B.documentElement || {}, It = function() {
var t, e, r, n = _ || /Android/i.test(q) && !i.chrome;
return B.createElementNS && !n && (t = Ft("svg", Et),
e = Ft("rect", t, {
width: 100,
height: 50,
x: 100
}),
r = e.getBoundingClientRect().width,
e.style[At] = "50% 50%",
e.style[kt] = "scaleX(0.5)",
n = r === e.getBoundingClientRect().width && !(d && Mt),
Et.removeChild(t)),
n
}(), Nt = function(t, e, i, r, n, s) {
var o, l, u, c, h, f, p, d, m, _, g, v, y, x, $ = t._gsTransform, b = Ut(t, !0);
$ && (y = $.xOrigin,
x = $.yOrigin),
(!r || (o = r.split(" ")).length < 2) && (p = t.getBBox(),
0 === p.x && 0 === p.y && p.width + p.height === 0 && (p = {
x: parseFloat(t.hasAttribute("x") ? t.getAttribute("x") : t.hasAttribute("cx") ? t.getAttribute("cx") : 0) || 0,
y: parseFloat(t.hasAttribute("y") ? t.getAttribute("y") : t.hasAttribute("cy") ? t.getAttribute("cy") : 0) || 0,
width: 0,
height: 0
}),
e = lt(e).split(" "),
o = [(e[0].indexOf("%") !== -1 ? parseFloat(e[0]) / 100 * p.width : parseFloat(e[0])) + p.x, (e[1].indexOf("%") !== -1 ? parseFloat(e[1]) / 100 * p.height : parseFloat(e[1])) + p.y]),
i.xOrigin = c = parseFloat(o[0]),
i.yOrigin = h = parseFloat(o[1]),
r && b !== Xt && (f = b[0],
p = b[1],
d = b[2],
m = b[3],
_ = b[4],
g = b[5],
v = f * m - p * d,
v && (l = c * (m / v) + h * (-d / v) + (d * g - m * _) / v,
u = c * (-p / v) + h * (f / v) - (f * g - p * _) / v,
c = i.xOrigin = o[0] = l,
h = i.yOrigin = o[1] = u)),
$ && (s && (i.xOffset = $.xOffset,
i.yOffset = $.yOffset,
$ = i),
n || n !== !1 && a.defaultSmoothOrigin !== !1 ? (l = c - y,
u = h - x,
$.xOffset += l * b[0] + u * b[2] - l,
$.yOffset += l * b[1] + u * b[3] - u) : $.xOffset = $.yOffset = 0),
s || t.setAttribute("data-svg-origin", o.join(" "))
}, zt = function(t) {
var e, i = X("svg", this.ownerSVGElement.getAttribute("xmlns") || "http://www.w3.org/2000/svg"), r = this.parentNode, n = this.nextSibling, s = this.style.cssText;
if (Et.appendChild(i),
i.appendChild(this),
this.style.display = "block",
t)
try {
e = this.getBBox(),
this._originalGetBBox = this.getBBox,
this.getBBox = zt
} catch (o) {}
else
this._originalGetBBox && (e = this._originalGetBBox());
return n ? r.insertBefore(this, n) : r.appendChild(this),
Et.removeChild(i),
this.style.cssText = s,
e
}, Lt = function(t) {
try {
return t.getBBox()
} catch (e) {
return zt.call(t, !0)
}
}, Bt = function(t) {
return !(!(Dt && t.getCTM && Lt(t)) || t.parentNode && !t.ownerSVGElement)
}, Xt = [1, 0, 0, 1, 0, 0], Ut = function(t, e) {
var i, r, n, s, o, a, l = t._gsTransform || new Ct, u = 1e5, c = t.style;
if (kt ? r = tt(t, Rt, null, !0) : t.currentStyle && (r = t.currentStyle.filter.match(C),
r = r && 4 === r.length ? [r[0].substr(4), Number(r[2].substr(4)), Number(r[1].substr(4)), r[3].substr(4), l.x || 0, l.y || 0].join(",") : ""),
i = !r || "none" === r || "matrix(1, 0, 0, 1, 0, 0)" === r,
i && kt && ((a = "none" === J(t).display) || !t.parentNode) && (a && (s = c.display,
c.display = "block"),
t.parentNode || (o = 1,
Et.appendChild(t)),
r = tt(t, Rt, null, !0),
i = !r || "none" === r || "matrix(1, 0, 0, 1, 0, 0)" === r,
s ? c.display = s : a && Vt(c, "display"),
o && Et.removeChild(t)),
(l.svg || t.getCTM && Bt(t)) && (i && (c[kt] + "").indexOf("matrix") !== -1 && (r = c[kt],
i = 0),
n = t.getAttribute("transform"),
i && n && (n.indexOf("matrix") !== -1 ? (r = n,
i = 0) : n.indexOf("translate") !== -1 && (r = "matrix(1,0,0,1," + n.match(/(?:\-|\b)[\d\-\.e]+\b/gi).join(",") + ")",
i = 0))),
i)
return Xt;
for (n = (r || "").match(y) || [],
wt = n.length; --wt > -1; )
s = Number(n[wt]),
n[wt] = (o = s - (s |= 0)) ? (o * u + (o < 0 ? -.5 : .5) | 0) / u + s : s;
return e && n.length > 6 ? [n[0], n[1], n[4], n[5], n[12], n[13]] : n
}, Yt = G.getTransform = function(t, i, r, n) {
if (t._gsTransform && r && !n)
return t._gsTransform;
var s, o, l, u, c, h, f = r ? t._gsTransform || new Ct : new Ct, p = f.scaleX < 0, d = 2e-5, m = 1e5, _ = Mt ? parseFloat(tt(t, At, i, !1, "0 0 0").split(" ")[2]) || f.zOrigin || 0 : 0, g = parseFloat(a.defaultTransformPerspective) || 0;
if (f.svg = !(!t.getCTM || !Bt(t)),
f.svg && (Nt(t, tt(t, At, i, !1, "50% 50%") + "", f, t.getAttribute("data-svg-origin")),
Ot = a.useSVGTransformAttr || It),
s = Ut(t),
s !== Xt) {
if (16 === s.length) {
var v, y, x, $, b, w = s[0], T = s[1], P = s[2], S = s[3], O = s[4], j = s[5], k = s[6], R = s[7], A = s[8], M = s[9], C = s[10], D = s[12], F = s[13], E = s[14], I = s[11], z = Math.atan2(k, C);
f.zOrigin && (E = -f.zOrigin,
D = A * E - s[12],
F = M * E - s[13],
E = C * E + f.zOrigin - s[14]),
f.rotationX = z * N,
z && ($ = Math.cos(-z),
b = Math.sin(-z),
v = O * $ + A * b,
y = j * $ + M * b,
x = k * $ + C * b,
A = O * -b + A * $,
M = j * -b + M * $,
C = k * -b + C * $,
I = R * -b + I * $,
O = v,
j = y,
k = x),
z = Math.atan2(-P, C),
f.rotationY = z * N,
z && ($ = Math.cos(-z),
b = Math.sin(-z),
v = w * $ - A * b,
y = T * $ - M * b,
x = P * $ - C * b,
M = T * b + M * $,
C = P * b + C * $,
I = S * b + I * $,
w = v,
T = y,
P = x),
z = Math.atan2(T, w),
f.rotation = z * N,
z && ($ = Math.cos(-z),
b = Math.sin(-z),
w = w * $ + O * b,
y = T * $ + j * b,
j = T * -b + j * $,
k = P * -b + k * $,
T = y),
f.rotationX && Math.abs(f.rotationX) + Math.abs(f.rotation) > 359.9 && (f.rotationX = f.rotation = 0,
f.rotationY = 180 - f.rotationY),
f.scaleX = (Math.sqrt(w * w + T * T) * m + .5 | 0) / m,
f.scaleY = (Math.sqrt(j * j + M * M) * m + .5 | 0) / m,
f.scaleZ = (Math.sqrt(k * k + C * C) * m + .5 | 0) / m,
f.rotationX || f.rotationY ? f.skewX = 0 : (f.skewX = O || j ? Math.atan2(O, j) * N + f.rotation : f.skewX || 0,
Math.abs(f.skewX) > 90 && Math.abs(f.skewX) < 270 && (p ? (f.scaleX *= -1,
f.skewX += f.rotation <= 0 ? 180 : -180,
f.rotation += f.rotation <= 0 ? 180 : -180) : (f.scaleY *= -1,
f.skewX += f.skewX <= 0 ? 180 : -180))),
f.perspective = I ? 1 / (I < 0 ? -I : I) : 0,
f.x = D,
f.y = F,
f.z = E,
f.svg && (f.x -= f.xOrigin - (f.xOrigin * w - f.yOrigin * O),
f.y -= f.yOrigin - (f.yOrigin * T - f.xOrigin * j))
} else if (!Mt || n || !s.length || f.x !== s[4] || f.y !== s[5] || !f.rotationX && !f.rotationY) {
var L = s.length >= 6
, B = L ? s[0] : 1
, X = s[1] || 0
, U = s[2] || 0
, Y = L ? s[3] : 1;
f.x = s[4] || 0,
f.y = s[5] || 0,
l = Math.sqrt(B * B + X * X),
u = Math.sqrt(Y * Y + U * U),
c = B || X ? Math.atan2(X, B) * N : f.rotation || 0,
h = U || Y ? Math.atan2(U, Y) * N + c : f.skewX || 0,
Math.abs(h) > 90 && Math.abs(h) < 270 && (p ? (l *= -1,
h += c <= 0 ? 180 : -180,
c += c <= 0 ? 180 : -180) : (u *= -1,
h += h <= 0 ? 180 : -180)),
f.scaleX = l,
f.scaleY = u,
f.rotation = c,
f.skewX = h,
Mt && (f.rotationX = f.rotationY = f.z = 0,
f.perspective = g,
f.scaleZ = 1),
f.svg && (f.x -= f.xOrigin - (f.xOrigin * B + f.yOrigin * U),
f.y -= f.yOrigin - (f.xOrigin * X + f.yOrigin * Y))
}
f.zOrigin = _;
for (o in f)
f[o] < d && f[o] > -d && (f[o] = 0)
}
return r && (t._gsTransform = f,
f.svg && (Ot && t.style[kt] ? e.delayedCall(.001, function() {
Vt(t.style, kt)
}) : !Ot && t.getAttribute("transform") && e.delayedCall(.001, function() {
t.removeAttribute("transform")
}))),
f
}
, Gt = function(t) {
var e, i, r = this.data, n = -r.rotation * I, s = n + r.skewX * I, o = 1e5, a = (Math.cos(n) * r.scaleX * o | 0) / o, l = (Math.sin(n) * r.scaleX * o | 0) / o, u = (Math.sin(s) * -r.scaleY * o | 0) / o, c = (Math.cos(s) * r.scaleY * o | 0) / o, h = this.t.style, f = this.t.currentStyle;
if (f) {
i = l,
l = -u,
u = -i,
e = f.filter,
h.filter = "";
var p, d, m = this.t.offsetWidth, g = this.t.offsetHeight, v = "absolute" !== f.position, y = "progid:DXImageTransform.Microsoft.Matrix(M11=" + a + ", M12=" + l + ", M21=" + u + ", M22=" + c, x = r.x + m * r.xPercent / 100, $ = r.y + g * r.yPercent / 100;
if (null != r.ox && (p = (r.oxp ? m * r.ox * .01 : r.ox) - m / 2,
d = (r.oyp ? g * r.oy * .01 : r.oy) - g / 2,
x += p - (p * a + d * l),
$ += d - (p * u + d * c)),
v ? (p = m / 2,
d = g / 2,
y += ", Dx=" + (p - (p * a + d * l) + x) + ", Dy=" + (d - (p * u + d * c) + $) + ")") : y += ", sizingMethod='auto expand')",
e.indexOf("DXImageTransform.Microsoft.Matrix(") !== -1 ? h.filter = e.replace(D, y) : h.filter = y + " " + e,
0 !== t && 1 !== t || 1 === a && 0 === l && 0 === u && 1 === c && (v && y.indexOf("Dx=0, Dy=0") === -1 || T.test(e) && 100 !== parseFloat(RegExp.$1) || e.indexOf(e.indexOf("Alpha")) === -1 && h.removeAttribute("filter")),
!v) {
var b, P, S, O = _ < 8 ? 1 : -1;
for (p = r.ieOffsetX || 0,
d = r.ieOffsetY || 0,
r.ieOffsetX = Math.round((m - ((a < 0 ? -a : a) * m + (l < 0 ? -l : l) * g)) / 2 + x),
r.ieOffsetY = Math.round((g - ((c < 0 ? -c : c) * g + (u < 0 ? -u : u) * m)) / 2 + $),
wt = 0; wt < 4; wt++)
P = ot[wt],
b = f[P],
i = b.indexOf("px") !== -1 ? parseFloat(b) : et(this.t, P, parseFloat(b), b.replace(w, "")) || 0,
S = i !== r[P] ? wt < 2 ? -r.ieOffsetX : -r.ieOffsetY : wt < 2 ? p - r.ieOffsetX : d - r.ieOffsetY,
h[P] = (r[P] = Math.round(i - S * (0 === wt || 2 === wt ? 1 : O))) + "px"
}
}
}, qt = G.set3DTransformRatio = G.setTransformRatio = function(t) {
var e, i, r, n, s, o, a, l, u, c, h, f, p, m, _, g, v, y, x, $, b, w, T, P = this.data, S = this.t.style, O = P.rotation, j = P.rotationX, k = P.rotationY, R = P.scaleX, A = P.scaleY, M = P.scaleZ, C = P.x, D = P.y, F = P.z, E = P.svg, N = P.perspective, z = P.force3D, L = P.skewY, B = P.skewX;
if (L && (B += L,
O += L),
((1 === t || 0 === t) && "auto" === z && (this.tween._totalTime === this.tween._totalDuration || !this.tween._totalTime) || !z) && !F && !N && !k && !j && 1 === M || Ot && E || !Mt)
return void (O || B || E ? (O *= I,
w = B * I,
T = 1e5,
i = Math.cos(O) * R,
s = Math.sin(O) * R,
r = Math.sin(O - w) * -A,
o = Math.cos(O - w) * A,
w && "simple" === P.skewType && (e = Math.tan(w - L * I),
e = Math.sqrt(1 + e * e),
r *= e,
o *= e,
L && (e = Math.tan(L * I),
e = Math.sqrt(1 + e * e),
i *= e,
s *= e)),
E && (C += P.xOrigin - (P.xOrigin * i + P.yOrigin * r) + P.xOffset,
D += P.yOrigin - (P.xOrigin * s + P.yOrigin * o) + P.yOffset,
Ot && (P.xPercent || P.yPercent) && (_ = this.t.getBBox(),
C += .01 * P.xPercent * _.width,
D += .01 * P.yPercent * _.height),
_ = 1e-6,
C < _ && C > -_ && (C = 0),
D < _ && D > -_ && (D = 0)),
x = (i * T | 0) / T + "," + (s * T | 0) / T + "," + (r * T | 0) / T + "," + (o * T | 0) / T + "," + C + "," + D + ")",
E && Ot ? this.t.setAttribute("transform", "matrix(" + x) : S[kt] = (P.xPercent || P.yPercent ? "translate(" + P.xPercent + "%," + P.yPercent + "%) matrix(" : "matrix(") + x) : S[kt] = (P.xPercent || P.yPercent ? "translate(" + P.xPercent + "%," + P.yPercent + "%) matrix(" : "matrix(") + R + ",0,0," + A + "," + C + "," + D + ")");
if (d && (_ = 1e-4,
R < _ && R > -_ && (R = M = 2e-5),
A < _ && A > -_ && (A = M = 2e-5),
!N || P.z || P.rotationX || P.rotationY || (N = 0)),
O || B)
O *= I,
g = i = Math.cos(O),
v = s = Math.sin(O),
B && (O -= B * I,
g = Math.cos(O),
v = Math.sin(O),
"simple" === P.skewType && (e = Math.tan((B - L) * I),
e = Math.sqrt(1 + e * e),
g *= e,
v *= e,
P.skewY && (e = Math.tan(L * I),
e = Math.sqrt(1 + e * e),
i *= e,
s *= e))),
r = -v,
o = g;
else {
if (!(k || j || 1 !== M || N || E))
return void (S[kt] = (P.xPercent || P.yPercent ? "translate(" + P.xPercent + "%," + P.yPercent + "%) translate3d(" : "translate3d(") + C + "px," + D + "px," + F + "px)" + (1 !== R || 1 !== A ? " scale(" + R + "," + A + ")" : ""));
i = o = 1,
r = s = 0
}
c = 1,
n = a = l = u = h = f = 0,
p = N ? -1 / N : 0,
m = P.zOrigin,
_ = 1e-6,
$ = ",",
b = "0",
O = k * I,
O && (g = Math.cos(O),
v = Math.sin(O),
l = -v,
h = p * -v,
n = i * v,
a = s * v,
c = g,
p *= g,
i *= g,
s *= g),
O = j * I,
O && (g = Math.cos(O),
v = Math.sin(O),
e = r * g + n * v,
y = o * g + a * v,
u = c * v,
f = p * v,
n = r * -v + n * g,
a = o * -v + a * g,
c *= g,
p *= g,
r = e,
o = y),
1 !== M && (n *= M,
a *= M,
c *= M,
p *= M),
1 !== A && (r *= A,
o *= A,
u *= A,
f *= A),
1 !== R && (i *= R,
s *= R,
l *= R,
h *= R),
(m || E) && (m && (C += n * -m,
D += a * -m,
F += c * -m + m),
E && (C += P.xOrigin - (P.xOrigin * i + P.yOrigin * r) + P.xOffset,
D += P.yOrigin - (P.xOrigin * s + P.yOrigin * o) + P.yOffset),
C < _ && C > -_ && (C = b),
D < _ && D > -_ && (D = b),
F < _ && F > -_ && (F = 0)),
x = P.xPercent || P.yPercent ? "translate(" + P.xPercent + "%," + P.yPercent + "%) matrix3d(" : "matrix3d(",
x += (i < _ && i > -_ ? b : i) + $ + (s < _ && s > -_ ? b : s) + $ + (l < _ && l > -_ ? b : l),
x += $ + (h < _ && h > -_ ? b : h) + $ + (r < _ && r > -_ ? b : r) + $ + (o < _ && o > -_ ? b : o),
j || k || 1 !== M ? (x += $ + (u < _ && u > -_ ? b : u) + $ + (f < _ && f > -_ ? b : f) + $ + (n < _ && n > -_ ? b : n),
x += $ + (a < _ && a > -_ ? b : a) + $ + (c < _ && c > -_ ? b : c) + $ + (p < _ && p > -_ ? b : p) + $) : x += ",0,0,0,0,1,0,",
x += C + $ + D + $ + F + $ + (N ? 1 + -F / N : 1) + ")",
S[kt] = x
}
;
c = Ct.prototype,
c.x = c.y = c.z = c.skewX = c.skewY = c.rotation = c.rotationX = c.rotationY = c.zOrigin = c.xPercent = c.yPercent = c.xOffset = c.yOffset = 0,
c.scaleX = c.scaleY = c.scaleZ = 1,
Pt("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,svgOrigin,transformPerspective,directionalRotation,parseTransform,force3D,skewType,xPercent,yPercent,smoothOrigin", {
parser: function(t, e, i, r, n, o, l) {
if (r._lastParsedTransform === l)
return n;
r._lastParsedTransform = l;
var u, c = l.scale && "function" == typeof l.scale ? l.scale : 0;
"function" == typeof l[i] && (u = l[i],
l[i] = e),
c && (l.scale = c(v, t));
var h, f, p, d, m, _, y, x, $, b = t._gsTransform, w = t.style, T = 1e-6, P = jt.length, S = l, O = {}, j = "transformOrigin", k = Yt(t, s, !0, S.parseTransform), R = S.transform && ("function" == typeof S.transform ? S.transform(v, g) : S.transform);
if (r._transform = k,
R && "string" == typeof R && kt)
f = U.style,
f[kt] = R,
f.display = "block",
f.position = "absolute",
B.body.appendChild(U),
h = Yt(U, null, !1),
k.svg && (_ = k.xOrigin,
y = k.yOrigin,
h.x -= k.xOffset,
h.y -= k.yOffset,
(S.transformOrigin || S.svgOrigin) && (R = {},
Nt(t, lt(S.transformOrigin), R, S.svgOrigin, S.smoothOrigin, !0),
_ = R.xOrigin,
y = R.yOrigin,
h.x -= R.xOffset - k.xOffset,
h.y -= R.yOffset - k.yOffset),
(_ || y) && (x = Ut(U, !0),
h.x -= _ - (_ * x[0] + y * x[2]),
h.y -= y - (_ * x[1] + y * x[3]))),
B.body.removeChild(U),
h.perspective || (h.perspective = k.perspective),
null != S.xPercent && (h.xPercent = ct(S.xPercent, k.xPercent)),
null != S.yPercent && (h.yPercent = ct(S.yPercent, k.yPercent));
else if ("object" == typeof S) {
if (h = {
scaleX: ct(null != S.scaleX ? S.scaleX : S.scale, k.scaleX),
scaleY: ct(null != S.scaleY ? S.scaleY : S.scale, k.scaleY),
scaleZ: ct(S.scaleZ, k.scaleZ),
x: ct(S.x, k.x),
y: ct(S.y, k.y),
z: ct(S.z, k.z),
xPercent: ct(S.xPercent, k.xPercent),
yPercent: ct(S.yPercent, k.yPercent),
perspective: ct(S.transformPerspective, k.perspective)
},
m = S.directionalRotation,
null != m)
if ("object" == typeof m)
for (f in m)
S[f] = m[f];
else
S.rotation = m;
"string" == typeof S.x && S.x.indexOf("%") !== -1 && (h.x = 0,
h.xPercent = ct(S.x, k.xPercent)),
"string" == typeof S.y && S.y.indexOf("%") !== -1 && (h.y = 0,
h.yPercent = ct(S.y, k.yPercent)),
h.rotation = ht("rotation"in S ? S.rotation : "shortRotation"in S ? S.shortRotation + "_short" : "rotationZ"in S ? S.rotationZ : k.rotation, k.rotation, "rotation", O),
Mt && (h.rotationX = ht("rotationX"in S ? S.rotationX : "shortRotationX"in S ? S.shortRotationX + "_short" : k.rotationX || 0, k.rotationX, "rotationX", O),
h.rotationY = ht("rotationY"in S ? S.rotationY : "shortRotationY"in S ? S.shortRotationY + "_short" : k.rotationY || 0, k.rotationY, "rotationY", O)),
h.skewX = ht(S.skewX, k.skewX),
h.skewY = ht(S.skewY, k.skewY)
}
for (Mt && null != S.force3D && (k.force3D = S.force3D,
d = !0),
k.skewType = S.skewType || k.skewType || a.defaultSkewType,
p = k.force3D || k.z || k.rotationX || k.rotationY || h.z || h.rotationX || h.rotationY || h.perspective,
p || null == S.scale || (h.scaleZ = 1); --P > -1; )
$ = jt[P],
R = h[$] - k[$],
(R > T || R < -T || null != S[$] || null != z[$]) && (d = !0,
n = new xt(k,$,k[$],R,n),
$ in O && (n.e = O[$]),
n.xs0 = 0,
n.plugin = o,
r._overwriteProps.push(n.n));
return R = S.transformOrigin,
k.svg && (R || S.svgOrigin) && (_ = k.xOffset,
y = k.yOffset,
Nt(t, lt(R), h, S.svgOrigin, S.smoothOrigin),
n = $t(k, "xOrigin", (b ? k : h).xOrigin, h.xOrigin, n, j),
n = $t(k, "yOrigin", (b ? k : h).yOrigin, h.yOrigin, n, j),
_ === k.xOffset && y === k.yOffset || (n = $t(k, "xOffset", b ? _ : k.xOffset, k.xOffset, n, j),
n = $t(k, "yOffset", b ? y : k.yOffset, k.yOffset, n, j)),
R = "0px 0px"),
(R || Mt && p && k.zOrigin) && (kt ? (d = !0,
$ = At,
R = (R || tt(t, $, s, !1, "50% 50%")) + "",
n = new xt(w,$,0,0,n,(-1),j),
n.b = w[$],
n.plugin = o,
Mt ? (f = k.zOrigin,
R = R.split(" "),
k.zOrigin = (R.length > 2 && (0 === f || "0px" !== R[2]) ? parseFloat(R[2]) : f) || 0,
n.xs0 = n.e = R[0] + " " + (R[1] || "50%") + " 0px",
n = new xt(k,"zOrigin",0,0,n,(-1),n.n),
n.b = f,
n.xs0 = n.e = k.zOrigin) : n.xs0 = n.e = R) : lt(R + "", k)),
d && (r._transformType = k.svg && Ot || !p && 3 !== this._transformType ? 2 : 3),
u && (l[i] = u),
c && (l.scale = c),
n
},
prefix: !0
}),
Pt("boxShadow", {
defaultValue: "0px 0px 0px 0px #999",
prefix: !0,
color: !0,
multi: !0,
keyword: "inset"
}),
Pt("borderRadius", {
defaultValue: "0px",
parser: function(t, e, i, r, o, a) {
e = this.format(e);
var l, u, c, h, f, p, d, m, _, g, v, y, x, $, b, w, T = ["borderTopLeftRadius", "borderTopRightRadius", "borderBottomRightRadius", "borderBottomLeftRadius"], P = t.style;
for (_ = parseFloat(t.offsetWidth),
g = parseFloat(t.offsetHeight),
l = e.split(" "),
u = 0; u < T.length; u++)
this.p.indexOf("border") && (T[u] = Q(T[u])),
f = h = tt(t, T[u], s, !1, "0px"),
f.indexOf(" ") !== -1 && (h = f.split(" "),
f = h[0],
h = h[1]),
p = c = l[u],
d = parseFloat(f),
y = f.substr((d + "").length),
x = "=" === p.charAt(1),
x ? (m = parseInt(p.charAt(0) + "1", 10),
p = p.substr(2),
m *= parseFloat(p),
v = p.substr((m + "").length - (m < 0 ? 1 : 0)) || "") : (m = parseFloat(p),
v = p.substr((m + "").length)),
"" === v && (v = n[i] || y),
v !== y && ($ = et(t, "borderLeft", d, y),
b = et(t, "borderTop", d, y),
"%" === v ? (f = $ / _ * 100 + "%",
h = b / g * 100 + "%") : "em" === v ? (w = et(t, "borderLeft", 1, "em"),
f = $ / w + "em",
h = b / w + "em") : (f = $ + "px",
h = b + "px"),
x && (p = parseFloat(f) + m + v,
c = parseFloat(h) + m + v)),
o = bt(P, T[u], f + " " + h, p + " " + c, !1, "0px", o);
return o
},
prefix: !0,
formatter: gt("0px 0px 0px 0px", !1, !0)
}),
Pt("borderBottomLeftRadius,borderBottomRightRadius,borderTopLeftRadius,borderTopRightRadius", {
defaultValue: "0px",
parser: function(t, e, i, r, n, o) {
return bt(t.style, i, this.format(tt(t, i, s, !1, "0px 0px")), this.format(e), !1, "0px", n)
},
prefix: !0,
formatter: gt("0px 0px", !1, !0)
}),
Pt("backgroundPosition", {
defaultValue: "0 0",
parser: function(t, e, i, r, n, o) {
var a, l, u, c, h, f, p = "background-position", d = s || J(t, null), m = this.format((d ? _ ? d.getPropertyValue(p + "-x") + " " + d.getPropertyValue(p + "-y") : d.getPropertyValue(p) : t.currentStyle.backgroundPositionX + " " + t.currentStyle.backgroundPositionY) || "0 0"), g = this.format(e);
if (m.indexOf("%") !== -1 != (g.indexOf("%") !== -1) && g.split(",").length < 2 && (f = tt(t, "backgroundImage").replace(R, ""),
f && "none" !== f)) {
for (a = m.split(" "),
l = g.split(" "),
Y.setAttribute("src", f),
u = 2; --u > -1; )
m = a[u],
c = m.indexOf("%") !== -1,
c !== (l[u].indexOf("%") !== -1) && (h = 0 === u ? t.offsetWidth - Y.width : t.offsetHeight - Y.height,
a[u] = c ? parseFloat(m) / 100 * h + "px" : parseFloat(m) / h * 100 + "%");
m = a.join(" ")
}
return this.parseComplex(t.style, m, g, n, o)
},
formatter: lt
}),
Pt("backgroundSize", {
defaultValue: "0 0",
formatter: function(t) {
return t += "",
lt(t.indexOf(" ") === -1 ? t + " " + t : t)
}
}),
Pt("perspective", {
defaultValue: "0px",
prefix: !0
}),
Pt("perspectiveOrigin", {
defaultValue: "50% 50%",
prefix: !0
}),
Pt("transformStyle", {
prefix: !0
}),
Pt("backfaceVisibility", {
prefix: !0
}),
Pt("userSelect", {
prefix: !0
}),
Pt("margin", {
parser: vt("marginTop,marginRight,marginBottom,marginLeft")
}),
Pt("padding", {
parser: vt("paddingTop,paddingRight,paddingBottom,paddingLeft")
}),
Pt("clip", {
defaultValue: "rect(0px,0px,0px,0px)",
parser: function(t, e, i, r, n, o) {
var a, l, u;
return _ < 9 ? (l = t.currentStyle,
u = _ < 8 ? " " : ",",
a = "rect(" + l.clipTop + u + l.clipRight + u + l.clipBottom + u + l.clipLeft + ")",
e = this.format(e).split(",").join(u)) : (a = this.format(tt(t, this.p, s, !1, this.dflt)),
e = this.format(e)),
this.parseComplex(t.style, a, e, n, o)
}
}),
Pt("textShadow", {
defaultValue: "0px 0px 0px #999",
color: !0,
multi: !0
}),
Pt("autoRound,strictUnits", {
parser: function(t, e, i, r, n) {
return n
}
}),
Pt("border", {
defaultValue: "0px solid #000",
parser: function(t, e, i, r, n, o) {
var a = tt(t, "borderTopWidth", s, !1, "0px")
, l = this.format(e).split(" ")
, u = l[0].replace(w, "");
return "px" !== u && (a = parseFloat(a) / et(t, "borderTopWidth", 1, u) + u),
this.parseComplex(t.style, this.format(a + " " + tt(t, "borderTopStyle", s, !1, "solid") + " " + tt(t, "borderTopColor", s, !1, "#000")), l.join(" "), n, o)
},
color: !0,
formatter: function(t) {
var e = t.split(" ");
return e[0] + " " + (e[1] || "solid") + " " + (t.match(_t) || ["#000"])[0]
}
}),
Pt("borderWidth", {
parser: vt("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")
}),
Pt("float,cssFloat,styleFloat", {
parser: function(t, e, i, r, n, s) {
var o = t.style
, a = "cssFloat"in o ? "cssFloat" : "styleFloat";
return new xt(o,a,0,0,n,(-1),i,(!1),0,o[a],e)
}
});
var Wt = function(t) {
var e, i = this.t, r = i.filter || tt(this.data, "filter") || "", n = this.s + this.c * t | 0;
100 === n && (r.indexOf("atrix(") === -1 && r.indexOf("radient(") === -1 && r.indexOf("oader(") === -1 ? (i.removeAttribute("filter"),
e = !tt(this.data, "filter")) : (i.filter = r.replace(S, ""),
e = !0)),
e || (this.xn1 && (i.filter = r = r || "alpha(opacity=" + n + ")"),
r.indexOf("pacity") === -1 ? 0 === n && this.xn1 || (i.filter = r + " alpha(opacity=" + n + ")") : i.filter = r.replace(T, "opacity=" + n))
};
Pt("opacity,alpha,autoAlpha", {
defaultValue: "1",
parser: function(t, e, i, r, n, o) {
var a = parseFloat(tt(t, "opacity", s, !1, "1"))
, l = t.style
, u = "autoAlpha" === i;
return "string" == typeof e && "=" === e.charAt(1) && (e = ("-" === e.charAt(0) ? -1 : 1) * parseFloat(e.substr(2)) + a),
u && 1 === a && "hidden" === tt(t, "visibility", s) && 0 !== e && (a = 0),
W ? n = new xt(l,"opacity",a,e - a,n) : (n = new xt(l,"opacity",100 * a,100 * (e - a),n),
n.xn1 = u ? 1 : 0,
l.zoom = 1,
n.type = 2,
n.b = "alpha(opacity=" + n.s + ")",
n.e = "alpha(opacity=" + (n.s + n.c) + ")",
n.data = t,
n.plugin = o,
n.setRatio = Wt),
u && (n = new xt(l,"visibility",0,0,n,(-1),null,(!1),0,0 !== a ? "inherit" : "hidden",0 === e ? "hidden" : "inherit"),
n.xs0 = "inherit",
r._overwriteProps.push(n.n),
r._overwriteProps.push(i)),
n
}
});
var Vt = function(t, e) {
e && (t.removeProperty ? ("ms" !== e.substr(0, 2) && "webkit" !== e.substr(0, 6) || (e = "-" + e),
t.removeProperty(e.replace(j, "-$1").toLowerCase())) : t.removeAttribute(e))
}
, Zt = function(t) {
if (this.t._gsClassPT = this,
1 === t || 0 === t) {
this.t.setAttribute("class", 0 === t ? this.b : this.e);
for (var e = this.data, i = this.t.style; e; )
e.v ? i[e.p] = e.v : Vt(i, e.p),
e = e._next;
1 === t && this.t._gsClassPT === this && (this.t._gsClassPT = null)
} else
this.t.getAttribute("class") !== this.e && this.t.setAttribute("class", this.e)
};
Pt("className", {
parser: function(t, e, i, n, o, a, l) {
var u, c, h, f, p, d = t.getAttribute("class") || "", m = t.style.cssText;
if (o = n._classNamePT = new xt(t,i,0,0,o,2),
o.setRatio = Zt,
o.pr = -11,
r = !0,
o.b = d,
c = rt(t, s),
h = t._gsClassPT) {
for (f = {},
p = h.data; p; )
f[p.p] = 1,
p = p._next;
h.setRatio(1)
}
return t._gsClassPT = o,
o.e = "=" !== e.charAt(1) ? e : d.replace(new RegExp("(?:\\s|^)" + e.substr(2) + "(?![\\w-])"), "") + ("+" === e.charAt(0) ? " " + e.substr(2) : ""),
t.setAttribute("class", o.e),
u = nt(t, c, rt(t), l, f),
t.setAttribute("class", d),
o.data = u.firstMPT,
t.style.cssText = m,
o = o.xfirst = n.parse(t, u.difs, o, a)
}
});
var Kt = function(t) {
if ((1 === t || 0 === t) && this.data._totalTime === this.data._totalDuration && "isFromStart" !== this.data.data) {
var e, i, r, n, s, o = this.t.style, a = u.transform.parse;
if ("all" === this.e)
o.cssText = "",
n = !0;
else
for (e = this.e.split(" ").join("").split(","),
r = e.length; --r > -1; )
i = e[r],
u[i] && (u[i].parse === a ? n = !0 : i = "transformOrigin" === i ? At : u[i].p),
Vt(o, i);
n && (Vt(o, kt),
s = this.t._gsTransform,
s && (s.svg && (this.t.removeAttribute("data-svg-origin"),
this.t.removeAttribute("transform")),
delete this.t._gsTransform))
}
};
for (Pt("clearProps", {
parser: function(t, e, i, n, s) {
return s = new xt(t,i,0,0,s,2),
s.setRatio = Kt,
s.e = e,
s.pr = -10,
s.data = n._tween,
r = !0,
s
}
}),
c = "bezier,throwProps,physicsProps,physics2D".split(","),
wt = c.length; wt--; )
St(c[wt]);
c = a.prototype,
c._firstPT = c._lastParsedTransform = c._transform = null,
c._onInitTween = function(t, e, i, l) {
if (!t.nodeType)
return !1;
this._target = g = t,
this._tween = i,
this._vars = e,
v = l,
h = e.autoRound,
r = !1,
n = e.suffixMap || a.suffixMap,
s = J(t, ""),
o = this._overwriteProps;
var c, d, _, y, x, $, b, w, T, S = t.style;
if (f && "" === S.zIndex && (c = tt(t, "zIndex", s),
"auto" !== c && "" !== c || this._addLazySet(S, "zIndex", 0)),
"string" == typeof e && (y = S.cssText,
c = rt(t, s),
S.cssText = y + ";" + e,
c = nt(t, c, rt(t)).difs,
!W && P.test(e) && (c.opacity = parseFloat(RegExp.$1)),
e = c,
S.cssText = y),
e.className ? this._firstPT = d = u.className.parse(t, e.className, "className", this, null, null, e) : this._firstPT = d = this.parse(t, e, null),
this._transformType) {
for (T = 3 === this._transformType,
kt ? p && (f = !0,
"" === S.zIndex && (b = tt(t, "zIndex", s),
"auto" !== b && "" !== b || this._addLazySet(S, "zIndex", 0)),
m && this._addLazySet(S, "WebkitBackfaceVisibility", this._vars.WebkitBackfaceVisibility || (T ? "visible" : "hidden"))) : S.zoom = 1,
_ = d; _ && _._next; )
_ = _._next;
w = new xt(t,"transform",0,0,null,2),
this._linkCSSP(w, null, _),
w.setRatio = kt ? qt : Gt,
w.data = this._transform || Yt(t, s, !0),
w.tween = i,
w.pr = -1,
o.pop()
}
if (r) {
for (; d; ) {
for ($ = d._next,
_ = y; _ && _.pr > d.pr; )
_ = _._next;
(d._prev = _ ? _._prev : x) ? d._prev._next = d : y = d,
(d._next = _) ? _._prev = d : x = d,
d = $
}
this._firstPT = y
}
return !0
}
,
c.parse = function(t, e, i, r) {
var o, a, l, c, f, p, d, m, _, y, x = t.style;
for (o in e)
p = e[o],
"function" == typeof p && (p = p(v, g)),
a = u[o],
a ? i = a.parse(t, p, o, this, i, r, e) : (f = tt(t, o, s) + "",
_ = "string" == typeof p,
"color" === o || "fill" === o || "stroke" === o || o.indexOf("Color") !== -1 || _ && O.test(p) ? (_ || (p = dt(p),
p = (p.length > 3 ? "rgba(" : "rgb(") + p.join(",") + ")"),
i = bt(x, o, f, p, !0, "transparent", i, 0, r)) : _ && E.test(p) ? i = bt(x, o, f, p, !0, null, i, 0, r) : (l = parseFloat(f),
d = l || 0 === l ? f.substr((l + "").length) : "",
"" !== f && "auto" !== f || ("width" === o || "height" === o ? (l = at(t, o, s),
d = "px") : "left" === o || "top" === o ? (l = it(t, o, s),
d = "px") : (l = "opacity" !== o ? 0 : 1,
d = "")),
y = _ && "=" === p.charAt(1),
y ? (c = parseInt(p.charAt(0) + "1", 10),
p = p.substr(2),
c *= parseFloat(p),
m = p.replace(w, "")) : (c = parseFloat(p),
m = _ ? p.replace(w, "") : ""),
"" === m && (m = o in n ? n[o] : d),
p = c || 0 === c ? (y ? c + l : c) + m : e[o],
d !== m && "" !== m && (c || 0 === c) && l && (l = et(t, o, l, d),
"%" === m ? (l /= et(t, o, 100, "%") / 100,
e.strictUnits !== !0 && (f = l + "%")) : "em" === m || "rem" === m || "vw" === m || "vh" === m ? l /= et(t, o, 1, m) : "px" !== m && (c = et(t, o, c, m),
m = "px"),
y && (c || 0 === c) && (p = c + l + m)),
y && (c += l),
!l && 0 !== l || !c && 0 !== c ? void 0 !== x[o] && (p || p + "" != "NaN" && null != p) ? (i = new xt(x,o,c || l || 0,0,i,(-1),o,(!1),0,f,p),
i.xs0 = "none" !== p || "display" !== o && o.indexOf("Style") === -1 ? p : f) : Z("invalid " + o + " tween value: " + e[o]) : (i = new xt(x,o,l,c - l,i,0,o,h !== !1 && ("px" === m || "zIndex" === o),0,f,p),
i.xs0 = m))),
r && i && !i.plugin && (i.plugin = r);
return i
}
,
c.setRatio = function(t) {
var e, i, r, n = this._firstPT, s = 1e-6;
if (1 !== t || this._tween._time !== this._tween._duration && 0 !== this._tween._time)
if (t || this._tween._time !== this._tween._duration && 0 !== this._tween._time || this._tween._rawPrevTime === -1e-6)
for (; n; ) {
if (e = n.c * t + n.s,
n.r ? e = Math.round(e) : e < s && e > -s && (e = 0),
n.type)
if (1 === n.type)
if (r = n.l,
2 === r)
n.t[n.p] = n.xs0 + e + n.xs1 + n.xn1 + n.xs2;
else if (3 === r)
n.t[n.p] = n.xs0 + e + n.xs1 + n.xn1 + n.xs2 + n.xn2 + n.xs3;
else if (4 === r)
n.t[n.p] = n.xs0 + e + n.xs1 + n.xn1 + n.xs2 + n.xn2 + n.xs3 + n.xn3 + n.xs4;
else if (5 === r)
n.t[n.p] = n.xs0 + e + n.xs1 + n.xn1 + n.xs2 + n.xn2 + n.xs3 + n.xn3 + n.xs4 + n.xn4 + n.xs5;
else {
for (i = n.xs0 + e + n.xs1,
r = 1; r < n.l; r++)
i += n["xn" + r] + n["xs" + (r + 1)];
n.t[n.p] = i
}
else
n.type === -1 ? n.t[n.p] = n.xs0 : n.setRatio && n.setRatio(t);
else
n.t[n.p] = e + n.xs0;
n = n._next
}
else
for (; n; )
2 !== n.type ? n.t[n.p] = n.b : n.setRatio(t),
n = n._next;
else
for (; n; ) {
if (2 !== n.type)
if (n.r && n.type !== -1)
if (e = Math.round(n.s + n.c),
n.type) {
if (1 === n.type) {
for (r = n.l,
i = n.xs0 + e + n.xs1,
r = 1; r < n.l; r++)
i += n["xn" + r] + n["xs" + (r + 1)];
n.t[n.p] = i
}
} else
n.t[n.p] = e + n.xs0;
else
n.t[n.p] = n.e;
else
n.setRatio(t);
n = n._next
}
}
,
c._enableTransforms = function(t) {
this._transform = this._transform || Yt(this._target, s, !0),
this._transformType = this._transform.svg && Ot || !t && 3 !== this._transformType ? 2 : 3
}
;
var Ht = function(t) {
this.t[this.p] = this.e,
this.data._linkCSSP(this, this._next, null, !0)
};
c._addLazySet = function(t, e, i) {
var r = this._firstPT = new xt(t,e,0,0,this._firstPT,2);
r.e = i,
r.setRatio = Ht,
r.data = this
}
,
c._linkCSSP = function(t, e, i, r) {
return t && (e && (e._prev = t),
t._next && (t._next._prev = t._prev),
t._prev ? t._prev._next = t._next : this._firstPT === t && (this._firstPT = t._next,
r = !0),
i ? i._next = t : r || null !== this._firstPT || (this._firstPT = t),
t._next = e,
t._prev = i),
t
}
,
c._mod = function(t) {
for (var e = this._firstPT; e; )
"function" == typeof t[e.p] && t[e.p] === Math.round && (e.r = 1),
e = e._next
}
,
c._kill = function(e) {
var i, r, n, s = e;
if (e.autoAlpha || e.alpha) {
s = {};
for (r in e)
s[r] = e[r];
s.opacity = 1,
s.autoAlpha && (s.visibility = 1)
}
for (e.className && (i = this._classNamePT) && (n = i.xfirst,
n && n._prev ? this._linkCSSP(n._prev, i._next, n._prev._prev) : n === this._firstPT && (this._firstPT = i._next),
i._next && this._linkCSSP(i._next, i._next._next, n._prev),
this._classNamePT = null),
i = this._firstPT; i; )
i.plugin && i.plugin !== r && i.plugin._kill && (i.plugin._kill(e),
r = i.plugin),
i = i._next;
return t.prototype._kill.call(this, s)
}
;
var Qt = function(t, e, i) {
var r, n, s, o;
if (t.slice)
for (n = t.length; --n > -1; )
Qt(t[n], e, i);
else
for (r = t.childNodes,
n = r.length; --n > -1; )
s = r[n],
o = s.type,
s.style && (e.push(rt(s)),
i && i.push(s)),
1 !== o && 9 !== o && 11 !== o || !s.childNodes.length || Qt(s, e, i)
};
return a.cascadeTo = function(t, i, r) {
var n, s, o, a, l = e.to(t, i, r), u = [l], c = [], h = [], f = [], p = e._internals.reservedProps;
for (t = l._targets || l.target,
Qt(t, c, f),
l.render(i, !0, !0),
Qt(t, h),
l.render(0, !0, !0),
l._enabled(!0),
n = f.length; --n > -1; )
if (s = nt(f[n], c[n], h[n]),
s.firstMPT) {
s = s.difs;
for (o in r)
p[o] && (s[o] = r[o]);
a = {};
for (o in s)
a[o] = c[n][o];
u.push(e.fromTo(f[n], i, a, s))
}
return u
}
,
t.activate([a]),
a
}, !0),
function() {
var t = i._gsDefine.plugin({
propName: "roundProps",
version: "1.6.0",
priority: -1,
API: 2,
init: function(t, e, i) {
return this._tween = i,
!0
}
})
, e = function(t) {
for (; t; )
t.f || t.blob || (t.m = Math.round),
t = t._next
}
, r = t.prototype;
r._onInitAllProps = function() {
for (var t, i, r, n = this._tween, s = n.vars.roundProps.join ? n.vars.roundProps : n.vars.roundProps.split(","), o = s.length, a = {}, l = n._propLookup.roundProps; --o > -1; )
a[s[o]] = Math.round;
for (o = s.length; --o > -1; )
for (t = s[o],
i = n._firstPT; i; )
r = i._next,
i.pg ? i.t._mod(a) : i.n === t && (2 === i.f && i.t ? e(i.t._firstPT) : (this._add(i.t, t, i.s, i.c),
r && (r._prev = i._prev),
i._prev ? i._prev._next = r : n._firstPT === i && (n._firstPT = r),
i._next = i._prev = null,
n._propLookup[t] = l)),
i = r;
return !1
}
,
r._add = function(t, e, i, r) {
this._addTween(t, e, i, i + r, e, Math.round),
this._overwriteProps.push(e)
}
}(),
function() {
i._gsDefine.plugin({
propName: "attr",
API: 2,
version: "0.6.0",
init: function(t, e, i, r) {
var n, s;
if ("function" != typeof t.setAttribute)
return !1;
for (n in e)
s = e[n],
"function" == typeof s && (s = s(r, t)),
this._addTween(t, "setAttribute", t.getAttribute(n) + "", s + "", n, !1, n),
this._overwriteProps.push(n);
return !0
}
})
}(),
i._gsDefine.plugin({
propName: "directionalRotation",
version: "0.3.0",
API: 2,
init: function(t, e, i, r) {
"object" != typeof e && (e = {
rotation: e
}),
this.finals = {};
var n, s, o, a, l, u, c = e.useRadians === !0 ? 2 * Math.PI : 360, h = 1e-6;
for (n in e)
"useRadians" !== n && (a = e[n],
"function" == typeof a && (a = a(r, t)),
u = (a + "").split("_"),
s = u[0],
o = parseFloat("function" != typeof t[n] ? t[n] : t[n.indexOf("set") || "function" != typeof t["get" + n.substr(3)] ? n : "get" + n.substr(3)]()),
a = this.finals[n] = "string" == typeof s && "=" === s.charAt(1) ? o + parseInt(s.charAt(0) + "1", 10) * Number(s.substr(2)) : Number(s) || 0,
l = a - o,
u.length && (s = u.join("_"),
s.indexOf("short") !== -1 && (l %= c,
l !== l % (c / 2) && (l = l < 0 ? l + c : l - c)),
s.indexOf("_cw") !== -1 && l < 0 ? l = (l + 9999999999 * c) % c - (l / c | 0) * c : s.indexOf("ccw") !== -1 && l > 0 && (l = (l - 9999999999 * c) % c - (l / c | 0) * c)),
(l > h || l < -h) && (this._addTween(t, n, o, o + l, n),
this._overwriteProps.push(n)));
return !0
},
set: function(t) {
var e;
if (1 !== t)
this._super.setRatio.call(this, t);
else
for (e = this._firstPT; e; )
e.f ? e.t[e.p](this.finals[e.p]) : e.t[e.p] = this.finals[e.p],
e = e._next
}
})._autoCSS = !0,
i._gsDefine("easing.Back", ["easing.Ease"], function(t) {
var e, r, n, s = i.GreenSockGlobals || i, o = s.com.greensock, a = 2 * Math.PI, l = Math.PI / 2, u = o._class, c = function(e, i) {
var r = u("easing." + e, function() {}, !0)
, n = r.prototype = new t;
return n.constructor = r,
n.getRatio = i,
r
}, h = t.register || function() {}
, f = function(t, e, i, r, n) {
var s = u("easing." + t, {
easeOut: new e,
easeIn: new i,
easeInOut: new r
}, !0);
return h(s, t),
s
}, p = function(t, e, i) {
this.t = t,
this.v = e,
i && (this.next = i,
i.prev = this,
this.c = i.v - e,
this.gap = i.t - t)
}, d = function(e, i) {
var r = u("easing." + e, function(t) {
this._p1 = t || 0 === t ? t : 1.70158,
this._p2 = 1.525 * this._p1
}, !0)
, n = r.prototype = new t;
return n.constructor = r,
n.getRatio = i,
n.config = function(t) {
return new r(t)
}
,
r
}, m = f("Back", d("BackOut", function(t) {
return (t -= 1) * t * ((this._p1 + 1) * t + this._p1) + 1
}), d("BackIn", function(t) {
return t * t * ((this._p1 + 1) * t - this._p1)
}), d("BackInOut", function(t) {
return (t *= 2) < 1 ? .5 * t * t * ((this._p2 + 1) * t - this._p2) : .5 * ((t -= 2) * t * ((this._p2 + 1) * t + this._p2) + 2)
})), _ = u("easing.SlowMo", function(t, e, i) {
e = e || 0 === e ? e : .7,
null == t ? t = .7 : t > 1 && (t = 1),
this._p = 1 !== t ? e : 0,
this._p1 = (1 - t) / 2,
this._p2 = t,
this._p3 = this._p1 + this._p2,
this._calcEnd = i === !0
}, !0), g = _.prototype = new t;
return g.constructor = _,
g.getRatio = function(t) {
var e = t + (.5 - t) * this._p;
return t < this._p1 ? this._calcEnd ? 1 - (t = 1 - t / this._p1) * t : e - (t = 1 - t / this._p1) * t * t * t * e : t > this._p3 ? this._calcEnd ? 1 - (t = (t - this._p3) / this._p1) * t : e + (t - e) * (t = (t - this._p3) / this._p1) * t * t * t : this._calcEnd ? 1 : e
}
,
_.ease = new _(.7,.7),
g.config = _.config = function(t, e, i) {
return new _(t,e,i)
}
,
e = u("easing.SteppedEase", function(t) {
t = t || 1,
this._p1 = 1 / t,
this._p2 = t + 1
}, !0),
g = e.prototype = new t,
g.constructor = e,
g.getRatio = function(t) {
return t < 0 ? t = 0 : t >= 1 && (t = .999999999),
(this._p2 * t >> 0) * this._p1
}
,
g.config = e.config = function(t) {
return new e(t)
}
,
r = u("easing.RoughEase", function(e) {
e = e || {};
for (var i, r, n, s, o, a, l = e.taper || "none", u = [], c = 0, h = 0 | (e.points || 20), f = h, d = e.randomize !== !1, m = e.clamp === !0, _ = e.template instanceof t ? e.template : null, g = "number" == typeof e.strength ? .4 * e.strength : .4; --f > -1; )
i = d ? Math.random() : 1 / h * f,
r = _ ? _.getRatio(i) : i,
"none" === l ? n = g : "out" === l ? (s = 1 - i,
n = s * s * g) : "in" === l ? n = i * i * g : i < .5 ? (s = 2 * i,
n = s * s * .5 * g) : (s = 2 * (1 - i),
n = s * s * .5 * g),
d ? r += Math.random() * n - .5 * n : f % 2 ? r += .5 * n : r -= .5 * n,
m && (r > 1 ? r = 1 : r < 0 && (r = 0)),
u[c++] = {
x: i,
y: r
};
for (u.sort(function(t, e) {
return t.x - e.x
}),
a = new p(1,1,null),
f = h; --f > -1; )
o = u[f],
a = new p(o.x,o.y,a);
this._prev = new p(0,0,0 !== a.t ? a : a.next)
}, !0),
g = r.prototype = new t,
g.constructor = r,
g.getRatio = function(t) {
var e = this._prev;
if (t > e.t) {
for (; e.next && t >= e.t; )
e = e.next;
e = e.prev
} else
for (; e.prev && t <= e.t; )
e = e.prev;
return this._prev = e,
e.v + (t - e.t) / e.gap * e.c
}
,
g.config = function(t) {
return new r(t)
}
,
r.ease = new r,
f("Bounce", c("BounceOut", function(t) {
return t < 1 / 2.75 ? 7.5625 * t * t : t < 2 / 2.75 ? 7.5625 * (t -= 1.5 / 2.75) * t + .75 : t < 2.5 / 2.75 ? 7.5625 * (t -= 2.25 / 2.75) * t + .9375 : 7.5625 * (t -= 2.625 / 2.75) * t + .984375
}), c("BounceIn", function(t) {
return (t = 1 - t) < 1 / 2.75 ? 1 - 7.5625 * t * t : t < 2 / 2.75 ? 1 - (7.5625 * (t -= 1.5 / 2.75) * t + .75) : t < 2.5 / 2.75 ? 1 - (7.5625 * (t -= 2.25 / 2.75) * t + .9375) : 1 - (7.5625 * (t -= 2.625 / 2.75) * t + .984375)
}), c("BounceInOut", function(t) {
var e = t < .5;
return t = e ? 1 - 2 * t : 2 * t - 1,
t = t < 1 / 2.75 ? 7.5625 * t * t : t < 2 / 2.75 ? 7.5625 * (t -= 1.5 / 2.75) * t + .75 : t < 2.5 / 2.75 ? 7.5625 * (t -= 2.25 / 2.75) * t + .9375 : 7.5625 * (t -= 2.625 / 2.75) * t + .984375,
e ? .5 * (1 - t) : .5 * t + .5
})),
f("Circ", c("CircOut", function(t) {
return Math.sqrt(1 - (t -= 1) * t)
}), c("CircIn", function(t) {
return -(Math.sqrt(1 - t * t) - 1)
}), c("CircInOut", function(t) {
return (t *= 2) < 1 ? -.5 * (Math.sqrt(1 - t * t) - 1) : .5 * (Math.sqrt(1 - (t -= 2) * t) + 1)
})),
n = function(e, i, r) {
var n = u("easing." + e, function(t, e) {
this._p1 = t >= 1 ? t : 1,
this._p2 = (e || r) / (t < 1 ? t : 1),
this._p3 = this._p2 / a * (Math.asin(1 / this._p1) || 0),
this._p2 = a / this._p2
}, !0)
, s = n.prototype = new t;
return s.constructor = n,
s.getRatio = i,
s.config = function(t, e) {
return new n(t,e)
}
,
n
}
,
f("Elastic", n("ElasticOut", function(t) {
return this._p1 * Math.pow(2, -10 * t) * Math.sin((t - this._p3) * this._p2) + 1
}, .3), n("ElasticIn", function(t) {
return -(this._p1 * Math.pow(2, 10 * (t -= 1)) * Math.sin((t - this._p3) * this._p2))
}, .3), n("ElasticInOut", function(t) {
return (t *= 2) < 1 ? -.5 * (this._p1 * Math.pow(2, 10 * (t -= 1)) * Math.sin((t - this._p3) * this._p2)) : this._p1 * Math.pow(2, -10 * (t -= 1)) * Math.sin((t - this._p3) * this._p2) * .5 + 1
}, .45)),
f("Expo", c("ExpoOut", function(t) {
return 1 - Math.pow(2, -10 * t)
}), c("ExpoIn", function(t) {
return Math.pow(2, 10 * (t - 1)) - .001
}), c("ExpoInOut", function(t) {
return (t *= 2) < 1 ? .5 * Math.pow(2, 10 * (t - 1)) : .5 * (2 - Math.pow(2, -10 * (t - 1)))
})),
f("Sine", c("SineOut", function(t) {
return Math.sin(t * l)
}), c("SineIn", function(t) {
return -Math.cos(t * l) + 1
}), c("SineInOut", function(t) {
return -.5 * (Math.cos(Math.PI * t) - 1)
})),
u("easing.EaseLookup", {
find: function(e) {
return t.map[e]
}
}, !0),
h(s.SlowMo, "SlowMo", "ease,"),
h(r, "RoughEase", "ease,"),
h(e, "SteppedEase", "ease,"),
m
}, !0)
}),
i._gsDefine && i._gsQueue.pop()(),
function(t, i) {
"use strict";
var r = {}
, n = t.document
, s = t.GreenSockGlobals = t.GreenSockGlobals || t;
if (!s.TweenLite) {
var o, a, l, u, c, h = function(t) {
var e, i = t.split("."), r = s;
for (e = 0; e < i.length; e++)
r[i[e]] = r = r[i[e]] || {};
return r
}, f = h("com.greensock"), p = 1e-10, d = function(t) {
var e, i = [], r = t.length;
for (e = 0; e !== r; i.push(t[e++]))
;
return i
}, m = function() {}, _ = function() {
var t = Object.prototype.toString
, e = t.call([]);
return function(i) {
return null != i && (i instanceof Array || "object" == typeof i && !!i.push && t.call(i) === e)
}
}(), g = {}, v = function(n, o, a, l) {
this.sc = g[n] ? g[n].sc : [],
g[n] = this,
this.gsClass = null,
this.func = a;
var u = [];
this.check = function(c) {
for (var f, p, d, m, _, y = o.length, x = y; --y > -1; )
(f = g[o[y]] || new v(o[y],[])).gsClass ? (u[y] = f.gsClass,
x--) : c && f.sc.push(this);
if (0 === x && a) {
if (p = ("com.greensock." + n).split("."),
d = p.pop(),
m = h(p.join("."))[d] = this.gsClass = a.apply(a, u),
l)
if (s[d] = r[d] = m,
_ = "undefined" != typeof e && e.exports,
!_ && "function" == typeof define && define.amd)
define((t.GreenSockAMDPath ? t.GreenSockAMDPath + "/" : "") + n.split(".").pop(), [], function() {
return m
});
else if (_)
if (n === i) {
e.exports = r[i] = m;
for (y in r)
m[y] = r[y]
} else
r[i] && (r[i][d] = m);
for (y = 0; y < this.sc.length; y++)
this.sc[y].check()
}
}
,
this.check(!0)
}, y = t._gsDefine = function(t, e, i, r) {
return new v(t,e,i,r)
}
, x = f._class = function(t, e, i) {
return e = e || function() {}
,
y(t, [], function() {
return e
}, i),
e
}
;
y.globals = s;
var $ = [0, 0, 1, 1]
, b = x("easing.Ease", function(t, e, i, r) {
this._func = t,
this._type = i || 0,
this._power = r || 0,
this._params = e ? $.concat(e) : $
}, !0)
, w = b.map = {}
, T = b.register = function(t, e, i, r) {
for (var n, s, o, a, l = e.split(","), u = l.length, c = (i || "easeIn,easeOut,easeInOut").split(","); --u > -1; )
for (s = l[u],
n = r ? x("easing." + s, null, !0) : f.easing[s] || {},
o = c.length; --o > -1; )
a = c[o],
w[s + "." + a] = w[a + s] = n[a] = t.getRatio ? t : t[a] || new t
}
;
for (l = b.prototype,
l._calcEnd = !1,
l.getRatio = function(t) {
if (this._func)
return this._params[0] = t,
this._func.apply(null, this._params);
var e = this._type
, i = this._power
, r = 1 === e ? 1 - t : 2 === e ? t : t < .5 ? 2 * t : 2 * (1 - t);
return 1 === i ? r *= r : 2 === i ? r *= r * r : 3 === i ? r *= r * r * r : 4 === i && (r *= r * r * r * r),
1 === e ? 1 - r : 2 === e ? r : t < .5 ? r / 2 : 1 - r / 2
}
,
o = ["Linear", "Quad", "Cubic", "Quart", "Quint,Strong"],
a = o.length; --a > -1; )
l = o[a] + ",Power" + a,
T(new b(null,null,1,a), l, "easeOut", !0),
T(new b(null,null,2,a), l, "easeIn" + (0 === a ? ",easeNone" : "")),
T(new b(null,null,3,a), l, "easeInOut");
w.linear = f.easing.Linear.easeIn,
w.swing = f.easing.Quad.easeInOut;
var P = x("events.EventDispatcher", function(t) {
this._listeners = {},
this._eventTarget = t || this
});
l = P.prototype,
l.addEventListener = function(t, e, i, r, n) {
n = n || 0;
var s, o, a = this._listeners[t], l = 0;
for (this !== u || c || u.wake(),
null == a && (this._listeners[t] = a = []),
o = a.length; --o > -1; )
s = a[o],
s.c === e && s.s === i ? a.splice(o, 1) : 0 === l && s.pr < n && (l = o + 1);
a.splice(l, 0, {
c: e,
s: i,
up: r,
pr: n
})
}
,
l.removeEventListener = function(t, e) {
var i, r = this._listeners[t];
if (r)
for (i = r.length; --i > -1; )
if (r[i].c === e)
return void r.splice(i, 1)
}
,
l.dispatchEvent = function(t) {
var e, i, r, n = this._listeners[t];
if (n)
for (e = n.length,
e > 1 && (n = n.slice(0)),
i = this._eventTarget; --e > -1; )
r = n[e],
r && (r.up ? r.c.call(r.s || i, {
type: t,
target: i
}) : r.c.call(r.s || i))
}
;
var S = t.requestAnimationFrame
, O = t.cancelAnimationFrame
, j = Date.now || function() {
return (new Date).getTime()
}
, k = j();
for (o = ["ms", "moz", "webkit", "o"],
a = o.length; --a > -1 && !S; )
S = t[o[a] + "RequestAnimationFrame"],
O = t[o[a] + "CancelAnimationFrame"] || t[o[a] + "CancelRequestAnimationFrame"];
x("Ticker", function(t, e) {
var i, r, s, o, a, l = this, h = j(), f = !(e === !1 || !S) && "auto", d = 500, _ = 33, g = "tick", v = function(t) {
var e, n, u = j() - k;
u > d && (h += u - _),
k += u,
l.time = (k - h) / 1e3,
e = l.time - a,
(!i || e > 0 || t === !0) && (l.frame++,
a += e + (e >= o ? .004 : o - e),
n = !0),
t !== !0 && (s = r(v)),
n && l.dispatchEvent(g)
};
P.call(l),
l.time = l.frame = 0,
l.tick = function() {
v(!0)
}
,
l.lagSmoothing = function(t, e) {
d = t || 1 / p,
_ = Math.min(e, d, 0)
}
,
l.sleep = function() {
null != s && (f && O ? O(s) : clearTimeout(s),
r = m,
s = null,
l === u && (c = !1))
}
,
l.wake = function(t) {
null !== s ? l.sleep() : t ? h += -k + (k = j()) : l.frame > 10 && (k = j() - d + 5),
r = 0 === i ? m : f && S ? S : function(t) {
return setTimeout(t, 1e3 * (a - l.time) + 1 | 0)
}
,
l === u && (c = !0),
v(2)
}
,
l.fps = function(t) {
return arguments.length ? (i = t,
o = 1 / (i || 60),
a = this.time + o,
void l.wake()) : i
}
,
l.useRAF = function(t) {
return arguments.length ? (l.sleep(),
f = t,
void l.fps(i)) : f
}
,
l.fps(t),
setTimeout(function() {
"auto" === f && l.frame < 5 && "hidden" !== n.visibilityState && l.useRAF(!1)
}, 1500)
}),
l = f.Ticker.prototype = new f.events.EventDispatcher,
l.constructor = f.Ticker;
var R = x("core.Animation", function(t, e) {
if (this.vars = e = e || {},
this._duration = this._totalDuration = t || 0,
this._delay = Number(e.delay) || 0,
this._timeScale = 1,
this._active = e.immediateRender === !0,
this.data = e.data,
this._reversed = e.reversed === !0,
Z) {
c || u.wake();
var i = this.vars.useFrames ? V : Z;
i.add(this, i._time),
this.vars.paused && this.paused(!0)
}
});
u = R.ticker = new f.Ticker,
l = R.prototype,
l._dirty = l._gc = l._initted = l._paused = !1,
l._totalTime = l._time = 0,
l._rawPrevTime = -1,
l._next = l._last = l._onUpdate = l._timeline = l.timeline = null,
l._paused = !1;
var A = function() {
c && j() - k > 2e3 && u.wake(),
setTimeout(A, 2e3)
};
A(),
l.play = function(t, e) {
return null != t && this.seek(t, e),
this.reversed(!1).paused(!1)
}
,
l.pause = function(t, e) {
return null != t && this.seek(t, e),
this.paused(!0)
}
,
l.resume = function(t, e) {
return null != t && this.seek(t, e),
this.paused(!1)
}
,
l.seek = function(t, e) {
return this.totalTime(Number(t), e !== !1)
}
,
l.restart = function(t, e) {
return this.reversed(!1).paused(!1).totalTime(t ? -this._delay : 0, e !== !1, !0)
}
,
l.reverse = function(t, e) {
return null != t && this.seek(t || this.totalDuration(), e),
this.reversed(!0).paused(!1)
}
,
l.render = function(t, e, i) {}
,
l.invalidate = function() {
return this._time = this._totalTime = 0,
this._initted = this._gc = !1,
this._rawPrevTime = -1,
!this._gc && this.timeline || this._enabled(!0),
this
}
,
l.isActive = function() {
var t, e = this._timeline, i = this._startTime;
return !e || !this._gc && !this._paused && e.isActive() && (t = e.rawTime(!0)) >= i && t < i + this.totalDuration() / this._timeScale
}
,
l._enabled = function(t, e) {
return c || u.wake(),
this._gc = !t,
this._active = this.isActive(),
e !== !0 && (t && !this.timeline ? this._timeline.add(this, this._startTime - this._delay) : !t && this.timeline && this._timeline._remove(this, !0)),
!1
}
,
l._kill = function(t, e) {
return this._enabled(!1, !1)
}
,
l.kill = function(t, e) {
return this._kill(t, e),
this
}
,
l._uncache = function(t) {
for (var e = t ? this : this.timeline; e; )
e._dirty = !0,
e = e.timeline;
return this
}
,
l._swapSelfInParams = function(t) {
for (var e = t.length, i = t.concat(); --e > -1; )
"{self}" === t[e] && (i[e] = this);
return i
}
,
l._callback = function(t) {
var e = this.vars
, i = e[t]
, r = e[t + "Params"]
, n = e[t + "Scope"] || e.callbackScope || this
, s = r ? r.length : 0;
switch (s) {
case 0:
i.call(n);
break;
case 1:
i.call(n, r[0]);
break;
case 2:
i.call(n, r[0], r[1]);
break;
default:
i.apply(n, r)
}
}
,
l.eventCallback = function(t, e, i, r) {
if ("on" === (t || "").substr(0, 2)) {
var n = this.vars;
if (1 === arguments.length)
return n[t];
null == e ? delete n[t] : (n[t] = e,
n[t + "Params"] = _(i) && i.join("").indexOf("{self}") !== -1 ? this._swapSelfInParams(i) : i,
n[t + "Scope"] = r),
"onUpdate" === t && (this._onUpdate = e)
}
return this
}
,
l.delay = function(t) {
return arguments.length ? (this._timeline.smoothChildTiming && this.startTime(this._startTime + t - this._delay),
this._delay = t,
this) : this._delay
}
,
l.duration = function(t) {
return arguments.length ? (this._duration = this._totalDuration = t,
this._uncache(!0),
this._timeline.smoothChildTiming && this._time > 0 && this._time < this._duration && 0 !== t && this.totalTime(this._totalTime * (t / this._duration), !0),
this) : (this._dirty = !1,
this._duration)
}
,
l.totalDuration = function(t) {
return this._dirty = !1,
arguments.length ? this.duration(t) : this._totalDuration
}
,
l.time = function(t, e) {
return arguments.length ? (this._dirty && this.totalDuration(),
this.totalTime(t > this._duration ? this._duration : t, e)) : this._time
}
,
l.totalTime = function(t, e, i) {
if (c || u.wake(),
!arguments.length)
return this._totalTime;
if (this._timeline) {
if (t < 0 && !i && (t += this.totalDuration()),
this._timeline.smoothChildTiming) {
this._dirty && this.totalDuration();
var r = this._totalDuration
, n = this._timeline;
if (t > r && !i && (t = r),
this._startTime = (this._paused ? this._pauseTime : n._time) - (this._reversed ? r - t : t) / this._timeScale,
n._dirty || this._uncache(!1),
n._timeline)
for (; n._timeline; )
n._timeline._time !== (n._startTime + n._totalTime) / n._timeScale && n.totalTime(n._totalTime, !0),
n = n._timeline
}
this._gc && this._enabled(!0, !1),
this._totalTime === t && 0 !== this._duration || (E.length && H(),
this.render(t, e, !1),
E.length && H())
}
return this
}
,
l.progress = l.totalProgress = function(t, e) {
var i = this.duration();
return arguments.length ? this.totalTime(i * t, e) : i ? this._time / i : this.ratio
}
,
l.startTime = function(t) {
return arguments.length ? (t !== this._startTime && (this._startTime = t,
this.timeline && this.timeline._sortChildren && this.timeline.add(this, t - this._delay)),
this) : this._startTime
}
,
l.endTime = function(t) {
return this._startTime + (0 != t ? this.totalDuration() : this.duration()) / this._timeScale
}
,
l.timeScale = function(t) {
if (!arguments.length)
return this._timeScale;
if (t = t || p,
this._timeline && this._timeline.smoothChildTiming) {
var e = this._pauseTime
, i = e || 0 === e ? e : this._timeline.totalTime();
this._startTime = i - (i - this._startTime) * this._timeScale / t
}
return this._timeScale = t,
this._uncache(!1)
}
,
l.reversed = function(t) {
return arguments.length ? (t != this._reversed && (this._reversed = t,
this.totalTime(this._timeline && !this._timeline.smoothChildTiming ? this.totalDuration() - this._totalTime : this._totalTime, !0)),
this) : this._reversed
}
,
l.paused = function(t) {
if (!arguments.length)
return this._paused;
var e, i, r = this._timeline;
return t != this._paused && r && (c || t || u.wake(),
e = r.rawTime(),
i = e - this._pauseTime,
!t && r.smoothChildTiming && (this._startTime += i,
this._uncache(!1)),
this._pauseTime = t ? e : null,
this._paused = t,
this._active = this.isActive(),
!t && 0 !== i && this._initted && this.duration() && (e = r.smoothChildTiming ? this._totalTime : (e - this._startTime) / this._timeScale,
this.render(e, e === this._totalTime, !0))),
this._gc && !t && this._enabled(!0, !1),
this
}
;
var M = x("core.SimpleTimeline", function(t) {
R.call(this, 0, t),
this.autoRemoveChildren = this.smoothChildTiming = !0
});
l = M.prototype = new R,
l.constructor = M,
l.kill()._gc = !1,
l._first = l._last = l._recent = null,
l._sortChildren = !1,
l.add = l.insert = function(t, e, i, r) {
var n, s;
if (t._startTime = Number(e || 0) + t._delay,
t._paused && this !== t._timeline && (t._pauseTime = t._startTime + (this.rawTime() - t._startTime) / t._timeScale),
t.timeline && t.timeline._remove(t, !0),
t.timeline = t._timeline = this,
t._gc && t._enabled(!0, !0),
n = this._last,
this._sortChildren)
for (s = t._startTime; n && n._startTime > s; )
n = n._prev;
return n ? (t._next = n._next,
n._next = t) : (t._next = this._first,
this._first = t),
t._next ? t._next._prev = t : this._last = t,
t._prev = n,
this._recent = t,
this._timeline && this._uncache(!0),
this
}
,
l._remove = function(t, e) {
return t.timeline === this && (e || t._enabled(!1, !0),
t._prev ? t._prev._next = t._next : this._first === t && (this._first = t._next),
t._next ? t._next._prev = t._prev : this._last === t && (this._last = t._prev),
t._next = t._prev = t.timeline = null,
t === this._recent && (this._recent = this._last),
this._timeline && this._uncache(!0)),
this
}
,
l.render = function(t, e, i) {
var r, n = this._first;
for (this._totalTime = this._time = this._rawPrevTime = t; n; )
r = n._next,
(n._active || t >= n._startTime && !n._paused) && (n._reversed ? n.render((n._dirty ? n.totalDuration() : n._totalDuration) - (t - n._startTime) * n._timeScale, e, i) : n.render((t - n._startTime) * n._timeScale, e, i)),
n = r
}
,
l.rawTime = function() {
return c || u.wake(),
this._totalTime
}
;
var C = x("TweenLite", function(e, i, r) {
if (R.call(this, i, r),
this.render = C.prototype.render,
null == e)
throw "Cannot tween a null target.";
this.target = e = "string" != typeof e ? e : C.selector(e) || e;
var n, s, o, a = e.jquery || e.length && e !== t && e[0] && (e[0] === t || e[0].nodeType && e[0].style && !e.nodeType), l = this.vars.overwrite;
if (this._overwrite = l = null == l ? W[C.defaultOverwrite] : "number" == typeof l ? l >> 0 : W[l],
(a || e instanceof Array || e.push && _(e)) && "number" != typeof e[0])
for (this._targets = o = d(e),
this._propLookup = [],
this._siblings = [],
n = 0; n < o.length; n++)
s = o[n],
s ? "string" != typeof s ? s.length && s !== t && s[0] && (s[0] === t || s[0].nodeType && s[0].style && !s.nodeType) ? (o.splice(n--, 1),
this._targets = o = o.concat(d(s))) : (this._siblings[n] = Q(s, this, !1),
1 === l && this._siblings[n].length > 1 && tt(s, this, null, 1, this._siblings[n])) : (s = o[n--] = C.selector(s),
"string" == typeof s && o.splice(n + 1, 1)) : o.splice(n--, 1);
else
this._propLookup = {},
this._siblings = Q(e, this, !1),
1 === l && this._siblings.length > 1 && tt(e, this, null, 1, this._siblings);
(this.vars.immediateRender || 0 === i && 0 === this._delay && this.vars.immediateRender !== !1) && (this._time = -p,
this.render(Math.min(0, -this._delay)))
}, !0)
, D = function(e) {
return e && e.length && e !== t && e[0] && (e[0] === t || e[0].nodeType && e[0].style && !e.nodeType)
}
, F = function(t, e) {
var i, r = {};
for (i in t)
q[i] || i in e && "transform" !== i && "x" !== i && "y" !== i && "width" !== i && "height" !== i && "className" !== i && "border" !== i || !(!U[i] || U[i] && U[i]._autoCSS) || (r[i] = t[i],
delete t[i]);
t.css = r
};
l = C.prototype = new R,
l.constructor = C,
l.kill()._gc = !1,
l.ratio = 0,
l._firstPT = l._targets = l._overwrittenProps = l._startAt = null,
l._notifyPluginsOfEnabled = l._lazy = !1,
C.version = "1.19.1",
C.defaultEase = l._ease = new b(null,null,1,1),
C.defaultOverwrite = "auto",
C.ticker = u,
C.autoSleep = 120,
C.lagSmoothing = function(t, e) {
u.lagSmoothing(t, e)
}
,
C.selector = t.$ || t.jQuery || function(e) {
var i = t.$ || t.jQuery;
return i ? (C.selector = i,
i(e)) : "undefined" == typeof n ? e : n.querySelectorAll ? n.querySelectorAll(e) : n.getElementById("#" === e.charAt(0) ? e.substr(1) : e)
}
;
var E = []
, I = {}
, N = /(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi
, z = function(t) {
for (var e, i = this._firstPT, r = 1e-6; i; )
e = i.blob ? 1 === t ? this.end : t ? this.join("") : this.start : i.c * t + i.s,
i.m ? e = i.m(e, this._target || i.t) : e < r && e > -r && !i.blob && (e = 0),
i.f ? i.fp ? i.t[i.p](i.fp, e) : i.t[i.p](e) : i.t[i.p] = e,
i = i._next
}
, L = function(t, e, i, r) {
var n, s, o, a, l, u, c, h = [], f = 0, p = "", d = 0;
for (h.start = t,
h.end = e,
t = h[0] = t + "",
e = h[1] = e + "",
i && (i(h),
t = h[0],
e = h[1]),
h.length = 0,
n = t.match(N) || [],
s = e.match(N) || [],
r && (r._next = null,
r.blob = 1,
h._firstPT = h._applyPT = r),
l = s.length,
a = 0; a < l; a++)
c = s[a],
u = e.substr(f, e.indexOf(c, f) - f),
p += u || !a ? u : ",",
f += u.length,
d ? d = (d + 1) % 5 : "rgba(" === u.substr(-5) && (d = 1),
c === n[a] || n.length <= a ? p += c : (p && (h.push(p),
p = ""),
o = parseFloat(n[a]),
h.push(o),
h._firstPT = {
_next: h._firstPT,
t: h,
p: h.length - 1,
s: o,
c: ("=" === c.charAt(1) ? parseInt(c.charAt(0) + "1", 10) * parseFloat(c.substr(2)) : parseFloat(c) - o) || 0,
f: 0,
m: d && d < 4 ? Math.round : 0
}),
f += c.length;
return p += e.substr(f),
p && h.push(p),
h.setRatio = z,
h
}
, B = function(t, e, i, r, n, s, o, a, l) {
"function" == typeof r && (r = r(l || 0, t));
var u, c = typeof t[e], h = "function" !== c ? "" : e.indexOf("set") || "function" != typeof t["get" + e.substr(3)] ? e : "get" + e.substr(3), f = "get" !== i ? i : h ? o ? t[h](o) : t[h]() : t[e], p = "string" == typeof r && "=" === r.charAt(1), d = {
t: t,
p: e,
s: f,
f: "function" === c,
pg: 0,
n: n || e,
m: s ? "function" == typeof s ? s : Math.round : 0,
pr: 0,
c: p ? parseInt(r.charAt(0) + "1", 10) * parseFloat(r.substr(2)) : parseFloat(r) - f || 0
};
if (("number" != typeof f || "number" != typeof r && !p) && (o || isNaN(f) || !p && isNaN(r) || "boolean" == typeof f || "boolean" == typeof r ? (d.fp = o,
u = L(f, p ? d.s + d.c : r, a || C.defaultStringFilter, d),
d = {
t: u,
p: "setRatio",
s: 0,
c: 1,
f: 2,
pg: 0,
n: n || e,
pr: 0,
m: 0
}) : (d.s = parseFloat(f),
p || (d.c = parseFloat(r) - d.s || 0))),
d.c)
return (d._next = this._firstPT) && (d._next._prev = d),
this._firstPT = d,
d
}
, X = C._internals = {
isArray: _,
isSelector: D,
lazyTweens: E,
blobDif: L
}
, U = C._plugins = {}
, Y = X.tweenLookup = {}
, G = 0
, q = X.reservedProps = {
ease: 1,
delay: 1,
overwrite: 1,
onComplete: 1,
onCompleteParams: 1,
onCompleteScope: 1,
useFrames: 1,
runBackwards: 1,
startAt: 1,
onUpdate: 1,
onUpdateParams: 1,
onUpdateScope: 1,
onStart: 1,
onStartParams: 1,
onStartScope: 1,
onReverseComplete: 1,
onReverseCompleteParams: 1,
onReverseCompleteScope: 1,
onRepeat: 1,
onRepeatParams: 1,
onRepeatScope: 1,
easeParams: 1,
yoyo: 1,
immediateRender: 1,
repeat: 1,
repeatDelay: 1,
data: 1,
paused: 1,
reversed: 1,
autoCSS: 1,
lazy: 1,
onOverwrite: 1,
callbackScope: 1,
stringFilter: 1,
id: 1
}
, W = {
none: 0,
all: 1,
auto: 2,
concurrent: 3,
allOnStart: 4,
preexisting: 5,
"true": 1,
"false": 0
}
, V = R._rootFramesTimeline = new M
, Z = R._rootTimeline = new M
, K = 30
, H = X.lazyRender = function() {
var t, e = E.length;
for (I = {}; --e > -1; )
t = E[e],
t && t._lazy !== !1 && (t.render(t._lazy[0], t._lazy[1], !0),
t._lazy = !1);
E.length = 0
}
;
Z._startTime = u.time,
V._startTime = u.frame,
Z._active = V._active = !0,
setTimeout(H, 1),
R._updateRoot = C.render = function() {
var t, e, i;
if (E.length && H(),
Z.render((u.time - Z._startTime) * Z._timeScale, !1, !1),
V.render((u.frame - V._startTime) * V._timeScale, !1, !1),
E.length && H(),
u.frame >= K) {
K = u.frame + (parseInt(C.autoSleep, 10) || 120);
for (i in Y) {
for (e = Y[i].tweens,
t = e.length; --t > -1; )
e[t]._gc && e.splice(t, 1);
0 === e.length && delete Y[i]
}
if (i = Z._first,
(!i || i._paused) && C.autoSleep && !V._first && 1 === u._listeners.tick.length) {
for (; i && i._paused; )
i = i._next;
i || u.sleep()
}
}
}
,
u.addEventListener("tick", R._updateRoot);
var Q = function(t, e, i) {
var r, n, s = t._gsTweenID;
if (Y[s || (t._gsTweenID = s = "t" + G++)] || (Y[s] = {
target: t,
tweens: []
}),
e && (r = Y[s].tweens,
r[n = r.length] = e,
i))
for (; --n > -1; )
r[n] === e && r.splice(n, 1);
return Y[s].tweens
}
, J = function(t, e, i, r) {
var n, s, o = t.vars.onOverwrite;
return o && (n = o(t, e, i, r)),
o = C.onOverwrite,
o && (s = o(t, e, i, r)),
n !== !1 && s !== !1
}
, tt = function(t, e, i, r, n) {
var s, o, a, l;
if (1 === r || r >= 4) {
for (l = n.length,
s = 0; s < l; s++)
if ((a = n[s]) !== e)
a._gc || a._kill(null, t, e) && (o = !0);
else if (5 === r)
break;
return o
}
var u, c = e._startTime + p, h = [], f = 0, d = 0 === e._duration;
for (s = n.length; --s > -1; )
(a = n[s]) === e || a._gc || a._paused || (a._timeline !== e._timeline ? (u = u || et(e, 0, d),
0 === et(a, u, d) && (h[f++] = a)) : a._startTime <= c && a._startTime + a.totalDuration() / a._timeScale > c && ((d || !a._initted) && c - a._startTime <= 2e-10 || (h[f++] = a)));
for (s = f; --s > -1; )
if (a = h[s],
2 === r && a._kill(i, t, e) && (o = !0),
2 !== r || !a._firstPT && a._initted) {
if (2 !== r && !J(a, e))
continue;
a._enabled(!1, !1) && (o = !0)
}
return o
}
, et = function(t, e, i) {
for (var r = t._timeline, n = r._timeScale, s = t._startTime; r._timeline; ) {
if (s += r._startTime,
n *= r._timeScale,
r._paused)
return -100;
r = r._timeline
}
return s /= n,
s > e ? s - e : i && s === e || !t._initted && s - e < 2 * p ? p : (s += t.totalDuration() / t._timeScale / n) > e + p ? 0 : s - e - p
};
l._init = function() {
var t, e, i, r, n, s, o = this.vars, a = this._overwrittenProps, l = this._duration, u = !!o.immediateRender, c = o.ease;
if (o.startAt) {
this._startAt && (this._startAt.render(-1, !0),
this._startAt.kill()),
n = {};
for (r in o.startAt)
n[r] = o.startAt[r];
if (n.overwrite = !1,
n.immediateRender = !0,
n.lazy = u && o.lazy !== !1,
n.startAt = n.delay = null,
this._startAt = C.to(this.target, 0, n),
u)
if (this._time > 0)
this._startAt = null;
else if (0 !== l)
return
} else if (o.runBackwards && 0 !== l)
if (this._startAt)
this._startAt.render(-1, !0),
this._startAt.kill(),
this._startAt = null;
else {
0 !== this._time && (u = !1),
i = {};
for (r in o)
q[r] && "autoCSS" !== r || (i[r] = o[r]);
if (i.overwrite = 0,
i.data = "isFromStart",
i.lazy = u && o.lazy !== !1,
i.immediateRender = u,
this._startAt = C.to(this.target, 0, i),
u) {
if (0 === this._time)
return
} else
this._startAt._init(),
this._startAt._enabled(!1),
this.vars.immediateRender && (this._startAt = null)
}
if (this._ease = c = c ? c instanceof b ? c : "function" == typeof c ? new b(c,o.easeParams) : w[c] || C.defaultEase : C.defaultEase,
o.easeParams instanceof Array && c.config && (this._ease = c.config.apply(c, o.easeParams)),
this._easeType = this._ease._type,
this._easePower = this._ease._power,
this._firstPT = null,
this._targets)
for (s = this._targets.length,
t = 0; t < s; t++)
this._initProps(this._targets[t], this._propLookup[t] = {}, this._siblings[t], a ? a[t] : null, t) && (e = !0);
else
e = this._initProps(this.target, this._propLookup, this._siblings, a, 0);
if (e && C._onPluginEvent("_onInitAllProps", this),
a && (this._firstPT || "function" != typeof this.target && this._enabled(!1, !1)),
o.runBackwards)
for (i = this._firstPT; i; )
i.s += i.c,
i.c = -i.c,
i = i._next;
this._onUpdate = o.onUpdate,
this._initted = !0
}
,
l._initProps = function(e, i, r, n, s) {
var o, a, l, u, c, h;
if (null == e)
return !1;
I[e._gsTweenID] && H(),
this.vars.css || e.style && e !== t && e.nodeType && U.css && this.vars.autoCSS !== !1 && F(this.vars, e);
for (o in this.vars)
if (h = this.vars[o],
q[o])
h && (h instanceof Array || h.push && _(h)) && h.join("").indexOf("{self}") !== -1 && (this.vars[o] = h = this._swapSelfInParams(h, this));
else if (U[o] && (u = new U[o])._onInitTween(e, this.vars[o], this, s)) {
for (this._firstPT = c = {
_next: this._firstPT,
t: u,
p: "setRatio",
s: 0,
c: 1,
f: 1,
n: o,
pg: 1,
pr: u._priority,
m: 0
},
a = u._overwriteProps.length; --a > -1; )
i[u._overwriteProps[a]] = this._firstPT;
(u._priority || u._onInitAllProps) && (l = !0),
(u._onDisable || u._onEnable) && (this._notifyPluginsOfEnabled = !0),
c._next && (c._next._prev = c)
} else
i[o] = B.call(this, e, o, "get", h, o, 0, null, this.vars.stringFilter, s);
return n && this._kill(n, e) ? this._initProps(e, i, r, n, s) : this._overwrite > 1 && this._firstPT && r.length > 1 && tt(e, this, i, this._overwrite, r) ? (this._kill(i, e),
this._initProps(e, i, r, n, s)) : (this._firstPT && (this.vars.lazy !== !1 && this._duration || this.vars.lazy && !this._duration) && (I[e._gsTweenID] = !0),
l)
}
,
l.render = function(t, e, i) {
var r, n, s, o, a = this._time, l = this._duration, u = this._rawPrevTime;
if (t >= l - 1e-7 && t >= 0)
this._totalTime = this._time = l,
this.ratio = this._ease._calcEnd ? this._ease.getRatio(1) : 1,
this._reversed || (r = !0,
n = "onComplete",
i = i || this._timeline.autoRemoveChildren),
0 === l && (this._initted || !this.vars.lazy || i) && (this._startTime === this._timeline._duration && (t = 0),
(u < 0 || t <= 0 && t >= -1e-7 || u === p && "isPause" !== this.data) && u !== t && (i = !0,
u > p && (n = "onReverseComplete")),
this._rawPrevTime = o = !e || t || u === t ? t : p);
else if (t < 1e-7)
this._totalTime = this._time = 0,
this.ratio = this._ease._calcEnd ? this._ease.getRatio(0) : 0,
(0 !== a || 0 === l && u > 0) && (n = "onReverseComplete",
r = this._reversed),
t < 0 && (this._active = !1,
0 === l && (this._initted || !this.vars.lazy || i) && (u >= 0 && (u !== p || "isPause" !== this.data) && (i = !0),
this._rawPrevTime = o = !e || t || u === t ? t : p)),
this._initted || (i = !0);
else if (this._totalTime = this._time = t,
this._easeType) {
var c = t / l
, h = this._easeType
, f = this._easePower;
(1 === h || 3 === h && c >= .5) && (c = 1 - c),
3 === h && (c *= 2),
1 === f ? c *= c : 2 === f ? c *= c * c : 3 === f ? c *= c * c * c : 4 === f && (c *= c * c * c * c),
1 === h ? this.ratio = 1 - c : 2 === h ? this.ratio = c : t / l < .5 ? this.ratio = c / 2 : this.ratio = 1 - c / 2
} else
this.ratio = this._ease.getRatio(t / l);
if (this._time !== a || i) {
if (!this._initted) {
if (this._init(),
!this._initted || this._gc)
return;
if (!i && this._firstPT && (this.vars.lazy !== !1 && this._duration || this.vars.lazy && !this._duration))
return this._time = this._totalTime = a,
this._rawPrevTime = u,
E.push(this),
void (this._lazy = [t, e]);
this._time && !r ? this.ratio = this._ease.getRatio(this._time / l) : r && this._ease._calcEnd && (this.ratio = this._ease.getRatio(0 === this._time ? 0 : 1))
}
for (this._lazy !== !1 && (this._lazy = !1),
this._active || !this._paused && this._time !== a && t >= 0 && (this._active = !0),
0 === a && (this._startAt && (t >= 0 ? this._startAt.render(t, e, i) : n || (n = "_dummyGS")),
this.vars.onStart && (0 === this._time && 0 !== l || e || this._callback("onStart"))),
s = this._firstPT; s; )
s.f ? s.t[s.p](s.c * this.ratio + s.s) : s.t[s.p] = s.c * this.ratio + s.s,
s = s._next;
this._onUpdate && (t < 0 && this._startAt && t !== -1e-4 && this._startAt.render(t, e, i),
e || (this._time !== a || r || i) && this._callback("onUpdate")),
n && (this._gc && !i || (t < 0 && this._startAt && !this._onUpdate && t !== -1e-4 && this._startAt.render(t, e, i),
r && (this._timeline.autoRemoveChildren && this._enabled(!1, !1),
this._active = !1),
!e && this.vars[n] && this._callback(n),
0 === l && this._rawPrevTime === p && o !== p && (this._rawPrevTime = 0)))
}
}
,
l._kill = function(t, e, i) {
if ("all" === t && (t = null),
null == t && (null == e || e === this.target))
return this._lazy = !1,
this._enabled(!1, !1);
e = "string" != typeof e ? e || this._targets || this.target : C.selector(e) || e;
var r, n, s, o, a, l, u, c, h, f = i && this._time && i._startTime === this._startTime && this._timeline === i._timeline;
if ((_(e) || D(e)) && "number" != typeof e[0])
for (r = e.length; --r > -1; )
this._kill(t, e[r], i) && (l = !0);
else {
if (this._targets) {
for (r = this._targets.length; --r > -1; )
if (e === this._targets[r]) {
a = this._propLookup[r] || {},
this._overwrittenProps = this._overwrittenProps || [],
n = this._overwrittenProps[r] = t ? this._overwrittenProps[r] || {} : "all";
break
}
} else {
if (e !== this.target)
return !1;
a = this._propLookup,
n = this._overwrittenProps = t ? this._overwrittenProps || {} : "all"
}
if (a) {
if (u = t || a,
c = t !== n && "all" !== n && t !== a && ("object" != typeof t || !t._tempKill),
i && (C.onOverwrite || this.vars.onOverwrite)) {
for (s in u)
a[s] && (h || (h = []),
h.push(s));
if ((h || !t) && !J(this, i, e, h))
return !1
}
for (s in u)
(o = a[s]) && (f && (o.f ? o.t[o.p](o.s) : o.t[o.p] = o.s,
l = !0),
o.pg && o.t._kill(u) && (l = !0),
o.pg && 0 !== o.t._overwriteProps.length || (o._prev ? o._prev._next = o._next : o === this._firstPT && (this._firstPT = o._next),
o._next && (o._next._prev = o._prev),
o._next = o._prev = null),
delete a[s]),
c && (n[s] = 1);
!this._firstPT && this._initted && this._enabled(!1, !1)
}
}
return l
}
,
l.invalidate = function() {
return this._notifyPluginsOfEnabled && C._onPluginEvent("_onDisable", this),
this._firstPT = this._overwrittenProps = this._startAt = this._onUpdate = null,
this._notifyPluginsOfEnabled = this._active = this._lazy = !1,
this._propLookup = this._targets ? {} : [],
R.prototype.invalidate.call(this),
this.vars.immediateRender && (this._time = -p,
this.render(Math.min(0, -this._delay))),
this
}
,
l._enabled = function(t, e) {
if (c || u.wake(),
t && this._gc) {
var i, r = this._targets;
if (r)
for (i = r.length; --i > -1; )
this._siblings[i] = Q(r[i], this, !0);
else
this._siblings = Q(this.target, this, !0)
}
return R.prototype._enabled.call(this, t, e),
!(!this._notifyPluginsOfEnabled || !this._firstPT) && C._onPluginEvent(t ? "_onEnable" : "_onDisable", this)
}
,
C.to = function(t, e, i) {
return new C(t,e,i)
}
,
C.from = function(t, e, i) {
return i.runBackwards = !0,
i.immediateRender = 0 != i.immediateRender,
new C(t,e,i)
}
,
C.fromTo = function(t, e, i, r) {
return r.startAt = i,
r.immediateRender = 0 != r.immediateRender && 0 != i.immediateRender,
new C(t,e,r)
}
,
C.delayedCall = function(t, e, i, r, n) {
return new C(e,0,{
delay: t,
onComplete: e,
onCompleteParams: i,
callbackScope: r,
onReverseComplete: e,
onReverseCompleteParams: i,
immediateRender: !1,
lazy: !1,
useFrames: n,
overwrite: 0
})
}
,
C.set = function(t, e) {
return new C(t,0,e)
}
,
C.getTweensOf = function(t, e) {
if (null == t)
return [];
t = "string" != typeof t ? t : C.selector(t) || t;
var i, r, n, s;
if ((_(t) || D(t)) && "number" != typeof t[0]) {
for (i = t.length,
r = []; --i > -1; )
r = r.concat(C.getTweensOf(t[i], e));
for (i = r.length; --i > -1; )
for (s = r[i],
n = i; --n > -1; )
s === r[n] && r.splice(i, 1)
} else
for (r = Q(t).concat(),
i = r.length; --i > -1; )
(r[i]._gc || e && !r[i].isActive()) && r.splice(i, 1);
return r
}
,
C.killTweensOf = C.killDelayedCallsTo = function(t, e, i) {
"object" == typeof e && (i = e,
e = !1);
for (var r = C.getTweensOf(t, e), n = r.length; --n > -1; )
r[n]._kill(i, t)
}
;
var it = x("plugins.TweenPlugin", function(t, e) {
this._overwriteProps = (t || "").split(","),
this._propName = this._overwriteProps[0],
this._priority = e || 0,
this._super = it.prototype
}, !0);
if (l = it.prototype,
it.version = "1.19.0",
it.API = 2,
l._firstPT = null,
l._addTween = B,
l.setRatio = z,
l._kill = function(t) {
var e, i = this._overwriteProps, r = this._firstPT;
if (null != t[this._propName])
this._overwriteProps = [];
else
for (e = i.length; --e > -1; )
null != t[i[e]] && i.splice(e, 1);
for (; r; )
null != t[r.n] && (r._next && (r._next._prev = r._prev),
r._prev ? (r._prev._next = r._next,
r._prev = null) : this._firstPT === r && (this._firstPT = r._next)),
r = r._next;
return !1
}
,
l._mod = l._roundProps = function(t) {
for (var e, i = this._firstPT; i; )
e = t[this._propName] || null != i.n && t[i.n.split(this._propName + "_").join("")],
e && "function" == typeof e && (2 === i.f ? i.t._applyPT.m = e : i.m = e),
i = i._next
}
,
C._onPluginEvent = function(t, e) {
var i, r, n, s, o, a = e._firstPT;
if ("_onInitAllProps" === t) {
for (; a; ) {
for (o = a._next,
r = n; r && r.pr > a.pr; )
r = r._next;
(a._prev = r ? r._prev : s) ? a._prev._next = a : n = a,
(a._next = r) ? r._prev = a : s = a,
a = o
}
a = e._firstPT = n
}
for (; a; )
a.pg && "function" == typeof a.t[t] && a.t[t]() && (i = !0),
a = a._next;
return i
}
,
it.activate = function(t) {
for (var e = t.length; --e > -1; )
t[e].API === it.API && (U[(new t[e])._propName] = t[e]);
return !0
}
,
y.plugin = function(t) {
if (!(t && t.propName && t.init && t.API))
throw "illegal plugin definition.";
var e, i = t.propName, r = t.priority || 0, n = t.overwriteProps, s = {
init: "_onInitTween",
set: "setRatio",
kill: "_kill",
round: "_mod",
mod: "_mod",
initAll: "_onInitAllProps"
}, o = x("plugins." + i.charAt(0).toUpperCase() + i.substr(1) + "Plugin", function() {
it.call(this, i, r),
this._overwriteProps = n || []
}, t.global === !0), a = o.prototype = new it(i);
a.constructor = o,
o.API = t.API;
for (e in s)
"function" == typeof t[e] && (a[s[e]] = t[e]);
return o.version = t.version,
it.activate([o]),
o
}
,
o = t._gsQueue) {
for (a = 0; a < o.length; a++)
o[a]();
for (l in g)
g[l].func || t.console.log("GSAP encountered missing dependency: " + l)
}
c = !1
}
}("undefined" != typeof e && e.exports && "undefined" != typeof t ? t : this || window, "TweenMax")
}
).call(this, "undefined" != typeof global ? global : "undefined" != typeof self ? self : "undefined" != typeof window ? window : {})
}
, {}],
204: [function(t, e, i) {
"use strict";
function r(t, e) {
var i = document.createElement("canvas");
return i.width = t,
i.height = e,
i
}
Object.defineProperty(i, "__esModule", {
value: !0
}),
i["default"] = r,
e.exports = i["default"]
}
, {}],
205: [function(t, e, i) {
"use strict";
function r(t) {
if (t && t.__esModule)
return t;
var e = {};
if (null != t)
for (var i in t)
Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
return e["default"] = t,
e
}
function n(t, e, i, r) {
this.init(t, e, i, r)
}
Object.defineProperty(i, "__esModule", {
value: !0
});
var s = t("./webgl")
, o = r(s);
n.prototype = {
canvas: null,
gl: null,
program: null,
width: 0,
height: 0,
init: function(t, e, i, r) {
this.canvas = t,
this.width = t.width,
this.height = t.height,
this.gl = o.getContext(t, e),
this.program = this.createProgram(i, r),
this.useProgram(this.program)
},
createProgram: function(t, e) {
var i = o.createProgram(this.gl, t, e);
return i
},
useProgram: function(t) {
this.program = t,
this.gl.useProgram(t)
},
createTexture: function(t, e) {
return o.createTexture(this.gl, t, e)
},
createUniform: function(t, e) {
for (var i = arguments.length, r = Array(i > 2 ? i - 2 : 0), n = 2; n < i; n++)
r[n - 2] = arguments[n];
o.createUniform.apply(o, [this.gl, this.program, t, e].concat(r))
},
activeTexture: function(t) {
o.activeTexture(this.gl, t)
},
updateTexture: function(t) {
o.updateTexture(this.gl, t)
},
draw: function() {
o.setRectangle(this.gl, -1, -1, 2, 2),
this.gl.drawArrays(this.gl.TRIANGLES, 0, 6)
}
},
i["default"] = n,
e.exports = i["default"]
}
, {
"./webgl": 212
}],
206: [function(t, e, i) {
"use strict";
function r(t, e, i) {
return new Promise(function(r, n) {
"string" == typeof t && (t = {
name: "image" + e,
src: t
});
var s = new Image;
t.img = s,
s.addEventListener("load", function(n) {
"function" == typeof i && i.call(null, s, e),
r(t)
}),
s.src = t.src
}
)
}
function n(t, e) {
return Promise.all(t.map(function(t, i) {
return r(t, i, e)
}))
}
function s(t, e) {
return new Promise(function(i, r) {
n(t, e).then(function(t) {
var e = {};
t.forEach(function(t) {
e[t.name] = {
img: t.img,
src: t.src
}
}),
i(e)
})
}
)
}
Object.defineProperty(i, "__esModule", {
value: !0
}),
i["default"] = s,
e.exports = i["default"]
}
, {}],
207: [function(t, e, i) {
"use strict";
function r(t) {
return t && t.__esModule ? t : {
"default": t
}
}
function n() {
(0,
y["default"])([{
name: "dropAlpha",
src: "img/drop-alpha.png"
}, {
name: "dropColor",
src: "img/drop-color.png"
}, {
name: "textureRainFg",
src: "img/weather/texture-rain-fg.png"
}, {
name: "textureRainBg",
src: "img/weather/texture-rain-bg.png"
}, {
name: "textureStormLightningFg",
src: "img/weather/texture-storm-lightning-fg.png"
}, {
name: "textureStormLightningBg",
src: "img/weather/texture-storm-lightning-bg.png"
}, {
name: "textureFalloutFg",
src: "img/weather/texture-fallout-fg.png"
}, {
name: "textureFalloutBg",
src: "img/weather/texture-fallout-bg.png"
}, {
name: "textureSunFg",
src: "img/weather/texture-sun-fg.png"
}, {
name: "textureSunBg",
src: "img/weather/texture-sun-bg.png"
}, {
name: "textureDrizzleFg",
src: "img/weather/texture-drizzle-fg.png"
}, {
name: "textureDrizzleBg",
src: "img/weather/texture-drizzle-bg.png"
}]).then(function(t) {
O = t.textureRainFg.img,
j = t.textureRainBg.img,
A = t.textureFalloutFg.img,
M = t.textureFalloutBg.img,
k = t.textureStormLightningFg.img,
R = t.textureStormLightningBg.img,
C = t.textureSunFg.img,
D = t.textureSunBg.img,
F = t.textureDrizzleFg.img,
E = t.textureDrizzleBg.img,
I = t.dropColor.img,
N = t.dropAlpha.img,
s()
})
}
function s() {
W = document.querySelector("#rainCanvas");
var t = window.devicePixelRatio;
W.width = window.innerWidth * t,
W.height = window.innerHeight * t,
W.style.width = window.innerWidth + "px",
W.style.height = window.innerHeight + "px",
G = new g["default"](W.width,W.height,t,N,I,{
trailRate: 1,
trailScaleRange: [.2, .45],
collisionRadius: .45,
dropletsCleaningRadiusMultiplier: .28
}),
z = (0,
$["default"])(Y.width, Y.height),
L = z.getContext("2d"),
B = (0,
$["default"])(U.width, U.height),
X = B.getContext("2d"),
p(O, j),
q = new m["default"](W,G.canvas,z,B,null,{
brightness: 1.04,
alphaMultiply: 6,
alphaSubtract: 3
}),
o()
}
function o() {
a(),
u(),
l()
}
function a() {
document.addEventListener("mousemove", function(t) {
var e = t.pageX
, i = t.pageY;
w["default"].to(V, 1, {
x: e / W.width * 2 - 1,
y: i / W.height * 2 - 1,
ease: Quint.easeOut,
onUpdate: function() {
q.parallaxX = V.x,
q.parallaxY = V.y
}
})
})
}
function l() {
setInterval(function() {
(0,
S.chance)(K.flashChance) && f(K.bg, K.fg, K.flashBg, K.flashFg)
}, 500)
}
function u() {
c(),
window.addEventListener("hashchange", function(t) {
h()
}),
h()
}
function c() {
function t(t) {
return Object.assign({}, e, t)
}
var e = {
raining: !0,
minR: 20,
maxR: 50,
rainChance: .35,
rainLimit: 6,
dropletsRate: 50,
dropletsSize: [3, 5.5],
trailRate: 1,
trailScaleRange: [.25, .35],
fg: O,
bg: j,
flashFg: null,
flashBg: null,
flashChance: 0,
collisionRadiusIncrease: 2e-4
};
Z = {
rain: t({
rainChance: .35,
dropletsRate: 50,
raining: !0,
fg: O,
bg: j
}),
storm: t({
maxR: 55,
rainChance: .4,
dropletsRate: 80,
dropletsSize: [3, 5.5],
trailRate: 2.5,
trailScaleRange: [.25, .4],
fg: O,
bg: j,
flashFg: k,
flashBg: R,
flashChance: .1
}),
fallout: t({
minR: 30,
maxR: 60,
rainChance: .35,
dropletsRate: 20,
trailRate: 4,
fg: A,
bg: M,
collisionRadiusIncrease: 0
}),
drizzle: t({
minR: 10,
maxR: 40,
rainChance: .15,
rainLimit: 2,
dropletsRate: 10,
dropletsSize: [3.5, 6],
fg: F,
bg: E
}),
sunny: t({
rainChance: 0,
rainLimit: 0,
droplets: 0,
raining: !1,
fg: C,
bg: D
})
}
}
function h() {
var t = window.location.hash
, e = null
, i = null;
"" != t && (e = document.querySelector(t)),
null == e && (e = document.querySelector(".slide"),
t = "#" + e.getAttribute("id")),
i = document.querySelector("[href='" + t + "']");
var r = Z[e.getAttribute("data-weather")];
K = r,
G.options = Object.assign(G.options, r),
G.clearDrops(),
w["default"].fromTo(H, 1, {
v: 0
}, {
v: 1,
onUpdate: function() {
p(r.fg, r.bg, H.v),
q.updateTextures()
}
});
var n = document.querySelector(".slide--current");
null != n && n.classList.remove("slide--current");
var s = document.querySelector(".nav-item--current");
null != s && s.classList.remove("nav-item--current"),
e.classList.add("slide--current"),
i.classList.add("nav-item--current")
}
function f(t, e, i, r) {
function n(n) {
var o = arguments.length <= 1 || void 0 === arguments[1] ? .025 : arguments[1];
return new Promise(function(a, l) {
w["default"].to(s, o, {
v: n,
ease: Quint.easeOut,
onUpdate: function() {
p(e, t),
p(r, i, s.v),
q.updateTextures()
},
onComplete: function() {
a()
}
})
}
)
}
var s = {
v: 0
}
, o = n(1);
(0,
P["default"])((0,
S.random)(2, 7), function(t) {
o = o.then(function() {
return n((0,
S.random)(.1, 1))
})
}),
o = o.then(function() {
return n(1, .1)
}).then(function() {
n(0, .25)
})
}
function p(t, e) {
var i = arguments.length <= 2 || void 0 === arguments[2] ? 1 : arguments[2];
L.globalAlpha = i,
L.drawImage(t, 0, 0, Y.width, Y.height),
X.globalAlpha = i,
X.drawImage(e, 0, 0, U.width, U.height)
}
t("core-js");
var d = t("./rain-renderer")
, m = r(d)
, _ = t("./raindrops")
, g = r(_)
, v = t("./image-loader")
, y = r(v)
, x = t("./create-canvas")
, $ = r(x)
, b = t("gsap")
, w = r(b)
, T = t("./times")
, P = r(T)
, S = t("./random")
, O = void 0
, j = void 0
, k = void 0
, R = void 0
, A = void 0
, M = void 0
, C = void 0
, D = void 0
, F = void 0
, E = void 0
, I = void 0
, N = void 0
, z = void 0
, L = void 0
, B = void 0
, X = void 0
, U = {
width: 384,
height: 256
}
, Y = {
width: 96,
height: 64
}
, G = void 0
, q = void 0
, W = void 0
, V = {
x: 0,
y: 0
}
, Z = null
, K = null
, H = {
v: 0
};
n()
}
, {
"./create-canvas": 204,
"./image-loader": 206,
"./rain-renderer": 208,
"./raindrops": 209,
"./random": 210,
"./times": 211,
"core-js": 1,
gsap: 203
}],
208: [function(t, e, i) {
"use strict";
function r(t) {
return t && t.__esModule ? t : {
"default": t
}
}
function n(t) {
if (t && t.__esModule)
return t;
var e = {};
if (null != t)
for (var i in t)
Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
return e["default"] = t,
e
}
function s(t, e, i, r) {
var n = arguments.length <= 4 || void 0 === arguments[4] ? null : arguments[4]
, s = arguments.length <= 5 || void 0 === arguments[5] ? {} : arguments[5];
this.canvas = t,
this.canvasLiquid = e,
this.imageShine = n,
this.imageFg = i,
this.imageBg = r,
this.options = Object.assign({}, d, s),
this.init()
}
Object.defineProperty(i, "__esModule", {
value: !0
});
var o = t("./webgl")
, a = (n(o),
t("./gl-obj"))
, l = r(a)
, u = t("./image-loader")
, c = (r(u),
t("./create-canvas"))
, h = r(c)
, f = "precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 a_position;\n\nvoid main() {\n gl_Position = vec4(a_position,0.0,1.0);\n}\n"
, p = 'precision mediump float;\n#define GLSLIFY 1\n\n// textures\nuniform sampler2D u_waterMap;\nuniform sampler2D u_textureShine;\nuniform sampler2D u_textureFg;\nuniform sampler2D u_textureBg;\n\n// the texCoords passed in from the vertex shader.\nvarying vec2 v_texCoord;\nuniform vec2 u_resolution;\nuniform vec2 u_parallax;\nuniform float u_parallaxFg;\nuniform float u_parallaxBg;\nuniform float u_textureRatio;\nuniform bool u_renderShine;\nuniform bool u_renderShadow;\nuniform float u_minRefraction;\nuniform float u_refractionDelta;\nuniform float u_brightness;\nuniform float u_alphaMultiply;\nuniform float u_alphaSubtract;\n\n// alpha-blends two colors\nvec4 blend(vec4 bg,vec4 fg){\n vec3 bgm=bg.rgb*bg.a;\n vec3 fgm=fg.rgb*fg.a;\n float ia=1.0-fg.a;\n float a=(fg.a + bg.a * ia);\n vec3 rgb;\n if(a!=0.0){\n rgb=(fgm + bgm * ia) / a;\n }else{\n rgb=vec3(0.0,0.0,0.0);\n }\n return vec4(rgb,a);\n}\n\nvec2 pixel(){\n return vec2(1.0,1.0)/u_resolution;\n}\n\nvec2 parallax(float v){\n return u_parallax*pixel()*v;\n}\n\nvec2 texCoord(){\n return vec2(gl_FragCoord.x, u_resolution.y-gl_FragCoord.y)/u_resolution;\n}\n\n// scales the bg up and proportionally to fill the container\nvec2 scaledTexCoord(){\n float ratio=u_resolution.x/u_resolution.y;\n vec2 scale=vec2(1.0,1.0);\n vec2 offset=vec2(0.0,0.0);\n float ratioDelta=ratio-u_textureRatio;\n if(ratioDelta>=0.0){\n scale.y=(1.0+ratioDelta);\n offset.y=ratioDelta/2.0;\n }else{\n scale.x=(1.0-ratioDelta);\n offset.x=-ratioDelta/2.0;\n }\n return (texCoord()+offset)/scale;\n}\n\n// get color from fg\nvec4 fgColor(float x, float y){\n float p2=u_parallaxFg*2.0;\n vec2 scale=vec2(\n (u_resolution.x+p2)/u_resolution.x,\n (u_resolution.y+p2)/u_resolution.y\n );\n\n vec2 scaledTexCoord=texCoord()/scale;\n vec2 offset=vec2(\n (1.0-(1.0/scale.x))/2.0,\n (1.0-(1.0/scale.y))/2.0\n );\n\n return texture2D(u_waterMap,\n (scaledTexCoord+offset)+(pixel()*vec2(x,y))+parallax(u_parallaxFg)\n );\n}\n\nvoid main() {\n vec4 bg=texture2D(u_textureBg,scaledTexCoord()+parallax(u_parallaxBg));\n\n vec4 cur = fgColor(0.0,0.0);\n\n float d=cur.b; // "thickness"\n float x=cur.g;\n float y=cur.r;\n\n float a=clamp(cur.a*u_alphaMultiply-u_alphaSubtract, 0.0,1.0);\n\n vec2 refraction = (vec2(x,y)-0.5)*2.0;\n vec2 refractionParallax=parallax(u_parallaxBg-u_parallaxFg);\n vec2 refractionPos = scaledTexCoord()\n + (pixel()*refraction*(u_minRefraction+(d*u_refractionDelta)))\n + refractionParallax;\n\n vec4 tex=texture2D(u_textureFg,refractionPos);\n\n if(u_renderShine){\n float maxShine=490.0;\n float minShine=maxShine*0.18;\n vec2 shinePos=vec2(0.5,0.5) + ((1.0/512.0)*refraction)* -(minShine+((maxShine-minShine)*d));\n vec4 shine=texture2D(u_textureShine,shinePos);\n tex=blend(tex,shine);\n }\n\n vec4 fg=vec4(tex.rgb*u_brightness,a);\n\n if(u_renderShadow){\n float borderAlpha = fgColor(0.,0.-(d*6.0)).a;\n borderAlpha=borderAlpha*u_alphaMultiply-(u_alphaSubtract+0.5);\n borderAlpha=clamp(borderAlpha,0.,1.);\n borderAlpha*=0.2;\n vec4 border=vec4(0.,0.,0.,borderAlpha);\n fg=blend(border,fg);\n }\n\n gl_FragColor = blend(bg,fg);\n}\n'
, d = {
renderShadow: !1,
minRefraction: 256,
maxRefraction: 512,
brightness: 1,
alphaMultiply: 20,
alphaSubtract: 5,
parallaxBg: 5,
parallaxFg: 20
};
s.prototype = Object.defineProperties({
canvas: null,
gl: null,
canvasLiquid: null,
width: 0,
height: 0,
imageShine: "",
imageFg: "",
imageBg: "",
textures: null,
programWater: null,
programBlurX: null,
programBlurY: null,
parallaxX: 0,
parallaxY: 0,
renderShadow: !1,
options: null,
init: function() {
this.width = this.canvas.width,
this.height = this.canvas.height,
this.gl = new l["default"](this.canvas,{
alpha: !1
},f,p);
var t = this.gl;
this.programWater = t.program,
t.createUniform("2f", "resolution", this.width, this.height),
t.createUniform("1f", "textureRatio", this.imageBg.width / this.imageBg.height),
t.createUniform("1i", "renderShine", null != this.imageShine),
t.createUniform("1i", "renderShadow", this.options.renderShadow),
t.createUniform("1f", "minRefraction", this.options.minRefraction),
t.createUniform("1f", "refractionDelta", this.options.maxRefraction - this.options.minRefraction),
t.createUniform("1f", "brightness", this.options.brightness),
t.createUniform("1f", "alphaMultiply", this.options.alphaMultiply),
t.createUniform("1f", "alphaSubtract", this.options.alphaSubtract),
t.createUniform("1f", "parallaxBg", this.options.parallaxBg),
t.createUniform("1f", "parallaxFg", this.options.parallaxFg),
t.createTexture(null, 0),
this.textures = [{
name: "textureShine",
img: null == this.imageShine ? (0,
h["default"])(2, 2) : this.imageShine
}, {
name: "textureFg",
img: this.imageFg
}, {
name: "textureBg",
img: this.imageBg
}],
this.textures.forEach(function(e, i) {
t.createTexture(e.img, i + 1),
t.createUniform("1i", e.name, i + 1)
}),
this.draw()
},
draw: function() {
this.gl.useProgram(this.programWater),
this.gl.createUniform("2f", "parallax", this.parallaxX, this.parallaxY),
this.updateTexture(),
this.gl.draw(),
requestAnimationFrame(this.draw.bind(this))
},
updateTextures: function() {
var t = this;
this.textures.forEach(function(e, i) {
t.gl.activeTexture(i + 1),
t.gl.updateTexture(e.img)
})
},
updateTexture: function() {
this.gl.activeTexture(0),
this.gl.updateTexture(this.canvasLiquid)
},
resize: function() {}
}, {
overlayTexture: {
get: function() {},
set: function(t) {},
configurable: !0,
enumerable: !0
}
}),
i["default"] = s,
e.exports = i["default"]
}
, {
"./create-canvas": 204,
"./gl-obj": 205,
"./image-loader": 206,
"./webgl": 212
}],
209: [function(t, e, i) {
"use strict";
function r(t) {
return t && t.__esModule ? t : {
"default": t
}
}
function n(t) {
if (Array.isArray(t)) {
for (var e = 0, i = Array(t.length); e < t.length; e++)
i[e] = t[e];
return i
}
return Array.from(t)
}
function s(t, e, i, r, n) {
var s = arguments.length <= 5 || void 0 === arguments[5] ? {} : arguments[5];
this.width = t,
this.height = e,
this.scale = i,
this.dropAlpha = r,
this.dropColor = n,
this.options = Object.assign({}, d, s),
this.init()
}
Object.defineProperty(i, "__esModule", {
value: !0
});
var o = t("./image-loader")
, a = (r(o),
t("./times.js"))
, l = r(a)
, u = t("./create-canvas.js")
, c = r(u)
, h = t("./random")
, f = 64
, p = {
x: 0,
y: 0,
r: 0,
spreadX: 0,
spreadY: 0,
momentum: 0,
momentumX: 0,
lastSpawn: 0,
nextSpawn: 0,
parent: null,
isNew: !0,
killed: !1,
shrink: 0
}
, d = {
minR: 10,
maxR: 40,
maxDrops: 900,
rainChance: .3,
rainLimit: 3,
dropletsRate: 50,
dropletsSize: [2, 4],
dropletsCleaningRadiusMultiplier: .43,
raining: !0,
globalTimeScale: 1,
trailRate: 1,
autoShrink: !0,
spawnArea: [-.1, .95],
trailScaleRange: [.2, .5],
collisionRadius: .65,
collisionRadiusIncrease: .01,
dropFallMultiplier: 1,
collisionBoostMultiplier: .05,
collisionBoost: 1
};
s.prototype = Object.defineProperties({
dropColor: null,
dropAlpha: null,
canvas: null,
ctx: null,
width: 0,
height: 0,
scale: 0,
dropletsPixelDensity: 1,
droplets: null,
dropletsCtx: null,
dropletsCounter: 0,
drops: null,
dropsGfx: null,
clearDropletsGfx: null,
textureCleaningIterations: 0,
lastRender: null,
options: null,
init: function() {
this.canvas = (0,
c["default"])(this.width, this.height),
this.ctx = this.canvas.getContext("2d"),
this.droplets = (0,
c["default"])(this.width * this.dropletsPixelDensity, this.height * this.dropletsPixelDensity),
this.dropletsCtx = this.droplets.getContext("2d"),
this.drops = [],
this.dropsGfx = [],
this.renderDropsGfx(),
this.update()
},
drawDroplet: function(t, e, i) {
this.drawDrop(this.dropletsCtx, Object.assign(Object.create(p), {
x: t * this.dropletsPixelDensity,
y: e * this.dropletsPixelDensity,
r: i * this.dropletsPixelDensity
}))
},
renderDropsGfx: function() {
var t = this
, e = (0,
c["default"])(f, f)
, i = e.getContext("2d");
this.dropsGfx = Array.apply(null, Array(255)).map(function(r, n) {
var s = (0,
c["default"])(f, f)
, o = s.getContext("2d");
return i.clearRect(0, 0, f, f),
i.globalCompositeOperation = "source-over",
i.drawImage(t.dropColor, 0, 0, f, f),
i.globalCompositeOperation = "screen",
i.fillStyle = "rgba(0,0," + n + ",1)",
i.fillRect(0, 0, f, f),
o.globalCompositeOperation = "source-over",
o.drawImage(t.dropAlpha, 0, 0, f, f),
o.globalCompositeOperation = "source-in",
o.drawImage(e, 0, 0, f, f),
s
}),
this.clearDropletsGfx = (0,
c["default"])(128, 128);
var r = this.clearDropletsGfx.getContext("2d");
r.fillStyle = "#000",
r.beginPath(),
r.arc(64, 64, 64, 0, 2 * Math.PI),
r.fill()
},
drawDrop: function(t, e) {
if (this.dropsGfx.length > 0) {
var i = e.x
, r = e.y
, n = e.r
, s = e.spreadX
, o = e.spreadY
, a = 1
, l = 1.5
, u = Math.max(0, Math.min(1, (n - this.options.minR) / this.deltaR * .9));
u *= 1 / (.5 * (e.spreadX + e.spreadY) + 1),
t.globalAlpha = 1,
t.globalCompositeOperation = "source-over",
u = Math.floor(u * (this.dropsGfx.length - 1)),
t.drawImage(this.dropsGfx[u], (i - n * a * (s + 1)) * this.scale, (r - n * l * (o + 1)) * this.scale, 2 * n * a * (s + 1) * this.scale, 2 * n * l * (o + 1) * this.scale)
}
},
clearDroplets: function(t, e) {
var i = arguments.length <= 2 || void 0 === arguments[2] ? 30 : arguments[2]
, r = this.dropletsCtx;
r.globalCompositeOperation = "destination-out",
r.drawImage(this.clearDropletsGfx, (t - i) * this.dropletsPixelDensity * this.scale, (e - i) * this.dropletsPixelDensity * this.scale, 2 * i * this.dropletsPixelDensity * this.scale, 2 * i * this.dropletsPixelDensity * this.scale * 1.5)
},
clearCanvas: function() {
this.ctx.clearRect(0, 0, this.width, this.height)
},
createDrop: function(t) {
return this.drops.length >= this.options.maxDrops * this.areaMultiplier ? null : Object.assign(Object.create(p), t)
},
addDrop: function(t) {
return !(this.drops.length >= this.options.maxDrops * this.areaMultiplier || null == t) && (this.drops.push(t),
!0)
},
updateRain: function(t) {
var e = [];
if (this.options.raining)
for (var i = this.options.rainLimit * t * this.areaMultiplier, r = 0; (0,
h.chance)(this.options.rainChance * t * this.areaMultiplier) && r < i; ) {
r++;
var n = (0,
h.random)(this.options.minR, this.options.maxR, function(t) {
return Math.pow(t, 3)
})
, s = this.createDrop({
x: (0,
h.random)(this.width / this.scale),
y: (0,
h.random)(this.height / this.scale * this.options.spawnArea[0], this.height / this.scale * this.options.spawnArea[1]),
r: n,
momentum: 1 + .1 * (n - this.options.minR) + (0,
h.random)(2),
spreadX: 1.5,
spreadY: 1.5
});
null != s && e.push(s)
}
return e
},
clearDrops: function() {
this.drops.forEach(function(t) {
setTimeout(function() {
t.shrink = .1 + (0,
h.random)(.5)
}, (0,
h.random)(1200))
}),
this.clearTexture()
},
clearTexture: function() {
this.textureCleaningIterations = 50
},
updateDroplets: function(t) {
var e = this;
this.textureCleaningIterations > 0 && (this.textureCleaningIterations -= 1 * t,
this.dropletsCtx.globalCompositeOperation = "destination-out",
this.dropletsCtx.fillStyle = "rgba(0,0,0," + .05 * t + ")",
this.dropletsCtx.fillRect(0, 0, this.width * this.dropletsPixelDensity, this.height * this.dropletsPixelDensity)),
this.options.raining && (this.dropletsCounter += this.options.dropletsRate * t * this.areaMultiplier,
(0,
l["default"])(this.dropletsCounter, function(t) {
e.dropletsCounter--,
e.drawDroplet((0,
h.random)(e.width / e.scale), (0,
h.random)(e.height / e.scale), h.random.apply(void 0, n(e.options.dropletsSize).concat([function(t) {
return t * t
}
])))
})),
this.ctx.drawImage(this.droplets, 0, 0, this.width, this.height)
},
updateDrops: function(t) {
var e = this
, i = [];
this.updateDroplets(t);
var r = this.updateRain(t);
i = i.concat(r),
this.drops.sort(function(t, i) {
var r = t.y * (e.width / e.scale) + t.x
, n = i.y * (e.width / e.scale) + i.x;
return r > n ? 1 : r == n ? 0 : -1
}),
this.drops.forEach(function(e, r) {
var s = this;
if (!e.killed) {
if ((0,
h.chance)((e.r - this.options.minR * this.options.dropFallMultiplier) * (.1 / this.deltaR) * t) && (e.momentum += (0,
h.random)(e.r / this.options.maxR * 4)),
this.options.autoShrink && e.r <= this.options.minR && (0,
h.chance)(.05 * t) && (e.shrink += .01),
e.r -= e.shrink * t,
e.r <= 0 && (e.killed = !0),
this.options.raining && (e.lastSpawn += e.momentum * t * this.options.trailRate,
e.lastSpawn > e.nextSpawn)) {
var o = this.createDrop({
x: e.x + .1 * (0,
h.random)(-e.r, e.r),
y: e.y - .01 * e.r,
r: e.r * h.random.apply(void 0, n(this.options.trailScaleRange)),
spreadY: .1 * e.momentum,
parent: e
});
null != o && (i.push(o),
e.r *= Math.pow(.97, t),
e.lastSpawn = 0,
e.nextSpawn = (0,
h.random)(this.options.minR, this.options.maxR) - 2 * e.momentum * this.options.trailRate + (this.options.maxR - e.r))
}
e.spreadX *= Math.pow(.4, t),
e.spreadY *= Math.pow(.7, t);
var a = e.momentum > 0;
a && !e.killed && (e.y += e.momentum * this.options.globalTimeScale,
e.x += e.momentumX * this.options.globalTimeScale,
e.y > this.height / this.scale + e.r && (e.killed = !0));
var l = (a || e.isNew) && !e.killed;
e.isNew = !1,
l && this.drops.slice(r + 1, r + 70).forEach(function(i) {
if (e != i && e.r > i.r && e.parent != i && i.parent != e && !i.killed) {
var r = i.x - e.x
, n = i.y - e.y
, o = Math.sqrt(r * r + n * n);
if (o < (e.r + i.r) * (s.options.collisionRadius + e.momentum * s.options.collisionRadiusIncrease * t)) {
var a = Math.PI
, l = e.r
, u = i.r
, c = a * (l * l)
, h = a * (u * u)
, f = Math.sqrt((c + .8 * h) / a);
f > s.maxR && (f = s.maxR),
e.r = f,
e.momentumX += .1 * r,
e.spreadX = 0,
e.spreadY = 0,
i.killed = !0,
e.momentum = Math.max(i.momentum, Math.min(40, e.momentum + f * s.options.collisionBoostMultiplier + s.options.collisionBoost))
}
}
}),
e.momentum -= .1 * Math.max(1, .5 * this.options.minR - e.momentum) * t,
e.momentum < 0 && (e.momentum = 0),
e.momentumX *= Math.pow(.7, t),
e.killed || (i.push(e),
a && this.options.dropletsRate > 0 && this.clearDroplets(e.x, e.y, e.r * this.options.dropletsCleaningRadiusMultiplier),
this.drawDrop(this.ctx, e))
}
}, this),
this.drops = i
},
update: function() {
this.clearCanvas();
var t = Date.now();
null == this.lastRender && (this.lastRender = t);
var e = t - this.lastRender
, i = e / (1 / 60 * 1e3);
i > 1.1 && (i = 1.1),
i *= this.options.globalTimeScale,
this.lastRender = t,
this.updateDrops(i),
requestAnimationFrame(this.update.bind(this))
}
}, {
deltaR: {
get: function() {
return this.options.maxR - this.options.minR
},
configurable: !0,
enumerable: !0
},
area: {
get: function() {
return this.width * this.height / this.scale
},
configurable: !0,
enumerable: !0
},
areaMultiplier: {
get: function() {
return Math.sqrt(this.area / 786432)
},
configurable: !0,
enumerable: !0
}
}),
i["default"] = s,
e.exports = i["default"]
}
, {
"./create-canvas.js": 204,
"./image-loader": 206,
"./random": 210,
"./times.js": 211
}],
210: [function(t, e, i) {
"use strict";
function r() {
var t = arguments.length <= 0 || void 0 === arguments[0] ? null : arguments[0]
, e = arguments.length <= 1 || void 0 === arguments[1] ? null : arguments[1]
, i = arguments.length <= 2 || void 0 === arguments[2] ? null : arguments[2];
null == t ? (t = 0,
e = 1) : null != t && null == e && (e = t,
t = 0);
var r = e - t;
return null == i && (i = function(t) {
return t
}
),
t + i(Math.random()) * r
}
function n(t) {
return r() <= t
}
Object.defineProperty(i, "__esModule", {
value: !0
}),
i.random = r,
i.chance = n
}
, {}],
211: [function(t, e, i) {
"use strict";
function r(t, e) {
for (var i = 0; i < t; i++)
e.call(this, i)
}
Object.defineProperty(i, "__esModule", {
value: !0
}),
i["default"] = r,
e.exports = i["default"]
}
, {}],
212: [function(t, e, i) {
"use strict";
function r(t) {
var e = arguments.length <= 1 || void 0 === arguments[1] ? {} : arguments[1]
, i = ["webgl", "experimental-webgl"]
, r = null;
return i.some(function(i) {
try {
r = t.getContext(i, e)
} catch (n) {}
return null != r
}),
null == r && document.body.classList.add("no-webgl"),
r
}
function n(t, e, i) {
var r = s(t, e, t.VERTEX_SHADER)
, n = s(t, i, t.FRAGMENT_SHADER)
, o = t.createProgram();
t.attachShader(o, r),
t.attachShader(o, n),
t.linkProgram(o);
var a = t.getProgramParameter(o, t.LINK_STATUS);
if (!a) {
var l = t.getProgramInfoLog(o);
return h("Error in program linking: " + l),
t.deleteProgram(o),
null
}
var u = t.getAttribLocation(o, "a_position")
, c = t.getAttribLocation(o, "a_texCoord")
, f = t.createBuffer();
t.bindBuffer(t.ARRAY_BUFFER, f),
t.bufferData(t.ARRAY_BUFFER, new Float32Array([-1, -1, 1, -1, -1, 1, -1, 1, 1, -1, 1, 1]), t.STATIC_DRAW),
t.enableVertexAttribArray(c),
t.vertexAttribPointer(c, 2, t.FLOAT, !1, 0, 0);
var p = t.createBuffer();
return t.bindBuffer(t.ARRAY_BUFFER, p),
t.enableVertexAttribArray(u),
t.vertexAttribPointer(u, 2, t.FLOAT, !1, 0, 0),
o
}
function s(t, e, i) {
var r = t.createShader(i);
t.shaderSource(r, e),
t.compileShader(r);
var n = t.getShaderParameter(r, t.COMPILE_STATUS);
if (!n) {
var s = t.getShaderInfoLog(r);
return h("Error compiling shader '" + r + "':" + s),
t.deleteShader(r),
null
}
return r
}
function o(t, e, i) {
var r = t.createTexture();
return l(t, i),
t.bindTexture(t.TEXTURE_2D, r),
t.texParameteri(t.TEXTURE_2D, t.TEXTURE_WRAP_S, t.CLAMP_TO_EDGE),
t.texParameteri(t.TEXTURE_2D, t.TEXTURE_WRAP_T, t.CLAMP_TO_EDGE),
t.texParameteri(t.TEXTURE_2D, t.TEXTURE_MIN_FILTER, t.LINEAR),
t.texParameteri(t.TEXTURE_2D, t.TEXTURE_MAG_FILTER, t.LINEAR),
null == e ? r : (u(t, e),
r)
}
function a(t, e, i, r) {
for (var n = t.getUniformLocation(e, "u_" + r), s = arguments.length, o = Array(s > 4 ? s - 4 : 0), a = 4; a < s; a++)
o[a - 4] = arguments[a];
t["uniform" + i].apply(t, [n].concat(o))
}
function l(t, e) {
t.activeTexture(t["TEXTURE" + e])
}
function u(t, e) {
t.texImage2D(t.TEXTURE_2D, 0, t.RGBA, t.RGBA, t.UNSIGNED_BYTE, e)
}
function c(t, e, i, r, n) {
var s = e
, o = e + r
, a = i
, l = i + n;
t.bufferData(t.ARRAY_BUFFER, new Float32Array([s, a, o, a, s, l, s, l, o, a, o, l]), t.STATIC_DRAW)
}
function h(t) {
console.error(t)
}
Object.defineProperty(i, "__esModule", {
value: !0
}),
i.getContext = r,
i.createProgram = n,
i.createShader = s,
i.createTexture = o,
i.createUniform = a,
i.activeTexture = l,
i.updateTexture = u,
i.setRectangle = c
}
, {}]
}, {}, [207]);
Step into Evil's Eye, where fear takes form.

LATEsT

