(function(n,t){typeof exports=="object"&&typeof module!="undefined"?module.exports=t():typeof define=="function"&&define.amd?define(t):n.Swiper=t()})(this,function(){"use strict";function t(n,t){var s=[],r=0,h,c,e,o;if(n&&!t&&n instanceof f)return n;if(n)if(typeof n=="string")if(e=n.trim(),e.indexOf("<")>=0&&e.indexOf(">")>=0)for(o="div",e.indexOf(":~]/)?(t||u).querySelectorAll(n.trim()):[u.getElementById(n.trim().split("#")[1])],r=0;r0&&n[0].nodeType)for(r=0;r=0;r-=1)c=i[r],o&&c.listener===o?(t.removeEventListener(f,c.proxyListener,u),i.splice(r,1)):o||(t.removeEventListener(f,c.proxyListener,u),i.splice(r,1));return this}function ki(){for(var l=this,r=[],o=arguments.length,s,h,f,c,e,t,n;o--;)r[o]=arguments[o];for(s=r[0].split(" "),h=r[1],f=0;f0});t.dispatchEvent(n);t.dom7EventData=[];delete t.dom7EventData}return this}function di(n){function u(f){if(f.target===this)for(n.call(this,f),t=0;t0){if(n){var t=this.styles();return this[0].offsetWidth+parseFloat(t.getPropertyValue("margin-right"))+parseFloat(t.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null}function nr(n){if(this.length>0){if(n){var t=this.styles();return this[0].offsetHeight+parseFloat(t.getPropertyValue("margin-top"))+parseFloat(t.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null}function tr(){if(this.length>0){var n=this[0],t=n.getBoundingClientRect(),r=u.body,f=n.clientTop||r.clientTop||0,e=n.clientLeft||r.clientLeft||0,o=n===i?i.scrollY:n.scrollTop,s=n===i?i.scrollX:n.scrollLeft;return{top:t.top+o-f,left:t.left+s-e}}return null}function ir(){return this[0]?i.getComputedStyle(this[0],null):{}}function rr(n,t){var f=this,r,u;if(arguments.length===1)if(typeof n=="string"){if(this[0])return i.getComputedStyle(this[0],null).getPropertyValue(n)}else{for(r=0;ri-1?new f([]):n<0?(t=i+n,t<0)?new f([]):new f([this[t]]):new f([this[n]])}function cr(){for(var o=this,s=[],h=arguments.length,n,i,t,r,e;h--;)s[h]=arguments[h];for(i=0;i=0;i-=1)r[t].insertBefore(e.childNodes[i],r[t].childNodes[0]);else if(n instanceof f)for(i=0;i0?n?this[0].nextElementSibling&&t(this[0].nextElementSibling).is(n)?new f([this[0].nextElementSibling]):new f([]):this[0].nextElementSibling?new f([this[0].nextElementSibling]):new f([]):new f([])}function vr(n){var u=[],r=this[0],i;if(!r)return new f([]);while(r.nextElementSibling)i=r.nextElementSibling,n?t(i).is(n)&&u.push(i):u.push(i),r=i;return new f(u)}function yr(n){if(this.length>0){var i=this[0];return n?i.previousElementSibling&&t(i.previousElementSibling).is(n)?new f([i.previousElementSibling]):new f([]):i.previousElementSibling?new f([i.previousElementSibling]):new f([])}return new f([])}function pr(n){var u=[],r=this[0],i;if(!r)return new f([]);while(r.previousElementSibling)i=r.previousElementSibling,n?t(i).is(n)&&u.push(i):u.push(i),r=i;return new f(u)}function wr(n){for(var r=this,u=[],i=0;i=0&&(s=parseFloat(s.replace("%",""))/100*v);u.virtualSize=-s;ot?c.css({marginLeft:"",marginTop:""}):c.css({marginRight:"",marginBottom:""});t.slidesPerColumn>1&&(b=Math.floor(y/t.slidesPerColumn)===y/u.params.slidesPerColumn?y:Math.ceil(y/t.slidesPerColumn)*t.slidesPerColumn,t.slidesPerView!=="auto"&&t.slidesPerColumnFill==="row"&&(b=Math.max(b,t.slidesPerView*t.slidesPerColumn)));var e,k=t.slidesPerColumn,ft=b/k,at=ft-(t.slidesPerColumn*ft-y);for(o=0;o1){var d=void 0,p=void 0,a=void 0;t.slidesPerColumnFill==="column"?(p=Math.floor(o/k),a=o-p*k,(p>at||p===at&&a===k-1)&&(a+=1,a>=k&&(a=0,p+=1)),d=p+a*b/k,l.css({"-webkit-box-ordinal-group":d,"-moz-box-ordinal-group":d,"-ms-flex-order":d,"-webkit-order":d,order:d})):(a=Math.floor(o/ft),p=o-a*ft);l.css("margin-"+(u.isHorizontal()?"top":"left"),a!==0&&t.spaceBetween&&t.spaceBetween+"px").attr("data-swiper-column",p).attr("data-swiper-row",a)}l.css("display")!=="none"&&(t.slidesPerView==="auto"?(nt=i.getComputedStyle(l[0],null),et=l[0].style.transform,et&&(l[0].style.transform="none"),e=u.isHorizontal()?l[0].getBoundingClientRect().width+parseFloat(nt.getPropertyValue("margin-left"))+parseFloat(nt.getPropertyValue("margin-right")):l[0].getBoundingClientRect().height+parseFloat(nt.getPropertyValue("margin-top"))+parseFloat(nt.getPropertyValue("margin-bottom")),et&&(l[0].style.transform=et),t.roundLengths&&(e=Math.floor(e))):(e=(v-(t.slidesPerView-1)*s)/t.slidesPerView,t.roundLengths&&(e=Math.floor(e)),c[o]&&(u.isHorizontal()?c[o].style.width=e+"px":c[o].style.height=e+"px")),c[o]&&(c[o].swiperSlideSize=e),lt.push(e),t.centeredSlides?(h=h+e/2+ht/2+s,ht===0&&o!==0&&(h=h-v/2-s),o===0&&(h=h-v/2-s),Math.abs(h)<1/1e3&&(h=0),ct%t.slidesPerGroup==0&&f.push(h),rt.push(h)):(ct%t.slidesPerGroup==0&&f.push(h),rt.push(h),h=h+e+s),u.virtualSize+=e+s,ht=e,ct+=1)}if(u.virtualSize=Math.max(u.virtualSize,v)+ut,ot&&vt&&(t.effect==="slide"||t.effect==="coverflow")&&w.css({width:u.virtualSize+t.spaceBetween+"px"}),(!r.flexbox||t.setWrapperSize)&&(u.isHorizontal()?w.css({width:u.virtualSize+t.spaceBetween+"px"}):w.css({height:u.virtualSize+t.spaceBetween+"px"})),t.slidesPerColumn>1&&(u.virtualSize=(e+t.spaceBetween)*b,u.virtualSize=Math.ceil(u.virtualSize/t.slidesPerColumn)-t.spaceBetween,u.isHorizontal()?w.css({width:u.virtualSize+t.spaceBetween+"px"}):w.css({height:u.virtualSize+t.spaceBetween+"px"}),t.centeredSlides)){for(g=[],tt=0;tt1&&f.push(u.virtualSize-v)}f.length===0&&(f=[0]);t.spaceBetween!==0&&(u.isHorizontal()?ot?c.css({marginLeft:s+"px"}):c.css({marginRight:s+"px"}):c.css({marginBottom:s+"px"}));n.extend(u,{slides:c,snapGrid:f,slidesGrid:rt,slidesSizesGrid:lt});y!==pt&&u.emit("slidesLengthChange");f.length!==wt&&(u.params.watchOverflow&&u.checkOverflow(),u.emit("snapGridLengthChange"));rt.length!==bt&&u.emit("slidesGridLengthChange");(t.watchSlidesProgress||t.watchSlidesVisibility)&&u.updateSlidesOffset()}}function uu(n){var t=this,r=[],u=0,i,f,e;if(typeof n=="number"?t.setTransition(n):n===!0&&t.setTransition(t.params.speed),t.params.slidesPerView!=="auto"&&t.params.slidesPerView>1)for(i=0;it.slides.length)break;r.push(t.slides.eq(f)[0])}else r.push(t.slides.eq(t.activeIndex)[0]);for(i=0;iu?e:u);u&&t.$wrapperEl.css("height",u+"px")}function fu(){for(var i=this,t=i.slides,n=0;n=0&&o0&&h<=t.size||o<=0&&h>=t.size;l&&i.eq(r).addClass(u.slideVisibleClass)}f.progress=c?-s:s}}function ou(t){t===void 0&&(t=this&&this.translate||0);var i=this,e=i.params,o=i.maxTranslate()-i.minTranslate(),r=i.progress,u=i.isBeginning,f=i.isEnd,s=u,h=f;o===0?(r=0,u=!0,f=!0):(r=(t-i.minTranslate())/o,u=r<=0,f=r>=1);n.extend(i,{progress:r,isBeginning:u,isEnd:f});(e.watchSlidesProgress||e.watchSlidesVisibility)&&i.updateSlidesProgress(t);u&&!s&&i.emit("reachBeginning toEdge");f&&!h&&i.emit("reachEnd toEdge");(s&&!u||h&&!f)&&i.emit("fromEdge");i.emit("progress",r)}function su(){var t=this,e=t.slides,n=t.params,u=t.$wrapperEl,o=t.activeIndex,s=t.realIndex,h=t.virtual&&n.virtual.enabled,f,i,r;e.removeClass(n.slideActiveClass+" "+n.slideNextClass+" "+n.slidePrevClass+" "+n.slideDuplicateActiveClass+" "+n.slideDuplicateNextClass+" "+n.slideDuplicatePrevClass);f=h?t.$wrapperEl.find("."+n.slideClass+'[data-swiper-slide-index="'+o+'"]'):e.eq(o);f.addClass(n.slideActiveClass);n.loop&&(f.hasClass(n.slideDuplicateClass)?u.children("."+n.slideClass+":not(."+n.slideDuplicateClass+')[data-swiper-slide-index="'+s+'"]').addClass(n.slideDuplicateActiveClass):u.children("."+n.slideClass+"."+n.slideDuplicateClass+'[data-swiper-slide-index="'+s+'"]').addClass(n.slideDuplicateActiveClass));i=f.nextAll("."+n.slideClass).eq(0).addClass(n.slideNextClass);n.loop&&i.length===0&&(i=e.eq(0),i.addClass(n.slideNextClass));r=f.prevAll("."+n.slideClass).eq(0).addClass(n.slidePrevClass);n.loop&&r.length===0&&(r=e.eq(-1),r.addClass(n.slidePrevClass));n.loop&&(i.hasClass(n.slideDuplicateClass)?u.children("."+n.slideClass+":not(."+n.slideDuplicateClass+')[data-swiper-slide-index="'+i.attr("data-swiper-slide-index")+'"]').addClass(n.slideDuplicateNextClass):u.children("."+n.slideClass+"."+n.slideDuplicateClass+'[data-swiper-slide-index="'+i.attr("data-swiper-slide-index")+'"]').addClass(n.slideDuplicateNextClass),r.hasClass(n.slideDuplicateClass)?u.children("."+n.slideClass+":not(."+n.slideDuplicateClass+')[data-swiper-slide-index="'+r.attr("data-swiper-slide-index")+'"]').addClass(n.slideDuplicatePrevClass):u.children("."+n.slideClass+"."+n.slideDuplicateClass+'[data-swiper-slide-index="'+r.attr("data-swiper-slide-index")+'"]').addClass(n.slideDuplicatePrevClass))}function hu(t){var i=this,e=i.rtlTranslate?i.translate:-i.translate,f=i.slidesGrid,s=i.snapGrid,c=i.params,l=i.activeIndex,a=i.realIndex,v=i.snapIndex,u=t,o,r,h;if(typeof u=="undefined"){for(r=0;r=f[r]&&e=f[r]&&e=f[r]&&(u=r);c.normalizeSlideIndex&&(u<0||typeof u=="undefined")&&(u=0)}if(o=s.indexOf(e)>=0?s.indexOf(e):Math.floor(u/c.slidesPerGroup),o>=s.length&&(o=s.length-1),u===l){o!==v&&(i.snapIndex=o,i.emit("snapIndexChange"));return}h=parseInt(i.slides.eq(u).attr("data-swiper-slide-index")||u,10);n.extend(i,{snapIndex:o,realIndex:h,previousIndex:l,activeIndex:u});i.emit("activeIndexChange");i.emit("snapIndexChange");a!==h&&i.emit("realIndexChange");i.emit("slideChange")}function cu(n){var i=this,f=i.params,r=t(n.target).closest("."+f.slideClass)[0],e=!1,u;if(r)for(u=0;uf?"next":uf?"next":u=v.length&&(a=v.length-1),(c||h.initialSlide||0)===(w||0)&&i&&f.emit("beforeSlideChangeStart"),o=-v[a],f.updateProgress(o),h.normalizeSlideIndex)for(l=0;l=Math.floor(y[l]*100)&&(e=l);return f.initialized&&e!==c&&(!f.allowSlideNext&&of.translate&&o>f.maxTranslate()&&(c||0)!==e)?!1:(s=e>c?"next":e(s-e)/2&&(u=r.params.slidesPerGroup)}return r.slideTo(u,n,t,i)}function uf(){var i=this,u=i.params,o=i.$wrapperEl,f=u.slidesPerView==="auto"?i.slidesPerViewDynamic():u.slidesPerView,r=i.clickedIndex,e;if(u.loop){if(i.animating)return;e=parseInt(t(i.clickedSlide).attr("data-swiper-slide-index"),10);u.centeredSlides?ri.slides.length-i.loopedSlides+f/2?(i.loopFix(),r=o.children("."+u.slideClass+'[data-swiper-slide-index="'+e+'"]:not(.'+u.slideDuplicateClass+")").eq(0).index(),n.nextTick(function(){i.slideTo(r)})):i.slideTo(r):r>i.slides.length-f?(i.loopFix(),r=o.children("."+u.slideClass+'[data-swiper-slide-index="'+e+'"]:not(.'+u.slideDuplicateClass+")").eq(0).index(),n.nextTick(function(){i.slideTo(r)})):i.slideTo(r)}else i.slideTo(r)}function ff(){var r=this,n=r.params,f=r.$wrapperEl,i,c,l,a,e,o,s,h;if(f.children("."+n.slideClass+"."+n.slideDuplicateClass).remove(),i=f.children("."+n.slideClass),n.loopFillGroupWithBlank&&(c=n.slidesPerGroup-i.length%n.slidesPerGroup,c!==n.slidesPerGroup)){for(l=0;li.length&&(r.loopedSlides=i.length),e=[],o=[],i.each(function(n,u){var f=t(u);n=i.length-r.loopedSlides&&e.push(u);f.attr("data-swiper-slide-index",n)}),s=0;s=0;h-=1)f.prepend(t(e[h].cloneNode(!0)).addClass(n.slideDuplicateClass))}function ef(){var n=this,e=n.params,t=n.activeIndex,f=n.slides,i=n.loopedSlides,l=n.allowSlidePrev,a=n.allowSlideNext,v=n.snapGrid,o=n.rtlTranslate,r,s,u,h,c;n.allowSlidePrev=!0;n.allowSlideNext=!0;s=-v[t];u=s-n.getTranslate();t=i*2||t>f.length-e.slidesPerView*2)&&(r=-f.length+t+i,r+=i,c=n.slideTo(r,0,!1,!0),c&&u!==0&&n.setTranslate((o?-n.translate:n.translate)-u));n.allowSlidePrev=l;n.allowSlideNext=a}function of(){var n=this,i=n.$wrapperEl,t=n.params,r=n.slides;i.children("."+t.slideClass+"."+t.slideDuplicateClass).remove();r.removeAttr("data-swiper-slide-index")}function sf(n){var i=this,t;r.touch||!i.params.simulateTouch||i.params.watchOverflow&&i.isLocked||(t=i.el,t.style.cursor="move",t.style.cursor=n?"-webkit-grabbing":"-webkit-grab",t.style.cursor=n?"-moz-grabbin":"-moz-grab",t.style.cursor=n?"grabbing":"grab")}function hf(){var n=this;r.touch||n.params.watchOverflow&&n.isLocked||(n.el.style.cursor="")}function cf(n){var t=this,f=t.$wrapperEl,u=t.params,i;if(u.loop&&t.loopDestroy(),typeof n=="object"&&"length"in n)for(i=0;i=i.screen.width-o.iOSEdgeSwipeThreshold)||(n.extend(h,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:undefined,startMoving:undefined}),c.startX=l,c.startY=v,h.touchStartTime=n.now(),s.allowClick=!0,s.updateSize(),s.swipeDirection=undefined,o.threshold>0&&(h.allowThresholdMove=!1),f.type!=="touchstart"&&(a=!0,t(f.target).is(h.formElements)&&(a=!1),u.activeElement&&t(u.activeElement).is(h.formElements)&&u.activeElement!==f.target&&u.activeElement.blur(),a&&s.allowTouchMove&&f.preventDefault()),s.emit("touchStart",f)))}}function pf(i){var f=this,r=f.touchEventsData,s=f.params,e=f.touches,b=f.rtlTranslate,o=i,c,l,a,v,w,h,y,p;if(o.originalEvent&&(o=o.originalEvent),!r.isTouched){r.startMoving&&r.isScrolling&&f.emit("touchMoveOpposite",o);return}if(!r.isTouchEvent||o.type!=="mousemove"){if(c=o.type==="touchmove"?o.targetTouches[0].pageX:o.pageX,l=o.type==="touchmove"?o.targetTouches[0].pageY:o.pageY,o.preventedByNestedSwiper){e.startX=c;e.startY=l;return}if(!f.allowTouchMove){f.allowClick=!1;r.isTouched&&(n.extend(e,{startX:c,startY:l,currentX:c,currentY:l}),r.touchStartTime=n.now());return}if(r.isTouchEvent&&s.touchReleaseOnEdges&&!s.loop)if(f.isVertical()){if(le.startY&&f.translate>=f.minTranslate()){r.isTouched=!1;r.isMoved=!1;return}}else if(ce.startX&&f.translate>=f.minTranslate())return;if(r.isTouchEvent&&u.activeElement&&o.target===u.activeElement&&t(o.target).is(r.formElements)){r.isMoved=!0;f.allowClick=!1;return}if(r.allowTouchCallbacks&&f.emit("touchMove",o),!o.targetTouches||!(o.targetTouches.length>1)){if(e.currentX=c,e.currentY=l,a=e.currentX-e.startX,v=e.currentY-e.startY,typeof r.isScrolling=="undefined"&&(f.isHorizontal()&&e.currentY===e.startY||f.isVertical()&&e.currentX===e.startX?r.isScrolling=!1:a*a+v*v>=25&&(w=Math.atan2(Math.abs(v),Math.abs(a))*180/Math.PI,r.isScrolling=f.isHorizontal()?w>s.touchAngle:90-w>s.touchAngle)),r.isScrolling&&f.emit("touchMoveOpposite",o),typeof startMoving=="undefined"&&(e.currentX!==e.startX||e.currentY!==e.startY)&&(r.startMoving=!0),r.isScrolling){r.isTouched=!1;return}if(r.startMoving){if(f.allowClick=!1,o.preventDefault(),s.touchMoveStopPropagation&&!s.nested&&o.stopPropagation(),r.isMoved||(s.loop&&f.loopFix(),r.startTranslate=f.getTranslate(),f.setTransition(0),f.animating&&f.$wrapperEl.trigger("webkitTransitionEnd transitionend"),r.allowMomentumBounce=!1,s.grabCursor&&(f.allowSlideNext===!0||f.allowSlidePrev===!0)&&f.setGrabCursor(!0),f.emit("sliderFirstMove",o)),f.emit("sliderMove",o),r.isMoved=!0,h=f.isHorizontal()?a:v,e.diff=h,h*=s.touchRatio,b&&(h=-h),f.swipeDirection=h>0?"prev":"next",r.currentTranslate=h+r.startTranslate,y=!0,p=s.resistanceRatio,s.touchReleaseOnEdges&&(p=0),h>0&&r.currentTranslate>f.minTranslate()?(y=!1,s.resistance&&(r.currentTranslate=f.minTranslate()-1+Math.pow(-f.minTranslate()+r.startTranslate+h,p))):h<0&&r.currentTranslater.startTranslate&&(r.currentTranslate=r.startTranslate),s.threshold>0)if(Math.abs(h)>s.threshold||r.allowThresholdMove){if(!r.allowThresholdMove){r.allowThresholdMove=!0;e.startX=e.currentX;e.startY=e.currentY;r.currentTranslate=r.startTranslate;e.diff=f.isHorizontal()?e.currentX-e.startX:e.currentY-e.startY;return}}else{r.currentTranslate=r.startTranslate;return}s.followFinger&&((s.freeMode||s.watchSlidesProgress||s.watchSlidesVisibility)&&(f.updateActiveIndex(),f.updateSlidesClasses()),s.freeMode&&(r.velocities.length===0&&r.velocities.push({position:e[f.isHorizontal()?"startX":"startY"],time:r.touchStartTime}),r.velocities.push({position:e[f.isHorizontal()?"currentX":"currentY"],time:n.now()})),f.updateProgress(r.currentTranslate),f.setTranslate(r.currentTranslate))}}}}function wf(t){var i=this,r=i.touchEventsData,u=i.params,ot=i.touches,nt=i.rtlTranslate,tt=i.$wrapperEl,e=i.slidesGrid,h=i.snapGrid,c=t,w,a,l,k,d,v,rt,y,p,s,g,o,ut;if(c.originalEvent&&(c=c.originalEvent),r.allowTouchCallbacks&&i.emit("touchEnd",c),r.allowTouchCallbacks=!1,!r.isTouched){r.isMoved&&u.grabCursor&&i.setGrabCursor(!1);r.isMoved=!1;r.startMoving=!1;return}if(u.grabCursor&&r.isMoved&&r.isTouched&&(i.allowSlideNext===!0||i.allowSlidePrev===!0)&&i.setGrabCursor(!1),w=n.now(),a=w-r.touchStartTime,i.allowClick&&(i.updateClickedSlide(c),i.emit("tap",c),a<300&&w-r.lastClickTime>300&&(r.clickTimeout&&clearTimeout(r.clickTimeout),r.clickTimeout=n.nextTick(function(){i&&!i.destroyed&&i.emit("click",c)},300)),a<300&&w-r.lastClickTime<300&&(r.clickTimeout&&clearTimeout(r.clickTimeout),i.emit("doubleTap",c))),r.lastClickTime=n.now(),n.nextTick(function(){i.destroyed||(i.allowClick=!0)}),!r.isTouched||!r.isMoved||!i.swipeDirection||ot.diff===0||r.currentTranslate===r.startTranslate){r.isTouched=!1;r.isMoved=!1;r.startMoving=!1;return}if(r.isTouched=!1,r.isMoved=!1,r.startMoving=!1,l=u.followFinger?nt?i.translate:-i.translate:-r.currentTranslate,u.freeMode){if(l<-i.minTranslate()){i.slideTo(i.activeIndex);return}if(l>-i.maxTranslate()){i.slides.length1){var it=r.velocities.pop(),ft=r.velocities.pop(),st=it.position-ft.position,et=it.time-ft.time;i.velocity=st/et;i.velocity/=2;Math.abs(i.velocity)150||n.now()-it.time>300)&&(i.velocity=0)}else i.velocity=0;i.velocity*=u.freeModeMomentumVelocityRatio;r.velocities.length=0;var b=1e3*u.freeModeMomentumRatio,ht=i.velocity*b,f=i.translate+ht;if(nt&&(f=-f),k=!1,v=Math.abs(i.velocity)*20*u.freeModeMomentumBounceRatio,fi.minTranslate())u.freeModeMomentumBounce?(f-i.minTranslate()>v&&(f=i.minTranslate()+v),d=i.minTranslate(),k=!0,r.allowMomentumBounce=!0):f=i.minTranslate(),u.loop&&u.centeredSlides&&(rt=!0);else if(u.freeModeSticky){for(p=0;p-f){y=p;break}f=Math.abs(h[y]-f)=u.longSwipesMs)&&(i.updateProgress(),i.updateActiveIndex(),i.updateSlidesClasses());return}for(s=0,g=i.slidesSizesGrid[0],o=0;o=e[o]&&l=e[o]&&(s=o,g=e[e.length-1]-e[e.length-2]);if(ut=(l-e[s])/g,a>u.longSwipesMs){if(!u.longSwipes){i.slideTo(i.activeIndex);return}i.swipeDirection==="next"&&(ut>=u.longSwipesRatio?i.slideTo(s+u.slidesPerGroup):i.slideTo(s));i.swipeDirection==="prev"&&(ut>1-u.longSwipesRatio?i.slideTo(s+u.slidesPerGroup):i.slideTo(s))}else{if(!u.shortSwipes){i.slideTo(i.activeIndex);return}i.swipeDirection==="next"&&i.slideTo(s+u.slidesPerGroup);i.swipeDirection==="prev"&&i.slideTo(s)}}function wt(){var n=this,t=n.params,i=n.el,r;if(!i||i.offsetWidth!==0){t.breakpoints&&n.setBreakpoint();var u=n.allowSlideNext,f=n.allowSlidePrev,e=n.snapGrid;n.allowSlideNext=!0;n.allowSlidePrev=!0;n.updateSize();n.updateSlides();t.freeMode?(r=Math.min(Math.max(n.translate,n.maxTranslate()),n.minTranslate()),n.setTranslate(r),n.updateActiveIndex(),n.updateSlidesClasses(),t.autoHeight&&n.updateAutoHeight()):(n.updateSlidesClasses(),(t.slidesPerView==="auto"||t.slidesPerView>1)&&n.isEnd&&!n.params.centeredSlides?n.slideTo(n.slides.length-1,0,!1,!0):n.slideTo(n.activeIndex,0,!1,!0));n.allowSlidePrev=f;n.allowSlideNext=u;n.params.watchOverflow&&e!==n.snapGrid&&n.checkOverflow()}}function bf(n){var t=this;t.allowClick||(t.params.preventClicks&&n.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(n.stopPropagation(),n.stopImmediatePropagation()))}function kf(){var n=this,t=n.params,i=n.touchEvents,h=n.el,c=n.wrapperEl,f,o,s;n.onTouchStart=yf.bind(n);n.onTouchMove=pf.bind(n);n.onTouchEnd=wf.bind(n);n.onClick=bf.bind(n);f=t.touchEventsTarget==="container"?h:c;o=!!t.nested;!r.touch&&(r.pointerEvents||r.prefixedPointerEvents)?(f.addEventListener(i.start,n.onTouchStart,!1),u.addEventListener(i.move,n.onTouchMove,o),u.addEventListener(i.end,n.onTouchEnd,!1)):(r.touch&&(s=i.start==="touchstart"&&r.passiveListener&&t.passiveListeners?{passive:!0,capture:!1}:!1,f.addEventListener(i.start,n.onTouchStart,s),f.addEventListener(i.move,n.onTouchMove,r.passiveListener?{passive:!1,capture:o}:o),f.addEventListener(i.end,n.onTouchEnd,s)),(t.simulateTouch&&!e.ios&&!e.android||t.simulateTouch&&!r.touch&&e.ios)&&(f.addEventListener("mousedown",n.onTouchStart,!1),u.addEventListener("mousemove",n.onTouchMove,o),u.addEventListener("mouseup",n.onTouchEnd,!1)));(t.preventClicks||t.preventClicksPropagation)&&f.addEventListener("click",n.onClick,!0);n.on("resize observerUpdate",wt,!0)}function df(){var n=this,t=n.params,i=n.touchEvents,h=n.el,c=n.wrapperEl,f=t.touchEventsTarget==="container"?h:c,o=!!t.nested,s;!r.touch&&(r.pointerEvents||r.prefixedPointerEvents)?(f.removeEventListener(i.start,n.onTouchStart,!1),u.removeEventListener(i.move,n.onTouchMove,o),u.removeEventListener(i.end,n.onTouchEnd,!1)):(r.touch&&(s=i.start==="onTouchStart"&&r.passiveListener&&t.passiveListeners?{passive:!0,capture:!1}:!1,f.removeEventListener(i.start,n.onTouchStart,s),f.removeEventListener(i.move,n.onTouchMove,o),f.removeEventListener(i.end,n.onTouchEnd,s)),(t.simulateTouch&&!e.ios&&!e.android||t.simulateTouch&&!r.touch&&e.ios)&&(f.removeEventListener("mousedown",n.onTouchStart,!1),u.removeEventListener("mousemove",n.onTouchMove,o),u.removeEventListener("mouseup",n.onTouchEnd,!1)));(t.preventClicks||t.preventClicksPropagation)&&f.removeEventListener("click",n.onClick,!0);n.off("resize observerUpdate",wt)}function gf(){var t=this,s=t.activeIndex,h=t.initialized,e=t.loopedSlides,u,i,r,f,o;(e===void 0&&(e=0),u=t.params,i=u.breakpoints,i&&(!i||Object.keys(i).length!==0))&&(r=t.getBreakpoint(i),r&&t.currentBreakpoint!==r&&(f=r in i?i[r]:t.originalParams,o=u.loop&&f.slidesPerView!==u.slidesPerView,n.extend(t.params,f),n.extend(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),t.currentBreakpoint=r,o&&h&&(t.loopDestroy(),t.loopCreate(),t.updateSlides(),t.slideTo(s-e+t.loopedSlides,0,!1)),t.emit("breakpoint",f)))}function ne(n){var r,t,u,f;if(!n)return undefined;for(r=!1,t=[],Object.keys(n).forEach(function(n){t.push(n)}),t.sort(function(n,t){return parseInt(n,10)-parseInt(t,10)}),u=0;u=i.innerWidth&&!r&&(r=f);return r||"max"}function te(){var i=this,u=i.classNames,t=i.params,f=i.rtl,o=i.$el,n=[];n.push(t.direction);t.freeMode&&n.push("free-mode");r.flexbox||n.push("no-flexbox");t.autoHeight&&n.push("autoheight");f&&n.push("rtl");t.slidesPerColumn>1&&n.push("multirow");e.android&&n.push("android");e.ios&&n.push("ios");a.isIE&&(r.pointerEvents||r.prefixedPointerEvents)&&n.push("wp8-"+t.direction);n.forEach(function(n){u.push(t.containerModifierClass+n)});o.addClass(u.join(" "))}function ie(){var n=this,t=n.$el,i=n.classNames;t.removeClass(i.join(" "))}function re(n,t,r,u,f,e){function s(){e&&e()}var o;n.complete&&f?s():t?(o=new i.Image,o.onload=s,o.onerror=s,u&&(o.sizes=u),r&&(o.srcset=r),t&&(o.src=t)):s()}function ue(){function r(){typeof n!="undefined"&&n!==null&&n&&!n.destroyed&&(n.imagesLoaded!==undefined&&(n.imagesLoaded+=1),n.imagesLoaded===n.imagesToLoad.length&&(n.params.updateOnImagesReady&&n.update(),n.emit("imagesReady")))}var n=this,i,t;for(n.imagesToLoad=n.$el.find("img"),i=0;i6&&(r=r.split(", ").map(function(n){return n.replace(",",".")}).join(", ")),e=new i.WebKitCSSMatrix(r==="none"?"":r)):(e=u.MozTransform||u.OTransform||u.MsTransform||u.msTransform||u.transform||u.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),f=e.toString().split(",")),t==="x"&&(r=i.WebKitCSSMatrix?e.m41:f.length===16?parseFloat(f[12]):parseFloat(f[4])),t==="y"&&(r=i.WebKitCSSMatrix?e.m42:f.length===16?parseFloat(f[13]):parseFloat(f[5])),r||0},parseUrlQuery:function(n){var e={},t=n||i.location.href,r,f,u,o;if(typeof t=="string"&&t.length)for(t=t.indexOf("?")>-1?t.replace(/\S*\?/,""):"",f=t.split("&").filter(function(n){return n!==""}),o=f.length,r=0;r0;)u[r]=arguments[r+1];return i=this,i.prototype.modules||(i.prototype.modules={}),f=t.name||Object.keys(i.prototype.modules).length+"_"+n.now(),i.prototype.modules[f]=t,t.proto&&Object.keys(t.proto).forEach(function(n){i.prototype[n]=t.proto[n]}),t.static&&Object.keys(t.static).forEach(function(n){i[n]=t.static[n]}),t.install&&t.install.apply(i,u),i};h.use=function(n){for(var r=[],i=arguments.length-1,t;i-->0;)r[i]=arguments[i+1];return(t=this,Array.isArray(n))?(n.forEach(function(n){return t.installModule(n)}),t):t.installModule.apply(t,[n].concat(r))};Object.defineProperties(h,st);ht={updateSize:iu,updateSlides:ru,updateAutoHeight:uu,updateSlidesOffset:fu,updateSlidesProgress:eu,updateProgress:ou,updateSlidesClasses:su,updateActiveIndex:hu,updateClickedSlide:cu};ct={getTranslate:lu,setTranslate:au,minTranslate:vu,maxTranslate:yu};lt={setTransition:pu,transitionStart:wu,transitionEnd:bu};at={slideTo:ku,slideToLoop:du,slideNext:gu,slidePrev:nf,slideReset:tf,slideToClosest:rf,slideToClickedSlide:uf};vt={loopCreate:ff,loopFix:ef,loopDestroy:of};yt={setGrabCursor:sf,unsetGrabCursor:hf};pt={appendSlide:cf,prependSlide:lf,removeSlide:af,removeAllSlides:vf};e=function(){var t=i.navigator.userAgent,n={ios:!1,android:!1,androidChrome:!1,desktop:!1,windows:!1,iphone:!1,ipod:!1,ipad:!1,cordova:i.cordova||i.phonegap,phonegap:i.cordova||i.phonegap},s=t.match(/(Windows Phone);?[\s\/]+([\d.]+)?/),c=t.match(/(Android);?[\s\/]+([\d.]+)?/),f=t.match(/(iPad).*OS\s([\d_]+)/),r=t.match(/(iPod)(.*OS\s([\d_]+))?/),e=!f&&t.match(/(iPhone\sOS|iOS)\s([\d_]+)/),o,h;return s&&(n.os="windows",n.osVersion=s[2],n.windows=!0),c&&!s&&(n.os="android",n.osVersion=c[2],n.android=!0,n.androidChrome=t.toLowerCase().indexOf("chrome")>=0),(f||e||r)&&(n.os="ios",n.ios=!0),e&&!r&&(n.osVersion=e[2].replace(/_/g,"."),n.iphone=!0),f&&(n.osVersion=f[2].replace(/_/g,"."),n.ipad=!0),r&&(n.osVersion=r[3]?r[3].replace(/_/g,"."):null,n.iphone=!0),n.ios&&n.osVersion&&t.indexOf("Version/")>=0&&n.osVersion.split(".")[0]==="10"&&(n.osVersion=t.toLowerCase().split("version/")[1].split(" ")[0]),n.desktop=!(n.os||n.android||n.webView),n.webView=(e||f||r)&&t.match(/.*AppleWebKit(?!.*Safari)/i),n.os&&n.os==="ios"&&(o=n.osVersion.split("."),h=u.querySelector('meta[name="viewport"]'),n.minimalUi=!n.webView&&(r||e)&&(o[0]*1==7?o[1]*1>=1:o[0]*1>7)&&h&&h.getAttribute("content").indexOf("minimal-ui")>=0),n.pixelRatio=i.devicePixelRatio||1,n}();bt={attachEvents:kf,detachEvents:df};kt={setBreakpoint:gf,getBreakpoint:ne};a=function(){function n(){var n=i.navigator.userAgent.toLowerCase();return n.indexOf("safari")>=0&&n.indexOf("chrome")<0&&n.indexOf("android")<0}return{isIE:!!i.navigator.userAgent.match(/Trident/g)||!!i.navigator.userAgent.match(/MSIE/g),isSafari:n(),isUiWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(i.navigator.userAgent)}}();dt={addClasses:te,removeClasses:ie};gt={loadImage:re,preloadImages:ue};var ee={checkOverflow:fe},ni={init:!0,direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,preventIntercationOnTransition:!1,iOSEdgeSwipeDetection:!1,iOSEdgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeMomentumVelocityRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:undefined,spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,centeredSlides:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,watchOverflow:!1,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!0,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopFillGroupWithBlank:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,containerModifierClass:"swiper-container-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0},nt={update:ht,translate:ct,transition:lt,slide:at,loop:vt,grabCursor:yt,manipulation:pt,events:bt,breakpoints:kt,checkOverflow:ee,classes:dt,images:gt},tt={},o=function(i){function u(){for(var l,h=[],a=arguments.length,o,e,f,v,s,y,c;a--;)h[a]=arguments[a];return(h.length===1&&h[0].constructor&&h[0].constructor===Object?e=h[0]:(l=h,o=l[0],e=l[1]),e||(e={}),e=n.extend({},e),o&&!e.el&&(e.el=o),i.call(this,e),Object.keys(nt).forEach(function(n){Object.keys(nt[n]).forEach(function(t){u.prototype[t]||(u.prototype[t]=nt[n][t])})}),f=this,typeof f.modules=="undefined"&&(f.modules={}),Object.keys(f.modules).forEach(function(n){var i=f.modules[n],t,r;if(i.params){if(t=Object.keys(i.params)[0],r=i.params[t],typeof r!="object")return;if(!(t in e&&"enabled"in r))return;e[t]===!0&&(e[t]={enabled:!0});typeof e[t]!="object"||"enabled"in e[t]||(e[t].enabled=!0);e[t]||(e[t]={enabled:!1})}}),v=n.extend({},ni),f.useModulesParams(v),f.params=n.extend({},v,tt,e),f.originalParams=n.extend({},f.params),f.passedParams=n.extend({},e),f.$=t,s=t(f.params.el),o=s[0],!o)?undefined:s.length>1?(y=[],s.each(function(t,i){var r=n.extend({},e,{el:i});y.push(new u(r))}),y):(o.swiper=f,s.data("swiper",f),c=s.children("."+f.params.wrapperClass),n.extend(f,{$el:s,el:o,$wrapperEl:c,wrapperEl:c[0],classNames:[],slides:t(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:function(){return f.params.direction==="horizontal"},isVertical:function(){return f.params.direction==="vertical"},rtl:o.dir.toLowerCase()==="rtl"||s.css("direction")==="rtl",rtlTranslate:f.params.direction==="horizontal"&&(o.dir.toLowerCase()==="rtl"||s.css("direction")==="rtl"),wrongRTL:c.css("display")==="-webkit-box",activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,progress:0,velocity:0,animating:!1,allowSlideNext:f.params.allowSlideNext,allowSlidePrev:f.params.allowSlidePrev,touchEvents:function(){var t=["touchstart","touchmove","touchend"],n=["mousedown","mousemove","mouseup"];return r.pointerEvents?n=["pointerdown","pointermove","pointerup"]:r.prefixedPointerEvents&&(n=["MSPointerDown","MSPointerMove","MSPointerUp"]),f.touchEventsTouch={start:t[0],move:t[1],end:t[2]},f.touchEventsDesktop={start:n[0],move:n[1],end:n[2]},r.touch||!f.params.simulateTouch?f.touchEventsTouch:f.touchEventsDesktop}(),touchEventsData:{isTouched:undefined,isMoved:undefined,allowTouchCallbacks:undefined,touchStartTime:undefined,isScrolling:undefined,currentTranslate:undefined,startTranslate:undefined,allowThresholdMove:undefined,formElements:"input, select, option, textarea, button, video",lastClickTime:n.now(),clickTimeout:undefined,velocities:[],allowMomentumBounce:undefined,isTouchEvent:undefined,startMoving:undefined},allowClick:!0,allowTouchMove:f.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),f.useModules(),f.params.init&&f.init(),f)}i&&(u.__proto__=i);u.prototype=Object.create(i&&i.prototype);u.prototype.constructor=u;var f={extendedDefaults:{configurable:!0},defaults:{configurable:!0},Class:{configurable:!0},$:{configurable:!0}};return u.prototype.slidesPerViewDynamic=function(){var t=this,l=t.params,n=t.slides,c=t.slidesGrid,h=t.size,i=t.activeIndex,e=1,r,o,u,f,s;if(l.centeredSlides){for(r=n[i].swiperSlideSize,u=i+1;uh&&(o=!0));for(f=i-1;f>=0;f-=1)n[f]&&!o&&(r+=n[f].swiperSlideSize,e+=1,r>h&&(o=!0))}else for(s=i+1;s1)&&n.isEnd&&!n.params.centeredSlides?n.slideTo(n.slides.length-1,0,!1,!0):n.slideTo(n.activeIndex,0,!1,!0),u||r()),t.watchOverflow&&i!==n.snapGrid&&n.checkOverflow(),n.emit("update"))},u.prototype.init=function(){var n=this;n.initialized||(n.emit("beforeInit"),n.params.breakpoints&&n.setBreakpoint(),n.addClasses(),n.params.loop&&n.loopCreate(),n.updateSize(),n.updateSlides(),n.params.watchOverflow&&n.checkOverflow(),n.params.grabCursor&&n.setGrabCursor(),n.params.preloadImages&&n.preloadImages(),n.params.loop?n.slideTo(n.params.initialSlide+n.loopedSlides,0,n.params.runCallbacksOnInit):n.slideTo(n.params.initialSlide,0,n.params.runCallbacksOnInit),n.attachEvents(),n.initialized=!0,n.emit("init"))},u.prototype.destroy=function(t,i){t===void 0&&(t=!0);i===void 0&&(i=!0);var r=this,u=r.params,e=r.$el,o=r.$wrapperEl,f=r.slides;return typeof r.params=="undefined"||r.destroyed?null:(r.emit("beforeDestroy"),r.initialized=!1,r.detachEvents(),u.loop&&r.loopDestroy(),i&&(r.removeClasses(),e.removeAttr("style"),o.removeAttr("style"),f&&f.length&&f.removeClass([u.slideVisibleClass,u.slideActiveClass,u.slideNextClass,u.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index").removeAttr("data-swiper-column").removeAttr("data-swiper-row")),r.emit("destroy"),Object.keys(r.eventsListeners).forEach(function(n){r.off(n)}),t!==!1&&(r.$el[0].swiper=null,r.$el.data("swiper",null),n.deleteProps(r)),r.destroyed=!0,null)},u.extendDefaults=function(t){n.extend(tt,t)},f.extendedDefaults.get=function(){return tt},f.defaults.get=function(){return ni},f.Class.get=function(){return i},f.$.get=function(){return t},Object.defineProperties(u,f),u}(h),oe={name:"device",proto:{device:e},"static":{device:e}},se={name:"support",proto:{support:r},"static":{support:r}},he={name:"browser",proto:{browser:a},"static":{browser:a}},ce={name:"resize",create:function(){var t=this;n.extend(t,{resize:{resizeHandler:function(){t&&!t.destroyed&&t.initialized&&(t.emit("beforeResize"),t.emit("resize"))},orientationChangeHandler:function(){t&&!t.destroyed&&t.initialized&&t.emit("orientationchange")}}})},on:{init:function(){var n=this;i.addEventListener("resize",n.resize.resizeHandler);i.addEventListener("orientationchange",n.resize.orientationChangeHandler)},destroy:function(){var n=this;i.removeEventListener("resize",n.resize.resizeHandler);i.removeEventListener("orientationchange",n.resize.orientationChangeHandler)}}},y={func:i.MutationObserver||i.WebkitMutationObserver,attach:function(n,t){t===void 0&&(t={});var i=this,u=y.func,r=new u(function(n){n.forEach(function(n){i.emit("observerUpdate",n)})});r.observe(n,{attributes:typeof t.attributes=="undefined"?!0:t.attributes,childList:typeof t.childList=="undefined"?!0:t.childList,characterData:typeof t.characterData=="undefined"?!0:t.characterData});i.observer.observers.push(r)},init:function(){var n=this,i,t;if(r.observer&&n.params.observer){if(n.params.observeParents)for(i=n.$el.parents(),t=0;te)&&i.$wrapperEl.find("."+i.params.slideClass+'[data-swiper-slide-index="'+o+'"]').remove();for(r=0;r=u&&r<=e&&(typeof l=="undefined"||t?a.push(r):(r>l&&a.push(r),r'+n+"<\/div>"),u.attr("data-swiper-slide-index")||u.attr("data-swiper-slide-index",i),f.cache&&(r.virtual.cache[i]=u),u)},appendSlide:function(n){var t=this;t.virtual.slides.push(n);t.virtual.update(!0)},prependSlide:function(n){var t=this,i,r;t.virtual.slides.unshift(n);t.params.virtual.cache&&(i=t.virtual.cache,r={},Object.keys(i).forEach(function(n){r[n+1]=i[n]}),t.virtual.cache=r);t.virtual.update(!0);t.slideNext(0)}},ae={name:"virtual",params:{virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null}},create:function(){var t=this;n.extend(t,{virtual:{update:p.update.bind(t),appendSlide:p.appendSlide.bind(t),prependSlide:p.prependSlide.bind(t),renderSlide:p.renderSlide.bind(t),slides:t.params.virtual.slides,cache:{}}})},on:{beforeInit:function(){var t=this,i;t.params.virtual.enabled&&(t.classNames.push(t.params.containerModifierClass+"virtual"),i={watchSlidesProgress:!0},n.extend(t.params,i),n.extend(t.originalParams,i),t.virtual.update())},setTranslate:function(){var n=this;n.params.virtual.enabled&&n.virtual.update()}}},it={handle:function(n){var t=this,o=t.rtlTranslate,f=n,r,c,l,h,s;if((f.originalEvent&&(f=f.originalEvent),r=f.keyCode||f.charCode,!t.allowSlideNext&&(t.isHorizontal()&&r===39||t.isVertical()&&r===40))||!t.allowSlidePrev&&(t.isHorizontal()&&r===37||t.isVertical()&&r===38))return!1;if(f.shiftKey||f.altKey||f.ctrlKey||f.metaKey||u.activeElement&&u.activeElement.nodeName&&(u.activeElement.nodeName.toLowerCase()==="input"||u.activeElement.nodeName.toLowerCase()==="textarea"))return undefined;if(t.params.keyboard.onlyInViewport&&(r===37||r===39||r===38||r===40)){if(c=!1,t.$el.parents("."+t.params.slideClass).length>0&&t.$el.parents("."+t.params.slideActiveClass).length===0)return undefined;var a=i.innerWidth,v=i.innerHeight,e=t.$el.offset();for(o&&(e.left-=t.$el[0].scrollLeft),l=[[e.left,e.top],[e.left+t.width,e.top],[e.left,e.top+t.height],[e.left+t.width,e.top+t.height]],h=0;h=0&&s[0]<=a&&s[1]>=0&&s[1]<=v&&(c=!0);if(!c)return undefined}return t.isHorizontal()?((r===37||r===39)&&(f.preventDefault?f.preventDefault():f.returnValue=!1),(r===39&&!o||r===37&&o)&&t.slideNext(),(r===37&&!o||r===39&&o)&&t.slidePrev()):((r===38||r===40)&&(f.preventDefault?f.preventDefault():f.returnValue=!1),r===40&&t.slideNext(),r===38&&t.slidePrev()),t.emit("keyPress",r),undefined},enable:function(){var n=this;if(!n.keyboard.enabled){t(u).on("keydown",n.keyboard.handle);n.keyboard.enabled=!0}},disable:function(){var n=this;n.keyboard.enabled&&(t(u).off("keydown",n.keyboard.handle),n.keyboard.enabled=!1)}},ve={name:"keyboard",params:{keyboard:{enabled:!1,onlyInViewport:!0}},create:function(){var t=this;n.extend(t,{keyboard:{enabled:!1,enable:it.enable.bind(t),disable:it.disable.bind(t),handle:it.handle.bind(t)}})},on:{init:function(){var n=this;n.params.keyboard.enabled&&n.keyboard.enable()},destroy:function(){var n=this;n.keyboard.enabled&&n.keyboard.disable()}}};var c={lastScrollTime:n.now(),event:function(){return i.navigator.userAgent.indexOf("firefox")>-1?"DOMMouseScroll":ye()?"wheel":"mousewheel"}(),normalize:function(n){var f=10,e=40,o=800,u=0,t=0,i=0,r=0;return"detail"in n&&(t=n.detail),"wheelDelta"in n&&(t=-n.wheelDelta/120),"wheelDeltaY"in n&&(t=-n.wheelDeltaY/120),"wheelDeltaX"in n&&(u=-n.wheelDeltaX/120),"axis"in n&&n.axis===n.HORIZONTAL_AXIS&&(u=t,t=0),i=u*f,r=t*f,"deltaY"in n&&(r=n.deltaY),"deltaX"in n&&(i=n.deltaX),(i||r)&&n.deltaMode&&(n.deltaMode===1?(i*=e,r*=e):(i*=o,r*=o)),i&&!u&&(u=i<1?-1:1),r&&!t&&(t=r<1?-1:1),{spinX:u,spinY:t,pixelX:i,pixelY:r}},handleMouseEnter:function(){var n=this;n.mouseEntered=!0},handleMouseLeave:function(){var n=this;n.mouseEntered=!1},handle:function(t){var u=t,r=this,s=r.params.mousewheel;if(!r.mouseEntered&&!s.releaseOnEdges)return!0;u.originalEvent&&(u=u.originalEvent);var e=0,h=r.rtlTranslate?-1:1,f=c.normalize(u);if(s.forceToAxis)if(r.isHorizontal())if(Math.abs(f.pixelX)>Math.abs(f.pixelY))e=f.pixelX*h;else return!0;else if(Math.abs(f.pixelY)>Math.abs(f.pixelX))e=f.pixelY;else return!0;else e=Math.abs(f.pixelX)>Math.abs(f.pixelY)?-f.pixelX*h:-f.pixelY;if(e===0)return!0;if(s.invert&&(e=-e),r.params.freeMode){r.params.loop&&r.loopFix();var o=r.getTranslate()+e*s.sensitivity,l=r.isBeginning,a=r.isEnd;if(o>=r.minTranslate()&&(o=r.minTranslate()),o<=r.maxTranslate()&&(o=r.maxTranslate()),r.setTransition(0),r.setTranslate(o),r.updateProgress(),r.updateActiveIndex(),r.updateSlidesClasses(),(!l&&r.isBeginning||!a&&r.isEnd)&&r.updateSlidesClasses(),r.params.freeModeSticky&&(clearTimeout(r.mousewheel.timeout),r.mousewheel.timeout=n.nextTick(function(){r.slideToClosest()},300)),r.emit("scroll",u),r.params.autoplay&&r.params.autoplayDisableOnInteraction&&r.stopAutoplay(),o===r.minTranslate()||o===r.maxTranslate())return!0}else{if(n.now()-r.mousewheel.lastScrollTime>60)if(e<0)if(r.isEnd&&!r.params.loop||r.animating){if(s.releaseOnEdges)return!0}else r.slideNext(),r.emit("scroll",u);else if(r.isBeginning&&!r.params.loop||r.animating){if(s.releaseOnEdges)return!0}else r.slidePrev(),r.emit("scroll",u);r.mousewheel.lastScrollTime=(new i.Date).getTime()}return u.preventDefault?u.preventDefault():u.returnValue=!1,!1},enable:function(){var n=this,i;if(!c.event||n.mousewheel.enabled)return!1;i=n.$el;n.params.mousewheel.eventsTarged!=="container"&&(i=t(n.params.mousewheel.eventsTarged));i.on("mouseenter",n.mousewheel.handleMouseEnter);i.on("mouseleave",n.mousewheel.handleMouseLeave);i.on(c.event,n.mousewheel.handle);return n.mousewheel.enabled=!0,!0},disable:function(){var n=this,i;return c.event?n.mousewheel.enabled?(i=n.$el,n.params.mousewheel.eventsTarged!=="container"&&(i=t(n.params.mousewheel.eventsTarged)),i.off(c.event,n.mousewheel.handle),n.mousewheel.enabled=!1,!0):!1:!1}},pe={name:"mousewheel",params:{mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarged:"container"}},create:function(){var t=this;n.extend(t,{mousewheel:{enabled:!1,enable:c.enable.bind(t),disable:c.disable.bind(t),handle:c.handle.bind(t),handleMouseEnter:c.handleMouseEnter.bind(t),handleMouseLeave:c.handleMouseLeave.bind(t),lastScrollTime:n.now()}})},on:{init:function(){var n=this;n.params.mousewheel.enabled&&n.mousewheel.enable()},destroy:function(){var n=this;n.mousewheel.enabled&&n.mousewheel.disable()}}},rt={update:function(){var n=this,t=n.params.navigation;if(!n.params.loop){var u=n.navigation,i=u.$nextEl,r=u.$prevEl;r&&r.length>0&&(n.isBeginning?r.addClass(t.disabledClass):r.removeClass(t.disabledClass),r[n.params.watchOverflow&&n.isLocked?"addClass":"removeClass"](t.lockClass));i&&i.length>0&&(n.isEnd?i.addClass(t.disabledClass):i.removeClass(t.disabledClass),i[n.params.watchOverflow&&n.isLocked?"addClass":"removeClass"](t.lockClass))}},init:function(){var i=this,r=i.params.navigation,u,f;if(r.nextEl||r.prevEl){if(r.nextEl&&(u=t(r.nextEl),i.params.uniqueNavElements&&typeof r.nextEl=="string"&&u.length>1&&i.$el.find(r.nextEl).length===1&&(u=i.$el.find(r.nextEl))),r.prevEl&&(f=t(r.prevEl),i.params.uniqueNavElements&&typeof r.prevEl=="string"&&f.length>1&&i.$el.find(r.prevEl).length===1&&(f=i.$el.find(r.prevEl))),u&&u.length>0)u.on("click",function(n){(n.preventDefault(),!i.isEnd||i.params.loop)&&i.slideNext()});if(f&&f.length>0)f.on("click",function(n){(n.preventDefault(),!i.isBeginning||i.params.loop)&&i.slidePrev()});n.extend(i.navigation,{$nextEl:u,nextEl:u&&u[0],$prevEl:f,prevEl:f&&f[0]})}},destroy:function(){var i=this,r=i.navigation,n=r.$nextEl,t=r.$prevEl;n&&n.length&&(n.off("click"),n.removeClass(i.params.navigation.disabledClass));t&&t.length&&(t.off("click"),t.removeClass(i.params.navigation.disabledClass))}},we={name:"navigation",params:{navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock"}},create:function(){var t=this;n.extend(t,{navigation:{init:rt.init.bind(t),update:rt.update.bind(t),destroy:rt.destroy.bind(t)}})},on:{init:function(){var n=this;n.navigation.init();n.navigation.update()},toEdge:function(){var n=this;n.navigation.update()},fromEdge:function(){var n=this;n.navigation.update()},destroy:function(){var n=this;n.navigation.destroy()},click:function(n){var i=this,f=i.navigation,r=f.$nextEl,u=f.$prevEl;!i.params.navigation.hideOnClick||t(n.target).is(u)||t(n.target).is(r)||(r&&r.toggleClass(i.params.navigation.hiddenClass),u&&u.toggleClass(i.params.navigation.hiddenClass))}}},w={update:function(){var n=this,d=n.rtl,i=n.params.pagination,u,e,s,l,a,v,y,h,p;if(i.el&&n.pagination.el&&n.pagination.$el&&n.pagination.$el.length!==0){var c=n.virtual&&n.params.virtual.enabled?n.virtual.slides.length:n.slides.length,f=n.pagination.$el,r,o=n.params.loop?Math.ceil((c-n.loopedSlides*2)/n.params.slidesPerGroup):n.snapGrid.length;if(n.params.loop?(r=Math.ceil((n.activeIndex-n.loopedSlides)/n.params.slidesPerGroup),r>c-1-n.loopedSlides*2&&(r-=c-n.loopedSlides*2),r>o-1&&(r-=o),r<0&&n.params.paginationType!=="bullets"&&(r=o+r)):r=typeof n.snapIndex!="undefined"?n.snapIndex:n.activeIndex||0,i.type==="bullets"&&n.pagination.bullets&&n.pagination.bullets.length>0){if(u=n.pagination.bullets,i.dynamicBullets&&(n.pagination.bulletSize=u.eq(0)[n.isHorizontal()?"outerWidth":"outerHeight"](!0),f.css(n.isHorizontal()?"width":"height",n.pagination.bulletSize*(i.dynamicMainBullets+4)+"px"),i.dynamicMainBullets>1&&n.previousIndex!==undefined&&(n.pagination.dynamicBulletIndex+=r-n.previousIndex,n.pagination.dynamicBulletIndex>i.dynamicMainBullets-1?n.pagination.dynamicBulletIndex=i.dynamicMainBullets-1:n.pagination.dynamicBulletIndex<0&&(n.pagination.dynamicBulletIndex=0)),e=r-n.pagination.dynamicBulletIndex,s=e+(Math.min(u.length,i.dynamicMainBullets)-1),l=(s+e)/2),u.removeClass(i.bulletActiveClass+" "+i.bulletActiveClass+"-next "+i.bulletActiveClass+"-next-next "+i.bulletActiveClass+"-prev "+i.bulletActiveClass+"-prev-prev "+i.bulletActiveClass+"-main"),f.length>1)u.each(function(n,u){var f=t(u),o=f.index();o===r&&f.addClass(i.bulletActiveClass);i.dynamicBullets&&(o>=e&&o<=s&&f.addClass(i.bulletActiveClass+"-main"),o===e&&f.prev().addClass(i.bulletActiveClass+"-prev").prev().addClass(i.bulletActiveClass+"-prev-prev"),o===s&&f.next().addClass(i.bulletActiveClass+"-next").next().addClass(i.bulletActiveClass+"-next-next"))});else if(a=u.eq(r),a.addClass(i.bulletActiveClass),i.dynamicBullets){for(v=u.eq(e),y=u.eq(s),h=e;h<=s;h+=1)u.eq(h).addClass(i.bulletActiveClass+"-main");v.prev().addClass(i.bulletActiveClass+"-prev").prev().addClass(i.bulletActiveClass+"-prev-prev");y.next().addClass(i.bulletActiveClass+"-next").next().addClass(i.bulletActiveClass+"-next-next")}if(i.dynamicBullets){var g=Math.min(u.length,i.dynamicMainBullets+4),nt=(n.pagination.bulletSize*g-n.pagination.bulletSize)/2-l*n.pagination.bulletSize,tt=d?"right":"left";u.css(n.isHorizontal()?tt:"top",nt+"px")}}if(i.type==="fraction"&&(f.find("."+i.currentClass).text(r+1),f.find("."+i.totalClass).text(o)),i.type==="progressbar"){p=i.progressbarOpposite?n.isHorizontal()?"vertical":"horizontal":n.isHorizontal()?"horizontal":"vertical";var w=(r+1)/o,b=1,k=1;p==="horizontal"?b=w:k=w;f.find("."+i.progressbarFillClass).transform("translate3d(0,0,0) scaleX("+b+") scaleY("+k+")").transition(n.params.speed)}i.type==="custom"&&i.renderCustom?(f.html(i.renderCustom(n,r+1,o)),n.emit("paginationRender",n,f[0])):n.emit("paginationUpdate",n,f[0]);f[n.params.watchOverflow&&n.isLocked?"addClass":"removeClass"](i.lockClass)}},render:function(){var t=this,n=t.params.pagination,f,u;if(n.el&&t.pagination.el&&t.pagination.$el&&t.pagination.$el.length!==0){var e=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,r=t.pagination.$el,i="";if(n.type==="bullets"){for(f=t.params.loop?Math.ceil((e-t.loopedSlides*2)/t.params.slidesPerGroup):t.snapGrid.length,u=0;u<\/'+n.bulletElement+">";r.html(i);t.pagination.bullets=r.find("."+n.bulletClass)}n.type==="fraction"&&(i=n.renderFraction?n.renderFraction.call(t,n.currentClass,n.totalClass):'<\/span> / <\/span>',r.html(i));n.type==="progressbar"&&(i=n.renderProgressbar?n.renderProgressbar.call(t,n.progressbarFillClass):'<\/span>',r.html(i));n.type!=="custom"&&t.emit("paginationRender",t.pagination.$el[0])}},init:function(){var u=this,i=u.params.pagination,r;if(i.el&&(r=t(i.el),r.length!==0)){if(u.params.uniqueNavElements&&typeof i.el=="string"&&r.length>1&&u.$el.find(i.el).length===1&&(r=u.$el.find(i.el)),i.type==="bullets"&&i.clickable&&r.addClass(i.clickableClass),r.addClass(i.modifierClass+i.type),i.type==="bullets"&&i.dynamicBullets&&(r.addClass(""+i.modifierClass+i.type+"-dynamic"),u.pagination.dynamicBulletIndex=0,i.dynamicMainBullets<1&&(i.dynamicMainBullets=1)),i.type==="progressbar"&&i.progressbarOpposite&&r.addClass(i.progressbarOppositeClass),i.clickable)r.on("click","."+i.bulletClass,function(n){n.preventDefault();var i=t(this).index()*u.params.slidesPerGroup;u.params.loop&&(i+=u.loopedSlides);u.slideTo(i)});n.extend(u.pagination,{$el:r,el:r[0]})}},destroy:function(){var n=this,t=n.params.pagination,i;t.el&&n.pagination.el&&n.pagination.$el&&n.pagination.$el.length!==0&&(i=n.pagination.$el,i.removeClass(t.hiddenClass),i.removeClass(t.modifierClass+t.type),n.pagination.bullets&&n.pagination.bullets.removeClass(t.bulletActiveClass),t.clickable&&i.off("click","."+t.bulletClass))}},be={name:"pagination",params:{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,bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",modifierClass:"swiper-pagination-",currentClass:"swiper-pagination-current",totalClass:"swiper-pagination-total",hiddenClass:"swiper-pagination-hidden",progressbarFillClass:"swiper-pagination-progressbar-fill",progressbarOppositeClass:"swiper-pagination-progressbar-opposite",clickableClass:"swiper-pagination-clickable",lockClass:"swiper-pagination-lock"}},create:function(){var t=this;n.extend(t,{pagination:{init:w.init.bind(t),render:w.render.bind(t),update:w.update.bind(t),destroy:w.destroy.bind(t),dynamicBulletIndex:0}})},on:{init:function(){var n=this;n.pagination.init();n.pagination.render();n.pagination.update()},activeIndexChange:function(){var n=this;n.params.loop?n.pagination.update():typeof n.snapIndex=="undefined"&&n.pagination.update()},snapIndexChange:function(){var n=this;n.params.loop||n.pagination.update()},slidesLengthChange:function(){var n=this;n.params.loop&&(n.pagination.render(),n.pagination.update())},snapGridLengthChange:function(){var n=this;n.params.loop||(n.pagination.render(),n.pagination.update())},destroy:function(){var n=this;n.pagination.destroy()},click:function(n){var i=this;i.params.pagination.el&&i.params.pagination.hideOnClick&&i.pagination.$el.length>0&&!t(n.target).hasClass(i.params.pagination.bulletClass)&&i.pagination.$el.toggleClass(i.params.pagination.hiddenClass)}}},s={setTranslate:function(){var t=this;if(t.params.scrollbar.el&&t.scrollbar.el){var o=t.scrollbar,h=t.rtlTranslate,c=t.progress,i=o.dragSize,e=o.trackSize,u=o.$dragEl,s=o.$el,l=t.params.scrollbar,f=i,n=(e-i)*c;h?(n=-n,n>0?(f=i-n,n=0):-n+i>e&&(f=e+n)):n<0?(f=i+n,n=0):n+i>e&&(f=e-n);t.isHorizontal()?(r.transforms3d?u.transform("translate3d("+n+"px, 0, 0)"):u.transform("translateX("+n+"px)"),u[0].style.width=f+"px"):(r.transforms3d?u.transform("translate3d(0px, "+n+"px, 0)"):u.transform("translateY("+n+"px)"),u[0].style.height=f+"px");l.hide&&(clearTimeout(t.scrollbar.timeout),s[0].style.opacity=1,t.scrollbar.timeout=setTimeout(function(){s[0].style.opacity=0;s.transition(400)},1e3))}},setTransition:function(n){var t=this;t.params.scrollbar.el&&t.scrollbar.el&&t.scrollbar.$dragEl.transition(n)},updateSize:function(){var t=this;if(t.params.scrollbar.el&&t.scrollbar.el){var i=t.scrollbar,r=i.$dragEl,u=i.$el;r[0].style.width="";r[0].style.height="";var o=t.isHorizontal()?u[0].offsetWidth:u[0].offsetHeight,f=t.size/t.virtualSize,s=f*(o/t.size),e;e=t.params.scrollbar.dragSize==="auto"?o*f:parseInt(t.params.scrollbar.dragSize,10);t.isHorizontal()?r[0].style.width=e+"px":r[0].style.height=e+"px";u[0].style.display=f>=1?"none":"";t.params.scrollbarHide&&(u[0].style.opacity=0);n.extend(i,{trackSize:o,divider:f,moveDivider:s,dragSize:e});i.$el[t.params.watchOverflow&&t.isLocked?"addClass":"removeClass"](t.params.scrollbar.lockClass)}},setDragPosition:function(n){var t=this,r=t.scrollbar,o=t.rtlTranslate,s=r.$el,f=r.dragSize,h=r.trackSize,e,i,u;e=t.isHorizontal()?n.type==="touchstart"||n.type==="touchmove"?n.targetTouches[0].pageX:n.pageX||n.clientX:n.type==="touchstart"||n.type==="touchmove"?n.targetTouches[0].pageY:n.pageY||n.clientY;i=(e-s.offset()[t.isHorizontal()?"left":"top"]-f/2)/(h-f);i=Math.max(Math.min(i,1),0);o&&(i=1-i);u=t.minTranslate()+(t.maxTranslate()-t.minTranslate())*i;t.updateProgress(u);t.setTranslate(u);t.updateActiveIndex();t.updateSlidesClasses()},onDragStart:function(n){var t=this,u=t.params.scrollbar,i=t.scrollbar,f=t.$wrapperEl,r=i.$el,e=i.$dragEl;t.scrollbar.isTouched=!0;n.preventDefault();n.stopPropagation();f.transition(100);e.transition(100);i.setDragPosition(n);clearTimeout(t.scrollbar.dragTimeout);r.transition(0);u.hide&&r.css("opacity",1);t.emit("scrollbarDragStart",n)},onDragMove:function(n){var t=this,i=t.scrollbar,r=t.$wrapperEl,u=i.$el,f=i.$dragEl;t.scrollbar.isTouched&&(n.preventDefault?n.preventDefault():n.returnValue=!1,i.setDragPosition(n),r.transition(0),u.transition(0),f.transition(0),t.emit("scrollbarDragMove",n))},onDragEnd:function(t){var i=this,r=i.params.scrollbar,f=i.scrollbar,u=f.$el;i.scrollbar.isTouched&&(i.scrollbar.isTouched=!1,r.hide&&(clearTimeout(i.scrollbar.dragTimeout),i.scrollbar.dragTimeout=n.nextTick(function(){u.css("opacity",0);u.transition(400)},1e3)),i.emit("scrollbarDragEnd",t),r.snapOnRelease&&i.slideToClosest())},enableDraggable:function(){var n=this;if(n.params.scrollbar.el){var c=n.scrollbar,o=n.touchEvents,s=n.touchEventsDesktop,f=n.params,l=c.$el,i=l[0],t=r.passiveListener&&f.passiveListener?{passive:!1,capture:!1}:!1,h=r.passiveListener&&f.passiveListener?{passive:!0,capture:!1}:!1;!r.touch&&(r.pointerEvents||r.prefixedPointerEvents)?(i.addEventListener(s.start,n.scrollbar.onDragStart,t),u.addEventListener(s.move,n.scrollbar.onDragMove,t),u.addEventListener(s.end,n.scrollbar.onDragEnd,h)):(r.touch&&(i.addEventListener(o.start,n.scrollbar.onDragStart,t),i.addEventListener(o.move,n.scrollbar.onDragMove,t),i.addEventListener(o.end,n.scrollbar.onDragEnd,h)),(f.simulateTouch&&!e.ios&&!e.android||f.simulateTouch&&!r.touch&&e.ios)&&(i.addEventListener("mousedown",n.scrollbar.onDragStart,t),u.addEventListener("mousemove",n.scrollbar.onDragMove,t),u.addEventListener("mouseup",n.scrollbar.onDragEnd,h)))}},disableDraggable:function(){var n=this;if(n.params.scrollbar.el){var c=n.scrollbar,o=n.touchEvents,s=n.touchEventsDesktop,f=n.params,l=c.$el,i=l[0],t=r.passiveListener&&f.passiveListener?{passive:!1,capture:!1}:!1,h=r.passiveListener&&f.passiveListener?{passive:!0,capture:!1}:!1;!r.touch&&(r.pointerEvents||r.prefixedPointerEvents)?(i.removeEventListener(s.start,n.scrollbar.onDragStart,t),u.removeEventListener(s.move,n.scrollbar.onDragMove,t),u.removeEventListener(s.end,n.scrollbar.onDragEnd,h)):(r.touch&&(i.removeEventListener(o.start,n.scrollbar.onDragStart,t),i.removeEventListener(o.move,n.scrollbar.onDragMove,t),i.removeEventListener(o.end,n.scrollbar.onDragEnd,h)),(f.simulateTouch&&!e.ios&&!e.android||f.simulateTouch&&!r.touch&&e.ios)&&(i.removeEventListener("mousedown",n.scrollbar.onDragStart,t),u.removeEventListener("mousemove",n.scrollbar.onDragMove,t),u.removeEventListener("mouseup",n.scrollbar.onDragEnd,h)))}},init:function(){var i=this,u;if(i.params.scrollbar.el){var e=i.scrollbar,o=i.$el,f=i.params.scrollbar,r=t(f.el);i.params.uniqueNavElements&&typeof f.el=="string"&&r.length>1&&o.find(f.el).length===1&&(r=o.find(f.el));u=r.find("."+i.params.scrollbar.dragClass);u.length===0&&(u=t('
<\/div>'),r.append(u));n.extend(e,{$el:r,el:r[0],$dragEl:u,dragEl:u[0]});f.draggable&&e.enableDraggable()}},destroy:function(){var n=this;n.scrollbar.disableDraggable()}},ke={name:"scrollbar",params:{scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag"}},create:function(){var t=this;n.extend(t,{scrollbar:{init:s.init.bind(t),destroy:s.destroy.bind(t),updateSize:s.updateSize.bind(t),setTranslate:s.setTranslate.bind(t),setTransition:s.setTransition.bind(t),enableDraggable:s.enableDraggable.bind(t),disableDraggable:s.disableDraggable.bind(t),setDragPosition:s.setDragPosition.bind(t),onDragStart:s.onDragStart.bind(t),onDragMove:s.onDragMove.bind(t),onDragEnd:s.onDragEnd.bind(t),isTouched:!1,timeout:null,dragTimeout:null}})},on:{init:function(){var n=this;n.scrollbar.init();n.scrollbar.updateSize();n.scrollbar.setTranslate()},update:function(){var n=this;n.scrollbar.updateSize()},resize:function(){var n=this;n.scrollbar.updateSize()},observerUpdate:function(){var n=this;n.scrollbar.updateSize()},setTranslate:function(){var n=this;n.scrollbar.setTranslate()},setTransition:function(n){var t=this;t.scrollbar.setTransition(n)},destroy:function(){var n=this;n.scrollbar.destroy()}}},ut={setTransform:function(n,i){var s=this,v=s.rtl,f=t(n),h=v?-1:1,c=f.attr("data-swiper-parallax")||"0",r=f.attr("data-swiper-parallax-x"),u=f.attr("data-swiper-parallax-y"),e=f.attr("data-swiper-parallax-scale"),o=f.attr("data-swiper-parallax-opacity"),l,a;r||u?(r=r||"0",u=u||"0"):s.isHorizontal()?(r=c,u="0"):(u=c,r="0");r=r.indexOf("%")>=0?parseInt(r,10)*i*h+"%":r*i*h+"px";u=u.indexOf("%")>=0?parseInt(u,10)*i+"%":u*i+"px";typeof o!="undefined"&&o!==null&&(l=o-(o-1)*(1-Math.abs(i)),f[0].style.opacity=l);typeof e=="undefined"||e===null?f.transform("translate3d("+r+", "+u+", 0px)"):(a=e-(e-1)*(1-Math.abs(i)),f.transform("translate3d("+r+", "+u+", 0px) scale("+a+")"))},setTranslate:function(){var n=this,r=n.$el,u=n.slides,i=n.progress,f=n.snapGrid;r.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(t,r){n.parallax.setTransform(r,i)});u.each(function(r,u){var e=u.progress;n.params.slidesPerGroup>1&&n.params.slidesPerView!=="auto"&&(e+=Math.ceil(r/2)-i*(f.length-1));e=Math.min(Math.max(e,-1),1);t(u).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(t,i){n.parallax.setTransform(i,e)})})},setTransition:function(n){n===void 0&&(n=this.params.speed);var i=this,r=i.$el;r.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(i,r){var u=t(r),f=parseInt(u.attr("data-swiper-parallax-duration"),10)||n;n===0&&(f=0);u.transition(f)})}},de={name:"parallax",params:{parallax:{enabled:!1}},create:function(){var t=this;n.extend(t,{parallax:{setTransform:ut.setTransform.bind(t),setTranslate:ut.setTranslate.bind(t),setTransition:ut.setTransition.bind(t)}})},on:{beforeInit:function(){var n=this;n.params.parallax.enabled&&(n.params.watchSlidesProgress=!0)},init:function(){var n=this;n.params.parallax&&n.parallax.setTranslate()},setTranslate:function(){var n=this;n.params.parallax&&n.parallax.setTranslate()},setTransition:function(n){var t=this;t.params.parallax&&t.parallax.setTransition(n)}}},ft={getDistanceBetweenTouches:function(n){if(n.targetTouches.length<2)return 1;var t=n.targetTouches[0].pageX,i=n.targetTouches[0].pageY,r=n.targetTouches[1].pageX,u=n.targetTouches[1].pageY;return Math.sqrt(Math.pow(r-t,2)+Math.pow(u-i,2))},onGestureStart:function(n){var u=this,e=u.params.zoom,f=u.zoom,i=f.gesture;if(f.fakeGestureTouched=!1,f.fakeGestureMoved=!1,!r.gestures){if(n.type!=="touchstart"||n.type==="touchstart"&&n.targetTouches.length<2)return;f.fakeGestureTouched=!0;i.scaleStart=ft.getDistanceBetweenTouches(n)}if((!i.$slideEl||!i.$slideEl.length)&&(i.$slideEl=t(n.target).closest(".swiper-slide"),i.$slideEl.length===0&&(i.$slideEl=u.slides.eq(u.activeIndex)),i.$imageEl=i.$slideEl.find("img, svg, canvas"),i.$imageWrapEl=i.$imageEl.parent("."+e.containerClass),i.maxRatio=i.$imageWrapEl.attr("data-swiper-zoom")||e.maxRatio,i.$imageWrapEl.length===0)){i.$imageEl=undefined;return}i.$imageEl.transition(0);u.zoom.isScaling=!0},onGestureChange:function(n){var u=this,f=u.params.zoom,t=u.zoom,i=t.gesture;if(!r.gestures){if(n.type!=="touchmove"||n.type==="touchmove"&&n.targetTouches.length<2)return;t.fakeGestureMoved=!0;i.scaleMove=ft.getDistanceBetweenTouches(n)}i.$imageEl&&i.$imageEl.length!==0&&(r.gestures?u.zoom.scale=n.scale*t.currentScale:t.scale=i.scaleMove/i.scaleStart*t.currentScale,t.scale>i.maxRatio&&(t.scale=i.maxRatio-1+Math.pow(t.scale-i.maxRatio+1,.5)),t.scalei.touchesStart.x)){i.isTouched=!1;return}if(!e.isHorizontal()&&(Math.floor(i.minY)===Math.floor(i.startY)&&i.touchesCurrent.yi.touchesStart.y)){i.isTouched=!1;return}}t.preventDefault();t.stopPropagation();i.isMoved=!0;i.currentX=i.touchesCurrent.x-i.touchesStart.x+i.startX;i.currentY=i.touchesCurrent.y-i.touchesStart.y+i.startY;i.currentXi.maxX&&(i.currentX=i.maxX-1+Math.pow(i.currentX-i.maxX+1,.8));i.currentYi.maxY&&(i.currentY=i.maxY-1+Math.pow(i.currentY-i.maxY+1,.8));r.prevPositionX||(r.prevPositionX=i.touchesCurrent.x);r.prevPositionY||(r.prevPositionY=i.touchesCurrent.y);r.prevTime||(r.prevTime=Date.now());r.x=(i.touchesCurrent.x-r.prevPositionX)/(Date.now()-r.prevTime)/2;r.y=(i.touchesCurrent.y-r.prevPositionY)/(Date.now()-r.prevTime)/2;Math.abs(i.touchesCurrent.x-r.prevPositionX)<2&&(r.x=0);Math.abs(i.touchesCurrent.y-r.prevPositionY)<2&&(r.y=0);r.prevPositionX=i.touchesCurrent.x;r.prevPositionY=i.touchesCurrent.y;r.prevTime=Date.now();u.$imageWrapEl.transform("translate3d("+i.currentX+"px, "+i.currentY+"px,0)")}},onTouchEnd:function(){var l=this,i=l.zoom,r=i.gesture,n=i.image,t=i.velocity,s,h,c;if(r.$imageEl&&r.$imageEl.length!==0){if(!n.isTouched||!n.isMoved){n.isTouched=!1;n.isMoved=!1;return}n.isTouched=!1;n.isMoved=!1;var u=300,f=300,a=t.x*u,e=n.currentX+a,v=t.y*f,o=n.currentY+v;t.x!==0&&(u=Math.abs((e-n.currentX)/t.x));t.y!==0&&(f=Math.abs((o-n.currentY)/t.y));s=Math.max(u,f);n.currentX=e;n.currentY=o;h=n.width*i.scale;c=n.height*i.scale;n.minX=Math.min(r.slideWidth/2-h/2,0);n.maxX=-n.minX;n.minY=Math.min(r.slideHeight/2-c/2,0);n.maxY=-n.minY;n.currentX=Math.max(Math.min(n.currentX,n.maxX),n.minX);n.currentY=Math.max(Math.min(n.currentY,n.maxY),n.minY);r.$imageWrapEl.transition(s).transform("translate3d("+n.currentX+"px, "+n.currentY+"px,0)")}},onTransitionEnd:function(){var t=this,i=t.zoom,n=i.gesture;n.$slideEl&&t.previousIndex!==t.activeIndex&&(n.$imageEl.transform("translate3d(0,0,0) scale(1)"),n.$imageWrapEl.transform("translate3d(0,0,0)"),n.$slideEl=undefined,n.$imageEl=undefined,n.$imageWrapEl=undefined,i.scale=1,i.currentScale=1)},toggle:function(n){var i=this,t=i.zoom;t.scale&&t.scale!==1?t.out():t.in(n)},"in":function(n){var e=this,r=e.zoom,o=e.params.zoom,i=r.gesture,c=r.image,l,a,b,k,d,g,u,f,nt,tt,it,rt,s,h,v,y,p,w;(i.$slideEl||(i.$slideEl=e.clickedSlide?t(e.clickedSlide):e.slides.eq(e.activeIndex),i.$imageEl=i.$slideEl.find("img, svg, canvas"),i.$imageWrapEl=i.$imageEl.parent("."+o.containerClass)),i.$imageEl&&i.$imageEl.length!==0)&&(i.$slideEl.addClass(""+o.zoomedSlideClass),typeof c.touchesStart.x=="undefined"&&n?(l=n.type==="touchend"?n.changedTouches[0].pageX:n.pageX,a=n.type==="touchend"?n.changedTouches[0].pageY:n.pageY):(l=c.touchesStart.x,a=c.touchesStart.y),r.scale=i.$imageWrapEl.attr("data-swiper-zoom")||o.maxRatio,r.currentScale=i.$imageWrapEl.attr("data-swiper-zoom")||o.maxRatio,n?(p=i.$slideEl[0].offsetWidth,w=i.$slideEl[0].offsetHeight,b=i.$slideEl.offset().left,k=i.$slideEl.offset().top,d=b+p/2-l,g=k+w/2-a,nt=i.$imageEl[0].offsetWidth,tt=i.$imageEl[0].offsetHeight,it=nt*r.scale,rt=tt*r.scale,s=Math.min(p/2-it/2,0),h=Math.min(w/2-rt/2,0),v=-s,y=-h,u=d*r.scale,f=g*r.scale,uv&&(u=v),fy&&(f=y)):(u=0,f=0),i.$imageWrapEl.transition(300).transform("translate3d("+u+"px, "+f+"px,0)"),i.$imageEl.transition(300).transform("translate3d(0,0,0) scale("+r.scale+")"))},out:function(){var i=this,r=i.zoom,u=i.params.zoom,n=r.gesture;(n.$slideEl||(n.$slideEl=i.clickedSlide?t(i.clickedSlide):i.slides.eq(i.activeIndex),n.$imageEl=n.$slideEl.find("img, svg, canvas"),n.$imageWrapEl=n.$imageEl.parent("."+u.containerClass)),n.$imageEl&&n.$imageEl.length!==0)&&(r.scale=1,r.currentScale=1,n.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"),n.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"),n.$slideEl.removeClass(""+u.zoomedSlideClass),n.$slideEl=undefined)},enable:function(){var n=this,t=n.zoom,i;if(!t.enabled){if(t.enabled=!0,i=n.touchEvents.start==="touchstart"&&r.passiveListener&&n.params.passiveListeners?{passive:!0,capture:!1}:!1,r.gestures){n.$wrapperEl.on("gesturestart",".swiper-slide",t.onGestureStart,i);n.$wrapperEl.on("gesturechange",".swiper-slide",t.onGestureChange,i);n.$wrapperEl.on("gestureend",".swiper-slide",t.onGestureEnd,i)}else if(n.touchEvents.start==="touchstart"){n.$wrapperEl.on(n.touchEvents.start,".swiper-slide",t.onGestureStart,i);n.$wrapperEl.on(n.touchEvents.move,".swiper-slide",t.onGestureChange,i);n.$wrapperEl.on(n.touchEvents.end,".swiper-slide",t.onGestureEnd,i)}n.$wrapperEl.on(n.touchEvents.move,"."+n.params.zoom.containerClass,t.onTouchMove)}},disable:function(){var n=this,t=n.zoom,i;t.enabled&&(n.zoom.enabled=!1,i=n.touchEvents.start==="touchstart"&&r.passiveListener&&n.params.passiveListeners?{passive:!0,capture:!1}:!1,r.gestures?(n.$wrapperEl.off("gesturestart",".swiper-slide",t.onGestureStart,i),n.$wrapperEl.off("gesturechange",".swiper-slide",t.onGestureChange,i),n.$wrapperEl.off("gestureend",".swiper-slide",t.onGestureEnd,i)):n.touchEvents.start==="touchstart"&&(n.$wrapperEl.off(n.touchEvents.start,".swiper-slide",t.onGestureStart,i),n.$wrapperEl.off(n.touchEvents.move,".swiper-slide",t.onGestureChange,i),n.$wrapperEl.off(n.touchEvents.end,".swiper-slide",t.onGestureEnd,i)),n.$wrapperEl.off(n.touchEvents.move,"."+n.params.zoom.containerClass,t.onTouchMove))}},ge={name:"zoom",params:{zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}},create:function(){var t=this,i={enabled:!1,scale:1,currentScale:1,isScaling:!1,gesture:{$slideEl:undefined,slideWidth:undefined,slideHeight:undefined,$imageEl:undefined,$imageWrapEl:undefined,maxRatio:3},image:{isTouched:undefined,isMoved:undefined,currentX:undefined,currentY:undefined,minX:undefined,minY:undefined,maxX:undefined,maxY:undefined,width:undefined,height:undefined,startX:undefined,startY:undefined,touchesStart:{},touchesCurrent:{}},velocity:{x:undefined,y:undefined,prevPositionX:undefined,prevPositionY:undefined,prevTime:undefined}};"onGestureStart onGestureChange onGestureEnd onTouchStart onTouchMove onTouchEnd onTransitionEnd toggle enable disable in out".split(" ").forEach(function(n){i[n]=ft[n].bind(t)});n.extend(t,{zoom:i})},on:{init:function(){var n=this;n.params.zoom.enabled&&n.zoom.enable()},destroy:function(){var n=this;n.zoom.disable()},touchStart:function(n){var t=this;if(t.zoom.enabled)t.zoom.onTouchStart(n)},touchEnd:function(n){var t=this;if(t.zoom.enabled)t.zoom.onTouchEnd(n)},doubleTap:function(n){var t=this;t.params.zoom.enabled&&t.zoom.enabled&&t.params.zoom.toggle&&t.zoom.toggle(n)},transitionEnd:function(){var n=this;n.zoom.enabled&&n.params.zoom.enabled&&n.zoom.onTransitionEnd()}}},ti={loadInSlide:function(n,i){var r,u;if((i===void 0&&(i=!0),r=this,u=r.params.lazy,typeof n!="undefined")&&r.slides.length!==0){var o=r.virtual&&r.params.virtual.enabled,f=o?r.$wrapperEl.children("."+r.params.slideClass+'[data-swiper-slide-index="'+n+'"]'):r.slides.eq(n),e=f.find("."+u.elementClass+":not(."+u.loadedClass+"):not(."+u.loadingClass+")");(!f.hasClass(u.elementClass)||f.hasClass(u.loadedClass)||f.hasClass(u.loadingClass)||(e=e.add(f[0])),e.length!==0)&&e.each(function(n,e){var o=t(e);o.addClass(u.loadingClass);var s=o.attr("data-background"),h=o.attr("data-src"),c=o.attr("data-srcset"),l=o.attr("data-sizes");r.loadImage(o[0],h||s,c,l,!1,function(){var n,t,e;typeof r!="undefined"&&r!==null&&r&&(!r||r.params)&&!r.destroyed&&(s?(o.css("background-image",'url("'+s+'")'),o.removeAttr("data-background")):(c&&(o.attr("srcset",c),o.removeAttr("data-srcset")),l&&(o.attr("sizes",l),o.removeAttr("data-sizes")),h&&(o.attr("src",h),o.removeAttr("data-src"))),o.addClass(u.loadedClass).removeClass(u.loadingClass),f.find("."+u.preloaderClass).remove(),r.params.loop&&i&&(n=f.attr("data-swiper-slide-index"),f.hasClass(r.params.slideDuplicateClass)?(t=r.$wrapperEl.children('[data-swiper-slide-index="'+n+'"]:not(.'+r.params.slideDuplicateClass+")"),r.lazy.loadInSlide(t.index(),!1)):(e=r.$wrapperEl.children("."+r.params.slideDuplicateClass+'[data-swiper-slide-index="'+n+'"]'),r.lazy.loadInSlide(e.index(),!1))),r.emit("lazyImageReady",f[0],o[0]))});r.emit("lazyImageLoad",f[0],o[0])})}},load:function(){function l(n){if(c){if(s.children("."+i.slideClass+'[data-swiper-slide-index="'+n+'"]').length)return!0}else if(p[n])return!0;return!1}function w(n){return c?t(n).attr("data-swiper-slide-index"):t(n).index()}var n=this,s=n.$wrapperEl,i=n.params,p=n.slides,r=n.activeIndex,c=n.virtual&&i.virtual.enabled,h=i.lazy,u=i.slidesPerView,f,e,o,v,y;if(u==="auto"&&(u=0),n.lazy.initialImageLoaded||(n.lazy.initialImageLoaded=!0),n.params.watchSlidesVisibility)s.children("."+i.slideVisibleClass).each(function(i,r){var u=c?t(r).attr("data-swiper-slide-index"):t(r).index();n.lazy.loadInSlide(u)});else if(u>1)for(f=r;f1||h.loadPrevNextAmount&&h.loadPrevNextAmount>1){var b=h.loadPrevNextAmount,a=u,k=Math.min(r+a+Math.max(b,a),p.length),d=Math.max(r-Math.max(a,b),0);for(e=r+u;e0&&n.lazy.loadInSlide(w(v)),y=s.children("."+i.slidePrevClass),y.length>0&&n.lazy.loadInSlide(w(y))}},no={name:"lazy",params:{lazy:{enabled:!1,loadPrevNext:!1,loadPrevNextAmount:1,loadOnTransitionStart:!1,elementClass:"swiper-lazy",loadingClass:"swiper-lazy-loading",loadedClass:"swiper-lazy-loaded",preloaderClass:"swiper-lazy-preloader"}},create:function(){var t=this;n.extend(t,{lazy:{initialImageLoaded:!1,load:ti.load.bind(t),loadInSlide:ti.loadInSlide.bind(t)}})},on:{beforeInit:function(){var n=this;n.params.lazy.enabled&&n.params.preloadImages&&(n.params.preloadImages=!1)},init:function(){var n=this;n.params.lazy.enabled&&!n.params.loop&&n.params.initialSlide===0&&n.lazy.load()},scroll:function(){var n=this;n.params.freeMode&&!n.params.freeModeSticky&&n.lazy.load()},resize:function(){var n=this;n.params.lazy.enabled&&n.lazy.load()},scrollbarDragMove:function(){var n=this;n.params.lazy.enabled&&n.lazy.load()},transitionStart:function(){var n=this;n.params.lazy.enabled&&(!n.params.lazy.loadOnTransitionStart&&(n.params.lazy.loadOnTransitionStart||n.lazy.initialImageLoaded)||n.lazy.load())},transitionEnd:function(){var n=this;n.params.lazy.enabled&&!n.params.lazy.loadOnTransitionStart&&n.lazy.load()}}},v={LinearSpline:function(n,t){var u=function(){var n,t,i;return function(r,u){for(t=-1,n=r.length;n-t>1;)i=n+t>>1,r[i]<=u?t=i:n=i;return n}}(),i,r;return this.x=n,this.y=t,this.lastIndex=n.length-1,this.interpolate=function(n){return n?(r=u(this.x,n),i=r-1,(n-this.x[i])*(this.y[r]-this.y[i])/(this.x[r]-this.x[i])+this.y[i]):0},this},getInterpolateFunction:function(n){var t=this;t.controller.spline||(t.controller.spline=t.params.loop?new v.LinearSpline(t.slidesGrid,n.slidesGrid):new v.LinearSpline(t.snapGrid,n.snapGrid))},setTranslate:function(n,t){function s(n){var t=i.rtlTranslate?-i.translate:i.translate;i.params.controller.by==="slide"&&(i.controller.getInterpolateFunction(n),u=-i.controller.spline.interpolate(-t));u&&i.params.controller.by!=="container"||(e=(n.maxTranslate()-n.minTranslate())/(i.maxTranslate()-i.minTranslate()),u=(t-i.minTranslate())*e+n.minTranslate());i.params.controller.inverse&&(u=n.maxTranslate()-u);n.updateProgress(u);n.setTranslate(u,i);n.updateActiveIndex();n.updateSlidesClasses()}var i=this,r=i.controller.control,e,u,f;if(Array.isArray(r))for(f=0;f0&&(n.isBeginning?n.a11y.disableEl(i):n.a11y.enableEl(i));t&&t.length>0&&(n.isEnd?n.a11y.disableEl(t):n.a11y.enableEl(t))}},updatePagination:function(){var n=this,i=n.params.a11y;n.pagination&&n.params.pagination.clickable&&n.pagination.bullets&&n.pagination.bullets.length&&n.pagination.bullets.each(function(r,u){var f=t(u);n.a11y.makeElFocusable(f);n.a11y.addElRole(f,"button");n.a11y.addElLabel(f,i.paginationBulletMessage.replace(/{{index}}/,f.index()+1))})},init:function(){var n=this,r,t,i;if(n.$el.append(n.a11y.liveRegion),r=n.params.a11y,n.navigation&&n.navigation.$nextEl&&(t=n.navigation.$nextEl),n.navigation&&n.navigation.$prevEl&&(i=n.navigation.$prevEl),t){n.a11y.makeElFocusable(t);n.a11y.addElRole(t,"button");n.a11y.addElLabel(t,r.nextSlideMessage);t.on("keydown",n.a11y.onEnterKey)}if(i){n.a11y.makeElFocusable(i);n.a11y.addElRole(i,"button");n.a11y.addElLabel(i,r.prevSlideMessage);i.on("keydown",n.a11y.onEnterKey)}if(n.pagination&&n.params.pagination.clickable&&n.pagination.bullets&&n.pagination.bullets.length)n.pagination.$el.on("keydown","."+n.params.pagination.bulletClass,n.a11y.onEnterKey)},destroy:function(){var n=this,t,i;n.a11y.liveRegion&&n.a11y.liveRegion.length>0&&n.a11y.liveRegion.remove();n.navigation&&n.navigation.$nextEl&&(t=n.navigation.$nextEl);n.navigation&&n.navigation.$prevEl&&(i=n.navigation.$prevEl);t&&t.off("keydown",n.a11y.onEnterKey);i&&i.off("keydown",n.a11y.onEnterKey);n.pagination&&n.params.pagination.clickable&&n.pagination.bullets&&n.pagination.bullets.length&&n.pagination.$el.off("keydown","."+n.params.pagination.bulletClass,n.a11y.onEnterKey)}},io={name:"a11y",params:{a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}"}},create:function(){var i=this;n.extend(i,{a11y:{liveRegion:t('<\/span>')}});Object.keys(ii).forEach(function(n){i.a11y[n]=ii[n].bind(i)})},on:{init:function(){var n=this;n.params.a11y.enabled&&(n.a11y.init(),n.a11y.updateNavigation())},toEdge:function(){var n=this;n.params.a11y.enabled&&n.a11y.updateNavigation()},fromEdge:function(){var n=this;n.params.a11y.enabled&&n.a11y.updateNavigation()},paginationUpdate:function(){var n=this;n.params.a11y.enabled&&n.a11y.updatePagination()},destroy:function(){var n=this;n.params.a11y.enabled&&n.a11y.destroy()}}},l={init:function(){var n=this,t;if(n.params.history){if(!i.history||!i.history.pushState){n.params.history.enabled=!1;n.params.hashNavigation.enabled=!0;return}(t=n.history,t.initialized=!0,t.paths=l.getPathValues(),t.paths.key||t.paths.value)&&(t.scrollToSlide(0,t.paths.value,n.params.runCallbacksOnInit),n.params.history.replaceState||i.addEventListener("popstate",n.history.setHistoryPopState))}},destroy:function(){var n=this;n.params.history.replaceState||i.removeEventListener("popstate",n.history.setHistoryPopState)},setHistoryPopState:function(){var n=this;n.history.paths=l.getPathValues();n.history.scrollToSlide(n.params.speed,n.history.paths.value,!1)},getPathValues:function(){var n=i.location.pathname.slice(1).split("/").filter(function(n){return n!==""}),t=n.length,r=n[t-2],u=n[t-1];return{key:r,value:u}},setHistory:function(n,t){var u=this,e,r,f;u.history.initialized&&u.params.history.enabled&&((e=u.slides.eq(t),r=l.slugify(e.attr("data-history")),i.location.pathname.includes(n)||(r=n+"/"+r),f=i.history.state,f&&f.value===r)||(u.params.history.replaceState?i.history.replaceState({value:r},null,r):i.history.pushState({value:r},null,r)))},slugify:function(n){return n.toString().toLowerCase().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},scrollToSlide:function(n,t,i){var r=this,u,e,f,o,s;if(t)for(u=0,e=r.slides.length;u<\/div>'),k.append(r)),r.css({height:d+"px"})):(r=nt.find(".swiper-cube-shadow"),r.length===0&&(r=t('
<\/div>'),nt.append(r)))),w=0;w-1&&(c=e*90+v*90,g&&(c=-e*90-v*90));u.transform(ut);s.slideShadows&&(y=f?u.find(".swiper-slide-shadow-left"):u.find(".swiper-slide-shadow-top"),p=f?u.find(".swiper-slide-shadow-right"):u.find(".swiper-slide-shadow-bottom"),y.length===0&&(y=t('
<\/div>'),u.append(y)),p.length===0&&(p=t('
<\/div>'),u.append(p)),y.length&&(y[0].style.opacity=Math.max(-v,0)),p.length&&(p[0].style.opacity=Math.max(v,0)))}if(k.css({"-webkit-transform-origin":"50% 50% -"+i/2+"px","-moz-transform-origin":"50% 50% -"+i/2+"px","-ms-transform-origin":"50% 50% -"+i/2+"px","transform-origin":"50% 50% -"+i/2+"px"}),s.shadow)if(f)r.transform("translate3d(0px, "+(d/2+s.shadowOffset)+"px, "+-d/2+"px) rotateX(90deg) rotateZ(0deg) scale("+s.shadowScale+")");else{var ft=Math.abs(c)-Math.floor(Math.abs(c)/90)*90,ht=1.5-(Math.sin(ft*2*Math.PI/360)/2+Math.cos(ft*2*Math.PI/360)/2),ct=s.shadowScale,et=s.shadowScale/ht,lt=s.shadowOffset;r.transform("scale3d("+ct+", 1, "+et+") translate3d(0px, "+(it/2+lt)+"px, "+-it/2/et+"px) rotateX(-90deg)")}ot=a.isSafari||a.isUiWebView?-i/2:0;k.transform("translate3d(0px,0,"+ot+"px) rotateX("+(n.isHorizontal()?0:c)+"deg) rotateY("+(n.isHorizontal()?-c:0)+"deg)")},setTransition:function(n){var t=this,i=t.$el,r=t.slides;r.transition(n).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(n);t.params.cubeEffect.shadow&&!t.isHorizontal()&&i.find(".swiper-cube-shadow").transition(n)}},oo={name:"effect-cube",params:{cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}},create:function(){var t=this;n.extend(t,{cubeEffect:{setTranslate:ui.setTranslate.bind(t),setTransition:ui.setTransition.bind(t)}})},on:{beforeInit:function(){var t=this,i;t.params.effect==="cube"&&(t.classNames.push(t.params.containerModifierClass+"cube"),t.classNames.push(t.params.containerModifierClass+"3d"),i={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0},n.extend(t.params,i),n.extend(t.originalParams,i))},setTranslate:function(){var n=this;n.params.effect==="cube"&&n.cubeEffect.setTranslate()},setTransition:function(n){var t=this;t.params.effect==="cube"&&t.cubeEffect.setTransition(n)}}},fi={setTranslate:function(){for(var n,r,u,f,i=this,o=i.slides,a=i.rtlTranslate,s=0;s<\/div>'),n.append(u)),f.length===0&&(f=t('
<\/div>'),n.append(f)),u.length&&(u[0].style.opacity=Math.max(-r,0)),f.length&&(f[0].style.opacity=Math.max(r,0)));n.transform("translate3d("+h+"px, "+l+"px, 0px) rotateX("+c+"deg) rotateY("+e+"deg)")}},setTransition:function(n){var t=this,r=t.slides,u=t.activeIndex,f=t.$wrapperEl,i;r.transition(n).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(n);t.params.virtualTranslate&&n!==0&&(i=!1,r.eq(u).transitionEnd(function(){var r,n;if(!i&&t&&!t.destroyed)for(i=!0,t.animating=!1,r=["webkitTransitionEnd","transitionend"],n=0;n<\/div>'),u.append(o)),s.length===0&&(s=t('
<\/div>'),u.append(s)),o.length&&(o[0].style.opacity=i>0?i:0),s.length&&(s[0].style.opacity=-i>0?-i:0))}(r.pointerEvents||r.prefixedPointerEvents)&&(nt=rt[0].style,nt.perspectiveOrigin=b+"px 50%")},setTransition:function(n){var t=this;t.slides.transition(n).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(n)}},ho={name:"effect-coverflow",params:{coverflowEffect:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0}},create:function(){var t=this;n.extend(t,{coverflowEffect:{setTranslate:ei.setTranslate.bind(t),setTransition:ei.setTransition.bind(t)}})},on:{beforeInit:function(){var n=this;n.params.effect==="coverflow"&&(n.classNames.push(n.params.containerModifierClass+"coverflow"),n.classNames.push(n.params.containerModifierClass+"3d"),n.params.watchSlidesProgress=!0,n.originalParams.watchSlidesProgress=!0)},setTranslate:function(){var n=this;n.params.effect==="coverflow"&&n.coverflowEffect.setTranslate()},setTransition:function(n){var t=this;t.params.effect==="coverflow"&&t.coverflowEffect.setTransition(n)}}},co=[oe,se,he,ce,le,ae,ve,pe,we,be,ke,de,ge,no,to,io,ro,uo,fo,eo,oo,so,ho];return typeof o.use=="undefined"&&(o.use=o.Class.use,o.installModule=o.Class.installModule),o.use(co),o});