function Winwheel(t,e){for(var i in defaultOptions={canvasId:"canvas",centerX:null,centerY:null,outerRadius:null,innerRadius:0,numSegments:1,drawMode:"code",rotationAngle:0,textFontFamily:"Arial",textFontSize:20,textFontWeight:"bold",textOrientation:"horizontal",textAlignment:"center",textDirection:"normal",textMargin:null,textFillStyle:"black",textStrokeStyle:null,textLineWidth:1,fillStyle:"silver",strokeStyle:"black",lineWidth:1,clearTheCanvas:!0,imageOverlay:!1,drawText:!0,pointerAngle:0,wheelImage:null,imageDirection:"N",responsive:!1,scaleFactor:1},defaultOptions)this[i]=null!=t&&void 0!==t[i]?t[i]:defaultOptions[i];if(null!=t)for(var n in t)void 0===this[n]&&(this[n]=t[n]);for(this.canvasId&&(this.canvas=document.getElementById(this.canvasId))?(null==this.centerX&&(this.centerX=this.canvas.width/2),null==this.centerY&&(this.centerY=this.canvas.height/2),null==this.outerRadius&&(this.outerRadius=this.canvas.width=t&&(e=t/100*360),e}function winwheelAnimationLoop(){if(winwheelToDrawDuringAnimation){0!=winwheelToDrawDuringAnimation.animation.clearTheCanvas&&winwheelToDrawDuringAnimation.ctx.clearRect(0,0,winwheelToDrawDuringAnimation.canvas.width,winwheelToDrawDuringAnimation.canvas.height);var a=winwheelToDrawDuringAnimation.animation.callbackBefore,c=winwheelToDrawDuringAnimation.animation.callbackAfter;null!=a&&("function"==typeof a?a():eval(a)),winwheelToDrawDuringAnimation.draw(!1),null!=c&&("function"==typeof c?c():eval(c)),winwheelToDrawDuringAnimation.animation.callbackSound&&winwheelTriggerSound()}}function winwheelTriggerSound(){0==winwheelToDrawDuringAnimation.hasOwnProperty("_lastSoundTriggerNumber")&&(winwheelToDrawDuringAnimation._lastSoundTriggerNumber=0);var a=winwheelToDrawDuringAnimation.animation.callbackSound,c="pin"==winwheelToDrawDuringAnimation.animation.soundTrigger?winwheelToDrawDuringAnimation.getCurrentPinNumber():winwheelToDrawDuringAnimation.getIndicatedSegmentNumber();c!=winwheelToDrawDuringAnimation._lastSoundTriggerNumber&&("function"==typeof a?a():eval(a),winwheelToDrawDuringAnimation._lastSoundTriggerNumber=c)}Winwheel.prototype.updateSegmentSizes=function(){if(this.segments){for(var t=0,e=0,i=1;i<=this.numSegments;i++)null!==this.segments[i].size&&(t+=this.segments[i].size,e++);for(i=360-t,t=0,0e;n--)this.segments[n]=this.segments[n-1];this.segments[e]=i,i=e}else this.segments[this.numSegments]=i,i=this.numSegments;return this.updateSegmentSizes(),this.segments[i]},Winwheel.prototype.setCanvasId=function(t){t?(this.canvasId=t,(this.canvas=document.getElementById(this.canvasId))&&(this.ctx=this.canvas.getContext("2d"))):this.canvas=this.ctx=this.canvasId=null},Winwheel.prototype.deleteSegment=function(t){if(1n){var o=i.x-n;n="R"}else o=n-i.x,n="L";if(i.y>r){var h=i.y-r;r="B"}else h=r-i.y,r="T";var l=180*Math.atan(h/o)/Math.PI;for(i=0,o=Math.sqrt(h*h+o*o),"T"==r&&"R"==n?i=Math.round(90-l):"B"==r&&"R"==n?i=Math.round(l+90):"B"==r&&"L"==n?i=Math.round(90-l+180):"T"==r&&"L"==n&&(i=Math.round(l+270)),0!=this.rotationAngle&&(0>(i-=n=this.getRotationPosition())&&(i=360-Math.abs(i))),n=null,r=1;r<=this.numSegments;r++)if(i>=this.segments[r].startAngle&&i<=this.segments[r].endAngle&&o>=a&&o<=s){n=r;break}return n},Winwheel.prototype.getIndicatedSegment=function(){var t=this.getIndicatedSegmentNumber();return this.segments[t]},Winwheel.prototype.getIndicatedSegmentNumber=function(){var t=0,e=this.getRotationPosition();0>(e=Math.floor(this.pointerAngle-e))&&(e=360-Math.abs(e));for(var i=1;i=this.segments[i].startAngle&&e<=this.segments[i].endAngle){t=i;break}return t},Winwheel.prototype.getCurrentPinNumber=function(){var t=0;if(this.pins){var e=this.getRotationPosition();0>(e=Math.floor(this.pointerAngle-e))&&(e=360-Math.abs(e));for(var i=360/this.pins.number,n=0,r=0;r=n&&e<=n+i){t=r;break}n+=i}"clockwise"==this.animation.direction&&(++t>this.pins.number&&(t=0))}return t},Winwheel.prototype.getRotationPosition=function(){var t=this.rotationAngle;return 0<=t?360t&&(t-=360*Math.ceil(t/360)),t=360+t),t},Winwheel.prototype.startAnimation=function(){if(this.animation){this.computeAnimation(),winwheelToDrawDuringAnimation=this;var t=Array(null);t[this.animation.propertyName]=this.animation.propertyValue,t.yoyo=this.animation.yoyo,t.repeat=this.animation.repeat,t.ease=this.animation.easing,t.onUpdate=winwheelAnimationLoop,t.onComplete=winwheelStopAnimation,this.tween=TweenMax.to(this,this.animation.duration,t)}},Winwheel.prototype.stopAnimation=function(t){winwheelToDrawDuringAnimation&&(winwheelToDrawDuringAnimation.tween&&winwheelToDrawDuringAnimation.tween.kill(),winwheelStopAnimation(t)),winwheelToDrawDuringAnimation=this},Winwheel.prototype.pauseAnimation=function(){this.tween&&this.tween.pause()},Winwheel.prototype.resumeAnimation=function(){this.tween&&this.tween.play()},Winwheel.prototype.computeAnimation=function(){this.animation&&("spinOngoing"==this.animation.type?(this.animation.propertyName="rotationAngle",null==this.animation.spins&&(this.animation.spins=5),null==this.animation.repeat&&(this.animation.repeat=-1),null==this.animation.easing&&(this.animation.easing="Linear.easeNone"),null==this.animation.yoyo&&(this.animation.yoyo=!1),this.animation.propertyValue=360*this.animation.spins,"anti-clockwise"==this.animation.direction&&(this.animation.propertyValue=0-this.animation.propertyValue)):"spinToStop"==this.animation.type?(this.animation.propertyName="rotationAngle",null==this.animation.spins&&(this.animation.spins=5),null==this.animation.repeat&&(this.animation.repeat=0),null==this.animation.easing&&(this.animation.easing="Power3.easeOut"),this.animation._stopAngle=null==this.animation.stopAngle?Math.floor(359*Math.random()):360-this.animation.stopAngle+this.pointerAngle,null==this.animation.yoyo&&(this.animation.yoyo=!1),this.animation.propertyValue=360*this.animation.spins,"anti-clockwise"==this.animation.direction?(this.animation.propertyValue=0-this.animation.propertyValue,this.animation.propertyValue-=360-this.animation._stopAngle):this.animation.propertyValue+=this.animation._stopAngle):"spinAndBack"==this.animation.type&&(this.animation.propertyName="rotationAngle",null==this.animation.spins&&(this.animation.spins=5),null==this.animation.repeat&&(this.animation.repeat=1),null==this.animation.easing&&(this.animation.easing="Power2.easeInOut"),null==this.animation.yoyo&&(this.animation.yoyo=!0),this.animation._stopAngle=null==this.animation.stopAngle?0:360-this.animation.stopAngle,this.animation.propertyValue=360*this.animation.spins,"anti-clockwise"==this.animation.direction?(this.animation.propertyValue=0-this.animation.propertyValue,this.animation.propertyValue-=360-this.animation._stopAngle):this.animation.propertyValue+=this.animation._stopAngle))},Winwheel.prototype.getRandomForSegment=function(t){var e=0;if(t)if(void 0!==this.segments[t]){var i=this.segments[t].startAngle;0<(t=this.segments[t].endAngle-i-2)?e=i+1+Math.floor(Math.random()*t):console.log("Segment size is too small to safely get random angle inside it")}else console.log("Segment "+t+" undefined");else console.log("Segment number not specified");return e},Segment.prototype.changeImage=function(t,e){this.image=t,this.imgData=null,e&&(this.imageDirection=e),winhweelAlreadyDrawn=!1,this.imgData=new Image,this.imgData.onload=winwheelLoadedImage,this.imgData.src=this.image};var winwheelToDrawDuringAnimation=null;function winwheelStopAnimation(a){0!=a&&(a=winwheelToDrawDuringAnimation.animation.callbackFinished,null!=a&&("function"==typeof a?a(winwheelToDrawDuringAnimation.getIndicatedSegment()):eval(a)))}var winhweelAlreadyDrawn=!1;function winwheelLoadedImage(){if(0==winhweelAlreadyDrawn){for(var t=0,e=1;e<=winwheelToDrawDuringAnimation.numSegments;e++)null!=winwheelToDrawDuringAnimation.segments[e].imgData&&winwheelToDrawDuringAnimation.segments[e].imgData.height&&t++;t==winwheelToDrawDuringAnimation.numSegments&&(winhweelAlreadyDrawn=!0,winwheelToDrawDuringAnimation.draw())}}function winwheelResize(){var t=40;void 0!==winwheelToDrawDuringAnimation._responsiveMargin&&(t=winwheelToDrawDuringAnimation._responsiveMargin);var e=window.innerWidth-t,i=winwheelToDrawDuringAnimation._responsiveMinWidth;t=winwheelToDrawDuringAnimation._responsiveMinHeight,ewinwheelToDrawDuringAnimation._originalCanvasWidth&&(e=winwheelToDrawDuringAnimation._originalCanvasWidth),e/=winwheelToDrawDuringAnimation._originalCanvasWidth,winwheelToDrawDuringAnimation.canvas.width=winwheelToDrawDuringAnimation._originalCanvasWidth*e,winwheelToDrawDuringAnimation._responsiveScaleHeight&&((i=winwheelToDrawDuringAnimation._originalCanvasHeight*e)winwheelToDrawDuringAnimation._originalCanvasHeight&&(i=winwheelToDrawDuringAnimation._originalCanvasHeight),winwheelToDrawDuringAnimation.canvas.height=i),winwheelToDrawDuringAnimation.scaleFactor=e,winwheelToDrawDuringAnimation.draw()}!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).window=t.window||{})}(this,function(t){"use strict";function e(t,e){t.prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e}function i(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function n(t){return"string"==typeof t}function r(t){return"function"==typeof t}function s(t){return"number"==typeof t}function a(t){return void 0===t}function o(t){return"object"==typeof t}function h(t){return!1!==t}function l(){return"undefined"!=typeof window}function u(t){return r(t)||n(t)}function c(t){return(wt=pe(t,se))&&fi}function f(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")}function d(t,e){return!e&&console.warn(t)}function p(t,e){return t&&(se[t]=e)&&wt&&(wt[t]=e)||se}function g(){return 0}function m(t){var e,i,n=t[0];if(o(n)||r(n)||(t=[t]),!(e=(n._gsap||{}).harness)){for(i=fe.length;i--&&!fe[i].targetTest(n););e=fe[i]}for(i=t.length;i--;)t[i]&&(t[i]._gsap||(t[i]._gsap=new Ie(t[i],e)))||t.splice(i,1);return t}function _(t){return t._gsap||m(we(t))[0]._gsap}function v(t,e,i){return(i=t[e])&&r(i)?t[e]():a(i)&&t.getAttribute&&t.getAttribute(e)||i}function w(t,e){return(t=t.split(",")).forEach(e)||t}function x(t){return Math.round(1e5*t)/1e5||0}function y(t,e){for(var i=e.length,n=0;t.indexOf(e[n])<0&&++nt._dur||e._start<0))for(var i=t;i;)i._dirty=1,i=i.parent;return t}function W(t){return t._repeat?ge(t._tTime,t=t.duration()+t._rDelay)*t:0}function I(t,e){return(t-e._start)*e._ts+(0<=e._ts?0:e._dirty?e.totalDuration():e._tDur)}function B(t){return t._end=x(t._start+(t._tDur/Math.abs(t._ts||t._rts||Vt)||0))}function E(t,e){var i=t._dp;return i&&i.smoothChildTiming&&t._ts&&(t._start=x(i._time-(0Vt)&&e.render(i,!0)),z(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._durs;)a=a._prev;a?(e._next=a._next,a._next=e):(e._next=t[i],t[i]=e),e._next?e._next._prev=e:t[n]=e,e._prev=a,e.parent=e._dp=t}(t,e,"_first","_last",t._sort?"_start":0),t._recent=e,n||L(t,e),t}function Y(t,e){return(se.ScrollTrigger||f("scrollTrigger",e))&&se.ScrollTrigger.create(e,t)}function X(t,e,i,n){return Ve(t,e),t._initted?!i&&t._pt&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&yt!==Se.frame?(oe.push(t),t._lazy=[e,n],1):void 0:1}function V(t,e,i,n){var r=t._repeat,s=x(e)||0,a=t._tTime/t._tDur;return a&&!n&&(t._time*=s/t._dur),t._dur=s,t._tDur=r?r<0?1e10:x(s*(r+1)+t._rDelay*r):s,a&&!n?E(t,t._tTime=t._tDur*a):t.parent&&B(t),i||z(t.parent,t),t}function U(t){return t instanceof Le?z(t):V(t,t._dur)}function G(t,e){var i,r,s=t.labels,a=t._recent||me,o=t.duration()>=Xt?a.endTime(!1):t._dur;return n(e)&&(isNaN(e)||e in s)?"<"===(i=e.charAt(0))||">"===i?("<"===i?a._start:a.endTime(0<=a._repeat))+(parseFloat(e.substr(1))||0):(i=e.indexOf("="))<0?(e in s||(s[e]=o),s[e]):(r=+(e.charAt(i-1)+e.substr(i+1)),1(r=Math.abs(r))&&(s=n,o=r);return s}function nt(t){return P(t),t.scrollTrigger&&t.scrollTrigger.kill(!1),t.progress()<1&&ye(t,"onInterrupt"),t}function rt(t,e,i){return(6*(t=t<0?t+1:1>16,t>>8&Te,t&Te]:0:Ae.black;if(!p){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),Ae[t])p=Ae[t];else if("#"===t.charAt(0)){if(t.length<6&&(t="#"+(n=t.charAt(1))+n+(r=t.charAt(2))+r+(a=t.charAt(3))+a+(5===t.length?t.charAt(4)+t.charAt(4):"")),9===t.length)return[(p=parseInt(t.substr(1,6),16))>>16,p>>8&Te,p&Te,parseInt(t.substr(7),16)/255];p=[(t=parseInt(t.substr(1),16))>>16,t>>8&Te,t&Te]}else if("hsl"===t.substr(0,3))if(p=d=t.match(Jt),e){if(~t.indexOf("="))return p=t.match(Kt),i&&p.length<4&&(p[3]=1),p}else o=+p[0]%360/360,h=p[1]/100,n=2*(l=p[2]/100)-(r=l<=.5?l*(h+1):l+h-l*h),3=i&&te)return n;n=n._next}else for(n=t._last;n&&n._start>=i;){if(!n._dur&&"isPause"===n.data&&n._start=r._start)&&r._ts&&l!==r){if(r.parent!==this)return this.render(t,e,i);if(r.render(0=this.totalDuration()||!v&&g)&&(c!==this._start&&Math.abs(u)===Math.abs(this._ts)||this._lock||(!t&&_||!(v===m&&0=n&&(s instanceof He?e&&r.push(s):(i&&r.push(s),t&&r.push.apply(r,s.getChildren(!0,e,i)))),s=s._next;return r},o.getById=function(t){for(var e=this.getChildren(1,1,1),i=e.length;i--;)if(e[i].vars.id===t)return e[i]},o.remove=function(t){return n(t)?this.removeLabel(t):r(t)?this.killTweensOf(t):(R(this,t),t===this._recent&&(this._recent=this._last),z(this))},o.totalTime=function(e,i){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=x(Se.time-(0e:!e||a.isActive())&&n.push(a):(i=a.getTweensOf(r,e)).length&&n.push.apply(n,i),a=a._next;return n},o.tweenTo=function(t,e){e=e||{};var i=this,n=G(i,t),r=e.startAt,s=e.onStart,a=e.onStartParams,o=e.immediateRender,h=He.to(i,k({ease:e.ease||"none",lazy:!1,immediateRender:!1,time:n,overwrite:"auto",duration:e.duration||Math.abs((n-(r&&"time"in r?r.time:i._time))/i.timeScale())||Vt,onStart:function(){i.pause();var t=e.duration||Math.abs((n-i._time)/i.timeScale());h._dur!==t&&V(h,t,0,1).render(h._time,!0,!0),s&&s.apply(h,a||[])}},e));return o?h.render(0):h},o.tweenFromTo=function(t,e,i){return this.tweenTo(e,k({startAt:{time:G(this,t)}},i))},o.recent=function(){return this._recent},o.nextLabel=function(t){return void 0===t&&(t=this._time),it(this,G(this,t))},o.previousLabel=function(t){return void 0===t&&(t=this._time),it(this,G(this,t),1)},o.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+Vt)},o.shiftChildren=function(t,e,i){void 0===i&&(i=0);for(var n,r=this._first,s=this.labels;r;)r._start>=i&&(r._start+=t,r._end+=t),r=r._next;if(e)for(n in s)s[n]>=i&&(s[n]+=t);return z(this)},o.invalidate=function(){var e=this._first;for(this._lock=0;e;)e.invalidate(),e=e._next;return t.prototype.invalidate.call(this)},o.clear=function(t){void 0===t&&(t=!0);for(var e,i=this._first;i;)e=i._next,this.remove(i),i=e;return this._dp&&(this._time=this._tTime=this._pTime=0),t&&(this.labels={}),z(this)},o.totalDuration=function(t){var e,i,n,r=0,s=this,a=s._last,o=Xt;if(arguments.length)return s.timeScale((s._repeat<0?s.duration():s.totalDuration())/(s.reversed()?-t:t));if(s._dirty){for(n=s.parent;a;)e=a._prev,a._dirty&&a.totalDuration(),o<(i=a._start)&&s._sort&&a._ts&&!s._lock?(s._lock=1,N(s,a,i-a._delay,1)._lock=0):o=i,i<0&&a._ts&&(r-=i,(!n&&!s._dp||n&&n.smoothChildTiming)&&(s._start+=i/s._ts,s._time-=i,s._tTime-=i),s.shiftChildren(-i,!1,-1/0),o=0),a._end>r&&a._ts&&(r=a._end),a=e;V(s,s===gt&&s._time>r?s._time:r,1,1),s._dirty=0}return s._tDur},a.updateRoot=function(t){if(gt._ts&&(b(gt,I(t,gt)),yt=Se.frame),Se.frame>=ce){ce+=Nt.autoSleep||120;var e=gt._first;if((!e||!e._ts)&&Nt.autoSleep&&Se._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||Se.sleep()}}},a}(Be);function Ne(t,e,i,s,a,h){var l,u,c,f;if(le[t]&&!1!==(l=new le[t]).init(a,l.rawVars?e[t]:function(t,e,i,s,a){if(r(t)&&(t=Ue(t,a,e,i,s)),!o(t)||t.style&&t.nodeType||$t(t)||Zt(t))return n(t)?Ue(t,a,e,i,s):t;var h,l={};for(h in t)l[h]=Ue(t[h],a,e,i,s);return l}(e[t],s,a,h,i),i,s,h)&&(i._pt=u=new oi(i._pt,a,t,0,1,l.render,l,0,l.priority),i!==Tt))for(c=i._ptLookup[i._targets.indexOf(a)],f=l._props.length;f--;)c[l._props[f]]=u;return l}k(Le.prototype,{_lock:0,_hasPause:0,_forcing:0});var Ye,Xe=function(t,e,i,s,a,o,h,l,u){r(s)&&(s=s(a||0,t,o));var c,d=t[e],p="get"!==i?i:r(d)?u?t[e.indexOf("set")||!r(t["get"+e.substr(3)])?e:"get"+e.substr(3)](u):t[e]():d,g=r(d)?u?Je:$e:Ze;if(n(s)&&(~s.indexOf("random(")&&(s=et(s)),"="===s.charAt(1)&&(s=parseFloat(p)+parseFloat(s.substr(2))*("-"===s.charAt(0)?-1:1)+(H(p)||0))),p!==s)return isNaN(p*s)?(d||e in t||f(e,s),function(t,e,i,n,r,s,a){var o,h,l,u,c,f,d,p,g=new oi(this._pt,t,e,0,1,ii,null,r),m=0,_=0;for(g.b=i,g.e=n,i+="",(d=~(n+="").indexOf("random("))&&(n=et(n)),s&&(s(p=[i,n],t,e),i=p[0],n=p[1]),h=i.match(ee)||[];o=ee.exec(n);)u=o[0],c=n.substring(m,o.index),l?l=(l+1)%5:"rgba("===c.substr(-5)&&(l=1),u!==h[_++]&&(f=parseFloat(h[_-1])||0,g._pt={_next:g._pt,p:c||1===_?c:",",s:f,c:"="===u.charAt(1)?parseFloat(u.substr(2))*("-"===u.charAt(0)?-1:1):parseFloat(u)-f,m:l&&l<4?Math.round:0},m=ee.lastIndex);return g.c=m")});else{if(_=I.length,y=M?Z(M):g,o(M))for(v in M)~Ge.indexOf(v)&&((T=T||{})[v]=M[v]);for(f=0;f<_;f++){for(v in p={},n)qe.indexOf(v)<0&&(p[v]=n[v]);p.stagger=0,z&&(p.yoyoEase=z),T&&pe(p,T),w=I[f],p.duration=+Ue(b,i(l),f,w,I),p.delay=(+Ue(D,i(l),f,w,I)||0)-l._delay,!M&&1===_&&p.delay&&(l._delay=D=p.delay,l._start+=D,p.delay=0),c.to(w,p,y(f,w,I))}c.duration()?b=D=0:l.timeline=0}b||l.duration(b=c.duration())}else l.timeline=0;return!0!==O||pt||(Ye=i(l),gt.killTweensOf(I),Ye=0),W&&L(W,i(l)),(S||!b&&!F&&l._start===x(W._time)&&h(S)&&function t(e){return!e||e._ts&&t(e.parent)}(i(l))&&"nested"!==W.data)&&(l._tTime=-Vt,l.render(Math.max(0,-D))),P&&Y(i(l),P),l}e(r,t);var a=r.prototype;return a.render=function(t,e,i){var n,r,s,a,o,h,l,u,c,f=this._time,d=this._tDur,p=this._dur,g=d-Vt=t._tDur||e<0)&&t.ratio===h&&(h&&P(t,1),i||(ye(t,h?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)}(this,t,e,i);return this},a.targets=function(){return this._targets},a.invalidate=function(){return this._pt=this._op=this._startAt=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(),t.prototype.invalidate.call(this)},a.kill=function(t,e){if(void 0===e&&(e="all"),!(t||e&&"all"!==e))return this._lazy=this._pt=0,this.parent?nt(this):this;if(this.timeline){var i=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,Ye&&!0!==Ye.vars.overwrite)._first||nt(this),this.parent&&i!==this.timeline.totalDuration()&&V(this,this._dur*this.timeline._tDur/i,0,1),this}var r,s,a,o,h,l,u,c=this._targets,f=t?we(t):c,d=this._ptLookup,p=this._pt;if((!e||"all"===e)&&function(t,e){for(var i=t.length,n=i===e.length;n&&i--&&t[i]===e[i];);return i<0}(c,f))return"all"===e&&(this._pt=0),nt(this);for(r=this._op=this._op||[],"all"!==e&&(n(e)&&(h={},w(e,function(t){return h[t]=1}),e=h),e=function(t,e){var i,n,r,s,a=t[0]?_(t[0]).harness:0,o=a&&a.aliases;if(!o)return e;for(n in i=pe({},e),o)if(n in i)for(r=(s=o[n].split(",")).length;r--;)i[s[r]]=i[n];return i}(c,e)),u=c.length;u--;)if(~f.indexOf(c[u]))for(h in s=d[u],"all"===e?(r[u]=e,o=s,a={}):(a=r[u]=r[u]||{},o=e),o)(l=s&&s[h])&&("kill"in l.d&&!0!==l.d.kill(h)||R(this,l,"_pt"),delete s[h]),"all"!==a&&(a[h]=1);return this._initted&&!this._pt&&p&&nt(this),this},r.to=function(t,e,i){return new r(t,e,i)},r.from=function(t,e){return new r(t,T(arguments,1))},r.delayedCall=function(t,e,i,n){return new r(e,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:e,onReverseComplete:e,onCompleteParams:i,onReverseCompleteParams:i,callbackScope:n})},r.fromTo=function(t,e,i){return new r(t,T(arguments,2))},r.set=function(t,e){return e.duration=0,e.repeatDelay||(e.repeat=0),new r(t,e)},r.killTweensOf=function(t,e,i){return gt.killTweensOf(t,e,i)},r}(Be);function je(t,e,i){return t.setAttribute(e,i)}function Qe(t,e,i,n){n.mSet(t,e,n.m.call(n.tween,i,n.mt),n)}k(He.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),w("staggerTo,staggerFrom,staggerFromTo",function(t){He[t]=function(){var e=new Le,i=ve.call(arguments,0);return i.splice("staggerFromTo"===t?5:4,0,0),e[t].apply(e,i)}});var Ze=function(t,e,i){return t[e]=i},$e=function(t,e,i){return t[e](i)},Je=function(t,e,i,n){return t[e](n.fp,i)},Ke=function(t,e){return r(t[e])?$e:a(t[e])&&t.setAttribute?je:Ze},ti=function(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4,e)},ei=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},ii=function(t,e){var i=e._pt,n="";if(!t&&e.b)n=e.b;else if(1===t&&e.e)n=e.e;else{for(;i;)n=i.p+(i.m?i.m(i.s+i.c*t):Math.round(1e4*(i.s+i.c*t))/1e4)+n,i=i._next;n+=e.c}e.set(e.t,e.p,n,e)},ni=function(t,e){for(var i=e._pt;i;)i.r(t,i.d),i=i._next},ri=function(t,e,i,n){for(var r,s=this._pt;s;)r=s._next,s.p===n&&s.modifier(t,e,i),s=r},si=function(t){for(var e,i,n=this._pt;n;)i=n._next,n.p===t&&!n.op||n.op===t?R(this,n,"_pt"):n.dep||(e=1),n=i;return!e},ai=function(t){for(var e,i,n,r,s=t._pt;s;){for(e=s._next,i=n;i&&i.pr>s.pr;)i=i._next;(s._prev=i?i._prev:r)?s._prev._next=s:n=s,(s._next=i)?i._prev=s:r=s,s=e}t._pt=n},oi=(hi.prototype.modifier=function(t,e,i){this.mSet=this.mSet||this.set,this.set=Qe,this.m=t,this.mt=i,this.tween=e},hi);function hi(t,e,i,n,r,s,a,o,h){this.t=e,this.s=n,this.c=r,this.p=i,this.r=s||ti,this.d=a||this,this.set=o||Ze,this.pr=h||0,(this._next=t)&&(t._prev=this)}w(de+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(t){return ae[t]=1}),se.TweenMax=se.TweenLite=He,se.TimelineLite=se.TimelineMax=Le,gt=new Le({sortChildren:!1,defaults:Yt,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),Nt.stringFilter=ht;var li={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),i=0;i