(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))n(r);new MutationObserver(r=>{for(const s of r)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function i(r){const s={};return r.integrity&&(s.integrity=r.integrity),r.referrerPolicy&&(s.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?s.credentials="include":r.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(r){if(r.ep)return;r.ep=!0;const s=i(r);fetch(r.href,s)}})();function el(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function va(t={},e={}){const i=["__proto__","constructor","prototype"];Object.keys(e).filter(n=>i.indexOf(n)<0).forEach(n=>{typeof t[n]>"u"?t[n]=e[n]:el(e[n])&&el(t[n])&&Object.keys(e[n]).length>0&&va(t[n],e[n])})}const Tc={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Bn(){const t=typeof document<"u"?document:{};return va(t,Tc),t}const yd={document:Tc,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(t){return typeof setTimeout>"u"?(t(),null):setTimeout(t,0)},cancelAnimationFrame(t){typeof setTimeout>"u"||clearTimeout(t)}};function Zt(){const t=typeof window<"u"?window:{};return va(t,yd),t}function _d(t=""){return t.trim().split(" ").filter(e=>!!e.trim())}function bd(t){const e=t;Object.keys(e).forEach(i=>{try{e[i]=null}catch{}try{delete e[i]}catch{}})}function ya(t,e=0){return setTimeout(t,e)}function zs(){return Date.now()}function wd(t){const e=Zt();let i;return e.getComputedStyle&&(i=e.getComputedStyle(t,null)),!i&&t.currentStyle&&(i=t.currentStyle),i||(i=t.style),i}function Sd(t,e="x"){const i=Zt();let n,r,s;const o=wd(t);return i.WebKitCSSMatrix?(r=o.transform||o.webkitTransform,r.split(",").length>6&&(r=r.split(", ").map(a=>a.replace(",",".")).join(", ")),s=new i.WebKitCSSMatrix(r==="none"?"":r)):(s=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),n=s.toString().split(",")),e==="x"&&(i.WebKitCSSMatrix?r=s.m41:n.length===16?r=parseFloat(n[12]):r=parseFloat(n[4])),e==="y"&&(i.WebKitCSSMatrix?r=s.m42:n.length===16?r=parseFloat(n[13]):r=parseFloat(n[5])),r||0}function is(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function xd(t){return typeof window<"u"&&typeof window.HTMLElement<"u"?t instanceof HTMLElement:t&&(t.nodeType===1||t.nodeType===11)}function ln(...t){const e=Object(t[0]),i=["__proto__","constructor","prototype"];for(let n=1;n<t.length;n+=1){const r=t[n];if(r!=null&&!xd(r)){const s=Object.keys(Object(r)).filter(o=>i.indexOf(o)<0);for(let o=0,a=s.length;o<a;o+=1){const l=s[o],c=Object.getOwnPropertyDescriptor(r,l);c!==void 0&&c.enumerable&&(is(e[l])&&is(r[l])?r[l].__swiper__?e[l]=r[l]:ln(e[l],r[l]):!is(e[l])&&is(r[l])?(e[l]={},r[l].__swiper__?e[l]=r[l]:ln(e[l],r[l])):e[l]=r[l])}}}return e}function rs(t,e,i){t.style.setProperty(e,i)}function Mc({swiper:t,targetPosition:e,side:i}){const n=Zt(),r=-t.translate;let s=null,o;const a=t.params.speed;t.wrapperEl.style.scrollSnapType="none",n.cancelAnimationFrame(t.cssModeFrameID);const l=e>r?"next":"prev",c=(h,p)=>l==="next"&&h>=p||l==="prev"&&h<=p,d=()=>{o=new Date().getTime(),s===null&&(s=o);const h=Math.max(Math.min((o-s)/a,1),0),p=.5-Math.cos(h*Math.PI)/2;let u=r+p*(e-r);if(c(u,e)&&(u=e),t.wrapperEl.scrollTo({[i]:u}),c(u,e)){t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout(()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[i]:u})}),n.cancelAnimationFrame(t.cssModeFrameID);return}t.cssModeFrameID=n.requestAnimationFrame(d)};d()}function Js(t){return t.querySelector(".swiper-slide-transform")||t.shadowRoot&&t.shadowRoot.querySelector(".swiper-slide-transform")||t}function bn(t,e=""){const i=Zt(),n=[...t.children];return i.HTMLSlotElement&&t instanceof HTMLSlotElement&&n.push(...t.assignedElements()),e?n.filter(r=>r.matches(e)):n}function Ed(t,e){const i=[e];for(;i.length>0;){const n=i.shift();if(t===n)return!0;i.push(...n.children,...n.shadowRoot?n.shadowRoot.children:[],...n.assignedElements?n.assignedElements():[])}}function Td(t,e){const i=Zt();let n=e.contains(t);return!n&&i.HTMLSlotElement&&e instanceof HTMLSlotElement&&(n=[...e.assignedElements()].includes(t),n||(n=Ed(t,e))),n}function Ds(t){try{console.warn(t);return}catch{}}function Hr(t,e=[]){const i=document.createElement(t);return i.classList.add(...Array.isArray(e)?e:_d(e)),i}function Md(t,e){const i=[];for(;t.previousElementSibling;){const n=t.previousElementSibling;e?n.matches(e)&&i.push(n):i.push(n),t=n}return i}function Cd(t,e){const i=[];for(;t.nextElementSibling;){const n=t.nextElementSibling;e?n.matches(e)&&i.push(n):i.push(n),t=n}return i}function ri(t,e){return Zt().getComputedStyle(t,null).getPropertyValue(e)}function $s(t){let e=t,i;if(e){for(i=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(i+=1);return i}}function Cc(t,e){const i=[];let n=t.parentElement;for(;n;)e?n.matches(e)&&i.push(n):i.push(n),n=n.parentElement;return i}function Pc(t,e){function i(n){n.target===t&&(e.call(t,n),t.removeEventListener("transitionend",i))}e&&t.addEventListener("transitionend",i)}function $o(t,e,i){const n=Zt();return t[e==="width"?"offsetWidth":"offsetHeight"]+parseFloat(n.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-right":"margin-top"))+parseFloat(n.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-left":"margin-bottom"))}function Tt(t){return(Array.isArray(t)?t:[t]).filter(e=>!!e)}function Pd(t){return e=>Math.abs(e)>0&&t.browser&&t.browser.need3dFix&&Math.abs(e)%90===0?e+.001:e}function Fo(t,e=""){typeof trustedTypes<"u"?t.innerHTML=trustedTypes.createPolicy("html",{createHTML:i=>i}).createHTML(e):t.innerHTML=e}let so;function Ld(){const t=Zt(),e=Bn();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch)}}function Lc(){return so||(so=Ld()),so}let oo;function Od({userAgent:t}={}){const e=Lc(),i=Zt(),n=i.navigator.platform,r=t||i.navigator.userAgent,s={ios:!1,android:!1},o=i.screen.width,a=i.screen.height,l=r.match(/(Android);?[\s\/]+([\d.]+)?/);let c=r.match(/(iPad)(?!\1).*OS\s([\d_]+)/);const d=r.match(/(iPod)(.*OS\s([\d_]+))?/),h=!c&&r.match(/(iPhone\sOS|iOS)\s([\d_]+)/),p=n==="Win32";let u=n==="MacIntel";const g=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!c&&u&&e.touch&&g.indexOf(`${o}x${a}`)>=0&&(c=r.match(/(Version)\/([\d.]+)/),c||(c=[0,1,"13_0_0"]),u=!1),l&&!p&&(s.os="android",s.android=!0),(c||h||d)&&(s.os="ios",s.ios=!0),s}function Oc(t={}){return oo||(oo=Od(t)),oo}let ao;function Ad(){const t=Zt(),e=Oc();let i=!1;function n(){const a=t.navigator.userAgent.toLowerCase();return a.indexOf("safari")>=0&&a.indexOf("chrome")<0&&a.indexOf("android")<0}if(n()){const a=String(t.navigator.userAgent);if(a.includes("Version/")){const[l,c]=a.split("Version/")[1].split(" ")[0].split(".").map(d=>Number(d));i=l<16||l===16&&c<2}}const r=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent),s=n(),o=s||r&&e.ios;return{isSafari:i||s,needPerspectiveFix:i,need3dFix:o,isWebView:r}}function Ac(){return ao||(ao=Ad()),ao}function kd({swiper:t,on:e,emit:i}){const n=Zt();let r=null,s=null;const o=()=>{!t||t.destroyed||!t.initialized||(i("beforeResize"),i("resize"))},a=()=>{!t||t.destroyed||!t.initialized||(r=new ResizeObserver(d=>{s=n.requestAnimationFrame(()=>{const{width:h,height:p}=t;let u=h,g=p;d.forEach(({contentBoxSize:f,contentRect:y,target:m})=>{m&&m!==t.el||(u=y?y.width:(f[0]||f).inlineSize,g=y?y.height:(f[0]||f).blockSize)}),(u!==h||g!==p)&&o()})}),r.observe(t.el))},l=()=>{s&&n.cancelAnimationFrame(s),r&&r.unobserve&&t.el&&(r.unobserve(t.el),r=null)},c=()=>{!t||t.destroyed||!t.initialized||i("orientationchange")};e("init",()=>{if(t.params.resizeObserver&&typeof n.ResizeObserver<"u"){a();return}n.addEventListener("resize",o),n.addEventListener("orientationchange",c)}),e("destroy",()=>{l(),n.removeEventListener("resize",o),n.removeEventListener("orientationchange",c)})}function Id({swiper:t,extendParams:e,on:i,emit:n}){const r=[],s=Zt(),o=(c,d={})=>{const h=s.MutationObserver||s.WebkitMutationObserver,p=new h(u=>{if(t.__preventObserver__)return;if(u.length===1){n("observerUpdate",u[0]);return}const g=function(){n("observerUpdate",u[0])};s.requestAnimationFrame?s.requestAnimationFrame(g):s.setTimeout(g,0)});p.observe(c,{attributes:typeof d.attributes>"u"?!0:d.attributes,childList:t.isElement||(typeof d.childList>"u"?!0:d).childList,characterData:typeof d.characterData>"u"?!0:d.characterData}),r.push(p)},a=()=>{if(t.params.observer){if(t.params.observeParents){const c=Cc(t.hostEl);for(let d=0;d<c.length;d+=1)o(c[d])}o(t.hostEl,{childList:t.params.observeSlideChildren}),o(t.wrapperEl,{attributes:!1})}},l=()=>{r.forEach(c=>{c.disconnect()}),r.splice(0,r.length)};e({observer:!1,observeParents:!1,observeSlideChildren:!1}),i("init",a),i("destroy",l)}var Rd={on(t,e,i){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;const r=i?"unshift":"push";return t.split(" ").forEach(s=>{n.eventsListeners[s]||(n.eventsListeners[s]=[]),n.eventsListeners[s][r](e)}),n},once(t,e,i){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;function r(...s){n.off(t,r),r.__emitterProxy&&delete r.__emitterProxy,e.apply(n,s)}return r.__emitterProxy=e,n.on(t,r,i)},onAny(t,e){const i=this;if(!i.eventsListeners||i.destroyed||typeof t!="function")return i;const n=e?"unshift":"push";return i.eventsAnyListeners.indexOf(t)<0&&i.eventsAnyListeners[n](t),i},offAny(t){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsAnyListeners)return e;const i=e.eventsAnyListeners.indexOf(t);return i>=0&&e.eventsAnyListeners.splice(i,1),e},off(t,e){const i=this;return!i.eventsListeners||i.destroyed||!i.eventsListeners||t.split(" ").forEach(n=>{typeof e>"u"?i.eventsListeners[n]=[]:i.eventsListeners[n]&&i.eventsListeners[n].forEach((r,s)=>{(r===e||r.__emitterProxy&&r.__emitterProxy===e)&&i.eventsListeners[n].splice(s,1)})}),i},emit(...t){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsListeners)return e;let i,n,r;return typeof t[0]=="string"||Array.isArray(t[0])?(i=t[0],n=t.slice(1,t.length),r=e):(i=t[0].events,n=t[0].data,r=t[0].context||e),n.unshift(r),(Array.isArray(i)?i:i.split(" ")).forEach(o=>{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach(a=>{a.apply(r,[o,...n])}),e.eventsListeners&&e.eventsListeners[o]&&e.eventsListeners[o].forEach(a=>{a.apply(r,n)})}),e}};function zd(){const t=this;let e,i;const n=t.el;typeof t.params.width<"u"&&t.params.width!==null?e=t.params.width:e=n.clientWidth,typeof t.params.height<"u"&&t.params.height!==null?i=t.params.height:i=n.clientHeight,!(e===0&&t.isHorizontal()||i===0&&t.isVertical())&&(e=e-parseInt(ri(n,"padding-left")||0,10)-parseInt(ri(n,"padding-right")||0,10),i=i-parseInt(ri(n,"padding-top")||0,10)-parseInt(ri(n,"padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(i)&&(i=0),Object.assign(t,{width:e,height:i,size:t.isHorizontal()?e:i}))}function Dd(){const t=this;function e(E,B){return parseFloat(E.getPropertyValue(t.getDirectionLabel(B))||0)}const i=t.params,{wrapperEl:n,slidesEl:r,rtlTranslate:s,wrongRTL:o}=t,a=t.virtual&&i.virtual.enabled,l=a?t.virtual.slides.length:t.slides.length,c=bn(r,`.${t.params.slideClass}, swiper-slide`),d=a?t.virtual.slides.length:c.length;let h=[];const p=[],u=[];let g=i.slidesOffsetBefore;typeof g=="function"&&(g=i.slidesOffsetBefore.call(t));let f=i.slidesOffsetAfter;typeof f=="function"&&(f=i.slidesOffsetAfter.call(t));const y=t.snapGrid.length,m=t.slidesGrid.length,v=t.size-g-f;let b=i.spaceBetween,S=-g,w=0,k=0;if(typeof v>"u")return;typeof b=="string"&&b.indexOf("%")>=0?b=parseFloat(b.replace("%",""))/100*v:typeof b=="string"&&(b=parseFloat(b)),t.virtualSize=-b-g-f,c.forEach(E=>{s?E.style.marginLeft="":E.style.marginRight="",E.style.marginBottom="",E.style.marginTop=""}),i.centeredSlides&&i.cssMode&&(rs(n,"--swiper-centered-offset-before",""),rs(n,"--swiper-centered-offset-after",""));const x=i.grid&&i.grid.rows>1&&t.grid;x?t.grid.initSlides(c):t.grid&&t.grid.unsetSlides();let z;const V=i.slidesPerView==="auto"&&i.breakpoints&&Object.keys(i.breakpoints).filter(E=>typeof i.breakpoints[E].slidesPerView<"u").length>0;for(let E=0;E<d;E+=1){z=0;const B=c[E];if(!(B&&(x&&t.grid.updateSlide(E,B,c),ri(B,"display")==="none"))){if(a&&i.slidesPerView==="auto")i.virtual.slidesPerViewAutoSlideSize&&(z=i.virtual.slidesPerViewAutoSlideSize),z&&B&&(i.roundLengths&&(z=Math.floor(z)),B.style[t.getDirectionLabel("width")]=`${z}px`);else if(i.slidesPerView==="auto"){V&&(B.style[t.getDirectionLabel("width")]="");const L=getComputedStyle(B),I=B.style.transform,R=B.style.webkitTransform;if(I&&(B.style.transform="none"),R&&(B.style.webkitTransform="none"),i.roundLengths)z=t.isHorizontal()?$o(B,"width"):$o(B,"height");else{const $=e(L,"width"),O=e(L,"padding-left"),D=e(L,"padding-right"),q=e(L,"margin-left"),X=e(L,"margin-right"),_=L.getPropertyValue("box-sizing");if(_&&_==="border-box")z=$+q+X;else{const{clientWidth:Z,offsetWidth:ee}=B;z=$+O+D+q+X+(ee-Z)}}I&&(B.style.transform=I),R&&(B.style.webkitTransform=R),i.roundLengths&&(z=Math.floor(z))}else z=(v-(i.slidesPerView-1)*b)/i.slidesPerView,i.roundLengths&&(z=Math.floor(z)),B&&(B.style[t.getDirectionLabel("width")]=`${z}px`);B&&(B.swiperSlideSize=z),u.push(z),i.centeredSlides?(S=S+z/2+w/2+b,w===0&&E!==0&&(S=S-v/2-b),E===0&&(S=S-v/2-b),Math.abs(S)<1/1e3&&(S=0),i.roundLengths&&(S=Math.floor(S)),k%i.slidesPerGroup===0&&h.push(S),p.push(S)):(i.roundLengths&&(S=Math.floor(S)),(k-Math.min(t.params.slidesPerGroupSkip,k))%t.params.slidesPerGroup===0&&h.push(S),p.push(S),S=S+z+b),t.virtualSize+=z+b,w=z,k+=1}}if(t.virtualSize=Math.max(t.virtualSize,v)+f,s&&o&&(i.effect==="slide"||i.effect==="coverflow")&&(n.style.width=`${t.virtualSize+b}px`),i.setWrapperSize&&(n.style[t.getDirectionLabel("width")]=`${t.virtualSize+b}px`),x&&t.grid.updateWrapperSize(z,h),!i.centeredSlides){const E=[];for(let B=0;B<h.length;B+=1){let L=h[B];i.roundLengths&&(L=Math.floor(L)),h[B]<=t.virtualSize-v&&E.push(L)}h=E,Math.floor(t.virtualSize-v)-Math.floor(h[h.length-1])>1&&h.push(t.virtualSize-v)}if(a&&i.loop){const E=u[0]+b;if(i.slidesPerGroup>1){const B=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/i.slidesPerGroup),L=E*i.slidesPerGroup;for(let I=0;I<B;I+=1)h.push(h[h.length-1]+L)}for(let B=0;B<t.virtual.slidesBefore+t.virtual.slidesAfter;B+=1)i.slidesPerGroup===1&&h.push(h[h.length-1]+E),p.push(p[p.length-1]+E),t.virtualSize+=E}if(h.length===0&&(h=[0]),b!==0){const E=t.isHorizontal()&&s?"marginLeft":t.getDirectionLabel("marginRight");c.filter((B,L)=>!i.cssMode||i.loop?!0:L!==c.length-1).forEach(B=>{B.style[E]=`${b}px`})}if(i.centeredSlides&&i.centeredSlidesBounds){let E=0;u.forEach(L=>{E+=L+(b||0)}),E-=b;const B=E>v?E-v:0;h=h.map(L=>L<=0?-g:L>B?B+f:L)}if(i.centerInsufficientSlides){let E=0;u.forEach(L=>{E+=L+(b||0)}),E-=b;const B=(g||0)+(f||0);if(E+B<v){const L=(v-E-B)/2;h.forEach((I,R)=>{h[R]=I-L}),p.forEach((I,R)=>{p[R]=I+L})}}if(Object.assign(t,{slides:c,snapGrid:h,slidesGrid:p,slidesSizesGrid:u}),i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){rs(n,"--swiper-centered-offset-before",`${-h[0]}px`),rs(n,"--swiper-centered-offset-after",`${t.size/2-u[u.length-1]/2}px`);const E=-t.snapGrid[0],B=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(L=>L+E),t.slidesGrid=t.slidesGrid.map(L=>L+B)}if(d!==l&&t.emit("slidesLengthChange"),h.length!==y&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),p.length!==m&&t.emit("slidesGridLengthChange"),i.watchSlidesProgress&&t.updateSlidesOffset(),t.emit("slidesUpdated"),!a&&!i.cssMode&&(i.effect==="slide"||i.effect==="fade")){const E=`${i.containerModifierClass}backface-hidden`,B=t.el.classList.contains(E);d<=i.maxBackfaceHiddenSlides?B||t.el.classList.add(E):B&&t.el.classList.remove(E)}}function $d(t){const e=this,i=[],n=e.virtual&&e.params.virtual.enabled;let r=0,s;typeof t=="number"?e.setTransition(t):t===!0&&e.setTransition(e.params.speed);const o=a=>n?e.slides[e.getSlideIndexByData(a)]:e.slides[a];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach(a=>{i.push(a)});else for(s=0;s<Math.ceil(e.params.slidesPerView);s+=1){const a=e.activeIndex+s;if(a>e.slides.length&&!n)break;i.push(o(a))}else i.push(o(e.activeIndex));for(s=0;s<i.length;s+=1)if(typeof i[s]<"u"){const a=i[s].offsetHeight;r=a>r?a:r}(r||r===0)&&(e.wrapperEl.style.height=`${r}px`)}function Fd(){const t=this,e=t.slides,i=t.isElement?t.isHorizontal()?t.wrapperEl.offsetLeft:t.wrapperEl.offsetTop:0;for(let n=0;n<e.length;n+=1)e[n].swiperSlideOffset=(t.isHorizontal()?e[n].offsetLeft:e[n].offsetTop)-i-t.cssOverflowAdjustment()}const tl=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)};function Bd(t=this&&this.translate||0){const e=this,i=e.params,{slides:n,rtlTranslate:r,snapGrid:s}=e;if(n.length===0)return;typeof n[0].swiperSlideOffset>"u"&&e.updateSlidesOffset();let o=-t;r&&(o=t),e.visibleSlidesIndexes=[],e.visibleSlides=[];let a=i.spaceBetween;typeof a=="string"&&a.indexOf("%")>=0?a=parseFloat(a.replace("%",""))/100*e.size:typeof a=="string"&&(a=parseFloat(a));for(let l=0;l<n.length;l+=1){const c=n[l];let d=c.swiperSlideOffset;i.cssMode&&i.centeredSlides&&(d-=n[0].swiperSlideOffset);const h=(o+(i.centeredSlides?e.minTranslate():0)-d)/(c.swiperSlideSize+a),p=(o-s[0]+(i.centeredSlides?e.minTranslate():0)-d)/(c.swiperSlideSize+a),u=-(o-d),g=u+e.slidesSizesGrid[l],f=u>=0&&u<=e.size-e.slidesSizesGrid[l],y=u>=0&&u<e.size-1||g>1&&g<=e.size||u<=0&&g>=e.size;y&&(e.visibleSlides.push(c),e.visibleSlidesIndexes.push(l)),tl(c,y,i.slideVisibleClass),tl(c,f,i.slideFullyVisibleClass),c.progress=r?-h:h,c.originalProgress=r?-p:p}}function qd(t){const e=this;if(typeof t>"u"){const d=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*d||0}const i=e.params,n=e.maxTranslate()-e.minTranslate();let{progress:r,isBeginning:s,isEnd:o,progressLoop:a}=e;const l=s,c=o;if(n===0)r=0,s=!0,o=!0;else{r=(t-e.minTranslate())/n;const d=Math.abs(t-e.minTranslate())<1,h=Math.abs(t-e.maxTranslate())<1;s=d||r<=0,o=h||r>=1,d&&(r=0),h&&(r=1)}if(i.loop){const d=e.getSlideIndexByData(0),h=e.getSlideIndexByData(e.slides.length-1),p=e.slidesGrid[d],u=e.slidesGrid[h],g=e.slidesGrid[e.slidesGrid.length-1],f=Math.abs(t);f>=p?a=(f-p)/g:a=(f+g-u)/g,a>1&&(a-=1)}Object.assign(e,{progress:r,progressLoop:a,isBeginning:s,isEnd:o}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&e.updateSlidesProgress(t),s&&!l&&e.emit("reachBeginning toEdge"),o&&!c&&e.emit("reachEnd toEdge"),(l&&!s||c&&!o)&&e.emit("fromEdge"),e.emit("progress",r)}const lo=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)};function Nd(){const t=this,{slides:e,params:i,slidesEl:n,activeIndex:r}=t,s=t.virtual&&i.virtual.enabled,o=t.grid&&i.grid&&i.grid.rows>1,a=h=>bn(n,`.${i.slideClass}${h}, swiper-slide${h}`)[0];let l,c,d;if(s)if(i.loop){let h=r-t.virtual.slidesBefore;h<0&&(h=t.virtual.slides.length+h),h>=t.virtual.slides.length&&(h-=t.virtual.slides.length),l=a(`[data-swiper-slide-index="${h}"]`)}else l=a(`[data-swiper-slide-index="${r}"]`);else o?(l=e.find(h=>h.column===r),d=e.find(h=>h.column===r+1),c=e.find(h=>h.column===r-1)):l=e[r];l&&(o||(d=Cd(l,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!d&&(d=e[0]),c=Md(l,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!c===0&&(c=e[e.length-1]))),e.forEach(h=>{lo(h,h===l,i.slideActiveClass),lo(h,h===d,i.slideNextClass),lo(h,h===c,i.slidePrevClass)}),t.emitSlidesClasses()}const Es=(t,e)=>{if(!t||t.destroyed||!t.params)return;const i=()=>t.isElement?"swiper-slide":`.${t.params.slideClass}`,n=e.closest(i());if(n){let r=n.querySelector(`.${t.params.lazyPreloaderClass}`);!r&&t.isElement&&(n.shadowRoot?r=n.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{n.shadowRoot&&(r=n.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`),r&&r.remove())})),r&&r.remove()}},co=(t,e)=>{if(!t.slides[e])return;const i=t.slides[e].querySelector('[loading="lazy"]');i&&i.removeAttribute("loading")},Bo=t=>{if(!t||t.destroyed||!t.params)return;let e=t.params.lazyPreloadPrevNext;const i=t.slides.length;if(!i||!e||e<0)return;e=Math.min(e,i);const n=t.params.slidesPerView==="auto"?t.slidesPerViewDynamic():Math.ceil(t.params.slidesPerView),r=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){const o=r,a=[o-e];a.push(...Array.from({length:e}).map((l,c)=>o+n+c)),t.slides.forEach((l,c)=>{a.includes(l.column)&&co(t,c)});return}const s=r+n-1;if(t.params.rewind||t.params.loop)for(let o=r-e;o<=s+e;o+=1){const a=(o%i+i)%i;(a<r||a>s)&&co(t,a)}else for(let o=Math.max(r-e,0);o<=Math.min(s+e,i-1);o+=1)o!==r&&(o>s||o<r)&&co(t,o)};function Hd(t){const{slidesGrid:e,params:i}=t,n=t.rtlTranslate?t.translate:-t.translate;let r;for(let s=0;s<e.length;s+=1)typeof e[s+1]<"u"?n>=e[s]&&n<e[s+1]-(e[s+1]-e[s])/2?r=s:n>=e[s]&&n<e[s+1]&&(r=s+1):n>=e[s]&&(r=s);return i.normalizeSlideIndex&&(r<0||typeof r>"u")&&(r=0),r}function Vd(t){const e=this,i=e.rtlTranslate?e.translate:-e.translate,{snapGrid:n,params:r,activeIndex:s,realIndex:o,snapIndex:a}=e;let l=t,c;const d=u=>{let g=u-e.virtual.slidesBefore;return g<0&&(g=e.virtual.slides.length+g),g>=e.virtual.slides.length&&(g-=e.virtual.slides.length),g};if(typeof l>"u"&&(l=Hd(e)),n.indexOf(i)>=0)c=n.indexOf(i);else{const u=Math.min(r.slidesPerGroupSkip,l);c=u+Math.floor((l-u)/r.slidesPerGroup)}if(c>=n.length&&(c=n.length-1),l===s&&!e.params.loop){c!==a&&(e.snapIndex=c,e.emit("snapIndexChange"));return}if(l===s&&e.params.loop&&e.virtual&&e.params.virtual.enabled){e.realIndex=d(l);return}const h=e.grid&&r.grid&&r.grid.rows>1;let p;if(e.virtual&&r.virtual.enabled&&r.loop)p=d(l);else if(h){const u=e.slides.find(f=>f.column===l);let g=parseInt(u.getAttribute("data-swiper-slide-index"),10);Number.isNaN(g)&&(g=Math.max(e.slides.indexOf(u),0)),p=Math.floor(g/r.grid.rows)}else if(e.slides[l]){const u=e.slides[l].getAttribute("data-swiper-slide-index");u?p=parseInt(u,10):p=l}else p=l;Object.assign(e,{previousSnapIndex:a,snapIndex:c,previousRealIndex:o,realIndex:p,previousIndex:s,activeIndex:l}),e.initialized&&Bo(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&(o!==p&&e.emit("realIndexChange"),e.emit("slideChange"))}function jd(t,e){const i=this,n=i.params;let r=t.closest(`.${n.slideClass}, swiper-slide`);!r&&i.isElement&&e&&e.length>1&&e.includes(t)&&[...e.slice(e.indexOf(t)+1,e.length)].forEach(a=>{!r&&a.matches&&a.matches(`.${n.slideClass}, swiper-slide`)&&(r=a)});let s=!1,o;if(r){for(let a=0;a<i.slides.length;a+=1)if(i.slides[a]===r){s=!0,o=a;break}}if(r&&s)i.clickedSlide=r,i.virtual&&i.params.virtual.enabled?i.clickedIndex=parseInt(r.getAttribute("data-swiper-slide-index"),10):i.clickedIndex=o;else{i.clickedSlide=void 0,i.clickedIndex=void 0;return}n.slideToClickedSlide&&i.clickedIndex!==void 0&&i.clickedIndex!==i.activeIndex&&i.slideToClickedSlide()}var Gd={updateSize:zd,updateSlides:Dd,updateAutoHeight:$d,updateSlidesOffset:Fd,updateSlidesProgress:Bd,updateProgress:qd,updateSlidesClasses:Nd,updateActiveIndex:Vd,updateClickedSlide:jd};function Wd(t=this.isHorizontal()?"x":"y"){const e=this,{params:i,rtlTranslate:n,translate:r,wrapperEl:s}=e;if(i.virtualTranslate)return n?-r:r;if(i.cssMode)return r;let o=Sd(s,t);return o+=e.cssOverflowAdjustment(),n&&(o=-o),o||0}function Yd(t,e){const i=this,{rtlTranslate:n,params:r,wrapperEl:s,progress:o}=i;let a=0,l=0;const c=0;i.isHorizontal()?a=n?-t:t:l=t,r.roundLengths&&(a=Math.floor(a),l=Math.floor(l)),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?a:l,r.cssMode?s[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-a:-l:r.virtualTranslate||(i.isHorizontal()?a-=i.cssOverflowAdjustment():l-=i.cssOverflowAdjustment(),s.style.transform=`translate3d(${a}px, ${l}px, ${c}px)`);let d;const h=i.maxTranslate()-i.minTranslate();h===0?d=0:d=(t-i.minTranslate())/h,d!==o&&i.updateProgress(t),i.emit("setTranslate",i.translate,e)}function Xd(){return-this.snapGrid[0]}function Ud(){return-this.snapGrid[this.snapGrid.length-1]}function Zd(t=0,e=this.params.speed,i=!0,n=!0,r){const s=this,{params:o,wrapperEl:a}=s;if(s.animating&&o.preventInteractionOnTransition)return!1;const l=s.minTranslate(),c=s.maxTranslate();let d;if(n&&t>l?d=l:n&&t<c?d=c:d=t,s.updateProgress(d),o.cssMode){const h=s.isHorizontal();if(e===0)a[h?"scrollLeft":"scrollTop"]=-d;else{if(!s.support.smoothScroll)return Mc({swiper:s,targetPosition:-d,side:h?"left":"top"}),!0;a.scrollTo({[h?"left":"top"]:-d,behavior:"smooth"})}return!0}return e===0?(s.setTransition(0),s.setTranslate(d),i&&(s.emit("beforeTransitionStart",e,r),s.emit("transitionEnd"))):(s.setTransition(e),s.setTranslate(d),i&&(s.emit("beforeTransitionStart",e,r),s.emit("transitionStart")),s.animating||(s.animating=!0,s.onTranslateToWrapperTransitionEnd||(s.onTranslateToWrapperTransitionEnd=function(p){!s||s.destroyed||p.target===this&&(s.wrapperEl.removeEventListener("transitionend",s.onTranslateToWrapperTransitionEnd),s.onTranslateToWrapperTransitionEnd=null,delete s.onTranslateToWrapperTransitionEnd,s.animating=!1,i&&s.emit("transitionEnd"))}),s.wrapperEl.addEventListener("transitionend",s.onTranslateToWrapperTransitionEnd))),!0}var Kd={getTranslate:Wd,setTranslate:Yd,minTranslate:Xd,maxTranslate:Ud,translateTo:Zd};function Qd(t,e){const i=this;i.params.cssMode||(i.wrapperEl.style.transitionDuration=`${t}ms`,i.wrapperEl.style.transitionDelay=t===0?"0ms":""),i.emit("setTransition",t,e)}function kc({swiper:t,runCallbacks:e,direction:i,step:n}){const{activeIndex:r,previousIndex:s}=t;let o=i;o||(r>s?o="next":r<s?o="prev":o="reset"),t.emit(`transition${n}`),e&&o==="reset"?t.emit(`slideResetTransition${n}`):e&&r!==s&&(t.emit(`slideChangeTransition${n}`),o==="next"?t.emit(`slideNextTransition${n}`):t.emit(`slidePrevTransition${n}`))}function Jd(t=!0,e){const i=this,{params:n}=i;n.cssMode||(n.autoHeight&&i.updateAutoHeight(),kc({swiper:i,runCallbacks:t,direction:e,step:"Start"}))}function ef(t=!0,e){const i=this,{params:n}=i;i.animating=!1,!n.cssMode&&(i.setTransition(0),kc({swiper:i,runCallbacks:t,direction:e,step:"End"}))}var tf={setTransition:Qd,transitionStart:Jd,transitionEnd:ef};function nf(t=0,e,i=!0,n,r){typeof t=="string"&&(t=parseInt(t,10));const s=this;let o=t;o<0&&(o=0);const{params:a,snapGrid:l,slidesGrid:c,previousIndex:d,activeIndex:h,rtlTranslate:p,wrapperEl:u,enabled:g}=s;if(!g&&!n&&!r||s.destroyed||s.animating&&a.preventInteractionOnTransition)return!1;typeof e>"u"&&(e=s.params.speed);const f=Math.min(s.params.slidesPerGroupSkip,o);let y=f+Math.floor((o-f)/s.params.slidesPerGroup);y>=l.length&&(y=l.length-1);const m=-l[y];if(a.normalizeSlideIndex)for(let x=0;x<c.length;x+=1){const z=-Math.floor(m*100),V=Math.floor(c[x]*100),E=Math.floor(c[x+1]*100);typeof c[x+1]<"u"?z>=V&&z<E-(E-V)/2?o=x:z>=V&&z<E&&(o=x+1):z>=V&&(o=x)}if(s.initialized&&o!==h&&(!s.allowSlideNext&&(p?m>s.translate&&m>s.minTranslate():m<s.translate&&m<s.minTranslate())||!s.allowSlidePrev&&m>s.translate&&m>s.maxTranslate()&&(h||0)!==o))return!1;o!==(d||0)&&i&&s.emit("beforeSlideChangeStart"),s.updateProgress(m);let v;o>h?v="next":o<h?v="prev":v="reset";const b=s.virtual&&s.params.virtual.enabled;if(!(b&&r)&&(p&&-m===s.translate||!p&&m===s.translate))return s.updateActiveIndex(o),a.autoHeight&&s.updateAutoHeight(),s.updateSlidesClasses(),a.effect!=="slide"&&s.setTranslate(m),v!=="reset"&&(s.transitionStart(i,v),s.transitionEnd(i,v)),!1;if(a.cssMode){const x=s.isHorizontal(),z=p?m:-m;if(e===0)b&&(s.wrapperEl.style.scrollSnapType="none",s._immediateVirtual=!0),b&&!s._cssModeVirtualInitialSet&&s.params.initialSlide>0?(s._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{u[x?"scrollLeft":"scrollTop"]=z})):u[x?"scrollLeft":"scrollTop"]=z,b&&requestAnimationFrame(()=>{s.wrapperEl.style.scrollSnapType="",s._immediateVirtual=!1});else{if(!s.support.smoothScroll)return Mc({swiper:s,targetPosition:z,side:x?"left":"top"}),!0;u.scrollTo({[x?"left":"top"]:z,behavior:"smooth"})}return!0}const k=Ac().isSafari;return b&&!r&&k&&s.isElement&&s.virtual.update(!1,!1,o),s.setTransition(e),s.setTranslate(m),s.updateActiveIndex(o),s.updateSlidesClasses(),s.emit("beforeTransitionStart",e,n),s.transitionStart(i,v),e===0?s.transitionEnd(i,v):s.animating||(s.animating=!0,s.onSlideToWrapperTransitionEnd||(s.onSlideToWrapperTransitionEnd=function(z){!s||s.destroyed||z.target===this&&(s.wrapperEl.removeEventListener("transitionend",s.onSlideToWrapperTransitionEnd),s.onSlideToWrapperTransitionEnd=null,delete s.onSlideToWrapperTransitionEnd,s.transitionEnd(i,v))}),s.wrapperEl.addEventListener("transitionend",s.onSlideToWrapperTransitionEnd)),!0}function rf(t=0,e,i=!0,n){typeof t=="string"&&(t=parseInt(t,10));const r=this;if(r.destroyed)return;typeof e>"u"&&(e=r.params.speed);const s=r.grid&&r.params.grid&&r.params.grid.rows>1;let o=t;if(r.params.loop)if(r.virtual&&r.params.virtual.enabled)o=o+r.virtual.slidesBefore;else{let a;if(s){const f=o*r.params.grid.rows;a=r.slides.find(y=>y.getAttribute("data-swiper-slide-index")*1===f).column}else a=r.getSlideIndexByData(o);const l=s?Math.ceil(r.slides.length/r.params.grid.rows):r.slides.length,{centeredSlides:c,slidesOffsetBefore:d,slidesOffsetAfter:h}=r.params,p=c||!!d||!!h;let u=r.params.slidesPerView;u==="auto"?u=r.slidesPerViewDynamic():(u=Math.ceil(parseFloat(r.params.slidesPerView,10)),p&&u%2===0&&(u=u+1));let g=l-a<u;if(p&&(g=g||a<Math.ceil(u/2)),n&&p&&r.params.slidesPerView!=="auto"&&!s&&(g=!1),g){const f=p?a<r.activeIndex?"prev":"next":a-r.activeIndex-1<r.params.slidesPerView?"next":"prev";r.loopFix({direction:f,slideTo:!0,activeSlideIndex:f==="next"?a+1:a-l+1,slideRealIndex:f==="next"?r.realIndex:void 0})}if(s){const f=o*r.params.grid.rows;o=r.slides.find(y=>y.getAttribute("data-swiper-slide-index")*1===f).column}else o=r.getSlideIndexByData(o)}return requestAnimationFrame(()=>{r.slideTo(o,e,i,n)}),r}function sf(t,e=!0,i){const n=this,{enabled:r,params:s,animating:o}=n;if(!r||n.destroyed)return n;typeof t>"u"&&(t=n.params.speed);let a=s.slidesPerGroup;s.slidesPerView==="auto"&&s.slidesPerGroup===1&&s.slidesPerGroupAuto&&(a=Math.max(n.slidesPerViewDynamic("current",!0),1));const l=n.activeIndex<s.slidesPerGroupSkip?1:a,c=n.virtual&&s.virtual.enabled;if(s.loop){if(o&&!c&&s.loopPreventsSliding)return!1;if(n.loopFix({direction:"next"}),n._clientLeft=n.wrapperEl.clientLeft,n.activeIndex===n.slides.length-1&&s.cssMode)return requestAnimationFrame(()=>{n.slideTo(n.activeIndex+l,t,e,i)}),!0}return s.rewind&&n.isEnd?n.slideTo(0,t,e,i):n.slideTo(n.activeIndex+l,t,e,i)}function of(t,e=!0,i){const n=this,{params:r,snapGrid:s,slidesGrid:o,rtlTranslate:a,enabled:l,animating:c}=n;if(!l||n.destroyed)return n;typeof t>"u"&&(t=n.params.speed);const d=n.virtual&&r.virtual.enabled;if(r.loop){if(c&&!d&&r.loopPreventsSliding)return!1;n.loopFix({direction:"prev"}),n._clientLeft=n.wrapperEl.clientLeft}const h=a?n.translate:-n.translate;function p(v){return v<0?-Math.floor(Math.abs(v)):Math.floor(v)}const u=p(h),g=s.map(v=>p(v)),f=r.freeMode&&r.freeMode.enabled;let y=s[g.indexOf(u)-1];if(typeof y>"u"&&(r.cssMode||f)){let v;s.forEach((b,S)=>{u>=b&&(v=S)}),typeof v<"u"&&(y=f?s[v]:s[v>0?v-1:v])}let m=0;if(typeof y<"u"&&(m=o.indexOf(y),m<0&&(m=n.activeIndex-1),r.slidesPerView==="auto"&&r.slidesPerGroup===1&&r.slidesPerGroupAuto&&(m=m-n.slidesPerViewDynamic("previous",!0)+1,m=Math.max(m,0))),r.rewind&&n.isBeginning){const v=n.params.virtual&&n.params.virtual.enabled&&n.virtual?n.virtual.slides.length-1:n.slides.length-1;return n.slideTo(v,t,e,i)}else if(r.loop&&n.activeIndex===0&&r.cssMode)return requestAnimationFrame(()=>{n.slideTo(m,t,e,i)}),!0;return n.slideTo(m,t,e,i)}function af(t,e=!0,i){const n=this;if(!n.destroyed)return typeof t>"u"&&(t=n.params.speed),n.slideTo(n.activeIndex,t,e,i)}function lf(t,e=!0,i,n=.5){const r=this;if(r.destroyed)return;typeof t>"u"&&(t=r.params.speed);let s=r.activeIndex;const o=Math.min(r.params.slidesPerGroupSkip,s),a=o+Math.floor((s-o)/r.params.slidesPerGroup),l=r.rtlTranslate?r.translate:-r.translate;if(l>=r.snapGrid[a]){const c=r.snapGrid[a],d=r.snapGrid[a+1];l-c>(d-c)*n&&(s+=r.params.slidesPerGroup)}else{const c=r.snapGrid[a-1],d=r.snapGrid[a];l-c<=(d-c)*n&&(s-=r.params.slidesPerGroup)}return s=Math.max(s,0),s=Math.min(s,r.slidesGrid.length-1),r.slideTo(s,t,e,i)}function cf(){const t=this;if(t.destroyed)return;const{params:e,slidesEl:i}=t,n=e.slidesPerView==="auto"?t.slidesPerViewDynamic():e.slidesPerView;let r=t.getSlideIndexWhenGrid(t.clickedIndex),s;const o=t.isElement?"swiper-slide":`.${e.slideClass}`,a=t.grid&&t.params.grid&&t.params.grid.rows>1;if(e.loop){if(t.animating)return;s=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),e.centeredSlides?t.slideToLoop(s):r>(a?(t.slides.length-n)/2-(t.params.grid.rows-1):t.slides.length-n)?(t.loopFix(),r=t.getSlideIndex(bn(i,`${o}[data-swiper-slide-index="${s}"]`)[0]),ya(()=>{t.slideTo(r)})):t.slideTo(r)}else t.slideTo(r)}var uf={slideTo:nf,slideToLoop:rf,slideNext:sf,slidePrev:of,slideReset:af,slideToClosest:lf,slideToClickedSlide:cf};function df(t,e){const i=this,{params:n,slidesEl:r}=i;if(!n.loop||i.virtual&&i.params.virtual.enabled)return;const s=()=>{bn(r,`.${n.slideClass}, swiper-slide`).forEach((g,f)=>{g.setAttribute("data-swiper-slide-index",f)})},o=()=>{const u=bn(r,`.${n.slideBlankClass}`);u.forEach(g=>{g.remove()}),u.length>0&&(i.recalcSlides(),i.updateSlides())},a=i.grid&&n.grid&&n.grid.rows>1;n.loopAddBlankSlides&&(n.slidesPerGroup>1||a)&&o();const l=n.slidesPerGroup*(a?n.grid.rows:1),c=i.slides.length%l!==0,d=a&&i.slides.length%n.grid.rows!==0,h=u=>{for(let g=0;g<u;g+=1){const f=i.isElement?Hr("swiper-slide",[n.slideBlankClass]):Hr("div",[n.slideClass,n.slideBlankClass]);i.slidesEl.append(f)}};if(c){if(n.loopAddBlankSlides){const u=l-i.slides.length%l;h(u),i.recalcSlides(),i.updateSlides()}else Ds("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");s()}else if(d){if(n.loopAddBlankSlides){const u=n.grid.rows-i.slides.length%n.grid.rows;h(u),i.recalcSlides(),i.updateSlides()}else Ds("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");s()}else s();const p=n.centeredSlides||!!n.slidesOffsetBefore||!!n.slidesOffsetAfter;i.loopFix({slideRealIndex:t,direction:p?void 0:"next",initial:e})}function ff({slideRealIndex:t,slideTo:e=!0,direction:i,setTranslate:n,activeSlideIndex:r,initial:s,byController:o,byMousewheel:a}={}){const l=this;if(!l.params.loop)return;l.emit("beforeLoopFix");const{slides:c,allowSlidePrev:d,allowSlideNext:h,slidesEl:p,params:u}=l,{centeredSlides:g,slidesOffsetBefore:f,slidesOffsetAfter:y,initialSlide:m}=u,v=g||!!f||!!y;if(l.allowSlidePrev=!0,l.allowSlideNext=!0,l.virtual&&u.virtual.enabled){e&&(!v&&l.snapIndex===0?l.slideTo(l.virtual.slides.length,0,!1,!0):v&&l.snapIndex<u.slidesPerView?l.slideTo(l.virtual.slides.length+l.snapIndex,0,!1,!0):l.snapIndex===l.snapGrid.length-1&&l.slideTo(l.virtual.slidesBefore,0,!1,!0)),l.allowSlidePrev=d,l.allowSlideNext=h,l.emit("loopFix");return}let b=u.slidesPerView;b==="auto"?b=l.slidesPerViewDynamic():(b=Math.ceil(parseFloat(u.slidesPerView,10)),v&&b%2===0&&(b=b+1));const S=u.slidesPerGroupAuto?b:u.slidesPerGroup;let w=v?Math.max(S,Math.ceil(b/2)):S;w%S!==0&&(w+=S-w%S),w+=u.loopAdditionalSlides,l.loopedSlides=w;const k=l.grid&&u.grid&&u.grid.rows>1;c.length<b+w||l.params.effect==="cards"&&c.length<b+w*2?Ds("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):k&&u.grid.fill==="row"&&Ds("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const x=[],z=[],V=k?Math.ceil(c.length/u.grid.rows):c.length,E=s&&V-m<b&&!v;let B=E?m:l.activeIndex;typeof r>"u"?r=l.getSlideIndex(c.find(q=>q.classList.contains(u.slideActiveClass))):B=r;const L=i==="next"||!i,I=i==="prev"||!i;let R=0,$=0;const D=(k?c[r].column:r)+(v&&typeof n>"u"?-b/2+.5:0);if(D<w){R=Math.max(w-D,S);for(let q=0;q<w-D;q+=1){const X=q-Math.floor(q/V)*V;if(k){const _=V-X-1;for(let Z=c.length-1;Z>=0;Z-=1)c[Z].column===_&&x.push(Z)}else x.push(V-X-1)}}else if(D+b>V-w){$=Math.max(D-(V-w*2),S),E&&($=Math.max($,b-V+m+1));for(let q=0;q<$;q+=1){const X=q-Math.floor(q/V)*V;k?c.forEach((_,Z)=>{_.column===X&&z.push(Z)}):z.push(X)}}if(l.__preventObserver__=!0,requestAnimationFrame(()=>{l.__preventObserver__=!1}),l.params.effect==="cards"&&c.length<b+w*2&&(z.includes(r)&&z.splice(z.indexOf(r),1),x.includes(r)&&x.splice(x.indexOf(r),1)),I&&x.forEach(q=>{c[q].swiperLoopMoveDOM=!0,p.prepend(c[q]),c[q].swiperLoopMoveDOM=!1}),L&&z.forEach(q=>{c[q].swiperLoopMoveDOM=!0,p.append(c[q]),c[q].swiperLoopMoveDOM=!1}),l.recalcSlides(),u.slidesPerView==="auto"?l.updateSlides():k&&(x.length>0&&I||z.length>0&&L)&&l.slides.forEach((q,X)=>{l.grid.updateSlide(X,q,l.slides)}),u.watchSlidesProgress&&l.updateSlidesOffset(),e){if(x.length>0&&I){if(typeof t>"u"){const q=l.slidesGrid[B],_=l.slidesGrid[B+R]-q;a?l.setTranslate(l.translate-_):(l.slideTo(B+Math.ceil(R),0,!1,!0),n&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-_,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-_))}else if(n){const q=k?x.length/u.grid.rows:x.length;l.slideTo(l.activeIndex+q,0,!1,!0),l.touchEventsData.currentTranslate=l.translate}}else if(z.length>0&&L)if(typeof t>"u"){const q=l.slidesGrid[B],_=l.slidesGrid[B-$]-q;a?l.setTranslate(l.translate-_):(l.slideTo(B-$,0,!1,!0),n&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-_,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-_))}else{const q=k?z.length/u.grid.rows:z.length;l.slideTo(l.activeIndex-q,0,!1,!0)}}if(l.allowSlidePrev=d,l.allowSlideNext=h,l.controller&&l.controller.control&&!o){const q={slideRealIndex:t,direction:i,setTranslate:n,activeSlideIndex:r,byController:!0};Array.isArray(l.controller.control)?l.controller.control.forEach(X=>{!X.destroyed&&X.params.loop&&X.loopFix({...q,slideTo:X.params.slidesPerView===u.slidesPerView?e:!1})}):l.controller.control instanceof l.constructor&&l.controller.control.params.loop&&l.controller.control.loopFix({...q,slideTo:l.controller.control.params.slidesPerView===u.slidesPerView?e:!1})}l.emit("loopFix")}function hf(){const t=this,{params:e,slidesEl:i}=t;if(!e.loop||!i||t.virtual&&t.params.virtual.enabled)return;t.recalcSlides();const n=[];t.slides.forEach(r=>{const s=typeof r.swiperSlideIndex>"u"?r.getAttribute("data-swiper-slide-index")*1:r.swiperSlideIndex;n[s]=r}),t.slides.forEach(r=>{r.removeAttribute("data-swiper-slide-index")}),n.forEach(r=>{i.append(r)}),t.recalcSlides(),t.slideTo(t.realIndex,0)}var pf={loopCreate:df,loopFix:ff,loopDestroy:hf};function gf(t){const e=this;if(!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)return;const i=e.params.touchEventsTarget==="container"?e.el:e.wrapperEl;e.isElement&&(e.__preventObserver__=!0),i.style.cursor="move",i.style.cursor=t?"grabbing":"grab",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1})}function mf(){const t=this;t.params.watchOverflow&&t.isLocked||t.params.cssMode||(t.isElement&&(t.__preventObserver__=!0),t[t.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1}))}var vf={setGrabCursor:gf,unsetGrabCursor:mf};function yf(t,e=this){function i(n){if(!n||n===Bn()||n===Zt())return null;n.assignedSlot&&(n=n.assignedSlot);const r=n.closest(t);return!r&&!n.getRootNode?null:r||i(n.getRootNode().host)}return i(e)}function nl(t,e,i){const n=Zt(),{params:r}=t,s=r.edgeSwipeDetection,o=r.edgeSwipeThreshold;return s&&(i<=o||i>=n.innerWidth-o)?s==="prevent"?(e.preventDefault(),!0):!1:!0}function _f(t){const e=this,i=Bn();let n=t;n.originalEvent&&(n=n.originalEvent);const r=e.touchEventsData;if(n.type==="pointerdown"){if(r.pointerId!==null&&r.pointerId!==n.pointerId)return;r.pointerId=n.pointerId}else n.type==="touchstart"&&n.targetTouches.length===1&&(r.touchId=n.targetTouches[0].identifier);if(n.type==="touchstart"){nl(e,n,n.targetTouches[0].pageX);return}const{params:s,touches:o,enabled:a}=e;if(!a||!s.simulateTouch&&n.pointerType==="mouse"||e.animating&&s.preventInteractionOnTransition)return;!e.animating&&s.cssMode&&s.loop&&e.loopFix();let l=n.target;if(s.touchEventsTarget==="wrapper"&&!Td(l,e.wrapperEl)||"which"in n&&n.which===3||"button"in n&&n.button>0||r.isTouched&&r.isMoved)return;const c=!!s.noSwipingClass&&s.noSwipingClass!=="",d=n.composedPath?n.composedPath():n.path;c&&n.target&&n.target.shadowRoot&&d&&(l=d[0]);const h=s.noSwipingSelector?s.noSwipingSelector:`.${s.noSwipingClass}`,p=!!(n.target&&n.target.shadowRoot);if(s.noSwiping&&(p?yf(h,l):l.closest(h))){e.allowClick=!0;return}if(s.swipeHandler&&!l.closest(s.swipeHandler))return;o.currentX=n.pageX,o.currentY=n.pageY;const u=o.currentX,g=o.currentY;if(!nl(e,n,u))return;Object.assign(r,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),o.startX=u,o.startY=g,r.touchStartTime=zs(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,s.threshold>0&&(r.allowThresholdMove=!1);let f=!0;l.matches(r.focusableElements)&&(f=!1,l.nodeName==="SELECT"&&(r.isTouched=!1)),i.activeElement&&i.activeElement.matches(r.focusableElements)&&i.activeElement!==l&&(n.pointerType==="mouse"||n.pointerType!=="mouse"&&!l.matches(r.focusableElements))&&i.activeElement.blur();const y=f&&e.allowTouchMove&&s.touchStartPreventDefault;(s.touchStartForcePreventDefault||y)&&!l.isContentEditable&&n.preventDefault(),s.freeMode&&s.freeMode.enabled&&e.freeMode&&e.animating&&!s.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",n)}function bf(t){const e=Bn(),i=this,n=i.touchEventsData,{params:r,touches:s,rtlTranslate:o,enabled:a}=i;if(!a||!r.simulateTouch&&t.pointerType==="mouse")return;let l=t;if(l.originalEvent&&(l=l.originalEvent),l.type==="pointermove"&&(n.touchId!==null||l.pointerId!==n.pointerId))return;let c;if(l.type==="touchmove"){if(c=[...l.changedTouches].find(w=>w.identifier===n.touchId),!c||c.identifier!==n.touchId)return}else c=l;if(!n.isTouched){n.startMoving&&n.isScrolling&&i.emit("touchMoveOpposite",l);return}const d=c.pageX,h=c.pageY;if(l.preventedByNestedSwiper){s.startX=d,s.startY=h;return}if(!i.allowTouchMove){l.target.matches(n.focusableElements)||(i.allowClick=!1),n.isTouched&&(Object.assign(s,{startX:d,startY:h,currentX:d,currentY:h}),n.touchStartTime=zs());return}if(r.touchReleaseOnEdges&&!r.loop)if(i.isVertical()){if(h<s.startY&&i.translate<=i.maxTranslate()||h>s.startY&&i.translate>=i.minTranslate()){n.isTouched=!1,n.isMoved=!1;return}}else{if(o&&(d>s.startX&&-i.translate<=i.maxTranslate()||d<s.startX&&-i.translate>=i.minTranslate()))return;if(!o&&(d<s.startX&&i.translate<=i.maxTranslate()||d>s.startX&&i.translate>=i.minTranslate()))return}if(e.activeElement&&e.activeElement.matches(n.focusableElements)&&e.activeElement!==l.target&&l.pointerType!=="mouse"&&e.activeElement.blur(),e.activeElement&&l.target===e.activeElement&&l.target.matches(n.focusableElements)){n.isMoved=!0,i.allowClick=!1;return}n.allowTouchCallbacks&&i.emit("touchMove",l),s.previousX=s.currentX,s.previousY=s.currentY,s.currentX=d,s.currentY=h;const p=s.currentX-s.startX,u=s.currentY-s.startY;if(i.params.threshold&&Math.sqrt(p**2+u**2)<i.params.threshold)return;if(typeof n.isScrolling>"u"){let w;i.isHorizontal()&&s.currentY===s.startY||i.isVertical()&&s.currentX===s.startX?n.isScrolling=!1:p*p+u*u>=25&&(w=Math.atan2(Math.abs(u),Math.abs(p))*180/Math.PI,n.isScrolling=i.isHorizontal()?w>r.touchAngle:90-w>r.touchAngle)}if(n.isScrolling&&i.emit("touchMoveOpposite",l),typeof n.startMoving>"u"&&(s.currentX!==s.startX||s.currentY!==s.startY)&&(n.startMoving=!0),n.isScrolling||l.type==="touchmove"&&n.preventTouchMoveFromPointerMove){n.isTouched=!1;return}if(!n.startMoving)return;i.allowClick=!1,!r.cssMode&&l.cancelable&&l.preventDefault(),r.touchMoveStopPropagation&&!r.nested&&l.stopPropagation();let g=i.isHorizontal()?p:u,f=i.isHorizontal()?s.currentX-s.previousX:s.currentY-s.previousY;r.oneWayMovement&&(g=Math.abs(g)*(o?1:-1),f=Math.abs(f)*(o?1:-1)),s.diff=g,g*=r.touchRatio,o&&(g=-g,f=-f);const y=i.touchesDirection;i.swipeDirection=g>0?"prev":"next",i.touchesDirection=f>0?"prev":"next";const m=i.params.loop&&!r.cssMode,v=i.touchesDirection==="next"&&i.allowSlideNext||i.touchesDirection==="prev"&&i.allowSlidePrev;if(!n.isMoved){if(m&&v&&i.loopFix({direction:i.swipeDirection}),n.startTranslate=i.getTranslate(),i.setTransition(0),i.animating){const w=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});i.wrapperEl.dispatchEvent(w)}n.allowMomentumBounce=!1,r.grabCursor&&(i.allowSlideNext===!0||i.allowSlidePrev===!0)&&i.setGrabCursor(!0),i.emit("sliderFirstMove",l)}if(new Date().getTime(),r._loopSwapReset!==!1&&n.isMoved&&n.allowThresholdMove&&y!==i.touchesDirection&&m&&v&&Math.abs(g)>=1){Object.assign(s,{startX:d,startY:h,currentX:d,currentY:h,startTranslate:n.currentTranslate}),n.loopSwapReset=!0,n.startTranslate=n.currentTranslate;return}i.emit("sliderMove",l),n.isMoved=!0,n.currentTranslate=g+n.startTranslate;let b=!0,S=r.resistanceRatio;if(r.touchReleaseOnEdges&&(S=0),g>0?(m&&v&&n.allowThresholdMove&&n.currentTranslate>(r.centeredSlides?i.minTranslate()-i.slidesSizesGrid[i.activeIndex+1]-(r.slidesPerView!=="auto"&&i.slides.length-r.slidesPerView>=2?i.slidesSizesGrid[i.activeIndex+1]+i.params.spaceBetween:0)-i.params.spaceBetween:i.minTranslate())&&i.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),n.currentTranslate>i.minTranslate()&&(b=!1,r.resistance&&(n.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+n.startTranslate+g)**S))):g<0&&(m&&v&&n.allowThresholdMove&&n.currentTranslate<(r.centeredSlides?i.maxTranslate()+i.slidesSizesGrid[i.slidesSizesGrid.length-1]+i.params.spaceBetween+(r.slidesPerView!=="auto"&&i.slides.length-r.slidesPerView>=2?i.slidesSizesGrid[i.slidesSizesGrid.length-1]+i.params.spaceBetween:0):i.maxTranslate())&&i.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:i.slides.length-(r.slidesPerView==="auto"?i.slidesPerViewDynamic():Math.ceil(parseFloat(r.slidesPerView,10)))}),n.currentTranslate<i.maxTranslate()&&(b=!1,r.resistance&&(n.currentTranslate=i.maxTranslate()+1-(i.maxTranslate()-n.startTranslate-g)**S))),b&&(l.preventedByNestedSwiper=!0),!i.allowSlideNext&&i.swipeDirection==="next"&&n.currentTranslate<n.startTranslate&&(n.currentTranslate=n.startTranslate),!i.allowSlidePrev&&i.swipeDirection==="prev"&&n.currentTranslate>n.startTranslate&&(n.currentTranslate=n.startTranslate),!i.allowSlidePrev&&!i.allowSlideNext&&(n.currentTranslate=n.startTranslate),r.threshold>0)if(Math.abs(g)>r.threshold||n.allowThresholdMove){if(!n.allowThresholdMove){n.allowThresholdMove=!0,s.startX=s.currentX,s.startY=s.currentY,n.currentTranslate=n.startTranslate,s.diff=i.isHorizontal()?s.currentX-s.startX:s.currentY-s.startY;return}}else{n.currentTranslate=n.startTranslate;return}!r.followFinger||r.cssMode||((r.freeMode&&r.freeMode.enabled&&i.freeMode||r.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),r.freeMode&&r.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(n.currentTranslate),i.setTranslate(n.currentTranslate))}function wf(t){const e=this,i=e.touchEventsData;let n=t;n.originalEvent&&(n=n.originalEvent);let r;if(n.type==="touchend"||n.type==="touchcancel"){if(r=[...n.changedTouches].find(w=>w.identifier===i.touchId),!r||r.identifier!==i.touchId)return}else{if(i.touchId!==null||n.pointerId!==i.pointerId)return;r=n}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(n.type)&&!(["pointercancel","contextmenu"].includes(n.type)&&(e.browser.isSafari||e.browser.isWebView)))return;i.pointerId=null,i.touchId=null;const{params:o,touches:a,rtlTranslate:l,slidesGrid:c,enabled:d}=e;if(!d||!o.simulateTouch&&n.pointerType==="mouse")return;if(i.allowTouchCallbacks&&e.emit("touchEnd",n),i.allowTouchCallbacks=!1,!i.isTouched){i.isMoved&&o.grabCursor&&e.setGrabCursor(!1),i.isMoved=!1,i.startMoving=!1;return}o.grabCursor&&i.isMoved&&i.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);const h=zs(),p=h-i.touchStartTime;if(e.allowClick){const w=n.path||n.composedPath&&n.composedPath();e.updateClickedSlide(w&&w[0]||n.target,w),e.emit("tap click",n),p<300&&h-i.lastClickTime<300&&e.emit("doubleTap doubleClick",n)}if(i.lastClickTime=zs(),ya(()=>{e.destroyed||(e.allowClick=!0)}),!i.isTouched||!i.isMoved||!e.swipeDirection||a.diff===0&&!i.loopSwapReset||i.currentTranslate===i.startTranslate&&!i.loopSwapReset){i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;return}i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;let u;if(o.followFinger?u=l?e.translate:-e.translate:u=-i.currentTranslate,o.cssMode)return;if(o.freeMode&&o.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:u});return}const g=u>=-e.maxTranslate()&&!e.params.loop;let f=0,y=e.slidesSizesGrid[0];for(let w=0;w<c.length;w+=w<o.slidesPerGroupSkip?1:o.slidesPerGroup){const k=w<o.slidesPerGroupSkip-1?1:o.slidesPerGroup;typeof c[w+k]<"u"?(g||u>=c[w]&&u<c[w+k])&&(f=w,y=c[w+k]-c[w]):(g||u>=c[w])&&(f=w,y=c[c.length-1]-c[c.length-2])}let m=null,v=null;o.rewind&&(e.isBeginning?v=o.virtual&&o.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(m=0));const b=(u-c[f])/y,S=f<o.slidesPerGroupSkip-1?1:o.slidesPerGroup;if(p>o.longSwipesMs){if(!o.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(b>=o.longSwipesRatio?e.slideTo(o.rewind&&e.isEnd?m:f+S):e.slideTo(f)),e.swipeDirection==="prev"&&(b>1-o.longSwipesRatio?e.slideTo(f+S):v!==null&&b<0&&Math.abs(b)>o.longSwipesRatio?e.slideTo(v):e.slideTo(f))}else{if(!o.shortSwipes){e.slideTo(e.activeIndex);return}e.navigation&&(n.target===e.navigation.nextEl||n.target===e.navigation.prevEl)?n.target===e.navigation.nextEl?e.slideTo(f+S):e.slideTo(f):(e.swipeDirection==="next"&&e.slideTo(m!==null?m:f+S),e.swipeDirection==="prev"&&e.slideTo(v!==null?v:f))}}function il(){const t=this,{params:e,el:i}=t;if(i&&i.offsetWidth===0)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:n,allowSlidePrev:r,snapGrid:s}=t,o=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses();const a=o&&e.loop;(e.slidesPerView==="auto"||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides&&!a?t.slideTo(t.slides.length-1,0,!1,!0):t.params.loop&&!o?t.slideToLoop(t.realIndex,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&(clearTimeout(t.autoplay.resizeTimeout),t.autoplay.resizeTimeout=setTimeout(()=>{t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.resume()},500)),t.allowSlidePrev=r,t.allowSlideNext=n,t.params.watchOverflow&&s!==t.snapGrid&&t.checkOverflow()}function Sf(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function xf(){const t=this,{wrapperEl:e,rtlTranslate:i,enabled:n}=t;if(!n)return;t.previousTranslate=t.translate,t.isHorizontal()?t.translate=-e.scrollLeft:t.translate=-e.scrollTop,t.translate===0&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();let r;const s=t.maxTranslate()-t.minTranslate();s===0?r=0:r=(t.translate-t.minTranslate())/s,r!==t.progress&&t.updateProgress(i?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}function Ef(t){const e=this;Es(e,t.target),!(e.params.cssMode||e.params.slidesPerView!=="auto"&&!e.params.autoHeight)&&e.update()}function Tf(){const t=this;t.documentTouchHandlerProceeded||(t.documentTouchHandlerProceeded=!0,t.params.touchReleaseOnEdges&&(t.el.style.touchAction="auto"))}const Ic=(t,e)=>{const i=Bn(),{params:n,el:r,wrapperEl:s,device:o}=t,a=!!n.nested,l=e==="on"?"addEventListener":"removeEventListener",c=e;!r||typeof r=="string"||(i[l]("touchstart",t.onDocumentTouchStart,{passive:!1,capture:a}),r[l]("touchstart",t.onTouchStart,{passive:!1}),r[l]("pointerdown",t.onTouchStart,{passive:!1}),i[l]("touchmove",t.onTouchMove,{passive:!1,capture:a}),i[l]("pointermove",t.onTouchMove,{passive:!1,capture:a}),i[l]("touchend",t.onTouchEnd,{passive:!0}),i[l]("pointerup",t.onTouchEnd,{passive:!0}),i[l]("pointercancel",t.onTouchEnd,{passive:!0}),i[l]("touchcancel",t.onTouchEnd,{passive:!0}),i[l]("pointerout",t.onTouchEnd,{passive:!0}),i[l]("pointerleave",t.onTouchEnd,{passive:!0}),i[l]("contextmenu",t.onTouchEnd,{passive:!0}),(n.preventClicks||n.preventClicksPropagation)&&r[l]("click",t.onClick,!0),n.cssMode&&s[l]("scroll",t.onScroll),n.updateOnWindowResize?t[c](o.ios||o.android?"resize orientationchange observerUpdate":"resize observerUpdate",il,!0):t[c]("observerUpdate",il,!0),r[l]("load",t.onLoad,{capture:!0}))};function Mf(){const t=this,{params:e}=t;t.onTouchStart=_f.bind(t),t.onTouchMove=bf.bind(t),t.onTouchEnd=wf.bind(t),t.onDocumentTouchStart=Tf.bind(t),e.cssMode&&(t.onScroll=xf.bind(t)),t.onClick=Sf.bind(t),t.onLoad=Ef.bind(t),Ic(t,"on")}function Cf(){Ic(this,"off")}var Pf={attachEvents:Mf,detachEvents:Cf};const rl=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;function Lf(){const t=this,{realIndex:e,initialized:i,params:n,el:r}=t,s=n.breakpoints;if(!s||s&&Object.keys(s).length===0)return;const o=Bn(),a=n.breakpointsBase==="window"||!n.breakpointsBase?n.breakpointsBase:"container",l=["window","container"].includes(n.breakpointsBase)||!n.breakpointsBase?t.el:o.querySelector(n.breakpointsBase),c=t.getBreakpoint(s,a,l);if(!c||t.currentBreakpoint===c)return;const h=(c in s?s[c]:void 0)||t.originalParams,p=rl(t,n),u=rl(t,h),g=t.params.grabCursor,f=h.grabCursor,y=n.enabled;p&&!u?(r.classList.remove(`${n.containerModifierClass}grid`,`${n.containerModifierClass}grid-column`),t.emitContainerClasses()):!p&&u&&(r.classList.add(`${n.containerModifierClass}grid`),(h.grid.fill&&h.grid.fill==="column"||!h.grid.fill&&n.grid.fill==="column")&&r.classList.add(`${n.containerModifierClass}grid-column`),t.emitContainerClasses()),g&&!f?t.unsetGrabCursor():!g&&f&&t.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(k=>{if(typeof h[k]>"u")return;const x=n[k]&&n[k].enabled,z=h[k]&&h[k].enabled;x&&!z&&t[k].disable(),!x&&z&&t[k].enable()});const m=h.direction&&h.direction!==n.direction,v=n.loop&&(h.slidesPerView!==n.slidesPerView||m),b=n.loop;m&&i&&t.changeDirection(),ln(t.params,h);const S=t.params.enabled,w=t.params.loop;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),y&&!S?t.disable():!y&&S&&t.enable(),t.currentBreakpoint=c,t.emit("_beforeBreakpoint",h),i&&(v?(t.loopDestroy(),t.loopCreate(e),t.updateSlides()):!b&&w?(t.loopCreate(e),t.updateSlides()):b&&!w&&t.loopDestroy()),t.emit("breakpoint",h)}function Of(t,e="window",i){if(!t||e==="container"&&!i)return;let n=!1;const r=Zt(),s=e==="window"?r.innerHeight:i.clientHeight,o=Object.keys(t).map(a=>{if(typeof a=="string"&&a.indexOf("@")===0){const l=parseFloat(a.substr(1));return{value:s*l,point:a}}return{value:a,point:a}});o.sort((a,l)=>parseInt(a.value,10)-parseInt(l.value,10));for(let a=0;a<o.length;a+=1){const{point:l,value:c}=o[a];e==="window"?r.matchMedia(`(min-width: ${c}px)`).matches&&(n=l):c<=i.clientWidth&&(n=l)}return n||"max"}var Af={setBreakpoint:Lf,getBreakpoint:Of};function kf(t,e){const i=[];return t.forEach(n=>{typeof n=="object"?Object.keys(n).forEach(r=>{n[r]&&i.push(e+r)}):typeof n=="string"&&i.push(e+n)}),i}function If(){const t=this,{classNames:e,params:i,rtl:n,el:r,device:s}=t,o=kf(["initialized",i.direction,{"free-mode":t.params.freeMode&&i.freeMode.enabled},{autoheight:i.autoHeight},{rtl:n},{grid:i.grid&&i.grid.rows>1},{"grid-column":i.grid&&i.grid.rows>1&&i.grid.fill==="column"},{android:s.android},{ios:s.ios},{"css-mode":i.cssMode},{centered:i.cssMode&&i.centeredSlides},{"watch-progress":i.watchSlidesProgress}],i.containerModifierClass);e.push(...o),r.classList.add(...e),t.emitContainerClasses()}function Rf(){const t=this,{el:e,classNames:i}=t;!e||typeof e=="string"||(e.classList.remove(...i),t.emitContainerClasses())}var zf={addClasses:If,removeClasses:Rf};function Df(){const t=this,{isLocked:e,params:i}=t,{slidesOffsetBefore:n}=i;if(n){const r=t.slides.length-1,s=t.slidesGrid[r]+t.slidesSizesGrid[r]+n*2;t.isLocked=t.size>s}else t.isLocked=t.snapGrid.length===1;i.allowSlideNext===!0&&(t.allowSlideNext=!t.isLocked),i.allowSlidePrev===!0&&(t.allowSlidePrev=!t.isLocked),e&&e!==t.isLocked&&(t.isEnd=!1),e!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock")}var $f={checkOverflow:Df},sl={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function Ff(t,e){return function(n={}){const r=Object.keys(n)[0],s=n[r];if(typeof s!="object"||s===null){ln(e,n);return}if(t[r]===!0&&(t[r]={enabled:!0}),r==="navigation"&&t[r]&&t[r].enabled&&!t[r].prevEl&&!t[r].nextEl&&(t[r].auto=!0),["pagination","scrollbar"].indexOf(r)>=0&&t[r]&&t[r].enabled&&!t[r].el&&(t[r].auto=!0),!(r in t&&"enabled"in s)){ln(e,n);return}typeof t[r]=="object"&&!("enabled"in t[r])&&(t[r].enabled=!0),t[r]||(t[r]={enabled:!1}),ln(e,n)}}const uo={eventsEmitter:Rd,update:Gd,translate:Kd,transition:tf,slide:uf,loop:pf,grabCursor:vf,events:Pf,breakpoints:Af,checkOverflow:$f,classes:zf},fo={};let _a=class Hn{constructor(...e){let i,n;e.length===1&&e[0].constructor&&Object.prototype.toString.call(e[0]).slice(8,-1)==="Object"?n=e[0]:[i,n]=e,n||(n={}),n=ln({},n),i&&!n.el&&(n.el=i);const r=Bn();if(n.el&&typeof n.el=="string"&&r.querySelectorAll(n.el).length>1){const l=[];return r.querySelectorAll(n.el).forEach(c=>{const d=ln({},n,{el:c});l.push(new Hn(d))}),l}const s=this;s.__swiper__=!0,s.support=Lc(),s.device=Oc({userAgent:n.userAgent}),s.browser=Ac(),s.eventsListeners={},s.eventsAnyListeners=[],s.modules=[...s.__modules__],n.modules&&Array.isArray(n.modules)&&s.modules.push(...n.modules);const o={};s.modules.forEach(l=>{l({params:n,swiper:s,extendParams:Ff(n,o),on:s.on.bind(s),once:s.once.bind(s),off:s.off.bind(s),emit:s.emit.bind(s)})});const a=ln({},sl,o);return s.params=ln({},a,fo,n),s.originalParams=ln({},s.params),s.passedParams=ln({},n),s.params&&s.params.on&&Object.keys(s.params.on).forEach(l=>{s.on(l,s.params.on[l])}),s.params&&s.params.onAny&&s.onAny(s.params.onAny),Object.assign(s,{enabled:s.params.enabled,el:i,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return s.params.direction==="horizontal"},isVertical(){return s.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:s.params.allowSlideNext,allowSlidePrev:s.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:s.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:s.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),s.emit("_swiper"),s.params.init&&s.init(),s}getDirectionLabel(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}getSlideIndex(e){const{slidesEl:i,params:n}=this,r=bn(i,`.${n.slideClass}, swiper-slide`),s=$s(r[0]);return $s(e)-s}getSlideIndexByData(e){return this.getSlideIndex(this.slides.find(i=>i.getAttribute("data-swiper-slide-index")*1===e))}getSlideIndexWhenGrid(e){return this.grid&&this.params.grid&&this.params.grid.rows>1&&(this.params.grid.fill==="column"?e=Math.floor(e/this.params.grid.rows):this.params.grid.fill==="row"&&(e=e%Math.ceil(this.slides.length/this.params.grid.rows))),e}recalcSlides(){const e=this,{slidesEl:i,params:n}=e;e.slides=bn(i,`.${n.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,i){const n=this;e=Math.min(Math.max(e,0),1);const r=n.minTranslate(),o=(n.maxTranslate()-r)*e+r;n.translateTo(o,typeof i>"u"?0:i),n.updateActiveIndex(),n.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=e.el.className.split(" ").filter(n=>n.indexOf("swiper")===0||n.indexOf(e.params.containerModifierClass)===0);e.emit("_containerClasses",i.join(" "))}getSlideClasses(e){const i=this;return i.destroyed?"":e.className.split(" ").filter(n=>n.indexOf("swiper-slide")===0||n.indexOf(i.params.slideClass)===0).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=[];e.slides.forEach(n=>{const r=e.getSlideClasses(n);i.push({slideEl:n,classNames:r}),e.emit("_slideClass",n,r)}),e.emit("_slideClasses",i)}slidesPerViewDynamic(e="current",i=!1){const n=this,{params:r,slides:s,slidesGrid:o,slidesSizesGrid:a,size:l,activeIndex:c}=n;let d=1;if(typeof r.slidesPerView=="number")return r.slidesPerView;if(r.centeredSlides){let h=s[c]?Math.ceil(s[c].swiperSlideSize):0,p;for(let u=c+1;u<s.length;u+=1)s[u]&&!p&&(h+=Math.ceil(s[u].swiperSlideSize),d+=1,h>l&&(p=!0));for(let u=c-1;u>=0;u-=1)s[u]&&!p&&(h+=s[u].swiperSlideSize,d+=1,h>l&&(p=!0))}else if(e==="current")for(let h=c+1;h<s.length;h+=1)(i?o[h]+a[h]-o[c]<l:o[h]-o[c]<l)&&(d+=1);else for(let h=c-1;h>=0;h-=1)o[c]-o[h]<l&&(d+=1);return d}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:i,params:n}=e;n.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach(o=>{o.complete&&Es(e,o)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function r(){const o=e.rtlTranslate?e.translate*-1:e.translate,a=Math.min(Math.max(o,e.maxTranslate()),e.minTranslate());e.setTranslate(a),e.updateActiveIndex(),e.updateSlidesClasses()}let s;if(n.freeMode&&n.freeMode.enabled&&!n.cssMode)r(),n.autoHeight&&e.updateAutoHeight();else{if((n.slidesPerView==="auto"||n.slidesPerView>1)&&e.isEnd&&!n.centeredSlides){const o=e.virtual&&n.virtual.enabled?e.virtual.slides:e.slides;s=e.slideTo(o.length-1,0,!1,!0)}else s=e.slideTo(e.activeIndex,0,!1,!0);s||r()}n.watchOverflow&&i!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,i=!0){const n=this,r=n.params.direction;return e||(e=r==="horizontal"?"vertical":"horizontal"),e===r||e!=="horizontal"&&e!=="vertical"||(n.el.classList.remove(`${n.params.containerModifierClass}${r}`),n.el.classList.add(`${n.params.containerModifierClass}${e}`),n.emitContainerClasses(),n.params.direction=e,n.slides.forEach(s=>{e==="vertical"?s.style.width="":s.style.height=""}),n.emit("changeDirection"),i&&n.update()),n}changeLanguageDirection(e){const i=this;i.rtl&&e==="rtl"||!i.rtl&&e==="ltr"||(i.rtl=e==="rtl",i.rtlTranslate=i.params.direction==="horizontal"&&i.rtl,i.rtl?(i.el.classList.add(`${i.params.containerModifierClass}rtl`),i.el.dir="rtl"):(i.el.classList.remove(`${i.params.containerModifierClass}rtl`),i.el.dir="ltr"),i.update())}mount(e){const i=this;if(i.mounted)return!0;let n=e||i.params.el;if(typeof n=="string"&&(n=document.querySelector(n)),!n)return!1;n.swiper=i,n.parentNode&&n.parentNode.host&&n.parentNode.host.nodeName===i.params.swiperElementNodeName.toUpperCase()&&(i.isElement=!0);const r=()=>`.${(i.params.wrapperClass||"").trim().split(" ").join(".")}`;let o=n&&n.shadowRoot&&n.shadowRoot.querySelector?n.shadowRoot.querySelector(r()):bn(n,r())[0];return!o&&i.params.createElements&&(o=Hr("div",i.params.wrapperClass),n.append(o),bn(n,`.${i.params.slideClass}`).forEach(a=>{o.append(a)})),Object.assign(i,{el:n,wrapperEl:o,slidesEl:i.isElement&&!n.parentNode.host.slideSlots?n.parentNode.host:o,hostEl:i.isElement?n.parentNode.host:n,mounted:!0,rtl:n.dir.toLowerCase()==="rtl"||ri(n,"direction")==="rtl",rtlTranslate:i.params.direction==="horizontal"&&(n.dir.toLowerCase()==="rtl"||ri(n,"direction")==="rtl"),wrongRTL:ri(o,"display")==="-webkit-box"}),!0}init(e){const i=this;if(i.initialized||i.mount(e)===!1)return i;i.emit("beforeInit"),i.params.breakpoints&&i.setBreakpoint(),i.addClasses(),i.updateSize(),i.updateSlides(),i.params.watchOverflow&&i.checkOverflow(),i.params.grabCursor&&i.enabled&&i.setGrabCursor(),i.params.loop&&i.virtual&&i.params.virtual.enabled?i.slideTo(i.params.initialSlide+i.virtual.slidesBefore,0,i.params.runCallbacksOnInit,!1,!0):i.slideTo(i.params.initialSlide,0,i.params.runCallbacksOnInit,!1,!0),i.params.loop&&i.loopCreate(void 0,!0),i.attachEvents();const r=[...i.el.querySelectorAll('[loading="lazy"]')];return i.isElement&&r.push(...i.hostEl.querySelectorAll('[loading="lazy"]')),r.forEach(s=>{s.complete?Es(i,s):s.addEventListener("load",o=>{Es(i,o.target)})}),Bo(i),i.initialized=!0,Bo(i),i.emit("init"),i.emit("afterInit"),i}destroy(e=!0,i=!0){const n=this,{params:r,el:s,wrapperEl:o,slides:a}=n;return typeof n.params>"u"||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),r.loop&&n.loopDestroy(),i&&(n.removeClasses(),s&&typeof s!="string"&&s.removeAttribute("style"),o&&o.removeAttribute("style"),a&&a.length&&a.forEach(l=>{l.classList.remove(r.slideVisibleClass,r.slideFullyVisibleClass,r.slideActiveClass,r.slideNextClass,r.slidePrevClass),l.removeAttribute("style"),l.removeAttribute("data-swiper-slide-index")})),n.emit("destroy"),Object.keys(n.eventsListeners).forEach(l=>{n.off(l)}),e!==!1&&(n.el&&typeof n.el!="string"&&(n.el.swiper=null),bd(n)),n.destroyed=!0),null}static extendDefaults(e){ln(fo,e)}static get extendedDefaults(){return fo}static get defaults(){return sl}static installModule(e){Hn.prototype.__modules__||(Hn.prototype.__modules__=[]);const i=Hn.prototype.__modules__;typeof e=="function"&&i.indexOf(e)<0&&i.push(e)}static use(e){return Array.isArray(e)?(e.forEach(i=>Hn.installModule(i)),Hn):(Hn.installModule(e),Hn)}};Object.keys(uo).forEach(t=>{Object.keys(uo[t]).forEach(e=>{_a.prototype[e]=uo[t][e]})});_a.use([kd,Id]);function Rc(t,e,i,n){return t.params.createElements&&Object.keys(n).forEach(r=>{if(!i[r]&&i.auto===!0){let s=bn(t.el,`.${n[r]}`)[0];s||(s=Hr("div",n[r]),s.className=n[r],t.el.append(s)),i[r]=s,e[r]=s}}),i}const ol='<svg class="swiper-navigation-icon" width="11" height="20" viewBox="0 0 11 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.38296 20.0762C0.111788 19.805 0.111788 19.3654 0.38296 19.0942L9.19758 10.2796L0.38296 1.46497C0.111788 1.19379 0.111788 0.754138 0.38296 0.482966C0.654131 0.211794 1.09379 0.211794 1.36496 0.482966L10.4341 9.55214C10.8359 9.9539 10.8359 10.6053 10.4341 11.007L1.36496 20.0762C1.09379 20.3474 0.654131 20.3474 0.38296 20.0762Z" fill="currentColor"/></svg>';function Bf({swiper:t,extendParams:e,on:i,emit:n}){e({navigation:{nextEl:null,prevEl:null,addIcons:!0,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),t.navigation={nextEl:null,prevEl:null,arrowSvg:ol};function r(u){let g;return u&&typeof u=="string"&&t.isElement&&(g=t.el.querySelector(u)||t.hostEl.querySelector(u),g)?g:(u&&(typeof u=="string"&&(g=[...document.querySelectorAll(u)]),t.params.uniqueNavElements&&typeof u=="string"&&g&&g.length>1&&t.el.querySelectorAll(u).length===1?g=t.el.querySelector(u):g&&g.length===1&&(g=g[0])),u&&!g?u:g)}function s(u,g){const f=t.params.navigation;u=Tt(u),u.forEach(y=>{y&&(y.classList[g?"add":"remove"](...f.disabledClass.split(" ")),y.tagName==="BUTTON"&&(y.disabled=g),t.params.watchOverflow&&t.enabled&&y.classList[t.isLocked?"add":"remove"](f.lockClass))})}function o(){const{nextEl:u,prevEl:g}=t.navigation;if(t.params.loop){s(g,!1),s(u,!1);return}s(g,t.isBeginning&&!t.params.rewind),s(u,t.isEnd&&!t.params.rewind)}function a(u){u.preventDefault(),!(t.isBeginning&&!t.params.loop&&!t.params.rewind)&&(t.slidePrev(),n("navigationPrev"))}function l(u){u.preventDefault(),!(t.isEnd&&!t.params.loop&&!t.params.rewind)&&(t.slideNext(),n("navigationNext"))}function c(){const u=t.params.navigation;if(t.params.navigation=Rc(t,t.originalParams.navigation,t.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(u.nextEl||u.prevEl))return;let g=r(u.nextEl),f=r(u.prevEl);Object.assign(t.navigation,{nextEl:g,prevEl:f}),g=Tt(g),f=Tt(f);const y=(m,v)=>{if(m){if(u.addIcons&&m.matches(".swiper-button-next,.swiper-button-prev")&&!m.querySelector("svg")){const b=document.createElement("div");Fo(b,ol),m.appendChild(b.querySelector("svg")),b.remove()}m.addEventListener("click",v==="next"?l:a)}!t.enabled&&m&&m.classList.add(...u.lockClass.split(" "))};g.forEach(m=>y(m,"next")),f.forEach(m=>y(m,"prev"))}function d(){let{nextEl:u,prevEl:g}=t.navigation;u=Tt(u),g=Tt(g);const f=(y,m)=>{y.removeEventListener("click",m==="next"?l:a),y.classList.remove(...t.params.navigation.disabledClass.split(" "))};u.forEach(y=>f(y,"next")),g.forEach(y=>f(y,"prev"))}i("init",()=>{t.params.navigation.enabled===!1?p():(c(),o())}),i("toEdge fromEdge lock unlock",()=>{o()}),i("destroy",()=>{d()}),i("enable disable",()=>{let{nextEl:u,prevEl:g}=t.navigation;if(u=Tt(u),g=Tt(g),t.enabled){o();return}[...u,...g].filter(f=>!!f).forEach(f=>f.classList.add(t.params.navigation.lockClass))}),i("click",(u,g)=>{let{nextEl:f,prevEl:y}=t.navigation;f=Tt(f),y=Tt(y);const m=g.target;let v=y.includes(m)||f.includes(m);if(t.isElement&&!v){const b=g.path||g.composedPath&&g.composedPath();b&&(v=b.find(S=>f.includes(S)||y.includes(S)))}if(t.params.navigation.hideOnClick&&!v){if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===m||t.pagination.el.contains(m)))return;let b;f.length?b=f[0].classList.contains(t.params.navigation.hiddenClass):y.length&&(b=y[0].classList.contains(t.params.navigation.hiddenClass)),n(b===!0?"navigationShow":"navigationHide"),[...f,...y].filter(S=>!!S).forEach(S=>S.classList.toggle(t.params.navigation.hiddenClass))}});const h=()=>{t.el.classList.remove(...t.params.navigation.navigationDisabledClass.split(" ")),c(),o()},p=()=>{t.el.classList.add(...t.params.navigation.navigationDisabledClass.split(" ")),d()};Object.assign(t.navigation,{enable:h,disable:p,update:o,init:c,destroy:d})}function mr(t=""){return`.${t.trim().replace(/([\.:!+\/()[\]])/g,"\\$1").replace(/ /g,".")}`}function qf({swiper:t,extendParams:e,on:i,emit:n}){const r="swiper-pagination";e({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:m=>m,formatFractionTotal:m=>m,bulletClass:`${r}-bullet`,bulletActiveClass:`${r}-bullet-active`,modifierClass:`${r}-`,currentClass:`${r}-current`,totalClass:`${r}-total`,hiddenClass:`${r}-hidden`,progressbarFillClass:`${r}-progressbar-fill`,progressbarOppositeClass:`${r}-progressbar-opposite`,clickableClass:`${r}-clickable`,lockClass:`${r}-lock`,horizontalClass:`${r}-horizontal`,verticalClass:`${r}-vertical`,paginationDisabledClass:`${r}-disabled`}}),t.pagination={el:null,bullets:[]};let s,o=0;function a(){return!t.params.pagination.el||!t.pagination.el||Array.isArray(t.pagination.el)&&t.pagination.el.length===0}function l(m,v){const{bulletActiveClass:b}=t.params.pagination;m&&(m=m[`${v==="prev"?"previous":"next"}ElementSibling`],m&&(m.classList.add(`${b}-${v}`),m=m[`${v==="prev"?"previous":"next"}ElementSibling`],m&&m.classList.add(`${b}-${v}-${v}`)))}function c(m,v,b){if(m=m%b,v=v%b,v===m+1)return"next";if(v===m-1)return"previous"}function d(m){const v=m.target.closest(mr(t.params.pagination.bulletClass));if(!v)return;m.preventDefault();const b=$s(v)*t.params.slidesPerGroup;if(t.params.loop){if(t.realIndex===b)return;const S=c(t.realIndex,b,t.slides.length);S==="next"?t.slideNext():S==="previous"?t.slidePrev():t.slideToLoop(b)}else t.slideTo(b)}function h(){const m=t.rtl,v=t.params.pagination;if(a())return;let b=t.pagination.el;b=Tt(b);let S,w;const k=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,x=t.params.loop?Math.ceil(k/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(w=t.previousRealIndex||0,S=t.params.slidesPerGroup>1?Math.floor(t.realIndex/t.params.slidesPerGroup):t.realIndex):typeof t.snapIndex<"u"?(S=t.snapIndex,w=t.previousSnapIndex):(w=t.previousIndex||0,S=t.activeIndex||0),v.type==="bullets"&&t.pagination.bullets&&t.pagination.bullets.length>0){const z=t.pagination.bullets;let V,E,B;if(v.dynamicBullets&&(s=$o(z[0],t.isHorizontal()?"width":"height"),b.forEach(L=>{L.style[t.isHorizontal()?"width":"height"]=`${s*(v.dynamicMainBullets+4)}px`}),v.dynamicMainBullets>1&&w!==void 0&&(o+=S-(w||0),o>v.dynamicMainBullets-1?o=v.dynamicMainBullets-1:o<0&&(o=0)),V=Math.max(S-o,0),E=V+(Math.min(z.length,v.dynamicMainBullets)-1),B=(E+V)/2),z.forEach(L=>{const I=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(R=>`${v.bulletActiveClass}${R}`)].map(R=>typeof R=="string"&&R.includes(" ")?R.split(" "):R).flat();L.classList.remove(...I)}),b.length>1)z.forEach(L=>{const I=$s(L);I===S?L.classList.add(...v.bulletActiveClass.split(" ")):t.isElement&&L.setAttribute("part","bullet"),v.dynamicBullets&&(I>=V&&I<=E&&L.classList.add(...`${v.bulletActiveClass}-main`.split(" ")),I===V&&l(L,"prev"),I===E&&l(L,"next"))});else{const L=z[S];if(L&&L.classList.add(...v.bulletActiveClass.split(" ")),t.isElement&&z.forEach((I,R)=>{I.setAttribute("part",R===S?"bullet-active":"bullet")}),v.dynamicBullets){const I=z[V],R=z[E];for(let $=V;$<=E;$+=1)z[$]&&z[$].classList.add(...`${v.bulletActiveClass}-main`.split(" "));l(I,"prev"),l(R,"next")}}if(v.dynamicBullets){const L=Math.min(z.length,v.dynamicMainBullets+4),I=(s*L-s)/2-B*s,R=m?"right":"left";z.forEach($=>{$.style[t.isHorizontal()?R:"top"]=`${I}px`})}}b.forEach((z,V)=>{if(v.type==="fraction"&&(z.querySelectorAll(mr(v.currentClass)).forEach(E=>{E.textContent=v.formatFractionCurrent(S+1)}),z.querySelectorAll(mr(v.totalClass)).forEach(E=>{E.textContent=v.formatFractionTotal(x)})),v.type==="progressbar"){let E;v.progressbarOpposite?E=t.isHorizontal()?"vertical":"horizontal":E=t.isHorizontal()?"horizontal":"vertical";const B=(S+1)/x;let L=1,I=1;E==="horizontal"?L=B:I=B,z.querySelectorAll(mr(v.progressbarFillClass)).forEach(R=>{R.style.transform=`translate3d(0,0,0) scaleX(${L}) scaleY(${I})`,R.style.transitionDuration=`${t.params.speed}ms`})}v.type==="custom"&&v.renderCustom?(Fo(z,v.renderCustom(t,S+1,x)),V===0&&n("paginationRender",z)):(V===0&&n("paginationRender",z),n("paginationUpdate",z)),t.params.watchOverflow&&t.enabled&&z.classList[t.isLocked?"add":"remove"](v.lockClass)})}function p(){const m=t.params.pagination;if(a())return;const v=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.grid&&t.params.grid.rows>1?t.slides.length/Math.ceil(t.params.grid.rows):t.slides.length;let b=t.pagination.el;b=Tt(b);let S="";if(m.type==="bullets"){let w=t.params.loop?Math.ceil(v/t.params.slidesPerGroup):t.snapGrid.length;t.params.freeMode&&t.params.freeMode.enabled&&w>v&&(w=v);for(let k=0;k<w;k+=1)m.renderBullet?S+=m.renderBullet.call(t,k,m.bulletClass):S+=`<${m.bulletElement} ${t.isElement?'part="bullet"':""} class="${m.bulletClass}"></${m.bulletElement}>`}m.type==="fraction"&&(m.renderFraction?S=m.renderFraction.call(t,m.currentClass,m.totalClass):S=`<span class="${m.currentClass}"></span> / <span class="${m.totalClass}"></span>`),m.type==="progressbar"&&(m.renderProgressbar?S=m.renderProgressbar.call(t,m.progressbarFillClass):S=`<span class="${m.progressbarFillClass}"></span>`),t.pagination.bullets=[],b.forEach(w=>{m.type!=="custom"&&Fo(w,S||""),m.type==="bullets"&&t.pagination.bullets.push(...w.querySelectorAll(mr(m.bulletClass)))}),m.type!=="custom"&&n("paginationRender",b[0])}function u(){t.params.pagination=Rc(t,t.originalParams.pagination,t.params.pagination,{el:"swiper-pagination"});const m=t.params.pagination;if(!m.el)return;let v;typeof m.el=="string"&&t.isElement&&(v=t.el.querySelector(m.el)),!v&&typeof m.el=="string"&&(v=[...document.querySelectorAll(m.el)]),v||(v=m.el),!(!v||v.length===0)&&(t.params.uniqueNavElements&&typeof m.el=="string"&&Array.isArray(v)&&v.length>1&&(v=[...t.el.querySelectorAll(m.el)],v.length>1&&(v=v.find(b=>Cc(b,".swiper")[0]===t.el))),Array.isArray(v)&&v.length===1&&(v=v[0]),Object.assign(t.pagination,{el:v}),v=Tt(v),v.forEach(b=>{m.type==="bullets"&&m.clickable&&b.classList.add(...(m.clickableClass||"").split(" ")),b.classList.add(m.modifierClass+m.type),b.classList.add(t.isHorizontal()?m.horizontalClass:m.verticalClass),m.type==="bullets"&&m.dynamicBullets&&(b.classList.add(`${m.modifierClass}${m.type}-dynamic`),o=0,m.dynamicMainBullets<1&&(m.dynamicMainBullets=1)),m.type==="progressbar"&&m.progressbarOpposite&&b.classList.add(m.progressbarOppositeClass),m.clickable&&b.addEventListener("click",d),t.enabled||b.classList.add(m.lockClass)}))}function g(){const m=t.params.pagination;if(a())return;let v=t.pagination.el;v&&(v=Tt(v),v.forEach(b=>{b.classList.remove(m.hiddenClass),b.classList.remove(m.modifierClass+m.type),b.classList.remove(t.isHorizontal()?m.horizontalClass:m.verticalClass),m.clickable&&(b.classList.remove(...(m.clickableClass||"").split(" ")),b.removeEventListener("click",d))})),t.pagination.bullets&&t.pagination.bullets.forEach(b=>b.classList.remove(...m.bulletActiveClass.split(" ")))}i("changeDirection",()=>{if(!t.pagination||!t.pagination.el)return;const m=t.params.pagination;let{el:v}=t.pagination;v=Tt(v),v.forEach(b=>{b.classList.remove(m.horizontalClass,m.verticalClass),b.classList.add(t.isHorizontal()?m.horizontalClass:m.verticalClass)})}),i("init",()=>{t.params.pagination.enabled===!1?y():(u(),p(),h())}),i("activeIndexChange",()=>{typeof t.snapIndex>"u"&&h()}),i("snapIndexChange",()=>{h()}),i("snapGridLengthChange",()=>{p(),h()}),i("destroy",()=>{g()}),i("enable disable",()=>{let{el:m}=t.pagination;m&&(m=Tt(m),m.forEach(v=>v.classList[t.enabled?"remove":"add"](t.params.pagination.lockClass)))}),i("lock unlock",()=>{h()}),i("click",(m,v)=>{const b=v.target,S=Tt(t.pagination.el);if(t.params.pagination.el&&t.params.pagination.hideOnClick&&S&&S.length>0&&!b.classList.contains(t.params.pagination.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&b===t.navigation.nextEl||t.navigation.prevEl&&b===t.navigation.prevEl))return;const w=S[0].classList.contains(t.params.pagination.hiddenClass);n(w===!0?"paginationShow":"paginationHide"),S.forEach(k=>k.classList.toggle(t.params.pagination.hiddenClass))}});const f=()=>{t.el.classList.remove(t.params.pagination.paginationDisabledClass);let{el:m}=t.pagination;m&&(m=Tt(m),m.forEach(v=>v.classList.remove(t.params.pagination.paginationDisabledClass))),u(),p(),h()},y=()=>{t.el.classList.add(t.params.pagination.paginationDisabledClass);let{el:m}=t.pagination;m&&(m=Tt(m),m.forEach(v=>v.classList.add(t.params.pagination.paginationDisabledClass))),g()};Object.assign(t.pagination,{enable:f,disable:y,render:p,update:h,init:u,destroy:g})}function Nf({swiper:t,extendParams:e,on:i}){e({parallax:{enabled:!1}});const n="[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]",r=(a,l)=>{const{rtl:c}=t,d=c?-1:1,h=a.getAttribute("data-swiper-parallax")||"0";let p=a.getAttribute("data-swiper-parallax-x"),u=a.getAttribute("data-swiper-parallax-y");const g=a.getAttribute("data-swiper-parallax-scale"),f=a.getAttribute("data-swiper-parallax-opacity"),y=a.getAttribute("data-swiper-parallax-rotate");if(p||u?(p=p||"0",u=u||"0"):t.isHorizontal()?(p=h,u="0"):(u=h,p="0"),p.indexOf("%")>=0?p=`${parseInt(p,10)*l*d}%`:p=`${p*l*d}px`,u.indexOf("%")>=0?u=`${parseInt(u,10)*l}%`:u=`${u*l}px`,typeof f<"u"&&f!==null){const v=f-(f-1)*(1-Math.abs(l));a.style.opacity=v}let m=`translate3d(${p}, ${u}, 0px)`;if(typeof g<"u"&&g!==null){const v=g-(g-1)*(1-Math.abs(l));m+=` scale(${v})`}if(y&&typeof y<"u"&&y!==null){const v=y*l*-1;m+=` rotate(${v}deg)`}a.style.transform=m},s=()=>{const{el:a,slides:l,progress:c,snapGrid:d,isElement:h}=t,p=bn(a,n);t.isElement&&p.push(...bn(t.hostEl,n)),p.forEach(u=>{r(u,c)}),l.forEach((u,g)=>{let f=u.progress;t.params.slidesPerGroup>1&&t.params.slidesPerView!=="auto"&&(f+=Math.ceil(g/2)-c*(d.length-1)),f=Math.min(Math.max(f,-1),1),u.querySelectorAll(`${n}, [data-swiper-parallax-rotate]`).forEach(y=>{r(y,f)})})},o=(a=t.params.speed)=>{const{el:l,hostEl:c}=t,d=[...l.querySelectorAll(n)];t.isElement&&d.push(...c.querySelectorAll(n)),d.forEach(h=>{let p=parseInt(h.getAttribute("data-swiper-parallax-duration"),10)||a;a===0&&(p=0),h.style.transitionDuration=`${p}ms`})};i("beforeInit",()=>{t.params.parallax.enabled&&(t.params.watchSlidesProgress=!0,t.originalParams.watchSlidesProgress=!0)}),i("init",()=>{t.params.parallax.enabled&&s()}),i("setTranslate",()=>{t.params.parallax.enabled&&s()}),i("setTransition",(a,l)=>{t.params.parallax.enabled&&o(l)})}function Hf({swiper:t,extendParams:e,on:i}){e({controller:{control:void 0,inverse:!1,by:"slide"}}),t.controller={control:void 0};function n(l,c){const d=function(){let g,f,y;return(m,v)=>{for(f=-1,g=m.length;g-f>1;)y=g+f>>1,m[y]<=v?f=y:g=y;return g}}();this.x=l,this.y=c,this.lastIndex=l.length-1;let h,p;return this.interpolate=function(g){return g?(p=d(this.x,g),h=p-1,(g-this.x[h])*(this.y[p]-this.y[h])/(this.x[p]-this.x[h])+this.y[h]):0},this}function r(l){t.controller.spline=t.params.loop?new n(t.slidesGrid,l.slidesGrid):new n(t.snapGrid,l.snapGrid)}function s(l,c){const d=t.controller.control;let h,p;const u=t.constructor;function g(f){if(f.destroyed)return;const y=t.rtlTranslate?-t.translate:t.translate;t.params.controller.by==="slide"&&(r(f),p=-t.controller.spline.interpolate(-y)),(!p||t.params.controller.by==="container")&&(h=(f.maxTranslate()-f.minTranslate())/(t.maxTranslate()-t.minTranslate()),(Number.isNaN(h)||!Number.isFinite(h))&&(h=1),p=(y-t.minTranslate())*h+f.minTranslate()),t.params.controller.inverse&&(p=f.maxTranslate()-p),f.updateProgress(p),f.setTranslate(p,t),f.updateActiveIndex(),f.updateSlidesClasses()}if(Array.isArray(d))for(let f=0;f<d.length;f+=1)d[f]!==c&&d[f]instanceof u&&g(d[f]);else d instanceof u&&c!==d&&g(d)}function o(l,c){const d=t.constructor,h=t.controller.control;let p;function u(g){g.destroyed||(g.setTransition(l,t),l!==0&&(g.transitionStart(),g.params.autoHeight&&ya(()=>{g.updateAutoHeight()}),Pc(g.wrapperEl,()=>{h&&g.transitionEnd()})))}if(Array.isArray(h))for(p=0;p<h.length;p+=1)h[p]!==c&&h[p]instanceof d&&u(h[p]);else h instanceof d&&c!==h&&u(h)}function a(){t.controller.control&&t.controller.spline&&(t.controller.spline=void 0,delete t.controller.spline)}i("beforeInit",()=>{if(typeof window<"u"&&(typeof t.params.controller.control=="string"||t.params.controller.control instanceof HTMLElement)){(typeof t.params.controller.control=="string"?[...document.querySelectorAll(t.params.controller.control)]:[t.params.controller.control]).forEach(c=>{if(t.controller.control||(t.controller.control=[]),c&&c.swiper)t.controller.control.push(c.swiper);else if(c){const d=`${t.params.eventsPrefix}init`,h=p=>{t.controller.control.push(p.detail[0]),t.update(),c.removeEventListener(d,h)};c.addEventListener(d,h)}});return}t.controller.control=t.params.controller.control}),i("update",()=>{a()}),i("resize",()=>{a()}),i("observerUpdate",()=>{a()}),i("setTranslate",(l,c,d)=>{!t.controller.control||t.controller.control.destroyed||t.controller.setTranslate(c,d)}),i("setTransition",(l,c,d)=>{!t.controller.control||t.controller.control.destroyed||t.controller.setTransition(c,d)}),Object.assign(t.controller,{setTranslate:s,setTransition:o})}function Vf({swiper:t,extendParams:e,on:i,emit:n,params:r}){t.autoplay={running:!1,paused:!1,timeLeft:0},e({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let s,o,a=r&&r.autoplay?r.autoplay.delay:3e3,l=r&&r.autoplay?r.autoplay.delay:3e3,c,d=new Date().getTime(),h,p,u,g,f,y,m;function v(D){!t||t.destroyed||!t.wrapperEl||D.target===t.wrapperEl&&(t.wrapperEl.removeEventListener("transitionend",v),!(m||D.detail&&D.detail.bySwiperTouchMove)&&V())}const b=()=>{if(t.destroyed||!t.autoplay.running)return;t.autoplay.paused?h=!0:h&&(l=c,h=!1);const D=t.autoplay.paused?c:d+l-new Date().getTime();t.autoplay.timeLeft=D,n("autoplayTimeLeft",D,D/a),o=requestAnimationFrame(()=>{b()})},S=()=>{let D;return t.virtual&&t.params.virtual.enabled?D=t.slides.find(X=>X.classList.contains("swiper-slide-active")):D=t.slides[t.activeIndex],D?parseInt(D.getAttribute("data-swiper-autoplay"),10):void 0},w=D=>{if(t.destroyed||!t.autoplay.running)return;cancelAnimationFrame(o),b();let q=typeof D>"u"?t.params.autoplay.delay:D;a=t.params.autoplay.delay,l=t.params.autoplay.delay;const X=S();!Number.isNaN(X)&&X>0&&typeof D>"u"&&(q=X,a=X,l=X),c=q;const _=t.params.speed,Z=()=>{!t||t.destroyed||(t.params.autoplay.reverseDirection?!t.isBeginning||t.params.loop||t.params.rewind?(t.slidePrev(_,!0,!0),n("autoplay")):t.params.autoplay.stopOnLastSlide||(t.slideTo(t.slides.length-1,_,!0,!0),n("autoplay")):!t.isEnd||t.params.loop||t.params.rewind?(t.slideNext(_,!0,!0),n("autoplay")):t.params.autoplay.stopOnLastSlide||(t.slideTo(0,_,!0,!0),n("autoplay")),t.params.cssMode&&(d=new Date().getTime(),requestAnimationFrame(()=>{w()})))};return q>0?(clearTimeout(s),s=setTimeout(()=>{Z()},q)):requestAnimationFrame(()=>{Z()}),q},k=()=>{d=new Date().getTime(),t.autoplay.running=!0,w(),n("autoplayStart")},x=()=>{t.autoplay.running=!1,clearTimeout(s),cancelAnimationFrame(o),n("autoplayStop")},z=(D,q)=>{if(t.destroyed||!t.autoplay.running)return;clearTimeout(s),D||(y=!0);const X=()=>{n("autoplayPause"),t.params.autoplay.waitForTransition?t.wrapperEl.addEventListener("transitionend",v):V()};if(t.autoplay.paused=!0,q){f&&(c=t.params.autoplay.delay),f=!1,X();return}c=(c||t.params.autoplay.delay)-(new Date().getTime()-d),!(t.isEnd&&c<0&&!t.params.loop)&&(c<0&&(c=0),X())},V=()=>{t.isEnd&&c<0&&!t.params.loop||t.destroyed||!t.autoplay.running||(d=new Date().getTime(),y?(y=!1,w(c)):w(),t.autoplay.paused=!1,n("autoplayResume"))},E=()=>{if(t.destroyed||!t.autoplay.running)return;const D=Bn();D.visibilityState==="hidden"&&(y=!0,z(!0)),D.visibilityState==="visible"&&V()},B=D=>{D.pointerType==="mouse"&&(y=!0,m=!0,!(t.animating||t.autoplay.paused)&&z(!0))},L=D=>{D.pointerType==="mouse"&&(m=!1,t.autoplay.paused&&V())},I=()=>{t.params.autoplay.pauseOnMouseEnter&&(t.el.addEventListener("pointerenter",B),t.el.addEventListener("pointerleave",L))},R=()=>{t.el&&typeof t.el!="string"&&(t.el.removeEventListener("pointerenter",B),t.el.removeEventListener("pointerleave",L))},$=()=>{Bn().addEventListener("visibilitychange",E)},O=()=>{Bn().removeEventListener("visibilitychange",E)};i("init",()=>{t.params.autoplay.enabled&&(I(),$(),k())}),i("destroy",()=>{R(),O(),t.autoplay.running&&x()}),i("_freeModeStaticRelease",()=>{(u||y)&&V()}),i("_freeModeNoMomentumRelease",()=>{t.params.autoplay.disableOnInteraction?x():z(!0,!0)}),i("beforeTransitionStart",(D,q,X)=>{t.destroyed||!t.autoplay.running||(X||!t.params.autoplay.disableOnInteraction?z(!0,!0):x())}),i("sliderFirstMove",()=>{if(!(t.destroyed||!t.autoplay.running)){if(t.params.autoplay.disableOnInteraction){x();return}p=!0,u=!1,y=!1,g=setTimeout(()=>{y=!0,u=!0,z(!0)},200)}}),i("touchEnd",()=>{if(!(t.destroyed||!t.autoplay.running||!p)){if(clearTimeout(g),clearTimeout(s),t.params.autoplay.disableOnInteraction){u=!1,p=!1;return}u&&t.params.cssMode&&V(),u=!1,p=!1}}),i("slideChange",()=>{t.destroyed||!t.autoplay.running||(f=!0)}),Object.assign(t.autoplay,{start:k,stop:x,pause:z,resume:V})}function zc(t){const{effect:e,swiper:i,on:n,setTranslate:r,setTransition:s,overwriteParams:o,perspective:a,recreateShadows:l,getEffectParams:c}=t;n("beforeInit",()=>{if(i.params.effect!==e)return;i.classNames.push(`${i.params.containerModifierClass}${e}`),a&&a()&&i.classNames.push(`${i.params.containerModifierClass}3d`);const h=o?o():{};Object.assign(i.params,h),Object.assign(i.originalParams,h)}),n("setTranslate _virtualUpdated",()=>{i.params.effect===e&&r()}),n("setTransition",(h,p)=>{i.params.effect===e&&s(p)}),n("transitionEnd",()=>{if(i.params.effect===e&&l){if(!c||!c().slideShadows)return;i.slides.forEach(h=>{h.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(p=>p.remove())}),l()}});let d;n("virtualUpdate",()=>{i.params.effect===e&&(i.slides.length||(d=!0),requestAnimationFrame(()=>{d&&i.slides&&i.slides.length&&(r(),d=!1)}))})}function Dc(t,e){const i=Js(e);return i!==e&&(i.style.backfaceVisibility="hidden",i.style["-webkit-backface-visibility"]="hidden"),i}function $c({swiper:t,duration:e,transformElements:i,allSlides:n}){const{activeIndex:r}=t;if(t.params.virtualTranslate&&e!==0){let s=!1,o;o=i,o.forEach(a=>{Pc(a,()=>{if(s||!t||t.destroyed)return;s=!0,t.animating=!1;const l=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});t.wrapperEl.dispatchEvent(l)})})}}function jf({swiper:t,extendParams:e,on:i}){e({fadeEffect:{crossFade:!1}}),zc({effect:"fade",swiper:t,on:i,setTranslate:()=>{const{slides:s}=t,o=t.params.fadeEffect;for(let a=0;a<s.length;a+=1){const l=t.slides[a];let d=-l.swiperSlideOffset;t.params.virtualTranslate||(d-=t.translate);let h=0;t.isHorizontal()||(h=d,d=0);const p=t.params.fadeEffect.crossFade?Math.max(1-Math.abs(l.progress),0):1+Math.min(Math.max(l.progress,-1),0),u=Dc(o,l);u.style.opacity=p,u.style.transform=`translate3d(${d}px, ${h}px, 0px)`}},setTransition:s=>{const o=t.slides.map(a=>Js(a));o.forEach(a=>{a.style.transitionDuration=`${s}ms`}),$c({swiper:t,duration:s,transformElements:o,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode})})}function Gf(t,e,i){const n=`swiper-slide-shadow${` swiper-slide-shadow-${t}`}`,r=Js(e);let s=r.querySelector(`.${n.split(" ").join(".")}`);return s||(s=Hr("div",n.split(" ")),r.append(s)),s}function Wf({swiper:t,extendParams:e,on:i}){e({creativeEffect:{limitProgress:1,shadowPerProgress:!1,progressMultiplier:1,perspective:!0,prev:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1},next:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1}}});const n=o=>typeof o=="string"?o:`${o}px`;zc({effect:"creative",swiper:t,on:i,setTranslate:()=>{const{slides:o,wrapperEl:a,slidesSizesGrid:l}=t,c=t.params.creativeEffect,{progressMultiplier:d}=c,h=t.params.centeredSlides,p=Pd(t);if(h){const u=l[0]/2-t.params.slidesOffsetBefore||0;a.style.transform=`translateX(calc(50% - ${u}px))`}for(let u=0;u<o.length;u+=1){const g=o[u],f=g.progress,y=Math.min(Math.max(g.progress,-c.limitProgress),c.limitProgress);let m=y;h||(m=Math.min(Math.max(g.originalProgress,-c.limitProgress),c.limitProgress));const v=g.swiperSlideOffset,b=[t.params.cssMode?-v-t.translate:-v,0,0],S=[0,0,0];let w=!1;t.isHorizontal()||(b[1]=b[0],b[0]=0);let k={translate:[0,0,0],rotate:[0,0,0],scale:1,opacity:1};y<0?(k=c.next,w=!0):y>0&&(k=c.prev,w=!0),b.forEach((I,R)=>{b[R]=`calc(${I}px + (${n(k.translate[R])} * ${Math.abs(y*d)}))`}),S.forEach((I,R)=>{let $=k.rotate[R]*Math.abs(y*d);S[R]=$}),g.style.zIndex=-Math.abs(Math.round(f))+o.length;const x=b.join(", "),z=`rotateX(${p(S[0])}deg) rotateY(${p(S[1])}deg) rotateZ(${p(S[2])}deg)`,V=m<0?`scale(${1+(1-k.scale)*m*d})`:`scale(${1-(1-k.scale)*m*d})`,E=m<0?1+(1-k.opacity)*m*d:1-(1-k.opacity)*m*d,B=`translate3d(${x}) ${z} ${V}`;if(w&&k.shadow||!w){let I=g.querySelector(".swiper-slide-shadow");if(!I&&k.shadow&&(I=Gf("creative",g)),I){const R=c.shadowPerProgress?y*(1/c.limitProgress):y;I.style.opacity=Math.min(Math.max(Math.abs(R),0),1)}}const L=Dc(c,g);L.style.transform=B,L.style.opacity=E,k.origin&&(L.style.transformOrigin=k.origin)}},setTransition:o=>{const a=t.slides.map(l=>Js(l));a.forEach(l=>{l.style.transitionDuration=`${o}ms`,l.querySelectorAll(".swiper-slide-shadow").forEach(c=>{c.style.transitionDuration=`${o}ms`})}),$c({swiper:t,duration:o,transformElements:a,allSlides:!0})},perspective:()=>t.params.creativeEffect.perspective,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!t.params.cssMode})})}const Yf='input, textarea, select, [tabindex]:not([tabindex="-1"])',ho=new WeakMap,po=new Map;let al;const Xf=t=>{if(po.has(t))return po.get(t);const e=Object.fromEntries(t.split(",").map(i=>i.trim()).map(i=>i==="self"?["self",!0]:i.startsWith("lock-scroll")?["lockScroll",i.split("lock-scroll:")[1]||"body"]:i.startsWith("target:")?["target",i.slice(7)]:i.startsWith("scope:")?["scope",i.slice(6)]:i.startsWith("media:")?["media",i.slice(6)]:i.startsWith("delay:")?["delay",parseInt(i.slice(6),10)]:i==="focus"?["focus",!0]:i==="outside-close"?["outsideClose",!0]:[null,null]).filter(([i])=>i));return po.set(t,e),e},Uf=t=>!t||typeof window<"u"&&window.matchMedia(t).matches,go=(t,e)=>{try{const i=document.querySelectorAll(t);return i.length===0&&console.warn(`[Data Toggle] No elements matched for ${e} selector: '${t}'`),i}catch(i){return console.error(`[Data Toggle] Invalid selector for ${e}: '${t}'`,i),[]}},ll=(t,e)=>{const i=Xf(t.dataset.toggle);i&&t.addEventListener("click",()=>{if(!Uf(i.media))return;const n=i.scope?go(i.scope,"scope"):[],r=i.target?go(i.target,"target"):[],s=i.lockScroll?go(i.lockScroll,"lock-scroll"):[],o=new Set;i.self&&o.add(t),r.forEach(l=>o.add(l));const a=[...o].some(l=>l.classList.contains(e));if(i.scope)n.forEach(l=>l.classList.remove(e)),a||o.forEach(l=>l.classList.add(e));else{ho.has(t)&&clearTimeout(ho.get(t));const l=setTimeout(()=>{if(o.forEach(c=>c.classList.toggle(e)),s.forEach(c=>c.classList.toggle("overflow-hidden")),i.focus&&r.length===1){const c=r[0].querySelector(Yf);c&&c.focus()}if(i.outsideClose&&r.length===1){const c=r[0],d=h=>{c.contains(h.target)||t.contains(h.target)||(c.classList.remove(e),document.removeEventListener("click",d))};setTimeout(()=>document.addEventListener("click",d),10)}},i.delay??16);ho.set(t,l)}})},Zf=(t="toggle")=>{typeof window<"u"&&typeof document<"u"&&(document.querySelectorAll("[data-toggle]").forEach(e=>ll(e,t)),al=new MutationObserver(e=>{const i=new Set;for(const n of e)for(const r of n.addedNodes)r instanceof HTMLElement&&document.body.contains(r)&&(r.dataset?.toggle&&i.add(r),r.querySelectorAll?.("[data-toggle]")?.forEach(s=>{i.add(s)}));i.forEach(n=>ll(n,t))}),al.observe(document.body,{childList:!0,subtree:!0}))};function Kf(){const t="scrolling-up",e="scrolling-down",i="scrolling-left",n="scrolling-right",r="scroll-at-top",s="scroll-at-bottom",o="scroll-at-left",a="scroll-at-right",l="scroll-at-center",c=new ResizeObserver(g=>{g.forEach(f=>{const y=f.target.__scrollDetectElement;y?.__scrollDetectHandler&&y.__scrollDetectHandler()})}),d=g=>{if(!g||g===document)return!1;const f=getComputedStyle(g);return/(auto|scroll|overlay)/.test(f.overflowY)&&g.scrollHeight>g.clientHeight},h=g=>g===document.scrollingElement||g===document.documentElement||g===document.body,p=(g,f,y)=>{requestAnimationFrame(()=>g.classList.toggle(f,y))},u=g=>{if(g.__scrollDetectInitialized)return;g.__scrollDetectInitialized=!0;const f=(O=>{const D={direction:!1,position:!1,offset:{top:0,left:0,unit:"px"},resetTop:!1,resetBottom:!1,resetLeft:!1,resetRight:!1,sync:!1,syncButtons:null,syncActiveClass:"toggle",syncOffset:0};return O&&O.split(",").map(q=>q.trim()).forEach(q=>{if(q==="direction")D.direction=!0;else if(q==="position")D.position=!0;else if(q==="reset:at-top")D.resetTop=!0;else if(q==="reset:at-bottom")D.resetBottom=!0;else if(q==="reset:at-left")D.resetLeft=!0;else if(q==="reset:at-right")D.resetRight=!0;else if(q==="sync")D.sync=!0;else if(q.startsWith("syncButtons:"))D.syncButtons=q.split(":").slice(1).join(":").trim();else if(q.startsWith("syncActiveClass:")){const X=q.split(":").slice(1).join(":").trim();D.syncActiveClass=X||"toggle"}else if(q.startsWith("syncOffset:"))D.syncOffset=q.split(":").slice(1).join(":").trim()||0;else if(q.startsWith("offset:")){const X=q.split(":")[1].trim();if(X.startsWith("var(")){const _=X.replace("var(","").replace(")","").trim(),Z=getComputedStyle(document.documentElement).getPropertyValue(_),ee=parseFloat(Z);isNaN(ee)||(D.offset.top=ee,D.offset.left=ee,D.offset.unit="px")}else if(X.endsWith("%")){const _=parseFloat(X);D.offset.top=_,D.offset.left=_,D.offset.unit="%"}else{const _=parseFloat(X);D.offset.top=_,D.offset.left=_,D.offset.unit="px"}}}),D})(g.getAttribute("data-scroll")),y=g===document.body||g===document.documentElement,m=y?document.scrollingElement||document.documentElement:g;let v=m.scrollTop,b=m.scrollLeft;const S=(O="top")=>{const D=f.offset.unit,q=O==="left"?f.offset.left:f.offset.top;return D==="%"?Math.max(1,O==="left"?m.scrollWidth-m.clientWidth:m.scrollHeight-m.clientHeight)*q/100:q};let w=null,k=null,x=!1;function z(O){const D=O.getBoundingClientRect(),q=k||m,X=h(q),_=X?window.innerHeight||document.documentElement.clientHeight:q.clientHeight,Z=X?0:q.getBoundingClientRect().top,ee=D.top-Z,te=D.bottom-Z,de=Math.max(0,Math.min(te,_)-Math.max(ee,0));if(de<=0)return{score:0,centerDist:1/0};const ge=Math.max(1,D.height),Se=de/ge,Te=de/_,$e=_/2,Fe=ee+ge/2;return{score:Math.max(Se,Te),centerDist:Math.abs(Fe-$e)}}function V(){if(!w)return;let O=null,D=-1,q=1/0;for(const te of w.sections){const{score:de,centerDist:ge}=z(te);(de>D||de===D&&ge<q)&&(D=de,q=ge,O=te.id)}if(!O||O===w.activeId)return;w.activeId=O;for(const te in w.linkById)w.linkById[te].classList.remove(w.activeClass);const X=w.linkById[O];if(X){X.classList.add(w.activeClass);const te=w.container,de=X.offsetLeft-(te.clientWidth/2-X.clientWidth/2);te.scrollTo({left:(_=de,Z=0,ee=te.scrollWidth-te.clientWidth,Math.max(Z,Math.min(ee,_))),behavior:"smooth"})}var _,Z,ee}function E(){x||(x=!0,requestAnimationFrame(()=>{V(),x=!1}))}if(f.sync||f.syncButtons){if(!f.sync&&f.syncButtons)console.warn('[data-scroll] "syncButtons" provided without "sync". Sync feature disabled.');else if(f.sync&&!f.syncButtons)console.warn('[data-scroll] "sync" provided without "syncButtons:<selector>". Sync feature disabled.');else if(f.sync&&f.syncButtons){const O=(y?document:g).querySelector(f.syncButtons);if(O){const D=Object.create(null);O.querySelectorAll('a[href^="#"]').forEach(X=>{const _=X.getAttribute("href")?.slice(1);_&&(D[_]=X)});const q=[];for(const X in D){const _=document.getElementById(X);_&&q.push(_)}if(q.length){k=(_=>{let Z=_;for(;Z&&Z!==document.documentElement&&Z!==document.body;){if(d(Z))return Z;Z=Z.parentElement}return document.scrollingElement||document.documentElement})(g),w={container:O,linkById:D,sections:q,activeId:null,activeClass:f.syncActiveClass||"toggle"};const X=k||m;(h(X)?window:X).addEventListener("scroll",E,{passive:!0}),window.addEventListener("resize",E),document.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&E()}),h(X)||c.observe(X),requestAnimationFrame(V)}else console.warn("[data-scroll] sync enabled but no matching sections found. Sync feature disabled.")}else console.warn(`[data-scroll] syncButtons selector "${f.syncButtons}" did not match any element. Sync feature disabled.`)}}function B(){const O=m,D=(S("top"),S("left"),O.scrollTop),q=O.scrollLeft,X=O.scrollHeight-O.clientHeight,_=O.scrollWidth-O.clientWidth,Z=Math.max(0,Math.min(D,X)),ee=Math.max(0,Math.min(q,_)),te=O.scrollHeight>O.clientHeight,de=O.scrollWidth>O.clientWidth;if(f.position){const ge=!!te&&Math.abs(Z-0)<=2,Se=!!te&&Math.abs(Z-X)<=2,Te=!!de&&Math.abs(ee-0)<=2,$e=!!de&&Math.abs(ee-_)<=2;te&&(p(g,r,ge),p(g,s,Se)),de&&(p(g,o,Te),p(g,a,$e)),p(g,l,te&&!ge&&!Se||de&&!Te&&!$e)}f.direction&&(te&&Math.abs(Z-v)>2&&(p(g,e,Z>v),p(g,t,Z<v)),de&&Math.abs(ee-b)>2&&(p(g,n,ee>b),p(g,i,ee<b))),te&&(f.resetTop&&Math.abs(Z-0)<=2&&g.classList.remove(t,e),f.resetBottom&&Math.abs(Z-X)<=2&&g.classList.remove(t,e)),de&&(f.resetLeft&&Math.abs(ee-0)<=2&&g.classList.remove(i,n),f.resetRight&&Math.abs(ee-_)<=2&&g.classList.remove(i,n)),v=Z,b=ee,w&&V()}y?window.addEventListener("scroll",B,{passive:!0}):m.addEventListener("scroll",B,{passive:!0}),g.addEventListener("touchend",()=>{setTimeout(B,100)}),m.__scrollDetectElement=g,g.__scrollDetectHandler=()=>B(),c.observe(m),requestAnimationFrame(B);let L=m.scrollHeight,I=m.clientHeight;setInterval(()=>{m.scrollHeight===L&&m.clientHeight===I||(L=m.scrollHeight,I=m.clientHeight,B())},250);let R=0;const $=O=>{O-R>1e3/30&&B(),R=O,requestAnimationFrame($)};requestAnimationFrame($)};document.querySelectorAll("[data-scroll]").forEach(u),new MutationObserver(g=>{g.forEach(f=>{f.addedNodes.forEach(y=>{if(y.nodeType!==1)return;y.hasAttribute?.("data-scroll")&&u(y);const m=y.querySelectorAll?.("[data-scroll]");m?.length&&m.forEach(u)})})}).observe(document.body,{childList:!0,subtree:!0})}function Qf(t){const e={};return t&&t.split(",").forEach(i=>{if(!i)return;const n=i.split(":");if(n.length<2)return;const r=n[0].trim(),s=n.slice(1).join(":").trim();s==="true"?e[r]=!0:s==="false"?e[r]=!1:isNaN(s)?e[r]=s:e[r]=Number(s)}),e}function Jf(t){if(!t||typeof t!="object")return t;const e={};return Object.keys(t).forEach(i=>{const n=Number(i);e[isNaN(n)?i:n]=t[i]}),e}function eh(){document.querySelector(".carousel")&&document.querySelectorAll(".carousel").forEach((t,e)=>{const i=t.dataset.carouselId||`carousel-${e}`,n=`carousel-${e}`;t.classList.add(n);const r=Qf(t.dataset.carousel);try{r.breakpoints=t.dataset.carouselBreakpoints?Jf(JSON.parse(t.dataset.carouselBreakpoints)):void 0}catch(c){console.warn(`Invalid JSON in data-carousel-breakpoints on .carousel-${e}`,c),r.breakpoints=void 0}const s=document.querySelector(`.carousel-prev[data-carousel-id="${i}"]`)||null,o=document.querySelector(`.carousel-next[data-carousel-id="${i}"]`)||null,a=document.querySelector(`.carousel-pagination[data-carousel-id="${i}"]`)||null;r.navigation&&s&&s.classList.add(`${n}-prev`),r.navigation&&o&&o.classList.add(`${n}-next`),r.pagination&&a&&a.classList.add(`${n}-pagination`);const l=[];r.autoplay&&l.push(A),r.pagination&&l.push(P),r.navigation&&l.push(N),r.fadeEffect&&l.push(EF),r.parallax&&l.push(PX),new Swiper(`.${n}`,{modules:l,slidesPerView:r.slidesPerView||"auto",resistance:!0,resistanceRatio:0,speed:r.speed||750,allowTouchMove:r.allowTouchMove!==!1,autoplay:!!r.autoplay&&{delay:r.autoplay,disableOnInteraction:!1,pauseOnMouseEnter:!0},pagination:r.pagination?{el:`.${n}-pagination`,clickable:!0}:void 0,navigation:r.navigation?{prevEl:`.${n}-prev`,nextEl:`.${n}-next`}:void 0,effect:r.fadeEffect?"fade":void 0,fadeEffect:r.fadeEffect?{crossFade:!0}:void 0,parallax:!!r.parallax,loop:!!r.loop,loopAdditionalSlides:r.loopAdditionalSlides||0,observer:r.observer===!0,observeParents:r.observeParents===!0,watchSlidesProgress:r.watchSlidesProgress===!0,breakpoints:r.breakpoints||void 0,autoHeight:r.autoHeight===!0,direction:r.direction||"horizontal"})})}function th(){const t=document.querySelectorAll("[data-animation]"),e=[];if(t.forEach(i=>{const n=nh(i.dataset.animation,i);if(n.media){const r=ih(n.media,i);if(!r||(r.addEventListener("change",s=>{["scroll","load"].includes(n.on)&&(s.matches?n.on==="load"&&window.addEventListener("load",()=>{i.classList.add("animate")}):i.classList.remove("animate"))}),!r.matches))return}["scroll","load"].includes(n.on)&&(i._animationConfig=n,n.on==="load"&&window.addEventListener("load",()=>{i.classList.add("animate")}),n.on==="scroll"&&e.push(i))}),e.length>0){const i={};e.forEach(n=>{const r=(parseFloat(n._animationConfig.threshold)||.01).toString();i[r]||(i[r]=[]),i[r].push(n)}),window.addEventListener("load",()=>{Object.entries(i).forEach(([n,r])=>{const s=new IntersectionObserver(o=>{o.forEach(a=>{const l=a.target,c=l._animationConfig.reset==="on-leave";a.isIntersecting?l.classList.add("animate"):c&&l.classList.remove("animate")})},{threshold:parseFloat(n)});r.forEach(o=>s.observe(o))})})}}function nh(t,e){const i={};t.split(",").map(s=>s.trim()).forEach(s=>{if(!s.includes(":"))return;const[o,a]=s.split(":").map(c=>c.trim());if(!o||!a)return void console.warn(`[data-animation] Invalid entry "${s}" on element:`,e);const l=a.replace(/^\(/,"").replace(/\)$/,"");i[o]=l});const n="threshold"in i||"reset"in i,r="on"in i&&["scroll","load"].includes(i.on);return n&&!r&&console.warn(`[data-animation] "${t}" contains logic-based keys (e.g. threshold/reset) but no valid 'on:scroll' or 'on:load'. Ignored.`,e),i}function ih(t,e){const i=t.match(/^(width|height)\s*(>=|<=|>|<|=)\s*(\d+)(px)?$/);if(!i)return console.warn(`[data-animation] Invalid media query format: "${t}" on element:`,e),null;const[,n,r,s]=i,o=`${s}px`,a={">":`(${n} > ${o})`,"<":`(${n} < ${o})`,">=":`(${n} >= ${o})`,"<=":`(${n} <= ${o})`,"=":`(${n}: ${o})`}[r];return window.matchMedia(a)}function Vn(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Fc(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var pn={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},or={duration:.5,overwrite:!1,delay:0},ba,Ot,lt,wn=1e8,it=1/wn,qo=Math.PI*2,rh=qo/4,sh=0,Bc=Math.sqrt,oh=Math.cos,ah=Math.sin,Mt=function(e){return typeof e=="string"},ht=function(e){return typeof e=="function"},Un=function(e){return typeof e=="number"},wa=function(e){return typeof e>"u"},Nn=function(e){return typeof e=="object"},Jt=function(e){return e!==!1},Sa=function(){return typeof window<"u"},ss=function(e){return ht(e)||Mt(e)},qc=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},Bt=Array.isArray,No=/(?:-?\.?\d|\.)+/gi,Nc=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Xi=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,mo=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,Hc=/[+-]=-?[.\d]+/,Vc=/[^,'"\[\]\s]+/gi,lh=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,dt,Rn,Ho,xa,gn={},Fs={},jc,Gc=function(e){return(Fs=ar(e,gn))&&rn},Ea=function(e,i){return console.warn("Invalid property",e,"set to",i,"Missing plugin? gsap.registerPlugin()")},Vr=function(e,i){return!i&&console.warn(e)},Wc=function(e,i){return e&&(gn[e]=i)&&Fs&&(Fs[e]=i)||gn},jr=function(){return 0},ch={suppressEvents:!0,isStart:!0,kill:!1},Ts={suppressEvents:!0,kill:!1},uh={suppressEvents:!0},Ta={},ui=[],Vo={},Yc,cn={},vo={},cl=30,Ms=[],Ma="",Ca=function(e){var i=e[0],n,r;if(Nn(i)||ht(i)||(e=[e]),!(n=(i._gsap||{}).harness)){for(r=Ms.length;r--&&!Ms[r].targetTest(i););n=Ms[r]}for(r=e.length;r--;)e[r]&&(e[r]._gsap||(e[r]._gsap=new vu(e[r],n)))||e.splice(r,1);return e},Li=function(e){return e._gsap||Ca(Sn(e))[0]._gsap},Xc=function(e,i,n){return(n=e[i])&&ht(n)?e[i]():wa(n)&&e.getAttribute&&e.getAttribute(i)||n},en=function(e,i){return(e=e.split(",")).forEach(i)||e},pt=function(e){return Math.round(e*1e5)/1e5||0},_t=function(e){return Math.round(e*1e7)/1e7||0},Ji=function(e,i){var n=i.charAt(0),r=parseFloat(i.substr(2));return e=parseFloat(e),n==="+"?e+r:n==="-"?e-r:n==="*"?e*r:e/r},dh=function(e,i){for(var n=i.length,r=0;e.indexOf(i[r])<0&&++r<n;);return r<n},Bs=function(){var e=ui.length,i=ui.slice(0),n,r;for(Vo={},ui.length=0,n=0;n<e;n++)r=i[n],r&&r._lazy&&(r.render(r._lazy[0],r._lazy[1],!0)._lazy=0)},Pa=function(e){return!!(e._initted||e._startAt||e.add)},Uc=function(e,i,n,r){ui.length&&!Ot&&Bs(),e.render(i,n,!!(Ot&&i<0&&Pa(e))),ui.length&&!Ot&&Bs()},Zc=function(e){var i=parseFloat(e);return(i||i===0)&&(e+"").match(Vc).length<2?i:Mt(e)?e.trim():e},Kc=function(e){return e},mn=function(e,i){for(var n in i)n in e||(e[n]=i[n]);return e},fh=function(e){return function(i,n){for(var r in n)r in i||r==="duration"&&e||r==="ease"||(i[r]=n[r])}},ar=function(e,i){for(var n in i)e[n]=i[n];return e},ul=function t(e,i){for(var n in i)n!=="__proto__"&&n!=="constructor"&&n!=="prototype"&&(e[n]=Nn(i[n])?t(e[n]||(e[n]={}),i[n]):i[n]);return e},qs=function(e,i){var n={},r;for(r in e)r in i||(n[r]=e[r]);return n},Lr=function(e){var i=e.parent||dt,n=e.keyframes?fh(Bt(e.keyframes)):mn;if(Jt(e.inherit))for(;i;)n(e,i.vars.defaults),i=i.parent||i._dp;return e},hh=function(e,i){for(var n=e.length,r=n===i.length;r&&n--&&e[n]===i[n];);return n<0},Qc=function(e,i,n,r,s){var o=e[r],a;if(s)for(a=i[s];o&&o[s]>a;)o=o._prev;return o?(i._next=o._next,o._next=i):(i._next=e[n],e[n]=i),i._next?i._next._prev=i:e[r]=i,i._prev=o,i.parent=i._dp=e,i},eo=function(e,i,n,r){n===void 0&&(n="_first"),r===void 0&&(r="_last");var s=i._prev,o=i._next;s?s._next=o:e[n]===i&&(e[n]=o),o?o._prev=s:e[r]===i&&(e[r]=s),i._next=i._prev=i.parent=null},hi=function(e,i){e.parent&&(!i||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},Oi=function(e,i){if(e&&(!i||i._end>e._dur||i._start<0))for(var n=e;n;)n._dirty=1,n=n.parent;return e},ph=function(e){for(var i=e.parent;i&&i.parent;)i._dirty=1,i.totalDuration(),i=i.parent;return e},jo=function(e,i,n,r){return e._startAt&&(Ot?e._startAt.revert(Ts):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(i,!0,r))},gh=function t(e){return!e||e._ts&&t(e.parent)},dl=function(e){return e._repeat?lr(e._tTime,e=e.duration()+e._rDelay)*e:0},lr=function(e,i){var n=Math.floor(e=_t(e/i));return e&&n===e?n-1:n},Ns=function(e,i){return(e-i._start)*i._ts+(i._ts>=0?0:i._dirty?i.totalDuration():i._tDur)},to=function(e){return e._end=_t(e._start+(e._tDur/Math.abs(e._ts||e._rts||it)||0))},no=function(e,i){var n=e._dp;return n&&n.smoothChildTiming&&e._ts&&(e._start=_t(n._time-(e._ts>0?i/e._ts:((e._dirty?e.totalDuration():e._tDur)-i)/-e._ts)),to(e),n._dirty||Oi(n,e)),e},Jc=function(e,i){var n;if((i._time||!i._dur&&i._initted||i._start<e._time&&(i._dur||!i.add))&&(n=Ns(e.rawTime(),i),(!i._dur||es(0,i.totalDuration(),n)-i._tTime>it)&&i.render(n,!0)),Oi(e,i)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur<e.duration())for(n=e;n._dp;)n.rawTime()>=0&&n.totalTime(n._tTime),n=n._dp;e._zTime=-it}},Dn=function(e,i,n,r){return i.parent&&hi(i),i._start=_t((Un(n)?n:n||e!==dt?vn(e,n,i):e._time)+i._delay),i._end=_t(i._start+(i.totalDuration()/Math.abs(i.timeScale())||0)),Qc(e,i,"_first","_last",e._sort?"_start":0),Go(i)||(e._recent=i),r||Jc(e,i),e._ts<0&&no(e,e._tTime),e},eu=function(e,i){return(gn.ScrollTrigger||Ea("scrollTrigger",i))&&gn.ScrollTrigger.create(i,e)},tu=function(e,i,n,r,s){if(Oa(e,i,s),!e._initted)return 1;if(!n&&e._pt&&!Ot&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&Yc!==dn.frame)return ui.push(e),e._lazy=[s,r],1},mh=function t(e){var i=e.parent;return i&&i._ts&&i._initted&&!i._lock&&(i.rawTime()<0||t(i))},Go=function(e){var i=e.data;return i==="isFromStart"||i==="isStart"},vh=function(e,i,n,r){var s=e.ratio,o=i<0||!i&&(!e._start&&mh(e)&&!(!e._initted&&Go(e))||(e._ts<0||e._dp._ts<0)&&!Go(e))?0:1,a=e._rDelay,l=0,c,d,h;if(a&&e._repeat&&(l=es(0,e._tDur,i),d=lr(l,a),e._yoyo&&d&1&&(o=1-o),d!==lr(e._tTime,a)&&(s=1-o,e.vars.repeatRefresh&&e._initted&&e.invalidate())),o!==s||Ot||r||e._zTime===it||!i&&e._zTime){if(!e._initted&&tu(e,i,r,n,l))return;for(h=e._zTime,e._zTime=i||(n?it:0),n||(n=i&&!h),e.ratio=o,e._from&&(o=1-o),e._time=0,e._tTime=l,c=e._pt;c;)c.r(o,c.d),c=c._next;i<0&&jo(e,i,n,!0),e._onUpdate&&!n&&hn(e,"onUpdate"),l&&e._repeat&&!n&&e.parent&&hn(e,"onRepeat"),(i>=e._tDur||i<0)&&e.ratio===o&&(o&&hi(e,1),!n&&!Ot&&(hn(e,o?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=i)},yh=function(e,i,n){var r;if(n>i)for(r=e._first;r&&r._start<=n;){if(r.data==="isPause"&&r._start>i)return r;r=r._next}else for(r=e._last;r&&r._start>=n;){if(r.data==="isPause"&&r._start<i)return r;r=r._prev}},cr=function(e,i,n,r){var s=e._repeat,o=_t(i)||0,a=e._tTime/e._tDur;return a&&!r&&(e._time*=o/e._dur),e._dur=o,e._tDur=s?s<0?1e10:_t(o*(s+1)+e._rDelay*s):o,a>0&&!r&&no(e,e._tTime=e._tDur*a),e.parent&&to(e),n||Oi(e.parent,e),e},fl=function(e){return e instanceof Xt?Oi(e):cr(e,e._dur)},_h={_start:0,endTime:jr,totalDuration:jr},vn=function t(e,i,n){var r=e.labels,s=e._recent||_h,o=e.duration()>=wn?s.endTime(!1):e._dur,a,l,c;return Mt(i)&&(isNaN(i)||i in r)?(l=i.charAt(0),c=i.substr(-1)==="%",a=i.indexOf("="),l==="<"||l===">"?(a>=0&&(i=i.replace(/=/,"")),(l==="<"?s._start:s.endTime(s._repeat>=0))+(parseFloat(i.substr(1))||0)*(c?(a<0?s:n).totalDuration()/100:1)):a<0?(i in r||(r[i]=o),r[i]):(l=parseFloat(i.charAt(a-1)+i.substr(a+1)),c&&n&&(l=l/100*(Bt(n)?n[0]:n).totalDuration()),a>1?t(e,i.substr(0,a-1),n)+l:o+l)):i==null?o:+i},Or=function(e,i,n){var r=Un(i[1]),s=(r?2:1)+(e<2?0:1),o=i[s],a,l;if(r&&(o.duration=i[1]),o.parent=n,e){for(a=o,l=n;l&&!("immediateRender"in a);)a=l.vars.defaults||{},l=Jt(l.vars.inherit)&&l.parent;o.immediateRender=Jt(a.immediateRender),e<2?o.runBackwards=1:o.startAt=i[s-1]}return new yt(i[0],o,i[s+1])},vi=function(e,i){return e||e===0?i(e):i},es=function(e,i,n){return n<e?e:n>i?i:n},$t=function(e,i){return!Mt(e)||!(i=lh.exec(e))?"":i[1]},bh=function(e,i,n){return vi(n,function(r){return es(e,i,r)})},Wo=[].slice,nu=function(e,i){return e&&Nn(e)&&"length"in e&&(!i&&!e.length||e.length-1 in e&&Nn(e[0]))&&!e.nodeType&&e!==Rn},wh=function(e,i,n){return n===void 0&&(n=[]),e.forEach(function(r){var s;return Mt(r)&&!i||nu(r,1)?(s=n).push.apply(s,Sn(r)):n.push(r)})||n},Sn=function(e,i,n){return lt&&!i&&lt.selector?lt.selector(e):Mt(e)&&!n&&(Ho||!ur())?Wo.call((i||xa).querySelectorAll(e),0):Bt(e)?wh(e,n):nu(e)?Wo.call(e,0):e?[e]:[]},Yo=function(e){return e=Sn(e)[0]||Vr("Invalid scope")||{},function(i){var n=e.current||e.nativeElement||e;return Sn(i,n.querySelectorAll?n:n===e?Vr("Invalid scope")||xa.createElement("div"):e)}},iu=function(e){return e.sort(function(){return .5-Math.random()})},ru=function(e){if(ht(e))return e;var i=Nn(e)?e:{each:e},n=Ai(i.ease),r=i.from||0,s=parseFloat(i.base)||0,o={},a=r>0&&r<1,l=isNaN(r)||a,c=i.axis,d=r,h=r;return Mt(r)?d=h={center:.5,edges:.5,end:1}[r]||0:!a&&l&&(d=r[0],h=r[1]),function(p,u,g){var f=(g||i).length,y=o[f],m,v,b,S,w,k,x,z,V;if(!y){if(V=i.grid==="auto"?0:(i.grid||[1,wn])[1],!V){for(x=-wn;x<(x=g[V++].getBoundingClientRect().left)&&V<f;);V<f&&V--}for(y=o[f]=[],m=l?Math.min(V,f)*d-.5:r%V,v=V===wn?0:l?f*h/V-.5:r/V|0,x=0,z=wn,k=0;k<f;k++)b=k%V-m,S=v-(k/V|0),y[k]=w=c?Math.abs(c==="y"?S:b):Bc(b*b+S*S),w>x&&(x=w),w<z&&(z=w);r==="random"&&iu(y),y.max=x-z,y.min=z,y.v=f=(parseFloat(i.amount)||parseFloat(i.each)*(V>f?f-1:c?c==="y"?f/V:V:Math.max(V,f/V))||0)*(r==="edges"?-1:1),y.b=f<0?s-f:s,y.u=$t(i.amount||i.each)||0,n=n&&f<0?pu(n):n}return f=(y[p]-y.min)/y.max||0,_t(y.b+(n?n(f):f)*y.v)+y.u}},Xo=function(e){var i=Math.pow(10,((e+"").split(".")[1]||"").length);return function(n){var r=_t(Math.round(parseFloat(n)/e)*e*i);return(r-r%1)/i+(Un(n)?0:$t(n))}},su=function(e,i){var n=Bt(e),r,s;return!n&&Nn(e)&&(r=n=e.radius||wn,e.values?(e=Sn(e.values),(s=!Un(e[0]))&&(r*=r)):e=Xo(e.increment)),vi(i,n?ht(e)?function(o){return s=e(o),Math.abs(s-o)<=r?s:o}:function(o){for(var a=parseFloat(s?o.x:o),l=parseFloat(s?o.y:0),c=wn,d=0,h=e.length,p,u;h--;)s?(p=e[h].x-a,u=e[h].y-l,p=p*p+u*u):p=Math.abs(e[h]-a),p<c&&(c=p,d=h);return d=!r||c<=r?e[d]:o,s||d===o||Un(o)?d:d+$t(o)}:Xo(e))},ou=function(e,i,n,r){return vi(Bt(e)?!i:n===!0?!!(n=0):!r,function(){return Bt(e)?e[~~(Math.random()*e.length)]:(n=n||1e-5)&&(r=n<1?Math.pow(10,(n+"").length-2):1)&&Math.floor(Math.round((e-n/2+Math.random()*(i-e+n*.99))/n)*n*r)/r})},Sh=function(){for(var e=arguments.length,i=new Array(e),n=0;n<e;n++)i[n]=arguments[n];return function(r){return i.reduce(function(s,o){return o(s)},r)}},xh=function(e,i){return function(n){return e(parseFloat(n))+(i||$t(n))}},Eh=function(e,i,n){return lu(e,i,0,1,n)},au=function(e,i,n){return vi(n,function(r){return e[~~i(r)]})},Th=function t(e,i,n){var r=i-e;return Bt(e)?au(e,t(0,e.length),i):vi(n,function(s){return(r+(s-e)%r)%r+e})},Mh=function t(e,i,n){var r=i-e,s=r*2;return Bt(e)?au(e,t(0,e.length-1),i):vi(n,function(o){return o=(s+(o-e)%s)%s||0,e+(o>r?s-o:o)})},Gr=function(e){for(var i=0,n="",r,s,o,a;~(r=e.indexOf("random(",i));)o=e.indexOf(")",r),a=e.charAt(r+7)==="[",s=e.substr(r+7,o-r-7).match(a?Vc:No),n+=e.substr(i,r-i)+ou(a?s:+s[0],a?0:+s[1],+s[2]||1e-5),i=o+1;return n+e.substr(i,e.length-i)},lu=function(e,i,n,r,s){var o=i-e,a=r-n;return vi(s,function(l){return n+((l-e)/o*a||0)})},Ch=function t(e,i,n,r){var s=isNaN(e+i)?0:function(u){return(1-u)*e+u*i};if(!s){var o=Mt(e),a={},l,c,d,h,p;if(n===!0&&(r=1)&&(n=null),o)e={p:e},i={p:i};else if(Bt(e)&&!Bt(i)){for(d=[],h=e.length,p=h-2,c=1;c<h;c++)d.push(t(e[c-1],e[c]));h--,s=function(g){g*=h;var f=Math.min(p,~~g);return d[f](g-f)},n=i}else r||(e=ar(Bt(e)?[]:{},e));if(!d){for(l in i)La.call(a,e,l,"get",i[l]);s=function(g){return Ia(g,a)||(o?e.p:e)}}}return vi(n,s)},hl=function(e,i,n){var r=e.labels,s=wn,o,a,l;for(o in r)a=r[o]-i,a<0==!!n&&a&&s>(a=Math.abs(a))&&(l=o,s=a);return l},hn=function(e,i,n){var r=e.vars,s=r[i],o=lt,a=e._ctx,l,c,d;if(s)return l=r[i+"Params"],c=r.callbackScope||e,n&&ui.length&&Bs(),a&&(lt=a),d=l?s.apply(c,l):s.call(c),lt=o,d},br=function(e){return hi(e),e.scrollTrigger&&e.scrollTrigger.kill(!!Ot),e.progress()<1&&hn(e,"onInterrupt"),e},Ui,cu=[],uu=function(e){if(e)if(e=!e.name&&e.default||e,Sa()||e.headless){var i=e.name,n=ht(e),r=i&&!n&&e.init?function(){this._props=[]}:e,s={init:jr,render:Ia,add:La,kill:Vh,modifier:Hh,rawVars:0},o={targetTest:0,get:0,getSetter:ka,aliases:{},register:0};if(ur(),e!==r){if(cn[i])return;mn(r,mn(qs(e,s),o)),ar(r.prototype,ar(s,qs(e,o))),cn[r.prop=i]=r,e.targetTest&&(Ms.push(r),Ta[i]=1),i=(i==="css"?"CSS":i.charAt(0).toUpperCase()+i.substr(1))+"Plugin"}Wc(i,r),e.register&&e.register(rn,r,tn)}else cu.push(e)},nt=255,wr={aqua:[0,nt,nt],lime:[0,nt,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,nt],navy:[0,0,128],white:[nt,nt,nt],olive:[128,128,0],yellow:[nt,nt,0],orange:[nt,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[nt,0,0],pink:[nt,192,203],cyan:[0,nt,nt],transparent:[nt,nt,nt,0]},yo=function(e,i,n){return e+=e<0?1:e>1?-1:0,(e*6<1?i+(n-i)*e*6:e<.5?n:e*3<2?i+(n-i)*(2/3-e)*6:i)*nt+.5|0},du=function(e,i,n){var r=e?Un(e)?[e>>16,e>>8&nt,e&nt]:0:wr.black,s,o,a,l,c,d,h,p,u,g;if(!r){if(e.substr(-1)===","&&(e=e.substr(0,e.length-1)),wr[e])r=wr[e];else if(e.charAt(0)==="#"){if(e.length<6&&(s=e.charAt(1),o=e.charAt(2),a=e.charAt(3),e="#"+s+s+o+o+a+a+(e.length===5?e.charAt(4)+e.charAt(4):"")),e.length===9)return r=parseInt(e.substr(1,6),16),[r>>16,r>>8&nt,r&nt,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),r=[e>>16,e>>8&nt,e&nt]}else if(e.substr(0,3)==="hsl"){if(r=g=e.match(No),!i)l=+r[0]%360/360,c=+r[1]/100,d=+r[2]/100,o=d<=.5?d*(c+1):d+c-d*c,s=d*2-o,r.length>3&&(r[3]*=1),r[0]=yo(l+1/3,s,o),r[1]=yo(l,s,o),r[2]=yo(l-1/3,s,o);else if(~e.indexOf("="))return r=e.match(Nc),n&&r.length<4&&(r[3]=1),r}else r=e.match(No)||wr.transparent;r=r.map(Number)}return i&&!g&&(s=r[0]/nt,o=r[1]/nt,a=r[2]/nt,h=Math.max(s,o,a),p=Math.min(s,o,a),d=(h+p)/2,h===p?l=c=0:(u=h-p,c=d>.5?u/(2-h-p):u/(h+p),l=h===s?(o-a)/u+(o<a?6:0):h===o?(a-s)/u+2:(s-o)/u+4,l*=60),r[0]=~~(l+.5),r[1]=~~(c*100+.5),r[2]=~~(d*100+.5)),n&&r.length<4&&(r[3]=1),r},fu=function(e){var i=[],n=[],r=-1;return e.split(di).forEach(function(s){var o=s.match(Xi)||[];i.push.apply(i,o),n.push(r+=o.length+1)}),i.c=n,i},pl=function(e,i,n){var r="",s=(e+r).match(di),o=i?"hsla(":"rgba(",a=0,l,c,d,h;if(!s)return e;if(s=s.map(function(p){return(p=du(p,i,1))&&o+(i?p[0]+","+p[1]+"%,"+p[2]+"%,"+p[3]:p.join(","))+")"}),n&&(d=fu(e),l=n.c,l.join(r)!==d.c.join(r)))for(c=e.replace(di,"1").split(Xi),h=c.length-1;a<h;a++)r+=c[a]+(~l.indexOf(a)?s.shift()||o+"0,0,0,0)":(d.length?d:s.length?s:n).shift());if(!c)for(c=e.split(di),h=c.length-1;a<h;a++)r+=c[a]+s[a];return r+c[h]},di=function(){var t="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",e;for(e in wr)t+="|"+e+"\\b";return new RegExp(t+")","gi")}(),Ph=/hsl[a]?\(/,hu=function(e){var i=e.join(" "),n;if(di.lastIndex=0,di.test(i))return n=Ph.test(i),e[1]=pl(e[1],n),e[0]=pl(e[0],n,fu(e[1])),!0},Wr,dn=function(){var t=Date.now,e=500,i=33,n=t(),r=n,s=1e3/240,o=s,a=[],l,c,d,h,p,u,g=function f(y){var m=t()-r,v=y===!0,b,S,w,k;if((m>e||m<0)&&(n+=m-i),r+=m,w=r-n,b=w-o,(b>0||v)&&(k=++h.frame,p=w-h.time*1e3,h.time=w=w/1e3,o+=b+(b>=s?4:s-b),S=1),v||(l=c(f)),S)for(u=0;u<a.length;u++)a[u](w,p,k,y)};return h={time:0,frame:0,tick:function(){g(!0)},deltaRatio:function(y){return p/(1e3/(y||60))},wake:function(){jc&&(!Ho&&Sa()&&(Rn=Ho=window,xa=Rn.document||{},gn.gsap=rn,(Rn.gsapVersions||(Rn.gsapVersions=[])).push(rn.version),Gc(Fs||Rn.GreenSockGlobals||!Rn.gsap&&Rn||{}),cu.forEach(uu)),d=typeof requestAnimationFrame<"u"&&requestAnimationFrame,l&&h.sleep(),c=d||function(y){return setTimeout(y,o-h.time*1e3+1|0)},Wr=1,g(2))},sleep:function(){(d?cancelAnimationFrame:clearTimeout)(l),Wr=0,c=jr},lagSmoothing:function(y,m){e=y||1/0,i=Math.min(m||33,e)},fps:function(y){s=1e3/(y||240),o=h.time*1e3+s},add:function(y,m,v){var b=m?function(S,w,k,x){y(S,w,k,x),h.remove(b)}:y;return h.remove(y),a[v?"unshift":"push"](b),ur(),b},remove:function(y,m){~(m=a.indexOf(y))&&a.splice(m,1)&&u>=m&&u--},_listeners:a},h}(),ur=function(){return!Wr&&dn.wake()},Ye={},Lh=/^[\d.\-M][\d.\-,\s]/,Oh=/["']/g,Ah=function(e){for(var i={},n=e.substr(1,e.length-3).split(":"),r=n[0],s=1,o=n.length,a,l,c;s<o;s++)l=n[s],a=s!==o-1?l.lastIndexOf(","):l.length,c=l.substr(0,a),i[r]=isNaN(c)?c.replace(Oh,"").trim():+c,r=l.substr(a+1).trim();return i},kh=function(e){var i=e.indexOf("(")+1,n=e.indexOf(")"),r=e.indexOf("(",i);return e.substring(i,~r&&r<n?e.indexOf(")",n+1):n)},Ih=function(e){var i=(e+"").split("("),n=Ye[i[0]];return n&&i.length>1&&n.config?n.config.apply(null,~e.indexOf("{")?[Ah(i[1])]:kh(e).split(",").map(Zc)):Ye._CE&&Lh.test(e)?Ye._CE("",e):n},pu=function(e){return function(i){return 1-e(1-i)}},gu=function t(e,i){for(var n=e._first,r;n;)n instanceof Xt?t(n,i):n.vars.yoyoEase&&(!n._yoyo||!n._repeat)&&n._yoyo!==i&&(n.timeline?t(n.timeline,i):(r=n._ease,n._ease=n._yEase,n._yEase=r,n._yoyo=i)),n=n._next},Ai=function(e,i){return e&&(ht(e)?e:Ye[e]||Ih(e))||i},Ni=function(e,i,n,r){n===void 0&&(n=function(l){return 1-i(1-l)}),r===void 0&&(r=function(l){return l<.5?i(l*2)/2:1-i((1-l)*2)/2});var s={easeIn:i,easeOut:n,easeInOut:r},o;return en(e,function(a){Ye[a]=gn[a]=s,Ye[o=a.toLowerCase()]=n;for(var l in s)Ye[o+(l==="easeIn"?".in":l==="easeOut"?".out":".inOut")]=Ye[a+"."+l]=s[l]}),s},mu=function(e){return function(i){return i<.5?(1-e(1-i*2))/2:.5+e((i-.5)*2)/2}},_o=function t(e,i,n){var r=i>=1?i:1,s=(n||(e?.3:.45))/(i<1?i:1),o=s/qo*(Math.asin(1/r)||0),a=function(d){return d===1?1:r*Math.pow(2,-10*d)*ah((d-o)*s)+1},l=e==="out"?a:e==="in"?function(c){return 1-a(1-c)}:mu(a);return s=qo/s,l.config=function(c,d){return t(e,c,d)},l},bo=function t(e,i){i===void 0&&(i=1.70158);var n=function(o){return o?--o*o*((i+1)*o+i)+1:0},r=e==="out"?n:e==="in"?function(s){return 1-n(1-s)}:mu(n);return r.config=function(s){return t(e,s)},r};en("Linear,Quad,Cubic,Quart,Quint,Strong",function(t,e){var i=e<5?e+1:e;Ni(t+",Power"+(i-1),e?function(n){return Math.pow(n,i)}:function(n){return n},function(n){return 1-Math.pow(1-n,i)},function(n){return n<.5?Math.pow(n*2,i)/2:1-Math.pow((1-n)*2,i)/2})});Ye.Linear.easeNone=Ye.none=Ye.Linear.easeIn;Ni("Elastic",_o("in"),_o("out"),_o());(function(t,e){var i=1/e,n=2*i,r=2.5*i,s=function(a){return a<i?t*a*a:a<n?t*Math.pow(a-1.5/e,2)+.75:a<r?t*(a-=2.25/e)*a+.9375:t*Math.pow(a-2.625/e,2)+.984375};Ni("Bounce",function(o){return 1-s(1-o)},s)})(7.5625,2.75);Ni("Expo",function(t){return Math.pow(2,10*(t-1))*t+t*t*t*t*t*t*(1-t)});Ni("Circ",function(t){return-(Bc(1-t*t)-1)});Ni("Sine",function(t){return t===1?1:-oh(t*rh)+1});Ni("Back",bo("in"),bo("out"),bo());Ye.SteppedEase=Ye.steps=gn.SteppedEase={config:function(e,i){e===void 0&&(e=1);var n=1/e,r=e+(i?0:1),s=i?1:0,o=1-it;return function(a){return((r*es(0,o,a)|0)+s)*n}}};or.ease=Ye["quad.out"];en("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(t){return Ma+=t+","+t+"Params,"});var vu=function(e,i){this.id=sh++,e._gsap=this,this.target=e,this.harness=i,this.get=i?i.get:Xc,this.set=i?i.getSetter:ka},Yr=function(){function t(i){this.vars=i,this._delay=+i.delay||0,(this._repeat=i.repeat===1/0?-2:i.repeat||0)&&(this._rDelay=i.repeatDelay||0,this._yoyo=!!i.yoyo||!!i.yoyoEase),this._ts=1,cr(this,+i.duration,1,1),this.data=i.data,lt&&(this._ctx=lt,lt.data.push(this)),Wr||dn.wake()}var e=t.prototype;return e.delay=function(n){return n||n===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+n-this._delay),this._delay=n,this):this._delay},e.duration=function(n){return arguments.length?this.totalDuration(this._repeat>0?n+(n+this._rDelay)*this._repeat:n):this.totalDuration()&&this._dur},e.totalDuration=function(n){return arguments.length?(this._dirty=0,cr(this,this._repeat<0?n:(n-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(n,r){if(ur(),!arguments.length)return this._tTime;var s=this._dp;if(s&&s.smoothChildTiming&&this._ts){for(no(this,n),!s._dp||s.parent||Jc(s,this);s&&s.parent;)s.parent._time!==s._start+(s._ts>=0?s._tTime/s._ts:(s.totalDuration()-s._tTime)/-s._ts)&&s.totalTime(s._tTime,!0),s=s.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&n<this._tDur||this._ts<0&&n>0||!this._tDur&&!n)&&Dn(this._dp,this,this._start-this._delay)}return(this._tTime!==n||!this._dur&&!r||this._initted&&Math.abs(this._zTime)===it||!n&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=n),Uc(this,n,r)),this},e.time=function(n,r){return arguments.length?this.totalTime(Math.min(this.totalDuration(),n+dl(this))%(this._dur+this._rDelay)||(n?this._dur:0),r):this._time},e.totalProgress=function(n,r){return arguments.length?this.totalTime(this.totalDuration()*n,r):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},e.progress=function(n,r){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-n:n)+dl(this),r):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(n,r){var s=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(n-1)*s,r):this._repeat?lr(this._tTime,s)+1:1},e.timeScale=function(n,r){if(!arguments.length)return this._rts===-it?0:this._rts;if(this._rts===n)return this;var s=this.parent&&this._ts?Ns(this.parent._time,this):this._tTime;return this._rts=+n||0,this._ts=this._ps||n===-it?0:this._rts,this.totalTime(es(-Math.abs(this._delay),this.totalDuration(),s),r!==!1),to(this),ph(this)},e.paused=function(n){return arguments.length?(this._ps!==n&&(this._ps=n,n?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(ur(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==it&&(this._tTime-=it)))),this):this._ps},e.startTime=function(n){if(arguments.length){this._start=n;var r=this.parent||this._dp;return r&&(r._sort||!this.parent)&&Dn(r,this,n-this._delay),this}return this._start},e.endTime=function(n){return this._start+(Jt(n)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(n){var r=this.parent||this._dp;return r?n&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Ns(r.rawTime(n),this):this._tTime:this._tTime},e.revert=function(n){n===void 0&&(n=uh);var r=Ot;return Ot=n,Pa(this)&&(this.timeline&&this.timeline.revert(n),this.totalTime(-.01,n.suppressEvents)),this.data!=="nested"&&n.kill!==!1&&this.kill(),Ot=r,this},e.globalTime=function(n){for(var r=this,s=arguments.length?n:r.rawTime();r;)s=r._start+s/(Math.abs(r._ts)||1),r=r._dp;return!this.parent&&this._sat?this._sat.globalTime(n):s},e.repeat=function(n){return arguments.length?(this._repeat=n===1/0?-2:n,fl(this)):this._repeat===-2?1/0:this._repeat},e.repeatDelay=function(n){if(arguments.length){var r=this._time;return this._rDelay=n,fl(this),r?this.time(r):this}return this._rDelay},e.yoyo=function(n){return arguments.length?(this._yoyo=n,this):this._yoyo},e.seek=function(n,r){return this.totalTime(vn(this,n),Jt(r))},e.restart=function(n,r){return this.play().totalTime(n?-this._delay:0,Jt(r)),this._dur||(this._zTime=-it),this},e.play=function(n,r){return n!=null&&this.seek(n,r),this.reversed(!1).paused(!1)},e.reverse=function(n,r){return n!=null&&this.seek(n||this.totalDuration(),r),this.reversed(!0).paused(!1)},e.pause=function(n,r){return n!=null&&this.seek(n,r),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(n){return arguments.length?(!!n!==this.reversed()&&this.timeScale(-this._rts||(n?-it:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-it,this},e.isActive=function(){var n=this.parent||this._dp,r=this._start,s;return!!(!n||this._ts&&this._initted&&n.isActive()&&(s=n.rawTime(!0))>=r&&s<this.endTime(!0)-it)},e.eventCallback=function(n,r,s){var o=this.vars;return arguments.length>1?(r?(o[n]=r,s&&(o[n+"Params"]=s),n==="onUpdate"&&(this._onUpdate=r)):delete o[n],this):o[n]},e.then=function(n){var r=this;return new Promise(function(s){var o=ht(n)?n:Kc,a=function(){var c=r.then;r.then=null,ht(o)&&(o=o(r))&&(o.then||o===r)&&(r.then=c),s(o),r.then=c};r._initted&&r.totalProgress()===1&&r._ts>=0||!r._tTime&&r._ts<0?a():r._prom=a})},e.kill=function(){br(this)},t}();mn(Yr.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-it,_prom:0,_ps:!1,_rts:1});var Xt=function(t){Fc(e,t);function e(n,r){var s;return n===void 0&&(n={}),s=t.call(this,n)||this,s.labels={},s.smoothChildTiming=!!n.smoothChildTiming,s.autoRemoveChildren=!!n.autoRemoveChildren,s._sort=Jt(n.sortChildren),dt&&Dn(n.parent||dt,Vn(s),r),n.reversed&&s.reverse(),n.paused&&s.paused(!0),n.scrollTrigger&&eu(Vn(s),n.scrollTrigger),s}var i=e.prototype;return i.to=function(r,s,o){return Or(0,arguments,this),this},i.from=function(r,s,o){return Or(1,arguments,this),this},i.fromTo=function(r,s,o,a){return Or(2,arguments,this),this},i.set=function(r,s,o){return s.duration=0,s.parent=this,Lr(s).repeatDelay||(s.repeat=0),s.immediateRender=!!s.immediateRender,new yt(r,s,vn(this,o),1),this},i.call=function(r,s,o){return Dn(this,yt.delayedCall(0,r,s),o)},i.staggerTo=function(r,s,o,a,l,c,d){return o.duration=s,o.stagger=o.stagger||a,o.onComplete=c,o.onCompleteParams=d,o.parent=this,new yt(r,o,vn(this,l)),this},i.staggerFrom=function(r,s,o,a,l,c,d){return o.runBackwards=1,Lr(o).immediateRender=Jt(o.immediateRender),this.staggerTo(r,s,o,a,l,c,d)},i.staggerFromTo=function(r,s,o,a,l,c,d,h){return a.startAt=o,Lr(a).immediateRender=Jt(a.immediateRender),this.staggerTo(r,s,a,l,c,d,h)},i.render=function(r,s,o){var a=this._time,l=this._dirty?this.totalDuration():this._tDur,c=this._dur,d=r<=0?0:_t(r),h=this._zTime<0!=r<0&&(this._initted||!c),p,u,g,f,y,m,v,b,S,w,k,x;if(this!==dt&&d>l&&r>=0&&(d=l),d!==this._tTime||o||h){if(a!==this._time&&c&&(d+=this._time-a,r+=this._time-a),p=d,S=this._start,b=this._ts,m=!b,h&&(c||(a=this._zTime),(r||!s)&&(this._zTime=r)),this._repeat){if(k=this._yoyo,y=c+this._rDelay,this._repeat<-1&&r<0)return this.totalTime(y*100+r,s,o);if(p=_t(d%y),d===l?(f=this._repeat,p=c):(w=_t(d/y),f=~~w,f&&f===w&&(p=c,f--),p>c&&(p=c)),w=lr(this._tTime,y),!a&&this._tTime&&w!==f&&this._tTime-w*y-this._dur<=0&&(w=f),k&&f&1&&(p=c-p,x=1),f!==w&&!this._lock){var z=k&&w&1,V=z===(k&&f&1);if(f<w&&(z=!z),a=z?0:d%c?c:d,this._lock=1,this.render(a||(x?0:_t(f*y)),s,!c)._lock=0,this._tTime=d,!s&&this.parent&&hn(this,"onRepeat"),this.vars.repeatRefresh&&!x&&(this.invalidate()._lock=1),a&&a!==this._time||m!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(c=this._dur,l=this._tDur,V&&(this._lock=2,a=z?c:-1e-4,this.render(a,!0),this.vars.repeatRefresh&&!x&&this.invalidate()),this._lock=0,!this._ts&&!m)return this;gu(this,x)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(v=yh(this,_t(a),_t(p)),v&&(d-=p-(p=v._start))),this._tTime=d,this._time=p,this._act=!b,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=r,a=0),!a&&d&&!s&&!w&&(hn(this,"onStart"),this._tTime!==d))return this;if(p>=a&&r>=0)for(u=this._first;u;){if(g=u._next,(u._act||p>=u._start)&&u._ts&&v!==u){if(u.parent!==this)return this.render(r,s,o);if(u.render(u._ts>0?(p-u._start)*u._ts:(u._dirty?u.totalDuration():u._tDur)+(p-u._start)*u._ts,s,o),p!==this._time||!this._ts&&!m){v=0,g&&(d+=this._zTime=-it);break}}u=g}else{u=this._last;for(var E=r<0?r:p;u;){if(g=u._prev,(u._act||E<=u._end)&&u._ts&&v!==u){if(u.parent!==this)return this.render(r,s,o);if(u.render(u._ts>0?(E-u._start)*u._ts:(u._dirty?u.totalDuration():u._tDur)+(E-u._start)*u._ts,s,o||Ot&&Pa(u)),p!==this._time||!this._ts&&!m){v=0,g&&(d+=this._zTime=E?-it:it);break}}u=g}}if(v&&!s&&(this.pause(),v.render(p>=a?0:-it)._zTime=p>=a?1:-1,this._ts))return this._start=S,to(this),this.render(r,s,o);this._onUpdate&&!s&&hn(this,"onUpdate",!0),(d===l&&this._tTime>=this.totalDuration()||!d&&a)&&(S===this._start||Math.abs(b)!==Math.abs(this._ts))&&(this._lock||((r||!c)&&(d===l&&this._ts>0||!d&&this._ts<0)&&hi(this,1),!s&&!(r<0&&!a)&&(d||a||!l)&&(hn(this,d===l&&r>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(d<l&&this.timeScale()>0)&&this._prom())))}return this},i.add=function(r,s){var o=this;if(Un(s)||(s=vn(this,s,r)),!(r instanceof Yr)){if(Bt(r))return r.forEach(function(a){return o.add(a,s)}),this;if(Mt(r))return this.addLabel(r,s);if(ht(r))r=yt.delayedCall(0,r);else return this}return this!==r?Dn(this,r,s):this},i.getChildren=function(r,s,o,a){r===void 0&&(r=!0),s===void 0&&(s=!0),o===void 0&&(o=!0),a===void 0&&(a=-wn);for(var l=[],c=this._first;c;)c._start>=a&&(c instanceof yt?s&&l.push(c):(o&&l.push(c),r&&l.push.apply(l,c.getChildren(!0,s,o)))),c=c._next;return l},i.getById=function(r){for(var s=this.getChildren(1,1,1),o=s.length;o--;)if(s[o].vars.id===r)return s[o]},i.remove=function(r){return Mt(r)?this.removeLabel(r):ht(r)?this.killTweensOf(r):(r.parent===this&&eo(this,r),r===this._recent&&(this._recent=this._last),Oi(this))},i.totalTime=function(r,s){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=_t(dn.time-(this._ts>0?r/this._ts:(this.totalDuration()-r)/-this._ts))),t.prototype.totalTime.call(this,r,s),this._forcing=0,this):this._tTime},i.addLabel=function(r,s){return this.labels[r]=vn(this,s),this},i.removeLabel=function(r){return delete this.labels[r],this},i.addPause=function(r,s,o){var a=yt.delayedCall(0,s||jr,o);return a.data="isPause",this._hasPause=1,Dn(this,a,vn(this,r))},i.removePause=function(r){var s=this._first;for(r=vn(this,r);s;)s._start===r&&s.data==="isPause"&&hi(s),s=s._next},i.killTweensOf=function(r,s,o){for(var a=this.getTweensOf(r,o),l=a.length;l--;)si!==a[l]&&a[l].kill(r,s);return this},i.getTweensOf=function(r,s){for(var o=[],a=Sn(r),l=this._first,c=Un(s),d;l;)l instanceof yt?dh(l._targets,a)&&(c?(!si||l._initted&&l._ts)&&l.globalTime(0)<=s&&l.globalTime(l.totalDuration())>s:!s||l.isActive())&&o.push(l):(d=l.getTweensOf(a,s)).length&&o.push.apply(o,d),l=l._next;return o},i.tweenTo=function(r,s){s=s||{};var o=this,a=vn(o,r),l=s,c=l.startAt,d=l.onStart,h=l.onStartParams,p=l.immediateRender,u,g=yt.to(o,mn({ease:s.ease||"none",lazy:!1,immediateRender:!1,time:a,overwrite:"auto",duration:s.duration||Math.abs((a-(c&&"time"in c?c.time:o._time))/o.timeScale())||it,onStart:function(){if(o.pause(),!u){var y=s.duration||Math.abs((a-(c&&"time"in c?c.time:o._time))/o.timeScale());g._dur!==y&&cr(g,y,0,1).render(g._time,!0,!0),u=1}d&&d.apply(g,h||[])}},s));return p?g.render(0):g},i.tweenFromTo=function(r,s,o){return this.tweenTo(s,mn({startAt:{time:vn(this,r)}},o))},i.recent=function(){return this._recent},i.nextLabel=function(r){return r===void 0&&(r=this._time),hl(this,vn(this,r))},i.previousLabel=function(r){return r===void 0&&(r=this._time),hl(this,vn(this,r),1)},i.currentLabel=function(r){return arguments.length?this.seek(r,!0):this.previousLabel(this._time+it)},i.shiftChildren=function(r,s,o){o===void 0&&(o=0);for(var a=this._first,l=this.labels,c;a;)a._start>=o&&(a._start+=r,a._end+=r),a=a._next;if(s)for(c in l)l[c]>=o&&(l[c]+=r);return Oi(this)},i.invalidate=function(r){var s=this._first;for(this._lock=0;s;)s.invalidate(r),s=s._next;return t.prototype.invalidate.call(this,r)},i.clear=function(r){r===void 0&&(r=!0);for(var s=this._first,o;s;)o=s._next,this.remove(s),s=o;return this._dp&&(this._time=this._tTime=this._pTime=0),r&&(this.labels={}),Oi(this)},i.totalDuration=function(r){var s=0,o=this,a=o._last,l=wn,c,d,h;if(arguments.length)return o.timeScale((o._repeat<0?o.duration():o.totalDuration())/(o.reversed()?-r:r));if(o._dirty){for(h=o.parent;a;)c=a._prev,a._dirty&&a.totalDuration(),d=a._start,d>l&&o._sort&&a._ts&&!o._lock?(o._lock=1,Dn(o,a,d-a._delay,1)._lock=0):l=d,d<0&&a._ts&&(s-=d,(!h&&!o._dp||h&&h.smoothChildTiming)&&(o._start+=d/o._ts,o._time-=d,o._tTime-=d),o.shiftChildren(-d,!1,-1/0),l=0),a._end>s&&a._ts&&(s=a._end),a=c;cr(o,o===dt&&o._time>s?o._time:s,1,1),o._dirty=0}return o._tDur},e.updateRoot=function(r){if(dt._ts&&(Uc(dt,Ns(r,dt)),Yc=dn.frame),dn.frame>=cl){cl+=pn.autoSleep||120;var s=dt._first;if((!s||!s._ts)&&pn.autoSleep&&dn._listeners.length<2){for(;s&&!s._ts;)s=s._next;s||dn.sleep()}}},e}(Yr);mn(Xt.prototype,{_lock:0,_hasPause:0,_forcing:0});var Rh=function(e,i,n,r,s,o,a){var l=new tn(this._pt,e,i,0,1,xu,null,s),c=0,d=0,h,p,u,g,f,y,m,v;for(l.b=n,l.e=r,n+="",r+="",(m=~r.indexOf("random("))&&(r=Gr(r)),o&&(v=[n,r],o(v,e,i),n=v[0],r=v[1]),p=n.match(mo)||[];h=mo.exec(r);)g=h[0],f=r.substring(c,h.index),u?u=(u+1)%5:f.substr(-5)==="rgba("&&(u=1),g!==p[d++]&&(y=parseFloat(p[d-1])||0,l._pt={_next:l._pt,p:f||d===1?f:",",s:y,c:g.charAt(1)==="="?Ji(y,g)-y:parseFloat(g)-y,m:u&&u<4?Math.round:0},c=mo.lastIndex);return l.c=c<r.length?r.substring(c,r.length):"",l.fp=a,(Hc.test(r)||m)&&(l.e=0),this._pt=l,l},La=function(e,i,n,r,s,o,a,l,c,d){ht(r)&&(r=r(s||0,e,o));var h=e[i],p=n!=="get"?n:ht(h)?c?e[i.indexOf("set")||!ht(e["get"+i.substr(3)])?i:"get"+i.substr(3)](c):e[i]():h,u=ht(h)?c?Bh:wu:Aa,g;if(Mt(r)&&(~r.indexOf("random(")&&(r=Gr(r)),r.charAt(1)==="="&&(g=Ji(p,r)+($t(p)||0),(g||g===0)&&(r=g))),!d||p!==r||Uo)return!isNaN(p*r)&&r!==""?(g=new tn(this._pt,e,i,+p||0,r-(p||0),typeof h=="boolean"?Nh:Su,0,u),c&&(g.fp=c),a&&g.modifier(a,this,e),this._pt=g):(!h&&!(i in e)&&Ea(i,r),Rh.call(this,e,i,p,r,u,l||pn.stringFilter,c))},zh=function(e,i,n,r,s){if(ht(e)&&(e=Ar(e,s,i,n,r)),!Nn(e)||e.style&&e.nodeType||Bt(e)||qc(e))return Mt(e)?Ar(e,s,i,n,r):e;var o={},a;for(a in e)o[a]=Ar(e[a],s,i,n,r);return o},yu=function(e,i,n,r,s,o){var a,l,c,d;if(cn[e]&&(a=new cn[e]).init(s,a.rawVars?i[e]:zh(i[e],r,s,o,n),n,r,o)!==!1&&(n._pt=l=new tn(n._pt,s,e,0,1,a.render,a,0,a.priority),n!==Ui))for(c=n._ptLookup[n._targets.indexOf(s)],d=a._props.length;d--;)c[a._props[d]]=l;return a},si,Uo,Oa=function t(e,i,n){var r=e.vars,s=r.ease,o=r.startAt,a=r.immediateRender,l=r.lazy,c=r.onUpdate,d=r.runBackwards,h=r.yoyoEase,p=r.keyframes,u=r.autoRevert,g=e._dur,f=e._startAt,y=e._targets,m=e.parent,v=m&&m.data==="nested"?m.vars.targets:y,b=e._overwrite==="auto"&&!ba,S=e.timeline,w,k,x,z,V,E,B,L,I,R,$,O,D;if(S&&(!p||!s)&&(s="none"),e._ease=Ai(s,or.ease),e._yEase=h?pu(Ai(h===!0?s:h,or.ease)):0,h&&e._yoyo&&!e._repeat&&(h=e._yEase,e._yEase=e._ease,e._ease=h),e._from=!S&&!!r.runBackwards,!S||p&&!r.stagger){if(L=y[0]?Li(y[0]).harness:0,O=L&&r[L.prop],w=qs(r,Ta),f&&(f._zTime<0&&f.progress(1),i<0&&d&&a&&!u?f.render(-1,!0):f.revert(d&&g?Ts:ch),f._lazy=0),o){if(hi(e._startAt=yt.set(y,mn({data:"isStart",overwrite:!1,parent:m,immediateRender:!0,lazy:!f&&Jt(l),startAt:null,delay:0,onUpdate:c&&function(){return hn(e,"onUpdate")},stagger:0},o))),e._startAt._dp=0,e._startAt._sat=e,i<0&&(Ot||!a&&!u)&&e._startAt.revert(Ts),a&&g&&i<=0&&n<=0){i&&(e._zTime=i);return}}else if(d&&g&&!f){if(i&&(a=!1),x=mn({overwrite:!1,data:"isFromStart",lazy:a&&!f&&Jt(l),immediateRender:a,stagger:0,parent:m},w),O&&(x[L.prop]=O),hi(e._startAt=yt.set(y,x)),e._startAt._dp=0,e._startAt._sat=e,i<0&&(Ot?e._startAt.revert(Ts):e._startAt.render(-1,!0)),e._zTime=i,!a)t(e._startAt,it,it);else if(!i)return}for(e._pt=e._ptCache=0,l=g&&Jt(l)||l&&!g,k=0;k<y.length;k++){if(V=y[k],B=V._gsap||Ca(y)[k]._gsap,e._ptLookup[k]=R={},Vo[B.id]&&ui.length&&Bs(),$=v===y?k:v.indexOf(V),L&&(I=new L).init(V,O||w,e,$,v)!==!1&&(e._pt=z=new tn(e._pt,V,I.name,0,1,I.render,I,0,I.priority),I._props.forEach(function(q){R[q]=z}),I.priority&&(E=1)),!L||O)for(x in w)cn[x]&&(I=yu(x,w,e,$,V,v))?I.priority&&(E=1):R[x]=z=La.call(e,V,x,"get",w[x],$,v,0,r.stringFilter);e._op&&e._op[k]&&e.kill(V,e._op[k]),b&&e._pt&&(si=e,dt.killTweensOf(V,R,e.globalTime(i)),D=!e.parent,si=0),e._pt&&l&&(Vo[B.id]=1)}E&&Eu(e),e._onInit&&e._onInit(e)}e._onUpdate=c,e._initted=(!e._op||e._pt)&&!D,p&&i<=0&&S.render(wn,!0,!0)},Dh=function(e,i,n,r,s,o,a,l){var c=(e._pt&&e._ptCache||(e._ptCache={}))[i],d,h,p,u;if(!c)for(c=e._ptCache[i]=[],p=e._ptLookup,u=e._targets.length;u--;){if(d=p[u][i],d&&d.d&&d.d._pt)for(d=d.d._pt;d&&d.p!==i&&d.fp!==i;)d=d._next;if(!d)return Uo=1,e.vars[i]="+=0",Oa(e,a),Uo=0,l?Vr(i+" not eligible for reset"):1;c.push(d)}for(u=c.length;u--;)h=c[u],d=h._pt||h,d.s=(r||r===0)&&!s?r:d.s+(r||0)+o*d.c,d.c=n-d.s,h.e&&(h.e=pt(n)+$t(h.e)),h.b&&(h.b=d.s+$t(h.b))},$h=function(e,i){var n=e[0]?Li(e[0]).harness:0,r=n&&n.aliases,s,o,a,l;if(!r)return i;s=ar({},i);for(o in r)if(o in s)for(l=r[o].split(","),a=l.length;a--;)s[l[a]]=s[o];return s},Fh=function(e,i,n,r){var s=i.ease||r||"power1.inOut",o,a;if(Bt(i))a=n[e]||(n[e]=[]),i.forEach(function(l,c){return a.push({t:c/(i.length-1)*100,v:l,e:s})});else for(o in i)a=n[o]||(n[o]=[]),o==="ease"||a.push({t:parseFloat(e),v:i[o],e:s})},Ar=function(e,i,n,r,s){return ht(e)?e.call(i,n,r,s):Mt(e)&&~e.indexOf("random(")?Gr(e):e},_u=Ma+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",bu={};en(_u+",id,stagger,delay,duration,paused,scrollTrigger",function(t){return bu[t]=1});var yt=function(t){Fc(e,t);function e(n,r,s,o){var a;typeof r=="number"&&(s.duration=r,r=s,s=null),a=t.call(this,o?r:Lr(r))||this;var l=a.vars,c=l.duration,d=l.delay,h=l.immediateRender,p=l.stagger,u=l.overwrite,g=l.keyframes,f=l.defaults,y=l.scrollTrigger,m=l.yoyoEase,v=r.parent||dt,b=(Bt(n)||qc(n)?Un(n[0]):"length"in r)?[n]:Sn(n),S,w,k,x,z,V,E,B;if(a._targets=b.length?Ca(b):Vr("GSAP target "+n+" not found. https://gsap.com",!pn.nullTargetWarn)||[],a._ptLookup=[],a._overwrite=u,g||p||ss(c)||ss(d)){if(r=a.vars,S=a.timeline=new Xt({data:"nested",defaults:f||{},targets:v&&v.data==="nested"?v.vars.targets:b}),S.kill(),S.parent=S._dp=Vn(a),S._start=0,p||ss(c)||ss(d)){if(x=b.length,E=p&&ru(p),Nn(p))for(z in p)~_u.indexOf(z)&&(B||(B={}),B[z]=p[z]);for(w=0;w<x;w++)k=qs(r,bu),k.stagger=0,m&&(k.yoyoEase=m),B&&ar(k,B),V=b[w],k.duration=+Ar(c,Vn(a),w,V,b),k.delay=(+Ar(d,Vn(a),w,V,b)||0)-a._delay,!p&&x===1&&k.delay&&(a._delay=d=k.delay,a._start+=d,k.delay=0),S.to(V,k,E?E(w,V,b):0),S._ease=Ye.none;S.duration()?c=d=0:a.timeline=0}else if(g){Lr(mn(S.vars.defaults,{ease:"none"})),S._ease=Ai(g.ease||r.ease||"none");var L=0,I,R,$;if(Bt(g))g.forEach(function(O){return S.to(b,O,">")}),S.duration();else{k={};for(z in g)z==="ease"||z==="easeEach"||Fh(z,g[z],k,g.easeEach);for(z in k)for(I=k[z].sort(function(O,D){return O.t-D.t}),L=0,w=0;w<I.length;w++)R=I[w],$={ease:R.e,duration:(R.t-(w?I[w-1].t:0))/100*c},$[z]=R.v,S.to(b,$,L),L+=$.duration;S.duration()<c&&S.to({},{duration:c-S.duration()})}}c||a.duration(c=S.duration())}else a.timeline=0;return u===!0&&!ba&&(si=Vn(a),dt.killTweensOf(b),si=0),Dn(v,Vn(a),s),r.reversed&&a.reverse(),r.paused&&a.paused(!0),(h||!c&&!g&&a._start===_t(v._time)&&Jt(h)&&gh(Vn(a))&&v.data!=="nested")&&(a._tTime=-it,a.render(Math.max(0,-d)||0)),y&&eu(Vn(a),y),a}var i=e.prototype;return i.render=function(r,s,o){var a=this._time,l=this._tDur,c=this._dur,d=r<0,h=r>l-it&&!d?l:r<it?0:r,p,u,g,f,y,m,v,b,S;if(!c)vh(this,r,s,o);else if(h!==this._tTime||!r||o||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==d||this._lazy){if(p=h,b=this.timeline,this._repeat){if(f=c+this._rDelay,this._repeat<-1&&d)return this.totalTime(f*100+r,s,o);if(p=_t(h%f),h===l?(g=this._repeat,p=c):(y=_t(h/f),g=~~y,g&&g===y?(p=c,g--):p>c&&(p=c)),m=this._yoyo&&g&1,m&&(S=this._yEase,p=c-p),y=lr(this._tTime,f),p===a&&!o&&this._initted&&g===y)return this._tTime=h,this;g!==y&&(b&&this._yEase&&gu(b,m),this.vars.repeatRefresh&&!m&&!this._lock&&p!==f&&this._initted&&(this._lock=o=1,this.render(_t(f*g),!0).invalidate()._lock=0))}if(!this._initted){if(tu(this,d?r:p,o,s,h))return this._tTime=0,this;if(a!==this._time&&!(o&&this.vars.repeatRefresh&&g!==y))return this;if(c!==this._dur)return this.render(r,s,o)}if(this._tTime=h,this._time=p,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=v=(S||this._ease)(p/c),this._from&&(this.ratio=v=1-v),!a&&h&&!s&&!y&&(hn(this,"onStart"),this._tTime!==h))return this;for(u=this._pt;u;)u.r(v,u.d),u=u._next;b&&b.render(r<0?r:b._dur*b._ease(p/this._dur),s,o)||this._startAt&&(this._zTime=r),this._onUpdate&&!s&&(d&&jo(this,r,s,o),hn(this,"onUpdate")),this._repeat&&g!==y&&this.vars.onRepeat&&!s&&this.parent&&hn(this,"onRepeat"),(h===this._tDur||!h)&&this._tTime===h&&(d&&!this._onUpdate&&jo(this,r,!0,!0),(r||!c)&&(h===this._tDur&&this._ts>0||!h&&this._ts<0)&&hi(this,1),!s&&!(d&&!a)&&(h||a||m)&&(hn(this,h===l?"onComplete":"onReverseComplete",!0),this._prom&&!(h<l&&this.timeScale()>0)&&this._prom()))}return this},i.targets=function(){return this._targets},i.invalidate=function(r){return(!r||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(r),t.prototype.invalidate.call(this,r)},i.resetTo=function(r,s,o,a,l){Wr||dn.wake(),this._ts||this.play();var c=Math.min(this._dur,(this._dp._time-this._start)*this._ts),d;return this._initted||Oa(this,c),d=this._ease(c/this._dur),Dh(this,r,s,o,a,d,c,l)?this.resetTo(r,s,o,a,1):(no(this,0),this.parent||Qc(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},i.kill=function(r,s){if(s===void 0&&(s="all"),!r&&(!s||s==="all"))return this._lazy=this._pt=0,this.parent?br(this):this.scrollTrigger&&this.scrollTrigger.kill(!!Ot),this;if(this.timeline){var o=this.timeline.totalDuration();return this.timeline.killTweensOf(r,s,si&&si.vars.overwrite!==!0)._first||br(this),this.parent&&o!==this.timeline.totalDuration()&&cr(this,this._dur*this.timeline._tDur/o,0,1),this}var a=this._targets,l=r?Sn(r):a,c=this._ptLookup,d=this._pt,h,p,u,g,f,y,m;if((!s||s==="all")&&hh(a,l))return s==="all"&&(this._pt=0),br(this);for(h=this._op=this._op||[],s!=="all"&&(Mt(s)&&(f={},en(s,function(v){return f[v]=1}),s=f),s=$h(a,s)),m=a.length;m--;)if(~l.indexOf(a[m])){p=c[m],s==="all"?(h[m]=s,g=p,u={}):(u=h[m]=h[m]||{},g=s);for(f in g)y=p&&p[f],y&&((!("kill"in y.d)||y.d.kill(f)===!0)&&eo(this,y,"_pt"),delete p[f]),u!=="all"&&(u[f]=1)}return this._initted&&!this._pt&&d&&br(this),this},e.to=function(r,s){return new e(r,s,arguments[2])},e.from=function(r,s){return Or(1,arguments)},e.delayedCall=function(r,s,o,a){return new e(s,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:r,onComplete:s,onReverseComplete:s,onCompleteParams:o,onReverseCompleteParams:o,callbackScope:a})},e.fromTo=function(r,s,o){return Or(2,arguments)},e.set=function(r,s){return s.duration=0,s.repeatDelay||(s.repeat=0),new e(r,s)},e.killTweensOf=function(r,s,o){return dt.killTweensOf(r,s,o)},e}(Yr);mn(yt.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});en("staggerTo,staggerFrom,staggerFromTo",function(t){yt[t]=function(){var e=new Xt,i=Wo.call(arguments,0);return i.splice(t==="staggerFromTo"?5:4,0,0),e[t].apply(e,i)}});var Aa=function(e,i,n){return e[i]=n},wu=function(e,i,n){return e[i](n)},Bh=function(e,i,n,r){return e[i](r.fp,n)},qh=function(e,i,n){return e.setAttribute(i,n)},ka=function(e,i){return ht(e[i])?wu:wa(e[i])&&e.setAttribute?qh:Aa},Su=function(e,i){return i.set(i.t,i.p,Math.round((i.s+i.c*e)*1e6)/1e6,i)},Nh=function(e,i){return i.set(i.t,i.p,!!(i.s+i.c*e),i)},xu=function(e,i){var n=i._pt,r="";if(!e&&i.b)r=i.b;else if(e===1&&i.e)r=i.e;else{for(;n;)r=n.p+(n.m?n.m(n.s+n.c*e):Math.round((n.s+n.c*e)*1e4)/1e4)+r,n=n._next;r+=i.c}i.set(i.t,i.p,r,i)},Ia=function(e,i){for(var n=i._pt;n;)n.r(e,n.d),n=n._next},Hh=function(e,i,n,r){for(var s=this._pt,o;s;)o=s._next,s.p===r&&s.modifier(e,i,n),s=o},Vh=function(e){for(var i=this._pt,n,r;i;)r=i._next,i.p===e&&!i.op||i.op===e?eo(this,i,"_pt"):i.dep||(n=1),i=r;return!n},jh=function(e,i,n,r){r.mSet(e,i,r.m.call(r.tween,n,r.mt),r)},Eu=function(e){for(var i=e._pt,n,r,s,o;i;){for(n=i._next,r=s;r&&r.pr>i.pr;)r=r._next;(i._prev=r?r._prev:o)?i._prev._next=i:s=i,(i._next=r)?r._prev=i:o=i,i=n}e._pt=s},tn=function(){function t(i,n,r,s,o,a,l,c,d){this.t=n,this.s=s,this.c=o,this.p=r,this.r=a||Su,this.d=l||this,this.set=c||Aa,this.pr=d||0,this._next=i,i&&(i._prev=this)}var e=t.prototype;return e.modifier=function(n,r,s){this.mSet=this.mSet||this.set,this.set=jh,this.m=n,this.mt=s,this.tween=r},t}();en(Ma+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(t){return Ta[t]=1});gn.TweenMax=gn.TweenLite=yt;gn.TimelineLite=gn.TimelineMax=Xt;dt=new Xt({sortChildren:!1,defaults:or,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});pn.stringFilter=hu;var ki=[],Cs={},Gh=[],gl=0,Wh=0,wo=function(e){return(Cs[e]||Gh).map(function(i){return i()})},Zo=function(){var e=Date.now(),i=[];e-gl>2&&(wo("matchMediaInit"),ki.forEach(function(n){var r=n.queries,s=n.conditions,o,a,l,c;for(a in r)o=Rn.matchMedia(r[a]).matches,o&&(l=1),o!==s[a]&&(s[a]=o,c=1);c&&(n.revert(),l&&i.push(n))}),wo("matchMediaRevert"),i.forEach(function(n){return n.onMatch(n,function(r){return n.add(null,r)})}),gl=e,wo("matchMedia"))},Tu=function(){function t(i,n){this.selector=n&&Yo(n),this.data=[],this._r=[],this.isReverted=!1,this.id=Wh++,i&&this.add(i)}var e=t.prototype;return e.add=function(n,r,s){ht(n)&&(s=r,r=n,n=ht);var o=this,a=function(){var c=lt,d=o.selector,h;return c&&c!==o&&c.data.push(o),s&&(o.selector=Yo(s)),lt=o,h=r.apply(o,arguments),ht(h)&&o._r.push(h),lt=c,o.selector=d,o.isReverted=!1,h};return o.last=a,n===ht?a(o,function(l){return o.add(null,l)}):n?o[n]=a:a},e.ignore=function(n){var r=lt;lt=null,n(this),lt=r},e.getTweens=function(){var n=[];return this.data.forEach(function(r){return r instanceof t?n.push.apply(n,r.getTweens()):r instanceof yt&&!(r.parent&&r.parent.data==="nested")&&n.push(r)}),n},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(n,r){var s=this;if(n?function(){for(var a=s.getTweens(),l=s.data.length,c;l--;)c=s.data[l],c.data==="isFlip"&&(c.revert(),c.getChildren(!0,!0,!1).forEach(function(d){return a.splice(a.indexOf(d),1)}));for(a.map(function(d){return{g:d._dur||d._delay||d._sat&&!d._sat.vars.immediateRender?d.globalTime(0):-1/0,t:d}}).sort(function(d,h){return h.g-d.g||-1/0}).forEach(function(d){return d.t.revert(n)}),l=s.data.length;l--;)c=s.data[l],c instanceof Xt?c.data!=="nested"&&(c.scrollTrigger&&c.scrollTrigger.revert(),c.kill()):!(c instanceof yt)&&c.revert&&c.revert(n);s._r.forEach(function(d){return d(n,s)}),s.isReverted=!0}():this.data.forEach(function(a){return a.kill&&a.kill()}),this.clear(),r)for(var o=ki.length;o--;)ki[o].id===this.id&&ki.splice(o,1)},e.revert=function(n){this.kill(n||{})},t}(),Yh=function(){function t(i){this.contexts=[],this.scope=i,lt&&lt.data.push(this)}var e=t.prototype;return e.add=function(n,r,s){Nn(n)||(n={matches:n});var o=new Tu(0,s||this.scope),a=o.conditions={},l,c,d;lt&&!o.selector&&(o.selector=lt.selector),this.contexts.push(o),r=o.add("onMatch",r),o.queries=n;for(c in n)c==="all"?d=1:(l=Rn.matchMedia(n[c]),l&&(ki.indexOf(o)<0&&ki.push(o),(a[c]=l.matches)&&(d=1),l.addListener?l.addListener(Zo):l.addEventListener("change",Zo)));return d&&r(o,function(h){return o.add(null,h)}),this},e.revert=function(n){this.kill(n||{})},e.kill=function(n){this.contexts.forEach(function(r){return r.kill(n,!0)})},t}(),Hs={registerPlugin:function(){for(var e=arguments.length,i=new Array(e),n=0;n<e;n++)i[n]=arguments[n];i.forEach(function(r){return uu(r)})},timeline:function(e){return new Xt(e)},getTweensOf:function(e,i){return dt.getTweensOf(e,i)},getProperty:function(e,i,n,r){Mt(e)&&(e=Sn(e)[0]);var s=Li(e||{}).get,o=n?Kc:Zc;return n==="native"&&(n=""),e&&(i?o((cn[i]&&cn[i].get||s)(e,i,n,r)):function(a,l,c){return o((cn[a]&&cn[a].get||s)(e,a,l,c))})},quickSetter:function(e,i,n){if(e=Sn(e),e.length>1){var r=e.map(function(d){return rn.quickSetter(d,i,n)}),s=r.length;return function(d){for(var h=s;h--;)r[h](d)}}e=e[0]||{};var o=cn[i],a=Li(e),l=a.harness&&(a.harness.aliases||{})[i]||i,c=o?function(d){var h=new o;Ui._pt=0,h.init(e,n?d+n:d,Ui,0,[e]),h.render(1,h),Ui._pt&&Ia(1,Ui)}:a.set(e,l);return o?c:function(d){return c(e,l,n?d+n:d,a,1)}},quickTo:function(e,i,n){var r,s=rn.to(e,mn((r={},r[i]="+=0.1",r.paused=!0,r.stagger=0,r),n||{})),o=function(l,c,d){return s.resetTo(i,l,c,d)};return o.tween=s,o},isTweening:function(e){return dt.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=Ai(e.ease,or.ease)),ul(or,e||{})},config:function(e){return ul(pn,e||{})},registerEffect:function(e){var i=e.name,n=e.effect,r=e.plugins,s=e.defaults,o=e.extendTimeline;(r||"").split(",").forEach(function(a){return a&&!cn[a]&&!gn[a]&&Vr(i+" effect requires "+a+" plugin.")}),vo[i]=function(a,l,c){return n(Sn(a),mn(l||{},s),c)},o&&(Xt.prototype[i]=function(a,l,c){return this.add(vo[i](a,Nn(l)?l:(c=l)&&{},this),c)})},registerEase:function(e,i){Ye[e]=Ai(i)},parseEase:function(e,i){return arguments.length?Ai(e,i):Ye},getById:function(e){return dt.getById(e)},exportRoot:function(e,i){e===void 0&&(e={});var n=new Xt(e),r,s;for(n.smoothChildTiming=Jt(e.smoothChildTiming),dt.remove(n),n._dp=0,n._time=n._tTime=dt._time,r=dt._first;r;)s=r._next,(i||!(!r._dur&&r instanceof yt&&r.vars.onComplete===r._targets[0]))&&Dn(n,r,r._start-r._delay),r=s;return Dn(dt,n,0),n},context:function(e,i){return e?new Tu(e,i):lt},matchMedia:function(e){return new Yh(e)},matchMediaRefresh:function(){return ki.forEach(function(e){var i=e.conditions,n,r;for(r in i)i[r]&&(i[r]=!1,n=1);n&&e.revert()})||Zo()},addEventListener:function(e,i){var n=Cs[e]||(Cs[e]=[]);~n.indexOf(i)||n.push(i)},removeEventListener:function(e,i){var n=Cs[e],r=n&&n.indexOf(i);r>=0&&n.splice(r,1)},utils:{wrap:Th,wrapYoyo:Mh,distribute:ru,random:ou,snap:su,normalize:Eh,getUnit:$t,clamp:bh,splitColor:du,toArray:Sn,selector:Yo,mapRange:lu,pipe:Sh,unitize:xh,interpolate:Ch,shuffle:iu},install:Gc,effects:vo,ticker:dn,updateRoot:Xt.updateRoot,plugins:cn,globalTimeline:dt,core:{PropTween:tn,globals:Wc,Tween:yt,Timeline:Xt,Animation:Yr,getCache:Li,_removeLinkedListItem:eo,reverting:function(){return Ot},context:function(e){return e&&lt&&(lt.data.push(e),e._ctx=lt),lt},suppressOverwrites:function(e){return ba=e}}};en("to,from,fromTo,delayedCall,set,killTweensOf",function(t){return Hs[t]=yt[t]});dn.add(Xt.updateRoot);Ui=Hs.to({},{duration:0});var Xh=function(e,i){for(var n=e._pt;n&&n.p!==i&&n.op!==i&&n.fp!==i;)n=n._next;return n},Uh=function(e,i){var n=e._targets,r,s,o;for(r in i)for(s=n.length;s--;)o=e._ptLookup[s][r],o&&(o=o.d)&&(o._pt&&(o=Xh(o,r)),o&&o.modifier&&o.modifier(i[r],e,n[s],r))},So=function(e,i){return{name:e,headless:1,rawVars:1,init:function(r,s,o){o._onInit=function(a){var l,c;if(Mt(s)&&(l={},en(s,function(d){return l[d]=1}),s=l),i){l={};for(c in s)l[c]=i(s[c]);s=l}Uh(a,s)}}}},rn=Hs.registerPlugin({name:"attr",init:function(e,i,n,r,s){var o,a,l;this.tween=n;for(o in i)l=e.getAttribute(o)||"",a=this.add(e,"setAttribute",(l||0)+"",i[o],r,s,0,0,o),a.op=o,a.b=l,this._props.push(o)},render:function(e,i){for(var n=i._pt;n;)Ot?n.set(n.t,n.p,n.b,n):n.r(e,n.d),n=n._next}},{name:"endArray",headless:1,init:function(e,i){for(var n=i.length;n--;)this.add(e,n,e[n]||0,i[n],0,0,0,0,0,1)}},So("roundProps",Xo),So("modifiers"),So("snap",su))||Hs;yt.version=Xt.version=rn.version="3.13.0";jc=1;Sa()&&ur();Ye.Power0;Ye.Power1;Ye.Power2;Ye.Power3;Ye.Power4;Ye.Linear;Ye.Quad;Ye.Cubic;Ye.Quart;Ye.Quint;Ye.Strong;Ye.Elastic;Ye.Back;Ye.SteppedEase;Ye.Bounce;Ye.Sine;Ye.Expo;Ye.Circ;var ml,oi,er,Ra,Mi,vl,za,Zh=function(){return typeof window<"u"},Zn={},xi=180/Math.PI,tr=Math.PI/180,Hi=Math.atan2,yl=1e8,Da=/([A-Z])/g,Kh=/(left|right|width|margin|padding|x)/i,Qh=/[\s,\(]\S/,$n={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Ko=function(e,i){return i.set(i.t,i.p,Math.round((i.s+i.c*e)*1e4)/1e4+i.u,i)},Jh=function(e,i){return i.set(i.t,i.p,e===1?i.e:Math.round((i.s+i.c*e)*1e4)/1e4+i.u,i)},ep=function(e,i){return i.set(i.t,i.p,e?Math.round((i.s+i.c*e)*1e4)/1e4+i.u:i.b,i)},tp=function(e,i){var n=i.s+i.c*e;i.set(i.t,i.p,~~(n+(n<0?-.5:.5))+i.u,i)},Mu=function(e,i){return i.set(i.t,i.p,e?i.e:i.b,i)},Cu=function(e,i){return i.set(i.t,i.p,e!==1?i.b:i.e,i)},np=function(e,i,n){return e.style[i]=n},ip=function(e,i,n){return e.style.setProperty(i,n)},rp=function(e,i,n){return e._gsap[i]=n},sp=function(e,i,n){return e._gsap.scaleX=e._gsap.scaleY=n},op=function(e,i,n,r,s){var o=e._gsap;o.scaleX=o.scaleY=n,o.renderTransform(s,o)},ap=function(e,i,n,r,s){var o=e._gsap;o[i]=n,o.renderTransform(s,o)},ft="transform",nn=ft+"Origin",lp=function t(e,i){var n=this,r=this.target,s=r.style,o=r._gsap;if(e in Zn&&s){if(this.tfm=this.tfm||{},e!=="transform")e=$n[e]||e,~e.indexOf(",")?e.split(",").forEach(function(a){return n.tfm[a]=jn(r,a)}):this.tfm[e]=o.x?o[e]:jn(r,e),e===nn&&(this.tfm.zOrigin=o.zOrigin);else return $n.transform.split(",").forEach(function(a){return t.call(n,a,i)});if(this.props.indexOf(ft)>=0)return;o.svg&&(this.svgo=r.getAttribute("data-svg-origin"),this.props.push(nn,i,"")),e=ft}(s||i)&&this.props.push(e,i,s[e])},Pu=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},cp=function(){var e=this.props,i=this.target,n=i.style,r=i._gsap,s,o;for(s=0;s<e.length;s+=3)e[s+1]?e[s+1]===2?i[e[s]](e[s+2]):i[e[s]]=e[s+2]:e[s+2]?n[e[s]]=e[s+2]:n.removeProperty(e[s].substr(0,2)==="--"?e[s]:e[s].replace(Da,"-$1").toLowerCase());if(this.tfm){for(o in this.tfm)r[o]=this.tfm[o];r.svg&&(r.renderTransform(),i.setAttribute("data-svg-origin",this.svgo||"")),s=za(),(!s||!s.isStart)&&!n[ft]&&(Pu(n),r.zOrigin&&n[nn]&&(n[nn]+=" "+r.zOrigin+"px",r.zOrigin=0,r.renderTransform()),r.uncache=1)}},Lu=function(e,i){var n={target:e,props:[],revert:cp,save:lp};return e._gsap||rn.core.getCache(e),i&&e.style&&e.nodeType&&i.split(",").forEach(function(r){return n.save(r)}),n},Ou,Qo=function(e,i){var n=oi.createElementNS?oi.createElementNS((i||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):oi.createElement(e);return n&&n.style?n:oi.createElement(e)},xn=function t(e,i,n){var r=getComputedStyle(e);return r[i]||r.getPropertyValue(i.replace(Da,"-$1").toLowerCase())||r.getPropertyValue(i)||!n&&t(e,dr(i)||i,1)||""},_l="O,Moz,ms,Ms,Webkit".split(","),dr=function(e,i,n){var r=i||Mi,s=r.style,o=5;if(e in s&&!n)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);o--&&!(_l[o]+e in s););return o<0?null:(o===3?"ms":o>=0?_l[o]:"")+e},Jo=function(){Zh()&&window.document&&(ml=window,oi=ml.document,er=oi.documentElement,Mi=Qo("div")||{style:{}},Qo("div"),ft=dr(ft),nn=ft+"Origin",Mi.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Ou=!!dr("perspective"),za=rn.core.reverting,Ra=1)},bl=function(e){var i=e.ownerSVGElement,n=Qo("svg",i&&i.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),r=e.cloneNode(!0),s;r.style.display="block",n.appendChild(r),er.appendChild(n);try{s=r.getBBox()}catch{}return n.removeChild(r),er.removeChild(n),s},wl=function(e,i){for(var n=i.length;n--;)if(e.hasAttribute(i[n]))return e.getAttribute(i[n])},Au=function(e){var i,n;try{i=e.getBBox()}catch{i=bl(e),n=1}return i&&(i.width||i.height)||n||(i=bl(e)),i&&!i.width&&!i.x&&!i.y?{x:+wl(e,["x","cx","x1"])||0,y:+wl(e,["y","cy","y1"])||0,width:0,height:0}:i},ku=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&Au(e))},$i=function(e,i){if(i){var n=e.style,r;i in Zn&&i!==nn&&(i=ft),n.removeProperty?(r=i.substr(0,2),(r==="ms"||i.substr(0,6)==="webkit")&&(i="-"+i),n.removeProperty(r==="--"?i:i.replace(Da,"-$1").toLowerCase())):n.removeAttribute(i)}},ai=function(e,i,n,r,s,o){var a=new tn(e._pt,i,n,0,1,o?Cu:Mu);return e._pt=a,a.b=r,a.e=s,e._props.push(n),a},Sl={deg:1,rad:1,turn:1},up={grid:1,flex:1},pi=function t(e,i,n,r){var s=parseFloat(n)||0,o=(n+"").trim().substr((s+"").length)||"px",a=Mi.style,l=Kh.test(i),c=e.tagName.toLowerCase()==="svg",d=(c?"client":"offset")+(l?"Width":"Height"),h=100,p=r==="px",u=r==="%",g,f,y,m;if(r===o||!s||Sl[r]||Sl[o])return s;if(o!=="px"&&!p&&(s=t(e,i,n,"px")),m=e.getCTM&&ku(e),(u||o==="%")&&(Zn[i]||~i.indexOf("adius")))return g=m?e.getBBox()[l?"width":"height"]:e[d],pt(u?s/g*h:s/100*g);if(a[l?"width":"height"]=h+(p?o:r),f=r!=="rem"&&~i.indexOf("adius")||r==="em"&&e.appendChild&&!c?e:e.parentNode,m&&(f=(e.ownerSVGElement||{}).parentNode),(!f||f===oi||!f.appendChild)&&(f=oi.body),y=f._gsap,y&&u&&y.width&&l&&y.time===dn.time&&!y.uncache)return pt(s/y.width*h);if(u&&(i==="height"||i==="width")){var v=e.style[i];e.style[i]=h+r,g=e[d],v?e.style[i]=v:$i(e,i)}else(u||o==="%")&&!up[xn(f,"display")]&&(a.position=xn(e,"position")),f===e&&(a.position="static"),f.appendChild(Mi),g=Mi[d],f.removeChild(Mi),a.position="absolute";return l&&u&&(y=Li(f),y.time=dn.time,y.width=f[d]),pt(p?g*s/h:g&&s?h/g*s:0)},jn=function(e,i,n,r){var s;return Ra||Jo(),i in $n&&i!=="transform"&&(i=$n[i],~i.indexOf(",")&&(i=i.split(",")[0])),Zn[i]&&i!=="transform"?(s=Ur(e,r),s=i!=="transformOrigin"?s[i]:s.svg?s.origin:js(xn(e,nn))+" "+s.zOrigin+"px"):(s=e.style[i],(!s||s==="auto"||r||~(s+"").indexOf("calc("))&&(s=Vs[i]&&Vs[i](e,i,n)||xn(e,i)||Xc(e,i)||(i==="opacity"?1:0))),n&&!~(s+"").trim().indexOf(" ")?pi(e,i,s,n)+n:s},dp=function(e,i,n,r){if(!n||n==="none"){var s=dr(i,e,1),o=s&&xn(e,s,1);o&&o!==n?(i=s,n=o):i==="borderColor"&&(n=xn(e,"borderTopColor"))}var a=new tn(this._pt,e.style,i,0,1,xu),l=0,c=0,d,h,p,u,g,f,y,m,v,b,S,w;if(a.b=n,a.e=r,n+="",r+="",r.substring(0,6)==="var(--"&&(r=xn(e,r.substring(4,r.indexOf(")")))),r==="auto"&&(f=e.style[i],e.style[i]=r,r=xn(e,i)||r,f?e.style[i]=f:$i(e,i)),d=[n,r],hu(d),n=d[0],r=d[1],p=n.match(Xi)||[],w=r.match(Xi)||[],w.length){for(;h=Xi.exec(r);)y=h[0],v=r.substring(l,h.index),g?g=(g+1)%5:(v.substr(-5)==="rgba("||v.substr(-5)==="hsla(")&&(g=1),y!==(f=p[c++]||"")&&(u=parseFloat(f)||0,S=f.substr((u+"").length),y.charAt(1)==="="&&(y=Ji(u,y)+S),m=parseFloat(y),b=y.substr((m+"").length),l=Xi.lastIndex-b.length,b||(b=b||pn.units[i]||S,l===r.length&&(r+=b,a.e+=b)),S!==b&&(u=pi(e,i,f,b)||0),a._pt={_next:a._pt,p:v||c===1?v:",",s:u,c:m-u,m:g&&g<4||i==="zIndex"?Math.round:0});a.c=l<r.length?r.substring(l,r.length):""}else a.r=i==="display"&&r==="none"?Cu:Mu;return Hc.test(r)&&(a.e=0),this._pt=a,a},xl={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},fp=function(e){var i=e.split(" "),n=i[0],r=i[1]||"50%";return(n==="top"||n==="bottom"||r==="left"||r==="right")&&(e=n,n=r,r=e),i[0]=xl[n]||n,i[1]=xl[r]||r,i.join(" ")},hp=function(e,i){if(i.tween&&i.tween._time===i.tween._dur){var n=i.t,r=n.style,s=i.u,o=n._gsap,a,l,c;if(s==="all"||s===!0)r.cssText="",l=1;else for(s=s.split(","),c=s.length;--c>-1;)a=s[c],Zn[a]&&(l=1,a=a==="transformOrigin"?nn:ft),$i(n,a);l&&($i(n,ft),o&&(o.svg&&n.removeAttribute("transform"),r.scale=r.rotate=r.translate="none",Ur(n,1),o.uncache=1,Pu(r)))}},Vs={clearProps:function(e,i,n,r,s){if(s.data!=="isFromStart"){var o=e._pt=new tn(e._pt,i,n,0,0,hp);return o.u=r,o.pr=-10,o.tween=s,e._props.push(n),1}}},Xr=[1,0,0,1,0,0],Iu={},Ru=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},El=function(e){var i=xn(e,ft);return Ru(i)?Xr:i.substr(7).match(Nc).map(pt)},$a=function(e,i){var n=e._gsap||Li(e),r=e.style,s=El(e),o,a,l,c;return n.svg&&e.getAttribute("transform")?(l=e.transform.baseVal.consolidate().matrix,s=[l.a,l.b,l.c,l.d,l.e,l.f],s.join(",")==="1,0,0,1,0,0"?Xr:s):(s===Xr&&!e.offsetParent&&e!==er&&!n.svg&&(l=r.display,r.display="block",o=e.parentNode,(!o||!e.offsetParent&&!e.getBoundingClientRect().width)&&(c=1,a=e.nextElementSibling,er.appendChild(e)),s=El(e),l?r.display=l:$i(e,"display"),c&&(a?o.insertBefore(e,a):o?o.appendChild(e):er.removeChild(e))),i&&s.length>6?[s[0],s[1],s[4],s[5],s[12],s[13]]:s)},ea=function(e,i,n,r,s,o){var a=e._gsap,l=s||$a(e,!0),c=a.xOrigin||0,d=a.yOrigin||0,h=a.xOffset||0,p=a.yOffset||0,u=l[0],g=l[1],f=l[2],y=l[3],m=l[4],v=l[5],b=i.split(" "),S=parseFloat(b[0])||0,w=parseFloat(b[1])||0,k,x,z,V;n?l!==Xr&&(x=u*y-g*f)&&(z=S*(y/x)+w*(-f/x)+(f*v-y*m)/x,V=S*(-g/x)+w*(u/x)-(u*v-g*m)/x,S=z,w=V):(k=Au(e),S=k.x+(~b[0].indexOf("%")?S/100*k.width:S),w=k.y+(~(b[1]||b[0]).indexOf("%")?w/100*k.height:w)),r||r!==!1&&a.smooth?(m=S-c,v=w-d,a.xOffset=h+(m*u+v*f)-m,a.yOffset=p+(m*g+v*y)-v):a.xOffset=a.yOffset=0,a.xOrigin=S,a.yOrigin=w,a.smooth=!!r,a.origin=i,a.originIsAbsolute=!!n,e.style[nn]="0px 0px",o&&(ai(o,a,"xOrigin",c,S),ai(o,a,"yOrigin",d,w),ai(o,a,"xOffset",h,a.xOffset),ai(o,a,"yOffset",p,a.yOffset)),e.setAttribute("data-svg-origin",S+" "+w)},Ur=function(e,i){var n=e._gsap||new vu(e);if("x"in n&&!i&&!n.uncache)return n;var r=e.style,s=n.scaleX<0,o="px",a="deg",l=getComputedStyle(e),c=xn(e,nn)||"0",d,h,p,u,g,f,y,m,v,b,S,w,k,x,z,V,E,B,L,I,R,$,O,D,q,X,_,Z,ee,te,de,ge;return d=h=p=f=y=m=v=b=S=0,u=g=1,n.svg=!!(e.getCTM&&ku(e)),l.translate&&((l.translate!=="none"||l.scale!=="none"||l.rotate!=="none")&&(r[ft]=(l.translate!=="none"?"translate3d("+(l.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(l.rotate!=="none"?"rotate("+l.rotate+") ":"")+(l.scale!=="none"?"scale("+l.scale.split(" ").join(",")+") ":"")+(l[ft]!=="none"?l[ft]:"")),r.scale=r.rotate=r.translate="none"),x=$a(e,n.svg),n.svg&&(n.uncache?(q=e.getBBox(),c=n.xOrigin-q.x+"px "+(n.yOrigin-q.y)+"px",D=""):D=!i&&e.getAttribute("data-svg-origin"),ea(e,D||c,!!D||n.originIsAbsolute,n.smooth!==!1,x)),w=n.xOrigin||0,k=n.yOrigin||0,x!==Xr&&(B=x[0],L=x[1],I=x[2],R=x[3],d=$=x[4],h=O=x[5],x.length===6?(u=Math.sqrt(B*B+L*L),g=Math.sqrt(R*R+I*I),f=B||L?Hi(L,B)*xi:0,v=I||R?Hi(I,R)*xi+f:0,v&&(g*=Math.abs(Math.cos(v*tr))),n.svg&&(d-=w-(w*B+k*I),h-=k-(w*L+k*R))):(ge=x[6],te=x[7],_=x[8],Z=x[9],ee=x[10],de=x[11],d=x[12],h=x[13],p=x[14],z=Hi(ge,ee),y=z*xi,z&&(V=Math.cos(-z),E=Math.sin(-z),D=$*V+_*E,q=O*V+Z*E,X=ge*V+ee*E,_=$*-E+_*V,Z=O*-E+Z*V,ee=ge*-E+ee*V,de=te*-E+de*V,$=D,O=q,ge=X),z=Hi(-I,ee),m=z*xi,z&&(V=Math.cos(-z),E=Math.sin(-z),D=B*V-_*E,q=L*V-Z*E,X=I*V-ee*E,de=R*E+de*V,B=D,L=q,I=X),z=Hi(L,B),f=z*xi,z&&(V=Math.cos(z),E=Math.sin(z),D=B*V+L*E,q=$*V+O*E,L=L*V-B*E,O=O*V-$*E,B=D,$=q),y&&Math.abs(y)+Math.abs(f)>359.9&&(y=f=0,m=180-m),u=pt(Math.sqrt(B*B+L*L+I*I)),g=pt(Math.sqrt(O*O+ge*ge)),z=Hi($,O),v=Math.abs(z)>2e-4?z*xi:0,S=de?1/(de<0?-de:de):0),n.svg&&(D=e.getAttribute("transform"),n.forceCSS=e.setAttribute("transform","")||!Ru(xn(e,ft)),D&&e.setAttribute("transform",D))),Math.abs(v)>90&&Math.abs(v)<270&&(s?(u*=-1,v+=f<=0?180:-180,f+=f<=0?180:-180):(g*=-1,v+=v<=0?180:-180)),i=i||n.uncache,n.x=d-((n.xPercent=d&&(!i&&n.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-d)?-50:0)))?e.offsetWidth*n.xPercent/100:0)+o,n.y=h-((n.yPercent=h&&(!i&&n.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-h)?-50:0)))?e.offsetHeight*n.yPercent/100:0)+o,n.z=p+o,n.scaleX=pt(u),n.scaleY=pt(g),n.rotation=pt(f)+a,n.rotationX=pt(y)+a,n.rotationY=pt(m)+a,n.skewX=v+a,n.skewY=b+a,n.transformPerspective=S+o,(n.zOrigin=parseFloat(c.split(" ")[2])||!i&&n.zOrigin||0)&&(r[nn]=js(c)),n.xOffset=n.yOffset=0,n.force3D=pn.force3D,n.renderTransform=n.svg?gp:Ou?zu:pp,n.uncache=0,n},js=function(e){return(e=e.split(" "))[0]+" "+e[1]},xo=function(e,i,n){var r=$t(i);return pt(parseFloat(i)+parseFloat(pi(e,"x",n+"px",r)))+r},pp=function(e,i){i.z="0px",i.rotationY=i.rotationX="0deg",i.force3D=0,zu(e,i)},_i="0deg",vr="0px",bi=") ",zu=function(e,i){var n=i||this,r=n.xPercent,s=n.yPercent,o=n.x,a=n.y,l=n.z,c=n.rotation,d=n.rotationY,h=n.rotationX,p=n.skewX,u=n.skewY,g=n.scaleX,f=n.scaleY,y=n.transformPerspective,m=n.force3D,v=n.target,b=n.zOrigin,S="",w=m==="auto"&&e&&e!==1||m===!0;if(b&&(h!==_i||d!==_i)){var k=parseFloat(d)*tr,x=Math.sin(k),z=Math.cos(k),V;k=parseFloat(h)*tr,V=Math.cos(k),o=xo(v,o,x*V*-b),a=xo(v,a,-Math.sin(k)*-b),l=xo(v,l,z*V*-b+b)}y!==vr&&(S+="perspective("+y+bi),(r||s)&&(S+="translate("+r+"%, "+s+"%) "),(w||o!==vr||a!==vr||l!==vr)&&(S+=l!==vr||w?"translate3d("+o+", "+a+", "+l+") ":"translate("+o+", "+a+bi),c!==_i&&(S+="rotate("+c+bi),d!==_i&&(S+="rotateY("+d+bi),h!==_i&&(S+="rotateX("+h+bi),(p!==_i||u!==_i)&&(S+="skew("+p+", "+u+bi),(g!==1||f!==1)&&(S+="scale("+g+", "+f+bi),v.style[ft]=S||"translate(0, 0)"},gp=function(e,i){var n=i||this,r=n.xPercent,s=n.yPercent,o=n.x,a=n.y,l=n.rotation,c=n.skewX,d=n.skewY,h=n.scaleX,p=n.scaleY,u=n.target,g=n.xOrigin,f=n.yOrigin,y=n.xOffset,m=n.yOffset,v=n.forceCSS,b=parseFloat(o),S=parseFloat(a),w,k,x,z,V;l=parseFloat(l),c=parseFloat(c),d=parseFloat(d),d&&(d=parseFloat(d),c+=d,l+=d),l||c?(l*=tr,c*=tr,w=Math.cos(l)*h,k=Math.sin(l)*h,x=Math.sin(l-c)*-p,z=Math.cos(l-c)*p,c&&(d*=tr,V=Math.tan(c-d),V=Math.sqrt(1+V*V),x*=V,z*=V,d&&(V=Math.tan(d),V=Math.sqrt(1+V*V),w*=V,k*=V)),w=pt(w),k=pt(k),x=pt(x),z=pt(z)):(w=h,z=p,k=x=0),(b&&!~(o+"").indexOf("px")||S&&!~(a+"").indexOf("px"))&&(b=pi(u,"x",o,"px"),S=pi(u,"y",a,"px")),(g||f||y||m)&&(b=pt(b+g-(g*w+f*x)+y),S=pt(S+f-(g*k+f*z)+m)),(r||s)&&(V=u.getBBox(),b=pt(b+r/100*V.width),S=pt(S+s/100*V.height)),V="matrix("+w+","+k+","+x+","+z+","+b+","+S+")",u.setAttribute("transform",V),v&&(u.style[ft]=V)},mp=function(e,i,n,r,s){var o=360,a=Mt(s),l=parseFloat(s)*(a&&~s.indexOf("rad")?xi:1),c=l-r,d=r+c+"deg",h,p;return a&&(h=s.split("_")[1],h==="short"&&(c%=o,c!==c%(o/2)&&(c+=c<0?o:-o)),h==="cw"&&c<0?c=(c+o*yl)%o-~~(c/o)*o:h==="ccw"&&c>0&&(c=(c-o*yl)%o-~~(c/o)*o)),e._pt=p=new tn(e._pt,i,n,r,c,Jh),p.e=d,p.u="deg",e._props.push(n),p},Tl=function(e,i){for(var n in i)e[n]=i[n];return e},vp=function(e,i,n){var r=Tl({},n._gsap),s="perspective,force3D,transformOrigin,svgOrigin",o=n.style,a,l,c,d,h,p,u,g;r.svg?(c=n.getAttribute("transform"),n.setAttribute("transform",""),o[ft]=i,a=Ur(n,1),$i(n,ft),n.setAttribute("transform",c)):(c=getComputedStyle(n)[ft],o[ft]=i,a=Ur(n,1),o[ft]=c);for(l in Zn)c=r[l],d=a[l],c!==d&&s.indexOf(l)<0&&(u=$t(c),g=$t(d),h=u!==g?pi(n,l,c,g):parseFloat(c),p=parseFloat(d),e._pt=new tn(e._pt,a,l,h,p-h,Ko),e._pt.u=g||0,e._props.push(l));Tl(a,r)};en("padding,margin,Width,Radius",function(t,e){var i="Top",n="Right",r="Bottom",s="Left",o=(e<3?[i,n,r,s]:[i+s,i+n,r+n,r+s]).map(function(a){return e<2?t+a:"border"+a+t});Vs[e>1?"border"+t:t]=function(a,l,c,d,h){var p,u;if(arguments.length<4)return p=o.map(function(g){return jn(a,g,c)}),u=p.join(" "),u.split(p[0]).length===5?p[0]:u;p=(d+"").split(" "),u={},o.forEach(function(g,f){return u[g]=p[f]=p[f]||p[(f-1)/2|0]}),a.init(l,u,h)}});var Du={name:"css",register:Jo,targetTest:function(e){return e.style&&e.nodeType},init:function(e,i,n,r,s){var o=this._props,a=e.style,l=n.vars.startAt,c,d,h,p,u,g,f,y,m,v,b,S,w,k,x,z;Ra||Jo(),this.styles=this.styles||Lu(e),z=this.styles.props,this.tween=n;for(f in i)if(f!=="autoRound"&&(d=i[f],!(cn[f]&&yu(f,i,n,r,e,s)))){if(u=typeof d,g=Vs[f],u==="function"&&(d=d.call(n,r,e,s),u=typeof d),u==="string"&&~d.indexOf("random(")&&(d=Gr(d)),g)g(this,e,f,d,n)&&(x=1);else if(f.substr(0,2)==="--")c=(getComputedStyle(e).getPropertyValue(f)+"").trim(),d+="",di.lastIndex=0,di.test(c)||(y=$t(c),m=$t(d)),m?y!==m&&(c=pi(e,f,c,m)+m):y&&(d+=y),this.add(a,"setProperty",c,d,r,s,0,0,f),o.push(f),z.push(f,0,a[f]);else if(u!=="undefined"){if(l&&f in l?(c=typeof l[f]=="function"?l[f].call(n,r,e,s):l[f],Mt(c)&&~c.indexOf("random(")&&(c=Gr(c)),$t(c+"")||c==="auto"||(c+=pn.units[f]||$t(jn(e,f))||""),(c+"").charAt(1)==="="&&(c=jn(e,f))):c=jn(e,f),p=parseFloat(c),v=u==="string"&&d.charAt(1)==="="&&d.substr(0,2),v&&(d=d.substr(2)),h=parseFloat(d),f in $n&&(f==="autoAlpha"&&(p===1&&jn(e,"visibility")==="hidden"&&h&&(p=0),z.push("visibility",0,a.visibility),ai(this,a,"visibility",p?"inherit":"hidden",h?"inherit":"hidden",!h)),f!=="scale"&&f!=="transform"&&(f=$n[f],~f.indexOf(",")&&(f=f.split(",")[0]))),b=f in Zn,b){if(this.styles.save(f),u==="string"&&d.substring(0,6)==="var(--"&&(d=xn(e,d.substring(4,d.indexOf(")"))),h=parseFloat(d)),S||(w=e._gsap,w.renderTransform&&!i.parseTransform||Ur(e,i.parseTransform),k=i.smoothOrigin!==!1&&w.smooth,S=this._pt=new tn(this._pt,a,ft,0,1,w.renderTransform,w,0,-1),S.dep=1),f==="scale")this._pt=new tn(this._pt,w,"scaleY",w.scaleY,(v?Ji(w.scaleY,v+h):h)-w.scaleY||0,Ko),this._pt.u=0,o.push("scaleY",f),f+="X";else if(f==="transformOrigin"){z.push(nn,0,a[nn]),d=fp(d),w.svg?ea(e,d,0,k,0,this):(m=parseFloat(d.split(" ")[2])||0,m!==w.zOrigin&&ai(this,w,"zOrigin",w.zOrigin,m),ai(this,a,f,js(c),js(d)));continue}else if(f==="svgOrigin"){ea(e,d,1,k,0,this);continue}else if(f in Iu){mp(this,w,f,p,v?Ji(p,v+d):d);continue}else if(f==="smoothOrigin"){ai(this,w,"smooth",w.smooth,d);continue}else if(f==="force3D"){w[f]=d;continue}else if(f==="transform"){vp(this,d,e);continue}}else f in a||(f=dr(f)||f);if(b||(h||h===0)&&(p||p===0)&&!Qh.test(d)&&f in a)y=(c+"").substr((p+"").length),h||(h=0),m=$t(d)||(f in pn.units?pn.units[f]:y),y!==m&&(p=pi(e,f,c,m)),this._pt=new tn(this._pt,b?w:a,f,p,(v?Ji(p,v+h):h)-p,!b&&(m==="px"||f==="zIndex")&&i.autoRound!==!1?tp:Ko),this._pt.u=m||0,y!==m&&m!=="%"&&(this._pt.b=c,this._pt.r=ep);else if(f in a)dp.call(this,e,f,c,v?v+d:d);else if(f in e)this.add(e,f,c||e[f],v?v+d:d,r,s);else if(f!=="parseTransform"){Ea(f,d);continue}b||(f in a?z.push(f,0,a[f]):typeof e[f]=="function"?z.push(f,2,e[f]()):z.push(f,1,c||e[f])),o.push(f)}}x&&Eu(this)},render:function(e,i){if(i.tween._time||!za())for(var n=i._pt;n;)n.r(e,n.d),n=n._next;else i.styles.revert()},get:jn,aliases:$n,getSetter:function(e,i,n){var r=$n[i];return r&&r.indexOf(",")<0&&(i=r),i in Zn&&i!==nn&&(e._gsap.x||jn(e,"x"))?n&&vl===n?i==="scale"?sp:rp:(vl=n||{})&&(i==="scale"?op:ap):e.style&&!wa(e.style[i])?np:~i.indexOf("-")?ip:ka(e,i)},core:{_removeProperty:$i,_getMatrix:$a}};rn.utils.checkPrefix=dr;rn.core.getStyleSaver=Lu;(function(t,e,i,n){var r=en(t+","+e+","+i,function(s){Zn[s]=1});en(e,function(s){pn.units[s]="deg",Iu[s]=1}),$n[r[13]]=t+","+e,en(n,function(s){var o=s.split(":");$n[o[1]]=r[o[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");en("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){pn.units[t]="px"});rn.registerPlugin(Du);var Fa=rn.registerPlugin(Du)||rn;Fa.core.Tween;function yp(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function _p(t,e,i){return e&&yp(t.prototype,e),t}var Lt,Ps,fn,li,ci,nr,$u,Ei,kr,Fu,Yn,Mn,Bu,qu=function(){return Lt||typeof window<"u"&&(Lt=window.gsap)&&Lt.registerPlugin&&Lt},Nu=1,Zi=[],Ve=[],qn=[],Ir=Date.now,ta=function(e,i){return i},bp=function(){var e=kr.core,i=e.bridge||{},n=e._scrollers,r=e._proxies;n.push.apply(n,Ve),r.push.apply(r,qn),Ve=n,qn=r,ta=function(o,a){return i[o](a)}},fi=function(e,i){return~qn.indexOf(e)&&qn[qn.indexOf(e)+1][i]},Rr=function(e){return!!~Fu.indexOf(e)},Ht=function(e,i,n,r,s){return e.addEventListener(i,n,{passive:r!==!1,capture:!!s})},qt=function(e,i,n,r){return e.removeEventListener(i,n,!!r)},os="scrollLeft",as="scrollTop",na=function(){return Yn&&Yn.isPressed||Ve.cache++},Gs=function(e,i){var n=function r(s){if(s||s===0){Nu&&(fn.history.scrollRestoration="manual");var o=Yn&&Yn.isPressed;s=r.v=Math.round(s)||(Yn&&Yn.iOS?1:0),e(s),r.cacheID=Ve.cache,o&&ta("ss",s)}else(i||Ve.cache!==r.cacheID||ta("ref"))&&(r.cacheID=Ve.cache,r.v=e());return r.v+r.offset};return n.offset=0,e&&n},Ut={s:os,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:Gs(function(t){return arguments.length?fn.scrollTo(t,St.sc()):fn.pageXOffset||li[os]||ci[os]||nr[os]||0})},St={s:as,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:Ut,sc:Gs(function(t){return arguments.length?fn.scrollTo(Ut.sc(),t):fn.pageYOffset||li[as]||ci[as]||nr[as]||0})},Kt=function(e,i){return(i&&i._ctx&&i._ctx.selector||Lt.utils.toArray)(e)[0]||(typeof e=="string"&&Lt.config().nullTargetWarn!==!1?console.warn("Element not found:",e):null)},wp=function(e,i){for(var n=i.length;n--;)if(i[n]===e||i[n].contains(e))return!0;return!1},gi=function(e,i){var n=i.s,r=i.sc;Rr(e)&&(e=li.scrollingElement||ci);var s=Ve.indexOf(e),o=r===St.sc?1:2;!~s&&(s=Ve.push(e)-1),Ve[s+o]||Ht(e,"scroll",na);var a=Ve[s+o],l=a||(Ve[s+o]=Gs(fi(e,n),!0)||(Rr(e)?r:Gs(function(c){return arguments.length?e[n]=c:e[n]})));return l.target=e,a||(l.smooth=Lt.getProperty(e,"scrollBehavior")==="smooth"),l},ia=function(e,i,n){var r=e,s=e,o=Ir(),a=o,l=i||50,c=Math.max(500,l*3),d=function(g,f){var y=Ir();f||y-o>l?(s=r,r=g,a=o,o=y):n?r+=g:r=s+(g-s)/(y-a)*(o-a)},h=function(){s=r=n?0:r,a=o=0},p=function(g){var f=a,y=s,m=Ir();return(g||g===0)&&g!==r&&d(g),o===a||m-a>c?0:(r+(n?y:-y))/((n?m:o)-f)*1e3};return{update:d,reset:h,getVelocity:p}},yr=function(e,i){return i&&!e._gsapAllow&&e.preventDefault(),e.changedTouches?e.changedTouches[0]:e},Ml=function(e){var i=Math.max.apply(Math,e),n=Math.min.apply(Math,e);return Math.abs(i)>=Math.abs(n)?i:n},Hu=function(){kr=Lt.core.globals().ScrollTrigger,kr&&kr.core&&bp()},Vu=function(e){return Lt=e||qu(),!Ps&&Lt&&typeof document<"u"&&document.body&&(fn=window,li=document,ci=li.documentElement,nr=li.body,Fu=[fn,li,ci,nr],Lt.utils.clamp,Bu=Lt.core.context||function(){},Ei="onpointerenter"in nr?"pointer":"mouse",$u=gt.isTouch=fn.matchMedia&&fn.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in fn||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,Mn=gt.eventTypes=("ontouchstart"in ci?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in ci?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout(function(){return Nu=0},500),Hu(),Ps=1),Ps};Ut.op=St;Ve.cache=0;var gt=function(){function t(i){this.init(i)}var e=t.prototype;return e.init=function(n){Ps||Vu(Lt)||console.warn("Please gsap.registerPlugin(Observer)"),kr||Hu();var r=n.tolerance,s=n.dragMinimum,o=n.type,a=n.target,l=n.lineHeight,c=n.debounce,d=n.preventDefault,h=n.onStop,p=n.onStopDelay,u=n.ignore,g=n.wheelSpeed,f=n.event,y=n.onDragStart,m=n.onDragEnd,v=n.onDrag,b=n.onPress,S=n.onRelease,w=n.onRight,k=n.onLeft,x=n.onUp,z=n.onDown,V=n.onChangeX,E=n.onChangeY,B=n.onChange,L=n.onToggleX,I=n.onToggleY,R=n.onHover,$=n.onHoverEnd,O=n.onMove,D=n.ignoreCheck,q=n.isNormalizer,X=n.onGestureStart,_=n.onGestureEnd,Z=n.onWheel,ee=n.onEnable,te=n.onDisable,de=n.onClick,ge=n.scrollSpeed,Se=n.capture,Te=n.allowClicks,$e=n.lockAxis,Fe=n.onLockAxis;this.target=a=Kt(a)||ci,this.vars=n,u&&(u=Lt.utils.toArray(u)),r=r||1e-9,s=s||0,g=g||1,ge=ge||1,o=o||"wheel,touch,pointer",c=c!==!1,l||(l=parseFloat(fn.getComputedStyle(nr).lineHeight)||22);var Je,et,Qe,Ae,W,re,he,M=this,se=0,ae=0,F=n.passive||!d&&n.passive!==!1,G=gi(a,Ut),J=gi(a,St),K=G(),H=J(),U=~o.indexOf("touch")&&!~o.indexOf("pointer")&&Mn[0]==="pointerdown",fe=Rr(a),oe=a.ownerDocument||li,me=[0,0,0],xe=[0,0,0],Pe=0,Ne=function(){return Pe=Ir()},ye=function(pe,Le){return(M.event=pe)&&u&&wp(pe.target,u)||Le&&U&&pe.pointerType!=="touch"||D&&D(pe,Le)},Xe=function(){M._vx.reset(),M._vy.reset(),et.pause(),h&&h(M)},Be=function(){var pe=M.deltaX=Ml(me),Le=M.deltaY=Ml(xe),ce=Math.abs(pe)>=r,Ce=Math.abs(Le)>=r;B&&(ce||Ce)&&B(M,pe,Le,me,xe),ce&&(w&&M.deltaX>0&&w(M),k&&M.deltaX<0&&k(M),V&&V(M),L&&M.deltaX<0!=se<0&&L(M),se=M.deltaX,me[0]=me[1]=me[2]=0),Ce&&(z&&M.deltaY>0&&z(M),x&&M.deltaY<0&&x(M),E&&E(M),I&&M.deltaY<0!=ae<0&&I(M),ae=M.deltaY,xe[0]=xe[1]=xe[2]=0),(Ae||Qe)&&(O&&O(M),Qe&&(y&&Qe===1&&y(M),v&&v(M),Qe=0),Ae=!1),re&&!(re=!1)&&Fe&&Fe(M),W&&(Z(M),W=!1),Je=0},Ge=function(pe,Le,ce){me[ce]+=pe,xe[ce]+=Le,M._vx.update(pe),M._vy.update(Le),c?Je||(Je=requestAnimationFrame(Be)):Be()},Re=function(pe,Le){$e&&!he&&(M.axis=he=Math.abs(pe)>Math.abs(Le)?"x":"y",re=!0),he!=="y"&&(me[2]+=pe,M._vx.update(pe,!0)),he!=="x"&&(xe[2]+=Le,M._vy.update(Le,!0)),c?Je||(Je=requestAnimationFrame(Be)):Be()},T=function(pe){if(!ye(pe,1)){pe=yr(pe,d);var Le=pe.clientX,ce=pe.clientY,Ce=Le-M.x,_e=ce-M.y,Oe=M.isDragging;M.x=Le,M.y=ce,(Oe||(Ce||_e)&&(Math.abs(M.startX-Le)>=s||Math.abs(M.startY-ce)>=s))&&(Qe=Oe?2:1,Oe||(M.isDragging=!0),Re(Ce,_e))}},j=M.onPress=function(ve){ye(ve,1)||ve&&ve.button||(M.axis=he=null,et.pause(),M.isPressed=!0,ve=yr(ve),se=ae=0,M.startX=M.x=ve.clientX,M.startY=M.y=ve.clientY,M._vx.reset(),M._vy.reset(),Ht(q?a:oe,Mn[1],T,F,!0),M.deltaX=M.deltaY=0,b&&b(M))},Y=M.onRelease=function(ve){if(!ye(ve,1)){qt(q?a:oe,Mn[1],T,!0);var pe=!isNaN(M.y-M.startY),Le=M.isDragging,ce=Le&&(Math.abs(M.x-M.startX)>3||Math.abs(M.y-M.startY)>3),Ce=yr(ve);!ce&&pe&&(M._vx.reset(),M._vy.reset(),d&&Te&&Lt.delayedCall(.08,function(){if(Ir()-Pe>300&&!ve.defaultPrevented){if(ve.target.click)ve.target.click();else if(oe.createEvent){var _e=oe.createEvent("MouseEvents");_e.initMouseEvent("click",!0,!0,fn,1,Ce.screenX,Ce.screenY,Ce.clientX,Ce.clientY,!1,!1,!1,!1,0,null),ve.target.dispatchEvent(_e)}}})),M.isDragging=M.isGesturing=M.isPressed=!1,h&&Le&&!q&&et.restart(!0),Qe&&Be(),m&&Le&&m(M),S&&S(M,ce)}},Q=function(pe){return pe.touches&&pe.touches.length>1&&(M.isGesturing=!0)&&X(pe,M.isDragging)},ie=function(){return(M.isGesturing=!1)||_(M)},ne=function(pe){if(!ye(pe)){var Le=G(),ce=J();Ge((Le-K)*ge,(ce-H)*ge,1),K=Le,H=ce,h&&et.restart(!0)}},le=function(pe){if(!ye(pe)){pe=yr(pe,d),Z&&(W=!0);var Le=(pe.deltaMode===1?l:pe.deltaMode===2?fn.innerHeight:1)*g;Ge(pe.deltaX*Le,pe.deltaY*Le,0),h&&!q&&et.restart(!0)}},ue=function(pe){if(!ye(pe)){var Le=pe.clientX,ce=pe.clientY,Ce=Le-M.x,_e=ce-M.y;M.x=Le,M.y=ce,Ae=!0,h&&et.restart(!0),(Ce||_e)&&Re(Ce,_e)}},be=function(pe){M.event=pe,R(M)},we=function(pe){M.event=pe,$(M)},ke=function(pe){return ye(pe)||yr(pe,d)&&de(M)};et=M._dc=Lt.delayedCall(p||.25,Xe).pause(),M.deltaX=M.deltaY=0,M._vx=ia(0,50,!0),M._vy=ia(0,50,!0),M.scrollX=G,M.scrollY=J,M.isDragging=M.isGesturing=M.isPressed=!1,Bu(this),M.enable=function(ve){return M.isEnabled||(Ht(fe?oe:a,"scroll",na),o.indexOf("scroll")>=0&&Ht(fe?oe:a,"scroll",ne,F,Se),o.indexOf("wheel")>=0&&Ht(a,"wheel",le,F,Se),(o.indexOf("touch")>=0&&$u||o.indexOf("pointer")>=0)&&(Ht(a,Mn[0],j,F,Se),Ht(oe,Mn[2],Y),Ht(oe,Mn[3],Y),Te&&Ht(a,"click",Ne,!0,!0),de&&Ht(a,"click",ke),X&&Ht(oe,"gesturestart",Q),_&&Ht(oe,"gestureend",ie),R&&Ht(a,Ei+"enter",be),$&&Ht(a,Ei+"leave",we),O&&Ht(a,Ei+"move",ue)),M.isEnabled=!0,M.isDragging=M.isGesturing=M.isPressed=Ae=Qe=!1,M._vx.reset(),M._vy.reset(),K=G(),H=J(),ve&&ve.type&&j(ve),ee&&ee(M)),M},M.disable=function(){M.isEnabled&&(Zi.filter(function(ve){return ve!==M&&Rr(ve.target)}).length||qt(fe?oe:a,"scroll",na),M.isPressed&&(M._vx.reset(),M._vy.reset(),qt(q?a:oe,Mn[1],T,!0)),qt(fe?oe:a,"scroll",ne,Se),qt(a,"wheel",le,Se),qt(a,Mn[0],j,Se),qt(oe,Mn[2],Y),qt(oe,Mn[3],Y),qt(a,"click",Ne,!0),qt(a,"click",ke),qt(oe,"gesturestart",Q),qt(oe,"gestureend",ie),qt(a,Ei+"enter",be),qt(a,Ei+"leave",we),qt(a,Ei+"move",ue),M.isEnabled=M.isPressed=M.isDragging=!1,te&&te(M))},M.kill=M.revert=function(){M.disable();var ve=Zi.indexOf(M);ve>=0&&Zi.splice(ve,1),Yn===M&&(Yn=0)},Zi.push(M),q&&Rr(a)&&(Yn=M),M.enable(f)},_p(t,[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}]),t}();gt.version="3.13.0";gt.create=function(t){return new gt(t)};gt.register=Vu;gt.getAll=function(){return Zi.slice()};gt.getById=function(t){return Zi.filter(function(e){return e.vars.id===t})[0]};qu()&&Lt.registerPlugin(gt);var Me,Gi,He,ot,un,Ze,Ba,Ws,Zr,zr,Sr,ls,Rt,io,ra,Gt,Cl,Pl,Wi,ju,Eo,Gu,jt,sa,Wu,Yu,ti,oa,qa,ir,Na,Ys,aa,To,cs=1,zt=Date.now,Mo=zt(),En=0,xr=0,Ll=function(e,i,n){var r=an(e)&&(e.substr(0,6)==="clamp("||e.indexOf("max")>-1);return n["_"+i+"Clamp"]=r,r?e.substr(6,e.length-7):e},Ol=function(e,i){return i&&(!an(e)||e.substr(0,6)!=="clamp(")?"clamp("+e+")":e},Sp=function t(){return xr&&requestAnimationFrame(t)},Al=function(){return io=1},kl=function(){return io=0},zn=function(e){return e},Er=function(e){return Math.round(e*1e5)/1e5||0},Xu=function(){return typeof window<"u"},Uu=function(){return Me||Xu()&&(Me=window.gsap)&&Me.registerPlugin&&Me},Fi=function(e){return!!~Ba.indexOf(e)},Zu=function(e){return(e==="Height"?Na:He["inner"+e])||un["client"+e]||Ze["client"+e]},Ku=function(e){return fi(e,"getBoundingClientRect")||(Fi(e)?function(){return Is.width=He.innerWidth,Is.height=Na,Is}:function(){return Wn(e)})},xp=function(e,i,n){var r=n.d,s=n.d2,o=n.a;return(o=fi(e,"getBoundingClientRect"))?function(){return o()[r]}:function(){return(i?Zu(s):e["client"+s])||0}},Ep=function(e,i){return!i||~qn.indexOf(e)?Ku(e):function(){return Is}},Fn=function(e,i){var n=i.s,r=i.d2,s=i.d,o=i.a;return Math.max(0,(n="scroll"+r)&&(o=fi(e,n))?o()-Ku(e)()[s]:Fi(e)?(un[n]||Ze[n])-Zu(r):e[n]-e["offset"+r])},us=function(e,i){for(var n=0;n<Wi.length;n+=3)(!i||~i.indexOf(Wi[n+1]))&&e(Wi[n],Wi[n+1],Wi[n+2])},an=function(e){return typeof e=="string"},Ft=function(e){return typeof e=="function"},Tr=function(e){return typeof e=="number"},Ti=function(e){return typeof e=="object"},_r=function(e,i,n){return e&&e.progress(i?0:1)&&n&&e.pause()},Co=function(e,i){if(e.enabled){var n=e._ctx?e._ctx.add(function(){return i(e)}):i(e);n&&n.totalTime&&(e.callbackAnimation=n)}},Vi=Math.abs,Qu="left",Ju="top",Ha="right",Va="bottom",Ii="width",Ri="height",Dr="Right",$r="Left",Fr="Top",Br="Bottom",vt="padding",yn="margin",fr="Width",ja="Height",wt="px",_n=function(e){return He.getComputedStyle(e)},Tp=function(e){var i=_n(e).position;e.style.position=i==="absolute"||i==="fixed"?i:"relative"},Il=function(e,i){for(var n in i)n in e||(e[n]=i[n]);return e},Wn=function(e,i){var n=i&&_n(e)[ra]!=="matrix(1, 0, 0, 1, 0, 0)"&&Me.to(e,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),r=e.getBoundingClientRect();return n&&n.progress(0).kill(),r},Xs=function(e,i){var n=i.d2;return e["offset"+n]||e["client"+n]||0},ed=function(e){var i=[],n=e.labels,r=e.duration(),s;for(s in n)i.push(n[s]/r);return i},Mp=function(e){return function(i){return Me.utils.snap(ed(e),i)}},Ga=function(e){var i=Me.utils.snap(e),n=Array.isArray(e)&&e.slice(0).sort(function(r,s){return r-s});return n?function(r,s,o){o===void 0&&(o=.001);var a;if(!s)return i(r);if(s>0){for(r-=o,a=0;a<n.length;a++)if(n[a]>=r)return n[a];return n[a-1]}else for(a=n.length,r+=o;a--;)if(n[a]<=r)return n[a];return n[0]}:function(r,s,o){o===void 0&&(o=.001);var a=i(r);return!s||Math.abs(a-r)<o||a-r<0==s<0?a:i(s<0?r-e:r+e)}},Cp=function(e){return function(i,n){return Ga(ed(e))(i,n.direction)}},ds=function(e,i,n,r){return n.split(",").forEach(function(s){return e(i,s,r)})},Et=function(e,i,n,r,s){return e.addEventListener(i,n,{passive:!r,capture:!!s})},xt=function(e,i,n,r){return e.removeEventListener(i,n,!!r)},fs=function(e,i,n){n=n&&n.wheelHandler,n&&(e(i,"wheel",n),e(i,"touchmove",n))},Rl={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},hs={toggleActions:"play",anticipatePin:0},Us={top:0,left:0,center:.5,bottom:1,right:1},Ls=function(e,i){if(an(e)){var n=e.indexOf("="),r=~n?+(e.charAt(n-1)+1)*parseFloat(e.substr(n+1)):0;~n&&(e.indexOf("%")>n&&(r*=i/100),e=e.substr(0,n-1)),e=r+(e in Us?Us[e]*i:~e.indexOf("%")?parseFloat(e)*i/100:parseFloat(e)||0)}return e},ps=function(e,i,n,r,s,o,a,l){var c=s.startColor,d=s.endColor,h=s.fontSize,p=s.indent,u=s.fontWeight,g=ot.createElement("div"),f=Fi(n)||fi(n,"pinType")==="fixed",y=e.indexOf("scroller")!==-1,m=f?Ze:n,v=e.indexOf("start")!==-1,b=v?c:d,S="border-color:"+b+";font-size:"+h+";color:"+b+";font-weight:"+u+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return S+="position:"+((y||l)&&f?"fixed;":"absolute;"),(y||l||!f)&&(S+=(r===St?Ha:Va)+":"+(o+parseFloat(p))+"px;"),a&&(S+="box-sizing:border-box;text-align:left;width:"+a.offsetWidth+"px;"),g._isStart=v,g.setAttribute("class","gsap-marker-"+e+(i?" marker-"+i:"")),g.style.cssText=S,g.innerText=i||i===0?e+"-"+i:e,m.children[0]?m.insertBefore(g,m.children[0]):m.appendChild(g),g._offset=g["offset"+r.op.d2],Os(g,0,r,v),g},Os=function(e,i,n,r){var s={display:"block"},o=n[r?"os2":"p2"],a=n[r?"p2":"os2"];e._isFlipped=r,s[n.a+"Percent"]=r?-100:0,s[n.a]=r?"1px":0,s["border"+o+fr]=1,s["border"+a+fr]=0,s[n.p]=i+"px",Me.set(e,s)},qe=[],la={},Kr,zl=function(){return zt()-En>34&&(Kr||(Kr=requestAnimationFrame(Xn)))},ji=function(){(!jt||!jt.isPressed||jt.startX>Ze.clientWidth)&&(Ve.cache++,jt?Kr||(Kr=requestAnimationFrame(Xn)):Xn(),En||qi("scrollStart"),En=zt())},Po=function(){Yu=He.innerWidth,Wu=He.innerHeight},Mr=function(e){Ve.cache++,(e===!0||!Rt&&!Gu&&!ot.fullscreenElement&&!ot.webkitFullscreenElement&&(!sa||Yu!==He.innerWidth||Math.abs(He.innerHeight-Wu)>He.innerHeight*.25))&&Ws.restart(!0)},Bi={},Pp=[],td=function t(){return xt(je,"scrollEnd",t)||Ci(!0)},qi=function(e){return Bi[e]&&Bi[e].map(function(i){return i()})||Pp},on=[],nd=function(e){for(var i=0;i<on.length;i+=5)(!e||on[i+4]&&on[i+4].query===e)&&(on[i].style.cssText=on[i+1],on[i].getBBox&&on[i].setAttribute("transform",on[i+2]||""),on[i+3].uncache=1)},Wa=function(e,i){var n;for(Gt=0;Gt<qe.length;Gt++)n=qe[Gt],n&&(!i||n._ctx===i)&&(e?n.kill(1):n.revert(!0,!0));Ys=!0,i&&nd(i),i||qi("revert")},id=function(e,i){Ve.cache++,(i||!Wt)&&Ve.forEach(function(n){return Ft(n)&&n.cacheID++&&(n.rec=0)}),an(e)&&(He.history.scrollRestoration=qa=e)},Wt,zi=0,Dl,Lp=function(){if(Dl!==zi){var e=Dl=zi;requestAnimationFrame(function(){return e===zi&&Ci(!0)})}},rd=function(){Ze.appendChild(ir),Na=!jt&&ir.offsetHeight||He.innerHeight,Ze.removeChild(ir)},$l=function(e){return Zr(".gsap-marker-start, .gsap-marker-end, .gsap-marker-scroller-start, .gsap-marker-scroller-end").forEach(function(i){return i.style.display=e?"none":"block"})},Ci=function(e,i){if(un=ot.documentElement,Ze=ot.body,Ba=[He,ot,un,Ze],En&&!e&&!Ys){Et(je,"scrollEnd",td);return}rd(),Wt=je.isRefreshing=!0,Ve.forEach(function(r){return Ft(r)&&++r.cacheID&&(r.rec=r())});var n=qi("refreshInit");ju&&je.sort(),i||Wa(),Ve.forEach(function(r){Ft(r)&&(r.smooth&&(r.target.style.scrollBehavior="auto"),r(0))}),qe.slice(0).forEach(function(r){return r.refresh()}),Ys=!1,qe.forEach(function(r){if(r._subPinOffset&&r.pin){var s=r.vars.horizontal?"offsetWidth":"offsetHeight",o=r.pin[s];r.revert(!0,1),r.adjustPinSpacing(r.pin[s]-o),r.refresh()}}),aa=1,$l(!0),qe.forEach(function(r){var s=Fn(r.scroller,r._dir),o=r.vars.end==="max"||r._endClamp&&r.end>s,a=r._startClamp&&r.start>=s;(o||a)&&r.setPositions(a?s-1:r.start,o?Math.max(a?s:r.start+1,s):r.end,!0)}),$l(!1),aa=0,n.forEach(function(r){return r&&r.render&&r.render(-1)}),Ve.forEach(function(r){Ft(r)&&(r.smooth&&requestAnimationFrame(function(){return r.target.style.scrollBehavior="smooth"}),r.rec&&r(r.rec))}),id(qa,1),Ws.pause(),zi++,Wt=2,Xn(2),qe.forEach(function(r){return Ft(r.vars.onRefresh)&&r.vars.onRefresh(r)}),Wt=je.isRefreshing=!1,qi("refresh")},ca=0,As=1,qr,Xn=function(e){if(e===2||!Wt&&!Ys){je.isUpdating=!0,qr&&qr.update(0);var i=qe.length,n=zt(),r=n-Mo>=50,s=i&&qe[0].scroll();if(As=ca>s?-1:1,Wt||(ca=s),r&&(En&&!io&&n-En>200&&(En=0,qi("scrollEnd")),Sr=Mo,Mo=n),As<0){for(Gt=i;Gt-- >0;)qe[Gt]&&qe[Gt].update(0,r);As=1}else for(Gt=0;Gt<i;Gt++)qe[Gt]&&qe[Gt].update(0,r);je.isUpdating=!1}Kr=0},ua=[Qu,Ju,Va,Ha,yn+Br,yn+Dr,yn+Fr,yn+$r,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],ks=ua.concat([Ii,Ri,"boxSizing","max"+fr,"max"+ja,"position",yn,vt,vt+Fr,vt+Dr,vt+Br,vt+$r]),Op=function(e,i,n){rr(n);var r=e._gsap;if(r.spacerIsNative)rr(r.spacerState);else if(e._gsap.swappedIn){var s=i.parentNode;s&&(s.insertBefore(e,i),s.removeChild(i))}e._gsap.swappedIn=!1},Lo=function(e,i,n,r){if(!e._gsap.swappedIn){for(var s=ua.length,o=i.style,a=e.style,l;s--;)l=ua[s],o[l]=n[l];o.position=n.position==="absolute"?"absolute":"relative",n.display==="inline"&&(o.display="inline-block"),a[Va]=a[Ha]="auto",o.flexBasis=n.flexBasis||"auto",o.overflow="visible",o.boxSizing="border-box",o[Ii]=Xs(e,Ut)+wt,o[Ri]=Xs(e,St)+wt,o[vt]=a[yn]=a[Ju]=a[Qu]="0",rr(r),a[Ii]=a["max"+fr]=n[Ii],a[Ri]=a["max"+ja]=n[Ri],a[vt]=n[vt],e.parentNode!==i&&(e.parentNode.insertBefore(i,e),i.appendChild(e)),e._gsap.swappedIn=!0}},Ap=/([A-Z])/g,rr=function(e){if(e){var i=e.t.style,n=e.length,r=0,s,o;for((e.t._gsap||Me.core.getCache(e.t)).uncache=1;r<n;r+=2)o=e[r+1],s=e[r],o?i[s]=o:i[s]&&i.removeProperty(s.replace(Ap,"-$1").toLowerCase())}},gs=function(e){for(var i=ks.length,n=e.style,r=[],s=0;s<i;s++)r.push(ks[s],n[ks[s]]);return r.t=e,r},kp=function(e,i,n){for(var r=[],s=e.length,o=n?8:0,a;o<s;o+=2)a=e[o],r.push(a,a in i?i[a]:e[o+1]);return r.t=e.t,r},Is={left:0,top:0},Fl=function(e,i,n,r,s,o,a,l,c,d,h,p,u,g){Ft(e)&&(e=e(l)),an(e)&&e.substr(0,3)==="max"&&(e=p+(e.charAt(4)==="="?Ls("0"+e.substr(3),n):0));var f=u?u.time():0,y,m,v;if(u&&u.seek(0),isNaN(e)||(e=+e),Tr(e))u&&(e=Me.utils.mapRange(u.scrollTrigger.start,u.scrollTrigger.end,0,p,e)),a&&Os(a,n,r,!0);else{Ft(i)&&(i=i(l));var b=(e||"0").split(" "),S,w,k,x;v=Kt(i,l)||Ze,S=Wn(v)||{},(!S||!S.left&&!S.top)&&_n(v).display==="none"&&(x=v.style.display,v.style.display="block",S=Wn(v),x?v.style.display=x:v.style.removeProperty("display")),w=Ls(b[0],S[r.d]),k=Ls(b[1]||"0",n),e=S[r.p]-c[r.p]-d+w+s-k,a&&Os(a,k,r,n-k<20||a._isStart&&k>20),n-=n-k}if(g&&(l[g]=e||-.001,e<0&&(e=0)),o){var z=e+n,V=o._isStart;y="scroll"+r.d2,Os(o,z,r,V&&z>20||!V&&(h?Math.max(Ze[y],un[y]):o.parentNode[y])<=z+1),h&&(c=Wn(a),h&&(o.style[r.op.p]=c[r.op.p]-r.op.m-o._offset+wt))}return u&&v&&(y=Wn(v),u.seek(p),m=Wn(v),u._caScrollDist=y[r.p]-m[r.p],e=e/u._caScrollDist*p),u&&u.seek(f),u?e:Math.round(e)},Ip=/(webkit|moz|length|cssText|inset)/i,Bl=function(e,i,n,r){if(e.parentNode!==i){var s=e.style,o,a;if(i===Ze){e._stOrig=s.cssText,a=_n(e);for(o in a)!+o&&!Ip.test(o)&&a[o]&&typeof s[o]=="string"&&o!=="0"&&(s[o]=a[o]);s.top=n,s.left=r}else s.cssText=e._stOrig;Me.core.getCache(e).uncache=1,i.appendChild(e)}},sd=function(e,i,n){var r=i,s=r;return function(o){var a=Math.round(e());return a!==r&&a!==s&&Math.abs(a-r)>3&&Math.abs(a-s)>3&&(o=a,n&&n()),s=r,r=Math.round(o),r}},ms=function(e,i,n){var r={};r[i.p]="+="+n,Me.set(e,r)},ql=function(e,i){var n=gi(e,i),r="_scroll"+i.p2,s=function o(a,l,c,d,h){var p=o.tween,u=l.onComplete,g={};c=c||n();var f=sd(n,c,function(){p.kill(),o.tween=0});return h=d&&h||0,d=d||a-c,p&&p.kill(),l[r]=a,l.inherit=!1,l.modifiers=g,g[r]=function(){return f(c+d*p.ratio+h*p.ratio*p.ratio)},l.onUpdate=function(){Ve.cache++,o.tween&&Xn()},l.onComplete=function(){o.tween=0,u&&u.call(p)},p=o.tween=Me.to(e,l),p};return e[r]=n,n.wheelHandler=function(){return s.tween&&s.tween.kill()&&(s.tween=0)},Et(e,"wheel",n.wheelHandler),je.isTouch&&Et(e,"touchmove",n.wheelHandler),s},je=function(){function t(i,n){Gi||t.register(Me)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),oa(this),this.init(i,n)}var e=t.prototype;return e.init=function(n,r){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),!xr){this.update=this.refresh=this.kill=zn;return}n=Il(an(n)||Tr(n)||n.nodeType?{trigger:n}:n,hs);var s=n,o=s.onUpdate,a=s.toggleClass,l=s.id,c=s.onToggle,d=s.onRefresh,h=s.scrub,p=s.trigger,u=s.pin,g=s.pinSpacing,f=s.invalidateOnRefresh,y=s.anticipatePin,m=s.onScrubComplete,v=s.onSnapComplete,b=s.once,S=s.snap,w=s.pinReparent,k=s.pinSpacer,x=s.containerAnimation,z=s.fastScrollEnd,V=s.preventOverlaps,E=n.horizontal||n.containerAnimation&&n.horizontal!==!1?Ut:St,B=!h&&h!==0,L=Kt(n.scroller||He),I=Me.core.getCache(L),R=Fi(L),$=("pinType"in n?n.pinType:fi(L,"pinType")||R&&"fixed")==="fixed",O=[n.onEnter,n.onLeave,n.onEnterBack,n.onLeaveBack],D=B&&n.toggleActions.split(" "),q="markers"in n?n.markers:hs.markers,X=R?0:parseFloat(_n(L)["border"+E.p2+fr])||0,_=this,Z=n.onRefreshInit&&function(){return n.onRefreshInit(_)},ee=xp(L,R,E),te=Ep(L,R),de=0,ge=0,Se=0,Te=gi(L,E),$e,Fe,Je,et,Qe,Ae,W,re,he,M,se,ae,F,G,J,K,H,U,fe,oe,me,xe,Pe,Ne,ye,Xe,Be,Ge,Re,T,j,Y,Q,ie,ne,le,ue,be,we;if(_._startClamp=_._endClamp=!1,_._dir=E,y*=45,_.scroller=L,_.scroll=x?x.time.bind(x):Te,et=Te(),_.vars=n,r=r||n.animation,"refreshPriority"in n&&(ju=1,n.refreshPriority===-9999&&(qr=_)),I.tweenScroll=I.tweenScroll||{top:ql(L,St),left:ql(L,Ut)},_.tweenTo=$e=I.tweenScroll[E.p],_.scrubDuration=function(ce){Q=Tr(ce)&&ce,Q?Y?Y.duration(ce):Y=Me.to(r,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:Q,paused:!0,onComplete:function(){return m&&m(_)}}):(Y&&Y.progress(1).kill(),Y=0)},r&&(r.vars.lazy=!1,r._initted&&!_.isReverted||r.vars.immediateRender!==!1&&n.immediateRender!==!1&&r.duration()&&r.render(0,!0,!0),_.animation=r.pause(),r.scrollTrigger=_,_.scrubDuration(h),T=0,l||(l=r.vars.id)),S&&((!Ti(S)||S.push)&&(S={snapTo:S}),"scrollBehavior"in Ze.style&&Me.set(R?[Ze,un]:L,{scrollBehavior:"auto"}),Ve.forEach(function(ce){return Ft(ce)&&ce.target===(R?ot.scrollingElement||un:L)&&(ce.smooth=!1)}),Je=Ft(S.snapTo)?S.snapTo:S.snapTo==="labels"?Mp(r):S.snapTo==="labelsDirectional"?Cp(r):S.directional!==!1?function(ce,Ce){return Ga(S.snapTo)(ce,zt()-ge<500?0:Ce.direction)}:Me.utils.snap(S.snapTo),ie=S.duration||{min:.1,max:2},ie=Ti(ie)?zr(ie.min,ie.max):zr(ie,ie),ne=Me.delayedCall(S.delay||Q/2||.1,function(){var ce=Te(),Ce=zt()-ge<500,_e=$e.tween;if((Ce||Math.abs(_.getVelocity())<10)&&!_e&&!io&&de!==ce){var Oe=(ce-Ae)/G,De=r&&!B?r.totalProgress():Oe,Ie=Ce?0:(De-j)/(zt()-Sr)*1e3||0,at=Me.utils.clamp(-Oe,1-Oe,Vi(Ie/2)*Ie/.185),ct=Oe+(S.inertia===!1?0:at),Ke,rt,tt=S,Tn=tt.onStart,ut=tt.onInterrupt,sn=tt.onComplete;if(Ke=Je(ct,_),Tr(Ke)||(Ke=ct),rt=Math.max(0,Math.round(Ae+Ke*G)),ce<=W&&ce>=Ae&&rt!==ce){if(_e&&!_e._initted&&_e.data<=Vi(rt-ce))return;S.inertia===!1&&(at=Ke-Oe),$e(rt,{duration:ie(Vi(Math.max(Vi(ct-De),Vi(Ke-De))*.185/Ie/.05||0)),ease:S.ease||"power3",data:Vi(rt-ce),onInterrupt:function(){return ne.restart(!0)&&ut&&ut(_)},onComplete:function(){_.update(),de=Te(),r&&!B&&(Y?Y.resetTo("totalProgress",Ke,r._tTime/r._tDur):r.progress(Ke)),T=j=r&&!B?r.totalProgress():_.progress,v&&v(_),sn&&sn(_)}},ce,at*G,rt-ce-at*G),Tn&&Tn(_,$e.tween)}}else _.isActive&&de!==ce&&ne.restart(!0)}).pause()),l&&(la[l]=_),p=_.trigger=Kt(p||u!==!0&&u),we=p&&p._gsap&&p._gsap.stRevert,we&&(we=we(_)),u=u===!0?p:Kt(u),an(a)&&(a={targets:p,className:a}),u&&(g===!1||g===yn||(g=!g&&u.parentNode&&u.parentNode.style&&_n(u.parentNode).display==="flex"?!1:vt),_.pin=u,Fe=Me.core.getCache(u),Fe.spacer?J=Fe.pinState:(k&&(k=Kt(k),k&&!k.nodeType&&(k=k.current||k.nativeElement),Fe.spacerIsNative=!!k,k&&(Fe.spacerState=gs(k))),Fe.spacer=U=k||ot.createElement("div"),U.classList.add("pin-spacer"),l&&U.classList.add("pin-spacer-"+l),Fe.pinState=J=gs(u)),n.force3D!==!1&&Me.set(u,{force3D:!0}),_.spacer=U=Fe.spacer,Re=_n(u),Ne=Re[g+E.os2],oe=Me.getProperty(u),me=Me.quickSetter(u,E.a,wt),Lo(u,U,Re),H=gs(u)),q){ae=Ti(q)?Il(q,Rl):Rl,M=ps("scroller-start",l,L,E,ae,0),se=ps("scroller-end",l,L,E,ae,0,M),fe=M["offset"+E.op.d2];var ke=Kt(fi(L,"content")||L);re=this.markerStart=ps("start",l,ke,E,ae,fe,0,x),he=this.markerEnd=ps("end",l,ke,E,ae,fe,0,x),x&&(be=Me.quickSetter([re,he],E.a,wt)),!$&&!(qn.length&&fi(L,"fixedMarkers")===!0)&&(Tp(R?Ze:L),Me.set([M,se],{force3D:!0}),Xe=Me.quickSetter(M,E.a,wt),Ge=Me.quickSetter(se,E.a,wt))}if(x){var ve=x.vars.onUpdate,pe=x.vars.onUpdateParams;x.eventCallback("onUpdate",function(){_.update(0,0,1),ve&&ve.apply(x,pe||[])})}if(_.previous=function(){return qe[qe.indexOf(_)-1]},_.next=function(){return qe[qe.indexOf(_)+1]},_.revert=function(ce,Ce){if(!Ce)return _.kill(!0);var _e=ce!==!1||!_.enabled,Oe=Rt;_e!==_.isReverted&&(_e&&(le=Math.max(Te(),_.scroll.rec||0),Se=_.progress,ue=r&&r.progress()),re&&[re,he,M,se].forEach(function(De){return De.style.display=_e?"none":"block"}),_e&&(Rt=_,_.update(_e)),u&&(!w||!_.isActive)&&(_e?Op(u,U,J):Lo(u,U,_n(u),ye)),_e||_.update(_e),Rt=Oe,_.isReverted=_e)},_.refresh=function(ce,Ce,_e,Oe){if(!((Rt||!_.enabled)&&!Ce)){if(u&&ce&&En){Et(t,"scrollEnd",td);return}!Wt&&Z&&Z(_),Rt=_,$e.tween&&!_e&&($e.tween.kill(),$e.tween=0),Y&&Y.pause(),f&&r&&(r.revert({kill:!1}).invalidate(),r.getChildren&&r.getChildren(!0,!0,!1).forEach(function(Qn){return Qn.vars.immediateRender&&Qn.render(0,!0,!0)})),_.isReverted||_.revert(!0,!0),_._subPinOffset=!1;var De=ee(),Ie=te(),at=x?x.duration():Fn(L,E),ct=G<=.01||!G,Ke=0,rt=Oe||0,tt=Ti(_e)?_e.end:n.end,Tn=n.endTrigger||p,ut=Ti(_e)?_e.start:n.start||(n.start===0||!p?0:u?"0 0":"0 100%"),sn=_.pinnedContainer=n.pinnedContainer&&Kt(n.pinnedContainer,_),Ln=p&&Math.max(0,qe.indexOf(_))||0,Ct=Ln,Pt,kt,yi,ts,It,bt,On,ro,Ja,pr,An,gr,ns;for(q&&Ti(_e)&&(gr=Me.getProperty(M,E.p),ns=Me.getProperty(se,E.p));Ct-- >0;)bt=qe[Ct],bt.end||bt.refresh(0,1)||(Rt=_),On=bt.pin,On&&(On===p||On===u||On===sn)&&!bt.isReverted&&(pr||(pr=[]),pr.unshift(bt),bt.revert(!0,!0)),bt!==qe[Ct]&&(Ln--,Ct--);for(Ft(ut)&&(ut=ut(_)),ut=Ll(ut,"start",_),Ae=Fl(ut,p,De,E,Te(),re,M,_,Ie,X,$,at,x,_._startClamp&&"_startClamp")||(u?-.001:0),Ft(tt)&&(tt=tt(_)),an(tt)&&!tt.indexOf("+=")&&(~tt.indexOf(" ")?tt=(an(ut)?ut.split(" ")[0]:"")+tt:(Ke=Ls(tt.substr(2),De),tt=an(ut)?ut:(x?Me.utils.mapRange(0,x.duration(),x.scrollTrigger.start,x.scrollTrigger.end,Ae):Ae)+Ke,Tn=p)),tt=Ll(tt,"end",_),W=Math.max(Ae,Fl(tt||(Tn?"100% 0":at),Tn,De,E,Te()+Ke,he,se,_,Ie,X,$,at,x,_._endClamp&&"_endClamp"))||-.001,Ke=0,Ct=Ln;Ct--;)bt=qe[Ct],On=bt.pin,On&&bt.start-bt._pinPush<=Ae&&!x&&bt.end>0&&(Pt=bt.end-(_._startClamp?Math.max(0,bt.start):bt.start),(On===p&&bt.start-bt._pinPush<Ae||On===sn)&&isNaN(ut)&&(Ke+=Pt*(1-bt.progress)),On===u&&(rt+=Pt));if(Ae+=Ke,W+=Ke,_._startClamp&&(_._startClamp+=Ke),_._endClamp&&!Wt&&(_._endClamp=W||-.001,W=Math.min(W,Fn(L,E))),G=W-Ae||(Ae-=.01)&&.001,ct&&(Se=Me.utils.clamp(0,1,Me.utils.normalize(Ae,W,le))),_._pinPush=rt,re&&Ke&&(Pt={},Pt[E.a]="+="+Ke,sn&&(Pt[E.p]="-="+Te()),Me.set([re,he],Pt)),u&&!(aa&&_.end>=Fn(L,E)))Pt=_n(u),ts=E===St,yi=Te(),xe=parseFloat(oe(E.a))+rt,!at&&W>1&&(An=(R?ot.scrollingElement||un:L).style,An={style:An,value:An["overflow"+E.a.toUpperCase()]},R&&_n(Ze)["overflow"+E.a.toUpperCase()]!=="scroll"&&(An.style["overflow"+E.a.toUpperCase()]="scroll")),Lo(u,U,Pt),H=gs(u),kt=Wn(u,!0),ro=$&&gi(L,ts?Ut:St)(),g?(ye=[g+E.os2,G+rt+wt],ye.t=U,Ct=g===vt?Xs(u,E)+G+rt:0,Ct&&(ye.push(E.d,Ct+wt),U.style.flexBasis!=="auto"&&(U.style.flexBasis=Ct+wt)),rr(ye),sn&&qe.forEach(function(Qn){Qn.pin===sn&&Qn.vars.pinSpacing!==!1&&(Qn._subPinOffset=!0)}),$&&Te(le)):(Ct=Xs(u,E),Ct&&U.style.flexBasis!=="auto"&&(U.style.flexBasis=Ct+wt)),$&&(It={top:kt.top+(ts?yi-Ae:ro)+wt,left:kt.left+(ts?ro:yi-Ae)+wt,boxSizing:"border-box",position:"fixed"},It[Ii]=It["max"+fr]=Math.ceil(kt.width)+wt,It[Ri]=It["max"+ja]=Math.ceil(kt.height)+wt,It[yn]=It[yn+Fr]=It[yn+Dr]=It[yn+Br]=It[yn+$r]="0",It[vt]=Pt[vt],It[vt+Fr]=Pt[vt+Fr],It[vt+Dr]=Pt[vt+Dr],It[vt+Br]=Pt[vt+Br],It[vt+$r]=Pt[vt+$r],K=kp(J,It,w),Wt&&Te(0)),r?(Ja=r._initted,Eo(1),r.render(r.duration(),!0,!0),Pe=oe(E.a)-xe+G+rt,Be=Math.abs(G-Pe)>1,$&&Be&&K.splice(K.length-2,2),r.render(0,!0,!0),Ja||r.invalidate(!0),r.parent||r.totalTime(r.totalTime()),Eo(0)):Pe=G,An&&(An.value?An.style["overflow"+E.a.toUpperCase()]=An.value:An.style.removeProperty("overflow-"+E.a));else if(p&&Te()&&!x)for(kt=p.parentNode;kt&&kt!==Ze;)kt._pinOffset&&(Ae-=kt._pinOffset,W-=kt._pinOffset),kt=kt.parentNode;pr&&pr.forEach(function(Qn){return Qn.revert(!1,!0)}),_.start=Ae,_.end=W,et=Qe=Wt?le:Te(),!x&&!Wt&&(et<le&&Te(le),_.scroll.rec=0),_.revert(!1,!0),ge=zt(),ne&&(de=-1,ne.restart(!0)),Rt=0,r&&B&&(r._initted||ue)&&r.progress()!==ue&&r.progress(ue||0,!0).render(r.time(),!0,!0),(ct||Se!==_.progress||x||f||r&&!r._initted)&&(r&&!B&&(r._initted||Se||r.vars.immediateRender!==!1)&&r.totalProgress(x&&Ae<-.001&&!Se?Me.utils.normalize(Ae,W,0):Se,!0),_.progress=ct||(et-Ae)/G===Se?0:Se),u&&g&&(U._pinOffset=Math.round(_.progress*Pe)),Y&&Y.invalidate(),isNaN(gr)||(gr-=Me.getProperty(M,E.p),ns-=Me.getProperty(se,E.p),ms(M,E,gr),ms(re,E,gr-(Oe||0)),ms(se,E,ns),ms(he,E,ns-(Oe||0))),ct&&!Wt&&_.update(),d&&!Wt&&!F&&(F=!0,d(_),F=!1)}},_.getVelocity=function(){return(Te()-Qe)/(zt()-Sr)*1e3||0},_.endAnimation=function(){_r(_.callbackAnimation),r&&(Y?Y.progress(1):r.paused()?B||_r(r,_.direction<0,1):_r(r,r.reversed()))},_.labelToScroll=function(ce){return r&&r.labels&&(Ae||_.refresh()||Ae)+r.labels[ce]/r.duration()*G||0},_.getTrailing=function(ce){var Ce=qe.indexOf(_),_e=_.direction>0?qe.slice(0,Ce).reverse():qe.slice(Ce+1);return(an(ce)?_e.filter(function(Oe){return Oe.vars.preventOverlaps===ce}):_e).filter(function(Oe){return _.direction>0?Oe.end<=Ae:Oe.start>=W})},_.update=function(ce,Ce,_e){if(!(x&&!_e&&!ce)){var Oe=Wt===!0?le:_.scroll(),De=ce?0:(Oe-Ae)/G,Ie=De<0?0:De>1?1:De||0,at=_.progress,ct,Ke,rt,tt,Tn,ut,sn,Ln;if(Ce&&(Qe=et,et=x?Te():Oe,S&&(j=T,T=r&&!B?r.totalProgress():Ie)),y&&u&&!Rt&&!cs&&En&&(!Ie&&Ae<Oe+(Oe-Qe)/(zt()-Sr)*y?Ie=1e-4:Ie===1&&W>Oe+(Oe-Qe)/(zt()-Sr)*y&&(Ie=.9999)),Ie!==at&&_.enabled){if(ct=_.isActive=!!Ie&&Ie<1,Ke=!!at&&at<1,ut=ct!==Ke,Tn=ut||!!Ie!=!!at,_.direction=Ie>at?1:-1,_.progress=Ie,Tn&&!Rt&&(rt=Ie&&!at?0:Ie===1?1:at===1?2:3,B&&(tt=!ut&&D[rt+1]!=="none"&&D[rt+1]||D[rt],Ln=r&&(tt==="complete"||tt==="reset"||tt in r))),V&&(ut||Ln)&&(Ln||h||!r)&&(Ft(V)?V(_):_.getTrailing(V).forEach(function(yi){return yi.endAnimation()})),B||(Y&&!Rt&&!cs?(Y._dp._time-Y._start!==Y._time&&Y.render(Y._dp._time-Y._start),Y.resetTo?Y.resetTo("totalProgress",Ie,r._tTime/r._tDur):(Y.vars.totalProgress=Ie,Y.invalidate().restart())):r&&r.totalProgress(Ie,!!(Rt&&(ge||ce)))),u){if(ce&&g&&(U.style[g+E.os2]=Ne),!$)me(Er(xe+Pe*Ie));else if(Tn){if(sn=!ce&&Ie>at&&W+1>Oe&&Oe+1>=Fn(L,E),w)if(!ce&&(ct||sn)){var Ct=Wn(u,!0),Pt=Oe-Ae;Bl(u,Ze,Ct.top+(E===St?Pt:0)+wt,Ct.left+(E===St?0:Pt)+wt)}else Bl(u,U);rr(ct||sn?K:H),Be&&Ie<1&&ct||me(xe+(Ie===1&&!sn?Pe:0))}}S&&!$e.tween&&!Rt&&!cs&&ne.restart(!0),a&&(ut||b&&Ie&&(Ie<1||!To))&&Zr(a.targets).forEach(function(yi){return yi.classList[ct||b?"add":"remove"](a.className)}),o&&!B&&!ce&&o(_),Tn&&!Rt?(B&&(Ln&&(tt==="complete"?r.pause().totalProgress(1):tt==="reset"?r.restart(!0).pause():tt==="restart"?r.restart(!0):r[tt]()),o&&o(_)),(ut||!To)&&(c&&ut&&Co(_,c),O[rt]&&Co(_,O[rt]),b&&(Ie===1?_.kill(!1,1):O[rt]=0),ut||(rt=Ie===1?1:3,O[rt]&&Co(_,O[rt]))),z&&!ct&&Math.abs(_.getVelocity())>(Tr(z)?z:2500)&&(_r(_.callbackAnimation),Y?Y.progress(1):_r(r,tt==="reverse"?1:!Ie,1))):B&&o&&!Rt&&o(_)}if(Ge){var kt=x?Oe/x.duration()*(x._caScrollDist||0):Oe;Xe(kt+(M._isFlipped?1:0)),Ge(kt)}be&&be(-Oe/x.duration()*(x._caScrollDist||0))}},_.enable=function(ce,Ce){_.enabled||(_.enabled=!0,Et(L,"resize",Mr),R||Et(L,"scroll",ji),Z&&Et(t,"refreshInit",Z),ce!==!1&&(_.progress=Se=0,et=Qe=de=Te()),Ce!==!1&&_.refresh())},_.getTween=function(ce){return ce&&$e?$e.tween:Y},_.setPositions=function(ce,Ce,_e,Oe){if(x){var De=x.scrollTrigger,Ie=x.duration(),at=De.end-De.start;ce=De.start+at*ce/Ie,Ce=De.start+at*Ce/Ie}_.refresh(!1,!1,{start:Ol(ce,_e&&!!_._startClamp),end:Ol(Ce,_e&&!!_._endClamp)},Oe),_.update()},_.adjustPinSpacing=function(ce){if(ye&&ce){var Ce=ye.indexOf(E.d)+1;ye[Ce]=parseFloat(ye[Ce])+ce+wt,ye[1]=parseFloat(ye[1])+ce+wt,rr(ye)}},_.disable=function(ce,Ce){if(_.enabled&&(ce!==!1&&_.revert(!0,!0),_.enabled=_.isActive=!1,Ce||Y&&Y.pause(),le=0,Fe&&(Fe.uncache=1),Z&&xt(t,"refreshInit",Z),ne&&(ne.pause(),$e.tween&&$e.tween.kill()&&($e.tween=0)),!R)){for(var _e=qe.length;_e--;)if(qe[_e].scroller===L&&qe[_e]!==_)return;xt(L,"resize",Mr),R||xt(L,"scroll",ji)}},_.kill=function(ce,Ce){_.disable(ce,Ce),Y&&!Ce&&Y.kill(),l&&delete la[l];var _e=qe.indexOf(_);_e>=0&&qe.splice(_e,1),_e===Gt&&As>0&&Gt--,_e=0,qe.forEach(function(Oe){return Oe.scroller===_.scroller&&(_e=1)}),_e||Wt||(_.scroll.rec=0),r&&(r.scrollTrigger=null,ce&&r.revert({kill:!1}),Ce||r.kill()),re&&[re,he,M,se].forEach(function(Oe){return Oe.parentNode&&Oe.parentNode.removeChild(Oe)}),qr===_&&(qr=0),u&&(Fe&&(Fe.uncache=1),_e=0,qe.forEach(function(Oe){return Oe.pin===u&&_e++}),_e||(Fe.spacer=0)),n.onKill&&n.onKill(_)},qe.push(_),_.enable(!1,!1),we&&we(_),r&&r.add&&!G){var Le=_.update;_.update=function(){_.update=Le,Ve.cache++,Ae||W||_.refresh()},Me.delayedCall(.01,_.update),G=.01,Ae=W=0}else _.refresh();u&&Lp()},t.register=function(n){return Gi||(Me=n||Uu(),Xu()&&window.document&&t.enable(),Gi=xr),Gi},t.defaults=function(n){if(n)for(var r in n)hs[r]=n[r];return hs},t.disable=function(n,r){xr=0,qe.forEach(function(o){return o[r?"kill":"disable"](n)}),xt(He,"wheel",ji),xt(ot,"scroll",ji),clearInterval(ls),xt(ot,"touchcancel",zn),xt(Ze,"touchstart",zn),ds(xt,ot,"pointerdown,touchstart,mousedown",Al),ds(xt,ot,"pointerup,touchend,mouseup",kl),Ws.kill(),us(xt);for(var s=0;s<Ve.length;s+=3)fs(xt,Ve[s],Ve[s+1]),fs(xt,Ve[s],Ve[s+2])},t.enable=function(){if(He=window,ot=document,un=ot.documentElement,Ze=ot.body,Me&&(Zr=Me.utils.toArray,zr=Me.utils.clamp,oa=Me.core.context||zn,Eo=Me.core.suppressOverwrites||zn,qa=He.history.scrollRestoration||"auto",ca=He.pageYOffset||0,Me.core.globals("ScrollTrigger",t),Ze)){xr=1,ir=document.createElement("div"),ir.style.height="100vh",ir.style.position="absolute",rd(),Sp(),gt.register(Me),t.isTouch=gt.isTouch,ti=gt.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),sa=gt.isTouch===1,Et(He,"wheel",ji),Ba=[He,ot,un,Ze],Me.matchMedia?(t.matchMedia=function(c){var d=Me.matchMedia(),h;for(h in c)d.add(h,c[h]);return d},Me.addEventListener("matchMediaInit",function(){return Wa()}),Me.addEventListener("matchMediaRevert",function(){return nd()}),Me.addEventListener("matchMedia",function(){Ci(0,1),qi("matchMedia")}),Me.matchMedia().add("(orientation: portrait)",function(){return Po(),Po})):console.warn("Requires GSAP 3.11.0 or later"),Po(),Et(ot,"scroll",ji);var n=Ze.hasAttribute("style"),r=Ze.style,s=r.borderTopStyle,o=Me.core.Animation.prototype,a,l;for(o.revert||Object.defineProperty(o,"revert",{value:function(){return this.time(-.01,!0)}}),r.borderTopStyle="solid",a=Wn(Ze),St.m=Math.round(a.top+St.sc())||0,Ut.m=Math.round(a.left+Ut.sc())||0,s?r.borderTopStyle=s:r.removeProperty("border-top-style"),n||(Ze.setAttribute("style",""),Ze.removeAttribute("style")),ls=setInterval(zl,250),Me.delayedCall(.5,function(){return cs=0}),Et(ot,"touchcancel",zn),Et(Ze,"touchstart",zn),ds(Et,ot,"pointerdown,touchstart,mousedown",Al),ds(Et,ot,"pointerup,touchend,mouseup",kl),ra=Me.utils.checkPrefix("transform"),ks.push(ra),Gi=zt(),Ws=Me.delayedCall(.2,Ci).pause(),Wi=[ot,"visibilitychange",function(){var c=He.innerWidth,d=He.innerHeight;ot.hidden?(Cl=c,Pl=d):(Cl!==c||Pl!==d)&&Mr()},ot,"DOMContentLoaded",Ci,He,"load",Ci,He,"resize",Mr],us(Et),qe.forEach(function(c){return c.enable(0,1)}),l=0;l<Ve.length;l+=3)fs(xt,Ve[l],Ve[l+1]),fs(xt,Ve[l],Ve[l+2])}},t.config=function(n){"limitCallbacks"in n&&(To=!!n.limitCallbacks);var r=n.syncInterval;r&&clearInterval(ls)||(ls=r)&&setInterval(zl,r),"ignoreMobileResize"in n&&(sa=t.isTouch===1&&n.ignoreMobileResize),"autoRefreshEvents"in n&&(us(xt)||us(Et,n.autoRefreshEvents||"none"),Gu=(n.autoRefreshEvents+"").indexOf("resize")===-1)},t.scrollerProxy=function(n,r){var s=Kt(n),o=Ve.indexOf(s),a=Fi(s);~o&&Ve.splice(o,a?6:2),r&&(a?qn.unshift(He,r,Ze,r,un,r):qn.unshift(s,r))},t.clearMatchMedia=function(n){qe.forEach(function(r){return r._ctx&&r._ctx.query===n&&r._ctx.kill(!0,!0)})},t.isInViewport=function(n,r,s){var o=(an(n)?Kt(n):n).getBoundingClientRect(),a=o[s?Ii:Ri]*r||0;return s?o.right-a>0&&o.left+a<He.innerWidth:o.bottom-a>0&&o.top+a<He.innerHeight},t.positionInViewport=function(n,r,s){an(n)&&(n=Kt(n));var o=n.getBoundingClientRect(),a=o[s?Ii:Ri],l=r==null?a/2:r in Us?Us[r]*a:~r.indexOf("%")?parseFloat(r)*a/100:parseFloat(r)||0;return s?(o.left+l)/He.innerWidth:(o.top+l)/He.innerHeight},t.killAll=function(n){if(qe.slice(0).forEach(function(s){return s.vars.id!=="ScrollSmoother"&&s.kill()}),n!==!0){var r=Bi.killAll||[];Bi={},r.forEach(function(s){return s()})}},t}();je.version="3.13.0";je.saveStyles=function(t){return t?Zr(t).forEach(function(e){if(e&&e.style){var i=on.indexOf(e);i>=0&&on.splice(i,5),on.push(e,e.style.cssText,e.getBBox&&e.getAttribute("transform"),Me.core.getCache(e),oa())}}):on};je.revert=function(t,e){return Wa(!t,e)};je.create=function(t,e){return new je(t,e)};je.refresh=function(t){return t?Mr(!0):(Gi||je.register())&&Ci(!0)};je.update=function(t){return++Ve.cache&&Xn(t===!0?2:0)};je.clearScrollMemory=id;je.maxScroll=function(t,e){return Fn(t,e?Ut:St)};je.getScrollFunc=function(t,e){return gi(Kt(t),e?Ut:St)};je.getById=function(t){return la[t]};je.getAll=function(){return qe.filter(function(t){return t.vars.id!=="ScrollSmoother"})};je.isScrolling=function(){return!!En};je.snapDirectional=Ga;je.addEventListener=function(t,e){var i=Bi[t]||(Bi[t]=[]);~i.indexOf(e)||i.push(e)};je.removeEventListener=function(t,e){var i=Bi[t],n=i&&i.indexOf(e);n>=0&&i.splice(n,1)};je.batch=function(t,e){var i=[],n={},r=e.interval||.016,s=e.batchMax||1e9,o=function(c,d){var h=[],p=[],u=Me.delayedCall(r,function(){d(h,p),h=[],p=[]}).pause();return function(g){h.length||u.restart(!0),h.push(g.trigger),p.push(g),s<=h.length&&u.progress(1)}},a;for(a in e)n[a]=a.substr(0,2)==="on"&&Ft(e[a])&&a!=="onRefreshInit"?o(a,e[a]):e[a];return Ft(s)&&(s=s(),Et(je,"refresh",function(){return s=e.batchMax()})),Zr(t).forEach(function(l){var c={};for(a in n)c[a]=n[a];c.trigger=l,i.push(je.create(c))}),i};var Nl=function(e,i,n,r){return i>r?e(r):i<0&&e(0),n>r?(r-i)/(n-i):n<0?i/(i-n):1},Oo=function t(e,i){i===!0?e.style.removeProperty("touch-action"):e.style.touchAction=i===!0?"auto":i?"pan-"+i+(gt.isTouch?" pinch-zoom":""):"none",e===un&&t(Ze,i)},vs={auto:1,scroll:1},Rp=function(e){var i=e.event,n=e.target,r=e.axis,s=(i.changedTouches?i.changedTouches[0]:i).target,o=s._gsap||Me.core.getCache(s),a=zt(),l;if(!o._isScrollT||a-o._isScrollT>2e3){for(;s&&s!==Ze&&(s.scrollHeight<=s.clientHeight&&s.scrollWidth<=s.clientWidth||!(vs[(l=_n(s)).overflowY]||vs[l.overflowX]));)s=s.parentNode;o._isScroll=s&&s!==n&&!Fi(s)&&(vs[(l=_n(s)).overflowY]||vs[l.overflowX]),o._isScrollT=a}(o._isScroll||r==="x")&&(i.stopPropagation(),i._gsapAllow=!0)},od=function(e,i,n,r){return gt.create({target:e,capture:!0,debounce:!1,lockAxis:!0,type:i,onWheel:r=r&&Rp,onPress:r,onDrag:r,onScroll:r,onEnable:function(){return n&&Et(ot,gt.eventTypes[0],Vl,!1,!0)},onDisable:function(){return xt(ot,gt.eventTypes[0],Vl,!0)}})},zp=/(input|label|select|textarea)/i,Hl,Vl=function(e){var i=zp.test(e.target.tagName);(i||Hl)&&(e._gsapAllow=!0,Hl=i)},Dp=function(e){Ti(e)||(e={}),e.preventDefault=e.isNormalizer=e.allowClicks=!0,e.type||(e.type="wheel,touch"),e.debounce=!!e.debounce,e.id=e.id||"normalizer";var i=e,n=i.normalizeScrollX,r=i.momentum,s=i.allowNestedScroll,o=i.onRelease,a,l,c=Kt(e.target)||un,d=Me.core.globals().ScrollSmoother,h=d&&d.get(),p=ti&&(e.content&&Kt(e.content)||h&&e.content!==!1&&!h.smooth()&&h.content()),u=gi(c,St),g=gi(c,Ut),f=1,y=(gt.isTouch&&He.visualViewport?He.visualViewport.scale*He.visualViewport.width:He.outerWidth)/He.innerWidth,m=0,v=Ft(r)?function(){return r(a)}:function(){return r||2.8},b,S,w=od(c,e.type,!0,s),k=function(){return S=!1},x=zn,z=zn,V=function(){l=Fn(c,St),z=zr(ti?1:0,l),n&&(x=zr(0,Fn(c,Ut))),b=zi},E=function(){p._gsap.y=Er(parseFloat(p._gsap.y)+u.offset)+"px",p.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(p._gsap.y)+", 0, 1)",u.offset=u.cacheID=0},B=function(){if(S){requestAnimationFrame(k);var q=Er(a.deltaY/2),X=z(u.v-q);if(p&&X!==u.v+u.offset){u.offset=X-u.v;var _=Er((parseFloat(p&&p._gsap.y)||0)-u.offset);p.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+_+", 0, 1)",p._gsap.y=_+"px",u.cacheID=Ve.cache,Xn()}return!0}u.offset&&E(),S=!0},L,I,R,$,O=function(){V(),L.isActive()&&L.vars.scrollY>l&&(u()>l?L.progress(1)&&u(l):L.resetTo("scrollY",l))};return p&&Me.set(p,{y:"+=0"}),e.ignoreCheck=function(D){return ti&&D.type==="touchmove"&&B()||f>1.05&&D.type!=="touchstart"||a.isGesturing||D.touches&&D.touches.length>1},e.onPress=function(){S=!1;var D=f;f=Er((He.visualViewport&&He.visualViewport.scale||1)/y),L.pause(),D!==f&&Oo(c,f>1.01?!0:n?!1:"x"),I=g(),R=u(),V(),b=zi},e.onRelease=e.onGestureStart=function(D,q){if(u.offset&&E(),!q)$.restart(!0);else{Ve.cache++;var X=v(),_,Z;n&&(_=g(),Z=_+X*.05*-D.velocityX/.227,X*=Nl(g,_,Z,Fn(c,Ut)),L.vars.scrollX=x(Z)),_=u(),Z=_+X*.05*-D.velocityY/.227,X*=Nl(u,_,Z,Fn(c,St)),L.vars.scrollY=z(Z),L.invalidate().duration(X).play(.01),(ti&&L.vars.scrollY>=l||_>=l-1)&&Me.to({},{onUpdate:O,duration:X})}o&&o(D)},e.onWheel=function(){L._ts&&L.pause(),zt()-m>1e3&&(b=0,m=zt())},e.onChange=function(D,q,X,_,Z){if(zi!==b&&V(),q&&n&&g(x(_[2]===q?I+(D.startX-D.x):g()+q-_[1])),X){u.offset&&E();var ee=Z[2]===X,te=ee?R+D.startY-D.y:u()+X-Z[1],de=z(te);ee&&te!==de&&(R+=de-te),u(de)}(X||q)&&Xn()},e.onEnable=function(){Oo(c,n?!1:"x"),je.addEventListener("refresh",O),Et(He,"resize",O),u.smooth&&(u.target.style.scrollBehavior="auto",u.smooth=g.smooth=!1),w.enable()},e.onDisable=function(){Oo(c,!0),xt(He,"resize",O),je.removeEventListener("refresh",O),w.kill()},e.lockAxis=e.lockAxis!==!1,a=new gt(e),a.iOS=ti,ti&&!u()&&u(1),ti&&Me.ticker.add(zn),$=a._dc,L=Me.to(a,{ease:"power4",paused:!0,inherit:!1,scrollX:n?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:sd(u,u(),function(){return L.pause()})},onUpdate:Xn,onComplete:$.vars.onComplete}),a};je.sort=function(t){if(Ft(t))return qe.sort(t);var e=He.pageYOffset||0;return je.getAll().forEach(function(i){return i._sortY=i.trigger?e+i.trigger.getBoundingClientRect().top:i.start+He.innerHeight}),qe.sort(t||function(i,n){return(i.vars.refreshPriority||0)*-1e6+(i.vars.containerAnimation?1e6:i._sortY)-((n.vars.containerAnimation?1e6:n._sortY)+(n.vars.refreshPriority||0)*-1e6)})};je.observe=function(t){return new gt(t)};je.normalizeScroll=function(t){if(typeof t>"u")return jt;if(t===!0&&jt)return jt.enable();if(t===!1){jt&&jt.kill(),jt=t;return}var e=t instanceof gt?t:Dp(t);return jt&&jt.target===e.target&&jt.kill(),Fi(e.target)&&(jt=e),e};je.core={_getVelocityProp:ia,_inputObserver:od,_scrollers:Ve,_proxies:qn,bridge:{ss:function(){En||qi("scrollStart"),En=zt()},ref:function(){return Rt}}};Uu()&&Me.registerPlugin(je);var $p="1.3.15";function ad(t,e,i){return Math.max(t,Math.min(e,i))}function Fp(t,e,i){return(1-i)*t+i*e}function Bp(t,e,i,n){return Fp(t,e,1-Math.exp(-i*n))}function qp(t,e){return(t%e+e)%e}var Np=class{isRunning=!1;value=0;from=0;to=0;currentTime=0;lerp;duration;easing;onUpdate;advance(t){if(!this.isRunning)return;let e=!1;if(this.duration&&this.easing){this.currentTime+=t;const i=ad(0,this.currentTime/this.duration,1);e=i>=1;const n=e?1:this.easing(i);this.value=this.from+(this.to-this.from)*n}else this.lerp?(this.value=Bp(this.value,this.to,this.lerp*60,t),Math.round(this.value)===this.to&&(this.value=this.to,e=!0)):(this.value=this.to,e=!0);e&&this.stop(),this.onUpdate?.(this.value,e)}stop(){this.isRunning=!1}fromTo(t,e,{lerp:i,duration:n,easing:r,onStart:s,onUpdate:o}){this.from=this.value=t,this.to=e,this.lerp=i,this.duration=n,this.easing=r,this.currentTime=0,this.isRunning=!0,s?.(),this.onUpdate=o}};function Hp(t,e){let i;return function(...n){let r=this;clearTimeout(i),i=setTimeout(()=>{i=void 0,t.apply(r,n)},e)}}var Vp=class{constructor(t,e,{autoResize:i=!0,debounce:n=250}={}){this.wrapper=t,this.content=e,i&&(this.debouncedResize=Hp(this.resize,n),this.wrapper instanceof Window?window.addEventListener("resize",this.debouncedResize,!1):(this.wrapperResizeObserver=new ResizeObserver(this.debouncedResize),this.wrapperResizeObserver.observe(this.wrapper)),this.contentResizeObserver=new ResizeObserver(this.debouncedResize),this.contentResizeObserver.observe(this.content)),this.resize()}width=0;height=0;scrollHeight=0;scrollWidth=0;debouncedResize;wrapperResizeObserver;contentResizeObserver;destroy(){this.wrapperResizeObserver?.disconnect(),this.contentResizeObserver?.disconnect(),this.wrapper===window&&this.debouncedResize&&window.removeEventListener("resize",this.debouncedResize,!1)}resize=()=>{this.onWrapperResize(),this.onContentResize()};onWrapperResize=()=>{this.wrapper instanceof Window?(this.width=window.innerWidth,this.height=window.innerHeight):(this.width=this.wrapper.clientWidth,this.height=this.wrapper.clientHeight)};onContentResize=()=>{this.wrapper instanceof Window?(this.scrollHeight=this.content.scrollHeight,this.scrollWidth=this.content.scrollWidth):(this.scrollHeight=this.wrapper.scrollHeight,this.scrollWidth=this.wrapper.scrollWidth)};get limit(){return{x:this.scrollWidth-this.width,y:this.scrollHeight-this.height}}},ld=class{events={};emit(t,...e){let i=this.events[t]||[];for(let n=0,r=i.length;n<r;n++)i[n]?.(...e)}on(t,e){return this.events[t]?.push(e)||(this.events[t]=[e]),()=>{this.events[t]=this.events[t]?.filter(i=>e!==i)}}off(t,e){this.events[t]=this.events[t]?.filter(i=>e!==i)}destroy(){this.events={}}},jl=100/6,Jn={passive:!1},jp=class{constructor(t,e={wheelMultiplier:1,touchMultiplier:1}){this.element=t,this.options=e,window.addEventListener("resize",this.onWindowResize,!1),this.onWindowResize(),this.element.addEventListener("wheel",this.onWheel,Jn),this.element.addEventListener("touchstart",this.onTouchStart,Jn),this.element.addEventListener("touchmove",this.onTouchMove,Jn),this.element.addEventListener("touchend",this.onTouchEnd,Jn)}touchStart={x:0,y:0};lastDelta={x:0,y:0};window={width:0,height:0};emitter=new ld;on(t,e){return this.emitter.on(t,e)}destroy(){this.emitter.destroy(),window.removeEventListener("resize",this.onWindowResize,!1),this.element.removeEventListener("wheel",this.onWheel,Jn),this.element.removeEventListener("touchstart",this.onTouchStart,Jn),this.element.removeEventListener("touchmove",this.onTouchMove,Jn),this.element.removeEventListener("touchend",this.onTouchEnd,Jn)}onTouchStart=t=>{const{clientX:e,clientY:i}=t.targetTouches?t.targetTouches[0]:t;this.touchStart.x=e,this.touchStart.y=i,this.lastDelta={x:0,y:0},this.emitter.emit("scroll",{deltaX:0,deltaY:0,event:t})};onTouchMove=t=>{const{clientX:e,clientY:i}=t.targetTouches?t.targetTouches[0]:t,n=-(e-this.touchStart.x)*this.options.touchMultiplier,r=-(i-this.touchStart.y)*this.options.touchMultiplier;this.touchStart.x=e,this.touchStart.y=i,this.lastDelta={x:n,y:r},this.emitter.emit("scroll",{deltaX:n,deltaY:r,event:t})};onTouchEnd=t=>{this.emitter.emit("scroll",{deltaX:this.lastDelta.x,deltaY:this.lastDelta.y,event:t})};onWheel=t=>{let{deltaX:e,deltaY:i,deltaMode:n}=t;const r=n===1?jl:n===2?this.window.width:1,s=n===1?jl:n===2?this.window.height:1;e*=r,i*=s,e*=this.options.wheelMultiplier,i*=this.options.wheelMultiplier,this.emitter.emit("scroll",{deltaX:e,deltaY:i,event:t})};onWindowResize=()=>{this.window={width:window.innerWidth,height:window.innerHeight}}},Gl=t=>Math.min(1,1.001-Math.pow(2,-10*t)),Gp=class{_isScrolling=!1;_isStopped=!1;_isLocked=!1;_preventNextNativeScrollEvent=!1;_resetVelocityTimeout=null;__rafID=null;isTouching;time=0;userData={};lastVelocity=0;velocity=0;direction=0;options;targetScroll;animatedScroll;animate=new Np;emitter=new ld;dimensions;virtualScroll;constructor({wrapper:t=window,content:e=document.documentElement,eventsTarget:i=t,smoothWheel:n=!0,syncTouch:r=!1,syncTouchLerp:s=.075,touchInertiaExponent:o=1.7,duration:a,easing:l,lerp:c=.1,infinite:d=!1,orientation:h="vertical",gestureOrientation:p=h==="horizontal"?"both":"vertical",touchMultiplier:u=1,wheelMultiplier:g=1,autoResize:f=!0,prevent:y,virtualScroll:m,overscroll:v=!0,autoRaf:b=!1,anchors:S=!1,autoToggle:w=!1,allowNestedScroll:k=!1,__experimental__naiveDimensions:x=!1}={}){window.lenisVersion=$p,(!t||t===document.documentElement)&&(t=window),typeof a=="number"&&typeof l!="function"?l=Gl:typeof l=="function"&&typeof a!="number"&&(a=1),this.options={wrapper:t,content:e,eventsTarget:i,smoothWheel:n,syncTouch:r,syncTouchLerp:s,touchInertiaExponent:o,duration:a,easing:l,lerp:c,infinite:d,gestureOrientation:p,orientation:h,touchMultiplier:u,wheelMultiplier:g,autoResize:f,prevent:y,virtualScroll:m,overscroll:v,autoRaf:b,anchors:S,autoToggle:w,allowNestedScroll:k,__experimental__naiveDimensions:x},this.dimensions=new Vp(t,e,{autoResize:f}),this.updateClassName(),this.targetScroll=this.animatedScroll=this.actualScroll,this.options.wrapper.addEventListener("scroll",this.onNativeScroll,!1),this.options.wrapper.addEventListener("scrollend",this.onScrollEnd,{capture:!0}),this.options.anchors&&this.options.wrapper===window&&this.options.wrapper.addEventListener("click",this.onClick,!1),this.options.wrapper.addEventListener("pointerdown",this.onPointerDown,!1),this.virtualScroll=new jp(i,{touchMultiplier:u,wheelMultiplier:g}),this.virtualScroll.on("scroll",this.onVirtualScroll),this.options.autoToggle&&this.rootElement.addEventListener("transitionend",this.onTransitionEnd,{passive:!0}),this.options.autoRaf&&(this.__rafID=requestAnimationFrame(this.raf))}destroy(){this.emitter.destroy(),this.options.wrapper.removeEventListener("scroll",this.onNativeScroll,!1),this.options.wrapper.removeEventListener("scrollend",this.onScrollEnd,{capture:!0}),this.options.wrapper.removeEventListener("pointerdown",this.onPointerDown,!1),this.options.anchors&&this.options.wrapper===window&&this.options.wrapper.removeEventListener("click",this.onClick,!1),this.virtualScroll.destroy(),this.dimensions.destroy(),this.cleanUpClassName(),this.__rafID&&cancelAnimationFrame(this.__rafID)}on(t,e){return this.emitter.on(t,e)}off(t,e){return this.emitter.off(t,e)}onScrollEnd=t=>{t instanceof CustomEvent||(this.isScrolling==="smooth"||this.isScrolling===!1)&&t.stopPropagation()};dispatchScrollendEvent=()=>{this.options.wrapper.dispatchEvent(new CustomEvent("scrollend",{bubbles:this.options.wrapper===window,detail:{lenisScrollEnd:!0}}))};onTransitionEnd=t=>{if(t.propertyName.includes("overflow")){const e=this.isHorizontal?"overflow-x":"overflow-y",i=getComputedStyle(this.rootElement)[e];["hidden","clip"].includes(i)?this.internalStop():this.internalStart()}};setScroll(t){this.isHorizontal?this.options.wrapper.scrollTo({left:t,behavior:"instant"}):this.options.wrapper.scrollTo({top:t,behavior:"instant"})}onClick=t=>{const i=t.composedPath().find(n=>n instanceof HTMLAnchorElement&&n.getAttribute("href")?.includes("#"));if(i){const n=i.getAttribute("href");if(n){const r=typeof this.options.anchors=="object"&&this.options.anchors?this.options.anchors:void 0,s=`#${n.split("#")[1]}`;this.scrollTo(s,r)}}};onPointerDown=t=>{t.button===1&&this.reset()};onVirtualScroll=t=>{if(typeof this.options.virtualScroll=="function"&&this.options.virtualScroll(t)===!1)return;const{deltaX:e,deltaY:i,event:n}=t;if(this.emitter.emit("virtual-scroll",{deltaX:e,deltaY:i,event:n}),n.ctrlKey||n.lenisStopPropagation)return;const r=n.type.includes("touch"),s=n.type.includes("wheel");this.isTouching=n.type==="touchstart"||n.type==="touchmove";const o=e===0&&i===0;if(this.options.syncTouch&&r&&n.type==="touchstart"&&o&&!this.isStopped&&!this.isLocked){this.reset();return}const l=this.options.gestureOrientation==="vertical"&&i===0||this.options.gestureOrientation==="horizontal"&&e===0;if(o||l)return;let c=n.composedPath();c=c.slice(0,c.indexOf(this.rootElement));const d=this.options.prevent;if(c.find(y=>y instanceof HTMLElement&&(typeof d=="function"&&d?.(y)||y.hasAttribute?.("data-lenis-prevent")||r&&y.hasAttribute?.("data-lenis-prevent-touch")||s&&y.hasAttribute?.("data-lenis-prevent-wheel")||this.options.allowNestedScroll&&this.checkNestedScroll(y,{deltaX:e,deltaY:i}))))return;if(this.isStopped||this.isLocked){n.cancelable&&n.preventDefault();return}if(!(this.options.syncTouch&&r||this.options.smoothWheel&&s)){this.isScrolling="native",this.animate.stop(),n.lenisStopPropagation=!0;return}let p=i;this.options.gestureOrientation==="both"?p=Math.abs(i)>Math.abs(e)?i:e:this.options.gestureOrientation==="horizontal"&&(p=e),(!this.options.overscroll||this.options.infinite||this.options.wrapper!==window&&this.limit>0&&(this.animatedScroll>0&&this.animatedScroll<this.limit||this.animatedScroll===0&&i>0||this.animatedScroll===this.limit&&i<0))&&(n.lenisStopPropagation=!0),n.cancelable&&n.preventDefault();const u=r&&this.options.syncTouch,f=r&&n.type==="touchend";f&&(p=Math.sign(this.velocity)*Math.pow(Math.abs(this.velocity),this.options.touchInertiaExponent)),this.scrollTo(this.targetScroll+p,{programmatic:!1,...u?{lerp:f?this.options.syncTouchLerp:1}:{lerp:this.options.lerp,duration:this.options.duration,easing:this.options.easing}})};resize(){this.dimensions.resize(),this.animatedScroll=this.targetScroll=this.actualScroll,this.emit()}emit(){this.emitter.emit("scroll",this)}onNativeScroll=()=>{if(this._resetVelocityTimeout!==null&&(clearTimeout(this._resetVelocityTimeout),this._resetVelocityTimeout=null),this._preventNextNativeScrollEvent){this._preventNextNativeScrollEvent=!1;return}if(this.isScrolling===!1||this.isScrolling==="native"){const t=this.animatedScroll;this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity,this.velocity=this.animatedScroll-t,this.direction=Math.sign(this.animatedScroll-t),this.isStopped||(this.isScrolling="native"),this.emit(),this.velocity!==0&&(this._resetVelocityTimeout=setTimeout(()=>{this.lastVelocity=this.velocity,this.velocity=0,this.isScrolling=!1,this.emit()},400))}};reset(){this.isLocked=!1,this.isScrolling=!1,this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity=0,this.animate.stop()}start(){if(this.isStopped){if(this.options.autoToggle){this.rootElement.style.removeProperty("overflow");return}this.internalStart()}}internalStart(){this.isStopped&&(this.reset(),this.isStopped=!1,this.emit())}stop(){if(!this.isStopped){if(this.options.autoToggle){this.rootElement.style.setProperty("overflow","clip");return}this.internalStop()}}internalStop(){this.isStopped||(this.reset(),this.isStopped=!0,this.emit())}raf=t=>{const e=t-(this.time||t);this.time=t,this.animate.advance(e*.001),this.options.autoRaf&&(this.__rafID=requestAnimationFrame(this.raf))};scrollTo(t,{offset:e=0,immediate:i=!1,lock:n=!1,duration:r=this.options.duration,easing:s=this.options.easing,lerp:o=this.options.lerp,onStart:a,onComplete:l,force:c=!1,programmatic:d=!0,userData:h}={}){if(!((this.isStopped||this.isLocked)&&!c)){if(typeof t=="string"&&["top","left","start","#"].includes(t))t=0;else if(typeof t=="string"&&["bottom","right","end"].includes(t))t=this.limit;else{let p;if(typeof t=="string"?(p=document.querySelector(t),p||(t==="#top"?t=0:console.warn("Lenis: Target not found",t))):t instanceof HTMLElement&&t?.nodeType&&(p=t),p){if(this.options.wrapper!==window){const g=this.rootElement.getBoundingClientRect();e-=this.isHorizontal?g.left:g.top}const u=p.getBoundingClientRect();t=(this.isHorizontal?u.left:u.top)+this.animatedScroll}}if(typeof t=="number"){if(t+=e,t=Math.round(t),this.options.infinite){if(d){this.targetScroll=this.animatedScroll=this.scroll;const p=t-this.animatedScroll;p>this.limit/2?t=t-this.limit:p<-this.limit/2&&(t=t+this.limit)}}else t=ad(0,t,this.limit);if(t===this.targetScroll){a?.(this),l?.(this);return}if(this.userData=h??{},i){this.animatedScroll=this.targetScroll=t,this.setScroll(this.scroll),this.reset(),this.preventNextNativeScrollEvent(),this.emit(),l?.(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()});return}d||(this.targetScroll=t),typeof r=="number"&&typeof s!="function"?s=Gl:typeof s=="function"&&typeof r!="number"&&(r=1),this.animate.fromTo(this.animatedScroll,t,{duration:r,easing:s,lerp:o,onStart:()=>{n&&(this.isLocked=!0),this.isScrolling="smooth",a?.(this)},onUpdate:(p,u)=>{this.isScrolling="smooth",this.lastVelocity=this.velocity,this.velocity=p-this.animatedScroll,this.direction=Math.sign(this.velocity),this.animatedScroll=p,this.setScroll(this.scroll),d&&(this.targetScroll=p),u||this.emit(),u&&(this.reset(),this.emit(),l?.(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()}),this.preventNextNativeScrollEvent())}})}}}preventNextNativeScrollEvent(){this._preventNextNativeScrollEvent=!0,requestAnimationFrame(()=>{this._preventNextNativeScrollEvent=!1})}checkNestedScroll(t,{deltaX:e,deltaY:i}){const n=Date.now(),r=t._lenis??={};let s,o,a,l,c,d,h,p;const u=this.options.gestureOrientation;if(n-(r.time??0)>2e3){r.time=Date.now();const w=window.getComputedStyle(t);r.computedStyle=w;const k=w.overflowX,x=w.overflowY;if(s=["auto","overlay","scroll"].includes(k),o=["auto","overlay","scroll"].includes(x),r.hasOverflowX=s,r.hasOverflowY=o,!s&&!o||u==="vertical"&&!o||u==="horizontal"&&!s)return!1;c=t.scrollWidth,d=t.scrollHeight,h=t.clientWidth,p=t.clientHeight,a=c>h,l=d>p,r.isScrollableX=a,r.isScrollableY=l,r.scrollWidth=c,r.scrollHeight=d,r.clientWidth=h,r.clientHeight=p}else a=r.isScrollableX,l=r.isScrollableY,s=r.hasOverflowX,o=r.hasOverflowY,c=r.scrollWidth,d=r.scrollHeight,h=r.clientWidth,p=r.clientHeight;if(!s&&!o||!a&&!l||u==="vertical"&&(!o||!l)||u==="horizontal"&&(!s||!a))return!1;let g;if(u==="horizontal")g="x";else if(u==="vertical")g="y";else{const w=e!==0,k=i!==0;w&&s&&a&&(g="x"),k&&o&&l&&(g="y")}if(!g)return!1;let f,y,m,v,b;if(g==="x")f=t.scrollLeft,y=c-h,m=e,v=s,b=a;else if(g==="y")f=t.scrollTop,y=d-p,m=i,v=o,b=l;else return!1;return(m>0?f<y:f>0)&&v&&b}get rootElement(){return this.options.wrapper===window?document.documentElement:this.options.wrapper}get limit(){return this.options.__experimental__naiveDimensions?this.isHorizontal?this.rootElement.scrollWidth-this.rootElement.clientWidth:this.rootElement.scrollHeight-this.rootElement.clientHeight:this.dimensions.limit[this.isHorizontal?"x":"y"]}get isHorizontal(){return this.options.orientation==="horizontal"}get actualScroll(){const t=this.options.wrapper;return this.isHorizontal?t.scrollX??t.scrollLeft:t.scrollY??t.scrollTop}get scroll(){return this.options.infinite?qp(this.animatedScroll,this.limit):this.animatedScroll}get progress(){return this.limit===0?1:this.scroll/this.limit}get isScrolling(){return this._isScrolling}set isScrolling(t){this._isScrolling!==t&&(this._isScrolling=t,this.updateClassName())}get isStopped(){return this._isStopped}set isStopped(t){this._isStopped!==t&&(this._isStopped=t,this.updateClassName())}get isLocked(){return this._isLocked}set isLocked(t){this._isLocked!==t&&(this._isLocked=t,this.updateClassName())}get isSmooth(){return this.isScrolling==="smooth"}get className(){let t="lenis";return this.options.autoToggle&&(t+=" lenis-autoToggle"),this.isStopped&&(t+=" lenis-stopped"),this.isLocked&&(t+=" lenis-locked"),this.isScrolling&&(t+=" lenis-scrolling"),this.isScrolling==="smooth"&&(t+=" lenis-smooth"),t}updateClassName(){this.cleanUpClassName(),this.rootElement.className=`${this.rootElement.className} ${this.className}`.trim()}cleanUpClassName(){this.rootElement.className=this.rootElement.className.replace(/lenis(-\w+)?/g,"").trim()}};const Ue=t=>typeof t=="string";const Ki=t=>t&&t!==null&&t instanceof Element&&"nodeType"in t;const Wp=function(t){if(!(t&&t instanceof Element&&t.offsetParent))return!1;let e=!1,i=!1;if(t.scrollWidth>t.clientWidth){const n=window.getComputedStyle(t).overflowX,r=n.indexOf("hidden")!==-1,s=n.indexOf("clip")!==-1,o=n.indexOf("visible")!==-1;e=!r&&!s&&!o}if(t.scrollHeight>t.clientHeight){const n=window.getComputedStyle(t).overflowY,r=n.indexOf("hidden")!==-1,s=n.indexOf("clip")!==-1,o=n.indexOf("visible")!==-1;i=!r&&!s&&!o}return e||i},Di=function(t,e=void 0){return!t||t===document.body||e&&t===e?null:Wp(t)?t:Di(t.parentElement,e)};const Kn=function(t){var e=new DOMParser().parseFromString(t,"text/html").body;if(e.childElementCount>1){for(var i=document.createElement("div");e.firstChild;)i.appendChild(e.firstChild);return i}let n=e.firstChild;return!n||n instanceof HTMLElement?n:((i=document.createElement("div")).appendChild(n),i)};const We=function(t=0,e=0,i=0){return Math.max(Math.min(e,i),t)};const At=t=>typeof t=="object"&&t!==null&&t.constructor===Object&&Object.prototype.toString.call(t)==="[object Object]";function Wl(t){return At(t)||Array.isArray(t)}function Qr(t,e){const i=Object.keys(t),n=Object.keys(e);return i.length===n.length&&i.every(r=>{const s=t[r],o=e[r];return typeof s=="function"?`${s}`==`${o}`:Wl(s)&&Wl(o)?Qr(s,o):s===o})}const cd=function(t){for(const e of Zs)e.getState()===Vt.Running&&e.tick(Ao?t-Ao:0);Ao=t,sr=window.requestAnimationFrame(cd)};var Vt,ii,Qi;(function(t){t[t.Initializing=0]="Initializing",t[t.Running=1]="Running",t[t.Paused=2]="Paused",t[t.Completed=3]="Completed",t[t.Destroyed=4]="Destroyed"})(Vt||(Vt={})),function(t){t[t.Spring=0]="Spring",t[t.Ease=1]="Ease"}(ii||(ii={})),function(t){t[t.Loop=0]="Loop",t[t.Reverse=1]="Reverse"}(Qi||(Qi={}));const Zs=new Set;let sr=null,Ao=0;function mi(){let t=Vt.Initializing,e=ii.Ease,i=0,n=0,r=mi.Easings.Linear,s=500,o=0,a=0,l=0,c=0,d=1/0,h=.01,p=.01,u=!1,g={},f=null,y={},m={},v={},b=0,S=0,w=Qi.Loop,k=mi.Easings.Linear;const x=new Map;function z(I,...R){for(const $ of x.get(I)||[])$(...R)}function V(I){return n=0,I?f=setTimeout(()=>{E()},I):E(),L}function E(){t=Vt.Running,z("start",y,m)}function B(){if(t=Vt.Completed,v={},z("end",y),t===Vt.Completed)if(i<b){if(i++,w===Qi.Reverse){const I=Object.assign({},g);g=Object.assign({},m),m=I}V(S)}else i=0;return L}const L={getState:function(){return t},easing:function(I){return r=I,e=ii.Ease,v={},L},duration:function(I){return s=I,L},spring:function(I={}){e=ii.Spring;const R={velocity:0,mass:1,tension:170,friction:26,restDelta:.1,restSpeed:.1,maxSpeed:1/0,clamp:!0},{velocity:$,mass:O,tension:D,friction:q,restDelta:X,restSpeed:_,maxSpeed:Z,clamp:ee}=Object.assign(Object.assign({},R),I);return o=$,a=O,l=D,c=q,p=X,h=_,d=Z,u=ee,v={},L},isRunning:function(){return t===Vt.Running},isSpring:function(){return e===ii.Spring},from:function(I){return y=Object.assign({},I),L},to:function(I){return m=I,L},repeat:function(I,R=0,$=Qi.Loop,O){return b=I,S=R,w=$,k=O||r,L},on:function(I,R){var $,O;return $=I,O=R,x.set($,[...x.get($)||[],O]),L},off:function(I,R){var $,O;return $=I,O=R,x.has($)&&x.set($,x.get($).filter(D=>D!==O)),L},start:function(I){return Qr(y,m)||(t=Vt.Initializing,g=Object.assign({},y),Zs.add(this),sr||(sr=window.requestAnimationFrame(cd)),V(I)),L},pause:function(){return f&&(clearTimeout(f),f=null),t===Vt.Running&&(t=Vt.Paused,z("pause",y)),L},end:B,tick:function(I){I>50&&(I=50),n+=I;let R=0,$=!1;if(t!==Vt.Running)return L;if(e===ii.Ease){R=We(0,n/s,1),$=R===1;const D=w===Qi.Reverse?k:r;for(const q in y)y[q]=g[q]+(m[q]-g[q])*D(R)}if(e===ii.Spring){const D=.001*I;let q=0;for(const X in y){const _=m[X];let Z=y[X];if(typeof _!="number"||isNaN(_)||typeof Z!="number"||isNaN(Z))continue;if(Math.abs(_-Z)<=p){y[X]=_,v[X]=0;continue}v[X]||(typeof o=="object"&&typeof o[X]=="number"?v[X]=o[X]:v[X]=typeof o=="number"?o:0);let ee=v[X];ee=We(-1*Math.abs(d),ee,Math.abs(d));const te=ee*a*c;ee+=((Z>_?-1:1)*(Math.abs(_-Z)*l)-te)/a*D,Z+=ee*D;const de=y[X]>_?Z<_:Z>_;let ge=Math.abs(ee)<h&&Math.abs(_-Z)<=p;u&&de&&(ge=!0),ge?(Z=_,ee=0):q++,y[X]=Z,v[X]=ee}$=!q}const O=Object.assign({},m);return z("step",y,g,m,R),$&&t===Vt.Running&&Qr(m,O)&&(t=Vt.Completed,B()),L},getStartValues:function(){return g},getCurrentValues:function(){return y},getCurrentVelocities:function(){return v},getEndValues:function(){return m},destroy:function(){t=Vt.Destroyed,f&&(clearTimeout(f),f=null),g=y=m={},Zs.delete(this)}};return L}mi.destroy=()=>{for(const t of Zs)t.destroy();sr&&(cancelAnimationFrame(sr),sr=null)},mi.Easings={Linear:function(t){return t},EaseIn:function(t){return t===0?0:Math.pow(2,10*t-10)},EaseOut:function(t){return t===1?1:1-Math.pow(2,-10*t)},EaseInOut:function(t){return t===0?0:t===1?1:t<.5?Math.pow(2,20*t-10)/2:(2-Math.pow(2,-20*t+10))/2}};function Nr(t){return typeof TouchEvent<"u"&&t instanceof TouchEvent}function Ya(t,e){const i=[],n=Nr(t)?t[e]:t instanceof MouseEvent&&(e==="changedTouches"||t.type!=="mouseup")?[t]:[];for(const r of n)i.push({x:r.clientX,y:r.clientY,ts:Date.now()});return i}function Yl(t){return Ya(t,"touches")}function Xl(t){return Ya(t,"targetTouches")}function ud(t){return Ya(t,"changedTouches")}function ni(t){const e=t[0],i=t[1]||e;return{x:(e.x+i.x)/2,y:(e.y+i.y)/2,ts:i.ts}}function ys(t){const e=t[0],i=t[1]||t[0];return e&&i?-1*Math.sqrt((i.x-e.x)*(i.x-e.x)+(i.y-e.y)*(i.y-e.y)):0}const Ul=t=>{t.cancelable&&t.preventDefault()},ei={passive:!1},Yp={panThreshold:5,swipeThreshold:3,ignore:["textarea","input","select","[contenteditable]","[data-selectable]","[data-draggable]"]};let _s=!1,Cr=!0;const hr=(t,e)=>{let i,n,r,s=Object.assign(Object.assign({},Yp),e),o=[],a=[],l=[],c=!1,d=!1,h=!1,p=!1,u=0,g=0,f=0,y=0,m=0,v=0,b=0,S=0,w=0,k=[],x=0,z=0;const V=new Map;function E(_){const Z=ys(a),ee=ys(l),te=Z&&ee?Z/ee:0,de=Math.abs(b)>Math.abs(S)?b:S,ge={srcEvent:i,isPanRecognized:c,isSwipeRecognized:d,firstTouch:o,previousTouch:l,currentTouch:a,deltaX:f,deltaY:y,offsetX:m,offsetY:v,velocityX:b,velocityY:S,velocity:de,angle:w,axis:r,scale:te,center:n};for(const Se of V.get(_)||[])Se(ge)}function B(_){const Z=_.target,ee=_.composedPath()[0],te=s.ignore.join(","),de=ge=>ge&&(ge.matches(te)||ge.closest(te));if(de(Z)||de(ee))return!1}function L(_){const Z=Date.now();if(k=k.filter(ee=>!ee.ts||ee.ts>Z-100),_&&k.push(_),b=0,S=0,k.length>3){const ee=k[0],te=k[k.length-1];if(ee&&te){const de=te.x-ee.x,ge=te.y-ee.y,Se=ee.ts&&te.ts?te.ts-ee.ts:0;Se>0&&(b=Math.abs(de)>3?de/(Se/30):0,S=Math.abs(ge)>3?ge/(Se/30):0)}}}function I(_){if(B(_)===!1)return;if(typeof MouseEvent<"u"&&_ instanceof MouseEvent){if(_s)return}else _s=!0;if(typeof MouseEvent<"u"&&_ instanceof MouseEvent){if(!_.buttons||_.button!==0)return;Ul(_)}_ instanceof MouseEvent&&(window.addEventListener("mousemove",R),window.addEventListener("mouseup",$)),window.addEventListener("blur",O),i=_,a=Xl(_),o=[...a],l=[],g=a.length,n=ni(a),g===1&&(c=!1,d=!1,h=!1),g&&L(ni(a));const Z=Date.now(),ee=Z-(u||Z);p=ee>0&&ee<=250&&g===1,u=Z,clearTimeout(x),E("start")}function R(_){var Z;if(!o.length||_.defaultPrevented||B(_)===!1)return;i=_,l=[...a],a=Yl(_);const ee=ni(l),te=ni(Yl(_));if(L(te),g=a.length,n=te,l.length===a.length?(f=te.x-ee.x,y=te.y-ee.y):(f=0,y=0),o.length){const de=ni(o);m=te.x-de.x,v=te.y-de.y}if(a.length>1){const de=ys(a),ge=ys(l);Math.abs(de-ge)>=.1&&(h=!0,E("pinch"))}c||(c=Math.abs(m)>s.panThreshold||Math.abs(v)>s.panThreshold,c&&(Cr=!1,clearTimeout(z),z=0,w=Math.abs(180*Math.atan2(v,m)/Math.PI),r=w>45&&w<135?"y":"x",o=[...a],l=[...a],m=0,v=0,f=0,y=0,(Z=window.getSelection())===null||Z===void 0||Z.removeAllRanges(),E("panstart"))),c&&(f||y)&&E("pan"),E("move")}function $(_){if(i=_,!o.length)return;const Z=Xl(_),ee=ud(_);if(g=Z.length,n=ni(ee),ee.length&&L(ni(ee)),l=[...a],a=[...Z],o=[...Z],g>0)E("end"),c=!1,d=!1,k=[];else{const te=s.swipeThreshold;(Math.abs(b)>te||Math.abs(S)>te)&&(d=!0),c&&E("panend"),d&&E("swipe"),c||d||h||(E("tap"),p?E("doubleTap"):x=setTimeout(function(){E("singleTap")},250)),E("end"),D()}}function O(){clearTimeout(x),D(),c&&E("panend"),E("end")}function D(){_s=!1,c=!1,d=!1,p=!1,g=0,k=[],a=[],l=[],o=[],f=0,y=0,m=0,v=0,b=0,S=0,w=0,r=void 0,window.removeEventListener("mousemove",R),window.removeEventListener("mouseup",$),window.removeEventListener("blur",O),Cr||z||(z=setTimeout(()=>{Cr=!0,z=0},100))}function q(_){const Z=_.target;_s=!1,Z&&!_.defaultPrevented&&(Cr||(Ul(_),_.stopPropagation()))}const X={init:function(){return t&&(t.addEventListener("click",q,ei),t.addEventListener("mousedown",I,ei),t.addEventListener("touchstart",I,ei),t.addEventListener("touchmove",R,ei),t.addEventListener("touchend",$),t.addEventListener("touchcancel",$)),X},on:function(_,Z){return function(ee,te){V.set(ee,[...V.get(ee)||[],te])}(_,Z),X},off:function(_,Z){return V.has(_)&&V.set(_,V.get(_).filter(ee=>ee!==Z)),X},isPointerDown:()=>g>0,destroy:function(){clearTimeout(x),clearTimeout(z),z=0,t&&(t.removeEventListener("click",q,ei),t.removeEventListener("mousedown",I,ei),t.removeEventListener("touchstart",I,ei),t.removeEventListener("touchmove",R,ei),t.removeEventListener("touchend",$),t.removeEventListener("touchcancel",$)),t=null,D()}};return X};hr.isClickAllowed=()=>Cr;const Xa={IMAGE_ERROR:"This image couldn't be loaded. <br /> Please try again later.",MOVE_UP:"Move up",MOVE_DOWN:"Move down",MOVE_LEFT:"Move left",MOVE_RIGHT:"Move right",ZOOM_IN:"Zoom in",ZOOM_OUT:"Zoom out",TOGGLE_FULL:"Toggle zoom level",TOGGLE_1TO1:"Toggle zoom level",ITERATE_ZOOM:"Toggle zoom level",ROTATE_CCW:"Rotate counterclockwise",ROTATE_CW:"Rotate clockwise",FLIP_X:"Flip horizontally",FLIP_Y:"Flip vertically",RESET:"Reset",TOGGLE_FS:"Toggle fullscreen"};const ze=(t,e="")=>{t&&t.classList&&e.split(" ").forEach(i=>{i&&t.classList.add(i)})};const Yt=(t,e="")=>{t&&t.classList&&e.split(" ").forEach(i=>{i&&t.classList.remove(i)})};const Dt=(t,e="",i)=>{t&&t.classList&&e.split(" ").forEach(n=>{n&&t.classList.toggle(n,i||!1)})};const wi=t=>{t.cancelable&&t.preventDefault()},Nt=(t,e=1e4)=>(t=parseFloat(t+"")||0,Math.round((t+Number.EPSILON)*e)/e),kn=t=>t instanceof HTMLImageElement;var Ee,Zl;(function(t){t.Reset="reset",t.Zoom="zoom",t.ZoomIn="zoomIn",t.ZoomOut="zoomOut",t.ZoomTo="zoomTo",t.ToggleCover="toggleCover",t.ToggleFull="toggleFull",t.ToggleMax="toggleMax",t.IterateZoom="iterateZoom",t.Pan="pan",t.Swipe="swipe",t.Move="move",t.MoveLeft="moveLeft",t.MoveRight="moveRight",t.MoveUp="moveUp",t.MoveDown="moveDown",t.RotateCCW="rotateCCW",t.RotateCW="rotateCW",t.FlipX="flipX",t.FlipY="flipY",t.ToggleFS="toggleFS"})(Ee||(Ee={})),function(t){t.Cover="cover",t.Full="full",t.Max="max"}(Zl||(Zl={}));const Cn={x:0,y:0,scale:1,angle:0,flipX:1,flipY:1},da={bounds:!0,classes:{container:"f-panzoom",wrapper:"f-panzoom__wrapper",content:"f-panzoom__content",viewport:"f-panzoom__viewport"},clickAction:Ee.ToggleFull,dblClickAction:!1,gestures:{},height:"auto",l10n:Xa,maxScale:4,minScale:1,mouseMoveFactor:1,panMode:"drag",protected:!1,singleClickAction:!1,spinnerTpl:'<div class="f-spinner"></div>',wheelAction:Ee.Zoom,width:"auto"};let bs,Kl=0,Ql=0,ws=0;const fa=(t,e={},i={})=>{let n,r,s,o,a,l,c,d,h=0,p=Object.assign(Object.assign({},da),e),u={},g=Object.assign({},Cn),f=Object.assign({},Cn);const y=[];function m(F){let G=p[F];return G&&typeof G=="function"?G(ae):G}function v(){return t&&t.parentElement&&n&&h===3}const b=new Map;function S(F,...G){const J=[...b.get(F)||[]];p.on&&J.push(p.on[F]);for(const K of J)K&&K instanceof Function&&K(ae,...G);F!=="*"&&S("*",F,...G)}function w(F){if(!v())return;const G=F.target;if(Di(G))return;const J=Date.now(),K=[-F.deltaX||0,-F.deltaY||0,-F.detail||0].reduce(function(me,xe){return Math.abs(xe)>Math.abs(me)?xe:me}),H=We(-1,K,1);S("wheel",F,H);const U=m("wheelAction");if(!U||F.defaultPrevented)return;const fe=f.scale;let oe=fe*(H>0?1.5:.5);if(U===Ee.Zoom){const me=Math.abs(F.deltaY)<100&&Math.abs(F.deltaX)<100;if(J-Ql<(me?200:45))return void wi(F);Ql=J;const xe=D(),Pe=Z();if(Nt(oe)<Nt(xe)&&Nt(fe)<=Nt(xe)?(ws+=Math.abs(H),oe=xe):Nt(oe)>Nt(Pe)&&Nt(fe)>=Nt(Pe)?(ws+=Math.abs(H),oe=Pe):(ws=0,oe=We(xe,oe,Pe)),ws>7)return}switch(wi(F),U){case Ee.Pan:ge(U,{srcEvent:F,deltaX:2*-F.deltaX,deltaY:2*-F.deltaY});break;case Ee.Zoom:ge(Ee.ZoomTo,{srcEvent:F,scale:oe,center:{x:F.clientX,y:F.clientY}});break;default:ge(U,{srcEvent:F})}}function k(F){var G,J;const K=F.composedPath()[0];if(!hr.isClickAllowed()||!Ki(K)||F.defaultPrevented||!t?.contains(K)||K.hasAttribute("disabled")||K.hasAttribute("aria-disabled")||K.hasAttribute("data-carousel-go-prev")||K.hasAttribute("data-carousel-go-next"))return;const H=K.closest("[data-panzoom-action]"),U=(G=H?.dataset)===null||G===void 0?void 0:G.panzoomAction,fe=((J=H?.dataset)===null||J===void 0?void 0:J.panzoomValue)||"";if(U){switch(wi(F),U){case Ee.ZoomTo:case Ee.ZoomIn:case Ee.ZoomOut:ge(U,{scale:parseFloat(fe||"")||void 0});break;case Ee.MoveLeft:case Ee.MoveRight:ge(U,{deltaX:parseFloat(fe||"")||void 0});break;case Ee.MoveUp:case Ee.MoveDown:ge(U,{deltaY:parseFloat(fe||"")||void 0});break;case Ee.ToggleFS:M();break;default:ge(U)}return}if(!n?.contains(K))return;const oe={srcEvent:F};if(ge(m("clickAction"),oe),m("dblClickAction")){const me=Date.now(),xe=me-(Kl||me);Kl=me,xe>0&&xe<=250?(bs&&(clearTimeout(bs),bs=void 0),ge(m("dblClickAction"),oe)):bs=setTimeout(()=>{ge(m("singleClickAction"),oe)},250)}}function x(F){if(d=F,!v()||!R()||g.scale<=1||f.scale<=1||(n?.dataset.animationName||"").indexOf("zoom")>-1)return;const G=$(f.scale);if(!G)return;const{x:J,y:K}=G;ge(Ee.Pan,{deltaX:J-f.x,deltaY:K-f.y})}function z(){var F;t&&(Yt(t,"is-loading"),(F=t.querySelector(".f-spinner"))===null||F===void 0||F.remove())}function V(){if(!t||!r)return;if(z(),kn(r)&&(!r.complete||!r.naturalWidth))return h=2,n?.classList.add("has-error"),void S("error");S("loaded");const{width:F,height:G}=L();kn(r)&&(r.setAttribute("width",F+""),r.setAttribute("height",G+"")),n&&(Yt(n,"has-error"),kn(r)&&(n.setAttribute("width",F+""),n.setAttribute("height",G+""),n.style.aspectRatio=`${F/G||""}`)),l=mi().on("start",(K,H)=>{H.angle!==void 0&&(H.angle=90*Math.round(H.angle/90)),H.flipX!==void 0&&(H.flipX=H.flipX>0?1:-1),H.flipY!==void 0&&(H.flipY=H.flipY>0?1:-1),f=Object.assign(Object.assign({},Cn),H),de(),S("animationStart")}).on("pause",K=>{f=Object.assign(Object.assign({},Cn),K)}).on("step",K=>{if(!v())return void(l==null||l.end());if(g=Object.assign(Object.assign({},Cn),K),R()||!m("bounds")||W()||f.scale>g.scale||f.scale<q())return void Se();const H=ee(f.scale);let U=!1,fe=!1,oe=!1,me=!1;g.x<H.x[0]&&(U=!0),g.x>H.x[1]&&(fe=!0),g.y<H.y[0]&&(me=!0),g.y>H.y[1]&&(oe=!0);let xe=!1,Pe=!1,Ne=!1,ye=!1;f.x<H.x[0]&&(xe=!0),f.x>H.x[1]&&(Pe=!0),f.y<H.y[0]&&(ye=!0),f.y>H.y[1]&&(Ne=!0);let Xe=!1;(fe&&Pe||U&&xe)&&(f.x=We(H.x[0],f.x,H.x[1]),Xe=!0),(oe&&Ne||me&&ye)&&(f.y=We(H.y[0],f.y,H.y[1]),Xe=!0),Xe&&l&&l.spring({tension:94,friction:17,maxSpeed:555*f.scale,restDelta:.1,restSpeed:.1,velocity:l.getCurrentVelocities()}).from(g).to(f).start(),Se()}).on("end",()=>{a?.isPointerDown()||te(),l?.isRunning()||(de(),S("animationEnd"))}),function(){const K=m("gestures");if(!K||!o||!r)return;let H=!1;a=hr(o,K).on("start",U=>{if(!m("gestures")||!l||!v()||R())return;const fe=U.srcEvent;(g.scale>1||U.currentTouch.length>1)&&(fe?.stopPropagation(),l.pause(),H=!0),U.currentTouch.length===1&&S("touchStart")}).on("move",U=>{var fe;H&&(f.scale!==1||U.currentTouch.length>1)&&(wi(U.srcEvent),(fe=U.srcEvent)===null||fe===void 0||fe.stopPropagation())}).on("pan",U=>{if(!H)return;const fe=U.srcEvent;(f.scale!==1||U.currentTouch.length>1)&&(wi(fe),ge(Ee.Pan,U))}).on("swipe",U=>{H&&f.scale>1&&ge(Ee.Swipe,U)}).on("tap",U=>{S("click",U)}).on("singleTap",U=>{S("singleClick",U)}).on("doubleTap",U=>{S("dblClick",U)}).on("pinch",U=>{H&&(U.scale>q()?ge(Ee.ZoomIn,U):U.scale<q()?ge(Ee.ZoomOut,U):ge(Ee.Pan,U))}).on("end",U=>{H&&(U.currentTouch.length?(U.srcEvent.stopPropagation(),wi(U.srcEvent),l?.end()):(H=!1,de(),te(),S("touchEnd")))}).init()}(),o&&(o.addEventListener("wheel",w,{passive:!1}),y.push(()=>{o?.removeEventListener("wheel",w,{passive:!1})})),t?.addEventListener("click",k),document?.addEventListener("mousemove",x),y.push(()=>{t?.removeEventListener("click",k),document?.removeEventListener("mousemove",x)});const J=E();g=Object.assign({},J),f=Object.assign({},J),h=3,Se(),de(),S("ready"),requestAnimationFrame(()=>{z(),o&&(o.style.visibility="")})}function E(){const F=Object.assign({},m("startPos")||{});let G=F.scale,J=1;J=typeof G=="string"?O(G):typeof G=="number"?G:q();const K=Object.assign(Object.assign(Object.assign({},Cn),F),{scale:J}),H=R()?$(J):void 0;if(H){const{x:U,y:fe}=H;K.x=U,K.y=fe}return K}function B(){const F={top:0,left:0,width:0,height:0};if(n){const G=n.getBoundingClientRect();f.angle%180==90?(F.top=G.top+.5*G.height-.5*G.width,F.left=G.left+.5*G.width-.5*G.height,F.width=G.height,F.height=G.width):(F.top=G.top,F.left=G.left,F.width=G.width,F.height=G.height)}return F}function L(){let F=m("width"),G=m("height");if(r&&F==="auto"){const J=r.getAttribute("width");F=J?parseFloat(J+""):r.dataset.width!==void 0?parseFloat(r.dataset.width+""):kn(o)?o.naturalWidth:kn(r)?r.naturalWidth:n?.getBoundingClientRect().width||0}else F=Ue(F)?parseFloat(F):F;if(r&&G==="auto"){const J=r.getAttribute("height");G=J?parseFloat(J+""):r.dataset.height!==void 0?parseFloat(r.dataset.height+""):kn(o)?o.naturalHeight:kn(r)?r.naturalHeight:n?.getBoundingClientRect().height||0}else G=Ue(G)?parseFloat(G):G;return{width:F,height:G}}function I(){const F=B();return{width:F.width,height:F.height}}function R(){return m("panMode")==="mousemove"&&matchMedia("(hover: hover)").matches}function $(F){const G=d||m("event"),J=n?.getBoundingClientRect();if(!G||!J||F<=1)return{x:0,y:0};const K=(G.clientX||0)-J.left,H=(G.clientY||0)-J.top,{width:U,height:fe}=I(),oe=ee(F);if(F>1){const ye=m("mouseMoveFactor");ye>1&&(F*=ye)}let me=U*F,xe=fe*F,Pe=.5*(me-U)-K/U*100/100*(me-U),Ne=.5*(xe-fe)-H/fe*100/100*(xe-fe);return Pe=We(oe.x[0],Pe,oe.x[1]),Ne=We(oe.y[0],Ne,oe.y[1]),{x:Pe,y:Ne}}function O(F="base"){if(!t)return 1;const G=t.getBoundingClientRect(),J=B(),{width:K,height:H}=L(),U=Pe=>{if(typeof Pe=="number")return Pe;switch(Pe){case"min":case"base":return 1;case"cover":return Math.max(G.height/J.height,G.width/J.width)||1;case"full":case"max":{const Ne=f.angle%180==90?H:K;return Ne&&J.width?Ne/J.width:1}}},fe=m("minScale"),oe=m("maxScale"),me=Math.min(U("full"),U(fe)),xe=typeof oe=="number"?U("full")*oe:Math.min(U("full"),U(oe));switch(F){case"min":return me;case"base":return We(me,1,xe);case"cover":return U("cover");case"full":return Math.min(xe,U("full"));case"max":return xe}}function D(){return O("min")}function q(){return O("base")}function X(){return O("cover")}function _(){return O("full")}function Z(){return O("max")}function ee(F){const G={x:[0,0],y:[0,0]},J=t?.getBoundingClientRect();if(!J)return G;const K=B(),H=J.width,U=J.height;let fe=K.width,oe=K.height,me=F=F===void 0?f.scale:F,xe=F;if(R()&&F>1){const Pe=m("mouseMoveFactor");Pe>1&&(fe*F>H+.01&&(me*=Pe),oe*F>U+.01&&(xe*=Pe))}return fe*=me,oe*=xe,F>1&&(fe>H&&(G.x[0]=.5*(H-fe),G.x[1]=.5*(fe-H)),G.x[0]-=.5*(K.left-J.left),G.x[1]-=.5*(K.left-J.left),G.x[0]-=.5*(K.left+K.width-J.right),G.x[1]-=.5*(K.left+K.width-J.right),oe>U&&(G.y[0]=.5*(U-oe),G.y[1]=.5*(oe-U)),G.y[0]-=.5*(K.top-J.top),G.y[1]-=.5*(K.top-J.top),G.y[0]-=.5*(K.top+K.height-J.bottom),G.y[1]-=.5*(K.top+K.height-J.bottom)),G}function te(){if(!v()||!m("bounds")||!l)return;const F=D(),G=Z(),J=We(F,f.scale,G);if(f.scale<F-.01||f.scale>G+.01)return void ge(Ee.ZoomTo,{scale:J});if(l.isRunning()||W())return;const K=ee(J);f.x<K.x[0]||f.x>K.x[1]||f.y<K.y[0]||f.y>K.y[1]?(f.x=We(K.x[0],f.x,K.x[1]),f.y=We(K.y[0],f.y,K.y[1]),l.spring({tension:170,friction:17,restDelta:.001,restSpeed:.001,maxSpeed:1/0,velocity:l.getCurrentVelocities()}),l.from(g).to(f).start()):Se()}function de(F){var G;if(!v())return;const J=Ae(),K=W(),H=re(),U=he(),fe=$e(),oe=Fe();Dt(n,"is-fullsize",U),Dt(n,"is-expanded",H),Dt(n,"is-dragging",K),Dt(n,"can-drag",J),Dt(n,"will-zoom-in",fe),Dt(n,"will-zoom-out",oe);const me=et(),xe=Qe(),Pe=Je(),Ne=!v();for(const ye of((G=F||t)===null||G===void 0?void 0:G.querySelectorAll("[data-panzoom-action]"))||[]){const Xe=ye.dataset.panzoomAction;let Be=!1;if(Ne)Be=!0;else switch(Xe){case Ee.ZoomIn:me||(Be=!0);break;case Ee.ZoomOut:Pe||(Be=!0);break;case Ee.ToggleFull:{xe||Pe||(Be=!0);const Ge=ye.querySelector("g");Ge&&(Ge.style.display=U&&!Be?"none":"");break}case Ee.IterateZoom:{me||Pe||(Be=!0);const Ge=ye.querySelector("g");Ge&&(Ge.style.display=me||Be?"":"none");break}case Ee.ToggleCover:case Ee.ToggleMax:me||Pe||(Be=!0)}Be?(ye.setAttribute("aria-disabled",""),ye.setAttribute("tabindex","-1")):(ye.removeAttribute("aria-disabled"),ye.removeAttribute("tabindex"))}}function ge(F,G){var J;if(!(F&&t&&r&&l&&v())||F===Ee.Swipe&&Math.abs(l.getCurrentVelocities().scale)>.01)return;const K=Object.assign({},f);let H=Object.assign({},f),U=ee(R()?K.scale:g.scale);const fe=l.getCurrentVelocities(),oe=B(),me=(((J=(G=G||{}).currentTouch)===null||J===void 0?void 0:J.length)||0)>1,xe=G.velocityX||0,Pe=G.velocityY||0;let Ne=G.center;G.srcEvent&&(Ne=ni(ud(G.srcEvent)));let ye=G.deltaX||0,Xe=G.deltaY||0;switch(F){case Ee.MoveRight:ye=G.deltaX||100;break;case Ee.MoveLeft:ye=G.deltaX||-100;break;case Ee.MoveUp:Xe=G.deltaY||-100;break;case Ee.MoveDown:Xe=G.deltaY||100}let Be=[];switch(F){case Ee.Reset:H=Object.assign({},Cn),H.scale=q();break;case Ee.Pan:case Ee.Move:case Ee.MoveLeft:case Ee.MoveRight:case Ee.MoveUp:case Ee.MoveDown:if(W()){let T=1,j=1;H.x<=U.x[0]&&xe<=0&&(T=Math.max(.01,1-Math.abs(1/oe.width*Math.abs(H.x-U.x[0]))),T*=.2),H.x>=U.x[1]&&xe>=0&&(T=Math.max(.01,1-Math.abs(1/oe.width*Math.abs(H.x-U.x[1]))),T*=.2),H.y<=U.y[0]&&Pe<=0&&(j=Math.max(.01,1-Math.abs(1/oe.height*Math.abs(H.y-U.y[0]))),j*=.2),H.y>=U.y[1]&&Pe>=0&&(j=Math.max(.01,1-Math.abs(1/oe.height*Math.abs(H.y-U.y[1]))),j*=.2),H.x+=ye*T,H.y+=Xe*j}else H.x=We(U.x[0],H.x+ye,U.x[1]),H.y=We(U.y[0],H.y+Xe,U.y[1]);break;case Ee.Swipe:const Ge=(T=0)=>Math.sign(T)*Math.pow(Math.abs(T),1.5);H.x+=We(-1e3,Ge(xe),1e3),H.y+=We(-1e3,Ge(Pe),1e3),Pe&&!xe&&(H.x=We(U.x[0],H.x,U.x[1])),!Pe&&xe&&(H.y=We(U.y[0],H.y,U.y[1])),fe.x=xe,fe.y=Pe;break;case Ee.ZoomTo:H.scale=G.scale||1;break;case Ee.ZoomIn:H.scale=H.scale*(G.scale||2),me||(H.scale=Math.min(H.scale,Z()));break;case Ee.ZoomOut:H.scale=H.scale*(G.scale||.5),me||(H.scale=Math.max(H.scale,D()));break;case Ee.ToggleCover:Be=[q(),X()];break;case Ee.ToggleFull:Be=[q(),_()];break;case Ee.ToggleMax:Be=[q(),Z()];break;case Ee.IterateZoom:Be=[q(),_(),Z()];break;case Ee.Zoom:const Re=_();H.scale>=Re-.05?H.scale=q():H.scale=Math.min(Re,H.scale*(G.scale||2));break;case Ee.RotateCW:H.angle+=90;break;case Ee.RotateCCW:H.angle-=90;break;case Ee.FlipX:H.flipX*=-1;break;case Ee.FlipY:H.flipY*=-1}if(g.angle!==void 0&&Math.abs(g.angle)>=360&&(H.angle-=360*Math.floor(g.angle/360),g.angle-=360*Math.floor(g.angle/360)),Be.length){const Ge=Be.findIndex(Re=>Re>H.scale+1e-4);H.scale=Be[Ge]||Be[0]}if(me&&(H.scale=We(D()*(me?.8:1),H.scale,Z()*(me?1.6:1))),R()){const Ge=$(H.scale);if(Ge){const{x:Re,y:T}=Ge;H.x=Re,H.y=T}}else if(Math.abs(H.scale-K.scale)>1e-4){let Ge=0,Re=0;if(Ne)Ge=Ne.x,Re=Ne.y;else{const ie=t.getBoundingClientRect();Ge=ie.x+.5*ie.width,Re=ie.y+.5*ie.height}let T=Ge-oe.left,j=Re-oe.top;T-=.5*oe.width,j-=.5*oe.height;const Y=(T-K.x)/K.scale,Q=(j-K.y)/K.scale;H.x=T-Y*H.scale,H.y=j-Q*H.scale,!me&&m("bounds")&&(U=ee(H.scale),H.x=We(U.x[0],H.x,U.x[1]),H.y=We(U.y[0],H.y,U.y[1]))}if(F===Ee.Swipe){let Ge=94,Re=17,T=500*H.scale,j=fe;l.spring({tension:Ge,friction:Re,maxSpeed:T,restDelta:.1,restSpeed:.1,velocity:j})}else F===Ee.Pan||me?l.spring({tension:900,friction:17,restDelta:.01,restSpeed:.01,maxSpeed:1}):l.spring({tension:170,friction:17,restDelta:.001,restSpeed:.001,maxSpeed:1/0,velocity:fe});if(G.velocity===0||Qr(g,H))g=Object.assign({},H),f=Object.assign({},H),l.end(),Se(),de();else{if(Qr(f,H))return;l.from(g).to(H).start()}S("action",F)}function Se(){if(!r||!n||!o)return;const{width:F,height:G}=L();Object.assign(n.style,{maxWidth:`min(${F}px, 100%)`,maxHeight:`min(${G}px, 100%)`});const J=function(){const{width:ye,height:Xe}=L(),{width:Be,height:Ge}=I();if(!t)return{x:0,y:0,width:0,height:0,scale:0,flipX:0,flipY:0,angle:0,fitWidth:Be,fitHeight:Ge,fullWidth:ye,fullHeight:Xe};let{x:Re,y:T,scale:j,angle:Y,flipX:Q,flipY:ie}=g,ne=1/_(),le=ye,ue=Xe,be=g.scale*ne,we=f.scale*ne;const ke=Math.max(Be,Ge),ve=Math.min(Be,Ge);ye>Xe?(le=ke,ue=ve):(le=ve,ue=ke),be=ye>Xe?ke*j/ye||1:ke*j/Xe||1;let pe=le?ye*we:0,Le=ue?Xe*we:0,ce=le&&ue?ye*be/pe:0;return Re=Re+.5*le-.5*pe,T=T+.5*ue-.5*Le,{x:Re,y:T,width:pe,height:Le,scale:ce,flipX:Q,flipY:ie,angle:Y,fitWidth:Be,fitHeight:Ge,fullWidth:ye,fullHeight:Xe}}(),{x:K,y:H,width:U,height:fe,scale:oe,angle:me,flipX:xe,flipY:Pe}=J;let Ne=`translate(${Nt(K)}px, ${Nt(H)}px)`;Ne+=xe!==1||Pe!==1?` scaleX(${Nt(oe*xe)}) scaleY(${Nt(oe*Pe)})`:` scale(${Nt(oe)})`,me!==0&&(Ne+=` rotate(${me}deg)`),o.style.width=`${Nt(U)}px`,o.style.height=`${Nt(fe)}px`,o.style.transform=`${Ne}`,S("render")}function Te(){let F=f.scale;const G=m("clickAction");let J=q();if(G){let K=[];switch(G){case Ee.ZoomIn:J=2*F;break;case Ee.ZoomOut:J=.5*F;break;case Ee.ToggleCover:K=[q(),X()];break;case Ee.ToggleFull:K=[q(),_()];break;case Ee.ToggleMax:K=[q(),Z()];break;case Ee.IterateZoom:K=[q(),_(),Z()];break;case Ee.Zoom:const H=_();J=F>=H-.05?q():Math.min(H,2*F)}if(K.length){const H=K.findIndex(U=>U>F+1e-4);J=K[H]||q()}}return J=We(D(),J,Z()),J}function $e(){return!!(v()&&Te()>f.scale)}function Fe(){return!!(v()&&Te()<f.scale)}function Je(){return!!(v()&&f.scale>D())}function et(){return!!(v()&&f.scale<Z())}function Qe(){return!!(v()&&f.scale<_())}function Ae(){return!(!(v()&&re()&&a)||R())}function W(){return!(!v()||!a?.isPointerDown()||R())}function re(){return!!(v()&&f.scale>q())}function he(){return!!(v()&&f.scale>=_())}function M(){const F="in-fullscreen",G="with-panzoom-in-fullscreen";t?.classList.toggle(F);const J=t?.classList.contains(F);J?(document.documentElement.classList.add(G),document.addEventListener("keydown",se,!0)):(document.documentElement.classList.remove(G),document.removeEventListener("keydown",se,!0)),Se(),S(J?"enterFS":"exitFS")}function se(F){F.key!=="Escape"||F.defaultPrevented||M()}const ae={canDrag:Ae,canZoomIn:et,canZoomOut:Je,canZoomToFull:Qe,destroy:function(){S("destroy");for(const F of Object.values(u))F?.destroy(ae);for(const F of y)F();return n&&(n.style.aspectRatio="",n.style.maxWidth="",n.style.maxHeight=""),o&&(o.style.width="",o.style.height="",o.style.transform=""),n=void 0,r=void 0,o=void 0,g=Object.assign({},Cn),f=Object.assign({},Cn),l?.destroy(),l=void 0,a?.destroy(),a=void 0,h=4,ae},emit:S,execute:ge,getBoundaries:ee,getContainer:function(){return t},getContent:function(){return r},getFullDim:L,getGestures:function(){return a},getMousemovePos:$,getOptions:function(){return p},getPlugins:function(){return u},getScale:O,getStartPosition:E,getState:function(){return h},getTransform:function(F){return F===!0?f:g},getTween:function(){return l},getViewport:function(){return o},getWrapper:function(){return n},init:function(){return h=0,S("init"),function(){for(const[F,G]of Object.entries(Object.assign(Object.assign({},i),p.plugins||{})))if(F&&!u[F]&&G instanceof Function){const J=G();J.init(ae),u[F]=J}S("initPlugins")}(),function(){const F=Object.assign(Object.assign({},da.classes),m("classes"));if(t&&(ze(t,F.container),r=t.querySelector("."+F.content),!!r)){if(r.setAttribute("draggable","false"),n=t.querySelector("."+F.wrapper),n||(n=document.createElement("div"),ze(n,F.wrapper),r.insertAdjacentElement("beforebegin",n),n.insertAdjacentElement("afterbegin",r)),o=t.querySelector("."+F.viewport),o||(o=document.createElement("div"),ze(o,F.viewport),o.insertAdjacentElement("afterbegin",r),n.insertAdjacentElement("beforeend",o)),s=r.cloneNode(!0),s.removeAttribute("id"),n.insertAdjacentElement("afterbegin",s),r instanceof HTMLPictureElement&&(r=r.querySelector("img")),s instanceof HTMLPictureElement&&(s=s.querySelector("img")),o instanceof HTMLPictureElement&&(o=o.querySelector("img")),o&&(o.style.visibility="hidden",m("protected"))){o.addEventListener("contextmenu",J=>{wi(J)});const G=document.createElement("div");ze(G,"f-panzoom__protected"),o.appendChild(G)}S("initLayout")}}(),function(){if(t&&n&&!c){let F=null;c=new ResizeObserver(()=>{v()&&(F=F||requestAnimationFrame(()=>{v()&&(de(),te(),S("refresh")),F=null}))}),c.observe(n),y.push(()=>{c?.disconnect(),c=void 0,F&&(cancelAnimationFrame(F),F=null)})}}(),function(){if(!t||!r)return;if(!kn(r)||!kn(s))return void V();const F=()=>{r&&kn(r)&&r.decode().then(()=>{V()}).catch(()=>{V()})};if(h=1,t.classList.add("is-loading"),S("loading"),s.src&&s.complete)return void F();(function(){if(!t||t?.querySelector(".f-spinner"))return;const G=m("spinnerTpl"),J=Kn(G);J&&(J.classList.add("f-spinner"),t.classList.add("is-loading"),n?.insertAdjacentElement("afterbegin",J))})(),s.addEventListener("load",F,!1),s.addEventListener("error",F,!1),y.push(()=>{s?.removeEventListener("load",F,!1),s?.removeEventListener("error",F,!1)})}(),ae},isDragging:W,isExpanded:re,isFullsize:he,isMousemoveMode:R,localize:function(F,G=[]){const J=m("l10n")||{};F=String(F).replace(/\{\{(\w+)\}\}/g,(K,H)=>J[H]||K);for(let K=0;K<G.length;K++)F=F.split(G[K][0]).join(G[K][1]);return F=F.replace(/\{\{(.*?)\}\}/g,(K,H)=>H)},off:function(F,G){for(const J of F instanceof Array?F:[F])b.has(J)&&b.set(J,b.get(J).filter(K=>K!==G));return ae},on:function(F,G){for(const J of F instanceof Array?F:[F])b.set(J,[...b.get(J)||[],G]);return ae},toggleFS:M,updateControls:de,version:"6.1.6",willZoomIn:$e,willZoomOut:Fe};return ae};fa.l10n={en_EN:Xa},fa.getDefaults=()=>da;const ko=(t,e)=>{let i=[];return t.childNodes.forEach(n=>{n.nodeType!==Node.ELEMENT_NODE||e&&!n.matches(e)||i.push(n)}),i};const Qt=(t,...e)=>{const i=e.length;for(let n=0;n<i;n++){const r=e[n]||{};Object.entries(r).forEach(([s,o])=>{const a=Array.isArray(o)?[]:{};t[s]||Object.assign(t,{[s]:a}),At(o)?Object.assign(t[s],Qt(t[s],o)):Array.isArray(o)?Object.assign(t,{[s]:[...o]}):Object.assign(t,{[s]:o})})}return t};const Ks=function(t=0,e=0,i=0,n=0,r=0,s=!1){const o=(t-e)/(i-e)*(r-n)+n;return s?n<r?We(n,o,r):We(r,o,n):o};const Ua=Object.assign(Object.assign({},Xa),{ERROR:"Something went wrong. <br /> Please try again later.",NEXT:"Next page",PREV:"Previous page",GOTO:"Go to page #%d",DOWNLOAD:"Download",TOGGLE_FULLSCREEN:"Toggle full-screen mode",TOGGLE_EXPAND:"Toggle full-size mode",TOGGLE_THUMBS:"Toggle thumbnails",TOGGLE_AUTOPLAY:"Toggle slideshow"});const Si=t=>{t.cancelable&&t.preventDefault()},Yi={adaptiveHeight:!1,center:!0,classes:{container:"f-carousel",isEnabled:"is-enabled",isLTR:"is-ltr",isRTL:"is-rtl",isHorizontal:"is-horizontal",isVertical:"is-vertical",hasAdaptiveHeight:"has-adaptive-height",viewport:"f-carousel__viewport",slide:"f-carousel__slide",isSelected:"is-selected"},dragFree:!1,enabled:!0,errorTpl:'<div class="f-html">{{ERROR}}</div>',fill:!1,infinite:!0,initialPage:0,l10n:Ua,rtl:!1,slides:[],slidesPerPage:"auto",spinnerTpl:'<div class="f-spinner"></div>',transition:"fade",tween:{clamp:!0,mass:1,tension:160,friction:25,restDelta:1,restSpeed:1,velocity:0},vertical:!1};let Jl,ec=0;const Qs=(t,e={},i={})=>{ec++;let n,r,s,o,a,l=0,c=Object.assign({},Yi),d=Object.assign({},Yi),h={},p=null,u=null,g=0,f=0,y=0,m=!1,v=!1,b=!1,S="height",w=0,k=!0,x=0,z=0,V=0,E=0,B="*",L=[],I=[];const R=new Set;let $=[],O=[],D=0,q=0,X=0;function _(T,...j){let Y=d[T];return Y&&Y instanceof Function?Y(Re,...j):Y}function Z(T,j=[]){const Y=_("l10n")||{};T=String(T).replace(/\{\{(\w+)\}\}/g,(Q,ie)=>Y[ie]||Q);for(let Q=0;Q<j.length;Q++)T=T.split(j[Q][0]).join(j[Q][1]);return T=T.replace(/\{\{(.*?)\}\}/g,(Q,ie)=>ie)}const ee=new Map;function te(T,...j){const Y=[...ee.get(T)||[]];d.on&&Y.push(d.on[T]);for(const Q of Y)Q&&Q instanceof Function&&Q(Re,...j);T!=="*"&&te("*",T,...j)}function de(){var T,j;const Y=Qt({},Yi,c);Qt(Y,Yi,c);let Q="";const ie=c.breakpoints||{};if(ie)for(const[ne,le]of Object.entries(ie))window.matchMedia(ne).matches&&(Q+=ne,Qt(Y,le));if(a===void 0||Q!==a){if(a=Q,l!==0){let ne=(j=(T=O[x])===null||T===void 0?void 0:T.slides[0])===null||j===void 0?void 0:j.index;ne===void 0&&(ne=d.initialSlide),Y.initialSlide=ne,Y.slides=[];for(const le of L)le.isVirtual&&Y.slides.push(le)}Xe(),d=Y,_("enabled")!==!1&&(l=0,te("init"),function(){for(const[ne,le]of Object.entries(Object.assign(Object.assign({},i),d.plugins||{})))if(ne&&!h[ne]&&le instanceof Function){const ue=le();ue.init(Re,Qs),h[ne]=ue}te("initPlugins")}(),function(){if(!p)return;const ne=_("classes")||{};ze(p,ne.container);const le=_("style");if(le&&At(le))for(const[ue,be]of Object.entries(le))p.style.setProperty(ue,be);u=p.querySelector(`.${ne.viewport}`),u||(u=document.createElement("div"),ze(u,ne.viewport),u.append(...ko(p,`.${ne.slide}`)),p.insertAdjacentElement("afterbegin",u)),p.carousel=Re,te("initLayout")}(),function(){if(!u)return;const ne=_("classes")||{};L=[],[...ko(u,`.${ne.slide}`)].forEach(le=>{if(le.parentElement){const ue=M(Object.assign({el:le,isVirtual:!1},le.dataset||{}));te("createSlide",ue),L.push(ue)}}),G();for(const le of L)te("addSlide",le);he(_("slides"));for(const le of L){const ue=le.el;ue?.parentElement===u&&(ze(ue,d.classes.slide),ze(ue,le.class),xe(le),te("attachSlideEl",le))}te("initSlides")}(),J(),l=1,ze(p,(_("classes")||{}).isEnabled||""),ye(),Fe(),r=mi().on("start",()=>{n&&n.isPointerDown()||($e(),ye())}).on("step",ne=>{const le=w;w=ne.pos,w!==le&&(k=!1,ye())}).on("end",ne=>{n?.isPointerDown()||(w=ne.pos,r&&!m&&(w<V||w>E)?r.spring({clamp:!0,mass:1,tension:200,friction:25,velocity:0,restDelta:1,restSpeed:1}).from({pos:w}).to({pos:We(V,w,E)}).start():k||(k=!0,te("settle")))}),Se(),function(){if(!p||!u)return;p.addEventListener("click",fe),document.addEventListener("mousemove",ge);const ne=u.getBoundingClientRect();if(D=ne.height,q=ne.width,!s){let le=null;s=new ResizeObserver(()=>{le||(le=requestAnimationFrame(()=>{(function(){if(l!==1||!u)return;const ue=O.length,be=u.getBoundingClientRect(),we=be.height,ke=be.width;ue>1&&(b&&Math.abs(we-D)<.5||!b&&Math.abs(ke-q)<.5)||(J(),Se(),D=we,q=ke,b&&!D||!b&&!q||p&&u&&(ue===O.length&&n?.isPointerDown()||(_("dragFree")&&(m||w>V&&w<E)?($e(),ye()):Pe(x,{transition:!1}))))})(),le=null}))}),s.observe(u)}}(),te("ready"))}}function ge(T){Jl=T}function Se(){_("gestures")===!1?n&&(n.destroy(),n=void 0):n||function(){const T=_("gestures");!n&&T!==!1&&u&&(n=hr(u,T).on("start",j=>{var Y,Q;if(!r||_("gestures",j)===!1)return;const{srcEvent:ie}=j;b&&Nr(ie)&&!Di(ie.target)&&Si(ie),r.pause(),r.getCurrentVelocities().pos=0;const ne=(Y=O[x])===null||Y===void 0?void 0:Y.slides[0],le=ne?.el;ne&&R.has(ne.index)&&le&&(w=ne.offset||0,w+=(function(ue){const be=window.getComputedStyle(ue),we=new DOMMatrixReadOnly(be.transform);return{width:we.m41||0,height:we.m42||0}}(le)[S]||0)*(v&&!b?1:-1)),H(),m||(w<V||w>E)&&r.spring({clamp:!0,mass:1,tension:500,friction:25,velocity:((Q=r.getCurrentVelocities())===null||Q===void 0?void 0:Q.pos)||0,restDelta:1,restSpeed:1}).from({pos:w}).to({pos:We(V,w,E)}).start()}).on("move",j=>{var Y,Q;if(_("gestures",j)===!1)return;const{srcEvent:ie,axis:ne,deltaX:le,deltaY:ue}=j;if(Nr(ie)&&((Y=ie.touches)===null||Y===void 0?void 0:Y.length)>1)return;const be=ie.target,we=Di(be),ke=we?we.scrollHeight>we.clientHeight?"y":"x":void 0;if(we&&we!==u&&(!ne||ne===ke))return;if(!ne)return Si(ie),ie.stopPropagation(),void ie.stopImmediatePropagation();if(ne==="y"&&!b||ne==="x"&&b||(Si(ie),ie.stopPropagation(),!r))return;const ve=v&&!b?1:-1,pe=b?ue:le;let Le=r?.isRunning()?r.getEndValues().pos:w,ce=1;m||(Le<=V&&pe*ve<0?(ce=Math.max(.01,1-(Math.abs(1/Ae()*Math.abs(Le-V))||0)),ce*=.2):Le>=E&&pe*ve>0&&(ce=Math.max(.01,1-(Math.abs(1/Ae()*Math.abs(Le-E))||0)),ce*=.2)),Le+=pe*ce*ve,r.spring({clamp:!0,mass:1,tension:700,friction:25,velocity:((Q=r.getCurrentVelocities())===null||Q===void 0?void 0:Q.pos)||0,restDelta:1,restSpeed:1}).from({pos:w}).to({pos:Le}).start()}).on("panstart",j=>{_("gestures",j)!==!1&&j?.axis===(b?"y":"x")&&ze(u,"is-dragging")}).on("panend",j=>{_("gestures",j)!==!1&&Yt(u,"is-dragging")}).on("end",j=>{var Y,Q;if(_("gestures",j)===!1)return;const{srcEvent:ie,axis:ne,velocityX:le,velocityY:ue,currentTouch:be}=j;if(be.length>0||!r)return;const we=ie.target,ke=Di(we),ve=ke?ke.scrollHeight>ke.clientHeight?"y":"x":void 0,pe=ke&&(!ne||ne===ve);b&&Nr(ie)&&!j.axis&&fe(ie);const Le=O.length,ce=_("dragFree");if(!Le)return;const Ce=pe?0:_("vertical")?ue:le;let _e=r?.isRunning()?r.getEndValues().pos:w;const Oe=v&&!b?1:-1;if(pe||(_e+=Ce*(ce?5:1)*Oe),!m&&(Ce*Oe<=0&&_e<V||Ce*Oe>=0&&_e>E)){let Ie=0;return Math.abs(Ce)>0&&(Ie=2*Math.abs(Ce),Ie=Math.min(.3*Ae(),Ie)),_e=We(V+-1*Ie,_e,E+Ie),void r.spring({clamp:!0,mass:1,tension:380,friction:25,velocity:-1*Ce,restDelta:1,restSpeed:1}).from({pos:w}).to({pos:_e}).start()}if(ce||!((Y=h.Autoscroll)===null||Y===void 0)&&Y.isEnabled())return void(Math.abs(Ce)>10?r.spring({clamp:!0,mass:1,tension:150,friction:25,velocity:-1*Ce,restDelta:1,restSpeed:1}).from({pos:w}).to({pos:_e}).start():r.isRunning()||k||(k=!0,te("settle")));if(!ce&&!(!((Q=h.Autoscroll)===null||Q===void 0)&&Q.isEnabled())&&(!j.offsetX&&!j.offsetY||ne==="y"&&!b||ne==="x"&&b))return void Pe(x,{transition:"tween"});let De=et(_e);Math.abs(Ce)>10&&De===x&&(De+=Ce>0?v&&!b?1:-1:v&&!b?-1:1),Pe(De,{transition:"tween",tween:{velocity:-1*Ce}})}).init())}(),Dt(u,"is-draggable",!!n&&O.length>0)}function Te(T="*"){var j;const Y=[];for(const Q of L)(T==="*"||Q.class&&Q.class.includes(T)||Q.el&&(!((j=Q.el)===null||j===void 0)&&j.classList.contains(T)))&&Y.push(Q);o=void 0,B=T,I=[...Y]}function $e(){if(!r)return;const T=et(r?.isRunning()?r.getEndValues().pos:w);T!==x&&(o=x,x=T,xe(),Fe(),Je(),te("change",x,o))}function Fe(){var T,j;if(!p)return;for(const ie of p.querySelectorAll("[data-carousel-index]"))ie.innerHTML=x+"";for(const ie of p.querySelectorAll("[data-carousel-page]"))ie.innerHTML=x+1+"";for(const ie of p.querySelectorAll("[data-carousel-pages]"))ie.innerHTML=O.length+"";for(const ie of p.querySelectorAll("[data-carousel-go-to]"))parseInt(((T=ie.dataset)===null||T===void 0?void 0:T.carouselGoTo)||"-1",10)===x?ie.setAttribute("aria-current","true"):ie.removeAttribute("aria-current");for(const ie of p.querySelectorAll("[data-carousel-go-prev]"))ie.toggleAttribute("aria-disabled",!Be()),Be()?ie.removeAttribute("tabindex"):ie.setAttribute("tabindex","-1");for(const ie of p.querySelectorAll("[data-carousel-go-next]"))ie.toggleAttribute("aria-disabled",!Ge()),Ge()?ie.removeAttribute("tabindex"):ie.setAttribute("tabindex","-1");let Y=!1;const Q=(j=O[x])===null||j===void 0?void 0:j.slides[0];Q&&(Q.downloadSrc||Q.type==="image"&&Q.src)&&(Y=!0);for(const ie of p.querySelectorAll("[data-carousel-download]"))ie.toggleAttribute("aria-disabled",!Y)}function Je(T){var j;T||(T=(j=O[x])===null||j===void 0?void 0:j.slides[0]);const Y=T?.el;if(Y)for(const Q of Y.querySelectorAll("[data-slide-index]"))Q.innerHTML=T.index+1+""}function et(T){var j,Y,Q;if(!O.length)return 0;const ie=W();let ne=T;m?ne-=Math.floor((T-((j=O[0])===null||j===void 0?void 0:j.pos))/ie)*ie||0:ne=We((Y=O[0])===null||Y===void 0?void 0:Y.pos,T,(Q=O[O.length-1])===null||Q===void 0?void 0:Q.pos);const le=new Map;let ue=0;for(const we of O){const ke=Math.abs(we.pos-ne),ve=Math.abs(we.pos-ne-ie),pe=Math.abs(we.pos-ne+ie),Le=Math.min(ke,ve,pe);le.set(ue,Le),ue++}const be=le.size>0?[...le.entries()].reduce((we,ke)=>ke[1]<we[1]?ke:we):[x,0];return parseInt(be[0])}function Qe(){return X}function Ae(){return g}function W(T=!0){return I.length?I.reduce((j,Y)=>j+Y.dim,0)+(I.length-(m&&T?0:1))*X:0}function re(T){const j=W(),Y=Ae();if(!j||!u||!Y)return[];const Q=[];T=T===void 0?w:T,m&&(T-=Math.floor(T/j)*j||0);let ie=0;for(let ne of I){const le=(ue=0)=>{Q.indexOf(ne)>-1||(ne.pos=ie-T+ue||0,ne.offset+ue>T-ne.dim-f+.51&&ne.offset+ue<T+Y+y-.51&&Q.push(ne))};ne.offset=ie,m&&(le(j),le(-1*j)),le(),ie+=ne.dim+X}return Q}function he(T,j){const Y=[];for(const Q of Array.isArray(T)?T:[T]){const ie=M(Object.assign(Object.assign({},Q),{isVirtual:!0}));ie.el||(ie.el=document.createElement("div")),te("createSlide",ie),Y.push(ie)}L.splice(j===void 0?L.length:j,0,...Y),G();for(const Q of Y)te("addSlide",Q),se(Q);return Te(B),Y}function M(T){return(Ue(T)||T instanceof HTMLElement)&&(T={html:T}),Object.assign({index:-1,el:void 0,class:"",isVirtual:!0,dim:0,pos:0,offset:0,html:"",src:""},T)}function se(T){let j=T.el;if(!T||!j)return;const Y=T.html?T.html instanceof HTMLElement?T.html:Kn(T.html):void 0;Y&&(ze(Y,"f-html"),T.htmlEl=Y,ze(j,"has-html"),j.append(Y),te("contentReady",T))}function ae(T){if(!u||!T)return;let j=T.el;if(j){if(j.setAttribute("index",T.index+""),j.parentElement!==u){let Y;ze(j,d.classes.slide),ze(j,T.class),xe(T);for(const Q of L)if(Q.index>T.index){Y=Q.el;break}u.insertBefore(j,Y&&u.contains(Y)?Y:null),te("attachSlideEl",T)}return Je(T),j}}function F(T){const j=T?.el;j&&(j.remove(),K(j),te("detachSlideEl",T))}function G(){for(let T=0;T<L.length;T++){const j=L[T],Y=j.el;Y&&(j.index!==T&&K(Y),Y.setAttribute("index",`${T}`)),j.index=T}}function J(){var T,j,Y,Q,ie;if(!p||!u)return;v=_("rtl"),b=_("vertical"),S=b?"height":"width";const ne=_("classes");if(Dt(p,ne.isLTR,!v),Dt(p,ne.isRTL,v),Dt(p,ne.isHorizontal,!b),Dt(p,ne.isVertical,b),Dt(p,ne.hasAdaptiveHeight,_("adaptiveHeight")),g=0,f=0,y=0,X=0,u){u.childElementCount||(u.style.display="grid");const ue=u.getBoundingClientRect();g=u.getBoundingClientRect()[S]||0;const be=window.getComputedStyle(u);X=parseFloat(be.getPropertyValue("--f-carousel-gap"))||0,be.getPropertyValue("overflow-"+(b?"y":"x"))==="visible"&&(f=Math.abs(ue[b?"top":"left"]),y=Math.abs(window[b?"innerHeight":"innerWidth"]-ue[b?"bottom":"right"])),u.style.display=""}if(!g)return;const le=function(){let ue=0;if(u){let be=document.createElement("div");be.style.display="block",ze(be,d.classes.slide),u.appendChild(be),ue=be.getBoundingClientRect()[S],be.remove(),be=void 0}return ue}();for(const ue of I){const be=ue.el;let we=0;if(!ue.isVirtual&&be&&Ki(be)){let ke=!1;be.parentElement&&be.parentElement===u||(u.appendChild(be),ke=!0),we=be.getBoundingClientRect()[S],ke&&((T=be.parentElement)===null||T===void 0||T.removeChild(be))}else we=le;ue.dim=we}if(m=!1,_("infinite")){m=!0;const ue=W();let be=g+f+y;for(let we=0;we<I.length;we++){const ke=((j=I[we])===null||j===void 0?void 0:j.dim)+X;if(ue-ke<be&&ue-ke-be<ke){m=!1;break}}}(function(){var ue;if(!p)return;const be=Ae(),we=W(!1);let ke=_("slidesPerPage");ke=ke==="auto"?1/0:parseFloat(ke+""),O=[];let ve=0,pe=0;for(const De of I)(!O.length||ve+De.dim-be>.05||pe>=ke)&&(O.push({index:O.length,slides:[],dim:0,offset:0,pos:0}),ve=0,pe=0),(ue=O[O.length-1])===null||ue===void 0||ue.slides.push(De),ve+=De.dim+X,pe++;const Le=_("center"),ce=_("fill");let Ce=0;for(const De of O){De.dim=(De.slides.length-1)*X;for(const Ie of De.slides)De.dim+=Ie.dim;De.offset=Ce,De.pos=Ce,Le!==!1&&(De.pos-=.5*(be-De.dim)),ce&&!m&&we>be&&(De.pos=We(0,De.pos,we-be)),Ce+=De.dim+X}const _e=[];let Oe;for(const De of O){const Ie=Object.assign({},De);Oe&&Math.abs(Ie.pos-Oe.pos)<.1?(Oe.dim+=Ie.dim,Oe.slides=[...Oe.slides,...Ie.slides]):(Oe=Ie,Ie.index=_e.length,_e.push(Ie))}O=_e,x=We(0,x,O.length-1)})(),V=((Y=O[0])===null||Y===void 0?void 0:Y.pos)||0,E=((Q=O[O.length-1])===null||Q===void 0?void 0:Q.pos)||0,l===0?function(){var ue;o=void 0,x=_("initialPage");const be=_("initialSlide")||void 0;be!==void 0&&(x=Re.getPageIndex(be)||0),x=We(0,x,O.length-1),w=((ue=O[x])===null||ue===void 0?void 0:ue.pos)||0,z=w}():z=((ie=O[x||0])===null||ie===void 0?void 0:ie.pos)||0,te("refresh"),Fe()}function K(T){if(!T||!Ki(T))return;const j=parseInt(T.getAttribute("index")||"-1");let Y="";for(const ie of Array.from(T.classList)){const ne=ie.match(/^f-(\w+)(Out|In)$/);ne&&ne[1]&&(Y=ne[1]+"")}if(!T||!Y)return;const Q=[`f-${Y}Out`,`f-${Y}In`,"to-prev","to-next","from-prev","from-next"];T.removeEventListener("animationend",U),Yt(T,Q.join(" ")),R.delete(j)}function H(){if(!u)return;const T=R.size>0;for(const j of I)K(j.el);R.clear(),T&&ye()}function U(T){var j;((j=T.animationName)===null||j===void 0?void 0:j.substring(0,2))==="f-"&&(K(T.target),R.size||(Yt(p,"in-transition"),!k&&Math.abs(Re.getPosition(!0)-z)<.5&&(k=!0,te("settle"))),ye())}function fe(T){var j;if(T.defaultPrevented)return;const Y=T.composedPath()[0];if(Y.closest("[data-carousel-go-prev]"))return Si(T),void Re.prev();if(Y.closest("[data-carousel-go-next]"))return Si(T),void Re.next();const Q=Y.closest("[data-carousel-go-to]");if(Q)return Si(T),void Re.goTo(parseFloat(Q.dataset.carouselGoTo||"")||0);if(Y.closest("[data-carousel-download]")){Si(T);const ie=(j=O[x])===null||j===void 0?void 0:j.slides[0];if(ie&&(ie.downloadSrc||ie.type==="image"&&ie.src)){const ne=ie.downloadFilename,le=document.createElement("a"),ue=ie.downloadSrc||ie.src||"";le.href=ue,le.target="_blank",le.download=ne||ue,le.click()}}else te("click",T)}function oe(T){var j;const Y=T.el;Y&&((j=Y.querySelector(".f-spinner"))===null||j===void 0||j.remove())}function me(T){var j;const Y=T.el;Y&&((j=Y.querySelector(".f-html.is-error"))===null||j===void 0||j.remove(),Yt(Y,"has-error"))}function xe(T){var j;T||(T=(j=O[x])===null||j===void 0?void 0:j.slides[0]);const Y=T?.el;if(!Y)return;let Q=_("formatCaption",T);Q===void 0&&(Q=T.caption),Q=Q||"";const ie=_("captionEl");if(ie&&ie instanceof HTMLElement){if(T.index!==x)return;if(Ue(Q)&&(ie.innerHTML=Z(Q+"")),Q instanceof HTMLElement){if(Q.parentElement===ie)return;ie.innerHTML="",Q.parentElement&&(Q=Q.cloneNode(!0)),ie.append(Q)}return}if(!Q)return;let ne=T.captionEl||Y.querySelector(".f-caption");!ne&&Q instanceof HTMLElement&&Q.classList.contains("f-caption")&&(ne=Q),ne||(ne=document.createElement("div"),ze(ne,"f-caption"),Ue(Q)?ne.innerHTML=Z(Q+""):Q instanceof HTMLElement&&(Q.parentElement&&(Q=Q.cloneNode(!0)),ne.append(Q)));const le=`f-caption-${ec}_${T.index}`;ne.setAttribute("id",le),ne.dataset.selectable="true",ze(Y,"has-caption"),Y.setAttribute("aria-labelledby",le),T.captionEl=ne,Y.insertAdjacentElement("beforeend",ne)}function Pe(T,j={}){var Y,Q;let{transition:ie,tween:ne}=Object.assign({transition:d.transition,tween:d.tween},j||{});if(!p||!r)return;const le=O.length;if(!le||function(we,ke){var ve,pe,Le;if(!(p&&g&&r&&ke&&Ue(ke)&&ke!=="tween"))return!1;for(const rt of $)if(g-rt.dim>.5)return!1;if(f>.5||y>.5)return;const ce=O.length;let Ce=we>x?1:-1;we=m?(we%ce+ce)%ce:We(0,we,ce-1),v&&(Ce*=-1);const _e=(ve=O[x])===null||ve===void 0?void 0:ve.slides[0],Oe=_e?.index,De=(pe=O[we])===null||pe===void 0?void 0:pe.slides[0],Ie=De?.index,at=(Le=O[we])===null||Le===void 0?void 0:Le.pos;if(Ie===void 0||Oe===void 0||Oe===Ie||w===at||Math.abs(g-(De?.dim||0))>1)return!1;k=!1,r.pause(),H(),ze(p,"in-transition"),w=z=at;const ct=ae(_e),Ke=ae(De);return $e(),ct&&(R.add(Oe),ct.style.transform="",ct.addEventListener("animationend",U),Yt(ct,d.classes.isSelected),ct.inert=!1,ze(ct,`f-${ke}Out to-${Ce>0?"next":"prev"}`)),Ke&&(R.add(Ie),Ke.style.transform="",Ke.addEventListener("animationend",U),ze(Ke,d.classes.isSelected),Ke.inert=!1,ze(Ke,`f-${ke}In from-${Ce>0?"prev":"next"}`)),ye(),!0}(T,ie))return;T=m?(T%le+le)%le:We(0,T,le-1),z=((Y=O[T||0])===null||Y===void 0?void 0:Y.pos)||0;const be=r.isRunning()?r.getEndValues().pos:w;if(Math.abs(z-be)<1)return w=z,x!==T&&(xe(),o=x,x=T,Fe(),Je(),te("change",x,o)),ye(),void(k||(k=!0,te("settle")));if(r.pause(),H(),m){const we=W(),ke=Math.floor((be-((Q=O[0])===null||Q===void 0?void 0:Q.pos))/we)||0,ve=z+ke*we;z=[ve+we,ve,ve-we].reduce(function(pe,Le){return Math.abs(Le-be)<Math.abs(pe-be)?Le:pe})}ie!==!1&&At(ne)?r.spring(Qt({},d.tween,ne)).from({pos:w}).to({pos:z}).start():(w=z,$e(),ye(),k||(k=!0,te("settle")))}function Ne(T){var j;let Y=w;if(m&&T!==!0){const Q=W();Y-=(Math.floor((w-((j=O[0])===null||j===void 0?void 0:j.pos)||0)/Q)||0)*Q}return Y}function ye(){var T;if(!p||!u)return;$=re();const j=new Set,Y=[],Q=O[x],ie=d.setTransform;let ne;for(const le of I){const ue=R.has(le.index),be=$.indexOf(le)>-1,we=((T=Q?.slides)===null||T===void 0?void 0:T.indexOf(le))>-1;if(le.isVirtual&&!ue&&!be)continue;let ke=ae(le);if(ke&&(Y.push(le),we&&j.add(ke),_("adaptiveHeight")&&we)){const ve=(ke.firstElementChild||ke).getBoundingClientRect().height;ne=ne==null?ve:Math.max(ne,ve)}}u&&ne&&(u.style.height=`${ne}px`),[...ko(u,`.${d.classes.slide}`)].forEach(le=>{Dt(le,d.classes.isSelected,j.has(le));const ue=L[parseInt(le.getAttribute("index")||"-1")];if(!ue)return le.remove(),void K(le);const be=R.has(ue.index),we=$.indexOf(ue)>-1;if(ue.isVirtual&&!be&&!we)return void F(ue);if(le.inert=!we,ie===!1)return;let ke=ue.pos?Math.round(1e4*ue.pos)/1e4:0,ve=0,pe=0,Le=0,ce=0;be||(ve=b?0:v?-1*ke:ke,pe=b?ke:0,Le=Ks(ve,0,ue.dim,0,100),ce=Ks(pe,0,ue.dim,0,100)),ie instanceof Function&&!be?ie(Re,ue,{x:ve,y:pe,xPercent:Le,yPercent:ce}):le.style.transform=ve||pe?`translate3d(${Le}%, ${ce}%,0)`:""}),te("render",Y)}function Xe(){p?.removeEventListener("click",fe),document.removeEventListener("mousemove",ge),R.clear(),s?.disconnect(),s=void 0;for(const T of L){let j=T.el;j&&Ki(j)&&(T.state=void 0,oe(T),me(T),T.isVirtual?(F(T),T.el=void 0):(K(j),j.style.transform="",u&&!u.contains(j)&&u.appendChild(j)))}for(const T of Object.values(h))T?.destroy();h={},n?.destroy(),n=void 0,r?.destroy(),r=void 0;for(const[T,j]of Object.entries(d.classes||{}))T!=="container"&&Yt(p,j);Yt(u,"is-draggable")}function Be(){return m||x>0}function Ge(){return m||x<O.length-1}const Re={add:function(T,j){var Y;let Q=w;const ie=x,ne=W(),le=r?.isRunning()?r.getEndValues().pos:w,ue=ne&&Math.floor((le-(((Y=O[0])===null||Y===void 0?void 0:Y.pos)||0))/ne)||0;return he(T,j),Te(B),J(),r&&ne&&(ie===x&&(Q-=ue*ne),Q===z?w=z:r.spring({clamp:!0,mass:1,tension:300,friction:25,restDelta:1,restSpeed:1}).from({pos:Q}).to({pos:z}).start()),ye(),Re},canGoPrev:Be,canGoNext:Ge,destroy:function(){return te("destroy"),window.removeEventListener("resize",de),Xe(),ee.clear(),p=null,O=[],L=[],d=Object.assign({},Yi),h={},I=[],a=void 0,B="*",l=2,Re},emit:te,filter:function(T="*"){return Te(T),J(),w=We(V,w,E),ye(),te("filter",T),Re},getContainer:function(){return p},getGapDim:Qe,getGestures:function(){return n},getLastMouseMove:function(){return Jl},getOption:function(T){return _(T)},getOptions:function(){return d},getPage:function(){return O[x]},getPageIndex:function(T){if(T!==void 0){for(const j of O||[])for(const Y of j.slides)if(Y.index===T)return j.index;return-1}return x},getPageIndexFromPosition:et,getPageProgress:function(T,j){var Y;T===void 0&&(T=x);const Q=O[T];if(!Q)return T>x?-1:1;const ie=W(),ne=Qe();let le=Q.pos,ue=Ne();if(m&&j!==!0){const be=Math.floor((ue-((Y=O[0])===null||Y===void 0?void 0:Y.pos))/ie)||0;ue-=be*ie,le=[le+ie,le,le-ie].reduce(function(we,ke){return Math.abs(ke-ue)<Math.abs(we-ue)?ke:we})}return(ue-le)/(Q.dim+ne)||0},getPageVisibility:function(T){var j;T===void 0&&(T=x);const Y=O[T];if(!Y)return T>x?-1:1;const Q=Ne(),ie=Ae();let ne=Y.pos;if(m){const le=W(),ue=ne+(Math.floor((Q-((j=O[0])===null||j===void 0?void 0:j.pos))/le)||0)*le;ne=[ue+le,ue,ue-le].reduce(function(be,we){return Math.abs(we-Q)<Math.abs(be-Q)?we:be})}return ne>Q&&ne+Y.dim<Q+ie?1:ne<Q?(ne+Y.dim-Q)/Y.dim||0:ne+Y.dim>Q+ie&&(Q+ie-ne)/Y.dim||0},getPages:function(){return O},getPlugins:function(){return h},getPosition:Ne,getSlides:function(){return L},getState:function(){return l},getTotalSlideDim:W,getTween:function(){return r},getViewport:function(){return u},getViewportDim:Ae,getVisibleSlides:function(T){return T===void 0?$:re(T)},goTo:Pe,hasNavigated:function(){return o!==void 0},hideError:me,hideLoading:oe,init:function(){if(!t||!Ki(t))throw new Error("No Element found");return l!==0&&(Xe(),l=0),p=t,c=e,window.removeEventListener("resize",de),c.breakpoints&&window.addEventListener("resize",de),de(),Re},isInfinite:function(){return m},isInTransition:function(){return R.size>0},isRTL:function(){return v},isSettled:function(){return k},isVertical:function(){return b},localize:function(T,j=[]){return Z(T,j)},next:function(T={}){return Pe(x+1,T),Re},off:function(T,j){for(const Y of T instanceof Array?T:[T])ee.has(Y)&&ee.set(Y,ee.get(Y).filter(Q=>Q!==j));return Re},on:function(T,j){for(const Y of T instanceof Array?T:[T])ee.set(Y,[...ee.get(Y)||[],j]);return Re},prev:function(T={}){return Pe(x-1,T),Re},reInit:function(T={},j){return Xe(),l=0,a=void 0,B="*",e=T,c=T,At(j)&&(i=j),de(),Re},remove:function(T){T===void 0&&(T=L.length-1);const j=L[T];return j&&(te("removeSlide",j),j.el&&(K(j.el),j.el.remove(),j.el=void 0),L.splice(T,1),Te(B),J(),w=We(V,w,E),ye()),Re},setPosition:function(T){w=T,$e(),ye()},showError:function(T,j){oe(T),me(T);const Y=T.el;if(Y){const Q=document.createElement("div");ze(Q,"f-html"),ze(Q,"is-error"),Q.innerHTML=Z(j||"<p>{{ERROR}}</p>"),T.htmlEl=Q,ze(Y,"has-html"),ze(Y,"has-error"),Y.insertAdjacentElement("afterbegin",Q),te("contentReady",T)}return Re},showLoading:function(T){const j=T.el,Y=j?.querySelector(".f-spinner");if(!j||Y)return Re;const Q=_("spinnerTpl"),ie=Kn(Q);return ie&&(ze(ie,"f-spinner"),j.insertAdjacentElement("beforeend",ie)),Re},version:"6.1.6"};return Re};Qs.l10n={en_EN:Ua},Qs.getDefaults=()=>Yi;const tc=(t=!0,e="--f-scrollbar-compensate",i="--f-body-margin",n="hide-scrollbar")=>{const r=document,s=r.body,o=r.documentElement;if(t){if(s.classList.contains(n))return;let a=window.innerWidth-o.getBoundingClientRect().width;a<0&&(a=0),o.style.setProperty(e,`${a}px`);const l=parseFloat(window.getComputedStyle(s).marginRight);l&&s.style.setProperty(i,`${l}px`),s.classList.add(n)}else s.classList.remove(n),s.style.setProperty(i,""),r.documentElement.style.setProperty(e,"")};function Rs(){return!(typeof window>"u"||!window.document||!window.document.createElement)}const Pi=function(t="",e="",i=""){return t.split(e).join(i)};const nc={tpl:t=>`<img class="f-panzoom__content" 
    ${t.srcset?'data-lazy-srcset="{{srcset}}"':""} 
    ${t.sizes?'data-lazy-sizes="{{sizes}}"':""} 
    data-lazy-src="{{src}}" alt="{{alt}}" />`},Xp=()=>{let t;function e(d,h){const p=t?.getOptions().Zoomable;let u=(At(p)?Object.assign(Object.assign({},nc),p):nc)[d];return u&&typeof u=="function"&&h?u(h):u}function i(){t&&t.getOptions().Zoomable!==!1&&(t.on("addSlide",s),t.on("removeSlide",o),t.on("attachSlideEl",a),t.on("click",r),t.on("change",n),t.on("ready",n))}function n(){l();const d=t?.getVisibleSlides()||[];if(d.length>1||t?.getOption("transition")==="slide")for(const h of d){const p=h.panzoomRef;p&&(t?.getPage().slides||[]).indexOf(h)<0&&p.execute(Ee.ZoomTo,Object.assign({},p.getStartPosition()))}}function r(d,h){const p=h.target;p&&!h.defaultPrevented&&p.dataset.panzoomAction&&c(p.dataset.panzoomAction)}function s(d,h){const p=h.el;if(!t||!p||h.panzoomRef)return;const u=h.src||h.lazySrc||"",g=h.alt||h.caption||`Image #${h.index}`,f=h.srcset||h.lazySrcset||"",y=h.sizes||h.lazySizes||"";if(u&&Ue(u)&&!h.html&&(!h.type||h.type==="image")){h.type="image",h.thumbSrc=h.thumbSrc||u;let w=e("tpl",h);w=Pi(w,"{{src}}",u+""),w=Pi(w,"{{srcset}}",f+""),w=Pi(w,"{{sizes}}",y+""),p.insertAdjacentHTML("afterbegin",w)}const m=p.querySelector(".f-panzoom__content");if(!m)return;m.setAttribute("alt",g+"");const v=h.width&&h.width!=="auto"?parseFloat(h.width+""):"auto",b=h.height&&h.height!=="auto"?parseFloat(h.height+""):"auto",S=fa(p,Object.assign({width:v,height:b,classes:{container:"f-zoomable"},event:()=>t?.getLastMouseMove(),spinnerTpl:()=>t?.getOption("spinnerTpl")||""},e("Panzoom")));S.on("*",(w,k,...x)=>{t&&(k==="loading"&&(h.state=0),k==="loaded"&&(h.state=1),k==="error"&&(h.state=2,t?.showError(h,"{{IMAGE_ERROR}}")),t.emit(`panzoom:${k}`,h,...x),k==="ready"&&t.emit("contentReady",h),h.index===t?.getPageIndex()&&l())}),h.panzoomRef=S}function o(d,h){h.panzoomRef&&(h.panzoomRef.destroy(),h.panzoomRef=void 0)}function a(d,h){const p=h.panzoomRef;if(p)switch(p.getState()){case 0:p.init();break;case 3:p.execute(Ee.ZoomTo,Object.assign(Object.assign({},p.getStartPosition()),{velocity:0}))}}function l(){var d,h;const p=t?.getContainer()||void 0,u=(h=(d=t?.getPage())===null||d===void 0?void 0:d.slides[0])===null||h===void 0?void 0:h.panzoomRef;if(p)if(u)u.updateControls(p);else for(const g of p.querySelectorAll("[data-panzoom-action]")||[])g.setAttribute("aria-disabled",""),g.setAttribute("tabindex","-1")}function c(d,...h){var p;(p=t?.getPage().slides[0].panzoomRef)===null||p===void 0||p.execute(d,...h)}return{init:function(d){t=d,t.on("initPlugins",i)},destroy:function(){if(t){t.off("initPlugins",i),t.off("addSlide",s),t.off("removeSlide",o),t.off("attachSlideEl",a),t.off("click",r),t.off("change",n),t.off("ready",n);for(const d of t.getSlides())o(0,d)}t=void 0},execute:c}};const ic={syncOnChange:!1,syncOnClick:!0,syncOnHover:!1},dd=()=>{let t,e;function i(){const u=t?.getOptions().Sync;return At(u)?Object.assign(Object.assign({},ic),u):ic}function n(u){var g,f,y;t&&u&&(e=u,t.getOptions().classes=Object.assign(Object.assign({},t.getOptions().classes),{isSelected:""}),t.getOptions().initialSlide=((f=(g=e.getPage())===null||g===void 0?void 0:g.slides[0])===null||f===void 0?void 0:f.index)||0,i().syncOnChange&&t.on("change",o),i().syncOnClick&&t.on("click",l),i().syncOnHover&&((y=t.getViewport())===null||y===void 0||y.addEventListener("mouseover",c)),function(){!t||!e||(t.on("ready",s),t.on("refresh",d),e.on("change",a),e.on("filter",h))}())}function r(){const u=i().target;t&&u&&n(u)}function s(){p()}function o(){var u;if(t&&e){const g=((u=t.getPage())===null||u===void 0?void 0:u.slides)||[],f=e.getPageIndex(g[0].index||0);f>-1&&e.goTo(f,t.hasNavigated()?void 0:{tween:!1,transition:!1}),p()}}function a(){var u;if(t&&e){const g=t.getPageIndex(((u=e.getPage())===null||u===void 0?void 0:u.slides[0].index)||0);g>-1&&t.goTo(g,e.hasNavigated()?void 0:{tween:!1,transition:!1}),p()}}function l(u,g){var f;if(!t||!e||!((f=t.getTween())===null||f===void 0)&&f.isRunning())return;const y=t?.getOptions().classes.slide;if(!y)return;const m=y?g.target.closest(`.${y}`):null;if(m){const v=parseInt(m.getAttribute("index")||"")||0,b=e.getPageIndex(v);e.goTo(b)}}function c(u){t&&l(0,u)}function d(){var u;if(t&&e){const g=t.getPageIndex(((u=e.getPage())===null||u===void 0?void 0:u.slides[0].index)||0);g>-1&&t.goTo(g,{tween:!1,transition:!1}),p()}}function h(u,g){t&&e&&(t.filter(g),a())}function p(){var u,g,f;if(!e)return;const y=((g=(u=e.getPage())===null||u===void 0?void 0:u.slides[0])===null||g===void 0?void 0:g.index)||0;for(const m of t?.getSlides()||[])(f=m.el)===null||f===void 0||f.classList.toggle("is-selected",m.index===y)}return{init:function(u){t=u,t.on("initSlides",r)},destroy:function(){var u;t?.off("ready",s),t?.off("refresh",d),t?.off("change",o),t?.off("click",l),(u=t?.getViewport())===null||u===void 0||u.removeEventListener("mouseover",c),e?.off("change",a),e?.off("filter",h),e=void 0,t?.off("initSlides",r),t=void 0},getTarget:function(){return e}}};const rc={showLoading:!0,preload:1},Ss="is-lazyloading",sc="is-lazyloaded",oc="has-lazyerror",fd=()=>{let t;function e(){const r=t?.getOptions().Lazyload;return At(r)?Object.assign(Object.assign({},rc),r):rc}function i(r){var s;const o=r.el;if(!o)return;const a="[data-lazy-src],[data-lazy-srcset],[data-lazy-bg]",l=Array.from(o.querySelectorAll(a));o.matches(a)&&l.push(o);for(const c of l){const d=c.dataset.lazySrc,h=c.dataset.lazySrcset,p=c.dataset.lazySizes,u=c.dataset.lazyBg,g=(c instanceof HTMLImageElement||c instanceof HTMLSourceElement)&&(d||h),f=c instanceof HTMLElement&&u;if(!g&&!f)continue;const y=d||h||u;if(y){if(g&&y){const m=(s=c.parentElement)===null||s===void 0?void 0:s.classList.contains("f-panzoom__wrapper");e().showLoading&&t?.showLoading(r),c.addEventListener("load",()=>{t?.hideLoading(r),Yt(c,oc),c instanceof HTMLImageElement?c.decode().then(()=>{Yt(c,Ss),ze(c,sc)}):(Yt(c,Ss),ze(c,sc)),m||t==null||t.emit("lazyLoad:loaded",r,c,y)}),c.addEventListener("error",()=>{t?.hideLoading(r),Yt(c,Ss),ze(c,oc),m||t==null||t.emit("lazyLoad:error",r,c,y)}),c.classList.add("f-lazyload"),c.classList.add(Ss),m||t==null||t.emit("lazyLoad:load",r,c,y),d&&(c.src=d),h&&(c.srcset=h),p&&(c.sizes=p)}else f&&(document.body.contains(c)||(document.createElement("img").src=u),c.style.backgroundImage=`url('${u}')`);delete c.dataset.lazySrc,delete c.dataset.lazySrcset,delete c.dataset.lazySizes,delete c.dataset.lazyBg}}}function n(){if(!t)return;const r=[...t.getVisibleSlides()],s=e().preload;if(s>0){const o=t.getPosition(),a=t.getViewportDim();r.push(...t.getVisibleSlides(o+a*s),...t.getVisibleSlides(o-a*s))}for(const o of r)i(o)}return{init:function(r){t=r,t.on("render",n)},destroy:function(){t?.off("render",n),t=void 0}}};const ac='<svg width="24" height="24" viewBox="0 0 24 24" tabindex="-1">',lc="</svg>",cc={prevTpl:ac+'<path d="M15 3l-9 9 9 9"></path>'+lc,nextTpl:ac+'<path d="M9 3l9 9-9 9"></path>'+lc},Up=()=>{let t,e,i;function n(){const a=t?.getOptions().Arrows;return At(a)?Object.assign(Object.assign({},cc),a):cc}function r(a){if(!t)return;const l=`<button data-carousel-go-${a} tabindex="0" class="f-button is-arrow is-${a}" title="{{${a.toUpperCase()}}}">`+n()[`${a}Tpl`]+"</button",c=Kn(t.localize(l))||void 0;return c&&ze(c,n()[`${a}Class`]),c}function s(){var a;e?.remove(),e=void 0,i?.remove(),i=void 0,(a=t?.getContainer())===null||a===void 0||a.classList.remove("has-arrows")}function o(){t&&t.getOptions().Arrows!==!1&&t.getPages().length>1?(function(){if(!t)return;const a=t.getViewport();a&&(e||(e=r("prev"),e&&a.insertAdjacentElement("beforebegin",e)),i||(i=r("next"),i&&a.insertAdjacentElement("afterend",i)),Dt(t.getContainer(),"has-arrows",!(!e&&!i)))}(),t&&(e?.toggleAttribute("aria-disabled",!t.canGoPrev()),i?.toggleAttribute("aria-disabled",!t.canGoNext()))):s()}return{init:function(a){t=a.on(["change","refresh"],o)},destroy:function(){s(),t?.off(["change","refresh"],o),t=void 0}}};const hd='<circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M8 11h6"/>',Io='<g><line x1="11" y1="8" x2="11" y2="14"></line></g>'+hd,Zp={moveLeft:["moveLeft","MOVE_LEFT",'<path d="M5 12h14M5 12l6 6M5 12l6-6"/>'],moveRight:["moveRight","MOVE_RIGHT",'<path d="M5 12h14M13 18l6-6M13 6l6 6"/>'],moveUp:["moveUp","MOVE_UP",'<path d="M12 5v14M18 11l-6-6M6 11l6-6"/>'],moveDown:["moveDown","MOVE_DOWN",'<path d="M12 5v14M18 13l-6 6M6 13l6 6"/>'],zoomOut:["zoomOut","ZOOM_OUT",hd],zoomIn:["zoomIn","ZOOM_IN",Io],toggleFull:["toggleFull","TOGGLE_FULL",Io],iterateZoom:["iterateZoom","ITERATE_ZOOM",Io],toggle1to1:["toggleFull","TOGGLE_FULL",'<path d="M3.51 3.07c5.74.02 11.48-.02 17.22.02 1.37.1 2.34 1.64 2.18 3.13 0 4.08.02 8.16 0 12.23-.1 1.54-1.47 2.64-2.79 2.46-5.61-.01-11.24.02-16.86-.01-1.36-.12-2.33-1.65-2.17-3.14 0-4.07-.02-8.16 0-12.23.1-1.36 1.22-2.48 2.42-2.46Z"/><path d="M5.65 8.54h1.49v6.92m8.94-6.92h1.49v6.92M11.5 9.4v.02m0 5.18v0"/>'],rotateCCW:["rotateCCW","ROTATE_CCW",'<path d="M15 4.55a8 8 0 0 0-6 14.9M9 15v5H4M18.37 7.16v.01M13 19.94v.01M16.84 18.37v.01M19.37 15.1v.01M19.94 11v.01"/>'],rotateCW:["rotateCW","ROTATE_CW",'<path d="M9 4.55a8 8 0 0 1 6 14.9M15 15v5h5M5.63 7.16v.01M4.06 11v.01M4.63 15.1v.01M7.16 18.37v.01M11 19.94v.01"/>'],flipX:["flipX","FLIP_X",'<path d="M12 3v18M16 7v10h5L16 7M8 7v10H3L8 7"/>'],flipY:["flipY","FLIP_Y",'<path d="M3 12h18M7 16h10L7 21v-5M7 8h10L7 3v5"/>'],reset:["reset","RESET",'<path d="M20 11A8.1 8.1 0 0 0 4.5 9M4 5v4h4M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4"/>'],toggleFS:["toggleFS","TOGGLE_FS",'<g><path d="M14.5 9.5 21 3m0 0h-6m6 0v6M3 21l6.5-6.5M3 21v-6m0 6h6"/></g><g><path d="m14 10 7-7m-7 7h6m-6 0V4M3 21l7-7m0 0v6m0-6H4"/></g>']},Za={};for(const[t,e]of Object.entries(Zp))Za[t]={tpl:`<button data-panzoom-action="${e[0]}" class="f-button" title="{{${e[1]}}}"><svg>${e[2]}</svg></button>`};var uc;(function(t){t.Left="left",t.middle="middle",t.right="right"})(uc||(uc={}));const dc=Object.assign({counter:{tpl:'<div class="f-counter"><span data-carousel-page></span>/<span data-carousel-pages></span></div>'},download:{tpl:'<button data-carousel-download class="f-button" title="{{DOWNLOAD}}"><svg><path d="M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2M7 11l5 5 5-5M12 4v12"/></svg></button>'},autoplay:{tpl:'<button data-autoplay-action="toggle" class="f-button" title="{{TOGGLE_AUTOPLAY}}"><svg><g><path d="M5 3.5 19 12 5 20.5Z"/></g><g><path d="M8 4v15M17 4v15"/></g></svg></button>'},thumbs:{tpl:'<button data-thumbs-action="toggle" class="f-button" title="{{TOGGLE_THUMBS}}"><svg><rect width="18" height="14" x="3" y="3" rx="2"/><path d="M4 21h1M9 21h1M14 21h1M19 21h1"/></svg></button>'}},Za),fc={absolute:!1,display:{left:[],middle:["zoomIn","zoomOut","toggle1to1","rotateCCW","rotateCW","flipX","flipY","reset"],right:[]},enabled:"auto",items:{}},pd=()=>{let t,e;function i(r){const s=t?.getOptions().Toolbar;let o=(At(s)?Object.assign(Object.assign({},fc),s):fc)[r];return o&&typeof o=="function"&&t?o(t):o}function n(){var r,s;if(!t?.getOptions().Toolbar||!t||e)return;const o=t.getContainer();if(!o)return;let a=i("enabled");if(!a)return;const l=i("absolute"),c=t.getSlides().length>1;let d=!1,h=!1;for(const m of t.getSlides())m.panzoomRef&&(d=!0),(m.downloadSrc||m.type==="image"&&m.src)&&(h=!0);const p=((r=t.getPlugins().Thumbs)===null||r===void 0?void 0:r.isEnabled())||!1,u=c&&t.getPlugins().Autoplay||!1,g=t.getPlugins().Fullscreen&&(document.fullscreenEnabled||document.webkitFullscreenEnabled);if(a==="auto"&&(a=d),!a)return;e=o.querySelector(".f-carousel__toolbar")||void 0,e||(e=document.createElement("div"),e.classList.add("f-carousel__toolbar"));const f=i("display"),y=Qt({},dc,i("items"));for(const m of["left","middle","right"]){const v=f[m]||[],b=document.createElement("div");b.classList.add("f-carousel__toolbar__column"),b.classList.add(`is-${m}`);for(const S of v){let w;if(Ue(S)){if(S==="counter"&&!c||S==="autoplay"&&!u||Za[S]&&!d||S==="fullscreen"&&!g||S==="thumbs"&&!p||S==="download"&&!h)continue;w=y[S]}if(At(S)&&(w=S),w&&w.tpl){let k=t.localize(w.tpl);k=k.split("<svg>").join('<svg tabindex="-1" width="24" height="24" viewBox="0 0 24 24">');const x=Kn(k);x&&(typeof w.click=="function"&&t&&x.addEventListener("click",z=>{z.preventDefault(),z.stopPropagation(),typeof w.click=="function"&&t&&w.click(t,z)}),b.append(x))}}e.append(b)}if(e.childElementCount){if(l&&e.classList.add("is-absolute"),!e.parentElement){const m=i("parentEl");m?m.insertAdjacentElement("afterbegin",e):(s=t.getViewport())===null||s===void 0||s.insertAdjacentElement("beforebegin",e)}o.contains(e)&&o.classList.add("has-toolbar")}}return{init:function(r){t=r,t?.on("initSlides",n)},destroy:function(){var r;t?.off("initSlides",n),(r=t?.getContainer())===null||r===void 0||r.classList.remove("has-toolbar"),e?.remove(),e=void 0},add:function(r,s){dc[r]=s},isEnabled:function(){return!!e}}};const hc={autoStart:!0,pauseOnHover:!0,showProgressbar:!0,timeout:2e3},Kp=()=>{let t,e,i=!1,n=!1,r=!1,s=null;function o(w){const k=t?.getOptions().Autoplay;let x=(At(k)?Object.assign(Object.assign({},hc),k):hc)[w];return x&&typeof x=="function"&&t?x(t):x}function a(){clearTimeout(e),e=void 0}function l(){if(!t||!i||r||n||e||!t.isSettled()||function(){var k;const x=((k=t?.getPage())===null||k===void 0?void 0:k.slides)||[];for(const z of x)if(z.state===0)return!0;return!1}())return;(function(){var k,x,z,V;if(!t||(h(),!o("showProgressbar")))return;let E=o("progressbarParentEl");if(!E&&(!((k=t.getPlugins().Toolbar)===null||k===void 0)&&k.isEnabled())&&(E=t.getContainer()),!E&&((x=t.getPlugins().Toolbar)===null||x===void 0?void 0:x.isEnabled())!==!0){const L=((z=t.getPages()[0])===null||z===void 0?void 0:z.slides)||[],I=((V=t.getPage())===null||V===void 0?void 0:V.slides)||[];L.length===1&&I.length===1&&(E=I[0].el)}if(E||(E=t.getViewport()),!E)return;s=document.createElement("div"),ze(s,"f-progressbar"),E.prepend(s);const B=o("timeout")||1e3;s.style.animationDuration=`${B}ms`})();const w=o("timeout");e=setTimeout(()=>{t&&i&&!n&&(t.isInfinite()||t.getPageIndex()!==t.getPages().length-1?t.next():t.goTo(0))},w)}function c(){var w;if(!t||t.getPages().length<2||t.getOptions().Autoplay===!1||i)return;i=!0,t.emit("autoplay:start",o("timeout")),ze(t.getContainer(),"has-autoplay"),(w=t.getTween())===null||w===void 0||w.on("start",m);const k=t?.getContainer();k&&o("pauseOnHover")&&matchMedia("(hover: hover)").matches&&(k.addEventListener("mouseenter",v,!1),k.addEventListener("mouseleave",b,!1)),t.on("change",f),t.on("settle",y),t.on("contentReady",u),t.on("panzoom:touchStart",d),t.on("panzoom:wheel",d),t.isSettled()&&l()}function d(){var w;if(a(),h(),t){if(i){t.emit("autoplay:end"),(w=t.getTween())===null||w===void 0||w.off("start",m);const k=t.getContainer();k&&(k.classList.remove("has-autoplay"),k.removeEventListener("mouseenter",v,!1),k.removeEventListener("mouseleave",b,!1))}t.off("change",f),t.off("settle",y),t.off("contentReady",u),t.off("panzoom:touchStart",d),t.off("panzoom:wheel",d)}i=!1,n=!1}function h(){s&&(s.remove(),s=null)}function p(){t&&t.getPages().length>1&&o("autoStart")&&c()}function u(){l()}function g(w,k){const x=k.target;x&&!k.defaultPrevented&&x.dataset.autoplayAction==="toggle"&&S.toggle()}function f(){!t||!t?.isInfinite()&&t.getPageIndex()===t.getPages().length-1?d():(h(),a())}function y(){l()}function m(){a(),h()}function v(){r=!0,i&&(h(),a())}function b(){r=!1,i&&!n&&t?.isSettled()&&l()}const S={init:function(w){t=w,t.on("ready",p),t.on("click",g)},destroy:function(){d(),t?.off("ready",p),t?.off("click",g),t=void 0},isEnabled:()=>i,pause:function(){n=!0,a()},resume:function(){n=!1,i&&!r&&l()},start(){c()},stop(){d()},toggle(){i?d():c()}};return S};const Ro={Carousel:{Lazyload:{showLoading:!1}},minCount:2,showOnStart:!0,thumbTpl:'<button aria-label="Slide to #{{page}}"><img draggable="false" alt="{{alt}}" data-lazy-src="{{src}}" /></button>',type:"modern"};let zo;const Qp=()=>{let t,e,i,n,r,s=0,o=0,a=!0;function l(I){const R=t?.getOptions().Thumbs;let $=(At(R)?Object.assign(Object.assign({},Ro),R):Ro)[I];return $&&typeof $=="function"&&t?$(t):$}function c(){if(!t||t?.getOptions().Thumbs===!1)return!1;let I=0;for(const R of t.getSlides())R.thumbSrc&&I++;return I>=l("minCount")}function d(){return l("type")==="modern"}function h(){return l("type")==="scrollable"}function p(){const I=[],R=t?.getSlides()||[];for(const $ of R)I.push({index:$.index,class:$.thumbClass,html:u($)});return I}function u(I){const R=I.thumb?I.thumb instanceof HTMLImageElement?I.thumb.src:I.thumb:I.thumbSrc||void 0,$=I.thumbAlt===void 0?`Thumbnail #${I.index}`:I.thumbAlt+"";let O=l("thumbTpl");return O=Pi(O,"{{alt}}",$),O=Pi(O,"{{src}}",R+""),O=Pi(O,"{{index}}",`${I.index}`),O=Pi(O,"{{page}}",`${I.index||1}`),O}function g(I){return`<div index="${I.index||0}" class="f-thumbs__slide ${I.class||""}">${I.html||""}</div>`}function f(I=!1){var R;const $=t?.getContainer();if(!t||!$||i||!c())return;const O=((R=l("Carousel"))===null||R===void 0?void 0:R.classes)||{};if(O.container=O.container||"f-thumbs",!i){const D=$.nextElementSibling;D?.classList.contains(O.container)&&(i=D)}if(!i){i=document.createElement("div");const D=l("parentEl");D?D.insertAdjacentElement("beforeend",i):$.insertAdjacentElement("afterend",i)}ze(i,O.container),ze(i,"f-thumbs"),ze(i,`is-${l("type")}`),I&&ze(i,"is-hidden")}function y(){if(!i||!h())return;n=document.createElement("div"),ze(n,"f-thumbs__viewport");let I="";for(const R of p())typeof(R.html||"")=="string"&&(I+=g(R));n.innerHTML=I,i.append(n),i.addEventListener("click",R=>{R.preventDefault();const $=R.target.closest("[index]"),O=parseInt($?.getAttribute("index")||"-1");t&&O>-1&&t.goTo(O)}),r=new IntersectionObserver(R=>{R.forEach($=>{$.isIntersecting&&$.target instanceof HTMLImageElement&&($.target.src=$.target.getAttribute("data-lazy-src")+"",$.target.removeAttribute("data-lazy-src"),r?.unobserve($.target))})},{root:n,rootMargin:"100px"}),i.querySelectorAll("[data-lazy-src]").forEach(R=>{r?.observe(R)}),t?.emit("thumbs:ready")}function m(){var I;if(!zo||!t||!i||h()||e)return;const R=p();if(!R.length)return;const $=Qt({},{Sync:{target:t},Lazyload:{preload:1},slides:R,classes:{container:"f-thumbs",viewport:"f-thumbs__viewport",slide:"f-thumbs__slide"},center:!0,fill:!d(),infinite:!1,dragFree:!0,rtl:t.getOptions().rtl||!1,slidesPerPage:O=>{let D=0;return d()&&(function(){if(!d()||!i)return;const q=X=>i&&parseFloat(getComputedStyle(i).getPropertyValue("--f-thumb-"+X))||0;s=q("width"),o=q("clip-width")}(),D=4*(s-o)),O&&O.getTotalSlideDim()<=O.getViewportDim()-D?1/0:1}},Ro.Carousel||{},l("Carousel")||{});e=zo(i,$,{Sync:dd,Lazyload:fd}),e.on("ready",()=>{ze(i,"is-syncing"),t?.emit("thumbs:ready"),d()&&t?.on("render",w)}),e.on("destroy",()=>{t?.emit("thumbs:destroy")}),e.init(),(I=e.getGestures())===null||I===void 0||I.on("start",()=>{a=!1}),e.on("click",(O,D)=>{const q=D.target;if(q){const X=q.matches("button")?q:q.firstElementChild;X&&X.matches("button")&&(D.preventDefault(),X.focus({preventScroll:!0}))}}),ze(t.getContainer(),"has-thumbs"),L()}function v(){c()&&l("showOnStart")&&(f(),y())}function b(){var I;c()&&(m(),t?.on("addSlide",x),t?.on("removeSlide",z),t?.on("click",V),t?.on("refresh",E),(I=t?.getGestures())===null||I===void 0||I.on("start",S),B(!0))}function S(){var I,R;a=!0,!((I=document.activeElement)===null||I===void 0)&&I.closest(".f-thumbs")&&((R=document.activeElement)===null||R===void 0||R.blur())}function w(){var I,R;i?.classList.toggle("is-syncing",t?.hasNavigated()===!1||((I=t?.getTween())===null||I===void 0?void 0:I.isRunning())),L(),!((R=t?.getGestures())===null||R===void 0)&&R.isPointerDown()&&function(){if(!d()||!t||!e||!a)return;const $=e.getTween(),O=e.getPages(),D=t.getPageIndex()||0,q=t.getPageProgress()||0;if(!(t&&O&&O[D]&&$))return;const X=$.isRunning()?$.getCurrentValues().pos:e.getPosition();if(X===void 0)return;let _=O[D].pos+q*(s-o);_=We(O[0].pos,_,O[O.length-1].pos),$.from({pos:X}).to({pos:_}).start()}()}function k(){a=!0,B()}function x(I,R){const $={html:u(R)};if(e)e.add($,R.index);else if(n){const O=Kn(g($));if(O){n.append(O);const D=O.querySelector("img");D&&r?.observe(D)}}}function z(I,R){var $;e?e.remove(R.index):n&&(($=n.querySelector(`[index="${R.index}"]`))===null||$===void 0||$.remove())}function V(I,R){var $;const O=R.target;R.defaultPrevented||(($=O?.dataset)===null||$===void 0?void 0:$.thumbsAction)!=="toggle"||(i||(f(!0),y(),m()),i&&i.classList.toggle("is-hidden"))}function E(){B()}function B(I=!1){if(!t||!n||!h())return;const R=t.getPageIndex();n.querySelectorAll(".is-selected").forEach(O=>{O.classList.remove("is-selected")});const $=n.querySelector(`[index="${R}"]`);if($){$.classList.add("is-selected");const O=n.getBoundingClientRect(),D=$.getBoundingClientRect(),q=$.offsetTop-n.offsetTop-.5*O.height+.5*D.height,X=$.scrollLeft-n.scrollLeft-.5*O.width+.5*D.width;n.scrollTo({top:q,left:X,behavior:I?"instant":"smooth"})}}function L(){if(!d()||!t||!e)return;const I=e?.getSlides()||[];let R=-.5*s;for(const $ of I){const O=$.el;if(!O)continue;let D=t.getPageProgress($.index)||0;D=Math.max(-1,Math.min(1,D)),D>-1&&D<1&&(R+=.5*s*(1-Math.abs(D))),D=Math.round(1e4*D)/1e4,R=Math.round(1e4*R)/1e4,O.style.setProperty("--progress",`${Math.abs(D)}`),O.style.setProperty("--shift",`${t?.isRTL()?-1*R:R}px`),D>-1&&D<1&&(R+=.5*s*(1-Math.abs(D)))}}return{init:function(I,R){zo=R,t=I,t.on("ready",b),t.on("initSlides",v),t.on("change",k)},destroy:function(){var I,R;h()&&t?.emit("thumbs:destroy"),t?.off("ready",b),t?.off("initSlides",v),t?.off("change",k),t?.off("render",w),t?.off("addSlide",x),t?.off("click",V),t?.off("refresh",E),(I=t?.getGestures())===null||I===void 0||I.off("start",S),(R=t?.getContainer())===null||R===void 0||R.classList.remove("has-thumbs"),t=void 0,e?.destroy(),e=void 0,i?.remove(),i=void 0},getCarousel:function(){return e},getContainer:function(){return i},getType:function(){return l("type")},isEnabled:c}};const pc={iframeAttr:{allow:"autoplay; fullscreen",scrolling:"auto"}},Jp=()=>{let t;function e(r,s){let o=s.src;if(!Ue(o))return;let a=s.type;if(!a){if(a||(o.charAt(0)==="#"?a="inline":o.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.((a)?png|avif|gif|jp(g|eg)|pjp(eg)?|jfif|svg|webp|bmp|ico|tif(f)?)((\?|#).*)?$)/i)?a="image":o.match(/\.(pdf)((\?|#).*)?$/i)?a="pdf":o.match(/\.(html|php)((\?|#).*)?$/i)&&(a="iframe")),!a){const l=o.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:(?:(?:maps\/(?:place\/(?:.*)\/)?\@(.*),(\d+.?\d+?)z))|(?:\?ll=))(.*)?/i);l&&(o=`https://maps.google.${l[1]}/?ll=${(l[2]?l[2]+"&z="+Math.floor(parseFloat(l[3]))+(l[4]?l[4].replace(/^\//,"&"):""):l[4]+"").replace(/\?/,"&")}&output=${l[4]&&l[4].indexOf("layer=c")>0?"svembed":"embed"}`,a="gmap")}if(!a){const l=o.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:maps\/search\/)(.*)/i);l&&(o=`https://maps.google.${l[1]}/maps?q=${l[2].replace("query=","q=").replace("api=1","")}&output=embed`,a="gmap")}s.src=o,s.type=a}}function i(r,s){s.type!=="iframe"&&s.type!=="pdf"&&s.type!=="gmap"||function(o){if(!t||!o.el||!o.src)return;const a=document.createElement("iframe");a.classList.add("f-iframe");for(const[c,d]of Object.entries(function(){const h=t?.getOptions().Html;return At(h)?Object.assign(Object.assign({},pc),h):pc}().iframeAttr||{}))a.setAttribute(c,d);a.onerror=()=>{t&&t.getState()===1&&t.showError(o,"{{IFRAME_ERROR}}")},a.src=o.src;const l=document.createElement("div");if(l.classList.add("f-html"),l.append(a),o.width){let c=`${o.width}`;c.match(/^\d+$/)&&(c+="px"),l.style.maxWidth=`${c}`}if(o.height){let c=`${o.height}`;c.match(/^\d+$/)&&(c+="px"),l.style.maxHeight=`${c}`}if(o.aspectRatio){const c=o.el.getBoundingClientRect();l.style.aspectRatio=`${o.aspectRatio}`,l.style[c.width>c.height?"width":"height"]="auto",l.style[c.width>c.height?"maxWidth":"maxHeight"]="none"}o.contentEl=a,o.htmlEl=l,o.el.classList.add("has-html"),o.el.classList.add("has-iframe"),o.el.classList.add(`has-${o.type}`),o.el.prepend(l),t.emit("contentReady",o)}(s)}function n(r,s){var o,a;s.type!=="iframe"&&s.type!=="pdf"&&s.type!=="gmap"||(t?.hideError(s),(o=s.contentEl)===null||o===void 0||o.remove(),s.contentEl=void 0,(a=s.htmlEl)===null||a===void 0||a.remove(),s.htmlEl=void 0)}return{init:function(r){t=r,t.on("addSlide",e),t.on("attachSlideEl",i),t.on("detachSlideEl",n)},destroy:function(){t?.off("addSlide",e),t?.off("attachSlideEl",i),t?.off("detachSlideEl",n),t=void 0}}};const gc=(t,e={})=>{const i=new URL(t),n=new URLSearchParams(i.search),r=new URLSearchParams;for(const[a,l]of[...n,...Object.entries(e)]){let c=l+"";if(a==="t"){let d=c.match(/((\d*)m)?(\d*)s?/);d&&r.set("start",60*parseInt(d[2]||"0")+parseInt(d[3]||"0")+"")}else r.set(a,c)}let s=r+"",o=t.match(/#t=((.*)?\d+s)/);return o&&(s+=`#t=${o[1]}`),s},mc={autoplay:!1,html5videoTpl:`<video class="f-html5video" playsinline controls controlsList="nodownload" poster="{{poster}}">
    <source src="{{src}}" type="{{format}}" />Sorry, your browser doesn't support embedded videos.</video>`,iframeAttr:{allow:"autoplay; fullscreen",scrolling:"auto",credentialless:""},vimeo:{byline:1,color:"00adef",controls:1,dnt:1,muted:0},youtube:{controls:1,enablejsapi:1,nocookie:1,rel:0,fs:1}},eg=()=>{let t,e=!1;function i(){const p=t?.getOptions().Video;return At(p)?Object.assign(Object.assign({},mc),p):mc}function n(){var p;return(p=t?.getPage())===null||p===void 0?void 0:p.slides[0]}const r=p=>{var u;try{let g=JSON.parse(p.data);if(p.origin==="https://player.vimeo.com"){if(g.event==="ready")for(let f of Array.from(((u=t?.getContainer())===null||u===void 0?void 0:u.getElementsByClassName("f-iframe"))||[]))f instanceof HTMLIFrameElement&&f.contentWindow===p.source&&(f.dataset.ready="true")}else if(p.origin.match(/^https:\/\/(www.)?youtube(-nocookie)?.com$/)&&g.event==="onReady"){const f=document.getElementById(g.id);f&&(f.dataset.ready="true")}}catch{}};function s(p,u){const g=u.src;if(!Ue(g))return;let f=u.type;if(!f||f==="html5video"){const y=g.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i);y&&(f="html5video",u.html5videoFormat=u.html5videoFormat||"video/"+(y[1]==="ogv"?"ogg":y[1]))}if(!f||f==="youtube"){const y=g.match(/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(?:watch\?(?:.*&)?v=|v\/|u\/|shorts\/|embed\/?)?(videoseries\?list=(?:.*)|[\w-]{11}|\?listType=(?:.*)&list=(?:.*))(?:.*)/i);if(y){const m=Object.assign(Object.assign({},i().youtube),u.youtube||{}),v=`www.youtube${m.nocookie?"-nocookie":""}.com`,b=gc(g,m),S=encodeURIComponent(y[2]);u.videoId=S,u.src=`https://${v}/embed/${S}?${b}`,u.thumb=u.thumb||`https://i.ytimg.com/vi/${S}/mqdefault.jpg`,f="youtube"}}if(!f||f==="vimeo"){const y=g.match(/^.+vimeo.com\/(?:\/)?(video\/)?([\d]+)((\/|\?h=)([a-z0-9]+))?(.*)?/);if(y){const m=Object.assign(Object.assign({},i().vimeo),u.vimeo||{}),v=gc(g,m),b=encodeURIComponent(y[2]),S=y[5]||"";u.videoId=b,u.src=`https://player.vimeo.com/video/${b}?${S?`h=${S}${v?"&":""}`:""}${v}`,f="vimeo"}}u.type=f}function o(p,u){u.type==="html5video"&&function(g){if(!t||!g.el||!g.src)return;const{el:f,src:y}=g;if(!f||!y)return;const m=g.html5videoTpl||i().html5videoTpl,v=g.html5videoFormat||i().html5videoFormat;if(!m)return;const b=g.poster||(g.thumb&&Ue(g.thumb)?g.thumb:""),S=Kn(m.replace(/\{\{src\}\}/gi,y+"").replace(/\{\{format\}\}/gi,v||"").replace(/\{\{poster\}\}/gi,b+""));if(!S)return;const w=document.createElement("div");w.classList.add("f-html"),w.append(S),g.contentEl=S,g.htmlEl=w,f.classList.add(`has-${g.type}`),f.prepend(w),d(g),t.emit("contentReady",g)}(u),u.type!=="youtube"&&u.type!=="vimeo"||function(g){if(!t||!g.el||!g.src)return;const f=document.createElement("iframe");f.classList.add("f-iframe"),f.setAttribute("id",`f-iframe_${g.videoId}`);for(const[m,v]of Object.entries(i().iframeAttr||{}))f.setAttribute(m,v);f.onload=()=>{var m;t&&t.getState()===1&&g.type==="youtube"&&((m=f.contentWindow)===null||m===void 0||m.postMessage(JSON.stringify({event:"listening",id:f.getAttribute("id")}),"*"))},f.onerror=()=>{t&&t.getState()===1&&t?.showError(g,"{{IFRAME_ERROR}}")},f.src=g.src;const y=document.createElement("div");y.classList.add("f-html"),y.append(f),g.contentEl=f,g.htmlEl=y,g.el.classList.add("has-html"),g.el.classList.add("has-iframe"),g.el.classList.add(`has-${g.type}`),g.el.prepend(y),d(g),t.emit("contentReady",g)}(u)}function a(p,u){var g,f;u.type!=="html5video"&&u.type!=="youtube"&&u.type!=="vimeo"||((g=u.contentEl)===null||g===void 0||g.remove(),u.contentEl=void 0,(f=u.htmlEl)===null||f===void 0||f.remove(),u.htmlEl=void 0),u.poller&&clearTimeout(u.poller)}function l(){e=!1}function c(){if(e)return;e=!0;const p=n();(p&&p.autoplay!==void 0?p.autoplay:i().autoplay)&&(function(){var u;const g=n(),f=g?.el;if(f&&g?.type==="html5video")try{const m=f.querySelector("video");if(m){const v=m.play();v!==void 0&&v.then(()=>{}).catch(b=>{m.muted=!0,m.play()})}}catch{}const y=g?.htmlEl;y instanceof HTMLIFrameElement&&((u=y.contentWindow)===null||u===void 0||u.postMessage('{"event":"command","func":"stopVideo","args":""}',"*"))}(),function(){const u=n(),g=u?.type;if(!u?.el||g!=="youtube"&&g!=="vimeo")return;const f=()=>{if(u.contentEl&&u.contentEl instanceof HTMLIFrameElement&&u.contentEl.contentWindow){let y;if(u.contentEl.dataset.ready==="true")return y=u.type==="youtube"?{event:"command",func:"playVideo"}:{method:"play",value:"true"},y&&u.contentEl.contentWindow.postMessage(JSON.stringify(y),"*"),void(u.poller=void 0);u.type==="youtube"&&(y={event:"listening",id:u.contentEl.getAttribute("id")},u.contentEl.contentWindow.postMessage(JSON.stringify(y),"*"))}u.poller=setTimeout(f,250)};f()}())}function d(p){const u=p?.htmlEl;if(p&&u&&(p.type==="html5video"||p.type==="youtube"||p.type==="vimeo")){if(u.style.aspectRatio="",u.style.width="",u.style.height="",u.style.maxWidth="",u.style.maxHeight="",p.width){let g=`${p.width}`;g.match(/^\d+$/)&&(g+="px"),u.style.maxWidth=`${g}`}if(p.height){let g=`${p.height}`;g.match(/^\d+$/)&&(g+="px"),u.style.maxHeight=`${g}`}if(p.aspectRatio){const g=p.aspectRatio.split("/"),f=parseFloat(g[0].trim()),y=g[1]?parseFloat(g[1].trim()):0,m=f&&y?f/y:f;u.offsetHeight;const v=u.getBoundingClientRect(),b=m<(v.width||1)/(v.height||1);u.style.aspectRatio=`${p.aspectRatio}`,u.style.width=b?"auto":"",u.style.height=b?"":"auto"}}}function h(){d(n())}return{init:function(p){t=p,t.on("addSlide",s),t.on("attachSlideEl",o),t.on("detachSlideEl",a),t.on("ready",c),t.on("change",l),t.on("settle",c),t.on("refresh",h),window.addEventListener("message",r)},destroy:function(){t?.off("addSlide",s),t?.off("attachSlideEl",o),t?.off("detachSlideEl",a),t?.off("ready",c),t?.off("change",l),t?.off("settle",c),t?.off("refresh",h),window.removeEventListener("message",r),t=void 0}}};const vc={autoStart:!1,btnTpl:'<button data-fullscreen-action="toggle" class="f-button" title="{{TOGGLE_FULLSCREEN}}"><svg><g><path d="M8 3H5a2 2 0 0 0-2 2v3M21 8V5a2 2 0 0 0-2-2h-3M3 16v3a2 2 0 0 0 2 2h3M16 21h3a2 2 0 0 0 2-2v-3"/></g><g><path d="M15 19v-2a2 2 0 0 1 2-2h2M15 5v2a2 2 0 0 0 2 2h2M5 15h2a2 2 0 0 1 2 2v2M5 9h2a2 2 0 0 0 2-2V5"/></g></svg></button>'},yc="in-fullscreen-mode",tg=()=>{let t;function e(d){const h=t?.getOptions().Fullscreen;let p=(At(h)?Object.assign(Object.assign({},vc),h):vc)[d];return p&&typeof p=="function"&&t?p(t):p}function i(){var d;(d=t?.getPlugins().Toolbar)===null||d===void 0||d.add("fullscreen",{tpl:e("btnTpl")})}function n(){if(e("autoStart")){const d=s();d&&a(d)}}function r(d,h){const p=h.target;p&&!h.defaultPrevented&&p.dataset.fullscreenAction==="toggle"&&c()}function s(){return e("el")||t?.getContainer()||void 0}function o(){const d=document;return d.fullscreenEnabled?!!d.fullscreenElement:!!d.webkitFullscreenEnabled&&!!d.webkitFullscreenElement}function a(d){const h=document;let p;return d||(d=h.documentElement),h.fullscreenEnabled?p=d.requestFullscreen():h.webkitFullscreenEnabled&&(p=d.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT)),p&&p.then(()=>{d.classList.add(yc)}),p}function l(){const d=document;let h;return d.fullscreenEnabled?h=d.fullscreenElement&&d.exitFullscreen():d.webkitFullscreenEnabled&&(h=d.webkitFullscreenElement&&d.webkitExitFullscreen()),h&&h.then(()=>{var p;(p=s())===null||p===void 0||p.classList.remove(yc)}),h}function c(){if(o())l();else{const d=s();d&&a(d)}}return{init:function(d){t=d,t.on("initPlugins",i),t.on("ready",n),t.on("click",r)},destroy:function(){t?.off("initPlugins",i),t?.off("ready",n),t?.off("click",r)},exit:l,inFullscreen:o,request:a,toggle:c}};let Pn,gd,ha=!1,pa=!1,Pr=!1,ga=!1;const Ka=()=>{const t=new URL(document.URL).hash,e=t.slice(1).split("-"),i=e[e.length-1],n=i&&/^\+?\d+$/.test(i)&&parseInt(e.pop()||"1",10)||1;return{urlHash:t,urlSlug:e.join("-"),urlIndex:n}},Do=()=>{const t=Pn?.getInstance();return!(!t||t.getState()!=1)},Qa=()=>{if(!Pn||Do())return;const{urlSlug:t,urlIndex:e}=Ka();if(!t)return;let i=document.querySelector(`[data-slug="${t}"]`);i&&Pn.fromTriggerEl(i),Do()||(i=document.querySelectorAll(`[data-fancybox="${t}"]`)[e-1],i&&Pn.fromTriggerEl(i,{startIndex:e-1})),Do()&&i&&!i.closest("[inert]")&&i.scrollIntoView({behavior:"instant",block:"center",inline:"center"})},ng=()=>{if(!Pn||Pr)return;const t=Pn?.getInstance(),e=t?.getCarousel();if(t?.getOptions().Hash===!1)return;const{urlSlug:i,urlIndex:n}=Ka();if(t&&e){const r=e.getSlides();for(const s of r||[])if(i===s.slug||i===s.fancybox&&s.index===n-1)return pa=!1,void e.goTo(s.index);ga=!0,t.close(),ga=!1}Qa()},_c=()=>{Pn&&(gd=setTimeout(()=>{ha=!0,Qa(),ha=!1},300),window.addEventListener("hashchange",ng,!1))},ma=()=>{let t,e="auto",i="";function n(){var o,a,l;if(!t||!t.isTopMost()||t.getOptions().Hash===!1)return;if(ha){const m=t.getOptions().sync;m&&m.goTo(((o=t?.getCarousel())===null||o===void 0?void 0:o.getPageIndex())||0,{transition:!1,tween:!1})}const c=t.getCarousel();if(!c)return;const{urlHash:d,urlSlug:h}=Ka(),p=t.getSlide();if(!p)return;let u=p.slug||p.fancybox||"",g=parseInt(p.index+"",10)+1;if(!u)return;let f=p.slug?`#${p.slug}`:`#${u}-${g}`;(((l=(a=t.getCarousel())===null||a===void 0?void 0:a.getPages())===null||l===void 0?void 0:l.length)||0)<2&&(f=`#${u}`),d!==f&&(i=d),history.scrollRestoration&&(e=history.scrollRestoration,history.scrollRestoration="manual"),c.on("change",r);const y=u!==h;try{window.history[y?"pushState":"replaceState"]({},document.title,window.location.pathname+window.location.search+f),y&&(pa=!0)}catch{}}function r(){if(!t||!t.isTopMost()||t.getOptions().Hash===!1)return;const o=t.getSlide();if(!o)return;let a=o.slug||o.fancybox||"",l=o.index+1,c=o.slug?`#${o.slug}`:`#${a}-${l}`;Pr=!0;try{window.history.replaceState({},document.title,window.location.pathname+window.location.search+c)}catch{}Pr=!1}function s(){if(ga||!t||!t.isTopMost()||t.getOptions().Hash===!1)return;const o=t.getSlide();if(o&&o.fancybox){Pr=!0;try{pa&&!function(){if(window.parent===window)return!1;try{var a=window.frameElement}catch{a=null}return a===null?location.protocol==="data:":a.hasAttribute("sandbox")}()?window.history.back():window.history.replaceState({},document.title,window.location.pathname+window.location.search+i)}catch{}Pr=!1}}return{init:function(o){clearTimeout(gd),t=o,t.on("ready",n),t.on("close",s)},destroy:function(){t?.off("ready",n),t?.off("close",s);const o=t?.getCarousel();o&&o.off("change",r),t=void 0,history.scrollRestoration&&e&&(history.scrollRestoration=e)}}};ma.startFromUrl=Qa,ma.setup=function(t){Pn||(Pn=t,Rs()&&(/complete|interactive|loaded/.test(document.readyState)?_c():document.addEventListener("DOMContentLoaded",_c)))};const ig=Object.assign(Object.assign({},Ua),{CLOSE:"Close",NEXT:"Next",PREV:"Previous",MODAL:"You can close this modal content with the ESC key",ELEMENT_NOT_FOUND:"HTML Element Not Found",IFRAME_ERROR:"Error Loading Page"});const md='<button class="f-button" title="{{CLOSE}}" data-fancybox-close><svg tabindex="-1" width="24" height="24" viewBox="0 0 24 24"><path d="M19.286 4.714 4.714 19.286M4.714 4.714l14.572 14.572" /></svg></button>';pd().add("close",{tpl:md});const In=t=>{t.cancelable&&t.preventDefault()},bc=(t=null,e="",i)=>{if(!t||!t.parentElement||!e)return void(i&&i());vd(t);const n=r=>{r.target===t&&t.dataset.animationName&&(t.removeEventListener("animationend",n),delete t.dataset.animationName,i&&i(),t.classList.remove(e))};t.dataset.animationName=e,t.addEventListener("animationend",n),ze(t,e)},vd=t=>{t&&t.dispatchEvent(new CustomEvent("animationend",{bubbles:!1,cancelable:!0,currentTarget:t}))};var mt;(function(t){t[t.Init=0]="Init",t[t.Ready=1]="Ready",t[t.Closing=2]="Closing",t[t.Destroyed=3]="Destroyed"})(mt||(mt={}));const Jr={ajax:null,backdropClick:"close",Carousel:{},closeButton:"auto",closeExisting:!1,delegateEl:void 0,dragToClose:!0,fadeEffect:!0,groupAll:!1,groupAttr:"data-fancybox",hideClass:"f-fadeOut",hideScrollbar:!0,id:void 0,idle:!1,keyboard:{Escape:"close",Delete:"close",Backspace:"close",PageUp:"next",PageDown:"prev",ArrowUp:"prev",ArrowDown:"next",ArrowRight:"next",ArrowLeft:"prev"},l10n:ig,mainClass:"",mainStyle:{},mainTpl:`<dialog class="fancybox__dialog">
    <div class="fancybox__container" tabindex="0" aria-label="{{MODAL}}">
      <div class="fancybox__backdrop"></div>
      <div class="fancybox__carousel"></div>
    </div>
  </dialog>`,modal:!0,on:{},parentEl:void 0,placeFocusBack:!0,showClass:"f-zoomInUp",startIndex:0,sync:void 0,theme:"dark",triggerEl:void 0,triggerEvent:void 0,zoomEffect:!0},Gn=new Map;let rg=0;const wc="with-fancybox",sg=()=>{let t,e,i,n,r,s,o,a=mt.Init,l=Object.assign({},Jr),c=-1,d={},h=[],p=!1,u=!0,g=0;function f(W,...re){let he=l[W];return he&&typeof he=="function"?he(Ae,...re):he}function y(W,re=[]){const he=f("l10n")||{};W=String(W).replace(/\{\{(\w+)\}\}/g,(M,se)=>he[se]||M);for(let M=0;M<re.length;M++)W=W.split(re[M][0]).join(re[M][1]);return W=W.replace(/\{\{(.*?)\}\}/g,(M,se)=>se)}const m=new Map;function v(W,...re){const he=[...m.get(W)||[]];for(const[M,se]of Object.entries(l.on||{}))(M===W||M.split(" ").indexOf(W)>-1)&&he.push(se);for(const M of he)M&&typeof M=="function"&&M(Ae,...re);W!=="*"&&v("*",W,...re)}function b(){Yt(e,"is-revealing");try{document.activeElement===t&&(e?.querySelector("[autofocus]")||e).focus()}catch{}}function S(W,re){var he;D(re),L(),(he=re.el)===null||he===void 0||he.addEventListener("click",k),re.type!=="inline"&&re.type!=="clone"||function(M){if(!n||!M||!M.el)return;let se=null;if(Ue(M.src)){const ae=M.src.split("#",2).pop();se=ae?document.getElementById(ae):null}if(se){if(ze(se,"f-html"),M.type==="clone"||se.closest(".fancybox__carousel")){se=se.cloneNode(!0);const ae=se.dataset.animationName;ae&&(se.classList.remove(ae),delete se.dataset.animationName);let F=se.getAttribute("id");F=F?`${F}--clone`:`clone-${c}-${M.index}`,se.setAttribute("id",F)}else if(se.parentNode){const ae=document.createElement("div");ae.inert=!0,se.parentNode.insertBefore(ae,se),M.placeholderEl=ae}M.htmlEl=se,ze(M.el,"has-html"),M.el.prepend(se),se.classList.remove("hidden"),se.style.display==="none"&&(se.style.display=""),getComputedStyle(se).getPropertyValue("display")==="none"&&(se.style.display=se.dataset.display||"flex"),n?.emit("contentReady",M)}else n?.showError(M,"{{ELEMENT_NOT_FOUND}}")}(re),re.type==="ajax"&&function(M){const se=M.el;if(!se||M.htmlEl||M.xhr)return;n?.showLoading(M),M.state=0;const ae=new XMLHttpRequest;ae.onreadystatechange=function(){if(ae.readyState===XMLHttpRequest.DONE&&a===mt.Ready)if(n?.hideLoading(M),M.state=1,ae.status===200){let G=ae.responseText+"",J=null,K=null;if(M.filter){const H=document.createElement("div");H.innerHTML=G,K=H.querySelector(M.filter+"")}K&&K instanceof HTMLElement?J=K:(J=document.createElement("div"),J.innerHTML=G),J.classList.add("f-html"),M.htmlEl=J,se.classList.add("has-html"),se.classList.add("has-ajax"),se.prepend(J),n?.emit("contentReady",M)}else n?.showError(M)};const F=f("ajax")||null;ae.open(F?"POST":"GET",M.src+""),ae.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),ae.setRequestHeader("X-Requested-With","XMLHttpRequest"),ae.send(F),M.xhr=ae}(re)}function w(W,re){var he;q(re),(he=re.el)===null||he===void 0||he.removeEventListener("click",k),re.type!=="inline"&&re.type!=="clone"||function(M){const se=M.htmlEl,ae=M.placeholderEl;se&&(getComputedStyle(se).getPropertyValue("display")!=="none"&&(se.style.display="none"),se.offsetHeight),ae&&(se&&ae.parentNode&&ae.parentNode.insertBefore(se,ae),ae.remove()),M.htmlEl=void 0,M.placeholderEl=void 0}(re),re.xhr&&(re.xhr.abort(),re.xhr=void 0)}function k(W){if(!_())return;if(a!==mt.Ready)return In(W),void W.stopPropagation();if(W.defaultPrevented||!hr.isClickAllowed())return;const re=W.composedPath()[0];re.closest(".fancybox__carousel")&&re.classList.contains("fancybox__slide")&&I(W)}function x(){u=!1,e&&n&&e.classList.remove("is-revealing"),L();const W=f("sync");if(n&&W){const re=W.getPageIndex(n.getPageIndex())||0;W.goTo(re,{transition:!1,tween:!1})}}function z(){var W;(function(){const he=n?.getViewport();if(!f("dragToClose")||!n||!he||(r=hr(he).init(),!r))return;let M=!1,se=0,ae=0,F={},G=1;function J(){var H,U;s?.spring({clamp:!0,mass:1,tension:ae===0?140:960,friction:17,restDelta:.1,restSpeed:.1,maxSpeed:1/0}).from({y:se}).to({y:ae}).start();const fe=((H=n?.getViewport())===null||H===void 0?void 0:H.getBoundingClientRect().height)||0,oe=(U=Z())===null||U===void 0?void 0:U.panzoomRef;if(fe&&oe)if(ae===0)oe.execute(Ee.Reset);else{const me=Ks(Math.abs(se),0,.33*fe,G,.77*G,!1);oe.execute(Ee.ZoomTo,{scale:me})}}const K=H=>{var U;const fe=H.srcEvent,oe=fe.target;return n&&!(Nr(fe)&&((U=fe.touches)===null||U===void 0?void 0:U.length)>1)&&oe&&!Di(oe)};s=mi().on("step",H=>{if(e&&he&&a===mt.Ready){const U=he.getBoundingClientRect().height;se=Math.min(U,Math.max(-1*U,H.y));const fe=Ks(Math.abs(se),0,.5*U,1,0,!0);e.style.setProperty("--f-drag-opacity",fe+""),e.style.setProperty("--f-drag-offset",se+"px")}}),r.on("start",function(){M||(s?.pause(),ae=se)}).on("panstart",H=>{var U,fe;if(!M&&K(H)&&H.axis==="y"){In(H.srcEvent),M=!0,Fe(),(U=n?.getViewport())===null||U===void 0||U.classList.add("is-dragging");const oe=(fe=Z())===null||fe===void 0?void 0:fe.panzoomRef;if(oe){G=oe.getTransform().scale||1;const me=oe.getOptions();F=Object.assign({},me),me.bounds=!1,me.gestures=!1}}else M=!1}).on("pan",function(H){M&&K(H)&&(In(H.srcEvent),H.srcEvent.stopPropagation(),H.axis==="y"&&(ae+=H.deltaY,J()))}).on("end",H=>{var U,fe,oe;if((U=n?.getViewport())===null||U===void 0||U.classList.remove("is-dragging"),M){const me=(fe=Z())===null||fe===void 0?void 0:fe.panzoomRef;if(me){(oe=me.getTween())===null||oe===void 0||oe.end();const xe=me.getOptions();xe.bounds=F.bounds||!1,xe.gestures=F.gestures||!1}K(H)&&H.axis==="y"&&(Math.abs(H.velocityY)>5||Math.abs(se)>50)&&Je(H.srcEvent,"f-throwOut"+(H.velocityY>0?"Down":"Up"))}M=!1,a===mt.Ready&&se!==0&&(ae=0,J())})})(),document.body.addEventListener("click",O),document.body.addEventListener("keydown",$,{passive:!1,capture:!0}),L(),ge();const re=f("sync");n&&re&&((W=re.getTween())===null||W===void 0||W.start()),X(Z())}function V(){n?.canGoNext()?ge():$e()}function E(W,re){D(re),X(re)}function B(){var W;const re=n?.getPlugins().Thumbs;Dt(e,"has-thumbs",re?.isEnabled()||!1),Dt(e,"has-vertical-thumbs",!!re&&(re.getType()==="scrollable"||((W=re.getCarousel())===null||W===void 0?void 0:W.isVertical())===!0))}function L(){if(e){const W=n?.getPages()||[],re=n?.getPageIndex()||0;for(const he of e.querySelectorAll("[data-fancybox-index]"))he.innerHTML=re+"";for(const he of e.querySelectorAll("[data-fancybox-page]"))he.innerHTML=re+1+"";for(const he of e.querySelectorAll("[data-fancybox-pages]"))he.innerHTML=W.length+""}}function I(W){if(W.composedPath()[0].closest("[data-fancybox-close]"))return void Je(W);v("backdropClick",W),!W.defaultPrevented&&f("backdropClick")&&Je(W)}function R(){Te()}function $(W){if(!_()||a!==mt.Ready)return;const re=W.key,he=f("keyboard");if(!he||W.ctrlKey||W.altKey||W.shiftKey)return;const M=W.composedPath()[0];if(!Ki(M)||re!=="Escape"&&(ae=>{const F=["input","textarea","select","option","video","iframe","[contenteditable]","[data-selectable]","[data-draggable]"].join(",");return ae.matches(F)||ae.closest(F)})(M)||(v("keydown",W),W.defaultPrevented))return;const se=he[re];if(se)switch(se){case"close":Je(W);break;case"next":In(W),n?.next();break;case"prev":In(W),n?.prev()}}function O(W){if(!_()||a!==mt.Ready||(Te(),W.defaultPrevented))return;const re=W.composedPath()[0],he=!!re.closest("[data-fancybox-close]"),M=re.classList.contains("fancybox__backdrop");(he||M)&&I(W)}function D(W){var re;const{el:he,htmlEl:M,panzoomRef:se,closeButtonEl:ae}=W,F=se?se.getWrapper():M;if(!he||!he.parentElement||!F)return;let G=f("closeButton");if(G==="auto"&&(G=((re=n?.getPlugins().Toolbar)===null||re===void 0?void 0:re.isEnabled())!==!0),G){if(!ae){const J=Kn(y(md));J&&(ze(J,"is-close-button"),W.closeButtonEl=F.insertAdjacentElement("afterbegin",J),ze(he,"has-close-btn"))}}else q(W)}function q(W){W.closeButtonEl&&(W.closeButtonEl.remove(),W.closeButtonEl=void 0),Yt(W.el,"has-close-btn")}function X(W){if(!(u&&n&&n.getState()===1&&W&&W.index===n.getOptions().initialPage&&W.el&&W.el.parentElement)||W.state!==void 0&&W.state!==1)return;u=!1;const re=W.panzoomRef,he=re?.getTween(),M=f("zoomEffect")&&he?te(W):void 0;if(re&&he&&M){const{x:ae,y:F,scale:G}=re.getStartPosition();return void he.spring({tension:215,friction:25,restDelta:.001,restSpeed:.001,maxSpeed:1/0}).from(M).to({x:ae,y:F,scale:G}).start()}const se=re?.getContent()||W.htmlEl;se&&bc(se,f("showClass",W))}function _(){var W;return((W=st.getInstance())===null||W===void 0?void 0:W.getId())===c}function Z(){var W;return(W=n?.getPage())===null||W===void 0?void 0:W.slides[0]}function ee(){const W=Z();return W?W.triggerEl||f("triggerEl"):void 0}function te(W){var re,he;const M=W.thumbEl;if(!M||!(fe=>{const oe=fe.getBoundingClientRect(),me=fe.closest("[style]"),xe=me?.parentElement;if(me&&me.style.transform&&xe){const ye=xe.getBoundingClientRect();if(oe.left<ye.left||oe.left>ye.left+ye.width-oe.width||oe.top<ye.top||oe.top>ye.top+ye.height-oe.height)return!1}const Pe=Math.max(document.documentElement.clientHeight,window.innerHeight),Ne=Math.max(document.documentElement.clientWidth,window.innerWidth);return!(oe.bottom<0||oe.top-Pe>=0||oe.right<0||oe.left-Ne>=0)})(M))return;const se=(he=(re=W.panzoomRef)===null||re===void 0?void 0:re.getWrapper())===null||he===void 0?void 0:he.getBoundingClientRect(),ae=se?.width,F=se?.height;if(!ae||!F)return;const G=M.getBoundingClientRect();let J=G.width,K=G.height,H=G.left,U=G.top;if(!(!G||!J||!K)){if(M instanceof HTMLImageElement){const fe=window.getComputedStyle(M).getPropertyValue("object-fit");if(fe==="contain"||fe==="scale-down"){const{width:oe,height:me}=((xe,Pe,Ne,ye,Xe="contain")=>{if(Xe==="contain"||xe>Ne||Pe>ye){const Be=Ne/xe,Ge=ye/Pe,Re=Math.min(Be,Ge);xe*=Re,Pe*=Re}return{width:xe,height:Pe}})(M.naturalWidth,M.naturalHeight,J,K,fe);H+=.5*(J-oe),U+=.5*(K-me),J=oe,K=me}}if(!(Math.abs(ae/F-J/K)>.1))return{x:H+.5*J-(se.left+.5*ae),y:U+.5*K-(se.top+.5*F),scale:J/ae}}}function de(){o&&clearTimeout(o),o=void 0,document.removeEventListener("mousemove",R)}function ge(){if(p||o)return;const W=f("idle");W&&(o=setTimeout(Se,W))}function Se(){e&&(de(),ze(e,"is-idle"),document.addEventListener("mousemove",R),p=!0)}function Te(){p&&($e(),ge())}function $e(){de(),e?.classList.remove("is-idle"),p=!1}function Fe(){const W=ee();var re;!W||(re=W.getBoundingClientRect()).bottom>0&&re.right>0&&re.left<(window.innerWidth||document.documentElement.clientWidth)&&re.top<(window.innerHeight||document.documentElement.clientHeight)||W.closest("[inert]")||W.scrollIntoView({behavior:"instant",block:"center",inline:"center"})}function Je(W,re){var he,M,se,ae,F;if(a===mt.Closing||a===mt.Destroyed)return;const G=new Event("shouldClose",{bubbles:!0,cancelable:!0});if(v("shouldClose",G,W),G.defaultPrevented)return;if(de(),W){if(W.defaultPrevented)return;In(W),W.stopPropagation(),W.stopImmediatePropagation()}if(a=mt.Closing,s?.pause(),r?.destroy(),n){(he=n.getGestures())===null||he===void 0||he.destroy(),(M=n.getTween())===null||M===void 0||M.pause();for(const H of n.getSlides()){const U=H.panzoomRef;U&&(Qt(U.getOptions(),{clickAction:!1,dblClickAction:!1,wheelAction:!1,bounds:!1,minScale:0,maxScale:1/0}),(se=U.getGestures())===null||se===void 0||se.destroy(),(ae=U.getTween())===null||ae===void 0||ae.pause())}}const J=n?.getPlugins();(F=J?.Autoplay)===null||F===void 0||F.stop();const K=J?.Fullscreen;K&&K.inFullscreen()?Promise.resolve(K.exit()).then(()=>{setTimeout(()=>{et(W,re)},150)}):et(W,re)}function et(W,re){var he,M;if(a!==mt.Closing)return;v("close",W),u=!1,document.body.removeEventListener("click",O),document.body.removeEventListener("keydown",$,{passive:!1,capture:!0}),f("placeFocusBack")&&Fe();const se=document.activeElement;se&&t?.contains(se)&&se.blur(),f("fadeEffect")&&(e?.classList.remove("is-ready"),e?.classList.add("is-hiding")),e?.classList.add("is-closing");const ae=Z(),F=ae?.el,G=ae?.panzoomRef,J=(he=ae?.panzoomRef)===null||he===void 0?void 0:he.getTween(),K=re||f("hideClass");let H=!1,U=!1;if(n&&ae&&F&&G&&J){let oe;if(f("zoomEffect")&&ae.state===1&&(oe=te(ae)),oe){H=!0;const me=()=>{oe=te(ae),oe?J.to(Object.assign(Object.assign({},Cn),oe)):Qe()};G.on("refresh",()=>{me()}),J.easing(mi.Easings.EaseOut).duration(350).from(Object.assign({},G.getTransform())).to(Object.assign(Object.assign({},Cn),oe)).start(),F?.getAnimations()&&(F.style.animationPlayState="paused",requestAnimationFrame(()=>{me()}))}}const fe=ae?.htmlEl||((M=ae?.panzoomRef)===null||M===void 0?void 0:M.getWrapper());fe&&vd(fe),!H&&K&&fe&&(U=!0,bc(fe,K,()=>{Qe()})),H||U?setTimeout(()=>{Qe()},350):Qe()}function Qe(){var W,re,he,M,se;if(a===mt.Destroyed)return;a=mt.Destroyed;const ae=ee();v("destroy"),(re=(W=f("sync"))===null||W===void 0?void 0:W.getPlugins().Autoplay)===null||re===void 0||re.resume(),(M=(he=f("sync"))===null||he===void 0?void 0:he.getPlugins().Autoscroll)===null||M===void 0||M.resume(),t instanceof HTMLDialogElement&&t.close(),(se=n?.getContainer())===null||se===void 0||se.classList.remove("is-idle"),n?.destroy();for(const F of Object.values(d))F?.destroy();if(d={},t?.remove(),t=void 0,e=void 0,n=void 0,Gn.delete(c),!Gn.size&&(tc(!1),document.documentElement.classList.remove(wc),f("placeFocusBack")&&ae&&!ae.closest("[inert]")))try{ae?.focus({preventScroll:!0})}catch{}}const Ae={close:Je,destroy:Qe,getCarousel:function(){return n},getContainer:function(){return e},getId:function(){return c},getOptions:function(){return l},getPlugins:function(){return d},getSlide:function(){return Z()},getState:function(){return a},init:function(W=[],re={}){a!==mt.Init&&(Ae.destroy(),a=mt.Init),l=Qt({},Jr,re),c=f("id")||"fancybox-"+ ++rg;const he=Gn.get(c);if(he&&he.destroy(),Gn.set(c,Ae),v("init"),function(){for(const[M,se]of Object.entries(Object.assign(Object.assign({},st.Plugins),l.plugins||{})))if(M&&!d[M]&&se instanceof Function){const ae=se();ae.init(Ae),d[M]=ae}v("initPlugins")}(),function(M=[]){v("initSlides",M),h=[...M]}(W),function(){const M=f("parentEl")||document.body;if(!(M&&M instanceof HTMLElement))return;const se=y(f("mainTpl")||"");if(t=Kn(se)||void 0,!t||(e=t.querySelector(".fancybox__container"),!(e&&e instanceof HTMLElement)))return;const ae=f("mainClass");ae&&ze(e,ae);const F=f("mainStyle");if(F&&At(F))for(const[K,H]of Object.entries(F))e.style.setProperty(K,H);const G=f("theme"),J=G==="auto"?window.matchMedia("(prefers-color-scheme:light)").matches:G==="light";e.setAttribute("theme",J?"light":"dark"),t.setAttribute("id",`${c}`),t.addEventListener("keydown",K=>{K.key==="Escape"&&In(K)}),t.addEventListener("wheel",K=>{const H=K.target;let U=f("wheel",K);H.closest(".f-thumbs")&&(U="slide");const fe=U==="slide",oe=[-K.deltaX||0,-K.deltaY||0,-K.detail||0].reduce(function(Pe,Ne){return Math.abs(Ne)>Math.abs(Pe)?Ne:Pe}),me=Math.max(-1,Math.min(1,oe)),xe=Date.now();g&&xe-g<300?fe&&In(K):(g=xe,v("wheel",K,me),K.defaultPrevented||(U==="close"?Je(K):U==="slide"&&n&&!Di(H)&&(In(K),n[me>0?"prev":"next"]())))},{capture:!0,passive:!1}),t.addEventListener("cancel",K=>{Je(K)}),M.append(t),Gn.size===1&&(f("hideScrollbar")&&tc(!0),document.documentElement.classList.add(wc)),t instanceof HTMLDialogElement&&(f("modal")?t.showModal():t.show()),v("initLayout")}(),function(){if(i=t?.querySelector(".fancybox__carousel")||void 0,!i)return;i.fancybox=Ae;const M=Qt({},{Autoplay:{autoStart:!1,pauseOnHover:!1,progressbarParentEl:se=>{const ae=se.getContainer();return ae?.querySelector(".f-carousel__toolbar [data-autoplay-action]")||ae}},Fullscreen:{el:e},Toolbar:{absolute:!0,items:{counter:{tpl:'<div class="f-counter"><span data-fancybox-page></span>/<span data-fancybox-pages></span></div>'}},display:{left:["counter"],right:["toggleFull","autoplay","fullscreen","thumbs","close"]}},Video:{autoplay:!0},Thumbs:{minCount:2,Carousel:{classes:{container:"fancybox__thumbs"}}},classes:{container:"fancybox__carousel",viewport:"fancybox__viewport",slide:"fancybox__slide"},spinnerTpl:'<div class="f-spinner" data-fancybox-close></div>',dragFree:!1,slidesPerPage:1,plugins:{Sync:dd,Arrows:Up,Lazyload:fd,Zoomable:Xp,Html:Jp,Video:eg,Autoplay:Kp,Fullscreen:tg,Thumbs:Qp,Toolbar:pd}},f("Carousel")||{},{slides:h,enabled:!0,initialPage:f("startIndex")||0,l10n:f("l10n")});n=Qs(i,M),v("initCarousel",n),n.on("*",(se,ae,...F)=>{v(`Carousel.${ae}`,se,...F)}),n.on("attachSlideEl",S),n.on("detachSlideEl",w),n.on("contentReady",E),n.on("ready",z),n.on("change",x),n.on("settle",V),n.on("thumbs:ready",B),n.on("thumbs:destroy",B),n.init()}(),t&&e){if(f("closeExisting"))for(const[M,se]of Gn.entries())M!==c&&se.close();f("fadeEffect")?(setTimeout(()=>{b()},500),ze(e,"is-revealing")):b(),e.classList.add("is-ready"),a=mt.Ready,v("ready")}},isCurrentSlide:function(W){const re=Z();return!(!W||!re)&&re.index===W.index},isTopMost:function(){return _()},off:function(W,re){return m.has(W)&&m.set(W,m.get(W).filter(he=>he!==re)),Ae},on:function(W,re){return m.set(W,[...m.get(W)||[],re]),Ae},toggleIdle(W){(p||W===!0)&&Se(),p&&W!==!1||$e()}};return Ae};function Sc(t,e={}){var i,n,r;if(!(t&&t instanceof Element))return;let s,o,a,l,c={};for(const[f,y]of st.openers)if(f.contains(t))for(const[m,v]of y){let b;if(m){for(const S of f.querySelectorAll(m))if(S.contains(t)){b=S;break}if(!b)continue}for(const[S,w]of v){let k=null;try{k=t.closest(S)}catch{}k&&(o=f,a=b,s=k,l=S,Qt(c,w||{}))}}if(!o||!l||!s)return;const d=Qt({},Jr,e,c,{triggerEl:s});let h=[].slice.call((a||o).querySelectorAll(l));const p=s.closest(".f-carousel"),u=p?.carousel;if(u&&(!a||!p.contains(a))){const f=[];for(const y of u?.getSlides()){const m=y.el;m&&(m.matches(l)?f.push(m):f.push(...[].slice.call(m.querySelectorAll(l))))}f.length&&(h=[...f],(i=u.getPlugins().Autoplay)===null||i===void 0||i.pause(),(n=u.getPlugins().Autoscroll)===null||n===void 0||n.pause(),d.sync=u)}if(d.groupAll===!1){const f=d.groupAttr,y=f&&s?s.getAttribute(`${f}`):"";h=f&&y?h.filter(m=>m.getAttribute(`${f}`)===y):[s]}if(!h.length)return;(r=d.triggerEvent)===null||r===void 0||r.preventDefault();const g=st.getInstance();if(g){const f=g.getOptions().triggerEl;if(f&&h.indexOf(f)>-1)return}return Object.assign({},d.Carousel||{}).rtl&&(h=h.reverse()),s&&e.startIndex===void 0&&(d.startIndex=h.indexOf(s)),st.fromNodes(h,d)}const st={Plugins:{Hash:ma},version:"6.1.6",openers:new Map,bind:function(t,e,i,n){if(!Rs())return;let r=document.body,s=null,o="[data-fancybox]",a={};t instanceof Element&&(r=t),Ue(t)&&Ue(e)?(s=t,o=e):Ue(e)&&Ue(i)?(s=e,o=i):Ue(e)?o=e:Ue(t)&&(o=t),typeof e=="object"&&(a=e||{}),typeof i=="object"&&(a=i||{}),typeof n=="object"&&(a=n||{}),function(l,c,d,h={}){if(!(l&&l instanceof Element&&d))return;const p=st.openers.get(l)||new Map,u=p.get(c)||new Map;if(u.set(d,h),p.set(c,u),st.openers.set(l,p),p.size===1&&l.addEventListener("click",st.fromEvent),st.openers.size===1)for(const g of Object.values(st.Plugins)){const f=g.setup;typeof f=="function"&&f(st)}}(r,s,o,a)},close:function(t=!0,...e){if(t)for(const i of Gn.values())i.close(...e);else{const i=st.getInstance();i&&i.close(...e)}},destroy:function(){let t;for(;t=st.getInstance();)t.destroy();for(const e of st.openers.keys())e.removeEventListener("click",st.fromEvent);st.openers.clear()},fromEvent:function(t){if(t.defaultPrevented||t.button&&t.button!==0||t.ctrlKey||t.metaKey||t.shiftKey)return;let e=t.composedPath()[0];const i={triggerEvent:t};if(e.closest(".fancybox__container.is-hiding"))return In(t),void t.stopPropagation();const n=e.closest("[data-fancybox-delegate]")||void 0;if(n){const r=n.dataset.fancyboxDelegate||"",s=document.querySelectorAll(`[data-fancybox="${r}"]`),o=parseInt(n.dataset.fancyboxIndex||"",10)||0;e=s[o]||s[0],Qt(i,{delegateEl:n,startIndex:o})}return Sc(e,i)},fromNodes:function(t,e){e=Qt({},Jr,e||{});const i=[],n=r=>r instanceof HTMLImageElement?r:r instanceof HTMLElement?r.querySelector("img:not([aria-hidden])"):void 0;for(const r of t){const s=r.dataset||{},o=e.delegateEl&&t.indexOf(r)===e.startIndex?e.delegateEl:void 0,a=n(o)||n(r)||void 0,l=s.src||r.getAttribute("href")||r.getAttribute("currentSrc")||r.getAttribute("src")||void 0,c=s.thumb||s.thumbSrc||a?.getAttribute("currentSrc")||a?.getAttribute("src")||a?.dataset.lazySrc||void 0,d={src:l,alt:s.alt||a?.getAttribute("alt")||void 0,thumbSrc:c,thumbEl:a,triggerEl:r,delegateEl:o};for(const h in s){let p=s[h]+"";p=p!=="false"&&(p==="true"||p),d[h]=p}i.push(d)}return st.show(i,e)},fromSelector:function(t,e,i,n){if(!Rs())return;let r=document.body,s=null,o="[data-fancybox]",a={};t instanceof Element&&(r=t),Ue(t)&&Ue(e)?(s=t,o=e):Ue(e)&&Ue(i)?(s=e,o=i):Ue(e)?o=e:Ue(t)&&(o=t),typeof e=="object"&&(a=e||{}),typeof i=="object"&&(a=i||{}),typeof n=="object"&&(a=n||{});for(const[l,c]of st.openers)for(const[d,h]of c)for(const[p,u]of h)if(l===r&&d===s){const g=r.querySelector((d?`${d} `:"")+o);if(g&&g.matches(p))return st.fromTriggerEl(g,a)}},fromTriggerEl:Sc,getCarousel:function(){var t;return((t=st.getInstance())===null||t===void 0?void 0:t.getCarousel())||void 0},getDefaults:function(){return Jr},getInstance:function(t){if(t){const e=Gn.get(t);return e&&e.getState()!==mt.Destroyed?e:void 0}return Array.from(Gn.values()).reverse().find(e=>{if(e.getState()!==mt.Destroyed)return e})||void 0},getSlide:function(){var t;return((t=st.getInstance())===null||t===void 0?void 0:t.getSlide())||void 0},show:function(t=[],e={}){return sg().init(t,e)},unbind:function(t,e,i){if(!Rs())return;let n=document.body,r=null,s="[data-fancybox]";t instanceof Element&&(n=t),Ue(t)&&Ue(e)?(r=t,s=e):Ue(e)&&Ue(i)?(r=e,s=i):Ue(e)?s=e:Ue(t)&&(s=t),function(o,a,l){if(!(o&&o instanceof Element&&l))return;const c=st.openers.get(o)||new Map,d=c.get(a)||new Map;d&&l&&d.delete(l),d.size&&l||c.delete(a),c.size||(st.openers.delete(o),o.removeEventListener("click",st.fromEvent))}(n,r,s)}};window.mobileBreakpoint=1024;window.isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);window.isFirefox=navigator.userAgent.toLowerCase().includes("firefox");window.Swiper=_a;window.N=Bf;window.P=qf;window.A=Vf;window.EF=jf;window.EC=Wf;window.PX=Nf;window.C=Hf;Zf();Kf();eh();th();Fa.registerPlugin(je);window.gsap=Fa;window.ScrollTrigger=je;window.innerWidth>=mobileBreakpoint&&(window.lenis=new Gp({autoRaf:!0}));window.Fancybox=st;st.bind("[data-fancybox]",{Toolbar:{display:{left:[],middle:[],right:["close"]}}});const xc=document.querySelector(".fixed-button");if(xc){const e=()=>{xc.classList.toggle("is-visible",window.scrollY>120)};window.addEventListener("scroll",e,{passive:!0}),e()}const og=window.matchMedia(`(max-width: ${mobileBreakpoint-1}px)`);og.addEventListener("change",()=>{location.reload()});const xs=document.querySelector(".home-product");if(xs&&window.matchMedia("(pointer: fine)").matches){const t=xs.querySelector(".product-list"),e=xs.querySelector(".product-hover-img"),i=xs.querySelectorAll(".product-item");if(t&&e){let b=function(){const $=h?1:0,O=h?1:0;a=m(a,s,.095),l=m(l,o,.095),c=m(c,$,.12),d=m(d,O,.12),Math.abs(c)<.004&&(c=0),Math.abs(d)<.004&&(d=0),e.style.left=`${a}px`,e.style.top=`${l}px`,e.style.opacity=c,e.style.transform=`translate(-50%, -50%) scale(${d})`,v()?p=null:p=requestAnimationFrame(b)};var ag=b;const n=e.querySelector(".product-hover-img__current"),r=e.querySelector(".product-hover-img__next");i.forEach($=>{const O=$.dataset.productImage;if(O){const D=new Image;D.src=O}});let s=0,o=0,a=0,l=0,c=0,d=0,h=!1,p=null,u=!1,g=t.getBoundingClientRect();const f=()=>{g=t.getBoundingClientRect()};let y=null;window.addEventListener("resize",()=>{clearTimeout(y),y=setTimeout(f,100)},{passive:!0}),window.addEventListener("scroll",f,{passive:!0});const m=($,O,D)=>$+(O-$)*D,v=()=>{const $=h?1:0,O=h?1:0;return!u&&Math.abs(a-s)<.1&&Math.abs(l-o)<.1&&Math.abs(c-$)<.004&&Math.abs(d-O)<.004},S=()=>{p||(p=requestAnimationFrame(b))};t.addEventListener("mousemove",$=>{u=!0,s=$.clientX-g.left,o=$.clientY-g.top,S()},{passive:!0}),t.addEventListener("mouseenter",$=>{f(),u=!0,s=a=$.clientX-g.left,o=l=$.clientY-g.top,h=!0,S()}),t.addEventListener("mouseleave",()=>{u=!1,h=!1,S()});const w=400,k="cubic-bezier(0.65,0,0.35,1)";let x=!1,z=-1,V=null,E=null,B=null,L=0;const I=($,O)=>{if(O===L&&(clearTimeout(E),clearTimeout(B),E=null,B=null,n.style.transition="none",n.style.transform="translateY(0%)",n.style.zIndex="",r.style.transition="none",r.style.transform="translateY(100%)",r.style.zIndex="",n.src=$,x=!1,V)){const{src:D,dir:q}=V;V=null,R(D,q)}},R=($,O)=>{clearTimeout(E),clearTimeout(B),x=!0;const D=++L;r.src=$,n.style.zIndex="1",r.style.zIndex="2",r.style.transition="none",r.style.transform=`translateY(${O*100}%)`,requestAnimationFrame(()=>{requestAnimationFrame(()=>{r.style.transition=`transform ${w}ms ${k}`,n.style.transition=`transform ${w}ms ${k}`,r.style.transform="translateY(0%)",n.style.transform=`translateY(${O*-100}%)`,E=setTimeout(()=>I($,D),w),B=setTimeout(()=>I($,D),w+150)})})};i.forEach(($,O)=>{$.addEventListener("mouseenter",()=>{const D=$.dataset.productImage;if(!D||!n||!r||!x&&n.src.endsWith(D))return;const q=z===-1||O>z?1:-1;z=O,x?V={src:D,dir:q}:R(D,q)})})}}document.querySelector(".footer-hidden")&&document.querySelector("footer").classList.add("hidden");document.addEventListener("DOMContentLoaded",function(){const t=document.querySelector(".hero-carousel");if(t){const E=()=>{t.dataset.swiperInit!=="1"&&(t.dataset.swiperInit="1",new Swiper(t,{modules:[A,P,N,EF],slidesPerView:1,speed:800,autoHeight:!0,spaceBetween:0,loop:!0,allowTouchMove:!1,centeredSlides:!0,autoplay:{delay:7e3},effect:"fade",fadeEffect:{crossFade:!0},navigation:{nextEl:".hero-next",prevEl:".hero-prev"},lazy:{loadPrevNext:!0,loadPrevNextAmount:2},on:{init:function(){const L=this.slides[this.activeIndex].querySelector(".image-content img");L&&L.classList.add(this.realIndex%2===0?"is-zooming-in":"is-zooming-out")},slideChangeTransitionStart:function(){const L=this.slides[this.activeIndex].querySelector(".image-content img");L&&L.classList.add(this.realIndex%2===0?"is-zooming-in":"is-zooming-out")},slideChangeTransitionEnd:function(){this.slides.forEach((B,L)=>{if(L!==this.activeIndex){const I=B.querySelector(".image-content img");I&&I.classList.remove("is-zooming-in","is-zooming-out")}})}}}))};window.innerWidth>=1280&&document.querySelector(".hero-field")?window.addEventListener("preloader:done",E,{once:!0}):E()}const e=document.querySelector(".project-bg-swiper"),i=document.querySelector(".project-swiper");if(e&&i){const E=new Swiper(e,{modules:[EF],slidesPerView:1,speed:1e3,loop:!0,allowTouchMove:!1,effect:"fade",fadeEffect:{crossFade:!0}});new Swiper(i,{modules:[N,P,A],slidesPerView:1.2,speed:800,loop:!0,spaceBetween:0,navigation:{nextEl:".project-next",prevEl:".project-prev"},pagination:{el:".project-pagination",type:"progressbar"},breakpoints:{0:{slidesPerView:1,spaceBetween:30,autoHeight:!0},768:{slidesPerView:1.2}},on:{slideChange:function(){E.slideToLoop(this.realIndex)}}})}const n=document.querySelector(".home-what");if(n){const E=n.querySelector(".what-image-swiper"),B=n.querySelectorAll(".what-nav-item"),L=n.querySelector(".what-bar-fill"),I=n.querySelector(".what-bar-indicator"),R=n.querySelector(".what-counter-current"),$=B.length;if(E&&$>0){const O=q=>{if(B.forEach((X,_)=>{X.classList.toggle("is-active",_===q)}),R&&(R.textContent=q+1),L){const X=B[q];if(X){const _=X.parentElement,Z=X.getBoundingClientRect(),ee=_.getBoundingClientRect(),te=(Z.top-ee.top+Z.height/2)/ee.height*100;L.style.height=`${te}%`,L.style.top="0",I&&(I.style.top=`${te}%`)}}};O(0);const D=new Swiper(E,{modules:[EF,N,PX],slidesPerView:1,speed:700,allowTouchMove:!0,parallax:!0,navigation:{nextEl:".what-next",prevEl:".what-prev"},breakpoints:{0:{autoHeight:!0},768:{autoHeight:!1}},on:{slideChange:function(){O(this.realIndex)}}});B.forEach(q=>{q.addEventListener("click",()=>{const X=parseInt(q.dataset.whatIndex,10);isNaN(X)||D.slideTo(X)})})}}const r=document.querySelector(".home-news");if(r){const E=r.querySelector(".news-swiper"),B=r.querySelectorAll(".news-tab"),L=r.querySelector(".news-counter-current"),I=r.querySelector(".news-counter-total");if(E){let R="blog";const $=E.querySelector(".swiper-wrapper"),O=[...$.querySelectorAll(".swiper-slide")],D=()=>{E.swiper&&E.swiper.destroy(!0,!0);const q=O.filter(X=>X.dataset.filter===R);$.innerHTML="",q.forEach(X=>$.appendChild(X)),I&&(I.textContent=String(q.length).padStart(2,"0")),L&&(L.textContent="01"),new Swiper(E,{modules:[N],slidesPerView:1,spaceBetween:20,speed:700,loop:!1,navigation:{nextEl:r.querySelector(".news-next"),prevEl:r.querySelector(".news-prev")},breakpoints:{0:{slidesPerView:1,spaceBetween:30},640:{slidesPerView:1.2,spaceBetween:30},768:{slidesPerView:1.8,spaceBetween:40},1024:{slidesPerView:2.1,spaceBetween:75}},on:{slideChange:function(){L&&(L.textContent=String(this.realIndex+1).padStart(2,"0"))}}})};D(),B.forEach(q=>{q.addEventListener("click",()=>{const X=q.dataset.filter;X!==R&&(R=X,B.forEach(_=>{const Z=_===q;_.classList.toggle("is-active",Z),_.classList.toggle("bg-secondary",Z),_.classList.toggle("text-white",Z),_.classList.toggle("bg-transparent",!Z)}),D())})})}}const s=document.querySelector(".about-history");if(s){let D=function(Se){O.forEach((Te,$e)=>{const Fe=$e===Se;Te.style.opacity=Fe?"1":"0.4",Te.style.backgroundColor=Fe?"rgba(10,11,18,1)":"rgba(10,11,18,0.25)"})},q=function(){const Se=E.getBoundingClientRect().width||E.offsetWidth;if(Se===0)return;E.style.height=Se+"px";const Te=window.innerWidth,$e=Te<640?22:Te<1024?26:30,Fe=Te<640?52:Te<1024?64:75,Je=Te<640?.72:Te<1024?.88:1,et=Se/2,Qe=Se/2,Ae=Se*R;B.forEach((W,re)=>{const M=(re-$)*$e,se=M*Math.PI/180,ae=et+Ae*Math.sin(se),F=Qe-Ae*Math.cos(se),G=re===$,J=Math.abs(M)<=Fe,K=J?G?1:.35:0;W.classList.toggle("toggle",G),W.style.left=ae+"px",W.style.top=F+"px",W.style.transform=`translate(-50%, -50%) rotate(${M}deg)`,W.style.opacity=K,W.style.pointerEvents=J&&!G?"auto":"none";const H=W.querySelector(".history-year-label");H&&(H.style.transform=G?`scale(${Je})`:"scale(0.4)",H.style.opacity=J?G?"1":"0.45":"0")}),L&&(L.textContent=B[$]?.dataset?.year??"")},X=function(){q(),D(0),requestAnimationFrame(()=>{B.forEach(Se=>{Se.style.willChange="transform, opacity",Se.style.transition="left .6s ease, top .6s ease, opacity .5s ease, transform .6s ease";const Te=Se.querySelector(".history-year-label");Te&&(Te.style.transition="transform .5s ease, opacity .5s ease")})})},de=function(){ee?.classList.toggle("swiper-button-disabled",Z.isBeginning),te?.classList.toggle("swiper-button-disabled",Z.isEnd)};var y=D,m=q,v=X,b=de;const E=s.querySelector(".history-ring-wrap"),B=s.querySelectorAll(".history-year-item"),L=s.querySelector(".history-active-year-text"),I=s.querySelector(".history-desc-swiper");B.length;const R=.348;let $=0;const O=s.querySelectorAll(".history-tick-mark");typeof ResizeObserver<"u"?new ResizeObserver(Te=>{(Te[0]?.contentRect?.width??0)>0&&X()}).observe(E):requestAnimationFrame(()=>requestAnimationFrame(X));let _=!1;const Z=new Swiper(I,{modules:[EC,N],slidesPerView:1,speed:700,loop:!1,effect:"creative",breakpoints:{0:{autoHeight:!0,creativeEffect:{prev:{translate:[0,0,0],opacity:0},next:{translate:[0,0,0],opacity:0}}},1024:{autoHeight:!1,creativeEffect:{prev:{translate:[0,0,0],opacity:0},next:{translate:[0,0,0],opacity:0}}}},allowTouchMove:!1,on:{slideChangeTransitionStart:function(){_=!0,$=this.realIndex,q(),D($)},slideChangeTransitionEnd:function(){_=!1,de()}}}),ee=s.querySelector(".history-prev"),te=s.querySelector(".history-next");de(),ee?.addEventListener("click",()=>{_||Z.isBeginning||Z.slidePrev()}),te?.addEventListener("click",()=>{_||Z.isEnd||Z.slideNext()}),B.forEach((Se,Te)=>{Se.addEventListener("click",()=>{_||Te===$||Z.slideTo(Te)})});let ge;window.addEventListener("resize",()=>{clearTimeout(ge),ge=setTimeout(()=>{B.forEach(Se=>{Se.style.transition="none";const Te=Se.querySelector(".history-year-label");Te&&(Te.style.transition="none")}),q(),requestAnimationFrame(()=>{B.forEach(Se=>{Se.style.transition="left .6s ease, top .6s ease, opacity .5s ease, transform .6s ease";const Te=Se.querySelector(".history-year-label");Te&&(Te.style.transition="transform .5s ease, opacity .5s ease")})})},80)})}const o=document.querySelector(".about-team");if(o){const E=o.querySelector(".team-image-swiper"),B=o.querySelector(".team-desc-swiper"),L=o.querySelector(".team-text-swiper"),I=o.querySelector(".team-counter-current"),R=o.querySelector(".team-counter-total");if(E&&L){const $=B?new Swiper(B,{modules:[EF],slidesPerView:1,speed:700,loop:!1,allowTouchMove:!1,effect:"fade",fadeEffect:{crossFade:!0},breakpoints:{0:{autoHeight:!0},1024:{autoHeight:!1}}}):null,O=new Swiper(E,{slidesPerView:1.5,spaceBetween:12,speed:900,loop:!1,allowTouchMove:!1,breakpoints:{0:{slidesPerView:1,spaceBetween:8},1024:{slidesPerView:1.45,spaceBetween:120}}});R&&(R.textContent="/"+O.slides.length),new Swiper(L,{modules:[N],slidesPerView:1,speed:700,loop:!1,navigation:{nextEl:o.querySelector(".team-next"),prevEl:o.querySelector(".team-prev")},breakpoints:{0:{autoHeight:!0},1024:{autoHeight:!1}},on:{slideChange:function(){O.slideTo(this.realIndex),$&&$.slideTo(this.realIndex),I&&(I.textContent=this.realIndex+1)}}})}}const a=document.querySelector(".about-why");if(a){const E=a.querySelector(".why-image-swiper"),B=a.querySelector(".why-text-swiper"),L=a.querySelector(".why-counter-current"),I=a.querySelector(".why-counter-total");if(E&&B){const R=new Swiper(E,{modules:[EF],slidesPerView:1,speed:900,loop:!1,allowTouchMove:!1,effect:"fade",fadeEffect:{crossFade:!0}});I&&(I.textContent="/"+R.slides.length),new Swiper(B,{modules:[N],slidesPerView:1,speed:700,loop:!1,navigation:{nextEl:a.querySelector(".why-next"),prevEl:a.querySelector(".why-prev")},on:{slideChange:function(){R.slideTo(this.realIndex),L&&(L.textContent=this.realIndex+1)}}})}}const l=document.querySelector(".project-carousel-swiper"),c=document.querySelector(".project-text-swiper");if(l&&c){const E=new Swiper(l,{modules:[EF,A,C],effect:"fade",speed:1200,fadeEffect:{crossFade:!0},loop:!1,allowTouchMove:!1}),B=new Swiper(c,{modules:[EF,N,C],effect:"fade",speed:800,fadeEffect:{crossFade:!0},loop:!1,allowTouchMove:!1,navigation:{nextEl:".carousel-next-btn",prevEl:".carousel-prev-btn"}});B.controller.control=E,E.controller.control=B}const d=document.querySelector(".other-projects-swiper");d&&new Swiper(d,{modules:[N,P],slidesPerView:1,speed:600,spaceBetween:30,navigation:{nextEl:".other-project-next",prevEl:".other-project-prev"},pagination:{el:".other-projects-pagination",type:"progressbar"},breakpoints:{0:{slidesPerView:1,spaceBetween:20},640:{slidesPerView:2,spaceBetween:30},1024:{slidesPerView:2,spaceBetween:40},1280:{slidesPerView:2.2,spaceBetween:50}}});const h=document.querySelector(".product-principle");if(h){const E=h.querySelector(".principle-swiper"),B=h.querySelectorAll(".principle-item"),L=5e3;if(E&&B.length>0){let O=function(ee){return ee.querySelector(".principle-bar-fill")},D=function(ee){return ee.querySelector(".principle-progress")},q=function(){B.forEach(ee=>{const te=O(ee),de=D(ee);te&&(te.style.transition="none",te.style.width="0%"),de&&(de.style.transition="none",de.style.height="0%"),ee.classList.remove("is-active")})},X=function(ee){q();const te=B[ee];te&&te.classList.add("is-active")},_=function(ee){cancelAnimationFrame(I),R=null;const te=B[ee];if(!te)return;const de=O(te),ge=D(te);function Se(Te){R||(R=Te);const $e=Te-R,Fe=Math.min($e/L*100,100);if(de&&(de.style.transition="none",de.style.width=Fe+"%"),ge&&(ge.style.transition="none",ge.style.height=Fe+"%"),$e<L)I=requestAnimationFrame(Se);else{const Je=(ee+1)%B.length;Z.slideTo(Je)}}I=requestAnimationFrame(Se)};var S=O,w=D,k=q,x=X,z=_;let I=null,R=null,$=0;const Z=new Swiper(E,{modules:[EF],slidesPerView:1,speed:800,loop:!1,allowTouchMove:!1,effect:"fade",fadeEffect:{crossFade:!0},on:{init:function(){$=0,X(0),_(0)},slideChange:function(){$=this.activeIndex,X($),_($)}}});B.forEach((ee,te)=>{ee.addEventListener("click",()=>{te!==$&&Z.slideTo(te)})})}}const p=document.querySelector(".product-moduls");if(p){const E=p.querySelector(".moduls-swiper"),B=p.querySelector(".counter-current"),L=p.querySelector(".counter-total");if(E){let I=function(R){const $=p.querySelector(".moduls-next"),O=p.querySelector(".moduls-prev"),D=R.slides.length-1;O&&O.classList.toggle("swiper-button-disabled",R.isBeginning),$&&$.classList.toggle("swiper-button-disabled",R.activeIndex>=D-1)};var V=I;new Swiper(E,{modules:[N,P],slidesPerView:1,speed:800,loop:!1,spaceBetween:0,navigation:{nextEl:p.querySelector(".moduls-next"),prevEl:p.querySelector(".moduls-prev")},pagination:{el:p.querySelector(".moduls-pagination"),type:"progressbar"},breakpoints:{0:{slidesPerView:1,spaceBetween:30},1024:{slidesPerView:1.2,spaceBetween:0},1280:{slidesPerView:1.4,spaceBetween:0}},on:{init:function(){const R=this.slides.length-1;B&&(B.textContent="01"),L&&(L.textContent=`/ ${String(R).padStart(2,"0")}`),I(this)},slideChange:function(){const R=this.slides.length-1;if(this.activeIndex>=R){this.slideTo(R-1);return}B&&(B.textContent=String(this.activeIndex+1).padStart(2,"0")),I(this)}}})}}const u=document.querySelector("#structural-analysis");if(u){const E=u.querySelector(".structural-analysis-swiper-wrap");if(E){const B=E.querySelector(".analysis-swiper"),L=E.querySelectorAll(".analysis-item"),I=5e3;if(B&&L.length>0){let R=null,$=null,O=0;const D=ee=>ee.querySelector(".analysis-bar-fill"),q=()=>{L.forEach(ee=>{const te=D(ee);te&&(te.style.transition="none",te.style.width="0%"),ee.classList.remove("is-active")})},X=ee=>{q();const te=L[ee];te&&te.classList.add("is-active")},_=ee=>{cancelAnimationFrame(R),$=null;const te=L[ee];if(!te)return;const de=D(te),ge=Se=>{$||($=Se);const Te=Se-$,$e=Math.min(Te/I*100,100);if(de&&(de.style.transition="none",de.style.width=$e+"%"),Te<I)R=requestAnimationFrame(ge);else{const Fe=(ee+1)%L.length;Z.slideTo(Fe)}};R=requestAnimationFrame(ge)},Z=new Swiper(B,{modules:[EF],slidesPerView:1,speed:800,loop:!1,allowTouchMove:!1,effect:"fade",fadeEffect:{crossFade:!0},on:{init:function(){O=0,X(0),_(0)},slideChange:function(){O=this.activeIndex,X(O),_(O)}}});L.forEach((ee,te)=>{ee.addEventListener("click",()=>{te!==O&&Z.slideTo(te)})})}}}const g=document.querySelector(".product-performance");if(g){const E=g.querySelector(".performance-image-swiper"),B=g.querySelector(".performance-text-swiper"),L=g.querySelector(".counter-current"),I=g.querySelector(".performance-thumb-swiper");if(E&&B){const R=I?I.querySelectorAll(".thumb-item").length:0,$=I?new Swiper(I,{slidesPerView:2,spaceBetween:12,speed:800,loop:!0,centeredSlides:!1,allowTouchMove:!1,watchSlidesProgress:!0,breakpoints:{0:{slidesPerView:2,spaceBetween:8},768:{slidesPerView:1.8,spaceBetween:12}}}):null,O=new Swiper(E,{slidesPerView:1,modules:[EC],speed:800,loop:!0,allowTouchMove:!1,watchSlidesProgress:!0,effect:"creative",creativeEffect:{prev:{translate:["-100%",0,0]},next:{translate:["100%",0,0]}},on:{init:function(){$&&R>0&&$.slideToLoop(1%R)},slideChange:function(){$&&R>0&&$.slideToLoop((this.realIndex+1)%R)}}}),D=new Swiper(B,{modules:[N,EF],slidesPerView:1,speed:800,loop:!0,allowTouchMove:!1,watchSlidesProgress:!0,effect:"fade",fadeEffect:{crossFade:!0},navigation:{nextEl:g.querySelector(".performance-next"),prevEl:g.querySelector(".performance-prev")},on:{slideChange:function(){O.slideToLoop(this.realIndex),L&&(L.textContent=String(this.realIndex+1).padStart(2,"0"))}}});$&&$.on("click",function(){const q=parseInt(this.clickedSlide?.dataset.swiperSlideIndex??-1,10);q>=0&&this.clickedSlide?.querySelector(".thumb-item")&&D.slideToLoop(q)})}}const f=document.querySelector(".service-intro");if(f){const E=f.querySelector(".service-image-swiper"),B=f.querySelector(".service-text-swiper"),L=f.querySelector(".counter-current"),I=f.querySelector(".counter-total");if(E&&B){const R=new Swiper(E,{slidesPerView:1,speed:800,loop:!1,spaceBetween:24,allowTouchMove:!1,breakpoints:{0:{autoHeight:!0},1024:{autoHeight:!1},1280:{slidesPerView:1.5}}});I&&(I.textContent="/"+R.slides.length),new Swiper(B,{modules:[N,EF],slidesPerView:1,speed:800,loop:!1,autoHeight:!0,allowTouchMove:!1,effect:"fade",fadeEffect:{crossFade:!0},navigation:{nextEl:f.querySelector(".service-next"),prevEl:f.querySelector(".service-prev")},on:{init:function(){L&&(L.textContent="1")},slideChangeTransitionStart:function(){R.slideTo(this.activeIndex),L&&(L.textContent=this.activeIndex+1)}}})}}});(()=>{const t=document.querySelectorAll("[data-preloader-gate]");let e=!1,i=!1;const n=()=>{i||(i=!0,window.dispatchEvent(new CustomEvent("preloader:done")))},r=(o,a)=>{const l=o.className.match(new RegExp(`(?:^|\\s)${a}-(\\d+)(?:\\s|$)`));return l?Number(l[1]):0},s=o=>{t.forEach(a=>{if(a.style.opacity=o?"0":"",!o&&!e){const l=r(a,"delay"),c=r(a,"duration")||1e3;a.style.transitionDelay="0ms",a.style.transitionDuration=`${Math.max(450,Math.round(c*.6))}ms`,window.setTimeout(()=>{a.style.transitionDelay="",a.style.transitionDuration=""},Math.max(450,Math.round(c*.6))+l+80)}}),o||(e=!0)};if(s(!0),window.innerWidth>=1280){document.querySelector(".hero-field")&&(history.scrollRestoration="manual",window.scrollTo(0,0),window.lenis&&window.lenis.scrollTo(0,{immediate:!0})),window.lenis&&window.lenis.stop();const o=()=>{const a=document.querySelector(".head-logo"),l=document.querySelector("#header"),c=document.querySelector(".text-description");if(l&&l.addEventListener("transitionend",S=>{S.propertyName==="transform"&&(l.classList.remove("xl:delay-1000"),l.classList.add("delay-0"))},{once:!0}),!a||!document.querySelector(".hero-field")||window.innerWidth<1280){s(!1),n(),l&&(l.classList.remove("xl:delay-1000"),l.classList.add("delay-0")),window.lenis&&window.lenis.start();return}const d=l?[l.querySelector(".gradient"),...[...l.querySelectorAll(".header-content-wrapper > *")].filter(S=>!S.classList.contains("head-logo"))].filter(Boolean):[],h=a.getBoundingClientRect(),p=h.left+h.width/2,u=h.top+h.height/2,g=c?c.getBoundingClientRect():{left:40,top:window.innerHeight-120,width:200,height:60},f=g.left+g.width/2,y=g.top+g.height/2,m=f-p,v=y-u;a.style.position="relative",a.style.zIndex="99999",gsap.set(a,{scale:2.5,x:m+50,y:v-50}),gsap.timeline({defaults:{ease:"power4.inOut"},onComplete:()=>{gsap.set(a,{clearProps:"all"}),s(!1),n(),l&&(l.classList.remove("xl:delay-1000"),l.classList.add("delay-0")),document.querySelectorAll(".content-description").forEach(S=>{S.classList.remove("delay-0"),S.classList.remove("translate-y-0"),S.classList.add("delay-1000"),S.classList.add("translate-y-20")}),window.lenis&&window.lenis.start()}}).to(a,{duration:2,scale:1,x:0,y:0}).to(d,{duration:.6,autoAlpha:1,ease:"power2.out"},"-=0.4")};document.readyState==="complete"?o():window.addEventListener("load",o)}else{s(!1),n();const o=document.querySelector("#header");o&&(o.classList.remove("xl:delay-1000"),o.classList.add("delay-0"))}})();const Ec=document.querySelectorAll(".text-animate");Ec.length>0&&window.innerWidth>=1280&&Ec.forEach(t=>{gsap.fromTo(t,{backgroundSize:"0% 100%",ease:"power2.InOut",duration:3.5},{backgroundSize:"120% 100%",ease:"power2.InOut",duration:3.5,scrollTrigger:{trigger:t,start:"top 100%",end:"top 10%",scrub:!0}})});window.innerWidth>=mobileBreakpoint&&window.lenis&&document.querySelectorAll("[data-parallax-y]").forEach(t=>{const e=parseFloat(t.dataset.parallaxY)||60,i=t.closest("section")||t.parentElement;t.style.willChange="transform",window.lenis.on("scroll",()=>{const n=i.getBoundingClientRect(),r=window.innerHeight,s=(-n.top+r)/(n.height+r),o=Math.max(0,Math.min(1,s));t.style.transform=`translateY(${e-o*e*2}px)`})});document.fonts.ready.then(()=>{window.innerWidth>mobileBreakpoint&&gsap.utils.toArray(".fx-text-counter").forEach(t=>{let e=t.querySelector(".fx-child"),n=e.textContent.split(""),r=e.offsetHeight,s='<div class="digit" style="height: '+r+'px;"></div>';for(let o=0;o<=9;o++)s+='<div class="digit w-fit leading-none" style="height: '+r+'px;">'+o+"</div>";e.innerHTML="",e.style.height=r+"px",n.forEach(o=>{o=="."||o==","||o=="m"||o=="k"?e.innerHTML+='<div class="point inline-flex flex-col leading-none backface-hidden translate-y-[-15%]">'+o+"</div>":e.innerHTML+='<div data-number="'+(parseInt(o)+1)+'" class="number inline-flex flex-col backface-hidden">'+s+"</div>"}),e.querySelectorAll(".number").forEach((o,a)=>{o.querySelectorAll(".digit").forEach(l=>{l.textContent==o.dataset.number-1&&l.classList.add("active")}),gsap.to(o,{scrollTrigger:{trigger:t,start:"top-="+window.innerHeight/3+" center"},duration:2,y:-o.dataset.number*r,width:o.querySelector(".digit.active").offsetWidth,ease:"expo.out",delay:a*.1})})})});