pkg-components
Version:
1 lines • 97.2 kB
JavaScript
import{j as ve}from"./jsx-runtime-DI8_P1Ft.js";import{r as D,R as G}from"./index-DPzuYzxM.js";function we(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function he(t,e){t===void 0&&(t={}),e===void 0&&(e={}),Object.keys(e).forEach(i=>{typeof t[i]>"u"?t[i]=e[i]:we(e[i])&&we(t[i])&&Object.keys(e[i]).length>0&&he(t[i],e[i])})}const ye={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 X(){const t=typeof document<"u"?document:{};return he(t,ye),t}const Ve={document:ye,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 N(){const t=typeof window<"u"?window:{};return he(t,Ve),t}function Re(t){return t===void 0&&(t=""),t.trim().split(" ").filter(e=>!!e.trim())}function Fe(t){const e=t;Object.keys(e).forEach(i=>{try{e[i]=null}catch{}try{delete e[i]}catch{}})}function ue(t,e){return e===void 0&&(e=0),setTimeout(t,e)}function te(){return Date.now()}function He(t){const e=N();let i;return e.getComputedStyle&&(i=e.getComputedStyle(t,null)),!i&&t.currentStyle&&(i=t.currentStyle),i||(i=t.style),i}function je(t,e){e===void 0&&(e="x");const i=N();let s,r,n;const l=He(t);return i.WebKitCSSMatrix?(r=l.transform||l.webkitTransform,r.split(",").length>6&&(r=r.split(", ").map(o=>o.replace(",",".")).join(", ")),n=new i.WebKitCSSMatrix(r==="none"?"":r)):(n=l.MozTransform||l.OTransform||l.MsTransform||l.msTransform||l.transform||l.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),s=n.toString().split(",")),e==="x"&&(i.WebKitCSSMatrix?r=n.m41:s.length===16?r=parseFloat(s[12]):r=parseFloat(s[4])),e==="y"&&(i.WebKitCSSMatrix?r=n.m42:s.length===16?r=parseFloat(s[13]):r=parseFloat(s[5])),r||0}function J(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function We(t){return typeof window<"u"&&typeof window.HTMLElement<"u"?t instanceof HTMLElement:t&&(t.nodeType===1||t.nodeType===11)}function k(){const t=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"];for(let i=1;i<arguments.length;i+=1){const s=i<0||arguments.length<=i?void 0:arguments[i];if(s!=null&&!We(s)){const r=Object.keys(Object(s)).filter(n=>e.indexOf(n)<0);for(let n=0,l=r.length;n<l;n+=1){const o=r[n],a=Object.getOwnPropertyDescriptor(s,o);a!==void 0&&a.enumerable&&(J(t[o])&&J(s[o])?s[o].__swiper__?t[o]=s[o]:k(t[o],s[o]):!J(t[o])&&J(s[o])?(t[o]={},s[o].__swiper__?t[o]=s[o]:k(t[o],s[o])):t[o]=s[o])}}}return t}function Q(t,e,i){t.style.setProperty(e,i)}function Ce(t){let{swiper:e,targetPosition:i,side:s}=t;const r=N(),n=-e.translate;let l=null,o;const a=e.params.speed;e.wrapperEl.style.scrollSnapType="none",r.cancelAnimationFrame(e.cssModeFrameID);const u=i>n?"next":"prev",d=(h,v)=>u==="next"&&h>=v||u==="prev"&&h<=v,p=()=>{o=new Date().getTime(),l===null&&(l=o);const h=Math.max(Math.min((o-l)/a,1),0),v=.5-Math.cos(h*Math.PI)/2;let b=n+v*(i-n);if(d(b,i)&&(b=i),e.wrapperEl.scrollTo({[s]:b}),d(b,i)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[s]:b})}),r.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=r.requestAnimationFrame(p)};p()}function V(t,e){return e===void 0&&(e=""),[...t.children].filter(i=>i.matches(e))}function ie(t){try{console.warn(t);return}catch{}}function K(t,e){e===void 0&&(e=[]);const i=document.createElement(t);return i.classList.add(...Array.isArray(e)?e:Re(e)),i}function qe(t,e){const i=[];for(;t.previousElementSibling;){const s=t.previousElementSibling;e?s.matches(e)&&i.push(s):i.push(s),t=s}return i}function Ye(t,e){const i=[];for(;t.nextElementSibling;){const s=t.nextElementSibling;e?s.matches(e)&&i.push(s):i.push(s),t=s}return i}function j(t,e){return N().getComputedStyle(t,null).getPropertyValue(e)}function Z(t){let e=t,i;if(e){for(i=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(i+=1);return i}}function Pe(t,e){const i=[];let s=t.parentElement;for(;s;)e?s.matches(e)&&i.push(s):i.push(s),s=s.parentElement;return i}function pe(t,e,i){const s=N();return i?t[e==="width"?"offsetWidth":"offsetHeight"]+parseFloat(s.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-right":"margin-top"))+parseFloat(s.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-left":"margin-bottom")):t.offsetWidth}let ae;function Xe(){const t=N(),e=X();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch)}}function Me(){return ae||(ae=Xe()),ae}let le;function Ue(t){let{userAgent:e}=t===void 0?{}:t;const i=Me(),s=N(),r=s.navigator.platform,n=e||s.navigator.userAgent,l={ios:!1,android:!1},o=s.screen.width,a=s.screen.height,u=n.match(/(Android);?[\s\/]+([\d.]+)?/);let d=n.match(/(iPad).*OS\s([\d_]+)/);const p=n.match(/(iPod)(.*OS\s([\d_]+))?/),h=!d&&n.match(/(iPhone\sOS|iOS)\s([\d_]+)/),v=r==="Win32";let b=r==="MacIntel";const S=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!d&&b&&i.touch&&S.indexOf(`${o}x${a}`)>=0&&(d=n.match(/(Version)\/([\d.]+)/),d||(d=[0,1,"13_0_0"]),b=!1),u&&!v&&(l.os="android",l.android=!0),(d||h||p)&&(l.os="ios",l.ios=!0),l}function Ke(t){return t===void 0&&(t={}),le||(le=Ue(t)),le}let oe;function Ze(){const t=N();let e=!1;function i(){const s=t.navigator.userAgent.toLowerCase();return s.indexOf("safari")>=0&&s.indexOf("chrome")<0&&s.indexOf("android")<0}if(i()){const s=String(t.navigator.userAgent);if(s.includes("Version/")){const[r,n]=s.split("Version/")[1].split(" ")[0].split(".").map(l=>Number(l));e=r<16||r===16&&n<2}}return{isSafari:e||i(),needPerspectiveFix:e,isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent)}}function Je(){return oe||(oe=Ze()),oe}function Qe(t){let{swiper:e,on:i,emit:s}=t;const r=N();let n=null,l=null;const o=()=>{!e||e.destroyed||!e.initialized||(s("beforeResize"),s("resize"))},a=()=>{!e||e.destroyed||!e.initialized||(n=new ResizeObserver(p=>{l=r.requestAnimationFrame(()=>{const{width:h,height:v}=e;let b=h,S=v;p.forEach(E=>{let{contentBoxSize:g,contentRect:c,target:f}=E;f&&f!==e.el||(b=c?c.width:(g[0]||g).inlineSize,S=c?c.height:(g[0]||g).blockSize)}),(b!==h||S!==v)&&o()})}),n.observe(e.el))},u=()=>{l&&r.cancelAnimationFrame(l),n&&n.unobserve&&e.el&&(n.unobserve(e.el),n=null)},d=()=>{!e||e.destroyed||!e.initialized||s("orientationchange")};i("init",()=>{if(e.params.resizeObserver&&typeof r.ResizeObserver<"u"){a();return}r.addEventListener("resize",o),r.addEventListener("orientationchange",d)}),i("destroy",()=>{u(),r.removeEventListener("resize",o),r.removeEventListener("orientationchange",d)})}function et(t){let{swiper:e,extendParams:i,on:s,emit:r}=t;const n=[],l=N(),o=function(d,p){p===void 0&&(p={});const h=l.MutationObserver||l.WebkitMutationObserver,v=new h(b=>{if(e.__preventObserver__)return;if(b.length===1){r("observerUpdate",b[0]);return}const S=function(){r("observerUpdate",b[0])};l.requestAnimationFrame?l.requestAnimationFrame(S):l.setTimeout(S,0)});v.observe(d,{attributes:typeof p.attributes>"u"?!0:p.attributes,childList:typeof p.childList>"u"?!0:p.childList,characterData:typeof p.characterData>"u"?!0:p.characterData}),n.push(v)},a=()=>{if(e.params.observer){if(e.params.observeParents){const d=Pe(e.hostEl);for(let p=0;p<d.length;p+=1)o(d[p])}o(e.hostEl,{childList:e.params.observeSlideChildren}),o(e.wrapperEl,{attributes:!1})}},u=()=>{n.forEach(d=>{d.disconnect()}),n.splice(0,n.length)};i({observer:!1,observeParents:!1,observeSlideChildren:!1}),s("init",a),s("destroy",u)}var tt={on(t,e,i){const s=this;if(!s.eventsListeners||s.destroyed||typeof e!="function")return s;const r=i?"unshift":"push";return t.split(" ").forEach(n=>{s.eventsListeners[n]||(s.eventsListeners[n]=[]),s.eventsListeners[n][r](e)}),s},once(t,e,i){const s=this;if(!s.eventsListeners||s.destroyed||typeof e!="function")return s;function r(){s.off(t,r),r.__emitterProxy&&delete r.__emitterProxy;for(var n=arguments.length,l=new Array(n),o=0;o<n;o++)l[o]=arguments[o];e.apply(s,l)}return r.__emitterProxy=e,s.on(t,r,i)},onAny(t,e){const i=this;if(!i.eventsListeners||i.destroyed||typeof t!="function")return i;const s=e?"unshift":"push";return i.eventsAnyListeners.indexOf(t)<0&&i.eventsAnyListeners[s](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(s=>{typeof e>"u"?i.eventsListeners[s]=[]:i.eventsListeners[s]&&i.eventsListeners[s].forEach((r,n)=>{(r===e||r.__emitterProxy&&r.__emitterProxy===e)&&i.eventsListeners[s].splice(n,1)})}),i},emit(){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let e,i,s;for(var r=arguments.length,n=new Array(r),l=0;l<r;l++)n[l]=arguments[l];return typeof n[0]=="string"||Array.isArray(n[0])?(e=n[0],i=n.slice(1,n.length),s=t):(e=n[0].events,i=n[0].data,s=n[0].context||t),i.unshift(s),(Array.isArray(e)?e:e.split(" ")).forEach(a=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(u=>{u.apply(s,[a,...i])}),t.eventsListeners&&t.eventsListeners[a]&&t.eventsListeners[a].forEach(u=>{u.apply(s,i)})}),t}};function it(){const t=this;let e,i;const s=t.el;typeof t.params.width<"u"&&t.params.width!==null?e=t.params.width:e=s.clientWidth,typeof t.params.height<"u"&&t.params.height!==null?i=t.params.height:i=s.clientHeight,!(e===0&&t.isHorizontal()||i===0&&t.isVertical())&&(e=e-parseInt(j(s,"padding-left")||0,10)-parseInt(j(s,"padding-right")||0,10),i=i-parseInt(j(s,"padding-top")||0,10)-parseInt(j(s,"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 st(){const t=this;function e(T,M){return parseFloat(T.getPropertyValue(t.getDirectionLabel(M))||0)}const i=t.params,{wrapperEl:s,slidesEl:r,size:n,rtlTranslate:l,wrongRTL:o}=t,a=t.virtual&&i.virtual.enabled,u=a?t.virtual.slides.length:t.slides.length,d=V(r,`.${t.params.slideClass}, swiper-slide`),p=a?t.virtual.slides.length:d.length;let h=[];const v=[],b=[];let S=i.slidesOffsetBefore;typeof S=="function"&&(S=i.slidesOffsetBefore.call(t));let E=i.slidesOffsetAfter;typeof E=="function"&&(E=i.slidesOffsetAfter.call(t));const g=t.snapGrid.length,c=t.slidesGrid.length;let f=i.spaceBetween,w=-S,C=0,A=0;if(typeof n>"u")return;typeof f=="string"&&f.indexOf("%")>=0?f=parseFloat(f.replace("%",""))/100*n:typeof f=="string"&&(f=parseFloat(f)),t.virtualSize=-f,d.forEach(T=>{l?T.style.marginLeft="":T.style.marginRight="",T.style.marginBottom="",T.style.marginTop=""}),i.centeredSlides&&i.cssMode&&(Q(s,"--swiper-centered-offset-before",""),Q(s,"--swiper-centered-offset-after",""));const z=i.grid&&i.grid.rows>1&&t.grid;z?t.grid.initSlides(d):t.grid&&t.grid.unsetSlides();let O;const y=i.slidesPerView==="auto"&&i.breakpoints&&Object.keys(i.breakpoints).filter(T=>typeof i.breakpoints[T].slidesPerView<"u").length>0;for(let T=0;T<p;T+=1){O=0;let M;if(d[T]&&(M=d[T]),z&&t.grid.updateSlide(T,M,d),!(d[T]&&j(M,"display")==="none")){if(i.slidesPerView==="auto"){y&&(d[T].style[t.getDirectionLabel("width")]="");const I=getComputedStyle(M),P=M.style.transform,m=M.style.webkitTransform;if(P&&(M.style.transform="none"),m&&(M.style.webkitTransform="none"),i.roundLengths)O=t.isHorizontal()?pe(M,"width",!0):pe(M,"height",!0);else{const x=e(I,"width"),L=e(I,"padding-left"),$=e(I,"padding-right"),F=e(I,"margin-left"),_=e(I,"margin-right"),B=I.getPropertyValue("box-sizing");if(B&&B==="border-box")O=x+F+_;else{const{clientWidth:q,offsetWidth:re}=M;O=x+L+$+F+_+(re-q)}}P&&(M.style.transform=P),m&&(M.style.webkitTransform=m),i.roundLengths&&(O=Math.floor(O))}else O=(n-(i.slidesPerView-1)*f)/i.slidesPerView,i.roundLengths&&(O=Math.floor(O)),d[T]&&(d[T].style[t.getDirectionLabel("width")]=`${O}px`);d[T]&&(d[T].swiperSlideSize=O),b.push(O),i.centeredSlides?(w=w+O/2+C/2+f,C===0&&T!==0&&(w=w-n/2-f),T===0&&(w=w-n/2-f),Math.abs(w)<1/1e3&&(w=0),i.roundLengths&&(w=Math.floor(w)),A%i.slidesPerGroup===0&&h.push(w),v.push(w)):(i.roundLengths&&(w=Math.floor(w)),(A-Math.min(t.params.slidesPerGroupSkip,A))%t.params.slidesPerGroup===0&&h.push(w),v.push(w),w=w+O+f),t.virtualSize+=O+f,C=O,A+=1}}if(t.virtualSize=Math.max(t.virtualSize,n)+E,l&&o&&(i.effect==="slide"||i.effect==="coverflow")&&(s.style.width=`${t.virtualSize+f}px`),i.setWrapperSize&&(s.style[t.getDirectionLabel("width")]=`${t.virtualSize+f}px`),z&&t.grid.updateWrapperSize(O,h),!i.centeredSlides){const T=[];for(let M=0;M<h.length;M+=1){let I=h[M];i.roundLengths&&(I=Math.floor(I)),h[M]<=t.virtualSize-n&&T.push(I)}h=T,Math.floor(t.virtualSize-n)-Math.floor(h[h.length-1])>1&&h.push(t.virtualSize-n)}if(a&&i.loop){const T=b[0]+f;if(i.slidesPerGroup>1){const M=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/i.slidesPerGroup),I=T*i.slidesPerGroup;for(let P=0;P<M;P+=1)h.push(h[h.length-1]+I)}for(let M=0;M<t.virtual.slidesBefore+t.virtual.slidesAfter;M+=1)i.slidesPerGroup===1&&h.push(h[h.length-1]+T),v.push(v[v.length-1]+T),t.virtualSize+=T}if(h.length===0&&(h=[0]),f!==0){const T=t.isHorizontal()&&l?"marginLeft":t.getDirectionLabel("marginRight");d.filter((M,I)=>!i.cssMode||i.loop?!0:I!==d.length-1).forEach(M=>{M.style[T]=`${f}px`})}if(i.centeredSlides&&i.centeredSlidesBounds){let T=0;b.forEach(I=>{T+=I+(f||0)}),T-=f;const M=T-n;h=h.map(I=>I<=0?-S:I>M?M+E:I)}if(i.centerInsufficientSlides){let T=0;if(b.forEach(M=>{T+=M+(f||0)}),T-=f,T<n){const M=(n-T)/2;h.forEach((I,P)=>{h[P]=I-M}),v.forEach((I,P)=>{v[P]=I+M})}}if(Object.assign(t,{slides:d,snapGrid:h,slidesGrid:v,slidesSizesGrid:b}),i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){Q(s,"--swiper-centered-offset-before",`${-h[0]}px`),Q(s,"--swiper-centered-offset-after",`${t.size/2-b[b.length-1]/2}px`);const T=-t.snapGrid[0],M=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(I=>I+T),t.slidesGrid=t.slidesGrid.map(I=>I+M)}if(p!==u&&t.emit("slidesLengthChange"),h.length!==g&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),v.length!==c&&t.emit("slidesGridLengthChange"),i.watchSlidesProgress&&t.updateSlidesOffset(),!a&&!i.cssMode&&(i.effect==="slide"||i.effect==="fade")){const T=`${i.containerModifierClass}backface-hidden`,M=t.el.classList.contains(T);p<=i.maxBackfaceHiddenSlides?M||t.el.classList.add(T):M&&t.el.classList.remove(T)}}function nt(t){const e=this,i=[],s=e.virtual&&e.params.virtual.enabled;let r=0,n;typeof t=="number"?e.setTransition(t):t===!0&&e.setTransition(e.params.speed);const l=o=>s?e.slides[e.getSlideIndexByData(o)]:e.slides[o];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach(o=>{i.push(o)});else for(n=0;n<Math.ceil(e.params.slidesPerView);n+=1){const o=e.activeIndex+n;if(o>e.slides.length&&!s)break;i.push(l(o))}else i.push(l(e.activeIndex));for(n=0;n<i.length;n+=1)if(typeof i[n]<"u"){const o=i[n].offsetHeight;r=o>r?o:r}(r||r===0)&&(e.wrapperEl.style.height=`${r}px`)}function rt(){const t=this,e=t.slides,i=t.isElement?t.isHorizontal()?t.wrapperEl.offsetLeft:t.wrapperEl.offsetTop:0;for(let s=0;s<e.length;s+=1)e[s].swiperSlideOffset=(t.isHorizontal()?e[s].offsetLeft:e[s].offsetTop)-i-t.cssOverflowAdjustment()}function at(t){t===void 0&&(t=this&&this.translate||0);const e=this,i=e.params,{slides:s,rtlTranslate:r,snapGrid:n}=e;if(s.length===0)return;typeof s[0].swiperSlideOffset>"u"&&e.updateSlidesOffset();let l=-t;r&&(l=t),s.forEach(a=>{a.classList.remove(i.slideVisibleClass,i.slideFullyVisibleClass)}),e.visibleSlidesIndexes=[],e.visibleSlides=[];let o=i.spaceBetween;typeof o=="string"&&o.indexOf("%")>=0?o=parseFloat(o.replace("%",""))/100*e.size:typeof o=="string"&&(o=parseFloat(o));for(let a=0;a<s.length;a+=1){const u=s[a];let d=u.swiperSlideOffset;i.cssMode&&i.centeredSlides&&(d-=s[0].swiperSlideOffset);const p=(l+(i.centeredSlides?e.minTranslate():0)-d)/(u.swiperSlideSize+o),h=(l-n[0]+(i.centeredSlides?e.minTranslate():0)-d)/(u.swiperSlideSize+o),v=-(l-d),b=v+e.slidesSizesGrid[a],S=v>=0&&v<=e.size-e.slidesSizesGrid[a];(v>=0&&v<e.size-1||b>1&&b<=e.size||v<=0&&b>=e.size)&&(e.visibleSlides.push(u),e.visibleSlidesIndexes.push(a),s[a].classList.add(i.slideVisibleClass)),S&&s[a].classList.add(i.slideFullyVisibleClass),u.progress=r?-p:p,u.originalProgress=r?-h:h}}function lt(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,s=e.maxTranslate()-e.minTranslate();let{progress:r,isBeginning:n,isEnd:l,progressLoop:o}=e;const a=n,u=l;if(s===0)r=0,n=!0,l=!0;else{r=(t-e.minTranslate())/s;const d=Math.abs(t-e.minTranslate())<1,p=Math.abs(t-e.maxTranslate())<1;n=d||r<=0,l=p||r>=1,d&&(r=0),p&&(r=1)}if(i.loop){const d=e.getSlideIndexByData(0),p=e.getSlideIndexByData(e.slides.length-1),h=e.slidesGrid[d],v=e.slidesGrid[p],b=e.slidesGrid[e.slidesGrid.length-1],S=Math.abs(t);S>=h?o=(S-h)/b:o=(S+b-v)/b,o>1&&(o-=1)}Object.assign(e,{progress:r,progressLoop:o,isBeginning:n,isEnd:l}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&e.updateSlidesProgress(t),n&&!a&&e.emit("reachBeginning toEdge"),l&&!u&&e.emit("reachEnd toEdge"),(a&&!n||u&&!l)&&e.emit("fromEdge"),e.emit("progress",r)}function ot(){const t=this,{slides:e,params:i,slidesEl:s,activeIndex:r}=t,n=t.virtual&&i.virtual.enabled,l=t.grid&&i.grid&&i.grid.rows>1,o=p=>V(s,`.${i.slideClass}${p}, swiper-slide${p}`)[0];e.forEach(p=>{p.classList.remove(i.slideActiveClass,i.slideNextClass,i.slidePrevClass)});let a,u,d;if(n)if(i.loop){let p=r-t.virtual.slidesBefore;p<0&&(p=t.virtual.slides.length+p),p>=t.virtual.slides.length&&(p-=t.virtual.slides.length),a=o(`[data-swiper-slide-index="${p}"]`)}else a=o(`[data-swiper-slide-index="${r}"]`);else l?(a=e.filter(p=>p.column===r)[0],d=e.filter(p=>p.column===r+1)[0],u=e.filter(p=>p.column===r-1)[0]):a=e[r];a&&(a.classList.add(i.slideActiveClass),l?(d&&d.classList.add(i.slideNextClass),u&&u.classList.add(i.slidePrevClass)):(d=Ye(a,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!d&&(d=e[0]),d&&d.classList.add(i.slideNextClass),u=qe(a,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!u===0&&(u=e[e.length-1]),u&&u.classList.add(i.slidePrevClass))),t.emitSlidesClasses()}const ee=(t,e)=>{if(!t||t.destroyed||!t.params)return;const i=()=>t.isElement?"swiper-slide":`.${t.params.slideClass}`,s=e.closest(i());if(s){let r=s.querySelector(`.${t.params.lazyPreloaderClass}`);!r&&t.isElement&&(s.shadowRoot?r=s.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{s.shadowRoot&&(r=s.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`),r&&r.remove())})),r&&r.remove()}},de=(t,e)=>{if(!t.slides[e])return;const i=t.slides[e].querySelector('[loading="lazy"]');i&&i.removeAttribute("loading")},me=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 s=t.params.slidesPerView==="auto"?t.slidesPerViewDynamic():Math.ceil(t.params.slidesPerView),r=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){const l=r,o=[l-e];o.push(...Array.from({length:e}).map((a,u)=>l+s+u)),t.slides.forEach((a,u)=>{o.includes(a.column)&&de(t,u)});return}const n=r+s-1;if(t.params.rewind||t.params.loop)for(let l=r-e;l<=n+e;l+=1){const o=(l%i+i)%i;(o<r||o>n)&&de(t,o)}else for(let l=Math.max(r-e,0);l<=Math.min(n+e,i-1);l+=1)l!==r&&(l>n||l<r)&&de(t,l)};function dt(t){const{slidesGrid:e,params:i}=t,s=t.rtlTranslate?t.translate:-t.translate;let r;for(let n=0;n<e.length;n+=1)typeof e[n+1]<"u"?s>=e[n]&&s<e[n+1]-(e[n+1]-e[n])/2?r=n:s>=e[n]&&s<e[n+1]&&(r=n+1):s>=e[n]&&(r=n);return i.normalizeSlideIndex&&(r<0||typeof r>"u")&&(r=0),r}function ct(t){const e=this,i=e.rtlTranslate?e.translate:-e.translate,{snapGrid:s,params:r,activeIndex:n,realIndex:l,snapIndex:o}=e;let a=t,u;const d=v=>{let b=v-e.virtual.slidesBefore;return b<0&&(b=e.virtual.slides.length+b),b>=e.virtual.slides.length&&(b-=e.virtual.slides.length),b};if(typeof a>"u"&&(a=dt(e)),s.indexOf(i)>=0)u=s.indexOf(i);else{const v=Math.min(r.slidesPerGroupSkip,a);u=v+Math.floor((a-v)/r.slidesPerGroup)}if(u>=s.length&&(u=s.length-1),a===n&&!e.params.loop){u!==o&&(e.snapIndex=u,e.emit("snapIndexChange"));return}if(a===n&&e.params.loop&&e.virtual&&e.params.virtual.enabled){e.realIndex=d(a);return}const p=e.grid&&r.grid&&r.grid.rows>1;let h;if(e.virtual&&r.virtual.enabled&&r.loop)h=d(a);else if(p){const v=e.slides.filter(S=>S.column===a)[0];let b=parseInt(v.getAttribute("data-swiper-slide-index"),10);Number.isNaN(b)&&(b=Math.max(e.slides.indexOf(v),0)),h=Math.floor(b/r.grid.rows)}else if(e.slides[a]){const v=e.slides[a].getAttribute("data-swiper-slide-index");v?h=parseInt(v,10):h=a}else h=a;Object.assign(e,{previousSnapIndex:o,snapIndex:u,previousRealIndex:l,realIndex:h,previousIndex:n,activeIndex:a}),e.initialized&&me(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&(l!==h&&e.emit("realIndexChange"),e.emit("slideChange"))}function ft(t,e){const i=this,s=i.params;let r=t.closest(`.${s.slideClass}, swiper-slide`);!r&&i.isElement&&e&&e.length>1&&e.includes(t)&&[...e.slice(e.indexOf(t)+1,e.length)].forEach(o=>{!r&&o.matches&&o.matches(`.${s.slideClass}, swiper-slide`)&&(r=o)});let n=!1,l;if(r){for(let o=0;o<i.slides.length;o+=1)if(i.slides[o]===r){n=!0,l=o;break}}if(r&&n)i.clickedSlide=r,i.virtual&&i.params.virtual.enabled?i.clickedIndex=parseInt(r.getAttribute("data-swiper-slide-index"),10):i.clickedIndex=l;else{i.clickedSlide=void 0,i.clickedIndex=void 0;return}s.slideToClickedSlide&&i.clickedIndex!==void 0&&i.clickedIndex!==i.activeIndex&&i.slideToClickedSlide()}var ut={updateSize:it,updateSlides:st,updateAutoHeight:nt,updateSlidesOffset:rt,updateSlidesProgress:at,updateProgress:lt,updateSlidesClasses:ot,updateActiveIndex:ct,updateClickedSlide:ft};function pt(t){t===void 0&&(t=this.isHorizontal()?"x":"y");const e=this,{params:i,rtlTranslate:s,translate:r,wrapperEl:n}=e;if(i.virtualTranslate)return s?-r:r;if(i.cssMode)return r;let l=je(n,t);return l+=e.cssOverflowAdjustment(),s&&(l=-l),l||0}function mt(t,e){const i=this,{rtlTranslate:s,params:r,wrapperEl:n,progress:l}=i;let o=0,a=0;const u=0;i.isHorizontal()?o=s?-t:t:a=t,r.roundLengths&&(o=Math.floor(o),a=Math.floor(a)),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?o:a,r.cssMode?n[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-o:-a:r.virtualTranslate||(i.isHorizontal()?o-=i.cssOverflowAdjustment():a-=i.cssOverflowAdjustment(),n.style.transform=`translate3d(${o}px, ${a}px, ${u}px)`);let d;const p=i.maxTranslate()-i.minTranslate();p===0?d=0:d=(t-i.minTranslate())/p,d!==l&&i.updateProgress(t),i.emit("setTranslate",i.translate,e)}function gt(){return-this.snapGrid[0]}function ht(){return-this.snapGrid[this.snapGrid.length-1]}function vt(t,e,i,s,r){t===void 0&&(t=0),e===void 0&&(e=this.params.speed),i===void 0&&(i=!0),s===void 0&&(s=!0);const n=this,{params:l,wrapperEl:o}=n;if(n.animating&&l.preventInteractionOnTransition)return!1;const a=n.minTranslate(),u=n.maxTranslate();let d;if(s&&t>a?d=a:s&&t<u?d=u:d=t,n.updateProgress(d),l.cssMode){const p=n.isHorizontal();if(e===0)o[p?"scrollLeft":"scrollTop"]=-d;else{if(!n.support.smoothScroll)return Ce({swiper:n,targetPosition:-d,side:p?"left":"top"}),!0;o.scrollTo({[p?"left":"top"]:-d,behavior:"smooth"})}return!0}return e===0?(n.setTransition(0),n.setTranslate(d),i&&(n.emit("beforeTransitionStart",e,r),n.emit("transitionEnd"))):(n.setTransition(e),n.setTranslate(d),i&&(n.emit("beforeTransitionStart",e,r),n.emit("transitionStart")),n.animating||(n.animating=!0,n.onTranslateToWrapperTransitionEnd||(n.onTranslateToWrapperTransitionEnd=function(h){!n||n.destroyed||h.target===this&&(n.wrapperEl.removeEventListener("transitionend",n.onTranslateToWrapperTransitionEnd),n.onTranslateToWrapperTransitionEnd=null,delete n.onTranslateToWrapperTransitionEnd,i&&n.emit("transitionEnd"))}),n.wrapperEl.addEventListener("transitionend",n.onTranslateToWrapperTransitionEnd))),!0}var wt={getTranslate:pt,setTranslate:mt,minTranslate:gt,maxTranslate:ht,translateTo:vt};function St(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 Le(t){let{swiper:e,runCallbacks:i,direction:s,step:r}=t;const{activeIndex:n,previousIndex:l}=e;let o=s;if(o||(n>l?o="next":n<l?o="prev":o="reset"),e.emit(`transition${r}`),i&&n!==l){if(o==="reset"){e.emit(`slideResetTransition${r}`);return}e.emit(`slideChangeTransition${r}`),o==="next"?e.emit(`slideNextTransition${r}`):e.emit(`slidePrevTransition${r}`)}}function bt(t,e){t===void 0&&(t=!0);const i=this,{params:s}=i;s.cssMode||(s.autoHeight&&i.updateAutoHeight(),Le({swiper:i,runCallbacks:t,direction:e,step:"Start"}))}function xt(t,e){t===void 0&&(t=!0);const i=this,{params:s}=i;i.animating=!1,!s.cssMode&&(i.setTransition(0),Le({swiper:i,runCallbacks:t,direction:e,step:"End"}))}var Et={setTransition:St,transitionStart:bt,transitionEnd:xt};function Tt(t,e,i,s,r){t===void 0&&(t=0),e===void 0&&(e=this.params.speed),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const n=this;let l=t;l<0&&(l=0);const{params:o,snapGrid:a,slidesGrid:u,previousIndex:d,activeIndex:p,rtlTranslate:h,wrapperEl:v,enabled:b}=n;if(n.animating&&o.preventInteractionOnTransition||!b&&!s&&!r)return!1;const S=Math.min(n.params.slidesPerGroupSkip,l);let E=S+Math.floor((l-S)/n.params.slidesPerGroup);E>=a.length&&(E=a.length-1);const g=-a[E];if(o.normalizeSlideIndex)for(let f=0;f<u.length;f+=1){const w=-Math.floor(g*100),C=Math.floor(u[f]*100),A=Math.floor(u[f+1]*100);typeof u[f+1]<"u"?w>=C&&w<A-(A-C)/2?l=f:w>=C&&w<A&&(l=f+1):w>=C&&(l=f)}if(n.initialized&&l!==p&&(!n.allowSlideNext&&(h?g>n.translate&&g>n.minTranslate():g<n.translate&&g<n.minTranslate())||!n.allowSlidePrev&&g>n.translate&&g>n.maxTranslate()&&(p||0)!==l))return!1;l!==(d||0)&&i&&n.emit("beforeSlideChangeStart"),n.updateProgress(g);let c;if(l>p?c="next":l<p?c="prev":c="reset",h&&-g===n.translate||!h&&g===n.translate)return n.updateActiveIndex(l),o.autoHeight&&n.updateAutoHeight(),n.updateSlidesClasses(),o.effect!=="slide"&&n.setTranslate(g),c!=="reset"&&(n.transitionStart(i,c),n.transitionEnd(i,c)),!1;if(o.cssMode){const f=n.isHorizontal(),w=h?g:-g;if(e===0){const C=n.virtual&&n.params.virtual.enabled;C&&(n.wrapperEl.style.scrollSnapType="none",n._immediateVirtual=!0),C&&!n._cssModeVirtualInitialSet&&n.params.initialSlide>0?(n._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{v[f?"scrollLeft":"scrollTop"]=w})):v[f?"scrollLeft":"scrollTop"]=w,C&&requestAnimationFrame(()=>{n.wrapperEl.style.scrollSnapType="",n._immediateVirtual=!1})}else{if(!n.support.smoothScroll)return Ce({swiper:n,targetPosition:w,side:f?"left":"top"}),!0;v.scrollTo({[f?"left":"top"]:w,behavior:"smooth"})}return!0}return n.setTransition(e),n.setTranslate(g),n.updateActiveIndex(l),n.updateSlidesClasses(),n.emit("beforeTransitionStart",e,s),n.transitionStart(i,c),e===0?n.transitionEnd(i,c):n.animating||(n.animating=!0,n.onSlideToWrapperTransitionEnd||(n.onSlideToWrapperTransitionEnd=function(w){!n||n.destroyed||w.target===this&&(n.wrapperEl.removeEventListener("transitionend",n.onSlideToWrapperTransitionEnd),n.onSlideToWrapperTransitionEnd=null,delete n.onSlideToWrapperTransitionEnd,n.transitionEnd(i,c))}),n.wrapperEl.addEventListener("transitionend",n.onSlideToWrapperTransitionEnd)),!0}function yt(t,e,i,s){t===void 0&&(t=0),e===void 0&&(e=this.params.speed),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const r=this,n=r.grid&&r.params.grid&&r.params.grid.rows>1;let l=t;if(r.params.loop)if(r.virtual&&r.params.virtual.enabled)l=l+r.virtual.slidesBefore;else{let o;if(n){const h=l*r.params.grid.rows;o=r.slides.filter(v=>v.getAttribute("data-swiper-slide-index")*1===h)[0].column}else o=r.getSlideIndexByData(l);const a=n?Math.ceil(r.slides.length/r.params.grid.rows):r.slides.length,{centeredSlides:u}=r.params;let d=r.params.slidesPerView;d==="auto"?d=r.slidesPerViewDynamic():(d=Math.ceil(parseFloat(r.params.slidesPerView,10)),u&&d%2===0&&(d=d+1));let p=a-o<d;if(u&&(p=p||o<Math.ceil(d/2)),p){const h=u?o<r.activeIndex?"prev":"next":o-r.activeIndex-1<r.params.slidesPerView?"next":"prev";r.loopFix({direction:h,slideTo:!0,activeSlideIndex:h==="next"?o+1:o-a+1,slideRealIndex:h==="next"?r.realIndex:void 0})}if(n){const h=l*r.params.grid.rows;l=r.slides.filter(v=>v.getAttribute("data-swiper-slide-index")*1===h)[0].column}else l=r.getSlideIndexByData(l)}return requestAnimationFrame(()=>{r.slideTo(l,e,i,s)}),r}function Ct(t,e,i){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0);const s=this,{enabled:r,params:n,animating:l}=s;if(!r)return s;let o=n.slidesPerGroup;n.slidesPerView==="auto"&&n.slidesPerGroup===1&&n.slidesPerGroupAuto&&(o=Math.max(s.slidesPerViewDynamic("current",!0),1));const a=s.activeIndex<n.slidesPerGroupSkip?1:o,u=s.virtual&&n.virtual.enabled;if(n.loop){if(l&&!u&&n.loopPreventsSliding)return!1;if(s.loopFix({direction:"next"}),s._clientLeft=s.wrapperEl.clientLeft,s.activeIndex===s.slides.length-1&&n.cssMode)return requestAnimationFrame(()=>{s.slideTo(s.activeIndex+a,t,e,i)}),!0}return n.rewind&&s.isEnd?s.slideTo(0,t,e,i):s.slideTo(s.activeIndex+a,t,e,i)}function Pt(t,e,i){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0);const s=this,{params:r,snapGrid:n,slidesGrid:l,rtlTranslate:o,enabled:a,animating:u}=s;if(!a)return s;const d=s.virtual&&r.virtual.enabled;if(r.loop){if(u&&!d&&r.loopPreventsSliding)return!1;s.loopFix({direction:"prev"}),s._clientLeft=s.wrapperEl.clientLeft}const p=o?s.translate:-s.translate;function h(g){return g<0?-Math.floor(Math.abs(g)):Math.floor(g)}const v=h(p),b=n.map(g=>h(g));let S=n[b.indexOf(v)-1];if(typeof S>"u"&&r.cssMode){let g;n.forEach((c,f)=>{v>=c&&(g=f)}),typeof g<"u"&&(S=n[g>0?g-1:g])}let E=0;if(typeof S<"u"&&(E=l.indexOf(S),E<0&&(E=s.activeIndex-1),r.slidesPerView==="auto"&&r.slidesPerGroup===1&&r.slidesPerGroupAuto&&(E=E-s.slidesPerViewDynamic("previous",!0)+1,E=Math.max(E,0))),r.rewind&&s.isBeginning){const g=s.params.virtual&&s.params.virtual.enabled&&s.virtual?s.virtual.slides.length-1:s.slides.length-1;return s.slideTo(g,t,e,i)}else if(r.loop&&s.activeIndex===0&&r.cssMode)return requestAnimationFrame(()=>{s.slideTo(E,t,e,i)}),!0;return s.slideTo(E,t,e,i)}function Mt(t,e,i){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0);const s=this;return s.slideTo(s.activeIndex,t,e,i)}function Lt(t,e,i,s){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0),s===void 0&&(s=.5);const r=this;let n=r.activeIndex;const l=Math.min(r.params.slidesPerGroupSkip,n),o=l+Math.floor((n-l)/r.params.slidesPerGroup),a=r.rtlTranslate?r.translate:-r.translate;if(a>=r.snapGrid[o]){const u=r.snapGrid[o],d=r.snapGrid[o+1];a-u>(d-u)*s&&(n+=r.params.slidesPerGroup)}else{const u=r.snapGrid[o-1],d=r.snapGrid[o];a-u<=(d-u)*s&&(n-=r.params.slidesPerGroup)}return n=Math.max(n,0),n=Math.min(n,r.slidesGrid.length-1),r.slideTo(n,t,e,i)}function It(){const t=this,{params:e,slidesEl:i}=t,s=e.slidesPerView==="auto"?t.slidesPerViewDynamic():e.slidesPerView;let r=t.clickedIndex,n;const l=t.isElement?"swiper-slide":`.${e.slideClass}`;if(e.loop){if(t.animating)return;n=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),e.centeredSlides?r<t.loopedSlides-s/2||r>t.slides.length-t.loopedSlides+s/2?(t.loopFix(),r=t.getSlideIndex(V(i,`${l}[data-swiper-slide-index="${n}"]`)[0]),ue(()=>{t.slideTo(r)})):t.slideTo(r):r>t.slides.length-s?(t.loopFix(),r=t.getSlideIndex(V(i,`${l}[data-swiper-slide-index="${n}"]`)[0]),ue(()=>{t.slideTo(r)})):t.slideTo(r)}else t.slideTo(r)}var At={slideTo:Tt,slideToLoop:yt,slideNext:Ct,slidePrev:Pt,slideReset:Mt,slideToClosest:Lt,slideToClickedSlide:It};function Ot(t){const e=this,{params:i,slidesEl:s}=e;if(!i.loop||e.virtual&&e.params.virtual.enabled)return;const r=()=>{V(s,`.${i.slideClass}, swiper-slide`).forEach((p,h)=>{p.setAttribute("data-swiper-slide-index",h)})},n=e.grid&&i.grid&&i.grid.rows>1,l=i.slidesPerGroup*(n?i.grid.rows:1),o=e.slides.length%l!==0,a=n&&e.slides.length%i.grid.rows!==0,u=d=>{for(let p=0;p<d;p+=1){const h=e.isElement?K("swiper-slide",[i.slideBlankClass]):K("div",[i.slideClass,i.slideBlankClass]);e.slidesEl.append(h)}};if(o){if(i.loopAddBlankSlides){const d=l-e.slides.length%l;u(d),e.recalcSlides(),e.updateSlides()}else ie("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)");r()}else if(a){if(i.loopAddBlankSlides){const d=i.grid.rows-e.slides.length%i.grid.rows;u(d),e.recalcSlides(),e.updateSlides()}else ie("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)");r()}else r();e.loopFix({slideRealIndex:t,direction:i.centeredSlides?void 0:"next"})}function zt(t){let{slideRealIndex:e,slideTo:i=!0,direction:s,setTranslate:r,activeSlideIndex:n,byController:l,byMousewheel:o}=t===void 0?{}:t;const a=this;if(!a.params.loop)return;a.emit("beforeLoopFix");const{slides:u,allowSlidePrev:d,allowSlideNext:p,slidesEl:h,params:v}=a,{centeredSlides:b}=v;if(a.allowSlidePrev=!0,a.allowSlideNext=!0,a.virtual&&v.virtual.enabled){i&&(!v.centeredSlides&&a.snapIndex===0?a.slideTo(a.virtual.slides.length,0,!1,!0):v.centeredSlides&&a.snapIndex<v.slidesPerView?a.slideTo(a.virtual.slides.length+a.snapIndex,0,!1,!0):a.snapIndex===a.snapGrid.length-1&&a.slideTo(a.virtual.slidesBefore,0,!1,!0)),a.allowSlidePrev=d,a.allowSlideNext=p,a.emit("loopFix");return}let S=v.slidesPerView;S==="auto"?S=a.slidesPerViewDynamic():(S=Math.ceil(parseFloat(v.slidesPerView,10)),b&&S%2===0&&(S=S+1));const E=v.slidesPerGroupAuto?S:v.slidesPerGroup;let g=E;g%E!==0&&(g+=E-g%E),g+=v.loopAdditionalSlides,a.loopedSlides=g;const c=a.grid&&v.grid&&v.grid.rows>1;u.length<S+g?ie("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled and not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):c&&v.grid.fill==="row"&&ie("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const f=[],w=[];let C=a.activeIndex;typeof n>"u"?n=a.getSlideIndex(u.filter(P=>P.classList.contains(v.slideActiveClass))[0]):C=n;const A=s==="next"||!s,z=s==="prev"||!s;let O=0,y=0;const T=c?Math.ceil(u.length/v.grid.rows):u.length,I=(c?u[n].column:n)+(b&&typeof r>"u"?-S/2+.5:0);if(I<g){O=Math.max(g-I,E);for(let P=0;P<g-I;P+=1){const m=P-Math.floor(P/T)*T;if(c){const x=T-m-1;for(let L=u.length-1;L>=0;L-=1)u[L].column===x&&f.push(L)}else f.push(T-m-1)}}else if(I+S>T-g){y=Math.max(I-(T-g*2),E);for(let P=0;P<y;P+=1){const m=P-Math.floor(P/T)*T;c?u.forEach((x,L)=>{x.column===m&&w.push(L)}):w.push(m)}}if(a.__preventObserver__=!0,requestAnimationFrame(()=>{a.__preventObserver__=!1}),z&&f.forEach(P=>{u[P].swiperLoopMoveDOM=!0,h.prepend(u[P]),u[P].swiperLoopMoveDOM=!1}),A&&w.forEach(P=>{u[P].swiperLoopMoveDOM=!0,h.append(u[P]),u[P].swiperLoopMoveDOM=!1}),a.recalcSlides(),v.slidesPerView==="auto"?a.updateSlides():c&&(f.length>0&&z||w.length>0&&A)&&a.slides.forEach((P,m)=>{a.grid.updateSlide(m,P,a.slides)}),v.watchSlidesProgress&&a.updateSlidesOffset(),i){if(f.length>0&&z){if(typeof e>"u"){const P=a.slidesGrid[C],x=a.slidesGrid[C+O]-P;o?a.setTranslate(a.translate-x):(a.slideTo(C+O,0,!1,!0),r&&(a.touchEventsData.startTranslate=a.touchEventsData.startTranslate-x,a.touchEventsData.currentTranslate=a.touchEventsData.currentTranslate-x))}else if(r){const P=c?f.length/v.grid.rows:f.length;a.slideTo(a.activeIndex+P,0,!1,!0),a.touchEventsData.currentTranslate=a.translate}}else if(w.length>0&&A)if(typeof e>"u"){const P=a.slidesGrid[C],x=a.slidesGrid[C-y]-P;o?a.setTranslate(a.translate-x):(a.slideTo(C-y,0,!1,!0),r&&(a.touchEventsData.startTranslate=a.touchEventsData.startTranslate-x,a.touchEventsData.currentTranslate=a.touchEventsData.currentTranslate-x))}else{const P=c?w.length/v.grid.rows:w.length;a.slideTo(a.activeIndex-P,0,!1,!0)}}if(a.allowSlidePrev=d,a.allowSlideNext=p,a.controller&&a.controller.control&&!l){const P={slideRealIndex:e,direction:s,setTranslate:r,activeSlideIndex:n,byController:!0};Array.isArray(a.controller.control)?a.controller.control.forEach(m=>{!m.destroyed&&m.params.loop&&m.loopFix({...P,slideTo:m.params.slidesPerView===v.slidesPerView?i:!1})}):a.controller.control instanceof a.constructor&&a.controller.control.params.loop&&a.controller.control.loopFix({...P,slideTo:a.controller.control.params.slidesPerView===v.slidesPerView?i:!1})}a.emit("loopFix")}function _t(){const t=this,{params:e,slidesEl:i}=t;if(!e.loop||t.virtual&&t.params.virtual.enabled)return;t.recalcSlides();const s=[];t.slides.forEach(r=>{const n=typeof r.swiperSlideIndex>"u"?r.getAttribute("data-swiper-slide-index")*1:r.swiperSlideIndex;s[n]=r}),t.slides.forEach(r=>{r.removeAttribute("data-swiper-slide-index")}),s.forEach(r=>{i.append(r)}),t.recalcSlides(),t.slideTo(t.realIndex,0)}var Dt={loopCreate:Ot,loopFix:zt,loopDestroy:_t};function Gt(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 Bt(){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 $t={setGrabCursor:Gt,unsetGrabCursor:Bt};function kt(t,e){e===void 0&&(e=this);function i(s){if(!s||s===X()||s===N())return null;s.assignedSlot&&(s=s.assignedSlot);const r=s.closest(t);return!r&&!s.getRootNode?null:r||i(s.getRootNode().host)}return i(e)}function Se(t,e,i){const s=N(),{params:r}=t,n=r.edgeSwipeDetection,l=r.edgeSwipeThreshold;return n&&(i<=l||i>=s.innerWidth-l)?n==="prevent"?(e.preventDefault(),!0):!1:!0}function Nt(t){const e=this,i=X();let s=t;s.originalEvent&&(s=s.originalEvent);const r=e.touchEventsData;if(s.type==="pointerdown"){if(r.pointerId!==null&&r.pointerId!==s.pointerId)return;r.pointerId=s.pointerId}else s.type==="touchstart"&&s.targetTouches.length===1&&(r.touchId=s.targetTouches[0].identifier);if(s.type==="touchstart"){Se(e,s,s.targetTouches[0].pageX);return}const{params:n,touches:l,enabled:o}=e;if(!o||!n.simulateTouch&&s.pointerType==="mouse"||e.animating&&n.preventInteractionOnTransition)return;!e.animating&&n.cssMode&&n.loop&&e.loopFix();let a=s.target;if(n.touchEventsTarget==="wrapper"&&!e.wrapperEl.contains(a)||"which"in s&&s.which===3||"button"in s&&s.button>0||r.isTouched&&r.isMoved)return;const u=!!n.noSwipingClass&&n.noSwipingClass!=="",d=s.composedPath?s.composedPath():s.path;u&&s.target&&s.target.shadowRoot&&d&&(a=d[0]);const p=n.noSwipingSelector?n.noSwipingSelector:`.${n.noSwipingClass}`,h=!!(s.target&&s.target.shadowRoot);if(n.noSwiping&&(h?kt(p,a):a.closest(p))){e.allowClick=!0;return}if(n.swipeHandler&&!a.closest(n.swipeHandler))return;l.currentX=s.pageX,l.currentY=s.pageY;const v=l.currentX,b=l.currentY;if(!Se(e,s,v))return;Object.assign(r,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),l.startX=v,l.startY=b,r.touchStartTime=te(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,n.threshold>0&&(r.allowThresholdMove=!1);let S=!0;a.matches(r.focusableElements)&&(S=!1,a.nodeName==="SELECT"&&(r.isTouched=!1)),i.activeElement&&i.activeElement.matches(r.focusableElements)&&i.activeElement!==a&&i.activeElement.blur();const E=S&&e.allowTouchMove&&n.touchStartPreventDefault;(n.touchStartForcePreventDefault||E)&&!a.isContentEditable&&s.preventDefault(),n.freeMode&&n.freeMode.enabled&&e.freeMode&&e.animating&&!n.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",s)}function Vt(t){const e=X(),i=this,s=i.touchEventsData,{params:r,touches:n,rtlTranslate:l,enabled:o}=i;if(!o||!r.simulateTouch&&t.pointerType==="mouse")return;let a=t;if(a.originalEvent&&(a=a.originalEvent),a.type==="pointermove"&&(s.touchId!==null||a.pointerId!==s.pointerId))return;let u;if(a.type==="touchmove"){if(u=[...a.changedTouches].filter(A=>A.identifier===s.touchId)[0],!u||u.identifier!==s.touchId)return}else u=a;if(!s.isTouched){s.startMoving&&s.isScrolling&&i.emit("touchMoveOpposite",a);return}const d=u.pageX,p=u.pageY;if(a.preventedByNestedSwiper){n.startX=d,n.startY=p;return}if(!i.allowTouchMove){a.target.matches(s.focusableElements)||(i.allowClick=!1),s.isTouched&&(Object.assign(n,{startX:d,startY:p,currentX:d,currentY:p}),s.touchStartTime=te());return}if(r.touchReleaseOnEdges&&!r.loop){if(i.isVertical()){if(p<n.startY&&i.translate<=i.maxTranslate()||p>n.startY&&i.translate>=i.minTranslate()){s.isTouched=!1,s.isMoved=!1;return}}else if(d<n.startX&&i.translate<=i.maxTranslate()||d>n.startX&&i.translate>=i.minTranslate())return}if(e.activeElement&&a.target===e.activeElement&&a.target.matches(s.focusableElements)){s.isMoved=!0,i.allowClick=!1;return}s.allowTouchCallbacks&&i.emit("touchMove",a),n.previousX=n.currentX,n.previousY=n.currentY,n.currentX=d,n.currentY=p;const h=n.currentX-n.startX,v=n.currentY-n.startY;if(i.params.threshold&&Math.sqrt(h**2+v**2)<i.params.threshold)return;if(typeof s.isScrolling>"u"){let A;i.isHorizontal()&&n.currentY===n.startY||i.isVertical()&&n.currentX===n.startX?s.isScrolling=!1:h*h+v*v>=25&&(A=Math.atan2(Math.abs(v),Math.abs(h))*180/Math.PI,s.isScrolling=i.isHorizontal()?A>r.touchAngle:90-A>r.touchAngle)}if(s.isScrolling&&i.emit("touchMoveOpposite",a),typeof s.startMoving>"u"&&(n.currentX!==n.startX||n.currentY!==n.startY)&&(s.startMoving=!0),s.isScrolling){s.isTouched=!1;return}if(!s.startMoving)return;i.allowClick=!1,!r.cssMode&&a.cancelable&&a.preventDefault(),r.touchMoveStopPropagation&&!r.nested&&a.stopPropagation();let b=i.isHorizontal()?h:v,S=i.isHorizontal()?n.currentX-n.previousX:n.currentY-n.previousY;r.oneWayMovement&&(b=Math.abs(b)*(l?1:-1),S=Math.abs(S)*(l?1:-1)),n.diff=b,b*=r.touchRatio,l&&(b=-b,S=-S);const E=i.touchesDirection;i.swipeDirection=b>0?"prev":"next",i.touchesDirection=S>0?"prev":"next";const g=i.params.loop&&!r.cssMode,c=i.touchesDirection==="next"&&i.allowSlideNext||i.touchesDirection==="prev"&&i.allowSlidePrev;if(!s.isMoved){if(g&&c&&i.loopFix({direction:i.swipeDirection}),s.startTranslate=i.getTranslate(),i.setTransition(0),i.animating){const A=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});i.wrapperEl.dispatchEvent(A)}s.allowMomentumBounce=!1,r.grabCursor&&(i.allowSlideNext===!0||i.allowSlidePrev===!0)&&i.setGrabCursor(!0),i.emit("sliderFirstMove",a)}let f;if(new Date().getTime(),s.isMoved&&s.allowThresholdMove&&E!==i.touchesDirection&&g&&c&&Math.abs(b)>=1){Object.assign(n,{startX:d,startY:p,currentX:d,currentY:p,startTranslate:s.currentTranslate}),s.loopSwapReset=!0,s.startTranslate=s.currentTranslate;return}i.emit("sliderMove",a),s.isMoved=!0,s.currentTranslate=b+s.startTranslate;let w=!0,C=r.resistanceRatio;if(r.touchReleaseOnEdges&&(C=0),b>0?(g&&c&&!f&&s.allowThresholdMove&&s.currentTranslate>(r.centeredSlides?i.minTranslate()-i.slidesSizesGrid[i.activeIndex+1]:i.minTranslate())&&i.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),s.currentTranslate>i.minTranslate()&&(w=!1,r.resistance&&(s.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+s.startTranslate+b)**C))):b<0&&(g&&c&&!f&&s.allowThresholdMove&&s.currentTranslate<(r.centeredSlides?i.maxTranslate()+i.slidesSizesGrid[i.slidesSizesGrid.length-1]:i.maxTranslate())&&i.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:i.slides.length-(r.slidesPerView==="auto"?i.slidesPerViewDynamic():Math.ceil(parseFloat(r.slidesPerView,10)))}),s.currentTranslate<i.maxTranslate()&&(w=!1,r.resistance&&(s.currentTranslate=i.maxTranslate()+1-(i.maxTranslate()-s.startTranslate-b)**C))),w&&(a.preventedByNestedSwiper=!0),!i.allowSlideNext&&i.swipeDirection==="next"&&s.currentTranslate<s.startTranslate&&(s.currentTranslate=s.startTranslate),!i.allowSlidePrev&&i.swipeDirection==="prev"&&s.currentTranslate>s.startTranslate&&(s.currentTranslate=s.startTranslate),!i.allowSlidePrev&&!i.allowSlideNext&&(s.currentTranslate=s.startTranslate),r.threshold>0)if(Math.abs(b)>r.threshold||s.allowThresholdMove){if(!s.allowThresholdMove){s.allowThresholdMove=!0,n.startX=n.currentX,n.startY=n.currentY,s.currentTranslate=s.startTranslate,n.diff=i.isHorizontal()?n.currentX-n.startX:n.currentY-n.startY;return}}else{s.currentTranslate=s.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(s.currentTranslate),i.setTranslate(s.currentTranslate))}function Rt(t){const e=this,i=e.touchEventsData;let s=t;s.originalEvent&&(s=s.originalEvent);let r;if(s.type==="touchend"||s.type==="touchcancel"){if(r=[...s.changedTouches].filter(w=>w.identifier===i.touchId)[0],!r||r.identifier!==i.touchId)return}else{if(i.touchId!==null||s.pointerId!==i.pointerId)return;r=s}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(s.type)&&!(["pointercancel","contextmenu"].includes(s.type)&&(e.browser.isSafari||e.browser.isWebView)))return;i.pointerId=null,i.touchId=null;const{params:l,touches:o,rtlTranslate:a,slidesGrid:u,enabled:d}=e;if(!d||!l.simulateTouch&&s.pointerType==="mouse")return;if(i.allowTouchCallbacks&&e.emit("touchEnd",s),i.allowTouchCallbacks=!1,!i.isTouched){i.isMoved&&l.grabCursor&&e.setGrabCursor(!1),i.isMoved=!1,i.startMoving=!1;return}l.grabCursor&&i.isMoved&&i.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);const p=te(),h=p-i.touchStartTime;if(e.allowClick){const w=s.path||s.composedPath&&s.composedPath();e.updateClickedSlide(w&&w[0]||s.target,w),e.emit("tap click",s),h<300&&p-i.lastClickTime<300&&e.emit("doubleTap doubleClick",s)}if(i.lastClickTime=te(),ue(()=>{e.destroyed||(e.allowClick=!0)}),!i.isTouched||!i.isMoved||!e.swipeDirection||o.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 v;if(l.followFinger?v=a?e.translate:-e.translate:v=-i.currentTranslate,l.cssMode)return;if(l.freeMode&&l.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:v});return}let b=0,S=e.slidesSizesGrid[0];for(let w=0;w<u.length;w+=w<l.slidesPerGroupSkip?1:l.slidesPerGroup){const C=w<l.slidesPerGroupSkip-1?1:l.slidesPerGroup;typeof u[w+C]<"u"?v>=u[w]&&v<u[w+C]&&(b=w,S=u[w+C]-u[w]):v>=u[w]&&(b=w,S=u[u.length-1]-u[u.length-2])}let E=null,g=null;l.rewind&&(e.isBeginning?g=l.virtual&&l.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(E=0));const c=(v-u[b])/S,f=b<l.slidesPerGroupSkip-1?1:l.slidesPerGroup;if(h>l.longSwipesMs){if(!l.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(c>=l.longSwipesRatio?e.slideTo(l.rewind&&e.isEnd?E:b+f):e.slideTo(b)),e.swipeDirection==="prev"&&(c>1-l.longSwipesRatio?e.slideTo(b+f):g!==null&&c<0&&Math.abs(c)>l.longSwipesRatio?e.slideTo(g):e.slideTo(b))}else{if(!l.shortSwipes){e.slideTo(e.activeIndex);return}e.navigation&&(s.target===e.navigation.nextEl||s.target===e.navigation.prevEl)?s.target===e.navigation.nextEl?e.slideTo(b+f):e.slideTo(b):(e.swipeDirection==="next"&&e.slideTo(E!==null?E:b+f),e.swipeDirection==="prev"&&e.slideTo(g!==null?g:b))}}function be(){const t=this,{params:e,el:i}=t;if(i&&i.offsetWidth===0)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:s,allowSlidePrev:r,snapGrid:n}=t,l=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses();const o=l&&e.loop;(e.slidesPerView==="auto"||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides&&!o?t.slideTo(t.slides.length-1,0,!1,!0):t.params.loop&&!l?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=s,t.params.watchOverflow&&n!==t.snapGrid&&t.checkOverflow()}function Ft(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function Ht(){const t=this,{wrapperEl:e,rtlTranslate:i,enabled:s}=t;if(!s)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 n=t.maxTranslate