-1;)e[u._overwriteProps[o]]=this._firstPT;(u._priority||u._onInitAllProps)&&(l=!0),(u._onDisable||u._onEnable)&&(this._notifyPluginsOfEnabled=!0),_._next&&(_._next._prev=_)}else e[s]=Q.call(this,t,s,"get",c,s,0,null,this.vars.stringFilter,a);return n&&this._kill(n,t)?this._initProps(t,e,r,n,a):this._overwrite>1&&this._firstPT&&r.length>1&&nt(t,this,e,this._overwrite,r)?(this._kill(e,t),this._initProps(t,e,r,n,a)):(this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration)&&(G[t._gsTweenID]=!0),l)},c.render=function(t,e,i){var r,n,a,s,o=this,l=o._time,u=o._duration,_=o._rawPrevTime;if(t>=u-p&&t>=0)o._totalTime=o._time=u,o.ratio=o._ease._calcEnd?o._ease.getRatio(1):1,o._reversed||(r=!0,n="onComplete",i=i||o._timeline.autoRemoveChildren),0===u&&(o._initted||!o.vars.lazy||i)&&(o._startTime===o._timeline._duration&&(t=0),(_<0||t<=0&&t>=-1e-8||_===p&&"isPause"!==o.data)&&_!==t&&(i=!0,_>p&&(n="onReverseComplete")),o._rawPrevTime=s=!e||t||_===t?t:p);else if(t0)&&(n="onReverseComplete",r=o._reversed),t>-1e-8?t=0:t<0&&(o._active=!1,0===u&&(o._initted||!o.vars.lazy||i)&&(_>=0&&(_!==p||"isPause"!==o.data)&&(i=!0),o._rawPrevTime=s=!e||t||_===t?t:p)),(!o._initted||o._startAt&&o._startAt.progress())&&(i=!0);else if(o._totalTime=o._time=t,o._easeType){var c=t/u,h=o._easeType,f=o._easePower;(1===h||3===h&&c>=.5)&&(c=1-c),3===h&&(c*=2),1===f?c*=c:2===f?c*=c*c:3===f?c*=c*c*c:4===f&&(c*=c*c*c*c),o.ratio=1===h?1-c:2===h?c:t/u<.5?c/2:1-c/2}else o.ratio=o._ease.getRatio(t/u);if(o._time!==l||i){if(!o._initted){if(o._init(),!o._initted||o._gc)return;if(!i&&o._firstPT&&(!1!==o.vars.lazy&&o._duration||o.vars.lazy&&!o._duration))return o._time=o._totalTime=l,o._rawPrevTime=_,N.push(o),void(o._lazy=[t,e]);o._time&&!r?o.ratio=o._ease.getRatio(o._time/u):r&&o._ease._calcEnd&&(o.ratio=o._ease.getRatio(0===o._time?0:1))}for(!1!==o._lazy&&(o._lazy=!1),o._active||!o._paused&&o._time!==l&&t>=0&&(o._active=!0),0===l&&(o._startAt&&(t>=0?o._startAt.render(t,!0,i):n||(n="_dummyGS")),o.vars.onStart&&(0===o._time&&0!==u||e||o._callback("onStart"))),a=o._firstPT;a;)a.f?a.t[a.p](a.c*o.ratio+a.s):a.t[a.p]=a.c*o.ratio+a.s,a=a._next;o._onUpdate&&(t<0&&o._startAt&&-1e-4!==t&&o._startAt.render(t,!0,i),e||(o._time!==l||r||i)&&o._callback("onUpdate")),n&&(o._gc&&!i||(t<0&&o._startAt&&!o._onUpdate&&-1e-4!==t&&o._startAt.render(t,!0,i),r&&(o._timeline.autoRemoveChildren&&o._enabled(!1,!1),o._active=!1),!e&&o.vars[n]&&o._callback(n),0===u&&o._rawPrevTime===p&&s!==p&&(o._rawPrevTime=0)))}},c._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:z.selector(e)||e;var r,n,a,s,o,l,u,_,c,h=i&&this._time&&i._startTime===this._startTime&&this._timeline===i._timeline,f=this._firstPT;if((y(e)||F(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(u=t||o,_=t!==n&&"all"!==n&&t!==o&&("object"!==typeof t||!t._tempKill),i&&(z.onOverwrite||this.vars.onOverwrite)){for(a in u)o[a]&&(c||(c=[]),c.push(a));if((c||!t)&&!rt(this,i,e,c))return!1}for(a in u)(s=o[a])&&(h&&(s.f?s.t[s.p](s.s):s.t[s.p]=s.s,l=!0),s.pg&&s.t._kill(u)&&(l=!0),s.pg&&0!==s.t._overwriteProps.length||(s._prev?s._prev._next=s._next:s===this._firstPT&&(this._firstPT=s._next),s._next&&(s._next._prev=s._prev),s._next=s._prev=null),delete o[a]),_&&(n[a]=1);!this._firstPT&&this._initted&&f&&this._enabled(!1,!1)}}return l},c.invalidate=function(){this._notifyPluginsOfEnabled&&z._onPluginEvent("_onDisable",this);var t=this._time;return this._firstPT=this._overwrittenProps=this._startAt=this._onUpdate=null,this._notifyPluginsOfEnabled=this._active=this._lazy=!1,this._propLookup=this._targets?{}:[],L.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-1e-8,this.render(t,!1,!1!==this.vars.lazy)),this},c._enabled=function(t,e){if(f||h.wake(),t&&this._gc){var i,r=this._targets;if(r)for(i=r.length;--i>-1;)this._siblings[i]=it(r[i],this,!0);else this._siblings=it(this.target,this,!0)}return L.prototype._enabled.call(this,t,e),!(!this._notifyPluginsOfEnabled||!this._firstPT)&&z._onPluginEvent(t?"_onEnable":"_onDisable",this)},z.to=function(t,e,i){return new z(t,e,i)},z.from=function(t,e,i){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,new z(t,e,i)},z.fromTo=function(t,e,i,r){return r.startAt=i,r.immediateRender=0!=r.immediateRender&&0!=i.immediateRender,new z(t,e,r)},z.delayedCall=function(t,e,i,r,n){return new z(e,0,{delay:t,onComplete:e,onCompleteParams:i,callbackScope:r,onReverseComplete:e,onReverseCompleteParams:i,immediateRender:!1,lazy:!1,useFrames:n,overwrite:0})},z.set=function(t,e){return new z(t,0,e)},z.getTweensOf=function(t,e){if(null==t)return[];var i,r,n,a;if(t="string"!==typeof t?t:z.selector(t)||t,(y(t)||F(t))&&"number"!==typeof t[0]){for(i=t.length,r=[];--i>-1;)r=r.concat(z.getTweensOf(t[i],e));for(i=r.length;--i>-1;)for(a=r[i],n=i;--n>-1;)a===r[n]&&r.splice(i,1)}else if(t._gsTweenID)for(i=(r=it(t).concat()).length;--i>-1;)(r[i]._gc||e&&!r[i].isActive())&&r.splice(i,1);return r||[]},z.killTweensOf=z.killDelayedCallsTo=function(t,e,i){"object"===typeof e&&(i=e,e=!1);for(var r=z.getTweensOf(t,e),n=r.length;--n>-1;)r[n]._kill(i,t)};var st=P("plugins.TweenPlugin",(function(t,e){this._overwriteProps=(t||"").split(","),this._propName=this._overwriteProps[0],this._priority=e||0,this._super=st.prototype}),!0);if(c=st.prototype,st.version="1.19.0",st.API=2,c._firstPT=null,c._addTween=Q,c.setRatio=j,c._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},c._mod=c._roundProps=function(t){for(var e,i=this._firstPT;i;)(e=t[this._propName]||null!=i.n&&t[i.n.split(this._propName+"_").join("")])&&"function"===typeof e&&(2===i.f?i.t._applyPT.m=e:i.m=e),i=i._next},z._onPluginEvent=function(t,e){var i,r,n,a,s,o=e._firstPT;if("_onInitAllProps"===t){for(;o;){for(s=o._next,r=n;r&&r.pr>o.pr;)r=r._next;(o._prev=r?r._prev:a)?o._prev._next=o:n=o,(o._next=r)?r._prev=o:a=o,o=s}o=e._firstPT=n}for(;o;)o.pg&&"function"===typeof o.t[t]&&o.t[t]()&&(i=!0),o=o._next;return i},st.activate=function(t){for(var e=t.length;--e>-1;)t[e].API===st.API&&(H[(new t[e])._propName]=t[e]);return!0},b.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,a={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_mod",mod:"_mod",initAll:"_onInitAllProps"},s=P("plugins."+i.charAt(0).toUpperCase()+i.substr(1)+"Plugin",(function(){st.call(this,i,r),this._overwriteProps=n||[]}),!0===t.global),o=s.prototype=new st(i);for(e in o.constructor=s,s.API=t.API,a)"function"===typeof t[e]&&(o[a[e]]=t[e]);return s.version=t.version,st.activate([s]),s},u=i._gsQueue){for(_=0;_ As of ScrollMagic 2.0.0 you need to use 'new ScrollMagic.Controller()' to create a new controller instance. Use 'new ScrollMagic.Scene()' to instance a scene.")};t.version="2.0.8","undefined"!==typeof window&&window.addEventListener("mousewheel",void 0);var e="data-scrollmagic-pin-spacer";t.Controller=function(r){var a,s,o="ScrollMagic.Controller",l="FORWARD",u="REVERSE",_="PAUSED",c=i.defaults,h=this,f=n.extend({},c,r),d=[],m=!1,p=0,g=_,v=!0,y=0,T=!0,w=function(){for(var e in f)c.hasOwnProperty(e)||(D(2,'WARNING: Unknown option "'+e+'"'),delete f[e]);if(f.container=n.get.elements(f.container)[0],!f.container)throw D(1,"ERROR creating object "+o+": No valid scroll container supplied"),o+" init failed.";(v=f.container===window||f.container===document.body||!document.body.contains(f.container))&&(f.container=window),y=S(),f.container.addEventListener("resize",x),f.container.addEventListener("scroll",x);var i=parseInt(f.refreshInterval,10);f.refreshInterval=n.type.Number(i)?i:c.refreshInterval,b(),D(3,"added new "+o+" controller (v"+t.version+")")},b=function(){f.refreshInterval>0&&(s=window.setTimeout(A,f.refreshInterval))},P=function(){return f.vertical?n.get.scrollTop(f.container):n.get.scrollLeft(f.container)},S=function(){return f.vertical?n.get.height(f.container):n.get.width(f.container)},k=this._setScrollPos=function(t){f.vertical?v?window.scrollTo(n.get.scrollLeft(),t):f.container.scrollTop=t:v?window.scrollTo(t,n.get.scrollTop()):f.container.scrollLeft=t},R=function(){if(T&&m){var t=n.type.Array(m)?m:d.slice(0);m=!1;var e=p,i=(p=h.scrollPos())-e;0!==i&&(g=i>0?l:u),g===u&&t.reverse(),t.forEach((function(e,i){D(3,"updating Scene "+(i+1)+"/"+t.length+" ("+d.length+" total)"),e.update(!0)})),0===t.length&&f.loglevel>=3&&D(3,"updating 0 Scenes (nothing added to controller)")}},C=function(){a=n.rAF(R)},x=function(t){D(3,"event fired causing an update:",t.type),"resize"==t.type&&(y=S(),g=_),!0!==m&&(m=!0,C())},A=function(){if(!v&&y!=S()){var t;try{t=new Event("resize",{bubbles:!1,cancelable:!1})}catch(e){(t=document.createEvent("Event")).initEvent("resize",!1,!1)}f.container.dispatchEvent(t)}d.forEach((function(t,e){t.refresh()})),b()},D=this._log=function(t,e){f.loglevel>=t&&(Array.prototype.splice.call(arguments,1,0,"("+o+") ->"),n.log.apply(window,arguments))};this._options=f;var E=function(t){if(t.length<=1)return t;var e=t.slice(0);return e.sort((function(t,e){return t.scrollOffset()>e.scrollOffset()?1:-1})),e};return this.addScene=function(e){if(n.type.Array(e))e.forEach((function(t,e){h.addScene(t)}));else if(e instanceof t.Scene){if(e.controller()!==h)e.addTo(h);else if(d.indexOf(e)<0){for(var i in d.push(e),d=E(d),e.on("shift.controller_sort",(function(){d=E(d)})),f.globalSceneOptions)e[i]&&e[i].call(e,f.globalSceneOptions[i]);D(3,"adding Scene (now "+d.length+" total)")}}else D(1,"ERROR: invalid argument supplied for '.addScene()'");return h},this.removeScene=function(t){if(n.type.Array(t))t.forEach((function(t,e){h.removeScene(t)}));else{var e=d.indexOf(t);e>-1&&(t.off("shift.controller_sort"),d.splice(e,1),D(3,"removing Scene (now "+d.length+" left)"),t.remove())}return h},this.updateScene=function(e,i){return n.type.Array(e)?e.forEach((function(t,e){h.updateScene(t,i)})):i?e.update(!0):!0!==m&&e instanceof t.Scene&&(-1==(m=m||[]).indexOf(e)&&m.push(e),m=E(m),C()),h},this.update=function(t){return x({type:"resize"}),t&&R(),h},this.scrollTo=function(i,r){if(n.type.Number(i))k.call(f.container,i,r);else if(i instanceof t.Scene)i.controller()===h?h.scrollTo(i.scrollOffset(),r):D(2,"scrollTo(): The supplied scene does not belong to this controller. Scroll cancelled.",i);else if(n.type.Function(i))k=i;else{var a=n.get.elements(i)[0];if(a){for(;a.parentNode.hasAttribute(e);)a=a.parentNode;var s=f.vertical?"top":"left",o=n.get.offset(f.container),l=n.get.offset(a);v||(o[s]-=h.scrollPos()),h.scrollTo(l[s]-o[s],r)}else D(2,"scrollTo(): The supplied argument is invalid. Scroll cancelled.",i)}return h},this.scrollPos=function(t){return arguments.length?(n.type.Function(t)?P=t:D(2,"Provided value for method 'scrollPos' is not a function. To change the current scroll position use 'scrollTo()'."),h):P.call(h)},this.info=function(t){var e={size:y,vertical:f.vertical,scrollPos:p,scrollDirection:g,container:f.container,isDocument:v};return arguments.length?void 0!==e[t]?e[t]:void D(1,'ERROR: option "'+t+'" is not available'):e},this.loglevel=function(t){return arguments.length?(f.loglevel!=t&&(f.loglevel=t),h):f.loglevel},this.enabled=function(t){return arguments.length?(T!=t&&(T=!!t,h.updateScene(d,!0)),h):T},this.destroy=function(t){window.clearTimeout(s);for(var e=d.length;e--;)d[e].destroy(t);return f.container.removeEventListener("resize",x),f.container.removeEventListener("scroll",x),n.cAF(a),D(3,"destroyed "+o+" (reset: "+(t?"true":"false")+")"),null},w(),h};var i={defaults:{container:window,vertical:!0,globalSceneOptions:{},loglevel:2,refreshInterval:100}};t.Controller.addOption=function(t,e){i.defaults[t]=e},t.Controller.extend=function(e){var i=this;t.Controller=function(){return i.apply(this,arguments),this.$super=n.extend({},this),e.apply(this,arguments)||this},n.extend(t.Controller,i),t.Controller.prototype=i.prototype,t.Controller.prototype.constructor=t.Controller},t.Scene=function(i){var a,s,o="ScrollMagic.Scene",l="BEFORE",u="DURING",_="AFTER",c=r.defaults,h=this,f=n.extend({},c,i),d=l,m=0,p={start:0,end:0},g=0,v=!0,y=function(){for(var t in f)c.hasOwnProperty(t)||(w(2,'WARNING: Unknown option "'+t+'"'),delete f[t]);for(var e in c)E(e);A()},T={};this.on=function(t,e){return n.type.Function(e)?(t=t.trim().split(" ")).forEach((function(t){var i=t.split("."),r=i[0],n=i[1];"*"!=r&&(T[r]||(T[r]=[]),T[r].push({namespace:n||"",callback:e}))})):w(1,"ERROR when calling '.on()': Supplied callback for '"+t+"' is not a valid function!"),h},this.off=function(t,e){return t?((t=t.trim().split(" ")).forEach((function(t,i){var r=t.split("."),n=r[0],a=r[1]||"";("*"===n?Object.keys(T):[n]).forEach((function(t){for(var i=T[t]||[],r=i.length;r--;){var n=i[r];!n||a!==n.namespace&&"*"!==a||e&&e!=n.callback||i.splice(r,1)}i.length||delete T[t]}))})),h):(w(1,"ERROR: Invalid event name supplied."),h)},this.trigger=function(e,i){if(e){var r=e.trim().split("."),n=r[0],a=r[1],s=T[n];w(3,"event fired:",n,i?"->":"",i||""),s&&s.forEach((function(e,r){a&&a!==e.namespace||e.callback.call(h,new t.Event(n,e.namespace,h,i))}))}else w(1,"ERROR: Invalid event name supplied.");return h},h.on("change.internal",(function(t){"loglevel"!==t.what&&"tweenChanges"!==t.what&&("triggerElement"===t.what?R():"reverse"===t.what&&h.update())})).on("shift.internal",(function(t){S(),h.update()}));var w=this._log=function(t,e){f.loglevel>=t&&(Array.prototype.splice.call(arguments,1,0,"("+o+") ->"),n.log.apply(window,arguments))};this.addTo=function(e){return e instanceof t.Controller?s!=e&&(s&&s.removeScene(h),s=e,A(),k(!0),R(!0),S(),s.info("container").addEventListener("resize",C),e.addScene(h),h.trigger("add",{controller:s}),w(3,"added "+o+" to controller"),h.update()):w(1,"ERROR: supplied argument of 'addTo()' is not a valid ScrollMagic Controller"),h},this.enabled=function(t){return arguments.length?(v!=t&&(v=!!t,h.update(!0)),h):v},this.remove=function(){if(s){s.info("container").removeEventListener("resize",C);var t=s;s=void 0,t.removeScene(h),h.trigger("remove"),w(3,"removed "+o+" from controller")}return h},this.destroy=function(t){return h.trigger("destroy",{reset:t}),h.remove(),h.off("*.*"),w(3,"destroyed "+o+" (reset: "+(t?"true":"false")+")"),null},this.update=function(t){if(s)if(t)if(s.enabled()&&v){var e,i=s.info("scrollPos");e=f.duration>0?(i-p.start)/(p.end-p.start):i>=p.start?1:0,h.trigger("update",{startPos:p.start,endPos:p.end,scrollPos:i}),h.progress(e)}else b&&d===u&&O(!0);else s.updateScene(h,!1);return h},this.refresh=function(){return k(),R(),h},this.progress=function(t){if(arguments.length){var e=!1,i=d,r=s?s.info("scrollDirection"):"PAUSED",n=f.reverse||t>=m;if(0===f.duration?(e=m!=t,d=0===(m=t<1&&n?0:1)?l:u):t<0&&d!==l&&n?(m=0,d=l,e=!0):t>=0&&t<1&&n?(m=t,d=u,e=!0):t>=1&&d!==_?(m=1,d=_,e=!0):d!==u||n||O(),e){var a={progress:m,state:d,scrollDirection:r},o=d!=i,c=function(t){h.trigger(t,a)};o&&i!==u&&(c("enter"),c(i===l?"start":"end")),c("progress"),o&&d!==u&&(c(d===l?"start":"end"),c("leave"))}return h}return m};var b,P,S=function(){p={start:g+f.offset},s&&f.triggerElement&&(p.start-=s.info("size")*f.triggerHook),p.end=p.start+f.duration},k=function(t){if(a){var e="duration";D(e,a.call(h))&&!t&&(h.trigger("change",{what:e,newval:f[e]}),h.trigger("shift",{reason:e}))}},R=function(t){var i=0,r=f.triggerElement;if(s&&(r||g>0)){if(r)if(r.parentNode){for(var a=s.info(),o=n.get.offset(a.container),l=a.vertical?"top":"left";r.parentNode.hasAttribute(e);)r=r.parentNode;var u=n.get.offset(r);a.isDocument||(o[l]-=s.scrollPos()),i=u[l]-o[l]}else w(2,"WARNING: triggerElement was removed from DOM and will be reset to",void 0),h.triggerElement(void 0);var _=i!=g;g=i,_&&!t&&h.trigger("shift",{reason:"triggerElementPosition"})}},C=function(t){f.triggerHook>0&&h.trigger("shift",{reason:"containerResize"})},x=n.extend(r.validate,{duration:function(t){if(n.type.String(t)&&t.match(/^(\.|\d)*\d+%$/)){var e=parseFloat(t)/100;t=function(){return s?s.info("size")*e:0}}if(n.type.Function(t)){a=t;try{t=parseFloat(a.call(h))}catch(i){t=-1}}if(t=parseFloat(t),!n.type.Number(t)||t<0)throw a?(a=void 0,['Invalid return value of supplied function for option "duration":',t]):['Invalid value for option "duration":',t];return t}}),A=function(t){(t=arguments.length?[t]:Object.keys(x)).forEach((function(t,e){var i;if(x[t])try{i=x[t](f[t])}catch(a){i=c[t];var r=n.type.String(a)?[a]:a;n.type.Array(r)?(r[0]="ERROR: "+r[0],r.unshift(1),w.apply(this,r)):w(1,"ERROR: Problem executing validation callback for option '"+t+"':",a.message)}finally{f[t]=i}}))},D=function(t,e){var i=!1,r=f[t];return f[t]!=e&&(f[t]=e,A(t),i=r!=f[t]),i},E=function(t){h[t]||(h[t]=function(e){return arguments.length?("duration"===t&&(a=void 0),D(t,e)&&(h.trigger("change",{what:t,newval:f[t]}),r.shifts.indexOf(t)>-1&&h.trigger("shift",{reason:t})),h):f[t]})};this.controller=function(){return s},this.state=function(){return d},this.scrollOffset=function(){return p.start},this.triggerPosition=function(){var t=f.offset;return s&&(f.triggerElement?t+=g:t+=s.info("size")*h.triggerHook()),t},h.on("shift.internal",(function(t){var e="duration"===t.reason;(d===_&&e||d===u&&0===f.duration)&&O(),e&&L()})).on("progress.internal",(function(t){O()})).on("add.internal",(function(t){L()})).on("destroy.internal",(function(t){h.removePin(t.reset)}));var O=function(t){if(b&&s){var e=s.info(),i=P.spacer.firstChild;if(t||d!==u){var r={position:P.inFlow?"relative":"absolute",top:0,left:0},a=n.css(i,"position")!=r.position;P.pushFollowers?f.duration>0&&(d===_&&0===parseFloat(n.css(P.spacer,"padding-top"))||d===l&&0===parseFloat(n.css(P.spacer,"padding-bottom")))&&(a=!0):r[e.vertical?"top":"left"]=f.duration*m,n.css(i,r),a&&L()}else{"fixed"!=n.css(i,"position")&&(n.css(i,{position:"fixed"}),L());var o=n.get.offset(P.spacer,!0),c=f.reverse||0===f.duration?e.scrollPos-p.start:Math.round(m*f.duration*10)/10;o[e.vertical?"top":"left"]+=c,n.css(P.spacer.firstChild,{top:o.top,left:o.left})}}},L=function(){if(b&&s&&P.inFlow){var t=d===u,e=s.info("vertical"),i=P.spacer.firstChild,r=n.isMarginCollapseType(n.css(P.spacer,"display")),a={};P.relSize.width||P.relSize.autoFullWidth?t?n.css(b,{width:n.get.width(P.spacer)}):n.css(b,{width:"100%"}):(a["min-width"]=n.get.width(e?b:i,!0,!0),a.width=t?a["min-width"]:"auto"),P.relSize.height?t?n.css(b,{height:n.get.height(P.spacer)-(P.pushFollowers?f.duration:0)}):n.css(b,{height:"100%"}):(a["min-height"]=n.get.height(e?i:b,!0,!r),a.height=t?a["min-height"]:"auto"),P.pushFollowers&&(a["padding"+(e?"Top":"Left")]=f.duration*m,a["padding"+(e?"Bottom":"Right")]=f.duration*(1-m)),n.css(P.spacer,a)}},M=function(){s&&b&&d===u&&!s.info("isDocument")&&O()},I=function(){s&&b&&d===u&&((P.relSize.width||P.relSize.autoFullWidth)&&n.get.width(window)!=n.get.width(P.spacer.parentNode)||P.relSize.height&&n.get.height(window)!=n.get.height(P.spacer.parentNode))&&L()},z=function(t){s&&b&&d===u&&!s.info("isDocument")&&(t.preventDefault(),s._setScrollPos(s.info("scrollPos")-((t.wheelDelta||t[s.info("vertical")?"wheelDeltaY":"wheelDeltaX"])/3||30*-t.detail)))};this.setPin=function(t,i){var r={pushFollowers:!0,spacerClass:"scrollmagic-pin-spacer"},a=i&&i.hasOwnProperty("pushFollowers");if(i=n.extend({},r,i),!(t=n.get.elements(t)[0]))return w(1,"ERROR calling method 'setPin()': Invalid pin element supplied."),h;if("fixed"===n.css(t,"position"))return w(1,"ERROR calling method 'setPin()': Pin does not work with elements that are positioned 'fixed'."),h;if(b){if(b===t)return h;h.removePin()}var s=(b=t).parentNode.style.display,o=["top","left","bottom","right","margin","marginLeft","marginRight","marginTop","marginBottom"];b.parentNode.style.display="none";var l="absolute"!=n.css(b,"position"),u=n.css(b,o.concat(["display"])),_=n.css(b,["width","height"]);b.parentNode.style.display=s,!l&&i.pushFollowers&&(w(2,"WARNING: If the pinned element is positioned absolutely pushFollowers will be disabled."),i.pushFollowers=!1),window.setTimeout((function(){b&&0===f.duration&&a&&i.pushFollowers&&w(2,"WARNING: pushFollowers =",!0,"has no effect, when scene duration is 0.")}),0);var c=b.parentNode.insertBefore(document.createElement("div"),b),d=n.extend(u,{position:l?"relative":"absolute",boxSizing:"content-box",mozBoxSizing:"content-box",webkitBoxSizing:"content-box"});if(l||n.extend(d,n.css(b,["width","height"])),n.css(c,d),c.setAttribute(e,""),n.addClass(c,i.spacerClass),P={spacer:c,relSize:{width:"%"===_.width.slice(-1),height:"%"===_.height.slice(-1),autoFullWidth:"auto"===_.width&&l&&n.isMarginCollapseType(u.display)},pushFollowers:i.pushFollowers,inFlow:l},!b.___origStyle){b.___origStyle={};var m=b.style;o.concat(["width","height","position","boxSizing","mozBoxSizing","webkitBoxSizing"]).forEach((function(t){b.___origStyle[t]=m[t]||""}))}return P.relSize.width&&n.css(c,{width:_.width}),P.relSize.height&&n.css(c,{height:_.height}),c.appendChild(b),n.css(b,{position:l?"relative":"absolute",margin:"auto",top:"auto",left:"auto",bottom:"auto",right:"auto"}),(P.relSize.width||P.relSize.autoFullWidth)&&n.css(b,{boxSizing:"border-box",mozBoxSizing:"border-box",webkitBoxSizing:"border-box"}),window.addEventListener("scroll",M),window.addEventListener("resize",M),window.addEventListener("resize",I),b.addEventListener("mousewheel",z),b.addEventListener("DOMMouseScroll",z),w(3,"added pin"),O(),h},this.removePin=function(t){if(b){if(d===u&&O(!0),t||!s){var i=P.spacer.firstChild;if(i.hasAttribute(e)){var r=P.spacer.style,a={};["margin","marginLeft","marginRight","marginTop","marginBottom"].forEach((function(t){a[t]=r[t]||""})),n.css(i,a)}P.spacer.parentNode.insertBefore(i,P.spacer),P.spacer.parentNode.removeChild(P.spacer),b.parentNode.hasAttribute(e)||(n.css(b,b.___origStyle),delete b.___origStyle)}window.removeEventListener("scroll",M),window.removeEventListener("resize",M),window.removeEventListener("resize",I),b.removeEventListener("mousewheel",z),b.removeEventListener("DOMMouseScroll",z),b=void 0,w(3,"removed pin (reset: "+(t?"true":"false")+")")}return h};var F,N=[];return h.on("destroy.internal",(function(t){h.removeClassToggle(t.reset)})),this.setClassToggle=function(t,e){var i=n.get.elements(t);return 0!==i.length&&n.type.String(e)?(N.length>0&&h.removeClassToggle(),F=e,N=i,h.on("enter.internal_class leave.internal_class",(function(t){var e="enter"===t.type?n.addClass:n.removeClass;N.forEach((function(t,i){e(t,F)}))})),h):(w(1,"ERROR calling method 'setClassToggle()': Invalid "+(0===i.length?"element":"classes")+" supplied."),h)},this.removeClassToggle=function(t){return t&&N.forEach((function(t,e){n.removeClass(t,F)})),h.off("start.internal_class end.internal_class"),F=void 0,N=[],h},y(),h};var r={defaults:{duration:0,offset:0,triggerElement:void 0,triggerHook:.5,reverse:!0,loglevel:2},validate:{offset:function(t){if(t=parseFloat(t),!n.type.Number(t))throw['Invalid value for option "offset":',t];return t},triggerElement:function(t){if(t=t||void 0){var e=n.get.elements(t)[0];if(!e||!e.parentNode)throw['Element defined in option "triggerElement" was not found:',t];t=e}return t},triggerHook:function(t){var e={onCenter:.5,onEnter:1,onLeave:0};if(n.type.Number(t))t=Math.max(0,Math.min(parseFloat(t),1));else{if(!(t in e))throw['Invalid value for option "triggerHook": ',t];t=e[t]}return t},reverse:function(t){return!!t},loglevel:function(t){if(t=parseInt(t),!n.type.Number(t)||t<0||t>3)throw['Invalid value for option "loglevel":',t];return t}},shifts:["duration","offset","triggerHook"]};t.Scene.addOption=function(e,i,n,a){e in r.defaults?t._util.log(1,"[static] ScrollMagic.Scene -> Cannot add Scene option '"+e+"', because it already exists."):(r.defaults[e]=i,r.validate[e]=n,a&&r.shifts.push(e))},t.Scene.extend=function(e){var i=this;t.Scene=function(){return i.apply(this,arguments),this.$super=n.extend({},this),e.apply(this,arguments)||this},n.extend(t.Scene,i),t.Scene.prototype=i.prototype,t.Scene.prototype.constructor=t.Scene},t.Event=function(t,e,i,r){for(var n in r=r||{})this[n]=r[n];return this.type=t,this.target=this.currentTarget=i,this.namespace=e||"",this.timeStamp=this.timestamp=Date.now(),this};var n=t._util=function(t){var e,i={},r=function(t){return parseFloat(t)||0},n=function(e){return e.currentStyle?e.currentStyle:t.getComputedStyle(e)},a=function(e,i,a,s){if((i=i===document?t:i)===t)s=!1;else if(!d.DomElement(i))return 0;e=e.charAt(0).toUpperCase()+e.substr(1).toLowerCase();var o=(a?i["offset"+e]||i["outer"+e]:i["client"+e]||i["inner"+e])||0;if(a&&s){var l=n(i);o+="Height"===e?r(l.marginTop)+r(l.marginBottom):r(l.marginLeft)+r(l.marginRight)}return o},s=function(t){return t.replace(/^[^a-z]+([a-z])/g,"$1").replace(/-([a-z])/g,(function(t){return t[1].toUpperCase()}))};i.extend=function(t){for(t=t||{},e=1;e-1};var o=0,l=["ms","moz","webkit","o"],u=t.requestAnimationFrame,_=t.cancelAnimationFrame;for(e=0;!u&&ec.length||t<=0)&&(t=c.length);var e=new Date,i=("0"+e.getHours()).slice(-2)+":"+("0"+e.getMinutes()).slice(-2)+":"+("0"+e.getSeconds()).slice(-2)+":"+("00"+e.getMilliseconds()).slice(-3),r=c[t-1],n=Array.prototype.splice.call(arguments,1),a=Function.prototype.bind.call(h[r],h);n.unshift(i),a.apply(h,n)};var d=i.type=function(t){return Object.prototype.toString.call(t).replace(/^\[object (.+)\]$/,"$1").toLowerCase()};d.String=function(t){return"string"===d(t)},d.Function=function(t){return"function"===d(t)},d.Array=function(t){return Array.isArray(t)},d.Number=function(t){return!d.Array(t)&&t-parseFloat(t)+1>=0},d.DomElement=function(t){return"object"===typeof HTMLElement||"function"===typeof HTMLElement?t instanceof HTMLElement||t instanceof SVGElement:t&&"object"===typeof t&&null!==t&&1===t.nodeType&&"string"===typeof t.nodeName};var m=i.get={};return m.elements=function(e){var i=[];if(d.String(e))try{e=document.querySelectorAll(e)}catch(s){return i}if("nodelist"===d(e)||d.Array(e)||e instanceof NodeList)for(var r=0,n=i.length=e.length;r ERROR calling addIndicators() due to missing Plugin 'debug.addIndicators'. Please make sure to include plugins/debug.addIndicators.js"),this},t.Scene.prototype.removeIndicators=function(){return t._util.log(1,"(ScrollMagic.Scene) -> ERROR calling removeIndicators() due to missing Plugin 'debug.addIndicators'. Please make sure to include plugins/debug.addIndicators.js"),this},t.Scene.prototype.setTween=function(){return t._util.log(1,"(ScrollMagic.Scene) -> ERROR calling setTween() due to missing Plugin 'animation.gsap'. Please make sure to include plugins/animation.gsap.js"),this},t.Scene.prototype.removeTween=function(){return t._util.log(1,"(ScrollMagic.Scene) -> ERROR calling removeTween() due to missing Plugin 'animation.gsap'. Please make sure to include plugins/animation.gsap.js"),this},t.Scene.prototype.setVelocity=function(){return t._util.log(1,"(ScrollMagic.Scene) -> ERROR calling setVelocity() due to missing Plugin 'animation.velocity'. Please make sure to include plugins/animation.velocity.js"),this},t.Scene.prototype.removeVelocity=function(){return t._util.log(1,"(ScrollMagic.Scene) -> ERROR calling removeVelocity() due to missing Plugin 'animation.velocity'. Please make sure to include plugins/animation.velocity.js"),this},t},void 0===(n="function"===typeof r?r.call(e,i,e,t):r)||(t.exports=n)},98350:function(t,e,i){var r,n,a;n=[i(42306),i(48922),i(91595),i(45650)],r=function(t,e,i,r){"use strict";var n="animation.gsap",a=e&&parseFloat(e.version)>=3,s=window.console||{},o=Function.prototype.bind.call(s.error||s.log||function(){},s);t||o("("+n+") -> ERROR: The ScrollMagic main module could not be found. Please make sure it's loaded before this plugin or use an asynchronous loader like requirejs."),i||o("("+n+") -> ERROR: TweenLite or TweenMax could not be found. Please make sure GSAP is loaded before ScrollMagic or use an asynchronous loader like requirejs."),t.Scene.addOption("tweenChanges",!1,(function(t){return!!t})),t.Scene.extend((function(){var t,e=this,s=function(){e._log&&(Array.prototype.splice.call(arguments,1,0,"("+n+")","->"),e._log.apply(this,arguments))};e.on("progress.plugin_gsap",(function(){o()})),e.on("destroy.plugin_gsap",(function(t){e.removeTween(t.reset)}));var o=function(){if(t){var i=e.progress(),r=e.state();t.repeat&&-1===t.repeat()?"DURING"===r&&t.paused()?t.play():"DURING"===r||t.paused()||t.pause():i!=t.progress()&&(0===e.duration()?i>0?t.play():t.reverse():e.tweenChanges()&&t.tweenTo?t.tweenTo(i*t.duration()):t.progress(i).pause())}};e.setTween=function(n,l,u){var _;if(arguments.length>1){var c="number"===typeof arguments[1];a?(c||(u=l),u.hasOwnProperty("duration")||(u.duration=c?l:1)):arguments.length<3&&(u=l,l=1),n=a?i.to(n,u):i.to(n,l,u)}try{(_=r&&!a?new r({smoothChildTiming:!0}).add(n):n).pause()}catch(T){return s(1,"ERROR calling method 'setTween()': Supplied argument is not a valid TweenObject"),e}if(t&&e.removeTween(),t=_,n.repeat&&-1===n.repeat()&&(t.repeat(-1),t.yoyo(n.yoyo())),e.tweenChanges()&&!t.tweenTo&&s(2,"WARNING: tweenChanges will only work if the TimelineMax object is available for ScrollMagic."),t&&e.controller()&&e.triggerElement()&&e.loglevel()>=2){var h=i.getTweensOf(e.triggerElement()),f=e.controller().info("vertical");h.forEach((function(t,e){var i=t.vars.css||t.vars;if(f?void 0!==i.top||void 0!==i.bottom:void 0!==i.left||void 0!==i.right)return s(2,"WARNING: Tweening the position of the trigger element affects the scene timing and should be avoided!"),!1}))}if(parseFloat(TweenLite.version)>=1.14)for(var d,m,p=a?"onInterrupt":"onOverwrite",g=t.getChildren?t.getChildren(!0,!0,!1):[t],v=function(){s(2,"WARNING: tween was overwritten by another. To learn how to avoid this issue see here: https://github.com/janpaepke/ScrollMagic/wiki/WARNING:-tween-was-overwritten-by-another")},y=0;y ERROR: The ScrollMagic main module could not be found. Please make sure it's loaded before this plugin or use an asynchronous loader like requirejs.");var n="0.85em",a="9999",s=15,o=t._util,l=0;t.Scene.extend((function(){var t,e=this;e.addIndicators=function(i){if(!t){var r={name:"",indent:0,parent:void 0,colorStart:"green",colorEnd:"red",colorTrigger:"blue"};i=o.extend({},r,i),l++,t=new u(e,i),e.on("add.plugin_addIndicators",t.add),e.on("remove.plugin_addIndicators",t.remove),e.on("destroy.plugin_addIndicators",e.removeIndicators),e.controller()&&t.add()}return e},e.removeIndicators=function(){return t&&(t.remove(),this.off("*.plugin_addIndicators"),t=void 0),e}})),t.Controller.addOption("addIndicators",!1),t.Controller.extend((function(){var i=this,r=i.info(),n=r.container,a=r.isDocument,l=r.vertical,u={groups:[]},_=function(){i._log&&(Array.prototype.splice.call(arguments,1,0,"("+e+")","->"),i._log.apply(this,arguments))};i._indicators&&_(2,"WARNING: Scene already has a property '_indicators', which will be overwritten by plugin."),this._indicators=u;var c=function(){u.updateBoundsPositions()},h=function(){u.updateTriggerGroupPositions()};return n.addEventListener("resize",h),a||(window.addEventListener("resize",h),window.addEventListener("scroll",h)),n.addEventListener("resize",c),n.addEventListener("scroll",c),this._indicators.updateBoundsPositions=function(t){for(var e,i,r,a=t?[o.extend({},t.triggerGroup,{members:[t]})]:u.groups,_=a.length,c={},h=l?"left":"top",f=l?"width":"height",d=l?o.get.scrollLeft(n)+o.get.width(n)-s:o.get.scrollTop(n)+o.get.height(n)-s;_--;)for(e=(r=a[_]).members.length,i=o.get[f](r.element.firstChild);e--;)c[h]=d-i,o.css(r.members[e].bounds,c)},this._indicators.updateTriggerGroupPositions=function(t){for(var e,r,_,c,h=t?[t]:u.groups,f=h.length,d=a?document.body:n,m=a?{top:0,left:0}:o.get.offset(d,!0),p=l?o.get.width(n)-s:o.get.height(n)-s,g=l?"width":"height",v=l?"Y":"X";f--;)r=(e=h[f]).element,c=(_=e.triggerHook*i.info("size"))>o.get[g](r.firstChild.firstChild)?"translate"+v+"(-100%)":"",o.css(r,{top:m.top+(l?_:p-e.members[0].options.indent),left:m.left+(l?p-e.members[0].options.indent:_)}),o.css(r.firstChild.firstChild,{"-ms-transform":c,"-webkit-transform":c,transform:c})},this._indicators.updateTriggerGroupLabel=function(t){var e="trigger"+(t.members.length>1?"":" "+t.members[0].options.name),i=t.element.firstChild.firstChild;i.textContent!==e&&(i.textContent=e,l&&u.updateBoundsPositions())},this.addScene=function(e){this._options.addIndicators&&e instanceof t.Scene&&e.controller()===i&&e.addIndicators(),this.$super.addScene.apply(this,arguments)},this.destroy=function(){n.removeEventListener("resize",h),a||(window.removeEventListener("resize",h),window.removeEventListener("scroll",h)),n.removeEventListener("resize",c),n.removeEventListener("scroll",c),this.$super.destroy.apply(this,arguments)},i}));var u=function(t,i){var r,n,a=this,s=_.bounds(),u=_.start(i.colorStart),c=_.end(i.colorEnd),h=i.parent&&o.get.elements(i.parent)[0],f=function(){t._log&&(Array.prototype.splice.call(arguments,1,0,"("+e+")","->"),t._log.apply(this,arguments))};i.name=i.name||l,u.firstChild.textContent+=" "+i.name,c.textContent+=" "+i.name,s.appendChild(u),s.appendChild(c),a.options=i,a.bounds=s,a.triggerGroup=void 0,this.add=function(){n=t.controller(),r=n.info("vertical");var e=n.info("isDocument");h||(h=e?document.body:n.info("container")),e||"static"!==o.css(h,"position")||o.css(h,{position:"relative"}),t.on("change.plugin_addIndicators",m),t.on("shift.plugin_addIndicators",d),w(),v(),setTimeout((function(){n._indicators.updateBoundsPositions(a)}),0),f(3,"added indicators")},this.remove=function(){if(a.triggerGroup){if(t.off("change.plugin_addIndicators",m),t.off("shift.plugin_addIndicators",d),a.triggerGroup.members.length>1){var e=a.triggerGroup;e.members.splice(e.members.indexOf(a),1),n._indicators.updateTriggerGroupLabel(e),n._indicators.updateTriggerGroupPositions(e),a.triggerGroup=void 0}else T();g(),f(3,"removed indicators")}};var d=function(){v()},m=function(t){"triggerHook"===t.what&&w()},p=function(){var t=n.info("vertical");o.css(u.firstChild,{"border-bottom-width":t?1:0,"border-right-width":t?0:1,bottom:t?-1:i.indent,right:t?i.indent:-1,padding:t?"0 8px":"2px 4px"}),o.css(c,{"border-top-width":t?1:0,"border-left-width":t?0:1,top:t?"100%":"",right:t?i.indent:"",bottom:t?"":i.indent,left:t?"":"100%",padding:t?"0 8px":"2px 4px"}),h.appendChild(s)},g=function(){s.parentNode.removeChild(s)},v=function(){s.parentNode!==h&&p();var e={};e[r?"top":"left"]=t.triggerPosition(),e[r?"height":"width"]=t.duration(),o.css(s,e),o.css(c,{display:t.duration()>0?"":"none"})},y=function(){var e=_.trigger(i.colorTrigger),s={};s[r?"right":"bottom"]=0,s[r?"border-top-width":"border-left-width"]=1,o.css(e.firstChild,s),o.css(e.firstChild.firstChild,{padding:r?"0 8px 3px 8px":"3px 4px"}),document.body.appendChild(e);var l={triggerHook:t.triggerHook(),element:e,members:[a]};n._indicators.groups.push(l),a.triggerGroup=l,n._indicators.updateTriggerGroupLabel(l),n._indicators.updateTriggerGroupPositions(l)},T=function(){n._indicators.groups.splice(n._indicators.groups.indexOf(a.triggerGroup),1),a.triggerGroup.element.parentNode.removeChild(a.triggerGroup.element),a.triggerGroup=void 0},w=function(){var e=t.triggerHook(),i=1e-4;if(!(a.triggerGroup&&Math.abs(a.triggerGroup.triggerHook-e)