diff --git a/Home.css b/Home.css index e53a0cf..04ce308 100644 --- a/Home.css +++ b/Home.css @@ -254,4 +254,25 @@ transform: rotate(0); box-shadow: 2px 2px 5px #2fdcff; } +} + +/* Progressbar CSS */ +.pace { + -webkit-pointer-events: none; + pointer-events: none; + -webkit-user-select: none; + -moz-user-select: none; + user-select: none; +} +.pace-inactive { + display: none; +} +.pace .pace-progress { + background: #bf0711; + position: fixed; + z-index: 2000; + top: 0; + right: 100%; + width: 100%; + height: 3px; } \ No newline at end of file diff --git a/index.html b/index.html index a62d136..7d0c935 100644 --- a/index.html +++ b/index.html @@ -16,6 +16,7 @@ + -
diff --git a/noobcoders.js b/noobcoders.js index b12fc93..dab1f25 100644 --- a/noobcoders.js +++ b/noobcoders.js @@ -28,4 +28,5 @@ https://github.com/imakewebthings/waypoints/blob/master/licenses.txt * MIT License * http://github.com/cferdinandi/gumshoe */ -!function(i,factory){if(true)n=[],o=function(){return factory(i)}.apply(e,n),!(void 0!==o&&(t.exports=o));else if("object"==typeof e)t.exports=factory(i);else i.Gumshoe=factory(i)}(void 0!==i?i:"undefined"!=typeof window?window:this,function(t){var e={navClass:"active",contentClass:"active",nested:false,nestedClass:"active",offset:0,reflow:false,events:true},i=function(){var t={};return Array.prototype.forEach.call(arguments,function(e){for(var i in e)if(e.hasOwnProperty(i))t[i]=e[i]}),t},n=function(type,t,e){if(e.settings.events){var i=new CustomEvent(type,{bubbles:true,cancelable:true,detail:e});t.dispatchEvent(i)}},o=function(t){var e=0;if(t.offsetParent)for(;t;)e+=t.offsetTop,t=t.offsetParent;return e>=0?e:0},a=function(t){if(t)t.sort(function(t,e){if(o(t.content)=l())return true;else return false},c=function(t,settings){if(f()&&u(t.content,settings,true))return true;else return false},p=function(t,settings){if(t.length){var e=t[t.length-1];if(c(e,settings))return e;for(var i=t.length-1;i>=0;i--)if(u(t[i].content,settings))return t[i]}},h=function(nav,settings){if(settings.nested&&nav.parentNode){var t=nav.parentNode.closest("li");if(t)t.classList.remove(settings.nestedClass),h(t,settings)}},m=function(items,settings){if(items){var t=items.nav.closest("li");if(t)t.classList.remove(settings.navClass),items.content.classList.remove(settings.contentClass),h(t,settings),n("gumshoeDeactivate",t,{link:items.nav,content:items.content,settings:settings})}},v=function(nav,settings){if(settings.nested){var t=nav.parentNode.closest("li");if(t)t.classList.add(settings.nestedClass),v(t,settings)}},g=function(items,settings){if(items){var t=items.nav.closest("li");if(t)t.classList.add(settings.navClass),items.content.classList.add(settings.contentClass),v(t,settings),n("gumshoeActivate",t,{link:items.nav,content:items.content,settings:settings})}};return function(selector,n){var o={},s,l,u,f,settings;o.setup=function(){s=document.querySelectorAll(selector),l=[],Array.prototype.forEach.call(s,function(t){var e=document.getElementById(decodeURIComponent(t.hash.substr(1)));if(e)l.push({nav:t,content:e})}),a(l)},o.detect=function(){var t=p(l,settings);if(t){if(!u||t.content!==u.content)m(u,settings),g(t,settings),u=t}else if(u)m(u,settings),u=null};var c=function(){if(f)t.cancelAnimationFrame(f);f=t.requestAnimationFrame(o.detect)},h=function(){if(f)t.cancelAnimationFrame(f);f=t.requestAnimationFrame(function(){a(l),o.detect()})};return o.destroy=function(){if(u)m(u,settings);if(t.removeEventListener("scroll",c,false),settings.reflow)t.removeEventListener("resize",h,false);l=null,s=null,u=null,f=null,settings=null},function(){if(settings=i(e,n||{}),o.setup(),o.detect(),t.addEventListener("scroll",c,false),settings.reflow)t.addEventListener("resize",h,false)}(),o}})}).call(e,i(52))},6145:function(t,e,i){"use strict";var n=i(6),o=i(6146),HorizontalLayoutSlider=i(142);n(window).on("load",function(){setTimeout(function(){n(".u-gallery").removeClass("u-no-transition"),n(".u-layout-horizontal").each(function(){var gallery=n(this),slider=new HorizontalLayoutSlider(gallery,true);gallery.children(".u-gallery-nav").click(function(t){t.preventDefault();var e=n(t.currentTarget);slider.navigate(e)})})},250)}),n(function(){n("body").on("mouseenter",".u-gallery.u-no-transition",function(){n(this).closest(".u-gallery").removeClass("u-no-transition")}),new o([".u-gallery.u-product-zoom.u-layout-thumbnails",".u-gallery.u-product-zoom.u-layout-carousel"]).init()})},6146:function(t,e,i){"use strict";function n(t){this.galleryZoomSelector=t}function o(t){var e=t.currentTarget,i=l(e).closest(".u-gallery-item"),n=i.data("zoom_click"),o=e.getBoundingClientRect(),a=e.querySelector("img"),s=t.clientX,u=t.clientY,f=t.originalEvent.changedTouches;if(!n&&!f){l(e).addClass("hover");var c=s-o.x,p=u-o.y;requestAnimationFrame(function(){var t=c*(1-a.offsetWidth/e.offsetWidth),i=p*(1-a.offsetHeight/e.offsetHeight);a.style.left=t+"px",a.style.top=i+"px"})}}function a(t){var e=l(t.currentTarget);l(e).removeClass("hover"),l(e).closest(".u-gallery-item").data("zoom_click")}function s(t){var e=l(t.currentTarget);l(e).removeClass("hover")}var l=i(6);t.exports=n,n.prototype.init=function(){var t=this.galleryZoomSelector.map(function(selector){return selector+" .u-back-slide"}).join(", "),e=this.galleryZoomSelector.map(function(selector){return selector+" .u-back-image"}).join(", ");l("body").on("mousedown touchstart",t,a),l("body").on("mousemove touchmove",t,o),l("body").on("click mouseup mouseout touchend touchcancel",t,s),l(e).each(function(t,e){var url=e.getAttribute("src");l(e).parent().css("background-image","url("+url+")")})},window.ImageZoom=n},6147:function(t,e,i){"use strict";var n=i(6),TabsControl=i(134);window._npTabsInit=function(){function t(t){t.preventDefault(),t.stopPropagation();var link=n(t.currentTarget);new TabsControl(link).show()}n("body").on("click",".u-tab-link",t)},n(function(){window._npTabsInit()})},6148:function(t,e,i){"use strict";var n=i(6149);window._npLazyImages={setup:function(){window.lazySizesConfig=window.lazySizesConfig||{},window.lazySizesConfig.init=false,document.addEventListener("lazybeforeunveil",function(t){var el=t.target;if(el.matches("video")){var e=el.getAttribute("data-src"),i=el.querySelector("source");if(i&&e)i.setAttribute("src",e)}else{var n=el.getAttribute("data-bg");if(n){var list=cssBgParser.parseElementStyle(getComputedStyle(el));if(list.backgrounds.length)list.backgrounds[0].color="";list.backgrounds.push(new cssBgParser.Background({image:n})),el.style.backgroundImage=list.toString("image")}}})},init:function(){n.init()}},window._npLazyImages.setup(),$(function(){window._npLazyImages.init()})},6149:function(t,e,i){"use strict";!function(e,factory){var i=factory(e,e.document,Date);if(e.lazySizes=i,"object"==typeof t&&t.exports)t.exports=i}("undefined"!=typeof window?window:{},function t(e,i,n){var o,a;if(!function(){var t,i={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:true,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:true,ricTimeout:0,throttleDelay:125};a=e.lazySizesConfig||e.lazysizesConfig||{};for(t in i)if(!(t in a))a[t]=i[t]}(),!i||!i.getElementsByClassName)return{init:function(){},cfg:a,noSupport:true};var s=i.documentElement,l=e.HTMLPictureElement,u="addEventListener",f="getAttribute",c=e[u].bind(e),p=e.setTimeout,h=e.requestAnimationFrame||p,m=e.requestIdleCallback,v=/^picture$/i,g=["load","error","lazyincluded","_lazyloaded"],y={},w=Array.prototype.forEach,b=function(t,e){if(!y[e])y[e]=new RegExp("(\\s|^)"+e+"(\\s|$)");return y[e].test(t[f]("class")||"")&&y[e]},_=function(t,e){if(!b(t,e))t.setAttribute("class",(t[f]("class")||"").trim()+" "+e)},x=function(t,e){var i;if(i=b(t,e))t.setAttribute("class",(t[f]("class")||"").replace(i," "))},C=function(t,e,add){var i=add?u:"removeEventListener";if(add)C(t,e);g.forEach(function(n){t[i](n,e)})},k=function(t,e,n,a,s){var l=i.createEvent("Event");if(!n)n={};return n.instance=o,l.initEvent(e,!a,!s),l.detail=n,t.dispatchEvent(l),l},T=function(el,t){var i;if(!l&&(i=e.picturefill||a.pf)){if(t&&t.src&&!el[f]("srcset"))el.setAttribute("srcset",t.src);i({reevaluate:true,elements:[el]})}else if(t&&t.src)el.src=t.src},S=function(t,style){return(getComputedStyle(t,null)||{})[style]},A=function(t,e,i){for(i=i||t.offsetWidth;i49?function(){if(m(l,{timeout:s}),s!==a.ricTimeout)s=a.ricTimeout}:E(function(){p(l)},true);return function(t){var a;if(t=true===t)s=33;if(!e){if(e=true,a=o-(n.now()-i),a<0)a=0;if(t||a<9)u();else p(u,a)}}},L=function(t){var e,i,o=99,a=function(){e=null,t()},s=function(){var t=n.now()-i;if(t0,visible&&"visible"!=S(o,"overflow"))n=o.getBoundingClientRect(),visible=N>n.left&&Pn.top-1&&z500&&s.clientWidth>500?500:370:a.expand,o._defEx=y,w=y*a.expFactor,b=a.hFac,B=null,j2&&g>2&&!i.hidden)j=w,$=0;else if(g>1&&$>1&&X<6)j=y;else j=Z;if(v!==p)A=innerWidth+p*b,M=innerHeight+p,h=-1*p,v=p;if(rect=_[n].getBoundingClientRect(),(H=rect.bottom)>=h&&(z=rect.top)<=M&&(N=rect.right)>=h*b&&(P=rect.left)<=A&&(H||N||P||z)&&(a.loadHidden||G(_[n]))&&(l&&X<3&&!m&&(g<3||$<4)||Y(_[n],p))){if(ut(_[n]),c=true,X>9)break}else if(!c&&l&&!u&&X<4&&$<4&&g>2&&(t[0]||a.preloadAfterLoad)&&(t[0]||!m&&(H||N||P||z||"auto"!=_[n][f](a.sizesAttr))))u=t[0]||_[n]}else ut(_[n]);if(u&&!c)ut(u)}},tt=O(J),nt=function(t){var e=t.target;if(e._lazyCache)return delete e._lazyCache,void 0;K(t),_(e,a.loadedClass),x(e,a.loadingClass),C(e,rt),k(e,"lazyloaded")},ot=E(nt),rt=function(t){ot({target:t.target})},at=function(t,e){try{t.contentWindow.location.replace(e)}catch(i){t.src=e}},st=function(t){var e,i=t[f](a.srcsetAttr);if(e=a.customMedia[t[f]("data-media")||t[f]("media")])t.setAttribute("media",e);if(i)t.setAttribute("srcset",i)},lt=E(function(t,e,i,n,o){var s,l,u,c,h,g;if(!(h=k(t,"lazybeforeunveil",e)).defaultPrevented){if(n)if(i)_(t,a.autosizesClass);else t.setAttribute("sizes",n);if(l=t[f](a.srcsetAttr),s=t[f](a.srcAttr),o)u=t.parentNode,c=u&&v.test(u.nodeName||"");if(g=e.firesLoad||"src"in t&&(l||s||c),h={target:t},_(t,a.loadingClass),g)clearTimeout(m),m=p(K,2500),C(t,rt,true);if(c)w.call(u.getElementsByTagName("source"),st);if(l)t.setAttribute("srcset",l);else if(s&&!c)if(U.test(t.nodeName))at(t,s);else t.src=s;if(o&&(l||c))T(t,{src:s})}if(t._lazyRace)delete t._lazyRace;x(t,a.lazyClass),I(function(){var e=t.complete&&t.naturalWidth>1;if(!g||e){if(e)_(t,"ls-is-cached");nt(h),t._lazyCache=true,p(function(){if("_lazyCache"in t)delete t._lazyCache},9)}if("lazy"==t.loading)X--},true)}),ut=function(t){if(!t._lazyRace){var e,i=W.test(t.nodeName),n=i&&(t[f](a.sizesAttr)||t[f]("sizes")),o="auto"==n;if(!o&&l||!i||!t[f]("src")&&!t.srcset||t.complete||b(t,a.errorClass)||!b(t,a.lazyClass)){if(e=k(t,"lazyunveilread").detail,o)F.updateElem(t,true,t.offsetWidth);t._lazyRace=true,X++,lt(t,e,o,n,i)}}},ft=L(function(){a.loadMode=3,tt()}),ct=function(){if(3==a.loadMode)a.loadMode=2;ft()},dt=function(){if(!l){if(n.now()-y<999)return p(dt,999),void 0;l=true,a.loadMode=3,tt(),c("scroll",ct,true)}};return{_:function(){if(y=n.now(),o.elements=i.getElementsByClassName(a.lazyClass),t=i.getElementsByClassName(a.lazyClass+" "+a.preloadClass),c("scroll",tt,true),c("resize",tt,true),c("pageshow",function(t){if(t.persisted){var e=i.querySelectorAll("."+a.loadingClass);if(e.length&&e.forEach)h(function(){e.forEach(function(t){if(t.complete)ut(t)})})}}),e.MutationObserver)new MutationObserver(tt).observe(s,{childList:true,subtree:true,attributes:true});else s[u]("DOMNodeInserted",tt,true),s[u]("DOMAttrModified",tt,true),setInterval(tt,999);if(c("hashchange",tt,true),["focus","mouseover","click","load","transitionend","animationend"].forEach(function(t){i[u](t,tt,true)}),/d$|^c/.test(i.readyState))dt();else c("load",dt),i[u]("DOMContentLoaded",tt),p(dt,2e4);if(o.elements.length)J(),I._lsFlush();else tt()},checkElems:tt,unveil:ut,_aLSL:ct}}(),F=function(){var t,e=E(function(t,e,i,n){var o,a,s;if(t._lazysizesWidth=n,n+="px",t.setAttribute("sizes",n),v.test(e.nodeName||""))for(o=e.getElementsByTagName("source"),a=0,s=o.length;a=0?e:0},a=function(t){if(t)t.sort(function(t,e){if(o(t.content)=l())return true;else return false},c=function(t,settings){if(f()&&u(t.content,settings,true))return true;else return false},p=function(t,settings){if(t.length){var e=t[t.length-1];if(c(e,settings))return e;for(var i=t.length-1;i>=0;i--)if(u(t[i].content,settings))return t[i]}},h=function(nav,settings){if(settings.nested&&nav.parentNode){var t=nav.parentNode.closest("li");if(t)t.classList.remove(settings.nestedClass),h(t,settings)}},m=function(items,settings){if(items){var t=items.nav.closest("li");if(t)t.classList.remove(settings.navClass),items.content.classList.remove(settings.contentClass),h(t,settings),n("gumshoeDeactivate",t,{link:items.nav,content:items.content,settings:settings})}},v=function(nav,settings){if(settings.nested){var t=nav.parentNode.closest("li");if(t)t.classList.add(settings.nestedClass),v(t,settings)}},g=function(items,settings){if(items){var t=items.nav.closest("li");if(t)t.classList.add(settings.navClass),items.content.classList.add(settings.contentClass),v(t,settings),n("gumshoeActivate",t,{link:items.nav,content:items.content,settings:settings})}};return function(selector,n){var o={},s,l,u,f,settings;o.setup=function(){s=document.querySelectorAll(selector),l=[],Array.prototype.forEach.call(s,function(t){var e=document.getElementById(decodeURIComponent(t.hash.substr(1)));if(e)l.push({nav:t,content:e})}),a(l)},o.detect=function(){var t=p(l,settings);if(t){if(!u||t.content!==u.content)m(u,settings),g(t,settings),u=t}else if(u)m(u,settings),u=null};var c=function(){if(f)t.cancelAnimationFrame(f);f=t.requestAnimationFrame(o.detect)},h=function(){if(f)t.cancelAnimationFrame(f);f=t.requestAnimationFrame(function(){a(l),o.detect()})};return o.destroy=function(){if(u)m(u,settings);if(t.removeEventListener("scroll",c,false),settings.reflow)t.removeEventListener("resize",h,false);l=null,s=null,u=null,f=null,settings=null},function(){if(settings=i(e,n||{}),o.setup(),o.detect(),t.addEventListener("scroll",c,false),settings.reflow)t.addEventListener("resize",h,false)}(),o}})}).call(e,i(52))},6145:function(t,e,i){"use strict";var n=i(6),o=i(6146),HorizontalLayoutSlider=i(142);n(window).on("load",function(){setTimeout(function(){n(".u-gallery").removeClass("u-no-transition"),n(".u-layout-horizontal").each(function(){var gallery=n(this),slider=new HorizontalLayoutSlider(gallery,true);gallery.children(".u-gallery-nav").click(function(t){t.preventDefault();var e=n(t.currentTarget);slider.navigate(e)})})},250)}),n(function(){n("body").on("mouseenter",".u-gallery.u-no-transition",function(){n(this).closest(".u-gallery").removeClass("u-no-transition")}),new o([".u-gallery.u-product-zoom.u-layout-thumbnails",".u-gallery.u-product-zoom.u-layout-carousel"]).init()})},6146:function(t,e,i){"use strict";function n(t){this.galleryZoomSelector=t}function o(t){var e=t.currentTarget,i=l(e).closest(".u-gallery-item"),n=i.data("zoom_click"),o=e.getBoundingClientRect(),a=e.querySelector("img"),s=t.clientX,u=t.clientY,f=t.originalEvent.changedTouches;if(!n&&!f){l(e).addClass("hover");var c=s-o.x,p=u-o.y;requestAnimationFrame(function(){var t=c*(1-a.offsetWidth/e.offsetWidth),i=p*(1-a.offsetHeight/e.offsetHeight);a.style.left=t+"px",a.style.top=i+"px"})}}function a(t){var e=l(t.currentTarget);l(e).removeClass("hover"),l(e).closest(".u-gallery-item").data("zoom_click")}function s(t){var e=l(t.currentTarget);l(e).removeClass("hover")}var l=i(6);t.exports=n,n.prototype.init=function(){var t=this.galleryZoomSelector.map(function(selector){return selector+" .u-back-slide"}).join(", "),e=this.galleryZoomSelector.map(function(selector){return selector+" .u-back-image"}).join(", ");l("body").on("mousedown touchstart",t,a),l("body").on("mousemove touchmove",t,o),l("body").on("click mouseup mouseout touchend touchcancel",t,s),l(e).each(function(t,e){var url=e.getAttribute("src");l(e).parent().css("background-image","url("+url+")")})},window.ImageZoom=n},6147:function(t,e,i){"use strict";var n=i(6),TabsControl=i(134);window._npTabsInit=function(){function t(t){t.preventDefault(),t.stopPropagation();var link=n(t.currentTarget);new TabsControl(link).show()}n("body").on("click",".u-tab-link",t)},n(function(){window._npTabsInit()})},6148:function(t,e,i){"use strict";var n=i(6149);window._npLazyImages={setup:function(){window.lazySizesConfig=window.lazySizesConfig||{},window.lazySizesConfig.init=false,document.addEventListener("lazybeforeunveil",function(t){var el=t.target;if(el.matches("video")){var e=el.getAttribute("data-src"),i=el.querySelector("source");if(i&&e)i.setAttribute("src",e)}else{var n=el.getAttribute("data-bg");if(n){var list=cssBgParser.parseElementStyle(getComputedStyle(el));if(list.backgrounds.length)list.backgrounds[0].color="";list.backgrounds.push(new cssBgParser.Background({image:n})),el.style.backgroundImage=list.toString("image")}}})},init:function(){n.init()}},window._npLazyImages.setup(),$(function(){window._npLazyImages.init()})},6149:function(t,e,i){"use strict";!function(e,factory){var i=factory(e,e.document,Date);if(e.lazySizes=i,"object"==typeof t&&t.exports)t.exports=i}("undefined"!=typeof window?window:{},function t(e,i,n){var o,a;if(!function(){var t,i={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:true,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:true,ricTimeout:0,throttleDelay:125};a=e.lazySizesConfig||e.lazysizesConfig||{};for(t in i)if(!(t in a))a[t]=i[t]}(),!i||!i.getElementsByClassName)return{init:function(){},cfg:a,noSupport:true};var s=i.documentElement,l=e.HTMLPictureElement,u="addEventListener",f="getAttribute",c=e[u].bind(e),p=e.setTimeout,h=e.requestAnimationFrame||p,m=e.requestIdleCallback,v=/^picture$/i,g=["load","error","lazyincluded","_lazyloaded"],y={},w=Array.prototype.forEach,b=function(t,e){if(!y[e])y[e]=new RegExp("(\\s|^)"+e+"(\\s|$)");return y[e].test(t[f]("class")||"")&&y[e]},_=function(t,e){if(!b(t,e))t.setAttribute("class",(t[f]("class")||"").trim()+" "+e)},x=function(t,e){var i;if(i=b(t,e))t.setAttribute("class",(t[f]("class")||"").replace(i," "))},C=function(t,e,add){var i=add?u:"removeEventListener";if(add)C(t,e);g.forEach(function(n){t[i](n,e)})},k=function(t,e,n,a,s){var l=i.createEvent("Event");if(!n)n={};return n.instance=o,l.initEvent(e,!a,!s),l.detail=n,t.dispatchEvent(l),l},T=function(el,t){var i;if(!l&&(i=e.picturefill||a.pf)){if(t&&t.src&&!el[f]("srcset"))el.setAttribute("srcset",t.src);i({reevaluate:true,elements:[el]})}else if(t&&t.src)el.src=t.src},S=function(t,style){return(getComputedStyle(t,null)||{})[style]},A=function(t,e,i){for(i=i||t.offsetWidth;i49?function(){if(m(l,{timeout:s}),s!==a.ricTimeout)s=a.ricTimeout}:E(function(){p(l)},true);return function(t){var a;if(t=true===t)s=33;if(!e){if(e=true,a=o-(n.now()-i),a<0)a=0;if(t||a<9)u();else p(u,a)}}},L=function(t){var e,i,o=99,a=function(){e=null,t()},s=function(){var t=n.now()-i;if(t0,visible&&"visible"!=S(o,"overflow"))n=o.getBoundingClientRect(),visible=N>n.left&&Pn.top-1&&z500&&s.clientWidth>500?500:370:a.expand,o._defEx=y,w=y*a.expFactor,b=a.hFac,B=null,j2&&g>2&&!i.hidden)j=w,$=0;else if(g>1&&$>1&&X<6)j=y;else j=Z;if(v!==p)A=innerWidth+p*b,M=innerHeight+p,h=-1*p,v=p;if(rect=_[n].getBoundingClientRect(),(H=rect.bottom)>=h&&(z=rect.top)<=M&&(N=rect.right)>=h*b&&(P=rect.left)<=A&&(H||N||P||z)&&(a.loadHidden||G(_[n]))&&(l&&X<3&&!m&&(g<3||$<4)||Y(_[n],p))){if(ut(_[n]),c=true,X>9)break}else if(!c&&l&&!u&&X<4&&$<4&&g>2&&(t[0]||a.preloadAfterLoad)&&(t[0]||!m&&(H||N||P||z||"auto"!=_[n][f](a.sizesAttr))))u=t[0]||_[n]}else ut(_[n]);if(u&&!c)ut(u)}},tt=O(J),nt=function(t){var e=t.target;if(e._lazyCache)return delete e._lazyCache,void 0;K(t),_(e,a.loadedClass),x(e,a.loadingClass),C(e,rt),k(e,"lazyloaded")},ot=E(nt),rt=function(t){ot({target:t.target})},at=function(t,e){try{t.contentWindow.location.replace(e)}catch(i){t.src=e}},st=function(t){var e,i=t[f](a.srcsetAttr);if(e=a.customMedia[t[f]("data-media")||t[f]("media")])t.setAttribute("media",e);if(i)t.setAttribute("srcset",i)},lt=E(function(t,e,i,n,o){var s,l,u,c,h,g;if(!(h=k(t,"lazybeforeunveil",e)).defaultPrevented){if(n)if(i)_(t,a.autosizesClass);else t.setAttribute("sizes",n);if(l=t[f](a.srcsetAttr),s=t[f](a.srcAttr),o)u=t.parentNode,c=u&&v.test(u.nodeName||"");if(g=e.firesLoad||"src"in t&&(l||s||c),h={target:t},_(t,a.loadingClass),g)clearTimeout(m),m=p(K,2500),C(t,rt,true);if(c)w.call(u.getElementsByTagName("source"),st);if(l)t.setAttribute("srcset",l);else if(s&&!c)if(U.test(t.nodeName))at(t,s);else t.src=s;if(o&&(l||c))T(t,{src:s})}if(t._lazyRace)delete t._lazyRace;x(t,a.lazyClass),I(function(){var e=t.complete&&t.naturalWidth>1;if(!g||e){if(e)_(t,"ls-is-cached");nt(h),t._lazyCache=true,p(function(){if("_lazyCache"in t)delete t._lazyCache},9)}if("lazy"==t.loading)X--},true)}),ut=function(t){if(!t._lazyRace){var e,i=W.test(t.nodeName),n=i&&(t[f](a.sizesAttr)||t[f]("sizes")),o="auto"==n;if(!o&&l||!i||!t[f]("src")&&!t.srcset||t.complete||b(t,a.errorClass)||!b(t,a.lazyClass)){if(e=k(t,"lazyunveilread").detail,o)F.updateElem(t,true,t.offsetWidth);t._lazyRace=true,X++,lt(t,e,o,n,i)}}},ft=L(function(){a.loadMode=3,tt()}),ct=function(){if(3==a.loadMode)a.loadMode=2;ft()},dt=function(){if(!l){if(n.now()-y<999)return p(dt,999),void 0;l=true,a.loadMode=3,tt(),c("scroll",ct,true)}};return{_:function(){if(y=n.now(),o.elements=i.getElementsByClassName(a.lazyClass),t=i.getElementsByClassName(a.lazyClass+" "+a.preloadClass),c("scroll",tt,true),c("resize",tt,true),c("pageshow",function(t){if(t.persisted){var e=i.querySelectorAll("."+a.loadingClass);if(e.length&&e.forEach)h(function(){e.forEach(function(t){if(t.complete)ut(t)})})}}),e.MutationObserver)new MutationObserver(tt).observe(s,{childList:true,subtree:true,attributes:true});else s[u]("DOMNodeInserted",tt,true),s[u]("DOMAttrModified",tt,true),setInterval(tt,999);if(c("hashchange",tt,true),["focus","mouseover","click","load","transitionend","animationend"].forEach(function(t){i[u](t,tt,true)}),/d$|^c/.test(i.readyState))dt();else c("load",dt),i[u]("DOMContentLoaded",tt),p(dt,2e4);if(o.elements.length)J(),I._lsFlush();else tt()},checkElems:tt,unveil:ut,_aLSL:ct}}(),F=function(){var t,e=E(function(t,e,i,n){var o,a,s;if(t._lazysizesWidth=n,n+="px",t.setAttribute("sizes",n),v.test(e.nodeName||""))for(o=e.getElementsByTagName("source"),a=0,s=o.length;a