{r.forEach(u=>{u.disconnect()}),r.splice(0,r.length)};e({observer:!1,observeParents:!1,observeSlideChildren:!1}),t("init",a),t("destroy",l)}var Yd={on(n,e,t){const i=this;if(!i.eventsListeners||i.destroyed||typeof e!="function")return i;const r=t?"unshift":"push";return n.split(" ").forEach(s=>{i.eventsListeners[s]||(i.eventsListeners[s]=[]),i.eventsListeners[s][r](e)}),i},once(n,e,t){const i=this;if(!i.eventsListeners||i.destroyed||typeof e!="function")return i;function r(...s){i.off(n,r),r.__emitterProxy&&delete r.__emitterProxy,e.apply(i,s)}return r.__emitterProxy=e,i.on(n,r,t)},onAny(n,e){const t=this;if(!t.eventsListeners||t.destroyed||typeof n!="function")return t;const i=e?"unshift":"push";return t.eventsAnyListeners.indexOf(n)<0&&t.eventsAnyListeners[i](n),t},offAny(n){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsAnyListeners)return e;const t=e.eventsAnyListeners.indexOf(n);return t>=0&&e.eventsAnyListeners.splice(t,1),e},off(n,e){const t=this;return!t.eventsListeners||t.destroyed||!t.eventsListeners||n.split(" ").forEach(i=>{typeof e=="undefined"?t.eventsListeners[i]=[]:t.eventsListeners[i]&&t.eventsListeners[i].forEach((r,s)=>{(r===e||r.__emitterProxy&&r.__emitterProxy===e)&&t.eventsListeners[i].splice(s,1)})}),t},emit(...n){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsListeners)return e;let t,i,r;return typeof n[0]=="string"||Array.isArray(n[0])?(t=n[0],i=n.slice(1,n.length),r=e):(t=n[0].events,i=n[0].data,r=n[0].context||e),i.unshift(r),(Array.isArray(t)?t:t.split(" ")).forEach(o=>{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach(a=>{a.apply(r,[o,...i])}),e.eventsListeners&&e.eventsListeners[o]&&e.eventsListeners[o].forEach(a=>{a.apply(r,i)})}),e}};function Gd(){const n=this;let e,t;const i=n.$el;typeof n.params.width!="undefined"&&n.params.width!==null?e=n.params.width:e=i[0].clientWidth,typeof n.params.height!="undefined"&&n.params.height!==null?t=n.params.height:t=i[0].clientHeight,!(e===0&&n.isHorizontal()||t===0&&n.isVertical())&&(e=e-parseInt(i.css("padding-left")||0,10)-parseInt(i.css("padding-right")||0,10),t=t-parseInt(i.css("padding-top")||0,10)-parseInt(i.css("padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(t)&&(t=0),Object.assign(n,{width:e,height:t,size:n.isHorizontal()?e:t}))}function Wd(){const n=this;function e(x){return n.isHorizontal()?x:{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"}[x]}function t(x,k){return parseFloat(x.getPropertyValue(e(k))||0)}const i=n.params,{$wrapperEl:r,size:s,rtlTranslate:o,wrongRTL:a}=n,l=n.virtual&&i.virtual.enabled,u=l?n.virtual.slides.length:n.slides.length,c=r.children(`.${n.params.slideClass}`),p=l?n.virtual.slides.length:c.length;let f=[];const h=[],m=[];let d=i.slidesOffsetBefore;typeof d=="function"&&(d=i.slidesOffsetBefore.call(n));let g=i.slidesOffsetAfter;typeof g=="function"&&(g=i.slidesOffsetAfter.call(n));const _=n.snapGrid.length,v=n.slidesGrid.length;let D=i.spaceBetween,y=-d,b=0,E=0;if(typeof s=="undefined")return;typeof D=="string"&&D.indexOf("%")>=0&&(D=parseFloat(D.replace("%",""))/100*s),n.virtualSize=-D,o?c.css({marginLeft:"",marginBottom:"",marginTop:""}):c.css({marginRight:"",marginBottom:"",marginTop:""}),i.centeredSlides&&i.cssMode&&(ts(n.wrapperEl,"--swiper-centered-offset-before",""),ts(n.wrapperEl,"--swiper-centered-offset-after",""));const C=i.grid&&i.grid.rows>1&&n.grid;C&&n.grid.initSlides(p);let T;const F=i.slidesPerView==="auto"&&i.breakpoints&&Object.keys(i.breakpoints).filter(x=>typeof i.breakpoints[x].slidesPerView!="undefined").length>0;for(let x=0;x1&&f.push(n.virtualSize-s)}if(f.length===0&&(f=[0]),i.spaceBetween!==0){const x=n.isHorizontal()&&o?"marginLeft":e("marginRight");c.filter((k,P)=>i.cssMode?P!==c.length-1:!0).css({[x]:`${D}px`})}if(i.centeredSlides&&i.centeredSlidesBounds){let x=0;m.forEach(P=>{x+=P+(i.spaceBetween?i.spaceBetween:0)}),x-=i.spaceBetween;const k=x-s;f=f.map(P=>P<0?-d:P>k?k+g:P)}if(i.centerInsufficientSlides){let x=0;if(m.forEach(k=>{x+=k+(i.spaceBetween?i.spaceBetween:0)}),x-=i.spaceBetween,x{f[N]=P-k}),h.forEach((P,N)=>{h[N]=P+k})}}if(Object.assign(n,{slides:c,snapGrid:f,slidesGrid:h,slidesSizesGrid:m}),i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){ts(n.wrapperEl,"--swiper-centered-offset-before",`${-f[0]}px`),ts(n.wrapperEl,"--swiper-centered-offset-after",`${n.size/2-m[m.length-1]/2}px`);const x=-n.snapGrid[0],k=-n.slidesGrid[0];n.snapGrid=n.snapGrid.map(P=>P+x),n.slidesGrid=n.slidesGrid.map(P=>P+k)}if(p!==u&&n.emit("slidesLengthChange"),f.length!==_&&(n.params.watchOverflow&&n.checkOverflow(),n.emit("snapGridLengthChange")),h.length!==v&&n.emit("slidesGridLengthChange"),i.watchSlidesProgress&&n.updateSlidesOffset(),!l&&!i.cssMode&&(i.effect==="slide"||i.effect==="fade")){const x=`${i.containerModifierClass}backface-hidden`,k=n.$el.hasClass(x);p<=i.maxBackfaceHiddenSlides?k||n.$el.addClass(x):k&&n.$el.removeClass(x)}}function qd(n){const e=this,t=[],i=e.virtual&&e.params.virtual.enabled;let r=0,s;typeof n=="number"?e.setTransition(n):n===!0&&e.setTransition(e.params.speed);const o=a=>i?e.slides.filter(l=>parseInt(l.getAttribute("data-swiper-slide-index"),10)===a)[0]:e.slides.eq(a)[0];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||B([])).each(a=>{t.push(a)});else for(s=0;se.slides.length&&!i)break;t.push(o(a))}else t.push(o(e.activeIndex));for(s=0;sr?a:r}(r||r===0)&&e.$wrapperEl.css("height",`${r}px`)}function Vd(){const n=this,e=n.slides;for(let t=0;t=0&&f1&&h<=e.size||f<=0&&h>=e.size)&&(e.visibleSlides.push(l),e.visibleSlidesIndexes.push(a),i.eq(a).addClass(t.slideVisibleClass)),l.progress=r?-c:c,l.originalProgress=r?-p:p}e.visibleSlides=B(e.visibleSlides)}function Xd(n){const e=this;if(typeof n=="undefined"){const u=e.rtlTranslate?-1:1;n=e&&e.translate&&e.translate*u||0}const t=e.params,i=e.maxTranslate()-e.minTranslate();let{progress:r,isBeginning:s,isEnd:o}=e;const a=s,l=o;i===0?(r=0,s=!0,o=!0):(r=(n-e.minTranslate())/i,s=r<=0,o=r>=1),Object.assign(e,{progress:r,isBeginning:s,isEnd:o}),(t.watchSlidesProgress||t.centeredSlides&&t.autoHeight)&&e.updateSlidesProgress(n),s&&!a&&e.emit("reachBeginning toEdge"),o&&!l&&e.emit("reachEnd toEdge"),(a&&!s||l&&!o)&&e.emit("fromEdge"),e.emit("progress",r)}function jd(){const n=this,{slides:e,params:t,$wrapperEl:i,activeIndex:r,realIndex:s}=n,o=n.virtual&&t.virtual.enabled;e.removeClass(`${t.slideActiveClass} ${t.slideNextClass} ${t.slidePrevClass} ${t.slideDuplicateActiveClass} ${t.slideDuplicateNextClass} ${t.slideDuplicatePrevClass}`);let a;o?a=n.$wrapperEl.find(`.${t.slideClass}[data-swiper-slide-index="${r}"]`):a=e.eq(r),a.addClass(t.slideActiveClass),t.loop&&(a.hasClass(t.slideDuplicateClass)?i.children(`.${t.slideClass}:not(.${t.slideDuplicateClass})[data-swiper-slide-index="${s}"]`).addClass(t.slideDuplicateActiveClass):i.children(`.${t.slideClass}.${t.slideDuplicateClass}[data-swiper-slide-index="${s}"]`).addClass(t.slideDuplicateActiveClass));let l=a.nextAll(`.${t.slideClass}`).eq(0).addClass(t.slideNextClass);t.loop&&l.length===0&&(l=e.eq(0),l.addClass(t.slideNextClass));let u=a.prevAll(`.${t.slideClass}`).eq(0).addClass(t.slidePrevClass);t.loop&&u.length===0&&(u=e.eq(-1),u.addClass(t.slidePrevClass)),t.loop&&(l.hasClass(t.slideDuplicateClass)?i.children(`.${t.slideClass}:not(.${t.slideDuplicateClass})[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(t.slideDuplicateNextClass):i.children(`.${t.slideClass}.${t.slideDuplicateClass}[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(t.slideDuplicateNextClass),u.hasClass(t.slideDuplicateClass)?i.children(`.${t.slideClass}:not(.${t.slideDuplicateClass})[data-swiper-slide-index="${u.attr("data-swiper-slide-index")}"]`).addClass(t.slideDuplicatePrevClass):i.children(`.${t.slideClass}.${t.slideDuplicateClass}[data-swiper-slide-index="${u.attr("data-swiper-slide-index")}"]`).addClass(t.slideDuplicatePrevClass)),n.emitSlidesClasses()}function Ud(n){const e=this,t=e.rtlTranslate?e.translate:-e.translate,{slidesGrid:i,snapGrid:r,params:s,activeIndex:o,realIndex:a,snapIndex:l}=e;let u=n,c;if(typeof u=="undefined"){for(let f=0;f=i[f]&&t=i[f]&&t=i[f]&&(u=f);s.normalizeSlideIndex&&(u<0||typeof u=="undefined")&&(u=0)}if(r.indexOf(t)>=0)c=r.indexOf(t);else{const f=Math.min(s.slidesPerGroupSkip,u);c=f+Math.floor((u-f)/s.slidesPerGroup)}if(c>=r.length&&(c=r.length-1),u===o){c!==l&&(e.snapIndex=c,e.emit("snapIndexChange"));return}const p=parseInt(e.slides.eq(u).attr("data-swiper-slide-index")||u,10);Object.assign(e,{snapIndex:c,realIndex:p,previousIndex:o,activeIndex:u}),e.emit("activeIndexChange"),e.emit("snapIndexChange"),a!==p&&e.emit("realIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&e.emit("slideChange")}function Qd(n){const e=this,t=e.params,i=B(n).closest(`.${t.slideClass}`)[0];let r=!1,s;if(i){for(let o=0;ol?c=l:i&&ns?o="next":r=l.length&&(g=l.length-1);const _=-l[g];if(a.normalizeSlideIndex)for(let D=0;D=b&&y=b&&y=b&&(o=D)}if(s.initialized&&o!==p&&(!s.allowSlideNext&&_s.translate&&_>s.maxTranslate()&&(p||0)!==o))return!1;o!==(c||0)&&t&&s.emit("beforeSlideChangeStart"),s.updateProgress(_);let v;if(o>p?v="next":o{s.wrapperEl.style.scrollSnapType="",s._swiperImmediateVirtual=!1})}else{if(!s.support.smoothScroll)return Gl({swiper:s,targetPosition:y,side:D?"left":"top"}),!0;h.scrollTo({[D?"left":"top"]:y,behavior:"smooth"})}return!0}return s.setTransition(e),s.setTranslate(_),s.updateActiveIndex(o),s.updateSlidesClasses(),s.emit("beforeTransitionStart",e,i),s.transitionStart(t,v),e===0?s.transitionEnd(t,v):s.animating||(s.animating=!0,s.onSlideToWrapperTransitionEnd||(s.onSlideToWrapperTransitionEnd=function(y){!s||s.destroyed||y.target===this&&(s.$wrapperEl[0].removeEventListener("transitionend",s.onSlideToWrapperTransitionEnd),s.$wrapperEl[0].removeEventListener("webkitTransitionEnd",s.onSlideToWrapperTransitionEnd),s.onSlideToWrapperTransitionEnd=null,delete s.onSlideToWrapperTransitionEnd,s.transitionEnd(t,v))}),s.$wrapperEl[0].addEventListener("transitionend",s.onSlideToWrapperTransitionEnd),s.$wrapperEl[0].addEventListener("webkitTransitionEnd",s.onSlideToWrapperTransitionEnd)),!0}function cf(n=0,e=this.params.speed,t=!0,i){if(typeof n=="string"){const o=parseInt(n,10);if(!isFinite(o))throw new Error(`The passed-in 'index' (string) couldn't be converted to 'number'. [${n}] given.`);n=o}const r=this;let s=n;return r.params.loop&&(s+=r.loopedSlides),r.slideTo(s,e,t,i)}function df(n=this.params.speed,e=!0,t){const i=this,{animating:r,enabled:s,params:o}=i;if(!s)return i;let a=o.slidesPerGroup;o.slidesPerView==="auto"&&o.slidesPerGroup===1&&o.slidesPerGroupAuto&&(a=Math.max(i.slidesPerViewDynamic("current",!0),1));const l=i.activeIndexp(g));let m=o[h.indexOf(f)-1];if(typeof m=="undefined"&&r.cssMode){let g;o.forEach((_,v)=>{f>=_&&(g=v)}),typeof g!="undefined"&&(m=o[g>0?g-1:g])}let d=0;if(typeof m!="undefined"&&(d=a.indexOf(m),d<0&&(d=i.activeIndex-1),r.slidesPerView==="auto"&&r.slidesPerGroup===1&&r.slidesPerGroupAuto&&(d=d-i.slidesPerViewDynamic("previous",!0)+1,d=Math.max(d,0))),r.rewind&&i.isBeginning){const g=i.params.virtual&&i.params.virtual.enabled&&i.virtual?i.virtual.slides.length-1:i.slides.length-1;return i.slideTo(g,n,e,t)}return i.slideTo(d,n,e,t)}function pf(n=this.params.speed,e=!0,t){const i=this;return i.slideTo(i.activeIndex,n,e,t)}function hf(n=this.params.speed,e=!0,t,i=.5){const r=this;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 u=r.snapGrid[a],c=r.snapGrid[a+1];l-u>(c-u)*i&&(s+=r.params.slidesPerGroup)}else{const u=r.snapGrid[a-1],c=r.snapGrid[a];l-u<=(c-u)*i&&(s-=r.params.slidesPerGroup)}return s=Math.max(s,0),s=Math.min(s,r.slidesGrid.length-1),r.slideTo(s,n,e,t)}function gf(){const n=this,{params:e,$wrapperEl:t}=n,i=e.slidesPerView==="auto"?n.slidesPerViewDynamic():e.slidesPerView;let r=n.clickedIndex,s;if(e.loop){if(n.animating)return;s=parseInt(B(n.clickedSlide).attr("data-swiper-slide-index"),10),e.centeredSlides?rn.slides.length-n.loopedSlides+i/2?(n.loopFix(),r=t.children(`.${e.slideClass}[data-swiper-slide-index="${s}"]:not(.${e.slideDuplicateClass})`).eq(0).index(),Jn(()=>{n.slideTo(r)})):n.slideTo(r):r>n.slides.length-i?(n.loopFix(),r=t.children(`.${e.slideClass}[data-swiper-slide-index="${s}"]:not(.${e.slideDuplicateClass})`).eq(0).index(),Jn(()=>{n.slideTo(r)})):n.slideTo(r)}else n.slideTo(r)}var mf={slideTo:uf,slideToLoop:cf,slideNext:df,slidePrev:ff,slideReset:pf,slideToClosest:hf,slideToClickedSlide:gf};function _f(){const n=this,e=Ne(),{params:t,$wrapperEl:i}=n,r=i.children().length>0?B(i.children()[0].parentNode):i;r.children(`.${t.slideClass}.${t.slideDuplicateClass}`).remove();let s=r.children(`.${t.slideClass}`);if(t.loopFillGroupWithBlank){const l=t.slidesPerGroup-s.length%t.slidesPerGroup;if(l!==t.slidesPerGroup){for(let u=0;us.length&&n.params.loopedSlidesLimit&&(n.loopedSlides=s.length);const o=[],a=[];s.each((l,u)=>{B(l).attr("data-swiper-slide-index",u)});for(let l=0;l=0;l-=1)r.prepend(B(o[l].cloneNode(!0)).addClass(t.slideDuplicateClass))}function Df(){const n=this;n.emit("beforeLoopFix");const{activeIndex:e,slides:t,loopedSlides:i,allowSlidePrev:r,allowSlideNext:s,snapGrid:o,rtlTranslate:a}=n;let l;n.allowSlidePrev=!0,n.allowSlideNext=!0;const c=-o[e]-n.getTranslate();e=t.length-i&&(l=-t.length+e+i,l+=i,n.slideTo(l,0,!1,!0)&&c!==0&&n.setTranslate((a?-n.translate:n.translate)-c)),n.allowSlidePrev=r,n.allowSlideNext=s,n.emit("loopFix")}function vf(){const n=this,{$wrapperEl:e,params:t,slides:i}=n;e.children(`.${t.slideClass}.${t.slideDuplicateClass},.${t.slideClass}.${t.slideBlankClass}`).remove(),i.removeAttr("data-swiper-slide-index")}var yf={loopCreate:_f,loopFix:Df,loopDestroy:vf};function wf(n){const e=this;if(e.support.touch||!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)return;const t=e.params.touchEventsTarget==="container"?e.el:e.wrapperEl;t.style.cursor="move",t.style.cursor=n?"grabbing":"grab"}function bf(){const n=this;n.support.touch||n.params.watchOverflow&&n.isLocked||n.params.cssMode||(n[n.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="")}var Cf={setGrabCursor:wf,unsetGrabCursor:bf};function xf(n,e=this){function t(i){if(!i||i===Ne()||i===Oe())return null;i.assignedSlot&&(i=i.assignedSlot);const r=i.closest(n);return!r&&!i.getRootNode?null:r||t(i.getRootNode().host)}return t(e)}function Ef(n){const e=this,t=Ne(),i=Oe(),r=e.touchEventsData,{params:s,touches:o,enabled:a}=e;if(!a||e.animating&&s.preventInteractionOnTransition)return;!e.animating&&s.cssMode&&s.loop&&e.loopFix();let l=n;l.originalEvent&&(l=l.originalEvent);let u=B(l.target);if(s.touchEventsTarget==="wrapper"&&!u.closest(e.wrapperEl).length||(r.isTouchEvent=l.type==="touchstart",!r.isTouchEvent&&"which"in l&&l.which===3)||!r.isTouchEvent&&"button"in l&&l.button>0||r.isTouched&&r.isMoved)return;const c=!!s.noSwipingClass&&s.noSwipingClass!=="",p=n.composedPath?n.composedPath():n.path;c&&l.target&&l.target.shadowRoot&&p&&(u=B(p[0]));const f=s.noSwipingSelector?s.noSwipingSelector:`.${s.noSwipingClass}`,h=!!(l.target&&l.target.shadowRoot);if(s.noSwiping&&(h?xf(f,u[0]):u.closest(f)[0])){e.allowClick=!0;return}if(s.swipeHandler&&!u.closest(s.swipeHandler)[0])return;o.currentX=l.type==="touchstart"?l.targetTouches[0].pageX:l.pageX,o.currentY=l.type==="touchstart"?l.targetTouches[0].pageY:l.pageY;const m=o.currentX,d=o.currentY,g=s.edgeSwipeDetection||s.iOSEdgeSwipeDetection,_=s.edgeSwipeThreshold||s.iOSEdgeSwipeThreshold;if(g&&(m<=_||m>=i.innerWidth-_))if(g==="prevent")n.preventDefault();else return;if(Object.assign(r,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),o.startX=m,o.startY=d,r.touchStartTime=rn(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,s.threshold>0&&(r.allowThresholdMove=!1),l.type!=="touchstart"){let v=!0;u.is(r.focusableElements)&&(v=!1,u[0].nodeName==="SELECT"&&(r.isTouched=!1)),t.activeElement&&B(t.activeElement).is(r.focusableElements)&&t.activeElement!==u[0]&&t.activeElement.blur();const D=v&&e.allowTouchMove&&s.touchStartPreventDefault;(s.touchStartForcePreventDefault||D)&&!u[0].isContentEditable&&l.preventDefault()}e.params.freeMode&&e.params.freeMode.enabled&&e.freeMode&&e.animating&&!s.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",l)}function Tf(n){const e=Ne(),t=this,i=t.touchEventsData,{params:r,touches:s,rtlTranslate:o,enabled:a}=t;if(!a)return;let l=n;if(l.originalEvent&&(l=l.originalEvent),!i.isTouched){i.startMoving&&i.isScrolling&&t.emit("touchMoveOpposite",l);return}if(i.isTouchEvent&&l.type!=="touchmove")return;const u=l.type==="touchmove"&&l.targetTouches&&(l.targetTouches[0]||l.changedTouches[0]),c=l.type==="touchmove"?u.pageX:l.pageX,p=l.type==="touchmove"?u.pageY:l.pageY;if(l.preventedByNestedSwiper){s.startX=c,s.startY=p;return}if(!t.allowTouchMove){B(l.target).is(i.focusableElements)||(t.allowClick=!1),i.isTouched&&(Object.assign(s,{startX:c,startY:p,currentX:c,currentY:p}),i.touchStartTime=rn());return}if(i.isTouchEvent&&r.touchReleaseOnEdges&&!r.loop){if(t.isVertical()){if(ps.startY&&t.translate>=t.minTranslate()){i.isTouched=!1,i.isMoved=!1;return}}else if(cs.startX&&t.translate>=t.minTranslate())return}if(i.isTouchEvent&&e.activeElement&&l.target===e.activeElement&&B(l.target).is(i.focusableElements)){i.isMoved=!0,t.allowClick=!1;return}if(i.allowTouchCallbacks&&t.emit("touchMove",l),l.targetTouches&&l.targetTouches.length>1)return;s.currentX=c,s.currentY=p;const f=s.currentX-s.startX,h=s.currentY-s.startY;if(t.params.threshold&&Math.sqrt(f**2+h**2)=25&&(_=Math.atan2(Math.abs(h),Math.abs(f))*180/Math.PI,i.isScrolling=t.isHorizontal()?_>r.touchAngle:90-_>r.touchAngle)}if(i.isScrolling&&t.emit("touchMoveOpposite",l),typeof i.startMoving=="undefined"&&(s.currentX!==s.startX||s.currentY!==s.startY)&&(i.startMoving=!0),i.isScrolling){i.isTouched=!1;return}if(!i.startMoving)return;t.allowClick=!1,!r.cssMode&&l.cancelable&&l.preventDefault(),r.touchMoveStopPropagation&&!r.nested&&l.stopPropagation(),i.isMoved||(r.loop&&!r.cssMode&&t.loopFix(),i.startTranslate=t.getTranslate(),t.setTransition(0),t.animating&&t.$wrapperEl.trigger("webkitTransitionEnd transitionend"),i.allowMomentumBounce=!1,r.grabCursor&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!0),t.emit("sliderFirstMove",l)),t.emit("sliderMove",l),i.isMoved=!0;let m=t.isHorizontal()?f:h;s.diff=m,m*=r.touchRatio,o&&(m=-m),t.swipeDirection=m>0?"prev":"next",i.currentTranslate=m+i.startTranslate;let d=!0,g=r.resistanceRatio;if(r.touchReleaseOnEdges&&(g=0),m>0&&i.currentTranslate>t.minTranslate()?(d=!1,r.resistance&&(i.currentTranslate=t.minTranslate()-1+(-t.minTranslate()+i.startTranslate+m)**g)):m<0&&i.currentTranslatei.startTranslate&&(i.currentTranslate=i.startTranslate),!t.allowSlidePrev&&!t.allowSlideNext&&(i.currentTranslate=i.startTranslate),r.threshold>0)if(Math.abs(m)>r.threshold||i.allowThresholdMove){if(!i.allowThresholdMove){i.allowThresholdMove=!0,s.startX=s.currentX,s.startY=s.currentY,i.currentTranslate=i.startTranslate,s.diff=t.isHorizontal()?s.currentX-s.startX:s.currentY-s.startY;return}}else{i.currentTranslate=i.startTranslate;return}!r.followFinger||r.cssMode||((r.freeMode&&r.freeMode.enabled&&t.freeMode||r.watchSlidesProgress)&&(t.updateActiveIndex(),t.updateSlidesClasses()),t.params.freeMode&&r.freeMode.enabled&&t.freeMode&&t.freeMode.onTouchMove(),t.updateProgress(i.currentTranslate),t.setTranslate(i.currentTranslate))}function Sf(n){const e=this,t=e.touchEventsData,{params:i,touches:r,rtlTranslate:s,slidesGrid:o,enabled:a}=e;if(!a)return;let l=n;if(l.originalEvent&&(l=l.originalEvent),t.allowTouchCallbacks&&e.emit("touchEnd",l),t.allowTouchCallbacks=!1,!t.isTouched){t.isMoved&&i.grabCursor&&e.setGrabCursor(!1),t.isMoved=!1,t.startMoving=!1;return}i.grabCursor&&t.isMoved&&t.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);const u=rn(),c=u-t.touchStartTime;if(e.allowClick){const v=l.path||l.composedPath&&l.composedPath();e.updateClickedSlide(v&&v[0]||l.target),e.emit("tap click",l),c<300&&u-t.lastClickTime<300&&e.emit("doubleTap doubleClick",l)}if(t.lastClickTime=rn(),Jn(()=>{e.destroyed||(e.allowClick=!0)}),!t.isTouched||!t.isMoved||!e.swipeDirection||r.diff===0||t.currentTranslate===t.startTranslate){t.isTouched=!1,t.isMoved=!1,t.startMoving=!1;return}t.isTouched=!1,t.isMoved=!1,t.startMoving=!1;let p;if(i.followFinger?p=s?e.translate:-e.translate:p=-t.currentTranslate,i.cssMode)return;if(e.params.freeMode&&i.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:p});return}let f=0,h=e.slidesSizesGrid[0];for(let v=0;v=o[v]&&p=o[v]&&(f=v,h=o[o.length-1]-o[o.length-2])}let m=null,d=null;i.rewind&&(e.isBeginning?d=e.params.virtual&&e.params.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(m=0));const g=(p-o[f])/h,_=fi.longSwipesMs){if(!i.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(g>=i.longSwipesRatio?e.slideTo(i.rewind&&e.isEnd?m:f+_):e.slideTo(f)),e.swipeDirection==="prev"&&(g>1-i.longSwipesRatio?e.slideTo(f+_):d!==null&&g<0&&Math.abs(g)>i.longSwipesRatio?e.slideTo(d):e.slideTo(f))}else{if(!i.shortSwipes){e.slideTo(e.activeIndex);return}e.navigation&&(l.target===e.navigation.nextEl||l.target===e.navigation.prevEl)?l.target===e.navigation.nextEl?e.slideTo(f+_):e.slideTo(f):(e.swipeDirection==="next"&&e.slideTo(m!==null?m:f+_),e.swipeDirection==="prev"&&e.slideTo(d!==null?d:f))}}function Vl(){const n=this,{params:e,el:t}=n;if(t&&t.offsetWidth===0)return;e.breakpoints&&n.setBreakpoint();const{allowSlideNext:i,allowSlidePrev:r,snapGrid:s}=n;n.allowSlideNext=!0,n.allowSlidePrev=!0,n.updateSize(),n.updateSlides(),n.updateSlidesClasses(),(e.slidesPerView==="auto"||e.slidesPerView>1)&&n.isEnd&&!n.isBeginning&&!n.params.centeredSlides?n.slideTo(n.slides.length-1,0,!1,!0):n.slideTo(n.activeIndex,0,!1,!0),n.autoplay&&n.autoplay.running&&n.autoplay.paused&&n.autoplay.run(),n.allowSlidePrev=r,n.allowSlideNext=i,n.params.watchOverflow&&s!==n.snapGrid&&n.checkOverflow()}function Af(n){const e=this;!e.enabled||e.allowClick||(e.params.preventClicks&&n.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(n.stopPropagation(),n.stopImmediatePropagation()))}function Ff(){const n=this,{wrapperEl:e,rtlTranslate:t,enabled:i}=n;if(!i)return;n.previousTranslate=n.translate,n.isHorizontal()?n.translate=-e.scrollLeft:n.translate=-e.scrollTop,n.translate===0&&(n.translate=0),n.updateActiveIndex(),n.updateSlidesClasses();let r;const s=n.maxTranslate()-n.minTranslate();s===0?r=0:r=(n.translate-n.minTranslate())/s,r!==n.progress&&n.updateProgress(t?-n.translate:n.translate),n.emit("setTranslate",n.translate,!1)}let Hl=!1;function kf(){}const Xl=(n,e)=>{const t=Ne(),{params:i,touchEvents:r,el:s,wrapperEl:o,device:a,support:l}=n,u=!!i.nested,c=e==="on"?"addEventListener":"removeEventListener",p=e;if(!l.touch)s[c](r.start,n.onTouchStart,!1),t[c](r.move,n.onTouchMove,u),t[c](r.end,n.onTouchEnd,!1);else{const f=r.start==="touchstart"&&l.passiveListener&&i.passiveListeners?{passive:!0,capture:!1}:!1;s[c](r.start,n.onTouchStart,f),s[c](r.move,n.onTouchMove,l.passiveListener?{passive:!1,capture:u}:u),s[c](r.end,n.onTouchEnd,f),r.cancel&&s[c](r.cancel,n.onTouchEnd,f)}(i.preventClicks||i.preventClicksPropagation)&&s[c]("click",n.onClick,!0),i.cssMode&&o[c]("scroll",n.onScroll),i.updateOnWindowResize?n[p](a.ios||a.android?"resize orientationchange observerUpdate":"resize observerUpdate",Vl,!0):n[p]("observerUpdate",Vl,!0)};function Pf(){const n=this,e=Ne(),{params:t,support:i}=n;n.onTouchStart=Ef.bind(n),n.onTouchMove=Tf.bind(n),n.onTouchEnd=Sf.bind(n),t.cssMode&&(n.onScroll=Ff.bind(n)),n.onClick=Af.bind(n),i.touch&&!Hl&&(e.addEventListener("touchstart",kf),Hl=!0),Xl(n,"on")}function Mf(){Xl(this,"off")}var Of={attachEvents:Pf,detachEvents:Mf};const jl=(n,e)=>n.grid&&e.grid&&e.grid.rows>1;function Lf(){const n=this,{activeIndex:e,initialized:t,loopedSlides:i=0,params:r,$el:s}=n,o=r.breakpoints;if(!o||o&&Object.keys(o).length===0)return;const a=n.getBreakpoint(o,n.params.breakpointsBase,n.el);if(!a||n.currentBreakpoint===a)return;const u=(a in o?o[a]:void 0)||n.originalParams,c=jl(n,r),p=jl(n,u),f=r.enabled;c&&!p?(s.removeClass(`${r.containerModifierClass}grid ${r.containerModifierClass}grid-column`),n.emitContainerClasses()):!c&&p&&(s.addClass(`${r.containerModifierClass}grid`),(u.grid.fill&&u.grid.fill==="column"||!u.grid.fill&&r.grid.fill==="column")&&s.addClass(`${r.containerModifierClass}grid-column`),n.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(g=>{const _=r[g]&&r[g].enabled,v=u[g]&&u[g].enabled;_&&!v&&n[g].disable(),!_&&v&&n[g].enable()});const h=u.direction&&u.direction!==r.direction,m=r.loop&&(u.slidesPerView!==r.slidesPerView||h);h&&t&&n.changeDirection(),Dt(n.params,u);const d=n.params.enabled;Object.assign(n,{allowTouchMove:n.params.allowTouchMove,allowSlideNext:n.params.allowSlideNext,allowSlidePrev:n.params.allowSlidePrev}),f&&!d?n.disable():!f&&d&&n.enable(),n.currentBreakpoint=a,n.emit("_beforeBreakpoint",u),m&&t&&(n.loopDestroy(),n.loopCreate(),n.updateSlides(),n.slideTo(e-i+n.loopedSlides,0,!1)),n.emit("breakpoint",u)}function Bf(n,e="window",t){if(!n||e==="container"&&!t)return;let i=!1;const r=Oe(),s=e==="window"?r.innerHeight:t.clientHeight,o=Object.keys(n).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{typeof i=="object"?Object.keys(i).forEach(r=>{i[r]&&t.push(e+r)}):typeof i=="string"&&t.push(e+i)}),t}function $f(){const n=this,{classNames:e,params:t,rtl:i,$el:r,device:s,support:o}=n,a=If(["initialized",t.direction,{"pointer-events":!o.touch},{"free-mode":n.params.freeMode&&t.freeMode.enabled},{autoheight:t.autoHeight},{rtl:i},{grid:t.grid&&t.grid.rows>1},{"grid-column":t.grid&&t.grid.rows>1&&t.grid.fill==="column"},{android:s.android},{ios:s.ios},{"css-mode":t.cssMode},{centered:t.cssMode&&t.centeredSlides},{"watch-progress":t.watchSlidesProgress}],t.containerModifierClass);e.push(...a),r.addClass([...e].join(" ")),n.emitContainerClasses()}function Rf(){const n=this,{$el:e,classNames:t}=n;e.removeClass(t.join(" ")),n.emitContainerClasses()}var Nf={addClasses:$f,removeClasses:Rf};function Yf(n,e,t,i,r,s){const o=Oe();let a;function l(){s&&s()}!B(n).parent("picture")[0]&&(!n.complete||!r)&&e?(a=new o.Image,a.onload=l,a.onerror=l,i&&(a.sizes=i),t&&(a.srcset=t),e&&(a.src=e)):l()}function Gf(){const n=this;n.imagesToLoad=n.$el.find("img");function e(){typeof n=="undefined"||n===null||!n||n.destroyed||(n.imagesLoaded!==void 0&&(n.imagesLoaded+=1),n.imagesLoaded===n.imagesToLoad.length&&(n.params.updateOnImagesReady&&n.update(),n.emit("imagesReady")))}for(let t=0;ts}else n.isLocked=n.snapGrid.length===1;t.allowSlideNext===!0&&(n.allowSlideNext=!n.isLocked),t.allowSlidePrev===!0&&(n.allowSlidePrev=!n.isLocked),e&&e!==n.isLocked&&(n.isEnd=!1),e!==n.isLocked&&n.emit(n.isLocked?"lock":"unlock")}var Vf={checkOverflow:qf},Ul={init:!0,direction:"horizontal",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,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:0,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopedSlidesLimit:!0,loopFillGroupWithBlank:!1,loopPreventsSlide:!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-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0,_emitClasses:!1};function Hf(n,e){return function(i={}){const r=Object.keys(i)[0],s=i[r];if(typeof s!="object"||s===null){Dt(e,i);return}if(["navigation","pagination","scrollbar"].indexOf(r)>=0&&n[r]===!0&&(n[r]={auto:!0}),!(r in n&&"enabled"in s)){Dt(e,i);return}n[r]===!0&&(n[r]={enabled:!0}),typeof n[r]=="object"&&!("enabled"in n[r])&&(n[r].enabled=!0),n[r]||(n[r]={enabled:!1}),Dt(e,i)}}const bo={eventsEmitter:Yd,update:Kd,translate:nf,transition:lf,slide:mf,loop:yf,grabCursor:Cf,events:Of,breakpoints:zf,checkOverflow:Vf,classes:Nf,images:Wf},Co={};class ut{constructor(...e){let t,i;if(e.length===1&&e[0].constructor&&Object.prototype.toString.call(e[0]).slice(8,-1)==="Object"?i=e[0]:[t,i]=e,i||(i={}),i=Dt({},i),t&&!i.el&&(i.el=t),i.el&&B(i.el).length>1){const a=[];return B(i.el).each(l=>{const u=Dt({},i,{el:l});a.push(new ut(u))}),a}const r=this;r.__swiper__=!0,r.support=Wl(),r.device=zd({userAgent:i.userAgent}),r.browser=$d(),r.eventsListeners={},r.eventsAnyListeners=[],r.modules=[...r.__modules__],i.modules&&Array.isArray(i.modules)&&r.modules.push(...i.modules);const s={};r.modules.forEach(a=>{a({swiper:r,extendParams:Hf(i,s),on:r.on.bind(r),once:r.once.bind(r),off:r.off.bind(r),emit:r.emit.bind(r)})});const o=Dt({},Ul,s);return r.params=Dt({},o,Co,i),r.originalParams=Dt({},r.params),r.passedParams=Dt({},i),r.params&&r.params.on&&Object.keys(r.params.on).forEach(a=>{r.on(a,r.params.on[a])}),r.params&&r.params.onAny&&r.onAny(r.params.onAny),r.$=B,Object.assign(r,{enabled:r.params.enabled,el:t,classNames:[],slides:B(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return r.params.direction==="horizontal"},isVertical(){return r.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:r.params.allowSlideNext,allowSlidePrev:r.params.allowSlidePrev,touchEvents:function(){const l=["touchstart","touchmove","touchend","touchcancel"],u=["pointerdown","pointermove","pointerup"];return r.touchEventsTouch={start:l[0],move:l[1],end:l[2],cancel:l[3]},r.touchEventsDesktop={start:u[0],move:u[1],end:u[2]},r.support.touch||!r.params.simulateTouch?r.touchEventsTouch:r.touchEventsDesktop}(),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:r.params.focusableElements,lastClickTime:rn(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:r.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),r.emit("_swiper"),r.params.init&&r.init(),r}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,t){const i=this;e=Math.min(Math.max(e,0),1);const r=i.minTranslate(),o=(i.maxTranslate()-r)*e+r;i.translateTo(o,typeof t=="undefined"?0:t),i.updateActiveIndex(),i.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=e.el.className.split(" ").filter(i=>i.indexOf("swiper")===0||i.indexOf(e.params.containerModifierClass)===0);e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){const t=this;return t.destroyed?"":e.className.split(" ").filter(i=>i.indexOf("swiper-slide")===0||i.indexOf(t.params.slideClass)===0).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=[];e.slides.each(i=>{const r=e.getSlideClasses(i);t.push({slideEl:i,classNames:r}),e.emit("_slideClass",i,r)}),e.emit("_slideClasses",t)}slidesPerViewDynamic(e="current",t=!1){const i=this,{params:r,slides:s,slidesGrid:o,slidesSizesGrid:a,size:l,activeIndex:u}=i;let c=1;if(r.centeredSlides){let p=s[u].swiperSlideSize,f;for(let h=u+1;hl&&(f=!0));for(let h=u-1;h>=0;h-=1)s[h]&&!f&&(p+=s[h].swiperSlideSize,c+=1,p>l&&(f=!0))}else if(e==="current")for(let p=u+1;p=0;p-=1)o[u]-o[p]1)&&e.isEnd&&!e.params.centeredSlides?s=e.slideTo(e.slides.length-1,0,!1,!0):s=e.slideTo(e.activeIndex,0,!1,!0),s||r()),i.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t=!0){const i=this,r=i.params.direction;return e||(e=r==="horizontal"?"vertical":"horizontal"),e===r||e!=="horizontal"&&e!=="vertical"||(i.$el.removeClass(`${i.params.containerModifierClass}${r}`).addClass(`${i.params.containerModifierClass}${e}`),i.emitContainerClasses(),i.params.direction=e,i.slides.each(s=>{e==="vertical"?s.style.width="":s.style.height=""}),i.emit("changeDirection"),t&&i.update()),i}changeLanguageDirection(e){const t=this;t.rtl&&e==="rtl"||!t.rtl&&e==="ltr"||(t.rtl=e==="rtl",t.rtlTranslate=t.params.direction==="horizontal"&&t.rtl,t.rtl?(t.$el.addClass(`${t.params.containerModifierClass}rtl`),t.el.dir="rtl"):(t.$el.removeClass(`${t.params.containerModifierClass}rtl`),t.el.dir="ltr"),t.update())}mount(e){const t=this;if(t.mounted)return!0;const i=B(e||t.params.el);if(e=i[0],!e)return!1;e.swiper=t;const r=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;let o=(()=>{if(e&&e.shadowRoot&&e.shadowRoot.querySelector){const a=B(e.shadowRoot.querySelector(r()));return a.children=l=>i.children(l),a}return i.children?i.children(r()):B(i).children(r())})();if(o.length===0&&t.params.createElements){const l=Ne().createElement("div");o=B(l),l.className=t.params.wrapperClass,i.append(l),i.children(`.${t.params.slideClass}`).each(u=>{o.append(u)})}return Object.assign(t,{$el:i,el:e,$wrapperEl:o,wrapperEl:o[0],mounted:!0,rtl:e.dir.toLowerCase()==="rtl"||i.css("direction")==="rtl",rtlTranslate:t.params.direction==="horizontal"&&(e.dir.toLowerCase()==="rtl"||i.css("direction")==="rtl"),wrongRTL:o.css("display")==="-webkit-box"}),!0}init(e){const t=this;return t.initialized||t.mount(e)===!1||(t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.params.loop&&t.loopCreate(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.preloadImages&&t.preloadImages(),t.params.loop?t.slideTo(t.params.initialSlide+t.loopedSlides,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.attachEvents(),t.initialized=!0,t.emit("init"),t.emit("afterInit")),t}destroy(e=!0,t=!0){const i=this,{params:r,$el:s,$wrapperEl:o,slides:a}=i;return typeof i.params=="undefined"||i.destroyed||(i.emit("beforeDestroy"),i.initialized=!1,i.detachEvents(),r.loop&&i.loopDestroy(),t&&(i.removeClasses(),s.removeAttr("style"),o.removeAttr("style"),a&&a.length&&a.removeClass([r.slideVisibleClass,r.slideActiveClass,r.slideNextClass,r.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),i.emit("destroy"),Object.keys(i.eventsListeners).forEach(l=>{i.off(l)}),e!==!1&&(i.$el[0].swiper=null,kd(i)),i.destroyed=!0),null}static extendDefaults(e){Dt(Co,e)}static get extendedDefaults(){return Co}static get defaults(){return Ul}static installModule(e){ut.prototype.__modules__||(ut.prototype.__modules__=[]);const t=ut.prototype.__modules__;typeof e=="function"&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach(t=>ut.installModule(t)),ut):(ut.installModule(e),ut)}}Object.keys(bo).forEach(n=>{Object.keys(bo[n]).forEach(e=>{ut.prototype[e]=bo[n][e]})}),ut.use([Rd,Nd]);function Ql(n,e,t,i){const r=Ne();return n.params.createElements&&Object.keys(i).forEach(s=>{if(!t[s]&&t.auto===!0){let o=n.$el.children(`.${i[s]}`)[0];o||(o=r.createElement("div"),o.className=i[s],n.$el.append(o)),t[s]=o,e[s]=o}}),t}function Xf({swiper:n,extendParams:e,on:t,emit:i}){e({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),n.navigation={nextEl:null,$nextEl:null,prevEl:null,$prevEl:null};function r(h){let m;return h&&(m=B(h),n.params.uniqueNavElements&&typeof h=="string"&&m.length>1&&n.$el.find(h).length===1&&(m=n.$el.find(h))),m}function s(h,m){const d=n.params.navigation;h&&h.length>0&&(h[m?"addClass":"removeClass"](d.disabledClass),h[0]&&h[0].tagName==="BUTTON"&&(h[0].disabled=m),n.params.watchOverflow&&n.enabled&&h[n.isLocked?"addClass":"removeClass"](d.lockClass))}function o(){if(n.params.loop)return;const{$nextEl:h,$prevEl:m}=n.navigation;s(m,n.isBeginning&&!n.params.rewind),s(h,n.isEnd&&!n.params.rewind)}function a(h){h.preventDefault(),!(n.isBeginning&&!n.params.loop&&!n.params.rewind)&&(n.slidePrev(),i("navigationPrev"))}function l(h){h.preventDefault(),!(n.isEnd&&!n.params.loop&&!n.params.rewind)&&(n.slideNext(),i("navigationNext"))}function u(){const h=n.params.navigation;if(n.params.navigation=Ql(n,n.originalParams.navigation,n.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(h.nextEl||h.prevEl))return;const m=r(h.nextEl),d=r(h.prevEl);m&&m.length>0&&m.on("click",l),d&&d.length>0&&d.on("click",a),Object.assign(n.navigation,{$nextEl:m,nextEl:m&&m[0],$prevEl:d,prevEl:d&&d[0]}),n.enabled||(m&&m.addClass(h.lockClass),d&&d.addClass(h.lockClass))}function c(){const{$nextEl:h,$prevEl:m}=n.navigation;h&&h.length&&(h.off("click",l),h.removeClass(n.params.navigation.disabledClass)),m&&m.length&&(m.off("click",a),m.removeClass(n.params.navigation.disabledClass))}t("init",()=>{n.params.navigation.enabled===!1?f():(u(),o())}),t("toEdge fromEdge lock unlock",()=>{o()}),t("destroy",()=>{c()}),t("enable disable",()=>{const{$nextEl:h,$prevEl:m}=n.navigation;h&&h[n.enabled?"removeClass":"addClass"](n.params.navigation.lockClass),m&&m[n.enabled?"removeClass":"addClass"](n.params.navigation.lockClass)}),t("click",(h,m)=>{const{$nextEl:d,$prevEl:g}=n.navigation,_=m.target;if(n.params.navigation.hideOnClick&&!B(_).is(g)&&!B(_).is(d)){if(n.pagination&&n.params.pagination&&n.params.pagination.clickable&&(n.pagination.el===_||n.pagination.el.contains(_)))return;let v;d?v=d.hasClass(n.params.navigation.hiddenClass):g&&(v=g.hasClass(n.params.navigation.hiddenClass)),i(v===!0?"navigationShow":"navigationHide"),d&&d.toggleClass(n.params.navigation.hiddenClass),g&&g.toggleClass(n.params.navigation.hiddenClass)}});const p=()=>{n.$el.removeClass(n.params.navigation.navigationDisabledClass),u(),o()},f=()=>{n.$el.addClass(n.params.navigation.navigationDisabledClass),c()};Object.assign(n.navigation,{enable:p,disable:f,update:o,init:u,destroy:c})}function yr(n=""){return`.${n.trim().replace(/([\.:!\/])/g,"\\$1").replace(/ /g,".")}`}function jf({swiper:n,extendParams:e,on:t,emit:i}){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:d=>d,formatFractionTotal:d=>d,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`}}),n.pagination={el:null,$el:null,bullets:[]};let s,o=0;function a(){return!n.params.pagination.el||!n.pagination.el||!n.pagination.$el||n.pagination.$el.length===0}function l(d,g){const{bulletActiveClass:_}=n.params.pagination;d[g]().addClass(`${_}-${g}`)[g]().addClass(`${_}-${g}-${g}`)}function u(){const d=n.rtl,g=n.params.pagination;if(a())return;const _=n.virtual&&n.params.virtual.enabled?n.virtual.slides.length:n.slides.length,v=n.pagination.$el;let D;const y=n.params.loop?Math.ceil((_-n.loopedSlides*2)/n.params.slidesPerGroup):n.snapGrid.length;if(n.params.loop?(D=Math.ceil((n.activeIndex-n.loopedSlides)/n.params.slidesPerGroup),D>_-1-n.loopedSlides*2&&(D-=_-n.loopedSlides*2),D>y-1&&(D-=y),D<0&&n.params.paginationType!=="bullets"&&(D=y+D)):typeof n.snapIndex!="undefined"?D=n.snapIndex:D=n.activeIndex||0,g.type==="bullets"&&n.pagination.bullets&&n.pagination.bullets.length>0){const b=n.pagination.bullets;let E,C,T;if(g.dynamicBullets&&(s=b.eq(0)[n.isHorizontal()?"outerWidth":"outerHeight"](!0),v.css(n.isHorizontal()?"width":"height",`${s*(g.dynamicMainBullets+4)}px`),g.dynamicMainBullets>1&&n.previousIndex!==void 0&&(o+=D-(n.previousIndex-n.loopedSlides||0),o>g.dynamicMainBullets-1?o=g.dynamicMainBullets-1:o<0&&(o=0)),E=Math.max(D-o,0),C=E+(Math.min(b.length,g.dynamicMainBullets)-1),T=(C+E)/2),b.removeClass(["","-next","-next-next","-prev","-prev-prev","-main"].map(F=>`${g.bulletActiveClass}${F}`).join(" ")),v.length>1)b.each(F=>{const x=B(F),k=x.index();k===D&&x.addClass(g.bulletActiveClass),g.dynamicBullets&&(k>=E&&k<=C&&x.addClass(`${g.bulletActiveClass}-main`),k===E&&l(x,"prev"),k===C&&l(x,"next"))});else{const F=b.eq(D),x=F.index();if(F.addClass(g.bulletActiveClass),g.dynamicBullets){const k=b.eq(E),P=b.eq(C);for(let N=E;N<=C;N+=1)b.eq(N).addClass(`${g.bulletActiveClass}-main`);if(n.params.loop)if(x>=b.length){for(let N=g.dynamicMainBullets;N>=0;N-=1)b.eq(b.length-N).addClass(`${g.bulletActiveClass}-main`);b.eq(b.length-g.dynamicMainBullets-1).addClass(`${g.bulletActiveClass}-prev`)}else l(k,"prev"),l(P,"next");else l(k,"prev"),l(P,"next")}}if(g.dynamicBullets){const F=Math.min(b.length,g.dynamicMainBullets+4),x=(s*F-s)/2-T*s,k=d?"right":"left";b.css(n.isHorizontal()?k:"top",`${x}px`)}}if(g.type==="fraction"&&(v.find(yr(g.currentClass)).text(g.formatFractionCurrent(D+1)),v.find(yr(g.totalClass)).text(g.formatFractionTotal(y))),g.type==="progressbar"){let b;g.progressbarOpposite?b=n.isHorizontal()?"vertical":"horizontal":b=n.isHorizontal()?"horizontal":"vertical";const E=(D+1)/y;let C=1,T=1;b==="horizontal"?C=E:T=E,v.find(yr(g.progressbarFillClass)).transform(`translate3d(0,0,0) scaleX(${C}) scaleY(${T})`).transition(n.params.speed)}g.type==="custom"&&g.renderCustom?(v.html(g.renderCustom(n,D+1,y)),i("paginationRender",v[0])):i("paginationUpdate",v[0]),n.params.watchOverflow&&n.enabled&&v[n.isLocked?"addClass":"removeClass"](g.lockClass)}function c(){const d=n.params.pagination;if(a())return;const g=n.virtual&&n.params.virtual.enabled?n.virtual.slides.length:n.slides.length,_=n.pagination.$el;let v="";if(d.type==="bullets"){let D=n.params.loop?Math.ceil((g-n.loopedSlides*2)/n.params.slidesPerGroup):n.snapGrid.length;n.params.freeMode&&n.params.freeMode.enabled&&!n.params.loop&&D>g&&(D=g);for(let y=0;y${d.bulletElement}>`;_.html(v),n.pagination.bullets=_.find(yr(d.bulletClass))}d.type==="fraction"&&(d.renderFraction?v=d.renderFraction.call(n,d.currentClass,d.totalClass):v=` / `,_.html(v)),d.type==="progressbar"&&(d.renderProgressbar?v=d.renderProgressbar.call(n,d.progressbarFillClass):v=``,_.html(v)),d.type!=="custom"&&i("paginationRender",n.pagination.$el[0])}function p(){n.params.pagination=Ql(n,n.originalParams.pagination,n.params.pagination,{el:"swiper-pagination"});const d=n.params.pagination;if(!d.el)return;let g=B(d.el);g.length!==0&&(n.params.uniqueNavElements&&typeof d.el=="string"&&g.length>1&&(g=n.$el.find(d.el),g.length>1&&(g=g.filter(_=>B(_).parents(".swiper")[0]===n.el))),d.type==="bullets"&&d.clickable&&g.addClass(d.clickableClass),g.addClass(d.modifierClass+d.type),g.addClass(n.isHorizontal()?d.horizontalClass:d.verticalClass),d.type==="bullets"&&d.dynamicBullets&&(g.addClass(`${d.modifierClass}${d.type}-dynamic`),o=0,d.dynamicMainBullets<1&&(d.dynamicMainBullets=1)),d.type==="progressbar"&&d.progressbarOpposite&&g.addClass(d.progressbarOppositeClass),d.clickable&&g.on("click",yr(d.bulletClass),function(v){v.preventDefault();let D=B(this).index()*n.params.slidesPerGroup;n.params.loop&&(D+=n.loopedSlides),n.slideTo(D)}),Object.assign(n.pagination,{$el:g,el:g[0]}),n.enabled||g.addClass(d.lockClass))}function f(){const d=n.params.pagination;if(a())return;const g=n.pagination.$el;g.removeClass(d.hiddenClass),g.removeClass(d.modifierClass+d.type),g.removeClass(n.isHorizontal()?d.horizontalClass:d.verticalClass),n.pagination.bullets&&n.pagination.bullets.removeClass&&n.pagination.bullets.removeClass(d.bulletActiveClass),d.clickable&&g.off("click",yr(d.bulletClass))}t("init",()=>{n.params.pagination.enabled===!1?m():(p(),c(),u())}),t("activeIndexChange",()=>{(n.params.loop||typeof n.snapIndex=="undefined")&&u()}),t("snapIndexChange",()=>{n.params.loop||u()}),t("slidesLengthChange",()=>{n.params.loop&&(c(),u())}),t("snapGridLengthChange",()=>{n.params.loop||(c(),u())}),t("destroy",()=>{f()}),t("enable disable",()=>{const{$el:d}=n.pagination;d&&d[n.enabled?"removeClass":"addClass"](n.params.pagination.lockClass)}),t("lock unlock",()=>{u()}),t("click",(d,g)=>{const _=g.target,{$el:v}=n.pagination;if(n.params.pagination.el&&n.params.pagination.hideOnClick&&v&&v.length>0&&!B(_).hasClass(n.params.pagination.bulletClass)){if(n.navigation&&(n.navigation.nextEl&&_===n.navigation.nextEl||n.navigation.prevEl&&_===n.navigation.prevEl))return;const D=v.hasClass(n.params.pagination.hiddenClass);i(D===!0?"paginationShow":"paginationHide"),v.toggleClass(n.params.pagination.hiddenClass)}});const h=()=>{n.$el.removeClass(n.params.pagination.paginationDisabledClass),n.pagination.$el&&n.pagination.$el.removeClass(n.params.pagination.paginationDisabledClass),p(),c(),u()},m=()=>{n.$el.addClass(n.params.pagination.paginationDisabledClass),n.pagination.$el&&n.pagination.$el.addClass(n.params.pagination.paginationDisabledClass),f()};Object.assign(n.pagination,{enable:h,disable:m,render:c,update:u,init:p,destroy:f})}function Uf({swiper:n,extendParams:e,on:t,emit:i}){let r;n.autoplay={running:!1,paused:!1},e({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});function s(){if(!n.size){n.autoplay.running=!1,n.autoplay.paused=!1;return}const d=n.slides.eq(n.activeIndex);let g=n.params.autoplay.delay;d.attr("data-swiper-autoplay")&&(g=d.attr("data-swiper-autoplay")||n.params.autoplay.delay),clearTimeout(r),r=Jn(()=>{let _;n.params.autoplay.reverseDirection?n.params.loop?(n.loopFix(),_=n.slidePrev(n.params.speed,!0,!0),i("autoplay")):n.isBeginning?n.params.autoplay.stopOnLastSlide?a():(_=n.slideTo(n.slides.length-1,n.params.speed,!0,!0),i("autoplay")):(_=n.slidePrev(n.params.speed,!0,!0),i("autoplay")):n.params.loop?(n.loopFix(),_=n.slideNext(n.params.speed,!0,!0),i("autoplay")):n.isEnd?n.params.autoplay.stopOnLastSlide?a():(_=n.slideTo(0,n.params.speed,!0,!0),i("autoplay")):(_=n.slideNext(n.params.speed,!0,!0),i("autoplay")),(n.params.cssMode&&n.autoplay.running||_===!1)&&s()},g)}function o(){return typeof r!="undefined"||n.autoplay.running?!1:(n.autoplay.running=!0,i("autoplayStart"),s(),!0)}function a(){return!n.autoplay.running||typeof r=="undefined"?!1:(r&&(clearTimeout(r),r=void 0),n.autoplay.running=!1,i("autoplayStop"),!0)}function l(d){!n.autoplay.running||n.autoplay.paused||(r&&clearTimeout(r),n.autoplay.paused=!0,d===0||!n.params.autoplay.waitForTransition?(n.autoplay.paused=!1,s()):["transitionend","webkitTransitionEnd"].forEach(g=>{n.$wrapperEl[0].addEventListener(g,c)}))}function u(){const d=Ne();d.visibilityState==="hidden"&&n.autoplay.running&&l(),d.visibilityState==="visible"&&n.autoplay.paused&&(s(),n.autoplay.paused=!1)}function c(d){!n||n.destroyed||!n.$wrapperEl||d.target===n.$wrapperEl[0]&&(["transitionend","webkitTransitionEnd"].forEach(g=>{n.$wrapperEl[0].removeEventListener(g,c)}),n.autoplay.paused=!1,n.autoplay.running?s():a())}function p(){n.params.autoplay.disableOnInteraction?a():(i("autoplayPause"),l()),["transitionend","webkitTransitionEnd"].forEach(d=>{n.$wrapperEl[0].removeEventListener(d,c)})}function f(){n.params.autoplay.disableOnInteraction||(n.autoplay.paused=!1,i("autoplayResume"),s())}function h(){n.params.autoplay.pauseOnMouseEnter&&(n.$el.on("mouseenter",p),n.$el.on("mouseleave",f))}function m(){n.$el.off("mouseenter",p),n.$el.off("mouseleave",f)}t("init",()=>{n.params.autoplay.enabled&&(o(),Ne().addEventListener("visibilitychange",u),h())}),t("beforeTransitionStart",(d,g,_)=>{n.autoplay.running&&(_||!n.params.autoplay.disableOnInteraction?n.autoplay.pause(g):a())}),t("sliderFirstMove",()=>{n.autoplay.running&&(n.params.autoplay.disableOnInteraction?a():l())}),t("touchEnd",()=>{n.params.cssMode&&n.autoplay.paused&&!n.params.autoplay.disableOnInteraction&&s()}),t("destroy",()=>{m(),n.autoplay.running&&a(),Ne().removeEventListener("visibilitychange",u)}),Object.assign(n.autoplay,{pause:l,run:s,start:o,stop:a})}function Qf(n){const{effect:e,swiper:t,on:i,setTranslate:r,setTransition:s,overwriteParams:o,perspective:a,recreateShadows:l,getEffectParams:u}=n;i("beforeInit",()=>{if(t.params.effect!==e)return;t.classNames.push(`${t.params.containerModifierClass}${e}`),a&&a()&&t.classNames.push(`${t.params.containerModifierClass}3d`);const p=o?o():{};Object.assign(t.params,p),Object.assign(t.originalParams,p)}),i("setTranslate",()=>{t.params.effect===e&&r()}),i("setTransition",(p,f)=>{t.params.effect===e&&s(f)}),i("transitionEnd",()=>{if(t.params.effect===e&&l){if(!u||!u().slideShadows)return;t.slides.each(p=>{t.$(p).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").remove()}),l()}});let c;i("virtualUpdate",()=>{t.params.effect===e&&(t.slides.length||(c=!0),requestAnimationFrame(()=>{c&&t.slides&&t.slides.length&&(r(),c=!1)}))})}function Kf(n,e){return n.transformEl?e.find(n.transformEl).css({"backface-visibility":"hidden","-webkit-backface-visibility":"hidden"}):e}function Zf({swiper:n,duration:e,transformEl:t,allSlides:i}){const{slides:r,activeIndex:s,$wrapperEl:o}=n;if(n.params.virtualTranslate&&e!==0){let a=!1,l;i?l=t?r.find(t):r:l=t?r.eq(s).find(t):r.eq(s),l.transitionEnd(()=>{if(a||!n||n.destroyed)return;a=!0,n.animating=!1;const u=["webkitTransitionEnd","transitionend"];for(let c=0;c{const{slides:s}=n,o=n.params.fadeEffect;for(let a=0;a{const{transformEl:o}=n.params.fadeEffect;(o?n.slides.find(o):n.slides).transition(s),Zf({swiper:n,duration:s,transformEl:o,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!n.params.cssMode})})}var up="";ut.use([Xf,jf,Uf,Jf]);function ep(){O.timeline().from(".home-hero__span",{opacity:0,y:"3rem",duration:1.2,stagger:.1,ease:"Quart.easeInOut"},0).from(".home-hero__text-wrapper",{opacity:0,y:"1.5rem",duration:1.2,stagger:.1,ease:"Quart.easeInOut"},.6).from([".home-hero__sub-title",".header__toggle-wrapper--hero"],{opacity:0,duration:1.2,stagger:.1,ease:"Quart.easeInOut"},.6),O.to(".home-hero__background-image",{yPercent:20,ease:"none",scrollTrigger:{trigger:".section--home-hero",start:"top top",end:"bottom top",scrub:!0}});let n=document.querySelector(".hero__toggle-button"),e=O.timeline({paused:!0,reversed:!0}).to(".hero__cl-wrapper",{height:"auto",duration:.6,ease:"Quart.easeInOut"},0).to(".hero__toggle-image",{rotate:180,duration:.6,ease:"Quart.easeInOut"},0);n.addEventListener("click",()=>{e.reversed()?e.play():e.reverse()}),O.utils.toArray(".home-formule__hover-item").forEach(a=>{let l=O.timeline({paused:!0}).to(a.querySelector(".home-formule__background"),{scaleY:1,duration:.8,ease:"Quart.easeInOut"},0).to([a.querySelector(".home-formule__hover-text--green"),a.querySelector(".home-formule__hover-text--orange")],{color:"#faf2e7",duration:.8,ease:"Quart.easeInOut"},0);a.addEventListener("mouseenter",()=>l.play()),a.addEventListener("mouseleave",()=>l.reverse())});let i=O.utils.toArray(".home-process__title");O.timeline({repeat:-1}).fromTo(i[0],{opacity:.3},{opacity:1,duration:1,stagger:1}).to(i[0],{delay:1.3,opacity:.3,duration:.4}).fromTo(i[1],{opacity:.3},{opacity:1,duration:1,stagger:1}).to(i[1],{delay:1.3,opacity:.3,duration:.4}).fromTo(i[2],{opacity:.3},{opacity:1,duration:1,stagger:1}).to(i[2],{delay:1.3,opacity:.3,duration:.4}).fromTo(i[3],{opacity:.3},{opacity:1,duration:1,stagger:1}).to(i[3],{delay:1.3,opacity:.3,duration:.4});const r=document.querySelector(".home-slider__arrow--prev"),s=document.querySelector(".home-slider__arrow--next"),o=new ut(".swiper",{slidesPerView:"auto",effect:"fade",speed:600,loop:!0});r.addEventListener("click",()=>{o.slidePrev()}),s.addEventListener("click",()=>{o.slideNext()})}function nn(){O.utils.toArray(".faq__cl-item").forEach(e=>{let t=O.timeline({paused:!0,reversed:!0}).to(e.querySelector(".faq__answer-wrapper"),{height:"auto",duration:.8,ease:"Quart.easeInOut"});e.addEventListener("click",()=>{t.reversed()?t.play():t.reverse()})})}function tp(){O.matchMedia().add("(min-width: 992px)",()=>{O.utils.toArray(".ville-cl__item").forEach(t=>{let i=O.timeline({paused:!0,reversed:!0}).to(t.querySelector(".ville-cl__discover"),{scaleY:1,duration:.6,ease:"Quart.easeInOut"},0).from(t.querySelector(".ville-cl__discover-text"),{opacity:0,yPercent:50,duration:.8,ease:"Quart.easeInOut"},0);t.addEventListener("mouseenter",()=>{i.play()}),t.addEventListener("mouseleave",()=>{i.reverse()})})})}function ip(){O.registerPlugin(X);let n=O.matchMedia();n.add("(min-width: 992px)",()=>{O.to(".ville-hero__wrapper",{y:"20vh",ease:"none",scrollTrigger:{trigger:".section--ville-creme",start:"top bottom",end:"bottom top",scrub:!0}}),O.timeline({scrollTrigger:{trigger:".ville-process__row--top",start:"top bottom",end:"bottom top",scrub:!0}}).to(".ville-process__image-wrapper--left",{y:"-4rem",ease:"none"},0).to(".ville-process__image-wrapper--right",{y:"-10rem",ease:"none"},0)}),n.add("(min-width: 768px) and (max-width: 991px)",()=>{O.to(".ville-hero__wrapper",{y:"20vh",ease:"none",scrollTrigger:{trigger:".section--ville-creme",start:"top bottom",end:"bottom top",scrub:!0}}),O.timeline({scrollTrigger:{trigger:".ville-process__row--top",start:"top bottom",end:"bottom top",scrub:!0}}).to(".ville-process__image-wrapper--left",{y:"-2rem",ease:"none"},0).to(".ville-process__image-wrapper--right",{y:"-5rem",ease:"none"},0)}),n.add("(max-width: 767px)",()=>{O.to(".ville-hero__wrapper",{y:"15vh",ease:"none",scrollTrigger:{trigger:".section--ville-creme",start:"top bottom",end:"bottom top",scrub:!0}})})}var cp="";function rp(){let n=document.querySelector(".roof-hero__image-button"),e=O.timeline({paused:!0,reversed:!0});e.fromTo(".roof-hero__slider-background",{display:"block"},{display:"none",duration:0}),n.addEventListener("click",()=>{e.reversed()?e.play():e.reverse()}),n.click(),document.querySelector(".roof-hero__slider-close").addEventListener("click",()=>{n.click()}),new ut(".swiper",{direction:"horizontal",loop:!0,duration:1200,navigation:{nextEl:".roof-slider__arrow--next",prevEl:".roof-slider__arrow--prev"}}),O.matchMedia().add("(min-width: 992px)",()=>{O.utils.toArray(".roof-cl__item").forEach(o=>{let a=O.timeline({paused:!0,reversed:!0}).to(o.querySelector(".roof-cl__discover-wrapper"),{scaleY:1,duration:.6,ease:"Quart.easeInOut"},0).from(o.querySelector(".roof-cl__discover-text"),{opacity:0,yPercent:50,duration:.8,ease:"Quart.easeInOut"},0);o.addEventListener("mouseenter",()=>{a.play()}),o.addEventListener("mouseleave",()=>{a.reverse()})})});let i=document.querySelectorAll(".roof-cl__item"),r=document.querySelectorAll(".roof-toggle__cl-item");for(let s=0;s{o.reversed()?o.play():o.reverse()}),r[s].querySelector(".roof-toggle__bg").addEventListener("click",()=>{i[s].click()}),r[s].querySelector(".roof-toggle__back").addEventListener("click",()=>{i[s].click()}),i[s].click(),i[s].click()}}function np(){O.timeline().from(".about-hero__span",{opacity:0,y:"3rem",duration:1.2,stagger:.1,ease:"Quart.easeInOut"},0).from(".home-hero__sub-title--about",{opacity:0,y:"1.5rem",duration:1.2,ease:"Quart.easeInOut"},.6),O.to(".home-hero__background-image",{yPercent:20,ease:"none",scrollTrigger:{trigger:".section--home-hero",start:"top top",end:"bottom top",scrub:!0}}),O.utils.toArray(".about-people__cl-item").forEach(t=>{let i=O.timeline({paused:!0,reversed:!0}).to(t.querySelector(".about-people__description"),{scaleY:1,duration:1,ease:"Quart.easeInOut"},0).from(t.querySelector(".about-people__description-text"),{opacity:0,duration:.4,delay:.6,ease:"Quart.easeInOut"},0).from(t.querySelector(".about-people__description-return"),{opacity:0,duration:.4,delay:.6,ease:"Quart.easeInOut"},0);t.addEventListener("click",()=>{i.reversed()?i.play():i.reverse()})}),O.matchMedia().add("(min-width: 992px)",()=>{O.utils.toArray(".about-people__cl-item").forEach(i=>{let r=O.timeline({paused:!0,reversed:!0}).to(i.querySelector(".about-people__discover-wrapper"),{scaleY:1,duration:.6,ease:"Quart.easeInOut"},0).from(i.querySelector(".about-people__discover-text"),{opacity:0,yPercent:50,duration:.8,ease:"Quart.easeInOut"},0);i.addEventListener("mouseenter",()=>{r.play()}),i.addEventListener("mouseleave",()=>{r.reverse()})})})}function sp(){let n=O.matchMedia();n.add("(min-width: 992px)",()=>{O.to(".about-founders__wrapper",{y:"20vh",ease:"none",scrollTrigger:{trigger:".section--about-people",start:"top bottom",end:"top top",scrub:!0}});let e=O.timeline({scrollTrigger:{trigger:".about-founders__wrapper",start:"top bottom",end:"bottom top",scrub:!0}});e.to(".about-founders__card--top",{y:"-10rem",ease:"none"},0),e.to(".about-founders__card--center",{y:"-15rem",ease:"none"},0),e.to(".about-founders__card--bottom",{y:"-7rem",ease:"none"},0)}),n.add("(min-width: 768px) and (max-width: 991px)",()=>{let e=O.timeline({scrollTrigger:{trigger:".about-founders__wrapper",start:"top bottom",end:"bottom top",scrub:!0}});e.to(".about-founders__card--top",{y:"-5rem",ease:"none"},0),e.to(".about-founders__card--center",{y:"-10rem",ease:"none"},0),e.to(".about-founders__card--bottom",{y:"-3rem",ease:"none"},0),O.to(".about-founders__wrapper",{y:"20vh",ease:"none",scrollTrigger:{trigger:".section--about-people",start:"top bottom",end:"top top",scrub:!0}})}),n.add("(max-width: 767px)",()=>{})}function op(){O.registerPlugin(xi);let n=new xi(".partenaire-hero__title",{type:"lines"});O.from(n.lines,{opacity:0,y:"5rem",duration:1,ease:"Quart.easeInOut",stagger:.1});let e=document.querySelectorAll(".contact-hero__image"),t=document.querySelectorAll(".cursor__item");console.log(t);for(let i=0;ir.play()),t[i].addEventListener("mouseout",()=>r.reverse())}}function ap(){O.registerPlugin(X,xi),O.registerPlugin(xi);let n=new xi(".partenaire-hero__title",{type:"lines"});O.timeline().from(n.lines,{opacity:0,y:"5rem",duration:1,ease:"Quart.easeInOut",stagger:.1},0).from(".parteniare-hero__icon",{opacity:0,duration:.6,ease:"Quart.easeInOut",stagger:.1},.4),O.to(".partenaire-hero__wrapper",{y:"40vh",ease:"none",scrollTrigger:{trigger:".partenairer-faq__wrapper",start:"top bottom",end:"top top",scrub:!0}}),O.timeline({scrollTrigger:{trigger:".partenairer-faq__wrapper",start:"top bottom",end:"top top",scrub:!0}}).to(".parteniare-hero__icon--one",{y:"-4rem",ease:"none"},0).to(".parteniare-hero__icon--two",{y:"-10rem",ease:"none"},0)}function lp(){let n=$(".transition__trigger"),e=0,t=400,i="no-transition";n.length>0&&n.click(),$("a").on("click",function(r){if($(this).prop("hostname")==window.location.host&&$(this).attr("href").indexOf("#")===-1&&!$(this).hasClass(i)&&$(this).attr("target")!=="_blank"&&n.length>0){r.preventDefault();let s=$(this).attr("href");n.click(),setTimeout(function(){window.location=s},t)}}),window.onpageshow=function(r){r.persisted&&window.location.reload()},setTimeout(()=>{$(window).on("resize",function(){setTimeout(()=>{$(".transition__wrapper").css("display","none")},50)})},e)}O.matchMedia().add("(min-width: 992px)",()=>{const n=new ru;function e(t){n.raf(t),requestAnimationFrame(e)}requestAnimationFrame(e),document.querySelectorAll(".roof-cl__item").forEach(t=>{t.addEventListener("click",function(){this.x=((this.x||0)+1)%2,this.x?n.stop():n.start()})})}),setTimeout(()=>{let n=document.querySelectorAll(".w-editor-bem-EditorMainMenu_Tab");document.querySelector(".w-editor-bem-EditSiteButton")&&document.querySelector(".w-editor-bem-EditSiteButton").addEventListener("click",()=>{lenis.destroy()}),n&&n.forEach(e=>{e.addEventListener("click",()=>{lenis.destroy()})})},2500),lp(),document.querySelector("body").classList.contains("body--home")&&(Kn(),en(),Wc(),ep(),nn()),document.querySelector("body").classList.contains("body--ville")&&(ho(),en(),tp(),ip(),nn()),document.querySelector("body").classList.contains("body--roof")&&(ho(),en(),rp()),document.querySelector("body").classList.contains("body--about")&&(Kn(),en(),np(),sp(),nn()),document.querySelector("body").classList.contains("body--contact")&&(ho(),op()),document.querySelector("body").classList.contains("body--partenaire")&&(Kn(),en(),ap(),nn()),document.querySelector("body").classList.contains("body--faq")&&(Kn(),nn())});