(function(){var t,e,n,i,o,r=function(t,e){return function(){return t.apply(e,arguments)}},s=[].indexOf||function(t){for(var e=0,n=this.length;n>e;e++)if(e in this&&this[e]===t)return e;return-1};e=function(){function t(){}return t.prototype.extend=function(t,e){var n,i;for(n in e)i=e[n],null==t[n]&&(t[n]=i);return t},t.prototype.isMobile=function(t){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(t)},t.prototype.createEvent=function(t,e,n,i){var o;return null==e&&(e=!1),null==n&&(n=!1),null==i&&(i=null),null!=document.createEvent?(o=document.createEvent("CustomEvent"),o.initCustomEvent(t,e,n,i)):null!=document.createEventObject?(o=document.createEventObject(),o.eventType=t):o.eventName=t,o},t.prototype.emitEvent=function(t,e){return null!=t.dispatchEvent?t.dispatchEvent(e):e in(null!=t)?t[e]():"on"+e in(null!=t)?t["on"+e]():void 0},t.prototype.addEvent=function(t,e,n){return null!=t.addEventListener?t.addEventListener(e,n,!1):null!=t.attachEvent?t.attachEvent("on"+e,n):t[e]=n},t.prototype.removeEvent=function(t,e,n){return null!=t.removeEventListener?t.removeEventListener(e,n,!1):null!=t.detachEvent?t.detachEvent("on"+e,n):delete t[e]},t.prototype.innerHeight=function(){return"innerHeight"in window?window.innerHeight:document.documentElement.clientHeight},t}(),n=this.WeakMap||this.MozWeakMap||(n=function(){function t(){this.keys=[],this.values=[]}return t.prototype.get=function(t){var e,n,i,o,r;for(r=this.keys,e=i=0,o=r.length;o>i;e=++i)if(n=r[e],n===t)return this.values[e]},t.prototype.set=function(t,e){var n,i,o,r,s;for(s=this.keys,n=o=0,r=s.length;r>o;n=++o)if(i=s[n],i===t)return void(this.values[n]=e);return this.keys.push(t),this.values.push(e)},t}()),t=this.MutationObserver||this.WebkitMutationObserver||this.MozMutationObserver||(t=function(){function t(){"undefined"!=typeof console&&null!==console&&console.warn("MutationObserver is not supported by your browser."),"undefined"!=typeof console&&null!==console&&console.warn("WOW.js cannot detect dom mutations, please call .sync() after loading new content.")}return t.notSupported=!0,t.prototype.observe=function(){},t}()),i=this.getComputedStyle||function(t,e){return this.getPropertyValue=function(e){var n;return"float"===e&&(e="styleFloat"),o.test(e)&&e.replace(o,function(t,e){return e.toUpperCase()}),(null!=(n=t.currentStyle)?n[e]:void 0)||null},this},o=/(\-([a-z]){1})/g,this.WOW=function(){function o(t){null==t&&(t={}),this.scrollCallback=r(this.scrollCallback,this),this.scrollHandler=r(this.scrollHandler,this),this.resetAnimation=r(this.resetAnimation,this),this.start=r(this.start,this),this.scrolled=!0,this.config=this.util().extend(t,this.defaults),null!=t.scrollContainer&&(this.config.scrollContainer=document.querySelector(t.scrollContainer)),this.animationNameCache=new n,this.wowEvent=this.util().createEvent(this.config.boxClass)}return o.prototype.defaults={boxClass:"wow",animateClass:"animated",offset:0,mobile:!0,live:!0,callback:null,scrollContainer:null},o.prototype.init=function(){var t;return this.element=window.document.documentElement,"interactive"===(t=document.readyState)||"complete"===t?this.start():this.util().addEvent(document,"DOMContentLoaded",this.start),this.finished=[]},o.prototype.start=function(){var e,n,i,o;if(this.stopped=!1,this.boxes=function(){var t,n,i,o;for(i=this.element.querySelectorAll("."+this.config.boxClass),o=[],t=0,n=i.length;n>t;t++)e=i[t],o.push(e);return o}.call(this),this.all=function(){var t,n,i,o;for(i=this.boxes,o=[],t=0,n=i.length;n>t;t++)e=i[t],o.push(e);return o}.call(this),this.boxes.length)if(this.disabled())this.resetStyle();else for(o=this.boxes,n=0,i=o.length;i>n;n++)e=o[n],this.applyStyle(e,!0);return this.disabled()||(this.util().addEvent(this.config.scrollContainer||window,"scroll",this.scrollHandler),this.util().addEvent(window,"resize",this.scrollHandler),this.interval=setInterval(this.scrollCallback,50)),this.config.live?new t(function(t){return function(e){var n,i,o,r,s;for(s=[],n=0,i=e.length;i>n;n++)r=e[n],s.push(function(){var t,e,n,i;for(n=r.addedNodes||[],i=[],t=0,e=n.length;e>t;t++)o=n[t],i.push(this.doSync(o));return i}.call(t));return s}}(this)).observe(document.body,{childList:!0,subtree:!0}):void 0},o.prototype.stop=function(){return this.stopped=!0,this.util().removeEvent(this.config.scrollContainer||window,"scroll",this.scrollHandler),this.util().removeEvent(window,"resize",this.scrollHandler),null!=this.interval?clearInterval(this.interval):void 0},o.prototype.sync=function(e){return t.notSupported?this.doSync(this.element):void 0},o.prototype.doSync=function(t){var e,n,i,o,r;if(null==t&&(t=this.element),1===t.nodeType){for(t=t.parentNode||t,o=t.querySelectorAll("."+this.config.boxClass),r=[],n=0,i=o.length;i>n;n++)e=o[n],s.call(this.all,e)<0?(this.boxes.push(e),this.all.push(e),this.stopped||this.disabled()?this.resetStyle():this.applyStyle(e,!0),r.push(this.scrolled=!0)):r.push(void 0);return r}},o.prototype.show=function(t){return this.applyStyle(t),t.className=t.className+" "+this.config.animateClass,null!=this.config.callback&&this.config.callback(t),this.util().emitEvent(t,this.wowEvent),this.util().addEvent(t,"animationend",this.resetAnimation),this.util().addEvent(t,"oanimationend",this.resetAnimation),this.util().addEvent(t,"webkitAnimationEnd",this.resetAnimation),this.util().addEvent(t,"MSAnimationEnd",this.resetAnimation),t},o.prototype.applyStyle=function(t,e){var n,i,o;return i=t.getAttribute("data-wow-duration"),n=t.getAttribute("data-wow-delay"),o=t.getAttribute("data-wow-iteration"),this.animate(function(r){return function(){return r.customStyle(t,e,i,n,o)}}(this))},o.prototype.animate=function(){return"requestAnimationFrame"in window?function(t){return window.requestAnimationFrame(t)}:function(t){return t()}}(),o.prototype.resetStyle=function(){var t,e,n,i,o;for(i=this.boxes,o=[],e=0,n=i.length;n>e;e++)t=i[e],o.push(t.style.visibility="visible");return o},o.prototype.resetAnimation=function(t){var e;return t.type.toLowerCase().indexOf("animationend")>=0?(e=t.target||t.srcElement,e.className=e.className.replace(this.config.animateClass,"").trim()):void 0},o.prototype.customStyle=function(t,e,n,i,o){return e&&this.cacheAnimationName(t),t.style.visibility=e?"hidden":"visible",n&&this.vendorSet(t.style,{animationDuration:n}),i&&this.vendorSet(t.style,{animationDelay:i}),o&&this.vendorSet(t.style,{animationIterationCount:o}),this.vendorSet(t.style,{animationName:e?"none":this.cachedAnimationName(t)}),t},o.prototype.vendors=["moz","webkit"],o.prototype.vendorSet=function(t,e){var n,i,o,r;i=[];for(n in e)o=e[n],t[""+n]=o,i.push(function(){var e,i,s,l;for(s=this.vendors,l=[],e=0,i=s.length;i>e;e++)r=s[e],l.push(t[""+r+n.charAt(0).toUpperCase()+n.substr(1)]=o);return l}.call(this));return i},o.prototype.vendorCSS=function(t,e){var n,o,r,s,l,a;for(l=i(t),s=l.getPropertyCSSValue(e),r=this.vendors,n=0,o=r.length;o>n;n++)a=r[n],s=s||l.getPropertyCSSValue("-"+a+"-"+e);return s},o.prototype.animationName=function(t){var e;try{e=this.vendorCSS(t,"animation-name").cssText}catch(n){e=i(t).getPropertyValue("animation-name")}return"none"===e?"":e},o.prototype.cacheAnimationName=function(t){return this.animationNameCache.set(t,this.animationName(t))},o.prototype.cachedAnimationName=function(t){return this.animationNameCache.get(t)},o.prototype.scrollHandler=function(){return this.scrolled=!0},o.prototype.scrollCallback=function(){var t;return!this.scrolled||(this.scrolled=!1,this.boxes=function(){var e,n,i,o;for(i=this.boxes,o=[],e=0,n=i.length;n>e;e++)t=i[e],t&&(this.isVisible(t)?this.show(t):o.push(t));return o}.call(this),this.boxes.length||this.config.live)?void 0:this.stop()},o.prototype.offsetTop=function(t){for(var e;void 0===t.offsetTop;)t=t.parentNode;for(e=t.offsetTop;t=t.offsetParent;)e+=t.offsetTop;return e},o.prototype.isVisible=function(t){var e,n,i,o,r;return n=t.getAttribute("data-wow-offset")||this.config.offset,r=this.config.scrollContainer&&this.config.scrollContainer.scrollTop||window.pageYOffset,o=r+Math.min(this.element.clientHeight,this.util().innerHeight())-n,i=this.offsetTop(t),e=i+t.clientHeight,i>0&&o>=i&&e>0&&e>=r},o.prototype.util=function(){return null!=this._util?this._util:this._util=new e},o.prototype.disabled=function(){return!this.config.mobile&&this.util().isMobile(navigator.userAgent)},o}()}).call(this);!function(){var r,e,a,i,p,c,s,l,f,n,d,u,b,m,g,h,x,v,y,w,_,k,S,A,E,M,z,I,T,C,D,L,O=window,N=[],V={},q=document,B="appendChild",P="createElement",G="removeChild",R="innerHTML",F="pointer-events:auto",o="clientHeight",H="clientWidth",X="addEventListener",U=O.setTimeout,W=O.clearTimeout;function Y(){var t=r.getBoundingClientRect();return"transform:translate3D("+(t.left-(a[H]-t.width)/2)+"px, "+(t.top-(a[o]-t.height)/2)+"px, 0) scale3D("+r[H]/i[H]+", "+r[o]/i[o]+", 0)"}function $(t){var o,r=T.length-1;if(!b){if(0<t?I===r&&(o=!0):0===I&&(o=!0),o)return rt(p,""),void U(rt,9,p,"animation:"+(0<t?"bpl":"bpf")+" .3s;transition:transform .35s");if([(I=Math.max(0,Math.min(I+t,r)))-1,I,I+1].forEach(function(t){if(t=Math.max(0,Math.min(t,r)),!V[t]){var o=T[t].src,n=q[P]("IMG");n[X]("load",Z.bind(null,o)),n.src=o,V[t]=n}}),V[I].complete)return j(t);b=!0,rt(g,"opacity:.4;"),a[B](g),V[I].onload=function(){_&&j(t)},V[I].onerror=function(){T[I]={error:"Error loading image"},_&&j(t)}}}function j(t){b&&(a[G](g),b=!1);var o=T[I];if(o.error)alert(o.error);else{var n=a.querySelector("img:last-of-type");rt(p=i=V[I],"animation:"+(0<t?"bpfl":"bpfr")+" .35s;transition:transform .35s"),rt(n,"animation:"+(0<t?"bpfol":"bpfor")+" .35s both"),a[B](p),o.el&&(r=o.el)}C[R]=I+1+"/"+T.length,Q(T[I].caption)}function J(t){~[1,4].indexOf(i.readyState)?(tt(),U(function(){i.play()},99)):i.error?tt(t):m=U(J,35,t)}function K(t){L.noLoader||(t&&rt(g,"top:"+r.offsetTop+"px;left:"+r.offsetLeft+"px;height:"+r[o]+"px;width:"+r[H]+"px"),r.parentElement[t?B:G](g),b=t)}function Q(t){t&&(x[R]=t),rt(h,"opacity:"+(t?"1;"+F:"0"))}function Z(t){!~N.indexOf(t)&&N.push(t)}function tt(t){if(b&&K(),A&&A(),"string"==typeof t)return nt(),L.onError?L.onError():alert("Error: The requested "+t+" could not be loaded.");S&&Z(n),rt(i,Y()),rt(a,"opacity:1;"+F),E=U(E,410),w=!0,_=!!T,U(function(){rt(i,"transition:transform .35s;transform:none"),v&&U(Q,250,v)},60)}function ot(t){var o=t.target,n=[h,y,c,s,x,z,M,g];o&&o.blur(),k||~n.indexOf(o)||(i.style.cssText+=Y(),rt(a,F),U(nt,350),W(E),k=!(w=!1))}function nt(){if(q.body[G](a),a[G](i),rt(a,""),(i===l?f:i).removeAttribute("src"),Q(!1),_){for(var t=a.querySelectorAll("img"),o=0;o<t.length;o++)a[G](t[o]);b&&a[G](g),a[G](C),_=T=!1,V={},D||a[G](M),D||a[G](z),p.onload=tt,p.onerror=tt.bind(null,"image")}L.onClose&&L.onClose(),k=b=!1}function rt(t,o){t.style.cssText=o}O.BigPicture=function(t){var o;e||function(){var r;function t(t){var o=q[P]("button");return o.className=t,o[R]='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><path d="M28 24L47 5a3 3 0 1 0-4-4L24 20 5 1a3 3 0 1 0-4 4l19 19L1 43a3 3 0 1 0 4 4l19-19 19 19a3 3 0 0 0 4 0v-4L28 24z"/></svg>',o}function o(o,t){var n=q[P]("button");return n.className="bp-lr",n[R]='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 129 129" height="70" fill="#fff"><path d="M88.6 121.3c.8.8 1.8 1.2 2.9 1.2s2.1-.4 2.9-1.2a4.1 4.1 0 0 0 0-5.8l-51-51 51-51a4.1 4.1 0 0 0-5.8-5.8l-54 53.9a4.1 4.1 0 0 0 0 5.8l54 53.9z"/></svg>',rt(n,t),n.onclick=function(t){t.stopPropagation(),$(o)},n}var n=q[P]("STYLE");n[R]="#bp_caption,#bp_container{bottom:0;left:0;right:0;position:fixed;opacity:0}#bp_container>*,#bp_loader{position:absolute;right:0;z-index:10}#bp_container{top:0;z-index:9999;background:rgba(0,0,0,.7);opacity:0;pointer-events:none;transition:opacity .35s}#bp_loader{top:0;left:0;bottom:0;display:flex;margin:0;cursor:wait;z-index:9;background:0 0}#bp_loader svg{width:50%;max-width:300px;max-height:50%;margin:auto;animation:bpturn 1s infinite linear}#bp_aud,#bp_container img,#bp_sv,#bp_vid{user-select:none;max-height:96%;max-width:96%;top:0;bottom:0;left:0;margin:auto;box-shadow:0 0 3em rgba(0,0,0,.4);z-index:-1}#bp_sv{height:0;padding-bottom:54%;background-color:#000;width:96%}#bp_caption{pointer-events:none;font-size:.9em;padding:1.3em;background:rgba(15,15,15,.94);color:#fff;text-align:center;transition:opacity .3s}#bp_aud{width:650px;top:calc(50% - 20px);bottom:auto;box-shadow:none}#bp_count{left:0;right:auto;padding:14px;color:rgba(255,255,255,.7);font-size:22px;cursor:default}#bp_container button{position:absolute;border:0;outline:0;background:0 0;cursor:pointer;transition:all .1s}#bp_container>.bp-x{height:41px;width:41px;border-radius:100%;line-height:50px;top:8px;right:14px;opacity:.8}#bp_container>.bp-x:focus,#bp_container>.bp-x:hover{background:rgba(255,255,255,.2)}.bp-x svg,.bp-xc svg{height:20px;width:20px;fill:#fff}.bp-xc svg{width:16px}#bp_container .bp-xc{left:2%;bottom:100%;padding:9px 20px 4px;background:#d04444;border-radius:2px 2px 0 0;opacity:.85}#bp_container .bp-xc:focus,#bp_container .bp-xc:hover{opacity:1}.bp-lr{top:50%;top:calc(50% - 130px);padding:99px 0;width:6%;background:0 0;border:0;opacity:.4;transition:opacity .1s}.bp-lr:focus,.bp-lr:hover{opacity:.8}@keyframes bpf{50%{transform:translatex(15px)}100%{transform:none}}@keyframes bpl{50%{transform:translatex(-15px)}100%{transform:none}}@keyframes bpfl{0%{opacity:0;transform:translatex(70px)}100%{opacity:1;transform:none}}@keyframes bpfr{0%{opacity:0;transform:translatex(-70px)}100%{opacity:1;transform:none}}@keyframes bpfol{0%{opacity:1;transform:none}100%{opacity:0;transform:translatex(-70px)}}@keyframes bpfor{0%{opacity:1;transform:none}100%{opacity:0;transform:translatex(70px)}}@keyframes bpturn{0%{transform:none}100%{transform:rotate(360deg)}}@media (max-width:600px){.bp-lr{font-size:15vw}}@media (min-aspect-ratio:9/5){#bp_sv{height:98%;width:170.6vh;padding:0}}",q.head[B](n),(a=q[P]("DIV")).id="bp_container",a.onclick=ot,d=t("bp-x"),a[B](d),"ontouchstart"in O&&(D=!0,a.ontouchstart=function(t){r=t.changedTouches[0].pageX},a.ontouchmove=function(t){t.preventDefault()},a.ontouchend=function(t){if(_){var o=t.changedTouches[0],n=o.pageX-r;n<-30&&$(1),30<n&&$(-1)}});p=q[P]("IMG"),(c=q[P]("VIDEO")).id="bp_vid",c.setAttribute("playsinline",!0),c.controls=!0,c.loop=!0,(s=q[P]("audio")).id="bp_aud",s.controls=!0,s.loop=!0,(C=q[P]("span")).id="bp_count",(h=q[P]("DIV")).id="bp_caption",(y=t("bp-xc")).onclick=Q.bind(null,!1),h[B](y),x=q[P]("SPAN"),h[B](x),a[B](h),M=o(1,"transform:scalex(-1)"),z=o(-1,"left:0;right:auto"),(g=q[P]("DIV")).id="bp_loader",g[R]='<svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 32 32" fill="#fff" opacity=".8"><path d="M16 0a16 16 0 0 0 0 32 16 16 0 0 0 0-32m0 4a12 12 0 0 1 0 24 12 12 0 0 1 0-24" fill="#000" opacity=".5"/><path d="M16 0a16 16 0 0 1 16 16h-4A12 12 0 0 0 16 4z"/></svg>',(l=q[P]("DIV")).id="bp_sv",(f=q[P]("IFRAME")).allowFullscreen=!0,f.onload=tt,rt(f,"border:0;position:absolute;height:100%;width:100%;left:0;top:0"),l[B](f),p.onload=tt,p.onerror=tt.bind(null,"image"),O[X]("resize",function(){_||b&&K(!0)}),q[X]("keyup",function(t){var o=t.keyCode;27===o&&w&&ot(a),_&&(39===o&&$(1),37===o&&$(-1),38===o&&$(10),40===o&&$(-10))}),q[X]("keydown",function(t){_&&~[37,38,39,40].indexOf(t.keyCode)&&t.preventDefault()}),q[X]("focus",function(t){w&&!a.contains(t.target)&&(t.stopPropagation(),d.focus())},!0),e=!0}(),b&&(W(m),nt()),u=(L=t).ytSrc||t.vimeoSrc,A=t.animationStart,E=t.animationEnd,r=t.el,S=!1,v=r.getAttribute("data-caption"),t.gallery?function(t){if(Array.isArray(t))v=(T=t)[I=0].caption;else{var o=(T=[].slice.call("string"==typeof t?q.querySelectorAll(t+" [data-bp]"):t)).indexOf(r);I=-1!==o?o:0,T=T.map(function(t){return{el:t,src:t.getAttribute("data-bp"),caption:t.getAttribute("data-caption")}})}S=!0,n=T[I].src,!~N.indexOf(n)&&K(!0),1<T.length?(a[B](C),C[R]=I+1+"/"+T.length,D||(a[B](M),a[B](z))):T=!1;(i=p).src=n}(t.gallery):u||t.iframeSrc?(K(!0),i=l,function(){var t,o="https://",n="autoplay=1";L.ytSrc?t=o+"www.youtube.com/embed/"+u+"?html5=1&rel=0&playsinline=1&"+n:L.vimeoSrc?t=o+"player.vimeo.com/video/"+u+"?"+n:L.iframeSrc&&(t=L.iframeSrc);f.src=t}()):t.imgSrc?(S=!0,n=t.imgSrc,!~N.indexOf(n)&&K(!0),(i=p).src=n):t.audio?(K(!0),(i=s).src=t.audio,J("audio file")):t.vidSrc?(K(!0),o=t.vidSrc,Array.isArray(o)?(i=c.cloneNode(),o.forEach(function(t){var o=q[P]("SOURCE");o.src=t,o.type="video/"+t.match(/.(\w+)$/)[1],i[B](o)})):(i=c).src=o,J("video")):(i=p).src="IMG"===r.tagName?r.src:O.getComputedStyle(r).backgroundImage.replace(/^url|[(|)|'|"]/g,""),a[B](i),q.body[B](a)}}();var isMob=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);var isiPhoneiPod=isMob&&/iPhone|iPod/i.test(navigator.userAgent);var isIOS=isMob&&/iPhone|iPad|iPod/i.test(navigator.userAgent);var isChrome=!isMob&&/Chrome/i.test(navigator.userAgent);var isSafari=!isMob&&!isChrome&&/Safari/i.test(navigator.userAgent);var isIE8=!isMob&&!isChrome&&!isSafari&&(/MSIE/i.test(navigator.userAgent)&&(checkIE(8)||checkIE(9)));var prePath=document.location.href.indexOf('/ribbet/')>-1?'/ribbet':'';var current_section=2;var isLabPage=(window.location.href.indexOf('lab')>-1);var googletag=googletag||{};var origImagePaths=[];var scrollPositions=[];function getCookie(cname){var name=cname+"=";var ca=document.cookie.split(';');for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==' '){c=c.substring(1);}
if(c.indexOf(name)==0){return c.substring(name.length,c.length);}}
return false;}
function checkIE(version,comparison){var cc='IE',b=document.createElement('B'),docElem=document.documentElement,ie;if(version){cc+=' '+version;if(comparison){cc=comparison+' '+cc;}}
b.innerHTML='<!--[if '+cc+']><b id="iecctest"></b><![endif]-->';docElem.appendChild(b);ie=!!document.getElementById('iecctest');docElem.removeChild(b);return ie;}
$(window).on("load",(function(){try{setTimeout(function(){(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-5MHHQJQ');},500);var loaderSRC=getImageSrc($('.preload-images img[data-section="loader"]').attr('data-src'));if(typeof loaderSRC!=="undefined"&&loaderSRC.length){var img=new Image();img.onload=function(){performOperations(true);};img.onerror=function(){performOperations(false);};img.src=loaderSRC;}else{performOperations(false);}}catch(e){performOperations(false);}
$.fn.isOnScreen=function(){var win=$(window);var viewport={top:win.scrollTop(),left:win.scrollLeft()};viewport.right=viewport.left+win.width();viewport.bottom=viewport.top+win.height();var bounds=this.offset();bounds.right=bounds.left+this.outerWidth();bounds.bottom=bounds.top+this.outerHeight();return(!(viewport.right<bounds.left||viewport.left>bounds.right||viewport.bottom<bounds.top||viewport.top>bounds.bottom));};function getImageSrc(src){var imageSrc=src;if(src.indexOf('basic-editor/frame')>-1||src.indexOf('shape-collages/frame')>-1||src.indexOf('grid-collage/frame')>-1||src.indexOf('fancy-collage/frame')>-1){var imagePath=src.split('.png');var retina=is_retina_device()?"-retina":"";retina="";if($(window).width()<751&&$(window).width()>430&&src.indexOf('shadow')<0){imageSrc=imagePath[0]+"2"+retina+".png"+imagePath[1];}else if($(window).width()<431&&src.indexOf('shadow')<0){imageSrc=imagePath[0]+"3"+retina+".png"+imagePath[1];}else if(retina.length){imageSrc=imagePath[0]+retina+".png"+imagePath[1];}}else if((src.indexOf('sprite')>0||src.indexOf('full-image')>0||src.indexOf('webcam-image')>0||src.indexOf('collage-image')>0||src.indexOf('screenshot_shadow')>0)&&is_retina_device()&&src.indexOf('.png')>-1&&(src.indexOf('shadow')<0||src.indexOf('screenshot')>0)){var imagePath=src.split('.png');imageSrc=imagePath[0]+"-retina.png"+imagePath[1];}
return imageSrc;}
function after_reveal(el){el.addEventListener("animationend",function(event){$('.popup-area .main-frame-section .popup-area-frame .inner-pages-section .main-section .scroll-bar, '+'.popup-area .main-frame-section .popup-area-frame .main-popups .popups-righttext .scroll-bar').css("overflow-y","auto");if(!isMob&&window.location.href.indexOf('/contactus')>-1)$("form#form_feedback input#tb_name").focus();});}
function is_retina_device(){return window.devicePixelRatio>1.20;}
function performOperations(gifLoaded){$("<link />",{'rel':'stylesheet','href':"/content/assets/common/font-face.css"}).appendTo('head');$("#page").removeAttr("style");if(document.location.href.indexOf("without_preloading")<0&&$('.preload-images img').length&&!isIE8){var imageLoaded=0;var imageSections={"1":0,"2":0,"3":0,"4":0,"landing-page":0,"press-kit":0};var landingPageBackground=0;$('.preload-images img').each(function(){if(parseInt(document.location.href.indexOf("quick_load"))>-1&&$(this).parent().attr("id")==="remaining_sections")
return;var section=$(this).attr("data-section");if(section==="loader"&&gifLoaded){imageLoaded++;}else{$(this).attr('src',getImageSrc($(this).attr('data-src'))).load(function(){imageLoaded++;(section==="landing-page")?landingPageBackground++:imageSections[section]++;if(imageLoaded==$('.preload-images img').length&&document.location.href.indexOf("loader")<0){section=$('.preload-images img[data-section="press-kit"]').length?"press-kit":$('.preload-images img[data-section="photo-editing-api"]').length?"photo-editing-api":section;switch(section){case"edit-facebook-photos":$('.popup-area .frame-images .main-image, .popup-area .frame-images .shadow-img').css("visibility","visible");break;case"press-kit":case"photo-editing-api":$('.'+section+' img').each(function(){if($(this).attr('data-src').length)
$(this).attr('src',$(this).attr('data-src'));});break;}
displaySections();}else if($(this).attr("data-section").length&&parseInt(document.location.href.indexOf("extra_animations"))<0&&imageSections[section]==$("img[data-section='"+section+"'").length){if(section==="landing-page")
$('.popup-area .frame-images .main-image, .popup-area .frame-images .shadow-img').css("visibility","visible");$('.'+section+'-frame .frame-image, .'+section+' .line-text').css("visibility","visible");}else if($(this).attr("data-section").length&&landingPageBackground==$("img[data-section='"+section+"'").length)
$('.popup-area .frame-images .main-image, .popup-area .frame-images .shadow-img').css("visibility","visible");}).error(function(e){displaySections();});}});}else{displaySections();}
function displaySections(){setTimeout(function(){displayNextSection(current_section);$(".loader-area").fadeOut(200);$('.popup-area .frame-images .main-image, .popup-area .frame-images .shadow-img').css("visibility","visible");$('.shape-collage-frame .frame-image, .shape-collage-frame .line-text,'+'.grid-collage-frame .frame-image, .grid-collage-frame .line-text,'+'.fancy-collage-frame .frame-image, .fancy-collage-frame .line-text'+'.popup-area .frame-images .main-image, .popup-area .frame-images .shadow-img').css("visibility","visible");if(!isMob&&!isIE8){wow=new WOW({animateClass:'animated',offset:100,callback:after_reveal});wow.init();if($(window).scrollTop()>0)
setTimeout(wow.scrollHandler,1000);}else{$('.popup-area .main-frame-section .popup-area-frame .inner-pages-section .main-section .scroll-bar, '+'.popup-area .main-frame-section .popup-area-frame .main-popups .popups-righttext .scroll-bar').css("overflow-y","auto");$('.basic-editor-frame .strips-images, .basic-editor-frame .line-text, '+'.popup-area .frame-images .main-image, .popup-area .frame-images .shadow-img, '+'.popup-area .main-frame-section .popup-area-frame .popup-area-frame .main-popups .popups-section .popups-images .image-1, '+'.popup-area .main-frame-section .popup-area-frame .popup-area-frame .main-popups .popups-section .popups-images .image-2, '+'.popup-area .main-frame-section .popup-area-frame .popup-area-frame .main-popups .popups-section .popups-images .image-3, '+'.popup-area .main-frame-section .popup-area-frame .popup-area-frame .main-popups .popups-section .popups-righttext, '+'.popup-area .main-frame-section .popup-area-frame .inner-pages-section .main-section .inner-section').css("visibility","visible");}},50);}
function displayNextSection(section){if(section<7&&$("#remaining_sections img[data-section='"+section+"']").length){try{imageLoaded=0;$("#remaining_sections img[data-section='"+section+"']").each(function(){var node=this;var img_src=getImageSrc($(this).attr('data-src'));var img=new Image();img.onload=function(){imageLoaded++;displaySection(imageLoaded,section,node);};img.onerror=function(){imageLoaded++;displaySection(imageLoaded,section,node);};img.src=img_src;});}catch(e){current_section++;displayNextSection(current_section);}}else{$('.section-loader, .loader').hide();$('.bottom-add, .footer').fadeIn(200);if(window.location.href.indexOf('download')>-1&&!is_downloaded&&!is_prefetch_img)
startDownload(true);}
function displaySection(imageLoaded,section,node){if(imageLoaded===$("img[data-section='"+section+"']").length)
{var parClass=$(node).attr("data-div");var par=$("."+parClass);$(".loader",par).fadeOut(200,function(){if(parClass.indexOf("lab")>-1||parClass.indexOf("print")>-1){par.attr("style","");$("."+parClass+"-frame",par).attr("style","");}
$(".content",par).fadeIn(200);});current_section++;setTimeout(function(){displayNextSection(current_section);},50);}}}
if(window.location.href.indexOf('lab')>-1)
hideExtraPaginationLink();else if(window.location.href.indexOf('milk')>-1)
adjustTextAndImages();if(window.location.href.indexOf('lazzy_load_font')>-1)
$("<link />",{'rel':'stylesheet','href':prePath+"/content/assets/common/font-face.css?v=1"}).appendTo('head');$(window).resize(function(){if(window.location.href.indexOf('lab')>-1){hideExtraPaginationLink();}
else if(window.location.href.indexOf('milk')>-1)
adjustTextAndImages();});function adjustTextAndImages(){$('div[data-images-align="right"]').each(function(){var firstChild=$("div:eq(0)",$(this)).clone();var secondChild=$((firstChild.attr("class")=="mp-text")?".mp-images":".mp-text",$(this)).clone();if($(window).width()<670&&firstChild.attr("class")=="mp-text"){$(this).html('');secondChild.appendTo($(this));firstChild.appendTo($(this));}else if($(window).width()>669&&secondChild.attr("class")=="mp-text"){$(this).html('');secondChild.appendTo($(this));firstChild.appendTo($(this));}});}
function hideExtraPaginationLink(){var pagesNum=$(".centerGrids div.count a.pagination").length;var currentPage=$(".centerGrids div.count .current").text();var prev=0;var next=pagesNum-1;for(var i=1;i<10;i++){if((pagesNum-i)>=4){if(i%2===0){var node=($(".centerGrids div.count a.pagination:eq("+prev+")").text()>currentPage)?next:prev;if($(window).width()<955)
$(".centerGrids div.count a.pagination:eq("+node+")").hide();else
$(".centerGrids div.count a.pagination:eq("+node+")").show();($(".centerGrids div.count a.pagination:eq("+prev+")").text()>currentPage)?next--:prev++;}else{if($(window).width()<955)
$(".centerGrids div.count a.pagination:eq("+next+")").hide();else
$(".centerGrids div.count a.pagination:eq("+next+")").show();next--;}}else
break;}
adjustCellBackgrounds();}
function adjustCellBackgrounds(){$(".gridCell").each(function(){$(this).removeClass("res-background");});$(".allGrids").each(function(){var count=0,subCount=1;$(".gridCell",$(this)).each(function(){if(count%3===0&&!$(this).hasClass("res-background")){if(subCount%2===0)
count++;subCount++;if($(window).width()<955){origImagePaths[count]=$("img",$(this)).attr("src");$(this).addClass("res-background");$("img",$(this)).attr("src",origImagePaths[count].replace("bg=0x1e252b","bg=0x10151A"));}else{$("img",$(this)).attr("src",origImagePaths[count]);}}else{if($(window).width()<955){origImagePaths[count]=$("img",$(this)).attr("src");$("img",$(this)).attr("src",origImagePaths[count].replace("bg=0x10151A","bg=0x1e252b"));}else{$("img",$(this)).attr("src",origImagePaths[count]);}}
count+=2;});});}
$("a.contact-question, a.photo-editing-api").click(function(){$('html, body').animate({scrollTop:getScrollPosition($(this).attr("data-position"))},'fast');});$("a.scroll-top").click(function(){$('html, body').animate({scrollTop:0},'fast');});$("a.contact-question, a.photo-editing-api").each(function(){getScrollPosition($(this).attr("data-position"))});function getScrollPosition(div){return $(div).offset().top;}
function addErrorField(fieldName){$(fieldName).addClass("error");allOk=false;if(firstErrorField==null)
firstErrorField=$(fieldName);}
var allOk;var firstErrorField;$("input, textarea, select").change(function(){$(this).removeClass("error");});$("input#submit_feedback").click(function(){allOk=true;firstErrorField=null;var emailRegex=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;$("input, textarea, select").removeClass("error");if(!$("#tb_name").val().length)
addErrorField("#tb_name");if(!$("#tb_subject").val().length)
addErrorField("#tb_subject");if(!$("#tb_email").val().length||!emailRegex.test($("#tb_email").val()))
addErrorField("#tb_email");if(!$("#tb_email2").val().length)
addErrorField("#tb_email2");else if($("#tb_email").val()!==$("#tb_email2").val()){addErrorField("#tb_email1");addErrorField("#tb_email2");}
if(!$("#tb_comment").val().length)
addErrorField("#tb_comment");if($("#g-recaptcha-response").val()===""){allOk=false;$('.g-recaptcha').addClass('error');}
if(!allOk){firstErrorField.focus();return false;}else
$("#form_feedback").submit();});$("#learn-more-btn").unbind("mousedown");$("#learn-more-btn").mousedown(function(event){if(event.which!=1)
return true;event.preventDefault();if(!isMob&&!isiPhoneiPod&&!isIOS&&!isIE8){$(".popup-overview").css("display","none");$(".popup-overview, .main-pages-section").removeClass("fadeInUp").removeClass("fadeInDown").removeClass("slide-animated");setTimeout(function(){$(".main-pages-section").css("display","none");$(".popup-overview").css("display","block").addClass("fadeInUp slide-animated");$("html, body").animate({scrollTop:100},1000);},50);}else{$(".main-pages-section").css("display","none");$(".popup-overview").show();$("html, body").animate({scrollTop:100},1000);}});$("#learn-more-back").unbind("mousedown");$("#learn-more-back").mousedown(function(event){if(event.which!=1)
return true;event.preventDefault();if(!isMob&&!isiPhoneiPod&&!isIOS&&!isIE8){$(".main-pages-section").css("display","none");$(".popup-overview, .main-pages-section").removeClass("fadeInUp").removeClass("fadeInDown").removeClass("slide-animated");setTimeout(function(){$(".popup-overview").css("display","none");$(".main-pages-section").css("display","block").addClass("fadeInDown slide-animated");$("html, body").animate({scrollTop:$('.main-frame-iner').offset().top},1000);},50);}else{$(".popup-overview").css("display","none");$(".main-pages-section").show();$("html, body").animate({scrollTop:$('.main-frame-iner').offset().top},1000);}});$("#learn-more").unbind("mousedown");$("#learn-more").mousedown(function(event){if(event.which!=1)
return true;event.preventDefault();if(!isMob&&!isiPhoneiPod&&!isIOS&&!isIE8){$(".overview-section").css("display","none");$(".overview-section, #main-popups").removeClass("fadeInDown").removeClass("fadeOutDown").removeClass("fadeInUp").removeClass("fadeOutUp").removeClass("slide-animated");$("#main-popups").addClass("fadeOutUp slide-animated");setTimeout(function(){$(".popup-area").addClass("blur-image");$(".popup-area-frame").css("display","none");$(".overview-section").css("display","block").addClass("fadeInUp slide-animated");$("html, body").animate({scrollTop:$('.main-frame-iner').offset().top},1000);},50);}else{$(".popup-area").addClass("blur-image");$("#main-popups, .popup-area-frame").hide();$(".overview-section").show();$("html, body").animate({scrollTop:$('.main-frame-iner').offset().top},1000);}});$(".bottom-footerlinks .bottom-button a").unbind("mousedown");$(".bottom-footerlinks .bottom-button a").mousedown(function(event){if(event.which!=1)
return true;event.preventDefault();if($(".footer-mainblog").is(":visible")){$(this).text("show more links").html("Show more links");$(".footer-mainblog").slideUp("slow");}else{$(this).text("hide more links").html("Hide more links");$(".footer-mainblog").slideDown("slow");}});$("#back").unbind("mousedown");$("#back").mousedown(function(event){if(event.which!=1)
return true;event.preventDefault();if(!isMob&&!isiPhoneiPod&&!isIOS&&!isIE8){$(".overview-section, #main-popups").removeClass("fadeInUp").removeClass("fadeOutUp").removeClass("fadeInDown").removeClass("fadeOutDown");$(".overview-section").css("display","none").addClass("fadeOutDown slide-animated");setTimeout(function(){$(".popup-area-frame").css("display","block");$(".popup-area").removeClass("blur-image");$("#main-popups").addClass("fadeInDown slide-animated");$("html, body").animate({scrollTop:100},1000);},50);}else{if(window.location.href.indexOf("animate_popup")>-1)
{$(".overview-section").fadeOut(200,function(){$(".popup-area-frame").show();$(".popup-area").removeClass("blur-image");$("#main-popups").fadeTo("slow",1);});}else{$(".overview-section").hide();$(".popup-area-frame").show();$(".popup-area").removeClass("blur-image");$("#main-popups").show();$("html, body").animate({scrollTop:100},1000);}}});$(document).delegate(".menu-mobile-icon a","click",function(event){event.preventDefault();$(this).parent().toggleClass("menu-mobile");$(".menu-option").toggle();});$(document).click(function(e){var container=$(".menu-option:visible");if(!$(".menu-mobile-icon a").is(e.target)&&!container.is(e.target)&&container.has(e.target).length==0){$(".menu-mobile-icon, .menu-mobile-icon a").removeClass("menu-mobile");container.hide();}});if($('#tb_name').length&&(window.location.href.indexOf('/contactus')==-1||!isMob||window.location.href.indexOf('/contactus?nf=1')>0||window.location.href.indexOf('/contactus?switch=1')>0))
$('#tb_name').focus();$('.main-section-points > a').off('click').on('click',function(){var par=$(this).closest('.main-section-points');par.toggleClass('active');$('.details',par).css({'max-height':par.hasClass('active')?$('.details',par)[0].scrollHeight:'0'});});$('.sample-images img').off('click').on('click',function(e){e.preventDefault();BigPicture({el:this,gallery:'.sample-images'});});function initLearnMoreImages(){$('.overview-thumbnails .thumbnail img').each(function(i,e){console.log($(this).attr('src').length);if(typeof $(this).attr('src').length==='undefined'||!$(this).attr('src').length)
$(this).attr('src',$(this).attr('data-src'));});}
var initThumbs=setInterval(function(){if(document.readyState=='complete'){initLearnMoreImages();$('.overview-thumbnails .thumbnail img').off('click').on('click',function(e){e.preventDefault();BigPicture({el:this,gallery:'.overview-thumbnails'});});clearInterval(initThumbs);}},100);$('.overview-thumbnails .thumbnail img').off('click').on('click',function(e){e.preventDefault();BigPicture({el:this,gallery:'.overview-thumbnails'});});}}));function toggleMobileNav(){let mobileNav=document.getElementById("mobile-nav");mobileNav.classList.toggle("open");document.getElementById("hamburger").classList.toggle("active");}/*! WOW wow.js - v1.3.0 - 2016-10-04
* https://wowjs.uk
* Copyright (c) 2016 Thomas Grainger; Licensed MIT */
!function(a,b){if("function"==typeof define&&define.amd)define(["module","exports"],b);else if("undefined"!=typeof exports)b(module,exports);else{var c={exports:{}};b(c,c.exports),a.WOW=c.exports}}(this,function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}
function d(a,b){return b.indexOf(a)>=0}
function e(a,b){for(var c in b)if(null==a[c]){var d=b[c];a[c]=d}
return a}
function f(a){return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(a)}
function g(a){var b=arguments.length<=1||void 0===arguments[1]?!1:arguments[1],c=arguments.length<=2||void 0===arguments[2]?!1:arguments[2],d=arguments.length<=3||void 0===arguments[3]?null:arguments[3],e=void 0;return null!=document.createEvent?(e=document.createEvent("CustomEvent"),e.initCustomEvent(a,b,c,d)):null!=document.createEventObject?(e=document.createEventObject(),e.eventType=a):e.eventName=a,e}
function h(a,b){null!=a.dispatchEvent?a.dispatchEvent(b):b in(null!=a)?a[b]():"on"+b in(null!=a)&&a["on"+b]()}
function i(a,b,c){null!=a.addEventListener?a.addEventListener(b,c,!1):null!=a.attachEvent?a.attachEvent("on"+b,c):a[b]=c}
function j(a,b,c){null!=a.removeEventListener?a.removeEventListener(b,c,!1):null!=a.detachEvent?a.detachEvent("on"+b,c):delete a[b]}
function k(){return"innerHeight"in window?window.innerHeight:document.documentElement.clientHeight}
Object.defineProperty(b,"__esModule",{value:!0});var l,m,n=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,d.key,d)}}
return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}(),o=window.WeakMap||window.MozWeakMap||function(){function a(){c(this,a),this.keys=[],this.values=[]}
return n(a,[{key:"get",value:function(a){for(var b=0;b<this.keys.length;b++){var c=this.keys[b];if(c===a)return this.values[b]}}},{key:"set",value:function(a,b){for(var c=0;c<this.keys.length;c++){var d=this.keys[c];if(d===a)return this.values[c]=b,this}
return this.keys.push(a),this.values.push(b),this}}]),a}(),p=window.MutationObserver||window.WebkitMutationObserver||window.MozMutationObserver||(m=l=function(){function a(){c(this,a),"undefined"!=typeof console&&null!==console&&(console.warn("MutationObserver is not supported by your browser."),console.warn("WOW.js cannot detect dom mutations, please call .sync() after loading new content."))}
return n(a,[{key:"observe",value:function(){}}]),a}(),l.notSupported=!0,m),q=window.getComputedStyle||function(a){var b=/(\-([a-z]){1})/g;return{getPropertyValue:function(c){"float"===c&&(c="styleFloat"),b.test(c)&&c.replace(b,function(a,b){return b.toUpperCase()});var d=a.currentStyle;return(null!=d?d[c]:void 0)||null}}},r=function(){function a(){var b=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];c(this,a),this.defaults={boxClass:"wow",animateClass:"animated",offset:0,mobile:!0,live:!0,callback:null,scrollContainer:null,resetAnimation:!0},this.animate=function(){return"requestAnimationFrame"in window?function(a){return window.requestAnimationFrame(a)}:function(a){return a()}}(),this.vendors=["moz","webkit"],this.start=this.start.bind(this),this.resetAnimation=this.resetAnimation.bind(this),this.scrollHandler=this.scrollHandler.bind(this),this.scrollCallback=this.scrollCallback.bind(this),this.scrolled=!0,this.config=e(b,this.defaults),null!=b.scrollContainer&&(this.config.scrollContainer=document.querySelector(b.scrollContainer)),this.animationNameCache=new o,this.wowEvent=g(this.config.boxClass)}
return n(a,[{key:"init",value:function(){this.element=window.document.documentElement,d(document.readyState,["interactive","complete"])?this.start():i(document,"DOMContentLoaded",this.start),this.finished=[]}},{key:"start",value:function(){var a=this;if(this.stopped=!1,this.boxes=[].slice.call(this.element.querySelectorAll("."+this.config.boxClass)),this.all=this.boxes.slice(0),this.boxes.length)if(this.disabled())this.resetStyle();else for(var b=0;b<this.boxes.length;b++){var c=this.boxes[b];this.applyStyle(c,!0)}
if(this.disabled()||(i(this.config.scrollContainer||window,"scroll",this.scrollHandler),i(window,"resize",this.scrollHandler),this.interval=setInterval(this.scrollCallback,50)),this.config.live){var d=new p(function(b){for(var c=0;c<b.length;c++)for(var d=b[c],e=0;e<d.addedNodes.length;e++){var f=d.addedNodes[e];a.doSync(f)}});d.observe(document.body,{childList:!0,subtree:!0})}}},{key:"stop",value:function(){this.stopped=!0,j(this.config.scrollContainer||window,"scroll",this.scrollHandler),j(window,"resize",this.scrollHandler),null!=this.interval&&clearInterval(this.interval)}},{key:"sync",value:function(){p.notSupported&&this.doSync(this.element)}},{key:"doSync",value:function(a){if("undefined"!=typeof a&&null!==a||(a=this.element),1===a.nodeType){a=a.parentNode||a;for(var b=a.querySelectorAll("."+this.config.boxClass),c=0;c<b.length;c++){var e=b[c];d(e,this.all)||(this.boxes.push(e),this.all.push(e),this.stopped||this.disabled()?this.resetStyle():this.applyStyle(e,!0),this.scrolled=!0)}}}},{key:"show",value:function(a){return this.applyStyle(a),a.className=a.className+" "+this.config.animateClass,null!=this.config.callback&&this.config.callback(a),h(a,this.wowEvent),this.config.resetAnimation&&(i(a,"animationend",this.resetAnimation),i(a,"oanimationend",this.resetAnimation),i(a,"webkitAnimationEnd",this.resetAnimation),i(a,"MSAnimationEnd",this.resetAnimation)),a}},{key:"applyStyle",value:function(a,b){var c=this,d=a.getAttribute("data-wow-duration"),e=a.getAttribute("data-wow-delay"),f=a.getAttribute("data-wow-iteration");return this.animate(function(){return c.customStyle(a,b,d,e,f)})}},{key:"resetStyle",value:function(){for(var a=0;a<this.boxes.length;a++){var b=this.boxes[a];b.style.visibility="visible"}}},{key:"resetAnimation",value:function(a){if(a.type.toLowerCase().indexOf("animationend")>=0){var b=a.target||a.srcElement;b.className=b.className.replace(this.config.animateClass,"").trim()}}},{key:"customStyle",value:function(a,b,c,d,e){return b&&this.cacheAnimationName(a),a.style.visibility=b?"hidden":"visible",c&&this.vendorSet(a.style,{animationDuration:c}),d&&this.vendorSet(a.style,{animationDelay:d}),e&&this.vendorSet(a.style,{animationIterationCount:e}),this.vendorSet(a.style,{animationName:b?"none":this.cachedAnimationName(a)}),a}},{key:"vendorSet",value:function(a,b){for(var c in b)if(b.hasOwnProperty(c)){var d=b[c];a[""+c]=d;for(var e=0;e<this.vendors.length;e++){var f=this.vendors[e];a[""+f+c.charAt(0).toUpperCase()+c.substr(1)]=d}}}},{key:"vendorCSS",value:function(a,b){for(var c=q(a),d=c.getPropertyCSSValue(b),e=0;e<this.vendors.length;e++){var f=this.vendors[e];d=d||c.getPropertyCSSValue("-"+f+"-"+b)}
return d}},{key:"animationName",value:function(a){var b=void 0;try{b=this.vendorCSS(a,"animation-name").cssText}catch(c){b=q(a).getPropertyValue("animation-name")}
return"none"===b?"":b}},{key:"cacheAnimationName",value:function(a){return this.animationNameCache.set(a,this.animationName(a))}},{key:"cachedAnimationName",value:function(a){return this.animationNameCache.get(a)}},{key:"scrollHandler",value:function(){this.scrolled=!0}},{key:"scrollCallback",value:function(){if(this.scrolled){this.scrolled=!1;for(var a=[],b=0;b<this.boxes.length;b++){var c=this.boxes[b];if(c){if(this.isVisible(c)){this.show(c);continue}
a.push(c)}}
this.boxes=a,this.boxes.length||this.config.live||this.stop()}}},{key:"offsetTop",value:function(a){for(;void 0===a.offsetTop;)a=a.parentNode;for(var b=a.offsetTop;a.offsetParent;)a=a.offsetParent,b+=a.offsetTop;return b}},{key:"isVisible",value:function(a){var b=a.getAttribute("data-wow-offset")||this.config.offset,c=this.config.scrollContainer&&this.config.scrollContainer.scrollTop||window.pageYOffset,d=c+Math.min(this.element.clientHeight,k())-b,e=this.offsetTop(a),f=e+a.clientHeight;return d>=e&&f>=c}},{key:"disabled",value:function(){return!this.config.mobile&&f(navigator.userAgent)}}]),a}();b["default"]=r,a.exports=b["default"]});