constt=t=>"object"==typeoft&&null!==t&&t.constructor===Object&&"[object Object]"===Object.prototype.toString.call(t),e=(...i)=>{lets=!1;"boolean"==typeofi[0]&&(s=i.shift());letn=i[0];if(!n||"object"!=typeofn)thrownewError("extendee must be an object");consto=i.slice(1),a=o.length;for(leti=0;i<a;i++){consta=o[i];for(letiina)if(a.hasOwnProperty(i)){consto=a[i];if(s&&(Array.isArray(o)||t(o))){constt=Array.isArray(o)?[]:{};n[i]=e(!0,n.hasOwnProperty(i)?n[i]:t,o)}elsen[i]=o}}returnn},i=(t,e=1e3)=>(t=parseFloat(t)||0,Math.round((t+Number.EPSILON)*e)/e),s="undefined"!=typeofwindow&&window.ResizeObserver||class{constructor(t){this.observables=[],this.boundCheck=this.check.bind(this),this.boundCheck(),this.callback=t}observe(t){if(this.observables.some((e=>e.el===t)))return;conste={el:t,size:{height:t.clientHeight,width:t.clientWidth}};this.observables.push(e)}unobserve(t){this.observables=this.observables.filter((e=>e.el!==t))}disconnect(){this.observables=[]}check(){constt=this.observables.filter((t=>{conste=t.el.clientHeight,i=t.el.clientWidth;if(t.size.height!==e||t.size.width!==i)returnt.size.height=e,t.size.width=i,!0})).map((t=>t.el));t.length>0&&this.callback(t),window.requestAnimationFrame(this.boundCheck)}},n=function(t){return!(!t||t.classList.contains("carousel__track")||t===document.body)&&(function(t){conste=window.getComputedStyle(t)["overflow-y"],i=window.getComputedStyle(t)["overflow-x"],s=("scroll"===e||"auto"===e)&&Math.abs(t.scrollHeight-t.clientHeight)>1,n=("scroll"===i||"auto"===i)&&Math.abs(t.scrollWidth-t.clientWidth)>1;returns||n}(t)?t:n(t.parentNode))},o=t=>{lete=0;returnt&&(e=tinstanceofSVGElement?Math.min(t.getClientRects()[0].width,t.width.baseVal.value):Math.max(t.offsetWidth,t.scrollWidth)),e},a=t=>{lete=0;returnt&&(e=tinstanceofSVGElement?Math.min(t.getClientRects()[0].height,t.height.baseVal.value):Math.max(t.offsetHeight,t.scrollHeight)),e};classr{constructor(t={}){this.options=e(!0,{},t),this.plugins=[],this.events={};for(consttof["on","once"])for(consteofObject.entries(this.options[t]||{}))this[t](...e)}option(t,e){t=String(t);leti=(s=t,n=this.options,s.split(".").reduce((function(t,e){returnt[e]}),n));vars,n;return"function"==typeofi&&(i=i.call(this,t)),void0===i?e:i}localize(t,e=[]){returnString(t).replace(/\{\{(\w+).?(\w+)?\}\}/g,((t,i,s)=>{letn=!1;if(n=s?this.option(`${i[0]+i.toLowerCase().substring(1)}.l10n.${s}`):this.option(`l10n.${i}`),!n)returni;for(lett=0;t<e.length;t++)n=n.split(e[t][0]).join(e[t][1]);returnn}))}on(e,i){if(t(e)){for(consttofObject.entries(e))this.on(...t);returnthis}returnString(e).split(" ").forEach((t=>{conste=this.events[t]=this.events[t]||[];-1==e.indexOf(i)&&e.push(i)})),this}once(e,i){if(t(e)){for(consttofObject.entries(e))this.once(...t);returnthis}returnString(e).split(" ").forEach((t=>{conste=(...s)=>{this.off(t,e),i.call(this,this,...s)};e._=i,this.on(t,e)})),this}off(e,i){if(!t(e))returne.split(" ").forEach((t=>{conste=this.events[t];if(!e||!e.length)returnthis;lets=-1;for(lett=0,n=e.length;t<n;t++){constn=e[t];if(n&&(n===i||n._===i)){s=t;break}}-1!=s&&e.splice(s,1)})),this;for(consttofObject.entries(e))this.off(...t)}trigger(t,...e){for(constiof[...this.events[t]||[]].slice())if(i&&!1===i.call(this,this,...e))return!1;for(constiof[...this.events["*"]||[]].slice())if(i&&!1===i.call(this,t,this,...e))return!1;return!0}attachPlugins(t){consti={};for(const[s,n]ofObject.entries(t||{}))!1!==this.options[s]&&(this.options[s]=e({},n.defaults||{},this.options[s]),i[s]=newn(this));for(const[t,e]ofObject.entries(i))e.attach(this);returnthis.plugins=Object.assign({},this.plugins,i),this}detachPlugins(){for(consttinthis.plugins){lete;(e=this.plugins[t])&&"function"==typeofe.detach&&e.detach(this)}returnthis.plugins={},this}}constl={panOnlyZoomed:!1,lockAxis:!1,friction:.72,decelFriction:.92,zoomFriction:.72,bounceForce:.1,baseScale:1,minScale:1,maxScale:2,step:.5,zoomInCentered:!0,pinchToZoom:!0,textSelection:!0,click:"toggleZoom",clickDelay:250,doubleClick:!1,wheel:"zoom",wheelFact