cc-tools-utils 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +44 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +1 -0
- package/dist/lib/img/Transform.d.ts +3 -0
- package/dist/lib/js/Anima.d.ts +2 -0
- package/dist/lib/js/bus.d.ts +9 -0
- package/dist/lib/js/tools.d.ts +53 -0
- package/lib/img/Transform.ts +44 -0
- package/lib/js/Anima.js +10949 -0
- package/lib/js/bus.ts +24 -0
- package/lib/js/tools.ts +238 -0
- package/package.json +57 -0
package/README.md
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
npm的整个思路
|
|
2
|
+
|
|
3
|
+
配置基本的webpack.dev
|
|
4
|
+
主入口文件为index.ts 所有的包函数名或变量名的出口 统一出口 entry
|
|
5
|
+
打包 导出的整个包的名称为index.js 全部混入成一个index.js
|
|
6
|
+
遇到ts文件使用ts-loader进行加载
|
|
7
|
+
无论js 还是 ts 都需要进行babel转义成es5等支持更低版本浏览器的版本
|
|
8
|
+
|
|
9
|
+
其中的web.dev执行ts.config.js进行打包 至dist文件下
|
|
10
|
+
|
|
11
|
+
build文件夹下是由webpack打包压缩的
|
|
12
|
+
|
|
13
|
+
通过命令npm config delete registry删除
|
|
14
|
+
通过命令npm config set registry https://registry.npmjs.org/
|
|
15
|
+
|
|
16
|
+
npm 上传的命令为
|
|
17
|
+
先登录
|
|
18
|
+
npm login
|
|
19
|
+
再发布
|
|
20
|
+
npm publish
|
|
21
|
+
|
|
22
|
+
账号:
|
|
23
|
+
chencheng1998
|
|
24
|
+
13512597595cc
|
|
25
|
+
|
|
26
|
+
对于版本要求
|
|
27
|
+
node v20.14.0
|
|
28
|
+
npm 10.9.0
|
|
29
|
+
|
|
30
|
+
chencheng19981014
|
|
31
|
+
13512597595cc
|
|
32
|
+
13151193828@163.com
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
2FA
|
|
36
|
+
2af26bf09d6ff92b1b034e6eab54c7deb655bb339b0f1a5379b200f02f815251
|
|
37
|
+
f6732d5d0c4816e51076304b88827e07420b0d5261b94545c0295fbb7d50a39a
|
|
38
|
+
1b14023b2ce3dbd220388f5f27e012faf7dc01df7227251be93a54f8f30edc60
|
|
39
|
+
d9a2bcb440a0278363c45f51d9fec1b8a56fa2511ab2b12dd4a9ef763e1e6732
|
|
40
|
+
dc1161f6b1a64f778b7f683748dfb59c20630350cf42e695cc6ff7f5d0107952
|
|
41
|
+
|
|
42
|
+
token
|
|
43
|
+
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
|
|
44
|
+
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.nmpbycc=e():t.nmpbycc=e()}(self,(()=>(()=>{"use strict";var t={221:(t,e,i)=>{function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}i.d(e,{Z:()=>lt});var n=(t=i.hmd(t)).exports&&void 0!==i.g?i.g:window,s=((n._gsQueue||(n._gsQueue=[])).push((function(){function t(t,e,r,n,l,u){var c,f,p,d,m,g,y,v,T={},x=[],b=u||t[0];for(f in l="string"==typeof l?","+l+",":",x,y,z,left,top,right,bottom,marginTop,marginLeft,marginRight,marginBottom,paddingLeft,paddingTop,paddingRight,paddingBottom,backgroundPosition,backgroundPosition_y,",null==e&&(e=1),t[0])x.push(f);if(1<t.length){for(v=t[t.length-1],y=!0,c=x.length;-1<--c;)if(f=x[c],.05<Math.abs(b[f]-v[f])){y=!1;break}y&&(t=t.concat(),u&&t.unshift(u),t.push(t[1]),u=t[t.length-3])}for(i.length=s.length=a.length=0,c=x.length;-1<--c;)o[f=x[c]]=-1!==l.indexOf(","+f+","),T[f]=function(t,e,r,n){var a,o,l,_,u,c,f=[];if(n)for(o=(t=[n].concat(t)).length;-1<--o;)"string"==typeof(c=t[o][e])&&"="===c.charAt(1)&&(t[o][e]=n[e]+Number(c.charAt(0)+c.substr(2)));if((a=t.length-2)<0)f[0]=new h(t[0][e],0,0,t[0][e]);else{for(o=0;o<a;o++)l=t[o][e],_=t[o+1][e],f[o]=new h(l,0,0,_),r&&(u=t[o+2][e],i[o]=(i[o]||0)+(_-l)*(_-l),s[o]=(s[o]||0)+(u-_)*(u-_));f[o]=new h(t[o][e],0,0,t[o+1][e])}return f}(t,f,o[f],u);for(c=i.length;-1<--c;)i[c]=Math.sqrt(i[c]),s[c]=Math.sqrt(s[c]);if(!n){for(c=x.length;-1<--c;)if(o[f])for(g=(p=T[x[c]]).length-1,d=0;d<g;d++)m=p[d+1].da/s[d]+p[d].da/i[d]||0,a[d]=(a[d]||0)+m*m;for(c=a.length;-1<--c;)a[c]=Math.sqrt(a[c])}for(c=x.length,d=r?4:1;-1<--c;){M=C=A=R=k=S=O=P=w=j=X=L=void 0;for(var w,P,O,S,k,R,A,C,M,D=p=T[f=x[c]],F=e,z=r,E=n,I=o[f],N=D.length-1,L=0,X=D[0].a,j=0;j<N;j++)w=(S=D[L]).a,P=S.d,O=D[L+1].d,A=I?(A=i[j],M=((C=s[j])+A)*F*.25/(!E&&a[j]||.5),P-((k=P-(P-w)*(E?.5*F:0!==A?M/A:0))+(((M=P+(O-P)*(E?.5*F:0!==C?M/C:0))-k)*(3*A/(A+C)+.5)/4||0))):P-((k=P-(P-w)*F*.5)+(M=P+(O-P)*F*.5))/2,M+=A,S.c=C=k+=A,S.b=0!==j?X:X=S.a+.6*(S.c-S.a),S.da=P-w,S.ca=C-w,S.ba=X-w,z?(R=_(w,X,C,P),D.splice(L,1,R[0],R[1],R[2],R[3]),L+=4):L++,X=M;(S=D[L]).b=X,S.c=X+.4*(S.d-X),S.da=S.d-S.a,S.ca=S.c-S.a,S.ba=X-S.a,z&&(R=_(S.a,X,S.c,S.d),D.splice(L,1,R[0],R[1],R[2],R[3])),y&&(p.splice(0,d),p.splice(p.length-d,d))}return T}var e,i,s,a,o,l,h,_,u,c;n._gsDefine("TweenMax",["core.Animation","core.SimpleTimeline","TweenLite"],(function(t,e,i){function n(t){for(var e=[],i=t.length,r=0;r!==i;e.push(t[r++]));return e}function s(t,e,i){var r,n,s=t.cycle;for(r in s)n=s[r],t[r]="function"==typeof n?n(i,e[i],e):n[i%n.length];delete t.cycle}function a(t){var e,i,n,s,a,o,l,h;return"function"==typeof t?t:(e="object"===r(t)?t:{each:t},i=e.ease,n=e.from||0,s=e.base||0,a={},o=isNaN(n),l=e.axis,h={center:.5,end:1}[n]||0,function(t,r,_){var u,c,f,p,d,m,g,y,v=(_||e).length,T=a[v];if(!T){if(!(y="auto"===e.grid?0:(e.grid||[1/0])[0])){for(m=-1/0;m<(m=_[y++].getBoundingClientRect().left)&&y<v;);y--}for(T=a[v]=[],u=o?Math.min(y,v)*h-.5:n%y,c=o?v*h/y-.5:n/y|0,g=1/(m=0),d=0;d<v;d++)p=d%y-u,f=c-(d/y|0),T[d]=p=l?Math.abs("y"===l?f:p):Math.sqrt(p*p+f*f),m<p&&(m=p),p<g&&(g=p);T.max=m-g,T.min=g,T.v=v=e.amount||e.each*(v<y?v:l?"y"===l?v/y:y:Math.max(y,v/y))||0,T.b=v<0?s-v:s}return v=(T[t]-T.min)/T.max,T.b+(i?i.getRatio(v):v)*T.v})}function o(t,e,r){i.call(this,t,e,r),this._cycle=0,this._yoyo=!0===this.vars.yoyo||!!this.vars.yoyoEase,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._repeat&&this._uncache(!0),this.render=o.prototype.render}function l(t,e){for(var r=[],n=0,s=t._first;s;)s instanceof i?r[n++]=s:(e&&(r[n++]=s),n=(r=r.concat(l(s,e))).length),s=s._next;return r}function h(t,i,r,n){i=!1!==i,r=!1!==r;for(var s,a,o=m(n=!1!==n),l=i&&r&&n,h=o.length;-1<--h;)a=o[h],(l||a instanceof e||(s=a.target===a.vars.onComplete)&&r||i&&!s)&&a.paused(t)}var _=1e-8,u=i._internals,c=u.isSelector,f=u.isArray,p=o.prototype=i.to({},.1,{}),d=[],m=(o.version="2.1.2",p.constructor=o,p.kill()._gc=!1,o.killTweensOf=o.killDelayedCallsTo=i.killTweensOf,o.getTweensOf=i.getTweensOf,o.lagSmoothing=i.lagSmoothing,o.ticker=i.ticker,o.render=i.render,o.distribute=a,p.invalidate=function(){return this._yoyo=!0===this.vars.yoyo||!!this.vars.yoyoEase,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._yoyoEase=null,this._uncache(!0),i.prototype.invalidate.call(this)},p.updateTo=function(t,e){var r,n=this,s=n.ratio,a=n.vars.immediateRender||t.immediateRender;for(r in e&&n._startTime<n._timeline._time&&(n._startTime=n._timeline._time,n._uncache(!1),n._gc?n._enabled(!0,!1):n._timeline.insert(n,n._startTime-n._delay)),t)n.vars[r]=t[r];if(n._initted||a)if(e)n._initted=!1,a&&n.render(0,!0,!0);else if(n._gc&&n._enabled(!0,!1),n._notifyPluginsOfEnabled&&n._firstPT&&i._onPluginEvent("_onDisable",n),.998<n._time/n._duration)e=n._totalTime,n.render(0,!0,!1),n._initted=!1,n.render(e,!0,!1);else if(n._initted=!1,n._init(),0<n._time||a)for(var o,l=1/(1-s),h=n._firstPT;h;)o=h.s+h.c,h.c*=l,h.s=o-h.c,h=h._next;return n},p.render=function(t,e,r){this._initted||0===this._duration&&this.vars.repeat&&this.invalidate();var n,s,a,o,l,h,c,f=this,p=f._dirty?f.totalDuration():f._totalDuration,d=f._time,m=f._totalTime,g=f._cycle,y=f._duration,v=f._rawPrevTime;if(p-_<=t&&0<=t?(f._totalTime=p,f._cycle=f._repeat,f._yoyo&&0!=(1&f._cycle)?(f._time=0,f.ratio=f._ease._calcEnd?f._ease.getRatio(0):0):(f._time=y,f.ratio=f._ease._calcEnd?f._ease.getRatio(1):1),f._reversed||(n=!0,s="onComplete",r=r||f._timeline.autoRemoveChildren),0!==y||!f._initted&&f.vars.lazy&&!r||(f._startTime===f._timeline._duration&&(t=0),(v<0||t<=0&&-_<=t||v===_&&"isPause"!==f.data)&&v!==t&&(r=!0,_<v)&&(s="onReverseComplete"),f._rawPrevTime=h=!e||t||v===t?t:_)):t<_?(f._totalTime=f._time=f._cycle=0,f.ratio=f._ease._calcEnd?f._ease.getRatio(0):0,(0!==m||0===y&&0<v)&&(s="onReverseComplete",n=f._reversed),-_<t?t=0:t<0&&(f._active=!1,0!==y||!f._initted&&f.vars.lazy&&!r||(0<=v&&(r=!0),f._rawPrevTime=h=!e||t||v===t?t:_)),f._initted||(r=!0)):(f._totalTime=f._time=t,0!==f._repeat&&(p=y+f._repeatDelay,f._cycle=f._totalTime/p>>0,0!==f._cycle&&f._cycle===f._totalTime/p&&m<=t&&f._cycle--,f._time=f._totalTime-f._cycle*p,f._yoyo&&0!=(1&f._cycle)&&(f._time=y-f._time,c=f._yoyoEase||f.vars.yoyoEase)&&(f._yoyoEase||(!0!==c||f._initted?f._yoyoEase=c=!0===c?f._ease:c instanceof Ease?c:Ease.map[c]:(c=f.vars.ease,f._yoyoEase=c=c?c instanceof Ease?c:"function"==typeof c?new Ease(c,f.vars.easeParams):Ease.map[c]||i.defaultEase:i.defaultEase)),f.ratio=c?1-c.getRatio((y-f._time)/y):0),f._time>y?f._time=y:f._time<0&&(f._time=0)),f._easeType&&!c?(p=f._time/y,(1===(o=f._easeType)||3===o&&.5<=p)&&(p=1-p),3===o&&(p*=2),1===(l=f._easePower)?p*=p:2===l?p*=p*p:3===l?p*=p*p*p:4===l&&(p*=p*p*p*p),f.ratio=1===o?1-p:2===o?p:f._time/y<.5?p/2:1-p/2):c||(f.ratio=f._ease.getRatio(f._time/y))),d!==f._time||r||g!==f._cycle){if(!f._initted){if(f._init(),!f._initted||f._gc)return;if(!r&&f._firstPT&&(!1!==f.vars.lazy&&f._duration||f.vars.lazy&&!f._duration))return f._time=d,f._totalTime=m,f._rawPrevTime=v,f._cycle=g,u.lazyTweens.push(f),void(f._lazy=[t,e]);!f._time||n||c?n&&this._ease._calcEnd&&!c&&(f.ratio=f._ease.getRatio(0===f._time?0:1)):f.ratio=f._ease.getRatio(f._time/y)}for(!1!==f._lazy&&(f._lazy=!1),f._active||!f._paused&&f._time!==d&&0<=t&&(f._active=!0),0===m&&(2===f._initted&&0<t&&f._init(),f._startAt&&(0<=t?f._startAt.render(t,!0,r):s=s||"_dummyGS"),!f.vars.onStart||0===f._totalTime&&0!==y||e||f._callback("onStart")),a=f._firstPT;a;)a.f?a.t[a.p](a.c*f.ratio+a.s):a.t[a.p]=a.c*f.ratio+a.s,a=a._next;f._onUpdate&&(t<0&&f._startAt&&f._startTime&&f._startAt.render(t,!0,r),e||f._totalTime===m&&!s||f._callback("onUpdate")),f._cycle===g||e||f._gc||f.vars.onRepeat&&f._callback("onRepeat"),!s||f._gc&&!r||(t<0&&f._startAt&&!f._onUpdate&&f._startTime&&f._startAt.render(t,!0,r),n&&(f._timeline.autoRemoveChildren&&f._enabled(!1,!1),f._active=!1),!e&&f.vars[s]&&f._callback(s),0===y&&f._rawPrevTime===_&&h!==_&&(f._rawPrevTime=0))}else m!==f._totalTime&&f._onUpdate&&!e&&f._callback("onUpdate")},o.to=function(t,e,i){return new o(t,e,i)},o.from=function(t,e,i){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,new o(t,e,i)},o.fromTo=function(t,e,i,r){return r.startAt=i,r.immediateRender=0!=r.immediateRender&&0!=i.immediateRender,new o(t,e,r)},o.staggerTo=o.allTo=function(t,e,r,l,h,_,u){var p,m,g,y,v=[],T=a(r.stagger||l),x=r.cycle,b=(r.startAt||d).cycle;for(f(t)||("string"==typeof t&&(t=i.selector(t)||t),c(t)&&(t=n(t))),p=(t=t||[]).length-1,g=0;g<=p;g++){for(y in m={},r)m[y]=r[y];if(x&&(s(m,t,g),null!=m.duration)&&(e=m.duration,delete m.duration),b){for(y in b=m.startAt={},r.startAt)b[y]=r.startAt[y];s(m.startAt,t,g)}m.delay=T(g,t[g],t)+(m.delay||0),g===p&&h&&(m.onComplete=function(){r.onComplete&&r.onComplete.apply(r.onCompleteScope||this,arguments),h.apply(u||r.callbackScope||this,_||d)}),v[g]=new o(t[g],e,m)}return v},o.staggerFrom=o.allFrom=function(t,e,i,r,n,s,a){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,o.staggerTo(t,e,i,r,n,s,a)},o.staggerFromTo=o.allFromTo=function(t,e,i,r,n,s,a,l){return r.startAt=i,r.immediateRender=0!=r.immediateRender&&0!=i.immediateRender,o.staggerTo(t,e,r,n,s,a,l)},o.delayedCall=function(t,e,i,r,n){return new o(e,0,{delay:t,onComplete:e,onCompleteParams:i,callbackScope:r,onReverseComplete:e,onReverseCompleteParams:i,immediateRender:!1,useFrames:n,overwrite:0})},o.set=function(t,e){return new o(t,0,e)},o.isTweening=function(t){return 0<i.getTweensOf(t,!0).length},o.getAllTweens=function(e){return l(t._rootTimeline,e).concat(l(t._rootFramesTimeline,e))});return o.killAll=function(t,i,r,n){null==i&&(i=!0),null==r&&(r=!0);for(var s,a,o=m(0!=n),l=o.length,h=i&&r&&n,_=0;_<l;_++)a=o[_],(h||a instanceof e||(s=a.target===a.vars.onComplete)&&r||i&&!s)&&(t?a.totalTime(a._reversed?0:a.totalDuration()):a._enabled(!1,!1))},o.killChildTweensOf=function(t,e){if(null!=t){var r,s,a,l,h,_=u.tweenLookup;if("string"==typeof t&&(t=i.selector(t)||t),c(t)&&(t=n(t)),f(t))for(l=t.length;-1<--l;)o.killChildTweensOf(t[l],e);else{for(a in r=[],_)for(s=_[a].target.parentNode;s;)s===t&&(r=r.concat(_[a].tweens)),s=s.parentNode;for(h=r.length,l=0;l<h;l++)e&&r[l].totalTime(r[l].totalDuration()),r[l]._enabled(!1,!1)}}},o.pauseAll=function(t,e,i){h(!0,t,e,i)},o.resumeAll=function(t,e,i){h(!1,t,e,i)},o.globalTimeScale=function(e){var r=t._rootTimeline,n=i.ticker.time;return arguments.length?(r._startTime=n-(n-r._startTime)*r._timeScale/(e=e||_),r=t._rootFramesTimeline,n=i.ticker.frame,r._startTime=n-(n-r._startTime)*r._timeScale/e,r._timeScale=t._rootTimeline._timeScale=e):r._timeScale},p.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!=(1&this._cycle)?1-t:t)+this._cycle*(this._duration+this._repeatDelay),e):this._time/this.duration()},p.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this._totalTime/this.totalDuration()},p.time=function(t,e){if(!arguments.length)return this._time;this._dirty&&this.totalDuration();var i=this._duration,r=this._cycle,n=r*(i+this._repeatDelay);return i<t&&(t=i),this.totalTime(this._yoyo&&1&r?i-t+n:this._repeat?t+n:t,e)},p.duration=function(e){return arguments.length?t.prototype.duration.call(this,e):this._duration},p.totalDuration=function(t){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)},p.repeat=function(t){return arguments.length?(this._repeat=t,this._uncache(!0)):this._repeat},p.repeatDelay=function(t){return arguments.length?(this._repeatDelay=t,this._uncache(!0)):this._repeatDelay},p.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},o}),!0),n._gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],(function(t,e,i){function s(t){e.call(this,t);var i,r,n=this,s=n.vars;for(r in n._labels={},n.autoRemoveChildren=!!s.autoRemoveChildren,n.smoothChildTiming=!!s.smoothChildTiming,n._sortChildren=!0,n._onUpdate=s.onUpdate,s)i=s[r],p(i)&&-1!==i.join("").indexOf("{self}")&&(s[r]=n._swapSelfInParams(i));p(s.tweens)&&n.add(s.tweens,0,s.align,s.stagger)}function a(t){var e,i={};for(e in t)i[e]=t[e];return i}function o(t,e,i){var r,n,s=t.cycle;for(r in s)n=s[r],t[r]="function"==typeof n?n(i,e[i],e):n[i%n.length];delete t.cycle}function l(t,e,i,r){var n="immediateRender";return n in e||(e[n]=!(i&&!1===i[n]||r)),e}function h(t){var e,i,n,s,a,o,l,h;return"function"==typeof t?t:(e="object"===r(t)?t:{each:t},i=e.ease,n=e.from||0,s=e.base||0,a={},o=isNaN(n),l=e.axis,h={center:.5,end:1}[n]||0,function(t,r,_){var u,c,f,p,d,m,g,y,v=(_||e).length,T=a[v];if(!T){if(!(y="auto"===e.grid?0:(e.grid||[1/0])[0])){for(m=-1/0;m<(m=_[y++].getBoundingClientRect().left)&&y<v;);y--}for(T=a[v]=[],u=o?Math.min(y,v)*h-.5:n%y,c=o?v*h/y-.5:n/y|0,g=1/(m=0),d=0;d<v;d++)p=d%y-u,f=c-(d/y|0),T[d]=p=l?Math.abs("y"===l?f:p):Math.sqrt(p*p+f*f),m<p&&(m=p),p<g&&(g=p);T.max=m-g,T.min=g,T.v=v=e.amount||e.each*(v<y?v:l?"y"===l?v/y:y:Math.max(y,v/y))||0,T.b=v<0?s-v:s}return v=(T[t]-T.min)/T.max,T.b+(i?i.getRatio(v):v)*T.v})}var _=1e-8,u=i._internals,c=s._internals={},f=u.isSelector,p=u.isArray,d=u.lazyTweens,m=u.lazyRender,g=n._gsDefine.globals,y=c.pauseCallback=function(){};return u=s.prototype=new e,s.version="2.1.2",s.distribute=h,u.constructor=s,u.kill()._gc=u._forcingPlayhead=u._hasPause=!1,u.to=function(t,e,r,n){var s=r.repeat&&g.TweenMax||i;return e?this.add(new s(t,e,r),n):this.set(t,r,n)},u.from=function(t,e,r,n){return this.add((r.repeat&&g.TweenMax||i).from(t,e,l(0,r)),n)},u.fromTo=function(t,e,r,n,s){var a=n.repeat&&g.TweenMax||i;return n=l(0,n,r),e?this.add(a.fromTo(t,e,r,n),s):this.set(t,n,s)},u.staggerTo=function(t,e,r,n,l,_,u,c){var p,d,m=new s({onComplete:_,onCompleteParams:u,callbackScope:c,smoothChildTiming:this.smoothChildTiming}),g=h(r.stagger||n),y=r.startAt,v=r.cycle;for("string"==typeof t&&(t=i.selector(t)||t),f(t=t||[])&&(t=function(t){for(var e=[],i=t.length,r=0;r!==i;e.push(t[r++]));return e}(t)),d=0;d<t.length;d++)p=a(r),y&&(p.startAt=a(y),y.cycle)&&o(p.startAt,t,d),v&&(o(p,t,d),null!=p.duration)&&(e=p.duration,delete p.duration),m.to(t[d],e,p,g(d,t[d],t));return this.add(m,l)},u.staggerFrom=function(t,e,i,r,n,s,a,o){return i.runBackwards=!0,this.staggerTo(t,e,l(0,i),r,n,s,a,o)},u.staggerFromTo=function(t,e,i,r,n,s,a,o,h){return r.startAt=i,this.staggerTo(t,e,l(0,r,i),n,s,a,o,h)},u.call=function(t,e,r,n){return this.add(i.delayedCall(0,t,e,r),n)},u.set=function(t,e,r){return this.add(new i(t,0,l(0,e,null,!0)),r)},s.exportRoot=function(t,e){null==(t=t||{}).smoothChildTiming&&(t.smoothChildTiming=!0);var r,n,a,o,l=new s(t);for(null==e&&(e=!0),(t=l._timeline)._remove(l,!0),l._startTime=0,l._rawPrevTime=l._time=l._totalTime=t._time,a=t._first;a;)o=a._next,e&&a instanceof i&&a.target===a.vars.onComplete||((n=a._startTime-a._delay)<0&&(r=1),l.add(a,n)),a=o;return t.add(l,0),r&&l.totalDuration(),l},u.add=function(r,n,a,o){var l,h,_,u,c,f,d=this;if("number"!=typeof n&&(n=d._parseTimeOrLabel(n,0,!0,r)),!(r instanceof t)){if(r instanceof Array||r&&r.push&&p(r)){for(a=a||"normal",o=o||0,l=n,h=r.length,_=0;_<h;_++)p(u=r[_])&&(u=new s({tweens:u})),d.add(u,l),"string"!=typeof u&&"function"!=typeof u&&("sequence"===a?l=u._startTime+u.totalDuration()/u._timeScale:"start"===a&&(u._startTime-=u.delay())),l+=o;return d._uncache(!0)}if("string"==typeof r)return d.addLabel(r,n);if("function"!=typeof r)throw"Cannot add "+r+" into the timeline; it is not a tween, timeline, function, or string.";r=i.delayedCall(0,r)}if(e.prototype.add.call(d,r,n),(r._time||!r._duration&&r._initted)&&(l=(d.rawTime()-r._startTime)*r._timeScale,!r._duration||1e-5<Math.abs(Math.max(0,Math.min(r.totalDuration(),l)))-r._totalTime)&&r.render(l,!1,!1),(d._gc||d._time===d._duration)&&!d._paused&&d._duration<d.duration())for(f=(c=d).rawTime()>r._startTime;c._timeline;)f&&c._timeline.smoothChildTiming?c.totalTime(c._totalTime,!0):c._gc&&c._enabled(!0,!1),c=c._timeline;return d},u.remove=function(e){var i;if(e instanceof t)return this._remove(e,!1),i=e._timeline=e.vars.useFrames?t._rootFramesTimeline:t._rootTimeline,e._startTime=(e._paused?e._pauseTime:i._time)-(e._reversed?e.totalDuration()-e._totalTime:e._totalTime)/e._timeScale,this;if(e instanceof Array||e&&e.push&&p(e)){for(var r=e.length;-1<--r;)this.remove(e[r]);return this}return"string"==typeof e?this.removeLabel(e):this.kill(null,e)},u._remove=function(t,i){return e.prototype._remove.call(this,t,i),this._last?this._time>this.duration()&&(this._time=this._duration,this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},u.append=function(t,e){return this.add(t,this._parseTimeOrLabel(null,e,!0,t))},u.insert=u.insertMultiple=function(t,e,i,r){return this.add(t,e||0,i,r)},u.appendMultiple=function(t,e,i,r){return this.add(t,this._parseTimeOrLabel(null,e,!0,t),i,r)},u.addLabel=function(t,e){return this._labels[t]=this._parseTimeOrLabel(e),this},u.addPause=function(t,e,r,n){return(r=i.delayedCall(0,y,r,n||this)).vars.onComplete=r.vars.onReverseComplete=e,r.data="isPause",this._hasPause=!0,this.add(r,t)},u.removeLabel=function(t){return delete this._labels[t],this},u.getLabelTime=function(t){return null!=this._labels[t]?this._labels[t]:-1},u._parseTimeOrLabel=function(e,i,r,n){var s,a;if(n instanceof t&&n.timeline===this)this.remove(n);else if(n&&(n instanceof Array||n.push&&p(n)))for(a=n.length;-1<--a;)n[a]instanceof t&&n[a].timeline===this&&this.remove(n[a]);if(s="number"!=typeof e||i?99999999999<this.duration()?this.recent().endTime(!1):this._duration:0,"string"==typeof i)return this._parseTimeOrLabel(i,r&&"number"==typeof e&&null==this._labels[i]?e-s:0,r);if(i=i||0,"string"!=typeof e||!isNaN(e)&&null==this._labels[e])null==e&&(e=s);else{if(-1===(a=e.indexOf("=")))return null==this._labels[e]?r?this._labels[e]=s+i:i:this._labels[e]+i;i=parseInt(e.charAt(a-1)+"1",10)*Number(e.substr(a+1)),e=1<a?this._parseTimeOrLabel(e.substr(0,a-1),0,r):s}return Number(e)+i},u.seek=function(t,e){return this.totalTime("number"==typeof t?t:this._parseTimeOrLabel(t),!1!==e)},u.stop=function(){return this.paused(!0)},u.gotoAndPlay=function(t,e){return this.play(t,e)},u.gotoAndStop=function(t,e){return this.pause(t,e)},u.render=function(t,e,i){this._gc&&this._enabled(!0,!1);var r,n,s,a,o,l,h,u,c=this,f=c._time,p=c._dirty?c.totalDuration():c._totalDuration,g=c._startTime,y=c._timeScale,v=c._paused;if(f!==c._time&&(t+=c._time-f),p-_<=t&&0<=t)c._totalTime=c._time=p,c._reversed||c._hasPausedChild()||(n=!0,a="onComplete",o=!!c._timeline.autoRemoveChildren,0===c._duration&&(t<=0&&-_<=t||c._rawPrevTime<0||c._rawPrevTime===_)&&c._rawPrevTime!==t&&c._first&&(o=!0,c._rawPrevTime>_)&&(a="onReverseComplete")),c._rawPrevTime=c._duration||!e||t||c._rawPrevTime===t?t:_,t=p+1e-4;else if(t<_)if(c._totalTime=c._time=0,-_<t&&(t=0),(0!==f||0===c._duration&&c._rawPrevTime!==_&&(0<c._rawPrevTime||t<0&&0<=c._rawPrevTime))&&(a="onReverseComplete",n=c._reversed),t<0)c._active=!1,c._timeline.autoRemoveChildren&&c._reversed?(o=n=!0,a="onReverseComplete"):0<=c._rawPrevTime&&c._first&&(o=!0),c._rawPrevTime=t;else{if(c._rawPrevTime=c._duration||!e||t||c._rawPrevTime===t?t:_,0===t&&n)for(r=c._first;r&&0===r._startTime;)r._duration||(n=!1),r=r._next;t=0,c._initted||(o=!0)}else{if(c._hasPause&&!c._forcingPlayhead&&!e){if(f<=t)for(r=c._first;r&&r._startTime<=t&&!l;)r._duration||"isPause"!==r.data||r.ratio||0===r._startTime&&0===c._rawPrevTime||(l=r),r=r._next;else for(r=c._last;r&&r._startTime>=t&&!l;)r._duration||"isPause"===r.data&&0<r._rawPrevTime&&(l=r),r=r._prev;l&&(c._time=c._totalTime=t=l._startTime,u=c._startTime+t/c._timeScale)}c._totalTime=c._time=c._rawPrevTime=t}if(c._time!==f&&c._first||i||o||l){if(c._initted||(c._initted=!0),c._active||!c._paused&&c._time!==f&&0<t&&(c._active=!0),0!==f||!c.vars.onStart||0===c._time&&c._duration||e||c._callback("onStart"),f<=(h=c._time))for(r=c._first;r&&(s=r._next,h===c._time)&&(!c._paused||v);)(r._active||r._startTime<=h&&!r._paused&&!r._gc)&&(l===r&&(c.pause(),c._pauseTime=u),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;else for(r=c._last;r&&(s=r._prev,h===c._time)&&(!c._paused||v);){if(r._active||r._startTime<=f&&!r._paused&&!r._gc){if(l===r){for(l=r._prev;l&&l.endTime()>c._time;)l.render(l._reversed?l.totalDuration()-(t-l._startTime)*l._timeScale:(t-l._startTime)*l._timeScale,e,i),l=l._prev;l=null,c.pause(),c._pauseTime=u}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}!c._onUpdate||e||(d.length&&m(),c._callback("onUpdate")),!a||c._gc||g!==c._startTime&&y===c._timeScale||(0===c._time||p>=c.totalDuration())&&(n&&(d.length&&m(),c._timeline.autoRemoveChildren&&c._enabled(!1,!1),c._active=!1),!e)&&c.vars[a]&&c._callback(a)}},u._hasPausedChild=function(){for(var t=this._first;t;){if(t._paused||t instanceof s&&t._hasPausedChild())return!0;t=t._next}return!1},u.getChildren=function(t,e,r,n){n=n||-9999999999;for(var s=[],a=this._first,o=0;a;)a._startTime<n||(a instanceof i?!1!==e&&(s[o++]=a):(!1!==r&&(s[o++]=a),!1!==t&&(o=(s=s.concat(a.getChildren(!0,e,r))).length))),a=a._next;return s},u.getTweensOf=function(t,e){var r,n,s=this._gc,a=[],o=0;for(s&&this._enabled(!0,!0),n=(r=i.getTweensOf(t)).length;-1<--n;)(r[n].timeline===this||e&&this._contains(r[n]))&&(a[o++]=r[n]);return s&&this._enabled(!1,!0),a},u.recent=function(){return this._recent},u._contains=function(t){for(var e=t.timeline;e;){if(e===this)return!0;e=e.timeline}return!1},u.shiftChildren=function(t,e,i){i=i||0;for(var r,n=this._first,s=this._labels;n;)n._startTime>=i&&(n._startTime+=t),n=n._next;if(e)for(r in s)s[r]>=i&&(s[r]+=t);return this._uncache(!0)},u._kill=function(t,e){if(!t&&!e)return this._enabled(!1,!1);for(var i=e?this.getTweensOf(e):this.getChildren(!0,!0,!1),r=i.length,n=!1;-1<--r;)i[r]._kill(t,e)&&(n=!0);return n},u.clear=function(t){var e=this.getChildren(!1,!0,!0),i=e.length;for(this._time=this._totalTime=0;-1<--i;)e[i]._enabled(!1,!1);return!1!==t&&(this._labels={}),this._uncache(!0)},u.invalidate=function(){for(var e=this._first;e;)e.invalidate(),e=e._next;return t.prototype.invalidate.call(this)},u._enabled=function(t,i){if(t===this._gc)for(var r=this._first;r;)r._enabled(t,!0),r=r._next;return e.prototype._enabled.call(this,t,i)},u.totalTime=function(e,i,r){this._forcingPlayhead=!0;var n=t.prototype.totalTime.apply(this,arguments);return this._forcingPlayhead=!1,n},u.duration=function(t){return arguments.length?(0!==this.duration()&&0!==t&&this.timeScale(this._duration/t),this):(this._dirty&&this.totalDuration(),this._duration)},u.totalDuration=function(t){if(arguments.length)return t&&this.totalDuration()?this.timeScale(this._totalDuration/t):this;if(this._dirty){for(var e,i,r=0,n=this,s=n._last,a=999999999999;s;)e=s._prev,s._dirty&&s.totalDuration(),s._startTime>a&&n._sortChildren&&!s._paused&&!n._calculatingDuration?(n._calculatingDuration=1,n.add(s,s._startTime-s._delay),n._calculatingDuration=0):a=s._startTime,s._startTime<0&&!s._paused&&(r-=s._startTime,n._timeline.smoothChildTiming&&(n._startTime+=s._startTime/n._timeScale,n._time-=s._startTime,n._totalTime-=s._startTime,n._rawPrevTime-=s._startTime),n.shiftChildren(-s._startTime,!1,-9999999999),a=0),r<(i=s._startTime+s._totalDuration/s._timeScale)&&(r=i),s=e;n._duration=n._totalDuration=r,n._dirty=!1}return this._totalDuration},u.paused=function(e){if(!1===e&&this._paused)for(var i=this._first;i;)i._startTime===this._time&&"isPause"===i.data&&(i._rawPrevTime=0),i=i._next;return t.prototype.paused.apply(this,arguments)},u.usesFrames=function(){for(var e=this._timeline;e._timeline;)e=e._timeline;return e===t._rootFramesTimeline},u.rawTime=function(t){return t&&(this._paused||this._repeat&&0<this.time()&&this.totalProgress()<1)?this._totalTime%(this._duration+this._repeatDelay):this._paused?this._totalTime:(this._timeline.rawTime(t)-this._startTime)*this._timeScale},s}),!0),n._gsDefine("TimelineMax",["TimelineLite","TweenLite","easing.Ease"],(function(t,e,i){function r(e){t.call(this,e),this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._cycle=0,this._yoyo=!!this.vars.yoyo,this._dirty=!0}var s,a=1e-8,o=(s=e._internals).lazyTweens,l=s.lazyRender,h=n._gsDefine.globals,_=new i(null,null,1,0);return(s=r.prototype=new t).constructor=r,s.kill()._gc=!1,r.version="2.1.2",s.invalidate=function(){return this._yoyo=!!this.vars.yoyo,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),t.prototype.invalidate.call(this)},s.addCallback=function(t,i,r,n){return this.add(e.delayedCall(0,t,r,n),i)},s.removeCallback=function(t,e){if(t)if(null==e)this._kill(null,t);else for(var i=this.getTweensOf(t,!1),r=i.length,n=this._parseTimeOrLabel(e);-1<--r;)i[r]._startTime===n&&i[r]._enabled(!1,!1);return this},s.removePause=function(e){return this.removeCallback(t._internals.pauseCallback,e)},s.tweenTo=function(t,i){i=i||{};var r,n,s,a={ease:_,useFrames:this.usesFrames(),immediateRender:!1,lazy:!1},o=i.repeat&&h.TweenMax||e;for(n in i)a[n]=i[n];return a.time=this._parseTimeOrLabel(t),r=Math.abs(Number(a.time)-this._time)/this._timeScale||.001,s=new o(this,r,a),a.onStart=function(){s.target.paused(!0),s.vars.time===s.target.time()||r!==s.duration()||s.isFromTo||s.duration(Math.abs(s.vars.time-s.target.time())/s.target._timeScale).render(s.time(),!0,!0),i.onStart&&i.onStart.apply(i.onStartScope||i.callbackScope||s,i.onStartParams||[])},s},s.tweenFromTo=function(t,e,i){return i=i||{},t=this._parseTimeOrLabel(t),i.startAt={onComplete:this.seek,onCompleteParams:[t],callbackScope:this},i.immediateRender=!1!==i.immediateRender,(e=this.tweenTo(e,i)).isFromTo=1,e.duration(Math.abs(e.vars.time-t)/this._timeScale||.001)},s.render=function(t,e,i){this._gc&&this._enabled(!0,!1);var r,n,s,h,_,u,c,f,p=this,d=p._time,m=p._dirty?p.totalDuration():p._totalDuration,g=p._duration,y=p._totalTime,v=p._startTime,T=p._timeScale,x=p._rawPrevTime,b=p._paused,w=p._cycle;if(d!==p._time&&(t+=p._time-d),m-a<=t&&0<=t)p._locked||(p._totalTime=m,p._cycle=p._repeat),p._reversed||p._hasPausedChild()||(n=!0,h="onComplete",_=!!p._timeline.autoRemoveChildren,0===p._duration&&(t<=0&&-a<=t||x<0||x===a)&&x!==t&&p._first&&(_=!0,a<x)&&(h="onReverseComplete")),p._rawPrevTime=p._duration||!e||t||p._rawPrevTime===t?t:a,p._yoyo&&1&p._cycle?p._time=t=0:t=(p._time=g)+1e-4;else if(t<a)if(p._locked||(p._totalTime=p._cycle=0),p._time=0,-a<t&&(t=0),(0!==d||0===g&&x!==a&&(0<x||t<0&&0<=x)&&!p._locked)&&(h="onReverseComplete",n=p._reversed),t<0)p._active=!1,p._timeline.autoRemoveChildren&&p._reversed?(_=n=!0,h="onReverseComplete"):0<=x&&p._first&&(_=!0),p._rawPrevTime=t;else{if(p._rawPrevTime=g||!e||t||p._rawPrevTime===t?t:a,0===t&&n)for(r=p._first;r&&0===r._startTime;)r._duration||(n=!1),r=r._next;t=0,p._initted||(_=!0)}else if(0===g&&x<0&&(_=!0),p._time=p._rawPrevTime=t,p._locked||(p._totalTime=t,0!==p._repeat&&(P=g+p._repeatDelay,p._cycle=p._totalTime/P>>0,p._cycle&&p._cycle===p._totalTime/P&&y<=t&&p._cycle--,p._time=p._totalTime-p._cycle*P,p._yoyo&&1&p._cycle&&(p._time=g-p._time),p._time>g?t=(p._time=g)+1e-4:p._time<0?p._time=t=0:t=p._time)),p._hasPause&&!p._forcingPlayhead&&!e){if(d<=(t=p._time)||p._repeat&&w!==p._cycle)for(r=p._first;r&&r._startTime<=t&&!u;)r._duration||"isPause"!==r.data||r.ratio||0===r._startTime&&0===p._rawPrevTime||(u=r),r=r._next;else for(r=p._last;r&&r._startTime>=t&&!u;)r._duration||"isPause"===r.data&&0<r._rawPrevTime&&(u=r),r=r._prev;u&&(f=p._startTime+u._startTime/p._timeScale,u._startTime<g)&&(p._time=p._rawPrevTime=t=u._startTime,p._totalTime=t+p._cycle*(p._totalDuration+p._repeatDelay))}if(p._cycle!==w&&!p._locked){var P=p._yoyo&&0!=(1&w),O=P===(p._yoyo&&0!=(1&p._cycle)),S=p._totalTime,k=p._cycle,R=p._rawPrevTime,A=p._time;if(p._totalTime=w*g,p._cycle<w?P=!P:p._totalTime+=g,p._time=d,p._rawPrevTime=0===g?x-1e-4:x,p._cycle=w,p._locked=!0,p.render(d=P?0:g,e,0===g),e||p._gc||p.vars.onRepeat&&(p._cycle=k,p._locked=!1,p._callback("onRepeat")),d!==p._time)return;if(O&&(p._cycle=w,p._locked=!0,p.render(d=P?g+1e-4:-1e-4,!0,!1)),p._locked=!1,p._paused&&!b)return;p._time=A,p._totalTime=S,p._cycle=k,p._rawPrevTime=R}if(p._time!==d&&p._first||i||_||u){if(p._initted||(p._initted=!0),p._active||!p._paused&&p._totalTime!==y&&0<t&&(p._active=!0),0!==y||!p.vars.onStart||0===p._totalTime&&p._totalDuration||e||p._callback("onStart"),d<=(c=p._time))for(r=p._first;r&&(s=r._next,c===p._time)&&(!p._paused||b);)(r._active||r._startTime<=p._time&&!r._paused&&!r._gc)&&(u===r&&(p.pause(),p._pauseTime=f),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;else for(r=p._last;r&&(s=r._prev,c===p._time)&&(!p._paused||b);){if(r._active||r._startTime<=d&&!r._paused&&!r._gc){if(u===r){for(u=r._prev;u&&u.endTime()>p._time;)u.render(u._reversed?u.totalDuration()-(t-u._startTime)*u._timeScale:(t-u._startTime)*u._timeScale,e,i),u=u._prev;u=null,p.pause(),p._pauseTime=f}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}!p._onUpdate||e||(o.length&&l(),p._callback("onUpdate")),!h||p._locked||p._gc||v!==p._startTime&&T===p._timeScale||(0===p._time||m>=p.totalDuration())&&(n&&(o.length&&l(),p._timeline.autoRemoveChildren&&p._enabled(!1,!1),p._active=!1),!e)&&p.vars[h]&&p._callback(h)}else y!==p._totalTime&&p._onUpdate&&!e&&p._callback("onUpdate")},s.getActive=function(t,e,i){for(var r,n=[],s=this.getChildren(t||null==t,e||null==t,!!i),a=0,o=s.length,l=0;l<o;l++)(r=s[l]).isActive()&&(n[a++]=r);return n},s.getLabelAfter=function(t){t||0!==t&&(t=this._time);for(var e=this.getLabelsArray(),i=e.length,r=0;r<i;r++)if(e[r].time>t)return e[r].name;return null},s.getLabelBefore=function(t){null==t&&(t=this._time);for(var e=this.getLabelsArray(),i=e.length;-1<--i;)if(e[i].time<t)return e[i].name;return null},s.getLabelsArray=function(){var t,e=[],i=0;for(t in this._labels)e[i++]={time:this._labels[t],name:t};return e.sort((function(t,e){return t.time-e.time})),e},s.invalidate=function(){return this._locked=!1,t.prototype.invalidate.call(this)},s.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!=(1&this._cycle)?1-t:t)+this._cycle*(this._duration+this._repeatDelay),e):this._time/this.duration()||0},s.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this._totalTime/this.totalDuration()||0},s.totalDuration=function(e){return arguments.length?-1!==this._repeat&&e?this.timeScale(this.totalDuration()/e):this:(this._dirty&&(t.prototype.totalDuration.call(this),this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat),this._totalDuration)},s.time=function(t,e){if(!arguments.length)return this._time;this._dirty&&this.totalDuration();var i=this._duration,r=this._cycle,n=r*(i+this._repeatDelay);return i<t&&(t=i),this.totalTime(this._yoyo&&1&r?i-t+n:this._repeat?t+n:t,e)},s.repeat=function(t){return arguments.length?(this._repeat=t,this._uncache(!0)):this._repeat},s.repeatDelay=function(t){return arguments.length?(this._repeatDelay=t,this._uncache(!0)):this._repeatDelay},s.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},s.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.getLabelBefore(this._time+a)},r}),!0),e=180/Math.PI,i=[],s=[],a=[],o={},l=n._gsDefine.globals,h=function(t,e,i,r){i===r&&(i=r-(r-e)/1e6),t===e&&(e=t+(i-t)/1e6),this.a=t,this.b=e,this.c=i,this.d=r,this.da=r-t,this.ca=i-t,this.ba=e-t},_=function(t,e,i,r){var n={a:t},s={},a={},o={c:r},l=(t+e)/2,h=(l+(e=(e+i)/2))/2,_=((e=(e+(i=(i+r)/2))/2)-h)/8;return n.b=l+(t-l)/4,s.b=h+_,n.c=s.a=(n.b+s.b)/2,s.c=a.a=(h+e)/2,a.b=e-_,o.b=i+(r-i)/4,a.c=o.a=(a.b+o.b)/2,[n,s,a,o]},u=n._gsDefine.plugin({propName:"bezier",priority:-1,version:"1.3.8",API:2,global:!0,init:function(e,i,r){this._target=e,i instanceof Array&&(i={values:i}),this._func={},this._mod={},this._props=[],this._timeRes=null==i.timeResolution?6:parseInt(i.timeResolution,10);var n,s,a,o,l,_=i.values||[],u={},c=_[0],f=i.autoRotate||r.vars.orientToBezier;for(n in this._autoRotate=f?f instanceof Array?f:[["x","y","rotation",!0!==f&&Number(f)||0]]:null,c)this._props.push(n);for(a=this._props.length;-1<--a;)n=this._props[a],this._overwriteProps.push(n),s=this._func[n]="function"==typeof e[n],u[n]=s?e[n.indexOf("set")||"function"!=typeof e["get"+n.substr(3)]?n:"get"+n.substr(3)]():parseFloat(e[n]),l||u[n]!==_[0][n]&&(l=u);if(this._beziers="cubic"!==i.type&&"quadratic"!==i.type&&"soft"!==i.type?t(_,isNaN(i.curviness)?1:i.curviness,!1,"thruBasic"===i.type,i.correlate,l):function(t,e,i){var r,n,s,a,o,l,_,u,c,f,p,d={},m="cubic"===(e=e||"soft")?3:2,g="soft"===e,y=[];if(null==(t=g&&i?[i].concat(t):t)||t.length<1+m)throw"invalid Bezier data";for(c in t[0])y.push(c);for(l=y.length;-1<--l;){for(d[c=y[l]]=o=[],u=t.length,_=f=0;_<u;_++)r=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&&(o[f++]=(r+o[f-2])/2),o[f++]=r;for(u=f-m+1,_=f=0;_<u;_+=m)r=o[_],n=o[_+1],s=o[_+2],a=2==m?0:o[_+3],o[f++]=p=3==m?new h(r,n,s,a):new h(r,(2*n+r)/3,(2*n+s)/3,s);o.length=f}return d}(_,i.type,u),this._segCount=this._beziers[n].length,this._timeRes&&(c=function(t,e){var i,r,n,s,a=[],o=[],l=0,h=0,_=(e=e>>0||6)-1,u=[],c=[];for(i in t){T=v=y=x=g=m=d=p=f=S=void 0;for(var f,p,d,m,g,y,v,T,x,b=t[i],w=a,P=e,O=1/P,S=b.length;-1<--S;)for(p=(T=b[S]).a,d=T.d-p,m=T.c-p,g=T.b-p,f=0,y=1;y<=P;y++)v=f-(f=((x=O*y)*x*d+3*(v=1-x)*(x*m+v*g))*x),w[x=S*P+y-1]=(w[x]||0)+v*v}for(n=a.length,r=0;r<n;r++)l+=Math.sqrt(a[r]),c[s=r%e]=l,s==_&&(h+=l,u[s=r/e>>0]=c,o[s]=h,l=0,c=[]);return{length:h,lengths:o,segments:u}}(this._beziers,this._timeRes),this._length=c.length,this._lengths=c.lengths,this._segments=c.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),f=this._autoRotate)for(this._initialRotations=[],f[0]instanceof Array||(this._autoRotate=f=[f]),a=f.length;-1<--a;){for(o=0;o<3;o++)n=f[a][o],this._func[n]="function"==typeof e[n]&&e[n.indexOf("set")||"function"!=typeof e["get"+n.substr(3)]?n:"get"+n.substr(3)];n=f[a][2],this._initialRotations[a]=(this._func[n]?this._func[n].call(this._target):this._target[n])||0,this._overwriteProps.push(n)}return this._startRatio=r.vars.runBackwards?1:0,!0},set:function(t){var i,r,n,s,a,o,l,h,_,u=this._segCount,c=this._func,f=this._target,p=t!==this._startRatio;if(this._timeRes){if(h=this._lengths,_=this._curSeg,t*=this._length,w=this._li,t>this._l2&&w<u-1){for(l=u-1;w<l&&(this._l2=h[++w])<=t;);this._l1=h[w-1],this._li=w,this._curSeg=_=this._segments[w],this._s2=_[this._s1=this._si=0]}else if(t<this._l1&&0<w){for(;0<w&&(this._l1=h[--w])>=t;);0===w&&t<this._l1?this._l1=0:w++,this._l2=h[w],this._li=w,this._curSeg=_=this._segments[w],this._s1=_[(this._si=_.length-1)-1]||0,this._s2=_[this._si]}if(i=w,t-=this._l1,w=this._si,t>this._s2&&w<_.length-1){for(l=_.length-1;w<l&&(this._s2=_[++w])<=t;);this._s1=_[w-1],this._si=w}else if(t<this._s1&&0<w){for(;0<w&&(this._s1=_[--w])>=t;);0===w&&t<this._s1?this._s1=0:w++,this._s2=_[w],this._si=w}a=(w+(t-this._s1)/(this._s2-this._s1))*this._prec||0}else a=(t-(i=t<0?0:1<=t?u-1:u*t>>0)*(1/u))*u;for(r=1-a,w=this._props.length;-1<--w;)n=this._props[w],o=(a*a*(s=this._beziers[n][i]).da+3*r*(a*s.ca+r*s.ba))*a+s.a,this._mod[n]&&(o=this._mod[n](o,f)),c[n]?f[n](o):f[n]=o;if(this._autoRotate)for(var d,m,g,y,v,T,x,b=this._autoRotate,w=b.length;-1<--w;)n=b[w][2],T=b[w][3]||0,x=!0===b[w][4]?1:e,s=this._beziers[b[w][0]],d=this._beziers[b[w][1]],s&&d&&(s=s[i],d=d[i],m=s.a+(s.b-s.a)*a,m+=((y=s.b+(s.c-s.b)*a)-m)*a,y+=(s.c+(s.d-s.c)*a-y)*a,g=d.a+(d.b-d.a)*a,g+=((v=d.b+(d.c-d.b)*a)-g)*a,v+=(d.c+(d.d-d.c)*a-v)*a,o=p?Math.atan2(v-g,y-m)*x+T:this._initialRotations[w],this._mod[n]&&(o=this._mod[n](o,f)),c[n]?f[n](o):f[n]=o)}}),c=u.prototype,u.bezierThrough=t,u.cubicToQuadratic=_,u._autoCSS=!0,u.quadraticToCubic=function(t,e,i){return new h(t,(2*e+t)/3,(2*e+i)/3,i)},u._cssRegister=function(){var t,e,i,r=l.CSSPlugin;r&&(r=r._internals,t=r._parseToProxy,e=r._setPluginRatio,i=r.CSSPropTween,r._registerComplexSpecialProp("bezier",{parser:function(r,n,s,a,o,l){n instanceof Array&&(n={values:n}),l=new u;var h,_,c,f=n.values,p=f.length-1,d=[],m={};if(!(p<0)){for(h=0;h<=p;h++)c=t(r,f[h],a,o,l,p!==h),d[h]=c.end;for(_ in n)m[_]=n[_];m.values=d,(o=new i(r,"bezier",0,0,c.pt,2)).data=c,o.plugin=l,o.setRatio=e,0===m.autoRotate&&(m.autoRotate=!0),!m.autoRotate||m.autoRotate instanceof Array||(h=!0===m.autoRotate?0:Number(m.autoRotate),m.autoRotate=null!=c.end.left?[["left","top","rotation",h,!1]]:null!=c.end.x&&[["x","y","rotation",h,!1]]),m.autoRotate&&(a._transform||a._enableTransforms(!1),c.autoRotate=a._target._gsTransform,c.proxy.rotation=c.autoRotate.rotation||0,a._overwriteProps.push("rotation")),l._onInitTween(c.proxy,m,a._tween)}return o}}))},c._mod=function(t){for(var e,i=this._overwriteProps,r=i.length;-1<--r;)(e=t[i[r]])&&"function"==typeof e&&(this._mod[i[r]]=e)},c._kill=function(t){var e,i,r=this._props;for(e in this._beziers)if(e in t)for(delete this._beziers[e],delete this._func[e],i=r.length;-1<--i;)r[i]===e&&r.splice(i,1);if(r=this._autoRotate)for(i=r.length;-1<--i;)t[r[i][2]]&&r.splice(i,1);return this._super._kill.call(this,t)},n._gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],(function(t,e){function i(){t.call(this,"css"),this._overwriteProps.length=0,this.setRatio=i.prototype.setRatio}function s(t,e){return e.toUpperCase()}function a(t,e){return e&&et.createElementNS?et.createElementNS(e,t):et.createElement(t)}function o(t){return X.test("string"==typeof t?t:(t.currentStyle||t.style).filter||"")?parseFloat(RegExp.$1)/100:1}function l(t){n.console&&console.log(t)}function h(t,e){var i,r,n=(e=e||it).style;if(void 0!==n[t])return t;for(t=t.charAt(0).toUpperCase()+t.substr(1),i=["O","Moz","ms","Ms","Webkit"],r=5;-1<--r&&void 0===n[i[r]+t];);return 0<=r?(ot="-"+(lt=3===r?"ms":i[r]).toLowerCase()+"-",lt+t):null}function _(t){return ht.getComputedStyle(t)}function u(t,e){var i,r,n={};if(e=e||_(t))if(i=e.length)for(;-1<--i;)-1!==(r=e[i]).indexOf("-transform")&&Bt!==r||(n[r.replace(V,s)]=e.getPropertyValue(r));else for(i in e)-1!==i.indexOf("Transform")&&jt!==i||(n[i]=e[i]);else if(e=t.currentStyle||t.style)for(i in e)"string"==typeof i&&void 0===n[i]&&(n[i.replace(V,s)]=e[i]);return at||(n.opacity=o(t)),t=Qt(t,e,!1),n.rotation=t.rotation,n.skewX=t.skewX,n.scaleX=t.scaleX,n.scaleY=t.scaleY,n.x=t.x,n.y=t.y,Ut&&(n.z=t.z,n.rotationX=t.rotationX,n.rotationY=t.rotationY,n.scaleZ=t.scaleZ),n.filters&&delete n.filters,n}function c(t,e,i,r,n){var s,a,o,l={},h=t.style;for(a in i)"cssText"===a||"length"!==a&&isNaN(a)&&(e[a]!==(s=i[a])||n&&n[a])&&-1===a.indexOf("Origin")&&("number"==typeof s||"string"==typeof s)&&(l[a]="auto"!==s||"left"!==a&&"top"!==a?""!==s&&"auto"!==s&&"none"!==s||"string"!=typeof e[a]||""===e[a].replace(N,"")?s:0:ct(t,a),void 0!==h[a])&&(o=new Tt(h,a,h[a],o));if(r)for(a in r)"className"!==a&&(l[a]=r[a]);return{difs:l,firstMPT:o}}function f(t,e){if("contain"===t||"auto"===t||"auto auto"===t)return t+" ";var i,r=(t=null!=t&&""!==t?t:"0 0").split(" "),n=-1!==t.indexOf("left")?"0%":-1!==t.indexOf("right")?"100%":r[0],s=-1!==t.indexOf("top")?"0%":-1!==t.indexOf("bottom")?"100%":r[1];if(3<r.length&&!e){for(r=t.split(", ").join(",").split(","),t=[],i=0;i<r.length;i++)t.push(f(r[i]));return t.join(",")}return null==s?s="center"===n?"50%":"0":"center"===s&&(s="50%"),t=(n="center"===n||isNaN(parseFloat(n))&&-1===(n+"").indexOf("=")?"50%":n)+" "+s+(2<r.length?" "+r[2]:""),e&&(e.oxp=-1!==n.indexOf("%"),e.oyp=-1!==s.indexOf("%"),e.oxr="="===n.charAt(1),e.oyr="="===s.charAt(1),e.ox=parseFloat(n.replace(N,"")),e.oy=parseFloat(s.replace(N,"")),e.v=t),e||t}function p(t,e){return"string"==typeof(t="function"==typeof t?t(C,A):t)&&"="===t.charAt(1)?parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2)):parseFloat(t)-parseFloat(e)||0}function d(t,e){var i="string"==typeof(t="function"==typeof t?t(C,A):t)&&"="===t.charAt(1);return null==(t="string"==typeof t&&"v"===t.charAt(t.length-2)?(i?t.substr(0,2):0)+window["inner"+("vh"===t.substr(-2)?"Height":"Width")]*(parseFloat(i?t.substr(2):t)/100):t)?e:i?parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2))+e:parseFloat(t)||0}function m(t,e,i,r){var n,s,a;return(s=null==(t="function"==typeof t?t(C,A):t)?e:"number"==typeof t?t:(n=360,s=t.split("_"),a=((a="="===t.charAt(1))?parseInt(t.charAt(0)+"1",10)*parseFloat(s[0].substr(2)):parseFloat(s[0]))*(-1===t.indexOf("rad")?1:J)-(a?0:e),s.length&&(r&&(r[i]=e+a),-1!==t.indexOf("short")&&(a%=n)!=a%180&&(a=a<0?a+n:a-n),-1!==t.indexOf("_cw")&&a<0?a=(a+3599999999640)%n-(a/n|0)*n:-1!==t.indexOf("ccw")&&0<a&&(a=(a-3599999999640)%n-(a/n|0)*n)),e+a))<1e-6&&-1e-6<s?0:s}function g(t,e,i){return 255*(6*(t=t<0?t+1:1<t?t-1:t)<1?e+(i-e)*t*6:t<.5?i:3*t<2?e+(i-e)*(2/3-t)*6:e)+.5|0}function y(t,e){var i,r,n,s=t.match(gt)||[],a=0,o="";if(!s.length)return t;for(i=0;i<s.length;i++)r=s[i],a+=(n=t.substr(a,t.indexOf(r,a)-a)).length+r.length,3===(r=mt(r,e)).length&&r.push(1),o+=n+(e?"hsla("+r[0]+","+r[1]+"%,"+r[2]+"%,"+r[3]:"rgba("+r.join(","))+")";return o+t.substr(a)}var v,T,x,b,w,P,O,S,k,R,A,C,M=n._gsDefine.globals,D={},F=i.prototype=new t("css"),z=((F.constructor=i).version="2.1.0",i.API=2,i.defaultTransformPerspective=0,i.defaultSkewType="compensated",i.defaultSmoothOrigin=!0,i.suffixMap={top:F="px",right:F,bottom:F,left:F,width:F,height:F,fontSize:F,padding:F,margin:F,perspective:F,lineHeight:""},/(?:\-|\.|\b)(\d|\.|e\-)+/g),E=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,I=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,N=/(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g,L=/(?:\d|\-|\+|=|#|\.)*/g,X=/opacity *= *([^)]*)/i,j=/opacity:([^;]*)/i,B=/alpha\(opacity *=.+?\)/i,Y=/^(rgb|hsl)/,U=/([A-Z])/g,V=/-([a-z])/gi,q=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,Z=/(?:Left|Right|Width)/i,W=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,G=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,$=/,(?=[^\)]*(?:\(|$))/gi,H=/[\s,\(]/i,Q=Math.PI/180,J=180/Math.PI,K={},tt={style:{}},et=n.document||{createElement:function(){return tt}},it=a("div"),rt=a("img"),nt=i._internals={_specialProps:D},st=(n.navigator||{}).userAgent||"",at=(It=st.indexOf("Android"),zt=a("a"),O=-1!==st.indexOf("Safari")&&-1===st.indexOf("Chrome")&&(-1===It||3<parseFloat(st.substr(It+8,2))),k=O&&parseFloat(st.substr(st.indexOf("Version/")+8,2))<6,S=-1!==st.indexOf("Firefox"),(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(st)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(st))&&(R=parseFloat(RegExp.$1)),!!zt&&(zt.style.cssText="top:1px;opacity:.55;",/^0.55/.test(zt.style.opacity))),ot="",lt="",ht="undefined"!=typeof window?window:et.defaultView||{getComputedStyle:function(){}},_t=i.getStyle=function(t,e,i,r,n){var s;return at||"opacity"!==e?(!r&&t.style[e]?s=t.style[e]:(i=i||_(t))?s=i[e]||i.getPropertyValue(e)||i.getPropertyValue(e.replace(U,"-$1").toLowerCase()):t.currentStyle&&(s=t.currentStyle[e]),null==n||s&&"none"!==s&&"auto"!==s&&"auto auto"!==s?s:n):o(t)},ut=nt.convertToPixels=function(t,r,n,s,a){if("px"===s||!s&&"lineHeight"!==r)return n;if("auto"===s||!n)return 0;var o,l,h,u=Z.test(r),c=t,f=it.style,p=n<0,d=1===n;if(p&&(n=-n),d&&(n*=100),"lineHeight"!==r||s)if("%"===s&&-1!==r.indexOf("border"))o=n/100*(u?t.clientWidth:t.clientHeight);else{if(f.cssText="border:0 solid red;position:"+_t(t,"position")+";line-height:0;","%"!==s&&c.appendChild&&"v"!==s.charAt(0)&&"rem"!==s)f[u?"borderLeftWidth":"borderTopWidth"]=n+s;else{if(c=t.parentNode||et.body,-1!==_t(c,"display").indexOf("flex")&&(f.position="absolute"),l=c._gsCache,h=e.ticker.frame,l&&u&&l.time===h)return l.width*n/100;f[u?"width":"height"]=n+s}c.appendChild(it),o=parseFloat(it[u?"offsetWidth":"offsetHeight"]),c.removeChild(it),u&&"%"===s&&!1!==i.cacheWidths&&((l=c._gsCache=c._gsCache||{}).time=h,l.width=o/n*100),0!==o||a||(o=ut(t,r,n,s,!0))}else l=_(t).lineHeight,t.style.lineHeight=n,o=parseFloat(_(t).lineHeight),t.style.lineHeight=l;return d&&(o/=100),p?-o:o},ct=nt.calculateOffset=function(t,e,i){var r;return"absolute"!==_t(t,"position",i)?0:(i=_t(t,"margin"+(r="left"===e?"Left":"Top"),i),t["offset"+r]-(ut(t,e,parseFloat(i),i.replace(L,""))||0))},ft={width:["Left","Right"],height:["Top","Bottom"]},pt=["marginLeft","marginRight","marginTop","marginBottom"],dt={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},mt=i.parseColor=function(t,e){var i,r,n,s,a,o,l,h;if(t)if("number"==typeof t)i=[t>>16,t>>8&255,255&t];else{if(","===t.charAt(t.length-1)&&(t=t.substr(0,t.length-1)),dt[t])i=dt[t];else if("#"===t.charAt(0))4===t.length&&(t="#"+(r=t.charAt(1))+r+(n=t.charAt(2))+n+(s=t.charAt(3))+s),i=[(t=parseInt(t.substr(1),16))>>16,t>>8&255,255&t];else if("hsl"===t.substr(0,3))if(i=h=t.match(z),e){if(-1!==t.indexOf("="))return t.match(E)}else a=Number(i[0])%360/360,o=Number(i[1])/100,r=2*(l=Number(i[2])/100)-(n=l<=.5?l*(o+1):l+o-l*o),3<i.length&&(i[3]=Number(i[3])),i[0]=g(a+1/3,r,n),i[1]=g(a,r,n),i[2]=g(a-1/3,r,n);else i=t.match(z)||dt.transparent;i[0]=Number(i[0]),i[1]=Number(i[1]),i[2]=Number(i[2]),3<i.length&&(i[3]=Number(i[3]))}else i=dt.black;return e&&!h&&(r=i[0]/255,n=i[1]/255,s=i[2]/255,l=((t=Math.max(r,n,s))+(e=Math.min(r,n,s)))/2,t===e?a=o=0:(h=t-e,o=.5<l?h/(2-t-e):h/(t+e),a=t===r?(n-s)/h+(n<s?6:0):t===n?(s-r)/h+2:(r-n)/h+4,a*=60),i[0]=a+.5|0,i[1]=100*o+.5|0,i[2]=100*l+.5|0),i},gt="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3}){1,2}\\b";for(F in dt)gt+="|"+F+"\\b";function yt(t,e,i,r){var n,s,a,o,l,h,_,u;return null==t?function(t){return t}:(n=e?(t.match(gt)||[""])[0]:"",s=t.split(n).join("").match(I)||[],a=t.substr(0,t.indexOf(s[0])),o=")"===t.charAt(t.length-1)?")":"",l=-1!==t.indexOf(" ")?" ":",",h=s.length,_=0<h?s[0].replace(z,""):"",h?u=e?function(t){var e,c,f,p;if("number"==typeof t)t+=_;else if(r&&$.test(t)){for(p=t.replace($,"|").split("|"),f=0;f<p.length;f++)p[f]=u(p[f]);return p.join(",")}if(e=(t.match(gt)||[n])[0],f=(c=t.split(e).join("").match(I)||[]).length,h>f--)for(;++f<h;)c[f]=i?c[(f-1)/2|0]:s[f];return a+c.join(l)+l+e+o+(-1!==t.indexOf("inset")?" inset":"")}:function(t){var e,n,c;if("number"==typeof t)t+=_;else if(r&&$.test(t)){for(n=t.replace($,"|").split("|"),c=0;c<n.length;c++)n[c]=u(n[c]);return n.join(",")}if(c=(e=t.match(I)||[]).length,h>c--)for(;++c<h;)e[c]=i?e[(c-1)/2|0]:s[c];return a+e.join(l)+o}:function(t){return t})}function vt(t){return t=t.split(","),function(e,i,r,n,s,a,o){var l,h=(i+"").split(" ");for(o={},l=0;l<4;l++)o[t[l]]=h[l]=h[l]||h[(l-1)/2>>0];return n.parse(e,o,s,a)}}function Tt(t,e,i,r,n){this.t=t,this.p=e,this.v=i,this.r=n,r&&((r._prev=this)._next=r)}function xt(t,e,i,r,n,s){return(t=new bt(t,e,i,r-i,n,-1,s)).b=i,t.e=t.xs0=r,t}gt=new RegExp(gt+")","gi"),i.colorStringFilter=function(t){var e=t[0]+" "+t[1];gt.test(e)&&(e=-1!==e.indexOf("hsl(")||-1!==e.indexOf("hsla("),t[0]=y(t[0],e),t[1]=y(t[1],e)),gt.lastIndex=0},e.defaultStringFilter||(e.defaultStringFilter=i.colorStringFilter),nt._setPluginRatio=function(t){this.plugin.setRatio(t);for(var e,i,r,n,s,a=this.data,o=a.proxy,l=a.firstMPT;l;)e=o[l.v],l.r?e=l.r(e):e<1e-6&&-1e-6<e&&(e=0),l.t[l.p]=e,l=l._next;if(a.autoRotate&&(a.autoRotate.rotation=a.mod?a.mod.call(this._tween,o.rotation,this.t,this._tween):o.rotation),1===t||0===t)for(l=a.firstMPT,s=1===t?"e":"b";l;){if((i=l.t).type){if(1===i.type){for(n=i.xs0+i.s+i.xs1,r=1;r<i.l;r++)n+=i["xn"+r]+i["xs"+(r+1)];i[s]=n}}else i[s]=i.s+i.xs0;l=l._next}},nt._parseToProxy=function(t,e,i,r,n,s){var a,o,l,h,_=r,u={},c={},f=i._transform,p=K;for(i._transform=null,K=e,r=t=i.parse(t,e,r,n),K=p,s&&(i._transform=f,_)&&(_._prev=null,_._prev)&&(_._prev._next=null);r&&r!==_;){if(r.type<=1&&(c[o=r.p]=r.s+r.c,u[o]=r.s,s||(h=new Tt(r,"s",o,h,r.r),r.c=0),1===r.type))for(a=r.l;0<--a;)c[o=r.p+"_"+(l="xn"+a)]=r.data[l],u[o]=r[l],s||(h=new Tt(r,l,o,h,r.rxp[l]));r=r._next}return{proxy:u,end:c,firstMPT:h,pt:t}};var bt=nt.CSSPropTween=function(t,e,i,r,n,s,a,o,l,h,_){this.t=t,this.p=e,this.s=i,this.c=r,this.n=a||e,t instanceof bt||b.push(this.n),this.r=o&&("function"==typeof o?o:Math.round),this.type=s||0,l&&(this.pr=l,v=!0),this.b=void 0===h?i:h,this.e=void 0===_?i+r:_,n&&((this._next=n)._prev=this)},wt=i.parseComplex=function(t,e,r,n,s,a,o,l,h,_){r=r||a||"","function"==typeof n&&(n=n(C,A)),o=new bt(t,e,0,0,o,_?2:1,null,!1,l,r,n),n+="",s&>.test(n+r)&&(i.colorStringFilter(n=[r,n]),r=n[0],n=n[1]);var u,c,f,d,m,g,y,v,T,x,b,P,O=r.split(", ").join(",").split(" "),S=n.split(", ").join(",").split(" "),k=O.length,R=!1!==w;for(-1===n.indexOf(",")&&-1===r.indexOf(",")||(S=(-1!==(n+r).indexOf("rgb")||-1!==(n+r).indexOf("hsl")?(O=O.join(" ").replace($,", ").split(" "),S.join(" ").replace($,", ")):(O=O.join(" ").split(",").join(", ").split(" "),S.join(" ").split(",").join(", "))).split(" "),k=O.length),k!==S.length&&(k=(O=(a||"").split(" ")).length),o.plugin=h,o.setRatio=_,u=gt.lastIndex=0;u<k;u++)if(d=O[u],m=S[u]+"",(P=parseFloat(d))||0===P)o.appendXtra("",P,p(m,P),m.replace(E,""),R&&-1!==m.indexOf("px")&&Math.round,!0);else if(s&>.test(d))b=")"+((b=m.indexOf(")")+1)?m.substr(b):""),P=-1!==m.indexOf("hsl")&&at,T=m,d=mt(d,P),m=mt(m,P),(v=6<d.length+m.length)&&!at&&0===m[3]?(o["xs"+o.l]+=o.l?" transparent":"transparent",o.e=o.e.split(S[u]).join("transparent")):(at||(v=!1),P?o.appendXtra(T.substr(0,T.indexOf("hsl"))+(v?"hsla(":"hsl("),d[0],p(m[0],d[0]),",",!1,!0).appendXtra("",d[1],p(m[1],d[1]),"%,",!1).appendXtra("",d[2],p(m[2],d[2]),v?"%,":"%"+b,!1):o.appendXtra(T.substr(0,T.indexOf("rgb"))+(v?"rgba(":"rgb("),d[0],m[0]-d[0],",",Math.round,!0).appendXtra("",d[1],m[1]-d[1],",",Math.round).appendXtra("",d[2],m[2]-d[2],v?",":b,Math.round),v&&(d=d.length<4?1:d[3],o.appendXtra("",d,(m.length<4?1:m[3])-d,b,!1))),gt.lastIndex=0;else if(g=d.match(z)){if(!(y=m.match(E))||y.length!==g.length)return o;for(c=f=0;c<g.length;c++)x=g[c],T=d.indexOf(x,f),o.appendXtra(d.substr(f,T-f),Number(x),p(y[c],x),"",R&&"px"===d.substr(T+x.length,2)&&Math.round,0===c),f=T+x.length;o["xs"+o.l]+=d.substr(f)}else o["xs"+o.l]+=o.l||o["xs"+o.l]?" "+m:m;if(-1!==n.indexOf("=")&&o.data){for(b=o.xs0+o.data.s,u=1;u<o.l;u++)b+=o["xs"+u]+o.data["xn"+u];o.e=b+o["xs"+u]}return o.l||(o.type=-1,o.xs0=o.e),o.xfirst||o},Pt=9;for((F=bt.prototype).l=F.pr=0;0<--Pt;)F["xn"+Pt]=0,F["xs"+Pt]="";function Ot(t,e){this.p=(e=e||{}).prefix&&h(t)||t,(D[t]=D[this.p]=this).format=e.formatter||yt(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.allowFunc=e.allowFunc,this.pr=e.priority||0}function St(t,e,i){var r,n=et.createElementNS("http://www.w3.org/2000/svg",t),s=/([a-z])([A-Z])/g;for(r in i)n.setAttributeNS(null,r.replace(s,"$1-$2").toLowerCase(),i[r]);return e.appendChild(n),n}function kt(t,e,r,n,s,a){var o,l,h,_,u,c,p,d,m,g,y,v,T=t._gsTransform,x=Rt(t,!0);T&&(y=T.xOrigin,v=T.yOrigin),(!n||(o=n.split(" ")).length<2)&&(0===(u=t.getBBox()).x&&0===u.y&&u.width+u.height===0&&(u={x:parseFloat(t.hasAttribute("x")?t.getAttribute("x"):t.hasAttribute("cx")?t.getAttribute("cx"):0)||0,y:parseFloat(t.hasAttribute("y")?t.getAttribute("y"):t.hasAttribute("cy")?t.getAttribute("cy"):0)||0,width:0,height:0}),o=[(-1!==(e=f(e).split(" "))[0].indexOf("%")?parseFloat(e[0])/100*u.width:parseFloat(e[0]))+u.x,(-1!==e[1].indexOf("%")?parseFloat(e[1])/100*u.height:parseFloat(e[1]))+u.y]),r.xOrigin=e=parseFloat(o[0]),r.yOrigin=_=parseFloat(o[1]),n&&x!==Ht&&(n=x[0],u=x[1],c=x[2],p=x[3],d=x[4],m=x[5],g=n*p-u*c)&&(h=e*(-u/g)+_*(n/g)-(n*m-u*d)/g,e=r.xOrigin=o[0]=l=e*(p/g)+_*(-c/g)+(c*m-p*d)/g,_=r.yOrigin=o[1]=h),T&&(a&&(r.xOffset=T.xOffset,r.yOffset=T.yOffset,T=r),s||!1!==s&&!1!==i.defaultSmoothOrigin?(T.xOffset+=(l=e-y)*x[0]+(h=_-v)*x[2]-l,T.yOffset+=l*x[1]+h*x[3]-h):T.xOffset=T.yOffset=0),a||t.setAttribute("data-svg-origin",o.join(" "))}function Rt(t,e){var i,r,n,s,a,o,l,h=t._gsTransform||new Vt,_=t.style;if(jt?r=_t(t,Bt,null,!0):t.currentStyle&&(r=(r=t.currentStyle.filter.match(W))&&4===r.length?[r[0].substr(4),Number(r[2].substr(4)),Number(r[1].substr(4)),r[3].substr(4),h.x||0,h.y||0].join(","):""),i=!r||"none"===r||"matrix(1, 0, 0, 1, 0, 0)"===r,jt&&i&&!t.offsetParent&&(s=_.display,_.display="block",(l=t.parentNode)&&t.offsetParent||(a=1,o=t.nextSibling,Zt.appendChild(t)),i=!(r=_t(t,Bt,null,!0))||"none"===r||"matrix(1, 0, 0, 1, 0, 0)"===r,s?_.display=s:Kt(_,"display"),a)&&(o?l.insertBefore(t,o):l?l.appendChild(t):Zt.removeChild(t)),(h.svg||t.getCTM&&$t(t))&&(i&&-1!==(_[jt]+"").indexOf("matrix")&&(r=_[jt],i=0),n=t.getAttribute("transform"),i)&&n&&(r="matrix("+(n=t.transform.baseVal.consolidate().matrix).a+","+n.b+","+n.c+","+n.d+","+n.e+","+n.f+")",i=0),i)return Ht;for(n=(r||"").match(z)||[],Pt=n.length;-1<--Pt;)s=Number(n[Pt]),n[Pt]=(a=s-(s|=0))?(1e5*a+(a<0?-.5:.5)|0)/1e5+s:s;return e&&6<n.length?[n[0],n[1],n[4],n[5],n[12],n[13]]:n}function At(t){var e,i=this.data,r=(a=-i.rotation*Q)+i.skewX*Q,n=1e5,s=(Math.cos(a)*i.scaleX*n|0)/n,a=(Math.sin(a)*i.scaleX*n|0)/n,o=(Math.sin(r)*-i.scaleY*n|0)/n,l=(r=(Math.cos(r)*i.scaleY*n|0)/n,this.t.style),h=this.t.currentStyle;if(h){e=a,a=-o,o=-e,n=h.filter,l.filter="";var _=this.t.offsetWidth,u=this.t.offsetHeight,c="absolute"!==h.position,f="progid:DXImageTransform.Microsoft.Matrix(M11="+s+", M12="+a+", M21="+o+", M22="+r,p=i.x+_*i.xPercent/100,d=i.y+u*i.yPercent/100;if(null!=i.ox&&(p+=(v=(i.oxp?_*i.ox*.01:i.ox)-_/2)-(v*s+(T=(i.oyp?u*i.oy*.01:i.oy)-u/2)*a),d+=T-(v*o+T*r)),f+=c?", Dx="+((v=_/2)-(v*s+(T=u/2)*a)+p)+", Dy="+(T-(v*o+T*r)+d)+")":", sizingMethod='auto expand')",-1!==n.indexOf("DXImageTransform.Microsoft.Matrix(")?l.filter=n.replace(G,f):l.filter=f+" "+n,0!==t&&1!==t||1!=s||0!=a||0!=o||1!=r||c&&-1===f.indexOf("Dx=0, Dy=0")||X.test(n)&&100!==parseFloat(RegExp.$1)||-1===n.indexOf(n.indexOf("Alpha"))&&l.removeAttribute("filter"),!c){var m,g,y=R<8?1:-1,v=i.ieOffsetX||0,T=i.ieOffsetY||0;for(i.ieOffsetX=Math.round((_-((s<0?-s:s)*_+(a<0?-a:a)*u))/2+p),i.ieOffsetY=Math.round((u-((r<0?-r:r)*u+(o<0?-o:o)*_))/2+d),Pt=0;Pt<4;Pt++)g=(e=-1!==(g=h[m=pt[Pt]]).indexOf("px")?parseFloat(g):ut(this.t,m,parseFloat(g),g.replace(L,""))||0)!==i[m]?Pt<2?-i.ieOffsetX:-i.ieOffsetY:Pt<2?v-i.ieOffsetX:T-i.ieOffsetY,l[m]=(i[m]=Math.round(e-g*(0===Pt||2===Pt?1:y)))+"px"}}}function Ct(t){var e,i=this.t,r=i.filter||_t(this.data,"filter")||"";(e=100==(t=this.s+this.c*t|0)?-1===r.indexOf("atrix(")&&-1===r.indexOf("radient(")&&-1===r.indexOf("oader(")?(i.removeAttribute("filter"),!_t(this.data,"filter")):(i.filter=r.replace(B,""),!0):e)||(this.xn1&&(i.filter=r=r||"alpha(opacity="+t+")"),-1===r.indexOf("pacity")?0==t&&this.xn1||(i.filter=r+" alpha(opacity="+t+")"):i.filter=r.replace(X,"opacity="+t))}function Mt(t){if(this.t._gsClassPT=this,1===t||0===t){this.t.setAttribute("class",0===t?this.b:this.e);for(var e=this.data,i=this.t.style;e;)e.v?i[e.p]=e.v:Kt(i,e.p),e=e._next;1===t&&this.t._gsClassPT===this&&(this.t._gsClassPT=null)}else this.t.getAttribute("class")!==this.e&&this.t.setAttribute("class",this.e)}function Dt(t){if((1===t||0===t)&&this.data._totalTime===this.data._totalDuration&&"isFromStart"!==this.data.data){var e,i,r,n,s=this.t.style,a=D.transform.parse;if("all"===this.e)n=!(s.cssText="");else for(r=(e=this.e.split(" ").join("").split(",")).length;-1<--r;)i=e[r],D[i]&&(D[i].parse===a?n=!0:i="transformOrigin"===i?Yt:D[i].p),Kt(s,i);n&&(Kt(s,jt),t=this.t._gsTransform)&&(t.svg&&(this.t.removeAttribute("data-svg-origin"),this.t.removeAttribute("transform")),delete this.t._gsTransform)}}F.xs0="",F._next=F._prev=F.xfirst=F.data=F.plugin=F.setRatio=F.rxp=null,F.appendXtra=function(t,e,i,r,n,s){var a=this,o=a.l;return a["xs"+o]+=s&&(o||a["xs"+o])?" "+t:t||"",i||0===o||a.plugin?(a.l++,a.type=a.setRatio?2:1,a["xs"+a.l]=r||"",0<o?(a.data["xn"+o]=e+i,a.rxp["xn"+o]=n,a["xn"+o]=e,a.plugin||(a.xfirst=new bt(a,"xn"+o,e,i,a.xfirst||a,0,a.n,n,a.pr),a.xfirst.xs0=0)):(a.data={s:e+i},a.rxp={},a.s=e,a.c=i,a.r=n)):a["xs"+o]+=e+(r||""),a};var Ft,zt,Et,It,Nt=nt._registerComplexSpecialProp=function(t,e,i){"object"!==r(e)&&(e={parser:i});var n,s=t.split(","),a=e.defaultValue;for(i=i||[a],n=0;n<s.length;n++)e.prefix=0===n&&e.prefix,e.defaultValue=i[n]||a,new Ot(s[n],e)},Lt=nt._registerPluginProp=function(t){var e;D[t]||(e=t.charAt(0).toUpperCase()+t.substr(1)+"Plugin",Nt(t,{parser:function(t,i,r,n,s,a,o){var h=M.com.greensock.plugins[e];return h?(h._cssRegister(),D[r].parse(t,i,r,n,s,a,o)):(l("Error: "+e+" js file not loaded."),s)}}))},Xt=((F=Ot.prototype).parseComplex=function(t,e,i,r,n,s){var a,o,l,h,_,u,c=this.keyword;if(this.multi&&($.test(i)||$.test(e)?(o=e.replace($,"|").split("|"),l=i.replace($,"|").split("|")):c&&(o=[e],l=[i])),l){for(h=(l.length>o.length?l:o).length,a=0;a<h;a++)e=o[a]=o[a]||this.dflt,i=l[a]=l[a]||this.dflt,c&&(_=e.indexOf(c))!==(u=i.indexOf(c))&&(-1===u?o[a]=o[a].split(c).join(""):-1===_&&(o[a]+=" "+c));e=o.join(", "),i=l.join(", ")}return wt(t,this.p,e,i,this.clrs,this.dflt,r,this.pr,n,s)},F.parse=function(t,e,i,r,n,s,a){return this.parseComplex(t.style,this.format(_t(t,this.p,x,!1,this.dflt)),this.format(e),n,s)},i.registerSpecialProp=function(t,e,i){Nt(t,{parser:function(t,r,n,s,a,o,l){return(a=new bt(t,n,0,0,a,2,n,!1,i)).plugin=o,a.setRatio=e(t,r,s._tween,n),a},priority:i})},i.useSVGTransformAttr=!0,"scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent".split(",")),jt=h("transform"),Bt=ot+"transform",Yt=h("transformOrigin"),Ut=null!==h("perspective"),Vt=nt.Transform=function(){this.perspective=parseFloat(i.defaultTransformPerspective)||0,this.force3D=!1!==i.defaultForce3D&&Ut&&(i.defaultForce3D||"auto")},qt=n.SVGElement,Zt=et.documentElement||{},Wt=(It=R||/Android/i.test(st)&&!n.chrome,et.createElementNS&&!It&&(zt=St("svg",Zt),Et=(st=St("rect",zt,{width:100,height:50,x:100})).getBoundingClientRect().width,st.style[Yt]="50% 50%",st.style[jt]="scaleX(0.5)",It=Et===st.getBoundingClientRect().width&&!(S&&Ut),Zt.removeChild(zt)),It),Gt=function t(e){var i,r=a("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),n=this.parentNode,s=this.nextSibling,o=this.style.cssText;if(Zt.appendChild(r),r.appendChild(this),this.style.display="block",e)try{i=this.getBBox(),this._originalGetBBox=this.getBBox,this.getBBox=t}catch(t){}else this._originalGetBBox&&(i=this._originalGetBBox());return s?n.insertBefore(this,s):n.appendChild(this),Zt.removeChild(r),this.style.cssText=o,i},$t=function(t){return!(!qt||!t.getCTM||t.parentNode&&!t.ownerSVGElement||!function(t){try{return t.getBBox()}catch(e){return Gt.call(t,!0)}}(t))},Ht=[1,0,0,1,0,0],Qt=nt.getTransform=function(t,r,n,s){if(t._gsTransform&&n&&!s)return t._gsTransform;var a,o,l,h,_,u,c,f,p,d,m,g,y,v,T,x,b,w,P,O,S,k,R=n&&t._gsTransform||new Vt,A=R.scaleX<0,C=Ut&&(parseFloat(_t(t,Yt,r,!1,"0 0 0").split(" ")[2])||R.zOrigin)||0,M=parseFloat(i.defaultTransformPerspective)||0;if(R.svg=!(!t.getCTM||!$t(t)),R.svg&&(kt(t,_t(t,Yt,r,!1,"50% 50%")+"",R,t.getAttribute("data-svg-origin")),Ft=i.useSVGTransformAttr||Wt),(r=Rt(t))!==Ht)for(a in 16===r.length?(o=r[0],l=r[1],h=r[2],P=r[3],_=r[4],u=r[5],c=r[6],w=r[7],f=r[8],p=r[9],d=r[10],m=r[12],g=r[13],y=r[14],v=r[11],T=Math.atan2(c,d),R.zOrigin&&(m=f*(y=-R.zOrigin)-r[12],g=p*y-r[13],y=d*y+R.zOrigin-r[14]),R.rotationX=T*J,T&&(k=_*(O=Math.cos(-T))+f*(S=Math.sin(-T)),x=u*O+p*S,b=c*O+d*S,f=_*-S+f*O,p=u*-S+p*O,d=c*-S+d*O,v=w*-S+v*O,_=k,u=x,c=b),T=Math.atan2(-h,d),R.rotationY=T*J,T&&(x=l*(O=Math.cos(-T))-p*(S=Math.sin(-T)),b=h*O-d*S,p=l*S+p*O,d=h*S+d*O,v=P*S+v*O,o=k=o*O-f*S,l=x,h=b),T=Math.atan2(l,o),R.rotation=T*J,T&&(k=o*(O=Math.cos(T))+l*(S=Math.sin(T)),x=_*O+u*S,b=f*O+p*S,l=l*O-o*S,u=u*O-_*S,p=p*O-f*S,o=k,_=x,f=b),R.rotationX&&359.9<Math.abs(R.rotationX)+Math.abs(R.rotation)&&(R.rotationX=R.rotation=0,R.rotationY=180-R.rotationY),T=Math.atan2(_,u),R.scaleX=(1e5*Math.sqrt(o*o+l*l+h*h)+.5|0)/1e5,R.scaleY=(1e5*Math.sqrt(u*u+c*c)+.5|0)/1e5,R.scaleZ=(1e5*Math.sqrt(f*f+p*p+d*d)+.5|0)/1e5,o/=R.scaleX,_/=R.scaleY,l/=R.scaleX,u/=R.scaleY,2e-5<Math.abs(T)?(R.skewX=T*J,_=0,"simple"!==R.skewType&&(R.scaleY*=1/Math.cos(T))):R.skewX=0,R.perspective=v?1/(v<0?-v:v):0,R.x=m,R.y=g,R.z=y,R.svg&&(R.x-=R.xOrigin-(R.xOrigin*o-R.yOrigin*_),R.y-=R.yOrigin-(R.yOrigin*l-R.xOrigin*u))):Ut&&!s&&r.length&&R.x===r[4]&&R.y===r[5]&&(R.rotationX||R.rotationY)||(P=(w=6<=r.length)?r[0]:1,O=r[1]||0,S=r[2]||0,k=w?r[3]:1,R.x=r[4]||0,R.y=r[5]||0,x=Math.sqrt(P*P+O*O),b=Math.sqrt(k*k+S*S),h=P||O?Math.atan2(O,P)*J:R.rotation||0,c=S||k?Math.atan2(S,k)*J+h:R.skewX||0,R.scaleX=x,R.scaleY=b,R.rotation=h,R.skewX=c,Ut&&(R.rotationX=R.rotationY=R.z=0,R.perspective=M,R.scaleZ=1),R.svg&&(R.x-=R.xOrigin-(R.xOrigin*P+R.yOrigin*S),R.y-=R.yOrigin-(R.xOrigin*O+R.yOrigin*k))),90<Math.abs(R.skewX)&&Math.abs(R.skewX)<270&&(A?(R.scaleX*=-1,R.skewX+=R.rotation<=0?180:-180,R.rotation+=R.rotation<=0?180:-180):(R.scaleY*=-1,R.skewX+=R.skewX<=0?180:-180)),R.zOrigin=C,R)R[a]<2e-5&&-2e-5<R[a]&&(R[a]=0);return n&&(t._gsTransform=R).svg&&(Ft&&t.style[jt]?e.delayedCall(.001,(function(){Kt(t.style,jt)})):!Ft&&t.getAttribute("transform")&&e.delayedCall(.001,(function(){t.removeAttribute("transform")}))),R},Jt=nt.set3DTransformRatio=nt.setTransformRatio=function(t){var e,i,r,n,s,a,o,l,h,_,u,c,f,p,d,m,g,y,v=this.data,T=this.t.style,x=v.rotation,b=v.rotationX,w=v.rotationY,P=v.scaleX,O=v.scaleY,k=v.scaleZ,R=v.x,A=v.y,C=v.z,M=v.svg,D=v.perspective,F=v.force3D,z=v.skewY,E=v.skewX;if(z&&(E+=z,x+=z),!((1!==t&&0!==t||"auto"!==F||this.tween._totalTime!==this.tween._totalDuration&&this.tween._totalTime)&&F||C||D||w||b||1!==k)||Ft&&M||!Ut)x||E||M?(x*=Q,g=E*Q,y=1e5,i=Math.cos(x)*P,s=Math.sin(x)*P,r=Math.sin(x-g)*-O,a=Math.cos(x-g)*O,g&&"simple"===v.skewType&&(e=Math.tan(g-z*Q),r*=e=Math.sqrt(1+e*e),a*=e,z)&&(e=Math.tan(z*Q),i*=e=Math.sqrt(1+e*e),s*=e),M&&(R+=v.xOrigin-(v.xOrigin*i+v.yOrigin*r)+v.xOffset,A+=v.yOrigin-(v.xOrigin*s+v.yOrigin*a)+v.yOffset,Ft&&(v.xPercent||v.yPercent)&&(f=this.t.getBBox(),R+=.01*v.xPercent*f.width,A+=.01*v.yPercent*f.height),R<(f=1e-6)&&-f<R&&(R=0),A<f)&&-f<A&&(A=0),p=(i*y|0)/y+","+(s*y|0)/y+","+(r*y|0)/y+","+(a*y|0)/y+","+R+","+A+")",M&&Ft?this.t.setAttribute("transform","matrix("+p):T[jt]=(v.xPercent||v.yPercent?"translate("+v.xPercent+"%,"+v.yPercent+"%) matrix(":"matrix(")+p):T[jt]=(v.xPercent||v.yPercent?"translate("+v.xPercent+"%,"+v.yPercent+"%) matrix(":"matrix(")+P+",0,0,"+O+","+R+","+A+")";else{if(S&&(P<(f=1e-4)&&-f<P&&(P=k=2e-5),O<f&&-f<O&&(O=k=2e-5),!D||v.z||v.rotationX||v.rotationY||(D=0)),x||E)x*=Q,g=i=Math.cos(x),p=s=Math.sin(x),E&&(x-=E*Q,g=Math.cos(x),p=Math.sin(x),"simple"===v.skewType)&&(e=Math.tan((E-z)*Q),g*=e=Math.sqrt(1+e*e),p*=e,v.skewY)&&(e=Math.tan(z*Q),i*=e=Math.sqrt(1+e*e),s*=e),r=-p,a=g;else{if(!(w||b||1!==k||D||M))return void(T[jt]=(v.xPercent||v.yPercent?"translate("+v.xPercent+"%,"+v.yPercent+"%) translate3d(":"translate3d(")+R+"px,"+A+"px,"+C+"px)"+(1!==P||1!==O?" scale("+P+","+O+")":""));i=a=1,r=s=0}t=1,n=o=l=h=_=F=0,u=D?-1/D:0,c=v.zOrigin,f=1e-6,d=",",m="0",(x=w*Q)&&(g=Math.cos(x),_=u*(l=-(p=Math.sin(x))),n=i*p,o=s*p,u*=t=g,i*=g,s*=g),(x=b*Q)&&(e=r*(g=Math.cos(x))+n*(p=Math.sin(x)),y=a*g+o*p,h=t*p,F=u*p,n=r*-p+n*g,o=a*-p+o*g,t*=g,u*=g,r=e,a=y),1!==k&&(n*=k,o*=k,t*=k,u*=k),1!==O&&(r*=O,a*=O,h*=O,F*=O),1!==P&&(i*=P,s*=P,l*=P,_*=P),(c||M)&&(c&&(R+=n*-c,A+=o*-c,C+=t*-c+c),M&&(R+=v.xOrigin-(v.xOrigin*i+v.yOrigin*r)+v.xOffset,A+=v.yOrigin-(v.xOrigin*s+v.yOrigin*a)+v.yOffset),R<f&&-f<R&&(R=m),A<f&&-f<A&&(A=m),C<f)&&-f<C&&(C=0),p=(p=v.xPercent||v.yPercent?"translate("+v.xPercent+"%,"+v.yPercent+"%) matrix3d(":"matrix3d(")+((i<f&&-f<i?m:i)+d+(s<f&&-f<s?m:s)+d+(l<f&&-f<l?m:l))+(d+(_<f&&-f<_?m:_)+d+(r<f&&-f<r?m:r)+d+(a<f&&-f<a?m:a)),b||w||1!==k?p=p+d+(h<f&&-f<h?m:h)+d+(F<f&&-f<F?m:F)+d+(n<f&&-f<n?m:n)+d+(o<f&&-f<o?m:o)+d+(t<f&&-f<t?m:t)+d+(u<f&&-f<u?m:u)+d:p+=",0,0,0,0,1,0,",T[jt]=p+=R+d+A+d+C+d+(D?1+-C/D:1)+")"}},Kt=((F=Vt.prototype).x=F.y=F.z=F.skewX=F.skewY=F.rotation=F.rotationX=F.rotationY=F.zOrigin=F.xPercent=F.yPercent=F.xOffset=F.yOffset=0,F.scaleX=F.scaleY=F.scaleZ=1,Nt("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,svgOrigin,transformPerspective,directionalRotation,parseTransform,force3D,skewType,xPercent,yPercent,smoothOrigin",{parser:function(t,e,n,s,a,o,l){if(s._lastParsedTransform!==l){var h,_,u,c,p,g,y,v,T=(s._lastParsedTransform=l).scale&&"function"==typeof l.scale?l.scale:0,b=(T&&(l.scale=T(C,t)),t._gsTransform),w=t.style,P=Xt.length,O=l,S={},k="transformOrigin",R=Qt(t,x,!0,O.parseTransform),M=O.transform&&("function"==typeof O.transform?O.transform(C,A):O.transform);if(R.skewType=O.skewType||R.skewType||i.defaultSkewType,s._transform=R,"rotationZ"in O&&(O.rotation=O.rotationZ),M&&"string"==typeof M&&jt)(_=it.style)[jt]=M,_.display="block",_.position="absolute",-1!==M.indexOf("%")&&(_.width=_t(t,"width"),_.height=_t(t,"height")),et.body.appendChild(it),h=Qt(it,null,!1),"simple"===R.skewType&&(h.scaleY*=Math.cos(h.skewX*Q)),R.svg&&(p=R.xOrigin,g=R.yOrigin,h.x-=R.xOffset,h.y-=R.yOffset,(O.transformOrigin||O.svgOrigin)&&(M={},kt(t,f(O.transformOrigin),M,O.svgOrigin,O.smoothOrigin,!0),p=M.xOrigin,g=M.yOrigin,h.x-=M.xOffset-R.xOffset,h.y-=M.yOffset-R.yOffset),p||g)&&(y=Rt(it,!0),h.x-=p-(p*y[0]+g*y[2]),h.y-=g-(p*y[1]+g*y[3])),et.body.removeChild(it),h.perspective||(h.perspective=R.perspective),null!=O.xPercent&&(h.xPercent=d(O.xPercent,R.xPercent)),null!=O.yPercent&&(h.yPercent=d(O.yPercent,R.yPercent));else if("object"===r(O)){if(h={scaleX:d(null!=O.scaleX?O.scaleX:O.scale,R.scaleX),scaleY:d(null!=O.scaleY?O.scaleY:O.scale,R.scaleY),scaleZ:d(O.scaleZ,R.scaleZ),x:d(O.x,R.x),y:d(O.y,R.y),z:d(O.z,R.z),xPercent:d(O.xPercent,R.xPercent),yPercent:d(O.yPercent,R.yPercent),perspective:d(O.transformPerspective,R.perspective)},null!=(c=O.directionalRotation))if("object"===r(c))for(_ in c)O[_]=c[_];else O.rotation=c;"string"==typeof O.x&&-1!==O.x.indexOf("%")&&(h.x=0,h.xPercent=d(O.x,R.xPercent)),"string"==typeof O.y&&-1!==O.y.indexOf("%")&&(h.y=0,h.yPercent=d(O.y,R.yPercent)),h.rotation=m("rotation"in O?O.rotation:"shortRotation"in O?O.shortRotation+"_short":R.rotation,R.rotation,"rotation",S),Ut&&(h.rotationX=m("rotationX"in O?O.rotationX:"shortRotationX"in O?O.shortRotationX+"_short":R.rotationX||0,R.rotationX,"rotationX",S),h.rotationY=m("rotationY"in O?O.rotationY:"shortRotationY"in O?O.shortRotationY+"_short":R.rotationY||0,R.rotationY,"rotationY",S)),h.skewX=m(O.skewX,R.skewX),h.skewY=m(O.skewY,R.skewY)}for(Ut&&null!=O.force3D&&(R.force3D=O.force3D,u=!0),(y=R.force3D||R.z||R.rotationX||R.rotationY||h.z||h.rotationX||h.rotationY||h.perspective)||null==O.scale||(h.scaleZ=1);-1<--P;)(1e-6<(M=h[v=Xt[P]]-R[v])||M<-1e-6||null!=O[v]||null!=K[v])&&(u=!0,a=new bt(R,v,R[v],M,a),v in S&&(a.e=S[v]),a.xs0=0,a.plugin=o,s._overwriteProps.push(a.n));M="function"==typeof O.transformOrigin?O.transformOrigin(C,A):O.transformOrigin,R.svg&&(M||O.svgOrigin)&&(p=R.xOffset,g=R.yOffset,kt(t,f(M),h,O.svgOrigin,O.smoothOrigin),a=xt(R,"xOrigin",(b?R:h).xOrigin,h.xOrigin,a,k),a=xt(R,"yOrigin",(b?R:h).yOrigin,h.yOrigin,a,k),p===R.xOffset&&g===R.yOffset||(a=xt(R,"xOffset",b?p:R.xOffset,R.xOffset,a,k),a=xt(R,"yOffset",b?g:R.yOffset,R.yOffset,a,k)),M="0px 0px"),(M||Ut&&y&&R.zOrigin)&&(jt?(u=!0,v=Yt,M=M||(M=(_t(t,v,x,!1,"50% 50%")+"").split(" "))[0]+" "+M[1]+" "+R.zOrigin+"px",M+="",(a=new bt(w,v,0,0,a,-1,k)).b=w[v],a.plugin=o,Ut?(_=R.zOrigin,M=M.split(" "),R.zOrigin=(2<M.length?parseFloat(M[2]):_)||0,a.xs0=a.e=M[0]+" "+(M[1]||"50%")+" 0px",(a=new bt(R,"zOrigin",0,0,a,-1,a.n)).b=_,a.xs0=a.e=R.zOrigin):a.xs0=a.e=M):f(M+"",R)),u&&(s._transformType=R.svg&&Ft||!y&&3!==this._transformType?2:3),T&&(l.scale=T)}return a},allowFunc:!0,prefix:!0}),Nt("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),Nt("clipPath",{defaultValue:"inset(0px)",prefix:!0,multi:!0,formatter:yt("inset(0px 0px 0px 0px)",!1,!0)}),Nt("borderRadius",{defaultValue:"0px",parser:function(t,e,i,r,n,s){e=this.format(e);for(var a,o,l,_,u,c,f,p,d,m,g=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],y=t.style,v=parseFloat(t.offsetWidth),b=parseFloat(t.offsetHeight),w=e.split(" "),P=0;P<g.length;P++)this.p.indexOf("border")&&(g[P]=h(g[P])),-1!==(l=o=_t(t,g[P],x,!1,"0px")).indexOf(" ")&&(l=(o=l.split(" "))[0],o=o[1]),_=a=w[P],d=parseFloat(l),m=l.substr((d+"").length),(c=""===(c=(f="="===_.charAt(1))?(u=parseInt(_.charAt(0)+"1",10),_=_.substr(2),u*=parseFloat(_),_.substr((u+"").length-(u<0?1:0))||""):(u=parseFloat(_),_.substr((u+"").length)))?T[i]||m:c)!==m&&(p=ut(t,"borderLeft",d,m),d=ut(t,"borderTop",d,m),o="%"===c?(l=p/v*100+"%",d/b*100+"%"):"em"===c?(l=p/(m=ut(t,"borderLeft",1,"em"))+"em",d/m+"em"):(l=p+"px",d+"px"),f)&&(_=parseFloat(l)+u+c,a=parseFloat(o)+u+c),n=wt(y,g[P],l+" "+o,_+" "+a,!1,"0px",n);return n},prefix:!0,formatter:yt("0px 0px 0px 0px",!1,!0)}),Nt("borderBottomLeftRadius,borderBottomRightRadius,borderTopLeftRadius,borderTopRightRadius",{defaultValue:"0px",parser:function(t,e,i,r,n,s){return wt(t.style,i,this.format(_t(t,i,x,!1,"0px 0px")),this.format(e),!1,"0px",n)},prefix:!0,formatter:yt("0px 0px",!1,!0)}),Nt("backgroundPosition",{defaultValue:"0 0",parser:function(t,e,i,r,n,s){var a,o,l,h,u,c="background-position",f=x||_(t),p=this.format((f?R?f.getPropertyValue(c+"-x")+" "+f.getPropertyValue(c+"-y"):f.getPropertyValue(c):t.currentStyle.backgroundPositionX+" "+t.currentStyle.backgroundPositionY)||"0 0");if(f=this.format(e),-1!==p.indexOf("%")!=(-1!==f.indexOf("%"))&&f.split(",").length<2&&(c=_t(t,"backgroundImage").replace(q,""))&&"none"!==c){for(a=p.split(" "),o=f.split(" "),rt.setAttribute("src",c),l=2;-1<--l;)(h=-1!==(p=a[l]).indexOf("%"))!=(-1!==o[l].indexOf("%"))&&(u=0===l?t.offsetWidth-rt.width:t.offsetHeight-rt.height,a[l]=h?parseFloat(p)/100*u+"px":parseFloat(p)/u*100+"%");p=a.join(" ")}return this.parseComplex(t.style,p,f,n,s)},formatter:f}),Nt("backgroundSize",{defaultValue:"0 0",formatter:function(t){return"co"===(t+="").substr(0,2)?t:f(-1===t.indexOf(" ")?t+" "+t:t)}}),Nt("perspective",{defaultValue:"0px",prefix:!0}),Nt("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),Nt("transformStyle",{prefix:!0}),Nt("backfaceVisibility",{prefix:!0}),Nt("userSelect",{prefix:!0}),Nt("margin",{parser:vt("marginTop,marginRight,marginBottom,marginLeft")}),Nt("padding",{parser:vt("paddingTop,paddingRight,paddingBottom,paddingLeft")}),Nt("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(t,e,i,r,n,s){var a,o;return e=R<9?(a=t.currentStyle,o=R<8?" ":",",a="rect("+a.clipTop+o+a.clipRight+o+a.clipBottom+o+a.clipLeft+")",this.format(e).split(",").join(o)):(a=this.format(_t(t,this.p,x,!1,this.dflt)),this.format(e)),this.parseComplex(t.style,a,e,n,s)}}),Nt("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),Nt("autoRound,strictUnits",{parser:function(t,e,i,r,n){return n}}),Nt("border",{defaultValue:"0px solid #000",parser:function(t,e,i,r,n,s){var a=_t(t,"borderTopWidth",x,!1,"0px"),o=(e=this.format(e).split(" "))[0].replace(L,"");return"px"!==o&&(a=parseFloat(a)/ut(t,"borderTopWidth",1,o)+o),this.parseComplex(t.style,this.format(a+" "+_t(t,"borderTopStyle",x,!1,"solid")+" "+_t(t,"borderTopColor",x,!1,"#000")),e.join(" "),n,s)},color:!0,formatter:function(t){var e=t.split(" ");return e[0]+" "+(e[1]||"solid")+" "+(t.match(gt)||["#000"])[0]}}),Nt("borderWidth",{parser:vt("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),Nt("float,cssFloat,styleFloat",{parser:function(t,e,i,r,n,s){var a="cssFloat"in(t=t.style)?"cssFloat":"styleFloat";return new bt(t,a,0,0,n,-1,i,!1,0,t[a],e)}}),Nt("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(t,e,i,r,n,s){var a=parseFloat(_t(t,"opacity",x,!1,"1")),o=t.style,l="autoAlpha"===i;return"string"==typeof e&&"="===e.charAt(1)&&(e=("-"===e.charAt(0)?-1:1)*parseFloat(e.substr(2))+a),l&&1===a&&"hidden"===_t(t,"visibility",x)&&0!==e&&(a=0),at?n=new bt(o,"opacity",a,e-a,n):((n=new bt(o,"opacity",100*a,100*(e-a),n)).xn1=l?1:0,o.zoom=1,n.type=2,n.b="alpha(opacity="+n.s+")",n.e="alpha(opacity="+(n.s+n.c)+")",n.data=t,n.plugin=s,n.setRatio=Ct),l&&((n=new bt(o,"visibility",0,0,n,-1,null,!1,0,0!==a?"inherit":"hidden",0===e?"hidden":"inherit")).xs0="inherit",r._overwriteProps.push(n.n),r._overwriteProps.push(i)),n}}),function(t,e){e&&(t.removeProperty?("ms"!==e.substr(0,2)&&"webkit"!==e.substr(0,6)||(e="-"+e),t.removeProperty(e.replace(U,"-$1").toLowerCase())):t.removeAttribute(e))});for(Nt("className",{parser:function(t,e,i,r,n,s,a){var o,l,h,_=t.getAttribute("class")||"",f=t.style.cssText;if((n=r._classNamePT=new bt(t,i,0,0,n,2)).setRatio=Mt,n.pr=-11,v=!0,n.b=_,i=u(t,x),o=t._gsClassPT){for(l={},h=o.data;h;)l[h.p]=1,h=h._next;o.setRatio(1)}return(t._gsClassPT=n).e="="!==e.charAt(1)?e:_.replace(new RegExp("(?:\\s|^)"+e.substr(2)+"(?![\\w-])"),"")+("+"===e.charAt(0)?" "+e.substr(2):""),t.setAttribute("class",n.e),o=c(t,i,u(t),a,l),t.setAttribute("class",_),n.data=o.firstMPT,t.style.cssText=f,n.xfirst=r.parse(t,o.difs,n,s)}}),Nt("clearProps",{parser:function(t,e,i,r,n){return(n=new bt(t,i,0,0,n,2)).setRatio=Dt,n.e=e,n.pr=-10,n.data=r._tween,v=!0,n}}),F="bezier,throwProps,physicsProps,physics2D".split(","),Pt=F.length;Pt--;)Lt(F[Pt]);function te(t){this.t[this.p]=this.e,this.data._linkCSSP(this,this._next,null,!0)}function ee(t,e,i){var r,n,s,a;if(t.slice)for(n=t.length;-1<--n;)ee(t[n],e,i);else for(n=(r=t.childNodes).length;-1<--n;)a=(s=r[n]).type,s.style&&(e.push(u(s)),i)&&i.push(s),1!==a&&9!==a&&11!==a||!s.childNodes.length||ee(s,e,i)}return(F=i.prototype)._firstPT=F._lastParsedTransform=F._transform=null,F._onInitTween=function(t,e,r,n){if(!t.nodeType)return!1;var s,a,o,l,h,f;if(this._target=A=t,this._tween=r,this._vars=e,C=n,w=e.autoRound,v=!1,T=e.suffixMap||i.suffixMap,x=_(t),b=this._overwriteProps,n=t.style,!P||""!==n.zIndex||"auto"!==(f=_t(t,"zIndex",x))&&""!==f||this._addLazySet(n,"zIndex",0),"string"==typeof e&&(o=n.cssText,f=u(t,x),n.cssText=o+";"+e,f=c(t,f,u(t)).difs,!at&&j.test(e)&&(f.opacity=parseFloat(RegExp.$1)),e=f,n.cssText=o),e.className?this._firstPT=s=D.className.parse(t,e.className,"className",this,null,null,e):this._firstPT=s=this.parse(t,e,null),this._transformType){for(f=3===this._transformType,jt?O&&(P=!0,""!==n.zIndex||"auto"!==(e=_t(t,"zIndex",x))&&""!==e||this._addLazySet(n,"zIndex",0),k)&&this._addLazySet(n,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(f?"visible":"hidden")):n.zoom=1,a=s;a&&a._next;)a=a._next;e=new bt(t,"transform",0,0,null,2),this._linkCSSP(e,null,a),e.setRatio=jt?Jt:At,e.data=this._transform||Qt(t,x,!0),e.tween=r,e.pr=-1,b.pop()}if(v){for(;s;){for(h=s._next,a=o;a&&a.pr>s.pr;)a=a._next;(s._prev=a?a._prev:l)?s._prev._next=s:o=s,(s._next=a)?a._prev=s:l=s,s=h}this._firstPT=o}return!0},F.parse=function(t,e,i,r){var n,s,a,o,h,u,c,f,p=t.style;for(n in e){if(h=e[n],o=D[n],"function"!=typeof h||o&&o.allowFunc||(h=h(C,A)),o)i=o.parse(t,h,n,this,i,r,e);else{if("--"===n.substr(0,2)){this._tween._propLookup[n]=this._addTween.call(this._tween,t.style,"setProperty",_(t).getPropertyValue(n)+"",h+"",n,!1,n);continue}o=_t(t,n,x)+"",c="string"==typeof h,"color"===n||"fill"===n||"stroke"===n||-1!==n.indexOf("Color")||c&&Y.test(h)?(c||(h=(3<(h=mt(h)).length?"rgba(":"rgb(")+h.join(",")+")"),i=wt(p,n,o,h,!0,"transparent",i,0,r)):c&&H.test(h)?i=wt(p,n,o,h,!0,null,i,0,r):(u=(s=parseFloat(o))||0===s?o.substr((s+"").length):"",""!==o&&"auto"!==o||(u="width"===n||"height"===n?(s=function(t,e,i){if("svg"===(t.nodeName+"").toLowerCase())return(i||_(t))[e]||0;if(t.getCTM&&$t(t))return t.getBBox()[e]||0;var r=parseFloat("width"===e?t.offsetWidth:t.offsetHeight),n=ft[e],s=n.length;for(i=i||_(t);-1<--s;)r=(r-=parseFloat(_t(t,"padding"+n[s],i,!0))||0)-(parseFloat(_t(t,"border"+n[s]+"Width",i,!0))||0);return r}(t,n,x),"px"):"left"===n||"top"===n?(s=ct(t,n,x),"px"):(s="opacity"!==n?0:1,"")),""===(c=(f=c&&"="===h.charAt(1))?(a=parseInt(h.charAt(0)+"1",10),h=h.substr(2),a*=parseFloat(h),h.replace(L,"")):(a=parseFloat(h),c?h.replace(L,""):""))&&(c=n in T?T[n]:u),h=a||0===a?(f?a+s:a)+c:e[n],u===c||""===c&&"lineHeight"!==n||(a||0===a)&&s&&(s=ut(t,n,s,u),"%"===c?(s/=ut(t,n,100,"%")/100,!0!==e.strictUnits&&(o=s+"%")):"em"===c||"rem"===c||"vw"===c||"vh"===c?s/=ut(t,n,1,c):"px"!==c&&(a=ut(t,n,a,c),c="px"),f)&&(a||0===a)&&(h=a+s+c),f&&(a+=s),!s&&0!==s||!a&&0!==a?void 0!==p[n]&&(h||h+""!="NaN"&&null!=h)?(i=new bt(p,n,a||s||0,0,i,-1,n,!1,0,o,h)).xs0="none"!==h||"display"!==n&&-1===n.indexOf("Style")?h:o:l("invalid "+n+" tween value: "+e[n]):(i=new bt(p,n,s,a-s,i,0,n,!1!==w&&("px"===c||"zIndex"===n),0,o,h)).xs0=c)}r&&i&&!i.plugin&&(i.plugin=r)}return i},F.setRatio=function(t){var e,i,r,n=this._firstPT;if(1!==t||this._tween._time!==this._tween._duration&&0!==this._tween._time)if(t||this._tween._time!==this._tween._duration&&0!==this._tween._time||-1e-6===this._tween._rawPrevTime)for(;n;){if(e=n.c*t+n.s,n.r?e=n.r(e):e<1e-6&&-1e-6<e&&(e=0),n.type)if(1===n.type)if(2===(r=n.l))n.t[n.p]=n.xs0+e+n.xs1+n.xn1+n.xs2;else if(3===r)n.t[n.p]=n.xs0+e+n.xs1+n.xn1+n.xs2+n.xn2+n.xs3;else if(4===r)n.t[n.p]=n.xs0+e+n.xs1+n.xn1+n.xs2+n.xn2+n.xs3+n.xn3+n.xs4;else if(5===r)n.t[n.p]=n.xs0+e+n.xs1+n.xn1+n.xs2+n.xn2+n.xs3+n.xn3+n.xs4+n.xn4+n.xs5;else{for(i=n.xs0+e+n.xs1,r=1;r<n.l;r++)i+=n["xn"+r]+n["xs"+(r+1)];n.t[n.p]=i}else-1===n.type?n.t[n.p]=n.xs0:n.setRatio&&n.setRatio(t);else n.t[n.p]=e+n.xs0;n=n._next}else for(;n;)2!==n.type?n.t[n.p]=n.b:n.setRatio(t),n=n._next;else for(;n;){if(2!==n.type)if(n.r&&-1!==n.type)if(e=n.r(n.s+n.c),n.type){if(1===n.type){for(r=n.l,i=n.xs0+e+n.xs1,r=1;r<n.l;r++)i+=n["xn"+r]+n["xs"+(r+1)];n.t[n.p]=i}}else n.t[n.p]=e+n.xs0;else n.t[n.p]=n.e;else n.setRatio(t);n=n._next}},F._enableTransforms=function(t){this._transform=this._transform||Qt(this._target,x,!0),this._transformType=this._transform.svg&&Ft||!t&&3!==this._transformType?2:3},F._addLazySet=function(t,e,i){(t=this._firstPT=new bt(t,e,0,0,this._firstPT,2)).e=i,t.setRatio=te,t.data=this},F._linkCSSP=function(t,e,i,r){return t&&(e&&(e._prev=t),t._next&&(t._next._prev=t._prev),t._prev?t._prev._next=t._next:this._firstPT===t&&(this._firstPT=t._next,r=!0),i?i._next=t:r||null!==this._firstPT||(this._firstPT=t),t._next=e,t._prev=i),t},F._mod=function(t){for(var e=this._firstPT;e;)"function"==typeof t[e.p]&&(e.r=t[e.p]),e=e._next},F._kill=function(e){var i,r,n,s=e;if(e.autoAlpha||e.alpha){for(r in s={},e)s[r]=e[r];s.opacity=1,s.autoAlpha&&(s.visibility=1)}for(e.className&&(i=this._classNamePT)&&((n=i.xfirst)&&n._prev?this._linkCSSP(n._prev,i._next,n._prev._prev):n===this._firstPT&&(this._firstPT=i._next),i._next&&this._linkCSSP(i._next,i._next._next,n._prev),this._classNamePT=null),i=this._firstPT;i;)i.plugin&&i.plugin!==r&&i.plugin._kill&&(i.plugin._kill(e),r=i.plugin),i=i._next;return t.prototype._kill.call(this,s)},i.cascadeTo=function(t,i,r){var n,s,a,o,l=e.to(t,i,r),h=[l],_=[],u=[],f=[],p=e._internals.reservedProps;for(ee(t=l._targets||l.target,_,f),l.render(i,!0,!0),ee(t,u),l.render(0,!0,!0),l._enabled(!0),n=f.length;-1<--n;)if((s=c(f[n],_[n],u[n])).firstMPT){for(a in s=s.difs,r)p[a]&&(s[a]=r[a]);for(a in o={},s)o[a]=_[n][a];h.push(e.fromTo(f[n],i,o,s))}return h},t.activate([i]),i}),!0),(c=(c=n._gsDefine.plugin({propName:"roundProps",version:"1.7.0",priority:-1,API:2,init:function(t,e,i){return this._tween=i,!0}})).prototype)._onInitAllProps=function(){var t,e,i,n,s=this._tween,a=s.vars.roundProps,o={},l=s._propLookup.roundProps;if("object"!==r(a)||a.push)for(i=(a="string"==typeof a?a.split(","):a).length;-1<--i;)o[a[i]]=Math.round;else for(n in a)o[n]=function(t){var e=t<1?Math.pow(10,(t+"").length-2):1;return function(i){return(Math.round(i/t)*t*e|0)/e}}(a[n]);for(n in o)for(t=s._firstPT;t;){if(e=t._next,t.pg)t.t._mod(o);else if(t.n===n)if(2===t.f&&t.t)for(var h=t.t._firstPT,_=o[n];h;)h.f||h.blob||(h.m=_||Math.round),h=h._next;else this._add(t.t,n,t.s,t.c,o[n]),e&&(e._prev=t._prev),t._prev?t._prev._next=e:s._firstPT===t&&(s._firstPT=e),t._next=t._prev=null,s._propLookup[n]=l;t=e}return!1},c._add=function(t,e,i,r,n){this._addTween(t,e,i,i+r,e,n||Math.round),this._overwriteProps.push(e)},n._gsDefine.plugin({propName:"attr",API:2,version:"0.6.1",init:function(t,e,i,r){var n,s;if("function"!=typeof t.setAttribute)return!1;for(n in e)"function"==typeof(s=e[n])&&(s=s(r,t)),this._addTween(t,"setAttribute",t.getAttribute(n)+"",s+"",n,!1,n),this._overwriteProps.push(n);return!0}}),n._gsDefine.plugin({propName:"directionalRotation",version:"0.3.1",API:2,init:function(t,e,i,n){"object"!==r(e)&&(e={rotation:e}),this.finals={};var s,a,o,l,h,_=!0===e.useRadians?2*Math.PI:360;for(s in e)"useRadians"!==s&&(a=(h=((l="function"==typeof(l=e[s])?l(n,t):l)+"").split("_"))[0],o=parseFloat("function"!=typeof t[s]?t[s]:t[s.indexOf("set")||"function"!=typeof t["get"+s.substr(3)]?s:"get"+s.substr(3)]()),l=(l=this.finals[s]="string"==typeof a&&"="===a.charAt(1)?o+parseInt(a.charAt(0)+"1",10)*Number(a.substr(2)):Number(a)||0)-o,h.length&&(-1!==(a=h.join("_")).indexOf("short")&&(l%=_)!=l%(_/2)&&(l=l<0?l+_:l-_),-1!==a.indexOf("_cw")&&l<0?l=(l+9999999999*_)%_-(l/_|0)*_:-1!==a.indexOf("ccw")&&0<l&&(l=(l-9999999999*_)%_-(l/_|0)*_)),1e-6<l||l<-1e-6)&&(this._addTween(t,s,o,o+l,s),this._overwriteProps.push(s));return!0},set:function(t){var e;if(1!==t)this._super.setRatio.call(this,t);else for(e=this._firstPT;e;)e.f?e.t[e.p](this.finals[e.p]):e.t[e.p]=this.finals[e.p],e=e._next}})._autoCSS=!0,n._gsDefine("easing.Back",["easing.Ease"],(function(t){function e(e,i){var r=(e=f("easing."+e,(function(){}),!0)).prototype=new t;return r.constructor=e,r.getRatio=i,e}function i(t,e,i,r,n){return e=f("easing."+t,{easeOut:new e,easeIn:new i,easeInOut:new r},!0),p(e,t),e}function r(t,e,i){this.t=t,this.v=e,i&&(((this.next=i).prev=this).c=i.v-e,this.gap=i.t-t)}function s(e,i){var r=f("easing."+e,(function(t){this._p1=t||0===t?t:1.70158,this._p2=1.525*this._p1}),!0);return(e=r.prototype=new t).constructor=r,e.getRatio=i,e.config=function(t){return new r(t)},r}var a,o,l,h=n.GreenSockGlobals||n,_=h.com.greensock,u=2*Math.PI,c=Math.PI/2,f=_._class,p=t.register||function(){},d=(_=i("Back",s("BackOut",(function(t){return(t-=1)*t*((this._p1+1)*t+this._p1)+1})),s("BackIn",(function(t){return t*t*((this._p1+1)*t-this._p1)})),s("BackInOut",(function(t){return(t*=2)<1?.5*t*t*((this._p2+1)*t-this._p2):.5*((t-=2)*t*((this._p2+1)*t+this._p2)+2)}))),f("easing.SlowMo",(function(t,e,i){e=e||0===e?e:.7,null==t?t=.7:1<t&&(t=1),this._p=1!==t?e:0,this._p1=(1-t)/2,this._p2=t,this._p3=this._p1+this._p2,this._calcEnd=!0===i}),!0)),m=d.prototype=new t;return m.constructor=d,m.getRatio=function(t){var e=t+(.5-t)*this._p;return t<this._p1?this._calcEnd?1-(t=1-t/this._p1)*t:e-(t=1-t/this._p1)*t*t*t*e:t>this._p3?this._calcEnd?1===t?0:1-(t=(t-this._p3)/this._p1)*t:e+(t-e)*(t=(t-this._p3)/this._p1)*t*t*t:this._calcEnd?1:e},d.ease=new d(.7,.7),m.config=d.config=function(t,e,i){return new d(t,e,i)},(m=(a=f("easing.SteppedEase",(function(t,e){this._p1=1/(t=t||1),this._p2=t+(e?0:1),this._p3=e?1:0}),!0)).prototype=new t).constructor=a,m.getRatio=function(t){return t<0?t=0:1<=t&&(t=.999999999),((this._p2*t|0)+this._p3)*this._p1},m.config=a.config=function(t,e){return new a(t,e)},(m=(o=f("easing.ExpoScaleEase",(function(t,e,i){this._p1=Math.log(e/t),this._p2=e-t,this._p3=t,this._ease=i}),!0)).prototype=new t).constructor=o,m.getRatio=function(t){return this._ease&&(t=this._ease.getRatio(t)),(this._p3*Math.exp(this._p1*t)-this._p3)/this._p2},m.config=o.config=function(t,e,i){return new o(t,e,i)},(m=(l=f("easing.RoughEase",(function(e){for(var i,n,s,a,o,l,h=(e=e||{}).taper||"none",_=[],u=0,c=0|(e.points||20),f=c,p=!1!==e.randomize,d=!0===e.clamp,m=e.template instanceof t?e.template:null,g="number"==typeof e.strength?.4*e.strength:.4;-1<--f;)i=p?Math.random():1/c*f,n=m?m.getRatio(i):i,s="none"===h?g:"out"===h?(a=1-i)*a*g:"in"===h?i*i*g:i<.5?(a=2*i)*a*.5*g:(a=2*(1-i))*a*.5*g,p?n+=Math.random()*s-.5*s:f%2?n+=.5*s:n-=.5*s,d&&(1<n?n=1:n<0&&(n=0)),_[u++]={x:i,y:n};for(_.sort((function(t,e){return t.x-e.x})),l=new r(1,1,null),f=c;-1<--f;)l=new r((o=_[f]).x,o.y,l);this._prev=new r(0,0,0!==l.t?l:l.next)}),!0)).prototype=new t).constructor=l,m.getRatio=function(t){var e=this._prev;if(t>e.t){for(;e.next&&t>=e.t;)e=e.next;e=e.prev}else for(;e.prev&&t<=e.t;)e=e.prev;return(this._prev=e).v+(t-e.t)/e.gap*e.c},m.config=function(t){return new l(t)},l.ease=new l,i("Bounce",e("BounceOut",(function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375})),e("BounceIn",(function(t){return(t=1-t)<1/2.75?1-7.5625*t*t:t<2/2.75?1-(7.5625*(t-=1.5/2.75)*t+.75):t<2.5/2.75?1-(7.5625*(t-=2.25/2.75)*t+.9375):1-(7.5625*(t-=2.625/2.75)*t+.984375)})),e("BounceInOut",(function(t){var e=t<.5;return(t=e?1-2*t:2*t-1)<1/2.75?t*=7.5625*t:t=t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375,e?.5*(1-t):.5*t+.5}))),i("Circ",e("CircOut",(function(t){return Math.sqrt(1-(t-=1)*t)})),e("CircIn",(function(t){return-(Math.sqrt(1-t*t)-1)})),e("CircInOut",(function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)}))),i("Elastic",(m=function(e,i,r){var n=f("easing."+e,(function(t,e){this._p1=1<=t?t:1,this._p2=(e||r)/(t<1?t:1),this._p3=this._p2/u*(Math.asin(1/this._p1)||0),this._p2=u/this._p2}),!0);return(e=n.prototype=new t).constructor=n,e.getRatio=i,e.config=function(t,e){return new n(t,e)},n})("ElasticOut",(function(t){return this._p1*Math.pow(2,-10*t)*Math.sin((t-this._p3)*this._p2)+1}),.3),m("ElasticIn",(function(t){return-this._p1*Math.pow(2,10*--t)*Math.sin((t-this._p3)*this._p2)}),.3),m("ElasticInOut",(function(t){return(t*=2)<1?this._p1*Math.pow(2,10*--t)*Math.sin((t-this._p3)*this._p2)*-.5:this._p1*Math.pow(2,-10*--t)*Math.sin((t-this._p3)*this._p2)*.5+1}),.45)),i("Expo",e("ExpoOut",(function(t){return 1-Math.pow(2,-10*t)})),e("ExpoIn",(function(t){return Math.pow(2,10*(t-1))-.001})),e("ExpoInOut",(function(t){return(t*=2)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*(t-1)))}))),i("Sine",e("SineOut",(function(t){return Math.sin(t*c)})),e("SineIn",(function(t){return 1-Math.cos(t*c)})),e("SineInOut",(function(t){return-.5*(Math.cos(Math.PI*t)-1)}))),f("easing.EaseLookup",{find:function(e){return t.map[e]}},!0),p(h.SlowMo,"SlowMo","ease,"),p(l,"RoughEase","ease,"),p(a,"SteppedEase","ease,"),_}),!0)})),n._gsDefine&&n._gsQueue.pop()(),t.exports&&void 0!==i.g?i.g:window),a="TweenMax",o={},l=s.document,h=s.GreenSockGlobals=s.GreenSockGlobals||s;if(e=h[a])t.exports&&(t.exports=e);else{var _,u,c,f=function(t){for(var e=t.split("."),i=h,r=0;r<e.length;r++)i[e[r]]=i=i[e[r]]||{};return i},p=f("com.greensock"),d=1e-8,m=function(t){for(var e=[],i=t.length,r=0;r!==i;e.push(t[r++]));return e},g=function(){},y=(u=Object.prototype.toString,c=u.call([]),function(t){return null!=t&&(t instanceof Array||"object"===r(t)&&!!t.push&&u.call(t)===c)}),v={},T=function e(r,n,l,_){this.sc=v[r]?v[r].sc:[],(v[r]=this).gsClass=null,this.func=l;var u=[];this.check=function(c){for(var p,d,m,g,y=n.length,T=y;-1<--y;)(p=v[n[y]]||new e(n[y],[])).gsClass?(u[y]=p.gsClass,T--):c&&p.sc.push(this);if(0===T&&l){if(m=(d=("com.greensock."+r).split(".")).pop(),g=f(d.join("."))[m]=this.gsClass=l.apply(l,u),_)if(h[m]=o[m]=g,t.exports)if(r===a)for(y in t.exports=o[a]=g,o)g[y]=o[y];else o[a]&&(o[a][m]=g);else"function"==typeof define&&i.amdO&&define((s.GreenSockAMDPath?s.GreenSockAMDPath+"/":"")+r.split(".").pop(),[],(function(){return g}));for(y=0;y<this.sc.length;y++)this.sc[y].check()}},this.check(!0)},x=s._gsDefine=function(t,e,i,r){return new T(t,e,i,r)},b=p._class=function(t,e,i){return e=e||function(){},x(t,[],(function(){return e}),i),e},w=(x.globals=h,[0,0,1,1]),P=b("easing.Ease",(function(t,e,i,r){this._func=t,this._type=i||0,this._power=r||0,this._params=e?w.concat(e):w}),!0),O=P.map={},S=P.register=function(t,e,i,r){for(var n,s,a,o,l=e.split(","),h=l.length,_=(i||"easeIn,easeOut,easeInOut").split(",");-1<--h;)for(s=l[h],n=r?b("easing."+s,null,!0):p.easing[s]||{},a=_.length;-1<--a;)o=_[a],O[s+"."+o]=O[o+s]=n[o]=t.getRatio?t:t[o]||new t},k=P.prototype;for(k._calcEnd=!1,k.getRatio=function(t){var e,i,r;return this._func?(this._params[0]=t,this._func.apply(null,this._params)):(r=1===(e=this._type)?1-t:2===e?t:t<.5?2*t:2*(1-t),1===(i=this._power)?r*=r:2===i?r*=r*r:3===i?r*=r*r*r:4===i&&(r*=r*r*r*r),1===e?1-r:2===e?r:t<.5?r/2:1-r/2)},z=(R=["Linear","Quad","Cubic","Quart","Quint,Strong"]).length;-1<--z;)k=R[z]+",Power"+z,S(new P(null,null,1,z),k,"easeOut",!0),S(new P(null,null,2,z),k,"easeIn"+(0===z?",easeNone":"")),S(new P(null,null,3,z),k,"easeInOut");O.linear=p.easing.Linear.easeIn,O.swing=p.easing.Quad.easeInOut;for(var R,A=b("events.EventDispatcher",(function(t){this._listeners={},this._eventTarget=t||this})),C=((k=A.prototype).addEventListener=function(t,e,i,r,n){n=n||0;var s,a,o=this._listeners[t],l=0;for(this!==I||_||I.wake(),null==o&&(this._listeners[t]=o=[]),a=o.length;-1<--a;)(s=o[a]).c===e&&s.s===i?o.splice(a,1):0===l&&s.pr<n&&(l=a+1);o.splice(l,0,{c:e,s:i,up:r,pr:n})},k.removeEventListener=function(t,e){var i,r=this._listeners[t];if(r)for(i=r.length;-1<--i;)if(r[i].c===e)return void r.splice(i,1)},k.dispatchEvent=function(t){var e,i,r,n=this._listeners[t];if(n)for(1<(e=n.length)&&(n=n.slice(0)),i=this._eventTarget;-1<--e;)(r=n[e])&&(r.up?r.c.call(r.s||i,{type:t,target:i}):r.c.call(r.s||i))},s.requestAnimationFrame),M=s.cancelAnimationFrame,D=Date.now||function(){return(new Date).getTime()},F=D(),z=(R=["ms","moz","webkit","o"]).length;-1<--z&&!C;)C=s[R[z]+"RequestAnimationFrame"],M=s[R[z]+"CancelAnimationFrame"]||s[R[z]+"CancelRequestAnimationFrame"];b("Ticker",(function(t,e){function i(t){var e,l=D()-F;f<l&&(u+=l-p),F+=l,h.time=(F-u)/1e3,l=h.time-o,(!r||0<l||!0===t)&&(h.frame++,o+=l+(a<=l?.004:a-l),e=!0),!0!==t&&(s=n(i)),e&&h.dispatchEvent(d)}var r,n,s,a,o,h=this,u=D(),c=!(!1===e||!C)&&"auto",f=500,p=33,d="tick";A.call(h),h.time=h.frame=0,h.tick=function(){i(!0)},h.lagSmoothing=function(t,e){if(!arguments.length)return f<1e8;f=t||1e8,p=Math.min(e,f,0)},h.sleep=function(){null!=s&&((c&&M?M:clearTimeout)(s),n=g,s=null,h===I)&&(_=!1)},h.wake=function(t){null!==s?h.sleep():t?u+=-F+(F=D()):10<h.frame&&(F=D()-f+5),n=0===r?g:c&&C?C:function(t){return setTimeout(t,1e3*(o-h.time)+1|0)},h===I&&(_=!0),i(2)},h.fps=function(t){if(!arguments.length)return r;a=1/((r=t)||60),o=this.time+a,h.wake()},h.useRAF=function(t){if(!arguments.length)return c;h.sleep(),c=t,h.fps(r)},h.fps(t),setTimeout((function(){"auto"===c&&h.frame<5&&"hidden"!==(l||{}).visibilityState&&h.useRAF(!1)}),1500)})),(k=p.Ticker.prototype=new p.events.EventDispatcher).constructor=p.Ticker;var E=b("core.Animation",(function(t,e){this.vars=e=e||{},this._duration=this._totalDuration=t||0,this._delay=Number(e.delay)||0,this._timeScale=1,this._active=!!e.immediateRender,this.data=e.data,this._reversed=!!e.reversed,tt&&(_||I.wake(),(t=this.vars.useFrames?K:tt).add(this,t._time),this.vars.paused)&&this.paused(!0)})),I=E.ticker=new p.Ticker;(k=E.prototype)._dirty=k._gc=k._initted=k._paused=!1,k._totalTime=k._time=0,k._rawPrevTime=-1,k._next=k._last=k._onUpdate=k._timeline=k.timeline=null,k._paused=!1,function t(){_&&2e3<D()-F&&("hidden"!==(l||{}).visibilityState||!I.lagSmoothing())&&I.wake();var e=setTimeout(t,2e3);e.unref&&e.unref()}(),k.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},k.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},k.resume=function(t,e){return null!=t&&this.seek(t,e),this.paused(!1)},k.seek=function(t,e){return this.totalTime(Number(t),!1!==e)},k.restart=function(t,e){return this.reversed(!1).paused(!1).totalTime(t?-this._delay:0,!1!==e,!0)},k.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},k.render=function(t,e,i){},k.invalidate=function(){return this._time=this._totalTime=0,this._initted=this._gc=!1,this._rawPrevTime=-1,!this._gc&&this.timeline||this._enabled(!0),this},k.isActive=function(){var t=this._timeline,e=this._startTime;return!t||!this._gc&&!this._paused&&t.isActive()&&(t=t.rawTime(!0))>=e&&t<e+this.totalDuration()/this._timeScale-d},k._enabled=function(t,e){return _||I.wake(),this._gc=!t,this._active=this.isActive(),!0!==e&&(t&&!this.timeline?this._timeline.add(this,this._startTime-this._delay):!t&&this.timeline&&this._timeline._remove(this,!0)),!1},k._kill=function(t,e){return this._enabled(!1,!1)},k.kill=function(t,e){return this._kill(t,e),this},k._uncache=function(t){for(var e=t?this:this.timeline;e;)e._dirty=!0,e=e.timeline;return this},k._swapSelfInParams=function(t){for(var e=t.length,i=t.concat();-1<--e;)"{self}"===t[e]&&(i[e]=this);return i},k._callback=function(t){var e=this.vars,i=e[t],r=e[t+"Params"],n=e[t+"Scope"]||e.callbackScope||this;switch(r?r.length:0){case 0:i.call(n);break;case 1:i.call(n,r[0]);break;case 2:i.call(n,r[0],r[1]);break;default:i.apply(n,r)}},k.eventCallback=function(t,e,i,r){if("on"===(t||"").substr(0,2)){var n=this.vars;if(1===arguments.length)return n[t];null==e?delete n[t]:(n[t]=e,n[t+"Params"]=y(i)&&-1!==i.join("").indexOf("{self}")?this._swapSelfInParams(i):i,n[t+"Scope"]=r),"onUpdate"===t&&(this._onUpdate=e)}return this},k.delay=function(t){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+t-this._delay),this._delay=t,this):this._delay},k.duration=function(t){return arguments.length?(this._duration=this._totalDuration=t,this._uncache(!0),this._timeline.smoothChildTiming&&0<this._time&&this._time<this._duration&&0!==t&&this.totalTime(this._totalTime*(t/this._duration),!0),this):(this._dirty=!1,this._duration)},k.totalDuration=function(t){return this._dirty=!1,arguments.length?this.duration(t):this._totalDuration},k.time=function(t,e){return arguments.length?(this._dirty&&this.totalDuration(),this.totalTime(t>this._duration?this._duration:t,e)):this._time},k.totalTime=function(t,e,i){if(_||I.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(t<0&&!i&&(t+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var r=this._totalDuration,n=this._timeline;if(r<t&&!i&&(t=r),this._startTime=(this._paused?this._pauseTime:n._time)-(this._reversed?r-t:t)/this._timeScale,n._dirty||this._uncache(!1),n._timeline)for(;n._timeline;)n._timeline._time!==(n._startTime+n._totalTime)/n._timeScale&&n.totalTime(n._totalTime,!0),n=n._timeline}this._gc&&this._enabled(!0,!1),this._totalTime===t&&0!==this._duration||(X.length&&it(),this.render(t,e,!1),X.length&&it())}return this},k.progress=k.totalProgress=function(t,e){var i=this.duration();return arguments.length?this.totalTime(i*t,e):i?this._time/i:this.ratio},k.startTime=function(t){return arguments.length?(t!==this._startTime&&(this._startTime=t,this.timeline)&&this.timeline._sortChildren&&this.timeline.add(this,t-this._delay),this):this._startTime},k.endTime=function(t){return this._startTime+(0!=t?this.totalDuration():this.duration())/this._timeScale},k.timeScale=function(t){if(!arguments.length)return this._timeScale;var e,i;for(t=t||d,this._timeline&&this._timeline.smoothChildTiming&&(i=(e=this._pauseTime)||0===e?e:this._timeline.totalTime(),this._startTime=i-(i-this._startTime)*this._timeScale/t),this._timeScale=t,i=this.timeline;i&&i.timeline;)i._dirty=!0,i.totalDuration(),i=i.timeline;return this},k.reversed=function(t){return arguments.length?(t!=this._reversed&&(this._reversed=t,this.totalTime(this._timeline&&!this._timeline.smoothChildTiming?this.totalDuration()-this._totalTime:this._totalTime,!0)),this):this._reversed},k.paused=function(t){var e,i,r;return arguments.length?(e=this._timeline,t!=this._paused&&e&&(_||t||I.wake(),r=(i=e.rawTime())-this._pauseTime,!t&&e.smoothChildTiming&&(this._startTime+=r,this._uncache(!1)),this._pauseTime=t?i:null,this._paused=t,this._active=this.isActive(),!t)&&0!=r&&this._initted&&this.duration()&&(i=e.smoothChildTiming?this._totalTime:(i-this._startTime)/this._timeScale,this.render(i,i===this._totalTime,!0)),this._gc&&!t&&this._enabled(!0,!1),this):this._paused};var N=((k=(e=b("core.SimpleTimeline",(function(t){E.call(this,0,t),this.autoRemoveChildren=this.smoothChildTiming=!0}))).prototype=new E).constructor=e,k.kill()._gc=!1,k._first=k._last=k._recent=null,k._sortChildren=!1,k.add=k.insert=function(t,e,i,r){var n,s;if(t._startTime=Number(e||0)+t._delay,t._paused&&this!==t._timeline&&(t._pauseTime=this.rawTime()-(t._timeline.rawTime()-t._pauseTime)),t.timeline&&t.timeline._remove(t,!0),t.timeline=t._timeline=this,t._gc&&t._enabled(!0,!0),n=this._last,this._sortChildren)for(s=t._startTime;n&&n._startTime>s;)n=n._prev;return n?(t._next=n._next,n._next=t):(t._next=this._first,this._first=t),t._next?t._next._prev=t:this._last=t,t._prev=n,this._recent=t,this._timeline&&this._uncache(!0),this},k._remove=function(t,e){return t.timeline===this&&(e||t._enabled(!1,!0),t._prev?t._prev._next=t._next:this._first===t&&(this._first=t._next),t._next?t._next._prev=t._prev:this._last===t&&(this._last=t._prev),t._next=t._prev=t.timeline=null,t===this._recent&&(this._recent=this._last),this._timeline)&&this._uncache(!0),this},k.render=function(t,e,i){var r,n=this._first;for(this._totalTime=this._time=this._rawPrevTime=t;n;)r=n._next,(n._active||t>=n._startTime&&!n._paused&&!n._gc)&&(n._reversed?n.render((n._dirty?n.totalDuration():n._totalDuration)-(t-n._startTime)*n._timeScale,e,i):n.render((t-n._startTime)*n._timeScale,e,i)),n=r},k.rawTime=function(){return _||I.wake(),this._totalTime},b("TweenLite",(function(t,e,i){if(E.call(this,e,i),this.render=N.prototype.render,null==t)throw"Cannot tween a null target.";this.target=t="string"==typeof t&&N.selector(t)||t,i=t.jquery||t.length&&t!==s&&t[0]&&(t[0]===s||t[0].nodeType&&t[0].style&&!t.nodeType);var r,n,a,o=this.vars.overwrite;if(this._overwrite=o=null==o?J[N.defaultOverwrite]:"number"==typeof o?o>>0:J[o],(i||t instanceof Array||t.push&&y(t))&&"number"!=typeof t[0])for(this._targets=a=m(t),this._propLookup=[],this._siblings=[],r=0;r<a.length;r++)(n=a[r])?"string"==typeof n?"string"==typeof(n=a[r--]=N.selector(n))&&a.splice(r+1,1):n.length&&n!==s&&n[0]&&(n[0]===s||n[0].nodeType&&n[0].style&&!n.nodeType)?(a.splice(r--,1),this._targets=a=a.concat(m(n))):(this._siblings[r]=rt(n,this,!1),1===o&&1<this._siblings[r].length&&st(n,this,null,1,this._siblings[r])):a.splice(r--,1);else this._propLookup={},this._siblings=rt(t,this,!1),1===o&&1<this._siblings.length&&st(t,this,null,1,this._siblings);(this.vars.immediateRender||0===e&&0===this._delay&&!1!==this.vars.immediateRender)&&(this._time=-d,this.render(Math.min(0,-this._delay)))}),!0)),L=function(t){return t&&t.length&&t!==s&&t[0]&&(t[0]===s||t[0].nodeType&&t[0].style&&!t.nodeType)},X=((k=N.prototype=new E).constructor=N,k.kill()._gc=!1,k.ratio=0,k._firstPT=k._targets=k._overwrittenProps=k._startAt=null,k._notifyPluginsOfEnabled=k._lazy=!1,N.version="2.1.2",N.defaultEase=k._ease=new P(null,null,1,1),N.defaultOverwrite="auto",N.ticker=I,N.autoSleep=120,N.lagSmoothing=function(t,e){I.lagSmoothing(t,e)},N.selector=s.$||s.jQuery||function(t){var e=s.$||s.jQuery;return e?(N.selector=e)(t):(l=l||s.document)?l.querySelectorAll?l.querySelectorAll(t):l.getElementById("#"===t.charAt(0)?t.substr(1):t):t},[]),j={},B=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,Y=/[\+-]=-?[\.\d]/,U=function(t){for(var e,i=this._firstPT;i;)e=i.blob?1===t&&null!=this.end?this.end:t?this.join(""):this.start:i.c*t+i.s,i.m?e=i.m.call(this._tween,e,this._target||i.t,this._tween):e<1e-6&&-1e-6<e&&!i.blob&&(e=0),i.f?i.fp?i.t[i.p](i.fp,e):i.t[i.p](e):i.t[i.p]=e,i=i._next},V=function(t){return(1e3*t|0)/1e3+""},q=function(t,e,i,r){var n,s,a,o,l,h,_=[],u=0,c="",f=0;for(_.start=t,_.end=e,t=_[0]=t+"",e=_[1]=e+"",i&&(i(_),t=_[0],e=_[1]),_.length=0,n=t.match(B)||[],s=e.match(B)||[],r&&(r._next=null,r.blob=1,_._firstPT=_._applyPT=r),o=s.length,a=0;a<o;a++)h=s[a],c+=(l=e.substr(u,e.indexOf(h,u)-u))||!a?l:",",u+=l.length,f?f=(f+1)%5:"rgba("===l.substr(-5)&&(f=1),h===n[a]||n.length<=a?c+=h:(c&&(_.push(c),c=""),l=parseFloat(n[a]),_.push(l),_._firstPT={_next:_._firstPT,t:_,p:_.length-1,s:l,c:("="===h.charAt(1)?parseInt(h.charAt(0)+"1",10)*parseFloat(h.substr(2)):parseFloat(h)-l)||0,f:0,m:f&&f<4?Math.round:V}),u+=h.length;return(c+=e.substr(u))&&_.push(c),_.setRatio=U,Y.test(e)&&(_.end=null),_},Z=function(t,e,i,n,s,a,o,l,h){"function"==typeof n&&(n=n(h||0,t));var _="function"!==(h=r(t[e]))?"":e.indexOf("set")||"function"!=typeof t["get"+e.substr(3)]?e:"get"+e.substr(3);if(i="get"!==i?i:_?o?t[_](o):t[_]():t[e],_="string"==typeof n&&"="===n.charAt(1),t={t,p:e,s:i,f:"function"===h,pg:0,n:s||e,m:a?"function"==typeof a?a:Math.round:0,pr:0,c:_?parseInt(n.charAt(0)+"1",10)*parseFloat(n.substr(2)):parseFloat(n)-i||0},"number"==typeof i&&("number"==typeof n||_)||(o||isNaN(i)||!_&&isNaN(n)||"boolean"==typeof i||"boolean"==typeof n?(t.fp=o,t={t:q(i,_?parseFloat(t.s)+t.c+(t.s+"").replace(/[0-9\-\.]/g,""):n,l||N.defaultStringFilter,t),p:"setRatio",s:0,c:1,f:2,pg:0,n:s||e,pr:0,m:0}):(t.s=parseFloat(i),_||(t.c=parseFloat(n)-t.s||0))),t.c)return(t._next=this._firstPT)&&(t._next._prev=t),this._firstPT=t},W=N._internals={isArray:y,isSelector:L,lazyTweens:X,blobDif:q},G=N._plugins={},$=W.tweenLookup={},H=0,Q=W.reservedProps={ease:1,delay:1,overwrite:1,onComplete:1,onCompleteParams:1,onCompleteScope:1,useFrames:1,runBackwards:1,startAt:1,onUpdate:1,onUpdateParams:1,onUpdateScope:1,onStart:1,onStartParams:1,onStartScope:1,onReverseComplete:1,onReverseCompleteParams:1,onReverseCompleteScope:1,onRepeat:1,onRepeatParams:1,onRepeatScope:1,easeParams:1,yoyo:1,immediateRender:1,repeat:1,repeatDelay:1,data:1,paused:1,reversed:1,autoCSS:1,lazy:1,onOverwrite:1,callbackScope:1,stringFilter:1,id:1,yoyoEase:1,stagger:1},J={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,true:1,false:0},K=E._rootFramesTimeline=new e,tt=E._rootTimeline=new e,et=30,it=W.lazyRender=function(){var t,e,i=X.length;for(j={},t=0;t<i;t++)(e=X[t])&&!1!==e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0),e._lazy=!1);X.length=0},rt=(tt._startTime=I.time,K._startTime=I.frame,tt._active=K._active=!0,setTimeout(it,1),E._updateRoot=N.render=function(){var t,e,i;if(X.length&&it(),tt.render((I.time-tt._startTime)*tt._timeScale,!1,!1),K.render((I.frame-K._startTime)*K._timeScale,!1,!1),X.length&&it(),I.frame>=et){for(i in et=I.frame+(parseInt(N.autoSleep,10)||120),$){for(t=(e=$[i].tweens).length;-1<--t;)e[t]._gc&&e.splice(t,1);0===e.length&&delete $[i]}if((!(i=tt._first)||i._paused)&&N.autoSleep&&!K._first&&1===I._listeners.tick.length){for(;i&&i._paused;)i=i._next;i||I.sleep()}}},I.addEventListener("tick",E._updateRoot),function(t,e,i){var r,n,s=t._gsTweenID;if($[s||(t._gsTweenID=s="t"+H++)]||($[s]={target:t,tweens:[]}),e&&((r=$[s].tweens)[n=r.length]=e,i))for(;-1<--n;)r[n]===e&&r.splice(n,1);return $[s].tweens}),nt=function(t,e,i,r){var n,s,a=t.vars.onOverwrite;return a&&(n=a(t,e,i,r)),(a=N.onOverwrite)&&(s=a(t,e,i,r)),!1!==n&&!1!==s},st=function(t,e,i,r,n){var s,a,o;if(1===r||4<=r){for(o=n.length,f=0;f<o;f++)if((a=n[f])!==e)a._gc||a._kill(null,t,e)&&(s=!0);else if(5===r)break}else{for(var l,h=e._startTime+d,_=[],u=0,c=0===e._duration,f=n.length;-1<--f;)(a=n[f])===e||a._gc||a._paused||(a._timeline!==e._timeline?(l=l||at(e,0,c),0===at(a,l,c)&&(_[u++]=a)):a._startTime<=h&&a._startTime+a.totalDuration()/a._timeScale>h&&((c||!a._initted)&&h-a._startTime<=2e-8||(_[u++]=a)));for(f=u;-1<--f;)o=(a=_[f])._firstPT,2===r&&a._kill(i,t,e)&&(s=!0),(2!==r||!a._firstPT&&a._initted&&o)&&(2===r||nt(a,e))&&a._enabled(!1,!1)&&(s=!0)}return s},at=function(t,e,i){for(var r=t._timeline,n=r._timeScale,s=t._startTime;r._timeline;){if(s+=r._startTime,n*=r._timeScale,r._paused)return-100;r=r._timeline}return e<(s/=n)?s-e:i&&s===e||!t._initted&&s-e<2e-8?d:(s+=t.totalDuration()/t._timeScale/n)>e+d?0:s-e-d},ot=(k._init=function(){var t,e,i,r,n,s,a=this.vars,o=this._overwrittenProps,l=this._duration,h=!!a.immediateRender,_=a.ease,u=this._startAt;if(a.startAt){for(r in u&&(u.render(-1,!0),u.kill()),n={},a.startAt)n[r]=a.startAt[r];if(n.data="isStart",n.overwrite=!1,n.immediateRender=!0,n.lazy=h&&!1!==a.lazy,n.startAt=n.delay=null,n.onUpdate=a.onUpdate,n.onUpdateParams=a.onUpdateParams,n.onUpdateScope=a.onUpdateScope||a.callbackScope||this,this._startAt=N.to(this.target||{},0,n),h)if(0<this._time)this._startAt=null;else if(0!==l)return}else if(a.runBackwards&&0!==l)if(u)u.render(-1,!0),u.kill(),this._startAt=null;else{for(r in 0!==this._time&&(h=!1),i={},a)Q[r]&&"autoCSS"!==r||(i[r]=a[r]);if(i.overwrite=0,i.data="isFromStart",i.lazy=h&&!1!==a.lazy,i.immediateRender=h,this._startAt=N.to(this.target,0,i),h){if(0===this._time)return}else this._startAt._init(),this._startAt._enabled(!1),this.vars.immediateRender&&(this._startAt=null)}if(this._ease=_=_?_ instanceof P?_:"function"==typeof _?new P(_,a.easeParams):O[_]||N.defaultEase:N.defaultEase,a.easeParams instanceof Array&&_.config&&(this._ease=_.config.apply(_,a.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(s=this._targets.length,t=0;t<s;t++)this._initProps(this._targets[t],this._propLookup[t]={},this._siblings[t],o?o[t]:null,t)&&(e=!0);else e=this._initProps(this.target,this._propLookup,this._siblings,o,0);if(e&&N._onPluginEvent("_onInitAllProps",this),!o||this._firstPT||"function"!=typeof this.target&&this._enabled(!1,!1),a.runBackwards)for(i=this._firstPT;i;)i.s+=i.c,i.c=-i.c,i=i._next;this._onUpdate=a.onUpdate,this._initted=!0},k._initProps=function(t,e,i,r,n){var a,o,l,h,_,u;if(null==t)return!1;if(j[t._gsTweenID]&&it(),!this.vars.css&&t.style&&t!==s&&t.nodeType&&G.css&&!1!==this.vars.autoCSS){var c,f=this.vars,p=t,d={};for(c in f)Q[c]||c in p&&"transform"!==c&&"x"!==c&&"y"!==c&&"width"!==c&&"height"!==c&&"className"!==c&&"border"!==c||!(!G[c]||G[c]&&G[c]._autoCSS)||(d[c]=f[c],delete f[c]);f.css=d}for(a in this.vars)if(u=this.vars[a],Q[a])u&&(u instanceof Array||u.push&&y(u))&&-1!==u.join("").indexOf("{self}")&&(this.vars[a]=u=this._swapSelfInParams(u,this));else if(G[a]&&(h=new G[a])._onInitTween(t,this.vars[a],this,n)){for(this._firstPT=_={_next:this._firstPT,t:h,p:"setRatio",s:0,c:1,f:1,n:a,pg:1,pr:h._priority,m:0},o=h._overwriteProps.length;-1<--o;)e[h._overwriteProps[o]]=this._firstPT;(h._priority||h._onInitAllProps)&&(l=!0),(h._onDisable||h._onEnable)&&(this._notifyPluginsOfEnabled=!0),_._next&&(_._next._prev=_)}else e[a]=Z.call(this,t,a,"get",u,a,0,null,this.vars.stringFilter,n);return r&&this._kill(r,t)?this._initProps(t,e,i,r,n):1<this._overwrite&&this._firstPT&&1<i.length&&st(t,this,e,this._overwrite,i)?(this._kill(e,t),this._initProps(t,e,i,r,n)):(this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration)&&(j[t._gsTweenID]=!0),l)},k.render=function(t,e,i){var r,n,s,a,o,l,h,_=this,u=_._time,c=_._duration,f=_._rawPrevTime;if(c-d<=t&&0<=t?(_._totalTime=_._time=c,_.ratio=_._ease._calcEnd?_._ease.getRatio(1):1,_._reversed||(r=!0,n="onComplete",i=i||_._timeline.autoRemoveChildren),0!==c||!_._initted&&_.vars.lazy&&!i||(_._startTime===_._timeline._duration&&(t=0),(f<0||t<=0&&-d<=t||f===d&&"isPause"!==_.data)&&f!==t&&(i=!0,d<f)&&(n="onReverseComplete"),_._rawPrevTime=a=!e||t||f===t?t:d)):t<d?(_._totalTime=_._time=0,_.ratio=_._ease._calcEnd?_._ease.getRatio(0):0,(0!==u||0===c&&0<f)&&(n="onReverseComplete",r=_._reversed),-d<t?t=0:t<0&&(_._active=!1,0!==c||!_._initted&&_.vars.lazy&&!i||(0<=f&&(f!==d||"isPause"!==_.data)&&(i=!0),_._rawPrevTime=a=!e||t||f===t?t:d)),(!_._initted||_._startAt&&_._startAt.progress())&&(i=!0)):(_._totalTime=_._time=t,_._easeType?(o=t/c,(1===(l=_._easeType)||3===l&&.5<=o)&&(o=1-o),3===l&&(o*=2),1===(h=_._easePower)?o*=o:2===h?o*=o*o:3===h?o*=o*o*o:4===h&&(o*=o*o*o*o),_.ratio=1===l?1-o:2===l?o:t/c<.5?o/2:1-o/2):_.ratio=_._ease.getRatio(t/c)),_._time!==u||i){if(!_._initted){if(_._init(),!_._initted||_._gc)return;if(!i&&_._firstPT&&(!1!==_.vars.lazy&&_._duration||_.vars.lazy&&!_._duration))return _._time=_._totalTime=u,_._rawPrevTime=f,X.push(_),void(_._lazy=[t,e]);_._time&&!r?_.ratio=_._ease.getRatio(_._time/c):r&&_._ease._calcEnd&&(_.ratio=_._ease.getRatio(0===_._time?0:1))}for(!1!==_._lazy&&(_._lazy=!1),_._active||!_._paused&&_._time!==u&&0<=t&&(_._active=!0),0===u&&(_._startAt&&(0<=t?_._startAt.render(t,!0,i):n=n||"_dummyGS"),!_.vars.onStart||0===_._time&&0!==c||e||_._callback("onStart")),s=_._firstPT;s;)s.f?s.t[s.p](s.c*_.ratio+s.s):s.t[s.p]=s.c*_.ratio+s.s,s=s._next;_._onUpdate&&(t<0&&_._startAt&&-1e-4!==t&&_._startAt.render(t,!0,i),e||(_._time!==u||r||i)&&_._callback("onUpdate")),!n||_._gc&&!i||(t<0&&_._startAt&&!_._onUpdate&&-1e-4!==t&&_._startAt.render(t,!0,i),r&&(_._timeline.autoRemoveChildren&&_._enabled(!1,!1),_._active=!1),!e&&_.vars[n]&&_._callback(n),0===c&&_._rawPrevTime===d&&a!==d&&(_._rawPrevTime=0))}},k._kill=function(t,e,i){if(null==(t="all"===t?null:t)&&(null==e||e===this.target))return this._lazy=!1,this._enabled(!1,!1);e="string"!=typeof e?e||this._targets||this.target:N.selector(e)||e;var n,s,a,o,l,h,_,u,c,f=i&&this._time&&i._startTime===this._startTime&&this._timeline===i._timeline,p=this._firstPT;if((y(e)||L(e))&&"number"!=typeof e[0])for(n=e.length;-1<--n;)this._kill(t,e[n],i)&&(h=!0);else{if(this._targets){for(n=this._targets.length;-1<--n;)if(e===this._targets[n]){l=this._propLookup[n]||{},this._overwrittenProps=this._overwrittenProps||[],s=this._overwrittenProps[n]=t?this._overwrittenProps[n]||{}:"all";break}}else{if(e!==this.target)return!1;l=this._propLookup,s=this._overwrittenProps=t?this._overwrittenProps||{}:"all"}if(l){if(_=t||l,u=t!==s&&"all"!==s&&t!==l&&("object"!==r(t)||!t._tempKill),i&&(N.onOverwrite||this.vars.onOverwrite)){for(a in _)l[a]&&(c=c||[]).push(a);if((c||!t)&&!nt(this,i,e,c))return!1}for(a in _)(o=l[a])&&(f&&(o.f?o.t[o.p](o.s):o.t[o.p]=o.s,h=!0),o.pg&&o.t._kill(_)&&(h=!0),o.pg&&0!==o.t._overwriteProps.length||(o._prev?o._prev._next=o._next:o===this._firstPT&&(this._firstPT=o._next),o._next&&(o._next._prev=o._prev),o._next=o._prev=null),delete l[a]),u&&(s[a]=1);!this._firstPT&&this._initted&&p&&this._enabled(!1,!1)}}return h},k.invalidate=function(){this._notifyPluginsOfEnabled&&N._onPluginEvent("_onDisable",this);var t=this._time;return this._firstPT=this._overwrittenProps=this._startAt=this._onUpdate=null,this._notifyPluginsOfEnabled=this._active=this._lazy=!1,this._propLookup=this._targets?{}:[],E.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-d,this.render(t,!1,!1!==this.vars.lazy)),this},k._enabled=function(t,e){if(_||I.wake(),t&&this._gc){var i,r=this._targets;if(r)for(i=r.length;-1<--i;)this._siblings[i]=rt(r[i],this,!0);else this._siblings=rt(this.target,this,!0)}return E.prototype._enabled.call(this,t,e),!(!this._notifyPluginsOfEnabled||!this._firstPT)&&N._onPluginEvent(t?"_onEnable":"_onDisable",this)},N.to=function(t,e,i){return new N(t,e,i)},N.from=function(t,e,i){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,new N(t,e,i)},N.fromTo=function(t,e,i,r){return r.startAt=i,r.immediateRender=0!=r.immediateRender&&0!=i.immediateRender,new N(t,e,r)},N.delayedCall=function(t,e,i,r,n){return new N(e,0,{delay:t,onComplete:e,onCompleteParams:i,callbackScope:r,onReverseComplete:e,onReverseCompleteParams:i,immediateRender:!1,lazy:!1,useFrames:n,overwrite:0})},N.set=function(t,e){return new N(t,0,e)},N.getTweensOf=function(t,e){if(null==t)return[];var i,r,n,s;if(t="string"==typeof t&&N.selector(t)||t,(y(t)||L(t))&&"number"!=typeof t[0]){for(i=t.length,r=[];-1<--i;)r=r.concat(N.getTweensOf(t[i],e));for(i=r.length;-1<--i;)for(s=r[i],n=i;-1<--n;)s===r[n]&&r.splice(i,1)}else if(t._gsTweenID)for(i=(r=rt(t).concat()).length;-1<--i;)(r[i]._gc||e&&!r[i].isActive())&&r.splice(i,1);return r||[]},N.killTweensOf=N.killDelayedCallsTo=function(t,e,i){"object"===r(e)&&(i=e,e=!1);for(var n=N.getTweensOf(t,e),s=n.length;-1<--s;)n[s]._kill(i,t)},b("plugins.TweenPlugin",(function(t,e){this._overwriteProps=(t||"").split(","),this._propName=this._overwriteProps[0],this._priority=e||0,this._super=ot.prototype}),!0));if(k=ot.prototype,ot.version="1.19.0",ot.API=2,k._firstPT=null,k._addTween=Z,k.setRatio=U,k._kill=function(t){var e,i=this._overwriteProps,r=this._firstPT;if(null!=t[this._propName])this._overwriteProps=[];else for(e=i.length;-1<--e;)null!=t[i[e]]&&i.splice(e,1);for(;r;)null!=t[r.n]&&(r._next&&(r._next._prev=r._prev),r._prev?(r._prev._next=r._next,r._prev=null):this._firstPT===r&&(this._firstPT=r._next)),r=r._next;return!1},k._mod=k._roundProps=function(t){for(var e,i=this._firstPT;i;)(e=t[this._propName]||null!=i.n&&t[i.n.split(this._propName+"_").join("")])&&"function"==typeof e&&(2===i.f?i.t._applyPT.m=e:i.m=e),i=i._next},N._onPluginEvent=function(t,e){var i,r,n,s,a,o=e._firstPT;if("_onInitAllProps"===t){for(;o;){for(a=o._next,r=n;r&&r.pr>o.pr;)r=r._next;(o._prev=r?r._prev:s)?o._prev._next=o:n=o,(o._next=r)?r._prev=o:s=o,o=a}o=e._firstPT=n}for(;o;)o.pg&&"function"==typeof o.t[t]&&o.t[t]()&&(i=!0),o=o._next;return i},ot.activate=function(t){for(var e=t.length;-1<--e;)t[e].API===ot.API&&(G[(new t[e])._propName]=t[e]);return!0},x.plugin=function(t){if(!(t&&t.propName&&t.init&&t.API))throw"illegal plugin definition.";var e,i=t.propName,r=t.priority||0,n=t.overwriteProps,s={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_mod",mod:"_mod",initAll:"_onInitAllProps"},a=b("plugins."+i.charAt(0).toUpperCase()+i.substr(1)+"Plugin",(function(){ot.call(this,i,r),this._overwriteProps=n||[]}),!0===t.global),o=a.prototype=new ot(i);for(e in(o.constructor=a).API=t.API,s)"function"==typeof t[e]&&(o[s[e]]=t[e]);return a.version=t.version,ot.activate([a]),a},R=s._gsQueue){for(z=0;z<R.length;z++)R[z]();for(k in v)v[k].func||s.console.log("GSAP encountered missing dependency: "+k)}_=!1}const lt=TweenMax}},e={};function i(r){var n=e[r];return void 0!==n||(n=e[r]={id:r,loaded:!1,exports:{}},t[r](n,n.exports,i),n.loaded=!0),n.exports}i.amdO={},i.d=(t,e)=>{for(var r in e)i.o(e,r)&&!i.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),i.hmd=t=>((t=Object.create(t)).children||(t.children=[]),Object.defineProperty(t,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+t.id)}}),t),i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};{i.d(r,{default:()=>L});var n={},s=(i.r(n),i.d(n,{downloadFile:()=>e,imgUrlToBase64:()=>t}),{}),a=(i.r(s),i.d(s,{a:()=>y,anima:()=>h,arrayIsNotEmpty:()=>S,arrayToObject:()=>P,callFunctions:()=>p,callPromises:()=>f,countBy:()=>O,debounce:()=>_,exchange:()=>I,flat_entries:()=>k,getClassDom:()=>m,getIdDom:()=>d,getSelectedText:()=>v,getUrlParams:()=>x,goBack:()=>T,hasFocus:()=>g,invert:()=>M,isArray:()=>z,isDarkMode:()=>b,isEqualArray:()=>w,isEqualString:()=>A,isPromise:()=>E,lastItem:()=>R,maskAnima:()=>c,pluck:()=>C,removeNullAndUndefined:()=>D,sort:()=>F,throttle:()=>u}),{}),o=(i.r(a),i.d(a,{bus:()=>N}),function(t,e,i,r){return new(i=i||Promise)((function(n,s){function a(t){try{l(r.next(t))}catch(t){s(t)}}function o(t){try{l(r.throw(t))}catch(t){s(t)}}function l(t){var e;t.done?n(t.value):((e=t.value)instanceof i?e:new i((function(t){t(e)}))).then(a,o)}l((r=r.apply(t,e||[])).next())}))});const t=(t,e)=>o(void 0,void 0,void 0,(function*(){let i,r=new Image;r.src=t+"?v="+Math.random(),r.setAttribute("crossOrigin","Anonymous"),r.onload=function(){var t=document.createElement("canvas"),n=r.width,s=r.height;return t.width=n,t.height=s,t.getContext("2d").drawImage(r,0,0,n,s),i=t.toDataURL("image/webp"),e?e(i):null}})),e=(t,e)=>{var i=document.createElement("a");t=function(t){var e=(t=t.split(";base64,"))[0].split(":")[1],i=window.atob(t[1]),r=i.length,n=new Uint8Array(r);for(let t=0;t<r;++t)n[t]=i.charCodeAt(t);return new Blob([n],{type:e})}(t),document.createEvent("HTMLEvents").initEvent("click",!0,!0),i.download=e,i.href=URL.createObjectURL(t),i.click()};var l=i(221);const h=(t,e,i,r,n)=>{const s=Object.assign({},t),a=new l.Z(s,i,e).eventCallback("onUpdate",(()=>r&&r(s))).eventCallback("onComplete",(()=>{n&&n(),null!==l.Z&&void 0!==l.Z&&l.Z.killTweensOf(a)}));return a},_=(t,e)=>{let i=null;return function(...r){i&&clearTimeout(i),i=setTimeout((()=>{e.apply(this,r),i=null}),t)}},u=(t,e)=>{let i=!0;return function(...r){if(i){i=!1;const n=setTimeout((()=>{e.apply(this,r),i=!0,clearTimeout(n)}),t)}}},c=t=>{_(2e3,(()=>{const e=document.createElement("div");t.appendChild(e),e.style.width="100%",e.style.height="100%",e.style.position="absolute",h({color:0},{color:1},2,(t=>{e.style.backgroundColor=`rgba(0,0,0,${t.color})`}),(()=>{h({color:1},{color:0},2,(t=>{e.style.backgroundColor=`rgba(0,0,0,${t.color})`}),(()=>{t.removeChild(e)}))}))}))},f=t=>{let e=0;return function i(){var r;return e>=t.length?Promise.resolve():(r=t[e](),e++,r.then(i))}()},p=t=>{for(let e=0;e<t.length;e++)"function"==typeof t[e]?t[e]():Array.isArray(t[e])&&p(t[e])},d=t=>document.querySelector("#"+t),m=t=>document.querySelector("."+t),g=t=>t===document.activeElement,y=t=>[].slice.call(t.parentNode.children).filter((e=>e!==t)),v=()=>window.getSelection().toString(),T=()=>history.go(-1),x=t=>Array.from(new URLSearchParams(t)).reduce(((t,[e,i])=>Object.assign({},t,{[e]:t[e]?(Array.isArray(t[e])?t[e]:[t[e]]).concat(i):i})),{}),b=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches,w=(t,e)=>JSON.stringify(t)===JSON.stringify(e),P=(t,e)=>t.reduce(((t,i)=>Object.assign(Object.assign({},t),{[i[e]]:i})),{}),O=(t,e)=>t.reduce(((t,i)=>(t[i[e]]=++t[i[e]]||1,t)),{}),S=t=>Array.isArray(t)&&0<Object.keys(t).length,k=t=>[].concat(...t),R=t=>t.slice(-1)[0],A=(...t)=>t.every((e=>JSON.stringify(e)===JSON.stringify(t[0]))),C=(t,e)=>t.map((t=>t[e])),M=t=>Object.keys(t).reduce(((e,i)=>Object.assign(e,{[t[i]]:i})),{}),D=t=>Object.entries(t).reduce(((t,[e,i])=>(null==i||(t[e]=i),t)),{}),F=t=>Object.keys(t).sort().reduce(((e,i)=>(e[i]=t[i],e)),{}),z=t=>Array.isArray(t),E=t=>!!t&&("object"==typeof t||"function"==typeof t)&&"function"==typeof t.then,I=(t,e)=>[t,e]=[e,t];let N=new class{constructor(){this.busList={}}$on(t,e){if(this.busList[t])throw console.error("事件名称重复!");this.busList[t]=e}$emit(t){var e=[...arguments].slice(1);this.busList[t](...e)}$off(t){this.busList[t]&&delete this.busList[t]}};const L={img:n,js:s,bus:a}}return r.default})()));
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tween动画函数
|
|
3
|
+
* @param begin - 起始状态对象
|
|
4
|
+
* @param end - 结束状态对象
|
|
5
|
+
* @param time - 动画持续时间(秒)
|
|
6
|
+
* @param onUpdate - 更新回调函数
|
|
7
|
+
* @param onComplete - 完成回调函数
|
|
8
|
+
* @returns Tween动画实例
|
|
9
|
+
*/
|
|
10
|
+
export declare const anima: (begin: Record<string, any>, end: Record<string, any>, time: number, onUpdate?: (data: any) => void, onComplete?: () => void) => any;
|
|
11
|
+
/**
|
|
12
|
+
* 防抖函数
|
|
13
|
+
* @param time - 延迟时间(毫秒)
|
|
14
|
+
* @param fn - 要执行的函数
|
|
15
|
+
* @returns 防抖后的函数
|
|
16
|
+
*/
|
|
17
|
+
export declare const debounce: <T extends (...args: any[]) => any>(time: number, fn: T) => (...args: Parameters<T>) => void;
|
|
18
|
+
/**
|
|
19
|
+
* 节流函数
|
|
20
|
+
* @param time - 节流时间间隔(毫秒)
|
|
21
|
+
* @param fn - 要执行的函数
|
|
22
|
+
* @returns 节流后的函数
|
|
23
|
+
*/
|
|
24
|
+
export declare const throttle: <T extends (...args: any[]) => any>(time: number, fn: T) => (...args: Parameters<T>) => void;
|
|
25
|
+
/**
|
|
26
|
+
* 蒙版渐隐动画
|
|
27
|
+
* @param parentDom - 父级DOM元素
|
|
28
|
+
*/
|
|
29
|
+
export declare const maskAnima: (parentDom: Element) => void;
|
|
30
|
+
export declare const callPromises: (arr: any) => any;
|
|
31
|
+
export declare const callFunctions: (arr: any) => void;
|
|
32
|
+
export declare const getIdDom: (idName: string) => Element;
|
|
33
|
+
export declare const getClassDom: (className: string) => Element;
|
|
34
|
+
export declare const hasFocus: (el: any) => boolean;
|
|
35
|
+
export declare const a: (el: any) => any;
|
|
36
|
+
export declare const getSelectedText: () => string;
|
|
37
|
+
export declare const goBack: () => void;
|
|
38
|
+
export declare const getUrlParams: (query: any) => {};
|
|
39
|
+
export declare const isDarkMode: boolean;
|
|
40
|
+
export declare const isEqualArray: (a: any, b: any) => boolean;
|
|
41
|
+
export declare const arrayToObject: (arr: any, key: any) => any;
|
|
42
|
+
export declare const countBy: (arr: any, prop: any) => any;
|
|
43
|
+
export declare const arrayIsNotEmpty: (arr: any) => boolean;
|
|
44
|
+
export declare const flat_entries: (arr: any) => any[];
|
|
45
|
+
export declare const lastItem: (arr: any) => any;
|
|
46
|
+
export declare const isEqualString: (...objects: any[]) => boolean;
|
|
47
|
+
export declare const pluck: (objs: any, property: any) => any;
|
|
48
|
+
export declare const invert: (obj: any) => {};
|
|
49
|
+
export declare const removeNullAndUndefined: (obj: any) => {};
|
|
50
|
+
export declare const sort: (obj: any) => {};
|
|
51
|
+
export declare const isArray: (obj: any) => boolean;
|
|
52
|
+
export declare const isPromise: (obj: any) => boolean;
|
|
53
|
+
export declare const exchange: (a: any, b: any) => [any, any];
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// 图片url转 base64
|
|
2
|
+
const imgUrlToBase64 = async (url, callback) => {
|
|
3
|
+
let Img = new Image(),
|
|
4
|
+
dataURL = "";
|
|
5
|
+
Img.src = url + "?v=" + Math.random();
|
|
6
|
+
Img.setAttribute("crossOrigin", "Anonymous");
|
|
7
|
+
Img.onload = function () {
|
|
8
|
+
let canvas = document.createElement("canvas"),
|
|
9
|
+
width = Img.width,
|
|
10
|
+
height = Img.height;
|
|
11
|
+
canvas.width = width;
|
|
12
|
+
canvas.height = height;
|
|
13
|
+
(canvas.getContext("2d") as any).drawImage(Img, 0, 0, width, height);
|
|
14
|
+
dataURL = canvas.toDataURL("image/webp");
|
|
15
|
+
return callback ? callback(dataURL) : null;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
// 下载文件
|
|
20
|
+
const downloadFile = (content: any, fileName: string) => {
|
|
21
|
+
//下载base64图片 传入base64
|
|
22
|
+
let base64ToBlob = function (code: any) {
|
|
23
|
+
let parts = code.split(";base64,");
|
|
24
|
+
let contentType = parts[0].split(":")[1];
|
|
25
|
+
let raw = window.atob(parts[1]);
|
|
26
|
+
let rawLength = raw.length;
|
|
27
|
+
let uInt8Array = new Uint8Array(rawLength);
|
|
28
|
+
for (let i = 0; i < rawLength; ++i) {
|
|
29
|
+
uInt8Array[i] = raw.charCodeAt(i);
|
|
30
|
+
}
|
|
31
|
+
return new Blob([uInt8Array], {
|
|
32
|
+
type: contentType,
|
|
33
|
+
});
|
|
34
|
+
};
|
|
35
|
+
let aLink = document.createElement("a");
|
|
36
|
+
let blob = base64ToBlob(content); //new Blob([content]);
|
|
37
|
+
let evt = document.createEvent("HTMLEvents");
|
|
38
|
+
evt.initEvent("click", true, true); //initEvent 不加后两个参数在FF下会报错 事件类型,是否冒泡,是否阻止浏览器的默认行为
|
|
39
|
+
aLink.download = fileName;
|
|
40
|
+
aLink.href = URL.createObjectURL(blob);
|
|
41
|
+
aLink.click();
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export { imgUrlToBase64, downloadFile };
|