(window.blocksyJsonP=window.blocksyJsonP||[]).push([[11],{34:function(t,e,n){"use strict";n.r(e);const o=(t,e)=>t.getAttribute("data-"+e),s=t=>"true"===o(t,"was-processed"),i=function(t){return t.getBoundingClientRect().top+window.pageYOffset-t.ownerDocument.documentElement.clientTop},l=function(t){return t.getBoundingClientRect().left+window.pageXOffset-t.ownerDocument.documentElement.clientLeft};function a(t,e,n){return!(function(t,e,n){return(e===window?window.innerHeight+window.pageYOffset:i(e)+e.offsetHeight)<=i(t)-n}(t,e,n)||function(t,e,n){return(e===window?window.pageYOffset:i(e))>=i(t)+n+t.offsetHeight}(t,e,n)||function(t,e,n){const o=window.innerWidth;return(e===window?o+window.pageXOffset:l(e)+o)<=l(t)-n}(t,e,n)||function(t,e,n){return(e===window?window.pageXOffset:l(e))>=l(t)+n+t.offsetWidth}(t,e,n))}const r=function(t,e){var n;let o=new t(e);try{n=new CustomEvent("LazyLoad::Initialized",{detail:{instance:o}})}catch(t){(n=document.createEvent("CustomEvent")).initCustomEvent("LazyLoad::Initialized",!1,!1,{instance:o})}window.dispatchEvent(n)};const c=(t,e)=>e?t.replace(/\.(jpe?g|png)/gi,".webp"):t,d="undefined"!=typeof window,u=d&&!("onscroll"in window)||/(gle|ing|ro)bot|crawl|spider/i.test(navigator.userAgent),_=d&&"classList"in document.createElement("p"),h=d&&(!(!(g=document.createElement("canvas")).getContext||!g.getContext("2d"))&&0===g.toDataURL("image/webp").indexOf("data:image/webp"));var g;const p=(t,e)=>{_?t.classList.add(e):t.className+=(t.className?" ":"")+e},f=function(t,e,n,s){for(let i,l=0;i=t.children[l];l+=1)if("SOURCE"===i.tagName){let t=o(i,n);m(i,e,t,s)}},m=function(t,e,n,o){n&&t.setAttribute(e,c(n,o))},w={IMG:(t,e)=>{const n=h&&e.to_webp,s=e.data_srcset,i=t.parentNode;i&&"PICTURE"===i.tagName&&f(i,"srcset",s,n);const l=o(t,e.data_sizes);m(t,"sizes",l);const a=o(t,s);m(t,"srcset",a,n);const r=o(t,e.data_src);m(t,"src",r,n)},IFRAME:(t,e)=>{const n=o(t,e.data_src);m(t,"src",n)},VIDEO:(t,e)=>{const n=e.data_src,s=o(t,n);f(t,"src",n),m(t,"src",s),t.load()}},b=(t,e)=>{const n=e._settings,s=t.tagName,i=w[s];if(i)return i(t,n),e._updateLoadingCount(1),void(e._elements=(l=e._elements,a=t,l.filter(t=>t!==a)));var l,a;((t,e)=>{const n=h&&e.to_webp,s=o(t,e.data_src),i=o(t,e.data_bg);if(s){let e=c(s,n);t.style.backgroundImage=`url("${e}")`}if(i){let e=c(i,n);t.style.backgroundImage=e}})(t,n)},v=function(t,e){t&&t(e)},E=(t,e,n)=>{t.addEventListener(e,n)},L=(t,e,n)=>{t.removeEventListener(e,n)},T=(t,e,n)=>{L(t,"load",e),L(t,"loadeddata",e),L(t,"error",n)},S=function(t,e,n){var o=n._settings;const s=e?o.class_loaded:o.class_error,i=e?o.callback_load:o.callback_error,l=t.target;((t,e)=>{_?t.classList.remove(e):t.className=t.className.replace(new RegExp("(^|\\s+)"+e+"(\\s+|$)")," ").replace(/^\s+/,"").replace(/\s+$/,"")})(l,o.class_loading),p(l,s),v(i,l),n._updateLoadingCount(-1)},y=(t,e)=>{const n=s=>{S(s,!0,e),T(t,n,o)},o=s=>{S(s,!1,e),T(t,n,o)};((t,e,n)=>{E(t,"load",e),E(t,"loadeddata",e),E(t,"error",n)})(t,n,o)},H=["IMG","IFRAME","VIDEO"];const k=function(t){this._settings=Object.assign({},{elements_selector:"img",container:window,threshold:300,throttle:150,data_src:"src",data_srcset:"srcset",data_sizes:"sizes",data_bg:"bg",class_loading:"loading",class_loaded:"loaded",class_error:"error",class_initial:"initial",skip_invisible:!0,callback_load:null,callback_error:null,callback_set:null,callback_enter:null,callback_finish:null,to_webp:!1},t),this._loadingCount=0,this._queryOriginNode=this._settings.container===window?document:this._settings.container,this._previousLoopTime=0,this._loopTimeout=null,this._boundHandleScroll=this.handleScroll.bind(this),this._isFirstLoop=!0,window.addEventListener("resize",this._boundHandleScroll),this.update()};k.prototype={_loopThroughElements:function(t){const e=this._settings,n=this._elements,o=n?n.length:0;let s,i=[],l=this._isFirstLoop;if(l&&(this._isFirstLoop=!1),0!==o){for(s=0;s{for(;e.length;)t.splice(e.pop(),1)})(n,i)}else this._stopScrollHandler()},_startScrollHandler:function(){this._isHandlingScroll||(this._isHandlingScroll=!0,this._settings.container.addEventListener("scroll",this._boundHandleScroll))},_stopScrollHandler:function(){this._isHandlingScroll&&(this._isHandlingScroll=!1,this._settings.container.removeEventListener("scroll",this._boundHandleScroll))},_updateLoadingCount:function(t){this._loadingCount+=t,0===this._elements.length&&0===this._loadingCount&&v(this._settings.callback_finish)},handleScroll:function(){const t=this._settings.throttle;if(0!==t){let e=Date.now(),n=t-(e-this._previousLoopTime);n<=0||n>t?(this._loopTimeout&&(clearTimeout(this._loopTimeout),this._loopTimeout=null),this._previousLoopTime=e,this._loopThroughElements()):this._loopTimeout||(this._loopTimeout=setTimeout(function(){this._previousLoopTime=Date.now(),this._loopTimeout=null,this._loopThroughElements()}.bind(this),n))}else this._loopThroughElements()},loadAll:function(){this._loopThroughElements(!0)},update:function(t){const e=this._settings,n=t||this._queryOriginNode.querySelectorAll(e.elements_selector);this._elements=(t=>t.filter(t=>!s(t)))(Array.prototype.slice.call(n)),u?this.loadAll():(this._loopThroughElements(),this._startScrollHandler())},destroy:function(){window.removeEventListener("resize",this._boundHandleScroll),this._loopTimeout&&(clearTimeout(this._loopTimeout),this._loopTimeout=null),this._stopScrollHandler(),this._elements=null,this._queryOriginNode=null,this._settings=null},load:function(t,e){!function(t,e,n){var o=e._settings;!n&&s(t)||(v(o.callback_enter,t),H.indexOf(t.tagName)>-1&&(y(t,e),p(t,o.class_loading)),b(t,e),(t=>{((t,e,n)=>{var o="data-"+e;null!==n?t.setAttribute(o,n):t.removeAttribute(o)})(t,"was-processed","true")})(t),v(o.callback_set,t))}(t,this,e)}},d&&function(t,e){if(e)if(e.length)for(let n,o=0;n=e[o];o+=1)r(t,n);else r(t,e)}(k,window.lazyLoadOptions),e.default=k}}]);