vendor: 13,649 bytes, lines 1-175
1/*! 2 * VERSION: 1.18.0 3 * DATE: 2015-09-05 4 * UPDATES AND DOCS AT: http://greensock.com 5 * 6 * Includes all of the following: TweenLite, TweenMax, TimelineLite, TimelineMax, EasePack, CSSPlugin, RoundPropsPlugin, BezierPlugin, AttrPlugin, DirectionalRotationPlugin 7 * 8 * @license Copyright (c) 2008-2015, GreenSock. All rights reserved. 9 * This work is subject to the terms at http://greensock.com/standard-license or for 10 * Club GreenSock members, the software agreement that was issued with your membership. 11 * 12 * @author: Jack Doyle, [email protected] 13 **/ 14var _gsScope = "undefined" != typeof module && module.exports && "undefined" != typeof global ? global : this || window; 15(_gsScope._gsQueue || (_gsScope._gsQueue = [])).push(function () { 16 "use strict"; 17 _gsScope._gsDefine("TweenMax", ["core.Animation", "core.SimpleTimeline", "TweenLite"], function (t, e, i) { 18 var s = function (t) { 19 var e, i = [], 20 s = t.length; 21 for (e = 0; e !== s; i.push(t[e++])); 22 return i 23 }, 24 r = function (t, e, i) { 25 var s, r, n = t.cycle; 26 for (s in n) r = n[s], t[s] = "function" == typeof r ? r.call(e[i], i) : r[i % r.length]; 27 delete t.cycle 28 }, 29 n = function (t, e, s) { 30 i.call(this, t, e, s), 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 = n.prototype.render 31 }, 32 a = 1e-10, 33 o = i._internals, 34 l = o.isSelector, 35 h = o.isArray, 36 _ = n.prototype = i.to({}, .1, {}), 37 u = []; 38 n.version = "1.18.0", _.constructor = n, _.kill()._gc = !1, n.killTweensOf = n.killDelayedCallsTo = i.killTweensOf, n.getTweensOf = i.getTweensOf, n.lagSmoothing = i.lagSmoothing, n.ticker = i.ticker, n.render = i.render, _.invalidate = function () { 39 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) 40 }, _.updateTo = function (t, e) { 41 var s, r = this.ratio, 42 n = this.vars.immediateRender || t.immediateRender; 43 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)); 44 for (s in t) this.vars[s] = t[s]; 45 if (this._initted || n) 46 if (e) this._initted = !1, n && this.render(0, !0, !0); 47 else if (this._gc && this._enabled(!0, !1), this._notifyPluginsOfEnabled && this._firstPT && i._onPluginEvent("_onDisable", this), this._time / this._duration > .998) { 48 var a = this._time; 49 this.render(0, !0, !1), this._initted = !1, this.render(a, !0, !1) 50 } else if (this._time > 0 || n) { 51 this._initted = !1, this._init(); 52 for (var o, l = 1 / (1 - r), h = this._firstPT; h;) o = h.s + h.c, h.c *= l, h.s = o - h.c, h = h._next 53 } 54 return this 55 }, _.render = function (t, e, i) { 56 this._initted || 0 === this._duration && this.vars.repeat && this.invalidate(); 57 var s, r, n, l, h, _, u, c, f = this._dirty ? this.totalDuration() : this._totalDuration, 58 p = this._time, 59 m = this._totalTime, 60 d = this._cycle, 61 g = this._duration, 62 v = this._rawPrevTime; 63 if (t >= f ? (this._totalTime = f, 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 || (s = !0, r = "onComplete", i = i || this._timeline.autoRemoveChildren), 0 === g && (this._initted || !this.vars.lazy || i) && (this._startTime === this._timeline._duration && (t = 0), (0 === t || 0 > v || v === a) && v !== t && (i = !0, v > a && (r = "onReverseComplete")), this._rawPrevTime = c = !e || t || v === t ? t : a)) : 1e-7 > t ? (this._totalTime = this._time = this._cycle = 0, this.ratio = this._ease._calcEnd ? this._ease.getRatio(0) : 0, (0 !== m || 0 === g && v > 0) && (r = "onReverseComplete", s = this._reversed), 0 > t && (this._active = !1, 0 === g && (this._initted || !this.vars.lazy || i) && (v >= 0 && (i = !0), this._rawPrevTime = c = !e || t || v === t ? t : a)), 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 && 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 : 0 > this._time && (this._time = 0)), this._easeType ? (h = this._time / g, _ = this._easeType, u = this._easePower, (1 === _ || 3 === _ && h >= .5) && (h = 1 - h), 3 === _ && (h *= 2), 1 === u ? h *= h : 2 === u ? h *= h * h : 3 === u ? h *= h * h * h : 4 === u && (h *= h * h * h * h), this.ratio = 1 === _ ? 1 - h : 2 === _ ? h : .5 > this._time / g ? h / 2 : 1 - h / 2) : this.ratio = this._ease.getRatio(this._time / g)), p === this._time && !i && d === this._cycle) return m !== this._totalTime && this._onUpdate && (e || this._callback("onUpdate")), void 0; 64 if (!this._initted) { 65 if (this._init(), !this._initted || this._gc) return; 66 if (!i && this._firstPT && (this.vars.lazy !== !1 && this._duration || this.vars.lazy && !this._duration)) return this._time = p, this._totalTime = m, this._rawPrevTime = v, this._cycle = d, o.lazyTweens.push(this), this._lazy = [t, e], void 0; 67 this._time && !s ? this.ratio = this._ease.getRatio(this._time / g) : s && this._ease._calcEnd && (this.ratio = this._ease.getRatio(0 === this._time ? 0 : 1)) 68 } 69 for (this._lazy !== !1 && (this._lazy = !1), this._active || !this._paused && this._time !== p && t >= 0 && (this._active = !0), 0 === m && (2 === this._initted && t > 0 && this._init(), this._startAt && (t >= 0 ? this._startAt.render(t, e, i) : r || (r = "_dummyGS")), this.vars.onStart && (0 !== this._totalTime || 0 === g) && (e || this._callback("onStart"))), n = this._firstPT; n;) n.f ? n.t[n.p](n.c * this.ratio + n.s) : n.t[n.p] = n.c * this.ratio + n.s, n = n._next; 70 this._onUpdate && (0 > t && this._startAt && this._startTime && this._startAt.render(t, e, i), e || (this._totalTime !== m || s) && this._callback("onUpdate")), this._cycle !== d && (e || this._gc || this.vars.onRepeat && this._callback("onRepeat")), r && (!this._gc || i) && (0 > t && this._startAt && !this._onUpdate && this._startTime && this._startAt.render(t, e, i), s && (this._timeline.autoRemoveChildren && this._enabled(!1, !1), this._active = !1), !e && this.vars[r] && this._callback(r), 0 === g && this._rawPrevTime === a && c !== a && (this._rawPrevTime = 0)) 71 }, n.to = function (t, e, i) { 72 return new n(t, e, i) 73 }, n.from = function (t, e, i) { 74 return i.runBackwards = !0, i.immediateRender = 0 != i.immediateRender, new n(t, e, i) 75 }, n.fromTo = function (t, e, i, s) { 76 return s.startAt = i, s.immediateRender = 0 != s.immediateRender && 0 != i.immediateRender, new n(t, e, s) 77 }, n.staggerTo = n.allTo = function (t, e, a, o, _, c, f) { 78 o = o || 0; 79 var p, m, d, g, v = a.delay || 0, 80 y = [], 81 T = function () { 82 a.onComplete && a.onComplete.apply(a.onCompleteScope || this, arguments), _.apply(f || a.callbackScope || this, c || u) 83 }, 84 x = a.cycle, 85 w = a.startAt && a.startAt.cycle; 86 for (h(t) || ("string" == typeof t && (t = i.selector(t) || t), l(t) && (t = s(t))), t = t || [], 0 > o && (t = s(t), t.reverse(), o *= -1), p = t.length - 1, d = 0; p >= d; d++) { 87 m = {}; 88 for (g in a) m[g] = a[g]; 89 if (x && r(m, t, d), w) { 90 w = m.startAt = {}; 91 for (g in a.startAt) w[g] = a.startAt[g]; 92 r(m.startAt, t, d) 93 } 94 m.delay = v, d === p && _ && (m.onComplete = T), y[d] = new n(t[d], e, m), v += o 95 } 96 return y 97 }, n.staggerFrom = n.allFrom = function (t, e, i, s, r, a, o) { 98 return i.runBackwards = !0, i.immediateRender = 0 != i.immediateRender, n.staggerTo(t, e, i, s, r, a, o) 99 }, n.staggerFromTo = n.allFromTo = function (t, e, i, s, r, a, o, l) { 100 return s.startAt = i, s.immediateRender = 0 != s.immediateRender && 0 != i.immediateRender, n.staggerTo(t, e, s, r, a, o, l) 101 }, n.delayedCall = function (t, e, i, s, r) { 102 return new n(e, 0, { 103 delay: t, 104 onComplete: e, 105 onCompleteParams: i, 106 callbackScope: s, 107 onReverseComplete: e, 108 onReverseCompleteParams: i, 109 immediateRender: !1, 110 useFrames: r, 111 overwrite: 0 112 }) 113 }, n.set = function (t, e) { 114 return new n(t, 0, e) 115 }, n.isTweening = function (t) { 116 return i.getTweensOf(t, !0).length > 0 117 }; 118 var c = function (t, e) { 119 for (var s = [], r = 0, n = t._first; n;) n instanceof i ? s[r++] = n : (e && (s[r++] = n), s = s.concat(c(n, e)), r = s.length), n = n._next; 120 return s 121 }, 122 f = n.getAllTweens = function (e) { 123 return c(t._rootTimeline, e).concat(c(t._rootFramesTimeline, e)) 124 }; 125 n.killAll = function (t, i, s, r) { 126 null == i && (i = !0), null == s && (s = !0); 127 var n, a, o, l = f(0 != r), 128 h = l.length, 129 _ = i && s && r; 130 for (o = 0; h > o; o++) a = l[o], (_ || a instanceof e || (n = a.target === a.vars.onComplete) && s || i && !n) && (t ? a.totalTime(a._reversed ? 0 : a.totalDuration()) : a._enabled(!1, !1)) 131 }, n.killChildTweensOf = function (t, e) { 132 if (null != t) { 133 var r, a, _, u, c, f = o.tweenLookup; 134 if ("string" == typeof t && (t = i.selector(t) || t), l(t) && (t = s(t)), h(t)) 135 for (u = t.length; --u > -1;) n.killChildTweensOf(t[u], e); 136 else { 137 r = []; 138 for (_ in f) 139 for (a = f[_].target.parentNode; a;) a === t && (r = r.concat(f[_].tweens)), a = a.parentNode; 140 for (c = r.length, u = 0; c > u; u++) e && r[u].totalTime(r[u].totalDuration()), r[u]._enabled(!1, !1) 141 } 142 } 143 }; 144 var p = function (t, i, s, r) { 145 i = i !== !1, s = s !== !1, r = r !== !1; 146 for (var n, a, o = f(r), l = i && s && r, h = o.length; --h > -1;) a = o[h], (l || a instanceof e || (n = a.target === a.vars.onComplete) && s || i && !n) && a.paused(t) 147 }; 148 return n.pauseAll = function (t, e, i) { 149 p(!0, t, e, i) 150 }, n.resumeAll = function (t, e, i) { 151 p(!1, t, e, i) 152 }, n.globalTimeScale = function (e) { 153 var s = t._rootTimeline, 154 r = i.ticker.time; 155 return arguments.length ? (e = e || a, s._startTime = r - (r - s._startTime) * s._timeScale / e, s = t._rootFramesTimeline, r = i.ticker.frame, s._startTime = r - (r - s._startTime) * s._timeScale / e, s._timeScale = t._rootTimeline._timeScale = e, e) : s._timeScale 156 }, _.progress = function (t) { 157 return arguments.length ? this.totalTime(this.duration() * (this._yoyo && 0 !== (1 & this._cycle) ? 1 - t : t) + this._cycle * (this._duration + this._repeatDelay), !1) : this._time / this.duration() 158 }, _.totalProgress = function (t) { 159 return arguments.length ? this.totalTime(this.totalDuration() * t, !1) : this._totalTime / this.totalDuration() 160 }, _.time = function (t, e) { 161 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 162 }, _.duration = function (e) { 163 return arguments.length ? t.prototype.duration.call(this, e) : this._duration 164 }, _.totalDuration = function (t) { 165 return arguments.length ? -1 === this._repeat ? this : this.duration((t - this._repeat * this._repeatDelay) / (this._repeat + 1)) : (this._dirty && (this._totalDuration = -1 === this._repeat ? 999999999999 : this._duration * (this._repeat + 1) + this._repeatDelay * this._repeat, this._dirty = !1), this._totalDuration) 166 }, _.repeat = function (t) { 167 return arguments.length ? (this._repeat = t, this._uncache(!0)) : this._repeat 168 }, _.repeatDelay = function (t) { 169 return arguments.length ? (this._repeatDelay = t, this._uncache(!0)) : this._repeatDelay 170 }, _.yoyo = function (t) { 171 return arguments.length ? (this._yoyo = t, this) : this._yoyo 172 }, n 173 }, !0), _gsScope._gsDefine("TimelineLite", ["core.Animation", "core.SimpleTimeline", "TweenLite"], function (t, e, i) { 174 var s = function (t) { 175 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.onUp
vendor: 6,276 bytes, lines 175-279
175date; 176 var i, s, r = this.vars; 177 for (s in r) i = r[s], l(i) && -1 !== i.join("").indexOf("{self}") && (r[s] = this._swapSelfInParams(i)); 178 l(r.tweens) && this.add(r.tweens, 0, r.align, r.stagger) 179 }, 180 r = 1e-10, 181 n = i._internals, 182 a = s._internals = {}, 183 o = n.isSelector, 184 l = n.isArray, 185 h = n.lazyTweens, 186 _ = n.lazyRender, 187 u = _gsScope._gsDefine.globals, 188 c = function (t) { 189 var e, i = {}; 190 for (e in t) i[e] = t[e]; 191 return i 192 }, 193 f = function (t, e, i) { 194 var s, r, n = t.cycle; 195 for (s in n) r = n[s], t[s] = "function" == typeof r ? r.call(e[i], i) : r[i % r.length]; 196 delete t.cycle 197 }, 198 p = a.pauseCallback = function () {}, 199 m = function (t) { 200 var e, i = [], 201 s = t.length; 202 for (e = 0; e !== s; i.push(t[e++])); 203 return i 204 }, 205 d = s.prototype = new e; 206 return s.version = "1.18.0", d.constructor = s, d.kill()._gc = d._forcingPlayhead = d._hasPause = !1, d.to = function (t, e, s, r) { 207 var n = s.repeat && u.TweenMax || i; 208 return e ? this.add(new n(t, e, s), r) : this.set(t, s, r) 209 }, d.from = function (t, e, s, r) { 210 return this.add((s.repeat && u.TweenMax || i).from(t, e, s), r) 211 }, d.fromTo = function (t, e, s, r, n) { 212 var a = r.repeat && u.TweenMax || i; 213 return e ? this.add(a.fromTo(t, e, s, r), n) : this.set(t, r, n) 214 }, d.staggerTo = function (t, e, r, n, a, l, h, _) { 215 var u, p, d = new s({ 216 onComplete: l, 217 onCompleteParams: h, 218 callbackScope: _, 219 smoothChildTiming: this.smoothChildTiming 220 }), 221 g = r.cycle; 222 for ("string" == typeof t && (t = i.selector(t) || t), t = t || [], o(t) && (t = m(t)), n = n || 0, 0 > n && (t = m(t), t.reverse(), n *= -1), p = 0; t.length > p; p++) u = c(r), u.startAt && (u.startAt = c(u.startAt), u.startAt.cycle && f(u.startAt, t, p)), g && f(u, t, p), d.to(t[p], e, u, p * n); 223 return this.add(d, a) 224 }, d.staggerFrom = function (t, e, i, s, r, n, a, o) { 225 return i.immediateRender = 0 != i.immediateRender, i.runBackwards = !0, this.staggerTo(t, e, i, s, r, n, a, o) 226 }, d.staggerFromTo = function (t, e, i, s, r, n, a, o, l) { 227 return s.startAt = i, s.immediateRender = 0 != s.immediateRender && 0 != i.immediateRender, this.staggerTo(t, e, s, r, n, a, o, l) 228 }, d.call = function (t, e, s, r) { 229 return this.add(i.delayedCall(0, t, e, s), r) 230 }, d.set = function (t, e, s) { 231 return s = this._parseTimeOrLabel(s, 0, !0), null == e.immediateRender && (e.immediateRender = s === this._time && !this._paused), this.add(new i(t, 0, e), s) 232 }, s.exportRoot = function (t, e) { 233 t = t || {}, null == t.smoothChildTiming && (t.smoothChildTiming = !0); 234 var r, n, a = new s(t), 235 o = a._timeline; 236 for (null == e && (e = !0), o._remove(a, !0), a._startTime = 0, a._rawPrevTime = a._time = a._totalTime = o._time, r = o._first; r;) n = r._next, e && r instanceof i && r.target === r.vars.onComplete || a.add(r, r._startTime - r._delay), r = n; 237 return o.add(a, 0), a 238 }, d.add = function (r, n, a, o) { 239 var h, _, u, c, f, p; 240 if ("number" != typeof n && (n = this._parseTimeOrLabel(n, 0, !0, r)), !(r instanceof t)) { 241 if (r instanceof Array || r && r.push && l(r)) { 242 for (a = a || "normal", o = o || 0, h = n, _ = r.length, u = 0; _ > u; u++) l(c = r[u]) && (c = new s({ 243 tweens: c 244 })), this.add(c, h), "string" != typeof c && "function" != typeof c && ("sequence" === a ? h = c._startTime + c.totalDuration() / c._timeScale : "start" === a && (c._startTime -= c.delay())), h += o; 245 return this._uncache(!0) 246 } 247 if ("string" == typeof r) return this.addLabel(r, n); 248 if ("function" != typeof r) throw "Cannot add " + r + " into the timeline; it is not a tween, timeline, function, or string."; 249 r = i.delayedCall(0, r) 250 } 251 if (e.prototype.add.call(this, r, n), (this._gc || this._time === this._duration) && !this._paused && this._duration < this.duration()) 252 for (f = this, p = f.rawTime() > r._startTime; f._timeline;) p && f._timeline.smoothChildTiming ? f.totalTime(f._totalTime, !0) : f._gc && f._enabled(!0, !1), f = f._timeline; 253 return this 254 }, d.remove = function (e) { 255 if (e instanceof t) { 256 this._remove(e, !1); 257 var i = e._timeline = e.vars.useFrames ? t._rootFramesTimeline : t._rootTimeline; 258 return e._startTime = (e._paused ? e._pauseTime : i._time) - (e._reversed ? e.totalDuration() - e._totalTime : e._totalTime) / e._timeScale, this 259 } 260 if (e instanceof Array || e && e.push && l(e)) { 261 for (var s = e.length; --s > -1;) this.remove(e[s]); 262 return this 263 } 264 return "string" == typeof e ? this.removeLabel(e) : this.kill(null, e) 265 }, d._remove = function (t, i) { 266 e.prototype._remove.call(this, t, i); 267 var s = this._last; 268 return s ? this._time > s._startTime + s._totalDuration / s._timeScale && (this._time = this.duration(), this._totalTime = this._totalDuration) : this._time = this._totalTime = this._duration = this._totalDuration = 0, this 269 }, d.append = function (t, e) { 270 return this.add(t, this._parseTimeOrLabel(null, e, !0, t)) 271 }, d.insert = d.insertMultiple = function (t, e, i, s) { 272 return this.add(t, e || 0, i, s) 273 }, d.appendMultiple = function (t, e, i, s) { 274 return this.add(t, this._parseTimeOrLabel(null, e, !0, t), i, s) 275 }, d.addLabel = function (t, e) { 276 return this._labels[t] = this._parseTimeOrLabel(e), this 277 }, d.addPause = function (t, e, s, r) { 278 var n = i.delayedCall(0, p, s, r || this); 279 return n.vars.onComplete = n.vars.onReverseComplete = e, n.data = "isPau
vendor: 39,429 bytes, lines 279-872
279se", this._hasPause = !0, this.add(n, t) 280 }, d.removeLabel = function (t) { 281 return delete this._labels[t], this 282 }, d.getLabelTime = function (t) { 283 return null != this._labels[t] ? this._labels[t] : -1 284 }, d._parseTimeOrLabel = function (e, i, s, r) { 285 var n; 286 if (r instanceof t && r.timeline === this) this.remove(r); 287 else if (r && (r instanceof Array || r.push && l(r))) 288 for (n = r.length; --n > -1;) r[n] instanceof t && r[n].timeline === this && this.remove(r[n]); 289 if ("string" == typeof i) return this._parseTimeOrLabel(i, s && "number" == typeof e && null == this._labels[i] ? e - this.duration() : 0, s); 290 if (i = i || 0, "string" != typeof e || !isNaN(e) && null == this._labels[e]) null == e && (e = this.duration()); 291 else { 292 if (n = e.indexOf("="), -1 === n) return null == this._labels[e] ? s ? this._labels[e] = this.duration() + i : i : this._labels[e] + i; 293 i = parseInt(e.charAt(n - 1) + "1", 10) * Number(e.substr(n + 1)), e = n > 1 ? this._parseTimeOrLabel(e.substr(0, n - 1), 0, s) : this.duration() 294 } 295 return Number(e) + i 296 }, d.seek = function (t, e) { 297 return this.totalTime("number" == typeof t ? t : this._parseTimeOrLabel(t), e !== !1) 298 }, d.stop = function () { 299 return this.paused(!0) 300 }, d.gotoAndPlay = function (t, e) { 301 return this.play(t, e) 302 }, d.gotoAndStop = function (t, e) { 303 return this.pause(t, e) 304 }, d.render = function (t, e, i) { 305 this._gc && this._enabled(!0, !1); 306 var s, n, a, o, l, u, c = this._dirty ? this.totalDuration() : this._totalDuration, 307 f = this._time, 308 p = this._startTime, 309 m = this._timeScale, 310 d = this._paused; 311 if (t >= c) this._totalTime = this._time = c, this._reversed || this._hasPausedChild() || (n = !0, o = "onComplete", l = !!this._timeline.autoRemoveChildren, 0 === this._duration && (0 === t || 0 > this._rawPrevTime || this._rawPrevTime === r) && this._rawPrevTime !== t && this._first && (l = !0, this._rawPrevTime > r && (o = "onReverseComplete"))), this._rawPrevTime = this._duration || !e || t || this._rawPrevTime === t ? t : r, t = c + 1e-4; 312 else if (1e-7 > t) 313 if (this._totalTime = this._time = 0, (0 !== f || 0 === this._duration && this._rawPrevTime !== r && (this._rawPrevTime > 0 || 0 > t && this._rawPrevTime >= 0)) && (o = "onReverseComplete", n = this._reversed), 0 > t) this._active = !1, this._timeline.autoRemoveChildren && this._reversed ? (l = n = !0, o = "onReverseComplete") : this._rawPrevTime >= 0 && this._first && (l = !0), this._rawPrevTime = t; 314 else { 315 if (this._rawPrevTime = this._duration || !e || t || this._rawPrevTime === t ? t : r, 0 === t && n) 316 for (s = this._first; s && 0 === s._startTime;) s._duration || (n = !1), s = s._next; 317 t = 0, this._initted || (l = !0) 318 } 319 else { 320 if (this._hasPause && !this._forcingPlayhead && !e) { 321 if (t >= f) 322 for (s = this._first; s && t >= s._startTime && !u;) s._duration || "isPause" !== s.data || s.ratio || 0 === s._startTime && 0 === this._rawPrevTime || (u = s), s = s._next; 323 else 324 for (s = this._last; s && s._startTime >= t && !u;) s._duration || "isPause" === s.data && s._rawPrevTime > 0 && (u = s), s = s._prev; 325 u && (this._time = t = u._startTime, this._totalTime = t + this._cycle * (this._totalDuration + this._repeatDelay)) 326 } 327 this._totalTime = this._time = this._rawPrevTime = t 328 } 329 if (this._time !== f && this._first || i || l || u) { 330 if (this._initted || (this._initted = !0), this._active || !this._paused && this._time !== f && t > 0 && (this._active = !0), 0 === f && this.vars.onStart && 0 !== this._time && (e || this._callback("onStart")), this._time >= f) 331 for (s = this._first; s && (a = s._next, !this._paused || d);)(s._active || s._startTime <= this._time && !s._paused && !s._gc) && (u === s && this.pause(), s._reversed ? s.render((s._dirty ? s.totalDuration() : s._totalDuration) - (t - s._startTime) * s._timeScale, e, i) : s.render((t - s._startTime) * s._timeScale, e, i)), s = a; 332 else 333 for (s = this._last; s && (a = s._prev, !this._paused || d);) { 334 if (s._active || f >= s._startTime && !s._paused && !s._gc) { 335 if (u === s) { 336 for (u = s._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; 337 u = null, this.pause() 338 } 339 s._reversed ? s.render((s._dirty ? s.totalDuration() : s._totalDuration) - (t - s._startTime) * s._timeScale, e, i) : s.render((t - s._startTime) * s._timeScale, e, i) 340 } 341 s = a 342 } 343 this._onUpdate && (e || (h.length && _(), this._callback("onUpdate"))), o && (this._gc || (p === this._startTime || m !== this._timeScale) && (0 === this._time || c >= this.totalDuration()) && (n && (h.length && _(), this._timeline.autoRemoveChildren && this._enabled(!1, !1), this._active = !1), !e && this.vars[o] && this._callback(o))) 344 } 345 }, d._hasPausedChild = function () { 346 for (var t = this._first; t;) { 347 if (t._paused || t instanceof s && t._hasPausedChild()) return !0; 348 t = t._next 349 } 350 return !1 351 }, d.getChildren = function (t, e, s, r) { 352 r = r || -9999999999; 353 for (var n = [], a = this._first, o = 0; a;) r > a._startTime || (a instanceof i ? e !== !1 && (n[o++] = a) : (s !== !1 && (n[o++] = a), t !== !1 && (n = n.concat(a.getChildren(!0, e, s)), o = n.length))), a = a._next; 354 return n 355 }, d.getTweensOf = function (t, e) { 356 var s, r, n = this._gc, 357 a = [], 358 o = 0; 359 for (n && this._enabled(!0, !0), s = i.getTweensOf(t), r = s.length; --r > -1;)(s[r].timeline === this || e && this._contains(s[r])) && (a[o++] = s[r]); 360 return n && this._enabled(!1, !0), a 361 }, d.recent = function () { 362 return this._recent 363 }, d._contains = function (t) { 364 for (var e = t.timeline; e;) { 365 if (e === this) return !0; 366 e = e.timeline 367 } 368 return !1 369 }, d.shiftChildren = function (t, e, i) { 370 i = i || 0; 371 for (var s, r = this._first, n = this._labels; r;) r._startTime >= i && (r._startTime += t), r = r._next; 372 if (e) 373 for (s in n) n[s] >= i && (n[s] += t); 374 return this._uncache(!0) 375 }, d._kill = function (t, e) { 376 if (!t && !e) return this._enabled(!1, !1); 377 for (var i = e ? this.getTweensOf(e) : this.getChildren(!0, !0, !1), s = i.length, r = !1; --s > -1;) i[s]._kill(t, e) && (r = !0); 378 return r 379 }, d.clear = function (t) { 380 var e = this.getChildren(!1, !0, !0), 381 i = e.length; 382 for (this._time = this._totalTime = 0; --i > -1;) e[i]._enabled(!1, !1); 383 return t !== !1 && (this._labels = {}), this._uncache(!0) 384 }, d.invalidate = function () { 385 for (var e = this._first; e;) e.invalidate(), e = e._next; 386 return t.prototype.invalidate.call(this) 387 }, d._enabled = function (t, i) { 388 if (t === this._gc) 389 for (var s = this._first; s;) s._enabled(t, !0), s = s._next; 390 return e.prototype._enabled.call(this, t, i) 391 }, d.totalTime = function () { 392 this._forcingPlayhead = !0; 393 var e = t.prototype.totalTime.apply(this, arguments); 394 return this._forcingPlayhead = !1, e 395 }, d.duration = function (t) { 396 return arguments.length ? (0 !== this.duration() && 0 !== t && this.timeScale(this._duration / t), this) : (this._dirty && this.totalDuration(), this._duration) 397 }, d.totalDuration = function (t) { 398 if (!arguments.length) { 399 if (this._dirty) { 400 for (var e, i, s = 0, r = this._last, n = 999999999999; r;) e = r._prev, r._dirty && r.totalDuration(), r._startTime > n && this._sortChildren && !r._paused ? this.add(r, r._startTime - r._delay) : n = r._startTime, 0 > r._startTime && !r._paused && (s -= r._startTime, this._timeline.smoothChildTiming && (this._startTime += r._startTime / this._timeScale), this.shiftChildren(-r._startTime, !1, -9999999999), n = 0), i = r._startTime + r._totalDuration / r._timeScale, i > s && (s = i), r = e; 401 this._duration = this._totalDuration = s, this._dirty = !1 402 } 403 return this._totalDuration 404 } 405 return 0 !== this.totalDuration() && 0 !== t && this.timeScale(this._totalDuration / t), this 406 }, d.paused = function (e) { 407 if (!e) 408 for (var i = this._first, s = this._time; i;) i._startTime === s && "isPause" === i.data && (i._rawPrevTime = 0), i = i._next; 409 return t.prototype.paused.apply(this, arguments) 410 }, d.usesFrames = function () { 411 for (var e = this._timeline; e._timeline;) e = e._timeline; 412 return e === t._rootFramesTimeline 413 }, d.rawTime = function () { 414 return this._paused ? this._totalTime : (this._timeline.rawTime() - this._startTime) * this._timeScale 415 }, s 416 }, !0), _gsScope._gsDefine("TimelineMax", ["TimelineLite", "TweenLite", "easing.Ease"], function (t, e, i) { 417 var s = function (e) { 418 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 419 }, 420 r = 1e-10, 421 n = e._internals, 422 a = n.lazyTweens, 423 o = n.lazyRender, 424 l = new i(null, null, 1, 0), 425 h = s.prototype = new t; 426 return h.constructor = s, h.kill()._gc = !1, s.version = "1.18.0", h.invalidate = function () { 427 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) 428 }, h.addCallback = function (t, i, s, r) { 429 return this.add(e.delayedCall(0, t, s, r), i) 430 }, h.removeCallback = function (t, e) { 431 if (t) 432 if (null == e) this._kill(null, t); 433 else 434 for (var i = this.getTweensOf(t, !1), s = i.length, r = this._parseTimeOrLabel(e); --s > -1;) i[s]._startTime === r && i[s]._enabled(!1, !1); 435 return this 436 }, h.removePause = function (e) { 437 return this.removeCallback(t._internals.pauseCallback, e) 438 }, h.tweenTo = function (t, i) { 439 i = i || {}; 440 var s, r, n, a = { 441 ease: l, 442 useFrames: this.usesFrames(), 443 immediateRender: !1 444 }; 445 for (r in i) a[r] = i[r]; 446 return a.time = this._parseTimeOrLabel(t), s = Math.abs(Number(a.time) - this._time) / this._timeScale || .001, n = new e(this, s, a), a.onStart = function () { 447 n.target.paused(!0), n.vars.time !== n.target.time() && s === n.duration() && n.duration(Math.abs(n.vars.time - n.target.time()) / n.target._timeScale), i.onStart && n._callback("onStart") 448 }, n 449 }, h.tweenFromTo = function (t, e, i) { 450 i = i || {}, t = this._parseTimeOrLabel(t), i.startAt = { 451 onComplete: this.seek, 452 onCompleteParams: [t], 453 callbackScope: this 454 }, i.immediateRender = i.immediateRender !== !1; 455 var s = this.tweenTo(e, i); 456 return s.duration(Math.abs(s.vars.time - t) / this._timeScale || .001) 457 }, h.render = function (t, e, i) { 458 this._gc && this._enabled(!0, !1); 459 var s, n, l, h, _, u, c, f = this._dirty ? this.totalDuration() : this._totalDuration, 460 p = this._duration, 461 m = this._time, 462 d = this._totalTime, 463 g = this._startTime, 464 v = this._timeScale, 465 y = this._rawPrevTime, 466 T = this._paused, 467 x = this._cycle; 468 if (t >= f) this._locked || (this._totalTime = f, this._cycle = this._repeat), this._reversed || this._hasPausedChild() || (n = !0, h = "onComplete", _ = !!this._timeline.autoRemoveChildren, 0 === this._duration && (0 === t || 0 > y || y === r) && y !== t && this._first && (_ = !0, y > r && (h = "onReverseComplete"))), this._rawPrevTime = this._duration || !e || t || this._rawPrevTime === t ? t : r, this._yoyo && 0 !== (1 & this._cycle) ? this._time = t = 0 : (this._time = p, t = p + 1e-4); 469 else if (1e-7 > t) 470 if (this._locked || (this._totalTime = this._cycle = 0), this._time = 0, (0 !== m || 0 === p && y !== r && (y > 0 || 0 > t && y >= 0) && !this._locked) && (h = "onReverseComplete", n = this._reversed), 0 > t) this._active = !1, this._timeline.autoRemoveChildren && this._reversed ? (_ = n = !0, h = "onReverseComplete") : y >= 0 && this._first && (_ = !0), this._rawPrevTime = t; 471 else { 472 if (this._rawPrevTime = p || !e || t || this._rawPrevTime === t ? t : r, 0 === t && n) 473 for (s = this._first; s && 0 === s._startTime;) s._duration || (n = !1), s = s._next; 474 t = 0, this._initted || (_ = !0) 475 } 476 else if (0 === p && 0 > y && (_ = !0), this._time = this._rawPrevTime = t, this._locked || (this._totalTime = t, 0 !== this._repeat && (u = p + this._repeatDelay, this._cycle = this._totalTime / u >> 0, 0 !== this._cycle && this._cycle === this._totalTime / u && this._cycle--, this._time = this._totalTime - this._cycle * u, this._yoyo && 0 !== (1 & this._cycle) && (this._time = p - this._time), this._time > p ? (this._time = p, t = p + 1e-4) : 0 > this._time ? this._time = t = 0 : t = this._time)), this._hasPause && !this._forcingPlayhead && !e) { 477 if (t = this._time, t >= m) 478 for (s = this._first; s && t >= s._startTime && !c;) s._duration || "isPause" !== s.data || s.ratio || 0 === s._startTime && 0 === this._rawPrevTime || (c = s), s = s._next; 479 else 480 for (s = this._last; s && s._startTime >= t && !c;) s._duration || "isPause" === s.data && s._rawPrevTime > 0 && (c = s), s = s._prev; 481 c && (this._time = t = c._startTime, this._totalTime = t + this._cycle * (this._totalDuration + this._repeatDelay)) 482 } 483 if (this._cycle !== x && !this._locked) { 484 var w = this._yoyo && 0 !== (1 & x), 485 b = w === (this._yoyo && 0 !== (1 & this._cycle)), 486 P = this._totalTime, 487 k = this._cycle, 488 S = this._rawPrevTime, 489 R = this._time; 490 if (this._totalTime = x * p, x > this._cycle ? w = !w : this._totalTime += p, this._time = m, this._rawPrevTime = 0 === p ? y - 1e-4 : y, this._cycle = x, this._locked = !0, m = w ? 0 : p, this.render(m, e, 0 === p), e || this._gc || this.vars.onRepeat && this._callback("onRepeat"), b && (m = w ? p + 1e-4 : -1e-4, this.render(m, !0, !1)), this._locked = !1, this._paused && !T) return; 491 this._time = R, this._totalTime = P, this._cycle = k, this._rawPrevTime = S 492 } 493 if (!(this._time !== m && this._first || i || _ || c)) return d !== this._totalTime && this._onUpdate && (e || this._callback("onUpdate")), void 0; 494 if (this._initted || (this._initted = !0), this._active || !this._paused && this._totalTime !== d && t > 0 && (this._active = !0), 0 === d && this.vars.onStart && 0 !== this._totalTime && (e || this._callback("onStart")), this._time >= m) 495 for (s = this._first; s && (l = s._next, !this._paused || T);)(s._active || s._startTime <= this._time && !s._paused && !s._gc) && (c === s && this.pause(), s._reversed ? s.render((s._dirty ? s.totalDuration() : s._totalDuration) - (t - s._startTime) * s._timeScale, e, i) : s.render((t - s._startTime) * s._timeScale, e, i)), s = l; 496 else 497 for (s = this._last; s && (l = s._prev, !this._paused || T);) { 498 if (s._active || m >= s._startTime && !s._paused && !s._gc) { 499 if (c === s) { 500 for (c = s._prev; c && c.endTime() > this._time;) c.render(c._reversed ? c.totalDuration() - (t - c._startTime) * c._timeScale : (t - c._startTime) * c._timeScale, e, i), c = c._prev; 501 c = null, this.pause() 502 } 503 s._reversed ? s.render((s._dirty ? s.totalDuration() : s._totalDuration) - (t - s._startTime) * s._timeScale, e, i) : s.render((t - s._startTime) * s._timeScale, e, i) 504 } 505 s = l 506 } 507 this._onUpdate && (e || (a.length && o(), this._callback("onUpdate"))), h && (this._locked || this._gc || (g === this._startTime || v !== this._timeScale) && (0 === this._time || f >= this.totalDuration()) && (n && (a.length && o(), this._timeline.autoRemoveChildren && this._enabled(!1, !1), this._active = !1), !e && this.vars[h] && this._callback(h))) 508 }, h.getActive = function (t, e, i) { 509 null == t && (t = !0), null == e && (e = !0), null == i && (i = !1); 510 var s, r, n = [], 511 a = this.getChildren(t, e, i), 512 o = 0, 513 l = a.length; 514 for (s = 0; l > s; s++) r = a[s], r.isActive() && (n[o++] = r); 515 return n 516 }, h.getLabelAfter = function (t) { 517 t || 0 !== t && (t = this._time); 518 var e, i = this.getLabelsArray(), 519 s = i.length; 520 for (e = 0; s > e; e++) 521 if (i[e].time > t) return i[e].name; 522 return null 523 }, h.getLabelBefore = function (t) { 524 null == t && (t = this._time); 525 for (var e = this.getLabelsArray(), i = e.length; --i > -1;) 526 if (t > e[i].time) return e[i].name; 527 return null 528 }, h.getLabelsArray = function () { 529 var t, e = [], 530 i = 0; 531 for (t in this._labels) e[i++] = { 532 time: this._labels[t], 533 name: t 534 }; 535 return e.sort(function (t, e) { 536 return t.time - e.time 537 }), e 538 }, h.progress = function (t, e) { 539 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() 540 }, h.totalProgress = function (t, e) { 541 return arguments.length ? this.totalTime(this.totalDuration() * t, e) : this._totalTime / this.totalDuration() 542 }, h.totalDuration = function (e) { 543 return arguments.length ? -1 === this._repeat ? this : this.duration((e - this._repeat * this._repeatDelay) / (this._repeat + 1)) : (this._dirty && (t.prototype.totalDuration.call(this), this._totalDuration = -1 === this._repeat ? 999999999999 : this._duration * (this._repeat + 1) + this._repeatDelay * this._repeat), this._totalDuration) 544 }, h.time = function (t, e) { 545 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 546 }, h.repeat = function (t) { 547 return arguments.length ? (this._repeat = t, this._uncache(!0)) : this._repeat 548 }, h.repeatDelay = function (t) { 549 return arguments.length ? (this._repeatDelay = t, this._uncache(!0)) : this._repeatDelay 550 }, h.yoyo = function (t) { 551 return arguments.length ? (this._yoyo = t, this) : this._yoyo 552 }, h.currentLabel = function (t) { 553 return arguments.length ? this.seek(t, !0) : this.getLabelBefore(this._time + 1e-8) 554 }, s 555 }, !0), 556 function () { 557 var t = 180 / Math.PI, 558 e = [], 559 i = [], 560 s = [], 561 r = {}, 562 n = _gsScope._gsDefine.globals, 563 a = function (t, e, i, s) { 564 this.a = t, this.b = e, this.c = i, this.d = s, this.da = s - t, this.ca = i - t, this.ba = e - t 565 }, 566 o = ",x,y,z,left,top,right,bottom,marginTop,marginLeft,marginRight,marginBottom,paddingLeft,paddingTop,paddingRight,paddingBottom,backgroundPosition,backgroundPosition_y,", 567 l = function (t, e, i, s) { 568 var r = { 569 a: t 570 }, 571 n = {}, 572 a = {}, 573 o = { 574 c: s 575 }, 576 l = (t + e) / 2, 577 h = (e + i) / 2, 578 _ = (i + s) / 2, 579 u = (l + h) / 2, 580 c = (h + _) / 2, 581 f = (c - u) / 8; 582 return r.b = l + (t - l) / 4, n.b = u + f, r.c = n.a = (r.b + n.b) / 2, n.c = a.a = (u + c) / 2, a.b = c - f, o.b = _ + (s - _) / 4, a.c = o.a = (a.b + o.b) / 2, [r, n, a, o] 583 }, 584 h = function (t, r, n, a, o) { 585 var h, _, u, c, f, p, m, d, g, v, y, T, x, w = t.length - 1, 586 b = 0, 587 P = t[0].a; 588 for (h = 0; w > h; h++) f = t[b], _ = f.a, u = f.d, c = t[b + 1].d, o ? (y = e[h], T = i[h], x = .25 * (T + y) * r / (a ? .5 : s[h] || .5), p = u - (u - _) * (a ? .5 * r : 0 !== y ? x / y : 0), m = u + (c - u) * (a ? .5 * r : 0 !== T ? x / T : 0), d = u - (p + ((m - p) * (3 * y / (y + T) + .5) / 4 || 0))) : (p = u - .5 * (u - _) * r, m = u + .5 * (c - u) * r, d = u - (p + m) / 2), p += d, m += d, f.c = g = p, f.b = 0 !== h ? P : P = f.a + .6 * (f.c - f.a), f.da = u - _, f.ca = g - _, f.ba = P - _, n ? (v = l(_, P, g, u), t.splice(b, 1, v[0], v[1], v[2], v[3]), b += 4) : b++, P = m; 589 f = t[b], f.b = P, f.c = P + .4 * (f.d - P), f.da = f.d - f.a, f.ca = f.c - f.a, f.ba = P - f.a, n && (v = l(f.a, P, f.c, f.d), t.splice(b, 1, v[0], v[1], v[2], v[3])) 590 }, 591 _ = function (t, s, r, n) { 592 var o, l, h, _, u, c, f = []; 593 if (n) 594 for (t = [n].concat(t), l = t.length; --l > -1;) "string" == typeof (c = t[l][s]) && "=" === c.charAt(1) && (t[l][s] = n[s] + Number(c.charAt(0) + c.substr(2))); 595 if (o = t.length - 2, 0 > o) return f[0] = new a(t[0][s], 0, 0, t[-1 > o ? 0 : 1][s]), f; 596 for (l = 0; o > l; l++) h = t[l][s], _ = t[l + 1][s], f[l] = new a(h, 0, 0, _), r && (u = t[l + 2][s], e[l] = (e[l] || 0) + (_ - h) * (_ - h), i[l] = (i[l] || 0) + (u - _) * (u - _)); 597 return f[l] = new a(t[l][s], 0, 0, t[l + 1][s]), f 598 }, 599 u = function (t, n, a, l, u, c) { 600 var f, p, m, d, g, v, y, T, x = {}, 601 w = [], 602 b = c || t[0]; 603 u = "string" == typeof u ? "," + u + "," : o, null == n && (n = 1); 604 for (p in t[0]) w.push(p); 605 if (t.length > 1) { 606 for (T = t[t.length - 1], y = !0, f = w.length; --f > -1;) 607 if (p = w[f], Math.abs(b[p] - T[p]) > .05) { 608 y = !1; 609 break 610 } y && (t = t.concat(), c && t.unshift(c), t.push(t[1]), c = t[t.length - 3]) 611 } 612 for (e.length = i.length = s.length = 0, f = w.length; --f > -1;) p = w[f], r[p] = -1 !== u.indexOf("," + p + ","), x[p] = _(t, p, r[p], c); 613 for (f = e.length; --f > -1;) e[f] = Math.sqrt(e[f]), i[f] = Math.sqrt(i[f]); 614 if (!l) { 615 for (f = w.length; --f > -1;) 616 if (r[p]) 617 for (m = x[w[f]], v = m.length - 1, d = 0; v > d; d++) g = m[d + 1].da / i[d] + m[d].da / e[d], s[d] = (s[d] || 0) + g * g; 618 for (f = s.length; --f > -1;) s[f] = Math.sqrt(s[f]) 619 } 620 for (f = w.length, d = a ? 4 : 1; --f > -1;) p = w[f], m = x[p], h(m, n, a, l, r[p]), y && (m.splice(0, d), m.splice(m.length - d, d)); 621 return x 622 }, 623 c = function (t, e, i) { 624 e = e || "soft"; 625 var s, r, n, o, l, h, _, u, c, f, p, m = {}, 626 d = "cubic" === e ? 3 : 2, 627 g = "soft" === e, 628 v = []; 629 if (g && i && (t = [i].concat(t)), null == t || d + 1 > t.length) throw "invalid Bezier data"; 630 for (c in t[0]) v.push(c); 631 for (h = v.length; --h > -1;) { 632 for (c = v[h], m[c] = l = [], f = 0, u = t.length, _ = 0; u > _; _++) s = null == i ? t[_][c] : "string" == typeof (p = t[_][c]) && "=" === p.charAt(1) ? i[c] + Number(p.charAt(0) + p.substr(2)) : Number(p), g && _ > 1 && u - 1 > _ && (l[f++] = (s + l[f - 2]) / 2), l[f++] = s; 633 for (u = f - d + 1, f = 0, _ = 0; u > _; _ += d) s = l[_], r = l[_ + 1], n = l[_ + 2], o = 2 === d ? 0 : l[_ + 3], l[f++] = p = 3 === d ? new a(s, r, n, o) : new a(s, (2 * r + s) / 3, (2 * r + n) / 3, n); 634 l.length = f 635 } 636 return m 637 }, 638 f = function (t, e, i) { 639 for (var s, r, n, a, o, l, h, _, u, c, f, p = 1 / i, m = t.length; --m > -1;) 640 for (c = t[m], n = c.a, a = c.d - n, o = c.c - n, l = c.b - n, s = r = 0, _ = 1; i >= _; _++) h = p * _, u = 1 - h, s = r - (r = (h * h * a + 3 * u * (h * o + u * l)) * h), f = m * i + _ - 1, e[f] = (e[f] || 0) + s * s 641 }, 642 p = function (t, e) { 643 e = e >> 0 || 6; 644 var i, s, r, n, a = [], 645 o = [], 646 l = 0, 647 h = 0, 648 _ = e - 1, 649 u = [], 650 c = []; 651 for (i in t) f(t[i], a, e); 652 for (r = a.length, s = 0; r > s; s++) l += Math.sqrt(a[s]), n = s % e, c[n] = l, n === _ && (h += l, n = s / e >> 0, u[n] = c, o[n] = h, l = 0, c = []); 653 return { 654 length: h, 655 lengths: o, 656 segments: u 657 } 658 }, 659 m = _gsScope._gsDefine.plugin({ 660 propName: "bezier", 661 priority: -1, 662 version: "1.3.4", 663 API: 2, 664 global: !0, 665 init: function (t, e, i) { 666 this._target = t, e instanceof Array && (e = { 667 values: e 668 }), this._func = {}, this._round = {}, this._props = [], this._timeRes = null == e.timeResolution ? 6 : parseInt(e.timeResolution, 10); 669 var s, r, n, a, o, l = e.values || [], 670 h = {}, 671 _ = l[0], 672 f = e.autoRotate || i.vars.orientToBezier; 673 this._autoRotate = f ? f instanceof Array ? f : [ 674 ["x", "y", "rotation", f === !0 ? 0 : Number(f) || 0] 675 ] : null; 676 for (s in _) this._props.push(s); 677 for (n = this._props.length; --n > -1;) s = this._props[n], this._overwriteProps.push(s), r = this._func[s] = "function" == typeof t[s], h[s] = r ? t[s.indexOf("set") || "function" != typeof t["get" + s.substr(3)] ? s : "get" + s.substr(3)]() : parseFloat(t[s]), o || h[s] !== l[0][s] && (o = h); 678 if (this._beziers = "cubic" !== e.type && "quadratic" !== e.type && "soft" !== e.type ? u(l, isNaN(e.curviness) ? 1 : e.curviness, !1, "thruBasic" === e.type, e.correlate, o) : c(l, e.type, h), this._segCount = this._beziers[s].length, this._timeRes) { 679 var m = p(this._beziers, this._timeRes); 680 this._length = m.length, this._lengths = m.lengths, this._segments = m.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 681 } 682 if (f = this._autoRotate) 683 for (this._initialRotations = [], f[0] instanceof Array || (this._autoRotate = f = [f]), n = f.length; --n > -1;) { 684 for (a = 0; 3 > a; a++) s = f[n][a], this._func[s] = "function" == typeof t[s] ? t[s.indexOf("set") || "function" != typeof t["get" + s.substr(3)] ? s : "get" + s.substr(3)] : !1; 685 s = f[n][2], this._initialRotations[n] = this._func[s] ? this._func[s].call(this._target) : this._target[s] 686 } 687 return this._startRatio = i.vars.runBackwards ? 1 : 0, !0 688 }, 689 set: function (e) { 690 var i, s, r, n, a, o, l, h, _, u, c = this._segCount, 691 f = this._func, 692 p = this._target, 693 m = e !== this._startRatio; 694 if (this._timeRes) { 695 if (_ = this._lengths, u = this._curSeg, e *= this._length, r = this._li, e > this._l2 && c - 1 > r) { 696 for (h = c - 1; h > r && e >= (this._l2 = _[++r]);); 697 this._l1 = _[r - 1], this._li = r, this._curSeg = u = this._segments[r], this._s2 = u[this._s1 = this._si = 0] 698 } else if (this._l1 > e && r > 0) { 699 for (; r > 0 && (this._l1 = _[--r]) >= e;); 700 0 === r && this._l1 > e ? this._l1 = 0 : r++, this._l2 = _[r], this._li = r, this._curSeg = u = this._segments[r], this._s1 = u[(this._si = u.length - 1) - 1] || 0, this._s2 = u[this._si] 701 } 702 if (i = r, e -= this._l1, r = this._si, e > this._s2 && u.length - 1 > r) { 703 for (h = u.length - 1; h > r && e >= (this._s2 = u[++r]);); 704 this._s1 = u[r - 1], this._si = r 705 } else if (this._s1 > e && r > 0) { 706 for (; r > 0 && (this._s1 = u[--r]) >= e;); 707 0 === r && this._s1 > e ? this._s1 = 0 : r++, this._s2 = u[r], this._si = r 708 } 709 o = (r + (e - this._s1) / (this._s2 - this._s1)) * this._prec 710 } else i = 0 > e ? 0 : e >= 1 ? c - 1 : c * e >> 0, o = (e - i * (1 / c)) * c; 711 for (s = 1 - o, r = this._props.length; --r > -1;) n = this._props[r], a = this._beziers[n][i], l = (o * o * a.da + 3 * s * (o * a.ca + s * a.ba)) * o + a.a, this._round[n] && (l = Math.round(l)), f[n] ? p[n](l) : p[n] = l; 712 if (this._autoRotate) { 713 var d, g, v, y, T, x, w, b = this._autoRotate; 714 for (r = b.length; --r > -1;) n = b[r][2], x = b[r][3] || 0, w = b[r][4] === !0 ? 1 : t, a = this._beziers[b[r][0]], d = this._beziers[b[r][1]], a && d && (a = a[i], d = d[i], g = a.a + (a.b - a.a) * o, y = a.b + (a.c - a.b) * o, g += (y - g) * o, y += (a.c + (a.d - a.c) * o - y) * o, v = d.a + (d.b - d.a) * o, T = d.b + (d.c - d.b) * o, v += (T - v) * o, T += (d.c + (d.d - d.c) * o - T) * o, l = m ? Math.atan2(T - v, y - g) * w + x : this._initialRotations[r], f[n] ? p[n](l) : p[n] = l) 715 } 716 } 717 }), 718 d = m.prototype; 719 m.bezierThrough = u, m.cubicToQuadratic = l, m._autoCSS = !0, m.quadraticToCubic = function (t, e, i) { 720 return new a(t, (2 * e + t) / 3, (2 * e + i) / 3, i) 721 }, m._cssRegister = function () { 722 var t = n.CSSPlugin; 723 if (t) { 724 var e = t._internals, 725 i = e._parseToProxy, 726 s = e._setPluginRatio, 727 r = e.CSSPropTween; 728 e._registerComplexSpecialProp("bezier", { 729 parser: function (t, e, n, a, o, l) { 730 e instanceof Array && (e = { 731 values: e 732 }), l = new m; 733 var h, _, u, c = e.values, 734 f = c.length - 1, 735 p = [], 736 d = {}; 737 if (0 > f) return o; 738 for (h = 0; f >= h; h++) u = i(t, c[h], a, o, l, f !== h), p[h] = u.end; 739 for (_ in e) d[_] = e[_]; 740 return d.values = p, o = new r(t, "bezier", 0, 0, u.pt, 2), o.data = u, o.plugin = l, o.setRatio = s, 0 === d.autoRotate && (d.autoRotate = !0), !d.autoRotate || d.autoRotate instanceof Array || (h = d.autoRotate === !0 ? 0 : Number(d.autoRotate), d.autoRotate = null != u.end.left ? [ 741 ["left", "top", "rotation", h, !1] 742 ] : null != u.end.x ? [ 743 ["x", "y", "rotation", h, !1] 744 ] : !1), d.autoRotate && (a._transform || a._enableTransforms(!1), u.autoRotate = a._target._gsTransform), l._onInitTween(u.proxy, d, a._tween), o 745 } 746 }) 747 } 748 }, d._roundProps = function (t, e) { 749 for (var i = this._overwriteProps, s = i.length; --s > -1;)(t[i[s]] || t.bezier || t.bezierThrough) && (this._round[i[s]] = e) 750 }, d._kill = function (t) { 751 var e, i, s = this._props; 752 for (e in this._beziers) 753 if (e in t) 754 for (delete this._beziers[e], delete this._func[e], i = s.length; --i > -1;) s[i] === e && s.splice(i, 1); 755 return this._super._kill.call(this, t) 756 } 757 }(), _gsScope._gsDefine("plugins.CSSPlugin", ["plugins.TweenPlugin", "TweenLite"], function (t, e) { 758 var i, s, r, n, a = function () { 759 t.call(this, "css"), this._overwriteProps.length = 0, this.setRatio = a.prototype.setRatio 760 }, 761 o = _gsScope._gsDefine.globals, 762 l = {}, 763 h = a.prototype = new t("css"); 764 h.constructor = a, a.version = "1.18.0", a.API = 2, a.defaultTransformPerspective = 0, a.defaultSkewType = "compensated", a.defaultSmoothOrigin = !0, h = "px", a.suffixMap = { 765 top: h, 766 right: h, 767 bottom: h, 768 left: h, 769 width: h, 770 height: h, 771 fontSize: h, 772 padding: h, 773 margin: h, 774 perspective: h, 775 lineHeight: "" 776 }; 777 var _, u, c, f, p, m, d = /(?:\d|\-\d|\.\d|\-\.\d)+/g, 778 g = /(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g, 779 v = /(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi, 780 y = /(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g, 781 T = /(?:\d|\-|\+|=|#|\.)*/g, 782 x = /opacity *= *([^)]*)/i, 783 w = /opacity:([^;]*)/i, 784 b = /alpha\(opacity *=.+?\)/i, 785 P = /^(rgb|hsl)/, 786 k = /([A-Z])/g, 787 S = /-([a-z])/gi, 788 R = /(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi, 789 O = function (t, e) { 790 return e.toUpperCase() 791 }, 792 A = /(?:Left|Right|Width)/i, 793 C = /(M11|M12|M21|M22)=[\d\-\.e]+/gi, 794 D = /progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i, 795 M = /,(?=[^\)]*(?:\(|$))/gi, 796 z = Math.PI / 180, 797 F = 180 / Math.PI, 798 I = {}, 799 E = document, 800 N = function (t) { 801 return E.createElementNS ? E.createElementNS("http://www.w3.org/1999/xhtml", t) : E.createElement(t) 802 }, 803 L = N("div"), 804 X = N("img"), 805 B = a._internals = { 806 _specialProps: l 807 }, 808 j = navigator.userAgent, 809 Y = function () { 810 var t = j.indexOf("Android"), 811 e = N("a"); 812 return c = -1 !== j.indexOf("Safari") && -1 === j.indexOf("Chrome") && (-1 === t || Number(j.substr(t + 8, 1)) > 3), p = c && 6 > Number(j.substr(j.indexOf("Version/") + 8, 1)), f = -1 !== j.indexOf("Firefox"), (/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(j) || /Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(j)) && (m = parseFloat(RegExp.$1)), e ? (e.style.cssText = "top:1px;opacity:.55;", /^0.55/.test(e.style.opacity)) : !1 813 }(), 814 U = function (t) { 815 return x.test("string" == typeof t ? t : (t.currentStyle ? t.currentStyle.filter : t.style.filter) || "") ? parseFloat(RegExp.$1) / 100 : 1 816 }, 817 q = function (t) { 818 window.console && console.log(t) 819 }, 820 V = "", 821 G = "", 822 W = function (t, e) { 823 e = e || L; 824 var i, s, r = e.style; 825 if (void 0 !== r[t]) return t; 826 for (t = t.charAt(0).toUpperCase() + t.substr(1), i = ["O", "Moz", "ms", "Ms", "Webkit"], s = 5; --s > -1 && void 0 === r[i[s] + t];); 827 return s >= 0 ? (G = 3 === s ? "ms" : i[s], V = "-" + G.toLowerCase() + "-", G + t) : null 828 }, 829 Z = E.defaultView ? E.defaultView.getComputedStyle : function () {}, 830 Q = a.getStyle = function (t, e, i, s, r) { 831 var n; 832 return Y || "opacity" !== e ? (!s && t.style[e] ? n = t.style[e] : (i = i || Z(t)) ? n = i[e] || i.getPropertyValue(e) || i.getPropertyValue(e.replace(k, "-$1").toLowerCase()) : t.currentStyle && (n = t.currentStyle[e]), null == r || n && "none" !== n && "auto" !== n && "auto auto" !== n ? n : r) : U(t) 833 }, 834 $ = B.convertToPixels = function (t, i, s, r, n) { 835 if ("px" === r || !r) return s; 836 if ("auto" === r || !s) return 0; 837 var o, l, h, _ = A.test(i), 838 u = t, 839 c = L.style, 840 f = 0 > s; 841 if (f && (s = -s), "%" === r && -1 !== i.indexOf("border")) o = s / 100 * (_ ? t.clientWidth : t.clientHeight); 842 else { 843 if (c.cssText = "border:0 solid red;position:" + Q(t, "position") + ";line-height:0;", "%" !== r && u.appendChild && "v" !== r.charAt(0) && "rem" !== r) c[_ ? "borderLeftWidth" : "borderTopWidth"] = s + r; 844 else { 845 if (u = t.parentNode || E.body, l = u._gsCache, h = e.ticker.frame, l && _ && l.time === h) return l.width * s / 100; 846 c[_ ? "width" : "height"] = s + r 847 } 848 u.appendChild(L), o = parseFloat(L[_ ? "offsetWidth" : "offsetHeight"]), u.removeChild(L), _ && "%" === r && a.cacheWidths !== !1 && (l = u._gsCache = u._gsCache || {}, l.time = h, l.width = 100 * (o / s)), 0 !== o || n || (o = $(t, i, s, r, !0)) 849 } 850 return f ? -o : o 851 }, 852 H = B.calculateOffset = function (t, e, i) { 853 if ("absolute" !== Q(t, "position", i)) return 0; 854 var s = "left" === e ? "Left" : "Top", 855 r = Q(t, "margin" + s, i); 856 return t["offset" + s] - ($(t, e, parseFloat(r), r.replace(T, "")) || 0) 857 }, 858 K = function (t, e) { 859 var i, s, r, n = {}; 860 if (e = e || Z(t, null)) 861 if (i = e.length) 862 for (; --i > -1;) r = e[i], (-1 === r.indexOf("-transform") || ke === r) && (n[r.replace(S, O)] = e.getPropertyValue(r)); 863 else 864 for (i in e)(-1 === i.indexOf("Transform") || Pe === i) && (n[i] = e[i]); 865 else if (e = t.currentStyle || t.style) 866 for (i in e) "string" == typeof i && void 0 === n[i] && (n[i.replace(S, O)] = e[i]); 867 return Y || (n.opacity = U(t)), s = Ne(t, e, !1), n.rotation = s.rotation, n.skewX = s.skewX, n.scaleX = s.scaleX, n.scaleY = s.scaleY, n.x = s.x, n.y = s.y, Re && (n.z = s.z, n.rotationX = s.rotationX, n.rotationY = s.rotationY, n.scaleZ = s.scaleZ), n.filters && delete n.filters, n 868 }, 869 J = function (t, e, i, s, r) { 870 var n, a, o, l = {}, 871 h = t.style; 872 for (a in i) "cssText" !== a && "length" !== a && isNaN(a) && (e[a] !== (n = i[a]) || r && r[a]) && -1 === a.indexOf("Origin") && ("number" == typeof n || "string" == typeof n) && (l[a] = "auto" !== n || "left" !== a && "top" !== a ? "" !== n && "auto" !== n && "n
vendor: 4,711 bytes, lines 872-945
872one" !== n || "string" != typeof e[a] || "" === e[a].replace(y, "") ? n : 0 : H(t, a), void 0 !== h[a] && (o = new pe(h, a, h[a], o))); 873 if (s) 874 for (a in s) "className" !== a && (l[a] = s[a]); 875 return { 876 difs: l, 877 firstMPT: o 878 } 879 }, 880 te = { 881 width: ["Left", "Right"], 882 height: ["Top", "Bottom"] 883 }, 884 ee = ["marginLeft", "marginRight", "marginTop", "marginBottom"], 885 ie = function (t, e, i) { 886 var s = parseFloat("width" === e ? t.offsetWidth : t.offsetHeight), 887 r = te[e], 888 n = r.length; 889 for (i = i || Z(t, null); --n > -1;) s -= parseFloat(Q(t, "padding" + r[n], i, !0)) || 0, s -= parseFloat(Q(t, "border" + r[n] + "Width", i, !0)) || 0; 890 return s 891 }, 892 se = function (t, e) { 893 if ("contain" === t || "auto" === t || "auto auto" === t) return t + " "; 894 (null == t || "" === t) && (t = "0 0"); 895 var i = t.split(" "), 896 s = -1 !== t.indexOf("left") ? "0%" : -1 !== t.indexOf("right") ? "100%" : i[0], 897 r = -1 !== t.indexOf("top") ? "0%" : -1 !== t.indexOf("bottom") ? "100%" : i[1]; 898 return null == r ? r = "center" === s ? "50%" : "0" : "center" === r && (r = "50%"), ("center" === s || isNaN(parseFloat(s)) && -1 === (s + "").indexOf("=")) && (s = "50%"), t = s + " " + r + (i.length > 2 ? " " + i[2] : ""), e && (e.oxp = -1 !== s.indexOf("%"), e.oyp = -1 !== r.indexOf("%"), e.oxr = "=" === s.charAt(1), e.oyr = "=" === r.charAt(1), e.ox = parseFloat(s.replace(y, "")), e.oy = parseFloat(r.replace(y, "")), e.v = t), e || t 899 }, 900 re = function (t, e) { 901 return "string" == typeof t && "=" === t.charAt(1) ? parseInt(t.charAt(0) + "1", 10) * parseFloat(t.substr(2)) : parseFloat(t) - parseFloat(e) 902 }, 903 ne = function (t, e) { 904 return null == t ? e : "string" == typeof t && "=" === t.charAt(1) ? parseInt(t.charAt(0) + "1", 10) * parseFloat(t.substr(2)) + e : parseFloat(t) 905 }, 906 ae = function (t, e, i, s) { 907 var r, n, a, o, l, h = 1e-6; 908 return null == t ? o = e : "number" == typeof t ? o = t : (r = 360, n = t.split("_"), l = "=" === t.charAt(1), a = (l ? parseInt(t.charAt(0) + "1", 10) * parseFloat(n[0].substr(2)) : parseFloat(n[0])) * (-1 === t.indexOf("rad") ? 1 : F) - (l ? 0 : e), n.length && (s && (s[i] = e + a), -1 !== t.indexOf("short") && (a %= r, a !== a % (r / 2) && (a = 0 > a ? a + r : a - r)), -1 !== t.indexOf("_cw") && 0 > a ? a = (a + 9999999999 * r) % r - (0 | a / r) * r : -1 !== t.indexOf("ccw") && a > 0 && (a = (a - 9999999999 * r) % r - (0 | a / r) * r)), o = e + a), h > o && o > -h && (o = 0), o 909 }, 910 oe = { 911 aqua: [0, 255, 255], 912 lime: [0, 255, 0], 913 silver: [192, 192, 192], 914 black: [0, 0, 0], 915 maroon: [128, 0, 0], 916 teal: [0, 128, 128], 917 blue: [0, 0, 255], 918 navy: [0, 0, 128], 919 white: [255, 255, 255], 920 fuchsia: [255, 0, 255], 921 olive: [128, 128, 0], 922 yellow: [255, 255, 0], 923 orange: [255, 165, 0], 924 gray: [128, 128, 128], 925 purple: [128, 0, 128], 926 green: [0, 128, 0], 927 red: [255, 0, 0], 928 pink: [255, 192, 203], 929 cyan: [0, 255, 255], 930 transparent: [255, 255, 255, 0] 931 }, 932 le = function (t, e, i) { 933 return t = 0 > t ? t + 1 : t > 1 ? t - 1 : t, 0 | 255 * (1 > 6 * t ? e + 6 * (i - e) * t : .5 > t ? i : 2 > 3 * t ? e + 6 * (i - e) * (2 / 3 - t) : e) + .5 934 }, 935 he = a.parseColor = function (t, e) { 936 var i, s, r, n, a, o, l, h, _, u, c; 937 if (t) 938 if ("number" == typeof t) i = [t >> 16, 255 & t >> 8, 255 & t]; 939 else { 940 if ("," === t.charAt(t.length - 1) && (t = t.substr(0, t.length - 1)), oe[t]) i = oe[t]; 941 else if ("#" === t.charAt(0)) 4 === t.length && (s = t.charAt(1), r = t.charAt(2), n = t.charAt(3), t = "#" + s + s + r + r + n + n), t = parseInt(t.substr(1), 16), i = [t >> 16, 255 & t >> 8, 255 & t]; 942 else if ("hsl" === t.substr(0, 3)) 943 if (i = c = t.match(d), e) { 944 if (-1 !== t.indexOf("=")) return t.match(g) 945 } else a = Number(i[0]) % 360 / 360, o = Number(i[1]) / 100, l = Number(i[2]) / 100, r = .5 >= l ? l * (o + 1) : l + o - l * o, s = 2 * l - r, i.length > 3 && (i[3] = Number(t[3])), i[0] = le(a + 1 / 3, s, r), i[1] = le(a, s, r), i[2] = le(
vendor: 11,405 bytes, lines 945-1120
945a - 1 / 3, s, r); 946 else i = t.match(d) || oe.transparent; 947 i[0] = Number(i[0]), i[1] = Number(i[1]), i[2] = Number(i[2]), i.length > 3 && (i[3] = Number(i[3])) 948 } 949 else i = oe.black; 950 return e && !c && (s = i[0] / 255, r = i[1] / 255, n = i[2] / 255, h = Math.max(s, r, n), _ = Math.min(s, r, n), l = (h + _) / 2, h === _ ? a = o = 0 : (u = h - _, o = l > .5 ? u / (2 - h - _) : u / (h + _), a = h === s ? (r - n) / u + (n > r ? 6 : 0) : h === r ? (n - s) / u + 2 : (s - r) / u + 4, a *= 60), i[0] = 0 | a + .5, i[1] = 0 | 100 * o + .5, i[2] = 0 | 100 * l + .5), i 951 }, 952 _e = function (t, e) { 953 var i, s, r, n = t.match(ue) || [], 954 a = 0, 955 o = n.length ? "" : t; 956 for (i = 0; n.length > i; i++) s = n[i], r = t.substr(a, t.indexOf(s, a) - a), a += r.length + s.length, s = he(s, e), 3 === s.length && s.push(1), o += r + (e ? "hsla(" + s[0] + "," + s[1] + "%," + s[2] + "%," + s[3] : "rgba(" + s.join(",")) + ")"; 957 return o 958 }, 959 ue = "(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#.+?\\b"; 960 for (h in oe) ue += "|" + h + "\\b"; 961 ue = RegExp(ue + ")", "gi"), a.colorStringFilter = function (t) { 962 var e, i = t[0] + t[1]; 963 ue.lastIndex = 0, ue.test(i) && (e = -1 !== i.indexOf("hsl(") || -1 !== i.indexOf("hsla("), t[0] = _e(t[0], e), t[1] = _e(t[1], e)) 964 }, e.defaultStringFilter || (e.defaultStringFilter = a.colorStringFilter); 965 var ce = function (t, e, i, s) { 966 if (null == t) return function (t) { 967 return t 968 }; 969 var r, n = e ? (t.match(ue) || [""])[0] : "", 970 a = t.split(n).join("").match(v) || [], 971 o = t.substr(0, t.indexOf(a[0])), 972 l = ")" === t.charAt(t.length - 1) ? ")" : "", 973 h = -1 !== t.indexOf(" ") ? " " : ",", 974 _ = a.length, 975 u = _ > 0 ? a[0].replace(d, "") : ""; 976 return _ ? r = e ? function (t) { 977 var e, c, f, p; 978 if ("number" == typeof t) t += u; 979 else if (s && M.test(t)) { 980 for (p = t.replace(M, "|").split("|"), f = 0; p.length > f; f++) p[f] = r(p[f]); 981 return p.join(",") 982 } 983 if (e = (t.match(ue) || [n])[0], c = t.split(e).join("").match(v) || [], f = c.length, _ > f--) 984 for (; _ > ++f;) c[f] = i ? c[0 | (f - 1) / 2] : a[f]; 985 return o + c.join(h) + h + e + l + (-1 !== t.indexOf("inset") ? " inset" : "") 986 } : function (t) { 987 var e, n, c; 988 if ("number" == typeof t) t += u; 989 else if (s && M.test(t)) { 990 for (n = t.replace(M, "|").split("|"), c = 0; n.length > c; c++) n[c] = r(n[c]); 991 return n.join(",") 992 } 993 if (e = t.match(v) || [], c = e.length, _ > c--) 994 for (; _ > ++c;) e[c] = i ? e[0 | (c - 1) / 2] : a[c]; 995 return o + e.join(h) + l 996 } : function (t) { 997 return t 998 } 999 }, 1000 fe = function (t) { 1001 return t = t.split(","), 1002 function (e, i, s, r, n, a, o) { 1003 var l, h = (i + "").split(" "); 1004 for (o = {}, l = 0; 4 > l; l++) o[t[l]] = h[l] = h[l] || h[(l - 1) / 2 >> 0]; 1005 return r.parse(e, o, n, a) 1006 } 1007 }, 1008 pe = (B._setPluginRatio = function (t) { 1009 this.plugin.setRatio(t); 1010 for (var e, i, s, r, n = this.data, a = n.proxy, o = n.firstMPT, l = 1e-6; o;) e = a[o.v], o.r ? e = Math.round(e) : l > e && e > -l && (e = 0), o.t[o.p] = e, o = o._next; 1011 if (n.autoRotate && (n.autoRotate.rotation = a.rotation), 1 === t) 1012 for (o = n.firstMPT; o;) { 1013 if (i = o.t, i.type) { 1014 if (1 === i.type) { 1015 for (r = i.xs0 + i.s + i.xs1, s = 1; i.l > s; s++) r += i["xn" + s] + i["xs" + (s + 1)]; 1016 i.e = r 1017 } 1018 } else i.e = i.s + i.xs0; 1019 o = o._next 1020 } 1021 }, function (t, e, i, s, r) { 1022 this.t = t, this.p = e, this.v = i, this.r = r, s && (s._prev = this, this._next = s) 1023 }), 1024 me = (B._parseToProxy = function (t, e, i, s, r, n) { 1025 var a, o, l, h, _, u = s, 1026 c = {}, 1027 f = {}, 1028 p = i._transform, 1029 m = I; 1030 for (i._transform = null, I = e, s = _ = i.parse(t, e, s, r), I = m, n && (i._transform = p, u && (u._prev = null, u._prev && (u._prev._next = null))); s && s !== u;) { 1031 if (1 >= s.type && (o = s.p, f[o] = s.s + s.c, c[o] = s.s, n || (h = new pe(s, "s", o, h, s.r), s.c = 0), 1 === s.type)) 1032 for (a = s.l; --a > 0;) l = "xn" + a, o = s.p + "_" + l, f[o] = s.data[l], c[o] = s[l], n || (h = new pe(s, l, o, h, s.rxp[l])); 1033 s = s._next 1034 } 1035 return { 1036 proxy: c, 1037 end: f, 1038 firstMPT: h, 1039 pt: _ 1040 } 1041 }, B.CSSPropTween = function (t, e, s, r, a, o, l, h, _, u, c) { 1042 this.t = t, this.p = e, this.s = s, this.c = r, this.n = l || e, t instanceof me || n.push(this.n), this.r = h, this.type = o || 0, _ && (this.pr = _, i = !0), this.b = void 0 === u ? s : u, this.e = void 0 === c ? s + r : c, a && (this._next = a, a._prev = this) 1043 }), 1044 de = function (t, e, i, s, r, n) { 1045 var a = new me(t, e, i, s - i, r, -1, n); 1046 return a.b = i, a.e = a.xs0 = s, a 1047 }, 1048 ge = a.parseComplex = function (t, e, i, s, r, n, a, o, l, h) { 1049 i = i || n || "", a = new me(t, e, 0, 0, a, h ? 2 : 1, null, !1, o, i, s), s += ""; 1050 var u, c, f, p, m, v, y, T, x, w, b, P, k, S = i.split(", ").join(",").split(" "), 1051 R = s.split(", ").join(",").split(" "), 1052 O = S.length, 1053 A = _ !== !1; 1054 for ((-1 !== s.indexOf(",") || -1 !== i.indexOf(",")) && (S = S.join(" ").replace(M, ", ").split(" "), R = R.join(" ").replace(M, ", ").split(" "), O = S.length), O !== R.length && (S = (n || "").split(" "), O = S.length), a.plugin = l, a.setRatio = h, ue.lastIndex = 0, u = 0; O > u; u++) 1055 if (p = S[u], m = R[u], T = parseFloat(p), T || 0 === T) a.appendXtra("", T, re(m, T), m.replace(g, ""), A && -1 !== m.indexOf("px"), !0); 1056 else if (r && ue.test(p)) P = "," === m.charAt(m.length - 1) ? ")," : ")", k = -1 !== m.indexOf("hsl") && Y, p = he(p, k), m = he(m, k), x = p.length + m.length > 6, x && !Y && 0 === m[3] ? (a["xs" + a.l] += a.l ? " transparent" : "transparent", a.e = a.e.split(R[u]).join("transparent")) : (Y || (x = !1), k ? a.appendXtra(x ? "hsla(" : "hsl(", p[0], re(m[0], p[0]), ",", !1, !0).appendXtra("", p[1], re(m[1], p[1]), "%,", !1).appendXtra("", p[2], re(m[2], p[2]), x ? "%," : "%" + P, !1) : a.appendXtra(x ? "rgba(" : "rgb(", p[0], m[0] - p[0], ",", !0, !0).appendXtra("", p[1], m[1] - p[1], ",", !0).appendXtra("", p[2], m[2] - p[2], x ? "," : P, !0), x && (p = 4 > p.length ? 1 : p[3], a.appendXtra("", p, (4 > m.length ? 1 : m[3]) - p, P, !1))), ue.lastIndex = 0; 1057 else if (v = p.match(d)) { 1058 if (y = m.match(g), !y || y.length !== v.length) return a; 1059 for (f = 0, c = 0; v.length > c; c++) b = v[c], w = p.indexOf(b, f), a.appendXtra(p.substr(f, w - f), Number(b), re(y[c], b), "", A && "px" === p.substr(w + b.length, 2), 0 === c), f = w + b.length; 1060 a["xs" + a.l] += p.substr(f) 1061 } else a["xs" + a.l] += a.l ? " " + p : p; 1062 if (-1 !== s.indexOf("=") && a.data) { 1063 for (P = a.xs0 + a.data.s, u = 1; a.l > u; u++) P += a["xs" + u] + a.data["xn" + u]; 1064 a.e = P + a["xs" + u] 1065 } 1066 return a.l || (a.type = -1, a.xs0 = a.e), a.xfirst || a 1067 }, 1068 ve = 9; 1069 for (h = me.prototype, h.l = h.pr = 0; --ve > 0;) h["xn" + ve] = 0, h["xs" + ve] = ""; 1070 h.xs0 = "", h._next = h._prev = h.xfirst = h.data = h.plugin = h.setRatio = h.rxp = null, h.appendXtra = function (t, e, i, s, r, n) { 1071 var a = this, 1072 o = a.l; 1073 return a["xs" + o] += n && o ? " " + t : t || "", i || 0 === o || a.plugin ? (a.l++, a.type = a.setRatio ? 2 : 1, a["xs" + a.l] = s || "", o > 0 ? (a.data["xn" + o] = e + i, a.rxp["xn" + o] = r, a["xn" + o] = e, a.plugin || (a.xfirst = new me(a, "xn" + o, e, i, a.xfirst || a, 0, a.n, r, a.pr), a.xfirst.xs0 = 0), a) : (a.data = { 1074 s: e + i 1075 }, a.rxp = {}, a.s = e, a.c = i, a.r = r, a)) : (a["xs" + o] += e + (s || ""), a) 1076 }; 1077 var ye = function (t, e) { 1078 e = e || {}, this.p = e.prefix ? W(t) || t : t, l[t] = l[this.p] = this, this.format = e.formatter || ce(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 1079 }, 1080 Te = B._registerComplexSpecialProp = function (t, e, i) { 1081 "object" != typeof e && (e = { 1082 parser: i 1083 }); 1084 var s, r, n = t.split(","), 1085 a = e.defaultValue; 1086 for (i = i || [a], s = 0; n.length > s; s++) e.prefix = 0 === s && e.prefix, e.defaultValue = i[s] || a, r = new ye(n[s], e) 1087 }, 1088 xe = function (t) { 1089 if (!l[t]) { 1090 var e = t.charAt(0).toUpperCase() + t.substr(1) + "Plugin"; 1091 Te(t, { 1092 parser: function (t, i, s, r, n, a, h) { 1093 var _ = o.com.greensock.plugins[e]; 1094 return _ ? (_._cssRegister(), l[s].parse(t, i, s, r, n, a, h)) : (q("Error: " + e + " js file not loaded."), n) 1095 } 1096 }) 1097 } 1098 }; 1099 h = ye.prototype, h.parseComplex = function (t, e, i, s, r, n) { 1100 var a, o, l, h, _, u, c = this.keyword; 1101 if (this.multi && (M.test(i) || M.test(e) ? (o = e.replace(M, "|").split("|"), l = i.replace(M, "|").split("|")) : c && (o = [e], l = [i])), l) { 1102 for (h = l.length > o.length ? l.length : o.length, a = 0; h > a; a++) e = o[a] = o[a] || this.dflt, i = l[a] = l[a] || this.dflt, c && (_ = e.indexOf(c), u = i.indexOf(c), _ !== u && (-1 === u ? o[a] = o[a].split(c).join("") : -1 === _ && (o[a] += " " + c))); 1103 e = o.join(", "), i = l.join(", ") 1104 } 1105 return ge(t, this.p, e, i, this.clrs, this.dflt, s, this.pr, r, n) 1106 }, h.parse = function (t, e, i, s, n, a) { 1107 return this.parseComplex(t.style, this.format(Q(t, this.p, r, !1, this.dflt)), this.format(e), n, a) 1108 }, a.registerSpecialProp = function (t, e, i) { 1109 Te(t, { 1110 parser: function (t, s, r, n, a, o) { 1111 var l = new me(t, r, 0, 0, a, 2, r, !1, i); 1112 return l.plugin = o, l.setRatio = e(t, s, n._tween, r), l 1113 }, 1114 priority: i 1115 }) 1116 }, a.useSVGTransformAttr = c || f; 1117 var we, be = "scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent".split(","), 1118 Pe = W("transform"), 1119 ke = V + "transform", 1120 Se = W("transformOrigin"),
1121 Re = null !== W("perspective"), 1122 Oe = B.Transform = function () { 1123 this.perspective = parseFloat(a.defaultTransformPerspective) || 0, this.force3D = a.defaultForce3D !== !1 && Re ? a.defaultForce3D || "auto" : !1 1124 }, 1125 Ae = window.SVGElement, 1126 Ce = function (t, e, i) { 1127 var s, r = E.createElementNS("http://www.w3.org/2000/svg", t), 1128 n = /([a-z])([A-Z])/g; 1129 for (s in i) r.setAttributeNS(null, s.replace(n, "$1-$2").toLowerCase(), i[s]); 1130 return e.appendChild(r), r 1131 }, 1132 De = E.documentElement, 1133 Me = function () { 1134 var t, e, i, s = m || /Android/i.test(j) && !window.chrome; 1135 return E.createElementNS && !s && (t = Ce("svg", De), e = Ce("rect", t, { 1136 width: 100, 1137 height: 50, 1138 x: 100 1139 }), i = e.getBoundingClientRect().width, e.style[Se] = "50% 50%", e.style[Pe] = "scaleX(0.5)", s = i === e.getBoundingClientRect().width && !(f && Re), De.removeChild(t)), s 1140 }(), 1141 ze = function (t, e, i, s, r) { 1142 var n, o, l, h, _, u, c, f, p, m, d, g, v, y, T = t._gsTransform, 1143 x = Ee(t, !0); 1144 T && (v = T.xOrigin, y = T.yOrigin), (!s || 2 > (n = s.split(" ")).length) && (c = t.getBBox(), e = se(e).split(" "), n = [(-1 !== e[0].indexOf("%") ? parseFloat(e[0]) / 100 * c.width : parseFloat(e[0])) + c.x, (-1 !== e[1].indexOf("%") ? parseFloat(e[1]) / 100 * c.height : parseFloat(e[1])) + c.y]), i.xOrigin = h = parseFloat(n[0]), i.yOrigin = _ = parseFloat(n[1]), s && x !== Ie && (u = x[0], c = x[1], f = x[2], p = x[3], m = x[4], d = x[5], g = u * p - c * f, o = h * (p / g) + _ * (-f / g) + (f * d - p * m) / g, l = h * (-c / g) + _ * (u / g) - (u * d - c * m) / g, h = i.xOrigin = n[0] = o, _ = i.yOrigin = n[1] = l), T && (r || r !== !1 && a.defaultSmoothOrigin !== !1 ? (o = h - v, l = _ - y, T.xOffset += o * x[0] + l * x[2] - o, T.yOffset += o * x[1] + l * x[3] - l) : T.xOffset = T.yOffset = 0), t.setAttribute("data-svg-origin", n.join(" ")) 1145 }, 1146 Fe = function (t) { 1147 return !!(Ae && "function" == typeof t.getBBox && t.getCTM && (!t.parentNode || t.parentNode.getBBox && t.parentNode.getCTM)) 1148 }, 1149 Ie = [1, 0, 0, 1, 0, 0], 1150 Ee = function (t, e) { 1151 var i, s, r, n, a, o = t._gsTransform || new Oe, 1152 l = 1e5; 1153 if (Pe ? s = Q(t, ke, null, !0) : t.currentStyle && (s = t.currentStyle.filter.match(C), s = s && 4 === s.length ? [s[0].substr(4), Number(s[2].substr(4)), Number(s[1].substr(4)), s[3].substr(4), o.x || 0, o.y || 0].join(",") : ""), i = !s || "none" === s || "matrix(1, 0, 0, 1, 0, 0)" === s, (o.svg || t.getBBox && Fe(t)) && (i && -1 !== (t.style[Pe] + "").indexOf("matrix") && (s = t.style[Pe], i = 0), r = t.getAttribute("transform"), i && r && (-1 !== r.indexOf("matrix") ? (s = r, i = 0) : -1 !== r.indexOf("translate") && (s = "matrix(1,0,0,1," + r.match(/(?:\-|\b)[\d\-\.e]+\b/gi).join(",") + ")", i = 0))), i) return Ie; 1154 for (r = (s || "").match(/(?:\-|\b)[\d\-\.e]+\b/gi) || [], ve = r.length; --ve > -1;) n = Number(r[ve]), r[ve] = (a = n - (n |= 0)) ? (0 | a * l + (0 > a ? -.5 : .5)) / l + n : n; 1155 return e && r.length > 6 ? [r[0], r[1], r[4], r[5], r[12], r[13]] : r 1156 }, 1157 Ne = B.getTransform = function (t, i, s, n) { 1158 if (t._gsTransform && s && !n) return t._gsTransform; 1159 var o, l, h, _, u, c, f = s ? t._gsTransform || new Oe : new Oe, 1160 p = 0 > f.scaleX, 1161 m = 2e-5, 1162 d = 1e5, 1163 g = Re ? parseFloat(Q(t, Se, i, !1, "0 0 0").split(" ")[2]) || f.zOrigin || 0 : 0, 1164 v = parseFloat(a.defaultTransformPerspective) || 0; 1165 if (f.svg = !(!t.getBBox || !Fe(t)), f.svg && (ze(t, Q(t, Se, r, !1, "50% 50%") + "", f, t.getAttribute("data-svg-origin")), we = a.useSVGTransformAttr || Me), o = Ee(t), o !== Ie) { 1166 if (16 === o.length) { 1167 var y, T, x, w, b, P = o[0], 1168 k = o[1], 1169 S = o[2],
1170 R = o[3], 1171 O = o[4], 1172 A = o[5], 1173 C = o[6], 1174 D = o[7], 1175 M = o[8], 1176 z = o[9], 1177 I = o[10], 1178 E = o[12], 1179 N = o[13], 1180 L = o[14], 1181 X = o[11], 1182 B = Math.atan2(C, I); 1183 f.zOrigin && (L = -f.zOrigin, E = M * L - o[12], N = z * L - o[13], L = I * L + f.zOrigin - o[14]), f.rotationX = B * F, B && (w = Math.cos(-B), b = Math.sin(-B), y = O * w + M * b, T = A * w + z * b, x = C * w + I * b, M = O * -b + M * w, z = A * -b + z * w, I = C * -b + I * w, X = D * -b + X * w, O = y, A = T, C = x), B = Math.atan2(M, I), f.rotationY = B * F, B && (w = Math.cos(-B), b = Math.sin(-B), y = P * w - M * b, T = k * w - z * b, x = S * w - I * b, z = k * b + z * w, I = S * b + I * w, X = R * b + X * w, P = y, k = T, S = x), B = Math.atan2(k, P), f.rotation = B * F, B && (w = Math.cos(-B), b = Math.sin(-B), P = P * w + O * b, T = k * w + A * b, A = k * -b + A * w, C = S * -b + C * w, k = T), f.rotationX && Math.abs(f.rotationX) + Math.abs(f.rotation) > 359.9 && (f.rotationX = f.rotation = 0, f.rotationY += 180), f.scaleX = (0 | Math.sqrt(P * P + k * k) * d + .5) / d, f.scaleY = (0 | Math.sqrt(A * A + z * z) * d + .5) / d, f.scaleZ = (0 | Math.sqrt(C * C + I * I) * d + .5) / d, f.skewX
1183= 0, f.perspective = X ? 1 / (0 > X ? -X : X) : 0, f.x = E, f.y = N, f.z = L, f.svg && (f.x -= f.xOrigin - (f.xOrigin * P - f.yOrigin * O), f.y -= f.yOrigin - (f.yOrigin * k - f.xOrigin * A)) 1184 } else if (!(Re && !n && o.length && f.x === o[4] && f.y === o[5] && (f.rotationX || f.rotationY) || void 0 !== f.x && "none" === Q(t, "display", i))) { 1185 var j = o.length >= 6, 1186 Y = j ? o[0] : 1, 1187 U = o[1] || 0, 1188 q = o[2] || 0, 1189 V = j ? o[3] : 1; 1190 f.x = o[4] || 0, f.y = o[5] || 0, h = Math.sqrt(Y * Y + U * U), _ = Math.sqrt(V * V + q * q), u = Y || U ? Math.atan2(U, Y) * F : f.rotation || 0, c = q || V ? Math.atan2(q, V) * F + u : f.skewX || 0, Math.abs(c) > 90 && 270 > Math.abs(c) && (p ? (h *= -1, c += 0 >= u ? 180 : -180, u += 0 >= u ? 180 : -180) : (_ *= -1, c += 0 >= c ? 180 : -180)), f.scaleX = h, f.scaleY = _, f.rotation = u, f.skewX = c, Re && (f.rotationX = f.rotationY = f.z = 0, f.perspective = v, f.scaleZ = 1), f.svg && (f.x -= f.xOrigin - (f.xOrigin * Y + f.yOrigin * q), f.y -= f.yOrigin - (f.xOrigin * U + f.yOrigin * V)) 1191 } 1192 f.zOrigin = g; 1193 for (l in f) m > f[l] && f[l] > -m && (f[l] = 0) 1194 } 1195 return s && (t._gsTransform = f, f.svg && (we && t.style[Pe] ? e.delayedCall(.001, function () { 1196 je(t.style, Pe) 1197 }) : !we && t.getAttribute("transform") && e.delayedCall(.001, function () { 1198 t.removeAttribute("transform") 1199 }))), f 1200 }, 1201 Le = function (t) { 1202 var e, i, s = this.data, 1203 r = -s.rotation * z, 1204 n = r + s.skewX * z, 1205 a = 1e5, 1206 o = (0 | Math.cos(r) * s.scaleX * a) / a, 1207 l = (0 | Math.sin(r) * s.scaleX * a) / a, 1208 h = (0 | Math.sin(n) * -s.scaleY * a) / a, 1209 _ = (0 | Math.cos(n) * s.scaleY * a) / a, 1210 u = this.t.style, 1211 c = this.t.currentStyle; 1212 if (c) { 1213 i = l, l = -h, h = -i, e = c.filter, u.filter = ""; 1214 var f, p, d = this.t.offsetWidth, 1215 g = this.t.offsetHeight, 1216 v = "absolute" !== c.position, 1217 y = "progid:DXImageTransform.Microsoft.Matrix(M11=" + o + ", M12=" + l + ", M21=" + h + ", M22=" + _, 1218 w = s.x + d * s.xPercent / 100, 1219 b = s.y + g * s.yPercent / 100; 1220 if (null != s.ox && (f = (s.oxp ? .01 * d * s.ox : s.ox) - d / 2, p = (s.oyp ? .01 * g * s.oy : s.oy) - g / 2, w += f - (f * o + p * l), b += p - (f * h + p * _)), v ? (f = d / 2, p = g / 2, y += ", Dx=" + (f - (f * o + p * l) + w) + ", Dy=" + (p - (f * h + p * _) + b) + ")") : y += ", sizingMethod='auto expand')", u.filter = -1 !== e.indexOf("DXImageTransform.Microsoft.Matrix(") ? e.replace(D, y) : y + " " + e, (0 === t || 1 === t) && 1 === o && 0 === l && 0 === h && 1 === _ && (v && -1 === y.indexOf("Dx=0, Dy=0") || x.test(e) && 100 !== parseFloat(RegExp.$1) || -1 === e.indexOf("gradient(" && e.indexOf("Alpha")) && u.removeAttribute("filter")), !v) { 1221 var P, k, S, R = 8 > m ? 1 : -1; 1222 for (f = s.ieOffsetX || 0, p = s.ieOffsetY || 0, s.ieOffsetX = Math.round((d - ((0 > o ? -o : o) * d + (0 > l ? -l : l) * g)) / 2 + w), s.ieOffsetY = Math.round((g - ((0 > _ ? -_ : _) * g + (0 > h ? -h : h) * d)) / 2 + b), ve = 0; 4 > ve; ve++) k = ee[ve], P = c[k], i = -1 !== P.indexOf("px") ? parseFloat(P) : $(this.t, k, parseFloat(P), P.replace(T, "")) || 0, S = i !== s[k] ? 2 > ve ? -s.ieOffsetX : -s.ieOffsetY : 2 > ve ? f - s.ieOffsetX : p - s.ieOffsetY, u[k] = (s[k] = Math.round(i - S * (0 === ve || 2 === ve ? 1 : R))) + "px" 1223 } 1224 } 1225 }, 1226 Xe = B.set3DTransformRatio = B.setTransformRatio = function (t) { 1227 var e, i, s, r, n, a, o, l, h, _, u, c, p, m, d, g, v, y, T, x, w, b, P, k = this.data, 1228 S = this.t.style, 1229 R = k.rotation, 1230 O = k.rotationX, 1231 A = k.rotationY, 1232 C = k.scaleX, 1233 D = k.scaleY, 1234 M = k.scaleZ, 1235 F = k.x, 1236 I = k.y, 1237 E = k.z, 1238 N = k.svg, 1239 L = k.perspective, 1240 X = k.force3D; 1241 if (!(((1 !== t && 0 !== t || "auto" !== X || this.tween._totalTime !== this.tween._totalDuration && this.tween._totalTime) && X || E || L || A || O) && (!we || !N) && Re)) return R || k.skewX || N ? (R *= z, b = k.skewX * z, P = 1e5, e = Math.
vendor: 28,158 bytes, lines 1241-1582
1241cos(R) * C, r = Math.sin(R) * C, i = Math.sin(R - b) * -D, n = Math.cos(R - b) * D, b && "simple" === k.skewType && (v = Math.tan(b), v = Math.sqrt(1 + v * v), i *= v, n *= v, k.skewY && (e *= v, r *= v)), N && (F += k.xOrigin - (k.xOrigin * e + k.yOrigin * i) + k.xOffset, I += k.yOrigin - (k.xOrigin * r + k.yOrigin * n) + k.yOffset, we && (k.xPercent || k.yPercent) && (m = this.t.getBBox(), F += .01 * k.xPercent * m.width, I += .01 * k.yPercent * m.height), m = 1e-6, m > F && F > -m && (F = 0), m > I && I > -m && (I = 0)), T = (0 | e * P) / P + "," + (0 | r * P) / P + "," + (0 | i * P) / P + "," + (0 | n * P) / P + "," + F + "," + I + ")", N && we ? this.t.setAttribute("transform", "matrix(" + T) : S[Pe] = (k.xPercent || k.yPercent ? "translate(" + k.xPercent + "%," + k.yPercent + "%) matrix(" : "matrix(") + T) : S[Pe] = (k.xPercent || k.yPercent ? "translate(" + k.xPercent + "%," + k.yPercent + "%) matrix(" : "matrix(") + C + ",0,0," + D + "," + F + "," + I + ")", void 0; 1242 if (f && (m = 1e-4, m > C && C > -m && (C = M = 2e-5), m > D && D > -m && (D = M = 2e-5), !L || k.z || k.rotationX || k.rotationY || (L = 0)), R || k.skewX) R *= z, d = e = Math.cos(R), g = r = Math.sin(R), k.skewX && (R -= k.skewX * z, d = Math.cos(R), g = Math.sin(R), "simple" === k.skewType && (v = Math.tan(k.skewX * z), v = Math.sqrt(1 + v * v), d *= v, g *= v, k.skewY && (e *= v, r *= v))), i = -g, n = d; 1243 else { 1244 if (!(A || O || 1 !== M || L || N)) return S[Pe] = (k.xPercent || k.yPercent ? "translate(" + k.xPercent + "%," + k.yPercent + "%) translate3d(" : "translate3d(") + F + "px," + I + "px," + E + "px)" + (1 !== C || 1 !== D ? " scale(" + C + "," + D + ")" : ""), void 0; 1245 e = n = 1, i = r = 0 1246 } 1247 h = 1, s = a = o = l = _ = u = 0, c = L ? -1 / L : 0, p = k.zOrigin, m = 1e-6, x = ",", w = "0", R = A * z, R && (d = Math.cos(R), g = Math.sin(R), o = -g, _ = c * -g, s = e * g, a = r * g, h = d, c *= d, e *= d, r *= d), R = O * z, R && (d = Math.cos(R), g = Math.sin(R), v = i * d + s * g, y = n * d + a * g, l = h * g, u = c * g, s = i * -g + s * d, a = n * -g + a * d, h *= d, c *= d, i = v, n = y), 1 !== M && (s *= M, a *= M, h *= M, c *= M), 1 !== D && (i *= D, n *= D, l *= D, u *= D), 1 !== C && (e *= C, r *= C, o *= C, _ *= C), (p || N) && (p && (F += s * -p, I += a * -p, E += h * -p + p), N && (F += k.xOrigin - (k.xOrigin * e + k.yOrigin * i) + k.xOffset, I += k.yOrigin - (k.xOrigin * r + k.yOrigin * n) + k.yOffset), m > F && F > -m && (F = w), m > I && I > -m && (I = w), m > E && E > -m && (E = 0)), T = k.xPercent || k.yPercent ? "translate(" + k.xPercent + "%," + k.yPercent + "%) matrix3d(" : "matrix3d(", T += (m > e && e > -m ? w : e) + x + (m > r && r > -m ? w : r) + x + (m > o && o > -m ? w : o), T += x + (m > _ && _ > -m ? w : _) + x + (m > i && i > -m ? w : i) + x + (m > n && n > -m ? w : n), O || A ? (T += x + (m > l && l > -m ? w : l) + x + (m > u && u > -m ? w : u) + x + (m > s && s > -m ? w : s), T += x + (m > a && a > -m ? w : a) + x + (m > h && h > -m ? w : h) + x + (m > c && c > -m ? w : c) + x) : T += ",0,0,0,0,1,0,", T += F + x + I + x + E + x + (L ? 1 + -E / L : 1) + ")", S[Pe] = T 1248 }; 1249 h = Oe.prototype, h.x = h.y = h.z = h.skewX = h.skewY = h.rotation = h.rotationX = h.rotationY = h.zOrigin = h.xPercent = h.yPercent = h.xOffset = h.yOffset = 0, h.scaleX = h.scaleY = h.scaleZ = 1, Te("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", { 1250 parser: function (t, e, i, s, n, o, l) { 1251 if (s._lastParsedTransform === l) return n; 1252 s._lastParsedTransform = l; 1253 var h, _, u, c, f, p, m, d, g, v, y = t._gsTransform, 1254 T = t.style, 1255 x = 1e-6, 1256 w = be.length, 1257 b = l, 1258 P = {}, 1259 k = "transformOrigin"; 1260 if (l.display ? (c = Q(t, "display"), T.display = "block", h = Ne(t, r, !0, l.parseTransform), T.display = c) : h = Ne(t, r, !0, l.parseTransform), s._transform = h, "string" == typeof b.transform && Pe) c = L.style, c[Pe] = b.transform, c.display = "block", c.position = "absolute", E.body.appendChild(L), _ = Ne(L, null, !1), E.body.removeChild(L), _.perspective || (_.perspective = h.perspective), null != b.xPercent && (_.xPercent = ne(b.xPercent, h.xPercent)), null != b.yPercent && (_.yPercent = ne(b.yPercent, h.yPercent)); 1261 else if ("object" == typeof b) { 1262 if (_ = { 1263 scaleX: ne(null != b.scaleX ? b.scaleX : b.scale, h.scaleX), 1264 scaleY: ne(null != b.scaleY ? b.scaleY : b.scale, h.scaleY), 1265 scaleZ: ne(b.scaleZ, h.scaleZ), 1266 x: ne(b.x, h.x), 1267 y: ne(b.y, h.y), 1268 z: ne(b.z, h.z), 1269 xPercent: ne(b.xPercent, h.xPercent), 1270 yPercent: ne(b.yPercent, h.yPercent), 1271 perspective: ne(b.transformPerspective, h.perspective) 1272 }, d = b.directionalRotation, null != d) 1273 if ("object" == typeof d) 1274 for (c in d) b[c] = d[c]; 1275 else b.rotation = d; 1276 "string" == typeof b.x && -1 !== b.x.indexOf("%") && (_.x = 0, _.xPercent = ne(b.x, h.xPercent)), "string" == typeof b.y && -1 !== b.y.indexOf("%") && (_.y = 0, _.yPercent = ne(b.y, h.yPercent)), _.rotation = ae("rotation" in b ? b.rotation : "shortRotation" in b ? b.shortRotation + "_short" : "rotationZ" in b ? b.rotationZ : h.rotation, h.rotation, "rotation", P), Re && (_.rotationX = ae("rotationX" in b ? b.rotationX : "shortRotationX" in b ? b.shortRotationX + "_short" : h.rotationX || 0, h.rotationX, "rotationX", P), _.rotationY = ae("rotationY" in b ? b.rotationY : "shortRotationY" in b ? b.shortRotationY + "_short" : h.rotationY || 0, h.rotationY, "rotationY", P)), _.skewX = null == b.skewX ? h.skewX : ae(b.skewX, h.skewX), _.skewY = null == b.skewY ? h.skewY : ae(b.skewY, h.skewY), (u = _.skewY - h.skewY) && (_.skewX += u, _.rotation += u) 1277 } 1278 for (Re && null != b.force3D && (h.force3D = b.force3D, m = !0), h.skewType = b.skewType || h.skewType || a.defaultSkewType, p = h.force3D || h.z || h.rotationX || h.rotationY || _.z || _.rotationX || _.rotationY || _.perspective, p || null == b.scale || (_.scaleZ = 1); --w > -1;) i = be[w], f = _[i] - h[i], (f > x || -x > f || null != b[i] || null != I[i]) && (m = !0, n = new me(h, i, h[i], f, n), i in P && (n.e = P[i]), n.xs0 = 0, n.plugin = o, s._overwriteProps.push(n.n)); 1279 return f = b.transformOrigin, h.svg && (f || b.svgOrigin) && (g = h.xOffset, v = h.yOffset, ze(t, se(f), _, b.svgOrigin, b.smoothOrigin), n = de(h, "xOrigin", (y ? h : _).xOrigin, _.xOrigin, n, k), n = de(h, "yOrigin", (y ? h : _).yOrigin, _.yOrigin, n, k), (g !== h.xOffset || v !== h.yOffset) && (n = de(h, "xOffset", y ? g : h.xOffset, h.xOffset, n, k), n = de(h, "yOffset", y ? v : h.yOffset, h.yOffset, n, k)), f = we ? null : "0px 0px"), (f || Re && p && h.zOrigin) && (Pe ? (m = !0, i = Se, f = (f || Q(t, i, r, !1, "50% 50%")) + "", n = new me(T, i, 0, 0, n, -1, k), n.b = T[i], n.plugin = o, Re ? (c = h.zOrigin, f = f.split(" "), h.zOrigin = (f.length > 2 && (0 === c || "0px" !== f[2]) ? parseFloat(f[2]) : c) || 0, n.xs0 = n.e = f[0] + " " + (f[1] || "50%") + " 0px", n = new me(h, "zOrigin", 0, 0, n, -1, n.n), n.b = c, n.xs0 = n.e = h.zOrigin) : n.xs0 = n.e = f) : se(f + "", h)), m && (s._transformType = h.svg && we || !p && 3 !== this._transformType ? 2 : 3), n 1280 }, 1281 prefix: !0 1282 }), Te("boxShadow", { 1283 defaultValue: "0px 0px 0px 0px #999", 1284 prefix: !0, 1285 color: !0, 1286 multi: !0, 1287 keyword: "inset" 1288 }), Te("borderRadius", { 1289 defaultValue: "0px", 1290 parser: function (t, e, i, n, a) { 1291 e = this.format(e); 1292 var o, l, h, _, u, c, f, p, m, d, g, v, y, T, x, w, b = ["borderTopLeftRadius", "borderTopRightRadius", "borderBottomRightRadius", "borderBottomLeftRadius"], 1293 P = t.style; 1294 for (m = parseFloat(t.offsetWidth), d = parseFloat(t.offsetHeight), o = e.split(" "), l = 0; b.length > l; l++) this.p.indexOf("border") && (b[l] = W(b[l])), u = _ = Q(t, b[l], r, !1, "0px"), -1 !== u.indexOf(" ") && (_ = u.split(" "), u = _[0], _ = _[1]), c = h = o[l], f = parseFloat(u), v = u.substr((f + "").length), y = "=" === c.charAt(1), y ? (p = parseInt(c.charAt(0) + "1", 10), c = c.substr(2), p *= parseFloat(c), g = c.substr((p + "").length - (0 > p ? 1 : 0)) || "") : (p = parseFloat(c), g = c.substr((p + "").length)), "" === g && (g = s[i] || v), g !== v && (T = $(t, "borderLeft", f, v), x = $(t, "borderTop", f, v), "%" === g ? (u = 100 * (T / m) + "%", _ = 100 * (x / d) + "%") : "em" === g ? (w = $(t, "borderLeft", 1, "em"), u = T / w + "em", _ = x / w + "em") : (u = T + "px", _ = x + "px"), y && (c = parseFloat(u) + p + g, h = parseFloat(_) + p + g)), a = ge(P, b[l], u + " " + _, c + " " + h, !1, "0px", a); 1295 return a 1296 }, 1297 prefix: !0, 1298 formatter: ce("0px 0px 0px 0px", !1, !0) 1299 }), Te("backgroundPosition", { 1300 defaultValue: "0 0", 1301 parser: function (t, e, i, s, n, a) { 1302 var o, l, h, _, u, c, f = "background-position", 1303 p = r || Z(t, null), 1304 d = this.format((p ? m ? p.getPropertyValue(f + "-x") + " " + p.getPropertyValue(f + "-y") : p.getPropertyValue(f) : t.currentStyle.backgroundPositionX + " " + t.currentStyle.backgroundPositionY) || "0 0"), 1305 g = this.format(e); 1306 if (-1 !== d.indexOf("%") != (-1 !== g.indexOf("%")) && (c = Q(t, "backgroundImage").replace(R, ""), c && "none" !== c)) { 1307 for (o = d.split(" "), l = g.split(" "), X.setAttribute("src", c), h = 2; --h > -1;) d = o[h], _ = -1 !== d.indexOf("%"), _ !== (-1 !== l[h].indexOf("%")) && (u = 0 === h ? t.offsetWidth - X.width : t.offsetHeight - X.height, o[h] = _ ? parseFloat(d) / 100 * u + "px" : 100 * (parseFloat(d) / u) + "%"); 1308 d = o.join(" ") 1309 } 1310 return this.parseComplex(t.style, d, g, n, a) 1311 }, 1312 formatter: se 1313 }), Te("backgroundSize", { 1314 defaultValue: "0 0", 1315 formatter: se 1316 }), Te("perspective", { 1317 defaultValue: "0px", 1318 prefix: !0 1319 }), Te("perspectiveOrigin", { 1320 defaultValue: "50% 50%", 1321 prefix: !0 1322 }), Te("transformStyle", { 1323 prefix: !0 1324 }), Te("backfaceVisibility", { 1325 prefix: !0 1326 }), Te("userSelect", { 1327 prefix: !0 1328 }), Te("margin", { 1329 parser: fe("marginTop,marginRight,marginBottom,marginLeft") 1330 }), Te("padding", { 1331 parser: fe("paddingTop,paddingRight,paddingBottom,paddingLeft") 1332 }), Te("clip", { 1333 defaultValue: "rect(0px,0px,0px,0px)", 1334 parser: function (t, e, i, s, n, a) { 1335 var o, l, h; 1336 return 9 > m ? (l = t.currentStyle, h = 8 > m ? " " : ",", o = "rect(" + l.clipTop + h + l.clipRight + h + l.clipBottom + h + l.clipLeft + ")", e = this.format(e).split(",").join(h)) : (o = this.format(Q(t, this.p, r, !1, this.dflt)), e = this.format(e)), this.parseComplex(t.style, o, e, n, a) 1337 } 1338 }), Te("textShadow", { 1339 defaultValue: "0px 0px 0px #999", 1340 color: !0, 1341 multi: !0 1342 }), Te("autoRound,strictUnits", { 1343 parser: function (t, e, i, s, r) { 1344 return r 1345 } 1346 }), Te("border", { 1347 defaultValue: "0px solid #000", 1348 parser: function (t, e, i, s, n, a) { 1349 return this.parseComplex(t.style, this.format(Q(t, "borderTopWidth", r, !1, "0px") + " " + Q(t, "borderTopStyle", r, !1, "solid") + " " + Q(t, "borderTopColor", r, !1, "#000")), this.format(e), n, a) 1350 }, 1351 color: !0, 1352 formatter: function (t) { 1353 var e = t.split(" "); 1354 return e[0] + " " + (e[1] || "solid") + " " + (t.match(ue) || ["#000"])[0] 1355 } 1356 }), Te("borderWidth", { 1357 parser: fe("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth") 1358 }), Te("float,cssFloat,styleFloat", { 1359 parser: function (t, e, i, s, r) { 1360 var n = t.style, 1361 a = "cssFloat" in n ? "cssFloat" : "styleFloat"; 1362 return new me(n, a, 0, 0, r, -1, i, !1, 0, n[a], e) 1363 } 1364 }); 1365 var Be = function (t) { 1366 var e, i = this.t, 1367 s = i.filter || Q(this.data, "filter") || "", 1368 r = 0 | this.s + this.c * t; 1369 100 === r && (-1 === s.indexOf("atrix(") && -1 === s.indexOf("radient(") && -1 === s.indexOf("oader(") ? (i.removeAttribute("filter"), e = !Q(this.data, "filter")) : (i.filter = s.replace(b, ""), e = !0)), e || (this.xn1 && (i.filter = s = s || "alpha(opacity=" + r + ")"), -1 === s.indexOf("pacity") ? 0 === r && this.xn1 || (i.filter = s + " alpha(opacity=" + r + ")") : i.filter = s.replace(x, "opacity=" + r)) 1370 }; 1371 Te("opacity,alpha,autoAlpha", { 1372 defaultValue: "1", 1373 parser: function (t, e, i, s, n, a) { 1374 var o = parseFloat(Q(t, "opacity", r, !1, "1")), 1375 l = t.style, 1376 h = "autoAlpha" === i; 1377 return "string" == typeof e && "=" === e.charAt(1) && (e = ("-" === e.charAt(0) ? -1 : 1) * parseFloat(e.substr(2)) + o), h && 1 === o && "hidden" === Q(t, "visibility", r) && 0 !== e && (o = 0), Y ? n = new me(l, "opacity", o, e - o, n) : (n = new me(l, "opacity", 100 * o, 100 * (e - o), n), n.xn1 = h ? 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 = a, n.setRatio = Be), h && (n = new me(l, "visibility", 0, 0, n, -1, null, !1, 0, 0 !== o ? "inherit" : "hidden", 0 === e ? "hidden" : "inherit"), n.xs0 = "inherit", s._overwriteProps.push(n.n), s._overwriteProps.push(i)), n 1378 } 1379 }); 1380 var je = function (t, e) { 1381 e && (t.removeProperty ? (("ms" === e.substr(0, 2) || "webkit" === e.substr(0, 6)) && (e = "-" + e), t.removeProperty(e.replace(k, "-$1").toLowerCase())) : t.removeAttribute(e)) 1382 }, 1383 Ye = function (t) { 1384 if (this.t._gsClassPT = this, 1 === t || 0 === t) { 1385 this.t.setAttribute("class", 0 === t ? this.b : this.e); 1386 for (var e = this.data, i = this.t.style; e;) e.v ? i[e.p] = e.v : je(i, e.p), e = e._next; 1387 1 === t && this.t._gsClassPT === this && (this.t._gsClassPT = null) 1388 } else this.t.getAttribute("class") !== this.e && this.t.setAttribute("class", this.e) 1389 }; 1390 Te("className", { 1391 parser: function (t, e, s, n, a, o, l) { 1392 var h, _, u, c, f, p = t.getAttribute("class") || "", 1393 m = t.style.cssText; 1394 if (a = n._classNamePT = new me(t, s, 0, 0, a, 2), a.setRatio = Ye, a.pr = -11, i = !0, a.b = p, _ = K(t, r), u = t._gsClassPT) { 1395 for (c = {}, f = u.data; f;) c[f.p] = 1, f = f._next; 1396 u.setRatio(1) 1397 } 1398 return t._gsClassPT = a, a.e = "=" !== e.charAt(1) ? e : p.replace(RegExp("\\s*\\b" + e.substr(2) + "\\b"), "") + ("+" === e.charAt(0) ? " " + e.substr(2) : ""), t.setAttribute("class", a.e), h = J(t, _, K(t), l, c), t.setAttribute("class", p), a.data = h.firstMPT, t.style.cssText = m, a = a.xfirst = n.parse(t, h.difs, a, o) 1399 } 1400 }); 1401 var Ue = function (t) { 1402 if ((1 === t || 0 === t) && this.data._totalTime === this.data._totalDuration && "isFromStart" !== this.data.data) { 1403 var e, i, s, r, n, a = this.t.style, 1404 o = l.transform.parse; 1405 if ("all" === this.e) a.cssText = "", r = !0; 1406 else 1407 for (e = this.e.split(" ").join("").split(","), s = e.length; --s > -1;) i = e[s], l[i] && (l[i].parse === o ? r = !0 : i = "transformOrigin" === i ? Se : l[i].p), je(a, i); 1408 r && (je(a, Pe), n = this.t._gsTransform, n && (n.svg && this.t.removeAttribute("data-svg-origin"), delete this.t._gsTransform)) 1409 } 1410 }; 1411 for (Te("clearProps", { 1412 parser: function (t, e, s, r, n) { 1413 return n = new me(t, s, 0, 0, n, 2), n.setRatio = Ue, n.e = e, n.pr = -10, n.data = r._tween, i = !0, n 1414 } 1415 }), h = "bezier,throwProps,physicsProps,physics2D".split(","), ve = h.length; ve--;) xe(h[ve]); 1416 h = a.prototype, h._firstPT = h._lastParsedTransform = h._transform = null, h._onInitTween = function (t, e, o) { 1417 if (!t.nodeType) return !1; 1418 this._target = t, this._tween = o, this._vars = e, _ = e.autoRound, i = !1, s = e.suffixMap || a.suffixMap, r = Z(t, ""), n = this._overwriteProps; 1419 var h, f, m, d, g, v, y, T, x, b = t.style; 1420 if (u && "" === b.zIndex && (h = Q(t, "zIndex", r), ("auto" === h || "" === h) && this._addLazySet(b, "zIndex", 0)), "string" == typeof e && (d = b.cssText, h = K(t, r), b.cssText = d + ";" + e, h = J(t, h, K(t)).difs, !Y && w.test(e) && (h.opacity = parseFloat(RegExp.$1)), e = h, b.cssText = d), this._firstPT = f = e.className ? l.className.parse(t, e.className, "className", this, null, null, e) : this.parse(t, e, null), this._transformType) { 1421 for (x = 3 === this._transformType, Pe ? c && (u = !0, "" === b.zIndex && (y = Q(t, "zIndex", r), ("auto" === y || "" === y) && this._addLazySet(b, "zIndex", 0)), p && this._addLazySet(b, "WebkitBackfaceVisibility", this._vars.WebkitBackfaceVisibility || (x ? "visible" : "hidden"))) : b.zoom = 1, m = f; m && m._next;) m = m._next; 1422 T = new me(t, "transform", 0, 0, null, 2), this._linkCSSP(T, null, m), T.setRatio = Pe ? Xe : Le, T.data = this._transform || Ne(t, r, !0), T.tween = o, T.pr = -1, n.pop() 1423 } 1424 if (i) { 1425 for (; f;) { 1426 for (v = f._next, m = d; m && m.pr > f.pr;) m = m._next; 1427 (f._prev = m ? m._prev : g) ? f._prev._next = f: d = f, (f._next = m) ? m._prev = f : g = f, f = v 1428 } 1429 this._firstPT = d 1430 } 1431 return !0 1432 }, h.parse = function (t, e, i, n) { 1433 var a, o, h, u, c, f, p, m, d, g, v = t.style; 1434 for (a in e) f = e[a], o = l[a], o ? i = o.parse(t, f, a, this, i, n, e) : (c = Q(t, a, r) + "", d = "string" == typeof f, "color" === a || "fill" === a || "stroke" === a || -1 !== a.indexOf("Color") || d && P.test(f) ? (d || (f = he(f), f = (f.length > 3 ? "rgba(" : "rgb(") + f.join(",") + ")"), i = ge(v, a, c, f, !0, "transparent", i, 0, n)) : !d || -1 === f.indexOf(" ") && -1 === f.indexOf(",") ? (h = parseFloat(c), p = h || 0 === h ? c.substr((h + "").length) : "", ("" === c || "auto" === c) && ("width" === a || "height" === a ? (h = ie(t, a, r), p = "px") : "left" === a || "top" === a ? (h = H(t, a, r), p = "px") : (h = "opacity" !== a ? 0 : 1, p = "")), g = d && "=" === f.charAt(1), g ? (u = parseInt(f.charAt(0) + "1", 10), f = f.substr(2), u *= parseFloat(f), m = f.replace(T, "")) : (u = parseFloat(f), m = d ? f.replace(T, "") : ""), "" === m && (m = a in s ? s[a] : p), f = u || 0 === u ? (g ? u + h : u) + m : e[a], p !== m && "" !== m && (u || 0 === u) && h && (h = $(t, a, h, p), "%" === m ? (h /= $(t, a, 100, "%") / 100, e.strictUnits !== !0 && (c = h + "%")) : "em" === m || "rem" === m ? h /= $(t, a, 1, m) : "px" !== m && (u = $(t, a, u, m), m = "px"), g && (u || 0 === u) && (f = u + h + m)), g && (u += h), !h && 0 !== h || !u && 0 !== u ? void 0 !== v[a] && (f || "NaN" != f + "" && null != f) ? (i = new me(v, a, u || h || 0, 0, i, -1, a, !1, 0, c, f), i.xs0 = "none" !== f || "display" !== a && -1 === a.indexOf("Style") ? f : c) : q("invalid " + a + " tween value: " + e[a]) : (i = new me(v, a, h, u - h, i, 0, a, _ !== !1 && ("px" === m || "zIndex" === a), 0, c, f), i.xs0 = m)) : i = ge(v, a, c, f, !0, null, i, 0, n)), n && i && !i.plugin && (i.plugin = n); 1435 return i 1436 }, h.setRatio = function (t) { 1437 var e, i, s, r = this._firstPT, 1438 n = 1e-6; 1439 if (1 !== t || this._tween._time !== this._tween._duration && 0 !== this._tween._time) 1440 if (t || this._tween._time !== this._tween._duration && 0 !== this._tween._time || this._tween._rawPrevTime === -1e-6) 1441 for (; r;) { 1442 if (e = r.c * t + r.s, r.r ? e = Math.round(e) : n > e && e > -n && (e = 0), r.type) 1443 if (1 === r.type) 1444 if (s = r.l, 2 === s) r.t[r.p] = r.xs0 + e + r.xs1 + r.xn1 + r.xs2; 1445 else if (3 === s) r.t[r.p] = r.xs0 + e + r.xs1 + r.xn1 + r.xs2 + r.xn2 + r.xs3; 1446 else if (4 === s) r.t[r.p] = r.xs0 + e + r.xs1 + r.xn1 + r.xs2 + r.xn2 + r.xs3 + r.xn3 + r.xs4; 1447 else if (5 === s) r.t[r.p] = r.xs0 + e + r.xs1 + r.xn1 + r.xs2 + r.xn2 + r.xs3 + r.xn3 + r.xs4 + r.xn4 + r.xs5; 1448 else { 1449 for (i = r.xs0 + e + r.xs1, s = 1; r.l > s; s++) i += r["xn" + s] + r["xs" + (s + 1)]; 1450 r.t[r.p] = i 1451 } else -1 === r.type ? r.t[r.p] = r.xs0 : r.setRatio && r.setRatio(t); 1452 else r.t[r.p] = e + r.xs0; 1453 r = r._next 1454 } else 1455 for (; r;) 2 !== r.type ? r.t[r.p] = r.b : r.setRatio(t), r = r._next; 1456 else 1457 for (; r;) { 1458 if (2 !== r.type) 1459 if (r.r && -1 !== r.type) 1460 if (e = Math.round(r.s + r.c), r.type) { 1461 if (1 === r.type) { 1462 for (s = r.l, i = r.xs0 + e + r.xs1, s = 1; r.l > s; s++) i += r["xn" + s] + r["xs" + (s + 1)]; 1463 r.t[r.p] = i 1464 } 1465 } else r.t[r.p] = e + r.xs0; 1466 else r.t[r.p] = r.e; 1467 else r.setRatio(t); 1468 r = r._next 1469 } 1470 }, h._enableTransforms = function (t) { 1471 this._transform = this._transform || Ne(this._target, r, !0), this._transformType = this._transform.svg && we || !t && 3 !== this._transformType ? 2 : 3 1472 }; 1473 var qe = function () { 1474 this.t[this.p] = this.e, this.data._linkCSSP(this, this._next, null, !0) 1475 }; 1476 h._addLazySet = function (t, e, i) { 1477 var s = this._firstPT = new me(t, e, 0, 0, this._firstPT, 2); 1478 s.e = i, s.setRatio = qe, s.data = this 1479 }, h._linkCSSP = function (t, e, i, s) { 1480 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, s = !0), i ? i._next = t : s || null !== this._firstPT || (this._firstPT = t), t._next = e, t._prev = i), t 1481 }, h._kill = function (e) { 1482 var i, s, r, n = e; 1483 if (e.autoAlpha || e.alpha) { 1484 n = {}; 1485 for (s in e) n[s] = e[s]; 1486 n.opacity = 1, n.autoAlpha && (n.visibility = 1) 1487 } 1488 return e.className && (i = this._classNamePT) && (r = i.xfirst, r && r._prev ? this._linkCSSP(r._prev, i._next, r._prev._prev) : r === this._firstPT && (this._firstPT = i._next), i._next && this._linkCSSP(i._next, i._next._next, r._prev), this._classNamePT = null), t.prototype._kill.call(this, n) 1489 }; 1490 var Ve = function (t, e, i) { 1491 var s, r, n, a; 1492 if (t.slice) 1493 for (r = t.length; --r > -1;) Ve(t[r], e, i); 1494 else 1495 for (s = t.childNodes, r = s.length; --r > -1;) n = s[r], a = n.type, n.style && (e.push(K(n)), i && i.push(n)), 1 !== a && 9 !== a && 11 !== a || !n.childNodes.length || Ve(n, e, i) 1496 }; 1497 return a.cascadeTo = function (t, i, s) { 1498 var r, n, a, o, l = e.to(t, i, s), 1499 h = [l], 1500 _ = [], 1501 u = [], 1502 c = [], 1503 f = e._internals.reservedProps; 1504 for (t = l._targets || l.target, Ve(t, _, c), l.render(i, !0, !0), Ve(t, u), l.render(0, !0, !0), l._enabled(!0), r = c.length; --r > -1;) 1505 if (n = J(c[r], _[r], u[r]), n.firstMPT) { 1506 n = n.difs; 1507 for (a in s) f[a] && (n[a] = s[a]); 1508 o = {}; 1509 for (a in n) o[a] = _[r][a]; 1510 h.push(e.fromTo(c[r], i, o, n)) 1511 } return h 1512 }, t.activate([a]), a 1513 }, !0), 1514 function () { 1515 var t = _gsScope._gsDefine.plugin({ 1516 propName: "roundProps", 1517 version: "1.5", 1518 priority: -1, 1519 API: 2, 1520 init: function (t, e, i) { 1521 return this._tween = i, !0 1522 } 1523 }), 1524 e = function (t) { 1525 for (; t;) t.f || t.blob || (t.r = 1), t = t._next 1526 }, 1527 i = t.prototype; 1528 i._onInitAllProps = function () { 1529 for (var t, i, s, r = this._tween, n = r.vars.roundProps.join ? r.vars.roundProps : r.vars.roundProps.split(","), a = n.length, o = {}, l = r._propLookup.roundProps; --a > -1;) o[n[a]] = 1; 1530 for (a = n.length; --a > -1;) 1531 for (t = n[a], i = r._firstPT; i;) s = i._next, i.pg ? i.t._roundProps(o, !0) : i.n === t && (2 === i.f && i.t ? e(i.t._firstPT) : (this._add(i.t, t, i.s, i.c), s && (s._prev = i._prev), i._prev ? i._prev._next = s : r._firstPT === i && (r._firstPT = s), i._next = i._prev = null, r._propLookup[t] = l)), i = s; 1532 return !1 1533 }, i._add = function (t, e, i, s) { 1534 this._addTween(t, e, i, i + s, e, !0), this._overwriteProps.push(e) 1535 } 1536 }(), 1537 function () { 1538 _gsScope._gsDefine.plugin({ 1539 propName: "attr", 1540 API: 2, 1541 version: "0.5.0", 1542 init: function (t, e) { 1543 var i; 1544 if ("function" != typeof t.setAttribute) return !1; 1545 for (i in e) this._addTween(t, "setAttribute", t.getAttribute(i) + "", e[i] + "", i, !1, i), this._overwriteProps.push(i); 1546 return !0 1547 } 1548 }) 1549 }(), _gsScope._gsDefine.plugin({ 1550 propName: "directionalRotation", 1551 version: "0.2.1", 1552 API: 2, 1553 init: function (t, e) { 1554 "object" != typeof e && (e = { 1555 rotation: e 1556 }), this.finals = {}; 1557 var i, s, r, n, a, o, l = e.useRadians === !0 ? 2 * Math.PI : 360, 1558 h = 1e-6; 1559 for (i in e) "useRadians" !== i && (o = (e[i] + "").split("_"), s = o[0], r = parseFloat("function" != typeof t[i] ? t[i] : t[i.indexOf("set") || "function" != typeof t["get" + i.substr(3)] ? i : "get" + i.substr(3)]()), n = this.finals[i] = "string" == typeof s && "=" === s.charAt(1) ? r + parseInt(s.charAt(0) + "1", 10) * Number(s.substr(2)) : Number(s) || 0, a = n - r, o.length && (s = o.join("_"), -1 !== s.indexOf("short") && (a %= l, a !== a % (l / 2) && (a = 0 > a ? a + l : a - l)), -1 !== s.indexOf("_cw") && 0 > a ? a = (a + 9999999999 * l) % l - (0 | a / l) * l : -1 !== s.indexOf("ccw") && a > 0 && (a = (a - 9999999999 * l) % l - (0 | a / l) * l)), (a > h || -h > a) && (this._addTween(t, i, r, r + a, i), this._overwriteProps.push(i))); 1560 return !0 1561 }, 1562 set: function (t) { 1563 var e; 1564 if (1 !== t) this._super.setRatio.call(this, t); 1565 else 1566 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 1567 } 1568 })._autoCSS = !0, _gsScope._gsDefine("easing.Back", ["easing.Ease"], function (t) { 1569 var e, i, s, r = _gsScope.GreenSockGlobals || _gsScope, 1570 n = r.com.greensock, 1571 a = 2 * Math.PI, 1572 o = Math.PI / 2, 1573 l = n._class, 1574 h = function (e, i) { 1575 var s = l("easing." + e, function () {}, !0), 1576 r = s.prototype = new t; 1577 return r.constructor = s, r.getRatio = i, s 1578 }, 1579 _ = t.register || function () {}, 1580 u = function (t, e, i, s) { 1581 var r = l("easing." + t, { 1582 easeOut: new e,
vendor: 27,805 bytes, lines 1583-2040
1583 easeIn: new i, 1584 easeInOut: new s 1585 }, !0); 1586 return _(r, t), r 1587 }, 1588 c = function (t, e, i) { 1589 this.t = t, this.v = e, i && (this.next = i, i.prev = this, this.c = i.v - e, this.gap = i.t - t) 1590 }, 1591 f = function (e, i) { 1592 var s = l("easing." + e, function (t) { 1593 this._p1 = t || 0 === t ? t : 1.70158, this._p2 = 1.525 * this._p1 1594 }, !0), 1595 r = s.prototype = new t; 1596 return r.constructor = s, r.getRatio = i, r.config = function (t) { 1597 return new s(t) 1598 }, s 1599 }, 1600 p = u("Back", f("BackOut", function (t) { 1601 return (t -= 1) * t * ((this._p1 + 1) * t + this._p1) + 1 1602 }), f("BackIn", function (t) { 1603 return t * t * ((this._p1 + 1) * t - this._p1) 1604 }), f("BackInOut", function (t) { 1605 return 1 > (t *= 2) ? .5 * t * t * ((this._p2 + 1) * t - this._p2) : .5 * ((t -= 2) * t * ((this._p2 + 1) * t + this._p2) + 2) 1606 })), 1607 m = l("easing.SlowMo", function (t, e, i) { 1608 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 1609 }, !0), 1610 d = m.prototype = new t; 1611 return d.constructor = m, d.getRatio = function (t) { 1612 var e = t + (.5 - t) * this._p; 1613 return this._p1 > t ? 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 1614 }, m.ease = new m(.7, .7), d.config = m.config = function (t, e, i) { 1615 return new m(t, e, i) 1616 }, e = l("easing.SteppedEase", function (t) { 1617 t = t || 1, this._p1 = 1 / t, this._p2 = t + 1 1618 }, !0), d = e.prototype = new t, d.constructor = e, d.getRatio = function (t) { 1619 return 0 > t ? t = 0 : t >= 1 && (t = .999999999), (this._p2 * t >> 0) * this._p1 1620 }, d.config = e.config = function (t) { 1621 return new e(t) 1622 }, i = l("easing.RoughEase", function (e) { 1623 e = e || {}; 1624 for (var i, s, r, n, a, o, l = e.taper || "none", h = [], _ = 0, u = 0 | (e.points || 20), f = u, p = e.randomize !== !1, m = e.clamp === !0, d = e.template instanceof t ? e.template : null, g = "number" == typeof e.strength ? .4 * e.strength : .4; --f > -1;) i = p ? Math.random() : 1 / u * f, s = d ? d.getRatio(i) : i, "none" === l ? r = g : "out" === l ? (n = 1 - i, r = n * n * g) : "in" === l ? r = i * i * g : .5 > i ? (n = 2 * i, r = .5 * n * n * g) : (n = 2 * (1 - i), r = .5 * n * n * g), p ? s += Math.random() * r - .5 * r : f % 2 ? s += .5 * r : s -= .5 * r, m && (s > 1 ? s = 1 : 0 > s && (s = 0)), h[_++] = { 1625 x: i, 1626 y: s 1627 }; 1628 for (h.sort(function (t, e) { 1629 return t.x - e.x 1630 }), o = new c(1, 1, null), f = u; --f > -1;) a = h[f], o = new c(a.x, a.y, o); 1631 this._prev = new c(0, 0, 0 !== o.t ? o : o.next) 1632 }, !0), d = i.prototype = new t, d.constructor = i, d.getRatio = function (t) { 1633 var e = this._prev; 1634 if (t > e.t) { 1635 for (; e.next && t >= e.t;) e = e.next; 1636 e = e.prev 1637 } else 1638 for (; e.prev && e.t >= t;) e = e.prev; 1639 return this._prev = e, e.v + (t - e.t) / e.gap * e.c 1640 }, d.config = function (t) { 1641 return new i(t) 1642 }, i.ease = new i, u("Bounce", h("BounceOut", function (t) { 1643 return 1 / 2.75 > t ? 7.5625 * t * t : 2 / 2.75 > t ? 7.5625 * (t -= 1.5 / 2.75) * t + .75 : 2.5 / 2.75 > t ? 7.5625 * (t -= 2.25 / 2.75) * t + .9375 : 7.5625 * (t -= 2.625 / 2.75) * t + .984375 1644 }), h("BounceIn", function (t) { 1645 return 1 / 2.75 > (t = 1 - t) ? 1 - 7.5625 * t * t : 2 / 2.75 > t ? 1 - (7.5625 * (t -= 1.5 / 2.75) * t + .75) : 2.5 / 2.75 > t ? 1 - (7.5625 * (t -= 2.25 / 2.75) * t + .9375) : 1 - (7.5625 * (t -= 2.625 / 2.75) * t + .984375) 1646 }), h("BounceInOut", function (t) { 1647 var e = .5 > t; 1648 return t = e ? 1 - 2 * t : 2 * t - 1, t = 1 / 2.75 > t ? 7.5625 * t * t : 2 / 2.75 > t ? 7.5625 * (t -= 1.5 / 2.75) * t + .75 : 2.5 / 2.75 > t ? 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 1649 })), u("Circ", h("CircOut", function (t) { 1650 return Math.sqrt(1 - (t -= 1) * t) 1651 }), h("CircIn", function (t) { 1652 return -(Math.sqrt(1 - t * t) - 1) 1653 }), h("CircInOut", function (t) { 1654 return 1 > (t *= 2) ? -.5 * (Math.sqrt(1 - t * t) - 1) : .5 * (Math.sqrt(1 - (t -= 2) * t) + 1) 1655 })), s = function (e, i, s) { 1656 var r = l("easing." + e, function (t, e) { 1657 this._p1 = t >= 1 ? t : 1, this._p2 = (e || s) / (1 > t ? t : 1), this._p3 = this._p2 / a * (Math.asin(1 / this._p1) || 0), this._p2 = a / this._p2 1658 }, !0), 1659 n = r.prototype = new t; 1660 return n.constructor = r, n.getRatio = i, n.config = function (t, e) { 1661 return new r(t, e) 1662 }, r 1663 }, u("Elastic", s("ElasticOut", function (t) { 1664 return this._p1 * Math.pow(2, -10 * t) * Math.sin((t - this._p3) * this._p2) + 1 1665 }, .3), s("ElasticIn", function (t) { 1666 return -(this._p1 * Math.pow(2, 10 * (t -= 1)) * Math.sin((t - this._p3) * this._p2)) 1667 }, .3), s("ElasticInOut", function (t) { 1668 return 1 > (t *= 2) ? -.5 * this._p1 * Math.pow(2, 10 * (t -= 1)) * Math.sin((t - this._p3) * this._p2) : .5 * this._p1 * Math.pow(2, -10 * (t -= 1)) * Math.sin((t - this._p3) * this._p2) + 1 1669 }, .45)), u("Expo", h("ExpoOut", function (t) { 1670 return 1 - Math.pow(2, -10 * t) 1671 }), h("ExpoIn", function (t) { 1672 return Math.pow(2, 10 * (t - 1)) - .001 1673 }), h("ExpoInOut", function (t) { 1674 return 1 > (t *= 2) ? .5 * Math.pow(2, 10 * (t - 1)) : .5 * (2 - Math.pow(2, -10 * (t - 1))) 1675 })), u("Sine", h("SineOut", function (t) { 1676 return Math.sin(t * o) 1677 }), h("SineIn", function (t) { 1678 return -Math.cos(t * o) + 1 1679 }), h("SineInOut", function (t) { 1680 return -.5 * (Math.cos(Math.PI * t) - 1) 1681 })), l("easing.EaseLookup", { 1682 find: function (e) { 1683 return t.map[e] 1684 } 1685 }, !0), _(r.SlowMo, "SlowMo", "ease,"), _(i, "RoughEase", "ease,"), _(e, "SteppedEase", "ease,"), p 1686 }, !0) 1687 }), _gsScope._gsDefine && _gsScope._gsQueue.pop()(), 1688 function (t, e) { 1689 "use strict"; 1690 var i = t.GreenSockGlobals = t.GreenSockGlobals || t; 1691 if (!i.TweenLite) { 1692 var s, r, n, a, o, l = function (t) { 1693 var e, s = t.split("."), 1694 r = i; 1695 for (e = 0; s.length > e; e++) r[s[e]] = r = r[s[e]] || {}; 1696 return r 1697 }, 1698 h = l("com.greensock"), 1699 _ = 1e-10, 1700 u = function (t) { 1701 var e, i = [], 1702 s = t.length; 1703 for (e = 0; e !== s; i.push(t[e++])); 1704 return i 1705 }, 1706 c = function () {}, 1707 f = function () { 1708 var t = Object.prototype.toString, 1709 e = t.call([]); 1710 return function (i) { 1711 return null != i && (i instanceof Array || "object" == typeof i && !!i.push && t.call(i) === e) 1712 } 1713 }(), 1714 p = {}, 1715 m = function (s, r, n, a) { 1716 this.sc = p[s] ? p[s].sc : [], p[s] = this, this.gsClass = null, this.func = n; 1717 var o = []; 1718 this.check = function (h) { 1719 for (var _, u, c, f, d, g = r.length, v = g; --g > -1;)(_ = p[r[g]] || new m(r[g], [])).gsClass ? (o[g] = _.gsClass, v--) : h && _.sc.push(this); 1720 if (0 === v && n) 1721 for (u = ("com.greensock." + s).split("."), c = u.pop(), f = l(u.join("."))[c] = this.gsClass = n.apply(n, o), a && (i[c] = f, d = "undefined" != typeof module && module.exports, !d && "function" == typeof define && define.amd ? define((t.GreenSockAMDPath ? t.GreenSockAMDPath + "/" : "") + s.split(".").pop(), [], function () { 1722 return f 1723 }) : s === e && d && (module.exports = f)), g = 0; this.sc.length > g; g++) this.sc[g].check() 1724 }, this.check(!0) 1725 }, 1726 d = t._gsDefine = function (t, e, i, s) { 1727 return new m(t, e, i, s) 1728 }, 1729 g = h._class = function (t, e, i) { 1730 return e = e || function () {}, d(t, [], function () { 1731 return e 1732 }, i), e 1733 }; 1734 d.globals = i; 1735 var v = [0, 0, 1, 1], 1736 y = [], 1737 T = g("easing.Ease", function (t, e, i, s) { 1738 this._func = t, this._type = i || 0, this._power = s || 0, this._params = e ? v.concat(e) : v 1739 }, !0), 1740 x = T.map = {}, 1741 w = T.register = function (t, e, i, s) { 1742 for (var r, n, a, o, l = e.split(","), _ = l.length, u = (i || "easeIn,easeOut,easeInOut").split(","); --_ > -1;) 1743 for (n = l[_], r = s ? g("easing." + n, null, !0) : h.easing[n] || {}, a = u.length; --a > -1;) o = u[a], x[n + "." + o] = x[o + n] = r[o] = t.getRatio ? t : t[o] || new t 1744 }; 1745 for (n = T.prototype, n._calcEnd = !1, n.getRatio = function (t) { 1746 if (this._func) return this._params[0] = t, this._func.apply(null, this._params); 1747 var e = this._type, 1748 i = this._power, 1749 s = 1 === e ? 1 - t : 2 === e ? t : .5 > t ? 2 * t : 2 * (1 - t); 1750 return 1 === i ? s *= s : 2 === i ? s *= s * s : 3 === i ? s *= s * s * s : 4 === i && (s *= s * s * s * s), 1 === e ? 1 - s : 2 === e ? s : .5 > t ? s / 2 : 1 - s / 2 1751 }, s = ["Linear", "Quad", "Cubic", "Quart", "Quint,Strong"], r = s.length; --r > -1;) n = s[r] + ",Power" + r, w(new T(null, null, 1, r), n, "easeOut", !0), w(new T(null, null, 2, r), n, "easeIn" + (0 === r ? ",easeNone" : "")), w(new T(null, null, 3, r), n, "easeInOut"); 1752 x.linear = h.easing.Linear.easeIn, x.swing = h.easing.Quad.easeInOut; 1753 var b = g("events.EventDispatcher", function (t) { 1754 this._listeners = {}, this._eventTarget = t || this 1755 }); 1756 n = b.prototype, n.addEventListener = function (t, e, i, s, r) { 1757 r = r || 0; 1758 var n, l, h = this._listeners[t], 1759 _ = 0; 1760 for (null == h && (this._listeners[t] = h = []), l = h.length; --l > -1;) n = h[l], n.c === e && n.s === i ? h.splice(l, 1) : 0 === _ && r > n.pr && (_ = l + 1); 1761 h.splice(_, 0, { 1762 c: e, 1763 s: i, 1764 up: s, 1765 pr: r 1766 }), this !== a || o || a.wake() 1767 }, n.removeEventListener = function (t, e) { 1768 var i, s = this._listeners[t]; 1769 if (s) 1770 for (i = s.length; --i > -1;) 1771 if (s[i].c === e) return s.splice(i, 1), void 0 1772 }, n.dispatchEvent = function (t) { 1773 var e, i, s, r = this._listeners[t]; 1774 if (r) 1775 for (e = r.length, i = this._eventTarget; --e > -1;) s = r[e], s && (s.up ? s.c.call(s.s || i, { 1776 type: t, 1777 target: i 1778 }) : s.c.call(s.s || i)) 1779 }; 1780 var P = t.requestAnimationFrame, 1781 k = t.cancelAnimationFrame, 1782 S = Date.now || function () { 1783 return (new Date).getTime() 1784 }, 1785 R = S(); 1786 for (s = ["ms", "moz", "webkit", "o"], r = s.length; --r > -1 && !P;) P = t[s[r] + "RequestAnimationFrame"], k = t[s[r] + "CancelAnimationFrame"] || t[s[r] + "CancelRequestAnimationFrame"]; 1787 g("Ticker", function (t, e) { 1788 var i, s, r, n, l, h = this, 1789 u = S(), 1790 f = e !== !1 && P, 1791 p = 500, 1792 m = 33, 1793 d = "tick", 1794 g = function (t) { 1795 var e, a, o = S() - R; 1796 o > p && (u += o - m), R += o, h.time = (R - u) / 1e3, e = h.time - l, (!i || e > 0 || t === !0) && (h.frame++, l += e + (e >= n ? .004 : n - e), a = !0), t !== !0 && (r = s(g)), a && h.dispatchEvent(d) 1797 }; 1798 b.call(h), h.time = h.frame = 0, h.tick = function () { 1799 g(!0) 1800 }, h.lagSmoothing = function (t, e) { 1801 p = t || 1 / _, m = Math.min(e, p, 0) 1802 }, h.sleep = function () { 1803 null != r && (f && k ? k(r) : clearTimeout(r), s = c, r = null, h === a && (o = !1)) 1804 }, h.wake = function () { 1805 null !== r ? h.sleep() : h.frame > 10 && (R = S() - p + 5), s = 0 === i ? c : f && P ? P : function (t) { 1806 return setTimeout(t, 0 | 1e3 * (l - h.time) + 1) 1807 }, h === a && (o = !0), g(2) 1808 }, h.fps = function (t) { 1809 return arguments.length ? (i = t, n = 1 / (i || 60), l = this.time + n, h.wake(), void 0) : i 1810 }, h.useRAF = function (t) { 1811 return arguments.length ? (h.sleep(), f = t, h.fps(i), void 0) : f 1812 }, h.fps(t), setTimeout(function () { 1813 f && 5 > h.frame && h.useRAF(!1) 1814 }, 1500) 1815 }), n = h.Ticker.prototype = new h.events.EventDispatcher, n.constructor = h.Ticker; 1816 var O = g("core.Animation", function (t, e) { 1817 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, W) { 1818 o || a.wake(); 1819 var i = this.vars.useFrames ? G : W; 1820 i.add(this, i._time), this.vars.paused && this.paused(!0) 1821 } 1822 }); 1823 a = O.ticker = new h.Ticker, n = O.prototype, n._dirty = n._gc = n._initted = n._paused = !1, n._totalTime = n._time = 0, n._rawPrevTime = -1, n._next = n._last = n._onUpdate = n._timeline = n.timeline = null, n._paused = !1; 1824 var A = function () { 1825 o && S() - R > 2e3 && a.wake(), setTimeout(A, 2e3) 1826 }; 1827 A(), n.play = function (t, e) { 1828 return null != t && this.seek(t, e), this.reversed(!1).paused(!1) 1829 }, n.pause = function (t, e) { 1830 return null != t && this.seek(t, e), this.paused(!0) 1831 }, n.resume = function (t, e) { 1832 return null != t && this.seek(t, e), this.paused(!1) 1833 }, n.seek = function (t, e) { 1834 return this.totalTime(Number(t), e !== !1) 1835 }, n.restart = function (t, e) { 1836 return this.reversed(!1).paused(!1).totalTime(t ? -this._delay : 0, e !== !1, !0) 1837 }, n.reverse = function (t, e) { 1838 return null != t && this.seek(t || this.totalDuration(), e), this.reversed(!0).paused(!1) 1839 }, n.render = function () {}, n.invalidate = function () { 1840 return this._time = this._totalTime = 0, this._initted = this._gc = !1, this._rawPrevTime = -1, (this._gc || !this.timeline) && this._enabled(!0), this 1841 }, n.isActive = function () { 1842 var t, e = this._timeline, 1843 i = this._startTime; 1844 return !e || !this._gc && !this._paused && e.isActive() && (t = e.rawTime()) >= i && i + this.totalDuration() / this._timeScale > t 1845 }, n._enabled = function (t, e) { 1846 return o || a.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 1847 }, n._kill = function () { 1848 return this._enabled(!1, !1) 1849 }, n.kill = function (t, e) { 1850 return this._kill(t, e), this 1851 }, n._uncache = function (t) { 1852 for (var e = t ? this : this.timeline; e;) e._dirty = !0, e = e.timeline; 1853 return this 1854 }, n._swapSelfInParams = function (t) { 1855 for (var e = t.length, i = t.concat(); --e > -1;) "{self}" === t[e] && (i[e] = this); 1856 return i 1857 }, n._callback = function (t) { 1858 var e = this.vars; 1859 e[t].apply(e[t + "Scope"] || e.callbackScope || this, e[t + "Params"] || y) 1860 }, n.eventCallback = function (t, e, i, s) { 1861 if ("on" === (t || "").substr(0, 2)) { 1862 var r = this.vars; 1863 if (1 === arguments.length) return r[t]; 1864 null == e ? delete r[t] : (r[t] = e, r[t + "Params"] = f(i) && -1 !== i.join("").indexOf("{self}") ? this._swapSelfInParams(i) : i, r[t + "Scope"] = s), "onUpdate" === t && (this._onUpdate = e) 1865 } 1866 return this 1867 }, n.delay = function (t) { 1868 return arguments.length ? (this._timeline.smoothChildTiming && this.startTime(this._startTime + t - this._delay), this._delay = t, this) : this._delay 1869 }, n.duration = function (t) { 1870 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) 1871 }, n.totalDuration = function (t) { 1872 return this._dirty = !1, arguments.length ? this.duration(t) : this._totalDuration 1873 }, n.time = function (t, e) { 1874 return arguments.length ? (this._dirty && this.totalDuration(), this.totalTime(t > this._duration ? this._duration : t, e)) : this._time 1875 }, n.totalTime = function (t, e, i) { 1876 if (o || a.wake(), !arguments.length) return this._totalTime; 1877 if (this._timeline) { 1878 if (0 > t && !i && (t += this.totalDuration()), this._timeline.smoothChildTiming) { 1879 this._dirty && this.totalDuration(); 1880 var s = this._totalDuration, 1881 r = this._timeline; 1882 if (t > s && !i && (t = s), this._startTime = (this._paused ? this._pauseTime : r._time) - (this._reversed ? s - t : t) / this._timeScale, r._dirty || this._uncache(!1), r._timeline) 1883 for (; r._timeline;) r._timeline._time !== (r._startTime + r._totalTime) / r._timeScale && r.totalTime(r._totalTime, !0), r = r._timeline 1884 } 1885 this._gc && this._enabled(!0, !1), (this._totalTime !== t || 0 === this._duration) && (F.length && Q(), this.render(t, e, !1), F.length && Q()) 1886 } 1887 return this 1888 }, n.progress = n.totalProgress = function (t, e) { 1889 var i = this.duration(); 1890 return arguments.length ? this.totalTime(i * t, e) : i ? this._time / i : this.ratio 1891 }, n.startTime = function (t) { 1892 return arguments.length ? (t !== this._startTime && (this._startTime = t, this.timeline && this.timeline._sortChildren && this.timeline.add(this, t - this._delay)), this) : this._startTime 1893 }, n.endTime = function (t) { 1894 return this._startTime + (0 != t ? this.totalDuration() : this.duration()) / this._timeScale 1895 }, n.timeScale = function (t) { 1896 if (!arguments.length) return this._timeScale; 1897 if (t = t || _, this._timeline && this._timeline.smoothChildTiming) { 1898 var e = this._pauseTime, 1899 i = e || 0 === e ? e : this._timeline.totalTime(); 1900 this._startTime = i - (i - this._startTime) * this._timeScale / t 1901 } 1902 return this._timeScale = t, this._uncache(!1) 1903 }, n.reversed = function (t) { 1904 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 1905 }, n.paused = function (t) { 1906 if (!arguments.length) return this._paused; 1907 var e, i, s = this._timeline; 1908 return t != this._paused && s && (o || t || a.wake(), e = s.rawTime(), i = e - this._pauseTime, !t && s.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 = s.smoothChildTiming ? this._totalTime : (e - this._startTime) / this._timeScale, this.render(e, e === this._totalTime, !0))), this._gc && !t && this._enabled(!0, !1), this 1909 }; 1910 var C = g("core.SimpleTimeline", function (t) { 1911 O.call(this, 0, t), this.autoRemoveChildren = this.smoothChildTiming = !0 1912 }); 1913 n = C.prototype = new O, n.constructor = C, n.kill()._gc = !1, n._first = n._last = n._recent = null, n._sortChildren = !1, n.add = n.insert = function (t, e) { 1914 var i, s; 1915 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), i = this._last, this._sortChildren) 1916 for (s = t._startTime; i && i._startTime > s;) i = i._prev; 1917 return i ? (t._next = i._next, i._next = t) : (t._next = this._first, this._first = t), t._next ? t._next._prev = t : this._last = t, t._prev = i, this._recent = t, this._timeline && this._uncache(!0), this 1918 }, n._remove = function (t, e) { 1919 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 1920 }, n.render = function (t, e, i) { 1921 var s, r = this._first; 1922 for (this._totalTime = this._time = this._rawPrevTime = t; r;) s = r._next, (r._active || t >= r._startTime && !r._paused) && (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 = s 1923 }, n.rawTime = function () { 1924 return o || a.wake(), this._totalTime 1925 }; 1926 var D = g("TweenLite", function (e, i, s) { 1927 if (O.call(this, i, s), this.render = D.prototype.render, null == e) throw "Cannot tween a null target."; 1928 this.target = e = "string" != typeof e ? e : D.selector(e) || e; 1929 var r, n, a, o = e.jquery || e.length && e !== t && e[0] && (e[0] === t || e[0].nodeType && e[0].style && !e.nodeType), 1930 l = this.vars.overwrite; 1931 if (this._overwrite = l = null == l ? V[D.defaultOverwrite] : "number" == typeof l ? l >> 0 : V[l], (o || e instanceof Array || e.push && f(e)) && "number" != typeof e[0]) 1932 for (this._targets = a = u(e), this._propLookup = [], this._siblings = [], r = 0; a.length > r; r++) n = a[r], n ? "string" != typeof n ? n.length && n !== t && n[0] && (n[0] === t || n[0].nodeType && n[0].style && !n.nodeType) ? (a.splice(r--, 1), this._targets = a = a.concat(u(n))) : (this._siblings[r] = $(n, this, !1), 1 === l && this._siblings[r].length > 1 && K(n, this, null, 1, this._siblings[r])) : (n = a[r--] = D.selector(n), "string" == typeof n && a.splice(r + 1, 1)) : a.splice(r--, 1); 1933 else this._propLookup = {}, this._siblings = $(e, this, !1), 1 === l && this._siblings.length > 1 && K(e, this, null, 1, this._siblings); 1934 (this.vars.immediateRender || 0 === i && 0 === this._delay && this.vars.immediateRender !== !1) && (this._time = -_, this.render(-this._delay)) 1935 }, !0), 1936 M = function (e) { 1937 return e && e.length && e !== t && e[0] && (e[0] === t || e[0].nodeType && e[0].style && !e.nodeType) 1938 }, 1939 z = function (t, e) { 1940 var i, s = {}; 1941 for (i in t) q[i] || i in e && "transform" !== i && "x" !== i && "y" !== i && "width" !== i && "height" !== i && "className" !== i && "border" !== i || !(!j[i] || j[i] && j[i]._autoCSS) || (s[i] = t[i], delete t[i]); 1942 t.css = s 1943 }; 1944 n = D.prototype = new O, n.constructor = D, n.kill()._gc = !1, n.ratio = 0, n._firstPT = n._targets = n._overwrittenProps = n._startAt = null, n._notifyPluginsOfEnabled = n._lazy = !1, D.version = "1.18.0", D.defaultEase = n._ease = new T(null, null, 1, 1), D.defaultOverwrite = "auto", D.ticker = a, D.autoSleep = 120, D.lagSmoothing = function (t, e) { 1945 a.lagSmoothing(t, e) 1946 }, D.selector = t.$ || t.jQuery || function (e) { 1947 var i = t.$ || t.jQuery; 1948 return i ? (D.selector = i, i(e)) : "undefined" == typeof document ? e : document.querySelectorAll ? document.querySelectorAll(e) : document.getElementById("#" === e.charAt(0) ? e.substr(1) : e) 1949 }; 1950 var F = [], 1951 I = {}, 1952 E = /(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi, 1953 N = function (t) { 1954 for (var e, i = this._firstPT, s = 1e-6; i;) e = i.blob ? t ? this.join("") : this.start : i.c * t + i.s, i.r ? e = Math.round(e) : s > e && e > -s && (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 1955 }, 1956 L = function (t, e, i, s) { 1957 var r, n, a, o, l, h, _, u = [t, e], 1958 c = 0, 1959 f = "", 1960 p = 0; 1961 for (u.start = t, i && (i(u), t = u[0], e = u[1]), u.length = 0, r = t.match(E) || [], n = e.match(E) || [], s && (s._next = null, s.blob = 1, u._firstPT = s), l = n.length, o = 0; l > o; o++) _ = n[o], h = e.substr(c, e.indexOf(_, c) - c), f += h || !o ? h : ",", c += h.length, p ? p = (p + 1) % 5 : "rgba(" === h.substr(-5) && (p = 1), _ === r[o] || o >= r.length ? f += _ : (f && (u.push(f), f = ""), a = parseFloat(r[o]), u.push(a), u._firstPT = { 1962 _next: u._firstPT, 1963 t: u, 1964 p: u.length - 1, 1965 s: a, 1966 c: ("=" === _.charAt(1) ? parseInt(_.charAt(0) + "1", 10) * parseFloat(_.substr(2)) : parseFloat(_) - a) || 0, 1967 f: 0, 1968 r: p && 4 > p 1969 }), c += _.length; 1970 return f += e.substr(c), f && u.push(f), u.setRatio = N, u 1971 }, 1972 X = function (t, e, i, s, r, n, a, o) { 1973 var l, h, _ = "get" === i ? t[e] : i, 1974 u = typeof t[e], 1975 c = "string" == typeof s && "=" === s.charAt(1), 1976 f = { 1977 t: t, 1978 p: e, 1979 s: _, 1980 f: "function" === u, 1981 pg: 0, 1982 n: r || e, 1983 r: n, 1984 pr: 0, 1985 c: c ? parseInt(s.charAt(0) + "1", 10) * parseFloat(s.substr(2)) : parseFloat(s) - _ || 0 1986 }; 1987 return "number" !== u && ("function" === u && "get" === i && (h = e.indexOf("set") || "function" != typeof t["get" + e.substr(3)] ? e : "get" + e.substr(3), f.s = _ = a ? t[h](a) : t[h]()), "string" == typeof _ && (a || isNaN(_)) ? (f.fp = a, l = L(_, s, o || D.defaultStringFilter, f), f = { 1988 t: l, 1989 p: "setRatio", 1990 s: 0, 1991 c: 1, 1992 f: 2, 1993 pg: 0, 1994 n: r || e, 1995 pr: 0 1996 }) : c || (f.c = parseFloat(s) - parseFloat(_) || 0)), f.c ? ((f._next = this._firstPT) && (f._next._prev = f), this._firstPT = f, f) : void 0 1997 }, 1998 B = D._internals = { 1999 isArray: f, 2000 isSelector: M, 2001 lazyTweens: F, 2002 blobDif: L 2003 }, 2004 j = D._plugins = {}, 2005 Y = B.tweenLookup = {}, 2006 U = 0, 2007 q = B.reservedProps = { 2008 ease: 1, 2009 delay: 1, 2010 overwrite: 1, 2011 onComplete: 1, 2012 onCompleteParams: 1, 2013 onCompleteScope: 1, 2014 useFrames: 1, 2015 runBackwards: 1, 2016 startAt: 1, 2017 onUpdate: 1, 2018 onUpdateParams: 1, 2019 onUpdateScope: 1, 2020 onStart: 1, 2021 onStartParams: 1, 2022 onStartScope: 1, 2023 onReverseComplete: 1, 2024 onReverseCompleteParams: 1, 2025 onReverseCompleteScope: 1, 2026 onRepeat: 1, 2027 onRepeatParams: 1, 2028 onRepeatScope: 1, 2029 easeParams: 1, 2030 yoyo: 1, 2031 immediateRender: 1, 2032 repeat: 1, 2033 repeatDelay: 1, 2034 data: 1, 2035 paused: 1, 2036 reversed: 1, 2037 autoCSS: 1, 2038 lazy: 1, 2039 onOverwrite: 1, 2040 callbackScope: 1,
vendor: 2,390 bytes, lines 2041-2100
2041 stringFilter: 1 2042 }, 2043 V = { 2044 none: 0, 2045 all: 1, 2046 auto: 2, 2047 concurrent: 3, 2048 allOnStart: 4, 2049 preexisting: 5, 2050 "true": 1, 2051 "false": 0 2052 }, 2053 G = O._rootFramesTimeline = new C, 2054 W = O._rootTimeline = new C, 2055 Z = 30, 2056 Q = B.lazyRender = function () { 2057 var t, e = F.length; 2058 for (I = {}; --e > -1;) t = F[e], t && t._lazy !== !1 && (t.render(t._lazy[0], t._lazy[1], !0), t._lazy = !1); 2059 F.length = 0 2060 }; 2061 W._startTime = a.time, G._startTime = a.frame, W._active = G._active = !0, setTimeout(Q, 1), O._updateRoot = D.render = function () { 2062 var t, e, i; 2063 if (F.length && Q(), W.render((a.time - W._startTime) * W._timeScale, !1, !1), G.render((a.frame - G._startTime) * G._timeScale, !1, !1), F.length && Q(), a.frame >= Z) { 2064 Z = a.frame + (parseInt(D.autoSleep, 10) || 120); 2065 for (i in Y) { 2066 for (e = Y[i].tweens, t = e.length; --t > -1;) e[t]._gc && e.splice(t, 1); 2067 0 === e.length && delete Y[i] 2068 } 2069 if (i = W._first, (!i || i._paused) && D.autoSleep && !G._first && 1 === a._listeners.tick.length) { 2070 for (; i && i._paused;) i = i._next; 2071 i || a.sleep() 2072 } 2073 } 2074 }, a.addEventListener("tick", O._updateRoot); 2075 var $ = function (t, e, i) { 2076 var s, r, n = t._gsTweenID; 2077 if (Y[n || (t._gsTweenID = n = "t" + U++)] || (Y[n] = { 2078 target: t, 2079 tweens: [] 2080 }), e && (s = Y[n].tweens, s[r = s.length] = e, i)) 2081 for (; --r > -1;) s[r] === e && s.splice(r, 1); 2082 return Y[n].tweens 2083 }, 2084 H = function (t, e, i, s) { 2085 var r, n, a = t.vars.onOverwrite; 2086 return a && (r = a(t, e, i, s)), a = D.onOverwrite, a && (n = a(t, e, i, s)), r !== !1 && n !== !1 2087 }, 2088 K = function (t, e, i, s, r) { 2089 var n, a, o, l; 2090 if (1 === s || s >= 4) { 2091 for (l = r.length, n = 0; l > n; n++) 2092 if ((o = r[n]) !== e) o._gc || o._kill(null, t, e) && (a = !0); 2093 else if (5 === s) break; 2094 return a 2095 } 2096 var h, u = e._startTime + _, 2097 c = [], 2098 f = 0, 2099 p = 0 === e._duration; 2100 for (n = r.length; --n > -1;
vendor: 13,610 bytes, lines 2100-2283
2100)(o = r[n]) === e || o._gc || o._paused || (o._timeline !== e._timeline ? (h = h || J(e, 0, p), 0 === J(o, h, p) && (c[f++] = o)) : u >= o._startTime && o._startTime + o.totalDuration() / o._timeScale > u && ((p || !o._initted) && 2e-10 >= u - o._startTime || (c[f++] = o))); 2101 for (n = f; --n > -1;) 2102 if (o = c[n], 2 === s && o._kill(i, t, e) && (a = !0), 2 !== s || !o._firstPT && o._initted) { 2103 if (2 !== s && !H(o, e)) continue; 2104 o._enabled(!1, !1) && (a = !0) 2105 } return a 2106 }, 2107 J = function (t, e, i) { 2108 for (var s = t._timeline, r = s._timeScale, n = t._startTime; s._timeline;) { 2109 if (n += s._startTime, r *= s._timeScale, s._paused) return -100; 2110 s = s._timeline 2111 } 2112 return n /= r, n > e ? n - e : i && n === e || !t._initted && 2 * _ > n - e ? _ : (n += t.totalDuration() / t._timeScale / r) > e + _ ? 0 : n - e - _ 2113 }; 2114 n._init = function () { 2115 var t, e, i, s, r, n = this.vars, 2116 a = this._overwrittenProps, 2117 o = this._duration, 2118 l = !!n.immediateRender, 2119 h = n.ease; 2120 if (n.startAt) { 2121 this._startAt && (this._startAt.render(-1, !0), this._startAt.kill()), r = {}; 2122 for (s in n.startAt) r[s] = n.startAt[s]; 2123 if (r.overwrite = !1, r.immediateRender = !0, r.lazy = l && n.lazy !== !1, r.startAt = r.delay = null, this._startAt = D.to(this.target, 0, r), l) 2124 if (this._time > 0) this._startAt = null; 2125 else if (0 !== o) return 2126 } else if (n.runBackwards && 0 !== o) 2127 if (this._startAt) this._startAt.render(-1, !0), this._startAt.kill(), this._startAt = null; 2128 else { 2129 0 !== this._time && (l = !1), i = {}; 2130 for (s in n) q[s] && "autoCSS" !== s || (i[s] = n[s]); 2131 if (i.overwrite = 0, i.data = "isFromStart", i.lazy = l && n.lazy !== !1, i.immediateRender = l, this._startAt = D.to(this.target, 0, i), l) { 2132 if (0 === this._time) return 2133 } else this._startAt._init(), this._startAt._enabled(!1), this.vars.immediateRender && (this._startAt = null) 2134 } if (this._ease = h = h ? h instanceof T ? h : "function" == typeof h ? new T(h, n.easeParams) : x[h] || D.defaultEase : D.defaultEase, n.easeParams instanceof Array && h.config && (this._ease = h.config.apply(h, n.easeParams)), this._easeType = this._ease._type, this._easePower = this._ease._power, this._firstPT = null, this._targets) 2135 for (t = this._targets.length; --t > -1;) this._initProps(this._targets[t], this._propLookup[t] = {}, this._siblings[t], a ? a[t] : null) && (e = !0); 2136 else e = this._initProps(this.target, this._propLookup, this._siblings, a); 2137 if (e && D._onPluginEvent("_onInitAllProps", this), a && (this._firstPT || "function" != typeof this.target && this._enabled(!1, !1)), n.runBackwards) 2138 for (i = this._firstPT; i;) i.s += i.c, i.c = -i.c, i = i._next; 2139 this._onUpdate = n.onUpdate, this._initted = !0 2140 }, n._initProps = function (e, i, s, r) { 2141 var n, a, o, l, h, _; 2142 if (null == e) return !1; 2143 I[e._gsTweenID] && Q(), this.vars.css || e.style && e !== t && e.nodeType && j.css && this.vars.autoCSS !== !1 && z(this.vars, e); 2144 for (n in this.vars) 2145 if (_ = this.vars[n], q[n]) _ && (_ instanceof Array || _.push && f(_)) && -1 !== _.join("").indexOf("{self}") && (this.vars[n] = _ = this._swapSelfInParams(_, this)); 2146 else if (j[n] && (l = new j[n])._onInitTween(e, this.vars[n], this)) { 2147 for (this._firstPT = h = { 2148 _next: this._firstPT, 2149 t: l, 2150 p: "setRatio", 2151 s: 0, 2152 c: 1, 2153 f: 1, 2154 n: n, 2155 pg: 1, 2156 pr: l._priority 2157 }, a = l._overwriteProps.length; --a > -1;) i[l._overwriteProps[a]] = this._firstPT; 2158 (l._priority || l._onInitAllProps) && (o = !0), (l._onDisable || l._onEnable) && (this._notifyPluginsOfEnabled = !0), h._next && (h._next._prev = h) 2159 } else i[n] = X.call(this, e, n, "get", _, n, 0, null, this.vars.stringFilter); 2160 return r && this._kill(r, e) ? this._initProps(e, i, s, r) : this._overwrite > 1 && this._firstPT && s.length > 1 && K(e, this, i, this._overwrite, s) ? (this._kill(i, e), this._initProps(e, i, s, r)) : (this._firstPT && (this.vars.lazy !== !1 && this._duration || this.vars.lazy && !this._duration) && (I[e._gsTweenID] = !0), o) 2161 }, n.render = function (t, e, i) { 2162 var s, r, n, a, o = this._time, 2163 l = this._duration, 2164 h = this._rawPrevTime; 2165 if (t >= l) this._totalTime = this._time = l, this.ratio = this._ease._calcEnd ? this._ease.getRatio(1) : 1, this._reversed || (s = !0, r = "onComplete", i = i || this._timeline.autoRemoveChildren), 0 === l && (this._initted || !this.vars.lazy || i) && (this._startTime === this._timeline._duration && (t = 0), (0 === t || 0 > h || h === _ && "isPause" !== this.data) && h !== t && (i = !0, h > _ && (r = "onReverseComplete")), this._rawPrevTime = a = !e || t || h === t ? t : _); 2166 else if (1e-7 > t) this._totalTime = this._time = 0, this.ratio = this._ease._calcEnd ? this._ease.getRatio(0) : 0, (0 !== o || 0 === l && h > 0) && (r = "onReverseComplete", s = this._reversed), 0 > t && (this._active = !1, 0 === l && (this._initted || !this.vars.lazy || i) && (h >= 0 && (h !== _ || "isPause" !== this.data) && (i = !0), this._rawPrevTime = a = !e || t || h === t ? t : _)), this._initted || (i = !0); 2167 else if (this._totalTime = this._time = t, this._easeType) { 2168 var u = t / l, 2169 c = this._easeType, 2170 f = this._easePower; 2171 (1 === c || 3 === c && u >= .5) && (u = 1 - u), 3 === c && (u *= 2), 1 === f ? u *= u : 2 === f ? u *= u * u : 3 === f ? u *= u * u * u : 4 === f && (u *= u * u * u * u), this.ratio = 1 === c ? 1 - u : 2 === c ? u : .5 > t / l ? u / 2 : 1 - u / 2 2172 } else this.ratio = this._ease.getRatio(t / l); 2173 if (this._time !== o || i) { 2174 if (!this._initted) { 2175 if (this._init(), !this._initted || this._gc) return; 2176 if (!i && this._firstPT && (this.vars.lazy !== !1 && this._duration || this.vars.lazy && !this._duration)) return this._time = this._totalTime = o, this._rawPrevTime = h, F.push(this), this._lazy = [t, e], void 0; 2177 this._time && !s ? this.ratio = this._ease.getRatio(this._time / l) : s && this._ease._calcEnd && (this.ratio = this._ease.getRatio(0 === this._time ? 0 : 1)) 2178 } 2179 for (this._lazy !== !1 && (this._lazy = !1), this._active || !this._paused && this._time !== o && t >= 0 && (this._active = !0), 0 === o && (this._startAt && (t >= 0 ? this._startAt.render(t, e, i) : r || (r = "_dummyGS")), this.vars.onStart && (0 !== this._time || 0 === l) && (e || this._callback("onStart"))), n = this._firstPT; n;) n.f ? n.t[n.p](n.c * this.ratio + n.s) : n.t[n.p] = n.c * this.ratio + n.s, n = n._next; 2180 this._onUpdate && (0 > t && this._startAt && t !== -1e-4 && this._startAt.render(t, e, i), e || (this._time !== o || s) && this._callback("onUpdate")), r && (!this._gc || i) && (0 > t && this._startAt && !this._onUpdate && t !== -1e-4 && this._startAt.render(t, e, i), s && (this._timeline.autoRemoveChildren && this._enabled(!1, !1), this._active = !1), !e && this.vars[r] && this._callback(r), 0 === l && this._rawPrevTime === _ && a !== _ && (this._rawPrevTime = 0)) 2181 } 2182 }, n._kill = function (t, e, i) { 2183 if ("all" === t && (t = null), null == t && (null == e || e === this.target)) return this._lazy = !1, this._enabled(!1, !1); 2184 e = "string" != typeof e ? e || this._targets || this.target : D.selector(e) || e; 2185 var s, r, n, a, o, l, h, _, u, c = i && this._time && i._startTime === this._startTime && this._timeline === i._timeline; 2186 if ((f(e) || M(e)) && "number" != typeof e[0]) 2187 for (s = e.length; --s > -1;) this._kill(t, e[s], i) && (l = !0); 2188 else { 2189 if (this._targets) { 2190 for (s = this._targets.length; --s > -1;) 2191 if (e === this._targets[s]) { 2192 o = this._propLookup[s] || {}, this._overwrittenProps = this._overwrittenProps || [], r = this._overwrittenProps[s] = t ? this._overwrittenProps[s] || {} : "all"; 2193 break 2194 } 2195 } else { 2196 if (e !== this.target) return !1; 2197 o = this._propLookup, r = this._overwrittenProps = t ? this._overwrittenProps || {} : "all" 2198 } 2199 if (o) { 2200 if (h = t || o, _ = t !== r && "all" !== r && t !== o && ("object" != typeof t || !t._tempKill), i && (D.onOverwrite || this.vars.onOverwrite)) { 2201 for (n in h) o[n] && (u || (u = []), u.push(n)); 2202 if ((u || !t) && !H(this, i, e, u)) return !1 2203 } 2204 for (n in h)(a = o[n]) && (c && (a.f ? a.t[a.p](a.s) : a.t[a.p] = a.s, l = !0), a.pg && a.t._kill(h) && (l = !0), a.pg && 0 !== a.t._overwriteProps.length || (a._prev ? a._prev._next = a._next : a === this._firstPT && (this._firstPT = a._next), a._next && (a._next._prev = a._prev), a._next = a._prev = null), delete o[n]), _ && (r[n] = 1); 2205 !this._firstPT && this._initted && this._enabled(!1, !1) 2206 } 2207 } 2208 return l 2209 }, n.invalidate = function () { 2210 return this._notifyPluginsOfEnabled && D._onPluginEvent("_onDisable", this), this._firstPT = this._overwrittenProps = this._startAt = this._onUpdate = null, this._notifyPluginsOfEnabled = this._active = this._lazy = !1, this._propLookup = this._targets ? {} : [], O.prototype.invalidate.call(this), this.vars.immediateRender && (this._time = -_, this.render(-this._delay)), this 2211 }, n._enabled = function (t, e) { 2212 if (o || a.wake(), t && this._gc) { 2213 var i, s = this._targets; 2214 if (s) 2215 for (i = s.length; --i > -1;) this._siblings[i] = $(s[i], this, !0); 2216 else this._siblings = $(this.target, this, !0) 2217 } 2218 return O.prototype._enabled.call(this, t, e), this._notifyPluginsOfEnabled && this._firstPT ? D._onPluginEvent(t ? "_onEnable" : "_onDisable", this) : !1 2219 }, D.to = function (t, e, i) { 2220 return new D(t, e, i) 2221 }, D.from = function (t, e, i) { 2222 return i.runBackwards = !0, i.immediateRender = 0 != i.immediateRender, new D(t, e, i) 2223 }, D.fromTo = function (t, e, i, s) { 2224 return s.startAt = i, s.immediateRender = 0 != s.immediateRender && 0 != i.immediateRender, new D(t, e, s) 2225 }, D.delayedCall = function (t, e, i, s, r) { 2226 return new D(e, 0, { 2227 delay: t, 2228 onComplete: e, 2229 onCompleteParams: i, 2230 callbackScope: s, 2231 onReverseComplete: e, 2232 onReverseCompleteParams: i, 2233 immediateRender: !1, 2234 lazy: !1, 2235 useFrames: r, 2236 overwrite: 0 2237 }) 2238 }, D.set = function (t, e) { 2239 return new D(t, 0, e) 2240 }, D.getTweensOf = function (t, e) { 2241 if (null == t) return []; 2242 t = "string" != typeof t ? t : D.selector(t) || t; 2243 var i, s, r, n; 2244 if ((f(t) || M(t)) && "number" != typeof t[0]) { 2245 for (i = t.length, s = []; --i > -1;) s = s.concat(D.getTweensOf(t[i], e)); 2246 for (i = s.length; --i > -1;) 2247 for (n = s[i], r = i; --r > -1;) n === s[r] && s.splice(i, 1) 2248 } else 2249 for (s = $(t).concat(), i = s.length; --i > -1;)(s[i]._gc || e && !s[i].isActive()) && s.splice(i, 1); 2250 return s 2251 }, D.killTweensOf = D.killDelayedCallsTo = function (t, e, i) { 2252 "object" == typeof e && (i = e, e = !1); 2253 for (var s = D.getTweensOf(t, e), r = s.length; --r > -1;) s[r]._kill(i, t) 2254 }; 2255 var te = g("plugins.TweenPlugin", function (t, e) { 2256 this._overwriteProps = (t || "").split(","), this._propName = this._overwriteProps[0], this._priority = e || 0, this._super = te.prototype 2257 }, !0); 2258 if (n = te.prototype, te.version = "1.18.0", te.API = 2, n._firstPT = null, n._addTween = X, n.setRatio = N, n._kill = function (t) { 2259 var e, i = this._overwriteProps, 2260 s = this._firstPT; 2261 if (null != t[this._propName]) this._overwriteProps = []; 2262 else 2263 for (e = i.length; --e > -1;) null != t[i[e]] && i.splice(e, 1); 2264 for (; s;) null != t[s.n] && (s._next && (s._next._prev = s._prev), s._prev ? (s._prev._next = s._next, s._prev = null) : this._firstPT === s && (this._firstPT = s._next)), s = s._next; 2265 return !1 2266 }, n._roundProps = function (t, e) { 2267 for (var i = this._firstPT; i;)(t[this._propName] || null != i.n && t[i.n.split(this._propName + "_").join("")]) && (i.r = e), i = i._next 2268 }, D._onPluginEvent = function (t, e) { 2269 var i, s, r, n, a, o = e._firstPT; 2270 if ("_onInitAllProps" === t) { 2271 for (; o;) { 2272 for (a = o._next, s = r; s && s.pr > o.pr;) s = s._next; 2273 (o._prev = s ? s._prev : n) ? o._prev._next = o: r = o, (o._next = s) ? s._prev = o : n = o, o = a 2274 } 2275 o = e._firstPT = r 2276 } 2277 for (; o;) o.pg && "function" == typeof o.t[t] && o.t[t]() && (i = !0), o = o._next; 2278 return i 2279 }, te.activate = function (t) { 2280 for (var e = t.length; --e > -1;) t[e].API === te.API && (j[(new t[e])._propName] = t[e]); 2281 return !0 2282 }, d.plugin = function (t) { 2283 if (!(t && t.propName && t.init && t.API)) throw "illegal plugin definition.";
vendor: 1,050 bytes, lines 2284-2307
2284 var e, i = t.propName, 2285 s = t.priority || 0, 2286 r = t.overwriteProps, 2287 n = { 2288 init: "_onInitTween", 2289 set: "setRatio", 2290 kill: "_kill", 2291 round: "_roundProps", 2292 initAll: "_onInitAllProps" 2293 }, 2294 a = g("plugins." + i.charAt(0).toUpperCase() + i.substr(1) + "Plugin", function () { 2295 te.call(this, i, s), this._overwriteProps = r || [] 2296 }, t.global === !0), 2297 o = a.prototype = new te(i); 2298 o.constructor = a, a.API = t.API; 2299 for (e in n) "function" == typeof t[e] && (o[n[e]] = t[e]); 2300 return a.version = t.version, te.activate([a]), a 2301 }, s = t._gsQueue) { 2302 for (r = 0; s.length > r; r++) s[r](); 2303 for (n in p) p[n].func || t.console.log("GSAP encountered missing dependency: com.greensock." + n) 2304 } 2305 o = !1 2306 } 2307 }("undefined" != typeof module && module.exports && "undefined" != typeof global ? global : this || window, "TweenMax");
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.