/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).Parallax=e();}(this,(function(){"use strict";var t=Object.defineProperty,e=(e,n,i)=>(((e,n,i)=>{n in e?t(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;})(e,"symbol"!=typeof n?n+"":n,i),i);const n=()=>{const {jQuery:t}=window;return t&&!document.body.hasAttribute("data-mdb-no-jquery")?t:null;};document.documentElement.dir;const i=(()=>{const t={};let e=1;return {set(n,i,s){void 0===n[i]&&(n[i]={key:i,id:e},e++),t[n[i].id]=s;},get(e,n){if(!e||void 0===e[n])return null;const i=e[n];return i.key===n?t[i.id]:null;},delete(e,n){if(void 0===e[n])return;const i=e[n];i.key===n&&(delete t[i.id],delete e[n]);}};})(),s={setData(t,e,n){i.set(t,e,n);},getData:(t,e)=>i.get(t,e),removeData(t,e){i.delete(t,e);}};function o(t){return "true"===t||"false"!==t&&(t===Number(t).toString()?Number(t):""===t||"null"===t?null:t);}function r(t){return t.replace(/[A-Z]/g,((t)=>`-${t.toLowerCase()}`));}const a={setDataAttribute(t,e,n){t.setAttribute(`data-mdb-${r(e)}`,n);},removeDataAttribute(t,e){t.removeAttribute(`data-mdb-${r(e)}`);},getDataAttributes(t){if(!t)return {};const e={...t.dataset};return Object.keys(e).filter(((t)=>t.startsWith("mdb"))).forEach(((t)=>{let n=t.replace(/^mdb/,"");n=n.charAt(0).toLowerCase()+n.slice(1,n.length),e[n]=o(e[t]);})),e;},getDataAttribute:(t,e)=>o(t.getAttribute(`data-mdb-${r(e)}`)),offset(t){const e=t.getBoundingClientRect();return {top:e.top+document.body.scrollTop,left:e.left+document.body.scrollLeft};},position:(t)=>({top:t.offsetTop,left:t.offsetLeft}),style(t,e){Object.assign(t.style,e);},toggleClass(t,e){t&&(t.classList.contains(e)?t.classList.remove(e):t.classList.add(e));},addClass(t,e){t.classList.contains(e)||t.classList.add(e);},addStyle(t,e){Object.keys(e).forEach(((n)=>{t.style[n]=e[n];}));},removeClass(t,e){t.classList.contains(e)&&t.classList.remove(e);},hasClass:(t,e)=>t.classList.contains(e)};let l=Element.prototype.querySelectorAll,h=Element.prototype.querySelector;const c=(()=>{const t=new CustomEvent("Bootstrap",{cancelable:!0}),e=document.createElement("div");return e.addEventListener("Bootstrap",(()=>null)),t.preventDefault(),e.dispatchEvent(t),t.defaultPrevented;})(),u=/:scope\b/;(()=>{const t=document.createElement("div");try{t.querySelectorAll(":scope *");}catch(e){return !1;}return !0;})()||(l=function(t){if(!u.test(t))return this.querySelectorAll(t);const e=Boolean(this.id);e||(this.id=((t)=>{do t+=Math.floor(1e6*Math.random());while(document.getElementById(t));return t;})("scope"));let n=null;try{t=t.replace(u,`#${this.id}`),n=this.querySelectorAll(t);}finally{e||this.removeAttribute("id");}return n;},h=function(t){if(!u.test(t))return this.querySelector(t);const e=d.call(this,t);return void 0!==e[0]?e[0]:null;});const d=l,m=h,_=n(),p=/[^.]*(?=\..*)\.|.*/,g=/\..*/,f=/::\d+$/,v={};let y=1;const b={mouseenter:"mouseover",mouseleave:"mouseout"},w=["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"];function x(t,e){return e&&`${e}::${y++}`||t.uidEvent||y++;}function E(t){const e=x(t);return t.uidEvent=e,v[e]=v[e]||{},v[e];}function T(t,e,n=null){const i=Object.keys(t);for(let s=0,o=i.length;s-1||(o=t),[i,s,o];}function O(t,e,n,i,s){if("string"!=typeof e||!t)return;n||(n=i,i=null);const [o,r,a]=C(e,n,i),l=E(t),h=l[a]||(l[a]={}),c=T(h,r,o?n:null);if(c)return void (c.oneOff=c.oneOff&&s);const u=x(r,e.replace(p,"")),d=o?function(t,e,n){return function i(s){const o=t.querySelectorAll(e);for(let {target:e}=s;e&&e!==this;e=e.parentNode){for(let r=o.length;r--;"")if(o[r]===e)return i.oneOff&&A.off(t,s.type,n),n.apply(e,[s]);}return null;};}(t,n,i):function(t,e){return function n(i){return n.oneOff&&A.off(t,i.type,e),e.apply(t,[i]);};}(t,n);d.delegationSelector=o?n:null,d.originalHandler=r,d.oneOff=s,d.uidEvent=u,h[u]=d,t.addEventListener(a,d,o);}function S(t,e,n,i,s){const o=T(e[n],i,s);o&&(t.removeEventListener(n,o,Boolean(s)),delete e[n][o.uidEvent]);}const A={on(t,e,n,i){O(t,e,n,i,!1);},one(t,e,n,i){O(t,e,n,i,!0);},off(t,e,n,i){if("string"!=typeof e||!t)return;const [s,o,r]=C(e,n,i),a=r!==e,l=E(t),h="."===e.charAt(0);if(void 0!==o){if(!l||!l[r])return;return void S(t,l,r,o,s?n:null);}h&&Object.keys(l).forEach(((n)=>{!function(t,e,n,i){const s=e[n]||{};Object.keys(s).forEach(((o)=>{if(o.indexOf(i)>-1){const i=s[o];S(t,e,n,i.originalHandler,i.delegationSelector);}}));}(t,l,n,e.slice(1));}));const c=l[r]||{};Object.keys(c).forEach(((n)=>{const i=n.replace(f,"");if(!a||e.indexOf(i)>-1){const e=c[n];S(t,l,r,e.originalHandler,e.delegationSelector);}}));},trigger(t,e,n){if("string"!=typeof e||!t)return null;const i=e.replace(g,""),s=e!==i,o=w.indexOf(i)>-1;let r,a=!0,l=!0,h=!1,u=null;return s&&_&&(r=_.Event(e,n),_(t).trigger(r),a=!r.isPropagationStopped(),l=!r.isImmediatePropagationStopped(),h=r.isDefaultPrevented()),o?(u=document.createEvent("HTMLEvents"),u.initEvent(i,a,!0)):u=new CustomEvent(e,{bubbles:a,cancelable:!0}),void 0!==n&&Object.keys(n).forEach(((t)=>{Object.defineProperty(u,t,{get:()=>n[t]});})),h&&(u.preventDefault(),c||Object.defineProperty(u,"defaultPrevented",{get:()=>!0})),l&&t.dispatchEvent(u),u.defaultPrevented&&void 0!==r&&r.preventDefault(),u;}},H={closest:(t,e)=>t.closest(e),matches:(t,e)=>t.matches(e),find:(t,e=document.documentElement)=>[].concat(...d.call(e,t)),findOne:(t,e=document.documentElement)=>m.call(e,t),children:(t,e)=>[].concat(...t.children).filter(((t)=>t.matches(e))),parents(t,e){const n=[];let i=t.parentNode;for(;i&&i.nodeType===Node.ELEMENT_NODE&&3!==i.nodeType;)this.matches(i,e)&&n.push(i),i=i.parentNode;return n;},prev(t,e){let n=t.previousElementSibling;for(;n;){if(n.matches(e))return [n];n=n.previousElementSibling;}return [];},next(t,e){let n=t.nextElementSibling;for(;n;){if(this.matches(n,e))return [n];n=n.nextElementSibling;}return [];}},$="parallax",I="mdb.parallax",L=`${$}-slider`,D=`.${L}`,V=`.${$}-content`,j={imageSrc:"",direction:"up",delay:.4,scale:1.3,transition:"cubic-bezier(0,0,0,1)",maxTransition:0,maxHeight:0,horizontalAlignment:"center",verticalAlignment:"center",overflow:!1},P={imageSrc:"string",direction:"string",delay:"number",scale:"number",transition:"string",maxTransition:"number",maxHeight:"number",horizontalAlignment:"string",verticalAlignment:"string",overflow:"boolean"};class R{constructor(t,n={}){e(this,"_handleFrameLoop",(()=>{this._getViewportOffsets(),this._lastViewportPosition!==this._viewportTop?(this._getElementOffset(),this._translateElement(),this._frameID=window.requestAnimationFrame(this._handleFrameLoop),this._lastViewportPosition=this._viewportTop):this._frameID=window.requestAnimationFrame(this._handleFrameLoop);})),this._element=t,this._options=this._getConfig(n),this._image=null,this._imageContainer=null,this._contentContainer=null,this._isInit=!1,this._zIndex=-100,this._isVisible=!1,this._viewportTop=null,this._viewportHeight=null,this._viewportBottom=null,this._elementBottom=null,this._elementHeight=null,this._elementTop=null,this._lastViewportPosition=-1,this._frameID=null,this._resizeWindowHandler=()=>this._refresh(),this._element&&s.setData(t,I,this),this._createImageWrapper();}dispose(){A.off(window,"resize",this._resizeWindowHandler),window.cancelAnimationFrame(this._frameID),this._disposeContainers(),s.removeData(this._element,I),this._element=null;}_getConfig(t){const e=a.getDataAttributes(this._element);return t={...j,...e,...t},((t,e,n)=>{Object.keys(n).forEach(((i)=>{const s=n[i],o=e[i],r=o&&((a=o)[0]||a).nodeType?"element":((t)=>null==t?`${t}`:{}.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase())(o);var a;if(!new RegExp(s).test(r))throw new Error(`${t.toUpperCase()}: Option "${i}" provided type "${r}" but expected type "${s}".`);}));})($,t,P),t;}_init(){this._isInit||(this._getTranslateValue(),this._translate(),this._handleFrameLoop(),this._listenToWindowResize(),this._isInit=!0);}_translateElement(){if(!this._isVisible)return;this._getTranslateValue()&&this._translate();}_createImageWrapper(){if(!this._options.imageSrc)return;const t=document.createElement("div"),e=document.createElement("img");e.setAttribute("src",this._options.imageSrc),e.setAttribute("alt",""),a.addStyle(this._element,{position:"relative"}),a.addClass(t,L),a.addStyle(t,{position:"absolute",top:"0px",left:"0px",overflow:""+(!1===this._options.overflow?"hidden":"")}),t.appendChild(e),this._element.insertBefore(t,this._element.firstChild),A.on(e,"load",(()=>{setTimeout((()=>{this._handleImageLoaded(e);}),100);}));}_handleImageLoaded(t){this._image=t,this._setContainersDimensions(),this._getMaxTranslateRange(),this._setImageStyles(),this._getViewportOffsets(),this._getElementOffset(),this._imageIntersectionObserver(),this._init();}_disposeContainers(){null!==this._contentContainer&&(a.addStyle(this._contentContainer,{height:"auto"}),this._contentContainer=null),this._imageContainer&&(this._imageContainer.parentNode.removeChild(this._imageContainer),this._imageContainer=null);}_setContainersDimensions(){const t=this._options.maxHeight>0&&this._options.maxHeight<=this._image.naturalHeight?this._options.maxHeight:this._image.naturalHeight;a.addStyle(this._element,{height:`${t}px`,width:"100%"}),this._imageContainer=H.findOne(D,this._element),a.addStyle(this._imageContainer,{height:`${t}px`,width:"100%"}),this._contentContainer=H.findOne(V,this._element),null!==this._contentContainer&&a.addStyle(this._contentContainer,{height:"100%"}),this._getMaxTranslateRange();}_setImageStyles(){let t=0;this._options.maxHeight>0&&this._options.maxHeight<=this._image.naturalHeight&&("top"===this._options.verticalAlignment?t="0px":"center"===this._options.verticalAlignment?t=`${Number(this._maxTranslateRange.y)+this._image.naturalHeight/-2}px`:"bottom"===this._options.verticalAlignment&&(t=this._maxTranslateRange.y/2+this._image.naturalHeight/-2+"px")),this._options.delay>0&&a.addStyle(this._image,{transition:`transform ${this._options.delay}s ${this._options.transition}`}),!1===this._options.overflow&&a.addStyle(this._image,{transform:`scale(${this._options.scale})`}),a.addStyle(this._image,{willChange:"transform",position:"absolute",top:t}),a.addStyle(this._image,{display:"block",opacity:1,transform:"scale(1)"});}_getViewportOffsets(){this._viewportTop=window.scrollY,this._viewportHeight=document.documentElement.clientHeight,this._viewportBottom=this._viewportTop+this._viewportHeight;}_getElementOffset(){const t=this._element.getBoundingClientRect();this._elementHeight=t.height,this._elementTop=t.top+this._viewportTop,this._elementBottom=this._elementHeight+this._elementTop;}_imageIntersectionObserver(){this._observer=new IntersectionObserver(this._setIsVisible.bind(this),{root:null,threshold:0}),this._observer.observe(this._element);}_setIsVisible(t){t.forEach(((t)=>{t.isIntersecting?this._isVisible=!0:this._isVisible=!1;}));}_createThreshold(){const t=[];for(let e=1;e<=this._elementHeight;e++){const n=e/this._elementHeight;t.push(n);}return t;}_getMaxTranslateRange(){this._maxTranslateRange={x:(this._image.naturalWidth*this._options.scale-this._image.naturalWidth).toFixed(0),y:(this._image.naturalHeight*this._options.scale-this._image.naturalHeight).toFixed(0)};}_getPercentage(){let t=((this._viewportBottom-this._elementTop)/((this._viewportHeight+this._elementHeight)/100)).toFixed(1);t=Math.min(100,Math.max(0,t)),this._percentage=t;}_getTranslateValue(){return this._getPercentage(),0!==this._options.maxTransition&&this._percentage>this._options.maxTransition&&(this._percentage=this._options.maxTransition),this._previousPercentage!==this._percentage&&(this._maxTranslateRange||this._getMaxTranslateRange(),this._translateValue={x:(this._percentage/100*this._maxTranslateRange.x-this._maxTranslateRange.x/2).toFixed(0),y:(this._percentage/100*this._maxTranslateRange.y-this._maxTranslateRange.y/2).toFixed(0)},this._previousTranslateValue!==this._translateValue&&(this._previousPercentage=this._percentage,this._previousTranslateValue=this._translateValue,!0));}_translate(){let t,e,n=0,i=0;(this._options.direction.includes("left")||this._options.direction.includes("right"))&&(i=`${this._options.direction.includes("left")?-1*this._translateValue.y:this._translateValue.y}px`),(this._options.direction.includes("up")||this._options.direction.includes("down"))&&(n=`${this._options.direction.includes("up")?-1*this._translateValue.y:this._translateValue.y}px`),t=!1===this._options.overflow?`translate3d(${i}, ${n}, 0) scale(${this._options.scale})`:`translate3d(${i}, ${n}, 0)`,"left"===this._options.horizontalAlignment?e="translateX(10%)":"right"===this._options.horizontalAlignment?e="translateX(-10%)":"center"===this._options.horizontalAlignment&&(e="translateX(0%)"),a.addStyle(this._image,{transform:t+e});}_refresh(){this._getViewportOffsets(),this._getElementOffset(),this._getMaxTranslateRange(this._image.naturalHeight),this._lastViewportPosition=-1,this._translate();}_listenToWindowResize(){A.on(window,"resize",this._resizeWindowHandler);}static get NAME(){return $;}static jQueryInterface(t,e){return this.each((function(){let n=s.getData(this,I);const i="object"==typeof t&&t;if((n||!/dispose/.test(t))&&(n||(n=new R(this,i)),"string"==typeof t)){if(void 0===n[t])throw new TypeError(`No method named "${t}"`);n[t](e);}}));}static getInstance(t){return s.getData(t,I);}static init(t){let e=R.getInstance(t);return e||(e=new R(t)),e;}}var k;return H.find("[data-mdb-parallax-init]").forEach(((t)=>{let e=R.getInstance(t);return e||(e=new R(t)),e;})),k=()=>{const t=n();if(t){const e=t.fn[$];t.fn[$]=R.jQueryInterface,t.fn[$].Constructor=R,t.fn[$].noConflict=()=>(t.fn[$]=e,R.jQueryInterface);}},"loading"===document.readyState?document.addEventListener("DOMContentLoaded",k):k(),R;}));; !function(t,e){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(i){return e(t,i);}):"object"==typeof module&&module.exports?module.exports=e(t,require("jquery")):t.jQueryBridget=e(t,t.jQuery);}(window,function(t,e){"use strict";function i(i,r,a){function h(t,e,n){var o,r="$()."+i+'("'+e+'")';return t.each(function(t,h){var u=a.data(h,i);if(!u)return void s(i+" not initialized. Cannot call methods, i.e. "+r);var d=u[e];if(!d||"_"==e.charAt(0))return void s(r+" is not a valid method");var l=d.apply(u,n);o=void 0===o?l:o;}),void 0!==o?o:t;}function u(t,e){t.each(function(t,n){var o=a.data(n,i);o?(o.option(e),o._init()):(o=new r(n,e),a.data(n,i,o));});}a=a||e||t.jQuery,a&&(r.prototype.option||(r.prototype.option=function(t){a.isPlainObject(t)&&(this.options=a.extend(!0,this.options,t));}),a.fn[i]=function(t){if("string"==typeof t){var e=o.call(arguments,1);return h(this,t,e);}return u(this,t),this;},n(a));}function n(t){!t||t&&t.bridget||(t.bridget=i);}var o=Array.prototype.slice,r=t.console,s="undefined"==typeof r?function(){}:function(t){r.error(t);};return n(e||t.jQuery),i;}),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e();}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return -1==n.indexOf(e)&&n.push(e),this;}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{},n=i[t]=i[t]||{};return n[e]=!0,this;}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexOf(e);return -1!=n&&i.splice(n,1),this;}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var n=this._onceEvents&&this._onceEvents[t],o=0;oe;e++){var i=h[e];t[i]=0;}return t;}function n(t){var e=getComputedStyle(t);return e||a("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),e;}function o(){if(!d){d=!0;var e=document.createElement("div");e.style.width="200px",e.style.padding="1px 2px 3px 4px",e.style.borderStyle="solid",e.style.borderWidth="1px 2px 3px 4px",e.style.boxSizing="border-box";var i=document.body||document.documentElement;i.appendChild(e);var o=n(e);s=200==Math.round(t(o.width)),r.isBoxSizeOuter=s,i.removeChild(e);}}function r(e){if(o(),"string"==typeof e&&(e=document.querySelector(e)),e&&"object"==typeof e&&e.nodeType){var r=n(e);if("none"==r.display)return i();var a={};a.width=e.offsetWidth,a.height=e.offsetHeight;for(var d=a.isBorderBox="border-box"==r.boxSizing,l=0;u>l;l++){var c=h[l],f=r[c],m=parseFloat(f);a[c]=isNaN(m)?0:m;}var p=a.paddingLeft+a.paddingRight,g=a.paddingTop+a.paddingBottom,y=a.marginLeft+a.marginRight,v=a.marginTop+a.marginBottom,_=a.borderLeftWidth+a.borderRightWidth,z=a.borderTopWidth+a.borderBottomWidth,E=d&&s,b=t(r.width);b!==!1&&(a.width=b+(E?0:p+_));var x=t(r.height);return x!==!1&&(a.height=x+(E?0:g+z)),a.innerWidth=a.width-(p+_),a.innerHeight=a.height-(g+z),a.outerWidth=a.width+y,a.outerHeight=a.height+v,a;}}var s,a="undefined"==typeof console?e:function(t){console.error(t);},h=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],u=h.length,d=!1;return r;}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",e):"object"==typeof module&&module.exports?module.exports=e():t.matchesSelector=e();}(window,function(){"use strict";var t=function(){var t=window.Element.prototype;if(t.matches)return "matches";if(t.matchesSelector)return "matchesSelector";for(var e=["webkit","moz","ms","o"],i=0;is?"round":"floor";r=Math[a](r),this.cols=Math.max(r,1);},n.getContainerWidth=function(){var t=this._getOption("fitWidth"),i=t?this.element.parentNode:this.element,n=e(i);this.containerWidth=n&&n.innerWidth;},n._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth%this.columnWidth,i=e&&1>e?"round":"ceil",n=Math[i](t.size.outerWidth/this.columnWidth);n=Math.min(n,this.cols);for(var o=this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition",r=this[o](n,t),s={x:this.columnWidth*r.col,y:r.y},a=r.y+t.size.outerHeight,h=n+r.col,u=r.col;h>u;u++)this.colYs[u]=a;return s;},n._getTopColPosition=function(t){var e=this._getTopColGroup(t),i=Math.min.apply(Math,e);return {col:e.indexOf(i),y:i};},n._getTopColGroup=function(t){if(2>t)return this.colYs;for(var e=[],i=this.cols+1-t,n=0;i>n;n++)e[n]=this._getColGroupY(n,t);return e;},n._getColGroupY=function(t,e){if(2>e)return this.colYs[t];var i=this.colYs.slice(t,t+e);return Math.max.apply(Math,i);},n._getHorizontalColPosition=function(t,e){var i=this.horizontalColIndex%this.cols,n=t>1&&i+t>this.cols;i=n?0:i;var o=e.size.outerWidth&&e.size.outerHeight;return this.horizontalColIndex=o?i+t:this.horizontalColIndex,{col:i,y:this._getColGroupY(i,t)};},n._manageStamp=function(t){var i=e(t),n=this._getElementOffset(t),o=this._getOption("originLeft"),r=o?n.left:n.right,s=r+i.outerWidth,a=Math.floor(r/this.columnWidth);a=Math.max(0,a);var h=Math.floor(s/this.columnWidth);h-=s%this.columnWidth?0:1,h=Math.min(this.cols-1,h);for(var u=this._getOption("originTop"),d=(u?n.top:n.bottom)+i.outerHeight,l=a;h>=l;l++)this.colYs[l]=Math.max(d,this.colYs[l]);},n._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t;},n._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return (this.cols-t)*this.columnWidth-this.gutter;},n.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth;},i;});; !function(t,e){"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e();}("undefined"!=typeof window?window:this,(function(){function t(){}let e=t.prototype;return e.on=function(t,e){if(!t||!e)return this;let i=this._events=this._events||{},s=i[t]=i[t]||[];return s.includes(e)||s.push(e),this;},e.once=function(t,e){if(!t||!e)return this;this.on(t,e);let i=this._onceEvents=this._onceEvents||{};return (i[t]=i[t]||{})[e]=!0,this;},e.off=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;let s=i.indexOf(e);return -1!=s&&i.splice(s,1),this;},e.emitEvent=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;i=i.slice(0),e=e||[];let s=this._onceEvents&&this._onceEvents[t];for(let n of i)s&&s[n]&&(this.off(t,n),delete s[n]),n.apply(this,e);return this;},e.allOff=function(){return delete this._events,delete this._onceEvents,this;},t;})),function(t,e){"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter")):t.imagesLoaded=e(t,t.EvEmitter);}("undefined"!=typeof window?window:this,(function(t,e){let i=t.jQuery,s=t.console;function n(t,e,o){if(!(this instanceof n))return new n(t,e,o);let r=t;var h;("string"==typeof t&&(r=document.querySelectorAll(t)),r)?(this.elements=(h=r,Array.isArray(h)?h:"object"==typeof h&&"number"==typeof h.length?[...h]:[h]),this.options={},"function"==typeof e?o=e:Object.assign(this.options,e),o&&this.on("always",o),this.getImages(),i&&(this.jqDeferred=new i.Deferred()),setTimeout(this.check.bind(this))):s.error(`Bad element for imagesLoaded ${r||t}`);}n.prototype=Object.create(e.prototype),n.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this);};const o=[1,9,11];n.prototype.addElementImages=function(t){"IMG"===t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);let {nodeType:e}=t;if(!e||!o.includes(e))return;let i=t.querySelectorAll("img");for(let t of i)this.addImage(t);if("string"==typeof this.options.background){let e=t.querySelectorAll(this.options.background);for(let t of e)this.addElementBackgroundImages(t);}};const r=/url\((['"])?(.*?)\1\)/gi;function h(t){this.img=t;}function d(t,e){this.url=t,this.element=e,this.img=new Image();}return n.prototype.addElementBackgroundImages=function(t){let e=getComputedStyle(t);if(!e)return;let i=r.exec(e.backgroundImage);for(;null!==i;){let s=i&&i[2];s&&this.addBackground(s,t),i=r.exec(e.backgroundImage);}},n.prototype.addImage=function(t){let e=new h(t);this.images.push(e);},n.prototype.addBackground=function(t,e){let i=new d(t,e);this.images.push(i);},n.prototype.check=function(){if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length)return void this.complete();let t=(t,e,i)=>{setTimeout((()=>{this.progress(t,e,i);}));};this.images.forEach((function(e){e.once("progress",t),e.check();}));},n.prototype.progress=function(t,e,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount===this.images.length&&this.complete(),this.options.debug&&s&&s.log(`progress: ${i}`,t,e);},n.prototype.complete=function(){let t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){let t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this);}},h.prototype=Object.create(e.prototype),h.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image(),this.img.crossOrigin&&(this.proxyImage.crossOrigin=this.img.crossOrigin),this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.currentSrc||this.img.src);},h.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth;},h.prototype.confirm=function(t,e){this.isLoaded=t;let {parentNode:i}=this.img,s="PICTURE"===i.nodeName?i:this.img;this.emitEvent("progress",[this,s,e]);},h.prototype.handleEvent=function(t){let e="on"+t.type;this[e]&&this[e](t);},h.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents();},h.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents();},h.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this);},d.prototype=Object.create(h.prototype),d.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents());},d.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this);},d.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e]);},n.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&(i=e,i.fn.imagesLoaded=function(t,e){return new n(this,t,e).jqDeferred.promise(i(this));});},n.makeJQueryPlugin(),n;}));;