← Back
Editing: carousel-handler.min.js
/*! elementor-pro - v4.4.0 - 24-11-2026 */ (function(De){var Ce=Object.defineProperty,Fe=(t,e)=>Ce(t,"name",{value:e,configurable:!0});function Et(t){return t==null||t===""?null:typeof t=="object"&&!Array.isArray(t)&&"$$type"in t&&"value"in t?t.value:t}function Vt(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}function Ne(t){return Vt(t)?Et(t.desktop):Et(t)}function we(t,e,n){var o,r;const i=(o=e==null||(r=e.elementorFrontend)===null||r===void 0||(r=r.config)===null||r===void 0||(r=r.responsive)===null||r===void 0?void 0:r.activeBreakpoints)!==null&&o!==void 0?o:{},l=Vt(t)?t:{};return Object.fromEntries(Object.entries(i).filter(([,s])=>s==null?void 0:s.value).sort(([,s],[,a])=>s.direction!==a.direction?s.direction==="min"?-1:1:s.direction==="min"?s.value-a.value:a.value-s.value).map(([s,a])=>{const u=Et(l[s]);return[`(${a.direction==="min"?"min":"max"}-width: ${a.value}px)`,u===null?{}:n(u)]}))}var $={viewport:"e-carousel-viewport",container:"e-carousel-container",slide:"e-carousel-slide",prev:"e-carousel-arrow-prev",next:"e-carousel-arrow-next",pagination:"e-carousel-pagination",dot:"e-carousel-dot",autoplayControls:"e-carousel-autoplay-controls",autoplayPlay:"e-carousel-autoplay-play",autoplayPause:"e-carousel-autoplay-pause"},jt="--e-carousel-gap",Me="--e-carousel-slide-align",Re="e-carousel__track",br="e-carousel",Er=[$.prev,$.next,$.pagination,$.dot,$.autoplayControls,$.autoplayPlay,$.autoplayPause],W=(t,e)=>t==null?void 0:t.querySelector(`:scope > [data-e-type="${e}"]`),Ht=t=>{var e;return(e=t==null?void 0:t.querySelector(":scope > .e-carousel__track"))!==null&&e!==void 0?e:null},Ut=[`[data-e-type="${$.slide}"]`,"[data-model-cid]"],ke=Ut.map(t=>`:scope > ${t}`).join(", "),zt=t=>(t==null?void 0:t.nodeType)===1&&t.matches(Ut.join(", ")),vt=t=>{var e;const n=Ht(t)||t;return Array.from((e=n==null?void 0:n.children)!==null&&e!==void 0?e:[]).filter(zt)};function qt(t){vt(t).forEach(e=>e.style.setProperty("--e-con-transform-transition-duration","0s"))}function Gt(t){let e=Ht(t);return e||(e=t.ownerDocument.createElement("div"),e.className=Re,t.append(e)),Object.assign(e.style,{display:"flex",alignItems:`var(${Me}, stretch)`,flex:"0 0 100%",minWidth:"0",width:"100%",boxSizing:"content-box",columnGap:"",paddingInlineEnd:`var(${jt}, 0px)`}),Array.from(t.children).forEach(n=>{zt(n)&&e.append(n)}),e}function Kt(t,...e){if(typeof t!="string")return"";let n=0;return t.replace(/%%|%(?:(\d+)\$)?d/g,(o,r)=>{if(o==="%%")return"%";const i=e[r?Number(r)-1:n++];return i==null?o:String(i)})}function Bt(t){try{var e;return JSON.parse((t==null||(e=t.dataset)===null||e===void 0?void 0:e.eCarouselLabels)||"{}")}catch(n){return{}}}function Yt(t){if(t.id)return t.id;const e=t.dataset.id;return e&&(t.id=`e-carousel-slide-${e}`),t.id}function nt(t,e){t&&(t.hidden=e,t.style.display=e?"none":"")}function $e(t){var e;return!!(!((e=t.matchMedia)===null||e===void 0)&&e.call(t,"(prefers-reduced-motion: reduce)").matches)}function Ve(t){var e,n;if(!t)return!1;if(!((e=t.elementorFrontend)===null||e===void 0||(n=e.isEditMode)===null||n===void 0)&&n.call(e))return!0;try{const o=t.parent;return!!(o!=null&&o.elementor&&(t.frameElement||o!==t))}catch(o){return!1}}function Lt(t){var e;return(((e=t.closest("[dir]"))===null||e===void 0?void 0:e.getAttribute("dir"))||t.ownerDocument.dir)==="rtl"?"rtl":"ltr"}function Xt(t,e){return Math.max(1,Number(t)||e)}function je(t,e=globalThis){const n=(t==null?void 0:t.transition_type)==="fade",o=t==null?void 0:t.slides_to_scroll;return{slidesToScroll:n?1:Xt(Ne(o),1),breakpoints:we(o,e,r=>n?{}:{slidesToScroll:Xt(r,1)})}}function Qt(t,e,n){const{columnGap:o}=n.getComputedStyle(e),r=o==="normal"||!o?"0px":o;return t.style.getPropertyValue("--e-carousel-gap")===r?!1:(t.style.setProperty(jt,r),!0)}function He(t){return(t==null?void 0:t.nodeType)===1}function At(t,e,n){if(!t)return;const o=n&&e.isPlaying();t.setAttribute("aria-live",o?"off":"polite")}var Jt=t=>(t==null?void 0:t.pointerType)==="touch";function Ue(t){try{return t.matches(":focus-visible")}catch(e){return!0}}function ze({root:t,container:e,engine:n,autoplayEnabled:o,pauseOnHover:r=!0,pauseOnInteraction:i=!0}){const l=new Set,s={userPaused:!1,interactionStopped:!1,hovered:!1,focused:!1,dragging:!1,destroyed:!1},a=()=>o&&!s.userPaused&&!s.interactionStopped,u=()=>a()&&!(r&&s.hovered)&&!s.focused&&!s.dragging&&n.snapCount()>1,c=()=>{if(s.focused&&!(e!=null&&e.contains(e.ownerDocument.activeElement))&&(s.focused=!1),o){const h=n.isPlaying();u()&&!h?n.play():!u()&&h&&n.pause()}At(e,n,o),l.forEach(h=>h())},f={isActive:a,toggle:()=>{a()?s.userPaused=!0:(s.userPaused=!1,s.interactionStopped=!1),c()},onChange:h=>(l.add(h),()=>l.delete(h)),destroy:()=>{}};if(At(e,n,o),!o)return f;const d=h=>{Jt(h)||(s.hovered=!0,c())},g=h=>{Jt(h)||(s.hovered=!1,c())},v=h=>{s.focused=Ue(h.target),s.interactionStopped||(s.interactionStopped=s.focused&&i),c()},y=h=>{e.contains(h.relatedTarget)||(s.focused=!1,c())};r&&(t==null||t.addEventListener("pointerenter",d),t==null||t.addEventListener("pointerleave",g)),e==null||e.addEventListener("focusin",v),e==null||e.addEventListener("focusout",y);const m=()=>{At(e,n,o),n.isPlaying()&&!u()&&queueMicrotask(()=>!s.destroyed&&c())},p=[n.on("pointerDown",()=>{s.dragging=!0,s.interactionStopped||(s.interactionStopped=i),c()}),n.on("pointerUp",()=>{s.dragging=!1,c()}),n.on("structureChange",c),n.on("autoplayStateChange",m)];return f.destroy=()=>{s.destroyed=!0,t==null||t.removeEventListener("pointerenter",d),t==null||t.removeEventListener("pointerleave",g),e==null||e.removeEventListener("focusin",v),e==null||e.removeEventListener("focusout",y),p.forEach(h=>h()),l.clear()},c(),f}var Tt="e-carousel--autoplay-playing",xt="e-carousel--autoplay-paused",Wt="e--playing",Zt="e--paused",qe="data-e-carousel-default-label";function Ge(t){var e;const n=t.ownerDocument.createTreeWalker(t,NodeFilter.SHOW_TEXT);for(;n.nextNode();){const o=n.currentNode;if(o.textContent.trim()&&!((e=o.parentElement)!=null&&e.closest("svg")))return!0}return!1}function Ke(t){const e=t.filter(n=>(n==null?void 0:n.hasAttribute(qe))&&Ge(n)).map(n=>{const o=n.getAttribute("aria-label");return n.removeAttribute("aria-label"),()=>o!==null&&n.setAttribute("aria-label",o)});return()=>e.forEach(n=>n())}function Be({root:t,controls:e,playButton:n,pauseButton:o,controller:r,engine:i,autoplayEnabled:l,showAutoplayButton:s,isEditor:a}){if(a||!l||!s||!t||!e||!r)return()=>{};const u=[Tt,xt].filter(m=>t.classList.contains(m)),c=()=>{var m;const p=r.isActive();t.classList.toggle(Tt,p),t.classList.toggle(xt,!p),e.classList.toggle(Wt,p),e.classList.toggle(Zt,!p),nt(e,((m=i==null?void 0:i.snapCount())!=null?m:2)<=1)},f=(m,p,h)=>{if(r.isActive()===m)return;const E=!!(p!=null&&p.contains(p.ownerDocument.activeElement));r.toggle(),E&&r.isActive()===m&&(h==null||h.focus({preventScroll:!0}))},d=()=>f(!0,n,o),g=()=>f(!1,o,n);n==null||n.addEventListener("click",d),o==null||o.addEventListener("click",g);const v=Ke([n,o]),y=r.onChange(c);return c(),()=>{n==null||n.removeEventListener("click",d),o==null||o.removeEventListener("click",g),y(),v(),nt(e,!1),t.classList.remove(Tt,xt),t.classList.add(...u),e.classList.remove(Wt,Zt)}}var Ye="e--selected",Xe=":scope > .elementor-element-overlay, :scope > .elementor-empty-view",te=["elementor-element-edit-mode","elementor-element-editable"];function Qe({selected:t,key:e,rtl:n,snapCount:o,loop:r}){let i=t;if(e==="Home")i=0;else if(e==="End")i=o-1;else if(e==="ArrowRight")i=t+(n?-1:1);else if(e==="ArrowLeft")i=t+(n?1:-1);else return null;return r?(i+o)%o:Math.min(Math.max(0,i),o-1)}function Je(t){var e;return(e=t.querySelector(`[data-e-type="${$.dot}"][data-id]`))!=null?e:t.querySelector("[data-e-carousel-dot-fallback]")}function We(t){const e=t.ownerDocument.createElement("button");return e.type="button",e.className="elementor-element e-atomic-element e-carousel-dot-base e-carousel__dot",e.setAttribute("data-e-type",$.dot),e.setAttribute("data-element_type",$.dot),e.setAttribute("data-e-carousel-dot-fallback",""),e.hidden=!0,t.prepend(e),e}function Ot(t){return Array.from(t.querySelectorAll("[data-e-carousel-dot]"))}function Ze(t,e){const n=t.cloneNode(!0);return n.removeAttribute("id"),n.removeAttribute("data-id"),n.removeAttribute("hidden"),n.removeAttribute("aria-hidden"),n.removeAttribute("data-e-carousel-dot-fallback"),n.querySelectorAll(Xe).forEach(o=>o.remove()),n.classList.remove(...te),Array.from(n.attributes).forEach(o=>{o.name.startsWith("data-interaction")&&n.removeAttribute(o.name)}),n.hidden=!1,n.style.display="",n.setAttribute("data-e-carousel-dot",String(e)),n.setAttribute("type","button"),n}function ee(t){return(t==null?void 0:t.nodeType)===1&&t.matches(`[data-e-type="${$.dot}"][data-id]`)}function ne(t){return(t!=null?t:"").split(/\s+/).filter(e=>e&&!te.includes(e)).sort().join(" ")}function tn(t,e,n){if(!e.MutationObserver)return()=>{};const o=new e.MutationObserver(r=>{r.some(i=>i.type==="attributes"?ee(i.target)&&ne(i.oldValue)!==ne(i.target.className):[...i.addedNodes,...i.removedNodes].some(ee))&&n()});return o.observe(t,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["class"],attributeOldValue:!0}),()=>o.disconnect()}function en({root:t,engine:e,pagination:n,container:o,isEditor:r=!1,win:i=globalThis}){if(!n)return()=>{};const l=()=>{var E;return(E=Je(n))!=null?E:We(n)},s=[],a=E=>o&&vt(o)[e.slideIndexForSnap(E)]||null,u=()=>{s.forEach(({dot:E,handler:S})=>E.removeEventListener("click",S)),s.length=0,Ot(n).forEach(E=>E.remove())},c=()=>{const E=e.selectedSnap();Ot(n).forEach((S,L)=>{const b=L===E;b?S.setAttribute("aria-current","true"):S.removeAttribute("aria-current"),S.setAttribute("tabindex",b?"0":"-1"),S.classList.toggle(Ye,b)})},f=(E,S)=>{const L=a(S),b=L?Yt(L):"";b?E.setAttribute("aria-controls",b):E.removeAttribute("aria-controls")};let d=null;const g=({force:E=!1}={})=>{const S=l(),L=e.snapCount();if(!E&&(d==null?void 0:d.prototype)===S&&(d==null?void 0:d.snapCount)===L){Ot(n).forEach(f),c();return}if(d={prototype:S,snapCount:L},u(),nt(S,!0),S.setAttribute("aria-hidden","true"),nt(n,L<=1),L<=1)return;const b=Bt(t);for(let O=0;O<L;O++){const x=Ze(S,O);x.setAttribute("tabindex",String(O)==="0"?"0":"-1"),b.go_to_slide&&x.setAttribute("aria-label",Kt(b.go_to_slide,O+1)),f(x,O);const D=()=>e.goTo(O);x.addEventListener("click",D),s.push({dot:x,handler:D}),n.appendChild(x)}c()},v=()=>{var E;(E=n.querySelector('[data-e-carousel-dot][tabindex="0"]'))==null||E.focus()},y=E=>{const S=e.snapCount();if(S<=1)return;const L=Qe({selected:e.selectedSnap(),key:E.key,rtl:Lt(t)==="rtl",snapCount:S,loop:e.isLoop()});L!==null&&(E.preventDefault(),E.stopPropagation(),L!==e.selectedSnap()&&(e.goTo(L),requestAnimationFrame(v)))};n.addEventListener("keydown",y);const m=e.on("select",c),p=e.on("structureChange",()=>g()),h=r?tn(n,i,()=>g({force:!0})):()=>{};return g(),()=>{h(),n.removeEventListener("keydown",y),m(),p(),u()}}function yt(t){return typeof t=="number"}Fe(yt,"isNumber");function _t(t){return typeof t=="string"}function St(t){return typeof t=="boolean"}function re(t){return Object.prototype.toString.call(t)==="[object Object]"}function j(t){return Math.abs(t)}function Pt(t){return Math.sign(t)}function st(t,e){return j(t-e)}function nn(t,e){return t===0||e===0||j(t)<=j(e)?0:j(st(j(t),j(e))/t)}function rn(t){return Math.round(t*100)/100}function lt(t){return ct(t).map(Number)}function Y(t){return t[at(t)]}function at(t){return Math.max(0,t.length-1)}function It(t,e){return e===at(t)}function oe(t,e=0){return Array.from(Array(t),(n,o)=>e+o)}function ct(t){return Object.keys(t)}function ie(t,e){return[t,e].reduce((n,o)=>(ct(o).forEach(r=>{const i=n[r],l=o[r];n[r]=re(i)&&re(l)?ie(i,l):l}),n),{})}function Dt(t,e){return typeof e.MouseEvent!="undefined"&&t instanceof e.MouseEvent}function on(t,e){const n={start:o,center:r,end:i};function o(){return 0}function r(s){return i(s)/2}function i(s){return e-s}function l(s,a){return _t(t)?n[t](s):t(e,s,a)}return{measure:l}}function ut(){let t=[];function e(r,i,l,s={passive:!0}){let a;if("addEventListener"in r)r.addEventListener(i,l,s),a=()=>r.removeEventListener(i,l,s);else{const u=r;u.addListener(l),a=()=>u.removeListener(l)}return t.push(a),o}function n(){t=t.filter(r=>r())}const o={add:e,clear:n};return o}function sn(t,e,n,o){const r=ut(),i=1e3/60;let l=null,s=0,a=0;function u(){r.add(t,"visibilitychange",()=>{t.hidden&&v()})}function c(){g(),r.clear()}function f(y){if(!a)return;l||(l=y,n(),n());const m=y-l;for(l=y,s+=m;s>=i;)n(),s-=i;o(s/i),a&&(a=e.requestAnimationFrame(f))}function d(){a||(a=e.requestAnimationFrame(f))}function g(){e.cancelAnimationFrame(a),l=null,s=0,a=0}function v(){l=null,s=0}return{init:u,destroy:c,start:d,stop:g,update:n,render:o}}function ln(t,e){const n=e==="rtl",o=t==="y",r=o?"y":"x",i=o?"x":"y",l=!o&&n?-1:1,s=c(),a=f();function u(g){const{height:v,width:y}=g;return o?v:y}function c(){return o?"top":n?"right":"left"}function f(){return o?"bottom":n?"left":"right"}function d(g){return g*l}return{scroll:r,cross:i,startEdge:s,endEdge:a,measureSize:u,direction:d}}function tt(t=0,e=0){const n=j(t-e);function o(a){return a<t}function r(a){return a>e}function i(a){return o(a)||r(a)}function l(a){return i(a)?o(a)?t:e:a}function s(a){return n?a-n*Math.ceil((a-e)/n):a}return{length:n,max:e,min:t,constrain:l,reachedAny:i,reachedMax:r,reachedMin:o,removeOffset:s}}function se(t,e,n){const{constrain:o}=tt(0,t),r=t+1;let i=l(e);function l(d){return n?j((r+d)%r):o(d)}function s(){return i}function a(d){return i=l(d),f}function u(d){return c().set(s()+d)}function c(){return se(t,s(),n)}const f={get:s,set:a,add:u,clone:c};return f}function an(t,e,n,o,r,i,l,s,a,u,c,f,d,g,v,y,m,p,h){const{cross:E,direction:S}=t,L=["INPUT","SELECT","TEXTAREA"],b={passive:!1},O=ut(),x=ut(),D=tt(50,225).constrain(g.measure(20)),N={mouse:300,touch:400},R={mouse:500,touch:600},H=v?43:25;let A=!1,_=0,P=0,C=!1,I=!1,k=!1,F=!1;function V(T){if(!h)return;function w(z){(St(h)||h(T,z))&&K(z)}const M=e;O.add(M,"dragstart",z=>z.preventDefault(),b).add(M,"touchmove",()=>{},b).add(M,"touchend",()=>{}).add(M,"touchstart",w).add(M,"mousedown",w).add(M,"touchcancel",q).add(M,"contextmenu",q).add(M,"click",rt,!0)}function U(){O.clear(),x.clear()}function G(){const T=F?n:e;x.add(T,"touchmove",X,b).add(T,"touchend",q).add(T,"mousemove",X,b).add(T,"mouseup",q)}function Q(T){const w=T.nodeName||"";return L.includes(w)}function dt(){return(v?R:N)[F?"mouse":"touch"]}function pt(T,w){const M=f.add(Pt(T)*-1),z=c.byDistance(T,!v).distance;return v||j(T)<D?z:m&&w?z*.5:c.byIndex(M.get(),0).distance}function K(T){const w=Dt(T,o);F=w,k=v&&w&&!T.buttons&&A,A=st(r.get(),l.get())>=2,!(w&&T.button!==0)&&(Q(T.target)||(C=!0,i.pointerDown(T),u.useFriction(0).useDuration(0),r.set(l),G(),_=i.readPoint(T),P=i.readPoint(T,E),d.emit("pointerDown")))}function X(T){if(!Dt(T,o)&&T.touches.length>=2)return q(T);const w=i.readPoint(T),M=i.readPoint(T,E),z=st(w,_),J=st(M,P);if(!I&&!F&&(!T.cancelable||(I=z>J,!I)))return q(T);const Z=i.pointerMove(T);z>y&&(k=!0),u.useFriction(.3).useDuration(.75),s.start(),r.add(S(Z)),T.preventDefault()}function q(T){const w=c.byDistance(0,!1).index!==f.get(),M=i.pointerUp(T)*dt(),z=pt(S(M),w),J=nn(M,z),Z=H-10*J,mt=p+J/50;I=!1,C=!1,x.clear(),u.useDuration(Z).useFriction(mt),a.distance(z,!v),F=!1,d.emit("pointerUp")}function rt(T){k&&(T.stopPropagation(),T.preventDefault(),k=!1)}function B(){return C}return{init:V,destroy:U,pointerDown:B}}function cn(t,e){let o,r;function i(c){return c.timeStamp}function l(c,f){const d=`client${(f||t.scroll)==="x"?"X":"Y"}`;return(Dt(c,e)?c:c.touches[0])[d]}function s(c){return o=c,r=c,l(c)}function a(c){const f=l(c)-l(r),d=i(c)-i(o)>170;return r=c,d&&(o=c),f}function u(c){if(!o||!r)return 0;const f=l(r)-l(o),d=i(c)-i(o),g=i(c)-i(r)>170,v=f/d;return d&&!g&&j(v)>.1?v:0}return{pointerDown:s,pointerMove:a,pointerUp:u,readPoint:l}}function un(){function t(e){const{offsetTop:n,offsetLeft:o,offsetWidth:r,offsetHeight:i}=e;return{top:n,right:o+r,bottom:n+i,left:o,width:r,height:i}}return{measure:t}}function fn(t){function e(n){return t*(n/100)}return{measure:e}}function dn(t,e,n,o,r,i,l){const s=[t].concat(o);let a,u,c=[],f=!1;function d(y){return r.measureSize(l.measure(y))}function g(y){if(!i)return;u=d(t),c=o.map(d);function m(p){for(const h of p){if(f)return;const E=h.target===t,S=o.indexOf(h.target),L=E?u:c[S];if(j(d(E?t:o[S])-L)>=.5){y.reInit(),e.emit("resize");break}}}a=new ResizeObserver(p=>{(St(i)||i(y,p))&&m(p)}),n.requestAnimationFrame(()=>{s.forEach(p=>a.observe(p))})}function v(){f=!0,a&&a.disconnect()}return{init:g,destroy:v}}function pn(t,e,n,o,r,i){let l=0,s=0,a=r,u=i,c=t.get(),f=0;function d(){const b=o.get()-t.get(),O=!a;let x=0;return O?(l=0,n.set(o),t.set(o),x=b):(n.set(t),l+=b/a,l*=u,c+=l,t.add(l),x=c-f),s=Pt(x),f=c,L}function g(){return j(o.get()-e.get())<.001}function v(){return a}function y(){return s}function m(){return l}function p(){return E(r)}function h(){return S(i)}function E(b){return a=b,L}function S(b){return u=b,L}const L={direction:y,duration:v,velocity:m,seek:d,settled:g,useBaseFriction:h,useBaseDuration:p,useFriction:S,useDuration:E};return L}function mn(t,e,n,o,r){const i=r.measure(10),l=r.measure(50),s=tt(.1,.99);let a=!1;function u(){return!(a||!t.reachedAny(n.get())||!t.reachedAny(e.get()))}function c(d){if(!u())return;const g=j(t[t.reachedMin(e.get())?"min":"max"]-e.get()),v=n.get()-e.get(),y=s.constrain(g/l);n.subtract(v*y),!d&&j(v)<i&&(n.set(t.constrain(n.get())),o.useDuration(25).useBaseFriction())}function f(d){a=!d}return{shouldConstrain:u,constrain:c,toggleActive:f}}function gn(t,e,n,o,r){const i=tt(-e+t,0),l=f(),s=c(),a=d();function u(g,v){return st(g,v)<=1}function c(){const g=l[0],v=Y(l);return tt(l.lastIndexOf(g),l.indexOf(v)+1)}function f(){return n.map((g,v)=>{const{min:y,max:m}=i,p=i.constrain(g),h=!v,E=It(n,v);return h?m:E||u(y,p)?y:u(m,p)?m:p}).map(g=>parseFloat(g.toFixed(3)))}function d(){if(e<=t+r)return[i.max];if(o==="keepSnaps")return l;const{min:g,max:v}=s;return l.slice(g,v)}return{snapsContained:a,scrollContainLimit:s}}function vn(t,e,n){const o=e[0];return{limit:tt(n?o-t:Y(e),o)}}function yn(t,e,n,o){const{reachedMin:i,reachedMax:l}=tt(e.min+.1,e.max+.1);function s(u){return u===1?l(n.get()):u===-1?i(n.get()):!1}function a(u){if(!s(u))return;const c=t*(u*-1);o.forEach(f=>f.add(c))}return{loop:a}}function Sn(t){const{max:e,length:n}=t;function o(r){const i=r-e;return n?i/-n:0}return{get:o}}function hn(t,e,n,o,r){const{startEdge:i,endEdge:l}=t,{groupSlides:s}=r,a=f().map(e.measure),u=d(),c=g();function f(){return s(o).map(v=>Y(v)[l]-v[0][i]).map(j)}function d(){return o.map(v=>n[i]-v[i]).map(v=>-j(v))}function g(){return s(u).map(v=>v[0]).map((v,y)=>v+a[y])}return{snaps:u,snapsAligned:c}}function bn(t,e,n,o,r,i){const{groupSlides:l}=r,{min:s,max:a}=o,u=c();function c(){const f=l(i),d=!t||e==="keepSnaps";return n.length===1?[i]:d?f:f.slice(s,a).map((g,v,y)=>{const m=!v,p=It(y,v);return m?oe(Y(y[0])+1):p?oe(at(i)-Y(y)[0]+1,Y(y)[0]):g})}return{slideRegistry:u}}function En(t,e,n,o,r){const{reachedAny:i,removeOffset:l,constrain:s}=o;function a(g){return g.concat().sort((v,y)=>j(v)-j(y))[0]}function u(g){const v=t?l(g):s(g),{index:y}=e.map((m,p)=>({diff:c(m-v,0),index:p})).sort((m,p)=>j(m.diff)-j(p.diff))[0];return{index:y,distance:v}}function c(g,v){const y=[g,g+n,g-n];if(!t)return g;if(!v)return a(y);const m=y.filter(p=>Pt(p)===v);return m.length?a(m):Y(y)-n}function f(g,v){return{index:g,distance:c(e[g]-r.get(),v)}}function d(g,v){const y=r.get()+g,{index:m,distance:p}=u(y),h=!t&&i(y);return!v||h?{index:m,distance:g}:{index:m,distance:g+c(e[m]-p,0)}}return{byDistance:d,byIndex:f,shortcut:c}}function Ln(t,e,n,o,r,i,l){function s(c){const f=c.distance,d=c.index!==e.get();i.add(f),f&&(o.duration()?t.start():(t.update(),t.render(1),t.update())),d&&(n.set(e.get()),e.set(c.index),l.emit("select"))}function a(c,f){s(r.byDistance(c,f))}function u(c,f){const d=e.clone().set(c);s(r.byIndex(d.get(),f))}return{distance:a,index:u}}function An(t,e,n,o,r,i,l,s){const a={passive:!0,capture:!0};let u=0;function c(d){if(!s)return;function g(v){if(new Date().getTime()-u>10)return;l.emit("slideFocusStart"),t.scrollLeft=0;const y=n.findIndex(m=>m.includes(v));yt(y)&&(r.useDuration(0),o.index(y,0),l.emit("slideFocus"))}i.add(document,"keydown",f,!1),e.forEach((v,y)=>{i.add(v,"focus",m=>{(St(s)||s(d,m))&&g(y)},a)})}function f(d){d.code==="Tab"&&(u=new Date().getTime())}return{init:c}}function ft(t){let e=t;function n(){return e}function o(s){e=l(s)}function r(s){e+=l(s)}function i(s){e-=l(s)}function l(s){return yt(s)?s:s.get()}return{get:n,set:o,add:r,subtract:i}}function le(t,e){const n=t.scroll==="x"?l:s,o=e.style;let r=null,i=!1;function l(f){return`translate3d(${f}px,0px,0px)`}function s(f){return`translate3d(0px,${f}px,0px)`}function a(f){if(i)return;const d=rn(t.direction(f));d!==r&&(o.transform=n(d),r=d)}function u(f){i=!f}function c(){i||(o.transform="",e.getAttribute("style")||e.removeAttribute("style"))}return{clear:c,to:a,toggleActive:u}}function Tn(t,e,n,o,r,i,l,s,a){const c=lt(r),f=lt(r).reverse(),d=p().concat(h());function g(b,O){return b.reduce((x,D)=>x-r[D],O)}function v(b,O){return b.reduce((x,D)=>g(x,O)>0?x.concat([D]):x,[])}function y(b){return i.map((O,x)=>({start:O-o[x]+.5+b,end:O+e-.5+b}))}function m(b,O,x){const D=y(O);return b.map(N=>{const R=x?0:-n,H=x?n:0,A=x?"end":"start",_=D[N][A];return{index:N,loopPoint:_,slideLocation:ft(-1),translate:le(t,a[N]),target:()=>s.get()>_?R:H}})}function p(){const b=l[0];return m(v(f,b),n,!1)}function h(){const b=e-l[0]-1;return m(v(c,b),-n,!0)}function E(){return d.every(({index:b})=>g(c.filter(O=>O!==b),e)<=.1)}function S(){d.forEach(b=>{const{target:O,translate:x,slideLocation:D}=b,N=O();N!==D.get()&&(x.to(N),D.set(N))})}function L(){d.forEach(b=>b.translate.clear())}return{canLoop:E,clear:L,loop:S,loopPoints:d}}function xn(t,e,n){let o,r=!1;function i(s){if(!n)return;function a(u){for(const c of u)if(c.type==="childList"){s.reInit(),e.emit("slidesChanged");break}}o=new MutationObserver(u=>{r||(St(n)||n(s,u))&&a(u)}),o.observe(t,{childList:!0})}function l(){o&&o.disconnect(),r=!0}return{init:i,destroy:l}}function On(t,e,n,o){const r={};let i=null,l=null,s,a=!1;function u(){s=new IntersectionObserver(g=>{a||(g.forEach(v=>{const y=e.indexOf(v.target);r[y]=v}),i=null,l=null,n.emit("slidesInView"))},{root:t.parentElement,threshold:o}),e.forEach(g=>s.observe(g))}function c(){s&&s.disconnect(),a=!0}function f(g){return ct(r).reduce((v,y)=>{const m=parseInt(y),{isIntersecting:p}=r[m];return(g&&p||!g&&!p)&&v.push(m),v},[])}function d(g=!0){if(g&&i)return i;if(!g&&l)return l;const v=f(g);return g&&(i=v),g||(l=v),v}return{init:u,destroy:c,get:d}}function _n(t,e,n,o,r,i){const{measureSize:l,startEdge:s,endEdge:a}=t,u=n[0]&&r,c=v(),f=y(),d=n.map(l),g=m();function v(){if(!u)return 0;const p=n[0];return j(e[s]-p[s])}function y(){if(!u)return 0;const p=i.getComputedStyle(Y(o));return parseFloat(p.getPropertyValue(`margin-${a}`))}function m(){return n.map((p,h,E)=>{const S=!h,L=It(E,h);return S?d[h]+c:L?d[h]+f:E[h+1][s]-p[s]}).map(j)}return{slideSizes:d,slideSizesWithGaps:g,startGap:c,endGap:f}}function Pn(t,e,n,o,r,i,l,s,a){const{startEdge:u,endEdge:c,direction:f}=t,d=yt(n);function g(m,p){return lt(m).filter(h=>h%p===0).map(h=>m.slice(h,h+p))}function v(m){return m.length?lt(m).reduce((p,h,E)=>{const S=Y(p)||0,L=S===0,b=h===at(m),O=r[u]-i[S][u],x=r[u]-i[h][c],D=!o&&L?f(l):0,N=j(x-(!o&&b?f(s):0)-(O+D));return E&&N>e+a&&p.push(h),b&&p.push(m.length),p},[]).map((p,h,E)=>{const S=Math.max(E[h-1]||0);return m.slice(S,p)}):[]}function y(m){return d?g(m,n):v(m)}return{groupSlides:y}}function In(t,e,n,o,r,i,l){const{align:s,axis:a,direction:u,startIndex:c,loop:f,duration:d,dragFree:g,dragThreshold:v,inViewThreshold:y,slidesToScroll:m,skipSnaps:p,containScroll:h,watchResize:E,watchSlides:S,watchDrag:L,watchFocus:b}=i,O=2,x=un(),D=x.measure(e),N=n.map(x.measure),R=ln(a,u),H=R.measureSize(D),A=fn(H),_=on(s,H),P=!f&&!!h,{slideSizes:C,slideSizesWithGaps:I,startGap:k,endGap:F}=_n(R,D,N,n,f||!!h,r),V=Pn(R,H,m,f,D,N,k,F,O),{snaps:U,snapsAligned:G}=hn(R,_,D,N,V),Q=-Y(U)+Y(I),{snapsContained:dt,scrollContainLimit:pt}=gn(H,Q,G,h,O),K=P?dt:G,{limit:X}=vn(Q,K,f),q=se(at(K),c,f),rt=q.clone(),B=lt(n),T=({dragHandler:it,scrollBody:kt,scrollBounds:$t,options:{loop:bt}})=>{bt||$t.constrain(it.pointerDown()),kt.seek()},w=({scrollBody:it,translate:kt,location:$t,offsetLocation:bt,previousLocation:dr,scrollLooper:pr,slideLooper:mr,dragHandler:gr,animation:vr,eventHandler:Te,scrollBounds:yr,options:{loop:xe}},Oe)=>{const _e=it.settled(),Sr=!yr.shouldConstrain(),Pe=xe?_e:_e&&Sr,Ie=Pe&&!gr.pointerDown();Ie&&vr.stop();const hr=$t.get()*Oe+dr.get()*(1-Oe);bt.set(hr),xe&&(pr.loop(it.direction()),mr.loop()),kt.to(bt.get()),Ie&&Te.emit("settle"),Pe||Te.emit("scroll")},M=sn(o,r,()=>T(Rt),it=>w(Rt,it)),z=.68,J=K[q.get()],Z=ft(J),mt=ft(J),ot=ft(J),et=ft(J),gt=pn(Z,ot,mt,et,d,z),wt=En(f,K,Q,X,et),Mt=Ln(M,q,rt,gt,wt,et,l),Ee=Sn(X),Le=ut(),ur=On(e,n,l,y),{slideRegistry:Ae}=bn(P,h,K,pt,V,B),fr=An(t,n,Ae,Mt,gt,Le,l,b),Rt={ownerDocument:o,ownerWindow:r,eventHandler:l,containerRect:D,slideRects:N,animation:M,axis:R,dragHandler:an(R,t,o,r,et,cn(R,r),Z,M,Mt,gt,wt,q,l,A,g,v,p,z,L),eventStore:Le,percentOfView:A,index:q,indexPrevious:rt,limit:X,location:Z,offsetLocation:ot,previousLocation:mt,options:i,resizeHandler:dn(e,l,r,n,R,E,x),scrollBody:gt,scrollBounds:mn(X,ot,et,gt,A),scrollLooper:yn(Q,X,ot,[Z,ot,mt,et]),scrollProgress:Ee,scrollSnapList:K.map(Ee.get),scrollSnaps:K,scrollTarget:wt,scrollTo:Mt,slideLooper:Tn(R,H,Q,C,I,U,K,ot,n),slideFocus:fr,slidesHandler:xn(e,l,S),slidesInView:ur,slideIndexes:B,slideRegistry:Ae,slidesToScroll:V,target:et,translate:le(R,e)};return Rt}function Dn(){let t={},e;function n(u){e=u}function o(u){return t[u]||[]}function r(u){return o(u).forEach(c=>c(e,u)),a}function i(u,c){return t[u]=o(u).concat([c]),a}function l(u,c){return t[u]=o(u).filter(f=>f!==c),a}function s(){t={}}const a={init:n,emit:r,off:l,on:i,clear:s};return a}var Cn={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function Fn(t){function e(r,i){return ie(r,i||{})}function n(r){const i=r.breakpoints||{};return e(r,ct(i).filter(l=>t.matchMedia(l).matches).map(l=>i[l]).reduce((l,s)=>e(l,s),{}))}function o(r){return r.map(i=>ct(i.breakpoints||{})).reduce((i,l)=>i.concat(l),[]).map(t.matchMedia)}return{mergeOptions:e,optionsAtMedia:n,optionsMediaQueries:o}}function Nn(t){let e=[];function n(r,i){return e=i.filter(({options:l})=>t.optionsAtMedia(l).active!==!1),e.forEach(l=>l.init(r,t)),i.reduce((l,s)=>Object.assign(l,{[s.name]:s}),{})}function o(){e=e.filter(r=>r.destroy())}return{init:n,destroy:o}}function Ct(t,e,n){const o=t.ownerDocument,r=o.defaultView,i=Fn(r),l=Nn(i),s=ut(),a=Dn(),{mergeOptions:u,optionsAtMedia:c,optionsMediaQueries:f}=i,{on:d,off:g,emit:v}=a,y=R;let m=!1,p,h=u(Cn,Ct.globalOptions),E=u(h),S=[],L,b,O;function x(){const{container:T,slides:w}=E;b=(_t(T)?t.querySelector(T):T)||t.children[0];const M=_t(w)?b.querySelectorAll(w):w;O=[].slice.call(M||b.children)}function D(T){const w=In(t,b,O,o,r,T,a);return T.loop&&!w.slideLooper.canLoop()?D(Object.assign({},T,{loop:!1})):w}function N(T,w){m||(h=u(h,T),E=c(h),S=w||S,x(),p=D(E),f([h,...S.map(({options:M})=>M)]).forEach(M=>s.add(M,"change",R)),E.active&&(p.translate.to(p.location.get()),p.animation.init(),p.slidesInView.init(),p.slideFocus.init(B),p.eventHandler.init(B),p.resizeHandler.init(B),p.slidesHandler.init(B),p.options.loop&&p.slideLooper.loop(),b.offsetParent&&O.length&&p.dragHandler.init(B),L=l.init(B,S)))}function R(T,w){const M=U();H(),N(u({startIndex:M},T),w),a.emit("reInit")}function H(){p.dragHandler.destroy(),p.eventStore.clear(),p.translate.clear(),p.slideLooper.clear(),p.resizeHandler.destroy(),p.slidesHandler.destroy(),p.slidesInView.destroy(),p.animation.destroy(),l.destroy(),s.clear()}function A(){m||(m=!0,s.clear(),H(),a.emit("destroy"),a.clear())}function _(T,w,M){!E.active||m||(p.scrollBody.useBaseFriction().useDuration(w===!0?0:E.duration),p.scrollTo.index(T,M||0))}function P(T){_(p.index.add(1).get(),T,-1)}function C(T){_(p.index.add(-1).get(),T,1)}function I(){return p.index.add(1).get()!==U()}function k(){return p.index.add(-1).get()!==U()}function F(){return p.scrollSnapList}function V(){return p.scrollProgress.get(p.offsetLocation.get())}function U(){return p.index.get()}function G(){return p.indexPrevious.get()}function Q(){return p.slidesInView.get()}function dt(){return p.slidesInView.get(!1)}function pt(){return L}function K(){return p}function X(){return t}function q(){return b}function rt(){return O}const B={canScrollNext:I,canScrollPrev:k,containerNode:q,internalEngine:K,destroy:A,off:g,on:d,emit:v,plugins:pt,previousScrollSnap:G,reInit:y,rootNode:X,scrollNext:P,scrollPrev:C,scrollProgress:V,scrollSnapList:F,scrollTo:_,selectedScrollSnap:U,slideNodes:rt,slidesInView:Q,slidesNotInView:dt};return N(e,n),setTimeout(()=>a.emit("init"),0),B}Ct.globalOptions=void 0;var wn={active:!0,breakpoints:{},delay:4e3,jump:!1,playOnInit:!0,stopOnFocusIn:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,stopOnLastSnap:!1,rootNode:null};function Mn(t,e){const n=t.scrollSnapList();return typeof e=="number"?n.map(()=>e):e(n,t)}function Rn(t,e){const n=t.rootNode();return e&&e(n)||n}function Ft(t={}){let e,n,o,r,i=null,l=0,s=!1,a=!1,u=!1,c=!1;function f(A,_){n=A;const{mergeOptions:P,optionsAtMedia:C}=_;if(e=C(P(P(wn,Ft.globalOptions),t)),n.scrollSnapList().length<=1)return;c=e.jump,o=!1,r=Mn(n,e.delay);const{eventStore:I,ownerDocument:k}=n.internalEngine(),F=!!n.internalEngine().options.watchDrag,V=Rn(n,e.rootNode);I.add(k,"visibilitychange",p),F&&n.on("pointerDown",E),F&&!e.stopOnInteraction&&n.on("pointerUp",S),e.stopOnMouseEnter&&I.add(V,"mouseenter",L),e.stopOnMouseEnter&&!e.stopOnInteraction&&I.add(V,"mouseleave",b),e.stopOnFocusIn&&n.on("slideFocusStart",m),e.stopOnFocusIn&&!e.stopOnInteraction&&I.add(n.containerNode(),"focusout",y),e.playOnInit&&y()}function d(){n.off("pointerDown",E).off("pointerUp",S).off("slideFocusStart",m),m(),o=!0,s=!1}function g(){const{ownerWindow:A}=n.internalEngine();A.clearTimeout(l),l=A.setTimeout(R,r[n.selectedScrollSnap()]),i=new Date().getTime(),n.emit("autoplay:timerset")}function v(){const{ownerWindow:A}=n.internalEngine();A.clearTimeout(l),l=0,i=null,n.emit("autoplay:timerstopped")}function y(){if(!o){if(h()){u=!0;return}s||n.emit("autoplay:play"),g(),s=!0}}function m(){o||(s&&n.emit("autoplay:stop"),v(),s=!1)}function p(){if(h())return u=s,m();u&&y()}function h(){const{ownerDocument:A}=n.internalEngine();return A.visibilityState==="hidden"}function E(){a||m()}function S(){a||y()}function L(){a=!0,m()}function b(){a=!1,y()}function O(A){typeof A!="undefined"&&(c=A),y()}function x(){s&&m()}function D(){s&&y()}function N(){return s}function R(){const{index:A}=n.internalEngine(),_=A.clone().add(1).get(),P=n.scrollSnapList().length-1,C=e.stopOnLastSnap&&_===P;if(n.canScrollNext()?n.scrollNext(c):n.scrollTo(0,c),n.emit("autoplay:select"),C)return m();y()}function H(){return i?r[n.selectedScrollSnap()]-(new Date().getTime()-i):null}return{name:"autoplay",options:t,init:f,destroy:d,play:O,stop:x,reset:D,isPlaying:N,timeUntilNext:H}}Ft.globalOptions=void 0;function ae(t,e,n){return Math.min(Math.max(t,e),n)}function Nt(t){return typeof t=="number"&&!isNaN(t)}function ce(t={}){let r,i=[],l,s=0,a=0,u=0,c=!1,f,d;function g(A){r=A;const _=r.selectedScrollSnap(),{scrollBody:P,containerRect:C,axis:I}=r.internalEngine();l=ae(I.measureSize(C)*.75,200,500),c=!1,i=r.scrollSnapList().map((k,F)=>F===_?1:0),f=P.settled,d=r.scrollProgress,P.settled=R,r.scrollProgress=H,r.on("select",h).on("slideFocus",y).on("pointerDown",p).on("pointerUp",m),S(),y()}function v(){const{scrollBody:A}=r.internalEngine();A.settled=f,r.scrollProgress=d,r.off("select",h).off("slideFocus",y).off("pointerDown",p).off("pointerUp",m),r.slideNodes().forEach(_=>{const P=_.style;P.opacity="",P.transform="",P.pointerEvents="",_.getAttribute("style")||_.removeAttribute("style")})}function y(){b(r.selectedScrollSnap(),1)}function m(){c=!1}function p(){c=!1,s=0,a=0}function h(){const A=r.internalEngine().scrollBody.duration();a=A?0:1,c=!0,A||y()}function E(A){const{axis:_}=r.internalEngine();return`translate${_.scroll.toUpperCase()}(${_.direction(A)}px)`}function S(){const{translate:A,slideLooper:_}=r.internalEngine();A.clear(),A.toggleActive(!1),_.loopPoints.forEach(({translate:P})=>{P.clear(),P.toggleActive(!1)})}function L(A){const{scrollSnaps:_,location:P,target:C}=r.internalEngine();!Nt(A)||i[A]<.5||(P.set(_[A]),C.set(P))}function b(A,_){r.scrollSnapList().forEach((P,C)=>{const I=Math.abs(_),k=i[C],F=C===A,V=ae(F?k+I:k-I,0,1);i[C]=V;const U=F&&c,G=r.previousScrollSnap();U&&(i[G]=1-V),F&&x(A,V),O(C)})}function O(A){const _=r.internalEngine().slideRegistry[A],{scrollSnaps:P,containerRect:C}=r.internalEngine(),I=i[A];_.forEach(k=>{const F=r.slideNodes()[k].style,V=parseFloat(I.toFixed(2)),U=V>0,G=E(U?P[A]:C.width+2);U&&(F.transform=G),F.opacity=V.toString(),F.pointerEvents=I>.5?"auto":"none",U||(F.transform=G)})}function x(A,_){const{index:P,dragHandler:C,scrollSnaps:I}=r.internalEngine(),k=C.pointerDown(),F=1/(I.length-1);let V=A,U=k?r.selectedScrollSnap():r.previousScrollSnap();if(k&&V===U){const G=Math.sign(s)*-1;V=U,U=P.clone().set(U).add(G).get()}u=U*F+(V-U)*F*_}function D(){const{dragHandler:A,index:_,scrollBody:P}=r.internalEngine(),C=r.selectedScrollSnap();if(!A.pointerDown())return C;const I=Math.sign(P.velocity()),k=Math.sign(s),F=_.clone().set(C).add(I*-1).get();return!I||!k?null:k===I?F:C}function N(A){const{dragHandler:_,scrollBody:P}=A.internalEngine(),C=_.pointerDown(),I=P.velocity(),k=P.duration(),F=D(),V=!Nt(F);if(C){if(!I)return;s+=I,a=Math.abs(I/l),L(F)}if(!C){if(!k||V)return;a+=(1-i[F])/k,a*=.68}V||b(F,a)}function R(){const{target:A,location:_}=r.internalEngine(),P=A.get()-_.get(),C=Math.abs(P)>=1,I=D(),k=!Nt(I);return N(r),k||C?!1:i[I]>.999}function H(){return u}return{name:"fade",options:t,init:g,destroy:v}}ce.globalOptions=void 0;var ue=12,kn=60,ht=100,fe=3e3;function $n(t){const e=Number(t),n=(Math.min(Math.max(Number.isFinite(e)?e:ht,ht),fe)-ht)/(fe-ht);return Math.round(ue+n*(kn-ue))}var Vn={select:["select"],settle:["settle"],resize:["resize"],structureChange:["reInit"],autoplayStateChange:["autoplay:play","autoplay:stop"],pointerDown:["pointerDown"],pointerUp:["pointerUp"]};function jn(t,e){return Ft({delay:Number(t.delay)||5e3,stopOnMouseEnter:!1,stopOnInteraction:!0,stopOnFocusIn:!1,rootNode:()=>e})}function Hn({autoplay:t,isFade:e,root:n}){const o=[];return t&&o.push(jn(t,n)),e&&o.push(ce()),o}function de({loop:t,slidesToScroll:e,breakpoints:n,transitionSpeedMs:o,isFade:r,direction:i,draggable:l,instant:s,container:a}){return{loop:t,align:"start",slidesToScroll:r?1:Number(e)||1,breakpoints:n,duration:s?0:$n(o),direction:i==="rtl"?"rtl":"ltr",containScroll:r?!1:"trimSnaps",watchDrag:l,container:a,slides:ke}}function Un(t,e,n){const o=Vn[e];return o?(o.forEach(r=>t.on(r,n)),()=>o.forEach(r=>t.off(r,n))):()=>{}}function zn({viewport:t,container:e,root:n,loop:o=!1,slidesToScroll:r=1,breakpoints:i={},transitionSpeedMs:l=600,transition:s="slide",direction:a="ltr",draggable:u=!0,instant:c=!1,autoplay:f=null}){var d;const g=s==="fade",v=Hn({autoplay:f,isFade:g,root:n}),y={loop:o,slidesToScroll:r,breakpoints:i,transitionSpeedMs:l,isFade:g,direction:a,draggable:u,instant:c,container:e},m=Ct(t,de(y),v),p=()=>{var S,L;return(S=(L=m.plugins())===null||L===void 0?void 0:L.autoplay)!==null&&S!==void 0?S:null};let h=!!(!((d=p())===null||d===void 0)&&d.isPlaying());const E=(S,L)=>{h=L==="autoplay:play"};return m.on("autoplay:play",E),m.on("autoplay:stop",E),{next:()=>m.scrollNext(),prev:()=>m.scrollPrev(),goTo:S=>m.scrollTo(S),snapCount:()=>m.scrollSnapList().length,selectedSnap:()=>m.selectedScrollSnap(),snapIndexForSlide:S=>{var L;const b=(L=m.internalEngine())===null||L===void 0?void 0:L.slideRegistry,O=Array.isArray(b)?b.findIndex(D=>D.includes(S)):-1;if(O>=0)return O;const x=Math.max(0,m.scrollSnapList().length-1);return Math.min(Math.max(0,S),x)},slideIndexForSnap:S=>{var L;const b=(L=m.internalEngine())===null||L===void 0||(L=L.slideRegistry)===null||L===void 0?void 0:L[S];return Array.isArray(b)&&b.length?b[0]:Math.max(0,S)},canPrev:()=>m.canScrollPrev(),canNext:()=>m.canScrollNext(),isLoop:()=>{var S;return!!(!((S=m.internalEngine())===null||S===void 0||(S=S.options)===null||S===void 0)&&S.loop)},on:(S,L)=>Un(m,S,L),play:()=>{var S;return(S=p())===null||S===void 0?void 0:S.play()},pause:()=>{var S;return(S=p())===null||S===void 0?void 0:S.stop()},isPlaying:()=>h,reinit:(S={})=>{Object.assign(y,S),m.reInit(de(y))},destroy:()=>m.destroy()}}var pe="__elementorProCarouselEngine",me=new WeakMap;function qn(t,e){me.set(t,e),t[pe]=e}function Gn(t){me.delete(t),delete t[pe]}function Kn({key:t,direction:e}){const n=e==="rtl";return t==="Home"?"first":t==="End"?"last":t==="ArrowLeft"?n?"next":"prev":t==="ArrowRight"?n?"prev":"next":null}var Bn="e-carousel",ge=[`[data-e-type="${$.prev}"]`,`[data-e-type="${$.next}"]`,`[data-e-type="${$.pagination}"]`,`[data-e-type="${$.autoplayControls}"]`].join(", "),Yn=["input","textarea","select",'[contenteditable]:not([contenteditable="false"])','[role="slider"]','[role="spinbutton"]','[role="listbox"]','[role="menu"]','[role="menubar"]','[role="radiogroup"]','[role="combobox"]','[role="grid"]','[role="tablist"]','[role="tree"]'].join(", "),Xn='a[href], button, summary, audio, video, iframe, [tabindex]:not([tabindex="-1"])';function Qn(t,e){if(e.defaultPrevented)return!1;const n=e.target;if(!He(n)||!t.contains(n)||n.closest(`[data-e-type="${Bn}"]`)!==t||n.closest(Yn))return!1;if(n.closest(ge))return!0;const o=n.closest(Xn);return!(o&&!o.closest(ge))}function Jn({root:t,engine:e,isEditor:n=!1}){if(n)return()=>{};const o=r=>{if(!Qn(t,r))return;const i=Kn({key:r.key,direction:Lt(t)});if(!i)return;const l=e.snapCount();l<=1||(r.preventDefault(),r.stopPropagation(),i==="prev"?e.prev():i==="next"?e.next():i==="first"?e.goTo(0):e.goTo(l-1))};return t.addEventListener("keydown",o),()=>t.removeEventListener("keydown",o)}var ve=.5;function Wn(t,e){if(!e)return!1;const n=e.getBoundingClientRect();if(!n.width)return!1;const o=t.getBoundingClientRect(),r=o.left+e.scrollLeft,i=o.right+e.scrollLeft;return r>=n.left-ve&&i<=n.right+ve}function Zn({container:t,viewport:e=null,engine:n,isEditor:o=!1,isFade:r=!1}){if(o||!t)return()=>{};const i=()=>{e!=null&&e.scrollLeft&&(e.scrollLeft=0)},l=s=>{const a=vt(t),u=a.findIndex(g=>g.contains(s.target));if(u<0)return;const c=!r&&Wn(a[u],e);if(i(),c)return;const f=n.snapCount();if(f<=1)return;const d=n.snapIndexForSlide(u);d!==n.selectedSnap()&&n.goTo(Math.min(d,f-1))};return t.addEventListener("focusin",l),e==null||e.addEventListener("scroll",i),()=>{t.removeEventListener("focusin",l),e==null||e.removeEventListener("scroll",i)}}function tr(t,e){const n=vt(t),o=Bt(e),r=o.slide_roledescription||"",i=o.slide_position||"";n.forEach((l,s)=>{Yt(l),l.setAttribute("role","group"),r&&l.setAttribute("aria-roledescription",r),i&&l.setAttribute("aria-label",Kt(i,s+1,n.length))})}function er({container:t,root:e,engine:n}){const o=()=>tr(t,e);o();const r=n.on("structureChange",o);return()=>r()}var ye="e--disabled";function nr({engine:t,prevBtn:e,nextBtn:n}){if(!e&&!n)return()=>{};const o=f=>{f==null||f.classList.remove(ye)},r=(f,d)=>{f&&f.classList.toggle(ye,d)},i=()=>{const f=t.snapCount()<=1;if(nt(e,f),nt(n,f),f){o(e),o(n);return}const d=!t.canPrev(),g=!t.canNext();e&&(e.setAttribute("aria-disabled",d?"true":"false"),r(e,d)),n&&(n.setAttribute("aria-disabled",g?"true":"false"),r(n,g))},l=f=>{if((e==null?void 0:e.getAttribute("aria-disabled"))==="true"){f.preventDefault();return}t.prev()},s=f=>{if((n==null?void 0:n.getAttribute("aria-disabled"))==="true"){f.preventDefault();return}t.next()};e==null||e.addEventListener("click",l),n==null||n.addEventListener("click",s);const a=t.on("select",i),u=t.on("structureChange",i),c=t.on("resize",i);return i(),()=>{e==null||e.removeEventListener("click",l),n==null||n.removeEventListener("click",s),o(e),o(n),a(),u(),c()}}var rr=Object.defineProperty,or=Object.defineProperties,ir=Object.getOwnPropertyDescriptors,Se=Object.getOwnPropertySymbols,sr=Object.prototype.hasOwnProperty,lr=Object.prototype.propertyIsEnumerable,he=(t,e,n)=>e in t?rr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ar=(t,e)=>{for(var n in e||(e={}))sr.call(e,n)&&he(t,n,e[n]);if(Se)for(var n of Se(e))lr.call(e,n)&&he(t,n,e[n]);return t},cr=(t,e)=>or(t,ir(e)),be=t=>{var e;return["STYLE","LINK"].includes(t==null?void 0:t.nodeName)||((e=t==null?void 0:t.parentNode)==null?void 0:e.nodeName)==="STYLE"};(0,De.register)({elementType:"e-carousel",id:"e-carousel-handler",callback:({element:t,settings:e,listenToChildren:n})=>{const o=t.ownerDocument,r=o.defaultView,i=W(t,$.viewport),l=W(i,$.container);if(!i||!l)return;let s=Gt(l);const a=Ve(r),u=$e(r);Qt(t,l,r),qt(l);const c=!a&&!u&&!!e.autoplay,f=Lt(t),d=zn(cr(ar({viewport:i,container:s,root:t,loop:!!e.loop},je(e,r)),{transitionSpeedMs:e.transition_speed,transition:e.transition_type,direction:f,draggable:!a,instant:u||e.transition_type==="none",autoplay:c?{delay:e.autoplay_delay}:null}));qn(t,d);const g=W(t,$.prev),v=W(t,$.next),y=W(t,$.pagination),m=[];m.push(nr({engine:d,prevBtn:g,nextBtn:v})),m.push(en({root:t,engine:d,pagination:y,container:l,isEditor:a,win:r})),m.push(er({container:l,root:t,engine:d})),m.push(Jn({root:t,engine:d,isEditor:a})),m.push(Zn({container:l,viewport:i,engine:d,isEditor:a,isFade:e.transition_type==="fade"}));const p=ze({root:t,container:l,engine:d,autoplayEnabled:c,pauseOnHover:e.pause_on_hover!==!1,pauseOnInteraction:e.pause_on_interaction!==!1}),h=W(t,$.autoplayControls);m.push(Be({root:t,controls:h,playButton:W(h,$.autoplayPlay),pauseButton:W(h,$.autoplayPause),controller:p,engine:d,autoplayEnabled:c,showAutoplayButton:e.show_autoplay_button===!0,isEditor:a})),m.push(p.destroy);const E=()=>{qt(l),Qt(t,l,r)&&d.reinit()},S=d.on("structureChange",E);let L=null;const b=()=>{L===null&&(L=r.requestAnimationFrame(()=>{L=null,E()}))},O=a?new MutationObserver(N=>{let R=!1;N.forEach(({target:H,addedNodes:A,removedNodes:_})=>{A.forEach(P=>{P.nodeName==="LINK"&&P.addEventListener("load",b,{once:!0})}),R||(R=be(H)||[...A,..._].some(be))}),R&&b()}):null;O==null||O.observe(o.head,{childList:!0,subtree:!0,characterData:!0});let x=null;const D=()=>{x=null,s=Gt(l),d.reinit({container:s})};return a&&(n==null||n([$.slide,$.container]).render(N=>{var R,H,A;((A=(H=(R=N==null?void 0:N.detail)==null?void 0:R.element)==null?void 0:H.closest)==null?void 0:A.call(H,'[data-e-type="e-carousel"]'))===t&&x===null&&(x=r.requestAnimationFrame(D))})),()=>{S(),O==null||O.disconnect(),x!==null&&r.cancelAnimationFrame(x),L!==null&&r.cancelAnimationFrame(L),m.forEach(N=>N()),Gn(t),d.destroy()}}})})(elementorV2.frontendHandlers);
Save File
Cancel