require(["ScrollMagic","TweenMax","TimelineMax","Transim.Common.UI.alert","PerfectScrollbar","Sammy","Animation","Transim.Common.UI.toggle","TFB"],function(n,t,i,r,u,f){"use strict";function c(n){var t,i,r,u,f;$(n).click(function(e){console.log("ripple");t=$(n).hasClass("tr-btn")?$(n):$(n).parent();t.find(".tr-ink").length===0&&t.prepend("<span class='tr-ink'><\/span>");i=t.find(".tr-ink");i.removeClass("animate");i.height()||i.width()||(r=Math.max(t.outerWidth(),t.outerHeight()),i.css({height:r,width:r}));u=e.pageX-t.offset().left-i.width()/2;f=e.pageY-t.offset().top-i.height()/2;i.css({top:f+"px",left:u+"px"}).addClass("animate")})}function l(n){$(n).on("click",function(t){function i(){$(n).removeClass("is-open");$(document).off("keydown")}function r(){var t=$(n).find(".is-active");t.is(":first-child")||(t.removeClass("is-active"),t.prev().addClass("is-active"))}function u(){var t=$(n).find(".is-active");t.is(":last-child")||(t.removeClass("is-active"),t.next().addClass("is-active"))}if($(this).hasClass("is-open"))$(t.target).closest(".tr-drop_menu").length&&($(t.target).text(),$(n).find(".tr-drop_trigger").text($(t.target).text()),$(n).find(".is-active").removeClass("is-active"),$(t.target).addClass("is-active")),i();else{$(n).addClass("is-open");$(document).on("keydown",function(t){switch(t.which){case 38:r();break;case 40:u();break;case 13:$(n).find(".jvs-droplist_trigger").text($(".is-active").text());i();console.log("enter");break;case 27:console.log("esc");i();break;default:return}t.preventDefault()})}$(document).on("click",function(n){$(n.target).closest(".tr-drop").length||i()})})}function a(n){var t;$(n).on("mouseover",function(){t=$(this).attr("data-target");$(".drop-shown").removeClass("drop-shown");$(this).addClass("drop-shown");$(t).addClass("drop-shown")})}var e,o,s,h;document.addEventListener("touchstart",function(n){var t=n.touches[0];document.body.classList.add("has-touch")},!1);e=new n.Controller;new n.Scene({duration:0,offset:300}).setClassToggle(".tr-nav","scrolled").setPin(".tr-nav").addTo(e);new n.Scene({duration:300,offset:0}).setTween(".tr-hero .placeholder",1,{top:"130px",opacity:"0",scale:1.3,ease:Linear.easeNone}).addTo(e);new n.Scene({duration:100,offset:200}).setTween(".tr-topnav",.5,{backgroundColor:"#607d8b",color:"#fff",backgroundPositionY:"120px",ease:Circ.easeOut}).addTo(e);new n.Scene({duration:300,offset:0}).setTween(".tr-header-main",1,{top:"80%",opacity:"0",ease:Linear.easeNone}).addTo(e);new n.Scene({duration:100,offset:200}).setTween(".tr-nav",.5,{boxShadow:"rgba(0, 0, 0, 0.16) 0px 4px 18px 0px, rgba(0, 0, 0, .24) 0 2px 4px",ease:Circ.easeOut}).addTo(e);o=function(n,t,i){function r(t){var r=t.replace("#/","");return r===n&&(r=i),r+"?partial=true"}function u(){var n=$("#viewContent").attr("data-page"),t=n.replace(/[\/\.\s+]/g,"").toLowerCase(),u=document.querySelector(".placeholder"),i=u.querySelector(".img-large"),r=new Image;r.src="/Content/Images-min/headers/"+t+"-header.jpg";r.onload=function(){setTimeout(function(){i.style.backgroundImage=window.matchMedia("(max-width: 767px)").matches?"url('/Content/Images-min/headers/"+t+"-header-sm.png')":"url('/Content/Images-min/headers/"+t+"-header.jpg')";i.classList.add("loaded")},400)};$(".tr-header-largetext").text(n);$(".tr-header-smalltext").text("Transim");$(".tr-header-scrolledtext").text("transim "+n);$(".tr").removeClass("header-is-faded");$(".nav-hovered").removeClass("nav-hovered");$(".tr-customer-toolist").perfectScrollbar();$(".spansion").find(".tr-card-title").text("Cypress")}return{init:function(){f(t,function(){this.swap=function(n){console.log("swap");var t=this;$(".tr").addClass("header-is-faded");$(".img-large").removeClass("loaded");t.$element().fadeOut("slow",function(){$("body").scrollTop(0);t.$element().html(n);$(".img-large").css("background-image","");t.$element().fadeIn("slow",function(){u()})})};this.get(/\#\/(.*)/,function(n){var t=r(n.path);console.log(t);n.load(t).swap()})}).run()}}};s=new o('@Url.Content("~/")',"#page","welcome");s.init();$('a[href^="/"]').not('a[href^="//"]').not('a[href^="/#"]').not(".tr-hash-ignore").click(function(n){var t=$(this).attr("href");window.location.hash=t;n.preventDefault()});$(".TransimDotCom-feedback-link").click(function(n){n.preventDefault();TFB.open()});$(".tr-ripple").each(function(){c($(this))});$(".tr-btn").each(function(){c($(this))});$(".tr-drop").each(function(){l($(this))});$(".tr-mobilenav").perfectScrollbar();typeof seenBanner!="undefined"&&seenBanner!==null&&localStorage.setItem("seenBanner","nope");h=localStorage.getItem("seenBanner");h==="nope"&&$(".tr-banner").addClass("is-open");$(".tr-banner_open").on("click",function(){$(".tr-banner").addClass("is-open");localStorage.setItem("seenBanner","nope")});$(".tr-banner_close").on("click",function(){$(".tr-banner").removeClass("is-open");localStorage.setItem("seenBanner","yep")});$(".tr-form-btn").on("click",function(){var n=$('#contact-us [name="email"]').val()||null,t=$('#contact-us [name="message"]').val()||null,i=$('#contact-us [name="name"]').val()||null,u=$("#feedback-type").val()||"Contact",f=$('#contact-us [name="work"]').val()||null;$.post("/Home/SendInvitation",{email:n,message:t,name:i,type:u,company:f},function(n){n!==!0?r.error("the message could not be sent","Error"):r.success("Your message has been sent successfully","It has been done!")});$('#contact-us [name="email"]').val("");$('#contact-us [name="message"]').val("");$('#contact-us [name="name"]').val("");$("#feedback-type").val("");$('#contact-us [name="work"]').val("")});$(".tr-form-tab").on("click",function(n){n.preventDefault();var t=$(this).attr("data-target");$(this).hasClass("is-selected")||($(".tr-form-tab").toggleClass("is-selected"),$("#contact-form, #feedback-form").toggleClass("is-shown"))});$(".tr-nav-toggle").on("click",function(){$(".tr").toggleClass("nav-open")});$(".tr-topnav-item").on("click",function(){$(".tr").removeClass("nav-open");$(this).removeClass("nav-hovered")});$(".tr-topnav-item").on("mouseenter",function(){$(this).addClass("nav-hovered")}).on("mouseleave",function(){$(this).removeClass("nav-hovered")}).on("touchstart",function(n){var t=$(this);$("body").hasClass("has-touch")&&!t.hasClass("nav-hovered")&&n.preventDefault();$(".nav-hovered").removeClass("nav-hovered");t.addClass("nav-hovered")});$(".tr-nav-dropitem").each(function(){a($(this))});$(".tr-topnav-item").on("mouseenter",function(){var n=$(this).find(".tr-nav-dropitem").first(),t=$(n).attr("data-target");$(".drop-shown").removeClass("drop-shown");$(n).addClass("drop-shown");$(t).addClass("drop-shown")})});require(["jquery"],function(n){"use strict";n(".share-links a.share-link").on("click",function(t){var s,h;console.log("triggered");t.stopPropagation();var f=626,e=436,r=location.href,v=document.title,o="Transim Technologies, global leader in cloud application engineering solutions, online design, and simulation in the electronics industry",c=window.screenX+(window.outerWidth-f)/2,l=window.screenY+(window.outerHeight-e)/2,a=["width="+f,"height="+e,"left="+c,"top="+l,"status=no","resizable=yes","toolbar=no","menubar=no","scrollbars=yes"].join(","),u=n(this).attr("data-action"),i;u==="tweet"?i="http://twitter.com/intent/tweet?text="+o+"&url="+encodeURIComponent(r):u==="facebook"?i="https://www.facebook.com/sharer/sharer.php?u="+encodeURIComponent(r)+"&t="+o:u==="google"?i="https://plus.google.com/share?url="+encodeURIComponent(r):u==="linkedin"&&(i="https://www.linkedin.com/shareArticle?mini=true&url="+encodeURIComponent(r));t.preventDefault();t.stopPropagation();s=window.open(i,"",a);h=setInterval(function(){s.closed&&(clearInterval(h),n("body").removeClass("lod"),n("#shareDialog").removeClass("is-toggled"))},200)})});define("Shared/ScrollMagic",function(){this,function(){"use strict";var t=function(){n.log(2,"(COMPATIBILITY NOTICE) -> 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.")},r,u,i,n;return t.version="2.0.5",window.addEventListener("mousewheel",function(){}),r="data-scrollmagic-pin-spacer",t.Controller=function(i){var l="ScrollMagic.Controller",st="FORWARD",g="REVERSE",nt="PAUSED",k=u.defaults,e=this,f=n.extend({},k,i),o=[],h=!1,v=0,y=nt,c=!0,p=0,w=!0,tt,it,ht=function(){for(var i in f)k.hasOwnProperty(i)||(s(2,'WARNING: Unknown option "'+i+'"'),delete f[i]);if(f.container=n.get.elements(f.container)[0],!f.container){s(1,"ERROR creating object "+l+": No valid scroll container supplied");throw l+" init failed.";}c=f.container===window||f.container===document.body||!document.body.contains(f.container);c&&(f.container=window);p=d();f.container.addEventListener("resize",a);f.container.addEventListener("scroll",a);f.refreshInterval=parseInt(f.refreshInterval)||k.refreshInterval;rt();s(3,"added new "+l+" controller (v"+t.version+")")},rt=function(){f.refreshInterval>0&&(it=window.setTimeout(ct,f.refreshInterval))},ut=function(){return f.vertical?n.get.scrollTop(f.container):n.get.scrollLeft(f.container)},d=function(){return f.vertical?n.get.height(f.container):n.get.width(f.container)},ft=this._setScrollPos=function(t){f.vertical?c?window.scrollTo(n.get.scrollLeft(),t):f.container.scrollTop=t:c?window.scrollTo(t,n.get.scrollTop()):f.container.scrollLeft=t},et=function(){var t,r,i;w&&h&&(t=n.type.Array(h)?h:o.slice(0),h=!1,r=v,v=e.scrollPos(),i=v-r,i!==0&&(y=i>0?st:g),y===g&&t.reverse(),t.forEach(function(n,i){s(3,"updating Scene "+(i+1)+"/"+t.length+" ("+o.length+" total)");n.update(!0)}),t.length===0&&f.loglevel>=3&&s(3,"updating 0 Scenes (nothing added to controller)"))},ot=function(){tt=n.rAF(et)},a=function(n){s(3,"event fired causing an update:",n.type);n.type=="resize"&&(p=d(),y=nt);h!==!0&&(h=!0,ot())},ct=function(){if(!c&&p!=d()){var n;try{n=new Event("resize",{bubbles:!1,cancelable:!1})}catch(t){n=document.createEvent("Event");n.initEvent("resize",!1,!1)}f.container.dispatchEvent(n)}o.forEach(function(n){n.refresh()});rt()},s=this._log=function(t){f.loglevel>=t&&(Array.prototype.splice.call(arguments,1,0,"("+l+") ->"),n.log.apply(window,arguments))},b;return this._options=f,b=function(n){if(n.length<=1)return n;var t=n.slice(0);return t.sort(function(n,t){return n.scrollOffset()>t.scrollOffset()?1:-1}),t},this.addScene=function(i){if(n.type.Array(i))i.forEach(function(n){e.addScene(n)});else if(i instanceof t.Scene){if(i.controller()!==e)i.addTo(e);else if(o.indexOf(i)<0){o.push(i);o=b(o);i.on("shift.controller_sort",function(){o=b(o)});for(var r in f.globalSceneOptions)i[r]&&i[r].call(i,f.globalSceneOptions[r]);s(3,"adding Scene (now "+o.length+" total)")}}else s(1,"ERROR: invalid argument supplied for '.addScene()'");return e},this.removeScene=function(t){if(n.type.Array(t))t.forEach(function(n){e.removeScene(n)});else{var i=o.indexOf(t);i>-1&&(t.off("shift.controller_sort"),o.splice(i,1),s(3,"removing Scene (now "+o.length+" left)"),t.remove())}return e},this.updateScene=function(i,r){return n.type.Array(i)?i.forEach(function(n){e.updateScene(n,r)}):r?i.update(!0):h!==!0&&i instanceof t.Scene&&(h=h||[],h.indexOf(i)==-1&&h.push(i),h=b(h),ot()),e},this.update=function(n){return a({type:"resize"}),n&&et(),e},this.scrollTo=function(i,u){var o;if(n.type.Number(i))ft.call(f.container,i,u);else if(i instanceof t.Scene)i.controller()===e?e.scrollTo(i.scrollOffset(),u):s(2,"scrollTo(): The supplied scene does not belong to this controller. Scroll cancelled.",i);else if(n.type.Function(i))ft=i;else if(o=n.get.elements(i)[0],o){while(o.parentNode.hasAttribute(r))o=o.parentNode;var h=f.vertical?"top":"left",l=n.get.offset(f.container),a=n.get.offset(o);c||(l[h]-=e.scrollPos());e.scrollTo(a[h]-l[h],u)}else s(2,"scrollTo(): The supplied argument is invalid. Scroll cancelled.",i);return e},this.scrollPos=function(t){if(arguments.length)n.type.Function(t)?ut=t:s(2,"Provided value for method 'scrollPos' is not a function. To change the current scroll position use 'scrollTo()'.");else return ut.call(e);return e},this.info=function(n){var t={size:p,vertical:f.vertical,scrollPos:v,scrollDirection:y,container:f.container,isDocument:c};if(arguments.length){if(t[n]!==undefined)return t[n];s(1,'ERROR: option "'+n+'" is not available');return}return t},this.loglevel=function(n){if(arguments.length)f.loglevel!=n&&(f.loglevel=n);else return f.loglevel;return e},this.enabled=function(n){if(arguments.length)w!=n&&(w=!!n,e.updateScene(o,!0));else return w;return e},this.destroy=function(t){window.clearTimeout(it);for(var i=o.length;i--;)o[i].destroy(t);return f.container.removeEventListener("resize",a),f.container.removeEventListener("scroll",a),n.cAF(tt),s(3,"destroyed "+l+" (reset: "+(t?"true":"false")+")"),null},ht(),e},u={defaults:{container:window,vertical:!0,globalSceneOptions:{},loglevel:2,refreshInterval:100}},t.Controller.addOption=function(n,t){u.defaults[n]=t},t.Controller.extend=function(i){var r=this;t.Controller=function(){return r.apply(this,arguments),this.$super=n.extend({},this),i.apply(this,arguments)||this};n.extend(t.Controller,r);t.Controller.prototype=r.prototype;t.Controller.prototype.constructor=t.Controller},t.Scene=function(u){var tt="ScrollMagic.Scene",p="BEFORE",a="DURING",g="AFTER",it=i.defaults,f=this,h=n.extend({},it,u),c=p,v=0,y={start:0,end:0},rt=0,ut=!0,w,o,wt=function(){var n,t;for(n in h)it.hasOwnProperty(n)||(l(2,'WARNING: Unknown option "'+n+'"'),delete h[n]);for(t in it)bt(t);ct()},b={},l,e,s,ot,d;this.on=function(t,i){return n.type.Function(i)?(t=t.trim().split(" "),t.forEach(function(n){var r=n.split("."),t=r[0],u=r[1];t!="*"&&(b[t]||(b[t]=[]),b[t].push({namespace:u||"",callback:i}))})):l(1,"ERROR when calling '.on()': Supplied callback for '"+t+"' is not a valid function!"),f};this.off=function(n,t){return n?(n=n.trim().split(" "),n.forEach(function(n){var i=n.split("."),r=i[0],u=i[1]||"",f=r==="*"?Object.keys(b):[r];f.forEach(function(n){for(var i=b[n]||[],f=i.length,r;f--;)r=i[f],r&&(u===r.namespace||u==="*")&&(!t||t==r.callback)&&i.splice(f,1);i.length||delete b[n]})}),f):(l(1,"ERROR: Invalid event name supplied."),f)};this.trigger=function(n,i){if(n){var u=n.trim().split("."),r=u[0],e=u[1],o=b[r];l(3,"event fired:",r,i?"->":"",i||"");o&&o.forEach(function(n){e&&e!==n.namespace||n.callback.call(f,new t.Event(r,n.namespace,f,i))})}else l(1,"ERROR: Invalid event name supplied.");return f};f.on("change.internal",function(n){n.what!=="loglevel"&&n.what!=="tweenChanges"&&(n.what==="triggerElement"?st():n.what==="reverse"&&f.update())}).on("shift.internal",function(){lt();f.update()});l=this._log=function(t){h.loglevel>=t&&(Array.prototype.splice.call(arguments,1,0,"("+tt+") ->"),n.log.apply(window,arguments))};this.addTo=function(n){return n instanceof t.Controller?o!=n&&(o&&o.removeScene(f),o=n,ct(),at(!0),st(!0),lt(),o.info("container").addEventListener("resize",vt),n.addScene(f),f.trigger("add",{controller:o}),l(3,"added "+tt+" to controller"),f.update()):l(1,"ERROR: supplied argument of 'addTo()' is not a valid ScrollMagic Controller"),f};this.enabled=function(n){if(arguments.length)ut!=n&&(ut=!!n,f.update(!0));else return ut;return f};this.remove=function(){if(o){o.info("container").removeEventListener("resize",vt);var n=o;o=undefined;n.removeScene(f);f.trigger("remove");l(3,"removed "+tt+" from controller")}return f};this.destroy=function(n){return f.trigger("destroy",{reset:n}),f.remove(),f.off("*.*"),l(3,"destroyed "+tt+" (reset: "+(n?"true":"false")+")"),null};this.update=function(n){if(o)if(n)if(o.enabled()&&ut){var t=o.info("scrollPos"),i;i=h.duration>0?(t-y.start)/(y.end-y.start):t>=y.start?1:0;f.trigger("update",{startPos:y.start,endPos:y.end,scrollPos:t});f.progress(i)}else e&&c===a&&k(!0);else o.updateScene(f,!1);return f};this.refresh=function(){return at(),st(),f};this.progress=function(n){if(arguments.length){var t=!1,u=c,s=o?o.info("scrollDirection"):"PAUSED",r=h.reverse||n>=v;if(h.duration===0?(t=v!=n,v=n<1&&r?0:1,c=v===0?p:a):n<0&&c!==p&&r?(v=0,c=p,t=!0):n>=0&&n<1&&r?(v=n,c=a,t=!0):n>=1&&c!==g?(v=1,c=g,t=!0):c!==a||r||k(),t){var l={progress:v,state:c,scrollDirection:s},e=c!=u,i=function(n){f.trigger(n,l)};e&&u!==a&&(i("enter"),i(u===p?"start":"end"));i("progress");e&&c!==a&&(i(c===p?"start":"end"),i("leave"))}return f}return v};var lt=function(){y={start:rt+h.offset};o&&h.triggerElement&&(y.start-=o.info("size")*h.triggerHook);y.end=y.start+h.duration},at=function(n){if(w){var t="duration";yt(t,w.call(f))&&!n&&(f.trigger("change",{what:t,newval:h[t]}),f.trigger("shift",{reason:t}))}},st=function(t){var u=0,i=h.triggerElement,l,a;if(o&&i){for(var e=o.info(),c=n.get.offset(e.container),s=e.vertical?"top":"left";i.parentNode.hasAttribute(r);)i=i.parentNode;l=n.get.offset(i);e.isDocument||(c[s]-=o.scrollPos());u=l[s]-c[s]}a=u!=rt;rt=u;a&&!t&&f.trigger("shift",{reason:"triggerElementPosition"})},vt=function(){h.triggerHook>0&&f.trigger("shift",{reason:"containerResize"})},ht=n.extend(i.validate,{duration:function(t){if(n.type.String(t)&&t.match(/^(\.|\d)*\d+%$/)){var i=parseFloat(t)/100;t=function(){return o?o.info("size")*i:0}}if(n.type.Function(t)){w=t;try{t=parseFloat(w())}catch(r){t=-1}}if(t=parseFloat(t),!n.type.Number(t)||t<0)if(w){w=undefined;throw['Invalid return value of supplied function for option "duration":',t];}else throw['Invalid value for option "duration":',t];return t}}),ct=function(t){t=arguments.length?[t]:Object.keys(ht);t.forEach(function(t){var u,i;if(ht[t])try{u=ht[t](h[t])}catch(r){u=it[t];i=n.type.String(r)?[r]:r;n.type.Array(i)?(i[0]="ERROR: "+i[0],i.unshift(1),l.apply(this,i)):l(1,"ERROR: Problem executing validation callback for option '"+t+"':",r.message)}finally{h[t]=u}})},yt=function(n,t){var i=!1,r=h[n];return h[n]!=t&&(h[n]=t,ct(n),i=r!=h[n]),i},bt=function(n){f[n]||(f[n]=function(t){if(arguments.length)n==="duration"&&(w=undefined),yt(n,t)&&(f.trigger("change",{what:n,newval:h[n]}),i.shifts.indexOf(n)>-1&&f.trigger("shift",{reason:n}));else return h[n];return f})};this.controller=function(){return o};this.state=function(){return c};this.scrollOffset=function(){return y.start};this.triggerPosition=function(){var n=h.offset;return o&&(n+=h.triggerElement?rt:o.info("size")*f.triggerHook()),n};f.on("shift.internal",function(n){var t=n.reason==="duration";(c===g&&t||c===a&&h.duration===0)&&k();t&&nt()}).on("progress.internal",function(){k()}).on("add.internal",function(){nt()}).on("destroy.internal",function(n){f.removePin(n.reset)});var k=function(t){var r,i,u,w,f,l;e&&o&&(r=o.info(),i=s.spacer.firstChild,t||c!==a?(f={position:s.inFlow?"relative":"absolute",top:0,left:0},l=n.css(i,"position")!=f.position,s.pushFollowers?h.duration>0&&(c===g&&parseFloat(n.css(s.spacer,"padding-top"))===0?l=!0:c===p&&parseFloat(n.css(s.spacer,"padding-bottom"))===0&&(l=!0)):f[r.vertical?"top":"left"]=h.duration*v,n.css(i,f),l&&nt()):(n.css(i,"position")!="fixed"&&(n.css(i,{position:"fixed"}),nt()),u=n.get.offset(s.spacer,!0),w=h.reverse||h.duration===0?r.scrollPos-y.start:Math.round(v*h.duration*10)/10,u[r.vertical?"top":"left"]+=w,n.css(s.spacer.firstChild,{top:u.top,left:u.left})))},nt=function(){if(e&&o&&s.inFlow){var l=c===g,y=c===p,i=c===a,r=o.info("vertical"),u=s.spacer.firstChild,f=n.isMarginCollapseType(n.css(s.spacer,"display")),t={};s.relSize.width||s.relSize.autoFullWidth?i?n.css(e,{width:n.get.width(s.spacer)}):n.css(e,{width:"100%"}):(t["min-width"]=n.get.width(r?e:u,!0,!0),t.width=i?t["min-width"]:"auto");s.relSize.height?i?n.css(e,{height:n.get.height(s.spacer)-(s.pushFollowers?h.duration:0)}):n.css(e,{height:"100%"}):(t["min-height"]=n.get.height(r?u:e,!0,!f),t.height=i?t["min-height"]:"auto");s.pushFollowers&&(t["padding"+(r?"Top":"Left")]=h.duration*v,t["padding"+(r?"Bottom":"Right")]=h.duration*(1-v));n.css(s.spacer,t)}},ft=function(){o&&e&&c===a&&!o.info("isDocument")&&k()},pt=function(){o&&e&&c===a&&((s.relSize.width||s.relSize.autoFullWidth)&&n.get.width(window)!=n.get.width(s.spacer.parentNode)||s.relSize.height&&n.get.height(window)!=n.get.height(s.spacer.parentNode))&&nt()},et=function(n){o&&e&&c===a&&!o.info("isDocument")&&(n.preventDefault(),o._setScrollPos(o.info("scrollPos")-((n.wheelDelta||n[o.info("vertical")?"wheelDeltaY":"wheelDeltaX"])/3||-n.detail*30)))};this.setPin=function(t,i){var y,a,u,v,w,b;if(i=n.extend({},{pushFollowers:!0,spacerClass:"scrollmagic-pin-spacer"},i),t=n.get.elements(t)[0],t){if(n.css(t,"position")==="fixed")return l(1,"ERROR calling method 'setPin()': Pin does not work with elements that are positioned 'fixed'."),f}else return l(1,"ERROR calling method 'setPin()': Invalid pin element supplied."),f;if(e){if(e===t)return f;f.removePin()}e=t;y=e.parentNode.style.display;a=["top","left","bottom","right","margin","marginLeft","marginRight","marginTop","marginBottom"];e.parentNode.style.display="none";var o=n.css(e,"position")!="absolute",p=n.css(e,a.concat(["display"])),c=n.css(e,["width","height"]);return e.parentNode.style.display=y,!o&&i.pushFollowers&&(l(2,"WARNING: If the pinned element is positioned absolutely pushFollowers will be disabled."),i.pushFollowers=!1),window.setTimeout(function(){e&&h.duration===0&&i.pushFollowers&&l(2,"WARNING: pushFollowers =",!0,"has no effect, when scene duration is 0.")},0),u=e.parentNode.insertBefore(document.createElement("div"),e),v=n.extend(p,{position:o?"relative":"absolute",boxSizing:"content-box",mozBoxSizing:"content-box",webkitBoxSizing:"content-box"}),o||n.extend(v,n.css(e,["width","height"])),n.css(u,v),u.setAttribute(r,""),n.addClass(u,i.spacerClass),s={spacer:u,relSize:{width:c.width.slice(-1)==="%",height:c.height.slice(-1)==="%",autoFullWidth:c.width==="auto"&&o&&n.isMarginCollapseType(p.display)},pushFollowers:i.pushFollowers,inFlow:o},e.___origStyle||(e.___origStyle={},w=e.style,b=a.concat(["width","height","position","boxSizing","mozBoxSizing","webkitBoxSizing"]),b.forEach(function(n){e.___origStyle[n]=w[n]||""})),s.relSize.width&&n.css(u,{width:c.width}),s.relSize.height&&n.css(u,{height:c.height}),u.appendChild(e),n.css(e,{position:o?"relative":"absolute",margin:"auto",top:"auto",left:"auto",bottom:"auto",right:"auto"}),(s.relSize.width||s.relSize.autoFullWidth)&&n.css(e,{boxSizing:"border-box",mozBoxSizing:"border-box",webkitBoxSizing:"border-box"}),window.addEventListener("scroll",ft),window.addEventListener("resize",ft),window.addEventListener("resize",pt),e.addEventListener("mousewheel",et),e.addEventListener("DOMMouseScroll",et),l(3,"added pin"),k(),f};this.removePin=function(t){var u={},i,h,v;return e&&(c===a&&k(!0),(t||!o)&&(i=s.spacer.firstChild,i.hasAttribute(r)&&(h=s.spacer.style,v=["margin","marginLeft","marginRight","marginTop","marginBottom"],u={},v.forEach(function(n){u[n]=h[n]||""}),n.css(i,u)),s.spacer.parentNode.insertBefore(i,s.spacer),s.spacer.parentNode.removeChild(s.spacer),e.parentNode.hasAttribute(r)||(n.css(e,e.___origStyle),delete e.___origStyle)),window.removeEventListener("scroll",ft),window.removeEventListener("resize",ft),window.removeEventListener("resize",pt),e.removeEventListener("mousewheel",et),e.removeEventListener("DOMMouseScroll",et),e=undefined,l(3,"removed pin (reset: "+(t?"true":"false")+")")),f};d=[];f.on("destroy.internal",function(n){f.removeClassToggle(n.reset)});return this.setClassToggle=function(t,i){var r=n.get.elements(t);if(r.length===0||!n.type.String(i))return l(1,"ERROR calling method 'setClassToggle()': Invalid "+(r.length===0?"element":"classes")+" supplied."),f;d.length>0&&f.removeClassToggle();ot=i;d=r;f.on("enter.internal_class leave.internal_class",function(t){var i=t.type==="enter"?n.addClass:n.removeClass;d.forEach(function(n){i(n,ot)})});return f},this.removeClassToggle=function(t){return t&&d.forEach(function(t){n.removeClass(t,ot)}),f.off("start.internal_class end.internal_class"),ot=undefined,d=[],f},wt(),f},i={defaults:{duration:0,offset:0,triggerElement:undefined,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||undefined,t){var i=n.get.elements(t)[0];if(i)t=i;else throw['Element defined in option "triggerElement" was not found:',t];}return t},triggerHook:function(t){var i={onCenter:.5,onEnter:1,onLeave:0};if(n.type.Number(t))t=Math.max(0,Math.min(parseFloat(t),1));else if(t in i)t=i[t];else throw['Invalid value for option "triggerHook": ',t];return t},reverse:function(n){return!!n},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(n,r,u,f){n in i.defaults?t._util.log(1,"[static] ScrollMagic.Scene -> Cannot add Scene option '"+n+"', because it already exists."):(i.defaults[n]=r,i.validate[n]=u,f&&i.shifts.push(n))},t.Scene.extend=function(i){var r=this;t.Scene=function(){return r.apply(this,arguments),this.$super=n.extend({},this),i.apply(this,arguments)||this};n.extend(t.Scene,r);t.Scene.prototype=r.prototype;t.Scene.prototype.constructor=t.Scene},t.Event=function(n,t,i,r){r=r||{};for(var u in r)this[u]=r[u];return this.type=n,this.target=this.currentTarget=i,this.namespace=t||"",this.timeStamp=this.timestamp=Date.now(),this},n=t._util=function(n){var r={},t,s=function(n){return parseFloat(n)||0},l=function(t){return t.currentStyle?t.currentStyle:n.getComputedStyle(t)},y=function(t,r,u,f){var o,e;if(r=r===document?n:r,r===n)f=!1;else if(!i.DomElement(r))return 0;return t=t.charAt(0).toUpperCase()+t.substr(1).toLowerCase(),o=(u?r["offset"+t]||r["outer"+t]:r["client"+t]||r["inner"+t])||0,u&&f&&(e=l(r),o+=t==="Height"?s(e.marginTop)+s(e.marginBottom):s(e.marginLeft)+s(e.marginRight)),o},a=function(n){return n.replace(/^[^a-z]+([a-z])/g,"$1").replace(/-([a-z])/g,function(n){return n[1].toUpperCase()})},e,f,v,i,u;r.extend=function(n){for(n=n||{},t=1;t<arguments.length;t++)if(arguments[t])for(var i in arguments[t])arguments[t].hasOwnProperty(i)&&(n[i]=arguments[t][i]);return n};r.isMarginCollapseType=function(n){return["block","flex","list-item","table","-webkit-box"].indexOf(n)>-1};var p=0,h=["ms","moz","webkit","o"],o=n.requestAnimationFrame,c=n.cancelAnimationFrame;for(t=0;!o&&t<h.length;++t)o=n[h[t]+"RequestAnimationFrame"],c=n[h[t]+"CancelAnimationFrame"]||n[h[t]+"CancelRequestAnimationFrame"];for(o||(o=function(t){var i=(new Date).getTime(),r=Math.max(0,16-(i-p)),u=n.setTimeout(function(){t(i+r)},r);return p=i+r,u}),c||(c=function(t){n.clearTimeout(t)}),r.rAF=o.bind(n),r.cAF=c.bind(n),e=["error","warn","log"],f=n.console||{},f.log=f.log||function(){},t=0;t<e.length;t++)v=e[t],f[v]||(f[v]=f.log);return r.log=function(n){(n>e.length||n<=0)&&(n=e.length);var t=new Date,r=("0"+t.getHours()).slice(-2)+":"+("0"+t.getMinutes()).slice(-2)+":"+("0"+t.getSeconds()).slice(-2)+":"+("00"+t.getMilliseconds()).slice(-3),u=e[n-1],i=Array.prototype.splice.call(arguments,1),o=Function.prototype.bind.call(f[u],f);i.unshift(r);o.apply(f,i)},i=r.type=function(n){return Object.prototype.toString.call(n).replace(/^\[object (.+)\]$/,"$1").toLowerCase()},i.String=function(n){return i(n)==="string"},i.Function=function(n){return i(n)==="function"},i.Array=function(n){return Array.isArray(n)},i.Number=function(n){return!i.Array(n)&&n-parseFloat(n)+1>=0},i.DomElement=function(n){return typeof HTMLElement=="object"?n instanceof HTMLElement:n&&typeof n=="object"&&n!==null&&n.nodeType===1&&typeof n.nodeName=="string"},u=r.get={},u.elements=function(t){var r=[],f,o,e;if(i.String(t))try{t=document.querySelectorAll(t)}catch(s){return r}if(i(t)==="nodelist"||i.Array(t))for(f=0,o=r.length=t.length;f<o;f++)e=t[f],r[f]=i.DomElement(e)?e:u.elements(e);else(i.DomElement(t)||t===document||t===n)&&(r=[t]);return r},u.scrollTop=function(t){return t&&typeof t.scrollTop=="number"?t.scrollTop:n.pageYOffset||0},u.scrollLeft=function(t){return t&&typeof t.scrollLeft=="number"?t.scrollLeft:n.pageXOffset||0},u.width=function(n,t,i){return y("width",n,t,i)},u.height=function(n,t,i){return y("height",n,t,i)},u.offset=function(n,t){var i={top:0,left:0},r;return n&&n.getBoundingClientRect&&(r=n.getBoundingClientRect(),i.top=r.top,i.left=r.left,t||(i.top+=u.scrollTop(),i.left+=u.scrollLeft())),i},r.addClass=function(n,t){t&&(n.classList?n.classList.add(t):n.className+=" "+t)},r.removeClass=function(n,t){t&&(n.classList?n.classList.remove(t):n.className=n.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," "))},r.css=function(n,t){var u,e,f,r;if(i.String(t))return l(n)[a(t)];if(i.Array(t))return u={},e=l(n),t.forEach(function(n){u[n]=e[a(n)]}),u;for(f in t)r=t[f],r==parseFloat(r)&&(r+="px"),n.style[a(f)]=r},r}(window||{}),t.Scene.prototype.addIndicators=function(){return t._util.log(1,"(ScrollMagic.Scene) -> 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}})