/** * version: beta 1.8.0 * date: 2013-01-21 * javascript (actionscript 3 and 2 also available) * updates and docs at: /www.greensock.com * * includes all of the following: tweenlite, tweenmax, timelinelite, timelinemax, easing.easepack, plugins.cssplugin, plugins.roundpropsplugin, plugins.bezierplugin * * @license copyright (c) 2008-2013, greensock. all rights reserved. * this work is subject to the terms in /www.greensock.com/terms_of_use.html or for * club greensock members, the software agreement that was issued with your membership. * * @author: jack doyle, jack@greensock.com **/ (window._gsqueue||(window._gsqueue=[])).push(function(){_gsdefine("tweenmax",["core.animation","core.simpletimeline","tweenlite"],function(a,b,c){var d=function(a,b,d){c.call(this,a,b,d),this._cycle=0,this._yoyo=this.vars.yoyo===!0,this._repeat=this.vars.repeat||0,this._repeatdelay=this.vars.repeatdelay||0,this._dirty=!0},e=d.prototype=c.to({},.1,{}),f=[];d.version="1.8.0",e.constructor=d,e.kill()._gc=!1,d.killtweensof=d.killdelayedcallsto=c.killtweensof,d.gettweensof=c.gettweensof,d.ticker=c.ticker,e.invalidate=function(){return this._yoyo=this.vars.yoyo===!0,this._repeat=this.vars.repeat||0,this._repeatdelay=this.vars.repeatdelay||0,this._uncache(!0),c.prototype.invalidate.call(this)},e.updateto=function(a,b){var e,d=this.ratio;b&&null!=this.timeline&&this._starttime.998){var f=this._time;this.render(0,!0,!1),this._initted=!1,this.render(f,!0,!1)}else if(this._time>0){this._initted=!1,this._init();for(var i,g=1/(1-d),h=this._firstpt;h;)i=h.s+h.c,h.c*=g,h.s=i-h.c,h=h._next}return this},e.render=function(a,b,c){var i,j,k,d=this._dirty?this.totalduration():this._totalduration,e=this._time,g=this._totaltime,h=this._cycle;if(a>=d)this._totaltime=d,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=this._duration,this.ratio=this._ease._calcend?this._ease.getratio(1):1),this._reversed||(i=!0,j="oncomplete"),0===this._duration&&((0===a||0>this._rawprevtime)&&this._rawprevtime!==a&&(c=!0),this._rawprevtime=a);else if(0>=a)this._totaltime=this._time=this._cycle=0,this.ratio=this._ease._calcend?this._ease.getratio(0):0,(0!==g||0===this._duration&&this._rawprevtime>0)&&(j="onreversecomplete",i=this._reversed),0>a?(this._active=!1,0===this._duration&&(this._rawprevtime>=0&&(c=!0),this._rawprevtime=a)):this._initted||(c=!0);else{if(this._totaltime=this._time=a,0!==this._repeat){var l=this._duration+this._repeatdelay;this._cycle=this._totaltime/l>>0,0!==this._cycle&&this._cycle===this._totaltime/l&&this._cycle--,this._time=this._totaltime-this._cycle*l,this._yoyo&&0!==(1&this._cycle)&&(this._time=this._duration-this._time),this._time>this._duration?this._time=this._duration:0>this._time&&(this._time=0)}if(this._easetype){var m=this._time/this._duration,n=this._easetype,o=this._easepower;(1===n||3===n&&m>=.5)&&(m=1-m),3===n&&(m*=2),1===o?m*=m:2===o?m*=m*m:3===o?m*=m*m*m:4===o&&(m*=m*m*m*m),this.ratio=1===n?1-m:2===n?m:.5>this._time/this._duration?m/2:1-m/2}else this.ratio=this._ease.getratio(this._time/this._duration)}if(e===this._time&&!c)return g!==this._totaltime&&this._onupdate&&(b||this._onupdate.apply(this.vars.onupdatescope||this,this.vars.onupdateparams||f)),void 0;for(this._initted||(this._init(),!i&&this._time&&(this.ratio=this._ease.getratio(this._time/this._duration))),this._active||this._paused||(this._active=!0),0===g&&this.vars.onstart&&(0!==this._totaltime||0===this._duration)&&(b||this.vars.onstart.apply(this.vars.onstartscope||this,this.vars.onstartparams||f)),k=this._firstpt;k;)k.f?k.t[k.p](k.c*this.ratio+k.s):k.t[k.p]=k.c*this.ratio+k.s,k=k._next;this._onupdate&&(b||this._onupdate.apply(this.vars.onupdatescope||this,this.vars.onupdateparams||f)),this._cycle!==h&&(b||this._gc||this.vars.onrepeat&&this.vars.onrepeat.apply(this.vars.onrepeatscope||this,this.vars.onrepeatparams||f)),j&&(this._gc||(i&&(this._timeline.autoremovechildren&&this._enabled(!1,!1),this._active=!1),b||this.vars[j]&&this.vars[j].apply(this.vars[j+"scope"]||this,this.vars[j+"params"]||f)))},d.to=function(a,b,c){return new d(a,b,c)},d.from=function(a,b,c){return c.runbackwards=!0,c.immediaterender!==!1&&(c.immediaterender=!0),new d(a,b,c)},d.fromto=function(a,b,c,e){return e.startat=c,c.immediaterender&&(e.immediaterender=!0),new d(a,b,e)},d.staggerto=d.allto=function(a,b,c,e,f,g,h){e=e||0;var l,m,n,i=[],j=a.length,k=c.delay||0;for(m=0;j>m;m++){l={};for(n in c)l[n]=c[n];l.delay=k,m===j-1&&f&&(l.oncomplete=function(){c.oncomplete&&c.oncomplete.apply(c.oncompletescope,c.oncompleteparams),f.apply(h,g)}),i[m]=new d(a[m],b,l),k+=e}return i},d.staggerfrom=d.allfrom=function(a,b,c,e,f,g,h){return c.runbackwards=!0,c.immediaterender!==!1&&(c.immediaterender=!0),d.staggerto(a,b,c,e,f,g,h)},d.staggerfromto=d.allfromto=function(a,b,c,e,f,g,h,i){return e.startat=c,c.immediaterender&&(e.immediaterender=!0),d.staggerto(a,b,e,f,g,h,i)},d.delayedcall=function(a,b,c,e,f){return new d(b,0,{delay:a,oncomplete:b,oncompleteparams:c,oncompletescope:e,onreversecomplete:b,onreversecompleteparams:c,onreversecompletescope:e,immediaterender:!1,useframes:f,overwrite:0})},d.set=function(a,b){return new d(a,0,b)},d.istweening=function(a){for(var e,b=c.gettweensof(a),d=b.length;--d>-1;)if((e=b[d])._active||e._starttime===e.timeline._time&&e.timeline._active)return!0;return!1};var g=function(a,b){for(var d=[],e=0,f=a._first;f;)f instanceof c?d[e++]=f:(b&&(d[e++]=f),d=d.concat(g(f,b)),e=d.length),f=f._next;return d},h=d.getalltweens=function(b){var c=g(a._roottimeline,b);return c.concat(g(a._rootframestimeline,b))};d.killall=function(a,c,d,e){null==c&&(c=!0),null==d&&(d=!0);var j,k,l,f=h(0!=e),g=f.length,i=c&&d&&e;for(l=0;g>l;l++)k=f[l],(i||k instanceof b||(j=k.target===k.vars.oncomplete)&&d||c&&!j)&&(a?k.totaltime(k.totalduration()):k._enabled(!1,!1))},d.killchildtweensof=function(a,b){if(null!=a){if(a.jquery)return a.each(function(a,c){d.killchildtweensof(c,b)}),void 0;var g,h,i,j,e=c._tweenlookup,f=[];for(h in e)for(g=e[h].target.parentnode;g;)g===a&&(f=f.concat(e[h].tweens)),g=g.parentnode;for(j=f.length,i=0;j>i;i++)b&&f[i].totaltime(f[i].totalduration()),f[i]._enabled(!1,!1)}},d.pauseall=function(a,b,c){i(!0,a,b,c)},d.resumeall=function(a,b,c){i(!1,a,b,c)};var i=function(a,c,d,e){void 0===c&&(c=!0),void 0===d&&(d=!0);for(var j,k,f=h(e),g=c&&d&&e,i=f.length;--i>-1;)k=f[i],(g||k instanceof b||(j=k.target===k.vars.oncomplete)&&d||c&&!j)&&k.paused(a)};return e.progress=function(a){return arguments.length?this.totaltime(this.duration()*(this._yoyo&&0!==(1&this._cycle)?1-a:a)+this._cycle*(this._duration+this._repeatdelay),!1):this._time/this.duration()},e.totalprogress=function(a){return arguments.length?this.totaltime(this.totalduration()*a,!1):this._totaltime/this.totalduration()},e.time=function(a,b){return arguments.length?(this._dirty&&this.totalduration(),a>this._duration&&(a=this._duration),this._yoyo&&0!==(1&this._cycle)?a=this._duration-a+this._cycle*(this._duration+this._repeatdelay):0!==this._repeat&&(a+=this._cycle*(this._duration+this._repeatdelay)),this.totaltime(a,b)):this._time},e.totalduration=function(a){return arguments.length?-1===this._repeat?this:this.duration((a-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)},e.repeat=function(a){return arguments.length?(this._repeat=a,this._uncache(!0)):this._repeat},e.repeatdelay=function(a){return arguments.length?(this._repeatdelay=a,this._uncache(!0)):this._repeatdelay},e.yoyo=function(a){return arguments.length?(this._yoyo=a,this):this._yoyo},d},!0),_gsdefine("timelinelite",["core.animation","core.simpletimeline","tweenlite"],function(a,b,c){"use strict";var d=function(a){b.call(this,a),this._labels={},this.autoremovechildren=this.vars.autoremovechildren===!0,this.smoothchildtiming=this.vars.smoothchildtiming===!0,this._sortchildren=!0,this._onupdate=this.vars.onupdate;for(var d,f,c=e.length;--c>-1;)if(f=this.vars[e[c]])for(d=f.length;--d>-1;)"{self}"===f[d]&&(f=this.vars[e[c]]=f.concat(),f[d]=this);this.vars.tweens instanceof array&&this.add(this.vars.tweens,0,this.vars.align,this.vars.stagger)},e=["onstartparams","onupdateparams","oncompleteparams","onreversecompleteparams","onrepeatparams"],f=[],g=function(a){var c,b={};for(c in a)b[c]=a[c];return b},h=d.prototype=new b;return d.version="1.8.0",h.constructor=d,h.kill()._gc=!1,h.to=function(a,b,d,e){return this.add(new c(a,b,d),e)},h.from=function(a,b,d,e){return this.add(c.from(a,b,d),e)},h.fromto=function(a,b,d,e,f){return this.add(c.fromto(a,b,d,e),f)},h.staggerto=function(a,b,e,f,h,i,j,k){var l=new d({oncomplete:i,oncompleteparams:j,oncompletescope:k});f=f||0;for(var m=0;a.length>m;m++)null!=e.startat&&(e.startat=g(e.startat)),l.add(new c(a[m],b,g(e)),m*f);return this.add(l,h)},h.staggerfrom=function(a,b,c,d,e,f,g,h){return null==c.immediaterender&&(c.immediaterender=!0),c.runbackwards=!0,this.staggerto(a,b,c,d,e,f,g,h)},h.staggerfromto=function(a,b,c,d,e,f,g,h,i){return d.startat=c,c.immediaterender&&(d.immediaterender=!0),this.staggerto(a,b,d,e,f,g,h,i)},h.call=function(a,b,d,e){return this.add(c.delayedcall(0,a,b,d),e)},h.set=function(a,b,d){return b.immediaterender=!1,this.add(new c(a,0,b),d)},d.exportroot=function(a,b){a=a||{},null==a.smoothchildtiming&&(a.smoothchildtiming=!0);var e=new d(a),f=e._timeline;null==b&&(b=!0),f._remove(e,!0),e._starttime=0,e._rawprevtime=e._time=e._totaltime=f._time;for(var h,g=f._first;g;)h=g._next,b&&g instanceof c&&g.target===g.vars.oncomplete||e.add(g,g._starttime-g._delay),g=h;return f.add(e,0),e},h.add=function(e,f,g,h){if("number"!=typeof f&&(f=this._parsetimeorlabel(f,0,!0,e)),e instanceof a);else{if(e instanceof array){g=g||"normal",h=h||0;var k,l,i=f,j=e.length;for(k=0;j>k;k++)(l=e[k])instanceof array&&(l=new d({tweens:l})),this.add(l,i),"string"!=typeof l&&"function"!=typeof l&&("sequence"===g?i=l._starttime+l.totalduration()/l._timescale:"start"===g&&(l._starttime-=l.delay())),i+=h;return this._uncache(!0)}if("string"==typeof e)return this.addlabel(e,f);if("function"!=typeof e)throw"cannot add "+e+" into the timelinelite/max: it is neither a tween, timeline, function, nor a string.";e=c.delayedcall(0,e)}if(b.prototype.add.call(this,e,f),this._gc&&!this._paused&&this._time===this._duration&&this._time-1;)this.remove(b[c]);return this}return"string"==typeof b?this.removelabel(b):this.kill(null,b)},h.append=function(a,b){return this.add(a,this._parsetimeorlabel(null,b,!0,a))},h.insert=h.insertmultiple=function(a,b,c,d){return this.add(a,b||0,c,d)},h.appendmultiple=function(a,b,c,d){return this.add(a,this._parsetimeorlabel(null,b,!0,a),c,d)},h.addlabel=function(a,b){return this._labels[a]=this._parsetimeorlabel(b),this},h.removelabel=function(a){return delete this._labels[a],this},h.getlabeltime=function(a){return null!=this._labels[a]?this._labels[a]:-1},h._parsetimeorlabel=function(b,c,d,e){var f;if(e instanceof a&&e.timeline===this)this.remove(e);else if(e instanceof array)for(f=e.length;--f>-1;)e[f]instanceof a&&e[f].timeline===this&&this.remove(e[f]);if("string"==typeof c)return this._parsetimeorlabel(c,d&&"number"==typeof b&&null==this._labels[c]?b-this.duration():0,d);if(c=c||0,"string"!=typeof b||!isnan(b)&&null==this._labels[b])null==b&&(b=this.duration());else{if(f=b.indexof("="),-1===f)return null==this._labels[b]?d?this._labels[b]=this.duration()+c:c:this._labels[b]+c;c=parseint(b.charat(f-1)+"1",10)*number(b.substr(f+1)),b=f>1?this._parsetimeorlabel(b.substr(0,f-1),0,d):this.duration()}return number(b)+c},h.seek=function(a,b){return this.totaltime("number"==typeof a?a:this._parsetimeorlabel(a),b!==!1)},h.stop=function(){return this.paused(!0)},h.gotoandplay=function(a,c){return b.prototype.play.call(this,a,c)},h.gotoandstop=function(a,b){return this.pause(a,b)},h.render=function(a,b,c){this._gc&&this._enabled(!0,!1),this._active=!this._paused;var j,k,l,m,d=this._dirty?this.totalduration():this._totalduration,e=this._time,g=this._starttime,h=this._timescale,i=this._paused;if(a>=d?(this._totaltime=this._time=d,this._reversed||this._haspausedchild()||(k=!0,m="oncomplete",0===this._duration&&(0===a||0>this._rawprevtime)&&this._rawprevtime!==a&&(c=!0)),this._rawprevtime=a,a=d+1e-6):0>=a?(this._totaltime=this._time=0,(0!==e||0===this._duration&&this._rawprevtime>0)&&(m="onreversecomplete",k=this._reversed),0>a?(this._active=!1,0===this._duration&&this._rawprevtime>=0&&(c=!0)):this._initted||(c=!0),this._rawprevtime=a,a=-1e-6):this._totaltime=this._time=this._rawprevtime=a,this._time!==e||c){if(this._initted||(this._initted=!0),0===e&&this.vars.onstart&&0!==this._time&&(b||this.vars.onstart.apply(this.vars.onstartscope||this,this.vars.onstartparams||f)),this._time>e)for(j=this._first;j&&(l=j._next,!this._paused||i);)(j._active||j._starttime<=this._time&&!j._paused&&!j._gc)&&(j._reversed?j.render((j._dirty?j.totalduration():j._totalduration)-(a-j._starttime)*j._timescale,b,!1):j.render((a-j._starttime)*j._timescale,b,!1)),j=l;else for(j=this._last;j&&(l=j._prev,!this._paused||i);)(j._active||e>=j._starttime&&!j._paused&&!j._gc)&&(j._reversed?j.render((j._dirty?j.totalduration():j._totalduration)-(a-j._starttime)*j._timescale,b,!1):j.render((a-j._starttime)*j._timescale,b,!1)),j=l;this._onupdate&&(b||this._onupdate.apply(this.vars.onupdatescope||this,this.vars.onupdateparams||f)),m&&(this._gc||(g===this._starttime||h!=this._timescale)&&(0===this._time||d>=this.totalduration())&&(k&&(this._timeline.autoremovechildren&&this._enabled(!1,!1),this._active=!1),b||this.vars[m]&&this.vars[m].apply(this.vars[m+"scope"]||this,this.vars[m+"params"]||f)))}},h._haspausedchild=function(){for(var a=this._first;a;){if(a._paused||a instanceof d&&a._haspausedchild())return!0;a=a._next}return!1},h.getchildren=function(a,b,d,e){e=e||-9999999999;for(var f=[],g=this._first,h=0;g;)e>g._starttime||(g instanceof c?b!==!1&&(f[h++]=g):(d!==!1&&(f[h++]=g),a!==!1&&(f=f.concat(g.getchildren(!0,b,d)),h=f.length))),g=g._next;return f},h.gettweensof=function(a,b){for(var d=c.gettweensof(a),e=d.length,f=[],g=0;--e>-1;)(d[e].timeline===this||b&&this._contains(d[e]))&&(f[g++]=d[e]);return f},h._contains=function(a){for(var b=a.timeline;b;){if(b===this)return!0;b=b.timeline}return!1},h.shiftchildren=function(a,b,c){c=c||0;for(var d=this._first;d;)d._starttime>=c&&(d._starttime+=a),d=d._next;if(b)for(var e in this._labels)this._labels[e]>=c&&(this._labels[e]+=a);return this._uncache(!0)},h._kill=function(a,b){if(null==a&&null==b)return this._enabled(!1,!1);for(var c=null==b?this.getchildren(!0,!0,!1):this.gettweensof(b),d=c.length,e=!1;--d>-1;)c[d]._kill(a,b)&&(e=!0);return e},h.clear=function(a){var b=this.getchildren(!1,!0,!0),c=b.length;for(this._time=this._totaltime=0;--c>-1;)b[c]._enabled(!1,!1);return a!==!1&&(this._labels={}),this._uncache(!0)},h.invalidate=function(){for(var a=this._first;a;)a.invalidate(),a=a._next;return this},h._enabled=function(a,c){if(a===this._gc)for(var d=this._first;d;)d._enabled(a,!0),d=d._next;return b.prototype._enabled.call(this,a,c)},h.progress=function(a){return arguments.length?this.totaltime(this.duration()*a,!1):this._time/this.duration()},h.duration=function(a){return arguments.length?(0!==this.duration()&&0!==a&&this.timescale(this._duration/a),this):(this._dirty&&this.totalduration(),this._duration)},h.totalduration=function(a){if(!arguments.length){if(this._dirty){for(var e,f,b=0,c=this._first,d=-999999999999;c;)e=c._next,d>c._starttime&&this._sortchildren?this.add(c,c._starttime-c._delay):d=c._starttime,0>c._starttime&&(b-=c._starttime,this.shiftchildren(-c._starttime,!1,-9999999999)),f=c._starttime+(c._dirty?c.totalduration():c._totalduration)/c._timescale,f>b&&(b=f),c=e;this._duration=this._totalduration=b,this._dirty=!1}return this._totalduration}return 0!==this.totalduration()&&0!==a&&this.timescale(this._totalduration/a),this},h.usesframes=function(){for(var b=this._timeline;b._timeline;)b=b._timeline;return b===a._rootframestimeline},h.rawtime=function(){return this._paused||0!==this._totaltime&&this._totaltime!==this._totalduration?this._totaltime:(this._timeline.rawtime()-this._starttime)*this._timescale},d},!0),_gsdefine("timelinemax",["timelinelite","tweenlite","easing.ease"],function(a,b,c){var d=function(b){a.call(this,b),this._repeat=this.vars.repeat||0,this._repeatdelay=this.vars.repeatdelay||0,this._cycle=0,this._yoyo=this.vars.yoyo===!0,this._dirty=!0},e=[],f=new c(null,null,1,0),g=function(a){for(;a;){if(a._paused)return!0;a=a._timeline}return!1},h=d.prototype=new a;return h.constructor=d,h.kill()._gc=!1,d.version="1.8.0",h.invalidate=function(){return this._yoyo=this.vars.yoyo===!0,this._repeat=this.vars.repeat||0,this._repeatdelay=this.vars.repeatdelay||0,this._uncache(!0),a.prototype.invalidate.call(this)},h.addcallback=function(a,c,d,e){return this.add(b.delayedcall(0,a,d,e),c)},h.removecallback=function(a,b){if(null==b)this._kill(null,a);else for(var c=this.gettweensof(a,!1),d=c.length,e=this._parsetimeorlabel(b);--d>-1;)c[d]._starttime===e&&c[d]._enabled(!1,!1);return this},h.tweento=function(a,c){c=c||{};var g,h,d={ease:f,overwrite:2,useframes:this.usesframes(),immediaterender:!1};for(g in c)d[g]=c[g];return d.time=this._parsetimeorlabel(a),h=new b(this,math.abs(number(d.time)-this._time)/this._timescale||.001,d),d.onstart=function(){h.target.paused(!0),h.vars.time!==h.target.time()&&h.duration(math.abs(h.vars.time-h.target.time())/h.target._timescale),c.onstart&&c.onstart.apply(c.onstartscope||h,c.onstartparams||e)},h},h.tweenfromto=function(a,b,c){c=c||{},c.startat={time:this._parsetimeorlabel(a)};var d=this.tweento(b,c);return d.duration(math.abs(d.vars.time-d.vars.startat.time)/this._timescale||.001)},h.render=function(a,b,c){this._gc&&this._enabled(!0,!1),this._active=!this._paused;var m,n,o,q,d=this._dirty?this.totalduration():this._totalduration,f=this._time,g=this._totaltime,h=this._starttime,i=this._timescale,j=this._rawprevtime,k=this._paused,l=this._cycle;if(a>=d)this._locked||(this._totaltime=d,this._cycle=this._repeat),this._reversed||this._haspausedchild()||(n=!0,q="oncomplete",0===this._duration&&(0===a||0>this._rawprevtime)&&this._rawprevtime!==a&&(c=!0)),this._rawprevtime=a,this._yoyo&&0!==(1&this._cycle)?(this._time=0,a=-1e-6):(this._time=this._duration,a=this._duration+1e-6);else if(0>=a)this._locked||(this._totaltime=this._cycle=0),this._time=0,(0!==f||0===this._duration&&this._rawprevtime>0&&!this._locked)&&(q="onreversecomplete",n=this._reversed),0>a?(this._active=!1,0===this._duration&&this._rawprevtime>=0&&(c=!0)):this._initted||(c=!0),this._rawprevtime=a,a=0===this._duration?0:-1e-6;else if(this._time=this._rawprevtime=a,!this._locked&&(this._totaltime=a,0!==this._repeat)){var r=this._duration+this._repeatdelay;this._cycle=this._totaltime/r>>0,0!==this._cycle&&this._cycle===this._totaltime/r&&this._cycle--,this._time=this._totaltime-this._cycle*r,this._yoyo&&0!==(1&this._cycle)&&(this._time=this._duration-this._time),this._time>this._duration?(this._time=this._duration,a=this._duration+1e-6):0>this._time?this._time=a=0:a=this._time}if(this._cycle!==l&&!this._locked){var s=this._yoyo&&0!==(1&l),t=s===(this._yoyo&&0!==(1&this._cycle)),u=this._totaltime,v=this._cycle,w=this._rawprevtime,x=this._time;this._totaltime=l*this._duration,l>this._cycle?s=!s:this._totaltime+=this._duration,this._time=f,this._rawprevtime=0===this._duration?j-1e-5:j,this._cycle=l,this._locked=!0,f=s?0:this._duration,this.render(f,b,0===this._duration),b||this._gc||this.vars.onrepeat&&this.vars.onrepeat.apply(this.vars.onrepeatscope||this,this.vars.onrepeatparams||e),t&&(f=s?this._duration+1e-6:-1e-6,this.render(f,!0,!1)),this._time=x,this._totaltime=u,this._cycle=v,this._rawprevtime=w,this._locked=!1}if(this._time===f&&!c)return g!==this._totaltime&&this._onupdate&&(b||this._onupdate.apply(this.vars.onupdatescope||this,this.vars.onupdateparams||e)),void 0;if(this._initted||(this._initted=!0),0===g&&this.vars.onstart&&0!==this._totaltime&&(b||this.vars.onstart.apply(this.vars.onstartscope||this,this.vars.onstartparams||e)),this._time>f)for(m=this._first;m&&(o=m._next,!this._paused||k);)(m._active||m._starttime<=this._time&&!m._paused&&!m._gc)&&(m._reversed?m.render((m._dirty?m.totalduration():m._totalduration)-(a-m._starttime)*m._timescale,b,!1):m.render((a-m._starttime)*m._timescale,b,!1)),m=o;else for(m=this._last;m&&(o=m._prev,!this._paused||k);)(m._active||f>=m._starttime&&!m._paused&&!m._gc)&&(m._reversed?m.render((m._dirty?m.totalduration():m._totalduration)-(a-m._starttime)*m._timescale,b,!1):m.render((a-m._starttime)*m._timescale,b,!1)),m=o;this._onupdate&&(b||this._onupdate.apply(this.vars.onupdatescope||this,this.vars.onupdateparams||e)),q&&(this._locked||this._gc||(h===this._starttime||i!==this._timescale)&&(0===this._time||d>=this.totalduration())&&(n&&(this._timeline.autoremovechildren&&this._enabled(!1,!1),this._active=!1),b||this.vars[q]&&this.vars[q].apply(this.vars[q+"scope"]||this,this.vars[q+"params"]||e)))},h.getactive=function(a,b,c){null==a&&(a=!0),null==b&&(b=!0),null==c&&(c=!1);var i,j,d=[],e=this.getchildren(a,b,c),f=0,h=e.length;for(i=0;h>i;i++)j=e[i],j._paused||j._timeline._time>=j._starttime&&j._timeline._timed;d++)if(b[d].time>a)return b[d].name;return null},h.getlabelbefore=function(a){null==a&&(a=this._time);for(var b=this.getlabelsarray(),c=b.length;--c>-1;)if(a>b[c].time)return b[c].name;return null},h.getlabelsarray=function(){var c,a=[],b=0;for(c in this._labels)a[b++]={time:this._labels[c],name:c};return a.sort(function(a,b){return a.time-b.time}),a},h.progress=function(a){return arguments.length?this.totaltime(this.duration()*(this._yoyo&&0!==(1&this._cycle)?1-a:a)+this._cycle*(this._duration+this._repeatdelay),!1):this._time/this.duration()},h.totalprogress=function(a){return arguments.length?this.totaltime(this.totalduration()*a,!1):this._totaltime/this.totalduration()},h.totalduration=function(b){return arguments.length?-1===this._repeat?this:this.duration((b-this._repeat*this._repeatdelay)/(this._repeat+1)):(this._dirty&&(a.prototype.totalduration.call(this),this._totalduration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatdelay*this._repeat),this._totalduration)},h.time=function(a,b){return arguments.length?(this._dirty&&this.totalduration(),a>this._duration&&(a=this._duration),this._yoyo&&0!==(1&this._cycle)?a=this._duration-a+this._cycle*(this._duration+this._repeatdelay):0!==this._repeat&&(a+=this._cycle*(this._duration+this._repeatdelay)),this.totaltime(a,b)):this._time},h.repeat=function(a){return arguments.length?(this._repeat=a,this._uncache(!0)):this._repeat},h.repeatdelay=function(a){return arguments.length?(this._repeatdelay=a,this._uncache(!0)):this._repeatdelay},h.yoyo=function(a){return arguments.length?(this._yoyo=a,this):this._yoyo},h.currentlabel=function(a){return arguments.length?this.seek(a,!0):this.getlabelbefore(this._time+1e-8)},d},!0),_gsdefine("plugins.bezierplugin",["plugins.tweenplugin"],function(a){var b=function(){a.call(this,"bezier",-1),this._overwriteprops.pop(),this._func={},this._round={}},c=b.prototype=new a("bezier",1),d=180/math.pi,e=math.pi/180,f=[],g=[],h=[],i={},j=function j(a,b,c,d){this.a=a,this.b=b,this.c=c,this.d=d,this.da=d-a,this.ca=c-a,this.ba=b-a},k=",x,y,z,left,top,right,bottom,margintop,marginleft,marginright,marginbottom,paddingleft,paddingtop,paddingright,paddingbottom,backgroundposition,backgroundposition_y,",l=b.bezierthrough=function(a,b,c,d,e,j){var q,r,s,t,u,v,w,x,l={},m=[],p=j||a[0];e="string"==typeof e?","+e+",":k,null==b&&(b=1);for(r in a[0])m.push(r);if(a.length>1){for(x=a[a.length-1],w=!0,q=m.length;--q>-1;)if(r=m[q],math.abs(p[r]-x[r])>.05){w=!1;break}w&&(a=a.concat(),j&&a.unshift(j),a.push(a[1]),j=a[a.length-3])}for(f.length=g.length=h.length=0,q=m.length;--q>-1;)r=m[q],i[r]=-1!==e.indexof(","+r+","),l[r]=n(a,r,i[r],j);for(q=f.length;--q>-1;)f[q]=math.sqrt(f[q]),g[q]=math.sqrt(g[q]);if(!d){for(q=m.length;--q>-1;)if(i[r])for(s=l[m[q]],v=s.length-1,t=0;v>t;t++)u=s[t+1].da/g[t]+s[t].da/f[t],h[t]=(h[t]||0)+u*u;for(q=h.length;--q>-1;)h[q]=math.sqrt(h[q])}for(q=m.length,t=c?4:1;--q>-1;)r=m[q],s=l[r],o(s,b,c,d,i[r]),w&&(s.splice(0,t),s.splice(s.length-t,t));return l},m=function(a,b,c){b=b||"soft";var h,i,k,l,m,n,o,p,q,r,s,d={},e="cubic"===b?3:2,f="soft"===b,g=[];if(f&&c&&(a=[c].concat(a)),null==a||e+1>a.length)throw"invalid bezier data";for(q in a[0])g.push(q);for(n=g.length;--n>-1;){for(q=g[n],d[q]=m=[],r=0,p=a.length,o=0;p>o;o++)h=null==c?a[o][q]:"string"==typeof(s=a[o][q])&&"="===s.charat(1)?c[q]+number(s.charat(0)+s.substr(2)):number(s),f&&o>1&&p-1>o&&(m[r++]=(h+m[r-2])/2),m[r++]=h;for(p=r-e+1,r=0,o=0;p>o;o+=e)h=m[o],i=m[o+1],k=m[o+2],l=2===e?0:m[o+3],m[r++]=s=3===e?new j(h,i,k,l):new j(h,(2*i+h)/3,(2*i+k)/3,k);m.length=r}return d},n=function(a,b,c,d){var h,i,k,l,m,n,e=[];if(d)for(a=[d].concat(a),i=a.length;--i>-1;)"string"==typeof(n=a[i][b])&&"="===n.charat(1)&&(a[i][b]=d[b]+number(n.charat(0)+n.substr(2)));if(h=a.length-2,0>h)return e[0]=new j(a[0][b],0,0,a[-1>h?0:1][b]),e;for(i=0;h>i;i++)k=a[i][b],l=a[i+1][b],e[i]=new j(k,0,0,l),c&&(m=a[i+2][b],f[i]=(f[i]||0)+(l-k)*(l-k),g[i]=(g[i]||0)+(m-l)*(m-l));return e[i]=new j(a[i][b],0,0,a[i+1][b]),e},o=function(a,b,c,d,e){var l,m,n,o,q,r,s,t,u,v,w,x,y,i=a.length-1,j=0,k=a[0].a;for(l=0;i>l;l++)q=a[j],m=q.a,n=q.d,o=a[j+1].d,e?(w=f[l],x=g[l],y=.25*(x+w)*b/(d?.5:h[l]||.5),r=n-(n-m)*(d?.5*b:y/w),s=n+(o-n)*(d?.5*b:y/x),t=n-(r+(s-r)*(3*w/(w+x)+.5)/4)):(r=n-.5*(n-m)*b,s=n+.5*(o-n)*b,t=n-(r+s)/2),r+=t,s+=t,q.c=u=r,q.b=0!==l?k:k=q.a+.6*(q.c-q.a),q.da=n-m,q.ca=u-m,q.ba=k-m,c?(v=p(m,k,u,n),a.splice(j,1,v[0],v[1],v[2],v[3]),j+=4):j++,k=s;q=a[j],q.b=k,q.c=k+.4*(q.d-k),q.da=q.d-q.a,q.ca=q.c-q.a,q.ba=k-q.a,c&&(v=p(q.a,k,q.c,q.d),a.splice(j,1,v[0],v[1],v[2],v[3]))},p=b.cubictoquadratic=function(a,b,c,d){var e={a:a},f={},g={},h={c:d},i=(a+b)/2,j=(b+c)/2,k=(c+d)/2,l=(i+j)/2,m=(j+k)/2,n=(m-l)/8;return e.b=i+(a-i)/4,f.b=l+n,e.c=f.a=(e.b+f.b)/2,f.c=g.a=(l+m)/2,g.b=m-n,h.b=k+(d-k)/4,g.c=h.a=(g.b+h.b)/2,[e,f,g,h]},q=function(a,b){b=b>>0||6;var j,k,l,m,c=[],d=[],e=0,f=0,g=b-1,h=[],i=[];for(j in a)r(a[j],c,b);for(l=c.length,k=0;l>k;k++)e+=math.sqrt(c[k]),m=k%b,i[m]=e,m===g&&(f+=e,m=k/b>>0,h[m]=i,d[m]=f,e=0,i=[]);return{length:f,lengths:d,segments:h}},r=function(a,b,c){for(var f,g,h,i,j,k,l,m,n,o,p,d=1/c,e=a.length;--e>-1;)for(o=a[e],h=o.a,i=o.d-h,j=o.c-h,k=o.b-h,f=g=0,m=1;c>=m;m++)l=d*m,n=1-l,f=g-(g=(l*l*i+3*n*(l*j+n*k))*l),p=e*c+m-1,b[p]=(b[p]||0)+f*f};return c.constructor=b,b.api=2,b._autocss=!0,b.quadratictocubic=function(a,b,c){return new j(a,(2*b+a)/3,(2*b+c)/3,c)},b._cssregister=function(){var a=(window.greensockglobals||window).com.greensock.plugins.cssplugin;if(a){var c=a._internals,d=c._parsetoproxy,f=c._setpluginratio,g=c.cssproptween;c._registercomplexspecialprop("bezier",null,function(a,c,h,i,j,k){c instanceof array&&(c={values:c}),k=new b;var p,q,r,l=c.values,m=l.length-1,n=[],o={};if(0>m)return j;for(p=0;m>=p;p++)r=d(a,l[p],i,j,k,m!==p),n[p]=r.end;for(q in c)o[q]=c[q];return o.values=n,j=new g(a,"bezier",0,0,r.pt,2),j.data=r,j.plugin=k,j.setratio=f,0===o.autorotate&&(o.autorotate=!0),o.autorotate&&(o.autorotate instanceof array||(p=o.autorotate===!0?0:number(o.autorotate)*e,o.autorotate=null!=r.end.left?[["left","top","rotation",p,!0]]:null!=r.end.x?[["x","y","rotation",p,!0]]:!1)),o.autorotate&&(i._transform||i._enabletransforms(!1),r.autorotate=i._target._gstransform),k._oninittween(r.proxy,o,i._tween),j})}},c._oninittween=function(a,b,c){this._target=a,b instanceof array&&(b={values:b}),this._props=[],this._timeres=null==b.timeresolution?6:parseint(b.timeresolution,10);var h,i,j,k,n,d=b.values||[],e={},f=d[0],g=b.autorotate||c.vars.orienttobezier;this._autorotate=g?g instanceof array?g:[["x","y","rotation",g===!0?0:number(g)||0]]:null;for(h in f)this._props.push(h);for(j=this._props.length;--j>-1;)h=this._props[j],this._overwriteprops.push(h),i=this._func[h]="function"==typeof a[h],e[h]=i?a[h.indexof("set")||"function"!=typeof a["get"+h.substr(3)]?h:"get"+h.substr(3)]():parsefloat(a[h]),n||e[h]!==d[0][h]&&(n=e);if(this._beziers="cubic"!==b.type&&"quadratic"!==b.type&&"soft"!==b.type?l(d,isnan(b.curviness)?1:b.curviness,!1,"thrubasic"===b.type,b.correlate,n):m(d,b.type,e),this._segcount=this._beziers[h].length,this._timeres){var o=q(this._beziers,this._timeres);this._length=o.length,this._lengths=o.lengths,this._segments=o.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(g=this._autorotate)for(g[0]instanceof array||(this._autorotate=g=[g]),j=g.length;--j>-1;)for(k=0;3>k;k++)h=g[j][k],this._func[h]="function"==typeof a[h]?a[h.indexof("set")||"function"!=typeof a["get"+h.substr(3)]?h:"get"+h.substr(3)]:!1;return!0},c.setratio=function(a){var f,g,h,i,j,k,l,m,n,o,b=this._segcount,c=this._func,e=this._target;if(this._timeres){if(n=this._lengths,o=this._curseg,a*=this._length,h=this._li,a>this._l2&&b-1>h){for(m=b-1;m>h&&a>=(this._l2=n[++h]););this._l1=n[h-1],this._li=h,this._curseg=o=this._segments[h],this._s2=o[this._s1=this._si=0]}else if(this._l1>a&&h>0){for(;h>0&&(this._l1=n[--h])>=a;);0===h&&this._l1>a?this._l1=0:h++,this._l2=n[h],this._li=h,this._curseg=o=this._segments[h],this._s1=o[(this._si=o.length-1)-1]||0,this._s2=o[this._si]}if(f=h,a-=this._l1,h=this._si,a>this._s2&&o.length-1>h){for(m=o.length-1;m>h&&a>=(this._s2=o[++h]););this._s1=o[h-1],this._si=h}else if(this._s1>a&&h>0){for(;h>0&&(this._s1=o[--h])>=a;);0===h&&this._s1>a?this._s1=0:h++,this._s2=o[h],this._si=h}k=(h+(a-this._s1)/(this._s2-this._s1))*this._prec}else f=0>a?0:a>=1?b-1:b*a>>0,k=(a-f*(1/b))*b;for(g=1-k,h=this._props.length;--h>-1;)i=this._props[h],j=this._beziers[i][f],l=(k*k*j.da+3*g*(k*j.ca+g*j.ba))*k+j.a,this._round[i]&&(l=l+(l>0?.5:-.5)>>0),c[i]?e[i](l):e[i]=l;if(this._autorotate){var q,r,s,t,u,v,w,p=this._autorotate;for(h=p.length;--h>-1;)i=p[h][2],v=p[h][3]||0,w=p[h][4]===!0?1:d,j=this._beziers[p[h][0]][f],q=this._beziers[p[h][1]][f],r=j.a+(j.b-j.a)*k,t=j.b+(j.c-j.b)*k,r+=(t-r)*k,t+=(j.c+(j.d-j.c)*k-t)*k,s=q.a+(q.b-q.a)*k,u=q.b+(q.c-q.b)*k,s+=(u-s)*k,u+=(q.c+(q.d-q.c)*k-u)*k,l=math.atan2(u-s,t-r)*w+v,c[i]?c[i].call(e,l):e[i]=l}},c._roundprops=function(a,b){for(var c=this._overwriteprops,d=c.length;--d>-1;)(a[c[d]]||a.bezier||a.bezierthrough)&&(this._round[c[d]]=b)},c._kill=function(b){var d,e,c=this._props;for(d in this._beziers)if(d in b)for(delete this._beziers[d],delete this._func[d],e=c.length;--e>-1;)c[e]===d&&c.splice(e,1);return a.prototype._kill.call(this,b)},a.activate([b]),b},!0),_gsdefine("plugins.cssplugin",["plugins.tweenplugin","tweenlite"],function(a){"use strict";var d,e,f,g,c=function(){a.call(this,"css"),this._overwriteprops.length=0},h={},i=c.prototype=new a("css");i.constructor=c,c.version="1.8.0",c.api=2,c.defaulttransformperspective=0,i="px",c.suffixmap={top:i,right:i,bottom:i,left:i,width:i,height:i,fontsize:i,padding:i,margin:i,perspective:i};var g,h,i,j,k,l,j=/(?:\d|\-\d|\.\d|\-\.\d)+/g,k=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,l=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-za-z0-9]*(?:%|\b)/gi,m=/[^\d\-\.]/g,n=/(?:\d|\-|\+|=|#|\.)*/g,o=/opacity *= *([^)]*)/,p=/opacity:([^;]*)/,q=/alpha\(opacity *=.+?\)/i,r=/([a-z])/g,s=/-([a-z])/gi,t=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,u=function(a,b){return b.touppercase()},v=/(?:left|right|width)/i,w=/(m11|m12|m21|m22)=[\d\-\.e]+/gi,x=/progid\:dximagetransform\.microsoft\.matrix\(.+?\)/i,y=math.pi/180,z=180/math.pi,a={},b=document,c=b.createelement("div"),d=b.createelement("img"),e=c._internals={_specialprops:h},f=navigator.useragent,m=function(){var c,a=f.indexof("android"),b=b.createelement("div"); return i=-1!==f.indexof("safari")&&-1===f.indexof("chrome")&&(-1===a||number(f.substr(a+8,1))>3),k=i&&6>number(f.substr(f.indexof("version/")+8,1)),j=-1!==f.indexof("firefox"),/msie ([0-9]{1,}[\.0-9]{0,})/.exec(f),l=parsefloat(regexp.$1),b.innerhtml="a",c=b.getelementsbytagname("a")[0],c?/^0.55/.test(c.style.opacity):!1}(),n=function(a){return o.test("string"==typeof a?a:(a.currentstyle?a.currentstyle.filter:a.style.filter)||"")?parsefloat(regexp.$1)/100:1},o=function(a){window.console&&console.log(a)},p="",q="",r=function(a,b){b=b||c;var d,e,c=b.style;if(void 0!==c[a])return a;for(a=a.charat(0).touppercase()+a.substr(1),d=["o","moz","ms","ms","webkit"],e=5;--e>-1&&void 0===c[d[e]+a];);return e>=0?(q=3===e?"ms":d[e],p="-"+q.tolowercase()+"-",q+a):null},s=b.defaultview?b.defaultview.getcomputedstyle:function(){},t=c.getstyle=function(a,b,c,d,e){var f;return m||"opacity"!==b?(!d&&a.style[b]?f=a.style[b]:(c=c||s(a,null))?(a=c.getpropertyvalue(b.replace(r,"-$1").tolowercase()),f=a||c.length?a:c[b]):a.currentstyle&&(c=a.currentstyle,f=c[b]),null==e||f&&"none"!==f&&"auto"!==f&&"auto auto"!==f?f:e):n(a)},u=function(a,b,c){var f,g,d={},e=a._gsoverwrittenclassnamept;if(e&&!c){for(;e;)e.setratio(0),e=e._next;a._gsoverwrittenclassnamept=null}if(b=b||s(a,null))if(f=b.length)for(;--f>-1;)d[b[f].replace(s,u)]=b.getpropertyvalue(b[f]);else for(f in b)d[f]=b[f];else if(b=a.currentstyle||a.style)for(f in b)d[f.replace(s,u)]=b[f];return m||(d.opacity=n(a)),g=wb(a,b,!1),d.rotation=g.rotation*z,d.skewx=g.skewx*z,d.scalex=g.scalex,d.scaley=g.scaley,d.x=g.x,d.y=g.y,vb&&(d.z=g.z,d.rotationx=g.rotationx*z,d.rotationy=g.rotationy*z,d.scalez=g.scalez),d.filters&&delete d.filters,d},v=function(a,b,c,d){var g,h,i,e={},f=a.style;for(h in c)"csstext"!==h&&"length"!==h&&isnan(h)&&b[h]!==(g=c[h])&&-1===h.indexof("origin")&&("number"==typeof g||"string"==typeof g)&&(e[h]=""!==g&&"auto"!==g&&"none"!==g||"string"!=typeof b[h]||""===b[h].replace(m,"")?g:0,void 0!==f[h]&&(i=new jb(f,h,f[h],i)));if(d)for(h in d)"classname"!==h&&(e[h]=d[h]);return{difs:e,firstmpt:i}},w={width:["left","right"],height:["top","bottom"]},x=["marginleft","marginright","margintop","marginbottom"],y=function(a,b,c){var d=parsefloat("width"===b?a.offsetwidth:a.offsetheight),e=w[b],f=e.length;for(c=c||s(a,null);--f>-1;)d-=parsefloat(t(a,"padding"+e[f],c,!0))||0,d-=parsefloat(t(a,"border"+e[f]+"width",c,!0))||0;return d},z=function(a,b,c,d,e){if("px"===d||!d)return c;if("auto"===d||!c)return 0;var j,f=v.test(b),g=a,h=c.style,i=0>c;return i&&(c=-c),"%"===d&&-1!==b.indexof("border")?j=c/100*(f?a.clientwidth:a.clientheight):(h.csstext="border-style:solid; border-width:0; position:absolute; line-height:0;","%"!==d&&"em"!==d&&g.appendchild?h[f?"borderleftwidth":"bordertopwidth"]=c+d:(g=a.parentnode||b.body,h[f?"width":"height"]=c+d),g.appendchild(c),j=parsefloat(c[f?"offsetwidth":"offsetheight"]),g.removechild(c),0!==j||e||(j=z(a,b,c,d,!0))),i?-j:j},$=function(a,b){(null==a||""===a||"auto"===a||"auto auto"===a)&&(a="0 0");var c=a.split(" "),d=-1!==a.indexof("left")?"0%":-1!==a.indexof("right")?"100%":c[0],e=-1!==a.indexof("top")?"0%":-1!==a.indexof("bottom")?"100%":c[1];return null==e?e="0":"center"===e&&(e="50%"),("center"===d||isnan(parsefloat(d)))&&(d="50%"),b&&(b.oxp=-1!==d.indexof("%"),b.oyp=-1!==e.indexof("%"),b.oxr="="===d.charat(1),b.oyr="="===e.charat(1),b.ox=parsefloat(d.replace(m,"")),b.oy=parsefloat(e.replace(m,""))),d+" "+e+(c.length>2?" "+c[2]:"")},_=function(a,b){return"string"==typeof a&&"="===a.charat(1)?parseint(a.charat(0)+"1",10)*parsefloat(a.substr(2)):parsefloat(a)-parsefloat(b)},ab=function(a,b){return null==a?b:"string"==typeof a&&"="===a.charat(1)?parseint(a.charat(0)+"1",10)*number(a.substr(2))+b:parsefloat(a)},bb=function(a,b){if(null==a)return b;var c=-1===a.indexof("rad")?y:1,d="="===a.charat(1);return a=number(a.replace(m,""))*c,d?a+b:a},cb=function(a,b){var c="number"==typeof a?a*y:bb(a,b),d=(c-b)%(2*math.pi);return d!==d%math.pi&&(d+=math.pi*(0>d?2:-2)),b+d},db={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]},eb=function(a){if(!a||""===a)return db.black;if(db[a])return db[a];if("number"==typeof a)return[a>>16,255&a>>8,255&a];if("#"===a.charat(0)){if(4===a.length){var b=a.charat(1),c=a.charat(2),d=a.charat(3);a="#"+b+b+c+c+d+d}return a=parseint(a.substr(1),16),[a>>16,255&a>>8,255&a]}return a=a.match(j)||db.transparent,a[0]=number(a[0]),a[1]=number(a[1]),a[2]=number(a[2]),a.length>3&&(a[3]=number(a[3])),a},fb="(?:\\b(?:(?:rgb|rgba)\\(.+?\\))|\\b#.+?\\b";for(i in db)fb+="|"+i+"\\b";fb=regexp(fb+")","gi");var gb=function(a,b,c){if(null==a)return function(a){return a};var d=b?(a.match(fb)||[""])[0]:"",e=a.split(d).join("").match(l)||[],f=a.substr(0,a.indexof(e[0])),g=")"===a.charat(a.length-1)?")":"",h=-1!==a.indexof(" ")?" ":",",i=e.length,k=i>0?e[0].replace(j,""):"";return b?function(a){"number"==typeof a&&(a+=k);var b=(a.match(fb)||[d])[0],j=a.split(b).join("").match(l)||[],m=j.length;if(i>m--)for(;i>++m;)j[m]=c?j[(m-1)/2>>0]:e[m];return f+j.join(h)+h+b+g}:function(a){"number"==typeof a&&(a+=k);var b=a.match(l)||[],d=b.length;if(i>d--)for(;i>++d;)b[d]=c?b[(d-1)/2>>0]:e[d];return f+b.join(h)+g}},hb=function(a){return a=a.split(","),function(b,c,d,e,f,g,h){var j,i=(c+"").split(" ");for(h={},j=0;4>j;j++)h[a[j]]=i[j]=i[j]||i[(j-1)/2>>0];return e.parse(b,h,f,g)}},jb=(e._setpluginratio=function(a){this.plugin.setratio(a);for(var f,g,h,i,b=this.data,c=b.proxy,d=b.firstmpt,e=1e-6;d;)f=c[d.v],d.r?f=f>0?f+.5>>0:f-.5>>0:e>f&&f>-e&&(f=0),d.t[d.p]=f,d=d._next;if(b.autorotate&&(b.autorotate.rotation=c.rotation),1===a)for(d=b.firstmpt;d;){if(g=d.t,g.type){if(1===g.type){for(i=g.xs0+g.s+g.xs1,h=1;g.l>h;h++)i+=g["xn"+h]+g["xs"+(h+1)];g.e=i}}else g.e=g.s+g.xs0;d=d._next}},function(a,b,c,d,e){this.t=a,this.p=b,this.v=c,this.r=e,d&&(d._prev=this,this._next=d)}),lb=(e._parsetoproxy=function(a,b,c,d,e,f){var l,m,n,o,p,g=d,h={},i={},j=c._transform,k=a;for(c._transform=null,a=b,d=p=c.parse(a,b,d,e),a=k,f&&(c._transform=j,g&&(g._prev=null,g._prev&&(g._prev._next=null)));d&&d!==g;){if(1>=d.type&&(m=d.p,i[m]=d.s+d.c,h[m]=d.s,f||(o=new jb(d,"s",m,o,d.r),d.c=0),1===d.type))for(l=d.l;--l>0;)n="xn"+l,m=d.p+"_"+n,i[m]=d.data[n],h[m]=d[n],f||(o=new jb(d,n,m,o,d.rxp[n]));d=d._next}return{proxy:h,end:i,firstmpt:o,pt:p}},e.cssproptween=function(a,b,c,e,f,h,i,j,k,l,m){this.t=a,this.p=b,this.s=c,this.c=e,this.n=i||"css_"+b,a instanceof lb||g.push(this.n),this.r=j,this.type=h||0,k&&(this.pr=k,d=!0),this.b=void 0===l?c:l,this.e=void 0===m?c+e:m,f&&(this._next=f,f._prev=this)}),mb=c.parsecomplex=function(a,b,c,d,e,f,g,h,i,l){g=new lb(a,b,0,0,g,l?2:1,null,!1,h,c,d);var q,r,s,t,u,v,w,x,y,z,a,b,m=c.split(", ").join(",").split(" "),n=(d+"").split(", ").join(",").split(" "),o=m.length,p=g!==!1;for(o!==n.length&&(m=(f||"").split(" "),o=m.length),g.plugin=i,g.setratio=l,q=0;o>q;q++)if(t=m[q],u=n[q],x=parsefloat(t),x||0===x)g.appendxtra("",x,_(u,x),u.replace(k,""),p&&-1!==u.indexof("px"),!0);else if(e&&("#"===t.charat(0)||0===t.indexof("rgb")||db[t]))t=eb(t),u=eb(u),y=t.length+u.length>6,y&&!m&&0===u[3]?(g["xs"+g.l]+=g.l?" transparent":"transparent",g.e=g.e.split(n[q]).join("transparent")):(m||(y=!1),g.appendxtra(y?"rgba(":"rgb(",t[0],u[0]-t[0],",",!0,!0).appendxtra("",t[1],u[1]-t[1],",",!0).appendxtra("",t[2],u[2]-t[2],y?",":")",!0),y&&(t=4>t.length?1:t[3],g.appendxtra("",t,(4>u.length?1:u[3])-t,")",!1)));else if(v=t.match(j)){if(w=u.match(k),!w||w.length!==v.length)return g;for(s=0,r=0;v.length>r;r++)a=v[r],z=t.indexof(a,s),g.appendxtra(t.substr(s,z-s),number(a),_(w[r],a),"",p&&"px"===t.substr(z+a.length,2),0===r),s=z+a.length;g["xs"+g.l]+=t.substr(s)}else g["xs"+g.l]+=g.l?" "+t:t;if(-1!==d.indexof("=")&&g.data){for(b=g.xs0+g.data.s,q=1;g.l>q;q++)b+=g["xs"+q]+g.data["xn"+q];g.e=b+g["xs"+q]}return g.l||(g.type=-1,g.xs0=g.e),g.xfirst||g},nb=9;for(i=lb.prototype,i.l=i.pr=0;--nb>0;)i["xn"+nb]=0,i["xs"+nb]="";i.xs0="",i._next=i._prev=i.xfirst=i.data=i.plugin=i.setratio=i.rxp=null,i.appendxtra=function(a,b,c,d,e,f){var g=this,h=g.l;return g["xs"+h]+=f&&h?" "+a:a||"",c||0===h||g.plugin?(g.l++,g.type=g.setratio?2:1,g["xs"+g.l]=d||"",h>0?(g.data["xn"+h]=b+c,g.rxp["xn"+h]=e,g["xn"+h]=b,g.plugin||(g.xfirst=new lb(g,"xn"+h,b,c,g.xfirst||g,0,g.n,e,g.pr),g.xfirst.xs0=0),g):(g.data={s:b+c},g.rxp={},g.s=b,g.c=c,g.r=e,g)):(g["xs"+h]+=b+(d||""),g)};var ob=function(a,b,c,d,e,f,g){this.p=d?r(a)||a:a,h[a]=h[this.p]=this,this.format=f||gb(b,e),c&&(this.parse=c),this.clrs=e,this.dflt=b,this.pr=g||0},pb=e._registercomplexspecialprop=function(a,b,c,d,e,f,g){for(var k,h=a.split(","),i=b instanceof array?b:[b],j=h.length;--j>-1;)k=new ob(h[j],i[j],c,d&&0===j,e,f,g)},qb=function(a){if(!h[a]){var b=a.charat(0).touppercase()+a.substr(1)+"plugin";pb(a,null,function(a,c,d,e,f,g,i){var j=(window.greensockglobals||window).com.greensock.plugins[b];return j?(j._cssregister(),h[d].parse(a,c,d,e,f,g,i)):(o("error: "+b+" js file not loaded."),f)})}};i=ob.prototype,i.parsecomplex=function(a,b,c,d,e,f){return mb(a,this.p,b,c,this.clrs,this.dflt,d,this.pr,e,f)},i.parse=function(a,b,c,d,e,g){return this.parsecomplex(a.style,this.format(t(a,c,f,!1,this.dflt)),this.format(b),e,g)},c.registerspecialprop=function(a,b,c){pb(a,null,function(a,d,e,f,g,h){var j=new lb(a,e,0,0,g,2,e,!1,c);return j.plugin=h,j.setratio=b(a,d,f._tween,e),j},!1,!1,null,c)};var rb=["scalex","scaley","scalez","x","y","z","skewx","rotation","rotationx","rotationy","perspective"],sb=r("transform"),tb=p+"transform",ub=r("transformorigin"),vb=null!==r("perspective"),wb=function(a,b,d){var l,m,n,o,p,q,r,s,t,u,v,x,e=d?a._gstransform||{skewy:0}:{skewy:0},f=0>e.scalex,g=2e-5,h=1e5,i=-math.pi+1e-4,j=math.pi-1e-4,k=vb?parsefloat(t(a,ub,b,!1,"0 0 0").split(" ")[2])||e.zorigin||0:0;for(sb?l=t(a,tb,b,!0):a.currentstyle&&(l=a.currentstyle.filter.match(w),l=l&&4===l.length?l[0].substr(4)+","+number(l[2].substr(4))+","+number(l[1].substr(4))+","+l[3].substr(4)+","+(e?e.x:0)+","+(e?e.y:0):null),m=(l||"").match(/(?:\-|\b)[\d\-\.e]+\b/gi)||[],n=m.length;--n>-1;)o=number(m[n]),m[n]=(o*h+(0>o?-.5:.5)>>0)/h;if(16===m.length){var y=m[8],z=m[9],a=m[10],b=m[12],c=m[13],d=m[14];if(e.zorigin&&(d=-e.zorigin,b=y*d-m[12],c=z*d-m[13],d=a*d+e.zorigin-m[14]),!d||b!==e.x||c!==e.y||d!==e.z){var p,q,r,s,u,v,w,x,e=m[0],f=m[1],g=m[2],h=m[3],i=m[4],j=m[5],k=m[6],l=m[7],m=m[11],n=e.rotationx=math.atan2(k,a),o=i>n||n>j;n&&(u=math.cos(-n),v=math.sin(-n),p=i*u+y*v,q=j*u+z*v,r=k*u+a*v,s=l*u+m*v,y=i*-v+y*u,z=j*-v+z*u,a=k*-v+a*u,m=l*-v+m*u,i=p,j=q,k=r),n=e.rotationy=math.atan2(y,e),n&&(w=i>n||n>j,u=math.cos(-n),v=math.sin(-n),p=e*u-y*v,q=f*u-z*v,r=g*u-a*v,s=h*u-m*v,z=f*v+z*u,a=g*v+a*u,m=h*v+m*u,e=p,f=q,g=r),n=e.rotation=math.atan2(f,j),n&&(x=i>n||n>j,u=math.cos(-n),v=math.sin(-n),e=e*u+i*v,q=f*u+j*v,j=f*-v+j*u,k=g*-v+k*u,f=q),x&&o?e.rotation=e.rotationx=0:x&&w?e.rotation=e.rotationy=0:w&&o&&(e.rotationy=e.rotationx=0),e.scalex=(math.sqrt(e*e+f*f)*h+.5>>0)/h,e.scaley=(math.sqrt(j*j+z*z)*h+.5>>0)/h,e.scalez=(math.sqrt(k*k+a*a)*h+.5>>0)/h,e.skewx=0,e.perspective=m?1/m:0,e.x=b,e.y=c,e.z=d}}else if(!vb||0===m.length||e.x!==m[4]||e.y!==m[5]||!e.rotationx&&!e.rotationy){var y=m.length>=6,z=y?m[0]:1,$=m[1]||0,_=m[2]||0,ab=y?m[3]:1;e.x=m[4]||0,e.y=m[5]||0,p=math.sqrt(z*z+$*$),q=math.sqrt(ab*ab+_*_),r=z||$?math.atan2($,z):e.rotation||0,s=_||ab?math.atan2(_,ab)+r:e.skewx||0,t=p-math.abs(e.scalex||0),u=q-math.abs(e.scaley||0),math.abs(s)>math.pi/2&&math.abs(s)<1.5*math.pi&&(f?(p*=-1,s+=0>=r?math.pi:-math.pi,r+=0>=r?math.pi:-math.pi):(q*=-1,s+=0>=s?math.pi:-math.pi)),v=(r-e.rotation)%math.pi,x=(s-e.skewx)%math.pi,(void 0===e.skewx||t>g||-g>t||u>g||-g>u||v>i&&j>v&&0!==v*h>>0||x>i&&j>x&&0!==x*h>>0)&&(e.scalex=p,e.scaley=q,e.rotation=r,e.skewx=s),vb&&(e.rotationx=e.rotationy=e.z=0,e.perspective=parsefloat(c.defaulttransformperspective)||0,e.scalez=1)}e.zorigin=k;for(n in e)g>e[n]&&e[n]>-g&&(e[n]=0);return d&&(a._gstransform=e),e},xb=function(a){var l,m,b=this.data,c=-b.rotation,d=c+b.skewx,e=1e5,f=(math.cos(c)*b.scalex*e>>0)/e,g=(math.sin(c)*b.scalex*e>>0)/e,h=(math.sin(d)*-b.scaley*e>>0)/e,i=(math.cos(d)*b.scaley*e>>0)/e,j=this.t.style,k=this.t.currentstyle;if(k){m=g,g=-h,h=-m,l=k.filter,j.filter="";var v,w,p=this.t.offsetwidth,q=this.t.offsetheight,r="absolute"!==k.position,s="progid:dximagetransform.microsoft.matrix(m11="+f+", m12="+g+", m21="+h+", m22="+i,t=b.x,u=b.y;if(null!=b.ox&&(v=(b.oxp?.01*p*b.ox:b.ox)-p/2,w=(b.oyp?.01*q*b.oy:b.oy)-q/2,t+=v-(v*f+w*g),u+=w-(v*h+w*i)),r)v=p/2,w=q/2,s+=", dx="+(v-(v*f+w*g)+t)+", dy="+(w-(v*h+w*i)+u)+")";else{var z,a,b,y=8>l?1:-1;for(v=b.ieoffsetx||0,w=b.ieoffsety||0,b.ieoffsetx=math.round((p-((0>f?-f:f)*p+(0>g?-g:g)*q))/2+t),b.ieoffsety=math.round((q-((0>i?-i:i)*q+(0>h?-h:h)*p))/2+u),nb=0;4>nb;nb++)a=x[nb],z=k[a],m=-1!==z.indexof("px")?parsefloat(z):z(this.t,a,parsefloat(z),z.replace(n,""))||0,b=m!==b[a]?2>nb?-b.ieoffsetx:-b.ieoffsety:2>nb?v-b.ieoffsetx:w-b.ieoffsety,j[a]=(b[a]=math.round(m-b*(0===nb||2===nb?1:y)))+"px";s+=", sizingmethod='auto expand')"}j.filter=-1!==l.indexof("dximagetransform.microsoft.matrix(")?l.replace(x,s):s+" "+l,(0===a||1===a)&&1===f&&0===g&&0===h&&1===i&&(r&&-1===s.indexof("dx=0, dy=0")||o.test(l)&&100!==parsefloat(regexp.$1)||-1===l.indexof("gradient(")&&j.removeattribute("filter"))}},yb=function(){var x,y,z,a,b,c,d,e,f,b=this.data,c=this.t.style,d=b.perspective,e=b.scalex,f=0,g=0,h=0,i=0,j=b.scaley,k=0,l=0,m=0,n=0,o=b.scalez,p=0,q=0,r=0,s=d?-1/d:0,t=b.rotation,u=b.zorigin,v=",",w=1e5;j&&(d=t(this.t,"top",null,!1,"0"),e=parsefloat(d)||0,f=d.substr((e+"").length),b._fffix=!b._fffix,c.top=(b._fffix?e+.05:e-.05)+(""===f?"px":f)),t&&(x=math.cos(t),y=math.sin(t),z=e*x,a=j*y,f=e*-y,j*=x,e=z,i=a),t=b.rotationy,t&&(x=math.cos(t),y=math.sin(t),z=e*x,a=i*x,b=o*-y,c=s*-y,g=e*y,k=i*y,o*=x,s*=x,e=z,i=a,m=b,q=c),t=b.rotationx,t&&(x=math.cos(t),y=math.sin(t),z=f*x+g*y,a=j*x+k*y,b=n*x+o*y,c=r*x+s*y,g=f*-y+g*x,k=j*-y+k*x,o=n*-y+o*x,s=r*-y+s*x,f=z,j=a,n=b,r=c),u&&(p-=u,h=g*p,l=k*p,p=o*p+u),h+=b.x,l+=b.y,p=((p+b.z)*w>>0)/w,c[sb]="matrix3d("+(e*w>>0)/w+v+(i*w>>0)/w+v+(m*w>>0)/w+v+(q*w>>0)/w+v+(f*w>>0)/w+v+(j*w>>0)/w+v+(n*w>>0)/w+v+(r*w>>0)/w+v+(g*w>>0)/w+v+(k*w>>0)/w+v+(o*w>>0)/w+v+(s*w>>0)/w+v+(h*w>>0)/w+v+(l*w>>0)/w+v+p+v+(d?1+-p/d:1)+")"},zb=function(){var d,e,f,g,h,i,j,k,b=this.data,c=this.t;j&&(d=t(c,"top",null,!1,"0"),e=parsefloat(d)||0,f=d.substr((e+"").length),b._fffix=!b._fffix,c.style.top=(b._fffix?e+.05:e-.05)+(""===f?"px":f)),b.rotation||b.skewx?(g=b.rotation,h=g-b.skewx,i=1e5,j=b.scalex*i,k=b.scaley*i,c.style[sb]="matrix("+(math.cos(g)*j>>0)/i+","+(math.sin(g)*j>>0)/i+","+(math.sin(h)*-k>>0)/i+","+(math.cos(h)*k>>0)/i+","+b.x+","+b.y+")"):c.style[sb]="matrix("+b.scalex+",0,0,"+b.scaley+","+b.x+","+b.y+")"};pb("transform,scale,scalex,scaley,scalez,x,y,z,rotation,rotationx,rotationy,rotationz,skewx,skewy,shortrotation,shortrotationx,shortrotationy,shortrotationz,transformorigin,transformperspective",null,function(a,b,c,d,e,g,h){if(d._transform)return e;var n,o,p,q,r,s,t,i=d._transform=wb(a,f,!0),j=a.style,k=1e-6,l=rb.length,m=h;for("string"==typeof m.transform&&sb?(q=j[sb],j[sb]=m.transform,n=wb(a,null,!1),j[sb]=q):"object"==typeof m&&(o=null!=m.rotation?m.rotation:null!=m.rotationz?m.rotationz:i.rotation*z,n={scalex:ab(null!=m.scalex?m.scalex:m.scale,i.scalex),scaley:ab(null!=m.scaley?m.scaley:m.scale,i.scaley),scalez:ab(null!=m.scalez?m.scalez:m.scale,i.scalez),x:ab(m.x,i.x),y:ab(m.y,i.y),z:ab(m.z,i.z),perspective:ab(m.transformperspective,i.perspective)},n.rotation=null!=m.shortrotation||null!=m.shortrotationz?cb(m.shortrotation||m.shortrotationz||0,i.rotation):"number"==typeof o?o*y:bb(o,i.rotation),vb&&(n.rotationx=null!=m.shortrotationx?cb(m.shortrotationx,i.rotationx):"number"==typeof m.rotationx?m.rotationx*y:bb(m.rotationx,i.rotationx),n.rotationy=null!=m.shortrotationy?cb(m.shortrotationy,i.rotationy):"number"==typeof m.rotationy?m.rotationy*y:bb(m.rotationy,i.rotationy),k>n.rotationx&&n.rotationx>-k&&(n.rotationx=0),k>n.rotationy&&n.rotationy>-k&&(n.rotationy=0)),n.skewx=null==m.skewx?i.skewx:"number"==typeof m.skewx?m.skewx*y:bb(m.skewx,i.skewx),n.skewy=null==m.skewy?i.skewy:"number"==typeof m.skewy?m.skewy*y:bb(m.skewy,i.skewy),(p=n.skewy-i.skewy)&&(n.skewx+=p,n.rotation+=p),k>n.skewy&&n.skewy>-k&&(n.skewy=0),k>n.skewx&&n.skewx>-k&&(n.skewx=0),k>n.rotation&&n.rotation>-k&&(n.rotation=0)),s=i.z||i.rotationx||i.rotationy||n.z||n.rotationx||n.rotationy||n.perspective,s||null==n.scale||(n.scalez=1);--l>-1;)c=rb[l],r=n[c]-i[c],(r>k||-k>r||null!=a[c])&&(t=!0,e=new lb(i,c,i[c],r,e),e.xs0=0,e.plugin=g,d._overwriteprops.push(e.n));return r=m.transformorigin,(r||vb&&s&&i.zorigin)&&(sb?(t=!0,r=(r||t(a,c,f,!1,"50% 50%"))+"",c=ub,e=new lb(j,c,0,0,e,-1,"css_transformorigin"),e.b=j[c],e.plugin=g,vb?(q=i.zorigin,r=r.split(" "),i.zorigin=(r.length>2?parsefloat(r[2]):q)||0,e.xs0=e.e=j[c]=r[0]+" "+(r[1]||"50%")+" 0px",e=new lb(i,"zorigin",0,0,e,-1,e.n),e.b=q,e.xs0=e.e=i.zorigin):e.xs0=e.e=j[c]=r):$(r+"",i)),t&&(d._transformtype=s||3===this._transformtype?3:2),e},!0),pb("boxshadow","0px 0px 0px 0px #999",function(a,b,c,d,e,g){var h=-1!==(b+"").indexof("inset")?" inset":"";return this.parsecomplex(a.style,this.format(t(a,this.p,f,!1,this.dflt))+h,this.format(b)+h,e,g)},!0,!0),pb("borderradius","0px",function(a,b,c,d,g){b=this.format(b);var k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,i=["bordertopleftradius","bordertoprightradius","borderbottomrightradius","borderbottomleftradius"],j=a.style;for(s=parsefloat(a.offsetwidth),t=parsefloat(a.offsetheight),k=b.split(" "),l=0;i.length>l;l++)this.p.indexof("border")&&(i[l]=r(i[l])),o=n=t(a,i[l],f,!1,"0px"),-1!==o.indexof(" ")&&(n=o.split(" "),o=n[0],n=n[1]),p=m=k[l],q=parsefloat(o),v=o.substr((q+"").length),w="="===p.charat(1),w?(r=parseint(p.charat(0)+"1",10),p=p.substr(2),r*=parsefloat(p),u=p.substr((r+"").length-(0>r?1:0))||""):(r=parsefloat(p),u=p.substr((r+"").length)),""===u&&(u=e[c]||v),u!==v&&(x=z(a,"borderleft",q,v),y=z(a,"bordertop",q,v),"%"===u?(o=100*(x/s)+"%",n=100*(y/t)+"%"):"em"===u?(z=z(a,"borderleft",1,"em"),o=x/z+"em",n=y/z+"em"):(o=x+"px",n=y+"px"),w&&(p=parsefloat(o)+r+u,m=parsefloat(n)+r+u)),g=mb(j,i[l],o+" "+n,p+" "+m,!1,"0px",g);return g},!0,!1,gb("0px 0px 0px 0px",!1,!0)),pb("backgroundposition","0 0",function(a,b,c,d,e,g){var l,m,n,o,p,h="background-position",i=f||s(a,null),j=this.format((i?l?i.getpropertyvalue(h+"-x")+" "+i.getpropertyvalue(h+"-y"):i.getpropertyvalue(h):a.currentstyle.backgroundpositionx+" "+a.currentstyle.backgroundpositiony)||"0 0"),k=this.format(b);if(-1!==j.indexof("%")!=(-1!==k.indexof("%"))){for(l=j.split(" "),m=k.split(" "),d.setattribute("src",t(a,"backgroundimage").replace(t,"")),n=2;--n>-1;)j=l[n],o=-1!==j.indexof("%"),o!==(-1!==m[n].indexof("%"))&&(p=0===n?a.offsetwidth-d.width:a.offsetheight-d.height,l[n]=o?parsefloat(j)/100*p+"px":100*(parsefloat(j)/p)+"%");j=l.join(" ")}return this.parsecomplex(a.style,j,k,e,g)},!1,!1,$),pb("backgroundsize","0 0",null,!1,!1,$),pb("perspective","0px",null,!0),pb("perspectiveorigin","50% 50%",null,!0),pb("transformstyle","preserve-3d",null,!0),pb("backfacevisibility","visible",null,!0),pb("margin",null,hb("margintop,marginright,marginbottom,marginleft")),pb("padding",null,hb("paddingtop,paddingright,paddingbottom,paddingleft")),pb("clip","rect(0px,0px,0px,0px)"),pb("textshadow","0px 0px 0px #999",null,!1,!0),pb("autoround",null,function(a,b,c,d,e){return e}),pb("border","0px solid #000",function(a,b,c,d,e,g){return this.parsecomplex(a.style,this.format(t(a,"bordertopwidth",f,!1,"0px")+" "+t(a,"bordertopstyle",f,!1,"solid")+" "+t(a,"bordertopcolor",f,!1,"#000")),this.format(b),e,g)},!1,!0,function(a){var b=a.split(" ");return b[0]+" "+(b[1]||"solid")+" "+(a.match(fb)||["#000"])[0]});var ab=function(a){var e,b=this.t,c=b.filter,d=this.s+this.c*a>>0;100===d&&(-1===c.indexof("atrix(")&&-1===c.indexof("radient(")?(b.removeattribute("filter"),e=!t(this.data,"filter")):(b.filter=c.replace(q,""),e=!0)),e||(this.xn1&&(b.filter=c=c||"alpha(opacity=100)"),-1===c.indexof("opacity")?b.filter+=" alpha(opacity="+d+")":b.filter=c.replace(o,"opacity="+d))};pb("opacity,alpha,autoalpha","1",function(a,b,c,d,e,g){var j,h=parsefloat(t(a,"opacity",f,!1,"1")),i=a.style;return b=parsefloat(b),"autoalpha"===c&&(j=t(a,"visibility",f),1===h&&"hidden"===j&&0!==b&&(h=0),e=new lb(i,"visibility",0,0,e,-1,null,!1,0,0!==h?"visible":"hidden",0===b?"hidden":"visible"),e.xs0="visible",d._overwriteprops.push(e.n)),m?e=new lb(i,"opacity",h,b-h,e):(e=new lb(i,"opacity",100*h,100*(b-h),e),e.xn1="autoalpha"===c?1:0,i.zoom=1,e.type=2,e.b="alpha(opacity="+e.s+")",e.e="alpha(opacity="+(e.s+e.c)+")",e.data=a,e.plugin=g,e.setratio=ab),e});var bb=function(a){if(1===a||0===a){this.t.classname=1===a?this.e:this.b;for(var b=this.data,c=this.t.style,d=c.removeproperty?"removeproperty":"removeattribute";b;)b.v?c[b.p]=b.v:c[d](b.p.replace(r,"-$1").tolowercase()),b=b._next}else this.t.classname!==this.b&&(this.t.classname=this.b)};for(pb("classname",null,function(a,b,c,d,e,g,h){var k,l,i=a.classname,j=a.style.csstext;return e=d._classnamept=new lb(a,c,0,0,e,2),e.setratio=bb,e.b=i,e.e="="!==b.charat(1)?b:"+"===b.charat(0)?i+" "+b.substr(2):i.split(b.substr(2)).join(""),d._tween._duration&&(l=u(a,f,!0),a.classname=e.e,k=v(a,l,u(a),h),a.classname=i,e.data=k.firstmpt,a.style.csstext=j,e=e.xfirst=d.parse(a,k.difs,e,g)),e}),i="bezier,throwprops,physicsprops,physics2d".split(","),nb=i.length;nb--;)qb(i[nb]);return i=c.prototype,i._firstpt=null,i._oninittween=function(a,b,h){if(!a.nodetype)return!1;this._target=a,this._tween=h,this._vars=b,g=b.autoround,d=!1,e=b.suffixmap||c.suffixmap,f=s(a,""),g=this._overwriteprops;var j,k,l,m,n,o,q,r,s,i=a.style;if(h&&""===i.zindex&&(j=t(a,"zindex",f),("auto"===j||""===j)&&(i.zindex=0)),"string"==typeof b&&(m=i.csstext,j=u(a,f),i.csstext=m+";"+b,j=v(a,j,u(a)).difs,!m&&p.test(b)&&(j.opacity=parsefloat(regexp.$1)),b=j,i.csstext=m),this._firstpt=k=this.parse(a,b,null),this._transformtype){for(s=3===this._transformtype,sb?i&&(h=!0,""===i.zindex&&(q=t(a,"zindex",f),("auto"===q||""===q)&&(i.zindex=0)),k&&(i.webkitbackfacevisibility=this._vars.webkitbackfacevisibility||(s?"visible":"hidden"))):i.zoom=1,l=k;l&&l._next;)l=l._next;r=new lb(a,"transform",0,0,null,2),this._linkcssp(r,null,l),r.setratio=s&&vb?yb:sb?zb:xb,r.data=this._transform||wb(a,f,!0),g.pop()}if(d){for(;k;){for(o=k._next,l=m;l&&l.pr>k.pr;)l=l._next;(k._prev=l?l._prev:n)?k._prev._next=k:m=k,(k._next=l)?l._prev=k:n=k,k=o}this._firstpt=m}return!0},i.parse=function(a,b,c,d){var i,j,k,l,m,n,o,p,q,r,g=a.style;for(i in b)n=b[i],j=h[i],j?c=j.parse(a,n,i,this,c,d,b):(m=t(a,i,f)+"",q="string"==typeof n,"color"===i||"fill"===i||"stroke"===i||-1!==i.indexof("color")||q&&!n.indexof("rgb")?(q||(n=eb(n),n=(n.length>3?"rgba(":"rgb(")+n.join(",")+")"),c=mb(g,i,m,n,!0,"transparent",c,0,d)):!q||-1===n.indexof(" ")&&-1===n.indexof(",")?(k=parsefloat(m),o=k||0===k?m.substr((k+"").length):"",(""===m||"auto"===m)&&("width"===i||"height"===i?(k=y(a,i,f),o="px"):(k="opacity"!==i?0:1,o="")),r=q&&"="===n.charat(1),r?(l=parseint(n.charat(0)+"1",10),n=n.substr(2),l*=parsefloat(n),p=n.substr((l+"").length-(0>l?1:0))||""):(l=parsefloat(n),p=q?n.substr((l+"").length)||"":""),""===p&&(p=e[i]||o),n=l||0===l?(r?l+k:l)+p:b[i],o!==p&&""!==p&&(l||0===l)&&(k||0===k)&&(k=z(a,i,k,o),"%"===p?(k/=z(a,i,100,"%")/100,k>100&&(k=100)):"em"===p?k/=z(a,i,1,"em"):(l=z(a,i,l,p),p="px"),r&&(l||0===l)&&(n=l+k+p)),r&&(l+=k),!k&&0!==k||!l&&0!==l?n||"nan"!=n+""&&null!=n?(c=new lb(g,i,l||k||0,0,c,-1,"css_"+i,!1,0,m,n),c.xs0="display"===i&&"none"===n?m:n):o("invalid "+i+" tween value. "):(c=new lb(g,i,k,l-k,c,0,"css_"+i,g!==!1&&("px"===p||"zindex"===i),0,m,n),c.xs0=p)):c=mb(g,i,m,n,!0,null,c,0,d)),d&&c&&!c.plugin&&(c.plugin=d);return c},i.setratio=function(a){var d,e,f,b=this._firstpt,c=1e-6;if(1!==a||this._tween._time!==this._tween._duration&&0!==this._tween._time)if(a||this._tween._time!==this._tween._duration&&0!==this._tween._time||this._tween._rawprevtime===-1e-6)for(;b;){if(d=b.c*a+b.s,b.r?d=d>0?d+.5>>0:d-.5>>0:c>d&&d>-c&&(d=0),b.type)if(1===b.type)if(f=b.l,2===f)b.t[b.p]=b.xs0+d+b.xs1+b.xn1+b.xs2;else if(3===f)b.t[b.p]=b.xs0+d+b.xs1+b.xn1+b.xs2+b.xn2+b.xs3;else if(4===f)b.t[b.p]=b.xs0+d+b.xs1+b.xn1+b.xs2+b.xn2+b.xs3+b.xn3+b.xs4;else if(5===f)b.t[b.p]=b.xs0+d+b.xs1+b.xn1+b.xs2+b.xn2+b.xs3+b.xn3+b.xs4+b.xn4+b.xs5;else{for(e=b.xs0+d+b.xs1,f=1;b.l>f;f++)e+=b["xn"+f]+b["xs"+(f+1)];b.t[b.p]=e}else-1===b.type?b.t[b.p]=b.xs0:b.setratio&&b.setratio(a);else b.t[b.p]=d+b.xs0;b=b._next}else for(;b;)2!==b.type?b.t[b.p]=b.b:b.setratio(a),b=b._next;else for(;b;)2!==b.type?b.t[b.p]=b.e:b.setratio(a),b=b._next},i._enabletransforms=function(a){this._transformtype=a||3===this._transformtype?3:2},i._linkcssp=function(a,b,c,d){return a&&(b&&(b._prev=a),a._next&&(a._next._prev=a._prev),c?c._next=a:d||null!==this._firstpt||(this._firstpt=a),a._prev?a._prev._next=a._next:this._firstpt===a&&(this._firstpt=a._next),a._next=b,a._prev=c),a},i._kill=function(b){var e,f,g,c=b,d=!1;if(b.css_autoalpha||b.css_alpha){c={};for(f in b)c[f]=b[f];c.css_opacity=1,c.css_autoalpha&&(c.css_visibility=1)}return b.css_classname&&(e=this._classnamept)&&(g=e.xfirst,g&&g._prev?this._linkcssp(g._prev,e._next,g._prev._prev):g===this._firstpt&&(this._firstpt=null),e._next&&this._linkcssp(e._next,e._next._next,g._prev),this._target._gsoverwrittenclassnamept=this._linkcssp(e,this._target._gsoverwrittenclassnamept),this._classnamept=null,d=!0),a.prototype._kill.call(this,c)||d},a.activate([c]),c},!0),_gsdefine("plugins.roundpropsplugin",["plugins.tweenplugin"],function(a){var b=function(){a.call(this,"roundprops",-1),this._overwriteprops.length=0},c=b.prototype=new a("roundprops",-1);return c.constructor=b,b.api=2,c._oninittween=function(a,b,c){return this._tween=c,!0},c._oninitallprops=function(){for(var f,g,h,a=this._tween,b=a.vars.roundprops instanceof array?a.vars.roundprops:a.vars.roundprops.split(","),c=b.length,d={},e=a._proplookup.roundprops;--c>-1;)d[b[c]]=1;for(c=b.length;--c>-1;)for(f=b[c],g=a._firstpt;g;)h=g._next,g.pg?g.t._roundprops(d,!0):g.n===f&&(this._add(g.t,f,g.s,g.c),h&&(h._prev=g._prev),g._prev?g._prev._next=h:a._firstpt===g&&(a._firstpt=h),g._next=g._prev=null,a._proplookup[f]=e),g=h;return!1},c._add=function(a,b,c,d){this._addtween(a,b,c,c+d,b,!0),this._overwriteprops.push(b)},a.activate([b]),b},!0),_gsdefine("easing.back",["easing.ease"],function(a){var n,o,b=window.greensockglobals||window,c=b.com.greensock,d=2*math.pi,e=math.pi/2,f=c._class,g=function(b,c){var d=f("easing."+b,function(){},!0),e=d.prototype=new a;return e.constructor=d,e.getratio=c,d},h=a.register||function(){},i=function(a,b,c,d){var g=f("easing."+a,{easeout:new b,easein:new c,easeinout:new d},!0);return h(g,a),g},j=function(b,c){var d=f("easing."+b,function(a){this._p1=a||0===a?a:1.70158,this._p2=1.525*this._p1},!0),e=d.prototype=new a;return e.constructor=d,e.getratio=c,e.config=function(a){return new d(a)},d},k=i("back",j("backout",function(a){return(a-=1)*a*((this._p1+1)*a+this._p1)+1}),j("backin",function(a){return a*a*((this._p1+1)*a-this._p1)}),j("backinout",function(a){return 1>(a*=2)?.5*a*a*((this._p2+1)*a-this._p2):.5*((a-=2)*a*((this._p2+1)*a+this._p2)+2)})),l=f("easing.slowmo",function(a,b,c){b=b||0===b?b:.7,null==a?a=.7:a>1&&(a=1),this._p=1!==a?b:0,this._p1=(1-a)/2,this._p2=a,this._p3=this._p1+this._p2,this._calcend=c===!0},!0),m=l.prototype=new a;return m.constructor=l,m.getratio=function(a){var b=a+(.5-a)*this._p;return this._p1>a?this._calcend?1-(a=1-a/this._p1)*a:b-(a=1-a/this._p1)*a*a*a*b:a>this._p3?this._calcend?1-(a=(a-this._p3)/this._p1)*a:b+(a-b)*(a=(a-this._p3)/this._p1)*a*a*a:this._calcend?1:b},l.ease=new l(.7,.7),m.config=l.config=function(a,b,c){return new l(a,b,c)},n=f("easing.steppedease",function(a){a=a||1,this._p1=1/a,this._p2=a+1},!0),m=n.prototype=new a,m.constructor=n,m.getratio=function(a){return 0>a?a=0:a>=1&&(a=.999999999),(this._p2*a>>0)*this._p1},m.config=n.config=function(a){return new n(a)},i("bounce",g("bounceout",function(a){return 1/2.75>a?7.5625*a*a:2/2.75>a?7.5625*(a-=1.5/2.75)*a+.75:2.5/2.75>a?7.5625*(a-=2.25/2.75)*a+.9375:7.5625*(a-=2.625/2.75)*a+.984375}),g("bouncein",function(a){return 1/2.75>(a=1-a)?1-7.5625*a*a:2/2.75>a?1-(7.5625*(a-=1.5/2.75)*a+.75):2.5/2.75>a?1-(7.5625*(a-=2.25/2.75)*a+.9375):1-(7.5625*(a-=2.625/2.75)*a+.984375)}),g("bounceinout",function(a){var b=.5>a;return a=b?1-2*a:2*a-1,a=1/2.75>a?7.5625*a*a:2/2.75>a?7.5625*(a-=1.5/2.75)*a+.75:2.5/2.75>a?7.5625*(a-=2.25/2.75)*a+.9375:7.5625*(a-=2.625/2.75)*a+.984375,b?.5*(1-a):.5*a+.5})),i("circ",g("circout",function(a){return math.sqrt(1-(a-=1)*a)}),g("circin",function(a){return-(math.sqrt(1-a*a)-1)}),g("circinout",function(a){return 1>(a*=2)?-.5*(math.sqrt(1-a*a)-1):.5*(math.sqrt(1-(a-=2)*a)+1)})),o=function(b,c,e){var g=f("easing."+b,function(a,b){this._p1=a||1,this._p2=b||e,this._p3=this._p2/d*(math.asin(1/this._p1)||0)},!0),h=g.prototype=new a;return h.constructor=g,h.getratio=c,h.config=function(a,b){return new g(a,b)},g},i("elastic",o("elasticout",function(a){return this._p1*math.pow(2,-10*a)*math.sin((a-this._p3)*d/this._p2)+1},.3),o("elasticin",function(a){return-(this._p1*math.pow(2,10*(a-=1))*math.sin((a-this._p3)*d/this._p2))},.3),o("elasticinout",function(a){return 1>(a*=2)?-.5*this._p1*math.pow(2,10*(a-=1))*math.sin((a-this._p3)*d/this._p2):.5*this._p1*math.pow(2,-10*(a-=1))*math.sin((a-this._p3)*d/this._p2)+1},.45)),i("expo",g("expoout",function(a){return 1-math.pow(2,-10*a)}),g("expoin",function(a){return math.pow(2,10*(a-1))-.001}),g("expoinout",function(a){return 1>(a*=2)?.5*math.pow(2,10*(a-1)):.5*(2-math.pow(2,-10*(a-1)))})),i("sine",g("sineout",function(a){return math.sin(a*e)}),g("sinein",function(a){return-math.cos(a*e)+1}),g("sineinout",function(a){return-.5*(math.cos(math.pi*a)-1)})),f("easing.easelookup",{find:function(b){return a.map[b]}},!0),h(b.slowmo,"slowmo","ease,"),h(n,"steppedease","ease,"),k},!0)}),function(a){"use strict";var e,f,g,h,b=a.greensockglobals||a,c=function(a){var e,c=a.split("."),d=b;for(e=0;c.length>e;e++)d[c[e]]=d=d[c[e]]||{};return d},d=c("com.greensock"),i={},j=function(d,e,f,g){this.sc=i[d]?i[d].sc:[],i[d]=this,this.gsclass=null,this.func=f;var h=[];this.check=function(k){for(var n,o,p,q,l=e.length,m=l;--l>-1;)(n=i[e[l]]||new j(e[l],[])).gsclass?(h[l]=n.gsclass,m--):k&&n.sc.push(this);if(0===m&&f)for(o=("com.greensock."+d).split("."),p=o.pop(),q=c(o.join("."))[p]=this.gsclass=f.apply(f,h),g&&(b[p]=q,"function"==typeof define&&define.amd?define((a.greensockamdpath?a.greensockamdpath+"/":"")+d.split(".").join("/"),[],function(){return q}):"undefined"!=typeof module&&module.exports&&(module.exports=q)),l=0;this.sc.length>l;l++)this.sc[l].check()},this.check(!0)},k=a._gsdefine=function(a,b,c,d){return new j(a,b,c,d)},l=d._class=function(a,b,c){return b=b||function(){},k(a,[],function(){return b},c),b},m=[0,0,1,1],n=[],o=l("easing.ease",function(a,b,c,d){this._func=a,this._type=c||0,this._power=d||0,this._params=b?m.concat(b):m},!0),p=o.map={},q=o.register=function(a,b,c,e){for(var i,j,k,m,f=b.split(","),g=f.length,h=(c||"easein,easeout,easeinout").split(",");--g>-1;)for(j=f[g],i=e?l("easing."+j,null,!0):d.easing[j]||{},k=h.length;--k>-1;)m=h[k],p[j+"."+m]=p[m+j]=i[m]=a.getratio?a:a[m]||new a};for(g=o.prototype,g._calcend=!1,g.getratio=function(a){if(this._func)return this._params[0]=a,this._func.apply(null,this._params);var b=this._type,c=this._power,d=1===b?1-a:2===b?a:.5>a?2*a:2*(1-a);return 1===c?d*=d:2===c?d*=d*d:3===c?d*=d*d*d:4===c&&(d*=d*d*d*d),1===b?1-d:2===b?d:.5>a?d/2:1-d/2},e=["linear","quad","cubic","quart","quint,strong"],f=e.length;--f>-1;)g=e[f]+",power"+f,q(new o(null,null,1,f),g,"easeout",!0),q(new o(null,null,2,f),g,"easein"+(0===f?",easenone":"")),q(new o(null,null,3,f),g,"easeinout");p.linear=d.easing.linear.easein,p.swing=d.easing.quad.easeinout; var r=l("events.eventdispatcher",function(a){this._listeners={},this._eventtarget=a||this});g=r.prototype,g.addeventlistener=function(a,b,c,d,e){e=e||0;var h,i,f=this._listeners[a],g=0;for(null==f&&(this._listeners[a]=f=[]),i=f.length;--i>-1;)h=f[i],h.c===b?f.splice(i,1):0===g&&e>h.pr&&(g=i+1);f.splice(g,0,{c:b,s:c,up:d,pr:e})},g.removeeventlistener=function(a,b){var d,c=this._listeners[a];if(c)for(d=c.length;--d>-1;)if(c[d].c===b)return c.splice(d,1),void 0},g.dispatchevent=function(a){var b=this._listeners[a];if(b)for(var e,c=b.length,d=this._eventtarget;--c>-1;)e=b[c],e.up?e.c.call(e.s||d,{type:a,target:d}):e.c.call(e.s||d)};var s=a.requestanimationframe,t=a.cancelanimationframe,u=date.now||function(){return(new date).gettime()};for(e=["ms","moz","webkit","o"],f=e.length;--f>-1&&!s;)s=a[e[f]+"requestanimationframe"],t=a[e[f]+"cancelanimationframe"]||a[e[f]+"cancelrequestanimationframe"];l("ticker",function(b,c){var g,h,i,j,k,d=this,e=u(),f=c!==!1&&s,l=function(){null!=i&&(f&&t?t(i):a.cleartimeout(i),i=null)},m=function(a){d.time=(u()-e)/1e3,(!g||d.time>=k||a===!0)&&(d.frame++,k=d.time>k?d.time+j-(d.time-k):d.time+j-.001,d.time+.001>k&&(k=d.time+.001),d.dispatchevent("tick")),a!==!0&&(i=h(m))};r.call(d),this.time=this.frame=0,this.tick=function(){m(!0)},this.fps=function(b){return arguments.length?(g=b,j=1/(g||60),k=this.time+j,h=0===g?function(){}:f&&s?s:function(b){return a.settimeout(b,1e3*(k-d.time)+1>>0||1)},l(),i=h(m),void 0):g},this.useraf=function(a){return arguments.length?(l(),f=a,d.fps(g),void 0):f},d.fps(b),settimeout(function(){f&&!i&&d.useraf(!1)},1e3)}),g=d.ticker.prototype=new d.events.eventdispatcher,g.constructor=d.ticker;var v=l("core.animation",function(a,b){if(this.vars=b||{},this._duration=this._totalduration=a||0,this._delay=number(this.vars.delay)||0,this._timescale=1,this._active=this.vars.immediaterender===!0,this.data=this.vars.data,this._reversed=this.vars.reversed===!0,g){h||(w.tick(),h=!0);var c=this.vars.useframes?f:g;c.add(this,c._time),this.vars.paused&&this.paused(!0)}}),w=v.ticker=new d.ticker;g=v.prototype,g._dirty=g._gc=g._initted=g._paused=!1,g._totaltime=g._time=0,g._rawprevtime=-1,g._next=g._last=g._onupdate=g._timeline=g.timeline=null,g._paused=!1,g.play=function(a,b){return arguments.length&&this.seek(a,b),this.reversed(!1),this.paused(!1)},g.pause=function(a,b){return arguments.length&&this.seek(a,b),this.paused(!0)},g.resume=function(a,b){return arguments.length&&this.seek(a,b),this.paused(!1)},g.seek=function(a,b){return this.totaltime(number(a),b!==!1)},g.restart=function(a,b){return this.reversed(!1),this.paused(!1),this.totaltime(a?-this._delay:0,b!==!1)},g.reverse=function(a,b){return arguments.length&&this.seek(a||this.totalduration(),b),this.reversed(!0),this.paused(!1)},g.render=function(){},g.invalidate=function(){return this},g._enabled=function(a,b){return this._gc=!a,this._active=a&&!this._paused&&this._totaltime>0&&this._totaltime-1;)"{self}"===c[e]&&(c=this.vars[a+"params"]=c.concat(),c[e]=this);"onupdate"===a&&(this._onupdate=b)}return this},g.delay=function(a){return arguments.length?(this._timeline.smoothchildtiming&&this.starttime(this._starttime+a-this._delay),this._delay=a,this):this._delay},g.duration=function(a){return arguments.length?(this._duration=this._totalduration=a,this._uncache(!0),this._timeline.smoothchildtiming&&this._time>0&&this._timethis._duration&&(a=this._duration),this.totaltime(a,b)):this._time},g.totaltime=function(a,b){if(!arguments.length)return this._totaltime;if(this._timeline){if(0>a&&(a+=this.totalduration()),this._timeline.smoothchildtiming&&(this._dirty&&this.totalduration(),a>this._totalduration&&(a=this._totalduration),this._starttime=(this._paused?this._pausetime:this._timeline._time)-(this._reversed?this._totalduration-a:a)/this._timescale,this._timeline._dirty||this._uncache(!1),!this._timeline._active))for(var c=this._timeline;c._timeline;)c.totaltime(c._totaltime,!0),c=c._timeline;this._gc&&this._enabled(!0,!1),this._totaltime!==a&&this.render(a,b,!1)}return this},g.starttime=function(a){return arguments.length?(a!==this._starttime&&(this._starttime=a,this.timeline&&this.timeline._sortchildren&&this.timeline.add(this,a-this._delay)),this):this._starttime},g.timescale=function(a){if(!arguments.length)return this._timescale;if(a=a||1e-6,this._timeline&&this._timeline.smoothchildtiming){var b=this._pausetime||0===this._pausetime?this._pausetime:this._timeline._totaltime;this._starttime=b-(b-this._starttime)*this._timescale/a}return this._timescale=a,this._uncache(!1)},g.reversed=function(a){return arguments.length?(a!=this._reversed&&(this._reversed=a,this.totaltime(this._totaltime,!0)),this):this._reversed},g.paused=function(a){return arguments.length?(a!=this._paused&&this._timeline&&(!a&&this._timeline.smoothchildtiming&&(this._starttime+=this._timeline.rawtime()-this._pausetime,this._uncache(!1)),this._pausetime=a?this._timeline.rawtime():null,this._paused=a,this._active=!this._paused&&this._totaltime>0&&this._totaltimef;)e=e._prev;return e?(a._next=e._next,e._next=a):(a._next=this._first,this._first=a),a._next?a._next._prev=a:this._last=a,a._prev=e,this._timeline&&this._uncache(!0),this},g.insert=g.add,g._remove=function(a,b){return a.timeline===this&&(b||a._enabled(!1,!0),a.timeline=null,a._prev?a._prev._next=a._next:this._first===a&&(this._first=a._next),a._next?a._next._prev=a._prev:this._last===a&&(this._last=a._prev),this._timeline&&this._uncache(!0)),this},g.render=function(a,b){var e,d=this._first;for(this._totaltime=this._time=this._rawprevtime=a;d;)e=d._next,(d._active||a>=d._starttime&&!d._paused)&&(d._reversed?d.render((d._dirty?d.totalduration():d._totalduration)-(a-d._starttime)*d._timescale,b,!1):d.render((a-d._starttime)*d._timescale,b,!1)),d=e},g.rawtime=function(){return this._totaltime};var y=l("tweenlite",function(a,b,c){if(v.call(this,b,c),null==a)throw"cannot tween an undefined reference.";this.target=a="string"!=typeof a?a:y.selector(a)||a,this._overwrite=null==this.vars.overwrite?e[y.defaultoverwrite]:"number"==typeof this.vars.overwrite?this.vars.overwrite>>0:e[this.vars.overwrite];var d,e;if((a instanceof array||a.jquery)&&"object"==typeof a[0])for(this._targets=a.slice(0),this._proplookup=[],this._siblings=[],d=0;this._targets.length>d;d++)e=this._targets[d],e.jquery?(this._targets.splice(d--,1),this._targets=this._targets.concat(e.constructor.makearray(e))):(this._siblings[d]=h(e,this,!1),1===this._overwrite&&this._siblings[d].length>1&&i(e,this,null,1,this._siblings[d]));else this._proplookup={},this._siblings=h(a,this,!1),1===this._overwrite&&this._siblings.length>1&&i(a,this,null,1,this._siblings);(this.vars.immediaterender||0===b&&0===this._delay&&this.vars.immediaterender!==!1)&&this.render(-this._delay,!1,!0)},!0),z=function(a){var c,b={};for(c in a)!d[c]&&(!a[c]||a[c]&&a[c]._autocss)&&(b[c]=a[c],delete a[c]);a.css=b};g=y.prototype=new v,g.constructor=y,g.kill()._gc=!1,g.ratio=0,g._firstpt=g._targets=g._overwrittenprops=null,g._notifypluginsofenabled=!1,y.version="1.8.0",y.defaultease=g._ease=new o(null,null,1,1),y.defaultoverwrite="auto",y.ticker=w,y.selector=a.$||a.jquery||function(b){return a.$?(y.selector=a.$,a.$(b)):a.document?a.document.getelementbyid("#"===b.charat(0)?b.substr(1):b):b};var a=y._plugins={},b=y._tweenlookup={},c=0,d={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,orienttobezier:1,immediaterender:1,repeat:1,repeatdelay:1,data:1,paused:1,reversed:1,autocss:1},e={none:0,all:1,auto:2,concurrent:3,allonstart:4,preexisting:5,"true":1,"false":0},f=v._rootframestimeline=new x,g=v._roottimeline=new x;g._starttime=w.time,f._starttime=w.frame,g._active=f._active=!0,v._updateroot=function(){if(g.render((w.time-g._starttime)*g._timescale,!1,!1),f.render((w.frame-f._starttime)*f._timescale,!1,!1),!(w.frame%120)){var a,b,c;for(c in b){for(b=b[c].tweens,a=b.length;--a>-1;)b[a]._gc&&b.splice(a,1);0===b.length&&delete b[c]}}},w.addeventlistener("tick",v._updateroot);var h=function(a,b,c){var e,f,d=a._gstweenid;if(b[d||(a._gstweenid=d="t"+c++)]||(b[d]={target:a,tweens:[]}),b&&(e=b[d].tweens,e[f=e.length]=b,c))for(;--f>-1;)e[f]===b&&e.splice(f,1);return b[d].tweens},i=function(a,b,c,d,e){var f,g,h,i;if(1===d||d>=4){for(i=e.length,f=0;i>f;f++)if((h=e[f])!==b)h._gc||h._enabled(!1,!1)&&(g=!0);else if(5===d)break;return g}var n,j=b._starttime+1e-10,k=[],l=0,m=0===b._duration;for(f=e.length;--f>-1;)(h=e[f])===b||h._gc||h._paused||(h._timeline!==b._timeline?(n=n||j(b,0,m),0===j(h,n,m)&&(k[l++]=h)):j>=h._starttime&&h._starttime+h.totalduration()/h._timescale+1e-10>j&&((m||!h._initted)&&2e-10>=j-h._starttime||(k[l++]=h)));for(f=l;--f>-1;)h=k[f],2===d&&h._kill(c,a)&&(g=!0),(2!==d||!h._firstpt&&h._initted)&&h._enabled(!1,!1)&&(g=!0);return g},j=function(a,b,c){for(var d=a._timeline,e=d._timescale,f=a._starttime;d._timeline;){if(f+=d._starttime,e*=d._timescale,d._paused)return-100;d=d._timeline}return f/=e,f>b?f-b:c&&f===b||!a._initted&&2e-10>f-b?1e-10:(f+=a.totalduration()/a._timescale/e)>b?0:f-b-1e-10};g._init=function(){var c,d,e,a=this.vars,b=a.ease;if(a.startat&&(a.startat.overwrite=0,a.startat.immediaterender=!0,y.to(this.target,0,a.startat)),this._ease=b?b instanceof o?a.easeparams instanceof array?b.config.apply(b,a.easeparams):b:"function"==typeof b?new o(b,a.easeparams):p[b]||y.defaultease:y.defaultease,this._easetype=this._ease._type,this._easepower=this._ease._power,this._firstpt=null,this._targets)for(c=this._targets.length;--c>-1;)this._initprops(this._targets[c],this._proplookup[c]={},this._siblings[c],this._overwrittenprops?this._overwrittenprops[c]:null)&&(d=!0);else d=this._initprops(this.target,this._proplookup,this._siblings,this._overwrittenprops);if(d&&y._onpluginevent("_oninitallprops",this),this._overwrittenprops&&null==this._firstpt&&"function"!=typeof this.target&&this._enabled(!1,!1),a.runbackwards)for(e=this._firstpt;e;)e.s+=e.c,e.c=-e.c,e=e._next;this._onupdate=a.onupdate,this._initted=!0},g._initprops=function(a,b,c,d){var e,f,g,h,i,j,k;if(null==a)return!1;this.vars.css||a.style&&a.nodetype&&this.vars.autocss!==!1&&z(this.vars);for(e in this.vars){if(d[e]){if(("onstartparams"===e||"onupdateparams"===e||"oncompleteparams"===e||"onreversecompleteparams"===e||"onrepeatparams"===e)&&(i=this.vars[e]))for(f=i.length;--f>-1;)"{self}"===i[f]&&(i=this.vars[e]=i.concat(),i[f]=this)}else if(a[e]&&(h=new a[e])._oninittween(a,this.vars[e],this)){for(this._firstpt=j={_next:this._firstpt,t:h,p:"setratio",s:0,c:1,f:!0,n:e,pg:!0,pr:h._priority},f=h._overwriteprops.length;--f>-1;)b[h._overwriteprops[f]]=this._firstpt;(h._priority||h._oninitallprops)&&(g=!0),(h._ondisable||h._onenable)&&(this._notifypluginsofenabled=!0)}else this._firstpt=b[e]=j={_next:this._firstpt,t:a,p:e,f:"function"==typeof a[e],n:e,pg:!1,pr:0},j.s=j.f?a[e.indexof("set")||"function"!=typeof a["get"+e.substr(3)]?e:"get"+e.substr(3)]():parsefloat(a[e]),k=this.vars[e],j.c="string"==typeof k&&"="===k.charat(1)?parseint(k.charat(0)+"1",10)*number(k.substr(2)):number(k)-j.s||0;j&&j._next&&(j._next._prev=j)}return d&&this._kill(d,a)?this._initprops(a,b,c,d):this._overwrite>1&&this._firstpt&&c.length>1&&i(a,this,b,this._overwrite,c)?(this._kill(b,a),this._initprops(a,b,c,d)):g},g.render=function(a,b,c){var e,f,g,d=this._time;if(a>=this._duration)this._totaltime=this._time=this._duration,this.ratio=this._ease._calcend?this._ease.getratio(1):1,this._reversed||(e=!0,f="oncomplete"),0===this._duration&&((0===a||0>this._rawprevtime)&&this._rawprevtime!==a&&(c=!0),this._rawprevtime=a);else if(0>=a)this._totaltime=this._time=0,this.ratio=this._ease._calcend?this._ease.getratio(0):0,(0!==d||0===this._duration&&this._rawprevtime>0)&&(f="onreversecomplete",e=this._reversed),0>a?(this._active=!1,0===this._duration&&(this._rawprevtime>=0&&(c=!0),this._rawprevtime=a)):this._initted||(c=!0);else if(this._totaltime=this._time=a,this._easetype){var h=a/this._duration,i=this._easetype,j=this._easepower;(1===i||3===i&&h>=.5)&&(h=1-h),3===i&&(h*=2),1===j?h*=h:2===j?h*=h*h:3===j?h*=h*h*h:4===j&&(h*=h*h*h*h),this.ratio=1===i?1-h:2===i?h:.5>a/this._duration?h/2:1-h/2}else this.ratio=this._ease.getratio(a/this._duration);if(this._time!==d||c){for(this._initted||(this._init(),!e&&this._time&&(this.ratio=this._ease.getratio(this._time/this._duration))),this._active||this._paused||(this._active=!0),0===d&&this.vars.onstart&&(0!==this._time||0===this._duration)&&(b||this.vars.onstart.apply(this.vars.onstartscope||this,this.vars.onstartparams||n)),g=this._firstpt;g;)g.f?g.t[g.p](g.c*this.ratio+g.s):g.t[g.p]=g.c*this.ratio+g.s,g=g._next;this._onupdate&&(b||this._onupdate.apply(this.vars.onupdatescope||this,this.vars.onupdateparams||n)),f&&(this._gc||(e&&(this._timeline.autoremovechildren&&this._enabled(!1,!1),this._active=!1),b||this.vars[f]&&this.vars[f].apply(this.vars[f+"scope"]||this,this.vars[f+"params"]||n)))}},g._kill=function(a,b){if("all"===a&&(a=null),null==a&&(null==b||b===this.target))return this._enabled(!1,!1);b="string"!=typeof b?b||this._targets||this.target:y.selector(b)||b;var c,d,e,f,g,h,i,j;if((b instanceof array||b.jquery)&&"object"==typeof b[0])for(c=b.length;--c>-1;)this._kill(a,b[c])&&(h=!0);else{if(this._targets){for(c=this._targets.length;--c>-1;)if(b===this._targets[c]){g=this._proplookup[c]||{},this._overwrittenprops=this._overwrittenprops||[],d=this._overwrittenprops[c]=a?this._overwrittenprops[c]||{}:"all";break}}else{if(b!==this.target)return!1;g=this._proplookup,d=this._overwrittenprops=a?this._overwrittenprops||{}:"all"}if(g){i=a||g,j=a!==d&&"all"!==d&&a!==g&&(null==a||a._tempkill!==!0);for(e in i)(f=g[e])&&(f.pg&&f.t._kill(i)&&(h=!0),f.pg&&0!==f.t._overwriteprops.length||(f._prev?f._prev._next=f._next:f===this._firstpt&&(this._firstpt=f._next),f._next&&(f._next._prev=f._prev),f._next=f._prev=null),delete g[e]),j&&(d[e]=1)}}return h},g.invalidate=function(){return this._notifypluginsofenabled&&y._onpluginevent("_ondisable",this),this._firstpt=null,this._overwrittenprops=null,this._onupdate=null,this._initted=this._active=this._notifypluginsofenabled=!1,this._proplookup=this._targets?{}:[],this},g._enabled=function(a,b){if(a&&this._gc)if(this._targets)for(var c=this._targets.length;--c>-1;)this._siblings[c]=h(this._targets[c],this,!0);else this._siblings=h(this.target,this,!0);return v.prototype._enabled.call(this,a,b),this._notifypluginsofenabled&&this._firstpt?y._onpluginevent(a?"_onenable":"_ondisable",this):!1},y.to=function(a,b,c){return new y(a,b,c)},y.from=function(a,b,c){return c.runbackwards=!0,c.immediaterender!==!1&&(c.immediaterender=!0),new y(a,b,c)},y.fromto=function(a,b,c,d){return d.startat=c,c.immediaterender&&(d.immediaterender=!0),new y(a,b,d)},y.delayedcall=function(a,b,c,d,e){return new y(b,0,{delay:a,oncomplete:b,oncompleteparams:c,oncompletescope:d,onreversecomplete:b,onreversecompleteparams:c,onreversecompletescope:d,immediaterender:!1,useframes:e,overwrite:0})},y.set=function(a,b){return new y(a,0,b)},y.killtweensof=y.killdelayedcallsto=function(a,b){for(var c=y.gettweensof(a),d=c.length;--d>-1;)c[d]._kill(b,a)},y.gettweensof=function(a){if(null!=a){a="string"!=typeof a?a:y.selector(a)||a;var b,c,d,e;if((a instanceof array||a.jquery)&&"object"==typeof a[0]){for(b=a.length,c=[];--b>-1;)c=c.concat(y.gettweensof(a[b]));for(b=c.length;--b>-1;)for(e=c[b],d=b;--d>-1;)e===c[d]&&c.splice(b,1)}else for(c=h(a).concat(),b=c.length;--b>-1;)c[b]._gc&&c.splice(b,1);return c}};var k=l("plugins.tweenplugin",function(a,b){this._overwriteprops=(a||"").split(","),this._propname=this._overwriteprops[0],this._priority=b||0},!0);if(g=k.prototype,k.version=12,k.api=2,g._firstpt=null,g._addtween=function(a,b,c,d,e,f){var g,h;null!=d&&(g="number"==typeof d||"="!==d.charat(1)?number(d)-c:parseint(d.charat(0)+"1",10)*number(d.substr(2)))&&(this._firstpt=h={_next:this._firstpt,t:a,p:b,s:c,c:g,f:"function"==typeof a[b],n:e||b,r:f},h._next&&(h._next._prev=h))},g.setratio=function(a){for(var c,b=this._firstpt;b;)c=b.c*a+b.s,b.r&&(c=c+(c>0?.5:-.5)>>0),b.f?b.t[b.p](c):b.t[b.p]=c,b=b._next},g._kill=function(a){if(null!=a[this._propname])this._overwriteprops=[];else for(var b=this._overwriteprops.length;--b>-1;)null!=a[this._overwriteprops[b]]&&this._overwriteprops.splice(b,1);for(var c=this._firstpt;c;)null!=a[c.n]&&(c._next&&(c._next._prev=c._prev),c._prev?(c._prev._next=c._next,c._prev=null):this._firstpt===c&&(this._firstpt=c._next)),c=c._next;return!1},g._roundprops=function(a,b){for(var c=this._firstpt;c;)(a[this._propname]||null!=c.n&&a[c.n.split(this._propname+"_").join("")])&&(c.r=b),c=c._next},y._onpluginevent=function(a,b){var d,c=b._firstpt;if("_oninitallprops"===a){for(var e,f,g,h;c;){for(h=c._next,e=f;e&&e.pr>c.pr;)e=e._next;(c._prev=e?e._prev:g)?c._prev._next=c:f=c,(c._next=e)?e._prev=c:g=c,c=h}c=b._firstpt=f}for(;c;)c.pg&&"function"==typeof c.t[a]&&c.t[a]()&&(d=!0),c=c._next;return d},k.activate=function(a){for(var b=a.length;--b>-1;)a[b].api===k.api&&(y._plugins[(new a[b])._propname]=a[b]);return!0},e=a._gsqueue){for(f=0;e.length>f;f++)e[f]();for(g in i)i[g].func||a.console.log("gsap encountered missing dependency: com.greensock."+g)}h=!1}(window);