document.addEventListener("DOMContentLoaded",()=>{document.documentElement.classList.add("page-loaded")});function lt(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function tt(t,e){t===void 0&&(t={}),e===void 0&&(e={}),Object.keys(e).forEach(n=>{typeof t[n]>"u"?t[n]=e[n]:lt(e[n])&&lt(t[n])&&Object.keys(e[n]).length>0&&tt(t[n],e[n])})}const Bt={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 H(){const t=typeof document<"u"?document:{};return tt(t,Bt),t}const kn={document:Bt,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 B(){const t=typeof window<"u"?window:{};return tt(t,kn),t}function qn(t){const e=t;Object.keys(e).forEach(n=>{try{e[n]=null}catch{}try{delete e[n]}catch{}})}function ce(t,e){return e===void 0&&(e=0),setTimeout(t,e)}function F(){return Date.now()}function Rn(t){const e=B();let n;return e.getComputedStyle&&(n=e.getComputedStyle(t,null)),!n&&t.currentStyle&&(n=t.currentStyle),n||(n=t.style),n}function Dn(t,e){e===void 0&&(e="x");const n=B();let s,r,i;const o=Rn(t);return n.WebKitCSSMatrix?(r=o.transform||o.webkitTransform,r.split(",").length>6&&(r=r.split(", ").map(l=>l.replace(",",".")).join(", ")),i=new n.WebKitCSSMatrix(r==="none"?"":r)):(i=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),s=i.toString().split(",")),e==="x"&&(n.WebKitCSSMatrix?r=i.m41:s.length===16?r=parseFloat(s[12]):r=parseFloat(s[4])),e==="y"&&(n.WebKitCSSMatrix?r=i.m42:s.length===16?r=parseFloat(s[13]):r=parseFloat(s[5])),r||0}function ie(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function Bn(t){return typeof window<"u"&&typeof window.HTMLElement<"u"?t instanceof HTMLElement:t&&(t.nodeType===1||t.nodeType===11)}function z(){const t=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"];for(let n=1;n<arguments.length;n+=1){const s=n<0||arguments.length<=n?void 0:arguments[n];if(s!=null&&!Bn(s)){const r=Object.keys(Object(s)).filter(i=>e.indexOf(i)<0);for(let i=0,o=r.length;i<o;i+=1){const l=r[i],a=Object.getOwnPropertyDescriptor(s,l);a!==void 0&&a.enumerable&&(ie(t[l])&&ie(s[l])?s[l].__swiper__?t[l]=s[l]:z(t[l],s[l]):!ie(t[l])&&ie(s[l])?(t[l]={},s[l].__swiper__?t[l]=s[l]:z(t[l],s[l])):t[l]=s[l])}}}return t}function me(t,e,n){t.style.setProperty(e,n)}function $t(t){let{swiper:e,targetPosition:n,side:s}=t;const r=B(),i=-e.translate;let o=null,l;const a=e.params.speed;e.wrapperEl.style.scrollSnapType="none",r.cancelAnimationFrame(e.cssModeFrameID);const c=n>i?"next":"prev",u=(g,m)=>c==="next"&&g>=m||c==="prev"&&g<=m,p=()=>{l=new Date().getTime(),o===null&&(o=l);const g=Math.max(Math.min((l-o)/a,1),0),m=.5-Math.cos(g*Math.PI)/2;let E=i+m*(n-i);if(u(E,n)&&(E=n),e.wrapperEl.scrollTo({[s]:E}),u(E,n)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[s]:E})}),r.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=r.requestAnimationFrame(p)};p()}function G(t,e){return e===void 0&&(e=""),[...t.children].filter(n=>n.matches(e))}function jt(t,e){e===void 0&&(e=[]);const n=document.createElement(t);return n.classList.add(...Array.isArray(e)?e:[e]),n}function $n(t){const e=B(),n=H(),s=t.getBoundingClientRect(),r=n.body,i=t.clientTop||r.clientTop||0,o=t.clientLeft||r.clientLeft||0,l=t===e?e.scrollY:t.scrollTop,a=t===e?e.scrollX:t.scrollLeft;return{top:s.top+l-i,left:s.left+a-o}}function jn(t,e){const n=[];for(;t.previousElementSibling;){const s=t.previousElementSibling;e?s.matches(e)&&n.push(s):n.push(s),t=s}return n}function Nn(t,e){const n=[];for(;t.nextElementSibling;){const s=t.nextElementSibling;e?s.matches(e)&&n.push(s):n.push(s),t=s}return n}function X(t,e){return B().getComputedStyle(t,null).getPropertyValue(e)}function Te(t){let e=t,n;if(e){for(n=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(n+=1);return n}}function be(t,e){const n=[];let s=t.parentElement;for(;s;)e?s.matches(e)&&n.push(s):n.push(s),s=s.parentElement;return n}function Ae(t,e){function n(s){s.target===t&&(e.call(t,s),t.removeEventListener("transitionend",n))}e&&t.addEventListener("transitionend",n)}function We(t,e,n){const s=B();return n?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 Oe;function zn(){const t=B(),e=H();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch)}}function Nt(){return Oe||(Oe=zn()),Oe}let Ie;function Hn(t){let{userAgent:e}=t===void 0?{}:t;const n=Nt(),s=B(),r=s.navigator.platform,i=e||s.navigator.userAgent,o={ios:!1,android:!1},l=s.screen.width,a=s.screen.height,c=i.match(/(Android);?[\s\/]+([\d.]+)?/);let u=i.match(/(iPad).*OS\s([\d_]+)/);const p=i.match(/(iPod)(.*OS\s([\d_]+))?/),g=!u&&i.match(/(iPhone\sOS|iOS)\s([\d_]+)/),m=r==="Win32";let E=r==="MacIntel";const v=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!u&&E&&n.touch&&v.indexOf(`${l}x${a}`)>=0&&(u=i.match(/(Version)\/([\d.]+)/),u||(u=[0,1,"13_0_0"]),E=!1),c&&!m&&(o.os="android",o.android=!0),(u||g||p)&&(o.os="ios",o.ios=!0),o}function Fn(t){return t===void 0&&(t={}),Ie||(Ie=Hn(t)),Ie}let ke;function Vn(){const t=B();let e=!1;function n(){const s=t.navigator.userAgent.toLowerCase();return s.indexOf("safari")>=0&&s.indexOf("chrome")<0&&s.indexOf("android")<0}if(n()){const s=String(t.navigator.userAgent);if(s.includes("Version/")){const[r,i]=s.split("Version/")[1].split(" ")[0].split(".").map(o=>Number(o));e=r<16||r===16&&i<2}}return{isSafari:e||n(),needPerspectiveFix:e,isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent)}}function Gn(){return ke||(ke=Vn()),ke}function Wn(t){let{swiper:e,on:n,emit:s}=t;const r=B();let i=null,o=null;const l=()=>{!e||e.destroyed||!e.initialized||(s("beforeResize"),s("resize"))},a=()=>{!e||e.destroyed||!e.initialized||(i=new ResizeObserver(p=>{o=r.requestAnimationFrame(()=>{const{width:g,height:m}=e;let E=g,v=m;p.forEach(w=>{let{contentBoxSize:h,contentRect:f,target:d}=w;d&&d!==e.el||(E=f?f.width:(h[0]||h).inlineSize,v=f?f.height:(h[0]||h).blockSize)}),(E!==g||v!==m)&&l()})}),i.observe(e.el))},c=()=>{o&&r.cancelAnimationFrame(o),i&&i.unobserve&&e.el&&(i.unobserve(e.el),i=null)},u=()=>{!e||e.destroyed||!e.initialized||s("orientationchange")};n("init",()=>{if(e.params.resizeObserver&&typeof r.ResizeObserver<"u"){a();return}r.addEventListener("resize",l),r.addEventListener("orientationchange",u)}),n("destroy",()=>{c(),r.removeEventListener("resize",l),r.removeEventListener("orientationchange",u)})}function Xn(t){let{swiper:e,extendParams:n,on:s,emit:r}=t;const i=[],o=B(),l=function(u,p){p===void 0&&(p={});const g=o.MutationObserver||o.WebkitMutationObserver,m=new g(E=>{if(e.__preventObserver__)return;if(E.length===1){r("observerUpdate",E[0]);return}const v=function(){r("observerUpdate",E[0])};o.requestAnimationFrame?o.requestAnimationFrame(v):o.setTimeout(v,0)});m.observe(u,{attributes:typeof p.attributes>"u"?!0:p.attributes,childList:typeof p.childList>"u"?!0:p.childList,characterData:typeof p.characterData>"u"?!0:p.characterData}),i.push(m)},a=()=>{if(e.params.observer){if(e.params.observeParents){const u=be(e.el);for(let p=0;p<u.length;p+=1)l(u[p])}l(e.el,{childList:e.params.observeSlideChildren}),l(e.wrapperEl,{attributes:!1})}},c=()=>{i.forEach(u=>{u.disconnect()}),i.splice(0,i.length)};n({observer:!1,observeParents:!1,observeSlideChildren:!1}),s("init",a),s("destroy",c)}var Yn={on(t,e,n){const s=this;if(!s.eventsListeners||s.destroyed||typeof e!="function")return s;const r=n?"unshift":"push";return t.split(" ").forEach(i=>{s.eventsListeners[i]||(s.eventsListeners[i]=[]),s.eventsListeners[i][r](e)}),s},once(t,e,n){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 i=arguments.length,o=new Array(i),l=0;l<i;l++)o[l]=arguments[l];e.apply(s,o)}return r.__emitterProxy=e,s.on(t,r,n)},onAny(t,e){const n=this;if(!n.eventsListeners||n.destroyed||typeof t!="function")return n;const s=e?"unshift":"push";return n.eventsAnyListeners.indexOf(t)<0&&n.eventsAnyListeners[s](t),n},offAny(t){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsAnyListeners)return e;const n=e.eventsAnyListeners.indexOf(t);return n>=0&&e.eventsAnyListeners.splice(n,1),e},off(t,e){const n=this;return!n.eventsListeners||n.destroyed||!n.eventsListeners||t.split(" ").forEach(s=>{typeof e>"u"?n.eventsListeners[s]=[]:n.eventsListeners[s]&&n.eventsListeners[s].forEach((r,i)=>{(r===e||r.__emitterProxy&&r.__emitterProxy===e)&&n.eventsListeners[s].splice(i,1)})}),n},emit(){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let e,n,s;for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return typeof i[0]=="string"||Array.isArray(i[0])?(e=i[0],n=i.slice(1,i.length),s=t):(e=i[0].events,n=i[0].data,s=i[0].context||t),n.unshift(s),(Array.isArray(e)?e:e.split(" ")).forEach(a=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(c=>{c.apply(s,[a,...n])}),t.eventsListeners&&t.eventsListeners[a]&&t.eventsListeners[a].forEach(c=>{c.apply(s,n)})}),t}};function Un(){const t=this;let e,n;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?n=t.params.height:n=s.clientHeight,!(e===0&&t.isHorizontal()||n===0&&t.isVertical())&&(e=e-parseInt(X(s,"padding-left")||0,10)-parseInt(X(s,"padding-right")||0,10),n=n-parseInt(X(s,"padding-top")||0,10)-parseInt(X(s,"padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(n)&&(n=0),Object.assign(t,{width:e,height:n,size:t.isHorizontal()?e:n}))}function Jn(){const t=this;function e(T){return t.isHorizontal()?T:{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"}[T]}function n(T,M){return parseFloat(T.getPropertyValue(e(M))||0)}const s=t.params,{wrapperEl:r,slidesEl:i,size:o,rtlTranslate:l,wrongRTL:a}=t,c=t.virtual&&s.virtual.enabled,u=c?t.virtual.slides.length:t.slides.length,p=G(i,`.${t.params.slideClass}, swiper-slide`),g=c?t.virtual.slides.length:p.length;let m=[];const E=[],v=[];let w=s.slidesOffsetBefore;typeof w=="function"&&(w=s.slidesOffsetBefore.call(t));let h=s.slidesOffsetAfter;typeof h=="function"&&(h=s.slidesOffsetAfter.call(t));const f=t.snapGrid.length,d=t.slidesGrid.length;let y=s.spaceBetween,S=-w,C=0,x=0;if(typeof o>"u")return;typeof y=="string"&&y.indexOf("%")>=0?y=parseFloat(y.replace("%",""))/100*o:typeof y=="string"&&(y=parseFloat(y)),t.virtualSize=-y,p.forEach(T=>{l?T.style.marginLeft="":T.style.marginRight="",T.style.marginBottom="",T.style.marginTop=""}),s.centeredSlides&&s.cssMode&&(me(r,"--swiper-centered-offset-before",""),me(r,"--swiper-centered-offset-after",""));const _=s.grid&&s.grid.rows>1&&t.grid;_&&t.grid.initSlides(g);let b;const O=s.slidesPerView==="auto"&&s.breakpoints&&Object.keys(s.breakpoints).filter(T=>typeof s.breakpoints[T].slidesPerView<"u").length>0;for(let T=0;T<g;T+=1){b=0;let M;if(p[T]&&(M=p[T]),_&&t.grid.updateSlide(T,M,g,e),!(p[T]&&X(M,"display")==="none")){if(s.slidesPerView==="auto"){O&&(p[T].style[e("width")]="");const L=getComputedStyle(M),P=M.style.transform,k=M.style.webkitTransform;if(P&&(M.style.transform="none"),k&&(M.style.webkitTransform="none"),s.roundLengths)b=t.isHorizontal()?We(M,"width",!0):We(M,"height",!0);else{const N=n(L,"width"),I=n(L,"padding-left"),$=n(L,"padding-right"),q=n(L,"margin-left"),V=n(L,"margin-right"),ee=L.getPropertyValue("box-sizing");if(ee&&ee==="border-box")b=N+q+V;else{const{clientWidth:On,offsetWidth:In}=M;b=N+I+$+q+V+(In-On)}}P&&(M.style.transform=P),k&&(M.style.webkitTransform=k),s.roundLengths&&(b=Math.floor(b))}else b=(o-(s.slidesPerView-1)*y)/s.slidesPerView,s.roundLengths&&(b=Math.floor(b)),p[T]&&(p[T].style[e("width")]=`${b}px`);p[T]&&(p[T].swiperSlideSize=b),v.push(b),s.centeredSlides?(S=S+b/2+C/2+y,C===0&&T!==0&&(S=S-o/2-y),T===0&&(S=S-o/2-y),Math.abs(S)<1/1e3&&(S=0),s.roundLengths&&(S=Math.floor(S)),x%s.slidesPerGroup===0&&m.push(S),E.push(S)):(s.roundLengths&&(S=Math.floor(S)),(x-Math.min(t.params.slidesPerGroupSkip,x))%t.params.slidesPerGroup===0&&m.push(S),E.push(S),S=S+b+y),t.virtualSize+=b+y,C=b,x+=1}}if(t.virtualSize=Math.max(t.virtualSize,o)+h,l&&a&&(s.effect==="slide"||s.effect==="coverflow")&&(r.style.width=`${t.virtualSize+y}px`),s.setWrapperSize&&(r.style[e("width")]=`${t.virtualSize+y}px`),_&&t.grid.updateWrapperSize(b,m,e),!s.centeredSlides){const T=[];for(let M=0;M<m.length;M+=1){let L=m[M];s.roundLengths&&(L=Math.floor(L)),m[M]<=t.virtualSize-o&&T.push(L)}m=T,Math.floor(t.virtualSize-o)-Math.floor(m[m.length-1])>1&&m.push(t.virtualSize-o)}if(c&&s.loop){const T=v[0]+y;if(s.slidesPerGroup>1){const M=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/s.slidesPerGroup),L=T*s.slidesPerGroup;for(let P=0;P<M;P+=1)m.push(m[m.length-1]+L)}for(let M=0;M<t.virtual.slidesBefore+t.virtual.slidesAfter;M+=1)s.slidesPerGroup===1&&m.push(m[m.length-1]+T),E.push(E[E.length-1]+T),t.virtualSize+=T}if(m.length===0&&(m=[0]),y!==0){const T=t.isHorizontal()&&l?"marginLeft":e("marginRight");p.filter((M,L)=>!s.cssMode||s.loop?!0:L!==p.length-1).forEach(M=>{M.style[T]=`${y}px`})}if(s.centeredSlides&&s.centeredSlidesBounds){let T=0;v.forEach(L=>{T+=L+(y||0)}),T-=y;const M=T-o;m=m.map(L=>L<=0?-w:L>M?M+h:L)}if(s.centerInsufficientSlides){let T=0;if(v.forEach(M=>{T+=M+(y||0)}),T-=y,T<o){const M=(o-T)/2;m.forEach((L,P)=>{m[P]=L-M}),E.forEach((L,P)=>{E[P]=L+M})}}if(Object.assign(t,{slides:p,snapGrid:m,slidesGrid:E,slidesSizesGrid:v}),s.centeredSlides&&s.cssMode&&!s.centeredSlidesBounds){me(r,"--swiper-centered-offset-before",`${-m[0]}px`),me(r,"--swiper-centered-offset-after",`${t.size/2-v[v.length-1]/2}px`);const T=-t.snapGrid[0],M=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(L=>L+T),t.slidesGrid=t.slidesGrid.map(L=>L+M)}if(g!==u&&t.emit("slidesLengthChange"),m.length!==f&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),E.length!==d&&t.emit("slidesGridLengthChange"),s.watchSlidesProgress&&t.updateSlidesOffset(),!c&&!s.cssMode&&(s.effect==="slide"||s.effect==="fade")){const T=`${s.containerModifierClass}backface-hidden`,M=t.el.classList.contains(T);g<=s.maxBackfaceHiddenSlides?M||t.el.classList.add(T):M&&t.el.classList.remove(T)}}function Kn(t){const e=this,n=[],s=e.virtual&&e.params.virtual.enabled;let r=0,i;typeof t=="number"?e.setTransition(t):t===!0&&e.setTransition(e.params.speed);const o=l=>s?e.slides[e.getSlideIndexByData(l)]:e.slides[l];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach(l=>{n.push(l)});else for(i=0;i<Math.ceil(e.params.slidesPerView);i+=1){const l=e.activeIndex+i;if(l>e.slides.length&&!s)break;n.push(o(l))}else n.push(o(e.activeIndex));for(i=0;i<n.length;i+=1)if(typeof n[i]<"u"){const l=n[i].offsetHeight;r=l>r?l:r}(r||r===0)&&(e.wrapperEl.style.height=`${r}px`)}function Zn(){const t=this,e=t.slides,n=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)-n-t.cssOverflowAdjustment()}function Qn(t){t===void 0&&(t=this&&this.translate||0);const e=this,n=e.params,{slides:s,rtlTranslate:r,snapGrid:i}=e;if(s.length===0)return;typeof s[0].swiperSlideOffset>"u"&&e.updateSlidesOffset();let o=-t;r&&(o=t),s.forEach(a=>{a.classList.remove(n.slideVisibleClass)}),e.visibleSlidesIndexes=[],e.visibleSlides=[];let l=n.spaceBetween;typeof l=="string"&&l.indexOf("%")>=0?l=parseFloat(l.replace("%",""))/100*e.size:typeof l=="string"&&(l=parseFloat(l));for(let a=0;a<s.length;a+=1){const c=s[a];let u=c.swiperSlideOffset;n.cssMode&&n.centeredSlides&&(u-=s[0].swiperSlideOffset);const p=(o+(n.centeredSlides?e.minTranslate():0)-u)/(c.swiperSlideSize+l),g=(o-i[0]+(n.centeredSlides?e.minTranslate():0)-u)/(c.swiperSlideSize+l),m=-(o-u),E=m+e.slidesSizesGrid[a];(m>=0&&m<e.size-1||E>1&&E<=e.size||m<=0&&E>=e.size)&&(e.visibleSlides.push(c),e.visibleSlidesIndexes.push(a),s[a].classList.add(n.slideVisibleClass)),c.progress=r?-p:p,c.originalProgress=r?-g:g}}function es(t){const e=this;if(typeof t>"u"){const u=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*u||0}const n=e.params,s=e.maxTranslate()-e.minTranslate();let{progress:r,isBeginning:i,isEnd:o,progressLoop:l}=e;const a=i,c=o;if(s===0)r=0,i=!0,o=!0;else{r=(t-e.minTranslate())/s;const u=Math.abs(t-e.minTranslate())<1,p=Math.abs(t-e.maxTranslate())<1;i=u||r<=0,o=p||r>=1,u&&(r=0),p&&(r=1)}if(n.loop){const u=e.getSlideIndexByData(0),p=e.getSlideIndexByData(e.slides.length-1),g=e.slidesGrid[u],m=e.slidesGrid[p],E=e.slidesGrid[e.slidesGrid.length-1],v=Math.abs(t);v>=g?l=(v-g)/E:l=(v+E-m)/E,l>1&&(l-=1)}Object.assign(e,{progress:r,progressLoop:l,isBeginning:i,isEnd:o}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&e.updateSlidesProgress(t),i&&!a&&e.emit("reachBeginning toEdge"),o&&!c&&e.emit("reachEnd toEdge"),(a&&!i||c&&!o)&&e.emit("fromEdge"),e.emit("progress",r)}function ts(){const t=this,{slides:e,params:n,slidesEl:s,activeIndex:r}=t,i=t.virtual&&n.virtual.enabled,o=a=>G(s,`.${n.slideClass}${a}, swiper-slide${a}`)[0];e.forEach(a=>{a.classList.remove(n.slideActiveClass,n.slideNextClass,n.slidePrevClass)});let l;if(i)if(n.loop){let a=r-t.virtual.slidesBefore;a<0&&(a=t.virtual.slides.length+a),a>=t.virtual.slides.length&&(a-=t.virtual.slides.length),l=o(`[data-swiper-slide-index="${a}"]`)}else l=o(`[data-swiper-slide-index="${r}"]`);else l=e[r];if(l){l.classList.add(n.slideActiveClass);let a=Nn(l,`.${n.slideClass}, swiper-slide`)[0];n.loop&&!a&&(a=e[0]),a&&a.classList.add(n.slideNextClass);let c=jn(l,`.${n.slideClass}, swiper-slide`)[0];n.loop&&!c===0&&(c=e[e.length-1]),c&&c.classList.add(n.slidePrevClass)}t.emitSlidesClasses()}const Ee=(t,e)=>{if(!t||t.destroyed||!t.params)return;const n=()=>t.isElement?"swiper-slide":`.${t.params.slideClass}`,s=e.closest(n());if(s){const r=s.querySelector(`.${t.params.lazyPreloaderClass}`);r&&r.remove()}},qe=(t,e)=>{if(!t.slides[e])return;const n=t.slides[e].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},Xe=t=>{if(!t||t.destroyed||!t.params)return;let e=t.params.lazyPreloadPrevNext;const n=t.slides.length;if(!n||!e||e<0)return;e=Math.min(e,n);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 o=r,l=[o-e];l.push(...Array.from({length:e}).map((a,c)=>o+s+c)),t.slides.forEach((a,c)=>{l.includes(a.column)&&qe(t,c)});return}const i=r+s-1;if(t.params.rewind||t.params.loop)for(let o=r-e;o<=i+e;o+=1){const l=(o%n+n)%n;(l<r||l>i)&&qe(t,l)}else for(let o=Math.max(r-e,0);o<=Math.min(i+e,n-1);o+=1)o!==r&&(o>i||o<r)&&qe(t,o)};function ns(t){const{slidesGrid:e,params:n}=t,s=t.rtlTranslate?t.translate:-t.translate;let r;for(let i=0;i<e.length;i+=1)typeof e[i+1]<"u"?s>=e[i]&&s<e[i+1]-(e[i+1]-e[i])/2?r=i:s>=e[i]&&s<e[i+1]&&(r=i+1):s>=e[i]&&(r=i);return n.normalizeSlideIndex&&(r<0||typeof r>"u")&&(r=0),r}function ss(t){const e=this,n=e.rtlTranslate?e.translate:-e.translate,{snapGrid:s,params:r,activeIndex:i,realIndex:o,snapIndex:l}=e;let a=t,c;const u=g=>{let m=g-e.virtual.slidesBefore;return m<0&&(m=e.virtual.slides.length+m),m>=e.virtual.slides.length&&(m-=e.virtual.slides.length),m};if(typeof a>"u"&&(a=ns(e)),s.indexOf(n)>=0)c=s.indexOf(n);else{const g=Math.min(r.slidesPerGroupSkip,a);c=g+Math.floor((a-g)/r.slidesPerGroup)}if(c>=s.length&&(c=s.length-1),a===i){c!==l&&(e.snapIndex=c,e.emit("snapIndexChange")),e.params.loop&&e.virtual&&e.params.virtual.enabled&&(e.realIndex=u(a));return}let p;e.virtual&&r.virtual.enabled&&r.loop?p=u(a):e.slides[a]?p=parseInt(e.slides[a].getAttribute("data-swiper-slide-index")||a,10):p=a,Object.assign(e,{previousSnapIndex:l,snapIndex:c,previousRealIndex:o,realIndex:p,previousIndex:i,activeIndex:a}),e.initialized&&Xe(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),o!==p&&e.emit("realIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&e.emit("slideChange")}function is(t){const e=this,n=e.params,s=t.closest(`.${n.slideClass}, swiper-slide`);let r=!1,i;if(s){for(let o=0;o<e.slides.length;o+=1)if(e.slides[o]===s){r=!0,i=o;break}}if(s&&r)e.clickedSlide=s,e.virtual&&e.params.virtual.enabled?e.clickedIndex=parseInt(s.getAttribute("data-swiper-slide-index"),10):e.clickedIndex=i;else{e.clickedSlide=void 0,e.clickedIndex=void 0;return}n.slideToClickedSlide&&e.clickedIndex!==void 0&&e.clickedIndex!==e.activeIndex&&e.slideToClickedSlide()}var rs={updateSize:Un,updateSlides:Jn,updateAutoHeight:Kn,updateSlidesOffset:Zn,updateSlidesProgress:Qn,updateProgress:es,updateSlidesClasses:ts,updateActiveIndex:ss,updateClickedSlide:is};function as(t){t===void 0&&(t=this.isHorizontal()?"x":"y");const e=this,{params:n,rtlTranslate:s,translate:r,wrapperEl:i}=e;if(n.virtualTranslate)return s?-r:r;if(n.cssMode)return r;let o=Dn(i,t);return o+=e.cssOverflowAdjustment(),s&&(o=-o),o||0}function os(t,e){const n=this,{rtlTranslate:s,params:r,wrapperEl:i,progress:o}=n;let l=0,a=0;const c=0;n.isHorizontal()?l=s?-t:t:a=t,r.roundLengths&&(l=Math.floor(l),a=Math.floor(a)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?l:a,r.cssMode?i[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-l:-a:r.virtualTranslate||(n.isHorizontal()?l-=n.cssOverflowAdjustment():a-=n.cssOverflowAdjustment(),i.style.transform=`translate3d(${l}px, ${a}px, ${c}px)`);let u;const p=n.maxTranslate()-n.minTranslate();p===0?u=0:u=(t-n.minTranslate())/p,u!==o&&n.updateProgress(t),n.emit("setTranslate",n.translate,e)}function ls(){return-this.snapGrid[0]}function cs(){return-this.snapGrid[this.snapGrid.length-1]}function ds(t,e,n,s,r){t===void 0&&(t=0),e===void 0&&(e=this.params.speed),n===void 0&&(n=!0),s===void 0&&(s=!0);const i=this,{params:o,wrapperEl:l}=i;if(i.animating&&o.preventInteractionOnTransition)return!1;const a=i.minTranslate(),c=i.maxTranslate();let u;if(s&&t>a?u=a:s&&t<c?u=c:u=t,i.updateProgress(u),o.cssMode){const p=i.isHorizontal();if(e===0)l[p?"scrollLeft":"scrollTop"]=-u;else{if(!i.support.smoothScroll)return $t({swiper:i,targetPosition:-u,side:p?"left":"top"}),!0;l.scrollTo({[p?"left":"top"]:-u,behavior:"smooth"})}return!0}return e===0?(i.setTransition(0),i.setTranslate(u),n&&(i.emit("beforeTransitionStart",e,r),i.emit("transitionEnd"))):(i.setTransition(e),i.setTranslate(u),n&&(i.emit("beforeTransitionStart",e,r),i.emit("transitionStart")),i.animating||(i.animating=!0,i.onTranslateToWrapperTransitionEnd||(i.onTranslateToWrapperTransitionEnd=function(g){!i||i.destroyed||g.target===this&&(i.wrapperEl.removeEventListener("transitionend",i.onTranslateToWrapperTransitionEnd),i.onTranslateToWrapperTransitionEnd=null,delete i.onTranslateToWrapperTransitionEnd,n&&i.emit("transitionEnd"))}),i.wrapperEl.addEventListener("transitionend",i.onTranslateToWrapperTransitionEnd))),!0}var us={getTranslate:as,setTranslate:os,minTranslate:ls,maxTranslate:cs,translateTo:ds};function fs(t,e){const n=this;n.params.cssMode||(n.wrapperEl.style.transitionDuration=`${t}ms`),n.emit("setTransition",t,e)}function zt(t){let{swiper:e,runCallbacks:n,direction:s,step:r}=t;const{activeIndex:i,previousIndex:o}=e;let l=s;if(l||(i>o?l="next":i<o?l="prev":l="reset"),e.emit(`transition${r}`),n&&i!==o){if(l==="reset"){e.emit(`slideResetTransition${r}`);return}e.emit(`slideChangeTransition${r}`),l==="next"?e.emit(`slideNextTransition${r}`):e.emit(`slidePrevTransition${r}`)}}function ps(t,e){t===void 0&&(t=!0);const n=this,{params:s}=n;s.cssMode||(s.autoHeight&&n.updateAutoHeight(),zt({swiper:n,runCallbacks:t,direction:e,step:"Start"}))}function ms(t,e){t===void 0&&(t=!0);const n=this,{params:s}=n;n.animating=!1,!s.cssMode&&(n.setTransition(0),zt({swiper:n,runCallbacks:t,direction:e,step:"End"}))}var hs={setTransition:fs,transitionStart:ps,transitionEnd:ms};function gs(t,e,n,s,r){t===void 0&&(t=0),e===void 0&&(e=this.params.speed),n===void 0&&(n=!0),typeof t=="string"&&(t=parseInt(t,10));const i=this;let o=t;o<0&&(o=0);const{params:l,snapGrid:a,slidesGrid:c,previousIndex:u,activeIndex:p,rtlTranslate:g,wrapperEl:m,enabled:E}=i;if(i.animating&&l.preventInteractionOnTransition||!E&&!s&&!r)return!1;const v=Math.min(i.params.slidesPerGroupSkip,o);let w=v+Math.floor((o-v)/i.params.slidesPerGroup);w>=a.length&&(w=a.length-1);const h=-a[w];if(l.normalizeSlideIndex)for(let d=0;d<c.length;d+=1){const y=-Math.floor(h*100),S=Math.floor(c[d]*100),C=Math.floor(c[d+1]*100);typeof c[d+1]<"u"?y>=S&&y<C-(C-S)/2?o=d:y>=S&&y<C&&(o=d+1):y>=S&&(o=d)}if(i.initialized&&o!==p&&(!i.allowSlideNext&&(g?h>i.translate&&h>i.minTranslate():h<i.translate&&h<i.minTranslate())||!i.allowSlidePrev&&h>i.translate&&h>i.maxTranslate()&&(p||0)!==o))return!1;o!==(u||0)&&n&&i.emit("beforeSlideChangeStart"),i.updateProgress(h);let f;if(o>p?f="next":o<p?f="prev":f="reset",g&&-h===i.translate||!g&&h===i.translate)return i.updateActiveIndex(o),l.autoHeight&&i.updateAutoHeight(),i.updateSlidesClasses(),l.effect!=="slide"&&i.setTranslate(h),f!=="reset"&&(i.transitionStart(n,f),i.transitionEnd(n,f)),!1;if(l.cssMode){const d=i.isHorizontal(),y=g?h:-h;if(e===0){const S=i.virtual&&i.params.virtual.enabled;S&&(i.wrapperEl.style.scrollSnapType="none",i._immediateVirtual=!0),S&&!i._cssModeVirtualInitialSet&&i.params.initialSlide>0?(i._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{m[d?"scrollLeft":"scrollTop"]=y})):m[d?"scrollLeft":"scrollTop"]=y,S&&requestAnimationFrame(()=>{i.wrapperEl.style.scrollSnapType="",i._immediateVirtual=!1})}else{if(!i.support.smoothScroll)return $t({swiper:i,targetPosition:y,side:d?"left":"top"}),!0;m.scrollTo({[d?"left":"top"]:y,behavior:"smooth"})}return!0}return i.setTransition(e),i.setTranslate(h),i.updateActiveIndex(o),i.updateSlidesClasses(),i.emit("beforeTransitionStart",e,s),i.transitionStart(n,f),e===0?i.transitionEnd(n,f):i.animating||(i.animating=!0,i.onSlideToWrapperTransitionEnd||(i.onSlideToWrapperTransitionEnd=function(y){!i||i.destroyed||y.target===this&&(i.wrapperEl.removeEventListener("transitionend",i.onSlideToWrapperTransitionEnd),i.onSlideToWrapperTransitionEnd=null,delete i.onSlideToWrapperTransitionEnd,i.transitionEnd(n,f))}),i.wrapperEl.addEventListener("transitionend",i.onSlideToWrapperTransitionEnd)),!0}function vs(t,e,n,s){t===void 0&&(t=0),e===void 0&&(e=this.params.speed),n===void 0&&(n=!0),typeof t=="string"&&(t=parseInt(t,10));const r=this;let i=t;return r.params.loop&&(r.virtual&&r.params.virtual.enabled?i=i+r.virtual.slidesBefore:i=r.getSlideIndexByData(i)),r.slideTo(i,e,n,s)}function ys(t,e,n){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0);const s=this,{enabled:r,params:i,animating:o}=s;if(!r)return s;let l=i.slidesPerGroup;i.slidesPerView==="auto"&&i.slidesPerGroup===1&&i.slidesPerGroupAuto&&(l=Math.max(s.slidesPerViewDynamic("current",!0),1));const a=s.activeIndex<i.slidesPerGroupSkip?1:l,c=s.virtual&&i.virtual.enabled;if(i.loop){if(o&&!c&&i.loopPreventsSliding)return!1;s.loopFix({direction:"next"}),s._clientLeft=s.wrapperEl.clientLeft}return i.rewind&&s.isEnd?s.slideTo(0,t,e,n):s.slideTo(s.activeIndex+a,t,e,n)}function ws(t,e,n){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0);const s=this,{params:r,snapGrid:i,slidesGrid:o,rtlTranslate:l,enabled:a,animating:c}=s;if(!a)return s;const u=s.virtual&&r.virtual.enabled;if(r.loop){if(c&&!u&&r.loopPreventsSliding)return!1;s.loopFix({direction:"prev"}),s._clientLeft=s.wrapperEl.clientLeft}const p=l?s.translate:-s.translate;function g(h){return h<0?-Math.floor(Math.abs(h)):Math.floor(h)}const m=g(p),E=i.map(h=>g(h));let v=i[E.indexOf(m)-1];if(typeof v>"u"&&r.cssMode){let h;i.forEach((f,d)=>{m>=f&&(h=d)}),typeof h<"u"&&(v=i[h>0?h-1:h])}let w=0;if(typeof v<"u"&&(w=o.indexOf(v),w<0&&(w=s.activeIndex-1),r.slidesPerView==="auto"&&r.slidesPerGroup===1&&r.slidesPerGroupAuto&&(w=w-s.slidesPerViewDynamic("previous",!0)+1,w=Math.max(w,0))),r.rewind&&s.isBeginning){const h=s.params.virtual&&s.params.virtual.enabled&&s.virtual?s.virtual.slides.length-1:s.slides.length-1;return s.slideTo(h,t,e,n)}return s.slideTo(w,t,e,n)}function Es(t,e,n){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0);const s=this;return s.slideTo(s.activeIndex,t,e,n)}function Ss(t,e,n,s){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0),s===void 0&&(s=.5);const r=this;let i=r.activeIndex;const o=Math.min(r.params.slidesPerGroupSkip,i),l=o+Math.floor((i-o)/r.params.slidesPerGroup),a=r.rtlTranslate?r.translate:-r.translate;if(a>=r.snapGrid[l]){const c=r.snapGrid[l],u=r.snapGrid[l+1];a-c>(u-c)*s&&(i+=r.params.slidesPerGroup)}else{const c=r.snapGrid[l-1],u=r.snapGrid[l];a-c<=(u-c)*s&&(i-=r.params.slidesPerGroup)}return i=Math.max(i,0),i=Math.min(i,r.slidesGrid.length-1),r.slideTo(i,t,e,n)}function Ts(){const t=this,{params:e,slidesEl:n}=t,s=e.slidesPerView==="auto"?t.slidesPerViewDynamic():e.slidesPerView;let r=t.clickedIndex,i;const o=t.isElement?"swiper-slide":`.${e.slideClass}`;if(e.loop){if(t.animating)return;i=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(G(n,`${o}[data-swiper-slide-index="${i}"]`)[0]),ce(()=>{t.slideTo(r)})):t.slideTo(r):r>t.slides.length-s?(t.loopFix(),r=t.getSlideIndex(G(n,`${o}[data-swiper-slide-index="${i}"]`)[0]),ce(()=>{t.slideTo(r)})):t.slideTo(r)}else t.slideTo(r)}var bs={slideTo:gs,slideToLoop:vs,slideNext:ys,slidePrev:ws,slideReset:Es,slideToClosest:Ss,slideToClickedSlide:Ts};function Ls(t){const e=this,{params:n,slidesEl:s}=e;if(!n.loop||e.virtual&&e.params.virtual.enabled)return;G(s,`.${n.slideClass}, swiper-slide`).forEach((i,o)=>{i.setAttribute("data-swiper-slide-index",o)}),e.loopFix({slideRealIndex:t,direction:n.centeredSlides?void 0:"next"})}function xs(t){let{slideRealIndex:e,slideTo:n=!0,direction:s,setTranslate:r,activeSlideIndex:i,byController:o,byMousewheel:l}=t===void 0?{}:t;const a=this;if(!a.params.loop)return;a.emit("beforeLoopFix");const{slides:c,allowSlidePrev:u,allowSlideNext:p,slidesEl:g,params:m}=a;if(a.allowSlidePrev=!0,a.allowSlideNext=!0,a.virtual&&m.virtual.enabled){n&&(!m.centeredSlides&&a.snapIndex===0?a.slideTo(a.virtual.slides.length,0,!1,!0):m.centeredSlides&&a.snapIndex<m.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=u,a.allowSlideNext=p,a.emit("loopFix");return}const E=m.slidesPerView==="auto"?a.slidesPerViewDynamic():Math.ceil(parseFloat(m.slidesPerView,10));let v=m.loopedSlides||E;v%m.slidesPerGroup!==0&&(v+=m.slidesPerGroup-v%m.slidesPerGroup),a.loopedSlides=v;const w=[],h=[];let f=a.activeIndex;typeof i>"u"?i=a.getSlideIndex(a.slides.filter(x=>x.classList.contains(m.slideActiveClass))[0]):f=i;const d=s==="next"||!s,y=s==="prev"||!s;let S=0,C=0;if(i<v){S=Math.max(v-i,m.slidesPerGroup);for(let x=0;x<v-i;x+=1){const _=x-Math.floor(x/c.length)*c.length;w.push(c.length-_-1)}}else if(i>a.slides.length-v*2){C=Math.max(i-(a.slides.length-v*2),m.slidesPerGroup);for(let x=0;x<C;x+=1){const _=x-Math.floor(x/c.length)*c.length;h.push(_)}}if(y&&w.forEach(x=>{a.slides[x].swiperLoopMoveDOM=!0,g.prepend(a.slides[x]),a.slides[x].swiperLoopMoveDOM=!1}),d&&h.forEach(x=>{a.slides[x].swiperLoopMoveDOM=!0,g.append(a.slides[x]),a.slides[x].swiperLoopMoveDOM=!1}),a.recalcSlides(),m.slidesPerView==="auto"&&a.updateSlides(),m.watchSlidesProgress&&a.updateSlidesOffset(),n){if(w.length>0&&y)if(typeof e>"u"){const x=a.slidesGrid[f],b=a.slidesGrid[f+S]-x;l?a.setTranslate(a.translate-b):(a.slideTo(f+S,0,!1,!0),r&&(a.touches[a.isHorizontal()?"startX":"startY"]+=b))}else r&&a.slideToLoop(e,0,!1,!0);else if(h.length>0&&d)if(typeof e>"u"){const x=a.slidesGrid[f],b=a.slidesGrid[f-C]-x;l?a.setTranslate(a.translate-b):(a.slideTo(f-C,0,!1,!0),r&&(a.touches[a.isHorizontal()?"startX":"startY"]+=b))}else a.slideToLoop(e,0,!1,!0)}if(a.allowSlidePrev=u,a.allowSlideNext=p,a.controller&&a.controller.control&&!o){const x={slideRealIndex:e,slideTo:!1,direction:s,setTranslate:r,activeSlideIndex:i,byController:!0};Array.isArray(a.controller.control)?a.controller.control.forEach(_=>{!_.destroyed&&_.params.loop&&_.loopFix(x)}):a.controller.control instanceof a.constructor&&a.controller.control.params.loop&&a.controller.control.loopFix(x)}a.emit("loopFix")}function Cs(){const t=this,{params:e,slidesEl:n}=t;if(!e.loop||t.virtual&&t.params.virtual.enabled)return;t.recalcSlides();const s=[];t.slides.forEach(r=>{const i=typeof r.swiperSlideIndex>"u"?r.getAttribute("data-swiper-slide-index")*1:r.swiperSlideIndex;s[i]=r}),t.slides.forEach(r=>{r.removeAttribute("data-swiper-slide-index")}),s.forEach(r=>{n.append(r)}),t.recalcSlides(),t.slideTo(t.realIndex,0)}var Ms={loopCreate:Ls,loopFix:xs,loopDestroy:Cs};function _s(t){const e=this;if(!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)return;const n=e.params.touchEventsTarget==="container"?e.el:e.wrapperEl;e.isElement&&(e.__preventObserver__=!0),n.style.cursor="move",n.style.cursor=t?"grabbing":"grab",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1})}function Ps(){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 As={setGrabCursor:_s,unsetGrabCursor:Ps};function Os(t,e){e===void 0&&(e=this);function n(s){if(!s||s===H()||s===B())return null;s.assignedSlot&&(s=s.assignedSlot);const r=s.closest(t);return!r&&!s.getRootNode?null:r||n(s.getRootNode().host)}return n(e)}function Is(t){const e=this,n=H(),s=B(),r=e.touchEventsData;r.evCache.push(t);const{params:i,touches:o,enabled:l}=e;if(!l||!i.simulateTouch&&t.pointerType==="mouse"||e.animating&&i.preventInteractionOnTransition)return;!e.animating&&i.cssMode&&i.loop&&e.loopFix();let a=t;a.originalEvent&&(a=a.originalEvent);let c=a.target;if(i.touchEventsTarget==="wrapper"&&!e.wrapperEl.contains(c)||"which"in a&&a.which===3||"button"in a&&a.button>0||r.isTouched&&r.isMoved)return;const u=!!i.noSwipingClass&&i.noSwipingClass!=="",p=t.composedPath?t.composedPath():t.path;u&&a.target&&a.target.shadowRoot&&p&&(c=p[0]);const g=i.noSwipingSelector?i.noSwipingSelector:`.${i.noSwipingClass}`,m=!!(a.target&&a.target.shadowRoot);if(i.noSwiping&&(m?Os(g,c):c.closest(g))){e.allowClick=!0;return}if(i.swipeHandler&&!c.closest(i.swipeHandler))return;o.currentX=a.pageX,o.currentY=a.pageY;const E=o.currentX,v=o.currentY,w=i.edgeSwipeDetection||i.iOSEdgeSwipeDetection,h=i.edgeSwipeThreshold||i.iOSEdgeSwipeThreshold;if(w&&(E<=h||E>=s.innerWidth-h))if(w==="prevent")t.preventDefault();else return;Object.assign(r,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),o.startX=E,o.startY=v,r.touchStartTime=F(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,i.threshold>0&&(r.allowThresholdMove=!1);let f=!0;c.matches(r.focusableElements)&&(f=!1,c.nodeName==="SELECT"&&(r.isTouched=!1)),n.activeElement&&n.activeElement.matches(r.focusableElements)&&n.activeElement!==c&&n.activeElement.blur();const d=f&&e.allowTouchMove&&i.touchStartPreventDefault;(i.touchStartForcePreventDefault||d)&&!c.isContentEditable&&a.preventDefault(),i.freeMode&&i.freeMode.enabled&&e.freeMode&&e.animating&&!i.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",a)}function ks(t){const e=H(),n=this,s=n.touchEventsData,{params:r,touches:i,rtlTranslate:o,enabled:l}=n;if(!l||!r.simulateTouch&&t.pointerType==="mouse")return;let a=t;if(a.originalEvent&&(a=a.originalEvent),!s.isTouched){s.startMoving&&s.isScrolling&&n.emit("touchMoveOpposite",a);return}const c=s.evCache.findIndex(C=>C.pointerId===a.pointerId);c>=0&&(s.evCache[c]=a);const u=s.evCache.length>1?s.evCache[0]:a,p=u.pageX,g=u.pageY;if(a.preventedByNestedSwiper){i.startX=p,i.startY=g;return}if(!n.allowTouchMove){a.target.matches(s.focusableElements)||(n.allowClick=!1),s.isTouched&&(Object.assign(i,{startX:p,startY:g,prevX:n.touches.currentX,prevY:n.touches.currentY,currentX:p,currentY:g}),s.touchStartTime=F());return}if(r.touchReleaseOnEdges&&!r.loop){if(n.isVertical()){if(g<i.startY&&n.translate<=n.maxTranslate()||g>i.startY&&n.translate>=n.minTranslate()){s.isTouched=!1,s.isMoved=!1;return}}else if(p<i.startX&&n.translate<=n.maxTranslate()||p>i.startX&&n.translate>=n.minTranslate())return}if(e.activeElement&&a.target===e.activeElement&&a.target.matches(s.focusableElements)){s.isMoved=!0,n.allowClick=!1;return}if(s.allowTouchCallbacks&&n.emit("touchMove",a),a.targetTouches&&a.targetTouches.length>1)return;i.currentX=p,i.currentY=g;const m=i.currentX-i.startX,E=i.currentY-i.startY;if(n.params.threshold&&Math.sqrt(m**2+E**2)<n.params.threshold)return;if(typeof s.isScrolling>"u"){let C;n.isHorizontal()&&i.currentY===i.startY||n.isVertical()&&i.currentX===i.startX?s.isScrolling=!1:m*m+E*E>=25&&(C=Math.atan2(Math.abs(E),Math.abs(m))*180/Math.PI,s.isScrolling=n.isHorizontal()?C>r.touchAngle:90-C>r.touchAngle)}if(s.isScrolling&&n.emit("touchMoveOpposite",a),typeof s.startMoving>"u"&&(i.currentX!==i.startX||i.currentY!==i.startY)&&(s.startMoving=!0),s.isScrolling||n.zoom&&n.params.zoom&&n.params.zoom.enabled&&s.evCache.length>1){s.isTouched=!1;return}if(!s.startMoving)return;n.allowClick=!1,!r.cssMode&&a.cancelable&&a.preventDefault(),r.touchMoveStopPropagation&&!r.nested&&a.stopPropagation();let v=n.isHorizontal()?m:E,w=n.isHorizontal()?i.currentX-i.previousX:i.currentY-i.previousY;r.oneWayMovement&&(v=Math.abs(v)*(o?1:-1),w=Math.abs(w)*(o?1:-1)),i.diff=v,v*=r.touchRatio,o&&(v=-v,w=-w);const h=n.touchesDirection;n.swipeDirection=v>0?"prev":"next",n.touchesDirection=w>0?"prev":"next";const f=n.params.loop&&!r.cssMode;if(!s.isMoved){if(f&&n.loopFix({direction:n.swipeDirection}),s.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const C=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});n.wrapperEl.dispatchEvent(C)}s.allowMomentumBounce=!1,r.grabCursor&&(n.allowSlideNext===!0||n.allowSlidePrev===!0)&&n.setGrabCursor(!0),n.emit("sliderFirstMove",a)}let d;s.isMoved&&h!==n.touchesDirection&&f&&Math.abs(v)>=1&&(n.loopFix({direction:n.swipeDirection,setTranslate:!0}),d=!0),n.emit("sliderMove",a),s.isMoved=!0,s.currentTranslate=v+s.startTranslate;let y=!0,S=r.resistanceRatio;if(r.touchReleaseOnEdges&&(S=0),v>0?(f&&!d&&s.currentTranslate>(r.centeredSlides?n.minTranslate()-n.size/2:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),s.currentTranslate>n.minTranslate()&&(y=!1,r.resistance&&(s.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+s.startTranslate+v)**S))):v<0&&(f&&!d&&s.currentTranslate<(r.centeredSlides?n.maxTranslate()+n.size/2:n.maxTranslate())&&n.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:n.slides.length-(r.slidesPerView==="auto"?n.slidesPerViewDynamic():Math.ceil(parseFloat(r.slidesPerView,10)))}),s.currentTranslate<n.maxTranslate()&&(y=!1,r.resistance&&(s.currentTranslate=n.maxTranslate()+1-(n.maxTranslate()-s.startTranslate-v)**S))),y&&(a.preventedByNestedSwiper=!0),!n.allowSlideNext&&n.swipeDirection==="next"&&s.currentTranslate<s.startTranslate&&(s.currentTranslate=s.startTranslate),!n.allowSlidePrev&&n.swipeDirection==="prev"&&s.currentTranslate>s.startTranslate&&(s.currentTranslate=s.startTranslate),!n.allowSlidePrev&&!n.allowSlideNext&&(s.currentTranslate=s.startTranslate),r.threshold>0)if(Math.abs(v)>r.threshold||s.allowThresholdMove){if(!s.allowThresholdMove){s.allowThresholdMove=!0,i.startX=i.currentX,i.startY=i.currentY,s.currentTranslate=s.startTranslate,i.diff=n.isHorizontal()?i.currentX-i.startX:i.currentY-i.startY;return}}else{s.currentTranslate=s.startTranslate;return}!r.followFinger||r.cssMode||((r.freeMode&&r.freeMode.enabled&&n.freeMode||r.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),r.freeMode&&r.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(s.currentTranslate),n.setTranslate(s.currentTranslate))}function qs(t){const e=this,n=e.touchEventsData,s=n.evCache.findIndex(d=>d.pointerId===t.pointerId);if(s>=0&&n.evCache.splice(s,1),["pointercancel","pointerout","pointerleave"].includes(t.type)&&!(t.type==="pointercancel"&&(e.browser.isSafari||e.browser.isWebView)))return;const{params:r,touches:i,rtlTranslate:o,slidesGrid:l,enabled:a}=e;if(!a||!r.simulateTouch&&t.pointerType==="mouse")return;let c=t;if(c.originalEvent&&(c=c.originalEvent),n.allowTouchCallbacks&&e.emit("touchEnd",c),n.allowTouchCallbacks=!1,!n.isTouched){n.isMoved&&r.grabCursor&&e.setGrabCursor(!1),n.isMoved=!1,n.startMoving=!1;return}r.grabCursor&&n.isMoved&&n.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);const u=F(),p=u-n.touchStartTime;if(e.allowClick){const d=c.path||c.composedPath&&c.composedPath();e.updateClickedSlide(d&&d[0]||c.target),e.emit("tap click",c),p<300&&u-n.lastClickTime<300&&e.emit("doubleTap doubleClick",c)}if(n.lastClickTime=F(),ce(()=>{e.destroyed||(e.allowClick=!0)}),!n.isTouched||!n.isMoved||!e.swipeDirection||i.diff===0||n.currentTranslate===n.startTranslate){n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;return}n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;let g;if(r.followFinger?g=o?e.translate:-e.translate:g=-n.currentTranslate,r.cssMode)return;if(r.freeMode&&r.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:g});return}let m=0,E=e.slidesSizesGrid[0];for(let d=0;d<l.length;d+=d<r.slidesPerGroupSkip?1:r.slidesPerGroup){const y=d<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;typeof l[d+y]<"u"?g>=l[d]&&g<l[d+y]&&(m=d,E=l[d+y]-l[d]):g>=l[d]&&(m=d,E=l[l.length-1]-l[l.length-2])}let v=null,w=null;r.rewind&&(e.isBeginning?w=r.virtual&&r.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(v=0));const h=(g-l[m])/E,f=m<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;if(p>r.longSwipesMs){if(!r.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(h>=r.longSwipesRatio?e.slideTo(r.rewind&&e.isEnd?v:m+f):e.slideTo(m)),e.swipeDirection==="prev"&&(h>1-r.longSwipesRatio?e.slideTo(m+f):w!==null&&h<0&&Math.abs(h)>r.longSwipesRatio?e.slideTo(w):e.slideTo(m))}else{if(!r.shortSwipes){e.slideTo(e.activeIndex);return}e.navigation&&(c.target===e.navigation.nextEl||c.target===e.navigation.prevEl)?c.target===e.navigation.nextEl?e.slideTo(m+f):e.slideTo(m):(e.swipeDirection==="next"&&e.slideTo(v!==null?v:m+f),e.swipeDirection==="prev"&&e.slideTo(w!==null?w:m))}}function ct(){const t=this,{params:e,el:n}=t;if(n&&n.offsetWidth===0)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:s,allowSlidePrev:r,snapGrid:i}=t,o=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses();const l=o&&e.loop;(e.slidesPerView==="auto"||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides&&!l?t.slideTo(t.slides.length-1,0,!1,!0):t.params.loop&&!o?t.slideToLoop(t.realIndex,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&(clearTimeout(t.autoplay.resizeTimeout),t.autoplay.resizeTimeout=setTimeout(()=>{t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.resume()},500)),t.allowSlidePrev=r,t.allowSlideNext=s,t.params.watchOverflow&&i!==t.snapGrid&&t.checkOverflow()}function Rs(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function Ds(){const t=this,{wrapperEl:e,rtlTranslate:n,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 i=t.maxTranslate()-t.minTranslate();i===0?r=0:r=(t.translate-t.minTranslate())/i,r!==t.progress&&t.updateProgress(n?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}function Bs(t){const e=this;Ee(e,t.target),!(e.params.cssMode||e.params.slidesPerView!=="auto"&&!e.params.autoHeight)&&e.update()}let dt=!1;function $s(){}const Ht=(t,e)=>{const n=H(),{params:s,el:r,wrapperEl:i,device:o}=t,l=!!s.nested,a=e==="on"?"addEventListener":"removeEventListener",c=e;r[a]("pointerdown",t.onTouchStart,{passive:!1}),n[a]("pointermove",t.onTouchMove,{passive:!1,capture:l}),n[a]("pointerup",t.onTouchEnd,{passive:!0}),n[a]("pointercancel",t.onTouchEnd,{passive:!0}),n[a]("pointerout",t.onTouchEnd,{passive:!0}),n[a]("pointerleave",t.onTouchEnd,{passive:!0}),(s.preventClicks||s.preventClicksPropagation)&&r[a]("click",t.onClick,!0),s.cssMode&&i[a]("scroll",t.onScroll),s.updateOnWindowResize?t[c](o.ios||o.android?"resize orientationchange observerUpdate":"resize observerUpdate",ct,!0):t[c]("observerUpdate",ct,!0),r[a]("load",t.onLoad,{capture:!0})};function js(){const t=this,e=H(),{params:n}=t;t.onTouchStart=Is.bind(t),t.onTouchMove=ks.bind(t),t.onTouchEnd=qs.bind(t),n.cssMode&&(t.onScroll=Ds.bind(t)),t.onClick=Rs.bind(t),t.onLoad=Bs.bind(t),dt||(e.addEventListener("touchstart",$s),dt=!0),Ht(t,"on")}function Ns(){Ht(this,"off")}var zs={attachEvents:js,detachEvents:Ns};const ut=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;function Hs(){const t=this,{realIndex:e,initialized:n,params:s,el:r}=t,i=s.breakpoints;if(!i||i&&Object.keys(i).length===0)return;const o=t.getBreakpoint(i,t.params.breakpointsBase,t.el);if(!o||t.currentBreakpoint===o)return;const a=(o in i?i[o]:void 0)||t.originalParams,c=ut(t,s),u=ut(t,a),p=s.enabled;c&&!u?(r.classList.remove(`${s.containerModifierClass}grid`,`${s.containerModifierClass}grid-column`),t.emitContainerClasses()):!c&&u&&(r.classList.add(`${s.containerModifierClass}grid`),(a.grid.fill&&a.grid.fill==="column"||!a.grid.fill&&s.grid.fill==="column")&&r.classList.add(`${s.containerModifierClass}grid-column`),t.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(v=>{if(typeof a[v]>"u")return;const w=s[v]&&s[v].enabled,h=a[v]&&a[v].enabled;w&&!h&&t[v].disable(),!w&&h&&t[v].enable()});const g=a.direction&&a.direction!==s.direction,m=s.loop&&(a.slidesPerView!==s.slidesPerView||g);g&&n&&t.changeDirection(),z(t.params,a);const E=t.params.enabled;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),p&&!E?t.disable():!p&&E&&t.enable(),t.currentBreakpoint=o,t.emit("_beforeBreakpoint",a),m&&n&&(t.loopDestroy(),t.loopCreate(e),t.updateSlides()),t.emit("breakpoint",a)}function Fs(t,e,n){if(e===void 0&&(e="window"),!t||e==="container"&&!n)return;let s=!1;const r=B(),i=e==="window"?r.innerHeight:n.clientHeight,o=Object.keys(t).map(l=>{if(typeof l=="string"&&l.indexOf("@")===0){const a=parseFloat(l.substr(1));return{value:i*a,point:l}}return{value:l,point:l}});o.sort((l,a)=>parseInt(l.value,10)-parseInt(a.value,10));for(let l=0;l<o.length;l+=1){const{point:a,value:c}=o[l];e==="window"?r.matchMedia(`(min-width: ${c}px)`).matches&&(s=a):c<=n.clientWidth&&(s=a)}return s||"max"}var Vs={setBreakpoint:Hs,getBreakpoint:Fs};function Gs(t,e){const n=[];return t.forEach(s=>{typeof s=="object"?Object.keys(s).forEach(r=>{s[r]&&n.push(e+r)}):typeof s=="string"&&n.push(e+s)}),n}function Ws(){const t=this,{classNames:e,params:n,rtl:s,el:r,device:i}=t,o=Gs(["initialized",n.direction,{"free-mode":t.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:s},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&n.grid.fill==="column"},{android:i.android},{ios:i.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);e.push(...o),r.classList.add(...e),t.emitContainerClasses()}function Xs(){const t=this,{el:e,classNames:n}=t;e.classList.remove(...n),t.emitContainerClasses()}var Ys={addClasses:Ws,removeClasses:Xs};function Us(){const t=this,{isLocked:e,params:n}=t,{slidesOffsetBefore:s}=n;if(s){const r=t.slides.length-1,i=t.slidesGrid[r]+t.slidesSizesGrid[r]+s*2;t.isLocked=t.size>i}else t.isLocked=t.snapGrid.length===1;n.allowSlideNext===!0&&(t.allowSlideNext=!t.isLocked),n.allowSlidePrev===!0&&(t.allowSlidePrev=!t.isLocked),e&&e!==t.isLocked&&(t.isEnd=!1),e!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock")}var Js={checkOverflow:Us},ft={init:!0,direction:"horizontal",oneWayMovement:!1,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:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopedSlides:null,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function Ks(t,e){return function(s){s===void 0&&(s={});const r=Object.keys(s)[0],i=s[r];if(typeof i!="object"||i===null){z(e,s);return}if(["navigation","pagination","scrollbar"].indexOf(r)>=0&&t[r]===!0&&(t[r]={auto:!0}),!(r in t&&"enabled"in i)){z(e,s);return}t[r]===!0&&(t[r]={enabled:!0}),typeof t[r]=="object"&&!("enabled"in t[r])&&(t[r].enabled=!0),t[r]||(t[r]={enabled:!1}),z(e,s)}}const Re={eventsEmitter:Yn,update:rs,translate:us,transition:hs,slide:bs,loop:Ms,grabCursor:As,events:zs,breakpoints:Vs,checkOverflow:Js,classes:Ys},De={};class D{constructor(){let e,n;for(var s=arguments.length,r=new Array(s),i=0;i<s;i++)r[i]=arguments[i];r.length===1&&r[0].constructor&&Object.prototype.toString.call(r[0]).slice(8,-1)==="Object"?n=r[0]:[e,n]=r,n||(n={}),n=z({},n),e&&!n.el&&(n.el=e);const o=H();if(n.el&&typeof n.el=="string"&&o.querySelectorAll(n.el).length>1){const u=[];return o.querySelectorAll(n.el).forEach(p=>{const g=z({},n,{el:p});u.push(new D(g))}),u}const l=this;l.__swiper__=!0,l.support=Nt(),l.device=Fn({userAgent:n.userAgent}),l.browser=Gn(),l.eventsListeners={},l.eventsAnyListeners=[],l.modules=[...l.__modules__],n.modules&&Array.isArray(n.modules)&&l.modules.push(...n.modules);const a={};l.modules.forEach(u=>{u({params:n,swiper:l,extendParams:Ks(n,a),on:l.on.bind(l),once:l.once.bind(l),off:l.off.bind(l),emit:l.emit.bind(l)})});const c=z({},ft,a);return l.params=z({},c,De,n),l.originalParams=z({},l.params),l.passedParams=z({},n),l.params&&l.params.on&&Object.keys(l.params.on).forEach(u=>{l.on(u,l.params.on[u])}),l.params&&l.params.onAny&&l.onAny(l.params.onAny),Object.assign(l,{enabled:l.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return l.params.direction==="horizontal"},isVertical(){return l.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:l.params.allowSlideNext,allowSlidePrev:l.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:l.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,evCache:[]},allowClick:!0,allowTouchMove:l.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),l.emit("_swiper"),l.params.init&&l.init(),l}getSlideIndex(e){const{slidesEl:n,params:s}=this,r=G(n,`.${s.slideClass}, swiper-slide`),i=Te(r[0]);return Te(e)-i}getSlideIndexByData(e){return this.getSlideIndex(this.slides.filter(n=>n.getAttribute("data-swiper-slide-index")*1===e)[0])}recalcSlides(){const e=this,{slidesEl:n,params:s}=e;e.slides=G(n,`.${s.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,n){const s=this;e=Math.min(Math.max(e,0),1);const r=s.minTranslate(),o=(s.maxTranslate()-r)*e+r;s.translateTo(o,typeof n>"u"?0:n),s.updateActiveIndex(),s.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const n=e.el.className.split(" ").filter(s=>s.indexOf("swiper")===0||s.indexOf(e.params.containerModifierClass)===0);e.emit("_containerClasses",n.join(" "))}getSlideClasses(e){const n=this;return n.destroyed?"":e.className.split(" ").filter(s=>s.indexOf("swiper-slide")===0||s.indexOf(n.params.slideClass)===0).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const n=[];e.slides.forEach(s=>{const r=e.getSlideClasses(s);n.push({slideEl:s,classNames:r}),e.emit("_slideClass",s,r)}),e.emit("_slideClasses",n)}slidesPerViewDynamic(e,n){e===void 0&&(e="current"),n===void 0&&(n=!1);const s=this,{params:r,slides:i,slidesGrid:o,slidesSizesGrid:l,size:a,activeIndex:c}=s;let u=1;if(r.centeredSlides){let p=i[c]?i[c].swiperSlideSize:0,g;for(let m=c+1;m<i.length;m+=1)i[m]&&!g&&(p+=i[m].swiperSlideSize,u+=1,p>a&&(g=!0));for(let m=c-1;m>=0;m-=1)i[m]&&!g&&(p+=i[m].swiperSlideSize,u+=1,p>a&&(g=!0))}else if(e==="current")for(let p=c+1;p<i.length;p+=1)(n?o[p]+l[p]-o[c]<a:o[p]-o[c]<a)&&(u+=1);else for(let p=c-1;p>=0;p-=1)o[c]-o[p]<a&&(u+=1);return u}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:n,params:s}=e;s.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach(o=>{o.complete&&Ee(e,o)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function r(){const o=e.rtlTranslate?e.translate*-1:e.translate,l=Math.min(Math.max(o,e.maxTranslate()),e.minTranslate());e.setTranslate(l),e.updateActiveIndex(),e.updateSlidesClasses()}let i;if(s.freeMode&&s.freeMode.enabled&&!s.cssMode)r(),s.autoHeight&&e.updateAutoHeight();else{if((s.slidesPerView==="auto"||s.slidesPerView>1)&&e.isEnd&&!s.centeredSlides){const o=e.virtual&&s.virtual.enabled?e.virtual.slides:e.slides;i=e.slideTo(o.length-1,0,!1,!0)}else i=e.slideTo(e.activeIndex,0,!1,!0);i||r()}s.watchOverflow&&n!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,n){n===void 0&&(n=!0);const s=this,r=s.params.direction;return e||(e=r==="horizontal"?"vertical":"horizontal"),e===r||e!=="horizontal"&&e!=="vertical"||(s.el.classList.remove(`${s.params.containerModifierClass}${r}`),s.el.classList.add(`${s.params.containerModifierClass}${e}`),s.emitContainerClasses(),s.params.direction=e,s.slides.forEach(i=>{e==="vertical"?i.style.width="":i.style.height=""}),s.emit("changeDirection"),n&&s.update()),s}changeLanguageDirection(e){const n=this;n.rtl&&e==="rtl"||!n.rtl&&e==="ltr"||(n.rtl=e==="rtl",n.rtlTranslate=n.params.direction==="horizontal"&&n.rtl,n.rtl?(n.el.classList.add(`${n.params.containerModifierClass}rtl`),n.el.dir="rtl"):(n.el.classList.remove(`${n.params.containerModifierClass}rtl`),n.el.dir="ltr"),n.update())}mount(e){const n=this;if(n.mounted)return!0;let s=e||n.params.el;if(typeof s=="string"&&(s=document.querySelector(s)),!s)return!1;s.swiper=n,s.parentNode&&s.parentNode.host&&(n.isElement=!0);const r=()=>`.${(n.params.wrapperClass||"").trim().split(" ").join(".")}`;let o=(()=>s&&s.shadowRoot&&s.shadowRoot.querySelector?s.shadowRoot.querySelector(r()):G(s,r())[0])();return!o&&n.params.createElements&&(o=jt("div",n.params.wrapperClass),s.append(o),G(s,`.${n.params.slideClass}`).forEach(l=>{o.append(l)})),Object.assign(n,{el:s,wrapperEl:o,slidesEl:n.isElement?s.parentNode.host:o,hostEl:n.isElement?s.parentNode.host:s,mounted:!0,rtl:s.dir.toLowerCase()==="rtl"||X(s,"direction")==="rtl",rtlTranslate:n.params.direction==="horizontal"&&(s.dir.toLowerCase()==="rtl"||X(s,"direction")==="rtl"),wrongRTL:X(o,"display")==="-webkit-box"}),!0}init(e){const n=this;return n.initialized||n.mount(e)===!1||(n.emit("beforeInit"),n.params.breakpoints&&n.setBreakpoint(),n.addClasses(),n.updateSize(),n.updateSlides(),n.params.watchOverflow&&n.checkOverflow(),n.params.grabCursor&&n.enabled&&n.setGrabCursor(),n.params.loop&&n.virtual&&n.params.virtual.enabled?n.slideTo(n.params.initialSlide+n.virtual.slidesBefore,0,n.params.runCallbacksOnInit,!1,!0):n.slideTo(n.params.initialSlide,0,n.params.runCallbacksOnInit,!1,!0),n.params.loop&&n.loopCreate(),n.attachEvents(),[...n.el.querySelectorAll('[loading="lazy"]')].forEach(r=>{r.complete?Ee(n,r):r.addEventListener("load",i=>{Ee(n,i.target)})}),Xe(n),n.initialized=!0,Xe(n),n.emit("init"),n.emit("afterInit")),n}destroy(e,n){e===void 0&&(e=!0),n===void 0&&(n=!0);const s=this,{params:r,el:i,wrapperEl:o,slides:l}=s;return typeof s.params>"u"||s.destroyed||(s.emit("beforeDestroy"),s.initialized=!1,s.detachEvents(),r.loop&&s.loopDestroy(),n&&(s.removeClasses(),i.removeAttribute("style"),o.removeAttribute("style"),l&&l.length&&l.forEach(a=>{a.classList.remove(r.slideVisibleClass,r.slideActiveClass,r.slideNextClass,r.slidePrevClass),a.removeAttribute("style"),a.removeAttribute("data-swiper-slide-index")})),s.emit("destroy"),Object.keys(s.eventsListeners).forEach(a=>{s.off(a)}),e!==!1&&(s.el.swiper=null,qn(s)),s.destroyed=!0),null}static extendDefaults(e){z(De,e)}static get extendedDefaults(){return De}static get defaults(){return ft}static installModule(e){D.prototype.__modules__||(D.prototype.__modules__=[]);const n=D.prototype.__modules__;typeof e=="function"&&n.indexOf(e)<0&&n.push(e)}static use(e){return Array.isArray(e)?(e.forEach(n=>D.installModule(n)),D):(D.installModule(e),D)}}Object.keys(Re).forEach(t=>{Object.keys(Re[t]).forEach(e=>{D.prototype[e]=Re[t][e]})});D.use([Wn,Xn]);function Zs(t){let{swiper:e,extendParams:n,on:s,emit:r}=t;const i=H(),o=B();e.keyboard={enabled:!1},n({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}});function l(u){if(!e.enabled)return;const{rtlTranslate:p}=e;let g=u;g.originalEvent&&(g=g.originalEvent);const m=g.keyCode||g.charCode,E=e.params.keyboard.pageUpDown,v=E&&m===33,w=E&&m===34,h=m===37,f=m===39,d=m===38,y=m===40;if(!e.allowSlideNext&&(e.isHorizontal()&&f||e.isVertical()&&y||w)||!e.allowSlidePrev&&(e.isHorizontal()&&h||e.isVertical()&&d||v))return!1;if(!(g.shiftKey||g.altKey||g.ctrlKey||g.metaKey)&&!(i.activeElement&&i.activeElement.nodeName&&(i.activeElement.nodeName.toLowerCase()==="input"||i.activeElement.nodeName.toLowerCase()==="textarea"))){if(e.params.keyboard.onlyInViewport&&(v||w||h||f||d||y)){let S=!1;if(be(e.el,`.${e.params.slideClass}, swiper-slide`).length>0&&be(e.el,`.${e.params.slideActiveClass}`).length===0)return;const C=e.el,x=C.clientWidth,_=C.clientHeight,b=o.innerWidth,O=o.innerHeight,T=$n(C);p&&(T.left-=C.scrollLeft);const M=[[T.left,T.top],[T.left+x,T.top],[T.left,T.top+_],[T.left+x,T.top+_]];for(let L=0;L<M.length;L+=1){const P=M[L];if(P[0]>=0&&P[0]<=b&&P[1]>=0&&P[1]<=O){if(P[0]===0&&P[1]===0)continue;S=!0}}if(!S)return}e.isHorizontal()?((v||w||h||f)&&(g.preventDefault?g.preventDefault():g.returnValue=!1),((w||f)&&!p||(v||h)&&p)&&e.slideNext(),((v||h)&&!p||(w||f)&&p)&&e.slidePrev()):((v||w||d||y)&&(g.preventDefault?g.preventDefault():g.returnValue=!1),(w||y)&&e.slideNext(),(v||d)&&e.slidePrev()),r("keyPress",m)}}function a(){e.keyboard.enabled||(i.addEventListener("keydown",l),e.keyboard.enabled=!0)}function c(){e.keyboard.enabled&&(i.removeEventListener("keydown",l),e.keyboard.enabled=!1)}s("init",()=>{e.params.keyboard.enabled&&a()}),s("destroy",()=>{e.keyboard.enabled&&c()}),Object.assign(e.keyboard,{enable:a,disable:c})}function Qs(t){let{swiper:e,extendParams:n,on:s,emit:r}=t;const i=B();n({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}}),e.mousewheel={enabled:!1};let o,l=F(),a;const c=[];function u(d){let x=0,_=0,b=0,O=0;return"detail"in d&&(_=d.detail),"wheelDelta"in d&&(_=-d.wheelDelta/120),"wheelDeltaY"in d&&(_=-d.wheelDeltaY/120),"wheelDeltaX"in d&&(x=-d.wheelDeltaX/120),"axis"in d&&d.axis===d.HORIZONTAL_AXIS&&(x=_,_=0),b=x*10,O=_*10,"deltaY"in d&&(O=d.deltaY),"deltaX"in d&&(b=d.deltaX),d.shiftKey&&!b&&(b=O,O=0),(b||O)&&d.deltaMode&&(d.deltaMode===1?(b*=40,O*=40):(b*=800,O*=800)),b&&!x&&(x=b<1?-1:1),O&&!_&&(_=O<1?-1:1),{spinX:x,spinY:_,pixelX:b,pixelY:O}}function p(){e.enabled&&(e.mouseEntered=!0)}function g(){e.enabled&&(e.mouseEntered=!1)}function m(d){return e.params.mousewheel.thresholdDelta&&d.delta<e.params.mousewheel.thresholdDelta||e.params.mousewheel.thresholdTime&&F()-l<e.params.mousewheel.thresholdTime?!1:d.delta>=6&&F()-l<60?!0:(d.direction<0?(!e.isEnd||e.params.loop)&&!e.animating&&(e.slideNext(),r("scroll",d.raw)):(!e.isBeginning||e.params.loop)&&!e.animating&&(e.slidePrev(),r("scroll",d.raw)),l=new i.Date().getTime(),!1)}function E(d){const y=e.params.mousewheel;if(d.direction<0){if(e.isEnd&&!e.params.loop&&y.releaseOnEdges)return!0}else if(e.isBeginning&&!e.params.loop&&y.releaseOnEdges)return!0;return!1}function v(d){let y=d,S=!0;if(!e.enabled||d.target.closest(`.${e.params.mousewheel.noMousewheelClass}`))return;const C=e.params.mousewheel;e.params.cssMode&&y.preventDefault();let x=e.el;e.params.mousewheel.eventsTarget!=="container"&&(x=document.querySelector(e.params.mousewheel.eventsTarget));const _=x&&x.contains(y.target);if(!e.mouseEntered&&!_&&!C.releaseOnEdges)return!0;y.originalEvent&&(y=y.originalEvent);let b=0;const O=e.rtlTranslate?-1:1,T=u(y);if(C.forceToAxis)if(e.isHorizontal())if(Math.abs(T.pixelX)>Math.abs(T.pixelY))b=-T.pixelX*O;else return!0;else if(Math.abs(T.pixelY)>Math.abs(T.pixelX))b=-T.pixelY;else return!0;else b=Math.abs(T.pixelX)>Math.abs(T.pixelY)?-T.pixelX*O:-T.pixelY;if(b===0)return!0;C.invert&&(b=-b);let M=e.getTranslate()+b*C.sensitivity;if(M>=e.minTranslate()&&(M=e.minTranslate()),M<=e.maxTranslate()&&(M=e.maxTranslate()),S=e.params.loop?!0:!(M===e.minTranslate()||M===e.maxTranslate()),S&&e.params.nested&&y.stopPropagation(),!e.params.freeMode||!e.params.freeMode.enabled){const L={time:F(),delta:Math.abs(b),direction:Math.sign(b),raw:d};c.length>=2&&c.shift();const P=c.length?c[c.length-1]:void 0;if(c.push(L),P?(L.direction!==P.direction||L.delta>P.delta||L.time>P.time+150)&&m(L):m(L),E(L))return!0}else{const L={time:F(),delta:Math.abs(b),direction:Math.sign(b)},P=a&&L.time<a.time+500&&L.delta<=a.delta&&L.direction===a.direction;if(!P){a=void 0;let k=e.getTranslate()+b*C.sensitivity;const N=e.isBeginning,I=e.isEnd;if(k>=e.minTranslate()&&(k=e.minTranslate()),k<=e.maxTranslate()&&(k=e.maxTranslate()),e.setTransition(0),e.setTranslate(k),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses(),(!N&&e.isBeginning||!I&&e.isEnd)&&e.updateSlidesClasses(),e.params.loop&&e.loopFix({direction:L.direction<0?"next":"prev",byMousewheel:!0}),e.params.freeMode.sticky){clearTimeout(o),o=void 0,c.length>=15&&c.shift();const $=c.length?c[c.length-1]:void 0,q=c[0];if(c.push(L),$&&(L.delta>$.delta||L.direction!==$.direction))c.splice(0);else if(c.length>=15&&L.time-q.time<500&&q.delta-L.delta>=1&&L.delta<=6){const V=b>0?.8:.2;a=L,c.splice(0),o=ce(()=>{e.slideToClosest(e.params.speed,!0,void 0,V)},0)}o||(o=ce(()=>{a=L,c.splice(0),e.slideToClosest(e.params.speed,!0,void 0,.5)},500))}if(P||r("scroll",y),e.params.autoplay&&e.params.autoplayDisableOnInteraction&&e.autoplay.stop(),k===e.minTranslate()||k===e.maxTranslate())return!0}}return y.preventDefault?y.preventDefault():y.returnValue=!1,!1}function w(d){let y=e.el;e.params.mousewheel.eventsTarget!=="container"&&(y=document.querySelector(e.params.mousewheel.eventsTarget)),y[d]("mouseenter",p),y[d]("mouseleave",g),y[d]("wheel",v)}function h(){return e.params.cssMode?(e.wrapperEl.removeEventListener("wheel",v),!0):e.mousewheel.enabled?!1:(w("addEventListener"),e.mousewheel.enabled=!0,!0)}function f(){return e.params.cssMode?(e.wrapperEl.addEventListener(event,v),!0):e.mousewheel.enabled?(w("removeEventListener"),e.mousewheel.enabled=!1,!0):!1}s("init",()=>{!e.params.mousewheel.enabled&&e.params.cssMode&&f(),e.params.mousewheel.enabled&&h()}),s("destroy",()=>{e.params.cssMode&&h(),e.mousewheel.enabled&&f()}),Object.assign(e.mousewheel,{enable:h,disable:f})}function Ft(t,e,n,s){return t.params.createElements&&Object.keys(s).forEach(r=>{if(!n[r]&&n.auto===!0){let i=G(t.el,`.${s[r]}`)[0];i||(i=jt("div",s[r]),i.className=s[r],t.el.append(i)),n[r]=i,e[r]=i}}),n}function Vt(t){let{swiper:e,extendParams:n,on:s,emit:r}=t;n({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null};const i=v=>(Array.isArray(v)||(v=[v].filter(w=>!!w)),v);function o(v){let w;return v&&typeof v=="string"&&e.isElement&&(w=e.el.querySelector(v),w)?w:(v&&(typeof v=="string"&&(w=[...document.querySelectorAll(v)]),e.params.uniqueNavElements&&typeof v=="string"&&w.length>1&&e.el.querySelectorAll(v).length===1&&(w=e.el.querySelector(v))),v&&!w?v:w)}function l(v,w){const h=e.params.navigation;v=i(v),v.forEach(f=>{f&&(f.classList[w?"add":"remove"](...h.disabledClass.split(" ")),f.tagName==="BUTTON"&&(f.disabled=w),e.params.watchOverflow&&e.enabled&&f.classList[e.isLocked?"add":"remove"](h.lockClass))})}function a(){const{nextEl:v,prevEl:w}=e.navigation;if(e.params.loop){l(w,!1),l(v,!1);return}l(w,e.isBeginning&&!e.params.rewind),l(v,e.isEnd&&!e.params.rewind)}function c(v){v.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),r("navigationPrev"))}function u(v){v.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),r("navigationNext"))}function p(){const v=e.params.navigation;if(e.params.navigation=Ft(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(v.nextEl||v.prevEl))return;let w=o(v.nextEl),h=o(v.prevEl);Object.assign(e.navigation,{nextEl:w,prevEl:h}),w=i(w),h=i(h);const f=(d,y)=>{d&&d.addEventListener("click",y==="next"?u:c),!e.enabled&&d&&d.classList.add(...v.lockClass.split(" "))};w.forEach(d=>f(d,"next")),h.forEach(d=>f(d,"prev"))}function g(){let{nextEl:v,prevEl:w}=e.navigation;v=i(v),w=i(w);const h=(f,d)=>{f.removeEventListener("click",d==="next"?u:c),f.classList.remove(...e.params.navigation.disabledClass.split(" "))};v.forEach(f=>h(f,"next")),w.forEach(f=>h(f,"prev"))}s("init",()=>{e.params.navigation.enabled===!1?E():(p(),a())}),s("toEdge fromEdge lock unlock",()=>{a()}),s("destroy",()=>{g()}),s("enable disable",()=>{let{nextEl:v,prevEl:w}=e.navigation;v=i(v),w=i(w),[...v,...w].filter(h=>!!h).forEach(h=>h.classList[e.enabled?"remove":"add"](e.params.navigation.lockClass))}),s("click",(v,w)=>{let{nextEl:h,prevEl:f}=e.navigation;h=i(h),f=i(f);const d=w.target;if(e.params.navigation.hideOnClick&&!f.includes(d)&&!h.includes(d)){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===d||e.pagination.el.contains(d)))return;let y;h.length?y=h[0].classList.contains(e.params.navigation.hiddenClass):f.length&&(y=f[0].classList.contains(e.params.navigation.hiddenClass)),r(y===!0?"navigationShow":"navigationHide"),[...h,...f].filter(S=>!!S).forEach(S=>S.classList.toggle(e.params.navigation.hiddenClass))}});const m=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),p(),a()},E=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),g()};Object.assign(e.navigation,{enable:m,disable:E,update:a,init:p,destroy:g})}function te(t){return t===void 0&&(t=""),`.${t.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function Gt(t){let{swiper:e,extendParams:n,on:s,emit:r}=t;const i="swiper-pagination";n({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:f=>f,formatFractionTotal:f=>f,bulletClass:`${i}-bullet`,bulletActiveClass:`${i}-bullet-active`,modifierClass:`${i}-`,currentClass:`${i}-current`,totalClass:`${i}-total`,hiddenClass:`${i}-hidden`,progressbarFillClass:`${i}-progressbar-fill`,progressbarOppositeClass:`${i}-progressbar-opposite`,clickableClass:`${i}-clickable`,lockClass:`${i}-lock`,horizontalClass:`${i}-horizontal`,verticalClass:`${i}-vertical`,paginationDisabledClass:`${i}-disabled`}}),e.pagination={el:null,bullets:[]};let o,l=0;const a=f=>(Array.isArray(f)||(f=[f].filter(d=>!!d)),f);function c(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function u(f,d){const{bulletActiveClass:y}=e.params.pagination;f&&(f=f[`${d==="prev"?"previous":"next"}ElementSibling`],f&&(f.classList.add(`${y}-${d}`),f=f[`${d==="prev"?"previous":"next"}ElementSibling`],f&&f.classList.add(`${y}-${d}-${d}`)))}function p(f){const d=f.target.closest(te(e.params.pagination.bulletClass));if(!d)return;f.preventDefault();const y=Te(d)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===y)return;const S=e.getSlideIndexByData(y),C=e.getSlideIndexByData(e.realIndex);S>e.slides.length-e.loopedSlides&&e.loopFix({direction:S>C?"next":"prev",activeSlideIndex:S,slideTo:!1}),e.slideToLoop(y)}else e.slideTo(y)}function g(){const f=e.rtl,d=e.params.pagination;if(c())return;let y=e.pagination.el;y=a(y);let S,C;const x=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,_=e.params.loop?Math.ceil(x/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(C=e.previousRealIndex||0,S=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):typeof e.snapIndex<"u"?(S=e.snapIndex,C=e.previousSnapIndex):(C=e.previousIndex||0,S=e.activeIndex||0),d.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const b=e.pagination.bullets;let O,T,M;if(d.dynamicBullets&&(o=We(b[0],e.isHorizontal()?"width":"height",!0),y.forEach(L=>{L.style[e.isHorizontal()?"width":"height"]=`${o*(d.dynamicMainBullets+4)}px`}),d.dynamicMainBullets>1&&C!==void 0&&(l+=S-(C||0),l>d.dynamicMainBullets-1?l=d.dynamicMainBullets-1:l<0&&(l=0)),O=Math.max(S-l,0),T=O+(Math.min(b.length,d.dynamicMainBullets)-1),M=(T+O)/2),b.forEach(L=>{const P=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(k=>`${d.bulletActiveClass}${k}`)].map(k=>typeof k=="string"&&k.includes(" ")?k.split(" "):k).flat();L.classList.remove(...P)}),y.length>1)b.forEach(L=>{const P=Te(L);P===S?L.classList.add(...d.bulletActiveClass.split(" ")):e.isElement&&L.setAttribute("part","bullet"),d.dynamicBullets&&(P>=O&&P<=T&&L.classList.add(...`${d.bulletActiveClass}-main`.split(" ")),P===O&&u(L,"prev"),P===T&&u(L,"next"))});else{const L=b[S];if(L&&L.classList.add(...d.bulletActiveClass.split(" ")),e.isElement&&b.forEach((P,k)=>{P.setAttribute("part",k===S?"bullet-active":"bullet")}),d.dynamicBullets){const P=b[O],k=b[T];for(let N=O;N<=T;N+=1)b[N]&&b[N].classList.add(...`${d.bulletActiveClass}-main`.split(" "));u(P,"prev"),u(k,"next")}}if(d.dynamicBullets){const L=Math.min(b.length,d.dynamicMainBullets+4),P=(o*L-o)/2-M*o,k=f?"right":"left";b.forEach(N=>{N.style[e.isHorizontal()?k:"top"]=`${P}px`})}}y.forEach((b,O)=>{if(d.type==="fraction"&&(b.querySelectorAll(te(d.currentClass)).forEach(T=>{T.textContent=d.formatFractionCurrent(S+1)}),b.querySelectorAll(te(d.totalClass)).forEach(T=>{T.textContent=d.formatFractionTotal(_)})),d.type==="progressbar"){let T;d.progressbarOpposite?T=e.isHorizontal()?"vertical":"horizontal":T=e.isHorizontal()?"horizontal":"vertical";const M=(S+1)/_;let L=1,P=1;T==="horizontal"?L=M:P=M,b.querySelectorAll(te(d.progressbarFillClass)).forEach(k=>{k.style.transform=`translate3d(0,0,0) scaleX(${L}) scaleY(${P})`,k.style.transitionDuration=`${e.params.speed}ms`})}d.type==="custom"&&d.renderCustom?(b.innerHTML=d.renderCustom(e,S+1,_),O===0&&r("paginationRender",b)):(O===0&&r("paginationRender",b),r("paginationUpdate",b)),e.params.watchOverflow&&e.enabled&&b.classList[e.isLocked?"add":"remove"](d.lockClass)})}function m(){const f=e.params.pagination;if(c())return;const d=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length;let y=e.pagination.el;y=a(y);let S="";if(f.type==="bullets"){let C=e.params.loop?Math.ceil(d/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&C>d&&(C=d);for(let x=0;x<C;x+=1)f.renderBullet?S+=f.renderBullet.call(e,x,f.bulletClass):S+=`<${f.bulletElement} ${e.isElement?'part="bullet"':""} class="${f.bulletClass}"></${f.bulletElement}>`}f.type==="fraction"&&(f.renderFraction?S=f.renderFraction.call(e,f.currentClass,f.totalClass):S=`<span class="${f.currentClass}"></span> / <span class="${f.totalClass}"></span>`),f.type==="progressbar"&&(f.renderProgressbar?S=f.renderProgressbar.call(e,f.progressbarFillClass):S=`<span class="${f.progressbarFillClass}"></span>`),e.pagination.bullets=[],y.forEach(C=>{f.type!=="custom"&&(C.innerHTML=S||""),f.type==="bullets"&&e.pagination.bullets.push(...C.querySelectorAll(te(f.bulletClass)))}),f.type!=="custom"&&r("paginationRender",y[0])}function E(){e.params.pagination=Ft(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const f=e.params.pagination;if(!f.el)return;let d;typeof f.el=="string"&&e.isElement&&(d=e.el.querySelector(f.el)),!d&&typeof f.el=="string"&&(d=[...document.querySelectorAll(f.el)]),d||(d=f.el),!(!d||d.length===0)&&(e.params.uniqueNavElements&&typeof f.el=="string"&&Array.isArray(d)&&d.length>1&&(d=[...e.el.querySelectorAll(f.el)],d.length>1&&(d=d.filter(y=>be(y,".swiper")[0]===e.el)[0])),Array.isArray(d)&&d.length===1&&(d=d[0]),Object.assign(e.pagination,{el:d}),d=a(d),d.forEach(y=>{f.type==="bullets"&&f.clickable&&y.classList.add(f.clickableClass),y.classList.add(f.modifierClass+f.type),y.classList.add(e.isHorizontal()?f.horizontalClass:f.verticalClass),f.type==="bullets"&&f.dynamicBullets&&(y.classList.add(`${f.modifierClass}${f.type}-dynamic`),l=0,f.dynamicMainBullets<1&&(f.dynamicMainBullets=1)),f.type==="progressbar"&&f.progressbarOpposite&&y.classList.add(f.progressbarOppositeClass),f.clickable&&y.addEventListener("click",p),e.enabled||y.classList.add(f.lockClass)}))}function v(){const f=e.params.pagination;if(c())return;let d=e.pagination.el;d&&(d=a(d),d.forEach(y=>{y.classList.remove(f.hiddenClass),y.classList.remove(f.modifierClass+f.type),y.classList.remove(e.isHorizontal()?f.horizontalClass:f.verticalClass),f.clickable&&y.removeEventListener("click",p)})),e.pagination.bullets&&e.pagination.bullets.forEach(y=>y.classList.remove(...f.bulletActiveClass.split(" ")))}s("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const f=e.params.pagination;let{el:d}=e.pagination;d=a(d),d.forEach(y=>{y.classList.remove(f.horizontalClass,f.verticalClass),y.classList.add(e.isHorizontal()?f.horizontalClass:f.verticalClass)})}),s("init",()=>{e.params.pagination.enabled===!1?h():(E(),m(),g())}),s("activeIndexChange",()=>{typeof e.snapIndex>"u"&&g()}),s("snapIndexChange",()=>{g()}),s("snapGridLengthChange",()=>{m(),g()}),s("destroy",()=>{v()}),s("enable disable",()=>{let{el:f}=e.pagination;f&&(f=a(f),f.forEach(d=>d.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),s("lock unlock",()=>{g()}),s("click",(f,d)=>{const y=d.target,S=a(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&S&&S.length>0&&!y.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&y===e.navigation.nextEl||e.navigation.prevEl&&y===e.navigation.prevEl))return;const C=S[0].classList.contains(e.params.pagination.hiddenClass);r(C===!0?"paginationShow":"paginationHide"),S.forEach(x=>x.classList.toggle(e.params.pagination.hiddenClass))}});const w=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:f}=e.pagination;f&&(f=a(f),f.forEach(d=>d.classList.remove(e.params.pagination.paginationDisabledClass))),E(),m(),g()},h=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:f}=e.pagination;f&&(f=a(f),f.forEach(d=>d.classList.add(e.params.pagination.paginationDisabledClass))),v()};Object.assign(e.pagination,{enable:w,disable:h,render:m,update:g,init:E,destroy:v})}function ei(t){let{swiper:e,extendParams:n,on:s,emit:r,params:i}=t;e.autoplay={running:!1,paused:!1,timeLeft:0},n({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let o,l,a=i&&i.autoplay?i.autoplay.delay:3e3,c=i&&i.autoplay?i.autoplay.delay:3e3,u,p=new Date().getTime,g,m,E,v,w,h;function f(I){!e||e.destroyed||!e.wrapperEl||I.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",f),b())}const d=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?g=!0:g&&(c=u,g=!1);const I=e.autoplay.paused?u:p+c-new Date().getTime();e.autoplay.timeLeft=I,r("autoplayTimeLeft",I,I/a),l=requestAnimationFrame(()=>{d()})},y=()=>{let I;return e.virtual&&e.params.virtual.enabled?I=e.slides.filter(q=>q.classList.contains("swiper-slide-active"))[0]:I=e.slides[e.activeIndex],I?parseInt(I.getAttribute("data-swiper-autoplay"),10):void 0},S=I=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(l),d();let $=typeof I>"u"?e.params.autoplay.delay:I;a=e.params.autoplay.delay,c=e.params.autoplay.delay;const q=y();!Number.isNaN(q)&&q>0&&typeof I>"u"&&($=q,a=q,c=q),u=$;const V=e.params.speed,ee=()=>{!e||e.destroyed||(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(V,!0,!0),r("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,V,!0,!0),r("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(V,!0,!0),r("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,V,!0,!0),r("autoplay")),e.params.cssMode&&(p=new Date().getTime(),requestAnimationFrame(()=>{S()})))};return $>0?(clearTimeout(o),o=setTimeout(()=>{ee()},$)):requestAnimationFrame(()=>{ee()}),$},C=()=>{e.autoplay.running=!0,S(),r("autoplayStart")},x=()=>{e.autoplay.running=!1,clearTimeout(o),cancelAnimationFrame(l),r("autoplayStop")},_=(I,$)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(o),I||(h=!0);const q=()=>{r("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",f):b()};if(e.autoplay.paused=!0,$){w&&(u=e.params.autoplay.delay),w=!1,q();return}u=(u||e.params.autoplay.delay)-(new Date().getTime()-p),!(e.isEnd&&u<0&&!e.params.loop)&&(u<0&&(u=0),q())},b=()=>{e.isEnd&&u<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(p=new Date().getTime(),h?(h=!1,S(u)):S(),e.autoplay.paused=!1,r("autoplayResume"))},O=()=>{if(e.destroyed||!e.autoplay.running)return;const I=H();I.visibilityState==="hidden"&&(h=!0,_(!0)),I.visibilityState==="visible"&&b()},T=I=>{I.pointerType==="mouse"&&(h=!0,_(!0))},M=I=>{I.pointerType==="mouse"&&e.autoplay.paused&&b()},L=()=>{e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",T),e.el.addEventListener("pointerleave",M))},P=()=>{e.el.removeEventListener("pointerenter",T),e.el.removeEventListener("pointerleave",M)},k=()=>{H().addEventListener("visibilitychange",O)},N=()=>{H().removeEventListener("visibilitychange",O)};s("init",()=>{e.params.autoplay.enabled&&(L(),k(),p=new Date().getTime(),C())}),s("destroy",()=>{P(),N(),e.autoplay.running&&x()}),s("beforeTransitionStart",(I,$,q)=>{e.destroyed||!e.autoplay.running||(q||!e.params.autoplay.disableOnInteraction?_(!0,!0):x())}),s("sliderFirstMove",()=>{if(!(e.destroyed||!e.autoplay.running)){if(e.params.autoplay.disableOnInteraction){x();return}m=!0,E=!1,h=!1,v=setTimeout(()=>{h=!0,E=!0,_(!0)},200)}}),s("touchEnd",()=>{if(!(e.destroyed||!e.autoplay.running||!m)){if(clearTimeout(v),clearTimeout(o),e.params.autoplay.disableOnInteraction){E=!1,m=!1;return}E&&e.params.cssMode&&b(),E=!1,m=!1}}),s("slideChange",()=>{e.destroyed||!e.autoplay.running||(w=!0)}),Object.assign(e.autoplay,{start:C,stop:x,pause:_,resume:b})}function ti(t){let{swiper:e,extendParams:n,on:s}=t;n({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});let r=!1,i=!1;e.thumbs={swiper:null};function o(){const c=e.thumbs.swiper;if(!c||c.destroyed)return;const u=c.clickedIndex,p=c.clickedSlide;if(p&&p.classList.contains(e.params.thumbs.slideThumbActiveClass)||typeof u>"u"||u===null)return;let g;c.params.loop?g=parseInt(c.clickedSlide.getAttribute("data-swiper-slide-index"),10):g=u,e.params.loop?e.slideToLoop(g):e.slideTo(g)}function l(){const{thumbs:c}=e.params;if(r)return!1;r=!0;const u=e.constructor;if(c.swiper instanceof u)e.thumbs.swiper=c.swiper,Object.assign(e.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Object.assign(e.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1}),e.thumbs.swiper.update();else if(ie(c.swiper)){const p=Object.assign({},c.swiper);Object.assign(p,{watchSlidesProgress:!0,slideToClickedSlide:!1}),e.thumbs.swiper=new u(p),i=!0}return e.thumbs.swiper.el.classList.add(e.params.thumbs.thumbsContainerClass),e.thumbs.swiper.on("tap",o),!0}function a(c){const u=e.thumbs.swiper;if(!u||u.destroyed)return;const p=u.params.slidesPerView==="auto"?u.slidesPerViewDynamic():u.params.slidesPerView;let g=1;const m=e.params.thumbs.slideThumbActiveClass;if(e.params.slidesPerView>1&&!e.params.centeredSlides&&(g=e.params.slidesPerView),e.params.thumbs.multipleActiveThumbs||(g=1),g=Math.floor(g),u.slides.forEach(w=>w.classList.remove(m)),u.params.loop||u.params.virtual&&u.params.virtual.enabled)for(let w=0;w<g;w+=1)G(u.slidesEl,`[data-swiper-slide-index="${e.realIndex+w}"]`).forEach(h=>{h.classList.add(m)});else for(let w=0;w<g;w+=1)u.slides[e.realIndex+w]&&u.slides[e.realIndex+w].classList.add(m);const E=e.params.thumbs.autoScrollOffset,v=E&&!u.params.loop;if(e.realIndex!==u.realIndex||v){const w=u.activeIndex;let h,f;if(u.params.loop){const d=u.slides.filter(y=>y.getAttribute("data-swiper-slide-index")===`${e.realIndex}`)[0];h=u.slides.indexOf(d),f=e.activeIndex>e.previousIndex?"next":"prev"}else h=e.realIndex,f=h>e.previousIndex?"next":"prev";v&&(h+=f==="next"?E:-1*E),u.visibleSlidesIndexes&&u.visibleSlidesIndexes.indexOf(h)<0&&(u.params.centeredSlides?h>w?h=h-Math.floor(p/2)+1:h=h+Math.floor(p/2)-1:h>w&&u.params.slidesPerGroup,u.slideTo(h,c?0:void 0))}}s("beforeInit",()=>{const{thumbs:c}=e.params;if(!(!c||!c.swiper))if(typeof c.swiper=="string"||c.swiper instanceof HTMLElement){const u=H(),p=()=>{const m=typeof c.swiper=="string"?u.querySelector(c.swiper):c.swiper;if(m&&m.swiper)c.swiper=m.swiper,l(),a(!0);else if(m){const E=v=>{c.swiper=v.detail[0],m.removeEventListener("init",E),l(),a(!0),c.swiper.update(),e.update()};m.addEventListener("init",E)}return m},g=()=>{if(e.destroyed)return;p()||requestAnimationFrame(g)};requestAnimationFrame(g)}else l(),a(!0)}),s("slideChange update resize observerUpdate",()=>{a()}),s("setTransition",(c,u)=>{const p=e.thumbs.swiper;!p||p.destroyed||p.setTransition(u)}),s("beforeDestroy",()=>{const c=e.thumbs.swiper;!c||c.destroyed||i&&c.destroy()}),Object.assign(e.thumbs,{init:l,update:a})}function ni(t){let{swiper:e,extendParams:n,emit:s,once:r}=t;n({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}});function i(){if(e.params.cssMode)return;const a=e.getTranslate();e.setTranslate(a),e.setTransition(0),e.touchEventsData.velocities.length=0,e.freeMode.onTouchEnd({currentPos:e.rtl?e.translate:-e.translate})}function o(){if(e.params.cssMode)return;const{touchEventsData:a,touches:c}=e;a.velocities.length===0&&a.velocities.push({position:c[e.isHorizontal()?"startX":"startY"],time:a.touchStartTime}),a.velocities.push({position:c[e.isHorizontal()?"currentX":"currentY"],time:F()})}function l(a){let{currentPos:c}=a;if(e.params.cssMode)return;const{params:u,wrapperEl:p,rtlTranslate:g,snapGrid:m,touchEventsData:E}=e,w=F()-E.touchStartTime;if(c<-e.minTranslate()){e.slideTo(e.activeIndex);return}if(c>-e.maxTranslate()){e.slides.length<m.length?e.slideTo(m.length-1):e.slideTo(e.slides.length-1);return}if(u.freeMode.momentum){if(E.velocities.length>1){const _=E.velocities.pop(),b=E.velocities.pop(),O=_.position-b.position,T=_.time-b.time;e.velocity=O/T,e.velocity/=2,Math.abs(e.velocity)<u.freeMode.minimumVelocity&&(e.velocity=0),(T>150||F()-_.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=u.freeMode.momentumVelocityRatio,E.velocities.length=0;let h=1e3*u.freeMode.momentumRatio;const f=e.velocity*h;let d=e.translate+f;g&&(d=-d);let y=!1,S;const C=Math.abs(e.velocity)*20*u.freeMode.momentumBounceRatio;let x;if(d<e.maxTranslate())u.freeMode.momentumBounce?(d+e.maxTranslate()<-C&&(d=e.maxTranslate()-C),S=e.maxTranslate(),y=!0,E.allowMomentumBounce=!0):d=e.maxTranslate(),u.loop&&u.centeredSlides&&(x=!0);else if(d>e.minTranslate())u.freeMode.momentumBounce?(d-e.minTranslate()>C&&(d=e.minTranslate()+C),S=e.minTranslate(),y=!0,E.allowMomentumBounce=!0):d=e.minTranslate(),u.loop&&u.centeredSlides&&(x=!0);else if(u.freeMode.sticky){let _;for(let b=0;b<m.length;b+=1)if(m[b]>-d){_=b;break}Math.abs(m[_]-d)<Math.abs(m[_-1]-d)||e.swipeDirection==="next"?d=m[_]:d=m[_-1],d=-d}if(x&&r("transitionEnd",()=>{e.loopFix()}),e.velocity!==0){if(g?h=Math.abs((-d-e.translate)/e.velocity):h=Math.abs((d-e.translate)/e.velocity),u.freeMode.sticky){const _=Math.abs((g?-d:d)-e.translate),b=e.slidesSizesGrid[e.activeIndex];_<b?h=u.speed:_<2*b?h=u.speed*1.5:h=u.speed*2.5}}else if(u.freeMode.sticky){e.slideToClosest();return}u.freeMode.momentumBounce&&y?(e.updateProgress(S),e.setTransition(h),e.setTranslate(d),e.transitionStart(!0,e.swipeDirection),e.animating=!0,Ae(p,()=>{!e||e.destroyed||!E.allowMomentumBounce||(s("momentumBounce"),e.setTransition(u.speed),setTimeout(()=>{e.setTranslate(S),Ae(p,()=>{!e||e.destroyed||e.transitionEnd()})},0))})):e.velocity?(s("_freeModeNoMomentumRelease"),e.updateProgress(d),e.setTransition(h),e.setTranslate(d),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,Ae(p,()=>{!e||e.destroyed||e.transitionEnd()}))):e.updateProgress(d),e.updateActiveIndex(),e.updateSlidesClasses()}else if(u.freeMode.sticky){e.slideToClosest();return}else u.freeMode&&s("_freeModeNoMomentumRelease");(!u.freeMode.momentum||w>=u.longSwipesMs)&&(e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses())}Object.assign(e,{freeMode:{onTouchStart:i,onTouchMove:o,onTouchEnd:l}})}D.use([Vt,Gt,ei,ni,Qs,Zs]);const si={swiperLarge:{spaceBetween:30,slidesPerView:6,resize:!0,keyboard:!0,breakpoints:{1100:{slidesPerView:6},900:{slidesPerView:5},800:{slidesPerView:4,spaceBetween:30},500:{slidesPerView:3},200:{slidesPerView:2.05,spaceBetween:12}}},swiperMedium:{spaceBetween:30,slidesPerView:4,keyboard:!0,breakpoints:{1050:{slidesPerView:4},800:{slidesPerView:3,spaceBetween:30},550:{slidesPerView:2.2,spaceBetween:30},200:{slidesPerView:1.6,spaceBetween:30}}},catalogCard:{spaceBetween:10,slidesPerView:1,keyboard:!0},companyComment:{spaceBetween:16,keyboard:!0,breakpoints:{600:{slidesPerView:2},320:{slidesPerView:1}}},swiperSmall:{spaceBetween:30,slidesPerView:3,keyboard:!0,breakpoints:{1e3:{slidesPerView:3},820:{slidesPerView:2.3},500:{slidesPerView:1.6},200:{slidesPerView:1.1,spaceBetween:24}}},swiperMain:{spaceBetween:30,slidesPerView:1,loop:!0,keyboard:!0},swiperCatalog:{slidesPerView:4,spaceBetween:45,keyboard:!0,resize:!0,breakpoints:{1010:{slidesPerView:4},900:{slidesPerView:3.2},600:{slidesPerView:2.7,spaceBetween:45},400:{slidesPerView:2.5},200:{slidesPerView:1.8,spaceBetween:12}}},swiperVertical:{slidesPerView:"2",direction:"horizontal",keyboard:!0,resize:!0,freeMode:!0,breakpoints:{700:{slidesPerView:"auto",direction:"vertical"}}}};function ii(t){return si[t]}function Wt(){const t=document.querySelectorAll(".js-swiper");for(const e of t){const n=e.querySelector(".swiper"),s=e.querySelector(".swiper-button-next"),r=e.querySelector(".swiper-button-prev"),i=e.querySelector(".swiper-pagination"),{swiperType:o}=e.dataset,l=ii(o);if(s&&r&&(l.navigation={nextEl:s,prevEl:r}),i){const c=i;l.pagination={el:c,clickable:!0}}const a=new D(n,l);if(o==="catalogCard"){const c=e.closest(".js-catalog-card");c&&ri(c,a)}}}function ri(t,e){t.addEventListener("mouseenter",()=>{e.autoplay.start()}),t.addEventListener("mouseleave",()=>{e.autoplay.stop()})}Wt();function ai(t){const{target:e}=t,n=e.parentNode,s=n.parentNode;n.querySelectorAll('[aria-selected="true"]').forEach(r=>r.setAttribute("aria-selected","false")),e.setAttribute("aria-selected",!0),s.querySelectorAll('[role="tabpanel"]').forEach(r=>r.setAttribute("hidden","true")),s.parentNode.querySelector(`#${e.getAttribute("aria-controls")}`).removeAttribute("hidden")}function Xt(t,e){const n=t.querySelectorAll('[role="tab"]'),s=t.querySelector('[role="tablist"]');n.forEach(i=>{i.addEventListener(e,ai)});let r=0;s?.addEventListener("keydown",i=>{(i.key==="ArrowRight"||i.key==="ArrowLeft")&&(n[r].setAttribute("tabindex",-1),i.key==="ArrowRight"?(r+=1,r>=n.length&&(r=0)):i.key==="ArrowLeft"&&(r-=1,r<0&&(r=n.length-1)),n[r].setAttribute("tabindex",0),n[r].focus())})}const oi=document.querySelectorAll(".js-tabs");for(const t of oi){let e="click";const{tabChange:n}=t.dataset;n&&(e=n),Xt(t,e)}const li="modulepreload",ci=function(t){return"/build/"+t},pt={},j=function(e,n,s){if(!n||n.length===0)return e();const r=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=ci(i),i in pt)return;pt[i]=!0;const o=i.endsWith(".css"),l=o?'[rel="stylesheet"]':"";if(!!s)for(let u=r.length-1;u>=0;u--){const p=r[u];if(p.href===i&&(!o||p.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${l}`))return;const c=document.createElement("link");if(c.rel=o?"stylesheet":li,o||(c.as="script",c.crossOrigin=""),c.href=i,document.head.appendChild(c),o)return new Promise((u,p)=>{c.addEventListener("load",u),c.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>e()).catch(i=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=i,window.dispatchEvent(o),!o.defaultPrevented)throw i})},di="right";async function ui(){const t=document.querySelector("[data-template='mobile-menu']");if(!t)return null;const e=(await j(()=>import("./mmenu-cebfc5b9.js"),[])).default,n=t.content,s=n.querySelector(".js-mobile-menu").cloneNode(!0),r=n.querySelector(".js-mobile-menu-content").cloneNode(!0);return!s||!r?null:new e(s,{offCanvas:{position:di},navbar:{add:!1},navbars:[{position:"top",content:[r]}]})}if(window.innerWidth<=600){const t=document.querySelector(".js-mobile-menu-open"),e=ui();t?.addEventListener("click",()=>{e&&e.open()})}function Yt(t,e,n,s){function r(){n.classList.add(s),window.scrollTo(0,0)}function i(){n.classList.remove(s);const o=t.getBoundingClientRect().y;window.scrollTo(0,o-100)}t?.addEventListener("click",r),e.addEventListener("click",i)}const mt=document.querySelector(".filter"),ht=document.querySelector(".menu-categories");if(mt){const t=document.querySelector(".js-catalog-filter"),e=document.querySelector(".filter__btn-close");Yt(t,e,mt,"filter_open")}if(ht){const t=document.querySelector(".breadcrumbs__btn"),e=document.querySelector(".menu-categories__btn-close");Yt(t,e,ht,"menu-categories_open")}const he=document.querySelector(".js-photo-swiper-thumbs");if(he){D.use([Vt,Gt,ti]);const t=he.querySelector(".swiper"),e=he.querySelector(".swiper-button-next"),n=he.querySelector(".swiper-button-prev"),s=new D(t,{direction:"vertical",spaceBetween:16,slidesPerView:4,freeMode:!0,watchSlidesProgress:!0,navigation:{nextEl:e,prevEl:n}});new D(".js-photo-swiper",{spaceBetween:10,thumbs:{swiper:s}})}function fi(t){let e,n;return{promise:new Promise(r=>{n=r,e=i=>{t.contains(i.target)||r()},setTimeout(()=>{document.addEventListener("click",e)},0)}).then(()=>{document.removeEventListener("click",e)}),close:n}}function pi(t,e){t.classList.toggle(e),t.classList.contains(e)&&fi(t).promise.then(()=>{t.classList.remove(e)})}const gt=document.querySelector(".js-account-panel");gt&&document.querySelector(".header__account-btn").addEventListener("click",()=>{pi(gt,"account-panel_open")});const Ye=document.querySelector("[name=csrf-token]").content;async function A(t,e,n,s=!0){let r,i;n instanceof FormData?(r=n,i={"X-CSRF-TOKEN":Ye,Accept:"application/json"}):(r=n?JSON.stringify(n):"",i={"Content-Type":"application/json",Accept:"application/json","X-Requested-With":"XMLHttpRequest","X-CSRF-TOKEN":Ye});const o=await fetch(e,{method:t,headers:i,body:r});return s?o.json():o.text()}async function Pe(t){const e=await fetch(t,{method:"GET",headers:{"Content-Type":"application/json",Accept:"application/json","X-Requested-With":"XMLHttpRequest","X-CSRF-TOKEN":Ye}});if(!e.ok)throw new Error(e.statusText);return e.json()}function mi(){return A("POST","/api/modals/catalog",{},!1)}const hi=".js-modal-catalog-button",Ut=".js-modal-catalog-inner",gi=".js-modal-catalog-tabs",vt=document.querySelector(hi),Z=document.querySelector(Ut);let Le=!1;function vi(){Xt(Z.querySelector(gi),"mouseenter")}async function yi(){if(!Le)try{Z.classList.add("open"),Z.innerHTML='<div class="loading-spinner"></div>';const t=await mi();t&&(Z.innerHTML=t,vi(),Le=!0)}catch(t){console.error(t)}}function wi(){Z.classList.remove("open"),Le=!1}function Ei(t){!t.target.closest(Ut)&&Le&&wi()}function Si(){!vt||!Z||(vt.addEventListener("click",yi),document.addEventListener("click",Ei))}Si();function Ti(t,e,n){t.ariaExpanded==="true"?(t.ariaExpanded="false",e.textContent=n):(t.ariaExpanded="true",e.textContent="скрыть")}function bi(t){const e=t.querySelector(".js-limited-content__button"),n=t.querySelector(".js-limited-content__content");if(!e||!n)return;const{scrollHeight:s}=n,{offsetHeight:r}=n;if(s<=r)return;t.dataset.initialized="true",t.style.setProperty("--base-dropdown-full-height",`${s}px`);const i=e.textContent;e.addEventListener("click",()=>{Ti(t,e,i||"Показать")})}for(const t of document.querySelectorAll(".js-limited-content"))bi(t);async function R(){const{Fancybox:t}=await j(()=>import("./index.esm-f5031b82.js"),[]);return t}document.querySelector("[data-fancybox]")&&R().then(t=>{t.bind("[data-fancybox]",{})});const Li=".js-review",xi=".js-review-modal",Ci=document.querySelectorAll(Li),Y=document.querySelector("[data-template='review-modal']")?.content.querySelector(xi).cloneNode(!0)??null;function Mi(t,e,n,s,r,i){Y&&R().then(o=>{Y.querySelector(".rating").innerHTML=t.innerHTML,Y.querySelector(".review__text").innerHTML=e.innerHTML,Y.querySelector(".review__person-name").innerHTML=n.innerHTML,Y.querySelector(".review__date").innerHTML=s.innerHTML;const l=Y.querySelector(".js-review-answer-t");r&&i?l.innerHTML=`
        <div class="review__answer">
          <div class="review__text js-review-answer-text">${r.innerHTML}</div>
          <div class="review__account">
            <div class="review__person-name">Ответ продавца</div>
            <div class="review__date js-review-answer-date">${i.innerHTML}</div>
          </div>
        </div>`:l.innerHTML="",new o([{src:Y,type:"html"}])})}function _i(){for(const t of Ci)t.addEventListener("click",()=>{const e=t.querySelector(".rating"),n=t.querySelector(".review__text"),s=t.querySelector(".review__person-name"),r=t.querySelector(".review__date"),i=t.querySelector(".js-review-answer-text"),o=t.querySelector(".js-review-answer-date");Mi(e,n,s,r,i,o)})}_i();const Pi=document.querySelectorAll("[data-modal]");function Ai(t,e){new t([{src:`#modal-${e}`,type:"inline"}]).on("done",({container:s})=>{s.querySelector(".base-field > input")?.focus()})}for(const t of Pi){const{modal:e}=t.dataset;t.addEventListener("click",async()=>{const n=await R();n.close(),Ai(n,e)})}let Be=null;async function Oi(t){Be||(Be=j(()=>import("./tippy.esm-d0b0da54.js"),[]));const e=(await Be).default,{tooltip:n}=t.dataset;!t||!n||e(t,{content:n})}const Ii=document.querySelectorAll("[data-tooltip]");Ii.forEach(Oi);const ki=".js-add-field",qi=".js-add-field-list",Ri=".js-add-field-control",Di=".js-add-field-remove",Bi=".js-add-field-item",$i="add-fields__item",ji="add-fields__remove",Ni="js-add-field-item",zi="js-add-field-remove";function Hi(t){return/^(\+?7|8)\d{10}$/.test(t)}function Fi(t){return/^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/.test(t)}function Vi(t){return t.replace(/[ \-()]/g,"")}function yt(t){t.querySelector(Di).addEventListener("click",()=>t.remove())}function Gi(t){const{type:e,value:n}=t;switch(e){case"tel":return Hi(Vi(n));case"email":return Fi(n);default:return!0}}function Wi(t,e){const n=document.createElement("li"),s=document.createElement("input");s.type="text",s.name=`${e}`,s.value=t;const r=document.createElement("button");return n.classList.add($i,Ni),r.classList.add(ji,zi),n.appendChild(s),n.appendChild(r),n}function Xi(t){t.classList.remove("invalid")}function Yi(t){const e=t.querySelector(qi),n=t.querySelector(Ri);if(!e||!n)return;e.querySelectorAll(Bi).forEach(yt),n.addEventListener("keydown",({target:r,key:i})=>{if(Xi(r),i==="Enter")if(Gi(r)){const o=Wi(r.value,e.dataset.name);yt(o),e.appendChild(o),n.value=""}else r.classList.add("invalid")})}const Ui=document.querySelectorAll(ki);Ui.forEach(Yi);const Jt={get:"/api/favorites/get",add:"/api/favorites/add",remove:"/api/favorites/remove"};function Ji(t){return A("DELETE",Jt.remove,{product_id:t})}function Ki(t){return A("POST",Jt.add,{product_id:t})}let ue=new Promise(t=>{t(window.appData.favorites)});async function Kt(t){return(await ue).some(n=>n.product.id===t)}function Zi(){return ue.then(t=>t.length)}function Qi(){return ue.then(t=>t.length===0)}function er(t){ue=Ji(t)}function tr(t){ue=Ki(t)}const nr="product-card__favourite_active",sr="product-top__favourite_active",xe="header__notice_hidden",Zt=document.querySelectorAll(".js-favorite"),ge=document.querySelector("#favorites-count");async function ir(){ge&&(await Qi()?ge.classList.add(xe):(ge.classList.remove(xe),ge.textContent=`${await Zi()}`))}function rr(){for(const t of Zt){const e=t.querySelector("use"),n=Number(t.dataset.productId),r=t.dataset.type==="top"?sr:nr;Kt(n).then(i=>{i?(t.ariaLabel="Удалить из избранного",e.classList.add(r)):(t.ariaLabel="Добавить в избранное",e.classList.remove(r))})}}async function Qt(){rr(),await ir()}async function ar(t){t.preventDefault();const e=Number(t.currentTarget.dataset.productId);await Kt(e)?await er(e):await tr(e),await Qt()}function or(){for(const t of Zt)t.addEventListener("click",ar)}const nt={get:"/api/cart/get",add:"/api/cart/add",remove:"/api/cart/remove",companies:"/api/cart/companies/get",quantity:"/api/cart/change-quantity"};function st(){return Pe(nt.companies)}function lr(t,e){return A("POST",nt.quantity,{product_id:t,quantity:e})}function cr(t,e){return A("POST",nt.add,{product_id:t,quantity:e})}let K=st();async function dr(t){const e=await K;let n=null;for(const s of Object.values(e))if(n=s.products.find(r=>r.id===t),n)return n;return n}async function en(){const t=await K;return Object.values(t).reduce((e,n)=>e+n.quantity,0)}async function ur(){const t=await K,e=Object.values(t).reduce((n,s)=>s.total+n,0);return Number(e).toLocaleString("ru-RU")}async function fr(){const t=await K;return Object.values(t).length===0}async function Gl(t,e){return K=lr(t,e),K}async function pr(t){await cr(t,1),K=st()}const tn="mm-wrapper--position-right",mr=15e3,hr=100,W=document.querySelector(".js-notification"),nn=W?.querySelector(".js-product-name"),sn=W?.querySelector(".js-order-info"),rn=W?.querySelector(".js-close"),an=W?.querySelector(".js-product-image");function gr(){document.body.classList.remove(tn)}function vr(){document.body.classList.add(tn)}function $e(t){t&&(t.classList.remove("active"),vr())}function yr(t,e,n){if(!t)return;let s=0,r=0;function i(a){s=a.touches[0].clientX,r=a.touches[0].clientY}function o(a){a.preventDefault()}function l(a){const c=a.changedTouches[0].clientX,u=a.changedTouches[0].clientY,p=c-s,g=u-r;(Math.abs(p)>=e||Math.abs(g)>=e)&&n(t)}t.addEventListener("touchstart",i),t.addEventListener("touchmove",o),t.addEventListener("touchend",l)}function wr(){return!!W&&!!nn&&!!sn&&!!rn&&!!an}async function Er(t){const e=await dr(t);!wr()||!e||(gr(),an.src=e.image,nn.textContent=`${e.name} добавлен в заказ!`,sn.textContent=`В заказе всего ${await en()} товаров на сумму ${await ur()} рублей.`,W.classList.add("active"),rn.addEventListener("click",()=>$e(W),{once:!0}),setTimeout(()=>$e(W),mr),window.innerWidth<=426&&yr(W,hr,$e))}const Sr=document.querySelectorAll(".js-add-to-cart"),ve=document.querySelector("#cart-count");async function on(){if(!ve)return;await fr()?ve.classList.add(xe):(ve.classList.remove(xe),ve.textContent=`${await en()}`)}async function Tr(t){t.preventDefault();const e=Number(t.currentTarget.dataset.productId);await pr(e),await Er(e),await on()}function br(){for(const t of Sr)t.addEventListener("click",Tr)}async function it(){or(),br(),await on(),await Qt(),Wt()}await it();const rt={remove:"/api/order/remove",read:"/api/order/read",downloadXls:t=>`/api/order/${t}/xls`},je=document.querySelector("#new-orders-count"),Ne=document.querySelector("#all-orders-count");async function Lr(t){const e=document.getElementById("modal-removal"),n=e.querySelector(".js-product-container"),s=e.querySelector(".js-dell-name");return n.innerHTML=`Заказ от <b>${t.date}</b> на сумму <b>${t.sum}</b> будет удален`,s.textContent=`${t.name}`,(await R()).show([{src:"#modal-removal",type:"inline"}])}async function xr(t){return(await A("DELETE",rt.remove,{id:t})).result===!0}function Cr(){const t=document.querySelector(".js-account-info-list"),e=document.querySelector(".js-account-info-wrap");if(!t||t.children.length===0){e.innerHTML="";const n=document.createElement("div");n.classList.add("account-info__empty"),n.textContent="Нет новых заказов",e.appendChild(n)}}const Mr=document.querySelectorAll("#order-trash");Mr.forEach(t=>{t.addEventListener("click",async()=>{const e=t.closest(".js-account-info"),n=e.querySelector(".js-account-info-data"),s=e.querySelector(".js-account-info-total-price"),r=n.textContent,i=s.textContent;await Lr({date:r,sum:i,name:"Заказ"});const o=document.getElementById("modal-removal"),l=o.querySelector(".js-modal-remove-button"),a=o.querySelector(".js-modal-cancel-button");l.onclick=async()=>{if(await xr(t.dataset.id)){e.remove(),Ne?.innerHTML&&(Ne.innerHTML=`${+Ne.innerHTML-1}`);const u=await R();Cr(),u.close()}},a.onclick=async()=>{(await R()).close()}})});const _r=document.querySelectorAll("#order-details");_r.forEach(t=>{t.classList.contains("account-info__details_notice")&&t.addEventListener("click",async e=>{const n=e.currentTarget;await A("POST",rt.read,{id:n.dataset.id}).then(s=>{s.result===!0&&(n.classList.toggle("account-info__details_notice"),je?.innerHTML&&(je.innerHTML=`${+je.innerHTML-1}`),t.replaceWith(t.cloneNode(!0)))})})});const Pr=document.querySelectorAll("#order-download-xls");Pr.forEach(t=>{t.addEventListener("click",async e=>{const n=e.currentTarget.dataset.id;await Pe(rt.downloadXls(n)).then(s=>{s.url&&window.open(s.url,"_self")}).catch(s=>{console.error("Ошибка в получение данных:",s)})})});const ln={remove:"/api/request/remove",read:"/api/request/read"},ze=document.querySelector("#new-requests-count"),He=document.querySelector("#all-requests-count");async function Ar(t){const e=document.getElementById("modal-removal"),n=e.querySelector(".js-product-container"),s=e.querySelector(".js-dell-name");return n.innerHTML=`Запрос <b> ${t.date} </b> будет удален`,s.textContent=`${t.name}`,(await R()).show([{src:"#modal-removal",type:"inline"}])}async function Or(t){return(await A("DELETE",ln.remove,{id:t})).result===!0}function Ir(){const t=document.querySelector(".js-account-info-list"),e=document.querySelector(".js-account-info-wrap");if(!t||t.children.length===0){e.innerHTML="";const n=document.createElement("div");n.classList.add("account-info__empty"),n.textContent="Нет новых запросов",e.appendChild(n)}}const kr=document.querySelectorAll("#request-trash");kr.forEach(t=>{t.addEventListener("click",async()=>{const e=t.closest(".js-account-info"),s=e.querySelector(".js-account-info-data").textContent;await Ar({date:s,name:"Запрос"});const r=document.getElementById("modal-removal"),i=r.querySelector(".js-modal-remove-button"),o=r.querySelector(".js-modal-cancel-button");i.onclick=async()=>{if(i.disabled=!0,e.remove(),await Or(t.dataset.id)){He?.innerHTML&&(He.innerHTML=`${+He.innerHTML-1}`);const a=await R();Ir(),a.close(),i.disabled=!1}},o.onclick=async()=>{(await R()).close()}})});const qr=document.querySelectorAll("#request-details");qr.forEach(t=>{t.classList.contains("account-info__details_notice")&&t.addEventListener("click",async e=>{const n=e.currentTarget;await A("POST",ln.read,{id:n.dataset.id}).then(s=>{console.log(s),s.result===!0&&(n.classList.toggle("account-info__details_notice"),ze.innerHTML&&(ze.innerHTML=`${+ze.innerHTML-1}`),t.replaceWith(t.cloneNode(!0)))})})});const Rr="/user/product/disable";async function Dr(t){return(await R()).show([{html:t}])}async function Br(t){return(await A("DELETE",`${Rr}/${t}`,{})).result===!0}function $r(t){const e=document.getElementById("modal-removal"),n=e.querySelector(".js-modal-remove-button"),s=e.querySelector(".js-modal-cancel-button"),r=e.querySelector(".js-product-name");t.forEach(i=>{i.addEventListener("click",()=>{const o=i.getAttribute("data-name");r.textContent=o,Dr(e),n.onclick=async()=>{n.disabled=!0,await Br(i.dataset.id)&&(i.closest(".js-product-item")?.remove(),(await R()).close(),n.disabled=!1)}})}),s.addEventListener("click",async()=>{(await R()).close()})}const wt=document.querySelectorAll(".js-product-remove-button");wt.length&&$r(wt);const jr=document.querySelectorAll(".add_image_to_gallery"),cn=document.querySelector(".create-product__gallery"),Nr=document.querySelector("[data-field-templates]")?.content,de=document.querySelector("#product-id")?.value,zr=de?`/user/product/${de}/image`:null,Hr=de?`/user/product/${de}/image`:null;function Fr(t){const e=`[data-field-template='${t}']`;return Nr.querySelector(e).cloneNode(!0)}function Vr(t,e){return new Promise(n=>{const s=document.createElement("input");s.type="file",s.multiple=e,s.accept=t,s.onchange=r=>{const i=Array.from(s.files);n(e?i:i[0])},s.click()})}function Gr(){jr.forEach(t=>{t.addEventListener("click",async e=>{await Vr("image/*",!0).then(n=>{Wr(n)})})}),cn?.querySelectorAll("#gallery-item").forEach(t=>{t.querySelector(".gallery-item-remove").addEventListener("click",dn)})}function Wr(t){t.forEach(async e=>{const n=Fr("gallery-item"),s=n.querySelector(".gallery-item-image"),r=n.querySelector(".gallery-item-fancybox"),i=n.querySelector(".gallery-item-input"),o=new DataTransfer;if(o.items.add(e),i.files=o.files,n.querySelector(".gallery-item-remove").addEventListener("click",dn),de){const l=new FormData;l.append("image",e),console.log(Object.fromEntries(l)),await A("POST",Hr,l).then(a=>{console.log(a),a.url&&a.id&&(s.src=r.href=a.url,n.dataset.id=a.id)})}else s.src=r.href=await Xr(e);cn.prepend(n)})}async function Xr(t){return new Promise((e,n)=>{const s=new FileReader;s.onload=()=>{e(s.result)},s.onerror=n,s.readAsDataURL(t)})}async function dn(t){const e=t.target.closest(".create-product__gallery-item"),{id:n}=e.dataset;n?await A("DELETE",zr,{id:n}).then(s=>{console.log(s),s.result===!0&&e.remove()}):e.remove()}Gr();const Yr=document.querySelector("[data-field-templates]")?.content,Ur=document.querySelector(".create-attribute__action");let Fe=document.querySelectorAll(".create-product__characteristic").length;function Jr(){Ur?.addEventListener("click",t=>{const e=Kr("attribute-item");e.querySelector("#attribute").name=`attributes[${Fe}][id]`,e.querySelector("#value").name=`attributes[${Fe}][value]`,Fe++,t.target.closest(".create-product__col").append(e)})}function Kr(t){const e=`[data-field-template='${t}']`;return Yr.querySelector(e).cloneNode(!0)}Jr();const Zr=document.querySelector("[data-field-templates]")?.content,Ue=document.querySelector('select[name="category"]'),Qr=document.querySelectorAll(".create-product__characteristic");let Ve=0;Ue?.value&&await Pe(`/user/category/${Ue.value}/attributes`).then(t=>t).then(t=>{t&&(un(t),Qr.forEach(e=>{const{id:n}=e.dataset,s=e.querySelector("#attribute"),r=e.querySelector("#value");s.name=`attributes[${Ve}][id]`,r.name=`attributes[${Ve}][value]`,t.forEach(i=>{const o=document.createElement("option");o.text=i.name,o.value=i.id,+n===i.id&&(o.selected=!0),s.appendChild(o)}),Ve++}))});Ue?.addEventListener("change",async t=>{const e=t.currentTarget.options[t.currentTarget.selectedIndex].value;e&&await Pe(`/user/category/${e}/attributes`).then(n=>n).then(n=>{n&&(document.querySelectorAll(".create-product__col .create-product__characteristic").forEach(s=>{s.remove()}),un(n))})});function un(t){const e=Zr.querySelector('select[id="attribute"]');ea(e),t.forEach(n=>{const s=document.createElement("option");s.text=n.name,s.value=n.id,e.appendChild(s)})}function ea(t){for(;t.options.length;)t.remove(0)}const ta="/user/company-address",na=document.querySelector("[data-field-templates]")?.content,sa=document.querySelector(".addresses"),ia=document.querySelector("#add-address"),ra=document.querySelectorAll(".address-item");let J=0;function aa(){ra.forEach(t=>{t.querySelector("#delete-address").addEventListener("click",fn),t.querySelector("select").name=`address[${J}][geo_sub_region]`,t.querySelector("input").name=`address[${J}][address]`,J++})}ia?.addEventListener("click",t=>{const e=oa("address-item");e.querySelector("select").name=`address[${J}][geo_sub_region]`,e.querySelector("input").name=`address[${J}][address]`,e.querySelector("#delete-address")?.addEventListener("click",fn),sa.appendChild(e),J++});function oa(t){const e=`[data-field-template='${t}']`;return na.querySelector(e).cloneNode(!0)}async function fn(t){const e=t.target.closest(".address-item");if(console.log(e),e){const{id:n}=e.dataset;n?await A("DELETE",ta,{id:n}).then(s=>{console.log(s),s.result===!0&&(J--,e.remove())}):e.remove()}}aa();function la(t){return t.split("[").map(e=>e.replace("]",""))}function ca(t,e,n){let s=t;for(let r=0;r<e.length;r++){const i=e[r];s[i]||(r===e.length-1?s[i]=n:s[i]={}),r===e.length-1?s[i]=n:s=s[i]}}function da(t){const e={};for(const[n,s]of t){const r=la(n);ca(e,r,s.toString())}return e}function ua(){const t=document.querySelector(".js-catalog-block");if(!t)return;const e=t.querySelector(".js-catalog-block__filter");function n(){const u=new FormData(e);return da(u)}const{apiUrl:s,baseFilter:r}=t.dataset,i=r?JSON.parse(r):{},o=document.querySelector(".catalog-cards__grid"),l=document.querySelector(".catalog-cards__view-all"),a=document.querySelector(".catalog-filter__btn_active")?.dataset.sort;async function c(){const u=n(),p=await A("POST",s,{page:l?.dataset.page,sort:a,filter:{...u.filter,...i}});p.cardsHtml?(o.insertAdjacentHTML("beforeend",p.cardsHtml),it()):o.textContent="Ничего не найдено",p.nextPageUrl?l.dataset.page=p.nextPageNum:l?.remove()}l?.addEventListener("click",()=>{c()})}ua();const fa="/user/register",Je=document.querySelector(".js-register-form"),pn=Je.querySelector(".js-register-errors");function pa(t){const e=[];return t.get("password").length<8&&e.push("Пароль должен быть 8 и более символов"),t.get("password")!==t.get("password_confirm")&&e.push("Пароли должны совпадать"),e}function Ke(t){const e=document.createElement("li");t.forEach(n=>{e.textContent=n,pn.appendChild(e)})}function ma(){pn.innerHTML=""}async function ha(t){const e=await A("POST",fa,t);e.result===!0?window.location=e.location:(e.user_exists&&Ke(["Пользователь с такой почтой или телефоном уже существует"]),e.message&&Ke([e.message]))}function ga(){Je?.addEventListener("submit",async t=>{t.preventDefault(),ma();const e=new FormData(Je),n=pa(e);if(n.length===0)try{await ha(e)}catch(s){console.log(s)}else Ke(n)})}ga();const Et=document.querySelector(".js-login-form"),St=document.querySelector(".js-login-form-phone"),Ce=document?.querySelector(".js-login-errors"),va=new URLSearchParams(window.location.search),ya=va.get("show_form"),wa="/user/login";async function Tt(t){try{const e=await A("POST",wa,t);e.errors&&Ce.insertAdjacentText("afterbegin",e.message),e.result===!0?window.location=e.location:e.error==="not confirmed"&&Ce.insertAdjacentText("afterbegin",e.message)}catch(e){console.log(e)}}async function Ea(){if(Et?.addEventListener("submit",async t=>{t.preventDefault(),Ce.innerHTML="";const e=new FormData(Et);await Tt(e)}),St?.addEventListener("submit",async t=>{t.preventDefault(),Ce.innerHTML="";const e=new FormData(St);await Tt(e)}),ya){const t=await R();new t([{src:document.querySelector("#modal-login"),type:"inline"}])}}Ea();const Sa="/api/notification/read",Ta=document.querySelectorAll(".account-notifications__action"),ba=document.querySelector(".account-info__label"),bt=document.querySelector(".not-viewed-count");function La(){Ta.forEach(t=>{t.addEventListener("click",async e=>{const n=e.target.closest(".account-notifications__item"),s=e.target.dataset.id;await A("POST",Sa,{id:s}).then(r=>{if(r.result===!0){n.classList.remove("account-notifications__item_notice");const i=`${+bt.innerHTML-1}`;+i==0?ba.remove():bt.innerHTML=i}})})})}La();const Lt=".vue-checkout";async function xa(){const t=document.querySelector(Lt);if(!t)return;const[{createApp:e},{default:n},{VueRecaptchaPlugin:s},{createHead:r}]=await Promise.all([j(()=>import("./vue.runtime.esm-bundler-ab15dcc5.js"),["assets/vue.runtime.esm-bundler-ab15dcc5.js","assets/runtime-dom.esm-bundler-caa8590e.js","assets/runtime-core.esm-bundler-c066f4bf.js"]),j(()=>import("./app-checkout-121fc2d6.js"),["assets/app-checkout-121fc2d6.js","assets/runtime-dom.esm-bundler-caa8590e.js","assets/runtime-core.esm-bundler-c066f4bf.js","assets/script-provider-aad43954.js","assets/address-suggestions-46e26067.js","assets/base-icon-d2f9b0eb.js","assets/address-suggestions-61fdd259.css","assets/base-field-9d4e36f9.js","assets/base-email-field-96a925ce.js","assets/base-textarea-field-c7d8e4d9.js","assets/base-textarea-field-922fc254.css","assets/app-checkout-ed94ea60.css"]),j(()=>import("./index-4d466759.js"),["assets/index-4d466759.js","assets/script-provider-aad43954.js","assets/runtime-core.esm-bundler-c066f4bf.js","assets/vue.f36acd1f-058cf9b3.js"]),j(()=>import("./index-0b726306.js"),["assets/index-0b726306.js","assets/vue.f36acd1f-058cf9b3.js","assets/runtime-core.esm-bundler-c066f4bf.js"])]),{deliveryTypes:i,paymentTypes:o,companyId:l,cart:a,user:c,pickupAddress:u,cartPage:p,products:g,siteKey:m}=t.dataset,E=e(n,{deliveryTypes:JSON.parse(i),paymentTypes:JSON.parse(o),user:JSON.parse(c),cart:JSON.parse(a),companyId:l,pickupAddress:u,cartPage:p,products:JSON.parse(g),siteKey:m});E.use(r()),E.use(s,{v3SiteKey:m}),E.mount(Lt)}xa();const Ca="/api/forgot-password";function Ma(){const t=document.querySelector(".recovery-form");if(!t)return;const e=t.querySelector('[name="email"]'),n=t.querySelector(".recovery-submit"),s=t.querySelector(".js-recovery-errors");function r(){n.disabled=!0}function i(){n.disabled=!1}function o(){s.innerHTML="",s.classList.remove("modal-login__success"),s.classList.remove("modal-login__errors")}function l(){s.classList.remove("modal-login__success"),s.classList.add("modal-login__errors"),s.insertAdjacentText("afterbegin","Проверьте правильность почты и повторите попытку")}function a(){s.classList.remove("modal-login__errors"),s.classList.add("modal-login__success"),s.insertAdjacentText("afterbegin","Письмо с инструкцией отправлено на почту")}function c(){let p=60;const g=setInterval(()=>{if(p<=0){clearInterval(g),s.innerHTML="",i();return}p-=1,s.innerHTML=`Повторная отправка возможна через ${p} сек`},1e3)}async function u(p){try{(await A("POST",Ca,p)).result?(a(),c()):(l(),i())}catch(g){console.log(g)}}t.addEventListener("submit",async p=>{p.preventDefault(),r(),o();const g=new FormData(t);await u(g)}),e?.addEventListener("input",()=>{s.innerHTML=""})}Ma();const _a=".js-overflow-menu",Pa=".js-overflow-menu-item";function Aa(t,e){const n=t.offsetWidth;let s=0;for(const r of e){const i=r.getBoundingClientRect();s+=i.width,n<=s&&r.remove()}}function Oa(){const t=document.querySelector(_a);t&&Aa(t,t.querySelectorAll(Pa))}Oa();const Ia="/user/phone/confirm",ka="/user/phone/check-code",qa="/user/account/profile",Ra=120,Q=document.querySelector(".js-phone-confirm-request"),ye=document.querySelector(".js-phone-confirm"),xt=document.querySelector(".js-phone-confirm-code-input"),mn=document.querySelector(".js-re-request-call"),Da=document.querySelector(".js-confirm-code"),U=document.querySelector(".js-phone-confirm-error"),re=document.querySelector(".js-phone-confirm-time-left");function Ct(t){t.disabled=!0}function hn(t){t.disabled=!1}function gn(t){t.classList.add("hide-element")}function Se(t){t.classList.remove("hide-element")}function Ba(){if(+re.innerHTML>0){const t=setInterval(()=>{if(+re.innerHTML==0){Q.textContent="Отправить код повторно",Se(Q),hn(Q),gn(mn),clearInterval(t);return}re.innerHTML=`${+re.innerHTML-1}`},1e3)}}function $a(){Q?.addEventListener("click",async t=>{U.innerHTML="",Ct(Q),await A("POST",Ia,{}).then(e=>{e.result===!0?(Se(Da),gn(Q),Se(ye),Se(mn),re.innerHTML=`${Ra}`,Ba()):U.innerHTML="Ошибка отправки запроса, повторите позже"}).catch(e=>{console.log(e),U.innerHTML="Ошибка отправки запроса, повторите позже"})}),ye?.addEventListener("click",async t=>{U.innerHTML="",xt.value?(Ct(ye),await A("POST",ka,{code:xt.value}).then(e=>{hn(ye),e.result===!0?window.location=qa:U.innerHTML="Не верный код"}).catch(e=>{console.log(e),U.innerHTML="Ошибка отправки запроса, повторите позже"})):U.innerHTML="Введите код"})}$a();const Mt=".vue-create-company";async function ja(){const t=document.querySelector(Mt);if(!t)return;const[{createApp:e},{default:n}]=await Promise.all([j(()=>import("./vue.runtime.esm-bundler-ab15dcc5.js"),["assets/vue.runtime.esm-bundler-ab15dcc5.js","assets/runtime-dom.esm-bundler-caa8590e.js","assets/runtime-core.esm-bundler-c066f4bf.js"]),j(()=>import("./app-company-b6ff470e.js"),["assets/app-company-b6ff470e.js","assets/runtime-dom.esm-bundler-caa8590e.js","assets/runtime-core.esm-bundler-c066f4bf.js","assets/address-suggestions-46e26067.js","assets/base-icon-d2f9b0eb.js","assets/address-suggestions-61fdd259.css","assets/base-field-9d4e36f9.js","assets/base-file-field-30306318.js","assets/base-select-field-a2ddeb24.js","assets/base-select-field-b386a19f.css","assets/base-textarea-field-c7d8e4d9.js","assets/base-textarea-field-922fc254.css","assets/base-email-field-96a925ce.js"])]),{companyTypes:s,businessDirections:r,regions:i,deliveryItems:o,paymentItems:l,heading:a,buttonText:c,action:u,redirectRoute:p,companyData:g}=t.dataset;e(n,{companyTypes:s?JSON.parse(s):[],businessDirections:r?JSON.parse(r):[],regions:i?JSON.parse(i):[],deliveryItems:o?JSON.parse(o):[],paymentItems:l?JSON.parse(l):[],heading:a,buttonText:c,action:u,redirectRoute:p,companyData:g?JSON.parse(g):null}).mount(Mt)}ja();const Na="/api/cart/remove",za="/api/cart/change-quantity",Ha=document.querySelectorAll(".js-remove-product"),Fa=document.querySelectorAll(".js-product-quantity");function Va(){Fa?.forEach(t=>{const e=t.dataset.productid;t.querySelectorAll("svg").forEach(n=>n.style.pointerEvents="none"),t.addEventListener("click",async n=>{const s=t.querySelector(".js-product-quantity-control");let r=+s.value;n.target.classList.contains("js-product-quantity-decrease")&&(r-=1),n.target.classList.contains("js-product-quantity-increase")&&(r+=1),await A("POST",za,{product_id:e,quantity:r}).then(i=>{i.result===!0&&(s.value=i.quantity),i.existsProduct===!1&&_t(n.target)})})}),Ha?.forEach(t=>t.addEventListener("click",async e=>{const{currentTarget:n}=e,s=n.dataset.productid;await A("DELETE",Na,{product_id:s}).then(r=>{r.result===!0&&_t(n)})}))}function _t(t){const e=t.closest(".cart__company");t.closest(".js-product-card-row").remove(),e.querySelectorAll(".js-product-card-row").length===0&&e.remove(),it()}Va();var Ga=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Wa(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var vn={exports:{}};(function(t,e){(function(n,s){t.exports=s()})(Ga,function(){var n=new Map;function s(a){if(!a||!a.nodeName||a.nodeName!=="TEXTAREA"||n.has(a))return;var c=null;function u(w){for(var h=[];w&&w.parentNode&&w.parentNode instanceof Element;)w.parentNode.scrollTop&&h.push([w.parentNode,w.parentNode.scrollTop]),w=w.parentNode;return function(){return h.forEach(function(f){var d=f[0],y=f[1];d.style.scrollBehavior="auto",d.scrollTop=y,d.style.scrollBehavior=null})}}var p=window.getComputedStyle(a);function g(w){var h=w.restoreTextAlign,f=h===void 0?null:h,d=w.testForHeightReduction,y=d===void 0?!0:d,S=p.overflowY;if(a.scrollHeight!==0){p.resize==="vertical"?a.style.resize="none":p.resize==="both"&&(a.style.resize="horizontal");var C;y&&(C=u(a),a.style.height="");var x;if(p.boxSizing==="content-box"?x=a.scrollHeight-(parseFloat(p.paddingTop)+parseFloat(p.paddingBottom)):x=a.scrollHeight+parseFloat(p.borderTopWidth)+parseFloat(p.borderBottomWidth),p.maxHeight!=="none"&&x>parseFloat(p.maxHeight)?(p.overflowY==="hidden"&&(a.style.overflow="scroll"),x=parseFloat(p.maxHeight)):p.overflowY!=="hidden"&&(a.style.overflow="hidden"),a.style.height=x+"px",f&&(a.style.textAlign=f),C&&C(),c!==x&&(a.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),c=x),S!==p.overflow&&!f){var _=p.textAlign;p.overflow==="hidden"&&(a.style.textAlign=_==="start"?"end":"start"),g({restoreTextAlign:_,testForHeightReduction:!0})}}}function m(){g({testForHeightReduction:!0,restoreTextAlign:null})}var E=function(){var w=a.value;return function(){g({testForHeightReduction:w===""||!a.value.startsWith(w),restoreTextAlign:null}),w=a.value}}(),v=function(w){a.removeEventListener("autosize:destroy",v),a.removeEventListener("autosize:update",m),a.removeEventListener("input",E),window.removeEventListener("resize",m),Object.keys(w).forEach(function(h){return a.style[h]=w[h]}),n.delete(a)}.bind(a,{height:a.style.height,resize:a.style.resize,textAlign:a.style.textAlign,overflowY:a.style.overflowY,overflowX:a.style.overflowX,wordWrap:a.style.wordWrap});a.addEventListener("autosize:destroy",v),a.addEventListener("autosize:update",m),a.addEventListener("input",E),window.addEventListener("resize",m),a.style.overflowX="hidden",a.style.wordWrap="break-word",n.set(a,{destroy:v,update:m}),m()}function r(a){var c=n.get(a);c&&c.destroy()}function i(a){var c=n.get(a);c&&c.update()}var o=null;typeof window>"u"?(o=function(c){return c},o.destroy=function(a){return a},o.update=function(a){return a}):(o=function(c,u){return c&&Array.prototype.forEach.call(c.length?c:[c],function(p){return s(p)}),c},o.destroy=function(a){return a&&Array.prototype.forEach.call(a.length?a:[a],r),a},o.update=function(a){return a&&Array.prototype.forEach.call(a.length?a:[a],i),a});var l=o;return l})})(vn);var Xa=vn.exports;const Ya=Wa(Xa);Ya(document.querySelectorAll("textarea"));const yn=document.querySelectorAll(".js-rating-star"),Ua=document.querySelector(".js-rating-input");function Ja(){yn.forEach((t,e)=>{t.addEventListener("click",n=>{Ka(e),Ua.value=`${e+1}`})})}function Ka(t){yn.forEach((e,n)=>{n<=t?e.classList.add("rating__star_active"):e.classList.remove("rating__star_active")})}Ja();const Pt=".vue-app-product";async function Za(){const t=document.querySelector(Pt);if(!t)return;const[{createApp:e},{default:n}]=await Promise.all([j(()=>import("./vue.runtime.esm-bundler-ab15dcc5.js"),["assets/vue.runtime.esm-bundler-ab15dcc5.js","assets/runtime-dom.esm-bundler-caa8590e.js","assets/runtime-core.esm-bundler-c066f4bf.js"]),j(()=>import("./app-product-fc621489.js"),["assets/app-product-fc621489.js","assets/runtime-dom.esm-bundler-caa8590e.js","assets/runtime-core.esm-bundler-c066f4bf.js","assets/base-select-field-a2ddeb24.js","assets/base-icon-d2f9b0eb.js","assets/base-select-field-b386a19f.css","assets/base-file-field-30306318.js","assets/base-field-9d4e36f9.js","assets/base-textarea-field-c7d8e4d9.js","assets/base-textarea-field-922fc254.css","assets/modal-success-741fef31.js"])]),{heading:s,buttonText:r,action:i,companies:o,categories:l,regions:a,currencies:c,attributes:u,redirectRoute:p,productData:g,accessibilityTypes:m}=t.dataset;e(n,{heading:s,buttonText:r,action:i,companies:o?JSON.parse(o):[],categories:l?JSON.parse(l):[],regions:a?JSON.parse(a):[],currencies:c?JSON.parse(c):[],attributes:u?JSON.parse(u):[],redirectRoute:p,initialData:g?JSON.parse(g):null,accessibilityTypes:m?JSON.parse(m):[]}).mount(Pt)}Za();const At=".vue-app-profile";async function Qa(){const t=document.querySelector(At);if(!t)return;const[{createApp:e},{default:n}]=await Promise.all([j(()=>import("./vue.runtime.esm-bundler-ab15dcc5.js"),["assets/vue.runtime.esm-bundler-ab15dcc5.js","assets/runtime-dom.esm-bundler-caa8590e.js","assets/runtime-core.esm-bundler-c066f4bf.js"]),j(()=>import("./app-profile-1b528c1c.js"),["assets/app-profile-1b528c1c.js","assets/index.esm-f5031b82.js","assets/base-file-field-30306318.js","assets/base-icon-d2f9b0eb.js","assets/runtime-core.esm-bundler-c066f4bf.js","assets/base-field-9d4e36f9.js","assets/base-email-field-96a925ce.js","assets/modal-success-741fef31.js"])]),{userData:s,confirmedPhone:r}=t.dataset;e(n,{initialData:s?JSON.parse(s):null,confirmedPhone:JSON.parse(r)}).mount(At)}Qa();/*! maska v2.1.9 | (c) Alexander Shabunevich | Released under the MIT license */var eo=Object.defineProperty,to=(t,e,n)=>e in t?eo(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,le=(t,e,n)=>(to(t,typeof e!="symbol"?e+"":e,n),n);const Ot={"#":{pattern:/[0-9]/},"@":{pattern:/[a-zA-Z]/},"*":{pattern:/[a-zA-Z0-9]/}};class It{constructor(e={}){le(this,"opts",{}),le(this,"memo",new Map);const n={...e};if(n.tokens!=null){n.tokens=n.tokensReplace?{...n.tokens}:{...Ot,...n.tokens};for(const s of Object.values(n.tokens))typeof s.pattern=="string"&&(s.pattern=new RegExp(s.pattern))}else n.tokens=Ot;Array.isArray(n.mask)&&(n.mask.length>1?n.mask=[...n.mask].sort((s,r)=>s.length-r.length):n.mask=n.mask[0]??""),n.mask===""&&(n.mask=null),this.opts=n}masked(e){return this.process(e,this.findMask(e))}unmasked(e){return this.process(e,this.findMask(e),!1)}isEager(){return this.opts.eager===!0}isReversed(){return this.opts.reversed===!0}completed(e){const n=this.findMask(e);if(this.opts.mask==null||n==null)return!1;const s=this.process(e,n).length;return typeof this.opts.mask=="string"?s>=this.opts.mask.length:typeof this.opts.mask=="function"?s>=n.length:this.opts.mask.filter(r=>s>=r.length).length===this.opts.mask.length}findMask(e){const n=this.opts.mask;if(n==null)return null;if(typeof n=="string")return n;if(typeof n=="function")return n(e);const s=this.process(e,n.slice(-1).pop()??"",!1);return n.find(r=>this.process(e,r,!1).length>=s.length)??""}escapeMask(e){const n=[],s=[];return e.split("").forEach((r,i)=>{r==="!"&&e[i-1]!=="!"?s.push(i-s.length):n.push(r)}),{mask:n.join(""),escaped:s}}process(e,n,s=!0){var r;if(n==null)return e;const i=`value=${e},mask=${n},masked=${s?1:0}`;if(this.memo.has(i))return this.memo.get(i);const{mask:o,escaped:l}=this.escapeMask(n),a=[],c=this.opts.tokens!=null?this.opts.tokens:{},u=this.isReversed()?-1:1,p=this.isReversed()?"unshift":"push",g=this.isReversed()?0:o.length-1,m=this.isReversed()?()=>h>-1&&f>-1:()=>h<o.length&&f<e.length,E=d=>!this.isReversed()&&d<=g||this.isReversed()&&d>=g;let v,w=-1,h=this.isReversed()?o.length-1:0,f=this.isReversed()?e.length-1:0;for(;m();){const d=o.charAt(h),y=c[d],S=y?.transform!=null?y.transform(e.charAt(f)):e.charAt(f);if(!l.includes(h)&&y!=null){if(S.match(y.pattern)!=null)a[p](S),y.repeated?(w===-1?w=h:h===g&&h!==w&&(h=w-u),g===w&&(h-=u)):y.multiple&&(h-=u),h+=u;else if(y.multiple){const C=((r=a[f-u])==null?void 0:r.match(y.pattern))!=null,x=o.charAt(h+u);C&&x!==""&&c[x]==null?(h+=u,f-=u):a[p]("")}else S===v?v=void 0:y.optional&&(h+=u,f-=u);f+=u}else s&&!this.isEager()&&a[p](d),S===d&&!this.isEager()?f+=u:v=d,this.isEager()||(h+=u);if(this.isEager())for(;E(h)&&(c[o.charAt(h)]==null||l.includes(h));)s?a[p](o.charAt(h)):o.charAt(h)===e.charAt(f)&&(f+=u),h+=u}return this.memo.set(i,a.join("")),this.memo.get(i)}}const wn=t=>JSON.parse(t.replaceAll("'",'"')),kt=(t,e={})=>{const n={...e};return t.dataset.maska!=null&&t.dataset.maska!==""&&(n.mask=no(t.dataset.maska)),t.dataset.maskaEager!=null&&(n.eager=Ge(t.dataset.maskaEager)),t.dataset.maskaReversed!=null&&(n.reversed=Ge(t.dataset.maskaReversed)),t.dataset.maskaTokensReplace!=null&&(n.tokensReplace=Ge(t.dataset.maskaTokensReplace)),t.dataset.maskaTokens!=null&&(n.tokens=so(t.dataset.maskaTokens)),n},Ge=t=>t!==""?!!JSON.parse(t):!0,no=t=>t.startsWith("[")&&t.endsWith("]")?wn(t):t,so=t=>{if(t.startsWith("{")&&t.endsWith("}"))return wn(t);const e={};return t.split("|").forEach(n=>{const s=n.split(":");e[s[0]]={pattern:new RegExp(s[1]),optional:s[2]==="optional",multiple:s[2]==="multiple",repeated:s[2]==="repeated"}}),e};class En{constructor(e,n={}){le(this,"items",new Map),le(this,"beforeinputEvent",s=>{const r=s.target,i=this.items.get(r);i.isEager()&&"inputType"in s&&s.inputType.startsWith("delete")&&i.unmasked(r.value).length<=1&&this.setMaskedValue(r,"")}),le(this,"inputEvent",s=>{if(s instanceof CustomEvent&&s.type==="input"&&s.detail!=null&&typeof s.detail=="object"&&"masked"in s.detail)return;const r=s.target,i=this.items.get(r),o=r.value,l=r.selectionStart,a=r.selectionEnd;let c=o;if(i.isEager()){const u=i.masked(o),p=i.unmasked(o);p===""&&"data"in s&&s.data!=null?c=s.data:p!==i.unmasked(u)&&(c=p)}if(this.setMaskedValue(r,c),"inputType"in s&&(s.inputType.startsWith("delete")||l!=null&&l<o.length))try{r.setSelectionRange(l,a)}catch{}}),this.options=n,typeof e=="string"?this.init(Array.from(document.querySelectorAll(e)),this.getMaskOpts(n)):this.init("length"in e?Array.from(e):[e],this.getMaskOpts(n))}destroy(){for(const e of this.items.keys())e.removeEventListener("input",this.inputEvent),e.removeEventListener("beforeinput",this.beforeinputEvent);this.items.clear()}needUpdateOptions(e,n){const s=this.items.get(e),r=new It(kt(e,this.getMaskOpts(n)));return JSON.stringify(s.opts)!==JSON.stringify(r.opts)}needUpdateValue(e){const n=e.dataset.maskaValue;return n==null&&e.value!==""||n!=null&&n!==e.value}getMaskOpts(e){const{onMaska:n,preProcess:s,postProcess:r,...i}=e;return i}init(e,n){for(const s of e){const r=new It(kt(s,n));this.items.set(s,r),s.value!==""&&this.setMaskedValue(s,s.value),s.addEventListener("input",this.inputEvent),s.addEventListener("beforeinput",this.beforeinputEvent)}}setMaskedValue(e,n){const s=this.items.get(e);this.options.preProcess!=null&&(n=this.options.preProcess(n));const r=s.masked(n),i=s.unmasked(s.isEager()?r:n),o=s.completed(n),l={masked:r,unmasked:i,completed:o};n=r,this.options.postProcess!=null&&(n=this.options.postProcess(n)),e.value=n,e.dataset.maskaValue=n,this.options.onMaska!=null&&(Array.isArray(this.options.onMaska)?this.options.onMaska.forEach(a=>a(l)):this.options.onMaska(l)),e.dispatchEvent(new CustomEvent("maska",{detail:l})),e.dispatchEvent(new CustomEvent("input",{detail:l}))}}const Ze=new WeakMap,io=t=>{setTimeout(()=>{var e;((e=Ze.get(t))==null?void 0:e.needUpdateValue(t))===!0&&t.dispatchEvent(new CustomEvent("input"))})},Wl=(t,e)=>{const n=t instanceof HTMLInputElement?t:t.querySelector("input"),s={...e.arg};if(n==null)return;io(n);const r=Ze.get(n);if(r!=null){if(!r.needUpdateOptions(n,s))return;r.destroy()}if(e.value!=null){const i=e.value,o=l=>{i.masked=l.masked,i.unmasked=l.unmasked,i.completed=l.completed};s.onMaska=s.onMaska==null?o:Array.isArray(s.onMaska)?[...s.onMaska,o]:[s.onMaska,o]}Ze.set(n,new En(n,s))};new En('input[type="tel"]',{mask:"+7 (###) ###-##-##"});const ro=/^\+7 \(\d{3}\) \d{3}-\d{2}-\d{2}$/;for(const t of document.querySelectorAll('input[type="tel"]'))t.pattern=ro.source;const Qe=document.querySelectorAll('.js-base-field input[type="email"]');function ao(){const t=/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/;Qe.forEach(e=>{e.addEventListener("input",function(){this.value=this.value.replace(/[^a-zA-Z0-9@.\-_]/g,"");const s=this.closest("form").querySelector(".error-message");t.test(this.value)?s.style.display="none":s.style.display="block"})}),Qe.forEach(e=>{e.closest("form").addEventListener("submit",function(s){const r=this.querySelector('input[type="email"]'),i=this.querySelector(".error-message");t.test(r.value)?i.style.display="none":(i.style.display="block",s.preventDefault())})})}Qe.length&&ao();const oo=document.querySelectorAll(".base-field");function lo(t){const e=t.querySelector("input");e&&e.addEventListener("blur",()=>{t.classList.add("base-field_validate")},{once:!0})}for(const t of oo)lo(t);const co=document.querySelectorAll('.base-field:has(input[type="email"])');for(const t of co);const fe="/api/modals/regions",pe={category:"category",filter:"filter",companies:"companies",catalog:"catalog",header:"header"};function uo(t,e){return A("POST",fe,{page:pe.category,category_id:e,region_id:t},!1)}function fo(t){return A("POST",fe,{page:pe.filter,region_id:t},!1)}function po(t,e){return A("POST",fe,{page:pe.companies,category_id:e,region_id:t},!1)}function mo(t,e=null){return A("POST",fe,{page:pe.catalog,region_id:t,query:e},!1)}function ho(t){return A("POST",fe,{page:pe.header,region_id:t},!1)}const go=".js-search-regions-control",vo=".js-search-region";function Sn(t){if(!t)return;const e=t.querySelector(go),n=t.querySelectorAll(vo);function s(r){const i=r.target.value.toUpperCase();for(const o of n){const l=o.closest("li");l.setAttribute("hidden","true"),o.textContent.toUpperCase().includes(i)&&l.removeAttribute("hidden")}}e.addEventListener("input",s)}const Tn=".js-show-regions",yo=".js-show-regions-control",wo=".js-show-regions-inner",Me=document.querySelector(Tn),ne=Me?.querySelector(yo),we=Me?.querySelector(wo);function Eo(){if(!Me||!ne||!we)return;function t(s){s.target.closest(Tn)||(ne.checked=!1)}function e(s){s.key==="Escape"&&(ne.checked=!1)}async function n(s){if(s.target.checked)try{const{regionId:r}=Me.dataset;we.innerHTML='<div class="loading-spinner"></div>';const i=await ho(r);i&&(we.innerHTML=i,Sn(we),ne.removeEventListener("input",n))}catch(r){console.log(r)}}document.addEventListener("click",t),document.addEventListener("keydown",e),ne.addEventListener("input",n)}const So=document.querySelector(".js-filter-query");async function To(t){return(await R()).show([{html:t}])}function bo(t,e){const n=document.querySelector(".js-filter-region-id"),s=document.querySelector(".js-filter-region-name");!n||!s||t.addEventListener("click",r=>{const i=r.target.closest(".js-region-popup-item");i&&(n.value=i.dataset.regionId,s.textContent=i.dataset.regionName,e.close())})}function Lo(t,e,n,s){switch(t){case"category":return uo(n,e);case"catalog":return mo(n,s);case"filter":return fo(n);case"company":return po(n,e);default:return null}}async function xo(t){try{const{categoryId:e,regionId:n,type:s}=t.currentTarget.dataset,r=So?.value||null,i=await Lo(s,e,n,r);if(i){const o=document.createElement("div");o.innerHTML=i,Sn(o);const l=await To(o);s==="filter"&&bo(o,l)}}catch(e){console.log(e)}}function Co(t){t&&t.addEventListener("click",xo)}const Mo=document.querySelectorAll(".js-regions-popup");for(const t of Mo)Co(t);Eo();const bn=".vue-app-cart",_o=".js-cart-app",Po="cart_loading",Ao=document.querySelector(bn),Ln=document.querySelector(_o);function Oo(){Ln.classList.remove(Po)}async function Io(){if(!Ao||!Ln)return;const[{createApp:t},{default:e}]=await Promise.all([j(()=>import("./vue.runtime.esm-bundler-ab15dcc5.js"),["assets/vue.runtime.esm-bundler-ab15dcc5.js","assets/runtime-dom.esm-bundler-caa8590e.js","assets/runtime-core.esm-bundler-c066f4bf.js"]),j(()=>import("./app-cart-7918965b.js"),["assets/app-cart-7918965b.js","assets/base-icon-d2f9b0eb.js","assets/runtime-core.esm-bundler-c066f4bf.js"])]),n=await st(),s=Object.values(n);await t(e,{companies:s}).mount(bn).$nextTick(()=>{Oo()})}Io();const ko=".js-preview-image-file",qo=".js-image-container",xn=t=>{const e=t.querySelector(ko),n=e?.querySelector('input[type="file"]'),s=e?.querySelector(qo);if(!e||!n)return;const r=({target:i})=>{if(!s)return;const o=i.files,l=o?[...o]:[],a=document.createElement("img");a.file=l[0],s.innerHTML="",s.appendChild(a);const c=new FileReader;c.onload=u=>{a.src=u.target.result},c.readAsDataURL(l[0])};n?.addEventListener("change",r)};function Ro(t){return A("POST","/api/news/add",t)}function Do(t){return A("DELETE",`/api/news/${t}/delete`,{})}function Bo(t){return A("POST","/api/modals/store-news",{company_id:t},!1)}function $o(t){return A("POST","/api/modals/store-news",{news_id:t},!1)}function jo(t,e){return A("POST","/api/news/update",e)}const No=".js-create-store-news",zo=".js-edit-news",Ho=".js-store-news",Fo=document.querySelector(No),Vo=document.querySelectorAll(zo),Go=t=>t.type.startsWith("image/"),at=async t=>(await R()).show([{html:t}]),Wo=(t,e,n)=>(Go(t.get("image"))||t.set("image",""),e==="create"?Ro(t):e==="edit"?jo(n,t):null),Xo=async(t,e)=>{t.preventDefault();const n=t.currentTarget,s=n.querySelector('button[type="submit"]');s.disabled=!0;const r=new FormData(n),i=r.get("news_id"),{action:o}=n.dataset;try{let l;const a=await Wo(r,o,i);o==="create"?l="<p>Новость создана</p>":o==="edit"&&(l="<p>Новость сохранена</p>"),a.result&&(e.close(),await at(l))}catch(l){console.log(l)}finally{n.reset()}},Yo=(t,e)=>{t?.addEventListener("submit",n=>Xo(n,e))},Cn=async t=>{try{const{companyId:e,newsId:n}=t.currentTarget.dataset;let s;e?s=await Bo(e):n&&(s=await $o(n));const r=await at(s);r.on("done",({container:i})=>{xn(i),Yo(i.querySelector(Ho),r)})}catch(e){console.log("catch error",e)}},Uo=()=>{Fo?.addEventListener("click",Cn)},Jo=()=>{for(const t of Vo)t.addEventListener("click",Cn)},Ko=()=>{Uo(),Jo()},Zo=".js-remove-news",Qo=".js-news-card",el=document.querySelectorAll(Zo),tl=t=>{const e=t.closest(Qo);e&&e.remove()},nl=async t=>{const e=t.currentTarget,{newsId:n}=e.dataset;try{e.disabled=!0,(await Do(n)).result&&(await at("<p>Новость удалена</p>"),tl(e))}catch(s){console.log(s)}finally{e.disabled=!1}},sl=()=>{for(const t of el)t.addEventListener("click",nl)};Ko();sl();function il(t){return A("POST","/api/articles/add",t)}function rl(t){return A("DELETE",`/api/articles/${t}/delete`,{})}function al(t){return A("POST","/api/modals/store-article",{company_id:t},!1)}function ol(t){return A("POST","/api/modals/store-article",{article_id:t},!1)}function ll(t,e){return A("POST","/api/articles/update",e)}const cl=".js-create-store-article",dl=".js-edit-article",ul=".js-store-article",fl=document.querySelector(cl),pl=document.querySelectorAll(dl),ml=t=>t.type.startsWith("image/"),ot=async t=>(await R()).show([{html:t}]),hl=(t,e,n)=>(ml(t.get("image"))||t.set("image",""),e==="create"?il(t):e==="edit"?ll(n,t):null),gl=async(t,e)=>{t.preventDefault();const n=t.currentTarget,s=n.querySelector('button[type="submit"]');s.disabled=!0;const r=new FormData(n),i=r.get("article_id"),{action:o}=n.dataset;try{let l;const a=await hl(r,o,i);o==="create"?l="<p>Статья создана</p>":o==="edit"&&(l="<p>Статья сохранена</p>"),a.result&&(e.close(),await ot(l))}catch(l){console.log(l)}finally{n.reset()}},vl=(t,e)=>{t?.addEventListener("submit",n=>gl(n,e))},Mn=async t=>{try{const{companyId:e,articleId:n}=t.currentTarget.dataset;let s;e?s=await al(e):n&&(s=await ol(n));const r=await ot(s);r.on("done",({container:i})=>{xn(i),vl(i.querySelector(ul),r)})}catch(e){console.log("catch error",e)}},yl=()=>{fl?.addEventListener("click",Mn)},wl=()=>{for(const t of pl)t.addEventListener("click",Mn)},El=()=>{yl(),wl()},Sl=".js-remove-article",Tl=".js-article-card",bl=document.querySelectorAll(Sl),Ll=t=>{const e=t.closest(Tl);e&&e.remove()},xl=async t=>{const e=t.currentTarget,{articleId:n}=e.dataset;try{e.disabled=!0,(await rl(n)).result&&(await ot("<p>Статья удалена</p>"),Ll(e))}catch(s){console.log(s)}finally{e.disabled=!1}},Cl=()=>{for(const t of bl)t.addEventListener("click",xl)};El();Cl();function Ml(){return window.matchMedia("(max-width: 600px)")?.matches}const qt=Ml();if(window.adBlocks)for(const{isMobile:t,isDesktop:e,callback:n}of window.adBlocks)qt&&t&&n(),!qt&&e&&n();var _n={exports:{}},_e={};function Pn(t){function e(r,i,o,l){var a=i?n+r+t.e+i:n+r,c=a;if(o){var u=" "+c+t.m;for(var p in o)if(o.hasOwnProperty(p)){var g=o[p];g===!0?c+=u+p:g&&(c+=u+p+s+g)}}if(l!==void 0)for(var m=0,E=(l=Array.isArray(l)?l:[l]).length;m<E;m++){var v=l[m];if(v&&typeof v.valueOf()=="string")for(var w=v.valueOf().split(" "),h=0;h<w.length;h++){var f=w[h];f!==a&&(c+=" "+f)}}return c}var n=t.n||"",s=t.v||t.m;return function(r,i){return function(o,l,a){return typeof o=="string"?typeof l=="string"||Array.isArray(l)?e(r,o,void 0,l):e(r,o,l,a):e(r,i,o,l)}}}Object.defineProperty(_e,"__esModule",{value:!0});var _l=Pn({e:"-",m:"_"});_e.cn=_l,_e.withNaming=Pn;_n.exports=_e;var Pl=_n.exports;const Xl=Pl.withNaming({e:"__",m:"_",v:"_"});function Al(){return document.querySelector('meta[name="csrf-token"]').getAttribute("content")||null}const Ol=new AbortController;function Yl(){Ol.abort()}function Ul(t){return/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/.test(t)}const Rt={Accept:"application/json","X-CSRF-TOKEN":Al()};async function Il(t,e="get",n=null){const s={method:e,headers:{...Rt}};n instanceof FormData?s.body=n:n&&(s.headers={...Rt,"Content-Type":"application/json"},s.body=JSON.stringify(n));try{return(await fetch(t,s)).json()}catch{return Promise.reject(new Error("Что то пошло не так"))}}function kl(t,e,n){return Il("/api/comments/add-answer","POST",{entity_id:t,type:e,answer:n})}const ql="#modal-answer",Rl=".js-create-answer";let ae=null,se=null;const Dl=async t=>{const e=await R();return ae&&ae.close(),ae=e.show([{html:t}]),ae},Bl=(t,e)=>{const n=document.querySelector(`[data-review-id="${t}"]`);let s=n.querySelector(".review__answer");s?s.querySelector(".review__text").textContent=e:(s=document.createElement("div"),s.classList.add("review__answer"),s.innerHTML=`
      <div class="review__text js-review-text">${e}</div>
      <div class="review__account">
        <div class="review__person-name js-review-person-name">Ответ продавца</div>
        <div class="review__date js-review-date">${new Date().toLocaleDateString()}</div>
      </div>`,n.appendChild(s))},$l=async t=>kl(parseInt(t.get("entity_id"),10),t.get("type"),t.get("answer")),jl=async t=>{t.preventDefault();const e=t.target.querySelector('button[type="submit"]');e.disabled=!0;try{const n=new FormData(t.target);(await $l(n)).result&&(Bl(n.get("entity_id"),n.get("answer")),ae.close())}catch(n){console.error(n)}finally{e.disabled=!1,t.target.reset()}},Nl=async(t,e,n)=>{const s=document.querySelector(ql).outerHTML;(await Dl(s)).on("done",({container:i})=>{se=i.querySelector(Rl),se.elements.entity_id.value=t,se.elements.type.value=e,n&&(se.elements.answer.value=n),se.addEventListener("submit",jl)})};document.addEventListener("click",async t=>{if(t.target.matches(".js-review-answer")){const e=t.target.closest(".js-review"),{reviewId:n}=e.dataset,s=e.dataset.type,{existingAnswer:r}=e.dataset;await Nl(n,s,r)}});const et=document.querySelector(".js-loader-container"),oe=document.querySelector(".js-loader-gradient");let An;function zl(){et&&et.innerHTML.trim()!==""?(oe&&(oe.style.display="none"),clearInterval(An)):oe&&(oe.style.display="block")}et&&oe&&(An=setInterval(zl,500));const Hl=document.querySelector("#modal-success-comment"),Dt=document.querySelectorAll(".js-success-comment"),Fl=async(t,e)=>{const n=await R(),s=t.querySelector(".modal-login__success-text");s&&(s.textContent=e),n.close(),n.show([{html:t.outerHTML}])};function Vl(t){t.closest("form").addEventListener("submit",async()=>{const n=t.dataset.successText||"Заявка отправлена";await Fl(Hl,n)})}Dt.length&&Dt.forEach(t=>{Vl(t)});export{Wl as U,Ga as a,Yl as b,Xl as c,Pe as d,Ya as e,Il as f,Wa as g,R as h,Kt as i,tr as j,Gl as k,on as l,er as r,A as s,Qt as u,Ul as v};
