function iniBrokebot(){isHeadless||(eyesY=0,bodyTO="43px 160px"),determineErrorTxt(),animateBrokebot()}function determineErrorTxt(_errorcode){if(errorCode="undefined"!=typeof _errorcode?_errorcode:GetUrlValue("errorCode")){var errorString=eval("text"+errorCode);document.getElementById("robot-text").innerHTML=errorString}}function animateBrokebot(){var t=Snap("#brokebotSVG"),e=t.select("#rightInnerClaw"),i=t.select("#rightOuterClaw"),r=t.select("#leftInnerClaw"),n=t.select("#leftOuterClaw"),s=t.select("#upperBody"),a=t.select("#eyesMove"),o=t.select("#eyesBlink"),l=t.select("#leftArm"),h=t.select("#rightLowerArm"),u=t.select("#robotHead"),c=t.select("#errorCodeTxt");errorCode&&(c.node.textContent=errorCode.toString()),setTimeout(function(){TweenMax.from(e.node,clawTweenTime,{rotation:45,transformOrigin:"11px 15px",repeat:-1,repeatDelay:rightClawRepeatDelay}),TweenMax.from(i.node,clawTweenTime,{rotation:-45,transformOrigin:"15px 15px",repeat:-1,repeatDelay:rightClawRepeatDelay})},1e3*rightClawRepeatDelay),setTimeout(function(){TweenMax.from(r.node,clawTweenTime,{rotation:-45,transformOrigin:"15px 15px",repeat:-1,repeatDelay:leftClawRepeatDelay}),TweenMax.from(n.node,clawTweenTime,{rotation:45,transformOrigin:"11px 15px",repeat:-1,repeatDelay:leftClawRepeatDelay})},1e3*leftClawRepeatDelay),TweenMax.from(c.node,2,{opacity:0}),TweenMax.to(s.node,bodySwayTime,{rotationZ:-bodySwayAmount,transformOrigin:bodyTO,yoyo:!0,repeat:-1,ease:Quad.easeInOut}),TweenMax.to(l.node,bodySwayTime,{delay:.3,rotationZ:bodySwayAmount,transformOrigin:"15px -11px",yoyo:!0,repeat:-1,ease:Quad.easeInOut}),TweenMax.to(h.node,bodySwayTime,{delay:.5,rotationZ:bodySwayAmount,transformOrigin:"15px 0px",yoyo:!0,repeat:-1,ease:Quad.easeInOut}),TweenMax.to(a.node,.05,{delay:eyesMoveRepeatTime,x:-2,y:eyesY,repeatDelay:eyesMoveRepeatTime,repeat:-1,yoyo:!0}),TweenMax.from(o.node,.3,{scaleY:.2,repeatDelay:blinkRepeatTime,repeat:-1,transformOrigin:"0px 6px"}),isHeadless||TweenMax.from(u.node,bodySwayTime,{delay:bodySwayTime,rotationZ:1.5*bodySwayAmount,transformOrigin:"65px 77px",yoyo:!0,repeat:-1,ease:Quad.easeInOut})}function GetUrlValue(t){for(var e=window.location.search.substring(1),i=e.split("&"),r=0;r<i.length;r++){var n=i[r].split("=");if(n[0]==t)return n[1]}}function searchClicked(t){var e=document.getElementById("robot-search-input").value,i=encodeURIComponent(e);return""!=i&&(window.location.href="http://codecanyon.net/search?term="+i+"&ref=dxc"),!1}var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("TweenMax",["core.Animation","core.SimpleTimeline","TweenLite"],function(t,e,i){var r=function(t){var e,i=[],r=t.length;for(e=0;e!==r;i.push(t[e++]));return i},n=function(t,e,i){var r,n,s=t.cycle;for(r in s)n=s[r],t[r]="function"==typeof n?n.call(e[i],i):n[i%n.length];delete t.cycle},s=function(t,e,r){i.call(this,t,e,r),this._cycle=0,this._yoyo=this.vars.yoyo===!0,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._dirty=!0,this.render=s.prototype.render},a=1e-10,o=i._internals,l=o.isSelector,h=o.isArray,u=s.prototype=i.to({},.1,{}),c=[];s.version="1.18.0",u.constructor=s,u.kill()._gc=!1,s.killTweensOf=s.killDelayedCallsTo=i.killTweensOf,s.getTweensOf=i.getTweensOf,s.lagSmoothing=i.lagSmoothing,s.ticker=i.ticker,s.render=i.render,u.invalidate=function(){return this._yoyo=this.vars.yoyo===!0,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),i.prototype.invalidate.call(this)},u.updateTo=function(t,e){var r,n=this.ratio,s=this.vars.immediateRender||t.immediateRender;e&&this._startTime<this._timeline._time&&(this._startTime=this._timeline._time,this._uncache(!1),this._gc?this._enabled(!0,!1):this._timeline.insert(this,this._startTime-this._delay));for(r in t)this.vars[r]=t[r];if(this._initted||s)if(e)this._initted=!1,s&&this.render(0,!0,!0);else if(this._gc&&this._enabled(!0,!1),this._notifyPluginsOfEnabled&&this._firstPT&&i._onPluginEvent("_onDisable",this),this._time/this._duration>.998){var a=this._time;this.render(0,!0,!1),this._initted=!1,this.render(a,!0,!1)}else if(this._time>0||s){this._initted=!1,this._init();for(var o,l=1/(1-n),h=this._firstPT;h;)o=h.s+h.c,h.c*=l,h.s=o-h.c,h=h._next}return this},u.render=function(t,e,i){this._initted||0===this._duration&&this.vars.repeat&&this.invalidate();var r,n,s,l,h,u,c,f,p=this._dirty?this.totalDuration():this._totalDuration,d=this._time,_=this._totalTime,m=this._cycle,g=this._duration,v=this._rawPrevTime;if(t>=p?(this._totalTime=p,this._cycle=this._repeat,this._yoyo&&0!==(1&this._cycle)?(this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0):(this._time=g,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1),this._reversed||(r=!0,n="onComplete",i=i||this._timeline.autoRemoveChildren),0===g&&(this._initted||!this.vars.lazy||i)&&(this._startTime===this._timeline._duration&&(t=0),(0===t||0>v||v===a)&&v!==t&&(i=!0,v>a&&(n="onReverseComplete")),this._rawPrevTime=f=!e||t||v===t?t:a)):1e-7>t?(this._totalTime=this._time=this._cycle=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==_||0===g&&v>0)&&(n="onReverseComplete",r=this._reversed),0>t&&(this._active=!1,0===g&&(this._initted||!this.vars.lazy||i)&&(v>=0&&(i=!0),this._rawPrevTime=f=!e||t||v===t?t:a)),this._initted||(i=!0)):(this._totalTime=this._time=t,0!==this._repeat&&(l=g+this._repeatDelay,this._cycle=this._totalTime/l>>0,0!==this._cycle&&this._cycle===this._totalTime/l&&this._cycle--,this._time=this._totalTime-this._cycle*l,this._yoyo&&0!==(1&this._cycle)&&(this._time=g-this._time),this._time>g?this._time=g:0>this._time&&(this._time=0)),this._easeType?(h=this._time/g,u=this._easeType,c=this._easePower,(1===u||3===u&&h>=.5)&&(h=1-h),3===u&&(h*=2),1===c?h*=h:2===c?h*=h*h:3===c?h*=h*h*h:4===c&&(h*=h*h*h*h),this.ratio=1===u?1-h:2===u?h:.5>this._time/g?h/2:1-h/2):this.ratio=this._ease.getRatio(this._time/g)),d===this._time&&!i&&m===this._cycle)return void(_!==this._totalTime&&this._onUpdate&&(e||this._callback("onUpdate")));if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!i&&this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration))return this._time=d,this._totalTime=_,this._rawPrevTime=v,this._cycle=m,o.lazyTweens.push(this),void(this._lazy=[t,e]);this._time&&!r?this.ratio=this._ease.getRatio(this._time/g):r&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(0===this._time?0:1))}for(this._lazy!==!1&&(this._lazy=!1),this._active||!this._paused&&this._time!==d&&t>=0&&(this._active=!0),0===_&&(2===this._initted&&t>0&&this._init(),this._startAt&&(t>=0?this._startAt.render(t,e,i):n||(n="_dummyGS")),this.vars.onStart&&(0!==this._totalTime||0===g)&&(e||this._callback("onStart"))),s=this._firstPT;s;)s.f?s.t[s.p](s.c*this.ratio+s.s):s.t[s.p]=s.c*this.ratio+s.s,s=s._next;this._onUpdate&&(0>t&&this._startAt&&this._startTime&&this._startAt.render(t,e,i),e||(this._totalTime!==_||r)&&this._callback("onUpdate")),this._cycle!==m&&(e||this._gc||this.vars.onRepeat&&this._callback("onRepeat")),n&&(!this._gc||i)&&(0>t&&this._startAt&&!this._onUpdate&&this._startTime&&this._startAt.render(t,e,i),r&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[n]&&this._callback(n),0===g&&this._rawPrevTime===a&&f!==a&&(this._rawPrevTime=0))},s.to=function(t,e,i){return new s(t,e,i)},s.from=function(t,e,i){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,new s(t,e,i)},s.fromTo=function(t,e,i,r){return r.startAt=i,r.immediateRender=0!=r.immediateRender&&0!=i.immediateRender,new s(t,e,r)},s.staggerTo=s.allTo=function(t,e,a,o,u,f,p){o=o||0;var d,_,m,g,v=a.delay||0,y=[],x=function(){a.onComplete&&a.onComplete.apply(a.onCompleteScope||this,arguments),u.apply(p||a.callbackScope||this,f||c)},b=a.cycle,T=a.startAt&&a.startAt.cycle;for(h(t)||("string"==typeof t&&(t=i.selector(t)||t),l(t)&&(t=r(t))),t=t||[],0>o&&(t=r(t),t.reverse(),o*=-1),d=t.length-1,m=0;d>=m;m++){_={};for(g in a)_[g]=a[g];if(b&&n(_,t,m),T){T=_.startAt={};for(g in a.startAt)T[g]=a.startAt[g];n(_.startAt,t,m)}_.delay=v,m===d&&u&&(_.onComplete=x),y[m]=new s(t[m],e,_),v+=o}return y},s.staggerFrom=s.allFrom=function(t,e,i,r,n,a,o){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,s.staggerTo(t,e,i,r,n,a,o)},s.staggerFromTo=s.allFromTo=function(t,e,i,r,n,a,o,l){return r.startAt=i,r.immediateRender=0!=r.immediateRender&&0!=i.immediateRender,s.staggerTo(t,e,r,n,a,o,l)},s.delayedCall=function(t,e,i,r,n){return new s(e,0,{delay:t,onComplete:e,onCompleteParams:i,callbackScope:r,onReverseComplete:e,onReverseCompleteParams:i,immediateRender:!1,useFrames:n,overwrite:0})},s.set=function(t,e){return new s(t,0,e)},s.isTweening=function(t){return i.getTweensOf(t,!0).length>0};var f=function(t,e){for(var r=[],n=0,s=t._first;s;)s instanceof i?r[n++]=s:(e&&(r[n++]=s),r=r.concat(f(s,e)),n=r.length),s=s._next;return r},p=s.getAllTweens=function(e){return f(t._rootTimeline,e).concat(f(t._rootFramesTimeline,e))};s.killAll=function(t,i,r,n){null==i&&(i=!0),null==r&&(r=!0);var s,a,o,l=p(0!=n),h=l.length,u=i&&r&&n;for(o=0;h>o;o++)a=l[o],(u||a instanceof e||(s=a.target===a.vars.onComplete)&&r||i&&!s)&&(t?a.totalTime(a._reversed?0:a.totalDuration()):a._enabled(!1,!1))},s.killChildTweensOf=function(t,e){if(null!=t){var n,a,u,c,f,p=o.tweenLookup;if("string"==typeof t&&(t=i.selector(t)||t),l(t)&&(t=r(t)),h(t))for(c=t.length;--c>-1;)s.killChildTweensOf(t[c],e);else{n=[];for(u in p)for(a=p[u].target.parentNode;a;)a===t&&(n=n.concat(p[u].tweens)),a=a.parentNode;for(f=n.length,c=0;f>c;c++)e&&n[c].totalTime(n[c].totalDuration()),n[c]._enabled(!1,!1)}}};var d=function(t,i,r,n){i=i!==!1,r=r!==!1,n=n!==!1;for(var s,a,o=p(n),l=i&&r&&n,h=o.length;--h>-1;)a=o[h],(l||a instanceof e||(s=a.target===a.vars.onComplete)&&r||i&&!s)&&a.paused(t)};return s.pauseAll=function(t,e,i){d(!0,t,e,i)},s.resumeAll=function(t,e,i){d(!1,t,e,i)},s.globalTimeScale=function(e){var r=t._rootTimeline,n=i.ticker.time;return arguments.length?(e=e||a,r._startTime=n-(n-r._startTime)*r._timeScale/e,r=t._rootFramesTimeline,n=i.ticker.frame,r._startTime=n-(n-r._startTime)*r._timeScale/e,r._timeScale=t._rootTimeline._timeScale=e,e):r._timeScale},u.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()},u.totalProgress=function(t){return arguments.length?this.totalTime(this.totalDuration()*t,!1):this._totalTime/this.totalDuration()},u.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},u.duration=function(e){return arguments.length?t.prototype.duration.call(this,e):this._duration},u.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)},u.repeat=function(t){return arguments.length?(this._repeat=t,this._uncache(!0)):this._repeat},u.repeatDelay=function(t){return arguments.length?(this._repeatDelay=t,this._uncache(!0)):this._repeatDelay},u.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},s},!0),_gsScope._gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(t,e,i){var r=function(t){e.call(this,t),this._labels={},this.autoRemoveChildren=this.vars.autoRemoveChildren===!0,this.smoothChildTiming=this.vars.smoothChildTiming===!0,this._sortChildren=!0,this._onUpdate=this.vars.onUpdate;var i,r,n=this.vars;for(r in n)i=n[r],l(i)&&-1!==i.join("").indexOf("{self}")&&(n[r]=this._swapSelfInParams(i));l(n.tweens)&&this.add(n.tweens,0,n.align,n.stagger)},n=1e-10,s=i._internals,a=r._internals={},o=s.isSelector,l=s.isArray,h=s.lazyTweens,u=s.lazyRender,c=_gsScope._gsDefine.globals,f=function(t){var e,i={};for(e in t)i[e]=t[e];return i},p=function(t,e,i){var r,n,s=t.cycle;for(r in s)n=s[r],t[r]="function"==typeof n?n.call(e[i],i):n[i%n.length];delete t.cycle},d=a.pauseCallback=function(){},_=function(t){var e,i=[],r=t.length;for(e=0;e!==r;i.push(t[e++]));return i},m=r.prototype=new e;return r.version="1.18.0",m.constructor=r,m.kill()._gc=m._forcingPlayhead=m._hasPause=!1,m.to=function(t,e,r,n){var s=r.repeat&&c.TweenMax||i;return e?this.add(new s(t,e,r),n):this.set(t,r,n)},m.from=function(t,e,r,n){return this.add((r.repeat&&c.TweenMax||i).from(t,e,r),n)},m.fromTo=function(t,e,r,n,s){var a=n.repeat&&c.TweenMax||i;return e?this.add(a.fromTo(t,e,r,n),s):this.set(t,n,s)},m.staggerTo=function(t,e,n,s,a,l,h,u){var c,d,m=new r({onComplete:l,onCompleteParams:h,callbackScope:u,smoothChildTiming:this.smoothChildTiming}),g=n.cycle;for("string"==typeof t&&(t=i.selector(t)||t),t=t||[],o(t)&&(t=_(t)),s=s||0,0>s&&(t=_(t),t.reverse(),s*=-1),d=0;t.length>d;d++)c=f(n),c.startAt&&(c.startAt=f(c.startAt),c.startAt.cycle&&p(c.startAt,t,d)),g&&p(c,t,d),m.to(t[d],e,c,d*s);return this.add(m,a)},m.staggerFrom=function(t,e,i,r,n,s,a,o){return i.immediateRender=0!=i.immediateRender,i.runBackwards=!0,this.staggerTo(t,e,i,r,n,s,a,o)},m.staggerFromTo=function(t,e,i,r,n,s,a,o,l){return r.startAt=i,r.immediateRender=0!=r.immediateRender&&0!=i.immediateRender,this.staggerTo(t,e,r,n,s,a,o,l)},m.call=function(t,e,r,n){return this.add(i.delayedCall(0,t,e,r),n)},m.set=function(t,e,r){return r=this._parseTimeOrLabel(r,0,!0),null==e.immediateRender&&(e.immediateRender=r===this._time&&!this._paused),this.add(new i(t,0,e),r)},r.exportRoot=function(t,e){t=t||{},null==t.smoothChildTiming&&(t.smoothChildTiming=!0);var n,s,a=new r(t),o=a._timeline;for(null==e&&(e=!0),o._remove(a,!0),a._startTime=0,a._rawPrevTime=a._time=a._totalTime=o._time,n=o._first;n;)s=n._next,e&&n instanceof i&&n.target===n.vars.onComplete||a.add(n,n._startTime-n._delay),n=s;return o.add(a,0),a},m.add=function(n,s,a,o){var h,u,c,f,p,d;if("number"!=typeof s&&(s=this._parseTimeOrLabel(s,0,!0,n)),!(n instanceof t)){if(n instanceof Array||n&&n.push&&l(n)){for(a=a||"normal",o=o||0,h=s,u=n.length,c=0;u>c;c++)l(f=n[c])&&(f=new r({tweens:f})),this.add(f,h),"string"!=typeof f&&"function"!=typeof f&&("sequence"===a?h=f._startTime+f.totalDuration()/f._timeScale:"start"===a&&(f._startTime-=f.delay())),h+=o;return this._uncache(!0)}if("string"==typeof n)return this.addLabel(n,s);if("function"!=typeof n)throw"Cannot add "+n+" into the timeline; it is not a tween, timeline, function, or string.";n=i.delayedCall(0,n)}if(e.prototype.add.call(this,n,s),(this._gc||this._time===this._duration)&&!this._paused&&this._duration<this.duration())for(p=this,d=p.rawTime()>n._startTime;p._timeline;)d&&p._timeline.smoothChildTiming?p.totalTime(p._totalTime,!0):p._gc&&p._enabled(!0,!1),p=p._timeline;return this},m.remove=function(e){if(e instanceof t){this._remove(e,!1);var i=e._timeline=e.vars.useFrames?t._rootFramesTimeline:t._rootTimeline;return e._startTime=(e._paused?e._pauseTime:i._time)-(e._reversed?e.totalDuration()-e._totalTime:e._totalTime)/e._timeScale,this}if(e instanceof Array||e&&e.push&&l(e)){for(var r=e.length;--r>-1;)this.remove(e[r]);return this}return"string"==typeof e?this.removeLabel(e):this.kill(null,e)},m._remove=function(t,i){e.prototype._remove.call(this,t,i);var r=this._last;return r?this._time>r._startTime+r._totalDuration/r._timeScale&&(this._time=this.duration(),this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},m.append=function(t,e){return this.add(t,this._parseTimeOrLabel(null,e,!0,t))},m.insert=m.insertMultiple=function(t,e,i,r){return this.add(t,e||0,i,r)},m.appendMultiple=function(t,e,i,r){return this.add(t,this._parseTimeOrLabel(null,e,!0,t),i,r)},m.addLabel=function(t,e){return this._labels[t]=this._parseTimeOrLabel(e),this},m.addPause=function(t,e,r,n){var s=i.delayedCall(0,d,r,n||this);return s.vars.onComplete=s.vars.onReverseComplete=e,s.data="isPause",this._hasPause=!0,this.add(s,t)},m.removeLabel=function(t){return delete this._labels[t],this},m.getLabelTime=function(t){return null!=this._labels[t]?this._labels[t]:-1},m._parseTimeOrLabel=function(e,i,r,n){var s;if(n instanceof t&&n.timeline===this)this.remove(n);else if(n&&(n instanceof Array||n.push&&l(n)))for(s=n.length;--s>-1;)n[s]instanceof t&&n[s].timeline===this&&this.remove(n[s]);if("string"==typeof i)return this._parseTimeOrLabel(i,r&&"number"==typeof e&&null==this._labels[i]?e-this.duration():0,r);if(i=i||0,"string"!=typeof e||!isNaN(e)&&null==this._labels[e])null==e&&(e=this.duration());else{if(s=e.indexOf("="),-1===s)return null==this._labels[e]?r?this._labels[e]=this.duration()+i:i:this._labels[e]+i;i=parseInt(e.charAt(s-1)+"1",10)*Number(e.substr(s+1)),e=s>1?this._parseTimeOrLabel(e.substr(0,s-1),0,r):this.duration()}return Number(e)+i},m.seek=function(t,e){return this.totalTime("number"==typeof t?t:this._parseTimeOrLabel(t),e!==!1)},m.stop=function(){return this.paused(!0)},m.gotoAndPlay=function(t,e){return this.play(t,e)},m.gotoAndStop=function(t,e){return this.pause(t,e)},m.render=function(t,e,i){this._gc&&this._enabled(!0,!1);var r,s,a,o,l,c,f=this._dirty?this.totalDuration():this._totalDuration,p=this._time,d=this._startTime,_=this._timeScale,m=this._paused;if(t>=f)this._totalTime=this._time=f,this._reversed||this._hasPausedChild()||(s=!0,o="onComplete",l=!!this._timeline.autoRemoveChildren,0===this._duration&&(0===t||0>this._rawPrevTime||this._rawPrevTime===n)&&this._rawPrevTime!==t&&this._first&&(l=!0,this._rawPrevTime>n&&(o="onReverseComplete"))),this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:n,t=f+1e-4;else if(1e-7>t)if(this._totalTime=this._time=0,(0!==p||0===this._duration&&this._rawPrevTime!==n&&(this._rawPrevTime>0||0>t&&this._rawPrevTime>=0))&&(o="onReverseComplete",s=this._reversed),0>t)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(l=s=!0,o="onReverseComplete"):this._rawPrevTime>=0&&this._first&&(l=!0),this._rawPrevTime=t;else{if(this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:n,0===t&&s)for(r=this._first;r&&0===r._startTime;)r._duration||(s=!1),r=r._next;t=0,this._initted||(l=!0)}else{if(this._hasPause&&!this._forcingPlayhead&&!e){if(t>=p)for(r=this._first;r&&t>=r._startTime&&!c;)r._duration||"isPause"!==r.data||r.ratio||0===r._startTime&&0===this._rawPrevTime||(c=r),r=r._next;else for(r=this._last;r&&r._startTime>=t&&!c;)r._duration||"isPause"===r.data&&r._rawPrevTime>0&&(c=r),r=r._prev;c&&(this._time=t=c._startTime,this._totalTime=t+this._cycle*(this._totalDuration+this._repeatDelay))}this._totalTime=this._time=this._rawPrevTime=t}if(this._time!==p&&this._first||i||l||c){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._time!==p&&t>0&&(this._active=!0),0===p&&this.vars.onStart&&0!==this._time&&(e||this._callback("onStart")),this._time>=p)for(r=this._first;r&&(a=r._next,!this._paused||m);)(r._active||r._startTime<=this._time&&!r._paused&&!r._gc)&&(c===r&&this.pause(),r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(t-r._startTime)*r._timeScale,e,i):r.render((t-r._startTime)*r._timeScale,e,i)),r=a;else for(r=this._last;r&&(a=r._prev,!this._paused||m);){if(r._active||p>=r._startTime&&!r._paused&&!r._gc){if(c===r){for(c=r._prev;c&&c.endTime()>this._time;)c.render(c._reversed?c.totalDuration()-(t-c._startTime)*c._timeScale:(t-c._startTime)*c._timeScale,e,i),c=c._prev;c=null,this.pause()}r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(t-r._startTime)*r._timeScale,e,i):r.render((t-r._startTime)*r._timeScale,e,i)}r=a}this._onUpdate&&(e||(h.length&&u(),this._callback("onUpdate"))),o&&(this._gc||(d===this._startTime||_!==this._timeScale)&&(0===this._time||f>=this.totalDuration())&&(s&&(h.length&&u(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[o]&&this._callback(o)))}},m._hasPausedChild=function(){for(var t=this._first;t;){if(t._paused||t instanceof r&&t._hasPausedChild())return!0;t=t._next}return!1},m.getChildren=function(t,e,r,n){n=n||-9999999999;for(var s=[],a=this._first,o=0;a;)n>a._startTime||(a instanceof i?e!==!1&&(s[o++]=a):(r!==!1&&(s[o++]=a),t!==!1&&(s=s.concat(a.getChildren(!0,e,r)),o=s.length))),a=a._next;return s},m.getTweensOf=function(t,e){var r,n,s=this._gc,a=[],o=0;for(s&&this._enabled(!0,!0),r=i.getTweensOf(t),n=r.length;--n>-1;)(r[n].timeline===this||e&&this._contains(r[n]))&&(a[o++]=r[n]);return s&&this._enabled(!1,!0),a},m.recent=function(){return this._recent},m._contains=function(t){for(var e=t.timeline;e;){if(e===this)return!0;e=e.timeline}return!1},m.shiftChildren=function(t,e,i){i=i||0;for(var r,n=this._first,s=this._labels;n;)n._startTime>=i&&(n._startTime+=t),n=n._next;if(e)for(r in s)s[r]>=i&&(s[r]+=t);return this._uncache(!0)},m._kill=function(t,e){if(!t&&!e)return this._enabled(!1,!1);for(var i=e?this.getTweensOf(e):this.getChildren(!0,!0,!1),r=i.length,n=!1;--r>-1;)i[r]._kill(t,e)&&(n=!0);return n},m.clear=function(t){var e=this.getChildren(!1,!0,!0),i=e.length;for(this._time=this._totalTime=0;--i>-1;)e[i]._enabled(!1,!1);return t!==!1&&(this._labels={}),this._uncache(!0)},m.invalidate=function(){for(var e=this._first;e;)e.invalidate(),e=e._next;return t.prototype.invalidate.call(this)},m._enabled=function(t,i){if(t===this._gc)for(var r=this._first;r;)r._enabled(t,!0),r=r._next;return e.prototype._enabled.call(this,t,i)},m.totalTime=function(){this._forcingPlayhead=!0;var e=t.prototype.totalTime.apply(this,arguments);return this._forcingPlayhead=!1,e},m.duration=function(t){return arguments.length?(0!==this.duration()&&0!==t&&this.timeScale(this._duration/t),this):(this._dirty&&this.totalDuration(),this._duration)},m.totalDuration=function(t){if(!arguments.length){if(this._dirty){for(var e,i,r=0,n=this._last,s=999999999999;n;)e=n._prev,n._dirty&&n.totalDuration(),n._startTime>s&&this._sortChildren&&!n._paused?this.add(n,n._startTime-n._delay):s=n._startTime,0>n._startTime&&!n._paused&&(r-=n._startTime,this._timeline.smoothChildTiming&&(this._startTime+=n._startTime/this._timeScale),this.shiftChildren(-n._startTime,!1,-9999999999),s=0),i=n._startTime+n._totalDuration/n._timeScale,i>r&&(r=i),n=e;this._duration=this._totalDuration=r,this._dirty=!1}return this._totalDuration}return 0!==this.totalDuration()&&0!==t&&this.timeScale(this._totalDuration/t),this},m.paused=function(e){if(!e)for(var i=this._first,r=this._time;i;)i._startTime===r&&"isPause"===i.data&&(i._rawPrevTime=0),i=i._next;return t.prototype.paused.apply(this,arguments)},m.usesFrames=function(){for(var e=this._timeline;e._timeline;)e=e._timeline;return e===t._rootFramesTimeline},m.rawTime=function(){return this._paused?this._totalTime:(this._timeline.rawTime()-this._startTime)*this._timeScale},r},!0),_gsScope._gsDefine("TimelineMax",["TimelineLite","TweenLite","easing.Ease"],function(t,e,i){var r=function(e){t.call(this,e),this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._cycle=0,this._yoyo=this.vars.yoyo===!0,this._dirty=!0},n=1e-10,s=e._internals,a=s.lazyTweens,o=s.lazyRender,l=new i(null,null,1,0),h=r.prototype=new t;return h.constructor=r,h.kill()._gc=!1,r.version="1.18.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),t.prototype.invalidate.call(this)},h.addCallback=function(t,i,r,n){return this.add(e.delayedCall(0,t,r,n),i)},h.removeCallback=function(t,e){if(t)if(null==e)this._kill(null,t);else for(var i=this.getTweensOf(t,!1),r=i.length,n=this._parseTimeOrLabel(e);--r>-1;)i[r]._startTime===n&&i[r]._enabled(!1,!1);return this},h.removePause=function(e){return this.removeCallback(t._internals.pauseCallback,e)},h.tweenTo=function(t,i){i=i||{};var r,n,s,a={ease:l,useFrames:this.usesFrames(),immediateRender:!1};for(n in i)a[n]=i[n];return a.time=this._parseTimeOrLabel(t),r=Math.abs(Number(a.time)-this._time)/this._timeScale||.001,s=new e(this,r,a),a.onStart=function(){s.target.paused(!0),s.vars.time!==s.target.time()&&r===s.duration()&&s.duration(Math.abs(s.vars.time-s.target.time())/s.target._timeScale),i.onStart&&s._callback("onStart")},s},h.tweenFromTo=function(t,e,i){i=i||{},t=this._parseTimeOrLabel(t),i.startAt={onComplete:this.seek,onCompleteParams:[t],callbackScope:this},i.immediateRender=i.immediateRender!==!1;var r=this.tweenTo(e,i);return r.duration(Math.abs(r.vars.time-t)/this._timeScale||.001)},h.render=function(t,e,i){this._gc&&this._enabled(!0,!1);var r,s,l,h,u,c,f,p=this._dirty?this.totalDuration():this._totalDuration,d=this._duration,_=this._time,m=this._totalTime,g=this._startTime,v=this._timeScale,y=this._rawPrevTime,x=this._paused,b=this._cycle;if(t>=p)this._locked||(this._totalTime=p,this._cycle=this._repeat),this._reversed||this._hasPausedChild()||(s=!0,h="onComplete",u=!!this._timeline.autoRemoveChildren,0===this._duration&&(0===t||0>y||y===n)&&y!==t&&this._first&&(u=!0,y>n&&(h="onReverseComplete"))),this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:n,this._yoyo&&0!==(1&this._cycle)?this._time=t=0:(this._time=d,t=d+1e-4);else if(1e-7>t)if(this._locked||(this._totalTime=this._cycle=0),this._time=0,(0!==_||0===d&&y!==n&&(y>0||0>t&&y>=0)&&!this._locked)&&(h="onReverseComplete",s=this._reversed),0>t)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(u=s=!0,h="onReverseComplete"):y>=0&&this._first&&(u=!0),this._rawPrevTime=t;else{if(this._rawPrevTime=d||!e||t||this._rawPrevTime===t?t:n,0===t&&s)for(r=this._first;r&&0===r._startTime;)r._duration||(s=!1),r=r._next;t=0,this._initted||(u=!0)}else if(0===d&&0>y&&(u=!0),this._time=this._rawPrevTime=t,this._locked||(this._totalTime=t,0!==this._repeat&&(c=d+this._repeatDelay,this._cycle=this._totalTime/c>>0,0!==this._cycle&&this._cycle===this._totalTime/c&&this._cycle--,this._time=this._totalTime-this._cycle*c,this._yoyo&&0!==(1&this._cycle)&&(this._time=d-this._time),this._time>d?(this._time=d,t=d+1e-4):0>this._time?this._time=t=0:t=this._time)),this._hasPause&&!this._forcingPlayhead&&!e){if(t=this._time,t>=_)for(r=this._first;r&&t>=r._startTime&&!f;)r._duration||"isPause"!==r.data||r.ratio||0===r._startTime&&0===this._rawPrevTime||(f=r),r=r._next;else for(r=this._last;r&&r._startTime>=t&&!f;)r._duration||"isPause"===r.data&&r._rawPrevTime>0&&(f=r),r=r._prev;f&&(this._time=t=f._startTime,this._totalTime=t+this._cycle*(this._totalDuration+this._repeatDelay))}if(this._cycle!==b&&!this._locked){var T=this._yoyo&&0!==(1&b),w=T===(this._yoyo&&0!==(1&this._cycle)),P=this._totalTime,S=this._cycle,C=this._rawPrevTime,k=this._time;if(this._totalTime=b*d,b>this._cycle?T=!T:this._totalTime+=d,this._time=_,this._rawPrevTime=0===d?y-1e-4:y,this._cycle=b,this._locked=!0,_=T?0:d,this.render(_,e,0===d),e||this._gc||this.vars.onRepeat&&this._callback("onRepeat"),w&&(_=T?d+1e-4:-1e-4,this.render(_,!0,!1)),this._locked=!1,this._paused&&!x)return;this._time=k,this._totalTime=P,this._cycle=S,this._rawPrevTime=C}if(!(this._time!==_&&this._first||i||u||f))return void(m!==this._totalTime&&this._onUpdate&&(e||this._callback("onUpdate")));if(this._initted||(this._initted=!0),this._active||!this._paused&&this._totalTime!==m&&t>0&&(this._active=!0),0===m&&this.vars.onStart&&0!==this._totalTime&&(e||this._callback("onStart")),this._time>=_)for(r=this._first;r&&(l=r._next,!this._paused||x);)(r._active||r._startTime<=this._time&&!r._paused&&!r._gc)&&(f===r&&this.pause(),r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(t-r._startTime)*r._timeScale,e,i):r.render((t-r._startTime)*r._timeScale,e,i)),r=l;else for(r=this._last;r&&(l=r._prev,!this._paused||x);){if(r._active||_>=r._startTime&&!r._paused&&!r._gc){if(f===r){for(f=r._prev;f&&f.endTime()>this._time;)f.render(f._reversed?f.totalDuration()-(t-f._startTime)*f._timeScale:(t-f._startTime)*f._timeScale,e,i),f=f._prev;f=null,this.pause()}r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(t-r._startTime)*r._timeScale,e,i):r.render((t-r._startTime)*r._timeScale,e,i)}r=l}this._onUpdate&&(e||(a.length&&o(),this._callback("onUpdate"))),h&&(this._locked||this._gc||(g===this._startTime||v!==this._timeScale)&&(0===this._time||p>=this.totalDuration())&&(s&&(a.length&&o(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[h]&&this._callback(h)))},h.getActive=function(t,e,i){null==t&&(t=!0),null==e&&(e=!0),null==i&&(i=!1);var r,n,s=[],a=this.getChildren(t,e,i),o=0,l=a.length;for(r=0;l>r;r++)n=a[r],n.isActive()&&(s[o++]=n);return s},h.getLabelAfter=function(t){t||0!==t&&(t=this._time);var e,i=this.getLabelsArray(),r=i.length;for(e=0;r>e;e++)if(i[e].time>t)return i[e].name;return null},h.getLabelBefore=function(t){null==t&&(t=this._time);for(var e=this.getLabelsArray(),i=e.length;--i>-1;)if(t>e[i].time)return e[i].name;return null},h.getLabelsArray=function(){var t,e=[],i=0;for(t in this._labels)e[i++]={time:this._labels[t],name:t};return e.sort(function(t,e){return t.time-e.time}),e},h.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!==(1&this._cycle)?1-t:t)+this._cycle*(this._duration+this._repeatDelay),e):this._time/this.duration()},h.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this._totalTime/this.totalDuration()},h.totalDuration=function(e){return arguments.length?-1===this._repeat?this:this.duration((e-this._repeat*this._repeatDelay)/(this._repeat+1)):(this._dirty&&(t.prototype.totalDuration.call(this),this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat),this._totalDuration)},h.time=function(t,e){return arguments.length?(this._dirty&&this.totalDuration(),t>this._duration&&(t=this._duration),this._yoyo&&0!==(1&this._cycle)?t=this._duration-t+this._cycle*(this._duration+this._repeatDelay):0!==this._repeat&&(t+=this._cycle*(this._duration+this._repeatDelay)),this.totalTime(t,e)):this._time},h.repeat=function(t){return arguments.length?(this._repeat=t,this._uncache(!0)):this._repeat},h.repeatDelay=function(t){return arguments.length?(this._repeatDelay=t,this._uncache(!0)):this._repeatDelay},h.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},h.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.getLabelBefore(this._time+1e-8)},r},!0),function(){var t=180/Math.PI,e=[],i=[],r=[],n={},s=_gsScope._gsDefine.globals,a=function(t,e,i,r){this.a=t,this.b=e,this.c=i,this.d=r,this.da=r-t,this.ca=i-t,this.ba=e-t},o=",x,y,z,left,top,right,bottom,marginTop,marginLeft,marginRight,marginBottom,paddingLeft,paddingTop,paddingRight,paddingBottom,backgroundPosition,backgroundPosition_y,",l=function(t,e,i,r){var n={a:t},s={},a={},o={c:r},l=(t+e)/2,h=(e+i)/2,u=(i+r)/2,c=(l+h)/2,f=(h+u)/2,p=(f-c)/8;return n.b=l+(t-l)/4,s.b=c+p,n.c=s.a=(n.b+s.b)/2,s.c=a.a=(c+f)/2,a.b=f-p,o.b=u+(r-u)/4,a.c=o.a=(a.b+o.b)/2,[n,s,a,o]},h=function(t,n,s,a,o){var h,u,c,f,p,d,_,m,g,v,y,x,b,T=t.length-1,w=0,P=t[0].a;for(h=0;T>h;h++)p=t[w],u=p.a,c=p.d,f=t[w+1].d,o?(y=e[h],x=i[h],b=.25*(x+y)*n/(a?.5:r[h]||.5),d=c-(c-u)*(a?.5*n:0!==y?b/y:0),_=c+(f-c)*(a?.5*n:0!==x?b/x:0),m=c-(d+((_-d)*(3*y/(y+x)+.5)/4||0))):(d=c-.5*(c-u)*n,_=c+.5*(f-c)*n,m=c-(d+_)/2),d+=m,_+=m,p.c=g=d,p.b=0!==h?P:P=p.a+.6*(p.c-p.a),p.da=c-u,p.ca=g-u,p.ba=P-u,s?(v=l(u,P,g,c),t.splice(w,1,v[0],v[1],v[2],v[3]),w+=4):w++,P=_;p=t[w],p.b=P,p.c=P+.4*(p.d-P),p.da=p.d-p.a,p.ca=p.c-p.a,p.ba=P-p.a,s&&(v=l(p.a,P,p.c,p.d),t.splice(w,1,v[0],v[1],v[2],v[3]))},u=function(t,r,n,s){var o,l,h,u,c,f,p=[];if(s)for(t=[s].concat(t),l=t.length;--l>-1;)"string"==typeof(f=t[l][r])&&"="===f.charAt(1)&&(t[l][r]=s[r]+Number(f.charAt(0)+f.substr(2)));
if(o=t.length-2,0>o)return p[0]=new a(t[0][r],0,0,t[-1>o?0:1][r]),p;for(l=0;o>l;l++)h=t[l][r],u=t[l+1][r],p[l]=new a(h,0,0,u),n&&(c=t[l+2][r],e[l]=(e[l]||0)+(u-h)*(u-h),i[l]=(i[l]||0)+(c-u)*(c-u));return p[l]=new a(t[l][r],0,0,t[l+1][r]),p},c=function(t,s,a,l,c,f){var p,d,_,m,g,v,y,x,b={},T=[],w=f||t[0];c="string"==typeof c?","+c+",":o,null==s&&(s=1);for(d in t[0])T.push(d);if(t.length>1){for(x=t[t.length-1],y=!0,p=T.length;--p>-1;)if(d=T[p],Math.abs(w[d]-x[d])>.05){y=!1;break}y&&(t=t.concat(),f&&t.unshift(f),t.push(t[1]),f=t[t.length-3])}for(e.length=i.length=r.length=0,p=T.length;--p>-1;)d=T[p],n[d]=-1!==c.indexOf(","+d+","),b[d]=u(t,d,n[d],f);for(p=e.length;--p>-1;)e[p]=Math.sqrt(e[p]),i[p]=Math.sqrt(i[p]);if(!l){for(p=T.length;--p>-1;)if(n[d])for(_=b[T[p]],v=_.length-1,m=0;v>m;m++)g=_[m+1].da/i[m]+_[m].da/e[m],r[m]=(r[m]||0)+g*g;for(p=r.length;--p>-1;)r[p]=Math.sqrt(r[p])}for(p=T.length,m=a?4:1;--p>-1;)d=T[p],_=b[d],h(_,s,a,l,n[d]),y&&(_.splice(0,m),_.splice(_.length-m,m));return b},f=function(t,e,i){e=e||"soft";var r,n,s,o,l,h,u,c,f,p,d,_={},m="cubic"===e?3:2,g="soft"===e,v=[];if(g&&i&&(t=[i].concat(t)),null==t||m+1>t.length)throw"invalid Bezier data";for(f in t[0])v.push(f);for(h=v.length;--h>-1;){for(f=v[h],_[f]=l=[],p=0,c=t.length,u=0;c>u;u++)r=null==i?t[u][f]:"string"==typeof(d=t[u][f])&&"="===d.charAt(1)?i[f]+Number(d.charAt(0)+d.substr(2)):Number(d),g&&u>1&&c-1>u&&(l[p++]=(r+l[p-2])/2),l[p++]=r;for(c=p-m+1,p=0,u=0;c>u;u+=m)r=l[u],n=l[u+1],s=l[u+2],o=2===m?0:l[u+3],l[p++]=d=3===m?new a(r,n,s,o):new a(r,(2*n+r)/3,(2*n+s)/3,s);l.length=p}return _},p=function(t,e,i){for(var r,n,s,a,o,l,h,u,c,f,p,d=1/i,_=t.length;--_>-1;)for(f=t[_],s=f.a,a=f.d-s,o=f.c-s,l=f.b-s,r=n=0,u=1;i>=u;u++)h=d*u,c=1-h,r=n-(n=(h*h*a+3*c*(h*o+c*l))*h),p=_*i+u-1,e[p]=(e[p]||0)+r*r},d=function(t,e){e=e>>0||6;var i,r,n,s,a=[],o=[],l=0,h=0,u=e-1,c=[],f=[];for(i in t)p(t[i],a,e);for(n=a.length,r=0;n>r;r++)l+=Math.sqrt(a[r]),s=r%e,f[s]=l,s===u&&(h+=l,s=r/e>>0,c[s]=f,o[s]=h,l=0,f=[]);return{length:h,lengths:o,segments:c}},_=_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 r,n,s,a,o,l=e.values||[],h={},u=l[0],p=e.autoRotate||i.vars.orientToBezier;this._autoRotate=p?p instanceof Array?p:[["x","y","rotation",p===!0?0:Number(p)||0]]:null;for(r in u)this._props.push(r);for(s=this._props.length;--s>-1;)r=this._props[s],this._overwriteProps.push(r),n=this._func[r]="function"==typeof t[r],h[r]=n?t[r.indexOf("set")||"function"!=typeof t["get"+r.substr(3)]?r:"get"+r.substr(3)]():parseFloat(t[r]),o||h[r]!==l[0][r]&&(o=h);if(this._beziers="cubic"!==e.type&&"quadratic"!==e.type&&"soft"!==e.type?c(l,isNaN(e.curviness)?1:e.curviness,!1,"thruBasic"===e.type,e.correlate,o):f(l,e.type,h),this._segCount=this._beziers[r].length,this._timeRes){var _=d(this._beziers,this._timeRes);this._length=_.length,this._lengths=_.lengths,this._segments=_.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(p=this._autoRotate)for(this._initialRotations=[],p[0]instanceof Array||(this._autoRotate=p=[p]),s=p.length;--s>-1;){for(a=0;3>a;a++)r=p[s][a],this._func[r]="function"==typeof t[r]&&t[r.indexOf("set")||"function"!=typeof t["get"+r.substr(3)]?r:"get"+r.substr(3)];r=p[s][2],this._initialRotations[s]=this._func[r]?this._func[r].call(this._target):this._target[r]}return this._startRatio=i.vars.runBackwards?1:0,!0},set:function(e){var i,r,n,s,a,o,l,h,u,c,f=this._segCount,p=this._func,d=this._target,_=e!==this._startRatio;if(this._timeRes){if(u=this._lengths,c=this._curSeg,e*=this._length,n=this._li,e>this._l2&&f-1>n){for(h=f-1;h>n&&e>=(this._l2=u[++n]););this._l1=u[n-1],this._li=n,this._curSeg=c=this._segments[n],this._s2=c[this._s1=this._si=0]}else if(this._l1>e&&n>0){for(;n>0&&(this._l1=u[--n])>=e;);0===n&&this._l1>e?this._l1=0:n++,this._l2=u[n],this._li=n,this._curSeg=c=this._segments[n],this._s1=c[(this._si=c.length-1)-1]||0,this._s2=c[this._si]}if(i=n,e-=this._l1,n=this._si,e>this._s2&&c.length-1>n){for(h=c.length-1;h>n&&e>=(this._s2=c[++n]););this._s1=c[n-1],this._si=n}else if(this._s1>e&&n>0){for(;n>0&&(this._s1=c[--n])>=e;);0===n&&this._s1>e?this._s1=0:n++,this._s2=c[n],this._si=n}o=(n+(e-this._s1)/(this._s2-this._s1))*this._prec}else i=0>e?0:e>=1?f-1:f*e>>0,o=(e-i*(1/f))*f;for(r=1-o,n=this._props.length;--n>-1;)s=this._props[n],a=this._beziers[s][i],l=(o*o*a.da+3*r*(o*a.ca+r*a.ba))*o+a.a,this._round[s]&&(l=Math.round(l)),p[s]?d[s](l):d[s]=l;if(this._autoRotate){var m,g,v,y,x,b,T,w=this._autoRotate;for(n=w.length;--n>-1;)s=w[n][2],b=w[n][3]||0,T=w[n][4]===!0?1:t,a=this._beziers[w[n][0]],m=this._beziers[w[n][1]],a&&m&&(a=a[i],m=m[i],g=a.a+(a.b-a.a)*o,y=a.b+(a.c-a.b)*o,g+=(y-g)*o,y+=(a.c+(a.d-a.c)*o-y)*o,v=m.a+(m.b-m.a)*o,x=m.b+(m.c-m.b)*o,v+=(x-v)*o,x+=(m.c+(m.d-m.c)*o-x)*o,l=_?Math.atan2(x-v,y-g)*T+b:this._initialRotations[n],p[s]?d[s](l):d[s]=l)}}}),m=_.prototype;_.bezierThrough=c,_.cubicToQuadratic=l,_._autoCSS=!0,_.quadraticToCubic=function(t,e,i){return new a(t,(2*e+t)/3,(2*e+i)/3,i)},_._cssRegister=function(){var t=s.CSSPlugin;if(t){var e=t._internals,i=e._parseToProxy,r=e._setPluginRatio,n=e.CSSPropTween;e._registerComplexSpecialProp("bezier",{parser:function(t,e,s,a,o,l){e instanceof Array&&(e={values:e}),l=new _;var h,u,c,f=e.values,p=f.length-1,d=[],m={};if(0>p)return o;for(h=0;p>=h;h++)c=i(t,f[h],a,o,l,p!==h),d[h]=c.end;for(u in e)m[u]=e[u];return m.values=d,o=new n(t,"bezier",0,0,c.pt,2),o.data=c,o.plugin=l,o.setRatio=r,0===m.autoRotate&&(m.autoRotate=!0),!m.autoRotate||m.autoRotate instanceof Array||(h=m.autoRotate===!0?0:Number(m.autoRotate),m.autoRotate=null!=c.end.left?[["left","top","rotation",h,!1]]:null!=c.end.x&&[["x","y","rotation",h,!1]]),m.autoRotate&&(a._transform||a._enableTransforms(!1),c.autoRotate=a._target._gsTransform),l._onInitTween(c.proxy,m,a._tween),o}})}},m._roundProps=function(t,e){for(var i=this._overwriteProps,r=i.length;--r>-1;)(t[i[r]]||t.bezier||t.bezierThrough)&&(this._round[i[r]]=e)},m._kill=function(t){var e,i,r=this._props;for(e in this._beziers)if(e in t)for(delete this._beziers[e],delete this._func[e],i=r.length;--i>-1;)r[i]===e&&r.splice(i,1);return this._super._kill.call(this,t)}}(),_gsScope._gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(t,e){var i,r,n,s,a=function(){t.call(this,"css"),this._overwriteProps.length=0,this.setRatio=a.prototype.setRatio},o=_gsScope._gsDefine.globals,l={},h=a.prototype=new t("css");h.constructor=a,a.version="1.18.0",a.API=2,a.defaultTransformPerspective=0,a.defaultSkewType="compensated",a.defaultSmoothOrigin=!0,h="px",a.suffixMap={top:h,right:h,bottom:h,left:h,width:h,height:h,fontSize:h,padding:h,margin:h,perspective:h,lineHeight:""};var u,c,f,p,d,_,m=/(?:\d|\-\d|\.\d|\-\.\d)+/g,g=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,v=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,y=/(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g,x=/(?:\d|\-|\+|=|#|\.)*/g,b=/opacity *= *([^)]*)/i,T=/opacity:([^;]*)/i,w=/alpha\(opacity *=.+?\)/i,P=/^(rgb|hsl)/,S=/([A-Z])/g,C=/-([a-z])/gi,k=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,O=function(t,e){return e.toUpperCase()},A=/(?:Left|Right|Width)/i,R=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,M=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,D=/,(?=[^\)]*(?:\(|$))/gi,E=Math.PI/180,F=180/Math.PI,N={},I=document,B=function(t){return I.createElementNS?I.createElementNS("http://www.w3.org/1999/xhtml",t):I.createElement(t)},z=B("div"),L=B("img"),X=a._internals={_specialProps:l},j=navigator.userAgent,U=function(){var t=j.indexOf("Android"),e=B("a");return f=-1!==j.indexOf("Safari")&&-1===j.indexOf("Chrome")&&(-1===t||Number(j.substr(t+8,1))>3),d=f&&6>Number(j.substr(j.indexOf("Version/")+8,1)),p=-1!==j.indexOf("Firefox"),(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(j)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(j))&&(_=parseFloat(RegExp.$1)),!!e&&(e.style.cssText="top:1px;opacity:.55;",/^0.55/.test(e.style.opacity))}(),Y=function(t){return b.test("string"==typeof t?t:(t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?parseFloat(RegExp.$1)/100:1},V=function(t){window.console&&console.log(t)},q="",G="",H=function(t,e){e=e||z;var i,r,n=e.style;if(void 0!==n[t])return t;for(t=t.charAt(0).toUpperCase()+t.substr(1),i=["O","Moz","ms","Ms","Webkit"],r=5;--r>-1&&void 0===n[i[r]+t];);return r>=0?(G=3===r?"ms":i[r],q="-"+G.toLowerCase()+"-",G+t):null},$=I.defaultView?I.defaultView.getComputedStyle:function(){},Z=a.getStyle=function(t,e,i,r,n){var s;return U||"opacity"!==e?(!r&&t.style[e]?s=t.style[e]:(i=i||$(t))?s=i[e]||i.getPropertyValue(e)||i.getPropertyValue(e.replace(S,"-$1").toLowerCase()):t.currentStyle&&(s=t.currentStyle[e]),null==n||s&&"none"!==s&&"auto"!==s&&"auto auto"!==s?s:n):Y(t)},W=X.convertToPixels=function(t,i,r,n,s){if("px"===n||!n)return r;if("auto"===n||!r)return 0;var o,l,h,u=A.test(i),c=t,f=z.style,p=0>r;if(p&&(r=-r),"%"===n&&-1!==i.indexOf("border"))o=r/100*(u?t.clientWidth:t.clientHeight);else{if(f.cssText="border:0 solid red;position:"+Z(t,"position")+";line-height:0;","%"!==n&&c.appendChild&&"v"!==n.charAt(0)&&"rem"!==n)f[u?"borderLeftWidth":"borderTopWidth"]=r+n;else{if(c=t.parentNode||I.body,l=c._gsCache,h=e.ticker.frame,l&&u&&l.time===h)return l.width*r/100;f[u?"width":"height"]=r+n}c.appendChild(z),o=parseFloat(z[u?"offsetWidth":"offsetHeight"]),c.removeChild(z),u&&"%"===n&&a.cacheWidths!==!1&&(l=c._gsCache=c._gsCache||{},l.time=h,l.width=100*(o/r)),0!==o||s||(o=W(t,i,r,n,!0))}return p?-o:o},Q=X.calculateOffset=function(t,e,i){if("absolute"!==Z(t,"position",i))return 0;var r="left"===e?"Left":"Top",n=Z(t,"margin"+r,i);return t["offset"+r]-(W(t,e,parseFloat(n),n.replace(x,""))||0)},K=function(t,e){var i,r,n,s={};if(e=e||$(t,null))if(i=e.length)for(;--i>-1;)n=e[i],(-1===n.indexOf("-transform")||St===n)&&(s[n.replace(C,O)]=e.getPropertyValue(n));else for(i in e)(-1===i.indexOf("Transform")||Pt===i)&&(s[i]=e[i]);else if(e=t.currentStyle||t.style)for(i in e)"string"==typeof i&&void 0===s[i]&&(s[i.replace(C,O)]=e[i]);return U||(s.opacity=Y(t)),r=Bt(t,e,!1),s.rotation=r.rotation,s.skewX=r.skewX,s.scaleX=r.scaleX,s.scaleY=r.scaleY,s.x=r.x,s.y=r.y,kt&&(s.z=r.z,s.rotationX=r.rotationX,s.rotationY=r.rotationY,s.scaleZ=r.scaleZ),s.filters&&delete s.filters,s},J=function(t,e,i,r,n){var s,a,o,l={},h=t.style;for(a in i)"cssText"!==a&&"length"!==a&&isNaN(a)&&(e[a]!==(s=i[a])||n&&n[a])&&-1===a.indexOf("Origin")&&("number"==typeof s||"string"==typeof s)&&(l[a]="auto"!==s||"left"!==a&&"top"!==a?""!==s&&"auto"!==s&&"none"!==s||"string"!=typeof e[a]||""===e[a].replace(y,"")?s:0:Q(t,a),void 0!==h[a]&&(o=new dt(h,a,h[a],o)));if(r)for(a in r)"className"!==a&&(l[a]=r[a]);return{difs:l,firstMPT:o}},tt={width:["Left","Right"],height:["Top","Bottom"]},et=["marginLeft","marginRight","marginTop","marginBottom"],it=function(t,e,i){var r=parseFloat("width"===e?t.offsetWidth:t.offsetHeight),n=tt[e],s=n.length;for(i=i||$(t,null);--s>-1;)r-=parseFloat(Z(t,"padding"+n[s],i,!0))||0,r-=parseFloat(Z(t,"border"+n[s]+"Width",i,!0))||0;return r},rt=function(t,e){if("contain"===t||"auto"===t||"auto auto"===t)return t+" ";(null==t||""===t)&&(t="0 0");var i=t.split(" "),r=-1!==t.indexOf("left")?"0%":-1!==t.indexOf("right")?"100%":i[0],n=-1!==t.indexOf("top")?"0%":-1!==t.indexOf("bottom")?"100%":i[1];return null==n?n="center"===r?"50%":"0":"center"===n&&(n="50%"),("center"===r||isNaN(parseFloat(r))&&-1===(r+"").indexOf("="))&&(r="50%"),t=r+" "+n+(i.length>2?" "+i[2]:""),e&&(e.oxp=-1!==r.indexOf("%"),e.oyp=-1!==n.indexOf("%"),e.oxr="="===r.charAt(1),e.oyr="="===n.charAt(1),e.ox=parseFloat(r.replace(y,"")),e.oy=parseFloat(n.replace(y,"")),e.v=t),e||t},nt=function(t,e){return"string"==typeof t&&"="===t.charAt(1)?parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2)):parseFloat(t)-parseFloat(e)},st=function(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)},at=function(t,e,i,r){var n,s,a,o,l,h=1e-6;return null==t?o=e:"number"==typeof t?o=t:(n=360,s=t.split("_"),l="="===t.charAt(1),a=(l?parseInt(t.charAt(0)+"1",10)*parseFloat(s[0].substr(2)):parseFloat(s[0]))*(-1===t.indexOf("rad")?1:F)-(l?0:e),s.length&&(r&&(r[i]=e+a),-1!==t.indexOf("short")&&(a%=n,a!==a%(n/2)&&(a=0>a?a+n:a-n)),-1!==t.indexOf("_cw")&&0>a?a=(a+9999999999*n)%n-(0|a/n)*n:-1!==t.indexOf("ccw")&&a>0&&(a=(a-9999999999*n)%n-(0|a/n)*n)),o=e+a),h>o&&o>-h&&(o=0),o},ot={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]},lt=function(t,e,i){return t=0>t?t+1:t>1?t-1:t,0|255*(1>6*t?e+6*(i-e)*t:.5>t?i:2>3*t?e+6*(i-e)*(2/3-t):e)+.5},ht=a.parseColor=function(t,e){var i,r,n,s,a,o,l,h,u,c,f;if(t)if("number"==typeof t)i=[t>>16,255&t>>8,255&t];else{if(","===t.charAt(t.length-1)&&(t=t.substr(0,t.length-1)),ot[t])i=ot[t];else if("#"===t.charAt(0))4===t.length&&(r=t.charAt(1),n=t.charAt(2),s=t.charAt(3),t="#"+r+r+n+n+s+s),t=parseInt(t.substr(1),16),i=[t>>16,255&t>>8,255&t];else if("hsl"===t.substr(0,3))if(i=f=t.match(m),e){if(-1!==t.indexOf("="))return t.match(g)}else a=Number(i[0])%360/360,o=Number(i[1])/100,l=Number(i[2])/100,n=.5>=l?l*(o+1):l+o-l*o,r=2*l-n,i.length>3&&(i[3]=Number(t[3])),i[0]=lt(a+1/3,r,n),i[1]=lt(a,r,n),i[2]=lt(a-1/3,r,n);else i=t.match(m)||ot.transparent;i[0]=Number(i[0]),i[1]=Number(i[1]),i[2]=Number(i[2]),i.length>3&&(i[3]=Number(i[3]))}else i=ot.black;return e&&!f&&(r=i[0]/255,n=i[1]/255,s=i[2]/255,h=Math.max(r,n,s),u=Math.min(r,n,s),l=(h+u)/2,h===u?a=o=0:(c=h-u,o=l>.5?c/(2-h-u):c/(h+u),a=h===r?(n-s)/c+(s>n?6:0):h===n?(s-r)/c+2:(r-n)/c+4,a*=60),i[0]=0|a+.5,i[1]=0|100*o+.5,i[2]=0|100*l+.5),i},ut=function(t,e){var i,r,n,s=t.match(ct)||[],a=0,o=s.length?"":t;for(i=0;s.length>i;i++)r=s[i],n=t.substr(a,t.indexOf(r,a)-a),a+=n.length+r.length,r=ht(r,e),3===r.length&&r.push(1),o+=n+(e?"hsla("+r[0]+","+r[1]+"%,"+r[2]+"%,"+r[3]:"rgba("+r.join(","))+")";return o},ct="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#.+?\\b";for(h in ot)ct+="|"+h+"\\b";ct=RegExp(ct+")","gi"),a.colorStringFilter=function(t){var e,i=t[0]+t[1];ct.lastIndex=0,ct.test(i)&&(e=-1!==i.indexOf("hsl(")||-1!==i.indexOf("hsla("),t[0]=ut(t[0],e),t[1]=ut(t[1],e))},e.defaultStringFilter||(e.defaultStringFilter=a.colorStringFilter);var ft=function(t,e,i,r){if(null==t)return function(t){return t};var n,s=e?(t.match(ct)||[""])[0]:"",a=t.split(s).join("").match(v)||[],o=t.substr(0,t.indexOf(a[0])),l=")"===t.charAt(t.length-1)?")":"",h=-1!==t.indexOf(" ")?" ":",",u=a.length,c=u>0?a[0].replace(m,""):"";return u?n=e?function(t){var e,f,p,d;if("number"==typeof t)t+=c;else if(r&&D.test(t)){for(d=t.replace(D,"|").split("|"),p=0;d.length>p;p++)d[p]=n(d[p]);return d.join(",")}if(e=(t.match(ct)||[s])[0],f=t.split(e).join("").match(v)||[],p=f.length,u>p--)for(;u>++p;)f[p]=i?f[0|(p-1)/2]:a[p];return o+f.join(h)+h+e+l+(-1!==t.indexOf("inset")?" inset":"")}:function(t){var e,s,f;if("number"==typeof t)t+=c;else if(r&&D.test(t)){for(s=t.replace(D,"|").split("|"),f=0;s.length>f;f++)s[f]=n(s[f]);return s.join(",")}if(e=t.match(v)||[],f=e.length,u>f--)for(;u>++f;)e[f]=i?e[0|(f-1)/2]:a[f];return o+e.join(h)+l}:function(t){return t}},pt=function(t){return t=t.split(","),function(e,i,r,n,s,a,o){var l,h=(i+"").split(" ");for(o={},l=0;4>l;l++)o[t[l]]=h[l]=h[l]||h[(l-1)/2>>0];return n.parse(e,o,s,a)}},dt=(X._setPluginRatio=function(t){this.plugin.setRatio(t);for(var e,i,r,n,s=this.data,a=s.proxy,o=s.firstMPT,l=1e-6;o;)e=a[o.v],o.r?e=Math.round(e):l>e&&e>-l&&(e=0),o.t[o.p]=e,o=o._next;if(s.autoRotate&&(s.autoRotate.rotation=a.rotation),1===t)for(o=s.firstMPT;o;){if(i=o.t,i.type){if(1===i.type){for(n=i.xs0+i.s+i.xs1,r=1;i.l>r;r++)n+=i["xn"+r]+i["xs"+(r+1)];i.e=n}}else i.e=i.s+i.xs0;o=o._next}},function(t,e,i,r,n){this.t=t,this.p=e,this.v=i,this.r=n,r&&(r._prev=this,this._next=r)}),_t=(X._parseToProxy=function(t,e,i,r,n,s){var a,o,l,h,u,c=r,f={},p={},d=i._transform,_=N;for(i._transform=null,N=e,r=u=i.parse(t,e,r,n),N=_,s&&(i._transform=d,c&&(c._prev=null,c._prev&&(c._prev._next=null)));r&&r!==c;){if(1>=r.type&&(o=r.p,p[o]=r.s+r.c,f[o]=r.s,s||(h=new dt(r,"s",o,h,r.r),r.c=0),1===r.type))for(a=r.l;--a>0;)l="xn"+a,o=r.p+"_"+l,p[o]=r.data[l],f[o]=r[l],s||(h=new dt(r,l,o,h,r.rxp[l]));r=r._next}return{proxy:f,end:p,firstMPT:h,pt:u}},X.CSSPropTween=function(t,e,r,n,a,o,l,h,u,c,f){this.t=t,this.p=e,this.s=r,this.c=n,this.n=l||e,t instanceof _t||s.push(this.n),this.r=h,this.type=o||0,u&&(this.pr=u,i=!0),this.b=void 0===c?r:c,this.e=void 0===f?r+n:f,a&&(this._next=a,a._prev=this)}),mt=function(t,e,i,r,n,s){var a=new _t(t,e,i,r-i,n,(-1),s);return a.b=i,a.e=a.xs0=r,a},gt=a.parseComplex=function(t,e,i,r,n,s,a,o,l,h){i=i||s||"",a=new _t(t,e,0,0,a,h?2:1,null,(!1),o,i,r),r+="";var c,f,p,d,_,v,y,x,b,T,w,P,S,C=i.split(", ").join(",").split(" "),k=r.split(", ").join(",").split(" "),O=C.length,A=u!==!1;for((-1!==r.indexOf(",")||-1!==i.indexOf(","))&&(C=C.join(" ").replace(D,", ").split(" "),k=k.join(" ").replace(D,", ").split(" "),O=C.length),O!==k.length&&(C=(s||"").split(" "),O=C.length),a.plugin=l,a.setRatio=h,ct.lastIndex=0,c=0;O>c;c++)if(d=C[c],_=k[c],x=parseFloat(d),x||0===x)a.appendXtra("",x,nt(_,x),_.replace(g,""),A&&-1!==_.indexOf("px"),!0);else if(n&&ct.test(d))P=","===_.charAt(_.length-1)?"),":")",S=-1!==_.indexOf("hsl")&&U,d=ht(d,S),_=ht(_,S),b=d.length+_.length>6,b&&!U&&0===_[3]?(a["xs"+a.l]+=a.l?" transparent":"transparent",a.e=a.e.split(k[c]).join("transparent")):(U||(b=!1),S?a.appendXtra(b?"hsla(":"hsl(",d[0],nt(_[0],d[0]),",",!1,!0).appendXtra("",d[1],nt(_[1],d[1]),"%,",!1).appendXtra("",d[2],nt(_[2],d[2]),b?"%,":"%"+P,!1):a.appendXtra(b?"rgba(":"rgb(",d[0],_[0]-d[0],",",!0,!0).appendXtra("",d[1],_[1]-d[1],",",!0).appendXtra("",d[2],_[2]-d[2],b?",":P,!0),b&&(d=4>d.length?1:d[3],a.appendXtra("",d,(4>_.length?1:_[3])-d,P,!1))),ct.lastIndex=0;else if(v=d.match(m)){if(y=_.match(g),!y||y.length!==v.length)return a;for(p=0,f=0;v.length>f;f++)w=v[f],T=d.indexOf(w,p),a.appendXtra(d.substr(p,T-p),Number(w),nt(y[f],w),"",A&&"px"===d.substr(T+w.length,2),0===f),p=T+w.length;a["xs"+a.l]+=d.substr(p)}else a["xs"+a.l]+=a.l?" "+d:d;if(-1!==r.indexOf("=")&&a.data){for(P=a.xs0+a.data.s,c=1;a.l>c;c++)P+=a["xs"+c]+a.data["xn"+c];a.e=P+a["xs"+c]}return a.l||(a.type=-1,a.xs0=a.e),a.xfirst||a},vt=9;for(h=_t.prototype,h.l=h.pr=0;--vt>0;)h["xn"+vt]=0,h["xs"+vt]="";h.xs0="",h._next=h._prev=h.xfirst=h.data=h.plugin=h.setRatio=h.rxp=null,h.appendXtra=function(t,e,i,r,n,s){var a=this,o=a.l;return a["xs"+o]+=s&&o?" "+t:t||"",i||0===o||a.plugin?(a.l++,a.type=a.setRatio?2:1,a["xs"+a.l]=r||"",o>0?(a.data["xn"+o]=e+i,a.rxp["xn"+o]=n,a["xn"+o]=e,a.plugin||(a.xfirst=new _t(a,"xn"+o,e,i,a.xfirst||a,0,a.n,n,a.pr),a.xfirst.xs0=0),a):(a.data={s:e+i},a.rxp={},a.s=e,a.c=i,a.r=n,a)):(a["xs"+o]+=e+(r||""),a)};var yt=function(t,e){e=e||{},this.p=e.prefix?H(t)||t:t,l[t]=l[this.p]=this,this.format=e.formatter||ft(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},xt=X._registerComplexSpecialProp=function(t,e,i){"object"!=typeof e&&(e={parser:i});var r,n,s=t.split(","),a=e.defaultValue;for(i=i||[a],r=0;s.length>r;r++)e.prefix=0===r&&e.prefix,e.defaultValue=i[r]||a,n=new yt(s[r],e)},bt=function(t){if(!l[t]){var e=t.charAt(0).toUpperCase()+t.substr(1)+"Plugin";xt(t,{parser:function(t,i,r,n,s,a,h){var u=o.com.greensock.plugins[e];return u?(u._cssRegister(),l[r].parse(t,i,r,n,s,a,h)):(V("Error: "+e+" js file not loaded."),s)}})}};h=yt.prototype,h.parseComplex=function(t,e,i,r,n,s){var a,o,l,h,u,c,f=this.keyword;if(this.multi&&(D.test(i)||D.test(e)?(o=e.replace(D,"|").split("|"),l=i.replace(D,"|").split("|")):f&&(o=[e],l=[i])),l){for(h=l.length>o.length?l.length:o.length,a=0;h>a;a++)e=o[a]=o[a]||this.dflt,i=l[a]=l[a]||this.dflt,f&&(u=e.indexOf(f),c=i.indexOf(f),u!==c&&(-1===c?o[a]=o[a].split(f).join(""):-1===u&&(o[a]+=" "+f)));e=o.join(", "),i=l.join(", ")}return gt(t,this.p,e,i,this.clrs,this.dflt,r,this.pr,n,s)},h.parse=function(t,e,i,r,s,a){return this.parseComplex(t.style,this.format(Z(t,this.p,n,!1,this.dflt)),this.format(e),s,a)},a.registerSpecialProp=function(t,e,i){xt(t,{parser:function(t,r,n,s,a,o){var l=new _t(t,n,0,0,a,2,n,(!1),i);return l.plugin=o,l.setRatio=e(t,r,s._tween,n),l},priority:i})},a.useSVGTransformAttr=f||p;var Tt,wt="scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent".split(","),Pt=H("transform"),St=q+"transform",Ct=H("transformOrigin"),kt=null!==H("perspective"),Ot=X.Transform=function(){this.perspective=parseFloat(a.defaultTransformPerspective)||0,this.force3D=!(a.defaultForce3D===!1||!kt)&&(a.defaultForce3D||"auto")},At=window.SVGElement,Rt=function(t,e,i){var r,n=I.createElementNS("http://www.w3.org/2000/svg",t),s=/([a-z])([A-Z])/g;for(r in i)n.setAttributeNS(null,r.replace(s,"$1-$2").toLowerCase(),i[r]);return e.appendChild(n),n},Mt=I.documentElement,Dt=function(){var t,e,i,r=_||/Android/i.test(j)&&!window.chrome;return I.createElementNS&&!r&&(t=Rt("svg",Mt),e=Rt("rect",t,{width:100,height:50,x:100}),i=e.getBoundingClientRect().width,e.style[Ct]="50% 50%",e.style[Pt]="scaleX(0.5)",r=i===e.getBoundingClientRect().width&&!(p&&kt),Mt.removeChild(t)),r}(),Et=function(t,e,i,r,n){var s,o,l,h,u,c,f,p,d,_,m,g,v,y,x=t._gsTransform,b=It(t,!0);x&&(v=x.xOrigin,y=x.yOrigin),(!r||2>(s=r.split(" ")).length)&&(f=t.getBBox(),e=rt(e).split(" "),s=[(-1!==e[0].indexOf("%")?parseFloat(e[0])/100*f.width:parseFloat(e[0]))+f.x,(-1!==e[1].indexOf("%")?parseFloat(e[1])/100*f.height:parseFloat(e[1]))+f.y]),i.xOrigin=h=parseFloat(s[0]),i.yOrigin=u=parseFloat(s[1]),r&&b!==Nt&&(c=b[0],f=b[1],p=b[2],d=b[3],_=b[4],m=b[5],g=c*d-f*p,o=h*(d/g)+u*(-p/g)+(p*m-d*_)/g,l=h*(-f/g)+u*(c/g)-(c*m-f*_)/g,h=i.xOrigin=s[0]=o,u=i.yOrigin=s[1]=l),x&&(n||n!==!1&&a.defaultSmoothOrigin!==!1?(o=h-v,l=u-y,x.xOffset+=o*b[0]+l*b[2]-o,x.yOffset+=o*b[1]+l*b[3]-l):x.xOffset=x.yOffset=0),t.setAttribute("data-svg-origin",s.join(" "))},Ft=function(t){return!!(At&&"function"==typeof t.getBBox&&t.getCTM&&(!t.parentNode||t.parentNode.getBBox&&t.parentNode.getCTM))},Nt=[1,0,0,1,0,0],It=function(t,e){var i,r,n,s,a,o=t._gsTransform||new Ot,l=1e5;if(Pt?r=Z(t,St,null,!0):t.currentStyle&&(r=t.currentStyle.filter.match(R),r=r&&4===r.length?[r[0].substr(4),Number(r[2].substr(4)),Number(r[1].substr(4)),r[3].substr(4),o.x||0,o.y||0].join(","):""),i=!r||"none"===r||"matrix(1, 0, 0, 1, 0, 0)"===r,(o.svg||t.getBBox&&Ft(t))&&(i&&-1!==(t.style[Pt]+"").indexOf("matrix")&&(r=t.style[Pt],i=0),n=t.getAttribute("transform"),i&&n&&(-1!==n.indexOf("matrix")?(r=n,i=0):-1!==n.indexOf("translate")&&(r="matrix(1,0,0,1,"+n.match(/(?:\-|\b)[\d\-\.e]+\b/gi).join(",")+")",i=0))),i)return Nt;for(n=(r||"").match(/(?:\-|\b)[\d\-\.e]+\b/gi)||[],vt=n.length;--vt>-1;)s=Number(n[vt]),n[vt]=(a=s-(s|=0))?(0|a*l+(0>a?-.5:.5))/l+s:s;return e&&n.length>6?[n[0],n[1],n[4],n[5],n[12],n[13]]:n},Bt=X.getTransform=function(t,i,r,s){if(t._gsTransform&&r&&!s)return t._gsTransform;var o,l,h,u,c,f,p=r?t._gsTransform||new Ot:new Ot,d=0>p.scaleX,_=2e-5,m=1e5,g=kt?parseFloat(Z(t,Ct,i,!1,"0 0 0").split(" ")[2])||p.zOrigin||0:0,v=parseFloat(a.defaultTransformPerspective)||0;if(p.svg=!(!t.getBBox||!Ft(t)),p.svg&&(Et(t,Z(t,Ct,n,!1,"50% 50%")+"",p,t.getAttribute("data-svg-origin")),Tt=a.useSVGTransformAttr||Dt),o=It(t),o!==Nt){if(16===o.length){var y,x,b,T,w,P=o[0],S=o[1],C=o[2],k=o[3],O=o[4],A=o[5],R=o[6],M=o[7],D=o[8],E=o[9],N=o[10],I=o[12],B=o[13],z=o[14],L=o[11],X=Math.atan2(R,N);p.zOrigin&&(z=-p.zOrigin,I=D*z-o[12],B=E*z-o[13],z=N*z+p.zOrigin-o[14]),p.rotationX=X*F,X&&(T=Math.cos(-X),w=Math.sin(-X),y=O*T+D*w,x=A*T+E*w,b=R*T+N*w,D=O*-w+D*T,E=A*-w+E*T,N=R*-w+N*T,L=M*-w+L*T,O=y,A=x,R=b),X=Math.atan2(D,N),p.rotationY=X*F,X&&(T=Math.cos(-X),w=Math.sin(-X),y=P*T-D*w,x=S*T-E*w,b=C*T-N*w,E=S*w+E*T,N=C*w+N*T,L=k*w+L*T,P=y,S=x,C=b),X=Math.atan2(S,P),p.rotation=X*F,X&&(T=Math.cos(-X),w=Math.sin(-X),P=P*T+O*w,x=S*T+A*w,A=S*-w+A*T,R=C*-w+R*T,S=x),p.rotationX&&Math.abs(p.rotationX)+Math.abs(p.rotation)>359.9&&(p.rotationX=p.rotation=0,p.rotationY+=180),p.scaleX=(0|Math.sqrt(P*P+S*S)*m+.5)/m,p.scaleY=(0|Math.sqrt(A*A+E*E)*m+.5)/m,p.scaleZ=(0|Math.sqrt(R*R+N*N)*m+.5)/m,p.skewX=0,p.perspective=L?1/(0>L?-L:L):0,p.x=I,p.y=B,p.z=z,p.svg&&(p.x-=p.xOrigin-(p.xOrigin*P-p.yOrigin*O),p.y-=p.yOrigin-(p.yOrigin*S-p.xOrigin*A))}else if(!(kt&&!s&&o.length&&p.x===o[4]&&p.y===o[5]&&(p.rotationX||p.rotationY)||void 0!==p.x&&"none"===Z(t,"display",i))){var j=o.length>=6,U=j?o[0]:1,Y=o[1]||0,V=o[2]||0,q=j?o[3]:1;p.x=o[4]||0,p.y=o[5]||0,h=Math.sqrt(U*U+Y*Y),u=Math.sqrt(q*q+V*V),c=U||Y?Math.atan2(Y,U)*F:p.rotation||0,f=V||q?Math.atan2(V,q)*F+c:p.skewX||0,Math.abs(f)>90&&270>Math.abs(f)&&(d?(h*=-1,f+=0>=c?180:-180,c+=0>=c?180:-180):(u*=-1,f+=0>=f?180:-180)),p.scaleX=h,p.scaleY=u,p.rotation=c,p.skewX=f,kt&&(p.rotationX=p.rotationY=p.z=0,p.perspective=v,p.scaleZ=1),p.svg&&(p.x-=p.xOrigin-(p.xOrigin*U+p.yOrigin*V),p.y-=p.yOrigin-(p.xOrigin*Y+p.yOrigin*q))}p.zOrigin=g;for(l in p)_>p[l]&&p[l]>-_&&(p[l]=0)}return r&&(t._gsTransform=p,p.svg&&(Tt&&t.style[Pt]?e.delayedCall(.001,function(){jt(t.style,Pt)}):!Tt&&t.getAttribute("transform")&&e.delayedCall(.001,function(){t.removeAttribute("transform")}))),p},zt=function(t){var e,i,r=this.data,n=-r.rotation*E,s=n+r.skewX*E,a=1e5,o=(0|Math.cos(n)*r.scaleX*a)/a,l=(0|Math.sin(n)*r.scaleX*a)/a,h=(0|Math.sin(s)*-r.scaleY*a)/a,u=(0|Math.cos(s)*r.scaleY*a)/a,c=this.t.style,f=this.t.currentStyle;if(f){i=l,l=-h,h=-i,e=f.filter,c.filter="";var p,d,m=this.t.offsetWidth,g=this.t.offsetHeight,v="absolute"!==f.position,y="progid:DXImageTransform.Microsoft.Matrix(M11="+o+", M12="+l+", M21="+h+", M22="+u,T=r.x+m*r.xPercent/100,w=r.y+g*r.yPercent/100;if(null!=r.ox&&(p=(r.oxp?.01*m*r.ox:r.ox)-m/2,d=(r.oyp?.01*g*r.oy:r.oy)-g/2,T+=p-(p*o+d*l),w+=d-(p*h+d*u)),v?(p=m/2,d=g/2,y+=", Dx="+(p-(p*o+d*l)+T)+", Dy="+(d-(p*h+d*u)+w)+")"):y+=", sizingMethod='auto expand')",c.filter=-1!==e.indexOf("DXImageTransform.Microsoft.Matrix(")?e.replace(M,y):y+" "+e,(0===t||1===t)&&1===o&&0===l&&0===h&&1===u&&(v&&-1===y.indexOf("Dx=0, Dy=0")||b.test(e)&&100!==parseFloat(RegExp.$1)||-1===e.indexOf(e.indexOf("Alpha"))&&c.removeAttribute("filter")),!v){var P,S,C,k=8>_?1:-1;for(p=r.ieOffsetX||0,d=r.ieOffsetY||0,r.ieOffsetX=Math.round((m-((0>o?-o:o)*m+(0>l?-l:l)*g))/2+T),r.ieOffsetY=Math.round((g-((0>u?-u:u)*g+(0>h?-h:h)*m))/2+w),vt=0;4>vt;vt++)S=et[vt],P=f[S],i=-1!==P.indexOf("px")?parseFloat(P):W(this.t,S,parseFloat(P),P.replace(x,""))||0,C=i!==r[S]?2>vt?-r.ieOffsetX:-r.ieOffsetY:2>vt?p-r.ieOffsetX:d-r.ieOffsetY,c[S]=(r[S]=Math.round(i-C*(0===vt||2===vt?1:k)))+"px"}}},Lt=X.set3DTransformRatio=X.setTransformRatio=function(t){var e,i,r,n,s,a,o,l,h,u,c,f,d,_,m,g,v,y,x,b,T,w,P,S=this.data,C=this.t.style,k=S.rotation,O=S.rotationX,A=S.rotationY,R=S.scaleX,M=S.scaleY,D=S.scaleZ,F=S.x,N=S.y,I=S.z,B=S.svg,z=S.perspective,L=S.force3D;if(!((1!==t&&0!==t||"auto"!==L||this.tween._totalTime!==this.tween._totalDuration&&this.tween._totalTime)&&L||I||z||A||O)||Tt&&B||!kt)return void(k||S.skewX||B?(k*=E,w=S.skewX*E,P=1e5,e=Math.cos(k)*R,n=Math.sin(k)*R,i=Math.sin(k-w)*-M,s=Math.cos(k-w)*M,w&&"simple"===S.skewType&&(v=Math.tan(w),v=Math.sqrt(1+v*v),i*=v,s*=v,S.skewY&&(e*=v,n*=v)),B&&(F+=S.xOrigin-(S.xOrigin*e+S.yOrigin*i)+S.xOffset,N+=S.yOrigin-(S.xOrigin*n+S.yOrigin*s)+S.yOffset,Tt&&(S.xPercent||S.yPercent)&&(_=this.t.getBBox(),F+=.01*S.xPercent*_.width,N+=.01*S.yPercent*_.height),_=1e-6,_>F&&F>-_&&(F=0),_>N&&N>-_&&(N=0)),x=(0|e*P)/P+","+(0|n*P)/P+","+(0|i*P)/P+","+(0|s*P)/P+","+F+","+N+")",B&&Tt?this.t.setAttribute("transform","matrix("+x):C[Pt]=(S.xPercent||S.yPercent?"translate("+S.xPercent+"%,"+S.yPercent+"%) matrix(":"matrix(")+x):C[Pt]=(S.xPercent||S.yPercent?"translate("+S.xPercent+"%,"+S.yPercent+"%) matrix(":"matrix(")+R+",0,0,"+M+","+F+","+N+")");if(p&&(_=1e-4,_>R&&R>-_&&(R=D=2e-5),_>M&&M>-_&&(M=D=2e-5),!z||S.z||S.rotationX||S.rotationY||(z=0)),k||S.skewX)k*=E,m=e=Math.cos(k),g=n=Math.sin(k),S.skewX&&(k-=S.skewX*E,m=Math.cos(k),g=Math.sin(k),"simple"===S.skewType&&(v=Math.tan(S.skewX*E),v=Math.sqrt(1+v*v),m*=v,g*=v,S.skewY&&(e*=v,n*=v))),i=-g,s=m;else{if(!(A||O||1!==D||z||B))return void(C[Pt]=(S.xPercent||S.yPercent?"translate("+S.xPercent+"%,"+S.yPercent+"%) translate3d(":"translate3d(")+F+"px,"+N+"px,"+I+"px)"+(1!==R||1!==M?" scale("+R+","+M+")":""));e=s=1,i=n=0}h=1,r=a=o=l=u=c=0,f=z?-1/z:0,d=S.zOrigin,_=1e-6,b=",",T="0",k=A*E,k&&(m=Math.cos(k),g=Math.sin(k),o=-g,u=f*-g,r=e*g,a=n*g,h=m,f*=m,e*=m,n*=m),k=O*E,k&&(m=Math.cos(k),g=Math.sin(k),v=i*m+r*g,y=s*m+a*g,l=h*g,c=f*g,r=i*-g+r*m,a=s*-g+a*m,h*=m,f*=m,i=v,s=y),1!==D&&(r*=D,a*=D,h*=D,f*=D),1!==M&&(i*=M,s*=M,l*=M,c*=M),1!==R&&(e*=R,n*=R,o*=R,u*=R),(d||B)&&(d&&(F+=r*-d,N+=a*-d,I+=h*-d+d),B&&(F+=S.xOrigin-(S.xOrigin*e+S.yOrigin*i)+S.xOffset,N+=S.yOrigin-(S.xOrigin*n+S.yOrigin*s)+S.yOffset),_>F&&F>-_&&(F=T),_>N&&N>-_&&(N=T),_>I&&I>-_&&(I=0)),x=S.xPercent||S.yPercent?"translate("+S.xPercent+"%,"+S.yPercent+"%) matrix3d(":"matrix3d(",x+=(_>e&&e>-_?T:e)+b+(_>n&&n>-_?T:n)+b+(_>o&&o>-_?T:o),x+=b+(_>u&&u>-_?T:u)+b+(_>i&&i>-_?T:i)+b+(_>s&&s>-_?T:s),O||A?(x+=b+(_>l&&l>-_?T:l)+b+(_>c&&c>-_?T:c)+b+(_>r&&r>-_?T:r),x+=b+(_>a&&a>-_?T:a)+b+(_>h&&h>-_?T:h)+b+(_>f&&f>-_?T:f)+b):x+=",0,0,0,0,1,0,",x+=F+b+N+b+I+b+(z?1+-I/z:1)+")",C[Pt]=x};h=Ot.prototype,h.x=h.y=h.z=h.skewX=h.skewY=h.rotation=h.rotationX=h.rotationY=h.zOrigin=h.xPercent=h.yPercent=h.xOffset=h.yOffset=0,h.scaleX=h.scaleY=h.scaleZ=1,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,smoothOrigin",{parser:function(t,e,i,r,s,o,l){if(r._lastParsedTransform===l)return s;r._lastParsedTransform=l;var h,u,c,f,p,d,_,m,g,v,y=t._gsTransform,x=t.style,b=1e-6,T=wt.length,w=l,P={},S="transformOrigin";if(l.display?(f=Z(t,"display"),x.display="block",h=Bt(t,n,!0,l.parseTransform),x.display=f):h=Bt(t,n,!0,l.parseTransform),r._transform=h,"string"==typeof w.transform&&Pt)f=z.style,f[Pt]=w.transform,f.display="block",f.position="absolute",I.body.appendChild(z),u=Bt(z,null,!1),I.body.removeChild(z),u.perspective||(u.perspective=h.perspective),null!=w.xPercent&&(u.xPercent=st(w.xPercent,h.xPercent)),null!=w.yPercent&&(u.yPercent=st(w.yPercent,h.yPercent));else if("object"==typeof w){if(u={scaleX:st(null!=w.scaleX?w.scaleX:w.scale,h.scaleX),scaleY:st(null!=w.scaleY?w.scaleY:w.scale,h.scaleY),scaleZ:st(w.scaleZ,h.scaleZ),x:st(w.x,h.x),y:st(w.y,h.y),z:st(w.z,h.z),xPercent:st(w.xPercent,h.xPercent),yPercent:st(w.yPercent,h.yPercent),perspective:st(w.transformPerspective,h.perspective)},m=w.directionalRotation,null!=m)if("object"==typeof m)for(f in m)w[f]=m[f];else w.rotation=m;"string"==typeof w.x&&-1!==w.x.indexOf("%")&&(u.x=0,u.xPercent=st(w.x,h.xPercent)),"string"==typeof w.y&&-1!==w.y.indexOf("%")&&(u.y=0,u.yPercent=st(w.y,h.yPercent)),u.rotation=at("rotation"in w?w.rotation:"shortRotation"in w?w.shortRotation+"_short":"rotationZ"in w?w.rotationZ:h.rotation,h.rotation,"rotation",P),kt&&(u.rotationX=at("rotationX"in w?w.rotationX:"shortRotationX"in w?w.shortRotationX+"_short":h.rotationX||0,h.rotationX,"rotationX",P),u.rotationY=at("rotationY"in w?w.rotationY:"shortRotationY"in w?w.shortRotationY+"_short":h.rotationY||0,h.rotationY,"rotationY",P)),u.skewX=null==w.skewX?h.skewX:at(w.skewX,h.skewX),u.skewY=null==w.skewY?h.skewY:at(w.skewY,h.skewY),(c=u.skewY-h.skewY)&&(u.skewX+=c,u.rotation+=c)}for(kt&&null!=w.force3D&&(h.force3D=w.force3D,_=!0),h.skewType=w.skewType||h.skewType||a.defaultSkewType,
d=h.force3D||h.z||h.rotationX||h.rotationY||u.z||u.rotationX||u.rotationY||u.perspective,d||null==w.scale||(u.scaleZ=1);--T>-1;)i=wt[T],p=u[i]-h[i],(p>b||-b>p||null!=w[i]||null!=N[i])&&(_=!0,s=new _t(h,i,h[i],p,s),i in P&&(s.e=P[i]),s.xs0=0,s.plugin=o,r._overwriteProps.push(s.n));return p=w.transformOrigin,h.svg&&(p||w.svgOrigin)&&(g=h.xOffset,v=h.yOffset,Et(t,rt(p),u,w.svgOrigin,w.smoothOrigin),s=mt(h,"xOrigin",(y?h:u).xOrigin,u.xOrigin,s,S),s=mt(h,"yOrigin",(y?h:u).yOrigin,u.yOrigin,s,S),(g!==h.xOffset||v!==h.yOffset)&&(s=mt(h,"xOffset",y?g:h.xOffset,h.xOffset,s,S),s=mt(h,"yOffset",y?v:h.yOffset,h.yOffset,s,S)),p=Tt?null:"0px 0px"),(p||kt&&d&&h.zOrigin)&&(Pt?(_=!0,i=Ct,p=(p||Z(t,i,n,!1,"50% 50%"))+"",s=new _t(x,i,0,0,s,(-1),S),s.b=x[i],s.plugin=o,kt?(f=h.zOrigin,p=p.split(" "),h.zOrigin=(p.length>2&&(0===f||"0px"!==p[2])?parseFloat(p[2]):f)||0,s.xs0=s.e=p[0]+" "+(p[1]||"50%")+" 0px",s=new _t(h,"zOrigin",0,0,s,(-1),s.n),s.b=f,s.xs0=s.e=h.zOrigin):s.xs0=s.e=p):rt(p+"",h)),_&&(r._transformType=h.svg&&Tt||!d&&3!==this._transformType?2:3),s},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,a){e=this.format(e);var o,l,h,u,c,f,p,d,_,m,g,v,y,x,b,T,w=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],P=t.style;for(_=parseFloat(t.offsetWidth),m=parseFloat(t.offsetHeight),o=e.split(" "),l=0;w.length>l;l++)this.p.indexOf("border")&&(w[l]=H(w[l])),c=u=Z(t,w[l],n,!1,"0px"),-1!==c.indexOf(" ")&&(u=c.split(" "),c=u[0],u=u[1]),f=h=o[l],p=parseFloat(c),v=c.substr((p+"").length),y="="===f.charAt(1),y?(d=parseInt(f.charAt(0)+"1",10),f=f.substr(2),d*=parseFloat(f),g=f.substr((d+"").length-(0>d?1:0))||""):(d=parseFloat(f),g=f.substr((d+"").length)),""===g&&(g=r[i]||v),g!==v&&(x=W(t,"borderLeft",p,v),b=W(t,"borderTop",p,v),"%"===g?(c=100*(x/_)+"%",u=100*(b/m)+"%"):"em"===g?(T=W(t,"borderLeft",1,"em"),c=x/T+"em",u=b/T+"em"):(c=x+"px",u=b+"px"),y&&(f=parseFloat(c)+d+g,h=parseFloat(u)+d+g)),a=gt(P,w[l],c+" "+u,f+" "+h,!1,"0px",a);return a},prefix:!0,formatter:ft("0px 0px 0px 0px",!1,!0)}),xt("backgroundPosition",{defaultValue:"0 0",parser:function(t,e,i,r,s,a){var o,l,h,u,c,f,p="background-position",d=n||$(t,null),m=this.format((d?_?d.getPropertyValue(p+"-x")+" "+d.getPropertyValue(p+"-y"):d.getPropertyValue(p):t.currentStyle.backgroundPositionX+" "+t.currentStyle.backgroundPositionY)||"0 0"),g=this.format(e);if(-1!==m.indexOf("%")!=(-1!==g.indexOf("%"))&&(f=Z(t,"backgroundImage").replace(k,""),f&&"none"!==f)){for(o=m.split(" "),l=g.split(" "),L.setAttribute("src",f),h=2;--h>-1;)m=o[h],u=-1!==m.indexOf("%"),u!==(-1!==l[h].indexOf("%"))&&(c=0===h?t.offsetWidth-L.width:t.offsetHeight-L.height,o[h]=u?parseFloat(m)/100*c+"px":100*(parseFloat(m)/c)+"%");m=o.join(" ")}return this.parseComplex(t.style,m,g,s,a)},formatter:rt}),xt("backgroundSize",{defaultValue:"0 0",formatter:rt}),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:pt("marginTop,marginRight,marginBottom,marginLeft")}),xt("padding",{parser:pt("paddingTop,paddingRight,paddingBottom,paddingLeft")}),xt("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(t,e,i,r,s,a){var o,l,h;return 9>_?(l=t.currentStyle,h=8>_?" ":",",o="rect("+l.clipTop+h+l.clipRight+h+l.clipBottom+h+l.clipLeft+")",e=this.format(e).split(",").join(h)):(o=this.format(Z(t,this.p,n,!1,this.dflt)),e=this.format(e)),this.parseComplex(t.style,o,e,s,a)}}),xt("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),xt("autoRound,strictUnits",{parser:function(t,e,i,r,n){return n}}),xt("border",{defaultValue:"0px solid #000",parser:function(t,e,i,r,s,a){return this.parseComplex(t.style,this.format(Z(t,"borderTopWidth",n,!1,"0px")+" "+Z(t,"borderTopStyle",n,!1,"solid")+" "+Z(t,"borderTopColor",n,!1,"#000")),this.format(e),s,a)},color:!0,formatter:function(t){var e=t.split(" ");return e[0]+" "+(e[1]||"solid")+" "+(t.match(ct)||["#000"])[0]}}),xt("borderWidth",{parser:pt("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),xt("float,cssFloat,styleFloat",{parser:function(t,e,i,r,n){var s=t.style,a="cssFloat"in s?"cssFloat":"styleFloat";return new _t(s,a,0,0,n,(-1),i,(!1),0,s[a],e)}});var Xt=function(t){var e,i=this.t,r=i.filter||Z(this.data,"filter")||"",n=0|this.s+this.c*t;100===n&&(-1===r.indexOf("atrix(")&&-1===r.indexOf("radient(")&&-1===r.indexOf("oader(")?(i.removeAttribute("filter"),e=!Z(this.data,"filter")):(i.filter=r.replace(w,""),e=!0)),e||(this.xn1&&(i.filter=r=r||"alpha(opacity="+n+")"),-1===r.indexOf("pacity")?0===n&&this.xn1||(i.filter=r+" alpha(opacity="+n+")"):i.filter=r.replace(b,"opacity="+n))};xt("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(t,e,i,r,s,a){var o=parseFloat(Z(t,"opacity",n,!1,"1")),l=t.style,h="autoAlpha"===i;return"string"==typeof e&&"="===e.charAt(1)&&(e=("-"===e.charAt(0)?-1:1)*parseFloat(e.substr(2))+o),h&&1===o&&"hidden"===Z(t,"visibility",n)&&0!==e&&(o=0),U?s=new _t(l,"opacity",o,e-o,s):(s=new _t(l,"opacity",100*o,100*(e-o),s),s.xn1=h?1:0,l.zoom=1,s.type=2,s.b="alpha(opacity="+s.s+")",s.e="alpha(opacity="+(s.s+s.c)+")",s.data=t,s.plugin=a,s.setRatio=Xt),h&&(s=new _t(l,"visibility",0,0,s,(-1),null,(!1),0,0!==o?"inherit":"hidden",0===e?"hidden":"inherit"),s.xs0="inherit",r._overwriteProps.push(s.n),r._overwriteProps.push(i)),s}});var jt=function(t,e){e&&(t.removeProperty?(("ms"===e.substr(0,2)||"webkit"===e.substr(0,6))&&(e="-"+e),t.removeProperty(e.replace(S,"-$1").toLowerCase())):t.removeAttribute(e))},Ut=function(t){if(this.t._gsClassPT=this,1===t||0===t){this.t.setAttribute("class",0===t?this.b:this.e);for(var e=this.data,i=this.t.style;e;)e.v?i[e.p]=e.v: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)};xt("className",{parser:function(t,e,r,s,a,o,l){var h,u,c,f,p,d=t.getAttribute("class")||"",_=t.style.cssText;if(a=s._classNamePT=new _t(t,r,0,0,a,2),a.setRatio=Ut,a.pr=-11,i=!0,a.b=d,u=K(t,n),c=t._gsClassPT){for(f={},p=c.data;p;)f[p.p]=1,p=p._next;c.setRatio(1)}return t._gsClassPT=a,a.e="="!==e.charAt(1)?e:d.replace(RegExp("\\s*\\b"+e.substr(2)+"\\b"),"")+("+"===e.charAt(0)?" "+e.substr(2):""),t.setAttribute("class",a.e),h=J(t,u,K(t),l,f),t.setAttribute("class",d),a.data=h.firstMPT,t.style.cssText=_,a=a.xfirst=s.parse(t,h.difs,a,o)}});var Yt=function(t){if((1===t||0===t)&&this.data._totalTime===this.data._totalDuration&&"isFromStart"!==this.data.data){var e,i,r,n,s,a=this.t.style,o=l.transform.parse;if("all"===this.e)a.cssText="",n=!0;else for(e=this.e.split(" ").join("").split(","),r=e.length;--r>-1;)i=e[r],l[i]&&(l[i].parse===o?n=!0:i="transformOrigin"===i?Ct:l[i].p),jt(a,i);n&&(jt(a,Pt),s=this.t._gsTransform,s&&(s.svg&&this.t.removeAttribute("data-svg-origin"),delete this.t._gsTransform))}};for(xt("clearProps",{parser:function(t,e,r,n,s){return s=new _t(t,r,0,0,s,2),s.setRatio=Yt,s.e=e,s.pr=-10,s.data=n._tween,i=!0,s}}),h="bezier,throwProps,physicsProps,physics2D".split(","),vt=h.length;vt--;)bt(h[vt]);h=a.prototype,h._firstPT=h._lastParsedTransform=h._transform=null,h._onInitTween=function(t,e,o){if(!t.nodeType)return!1;this._target=t,this._tween=o,this._vars=e,u=e.autoRound,i=!1,r=e.suffixMap||a.suffixMap,n=$(t,""),s=this._overwriteProps;var h,p,_,m,g,v,y,x,b,w=t.style;if(c&&""===w.zIndex&&(h=Z(t,"zIndex",n),("auto"===h||""===h)&&this._addLazySet(w,"zIndex",0)),"string"==typeof e&&(m=w.cssText,h=K(t,n),w.cssText=m+";"+e,h=J(t,h,K(t)).difs,!U&&T.test(e)&&(h.opacity=parseFloat(RegExp.$1)),e=h,w.cssText=m),this._firstPT=p=e.className?l.className.parse(t,e.className,"className",this,null,null,e):this.parse(t,e,null),this._transformType){for(b=3===this._transformType,Pt?f&&(c=!0,""===w.zIndex&&(y=Z(t,"zIndex",n),("auto"===y||""===y)&&this._addLazySet(w,"zIndex",0)),d&&this._addLazySet(w,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(b?"visible":"hidden"))):w.zoom=1,_=p;_&&_._next;)_=_._next;x=new _t(t,"transform",0,0,null,2),this._linkCSSP(x,null,_),x.setRatio=Pt?Lt:zt,x.data=this._transform||Bt(t,n,!0),x.tween=o,x.pr=-1,s.pop()}if(i){for(;p;){for(v=p._next,_=m;_&&_.pr>p.pr;)_=_._next;(p._prev=_?_._prev:g)?p._prev._next=p:m=p,(p._next=_)?_._prev=p:g=p,p=v}this._firstPT=m}return!0},h.parse=function(t,e,i,s){var a,o,h,c,f,p,d,_,m,g,v=t.style;for(a in e)p=e[a],o=l[a],o?i=o.parse(t,p,a,this,i,s,e):(f=Z(t,a,n)+"",m="string"==typeof p,"color"===a||"fill"===a||"stroke"===a||-1!==a.indexOf("Color")||m&&P.test(p)?(m||(p=ht(p),p=(p.length>3?"rgba(":"rgb(")+p.join(",")+")"),i=gt(v,a,f,p,!0,"transparent",i,0,s)):!m||-1===p.indexOf(" ")&&-1===p.indexOf(",")?(h=parseFloat(f),d=h||0===h?f.substr((h+"").length):"",(""===f||"auto"===f)&&("width"===a||"height"===a?(h=it(t,a,n),d="px"):"left"===a||"top"===a?(h=Q(t,a,n),d="px"):(h="opacity"!==a?0:1,d="")),g=m&&"="===p.charAt(1),g?(c=parseInt(p.charAt(0)+"1",10),p=p.substr(2),c*=parseFloat(p),_=p.replace(x,"")):(c=parseFloat(p),_=m?p.replace(x,""):""),""===_&&(_=a in r?r[a]:d),p=c||0===c?(g?c+h:c)+_:e[a],d!==_&&""!==_&&(c||0===c)&&h&&(h=W(t,a,h,d),"%"===_?(h/=W(t,a,100,"%")/100,e.strictUnits!==!0&&(f=h+"%")):"em"===_||"rem"===_?h/=W(t,a,1,_):"px"!==_&&(c=W(t,a,c,_),_="px"),g&&(c||0===c)&&(p=c+h+_)),g&&(c+=h),!h&&0!==h||!c&&0!==c?void 0!==v[a]&&(p||"NaN"!=p+""&&null!=p)?(i=new _t(v,a,c||h||0,0,i,(-1),a,(!1),0,f,p),i.xs0="none"!==p||"display"!==a&&-1===a.indexOf("Style")?p:f):V("invalid "+a+" tween value: "+e[a]):(i=new _t(v,a,h,c-h,i,0,a,u!==!1&&("px"===_||"zIndex"===a),0,f,p),i.xs0=_)):i=gt(v,a,f,p,!0,null,i,0,s)),s&&i&&!i.plugin&&(i.plugin=s);return i},h.setRatio=function(t){var e,i,r,n=this._firstPT,s=1e-6;if(1!==t||this._tween._time!==this._tween._duration&&0!==this._tween._time)if(t||this._tween._time!==this._tween._duration&&0!==this._tween._time||this._tween._rawPrevTime===-1e-6)for(;n;){if(e=n.c*t+n.s,n.r?e=Math.round(e):s>e&&e>-s&&(e=0),n.type)if(1===n.type)if(r=n.l,2===r)n.t[n.p]=n.xs0+e+n.xs1+n.xn1+n.xs2;else if(3===r)n.t[n.p]=n.xs0+e+n.xs1+n.xn1+n.xs2+n.xn2+n.xs3;else if(4===r)n.t[n.p]=n.xs0+e+n.xs1+n.xn1+n.xs2+n.xn2+n.xs3+n.xn3+n.xs4;else if(5===r)n.t[n.p]=n.xs0+e+n.xs1+n.xn1+n.xs2+n.xn2+n.xs3+n.xn3+n.xs4+n.xn4+n.xs5;else{for(i=n.xs0+e+n.xs1,r=1;n.l>r;r++)i+=n["xn"+r]+n["xs"+(r+1)];n.t[n.p]=i}else-1===n.type?n.t[n.p]=n.xs0:n.setRatio&&n.setRatio(t);else n.t[n.p]=e+n.xs0;n=n._next}else for(;n;)2!==n.type?n.t[n.p]=n.b:n.setRatio(t),n=n._next;else for(;n;){if(2!==n.type)if(n.r&&-1!==n.type)if(e=Math.round(n.s+n.c),n.type){if(1===n.type){for(r=n.l,i=n.xs0+e+n.xs1,r=1;n.l>r;r++)i+=n["xn"+r]+n["xs"+(r+1)];n.t[n.p]=i}}else n.t[n.p]=e+n.xs0;else n.t[n.p]=n.e;else n.setRatio(t);n=n._next}},h._enableTransforms=function(t){this._transform=this._transform||Bt(this._target,n,!0),this._transformType=this._transform.svg&&Tt||!t&&3!==this._transformType?2:3};var Vt=function(){this.t[this.p]=this.e,this.data._linkCSSP(this,this._next,null,!0)};h._addLazySet=function(t,e,i){var r=this._firstPT=new _t(t,e,0,0,this._firstPT,2);r.e=i,r.setRatio=Vt,r.data=this},h._linkCSSP=function(t,e,i,r){return t&&(e&&(e._prev=t),t._next&&(t._next._prev=t._prev),t._prev?t._prev._next=t._next:this._firstPT===t&&(this._firstPT=t._next,r=!0),i?i._next=t:r||null!==this._firstPT||(this._firstPT=t),t._next=e,t._prev=i),t},h._kill=function(e){var i,r,n,s=e;if(e.autoAlpha||e.alpha){s={};for(r in e)s[r]=e[r];s.opacity=1,s.autoAlpha&&(s.visibility=1)}return e.className&&(i=this._classNamePT)&&(n=i.xfirst,n&&n._prev?this._linkCSSP(n._prev,i._next,n._prev._prev):n===this._firstPT&&(this._firstPT=i._next),i._next&&this._linkCSSP(i._next,i._next._next,n._prev),this._classNamePT=null),t.prototype._kill.call(this,s)};var qt=function(t,e,i){var r,n,s,a;if(t.slice)for(n=t.length;--n>-1;)qt(t[n],e,i);else for(r=t.childNodes,n=r.length;--n>-1;)s=r[n],a=s.type,s.style&&(e.push(K(s)),i&&i.push(s)),1!==a&&9!==a&&11!==a||!s.childNodes.length||qt(s,e,i)};return a.cascadeTo=function(t,i,r){var n,s,a,o,l=e.to(t,i,r),h=[l],u=[],c=[],f=[],p=e._internals.reservedProps;for(t=l._targets||l.target,qt(t,u,f),l.render(i,!0,!0),qt(t,c),l.render(0,!0,!0),l._enabled(!0),n=f.length;--n>-1;)if(s=J(f[n],u[n],c[n]),s.firstMPT){s=s.difs;for(a in r)p[a]&&(s[a]=r[a]);o={};for(a in s)o[a]=u[n][a];h.push(e.fromTo(f[n],i,o,s))}return h},t.activate([a]),a},!0),function(){var t=_gsScope._gsDefine.plugin({propName:"roundProps",version:"1.5",priority:-1,API:2,init:function(t,e,i){return this._tween=i,!0}}),e=function(t){for(;t;)t.f||t.blob||(t.r=1),t=t._next},i=t.prototype;i._onInitAllProps=function(){for(var t,i,r,n=this._tween,s=n.vars.roundProps.join?n.vars.roundProps:n.vars.roundProps.split(","),a=s.length,o={},l=n._propLookup.roundProps;--a>-1;)o[s[a]]=1;for(a=s.length;--a>-1;)for(t=s[a],i=n._firstPT;i;)r=i._next,i.pg?i.t._roundProps(o,!0):i.n===t&&(2===i.f&&i.t?e(i.t._firstPT):(this._add(i.t,t,i.s,i.c),r&&(r._prev=i._prev),i._prev?i._prev._next=r:n._firstPT===i&&(n._firstPT=r),i._next=i._prev=null,n._propLookup[t]=l)),i=r;return!1},i._add=function(t,e,i,r){this._addTween(t,e,i,i+r,e,!0),this._overwriteProps.push(e)}}(),function(){_gsScope._gsDefine.plugin({propName:"attr",API:2,version:"0.5.0",init:function(t,e){var i;if("function"!=typeof t.setAttribute)return!1;for(i in e)this._addTween(t,"setAttribute",t.getAttribute(i)+"",e[i]+"",i,!1,i),this._overwriteProps.push(i);return!0}})}(),_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,r,n,s,a,o,l=e.useRadians===!0?2*Math.PI:360,h=1e-6;for(i in e)"useRadians"!==i&&(o=(e[i]+"").split("_"),r=o[0],n=parseFloat("function"!=typeof t[i]?t[i]:t[i.indexOf("set")||"function"!=typeof t["get"+i.substr(3)]?i:"get"+i.substr(3)]()),s=this.finals[i]="string"==typeof r&&"="===r.charAt(1)?n+parseInt(r.charAt(0)+"1",10)*Number(r.substr(2)):Number(r)||0,a=s-n,o.length&&(r=o.join("_"),-1!==r.indexOf("short")&&(a%=l,a!==a%(l/2)&&(a=0>a?a+l:a-l)),-1!==r.indexOf("_cw")&&0>a?a=(a+9999999999*l)%l-(0|a/l)*l:-1!==r.indexOf("ccw")&&a>0&&(a=(a-9999999999*l)%l-(0|a/l)*l)),(a>h||-h>a)&&(this._addTween(t,i,n,n+a,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(t){var e,i,r,n=_gsScope.GreenSockGlobals||_gsScope,s=n.com.greensock,a=2*Math.PI,o=Math.PI/2,l=s._class,h=function(e,i){var r=l("easing."+e,function(){},!0),n=r.prototype=new t;return n.constructor=r,n.getRatio=i,r},u=t.register||function(){},c=function(t,e,i,r){var n=l("easing."+t,{easeOut:new e,easeIn:new i,easeInOut:new r},!0);return u(n,t),n},f=function(t,e,i){this.t=t,this.v=e,i&&(this.next=i,i.prev=this,this.c=i.v-e,this.gap=i.t-t)},p=function(e,i){var r=l("easing."+e,function(t){this._p1=t||0===t?t:1.70158,this._p2=1.525*this._p1},!0),n=r.prototype=new t;return n.constructor=r,n.getRatio=i,n.config=function(t){return new r(t)},r},d=c("Back",p("BackOut",function(t){return(t-=1)*t*((this._p1+1)*t+this._p1)+1}),p("BackIn",function(t){return t*t*((this._p1+1)*t-this._p1)}),p("BackInOut",function(t){return 1>(t*=2)?.5*t*t*((this._p2+1)*t-this._p2):.5*((t-=2)*t*((this._p2+1)*t+this._p2)+2)})),_=l("easing.SlowMo",function(t,e,i){e=e||0===e?e:.7,null==t?t=.7:t>1&&(t=1),this._p=1!==t?e:0,this._p1=(1-t)/2,this._p2=t,this._p3=this._p1+this._p2,this._calcEnd=i===!0},!0),m=_.prototype=new t;return m.constructor=_,m.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},_.ease=new _(.7,.7),m.config=_.config=function(t,e,i){return new _(t,e,i)},e=l("easing.SteppedEase",function(t){t=t||1,this._p1=1/t,this._p2=t+1},!0),m=e.prototype=new t,m.constructor=e,m.getRatio=function(t){return 0>t?t=0:t>=1&&(t=.999999999),(this._p2*t>>0)*this._p1},m.config=e.config=function(t){return new e(t)},i=l("easing.RoughEase",function(e){e=e||{};for(var i,r,n,s,a,o,l=e.taper||"none",h=[],u=0,c=0|(e.points||20),p=c,d=e.randomize!==!1,_=e.clamp===!0,m=e.template instanceof t?e.template:null,g="number"==typeof e.strength?.4*e.strength:.4;--p>-1;)i=d?Math.random():1/c*p,r=m?m.getRatio(i):i,"none"===l?n=g:"out"===l?(s=1-i,n=s*s*g):"in"===l?n=i*i*g:.5>i?(s=2*i,n=.5*s*s*g):(s=2*(1-i),n=.5*s*s*g),d?r+=Math.random()*n-.5*n:p%2?r+=.5*n:r-=.5*n,_&&(r>1?r=1:0>r&&(r=0)),h[u++]={x:i,y:r};for(h.sort(function(t,e){return t.x-e.x}),o=new f(1,1,null),p=c;--p>-1;)a=h[p],o=new f(a.x,a.y,o);this._prev=new f(0,0,0!==o.t?o:o.next)},!0),m=i.prototype=new t,m.constructor=i,m.getRatio=function(t){var e=this._prev;if(t>e.t){for(;e.next&&t>=e.t;)e=e.next;e=e.prev}else for(;e.prev&&e.t>=t;)e=e.prev;return this._prev=e,e.v+(t-e.t)/e.gap*e.c},m.config=function(t){return new i(t)},i.ease=new i,c("Bounce",h("BounceOut",function(t){return 1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}),h("BounceIn",function(t){return 1/2.75>(t=1-t)?1-7.5625*t*t:2/2.75>t?1-(7.5625*(t-=1.5/2.75)*t+.75):2.5/2.75>t?1-(7.5625*(t-=2.25/2.75)*t+.9375):1-(7.5625*(t-=2.625/2.75)*t+.984375)}),h("BounceInOut",function(t){var e=.5>t;return t=e?1-2*t:2*t-1,t=1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375,e?.5*(1-t):.5*t+.5})),c("Circ",h("CircOut",function(t){return Math.sqrt(1-(t-=1)*t)}),h("CircIn",function(t){return-(Math.sqrt(1-t*t)-1)}),h("CircInOut",function(t){return 1>(t*=2)?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)})),r=function(e,i,r){var n=l("easing."+e,function(t,e){this._p1=t>=1?t:1,this._p2=(e||r)/(1>t?t:1),this._p3=this._p2/a*(Math.asin(1/this._p1)||0),this._p2=a/this._p2},!0),s=n.prototype=new t;return s.constructor=n,s.getRatio=i,s.config=function(t,e){return new n(t,e)},n},c("Elastic",r("ElasticOut",function(t){return this._p1*Math.pow(2,-10*t)*Math.sin((t-this._p3)*this._p2)+1},.3),r("ElasticIn",function(t){return-(this._p1*Math.pow(2,10*(t-=1))*Math.sin((t-this._p3)*this._p2))},.3),r("ElasticInOut",function(t){return 1>(t*=2)?-.5*this._p1*Math.pow(2,10*(t-=1))*Math.sin((t-this._p3)*this._p2):.5*this._p1*Math.pow(2,-10*(t-=1))*Math.sin((t-this._p3)*this._p2)+1},.45)),c("Expo",h("ExpoOut",function(t){return 1-Math.pow(2,-10*t)}),h("ExpoIn",function(t){return Math.pow(2,10*(t-1))-.001}),h("ExpoInOut",function(t){return 1>(t*=2)?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*(t-1)))})),c("Sine",h("SineOut",function(t){return Math.sin(t*o)}),h("SineIn",function(t){return-Math.cos(t*o)+1}),h("SineInOut",function(t){return-.5*(Math.cos(Math.PI*t)-1)})),l("easing.EaseLookup",{find:function(e){return t.map[e]}},!0),u(n.SlowMo,"SlowMo","ease,"),u(i,"RoughEase","ease,"),u(e,"SteppedEase","ease,"),d},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(t,e){"use strict";var i=t.GreenSockGlobals=t.GreenSockGlobals||t;if(!i.TweenLite){var r,n,s,a,o,l=function(t){var e,r=t.split("."),n=i;for(e=0;r.length>e;e++)n[r[e]]=n=n[r[e]]||{};return n},h=l("com.greensock"),u=1e-10,c=function(t){var e,i=[],r=t.length;for(e=0;e!==r;i.push(t[e++]));return i},f=function(){},p=function(){var t=Object.prototype.toString,e=t.call([]);return function(i){return null!=i&&(i instanceof Array||"object"==typeof i&&!!i.push&&t.call(i)===e)}}(),d={},_=function(r,n,s,a){this.sc=d[r]?d[r].sc:[],d[r]=this,this.gsClass=null,this.func=s;var o=[];this.check=function(h){for(var u,c,f,p,m,g=n.length,v=g;--g>-1;)(u=d[n[g]]||new _(n[g],[])).gsClass?(o[g]=u.gsClass,v--):h&&u.sc.push(this);if(0===v&&s)for(c=("com.greensock."+r).split("."),f=c.pop(),p=l(c.join("."))[f]=this.gsClass=s.apply(s,o),a&&(i[f]=p,m="undefined"!=typeof module&&module.exports,!m&&"function"==typeof define&&define.amd?define((t.GreenSockAMDPath?t.GreenSockAMDPath+"/":"")+r.split(".").pop(),[],function(){return p}):r===e&&m&&(module.exports=p)),g=0;this.sc.length>g;g++)this.sc[g].check()},this.check(!0)},m=t._gsDefine=function(t,e,i,r){return new _(t,e,i,r)},g=h._class=function(t,e,i){return e=e||function(){},m(t,[],function(){return e},i),e};m.globals=i;var v=[0,0,1,1],y=[],x=g("easing.Ease",function(t,e,i,r){this._func=t,this._type=i||0,this._power=r||0,this._params=e?v.concat(e):v},!0),b=x.map={},T=x.register=function(t,e,i,r){for(var n,s,a,o,l=e.split(","),u=l.length,c=(i||"easeIn,easeOut,easeInOut").split(",");--u>-1;)for(s=l[u],n=r?g("easing."+s,null,!0):h.easing[s]||{},a=c.length;--a>-1;)o=c[a],b[s+"."+o]=b[o+s]=n[o]=t.getRatio?t:t[o]||new t};for(s=x.prototype,s._calcEnd=!1,s.getRatio=function(t){if(this._func)return this._params[0]=t,this._func.apply(null,this._params);var e=this._type,i=this._power,r=1===e?1-t:2===e?t:.5>t?2*t:2*(1-t);return 1===i?r*=r:2===i?r*=r*r:3===i?r*=r*r*r:4===i&&(r*=r*r*r*r),1===e?1-r:2===e?r:.5>t?r/2:1-r/2},r=["Linear","Quad","Cubic","Quart","Quint,Strong"],n=r.length;--n>-1;)s=r[n]+",Power"+n,T(new x(null,null,1,n),s,"easeOut",!0),T(new x(null,null,2,n),s,"easeIn"+(0===n?",easeNone":"")),T(new x(null,null,3,n),s,"easeInOut");b.linear=h.easing.Linear.easeIn,b.swing=h.easing.Quad.easeInOut;var w=g("events.EventDispatcher",function(t){this._listeners={},this._eventTarget=t||this});s=w.prototype,s.addEventListener=function(t,e,i,r,n){n=n||0;var s,l,h=this._listeners[t],u=0;for(null==h&&(this._listeners[t]=h=[]),l=h.length;--l>-1;)s=h[l],s.c===e&&s.s===i?h.splice(l,1):0===u&&n>s.pr&&(u=l+1);h.splice(u,0,{c:e,s:i,up:r,pr:n}),this!==a||o||a.wake()},s.removeEventListener=function(t,e){var i,r=this._listeners[t];if(r)for(i=r.length;--i>-1;)if(r[i].c===e)return void r.splice(i,1)},s.dispatchEvent=function(t){var e,i,r,n=this._listeners[t];if(n)for(e=n.length,i=this._eventTarget;--e>-1;)r=n[e],r&&(r.up?r.c.call(r.s||i,{type:t,target:i}):r.c.call(r.s||i))};var P=t.requestAnimationFrame,S=t.cancelAnimationFrame,C=Date.now||function(){return(new Date).getTime()},k=C();for(r=["ms","moz","webkit","o"],n=r.length;--n>-1&&!P;)P=t[r[n]+"RequestAnimationFrame"],S=t[r[n]+"CancelAnimationFrame"]||t[r[n]+"CancelRequestAnimationFrame"];g("Ticker",function(t,e){var i,r,n,s,l,h=this,c=C(),p=e!==!1&&P,d=500,_=33,m="tick",g=function(t){var e,a,o=C()-k;o>d&&(c+=o-_),k+=o,h.time=(k-c)/1e3,e=h.time-l,(!i||e>0||t===!0)&&(h.frame++,l+=e+(e>=s?.004:s-e),a=!0),t!==!0&&(n=r(g)),a&&h.dispatchEvent(m)};w.call(h),h.time=h.frame=0,h.tick=function(){g(!0)},h.lagSmoothing=function(t,e){d=t||1/u,_=Math.min(e,d,0)},h.sleep=function(){null!=n&&(p&&S?S(n):clearTimeout(n),r=f,n=null,h===a&&(o=!1))},h.wake=function(){null!==n?h.sleep():h.frame>10&&(k=C()-d+5),r=0===i?f:p&&P?P:function(t){return setTimeout(t,0|1e3*(l-h.time)+1)},h===a&&(o=!0),g(2)},h.fps=function(t){return arguments.length?(i=t,s=1/(i||60),l=this.time+s,void h.wake()):i},h.useRAF=function(t){return arguments.length?(h.sleep(),p=t,void h.fps(i)):p},h.fps(t),setTimeout(function(){p&&5>h.frame&&h.useRAF(!1)},1500)}),s=h.Ticker.prototype=new h.events.EventDispatcher,s.constructor=h.Ticker;var O=g("core.Animation",function(t,e){if(this.vars=e=e||{},this._duration=this._totalDuration=t||0,this._delay=Number(e.delay)||0,this._timeScale=1,this._active=e.immediateRender===!0,this.data=e.data,this._reversed=e.reversed===!0,H){o||a.wake();var i=this.vars.useFrames?G:H;i.add(this,i._time),this.vars.paused&&this.paused(!0)}});a=O.ticker=new h.Ticker,s=O.prototype,s._dirty=s._gc=s._initted=s._paused=!1,s._totalTime=s._time=0,s._rawPrevTime=-1,s._next=s._last=s._onUpdate=s._timeline=s.timeline=null,s._paused=!1;var A=function(){o&&C()-k>2e3&&a.wake(),setTimeout(A,2e3)};A(),s.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},s.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},s.resume=function(t,e){return null!=t&&this.seek(t,e),this.paused(!1)},s.seek=function(t,e){return this.totalTime(Number(t),e!==!1)},s.restart=function(t,e){return this.reversed(!1).paused(!1).totalTime(t?-this._delay:0,e!==!1,!0)},s.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},s.render=function(){},s.invalidate=function(){return this._time=this._totalTime=0,this._initted=this._gc=!1,this._rawPrevTime=-1,(this._gc||!this.timeline)&&this._enabled(!0),this},s.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},s._enabled=function(t,e){return o||a.wake(),this._gc=!t,this._active=this.isActive(),e!==!0&&(t&&!this.timeline?this._timeline.add(this,this._startTime-this._delay):!t&&this.timeline&&this._timeline._remove(this,!0)),!1},s._kill=function(){return this._enabled(!1,!1)},s.kill=function(t,e){return this._kill(t,e),this},s._uncache=function(t){for(var e=t?this:this.timeline;e;)e._dirty=!0,e=e.timeline;return this},s._swapSelfInParams=function(t){for(var e=t.length,i=t.concat();--e>-1;)"{self}"===t[e]&&(i[e]=this);return i},s._callback=function(t){var e=this.vars;e[t].apply(e[t+"Scope"]||e.callbackScope||this,e[t+"Params"]||y)},s.eventCallback=function(t,e,i,r){if("on"===(t||"").substr(0,2)){var n=this.vars;if(1===arguments.length)return n[t];null==e?delete n[t]:(n[t]=e,n[t+"Params"]=p(i)&&-1!==i.join("").indexOf("{self}")?this._swapSelfInParams(i):i,n[t+"Scope"]=r),"onUpdate"===t&&(this._onUpdate=e)}return this},s.delay=function(t){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+t-this._delay),this._delay=t,this):this._delay},s.duration=function(t){return arguments.length?(this._duration=this._totalDuration=t,this._uncache(!0),this._timeline.smoothChildTiming&&this._time>0&&this._time<this._duration&&0!==t&&this.totalTime(this._totalTime*(t/this._duration),!0),this):(this._dirty=!1,this._duration)},s.totalDuration=function(t){return this._dirty=!1,arguments.length?this.duration(t):this._totalDuration},s.time=function(t,e){return arguments.length?(this._dirty&&this.totalDuration(),this.totalTime(t>this._duration?this._duration:t,e)):this._time},s.totalTime=function(t,e,i){if(o||a.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(0>t&&!i&&(t+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var r=this._totalDuration,n=this._timeline;if(t>r&&!i&&(t=r),this._startTime=(this._paused?this._pauseTime:n._time)-(this._reversed?r-t:t)/this._timeScale,n._dirty||this._uncache(!1),n._timeline)for(;n._timeline;)n._timeline._time!==(n._startTime+n._totalTime)/n._timeScale&&n.totalTime(n._totalTime,!0),n=n._timeline}this._gc&&this._enabled(!0,!1),(this._totalTime!==t||0===this._duration)&&(F.length&&Z(),this.render(t,e,!1),F.length&&Z())}return this},s.progress=s.totalProgress=function(t,e){var i=this.duration();return arguments.length?this.totalTime(i*t,e):i?this._time/i:this.ratio},s.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},s.endTime=function(t){return this._startTime+(0!=t?this.totalDuration():this.duration())/this._timeScale},s.timeScale=function(t){if(!arguments.length)return this._timeScale;if(t=t||u,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)},s.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},s.paused=function(t){if(!arguments.length)return this._paused;var e,i,r=this._timeline;return t!=this._paused&&r&&(o||t||a.wake(),e=r.rawTime(),i=e-this._pauseTime,!t&&r.smoothChildTiming&&(this._startTime+=i,this._uncache(!1)),this._pauseTime=t?e:null,this._paused=t,this._active=this.isActive(),!t&&0!==i&&this._initted&&this.duration()&&(e=r.smoothChildTiming?this._totalTime:(e-this._startTime)/this._timeScale,this.render(e,e===this._totalTime,!0))),this._gc&&!t&&this._enabled(!0,!1),this};var R=g("core.SimpleTimeline",function(t){O.call(this,0,t),this.autoRemoveChildren=this.smoothChildTiming=!0});s=R.prototype=new O,s.constructor=R,s.kill()._gc=!1,s._first=s._last=s._recent=null,s._sortChildren=!1,s.add=s.insert=function(t,e){var i,r;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(r=t._startTime;i&&i._startTime>r;)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},s._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},s.render=function(t,e,i){var r,n=this._first;for(this._totalTime=this._time=this._rawPrevTime=t;n;)r=n._next,(n._active||t>=n._startTime&&!n._paused)&&(n._reversed?n.render((n._dirty?n.totalDuration():n._totalDuration)-(t-n._startTime)*n._timeScale,e,i):n.render((t-n._startTime)*n._timeScale,e,i)),n=r},s.rawTime=function(){return o||a.wake(),this._totalTime};var M=g("TweenLite",function(e,i,r){if(O.call(this,i,r),this.render=M.prototype.render,null==e)throw"Cannot tween a null target.";this.target=e="string"!=typeof e?e:M.selector(e)||e;var n,s,a,o=e.jquery||e.length&&e!==t&&e[0]&&(e[0]===t||e[0].nodeType&&e[0].style&&!e.nodeType),l=this.vars.overwrite;if(this._overwrite=l=null==l?q[M.defaultOverwrite]:"number"==typeof l?l>>0:q[l],(o||e instanceof Array||e.push&&p(e))&&"number"!=typeof e[0])for(this._targets=a=c(e),this._propLookup=[],this._siblings=[],n=0;a.length>n;n++)s=a[n],s?"string"!=typeof s?s.length&&s!==t&&s[0]&&(s[0]===t||s[0].nodeType&&s[0].style&&!s.nodeType)?(a.splice(n--,1),this._targets=a=a.concat(c(s))):(this._siblings[n]=W(s,this,!1),1===l&&this._siblings[n].length>1&&K(s,this,null,1,this._siblings[n])):(s=a[n--]=M.selector(s),"string"==typeof s&&a.splice(n+1,1)):a.splice(n--,1);else this._propLookup={},this._siblings=W(e,this,!1),1===l&&this._siblings.length>1&&K(e,this,null,1,this._siblings);(this.vars.immediateRender||0===i&&0===this._delay&&this.vars.immediateRender!==!1)&&(this._time=-u,this.render(-this._delay))},!0),D=function(e){return e&&e.length&&e!==t&&e[0]&&(e[0]===t||e[0].nodeType&&e[0].style&&!e.nodeType)},E=function(t,e){var i,r={};for(i in t)V[i]||i in e&&"transform"!==i&&"x"!==i&&"y"!==i&&"width"!==i&&"height"!==i&&"className"!==i&&"border"!==i||!(!j[i]||j[i]&&j[i]._autoCSS)||(r[i]=t[i],delete t[i]);t.css=r};s=M.prototype=new O,s.constructor=M,s.kill()._gc=!1,s.ratio=0,s._firstPT=s._targets=s._overwrittenProps=s._startAt=null,s._notifyPluginsOfEnabled=s._lazy=!1,M.version="1.18.0",M.defaultEase=s._ease=new x(null,null,1,1),M.defaultOverwrite="auto",M.ticker=a,M.autoSleep=120,M.lagSmoothing=function(t,e){a.lagSmoothing(t,e)},M.selector=t.$||t.jQuery||function(e){var i=t.$||t.jQuery;return i?(M.selector=i,i(e)):"undefined"==typeof document?e:document.querySelectorAll?document.querySelectorAll(e):document.getElementById("#"===e.charAt(0)?e.substr(1):e)};var F=[],N={},I=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,B=function(t){for(var e,i=this._firstPT,r=1e-6;i;)e=i.blob?t?this.join(""):this.start:i.c*t+i.s,
i.r?e=Math.round(e):r>e&&e>-r&&(e=0),i.f?i.fp?i.t[i.p](i.fp,e):i.t[i.p](e):i.t[i.p]=e,i=i._next},z=function(t,e,i,r){var n,s,a,o,l,h,u,c=[t,e],f=0,p="",d=0;for(c.start=t,i&&(i(c),t=c[0],e=c[1]),c.length=0,n=t.match(I)||[],s=e.match(I)||[],r&&(r._next=null,r.blob=1,c._firstPT=r),l=s.length,o=0;l>o;o++)u=s[o],h=e.substr(f,e.indexOf(u,f)-f),p+=h||!o?h:",",f+=h.length,d?d=(d+1)%5:"rgba("===h.substr(-5)&&(d=1),u===n[o]||o>=n.length?p+=u:(p&&(c.push(p),p=""),a=parseFloat(n[o]),c.push(a),c._firstPT={_next:c._firstPT,t:c,p:c.length-1,s:a,c:("="===u.charAt(1)?parseInt(u.charAt(0)+"1",10)*parseFloat(u.substr(2)):parseFloat(u)-a)||0,f:0,r:d&&4>d}),f+=u.length;return p+=e.substr(f),p&&c.push(p),c.setRatio=B,c},L=function(t,e,i,r,n,s,a,o){var l,h,u="get"===i?t[e]:i,c=typeof t[e],f="string"==typeof r&&"="===r.charAt(1),p={t:t,p:e,s:u,f:"function"===c,pg:0,n:n||e,r:s,pr:0,c:f?parseInt(r.charAt(0)+"1",10)*parseFloat(r.substr(2)):parseFloat(r)-u||0};return"number"!==c&&("function"===c&&"get"===i&&(h=e.indexOf("set")||"function"!=typeof t["get"+e.substr(3)]?e:"get"+e.substr(3),p.s=u=a?t[h](a):t[h]()),"string"==typeof u&&(a||isNaN(u))?(p.fp=a,l=z(u,r,o||M.defaultStringFilter,p),p={t:l,p:"setRatio",s:0,c:1,f:2,pg:0,n:n||e,pr:0}):f||(p.c=parseFloat(r)-parseFloat(u)||0)),p.c?((p._next=this._firstPT)&&(p._next._prev=p),this._firstPT=p,p):void 0},X=M._internals={isArray:p,isSelector:D,lazyTweens:F,blobDif:z},j=M._plugins={},U=X.tweenLookup={},Y=0,V=X.reservedProps={ease:1,delay:1,overwrite:1,onComplete:1,onCompleteParams:1,onCompleteScope:1,useFrames:1,runBackwards:1,startAt:1,onUpdate:1,onUpdateParams:1,onUpdateScope:1,onStart:1,onStartParams:1,onStartScope:1,onReverseComplete:1,onReverseCompleteParams:1,onReverseCompleteScope:1,onRepeat:1,onRepeatParams:1,onRepeatScope:1,easeParams:1,yoyo:1,immediateRender:1,repeat:1,repeatDelay:1,data:1,paused:1,reversed:1,autoCSS:1,lazy:1,onOverwrite:1,callbackScope:1,stringFilter:1},q={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,"true":1,"false":0},G=O._rootFramesTimeline=new R,H=O._rootTimeline=new R,$=30,Z=X.lazyRender=function(){var t,e=F.length;for(N={};--e>-1;)t=F[e],t&&t._lazy!==!1&&(t.render(t._lazy[0],t._lazy[1],!0),t._lazy=!1);F.length=0};H._startTime=a.time,G._startTime=a.frame,H._active=G._active=!0,setTimeout(Z,1),O._updateRoot=M.render=function(){var t,e,i;if(F.length&&Z(),H.render((a.time-H._startTime)*H._timeScale,!1,!1),G.render((a.frame-G._startTime)*G._timeScale,!1,!1),F.length&&Z(),a.frame>=$){$=a.frame+(parseInt(M.autoSleep,10)||120);for(i in U){for(e=U[i].tweens,t=e.length;--t>-1;)e[t]._gc&&e.splice(t,1);0===e.length&&delete U[i]}if(i=H._first,(!i||i._paused)&&M.autoSleep&&!G._first&&1===a._listeners.tick.length){for(;i&&i._paused;)i=i._next;i||a.sleep()}}},a.addEventListener("tick",O._updateRoot);var W=function(t,e,i){var r,n,s=t._gsTweenID;if(U[s||(t._gsTweenID=s="t"+Y++)]||(U[s]={target:t,tweens:[]}),e&&(r=U[s].tweens,r[n=r.length]=e,i))for(;--n>-1;)r[n]===e&&r.splice(n,1);return U[s].tweens},Q=function(t,e,i,r){var n,s,a=t.vars.onOverwrite;return a&&(n=a(t,e,i,r)),a=M.onOverwrite,a&&(s=a(t,e,i,r)),n!==!1&&s!==!1},K=function(t,e,i,r,n){var s,a,o,l;if(1===r||r>=4){for(l=n.length,s=0;l>s;s++)if((o=n[s])!==e)o._gc||o._kill(null,t,e)&&(a=!0);else if(5===r)break;return a}var h,c=e._startTime+u,f=[],p=0,d=0===e._duration;for(s=n.length;--s>-1;)(o=n[s])===e||o._gc||o._paused||(o._timeline!==e._timeline?(h=h||J(e,0,d),0===J(o,h,d)&&(f[p++]=o)):c>=o._startTime&&o._startTime+o.totalDuration()/o._timeScale>c&&((d||!o._initted)&&2e-10>=c-o._startTime||(f[p++]=o)));for(s=p;--s>-1;)if(o=f[s],2===r&&o._kill(i,t,e)&&(a=!0),2!==r||!o._firstPT&&o._initted){if(2!==r&&!Q(o,e))continue;o._enabled(!1,!1)&&(a=!0)}return a},J=function(t,e,i){for(var r=t._timeline,n=r._timeScale,s=t._startTime;r._timeline;){if(s+=r._startTime,n*=r._timeScale,r._paused)return-100;r=r._timeline}return s/=n,s>e?s-e:i&&s===e||!t._initted&&2*u>s-e?u:(s+=t.totalDuration()/t._timeScale/n)>e+u?0:s-e-u};s._init=function(){var t,e,i,r,n,s=this.vars,a=this._overwrittenProps,o=this._duration,l=!!s.immediateRender,h=s.ease;if(s.startAt){this._startAt&&(this._startAt.render(-1,!0),this._startAt.kill()),n={};for(r in s.startAt)n[r]=s.startAt[r];if(n.overwrite=!1,n.immediateRender=!0,n.lazy=l&&s.lazy!==!1,n.startAt=n.delay=null,this._startAt=M.to(this.target,0,n),l)if(this._time>0)this._startAt=null;else if(0!==o)return}else if(s.runBackwards&&0!==o)if(this._startAt)this._startAt.render(-1,!0),this._startAt.kill(),this._startAt=null;else{0!==this._time&&(l=!1),i={};for(r in s)V[r]&&"autoCSS"!==r||(i[r]=s[r]);if(i.overwrite=0,i.data="isFromStart",i.lazy=l&&s.lazy!==!1,i.immediateRender=l,this._startAt=M.to(this.target,0,i),l){if(0===this._time)return}else this._startAt._init(),this._startAt._enabled(!1),this.vars.immediateRender&&(this._startAt=null)}if(this._ease=h=h?h instanceof x?h:"function"==typeof h?new x(h,s.easeParams):b[h]||M.defaultEase:M.defaultEase,s.easeParams instanceof Array&&h.config&&(this._ease=h.config.apply(h,s.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(t=this._targets.length;--t>-1;)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&&M._onPluginEvent("_onInitAllProps",this),a&&(this._firstPT||"function"!=typeof this.target&&this._enabled(!1,!1)),s.runBackwards)for(i=this._firstPT;i;)i.s+=i.c,i.c=-i.c,i=i._next;this._onUpdate=s.onUpdate,this._initted=!0},s._initProps=function(e,i,r,n){var s,a,o,l,h,u;if(null==e)return!1;N[e._gsTweenID]&&Z(),this.vars.css||e.style&&e!==t&&e.nodeType&&j.css&&this.vars.autoCSS!==!1&&E(this.vars,e);for(s in this.vars)if(u=this.vars[s],V[s])u&&(u instanceof Array||u.push&&p(u))&&-1!==u.join("").indexOf("{self}")&&(this.vars[s]=u=this._swapSelfInParams(u,this));else if(j[s]&&(l=new j[s])._onInitTween(e,this.vars[s],this)){for(this._firstPT=h={_next:this._firstPT,t:l,p:"setRatio",s:0,c:1,f:1,n:s,pg:1,pr:l._priority},a=l._overwriteProps.length;--a>-1;)i[l._overwriteProps[a]]=this._firstPT;(l._priority||l._onInitAllProps)&&(o=!0),(l._onDisable||l._onEnable)&&(this._notifyPluginsOfEnabled=!0),h._next&&(h._next._prev=h)}else i[s]=L.call(this,e,s,"get",u,s,0,null,this.vars.stringFilter);return n&&this._kill(n,e)?this._initProps(e,i,r,n):this._overwrite>1&&this._firstPT&&r.length>1&&K(e,this,i,this._overwrite,r)?(this._kill(i,e),this._initProps(e,i,r,n)):(this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration)&&(N[e._gsTweenID]=!0),o)},s.render=function(t,e,i){var r,n,s,a,o=this._time,l=this._duration,h=this._rawPrevTime;if(t>=l)this._totalTime=this._time=l,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(r=!0,n="onComplete",i=i||this._timeline.autoRemoveChildren),0===l&&(this._initted||!this.vars.lazy||i)&&(this._startTime===this._timeline._duration&&(t=0),(0===t||0>h||h===u&&"isPause"!==this.data)&&h!==t&&(i=!0,h>u&&(n="onReverseComplete")),this._rawPrevTime=a=!e||t||h===t?t:u);else if(1e-7>t)this._totalTime=this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==o||0===l&&h>0)&&(n="onReverseComplete",r=this._reversed),0>t&&(this._active=!1,0===l&&(this._initted||!this.vars.lazy||i)&&(h>=0&&(h!==u||"isPause"!==this.data)&&(i=!0),this._rawPrevTime=a=!e||t||h===t?t:u)),this._initted||(i=!0);else if(this._totalTime=this._time=t,this._easeType){var c=t/l,f=this._easeType,p=this._easePower;(1===f||3===f&&c>=.5)&&(c=1-c),3===f&&(c*=2),1===p?c*=c:2===p?c*=c*c:3===p?c*=c*c*c:4===p&&(c*=c*c*c*c),this.ratio=1===f?1-c:2===f?c:.5>t/l?c/2:1-c/2}else this.ratio=this._ease.getRatio(t/l);if(this._time!==o||i){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!i&&this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration))return this._time=this._totalTime=o,this._rawPrevTime=h,F.push(this),void(this._lazy=[t,e]);this._time&&!r?this.ratio=this._ease.getRatio(this._time/l):r&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(0===this._time?0:1))}for(this._lazy!==!1&&(this._lazy=!1),this._active||!this._paused&&this._time!==o&&t>=0&&(this._active=!0),0===o&&(this._startAt&&(t>=0?this._startAt.render(t,e,i):n||(n="_dummyGS")),this.vars.onStart&&(0!==this._time||0===l)&&(e||this._callback("onStart"))),s=this._firstPT;s;)s.f?s.t[s.p](s.c*this.ratio+s.s):s.t[s.p]=s.c*this.ratio+s.s,s=s._next;this._onUpdate&&(0>t&&this._startAt&&t!==-1e-4&&this._startAt.render(t,e,i),e||(this._time!==o||r)&&this._callback("onUpdate")),n&&(!this._gc||i)&&(0>t&&this._startAt&&!this._onUpdate&&t!==-1e-4&&this._startAt.render(t,e,i),r&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[n]&&this._callback(n),0===l&&this._rawPrevTime===u&&a!==u&&(this._rawPrevTime=0))}},s._kill=function(t,e,i){if("all"===t&&(t=null),null==t&&(null==e||e===this.target))return this._lazy=!1,this._enabled(!1,!1);e="string"!=typeof e?e||this._targets||this.target:M.selector(e)||e;var r,n,s,a,o,l,h,u,c,f=i&&this._time&&i._startTime===this._startTime&&this._timeline===i._timeline;if((p(e)||D(e))&&"number"!=typeof e[0])for(r=e.length;--r>-1;)this._kill(t,e[r],i)&&(l=!0);else{if(this._targets){for(r=this._targets.length;--r>-1;)if(e===this._targets[r]){o=this._propLookup[r]||{},this._overwrittenProps=this._overwrittenProps||[],n=this._overwrittenProps[r]=t?this._overwrittenProps[r]||{}:"all";break}}else{if(e!==this.target)return!1;o=this._propLookup,n=this._overwrittenProps=t?this._overwrittenProps||{}:"all"}if(o){if(h=t||o,u=t!==n&&"all"!==n&&t!==o&&("object"!=typeof t||!t._tempKill),i&&(M.onOverwrite||this.vars.onOverwrite)){for(s in h)o[s]&&(c||(c=[]),c.push(s));if((c||!t)&&!Q(this,i,e,c))return!1}for(s in h)(a=o[s])&&(f&&(a.f?a.t[a.p](a.s):a.t[a.p]=a.s,l=!0),a.pg&&a.t._kill(h)&&(l=!0),a.pg&&0!==a.t._overwriteProps.length||(a._prev?a._prev._next=a._next:a===this._firstPT&&(this._firstPT=a._next),a._next&&(a._next._prev=a._prev),a._next=a._prev=null),delete o[s]),u&&(n[s]=1);!this._firstPT&&this._initted&&this._enabled(!1,!1)}}return l},s.invalidate=function(){return this._notifyPluginsOfEnabled&&M._onPluginEvent("_onDisable",this),this._firstPT=this._overwrittenProps=this._startAt=this._onUpdate=null,this._notifyPluginsOfEnabled=this._active=this._lazy=!1,this._propLookup=this._targets?{}:[],O.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-u,this.render(-this._delay)),this},s._enabled=function(t,e){if(o||a.wake(),t&&this._gc){var i,r=this._targets;if(r)for(i=r.length;--i>-1;)this._siblings[i]=W(r[i],this,!0);else this._siblings=W(this.target,this,!0)}return O.prototype._enabled.call(this,t,e),!(!this._notifyPluginsOfEnabled||!this._firstPT)&&M._onPluginEvent(t?"_onEnable":"_onDisable",this)},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,r){return r.startAt=i,r.immediateRender=0!=r.immediateRender&&0!=i.immediateRender,new M(t,e,r)},M.delayedCall=function(t,e,i,r,n){return new M(e,0,{delay:t,onComplete:e,onCompleteParams:i,callbackScope:r,onReverseComplete:e,onReverseCompleteParams:i,immediateRender:!1,lazy:!1,useFrames:n,overwrite:0})},M.set=function(t,e){return new M(t,0,e)},M.getTweensOf=function(t,e){if(null==t)return[];t="string"!=typeof t?t:M.selector(t)||t;var i,r,n,s;if((p(t)||D(t))&&"number"!=typeof t[0]){for(i=t.length,r=[];--i>-1;)r=r.concat(M.getTweensOf(t[i],e));for(i=r.length;--i>-1;)for(s=r[i],n=i;--n>-1;)s===r[n]&&r.splice(i,1)}else for(r=W(t).concat(),i=r.length;--i>-1;)(r[i]._gc||e&&!r[i].isActive())&&r.splice(i,1);return r},M.killTweensOf=M.killDelayedCallsTo=function(t,e,i){"object"==typeof e&&(i=e,e=!1);for(var r=M.getTweensOf(t,e),n=r.length;--n>-1;)r[n]._kill(i,t)};var tt=g("plugins.TweenPlugin",function(t,e){this._overwriteProps=(t||"").split(","),this._propName=this._overwriteProps[0],this._priority=e||0,this._super=tt.prototype},!0);if(s=tt.prototype,tt.version="1.18.0",tt.API=2,s._firstPT=null,s._addTween=L,s.setRatio=B,s._kill=function(t){var e,i=this._overwriteProps,r=this._firstPT;if(null!=t[this._propName])this._overwriteProps=[];else for(e=i.length;--e>-1;)null!=t[i[e]]&&i.splice(e,1);for(;r;)null!=t[r.n]&&(r._next&&(r._next._prev=r._prev),r._prev?(r._prev._next=r._next,r._prev=null):this._firstPT===r&&(this._firstPT=r._next)),r=r._next;return!1},s._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},M._onPluginEvent=function(t,e){var i,r,n,s,a,o=e._firstPT;if("_onInitAllProps"===t){for(;o;){for(a=o._next,r=n;r&&r.pr>o.pr;)r=r._next;(o._prev=r?r._prev:s)?o._prev._next=o:n=o,(o._next=r)?r._prev=o:s=o,o=a}o=e._firstPT=n}for(;o;)o.pg&&"function"==typeof o.t[t]&&o.t[t]()&&(i=!0),o=o._next;return i},tt.activate=function(t){for(var e=t.length;--e>-1;)t[e].API===tt.API&&(j[(new t[e])._propName]=t[e]);return!0},m.plugin=function(t){if(!(t&&t.propName&&t.init&&t.API))throw"illegal plugin definition.";var e,i=t.propName,r=t.priority||0,n=t.overwriteProps,s={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_roundProps",initAll:"_onInitAllProps"},a=g("plugins."+i.charAt(0).toUpperCase()+i.substr(1)+"Plugin",function(){tt.call(this,i,r),this._overwriteProps=n||[]},t.global===!0),o=a.prototype=new tt(i);o.constructor=a,a.API=t.API;for(e in s)"function"==typeof t[e]&&(o[s[e]]=t[e]);return a.version=t.version,tt.activate([a]),a},r=t._gsQueue){for(n=0;r.length>n;n++)r[n]();for(s in d)d[s].func||t.console.log("GSAP encountered missing dependency: com.greensock."+s)}o=!1}}("undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window,"TweenMax");var text400="BAD REQUEST",text401="AUTHORIZATION REQUIRED",text403="FORBIDDEN",text404="PAGE NOT FOUND",text405="METHOD NOT ALLOWED",text406="NOT ACCEPTABLE (ENCODING)",text407="PROXY AUTHENTICATION REQUIRED",text408="REQUEST TIMED OUT",text409="CONFLICTING REQUEST",text410="GONE",text411="CONTENT LENGTH REQUIRED",text412="PRECOGNITION FAILED",text413="REQUEST ENTITY TOO LONG",text414="REQUEST URI TOO LONG",text415="UNSUPPORTED MEDIA TYPE",text500="INTERNAL SERVER ERROR",text501="NOT IMPLEMENTED",text502="BAD GATEWAY",text503="SERVICE UNAVAILABLE",text504="GATEWAY TIMEOUT",text505="HTTP VERSION NOT SUPPORTED",clawTweenTime=1,rightClawRepeatDelay=1,leftClawRepeatDelay=1.7,bodySwayTime=1,bodySwayAmount=5,blinkRepeatTime=2.2,eyesMoveRepeatTime=.9,bodyTO="50px 92px",eyesY=-2;window.addEventListener("load",function(){iniBrokebot()},!1);var errorCode;!function(t){var e,i,r="0.4.2",n="hasOwnProperty",s=/[\.\/]/,a=/\s*,\s*/,o="*",l=function(t,e){return t-e},h={n:{}},u=function(){for(var t=0,e=this.length;t<e;t++)if("undefined"!=typeof this[t])return this[t]},c=function(){for(var t=this.length;--t;)if("undefined"!=typeof this[t])return this[t]},f=function(t,r){t=String(t);var n,s=i,a=Array.prototype.slice.call(arguments,2),o=f.listeners(t),h=0,p=[],d={},_=[],m=e;_.firstDefined=u,_.lastDefined=c,e=t,i=0;for(var g=0,v=o.length;g<v;g++)"zIndex"in o[g]&&(p.push(o[g].zIndex),o[g].zIndex<0&&(d[o[g].zIndex]=o[g]));for(p.sort(l);p[h]<0;)if(n=d[p[h++]],_.push(n.apply(r,a)),i)return i=s,_;for(g=0;g<v;g++)if(n=o[g],"zIndex"in n)if(n.zIndex==p[h]){if(_.push(n.apply(r,a)),i)break;do if(h++,n=d[p[h]],n&&_.push(n.apply(r,a)),i)break;while(n)}else d[n.zIndex]=n;else if(_.push(n.apply(r,a)),i)break;return i=s,e=m,_};f._events=h,f.listeners=function(t){var e,i,r,n,a,l,u,c,f=t.split(s),p=h,d=[p],_=[];for(n=0,a=f.length;n<a;n++){for(c=[],l=0,u=d.length;l<u;l++)for(p=d[l].n,i=[p[f[n]],p[o]],r=2;r--;)e=i[r],e&&(c.push(e),_=_.concat(e.f||[]));d=c}return _},f.on=function(t,e){if(t=String(t),"function"!=typeof e)return function(){};for(var i=t.split(a),r=0,n=i.length;r<n;r++)!function(t){for(var i,r=t.split(s),n=h,a=0,o=r.length;a<o;a++)n=n.n,n=n.hasOwnProperty(r[a])&&n[r[a]]||(n[r[a]]={n:{}});for(n.f=n.f||[],a=0,o=n.f.length;a<o;a++)if(n.f[a]==e){i=!0;break}!i&&n.f.push(e)}(i[r]);return function(t){+t==+t&&(e.zIndex=+t)}},f.f=function(t){var e=[].slice.call(arguments,1);return function(){f.apply(null,[t,null].concat(e).concat([].slice.call(arguments,0)))}},f.stop=function(){i=1},f.nt=function(t){return t?new RegExp("(?:\\.|\\/|^)"+t+"(?:\\.|\\/|$)").test(e):e},f.nts=function(){return e.split(s)},f.off=f.unbind=function(t,e){if(!t)return void(f._events=h={n:{}});var i=t.split(a);if(i.length>1)for(var r=0,l=i.length;r<l;r++)f.off(i[r],e);else{i=t.split(s);var u,c,p,r,l,d,_,m=[h];for(r=0,l=i.length;r<l;r++)for(d=0;d<m.length;d+=p.length-2){if(p=[d,1],u=m[d].n,i[r]!=o)u[i[r]]&&p.push(u[i[r]]);else for(c in u)u[n](c)&&p.push(u[c]);m.splice.apply(m,p)}for(r=0,l=m.length;r<l;r++)for(u=m[r];u.n;){if(e){if(u.f){for(d=0,_=u.f.length;d<_;d++)if(u.f[d]==e){u.f.splice(d,1);break}!u.f.length&&delete u.f}for(c in u.n)if(u.n[n](c)&&u.n[c].f){var g=u.n[c].f;for(d=0,_=g.length;d<_;d++)if(g[d]==e){g.splice(d,1);break}!g.length&&delete u.n[c].f}}else{delete u.f;for(c in u.n)u.n[n](c)&&u.n[c].f&&delete u.n[c].f}u=u.n}}},f.once=function(t,e){var i=function(){return f.unbind(t,i),e.apply(this,arguments)};return f.on(t,i)},f.version=r,f.toString=function(){return"You are running Eve "+r},"undefined"!=typeof module&&module.exports?module.exports=f:"function"==typeof define&&define.amd?define("eve",[],function(){return f}):t.eve=f}(this),function(t,e){"function"==typeof define&&define.amd?define(["eve"],function(i){return e(t,i)}):e(t,t.eve)}(this,function(t,e){var i=function(e){var i={},r=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||t.msRequestAnimationFrame||function(t){setTimeout(t,16)},n=Array.isArray||function(t){return t instanceof Array||"[object Array]"==Object.prototype.toString.call(t)},s=0,a="M"+(+new Date).toString(36),o=function(){return a+(s++).toString(36)},l=Date.now||function(){return+new Date},h=function(t){var e=this;if(null==t)return e.s;var i=e.s-t;e.b+=e.dur*i,e.B+=e.dur*i,e.s=t},u=function(t){var e=this;return null==t?e.spd:void(e.spd=t)},c=function(t){var e=this;return null==t?e.dur:(e.s=e.s*t/e.dur,void(e.dur=t))},f=function(){var t=this;delete i[t.id],t.update(),e("mina.stop."+t.id,t)},p=function(){var t=this;t.pdif||(delete i[t.id],t.update(),t.pdif=t.get()-t.b)},d=function(){var t=this;t.pdif&&(t.b=t.get()-t.pdif,delete t.pdif,i[t.id]=t)},_=function(){var t,e=this;if(n(e.start)){t=[];for(var i=0,r=e.start.length;i<r;i++)t[i]=+e.start[i]+(e.end[i]-e.start[i])*e.easing(e.s)}else t=+e.start+(e.end-e.start)*e.easing(e.s);e.set(t)},m=function(){var t=0;for(var n in i)if(i.hasOwnProperty(n)){var s=i[n],a=s.get();t++,s.s=(a-s.b)/(s.dur/s.spd),s.s>=1&&(delete i[n],s.s=1,t--,function(t){setTimeout(function(){e("mina.finish."+t.id,t)})}(s)),s.update()}t&&r(m)},g=function(t,e,n,s,a,l,v){var y={id:o(),start:t,end:e,b:n,s:0,dur:s-n,spd:1,get:a,set:l,easing:v||g.linear,status:h,speed:u,duration:c,stop:f,pause:p,resume:d,update:_};i[y.id]=y;var x,b=0;for(x in i)if(i.hasOwnProperty(x)&&(b++,2==b))break;return 1==b&&r(m),y};return g.time=l,g.getById=function(t){return i[t]||null},g.linear=function(t){return t},g.easeout=function(t){return Math.pow(t,1.7)},g.easein=function(t){return Math.pow(t,.48)},g.easeinout=function(t){if(1==t)return 1;if(0==t)return 0;var e=.48-t/1.04,i=Math.sqrt(.1734+e*e),r=i-e,n=Math.pow(Math.abs(r),1/3)*(r<0?-1:1),s=-i-e,a=Math.pow(Math.abs(s),1/3)*(s<0?-1:1),o=n+a+.5;return 3*(1-o)*o*o+o*o*o},g.backin=function(t){if(1==t)return 1;var e=1.70158;return t*t*((e+1)*t-e)},g.backout=function(t){if(0==t)return 0;t-=1;var e=1.70158;return t*t*((e+1)*t+e)+1},g.elastic=function(t){return t==!!t?t:Math.pow(2,-10*t)*Math.sin((t-.075)*(2*Math.PI)/.3)+1},g.bounce=function(t){var e,i=7.5625,r=2.75;return t<1/r?e=i*t*t:t<2/r?(t-=1.5/r,e=i*t*t+.75):t<2.5/r?(t-=2.25/r,e=i*t*t+.9375):(t-=2.625/r,e=i*t*t+.984375),e},t.mina=g,g}("undefined"==typeof e?function(){}:e),r=function(){function r(t,e){if(t){if(t.tagName)return P(t);if(s(t,"array")&&r.set)return r.set.apply(r,t);if(t instanceof x)return t;if(null==e)return t=S.doc.querySelector(t),P(t)}return t=null==t?"100%":t,e=null==e?"100%":e,new w(t,e)}function n(t,e){if(e){if("#text"==t&&(t=S.doc.createTextNode(e.text||"")),"string"==typeof t&&(t=n(t)),"string"==typeof e)return"xlink:"==e.substring(0,6)?t.getAttributeNS($,e.substring(6)):"xml:"==e.substring(0,4)?t.getAttributeNS(Z,e.substring(4)):t.getAttribute(e);for(var i in e)if(e[C](i)){var r=k(e[i]);r?"xlink:"==i.substring(0,6)?t.setAttributeNS($,i.substring(6),r):"xml:"==i.substring(0,4)?t.setAttributeNS(Z,i.substring(4),r):t.setAttribute(i,r):t.removeAttribute(i)}}else t=S.doc.createElementNS(Z,t);return t}function s(t,e){return e=k.prototype.toLowerCase.call(e),"finite"==e?isFinite(t):!("array"!=e||!(t instanceof Array||Array.isArray&&Array.isArray(t)))||("null"==e&&null===t||e==typeof t&&null!==t||"object"==e&&t===Object(t)||B.call(t).slice(8,-1).toLowerCase()==e)}function a(t){if("function"==typeof t||Object(t)!==t)return t;var e=new t.constructor;for(var i in t)t[C](i)&&(e[i]=a(t[i]));return e}function o(t,e){for(var i=0,r=t.length;i<r;i++)if(t[i]===e)return t.push(t.splice(i,1)[0])}function l(t,e,i){function r(){var n=Array.prototype.slice.call(arguments,0),s=n.join("␀"),a=r.cache=r.cache||{},l=r.count=r.count||[];return a[C](s)?(o(l,s),i?i(a[s]):a[s]):(l.length>=1e3&&delete a[l.shift()],l.push(s),a[s]=t.apply(e,n),i?i(a[s]):a[s])}return r}function h(t,e,i,r,n,s){if(null==n){var a=t-i,o=e-r;return a||o?(180+180*R.atan2(-o,-a)/F+360)%360:0}return h(t,e,n,s)-h(i,r,n,s)}function u(t){return t%360*F/180}function c(t){return 180*t/F%360}function f(t){var e=[];return t=t.replace(/(?:^|\s)(\w+)\(([^)]+)\)/g,function(t,i,r){return r=r.split(/\s*,\s*|\s+/),"rotate"==i&&1==r.length&&r.push(0,0),"scale"==i&&(r.length>2?r=r.slice(0,2):2==r.length&&r.push(0,0),1==r.length&&r.push(r[0],0,0)),"skewX"==i?e.push(["m",1,0,R.tan(u(r[0])),1,0,0]):"skewY"==i?e.push(["m",1,R.tan(u(r[0])),0,1,0,0]):e.push([i.charAt(0)].concat(r)),t}),e}function p(t,e){var i=nt(t),n=new r.Matrix;if(i)for(var s=0,a=i.length;s<a;s++){var o,l,h,u,c,f=i[s],p=f.length,d=k(f[0]).toLowerCase(),_=f[0]!=d,m=_?n.invert():0;"t"==d&&2==p?n.translate(f[1],0):"t"==d&&3==p?_?(o=m.x(0,0),l=m.y(0,0),h=m.x(f[1],f[2]),u=m.y(f[1],f[2]),n.translate(h-o,u-l)):n.translate(f[1],f[2]):"r"==d?2==p?(c=c||e,n.rotate(f[1],c.x+c.width/2,c.y+c.height/2)):4==p&&(_?(h=m.x(f[2],f[3]),u=m.y(f[2],f[3]),n.rotate(f[1],h,u)):n.rotate(f[1],f[2],f[3])):"s"==d?2==p||3==p?(c=c||e,n.scale(f[1],f[p-1],c.x+c.width/2,c.y+c.height/2)):4==p?_?(h=m.x(f[2],f[3]),u=m.y(f[2],f[3]),n.scale(f[1],f[1],h,u)):n.scale(f[1],f[1],f[2],f[3]):5==p&&(_?(h=m.x(f[3],f[4]),u=m.y(f[3],f[4]),n.scale(f[1],f[2],h,u)):n.scale(f[1],f[2],f[3],f[4])):"m"==d&&7==p&&n.add(f[1],f[2],f[3],f[4],f[5],f[6])}return n}function d(t,e){if(null==e){var i=!0;if(e="linearGradient"==t.type||"radialGradient"==t.type?t.node.getAttribute("gradientTransform"):"pattern"==t.type?t.node.getAttribute("patternTransform"):t.node.getAttribute("transform"),!e)return new r.Matrix;e=f(e)}else e=r._.rgTransform.test(e)?k(e).replace(/\.{3}|\u2026/g,t._.transform||N):f(e),s(e,"array")&&(e=r.path?r.path.toString.call(e):k(e)),t._.transform=e;var n=p(e,t.getBBox(1));return i?n:void(t.matrix=n)}function _(t){var e=t.node.ownerSVGElement&&P(t.node.ownerSVGElement)||t.node.parentNode&&P(t.node.parentNode)||r.select("svg")||r(0,0),i=e.select("defs"),n=null!=i&&i.node;return n||(n=T("defs",e.node).node),n}function m(t){return t.node.ownerSVGElement&&P(t.node.ownerSVGElement)||r.select("svg")}function v(t,e,i){function r(t){if(null==t)return N;if(t==+t)return t;n(h,{width:t});try{return h.getBBox().width}catch(e){return 0}}function s(t){if(null==t)return N;if(t==+t)return t;n(h,{height:t});try{return h.getBBox().height}catch(e){return 0}}function a(r,n){null==e?l[r]=n(t.attr(r)||0):r==e&&(l=n(null==i?t.attr(r)||0:i))}var o=m(t).node,l={},h=o.querySelector(".svg---mgr");switch(h||(h=n("rect"),n(h,{x:-9e9,y:-9e9,width:10,height:10,"class":"svg---mgr",fill:"none"}),o.appendChild(h)),t.type){case"rect":a("rx",r),a("ry",s);case"image":a("width",r),a("height",s);case"text":a("x",r),a("y",s);break;case"circle":a("cx",r),a("cy",s),a("r",r);break;case"ellipse":a("cx",r),a("cy",s),a("rx",r),a("ry",s);break;case"line":a("x1",r),a("x2",r),a("y1",s),a("y2",s);break;case"marker":a("refX",r),a("markerWidth",r),a("refY",s),a("markerHeight",s);break;case"radialGradient":a("fx",r),a("fy",s);break;case"tspan":a("dx",r),a("dy",s);break;default:a(e,r)}return o.removeChild(h),l}function y(t){s(t,"array")||(t=Array.prototype.slice.call(arguments,0));for(var e=0,i=0,r=this.node;this[e];)delete this[e++];for(e=0;e<t.length;e++)"set"==t[e].type?t[e].forEach(function(t){r.appendChild(t.node)}):r.appendChild(t[e].node);var n=r.childNodes;for(e=0;e<n.length;e++)this[i++]=P(n[e]);return this}function x(t){if(t.snap in W)return W[t.snap];var e,i=this.id=H();try{e=t.ownerSVGElement}catch(r){}if(this.node=t,e&&(this.paper=new w(e)),this.type=t.tagName,this.anims={},this._={transform:[]},t.snap=i,W[i]=this,"g"==this.type&&(this.add=y),this.type in{g:1,mask:1,pattern:1})for(var n in w.prototype)w.prototype[C](n)&&(this[n]=w.prototype[n])}function b(t){this.node=t}function T(t,e){var i=n(t);e.appendChild(i);var r=P(i);return r}function w(t,e){var i,r,s,a=w.prototype;if(t&&"svg"==t.tagName){if(t.snap in W)return W[t.snap];var o=t.ownerDocument;i=new x(t),r=t.getElementsByTagName("desc")[0],s=t.getElementsByTagName("defs")[0],r||(r=n("desc"),r.appendChild(o.createTextNode("Created with Snap")),i.node.appendChild(r)),s||(s=n("defs"),i.node.appendChild(s)),i.defs=s;for(var l in a)a[C](l)&&(i[l]=a[l]);i.paper=i.root=i}else i=T("svg",S.doc.body),n(i.node,{height:e,version:1.1,width:t,xmlns:Z});return i}function P(t){return t?t instanceof x||t instanceof b?t:t.tagName&&"svg"==t.tagName.toLowerCase()?new w(t):t.tagName&&"object"==t.tagName.toLowerCase()&&"image/svg+xml"==t.type?new w(t.contentDocument.getElementsByTagName("svg")[0]):new x(t):t}r.version="0.3.0",r.toString=function(){return"Snap v"+this.version},r._={};var S={win:t,doc:t.document};r._.glob=S;var C="hasOwnProperty",k=String,O=parseFloat,A=parseInt,R=Math,M=R.max,D=R.min,E=R.abs,F=(R.pow,R.PI),N=(R.round,""),I=" ",B=Object.prototype.toString,z=/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?%?)\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?%?)\s*\))\s*$/i,L="\t\n\x0B\f\r   ᠎             　\u2028\u2029",X=(r._.separator=new RegExp("[,"+L+"]+"),new RegExp("["+L+"]","g"),new RegExp("["+L+"]*,["+L+"]*")),j={hs:1,rg:1},U=new RegExp("([a-z])["+L+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+L+"]*,?["+L+"]*)+)","ig"),Y=new RegExp("([rstm])["+L+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+L+"]*,?["+L+"]*)+)","ig"),V=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+L+"]*,?["+L+"]*","ig"),q=0,G="S"+(+new Date).toString(36),H=function(){return G+(q++).toString(36)},$="http://www.w3.org/1999/xlink",Z="http://www.w3.org/2000/svg",W={},Q=r.url=function(t){return"url('#"+t+"')"};r._.$=n,r._.id=H,r.format=function(){var t=/\{([^\}]+)\}/g,e=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,i=function(t,i,r){var n=r;return i.replace(e,function(t,e,i,r,s){e=e||r,n&&(e in n&&(n=n[e]),"function"==typeof n&&s&&(n=n()))}),n=(null==n||n==r?t:n)+""};return function(e,r){return k(e).replace(t,function(t,e){return i(t,e,r)})}}(),r._.clone=a,r._.cacher=l,r.rad=u,r.deg=c,r.angle=h,r.is=s,r.snapTo=function(t,e,i){if(i=s(i,"finite")?i:10,s(t,"array")){for(var r=t.length;r--;)if(E(t[r]-e)<=i)return t[r]}else{t=+t;var n=e%t;if(n<i)return e-n;if(n>t-i)return e-n+t}return e},r.getRGB=l(function(t){if(!t||(t=k(t)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:et};if("none"==t)return{r:-1,g:-1,b:-1,hex:"none",toString:et};if(!(j[C](t.toLowerCase().substring(0,2))||"#"==t.charAt())&&(t=K(t)),!t)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:et};var e,i,n,a,o,l,h=t.match(z);return h?(h[2]&&(n=A(h[2].substring(5),16),i=A(h[2].substring(3,5),16),e=A(h[2].substring(1,3),16)),h[3]&&(n=A((o=h[3].charAt(3))+o,16),i=A((o=h[3].charAt(2))+o,16),e=A((o=h[3].charAt(1))+o,16)),h[4]&&(l=h[4].split(X),e=O(l[0]),"%"==l[0].slice(-1)&&(e*=2.55),i=O(l[1]),"%"==l[1].slice(-1)&&(i*=2.55),n=O(l[2]),"%"==l[2].slice(-1)&&(n*=2.55),"rgba"==h[1].toLowerCase().slice(0,4)&&(a=O(l[3])),l[3]&&"%"==l[3].slice(-1)&&(a/=100)),h[5]?(l=h[5].split(X),e=O(l[0]),"%"==l[0].slice(-1)&&(e/=100),i=O(l[1]),"%"==l[1].slice(-1)&&(i/=100),n=O(l[2]),"%"==l[2].slice(-1)&&(n/=100),("deg"==l[0].slice(-3)||"°"==l[0].slice(-1))&&(e/=360),"hsba"==h[1].toLowerCase().slice(0,4)&&(a=O(l[3])),l[3]&&"%"==l[3].slice(-1)&&(a/=100),r.hsb2rgb(e,i,n,a)):h[6]?(l=h[6].split(X),e=O(l[0]),"%"==l[0].slice(-1)&&(e/=100),i=O(l[1]),"%"==l[1].slice(-1)&&(i/=100),n=O(l[2]),"%"==l[2].slice(-1)&&(n/=100),("deg"==l[0].slice(-3)||"°"==l[0].slice(-1))&&(e/=360),"hsla"==h[1].toLowerCase().slice(0,4)&&(a=O(l[3])),l[3]&&"%"==l[3].slice(-1)&&(a/=100),r.hsl2rgb(e,i,n,a)):(e=D(R.round(e),255),i=D(R.round(i),255),n=D(R.round(n),255),a=D(M(a,0),1),h={r:e,g:i,b:n,toString:et},h.hex="#"+(16777216|n|i<<8|e<<16).toString(16).slice(1),h.opacity=s(a,"finite")?a:1,h)):{r:-1,g:-1,b:-1,hex:"none",error:1,toString:et}},r),r.hsb=l(function(t,e,i){return r.hsb2rgb(t,e,i).hex}),r.hsl=l(function(t,e,i){return r.hsl2rgb(t,e,i).hex}),r.rgb=l(function(t,e,i,r){if(s(r,"finite")){var n=R.round;return"rgba("+[n(t),n(e),n(i),+r.toFixed(2)]+")"}return"#"+(16777216|i|e<<8|t<<16).toString(16).slice(1)});var K=function(t){var e=S.doc.getElementsByTagName("head")[0]||S.doc.getElementsByTagName("svg")[0],i="rgb(255, 0, 0)";return(K=l(function(t){if("red"==t.toLowerCase())return i;e.style.color=i,e.style.color=t;var r=S.doc.defaultView.getComputedStyle(e,N).getPropertyValue("color");return r==i?null:r}))(t)},J=function(){return"hsb("+[this.h,this.s,this.b]+")"},tt=function(){return"hsl("+[this.h,this.s,this.l]+")"},et=function(){return 1==this.opacity||null==this.opacity?this.hex:"rgba("+[this.r,this.g,this.b,this.opacity]+")"},it=function(t,e,i){if(null==e&&s(t,"object")&&"r"in t&&"g"in t&&"b"in t&&(i=t.b,e=t.g,t=t.r),null==e&&s(t,string)){var n=r.getRGB(t);t=n.r,e=n.g,i=n.b}return(t>1||e>1||i>1)&&(t/=255,e/=255,i/=255),[t,e,i]},rt=function(t,e,i,n){t=R.round(255*t),e=R.round(255*e),i=R.round(255*i);var a={r:t,g:e,b:i,opacity:s(n,"finite")?n:1,hex:r.rgb(t,e,i),toString:et};return s(n,"finite")&&(a.opacity=n),a};r.color=function(t){var e;return s(t,"object")&&"h"in t&&"s"in t&&"b"in t?(e=r.hsb2rgb(t),t.r=e.r,t.g=e.g,t.b=e.b,t.opacity=1,t.hex=e.hex):s(t,"object")&&"h"in t&&"s"in t&&"l"in t?(e=r.hsl2rgb(t),t.r=e.r,t.g=e.g,t.b=e.b,t.opacity=1,t.hex=e.hex):(s(t,"string")&&(t=r.getRGB(t)),s(t,"object")&&"r"in t&&"g"in t&&"b"in t&&!("error"in t)?(e=r.rgb2hsl(t),t.h=e.h,t.s=e.s,t.l=e.l,e=r.rgb2hsb(t),t.v=e.b):(t={hex:"none"},t.r=t.g=t.b=t.h=t.s=t.v=t.l=-1,t.error=1)),t.toString=et,t},r.hsb2rgb=function(t,e,i,r){s(t,"object")&&"h"in t&&"s"in t&&"b"in t&&(i=t.b,e=t.s,t=t.h,r=t.o),t*=360;var n,a,o,l,h;return t=t%360/60,h=i*e,l=h*(1-E(t%2-1)),n=a=o=i-h,t=~~t,n+=[h,l,0,0,l,h][t],a+=[l,h,h,l,0,0][t],o+=[0,0,l,h,h,l][t],rt(n,a,o,r)},r.hsl2rgb=function(t,e,i,r){s(t,"object")&&"h"in t&&"s"in t&&"l"in t&&(i=t.l,e=t.s,t=t.h),(t>1||e>1||i>1)&&(t/=360,e/=100,i/=100),t*=360;var n,a,o,l,h;return t=t%360/60,h=2*e*(i<.5?i:1-i),l=h*(1-E(t%2-1)),n=a=o=i-h/2,t=~~t,n+=[h,l,0,0,l,h][t],a+=[l,h,h,l,0,0][t],o+=[0,0,l,h,h,l][t],rt(n,a,o,r)},r.rgb2hsb=function(t,e,i){i=it(t,e,i),t=i[0],e=i[1],i=i[2];var r,n,s,a;return s=M(t,e,i),a=s-D(t,e,i),r=0==a?null:s==t?(e-i)/a:s==e?(i-t)/a+2:(t-e)/a+4,r=(r+360)%6*60/360,n=0==a?0:a/s,{h:r,s:n,b:s,toString:J}},r.rgb2hsl=function(t,e,i){i=it(t,e,i),t=i[0],e=i[1],i=i[2];var r,n,s,a,o,l;
return a=M(t,e,i),o=D(t,e,i),l=a-o,r=0==l?null:a==t?(e-i)/l:a==e?(i-t)/l+2:(t-e)/l+4,r=(r+360)%6*60/360,s=(a+o)/2,n=0==l?0:s<.5?l/(2*s):l/(2-2*s),{h:r,s:n,l:s,toString:tt}},r.parsePathString=function(t){if(!t)return null;var e=r.path(t);if(e.arr)return r.path.clone(e.arr);var i={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return s(t,"array")&&s(t[0],"array")&&(n=r.path.clone(t)),n.length||k(t).replace(U,function(t,e,r){var s=[],a=e.toLowerCase();if(r.replace(V,function(t,e){e&&s.push(+e)}),"m"==a&&s.length>2&&(n.push([e].concat(s.splice(0,2))),a="l",e="m"==e?"l":"L"),"o"==a&&1==s.length&&n.push([e,s[0]]),"r"==a)n.push([e].concat(s));else for(;s.length>=i[a]&&(n.push([e].concat(s.splice(0,i[a]))),i[a]););}),n.toString=r.path.toString,e.arr=r.path.clone(n),n};var nt=r.parseTransformString=function(t){if(!t)return null;var e=[];return s(t,"array")&&s(t[0],"array")&&(e=r.path.clone(t)),e.length||k(t).replace(Y,function(t,i,r){var n=[];i.toLowerCase();r.replace(V,function(t,e){e&&n.push(+e)}),e.push([i].concat(n))}),e.toString=r.path.toString,e};r._.svgTransform2string=f,r._.rgTransform=new RegExp("^[a-z]["+L+"]*-?\\.?\\d","i"),r._.transform2matrix=p,r._unit2px=v;S.doc.contains||S.doc.compareDocumentPosition?function(t,e){var i=9==t.nodeType?t.documentElement:t,r=e&&e.parentNode;return t==r||!(!r||1!=r.nodeType||!(i.contains?i.contains(r):t.compareDocumentPosition&&16&t.compareDocumentPosition(r)))}:function(t,e){if(e)for(;e;)if(e=e.parentNode,e==t)return!0;return!1};r._.getSomeDefs=_,r._.getSomeSVG=m,r.select=function(t){return P(S.doc.querySelector(t))},r.selectAll=function(t){for(var e=S.doc.querySelectorAll(t),i=(r.set||Array)(),n=0;n<e.length;n++)i.push(P(e[n]));return i},setInterval(function(){for(var t in W)if(W[C](t)){var e=W[t],i=e.node;("svg"!=e.type&&!i.ownerSVGElement||"svg"==e.type&&(!i.parentNode||"ownerSVGElement"in i.parentNode&&!i.ownerSVGElement))&&delete W[t]}},1e4),function(t){function a(t){function e(t,e){var i=n(t.node,e);i=i&&i.match(a),i=i&&i[2],i&&"#"==i.charAt()&&(i=i.substring(1),i&&(l[i]=(l[i]||[]).concat(function(i){var r={};r[e]=Q(i),n(t.node,r)})))}function i(t){var e=n(t.node,"xlink:href");e&&"#"==e.charAt()&&(e=e.substring(1),e&&(l[e]=(l[e]||[]).concat(function(e){t.attr("xlink:href","#"+e)})))}for(var r,s=t.selectAll("*"),a=/^\s*url\(("|'|)(.*)\1\)\s*$/,o=[],l={},h=0,u=s.length;h<u;h++){r=s[h],e(r,"fill"),e(r,"stroke"),e(r,"filter"),e(r,"mask"),e(r,"clip-path"),i(r);var c=n(r.node,"id");c&&(n(r.node,{id:r.id}),o.push({old:c,id:r.id}))}for(h=0,u=o.length;h<u;h++){var f=l[o[h].old];if(f)for(var p=0,d=f.length;p<d;p++)f[p](o[h].id)}}function o(t,e,i){return function(r){var n=r.slice(t,e);return 1==n.length&&(n=n[0]),i?i(n):n}}function l(t){return function(){var e=t?"<"+this.type:"",i=this.node.attributes,r=this.node.childNodes;if(t)for(var n=0,s=i.length;n<s;n++)e+=" "+i[n].name+'="'+i[n].value.replace(/"/g,'\\"')+'"';if(r.length){for(t&&(e+=">"),n=0,s=r.length;n<s;n++)3==r[n].nodeType?e+=r[n].nodeValue:1==r[n].nodeType&&(e+=P(r[n]).toString());t&&(e+="</"+this.type+">")}else t&&(e+="/>");return e}}t.attr=function(t,i){var r=this;r.node;if(!t)return r;if(s(t,"string")){if(!(arguments.length>1))return e("snap.util.getattr."+t,r).firstDefined();var n={};n[t]=i,t=n}for(var a in t)t[C](a)&&e("snap.util.attr."+a,r,t[a]);return r},t.getBBox=function(t){if(!r.Matrix||!r.path)return this.node.getBBox();var e=this,i=new r.Matrix;if(e.removed)return r._.box();for(;"use"==e.type;)if(t||(i=i.add(e.transform().localMatrix.translate(e.attr("x")||0,e.attr("y")||0))),e.original)e=e.original;else{var n=e.attr("xlink:href");e=e.original=e.node.ownerDocument.getElementById(n.substring(n.indexOf("#")+1))}var s=e._,a=r.path.get[e.type]||r.path.get.deflt;try{return t?(s.bboxwt=a?r.path.getBBox(e.realPath=a(e)):r._.box(e.node.getBBox()),r._.box(s.bboxwt)):(e.realPath=a(e),e.matrix=e.transform().localMatrix,s.bbox=r.path.getBBox(r.path.map(e.realPath,i.add(e.matrix))),r._.box(s.bbox))}catch(o){return r._.box()}};var h=function(){return this.string};t.transform=function(t){var e=this._;if(null==t){for(var i,s=this,a=new r.Matrix(this.node.getCTM()),o=d(this),l=[o],u=new r.Matrix,c=o.toTransformString(),f=k(o)==k(this.matrix)?k(e.transform):c;"svg"!=s.type&&(s=s.parent());)l.push(d(s));for(i=l.length;i--;)u.add(l[i]);return{string:f,globalMatrix:a,totalMatrix:u,localMatrix:o,diffMatrix:a.clone().add(o.invert()),global:a.toTransformString(),total:u.toTransformString(),local:c,toString:h}}return t instanceof r.Matrix?this.matrix=t:d(this,t),this.node&&("linearGradient"==this.type||"radialGradient"==this.type?n(this.node,{gradientTransform:this.matrix}):"pattern"==this.type?n(this.node,{patternTransform:this.matrix}):n(this.node,{transform:this.matrix})),this},t.parent=function(){return P(this.node.parentNode)},t.append=t.add=function(t){if(t){if("set"==t.type){var e=this;return t.forEach(function(t){e.add(t)}),this}t=P(t),this.node.appendChild(t.node),t.paper=this.paper}return this},t.appendTo=function(t){return t&&(t=P(t),t.append(this)),this},t.prepend=function(t){if(t){if("set"==t.type){var e,i=this;return t.forEach(function(t){e?e.after(t):i.prepend(t),e=t}),this}t=P(t);var r=t.parent();this.node.insertBefore(t.node,this.node.firstChild),this.add&&this.add(),t.paper=this.paper,this.parent()&&this.parent().add(),r&&r.add()}return this},t.prependTo=function(t){return t=P(t),t.prepend(this),this},t.before=function(t){if("set"==t.type){var e=this;return t.forEach(function(t){var i=t.parent();e.node.parentNode.insertBefore(t.node,e.node),i&&i.add()}),this.parent().add(),this}t=P(t);var i=t.parent();return this.node.parentNode.insertBefore(t.node,this.node),this.parent()&&this.parent().add(),i&&i.add(),t.paper=this.paper,this},t.after=function(t){t=P(t);var e=t.parent();return this.node.nextSibling?this.node.parentNode.insertBefore(t.node,this.node.nextSibling):this.node.parentNode.appendChild(t.node),this.parent()&&this.parent().add(),e&&e.add(),t.paper=this.paper,this},t.insertBefore=function(t){t=P(t);var e=this.parent();return t.node.parentNode.insertBefore(this.node,t.node),this.paper=t.paper,e&&e.add(),t.parent()&&t.parent().add(),this},t.insertAfter=function(t){t=P(t);var e=this.parent();return t.node.parentNode.insertBefore(this.node,t.node.nextSibling),this.paper=t.paper,e&&e.add(),t.parent()&&t.parent().add(),this},t.remove=function(){var t=this.parent();return this.node.parentNode&&this.node.parentNode.removeChild(this.node),delete this.paper,this.removed=!0,t&&t.add(),this},t.select=function(t){return P(this.node.querySelector(t))},t.selectAll=function(t){for(var e=this.node.querySelectorAll(t),i=(r.set||Array)(),n=0;n<e.length;n++)i.push(P(e[n]));return i},t.asPX=function(t,e){return null==e&&(e=this.attr(t)),+v(this,t,e)},t.use=function(){var t,e=this.node.id;return e||(e=this.id,n(this.node,{id:e})),t="linearGradient"==this.type||"radialGradient"==this.type||"pattern"==this.type?T(this.type,this.node.parentNode):T("use",this.node.parentNode),n(t.node,{"xlink:href":"#"+e}),t.original=this,t};var u=/\S+/g;t.addClass=function(t){var e,i,r,n,s=(t||"").match(u)||[],a=this.node,o=a.className.baseVal,l=o.match(u)||[];if(s.length){for(e=0;r=s[e++];)i=l.indexOf(r),~i||l.push(r);n=l.join(" "),o!=n&&(a.className.baseVal=n)}return this},t.removeClass=function(t){var e,i,r,n,s=(t||"").match(u)||[],a=this.node,o=a.className.baseVal,l=o.match(u)||[];if(l.length){for(e=0;r=s[e++];)i=l.indexOf(r),~i&&l.splice(i,1);n=l.join(" "),o!=n&&(a.className.baseVal=n)}return this},t.hasClass=function(t){var e=this.node,i=e.className.baseVal,r=i.match(u)||[];return!!~r.indexOf(t)},t.toggleClass=function(t,e){if(null!=e)return e?this.addClass(t):this.removeClass(t);var i,r,n,s,a=(t||"").match(u)||[],o=this.node,l=o.className.baseVal,h=l.match(u)||[];for(i=0;n=a[i++];)r=h.indexOf(n),~r?h.splice(r,1):h.push(n);return s=h.join(" "),l!=s&&(o.className.baseVal=s),this},t.clone=function(){var t=P(this.node.cloneNode(!0));return n(t.node,"id")&&n(t.node,{id:t.id}),a(t),t.insertAfter(this),t},t.toDefs=function(){var t=_(this);return t.appendChild(this.node),this},t.pattern=t.toPattern=function(t,e,i,r){var a=T("pattern",_(this));return null==t&&(t=this.getBBox()),s(t,"object")&&"x"in t&&(e=t.y,i=t.width,r=t.height,t=t.x),n(a.node,{x:t,y:e,width:i,height:r,patternUnits:"userSpaceOnUse",id:a.id,viewBox:[t,e,i,r].join(" ")}),a.node.appendChild(this.node),a},t.marker=function(t,e,i,r,a,o){var l=T("marker",_(this));return null==t&&(t=this.getBBox()),s(t,"object")&&"x"in t&&(e=t.y,i=t.width,r=t.height,a=t.refX||t.cx,o=t.refY||t.cy,t=t.x),n(l.node,{viewBox:[t,e,i,r].join(I),markerWidth:i,markerHeight:r,orient:"auto",refX:a||0,refY:o||0,id:l.id}),l.node.appendChild(this.node),l};var c=function(t,e,r,n){"function"!=typeof r||r.length||(n=r,r=i.linear),this.attr=t,this.dur=e,r&&(this.easing=r),n&&(this.callback=n)};r._.Animation=c,r.animation=function(t,e,i,r){return new c(t,e,i,r)},t.inAnim=function(){var t=this,e=[];for(var i in t.anims)t.anims[C](i)&&!function(t){e.push({anim:new c(t._attrs,t.dur,t.easing,t._callback),mina:t,curStatus:t.status(),status:function(e){return t.status(e)},stop:function(){t.stop()}})}(t.anims[i]);return e},r.animate=function(t,r,n,s,a,o){"function"!=typeof a||a.length||(o=a,a=i.linear);var l=i.time(),h=i(t,r,l,l+s,i.time,n,a);return o&&e.once("mina.finish."+h.id,o),h},t.stop=function(){for(var t=this.inAnim(),e=0,i=t.length;e<i;e++)t[e].stop();return this},t.animate=function(t,r,n,a){"function"!=typeof n||n.length||(a=n,n=i.linear),t instanceof c&&(a=t.callback,n=t.easing,r=n.dur,t=t.attr);var l,h,u,f,p=[],d=[],_={},m=this;for(var g in t)if(t[C](g)){m.equal?(f=m.equal(g,k(t[g])),l=f.from,h=f.to,u=f.f):(l=+m.attr(g),h=+t[g]);var v=s(l,"array")?l.length:1;_[g]=o(p.length,p.length+v,u),p=p.concat(l),d=d.concat(h)}var y=i.time(),x=i(p,d,y,y+r,i.time,function(t){var e={};for(var i in _)_[C](i)&&(e[i]=_[i](t));m.attr(e)},n);return m.anims[x.id]=x,x._attrs=t,x._callback=a,e("snap.animcreated."+m.id,x),e.once("mina.finish."+x.id,function(){delete m.anims[x.id],a&&a.call(m)}),e.once("mina.stop."+x.id,function(){delete m.anims[x.id]}),m};var f={};t.data=function(t,i){var n=f[this.id]=f[this.id]||{};if(0==arguments.length)return e("snap.data.get."+this.id,this,n,null),n;if(1==arguments.length){if(r.is(t,"object")){for(var s in t)t[C](s)&&this.data(s,t[s]);return this}return e("snap.data.get."+this.id,this,n[t],t),n[t]}return n[t]=i,e("snap.data.set."+this.id,this,i,t),this},t.removeData=function(t){return null==t?f[this.id]={}:f[this.id]&&delete f[this.id][t],this},t.outerSVG=t.toString=l(1),t.innerSVG=l()}(x.prototype),r.parse=function(t){var e=S.doc.createDocumentFragment(),i=!0,r=S.doc.createElement("div");if(t=k(t),t.match(/^\s*<\s*svg(?:\s|>)/)||(t="<svg>"+t+"</svg>",i=!1),r.innerHTML=t,t=r.getElementsByTagName("svg")[0])if(i)e=t;else for(;t.firstChild;)e.appendChild(t.firstChild);return r.innerHTML=N,new b(e)},b.prototype.select=x.prototype.select,b.prototype.selectAll=x.prototype.selectAll,r.fragment=function(){for(var t=Array.prototype.slice.call(arguments,0),e=S.doc.createDocumentFragment(),i=0,n=t.length;i<n;i++){var s=t[i];s.node&&s.node.nodeType&&e.appendChild(s.node),s.nodeType&&e.appendChild(s),"string"==typeof s&&e.appendChild(r.parse(s).node)}return new b(e)},r._.make=T,r._.wrap=P,w.prototype.el=function(t,e){var i=T(t,this.node);return e&&i.attr(e),i},e.on("snap.util.getattr",function(){var t=e.nt();t=t.substring(t.lastIndexOf(".")+1);var i=t.replace(/[A-Z]/g,function(t){return"-"+t.toLowerCase()});return st[C](i)?this.node.ownerDocument.defaultView.getComputedStyle(this.node,null).getPropertyValue(i):n(this.node,t)});var st={"alignment-baseline":0,"baseline-shift":0,clip:0,"clip-path":0,"clip-rule":0,color:0,"color-interpolation":0,"color-interpolation-filters":0,"color-profile":0,"color-rendering":0,cursor:0,direction:0,display:0,"dominant-baseline":0,"enable-background":0,fill:0,"fill-opacity":0,"fill-rule":0,filter:0,"flood-color":0,"flood-opacity":0,font:0,"font-family":0,"font-size":0,"font-size-adjust":0,"font-stretch":0,"font-style":0,"font-variant":0,"font-weight":0,"glyph-orientation-horizontal":0,"glyph-orientation-vertical":0,"image-rendering":0,kerning:0,"letter-spacing":0,"lighting-color":0,marker:0,"marker-end":0,"marker-mid":0,"marker-start":0,mask:0,opacity:0,overflow:0,"pointer-events":0,"shape-rendering":0,"stop-color":0,"stop-opacity":0,stroke:0,"stroke-dasharray":0,"stroke-dashoffset":0,"stroke-linecap":0,"stroke-linejoin":0,"stroke-miterlimit":0,"stroke-opacity":0,"stroke-width":0,"text-anchor":0,"text-decoration":0,"text-rendering":0,"unicode-bidi":0,visibility:0,"word-spacing":0,"writing-mode":0};e.on("snap.util.attr",function(t){var i=e.nt(),r={};i=i.substring(i.lastIndexOf(".")+1),r[i]=t;var s=i.replace(/-(\w)/gi,function(t,e){return e.toUpperCase()}),a=i.replace(/[A-Z]/g,function(t){return"-"+t.toLowerCase()});st[C](a)?this.node.style[s]=null==t?N:t:n(this.node,r)}),function(t){}(w.prototype),r.ajax=function(t,i,r,n){var a=new XMLHttpRequest,o=H();if(a){if(s(i,"function"))n=r,r=i,i=null;else if(s(i,"object")){var l=[];for(var h in i)i.hasOwnProperty(h)&&l.push(encodeURIComponent(h)+"="+encodeURIComponent(i[h]));i=l.join("&")}return a.open(i?"POST":"GET",t,!0),i&&(a.setRequestHeader("X-Requested-With","XMLHttpRequest"),a.setRequestHeader("Content-type","application/x-www-form-urlencoded")),r&&(e.once("snap.ajax."+o+".0",r),e.once("snap.ajax."+o+".200",r),e.once("snap.ajax."+o+".304",r)),a.onreadystatechange=function(){4==a.readyState&&e("snap.ajax."+o+"."+a.status,n,a)},4==a.readyState?a:(a.send(i),a)}},r.load=function(t,e,i){r.ajax(t,function(t){var n=r.parse(t.responseText);i?e.call(i,n):e(n)})};var at=function(t){var e=t.getBoundingClientRect(),i=t.ownerDocument,r=i.body,n=i.documentElement,s=n.clientTop||r.clientTop||0,a=n.clientLeft||r.clientLeft||0,o=e.top+(g.win.pageYOffset||n.scrollTop||r.scrollTop)-s,l=e.left+(g.win.pageXOffset||n.scrollLeft||r.scrollLeft)-a;return{y:o,x:l}};return r.getElementByPoint=function(t,e){var i=this,r=(i.canvas,S.doc.elementFromPoint(t,e));if(S.win.opera&&"svg"==r.tagName){var n=at(r),s=r.createSVGRect();s.x=t-n.x,s.y=e-n.y,s.width=s.height=1;var a=r.getIntersectionList(s,null);a.length&&(r=a[a.length-1])}return r?P(r):null},r.plugin=function(t){t(r,x,w,S,b)},S.win.Snap=r,r}();return r.plugin(function(t,e,i,r,n){function s(t,e,i,r,n,s){return null==e&&"[object SVGMatrix]"==a.call(t)?(this.a=t.a,this.b=t.b,this.c=t.c,this.d=t.d,this.e=t.e,void(this.f=t.f)):void(null!=t?(this.a=+t,this.b=+e,this.c=+i,this.d=+r,this.e=+n,this.f=+s):(this.a=1,this.b=0,this.c=0,this.d=1,this.e=0,this.f=0))}var a=Object.prototype.toString,o=String,l=Math,h="";!function(e){function i(t){return t[0]*t[0]+t[1]*t[1]}function r(t){var e=l.sqrt(i(t));t[0]&&(t[0]/=e),t[1]&&(t[1]/=e)}e.add=function(t,e,i,r,n,a){var o,l,h,u,c=[[],[],[]],f=[[this.a,this.c,this.e],[this.b,this.d,this.f],[0,0,1]],p=[[t,i,n],[e,r,a],[0,0,1]];for(t&&t instanceof s&&(p=[[t.a,t.c,t.e],[t.b,t.d,t.f],[0,0,1]]),o=0;o<3;o++)for(l=0;l<3;l++){for(u=0,h=0;h<3;h++)u+=f[o][h]*p[h][l];c[o][l]=u}return this.a=c[0][0],this.b=c[1][0],this.c=c[0][1],this.d=c[1][1],this.e=c[0][2],this.f=c[1][2],this},e.invert=function(){var t=this,e=t.a*t.d-t.b*t.c;return new s(t.d/e,-t.b/e,-t.c/e,t.a/e,(t.c*t.f-t.d*t.e)/e,(t.b*t.e-t.a*t.f)/e)},e.clone=function(){return new s(this.a,this.b,this.c,this.d,this.e,this.f)},e.translate=function(t,e){return this.add(1,0,0,1,t,e)},e.scale=function(t,e,i,r){return null==e&&(e=t),(i||r)&&this.add(1,0,0,1,i,r),this.add(t,0,0,e,0,0),(i||r)&&this.add(1,0,0,1,-i,-r),this},e.rotate=function(e,i,r){e=t.rad(e),i=i||0,r=r||0;var n=+l.cos(e).toFixed(9),s=+l.sin(e).toFixed(9);return this.add(n,s,-s,n,i,r),this.add(1,0,0,1,-i,-r)},e.x=function(t,e){return t*this.a+e*this.c+this.e},e.y=function(t,e){return t*this.b+e*this.d+this.f},e.get=function(t){return+this[o.fromCharCode(97+t)].toFixed(4)},e.toString=function(){return"matrix("+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)].join()+")"},e.offset=function(){return[this.e.toFixed(4),this.f.toFixed(4)]},e.determinant=function(){return this.a*this.d-this.b*this.c},e.split=function(){var e={};e.dx=this.e,e.dy=this.f;var n=[[this.a,this.c],[this.b,this.d]];e.scalex=l.sqrt(i(n[0])),r(n[0]),e.shear=n[0][0]*n[1][0]+n[0][1]*n[1][1],n[1]=[n[1][0]-n[0][0]*e.shear,n[1][1]-n[0][1]*e.shear],e.scaley=l.sqrt(i(n[1])),r(n[1]),e.shear/=e.scaley,this.determinant()<0&&(e.scalex=-e.scalex);var s=-n[0][1],a=n[1][1];return a<0?(e.rotate=t.deg(l.acos(a)),s<0&&(e.rotate=360-e.rotate)):e.rotate=t.deg(l.asin(s)),e.isSimple=!(+e.shear.toFixed(9)||e.scalex.toFixed(9)!=e.scaley.toFixed(9)&&e.rotate),e.isSuperSimple=!+e.shear.toFixed(9)&&e.scalex.toFixed(9)==e.scaley.toFixed(9)&&!e.rotate,e.noRotation=!+e.shear.toFixed(9)&&!e.rotate,e},e.toTransformString=function(t){var e=t||this.split();return+e.shear.toFixed(9)?"m"+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)]:(e.scalex=+e.scalex.toFixed(4),e.scaley=+e.scaley.toFixed(4),e.rotate=+e.rotate.toFixed(4),(e.dx||e.dy?"t"+[+e.dx.toFixed(4),+e.dy.toFixed(4)]:h)+(1!=e.scalex||1!=e.scaley?"s"+[e.scalex,e.scaley,0,0]:h)+(e.rotate?"r"+[+e.rotate.toFixed(4),0,0]:h))}}(s.prototype),t.Matrix=s,t.matrix=function(t,e,i,r,n,a){return new s(t,e,i,r,n,a)}}),r.plugin(function(t,i,r,n,s){function a(r){return function(n){if(e.stop(),n instanceof s&&1==n.node.childNodes.length&&("radialGradient"==n.node.firstChild.tagName||"linearGradient"==n.node.firstChild.tagName||"pattern"==n.node.firstChild.tagName)&&(n=n.node.firstChild,p(this).appendChild(n),n=c(n)),n instanceof i)if("radialGradient"==n.type||"linearGradient"==n.type||"pattern"==n.type){n.node.id||_(n.node,{id:n.id});var a=m(n.node.id)}else a=n.attr(r);else if(a=t.color(n),a.error){var o=t(p(this).ownerSVGElement).gradient(n);o?(o.node.id||_(o.node,{id:o.id}),a=m(o.node.id)):a=n}else a=g(a);var l={};l[r]=a,_(this.node,l),this.node.style[r]=y}}function o(t){e.stop(),t==+t&&(t+="px"),this.node.style.fontSize=t}function l(t){for(var e=[],i=t.childNodes,r=0,n=i.length;r<n;r++){var s=i[r];3==s.nodeType&&e.push(s.nodeValue),"tspan"==s.tagName&&(1==s.childNodes.length&&3==s.firstChild.nodeType?e.push(s.firstChild.nodeValue):e.push(l(s)))}return e}function h(){return e.stop(),this.node.style.fontSize}var u=t._.make,c=t._.wrap,f=t.is,p=t._.getSomeDefs,d=/^url\(#?([^)]+)\)$/,_=t._.$,m=t.url,g=String,v=t._.separator,y="";e.on("snap.util.attr.mask",function(t){if(t instanceof i||t instanceof s){if(e.stop(),t instanceof s&&1==t.node.childNodes.length&&(t=t.node.firstChild,p(this).appendChild(t),t=c(t)),"mask"==t.type)var r=t;else r=u("mask",p(this)),r.node.appendChild(t.node);!r.node.id&&_(r.node,{id:r.id}),_(this.node,{mask:m(r.id)})}}),function(t){e.on("snap.util.attr.clip",t),e.on("snap.util.attr.clip-path",t),e.on("snap.util.attr.clipPath",t)}(function(t){if(t instanceof i||t instanceof s){if(e.stop(),"clipPath"==t.type)var r=t;else r=u("clipPath",p(this)),r.node.appendChild(t.node),!r.node.id&&_(r.node,{id:r.id});_(this.node,{"clip-path":m(r.id)})}}),e.on("snap.util.attr.fill",a("fill")),e.on("snap.util.attr.stroke",a("stroke"));var x=/^([lr])(?:\(([^)]*)\))?(.*)$/i;e.on("snap.util.grad.parse",function(t){t=g(t);var e=t.match(x);if(!e)return null;var i=e[1],r=e[2],n=e[3];return r=r.split(/\s*,\s*/).map(function(t){return+t==t?+t:t}),1==r.length&&0==r[0]&&(r=[]),n=n.split("-"),n=n.map(function(t){t=t.split(":");var e={color:t[0]};return t[1]&&(e.offset=parseFloat(t[1])),e}),{type:i,params:r,stops:n}}),e.on("snap.util.attr.d",function(i){e.stop(),f(i,"array")&&f(i[0],"array")&&(i=t.path.toString.call(i)),i=g(i),i.match(/[ruo]/i)&&(i=t.path.toAbsolute(i)),_(this.node,{d:i})})(-1),e.on("snap.util.attr.#text",function(t){e.stop(),t=g(t);for(var i=n.doc.createTextNode(t);this.node.firstChild;)this.node.removeChild(this.node.firstChild);this.node.appendChild(i)})(-1),e.on("snap.util.attr.path",function(t){e.stop(),this.attr({d:t})})(-1),e.on("snap.util.attr.class",function(t){e.stop(),this.node.className.baseVal=t})(-1),e.on("snap.util.attr.viewBox",function(t){var i;i=f(t,"object")&&"x"in t?[t.x,t.y,t.width,t.height].join(" "):f(t,"array")?t.join(" "):t,_(this.node,{viewBox:i}),e.stop()})(-1),e.on("snap.util.attr.transform",function(t){this.transform(t),e.stop()})(-1),e.on("snap.util.attr.r",function(t){"rect"==this.type&&(e.stop(),_(this.node,{rx:t,ry:t}))})(-1),e.on("snap.util.attr.textpath",function(t){if(e.stop(),"text"==this.type){var r,n,s;if(!t&&this.textPath){for(n=this.textPath;n.node.firstChild;)this.node.appendChild(n.node.firstChild);return n.remove(),void delete this.textPath}if(f(t,"string")){var a=p(this),o=c(a.parentNode).path(t);a.appendChild(o.node),r=o.id,o.attr({id:r})}else t=c(t),t instanceof i&&(r=t.attr("id"),r||(r=t.id,t.attr({id:r})));if(r)if(n=this.textPath,s=this.node,n)n.attr({"xlink:href":"#"+r});else{for(n=_("textPath",{"xlink:href":"#"+r});s.firstChild;)n.appendChild(s.firstChild);s.appendChild(n),this.textPath=c(n)}}})(-1),e.on("snap.util.attr.text",function(t){if("text"==this.type){for(var i=this.node,r=function(t){var e=_("tspan");if(f(t,"array"))for(var i=0;i<t.length;i++)e.appendChild(r(t[i]));else e.appendChild(n.doc.createTextNode(t));return e.normalize&&e.normalize(),e};i.firstChild;)i.removeChild(i.firstChild);for(var s=r(t);s.firstChild;)i.appendChild(s.firstChild)}e.stop()})(-1),e.on("snap.util.attr.fontSize",o)(-1),e.on("snap.util.attr.font-size",o)(-1),e.on("snap.util.getattr.transform",function(){return e.stop(),this.transform()})(-1),e.on("snap.util.getattr.textpath",function(){return e.stop(),this.textPath})(-1),function(){function i(i){return function(){e.stop();var r=n.doc.defaultView.getComputedStyle(this.node,null).getPropertyValue("marker-"+i);return"none"==r?r:t(n.doc.getElementById(r.match(d)[1]))}}function r(t){return function(i){e.stop();var r="marker"+t.charAt(0).toUpperCase()+t.substring(1);if(""==i||!i)return void(this.node.style[r]="none");if("marker"==i.type){var n=i.node.id;return n||_(i.node,{id:i.id}),void(this.node.style[r]=m(n))}}}e.on("snap.util.getattr.marker-end",i("end"))(-1),e.on("snap.util.getattr.markerEnd",i("end"))(-1),e.on("snap.util.getattr.marker-start",i("start"))(-1),e.on("snap.util.getattr.markerStart",i("start"))(-1),e.on("snap.util.getattr.marker-mid",i("mid"))(-1),e.on("snap.util.getattr.markerMid",i("mid"))(-1),e.on("snap.util.attr.marker-end",r("end"))(-1),e.on("snap.util.attr.markerEnd",r("end"))(-1),e.on("snap.util.attr.marker-start",r("start"))(-1),e.on("snap.util.attr.markerStart",r("start"))(-1),e.on("snap.util.attr.marker-mid",r("mid"))(-1),e.on("snap.util.attr.markerMid",r("mid"))(-1)}(),e.on("snap.util.getattr.r",function(){if("rect"==this.type&&_(this.node,"rx")==_(this.node,"ry"))return e.stop(),_(this.node,"rx")})(-1),e.on("snap.util.getattr.text",function(){if("text"==this.type||"tspan"==this.type){e.stop();var t=l(this.node);return 1==t.length?t[0]:t}})(-1),e.on("snap.util.getattr.#text",function(){return this.node.textContent})(-1),e.on("snap.util.getattr.viewBox",function(){e.stop();var i=_(this.node,"viewBox");return i?(i=i.split(v),t._.box(+i[0],+i[1],+i[2],+i[3])):void 0})(-1),e.on("snap.util.getattr.points",function(){var t=_(this.node,"points");return e.stop(),t?t.split(v):void 0})(-1),e.on("snap.util.getattr.path",function(){var t=_(this.node,"d");return e.stop(),t})(-1),e.on("snap.util.getattr.class",function(){return this.node.className.baseVal})(-1),e.on("snap.util.getattr.fontSize",h)(-1),e.on("snap.util.getattr.font-size",h)(-1)}),r.plugin(function(t,i,r,n,s){function a(t){return t}function o(t){return function(e){return+e.toFixed(3)+t}}var l={"+":function(t,e){return t+e},"-":function(t,e){return t-e},"/":function(t,e){return t/e},"*":function(t,e){return t*e}},h=String,u=/[a-z]+$/i,c=/^\s*([+\-\/*])\s*=\s*([\d.eE+\-]+)\s*([^\d\s]+)?\s*$/;e.on("snap.util.attr",function(t){var i=h(t).match(c);if(i){var r=e.nt(),n=r.substring(r.lastIndexOf(".")+1),s=this.attr(n),a={};e.stop();var o=i[3]||"",f=s.match(u),p=l[i[1]];if(f&&f==o?t=p(parseFloat(s),+i[2]):(s=this.asPX(n),t=p(this.asPX(n),this.asPX(n,i[2]+o))),isNaN(s)||isNaN(t))return;a[n]=t,this.attr(a)}})(-10),e.on("snap.util.equal",function(t,i){var r=h(this.attr(t)||""),n=h(i).match(c);if(n){e.stop();var s=n[3]||"",f=r.match(u),p=l[n[1]];return f&&f==s?{from:parseFloat(r),to:p(parseFloat(r),+n[2]),f:o(f)}:(r=this.asPX(t),{from:r,to:p(r,this.asPX(t,n[2]+s)),f:a})}})(-10)}),r.plugin(function(t,i,r,n,s){var a=r.prototype,o=t.is;a.rect=function(t,e,i,r,n,s){var a;return null==s&&(s=n),o(t,"object")&&"[object Object]"==t?a=t:null!=t&&(a={x:t,y:e,width:i,height:r},null!=n&&(a.rx=n,a.ry=s)),this.el("rect",a)},a.circle=function(t,e,i){var r;return o(t,"object")&&"[object Object]"==t?r=t:null!=t&&(r={cx:t,cy:e,r:i}),this.el("circle",r)};var l=function(){function t(){this.parentNode.removeChild(this)}return function(e,i){var r=n.doc.createElement("img"),s=n.doc.body;r.style.cssText="position:absolute;left:-9999em;top:-9999em",r.onload=function(){i.call(r),r.onload=r.onerror=null,s.removeChild(r)},r.onerror=t,s.appendChild(r),r.src=e}}();a.image=function(e,i,r,n,s){var a=this.el("image");if(o(e,"object")&&"src"in e)a.attr(e);else if(null!=e){var h={"xlink:href":e,preserveAspectRatio:"none"};null!=i&&null!=r&&(h.x=i,h.y=r),null!=n&&null!=s?(h.width=n,h.height=s):l(e,function(){t._.$(a.node,{width:this.offsetWidth,height:this.offsetHeight})}),t._.$(a.node,h)}return a},a.ellipse=function(t,e,i,r){var n;return o(t,"object")&&"[object Object]"==t?n=t:null!=t&&(n={cx:t,cy:e,rx:i,ry:r}),this.el("ellipse",n)},a.path=function(t){var e;return o(t,"object")&&!o(t,"array")?e=t:t&&(e={d:t}),this.el("path",e)},a.group=a.g=function(t){var e=this.el("g");return 1==arguments.length&&t&&!t.type?e.attr(t):arguments.length&&e.add(Array.prototype.slice.call(arguments,0)),e},a.svg=function(t,e,i,r,n,s,a,l){var h={};return o(t,"object")&&null==e?h=t:(null!=t&&(h.x=t),null!=e&&(h.y=e),null!=i&&(h.width=i),null!=r&&(h.height=r),null!=n&&null!=s&&null!=a&&null!=l&&(h.viewBox=[n,s,a,l])),this.el("svg",h)},a.mask=function(t){var e=this.el("mask");return 1==arguments.length&&t&&!t.type?e.attr(t):arguments.length&&e.add(Array.prototype.slice.call(arguments,0)),e},a.ptrn=function(t,e,i,r,n,s,a,l){if(o(t,"object"))var h=t;else arguments.length?(h={},null!=t&&(h.x=t),null!=e&&(h.y=e),null!=i&&(h.width=i),null!=r&&(h.height=r),null!=n&&null!=s&&null!=a&&null!=l&&(h.viewBox=[n,s,a,l])):h={patternUnits:"userSpaceOnUse"};return this.el("pattern",h)},a.use=function(t){if(null!=t){make("use",this.node);return t instanceof i&&(t.attr("id")||t.attr({id:ID()}),t=t.attr("id")),this.el("use",{"xlink:href":t})}return i.prototype.use.call(this)},a.text=function(t,e,i){var r={};return o(t,"object")?r=t:null!=t&&(r={x:t,y:e,text:i||""}),this.el("text",r)},a.line=function(t,e,i,r){var n={};return o(t,"object")?n=t:null!=t&&(n={x1:t,x2:i,y1:e,y2:r}),this.el("line",n)},a.polyline=function(t){arguments.length>1&&(t=Array.prototype.slice.call(arguments,0));var e={};return o(t,"object")&&!o(t,"array")?e=t:null!=t&&(e={points:t}),this.el("polyline",e)},a.polygon=function(t){arguments.length>1&&(t=Array.prototype.slice.call(arguments,0));var e={};return o(t,"object")&&!o(t,"array")?e=t:null!=t&&(e={points:t}),this.el("polygon",e)},function(){function i(){return this.selectAll("stop")}function r(e,i){var r=h("stop"),n={offset:+i+"%"};return e=t.color(e),n["stop-color"]=e.hex,e.opacity<1&&(n["stop-opacity"]=e.opacity),h(r,n),this.node.appendChild(r),this}function n(){if("linearGradient"==this.type){var e=h(this.node,"x1")||0,i=h(this.node,"x2")||1,r=h(this.node,"y1")||0,n=h(this.node,"y2")||0;return t._.box(e,r,math.abs(i-e),math.abs(n-r))}var s=this.node.cx||.5,a=this.node.cy||.5,o=this.node.r||0;return t._.box(s-o,a-o,2*o,2*o)}function s(t,i){function r(t,e){for(var i=(e-c)/(t-f),r=f;r<t;r++)a[r].offset=+(+c+i*(r-f)).toFixed(2);f=t,c=e}var n,s=e("snap.util.grad.parse",null,i).firstDefined();if(!s)return null;s.params.unshift(t),n="l"==s.type.toLowerCase()?o.apply(0,s.params):l.apply(0,s.params),s.type!=s.type.toLowerCase()&&h(n.node,{gradientUnits:"userSpaceOnUse"});var a=s.stops,u=a.length,c=0,f=0;u--;for(var p=0;p<u;p++)"offset"in a[p]&&r(p,a[p].offset);for(a[u].offset=a[u].offset||100,r(u,a[u].offset),p=0;p<=u;p++){var d=a[p];n.addStop(d.color,d.offset)}return n}function o(e,s,a,o,l){var u=t._.make("linearGradient",e);return u.stops=i,u.addStop=r,u.getBBox=n,null!=s&&h(u.node,{x1:s,y1:a,x2:o,y2:l}),u}function l(e,s,a,o,l,u){var c=t._.make("radialGradient",e);return c.stops=i,c.addStop=r,c.getBBox=n,null!=s&&h(c.node,{cx:s,cy:a,r:o}),null!=l&&null!=u&&h(c.node,{fx:l,fy:u}),c}var h=t._.$;a.gradient=function(t){return s(this.defs,t)},a.gradientLinear=function(t,e,i,r){return o(this.defs,t,e,i,r)},a.gradientRadial=function(t,e,i,r,n){return l(this.defs,t,e,i,r,n)},a.toString=function(){var e,i=this.node.ownerDocument,r=i.createDocumentFragment(),n=i.createElement("div"),s=this.node.cloneNode(!0);return r.appendChild(n),n.appendChild(s),t._.$(s,{xmlns:"http://www.w3.org/2000/svg"}),e=n.innerHTML,r.removeChild(r.firstChild),e},a.clear=function(){for(var t,e=this.node.firstChild;e;)t=e.nextSibling,"defs"!=e.tagName?e.parentNode.removeChild(e):a.clear.call({node:e}),e=t}}()}),r.plugin(function(t,e,i,r){function n(t){var e=n.ps=n.ps||{};return e[t]?e[t].sleep=100:e[t]={sleep:100},setTimeout(function(){for(var i in e)e[z](i)&&i!=t&&(e[i].sleep--,!e[i].sleep&&delete e[i])}),e[t]}function s(t,e,i,r){return null==t&&(t=e=i=r=0),null==e&&(e=t.y,i=t.width,r=t.height,t=t.x),{x:t,y:e,width:i,w:i,height:r,h:r,x2:t+i,y2:e+r,cx:t+i/2,cy:e+r/2,r1:j.min(i,r)/2,r2:j.max(i,r)/2,r0:j.sqrt(i*i+r*r)/2,path:P(t,e,i,r),vb:[t,e,i,r].join(" ")}}function a(){return this.join(",").replace(L,"$1")}function o(t){var e=B(t);return e.toString=a,e}function l(t,e,i,r,n,s,a,o,l){return null==l?_(t,e,i,r,n,s,a,o):u(t,e,i,r,n,s,a,o,m(t,e,i,r,n,s,a,o,l))}function h(i,r){function n(t){return+(+t).toFixed(3)}return t._.cacher(function(t,s,a){t instanceof e&&(t=t.attr("d")),t=D(t);for(var o,h,c,f,p,d="",_={},m=0,g=0,v=t.length;g<v;g++){if(c=t[g],"M"==c[0])o=+c[1],h=+c[2];else{if(f=l(o,h,c[1],c[2],c[3],c[4],c[5],c[6]),m+f>s){if(r&&!_.start){if(p=l(o,h,c[1],c[2],c[3],c[4],c[5],c[6],s-m),d+=["C"+n(p.start.x),n(p.start.y),n(p.m.x),n(p.m.y),n(p.x),n(p.y)],a)return d;_.start=d,d=["M"+n(p.x),n(p.y)+"C"+n(p.n.x),n(p.n.y),n(p.end.x),n(p.end.y),n(c[5]),n(c[6])].join(),m+=f,o=+c[5],h=+c[6];continue}if(!i&&!r)return p=l(o,h,c[1],c[2],c[3],c[4],c[5],c[6],s-m)}m+=f,o=+c[5],h=+c[6]}d+=c.shift()+c}return _.end=d,p=i?m:r?_:u(o,h,c[0],c[1],c[2],c[3],c[4],c[5],1)},null,t._.clone)}function u(t,e,i,r,n,s,a,o,l){var h=1-l,u=q(h,3),c=q(h,2),f=l*l,p=f*l,d=u*t+3*c*l*i+3*h*l*l*n+p*a,_=u*e+3*c*l*r+3*h*l*l*s+p*o,m=t+2*l*(i-t)+f*(n-2*i+t),g=e+2*l*(r-e)+f*(s-2*r+e),v=i+2*l*(n-i)+f*(a-2*n+i),y=r+2*l*(s-r)+f*(o-2*s+r),x=h*t+l*i,b=h*e+l*r,T=h*n+l*a,w=h*s+l*o,P=90-180*j.atan2(m-v,g-y)/U;return{x:d,y:_,m:{x:m,y:g},n:{x:v,y:y},start:{x:x,y:b},end:{x:T,y:w},alpha:P}}function c(e,i,r,n,a,o,l,h){t.is(e,"array")||(e=[e,i,r,n,a,o,l,h]);var u=M.apply(null,e);return s(u.min.x,u.min.y,u.max.x-u.min.x,u.max.y-u.min.y)}function f(t,e,i){return e>=t.x&&e<=t.x+t.width&&i>=t.y&&i<=t.y+t.height}function p(t,e){return t=s(t),e=s(e),f(e,t.x,t.y)||f(e,t.x2,t.y)||f(e,t.x,t.y2)||f(e,t.x2,t.y2)||f(t,e.x,e.y)||f(t,e.x2,e.y)||f(t,e.x,e.y2)||f(t,e.x2,e.y2)||(t.x<e.x2&&t.x>e.x||e.x<t.x2&&e.x>t.x)&&(t.y<e.y2&&t.y>e.y||e.y<t.y2&&e.y>t.y)}function d(t,e,i,r,n){var s=-3*e+9*i-9*r+3*n,a=t*s+6*e-12*i+6*r;return t*a-3*e+3*i}function _(t,e,i,r,n,s,a,o,l){null==l&&(l=1),l=l>1?1:l<0?0:l;for(var h=l/2,u=12,c=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],f=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],p=0,_=0;_<u;_++){var m=h*c[_]+h,g=d(m,t,i,n,a),v=d(m,e,r,s,o),y=g*g+v*v;p+=f[_]*j.sqrt(y)}return h*p}function m(t,e,i,r,n,s,a,o,l){if(!(l<0||_(t,e,i,r,n,s,a,o)<l)){var h,u=1,c=u/2,f=u-c,p=.01;
for(h=_(t,e,i,r,n,s,a,o,f);G(h-l)>p;)c/=2,f+=(h<l?1:-1)*c,h=_(t,e,i,r,n,s,a,o,f);return f}}function g(t,e,i,r,n,s,a,o){if(!(V(t,i)<Y(n,a)||Y(t,i)>V(n,a)||V(e,r)<Y(s,o)||Y(e,r)>V(s,o))){var l=(t*r-e*i)*(n-a)-(t-i)*(n*o-s*a),h=(t*r-e*i)*(s-o)-(e-r)*(n*o-s*a),u=(t-i)*(s-o)-(e-r)*(n-a);if(u){var c=l/u,f=h/u,p=+c.toFixed(2),d=+f.toFixed(2);if(!(p<+Y(t,i).toFixed(2)||p>+V(t,i).toFixed(2)||p<+Y(n,a).toFixed(2)||p>+V(n,a).toFixed(2)||d<+Y(e,r).toFixed(2)||d>+V(e,r).toFixed(2)||d<+Y(s,o).toFixed(2)||d>+V(s,o).toFixed(2)))return{x:c,y:f}}}}function v(t,e,i){var r=c(t),n=c(e);if(!p(r,n))return i?0:[];for(var s=_.apply(0,t),a=_.apply(0,e),o=~~(s/8),l=~~(a/8),h=[],f=[],d={},m=i?0:[],v=0;v<o+1;v++){var y=u.apply(0,t.concat(v/o));h.push({x:y.x,y:y.y,t:v/o})}for(v=0;v<l+1;v++)y=u.apply(0,e.concat(v/l)),f.push({x:y.x,y:y.y,t:v/l});for(v=0;v<o;v++)for(var x=0;x<l;x++){var b=h[v],T=h[v+1],w=f[x],P=f[x+1],S=G(T.x-b.x)<.001?"y":"x",C=G(P.x-w.x)<.001?"y":"x",k=g(b.x,b.y,T.x,T.y,w.x,w.y,P.x,P.y);if(k){if(d[k.x.toFixed(4)]==k.y.toFixed(4))continue;d[k.x.toFixed(4)]=k.y.toFixed(4);var O=b.t+G((k[S]-b[S])/(T[S]-b[S]))*(T.t-b.t),A=w.t+G((k[C]-w[C])/(P[C]-w[C]))*(P.t-w.t);O>=0&&O<=1&&A>=0&&A<=1&&(i?m++:m.push({x:k.x,y:k.y,t1:O,t2:A}))}}return m}function y(t,e){return b(t,e)}function x(t,e){return b(t,e,1)}function b(t,e,i){t=D(t),e=D(e);for(var r,n,s,a,o,l,h,u,c,f,p=i?0:[],d=0,_=t.length;d<_;d++){var m=t[d];if("M"==m[0])r=o=m[1],n=l=m[2];else{"C"==m[0]?(c=[r,n].concat(m.slice(1)),r=c[6],n=c[7]):(c=[r,n,r,n,o,l,o,l],r=o,n=l);for(var g=0,y=e.length;g<y;g++){var x=e[g];if("M"==x[0])s=h=x[1],a=u=x[2];else{"C"==x[0]?(f=[s,a].concat(x.slice(1)),s=f[6],a=f[7]):(f=[s,a,s,a,h,u,h,u],s=h,a=u);var b=v(c,f,i);if(i)p+=b;else{for(var T=0,w=b.length;T<w;T++)b[T].segment1=d,b[T].segment2=g,b[T].bez1=c,b[T].bez2=f;p=p.concat(b)}}}}}return p}function T(t,e,i){var r=w(t);return f(r,e,i)&&b(t,[["M",e,i],["H",r.x2+10]],1)%2==1}function w(t){var e=n(t);if(e.bbox)return B(e.bbox);if(!t)return s();t=D(t);for(var i,r=0,a=0,o=[],l=[],h=0,u=t.length;h<u;h++)if(i=t[h],"M"==i[0])r=i[1],a=i[2],o.push(r),l.push(a);else{var c=M(r,a,i[1],i[2],i[3],i[4],i[5],i[6]);o=o.concat(c.min.x,c.max.x),l=l.concat(c.min.y,c.max.y),r=i[5],a=i[6]}var f=Y.apply(0,o),p=Y.apply(0,l),d=V.apply(0,o),_=V.apply(0,l),m=s(f,p,d-f,_-p);return e.bbox=B(m),m}function P(t,e,i,r,n){if(n)return[["M",+t+ +n,e],["l",i-2*n,0],["a",n,n,0,0,1,n,n],["l",0,r-2*n],["a",n,n,0,0,1,-n,n],["l",2*n-i,0],["a",n,n,0,0,1,-n,-n],["l",0,2*n-r],["a",n,n,0,0,1,n,-n],["z"]];var s=[["M",t,e],["l",i,0],["l",0,r],["l",-i,0],["z"]];return s.toString=a,s}function S(t,e,i,r,n){if(null==n&&null==r&&(r=i),t=+t,e=+e,i=+i,r=+r,null!=n)var s=Math.PI/180,o=t+i*Math.cos(-r*s),l=t+i*Math.cos(-n*s),h=e+i*Math.sin(-r*s),u=e+i*Math.sin(-n*s),c=[["M",o,h],["A",i,i,0,+(n-r>180),0,l,u]];else c=[["M",t,e],["m",0,-r],["a",i,r,0,1,1,0,2*r],["a",i,r,0,1,1,0,-2*r],["z"]];return c.toString=a,c}function C(e){var i=n(e),r=String.prototype.toLowerCase;if(i.rel)return o(i.rel);t.is(e,"array")&&t.is(e&&e[0],"array")||(e=t.parsePathString(e));var s=[],l=0,h=0,u=0,c=0,f=0;"M"==e[0][0]&&(l=e[0][1],h=e[0][2],u=l,c=h,f++,s.push(["M",l,h]));for(var p=f,d=e.length;p<d;p++){var _=s[p]=[],m=e[p];if(m[0]!=r.call(m[0]))switch(_[0]=r.call(m[0]),_[0]){case"a":_[1]=m[1],_[2]=m[2],_[3]=m[3],_[4]=m[4],_[5]=m[5],_[6]=+(m[6]-l).toFixed(3),_[7]=+(m[7]-h).toFixed(3);break;case"v":_[1]=+(m[1]-h).toFixed(3);break;case"m":u=m[1],c=m[2];default:for(var g=1,v=m.length;g<v;g++)_[g]=+(m[g]-(g%2?l:h)).toFixed(3)}else{_=s[p]=[],"m"==m[0]&&(u=m[1]+l,c=m[2]+h);for(var y=0,x=m.length;y<x;y++)s[p][y]=m[y]}var b=s[p].length;switch(s[p][0]){case"z":l=u,h=c;break;case"h":l+=+s[p][b-1];break;case"v":h+=+s[p][b-1];break;default:l+=+s[p][b-2],h+=+s[p][b-1]}}return s.toString=a,i.rel=o(s),s}function k(e){var i=n(e);if(i.abs)return o(i.abs);if(I(e,"array")&&I(e&&e[0],"array")||(e=t.parsePathString(e)),!e||!e.length)return[["M",0,0]];var r,s=[],l=0,h=0,u=0,c=0,f=0;"M"==e[0][0]&&(l=+e[0][1],h=+e[0][2],u=l,c=h,f++,s[0]=["M",l,h]);for(var p,d,_=3==e.length&&"M"==e[0][0]&&"R"==e[1][0].toUpperCase()&&"Z"==e[2][0].toUpperCase(),m=f,g=e.length;m<g;m++){if(s.push(p=[]),d=e[m],r=d[0],r!=r.toUpperCase())switch(p[0]=r.toUpperCase(),p[0]){case"A":p[1]=d[1],p[2]=d[2],p[3]=d[3],p[4]=d[4],p[5]=d[5],p[6]=+d[6]+l,p[7]=+d[7]+h;break;case"V":p[1]=+d[1]+h;break;case"H":p[1]=+d[1]+l;break;case"R":for(var v=[l,h].concat(d.slice(1)),y=2,x=v.length;y<x;y++)v[y]=+v[y]+l,v[++y]=+v[y]+h;s.pop(),s=s.concat(F(v,_));break;case"O":s.pop(),v=S(l,h,d[1],d[2]),v.push(v[0]),s=s.concat(v);break;case"U":s.pop(),s=s.concat(S(l,h,d[1],d[2],d[3])),p=["U"].concat(s[s.length-1].slice(-2));break;case"M":u=+d[1]+l,c=+d[2]+h;default:for(y=1,x=d.length;y<x;y++)p[y]=+d[y]+(y%2?l:h)}else if("R"==r)v=[l,h].concat(d.slice(1)),s.pop(),s=s.concat(F(v,_)),p=["R"].concat(d.slice(-2));else if("O"==r)s.pop(),v=S(l,h,d[1],d[2]),v.push(v[0]),s=s.concat(v);else if("U"==r)s.pop(),s=s.concat(S(l,h,d[1],d[2],d[3])),p=["U"].concat(s[s.length-1].slice(-2));else for(var b=0,T=d.length;b<T;b++)p[b]=d[b];if(r=r.toUpperCase(),"O"!=r)switch(p[0]){case"Z":l=+u,h=+c;break;case"H":l=p[1];break;case"V":h=p[1];break;case"M":u=p[p.length-2],c=p[p.length-1];default:l=p[p.length-2],h=p[p.length-1]}}return s.toString=a,i.abs=o(s),s}function O(t,e,i,r){return[t,e,i,r,i,r]}function A(t,e,i,r,n,s){var a=1/3,o=2/3;return[a*t+o*i,a*e+o*r,a*n+o*i,a*s+o*r,n,s]}function R(e,i,r,n,s,a,o,l,h,u){var c,f=120*U/180,p=U/180*(+s||0),d=[],_=t._.cacher(function(t,e,i){var r=t*j.cos(i)-e*j.sin(i),n=t*j.sin(i)+e*j.cos(i);return{x:r,y:n}});if(u)P=u[0],S=u[1],T=u[2],w=u[3];else{c=_(e,i,-p),e=c.x,i=c.y,c=_(l,h,-p),l=c.x,h=c.y;var m=(j.cos(U/180*s),j.sin(U/180*s),(e-l)/2),g=(i-h)/2,v=m*m/(r*r)+g*g/(n*n);v>1&&(v=j.sqrt(v),r=v*r,n=v*n);var y=r*r,x=n*n,b=(a==o?-1:1)*j.sqrt(G((y*x-y*g*g-x*m*m)/(y*g*g+x*m*m))),T=b*r*g/n+(e+l)/2,w=b*-n*m/r+(i+h)/2,P=j.asin(((i-w)/n).toFixed(9)),S=j.asin(((h-w)/n).toFixed(9));P=e<T?U-P:P,S=l<T?U-S:S,P<0&&(P=2*U+P),S<0&&(S=2*U+S),o&&P>S&&(P-=2*U),!o&&S>P&&(S-=2*U)}var C=S-P;if(G(C)>f){var k=S,O=l,A=h;S=P+f*(o&&S>P?1:-1),l=T+r*j.cos(S),h=w+n*j.sin(S),d=R(l,h,r,n,s,0,o,O,A,[S,k,T,w])}C=S-P;var M=j.cos(P),D=j.sin(P),E=j.cos(S),F=j.sin(S),N=j.tan(C/4),I=4/3*r*N,B=4/3*n*N,z=[e,i],L=[e+I*D,i-B*M],X=[l+I*F,h-B*E],Y=[l,h];if(L[0]=2*z[0]-L[0],L[1]=2*z[1]-L[1],u)return[L,X,Y].concat(d);d=[L,X,Y].concat(d).join().split(",");for(var V=[],q=0,H=d.length;q<H;q++)V[q]=q%2?_(d[q-1],d[q],p).y:_(d[q],d[q+1],p).x;return V}function M(t,e,i,r,n,s,a,o){for(var l,h,u,c,f,p,d,_,m=[],g=[[],[]],v=0;v<2;++v)if(0==v?(h=6*t-12*i+6*n,l=-3*t+9*i-9*n+3*a,u=3*i-3*t):(h=6*e-12*r+6*s,l=-3*e+9*r-9*s+3*o,u=3*r-3*e),G(l)<1e-12){if(G(h)<1e-12)continue;c=-u/h,0<c&&c<1&&m.push(c)}else d=h*h-4*u*l,_=j.sqrt(d),d<0||(f=(-h+_)/(2*l),0<f&&f<1&&m.push(f),p=(-h-_)/(2*l),0<p&&p<1&&m.push(p));for(var y,x=m.length,b=x;x--;)c=m[x],y=1-c,g[0][x]=y*y*y*t+3*y*y*c*i+3*y*c*c*n+c*c*c*a,g[1][x]=y*y*y*e+3*y*y*c*r+3*y*c*c*s+c*c*c*o;return g[0][b]=t,g[1][b]=e,g[0][b+1]=a,g[1][b+1]=o,g[0].length=g[1].length=b+2,{min:{x:Y.apply(0,g[0]),y:Y.apply(0,g[1])},max:{x:V.apply(0,g[0]),y:V.apply(0,g[1])}}}function D(t,e){var i=!e&&n(t);if(!e&&i.curve)return o(i.curve);for(var r=k(t),s=e&&k(e),a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},l={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},h=(function(t,e,i){var r,n;if(!t)return["C",e.x,e.y,e.x,e.y,e.x,e.y];switch(!(t[0]in{T:1,Q:1})&&(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"].concat(R.apply(0,[e.x,e.y].concat(t.slice(1))));break;case"S":"C"==i||"S"==i?(r=2*e.x-e.bx,n=2*e.y-e.by):(r=e.x,n=e.y),t=["C",r,n].concat(t.slice(1));break;case"T":"Q"==i||"T"==i?(e.qx=2*e.x-e.qx,e.qy=2*e.y-e.qy):(e.qx=e.x,e.qy=e.y),t=["C"].concat(A(e.x,e.y,e.qx,e.qy,t[1],t[2]));break;case"Q":e.qx=t[1],e.qy=t[2],t=["C"].concat(A(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"].concat(O(e.x,e.y,t[1],t[2]));break;case"H":t=["C"].concat(O(e.x,e.y,t[1],e.y));break;case"V":t=["C"].concat(O(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"].concat(O(e.x,e.y,e.X,e.Y))}return t}),u=function(t,e){if(t[e].length>7){t[e].shift();for(var i=t[e];i.length;)f[e]="A",s&&(p[e]="A"),t.splice(e++,0,["C"].concat(i.splice(0,6)));t.splice(e,1),g=V(r.length,s&&s.length||0)}},c=function(t,e,i,n,a){t&&e&&"M"==t[a][0]&&"M"!=e[a][0]&&(e.splice(a,0,["M",n.x,n.y]),i.bx=0,i.by=0,i.x=t[a][1],i.y=t[a][2],g=V(r.length,s&&s.length||0))},f=[],p=[],d="",_="",m=0,g=V(r.length,s&&s.length||0);m<g;m++){r[m]&&(d=r[m][0]),"C"!=d&&(f[m]=d,m&&(_=f[m-1])),r[m]=h(r[m],a,_),"A"!=f[m]&&"C"==d&&(f[m]="C"),u(r,m),s&&(s[m]&&(d=s[m][0]),"C"!=d&&(p[m]=d,m&&(_=p[m-1])),s[m]=h(s[m],l,_),"A"!=p[m]&&"C"==d&&(p[m]="C"),u(s,m)),c(r,s,a,l,m),c(s,r,l,a,m);var v=r[m],y=s&&s[m],x=v.length,b=s&&y.length;a.x=v[x-2],a.y=v[x-1],a.bx=X(v[x-4])||a.x,a.by=X(v[x-3])||a.y,l.bx=s&&(X(y[b-4])||l.x),l.by=s&&(X(y[b-3])||l.y),l.x=s&&y[b-2],l.y=s&&y[b-1]}return s||(i.curve=o(r)),s?[r,s]:r}function E(t,e){if(!e)return t;var i,r,n,s,a,o,l;for(t=D(t),n=0,a=t.length;n<a;n++)for(l=t[n],s=1,o=l.length;s<o;s+=2)i=e.x(l[s],l[s+1]),r=e.y(l[s],l[s+1]),l[s]=i,l[s+1]=r;return t}function F(t,e){for(var i=[],r=0,n=t.length;n-2*!e>r;r+=2){var s=[{x:+t[r-2],y:+t[r-1]},{x:+t[r],y:+t[r+1]},{x:+t[r+2],y:+t[r+3]},{x:+t[r+4],y:+t[r+5]}];e?r?n-4==r?s[3]={x:+t[0],y:+t[1]}:n-2==r&&(s[2]={x:+t[0],y:+t[1]},s[3]={x:+t[2],y:+t[3]}):s[0]={x:+t[n-2],y:+t[n-1]}:n-4==r?s[3]=s[2]:r||(s[0]={x:+t[r],y:+t[r+1]}),i.push(["C",(-s[0].x+6*s[1].x+s[2].x)/6,(-s[0].y+6*s[1].y+s[2].y)/6,(s[1].x+6*s[2].x-s[3].x)/6,(s[1].y+6*s[2].y-s[3].y)/6,s[2].x,s[2].y])}return i}var N=e.prototype,I=t.is,B=t._.clone,z="hasOwnProperty",L=/,?([a-z]),?/gi,X=parseFloat,j=Math,U=j.PI,Y=j.min,V=j.max,q=j.pow,G=j.abs,H=h(1),$=h(),Z=h(0,1),W=t._unit2px,Q={path:function(t){return t.attr("path")},circle:function(t){var e=W(t);return S(e.cx,e.cy,e.r)},ellipse:function(t){var e=W(t);return S(e.cx||0,e.cy||0,e.rx,e.ry)},rect:function(t){var e=W(t);return P(e.x||0,e.y||0,e.width,e.height,e.rx,e.ry)},image:function(t){var e=W(t);return P(e.x||0,e.y||0,e.width,e.height)},line:function(t){return"M"+[t.attr("x1")||0,t.attr("y1")||0,t.attr("x2"),t.attr("y2")]},polyline:function(t){return"M"+t.attr("points")},polygon:function(t){return"M"+t.attr("points")+"z"},deflt:function(t){var e=t.node.getBBox();return P(e.x,e.y,e.width,e.height)}};t.path=n,t.path.getTotalLength=H,t.path.getPointAtLength=$,t.path.getSubpath=function(t,e,i){if(this.getTotalLength(t)-i<1e-6)return Z(t,e).end;var r=Z(t,i,1);return e?Z(r,e).end:r},N.getTotalLength=function(){if(this.node.getTotalLength)return this.node.getTotalLength()},N.getPointAtLength=function(t){return $(this.attr("d"),t)},N.getSubpath=function(e,i){return t.path.getSubpath(this.attr("d"),e,i)},t._.box=s,t.path.findDotsAtSegment=u,t.path.bezierBBox=c,t.path.isPointInsideBBox=f,t.path.isBBoxIntersect=p,t.path.intersection=y,t.path.intersectionNumber=x,t.path.isPointInside=T,t.path.getBBox=w,t.path.get=Q,t.path.toRelative=C,t.path.toAbsolute=k,t.path.toCubic=D,t.path.map=E,t.path.toString=a,t.path.clone=o}),r.plugin(function(t,r,n,s){var a=Math.max,o=Math.min,l=function(t){if(this.items=[],this.bindings={},this.length=0,this.type="set",t)for(var e=0,i=t.length;e<i;e++)t[e]&&(this[this.items.length]=this.items[this.items.length]=t[e],this.length++)},h=l.prototype;h.push=function(){for(var t,e,i=0,r=arguments.length;i<r;i++)t=arguments[i],t&&(e=this.items.length,this[e]=this.items[e]=t,this.length++);return this},h.pop=function(){return this.length&&delete this[this.length--],this.items.pop()},h.forEach=function(t,e){for(var i=0,r=this.items.length;i<r;i++)if(t.call(e,this.items[i],i)===!1)return this;return this},h.animate=function(r,n,s,a){"function"!=typeof s||s.length||(a=s,s=i.linear),r instanceof t._.Animation&&(a=r.callback,s=r.easing,n=s.dur,r=r.attr);var o=arguments;if(t.is(r,"array")&&t.is(o[o.length-1],"array"))var l=!0;var h,u=function(){h?this.b=h:h=this.b},c=0,f=a&&function(){c++==this.length&&a.call(this)};return this.forEach(function(t,i){e.once("snap.animcreated."+t.id,u),l?o[i]&&t.animate.apply(t,o[i]):t.animate(r,n,s,f)})},h.remove=function(){for(;this.length;)this.pop().remove();return this},h.bind=function(t,e,i){var r={};if("function"==typeof e)this.bindings[t]=e;else{var n=i||t;this.bindings[t]=function(t){r[n]=t,e.attr(r)}}return this},h.attr=function(t){var e={};for(var i in t)this.bindings[i]?this.bindings[i](t[i]):e[i]=t[i];for(var r=0,n=this.items.length;r<n;r++)this.items[r].attr(e);return this},h.clear=function(){for(;this.length;)this.pop()},h.splice=function(t,e,i){t=t<0?a(this.length+t,0):t,e=a(0,o(this.length-t,e));var r,n=[],s=[],h=[];for(r=2;r<arguments.length;r++)h.push(arguments[r]);for(r=0;r<e;r++)s.push(this[t+r]);for(;r<this.length-t;r++)n.push(this[t+r]);var u=h.length;for(r=0;r<u+n.length;r++)this.items[t+r]=this[t+r]=r<u?h[r]:n[r-u];for(r=this.items.length=this.length-=e-u;this[r];)delete this[r++];return new l(s)},h.exclude=function(t){for(var e=0,i=this.length;e<i;e++)if(this[e]==t)return this.splice(e,1),!0;return!1},h.insertAfter=function(t){for(var e=this.items.length;e--;)this.items[e].insertAfter(t);return this},h.getBBox=function(){for(var t=[],e=[],i=[],r=[],n=this.items.length;n--;)if(!this.items[n].removed){var s=this.items[n].getBBox();t.push(s.x),e.push(s.y),i.push(s.x+s.width),r.push(s.y+s.height)}return t=o.apply(0,t),e=o.apply(0,e),i=a.apply(0,i),r=a.apply(0,r),{x:t,y:e,x2:i,y2:r,width:i-t,height:r-e,cx:t+(i-t)/2,cy:e+(r-e)/2}},h.clone=function(t){t=new l;for(var e=0,i=this.items.length;e<i;e++)t.push(this.items[e].clone());return t},h.toString=function(){return"Snap‘s set"},h.type="set",t.set=function(){var t=new l;return arguments.length&&t.push.apply(t,Array.prototype.slice.call(arguments,0)),t}}),r.plugin(function(t,i,r,n){function s(t){var e=t[0];switch(e.toLowerCase()){case"t":return[e,0,0];case"m":return[e,1,0,0,1,0,0];case"r":return 4==t.length?[e,0,t[2],t[3]]:[e,0];case"s":return 5==t.length?[e,1,1,t[3],t[4]]:3==t.length?[e,1,1]:[e,1]}}function a(e,i,r){i=d(i).replace(/\.{3}|\u2026/g,e),e=t.parseTransformString(e)||[],i=t.parseTransformString(i)||[];for(var n,a,o,l,h=Math.max(e.length,i.length),f=[],p=[],_=0;_<h;_++){if(o=e[_]||s(i[_]),l=i[_]||s(o),o[0]!=l[0]||"r"==o[0].toLowerCase()&&(o[2]!=l[2]||o[3]!=l[3])||"s"==o[0].toLowerCase()&&(o[3]!=l[3]||o[4]!=l[4])){e=t._.transform2matrix(e,r()),i=t._.transform2matrix(i,r()),f=[["m",e.a,e.b,e.c,e.d,e.e,e.f]],p=[["m",i.a,i.b,i.c,i.d,i.e,i.f]];break}for(f[_]=[],p[_]=[],n=0,a=Math.max(o.length,l.length);n<a;n++)n in o&&(f[_][n]=o[n]),n in l&&(p[_][n]=l[n])}return{from:c(f),to:c(p),f:u(f)}}function o(t){return t}function l(t){return function(e){return+e.toFixed(3)+t}}function h(e){return t.rgb(e[0],e[1],e[2])}function u(t){var e,i,r,n,s,a,o=0,l=[];for(e=0,i=t.length;e<i;e++){for(s="[",a=['"'+t[e][0]+'"'],r=1,n=t[e].length;r<n;r++)a[r]="val["+o++ +"]";s+=a+"]",l[e]=s}return Function("val","return Snap.path.toString.call(["+l+"])")}function c(t){for(var e=[],i=0,r=t.length;i<r;i++)for(var n=1,s=t[i].length;n<s;n++)e.push(t[i][n]);return e}var f={},p=/[a-z]+$/i,d=String;f.stroke=f.fill="colour",i.prototype.equal=function(t,i){return e("snap.util.equal",this,t,i).firstDefined()},e.on("snap.util.equal",function(e,i){var r,n,s=d(this.attr(e)||""),_=this;if(s==+s&&i==+i)return{from:+s,to:+i,f:o};if("colour"==f[e])return r=t.color(s),n=t.color(i),{from:[r.r,r.g,r.b,r.opacity],to:[n.r,n.g,n.b,n.opacity],f:h};if("transform"==e||"gradientTransform"==e||"patternTransform"==e)return i instanceof t.Matrix&&(i=i.toTransformString()),t._.rgTransform.test(i)||(i=t._.svgTransform2string(i)),a(s,i,function(){return _.getBBox(1)});if("d"==e||"path"==e)return r=t.path.toCubic(s,i),{from:c(r[0]),to:c(r[1]),f:u(r[0])};if("points"==e)return r=d(s).split(t._.separator),n=d(i).split(t._.separator),{from:r,to:n,f:function(t){return t}};aUnit=s.match(p);var m=d(i).match(p);return aUnit&&aUnit==m?{from:parseFloat(s),to:parseFloat(i),f:l(aUnit)}:{from:this.asPX(e),to:this.asPX(e,i),f:o}})}),r.plugin(function(t,i,r,n){for(var s=i.prototype,a="hasOwnProperty",o=("createTouch"in n.doc),l=["click","dblclick","mousedown","mousemove","mouseout","mouseover","mouseup","touchstart","touchmove","touchend","touchcancel"],h={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},u=(function(t,e){var i="y"==t?"scrollTop":"scrollLeft",r=e&&e.node?e.node.ownerDocument:n.doc;return r[i in r.documentElement?"documentElement":"body"][i]}),c=function(){this.returnValue=!1},f=function(){return this.originalEvent.preventDefault()},p=function(){this.cancelBubble=!0},d=function(){return this.originalEvent.stopPropagation()},_=function(){return n.doc.addEventListener?function(t,e,i,r){var n=o&&h[e]?h[e]:e,s=function(n){var s=u("y",r),l=u("x",r);if(o&&h[a](e))for(var c=0,p=n.targetTouches&&n.targetTouches.length;c<p;c++)if(n.targetTouches[c].target==t||t.contains(n.targetTouches[c].target)){var _=n;n=n.targetTouches[c],n.originalEvent=_,n.preventDefault=f,n.stopPropagation=d;break}var m=n.clientX+l,g=n.clientY+s;return i.call(r,n,m,g)};return e!==n&&t.addEventListener(e,s,!1),t.addEventListener(n,s,!1),function(){return e!==n&&t.removeEventListener(e,s,!1),t.removeEventListener(n,s,!1),!0}}:n.doc.attachEvent?function(t,e,i,r){var n=function(t){t=t||r.node.ownerDocument.window.event;var e=u("y",r),n=u("x",r),s=t.clientX+n,a=t.clientY+e;return t.preventDefault=t.preventDefault||c,t.stopPropagation=t.stopPropagation||p,i.call(r,t,s,a)};t.attachEvent("on"+e,n);var s=function(){return t.detachEvent("on"+e,n),!0};return s}:void 0}(),m=[],g=function(t){for(var i,r=t.clientX,n=t.clientY,s=u("y"),a=u("x"),l=m.length;l--;){if(i=m[l],o){for(var h,c=t.touches&&t.touches.length;c--;)if(h=t.touches[c],h.identifier==i.el._drag.id||i.el.node.contains(h.target)){r=h.clientX,n=h.clientY,(t.originalEvent?t.originalEvent:t).preventDefault();break}}else t.preventDefault();var f=i.el.node;f.nextSibling,f.parentNode,f.style.display;r+=a,n+=s,e("snap.drag.move."+i.el.id,i.move_scope||i.el,r-i.el._drag.x,n-i.el._drag.y,r,n,t)}},v=function(i){t.unmousemove(g).unmouseup(v);for(var r,n=m.length;n--;)r=m[n],r.el._drag={},e("snap.drag.end."+r.el.id,r.end_scope||r.start_scope||r.move_scope||r.el,i);m=[]},y=l.length;y--;)!function(e){t[e]=s[e]=function(i,r){return t.is(i,"function")&&(this.events=this.events||[],this.events.push({name:e,f:i,unbind:_(this.node||document,e,i,r||this)})),this},t["un"+e]=s["un"+e]=function(t){for(var i=this.events||[],r=i.length;r--;)if(i[r].name==e&&(i[r].f==t||!t))return i[r].unbind(),i.splice(r,1),!i.length&&delete this.events,this;return this}}(l[y]);s.hover=function(t,e,i,r){return this.mouseover(t,i).mouseout(e,r||i)},s.unhover=function(t,e){return this.unmouseover(t).unmouseout(e)};var x=[];s.drag=function(i,r,n,s,a,o){function l(l,h,u){(l.originalEvent||l).preventDefault(),this._drag.x=h,this._drag.y=u,this._drag.id=l.identifier,!m.length&&t.mousemove(g).mouseup(v),m.push({el:this,move_scope:s,start_scope:a,end_scope:o}),r&&e.on("snap.drag.start."+this.id,r),i&&e.on("snap.drag.move."+this.id,i),n&&e.on("snap.drag.end."+this.id,n),e("snap.drag.start."+this.id,a||s||this,h,u,l)}if(!arguments.length){var h;return this.drag(function(t,e){this.attr({transform:h+(h?"T":"t")+[t,e]})},function(){h=this.transform().local})}return this._drag={},x.push({el:this,start:l}),this.mousedown(l),this},s.undrag=function(){for(var i=x.length;i--;)x[i].el==this&&(this.unmousedown(x[i].start),x.splice(i,1),e.unbind("snap.drag.*."+this.id));return!x.length&&t.unmousemove(g).unmouseup(v),this}}),r.plugin(function(t,i,r,n){var s=(i.prototype,r.prototype),a=/^\s*url\((.+)\)/,o=String,l=t._.$;t.filter={},s.filter=function(e){var r=this;"svg"!=r.type&&(r=r.paper);var n=t.parse(o(e)),s=t._.id(),a=(r.node.offsetWidth,r.node.offsetHeight,l("filter"));return l(a,{id:s,filterUnits:"userSpaceOnUse"}),a.appendChild(n.node),r.defs.appendChild(a),new i(a)},e.on("snap.util.getattr.filter",function(){e.stop();var i=l(this.node,"filter");if(i){var r=o(i).match(a);return r&&t.select(r[1])}}),e.on("snap.util.attr.filter",function(r){if(r instanceof i&&"filter"==r.type){e.stop();var n=r.node.id;n||(l(r.node,{id:r.id}),n=r.id),l(this.node,{filter:t.url(n)})}r&&"none"!=r||(e.stop(),this.node.removeAttribute("filter"))}),t.filter.blur=function(e,i){null==e&&(e=2);var r=null==i?e:[e,i];return t.format('<feGaussianBlur stdDeviation="{def}"/>',{def:r})},t.filter.blur.toString=function(){return this()},t.filter.shadow=function(e,i,r,n,s){return"string"==typeof r&&(n=r,s=n,r=4),"string"!=typeof n&&(s=n,n="#000"),n=n||"#000",null==r&&(r=4),null==s&&(s=1),null==e&&(e=0,i=2),null==i&&(i=e),n=t.color(n),t.format('<feGaussianBlur in="SourceAlpha" stdDeviation="{blur}"/><feOffset dx="{dx}" dy="{dy}" result="offsetblur"/><feFlood flood-color="{color}"/><feComposite in2="offsetblur" operator="in"/><feComponentTransfer><feFuncA type="linear" slope="{opacity}"/></feComponentTransfer><feMerge><feMergeNode/><feMergeNode in="SourceGraphic"/></feMerge>',{color:n,dx:e,dy:i,blur:r,opacity:s})},t.filter.shadow.toString=function(){return this()},t.filter.grayscale=function(e){return null==e&&(e=1),t.format('<feColorMatrix type="matrix" values="{a} {b} {c} 0 0 {d} {e} {f} 0 0 {g} {b} {h} 0 0 0 0 0 1 0"/>',{a:.2126+.7874*(1-e),b:.7152-.7152*(1-e),c:.0722-.0722*(1-e),d:.2126-.2126*(1-e),e:.7152+.2848*(1-e),f:.0722-.0722*(1-e),g:.2126-.2126*(1-e),h:.0722+.9278*(1-e)})},t.filter.grayscale.toString=function(){return this()},t.filter.sepia=function(e){return null==e&&(e=1),t.format('<feColorMatrix type="matrix" values="{a} {b} {c} 0 0 {d} {e} {f} 0 0 {g} {h} {i} 0 0 0 0 0 1 0"/>',{a:.393+.607*(1-e),b:.769-.769*(1-e),c:.189-.189*(1-e),d:.349-.349*(1-e),e:.686+.314*(1-e),f:.168-.168*(1-e),g:.272-.272*(1-e),h:.534-.534*(1-e),i:.131+.869*(1-e)})},t.filter.sepia.toString=function(){return this()},t.filter.saturate=function(e){return null==e&&(e=1),t.format('<feColorMatrix type="saturate" values="{amount}"/>',{amount:1-e})},t.filter.saturate.toString=function(){return this()},t.filter.hueRotate=function(e){return e=e||0,t.format('<feColorMatrix type="hueRotate" values="{angle}"/>',{angle:e})},t.filter.hueRotate.toString=function(){return this()},t.filter.invert=function(e){return null==e&&(e=1),t.format('<feComponentTransfer><feFuncR type="table" tableValues="{amount} {amount2}"/><feFuncG type="table" tableValues="{amount} {amount2}"/><feFuncB type="table" tableValues="{amount} {amount2}"/></feComponentTransfer>',{amount:e,amount2:1-e})},t.filter.invert.toString=function(){return this()},t.filter.brightness=function(e){return null==e&&(e=1),t.format('<feComponentTransfer><feFuncR type="linear" slope="{amount}"/><feFuncG type="linear" slope="{amount}"/><feFuncB type="linear" slope="{amount}"/></feComponentTransfer>',{amount:e})},t.filter.brightness.toString=function(){return this()},t.filter.contrast=function(e){return null==e&&(e=1),t.format('<feComponentTransfer><feFuncR type="linear" slope="{amount}" intercept="{amount2}"/><feFuncG type="linear" slope="{amount}" intercept="{amount2}"/><feFuncB type="linear" slope="{amount}" intercept="{amount2}"/></feComponentTransfer>',{amount:e,amount2:.5-e/2})},t.filter.contrast.toString=function(){return this()}}),r});