solo-skins/Bubble/js/TweenMax.min.js

1 line
106 KiB
JavaScript

var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";var t;_gsScope._gsDefine("TweenMax",["core.Animation","core.SimpleTimeline","TweenLite"],function(s,_,f){function d(t){var e,i=[],s=t.length;for(e=0;e!==s;i.push(t[e++]));return i}var m=function(t,e,i){f.call(this,t,e,i),this._cycle=0,this._yoyo=!0===this.vars.yoyo,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._dirty=!0,this.render=m.prototype.render},g=1e-10,v=f._internals,y=v.isSelector,T=v.isArray,t=m.prototype=f.to({},.1,{}),x=[];m.version="1.16.1",t.constructor=m,t.kill()._gc=!1,m.killTweensOf=m.killDelayedCallsTo=f.killTweensOf,m.getTweensOf=f.getTweensOf,m.lagSmoothing=f.lagSmoothing,m.ticker=f.ticker,m.render=f.render,t.invalidate=function(){return this._yoyo=!0===this.vars.yoyo,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),f.prototype.invalidate.call(this)},t.updateTo=function(t,e){var i,s=this.ratio,r=this.vars.immediateRender||t.immediateRender;for(i in e&&this._startTime<this._timeline._time&&(this._startTime=this._timeline._time,this._uncache(!1),this._gc?this._enabled(!0,!1):this._timeline.insert(this,this._startTime-this._delay)),t)this.vars[i]=t[i];if(this._initted||r)if(e)this._initted=!1,r&&this.render(0,!0,!0);else if(this._gc&&this._enabled(!0,!1),this._notifyPluginsOfEnabled&&this._firstPT&&f._onPluginEvent("_onDisable",this),.998<this._time/this._duration){var n=this._time;this.render(0,!0,!1),this._initted=!1,this.render(n,!0,!1)}else if(0<this._time||r){this._initted=!1,this._init();for(var a,o=1/(1-s),h=this._firstPT;h;)a=h.s+h.c,h.c*=o,h.s=a-h.c,h=h._next}return this},t.render=function(t,e,i){this._initted||0===this._duration&&this.vars.repeat&&this.invalidate();var s,r,n,a,o,h,l,_,u=this._dirty?this.totalDuration():this._totalDuration,p=this._time,c=this._totalTime,f=this._cycle,d=this._duration,m=this._rawPrevTime;if(u<=t?(this._totalTime=u,this._cycle=this._repeat,this._yoyo&&0!=(1&this._cycle)?(this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0):(this._time=d,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1),this._reversed||(s=!0,r="onComplete",i=i||this._timeline.autoRemoveChildren),0===d&&(this._initted||!this.vars.lazy||i)&&(this._startTime===this._timeline._duration&&(t=0),(0===t||m<0||m===g)&&m!==t&&(i=!0,g<m&&(r="onReverseComplete")),this._rawPrevTime=_=!e||t||m===t?t:g)):t<1e-7?(this._totalTime=this._time=this._cycle=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==c||0===d&&0<m)&&(r="onReverseComplete",s=this._reversed),t<0&&(this._active=!1,0===d&&(this._initted||!this.vars.lazy||i)&&(0<=m&&(i=!0),this._rawPrevTime=_=!e||t||m===t?t:g)),this._initted||(i=!0)):(this._totalTime=this._time=t,0!==this._repeat&&(a=d+this._repeatDelay,this._cycle=this._totalTime/a>>0,0!==this._cycle&&this._cycle===this._totalTime/a&&this._cycle--,this._time=this._totalTime-this._cycle*a,this._yoyo&&0!=(1&this._cycle)&&(this._time=d-this._time),this._time>d?this._time=d:this._time<0&&(this._time=0)),this._easeType?(o=this._time/d,(1===(h=this._easeType)||3===h&&.5<=o)&&(o=1-o),3===h&&(o*=2),1===(l=this._easePower)?o*=o:2===l?o*=o*o:3===l?o*=o*o*o:4===l&&(o*=o*o*o*o),this.ratio=1===h?1-o:2===h?o:this._time/d<.5?o/2:1-o/2):this.ratio=this._ease.getRatio(this._time/d)),p!==this._time||i||f!==this._cycle){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!i&&this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration))return this._time=p,this._totalTime=c,this._rawPrevTime=m,this._cycle=f,v.lazyTweens.push(this),void(this._lazy=[t,e]);this._time&&!s?this.ratio=this._ease.getRatio(this._time/d):s&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(0===this._time?0:1))}for(!1!==this._lazy&&(this._lazy=!1),this._active||!this._paused&&this._time!==p&&0<=t&&(this._active=!0),0===c&&(2===this._initted&&0<t&&this._init(),this._startAt&&(0<=t?this._startAt.render(t,e,i):r||(r="_dummyGS")),this.vars.onStart&&(0!==this._totalTime||0===d)&&(e||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||x))),n=this._firstPT;n;)n.f?n.t[n.p](n.c*this.ratio+n.s):n.t[n.p]=n.c*this.ratio+n.s,n=n._next;this._onUpdate&&(t<0&&this._startAt&&this._startTime&&this._startAt.render(t,e,i),e||(this._totalTime!==c||s)&&this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||x)),this._cycle!==f&&(e||this._gc||this.vars.onRepeat&&this.vars.onRepeat.apply(this.vars.onRepeatScope||this,this.vars.onRepeatParams||x)),r&&(!this._gc||i)&&(t<0&&this._startAt&&!this._onUpdate&&this._startTime&&this._startAt.render(t,e,i),s&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[r]&&this.vars[r].apply(this.vars[r+"Scope"]||this,this.vars[r+"Params"]||x),0===d&&this._rawPrevTime===g&&_!==g&&(this._rawPrevTime=0))}else c!==this._totalTime&&this._onUpdate&&(e||this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||x))},m.to=function(t,e,i){return new m(t,e,i)},m.from=function(t,e,i){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,new m(t,e,i)},m.fromTo=function(t,e,i,s){return s.startAt=i,s.immediateRender=0!=s.immediateRender&&0!=i.immediateRender,new m(t,e,s)},m.staggerTo=m.allTo=function(t,e,i,s,r,n,a){s=s||0;function o(){i.onComplete&&i.onComplete.apply(i.onCompleteScope||this,arguments),r.apply(a||this,n||x)}var h,l,_,u,p=i.delay||0,c=[];for(T(t)||("string"==typeof t&&(t=f.selector(t)||t),y(t)&&(t=d(t))),t=t||[],s<0&&((t=d(t)).reverse(),s*=-1),h=t.length-1,_=0;_<=h;_++){for(u in l={},i)l[u]=i[u];l.delay=p,_===h&&r&&(l.onComplete=o),c[_]=new m(t[_],e,l),p+=s}return c},m.staggerFrom=m.allFrom=function(t,e,i,s,r,n,a){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,m.staggerTo(t,e,i,s,r,n,a)},m.staggerFromTo=m.allFromTo=function(t,e,i,s,r,n,a,o){return s.startAt=i,s.immediateRender=0!=s.immediateRender&&0!=i.immediateRender,m.staggerTo(t,e,s,r,n,a,o)},m.delayedCall=function(t,e,i,s,r){return new m(e,0,{delay:t,onComplete:e,onCompleteParams:i,onCompleteScope:s,onReverseComplete:e,onReverseCompleteParams:i,onReverseCompleteScope:s,immediateRender:!1,useFrames:r,overwrite:0})},m.set=function(t,e){return new m(t,0,e)},m.isTweening=function(t){return 0<f.getTweensOf(t,!0).length};var n=function(t,e){for(var i=[],s=0,r=t._first;r;)r instanceof f?i[s++]=r:(e&&(i[s++]=r),s=(i=i.concat(n(r,e))).length),r=r._next;return i},u=m.getAllTweens=function(t){return n(s._rootTimeline,t).concat(n(s._rootFramesTimeline,t))};m.killAll=function(t,e,i,s){null==e&&(e=!0),null==i&&(i=!0);var r,n,a,o=u(0!=s),h=o.length,l=e&&i&&s;for(a=0;a<h;a++)n=o[a],(l||n instanceof _||(r=n.target===n.vars.onComplete)&&i||e&&!r)&&(t?n.totalTime(n._reversed?0:n.totalDuration()):n._enabled(!1,!1))},m.killChildTweensOf=function(t,e){if(null!=t){var i,s,r,n,a,o=v.tweenLookup;if("string"==typeof t&&(t=f.selector(t)||t),y(t)&&(t=d(t)),T(t))for(n=t.length;-1<--n;)m.killChildTweensOf(t[n],e);else{for(r in i=[],o)for(s=o[r].target.parentNode;s;)s===t&&(i=i.concat(o[r].tweens)),s=s.parentNode;for(a=i.length,n=0;n<a;n++)e&&i[n].totalTime(i[n].totalDuration()),i[n]._enabled(!1,!1)}}};function r(t,e,i,s){e=!1!==e,i=!1!==i;for(var r,n,a=u(s=!1!==s),o=e&&i&&s,h=a.length;-1<--h;)n=a[h],(o||n instanceof _||(r=n.target===n.vars.onComplete)&&i||e&&!r)&&n.paused(t)}return m.pauseAll=function(t,e,i){r(!0,t,e,i)},m.resumeAll=function(t,e,i){r(!1,t,e,i)},m.globalTimeScale=function(t){var e=s._rootTimeline,i=f.ticker.time;return arguments.length?(t=t||g,e._startTime=i-(i-e._startTime)*e._timeScale/t,e=s._rootFramesTimeline,i=f.ticker.frame,e._startTime=i-(i-e._startTime)*e._timeScale/t,e._timeScale=s._rootTimeline._timeScale=t,t):e._timeScale},t.progress=function(t){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!=(1&this._cycle)?1-t:t)+this._cycle*(this._duration+this._repeatDelay),!1):this._time/this.duration()},t.totalProgress=function(t){return arguments.length?this.totalTime(this.totalDuration()*t,!1):this._totalTime/this.totalDuration()},t.time=function(t,e){return arguments.length?(this._dirty&&this.totalDuration(),t>this._duration&&(t=this._duration),this._yoyo&&0!=(1&this._cycle)?t=this._duration-t+this._cycle*(this._duration+this._repeatDelay):0!==this._repeat&&(t+=this._cycle*(this._duration+this._repeatDelay)),this.totalTime(t,e)):this._time},t.duration=function(t){return arguments.length?s.prototype.duration.call(this,t):this._duration},t.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)},t.repeat=function(t){return arguments.length?(this._repeat=t,this._uncache(!0)):this._repeat},t.repeatDelay=function(t){return arguments.length?(this._repeatDelay=t,this._uncache(!0)):this._repeatDelay},t.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},m},!0),_gsScope._gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(_,u,p){function c(t){u.call(this,t),this._labels={},this.autoRemoveChildren=!0===this.vars.autoRemoveChildren,this.smoothChildTiming=!0===this.vars.smoothChildTiming,this._sortChildren=!0,this._onUpdate=this.vars.onUpdate;var e,i,s=this.vars;for(i in s)e=s[i],v(e)&&-1!==e.join("").indexOf("{self}")&&(s[i]=this._swapSelfInParams(e));v(s.tweens)&&this.add(s.tweens,0,s.align,s.stagger)}function f(t){var e,i={};for(e in t)i[e]=t[e];return i}function d(t){var e,i=[],s=t.length;for(e=0;e!==s;i.push(t[e++]));return i}var m=1e-10,t=p._internals,e=c._internals={},g=t.isSelector,v=t.isArray,y=t.lazyTweens,T=t.lazyRender,x=[],a=_gsScope._gsDefine.globals,n=e.pauseCallback=function(t,e,i,s){var r,n=t._timeline,a=n._totalTime,o=t._startTime,h=t._rawPrevTime<0||0===t._rawPrevTime&&n._reversed,l=h?0:m,_=h?m:0;if(e||!this._forcingPlayhead){for(n.pause(o),r=t._prev;r&&r._startTime===o;)r._rawPrevTime=_,r=r._prev;for(r=t._next;r&&r._startTime===o;)r._rawPrevTime=l,r=r._next;e&&e.apply(s||n,i||x),(this._forcingPlayhead||!n._paused)&&n.seek(a)}},i=c.prototype=new u;return c.version="1.16.1",i.constructor=c,i.kill()._gc=i._forcingPlayhead=!1,i.to=function(t,e,i,s){var r=i.repeat&&a.TweenMax||p;return e?this.add(new r(t,e,i),s):this.set(t,i,s)},i.from=function(t,e,i,s){return this.add((i.repeat&&a.TweenMax||p).from(t,e,i),s)},i.fromTo=function(t,e,i,s,r){var n=s.repeat&&a.TweenMax||p;return e?this.add(n.fromTo(t,e,i,s),r):this.set(t,s,r)},i.staggerTo=function(t,e,i,s,r,n,a,o){var h,l=new c({onComplete:n,onCompleteParams:a,onCompleteScope:o,smoothChildTiming:this.smoothChildTiming});for("string"==typeof t&&(t=p.selector(t)||t),g(t=t||[])&&(t=d(t)),(s=s||0)<0&&((t=d(t)).reverse(),s*=-1),h=0;t.length>h;h++)i.startAt&&(i.startAt=f(i.startAt)),l.to(t[h],e,f(i),h*s);return this.add(l,r)},i.staggerFrom=function(t,e,i,s,r,n,a,o){return i.immediateRender=0!=i.immediateRender,i.runBackwards=!0,this.staggerTo(t,e,i,s,r,n,a,o)},i.staggerFromTo=function(t,e,i,s,r,n,a,o,h){return s.startAt=i,s.immediateRender=0!=s.immediateRender&&0!=i.immediateRender,this.staggerTo(t,e,s,r,n,a,o,h)},i.call=function(t,e,i,s){return this.add(p.delayedCall(0,t,e,i),s)},i.set=function(t,e,i){return i=this._parseTimeOrLabel(i,0,!0),null==e.immediateRender&&(e.immediateRender=i===this._time&&!this._paused),this.add(new p(t,0,e),i)},c.exportRoot=function(t,e){null==(t=t||{}).smoothChildTiming&&(t.smoothChildTiming=!0);var i,s,r=new c(t),n=r._timeline;for(null==e&&(e=!0),n._remove(r,!0),r._startTime=0,r._rawPrevTime=r._time=r._totalTime=n._time,i=n._first;i;)s=i._next,e&&i instanceof p&&i.target===i.vars.onComplete||r.add(i,i._startTime-i._delay),i=s;return n.add(r,0),r},i.add=function(t,e,i,s){var r,n,a,o,h,l;if("number"!=typeof e&&(e=this._parseTimeOrLabel(e,0,!0,t)),!(t instanceof _)){if(t instanceof Array||t&&t.push&&v(t)){for(i=i||"normal",s=s||0,r=e,n=t.length,a=0;a<n;a++)v(o=t[a])&&(o=new c({tweens:o})),this.add(o,r),"string"!=typeof o&&"function"!=typeof o&&("sequence"===i?r=o._startTime+o.totalDuration()/o._timeScale:"start"===i&&(o._startTime-=o.delay())),r+=s;return this._uncache(!0)}if("string"==typeof t)return this.addLabel(t,e);if("function"!=typeof t)throw"Cannot add "+t+" into the timeline; it is not a tween, timeline, function, or string.";t=p.delayedCall(0,t)}if(u.prototype.add.call(this,t,e),(this._gc||this._time===this._duration)&&!this._paused&&this._duration<this.duration())for(l=(h=this).rawTime()>t._startTime;h._timeline;)l&&h._timeline.smoothChildTiming?h.totalTime(h._totalTime,!0):h._gc&&h._enabled(!0,!1),h=h._timeline;return this},i.remove=function(t){if(t instanceof _)return this._remove(t,!1);if(t instanceof Array||t&&t.push&&v(t)){for(var e=t.length;-1<--e;)this.remove(t[e]);return this}return"string"==typeof t?this.removeLabel(t):this.kill(null,t)},i._remove=function(t,e){u.prototype._remove.call(this,t,e);var i=this._last;return i?this._time>i._startTime+i._totalDuration/i._timeScale&&(this._time=this.duration(),this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},i.append=function(t,e){return this.add(t,this._parseTimeOrLabel(null,e,!0,t))},i.insert=i.insertMultiple=function(t,e,i,s){return this.add(t,e||0,i,s)},i.appendMultiple=function(t,e,i,s){return this.add(t,this._parseTimeOrLabel(null,e,!0,t),i,s)},i.addLabel=function(t,e){return this._labels[t]=this._parseTimeOrLabel(e),this},i.addPause=function(t,e,i,s){var r=p.delayedCall(0,n,["{self}",e,i,s],this);return r.data="isPause",this.add(r,t)},i.removeLabel=function(t){return delete this._labels[t],this},i.getLabelTime=function(t){return null!=this._labels[t]?this._labels[t]:-1},i._parseTimeOrLabel=function(t,e,i,s){var r;if(s instanceof _&&s.timeline===this)this.remove(s);else if(s&&(s instanceof Array||s.push&&v(s)))for(r=s.length;-1<--r;)s[r]instanceof _&&s[r].timeline===this&&this.remove(s[r]);if("string"==typeof e)return this._parseTimeOrLabel(e,i&&"number"==typeof t&&null==this._labels[e]?t-this.duration():0,i);if(e=e||0,"string"!=typeof t||!isNaN(t)&&null==this._labels[t])null==t&&(t=this.duration());else{if(-1===(r=t.indexOf("=")))return null==this._labels[t]?i?this._labels[t]=this.duration()+e:e:this._labels[t]+e;e=parseInt(t.charAt(r-1)+"1",10)*Number(t.substr(r+1)),t=1<r?this._parseTimeOrLabel(t.substr(0,r-1),0,i):this.duration()}return Number(t)+e},i.seek=function(t,e){return this.totalTime("number"==typeof t?t:this._parseTimeOrLabel(t),!1!==e)},i.stop=function(){return this.paused(!0)},i.gotoAndPlay=function(t,e){return this.play(t,e)},i.gotoAndStop=function(t,e){return this.pause(t,e)},i.render=function(t,e,i){this._gc&&this._enabled(!0,!1);var s,r,n,a,o,h=this._dirty?this.totalDuration():this._totalDuration,l=this._time,_=this._startTime,u=this._timeScale,p=this._paused;if(h<=t)this._totalTime=this._time=h,this._reversed||this._hasPausedChild()||(r=!0,a="onComplete",o=!!this._timeline.autoRemoveChildren,0===this._duration&&(0===t||this._rawPrevTime<0||this._rawPrevTime===m)&&this._rawPrevTime!==t&&this._first&&(o=!0,this._rawPrevTime>m&&(a="onReverseComplete"))),this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:m,t=h+1e-4;else if(t<1e-7)if(this._totalTime=this._time=0,(0!==l||0===this._duration&&this._rawPrevTime!==m&&(0<this._rawPrevTime||t<0&&0<=this._rawPrevTime))&&(a="onReverseComplete",r=this._reversed),t<0)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(o=r=!0,a="onReverseComplete"):0<=this._rawPrevTime&&this._first&&(o=!0),this._rawPrevTime=t;else{if(this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:m,0===t&&r)for(s=this._first;s&&0===s._startTime;)s._duration||(r=!1),s=s._next;t=0,this._initted||(o=!0)}else this._totalTime=this._time=this._rawPrevTime=t;if(this._time!==l&&this._first||i||o){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._time!==l&&0<t&&(this._active=!0),0===l&&this.vars.onStart&&0!==this._time&&(e||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||x)),this._time>=l)for(s=this._first;s&&(n=s._next,!this._paused||p);)(s._active||s._startTime<=this._time&&!s._paused&&!s._gc)&&(s._reversed?s.render((s._dirty?s.totalDuration():s._totalDuration)-(t-s._startTime)*s._timeScale,e,i):s.render((t-s._startTime)*s._timeScale,e,i)),s=n;else for(s=this._last;s&&(n=s._prev,!this._paused||p);)(s._active||l>=s._startTime&&!s._paused&&!s._gc)&&(s._reversed?s.render((s._dirty?s.totalDuration():s._totalDuration)-(t-s._startTime)*s._timeScale,e,i):s.render((t-s._startTime)*s._timeScale,e,i)),s=n;this._onUpdate&&(e||(y.length&&T(),this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||x))),a&&(this._gc||(_===this._startTime||u!==this._timeScale)&&(0===this._time||h>=this.totalDuration())&&(r&&(y.length&&T(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[a]&&this.vars[a].apply(this.vars[a+"Scope"]||this,this.vars[a+"Params"]||x)))}},i._hasPausedChild=function(){for(var t=this._first;t;){if(t._paused||t instanceof c&&t._hasPausedChild())return!0;t=t._next}return!1},i.getChildren=function(t,e,i,s){s=s||-9999999999;for(var r=[],n=this._first,a=0;n;)s>n._startTime||(n instanceof p?!1!==e&&(r[a++]=n):(!1!==i&&(r[a++]=n),!1!==t&&(a=(r=r.concat(n.getChildren(!0,e,i))).length))),n=n._next;return r},i.getTweensOf=function(t,e){var i,s,r=this._gc,n=[],a=0;for(r&&this._enabled(!0,!0),s=(i=p.getTweensOf(t)).length;-1<--s;)(i[s].timeline===this||e&&this._contains(i[s]))&&(n[a++]=i[s]);return r&&this._enabled(!1,!0),n},i.recent=function(){return this._recent},i._contains=function(t){for(var e=t.timeline;e;){if(e===this)return!0;e=e.timeline}return!1},i.shiftChildren=function(t,e,i){i=i||0;for(var s,r=this._first,n=this._labels;r;)r._startTime>=i&&(r._startTime+=t),r=r._next;if(e)for(s in n)n[s]>=i&&(n[s]+=t);return this._uncache(!0)},i._kill=function(t,e){if(!t&&!e)return this._enabled(!1,!1);for(var i=e?this.getTweensOf(e):this.getChildren(!0,!0,!1),s=i.length,r=!1;-1<--s;)i[s]._kill(t,e)&&(r=!0);return r},i.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)},i.invalidate=function(){for(var t=this._first;t;)t.invalidate(),t=t._next;return _.prototype.invalidate.call(this)},i._enabled=function(t,e){if(t===this._gc)for(var i=this._first;i;)i._enabled(t,!0),i=i._next;return u.prototype._enabled.call(this,t,e)},i.totalTime=function(){this._forcingPlayhead=!0;var t=_.prototype.totalTime.apply(this,arguments);return this._forcingPlayhead=!1,t},i.duration=function(t){return arguments.length?(0!==this.duration()&&0!==t&&this.timeScale(this._duration/t),this):(this._dirty&&this.totalDuration(),this._duration)},i.totalDuration=function(t){if(arguments.length)return 0!==this.totalDuration()&&0!==t&&this.timeScale(this._totalDuration/t),this;if(this._dirty){for(var e,i,s=0,r=this._last,n=999999999999;r;)e=r._prev,r._dirty&&r.totalDuration(),r._startTime>n&&this._sortChildren&&!r._paused?this.add(r,r._startTime-r._delay):n=r._startTime,r._startTime<0&&!r._paused&&(s-=r._startTime,this._timeline.smoothChildTiming&&(this._startTime+=r._startTime/this._timeScale),this.shiftChildren(-r._startTime,!1,-9999999999),n=0),s<(i=r._startTime+r._totalDuration/r._timeScale)&&(s=i),r=e;this._duration=this._totalDuration=s,this._dirty=!1}return this._totalDuration},i.paused=function(t){if(!t)for(var e=this._first,i=this._time;e;)e._startTime===i&&"isPause"===e.data&&(e._rawPrevTime=0),e=e._next;return _.prototype.paused.apply(this,arguments)},i.usesFrames=function(){for(var t=this._timeline;t._timeline;)t=t._timeline;return t===_._rootFramesTimeline},i.rawTime=function(){return this._paused?this._totalTime:(this._timeline.rawTime()-this._startTime)*this._timeScale},c},!0),_gsScope._gsDefine("TimelineMax",["TimelineLite","TweenLite","easing.Ease"],function(e,a,t){function i(t){e.call(this,t),this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._cycle=0,this._yoyo=!0===this.vars.yoyo,this._dirty=!0}var P=1e-10,S=[],s=a._internals,R=s.lazyTweens,C=s.lazyRender,o=new t(null,null,1,0),r=i.prototype=new e;return r.constructor=i,r.kill()._gc=!1,i.version="1.16.1",r.invalidate=function(){return this._yoyo=!0===this.vars.yoyo,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),e.prototype.invalidate.call(this)},r.addCallback=function(t,e,i,s){return this.add(a.delayedCall(0,t,i,s),e)},r.removeCallback=function(t,e){if(t)if(null==e)this._kill(null,t);else for(var i=this.getTweensOf(t,!1),s=i.length,r=this._parseTimeOrLabel(e);-1<--s;)i[s]._startTime===r&&i[s]._enabled(!1,!1);return this},r.removePause=function(t){return this.removeCallback(e._internals.pauseCallback,t)},r.tweenTo=function(t,e){e=e||{};var i,s,r,n={ease:o,useFrames:this.usesFrames(),immediateRender:!1};for(s in e)n[s]=e[s];return n.time=this._parseTimeOrLabel(t),i=Math.abs(Number(n.time)-this._time)/this._timeScale||.001,r=new a(this,i,n),n.onStart=function(){r.target.paused(!0),r.vars.time!==r.target.time()&&i===r.duration()&&r.duration(Math.abs(r.vars.time-r.target.time())/r.target._timeScale),e.onStart&&e.onStart.apply(e.onStartScope||r,e.onStartParams||S)},r},r.tweenFromTo=function(t,e,i){i=i||{},t=this._parseTimeOrLabel(t),i.startAt={onComplete:this.seek,onCompleteParams:[t],onCompleteScope:this},i.immediateRender=!1!==i.immediateRender;var s=this.tweenTo(e,i);return s.duration(Math.abs(s.vars.time-t)/this._timeScale||.001)},r.render=function(t,e,i){this._gc&&this._enabled(!0,!1);var s,r,n,a,o,h,l=this._dirty?this.totalDuration():this._totalDuration,_=this._duration,u=this._time,p=this._totalTime,c=this._startTime,f=this._timeScale,d=this._rawPrevTime,m=this._paused,g=this._cycle;if(l<=t)this._locked||(this._totalTime=l,this._cycle=this._repeat),this._reversed||this._hasPausedChild()||(r=!0,a="onComplete",o=!!this._timeline.autoRemoveChildren,0===this._duration&&(0===t||d<0||d===P)&&d!==t&&this._first&&(o=!0,P<d&&(a="onReverseComplete"))),this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:P,this._yoyo&&0!=(1&this._cycle)?this._time=t=0:t=(this._time=_)+1e-4;else if(t<1e-7)if(this._locked||(this._totalTime=this._cycle=0),((this._time=0)!==u||0===_&&d!==P&&(0<d||t<0&&0<=d)&&!this._locked)&&(a="onReverseComplete",r=this._reversed),t<0)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(o=r=!0,a="onReverseComplete"):0<=d&&this._first&&(o=!0),this._rawPrevTime=t;else{if(this._rawPrevTime=_||!e||t||this._rawPrevTime===t?t:P,0===t&&r)for(s=this._first;s&&0===s._startTime;)s._duration||(r=!1),s=s._next;t=0,this._initted||(o=!0)}else 0===_&&d<0&&(o=!0),this._time=this._rawPrevTime=t,this._locked||(this._totalTime=t,0!==this._repeat&&(h=_+this._repeatDelay,this._cycle=this._totalTime/h>>0,0!==this._cycle&&this._cycle===this._totalTime/h&&this._cycle--,this._time=this._totalTime-this._cycle*h,this._yoyo&&0!=(1&this._cycle)&&(this._time=_-this._time),this._time>_?t=(this._time=_)+1e-4:this._time<0?this._time=t=0:t=this._time));if(this._cycle!==g&&!this._locked){var v=this._yoyo&&0!=(1&g),y=v===(this._yoyo&&0!=(1&this._cycle)),T=this._totalTime,x=this._cycle,w=this._rawPrevTime,b=this._time;if(this._totalTime=g*_,g>this._cycle?v=!v:this._totalTime+=_,this._time=u,this._rawPrevTime=0===_?d-1e-4:d,this._cycle=g,this._locked=!0,u=v?0:_,this.render(u,e,0===_),e||this._gc||this.vars.onRepeat&&this.vars.onRepeat.apply(this.vars.onRepeatScope||this,this.vars.onRepeatParams||S),y&&(u=v?_+1e-4:-1e-4,this.render(u,!0,!1)),this._locked=!1,this._paused&&!m)return;this._time=b,this._totalTime=T,this._cycle=x,this._rawPrevTime=w}if(this._time!==u&&this._first||i||o){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._totalTime!==p&&0<t&&(this._active=!0),0===p&&this.vars.onStart&&0!==this._totalTime&&(e||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||S)),this._time>=u)for(s=this._first;s&&(n=s._next,!this._paused||m);)(s._active||s._startTime<=this._time&&!s._paused&&!s._gc)&&(s._reversed?s.render((s._dirty?s.totalDuration():s._totalDuration)-(t-s._startTime)*s._timeScale,e,i):s.render((t-s._startTime)*s._timeScale,e,i)),s=n;else for(s=this._last;s&&(n=s._prev,!this._paused||m);)(s._active||u>=s._startTime&&!s._paused&&!s._gc)&&(s._reversed?s.render((s._dirty?s.totalDuration():s._totalDuration)-(t-s._startTime)*s._timeScale,e,i):s.render((t-s._startTime)*s._timeScale,e,i)),s=n;this._onUpdate&&(e||(R.length&&C(),this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||S))),a&&(this._locked||this._gc||(c===this._startTime||f!==this._timeScale)&&(0===this._time||l>=this.totalDuration())&&(r&&(R.length&&C(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[a]&&this.vars[a].apply(this.vars[a+"Scope"]||this,this.vars[a+"Params"]||S)))}else p!==this._totalTime&&this._onUpdate&&(e||this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||S))},r.getActive=function(t,e,i){null==t&&(t=!0),null==e&&(e=!0),null==i&&(i=!1);var s,r,n=[],a=this.getChildren(t,e,i),o=0,h=a.length;for(s=0;s<h;s++)(r=a[s]).isActive()&&(n[o++]=r);return n},r.getLabelAfter=function(t){t||0!==t&&(t=this._time);var e,i=this.getLabelsArray(),s=i.length;for(e=0;e<s;e++)if(i[e].time>t)return i[e].name;return null},r.getLabelBefore=function(t){null==t&&(t=this._time);for(var e=this.getLabelsArray(),i=e.length;-1<--i;)if(t>e[i].time)return e[i].name;return null},r.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},r.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()},r.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this._totalTime/this.totalDuration()},r.totalDuration=function(t){return arguments.length?-1===this._repeat?this:this.duration((t-this._repeat*this._repeatDelay)/(this._repeat+1)):(this._dirty&&(e.prototype.totalDuration.call(this),this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat),this._totalDuration)},r.time=function(t,e){return arguments.length?(this._dirty&&this.totalDuration(),t>this._duration&&(t=this._duration),this._yoyo&&0!=(1&this._cycle)?t=this._duration-t+this._cycle*(this._duration+this._repeatDelay):0!==this._repeat&&(t+=this._cycle*(this._duration+this._repeatDelay)),this.totalTime(t,e)):this._time},r.repeat=function(t){return arguments.length?(this._repeat=t,this._uncache(!0)):this._repeat},r.repeatDelay=function(t){return arguments.length?(this._repeatDelay=t,this._uncache(!0)):this._repeatDelay},r.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},r.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.getLabelBefore(this._time+1e-8)},i},!0),function(){function v(t,e,i,s){this.a=t,this.b=e,this.c=i,this.d=s,this.da=s-t,this.ca=i-t,this.ba=e-t}function x(t,e,i,s){var r={a:t},n={},a={},o={c:s},h=(t+e)/2,l=(e+i)/2,_=(i+s)/2,u=(h+l)/2,p=(l+_)/2,c=(p-u)/8;return r.b=h+(t-h)/4,n.b=u+c,r.c=n.a=(r.b+n.b)/2,n.c=a.a=(u+p)/2,a.b=p-c,o.b=_+(s-_)/4,a.c=o.a=(a.b+o.b)/2,[r,n,a,o]}function g(t,e,i,s,r){var n,a,o,h,l,_,u,p,c,f,d,m,g,v=t.length-1,y=0,T=t[0].a;for(n=0;n<v;n++)a=(l=t[y]).a,o=l.d,h=t[y+1].d,p=r?(d=w[n],g=.25*((m=P[n])+d)*e/(s?.5:S[n]||.5),o-((_=o-(o-a)*(s?.5*e:0!==d?g/d:0))+(((u=o+(h-o)*(s?.5*e:0!==m?g/m:0))-_)*(3*d/(d+m)+.5)/4||0))):o-((_=o-.5*(o-a)*e)+(u=o+.5*(h-o)*e))/2,_+=p,u+=p,l.c=c=_,l.b=0!==n?T:T=l.a+.6*(l.c-l.a),l.da=o-a,l.ca=c-a,l.ba=T-a,i?(f=x(a,T,c,o),t.splice(y,1,f[0],f[1],f[2],f[3]),y+=4):y++,T=u;(l=t[y]).b=T,l.c=T+.4*(l.d-T),l.da=l.d-l.a,l.ca=l.c-l.a,l.ba=T-l.a,i&&(f=x(l.a,T,l.c,l.d),t.splice(y,1,f[0],f[1],f[2],f[3]))}function y(t,e,i,s){var r,n,a,o,h,l,_=[];if(s)for(n=(t=[s].concat(t)).length;-1<--n;)"string"==typeof(l=t[n][e])&&"="===l.charAt(1)&&(t[n][e]=s[e]+Number(l.charAt(0)+l.substr(2)));if((r=t.length-2)<0)return _[0]=new v(t[0][e],0,0,t[r<-1?0:1][e]),_;for(n=0;n<r;n++)a=t[n][e],o=t[n+1][e],_[n]=new v(a,0,0,o),i&&(h=t[n+2][e],w[n]=(w[n]||0)+(o-a)*(o-a),P[n]=(P[n]||0)+(h-o)*(h-o));return _[n]=new v(t[n][e],0,0,t[n+1][e]),_}function c(t,e,i,s,r,n){var a,o,h,l,_,u,p,c,f={},d=[],m=n||t[0];for(o in r="string"==typeof r?","+r+",":",x,y,z,left,top,right,bottom,marginTop,marginLeft,marginRight,marginBottom,paddingLeft,paddingTop,paddingRight,paddingBottom,backgroundPosition,backgroundPosition_y,",null==e&&(e=1),t[0])d.push(o);if(1<t.length){for(c=t[t.length-1],p=!0,a=d.length;-1<--a;)if(o=d[a],.05<Math.abs(m[o]-c[o])){p=!1;break}p&&(t=t.concat(),n&&t.unshift(n),t.push(t[1]),n=t[t.length-3])}for(w.length=P.length=S.length=0,a=d.length;-1<--a;)o=d[a],T[o]=-1!==r.indexOf(","+o+","),f[o]=y(t,o,T[o],n);for(a=w.length;-1<--a;)w[a]=Math.sqrt(w[a]),P[a]=Math.sqrt(P[a]);if(!s){for(a=d.length;-1<--a;)if(T[o])for(u=(h=f[d[a]]).length-1,l=0;l<u;l++)_=h[l+1].da/P[l]+h[l].da/w[l],S[l]=(S[l]||0)+_*_;for(a=S.length;-1<--a;)S[a]=Math.sqrt(S[a])}for(a=d.length,l=i?4:1;-1<--a;)h=f[o=d[a]],g(h,e,i,s,T[o]),p&&(h.splice(0,l),h.splice(h.length-l,l));return f}function f(t,e,i){for(var s,r,n,a,o,h,l,_,u,p,c,f=1/i,d=t.length;-1<--d;)for(n=(p=t[d]).a,a=p.d-n,o=p.c-n,h=p.b-n,s=r=0,_=1;_<=i;_++)s=r-(r=((l=f*_)*l*a+3*(u=1-l)*(l*o+u*h))*l),e[c=d*i+_-1]=(e[c]||0)+s*s}var b=180/Math.PI,w=[],P=[],S=[],T={},i=_gsScope._gsDefine.globals,m=_gsScope._gsDefine.plugin({propName:"bezier",priority:-1,version:"1.3.4",API:2,global:!0,init:function(t,e,i){this._target=t,e instanceof Array&&(e={values:e}),this._func={},this._round={},this._props=[],this._timeRes=null==e.timeResolution?6:parseInt(e.timeResolution,10);var s,r,n,a,o,h=e.values||[],l={},_=h[0],u=e.autoRotate||i.vars.orientToBezier;for(s in this._autoRotate=u?u instanceof Array?u:[["x","y","rotation",!0===u?0:Number(u)||0]]:null,_)this._props.push(s);for(n=this._props.length;-1<--n;)s=this._props[n],this._overwriteProps.push(s),r=this._func[s]="function"==typeof t[s],l[s]=r?t[s.indexOf("set")||"function"!=typeof t["get"+s.substr(3)]?s:"get"+s.substr(3)]():parseFloat(t[s]),o||l[s]!==h[0][s]&&(o=l);if(this._beziers="cubic"!==e.type&&"quadratic"!==e.type&&"soft"!==e.type?c(h,isNaN(e.curviness)?1:e.curviness,!1,"thruBasic"===e.type,e.correlate,o):function(t,e,i){var s,r,n,a,o,h,l,_,u,p,c,f={},d="cubic"===(e=e||"soft")?3:2,m="soft"===e,g=[];if(m&&i&&(t=[i].concat(t)),null==t||1+d>t.length)throw"invalid Bezier data";for(u in t[0])g.push(u);for(h=g.length;-1<--h;){for(f[u=g[h]]=o=[],p=0,_=t.length,l=0;l<_;l++)s=null==i?t[l][u]:"string"==typeof(c=t[l][u])&&"="===c.charAt(1)?i[u]+Number(c.charAt(0)+c.substr(2)):Number(c),m&&1<l&&l<_-1&&(o[p++]=(s+o[p-2])/2),o[p++]=s;for(_=p-d+1,l=p=0;l<_;l+=d)s=o[l],r=o[l+1],n=o[l+2],a=2==d?0:o[l+3],o[p++]=c=3==d?new v(s,r,n,a):new v(s,(2*r+s)/3,(2*r+n)/3,n);o.length=p}return f}(h,e.type,l),this._segCount=this._beziers[s].length,this._timeRes){var p=function(t,e){var i,s,r,n,a=[],o=[],h=0,l=0,_=(e=e>>0||6)-1,u=[],p=[];for(i in t)f(t[i],a,e);for(r=a.length,s=0;s<r;s++)h+=Math.sqrt(a[s]),p[n=s%e]=h,n===_&&(l+=h,u[n=s/e>>0]=p,o[n]=l,h=0,p=[]);return{length:l,lengths:o,segments:u}}(this._beziers,this._timeRes);this._length=p.length,this._lengths=p.lengths,this._segments=p.segments,this._l1=this._li=this._s1=this._si=0,this._l2=this._lengths[0],this._curSeg=this._segments[0],this._s2=this._curSeg[0],this._prec=1/this._curSeg.length}if(u=this._autoRotate)for(this._initialRotations=[],u[0]instanceof Array||(this._autoRotate=u=[u]),n=u.length;-1<--n;){for(a=0;a<3;a++)s=u[n][a],this._func[s]="function"==typeof t[s]&&t[s.indexOf("set")||"function"!=typeof t["get"+s.substr(3)]?s:"get"+s.substr(3)];s=u[n][2],this._initialRotations[n]=this._func[s]?this._func[s].call(this._target):this._target[s]}return this._startRatio=i.vars.runBackwards?1:0,!0},set:function(t){var e,i,s,r,n,a,o,h,l,_,u=this._segCount,p=this._func,c=this._target,f=t!==this._startRatio;if(this._timeRes){if(l=this._lengths,_=this._curSeg,t*=this._length,s=this._li,t>this._l2&&s<u-1){for(h=u-1;s<h&&t>=(this._l2=l[++s]););this._l1=l[s-1],this._li=s,this._curSeg=_=this._segments[s],this._s2=_[this._s1=this._si=0]}else if(this._l1>t&&0<s){for(;0<s&&(this._l1=l[--s])>=t;);0===s&&this._l1>t?this._l1=0:s++,this._l2=l[s],this._li=s,this._curSeg=_=this._segments[s],this._s1=_[(this._si=_.length-1)-1]||0,this._s2=_[this._si]}if(e=s,t-=this._l1,s=this._si,t>this._s2&&_.length-1>s){for(h=_.length-1;s<h&&t>=(this._s2=_[++s]););this._s1=_[s-1],this._si=s}else if(this._s1>t&&0<s){for(;0<s&&(this._s1=_[--s])>=t;);0===s&&this._s1>t?this._s1=0:s++,this._s2=_[s],this._si=s}a=(s+(t-this._s1)/(this._s2-this._s1))*this._prec}else a=(t-(e=t<0?0:1<=t?u-1:u*t>>0)*(1/u))*u;for(i=1-a,s=this._props.length;-1<--s;)r=this._props[s],o=(a*a*(n=this._beziers[r][e]).da+3*i*(a*n.ca+i*n.ba))*a+n.a,this._round[r]&&(o=Math.round(o)),p[r]?c[r](o):c[r]=o;if(this._autoRotate){var d,m,g,v,y,T,x,w=this._autoRotate;for(s=w.length;-1<--s;)r=w[s][2],T=w[s][3]||0,x=!0===w[s][4]?1:b,n=this._beziers[w[s][0]],d=this._beziers[w[s][1]],n&&d&&(n=n[e],d=d[e],m=n.a+(n.b-n.a)*a,m+=((v=n.b+(n.c-n.b)*a)-m)*a,v+=(n.c+(n.d-n.c)*a-v)*a,g=d.a+(d.b-d.a)*a,g+=((y=d.b+(d.c-d.b)*a)-g)*a,y+=(d.c+(d.d-d.c)*a-y)*a,o=f?Math.atan2(y-g,v-m)*x+T:this._initialRotations[s],p[r]?c[r](o):c[r]=o)}}}),t=m.prototype;m.bezierThrough=c,m.cubicToQuadratic=x,m._autoCSS=!0,m.quadraticToCubic=function(t,e,i){return new v(t,(2*e+t)/3,(2*e+i)/3,i)},m._cssRegister=function(){var t=i.CSSPlugin;if(t){var e=t._internals,c=e._parseToProxy,f=e._setPluginRatio,d=e.CSSPropTween;e._registerComplexSpecialProp("bezier",{parser:function(t,e,i,s,r,n){e instanceof Array&&(e={values:e}),n=new m;var a,o,h,l=e.values,_=l.length-1,u=[],p={};if(_<0)return r;for(a=0;a<=_;a++)h=c(t,l[a],s,r,n,_!==a),u[a]=h.end;for(o in e)p[o]=e[o];return p.values=u,(r=new d(t,"bezier",0,0,h.pt,2)).data=h,r.plugin=n,r.setRatio=f,0===p.autoRotate&&(p.autoRotate=!0),!p.autoRotate||p.autoRotate instanceof Array||(a=!0===p.autoRotate?0:Number(p.autoRotate),p.autoRotate=null!=h.end.left?[["left","top","rotation",a,!1]]:null!=h.end.x&&[["x","y","rotation",a,!1]]),p.autoRotate&&(s._transform||s._enableTransforms(!1),h.autoRotate=s._target._gsTransform),n._onInitTween(h.proxy,p,s._tween),r}})}},t._roundProps=function(t,e){for(var i=this._overwriteProps,s=i.length;-1<--s;)(t[i[s]]||t.bezier||t.bezierThrough)&&(this._round[i[s]]=e)},t._kill=function(t){var e,i,s=this._props;for(e in this._beziers)if(e in t)for(delete this._beziers[e],delete this._func[e],i=s.length;-1<--i;)s[i]===e&&s.splice(i,1);return this._super._kill.call(this,t)}}(),_gsScope._gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(n,c){var f,b,V,d,q=function(){n.call(this,"css"),this._overwriteProps.length=0,this.setRatio=q.prototype.setRatio},l=_gsScope._gsDefine.globals,m={},t=q.prototype=new n("css");(t.constructor=q).version="1.16.1",q.API=2,q.defaultTransformPerspective=0,q.defaultSkewType="compensated",t="px",q.suffixMap={top:t,right:t,bottom:t,left:t,width:t,height:t,fontSize:t,padding:t,margin:t,perspective:t,lineHeight:""};function a(t,e){return e.toUpperCase()}function e(t){return Q.createElementNS?Q.createElementNS("http://www.w3.org/1999/xhtml",t):Q.createElement(t)}function o(t){return I.test("string"==typeof t?t:(t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?parseFloat(RegExp.$1)/100:1}function g(t){window.console&&console.log(t)}function P(t,e){var i,s,r=(e=e||K).style;if(void 0!==r[t])return t;for(t=t.charAt(0).toUpperCase()+t.substr(1),i=["O","Moz","ms","Ms","Webkit"],s=5;-1<--s&&void 0===r[i[s]+t];);return 0<=s?(it="-"+(st=3===s?"ms":i[s]).toLowerCase()+"-",st+t):null}function v(t,e){var i,s,r,n={};if(e=e||rt(t,null))if(i=e.length)for(;-1<--i;)(-1===(r=e[i]).indexOf("-transform")||Mt===r)&&(n[r.replace(E,a)]=e.getPropertyValue(r));else for(i in e)(-1===i.indexOf("Transform")||Dt===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(E,a)]=e[i]);return et||(n.opacity=o(t)),s=Nt(t,e,!1),n.rotation=s.rotation,n.skewX=s.skewX,n.scaleX=s.scaleX,n.scaleY=s.scaleY,n.x=s.x,n.y=s.y,Xt&&(n.z=s.z,n.rotationX=s.rotationX,n.rotationY=s.rotationY,n.scaleZ=s.scaleZ),n.filters&&delete n.filters,n}function y(t,e,i,s,r){var n,a,o,h={},l=t.style;for(a in i)"cssText"!==a&&"length"!==a&&isNaN(a)&&(e[a]!==(n=i[a])||r&&r[a])&&-1===a.indexOf("Origin")&&("number"==typeof n||"string"==typeof n)&&(h[a]="auto"!==n||"left"!==a&&"top"!==a?""!==n&&"auto"!==n&&"none"!==n||"string"!=typeof e[a]||""===e[a].replace(_,"")?n:0:ot(t,a),void 0!==l[a]&&(o=new dt(l,a,l[a],o)));if(s)for(a in s)"className"!==a&&(h[a]=s[a]);return{difs:h,firstMPT:o}}function T(t,e,i){var s=parseFloat("width"===e?t.offsetWidth:t.offsetHeight),r=ht[e],n=r.length;for(i=i||rt(t,null);-1<--n;)s-=parseFloat(nt(t,"padding"+r[n],i,!0))||0,s-=parseFloat(nt(t,"border"+r[n]+"Width",i,!0))||0;return s}function x(t,e){(null==t||""===t||"auto"===t||"auto auto"===t)&&(t="0 0");var i=t.split(" "),s=-1!==t.indexOf("left")?"0%":-1!==t.indexOf("right")?"100%":i[0],r=-1!==t.indexOf("top")?"0%":-1!==t.indexOf("bottom")?"100%":i[1];return null==r?r="center"===s?"50%":"0":"center"===r&&(r="50%"),("center"===s||isNaN(parseFloat(s))&&-1===(s+"").indexOf("="))&&(s="50%"),t=s+" "+r+(2<i.length?" "+i[2]:""),e&&(e.oxp=-1!==s.indexOf("%"),e.oyp=-1!==r.indexOf("%"),e.oxr="="===s.charAt(1),e.oyr="="===r.charAt(1),e.ox=parseFloat(s.replace(_,"")),e.oy=parseFloat(r.replace(_,"")),e.v=t),e||t}function R(t,e){return"string"==typeof t&&"="===t.charAt(1)?parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2)):parseFloat(t)-parseFloat(e)}function w(t,e){return null==t?e:"string"==typeof t&&"="===t.charAt(1)?parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2))+e:parseFloat(t)}function S(t,e,i,s){var r,n,a,o,h;return(o=null==t?e:"number"==typeof t?t:(r=360,n=t.split("_"),a=((h="="===t.charAt(1))?parseInt(t.charAt(0)+"1",10)*parseFloat(n[0].substr(2)):parseFloat(n[0]))*(-1===t.indexOf("rad")?1:G)-(h?0:e),n.length&&(s&&(s[i]=e+a),-1!==t.indexOf("short")&&((a%=r)!==a%180&&(a=a<0?a+r:a-r)),-1!==t.indexOf("_cw")&&a<0?a=(a+3599999999640)%r-(0|a/r)*r:-1!==t.indexOf("ccw")&&0<a&&(a=(a-3599999999640)%r-(0|a/r)*r)),e+a))<1e-6&&-1e-6<o&&(o=0),o}function h(t,e,i){return 0|255*(6*(t=t<0?t+1:1<t?t-1:t)<1?e+6*(i-e)*t:t<.5?i:3*t<2?e+6*(i-e)*(2/3-t):e)+.5}var C,O,k,Y,A,D,i,s,M=/(?:\d|\-\d|\.\d|\-\.\d)+/g,z=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,X=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,_=/(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g,F=/(?:\d|\-|\+|=|#|\.)*/g,I=/opacity *= *([^)]*)/i,L=/opacity:([^;]*)/i,u=/alpha\(opacity *=.+?\)/i,N=/^(rgb|hsl)/,p=/([A-Z])/g,E=/-([a-z])/gi,B=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,U=/(?:Left|Right|Width)/i,Z=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,j=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,W=/,(?=[^\)]*(?:\(|$))/gi,H=Math.PI/180,G=180/Math.PI,$={},Q=document,K=e("div"),J=e("img"),r=q._internals={_specialProps:m},tt=navigator.userAgent,et=(i=tt.indexOf("Android"),s=e("a"),k=-1!==tt.indexOf("Safari")&&-1===tt.indexOf("Chrome")&&(-1===i||3<Number(tt.substr(i+8,1))),A=k&&Number(tt.substr(tt.indexOf("Version/")+8,1))<6,Y=-1!==tt.indexOf("Firefox"),(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(tt)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(tt))&&(D=parseFloat(RegExp.$1)),!!s&&(s.style.cssText="top:1px;opacity:.55;",/^0.55/.test(s.style.opacity))),it="",st="",rt=Q.defaultView?Q.defaultView.getComputedStyle:function(){},nt=q.getStyle=function(t,e,i,s,r){var n;return et||"opacity"!==e?(!s&&t.style[e]?n=t.style[e]:(i=i||rt(t))?n=i[e]||i.getPropertyValue(e)||i.getPropertyValue(e.replace(p,"-$1").toLowerCase()):t.currentStyle&&(n=t.currentStyle[e]),null==r||n&&"none"!==n&&"auto"!==n&&"auto auto"!==n?n:r):o(t)},at=r.convertToPixels=function(t,e,i,s,r){if("px"===s||!s)return i;if("auto"===s||!i)return 0;var n,a,o,h=U.test(e),l=t,_=K.style,u=i<0;if(u&&(i=-i),"%"===s&&-1!==e.indexOf("border"))n=i/100*(h?t.clientWidth:t.clientHeight);else{if(_.cssText="border:0 solid red;position:"+nt(t,"position")+";line-height:0;","%"!==s&&l.appendChild)_[h?"borderLeftWidth":"borderTopWidth"]=i+s;else{if(a=(l=t.parentNode||Q.body)._gsCache,o=c.ticker.frame,a&&h&&a.time===o)return a.width*i/100;_[h?"width":"height"]=i+s}l.appendChild(K),n=parseFloat(K[h?"offsetWidth":"offsetHeight"]),l.removeChild(K),h&&"%"===s&&!1!==q.cacheWidths&&((a=l._gsCache=l._gsCache||{}).time=o,a.width=n/i*100),0!==n||r||(n=at(t,e,i,s,!0))}return u?-n:n},ot=r.calculateOffset=function(t,e,i){if("absolute"!==nt(t,"position",i))return 0;var s="left"===e?"Left":"Top",r=nt(t,"margin"+s,i);return t["offset"+s]-(at(t,e,parseFloat(r),r.replace(F,""))||0)},ht={width:["Left","Right"],height:["Top","Bottom"]},lt=["marginLeft","marginRight","marginTop","marginBottom"],_t={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]},ut=q.parseColor=function(t){var e,i,s,r,n,a;return t&&""!==t?"number"==typeof t?[t>>16,255&t>>8,255&t]:(","===t.charAt(t.length-1)&&(t=t.substr(0,t.length-1)),_t[t]?_t[t]:"#"===t.charAt(0)?(4===t.length&&(t="#"+(e=t.charAt(1))+e+(i=t.charAt(2))+i+(s=t.charAt(3))+s),[(t=parseInt(t.substr(1),16))>>16,255&t>>8,255&t]):("hsl"===t.substr(0,3)?(t=t.match(M),r=Number(t[0])%360/360,n=Number(t[1])/100,e=2*(a=Number(t[2])/100)-(i=a<=.5?a*(1+n):a+n-a*n),3<t.length&&(t[3]=Number(t[3])),t[0]=h(r+1/3,e,i),t[1]=h(r,e,i),t[2]=h(r-1/3,e,i)):((t=t.match(M)||_t.transparent)[0]=Number(t[0]),t[1]=Number(t[1]),t[2]=Number(t[2]),3<t.length&&(t[3]=Number(t[3]))),t)):_t.black},pt="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#.+?\\b";for(t in _t)pt+="|"+t+"\\b";pt=RegExp(pt+")","gi");function ct(t,e,n,a){if(null==t)return function(t){return t};var o,h=e?(t.match(pt)||[""])[0]:"",l=t.split(h).join("").match(X)||[],_=t.substr(0,t.indexOf(l[0])),u=")"===t.charAt(t.length-1)?")":"",p=-1!==t.indexOf(" ")?" ":",",c=l.length,f=0<c?l[0].replace(M,""):"";return c?o=e?function(t){var e,i,s,r;if("number"==typeof t)t+=f;else if(a&&W.test(t)){for(r=t.replace(W,"|").split("|"),s=0;r.length>s;s++)r[s]=o(r[s]);return r.join(",")}if(e=(t.match(pt)||[h])[0],s=(i=t.split(e).join("").match(X)||[]).length,c>s--)for(;c>++s;)i[s]=n?i[0|(s-1)/2]:l[s];return _+i.join(p)+p+e+u+(-1!==t.indexOf("inset")?" inset":"")}:function(t){var e,i,s;if("number"==typeof t)t+=f;else if(a&&W.test(t)){for(i=t.replace(W,"|").split("|"),s=0;i.length>s;s++)i[s]=o(i[s]);return i.join(",")}if(s=(e=t.match(X)||[]).length,c>s--)for(;c>++s;)e[s]=n?e[0|(s-1)/2]:l[s];return _+e.join(p)+u}:function(t){return t}}function ft(l){return l=l.split(","),function(t,e,i,s,r,n,a){var o,h=(e+"").split(" ");for(a={},o=0;o<4;o++)a[l[o]]=h[o]=h[o]||h[(o-1)/2>>0];return s.parse(t,a,r,n)}}var dt=(r._setPluginRatio=function(t){this.plugin.setRatio(t);for(var e,i,s,r,n=this.data,a=n.proxy,o=n.firstMPT;o;)e=a[o.v],o.r?e=Math.round(e):e<1e-6&&-1e-6<e&&(e=0),o.t[o.p]=e,o=o._next;if(n.autoRotate&&(n.autoRotate.rotation=a.rotation),1===t)for(o=n.firstMPT;o;){if((i=o.t).type){if(1===i.type){for(r=i.xs0+i.s+i.xs1,s=1;i.l>s;s++)r+=i["xn"+s]+i["xs"+(s+1)];i.e=r}}else i.e=i.s+i.xs0;o=o._next}},function(t,e,i,s,r){this.t=t,this.p=e,this.v=i,this.r=r,s&&((s._prev=this)._next=s)}),mt=(r._parseToProxy=function(t,e,i,s,r,n){var a,o,h,l,_,u=s,p={},c={},f=i._transform,d=$;for(i._transform=null,$=e,s=_=i.parse(t,e,s,r),$=d,n&&(i._transform=f,u&&(u._prev=null,u._prev&&(u._prev._next=null)));s&&s!==u;){if(s.type<=1&&(c[o=s.p]=s.s+s.c,p[o]=s.s,n||(l=new dt(s,"s",o,l,s.r),s.c=0),1===s.type))for(a=s.l;0<--a;)h="xn"+a,c[o=s.p+"_"+h]=s.data[h],p[o]=s[h],n||(l=new dt(s,h,o,l,s.rxp[h]));s=s._next}return{proxy:p,end:c,firstMPT:l,pt:_}},r.CSSPropTween=function(t,e,i,s,r,n,a,o,h,l,_){this.t=t,this.p=e,this.s=i,this.c=s,this.n=a||e,t instanceof mt||d.push(this.n),this.r=o,this.type=n||0,h&&(this.pr=h,f=!0),this.b=void 0===l?i:l,this.e=void 0===_?i+s:_,r&&((this._next=r)._prev=this)}),gt=q.parseComplex=function(t,e,i,s,r,n,a,o,h,l){a=new mt(t,e,0,0,a,l?2:1,null,!1,o,i=i||n||"",s),s+="";var _,u,p,c,f,d,m,g,v,y,T,x,w=i.split(", ").join(",").split(" "),b=s.split(", ").join(",").split(" "),P=w.length,S=!1!==C;for((-1!==s.indexOf(",")||-1!==i.indexOf(","))&&(w=w.join(" ").replace(W,", ").split(" "),b=b.join(" ").replace(W,", ").split(" "),P=w.length),P!==b.length&&(P=(w=(n||"").split(" ")).length),a.plugin=h,a.setRatio=l,_=0;_<P;_++)if(c=w[_],f=b[_],(g=parseFloat(c))||0===g)a.appendXtra("",g,R(f,g),f.replace(z,""),S&&-1!==f.indexOf("px"),!0);else if(r&&("#"===c.charAt(0)||_t[c]||N.test(c)))x=","===f.charAt(f.length-1)?"),":")",c=ut(c),f=ut(f),(v=6<c.length+f.length)&&!et&&0===f[3]?(a["xs"+a.l]+=a.l?" transparent":"transparent",a.e=a.e.split(b[_]).join("transparent")):(et||(v=!1),a.appendXtra(v?"rgba(":"rgb(",c[0],f[0]-c[0],",",!0,!0).appendXtra("",c[1],f[1]-c[1],",",!0).appendXtra("",c[2],f[2]-c[2],v?",":x,!0),v&&(c=c.length<4?1:c[3],a.appendXtra("",c,(f.length<4?1:f[3])-c,x,!1)));else if(d=c.match(M)){if(!(m=f.match(z))||m.length!==d.length)return a;for(u=p=0;d.length>u;u++)T=d[u],y=c.indexOf(T,p),a.appendXtra(c.substr(p,y-p),Number(T),R(m[u],T),"",S&&"px"===c.substr(y+T.length,2),0===u),p=y+T.length;a["xs"+a.l]+=c.substr(p)}else a["xs"+a.l]+=a.l?" "+c:c;if(-1!==s.indexOf("=")&&a.data){for(x=a.xs0+a.data.s,_=1;a.l>_;_++)x+=a["xs"+_]+a.data["xn"+_];a.e=x+a["xs"+_]}return a.l||(a.type=-1,a.xs0=a.e),a.xfirst||a},vt=9;for((t=mt.prototype).l=t.pr=0;0<--vt;)t["xn"+vt]=0,t["xs"+vt]="";t.xs0="",t._next=t._prev=t.xfirst=t.data=t.plugin=t.setRatio=t.rxp=null,t.appendXtra=function(t,e,i,s,r,n){var a=this,o=a.l;return a["xs"+o]+=n&&o?" "+t:t||"",i||0===o||a.plugin?(a.l++,a.type=a.setRatio?2:1,a["xs"+a.l]=s||"",0<o?(a.data["xn"+o]=e+i,a.rxp["xn"+o]=r,a["xn"+o]=e,a.plugin||(a.xfirst=new mt(a,"xn"+o,e,i,a.xfirst||a,0,a.n,r,a.pr),a.xfirst.xs0=0)):(a.data={s:e+i},a.rxp={},a.s=e,a.c=i,a.r=r)):a["xs"+o]+=e+(s||""),a};function yt(t,e){e=e||{},this.p=e.prefix&&P(t)||t,m[t]=m[this.p]=this,this.format=e.formatter||ct(e.defaultValue,e.color,e.collapsible,e.multi),e.parser&&(this.parse=e.parser),this.clrs=e.color,this.multi=e.multi,this.keyword=e.keyword,this.dflt=e.defaultValue,this.pr=e.priority||0}function Tt(t){if(!m[t]){var h=t.charAt(0).toUpperCase()+t.substr(1)+"Plugin";xt(t,{parser:function(t,e,i,s,r,n,a){var o=l.com.greensock.plugins[h];return o?(o._cssRegister(),m[i].parse(t,e,i,s,r,n,a)):(g("Error: "+h+" js file not loaded."),r)}})}}var xt=r._registerComplexSpecialProp=function(t,e,i){"object"!=typeof e&&(e={parser:i});var s,r=t.split(","),n=e.defaultValue;for(i=i||[n],s=0;r.length>s;s++)e.prefix=0===s&&e.prefix,e.defaultValue=i[s]||n,new yt(r[s],e)};(t=yt.prototype).parseComplex=function(t,e,i,s,r,n){var a,o,h,l,_,u,p=this.keyword;if(this.multi&&(W.test(i)||W.test(e)?(o=e.replace(W,"|").split("|"),h=i.replace(W,"|").split("|")):p&&(o=[e],h=[i])),h){for(l=h.length>o.length?h.length:o.length,a=0;a<l;a++)e=o[a]=o[a]||this.dflt,i=h[a]=h[a]||this.dflt,p&&((_=e.indexOf(p))!==(u=i.indexOf(p))&&(-1===u?o[a]=o[a].split(p).join(""):-1===_&&(o[a]+=" "+p)));e=o.join(", "),i=h.join(", ")}return gt(t,this.p,e,i,this.clrs,this.dflt,s,this.pr,r,n)},t.parse=function(t,e,i,s,r,n){return this.parseComplex(t.style,this.format(nt(t,this.p,V,!1,this.dflt)),this.format(e),r,n)},q.registerSpecialProp=function(t,o,h){xt(t,{parser:function(t,e,i,s,r,n){var a=new mt(t,i,0,0,r,2,i,!1,h);return a.plugin=n,a.setRatio=o(t,e,s._tween,i),a},priority:h})},q.useSVGTransformAttr=k;function wt(t,e,i){var s,r=Q.createElementNS("http://www.w3.org/2000/svg",t),n=/([a-z])([A-Z])/g;for(s in i)r.setAttributeNS(null,s.replace(n,"$1-$2").toLowerCase(),i[s]);return e.appendChild(r),r}function bt(t,e,i,s){var r,n;s&&(n=s.split(" ")).length||(r=t.getBBox(),n=[(-1!==(e=x(e).split(" "))[0].indexOf("%")?parseFloat(e[0])/100*r.width:parseFloat(e[0]))+r.x,(-1!==e[1].indexOf("%")?parseFloat(e[1])/100*r.height:parseFloat(e[1]))+r.y]),i.xOrigin=parseFloat(n[0]),i.yOrigin=parseFloat(n[1]),t.setAttribute("data-svg-origin",n.join(" "))}function Pt(t){var e,i,s=this.data,r=-s.rotation*H,n=r+s.skewX*H,a=1e5,o=(0|Math.cos(r)*s.scaleX*a)/a,h=(0|Math.sin(r)*s.scaleX*a)/a,l=(0|Math.sin(n)*-s.scaleY*a)/a,_=(0|Math.cos(n)*s.scaleY*a)/a,u=this.t.style,p=this.t.currentStyle;if(p){i=h,h=-l,l=-i,e=p.filter,u.filter="";var c,f,d=this.t.offsetWidth,m=this.t.offsetHeight,g="absolute"!==p.position,v="progid:DXImageTransform.Microsoft.Matrix(M11="+o+", M12="+h+", M21="+l+", M22="+_,y=s.x+d*s.xPercent/100,T=s.y+m*s.yPercent/100;if(null!=s.ox&&(y+=(c=(s.oxp?.01*d*s.ox:s.ox)-d/2)-(c*o+(f=(s.oyp?.01*m*s.oy:s.oy)-m/2)*h),T+=f-(c*l+f*_)),g?v+=", Dx="+((c=d/2)-(c*o+(f=m/2)*h)+y)+", Dy="+(f-(c*l+f*_)+T)+")":v+=", sizingMethod='auto expand')",u.filter=-1!==e.indexOf("DXImageTransform.Microsoft.Matrix(")?e.replace(j,v):v+" "+e,(0===t||1===t)&&1==o&&0===h&&0===l&&1==_&&(g&&-1===v.indexOf("Dx=0, Dy=0")||I.test(e)&&100!==parseFloat(RegExp.$1)||-1===e.indexOf(e.indexOf("Alpha"))&&u.removeAttribute("filter")),!g){var x,w,b,P=D<8?1:-1;for(c=s.ieOffsetX||0,f=s.ieOffsetY||0,s.ieOffsetX=Math.round((d-((o<0?-o:o)*d+(h<0?-h:h)*m))/2+y),s.ieOffsetY=Math.round((m-((_<0?-_:_)*m+(l<0?-l:l)*d))/2+T),vt=0;vt<4;vt++)b=(i=-1!==(x=p[w=lt[vt]]).indexOf("px")?parseFloat(x):at(this.t,w,parseFloat(x),x.replace(F,""))||0)!==s[w]?vt<2?-s.ieOffsetX:-s.ieOffsetY:vt<2?c-s.ieOffsetX:f-s.ieOffsetY,u[w]=(s[w]=Math.round(i-b*(0===vt||2===vt?1:P)))+"px"}}}var St,Rt,Ct,Ot,kt,At="scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent".split(","),Dt=P("transform"),Mt=it+"transform",zt=P("transformOrigin"),Xt=null!==P("perspective"),Ft=r.Transform=function(){this.perspective=parseFloat(q.defaultTransformPerspective)||0,this.force3D=!(!1===q.defaultForce3D||!Xt)&&(q.defaultForce3D||"auto")},It=window.SVGElement,Lt=Q.documentElement,Yt=(kt=D||/Android/i.test(tt)&&!window.chrome,Q.createElementNS&&!kt&&(Rt=wt("svg",Lt),Ot=(Ct=wt("rect",Rt,{width:100,height:50,x:100})).getBoundingClientRect().width,Ct.style[zt]="50% 50%",Ct.style[Dt]="scaleX(0.5)",kt=Ot===Ct.getBoundingClientRect().width&&!(Y&&Xt),Lt.removeChild(Rt)),kt),Nt=r.getTransform=function(t,e,i,s){if(t._gsTransform&&i&&!s)return t._gsTransform;var r,n,a,o,h,l,_,u,p,c,f=i&&t._gsTransform||new Ft,d=f.scaleX<0,m=1e5,g=Xt&&(parseFloat(nt(t,zt,e,!1,"0 0 0").split(" ")[2])||f.zOrigin)||0,v=parseFloat(q.defaultTransformPerspective)||0;if(Dt?n=nt(t,Mt,e,!0):t.currentStyle&&(n=(n=t.currentStyle.filter.match(Z))&&4===n.length?[n[0].substr(4),Number(n[2].substr(4)),Number(n[1].substr(4)),n[3].substr(4),f.x||0,f.y||0].join(","):""),r=!n||"none"===n||"matrix(1, 0, 0, 1, 0, 0)"===n,f.svg=!!(It&&"function"==typeof t.getBBox&&t.getCTM&&(!t.parentNode||t.parentNode.getBBox&&t.parentNode.getCTM)),f.svg&&(r&&-1!==(t.style[Dt]+"").indexOf("matrix")&&(n=t.style[Dt],r=!1),bt(t,nt(t,zt,V,!1,"50% 50%")+"",f,t.getAttribute("data-svg-origin")),St=q.useSVGTransformAttr||Yt,a=t.getAttribute("transform"),r&&a&&-1!==a.indexOf("matrix")&&(n=a,r=0)),!r){for(o=(a=(n||"").match(/(?:\-|\b)[\d\-\.e]+\b/gi)||[]).length;-1<--o;)h=Number(a[o]),a[o]=(l=h-(h|=0))?(0|l*m+(l<0?-.5:.5))/m+h:h;if(16===a.length){var y,T,x,w,b,P=a[0],S=a[1],R=a[2],C=a[3],O=a[4],k=a[5],A=a[6],D=a[7],M=a[8],z=a[9],X=a[10],F=a[12],I=a[13],L=a[14],Y=a[11],N=Math.atan2(A,X);f.zOrigin&&(F=M*(L=-f.zOrigin)-a[12],I=z*L-a[13],L=X*L+f.zOrigin-a[14]),f.rotationX=N*G,N&&(y=O*(w=Math.cos(-N))+M*(b=Math.sin(-N)),T=k*w+z*b,x=A*w+X*b,M=O*-b+M*w,z=k*-b+z*w,X=A*-b+X*w,Y=D*-b+Y*w,O=y,k=T,A=x),N=Math.atan2(M,X),f.rotationY=N*G,N&&(T=S*(w=Math.cos(-N))-z*(b=Math.sin(-N)),x=R*w-X*b,z=S*b+z*w,X=R*b+X*w,Y=C*b+Y*w,P=y=P*w-M*b,S=T,R=x),N=Math.atan2(S,P),f.rotation=N*G,N&&(P=P*(w=Math.cos(-N))+O*(b=Math.sin(-N)),T=S*w+k*b,k=S*-b+k*w,A=R*-b+A*w,S=T),f.rotationX&&359.9<Math.abs(f.rotationX)+Math.abs(f.rotation)&&(f.rotationX=f.rotation=0,f.rotationY+=180),f.scaleX=(0|Math.sqrt(P*P+S*S)*m+.5)/m,f.scaleY=(0|Math.sqrt(k*k+z*z)*m+.5)/m,f.scaleZ=(0|Math.sqrt(A*A+X*X)*m+.5)/m,f.skewX=0,f.perspective=Y?1/(Y<0?-Y:Y):0,f.x=F,f.y=I,f.z=L,f.svg&&(f.x-=f.xOrigin-(f.xOrigin*P-f.yOrigin*O),f.y-=f.yOrigin-(f.yOrigin*S-f.xOrigin*k))}else if(!(Xt&&!s&&a.length&&f.x===a[4]&&f.y===a[5]&&(f.rotationX||f.rotationY)||void 0!==f.x&&"none"===nt(t,"display",e))){var E=6<=a.length,B=E?a[0]:1,U=a[1]||0,j=a[2]||0,W=E?a[3]:1;f.x=a[4]||0,f.y=a[5]||0,_=Math.sqrt(B*B+U*U),u=Math.sqrt(W*W+j*j),p=B||U?Math.atan2(U,B)*G:f.rotation||0,c=j||W?Math.atan2(j,W)*G+p:f.skewX||0,90<Math.abs(c)&&Math.abs(c)<270&&(d?(_*=-1,c+=p<=0?180:-180,p+=p<=0?180:-180):(u*=-1,c+=c<=0?180:-180)),f.scaleX=_,f.scaleY=u,f.rotation=p,f.skewX=c,Xt&&(f.rotationX=f.rotationY=f.z=0,f.perspective=v,f.scaleZ=1),f.svg&&(f.x-=f.xOrigin-(f.xOrigin*B-f.yOrigin*U),f.y-=f.yOrigin-(f.yOrigin*W-f.xOrigin*j))}for(o in f.zOrigin=g,f)f[o]<2e-5&&-2e-5<f[o]&&(f[o]=0)}return i&&((t._gsTransform=f).svg&&(St&&t.style[Dt]?jt(t.style,Dt):!St&&t.getAttribute("transform")&&t.removeAttribute("transform"))),f},Et=r.set3DTransformRatio=r.setTransformRatio=function(t){var e,i,s,r,n,a,o,h,l,_,u,p,c,f,d,m,g,v,y,T,x,w,b,P=this.data,S=this.t.style,R=P.rotation,C=P.rotationX,O=P.rotationY,k=P.scaleX,A=P.scaleY,D=P.scaleZ,M=P.x,z=P.y,X=P.z,F=P.svg,I=P.perspective,L=P.force3D;if(!((1!==t&&0!==t||"auto"!==L||this.tween._totalTime!==this.tween._totalDuration&&this.tween._totalTime)&&L||X||I||O||C)||St&&F||!Xt)R||P.skewX||F?(R*=H,w=P.skewX*H,b=1e5,e=Math.cos(R)*k,r=Math.sin(R)*k,i=Math.sin(R-w)*-A,n=Math.cos(R-w)*A,w&&"simple"===P.skewType&&(g=Math.tan(w),i*=g=Math.sqrt(1+g*g),n*=g),F&&((M+=P.xOrigin-(P.xOrigin*e+P.yOrigin*i))<(f=1e-6)&&-f<M&&(M=0),(z+=P.yOrigin-(P.xOrigin*r+P.yOrigin*n))<f&&-f<z&&(z=0)),y=(0|e*b)/b+","+(0|r*b)/b+","+(0|i*b)/b+","+(0|n*b)/b+","+M+","+z+")",F&&St?this.t.setAttribute("transform","matrix("+y):S[Dt]=(P.xPercent||P.yPercent?"translate("+P.xPercent+"%,"+P.yPercent+"%) matrix(":"matrix(")+y):S[Dt]=(P.xPercent||P.yPercent?"translate("+P.xPercent+"%,"+P.yPercent+"%) matrix(":"matrix(")+k+",0,0,"+A+","+M+","+z+")";else{if(Y&&(k<(f=1e-4)&&-f<k&&(k=D=2e-5),A<f&&-f<A&&(A=D=2e-5),!I||P.z||P.rotationX||P.rotationY||(I=0)),R||P.skewX)R*=H,d=e=Math.cos(R),m=r=Math.sin(R),P.skewX&&(R-=P.skewX*H,d=Math.cos(R),m=Math.sin(R),"simple"===P.skewType&&(g=Math.tan(P.skewX*H),d*=g=Math.sqrt(1+g*g),m*=g)),i=-m,n=d;else{if(!(O||C||1!==D||I||F))return void(S[Dt]=(P.xPercent||P.yPercent?"translate("+P.xPercent+"%,"+P.yPercent+"%) translate3d(":"translate3d(")+M+"px,"+z+"px,"+X+"px)"+(1!==k||1!==A?" scale("+k+","+A+")":""));e=n=1,i=r=0}l=1,s=a=o=h=_=u=0,p=I?-1/I:0,c=P.zOrigin,f=1e-6,T=",",x="0",(R=O*H)&&(d=Math.cos(R),_=p*(o=-(m=Math.sin(R))),s=e*m,a=r*m,p*=l=d,e*=d,r*=d),(R=C*H)&&(g=i*(d=Math.cos(R))+s*(m=Math.sin(R)),v=n*d+a*m,h=l*m,u=p*m,s=i*-m+s*d,a=n*-m+a*d,l*=d,p*=d,i=g,n=v),1!==D&&(s*=D,a*=D,l*=D,p*=D),1!==A&&(i*=A,n*=A,h*=A,u*=A),1!==k&&(e*=k,r*=k,o*=k,_*=k),(c||F)&&(c&&(M+=s*-c,z+=a*-c,X+=l*-c+c),F&&(M+=P.xOrigin-(P.xOrigin*e+P.yOrigin*i),z+=P.yOrigin-(P.xOrigin*r+P.yOrigin*n)),M<f&&-f<M&&(M=x),z<f&&-f<z&&(z=x),X<f&&-f<X&&(X=0)),y=P.xPercent||P.yPercent?"translate("+P.xPercent+"%,"+P.yPercent+"%) matrix3d(":"matrix3d(",y+=(e<f&&-f<e?x:e)+T+(r<f&&-f<r?x:r)+T+(o<f&&-f<o?x:o),y+=T+(_<f&&-f<_?x:_)+T+(i<f&&-f<i?x:i)+T+(n<f&&-f<n?x:n),C||O?(y+=T+(h<f&&-f<h?x:h)+T+(u<f&&-f<u?x:u)+T+(s<f&&-f<s?x:s),y+=T+(a<f&&-f<a?x:a)+T+(l<f&&-f<l?x:l)+T+(p<f&&-f<p?x:p)+T):y+=",0,0,0,0,1,0,",y+=M+T+z+T+X+T+(I?1+-X/I:1)+")",S[Dt]=y}};(t=Ft.prototype).x=t.y=t.z=t.skewX=t.skewY=t.rotation=t.rotationX=t.rotationY=t.zOrigin=t.xPercent=t.yPercent=0,t.scaleX=t.scaleY=t.scaleZ=1,xt("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",{parser:function(t,e,i,s,r,n,a){if(s._lastParsedTransform===a)return r;s._lastParsedTransform=a;var o,h,l,_,u,p,c,f=s._transform=Nt(t,V,!0,a.parseTransform),d=t.style,m=At.length,g=a,v={};if("string"==typeof g.transform&&Dt)(l=K.style)[Dt]=g.transform,l.display="block",l.position="absolute",Q.body.appendChild(K),o=Nt(K,null,!1),Q.body.removeChild(K);else if("object"==typeof g){if(o={scaleX:w(null!=g.scaleX?g.scaleX:g.scale,f.scaleX),scaleY:w(null!=g.scaleY?g.scaleY:g.scale,f.scaleY),scaleZ:w(g.scaleZ,f.scaleZ),x:w(g.x,f.x),y:w(g.y,f.y),z:w(g.z,f.z),xPercent:w(g.xPercent,f.xPercent),yPercent:w(g.yPercent,f.yPercent),perspective:w(g.transformPerspective,f.perspective)},null!=(c=g.directionalRotation))if("object"==typeof c)for(l in c)g[l]=c[l];else g.rotation=c;"string"==typeof g.x&&-1!==g.x.indexOf("%")&&(o.x=0,o.xPercent=w(g.x,f.xPercent)),"string"==typeof g.y&&-1!==g.y.indexOf("%")&&(o.y=0,o.yPercent=w(g.y,f.yPercent)),o.rotation=S("rotation"in g?g.rotation:"shortRotation"in g?g.shortRotation+"_short":"rotationZ"in g?g.rotationZ:f.rotation,f.rotation,"rotation",v),Xt&&(o.rotationX=S("rotationX"in g?g.rotationX:"shortRotationX"in g?g.shortRotationX+"_short":f.rotationX||0,f.rotationX,"rotationX",v),o.rotationY=S("rotationY"in g?g.rotationY:"shortRotationY"in g?g.shortRotationY+"_short":f.rotationY||0,f.rotationY,"rotationY",v)),o.skewX=null==g.skewX?f.skewX:S(g.skewX,f.skewX),o.skewY=null==g.skewY?f.skewY:S(g.skewY,f.skewY),(h=o.skewY-f.skewY)&&(o.skewX+=h,o.rotation+=h)}for(Xt&&null!=g.force3D&&(f.force3D=g.force3D,p=!0),f.skewType=g.skewType||f.skewType||q.defaultSkewType,(u=f.force3D||f.z||f.rotationX||f.rotationY||o.z||o.rotationX||o.rotationY||o.perspective)||null==g.scale||(o.scaleZ=1);-1<--m;)(1e-6<(_=o[i=At[m]]-f[i])||_<-1e-6||null!=g[i]||null!=$[i])&&(p=!0,r=new mt(f,i,f[i],_,r),i in v&&(r.e=v[i]),r.xs0=0,r.plugin=n,s._overwriteProps.push(r.n));return _=g.transformOrigin,f.svg&&(_||g.svgOrigin)&&(bt(t,x(_),o,g.svgOrigin),(r=new mt(f,"xOrigin",f.xOrigin,o.xOrigin-f.xOrigin,r,-1,"transformOrigin")).b=f.xOrigin,r.e=r.xs0=o.xOrigin,(r=new mt(f,"yOrigin",f.yOrigin,o.yOrigin-f.yOrigin,r,-1,"transformOrigin")).b=f.yOrigin,r.e=r.xs0=o.yOrigin,_=St?null:"0px 0px"),(_||Xt&&u&&f.zOrigin)&&(Dt?(p=!0,i=zt,_=(_||nt(t,i,V,!1,"50% 50%"))+"",(r=new mt(d,i,0,0,r,-1,"transformOrigin")).b=d[i],r.plugin=n,Xt?(l=f.zOrigin,_=_.split(" "),f.zOrigin=(2<_.length&&(0===l||"0px"!==_[2])?parseFloat(_[2]):l)||0,r.xs0=r.e=_[0]+" "+(_[1]||"50%")+" 0px",(r=new mt(f,"zOrigin",0,0,r,-1,r.n)).b=l,r.xs0=r.e=f.zOrigin):r.xs0=r.e=_):x(_+"",f)),p&&(s._transformType=f.svg&&St||!u&&3!==this._transformType?2:3),r},prefix:!0}),xt("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),xt("borderRadius",{defaultValue:"0px",parser:function(t,e,i,s,r){e=this.format(e);var n,a,o,h,l,_,u,p,c,f,d,m,g,v,y,T,x=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],w=t.style;for(c=parseFloat(t.offsetWidth),f=parseFloat(t.offsetHeight),n=e.split(" "),a=0;x.length>a;a++)this.p.indexOf("border")&&(x[a]=P(x[a])),-1!==(l=h=nt(t,x[a],V,!1,"0px")).indexOf(" ")&&(l=(h=l.split(" "))[0],h=h[1]),_=o=n[a],u=parseFloat(l),m=l.substr((u+"").length),""===(d=(g="="===_.charAt(1))?(p=parseInt(_.charAt(0)+"1",10),_=_.substr(2),p*=parseFloat(_),_.substr((p+"").length-(p<0?1:0))||""):(p=parseFloat(_),_.substr((p+"").length)))&&(d=b[i]||m),d!==m&&(v=at(t,"borderLeft",u,m),y=at(t,"borderTop",u,m),h="%"===d?(l=v/c*100+"%",y/f*100+"%"):"em"===d?(l=v/(T=at(t,"borderLeft",1,"em"))+"em",y/T+"em"):(l=v+"px",y+"px"),g&&(_=parseFloat(l)+p+d,o=parseFloat(h)+p+d)),r=gt(w,x[a],l+" "+h,_+" "+o,!1,"0px",r);return r},prefix:!0,formatter:ct("0px 0px 0px 0px",!1,!0)}),xt("backgroundPosition",{defaultValue:"0 0",parser:function(t,e,i,s,r,n){var a,o,h,l,_,u,p="background-position",c=V||rt(t,null),f=this.format((c?D?c.getPropertyValue(p+"-x")+" "+c.getPropertyValue(p+"-y"):c.getPropertyValue(p):t.currentStyle.backgroundPositionX+" "+t.currentStyle.backgroundPositionY)||"0 0"),d=this.format(e);if(-1!==f.indexOf("%")!=(-1!==d.indexOf("%"))&&((u=nt(t,"backgroundImage").replace(B,""))&&"none"!==u)){for(a=f.split(" "),o=d.split(" "),J.setAttribute("src",u),h=2;-1<--h;)(l=-1!==(f=a[h]).indexOf("%"))!=(-1!==o[h].indexOf("%"))&&(_=0===h?t.offsetWidth-J.width:t.offsetHeight-J.height,a[h]=l?parseFloat(f)/100*_+"px":parseFloat(f)/_*100+"%");f=a.join(" ")}return this.parseComplex(t.style,f,d,r,n)},formatter:x}),xt("backgroundSize",{defaultValue:"0 0",formatter:x}),xt("perspective",{defaultValue:"0px",prefix:!0}),xt("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),xt("transformStyle",{prefix:!0}),xt("backfaceVisibility",{prefix:!0}),xt("userSelect",{prefix:!0}),xt("margin",{parser:ft("marginTop,marginRight,marginBottom,marginLeft")}),xt("padding",{parser:ft("paddingTop,paddingRight,paddingBottom,paddingLeft")}),xt("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(t,e,i,s,r,n){var a,o,h;return e=D<9?(o=t.currentStyle,h=D<8?" ":",",a="rect("+o.clipTop+h+o.clipRight+h+o.clipBottom+h+o.clipLeft+")",this.format(e).split(",").join(h)):(a=this.format(nt(t,this.p,V,!1,this.dflt)),this.format(e)),this.parseComplex(t.style,a,e,r,n)}}),xt("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),xt("autoRound,strictUnits",{parser:function(t,e,i,s,r){return r}}),xt("border",{defaultValue:"0px solid #000",parser:function(t,e,i,s,r,n){return this.parseComplex(t.style,this.format(nt(t,"borderTopWidth",V,!1,"0px")+" "+nt(t,"borderTopStyle",V,!1,"solid")+" "+nt(t,"borderTopColor",V,!1,"#000")),this.format(e),r,n)},color:!0,formatter:function(t){var e=t.split(" ");return e[0]+" "+(e[1]||"solid")+" "+(t.match(pt)||["#000"])[0]}}),xt("borderWidth",{parser:ft("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),xt("float,cssFloat,styleFloat",{parser:function(t,e,i,s,r){var n=t.style,a="cssFloat"in n?"cssFloat":"styleFloat";return new mt(n,a,0,0,r,-1,i,!1,0,n[a],e)}});function Bt(t){var e,i=this.t,s=i.filter||nt(this.data,"filter")||"",r=0|this.s+this.c*t;100==r&&(e=-1===s.indexOf("atrix(")&&-1===s.indexOf("radient(")&&-1===s.indexOf("oader(")?(i.removeAttribute("filter"),!nt(this.data,"filter")):(i.filter=s.replace(u,""),!0)),e||(this.xn1&&(i.filter=s=s||"alpha(opacity="+r+")"),-1===s.indexOf("pacity")?0==r&&this.xn1||(i.filter=s+" alpha(opacity="+r+")"):i.filter=s.replace(I,"opacity="+r))}xt("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(t,e,i,s,r,n){var a=parseFloat(nt(t,"opacity",V,!1,"1")),o=t.style,h="autoAlpha"===i;return"string"==typeof e&&"="===e.charAt(1)&&(e=("-"===e.charAt(0)?-1:1)*parseFloat(e.substr(2))+a),h&&1===a&&"hidden"===nt(t,"visibility",V)&&0!==e&&(a=0),et?r=new mt(o,"opacity",a,e-a,r):((r=new mt(o,"opacity",100*a,100*(e-a),r)).xn1=h?1:0,o.zoom=1,r.type=2,r.b="alpha(opacity="+r.s+")",r.e="alpha(opacity="+(r.s+r.c)+")",r.data=t,r.plugin=n,r.setRatio=Bt),h&&((r=new mt(o,"visibility",0,0,r,-1,null,!1,0,0!==a?"inherit":"hidden",0===e?"hidden":"inherit")).xs0="inherit",s._overwriteProps.push(r.n),s._overwriteProps.push(i)),r}});function Ut(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:jt(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)}var jt=function(t,e){e&&(t.removeProperty?(("ms"===e.substr(0,2)||"webkit"===e.substr(0,6))&&(e="-"+e),t.removeProperty(e.replace(p,"-$1").toLowerCase())):t.removeAttribute(e))};xt("className",{parser:function(t,e,i,s,r,n,a){var o,h,l,_,u,p=t.getAttribute("class")||"",c=t.style.cssText;if((r=s._classNamePT=new mt(t,i,0,0,r,2)).setRatio=Ut,r.pr=-11,f=!0,r.b=p,h=v(t,V),l=t._gsClassPT){for(_={},u=l.data;u;)_[u.p]=1,u=u._next;l.setRatio(1)}return(t._gsClassPT=r).e="="!==e.charAt(1)?e:p.replace(RegExp("\\s*\\b"+e.substr(2)+"\\b"),"")+("+"===e.charAt(0)?" "+e.substr(2):""),t.setAttribute("class",r.e),o=y(t,h,v(t),a,_),t.setAttribute("class",p),r.data=o.firstMPT,t.style.cssText=c,r.xfirst=s.parse(t,o.difs,r,n)}});function Wt(t){if((1===t||0===t)&&this.data._totalTime===this.data._totalDuration&&"isFromStart"!==this.data.data){var e,i,s,r,n,a=this.t.style,o=m.transform.parse;if("all"===this.e)r=!(a.cssText="");else for(s=(e=this.e.split(" ").join("").split(",")).length;-1<--s;)i=e[s],m[i]&&(m[i].parse===o?r=!0:i="transformOrigin"===i?zt:m[i].p),jt(a,i);r&&(jt(a,Dt),(n=this.t._gsTransform)&&(n.svg&&this.t.removeAttribute("data-svg-origin"),delete this.t._gsTransform))}}for(xt("clearProps",{parser:function(t,e,i,s,r){return(r=new mt(t,i,0,0,r,2)).setRatio=Wt,r.e=e,r.pr=-10,r.data=s._tween,f=!0,r}}),t="bezier,throwProps,physicsProps,physics2D".split(","),vt=t.length;vt--;)Tt(t[vt]);(t=q.prototype)._firstPT=t._lastParsedTransform=t._transform=null,t._onInitTween=function(t,e,i){if(!t.nodeType)return!1;this._target=t,this._tween=i,this._vars=e,C=e.autoRound,f=!1,b=e.suffixMap||q.suffixMap,V=rt(t,""),d=this._overwriteProps;var s,r,n,a,o,h,l,_,u,p=t.style;if(O&&""===p.zIndex&&(("auto"===(s=nt(t,"zIndex",V))||""===s)&&this._addLazySet(p,"zIndex",0)),"string"==typeof e&&(a=p.cssText,s=v(t,V),p.cssText=a+";"+e,s=y(t,s,v(t)).difs,!et&&L.test(e)&&(s.opacity=parseFloat(RegExp.$1)),e=s,p.cssText=a),this._firstPT=r=e.className?m.className.parse(t,e.className,"className",this,null,null,e):this.parse(t,e,null),this._transformType){for(u=3===this._transformType,Dt?k&&(O=!0,""===p.zIndex&&(("auto"===(l=nt(t,"zIndex",V))||""===l)&&this._addLazySet(p,"zIndex",0)),A&&this._addLazySet(p,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(u?"visible":"hidden"))):p.zoom=1,n=r;n&&n._next;)n=n._next;_=new mt(t,"transform",0,0,null,2),this._linkCSSP(_,null,n),_.setRatio=Dt?Et:Pt,_.data=this._transform||Nt(t,V,!0),_.tween=i,_.pr=-1,d.pop()}if(f){for(;r;){for(h=r._next,n=a;n&&n.pr>r.pr;)n=n._next;(r._prev=n?n._prev:o)?r._prev._next=r:a=r,(r._next=n)?n._prev=r:o=r,r=h}this._firstPT=a}return!0},t.parse=function(t,e,i,s){var r,n,a,o,h,l,_,u,p,c,f=t.style;for(r in e)l=e[r],(n=m[r])?i=n.parse(t,l,r,this,i,s,e):(h=nt(t,r,V)+"",p="string"==typeof l,"color"===r||"fill"===r||"stroke"===r||-1!==r.indexOf("Color")||p&&N.test(l)?(p||(l=(3<(l=ut(l)).length?"rgba(":"rgb(")+l.join(",")+")"),i=gt(f,r,h,l,!0,"transparent",i,0,s)):!p||-1===l.indexOf(" ")&&-1===l.indexOf(",")?(_=(a=parseFloat(h))||0===a?h.substr((a+"").length):"",(""===h||"auto"===h)&&(_="width"===r||"height"===r?(a=T(t,r,V),"px"):"left"===r||"top"===r?(a=ot(t,r,V),"px"):(a="opacity"!==r?0:1,"")),""===(u=(c=p&&"="===l.charAt(1))?(o=parseInt(l.charAt(0)+"1",10),l=l.substr(2),o*=parseFloat(l),l.replace(F,"")):(o=parseFloat(l),p?l.replace(F,""):""))&&(u=r in b?b[r]:_),l=o||0===o?(c?o+a:o)+u:e[r],_!==u&&""!==u&&(o||0===o)&&a&&(a=at(t,r,a,_),"%"===u?(a/=at(t,r,100,"%")/100,!0!==e.strictUnits&&(h=a+"%")):"em"===u?a/=at(t,r,1,"em"):"px"!==u&&(o=at(t,r,o,u),u="px"),c&&(o||0===o)&&(l=o+a+u)),c&&(o+=a),!a&&0!==a||!o&&0!==o?void 0!==f[r]&&(l||"NaN"!=l+""&&null!=l)?(i=new mt(f,r,o||a||0,0,i,-1,r,!1,0,h,l)).xs0="none"!==l||"display"!==r&&-1===r.indexOf("Style")?l:h:g("invalid "+r+" tween value: "+e[r]):(i=new mt(f,r,a,o-a,i,0,r,!1!==C&&("px"===u||"zIndex"===r),0,h,l)).xs0=u):i=gt(f,r,h,l,!0,null,i,0,s)),s&&i&&!i.plugin&&(i.plugin=s);return i},t.setRatio=function(t){var e,i,s,r=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(;r;){if(e=r.c*t+r.s,r.r?e=Math.round(e):e<1e-6&&-1e-6<e&&(e=0),r.type)if(1===r.type)if(2===(s=r.l))r.t[r.p]=r.xs0+e+r.xs1+r.xn1+r.xs2;else if(3===s)r.t[r.p]=r.xs0+e+r.xs1+r.xn1+r.xs2+r.xn2+r.xs3;else if(4===s)r.t[r.p]=r.xs0+e+r.xs1+r.xn1+r.xs2+r.xn2+r.xs3+r.xn3+r.xs4;else if(5===s)r.t[r.p]=r.xs0+e+r.xs1+r.xn1+r.xs2+r.xn2+r.xs3+r.xn3+r.xs4+r.xn4+r.xs5;else{for(i=r.xs0+e+r.xs1,s=1;r.l>s;s++)i+=r["xn"+s]+r["xs"+(s+1)];r.t[r.p]=i}else-1===r.type?r.t[r.p]=r.xs0:r.setRatio&&r.setRatio(t);else r.t[r.p]=e+r.xs0;r=r._next}else for(;r;)2!==r.type?r.t[r.p]=r.b:r.setRatio(t),r=r._next;else for(;r;)2!==r.type?r.t[r.p]=r.e:r.setRatio(t),r=r._next},t._enableTransforms=function(t){this._transform=this._transform||Nt(this._target,V,!0),this._transformType=this._transform.svg&&St||!t&&3!==this._transformType?2:3};function Vt(){this.t[this.p]=this.e,this.data._linkCSSP(this,this._next,null,!0)}t._addLazySet=function(t,e,i){var s=this._firstPT=new mt(t,e,0,0,this._firstPT,2);s.e=i,s.setRatio=Vt,s.data=this},t._linkCSSP=function(t,e,i,s){return t&&(e&&(e._prev=t),t._next&&(t._next._prev=t._prev),t._prev?t._prev._next=t._next:this._firstPT===t&&(this._firstPT=t._next,s=!0),i?i._next=t:s||null!==this._firstPT||(this._firstPT=t),t._next=e,t._prev=i),t},t._kill=function(t){var e,i,s,r=t;if(t.autoAlpha||t.alpha){for(i in r={},t)r[i]=t[i];r.opacity=1,r.autoAlpha&&(r.visibility=1)}return t.className&&(e=this._classNamePT)&&((s=e.xfirst)&&s._prev?this._linkCSSP(s._prev,e._next,s._prev._prev):s===this._firstPT&&(this._firstPT=e._next),e._next&&this._linkCSSP(e._next,e._next._next,s._prev),this._classNamePT=null),n.prototype._kill.call(this,r)};var qt=function(t,e,i){var s,r,n,a;if(t.slice)for(r=t.length;-1<--r;)qt(t[r],e,i);else for(r=(s=t.childNodes).length;-1<--r;)a=(n=s[r]).type,n.style&&(e.push(v(n)),i&&i.push(n)),1!==a&&9!==a&&11!==a||!n.childNodes.length||qt(n,e,i)};return q.cascadeTo=function(t,e,i){var s,r,n,a,o=c.to(t,e,i),h=[o],l=[],_=[],u=[],p=c._internals.reservedProps;for(t=o._targets||o.target,qt(t,l,u),o.render(e,!0,!0),qt(t,_),o.render(0,!0,!0),o._enabled(!0),s=u.length;-1<--s;)if((r=y(u[s],l[s],_[s])).firstMPT){for(n in r=r.difs,i)p[n]&&(r[n]=i[n]);for(n in a={},r)a[n]=l[s][n];h.push(c.fromTo(u[s],e,a,r))}return h},n.activate([q]),q},!0),(t=_gsScope._gsDefine.plugin({propName:"roundProps",priority:-1,API:2,init:function(t,e,i){return this._tween=i,!0}}).prototype)._onInitAllProps=function(){for(var t,e,i,s=this._tween,r=s.vars.roundProps instanceof Array?s.vars.roundProps:s.vars.roundProps.split(","),n=r.length,a={},o=s._propLookup.roundProps;-1<--n;)a[r[n]]=1;for(n=r.length;-1<--n;)for(t=r[n],e=s._firstPT;e;)i=e._next,e.pg?e.t._roundProps(a,!0):e.n===t&&(this._add(e.t,t,e.s,e.c),i&&(i._prev=e._prev),e._prev?e._prev._next=i:s._firstPT===e&&(s._firstPT=i),e._next=e._prev=null,s._propLookup[t]=o),e=i;return!1},t._add=function(t,e,i,s){this._addTween(t,e,i,i+s,e,!0),this._overwriteProps.push(e)},_gsScope._gsDefine.plugin({propName:"attr",API:2,version:"0.3.3",init:function(t,e){var i,s,r;if("function"!=typeof t.setAttribute)return!1;for(i in this._target=t,this._proxy={},this._start={},this._end={},e)this._start[i]=this._proxy[i]=s=t.getAttribute(i),r=this._addTween(this._proxy,i,parseFloat(s),e[i],i),this._end[i]=r?r.s+r.c:e[i],this._overwriteProps.push(i);return!0},set:function(t){this._super.setRatio.call(this,t);for(var e,i=this._overwriteProps,s=i.length,r=1===t?this._end:t?this._proxy:this._start;-1<--s;)e=i[s],this._target.setAttribute(e,r[e]+"")}}),_gsScope._gsDefine.plugin({propName:"directionalRotation",version:"0.2.1",API:2,init:function(t,e){"object"!=typeof e&&(e={rotation:e}),this.finals={};var i,s,r,n,a,o=!0===e.useRadians?2*Math.PI:360;for(i in e)"useRadians"!==i&&(s=(a=(e[i]+"").split("_"))[0],r=parseFloat("function"!=typeof t[i]?t[i]:t[i.indexOf("set")||"function"!=typeof t["get"+i.substr(3)]?i:"get"+i.substr(3)]()),n=(this.finals[i]="string"==typeof s&&"="===s.charAt(1)?r+parseInt(s.charAt(0)+"1",10)*Number(s.substr(2)):Number(s)||0)-r,a.length&&(-1!==(s=a.join("_")).indexOf("short")&&((n%=o)!==n%(o/2)&&(n=n<0?n+o:n-o)),-1!==s.indexOf("_cw")&&n<0?n=(n+9999999999*o)%o-(0|n/o)*o:-1!==s.indexOf("ccw")&&0<n&&(n=(n-9999999999*o)%o-(0|n/o)*o)),(1e-6<n||n<-1e-6)&&(this._addTween(t,i,r,r+n,i),this._overwriteProps.push(i)));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,_gsScope._gsDefine("easing.Back",["easing.Ease"],function(m){function t(t,e){var i=_("easing."+t,function(){},!0),s=i.prototype=new m;return s.constructor=i,s.getRatio=e,i}function e(t,e,i,s){var r=_("easing."+t,{easeOut:new e,easeIn:new i,easeInOut:new s},!0);return u(r,t),r}function g(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 i(t,e){var i=_("easing."+t,function(t){this._p1=t||0===t?t:1.70158,this._p2=1.525*this._p1},!0),s=i.prototype=new m;return s.constructor=i,s.getRatio=e,s.config=function(t){return new i(t)},i}var s,r,n,a=_gsScope.GreenSockGlobals||_gsScope,o=a.com.greensock,h=2*Math.PI,l=Math.PI/2,_=o._class,u=m.register||function(){},p=e("Back",i("BackOut",function(t){return(t-=1)*t*((this._p1+1)*t+this._p1)+1}),i("BackIn",function(t){return t*t*((this._p1+1)*t-this._p1)}),i("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)})),c=_("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),f=c.prototype=new m;return f.constructor=c,f.getRatio=function(t){var e=t+(.5-t)*this._p;return this._p1>t?this._calcEnd?1-(t=1-t/this._p1)*t:e-(t=1-t/this._p1)*t*t*t*e:t>this._p3?this._calcEnd?1-(t=(t-this._p3)/this._p1)*t:e+(t-e)*(t=(t-this._p3)/this._p1)*t*t*t:this._calcEnd?1:e},c.ease=new c(.7,.7),f.config=c.config=function(t,e,i){return new c(t,e,i)},(f=(s=_("easing.SteppedEase",function(t){t=t||1,this._p1=1/t,this._p2=t+1},!0)).prototype=new m).constructor=s,f.getRatio=function(t){return t<0?t=0:1<=t&&(t=.999999999),(this._p2*t>>0)*this._p1},f.config=s.config=function(t){return new s(t)},(f=(r=_("easing.RoughEase",function(t){for(var e,i,s,r,n,a,o=(t=t||{}).taper||"none",h=[],l=0,_=0|(t.points||20),u=_,p=!1!==t.randomize,c=!0===t.clamp,f=t.template instanceof m?t.template:null,d="number"==typeof t.strength?.4*t.strength:.4;-1<--u;)e=p?Math.random():1/_*u,i=f?f.getRatio(e):e,s="none"===o?d:"out"===o?(r=1-e)*r*d:"in"===o?e*e*d:.5*(r=e<.5?2*e:2*(1-e))*r*d,p?i+=Math.random()*s-.5*s:u%2?i+=.5*s:i-=.5*s,c&&(1<i?i=1:i<0&&(i=0)),h[l++]={x:e,y:i};for(h.sort(function(t,e){return t.x-e.x}),a=new g(1,1,null),u=_;-1<--u;)n=h[u],a=new g(n.x,n.y,a);this._prev=new g(0,0,0!==a.t?a:a.next)},!0)).prototype=new m).constructor=r,f.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&&e.t>=t;)e=e.prev;return(this._prev=e).v+(t-e.t)/e.gap*e.c},f.config=function(t){return new r(t)},r.ease=new r,e("Bounce",t("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}),t("BounceIn",function(t){return 1/2.75>(t=1-t)?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)}),t("BounceInOut",function(t){var e=t<.5;return t=(t=e?1-2*t:2*t-1)<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375,e?.5*(1-t):.5*t+.5})),e("Circ",t("CircOut",function(t){return Math.sqrt(1-(t-=1)*t)}),t("CircIn",function(t){return-(Math.sqrt(1-t*t)-1)}),t("CircInOut",function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)})),e("Elastic",(n=function(t,e,i){var s=_("easing."+t,function(t,e){this._p1=1<=t?t:1,this._p2=(e||i)/(t<1?t:1),this._p3=this._p2/h*(Math.asin(1/this._p1)||0),this._p2=h/this._p2},!0),r=s.prototype=new m;return r.constructor=s,r.getRatio=e,r.config=function(t,e){return new s(t,e)},s})("ElasticOut",function(t){return this._p1*Math.pow(2,-10*t)*Math.sin((t-this._p3)*this._p2)+1},.3),n("ElasticIn",function(t){return-this._p1*Math.pow(2,10*(t-=1))*Math.sin((t-this._p3)*this._p2)},.3),n("ElasticInOut",function(t){return(t*=2)<1?-.5*this._p1*Math.pow(2,10*(t-=1))*Math.sin((t-this._p3)*this._p2):.5*this._p1*Math.pow(2,-10*(t-=1))*Math.sin((t-this._p3)*this._p2)+1},.45)),e("Expo",t("ExpoOut",function(t){return 1-Math.pow(2,-10*t)}),t("ExpoIn",function(t){return Math.pow(2,10*(t-1))-.001}),t("ExpoInOut",function(t){return(t*=2)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*(t-1)))})),e("Sine",t("SineOut",function(t){return Math.sin(t*l)}),t("SineIn",function(t){return 1-Math.cos(t*l)}),t("SineInOut",function(t){return-.5*(Math.cos(Math.PI*t)-1)})),_("easing.EaseLookup",{find:function(t){return m.map[t]}},!0),u(a.SlowMo,"SlowMo","ease,"),u(r,"RoughEase","ease,"),u(s,"SteppedEase","ease,"),p},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(p,t){"use strict";var e,i,c=p.GreenSockGlobals=p.GreenSockGlobals||p;if(!c.TweenLite){var s,r,n,f,d,m=function(t){var e,i=t.split("."),s=c;for(e=0;i.length>e;e++)s[i[e]]=s=s[i[e]]||{};return s},u=m("com.greensock"),g=1e-10,h=function(t){var e,i=[],s=t.length;for(e=0;e!==s;i.push(t[e++]));return i},v=function(){},y=(e=Object.prototype.toString,i=e.call([]),function(t){return null!=t&&(t instanceof Array||"object"==typeof t&&!!t.push&&e.call(t)===i)}),T={},x=function(o,h,l,_){this.sc=T[o]?T[o].sc:[],(T[o]=this).gsClass=null,this.func=l;var u=[];this.check=function(t){for(var e,i,s,r,n=h.length,a=n;-1<--n;)(e=T[h[n]]||new x(h[n],[])).gsClass?(u[n]=e.gsClass,a--):t&&e.sc.push(this);if(0===a&&l)for(s=(i=("com.greensock."+o).split(".")).pop(),r=m(i.join("."))[s]=this.gsClass=l.apply(l,u),_&&(c[s]=r,"function"==typeof define&&define.amd?define((p.GreenSockAMDPath?p.GreenSockAMDPath+"/":"")+o.split(".").pop(),[],function(){return r}):"TweenMax"===o&&"undefined"!=typeof module&&module.exports&&(module.exports=r)),n=0;this.sc.length>n;n++)this.sc[n].check()},this.check(!0)},a=p._gsDefine=function(t,e,i,s){return new x(t,e,i,s)},w=u._class=function(t,e,i){return e=e||function(){},a(t,[],function(){return e},i),e};a.globals=c;var o=[0,0,1,1],b=[],_=w("easing.Ease",function(t,e,i,s){this._func=t,this._type=i||0,this._power=s||0,this._params=e?o.concat(e):o},!0),P=_.map={},l=_.register=function(t,e,i,s){for(var r,n,a,o,h=e.split(","),l=h.length,_=(i||"easeIn,easeOut,easeInOut").split(",");-1<--l;)for(n=h[l],r=s?w("easing."+n,null,!0):u.easing[n]||{},a=_.length;-1<--a;)o=_[a],P[n+"."+o]=P[o+n]=r[o]=t.getRatio?t:t[o]||new t};for((n=_.prototype)._calcEnd=!1,n.getRatio=function(t){if(this._func)return this._params[0]=t,this._func.apply(null,this._params);var e=this._type,i=this._power,s=1===e?1-t:2===e?t:t<.5?2*t:2*(1-t);return 1===i?s*=s:2===i?s*=s*s:3===i?s*=s*s*s:4===i&&(s*=s*s*s*s),1===e?1-s:2===e?s:t<.5?s/2:1-s/2},r=(s=["Linear","Quad","Cubic","Quart","Quint,Strong"]).length;-1<--r;)n=s[r]+",Power"+r,l(new _(null,null,1,r),n,"easeOut",!0),l(new _(null,null,2,r),n,"easeIn"+(0===r?",easeNone":"")),l(new _(null,null,3,r),n,"easeInOut");P.linear=u.easing.Linear.easeIn,P.swing=u.easing.Quad.easeInOut;var S=w("events.EventDispatcher",function(t){this._listeners={},this._eventTarget=t||this});(n=S.prototype).addEventListener=function(t,e,i,s,r){r=r||0;var n,a,o=this._listeners[t],h=0;for(null==o&&(this._listeners[t]=o=[]),a=o.length;-1<--a;)(n=o[a]).c===e&&n.s===i?o.splice(a,1):0===h&&r>n.pr&&(h=a+1);o.splice(h,0,{c:e,s:i,up:s,pr:r}),this!==f||d||f.wake()},n.removeEventListener=function(t,e){var i,s=this._listeners[t];if(s)for(i=s.length;-1<--i;)if(s[i].c===e)return void s.splice(i,1)},n.dispatchEvent=function(t){var e,i,s,r=this._listeners[t];if(r)for(e=r.length,i=this._eventTarget;-1<--e;)(s=r[e])&&(s.up?s.c.call(s.s||i,{type:t,target:i}):s.c.call(s.s||i))};var R=p.requestAnimationFrame,C=p.cancelAnimationFrame,O=Date.now||function(){return(new Date).getTime()},k=O();for(r=(s=["ms","moz","webkit","o"]).length;-1<--r&&!R;)R=p[s[r]+"RequestAnimationFrame"],C=p[s[r]+"CancelAnimationFrame"]||p[s[r]+"CancelRequestAnimationFrame"];w("Ticker",function(t,e){var r,n,a,o,h,l=this,_=O(),i=!1!==e&&R,u=500,p=33,c=function(t){var e,i,s=O()-k;u<s&&(_+=s-p),k+=s,l.time=(k-_)/1e3,e=l.time-h,(!r||0<e||!0===t)&&(l.frame++,h+=e+(o<=e?.004:o-e),i=!0),!0!==t&&(a=n(c)),i&&l.dispatchEvent("tick")};S.call(l),l.time=l.frame=0,l.tick=function(){c(!0)},l.lagSmoothing=function(t,e){u=t||1e10,p=Math.min(e,u,0)},l.sleep=function(){null!=a&&(i&&C?C(a):clearTimeout(a),n=v,a=null,l===f&&(d=!1))},l.wake=function(){null!==a?l.sleep():10<l.frame&&(k=O()-u+5),n=0===r?v:i&&R?R:function(t){return setTimeout(t,0|1e3*(h-l.time)+1)},l===f&&(d=!0),c(2)},l.fps=function(t){return arguments.length?(o=1/((r=t)||60),h=this.time+o,void l.wake()):r},l.useRAF=function(t){return arguments.length?(l.sleep(),i=t,void l.fps(r)):i},l.fps(t),setTimeout(function(){i&&l.frame<5&&l.useRAF(!1)},1500)}),(n=u.Ticker.prototype=new u.events.EventDispatcher).constructor=u.Ticker;var A=w("core.Animation",function(t,e){if(this.vars=e=e||{},this._duration=this._totalDuration=t||0,this._delay=Number(e.delay)||0,this._timeScale=1,this._active=!0===e.immediateRender,this.data=e.data,this._reversed=!0===e.reversed,W){d||f.wake();var i=this.vars.useFrames?j:W;i.add(this,i._time),this.vars.paused&&this.paused(!0)}});f=A.ticker=new u.Ticker,(n=A.prototype)._dirty=n._gc=n._initted=n._paused=!1,n._totalTime=n._time=0,n._rawPrevTime=-1,n._next=n._last=n._onUpdate=n._timeline=n.timeline=null,n._paused=!1;var D=function(){d&&2e3<O()-k&&f.wake(),setTimeout(D,2e3)};D(),n.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},n.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},n.resume=function(t,e){return null!=t&&this.seek(t,e),this.paused(!1)},n.seek=function(t,e){return this.totalTime(Number(t),!1!==e)},n.restart=function(t,e){return this.reversed(!1).paused(!1).totalTime(t?-this._delay:0,!1!==e,!0)},n.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},n.render=function(){},n.invalidate=function(){return this._time=this._totalTime=0,this._initted=this._gc=!1,this._rawPrevTime=-1,(this._gc||!this.timeline)&&this._enabled(!0),this},n.isActive=function(){var t,e=this._timeline,i=this._startTime;return!e||!this._gc&&!this._paused&&e.isActive()&&(t=e.rawTime())>=i&&i+this.totalDuration()/this._timeScale>t},n._enabled=function(t,e){return d||f.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},n._kill=function(){return this._enabled(!1,!1)},n.kill=function(t,e){return this._kill(t,e),this},n._uncache=function(t){for(var e=t?this:this.timeline;e;)e._dirty=!0,e=e.timeline;return this},n._swapSelfInParams=function(t){for(var e=t.length,i=t.concat();-1<--e;)"{self}"===t[e]&&(i[e]=this);return i},n.eventCallback=function(t,e,i,s){if("on"===(t||"").substr(0,2)){var r=this.vars;if(1===arguments.length)return r[t];null==e?delete r[t]:(r[t]=e,r[t+"Params"]=y(i)&&-1!==i.join("").indexOf("{self}")?this._swapSelfInParams(i):i,r[t+"Scope"]=s),"onUpdate"===t&&(this._onUpdate=e)}return this},n.delay=function(t){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+t-this._delay),this._delay=t,this):this._delay},n.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)},n.totalDuration=function(t){return this._dirty=!1,arguments.length?this.duration(t):this._totalDuration},n.time=function(t,e){return arguments.length?(this._dirty&&this.totalDuration(),this.totalTime(t>this._duration?this._duration:t,e)):this._time},n.totalTime=function(t,e,i){if(d||f.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(t<0&&!i&&(t+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var s=this._totalDuration,r=this._timeline;if(s<t&&!i&&(t=s),this._startTime=(this._paused?this._pauseTime:r._time)-(this._reversed?s-t:t)/this._timeScale,r._dirty||this._uncache(!1),r._timeline)for(;r._timeline;)r._timeline._time!==(r._startTime+r._totalTime)/r._timeScale&&r.totalTime(r._totalTime,!0),r=r._timeline}this._gc&&this._enabled(!0,!1),(this._totalTime!==t||0===this._duration)&&(this.render(t,e,!1),F.length&&q())}return this},n.progress=n.totalProgress=function(t,e){return arguments.length?this.totalTime(this.duration()*t,e):this._time/this.duration()},n.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},n.endTime=function(t){return this._startTime+(0!=t?this.totalDuration():this.duration())/this._timeScale},n.timeScale=function(t){if(!arguments.length)return this._timeScale;if(t=t||g,this._timeline&&this._timeline.smoothChildTiming){var e=this._pauseTime,i=e||0===e?e:this._timeline.totalTime();this._startTime=i-(i-this._startTime)*this._timeScale/t}return this._timeScale=t,this._uncache(!1)},n.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},n.paused=function(t){if(!arguments.length)return this._paused;var e,i,s=this._timeline;return t!=this._paused&&s&&(d||t||f.wake(),i=(e=s.rawTime())-this._pauseTime,!t&&s.smoothChildTiming&&(this._startTime+=i,this._uncache(!1)),this._pauseTime=t?e:null,this._paused=t,this._active=this.isActive(),!t&&0!=i&&this._initted&&this.duration()&&this.render(s.smoothChildTiming?this._totalTime:(e-this._startTime)/this._timeScale,!0,!0)),this._gc&&!t&&this._enabled(!0,!1),this};var M=w("core.SimpleTimeline",function(t){A.call(this,0,t),this.autoRemoveChildren=this.smoothChildTiming=!0});(n=M.prototype=new A).constructor=M,n.kill()._gc=!1,n._first=n._last=n._recent=null,n._sortChildren=!1,n.add=n.insert=function(t,e){var i,s;if(t._startTime=Number(e||0)+t._delay,t._paused&&this!==t._timeline&&(t._pauseTime=t._startTime+(this.rawTime()-t._startTime)/t._timeScale),t.timeline&&t.timeline._remove(t,!0),t.timeline=t._timeline=this,t._gc&&t._enabled(!0,!0),i=this._last,this._sortChildren)for(s=t._startTime;i&&i._startTime>s;)i=i._prev;return i?(t._next=i._next,i._next=t):(t._next=this._first,this._first=t),t._next?t._next._prev=t:this._last=t,t._prev=i,this._recent=t,this._timeline&&this._uncache(!0),this},n._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},n.render=function(t,e,i){var s,r=this._first;for(this._totalTime=this._time=this._rawPrevTime=t;r;)s=r._next,(r._active||t>=r._startTime&&!r._paused)&&(r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(t-r._startTime)*r._timeScale,e,i):r.render((t-r._startTime)*r._timeScale,e,i)),r=s},n.rawTime=function(){return d||f.wake(),this._totalTime};var z=w("TweenLite",function(t,e,i){if(A.call(this,e,i),this.render=z.prototype.render,null==t)throw"Cannot tween a null target.";this.target=t="string"!=typeof t?t:z.selector(t)||t;var s,r,n,a=t.jquery||t.length&&t!==p&&t[0]&&(t[0]===p||t[0].nodeType&&t[0].style&&!t.nodeType),o=this.vars.overwrite;if(this._overwrite=o=null==o?U[z.defaultOverwrite]:"number"==typeof o?o>>0:U[o],(a||t instanceof Array||t.push&&y(t))&&"number"!=typeof t[0])for(this._targets=n=h(t),this._propLookup=[],this._siblings=[],s=0;n.length>s;s++)(r=n[s])?"string"!=typeof r?r.length&&r!==p&&r[0]&&(r[0]===p||r[0].nodeType&&r[0].style&&!r.nodeType)?(n.splice(s--,1),this._targets=n=n.concat(h(r))):(this._siblings[s]=Z(r,this,!1),1===o&&1<this._siblings[s].length&&G(r,this,null,1,this._siblings[s])):"string"==typeof(r=n[s--]=z.selector(r))&&n.splice(s+1,1):n.splice(s--,1);else this._propLookup={},this._siblings=Z(t,this,!1),1===o&&1<this._siblings.length&&G(t,this,null,1,this._siblings);(this.vars.immediateRender||0===e&&0===this._delay&&!1!==this.vars.immediateRender)&&(this._time=-g,this.render(-this._delay))},!0),X=function(t){return t&&t.length&&t!==p&&t[0]&&(t[0]===p||t[0].nodeType&&t[0].style&&!t.nodeType)};(n=z.prototype=new A).constructor=z,n.kill()._gc=!1,n.ratio=0,n._firstPT=n._targets=n._overwrittenProps=n._startAt=null,n._notifyPluginsOfEnabled=n._lazy=!1,z.version="1.16.1",z.defaultEase=n._ease=new _(null,null,1,1),z.defaultOverwrite="auto",z.ticker=f,z.autoSleep=120,z.lagSmoothing=function(t,e){f.lagSmoothing(t,e)},z.selector=p.$||p.jQuery||function(t){var e=p.$||p.jQuery;return e?(z.selector=e)(t):"undefined"==typeof document?t:document.querySelectorAll?document.querySelectorAll(t):document.getElementById("#"===t.charAt(0)?t.substr(1):t)};var F=[],I={},L=z._internals={isArray:y,isSelector:X,lazyTweens:F},Y=z._plugins={},N=L.tweenLookup={},E=0,B=L.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},U={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,true:1,false:0},j=A._rootFramesTimeline=new M,W=A._rootTimeline=new M,V=30,q=L.lazyRender=function(){var t,e=F.length;for(I={};-1<--e;)(t=F[e])&&!1!==t._lazy&&(t.render(t._lazy[0],t._lazy[1],!0),t._lazy=!1);F.length=0};W._startTime=f.time,j._startTime=f.frame,W._active=j._active=!0,setTimeout(q,1),A._updateRoot=z.render=function(){var t,e,i;if(F.length&&q(),W.render((f.time-W._startTime)*W._timeScale,!1,!1),j.render((f.frame-j._startTime)*j._timeScale,!1,!1),F.length&&q(),f.frame>=V){for(i in V=f.frame+(parseInt(z.autoSleep,10)||120),N){for(t=(e=N[i].tweens).length;-1<--t;)e[t]._gc&&e.splice(t,1);0===e.length&&delete N[i]}if((!(i=W._first)||i._paused)&&z.autoSleep&&!j._first&&1===f._listeners.tick.length){for(;i&&i._paused;)i=i._next;i||f.sleep()}}},f.addEventListener("tick",A._updateRoot);var Z=function(t,e,i){var s,r,n=t._gsTweenID;if(N[n||(t._gsTweenID=n="t"+E++)]||(N[n]={target:t,tweens:[]}),e&&((s=N[n].tweens)[r=s.length]=e,i))for(;-1<--r;)s[r]===e&&s.splice(r,1);return N[n].tweens},H=function(t,e,i,s){var r,n,a=t.vars.onOverwrite;return a&&(r=a(t,e,i,s)),(a=z.onOverwrite)&&(n=a(t,e,i,s)),!1!==r&&!1!==n},G=function(t,e,i,s,r){var n,a,o,h;if(1===s||4<=s){for(h=r.length,n=0;n<h;n++)if((o=r[n])!==e)o._gc||H(o,e)&&o._enabled(!1,!1)&&(a=!0);else if(5===s)break;return a}var l,_=e._startTime+g,u=[],p=0,c=0===e._duration;for(n=r.length;-1<--n;)(o=r[n])===e||o._gc||o._paused||(o._timeline!==e._timeline?(l=l||$(e,0,c),0===$(o,l,c)&&(u[p++]=o)):_>=o._startTime&&o._startTime+o.totalDuration()/o._timeScale>_&&((c||!o._initted)&&_-o._startTime<=2e-10||(u[p++]=o)));for(n=p;-1<--n;)if(o=u[n],2===s&&o._kill(i,t,e)&&(a=!0),2!==s||!o._firstPT&&o._initted){if(2!==s&&!H(o,e))continue;o._enabled(!1,!1)&&(a=!0)}return a},$=function(t,e,i){for(var s=t._timeline,r=s._timeScale,n=t._startTime;s._timeline;){if(n+=s._startTime,r*=s._timeScale,s._paused)return-100;s=s._timeline}return e<(n/=r)?n-e:i&&n===e||!t._initted&&n-e<2*g?g:(n+=t.totalDuration()/t._timeScale/r)>e+g?0:n-e-g};n._init=function(){var t,e,i,s,r,n=this.vars,a=this._overwrittenProps,o=this._duration,h=!!n.immediateRender,l=n.ease;if(n.startAt){for(s in this._startAt&&(this._startAt.render(-1,!0),this._startAt.kill()),r={},n.startAt)r[s]=n.startAt[s];if(r.overwrite=!1,r.immediateRender=!0,r.lazy=h&&!1!==n.lazy,r.startAt=r.delay=null,this._startAt=z.to(this.target,0,r),h)if(0<this._time)this._startAt=null;else if(0!==o)return}else if(n.runBackwards&&0!==o)if(this._startAt)this._startAt.render(-1,!0),this._startAt.kill(),this._startAt=null;else{for(s in 0!==this._time&&(h=!1),i={},n)B[s]&&"autoCSS"!==s||(i[s]=n[s]);if(i.overwrite=0,i.data="isFromStart",i.lazy=h&&!1!==n.lazy,i.immediateRender=h,this._startAt=z.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=l=l?l instanceof _?l:"function"==typeof l?new _(l,n.easeParams):P[l]||z.defaultEase:z.defaultEase,n.easeParams instanceof Array&&l.config&&(this._ease=l.config.apply(l,n.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(t=this._targets.length;-1<--t;)this._initProps(this._targets[t],this._propLookup[t]={},this._siblings[t],a?a[t]:null)&&(e=!0);else e=this._initProps(this.target,this._propLookup,this._siblings,a);if(e&&z._onPluginEvent("_onInitAllProps",this),a&&(this._firstPT||"function"!=typeof this.target&&this._enabled(!1,!1)),n.runBackwards)for(i=this._firstPT;i;)i.s+=i.c,i.c=-i.c,i=i._next;this._onUpdate=n.onUpdate,this._initted=!0},n._initProps=function(t,e,i,s){var r,n,a,o,h,l;if(null==t)return!1;for(r in I[t._gsTweenID]&&q(),this.vars.css||t.style&&t!==p&&t.nodeType&&Y.css&&!1!==this.vars.autoCSS&&function(t,e){var i,s={};for(i in t)B[i]||i in e&&"transform"!==i&&"x"!==i&&"y"!==i&&"width"!==i&&"height"!==i&&"className"!==i&&"border"!==i||!(!Y[i]||Y[i]&&Y[i]._autoCSS)||(s[i]=t[i],delete t[i]);t.css=s}(this.vars,t),this.vars){if(l=this.vars[r],B[r])l&&(l instanceof Array||l.push&&y(l))&&-1!==l.join("").indexOf("{self}")&&(this.vars[r]=l=this._swapSelfInParams(l,this));else if(Y[r]&&(o=new Y[r])._onInitTween(t,this.vars[r],this)){for(this._firstPT=h={_next:this._firstPT,t:o,p:"setRatio",s:0,c:1,f:!0,n:r,pg:!0,pr:o._priority},n=o._overwriteProps.length;-1<--n;)e[o._overwriteProps[n]]=this._firstPT;(o._priority||o._onInitAllProps)&&(a=!0),(o._onDisable||o._onEnable)&&(this._notifyPluginsOfEnabled=!0)}else this._firstPT=e[r]=h={_next:this._firstPT,t:t,p:r,f:"function"==typeof t[r],n:r,pg:!1,pr:0},h.s=h.f?t[r.indexOf("set")||"function"!=typeof t["get"+r.substr(3)]?r:"get"+r.substr(3)]():parseFloat(t[r]),h.c="string"==typeof l&&"="===l.charAt(1)?parseInt(l.charAt(0)+"1",10)*Number(l.substr(2)):Number(l)-h.s||0;h&&h._next&&(h._next._prev=h)}return s&&this._kill(s,t)?this._initProps(t,e,i,s):1<this._overwrite&&this._firstPT&&1<i.length&&G(t,this,e,this._overwrite,i)?(this._kill(e,t),this._initProps(t,e,i,s)):(this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration)&&(I[t._gsTweenID]=!0),a)},n.render=function(t,e,i){var s,r,n,a,o=this._time,h=this._duration,l=this._rawPrevTime;if(h<=t)this._totalTime=this._time=h,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(s=!0,r="onComplete",i=i||this._timeline.autoRemoveChildren),0===h&&(this._initted||!this.vars.lazy||i)&&(this._startTime===this._timeline._duration&&(t=0),(0===t||l<0||l===g&&"isPause"!==this.data)&&l!==t&&(i=!0,g<l&&(r="onReverseComplete")),this._rawPrevTime=a=!e||t||l===t?t:g);else if(t<1e-7)this._totalTime=this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==o||0===h&&0<l)&&(r="onReverseComplete",s=this._reversed),t<0&&(this._active=!1,0===h&&(this._initted||!this.vars.lazy||i)&&(0<=l&&(l!==g||"isPause"!==this.data)&&(i=!0),this._rawPrevTime=a=!e||t||l===t?t:g)),this._initted||(i=!0);else if(this._totalTime=this._time=t,this._easeType){var _=t/h,u=this._easeType,p=this._easePower;(1===u||3===u&&.5<=_)&&(_=1-_),3===u&&(_*=2),1===p?_*=_:2===p?_*=_*_:3===p?_*=_*_*_:4===p&&(_*=_*_*_*_),this.ratio=1===u?1-_:2===u?_:t/h<.5?_/2:1-_/2}else this.ratio=this._ease.getRatio(t/h);if(this._time!==o||i){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!i&&this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration))return this._time=this._totalTime=o,this._rawPrevTime=l,F.push(this),void(this._lazy=[t,e]);this._time&&!s?this.ratio=this._ease.getRatio(this._time/h):s&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(0===this._time?0:1))}for(!1!==this._lazy&&(this._lazy=!1),this._active||!this._paused&&this._time!==o&&0<=t&&(this._active=!0),0===o&&(this._startAt&&(0<=t?this._startAt.render(t,e,i):r||(r="_dummyGS")),this.vars.onStart&&(0!==this._time||0===h)&&(e||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||b))),n=this._firstPT;n;)n.f?n.t[n.p](n.c*this.ratio+n.s):n.t[n.p]=n.c*this.ratio+n.s,n=n._next;this._onUpdate&&(t<0&&this._startAt&&-1e-4!==t&&this._startAt.render(t,e,i),e||(this._time!==o||s)&&this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||b)),r&&(!this._gc||i)&&(t<0&&this._startAt&&!this._onUpdate&&-1e-4!==t&&this._startAt.render(t,e,i),s&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[r]&&this.vars[r].apply(this.vars[r+"Scope"]||this,this.vars[r+"Params"]||b),0===h&&this._rawPrevTime===g&&a!==g&&(this._rawPrevTime=0))}},n._kill=function(t,e,i){if("all"===t&&(t=null),null==t&&(null==e||e===this.target))return this._lazy=!1,this._enabled(!1,!1);var s,r,n,a,o,h,l,_,u;if(e="string"!=typeof e?e||this._targets||this.target:z.selector(e)||e,(y(e)||X(e))&&"number"!=typeof e[0])for(s=e.length;-1<--s;)this._kill(t,e[s])&&(h=!0);else{if(this._targets){for(s=this._targets.length;-1<--s;)if(e===this._targets[s]){o=this._propLookup[s]||{},this._overwrittenProps=this._overwrittenProps||[],r=this._overwrittenProps[s]=t?this._overwrittenProps[s]||{}:"all";break}}else{if(e!==this.target)return!1;o=this._propLookup,r=this._overwrittenProps=t?this._overwrittenProps||{}:"all"}if(o){if(l=t||o,_=t!==r&&"all"!==r&&t!==o&&("object"!=typeof t||!t._tempKill),i&&(z.onOverwrite||this.vars.onOverwrite)){for(n in l)o[n]&&(u||(u=[]),u.push(n));if(!H(this,i,e,u))return!1}for(n in l)(a=o[n])&&(a.pg&&a.t._kill(l)&&(h=!0),a.pg&&0!==a.t._overwriteProps.length||(a._prev?a._prev._next=a._next:a===this._firstPT&&(this._firstPT=a._next),a._next&&(a._next._prev=a._prev),a._next=a._prev=null),delete o[n]),_&&(r[n]=1);!this._firstPT&&this._initted&&this._enabled(!1,!1)}}return h},n.invalidate=function(){return this._notifyPluginsOfEnabled&&z._onPluginEvent("_onDisable",this),this._firstPT=this._overwrittenProps=this._startAt=this._onUpdate=null,this._notifyPluginsOfEnabled=this._active=this._lazy=!1,this._propLookup=this._targets?{}:[],A.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-g,this.render(-this._delay)),this},n._enabled=function(t,e){if(d||f.wake(),t&&this._gc){var i,s=this._targets;if(s)for(i=s.length;-1<--i;)this._siblings[i]=Z(s[i],this,!0);else this._siblings=Z(this.target,this,!0)}return A.prototype._enabled.call(this,t,e),!(!this._notifyPluginsOfEnabled||!this._firstPT)&&z._onPluginEvent(t?"_onEnable":"_onDisable",this)},z.to=function(t,e,i){return new z(t,e,i)},z.from=function(t,e,i){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,new z(t,e,i)},z.fromTo=function(t,e,i,s){return s.startAt=i,s.immediateRender=0!=s.immediateRender&&0!=i.immediateRender,new z(t,e,s)},z.delayedCall=function(t,e,i,s,r){return new z(e,0,{delay:t,onComplete:e,onCompleteParams:i,onCompleteScope:s,onReverseComplete:e,onReverseCompleteParams:i,onReverseCompleteScope:s,immediateRender:!1,lazy:!1,useFrames:r,overwrite:0})},z.set=function(t,e){return new z(t,0,e)},z.getTweensOf=function(t,e){if(null==t)return[];var i,s,r,n;if(t="string"!=typeof t?t:z.selector(t)||t,(y(t)||X(t))&&"number"!=typeof t[0]){for(i=t.length,s=[];-1<--i;)s=s.concat(z.getTweensOf(t[i],e));for(i=s.length;-1<--i;)for(n=s[i],r=i;-1<--r;)n===s[r]&&s.splice(i,1)}else for(i=(s=Z(t).concat()).length;-1<--i;)(s[i]._gc||e&&!s[i].isActive())&&s.splice(i,1);return s},z.killTweensOf=z.killDelayedCallsTo=function(t,e,i){"object"==typeof e&&(i=e,e=!1);for(var s=z.getTweensOf(t,e),r=s.length;-1<--r;)s[r]._kill(i,t)};var Q=w("plugins.TweenPlugin",function(t,e){this._overwriteProps=(t||"").split(","),this._propName=this._overwriteProps[0],this._priority=e||0,this._super=Q.prototype},!0);if(n=Q.prototype,Q.version="1.10.1",Q.API=2,n._firstPT=null,n._addTween=function(t,e,i,s,r,n){var a,o;return null!=s&&(a="number"==typeof s||"="!==s.charAt(1)?Number(s)-i:parseInt(s.charAt(0)+"1",10)*Number(s.substr(2)))?(this._firstPT=o={_next:this._firstPT,t:t,p:e,s:i,c:a,f:"function"==typeof t[e],n:r||e,r:n},o._next&&(o._next._prev=o),o):void 0},n.setRatio=function(t){for(var e,i=this._firstPT;i;)e=i.c*t+i.s,i.r?e=Math.round(e):e<1e-6&&-1e-6<e&&(e=0),i.f?i.t[i.p](e):i.t[i.p]=e,i=i._next},n._kill=function(t){var e,i=this._overwriteProps,s=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(;s;)null!=t[s.n]&&(s._next&&(s._next._prev=s._prev),s._prev?(s._prev._next=s._next,s._prev=null):this._firstPT===s&&(this._firstPT=s._next)),s=s._next;return!1},n._roundProps=function(t,e){for(var i=this._firstPT;i;)(t[this._propName]||null!=i.n&&t[i.n.split(this._propName+"_").join("")])&&(i.r=e),i=i._next},z._onPluginEvent=function(t,e){var i,s,r,n,a,o=e._firstPT;if("_onInitAllProps"===t){for(;o;){for(a=o._next,s=r;s&&s.pr>o.pr;)s=s._next;(o._prev=s?s._prev:n)?o._prev._next=o:r=o,(o._next=s)?s._prev=o:n=o,o=a}o=e._firstPT=r}for(;o;)o.pg&&"function"==typeof o.t[t]&&o.t[t]()&&(i=!0),o=o._next;return i},Q.activate=function(t){for(var e=t.length;-1<--e;)t[e].API===Q.API&&(Y[(new t[e])._propName]=t[e]);return!0},a.plugin=function(t){if(!(t&&t.propName&&t.init&&t.API))throw"illegal plugin definition.";var e,i=t.propName,s=t.priority||0,r=t.overwriteProps,n={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_roundProps",initAll:"_onInitAllProps"},a=w("plugins."+i.charAt(0).toUpperCase()+i.substr(1)+"Plugin",function(){Q.call(this,i,s),this._overwriteProps=r||[]},!0===t.global),o=a.prototype=new Q(i);for(e in(o.constructor=a).API=t.API,n)"function"==typeof t[e]&&(o[n[e]]=t[e]);return a.version=t.version,Q.activate([a]),a},s=p._gsQueue){for(r=0;s.length>r;r++)s[r]();for(n in T)T[n].func||p.console.log("GSAP encountered missing dependency: com.greensock."+n)}d=!1}}("undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window);var C,c,viewWidth,viewHeight,cols,rows,tris,interval,mouseX=mouseY=mouseOldX=mouseOldY=0,triW=14,triH=20,neighbours=["side","top","bottom"],speedTrailAppear=.1,speedTrailDisappear=.1,speedTriOpen=1,trailMaxLength=30,trailIntervalCreation=100,delayBeforeDisappear=2,randomAlpha=!0,colors=["#96EDA6","#5BC6A9","#38668C","#374D84","#BED5CB","#62ADC6","#8EE5DE","#304E7B"];function openComplete(t){t.opened=!0,t.opening=!1,t.closing=!1}function closeComplete(t){t.opened=!1,t.opening=!1,t.closing=!1}function unselectTris(){for(var t=0;t<tris.length;t++)tris[t].selectedForTrail=!1}function createTrail(){var t;unselectTris();var e=Math.floor(Math.random()*trailMaxLength-2)+2,i=Math.round(Math.random()*tris.length);startTri=tris[i],void 0!==startTri.selectedForTrail&&(startTri.selectedForTrail=!0),t={tri:startTri,openDir:"side",closeDir:"side"};for(var s=0;s<e;s++){var r,n=getNeighbour(t.tri);if(null==n){t.tri.open(t.openDir,speedTriOpen,r,(s+1)*speedTrailAppear),t.tri.close(t.closeDir,1,delayBeforeDisappear+(s+1)*speedTrailDisappear);break}n.tri.selectedForTrail=!0,r=randomAlpha&&Math.random()<.8?.5*Math.random():1,t.tri.closeDir=n.openDir,t.tri.open(t.openDir,speedTriOpen,r,s*speedTrailAppear),t.tri.close(t.closeDir,1,delayBeforeDisappear+s*speedTrailDisappear),t=n}}function getNeighbour(t){shuffleArray(neighbours);for(var e=0;e<neighbours.length;e++)if("top"==neighbours[e]){if(0!=t.row&&!tris[t.pos-cols].selectedForTrail&&!tris[t.pos-cols].opened)return{tri:tris[t.pos-cols],openDir:"top",closeDir:"top"}}else if("bottom"==neighbours[e]){if(t.row!=rows-1&&!tris[t.pos+cols].selectedForTrail&&!tris[t.pos+cols].opened)return{tri:tris[t.pos+cols],openDir:"bottom",closeDir:"top"}}else{if(t.isLeft&&t.col!=cols-1&&!tris[t.pos+1].selectedForTrail&&!tris[t.pos+1].opened)return{tri:tris[t.pos+1],openDir:"side",closeDir:"top"};if(!t.isLeft&&0!=t.col&&!tris[t.pos-1].selectedForTrail&&!tris[t.pos-1].opened)return{tri:tris[t.pos-1],openDir:"side",closeDir:"top"}}return null}function draw(){c.clearRect(0,0,C.width,C.height);for(var t=0;t<tris.length;t++)tris[t].draw()}function handleResize(){viewWidth=C.width=C.scrollWidth,viewHeight=C.height=C.scrollHeight,rectCanvas=C.getBoundingClientRect(),start()}function hexToRgb(t){var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return e?{r:parseInt(e[1],16),g:parseInt(e[2],16),b:parseInt(e[3],16)}:null}function shuffleArray(t){for(var e,i,s=t.length;s;e=Math.floor(Math.random()*s),i=t[--s],t[s]=t[e],t[e]=i);return t}function initCanvas(t){C=document.getElementById(t),c=C.getContext("2d"),viewWidth=C.width=C.scrollWidth,viewHeight=C.height=C.scrollHeight,initParams(),window.addEventListener("resize",handleResize),TweenLite.ticker.addEventListener("tick",draw),handleResize()}function initParams(){cols=(cols=Math.floor(viewWidth/triW))%2?cols:cols-1,rows=2*Math.floor(viewHeight/triH),tris=[]}function initGrid(){for(var t=0;t<rows;t++)for(var e=0;e<cols;e++){var i=new Triangle(e+t*cols,e,t);tris.push(i),i.draw()}}function start(){interval&&clearInterval(interval),initParams(),initGrid(),interval=setInterval(createTrail,trailIntervalCreation),createTrail()}function pause(){interval&&clearInterval(interval);for(var t=0;t<tris.length;t++)tris[t].tweenClose&&tris[t].tweenClose.kill()}function closeAll(){var t=0;interval&&clearInterval(interval);for(var e=0;e<tris.length;e++)tris[e].tweenOpen&&tris[e].tweenOpen.kill(),(tris[e].opened||tris[e].opening)&&(t++,tris[e].close("top",.8,.2+.0015*t))}function kill(){interval&&clearInterval(interval);for(var t=0;t<tris.length;t++)TweenLite.killTweensOf(tris[t]),tris[t].alpha=0}Triangle=function(t,e,i){var l=this;this.selectedForTrail=!1,this.pos=t,this.col=e,this.row=i,this.alpha=this.tAlpha=1,this.color=colors[Math.floor(Math.random()*colors.length)],this.rgb=hexToRgb(this.color),this.opened=!1,this.opening=!1,this.closing=!1,this.isLeft=this.pos%2,this.tX1=this.isLeft?(this.col+1)*triW:this.col*triW,this.tX2=this.isLeft?this.col*triW:(this.col+1)*triW,this.tX3=this.isLeft?(this.col+1)*triW:this.col*triW,this.x1=this.tX1,this.x2=this.tX1,this.x3=this.tX1,this.tY1=.5*this.row*triH,this.tY2=.5*(this.row+1)*triH,this.tY3=.5*(this.row+2)*triH,this.y1=this.tY1,this.y2=this.tY1,this.y3=this.tY1,this.tweenClose,this.tweenOpen,this.draw=function(){c.fillStyle="rgba("+this.rgb.r+","+this.rgb.g+","+this.rgb.b+","+this.alpha+")",c.beginPath(),c.moveTo(this.x1,this.y1),c.lineTo(this.x2,this.y2),c.lineTo(this.x3,this.y3),c.closePath(),c.fill()},this.open=function(t,e,i,s){this.opened&&this.opening||(this.tweenClose&&this.tweenClose.kill(),this.opening=!0,this.direction=t||"top",this.delay=s||0,this.tAlpha=i,this.tSpeed=e||1.5,"side"==this.direction?(this.x1=this.x2=this.x3=this.tX1,this.y1=this.tY1,this.y2=this.tY2,this.y3=this.tY3):"top"==this.direction?(this.x1=(this.tX2+this.tX3)/2,this.x2=this.tX2,this.x3=this.tX3,this.y1=(this.tY2+this.tY3)/2,this.y2=this.tY2,this.y3=this.tY3):"bottom"==this.direction&&(this.x1=this.tX1,this.x2=this.tX2,this.x3=(this.tX1+this.tX2)/2,this.y1=this.tY1,this.y2=this.tY2,this.y3=(this.tY1+this.tY2)/2),this.tweenOpen=TweenMax.to(this,this.tSpeed,{x1:this.tX1,x2:this.tX2,x3:this.tX3,y1:this.tY1,y2:this.tY2,y3:this.tY3,alpha:this.tAlpha,ease:Strong.easeInOut,delay:this.delay,onComplete:openComplete,onCompleteParams:[l]}))},this.close=function(t,e,i){var s,r,n,a,o,h;this.direction=t||"top",this.delay=i||1,this.tSpeed=e||.8,this.opened=!1,this.closing=!0,"side"==this.direction?(s=r=n=this.tX1,a=this.tY1,o=this.tY2,h=this.tY3):"top"==this.direction?(s=(this.tX2+this.tX3)/2,r=this.tX2,n=this.tX3,a=(this.tY2+this.tY3)/2,o=this.tY2,h=this.tY3):"bottom"==this.direction&&(s=this.tX1,r=this.tX2,n=(this.tX1+this.tX2)/2,a=this.tY1,o=this.tY2,h=(this.tY1+this.tY2)/2),this.tweenClose&&this.tweenClose.kill(),this.tweenClose=TweenMax.to(this,this.tSpeed,{x1:s,x2:r,x3:n,y1:a,y2:o,y3:h,alpha:0,ease:Strong.easeInOut,delay:this.delay,onComplete:closeComplete,onCompleteParams:[l]})}};